diff --git a/server/route/api.go b/server/route/api.go index c593d5ff1e..91971d8ec3 100644 --- a/server/route/api.go +++ b/server/route/api.go @@ -23,16 +23,38 @@ package route import ( + "net/http" + "github.com/labstack/echo/v4" "github.com/temporalio/ui-server/v2/server/api" "github.com/temporalio/ui-server/v2/server/config" ) +func DisableWriteMiddleware(cfgProvider *config.ConfigProviderWithRefresh) echo.MiddlewareFunc { + return func(next echo.HandlerFunc) echo.HandlerFunc { + return func(c echo.Context) error { + cfg, err := cfgProvider.GetConfig() + if err != nil { + return c.JSON(http.StatusInternalServerError, err) + } + + if cfg.DisableWriteActions && c.Request().Method != http.MethodGet { + return echo.ErrMethodNotAllowed + } + + return next(c) + } + } +} + // SetAPIRoutes sets api routes func SetAPIRoutes(e *echo.Echo, cfgProvider *config.ConfigProviderWithRefresh, apiMiddleware []api.Middleware) error { route := e.Group("/api") route.GET("/v1/settings", api.GetSettings(cfgProvider)) - route.Match([]string{"GET", "POST", "PUT", "PATCH", "DELETE"}, "/*", api.TemporalAPIHandler(cfgProvider, apiMiddleware)) + + writeControlMiddleware := DisableWriteMiddleware(cfgProvider) + + route.Match([]string{"GET", "POST", "PUT", "PATCH", "DELETE"}, "/*", api.TemporalAPIHandler(cfgProvider, apiMiddleware), writeControlMiddleware) return nil } diff --git a/ui/assets/local/_app/immutable/chunks/accordion.777f1aaf.js b/ui/assets/local/_app/immutable/chunks/accordion.c09eb7a4.js similarity index 98% rename from ui/assets/local/_app/immutable/chunks/accordion.777f1aaf.js rename to ui/assets/local/_app/immutable/chunks/accordion.c09eb7a4.js index 2e6585b8c0..444ecda952 100644 --- a/ui/assets/local/_app/immutable/chunks/accordion.777f1aaf.js +++ b/ui/assets/local/_app/immutable/chunks/accordion.c09eb7a4.js @@ -1 +1 @@ -import{S as Ae,b as Be,a as Ne,G as x,N as ie,m as N,c as P,w as ne,p as q,q as C,d as H,x as oe,k as I,u as d,P as be,O as he,f as De,L as _,Q as $,$ as ve,j as g,z as ee,g as y,h as le,y as re,H as te,I as ae,J as se,R as Pe,r as qe,T as pe,U as Ce,C as fe,D as ue,E as ce,F as de,n as He,V as ke}from"./index.4e2fcbc7.js";import{B as Se}from"./badge.96e01a15.js";import{I as Ve}from"./icon.e8aa24c8.js";import{v as Ue}from"./toaster.8a4adbc8.js";const je=s=>({}),ye=s=>({}),ze=s=>({}),Ee=s=>({});function Te(s){let e,l;return e=new Ve({props:{name:s[4]}}),{c(){fe(e.$$.fragment)},l(t){ue(e.$$.fragment,t)},m(t,o){ce(e,t,o),l=!0},p(t,o){const m={};o&16&&(m.name=t[4]),e.$set(m)},i(t){l||(g(e.$$.fragment,t),l=!0)},o(t){y(e.$$.fragment,t),l=!1},d(t){de(e,t)}}}function Ie(s){let e,l;return e=new Ve({props:{name:s[0]?"chevron-up":"chevron-down",class:"rounded-full from-blue-100 to-purple-100 hover:bg-gradient-to-br "+(s[5]?"text-gray-500":"text-primary")}}),{c(){fe(e.$$.fragment)},l(t){ue(e.$$.fragment,t)},m(t,o){ce(e,t,o),l=!0},p(t,o){const m={};o&1&&(m.name=t[0]?"chevron-up":"chevron-down"),o&32&&(m.class="rounded-full from-blue-100 to-purple-100 hover:bg-gradient-to-br "+(t[5]?"text-gray-500":"text-primary")),e.$set(m)},i(t){l||(g(e.$$.fragment,t),l=!0)},o(t){y(e.$$.fragment,t),l=!1},d(t){de(e,t)}}}function Oe(s){let e,l;return e=new Se({props:{class:"mr-2",type:"error",$$slots:{default:[Fe]},$$scope:{ctx:s}}}),{c(){fe(e.$$.fragment)},l(t){ue(e.$$.fragment,t)},m(t,o){ce(e,t,o),l=!0},p(t,o){const m={};o&32896&&(m.$$scope={dirty:o,ctx:t}),e.$set(m)},i(t){l||(g(e.$$.fragment,t),l=!0)},o(t){y(e.$$.fragment,t),l=!1},d(t){de(e,t)}}}function Fe(s){let e;return{c(){e=ne(s[7])},l(l){e=oe(l,s[7])},m(l,t){De(l,e,t)},p(l,t){t&128&&re(e,l[7])},d(l){l&&I(e)}}}function Ge(s){let e,l,t,o,m,V,S,U,E,j,T,b,O,A,D,B,z,J,h,i,L,Q,r,W,me,f=s[4]&&Te(s);const X=s[12].summary,v=x(X,s,s[15],Ee),Y=s[12].action,p=x(Y,s,s[15],ye);let u=!s[6]&&Ie(s),c=s[7]&&Oe(s);const Z=s[12].default,k=x(Z,s,s[15],null);let w=[{class:Q="flex w-full cursor-default flex-col rounded-xl border-2 border-gray-900 bg-white p-4 text-primary "+s[8]},s[10]],R={};for(let a=0;a{f=null}),le()),(!r||n&2)&&re(V,a[1]),v&&v.p&&(!r||n&32768)&&te(v,X,a,a[15],r?se(X,a[15],n,ze):ae(a[15]),Ee),p&&p.p&&(!r||n&32768)&&te(p,Y,a,a[15],r?se(Y,a[15],n,je):ae(a[15]),ye),a[6]?u&&(ee(),y(u,1,1,()=>{u=null}),le()):u?(u.p(a,n),n&64&&g(u,1)):(u=Ie(a),u.c(),g(u,1),u.m(t,null)),a[7]?c?(c.p(a,n),n&128&&g(c,1)):(c=Oe(a),c.c(),g(c,1),c.m(b,O)):c&&(ee(),y(c,1,1,()=>{c=null}),le()),(!r||n&8)&&re(A,a[3]),(!r||n&4&&D!==(D=a[2]+"-trigger"))&&d(l,"id",D),(!r||n&1)&&d(l,"aria-expanded",a[0]),(!r||n&4&&B!==(B=a[2]+"-content"))&&d(l,"aria-controls",B),(!r||n&96&&z!==(z=a[5]||a[6]))&&(l.disabled=z),k&&k.p&&(!r||n&32768)&&te(k,Z,a,a[15],r?se(Z,a[15],n,null):ae(a[15]),null),(!r||n&4&&i!==(i=a[2]+"-content"))&&d(h,"id",i),(!r||n&4&&L!==(L=a[2]+"-trigger"))&&d(h,"aria-labelledby",L),(!r||n&1)&&be(h,"hidden",!a[0]),he(e,R=Pe(w,[(!r||n&256&&Q!==(Q="flex w-full cursor-default flex-col rounded-xl border-2 border-gray-900 bg-white p-4 text-primary "+a[8]))&&{class:Q},n&1024&&a[10]]))},i(a){r||(g(f),g(v,a),g(p,a),g(u),g(c),g(k,a),r=!0)},o(a){y(f),y(v,a),y(p,a),y(u),y(c),y(k,a),r=!1},d(a){a&&I(e),f&&f.d(),v&&v.d(a),p&&p.d(a),u&&u.d(),c&&c.d(),k&&k.d(a),W=!1,qe(me)}}}function Je(s,e,l){const t=["title","id","subtitle","icon","open","disabled","readOnly","error","onToggle","class"];let o=pe(e,t),{$$slots:m={},$$scope:V}=e,{title:S}=e,{id:U=Ue()}=e,{subtitle:E=""}=e,{icon:j=null}=e,{open:T=!1}=e,{disabled:b=!1}=e,{readOnly:O=!1}=e,{error:A=""}=e,{onToggle:D=He}=e,{class:B=""}=e;const z=()=>{b||O||(l(0,T=!T),D())};function J(i){ke.call(this,s,i)}function h(i){ke.call(this,s,i)}return s.$$set=i=>{e=ie(ie({},e),Ce(i)),l(10,o=pe(e,t)),"title"in i&&l(1,S=i.title),"id"in i&&l(2,U=i.id),"subtitle"in i&&l(3,E=i.subtitle),"icon"in i&&l(4,j=i.icon),"open"in i&&l(0,T=i.open),"disabled"in i&&l(5,b=i.disabled),"readOnly"in i&&l(6,O=i.readOnly),"error"in i&&l(7,A=i.error),"onToggle"in i&&l(11,D=i.onToggle),"class"in i&&l(8,B=i.class),"$$scope"in i&&l(15,V=i.$$scope)},s.$$.update=()=>{s.$$.dirty&33&&l(0,T=b?!0:T)},[T,S,U,E,j,b,O,A,B,z,o,D,m,J,h,V]}class Me extends Ae{constructor(e){super(),Be(this,e,Je,Ge,Ne,{title:1,id:2,subtitle:3,icon:4,open:0,disabled:5,readOnly:6,error:7,onToggle:11,class:8})}}export{Me as A}; +import{S as Ae,b as Be,a as Ne,G as x,N as ie,m as N,c as P,w as ne,p as q,q as C,d as H,x as oe,k as I,u as d,P as be,O as he,f as De,L as _,Q as $,$ as ve,j as g,z as ee,g as y,h as le,y as re,H as te,I as ae,J as se,R as Pe,r as qe,T as pe,U as Ce,C as fe,D as ue,E as ce,F as de,n as He,V as ke}from"./index.4e2fcbc7.js";import{B as Se}from"./badge.96e01a15.js";import{I as Ve}from"./icon.e8aa24c8.js";import{v as Ue}from"./toaster.de22ba12.js";const je=s=>({}),ye=s=>({}),ze=s=>({}),Ee=s=>({});function Te(s){let e,l;return e=new Ve({props:{name:s[4]}}),{c(){fe(e.$$.fragment)},l(t){ue(e.$$.fragment,t)},m(t,o){ce(e,t,o),l=!0},p(t,o){const m={};o&16&&(m.name=t[4]),e.$set(m)},i(t){l||(g(e.$$.fragment,t),l=!0)},o(t){y(e.$$.fragment,t),l=!1},d(t){de(e,t)}}}function Ie(s){let e,l;return e=new Ve({props:{name:s[0]?"chevron-up":"chevron-down",class:"rounded-full from-blue-100 to-purple-100 hover:bg-gradient-to-br "+(s[5]?"text-gray-500":"text-primary")}}),{c(){fe(e.$$.fragment)},l(t){ue(e.$$.fragment,t)},m(t,o){ce(e,t,o),l=!0},p(t,o){const m={};o&1&&(m.name=t[0]?"chevron-up":"chevron-down"),o&32&&(m.class="rounded-full from-blue-100 to-purple-100 hover:bg-gradient-to-br "+(t[5]?"text-gray-500":"text-primary")),e.$set(m)},i(t){l||(g(e.$$.fragment,t),l=!0)},o(t){y(e.$$.fragment,t),l=!1},d(t){de(e,t)}}}function Oe(s){let e,l;return e=new Se({props:{class:"mr-2",type:"error",$$slots:{default:[Fe]},$$scope:{ctx:s}}}),{c(){fe(e.$$.fragment)},l(t){ue(e.$$.fragment,t)},m(t,o){ce(e,t,o),l=!0},p(t,o){const m={};o&32896&&(m.$$scope={dirty:o,ctx:t}),e.$set(m)},i(t){l||(g(e.$$.fragment,t),l=!0)},o(t){y(e.$$.fragment,t),l=!1},d(t){de(e,t)}}}function Fe(s){let e;return{c(){e=ne(s[7])},l(l){e=oe(l,s[7])},m(l,t){De(l,e,t)},p(l,t){t&128&&re(e,l[7])},d(l){l&&I(e)}}}function Ge(s){let e,l,t,o,m,V,S,U,E,j,T,b,O,A,D,B,z,J,h,i,L,Q,r,W,me,f=s[4]&&Te(s);const X=s[12].summary,v=x(X,s,s[15],Ee),Y=s[12].action,p=x(Y,s,s[15],ye);let u=!s[6]&&Ie(s),c=s[7]&&Oe(s);const Z=s[12].default,k=x(Z,s,s[15],null);let w=[{class:Q="flex w-full cursor-default flex-col rounded-xl border-2 border-gray-900 bg-white p-4 text-primary "+s[8]},s[10]],R={};for(let a=0;a{f=null}),le()),(!r||n&2)&&re(V,a[1]),v&&v.p&&(!r||n&32768)&&te(v,X,a,a[15],r?se(X,a[15],n,ze):ae(a[15]),Ee),p&&p.p&&(!r||n&32768)&&te(p,Y,a,a[15],r?se(Y,a[15],n,je):ae(a[15]),ye),a[6]?u&&(ee(),y(u,1,1,()=>{u=null}),le()):u?(u.p(a,n),n&64&&g(u,1)):(u=Ie(a),u.c(),g(u,1),u.m(t,null)),a[7]?c?(c.p(a,n),n&128&&g(c,1)):(c=Oe(a),c.c(),g(c,1),c.m(b,O)):c&&(ee(),y(c,1,1,()=>{c=null}),le()),(!r||n&8)&&re(A,a[3]),(!r||n&4&&D!==(D=a[2]+"-trigger"))&&d(l,"id",D),(!r||n&1)&&d(l,"aria-expanded",a[0]),(!r||n&4&&B!==(B=a[2]+"-content"))&&d(l,"aria-controls",B),(!r||n&96&&z!==(z=a[5]||a[6]))&&(l.disabled=z),k&&k.p&&(!r||n&32768)&&te(k,Z,a,a[15],r?se(Z,a[15],n,null):ae(a[15]),null),(!r||n&4&&i!==(i=a[2]+"-content"))&&d(h,"id",i),(!r||n&4&&L!==(L=a[2]+"-trigger"))&&d(h,"aria-labelledby",L),(!r||n&1)&&be(h,"hidden",!a[0]),he(e,R=Pe(w,[(!r||n&256&&Q!==(Q="flex w-full cursor-default flex-col rounded-xl border-2 border-gray-900 bg-white p-4 text-primary "+a[8]))&&{class:Q},n&1024&&a[10]]))},i(a){r||(g(f),g(v,a),g(p,a),g(u),g(c),g(k,a),r=!0)},o(a){y(f),y(v,a),y(p,a),y(u),y(c),y(k,a),r=!1},d(a){a&&I(e),f&&f.d(),v&&v.d(a),p&&p.d(a),u&&u.d(),c&&c.d(),k&&k.d(a),W=!1,qe(me)}}}function Je(s,e,l){const t=["title","id","subtitle","icon","open","disabled","readOnly","error","onToggle","class"];let o=pe(e,t),{$$slots:m={},$$scope:V}=e,{title:S}=e,{id:U=Ue()}=e,{subtitle:E=""}=e,{icon:j=null}=e,{open:T=!1}=e,{disabled:b=!1}=e,{readOnly:O=!1}=e,{error:A=""}=e,{onToggle:D=He}=e,{class:B=""}=e;const z=()=>{b||O||(l(0,T=!T),D())};function J(i){ke.call(this,s,i)}function h(i){ke.call(this,s,i)}return s.$$set=i=>{e=ie(ie({},e),Ce(i)),l(10,o=pe(e,t)),"title"in i&&l(1,S=i.title),"id"in i&&l(2,U=i.id),"subtitle"in i&&l(3,E=i.subtitle),"icon"in i&&l(4,j=i.icon),"open"in i&&l(0,T=i.open),"disabled"in i&&l(5,b=i.disabled),"readOnly"in i&&l(6,O=i.readOnly),"error"in i&&l(7,A=i.error),"onToggle"in i&&l(11,D=i.onToggle),"class"in i&&l(8,B=i.class),"$$scope"in i&&l(15,V=i.$$scope)},s.$$.update=()=>{s.$$.dirty&33&&l(0,T=b?!0:T)},[T,S,U,E,j,b,O,A,B,z,o,D,m,J,h,V]}class Me extends Ae{constructor(e){super(),Be(this,e,Je,Ge,Ne,{title:1,id:2,subtitle:3,icon:4,open:0,disabled:5,readOnly:6,error:7,onToggle:11,class:8})}}export{Me as A}; diff --git a/ui/assets/local/_app/immutable/chunks/auth-user.9757f5e9.js b/ui/assets/local/_app/immutable/chunks/auth-user.ce52bc5e.js similarity index 81% rename from ui/assets/local/_app/immutable/chunks/auth-user.9757f5e9.js rename to ui/assets/local/_app/immutable/chunks/auth-user.ce52bc5e.js index b4f58b27cc..2d1702ba27 100644 --- a/ui/assets/local/_app/immutable/chunks/auth-user.9757f5e9.js +++ b/ui/assets/local/_app/immutable/chunks/auth-user.ce52bc5e.js @@ -1 +1 @@ -import{ac as n}from"./index.4e2fcbc7.js";import{p as i}from"./persist-store.2e269d08.js";const s=i("AuthUser",{}),m=()=>n(s),p=t=>{const{accessToken:e,idToken:r,name:o,email:a,picture:c}=t;if(!e)throw new Error("No access token");s.set({accessToken:e,idToken:r,name:o,email:a,picture:c})},U=()=>{s.set({})};export{s as a,U as c,m as g,p as s}; +import{ac as n}from"./index.4e2fcbc7.js";import{p as i}from"./persist-store.8930b3b5.js";const s=i("AuthUser",{}),m=()=>n(s),p=t=>{const{accessToken:e,idToken:r,name:o,email:a,picture:c}=t;if(!e)throw new Error("No access token");s.set({accessToken:e,idToken:r,name:o,email:a,picture:c})},U=()=>{s.set({})};export{s as a,U as c,m as g,p as s}; diff --git a/ui/assets/local/_app/immutable/chunks/batch-operations.79b667c0.js b/ui/assets/local/_app/immutable/chunks/batch-operations.fbef62e1.js similarity index 87% rename from ui/assets/local/_app/immutable/chunks/batch-operations.79b667c0.js rename to ui/assets/local/_app/immutable/chunks/batch-operations.fbef62e1.js index f79ecabbe0..404c3e0686 100644 --- a/ui/assets/local/_app/immutable/chunks/batch-operations.79b667c0.js +++ b/ui/assets/local/_app/immutable/chunks/batch-operations.fbef62e1.js @@ -1 +1 @@ -import{w as b}from"./singletons.fb5f332e.js";import{ac as p}from"./index.4e2fcbc7.js";import{A as a}from"./workflow-actions.6f88149c.js";import{g as d}from"./auth-user.9757f5e9.js";import{p as h}from"./persist-store.2e269d08.js";import{t as I}from"./versions.78cca4ad.js";import{s as u}from"./parse-with-big-int.0036a80a.js";import{r as c,a as i}from"./route-for-api.60228029.js";import{i as w}from"./version-check.d006b302.js";const y=e=>e.map(o=>o.runId).reduce((o,r,n,m)=>(o+=`RunId="${r}"`,n!==m.length-1&&(o+=" OR "),o),""),T=e=>{const t=d().email;switch(e){case a.Cancel:return{cancellationOperation:{identity:t}};case a.Terminate:return{terminationOperation:{identity:t}};default:return{}}},O=({id:e,runId:t})=>({workflowId:e,runId:t}),f=(e,t)=>{const o={jobId:t.jobId,namespace:t.namespace,reason:t.reason,...T(e)};if(t.workflows)return w(p(I),"1.19")?{...o,executions:t.workflows.map(O)}:{...o,visibilityQuery:y(t.workflows)};if(t.query)return{...o,visibilityQuery:t.query}};async function v(e){const t=c("batch-operations",{namespace:e.namespace,batchJobId:e.jobId}),o=f(a.Cancel,e);await i(t,{options:{method:"POST",body:u(o)},notifyOnError:!1}),s.set({jobId:o.jobId,namespace:o.namespace})}async function E(e){const t=c("batch-operations",{namespace:e.namespace,batchJobId:e.jobId}),o=f(a.Terminate,e);await i(t,{options:{method:"POST",body:u(o)},notifyOnError:!1}),s.set({jobId:o.jobId,namespace:o.namespace})}async function l({namespace:e,jobId:t}){return new Promise((o,r)=>{k({namespace:e,jobId:t}).then(({state:n,completeOperationCount:m})=>{n==="Failed"?r():n!=="Running"?o(m):setTimeout(()=>{try{o(l({namespace:e,jobId:t}))}catch{r()}},5e3)})})}async function k({jobId:e,namespace:t},o=fetch){const r=c("batch-operations",{namespace:t,batchJobId:e}),n=await i(r,{request:o});return C(n)}const C=e=>({...e,startTime:e.startTime,closeTime:e.closeTime,totalOperationCount:parseInt(e.totalOperationCount,10),completeOperationCount:parseInt(e.completeOperationCount,10),failureOperationCount:parseInt(e.failureOperationCount,10)});async function Q(e,t=fetch){const o=c("batch-operations.list",{namespace:e,batchJobId:""}),r=await i(o,{request:t});return{nextPageToken:r.nextPageToken,operations:r.operationInfo?r.operationInfo.map(g):[]}}const g=e=>({startTime:e.startTime,closeTime:e.closeTime,jobId:e.jobId,state:e.state}),s=b();s.subscribe(async e=>{e&&await l(e).then(()=>s.set(void 0))});const V=h("auto-refresh-batch-operation",!1);export{V as a,E as b,v as c,k as d,s as i,Q as l}; +import{w as b}from"./singletons.13b3836d.js";import{ac as p}from"./index.4e2fcbc7.js";import{A as a}from"./workflow-actions.6f88149c.js";import{g as d}from"./auth-user.ce52bc5e.js";import{p as h}from"./persist-store.8930b3b5.js";import{t as I}from"./versions.6cca9ce8.js";import{s as u}from"./parse-with-big-int.0036a80a.js";import{r as c,a as i}from"./route-for-api.d45de563.js";import{i as w}from"./version-check.d006b302.js";const y=e=>e.map(o=>o.runId).reduce((o,r,n,m)=>(o+=`RunId="${r}"`,n!==m.length-1&&(o+=" OR "),o),""),T=e=>{const t=d().email;switch(e){case a.Cancel:return{cancellationOperation:{identity:t}};case a.Terminate:return{terminationOperation:{identity:t}};default:return{}}},O=({id:e,runId:t})=>({workflowId:e,runId:t}),f=(e,t)=>{const o={jobId:t.jobId,namespace:t.namespace,reason:t.reason,...T(e)};if(t.workflows)return w(p(I),"1.19")?{...o,executions:t.workflows.map(O)}:{...o,visibilityQuery:y(t.workflows)};if(t.query)return{...o,visibilityQuery:t.query}};async function v(e){const t=c("batch-operations",{namespace:e.namespace,batchJobId:e.jobId}),o=f(a.Cancel,e);await i(t,{options:{method:"POST",body:u(o)},notifyOnError:!1}),s.set({jobId:o.jobId,namespace:o.namespace})}async function E(e){const t=c("batch-operations",{namespace:e.namespace,batchJobId:e.jobId}),o=f(a.Terminate,e);await i(t,{options:{method:"POST",body:u(o)},notifyOnError:!1}),s.set({jobId:o.jobId,namespace:o.namespace})}async function l({namespace:e,jobId:t}){return new Promise((o,r)=>{k({namespace:e,jobId:t}).then(({state:n,completeOperationCount:m})=>{n==="Failed"?r():n!=="Running"?o(m):setTimeout(()=>{try{o(l({namespace:e,jobId:t}))}catch{r()}},5e3)})})}async function k({jobId:e,namespace:t},o=fetch){const r=c("batch-operations",{namespace:t,batchJobId:e}),n=await i(r,{request:o});return C(n)}const C=e=>({...e,startTime:e.startTime,closeTime:e.closeTime,totalOperationCount:parseInt(e.totalOperationCount,10),completeOperationCount:parseInt(e.completeOperationCount,10),failureOperationCount:parseInt(e.failureOperationCount,10)});async function Q(e,t=fetch){const o=c("batch-operations.list",{namespace:e,batchJobId:""}),r=await i(o,{request:t});return{nextPageToken:r.nextPageToken,operations:r.operationInfo?r.operationInfo.map(g):[]}}const g=e=>({startTime:e.startTime,closeTime:e.closeTime,jobId:e.jobId,state:e.state}),s=b();s.subscribe(async e=>{e&&await l(e).then(()=>s.set(void 0))});const V=h("auto-refresh-batch-operation",!1);export{V as a,E as b,v as c,k as d,s as i,Q as l}; diff --git a/ui/assets/local/_app/immutable/chunks/code-block.d389dfc4.js b/ui/assets/local/_app/immutable/chunks/code-block.55adac36.js similarity index 99% rename from ui/assets/local/_app/immutable/chunks/code-block.d389dfc4.js rename to ui/assets/local/_app/immutable/chunks/code-block.55adac36.js index 7bca82fe38..ccfeacf6f2 100644 --- a/ui/assets/local/_app/immutable/chunks/code-block.d389dfc4.js +++ b/ui/assets/local/_app/immutable/chunks/code-block.55adac36.js @@ -1,4 +1,4 @@ -import{S as ta,b as ea,a as ia,N as In,m as _s,c as na,p as Xs,q as Ys,k as dn,d as sa,O as Zs,P as ni,u as ra,f as oa,L as tr,Q as la,$ as ha,R as aa,j as vi,z as fa,g as Nn,h as ca,T as er,M as ua,K as da,o as pa,U as ir,C as ga,D as ma,E as ya,F as ba,V as wa,A as ka}from"./index.4e2fcbc7.js";import{B as xa}from"./button.a1f9786a.js";import{c as Sa}from"./copy-to-clipboard.35a8cf56.js";import{p as va,s as Ca}from"./parse-with-big-int.0036a80a.js";import{c as it}from"./icon.e8aa24c8.js";class N{constructor(){}lineAt(t){if(t<0||t>this.length)throw new RangeError(`Invalid position ${t} in document of length ${this.length}`);return this.lineInner(t,!1,1,0)}line(t){if(t<1||t>this.lines)throw new RangeError(`Invalid line number ${t} in ${this.lines}-line document`);return this.lineInner(t,!0,1,0)}replace(t,e,i){let n=[];return this.decompose(0,t,n,2),i.length&&i.decompose(0,i.length,n,3),this.decompose(e,this.length,n,1),It.from(n,this.length-(e-t)+i.length)}append(t){return this.replace(this.length,this.length,t)}slice(t,e=this.length){let i=[];return this.decompose(t,e,i,0),It.from(i,e-t)}eq(t){if(t==this)return!0;if(t.length!=this.length||t.lines!=this.lines)return!1;let e=this.scanIdentical(t,1),i=this.length-this.scanIdentical(t,-1),n=new Ue(this),r=new Ue(t);for(let o=e,l=e;;){if(n.next(o),r.next(o),o=0,n.lineBreak!=r.lineBreak||n.done!=r.done||n.value!=r.value)return!1;if(l+=n.value.length,n.done||l>=i)return!0}}iter(t=1){return new Ue(this,t)}iterRange(t,e=this.length){return new No(this,t,e)}iterLines(t,e){let i;if(t==null)i=this.iter();else{e==null&&(e=this.lines+1);let n=this.line(t).from;i=this.iterRange(n,Math.max(n,e==this.lines+1?this.length:e<=1?0:this.line(e-1).to))}return new Lo(i)}toString(){return this.sliceString(0)}toJSON(){let t=[];return this.flatten(t),t}static of(t){if(t.length==0)throw new RangeError("A document must have at least one line");return t.length==1&&!t[0]?N.empty:t.length<=32?new U(t):It.from(U.split(t,[]))}}class U extends N{constructor(t,e=Aa(t)){super(),this.text=t,this.length=e}get lines(){return this.text.length}get children(){return null}lineInner(t,e,i,n){for(let r=0;;r++){let o=this.text[r],l=n+o.length;if((e?i:l)>=t)return new Oa(n,l,i,o);n=l+1,i++}}decompose(t,e,i,n){let r=t<=0&&e>=this.length?this:new U(nr(this.text,t,e),Math.min(e,this.length)-Math.max(0,t));if(n&1){let o=i.pop(),l=Ci(r.text,o.text.slice(),0,r.length);if(l.length<=32)i.push(new U(l,o.length+r.length));else{let h=l.length>>1;i.push(new U(l.slice(0,h)),new U(l.slice(h)))}}else i.push(r)}replace(t,e,i){if(!(i instanceof U))return super.replace(t,e,i);let n=Ci(this.text,Ci(i.text,nr(this.text,0,t)),e),r=this.length+i.length-(e-t);return n.length<=32?new U(n,r):It.from(U.split(n,[]),r)}sliceString(t,e=this.length,i=` +import{S as ta,b as ea,a as ia,N as In,m as _s,c as na,p as Xs,q as Ys,k as dn,d as sa,O as Zs,P as ni,u as ra,f as oa,L as tr,Q as la,$ as ha,R as aa,j as vi,z as fa,g as Nn,h as ca,T as er,M as ua,K as da,o as pa,U as ir,C as ga,D as ma,E as ya,F as ba,V as wa,A as ka}from"./index.4e2fcbc7.js";import{B as xa}from"./button.a1f9786a.js";import{c as Sa}from"./copy-to-clipboard.a310d1bd.js";import{p as va,s as Ca}from"./parse-with-big-int.0036a80a.js";import{c as it}from"./icon.e8aa24c8.js";class N{constructor(){}lineAt(t){if(t<0||t>this.length)throw new RangeError(`Invalid position ${t} in document of length ${this.length}`);return this.lineInner(t,!1,1,0)}line(t){if(t<1||t>this.lines)throw new RangeError(`Invalid line number ${t} in ${this.lines}-line document`);return this.lineInner(t,!0,1,0)}replace(t,e,i){let n=[];return this.decompose(0,t,n,2),i.length&&i.decompose(0,i.length,n,3),this.decompose(e,this.length,n,1),It.from(n,this.length-(e-t)+i.length)}append(t){return this.replace(this.length,this.length,t)}slice(t,e=this.length){let i=[];return this.decompose(t,e,i,0),It.from(i,e-t)}eq(t){if(t==this)return!0;if(t.length!=this.length||t.lines!=this.lines)return!1;let e=this.scanIdentical(t,1),i=this.length-this.scanIdentical(t,-1),n=new Ue(this),r=new Ue(t);for(let o=e,l=e;;){if(n.next(o),r.next(o),o=0,n.lineBreak!=r.lineBreak||n.done!=r.done||n.value!=r.value)return!1;if(l+=n.value.length,n.done||l>=i)return!0}}iter(t=1){return new Ue(this,t)}iterRange(t,e=this.length){return new No(this,t,e)}iterLines(t,e){let i;if(t==null)i=this.iter();else{e==null&&(e=this.lines+1);let n=this.line(t).from;i=this.iterRange(n,Math.max(n,e==this.lines+1?this.length:e<=1?0:this.line(e-1).to))}return new Lo(i)}toString(){return this.sliceString(0)}toJSON(){let t=[];return this.flatten(t),t}static of(t){if(t.length==0)throw new RangeError("A document must have at least one line");return t.length==1&&!t[0]?N.empty:t.length<=32?new U(t):It.from(U.split(t,[]))}}class U extends N{constructor(t,e=Aa(t)){super(),this.text=t,this.length=e}get lines(){return this.text.length}get children(){return null}lineInner(t,e,i,n){for(let r=0;;r++){let o=this.text[r],l=n+o.length;if((e?i:l)>=t)return new Oa(n,l,i,o);n=l+1,i++}}decompose(t,e,i,n){let r=t<=0&&e>=this.length?this:new U(nr(this.text,t,e),Math.min(e,this.length)-Math.max(0,t));if(n&1){let o=i.pop(),l=Ci(r.text,o.text.slice(),0,r.length);if(l.length<=32)i.push(new U(l,o.length+r.length));else{let h=l.length>>1;i.push(new U(l.slice(0,h)),new U(l.slice(h)))}}else i.push(r)}replace(t,e,i){if(!(i instanceof U))return super.replace(t,e,i);let n=Ci(this.text,Ci(i.text,nr(this.text,0,t)),e),r=this.length+i.length-(e-t);return n.length<=32?new U(n,r):It.from(U.split(n,[]),r)}sliceString(t,e=this.length,i=` `){let n="";for(let r=0,o=0;r<=e&&ot&&o&&(n+=i),tr&&(n+=l.slice(Math.max(0,t-r),e-r)),r=h+1}return n}flatten(t){for(let e of this.text)t.push(e)}scanIdentical(){return 0}static split(t,e){let i=[],n=-1;for(let r of t)i.push(r),n+=r.length+1,i.length==32&&(e.push(new U(i,n)),i=[],n=-1);return n>-1&&e.push(new U(i,n)),e}}class It extends N{constructor(t,e){super(),this.children=t,this.length=e,this.lines=0;for(let i of t)this.lines+=i.lines}lineInner(t,e,i,n){for(let r=0;;r++){let o=this.children[r],l=n+o.length,h=i+o.lines-1;if((e?h:l)>=t)return o.lineInner(t,e,i,n);n=l+1,i=h+1}}decompose(t,e,i,n){for(let r=0,o=0;o<=e&&r=o){let a=n&((o<=t?1:0)|(h>=e?2:0));o>=t&&h<=e&&!a?i.push(l):l.decompose(t-o,e-o,i,a)}o=h+1}}replace(t,e,i){if(i.lines=r&&e<=l){let h=o.replace(t-r,e-r,i),a=this.lines-o.lines+h.lines;if(h.lines>5-1&&h.lines>a>>5+1){let f=this.children.slice();return f[n]=h,new It(f,this.length-(e-t)+i.length)}return super.replace(r,l,h)}r=l+1}return super.replace(t,e,i)}sliceString(t,e=this.length,i=` `){let n="";for(let r=0,o=0;rt&&r&&(n+=i),to&&(n+=l.sliceString(t-o,e-o,i)),o=h+1}return n}flatten(t){for(let e of this.children)e.flatten(t)}scanIdentical(t,e){if(!(t instanceof It))return 0;let i=0,[n,r,o,l]=e>0?[0,0,this.children.length,t.children.length]:[this.children.length-1,t.children.length-1,-1,-1];for(;;n+=e,r+=e){if(n==o||r==l)return i;let h=this.children[n],a=t.children[r];if(h!=a)return i+h.scanIdentical(a,e);i+=h.length+1}}static from(t,e=t.reduce((i,n)=>i+n.length+1,-1)){let i=0;for(let d of t)i+=d.lines;if(i<32){let d=[];for(let p of t)p.flatten(d);return new U(d,e)}let n=Math.max(32,i>>5),r=n<<1,o=n>>1,l=[],h=0,a=-1,f=[];function c(d){let p;if(d.lines>r&&d instanceof It)for(let m of d.children)c(m);else d.lines>o&&(h>o||!h)?(u(),l.push(d)):d instanceof U&&h&&(p=f[f.length-1])instanceof U&&d.lines+p.lines<=32?(h+=d.lines,a+=d.length+1,f[f.length-1]=new U(p.text.concat(d.text),p.length+1+d.length)):(h+d.lines>n&&u(),h+=d.lines,a+=d.length+1,f.push(d))}function u(){h!=0&&(l.push(f.length==1?f[0]:It.from(f,a)),a=-1,h=f.length=0)}for(let d of t)c(d);return u(),l.length==1?l[0]:new It(l,e)}}N.empty=new U([""],0);function Aa(s){let t=-1;for(let e of s)t+=e.length+1;return t}function Ci(s,t,e=0,i=1e9){for(let n=0,r=0,o=!0;r=e&&(h>i&&(l=l.slice(0,i-n)),n0?1:(t instanceof U?t.text.length:t.children.length)<<1]}nextInner(t,e){for(this.done=this.lineBreak=!1;;){let i=this.nodes.length-1,n=this.nodes[i],r=this.offsets[i],o=r>>1,l=n instanceof U?n.text.length:n.children.length;if(o==(e>0?l:0)){if(i==0)return this.done=!0,this.value="",this;e>0&&this.offsets[i-1]++,this.nodes.pop(),this.offsets.pop()}else if((r&1)==(e>0?0:1)){if(this.offsets[i]+=e,t==0)return this.lineBreak=!0,this.value=` `,this;t--}else if(n instanceof U){let h=n.text[o+(e<0?-1:0)];if(this.offsets[i]+=e,h.length>Math.max(0,t))return this.value=t==0?h:e>0?h.slice(t):h.slice(0,h.length-t),this;t-=h.length}else{let h=n.children[o+(e<0?-1:0)];t>h.length?(t-=h.length,this.offsets[i]+=e):(e<0&&this.offsets[i]--,this.nodes.push(h),this.offsets.push(e>0?1:(h instanceof U?h.text.length:h.children.length)<<1))}}}next(t=0){return t<0&&(this.nextInner(-t,-this.dir),t=this.value.length),this.nextInner(t,this.dir)}}class No{constructor(t,e,i){this.value="",this.done=!1,this.cursor=new Ue(t,e>i?-1:1),this.pos=e>i?t.length:0,this.from=Math.min(e,i),this.to=Math.max(e,i)}nextInner(t,e){if(e<0?this.pos<=this.from:this.pos>=this.to)return this.value="",this.done=!0,this;t+=Math.max(0,e<0?this.pos-this.to:this.from-this.pos);let i=e<0?this.pos-this.from:this.to-this.pos;t>i&&(t=i),i-=t;let{value:n}=this.cursor.next(t);return this.pos+=(n.length+t)*e,this.value=n.length<=i?n:e<0?n.slice(n.length-i):n.slice(0,i),this.done=!this.value,this}next(t=0){return t<0?t=Math.max(t,this.from-this.pos):t>0&&(t=Math.min(t,this.to-this.pos)),this.nextInner(t,this.cursor.dir)}get lineBreak(){return this.cursor.lineBreak&&this.value!=""}}class Lo{constructor(t){this.inner=t,this.afterBreak=!0,this.value="",this.done=!1}next(t=0){let{done:e,lineBreak:i,value:n}=this.inner.next(t);return e?(this.done=!0,this.value=""):i?this.afterBreak?this.value="":(this.afterBreak=!0,this.next()):(this.value=n,this.afterBreak=!1),this}get lineBreak(){return!1}}typeof Symbol<"u"&&(N.prototype[Symbol.iterator]=function(){return this.iter()},Ue.prototype[Symbol.iterator]=No.prototype[Symbol.iterator]=Lo.prototype[Symbol.iterator]=function(){return this});class Oa{constructor(t,e,i,n){this.from=t,this.to=e,this.number=i,this.text=n}get length(){return this.to-this.from}}let Se="lc,34,7n,7,7b,19,,,,2,,2,,,20,b,1c,l,g,,2t,7,2,6,2,2,,4,z,,u,r,2j,b,1m,9,9,,o,4,,9,,3,,5,17,3,3b,f,,w,1j,,,,4,8,4,,3,7,a,2,t,,1m,,,,2,4,8,,9,,a,2,q,,2,2,1l,,4,2,4,2,2,3,3,,u,2,3,,b,2,1l,,4,5,,2,4,,k,2,m,6,,,1m,,,2,,4,8,,7,3,a,2,u,,1n,,,,c,,9,,14,,3,,1l,3,5,3,,4,7,2,b,2,t,,1m,,2,,2,,3,,5,2,7,2,b,2,s,2,1l,2,,,2,4,8,,9,,a,2,t,,20,,4,,2,3,,,8,,29,,2,7,c,8,2q,,2,9,b,6,22,2,r,,,,,,1j,e,,5,,2,5,b,,10,9,,2u,4,,6,,2,2,2,p,2,4,3,g,4,d,,2,2,6,,f,,jj,3,qa,3,t,3,t,2,u,2,1s,2,,7,8,,2,b,9,,19,3,3b,2,y,,3a,3,4,2,9,,6,3,63,2,2,,1m,,,7,,,,,2,8,6,a,2,,1c,h,1r,4,1c,7,,,5,,14,9,c,2,w,4,2,2,,3,1k,,,2,3,,,3,1m,8,2,2,48,3,,d,,7,4,,6,,3,2,5i,1m,,5,ek,,5f,x,2da,3,3x,,2o,w,fe,6,2x,2,n9w,4,,a,w,2,28,2,7k,,3,,4,,p,2,5,,47,2,q,i,d,,12,8,p,b,1a,3,1c,,2,4,2,2,13,,1v,6,2,2,2,2,c,,8,,1b,,1f,,,3,2,2,5,2,,,16,2,8,,6m,,2,,4,,fn4,,kh,g,g,g,a6,2,gt,,6a,,45,5,1ae,3,,2,5,4,14,3,4,,4l,2,fx,4,ar,2,49,b,4w,,1i,f,1k,3,1d,4,2,2,1x,3,10,5,,8,1q,,c,2,1g,9,a,4,2,,2n,3,2,,,2,6,,4g,,3,8,l,2,1l,2,,,,,m,,e,7,3,5,5f,8,2,3,,,n,,29,,2,6,,,2,,,2,,2,6j,,2,4,6,2,,2,r,2,2d,8,2,,,2,2y,,,,2,6,,,2t,3,2,4,,5,77,9,,2,6t,,a,2,,,4,,40,4,2,2,4,,w,a,14,6,2,4,8,,9,6,2,3,1a,d,,2,ba,7,,6,,,2a,m,2,7,,2,,2,3e,6,3,,,2,,7,,,20,2,3,,,,9n,2,f0b,5,1n,7,t4,,1r,4,29,,f5k,2,43q,,,3,4,5,8,8,2,7,u,4,44,3,1iz,1j,4,1e,8,,e,,m,5,,f,11s,7,,h,2,7,,2,,5,79,7,c5,4,15s,7,31,7,240,5,gx7k,2o,3k,6o".split(",").map(s=>s?parseInt(s,36):1);for(let s=1;ss)return Se[t-1]<=s;return!1}function sr(s){return s>=127462&&s<=127487}const rr=8205;function gt(s,t,e=!0,i=!0){return(e?Vo:Ta)(s,t,i)}function Vo(s,t,e){if(t==s.length)return t;t&&Fo(s.charCodeAt(t))&&zo(s.charCodeAt(t-1))&&t--;let i=dt(s,t);for(t+=Mt(i);t=0&&sr(dt(s,o));)r++,o-=2;if(r%2==0)break;t+=2}else break}return t}function Ta(s,t,e){for(;t>0;){let i=Vo(s,t-2,e);if(i=56320&&s<57344}function zo(s){return s>=55296&&s<56320}function dt(s,t){let e=s.charCodeAt(t);if(!zo(e)||t+1==s.length)return e;let i=s.charCodeAt(t+1);return Fo(i)?(e-55296<<10)+(i-56320)+65536:e}function Ho(s){return s<=65535?String.fromCharCode(s):(s-=65536,String.fromCharCode((s>>10)+55296,(s&1023)+56320))}function Mt(s){return s<65536?1:2}const Ln=/\r\n?|\n/;var ft=function(s){return s[s.Simple=0]="Simple",s[s.TrackDel=1]="TrackDel",s[s.TrackBefore=2]="TrackBefore",s[s.TrackAfter=3]="TrackAfter",s}(ft||(ft={}));class Lt{constructor(t){this.sections=t}get length(){let t=0;for(let e=0;et)return r+(t-n);r+=l}else{if(i!=ft.Simple&&a>=t&&(i==ft.TrackDel&&nt||i==ft.TrackBefore&&nt))return null;if(a>t||a==t&&e<0&&!l)return t==n||e<0?r:r+h;r+=h}n=a}if(t>n)throw new RangeError(`Position ${t} is out of range for changeset of length ${n}`);return r}touchesRange(t,e=t){for(let i=0,n=0;i=0&&n<=e&&l>=t)return ne?"cover":!0;n=l}return!1}toString(){let t="";for(let e=0;e=0?":"+n:"")}return t}toJSON(){return this.sections}static fromJSON(t){if(!Array.isArray(t)||t.length%2||t.some(e=>typeof e!="number"))throw new RangeError("Invalid JSON representation of ChangeDesc");return new Lt(t)}static create(t){return new Lt(t)}}class $ extends Lt{constructor(t,e){super(t),this.inserted=e}apply(t){if(this.length!=t.length)throw new RangeError("Applying change set to a document with the wrong length");return Vn(this,(e,i,n,r,o)=>t=t.replace(n,n+(i-e),o),!1),t}mapDesc(t,e=!1){return Fn(this,t,e,!0)}invert(t){let e=this.sections.slice(),i=[];for(let n=0,r=0;n=0){e[n]=l,e[n+1]=o;let h=n>>1;for(;i.length0&&Jt(i,e,r.text),r.forward(f),l+=f}let a=t[o++];for(;l>1].toJSON()))}return t}static of(t,e,i){let n=[],r=[],o=0,l=null;function h(f=!1){if(!f&&!n.length)return;ou||c<0||u>e)throw new RangeError(`Invalid change range ${c} to ${u} (in doc of length ${e})`);let p=d?typeof d=="string"?N.of(d.split(i||Ln)):d:N.empty,m=p.length;if(c==u&&m==0)return;co&&nt(n,c-o,-1),nt(n,u-c,m),Jt(r,n,p),o=u}}return a(t),h(!l),l}static empty(t){return new $(t?[t,-1]:[],[])}static fromJSON(t){if(!Array.isArray(t))throw new RangeError("Invalid JSON representation of ChangeSet");let e=[],i=[];for(let n=0;nl&&typeof o!="string"))throw new RangeError("Invalid JSON representation of ChangeSet");if(r.length==1)e.push(r[0],0);else{for(;i.length=0&&e<=0&&e==s[n+1]?s[n]+=t:t==0&&s[n]==0?s[n+1]+=e:i?(s[n]+=t,s[n+1]+=e):s.push(t,e)}function Jt(s,t,e){if(e.length==0)return;let i=t.length-2>>1;if(i>1])),!(e||o==s.sections.length||s.sections[o+1]<0);)l=s.sections[o++],h=s.sections[o++];t(n,a,r,f,c),n=a,r=f}}}function Fn(s,t,e,i=!1){let n=[],r=i?[]:null,o=new Qe(s),l=new Qe(t);for(let h=-1;;)if(o.ins==-1&&l.ins==-1){let a=Math.min(o.len,l.len);nt(n,a,-1),o.forward(a),l.forward(a)}else if(l.ins>=0&&(o.ins<0||h==o.i||o.off==0&&(l.len=0&&h=0){let a=0,f=o.len;for(;f;)if(l.ins==-1){let c=Math.min(f,l.len);a+=c,f-=c,l.forward(c)}else if(l.ins==0&&l.lenh||o.ins>=0&&o.len>h)&&(l||i.length>a),r.forward2(h),o.forward(h)}}}}class Qe{constructor(t){this.set=t,this.i=0,this.next()}next(){let{sections:t}=this.set;this.i>1;return e>=t.length?N.empty:t[e]}textBit(t){let{inserted:e}=this.set,i=this.i-2>>1;return i>=e.length&&!t?N.empty:e[i].slice(this.off,t==null?void 0:this.off+t)}forward(t){t==this.len?this.next():(this.len-=t,this.off+=t)}forward2(t){this.ins==-1?this.forward(t):t==this.ins?this.next():(this.ins-=t,this.off+=t)}}class fe{constructor(t,e,i){this.from=t,this.to=e,this.flags=i}get anchor(){return this.flags&16?this.to:this.from}get head(){return this.flags&16?this.from:this.to}get empty(){return this.from==this.to}get assoc(){return this.flags&4?-1:this.flags&8?1:0}get bidiLevel(){let t=this.flags&3;return t==3?null:t}get goalColumn(){let t=this.flags>>5;return t==33554431?void 0:t}map(t,e=-1){let i,n;return this.empty?i=n=t.mapPos(this.from,e):(i=t.mapPos(this.from,1),n=t.mapPos(this.to,-1)),i==this.from&&n==this.to?this:new fe(i,n,this.flags)}extend(t,e=t){if(t<=this.anchor&&e>=this.anchor)return b.range(t,e);let i=Math.abs(t-this.anchor)>Math.abs(e-this.anchor)?t:e;return b.range(this.anchor,i)}eq(t){return this.anchor==t.anchor&&this.head==t.head}toJSON(){return{anchor:this.anchor,head:this.head}}static fromJSON(t){if(!t||typeof t.anchor!="number"||typeof t.head!="number")throw new RangeError("Invalid JSON representation for SelectionRange");return b.range(t.anchor,t.head)}static create(t,e,i){return new fe(t,e,i)}}class b{constructor(t,e){this.ranges=t,this.mainIndex=e}map(t,e=-1){return t.empty?this:b.create(this.ranges.map(i=>i.map(t,e)),this.mainIndex)}eq(t){if(this.ranges.length!=t.ranges.length||this.mainIndex!=t.mainIndex)return!1;for(let e=0;et.toJSON()),main:this.mainIndex}}static fromJSON(t){if(!t||!Array.isArray(t.ranges)||typeof t.main!="number"||t.main>=t.ranges.length)throw new RangeError("Invalid JSON representation for EditorSelection");return new b(t.ranges.map(e=>fe.fromJSON(e)),t.main)}static single(t,e=t){return new b([b.range(t,e)],0)}static create(t,e=0){if(t.length==0)throw new RangeError("A selection needs at least one range");for(let i=0,n=0;nt?4:0)|r)}static normalized(t,e=0){let i=t[e];t.sort((n,r)=>n.from-r.from),e=t.indexOf(i);for(let n=1;nr.head?b.range(h,l):b.range(l,h))}}return new b(t,e)}}function jo(s,t){for(let e of s.ranges)if(e.to>t)throw new RangeError("Selection points outside of document")}let xs=0;class M{constructor(t,e,i,n,r){this.combine=t,this.compareInput=e,this.compare=i,this.isStatic=n,this.id=xs++,this.default=t([]),this.extensions=typeof r=="function"?r(this):r}static define(t={}){return new M(t.combine||(e=>e),t.compareInput||((e,i)=>e===i),t.compare||(t.combine?(e,i)=>e===i:Ss),!!t.static,t.enables)}of(t){return new Ai([],this,0,t)}compute(t,e){if(this.isStatic)throw new Error("Can't compute a static facet");return new Ai(t,this,1,e)}computeN(t,e){if(this.isStatic)throw new Error("Can't compute a static facet");return new Ai(t,this,2,e)}from(t,e){return e||(e=i=>i),this.compute([t],i=>e(i.field(t)))}}function Ss(s,t){return s==t||s.length==t.length&&s.every((e,i)=>e===t[i])}class Ai{constructor(t,e,i,n){this.dependencies=t,this.facet=e,this.type=i,this.value=n,this.id=xs++}dynamicSlot(t){var e;let i=this.value,n=this.facet.compareInput,r=this.id,o=t[r]>>1,l=this.type==2,h=!1,a=!1,f=[];for(let c of this.dependencies)c=="doc"?h=!0:c=="selection"?a=!0:((e=t[c.id])!==null&&e!==void 0?e:1)&1||f.push(t[c.id]);return{create(c){return c.values[o]=i(c),1},update(c,u){if(h&&u.docChanged||a&&(u.docChanged||u.selection)||zn(c,f)){let d=i(c);if(l?!or(d,c.values[o],n):!n(d,c.values[o]))return c.values[o]=d,1}return 0},reconfigure:(c,u)=>{let d,p=u.config.address[r];if(p!=null){let m=Ri(u,p);if(this.dependencies.every(g=>g instanceof M?u.facet(g)===c.facet(g):g instanceof xt?u.field(g,!1)==c.field(g,!1):!0)||(l?or(d=i(c),m,n):n(d=i(c),m)))return c.values[o]=m,0}else d=i(c);return c.values[o]=d,1}}}}function or(s,t,e){if(s.length!=t.length)return!1;for(let i=0;is[h.id]),n=e.map(h=>h.type),r=i.filter(h=>!(h&1)),o=s[t.id]>>1;function l(h){let a=[];for(let f=0;fi===n),t);return t.provide&&(e.provides=t.provide(e)),e}create(t){let e=t.facet(lr).find(i=>i.field==this);return((e==null?void 0:e.create)||this.createF)(t)}slot(t){let e=t[this.id]>>1;return{create:i=>(i.values[e]=this.create(i),1),update:(i,n)=>{let r=i.values[e],o=this.updateF(r,n);return this.compareF(r,o)?0:(i.values[e]=o,1)},reconfigure:(i,n)=>n.config.address[this.id]!=null?(i.values[e]=n.field(this),0):(i.values[e]=this.create(i),1)}}init(t){return[this,lr.of({field:this,create:t})]}get extension(){return this}}const ae={lowest:4,low:3,default:2,high:1,highest:0};function Ve(s){return t=>new qo(t,s)}const tn={highest:Ve(ae.highest),high:Ve(ae.high),default:Ve(ae.default),low:Ve(ae.low),lowest:Ve(ae.lowest)};class qo{constructor(t,e){this.inner=t,this.prec=e}}class en{of(t){return new Hn(this,t)}reconfigure(t){return en.reconfigure.of({compartment:this,extension:t})}get(t){return t.config.compartments.get(this)}}class Hn{constructor(t,e){this.compartment=t,this.inner=e}}class Bi{constructor(t,e,i,n,r,o){for(this.base=t,this.compartments=e,this.dynamicSlots=i,this.address=n,this.staticValues=r,this.facets=o,this.statusTemplate=[];this.statusTemplate.length>1]}static resolve(t,e,i){let n=[],r=Object.create(null),o=new Map;for(let u of Pa(t,e,o))u instanceof xt?n.push(u):(r[u.facet.id]||(r[u.facet.id]=[])).push(u);let l=Object.create(null),h=[],a=[];for(let u of n)l[u.id]=a.length<<1,a.push(d=>u.slot(d));let f=i==null?void 0:i.config.facets;for(let u in r){let d=r[u],p=d[0].facet,m=f&&f[u]||[];if(d.every(g=>g.type==0))if(l[p.id]=h.length<<1|1,Ss(m,d))h.push(i.facet(p));else{let g=p.combine(d.map(y=>y.value));h.push(i&&p.compare(g,i.facet(p))?i.facet(p):g)}else{for(let g of d)g.type==0?(l[g.id]=h.length<<1|1,h.push(g.value)):(l[g.id]=a.length<<1,a.push(y=>g.dynamicSlot(y)));l[p.id]=a.length<<1,a.push(g=>Da(g,p,d))}}let c=a.map(u=>u(l));return new Bi(t,o,c,l,h,r)}}function Pa(s,t,e){let i=[[],[],[],[],[]],n=new Map;function r(o,l){let h=n.get(o);if(h!=null){if(h<=l)return;let a=i[h].indexOf(o);a>-1&&i[h].splice(a,1),o instanceof Hn&&e.delete(o.compartment)}if(n.set(o,l),Array.isArray(o))for(let a of o)r(a,l);else if(o instanceof Hn){if(e.has(o.compartment))throw new RangeError("Duplicate use of compartment in extensions");let a=t.get(o.compartment)||o.inner;e.set(o.compartment,a),r(a,l)}else if(o instanceof qo)r(o.inner,o.prec);else if(o instanceof xt)i[l].push(o),o.provides&&r(o.provides,l);else if(o instanceof Ai)i[l].push(o),o.facet.extensions&&r(o.facet.extensions,ae.default);else{let a=o.extension;if(!a)throw new Error(`Unrecognized extension value in extension set (${o}). This sometimes happens because multiple instances of @codemirror/state are loaded, breaking instanceof checks.`);r(a,l)}}return r(s,ae.default),i.reduce((o,l)=>o.concat(l))}function Ke(s,t){if(t&1)return 2;let e=t>>1,i=s.status[e];if(i==4)throw new Error("Cyclic dependency between fields and/or facets");if(i&2)return i;s.status[e]=4;let n=s.computeSlot(s,s.config.dynamicSlots[e]);return s.status[e]=2|n}function Ri(s,t){return t&1?s.config.staticValues[t>>1]:s.values[t>>1]}const Uo=M.define(),Ko=M.define({combine:s=>s.some(t=>t),static:!0}),Go=M.define({combine:s=>s.length?s[0]:void 0,static:!0}),Qo=M.define(),$o=M.define(),Jo=M.define(),_o=M.define({combine:s=>s.length?s[0]:!1});class re{constructor(t,e){this.type=t,this.value=e}static define(){return new Ba}}class Ba{of(t){return new re(this,t)}}class Ra{constructor(t){this.map=t}of(t){return new V(this,t)}}class V{constructor(t,e){this.type=t,this.value=e}map(t){let e=this.type.map(this.value,t);return e===void 0?void 0:e==this.value?this:new V(this.type,e)}is(t){return this.type==t}static define(t={}){return new Ra(t.map||(e=>e))}static mapEffects(t,e){if(!t.length)return t;let i=[];for(let n of t){let r=n.map(e);r&&i.push(r)}return i}}V.reconfigure=V.define();V.appendConfig=V.define();class J{constructor(t,e,i,n,r,o){this.startState=t,this.changes=e,this.selection=i,this.effects=n,this.annotations=r,this.scrollIntoView=o,this._doc=null,this._state=null,i&&jo(i,e.newLength),r.some(l=>l.type==J.time)||(this.annotations=r.concat(J.time.of(Date.now())))}static create(t,e,i,n,r,o){return new J(t,e,i,n,r,o)}get newDoc(){return this._doc||(this._doc=this.changes.apply(this.startState.doc))}get newSelection(){return this.selection||this.startState.selection.map(this.changes)}get state(){return this._state||this.startState.applyTransaction(this),this._state}annotation(t){for(let e of this.annotations)if(e.type==t)return e.value}get docChanged(){return!this.changes.empty}get reconfigured(){return this.startState.config!=this.state.config}isUserEvent(t){let e=this.annotation(J.userEvent);return!!(e&&(e==t||e.length>t.length&&e.slice(0,t.length)==t&&e[t.length]=="."))}}J.time=re.define();J.userEvent=re.define();J.addToHistory=re.define();J.remote=re.define();function Ea(s,t){let e=[];for(let i=0,n=0;;){let r,o;if(i=s[i]))r=s[i++],o=s[i++];else if(n=0;n--){let r=i[n](s);r instanceof J?s=r:Array.isArray(r)&&r.length==1&&r[0]instanceof J?s=r[0]:s=Yo(t,ve(r),!1)}return s}function Na(s){let t=s.startState,e=t.facet(Jo),i=s;for(let n=e.length-1;n>=0;n--){let r=e[n](s);r&&Object.keys(r).length&&(i=Xo(i,Wn(t,r,s.changes.newLength),!0))}return i==s?s:J.create(t,s.changes,s.selection,i.effects,i.annotations,i.scrollIntoView)}const La=[];function ve(s){return s==null?La:Array.isArray(s)?s:[s]}var yt=function(s){return s[s.Word=0]="Word",s[s.Space=1]="Space",s[s.Other=2]="Other",s}(yt||(yt={}));const Va=/[\u00df\u0587\u0590-\u05f4\u0600-\u06ff\u3040-\u309f\u30a0-\u30ff\u3400-\u4db5\u4e00-\u9fcc\uac00-\ud7af]/;let jn;try{jn=new RegExp("[\\p{Alphabetic}\\p{Number}_]","u")}catch{}function Fa(s){if(jn)return jn.test(s);for(let t=0;t"€"&&(e.toUpperCase()!=e.toLowerCase()||Va.test(e)))return!0}return!1}function za(s){return t=>{if(!/\S/.test(t))return yt.Space;if(Fa(t))return yt.Word;for(let e=0;e-1)return yt.Word;return yt.Other}}class I{constructor(t,e,i,n,r,o){this.config=t,this.doc=e,this.selection=i,this.values=n,this.status=t.statusTemplate.slice(),this.computeSlot=r,o&&(o._state=this);for(let l=0;ln.set(h,l)),e=null),n.set(o.value.compartment,o.value.extension)):o.is(V.reconfigure)?(e=null,i=o.value):o.is(V.appendConfig)&&(e=null,i=ve(i).concat(o.value));let r;e?r=t.startState.values.slice():(e=Bi.resolve(i,n,this),r=new I(e,this.doc,this.selection,e.dynamicSlots.map(()=>null),(l,h)=>h.reconfigure(l,this),null).values),new I(e,t.newDoc,t.newSelection,r,(o,l)=>l.update(o,t),t)}replaceSelection(t){return typeof t=="string"&&(t=this.toText(t)),this.changeByRange(e=>({changes:{from:e.from,to:e.to,insert:t},range:b.cursor(e.from+t.length)}))}changeByRange(t){let e=this.selection,i=t(e.ranges[0]),n=this.changes(i.changes),r=[i.range],o=ve(i.effects);for(let l=1;lo.spec.fromJSON(l,h)))}}return I.create({doc:t.doc,selection:b.fromJSON(t.selection),extensions:e.extensions?n.concat([e.extensions]):n})}static create(t={}){let e=Bi.resolve(t.extensions||[],new Map),i=t.doc instanceof N?t.doc:N.of((t.doc||"").split(e.staticFacet(I.lineSeparator)||Ln)),n=t.selection?t.selection instanceof b?t.selection:b.single(t.selection.anchor,t.selection.head):b.single(0);return jo(n,i.length),e.staticFacet(Ko)||(n=n.asSingle()),new I(e,i,n,e.dynamicSlots.map(()=>null),(r,o)=>o.create(r),null)}get tabSize(){return this.facet(I.tabSize)}get lineBreak(){return this.facet(I.lineSeparator)||` diff --git a/ui/assets/local/_app/immutable/chunks/copy-to-clipboard.35a8cf56.js b/ui/assets/local/_app/immutable/chunks/copy-to-clipboard.a310d1bd.js similarity index 77% rename from ui/assets/local/_app/immutable/chunks/copy-to-clipboard.35a8cf56.js rename to ui/assets/local/_app/immutable/chunks/copy-to-clipboard.a310d1bd.js index 004e15603d..c5cbddddd0 100644 --- a/ui/assets/local/_app/immutable/chunks/copy-to-clipboard.35a8cf56.js +++ b/ui/assets/local/_app/immutable/chunks/copy-to-clipboard.a310d1bd.js @@ -1 +1 @@ -import{w as c}from"./singletons.fb5f332e.js";const i=(r=2e3)=>{const o=c(!1);return{copy:async(t,e)=>{t.preventDefault(),t.stopPropagation();try{await navigator.clipboard.writeText(e),o.set(!0),setTimeout(()=>{o.set(!1)},r)}catch(a){console.error(a)}},copied:o}};export{i as c}; +import{w as c}from"./singletons.13b3836d.js";const i=(r=2e3)=>{const o=c(!1);return{copy:async(t,e)=>{t.preventDefault(),t.stopPropagation();try{await navigator.clipboard.writeText(e),o.set(!0),setTimeout(()=>{o.set(!1)},r)}catch(a){console.error(a)}},copied:o}};export{i as c}; diff --git a/ui/assets/local/_app/immutable/chunks/core-user.db246b6d.js b/ui/assets/local/_app/immutable/chunks/core-user.d32cd5bb.js similarity index 63% rename from ui/assets/local/_app/immutable/chunks/core-user.db246b6d.js rename to ui/assets/local/_app/immutable/chunks/core-user.d32cd5bb.js index d277ee27cf..1838bade9c 100644 --- a/ui/assets/local/_app/immutable/chunks/core-user.db246b6d.js +++ b/ui/assets/local/_app/immutable/chunks/core-user.d32cd5bb.js @@ -1 +1 @@ -import{r}from"./singletons.fb5f332e.js";import{al as t,af as o}from"./index.4e2fcbc7.js";const e="CoreUser",s=r({namespaceWriteDisabled:()=>!1}),c=()=>t(e)?o(e):s;export{c}; +import{r}from"./singletons.13b3836d.js";import{al as t,af as o}from"./index.4e2fcbc7.js";const e="CoreUser",s=r({namespaceWriteDisabled:()=>!1}),c=()=>t(e)?o(e):s;export{c}; diff --git a/ui/assets/local/_app/immutable/chunks/data-encoder-config.23d100a5.js b/ui/assets/local/_app/immutable/chunks/data-encoder-config.896de1ac.js similarity index 74% rename from ui/assets/local/_app/immutable/chunks/data-encoder-config.23d100a5.js rename to ui/assets/local/_app/immutable/chunks/data-encoder-config.896de1ac.js index 66197a03cf..e0d3a00d3a 100644 --- a/ui/assets/local/_app/immutable/chunks/data-encoder-config.23d100a5.js +++ b/ui/assets/local/_app/immutable/chunks/data-encoder-config.896de1ac.js @@ -1 +1 @@ -import{w as a}from"./singletons.fb5f332e.js";import{p as e}from"./persist-store.2e269d08.js";import{h as n}from"./has.183130b0.js";const d=e("endpoint",null,!0),u=e("passAccessToken",!1,!0),l=e("includeCredentials",!1,!0),f=e("overrideRemoteCodecConfiguration",!1,!0),o=a("notRequested"),t=a("");function p(s){o.set("error"),s&&n(s,"message")&&typeof s.message=="string"?t.set(s.message):t.set("")}function m(){o.set("success")}export{t as a,m as b,d as c,l as i,o as l,f as o,u as p,p as s}; +import{w as a}from"./singletons.13b3836d.js";import{p as e}from"./persist-store.8930b3b5.js";import{h as n}from"./has.183130b0.js";const d=e("endpoint",null,!0),u=e("passAccessToken",!1,!0),l=e("includeCredentials",!1,!0),f=e("overrideRemoteCodecConfiguration",!1,!0),o=a("notRequested"),t=a("");function p(s){o.set("error"),s&&n(s,"message")&&typeof s.message=="string"?t.set(s.message):t.set("")}function m(){o.set("success")}export{t as a,m as b,d as c,l as i,o as l,f as o,u as p,p as s}; diff --git a/ui/assets/local/_app/immutable/chunks/decode-payload.a8d5059b.js b/ui/assets/local/_app/immutable/chunks/decode-payload.11855cf3.js similarity index 97% rename from ui/assets/local/_app/immutable/chunks/decode-payload.a8d5059b.js rename to ui/assets/local/_app/immutable/chunks/decode-payload.11855cf3.js index 901c285719..f8da241a25 100644 --- a/ui/assets/local/_app/immutable/chunks/decode-payload.a8d5059b.js +++ b/ui/assets/local/_app/immutable/chunks/decode-payload.11855cf3.js @@ -1 +1 @@ -import{t as C}from"./translate.d23a91ae.js";import{s as W,b as S}from"./data-encoder-config.23d100a5.js";import{h as i,i as x}from"./has.183130b0.js";import{v as q,a as k}from"./is-http.7eda3176.js";import{s as w,p as O}from"./parse-with-big-int.0036a80a.js";async function B({payloads:e,namespace:s,settings:c,accessToken:r,encode:o=!1}){var l,j,P;const n=(l=c==null?void 0:c.codec)==null?void 0:l.endpoint,d=(j=c==null?void 0:c.codec)==null?void 0:j.passAccessToken,t=(P=c==null?void 0:c.codec)==null?void 0:P.includeCredentials,f={"Content-Type":"application/json","X-Namespace":s};if(d)if(q(n))f.Authorization=`Bearer ${r}`;else return W(),e;const m=t?{headers:f,credentials:"include",method:"POST",body:w(e)}:{headers:f,method:"POST",body:w(e)};return fetch(n+(o?"/encode":"/decode"),m).then(a=>{if(i(a,"ok")&&!a.ok)throw{statusCode:a.status,statusText:a.statusText,response:a,message:o?C("common.encode-failed"):C("common.decode-failed")};return a.json()}).then(a=>(S(),a)).catch(a=>(W(a),e))}const E=e=>Array.isArray(e)?e:[e];function h(e,s=!0){var r;if(e===null)return e;const c=k(String(((r=e==null?void 0:e.metadata)==null?void 0:r.encoding)??""));if(e!=null&&e.metadata&&(e.metadata.encodingDecoded=c),c!=null&&c.startsWith("json/"))try{const o=O(k(String((e==null?void 0:e.data)??"")));return s?o:{...e,data:o}}catch(o){console.warn("Could not parse payload: ",o)}return c==="binary/null"?s?null:{...e,data:null}:e}const K=(e,s=!0)=>{if(i(e,"searchAttributes")&&i(e.searchAttributes,"indexedFields")){const c=e.searchAttributes.indexedFields;Object.entries(c).forEach(([r,o])=>{c[r]=h(o,s)})}else if(i(e,"searchAttributes")){const c=e.searchAttributes;Object.entries(c).forEach(([r,o])=>{c[r]=h(o,s)})}if(i(e,"memo")&&i(e.memo,"fields")){const c=e.memo.fields;Object.entries(c).forEach(([r,o])=>{c[r]=h(o,s)})}if(i(e,"header")&&i(e.header,"fields")){const c=e.header.fields;Object.entries(c).forEach(([r,o])=>{c[r]=h(o,s)})}if(i(e,"queryResult")){const c=e==null?void 0:e.queryResult;Object.entries(c).forEach(([r,o])=>{c[r]=h(o,s)})}return e},T=(e,s,c)=>async(r,o=!0)=>{var n;if((n=s==null?void 0:s.codec)!=null&&n.endpoint){const d=await B({payloads:{payloads:r},namespace:e,settings:s,accessToken:c});return((d==null?void 0:d.payloads)??[]).map(t=>h(t,o))}else return r.map(d=>h(d,o))},u=(e,...s)=>{for(const c of s)if(e===c)return!0;return!1},R=async(e,s,c,r)=>{const o=T(s,c,r);if(e)for(const n of Object.keys(e))if(u(n,"payloads","encodedAttributes")&&e[n]){const d=E(e[n]),t=await o(d);e[n]=u(n,"encodedAttributes")?t[0]:t}else{const d=e[n];x(d)&&(e[n]=await R(d,s,c,r))}return e},F=async(e,s,c,r,o=!0)=>{if(!e)return e;const n=T(s,c,r),d={...e};if(e)for(const t of Object.keys(d))if(u(t,"payloads","encodedAttributes")&&d[t]){const f=E(d[t]),m=await n(f,o);d[t]=u(t,"encodedAttributes")?m[0]:m}else{const f=d[t];x(f)&&(d[t]=await F(f,s,c,r,o))}return d},N=async({attributes:e,namespace:s,settings:c,accessToken:r})=>await R(e,s,c,r);export{h as a,B as b,N as c,K as d,F as e}; +import{t as C}from"./translate.d23a91ae.js";import{s as W,b as S}from"./data-encoder-config.896de1ac.js";import{h as i,i as x}from"./has.183130b0.js";import{v as q,a as k}from"./is-http.7eda3176.js";import{s as w,p as O}from"./parse-with-big-int.0036a80a.js";async function B({payloads:e,namespace:s,settings:c,accessToken:r,encode:o=!1}){var l,j,P;const n=(l=c==null?void 0:c.codec)==null?void 0:l.endpoint,d=(j=c==null?void 0:c.codec)==null?void 0:j.passAccessToken,t=(P=c==null?void 0:c.codec)==null?void 0:P.includeCredentials,f={"Content-Type":"application/json","X-Namespace":s};if(d)if(q(n))f.Authorization=`Bearer ${r}`;else return W(),e;const m=t?{headers:f,credentials:"include",method:"POST",body:w(e)}:{headers:f,method:"POST",body:w(e)};return fetch(n+(o?"/encode":"/decode"),m).then(a=>{if(i(a,"ok")&&!a.ok)throw{statusCode:a.status,statusText:a.statusText,response:a,message:o?C("common.encode-failed"):C("common.decode-failed")};return a.json()}).then(a=>(S(),a)).catch(a=>(W(a),e))}const E=e=>Array.isArray(e)?e:[e];function h(e,s=!0){var r;if(e===null)return e;const c=k(String(((r=e==null?void 0:e.metadata)==null?void 0:r.encoding)??""));if(e!=null&&e.metadata&&(e.metadata.encodingDecoded=c),c!=null&&c.startsWith("json/"))try{const o=O(k(String((e==null?void 0:e.data)??"")));return s?o:{...e,data:o}}catch(o){console.warn("Could not parse payload: ",o)}return c==="binary/null"?s?null:{...e,data:null}:e}const K=(e,s=!0)=>{if(i(e,"searchAttributes")&&i(e.searchAttributes,"indexedFields")){const c=e.searchAttributes.indexedFields;Object.entries(c).forEach(([r,o])=>{c[r]=h(o,s)})}else if(i(e,"searchAttributes")){const c=e.searchAttributes;Object.entries(c).forEach(([r,o])=>{c[r]=h(o,s)})}if(i(e,"memo")&&i(e.memo,"fields")){const c=e.memo.fields;Object.entries(c).forEach(([r,o])=>{c[r]=h(o,s)})}if(i(e,"header")&&i(e.header,"fields")){const c=e.header.fields;Object.entries(c).forEach(([r,o])=>{c[r]=h(o,s)})}if(i(e,"queryResult")){const c=e==null?void 0:e.queryResult;Object.entries(c).forEach(([r,o])=>{c[r]=h(o,s)})}return e},T=(e,s,c)=>async(r,o=!0)=>{var n;if((n=s==null?void 0:s.codec)!=null&&n.endpoint){const d=await B({payloads:{payloads:r},namespace:e,settings:s,accessToken:c});return((d==null?void 0:d.payloads)??[]).map(t=>h(t,o))}else return r.map(d=>h(d,o))},u=(e,...s)=>{for(const c of s)if(e===c)return!0;return!1},R=async(e,s,c,r)=>{const o=T(s,c,r);if(e)for(const n of Object.keys(e))if(u(n,"payloads","encodedAttributes")&&e[n]){const d=E(e[n]),t=await o(d);e[n]=u(n,"encodedAttributes")?t[0]:t}else{const d=e[n];x(d)&&(e[n]=await R(d,s,c,r))}return e},F=async(e,s,c,r,o=!0)=>{if(!e)return e;const n=T(s,c,r),d={...e};if(e)for(const t of Object.keys(d))if(u(t,"payloads","encodedAttributes")&&d[t]){const f=E(d[t]),m=await n(f,o);d[t]=u(t,"encodedAttributes")?m[0]:m}else{const f=d[t];x(f)&&(d[t]=await F(f,s,c,r,o))}return d},N=async({attributes:e,namespace:s,settings:c,accessToken:r})=>await R(e,s,c,r);export{h as a,B as b,N as c,K as d,F as e}; diff --git a/ui/assets/local/_app/immutable/chunks/drawer.802d9486.js b/ui/assets/local/_app/immutable/chunks/drawer.f57bb4b9.js similarity index 96% rename from ui/assets/local/_app/immutable/chunks/drawer.802d9486.js rename to ui/assets/local/_app/immutable/chunks/drawer.f57bb4b9.js index 15fbb72398..adabb41c6b 100644 --- a/ui/assets/local/_app/immutable/chunks/drawer.802d9486.js +++ b/ui/assets/local/_app/immutable/chunks/drawer.f57bb4b9.js @@ -1 +1 @@ -import{S as ee,b as te,a as se,e as N,f as A,j as v,z as W,g as D,h as X,k as b,ah as le,i as O,G as Y,m as L,C as ae,c as P,w as ie,p as B,q as H,D as ne,d as z,x as oe,u as d,P as V,L as p,E as re,a2 as Q,Q as fe,y as ue,H as Z,I as x,J as $,a3 as _e,a9 as T,F as ce,r as de}from"./index.4e2fcbc7.js";import{f as K}from"./index.6509bfd4.js";import{c as me,f as he}from"./menu.69cccace.js";import{I as be}from"./icon-button.92948dd7.js";const ve=e=>({}),M=e=>({});function R(e){let t,a,s,l,i,r,h,g,j,w,I,m,E,o,k,_,q,F;s=new be({props:{"data-testid":"drawer-close-button",label:e[6],icon:"close","aria-expanded":e[0],"aria-controls":"navigation-drawer"}}),s.$on("click",function(){O(e[4])&&e[4].apply(this,arguments)});let f=e[8].subtitle&&U(e);const y=e[10].default,c=Y(y,e,e[9],null);return{c(){t=L("aside"),a=L("div"),ae(s.$$.fragment),i=P(),r=L("div"),h=L("h1"),g=ie(e[1]),j=P(),f&&f.c(),I=P(),m=L("div"),c&&c.c(),this.h()},l(u){t=B(u,"ASIDE",{class:!0,id:!0,role:!0});var n=H(t);a=B(n,"DIV",{class:!0});var C=H(a);ne(s.$$.fragment,C),C.forEach(b),i=z(n),r=B(n,"DIV",{class:!0});var S=H(r);h=B(S,"H1",{class:!0});var G=H(h);g=oe(G,e[1]),G.forEach(b),j=z(S),f&&f.l(S),S.forEach(b),I=z(n),m=B(n,"DIV",{class:!0});var J=H(m);c&&c.l(J),J.forEach(b),n.forEach(b),this.h()},h(){d(a,"class",l="close-button-wrapper "+e[2]+" svelte-i6sjjd"),d(h,"class","svelte-i6sjjd"),d(r,"class",w="title-wrapper "+e[2]+" svelte-i6sjjd"),d(m,"class",E="content "+e[2]+" svelte-i6sjjd"),d(t,"class",o="drawer "+e[2]+" svelte-i6sjjd"),d(t,"id",e[5]),d(t,"role","region"),V(t,"dark",e[3]),V(t,"max-w-[400px]",e[2]==="right")},m(u,n){A(u,t,n),p(t,a),re(s,a,null),p(t,i),p(t,r),p(r,h),p(h,g),p(r,j),f&&f.m(r,null),p(t,I),p(t,m),c&&c.m(m,null),_=!0,q||(F=[Q(me.call(null,t)),fe(t,"click-outside",function(){O(e[4])&&e[4].apply(this,arguments)}),Q(he.call(null,t,!0))],q=!0)},p(u,n){e=u;const C={};n&64&&(C.label=e[6]),n&1&&(C["aria-expanded"]=e[0]),s.$set(C),(!_||n&4&&l!==(l="close-button-wrapper "+e[2]+" svelte-i6sjjd"))&&d(a,"class",l),(!_||n&2)&&ue(g,e[1]),e[8].subtitle?f?(f.p(e,n),n&256&&v(f,1)):(f=U(e),f.c(),v(f,1),f.m(r,null)):f&&(W(),D(f,1,1,()=>{f=null}),X()),(!_||n&4&&w!==(w="title-wrapper "+e[2]+" svelte-i6sjjd"))&&d(r,"class",w),c&&c.p&&(!_||n&512)&&Z(c,y,e,e[9],_?$(y,e[9],n,null):x(e[9]),null),(!_||n&4&&E!==(E="content "+e[2]+" svelte-i6sjjd"))&&d(m,"class",E),(!_||n&4&&o!==(o="drawer "+e[2]+" svelte-i6sjjd"))&&d(t,"class",o),(!_||n&32)&&d(t,"id",e[5]),(!_||n&12)&&V(t,"dark",e[3]),(!_||n&4)&&V(t,"max-w-[400px]",e[2]==="right")},i(u){_||(v(s.$$.fragment,u),v(f),v(c,u),_e(()=>{k||(k=T(t,K,e[7],!0)),k.run(1)}),_=!0)},o(u){D(s.$$.fragment,u),D(f),D(c,u),k||(k=T(t,K,e[7],!1)),k.run(0),_=!1},d(u){u&&b(t),ce(s),f&&f.d(),c&&c.d(u),u&&k&&k.end(),q=!1,de(F)}}}function U(e){let t,a;const s=e[10].subtitle,l=Y(s,e,e[9],M);return{c(){t=L("h3"),l&&l.c(),this.h()},l(i){t=B(i,"H3",{class:!0});var r=H(t);l&&l.l(r),r.forEach(b),this.h()},h(){d(t,"class","font-primary text-xs font-normal")},m(i,r){A(i,t,r),l&&l.m(t,null),a=!0},p(i,r){l&&l.p&&(!a||r&512)&&Z(l,s,i,i[9],a?$(s,i[9],r,ve):x(i[9]),M)},i(i){a||(v(l,i),a=!0)},o(i){D(l,i),a=!1},d(i){i&&b(t),l&&l.d(i)}}}function ke(e){let t,a,s=e[0]&&R(e);return{c(){s&&s.c(),t=N()},l(l){s&&s.l(l),t=N()},m(l,i){s&&s.m(l,i),A(l,t,i),a=!0},p(l,[i]){l[0]?s?(s.p(l,i),i&1&&v(s,1)):(s=R(l),s.c(),v(s,1),s.m(t.parentNode,t)):s&&(W(),D(s,1,1,()=>{s=null}),X())},i(l){a||(v(s),a=!0)},o(l){D(s),a=!1},d(l){s&&s.d(l),l&&b(t)}}}function pe(e,t,a){let s,{$$slots:l={},$$scope:i}=t;const r=le(l);let{open:h=!1}=t,{title:g}=t,{position:j="bottom"}=t,{dark:w=!0}=t,{onClick:I}=t,{id:m="navigation-drawer"}=t,{closeButtonLabel:E}=t;return e.$$set=o=>{"open"in o&&a(0,h=o.open),"title"in o&&a(1,g=o.title),"position"in o&&a(2,j=o.position),"dark"in o&&a(3,w=o.dark),"onClick"in o&&a(4,I=o.onClick),"id"in o&&a(5,m=o.id),"closeButtonLabel"in o&&a(6,E=o.closeButtonLabel),"$$scope"in o&&a(9,i=o.$$scope)},e.$$.update=()=>{e.$$.dirty&4&&a(7,s={duration:500,...j==="bottom"?{y:200}:{x:200}})},[h,g,j,w,I,m,E,s,r,i,l]}class De extends ee{constructor(t){super(),te(this,t,pe,ke,se,{open:0,title:1,position:2,dark:3,onClick:4,id:5,closeButtonLabel:6})}}export{De as D}; +import{S as ee,b as te,a as se,e as N,f as A,j as v,z as W,g as D,h as X,k as b,ah as le,i as O,G as Y,m as L,C as ae,c as P,w as ie,p as B,q as H,D as ne,d as z,x as oe,u as d,P as V,L as p,E as re,a2 as Q,Q as fe,y as ue,H as Z,I as x,J as $,a3 as _e,a9 as T,F as ce,r as de}from"./index.4e2fcbc7.js";import{f as K}from"./index.6509bfd4.js";import{c as me,f as he}from"./menu.716bcd2f.js";import{I as be}from"./icon-button.92948dd7.js";const ve=e=>({}),M=e=>({});function R(e){let t,a,s,l,i,r,h,g,j,w,I,m,E,o,k,_,q,F;s=new be({props:{"data-testid":"drawer-close-button",label:e[6],icon:"close","aria-expanded":e[0],"aria-controls":"navigation-drawer"}}),s.$on("click",function(){O(e[4])&&e[4].apply(this,arguments)});let f=e[8].subtitle&&U(e);const y=e[10].default,c=Y(y,e,e[9],null);return{c(){t=L("aside"),a=L("div"),ae(s.$$.fragment),i=P(),r=L("div"),h=L("h1"),g=ie(e[1]),j=P(),f&&f.c(),I=P(),m=L("div"),c&&c.c(),this.h()},l(u){t=B(u,"ASIDE",{class:!0,id:!0,role:!0});var n=H(t);a=B(n,"DIV",{class:!0});var C=H(a);ne(s.$$.fragment,C),C.forEach(b),i=z(n),r=B(n,"DIV",{class:!0});var S=H(r);h=B(S,"H1",{class:!0});var G=H(h);g=oe(G,e[1]),G.forEach(b),j=z(S),f&&f.l(S),S.forEach(b),I=z(n),m=B(n,"DIV",{class:!0});var J=H(m);c&&c.l(J),J.forEach(b),n.forEach(b),this.h()},h(){d(a,"class",l="close-button-wrapper "+e[2]+" svelte-i6sjjd"),d(h,"class","svelte-i6sjjd"),d(r,"class",w="title-wrapper "+e[2]+" svelte-i6sjjd"),d(m,"class",E="content "+e[2]+" svelte-i6sjjd"),d(t,"class",o="drawer "+e[2]+" svelte-i6sjjd"),d(t,"id",e[5]),d(t,"role","region"),V(t,"dark",e[3]),V(t,"max-w-[400px]",e[2]==="right")},m(u,n){A(u,t,n),p(t,a),re(s,a,null),p(t,i),p(t,r),p(r,h),p(h,g),p(r,j),f&&f.m(r,null),p(t,I),p(t,m),c&&c.m(m,null),_=!0,q||(F=[Q(me.call(null,t)),fe(t,"click-outside",function(){O(e[4])&&e[4].apply(this,arguments)}),Q(he.call(null,t,!0))],q=!0)},p(u,n){e=u;const C={};n&64&&(C.label=e[6]),n&1&&(C["aria-expanded"]=e[0]),s.$set(C),(!_||n&4&&l!==(l="close-button-wrapper "+e[2]+" svelte-i6sjjd"))&&d(a,"class",l),(!_||n&2)&&ue(g,e[1]),e[8].subtitle?f?(f.p(e,n),n&256&&v(f,1)):(f=U(e),f.c(),v(f,1),f.m(r,null)):f&&(W(),D(f,1,1,()=>{f=null}),X()),(!_||n&4&&w!==(w="title-wrapper "+e[2]+" svelte-i6sjjd"))&&d(r,"class",w),c&&c.p&&(!_||n&512)&&Z(c,y,e,e[9],_?$(y,e[9],n,null):x(e[9]),null),(!_||n&4&&E!==(E="content "+e[2]+" svelte-i6sjjd"))&&d(m,"class",E),(!_||n&4&&o!==(o="drawer "+e[2]+" svelte-i6sjjd"))&&d(t,"class",o),(!_||n&32)&&d(t,"id",e[5]),(!_||n&12)&&V(t,"dark",e[3]),(!_||n&4)&&V(t,"max-w-[400px]",e[2]==="right")},i(u){_||(v(s.$$.fragment,u),v(f),v(c,u),_e(()=>{k||(k=T(t,K,e[7],!0)),k.run(1)}),_=!0)},o(u){D(s.$$.fragment,u),D(f),D(c,u),k||(k=T(t,K,e[7],!1)),k.run(0),_=!1},d(u){u&&b(t),ce(s),f&&f.d(),c&&c.d(u),u&&k&&k.end(),q=!1,de(F)}}}function U(e){let t,a;const s=e[10].subtitle,l=Y(s,e,e[9],M);return{c(){t=L("h3"),l&&l.c(),this.h()},l(i){t=B(i,"H3",{class:!0});var r=H(t);l&&l.l(r),r.forEach(b),this.h()},h(){d(t,"class","font-primary text-xs font-normal")},m(i,r){A(i,t,r),l&&l.m(t,null),a=!0},p(i,r){l&&l.p&&(!a||r&512)&&Z(l,s,i,i[9],a?$(s,i[9],r,ve):x(i[9]),M)},i(i){a||(v(l,i),a=!0)},o(i){D(l,i),a=!1},d(i){i&&b(t),l&&l.d(i)}}}function ke(e){let t,a,s=e[0]&&R(e);return{c(){s&&s.c(),t=N()},l(l){s&&s.l(l),t=N()},m(l,i){s&&s.m(l,i),A(l,t,i),a=!0},p(l,[i]){l[0]?s?(s.p(l,i),i&1&&v(s,1)):(s=R(l),s.c(),v(s,1),s.m(t.parentNode,t)):s&&(W(),D(s,1,1,()=>{s=null}),X())},i(l){a||(v(s),a=!0)},o(l){D(s),a=!1},d(l){s&&s.d(l),l&&b(t)}}}function pe(e,t,a){let s,{$$slots:l={},$$scope:i}=t;const r=le(l);let{open:h=!1}=t,{title:g}=t,{position:j="bottom"}=t,{dark:w=!0}=t,{onClick:I}=t,{id:m="navigation-drawer"}=t,{closeButtonLabel:E}=t;return e.$$set=o=>{"open"in o&&a(0,h=o.open),"title"in o&&a(1,g=o.title),"position"in o&&a(2,j=o.position),"dark"in o&&a(3,w=o.dark),"onClick"in o&&a(4,I=o.onClick),"id"in o&&a(5,m=o.id),"closeButtonLabel"in o&&a(6,E=o.closeButtonLabel),"$$scope"in o&&a(9,i=o.$$scope)},e.$$.update=()=>{e.$$.dirty&4&&a(7,s={duration:500,...j==="bottom"?{y:200}:{x:200}})},[h,g,j,w,I,m,E,s,r,i,l]}class De extends ee{constructor(t){super(),te(this,t,pe,ke,se,{open:0,title:1,position:2,dark:3,onClick:4,id:5,closeButtonLabel:6})}}export{De as D}; diff --git a/ui/assets/local/_app/immutable/chunks/error.2e6962d0.js b/ui/assets/local/_app/immutable/chunks/error.63c227df.js similarity index 95% rename from ui/assets/local/_app/immutable/chunks/error.2e6962d0.js rename to ui/assets/local/_app/immutable/chunks/error.63c227df.js index afadc3362a..16d25c03cd 100644 --- a/ui/assets/local/_app/immutable/chunks/error.2e6962d0.js +++ b/ui/assets/local/_app/immutable/chunks/error.63c227df.js @@ -1,4 +1,4 @@ -import{S as O,b as z,a as A,m as S,w as g,c as y,C as N,p as x,q as T,x as $,k as p,d as P,D as U,u as _,f as q,L as o,E as F,y as B,j as H,g as I,F as K,K as G,M as J}from"./index.4e2fcbc7.js";import{a as Q}from"./navigation.10919bcf.js";import{p as R}from"./stores.14a97433.js";import{L as M}from"./link.6803bb00.js";import{h as V}from"./has.183130b0.js";function W(a){let e;return{c(){e=g("Try a refresh")},l(t){e=$(t,"Try a refresh")},m(t,l){q(t,e,l)},d(t){t&&p(e)}}}function X(a){let e;return{c(){e=g("jump on our Slack Channel")},l(t){e=$(t,"jump on our Slack Channel")},m(t,l){q(t,e,l)},d(t){t&&p(e)}}}function Y(a){let e,t,l,h,n,d,E,u,v,c,i,f,L,m,j,C;return f=new M({props:{href:a[1],target:"_self",class:"underline underline-offset-2",$$slots:{default:[W]},$$scope:{ctx:a}}}),f.$on("click",a[5]),m=new M({props:{href:"https://temporal.io/slack",$$slots:{default:[X]},$$scope:{ctx:a}}}),{c(){e=S("section"),t=S("h1"),l=g(a[0]),h=y(),n=S("p"),d=g("Uh oh. There's an error."),E=y(),u=S("p"),v=g(a[2]),c=y(),i=S("p"),N(f.$$.fragment),L=g(` +import{S as O,b as z,a as A,m as S,w as g,c as y,C as N,p as x,q as T,x as $,k as p,d as P,D as U,u as _,f as q,L as o,E as F,y as B,j as H,g as I,F as K,K as G,M as J}from"./index.4e2fcbc7.js";import{a as Q}from"./navigation.b77a045a.js";import{p as R}from"./stores.0e7b7e35.js";import{L as M}from"./link.6803bb00.js";import{h as V}from"./has.183130b0.js";function W(a){let e;return{c(){e=g("Try a refresh")},l(t){e=$(t,"Try a refresh")},m(t,l){q(t,e,l)},d(t){t&&p(e)}}}function X(a){let e;return{c(){e=g("jump on our Slack Channel")},l(t){e=$(t,"jump on our Slack Channel")},m(t,l){q(t,e,l)},d(t){t&&p(e)}}}function Y(a){let e,t,l,h,n,d,E,u,v,c,i,f,L,m,j,C;return f=new M({props:{href:a[1],target:"_self",class:"underline underline-offset-2",$$slots:{default:[W]},$$scope:{ctx:a}}}),f.$on("click",a[5]),m=new M({props:{href:"https://temporal.io/slack",$$slots:{default:[X]},$$scope:{ctx:a}}}),{c(){e=S("section"),t=S("h1"),l=g(a[0]),h=y(),n=S("p"),d=g("Uh oh. There's an error."),E=y(),u=S("p"),v=g(a[2]),c=y(),i=S("p"),N(f.$$.fragment),L=g(` or `),N(m.$$.fragment),j=g("."),this.h()},l(s){e=x(s,"SECTION",{"aria-roledescription":!0,class:!0,role:!0});var r=T(e);t=x(r,"H1",{class:!0});var k=T(t);l=$(k,a[0]),k.forEach(p),h=P(r),n=x(r,"P",{class:!0});var b=T(n);d=$(b,"Uh oh. There's an error."),b.forEach(p),E=P(r),u=x(r,"P",{class:!0});var D=T(u);v=$(D,a[2]),D.forEach(p),c=P(r),i=x(r,"P",{class:!0});var w=T(i);U(f.$$.fragment,w),L=$(w,` or diff --git a/ui/assets/local/_app/immutable/chunks/event-history-file-import.45952db8.js b/ui/assets/local/_app/immutable/chunks/event-history-file-import.e962a52b.js similarity index 87% rename from ui/assets/local/_app/immutable/chunks/event-history-file-import.45952db8.js rename to ui/assets/local/_app/immutable/chunks/event-history-file-import.e962a52b.js index 075f7d53b6..914e366f3c 100644 --- a/ui/assets/local/_app/immutable/chunks/event-history-file-import.45952db8.js +++ b/ui/assets/local/_app/immutable/chunks/event-history-file-import.e962a52b.js @@ -1 +1 @@ -import{S as B,b as C,a as I,m as $,w as S,c as g,C as L,p as E,q as k,x as A,k as d,d as w,D as x,u as f,f as _,L as N,E as U,Q as j,j as q,g as G,F as H,K as T,n as D}from"./index.4e2fcbc7.js";import{g as K}from"./navigation.10919bcf.js";import{B as P}from"./button.a45b0e55.js";import{t as y}from"./translate.d23a91ae.js";import{g as Q}from"./index.03feb468.js";import{t as R}from"./index.9a06eb7c.js";import{i as W,a as z}from"./import-events.7da68a62.js";import{l as J}from"./namespaces.85dd397c.js";import{t as F}from"./toaster.8a4adbc8.js";import{p as M}from"./parse-with-big-int.0036a80a.js";import{f as O}from"./route-for.80613b91.js";function V(m){let o=y("common.import")+"",n;return{c(){n=S(o)},l(i){n=A(i,o)},m(i,r){_(i,n,r)},p:D,d(i){i&&d(n)}}}function X(m){let o,n=y("events.import-event-history-file-upload")+"",i,r,s,v,l,a,p,c;return l=new P({props:{leadingIcon:"file-upload",disabled:!m[0],$$slots:{default:[V]},$$scope:{ctx:m}}}),l.$on("click",m[2]),{c(){o=$("label"),i=S(n),r=g(),s=$("input"),v=g(),L(l.$$.fragment),this.h()},l(t){o=E(t,"LABEL",{class:!0,for:!0});var e=k(o);i=A(e,n),e.forEach(d),r=w(t),s=E(t,"INPUT",{id:!0,class:!0,type:!0,accept:!0}),v=w(t),x(l.$$.fragment,t),this.h()},h(){f(o,"class","sr-only"),f(o,"for","import-event-history-file-upload"),f(s,"id","import-event-history-file-upload"),f(s,"class","import-input block rounded-md border border-gray-200 p-2"),f(s,"type","file"),f(s,"accept",".json")},m(t,e){_(t,o,e),N(o,i),_(t,r,e),_(t,s,e),_(t,v,e),U(l,t,e),a=!0,p||(c=j(s,"change",m[1]),p=!0)},p(t,[e]){const u={};e&1&&(u.disabled=!t[0]),e&32&&(u.$$scope={dirty:e,ctx:t}),l.$set(u)},i(t){a||(q(l.$$.fragment,t),a=!0)},o(t){G(l.$$.fragment,t),a=!1},d(t){t&&d(o),t&&d(r),t&&d(s),t&&d(v),H(l,t),p=!1,c()}}}function Y(m,o,n){let i;T(m,J,a=>n(4,i=a));let r,s=!1;return[s,async a=>{var p;const c=a.target,t=(p=c==null?void 0:c.files)===null||p===void 0?void 0:p[0],e=new FileReader;t&&(e.readAsText(t),e.onload=()=>{var u,h;try{const b=(h=(u=e==null?void 0:e.result)===null||u===void 0?void 0:u.toString())!==null&&h!==void 0?h:"";r=M(b),n(0,s=!0)}catch{F.push({variant:"error",message:y("events.event-history-load-error")}),n(0,s=!1)}})},async()=>{try{const a=await R(Array.isArray(r)?r:r==null?void 0:r.events),p=Q(a);W.set(a),z.set(p),n(0,s=!1);const c=O(i,"feed");K(c)}catch(a){console.error(a),F.push({variant:"error",message:y("events.event-history-import-error")})}}]}class mt extends B{constructor(o){super(),C(this,o,Y,X,I,{})}}export{mt as E}; +import{S as B,b as C,a as I,m as $,w as S,c as g,C as L,p as E,q as k,x as A,k as d,d as w,D as x,u as f,f as _,L as N,E as U,Q as j,j as q,g as G,F as H,K as T,n as D}from"./index.4e2fcbc7.js";import{g as K}from"./navigation.b77a045a.js";import{B as P}from"./button.a45b0e55.js";import{t as y}from"./translate.d23a91ae.js";import{g as Q}from"./index.03feb468.js";import{t as R}from"./index.49e6803e.js";import{i as W,a as z}from"./import-events.33147d23.js";import{l as J}from"./namespaces.c82b5451.js";import{t as F}from"./toaster.de22ba12.js";import{p as M}from"./parse-with-big-int.0036a80a.js";import{f as O}from"./route-for.084c7a46.js";function V(m){let o=y("common.import")+"",n;return{c(){n=S(o)},l(i){n=A(i,o)},m(i,r){_(i,n,r)},p:D,d(i){i&&d(n)}}}function X(m){let o,n=y("events.import-event-history-file-upload")+"",i,r,s,v,l,a,p,c;return l=new P({props:{leadingIcon:"file-upload",disabled:!m[0],$$slots:{default:[V]},$$scope:{ctx:m}}}),l.$on("click",m[2]),{c(){o=$("label"),i=S(n),r=g(),s=$("input"),v=g(),L(l.$$.fragment),this.h()},l(t){o=E(t,"LABEL",{class:!0,for:!0});var e=k(o);i=A(e,n),e.forEach(d),r=w(t),s=E(t,"INPUT",{id:!0,class:!0,type:!0,accept:!0}),v=w(t),x(l.$$.fragment,t),this.h()},h(){f(o,"class","sr-only"),f(o,"for","import-event-history-file-upload"),f(s,"id","import-event-history-file-upload"),f(s,"class","import-input block rounded-md border border-gray-200 p-2"),f(s,"type","file"),f(s,"accept",".json")},m(t,e){_(t,o,e),N(o,i),_(t,r,e),_(t,s,e),_(t,v,e),U(l,t,e),a=!0,p||(c=j(s,"change",m[1]),p=!0)},p(t,[e]){const u={};e&1&&(u.disabled=!t[0]),e&32&&(u.$$scope={dirty:e,ctx:t}),l.$set(u)},i(t){a||(q(l.$$.fragment,t),a=!0)},o(t){G(l.$$.fragment,t),a=!1},d(t){t&&d(o),t&&d(r),t&&d(s),t&&d(v),H(l,t),p=!1,c()}}}function Y(m,o,n){let i;T(m,J,a=>n(4,i=a));let r,s=!1;return[s,async a=>{var p;const c=a.target,t=(p=c==null?void 0:c.files)===null||p===void 0?void 0:p[0],e=new FileReader;t&&(e.readAsText(t),e.onload=()=>{var u,h;try{const b=(h=(u=e==null?void 0:e.result)===null||u===void 0?void 0:u.toString())!==null&&h!==void 0?h:"";r=M(b),n(0,s=!0)}catch{F.push({variant:"error",message:y("events.event-history-load-error")}),n(0,s=!1)}})},async()=>{try{const a=await R(Array.isArray(r)?r:r==null?void 0:r.events),p=Q(a);W.set(a),z.set(p),n(0,s=!1);const c=O(i,"feed");K(c)}catch(a){console.error(a),F.push({variant:"error",message:y("events.event-history-import-error")})}}]}class mt extends B{constructor(o){super(),C(this,o,Y,X,I,{})}}export{mt as E}; diff --git a/ui/assets/local/_app/immutable/chunks/event-summary-table.f0d65a34.js b/ui/assets/local/_app/immutable/chunks/event-summary-table.7924858b.js similarity index 98% rename from ui/assets/local/_app/immutable/chunks/event-summary-table.f0d65a34.js rename to ui/assets/local/_app/immutable/chunks/event-summary-table.7924858b.js index fdbaff4fa4..4e473647ba 100644 --- a/ui/assets/local/_app/immutable/chunks/event-summary-table.f0d65a34.js +++ b/ui/assets/local/_app/immutable/chunks/event-summary-table.7924858b.js @@ -1 +1 @@ -import{S as oe,b as ie,a as fe,m as g,p as b,q as k,k as d,u as $,f as w,L as v,z as W,g as h,h as Q,j as p,C as y,D as T,E as D,n as re,F as P,G as Vt,c as S,d as A,Z as Ye,P as q,Q as We,H as Ct,I as St,J as At,N as $e,U as Ee,V as Kt,e as U,M as Gt,aa as Me,ab as Fe,w as M,x as F,y as j,K as te,$ as Nt,ag as Yt,R as Zt,Y as Xt,A as xt,a0 as el,a1 as tl,a3 as ll,a4 as nl,a5 as Ae,a7 as Ot}from"./index.4e2fcbc7.js";import{E as rl}from"./empty-state.721f6c59.js";import{L as sl}from"./loading.95801385.js";import{t as N}from"./translate.d23a91ae.js";import{a as al}from"./index.6509bfd4.js";import{g as Rt}from"./navigation.10919bcf.js";import{p as ge}from"./stores.14a97433.js";import{I as _e}from"./icon.e8aa24c8.js";import{L as he}from"./link.6803bb00.js";import{e as je,a as qe,b as Be,i as ve}from"./index.03feb468.js";import{c as Ge,e as He,b as ol}from"./event-view.56fa9b74.js";import{t as il,r as fl,b as Ze}from"./time-format.88312c30.js";import{a as Xe,g as cl,b as ul,s as Mt,c as Ft,d as Lt,e as Ne,f as jt,h as ml,i as xe}from"./format-event-attributes.adc0487a.js";import{q as et}from"./format-time.4f091e0e.js";import{C as Oe}from"./is-event-type.4dbe973b.js";import{m as Re,g as pe,n as qt}from"./route-for.80613b91.js";import{C as De}from"./code-block.d389dfc4.js";import{C as Ie}from"./index.2169175d.js";import{f as Y}from"./format-camel-case.887ffc78.js";import{P as Le}from"./payload-decoder.23fe8b7d.js";import{T as Bt,a as _l}from"./table-header-row.fec98b60.js";import{M as Ht,a as Wt,b as Qt,d as Qe}from"./menu.69cccace.js";import{c as dl,a as pl}from"./get-event-categorization.4d9adfe9.js";import{e as tt}from"./filters.e20189d3.js";import{t as hl}from"./versions.78cca4ad.js";import{u as zt}from"./update-query-parameters.dc7e7d75.js";import{i as vl}from"./version-check.d006b302.js";import{M as $l}from"./menu-divider.ada09983.js";import{B as gl}from"./button.a45b0e55.js";function bl(s){let e,l;return e=new rl({props:{title:N("events.empty-state-title"),content:N("events.empty-state-description")}}),{c(){y(e.$$.fragment)},l(t){T(e.$$.fragment,t)},m(t,n){D(e,t,n),l=!0},p:re,i(t){l||(p(e.$$.fragment,t),l=!0)},o(t){h(e.$$.fragment,t),l=!1},d(t){P(e,t)}}}function kl(s){let e,l;return e=new sl({}),{c(){y(e.$$.fragment)},l(t){T(e.$$.fragment,t)},m(t,n){D(e,t,n),l=!0},p:re,i(t){l||(p(e.$$.fragment,t),l=!0)},o(t){h(e.$$.fragment,t),l=!1},d(t){P(e,t)}}}function wl(s){let e,l,t,n,r;const i=[kl,bl],o=[];function c(a,f){return a[0]?0:1}return t=c(s),n=o[t]=i[t](s),{c(){e=g("tr"),l=g("td"),n.c(),this.h()},l(a){e=b(a,"TR",{class:!0});var f=k(e);l=b(f,"TD",{colspan:!0});var m=k(l);n.l(m),m.forEach(d),f.forEach(d),this.h()},h(){$(l,"colspan","6"),$(e,"class","row svelte-kwty14")},m(a,f){w(a,e,f),v(e,l),o[t].m(l,null),r=!0},p(a,[f]){let m=t;t=c(a),t===m?o[t].p(a,f):(W(),h(o[m],1,1,()=>{o[m]=null}),Q(),n=o[t],n?n.p(a,f):(n=o[t]=i[t](a),n.c()),p(n,1),n.m(l,null))},i(a){r||(p(n),r=!0)},o(a){h(n),r=!1},d(a){a&&d(e),o[t].d()}}}function El(s,e,l){let{loading:t=!1}=e;return s.$$set=n=>{"loading"in n&&l(0,t=n.loading)},[t]}class yr extends oe{constructor(e){super(),ie(this,e,El,wl,fe,{loading:0})}}function lt(s){let e,l,t;return l=new _e({props:{name:s[1]?"spinner":s[3]}}),{c(){e=g("span"),y(l.$$.fragment),this.h()},l(n){e=b(n,"SPAN",{});var r=k(e);T(l.$$.fragment,r),r.forEach(d),this.h()},h(){q(e,"animate-spin",s[1])},m(n,r){w(n,e,r),D(l,e,null),t=!0},p(n,r){const i={};r&10&&(i.name=n[1]?"spinner":n[3]),l.$set(i),(!t||r&2)&&q(e,"animate-spin",n[1])},i(n){t||(p(l.$$.fragment,n),t=!0)},o(n){h(l.$$.fragment,n),t=!1},d(n){n&&d(e),P(l)}}}function Il(s){let e,l,t,n,r,i,o=s[3]&<(s);const c=s[7].default,a=Vt(c,s,s[6],null);return{c(){e=g("button"),o&&o.c(),l=S(),a&&a.c(),this.h()},l(f){e=b(f,"BUTTON",{class:!0});var m=k(e);o&&o.l(m),l=A(m),a&&a.l(m),m.forEach(d),this.h()},h(){$(e,"class",t=Ye(`pill ${s[5]} ${s[4]}`)+" svelte-1dt2q6k"),e.disabled=s[0],q(e,"active",s[2])},m(f,m){w(f,e,m),o&&o.m(e,null),v(e,l),a&&a.m(e,null),n=!0,r||(i=We(e,"click",s[8]),r=!0)},p(f,[m]){f[3]?o?(o.p(f,m),m&8&&p(o,1)):(o=lt(f),o.c(),p(o,1),o.m(e,l)):o&&(W(),h(o,1,1,()=>{o=null}),Q()),a&&a.p&&(!n||m&64)&&Ct(a,c,f,f[6],n?At(c,f[6],m,null):St(f[6]),null),(!n||m&48&&t!==(t=Ye(`pill ${f[5]} ${f[4]}`)+" svelte-1dt2q6k"))&&$(e,"class",t),(!n||m&1)&&(e.disabled=f[0]),(!n||m&52)&&q(e,"active",f[2])},i(f){n||(p(o),p(a,f),n=!0)},o(f){h(o),h(a,f),n=!1},d(f){f&&d(e),o&&o.d(),a&&a.d(f),r=!1,i()}}}function yl(s,e,l){let{$$slots:t={},$$scope:n}=e,{disabled:r=!1}=e,{loading:i=!1}=e,{active:o=!1}=e,{icon:c=null}=e,{classes:a=e.class}=e,{color:f="gray"}=e;function m(u){Kt.call(this,s,u)}return s.$$set=u=>{l(9,e=$e($e({},e),Ee(u))),"disabled"in u&&l(0,r=u.disabled),"loading"in u&&l(1,i=u.loading),"active"in u&&l(2,o=u.active),"icon"in u&&l(3,c=u.icon),"classes"in u&&l(4,a=u.classes),"color"in u&&l(5,f=u.color),"$$scope"in u&&l(6,n=u.$$scope)},e=Ee(e),[r,i,o,c,a,f,n,t,m]}class Tl extends oe{constructor(e){super(),ie(this,e,yl,Il,fe,{disabled:0,loading:1,active:2,icon:3,classes:4,color:5})}}function nt(s,e,l){const t=s.slice();t[5]=e[l][0],t[6]=e[l][1];const n=t[1]===t[5];return t[7]=n,t}function rt(s){let e,l,t=[],n=new Map,r,i=Object.entries(s[0]);const o=c=>c[5];for(let c=0;c{r=null}),Q())},i(i){n||(p(r),n=!0)},o(i){h(r),n=!1},d(i){i&&d(l),r&&r.d(i),i&&d(t)}}}function Pl(s){let e,l,t=s[2]>1&&rt(s);return{c(){t&&t.c(),e=U()},l(n){t&&t.l(n),e=U()},m(n,r){t&&t.m(n,r),w(n,e,r),l=!0},p(n,[r]){n[2]>1?t?(t.p(n,r),r&4&&p(t,1)):(t=rt(n),t.c(),p(t,1),t.m(e.parentNode,e)):t&&(W(),h(t,1,1,()=>{t=null}),Q())},i(n){l||(p(t),l=!0)},o(n){h(t),l=!1},d(n){t&&t.d(n),n&&d(e)}}}function Vl(s,e,l){let t,{attributeGrouping:n}=e,{activePill:r}=e;const i=Gt(),o=c=>i("pillChange",{key:c});return s.$$set=c=>{"attributeGrouping"in c&&l(0,n=c.attributeGrouping),"activePill"in c&&l(1,r=c.activePill)},s.$$.update=()=>{s.$$.dirty&1&&l(2,t=Object.values(n).reduce((c,a)=>(a.length&&(c+=1),c),0))},[n,r,t,i,o]}class Ut extends oe{constructor(e){super(),ie(this,e,Vl,Pl,fe,{attributeGrouping:0,activePill:1})}}function Cl(s){let e,l,t=Y(s[0])+"",n,r,i,o,c;return{c(){e=g("div"),l=g("p"),n=M(t),r=S(),i=g("p"),o=g("span"),c=M(s[1]),this.h()},l(a){e=b(a,"DIV",{class:!0});var f=k(e);l=b(f,"P",{class:!0});var m=k(l);n=F(m,t),m.forEach(d),r=A(f),i=b(f,"P",{class:!0});var u=k(i);o=b(u,"SPAN",{class:!0});var _=k(o);c=F(_,s[1]),_.forEach(d),u.forEach(d),f.forEach(d),this.h()},h(){$(l,"class","text-sm"),$(o,"class","select-all px-2 svelte-10e9wiy"),q(o,"badge",!Ne(s[0])),$(i,"class","text-sm"),$(e,"class","content detail-row svelte-10e9wiy")},m(a,f){w(a,e,f),v(e,l),v(l,n),v(e,r),v(e,i),v(i,o),v(o,c)},p(a,f){f&1&&t!==(t=Y(a[0])+"")&&j(n,t),f&2&&j(c,a[1]),f&1&&q(o,"badge",!Ne(a[0]))},i:re,o:re,d(a){a&&d(e)}}}function Sl(s){let e,l,t=Y(s[0])+"",n,r,i,o,c;return o=new Ie({props:{copyIconTitle:N("common.copy-icon-title"),copySuccessIconTitle:N("common.copy-success-icon-title"),content:s[1],"container-class":"xl:flex-row",$$slots:{default:[Rl]},$$scope:{ctx:s}}}),{c(){e=g("div"),l=g("p"),n=M(t),r=S(),i=g("div"),y(o.$$.fragment),this.h()},l(a){e=b(a,"DIV",{class:!0});var f=k(e);l=b(f,"P",{class:!0});var m=k(l);n=F(m,t),m.forEach(d),r=A(f),i=b(f,"DIV",{class:!0});var u=k(i);T(o.$$.fragment,u),u.forEach(d),f.forEach(d),this.h()},h(){$(l,"class","text-sm"),$(i,"class","text-sm"),$(e,"class","content detail-row svelte-10e9wiy")},m(a,f){w(a,e,f),v(e,l),v(l,n),v(e,r),v(e,i),D(o,i,null),c=!0},p(a,f){(!c||f&1)&&t!==(t=Y(a[0])+"")&&j(n,t);const m={};f&2&&(m.content=a[1]),f&2050&&(m.$$scope={dirty:f,ctx:a}),o.$set(m)},i(a){c||(p(o.$$.fragment,a),c=!0)},o(a){h(o.$$.fragment,a),c=!1},d(a){a&&d(e),P(o)}}}function Al(s){let e,l,t=Y(s[0])+"",n,r,i,o,c;return o=new Ie({props:{copyIconTitle:N("common.copy-icon-title"),copySuccessIconTitle:N("common.copy-success-icon-title"),content:s[1],"container-class":"xl:flex-row",$$slots:{default:[Fl]},$$scope:{ctx:s}}}),{c(){e=g("div"),l=g("p"),n=M(t),r=S(),i=g("div"),y(o.$$.fragment),this.h()},l(a){e=b(a,"DIV",{class:!0});var f=k(e);l=b(f,"P",{class:!0});var m=k(l);n=F(m,t),m.forEach(d),r=A(f),i=b(f,"DIV",{class:!0});var u=k(i);T(o.$$.fragment,u),u.forEach(d),f.forEach(d),this.h()},h(){$(l,"class","text-sm"),$(i,"class","text-sm"),$(e,"class","content detail-row svelte-10e9wiy")},m(a,f){w(a,e,f),v(e,l),v(l,n),v(e,r),v(e,i),D(o,i,null),c=!0},p(a,f){(!c||f&1)&&t!==(t=Y(a[0])+"")&&j(n,t);const m={};f&2&&(m.content=a[1]),f&2054&&(m.$$scope={dirty:f,ctx:a}),o.$set(m)},i(a){c||(p(o.$$.fragment,a),c=!0)},o(a){h(o.$$.fragment,a),c=!1},d(a){a&&d(e),P(o)}}}function Gl(s){let e,l,t=Y(s[0])+"",n,r,i,o,c;return o=new Ie({props:{copyIconTitle:N("common.copy-icon-title"),copySuccessIconTitle:N("common.copy-success-icon-title"),content:s[1],"container-class":"flex-row-reverse xl:flex-row",$$slots:{default:[jl]},$$scope:{ctx:s}}}),{c(){e=g("div"),l=g("p"),n=M(t),r=S(),i=g("div"),y(o.$$.fragment),this.h()},l(a){e=b(a,"DIV",{class:!0});var f=k(e);l=b(f,"P",{class:!0});var m=k(l);n=F(m,t),m.forEach(d),r=A(f),i=b(f,"DIV",{class:!0});var u=k(i);T(o.$$.fragment,u),u.forEach(d),f.forEach(d),this.h()},h(){$(l,"class","text-sm"),$(i,"class","text-sm"),$(e,"class","content detail-row svelte-10e9wiy")},m(a,f){w(a,e,f),v(e,l),v(l,n),v(e,r),v(e,i),D(o,i,null),c=!0},p(a,f){(!c||f&1)&&t!==(t=Y(a[0])+"")&&j(n,t);const m={};f&2&&(m.content=a[1]),f&2050&&(m.$$scope={dirty:f,ctx:a}),o.$set(m)},i(a){c||(p(o.$$.fragment,a),c=!0)},o(a){h(o.$$.fragment,a),c=!1},d(a){a&&d(e),P(o)}}}function Nl(s){let e,l,t,n=Y(s[0])+"",r,i,o,c,a,f,m;const u=[Hl,Bl,ql],_=[];function E(I,G){var L;return(L=I[1])!=null&&L.payloads?0:I[0]==="searchAttributes"?1:2}o=E(s),c=_[o]=u[o](s);let V=s[5]&&!s[3]&&ot(s);return{c(){e=g("div"),l=g("div"),t=g("p"),r=M(n),i=S(),c.c(),f=S(),V&&V.c(),this.h()},l(I){e=b(I,"DIV",{class:!0});var G=k(e);l=b(G,"DIV",{class:!0});var L=k(l);t=b(L,"P",{class:!0});var le=k(t);r=F(le,n),le.forEach(d),i=A(L),c.l(L),L.forEach(d),f=A(G),V&&V.l(G),G.forEach(d),this.h()},h(){$(t,"class","text-sm"),$(l,"class",a="flex flex-col "+(s[5]?"lg:w-1/2":"")),$(e,"class","content code-block-row svelte-10e9wiy"),q(e,"code-with-stack-trace",s[5])},m(I,G){w(I,e,G),v(e,l),v(l,t),v(t,r),v(l,i),_[o].m(l,null),v(e,f),V&&V.m(e,null),m=!0},p(I,G){(!m||G&1)&&n!==(n=Y(I[0])+"")&&j(r,n);let L=o;o=E(I),o===L?_[o].p(I,G):(W(),h(_[L],1,1,()=>{_[L]=null}),Q(),c=_[o],c?c.p(I,G):(c=_[o]=u[o](I),c.c()),p(c,1),c.m(l,null)),(!m||G&32&&a!==(a="flex flex-col "+(I[5]?"lg:w-1/2":"")))&&$(l,"class",a),I[5]&&!I[3]?V?(V.p(I,G),G&40&&p(V,1)):(V=ot(I),V.c(),p(V,1),V.m(e,null)):V&&(W(),h(V,1,1,()=>{V=null}),Q()),(!m||G&32)&&q(e,"code-with-stack-trace",I[5])},i(I){m||(p(c),p(V),m=!0)},o(I){h(c),h(V),m=!1},d(I){I&&d(e),_[o].d(),V&&V.d()}}}function Ol(s){let e;return{c(){e=M(s[1])},l(l){e=F(l,s[1])},m(l,t){w(l,e,t)},p(l,t){t&2&&j(e,l[1])},d(l){l&&d(e)}}}function Rl(s){let e,l;return e=new he({props:{newTab:!0,href:Re({namespace:s[7],queue:s[1]}),$$slots:{default:[Ol]},$$scope:{ctx:s}}}),{c(){y(e.$$.fragment)},l(t){T(e.$$.fragment,t)},m(t,n){D(e,t,n),l=!0},p(t,n){const r={};n&2&&(r.href=Re({namespace:t[7],queue:t[1]})),n&2050&&(r.$$scope={dirty:n,ctx:t}),e.$set(r)},i(t){l||(p(e.$$.fragment,t),l=!0)},o(t){h(e.$$.fragment,t),l=!1},d(t){P(e,t)}}}function Ml(s){let e;return{c(){e=M(s[1])},l(l){e=F(l,s[1])},m(l,t){w(l,e,t)},p(l,t){t&2&&j(e,l[1])},d(l){l&&d(e)}}}function Fl(s){var t;let e,l;return e=new he({props:{newTab:!0,href:pe({namespace:((t=s[2])==null?void 0:t.namespace)||s[7],workflow:s[2].workflowExecutionWorkflowId,run:s[2].workflowExecutionRunId}),$$slots:{default:[Ml]},$$scope:{ctx:s}}}),{c(){y(e.$$.fragment)},l(n){T(e.$$.fragment,n)},m(n,r){D(e,n,r),l=!0},p(n,r){var o;const i={};r&4&&(i.href=pe({namespace:((o=n[2])==null?void 0:o.namespace)||n[7],workflow:n[2].workflowExecutionWorkflowId,run:n[2].workflowExecutionRunId})),r&2050&&(i.$$scope={dirty:r,ctx:n}),e.$set(i)},i(n){l||(p(e.$$.fragment,n),l=!0)},o(n){h(e.$$.fragment,n),l=!1},d(n){P(e,n)}}}function Ll(s){let e;return{c(){e=M(s[1])},l(l){e=F(l,s[1])},m(l,t){w(l,e,t)},p(l,t){t&2&&j(e,l[1])},d(l){l&&d(e)}}}function jl(s){let e,l;return e=new he({props:{newTab:!0,href:pe({namespace:s[7],workflow:s[6],run:s[1]}),$$slots:{default:[Ll]},$$scope:{ctx:s}}}),{c(){y(e.$$.fragment)},l(t){T(e.$$.fragment,t)},m(t,n){D(e,t,n),l=!0},p(t,n){const r={};n&2&&(r.href=pe({namespace:t[7],workflow:t[6],run:t[1]})),n&2050&&(r.$$scope={dirty:n,ctx:t}),e.$set(r)},i(t){l||(p(e.$$.fragment,t),l=!0)},o(t){h(e.$$.fragment,t),l=!1},d(t){P(e,t)}}}function ql(s){let e,l;return e=new Le({props:{value:s[4],$$slots:{default:[Wl,({decodedValue:t})=>({10:t}),({decodedValue:t})=>t?1024:0]},$$scope:{ctx:s}}}),{c(){y(e.$$.fragment)},l(t){T(e.$$.fragment,t)},m(t,n){D(e,t,n),l=!0},p(t,n){const r={};n&16&&(r.value=t[4]),n&3112&&(r.$$scope={dirty:n,ctx:t}),e.$set(r)},i(t){l||(p(e.$$.fragment,t),l=!0)},o(t){h(e.$$.fragment,t),l=!1},d(t){P(e,t)}}}function Bl(s){let e,l;return e=new Le({props:{key:"searchAttributes",value:{searchAttributes:s[4]},$$slots:{default:[Ql,({decodedValue:t})=>({10:t}),({decodedValue:t})=>t?1024:0]},$$scope:{ctx:s}}}),{c(){y(e.$$.fragment)},l(t){T(e.$$.fragment,t)},m(t,n){D(e,t,n),l=!0},p(t,n){const r={};n&16&&(r.value={searchAttributes:t[4]}),n&3112&&(r.$$scope={dirty:n,ctx:t}),e.$set(r)},i(t){l||(p(e.$$.fragment,t),l=!0)},o(t){h(e.$$.fragment,t),l=!1},d(t){P(e,t)}}}function Hl(s){let e,l;return e=new Le({props:{value:s[1],key:"payloads",$$slots:{default:[zl,({decodedValue:t})=>({10:t}),({decodedValue:t})=>t?1024:0]},$$scope:{ctx:s}}}),{c(){y(e.$$.fragment)},l(t){T(e.$$.fragment,t)},m(t,n){D(e,t,n),l=!0},p(t,n){const r={};n&2&&(r.value=t[1]),n&3112&&(r.$$scope={dirty:n,ctx:t}),e.$set(r)},i(t){l||(p(e.$$.fragment,t),l=!0)},o(t){h(e.$$.fragment,t),l=!1},d(t){P(e,t)}}}function Wl(s){let e,l;return e=new De({props:{content:s[10],class:"h-auto "+(s[5]?"mb-2":"")+" max-h-96 overflow-auto",inline:s[3],copyIconTitle:N("common.copy-icon-title"),copySuccessIconTitle:N("common.copy-success-icon-title")}}),{c(){y(e.$$.fragment)},l(t){T(e.$$.fragment,t)},m(t,n){D(e,t,n),l=!0},p(t,n){const r={};n&1024&&(r.content=t[10]),n&32&&(r.class="h-auto "+(t[5]?"mb-2":"")+" max-h-96 overflow-auto"),n&8&&(r.inline=t[3]),e.$set(r)},i(t){l||(p(e.$$.fragment,t),l=!0)},o(t){h(e.$$.fragment,t),l=!1},d(t){P(e,t)}}}function Ql(s){let e,l;return e=new De({props:{content:s[10],class:"h-auto "+(s[5]?"mb-2":"")+" max-h-96 overflow-auto",inline:s[3],copyIconTitle:N("common.copy-icon-title"),copySuccessIconTitle:N("common.copy-success-icon-title")}}),{c(){y(e.$$.fragment)},l(t){T(e.$$.fragment,t)},m(t,n){D(e,t,n),l=!0},p(t,n){const r={};n&1024&&(r.content=t[10]),n&32&&(r.class="h-auto "+(t[5]?"mb-2":"")+" max-h-96 overflow-auto"),n&8&&(r.inline=t[3]),e.$set(r)},i(t){l||(p(e.$$.fragment,t),l=!0)},o(t){h(e.$$.fragment,t),l=!1},d(t){P(e,t)}}}function zl(s){let e,l;return e=new De({props:{content:s[10],class:"h-auto "+(s[5]?"mb-2":"")+" max-h-96 overflow-auto",inline:s[3],copyIconTitle:N("common.copy-icon-title"),copySuccessIconTitle:N("common.copy-success-icon-title")}}),{c(){y(e.$$.fragment)},l(t){T(e.$$.fragment,t)},m(t,n){D(e,t,n),l=!0},p(t,n){const r={};n&1024&&(r.content=t[10]),n&32&&(r.class="h-auto "+(t[5]?"mb-2":"")+" max-h-96 overflow-auto"),n&8&&(r.inline=t[3]),e.$set(r)},i(t){l||(p(e.$$.fragment,t),l=!0)},o(t){h(e.$$.fragment,t),l=!1},d(t){P(e,t)}}}function ot(s){let e,l,t=N("workflows.call-stack-tab")+"",n,r,i,o;return i=new De({props:{content:s[5],language:"text",class:"mb-2 h-full lg:pr-2",copyIconTitle:N("common.copy-icon-title"),copySuccessIconTitle:N("common.copy-success-icon-title")}}),{c(){e=g("div"),l=g("p"),n=M(t),r=S(),y(i.$$.fragment),this.h()},l(c){e=b(c,"DIV",{class:!0});var a=k(e);l=b(a,"P",{class:!0});var f=k(l);n=F(f,t),f.forEach(d),r=A(a),T(i.$$.fragment,a),a.forEach(d),this.h()},h(){$(l,"class","text-sm"),$(e,"class","flex flex-col lg:w-1/2")},m(c,a){w(c,e,a),v(e,l),v(l,n),v(e,r),D(i,e,null),o=!0},p(c,a){const f={};a&32&&(f.content=c[5]),i.$set(f)},i(c){o||(p(i.$$.fragment,c),o=!0)},o(c){h(i.$$.fragment,c),o=!1},d(c){c&&d(e),P(i)}}}function Ul(s){let e,l,t,n,r,i,o,c;const a=[Nl,Gl,Al,Sl,Cl],f=[];function m(u,_){return _&1&&(l=null),_&5&&(t=null),_&1&&(n=null),typeof u[1]=="object"?0:(l==null&&(l=!!Mt(u[0])),l?1:(t==null&&(t=!!Ft(u[0],u[2])),t?2:(n==null&&(n=!!Lt(u[0])),n?3:4)))}return r=m(s,-1),i=f[r]=a[r](s),{c(){e=g("div"),i.c(),this.h()},l(u){e=b(u,"DIV",{class:!0});var _=k(e);i.l(_),_.forEach(d),this.h()},h(){$(e,"class",o="row "+s[8].class+" svelte-10e9wiy")},m(u,_){w(u,e,_),f[r].m(e,null),c=!0},p(u,[_]){let E=r;r=m(u,_),r===E?f[r].p(u,_):(W(),h(f[E],1,1,()=>{f[E]=null}),Q(),i=f[r],i?i.p(u,_):(i=f[r]=a[r](u),i.c()),p(i,1),i.m(e,null)),(!c||_&256&&o!==(o="row "+u[8].class+" svelte-10e9wiy"))&&$(e,"class",o)},i(u){c||(p(i),c=!0)},o(u){h(i),c=!1},d(u){u&&d(e),f[r].d()}}}function Jl(s,e,l){let t,n,r;te(s,ge,u=>l(9,r=u));let{key:i}=e,{value:o}=e,{attributes:c}=e,{inline:a=!1}=e;const{workflow:f,namespace:m}=r.params;return s.$$set=u=>{l(8,e=$e($e({},e),Ee(u))),"key"in u&&l(0,i=u.key),"value"in u&&l(1,o=u.value),"attributes"in u&&l(2,c=u.attributes),"inline"in u&&l(3,a=u.inline)},s.$$.update=()=>{s.$$.dirty&2&&l(4,t=cl(o)),s.$$.dirty&16&&l(5,n=ul(t))},e=Ee(e),[i,o,c,a,t,n,f,m,e]}class Jt extends oe{constructor(e){super(),ie(this,e,Jl,Ul,fe,{key:0,value:1,attributes:2,inline:3})}}function it(s,e,l){const t=s.slice();return t[9]=e[l][0],t[10]=e[l][1],t}function Kl(s){let e=s[9]+"",l;return{c(){l=M(e)},l(t){l=F(t,e)},m(t,n){w(t,l,n)},p(t,n){n&1&&e!==(e=t[9]+"")&&j(l,e)},d(t){t&&d(l)}}}function ft(s,e){let l,t,n,r,i,o,c,a,f,m=(Oe(e[10])?"LocalActivity":e[10].eventType)+"",u,_,E,V,I,G,L;function le(...z){return e[7](e[9],...z)}o=new he({props:{class:"truncate",$$slots:{default:[Kl]},$$scope:{ctx:e}}}),o.$on("click",le);function B(){return e[8](e[9])}return{key:s,first:null,c(){l=g("tr"),t=g("td"),n=S(),r=g("td"),i=g("p"),y(o.$$.fragment),c=S(),a=g("td"),f=g("p"),u=M(m),_=S(),E=g("td"),V=S(),this.h()},l(z){l=b(z,"TR",{class:!0});var H=k(l);t=b(H,"TD",{class:!0}),k(t).forEach(d),n=A(H),r=b(H,"TD",{class:!0});var ne=k(r);i=b(ne,"P",{class:!0});var ue=k(i);T(o.$$.fragment,ue),ue.forEach(d),ne.forEach(d),c=A(H),a=b(H,"TD",{});var ce=k(a);f=b(ce,"P",{class:!0});var ae=k(f);u=F(ae,m),ae.forEach(d),ce.forEach(d),_=A(H),E=b(H,"TD",{}),k(E).forEach(d),V=A(H),H.forEach(d),this.h()},h(){$(t,"class","w-1/12"),$(i,"class","truncate text-sm text-gray-500 md:text-base"),$(r,"class","w-24"),$(f,"class","event-type truncate text-sm md:text-base svelte-11yead6"),$(l,"class","row svelte-11yead6"),q(l,"active",e[9]===e[1]),q(l,"failure",je(e[10])),q(l,"canceled",qe(e[10])),q(l,"terminated",Be(e[10])),this.first=l},m(z,H){w(z,l,H),v(l,t),v(l,n),v(l,r),v(r,i),D(o,i,null),v(l,c),v(l,a),v(a,f),v(f,u),v(l,_),v(l,E),v(l,V),I=!0,G||(L=We(l,"click",Nt(Yt(B))),G=!0)},p(z,H){e=z;const ne={};H&8193&&(ne.$$scope={dirty:H,ctx:e}),o.$set(ne),(!I||H&1)&&m!==(m=(Oe(e[10])?"LocalActivity":e[10].eventType)+"")&&j(u,m),(!I||H&3)&&q(l,"active",e[9]===e[1]),(!I||H&1)&&q(l,"failure",je(e[10])),(!I||H&1)&&q(l,"canceled",qe(e[10])),(!I||H&1)&&q(l,"terminated",Be(e[10]))},i(z){I||(p(o.$$.fragment,z),I=!0)},o(z){h(o.$$.fragment,z),I=!1},d(z){z&&d(l),P(o),G=!1,L()}}}function Yl(s){let e=[],l=new Map,t,n,r=[...s[0].events].reverse();const i=o=>o[9];for(let o=0;ol(6,i=u));let{eventGroup:o}=e,{selectedId:c}=e,{onGroupClick:a}=e;const f=(u,_)=>{_.stopPropagation(),Rt(qt({eventId:u,namespace:r,workflow:t,run:n}))},m=u=>a(u);return s.$$set=u=>{"eventGroup"in u&&l(0,o=u.eventGroup),"selectedId"in u&&l(1,c=u.selectedId),"onGroupClick"in u&&l(2,a=u.onGroupClick)},s.$$.update=()=>{s.$$.dirty&64&&l(5,{workflow:t,run:n,namespace:r}=i.params,t,(l(4,n),l(6,i)),(l(3,r),l(6,i)))},[o,c,a,r,n,t,i,f,m]}class xl extends oe{constructor(e){super(),ie(this,e,Xl,Zl,fe,{eventGroup:0,selectedId:1,onGroupClick:2})}}function ct(s,e,l){const t=s.slice();return t[10]=e[l][0],t[11]=e[l][1],t}function ut(s,e,l){const t=s.slice();return t[10]=e[l][0],t[11]=e[l][1],t}function en(s){let e,l,t,n=[],r=new Map,i;l=new Ut({props:{attributeGrouping:s[4],activePill:s[5]}}),l.$on("pillChange",s[7]);let o=s[6];const c=a=>a[10];for(let a=0;au[10];for(let u=0;u{i=null}),Q())},i(c){r||(p(i),r=!0)},o(c){h(i),r=!1},d(c){c&&d(l),i&&i.d(c),c&&d(n)}}}function dt(s){let e,l;return e=new Jt({props:{key:s[10],value:s[11],attributes:s[3],class:"w-full"}}),{c(){y(e.$$.fragment)},l(t){T(e.$$.fragment,t)},m(t,n){D(e,t,n),l=!0},p(t,n){const r={};n&64&&(r.key=t[10]),n&64&&(r.value=t[11]),n&8&&(r.attributes=t[3]),e.$set(r)},i(t){l||(p(e.$$.fragment,t),l=!0)},o(t){h(e.$$.fragment,t),l=!1},d(t){P(e,t)}}}function pt(s,e){var o;let l,t=(o=e[4][e[5]])==null?void 0:o.includes(e[10]),n,r,i=t&&dt(e);return{key:s,first:null,c(){l=U(),i&&i.c(),n=U(),this.h()},l(c){l=U(),i&&i.l(c),n=U(),this.h()},h(){this.first=l},m(c,a){w(c,l,a),i&&i.m(c,a),w(c,n,a),r=!0},p(c,a){var f;e=c,a&112&&(t=(f=e[4][e[5]])==null?void 0:f.includes(e[10])),t?i?(i.p(e,a),a&112&&p(i,1)):(i=dt(e),i.c(),p(i,1),i.m(n.parentNode,n)):i&&(W(),h(i,1,1,()=>{i=null}),Q())},i(c){r||(p(i),r=!0)},o(c){h(i),r=!1},d(c){c&&d(l),i&&i.d(c),c&&d(n)}}}function ln(s){let e,l,t,n,r;const i=[tn,en],o=[];function c(a,f){return f&6&&(e=null),e==null&&(e=!!(a[2]&&ve(a[1]))),e?0:1}return l=c(s,-1),t=o[l]=i[l](s),{c(){t.c(),n=U()},l(a){t.l(a),n=U()},m(a,f){o[l].m(a,f),w(a,n,f),r=!0},p(a,[f]){let m=l;l=c(a,f),l===m?o[l].p(a,f):(W(),h(o[m],1,1,()=>{o[m]=null}),Q(),t=o[l],t?t.p(a,f):(t=o[l]=i[l](a),t.c()),p(t,1),t.m(n.parentNode,n))},i(a){r||(p(t),r=!0)},o(a){h(t),r=!1},d(a){o[l].d(a),a&&d(n)}}}function nn(s,e,l){let t,n,r,i,{event:o}=e,{currentEvent:c}=e,{compact:a=!1}=e,{selectedId:f}=e;const m=_=>{l(5,r=_.detail.key)},u=_=>l(0,f=_);return s.$$set=_=>{"event"in _&&l(1,o=_.event),"currentEvent"in _&&l(9,c=_.currentEvent),"compact"in _&&l(2,a=_.compact),"selectedId"in _&&l(0,f=_.selectedId)},s.$$.update=()=>{s.$$.dirty&516&&l(3,t=jt(c,{compact:a})),s.$$.dirty&10&&l(4,n=ml(o,t)),s.$$.dirty&16&&l(5,r=Object.keys(n).find(_=>n[_].length)),s.$$.dirty&8&&l(6,i=Object.entries(t))},[f,o,a,t,n,r,i,m,u,c]}class rn extends oe{constructor(e){super(),ie(this,e,nn,ln,fe,{event:1,currentEvent:9,compact:2,selectedId:0})}}function sn(s){let e,l,t=Y(s[0])+"",n,r,i,o,c;return{c(){e=g("div"),l=g("p"),n=M(t),r=S(),i=g("p"),o=g("span"),c=M(s[1]),this.h()},l(a){e=b(a,"DIV",{class:!0});var f=k(e);l=b(f,"P",{class:!0});var m=k(l);n=F(m,t),m.forEach(d),r=A(f),i=b(f,"P",{class:!0});var u=k(i);o=b(u,"SPAN",{class:!0});var _=k(o);c=F(_,s[1]),_.forEach(d),u.forEach(d),f.forEach(d),this.h()},h(){$(l,"class","mr-3 truncate text-sm"),$(o,"class","w-full select-all text-gray-700 svelte-n4ehvt"),q(o,"badge",!Ne(s[0])),$(i,"class","truncate text-right text-sm xl:text-left"),$(e,"class","flex w-full flex-wrap items-center gap-1 pr-1")},m(a,f){w(a,e,f),v(e,l),v(l,n),v(e,r),v(e,i),v(i,o),v(o,c)},p(a,f){f&1&&t!==(t=Y(a[0])+"")&&j(n,t),f&2&&j(c,a[1]),f&1&&q(o,"badge",!Ne(a[0]))},i:re,o:re,d(a){a&&d(e)}}}function an(s){let e,l,t=Y(s[0])+"",n,r,i,o,c;return o=new Ie({props:{copyIconTitle:N("common.copy-icon-title"),copySuccessIconTitle:N("common.copy-success-icon-title"),content:s[1],$$slots:{default:[mn]},$$scope:{ctx:s}}}),{c(){e=g("div"),l=g("p"),n=M(t),r=S(),i=g("div"),y(o.$$.fragment),this.h()},l(a){e=b(a,"DIV",{class:!0});var f=k(e);l=b(f,"P",{class:!0});var m=k(l);n=F(m,t),m.forEach(d),r=A(f),i=b(f,"DIV",{class:!0});var u=k(i);T(o.$$.fragment,u),u.forEach(d),f.forEach(d),this.h()},h(){$(l,"class","mr-3 truncate text-sm"),$(i,"class","truncate text-sm"),$(e,"class","flex w-full flex-wrap items-center gap-1 pr-1")},m(a,f){w(a,e,f),v(e,l),v(l,n),v(e,r),v(e,i),D(o,i,null),c=!0},p(a,f){(!c||f&1)&&t!==(t=Y(a[0])+"")&&j(n,t);const m={};f&2&&(m.content=a[1]),f&514&&(m.$$scope={dirty:f,ctx:a}),o.$set(m)},i(a){c||(p(o.$$.fragment,a),c=!0)},o(a){h(o.$$.fragment,a),c=!1},d(a){a&&d(e),P(o)}}}function on(s){let e,l,t=Y(s[0])+"",n,r,i,o,c;return o=new Ie({props:{copyIconTitle:N("common.copy-icon-title"),copySuccessIconTitle:N("common.copy-success-icon-title"),content:s[1],"container-class":"xl:flex-row",$$slots:{default:[dn]},$$scope:{ctx:s}}}),{c(){e=g("div"),l=g("p"),n=M(t),r=S(),i=g("div"),y(o.$$.fragment),this.h()},l(a){e=b(a,"DIV",{class:!0});var f=k(e);l=b(f,"P",{class:!0});var m=k(l);n=F(m,t),m.forEach(d),r=A(f),i=b(f,"DIV",{class:!0});var u=k(i);T(o.$$.fragment,u),u.forEach(d),f.forEach(d),this.h()},h(){$(l,"class","truncate text-sm"),$(i,"class","truncate text-sm"),$(e,"class","flex w-full flex-wrap items-center gap-1 pr-1")},m(a,f){w(a,e,f),v(e,l),v(l,n),v(e,r),v(e,i),D(o,i,null),c=!0},p(a,f){(!c||f&1)&&t!==(t=Y(a[0])+"")&&j(n,t);const m={};f&2&&(m.content=a[1]),f&518&&(m.$$scope={dirty:f,ctx:a}),o.$set(m)},i(a){c||(p(o.$$.fragment,a),c=!0)},o(a){h(o.$$.fragment,a),c=!1},d(a){a&&d(e),P(o)}}}function fn(s){let e,l,t=Y(s[0])+"",n,r,i,o,c;return o=new Ie({props:{copyIconTitle:N("common.copy-icon-title"),copySuccessIconTitle:N("common.copy-success-icon-title"),content:s[1],"container-class":"xl:flex-row",$$slots:{default:[hn]},$$scope:{ctx:s}}}),{c(){e=g("div"),l=g("p"),n=M(t),r=S(),i=g("div"),y(o.$$.fragment),this.h()},l(a){e=b(a,"DIV",{class:!0});var f=k(e);l=b(f,"P",{class:!0});var m=k(l);n=F(m,t),m.forEach(d),r=A(f),i=b(f,"DIV",{class:!0});var u=k(i);T(o.$$.fragment,u),u.forEach(d),f.forEach(d),this.h()},h(){$(l,"class","mr-3 truncate text-sm"),$(i,"class","truncate text-sm"),$(e,"class","flex w-full flex-wrap items-center gap-1 pr-1")},m(a,f){w(a,e,f),v(e,l),v(l,n),v(e,r),v(e,i),D(o,i,null),c=!0},p(a,f){(!c||f&1)&&t!==(t=Y(a[0])+"")&&j(n,t);const m={};f&2&&(m.content=a[1]),f&514&&(m.$$scope={dirty:f,ctx:a}),o.$set(m)},i(a){c||(p(o.$$.fragment,a),c=!0)},o(a){h(o.$$.fragment,a),c=!1},d(a){a&&d(e),P(o)}}}function cn(s){let e,l,t=Y(s[0])+"",n,r,i,o;return i=new Le({props:{value:s[1],key:"payloads",$$slots:{default:[vn,({decodedValue:c})=>({8:c}),({decodedValue:c})=>c?256:0]},$$scope:{ctx:s}}}),{c(){e=g("div"),l=g("p"),n=M(t),r=S(),y(i.$$.fragment),this.h()},l(c){e=b(c,"DIV",{class:!0});var a=k(e);l=b(a,"P",{class:!0});var f=k(l);n=F(f,t),f.forEach(d),r=A(a),T(i.$$.fragment,a),a.forEach(d),this.h()},h(){$(l,"class","min-w-fit text-sm"),$(e,"class","flex w-full flex-wrap items-center justify-between gap-1 pr-1 xl:flex-nowrap xl:gap-4")},m(c,a){w(c,e,a),v(e,l),v(l,n),v(e,r),D(i,e,null),o=!0},p(c,a){(!o||a&1)&&t!==(t=Y(c[0])+"")&&j(n,t);const f={};a&2&&(f.value=c[1]),a&776&&(f.$$scope={dirty:a,ctx:c}),i.$set(f)},i(c){o||(p(i.$$.fragment,c),o=!0)},o(c){h(i.$$.fragment,c),o=!1},d(c){c&&d(e),P(i)}}}function un(s){let e;return{c(){e=M(s[1])},l(l){e=F(l,s[1])},m(l,t){w(l,e,t)},p(l,t){t&2&&j(e,l[1])},d(l){l&&d(e)}}}function mn(s){let e,l;return e=new he({props:{class:"truncate",newTab:!0,href:Re({namespace:s[5],queue:s[1]}),$$slots:{default:[un]},$$scope:{ctx:s}}}),{c(){y(e.$$.fragment)},l(t){T(e.$$.fragment,t)},m(t,n){D(e,t,n),l=!0},p(t,n){const r={};n&2&&(r.href=Re({namespace:t[5],queue:t[1]})),n&514&&(r.$$scope={dirty:n,ctx:t}),e.$set(r)},i(t){l||(p(e.$$.fragment,t),l=!0)},o(t){h(e.$$.fragment,t),l=!1},d(t){P(e,t)}}}function _n(s){let e;return{c(){e=M(s[1])},l(l){e=F(l,s[1])},m(l,t){w(l,e,t)},p(l,t){t&2&&j(e,l[1])},d(l){l&&d(e)}}}function dn(s){let e,l;return e=new he({props:{class:"truncate",newTab:!0,href:pe({namespace:s[5],workflow:s[2].workflowExecutionWorkflowId,run:s[2].workflowExecutionRunId}),$$slots:{default:[_n]},$$scope:{ctx:s}}}),{c(){y(e.$$.fragment)},l(t){T(e.$$.fragment,t)},m(t,n){D(e,t,n),l=!0},p(t,n){const r={};n&4&&(r.href=pe({namespace:t[5],workflow:t[2].workflowExecutionWorkflowId,run:t[2].workflowExecutionRunId})),n&514&&(r.$$scope={dirty:n,ctx:t}),e.$set(r)},i(t){l||(p(e.$$.fragment,t),l=!0)},o(t){h(e.$$.fragment,t),l=!1},d(t){P(e,t)}}}function pn(s){let e;return{c(){e=M(s[1])},l(l){e=F(l,s[1])},m(l,t){w(l,e,t)},p(l,t){t&2&&j(e,l[1])},d(l){l&&d(e)}}}function hn(s){let e,l;return e=new he({props:{class:"truncate",newTab:!0,href:pe({namespace:s[5],workflow:s[4],run:s[1]}),$$slots:{default:[pn]},$$scope:{ctx:s}}}),{c(){y(e.$$.fragment)},l(t){T(e.$$.fragment,t)},m(t,n){D(e,t,n),l=!0},p(t,n){const r={};n&2&&(r.href=pe({namespace:t[5],workflow:t[4],run:t[1]})),n&514&&(r.$$scope={dirty:n,ctx:t}),e.$set(r)},i(t){l||(p(e.$$.fragment,t),l=!0)},o(t){h(e.$$.fragment,t),l=!1},d(t){P(e,t)}}}function vn(s){let e,l;return e=new De({props:{content:s[8],inline:s[3],copyIconTitle:N("common.copy-icon-title"),copySuccessIconTitle:N("common.copy-success-icon-title")}}),{c(){y(e.$$.fragment)},l(t){T(e.$$.fragment,t)},m(t,n){D(e,t,n),l=!0},p(t,n){const r={};n&256&&(r.content=t[8]),n&8&&(r.inline=t[3]),e.$set(r)},i(t){l||(p(e.$$.fragment,t),l=!0)},o(t){h(e.$$.fragment,t),l=!1},d(t){P(e,t)}}}function $n(s){let e,l,t,n,r,i,o,c;const a=[cn,fn,on,an,sn],f=[];function m(u,_){return _&1&&(l=null),_&5&&(t=null),_&1&&(n=null),typeof u[1]=="object"?0:(l==null&&(l=!!Mt(u[0])),l?1:(t==null&&(t=!!Ft(u[0],u[2])),t?2:(n==null&&(n=!!Lt(u[0])),n?3:4)))}return r=m(s,-1),i=f[r]=a[r](s),{c(){e=g("div"),i.c(),this.h()},l(u){e=b(u,"DIV",{class:!0});var _=k(e);i.l(_),_.forEach(d),this.h()},h(){$(e,"class",o="flex flex-row items-center gap-2 first:pt-0 last:border-b-0 xl:gap-4 "+s[6].class+" svelte-n4ehvt")},m(u,_){w(u,e,_),f[r].m(e,null),c=!0},p(u,[_]){let E=r;r=m(u,_),r===E?f[r].p(u,_):(W(),h(f[E],1,1,()=>{f[E]=null}),Q(),i=f[r],i?i.p(u,_):(i=f[r]=a[r](u),i.c()),p(i,1),i.m(e,null)),(!c||_&64&&o!==(o="flex flex-row items-center gap-2 first:pt-0 last:border-b-0 xl:gap-4 "+u[6].class+" svelte-n4ehvt"))&&$(e,"class",o)},i(u){c||(p(i),c=!0)},o(u){h(i),c=!1},d(u){u&&d(e),f[r].d()}}}function gn(s,e,l){let t;te(s,ge,f=>l(7,t=f));let{key:n}=e,{value:r}=e,{attributes:i}=e,{inline:o=!1}=e;const{workflow:c,namespace:a}=t.params;return s.$$set=f=>{l(6,e=$e($e({},e),Ee(f))),"key"in f&&l(0,n=f.key),"value"in f&&l(1,r=f.value),"attributes"in f&&l(2,i=f.attributes),"inline"in f&&l(3,o=f.inline)},e=Ee(e),[n,r,i,o,c,a,e]}class bn extends oe{constructor(e){super(),ie(this,e,gn,$n,fe,{key:0,value:1,attributes:2,inline:3})}}function kn(s){let e=s[0].id+"",l;return{c(){l=M(e)},l(t){l=F(t,e)},m(t,n){w(t,l,n)},p(t,n){n[0]&1&&e!==(e=t[0].id+"")&&j(l,e)},d(t){t&&d(l)}}}function wn(s){var n;let e,l=Ze((n=s[0])==null?void 0:n.eventTime,s[14],{relative:s[15]})+"",t;return{c(){e=g("p"),t=M(l),this.h()},l(r){e=b(r,"P",{class:!0});var i=k(e);t=F(i,l),i.forEach(d),this.h()},h(){$(e,"class","break-word truncate text-sm md:whitespace-normal md:text-base")},m(r,i){w(r,e,i),v(e,t)},p(r,i){var o;i[0]&49153&&l!==(l=Ze((o=r[0])==null?void 0:o.eventTime,r[14],{relative:r[15]})+"")&&j(t,l)},i:re,o:re,d(r){r&&d(e)}}}function En(s){let e,l,t,n,r=s[9]&&ht(s),i=s[8]&&s[8]!=="0ms"&&vt(s);return{c(){e=g("p"),r&&r.c(),l=S(),i&&i.c(),t=U(),this.h()},l(o){e=b(o,"P",{class:!0});var c=k(e);r&&r.l(c),c.forEach(d),l=A(o),i&&i.l(o),t=U(),this.h()},h(){$(e,"class","break-word truncate text-sm md:whitespace-normal")},m(o,c){w(o,e,c),r&&r.m(e,null),w(o,l,c),i&&i.m(o,c),w(o,t,c),n=!0},p(o,c){o[9]?r?r.p(o,c):(r=ht(o),r.c(),r.m(e,null)):r&&(r.d(1),r=null),o[8]&&o[8]!=="0ms"?i?(i.p(o,c),c[0]&256&&p(i,1)):(i=vt(o),i.c(),p(i,1),i.m(t.parentNode,t)):i&&(W(),h(i,1,1,()=>{i=null}),Q())},i(o){n||(p(i),n=!0)},o(o){h(i),n=!1},d(o){o&&d(e),r&&r.d(),o&&d(l),i&&i.d(o),o&&d(t)}}}function ht(s){let e=s[12]?"-":"+",l,t;return{c(){l=M(e),t=M(s[9])},l(n){l=F(n,e),t=F(n,s[9])},m(n,r){w(n,l,r),w(n,t,r)},p(n,r){r[0]&4096&&e!==(e=n[12]?"-":"+")&&j(l,e),r[0]&512&&j(t,n[9])},d(n){n&&d(l),n&&d(t)}}}function vt(s){let e,l,t,n,r,i;return l=new _e({props:{class:"inline",name:"clock"}}),{c(){e=g("div"),y(l.$$.fragment),t=S(),n=g("p"),r=M(s[8]),this.h()},l(o){e=b(o,"DIV",{class:!0});var c=k(e);T(l.$$.fragment,c),t=A(c),n=b(c,"P",{class:!0});var a=k(n);r=F(a,s[8]),a.forEach(d),c.forEach(d),this.h()},h(){$(n,"class","break-word truncate text-sm md:whitespace-normal"),$(e,"class","flex flex-row items-center gap-0")},m(o,c){w(o,e,c),D(l,e,null),v(e,t),v(e,n),v(n,r),i=!0},p(o,c){(!i||c[0]&256)&&j(r,o[8])},i(o){i||(p(l.$$.fragment,o),i=!0)},o(o){h(l.$$.fragment,o),i=!1},d(o){o&&d(e),P(l)}}}function $t(s){let e,l;return e=new _e({props:{class:"mr-1.5 inline text-red-700",name:"clock"}}),{c(){y(e.$$.fragment)},l(t){T(e.$$.fragment,t)},m(t,n){D(e,t,n),l=!0},i(t){l||(p(e.$$.fragment,t),l=!0)},o(t){h(e.$$.fragment,t),l=!1},d(t){P(e,t)}}}function gt(s){let e,l;return e=new _e({props:{class:"mr-1.5 inline text-yellow-700",name:"clock"}}),{c(){y(e.$$.fragment)},l(t){T(e.$$.fragment,t)},m(t,n){D(e,t,n),l=!0},i(t){l||(p(e.$$.fragment,t),l=!0)},o(t){h(e.$$.fragment,t),l=!1},d(t){P(e,t)}}}function bt(s){let e,l;return e=new _e({props:{class:"mr-1.5 inline text-pink-700",name:"clock"}}),{c(){y(e.$$.fragment)},l(t){T(e.$$.fragment,t)},m(t,n){D(e,t,n),l=!0},i(t){l||(p(e.$$.fragment,t),l=!0)},o(t){h(e.$$.fragment,t),l=!1},d(t){P(e,t)}}}function kt(s){let e,l,t;return l=new _e({props:{class:"inline",name:"chevron-up"}}),{c(){e=g("div"),y(l.$$.fragment)},l(n){e=b(n,"DIV",{});var r=k(e);T(l.$$.fragment,r),r.forEach(d)},m(n,r){w(n,e,r),D(l,e,null),t=!0},i(n){t||(p(l.$$.fragment,n),t=!0)},o(n){h(l.$$.fragment,n),t=!1},d(n){n&&d(e),P(l)}}}function wt(s){let e,l,t,n,r,i,o,c;const a=[xe(s[6]),{attributes:s[10]},{class:"invisible h-0 w-0 md:visible md:h-auto md:w-auto"},{inline:!0}];let f={};for(let m=0;mel(t,"selectedId",o)),{c(){e=g("tr"),l=g("td"),y(t.$$.fragment),this.h()},l(a){e=b(a,"TR",{class:!0});var f=k(e);l=b(f,"TD",{class:!0,colspan:!0});var m=k(l);T(t.$$.fragment,m),m.forEach(d),f.forEach(d),this.h()},h(){$(l,"class","expanded-cell svelte-5vypy2"),$(l,"colspan","6"),$(e,"class","svelte-5vypy2"),q(e,"typedError",s[3])},m(a,f){w(a,e,f),v(e,l),D(t,l,null),i=!0},p(a,f){const m={};f[0]&1&&(m.event=a[0]),f[0]&64&&(m.currentEvent=a[6]),f[0]&2&&(m.compact=a[1]),!n&&f[0]&32&&(n=!0,m.selectedId=a[5],tl(()=>n=!1)),t.$set(m),(!i||f[0]&8)&&q(e,"typedError",a[3])},i(a){i||(p(t.$$.fragment,a),a&&(r||ll(()=>{r=nl(e,al,{}),r.start()})),i=!0)},o(a){h(t.$$.fragment,a),i=!1},d(a){a&&d(e),P(t)}}}function In(s){let e,l,t,n,r,i,o,c,a,f,m,u,_,E,V,I,G,L,le,B=(ve(s[0])?s[0].displayName:Oe(s[0])?"LocalActivity":s[0].name)+"",z,H,ne,ue,ce,ae,me,be,de,se,ye,Pe;r=new he({props:{class:"truncate","data-testid":"link",$$slots:{default:[kn]},$$scope:{ctx:s}}}),r.$on("click",s[29]);const Ve=[En,wn],R=[];function ze(C,O){return C[11]?0:1}a=ze(s),f=R[a]=Ve[a](s);let Z=s[1]&&s[17]&&$t(),X=s[1]&&s[18]&>(),x=s[1]&&s[19]&&bt(),ee=s[7]&&kt(),J=!s[7]&&wt(s),K=s[7]&&Et(s);return{c(){e=g("tr"),l=g("td"),t=S(),n=g("td"),y(r.$$.fragment),i=S(),o=g("td"),c=g("div"),f.c(),m=S(),u=g("td"),_=g("div"),E=g("div"),Z&&Z.c(),V=S(),X&&X.c(),I=S(),x&&x.c(),G=S(),L=g("div"),le=g("p"),z=M(B),H=S(),ee&&ee.c(),ue=S(),J&&J.c(),ce=S(),ae=g("td"),be=S(),K&&K.c(),de=U(),this.h()},l(C){e=b(C,"TR",{class:!0,id:!0,"data-testid":!0});var O=k(e);l=b(O,"TD",{}),k(l).forEach(d),t=A(O),n=b(O,"TD",{class:!0});var Te=k(n);T(r.$$.fragment,Te),Te.forEach(d),i=A(O),o=b(O,"TD",{class:!0});var ke=k(o);c=b(ke,"DIV",{class:!0});var Ue=k(c);f.l(Ue),Ue.forEach(d),ke.forEach(d),m=A(O),u=b(O,"TD",{colspan:!0,class:!0});var Je=k(u);_=b(Je,"DIV",{class:!0});var Ce=k(_);E=b(Ce,"DIV",{});var we=k(E);Z&&Z.l(we),V=A(we),X&&X.l(we),I=A(we),x&&x.l(we),we.forEach(d),G=A(Ce),L=b(Ce,"DIV",{class:!0});var Se=k(L);le=b(Se,"P",{class:!0});var Ke=k(le);z=F(Ke,B),Ke.forEach(d),H=A(Se),ee&&ee.l(Se),Se.forEach(d),Ce.forEach(d),Je.forEach(d),ue=A(O),J&&J.l(O),ce=A(O),ae=b(O,"TD",{}),k(ae).forEach(d),O.forEach(d),be=A(C),K&&K.l(C),de=U(),this.h()},h(){$(n,"class","w-24 text-left"),$(c,"class","flex flex-col gap-0"),$(o,"class","text-left"),$(le,"class","event-name truncate text-sm font-semibold md:text-base svelte-5vypy2"),$(L,"class","flex w-full items-center justify-between truncate"),$(_,"class","flex"),$(u,"colspan",ne=s[7]?2:1),$(u,"class","text-right text-sm font-normal xl:text-left"),$(e,"class","row svelte-5vypy2"),$(e,"id",me=s[0].id),$(e,"data-testid","event-summary-row"),q(e,"expanded",s[7]&&!s[2]),q(e,"active",s[4]),q(e,"failure",s[17]),q(e,"canceled",s[18]),q(e,"terminated",s[19]),q(e,"typedError",s[3])},m(C,O){w(C,e,O),v(e,l),v(e,t),v(e,n),D(r,n,null),v(e,i),v(e,o),v(o,c),R[a].m(c,null),v(e,m),v(e,u),v(u,_),v(_,E),Z&&Z.m(E,null),v(E,V),X&&X.m(E,null),v(E,I),x&&x.m(E,null),v(_,G),v(_,L),v(L,le),v(le,z),v(L,H),ee&&ee.m(L,null),v(e,ue),J&&J.m(e,null),v(e,ce),v(e,ae),w(C,be,O),K&&K.m(C,O),w(C,de,O),se=!0,ye||(Pe=We(e,"click",Nt(s[16])),ye=!0)},p(C,O){const Te={};O[0]&1|O[1]&1&&(Te.$$scope={dirty:O,ctx:C}),r.$set(Te);let ke=a;a=ze(C),a===ke?R[a].p(C,O):(W(),h(R[ke],1,1,()=>{R[ke]=null}),Q(),f=R[a],f?f.p(C,O):(f=R[a]=Ve[a](C),f.c()),p(f,1),f.m(c,null)),C[1]&&C[17]?Z?O[0]&2&&p(Z,1):(Z=$t(),Z.c(),p(Z,1),Z.m(E,V)):Z&&(W(),h(Z,1,1,()=>{Z=null}),Q()),C[1]&&C[18]?X?O[0]&2&&p(X,1):(X=gt(),X.c(),p(X,1),X.m(E,I)):X&&(W(),h(X,1,1,()=>{X=null}),Q()),C[1]&&C[19]?x?O[0]&2&&p(x,1):(x=bt(),x.c(),p(x,1),x.m(E,null)):x&&(W(),h(x,1,1,()=>{x=null}),Q()),(!se||O[0]&1)&&B!==(B=(ve(C[0])?C[0].displayName:Oe(C[0])?"LocalActivity":C[0].name)+"")&&j(z,B),C[7]?ee?O[0]&128&&p(ee,1):(ee=kt(),ee.c(),p(ee,1),ee.m(L,null)):ee&&(W(),h(ee,1,1,()=>{ee=null}),Q()),(!se||O[0]&128&&ne!==(ne=C[7]?2:1))&&$(u,"colspan",ne),C[7]?J&&(W(),h(J,1,1,()=>{J=null}),Q()):J?(J.p(C,O),O[0]&128&&p(J,1)):(J=wt(C),J.c(),p(J,1),J.m(e,ce)),(!se||O[0]&1&&me!==(me=C[0].id))&&$(e,"id",me),(!se||O[0]&132)&&q(e,"expanded",C[7]&&!C[2]),(!se||O[0]&16)&&q(e,"active",C[4]),(!se||O[0]&8)&&q(e,"typedError",C[3]),C[7]?K?(K.p(C,O),O[0]&128&&p(K,1)):(K=Et(C),K.c(),p(K,1),K.m(de.parentNode,de)):K&&(W(),h(K,1,1,()=>{K=null}),Q())},i(C){se||(p(r.$$.fragment,C),p(f),p(Z),p(X),p(x),p(ee),p(J),p(K),se=!0)},o(C){h(r.$$.fragment,C),h(f),h(Z),h(X),h(x),h(ee),h(J),h(K),se=!1},d(C){C&&d(e),P(r),R[a].d(),Z&&Z.d(),X&&X.d(),x&&x.d(),ee&&ee.d(),J&&J.d(),C&&d(be),K&&K.d(C),C&&d(de),ye=!1,Pe()}}}function yn(s,e,l){let t,n,r,i,o,c,a,f,m,u,_,E,V,I,G,L,le;te(s,Ge,R=>l(26,V=R)),te(s,He,R=>l(27,I=R)),te(s,ge,R=>l(28,G=R)),te(s,il,R=>l(14,L=R)),te(s,fl,R=>l(15,le=R));let{event:B}=e,{initialItem:z}=e,{compact:H=!1}=e,{expandAll:ne=!1}=e,{typedError:ue=!1}=e,{active:ce=!1}=e,{onRowClick:ae=re}=e,me=ve(B)?Array.from(B.events.keys()).pop():B.id;const be=()=>{l(7,o=!o),ae()},de=je(B),se=qe(B),ye=Be(B),Pe=R=>{R.stopPropagation(),Rt(i)};function Ve(R){me=R,l(5,me)}return s.$$set=R=>{"event"in R&&l(0,B=R.event),"initialItem"in R&&l(20,z=R.initialItem),"compact"in R&&l(1,H=R.compact),"expandAll"in R&&l(2,ne=R.expandAll),"typedError"in R&&l(3,ue=R.typedError),"active"in R&&l(4,ce=R.active),"onRowClick"in R&&l(21,ae=R.onRowClick)},s.$$.update=()=>{s.$$.dirty[0]&268435456&&l(24,{workflow:t,run:n,namespace:r}=G.params,t,(l(23,n),l(28,G)),(l(25,r),l(28,G))),s.$$.dirty[0]&58720257&&l(13,i=qt({eventId:B.id,namespace:r,workflow:t,run:n})),s.$$.dirty[0]&4&&l(7,o=ne),s.$$.dirty[0]&134217728&&l(12,c=I==="descending"),s.$$.dirty[0]&67108864&&l(22,a=V==="true"),s.$$.dirty[0]&5242881&&l(11,f=a&&z&&B.id!==z.id),s.$$.dirty[0]&3&&l(10,m=jt(B,{compact:H})),s.$$.dirty[0]&33&&l(6,u=ve(B)?B.events.get(me):B),s.$$.dirty[0]&1048641&&l(9,_=et({start:z.eventTime,end:ve(B)?B.initialEvent.eventTime:u.eventTime,includeMilliseconds:!0})),s.$$.dirty[0]&1&&l(8,E=ve(B)?et({start:B.initialEvent.eventTime,end:B.lastEvent.eventTime,includeMilliseconds:!0}):"")},[B,H,ne,ue,ce,me,u,o,E,_,m,f,c,i,L,le,be,de,se,ye,z,ae,a,n,t,r,V,I,G,Pe,Ve]}class Tr extends oe{constructor(e){super(),ie(this,e,yn,In,fe,{event:0,initialItem:20,compact:1,expandAll:2,typedError:3,active:4,onRowClick:21},null,[-1,-1])}}function It(s,e,l){const t=s.slice();return t[4]=e[l].label,t[13]=e[l].option,t}function Tn(s){let e;return{c(){e=M(s[4])},l(l){e=F(l,s[4])},m(l,t){w(l,e,t)},p(l,t){t&16&&j(e,l[4])},d(l){l&&d(e)}}}function Dn(s){let e,l;return e=new _e({props:{name:"filter",slot:"trailing"}}),{c(){y(e.$$.fragment)},l(t){T(e.$$.fragment,t)},m(t,n){D(e,t,n),l=!0},p:re,i(t){l||(p(e.$$.fragment,t),l=!0)},o(t){h(e.$$.fragment,t),l=!1},d(t){P(e,t)}}}function Pn(s){let e=N(s[4])+"",l,t;return{c(){l=M(e),t=S()},l(n){l=F(n,e),t=A(n)},m(n,r){w(n,l,r),w(n,t,r)},p(n,r){r&2&&e!==(e=N(n[4])+"")&&j(l,e)},d(n){n&&d(l),n&&d(t)}}}function yt(s){let e,l;function t(){return s[12](s[13])}return e=new Qe({props:{"data-testid":"event-category-option",selected:s[3]===s[13],$$slots:{default:[Pn]},$$scope:{ctx:s}}}),e.$on("click",t),{c(){y(e.$$.fragment)},l(n){T(e.$$.fragment,n)},m(n,r){D(e,n,r),l=!0},p(n,r){s=n;const i={};r&10&&(i.selected=s[3]===s[13]),r&65538&&(i.$$scope={dirty:r,ctx:s}),e.$set(i)},i(n){l||(p(e.$$.fragment,n),l=!0)},o(n){h(e.$$.fragment,n),l=!1},d(n){P(e,n)}}}function Vn(s){let e,l,t=s[1],n=[];for(let i=0;ih(n[i],1,1,()=>{n[i]=null});return{c(){for(let i=0;il(10,i=I)),te(s,tt,I=>l(3,o=I)),te(s,hl,I=>l(11,c=I));var a,f;let{compact:m=!1}=e,{variant:u="table-header"}=e,_=m?dl:pl;const E=I=>{zt({parameter:Tt,value:I,url:i.url})},V=I=>E(I);return s.$$set=I=>{"compact"in I&&l(6,m=I.compact),"variant"in I&&l(0,u=I.variant)},s.$$.update=()=>{s.$$.dirty&1024&&l(2,t=i.params.id),s.$$.dirty&64&&l(4,n=m?N("events.event-type"):N("events.workflow-events")),s.$$.dirty&2050&&vl("1.21",c)&&l(1,_=_.filter(({option:I})=>I!=="update")),s.$$.dirty&1026&&l(9,r=_.find(({option:I})=>{var G,L;return I===((L=(G=i.url)===null||G===void 0?void 0:G.searchParams)===null||L===void 0?void 0:L.get(Tt))})),s.$$.dirty&896&&Ae(tt,o=l(8,f=l(7,a=r==null?void 0:r.option)===null||a===void 0?void 0:a.toString())!==null&&f!==void 0?f:void 0,o)},[u,_,t,o,n,E,m,a,f,r,i,c,V]}class Gn extends oe{constructor(e){super(),ie(this,e,An,Sn,fe,{compact:6,variant:0})}}const Nn=({compact:s,sortOrder:e,showElapsed:l})=>{if(!((s||e==="descending")&&l==="false"))return`${e}:${l}`};function Dt(s,e,l){const t=s.slice();return t[9]=e[l].option,t[10]=e[l].label,t}function On(s){let e,l,t,n=N("common.date-and-time")+"",r,i;return e=new _e({props:{class:"md:hidden",name:"clock"}}),{c(){y(e.$$.fragment),l=S(),t=g("span"),r=M(n),this.h()},l(o){T(e.$$.fragment,o),l=A(o),t=b(o,"SPAN",{class:!0});var c=k(t);r=F(c,n),c.forEach(d),this.h()},h(){$(t,"class","max-md:hidden")},m(o,c){D(e,o,c),w(o,l,c),w(o,t,c),v(t,r),i=!0},p:re,i(o){i||(p(e.$$.fragment,o),i=!0)},o(o){h(e.$$.fragment,o),i=!1},d(o){P(e,o),o&&d(l),o&&d(t)}}}function Rn(s){let e=s[10]+"",l;return{c(){l=M(e)},l(t){l=F(t,e)},m(t,n){w(t,l,n)},p:re,d(t){t&&d(l)}}}function Pt(s){let e,l;function t(){return s[7](s[9])}return e=new Qe({props:{selected:s[1]===s[9],$$slots:{default:[Rn]},$$scope:{ctx:s}}}),e.$on("click",t),{c(){y(e.$$.fragment)},l(n){T(e.$$.fragment,n)},m(n,r){D(e,n,r),l=!0},p(n,r){s=n;const i={};r&2&&(i.selected=s[1]===s[9]),r&8192&&(i.$$scope={dirty:r,ctx:s}),e.$set(i)},i(n){l||(p(e.$$.fragment,n),l=!0)},o(n){h(e.$$.fragment,n),l=!1},d(n){P(e,n)}}}function Mn(s){let e=N("events.show-elapsed-time")+"",l;return{c(){l=M(e)},l(t){l=F(t,e)},m(t,n){w(t,l,n)},p:re,d(t){t&&d(l)}}}function Fn(s){let e,l,t,n,r,i=s[3],o=[];for(let a=0;ah(o[a],1,1,()=>{o[a]=null});return l=new $l({}),n=new Qe({props:{selected:s[0]==="true",$$slots:{default:[Mn]},$$scope:{ctx:s}}}),n.$on("click",s[5]),{c(){for(let a=0;al(0,n=u)),te(s,He,u=>l(1,r=u)),te(s,ge,u=>l(8,i=u));let{compact:o}=e,c=[{label:N("events.sort-ascending"),option:"ascending"},{label:N("events.sort-descending"),option:"descending"}];const a=u=>{Ae(He,r=u,r),zt({parameter:"sort",value:u,url:i.url})},f=()=>{n==="true"?Ae(Ge,n="false",n):Ae(Ge,n="true",n)},m=u=>a(u);return s.$$set=u=>{"compact"in u&&l(6,o=u.compact)},s.$$.update=()=>{s.$$.dirty&67&&l(2,t=Nn({compact:o,sortOrder:r,showElapsed:n}))},[n,r,t,c,a,f,o,m]}class Bn extends oe{constructor(e){super(),ie(this,e,qn,jn,fe,{compact:6})}}function Hn(s){let e;const l=s[6].default,t=Vt(l,s,s[7],null);return{c(){t&&t.c()},l(n){t&&t.l(n)},m(n,r){t&&t.m(n,r),e=!0},p(n,r){t&&t.p&&(!e||r&128)&&Ct(t,l,n,n[7],e?At(l,n[7],r,null):St(n[7]),null)},i(n){e||(p(t,n),e=!0)},o(n){h(t,n),e=!1},d(n){t&&t.d(n)}}}function Wn(s){let e,l=N("workflows.event-history")+"",t;return{c(){e=g("caption"),t=M(l),this.h()},l(n){e=b(n,"CAPTION",{class:!0,slot:!0});var r=k(e);t=F(r,l),r.forEach(d),this.h()},h(){$(e,"class","sr-only"),$(e,"slot","caption")},m(n,r){w(n,e,r),v(e,t)},p:re,d(n){n&&d(e)}}}function Qn(s){let e,l=(s[2]?N("common.collapse-all"):N("common.expand-all"))+"",t;return{c(){e=g("span"),t=M(l),this.h()},l(n){e=b(n,"SPAN",{class:!0});var r=k(e);t=F(r,l),r.forEach(d),this.h()},h(){$(e,"class","hidden sm:block")},m(n,r){w(n,e,r),v(e,t)},p(n,r){r&4&&l!==(l=(n[2]?N("common.collapse-all"):N("common.expand-all"))+"")&&j(t,l)},d(n){n&&d(e)}}}function zn(s){let e,l,t,n,r,i,o,c,a,f,m,u;return n=new Bn({props:{compact:s[0]}}),o=new Gn({props:{compact:s[0]}}),m=new gl({props:{size:"sm",variant:"table-header",trailingIcon:s[2]?"chevron-up":"chevron-down",disabled:!!s[3],$$slots:{default:[Qn]},$$scope:{ctx:s}}}),m.$on("click",s[4]),{c(){e=g("td"),l=S(),t=g("th"),y(n.$$.fragment),r=S(),i=g("th"),y(o.$$.fragment),c=S(),a=g("th"),f=g("div"),y(m.$$.fragment),this.h()},l(_){e=b(_,"TD",{class:!0}),k(e).forEach(d),l=A(_),t=b(_,"TH",{class:!0});var E=k(t);T(n.$$.fragment,E),E.forEach(d),r=A(_),i=b(_,"TH",{class:!0});var V=k(i);T(o.$$.fragment,V),V.forEach(d),c=A(_),a=b(_,"TH",{class:!0});var I=k(a);f=b(I,"DIV",{class:!0});var G=k(f);T(m.$$.fragment,G),G.forEach(d),I.forEach(d),this.h()},h(){$(e,"class","w-14 xl:w-10"),$(t,"class","w-16 md:w-32"),$(i,"class","w-44"),$(f,"class","flex w-full justify-end"),$(a,"class","w-auto xl:w-80")},m(_,E){w(_,e,E),w(_,l,E),w(_,t,E),D(n,t,null),w(_,r,E),w(_,i,E),D(o,i,null),w(_,c,E),w(_,a,E),v(a,f),D(m,f,null),u=!0},p(_,E){const V={};E&1&&(V.compact=_[0]),n.$set(V);const I={};E&1&&(I.compact=_[0]),o.$set(I);const G={};E&4&&(G.trailingIcon=_[2]?"chevron-up":"chevron-down"),E&8&&(G.disabled=!!_[3]),E&132&&(G.$$scope={dirty:E,ctx:_}),m.$set(G)},i(_){u||(p(n.$$.fragment,_),p(o.$$.fragment,_),p(m.$$.fragment,_),u=!0)},o(_){h(n.$$.fragment,_),h(o.$$.fragment,_),h(m.$$.fragment,_),u=!1},d(_){_&&d(e),_&&d(l),_&&d(t),P(n),_&&d(r),_&&d(i),P(o),_&&d(c),_&&d(a),P(m)}}}function Un(s){let e,l;return e=new _l({props:{slot:"headers",$$slots:{default:[zn]},$$scope:{ctx:s}}}),{c(){y(e.$$.fragment)},l(t){T(e.$$.fragment,t)},m(t,n){D(e,t,n),l=!0},p(t,n){const r={};n&141&&(r.$$scope={dirty:n,ctx:t}),e.$set(r)},i(t){l||(p(e.$$.fragment,t),l=!0)},o(t){h(e.$$.fragment,t),l=!1},d(t){P(e,t)}}}function Jn(s){let e,l;return e=new Bt({props:{updating:s[1],class:"dark w-full table-fixed","data-testid":"event-summary-table",$$slots:{headers:[Un],caption:[Wn],default:[Hn]},$$scope:{ctx:s}}}),{c(){y(e.$$.fragment)},l(t){T(e.$$.fragment,t)},m(t,n){D(e,t,n),l=!0},p(t,[n]){const r={};n&2&&(r.updating=t[1]),n&141&&(r.$$scope={dirty:n,ctx:t}),e.$set(r)},i(t){l||(p(e.$$.fragment,t),l=!0)},o(t){h(e.$$.fragment,t),l=!1},d(t){P(e,t)}}}function Kn(s,e,l){let t,n,r;te(s,ge,_=>l(5,n=_)),te(s,ol,_=>l(8,r=_));let{$$slots:i={},$$scope:o}=e,{compact:c=!1}=e,{updating:a=!1}=e,f=r==="true";const m=Gt();function u(){l(2,f=!f),m("expandAll",{expanded:f?"true":"false"})}return s.$$set=_=>{"compact"in _&&l(0,c=_.compact),"updating"in _&&l(1,a=_.updating),"$$scope"in _&&l(7,o=_.$$scope)},s.$$.update=()=>{s.$$.dirty&32&&l(3,t=n.params.id)},[c,a,f,t,u,n,i,o]}class Dr extends oe{constructor(e){super(),ie(this,e,Kn,Jn,fe,{compact:0,updating:1})}}export{Dr as E,yr as a,Tr as b}; +import{S as oe,b as ie,a as fe,m as g,p as b,q as k,k as d,u as $,f as w,L as v,z as W,g as h,h as Q,j as p,C as y,D as T,E as D,n as re,F as P,G as Vt,c as S,d as A,Z as Ye,P as q,Q as We,H as Ct,I as St,J as At,N as $e,U as Ee,V as Kt,e as U,M as Gt,aa as Me,ab as Fe,w as M,x as F,y as j,K as te,$ as Nt,ag as Yt,R as Zt,Y as Xt,A as xt,a0 as el,a1 as tl,a3 as ll,a4 as nl,a5 as Ae,a7 as Ot}from"./index.4e2fcbc7.js";import{E as rl}from"./empty-state.721f6c59.js";import{L as sl}from"./loading.95801385.js";import{t as N}from"./translate.d23a91ae.js";import{a as al}from"./index.6509bfd4.js";import{g as Rt}from"./navigation.b77a045a.js";import{p as ge}from"./stores.0e7b7e35.js";import{I as _e}from"./icon.e8aa24c8.js";import{L as he}from"./link.6803bb00.js";import{e as je,a as qe,b as Be,i as ve}from"./index.03feb468.js";import{c as Ge,e as He,b as ol}from"./event-view.50193376.js";import{t as il,r as fl,b as Ze}from"./time-format.fa373b4c.js";import{a as Xe,g as cl,b as ul,s as Mt,c as Ft,d as Lt,e as Ne,f as jt,h as ml,i as xe}from"./format-event-attributes.5632ebeb.js";import{q as et}from"./format-time.4f091e0e.js";import{C as Oe}from"./is-event-type.4dbe973b.js";import{m as Re,g as pe,n as qt}from"./route-for.084c7a46.js";import{C as De}from"./code-block.55adac36.js";import{C as Ie}from"./index.e93e2a88.js";import{f as Y}from"./format-camel-case.887ffc78.js";import{P as Le}from"./payload-decoder.0883e1af.js";import{T as Bt,a as _l}from"./table-header-row.fec98b60.js";import{M as Ht,a as Wt,b as Qt,d as Qe}from"./menu.716bcd2f.js";import{c as dl,a as pl}from"./get-event-categorization.4d9adfe9.js";import{e as tt}from"./filters.83a38186.js";import{t as hl}from"./versions.6cca9ce8.js";import{u as zt}from"./update-query-parameters.64a6ca26.js";import{i as vl}from"./version-check.d006b302.js";import{M as $l}from"./menu-divider.ada09983.js";import{B as gl}from"./button.a45b0e55.js";function bl(s){let e,l;return e=new rl({props:{title:N("events.empty-state-title"),content:N("events.empty-state-description")}}),{c(){y(e.$$.fragment)},l(t){T(e.$$.fragment,t)},m(t,n){D(e,t,n),l=!0},p:re,i(t){l||(p(e.$$.fragment,t),l=!0)},o(t){h(e.$$.fragment,t),l=!1},d(t){P(e,t)}}}function kl(s){let e,l;return e=new sl({}),{c(){y(e.$$.fragment)},l(t){T(e.$$.fragment,t)},m(t,n){D(e,t,n),l=!0},p:re,i(t){l||(p(e.$$.fragment,t),l=!0)},o(t){h(e.$$.fragment,t),l=!1},d(t){P(e,t)}}}function wl(s){let e,l,t,n,r;const i=[kl,bl],o=[];function c(a,f){return a[0]?0:1}return t=c(s),n=o[t]=i[t](s),{c(){e=g("tr"),l=g("td"),n.c(),this.h()},l(a){e=b(a,"TR",{class:!0});var f=k(e);l=b(f,"TD",{colspan:!0});var m=k(l);n.l(m),m.forEach(d),f.forEach(d),this.h()},h(){$(l,"colspan","6"),$(e,"class","row svelte-kwty14")},m(a,f){w(a,e,f),v(e,l),o[t].m(l,null),r=!0},p(a,[f]){let m=t;t=c(a),t===m?o[t].p(a,f):(W(),h(o[m],1,1,()=>{o[m]=null}),Q(),n=o[t],n?n.p(a,f):(n=o[t]=i[t](a),n.c()),p(n,1),n.m(l,null))},i(a){r||(p(n),r=!0)},o(a){h(n),r=!1},d(a){a&&d(e),o[t].d()}}}function El(s,e,l){let{loading:t=!1}=e;return s.$$set=n=>{"loading"in n&&l(0,t=n.loading)},[t]}class yr extends oe{constructor(e){super(),ie(this,e,El,wl,fe,{loading:0})}}function lt(s){let e,l,t;return l=new _e({props:{name:s[1]?"spinner":s[3]}}),{c(){e=g("span"),y(l.$$.fragment),this.h()},l(n){e=b(n,"SPAN",{});var r=k(e);T(l.$$.fragment,r),r.forEach(d),this.h()},h(){q(e,"animate-spin",s[1])},m(n,r){w(n,e,r),D(l,e,null),t=!0},p(n,r){const i={};r&10&&(i.name=n[1]?"spinner":n[3]),l.$set(i),(!t||r&2)&&q(e,"animate-spin",n[1])},i(n){t||(p(l.$$.fragment,n),t=!0)},o(n){h(l.$$.fragment,n),t=!1},d(n){n&&d(e),P(l)}}}function Il(s){let e,l,t,n,r,i,o=s[3]&<(s);const c=s[7].default,a=Vt(c,s,s[6],null);return{c(){e=g("button"),o&&o.c(),l=S(),a&&a.c(),this.h()},l(f){e=b(f,"BUTTON",{class:!0});var m=k(e);o&&o.l(m),l=A(m),a&&a.l(m),m.forEach(d),this.h()},h(){$(e,"class",t=Ye(`pill ${s[5]} ${s[4]}`)+" svelte-1dt2q6k"),e.disabled=s[0],q(e,"active",s[2])},m(f,m){w(f,e,m),o&&o.m(e,null),v(e,l),a&&a.m(e,null),n=!0,r||(i=We(e,"click",s[8]),r=!0)},p(f,[m]){f[3]?o?(o.p(f,m),m&8&&p(o,1)):(o=lt(f),o.c(),p(o,1),o.m(e,l)):o&&(W(),h(o,1,1,()=>{o=null}),Q()),a&&a.p&&(!n||m&64)&&Ct(a,c,f,f[6],n?At(c,f[6],m,null):St(f[6]),null),(!n||m&48&&t!==(t=Ye(`pill ${f[5]} ${f[4]}`)+" svelte-1dt2q6k"))&&$(e,"class",t),(!n||m&1)&&(e.disabled=f[0]),(!n||m&52)&&q(e,"active",f[2])},i(f){n||(p(o),p(a,f),n=!0)},o(f){h(o),h(a,f),n=!1},d(f){f&&d(e),o&&o.d(),a&&a.d(f),r=!1,i()}}}function yl(s,e,l){let{$$slots:t={},$$scope:n}=e,{disabled:r=!1}=e,{loading:i=!1}=e,{active:o=!1}=e,{icon:c=null}=e,{classes:a=e.class}=e,{color:f="gray"}=e;function m(u){Kt.call(this,s,u)}return s.$$set=u=>{l(9,e=$e($e({},e),Ee(u))),"disabled"in u&&l(0,r=u.disabled),"loading"in u&&l(1,i=u.loading),"active"in u&&l(2,o=u.active),"icon"in u&&l(3,c=u.icon),"classes"in u&&l(4,a=u.classes),"color"in u&&l(5,f=u.color),"$$scope"in u&&l(6,n=u.$$scope)},e=Ee(e),[r,i,o,c,a,f,n,t,m]}class Tl extends oe{constructor(e){super(),ie(this,e,yl,Il,fe,{disabled:0,loading:1,active:2,icon:3,classes:4,color:5})}}function nt(s,e,l){const t=s.slice();t[5]=e[l][0],t[6]=e[l][1];const n=t[1]===t[5];return t[7]=n,t}function rt(s){let e,l,t=[],n=new Map,r,i=Object.entries(s[0]);const o=c=>c[5];for(let c=0;c{r=null}),Q())},i(i){n||(p(r),n=!0)},o(i){h(r),n=!1},d(i){i&&d(l),r&&r.d(i),i&&d(t)}}}function Pl(s){let e,l,t=s[2]>1&&rt(s);return{c(){t&&t.c(),e=U()},l(n){t&&t.l(n),e=U()},m(n,r){t&&t.m(n,r),w(n,e,r),l=!0},p(n,[r]){n[2]>1?t?(t.p(n,r),r&4&&p(t,1)):(t=rt(n),t.c(),p(t,1),t.m(e.parentNode,e)):t&&(W(),h(t,1,1,()=>{t=null}),Q())},i(n){l||(p(t),l=!0)},o(n){h(t),l=!1},d(n){t&&t.d(n),n&&d(e)}}}function Vl(s,e,l){let t,{attributeGrouping:n}=e,{activePill:r}=e;const i=Gt(),o=c=>i("pillChange",{key:c});return s.$$set=c=>{"attributeGrouping"in c&&l(0,n=c.attributeGrouping),"activePill"in c&&l(1,r=c.activePill)},s.$$.update=()=>{s.$$.dirty&1&&l(2,t=Object.values(n).reduce((c,a)=>(a.length&&(c+=1),c),0))},[n,r,t,i,o]}class Ut extends oe{constructor(e){super(),ie(this,e,Vl,Pl,fe,{attributeGrouping:0,activePill:1})}}function Cl(s){let e,l,t=Y(s[0])+"",n,r,i,o,c;return{c(){e=g("div"),l=g("p"),n=M(t),r=S(),i=g("p"),o=g("span"),c=M(s[1]),this.h()},l(a){e=b(a,"DIV",{class:!0});var f=k(e);l=b(f,"P",{class:!0});var m=k(l);n=F(m,t),m.forEach(d),r=A(f),i=b(f,"P",{class:!0});var u=k(i);o=b(u,"SPAN",{class:!0});var _=k(o);c=F(_,s[1]),_.forEach(d),u.forEach(d),f.forEach(d),this.h()},h(){$(l,"class","text-sm"),$(o,"class","select-all px-2 svelte-10e9wiy"),q(o,"badge",!Ne(s[0])),$(i,"class","text-sm"),$(e,"class","content detail-row svelte-10e9wiy")},m(a,f){w(a,e,f),v(e,l),v(l,n),v(e,r),v(e,i),v(i,o),v(o,c)},p(a,f){f&1&&t!==(t=Y(a[0])+"")&&j(n,t),f&2&&j(c,a[1]),f&1&&q(o,"badge",!Ne(a[0]))},i:re,o:re,d(a){a&&d(e)}}}function Sl(s){let e,l,t=Y(s[0])+"",n,r,i,o,c;return o=new Ie({props:{copyIconTitle:N("common.copy-icon-title"),copySuccessIconTitle:N("common.copy-success-icon-title"),content:s[1],"container-class":"xl:flex-row",$$slots:{default:[Rl]},$$scope:{ctx:s}}}),{c(){e=g("div"),l=g("p"),n=M(t),r=S(),i=g("div"),y(o.$$.fragment),this.h()},l(a){e=b(a,"DIV",{class:!0});var f=k(e);l=b(f,"P",{class:!0});var m=k(l);n=F(m,t),m.forEach(d),r=A(f),i=b(f,"DIV",{class:!0});var u=k(i);T(o.$$.fragment,u),u.forEach(d),f.forEach(d),this.h()},h(){$(l,"class","text-sm"),$(i,"class","text-sm"),$(e,"class","content detail-row svelte-10e9wiy")},m(a,f){w(a,e,f),v(e,l),v(l,n),v(e,r),v(e,i),D(o,i,null),c=!0},p(a,f){(!c||f&1)&&t!==(t=Y(a[0])+"")&&j(n,t);const m={};f&2&&(m.content=a[1]),f&2050&&(m.$$scope={dirty:f,ctx:a}),o.$set(m)},i(a){c||(p(o.$$.fragment,a),c=!0)},o(a){h(o.$$.fragment,a),c=!1},d(a){a&&d(e),P(o)}}}function Al(s){let e,l,t=Y(s[0])+"",n,r,i,o,c;return o=new Ie({props:{copyIconTitle:N("common.copy-icon-title"),copySuccessIconTitle:N("common.copy-success-icon-title"),content:s[1],"container-class":"xl:flex-row",$$slots:{default:[Fl]},$$scope:{ctx:s}}}),{c(){e=g("div"),l=g("p"),n=M(t),r=S(),i=g("div"),y(o.$$.fragment),this.h()},l(a){e=b(a,"DIV",{class:!0});var f=k(e);l=b(f,"P",{class:!0});var m=k(l);n=F(m,t),m.forEach(d),r=A(f),i=b(f,"DIV",{class:!0});var u=k(i);T(o.$$.fragment,u),u.forEach(d),f.forEach(d),this.h()},h(){$(l,"class","text-sm"),$(i,"class","text-sm"),$(e,"class","content detail-row svelte-10e9wiy")},m(a,f){w(a,e,f),v(e,l),v(l,n),v(e,r),v(e,i),D(o,i,null),c=!0},p(a,f){(!c||f&1)&&t!==(t=Y(a[0])+"")&&j(n,t);const m={};f&2&&(m.content=a[1]),f&2054&&(m.$$scope={dirty:f,ctx:a}),o.$set(m)},i(a){c||(p(o.$$.fragment,a),c=!0)},o(a){h(o.$$.fragment,a),c=!1},d(a){a&&d(e),P(o)}}}function Gl(s){let e,l,t=Y(s[0])+"",n,r,i,o,c;return o=new Ie({props:{copyIconTitle:N("common.copy-icon-title"),copySuccessIconTitle:N("common.copy-success-icon-title"),content:s[1],"container-class":"flex-row-reverse xl:flex-row",$$slots:{default:[jl]},$$scope:{ctx:s}}}),{c(){e=g("div"),l=g("p"),n=M(t),r=S(),i=g("div"),y(o.$$.fragment),this.h()},l(a){e=b(a,"DIV",{class:!0});var f=k(e);l=b(f,"P",{class:!0});var m=k(l);n=F(m,t),m.forEach(d),r=A(f),i=b(f,"DIV",{class:!0});var u=k(i);T(o.$$.fragment,u),u.forEach(d),f.forEach(d),this.h()},h(){$(l,"class","text-sm"),$(i,"class","text-sm"),$(e,"class","content detail-row svelte-10e9wiy")},m(a,f){w(a,e,f),v(e,l),v(l,n),v(e,r),v(e,i),D(o,i,null),c=!0},p(a,f){(!c||f&1)&&t!==(t=Y(a[0])+"")&&j(n,t);const m={};f&2&&(m.content=a[1]),f&2050&&(m.$$scope={dirty:f,ctx:a}),o.$set(m)},i(a){c||(p(o.$$.fragment,a),c=!0)},o(a){h(o.$$.fragment,a),c=!1},d(a){a&&d(e),P(o)}}}function Nl(s){let e,l,t,n=Y(s[0])+"",r,i,o,c,a,f,m;const u=[Hl,Bl,ql],_=[];function E(I,G){var L;return(L=I[1])!=null&&L.payloads?0:I[0]==="searchAttributes"?1:2}o=E(s),c=_[o]=u[o](s);let V=s[5]&&!s[3]&&ot(s);return{c(){e=g("div"),l=g("div"),t=g("p"),r=M(n),i=S(),c.c(),f=S(),V&&V.c(),this.h()},l(I){e=b(I,"DIV",{class:!0});var G=k(e);l=b(G,"DIV",{class:!0});var L=k(l);t=b(L,"P",{class:!0});var le=k(t);r=F(le,n),le.forEach(d),i=A(L),c.l(L),L.forEach(d),f=A(G),V&&V.l(G),G.forEach(d),this.h()},h(){$(t,"class","text-sm"),$(l,"class",a="flex flex-col "+(s[5]?"lg:w-1/2":"")),$(e,"class","content code-block-row svelte-10e9wiy"),q(e,"code-with-stack-trace",s[5])},m(I,G){w(I,e,G),v(e,l),v(l,t),v(t,r),v(l,i),_[o].m(l,null),v(e,f),V&&V.m(e,null),m=!0},p(I,G){(!m||G&1)&&n!==(n=Y(I[0])+"")&&j(r,n);let L=o;o=E(I),o===L?_[o].p(I,G):(W(),h(_[L],1,1,()=>{_[L]=null}),Q(),c=_[o],c?c.p(I,G):(c=_[o]=u[o](I),c.c()),p(c,1),c.m(l,null)),(!m||G&32&&a!==(a="flex flex-col "+(I[5]?"lg:w-1/2":"")))&&$(l,"class",a),I[5]&&!I[3]?V?(V.p(I,G),G&40&&p(V,1)):(V=ot(I),V.c(),p(V,1),V.m(e,null)):V&&(W(),h(V,1,1,()=>{V=null}),Q()),(!m||G&32)&&q(e,"code-with-stack-trace",I[5])},i(I){m||(p(c),p(V),m=!0)},o(I){h(c),h(V),m=!1},d(I){I&&d(e),_[o].d(),V&&V.d()}}}function Ol(s){let e;return{c(){e=M(s[1])},l(l){e=F(l,s[1])},m(l,t){w(l,e,t)},p(l,t){t&2&&j(e,l[1])},d(l){l&&d(e)}}}function Rl(s){let e,l;return e=new he({props:{newTab:!0,href:Re({namespace:s[7],queue:s[1]}),$$slots:{default:[Ol]},$$scope:{ctx:s}}}),{c(){y(e.$$.fragment)},l(t){T(e.$$.fragment,t)},m(t,n){D(e,t,n),l=!0},p(t,n){const r={};n&2&&(r.href=Re({namespace:t[7],queue:t[1]})),n&2050&&(r.$$scope={dirty:n,ctx:t}),e.$set(r)},i(t){l||(p(e.$$.fragment,t),l=!0)},o(t){h(e.$$.fragment,t),l=!1},d(t){P(e,t)}}}function Ml(s){let e;return{c(){e=M(s[1])},l(l){e=F(l,s[1])},m(l,t){w(l,e,t)},p(l,t){t&2&&j(e,l[1])},d(l){l&&d(e)}}}function Fl(s){var t;let e,l;return e=new he({props:{newTab:!0,href:pe({namespace:((t=s[2])==null?void 0:t.namespace)||s[7],workflow:s[2].workflowExecutionWorkflowId,run:s[2].workflowExecutionRunId}),$$slots:{default:[Ml]},$$scope:{ctx:s}}}),{c(){y(e.$$.fragment)},l(n){T(e.$$.fragment,n)},m(n,r){D(e,n,r),l=!0},p(n,r){var o;const i={};r&4&&(i.href=pe({namespace:((o=n[2])==null?void 0:o.namespace)||n[7],workflow:n[2].workflowExecutionWorkflowId,run:n[2].workflowExecutionRunId})),r&2050&&(i.$$scope={dirty:r,ctx:n}),e.$set(i)},i(n){l||(p(e.$$.fragment,n),l=!0)},o(n){h(e.$$.fragment,n),l=!1},d(n){P(e,n)}}}function Ll(s){let e;return{c(){e=M(s[1])},l(l){e=F(l,s[1])},m(l,t){w(l,e,t)},p(l,t){t&2&&j(e,l[1])},d(l){l&&d(e)}}}function jl(s){let e,l;return e=new he({props:{newTab:!0,href:pe({namespace:s[7],workflow:s[6],run:s[1]}),$$slots:{default:[Ll]},$$scope:{ctx:s}}}),{c(){y(e.$$.fragment)},l(t){T(e.$$.fragment,t)},m(t,n){D(e,t,n),l=!0},p(t,n){const r={};n&2&&(r.href=pe({namespace:t[7],workflow:t[6],run:t[1]})),n&2050&&(r.$$scope={dirty:n,ctx:t}),e.$set(r)},i(t){l||(p(e.$$.fragment,t),l=!0)},o(t){h(e.$$.fragment,t),l=!1},d(t){P(e,t)}}}function ql(s){let e,l;return e=new Le({props:{value:s[4],$$slots:{default:[Wl,({decodedValue:t})=>({10:t}),({decodedValue:t})=>t?1024:0]},$$scope:{ctx:s}}}),{c(){y(e.$$.fragment)},l(t){T(e.$$.fragment,t)},m(t,n){D(e,t,n),l=!0},p(t,n){const r={};n&16&&(r.value=t[4]),n&3112&&(r.$$scope={dirty:n,ctx:t}),e.$set(r)},i(t){l||(p(e.$$.fragment,t),l=!0)},o(t){h(e.$$.fragment,t),l=!1},d(t){P(e,t)}}}function Bl(s){let e,l;return e=new Le({props:{key:"searchAttributes",value:{searchAttributes:s[4]},$$slots:{default:[Ql,({decodedValue:t})=>({10:t}),({decodedValue:t})=>t?1024:0]},$$scope:{ctx:s}}}),{c(){y(e.$$.fragment)},l(t){T(e.$$.fragment,t)},m(t,n){D(e,t,n),l=!0},p(t,n){const r={};n&16&&(r.value={searchAttributes:t[4]}),n&3112&&(r.$$scope={dirty:n,ctx:t}),e.$set(r)},i(t){l||(p(e.$$.fragment,t),l=!0)},o(t){h(e.$$.fragment,t),l=!1},d(t){P(e,t)}}}function Hl(s){let e,l;return e=new Le({props:{value:s[1],key:"payloads",$$slots:{default:[zl,({decodedValue:t})=>({10:t}),({decodedValue:t})=>t?1024:0]},$$scope:{ctx:s}}}),{c(){y(e.$$.fragment)},l(t){T(e.$$.fragment,t)},m(t,n){D(e,t,n),l=!0},p(t,n){const r={};n&2&&(r.value=t[1]),n&3112&&(r.$$scope={dirty:n,ctx:t}),e.$set(r)},i(t){l||(p(e.$$.fragment,t),l=!0)},o(t){h(e.$$.fragment,t),l=!1},d(t){P(e,t)}}}function Wl(s){let e,l;return e=new De({props:{content:s[10],class:"h-auto "+(s[5]?"mb-2":"")+" max-h-96 overflow-auto",inline:s[3],copyIconTitle:N("common.copy-icon-title"),copySuccessIconTitle:N("common.copy-success-icon-title")}}),{c(){y(e.$$.fragment)},l(t){T(e.$$.fragment,t)},m(t,n){D(e,t,n),l=!0},p(t,n){const r={};n&1024&&(r.content=t[10]),n&32&&(r.class="h-auto "+(t[5]?"mb-2":"")+" max-h-96 overflow-auto"),n&8&&(r.inline=t[3]),e.$set(r)},i(t){l||(p(e.$$.fragment,t),l=!0)},o(t){h(e.$$.fragment,t),l=!1},d(t){P(e,t)}}}function Ql(s){let e,l;return e=new De({props:{content:s[10],class:"h-auto "+(s[5]?"mb-2":"")+" max-h-96 overflow-auto",inline:s[3],copyIconTitle:N("common.copy-icon-title"),copySuccessIconTitle:N("common.copy-success-icon-title")}}),{c(){y(e.$$.fragment)},l(t){T(e.$$.fragment,t)},m(t,n){D(e,t,n),l=!0},p(t,n){const r={};n&1024&&(r.content=t[10]),n&32&&(r.class="h-auto "+(t[5]?"mb-2":"")+" max-h-96 overflow-auto"),n&8&&(r.inline=t[3]),e.$set(r)},i(t){l||(p(e.$$.fragment,t),l=!0)},o(t){h(e.$$.fragment,t),l=!1},d(t){P(e,t)}}}function zl(s){let e,l;return e=new De({props:{content:s[10],class:"h-auto "+(s[5]?"mb-2":"")+" max-h-96 overflow-auto",inline:s[3],copyIconTitle:N("common.copy-icon-title"),copySuccessIconTitle:N("common.copy-success-icon-title")}}),{c(){y(e.$$.fragment)},l(t){T(e.$$.fragment,t)},m(t,n){D(e,t,n),l=!0},p(t,n){const r={};n&1024&&(r.content=t[10]),n&32&&(r.class="h-auto "+(t[5]?"mb-2":"")+" max-h-96 overflow-auto"),n&8&&(r.inline=t[3]),e.$set(r)},i(t){l||(p(e.$$.fragment,t),l=!0)},o(t){h(e.$$.fragment,t),l=!1},d(t){P(e,t)}}}function ot(s){let e,l,t=N("workflows.call-stack-tab")+"",n,r,i,o;return i=new De({props:{content:s[5],language:"text",class:"mb-2 h-full lg:pr-2",copyIconTitle:N("common.copy-icon-title"),copySuccessIconTitle:N("common.copy-success-icon-title")}}),{c(){e=g("div"),l=g("p"),n=M(t),r=S(),y(i.$$.fragment),this.h()},l(c){e=b(c,"DIV",{class:!0});var a=k(e);l=b(a,"P",{class:!0});var f=k(l);n=F(f,t),f.forEach(d),r=A(a),T(i.$$.fragment,a),a.forEach(d),this.h()},h(){$(l,"class","text-sm"),$(e,"class","flex flex-col lg:w-1/2")},m(c,a){w(c,e,a),v(e,l),v(l,n),v(e,r),D(i,e,null),o=!0},p(c,a){const f={};a&32&&(f.content=c[5]),i.$set(f)},i(c){o||(p(i.$$.fragment,c),o=!0)},o(c){h(i.$$.fragment,c),o=!1},d(c){c&&d(e),P(i)}}}function Ul(s){let e,l,t,n,r,i,o,c;const a=[Nl,Gl,Al,Sl,Cl],f=[];function m(u,_){return _&1&&(l=null),_&5&&(t=null),_&1&&(n=null),typeof u[1]=="object"?0:(l==null&&(l=!!Mt(u[0])),l?1:(t==null&&(t=!!Ft(u[0],u[2])),t?2:(n==null&&(n=!!Lt(u[0])),n?3:4)))}return r=m(s,-1),i=f[r]=a[r](s),{c(){e=g("div"),i.c(),this.h()},l(u){e=b(u,"DIV",{class:!0});var _=k(e);i.l(_),_.forEach(d),this.h()},h(){$(e,"class",o="row "+s[8].class+" svelte-10e9wiy")},m(u,_){w(u,e,_),f[r].m(e,null),c=!0},p(u,[_]){let E=r;r=m(u,_),r===E?f[r].p(u,_):(W(),h(f[E],1,1,()=>{f[E]=null}),Q(),i=f[r],i?i.p(u,_):(i=f[r]=a[r](u),i.c()),p(i,1),i.m(e,null)),(!c||_&256&&o!==(o="row "+u[8].class+" svelte-10e9wiy"))&&$(e,"class",o)},i(u){c||(p(i),c=!0)},o(u){h(i),c=!1},d(u){u&&d(e),f[r].d()}}}function Jl(s,e,l){let t,n,r;te(s,ge,u=>l(9,r=u));let{key:i}=e,{value:o}=e,{attributes:c}=e,{inline:a=!1}=e;const{workflow:f,namespace:m}=r.params;return s.$$set=u=>{l(8,e=$e($e({},e),Ee(u))),"key"in u&&l(0,i=u.key),"value"in u&&l(1,o=u.value),"attributes"in u&&l(2,c=u.attributes),"inline"in u&&l(3,a=u.inline)},s.$$.update=()=>{s.$$.dirty&2&&l(4,t=cl(o)),s.$$.dirty&16&&l(5,n=ul(t))},e=Ee(e),[i,o,c,a,t,n,f,m,e]}class Jt extends oe{constructor(e){super(),ie(this,e,Jl,Ul,fe,{key:0,value:1,attributes:2,inline:3})}}function it(s,e,l){const t=s.slice();return t[9]=e[l][0],t[10]=e[l][1],t}function Kl(s){let e=s[9]+"",l;return{c(){l=M(e)},l(t){l=F(t,e)},m(t,n){w(t,l,n)},p(t,n){n&1&&e!==(e=t[9]+"")&&j(l,e)},d(t){t&&d(l)}}}function ft(s,e){let l,t,n,r,i,o,c,a,f,m=(Oe(e[10])?"LocalActivity":e[10].eventType)+"",u,_,E,V,I,G,L;function le(...z){return e[7](e[9],...z)}o=new he({props:{class:"truncate",$$slots:{default:[Kl]},$$scope:{ctx:e}}}),o.$on("click",le);function B(){return e[8](e[9])}return{key:s,first:null,c(){l=g("tr"),t=g("td"),n=S(),r=g("td"),i=g("p"),y(o.$$.fragment),c=S(),a=g("td"),f=g("p"),u=M(m),_=S(),E=g("td"),V=S(),this.h()},l(z){l=b(z,"TR",{class:!0});var H=k(l);t=b(H,"TD",{class:!0}),k(t).forEach(d),n=A(H),r=b(H,"TD",{class:!0});var ne=k(r);i=b(ne,"P",{class:!0});var ue=k(i);T(o.$$.fragment,ue),ue.forEach(d),ne.forEach(d),c=A(H),a=b(H,"TD",{});var ce=k(a);f=b(ce,"P",{class:!0});var ae=k(f);u=F(ae,m),ae.forEach(d),ce.forEach(d),_=A(H),E=b(H,"TD",{}),k(E).forEach(d),V=A(H),H.forEach(d),this.h()},h(){$(t,"class","w-1/12"),$(i,"class","truncate text-sm text-gray-500 md:text-base"),$(r,"class","w-24"),$(f,"class","event-type truncate text-sm md:text-base svelte-11yead6"),$(l,"class","row svelte-11yead6"),q(l,"active",e[9]===e[1]),q(l,"failure",je(e[10])),q(l,"canceled",qe(e[10])),q(l,"terminated",Be(e[10])),this.first=l},m(z,H){w(z,l,H),v(l,t),v(l,n),v(l,r),v(r,i),D(o,i,null),v(l,c),v(l,a),v(a,f),v(f,u),v(l,_),v(l,E),v(l,V),I=!0,G||(L=We(l,"click",Nt(Yt(B))),G=!0)},p(z,H){e=z;const ne={};H&8193&&(ne.$$scope={dirty:H,ctx:e}),o.$set(ne),(!I||H&1)&&m!==(m=(Oe(e[10])?"LocalActivity":e[10].eventType)+"")&&j(u,m),(!I||H&3)&&q(l,"active",e[9]===e[1]),(!I||H&1)&&q(l,"failure",je(e[10])),(!I||H&1)&&q(l,"canceled",qe(e[10])),(!I||H&1)&&q(l,"terminated",Be(e[10]))},i(z){I||(p(o.$$.fragment,z),I=!0)},o(z){h(o.$$.fragment,z),I=!1},d(z){z&&d(l),P(o),G=!1,L()}}}function Yl(s){let e=[],l=new Map,t,n,r=[...s[0].events].reverse();const i=o=>o[9];for(let o=0;ol(6,i=u));let{eventGroup:o}=e,{selectedId:c}=e,{onGroupClick:a}=e;const f=(u,_)=>{_.stopPropagation(),Rt(qt({eventId:u,namespace:r,workflow:t,run:n}))},m=u=>a(u);return s.$$set=u=>{"eventGroup"in u&&l(0,o=u.eventGroup),"selectedId"in u&&l(1,c=u.selectedId),"onGroupClick"in u&&l(2,a=u.onGroupClick)},s.$$.update=()=>{s.$$.dirty&64&&l(5,{workflow:t,run:n,namespace:r}=i.params,t,(l(4,n),l(6,i)),(l(3,r),l(6,i)))},[o,c,a,r,n,t,i,f,m]}class xl extends oe{constructor(e){super(),ie(this,e,Xl,Zl,fe,{eventGroup:0,selectedId:1,onGroupClick:2})}}function ct(s,e,l){const t=s.slice();return t[10]=e[l][0],t[11]=e[l][1],t}function ut(s,e,l){const t=s.slice();return t[10]=e[l][0],t[11]=e[l][1],t}function en(s){let e,l,t,n=[],r=new Map,i;l=new Ut({props:{attributeGrouping:s[4],activePill:s[5]}}),l.$on("pillChange",s[7]);let o=s[6];const c=a=>a[10];for(let a=0;au[10];for(let u=0;u{i=null}),Q())},i(c){r||(p(i),r=!0)},o(c){h(i),r=!1},d(c){c&&d(l),i&&i.d(c),c&&d(n)}}}function dt(s){let e,l;return e=new Jt({props:{key:s[10],value:s[11],attributes:s[3],class:"w-full"}}),{c(){y(e.$$.fragment)},l(t){T(e.$$.fragment,t)},m(t,n){D(e,t,n),l=!0},p(t,n){const r={};n&64&&(r.key=t[10]),n&64&&(r.value=t[11]),n&8&&(r.attributes=t[3]),e.$set(r)},i(t){l||(p(e.$$.fragment,t),l=!0)},o(t){h(e.$$.fragment,t),l=!1},d(t){P(e,t)}}}function pt(s,e){var o;let l,t=(o=e[4][e[5]])==null?void 0:o.includes(e[10]),n,r,i=t&&dt(e);return{key:s,first:null,c(){l=U(),i&&i.c(),n=U(),this.h()},l(c){l=U(),i&&i.l(c),n=U(),this.h()},h(){this.first=l},m(c,a){w(c,l,a),i&&i.m(c,a),w(c,n,a),r=!0},p(c,a){var f;e=c,a&112&&(t=(f=e[4][e[5]])==null?void 0:f.includes(e[10])),t?i?(i.p(e,a),a&112&&p(i,1)):(i=dt(e),i.c(),p(i,1),i.m(n.parentNode,n)):i&&(W(),h(i,1,1,()=>{i=null}),Q())},i(c){r||(p(i),r=!0)},o(c){h(i),r=!1},d(c){c&&d(l),i&&i.d(c),c&&d(n)}}}function ln(s){let e,l,t,n,r;const i=[tn,en],o=[];function c(a,f){return f&6&&(e=null),e==null&&(e=!!(a[2]&&ve(a[1]))),e?0:1}return l=c(s,-1),t=o[l]=i[l](s),{c(){t.c(),n=U()},l(a){t.l(a),n=U()},m(a,f){o[l].m(a,f),w(a,n,f),r=!0},p(a,[f]){let m=l;l=c(a,f),l===m?o[l].p(a,f):(W(),h(o[m],1,1,()=>{o[m]=null}),Q(),t=o[l],t?t.p(a,f):(t=o[l]=i[l](a),t.c()),p(t,1),t.m(n.parentNode,n))},i(a){r||(p(t),r=!0)},o(a){h(t),r=!1},d(a){o[l].d(a),a&&d(n)}}}function nn(s,e,l){let t,n,r,i,{event:o}=e,{currentEvent:c}=e,{compact:a=!1}=e,{selectedId:f}=e;const m=_=>{l(5,r=_.detail.key)},u=_=>l(0,f=_);return s.$$set=_=>{"event"in _&&l(1,o=_.event),"currentEvent"in _&&l(9,c=_.currentEvent),"compact"in _&&l(2,a=_.compact),"selectedId"in _&&l(0,f=_.selectedId)},s.$$.update=()=>{s.$$.dirty&516&&l(3,t=jt(c,{compact:a})),s.$$.dirty&10&&l(4,n=ml(o,t)),s.$$.dirty&16&&l(5,r=Object.keys(n).find(_=>n[_].length)),s.$$.dirty&8&&l(6,i=Object.entries(t))},[f,o,a,t,n,r,i,m,u,c]}class rn extends oe{constructor(e){super(),ie(this,e,nn,ln,fe,{event:1,currentEvent:9,compact:2,selectedId:0})}}function sn(s){let e,l,t=Y(s[0])+"",n,r,i,o,c;return{c(){e=g("div"),l=g("p"),n=M(t),r=S(),i=g("p"),o=g("span"),c=M(s[1]),this.h()},l(a){e=b(a,"DIV",{class:!0});var f=k(e);l=b(f,"P",{class:!0});var m=k(l);n=F(m,t),m.forEach(d),r=A(f),i=b(f,"P",{class:!0});var u=k(i);o=b(u,"SPAN",{class:!0});var _=k(o);c=F(_,s[1]),_.forEach(d),u.forEach(d),f.forEach(d),this.h()},h(){$(l,"class","mr-3 truncate text-sm"),$(o,"class","w-full select-all text-gray-700 svelte-n4ehvt"),q(o,"badge",!Ne(s[0])),$(i,"class","truncate text-right text-sm xl:text-left"),$(e,"class","flex w-full flex-wrap items-center gap-1 pr-1")},m(a,f){w(a,e,f),v(e,l),v(l,n),v(e,r),v(e,i),v(i,o),v(o,c)},p(a,f){f&1&&t!==(t=Y(a[0])+"")&&j(n,t),f&2&&j(c,a[1]),f&1&&q(o,"badge",!Ne(a[0]))},i:re,o:re,d(a){a&&d(e)}}}function an(s){let e,l,t=Y(s[0])+"",n,r,i,o,c;return o=new Ie({props:{copyIconTitle:N("common.copy-icon-title"),copySuccessIconTitle:N("common.copy-success-icon-title"),content:s[1],$$slots:{default:[mn]},$$scope:{ctx:s}}}),{c(){e=g("div"),l=g("p"),n=M(t),r=S(),i=g("div"),y(o.$$.fragment),this.h()},l(a){e=b(a,"DIV",{class:!0});var f=k(e);l=b(f,"P",{class:!0});var m=k(l);n=F(m,t),m.forEach(d),r=A(f),i=b(f,"DIV",{class:!0});var u=k(i);T(o.$$.fragment,u),u.forEach(d),f.forEach(d),this.h()},h(){$(l,"class","mr-3 truncate text-sm"),$(i,"class","truncate text-sm"),$(e,"class","flex w-full flex-wrap items-center gap-1 pr-1")},m(a,f){w(a,e,f),v(e,l),v(l,n),v(e,r),v(e,i),D(o,i,null),c=!0},p(a,f){(!c||f&1)&&t!==(t=Y(a[0])+"")&&j(n,t);const m={};f&2&&(m.content=a[1]),f&514&&(m.$$scope={dirty:f,ctx:a}),o.$set(m)},i(a){c||(p(o.$$.fragment,a),c=!0)},o(a){h(o.$$.fragment,a),c=!1},d(a){a&&d(e),P(o)}}}function on(s){let e,l,t=Y(s[0])+"",n,r,i,o,c;return o=new Ie({props:{copyIconTitle:N("common.copy-icon-title"),copySuccessIconTitle:N("common.copy-success-icon-title"),content:s[1],"container-class":"xl:flex-row",$$slots:{default:[dn]},$$scope:{ctx:s}}}),{c(){e=g("div"),l=g("p"),n=M(t),r=S(),i=g("div"),y(o.$$.fragment),this.h()},l(a){e=b(a,"DIV",{class:!0});var f=k(e);l=b(f,"P",{class:!0});var m=k(l);n=F(m,t),m.forEach(d),r=A(f),i=b(f,"DIV",{class:!0});var u=k(i);T(o.$$.fragment,u),u.forEach(d),f.forEach(d),this.h()},h(){$(l,"class","truncate text-sm"),$(i,"class","truncate text-sm"),$(e,"class","flex w-full flex-wrap items-center gap-1 pr-1")},m(a,f){w(a,e,f),v(e,l),v(l,n),v(e,r),v(e,i),D(o,i,null),c=!0},p(a,f){(!c||f&1)&&t!==(t=Y(a[0])+"")&&j(n,t);const m={};f&2&&(m.content=a[1]),f&518&&(m.$$scope={dirty:f,ctx:a}),o.$set(m)},i(a){c||(p(o.$$.fragment,a),c=!0)},o(a){h(o.$$.fragment,a),c=!1},d(a){a&&d(e),P(o)}}}function fn(s){let e,l,t=Y(s[0])+"",n,r,i,o,c;return o=new Ie({props:{copyIconTitle:N("common.copy-icon-title"),copySuccessIconTitle:N("common.copy-success-icon-title"),content:s[1],"container-class":"xl:flex-row",$$slots:{default:[hn]},$$scope:{ctx:s}}}),{c(){e=g("div"),l=g("p"),n=M(t),r=S(),i=g("div"),y(o.$$.fragment),this.h()},l(a){e=b(a,"DIV",{class:!0});var f=k(e);l=b(f,"P",{class:!0});var m=k(l);n=F(m,t),m.forEach(d),r=A(f),i=b(f,"DIV",{class:!0});var u=k(i);T(o.$$.fragment,u),u.forEach(d),f.forEach(d),this.h()},h(){$(l,"class","mr-3 truncate text-sm"),$(i,"class","truncate text-sm"),$(e,"class","flex w-full flex-wrap items-center gap-1 pr-1")},m(a,f){w(a,e,f),v(e,l),v(l,n),v(e,r),v(e,i),D(o,i,null),c=!0},p(a,f){(!c||f&1)&&t!==(t=Y(a[0])+"")&&j(n,t);const m={};f&2&&(m.content=a[1]),f&514&&(m.$$scope={dirty:f,ctx:a}),o.$set(m)},i(a){c||(p(o.$$.fragment,a),c=!0)},o(a){h(o.$$.fragment,a),c=!1},d(a){a&&d(e),P(o)}}}function cn(s){let e,l,t=Y(s[0])+"",n,r,i,o;return i=new Le({props:{value:s[1],key:"payloads",$$slots:{default:[vn,({decodedValue:c})=>({8:c}),({decodedValue:c})=>c?256:0]},$$scope:{ctx:s}}}),{c(){e=g("div"),l=g("p"),n=M(t),r=S(),y(i.$$.fragment),this.h()},l(c){e=b(c,"DIV",{class:!0});var a=k(e);l=b(a,"P",{class:!0});var f=k(l);n=F(f,t),f.forEach(d),r=A(a),T(i.$$.fragment,a),a.forEach(d),this.h()},h(){$(l,"class","min-w-fit text-sm"),$(e,"class","flex w-full flex-wrap items-center justify-between gap-1 pr-1 xl:flex-nowrap xl:gap-4")},m(c,a){w(c,e,a),v(e,l),v(l,n),v(e,r),D(i,e,null),o=!0},p(c,a){(!o||a&1)&&t!==(t=Y(c[0])+"")&&j(n,t);const f={};a&2&&(f.value=c[1]),a&776&&(f.$$scope={dirty:a,ctx:c}),i.$set(f)},i(c){o||(p(i.$$.fragment,c),o=!0)},o(c){h(i.$$.fragment,c),o=!1},d(c){c&&d(e),P(i)}}}function un(s){let e;return{c(){e=M(s[1])},l(l){e=F(l,s[1])},m(l,t){w(l,e,t)},p(l,t){t&2&&j(e,l[1])},d(l){l&&d(e)}}}function mn(s){let e,l;return e=new he({props:{class:"truncate",newTab:!0,href:Re({namespace:s[5],queue:s[1]}),$$slots:{default:[un]},$$scope:{ctx:s}}}),{c(){y(e.$$.fragment)},l(t){T(e.$$.fragment,t)},m(t,n){D(e,t,n),l=!0},p(t,n){const r={};n&2&&(r.href=Re({namespace:t[5],queue:t[1]})),n&514&&(r.$$scope={dirty:n,ctx:t}),e.$set(r)},i(t){l||(p(e.$$.fragment,t),l=!0)},o(t){h(e.$$.fragment,t),l=!1},d(t){P(e,t)}}}function _n(s){let e;return{c(){e=M(s[1])},l(l){e=F(l,s[1])},m(l,t){w(l,e,t)},p(l,t){t&2&&j(e,l[1])},d(l){l&&d(e)}}}function dn(s){let e,l;return e=new he({props:{class:"truncate",newTab:!0,href:pe({namespace:s[5],workflow:s[2].workflowExecutionWorkflowId,run:s[2].workflowExecutionRunId}),$$slots:{default:[_n]},$$scope:{ctx:s}}}),{c(){y(e.$$.fragment)},l(t){T(e.$$.fragment,t)},m(t,n){D(e,t,n),l=!0},p(t,n){const r={};n&4&&(r.href=pe({namespace:t[5],workflow:t[2].workflowExecutionWorkflowId,run:t[2].workflowExecutionRunId})),n&514&&(r.$$scope={dirty:n,ctx:t}),e.$set(r)},i(t){l||(p(e.$$.fragment,t),l=!0)},o(t){h(e.$$.fragment,t),l=!1},d(t){P(e,t)}}}function pn(s){let e;return{c(){e=M(s[1])},l(l){e=F(l,s[1])},m(l,t){w(l,e,t)},p(l,t){t&2&&j(e,l[1])},d(l){l&&d(e)}}}function hn(s){let e,l;return e=new he({props:{class:"truncate",newTab:!0,href:pe({namespace:s[5],workflow:s[4],run:s[1]}),$$slots:{default:[pn]},$$scope:{ctx:s}}}),{c(){y(e.$$.fragment)},l(t){T(e.$$.fragment,t)},m(t,n){D(e,t,n),l=!0},p(t,n){const r={};n&2&&(r.href=pe({namespace:t[5],workflow:t[4],run:t[1]})),n&514&&(r.$$scope={dirty:n,ctx:t}),e.$set(r)},i(t){l||(p(e.$$.fragment,t),l=!0)},o(t){h(e.$$.fragment,t),l=!1},d(t){P(e,t)}}}function vn(s){let e,l;return e=new De({props:{content:s[8],inline:s[3],copyIconTitle:N("common.copy-icon-title"),copySuccessIconTitle:N("common.copy-success-icon-title")}}),{c(){y(e.$$.fragment)},l(t){T(e.$$.fragment,t)},m(t,n){D(e,t,n),l=!0},p(t,n){const r={};n&256&&(r.content=t[8]),n&8&&(r.inline=t[3]),e.$set(r)},i(t){l||(p(e.$$.fragment,t),l=!0)},o(t){h(e.$$.fragment,t),l=!1},d(t){P(e,t)}}}function $n(s){let e,l,t,n,r,i,o,c;const a=[cn,fn,on,an,sn],f=[];function m(u,_){return _&1&&(l=null),_&5&&(t=null),_&1&&(n=null),typeof u[1]=="object"?0:(l==null&&(l=!!Mt(u[0])),l?1:(t==null&&(t=!!Ft(u[0],u[2])),t?2:(n==null&&(n=!!Lt(u[0])),n?3:4)))}return r=m(s,-1),i=f[r]=a[r](s),{c(){e=g("div"),i.c(),this.h()},l(u){e=b(u,"DIV",{class:!0});var _=k(e);i.l(_),_.forEach(d),this.h()},h(){$(e,"class",o="flex flex-row items-center gap-2 first:pt-0 last:border-b-0 xl:gap-4 "+s[6].class+" svelte-n4ehvt")},m(u,_){w(u,e,_),f[r].m(e,null),c=!0},p(u,[_]){let E=r;r=m(u,_),r===E?f[r].p(u,_):(W(),h(f[E],1,1,()=>{f[E]=null}),Q(),i=f[r],i?i.p(u,_):(i=f[r]=a[r](u),i.c()),p(i,1),i.m(e,null)),(!c||_&64&&o!==(o="flex flex-row items-center gap-2 first:pt-0 last:border-b-0 xl:gap-4 "+u[6].class+" svelte-n4ehvt"))&&$(e,"class",o)},i(u){c||(p(i),c=!0)},o(u){h(i),c=!1},d(u){u&&d(e),f[r].d()}}}function gn(s,e,l){let t;te(s,ge,f=>l(7,t=f));let{key:n}=e,{value:r}=e,{attributes:i}=e,{inline:o=!1}=e;const{workflow:c,namespace:a}=t.params;return s.$$set=f=>{l(6,e=$e($e({},e),Ee(f))),"key"in f&&l(0,n=f.key),"value"in f&&l(1,r=f.value),"attributes"in f&&l(2,i=f.attributes),"inline"in f&&l(3,o=f.inline)},e=Ee(e),[n,r,i,o,c,a,e]}class bn extends oe{constructor(e){super(),ie(this,e,gn,$n,fe,{key:0,value:1,attributes:2,inline:3})}}function kn(s){let e=s[0].id+"",l;return{c(){l=M(e)},l(t){l=F(t,e)},m(t,n){w(t,l,n)},p(t,n){n[0]&1&&e!==(e=t[0].id+"")&&j(l,e)},d(t){t&&d(l)}}}function wn(s){var n;let e,l=Ze((n=s[0])==null?void 0:n.eventTime,s[14],{relative:s[15]})+"",t;return{c(){e=g("p"),t=M(l),this.h()},l(r){e=b(r,"P",{class:!0});var i=k(e);t=F(i,l),i.forEach(d),this.h()},h(){$(e,"class","break-word truncate text-sm md:whitespace-normal md:text-base")},m(r,i){w(r,e,i),v(e,t)},p(r,i){var o;i[0]&49153&&l!==(l=Ze((o=r[0])==null?void 0:o.eventTime,r[14],{relative:r[15]})+"")&&j(t,l)},i:re,o:re,d(r){r&&d(e)}}}function En(s){let e,l,t,n,r=s[9]&&ht(s),i=s[8]&&s[8]!=="0ms"&&vt(s);return{c(){e=g("p"),r&&r.c(),l=S(),i&&i.c(),t=U(),this.h()},l(o){e=b(o,"P",{class:!0});var c=k(e);r&&r.l(c),c.forEach(d),l=A(o),i&&i.l(o),t=U(),this.h()},h(){$(e,"class","break-word truncate text-sm md:whitespace-normal")},m(o,c){w(o,e,c),r&&r.m(e,null),w(o,l,c),i&&i.m(o,c),w(o,t,c),n=!0},p(o,c){o[9]?r?r.p(o,c):(r=ht(o),r.c(),r.m(e,null)):r&&(r.d(1),r=null),o[8]&&o[8]!=="0ms"?i?(i.p(o,c),c[0]&256&&p(i,1)):(i=vt(o),i.c(),p(i,1),i.m(t.parentNode,t)):i&&(W(),h(i,1,1,()=>{i=null}),Q())},i(o){n||(p(i),n=!0)},o(o){h(i),n=!1},d(o){o&&d(e),r&&r.d(),o&&d(l),i&&i.d(o),o&&d(t)}}}function ht(s){let e=s[12]?"-":"+",l,t;return{c(){l=M(e),t=M(s[9])},l(n){l=F(n,e),t=F(n,s[9])},m(n,r){w(n,l,r),w(n,t,r)},p(n,r){r[0]&4096&&e!==(e=n[12]?"-":"+")&&j(l,e),r[0]&512&&j(t,n[9])},d(n){n&&d(l),n&&d(t)}}}function vt(s){let e,l,t,n,r,i;return l=new _e({props:{class:"inline",name:"clock"}}),{c(){e=g("div"),y(l.$$.fragment),t=S(),n=g("p"),r=M(s[8]),this.h()},l(o){e=b(o,"DIV",{class:!0});var c=k(e);T(l.$$.fragment,c),t=A(c),n=b(c,"P",{class:!0});var a=k(n);r=F(a,s[8]),a.forEach(d),c.forEach(d),this.h()},h(){$(n,"class","break-word truncate text-sm md:whitespace-normal"),$(e,"class","flex flex-row items-center gap-0")},m(o,c){w(o,e,c),D(l,e,null),v(e,t),v(e,n),v(n,r),i=!0},p(o,c){(!i||c[0]&256)&&j(r,o[8])},i(o){i||(p(l.$$.fragment,o),i=!0)},o(o){h(l.$$.fragment,o),i=!1},d(o){o&&d(e),P(l)}}}function $t(s){let e,l;return e=new _e({props:{class:"mr-1.5 inline text-red-700",name:"clock"}}),{c(){y(e.$$.fragment)},l(t){T(e.$$.fragment,t)},m(t,n){D(e,t,n),l=!0},i(t){l||(p(e.$$.fragment,t),l=!0)},o(t){h(e.$$.fragment,t),l=!1},d(t){P(e,t)}}}function gt(s){let e,l;return e=new _e({props:{class:"mr-1.5 inline text-yellow-700",name:"clock"}}),{c(){y(e.$$.fragment)},l(t){T(e.$$.fragment,t)},m(t,n){D(e,t,n),l=!0},i(t){l||(p(e.$$.fragment,t),l=!0)},o(t){h(e.$$.fragment,t),l=!1},d(t){P(e,t)}}}function bt(s){let e,l;return e=new _e({props:{class:"mr-1.5 inline text-pink-700",name:"clock"}}),{c(){y(e.$$.fragment)},l(t){T(e.$$.fragment,t)},m(t,n){D(e,t,n),l=!0},i(t){l||(p(e.$$.fragment,t),l=!0)},o(t){h(e.$$.fragment,t),l=!1},d(t){P(e,t)}}}function kt(s){let e,l,t;return l=new _e({props:{class:"inline",name:"chevron-up"}}),{c(){e=g("div"),y(l.$$.fragment)},l(n){e=b(n,"DIV",{});var r=k(e);T(l.$$.fragment,r),r.forEach(d)},m(n,r){w(n,e,r),D(l,e,null),t=!0},i(n){t||(p(l.$$.fragment,n),t=!0)},o(n){h(l.$$.fragment,n),t=!1},d(n){n&&d(e),P(l)}}}function wt(s){let e,l,t,n,r,i,o,c;const a=[xe(s[6]),{attributes:s[10]},{class:"invisible h-0 w-0 md:visible md:h-auto md:w-auto"},{inline:!0}];let f={};for(let m=0;mel(t,"selectedId",o)),{c(){e=g("tr"),l=g("td"),y(t.$$.fragment),this.h()},l(a){e=b(a,"TR",{class:!0});var f=k(e);l=b(f,"TD",{class:!0,colspan:!0});var m=k(l);T(t.$$.fragment,m),m.forEach(d),f.forEach(d),this.h()},h(){$(l,"class","expanded-cell svelte-5vypy2"),$(l,"colspan","6"),$(e,"class","svelte-5vypy2"),q(e,"typedError",s[3])},m(a,f){w(a,e,f),v(e,l),D(t,l,null),i=!0},p(a,f){const m={};f[0]&1&&(m.event=a[0]),f[0]&64&&(m.currentEvent=a[6]),f[0]&2&&(m.compact=a[1]),!n&&f[0]&32&&(n=!0,m.selectedId=a[5],tl(()=>n=!1)),t.$set(m),(!i||f[0]&8)&&q(e,"typedError",a[3])},i(a){i||(p(t.$$.fragment,a),a&&(r||ll(()=>{r=nl(e,al,{}),r.start()})),i=!0)},o(a){h(t.$$.fragment,a),i=!1},d(a){a&&d(e),P(t)}}}function In(s){let e,l,t,n,r,i,o,c,a,f,m,u,_,E,V,I,G,L,le,B=(ve(s[0])?s[0].displayName:Oe(s[0])?"LocalActivity":s[0].name)+"",z,H,ne,ue,ce,ae,me,be,de,se,ye,Pe;r=new he({props:{class:"truncate","data-testid":"link",$$slots:{default:[kn]},$$scope:{ctx:s}}}),r.$on("click",s[29]);const Ve=[En,wn],R=[];function ze(C,O){return C[11]?0:1}a=ze(s),f=R[a]=Ve[a](s);let Z=s[1]&&s[17]&&$t(),X=s[1]&&s[18]&>(),x=s[1]&&s[19]&&bt(),ee=s[7]&&kt(),J=!s[7]&&wt(s),K=s[7]&&Et(s);return{c(){e=g("tr"),l=g("td"),t=S(),n=g("td"),y(r.$$.fragment),i=S(),o=g("td"),c=g("div"),f.c(),m=S(),u=g("td"),_=g("div"),E=g("div"),Z&&Z.c(),V=S(),X&&X.c(),I=S(),x&&x.c(),G=S(),L=g("div"),le=g("p"),z=M(B),H=S(),ee&&ee.c(),ue=S(),J&&J.c(),ce=S(),ae=g("td"),be=S(),K&&K.c(),de=U(),this.h()},l(C){e=b(C,"TR",{class:!0,id:!0,"data-testid":!0});var O=k(e);l=b(O,"TD",{}),k(l).forEach(d),t=A(O),n=b(O,"TD",{class:!0});var Te=k(n);T(r.$$.fragment,Te),Te.forEach(d),i=A(O),o=b(O,"TD",{class:!0});var ke=k(o);c=b(ke,"DIV",{class:!0});var Ue=k(c);f.l(Ue),Ue.forEach(d),ke.forEach(d),m=A(O),u=b(O,"TD",{colspan:!0,class:!0});var Je=k(u);_=b(Je,"DIV",{class:!0});var Ce=k(_);E=b(Ce,"DIV",{});var we=k(E);Z&&Z.l(we),V=A(we),X&&X.l(we),I=A(we),x&&x.l(we),we.forEach(d),G=A(Ce),L=b(Ce,"DIV",{class:!0});var Se=k(L);le=b(Se,"P",{class:!0});var Ke=k(le);z=F(Ke,B),Ke.forEach(d),H=A(Se),ee&&ee.l(Se),Se.forEach(d),Ce.forEach(d),Je.forEach(d),ue=A(O),J&&J.l(O),ce=A(O),ae=b(O,"TD",{}),k(ae).forEach(d),O.forEach(d),be=A(C),K&&K.l(C),de=U(),this.h()},h(){$(n,"class","w-24 text-left"),$(c,"class","flex flex-col gap-0"),$(o,"class","text-left"),$(le,"class","event-name truncate text-sm font-semibold md:text-base svelte-5vypy2"),$(L,"class","flex w-full items-center justify-between truncate"),$(_,"class","flex"),$(u,"colspan",ne=s[7]?2:1),$(u,"class","text-right text-sm font-normal xl:text-left"),$(e,"class","row svelte-5vypy2"),$(e,"id",me=s[0].id),$(e,"data-testid","event-summary-row"),q(e,"expanded",s[7]&&!s[2]),q(e,"active",s[4]),q(e,"failure",s[17]),q(e,"canceled",s[18]),q(e,"terminated",s[19]),q(e,"typedError",s[3])},m(C,O){w(C,e,O),v(e,l),v(e,t),v(e,n),D(r,n,null),v(e,i),v(e,o),v(o,c),R[a].m(c,null),v(e,m),v(e,u),v(u,_),v(_,E),Z&&Z.m(E,null),v(E,V),X&&X.m(E,null),v(E,I),x&&x.m(E,null),v(_,G),v(_,L),v(L,le),v(le,z),v(L,H),ee&&ee.m(L,null),v(e,ue),J&&J.m(e,null),v(e,ce),v(e,ae),w(C,be,O),K&&K.m(C,O),w(C,de,O),se=!0,ye||(Pe=We(e,"click",Nt(s[16])),ye=!0)},p(C,O){const Te={};O[0]&1|O[1]&1&&(Te.$$scope={dirty:O,ctx:C}),r.$set(Te);let ke=a;a=ze(C),a===ke?R[a].p(C,O):(W(),h(R[ke],1,1,()=>{R[ke]=null}),Q(),f=R[a],f?f.p(C,O):(f=R[a]=Ve[a](C),f.c()),p(f,1),f.m(c,null)),C[1]&&C[17]?Z?O[0]&2&&p(Z,1):(Z=$t(),Z.c(),p(Z,1),Z.m(E,V)):Z&&(W(),h(Z,1,1,()=>{Z=null}),Q()),C[1]&&C[18]?X?O[0]&2&&p(X,1):(X=gt(),X.c(),p(X,1),X.m(E,I)):X&&(W(),h(X,1,1,()=>{X=null}),Q()),C[1]&&C[19]?x?O[0]&2&&p(x,1):(x=bt(),x.c(),p(x,1),x.m(E,null)):x&&(W(),h(x,1,1,()=>{x=null}),Q()),(!se||O[0]&1)&&B!==(B=(ve(C[0])?C[0].displayName:Oe(C[0])?"LocalActivity":C[0].name)+"")&&j(z,B),C[7]?ee?O[0]&128&&p(ee,1):(ee=kt(),ee.c(),p(ee,1),ee.m(L,null)):ee&&(W(),h(ee,1,1,()=>{ee=null}),Q()),(!se||O[0]&128&&ne!==(ne=C[7]?2:1))&&$(u,"colspan",ne),C[7]?J&&(W(),h(J,1,1,()=>{J=null}),Q()):J?(J.p(C,O),O[0]&128&&p(J,1)):(J=wt(C),J.c(),p(J,1),J.m(e,ce)),(!se||O[0]&1&&me!==(me=C[0].id))&&$(e,"id",me),(!se||O[0]&132)&&q(e,"expanded",C[7]&&!C[2]),(!se||O[0]&16)&&q(e,"active",C[4]),(!se||O[0]&8)&&q(e,"typedError",C[3]),C[7]?K?(K.p(C,O),O[0]&128&&p(K,1)):(K=Et(C),K.c(),p(K,1),K.m(de.parentNode,de)):K&&(W(),h(K,1,1,()=>{K=null}),Q())},i(C){se||(p(r.$$.fragment,C),p(f),p(Z),p(X),p(x),p(ee),p(J),p(K),se=!0)},o(C){h(r.$$.fragment,C),h(f),h(Z),h(X),h(x),h(ee),h(J),h(K),se=!1},d(C){C&&d(e),P(r),R[a].d(),Z&&Z.d(),X&&X.d(),x&&x.d(),ee&&ee.d(),J&&J.d(),C&&d(be),K&&K.d(C),C&&d(de),ye=!1,Pe()}}}function yn(s,e,l){let t,n,r,i,o,c,a,f,m,u,_,E,V,I,G,L,le;te(s,Ge,R=>l(26,V=R)),te(s,He,R=>l(27,I=R)),te(s,ge,R=>l(28,G=R)),te(s,il,R=>l(14,L=R)),te(s,fl,R=>l(15,le=R));let{event:B}=e,{initialItem:z}=e,{compact:H=!1}=e,{expandAll:ne=!1}=e,{typedError:ue=!1}=e,{active:ce=!1}=e,{onRowClick:ae=re}=e,me=ve(B)?Array.from(B.events.keys()).pop():B.id;const be=()=>{l(7,o=!o),ae()},de=je(B),se=qe(B),ye=Be(B),Pe=R=>{R.stopPropagation(),Rt(i)};function Ve(R){me=R,l(5,me)}return s.$$set=R=>{"event"in R&&l(0,B=R.event),"initialItem"in R&&l(20,z=R.initialItem),"compact"in R&&l(1,H=R.compact),"expandAll"in R&&l(2,ne=R.expandAll),"typedError"in R&&l(3,ue=R.typedError),"active"in R&&l(4,ce=R.active),"onRowClick"in R&&l(21,ae=R.onRowClick)},s.$$.update=()=>{s.$$.dirty[0]&268435456&&l(24,{workflow:t,run:n,namespace:r}=G.params,t,(l(23,n),l(28,G)),(l(25,r),l(28,G))),s.$$.dirty[0]&58720257&&l(13,i=qt({eventId:B.id,namespace:r,workflow:t,run:n})),s.$$.dirty[0]&4&&l(7,o=ne),s.$$.dirty[0]&134217728&&l(12,c=I==="descending"),s.$$.dirty[0]&67108864&&l(22,a=V==="true"),s.$$.dirty[0]&5242881&&l(11,f=a&&z&&B.id!==z.id),s.$$.dirty[0]&3&&l(10,m=jt(B,{compact:H})),s.$$.dirty[0]&33&&l(6,u=ve(B)?B.events.get(me):B),s.$$.dirty[0]&1048641&&l(9,_=et({start:z.eventTime,end:ve(B)?B.initialEvent.eventTime:u.eventTime,includeMilliseconds:!0})),s.$$.dirty[0]&1&&l(8,E=ve(B)?et({start:B.initialEvent.eventTime,end:B.lastEvent.eventTime,includeMilliseconds:!0}):"")},[B,H,ne,ue,ce,me,u,o,E,_,m,f,c,i,L,le,be,de,se,ye,z,ae,a,n,t,r,V,I,G,Pe,Ve]}class Tr extends oe{constructor(e){super(),ie(this,e,yn,In,fe,{event:0,initialItem:20,compact:1,expandAll:2,typedError:3,active:4,onRowClick:21},null,[-1,-1])}}function It(s,e,l){const t=s.slice();return t[4]=e[l].label,t[13]=e[l].option,t}function Tn(s){let e;return{c(){e=M(s[4])},l(l){e=F(l,s[4])},m(l,t){w(l,e,t)},p(l,t){t&16&&j(e,l[4])},d(l){l&&d(e)}}}function Dn(s){let e,l;return e=new _e({props:{name:"filter",slot:"trailing"}}),{c(){y(e.$$.fragment)},l(t){T(e.$$.fragment,t)},m(t,n){D(e,t,n),l=!0},p:re,i(t){l||(p(e.$$.fragment,t),l=!0)},o(t){h(e.$$.fragment,t),l=!1},d(t){P(e,t)}}}function Pn(s){let e=N(s[4])+"",l,t;return{c(){l=M(e),t=S()},l(n){l=F(n,e),t=A(n)},m(n,r){w(n,l,r),w(n,t,r)},p(n,r){r&2&&e!==(e=N(n[4])+"")&&j(l,e)},d(n){n&&d(l),n&&d(t)}}}function yt(s){let e,l;function t(){return s[12](s[13])}return e=new Qe({props:{"data-testid":"event-category-option",selected:s[3]===s[13],$$slots:{default:[Pn]},$$scope:{ctx:s}}}),e.$on("click",t),{c(){y(e.$$.fragment)},l(n){T(e.$$.fragment,n)},m(n,r){D(e,n,r),l=!0},p(n,r){s=n;const i={};r&10&&(i.selected=s[3]===s[13]),r&65538&&(i.$$scope={dirty:r,ctx:s}),e.$set(i)},i(n){l||(p(e.$$.fragment,n),l=!0)},o(n){h(e.$$.fragment,n),l=!1},d(n){P(e,n)}}}function Vn(s){let e,l,t=s[1],n=[];for(let i=0;ih(n[i],1,1,()=>{n[i]=null});return{c(){for(let i=0;il(10,i=I)),te(s,tt,I=>l(3,o=I)),te(s,hl,I=>l(11,c=I));var a,f;let{compact:m=!1}=e,{variant:u="table-header"}=e,_=m?dl:pl;const E=I=>{zt({parameter:Tt,value:I,url:i.url})},V=I=>E(I);return s.$$set=I=>{"compact"in I&&l(6,m=I.compact),"variant"in I&&l(0,u=I.variant)},s.$$.update=()=>{s.$$.dirty&1024&&l(2,t=i.params.id),s.$$.dirty&64&&l(4,n=m?N("events.event-type"):N("events.workflow-events")),s.$$.dirty&2050&&vl("1.21",c)&&l(1,_=_.filter(({option:I})=>I!=="update")),s.$$.dirty&1026&&l(9,r=_.find(({option:I})=>{var G,L;return I===((L=(G=i.url)===null||G===void 0?void 0:G.searchParams)===null||L===void 0?void 0:L.get(Tt))})),s.$$.dirty&896&&Ae(tt,o=l(8,f=l(7,a=r==null?void 0:r.option)===null||a===void 0?void 0:a.toString())!==null&&f!==void 0?f:void 0,o)},[u,_,t,o,n,E,m,a,f,r,i,c,V]}class Gn extends oe{constructor(e){super(),ie(this,e,An,Sn,fe,{compact:6,variant:0})}}const Nn=({compact:s,sortOrder:e,showElapsed:l})=>{if(!((s||e==="descending")&&l==="false"))return`${e}:${l}`};function Dt(s,e,l){const t=s.slice();return t[9]=e[l].option,t[10]=e[l].label,t}function On(s){let e,l,t,n=N("common.date-and-time")+"",r,i;return e=new _e({props:{class:"md:hidden",name:"clock"}}),{c(){y(e.$$.fragment),l=S(),t=g("span"),r=M(n),this.h()},l(o){T(e.$$.fragment,o),l=A(o),t=b(o,"SPAN",{class:!0});var c=k(t);r=F(c,n),c.forEach(d),this.h()},h(){$(t,"class","max-md:hidden")},m(o,c){D(e,o,c),w(o,l,c),w(o,t,c),v(t,r),i=!0},p:re,i(o){i||(p(e.$$.fragment,o),i=!0)},o(o){h(e.$$.fragment,o),i=!1},d(o){P(e,o),o&&d(l),o&&d(t)}}}function Rn(s){let e=s[10]+"",l;return{c(){l=M(e)},l(t){l=F(t,e)},m(t,n){w(t,l,n)},p:re,d(t){t&&d(l)}}}function Pt(s){let e,l;function t(){return s[7](s[9])}return e=new Qe({props:{selected:s[1]===s[9],$$slots:{default:[Rn]},$$scope:{ctx:s}}}),e.$on("click",t),{c(){y(e.$$.fragment)},l(n){T(e.$$.fragment,n)},m(n,r){D(e,n,r),l=!0},p(n,r){s=n;const i={};r&2&&(i.selected=s[1]===s[9]),r&8192&&(i.$$scope={dirty:r,ctx:s}),e.$set(i)},i(n){l||(p(e.$$.fragment,n),l=!0)},o(n){h(e.$$.fragment,n),l=!1},d(n){P(e,n)}}}function Mn(s){let e=N("events.show-elapsed-time")+"",l;return{c(){l=M(e)},l(t){l=F(t,e)},m(t,n){w(t,l,n)},p:re,d(t){t&&d(l)}}}function Fn(s){let e,l,t,n,r,i=s[3],o=[];for(let a=0;ah(o[a],1,1,()=>{o[a]=null});return l=new $l({}),n=new Qe({props:{selected:s[0]==="true",$$slots:{default:[Mn]},$$scope:{ctx:s}}}),n.$on("click",s[5]),{c(){for(let a=0;al(0,n=u)),te(s,He,u=>l(1,r=u)),te(s,ge,u=>l(8,i=u));let{compact:o}=e,c=[{label:N("events.sort-ascending"),option:"ascending"},{label:N("events.sort-descending"),option:"descending"}];const a=u=>{Ae(He,r=u,r),zt({parameter:"sort",value:u,url:i.url})},f=()=>{n==="true"?Ae(Ge,n="false",n):Ae(Ge,n="true",n)},m=u=>a(u);return s.$$set=u=>{"compact"in u&&l(6,o=u.compact)},s.$$.update=()=>{s.$$.dirty&67&&l(2,t=Nn({compact:o,sortOrder:r,showElapsed:n}))},[n,r,t,c,a,f,o,m]}class Bn extends oe{constructor(e){super(),ie(this,e,qn,jn,fe,{compact:6})}}function Hn(s){let e;const l=s[6].default,t=Vt(l,s,s[7],null);return{c(){t&&t.c()},l(n){t&&t.l(n)},m(n,r){t&&t.m(n,r),e=!0},p(n,r){t&&t.p&&(!e||r&128)&&Ct(t,l,n,n[7],e?At(l,n[7],r,null):St(n[7]),null)},i(n){e||(p(t,n),e=!0)},o(n){h(t,n),e=!1},d(n){t&&t.d(n)}}}function Wn(s){let e,l=N("workflows.event-history")+"",t;return{c(){e=g("caption"),t=M(l),this.h()},l(n){e=b(n,"CAPTION",{class:!0,slot:!0});var r=k(e);t=F(r,l),r.forEach(d),this.h()},h(){$(e,"class","sr-only"),$(e,"slot","caption")},m(n,r){w(n,e,r),v(e,t)},p:re,d(n){n&&d(e)}}}function Qn(s){let e,l=(s[2]?N("common.collapse-all"):N("common.expand-all"))+"",t;return{c(){e=g("span"),t=M(l),this.h()},l(n){e=b(n,"SPAN",{class:!0});var r=k(e);t=F(r,l),r.forEach(d),this.h()},h(){$(e,"class","hidden sm:block")},m(n,r){w(n,e,r),v(e,t)},p(n,r){r&4&&l!==(l=(n[2]?N("common.collapse-all"):N("common.expand-all"))+"")&&j(t,l)},d(n){n&&d(e)}}}function zn(s){let e,l,t,n,r,i,o,c,a,f,m,u;return n=new Bn({props:{compact:s[0]}}),o=new Gn({props:{compact:s[0]}}),m=new gl({props:{size:"sm",variant:"table-header",trailingIcon:s[2]?"chevron-up":"chevron-down",disabled:!!s[3],$$slots:{default:[Qn]},$$scope:{ctx:s}}}),m.$on("click",s[4]),{c(){e=g("td"),l=S(),t=g("th"),y(n.$$.fragment),r=S(),i=g("th"),y(o.$$.fragment),c=S(),a=g("th"),f=g("div"),y(m.$$.fragment),this.h()},l(_){e=b(_,"TD",{class:!0}),k(e).forEach(d),l=A(_),t=b(_,"TH",{class:!0});var E=k(t);T(n.$$.fragment,E),E.forEach(d),r=A(_),i=b(_,"TH",{class:!0});var V=k(i);T(o.$$.fragment,V),V.forEach(d),c=A(_),a=b(_,"TH",{class:!0});var I=k(a);f=b(I,"DIV",{class:!0});var G=k(f);T(m.$$.fragment,G),G.forEach(d),I.forEach(d),this.h()},h(){$(e,"class","w-14 xl:w-10"),$(t,"class","w-16 md:w-32"),$(i,"class","w-44"),$(f,"class","flex w-full justify-end"),$(a,"class","w-auto xl:w-80")},m(_,E){w(_,e,E),w(_,l,E),w(_,t,E),D(n,t,null),w(_,r,E),w(_,i,E),D(o,i,null),w(_,c,E),w(_,a,E),v(a,f),D(m,f,null),u=!0},p(_,E){const V={};E&1&&(V.compact=_[0]),n.$set(V);const I={};E&1&&(I.compact=_[0]),o.$set(I);const G={};E&4&&(G.trailingIcon=_[2]?"chevron-up":"chevron-down"),E&8&&(G.disabled=!!_[3]),E&132&&(G.$$scope={dirty:E,ctx:_}),m.$set(G)},i(_){u||(p(n.$$.fragment,_),p(o.$$.fragment,_),p(m.$$.fragment,_),u=!0)},o(_){h(n.$$.fragment,_),h(o.$$.fragment,_),h(m.$$.fragment,_),u=!1},d(_){_&&d(e),_&&d(l),_&&d(t),P(n),_&&d(r),_&&d(i),P(o),_&&d(c),_&&d(a),P(m)}}}function Un(s){let e,l;return e=new _l({props:{slot:"headers",$$slots:{default:[zn]},$$scope:{ctx:s}}}),{c(){y(e.$$.fragment)},l(t){T(e.$$.fragment,t)},m(t,n){D(e,t,n),l=!0},p(t,n){const r={};n&141&&(r.$$scope={dirty:n,ctx:t}),e.$set(r)},i(t){l||(p(e.$$.fragment,t),l=!0)},o(t){h(e.$$.fragment,t),l=!1},d(t){P(e,t)}}}function Jn(s){let e,l;return e=new Bt({props:{updating:s[1],class:"dark w-full table-fixed","data-testid":"event-summary-table",$$slots:{headers:[Un],caption:[Wn],default:[Hn]},$$scope:{ctx:s}}}),{c(){y(e.$$.fragment)},l(t){T(e.$$.fragment,t)},m(t,n){D(e,t,n),l=!0},p(t,[n]){const r={};n&2&&(r.updating=t[1]),n&141&&(r.$$scope={dirty:n,ctx:t}),e.$set(r)},i(t){l||(p(e.$$.fragment,t),l=!0)},o(t){h(e.$$.fragment,t),l=!1},d(t){P(e,t)}}}function Kn(s,e,l){let t,n,r;te(s,ge,_=>l(5,n=_)),te(s,ol,_=>l(8,r=_));let{$$slots:i={},$$scope:o}=e,{compact:c=!1}=e,{updating:a=!1}=e,f=r==="true";const m=Gt();function u(){l(2,f=!f),m("expandAll",{expanded:f?"true":"false"})}return s.$$set=_=>{"compact"in _&&l(0,c=_.compact),"updating"in _&&l(1,a=_.updating),"$$scope"in _&&l(7,o=_.$$scope)},s.$$.update=()=>{s.$$.dirty&32&&l(3,t=n.params.id)},[c,a,f,t,u,n,i,o]}class Dr extends oe{constructor(e){super(),ie(this,e,Kn,Jn,fe,{compact:0,updating:1})}}export{Dr as E,yr as a,Tr as b}; diff --git a/ui/assets/local/_app/immutable/chunks/event-view.56fa9b74.js b/ui/assets/local/_app/immutable/chunks/event-view.50193376.js similarity index 75% rename from ui/assets/local/_app/immutable/chunks/event-view.56fa9b74.js rename to ui/assets/local/_app/immutable/chunks/event-view.50193376.js index 76ff2ba833..77dcefbfeb 100644 --- a/ui/assets/local/_app/immutable/chunks/event-view.56fa9b74.js +++ b/ui/assets/local/_app/immutable/chunks/event-view.50193376.js @@ -1 +1 @@ -import{p as e}from"./persist-store.2e269d08.js";const s=e("autoRefreshWorkflow","off"),o=e("eventView","feed",!0),n=e("expandAllEvents","false"),a=e("eventFilterSort","descending"),r=e("eventShowElapsed","false");export{s as a,n as b,r as c,o as d,a as e}; +import{p as e}from"./persist-store.8930b3b5.js";const s=e("autoRefreshWorkflow","off"),o=e("eventView","feed",!0),n=e("expandAllEvents","false"),a=e("eventFilterSort","descending"),r=e("eventShowElapsed","false");export{s as a,n as b,r as c,o as d,a as e}; diff --git a/ui/assets/local/_app/immutable/chunks/events-service.d20b1da6.js b/ui/assets/local/_app/immutable/chunks/events-service.0141aab0.js similarity index 84% rename from ui/assets/local/_app/immutable/chunks/events-service.d20b1da6.js rename to ui/assets/local/_app/immutable/chunks/events-service.0141aab0.js index f017fd16dc..9021c981e4 100644 --- a/ui/assets/local/_app/immutable/chunks/events-service.d20b1da6.js +++ b/ui/assets/local/_app/immutable/chunks/events-service.0141aab0.js @@ -1 +1 @@ -import{t as u}from"./index.9a06eb7c.js";import{b as y}from"./has.183130b0.js";import{p as g}from"./paginated.ee0f9410.js";import{r as d,a as p}from"./route-for-api.60228029.js";const h=t=>!y(t)||t==="descending"?"events.descending":t==="ascending"?"events.ascending":"events.descending",A=async({namespace:t,workflowId:e,runId:n,sort:s,onStart:r,onUpdate:a,onComplete:o})=>{const c=h(s),i=d(c,{namespace:t,workflowId:e});return(await g(async f=>p(i,{token:f,request:fetch,params:{"execution.runId":n}}),{onStart:r,onUpdate:a,onComplete:o})).history.events},I=async({namespace:t,workflowId:e,runId:n,sort:s,onStart:r,onUpdate:a,onComplete:o})=>{const c=h(s),i=d(c,{namespace:t,workflowId:e}),v=await g(async w=>p(i,{token:w,request:fetch,params:{"execution.runId":n}}),{onStart:r,onUpdate:a,onComplete:o});return await u(v.history.events)},m=async({namespace:t,workflowId:e,runId:n,sort:s})=>{const r=d(`events.${s}`,{namespace:t,workflowId:e});try{return(await p(r,{request:fetch,params:{maximumPageSize:"20","execution.runId":n}})).history.events}catch{return[]}},P=async t=>{const e=await m({...t,sort:"ascending"}),n=await m({...t,sort:"descending"}),[s,r]=await Promise.all([u(e),u(n)]);return{start:s,end:r}};export{A as a,I as b,P as f}; +import{t as u}from"./index.49e6803e.js";import{b as y}from"./has.183130b0.js";import{p as g}from"./paginated.c754f9f4.js";import{r as d,a as p}from"./route-for-api.d45de563.js";const h=t=>!y(t)||t==="descending"?"events.descending":t==="ascending"?"events.ascending":"events.descending",A=async({namespace:t,workflowId:e,runId:n,sort:s,onStart:r,onUpdate:a,onComplete:o})=>{const c=h(s),i=d(c,{namespace:t,workflowId:e});return(await g(async f=>p(i,{token:f,request:fetch,params:{"execution.runId":n}}),{onStart:r,onUpdate:a,onComplete:o})).history.events},I=async({namespace:t,workflowId:e,runId:n,sort:s,onStart:r,onUpdate:a,onComplete:o})=>{const c=h(s),i=d(c,{namespace:t,workflowId:e}),v=await g(async w=>p(i,{token:w,request:fetch,params:{"execution.runId":n}}),{onStart:r,onUpdate:a,onComplete:o});return await u(v.history.events)},m=async({namespace:t,workflowId:e,runId:n,sort:s})=>{const r=d(`events.${s}`,{namespace:t,workflowId:e});try{return(await p(r,{request:fetch,params:{maximumPageSize:"20","execution.runId":n}})).history.events}catch{return[]}},P=async t=>{const e=await m({...t,sort:"ascending"}),n=await m({...t,sort:"descending"}),[s,r]=await Promise.all([u(e),u(n)]);return{start:s,end:r}};export{A as a,I as b,P as f}; diff --git a/ui/assets/local/_app/immutable/chunks/events.631efcca.js b/ui/assets/local/_app/immutable/chunks/events.ccad8a5b.js similarity index 66% rename from ui/assets/local/_app/immutable/chunks/events.631efcca.js rename to ui/assets/local/_app/immutable/chunks/events.ccad8a5b.js index 8a135f8d3d..4eb91d6730 100644 --- a/ui/assets/local/_app/immutable/chunks/events.631efcca.js +++ b/ui/assets/local/_app/immutable/chunks/events.ccad8a5b.js @@ -1 +1 @@ -import{j as t,w as a}from"./singletons.fb5f332e.js";import{p as s}from"./stores.14a97433.js";import{a as c}from"./auth-user.9757f5e9.js";import{r as m}from"./workflow-run.86769de7.js";import{d as i}from"./encode-uri.e26747e0.js";import{G as p}from"./is-event-type.4dbe973b.js";import{e as f}from"./event-view.56fa9b74.js";import{p as d}from"./persist-store.2e269d08.js";const l=t([s],([r])=>r.params.namespace?i(r.params.namespace):""),u=t([s],([r])=>r.params.workflow?i(r.params.workflow):""),v=t([s],([r])=>r.params.run?i(r.params.run):""),w=t([s],([r])=>{var e;return(e=r.data)==null?void 0:e.settings}),k=t([c],([r])=>r==null?void 0:r.accessToken),E=t([l,u,v,f],([r,e,o,n])=>({namespace:r,workflowId:e,runId:o,sort:n}));t([E,w,k,m],([r,e,o,n])=>({...r,settings:e,accessToken:o,refresh:m,$refresh:n}));const y={start:[],end:[]},x=a(y),G=a(null),H=a([]),q=t(H,r=>r.filter(p)),z=d("decodeEventHistory",!0,!0);export{z as d,x as e,H as f,y as i,q as r,G as t}; +import{j as t,w as a}from"./singletons.13b3836d.js";import{p as s}from"./stores.0e7b7e35.js";import{a as c}from"./auth-user.ce52bc5e.js";import{r as m}from"./workflow-run.8b92989d.js";import{d as i}from"./encode-uri.e26747e0.js";import{G as p}from"./is-event-type.4dbe973b.js";import{e as f}from"./event-view.50193376.js";import{p as d}from"./persist-store.8930b3b5.js";const l=t([s],([r])=>r.params.namespace?i(r.params.namespace):""),u=t([s],([r])=>r.params.workflow?i(r.params.workflow):""),v=t([s],([r])=>r.params.run?i(r.params.run):""),w=t([s],([r])=>{var e;return(e=r.data)==null?void 0:e.settings}),k=t([c],([r])=>r==null?void 0:r.accessToken),E=t([l,u,v,f],([r,e,o,n])=>({namespace:r,workflowId:e,runId:o,sort:n}));t([E,w,k,m],([r,e,o,n])=>({...r,settings:e,accessToken:o,refresh:m,$refresh:n}));const y={start:[],end:[]},x=a(y),G=a(null),H=a([]),q=t(H,r=>r.filter(p)),z=d("decodeEventHistory",!0,!0);export{z as d,x as e,H as f,y as i,q as r,G as t}; diff --git a/ui/assets/local/_app/immutable/chunks/filters.e20189d3.js b/ui/assets/local/_app/immutable/chunks/filters.83a38186.js similarity index 63% rename from ui/assets/local/_app/immutable/chunks/filters.e20189d3.js rename to ui/assets/local/_app/immutable/chunks/filters.83a38186.js index 41de8ebb49..6eb36d9f3f 100644 --- a/ui/assets/local/_app/immutable/chunks/filters.e20189d3.js +++ b/ui/assets/local/_app/immutable/chunks/filters.83a38186.js @@ -1 +1 @@ -import{j as t,w as s}from"./singletons.fb5f332e.js";import{p as a}from"./stores.14a97433.js";import{p as i}from"./persist-store.2e269d08.js";import{ac as o}from"./index.4e2fcbc7.js";const n=t([a],([e])=>e.url.searchParams.get("query")),u=t([a],([e])=>e.url.searchParams.get("category")),c=t([n,u],([e,r])=>({query:e,category:r})),p=e=>c.subscribe(({query:r})=>{!r&&o(l).length&&e([])}),d=i("searchInputView",!1,!0),l=s([],p),g=e=>c.subscribe(({category:r})=>{!r&&o(m)&&e(null)}),m=s(void 0,g);export{m as e,d as s,l as w}; +import{j as t,w as s}from"./singletons.13b3836d.js";import{p as a}from"./stores.0e7b7e35.js";import{p as i}from"./persist-store.8930b3b5.js";import{ac as o}from"./index.4e2fcbc7.js";const n=t([a],([e])=>e.url.searchParams.get("query")),u=t([a],([e])=>e.url.searchParams.get("category")),c=t([n,u],([e,r])=>({query:e,category:r})),p=e=>c.subscribe(({query:r})=>{!r&&o(l).length&&e([])}),d=i("searchInputView",!1,!0),l=s([],p),g=e=>c.subscribe(({category:r})=>{!r&&o(m)&&e(null)}),m=s(void 0,g);export{m as e,d as s,l as w}; diff --git a/ui/assets/local/_app/immutable/chunks/format-event-attributes.adc0487a.js b/ui/assets/local/_app/immutable/chunks/format-event-attributes.5632ebeb.js similarity index 98% rename from ui/assets/local/_app/immutable/chunks/format-event-attributes.adc0487a.js rename to ui/assets/local/_app/immutable/chunks/format-event-attributes.5632ebeb.js index 50d452f4d9..f5a278e82a 100644 --- a/ui/assets/local/_app/immutable/chunks/format-event-attributes.adc0487a.js +++ b/ui/assets/local/_app/immutable/chunks/format-event-attributes.5632ebeb.js @@ -1 +1 @@ -import{ac as m}from"./index.4e2fcbc7.js";import{t as p}from"./translate.d23a91ae.js";import{b as E,r as T,t as x}from"./time-format.88312c30.js";import{c}from"./format-camel-case.887ffc78.js";import{i as I}from"./index.03feb468.js";import{h as f,i as k}from"./has.183130b0.js";import{C as b}from"./is-event-type.4dbe973b.js";const S={key:"",value:""},g=new Set(["activityId","attempt","binaryChecksum","identity","parentInitiatedEventId","requestId","scheduledEventId","startedEventId","lastHeartbeatTime","scheduledTime","expirationTime"]),X=t=>g.has(t),j=new Set(["suggestContinueAsNew","historySizeBytes"]),y=(t,e)=>!(e===null||e===void 0||e===""||e==="0s"||t==="type"||(!e||e==="0")&&j.has(t)),D=t=>!(t===null||t===void 0||t===""||Array.isArray(t)&&!t.length),Y=t=>typeof t=="string"?t:[t==null?void 0:t.payloads,t==null?void 0:t.indexedFields,t==null?void 0:t.points,t].find(e=>e!==void 0),O=t=>{if(k(t)){if(f(t,"stackTrace")&&t.stackTrace)return t.stackTrace;for(const e in t)if(k(t[e]))return O(t[e])}},R=["baseRunId","continuedExecutionRunId","firstExecutionRunId","newExecutionRunId","newRunId","originalExecutionRunId"],Z=t=>{for(const e of R)if(t===e)return!0;return!1},A=["taskQueueName"],tt=t=>{for(const e of A)if(t===e)return!0;return!1},L=["workflowExecutionWorkflowId","workflowExecutionRunId"],et=(t,e)=>{const r=Boolean((e==null?void 0:e.workflowExecutionWorkflowId)&&(e==null?void 0:e.workflowExecutionRunId));for(const o of L)if(t===o&&r)return!0;return!1},u=(t,e)=>{if(typeof e=="object"){const[r]=Object.keys(e);return r==="payloads"?{key:t,value:e}:{key:t+c(r),value:e[r]}}else return{key:t,value:e.toString()}},G=["failure","input","activityType","parentInitiatedEventId","workflowExecution","workflowType","taskQueue"],N=({attributes:t})=>{for(const[e,r]of Object.entries(t))if(y(e,r))return u(e,r)},Q=t=>{if(f(t,"ActivityType"))return t.ActivityType;if(f(t,"activity_type"))return t.activity_type},w=t=>{var r,o,s,n;const e=N(t);if(b(t)){const i=(n=(s=(o=(r=t.markerRecordedEventAttributes)==null?void 0:r.details)==null?void 0:o.data)==null?void 0:s.payloads)==null?void 0:n[0],a=Q(i);if(a)return u("ActivityType",a)}for(const[i,a]of Object.entries(t.attributes))for(const h of G)if(i===h&&y(i,a))return u(i,a);return e},v=({lastEvent:t})=>w(t),rt=t=>t?I(t)?v(t):w(t):S,F=new Set(["header"]),K=new Set(["taskQueue","retryPolicy","parentWorkflowExecution","workflowExecution","meta"]),W=new Set(["maximumAttempts"]),l=p("workflows.unlimited"),C=p("workflows.no-expiration"),ot=(t,e)=>t===0?C:e,st=(t,e)=>t?t-e:l,nt=t=>t||l,P=(t,e)=>t==="maximumAttempts"&&!e?l:e,V=(t,e)=>{if(K.has(e)&&typeof t[e]=="object"){for(const[r,o]of Object.entries(t[e]))D(o)&&(W.has(r)?t[`${e}${c(r)}`]=P(r,o):t[`${e}${c(r)}`]=o);delete t[e]}},it=(t,{compact:e}={compact:!1})=>{const r={};e&&(r.eventTime=E(t.eventTime,m(x),{relative:m(T)}));for(const[o,s]of Object.entries(t.attributes)){const n=y(o,s);!F.has(o)&&n&&(r[o]=s),V(r,o)}return r},d=["summary","parent","activity","taskQueue","schedule","retryPolicy","workflow","searchAttributes"],at={activity:{label:"events.attribute-group.activity"},parent:{label:"events.attribute-group.parent"},retryPolicy:{label:"events.attribute-group.retry-policy"},schedule:{label:"events.attribute-group.schedule"},searchAttributes:{label:"events.attribute-group.search-attributes"},summary:{label:"events.attribute-group.summary"},taskQueue:{label:"events.attribute-group.task-queue"},workflow:{label:"events.attribute-group.workflow"}},_=(t,e)=>{var r,o;t.category==="activity"&&((r=e==null?void 0:e.activity)!=null&&r.length)&&(e.summary=[...e.activity,...e.summary],e.activity=[]),t.category==="activity"&&((o=e==null?void 0:e.workflow)!=null&&o.length)&&(e.summary=[...e.summary,...e.workflow],e.workflow=[])},$=t=>{const e=new Set(["summary","searchAttributes"]);for(const[r,o]of Object.entries(t))o.length===1&&!e.has(r)&&(t.summary=[...t.summary,...o],t[r]=[])},ct=(t,e)=>{const r={};d.forEach(o=>{o==="summary"?r[o]=Object.keys(e):r[o]=[]});for(const o in e){const s=d.find(n=>o.includes(n));s&&(r[s]=[o,...r[s]],r.summary=r.summary.filter(n=>n!==o))}return _(t,r),$(r),r};export{at as a,O as b,et as c,tt as d,X as e,it as f,Y as g,ct as h,rt as i,ot as j,st as k,nt as l,Z as s}; +import{ac as m}from"./index.4e2fcbc7.js";import{t as p}from"./translate.d23a91ae.js";import{b as E,r as T,t as x}from"./time-format.fa373b4c.js";import{c}from"./format-camel-case.887ffc78.js";import{i as I}from"./index.03feb468.js";import{h as f,i as k}from"./has.183130b0.js";import{C as b}from"./is-event-type.4dbe973b.js";const S={key:"",value:""},g=new Set(["activityId","attempt","binaryChecksum","identity","parentInitiatedEventId","requestId","scheduledEventId","startedEventId","lastHeartbeatTime","scheduledTime","expirationTime"]),X=t=>g.has(t),j=new Set(["suggestContinueAsNew","historySizeBytes"]),y=(t,e)=>!(e===null||e===void 0||e===""||e==="0s"||t==="type"||(!e||e==="0")&&j.has(t)),D=t=>!(t===null||t===void 0||t===""||Array.isArray(t)&&!t.length),Y=t=>typeof t=="string"?t:[t==null?void 0:t.payloads,t==null?void 0:t.indexedFields,t==null?void 0:t.points,t].find(e=>e!==void 0),O=t=>{if(k(t)){if(f(t,"stackTrace")&&t.stackTrace)return t.stackTrace;for(const e in t)if(k(t[e]))return O(t[e])}},R=["baseRunId","continuedExecutionRunId","firstExecutionRunId","newExecutionRunId","newRunId","originalExecutionRunId"],Z=t=>{for(const e of R)if(t===e)return!0;return!1},A=["taskQueueName"],tt=t=>{for(const e of A)if(t===e)return!0;return!1},L=["workflowExecutionWorkflowId","workflowExecutionRunId"],et=(t,e)=>{const r=Boolean((e==null?void 0:e.workflowExecutionWorkflowId)&&(e==null?void 0:e.workflowExecutionRunId));for(const o of L)if(t===o&&r)return!0;return!1},u=(t,e)=>{if(typeof e=="object"){const[r]=Object.keys(e);return r==="payloads"?{key:t,value:e}:{key:t+c(r),value:e[r]}}else return{key:t,value:e.toString()}},G=["failure","input","activityType","parentInitiatedEventId","workflowExecution","workflowType","taskQueue"],N=({attributes:t})=>{for(const[e,r]of Object.entries(t))if(y(e,r))return u(e,r)},Q=t=>{if(f(t,"ActivityType"))return t.ActivityType;if(f(t,"activity_type"))return t.activity_type},w=t=>{var r,o,s,n;const e=N(t);if(b(t)){const i=(n=(s=(o=(r=t.markerRecordedEventAttributes)==null?void 0:r.details)==null?void 0:o.data)==null?void 0:s.payloads)==null?void 0:n[0],a=Q(i);if(a)return u("ActivityType",a)}for(const[i,a]of Object.entries(t.attributes))for(const h of G)if(i===h&&y(i,a))return u(i,a);return e},v=({lastEvent:t})=>w(t),rt=t=>t?I(t)?v(t):w(t):S,F=new Set(["header"]),K=new Set(["taskQueue","retryPolicy","parentWorkflowExecution","workflowExecution","meta"]),W=new Set(["maximumAttempts"]),l=p("workflows.unlimited"),C=p("workflows.no-expiration"),ot=(t,e)=>t===0?C:e,st=(t,e)=>t?t-e:l,nt=t=>t||l,P=(t,e)=>t==="maximumAttempts"&&!e?l:e,V=(t,e)=>{if(K.has(e)&&typeof t[e]=="object"){for(const[r,o]of Object.entries(t[e]))D(o)&&(W.has(r)?t[`${e}${c(r)}`]=P(r,o):t[`${e}${c(r)}`]=o);delete t[e]}},it=(t,{compact:e}={compact:!1})=>{const r={};e&&(r.eventTime=E(t.eventTime,m(x),{relative:m(T)}));for(const[o,s]of Object.entries(t.attributes)){const n=y(o,s);!F.has(o)&&n&&(r[o]=s),V(r,o)}return r},d=["summary","parent","activity","taskQueue","schedule","retryPolicy","workflow","searchAttributes"],at={activity:{label:"events.attribute-group.activity"},parent:{label:"events.attribute-group.parent"},retryPolicy:{label:"events.attribute-group.retry-policy"},schedule:{label:"events.attribute-group.schedule"},searchAttributes:{label:"events.attribute-group.search-attributes"},summary:{label:"events.attribute-group.summary"},taskQueue:{label:"events.attribute-group.task-queue"},workflow:{label:"events.attribute-group.workflow"}},_=(t,e)=>{var r,o;t.category==="activity"&&((r=e==null?void 0:e.activity)!=null&&r.length)&&(e.summary=[...e.activity,...e.summary],e.activity=[]),t.category==="activity"&&((o=e==null?void 0:e.workflow)!=null&&o.length)&&(e.summary=[...e.summary,...e.workflow],e.workflow=[])},$=t=>{const e=new Set(["summary","searchAttributes"]);for(const[r,o]of Object.entries(t))o.length===1&&!e.has(r)&&(t.summary=[...t.summary,...o],t[r]=[])},ct=(t,e)=>{const r={};d.forEach(o=>{o==="summary"?r[o]=Object.keys(e):r[o]=[]});for(const o in e){const s=d.find(n=>o.includes(n));s&&(r[s]=[o,...r[s]],r.summary=r.summary.filter(n=>n!==o))}return _(t,r),$(r),r};export{at as a,O as b,et as c,tt as d,X as e,it as f,Y as g,ct as h,rt as i,ot as j,st as k,nt as l,Z as s}; diff --git a/ui/assets/local/_app/immutable/chunks/get-codec.418ac4fc.js b/ui/assets/local/_app/immutable/chunks/get-codec.89017b46.js similarity index 89% rename from ui/assets/local/_app/immutable/chunks/get-codec.418ac4fc.js rename to ui/assets/local/_app/immutable/chunks/get-codec.89017b46.js index ccac59254c..4aa77aab46 100644 --- a/ui/assets/local/_app/immutable/chunks/get-codec.418ac4fc.js +++ b/ui/assets/local/_app/immutable/chunks/get-codec.89017b46.js @@ -1 +1 @@ -import{ac as c}from"./index.4e2fcbc7.js";import{c as u,o as C,p as l,i as E}from"./data-encoder-config.23d100a5.js";const O=(o,d=u,e=C)=>{var r;return c(e)&&c(d)||((r=o==null?void 0:o.codec)==null?void 0:r.endpoint)||c(d)||""},f=(o,d=l,e=u,p=C)=>{var n,a;const r=c(p)&&c(e),v=(n=o==null?void 0:o.codec)!=null&&n.endpoint?!!((a=o==null?void 0:o.codec)!=null&&a.passAccessToken):!!c(d);return r?!!c(d):v},A=(o,d=E,e=u,p=C)=>{var n,a;const r=c(p)&&c(e),v=(n=o==null?void 0:o.codec)!=null&&n.endpoint?!!((a=o==null?void 0:o.codec)!=null&&a.includeCredentials):!!c(d);return r?!!c(d):v};export{f as a,A as b,O as g}; +import{ac as c}from"./index.4e2fcbc7.js";import{c as u,o as C,p as l,i as E}from"./data-encoder-config.896de1ac.js";const O=(o,d=u,e=C)=>{var r;return c(e)&&c(d)||((r=o==null?void 0:o.codec)==null?void 0:r.endpoint)||c(d)||""},f=(o,d=l,e=u,p=C)=>{var n,a;const r=c(p)&&c(e),v=(n=o==null?void 0:o.codec)!=null&&n.endpoint?!!((a=o==null?void 0:o.codec)!=null&&a.passAccessToken):!!c(d);return r?!!c(d):v},A=(o,d=E,e=u,p=C)=>{var n,a;const r=c(p)&&c(e),v=(n=o==null?void 0:o.codec)!=null&&n.endpoint?!!((a=o==null?void 0:o.codec)!=null&&a.includeCredentials):!!c(d);return r?!!c(d):v};export{f as a,A as b,O as g}; diff --git a/ui/assets/local/_app/immutable/chunks/import-events.33147d23.js b/ui/assets/local/_app/immutable/chunks/import-events.33147d23.js new file mode 100644 index 0000000000..e148d4b632 --- /dev/null +++ b/ui/assets/local/_app/immutable/chunks/import-events.33147d23.js @@ -0,0 +1 @@ +import{w as t}from"./singletons.13b3836d.js";const r=t([]),s=t([]);export{s as a,r as i}; diff --git a/ui/assets/local/_app/immutable/chunks/import-events.7da68a62.js b/ui/assets/local/_app/immutable/chunks/import-events.7da68a62.js deleted file mode 100644 index 1e62704772..0000000000 --- a/ui/assets/local/_app/immutable/chunks/import-events.7da68a62.js +++ /dev/null @@ -1 +0,0 @@ -import{w as t}from"./singletons.fb5f332e.js";const r=t([]),s=t([]);export{s as a,r as i}; diff --git a/ui/assets/local/_app/immutable/chunks/index.17ebf758.js b/ui/assets/local/_app/immutable/chunks/index.1ccf1fb0.js similarity index 96% rename from ui/assets/local/_app/immutable/chunks/index.17ebf758.js rename to ui/assets/local/_app/immutable/chunks/index.1ccf1fb0.js index 9c7e689d0b..82c928738d 100644 --- a/ui/assets/local/_app/immutable/chunks/index.17ebf758.js +++ b/ui/assets/local/_app/immutable/chunks/index.1ccf1fb0.js @@ -1 +1 @@ -import{S as Ee,b as Ie,a as de,e as Ne,f as b,j as v,z as ve,g as q,h as ge,k as c,K as he,m as E,c as D,p as I,q as S,d as F,u as T,L as k,Q as L,$ as pe,ag as oe,n as re,r as Ge,P as Be,i as Xe,C as U,D as Q,E as A,F as M,w as C,x as H,y as le,a5 as Ye,G as Ze,H as $e,I as xe,J as et,V as Re}from"./index.4e2fcbc7.js";import{g as tt}from"./navigation.10919bcf.js";import{p as lt}from"./stores.14a97433.js";import{W as st}from"./workflow-status.781aff44.js";import{I as Je}from"./icon.e8aa24c8.js";import{c as ot}from"./copy-to-clipboard.35a8cf56.js";import{L as rt}from"./link.6803bb00.js";import{T as at}from"./table-row.0fafe278.js";import{t as G}from"./translate.d23a91ae.js";import{t as nt,r as ft,b as Z}from"./time-format.88312c30.js";import{w as Oe}from"./workflows.73556738.js";import{v as it,w as ut,x as ct,y as Ue}from"./format-time.4f091e0e.js";import{g as Qe}from"./workflow-service.4d66b505.js";import{d as mt,e as Pe,f as _t,g as ht,j as pt}from"./has.183130b0.js";import{g as dt}from"./route-for.80613b91.js";import{u as wt}from"./update-query-parameters.dc7e7d75.js";import{T as bt,a as kt}from"./table-header-row.fec98b60.js";import{B as Tt}from"./button.a45b0e55.js";import{I as yt}from"./input.0bde2076.js";function Ae(o){let e,s,t,l,r,f,a=o[1]&&Me(o),n=o[2]&&Ke(o);return{c(){e=E("div"),a&&a.c(),s=D(),n&&n.c(),this.h()},l(u){e=I(u,"DIV",{class:!0});var m=S(e);a&&a.l(m),s=F(m),n&&n.l(m),m.forEach(c),this.h()},h(){T(e,"class",t="copy-or-filter "+o[9]+" svelte-1f7279h")},m(u,m){b(u,e,m),a&&a.m(e,null),k(e,s),n&&n.m(e,null),l=!0,r||(f=[L(e,"click",pe(oe(re))),L(e,"keyup",pe(oe(re)))],r=!0)},p(u,m){u[1]?a?(a.p(u,m),m&2&&v(a,1)):(a=Me(u),a.c(),v(a,1),a.m(e,s)):a&&(ve(),q(a,1,1,()=>{a=null}),ge()),u[2]?n?(n.p(u,m),m&4&&v(n,1)):(n=Ke(u),n.c(),v(n,1),n.m(e,null)):n&&(ve(),q(n,1,1,()=>{n=null}),ge()),(!l||m&512&&t!==(t="copy-or-filter "+u[9]+" svelte-1f7279h"))&&T(e,"class",t)},i(u){l||(v(a),v(n),l=!0)},o(u){q(a),q(n),l=!1},d(u){u&&c(e),a&&a.d(),n&&n.d(),r=!1,Ge(f)}}}function Me(o){let e,s=o[5],t,l,r,f=ze(o);return{c(){e=E("button"),f.c(),this.h()},l(a){e=I(a,"BUTTON",{class:!0,id:!0});var n=S(e);f.l(n),n.forEach(c),this.h()},h(){T(e,"class","copy-or-filter-button svelte-1f7279h"),T(e,"id","filter-button"),Be(e,"filtered",o[5])},m(a,n){b(a,e,n),f.m(e,null),t=!0,l||(r=L(e,"click",pe(oe(function(){Xe(o[4])&&o[4].apply(this,arguments)}))),l=!0)},p(a,n){o=a,n&32&&de(s,s=o[5])?(ve(),q(f,1,1,re),ge(),f=ze(o),f.c(),v(f,1),f.m(e,null)):f.p(o,n),(!t||n&32)&&Be(e,"filtered",o[5])},i(a){t||(v(f),t=!0)},o(a){q(f),t=!1},d(a){a&&c(e),f.d(a),l=!1,r()}}}function ze(o){let e,s;return e=new Je({props:{title:o[8],name:"filter"}}),{c(){U(e.$$.fragment)},l(t){Q(e.$$.fragment,t)},m(t,l){A(e,t,l),s=!0},p(t,l){const r={};l&256&&(r.title=t[8]),e.$set(r)},i(t){s||(v(e.$$.fragment,t),s=!0)},o(t){q(e.$$.fragment,t),s=!1},d(t){M(e,t)}}}function Ke(o){let e,s,t,l,r;return s=new Je({props:{title:o[10]?o[7]:o[6],name:o[10]?"checkmark":"copy",stroke:"#000"}}),{c(){e=E("button"),U(s.$$.fragment),this.h()},l(f){e=I(f,"BUTTON",{class:!0,id:!0});var a=S(e);Q(s.$$.fragment,a),a.forEach(c),this.h()},h(){T(e,"class","copy-or-filter-button svelte-1f7279h"),T(e,"id","copy-button")},m(f,a){b(f,e,a),A(s,e,null),t=!0,l||(r=L(e,"click",pe(oe(o[13]))),l=!0)},p(f,a){const n={};a&1216&&(n.title=f[10]?f[7]:f[6]),a&1024&&(n.name=f[10]?"checkmark":"copy"),s.$set(n)},i(f){t||(v(s.$$.fragment,f),t=!0)},o(f){q(s.$$.fragment,f),t=!1},d(f){f&&c(e),M(s),l=!1,r()}}}function vt(o){let e,s,t=o[0]&&Ae(o);return{c(){t&&t.c(),e=Ne()},l(l){t&&t.l(l),e=Ne()},m(l,r){t&&t.m(l,r),b(l,e,r),s=!0},p(l,[r]){l[0]?t?(t.p(l,r),r&1&&v(t,1)):(t=Ae(l),t.c(),v(t,1),t.m(e.parentNode,e)):t&&(ve(),q(t,1,1,()=>{t=null}),ge())},i(l){s||(v(t),s=!0)},o(l){q(t),s=!1},d(l){t&&t.d(l),l&&c(e)}}}function gt(o,e,s){let t,{show:l=!1}=e,{filterable:r=!0}=e,{copyable:f=!0}=e,{content:a}=e,{onFilter:n=re}=e,{filtered:u=!1}=e,{copyIconTitle:m}=e,{copySuccessIconTitle:h}=e,{filterIconTitle:j}=e,{class:d=""}=e;const{copy:P,copied:B}=ot();he(o,B,p=>s(10,t=p));const W=p=>P(p,a);return o.$$set=p=>{"show"in p&&s(0,l=p.show),"filterable"in p&&s(1,r=p.filterable),"copyable"in p&&s(2,f=p.copyable),"content"in p&&s(3,a=p.content),"onFilter"in p&&s(4,n=p.onFilter),"filtered"in p&&s(5,u=p.filtered),"copyIconTitle"in p&&s(6,m=p.copyIconTitle),"copySuccessIconTitle"in p&&s(7,h=p.copySuccessIconTitle),"filterIconTitle"in p&&s(8,j=p.filterIconTitle),"class"in p&&s(9,d=p.class)},[l,r,f,a,n,u,m,h,j,d,t,P,B,W]}class Ve extends Ee{constructor(e){super(),Ie(this,e,gt,vt,de,{show:0,filterable:1,copyable:2,content:3,onFilter:4,filtered:5,copyIconTitle:6,copySuccessIconTitle:7,filterIconTitle:8,class:9})}}const Et=o=>{const e=[],s=()=>{t&&(e.push(t),t="")};let t="",l=0;for(;le=>e.toLowerCase()===o.toLowerCase(),ye=(o,e)=>o[e+2],It=o=>{if(o){for(const e of ct)if(o[e])return{[e]:o[e]}}},St=Se("WorkflowType"),qt=Se("WorkflowId"),Pt=Se("StartTime"),Wt=Se("ExecutionStatus"),Dt=o=>{const e=Et(o),s={workflowId:"",workflowType:"",executionStatus:null,timeRange:null};return e.forEach((t,l)=>{if(qt(t)&&(s.workflowId=ye(e,l)),St(t)&&(s.workflowType=ye(e,l)),Wt(t)){const r=ye(e,l);pt(r)&&(s.executionStatus=r)}if(Pt(t)){const r=ye(e,l);try{const f=it(r),a=It(f);s.timeRange=ut(a)}catch(f){console.error("Error parsing StartTime from query",f)}}}),s};function Ft(o){let e=o[0].id+"",s;return{c(){s=C(e)},l(t){s=H(t,e)},m(t,l){b(t,s,l)},p(t,l){l&1&&e!==(e=t[0].id+"")&&le(s,e)},d(t){t&&c(s)}}}function Ct(o){var De,Fe,Ce;let e,s,t,l,r,f,a,n,u,m=Z(o[0].startTime,o[5],{relative:o[6]})+"",h,j,d,P,B=G("workflows.workflow-name")+"",W,p,_,y,z=o[0].name+"",J,X,g,N,$,O,x=Z(o[0].endTime,o[5],{relative:o[6]})+"",se,we,ee,ae,ne=Z(o[0].startTime,o[5],{relative:o[6]})+"",be,ke,te,fe,ie=Z(o[0].endTime,o[5],{relative:o[6]})+"",Te,K,qe,We;return s=new st({props:{status:o[0].status,delay:Ue(o[0].startTime)}}),r=new rt({props:{$$slots:{default:[Ft]},$$scope:{ctx:o}}}),r.$on("click",o[9]),a=new Ve({props:{copyIconTitle:G("common.copy-icon-title"),copySuccessIconTitle:G("common.copy-success-icon-title"),filterIconTitle:G("common.filter-workflows"),show:o[1],content:o[0].id,filterable:!1}}),N=new Ve({props:{copyIconTitle:G("common.copy-icon-title"),copySuccessIconTitle:G("common.copy-success-icon-title"),filterIconTitle:G("common.filter-workflows"),show:o[1],content:o[0].name,onFilter:o[15],filtered:(Ce=(Fe=(De=o[3].url)==null?void 0:De.searchParams)==null?void 0:Fe.get("query"))==null?void 0:Ce.includes(o[0].name)}}),{c(){e=E("td"),U(s.$$.fragment),t=D(),l=E("td"),U(r.$$.fragment),f=D(),U(a.$$.fragment),n=D(),u=E("p"),h=C(m),j=D(),d=E("td"),P=E("h3"),W=C(B),p=C(":"),_=D(),y=E("button"),J=C(z),g=D(),U(N.$$.fragment),$=D(),O=E("p"),se=C(x),we=D(),ee=E("td"),ae=E("p"),be=C(ne),ke=D(),te=E("td"),fe=E("p"),Te=C(ie),this.h()},l(i){e=I(i,"TD",{});var w=S(e);Q(s.$$.fragment,w),w.forEach(c),t=F(i),l=I(i,"TD",{class:!0});var V=S(l);Q(r.$$.fragment,V),f=F(V),Q(a.$$.fragment,V),n=F(V),u=I(V,"P",{class:!0});var ue=S(u);h=H(ue,m),ue.forEach(c),V.forEach(c),j=F(i),d=I(i,"TD",{class:!0});var R=S(d);P=I(R,"H3",{class:!0});var Y=S(P);W=H(Y,B),p=H(Y,":"),Y.forEach(c),_=F(R),y=I(R,"BUTTON",{class:!0,"aria-label":!0});var ce=S(y);J=H(ce,z),ce.forEach(c),g=F(R),Q(N.$$.fragment,R),$=F(R),O=I(R,"P",{class:!0});var me=S(O);se=H(me,x),me.forEach(c),R.forEach(c),we=F(i),ee=I(i,"TD",{class:!0});var _e=S(ee);ae=I(_e,"P",{});var He=S(ae);be=H(He,ne),He.forEach(c),_e.forEach(c),ke=F(i),te=I(i,"TD",{class:!0});var je=S(te);fe=I(je,"P",{});var Le=S(fe);Te=H(Le,ie),Le.forEach(c),je.forEach(c),this.h()},h(){T(u,"class","inline-time-cell svelte-tyqpjy"),T(l,"class","relative break-words pr-4"),T(P,"class","md:hidden"),T(y,"class","table-link svelte-tyqpjy"),T(y,"aria-label",X=G("workflows.filter-by",{workflowName:o[0].name})),T(O,"class","inline-time-cell svelte-tyqpjy"),T(d,"class","relative truncate"),T(ee,"class","time-cell svelte-tyqpjy"),T(te,"class","time-cell svelte-tyqpjy")},m(i,w){b(i,e,w),A(s,e,null),b(i,t,w),b(i,l,w),A(r,l,null),k(l,f),A(a,l,null),k(l,n),k(l,u),k(u,h),b(i,j,w),b(i,d,w),k(d,P),k(P,W),k(P,p),k(d,_),k(d,y),k(y,J),k(d,g),A(N,d,null),k(d,$),k(d,O),k(O,se),b(i,we,w),b(i,ee,w),k(ee,ae),k(ae,be),b(i,ke,w),b(i,te,w),k(te,fe),k(fe,Te),K=!0,qe||(We=[L(l,"mouseover",o[10]),L(l,"focus",o[11]),L(l,"mouseleave",o[12]),L(l,"blur",o[13]),L(y,"click",pe(oe(o[14]))),L(d,"mouseover",o[16]),L(d,"focus",o[17]),L(d,"mouseleave",o[18]),L(d,"blur",o[19])],qe=!0)},p(i,w){var ce,me,_e;const V={};w&1&&(V.status=i[0].status),w&1&&(V.delay=Ue(i[0].startTime)),s.$set(V);const ue={};w&1048577&&(ue.$$scope={dirty:w,ctx:i}),r.$set(ue);const R={};w&2&&(R.show=i[1]),w&1&&(R.content=i[0].id),a.$set(R),(!K||w&97)&&m!==(m=Z(i[0].startTime,i[5],{relative:i[6]})+"")&&le(h,m),(!K||w&1)&&z!==(z=i[0].name+"")&&le(J,z),(!K||w&1&&X!==(X=G("workflows.filter-by",{workflowName:i[0].name})))&&T(y,"aria-label",X);const Y={};w&2&&(Y.show=i[1]),w&1&&(Y.content=i[0].name),w&1&&(Y.onFilter=i[15]),w&9&&(Y.filtered=(_e=(me=(ce=i[3].url)==null?void 0:ce.searchParams)==null?void 0:me.get("query"))==null?void 0:_e.includes(i[0].name)),N.$set(Y),(!K||w&97)&&x!==(x=Z(i[0].endTime,i[5],{relative:i[6]})+"")&&le(se,x),(!K||w&97)&&ne!==(ne=Z(i[0].startTime,i[5],{relative:i[6]})+"")&&le(be,ne),(!K||w&97)&&ie!==(ie=Z(i[0].endTime,i[5],{relative:i[6]})+"")&&le(Te,ie)},i(i){K||(v(s.$$.fragment,i),v(r.$$.fragment,i),v(a.$$.fragment,i),v(N.$$.fragment,i),K=!0)},o(i){q(s.$$.fragment,i),q(r.$$.fragment,i),q(a.$$.fragment,i),q(N.$$.fragment,i),K=!1},d(i){i&&c(e),M(s),i&&c(t),i&&c(l),M(r),M(a),i&&c(j),i&&c(d),M(N),i&&c(we),i&&c(ee),i&&c(ke),i&&c(te),qe=!1,Ge(We)}}}function Ht(o){let e,s;return e=new at({props:{class:"workflow-summary-row",$$slots:{default:[Ct]},$$scope:{ctx:o}}}),{c(){U(e.$$.fragment)},l(t){Q(e.$$.fragment,t)},m(t,l){A(e,t,l),s=!0},p(t,[l]){const r={};l&1048703&&(r.$$scope={dirty:l,ctx:t}),e.$set(r)},i(t){s||(v(e.$$.fragment,t),s=!0)},o(t){q(e.$$.fragment,t),s=!1},d(t){M(e,t)}}}function jt(o,e,s){let t,l,r,f,a;he(o,lt,g=>s(3,l=g)),he(o,Oe,g=>s(4,r=g)),he(o,nt,g=>s(5,f=g)),he(o,ft,g=>s(6,a=g));let{namespace:n}=e,{workflow:u}=e,m=!1;const h=g=>{const N=Qe({timeRange:"All"}),$=l.url.searchParams.get("query"),O=Dt($??N),x=(O==null?void 0:O.workflowType)===g?"":g,se=Qe({...O,workflowType:x});wt({url:l.url,parameter:"query",value:se,allowEmpty:!0})},j=()=>{Ye(Oe,r=l.url.searchParams.toString(),r),tt(t)},d=()=>s(1,m=!0),P=()=>s(1,m=!0),B=()=>s(1,m=!1),W=()=>s(1,m=!1),p=()=>h(u.name),_=()=>h(u.name),y=()=>s(1,m=!0),z=()=>s(1,m=!0),J=()=>s(1,m=!1),X=()=>s(1,m=!1);return o.$$set=g=>{"namespace"in g&&s(8,n=g.namespace),"workflow"in g&&s(0,u=g.workflow)},o.$$.update=()=>{o.$$.dirty&257&&s(2,t=dt({namespace:n,workflow:u.id,run:u.runId}))},[u,m,t,l,r,f,a,h,n,j,d,P,B,W,p,_,y,z,J,X]}class ul extends Ee{constructor(e){super(),Ie(this,e,jt,Ht,de,{namespace:8,workflow:0})}}function Lt(o){let e;const s=o[1].default,t=Ze(s,o,o[2],null);return{c(){t&&t.c()},l(l){t&&t.l(l)},m(l,r){t&&t.m(l,r),e=!0},p(l,r){t&&t.p&&(!e||r&4)&&$e(t,s,l,l[2],e?et(s,l[2],r,null):xe(l[2]),null)},i(l){e||(v(t,l),e=!0)},o(l){q(t,l),e=!1},d(l){t&&t.d(l)}}}function Nt(o){let e,s;return{c(){e=E("caption"),s=C("Workflows"),this.h()},l(t){e=I(t,"CAPTION",{class:!0,slot:!0});var l=S(e);s=H(l,"Workflows"),l.forEach(c),this.h()},h(){T(e,"class","sr-only"),T(e,"slot","caption")},m(t,l){b(t,e,l),k(e,s)},p:re,d(t){t&&c(e)}}}function Bt(o){let e,s,t,l,r,f,a,n,u,m,h,j,d,P,B,W,p;return{c(){e=E("th"),s=C("Status"),t=D(),l=E("th"),r=C("Workflow ID"),f=D(),a=E("th"),n=C("Type"),u=D(),m=E("th"),h=C("Start"),j=D(),d=E("th"),P=C("End"),B=D(),W=E("th"),p=C("Summary"),this.h()},l(_){e=I(_,"TH",{class:!0});var y=S(e);s=H(y,"Status"),y.forEach(c),t=F(_),l=I(_,"TH",{class:!0});var z=S(l);r=H(z,"Workflow ID"),z.forEach(c),f=F(_),a=I(_,"TH",{class:!0});var J=S(a);n=H(J,"Type"),J.forEach(c),u=F(_),m=I(_,"TH",{class:!0});var X=S(m);h=H(X,"Start"),X.forEach(c),j=F(_),d=I(_,"TH",{class:!0});var g=S(d);P=H(g,"End"),g.forEach(c),B=F(_),W=I(_,"TH",{class:!0,colspan:!0});var N=S(W);p=H(N,"Summary"),N.forEach(c),this.h()},h(){T(e,"class","w-32 max-md:hidden"),T(l,"class","max-md:hidden md:w-auto"),T(a,"class","w-60 max-md:hidden"),T(m,"class","w-60 max-xl:hidden"),T(d,"class","w-60 max-xl:hidden"),T(W,"class","md:hidden"),T(W,"colspan","3")},m(_,y){b(_,e,y),k(e,s),b(_,t,y),b(_,l,y),k(l,r),b(_,f,y),b(_,a,y),k(a,n),b(_,u,y),b(_,m,y),k(m,h),b(_,j,y),b(_,d,y),k(d,P),b(_,B,y),b(_,W,y),k(W,p)},p:re,d(_){_&&c(e),_&&c(t),_&&c(l),_&&c(f),_&&c(a),_&&c(u),_&&c(m),_&&c(j),_&&c(d),_&&c(B),_&&c(W)}}}function Rt(o){let e,s;return e=new kt({props:{slot:"headers",$$slots:{default:[Bt]},$$scope:{ctx:o}}}),{c(){U(e.$$.fragment)},l(t){Q(e.$$.fragment,t)},m(t,l){A(e,t,l),s=!0},p(t,l){const r={};l&4&&(r.$$scope={dirty:l,ctx:t}),e.$set(r)},i(t){s||(v(e.$$.fragment,t),s=!0)},o(t){q(e.$$.fragment,t),s=!1},d(t){M(e,t)}}}function Ot(o){let e,s;return e=new bt({props:{class:"w-full md:table-fixed",updating:o[0],"data-testid":"workflows-table",$$slots:{headers:[Rt],caption:[Nt],default:[Lt]},$$scope:{ctx:o}}}),{c(){U(e.$$.fragment)},l(t){Q(e.$$.fragment,t)},m(t,l){A(e,t,l),s=!0},p(t,[l]){const r={};l&1&&(r.updating=t[0]),l&4&&(r.$$scope={dirty:l,ctx:t}),e.$set(r)},i(t){s||(v(e.$$.fragment,t),s=!0)},o(t){q(e.$$.fragment,t),s=!1},d(t){M(e,t)}}}function Ut(o,e,s){let{$$slots:t={},$$scope:l}=e,{updating:r=!1}=e;return o.$$set=f=>{"updating"in f&&s(0,r=f.updating),"$$scope"in f&&s(2,l=f.$$scope)},[r,t,l]}class cl extends Ee{constructor(e){super(),Ie(this,e,Ut,Ot,de,{updating:0})}}function Qt(o){let e;return{c(){e=C(o[2])},l(s){e=H(s,o[2])},m(s,t){b(s,e,t)},p(s,t){t&4&&le(e,s[2])},d(s){s&&c(e)}}}function At(o){let e,s,t,l,r,f,a;return s=new yt({props:{class:"w-full",unroundRight:!0,label:o[2],id:o[5],labelHidden:!0,icon:o[4]?"search":null,type:"search",name:o[3],value:o[1],placeholder:o[0],autocomplete:"off"}}),s.$on("input",o[7]),l=new Tt({props:{borderRadiusModifier:"square-left",type:"submit",$$slots:{default:[Qt]},$$scope:{ctx:o}}}),{c(){e=E("form"),U(s.$$.fragment),t=D(),U(l.$$.fragment),this.h()},l(n){e=I(n,"FORM",{role:!0,class:!0});var u=S(e);Q(s.$$.fragment,u),t=F(u),Q(l.$$.fragment,u),u.forEach(c),this.h()},h(){T(e,"role","search"),T(e,"class","flex items-center")},m(n,u){b(n,e,u),A(s,e,null),k(e,t),A(l,e,null),r=!0,f||(a=L(e,"submit",oe(o[6])),f=!0)},p(n,[u]){const m={};u&4&&(m.label=n[2]),u&32&&(m.id=n[5]),u&16&&(m.icon=n[4]?"search":null),u&8&&(m.name=n[3]),u&2&&(m.value=n[1]),u&1&&(m.placeholder=n[0]),s.$set(m);const h={};u&260&&(h.$$scope={dirty:u,ctx:n}),l.$set(h)},i(n){r||(v(s.$$.fragment,n),v(l.$$.fragment,n),r=!0)},o(n){q(s.$$.fragment,n),q(l.$$.fragment,n),r=!1},d(n){n&&c(e),M(s),M(l),f=!1,a()}}}function Mt(o,e,s){let{placeholder:t=""}=e,{value:l=""}=e,{label:r=G("common.search")}=e,{name:f="query"}=e,{icon:a=!1}=e,{id:n=`${r.toLocaleUpperCase()}-input`}=e;function u(h){Re.call(this,o,h)}function m(h){Re.call(this,o,h)}return o.$$set=h=>{"placeholder"in h&&s(0,t=h.placeholder),"value"in h&&s(1,l=h.value),"label"in h&&s(2,r=h.label),"name"in h&&s(3,f=h.name),"icon"in h&&s(4,a=h.icon),"id"in h&&s(5,n=h.id)},[t,l,r,f,a,n,u,m]}class ml extends Ee{constructor(e){super(),Ie(this,e,Mt,At,de,{placeholder:0,value:1,label:2,name:3,icon:4,id:5})}}var _l=zt;function zt(o,e,s,t){var l,r,f;return function(){if(f=this,r=Array.prototype.slice.call(arguments),l&&(s||t))return;if(!s)return u(),l=setTimeout(n,e),l;l=setTimeout(u,e),o.apply(f,r);function n(){u(),o.apply(f,r)}function u(){clearTimeout(l),l=null}}}export{Ve as F,ml as S,cl as W,ul as a,Dt as b,_l as j,Et as t}; +import{S as Ee,b as Ie,a as de,e as Ne,f as b,j as v,z as ve,g as q,h as ge,k as c,K as he,m as E,c as D,p as I,q as S,d as F,u as T,L as k,Q as L,$ as pe,ag as oe,n as re,r as Ge,P as Be,i as Xe,C as U,D as Q,E as A,F as M,w as C,x as H,y as le,a5 as Ye,G as Ze,H as $e,I as xe,J as et,V as Re}from"./index.4e2fcbc7.js";import{g as tt}from"./navigation.b77a045a.js";import{p as lt}from"./stores.0e7b7e35.js";import{W as st}from"./workflow-status.781aff44.js";import{I as Je}from"./icon.e8aa24c8.js";import{c as ot}from"./copy-to-clipboard.a310d1bd.js";import{L as rt}from"./link.6803bb00.js";import{T as at}from"./table-row.0fafe278.js";import{t as G}from"./translate.d23a91ae.js";import{t as nt,r as ft,b as Z}from"./time-format.fa373b4c.js";import{w as Oe}from"./workflows.73426400.js";import{v as it,w as ut,x as ct,y as Ue}from"./format-time.4f091e0e.js";import{g as Qe}from"./workflow-service.e2f4a06b.js";import{d as mt,e as Pe,f as _t,g as ht,j as pt}from"./has.183130b0.js";import{g as dt}from"./route-for.084c7a46.js";import{u as wt}from"./update-query-parameters.64a6ca26.js";import{T as bt,a as kt}from"./table-header-row.fec98b60.js";import{B as Tt}from"./button.a45b0e55.js";import{I as yt}from"./input.4b0dcfae.js";function Ae(o){let e,s,t,l,r,f,a=o[1]&&Me(o),n=o[2]&&Ke(o);return{c(){e=E("div"),a&&a.c(),s=D(),n&&n.c(),this.h()},l(u){e=I(u,"DIV",{class:!0});var m=S(e);a&&a.l(m),s=F(m),n&&n.l(m),m.forEach(c),this.h()},h(){T(e,"class",t="copy-or-filter "+o[9]+" svelte-1f7279h")},m(u,m){b(u,e,m),a&&a.m(e,null),k(e,s),n&&n.m(e,null),l=!0,r||(f=[L(e,"click",pe(oe(re))),L(e,"keyup",pe(oe(re)))],r=!0)},p(u,m){u[1]?a?(a.p(u,m),m&2&&v(a,1)):(a=Me(u),a.c(),v(a,1),a.m(e,s)):a&&(ve(),q(a,1,1,()=>{a=null}),ge()),u[2]?n?(n.p(u,m),m&4&&v(n,1)):(n=Ke(u),n.c(),v(n,1),n.m(e,null)):n&&(ve(),q(n,1,1,()=>{n=null}),ge()),(!l||m&512&&t!==(t="copy-or-filter "+u[9]+" svelte-1f7279h"))&&T(e,"class",t)},i(u){l||(v(a),v(n),l=!0)},o(u){q(a),q(n),l=!1},d(u){u&&c(e),a&&a.d(),n&&n.d(),r=!1,Ge(f)}}}function Me(o){let e,s=o[5],t,l,r,f=ze(o);return{c(){e=E("button"),f.c(),this.h()},l(a){e=I(a,"BUTTON",{class:!0,id:!0});var n=S(e);f.l(n),n.forEach(c),this.h()},h(){T(e,"class","copy-or-filter-button svelte-1f7279h"),T(e,"id","filter-button"),Be(e,"filtered",o[5])},m(a,n){b(a,e,n),f.m(e,null),t=!0,l||(r=L(e,"click",pe(oe(function(){Xe(o[4])&&o[4].apply(this,arguments)}))),l=!0)},p(a,n){o=a,n&32&&de(s,s=o[5])?(ve(),q(f,1,1,re),ge(),f=ze(o),f.c(),v(f,1),f.m(e,null)):f.p(o,n),(!t||n&32)&&Be(e,"filtered",o[5])},i(a){t||(v(f),t=!0)},o(a){q(f),t=!1},d(a){a&&c(e),f.d(a),l=!1,r()}}}function ze(o){let e,s;return e=new Je({props:{title:o[8],name:"filter"}}),{c(){U(e.$$.fragment)},l(t){Q(e.$$.fragment,t)},m(t,l){A(e,t,l),s=!0},p(t,l){const r={};l&256&&(r.title=t[8]),e.$set(r)},i(t){s||(v(e.$$.fragment,t),s=!0)},o(t){q(e.$$.fragment,t),s=!1},d(t){M(e,t)}}}function Ke(o){let e,s,t,l,r;return s=new Je({props:{title:o[10]?o[7]:o[6],name:o[10]?"checkmark":"copy",stroke:"#000"}}),{c(){e=E("button"),U(s.$$.fragment),this.h()},l(f){e=I(f,"BUTTON",{class:!0,id:!0});var a=S(e);Q(s.$$.fragment,a),a.forEach(c),this.h()},h(){T(e,"class","copy-or-filter-button svelte-1f7279h"),T(e,"id","copy-button")},m(f,a){b(f,e,a),A(s,e,null),t=!0,l||(r=L(e,"click",pe(oe(o[13]))),l=!0)},p(f,a){const n={};a&1216&&(n.title=f[10]?f[7]:f[6]),a&1024&&(n.name=f[10]?"checkmark":"copy"),s.$set(n)},i(f){t||(v(s.$$.fragment,f),t=!0)},o(f){q(s.$$.fragment,f),t=!1},d(f){f&&c(e),M(s),l=!1,r()}}}function vt(o){let e,s,t=o[0]&&Ae(o);return{c(){t&&t.c(),e=Ne()},l(l){t&&t.l(l),e=Ne()},m(l,r){t&&t.m(l,r),b(l,e,r),s=!0},p(l,[r]){l[0]?t?(t.p(l,r),r&1&&v(t,1)):(t=Ae(l),t.c(),v(t,1),t.m(e.parentNode,e)):t&&(ve(),q(t,1,1,()=>{t=null}),ge())},i(l){s||(v(t),s=!0)},o(l){q(t),s=!1},d(l){t&&t.d(l),l&&c(e)}}}function gt(o,e,s){let t,{show:l=!1}=e,{filterable:r=!0}=e,{copyable:f=!0}=e,{content:a}=e,{onFilter:n=re}=e,{filtered:u=!1}=e,{copyIconTitle:m}=e,{copySuccessIconTitle:h}=e,{filterIconTitle:j}=e,{class:d=""}=e;const{copy:P,copied:B}=ot();he(o,B,p=>s(10,t=p));const W=p=>P(p,a);return o.$$set=p=>{"show"in p&&s(0,l=p.show),"filterable"in p&&s(1,r=p.filterable),"copyable"in p&&s(2,f=p.copyable),"content"in p&&s(3,a=p.content),"onFilter"in p&&s(4,n=p.onFilter),"filtered"in p&&s(5,u=p.filtered),"copyIconTitle"in p&&s(6,m=p.copyIconTitle),"copySuccessIconTitle"in p&&s(7,h=p.copySuccessIconTitle),"filterIconTitle"in p&&s(8,j=p.filterIconTitle),"class"in p&&s(9,d=p.class)},[l,r,f,a,n,u,m,h,j,d,t,P,B,W]}class Ve extends Ee{constructor(e){super(),Ie(this,e,gt,vt,de,{show:0,filterable:1,copyable:2,content:3,onFilter:4,filtered:5,copyIconTitle:6,copySuccessIconTitle:7,filterIconTitle:8,class:9})}}const Et=o=>{const e=[],s=()=>{t&&(e.push(t),t="")};let t="",l=0;for(;le=>e.toLowerCase()===o.toLowerCase(),ye=(o,e)=>o[e+2],It=o=>{if(o){for(const e of ct)if(o[e])return{[e]:o[e]}}},St=Se("WorkflowType"),qt=Se("WorkflowId"),Pt=Se("StartTime"),Wt=Se("ExecutionStatus"),Dt=o=>{const e=Et(o),s={workflowId:"",workflowType:"",executionStatus:null,timeRange:null};return e.forEach((t,l)=>{if(qt(t)&&(s.workflowId=ye(e,l)),St(t)&&(s.workflowType=ye(e,l)),Wt(t)){const r=ye(e,l);pt(r)&&(s.executionStatus=r)}if(Pt(t)){const r=ye(e,l);try{const f=it(r),a=It(f);s.timeRange=ut(a)}catch(f){console.error("Error parsing StartTime from query",f)}}}),s};function Ft(o){let e=o[0].id+"",s;return{c(){s=C(e)},l(t){s=H(t,e)},m(t,l){b(t,s,l)},p(t,l){l&1&&e!==(e=t[0].id+"")&&le(s,e)},d(t){t&&c(s)}}}function Ct(o){var De,Fe,Ce;let e,s,t,l,r,f,a,n,u,m=Z(o[0].startTime,o[5],{relative:o[6]})+"",h,j,d,P,B=G("workflows.workflow-name")+"",W,p,_,y,z=o[0].name+"",J,X,g,N,$,O,x=Z(o[0].endTime,o[5],{relative:o[6]})+"",se,we,ee,ae,ne=Z(o[0].startTime,o[5],{relative:o[6]})+"",be,ke,te,fe,ie=Z(o[0].endTime,o[5],{relative:o[6]})+"",Te,K,qe,We;return s=new st({props:{status:o[0].status,delay:Ue(o[0].startTime)}}),r=new rt({props:{$$slots:{default:[Ft]},$$scope:{ctx:o}}}),r.$on("click",o[9]),a=new Ve({props:{copyIconTitle:G("common.copy-icon-title"),copySuccessIconTitle:G("common.copy-success-icon-title"),filterIconTitle:G("common.filter-workflows"),show:o[1],content:o[0].id,filterable:!1}}),N=new Ve({props:{copyIconTitle:G("common.copy-icon-title"),copySuccessIconTitle:G("common.copy-success-icon-title"),filterIconTitle:G("common.filter-workflows"),show:o[1],content:o[0].name,onFilter:o[15],filtered:(Ce=(Fe=(De=o[3].url)==null?void 0:De.searchParams)==null?void 0:Fe.get("query"))==null?void 0:Ce.includes(o[0].name)}}),{c(){e=E("td"),U(s.$$.fragment),t=D(),l=E("td"),U(r.$$.fragment),f=D(),U(a.$$.fragment),n=D(),u=E("p"),h=C(m),j=D(),d=E("td"),P=E("h3"),W=C(B),p=C(":"),_=D(),y=E("button"),J=C(z),g=D(),U(N.$$.fragment),$=D(),O=E("p"),se=C(x),we=D(),ee=E("td"),ae=E("p"),be=C(ne),ke=D(),te=E("td"),fe=E("p"),Te=C(ie),this.h()},l(i){e=I(i,"TD",{});var w=S(e);Q(s.$$.fragment,w),w.forEach(c),t=F(i),l=I(i,"TD",{class:!0});var V=S(l);Q(r.$$.fragment,V),f=F(V),Q(a.$$.fragment,V),n=F(V),u=I(V,"P",{class:!0});var ue=S(u);h=H(ue,m),ue.forEach(c),V.forEach(c),j=F(i),d=I(i,"TD",{class:!0});var R=S(d);P=I(R,"H3",{class:!0});var Y=S(P);W=H(Y,B),p=H(Y,":"),Y.forEach(c),_=F(R),y=I(R,"BUTTON",{class:!0,"aria-label":!0});var ce=S(y);J=H(ce,z),ce.forEach(c),g=F(R),Q(N.$$.fragment,R),$=F(R),O=I(R,"P",{class:!0});var me=S(O);se=H(me,x),me.forEach(c),R.forEach(c),we=F(i),ee=I(i,"TD",{class:!0});var _e=S(ee);ae=I(_e,"P",{});var He=S(ae);be=H(He,ne),He.forEach(c),_e.forEach(c),ke=F(i),te=I(i,"TD",{class:!0});var je=S(te);fe=I(je,"P",{});var Le=S(fe);Te=H(Le,ie),Le.forEach(c),je.forEach(c),this.h()},h(){T(u,"class","inline-time-cell svelte-tyqpjy"),T(l,"class","relative break-words pr-4"),T(P,"class","md:hidden"),T(y,"class","table-link svelte-tyqpjy"),T(y,"aria-label",X=G("workflows.filter-by",{workflowName:o[0].name})),T(O,"class","inline-time-cell svelte-tyqpjy"),T(d,"class","relative truncate"),T(ee,"class","time-cell svelte-tyqpjy"),T(te,"class","time-cell svelte-tyqpjy")},m(i,w){b(i,e,w),A(s,e,null),b(i,t,w),b(i,l,w),A(r,l,null),k(l,f),A(a,l,null),k(l,n),k(l,u),k(u,h),b(i,j,w),b(i,d,w),k(d,P),k(P,W),k(P,p),k(d,_),k(d,y),k(y,J),k(d,g),A(N,d,null),k(d,$),k(d,O),k(O,se),b(i,we,w),b(i,ee,w),k(ee,ae),k(ae,be),b(i,ke,w),b(i,te,w),k(te,fe),k(fe,Te),K=!0,qe||(We=[L(l,"mouseover",o[10]),L(l,"focus",o[11]),L(l,"mouseleave",o[12]),L(l,"blur",o[13]),L(y,"click",pe(oe(o[14]))),L(d,"mouseover",o[16]),L(d,"focus",o[17]),L(d,"mouseleave",o[18]),L(d,"blur",o[19])],qe=!0)},p(i,w){var ce,me,_e;const V={};w&1&&(V.status=i[0].status),w&1&&(V.delay=Ue(i[0].startTime)),s.$set(V);const ue={};w&1048577&&(ue.$$scope={dirty:w,ctx:i}),r.$set(ue);const R={};w&2&&(R.show=i[1]),w&1&&(R.content=i[0].id),a.$set(R),(!K||w&97)&&m!==(m=Z(i[0].startTime,i[5],{relative:i[6]})+"")&&le(h,m),(!K||w&1)&&z!==(z=i[0].name+"")&&le(J,z),(!K||w&1&&X!==(X=G("workflows.filter-by",{workflowName:i[0].name})))&&T(y,"aria-label",X);const Y={};w&2&&(Y.show=i[1]),w&1&&(Y.content=i[0].name),w&1&&(Y.onFilter=i[15]),w&9&&(Y.filtered=(_e=(me=(ce=i[3].url)==null?void 0:ce.searchParams)==null?void 0:me.get("query"))==null?void 0:_e.includes(i[0].name)),N.$set(Y),(!K||w&97)&&x!==(x=Z(i[0].endTime,i[5],{relative:i[6]})+"")&&le(se,x),(!K||w&97)&&ne!==(ne=Z(i[0].startTime,i[5],{relative:i[6]})+"")&&le(be,ne),(!K||w&97)&&ie!==(ie=Z(i[0].endTime,i[5],{relative:i[6]})+"")&&le(Te,ie)},i(i){K||(v(s.$$.fragment,i),v(r.$$.fragment,i),v(a.$$.fragment,i),v(N.$$.fragment,i),K=!0)},o(i){q(s.$$.fragment,i),q(r.$$.fragment,i),q(a.$$.fragment,i),q(N.$$.fragment,i),K=!1},d(i){i&&c(e),M(s),i&&c(t),i&&c(l),M(r),M(a),i&&c(j),i&&c(d),M(N),i&&c(we),i&&c(ee),i&&c(ke),i&&c(te),qe=!1,Ge(We)}}}function Ht(o){let e,s;return e=new at({props:{class:"workflow-summary-row",$$slots:{default:[Ct]},$$scope:{ctx:o}}}),{c(){U(e.$$.fragment)},l(t){Q(e.$$.fragment,t)},m(t,l){A(e,t,l),s=!0},p(t,[l]){const r={};l&1048703&&(r.$$scope={dirty:l,ctx:t}),e.$set(r)},i(t){s||(v(e.$$.fragment,t),s=!0)},o(t){q(e.$$.fragment,t),s=!1},d(t){M(e,t)}}}function jt(o,e,s){let t,l,r,f,a;he(o,lt,g=>s(3,l=g)),he(o,Oe,g=>s(4,r=g)),he(o,nt,g=>s(5,f=g)),he(o,ft,g=>s(6,a=g));let{namespace:n}=e,{workflow:u}=e,m=!1;const h=g=>{const N=Qe({timeRange:"All"}),$=l.url.searchParams.get("query"),O=Dt($??N),x=(O==null?void 0:O.workflowType)===g?"":g,se=Qe({...O,workflowType:x});wt({url:l.url,parameter:"query",value:se,allowEmpty:!0})},j=()=>{Ye(Oe,r=l.url.searchParams.toString(),r),tt(t)},d=()=>s(1,m=!0),P=()=>s(1,m=!0),B=()=>s(1,m=!1),W=()=>s(1,m=!1),p=()=>h(u.name),_=()=>h(u.name),y=()=>s(1,m=!0),z=()=>s(1,m=!0),J=()=>s(1,m=!1),X=()=>s(1,m=!1);return o.$$set=g=>{"namespace"in g&&s(8,n=g.namespace),"workflow"in g&&s(0,u=g.workflow)},o.$$.update=()=>{o.$$.dirty&257&&s(2,t=dt({namespace:n,workflow:u.id,run:u.runId}))},[u,m,t,l,r,f,a,h,n,j,d,P,B,W,p,_,y,z,J,X]}class ul extends Ee{constructor(e){super(),Ie(this,e,jt,Ht,de,{namespace:8,workflow:0})}}function Lt(o){let e;const s=o[1].default,t=Ze(s,o,o[2],null);return{c(){t&&t.c()},l(l){t&&t.l(l)},m(l,r){t&&t.m(l,r),e=!0},p(l,r){t&&t.p&&(!e||r&4)&&$e(t,s,l,l[2],e?et(s,l[2],r,null):xe(l[2]),null)},i(l){e||(v(t,l),e=!0)},o(l){q(t,l),e=!1},d(l){t&&t.d(l)}}}function Nt(o){let e,s;return{c(){e=E("caption"),s=C("Workflows"),this.h()},l(t){e=I(t,"CAPTION",{class:!0,slot:!0});var l=S(e);s=H(l,"Workflows"),l.forEach(c),this.h()},h(){T(e,"class","sr-only"),T(e,"slot","caption")},m(t,l){b(t,e,l),k(e,s)},p:re,d(t){t&&c(e)}}}function Bt(o){let e,s,t,l,r,f,a,n,u,m,h,j,d,P,B,W,p;return{c(){e=E("th"),s=C("Status"),t=D(),l=E("th"),r=C("Workflow ID"),f=D(),a=E("th"),n=C("Type"),u=D(),m=E("th"),h=C("Start"),j=D(),d=E("th"),P=C("End"),B=D(),W=E("th"),p=C("Summary"),this.h()},l(_){e=I(_,"TH",{class:!0});var y=S(e);s=H(y,"Status"),y.forEach(c),t=F(_),l=I(_,"TH",{class:!0});var z=S(l);r=H(z,"Workflow ID"),z.forEach(c),f=F(_),a=I(_,"TH",{class:!0});var J=S(a);n=H(J,"Type"),J.forEach(c),u=F(_),m=I(_,"TH",{class:!0});var X=S(m);h=H(X,"Start"),X.forEach(c),j=F(_),d=I(_,"TH",{class:!0});var g=S(d);P=H(g,"End"),g.forEach(c),B=F(_),W=I(_,"TH",{class:!0,colspan:!0});var N=S(W);p=H(N,"Summary"),N.forEach(c),this.h()},h(){T(e,"class","w-32 max-md:hidden"),T(l,"class","max-md:hidden md:w-auto"),T(a,"class","w-60 max-md:hidden"),T(m,"class","w-60 max-xl:hidden"),T(d,"class","w-60 max-xl:hidden"),T(W,"class","md:hidden"),T(W,"colspan","3")},m(_,y){b(_,e,y),k(e,s),b(_,t,y),b(_,l,y),k(l,r),b(_,f,y),b(_,a,y),k(a,n),b(_,u,y),b(_,m,y),k(m,h),b(_,j,y),b(_,d,y),k(d,P),b(_,B,y),b(_,W,y),k(W,p)},p:re,d(_){_&&c(e),_&&c(t),_&&c(l),_&&c(f),_&&c(a),_&&c(u),_&&c(m),_&&c(j),_&&c(d),_&&c(B),_&&c(W)}}}function Rt(o){let e,s;return e=new kt({props:{slot:"headers",$$slots:{default:[Bt]},$$scope:{ctx:o}}}),{c(){U(e.$$.fragment)},l(t){Q(e.$$.fragment,t)},m(t,l){A(e,t,l),s=!0},p(t,l){const r={};l&4&&(r.$$scope={dirty:l,ctx:t}),e.$set(r)},i(t){s||(v(e.$$.fragment,t),s=!0)},o(t){q(e.$$.fragment,t),s=!1},d(t){M(e,t)}}}function Ot(o){let e,s;return e=new bt({props:{class:"w-full md:table-fixed",updating:o[0],"data-testid":"workflows-table",$$slots:{headers:[Rt],caption:[Nt],default:[Lt]},$$scope:{ctx:o}}}),{c(){U(e.$$.fragment)},l(t){Q(e.$$.fragment,t)},m(t,l){A(e,t,l),s=!0},p(t,[l]){const r={};l&1&&(r.updating=t[0]),l&4&&(r.$$scope={dirty:l,ctx:t}),e.$set(r)},i(t){s||(v(e.$$.fragment,t),s=!0)},o(t){q(e.$$.fragment,t),s=!1},d(t){M(e,t)}}}function Ut(o,e,s){let{$$slots:t={},$$scope:l}=e,{updating:r=!1}=e;return o.$$set=f=>{"updating"in f&&s(0,r=f.updating),"$$scope"in f&&s(2,l=f.$$scope)},[r,t,l]}class cl extends Ee{constructor(e){super(),Ie(this,e,Ut,Ot,de,{updating:0})}}function Qt(o){let e;return{c(){e=C(o[2])},l(s){e=H(s,o[2])},m(s,t){b(s,e,t)},p(s,t){t&4&&le(e,s[2])},d(s){s&&c(e)}}}function At(o){let e,s,t,l,r,f,a;return s=new yt({props:{class:"w-full",unroundRight:!0,label:o[2],id:o[5],labelHidden:!0,icon:o[4]?"search":null,type:"search",name:o[3],value:o[1],placeholder:o[0],autocomplete:"off"}}),s.$on("input",o[7]),l=new Tt({props:{borderRadiusModifier:"square-left",type:"submit",$$slots:{default:[Qt]},$$scope:{ctx:o}}}),{c(){e=E("form"),U(s.$$.fragment),t=D(),U(l.$$.fragment),this.h()},l(n){e=I(n,"FORM",{role:!0,class:!0});var u=S(e);Q(s.$$.fragment,u),t=F(u),Q(l.$$.fragment,u),u.forEach(c),this.h()},h(){T(e,"role","search"),T(e,"class","flex items-center")},m(n,u){b(n,e,u),A(s,e,null),k(e,t),A(l,e,null),r=!0,f||(a=L(e,"submit",oe(o[6])),f=!0)},p(n,[u]){const m={};u&4&&(m.label=n[2]),u&32&&(m.id=n[5]),u&16&&(m.icon=n[4]?"search":null),u&8&&(m.name=n[3]),u&2&&(m.value=n[1]),u&1&&(m.placeholder=n[0]),s.$set(m);const h={};u&260&&(h.$$scope={dirty:u,ctx:n}),l.$set(h)},i(n){r||(v(s.$$.fragment,n),v(l.$$.fragment,n),r=!0)},o(n){q(s.$$.fragment,n),q(l.$$.fragment,n),r=!1},d(n){n&&c(e),M(s),M(l),f=!1,a()}}}function Mt(o,e,s){let{placeholder:t=""}=e,{value:l=""}=e,{label:r=G("common.search")}=e,{name:f="query"}=e,{icon:a=!1}=e,{id:n=`${r.toLocaleUpperCase()}-input`}=e;function u(h){Re.call(this,o,h)}function m(h){Re.call(this,o,h)}return o.$$set=h=>{"placeholder"in h&&s(0,t=h.placeholder),"value"in h&&s(1,l=h.value),"label"in h&&s(2,r=h.label),"name"in h&&s(3,f=h.name),"icon"in h&&s(4,a=h.icon),"id"in h&&s(5,n=h.id)},[t,l,r,f,a,n,u,m]}class ml extends Ee{constructor(e){super(),Ie(this,e,Mt,At,de,{placeholder:0,value:1,label:2,name:3,icon:4,id:5})}}var _l=zt;function zt(o,e,s,t){var l,r,f;return function(){if(f=this,r=Array.prototype.slice.call(arguments),l&&(s||t))return;if(!s)return u(),l=setTimeout(n,e),l;l=setTimeout(u,e),o.apply(f,r);function n(){u(),o.apply(f,r)}function u(){clearTimeout(l),l=null}}}export{Ve as F,ml as S,cl as W,ul as a,Dt as b,_l as j,Et as t}; diff --git a/ui/assets/local/_app/immutable/chunks/index.9a06eb7c.js b/ui/assets/local/_app/immutable/chunks/index.49e6803e.js similarity index 81% rename from ui/assets/local/_app/immutable/chunks/index.9a06eb7c.js rename to ui/assets/local/_app/immutable/chunks/index.49e6803e.js index 95877085ad..5b0dce46eb 100644 --- a/ui/assets/local/_app/immutable/chunks/index.9a06eb7c.js +++ b/ui/assets/local/_app/immutable/chunks/index.49e6803e.js @@ -1 +1 @@ -import"./data-encoder-config.23d100a5.js";import"./index.4e2fcbc7.js";import"./i18next.1cfb3cb9.js";import"./parse-with-big-int.0036a80a.js";import{b as c}from"./time-format.88312c30.js";import{F as d}from"./is-event-type.4dbe973b.js";import{g as m}from"./get-event-categorization.4d9adfe9.js";import{s as l}from"./simplify-attributes.8d6f7848.js";const f=["Unspecified","Scheduled","Open","New","Started","Initiated","Running","Completed","Fired","CancelRequested","TimedOut","Signaled","Canceled","Failed","Terminated"],p=e=>{if(e.includes("RequestCancel"))return"CancelRequested";for(const t of f)if(e.includes(t))return t},u=async e=>{const t=String(e.eventId),n=e.eventType,i=c(String(e.eventTime)),s=p(n),a=m(n),{key:o,attributes:r}=d(e);return{...e,name:n,id:t,eventType:n,timestamp:i,classification:s,category:a,attributes:l({type:o,...r})}},T=async e=>await Promise.all(e.map(u)),q=e=>{const t={...e};return delete t.name,delete t.id,delete t.timestamp,delete t.classification,delete t.category,delete t.attributes,t};export{q as f,T as t}; +import"./data-encoder-config.896de1ac.js";import"./index.4e2fcbc7.js";import"./i18next.1cfb3cb9.js";import"./parse-with-big-int.0036a80a.js";import{b as c}from"./time-format.fa373b4c.js";import{F as d}from"./is-event-type.4dbe973b.js";import{g as m}from"./get-event-categorization.4d9adfe9.js";import{s as l}from"./simplify-attributes.9504a504.js";const f=["Unspecified","Scheduled","Open","New","Started","Initiated","Running","Completed","Fired","CancelRequested","TimedOut","Signaled","Canceled","Failed","Terminated"],p=e=>{if(e.includes("RequestCancel"))return"CancelRequested";for(const t of f)if(e.includes(t))return t},u=async e=>{const t=String(e.eventId),n=e.eventType,i=c(String(e.eventTime)),s=p(n),a=m(n),{key:o,attributes:r}=d(e);return{...e,name:n,id:t,eventType:n,timestamp:i,classification:s,category:a,attributes:l({type:o,...r})}},T=async e=>await Promise.all(e.map(u)),q=e=>{const t={...e};return delete t.name,delete t.id,delete t.timestamp,delete t.classification,delete t.category,delete t.attributes,t};export{q as f,T as t}; diff --git a/ui/assets/local/_app/immutable/chunks/index.2169175d.js b/ui/assets/local/_app/immutable/chunks/index.e93e2a88.js similarity index 98% rename from ui/assets/local/_app/immutable/chunks/index.2169175d.js rename to ui/assets/local/_app/immutable/chunks/index.e93e2a88.js index 0821e0c41e..97758ef46d 100644 --- a/ui/assets/local/_app/immutable/chunks/index.2169175d.js +++ b/ui/assets/local/_app/immutable/chunks/index.e93e2a88.js @@ -1 +1 @@ -import{S as Q,b as V,a as M,e as C,f as k,z as R,g,h as W,j as v,k as m,ah as X,K as Y,N as A,U as E,G as N,m as T,c as B,C as P,p as I,q as y,d as q,D,u as h,L as S,E as O,H as U,I as j,J as z,F,Q as Z,w as G,x as H,P as d,y as J}from"./index.4e2fcbc7.js";import{c as w}from"./copy-to-clipboard.35a8cf56.js";import{B as K}from"./button.a1f9786a.js";function $(s){let e,o,t,a,l;const u=s[11].default,p=N(u,s,s[10],null),c=p||ee(s);return t=new K({props:{copyIconTitle:s[3],copySuccessIconTitle:s[4],class:s[1]?"visible":"invisible group-hover:visible",copied:s[5]}}),t.$on("click",s[7]),{c(){e=T("div"),c&&c.c(),o=B(),P(t.$$.fragment),this.h()},l(n){e=I(n,"DIV",{class:!0});var i=y(e);c&&c.l(i),o=q(i),D(t.$$.fragment,i),i.forEach(m),this.h()},h(){h(e,"class",a="group flex items-center gap-1 "+s[8]["container-class"])},m(n,i){k(n,e,i),c&&c.m(e,null),S(e,o),O(t,e,null),l=!0},p(n,i){p?p.p&&(!l||i&1024)&&U(p,u,n,n[10],l?z(u,n[10],i,null):j(n[10]),null):c&&c.p&&(!l||i&769)&&c.p(n,l?i:-1);const f={};i&8&&(f.copyIconTitle=n[3]),i&16&&(f.copySuccessIconTitle=n[4]),i&2&&(f.class=n[1]?"visible":"invisible group-hover:visible"),i&32&&(f.copied=n[5]),t.$set(f),(!l||i&256&&a!==(a="group flex items-center gap-1 "+n[8]["container-class"]))&&h(e,"class",a)},i(n){l||(v(c,n),v(t.$$.fragment,n),l=!0)},o(n){g(c,n),g(t.$$.fragment,n),l=!1},d(n){n&&m(e),c&&c.d(n),F(t)}}}function x(s){let e,o,t,a,l,u,p;const c=s[11].default,n=N(c,s,s[10],null),i=n||le(s);return t=new K({props:{copyIconTitle:s[3],copySuccessIconTitle:s[4],class:s[1]?"visible":"invisible group-hover:visible",copied:s[5]}}),t.$on("click",s[7]),{c(){e=T("button"),i&&i.c(),o=B(),P(t.$$.fragment),this.h()},l(f){e=I(f,"BUTTON",{class:!0});var r=y(e);i&&i.l(r),o=q(r),D(t.$$.fragment,r),r.forEach(m),this.h()},h(){h(e,"class",a="group flex items-center gap-1 "+s[8]["container-class"])},m(f,r){k(f,e,r),i&&i.m(e,null),S(e,o),O(t,e,null),l=!0,u||(p=Z(e,"click",s[7]),u=!0)},p(f,r){n?n.p&&(!l||r&1024)&&U(n,c,f,f[10],l?z(c,f[10],r,null):j(f[10]),null):i&&i.p&&(!l||r&769)&&i.p(f,l?r:-1);const b={};r&8&&(b.copyIconTitle=f[3]),r&16&&(b.copySuccessIconTitle=f[4]),r&2&&(b.class=f[1]?"visible":"invisible group-hover:visible"),r&32&&(b.copied=f[5]),t.$set(b),(!l||r&256&&a!==(a="group flex items-center gap-1 "+f[8]["container-class"]))&&h(e,"class",a)},i(f){l||(v(i,f),v(t.$$.fragment,f),l=!0)},o(f){g(i,f),g(t.$$.fragment,f),l=!1},d(f){f&&m(e),i&&i.d(f),F(t),u=!1,p()}}}function ee(s){let e,o,t;return{c(){e=T("span"),o=G(s[0]),this.h()},l(a){e=I(a,"SPAN",{class:!0});var l=y(e);o=H(l,s[0]),l.forEach(m),this.h()},h(){h(e,"class",t=s[8].class),d(e,"select-all",!s[9].default)},m(a,l){k(a,e,l),S(e,o)},p(a,l){l&1&&J(o,a[0]),l&256&&t!==(t=a[8].class)&&h(e,"class",t),l&768&&d(e,"select-all",!a[9].default)},d(a){a&&m(e)}}}function le(s){let e,o,t;return{c(){e=T("span"),o=G(s[0]),this.h()},l(a){e=I(a,"SPAN",{class:!0});var l=y(e);o=H(l,s[0]),l.forEach(m),this.h()},h(){h(e,"class",t=s[8].class),d(e,"select-all",!s[9].default)},m(a,l){k(a,e,l),S(e,o)},p(a,l){l&1&&J(o,a[0]),l&256&&t!==(t=a[8].class)&&h(e,"class",t),l&768&&d(e,"select-all",!a[9].default)},d(a){a&&m(e)}}}function se(s){let e,o,t,a;const l=[x,$],u=[];function p(c,n){return c[2]?0:1}return e=p(s),o=u[e]=l[e](s),{c(){o.c(),t=C()},l(c){o.l(c),t=C()},m(c,n){u[e].m(c,n),k(c,t,n),a=!0},p(c,[n]){let i=e;e=p(c),e===i?u[e].p(c,n):(R(),g(u[i],1,1,()=>{u[i]=null}),W(),o=u[e],o?o.p(c,n):(o=u[e]=l[e](c),o.c()),v(o,1),o.m(t.parentNode,t))},i(c){a||(v(o),a=!0)},o(c){g(o),a=!1},d(c){u[e].d(c),c&&m(t)}}}function oe(s,e,o){let t,{$$slots:a={},$$scope:l}=e;const u=X(a);let{content:p}=e,{visible:c=!1}=e,{clickAllToCopy:n=!1}=e,{copyIconTitle:i}=e,{copySuccessIconTitle:f}=e;const{copy:r,copied:b}=w();Y(s,b,_=>o(5,t=_));function L(_){r(_,p)}return s.$$set=_=>{o(8,e=A(A({},e),E(_))),"content"in _&&o(0,p=_.content),"visible"in _&&o(1,c=_.visible),"clickAllToCopy"in _&&o(2,n=_.clickAllToCopy),"copyIconTitle"in _&&o(3,i=_.copyIconTitle),"copySuccessIconTitle"in _&&o(4,f=_.copySuccessIconTitle),"$$scope"in _&&o(10,l=_.$$scope)},e=E(e),[p,c,n,i,f,t,b,L,e,u,l,a]}class ce extends Q{constructor(e){super(),V(this,e,oe,se,M,{content:0,visible:1,clickAllToCopy:2,copyIconTitle:3,copySuccessIconTitle:4})}}export{ce as C}; +import{S as Q,b as V,a as M,e as C,f as k,z as R,g,h as W,j as v,k as m,ah as X,K as Y,N as A,U as E,G as N,m as T,c as B,C as P,p as I,q as y,d as q,D,u as h,L as S,E as O,H as U,I as j,J as z,F,Q as Z,w as G,x as H,P as d,y as J}from"./index.4e2fcbc7.js";import{c as w}from"./copy-to-clipboard.a310d1bd.js";import{B as K}from"./button.a1f9786a.js";function $(s){let e,o,t,a,l;const u=s[11].default,p=N(u,s,s[10],null),c=p||ee(s);return t=new K({props:{copyIconTitle:s[3],copySuccessIconTitle:s[4],class:s[1]?"visible":"invisible group-hover:visible",copied:s[5]}}),t.$on("click",s[7]),{c(){e=T("div"),c&&c.c(),o=B(),P(t.$$.fragment),this.h()},l(n){e=I(n,"DIV",{class:!0});var i=y(e);c&&c.l(i),o=q(i),D(t.$$.fragment,i),i.forEach(m),this.h()},h(){h(e,"class",a="group flex items-center gap-1 "+s[8]["container-class"])},m(n,i){k(n,e,i),c&&c.m(e,null),S(e,o),O(t,e,null),l=!0},p(n,i){p?p.p&&(!l||i&1024)&&U(p,u,n,n[10],l?z(u,n[10],i,null):j(n[10]),null):c&&c.p&&(!l||i&769)&&c.p(n,l?i:-1);const f={};i&8&&(f.copyIconTitle=n[3]),i&16&&(f.copySuccessIconTitle=n[4]),i&2&&(f.class=n[1]?"visible":"invisible group-hover:visible"),i&32&&(f.copied=n[5]),t.$set(f),(!l||i&256&&a!==(a="group flex items-center gap-1 "+n[8]["container-class"]))&&h(e,"class",a)},i(n){l||(v(c,n),v(t.$$.fragment,n),l=!0)},o(n){g(c,n),g(t.$$.fragment,n),l=!1},d(n){n&&m(e),c&&c.d(n),F(t)}}}function x(s){let e,o,t,a,l,u,p;const c=s[11].default,n=N(c,s,s[10],null),i=n||le(s);return t=new K({props:{copyIconTitle:s[3],copySuccessIconTitle:s[4],class:s[1]?"visible":"invisible group-hover:visible",copied:s[5]}}),t.$on("click",s[7]),{c(){e=T("button"),i&&i.c(),o=B(),P(t.$$.fragment),this.h()},l(f){e=I(f,"BUTTON",{class:!0});var r=y(e);i&&i.l(r),o=q(r),D(t.$$.fragment,r),r.forEach(m),this.h()},h(){h(e,"class",a="group flex items-center gap-1 "+s[8]["container-class"])},m(f,r){k(f,e,r),i&&i.m(e,null),S(e,o),O(t,e,null),l=!0,u||(p=Z(e,"click",s[7]),u=!0)},p(f,r){n?n.p&&(!l||r&1024)&&U(n,c,f,f[10],l?z(c,f[10],r,null):j(f[10]),null):i&&i.p&&(!l||r&769)&&i.p(f,l?r:-1);const b={};r&8&&(b.copyIconTitle=f[3]),r&16&&(b.copySuccessIconTitle=f[4]),r&2&&(b.class=f[1]?"visible":"invisible group-hover:visible"),r&32&&(b.copied=f[5]),t.$set(b),(!l||r&256&&a!==(a="group flex items-center gap-1 "+f[8]["container-class"]))&&h(e,"class",a)},i(f){l||(v(i,f),v(t.$$.fragment,f),l=!0)},o(f){g(i,f),g(t.$$.fragment,f),l=!1},d(f){f&&m(e),i&&i.d(f),F(t),u=!1,p()}}}function ee(s){let e,o,t;return{c(){e=T("span"),o=G(s[0]),this.h()},l(a){e=I(a,"SPAN",{class:!0});var l=y(e);o=H(l,s[0]),l.forEach(m),this.h()},h(){h(e,"class",t=s[8].class),d(e,"select-all",!s[9].default)},m(a,l){k(a,e,l),S(e,o)},p(a,l){l&1&&J(o,a[0]),l&256&&t!==(t=a[8].class)&&h(e,"class",t),l&768&&d(e,"select-all",!a[9].default)},d(a){a&&m(e)}}}function le(s){let e,o,t;return{c(){e=T("span"),o=G(s[0]),this.h()},l(a){e=I(a,"SPAN",{class:!0});var l=y(e);o=H(l,s[0]),l.forEach(m),this.h()},h(){h(e,"class",t=s[8].class),d(e,"select-all",!s[9].default)},m(a,l){k(a,e,l),S(e,o)},p(a,l){l&1&&J(o,a[0]),l&256&&t!==(t=a[8].class)&&h(e,"class",t),l&768&&d(e,"select-all",!a[9].default)},d(a){a&&m(e)}}}function se(s){let e,o,t,a;const l=[x,$],u=[];function p(c,n){return c[2]?0:1}return e=p(s),o=u[e]=l[e](s),{c(){o.c(),t=C()},l(c){o.l(c),t=C()},m(c,n){u[e].m(c,n),k(c,t,n),a=!0},p(c,[n]){let i=e;e=p(c),e===i?u[e].p(c,n):(R(),g(u[i],1,1,()=>{u[i]=null}),W(),o=u[e],o?o.p(c,n):(o=u[e]=l[e](c),o.c()),v(o,1),o.m(t.parentNode,t))},i(c){a||(v(o),a=!0)},o(c){g(o),a=!1},d(c){u[e].d(c),c&&m(t)}}}function oe(s,e,o){let t,{$$slots:a={},$$scope:l}=e;const u=X(a);let{content:p}=e,{visible:c=!1}=e,{clickAllToCopy:n=!1}=e,{copyIconTitle:i}=e,{copySuccessIconTitle:f}=e;const{copy:r,copied:b}=w();Y(s,b,_=>o(5,t=_));function L(_){r(_,p)}return s.$$set=_=>{o(8,e=A(A({},e),E(_))),"content"in _&&o(0,p=_.content),"visible"in _&&o(1,c=_.visible),"clickAllToCopy"in _&&o(2,n=_.clickAllToCopy),"copyIconTitle"in _&&o(3,i=_.copyIconTitle),"copySuccessIconTitle"in _&&o(4,f=_.copySuccessIconTitle),"$$scope"in _&&o(10,l=_.$$scope)},e=E(e),[p,c,n,i,f,t,b,L,e,u,l,a]}class ce extends Q{constructor(e){super(),V(this,e,oe,se,M,{content:0,visible:1,clickAllToCopy:2,copyIconTitle:3,copySuccessIconTitle:4})}}export{ce as C}; diff --git a/ui/assets/local/_app/immutable/chunks/input.0bde2076.js b/ui/assets/local/_app/immutable/chunks/input.4b0dcfae.js similarity index 99% rename from ui/assets/local/_app/immutable/chunks/input.0bde2076.js rename to ui/assets/local/_app/immutable/chunks/input.4b0dcfae.js index 268a53a5c6..45290c2a21 100644 --- a/ui/assets/local/_app/immutable/chunks/input.0bde2076.js +++ b/ui/assets/local/_app/immutable/chunks/input.4b0dcfae.js @@ -1 +1 @@ -import{S as Re,b as Te,a as Fe,N as te,m as q,w as X,c as G,p as D,q as T,x as Y,k as L,d as J,u as k,P as c,O as ue,Z as se,f as O,L as E,_ as oe,Q as M,$ as fe,a2 as Ne,y as $,j as N,z as re,g as A,h as ce,R as Pe,r as Ve,T as he,M as Se,K as Ae,U as He,C as ee,D as le,E as ae,F as ne,V as W,n as Ce}from"./index.4e2fcbc7.js";import{I as _e}from"./icon.e8aa24c8.js";import{c as je}from"./copy-to-clipboard.35a8cf56.js";import{I as ge}from"./icon-button.92948dd7.js";function de(a){let l,e,f;return e=new _e({props:{name:a[5]}}),{c(){l=q("span"),ee(e.$$.fragment),this.h()},l(i){l=D(i,"SPAN",{class:!0});var u=T(l);le(e.$$.fragment,u),u.forEach(L),this.h()},h(){k(l,"class","icon-container svelte-17wusc4")},m(i,u){O(i,l,u),ae(e,l,null),f=!0},p(i,u){const h={};u[0]&32&&(h.name=i[5]),e.$set(h)},i(i){f||(N(e.$$.fragment,i),f=!0)},o(i){A(e.$$.fragment,i),f=!1},d(i){i&&L(l),ne(e)}}}function me(a){let l,e;return{c(){l=q("div"),e=X(a[7]),this.h()},l(f){l=D(f,"DIV",{class:!0});var i=T(l);e=Y(i,a[7]),i.forEach(L),this.h()},h(){k(l,"class","suffix svelte-17wusc4")},m(f,i){O(f,l,i),E(l,e)},p(f,i){i[0]&128&&$(e,f[7])},d(f){f&&L(l)}}}function Ue(a){let l,e,f;return e=new ge({props:{label:a[23],icon:"close"}}),e.$on("click",a[27]),{c(){l=q("div"),ee(e.$$.fragment),this.h()},l(i){l=D(i,"DIV",{class:!0,"data-testid":!0});var u=T(l);le(e.$$.fragment,u),u.forEach(L),this.h()},h(){k(l,"class","clear-icon-container svelte-17wusc4"),k(l,"data-testid","clear-input")},m(i,u){O(i,l,u),ae(e,l,null),f=!0},p(i,u){const h={};u[0]&8388608&&(h.label=i[23]),e.$set(h)},i(i){f||(N(e.$$.fragment,i),f=!0)},o(i){A(e.$$.fragment,i),f=!1},d(i){i&&L(l),ne(e)}}}function ze(a){let l,e,f;return e=new _e({props:{name:"lock"}}),{c(){l=q("div"),ee(e.$$.fragment),this.h()},l(i){l=D(i,"DIV",{class:!0});var u=T(l);le(e.$$.fragment,u),u.forEach(L),this.h()},h(){k(l,"class","flex h-full w-9 items-center justify-center")},m(i,u){O(i,l,u),ae(e,l,null),f=!0},p:Ce,i(i){f||(N(e.$$.fragment,i),f=!0)},o(i){A(e.$$.fragment,i),f=!1},d(i){i&&L(l),ne(e)}}}function Ke(a){let l,e,f;return e=new ge({props:{label:a[22],icon:a[25]?"checkmark":"copy"}}),e.$on("click",a[39]),{c(){l=q("div"),ee(e.$$.fragment),this.h()},l(i){l=D(i,"DIV",{class:!0});var u=T(l);le(e.$$.fragment,u),u.forEach(L),this.h()},h(){k(l,"class","copy-icon-container svelte-17wusc4")},m(i,u){O(i,l,u),ae(e,l,null),f=!0},p(i,u){const h={};u[0]&4194304&&(h.label=i[22]),u[0]&33554432&&(h.icon=i[25]?"checkmark":"copy"),e.$set(h)},i(i){f||(N(e.$$.fragment,i),f=!0)},o(i){A(e.$$.fragment,i),f=!1},d(i){i&&L(l),ne(e)}}}function be(a){let l,e,f=a[1].length+"",i,u,h;return{c(){l=q("span"),e=q("span"),i=X(f),u=X(" / "),h=X(a[15]),this.h()},l(o){l=D(o,"SPAN",{class:!0});var b=T(l);e=D(b,"SPAN",{class:!0});var F=T(e);i=Y(F,f),F.forEach(L),u=Y(b," / "),h=Y(b,a[15]),b.forEach(L),this.h()},h(){k(e,"class","text-blue-700 svelte-17wusc4"),c(e,"warn",a[15]-a[1].length<=5),c(e,"error",a[15]===a[1].length),k(l,"class","count svelte-17wusc4")},m(o,b){O(o,l,b),E(l,e),E(e,i),E(l,u),E(l,h)},p(o,b){b[0]&2&&f!==(f=o[1].length+"")&&$(i,f),b[0]&32770&&c(e,"warn",o[15]-o[1].length<=5),b[0]&32770&&c(e,"error",o[15]===o[1].length),b[0]&32768&&$(h,o[15])},d(o){o&&L(l)}}}function Me(a){let l,e,f,i,u,h,o,b,F,H,_,g,C,P,V,B,j,U,z,r,Q,y,d=a[5]&&de(a),Z=[{class:"m-2 block w-full bg-white focus:outline-none"},{disabled:a[0]},{"data-lpignore":"true"},{maxlength:b=a[15]>0?a[15]:void 0},{placeholder:a[6]},{id:a[2]},{name:a[8]},{spellcheck:a[16]},{required:a[21]},{autocomplete:a[12]},a[30]],K={};for(let t=0;t{d=null}),ce()),ue(o,K=Pe(Z,[{class:"m-2 block w-full bg-white focus:outline-none"},(!r||s[0]&1)&&{disabled:t[0]},{"data-lpignore":"true"},(!r||s[0]&32768&&b!==(b=t[15]>0?t[15]:void 0))&&{maxlength:b},(!r||s[0]&64)&&{placeholder:t[6]},(!r||s[0]&4)&&{id:t[2]},(!r||s[0]&256)&&{name:t[8]},(!r||s[0]&65536)&&{spellcheck:t[16]},(!r||s[0]&2097152)&&{required:t[21]},(!r||s[0]&4096)&&{autocomplete:t[12]},s[0]&1073741824&&t[30]])),s[0]&2&&o.value!==t[1]&&oe(o,t[1]),c(o,"disabled",t[0]),c(o,"svelte-17wusc4",!0),t[7]?m?m.p(t,s):(m=me(t),m.c(),m.m(u,H)):m&&(m.d(1),m=null);let S=_;_=p(t),_===S?~_&&R[_].p(t,s):(g&&(re(),A(R[S],1,1,()=>{R[S]=null}),ce()),~_?(g=R[_],g?g.p(t,s):(g=R[_]=w[_](t),g.c()),N(g,1),g.m(u,C)):g=null),t[15]&&!t[7]&&!t[0]?v?v.p(t,s):(v=be(t),v.c(),v.m(u,null)):v&&(v.d(1),v=null),(!r||s[0]&2048&&P!==(P="input-container "+t[11]+" svelte-17wusc4"))&&k(u,"class",P),(!r||s[0]&2049)&&c(u,"disabled",t[0]),(!r||s[0]&1050624)&&c(u,"error",t[20]),(!r||s[0]&133248)&&c(u,"unroundRight",t[17]??t[7]),(!r||s[0]&264192)&&c(u,"unroundLeft",t[18]),(!r||s[0]&526336)&&c(u,"noBorder",t[19]),(!r||s[0]&10240)&&c(u,"invalid",!t[13]),(!r||s[0]&16384)&&$(j,t[14]),(!r||s[0]&1048576&&U!==(U=t[20]?"alert":null))&&k(B,"role",U),(!r||s[0]&8192)&&c(B,"invalid",!t[13]),(!r||s[0]&1048576)&&c(B,"error",t[20]),(!r||s[0]&16384)&&c(B,"hidden",!t[14]),(!r||s[0]&16777216&&z!==(z=se(t[24])+" svelte-17wusc4"))&&k(l,"class",z)},i(t){r||(N(d),N(g),r=!0)},o(t){A(d),A(g),r=!1},d(t){t&&L(l),d&&d.d(),m&&m.d(),~_&&R[_].d(),v&&v.d(),Q=!1,Ve(y)}}}function Oe(a,l,e){const f=["id","value","label","labelHidden","icon","placeholder","suffix","name","copyable","disabled","clearable","theme","autocomplete","valid","hintText","maxLength","spellcheck","unroundRight","unroundLeft","noBorder","autoFocus","error","required","copyButtonLabel","clearButtonLabel","class"];let i=he(l,f),u,{id:h}=l,{value:o}=l,{label:b}=l,{labelHidden:F=!1}=l,{icon:H=null}=l,{placeholder:_=""}=l,{suffix:g=""}=l,{name:C=h}=l,{copyable:P=!1}=l,{disabled:V=!1}=l,{clearable:B=!1}=l,{theme:j="light"}=l,{autocomplete:U="off"}=l,{valid:z=!0}=l,{hintText:r=""}=l,{maxLength:Q=0}=l,{spellcheck:y=null}=l,{unroundRight:d=!1}=l,{unroundLeft:Z=!1}=l,{noBorder:K=!1}=l,{autoFocus:m=!1}=l,{error:w=!1}=l,{required:R=!1}=l,{copyButtonLabel:p=""}=l,{clearButtonLabel:v=""}=l,{class:t=""}=l;function s(n){m&&n&&n.focus()}const S=Se();function I(){e(1,o=""),S("clear",{})}const{copy:x,copied:ie}=je();Ae(a,ie,n=>e(25,u=n));function ve(n){W.call(this,a,n)}function ke(n){W.call(this,a,n)}function Le(n){W.call(this,a,n)}function Be(n){W.call(this,a,n)}function Ee(n){W.call(this,a,n)}function Ie(n){W.call(this,a,n)}function qe(){o=this.value,e(1,o)}const De=n=>x(n,o);return a.$$set=n=>{l=te(te({},l),He(n)),e(30,i=he(l,f)),"id"in n&&e(2,h=n.id),"value"in n&&e(1,o=n.value),"label"in n&&e(3,b=n.label),"labelHidden"in n&&e(4,F=n.labelHidden),"icon"in n&&e(5,H=n.icon),"placeholder"in n&&e(6,_=n.placeholder),"suffix"in n&&e(7,g=n.suffix),"name"in n&&e(8,C=n.name),"copyable"in n&&e(9,P=n.copyable),"disabled"in n&&e(0,V=n.disabled),"clearable"in n&&e(10,B=n.clearable),"theme"in n&&e(11,j=n.theme),"autocomplete"in n&&e(12,U=n.autocomplete),"valid"in n&&e(13,z=n.valid),"hintText"in n&&e(14,r=n.hintText),"maxLength"in n&&e(15,Q=n.maxLength),"spellcheck"in n&&e(16,y=n.spellcheck),"unroundRight"in n&&e(17,d=n.unroundRight),"unroundLeft"in n&&e(18,Z=n.unroundLeft),"noBorder"in n&&e(19,K=n.noBorder),"autoFocus"in n&&e(31,m=n.autoFocus),"error"in n&&e(20,w=n.error),"required"in n&&e(21,R=n.required),"copyButtonLabel"in n&&e(22,p=n.copyButtonLabel),"clearButtonLabel"in n&&e(23,v=n.clearButtonLabel),"class"in n&&e(24,t=n.class)},a.$$.update=()=>{a.$$.dirty[0]&513&&e(0,V=V||P)},[V,o,h,b,F,H,_,g,C,P,B,j,U,z,r,Q,y,d,Z,K,w,R,p,v,t,u,s,I,x,ie,i,m,ve,ke,Le,Be,Ee,Ie,qe,De]}class We extends Re{constructor(l){super(),Te(this,l,Oe,Me,Fe,{id:2,value:1,label:3,labelHidden:4,icon:5,placeholder:6,suffix:7,name:8,copyable:9,disabled:0,clearable:10,theme:11,autocomplete:12,valid:13,hintText:14,maxLength:15,spellcheck:16,unroundRight:17,unroundLeft:18,noBorder:19,autoFocus:31,error:20,required:21,copyButtonLabel:22,clearButtonLabel:23,class:24},null,[-1,-1])}}export{We as I}; +import{S as Re,b as Te,a as Fe,N as te,m as q,w as X,c as G,p as D,q as T,x as Y,k as L,d as J,u as k,P as c,O as ue,Z as se,f as O,L as E,_ as oe,Q as M,$ as fe,a2 as Ne,y as $,j as N,z as re,g as A,h as ce,R as Pe,r as Ve,T as he,M as Se,K as Ae,U as He,C as ee,D as le,E as ae,F as ne,V as W,n as Ce}from"./index.4e2fcbc7.js";import{I as _e}from"./icon.e8aa24c8.js";import{c as je}from"./copy-to-clipboard.a310d1bd.js";import{I as ge}from"./icon-button.92948dd7.js";function de(a){let l,e,f;return e=new _e({props:{name:a[5]}}),{c(){l=q("span"),ee(e.$$.fragment),this.h()},l(i){l=D(i,"SPAN",{class:!0});var u=T(l);le(e.$$.fragment,u),u.forEach(L),this.h()},h(){k(l,"class","icon-container svelte-17wusc4")},m(i,u){O(i,l,u),ae(e,l,null),f=!0},p(i,u){const h={};u[0]&32&&(h.name=i[5]),e.$set(h)},i(i){f||(N(e.$$.fragment,i),f=!0)},o(i){A(e.$$.fragment,i),f=!1},d(i){i&&L(l),ne(e)}}}function me(a){let l,e;return{c(){l=q("div"),e=X(a[7]),this.h()},l(f){l=D(f,"DIV",{class:!0});var i=T(l);e=Y(i,a[7]),i.forEach(L),this.h()},h(){k(l,"class","suffix svelte-17wusc4")},m(f,i){O(f,l,i),E(l,e)},p(f,i){i[0]&128&&$(e,f[7])},d(f){f&&L(l)}}}function Ue(a){let l,e,f;return e=new ge({props:{label:a[23],icon:"close"}}),e.$on("click",a[27]),{c(){l=q("div"),ee(e.$$.fragment),this.h()},l(i){l=D(i,"DIV",{class:!0,"data-testid":!0});var u=T(l);le(e.$$.fragment,u),u.forEach(L),this.h()},h(){k(l,"class","clear-icon-container svelte-17wusc4"),k(l,"data-testid","clear-input")},m(i,u){O(i,l,u),ae(e,l,null),f=!0},p(i,u){const h={};u[0]&8388608&&(h.label=i[23]),e.$set(h)},i(i){f||(N(e.$$.fragment,i),f=!0)},o(i){A(e.$$.fragment,i),f=!1},d(i){i&&L(l),ne(e)}}}function ze(a){let l,e,f;return e=new _e({props:{name:"lock"}}),{c(){l=q("div"),ee(e.$$.fragment),this.h()},l(i){l=D(i,"DIV",{class:!0});var u=T(l);le(e.$$.fragment,u),u.forEach(L),this.h()},h(){k(l,"class","flex h-full w-9 items-center justify-center")},m(i,u){O(i,l,u),ae(e,l,null),f=!0},p:Ce,i(i){f||(N(e.$$.fragment,i),f=!0)},o(i){A(e.$$.fragment,i),f=!1},d(i){i&&L(l),ne(e)}}}function Ke(a){let l,e,f;return e=new ge({props:{label:a[22],icon:a[25]?"checkmark":"copy"}}),e.$on("click",a[39]),{c(){l=q("div"),ee(e.$$.fragment),this.h()},l(i){l=D(i,"DIV",{class:!0});var u=T(l);le(e.$$.fragment,u),u.forEach(L),this.h()},h(){k(l,"class","copy-icon-container svelte-17wusc4")},m(i,u){O(i,l,u),ae(e,l,null),f=!0},p(i,u){const h={};u[0]&4194304&&(h.label=i[22]),u[0]&33554432&&(h.icon=i[25]?"checkmark":"copy"),e.$set(h)},i(i){f||(N(e.$$.fragment,i),f=!0)},o(i){A(e.$$.fragment,i),f=!1},d(i){i&&L(l),ne(e)}}}function be(a){let l,e,f=a[1].length+"",i,u,h;return{c(){l=q("span"),e=q("span"),i=X(f),u=X(" / "),h=X(a[15]),this.h()},l(o){l=D(o,"SPAN",{class:!0});var b=T(l);e=D(b,"SPAN",{class:!0});var F=T(e);i=Y(F,f),F.forEach(L),u=Y(b," / "),h=Y(b,a[15]),b.forEach(L),this.h()},h(){k(e,"class","text-blue-700 svelte-17wusc4"),c(e,"warn",a[15]-a[1].length<=5),c(e,"error",a[15]===a[1].length),k(l,"class","count svelte-17wusc4")},m(o,b){O(o,l,b),E(l,e),E(e,i),E(l,u),E(l,h)},p(o,b){b[0]&2&&f!==(f=o[1].length+"")&&$(i,f),b[0]&32770&&c(e,"warn",o[15]-o[1].length<=5),b[0]&32770&&c(e,"error",o[15]===o[1].length),b[0]&32768&&$(h,o[15])},d(o){o&&L(l)}}}function Me(a){let l,e,f,i,u,h,o,b,F,H,_,g,C,P,V,B,j,U,z,r,Q,y,d=a[5]&&de(a),Z=[{class:"m-2 block w-full bg-white focus:outline-none"},{disabled:a[0]},{"data-lpignore":"true"},{maxlength:b=a[15]>0?a[15]:void 0},{placeholder:a[6]},{id:a[2]},{name:a[8]},{spellcheck:a[16]},{required:a[21]},{autocomplete:a[12]},a[30]],K={};for(let t=0;t{d=null}),ce()),ue(o,K=Pe(Z,[{class:"m-2 block w-full bg-white focus:outline-none"},(!r||s[0]&1)&&{disabled:t[0]},{"data-lpignore":"true"},(!r||s[0]&32768&&b!==(b=t[15]>0?t[15]:void 0))&&{maxlength:b},(!r||s[0]&64)&&{placeholder:t[6]},(!r||s[0]&4)&&{id:t[2]},(!r||s[0]&256)&&{name:t[8]},(!r||s[0]&65536)&&{spellcheck:t[16]},(!r||s[0]&2097152)&&{required:t[21]},(!r||s[0]&4096)&&{autocomplete:t[12]},s[0]&1073741824&&t[30]])),s[0]&2&&o.value!==t[1]&&oe(o,t[1]),c(o,"disabled",t[0]),c(o,"svelte-17wusc4",!0),t[7]?m?m.p(t,s):(m=me(t),m.c(),m.m(u,H)):m&&(m.d(1),m=null);let S=_;_=p(t),_===S?~_&&R[_].p(t,s):(g&&(re(),A(R[S],1,1,()=>{R[S]=null}),ce()),~_?(g=R[_],g?g.p(t,s):(g=R[_]=w[_](t),g.c()),N(g,1),g.m(u,C)):g=null),t[15]&&!t[7]&&!t[0]?v?v.p(t,s):(v=be(t),v.c(),v.m(u,null)):v&&(v.d(1),v=null),(!r||s[0]&2048&&P!==(P="input-container "+t[11]+" svelte-17wusc4"))&&k(u,"class",P),(!r||s[0]&2049)&&c(u,"disabled",t[0]),(!r||s[0]&1050624)&&c(u,"error",t[20]),(!r||s[0]&133248)&&c(u,"unroundRight",t[17]??t[7]),(!r||s[0]&264192)&&c(u,"unroundLeft",t[18]),(!r||s[0]&526336)&&c(u,"noBorder",t[19]),(!r||s[0]&10240)&&c(u,"invalid",!t[13]),(!r||s[0]&16384)&&$(j,t[14]),(!r||s[0]&1048576&&U!==(U=t[20]?"alert":null))&&k(B,"role",U),(!r||s[0]&8192)&&c(B,"invalid",!t[13]),(!r||s[0]&1048576)&&c(B,"error",t[20]),(!r||s[0]&16384)&&c(B,"hidden",!t[14]),(!r||s[0]&16777216&&z!==(z=se(t[24])+" svelte-17wusc4"))&&k(l,"class",z)},i(t){r||(N(d),N(g),r=!0)},o(t){A(d),A(g),r=!1},d(t){t&&L(l),d&&d.d(),m&&m.d(),~_&&R[_].d(),v&&v.d(),Q=!1,Ve(y)}}}function Oe(a,l,e){const f=["id","value","label","labelHidden","icon","placeholder","suffix","name","copyable","disabled","clearable","theme","autocomplete","valid","hintText","maxLength","spellcheck","unroundRight","unroundLeft","noBorder","autoFocus","error","required","copyButtonLabel","clearButtonLabel","class"];let i=he(l,f),u,{id:h}=l,{value:o}=l,{label:b}=l,{labelHidden:F=!1}=l,{icon:H=null}=l,{placeholder:_=""}=l,{suffix:g=""}=l,{name:C=h}=l,{copyable:P=!1}=l,{disabled:V=!1}=l,{clearable:B=!1}=l,{theme:j="light"}=l,{autocomplete:U="off"}=l,{valid:z=!0}=l,{hintText:r=""}=l,{maxLength:Q=0}=l,{spellcheck:y=null}=l,{unroundRight:d=!1}=l,{unroundLeft:Z=!1}=l,{noBorder:K=!1}=l,{autoFocus:m=!1}=l,{error:w=!1}=l,{required:R=!1}=l,{copyButtonLabel:p=""}=l,{clearButtonLabel:v=""}=l,{class:t=""}=l;function s(n){m&&n&&n.focus()}const S=Se();function I(){e(1,o=""),S("clear",{})}const{copy:x,copied:ie}=je();Ae(a,ie,n=>e(25,u=n));function ve(n){W.call(this,a,n)}function ke(n){W.call(this,a,n)}function Le(n){W.call(this,a,n)}function Be(n){W.call(this,a,n)}function Ee(n){W.call(this,a,n)}function Ie(n){W.call(this,a,n)}function qe(){o=this.value,e(1,o)}const De=n=>x(n,o);return a.$$set=n=>{l=te(te({},l),He(n)),e(30,i=he(l,f)),"id"in n&&e(2,h=n.id),"value"in n&&e(1,o=n.value),"label"in n&&e(3,b=n.label),"labelHidden"in n&&e(4,F=n.labelHidden),"icon"in n&&e(5,H=n.icon),"placeholder"in n&&e(6,_=n.placeholder),"suffix"in n&&e(7,g=n.suffix),"name"in n&&e(8,C=n.name),"copyable"in n&&e(9,P=n.copyable),"disabled"in n&&e(0,V=n.disabled),"clearable"in n&&e(10,B=n.clearable),"theme"in n&&e(11,j=n.theme),"autocomplete"in n&&e(12,U=n.autocomplete),"valid"in n&&e(13,z=n.valid),"hintText"in n&&e(14,r=n.hintText),"maxLength"in n&&e(15,Q=n.maxLength),"spellcheck"in n&&e(16,y=n.spellcheck),"unroundRight"in n&&e(17,d=n.unroundRight),"unroundLeft"in n&&e(18,Z=n.unroundLeft),"noBorder"in n&&e(19,K=n.noBorder),"autoFocus"in n&&e(31,m=n.autoFocus),"error"in n&&e(20,w=n.error),"required"in n&&e(21,R=n.required),"copyButtonLabel"in n&&e(22,p=n.copyButtonLabel),"clearButtonLabel"in n&&e(23,v=n.clearButtonLabel),"class"in n&&e(24,t=n.class)},a.$$.update=()=>{a.$$.dirty[0]&513&&e(0,V=V||P)},[V,o,h,b,F,H,_,g,C,P,B,j,U,z,r,Q,y,d,Z,K,w,R,p,v,t,u,s,I,x,ie,i,m,ve,ke,Le,Be,Ee,Ie,qe,De]}class We extends Re{constructor(l){super(),Te(this,l,Oe,Me,Fe,{id:2,value:1,label:3,labelHidden:4,icon:5,placeholder:6,suffix:7,name:8,copyable:9,disabled:0,clearable:10,theme:11,autocomplete:12,valid:13,hintText:14,maxLength:15,spellcheck:16,unroundRight:17,unroundLeft:18,noBorder:19,autoFocus:31,error:20,required:21,copyButtonLabel:22,clearButtonLabel:23,class:24},null,[-1,-1])}}export{We as I}; diff --git a/ui/assets/local/_app/immutable/chunks/logo.ea390932.js b/ui/assets/local/_app/immutable/chunks/logo.8c0e7632.js similarity index 95% rename from ui/assets/local/_app/immutable/chunks/logo.ea390932.js rename to ui/assets/local/_app/immutable/chunks/logo.8c0e7632.js index fa6864c0b9..931a5b56dd 100644 --- a/ui/assets/local/_app/immutable/chunks/logo.ea390932.js +++ b/ui/assets/local/_app/immutable/chunks/logo.8c0e7632.js @@ -1,3 +1,3 @@ -import{S as v,b,a as g,m as f,C as k,w as $,p as m,q as p,D as x,k as d,x as w,u as r,f as y,L as _,E as F,n as L,j as E,g as I,F as D,K as q}from"./index.4e2fcbc7.js";import{p as C}from"./stores.14a97433.js";import{I as G}from"./icon.e8aa24c8.js";function R(c){let e,s,n,t,o,i;return t=new G({props:{class:"text-purple-200",name:"feedback",height:12,width:12}}),{c(){e=f("a"),s=f("div"),n=f("div"),k(t.$$.fragment),o=$(` +import{S as v,b,a as g,m as f,C as k,w as $,p as m,q as p,D as x,k as d,x as w,u as r,f as y,L as _,E as F,n as L,j as E,g as I,F as D,K as q}from"./index.4e2fcbc7.js";import{p as C}from"./stores.0e7b7e35.js";import{I as G}from"./icon.e8aa24c8.js";function R(c){let e,s,n,t,o,i;return t=new G({props:{class:"text-purple-200",name:"feedback",height:12,width:12}}),{c(){e=f("a"),s=f("div"),n=f("div"),k(t.$$.fragment),o=$(` Give Feedback`),this.h()},l(a){e=m(a,"A",{href:!0,target:!0,"data-testid":!0,rel:!0});var l=p(e);s=m(l,"DIV",{class:!0});var u=p(s);n=m(u,"DIV",{class:!0});var h=p(n);x(t.$$.fragment,h),h.forEach(d),o=w(u,` Give Feedback`),u.forEach(d),l.forEach(d),this.h()},h(){r(n,"class","feedback-icon svelte-x1notn"),r(s,"class","feedback-button svelte-x1notn"),r(e,"href",c[0]),r(e,"target","_blank"),r(e,"data-testid","give-feedback"),r(e,"rel","noreferrer")},m(a,l){y(a,e,l),_(e,s),_(s,n),F(t,n,null),_(s,o),i=!0},p:L,i(a){i||(E(t.$$.fragment,a),i=!0)},o(a){I(t.$$.fragment,a),i=!1},d(a){a&&d(e),D(t)}}}function S(c,e,s){let n;q(c,C,a=>s(3,n=a));var t,o;return[((o=(t=n.data)===null||t===void 0?void 0:t.settings)===null||o===void 0?void 0:o.feedbackURL)||"https://github.com/temporalio/ui/issues/new/choose"]}class A extends v{constructor(e){super(),b(this,e,S,R,g,{})}}const B=""+new URL("../assets/logo.44c7bc2a.svg",import.meta.url).href;export{A as F,B as L}; diff --git a/ui/assets/local/_app/immutable/chunks/menu.69cccace.js b/ui/assets/local/_app/immutable/chunks/menu.716bcd2f.js similarity index 99% rename from ui/assets/local/_app/immutable/chunks/menu.69cccace.js rename to ui/assets/local/_app/immutable/chunks/menu.716bcd2f.js index 241027783c..a73b6ecd2e 100644 --- a/ui/assets/local/_app/immutable/chunks/menu.69cccace.js +++ b/ui/assets/local/_app/immutable/chunks/menu.716bcd2f.js @@ -1 +1 @@ -import{S as $,b as ee,a as te,G as q,N as S,m as P,p as y,q as U,k as D,O as z,f as H,a2 as Re,Q as Y,H as K,I as B,J as j,R as x,j as L,g as A,r as ue,T as X,M as oe,ae as Pe,U as le,n as ye,s as Ue,a5 as G,e as he,z as Z,h as F,af as re,K as W,c as J,d as Q,u as w,P as I,L as R,$ as fe,C as ce,D as de,E as me,F as _e,w as pe,x as Ce,y as Ae,ag as Ve,ah as qe,a3 as Ke,a4 as Be,A as je}from"./index.4e2fcbc7.js";import{B as ze}from"./badge.96e01a15.js";import{I as De}from"./icon.e8aa24c8.js";import{f as He}from"./index.6509bfd4.js";import{w as ie}from"./singletons.fb5f332e.js";function Ge(t){const e=n=>{t&&!t.contains(n.target)&&!n.defaultPrevented&&t.dispatchEvent(new CustomEvent("click-outside"))};return document.addEventListener("click",e,!0),{destroy(){document.removeEventListener("click",e,!0)}}}const Je=t=>({open:t&2}),be=t=>({open:t[1]});function Qe(t){let e,n,l,s,a;const _=t[5].default,m=q(_,t,t[4],be);let f=[{class:n="relative "+t[0]},t[3]],i={};for(let d=0;d(_(),_=Ue(b,k=>n(6,a=k)),b);t.$$.on_destroy.push(()=>_());let{$$slots:f={},$$scope:i}=e,{class:d=""}=e,{open:b=ie(!1)}=e;m();const o=ie(!1),h=ie(null),T=oe(),E=()=>{T("close"),G(b,a=!1,a)};return Pe(ne,{open:b,keepOpen:o,menuElement:h}),t.$$set=k=>{e=S(S({},e),le(k)),n(3,s=X(e,l)),"class"in k&&n(0,d=k.class),"open"in k&&m(n(1,b=k.open)),"$$scope"in k&&n(4,i=k.$$scope)},[d,b,E,s,i,f]}class mt extends ${constructor(e){super(),ee(this,e,Xe,Qe,te,{class:0,open:1})}}const We=t=>({}),ge=t=>({}),Ye=t=>({}),ke=t=>({});function Ze(t){let e,n,l,s,a,_,m,f,i,d,b,o,h;const T=t[13].leading,E=q(T,t,t[12],ke),k=[xe,we],p=[];function M(c,O){return c[5]?0:1}s=M(t),a=p[s]=k[s](t);let g=t[1]!==void 0&&ve(t);const N=t[13].trailing,C=q(N,t,t[12],ge);let u=[{role:"menuitem"},{class:f="menu-item "+t[0]},{"aria-hidden":i=t[3]?"true":"false"},{"aria-disabled":t[3]},{tabindex:d=t[3]?-1:0},t[11]],r={};for(let c=0;c{p[V]=null}),F(),a=p[s],a?a.p(c,O):(a=p[s]=k[s](c),a.c()),L(a,1),a.m(l,_)),c[1]!==void 0?g?(g.p(c,O),O&2&&L(g,1)):(g=ve(c),g.c(),L(g,1),g.m(l,null)):g&&(Z(),A(g,1,1,()=>{g=null}),F()),(!b||O&2)&&I(l,"selected",c[1]),(!b||O&64)&&I(l,"centered",c[6]),C&&C.p&&(!b||O&4096)&&K(C,N,c,c[12],b?j(N,c[12],O,We):B(c[12]),ge),z(e,r=x(u,[{role:"menuitem"},(!b||O&1&&f!==(f="menu-item "+c[0]))&&{class:f},(!b||O&8&&i!==(i=c[3]?"true":"false"))&&{"aria-hidden":i},(!b||O&8)&&{"aria-disabled":c[3]},(!b||O&8&&d!==(d=c[3]?-1:0))&&{tabindex:d},O&2048&&c[11]])),I(e,"destructive",c[2]),I(e,"disabled",c[3]),I(e,"svelte-gco0cg",!0)},i(c){b||(L(E,c),L(a),L(g),L(C,c),b=!0)},o(c){A(E,c),A(a),A(g),A(C,c),b=!1},d(c){c&&D(e),E&&E.d(c),p[s].d(),g&&g.d(),C&&C.d(c),o=!1,ue(h)}}}function Fe(t){let e,n,l,s,a,_,m;const f=t[13].default,i=q(f,t,t[12],null);let d=[{href:t[4]},{role:"menuitem"},{class:n="menu-item "+t[0]},{"aria-hidden":l=t[3]?"true":"false"},{"aria-disabled":t[3]},{tabindex:s=t[3]?-1:0},t[11]],b={};for(let o=0;o{l=null}),F())},i(s){n||(L(l),n=!0)},o(s){A(l),n=!1},d(s){s&&D(e),l&&l.d()}}}function Ee(t){let e,n;return e=new De({props:{name:"checkmark"}}),{c(){ce(e.$$.fragment)},l(l){de(e.$$.fragment,l)},m(l,s){me(e,l,s),n=!0},i(l){n||(L(e.$$.fragment,l),n=!0)},o(l){A(e.$$.fragment,l),n=!1},d(l){_e(e,l)}}}function $e(t){let e,n,l,s;const a=[Fe,Ze],_=[];function m(f,i){return f[4]?0:1}return e=m(t),n=_[e]=a[e](t),{c(){n.c(),l=he()},l(f){n.l(f),l=he()},m(f,i){_[e].m(f,i),H(f,l,i),s=!0},p(f,[i]){let d=e;e=m(f),e===d?_[e].p(f,i):(Z(),A(_[d],1,1,()=>{_[d]=null}),F(),n=_[e],n?n.p(f,i):(n=_[e]=a[e](f),n.c()),L(n,1),n.m(l.parentNode,l))},i(f){s||(L(n),s=!0)},o(f){A(n),s=!1},d(f){_[e].d(f),f&&D(l)}}}const ae='input, li[role="option"]:not([aria-disabled="true"]), li[role="menuitem"]:not([aria-disabled="true"])';function et(t,e,n){const l=["class","selected","destructive","disabled","href","description","centered"];let s=X(e,l),a,_,{$$slots:m={},$$scope:f}=e,{class:i=""}=e,{selected:d=void 0}=e,{destructive:b=!1}=e,{disabled:o=!1}=e,{href:h=null}=e,{description:T=null}=e,{centered:E=!1}=e;const{keepOpen:k,open:p}=re(ne);W(t,k,r=>n(15,_=r)),W(t,p,r=>n(14,a=r));const M=oe(),g=r=>{switch(r.key){case"Escape":G(p,a=!1,a);break;case"ArrowDown":case"ArrowRight":N(r.currentTarget);break;case"ArrowUp":case"ArrowLeft":C(r.currentTarget);break;case" ":case"Enter":M("click"),_||G(p,a=!1,a);break}},N=r=>{let c=r.nextElementSibling;for(;c&&!c.matches(ae);)c=c.nextElementSibling;c&&c instanceof HTMLLIElement&&c.focus()},C=r=>{let c=r.previousElementSibling;for(;c&&!c.matches(ae);)c=c.previousElementSibling;c&&c instanceof HTMLLIElement&&c.focus()},u=()=>{_||G(p,a=!1,a),M("click")};return t.$$set=r=>{e=S(S({},e),le(r)),n(11,s=X(e,l)),"class"in r&&n(0,i=r.class),"selected"in r&&n(1,d=r.selected),"destructive"in r&&n(2,b=r.destructive),"disabled"in r&&n(3,o=r.disabled),"href"in r&&n(4,h=r.href),"description"in r&&n(5,T=r.description),"centered"in r&&n(6,E=r.centered),"$$scope"in r&&n(12,f=r.$$scope)},[i,d,b,o,h,T,E,k,p,g,u,s,f,m]}class _t extends ${constructor(e){super(),ee(this,e,et,$e,te,{class:0,selected:1,destructive:2,disabled:3,href:4,description:5,centered:6})}}const tt=t=>({}),Ie=t=>({}),lt=t=>({}),Le=t=>({});function Oe(t){let e,n,l;return n=new De({props:{name:t[13]?"chevron-up":"chevron-down"}}),{c(){e=P("div"),ce(n.$$.fragment),this.h()},l(s){e=y(s,"DIV",{class:!0});var a=U(e);de(n.$$.fragment,a),a.forEach(D),this.h()},h(){w(e,"class","flex")},m(s,a){H(s,e,a),me(n,e,null),l=!0},p(s,a){const _={};a&8192&&(_.name=s[13]?"chevron-up":"chevron-down"),n.$set(_)},i(s){l||(L(n.$$.fragment,s),l=!0)},o(s){A(n.$$.fragment,s),l=!1},d(s){s&&D(e),_e(n)}}}function Me(t){let e,n;return e=new ze({props:{class:"absolute top-0 right-0 origin-bottom-left translate-y-[-10px] translate-x-[10px]",type:"count",$$slots:{default:[nt]},$$scope:{ctx:t}}}),{c(){ce(e.$$.fragment)},l(l){de(e.$$.fragment,l)},m(l,s){me(e,l,s),n=!0},p(l,s){const a={};s&2097156&&(a.$$scope={dirty:s,ctx:l}),e.$set(a)},i(l){n||(L(e.$$.fragment,l),n=!0)},o(l){A(e.$$.fragment,l),n=!1},d(l){_e(e,l)}}}function nt(t){let e;return{c(){e=pe(t[2])},l(n){e=Ce(n,t[2])},m(n,l){H(n,e,l)},p(n,l){l&4&&Ae(e,n[2])},d(n){n&&D(e)}}}function st(t){let e,n,l,s,a,_,m,f,i,d,b;const o=t[20].leading,h=q(o,t,t[21],Le),T=t[20].default,E=q(T,t,t[21],null);let k=t[4]&&Oe(t);const p=t[20].trailing,M=q(p,t,t[21],Ie);let g=t[2]>0&&Me(t),N=[{id:t[5]},{disabled:t[3]},{type:"button"},{"aria-haspopup":m=!t[3]},{"aria-controls":t[1]},{"aria-expanded":t[13]},{"aria-label":t[6]},{class:f="menu-button "+t[10]+" "+t[0]},t[18]],C={};for(let u=0;u{k=null}),F()),M&&M.p&&(!i||r&2097152)&&K(M,p,u,u[21],i?j(p,u[21],r,tt):B(u[21]),Ie),u[2]>0?g?(g.p(u,r),r&4&&L(g,1)):(g=Me(u),g.c(),L(g,1),g.m(e,null)):g&&(Z(),A(g,1,1,()=>{g=null}),F()),z(e,C=x(N,[(!i||r&32)&&{id:u[5]},(!i||r&8)&&{disabled:u[3]},{type:"button"},(!i||r&8&&m!==(m=!u[3]))&&{"aria-haspopup":m},(!i||r&2)&&{"aria-controls":u[1]},(!i||r&8192)&&{"aria-expanded":u[13]},(!i||r&64)&&{"aria-label":u[6]},(!i||r&1025&&f!==(f="menu-button "+u[10]+" "+u[0]))&&{class:f},r&262144&&u[18]])),I(e,"unroundLeft",u[9]),I(e,"unroundRight",u[8]),I(e,"active",u[11]),I(e,"unround",u[7]),I(e,"round",u[12]),I(e,"svelte-etc7wv",!0)},i(u){i||(L(h,u),L(E,u),L(k),L(M,u),L(g),i=!0)},o(u){A(h,u),A(E,u),A(k),A(M,u),A(g),i=!1},d(u){u&&D(e),h&&h.d(u),E&&E.d(u),k&&k.d(),M&&M.d(u),g&&g.d(),d=!1,ue(b)}}}function it(t,e,n){const l=["class","controls","count","disabled","hasIndicator","id","label","unround","unroundRight","unroundLeft","variant","active","round"];let s=X(e,l),a,_,{$$slots:m={},$$scope:f}=e;const i=qe(m);let{class:d=""}=e,{controls:b}=e,{count:o=0}=e,{disabled:h=!1}=e,{hasIndicator:T=!1}=e,{id:E=null}=e,{label:k=null}=e,{unround:p=!1}=e,{unroundRight:M=!1}=e,{unroundLeft:g=!1}=e,{variant:N="secondary"}=e,{active:C=!1}=e,{round:u=!1}=e;const r=oe(),{open:c,menuElement:O}=re(ne);W(t,c,v=>n(13,_=v)),W(t,O,v=>n(22,a=v));const V=()=>{c.update(v=>{let se=v;return h||(se=!v),r("click",{open:se}),se})},Ne=v=>{switch(v.key){case"Escape":G(c,_=!1,_);break;case"ArrowDown":v.preventDefault(),_?Se():G(c,_=!0,_);break}},Se=()=>{const v=Array.from(a.querySelectorAll(ae));v&&v[0]&&requestAnimationFrame(()=>v[0].focus())};return t.$$set=v=>{e=S(S({},e),le(v)),n(18,s=X(e,l)),"class"in v&&n(0,d=v.class),"controls"in v&&n(1,b=v.controls),"count"in v&&n(2,o=v.count),"disabled"in v&&n(3,h=v.disabled),"hasIndicator"in v&&n(4,T=v.hasIndicator),"id"in v&&n(5,E=v.id),"label"in v&&n(6,k=v.label),"unround"in v&&n(7,p=v.unround),"unroundRight"in v&&n(8,M=v.unroundRight),"unroundLeft"in v&&n(9,g=v.unroundLeft),"variant"in v&&n(10,N=v.variant),"active"in v&&n(11,C=v.active),"round"in v&&n(12,u=v.round),"$$scope"in v&&n(21,f=v.$$scope)},[d,b,o,h,T,E,k,p,M,g,N,C,u,_,c,O,V,Ne,s,i,m,f]}class ht extends ${constructor(e){super(),ee(this,e,it,st,te,{class:0,controls:1,count:2,disabled:3,hasIndicator:4,id:5,label:6,unround:7,unroundRight:8,unroundLeft:9,variant:10,active:11,round:12})}}const Te=t=>Array.from(t.querySelectorAll('[href], button, textarea, input, div[contentEditable="true"], select, [tabindex][tabindex="0"]')).filter(e=>!e.hasAttribute("disabled")&&e.getAttribute("tabindex")!=="-1"),bt=(t,e)=>{let n,l;const s=i=>{i.key==="Tab"&&(i.shiftKey?document.activeElement===n&&(l.focus(),i.preventDefault()):document.activeElement===l&&(n.focus(),i.preventDefault()))},a=(i=!1)=>{if(e===!1)return;const d=Te(t);n=d[0],l=d[d.length-1],i||n==null||n.focus(),n==null||n.addEventListener("keydown",s),l==null||l.addEventListener("keydown",s)},_=()=>{n==null||n.removeEventListener("keydown",s),l==null||l.removeEventListener("keydown",s)},m=(i,d)=>(i.length&&(_(),a(!0)),d);return new MutationObserver(m).observe(t,{childList:!0,subtree:!0}),a(),{update(i){e=i,i?a():_()},destroy(){_()}}};function at(t){let e,n,l,s,a,_,m;const f=t[13].default,i=q(f,t,t[12],null);let d=[{role:"menu"},{class:n="menu "+t[3]+" "+t[1]},{"aria-labelledby":t[2]},{tabindex:l=-1},{id:t[2]},t[9]],b={};for(let o=0;o{s=Be(e,He,{duration:100}),s.start()}),a=!0)},o(o){A(i,o),a=!1},d(o){o&&D(e),i&&i.d(o),t[14](null),_=!1,m()}}}function ut(t,e,n){let l,s;const a=["class","id","keepOpen","position","menuElement"];let _=X(e,a),m,f,i,{$$slots:d={},$$scope:b}=e,{class:o=""}=e,{id:h}=e,{keepOpen:T=!1}=e,{position:E="left"}=e,{menuElement:k=null}=e;const{keepOpen:p,menuElement:M,open:g}=re(ne);W(t,p,u=>n(16,f=u)),W(t,M,u=>n(17,i=u)),W(t,g,u=>n(4,m=u));const N=u=>{!f&&u.target===s&&G(g,m=!1,m)};function C(u){je[u?"unshift":"push"](()=>{k=u,n(0,k)})}return t.$$set=u=>{e=S(S({},e),le(u)),n(9,_=X(e,a)),"class"in u&&n(1,o=u.class),"id"in u&&n(2,h=u.id),"keepOpen"in u&&n(10,T=u.keepOpen),"position"in u&&n(3,E=u.position),"menuElement"in u&&n(0,k=u.menuElement),"$$scope"in u&&n(12,b=u.$$scope)},t.$$.update=()=>{t.$$.dirty&1024&&G(p,f=T,f),t.$$.dirty&1&&G(M,i=k,i),t.$$.dirty&1&&n(11,l=k?Te(k):[]),t.$$.dirty&2048&&(s=l[l.length-1])},[k,o,h,E,m,p,M,g,N,_,T,l,b,d,C]}class gt extends ${constructor(e){super(),ee(this,e,ut,at,te,{class:1,id:2,keepOpen:10,position:3,menuElement:0})}}export{mt as M,ht as a,gt as b,Ge as c,_t as d,bt as f}; +import{S as $,b as ee,a as te,G as q,N as S,m as P,p as y,q as U,k as D,O as z,f as H,a2 as Re,Q as Y,H as K,I as B,J as j,R as x,j as L,g as A,r as ue,T as X,M as oe,ae as Pe,U as le,n as ye,s as Ue,a5 as G,e as he,z as Z,h as F,af as re,K as W,c as J,d as Q,u as w,P as I,L as R,$ as fe,C as ce,D as de,E as me,F as _e,w as pe,x as Ce,y as Ae,ag as Ve,ah as qe,a3 as Ke,a4 as Be,A as je}from"./index.4e2fcbc7.js";import{B as ze}from"./badge.96e01a15.js";import{I as De}from"./icon.e8aa24c8.js";import{f as He}from"./index.6509bfd4.js";import{w as ie}from"./singletons.13b3836d.js";function Ge(t){const e=n=>{t&&!t.contains(n.target)&&!n.defaultPrevented&&t.dispatchEvent(new CustomEvent("click-outside"))};return document.addEventListener("click",e,!0),{destroy(){document.removeEventListener("click",e,!0)}}}const Je=t=>({open:t&2}),be=t=>({open:t[1]});function Qe(t){let e,n,l,s,a;const _=t[5].default,m=q(_,t,t[4],be);let f=[{class:n="relative "+t[0]},t[3]],i={};for(let d=0;d(_(),_=Ue(b,k=>n(6,a=k)),b);t.$$.on_destroy.push(()=>_());let{$$slots:f={},$$scope:i}=e,{class:d=""}=e,{open:b=ie(!1)}=e;m();const o=ie(!1),h=ie(null),T=oe(),E=()=>{T("close"),G(b,a=!1,a)};return Pe(ne,{open:b,keepOpen:o,menuElement:h}),t.$$set=k=>{e=S(S({},e),le(k)),n(3,s=X(e,l)),"class"in k&&n(0,d=k.class),"open"in k&&m(n(1,b=k.open)),"$$scope"in k&&n(4,i=k.$$scope)},[d,b,E,s,i,f]}class mt extends ${constructor(e){super(),ee(this,e,Xe,Qe,te,{class:0,open:1})}}const We=t=>({}),ge=t=>({}),Ye=t=>({}),ke=t=>({});function Ze(t){let e,n,l,s,a,_,m,f,i,d,b,o,h;const T=t[13].leading,E=q(T,t,t[12],ke),k=[xe,we],p=[];function M(c,O){return c[5]?0:1}s=M(t),a=p[s]=k[s](t);let g=t[1]!==void 0&&ve(t);const N=t[13].trailing,C=q(N,t,t[12],ge);let u=[{role:"menuitem"},{class:f="menu-item "+t[0]},{"aria-hidden":i=t[3]?"true":"false"},{"aria-disabled":t[3]},{tabindex:d=t[3]?-1:0},t[11]],r={};for(let c=0;c{p[V]=null}),F(),a=p[s],a?a.p(c,O):(a=p[s]=k[s](c),a.c()),L(a,1),a.m(l,_)),c[1]!==void 0?g?(g.p(c,O),O&2&&L(g,1)):(g=ve(c),g.c(),L(g,1),g.m(l,null)):g&&(Z(),A(g,1,1,()=>{g=null}),F()),(!b||O&2)&&I(l,"selected",c[1]),(!b||O&64)&&I(l,"centered",c[6]),C&&C.p&&(!b||O&4096)&&K(C,N,c,c[12],b?j(N,c[12],O,We):B(c[12]),ge),z(e,r=x(u,[{role:"menuitem"},(!b||O&1&&f!==(f="menu-item "+c[0]))&&{class:f},(!b||O&8&&i!==(i=c[3]?"true":"false"))&&{"aria-hidden":i},(!b||O&8)&&{"aria-disabled":c[3]},(!b||O&8&&d!==(d=c[3]?-1:0))&&{tabindex:d},O&2048&&c[11]])),I(e,"destructive",c[2]),I(e,"disabled",c[3]),I(e,"svelte-gco0cg",!0)},i(c){b||(L(E,c),L(a),L(g),L(C,c),b=!0)},o(c){A(E,c),A(a),A(g),A(C,c),b=!1},d(c){c&&D(e),E&&E.d(c),p[s].d(),g&&g.d(),C&&C.d(c),o=!1,ue(h)}}}function Fe(t){let e,n,l,s,a,_,m;const f=t[13].default,i=q(f,t,t[12],null);let d=[{href:t[4]},{role:"menuitem"},{class:n="menu-item "+t[0]},{"aria-hidden":l=t[3]?"true":"false"},{"aria-disabled":t[3]},{tabindex:s=t[3]?-1:0},t[11]],b={};for(let o=0;o{l=null}),F())},i(s){n||(L(l),n=!0)},o(s){A(l),n=!1},d(s){s&&D(e),l&&l.d()}}}function Ee(t){let e,n;return e=new De({props:{name:"checkmark"}}),{c(){ce(e.$$.fragment)},l(l){de(e.$$.fragment,l)},m(l,s){me(e,l,s),n=!0},i(l){n||(L(e.$$.fragment,l),n=!0)},o(l){A(e.$$.fragment,l),n=!1},d(l){_e(e,l)}}}function $e(t){let e,n,l,s;const a=[Fe,Ze],_=[];function m(f,i){return f[4]?0:1}return e=m(t),n=_[e]=a[e](t),{c(){n.c(),l=he()},l(f){n.l(f),l=he()},m(f,i){_[e].m(f,i),H(f,l,i),s=!0},p(f,[i]){let d=e;e=m(f),e===d?_[e].p(f,i):(Z(),A(_[d],1,1,()=>{_[d]=null}),F(),n=_[e],n?n.p(f,i):(n=_[e]=a[e](f),n.c()),L(n,1),n.m(l.parentNode,l))},i(f){s||(L(n),s=!0)},o(f){A(n),s=!1},d(f){_[e].d(f),f&&D(l)}}}const ae='input, li[role="option"]:not([aria-disabled="true"]), li[role="menuitem"]:not([aria-disabled="true"])';function et(t,e,n){const l=["class","selected","destructive","disabled","href","description","centered"];let s=X(e,l),a,_,{$$slots:m={},$$scope:f}=e,{class:i=""}=e,{selected:d=void 0}=e,{destructive:b=!1}=e,{disabled:o=!1}=e,{href:h=null}=e,{description:T=null}=e,{centered:E=!1}=e;const{keepOpen:k,open:p}=re(ne);W(t,k,r=>n(15,_=r)),W(t,p,r=>n(14,a=r));const M=oe(),g=r=>{switch(r.key){case"Escape":G(p,a=!1,a);break;case"ArrowDown":case"ArrowRight":N(r.currentTarget);break;case"ArrowUp":case"ArrowLeft":C(r.currentTarget);break;case" ":case"Enter":M("click"),_||G(p,a=!1,a);break}},N=r=>{let c=r.nextElementSibling;for(;c&&!c.matches(ae);)c=c.nextElementSibling;c&&c instanceof HTMLLIElement&&c.focus()},C=r=>{let c=r.previousElementSibling;for(;c&&!c.matches(ae);)c=c.previousElementSibling;c&&c instanceof HTMLLIElement&&c.focus()},u=()=>{_||G(p,a=!1,a),M("click")};return t.$$set=r=>{e=S(S({},e),le(r)),n(11,s=X(e,l)),"class"in r&&n(0,i=r.class),"selected"in r&&n(1,d=r.selected),"destructive"in r&&n(2,b=r.destructive),"disabled"in r&&n(3,o=r.disabled),"href"in r&&n(4,h=r.href),"description"in r&&n(5,T=r.description),"centered"in r&&n(6,E=r.centered),"$$scope"in r&&n(12,f=r.$$scope)},[i,d,b,o,h,T,E,k,p,g,u,s,f,m]}class _t extends ${constructor(e){super(),ee(this,e,et,$e,te,{class:0,selected:1,destructive:2,disabled:3,href:4,description:5,centered:6})}}const tt=t=>({}),Ie=t=>({}),lt=t=>({}),Le=t=>({});function Oe(t){let e,n,l;return n=new De({props:{name:t[13]?"chevron-up":"chevron-down"}}),{c(){e=P("div"),ce(n.$$.fragment),this.h()},l(s){e=y(s,"DIV",{class:!0});var a=U(e);de(n.$$.fragment,a),a.forEach(D),this.h()},h(){w(e,"class","flex")},m(s,a){H(s,e,a),me(n,e,null),l=!0},p(s,a){const _={};a&8192&&(_.name=s[13]?"chevron-up":"chevron-down"),n.$set(_)},i(s){l||(L(n.$$.fragment,s),l=!0)},o(s){A(n.$$.fragment,s),l=!1},d(s){s&&D(e),_e(n)}}}function Me(t){let e,n;return e=new ze({props:{class:"absolute top-0 right-0 origin-bottom-left translate-y-[-10px] translate-x-[10px]",type:"count",$$slots:{default:[nt]},$$scope:{ctx:t}}}),{c(){ce(e.$$.fragment)},l(l){de(e.$$.fragment,l)},m(l,s){me(e,l,s),n=!0},p(l,s){const a={};s&2097156&&(a.$$scope={dirty:s,ctx:l}),e.$set(a)},i(l){n||(L(e.$$.fragment,l),n=!0)},o(l){A(e.$$.fragment,l),n=!1},d(l){_e(e,l)}}}function nt(t){let e;return{c(){e=pe(t[2])},l(n){e=Ce(n,t[2])},m(n,l){H(n,e,l)},p(n,l){l&4&&Ae(e,n[2])},d(n){n&&D(e)}}}function st(t){let e,n,l,s,a,_,m,f,i,d,b;const o=t[20].leading,h=q(o,t,t[21],Le),T=t[20].default,E=q(T,t,t[21],null);let k=t[4]&&Oe(t);const p=t[20].trailing,M=q(p,t,t[21],Ie);let g=t[2]>0&&Me(t),N=[{id:t[5]},{disabled:t[3]},{type:"button"},{"aria-haspopup":m=!t[3]},{"aria-controls":t[1]},{"aria-expanded":t[13]},{"aria-label":t[6]},{class:f="menu-button "+t[10]+" "+t[0]},t[18]],C={};for(let u=0;u{k=null}),F()),M&&M.p&&(!i||r&2097152)&&K(M,p,u,u[21],i?j(p,u[21],r,tt):B(u[21]),Ie),u[2]>0?g?(g.p(u,r),r&4&&L(g,1)):(g=Me(u),g.c(),L(g,1),g.m(e,null)):g&&(Z(),A(g,1,1,()=>{g=null}),F()),z(e,C=x(N,[(!i||r&32)&&{id:u[5]},(!i||r&8)&&{disabled:u[3]},{type:"button"},(!i||r&8&&m!==(m=!u[3]))&&{"aria-haspopup":m},(!i||r&2)&&{"aria-controls":u[1]},(!i||r&8192)&&{"aria-expanded":u[13]},(!i||r&64)&&{"aria-label":u[6]},(!i||r&1025&&f!==(f="menu-button "+u[10]+" "+u[0]))&&{class:f},r&262144&&u[18]])),I(e,"unroundLeft",u[9]),I(e,"unroundRight",u[8]),I(e,"active",u[11]),I(e,"unround",u[7]),I(e,"round",u[12]),I(e,"svelte-etc7wv",!0)},i(u){i||(L(h,u),L(E,u),L(k),L(M,u),L(g),i=!0)},o(u){A(h,u),A(E,u),A(k),A(M,u),A(g),i=!1},d(u){u&&D(e),h&&h.d(u),E&&E.d(u),k&&k.d(),M&&M.d(u),g&&g.d(),d=!1,ue(b)}}}function it(t,e,n){const l=["class","controls","count","disabled","hasIndicator","id","label","unround","unroundRight","unroundLeft","variant","active","round"];let s=X(e,l),a,_,{$$slots:m={},$$scope:f}=e;const i=qe(m);let{class:d=""}=e,{controls:b}=e,{count:o=0}=e,{disabled:h=!1}=e,{hasIndicator:T=!1}=e,{id:E=null}=e,{label:k=null}=e,{unround:p=!1}=e,{unroundRight:M=!1}=e,{unroundLeft:g=!1}=e,{variant:N="secondary"}=e,{active:C=!1}=e,{round:u=!1}=e;const r=oe(),{open:c,menuElement:O}=re(ne);W(t,c,v=>n(13,_=v)),W(t,O,v=>n(22,a=v));const V=()=>{c.update(v=>{let se=v;return h||(se=!v),r("click",{open:se}),se})},Ne=v=>{switch(v.key){case"Escape":G(c,_=!1,_);break;case"ArrowDown":v.preventDefault(),_?Se():G(c,_=!0,_);break}},Se=()=>{const v=Array.from(a.querySelectorAll(ae));v&&v[0]&&requestAnimationFrame(()=>v[0].focus())};return t.$$set=v=>{e=S(S({},e),le(v)),n(18,s=X(e,l)),"class"in v&&n(0,d=v.class),"controls"in v&&n(1,b=v.controls),"count"in v&&n(2,o=v.count),"disabled"in v&&n(3,h=v.disabled),"hasIndicator"in v&&n(4,T=v.hasIndicator),"id"in v&&n(5,E=v.id),"label"in v&&n(6,k=v.label),"unround"in v&&n(7,p=v.unround),"unroundRight"in v&&n(8,M=v.unroundRight),"unroundLeft"in v&&n(9,g=v.unroundLeft),"variant"in v&&n(10,N=v.variant),"active"in v&&n(11,C=v.active),"round"in v&&n(12,u=v.round),"$$scope"in v&&n(21,f=v.$$scope)},[d,b,o,h,T,E,k,p,M,g,N,C,u,_,c,O,V,Ne,s,i,m,f]}class ht extends ${constructor(e){super(),ee(this,e,it,st,te,{class:0,controls:1,count:2,disabled:3,hasIndicator:4,id:5,label:6,unround:7,unroundRight:8,unroundLeft:9,variant:10,active:11,round:12})}}const Te=t=>Array.from(t.querySelectorAll('[href], button, textarea, input, div[contentEditable="true"], select, [tabindex][tabindex="0"]')).filter(e=>!e.hasAttribute("disabled")&&e.getAttribute("tabindex")!=="-1"),bt=(t,e)=>{let n,l;const s=i=>{i.key==="Tab"&&(i.shiftKey?document.activeElement===n&&(l.focus(),i.preventDefault()):document.activeElement===l&&(n.focus(),i.preventDefault()))},a=(i=!1)=>{if(e===!1)return;const d=Te(t);n=d[0],l=d[d.length-1],i||n==null||n.focus(),n==null||n.addEventListener("keydown",s),l==null||l.addEventListener("keydown",s)},_=()=>{n==null||n.removeEventListener("keydown",s),l==null||l.removeEventListener("keydown",s)},m=(i,d)=>(i.length&&(_(),a(!0)),d);return new MutationObserver(m).observe(t,{childList:!0,subtree:!0}),a(),{update(i){e=i,i?a():_()},destroy(){_()}}};function at(t){let e,n,l,s,a,_,m;const f=t[13].default,i=q(f,t,t[12],null);let d=[{role:"menu"},{class:n="menu "+t[3]+" "+t[1]},{"aria-labelledby":t[2]},{tabindex:l=-1},{id:t[2]},t[9]],b={};for(let o=0;o{s=Be(e,He,{duration:100}),s.start()}),a=!0)},o(o){A(i,o),a=!1},d(o){o&&D(e),i&&i.d(o),t[14](null),_=!1,m()}}}function ut(t,e,n){let l,s;const a=["class","id","keepOpen","position","menuElement"];let _=X(e,a),m,f,i,{$$slots:d={},$$scope:b}=e,{class:o=""}=e,{id:h}=e,{keepOpen:T=!1}=e,{position:E="left"}=e,{menuElement:k=null}=e;const{keepOpen:p,menuElement:M,open:g}=re(ne);W(t,p,u=>n(16,f=u)),W(t,M,u=>n(17,i=u)),W(t,g,u=>n(4,m=u));const N=u=>{!f&&u.target===s&&G(g,m=!1,m)};function C(u){je[u?"unshift":"push"](()=>{k=u,n(0,k)})}return t.$$set=u=>{e=S(S({},e),le(u)),n(9,_=X(e,a)),"class"in u&&n(1,o=u.class),"id"in u&&n(2,h=u.id),"keepOpen"in u&&n(10,T=u.keepOpen),"position"in u&&n(3,E=u.position),"menuElement"in u&&n(0,k=u.menuElement),"$$scope"in u&&n(12,b=u.$$scope)},t.$$.update=()=>{t.$$.dirty&1024&&G(p,f=T,f),t.$$.dirty&1&&G(M,i=k,i),t.$$.dirty&1&&n(11,l=k?Te(k):[]),t.$$.dirty&2048&&(s=l[l.length-1])},[k,o,h,E,m,p,M,g,N,_,T,l,b,d,C]}class gt extends ${constructor(e){super(),ee(this,e,ut,at,te,{class:1,id:2,keepOpen:10,position:3,menuElement:0})}}export{mt as M,ht as a,gt as b,Ge as c,_t as d,bt as f}; diff --git a/ui/assets/local/_app/immutable/chunks/modal.05d30376.js b/ui/assets/local/_app/immutable/chunks/modal.19f8e4b8.js similarity index 98% rename from ui/assets/local/_app/immutable/chunks/modal.05d30376.js rename to ui/assets/local/_app/immutable/chunks/modal.19f8e4b8.js index 55bce47ed6..d42c7ada0d 100644 --- a/ui/assets/local/_app/immutable/chunks/modal.05d30376.js +++ b/ui/assets/local/_app/immutable/chunks/modal.19f8e4b8.js @@ -1 +1 @@ -import{S as be,b as ve,a as Te,G as ae,N as X,m as B,c as S,w as Y,C as Z,p as F,q as G,d as z,k as C,x as p,D as w,u as D,P as I,O as ie,f as x,L as T,E as $,Q as W,ag as Me,a2 as ke,j as M,z as se,g as E,h as oe,H as ne,I as fe,J as re,y as ee,R as De,F as te,r as Ce,T as de,M as Ee,U as ce,A as Ne}from"./index.4e2fcbc7.js";import{B as he}from"./button.a45b0e55.js";import{f as Ie}from"./menu.69cccace.js";import{I as ye}from"./icon-button.92948dd7.js";const Oe=t=>({}),me=t=>({}),Pe=t=>({}),ue=t=>({});function ge(t){let e,a;return e=new ye({props:{label:t[3],icon:"close",class:"float-right m-4"}}),e.$on("click",t[12]),{c(){Z(e.$$.fragment)},l(i){w(e.$$.fragment,i)},m(i,f){$(e,i,f),a=!0},p(i,f){const u={};f&8&&(u.label=i[3]),e.$set(u)},i(i){a||(M(e.$$.fragment,i),a=!0)},o(i){E(e.$$.fragment,i),a=!1},d(i){te(e,i)}}}function Ve(t){let e;return{c(){e=Y(t[3])},l(a){e=p(a,t[3])},m(a,i){x(a,e,i)},p(a,i){i&8&&ee(e,a[3])},d(a){a&&C(e)}}}function _e(t){let e,a;return e=new he({props:{variant:t[4],loading:t[7],disabled:t[5]||t[7],"data-testid":"confirm-modal-button",type:"submit",$$slots:{default:[je]},$$scope:{ctx:t}}}),{c(){Z(e.$$.fragment)},l(i){w(e.$$.fragment,i)},m(i,f){$(e,i,f),a=!0},p(i,f){const u={};f&16&&(u.variant=i[4]),f&128&&(u.loading=i[7]),f&160&&(u.disabled=i[5]||i[7]),f&2097156&&(u.$$scope={dirty:f,ctx:i}),e.$set(u)},i(i){a||(M(e.$$.fragment,i),a=!0)},o(i){E(e.$$.fragment,i),a=!1},d(i){te(e,i)}}}function je(t){let e;return{c(){e=Y(t[2])},l(a){e=p(a,t[2])},m(a,i){x(a,e,i)},p(a,i){i&4&&ee(e,a[2])},d(a){a&&C(e)}}}function qe(t){let e,a,i,f,u,_,g,P,h,y,O,V,b,v,j,k,N,r,d,L,n=!t[7]&&ge(t);const q=t[19].title,c=ae(q,t,t[21],ue),R=t[19].content,m=ae(R,t,t[21],me);v=new he({props:{variant:"secondary",disabled:t[7],$$slots:{default:[Ve]},$$scope:{ctx:t}}}),v.$on("click",t[12]);let l=!t[1]&&_e(t),K=[{id:t[9]},{class:k="body "+t[10]},{"aria-modal":"true"},{"aria-labelledby":"modal-title"},{"data-testid":N=t[15]["data-testid"]},t[16]],H={};for(let s=0;s{n=null}),oe()):n?(n.p(s,o),o&128&&M(n,1)):(n=ge(s),n.c(),M(n,1),n.m(e,a)),c&&c.p&&(!r||o&2097152)&&ne(c,q,s,s[21],r?re(q,s[21],o,Pe):fe(s[21]),ue),(!r||o&512&&f!==(f="modal-title-"+s[9]))&&D(i,"id",f),m&&m.p&&(!r||o&2097152)&&ne(m,R,s,s[21],r?re(R,s[21],o,Oe):fe(s[21]),me),(!r||o&1)&&ee(y,s[0]),(!r||o&1)&&I(h,"hidden",!s[0]),(!r||o&512&&O!==(O="modal-content-"+s[9]))&&D(g,"id",O);const A={};o&128&&(A.disabled=s[7]),o&2097160&&(A.$$scope={dirty:o,ctx:s}),v.$set(A),s[1]?l&&(se(),E(l,1,1,()=>{l=null}),oe()):l?(l.p(s,o),o&2&&M(l,1)):(l=_e(s),l.c(),M(l,1),l.m(b,null)),ie(e,H=De(K,[(!r||o&512)&&{id:s[9]},(!r||o&1024&&k!==(k="body "+s[10]))&&{class:k},{"aria-modal":"true"},{"aria-labelledby":"modal-title"},(!r||o&32768&&N!==(N=s[15]["data-testid"]))&&{"data-testid":N},o&65536&&s[16]])),I(e,"large",s[6]),I(e,"hightlightNav",s[8]),I(e,"svelte-9mpp9v",!0)},i(s){r||(M(n),M(c,s),M(m,s),M(v.$$.fragment,s),M(l),r=!0)},o(s){E(n),E(c,s),E(m,s),E(v.$$.fragment,s),E(l),r=!1},d(s){s&&C(e),n&&n.d(),c&&c.d(s),m&&m.d(s),te(v),l&&l.d(),t[20](null),d=!1,Ce(L)}}}function Ae(t,e,a){const i=["hideConfirm","confirmText","cancelText","confirmType","confirmDisabled","large","loading","hightlightNav","id","open","error","class","toggleModal"];let f=de(e,i),{$$slots:u={},$$scope:_}=e,{hideConfirm:g=!1}=e,{confirmText:P}=e,{cancelText:h}=e,{confirmType:y="primary"}=e,{confirmDisabled:O=!1}=e,{large:V=!1}=e,{loading:b=!1}=e,{hightlightNav:v=!1}=e,{id:j}=e,{open:k}=e,{error:N=""}=e,{class:r=""}=e,d;const L=()=>{k?d==null||d.showModal():d==null||d.close()},n=Ee(),q=()=>{n("cancelModal"),a(17,k=!1),a(0,N="")},c=()=>{n("confirmModal")},R=l=>{l.target===d&&q()};function m(l){Ne[l?"unshift":"push"](()=>{d=l,a(11,d)})}return t.$$set=l=>{a(15,e=X(X({},e),ce(l))),a(16,f=de(e,i)),"hideConfirm"in l&&a(1,g=l.hideConfirm),"confirmText"in l&&a(2,P=l.confirmText),"cancelText"in l&&a(3,h=l.cancelText),"confirmType"in l&&a(4,y=l.confirmType),"confirmDisabled"in l&&a(5,O=l.confirmDisabled),"large"in l&&a(6,V=l.large),"loading"in l&&a(7,b=l.loading),"hightlightNav"in l&&a(8,v=l.hightlightNav),"id"in l&&a(9,j=l.id),"open"in l&&a(17,k=l.open),"error"in l&&a(0,N=l.error),"class"in l&&a(10,r=l.class),"$$scope"in l&&a(21,_=l.$$scope)},t.$$.update=()=>{t.$$.dirty&131072&&L(),t.$$.dirty&133120&&k&&d&&d.focus()},e=ce(e),[N,g,P,h,y,O,V,b,v,j,r,d,q,c,R,e,f,k,L,u,m,_]}class Re extends be{constructor(e){super(),ve(this,e,Ae,qe,Te,{hideConfirm:1,confirmText:2,cancelText:3,confirmType:4,confirmDisabled:5,large:6,loading:7,hightlightNav:8,id:9,open:17,error:0,class:10,toggleModal:18})}get toggleModal(){return this.$$.ctx[18]}}export{Re as M}; +import{S as be,b as ve,a as Te,G as ae,N as X,m as B,c as S,w as Y,C as Z,p as F,q as G,d as z,k as C,x as p,D as w,u as D,P as I,O as ie,f as x,L as T,E as $,Q as W,ag as Me,a2 as ke,j as M,z as se,g as E,h as oe,H as ne,I as fe,J as re,y as ee,R as De,F as te,r as Ce,T as de,M as Ee,U as ce,A as Ne}from"./index.4e2fcbc7.js";import{B as he}from"./button.a45b0e55.js";import{f as Ie}from"./menu.716bcd2f.js";import{I as ye}from"./icon-button.92948dd7.js";const Oe=t=>({}),me=t=>({}),Pe=t=>({}),ue=t=>({});function ge(t){let e,a;return e=new ye({props:{label:t[3],icon:"close",class:"float-right m-4"}}),e.$on("click",t[12]),{c(){Z(e.$$.fragment)},l(i){w(e.$$.fragment,i)},m(i,f){$(e,i,f),a=!0},p(i,f){const u={};f&8&&(u.label=i[3]),e.$set(u)},i(i){a||(M(e.$$.fragment,i),a=!0)},o(i){E(e.$$.fragment,i),a=!1},d(i){te(e,i)}}}function Ve(t){let e;return{c(){e=Y(t[3])},l(a){e=p(a,t[3])},m(a,i){x(a,e,i)},p(a,i){i&8&&ee(e,a[3])},d(a){a&&C(e)}}}function _e(t){let e,a;return e=new he({props:{variant:t[4],loading:t[7],disabled:t[5]||t[7],"data-testid":"confirm-modal-button",type:"submit",$$slots:{default:[je]},$$scope:{ctx:t}}}),{c(){Z(e.$$.fragment)},l(i){w(e.$$.fragment,i)},m(i,f){$(e,i,f),a=!0},p(i,f){const u={};f&16&&(u.variant=i[4]),f&128&&(u.loading=i[7]),f&160&&(u.disabled=i[5]||i[7]),f&2097156&&(u.$$scope={dirty:f,ctx:i}),e.$set(u)},i(i){a||(M(e.$$.fragment,i),a=!0)},o(i){E(e.$$.fragment,i),a=!1},d(i){te(e,i)}}}function je(t){let e;return{c(){e=Y(t[2])},l(a){e=p(a,t[2])},m(a,i){x(a,e,i)},p(a,i){i&4&&ee(e,a[2])},d(a){a&&C(e)}}}function qe(t){let e,a,i,f,u,_,g,P,h,y,O,V,b,v,j,k,N,r,d,L,n=!t[7]&&ge(t);const q=t[19].title,c=ae(q,t,t[21],ue),R=t[19].content,m=ae(R,t,t[21],me);v=new he({props:{variant:"secondary",disabled:t[7],$$slots:{default:[Ve]},$$scope:{ctx:t}}}),v.$on("click",t[12]);let l=!t[1]&&_e(t),K=[{id:t[9]},{class:k="body "+t[10]},{"aria-modal":"true"},{"aria-labelledby":"modal-title"},{"data-testid":N=t[15]["data-testid"]},t[16]],H={};for(let s=0;s{n=null}),oe()):n?(n.p(s,o),o&128&&M(n,1)):(n=ge(s),n.c(),M(n,1),n.m(e,a)),c&&c.p&&(!r||o&2097152)&&ne(c,q,s,s[21],r?re(q,s[21],o,Pe):fe(s[21]),ue),(!r||o&512&&f!==(f="modal-title-"+s[9]))&&D(i,"id",f),m&&m.p&&(!r||o&2097152)&&ne(m,R,s,s[21],r?re(R,s[21],o,Oe):fe(s[21]),me),(!r||o&1)&&ee(y,s[0]),(!r||o&1)&&I(h,"hidden",!s[0]),(!r||o&512&&O!==(O="modal-content-"+s[9]))&&D(g,"id",O);const A={};o&128&&(A.disabled=s[7]),o&2097160&&(A.$$scope={dirty:o,ctx:s}),v.$set(A),s[1]?l&&(se(),E(l,1,1,()=>{l=null}),oe()):l?(l.p(s,o),o&2&&M(l,1)):(l=_e(s),l.c(),M(l,1),l.m(b,null)),ie(e,H=De(K,[(!r||o&512)&&{id:s[9]},(!r||o&1024&&k!==(k="body "+s[10]))&&{class:k},{"aria-modal":"true"},{"aria-labelledby":"modal-title"},(!r||o&32768&&N!==(N=s[15]["data-testid"]))&&{"data-testid":N},o&65536&&s[16]])),I(e,"large",s[6]),I(e,"hightlightNav",s[8]),I(e,"svelte-9mpp9v",!0)},i(s){r||(M(n),M(c,s),M(m,s),M(v.$$.fragment,s),M(l),r=!0)},o(s){E(n),E(c,s),E(m,s),E(v.$$.fragment,s),E(l),r=!1},d(s){s&&C(e),n&&n.d(),c&&c.d(s),m&&m.d(s),te(v),l&&l.d(),t[20](null),d=!1,Ce(L)}}}function Ae(t,e,a){const i=["hideConfirm","confirmText","cancelText","confirmType","confirmDisabled","large","loading","hightlightNav","id","open","error","class","toggleModal"];let f=de(e,i),{$$slots:u={},$$scope:_}=e,{hideConfirm:g=!1}=e,{confirmText:P}=e,{cancelText:h}=e,{confirmType:y="primary"}=e,{confirmDisabled:O=!1}=e,{large:V=!1}=e,{loading:b=!1}=e,{hightlightNav:v=!1}=e,{id:j}=e,{open:k}=e,{error:N=""}=e,{class:r=""}=e,d;const L=()=>{k?d==null||d.showModal():d==null||d.close()},n=Ee(),q=()=>{n("cancelModal"),a(17,k=!1),a(0,N="")},c=()=>{n("confirmModal")},R=l=>{l.target===d&&q()};function m(l){Ne[l?"unshift":"push"](()=>{d=l,a(11,d)})}return t.$$set=l=>{a(15,e=X(X({},e),ce(l))),a(16,f=de(e,i)),"hideConfirm"in l&&a(1,g=l.hideConfirm),"confirmText"in l&&a(2,P=l.confirmText),"cancelText"in l&&a(3,h=l.cancelText),"confirmType"in l&&a(4,y=l.confirmType),"confirmDisabled"in l&&a(5,O=l.confirmDisabled),"large"in l&&a(6,V=l.large),"loading"in l&&a(7,b=l.loading),"hightlightNav"in l&&a(8,v=l.hightlightNav),"id"in l&&a(9,j=l.id),"open"in l&&a(17,k=l.open),"error"in l&&a(0,N=l.error),"class"in l&&a(10,r=l.class),"$$scope"in l&&a(21,_=l.$$scope)},t.$$.update=()=>{t.$$.dirty&131072&&L(),t.$$.dirty&133120&&k&&d&&d.focus()},e=ce(e),[N,g,P,h,y,O,V,b,v,j,r,d,q,c,R,e,f,k,L,u,m,_]}class Re extends be{constructor(e){super(),ve(this,e,Ae,qe,Te,{hideConfirm:1,confirmText:2,cancelText:3,confirmType:4,confirmDisabled:5,large:6,loading:7,hightlightNav:8,id:9,open:17,error:0,class:10,toggleModal:18})}get toggleModal(){return this.$$.ctx[18]}}export{Re as M}; diff --git a/ui/assets/local/_app/immutable/chunks/namespaces-service.7a2265f4.js b/ui/assets/local/_app/immutable/chunks/namespaces-service.5b7524c9.js similarity index 78% rename from ui/assets/local/_app/immutable/chunks/namespaces-service.7a2265f4.js rename to ui/assets/local/_app/immutable/chunks/namespaces-service.5b7524c9.js index 53355a1904..3f789e27a5 100644 --- a/ui/assets/local/_app/immutable/chunks/namespaces-service.7a2265f4.js +++ b/ui/assets/local/_app/immutable/chunks/namespaces-service.5b7524c9.js @@ -1 +1 @@ -import{n as c}from"./namespaces.85dd397c.js";import{t as p}from"./toaster.8a4adbc8.js";import{p as u}from"./paginated.ee0f9410.js";import{r as f,a as i}from"./route-for-api.60228029.js";const h={namespaces:[]};async function N(n,e=fetch){const{showTemporalSystemNamespace:o,runtimeEnvironment:a}=n;if(a.isCloud){c.set([]);return}try{const s=f("namespaces"),r=await u(async m=>i(s,{request:e,token:m,onError:()=>p.push({variant:"error",message:"Unable to fetch namespaces"})})),t=((r==null?void 0:r.namespaces)??[]).filter(m=>o||m.namespaceInfo.name!=="temporal-system");c.set(t)}catch{c.set([])}}async function d(n,e,o=fetch){var t;const[a]=h.namespaces;if((t=e==null?void 0:e.runtimeEnvironment)!=null&&t.isCloud)return a;const s=f("namespace",{namespace:n});return await i(s,{request:o,onError:()=>p.push({variant:"error",message:"Unable to fetch namespaces"})})??a}export{d as a,N as f}; +import{n as c}from"./namespaces.c82b5451.js";import{t as p}from"./toaster.de22ba12.js";import{p as u}from"./paginated.c754f9f4.js";import{r as f,a as i}from"./route-for-api.d45de563.js";const h={namespaces:[]};async function N(n,e=fetch){const{showTemporalSystemNamespace:o,runtimeEnvironment:a}=n;if(a.isCloud){c.set([]);return}try{const s=f("namespaces"),r=await u(async m=>i(s,{request:e,token:m,onError:()=>p.push({variant:"error",message:"Unable to fetch namespaces"})})),t=((r==null?void 0:r.namespaces)??[]).filter(m=>o||m.namespaceInfo.name!=="temporal-system");c.set(t)}catch{c.set([])}}async function d(n,e,o=fetch){var t;const[a]=h.namespaces;if((t=e==null?void 0:e.runtimeEnvironment)!=null&&t.isCloud)return a;const s=f("namespace",{namespace:n});return await i(s,{request:o,onError:()=>p.push({variant:"error",message:"Unable to fetch namespaces"})})??a}export{d as a,N as f}; diff --git a/ui/assets/local/_app/immutable/chunks/namespaces.85dd397c.js b/ui/assets/local/_app/immutable/chunks/namespaces.85dd397c.js deleted file mode 100644 index 81f76200bf..0000000000 --- a/ui/assets/local/_app/immutable/chunks/namespaces.85dd397c.js +++ /dev/null @@ -1 +0,0 @@ -import{w as s}from"./singletons.fb5f332e.js";import{p as a}from"./persist-store.2e269d08.js";const r=a("lastNamespace","default",!0),o=s([]);export{r as l,o as n}; diff --git a/ui/assets/local/_app/immutable/chunks/namespaces.c82b5451.js b/ui/assets/local/_app/immutable/chunks/namespaces.c82b5451.js new file mode 100644 index 0000000000..c3143735f7 --- /dev/null +++ b/ui/assets/local/_app/immutable/chunks/namespaces.c82b5451.js @@ -0,0 +1 @@ +import{w as s}from"./singletons.13b3836d.js";import{p as a}from"./persist-store.8930b3b5.js";const r=a("lastNamespace","default",!0),o=s([]);export{r as l,o as n}; diff --git a/ui/assets/local/_app/immutable/chunks/navigation.10919bcf.js b/ui/assets/local/_app/immutable/chunks/navigation.10919bcf.js deleted file mode 100644 index c48c075ebb..0000000000 --- a/ui/assets/local/_app/immutable/chunks/navigation.10919bcf.js +++ /dev/null @@ -1 +0,0 @@ -import{h as t}from"./singletons.fb5f332e.js";const o=t("goto"),e=t("after_navigate");export{e as a,o as g}; diff --git a/ui/assets/local/_app/immutable/chunks/navigation.b77a045a.js b/ui/assets/local/_app/immutable/chunks/navigation.b77a045a.js new file mode 100644 index 0000000000..782f3e8953 --- /dev/null +++ b/ui/assets/local/_app/immutable/chunks/navigation.b77a045a.js @@ -0,0 +1 @@ +import{h as t}from"./singletons.13b3836d.js";const o=t("goto"),e=t("after_navigate");export{e as a,o as g}; diff --git a/ui/assets/local/_app/immutable/chunks/option.6ac49d4b.js b/ui/assets/local/_app/immutable/chunks/option.145cb9b7.js similarity index 98% rename from ui/assets/local/_app/immutable/chunks/option.6ac49d4b.js rename to ui/assets/local/_app/immutable/chunks/option.145cb9b7.js index 6e0d987f85..949acd595a 100644 --- a/ui/assets/local/_app/immutable/chunks/option.6ac49d4b.js +++ b/ui/assets/local/_app/immutable/chunks/option.145cb9b7.js @@ -1 +1 @@ -import{S as te,b as le,a as ne,C as E,D as L,E as M,j as _,g as b,F as I,T as Y,K as N,ae as ce,o as ae,a5 as z,N as V,U as de,m as j,w as me,c as q,p as B,q as se,x as ge,k as p,d as U,u as Q,P as k,f as C,L as _e,y as be,n as he,e as Z,O as w,R as pe,z as ve,h as Ce,G as W,H as F,I as J,J as P,af as ye,M as ke,a6 as Ee,A as Le}from"./index.4e2fcbc7.js";import"./badge.96e01a15.js";import{I as oe}from"./icon.e8aa24c8.js";import{M as Me,a as Ie,b as De,d as Se}from"./menu.69cccace.js";import{w as H}from"./singletons.fb5f332e.js";const ue=[{label:"Every month",value:"*"},{label:"January",value:"1"},{label:"February",value:"2"},{label:"March",value:"3"},{label:"April",value:"4"},{label:"May",value:"5"},{label:"June",value:"6"},{label:"July",value:"7"},{label:"August",value:"8"},{label:"September",value:"9"},{label:"October",value:"10"},{label:"November",value:"11"},{label:"December",value:"12"}],xe=[{label:"Everyday",value:"*"},{label:"Weekdays",value:"1,2,3,4,5"},{label:"Weekends",value:"6,7"}],$e=[{label:"Sunday",value:"7"},{label:"Monday",value:"1"},{label:"Tuesday",value:"2"},{label:"Wednesday",value:"3"},{label:"Thursday",value:"4"},{label:"Friday",value:"5"},{label:"Saturday",value:"6"}],Re=[31,28,31,30,31,30,31,31,30,31,30,31],Ae=n=>n%4===0,Ne=()=>Array.from({length:42}).map(()=>0),Oe=(n,e)=>n!==1?Re[n]:Ae(e)?29:28,Te=(n,e)=>{const t=new Date(e,n,1).getMonth();return{name:ue[t],days:Oe(t,e)}},et=n=>ue.filter(e=>e.value!=="*")[n],tt=(n,e)=>{const{days:a}=Te(n,e),t=Ne(),l=new Date(e,n,1).getDay();Array.from({length:a}).forEach((r,f)=>{const o=l+f;t[o]=f+1});const s=t.map(r=>Array.isArray(r)?void 0:r);return s[35]?s:s.slice(0,-7)};function x(n){let e,a;return e=new oe({props:{slot:"trailing",name:"lock"}}),{c(){E(e.$$.fragment)},l(t){L(e.$$.fragment,t)},m(t,l){M(e,t,l),a=!0},i(t){a||(_(e.$$.fragment,t),a=!0)},o(t){b(e.$$.fragment,t),a=!1},d(t){I(e,t)}}}function He(n){let e,a,t,l,s,r=[{id:n[3]},{value:a=!n[0]&&n[4]!==""?n[4]:n[9]},{tabindex:"-1"},{class:"select-input"},{disabled:!0},n[14]],f={};for(let u=0;u{o=null}),Ce())},i(u){s||(_(o),s=!0)},o(u){b(o),s=!1},d(u){u&&p(e),u&&p(t),o&&o.d(u),u&&p(l)}}}function We(n){let e,a;return e=new oe({props:{slot:"leading",name:n[6]}}),{c(){E(e.$$.fragment)},l(t){L(e.$$.fragment,t)},m(t,l){M(e,t,l),a=!0},p(t,l){const s={};l&64&&(s.name=t[6]),e.$set(s)},i(t){a||(_(e.$$.fragment,t),a=!0)},o(t){b(e.$$.fragment,t),a=!1},d(t){I(e,t)}}}function Fe(n){let e;const a=n[16].default,t=W(a,n,n[17],null);return{c(){t&&t.c()},l(l){t&&t.l(l)},m(l,s){t&&t.m(l,s),e=!0},p(l,s){t&&t.p&&(!e||s&131072)&&F(t,a,l,l[17],e?P(a,l[17],s,null):J(l[17]),null)},i(l){e||(_(t,l),e=!0)},o(l){b(t,l),e=!1},d(l){t&&t.d(l)}}}function Je(n){let e,a,t,l,s,r,f;return l=new Ie({props:{hasIndicator:!n[5],disabled:n[5],unroundLeft:n[8],unroundRight:n[7],controls:n[3]+"-select",$$slots:{leading:[We],default:[He]},$$scope:{ctx:n}}}),r=new De({props:{role:"listbox",id:n[3]+"-select",$$slots:{default:[Fe]},$$scope:{ctx:n}}}),{c(){e=j("label"),a=me(n[1]),t=q(),E(l.$$.fragment),s=q(),E(r.$$.fragment),this.h()},l(o){e=B(o,"LABEL",{for:!0});var u=se(e);a=ge(u,n[1]),u.forEach(p),t=U(o),L(l.$$.fragment,o),s=U(o),L(r.$$.fragment,o),this.h()},h(){Q(e,"for",n[3]),k(e,"sr-only",n[2])},m(o,u){C(o,e,u),_e(e,a),C(o,t,u),M(l,o,u),C(o,s,u),M(r,o,u),f=!0},p(o,u){(!f||u&2)&&be(a,o[1]),(!f||u&8)&&Q(e,"for",o[3]),(!f||u&4)&&k(e,"sr-only",o[2]);const c={};u&32&&(c.hasIndicator=!o[5]),u&32&&(c.disabled=o[5]),u&256&&(c.unroundLeft=o[8]),u&128&&(c.unroundRight=o[7]),u&8&&(c.controls=o[3]+"-select"),u&148089&&(c.$$scope={dirty:u,ctx:o}),l.$set(c);const m={};u&8&&(m.id=o[3]+"-select"),u&131072&&(m.$$scope={dirty:u,ctx:o}),r.$set(m)},i(o){f||(_(l.$$.fragment,o),_(r.$$.fragment,o),f=!0)},o(o){b(l.$$.fragment,o),b(r.$$.fragment,o),f=!1},d(o){o&&p(e),o&&p(t),I(l,o),o&&p(s),I(r,o)}}}function Pe(n){let e,a;return e=new Me({props:{class:"w-full",open:n[13],$$slots:{default:[Je]},$$scope:{ctx:n}}}),{c(){E(e.$$.fragment)},l(t){L(e.$$.fragment,t)},m(t,l){M(e,t,l),a=!0},p(t,[l]){const s={};l&148479&&(s.$$scope={dirty:l,ctx:t}),e.$set(s)},i(t){a||(_(e.$$.fragment,t),a=!0)},o(t){b(e.$$.fragment,t),a=!1},d(t){I(e,t)}}}const ie="select-context";function ze(n,e,a){const t=["label","labelHidden","id","value","placeholder","disabled","leadingIcon","unroundRight","unroundLeft","onChange"];let l=Y(e,t),s,r,f,{$$slots:o={},$$scope:u}=e,{label:c}=e,{labelHidden:m=!1}=e,{id:D}=e,{value:g=void 0}=e,{placeholder:v=""}=e,{disabled:h=!1}=e,{leadingIcon:O=null}=e,{unroundRight:y=!1}=e,{unroundLeft:T=!1}=e,{onChange:S=he}=e;const d=H(g);N(n,d,i=>a(19,f=i));const R=H([]);N(n,R,i=>a(18,r=i));const A=H(g==null?void 0:g.toString());N(n,A,i=>a(9,s=i));const G=H(!1),re=i=>{a(0,g=i),S(g)};function K(i){const X=r.find(fe=>fe.value===i);if(X!==void 0)return X.label}return ce(ie,{selectValue:d,selectLabel:A,options:R,open:G,handleChange:re}),ae(()=>{z(A,s=K(g),s)}),n.$$set=i=>{e=V(V({},e),de(i)),a(14,l=Y(e,t)),"label"in i&&a(1,c=i.label),"labelHidden"in i&&a(2,m=i.labelHidden),"id"in i&&a(3,D=i.id),"value"in i&&a(0,g=i.value),"placeholder"in i&&a(4,v=i.placeholder),"disabled"in i&&a(5,h=i.disabled),"leadingIcon"in i&&a(6,O=i.leadingIcon),"unroundRight"in i&&a(7,y=i.unroundRight),"unroundLeft"in i&&a(8,T=i.unroundLeft),"onChange"in i&&a(15,S=i.onChange),"$$scope"in i&&a(17,u=i.$$scope)},n.$$.update=()=>{n.$$.dirty&1&&(z(d,f=g,f),z(A,s=K(g),s))},[g,c,m,D,v,h,O,y,T,s,d,R,A,G,l,S,o,u]}class lt extends te{constructor(e){super(),le(this,e,ze,Pe,ne,{label:1,labelHidden:2,id:3,value:0,placeholder:4,disabled:5,leadingIcon:6,unroundRight:7,unroundLeft:8,onChange:15})}}const Ve=n=>({}),$=n=>({slot:"leading"}),qe=n=>({}),ee=n=>({slot:"trailing"});function Ue(n){let e,a;const t=n[9].default,l=W(t,n,n[11],null);return{c(){e=j("span"),l&&l.c()},l(s){e=B(s,"SPAN",{});var r=se(e);l&&l.l(r),r.forEach(p)},m(s,r){C(s,e,r),l&&l.m(e,null),n[10](e),a=!0},p(s,r){l&&l.p&&(!a||r&2048)&&F(l,t,s,s[11],a?P(t,s[11],r,null):J(s[11]),null)},i(s){a||(_(l,s),a=!0)},o(s){b(l,s),a=!1},d(s){s&&p(e),l&&l.d(s),n[10](null)}}}function je(n){let e;const a=n[9].leading,t=W(a,n,n[11],$);return{c(){t&&t.c()},l(l){t&&t.l(l)},m(l,s){t&&t.m(l,s),e=!0},p(l,s){t&&t.p&&(!e||s&2048)&&F(t,a,l,l[11],e?P(a,l[11],s,Ve):J(l[11]),$)},i(l){e||(_(t,l),e=!0)},o(l){b(t,l),e=!1},d(l){t&&t.d(l)}}}function Be(n){let e;const a=n[9].trailing,t=W(a,n,n[11],ee);return{c(){t&&t.c()},l(l){t&&t.l(l)},m(l,s){t&&t.m(l,s),e=!0},p(l,s){t&&t.p&&(!e||s&2048)&&F(t,a,l,l[11],e?P(a,l[11],s,qe):J(l[11]),ee)},i(l){e||(_(t,l),e=!0)},o(l){b(t,l),e=!1},d(l){t&&t.d(l)}}}function Ge(n){let e,a;return e=new Se({props:{role:"option",selected:n[2],description:n[0],$$slots:{trailing:[Be],leading:[je],default:[Ue]},$$scope:{ctx:n}}}),e.$on("click",n[5]),{c(){E(e.$$.fragment)},l(t){L(e.$$.fragment,t)},m(t,l){M(e,t,l),a=!0},p(t,[l]){const s={};l&4&&(s.selected=t[2]),l&1&&(s.description=t[0]),l&2050&&(s.$$scope={dirty:l,ctx:t}),e.$set(s)},i(t){a||(_(e.$$.fragment,t),a=!0)},o(t){b(e.$$.fragment,t),a=!1},d(t){I(e,t)}}}function Ke(n,e,a){let t,l,{$$slots:s={},$$scope:r}=e;const{selectValue:f,handleChange:o,options:u}=ye(ie);N(n,f,d=>a(8,l=d)),N(n,u,d=>a(13,t=d));const c=ke();let{value:m}=e,{description:D=""}=e,g=!1,v,h,O,y;ae(()=>{h&&(y=h.textContent,t.push({value:m,label:y,nativeElement:O}))}),Ee(()=>{let d=t.findIndex(R=>R.value===m);d!==void 0&&t.splice(d,1)});const T=()=>{o(v),c("click",{value:v})};function S(d){Le[d?"unshift":"push"](()=>{h=d,a(1,h)})}return n.$$set=d=>{"value"in d&&a(6,m=d.value),"description"in d&&a(0,D=d.description),"$$scope"in d&&a(11,r=d.$$scope)},n.$$.update=()=>{n.$$.dirty&450&&h&&(a(7,v=m??h.textContent),a(2,g=l===v),y=h.textContent)},[D,h,g,f,u,T,m,v,l,s,S,r]}class nt extends te{constructor(e){super(),le(this,e,Ke,Ge,ne,{value:6,description:0})}}export{nt as O,lt as S,tt as a,et as b,xe as g,ue as m,$e as w}; +import{S as te,b as le,a as ne,C as E,D as L,E as M,j as _,g as b,F as I,T as Y,K as N,ae as ce,o as ae,a5 as z,N as V,U as de,m as j,w as me,c as q,p as B,q as se,x as ge,k as p,d as U,u as Q,P as k,f as C,L as _e,y as be,n as he,e as Z,O as w,R as pe,z as ve,h as Ce,G as W,H as F,I as J,J as P,af as ye,M as ke,a6 as Ee,A as Le}from"./index.4e2fcbc7.js";import"./badge.96e01a15.js";import{I as oe}from"./icon.e8aa24c8.js";import{M as Me,a as Ie,b as De,d as Se}from"./menu.716bcd2f.js";import{w as H}from"./singletons.13b3836d.js";const ue=[{label:"Every month",value:"*"},{label:"January",value:"1"},{label:"February",value:"2"},{label:"March",value:"3"},{label:"April",value:"4"},{label:"May",value:"5"},{label:"June",value:"6"},{label:"July",value:"7"},{label:"August",value:"8"},{label:"September",value:"9"},{label:"October",value:"10"},{label:"November",value:"11"},{label:"December",value:"12"}],xe=[{label:"Everyday",value:"*"},{label:"Weekdays",value:"1,2,3,4,5"},{label:"Weekends",value:"6,7"}],$e=[{label:"Sunday",value:"7"},{label:"Monday",value:"1"},{label:"Tuesday",value:"2"},{label:"Wednesday",value:"3"},{label:"Thursday",value:"4"},{label:"Friday",value:"5"},{label:"Saturday",value:"6"}],Re=[31,28,31,30,31,30,31,31,30,31,30,31],Ae=n=>n%4===0,Ne=()=>Array.from({length:42}).map(()=>0),Oe=(n,e)=>n!==1?Re[n]:Ae(e)?29:28,Te=(n,e)=>{const t=new Date(e,n,1).getMonth();return{name:ue[t],days:Oe(t,e)}},et=n=>ue.filter(e=>e.value!=="*")[n],tt=(n,e)=>{const{days:a}=Te(n,e),t=Ne(),l=new Date(e,n,1).getDay();Array.from({length:a}).forEach((r,f)=>{const o=l+f;t[o]=f+1});const s=t.map(r=>Array.isArray(r)?void 0:r);return s[35]?s:s.slice(0,-7)};function x(n){let e,a;return e=new oe({props:{slot:"trailing",name:"lock"}}),{c(){E(e.$$.fragment)},l(t){L(e.$$.fragment,t)},m(t,l){M(e,t,l),a=!0},i(t){a||(_(e.$$.fragment,t),a=!0)},o(t){b(e.$$.fragment,t),a=!1},d(t){I(e,t)}}}function He(n){let e,a,t,l,s,r=[{id:n[3]},{value:a=!n[0]&&n[4]!==""?n[4]:n[9]},{tabindex:"-1"},{class:"select-input"},{disabled:!0},n[14]],f={};for(let u=0;u{o=null}),Ce())},i(u){s||(_(o),s=!0)},o(u){b(o),s=!1},d(u){u&&p(e),u&&p(t),o&&o.d(u),u&&p(l)}}}function We(n){let e,a;return e=new oe({props:{slot:"leading",name:n[6]}}),{c(){E(e.$$.fragment)},l(t){L(e.$$.fragment,t)},m(t,l){M(e,t,l),a=!0},p(t,l){const s={};l&64&&(s.name=t[6]),e.$set(s)},i(t){a||(_(e.$$.fragment,t),a=!0)},o(t){b(e.$$.fragment,t),a=!1},d(t){I(e,t)}}}function Fe(n){let e;const a=n[16].default,t=W(a,n,n[17],null);return{c(){t&&t.c()},l(l){t&&t.l(l)},m(l,s){t&&t.m(l,s),e=!0},p(l,s){t&&t.p&&(!e||s&131072)&&F(t,a,l,l[17],e?P(a,l[17],s,null):J(l[17]),null)},i(l){e||(_(t,l),e=!0)},o(l){b(t,l),e=!1},d(l){t&&t.d(l)}}}function Je(n){let e,a,t,l,s,r,f;return l=new Ie({props:{hasIndicator:!n[5],disabled:n[5],unroundLeft:n[8],unroundRight:n[7],controls:n[3]+"-select",$$slots:{leading:[We],default:[He]},$$scope:{ctx:n}}}),r=new De({props:{role:"listbox",id:n[3]+"-select",$$slots:{default:[Fe]},$$scope:{ctx:n}}}),{c(){e=j("label"),a=me(n[1]),t=q(),E(l.$$.fragment),s=q(),E(r.$$.fragment),this.h()},l(o){e=B(o,"LABEL",{for:!0});var u=se(e);a=ge(u,n[1]),u.forEach(p),t=U(o),L(l.$$.fragment,o),s=U(o),L(r.$$.fragment,o),this.h()},h(){Q(e,"for",n[3]),k(e,"sr-only",n[2])},m(o,u){C(o,e,u),_e(e,a),C(o,t,u),M(l,o,u),C(o,s,u),M(r,o,u),f=!0},p(o,u){(!f||u&2)&&be(a,o[1]),(!f||u&8)&&Q(e,"for",o[3]),(!f||u&4)&&k(e,"sr-only",o[2]);const c={};u&32&&(c.hasIndicator=!o[5]),u&32&&(c.disabled=o[5]),u&256&&(c.unroundLeft=o[8]),u&128&&(c.unroundRight=o[7]),u&8&&(c.controls=o[3]+"-select"),u&148089&&(c.$$scope={dirty:u,ctx:o}),l.$set(c);const m={};u&8&&(m.id=o[3]+"-select"),u&131072&&(m.$$scope={dirty:u,ctx:o}),r.$set(m)},i(o){f||(_(l.$$.fragment,o),_(r.$$.fragment,o),f=!0)},o(o){b(l.$$.fragment,o),b(r.$$.fragment,o),f=!1},d(o){o&&p(e),o&&p(t),I(l,o),o&&p(s),I(r,o)}}}function Pe(n){let e,a;return e=new Me({props:{class:"w-full",open:n[13],$$slots:{default:[Je]},$$scope:{ctx:n}}}),{c(){E(e.$$.fragment)},l(t){L(e.$$.fragment,t)},m(t,l){M(e,t,l),a=!0},p(t,[l]){const s={};l&148479&&(s.$$scope={dirty:l,ctx:t}),e.$set(s)},i(t){a||(_(e.$$.fragment,t),a=!0)},o(t){b(e.$$.fragment,t),a=!1},d(t){I(e,t)}}}const ie="select-context";function ze(n,e,a){const t=["label","labelHidden","id","value","placeholder","disabled","leadingIcon","unroundRight","unroundLeft","onChange"];let l=Y(e,t),s,r,f,{$$slots:o={},$$scope:u}=e,{label:c}=e,{labelHidden:m=!1}=e,{id:D}=e,{value:g=void 0}=e,{placeholder:v=""}=e,{disabled:h=!1}=e,{leadingIcon:O=null}=e,{unroundRight:y=!1}=e,{unroundLeft:T=!1}=e,{onChange:S=he}=e;const d=H(g);N(n,d,i=>a(19,f=i));const R=H([]);N(n,R,i=>a(18,r=i));const A=H(g==null?void 0:g.toString());N(n,A,i=>a(9,s=i));const G=H(!1),re=i=>{a(0,g=i),S(g)};function K(i){const X=r.find(fe=>fe.value===i);if(X!==void 0)return X.label}return ce(ie,{selectValue:d,selectLabel:A,options:R,open:G,handleChange:re}),ae(()=>{z(A,s=K(g),s)}),n.$$set=i=>{e=V(V({},e),de(i)),a(14,l=Y(e,t)),"label"in i&&a(1,c=i.label),"labelHidden"in i&&a(2,m=i.labelHidden),"id"in i&&a(3,D=i.id),"value"in i&&a(0,g=i.value),"placeholder"in i&&a(4,v=i.placeholder),"disabled"in i&&a(5,h=i.disabled),"leadingIcon"in i&&a(6,O=i.leadingIcon),"unroundRight"in i&&a(7,y=i.unroundRight),"unroundLeft"in i&&a(8,T=i.unroundLeft),"onChange"in i&&a(15,S=i.onChange),"$$scope"in i&&a(17,u=i.$$scope)},n.$$.update=()=>{n.$$.dirty&1&&(z(d,f=g,f),z(A,s=K(g),s))},[g,c,m,D,v,h,O,y,T,s,d,R,A,G,l,S,o,u]}class lt extends te{constructor(e){super(),le(this,e,ze,Pe,ne,{label:1,labelHidden:2,id:3,value:0,placeholder:4,disabled:5,leadingIcon:6,unroundRight:7,unroundLeft:8,onChange:15})}}const Ve=n=>({}),$=n=>({slot:"leading"}),qe=n=>({}),ee=n=>({slot:"trailing"});function Ue(n){let e,a;const t=n[9].default,l=W(t,n,n[11],null);return{c(){e=j("span"),l&&l.c()},l(s){e=B(s,"SPAN",{});var r=se(e);l&&l.l(r),r.forEach(p)},m(s,r){C(s,e,r),l&&l.m(e,null),n[10](e),a=!0},p(s,r){l&&l.p&&(!a||r&2048)&&F(l,t,s,s[11],a?P(t,s[11],r,null):J(s[11]),null)},i(s){a||(_(l,s),a=!0)},o(s){b(l,s),a=!1},d(s){s&&p(e),l&&l.d(s),n[10](null)}}}function je(n){let e;const a=n[9].leading,t=W(a,n,n[11],$);return{c(){t&&t.c()},l(l){t&&t.l(l)},m(l,s){t&&t.m(l,s),e=!0},p(l,s){t&&t.p&&(!e||s&2048)&&F(t,a,l,l[11],e?P(a,l[11],s,Ve):J(l[11]),$)},i(l){e||(_(t,l),e=!0)},o(l){b(t,l),e=!1},d(l){t&&t.d(l)}}}function Be(n){let e;const a=n[9].trailing,t=W(a,n,n[11],ee);return{c(){t&&t.c()},l(l){t&&t.l(l)},m(l,s){t&&t.m(l,s),e=!0},p(l,s){t&&t.p&&(!e||s&2048)&&F(t,a,l,l[11],e?P(a,l[11],s,qe):J(l[11]),ee)},i(l){e||(_(t,l),e=!0)},o(l){b(t,l),e=!1},d(l){t&&t.d(l)}}}function Ge(n){let e,a;return e=new Se({props:{role:"option",selected:n[2],description:n[0],$$slots:{trailing:[Be],leading:[je],default:[Ue]},$$scope:{ctx:n}}}),e.$on("click",n[5]),{c(){E(e.$$.fragment)},l(t){L(e.$$.fragment,t)},m(t,l){M(e,t,l),a=!0},p(t,[l]){const s={};l&4&&(s.selected=t[2]),l&1&&(s.description=t[0]),l&2050&&(s.$$scope={dirty:l,ctx:t}),e.$set(s)},i(t){a||(_(e.$$.fragment,t),a=!0)},o(t){b(e.$$.fragment,t),a=!1},d(t){I(e,t)}}}function Ke(n,e,a){let t,l,{$$slots:s={},$$scope:r}=e;const{selectValue:f,handleChange:o,options:u}=ye(ie);N(n,f,d=>a(8,l=d)),N(n,u,d=>a(13,t=d));const c=ke();let{value:m}=e,{description:D=""}=e,g=!1,v,h,O,y;ae(()=>{h&&(y=h.textContent,t.push({value:m,label:y,nativeElement:O}))}),Ee(()=>{let d=t.findIndex(R=>R.value===m);d!==void 0&&t.splice(d,1)});const T=()=>{o(v),c("click",{value:v})};function S(d){Le[d?"unshift":"push"](()=>{h=d,a(1,h)})}return n.$$set=d=>{"value"in d&&a(6,m=d.value),"description"in d&&a(0,D=d.description),"$$scope"in d&&a(11,r=d.$$scope)},n.$$.update=()=>{n.$$.dirty&450&&h&&(a(7,v=m??h.textContent),a(2,g=l===v),y=h.textContent)},[D,h,g,f,u,T,m,v,l,s,S,r]}class nt extends te{constructor(e){super(),le(this,e,Ke,Ge,ne,{value:6,description:0})}}export{nt as O,lt as S,tt as a,et as b,xe as g,ue as m,$e as w}; diff --git a/ui/assets/local/_app/immutable/chunks/paginated.ee0f9410.js b/ui/assets/local/_app/immutable/chunks/paginated.c754f9f4.js similarity index 78% rename from ui/assets/local/_app/immutable/chunks/paginated.ee0f9410.js rename to ui/assets/local/_app/immutable/chunks/paginated.c754f9f4.js index 82d98a0ce0..ec04d66091 100644 --- a/ui/assets/local/_app/immutable/chunks/paginated.ee0f9410.js +++ b/ui/assets/local/_app/immutable/chunks/paginated.c754f9f4.js @@ -1 +1 @@ -import{h as g}from"./route-for-api.60228029.js";import{i as c}from"./persist-store.2e269d08.js";const p=(i={},e={})=>{const s={...i};for(const r of Object.keys(e)){const t=s[r];Array.isArray(t)?s[r]=s[r].concat(e[r]):typeof t=="object"&&!Array.isArray(t)?s[r]=p(s[r],e[r]):s[r]=e[r]}return s},k=async(i,{onStart:e,onUpdate:s,onComplete:r,onError:t=g,token:u,previousProps:n}={})=>{!n&&c(e)&&e();try{const a=await i(u),{nextPageToken:f,...y}=a,o=p(n,y);return c(s)&&s(o,y),f?k(i,{onStart:e,onUpdate:s,onComplete:r,token:f,previousProps:o}):(c(r)&&r(o),o)}catch(a){t(a)}};export{k as p}; +import{h as g}from"./route-for-api.d45de563.js";import{i as c}from"./persist-store.8930b3b5.js";const p=(i={},e={})=>{const s={...i};for(const r of Object.keys(e)){const t=s[r];Array.isArray(t)?s[r]=s[r].concat(e[r]):typeof t=="object"&&!Array.isArray(t)?s[r]=p(s[r],e[r]):s[r]=e[r]}return s},k=async(i,{onStart:e,onUpdate:s,onComplete:r,onError:t=g,token:u,previousProps:n}={})=>{!n&&c(e)&&e();try{const a=await i(u),{nextPageToken:f,...y}=a,o=p(n,y);return c(s)&&s(o,y),f?k(i,{onStart:e,onUpdate:s,onComplete:r,token:f,previousProps:o}):(c(r)&&r(o),o)}catch(a){t(a)}};export{k as p}; diff --git a/ui/assets/local/_app/immutable/chunks/pagination.8a23314e.js b/ui/assets/local/_app/immutable/chunks/pagination.605d1f82.js similarity index 98% rename from ui/assets/local/_app/immutable/chunks/pagination.8a23314e.js rename to ui/assets/local/_app/immutable/chunks/pagination.605d1f82.js index 6b3c84c617..8305a3b6dc 100644 --- a/ui/assets/local/_app/immutable/chunks/pagination.8a23314e.js +++ b/ui/assets/local/_app/immutable/chunks/pagination.605d1f82.js @@ -1 +1 @@ -import{S as ot,b as rt,a as ft,a3 as qe,G as ie,m as k,c as q,p as A,q as S,k as g,d as G,u as d,P as ae,Z as Ge,f as X,L as p,am as ut,Q as fe,H as ne,I as oe,J as re,j as h,z as Ae,g as E,h as Se,r as st,T as Je,K as _t,ah as ct,o as mt,N as Qe,U as bt,C as Ee,D as Ne,E as Le,F as Be,n as ue,s as dt,w as y,x,y as ge}from"./index.4e2fcbc7.js";import{p as vt}from"./stores.14a97433.js";import{p as gt,a as he,M as Ze,o as Ue,d as pt,b as It,F as it}from"./pagination.ee9074bd.js";import{S as nt}from"./index.8b5c6ff3.js";import{u as Ve}from"./update-query-parameters.dc7e7d75.js";const ht=({width:e,height:t,screenWidth:s,breakpoint:a=1279})=>e&&t&&s>a?`position: absolute; right: ${e+20}px; top: -${t}px`:"";const wt=e=>({visibleItems:e[0]&512,initialItem:e[0]&512,activeRowIndex:e[0]&512,setActiveRowIndex:e[0]&128}),Xe=e=>({visibleItems:e[9].items,initialItem:e[9].initialItem,activeRowIndex:e[9].activeRowIndex,setActiveRowIndex:e[7].setActiveRowIndex}),Pt=e=>({visibleItems:e[0]&512,initialItem:e[0]&512,activeRowIndex:e[0]&512,setActiveRowIndex:e[0]&128}),Ye=e=>({visibleItems:e[9].items,initialItem:e[9].initialItem,activeRowIndex:e[9].activeRowIndex,setActiveRowIndex:e[7].setActiveRowIndex}),Rt=e=>({visibleItems:e[0]&512,initialItem:e[0]&512,activeRowIndex:e[0]&512,setActiveRowIndex:e[0]&128}),ye=e=>({visibleItems:e[9].items,initialItem:e[9].initialItem,activeRowIndex:e[9].activeRowIndex,setActiveRowIndex:e[7].setActiveRowIndex}),kt=e=>({visibleItems:e[0]&512,initialItem:e[0]&512,activeRowIndex:e[0]&512,setActiveRowIndex:e[0]&128}),xe=e=>({visibleItems:e[9].items,initialItem:e[9].initialItem,activeRowIndex:e[9].activeRowIndex,setActiveRowIndex:e[7].setActiveRowIndex}),At=e=>({visibleItems:e[0]&512,initialItem:e[0]&512,activeRowIndex:e[0]&512,setActiveRowIndex:e[0]&128}),$e=e=>({visibleItems:e[9].items,initialItem:e[9].initialItem,activeRowIndex:e[9].activeRowIndex,setActiveRowIndex:e[7].setActiveRowIndex}),St=e=>({visibleItems:e[0]&512,initialItem:e[0]&512,activeRowIndex:e[0]&512,setActiveRowIndex:e[0]&128}),et=e=>({visibleItems:e[9].items,initialItem:e[9].initialItem,activeRowIndex:e[9].activeRowIndex,setActiveRowIndex:e[7].setActiveRowIndex}),Et=e=>({visibleItems:e[0]&512,initialItem:e[0]&512,activeRowIndex:e[0]&512,setActiveRowIndex:e[0]&128}),tt=e=>({visibleItems:e[9].items,initialItem:e[9].initialItem,activeRowIndex:e[9].activeRowIndex,setActiveRowIndex:e[7].setActiveRowIndex});function lt(e){let t,s;return t=new it({props:{label:e[2],parameter:he,value:e[8],options:Ue,position:"top"}}),{c(){Ee(t.$$.fragment)},l(a){Ne(t.$$.fragment,a)},m(a,n){Le(t,a,n),s=!0},p(a,n){const o={};n[0]&4&&(o.label=a[2]),n[0]&256&&(o.value=a[8]),t.$set(o)},i(a){s||(h(t.$$.fragment,a),s=!0)},o(a){E(t.$$.fragment,a),s=!1},d(a){Be(t,a)}}}function Nt(e){let t=(e[9].length?e[9].startingIndex+1:0)+"",s,a,n=e[9].endingIndex+1+"",o,I,u=e[9].length+"",m;return{c(){s=y(t),a=y("–"),o=y(n),I=y(" of "),m=y(u)},l(i){s=x(i,t),a=x(i,"–"),o=x(i,n),I=x(i," of "),m=x(i,u)},m(i,f){X(i,s,f),X(i,a,f),X(i,o,f),X(i,I,f),X(i,m,f)},p(i,f){f[0]&512&&t!==(t=(i[9].length?i[9].startingIndex+1:0)+"")&&ge(s,t),f[0]&512&&n!==(n=i[9].endingIndex+1+"")&&ge(o,n),f[0]&512&&u!==(u=i[9].length+"")&&ge(m,u)},i:ue,o:ue,d(i){i&&g(s),i&&g(a),i&&g(o),i&&g(I),i&&g(m)}}}function Lt(e){let t,s;return t=new nt({props:{class:"block h-5 w-24"}}),{c(){Ee(t.$$.fragment)},l(a){Ne(t.$$.fragment,a)},m(a,n){Le(t,a,n),s=!0},p:ue,i(a){s||(h(t.$$.fragment,a),s=!0)},o(a){E(t.$$.fragment,a),s=!1},d(a){Be(t,a)}}}function Bt(e){let t,s,a,n,o,I,u,m,i,f,J,z,B,N,ee;const R=[Lt,Nt],K=[];function L(_,v){return _[1]?0:1}return u=L(e),m=K[u]=R[u](e),{c(){t=k("div"),s=k("button"),a=k("span"),o=q(),I=k("p"),m.c(),i=q(),f=k("button"),J=k("span"),this.h()},l(_){t=A(_,"DIV",{class:!0});var v=S(t);s=A(v,"BUTTON",{class:!0,"aria-label":!0});var T=S(s);a=A(T,"SPAN",{class:!0}),S(a).forEach(g),T.forEach(g),o=G(v),I=A(v,"P",{});var $=S(I);m.l($),$.forEach(g),i=G(v),f=A(v,"BUTTON",{class:!0,"aria-label":!0});var Q=S(f);J=A(Q,"SPAN",{class:!0}),S(J).forEach(g),Q.forEach(g),v.forEach(g),this.h()},h(){d(a,"class","arrow arrow-left svelte-1780ds3"),ae(a,"arrow-left-disabled",!e[9].hasPrevious),d(s,"class","caret svelte-1780ds3"),s.disabled=n=!e[9].hasPrevious,d(s,"aria-label",e[3]),d(J,"class","arrow arrow-right svelte-1780ds3"),ae(J,"arrow-right-disabled",!e[9].hasNext),d(f,"class","caret svelte-1780ds3"),f.disabled=z=!e[9].hasNext,d(f,"aria-label",e[4]),d(t,"class","flex items-center justify-center gap-3")},m(_,v){X(_,t,v),p(t,s),p(s,a),p(t,o),p(t,I),K[u].m(I,null),p(t,i),p(t,f),p(f,J),B=!0,N||(ee=[fe(s,"click",e[27]),fe(f,"click",e[28])],N=!0)},p(_,v){(!B||v[0]&512)&&ae(a,"arrow-left-disabled",!_[9].hasPrevious),(!B||v[0]&512&&n!==(n=!_[9].hasPrevious))&&(s.disabled=n),(!B||v[0]&8)&&d(s,"aria-label",_[3]);let T=u;u=L(_),u===T?K[u].p(_,v):(Ae(),E(K[T],1,1,()=>{K[T]=null}),Se(),m=K[u],m?m.p(_,v):(m=K[u]=R[u](_),m.c()),h(m,1),m.m(I,null)),(!B||v[0]&512)&&ae(J,"arrow-right-disabled",!_[9].hasNext),(!B||v[0]&512&&z!==(z=!_[9].hasNext))&&(f.disabled=z),(!B||v[0]&16)&&d(f,"aria-label",_[4])},i(_){B||(h(m),B=!0)},o(_){E(m),B=!1},d(_){_&&g(t),K[u].d(),N=!1,st(ee)}}}function at(e){let t,s;return t=new it({props:{label:e[2],parameter:he,value:e[8],options:Ue,position:"bottom"}}),{c(){Ee(t.$$.fragment)},l(a){Ne(t.$$.fragment,a)},m(a,n){Le(t,a,n),s=!0},p(a,n){const o={};n[0]&4&&(o.label=a[2]),n[0]&256&&(o.value=a[8]),t.$set(o)},i(a){s||(h(t.$$.fragment,a),s=!0)},o(a){E(t.$$.fragment,a),s=!1},d(a){Be(t,a)}}}function Kt(e){let t=(e[9].length?e[9].startingIndex+1:0)+"",s,a,n=e[9].endingIndex+1+"",o,I,u=e[9].length+"",m;return{c(){s=y(t),a=y("–"),o=y(n),I=y(" of "),m=y(u)},l(i){s=x(i,t),a=x(i,"–"),o=x(i,n),I=x(i," of "),m=x(i,u)},m(i,f){X(i,s,f),X(i,a,f),X(i,o,f),X(i,I,f),X(i,m,f)},p(i,f){f[0]&512&&t!==(t=(i[9].length?i[9].startingIndex+1:0)+"")&&ge(s,t),f[0]&512&&n!==(n=i[9].endingIndex+1+"")&&ge(o,n),f[0]&512&&u!==(u=i[9].length+"")&&ge(m,u)},i:ue,o:ue,d(i){i&&g(s),i&&g(a),i&&g(o),i&&g(I),i&&g(m)}}}function zt(e){let t,s;return t=new nt({props:{class:"block h-5 w-24"}}),{c(){Ee(t.$$.fragment)},l(a){Ne(t.$$.fragment,a)},m(a,n){Le(t,a,n),s=!0},p:ue,i(a){s||(h(t.$$.fragment,a),s=!0)},o(a){E(t.$$.fragment,a),s=!1},d(a){Be(t,a)}}}function Tt(e){let t,s,a,n,o,I,u,m,i,f,J,z,B,N,ee,R,K,L,_,v,T,$,Q,j,D,se,V,Z,Y,_e,ce,me,b,pe,we;qe(e[26]);const Ie=e[25]["action-top-left"],U=ie(Ie,e,e[24],tt),c=e[25]["action-top-center"],F=ie(c,e,e[24],et);let w=!e[0]&<(e);const Ke=e[25]["pagination-top"],Pe=ie(Ke,e,e[24],$e),O=Pe||Bt(e),ze=e[25]["action-top-right"],W=ie(ze,e,e[24],xe),Te=e[25].default,C=ie(Te,e,e[24],ye),je=e[25]["action-bottom-left"],H=ie(je,e,e[24],Ye);let P=!e[0]&&at(e);const Fe=[zt,Kt],te=[];function Oe(l,r){return l[1]?0:1}j=Oe(e),D=te[j]=Fe[j](e);const De=e[25]["action-bottom-right"],M=ie(De,e,e[24],Xe);return{c(){t=k("div"),s=k("div"),a=k("div"),U&&U.c(),n=q(),o=k("nav"),F&&F.c(),I=q(),u=k("div"),w&&w.c(),m=q(),O&&O.c(),i=q(),W&&W.c(),z=q(),C&&C.c(),B=q(),N=k("nav"),H&&H.c(),ee=q(),R=k("div"),P&&P.c(),K=q(),L=k("div"),_=k("button"),v=k("span"),$=q(),Q=k("p"),D.c(),se=q(),V=k("button"),Z=k("span"),_e=q(),M&&M.c(),this.h()},l(l){t=A(l,"DIV",{class:!0});var r=S(t);s=A(r,"DIV",{class:!0});var le=S(s);a=A(le,"DIV",{class:!0});var We=S(a);U&&U.l(We),We.forEach(g),n=G(le),o=A(le,"NAV",{style:!0,class:!0,"aria-label":!0});var be=S(o);F&&F.l(be),I=G(be),u=A(be,"DIV",{class:!0});var Re=S(u);w&&w.l(Re),m=G(Re),O&&O.l(Re),Re.forEach(g),i=G(be),W&&W.l(be),be.forEach(g),le.forEach(g),z=G(r),C&&C.l(r),B=G(r),N=A(r,"NAV",{class:!0,"aria-label":!0});var ke=S(N);H&&H.l(ke),ee=G(ke),R=A(ke,"DIV",{class:!0});var de=S(R);P&&P.l(de),K=G(de),L=A(de,"DIV",{class:!0});var ve=S(L);_=A(ve,"BUTTON",{class:!0,"aria-label":!0});var Ce=S(_);v=A(Ce,"SPAN",{class:!0}),S(v).forEach(g),Ce.forEach(g),$=G(ve),Q=A(ve,"P",{});var He=S(Q);D.l(He),He.forEach(g),se=G(ve),V=A(ve,"BUTTON",{class:!0,"aria-label":!0});var Me=S(V);Z=A(Me,"SPAN",{class:!0}),S(Z).forEach(g),Me.forEach(g),ve.forEach(g),_e=G(de),M&&M.l(de),de.forEach(g),ke.forEach(g),r.forEach(g),this.h()},h(){d(a,"class","w-full"),d(u,"class","flex gap-4"),d(o,"style",e[10]),d(o,"class","flex min-w-fit flex-col items-end gap-4 md:flex-row"),d(o,"aria-label",f=e[14]["aria-label"]+" 1"),qe(()=>e[29].call(o)),d(s,"class","flex flex-col items-end justify-end gap-4 lg:flex-row lg:items-start"),d(v,"class","arrow arrow-left svelte-1780ds3"),ae(v,"arrow-left-disabled",!e[9].hasPrevious),d(_,"class","caret svelte-1780ds3"),_.disabled=T=!e[9].hasPrevious,d(_,"aria-label",e[3]),d(Z,"class","arrow arrow-right svelte-1780ds3"),ae(Z,"arrow-right-disabled",!e[9].hasNext),d(V,"class","caret svelte-1780ds3"),V.disabled=Y=!e[9].hasNext,d(V,"aria-label",e[4]),d(L,"class","flex items-center justify-center gap-3"),d(R,"class","flex gap-4"),d(N,"class",ce=Ge(`flex ${e[15]["action-bottom-left"]?"justify-between":"justify-end"}`)+" svelte-1780ds3"),d(N,"aria-label",me=e[14]["aria-label"]+" 2"),d(t,"class","pagination relative mb-8 flex flex-col gap-4")},m(l,r){X(l,t,r),p(t,s),p(s,a),U&&U.m(a,null),p(s,n),p(s,o),F&&F.m(o,null),p(o,I),p(o,u),w&&w.m(u,null),p(u,m),O&&O.m(u,null),p(o,i),W&&W.m(o,null),J=ut(o,e[29].bind(o)),p(t,z),C&&C.m(t,null),p(t,B),p(t,N),H&&H.m(N,null),p(N,ee),p(N,R),P&&P.m(R,null),p(R,K),p(R,L),p(L,_),p(_,v),p(L,$),p(L,Q),te[j].m(Q,null),p(L,se),p(L,V),p(V,Z),p(R,_e),M&&M.m(R,null),b=!0,pe||(we=[fe(window,"resize",e[12]),fe(window,"keydown",e[13]),fe(window,"resize",e[26]),fe(_,"click",e[30]),fe(V,"click",e[31])],pe=!0)},p(l,r){U&&U.p&&(!b||r[0]&16777856)&&ne(U,Ie,l,l[24],b?re(Ie,l[24],r,Et):oe(l[24]),tt),F&&F.p&&(!b||r[0]&16777856)&&ne(F,c,l,l[24],b?re(c,l[24],r,St):oe(l[24]),et),l[0]?w&&(Ae(),E(w,1,1,()=>{w=null}),Se()):w?(w.p(l,r),r[0]&1&&h(w,1)):(w=lt(l),w.c(),h(w,1),w.m(u,m)),Pe?Pe.p&&(!b||r[0]&16777856)&&ne(Pe,Ke,l,l[24],b?re(Ke,l[24],r,At):oe(l[24]),$e):O&&O.p&&(!b||r[0]&666)&&O.p(l,b?r:[-1,-1]),W&&W.p&&(!b||r[0]&16777856)&&ne(W,ze,l,l[24],b?re(ze,l[24],r,kt):oe(l[24]),xe),(!b||r[0]&1024)&&d(o,"style",l[10]),(!b||r[0]&16384&&f!==(f=l[14]["aria-label"]+" 1"))&&d(o,"aria-label",f),C&&C.p&&(!b||r[0]&16777856)&&ne(C,Te,l,l[24],b?re(Te,l[24],r,Rt):oe(l[24]),ye),H&&H.p&&(!b||r[0]&16777856)&&ne(H,je,l,l[24],b?re(je,l[24],r,Pt):oe(l[24]),Ye),l[0]?P&&(Ae(),E(P,1,1,()=>{P=null}),Se()):P?(P.p(l,r),r[0]&1&&h(P,1)):(P=at(l),P.c(),h(P,1),P.m(R,K)),(!b||r[0]&512)&&ae(v,"arrow-left-disabled",!l[9].hasPrevious),(!b||r[0]&512&&T!==(T=!l[9].hasPrevious))&&(_.disabled=T),(!b||r[0]&8)&&d(_,"aria-label",l[3]);let le=j;j=Oe(l),j===le?te[j].p(l,r):(Ae(),E(te[le],1,1,()=>{te[le]=null}),Se(),D=te[j],D?D.p(l,r):(D=te[j]=Fe[j](l),D.c()),h(D,1),D.m(Q,null)),(!b||r[0]&512)&&ae(Z,"arrow-right-disabled",!l[9].hasNext),(!b||r[0]&512&&Y!==(Y=!l[9].hasNext))&&(V.disabled=Y),(!b||r[0]&16)&&d(V,"aria-label",l[4]),M&&M.p&&(!b||r[0]&16777856)&&ne(M,De,l,l[24],b?re(De,l[24],r,wt):oe(l[24]),Xe),(!b||r[0]&32768&&ce!==(ce=Ge(`flex ${l[15]["action-bottom-left"]?"justify-between":"justify-end"}`)+" svelte-1780ds3"))&&d(N,"class",ce),(!b||r[0]&16384&&me!==(me=l[14]["aria-label"]+" 2"))&&d(N,"aria-label",me)},i(l){b||(h(U,l),h(F,l),h(w),h(O,l),h(W,l),h(C,l),h(H,l),h(P),h(D),h(M,l),b=!0)},o(l){E(U,l),E(F,l),E(w),E(O,l),E(W,l),E(C,l),E(H,l),E(P),E(D),E(M,l),b=!1},d(l){l&&g(t),U&&U.d(l),F&&F.d(l),w&&w.d(),O&&O.d(l),W&&W.d(l),J(),C&&C.d(l),H&&H.d(l),P&&P.d(),te[j].d(),M&&M.d(l),pe=!1,st(we)}}}function jt(e,t,s){let a,n,o,I;const u=["items","floatId","startingIndex","currentPageKey","itemsPerPage","updating","pageSizeSelectLabel","previousButtonLabel","nextButtonLabel"];let m=Je(t,u),i,f=ue,J=()=>(f(),f=dt(n,c=>s(9,i=c)),n),z;_t(e,vt,c=>s(23,z=c)),e.$$.on_destroy.push(()=>f());let{$$slots:B={},$$scope:N}=t;const ee=ct(B);var R;let{items:K}=t,{floatId:L=void 0}=t,{startingIndex:_=0}=t,{currentPageKey:v="page"}=t,{itemsPerPage:T=null}=t,{updating:$=!1}=t,{pageSizeSelectLabel:Q}=t,{previousButtonLabel:j}=t,{nextButtonLabel:D}=t,se,V,Z;mt(()=>{_e(),Number(_)>0&&Y()});const Y=()=>{Ve({parameter:v,value:i.currentPage,url:z.url})},_e=()=>{var c;L&&s(21,V=(c=document.getElementById(L))===null||c===void 0?void 0:c.clientWidth)};async function ce(c){switch(c.code){case"ArrowRight":case"KeyL":i.hasNext&&(n.next(),Y());break;case"ArrowLeft":case"KeyH":i.hasPrevious&&(n.previous(),Y());break;case"ArrowUp":case"KeyK":n.previousRow();break;case"ArrowDown":case"KeyJ":n.nextRow();break}}function me(){s(5,se=window.innerWidth)}const b=()=>{n.previous(),Y()},pe=()=>{n.next(),Y()};function we(){Z=this.clientHeight,s(6,Z)}const Ie=()=>n.previous(),U=()=>n.next();return e.$$set=c=>{t=Qe(Qe({},t),bt(c)),s(14,m=Je(t,u)),"items"in c&&s(16,K=c.items),"floatId"in c&&s(17,L=c.floatId),"startingIndex"in c&&s(18,_=c.startingIndex),"currentPageKey"in c&&s(19,v=c.currentPageKey),"itemsPerPage"in c&&s(0,T=c.itemsPerPage),"updating"in c&&s(1,$=c.updating),"pageSizeSelectLabel"in c&&s(2,Q=c.pageSizeSelectLabel),"previousButtonLabel"in c&&s(3,j=c.previousButtonLabel),"nextButtonLabel"in c&&s(4,D=c.nextButtonLabel),"$$scope"in c&&s(24,N=c.$$scope)},e.$$.update=()=>{e.$$.dirty[0]&8388609&&s(8,a=T!==null?String(T):String(gt(z.url.searchParams.get(he))).toString()),e.$$.dirty[0]&8388864&&(parseInt(a,10)>parseInt(Ze,10)?Ve({parameter:he,value:Ze,url:z.url}):Ue.includes(a)||Ve({parameter:he,value:pt,url:z.url})),e.$$.dirty[0]&327936&&J(s(7,n=It(K,a,_))),e.$$.dirty[0]&9961984&&s(22,o=s(20,R=z.url.searchParams.get(v))!==null&&R!==void 0?R:i.currentPage),e.$$.dirty[0]&4194432&&n.jumpToPage(o),e.$$.dirty[0]&2097248&&s(10,I=ht({width:V,height:Z,screenWidth:se}))},[T,$,Q,j,D,se,Z,n,a,i,I,Y,_e,ce,m,ee,K,L,_,v,R,V,o,z,N,B,me,b,pe,we,Ie,U]}class Wt extends ot{constructor(t){super(),rt(this,t,jt,Tt,ft,{items:16,floatId:17,startingIndex:18,currentPageKey:19,itemsPerPage:0,updating:1,pageSizeSelectLabel:2,previousButtonLabel:3,nextButtonLabel:4},null,[-1,-1])}}export{Wt as P}; +import{S as ot,b as rt,a as ft,a3 as qe,G as ie,m as k,c as q,p as A,q as S,k as g,d as G,u as d,P as ae,Z as Ge,f as X,L as p,am as ut,Q as fe,H as ne,I as oe,J as re,j as h,z as Ae,g as E,h as Se,r as st,T as Je,K as _t,ah as ct,o as mt,N as Qe,U as bt,C as Ee,D as Ne,E as Le,F as Be,n as ue,s as dt,w as y,x,y as ge}from"./index.4e2fcbc7.js";import{p as vt}from"./stores.0e7b7e35.js";import{p as gt,a as he,M as Ze,o as Ue,d as pt,b as It,F as it}from"./pagination.aba14fc4.js";import{S as nt}from"./index.8b5c6ff3.js";import{u as Ve}from"./update-query-parameters.64a6ca26.js";const ht=({width:e,height:t,screenWidth:s,breakpoint:a=1279})=>e&&t&&s>a?`position: absolute; right: ${e+20}px; top: -${t}px`:"";const wt=e=>({visibleItems:e[0]&512,initialItem:e[0]&512,activeRowIndex:e[0]&512,setActiveRowIndex:e[0]&128}),Xe=e=>({visibleItems:e[9].items,initialItem:e[9].initialItem,activeRowIndex:e[9].activeRowIndex,setActiveRowIndex:e[7].setActiveRowIndex}),Pt=e=>({visibleItems:e[0]&512,initialItem:e[0]&512,activeRowIndex:e[0]&512,setActiveRowIndex:e[0]&128}),Ye=e=>({visibleItems:e[9].items,initialItem:e[9].initialItem,activeRowIndex:e[9].activeRowIndex,setActiveRowIndex:e[7].setActiveRowIndex}),Rt=e=>({visibleItems:e[0]&512,initialItem:e[0]&512,activeRowIndex:e[0]&512,setActiveRowIndex:e[0]&128}),ye=e=>({visibleItems:e[9].items,initialItem:e[9].initialItem,activeRowIndex:e[9].activeRowIndex,setActiveRowIndex:e[7].setActiveRowIndex}),kt=e=>({visibleItems:e[0]&512,initialItem:e[0]&512,activeRowIndex:e[0]&512,setActiveRowIndex:e[0]&128}),xe=e=>({visibleItems:e[9].items,initialItem:e[9].initialItem,activeRowIndex:e[9].activeRowIndex,setActiveRowIndex:e[7].setActiveRowIndex}),At=e=>({visibleItems:e[0]&512,initialItem:e[0]&512,activeRowIndex:e[0]&512,setActiveRowIndex:e[0]&128}),$e=e=>({visibleItems:e[9].items,initialItem:e[9].initialItem,activeRowIndex:e[9].activeRowIndex,setActiveRowIndex:e[7].setActiveRowIndex}),St=e=>({visibleItems:e[0]&512,initialItem:e[0]&512,activeRowIndex:e[0]&512,setActiveRowIndex:e[0]&128}),et=e=>({visibleItems:e[9].items,initialItem:e[9].initialItem,activeRowIndex:e[9].activeRowIndex,setActiveRowIndex:e[7].setActiveRowIndex}),Et=e=>({visibleItems:e[0]&512,initialItem:e[0]&512,activeRowIndex:e[0]&512,setActiveRowIndex:e[0]&128}),tt=e=>({visibleItems:e[9].items,initialItem:e[9].initialItem,activeRowIndex:e[9].activeRowIndex,setActiveRowIndex:e[7].setActiveRowIndex});function lt(e){let t,s;return t=new it({props:{label:e[2],parameter:he,value:e[8],options:Ue,position:"top"}}),{c(){Ee(t.$$.fragment)},l(a){Ne(t.$$.fragment,a)},m(a,n){Le(t,a,n),s=!0},p(a,n){const o={};n[0]&4&&(o.label=a[2]),n[0]&256&&(o.value=a[8]),t.$set(o)},i(a){s||(h(t.$$.fragment,a),s=!0)},o(a){E(t.$$.fragment,a),s=!1},d(a){Be(t,a)}}}function Nt(e){let t=(e[9].length?e[9].startingIndex+1:0)+"",s,a,n=e[9].endingIndex+1+"",o,I,u=e[9].length+"",m;return{c(){s=y(t),a=y("–"),o=y(n),I=y(" of "),m=y(u)},l(i){s=x(i,t),a=x(i,"–"),o=x(i,n),I=x(i," of "),m=x(i,u)},m(i,f){X(i,s,f),X(i,a,f),X(i,o,f),X(i,I,f),X(i,m,f)},p(i,f){f[0]&512&&t!==(t=(i[9].length?i[9].startingIndex+1:0)+"")&&ge(s,t),f[0]&512&&n!==(n=i[9].endingIndex+1+"")&&ge(o,n),f[0]&512&&u!==(u=i[9].length+"")&&ge(m,u)},i:ue,o:ue,d(i){i&&g(s),i&&g(a),i&&g(o),i&&g(I),i&&g(m)}}}function Lt(e){let t,s;return t=new nt({props:{class:"block h-5 w-24"}}),{c(){Ee(t.$$.fragment)},l(a){Ne(t.$$.fragment,a)},m(a,n){Le(t,a,n),s=!0},p:ue,i(a){s||(h(t.$$.fragment,a),s=!0)},o(a){E(t.$$.fragment,a),s=!1},d(a){Be(t,a)}}}function Bt(e){let t,s,a,n,o,I,u,m,i,f,J,z,B,N,ee;const R=[Lt,Nt],K=[];function L(_,v){return _[1]?0:1}return u=L(e),m=K[u]=R[u](e),{c(){t=k("div"),s=k("button"),a=k("span"),o=q(),I=k("p"),m.c(),i=q(),f=k("button"),J=k("span"),this.h()},l(_){t=A(_,"DIV",{class:!0});var v=S(t);s=A(v,"BUTTON",{class:!0,"aria-label":!0});var T=S(s);a=A(T,"SPAN",{class:!0}),S(a).forEach(g),T.forEach(g),o=G(v),I=A(v,"P",{});var $=S(I);m.l($),$.forEach(g),i=G(v),f=A(v,"BUTTON",{class:!0,"aria-label":!0});var Q=S(f);J=A(Q,"SPAN",{class:!0}),S(J).forEach(g),Q.forEach(g),v.forEach(g),this.h()},h(){d(a,"class","arrow arrow-left svelte-1780ds3"),ae(a,"arrow-left-disabled",!e[9].hasPrevious),d(s,"class","caret svelte-1780ds3"),s.disabled=n=!e[9].hasPrevious,d(s,"aria-label",e[3]),d(J,"class","arrow arrow-right svelte-1780ds3"),ae(J,"arrow-right-disabled",!e[9].hasNext),d(f,"class","caret svelte-1780ds3"),f.disabled=z=!e[9].hasNext,d(f,"aria-label",e[4]),d(t,"class","flex items-center justify-center gap-3")},m(_,v){X(_,t,v),p(t,s),p(s,a),p(t,o),p(t,I),K[u].m(I,null),p(t,i),p(t,f),p(f,J),B=!0,N||(ee=[fe(s,"click",e[27]),fe(f,"click",e[28])],N=!0)},p(_,v){(!B||v[0]&512)&&ae(a,"arrow-left-disabled",!_[9].hasPrevious),(!B||v[0]&512&&n!==(n=!_[9].hasPrevious))&&(s.disabled=n),(!B||v[0]&8)&&d(s,"aria-label",_[3]);let T=u;u=L(_),u===T?K[u].p(_,v):(Ae(),E(K[T],1,1,()=>{K[T]=null}),Se(),m=K[u],m?m.p(_,v):(m=K[u]=R[u](_),m.c()),h(m,1),m.m(I,null)),(!B||v[0]&512)&&ae(J,"arrow-right-disabled",!_[9].hasNext),(!B||v[0]&512&&z!==(z=!_[9].hasNext))&&(f.disabled=z),(!B||v[0]&16)&&d(f,"aria-label",_[4])},i(_){B||(h(m),B=!0)},o(_){E(m),B=!1},d(_){_&&g(t),K[u].d(),N=!1,st(ee)}}}function at(e){let t,s;return t=new it({props:{label:e[2],parameter:he,value:e[8],options:Ue,position:"bottom"}}),{c(){Ee(t.$$.fragment)},l(a){Ne(t.$$.fragment,a)},m(a,n){Le(t,a,n),s=!0},p(a,n){const o={};n[0]&4&&(o.label=a[2]),n[0]&256&&(o.value=a[8]),t.$set(o)},i(a){s||(h(t.$$.fragment,a),s=!0)},o(a){E(t.$$.fragment,a),s=!1},d(a){Be(t,a)}}}function Kt(e){let t=(e[9].length?e[9].startingIndex+1:0)+"",s,a,n=e[9].endingIndex+1+"",o,I,u=e[9].length+"",m;return{c(){s=y(t),a=y("–"),o=y(n),I=y(" of "),m=y(u)},l(i){s=x(i,t),a=x(i,"–"),o=x(i,n),I=x(i," of "),m=x(i,u)},m(i,f){X(i,s,f),X(i,a,f),X(i,o,f),X(i,I,f),X(i,m,f)},p(i,f){f[0]&512&&t!==(t=(i[9].length?i[9].startingIndex+1:0)+"")&&ge(s,t),f[0]&512&&n!==(n=i[9].endingIndex+1+"")&&ge(o,n),f[0]&512&&u!==(u=i[9].length+"")&&ge(m,u)},i:ue,o:ue,d(i){i&&g(s),i&&g(a),i&&g(o),i&&g(I),i&&g(m)}}}function zt(e){let t,s;return t=new nt({props:{class:"block h-5 w-24"}}),{c(){Ee(t.$$.fragment)},l(a){Ne(t.$$.fragment,a)},m(a,n){Le(t,a,n),s=!0},p:ue,i(a){s||(h(t.$$.fragment,a),s=!0)},o(a){E(t.$$.fragment,a),s=!1},d(a){Be(t,a)}}}function Tt(e){let t,s,a,n,o,I,u,m,i,f,J,z,B,N,ee,R,K,L,_,v,T,$,Q,j,D,se,V,Z,Y,_e,ce,me,b,pe,we;qe(e[26]);const Ie=e[25]["action-top-left"],U=ie(Ie,e,e[24],tt),c=e[25]["action-top-center"],F=ie(c,e,e[24],et);let w=!e[0]&<(e);const Ke=e[25]["pagination-top"],Pe=ie(Ke,e,e[24],$e),O=Pe||Bt(e),ze=e[25]["action-top-right"],W=ie(ze,e,e[24],xe),Te=e[25].default,C=ie(Te,e,e[24],ye),je=e[25]["action-bottom-left"],H=ie(je,e,e[24],Ye);let P=!e[0]&&at(e);const Fe=[zt,Kt],te=[];function Oe(l,r){return l[1]?0:1}j=Oe(e),D=te[j]=Fe[j](e);const De=e[25]["action-bottom-right"],M=ie(De,e,e[24],Xe);return{c(){t=k("div"),s=k("div"),a=k("div"),U&&U.c(),n=q(),o=k("nav"),F&&F.c(),I=q(),u=k("div"),w&&w.c(),m=q(),O&&O.c(),i=q(),W&&W.c(),z=q(),C&&C.c(),B=q(),N=k("nav"),H&&H.c(),ee=q(),R=k("div"),P&&P.c(),K=q(),L=k("div"),_=k("button"),v=k("span"),$=q(),Q=k("p"),D.c(),se=q(),V=k("button"),Z=k("span"),_e=q(),M&&M.c(),this.h()},l(l){t=A(l,"DIV",{class:!0});var r=S(t);s=A(r,"DIV",{class:!0});var le=S(s);a=A(le,"DIV",{class:!0});var We=S(a);U&&U.l(We),We.forEach(g),n=G(le),o=A(le,"NAV",{style:!0,class:!0,"aria-label":!0});var be=S(o);F&&F.l(be),I=G(be),u=A(be,"DIV",{class:!0});var Re=S(u);w&&w.l(Re),m=G(Re),O&&O.l(Re),Re.forEach(g),i=G(be),W&&W.l(be),be.forEach(g),le.forEach(g),z=G(r),C&&C.l(r),B=G(r),N=A(r,"NAV",{class:!0,"aria-label":!0});var ke=S(N);H&&H.l(ke),ee=G(ke),R=A(ke,"DIV",{class:!0});var de=S(R);P&&P.l(de),K=G(de),L=A(de,"DIV",{class:!0});var ve=S(L);_=A(ve,"BUTTON",{class:!0,"aria-label":!0});var Ce=S(_);v=A(Ce,"SPAN",{class:!0}),S(v).forEach(g),Ce.forEach(g),$=G(ve),Q=A(ve,"P",{});var He=S(Q);D.l(He),He.forEach(g),se=G(ve),V=A(ve,"BUTTON",{class:!0,"aria-label":!0});var Me=S(V);Z=A(Me,"SPAN",{class:!0}),S(Z).forEach(g),Me.forEach(g),ve.forEach(g),_e=G(de),M&&M.l(de),de.forEach(g),ke.forEach(g),r.forEach(g),this.h()},h(){d(a,"class","w-full"),d(u,"class","flex gap-4"),d(o,"style",e[10]),d(o,"class","flex min-w-fit flex-col items-end gap-4 md:flex-row"),d(o,"aria-label",f=e[14]["aria-label"]+" 1"),qe(()=>e[29].call(o)),d(s,"class","flex flex-col items-end justify-end gap-4 lg:flex-row lg:items-start"),d(v,"class","arrow arrow-left svelte-1780ds3"),ae(v,"arrow-left-disabled",!e[9].hasPrevious),d(_,"class","caret svelte-1780ds3"),_.disabled=T=!e[9].hasPrevious,d(_,"aria-label",e[3]),d(Z,"class","arrow arrow-right svelte-1780ds3"),ae(Z,"arrow-right-disabled",!e[9].hasNext),d(V,"class","caret svelte-1780ds3"),V.disabled=Y=!e[9].hasNext,d(V,"aria-label",e[4]),d(L,"class","flex items-center justify-center gap-3"),d(R,"class","flex gap-4"),d(N,"class",ce=Ge(`flex ${e[15]["action-bottom-left"]?"justify-between":"justify-end"}`)+" svelte-1780ds3"),d(N,"aria-label",me=e[14]["aria-label"]+" 2"),d(t,"class","pagination relative mb-8 flex flex-col gap-4")},m(l,r){X(l,t,r),p(t,s),p(s,a),U&&U.m(a,null),p(s,n),p(s,o),F&&F.m(o,null),p(o,I),p(o,u),w&&w.m(u,null),p(u,m),O&&O.m(u,null),p(o,i),W&&W.m(o,null),J=ut(o,e[29].bind(o)),p(t,z),C&&C.m(t,null),p(t,B),p(t,N),H&&H.m(N,null),p(N,ee),p(N,R),P&&P.m(R,null),p(R,K),p(R,L),p(L,_),p(_,v),p(L,$),p(L,Q),te[j].m(Q,null),p(L,se),p(L,V),p(V,Z),p(R,_e),M&&M.m(R,null),b=!0,pe||(we=[fe(window,"resize",e[12]),fe(window,"keydown",e[13]),fe(window,"resize",e[26]),fe(_,"click",e[30]),fe(V,"click",e[31])],pe=!0)},p(l,r){U&&U.p&&(!b||r[0]&16777856)&&ne(U,Ie,l,l[24],b?re(Ie,l[24],r,Et):oe(l[24]),tt),F&&F.p&&(!b||r[0]&16777856)&&ne(F,c,l,l[24],b?re(c,l[24],r,St):oe(l[24]),et),l[0]?w&&(Ae(),E(w,1,1,()=>{w=null}),Se()):w?(w.p(l,r),r[0]&1&&h(w,1)):(w=lt(l),w.c(),h(w,1),w.m(u,m)),Pe?Pe.p&&(!b||r[0]&16777856)&&ne(Pe,Ke,l,l[24],b?re(Ke,l[24],r,At):oe(l[24]),$e):O&&O.p&&(!b||r[0]&666)&&O.p(l,b?r:[-1,-1]),W&&W.p&&(!b||r[0]&16777856)&&ne(W,ze,l,l[24],b?re(ze,l[24],r,kt):oe(l[24]),xe),(!b||r[0]&1024)&&d(o,"style",l[10]),(!b||r[0]&16384&&f!==(f=l[14]["aria-label"]+" 1"))&&d(o,"aria-label",f),C&&C.p&&(!b||r[0]&16777856)&&ne(C,Te,l,l[24],b?re(Te,l[24],r,Rt):oe(l[24]),ye),H&&H.p&&(!b||r[0]&16777856)&&ne(H,je,l,l[24],b?re(je,l[24],r,Pt):oe(l[24]),Ye),l[0]?P&&(Ae(),E(P,1,1,()=>{P=null}),Se()):P?(P.p(l,r),r[0]&1&&h(P,1)):(P=at(l),P.c(),h(P,1),P.m(R,K)),(!b||r[0]&512)&&ae(v,"arrow-left-disabled",!l[9].hasPrevious),(!b||r[0]&512&&T!==(T=!l[9].hasPrevious))&&(_.disabled=T),(!b||r[0]&8)&&d(_,"aria-label",l[3]);let le=j;j=Oe(l),j===le?te[j].p(l,r):(Ae(),E(te[le],1,1,()=>{te[le]=null}),Se(),D=te[j],D?D.p(l,r):(D=te[j]=Fe[j](l),D.c()),h(D,1),D.m(Q,null)),(!b||r[0]&512)&&ae(Z,"arrow-right-disabled",!l[9].hasNext),(!b||r[0]&512&&Y!==(Y=!l[9].hasNext))&&(V.disabled=Y),(!b||r[0]&16)&&d(V,"aria-label",l[4]),M&&M.p&&(!b||r[0]&16777856)&&ne(M,De,l,l[24],b?re(De,l[24],r,wt):oe(l[24]),Xe),(!b||r[0]&32768&&ce!==(ce=Ge(`flex ${l[15]["action-bottom-left"]?"justify-between":"justify-end"}`)+" svelte-1780ds3"))&&d(N,"class",ce),(!b||r[0]&16384&&me!==(me=l[14]["aria-label"]+" 2"))&&d(N,"aria-label",me)},i(l){b||(h(U,l),h(F,l),h(w),h(O,l),h(W,l),h(C,l),h(H,l),h(P),h(D),h(M,l),b=!0)},o(l){E(U,l),E(F,l),E(w),E(O,l),E(W,l),E(C,l),E(H,l),E(P),E(D),E(M,l),b=!1},d(l){l&&g(t),U&&U.d(l),F&&F.d(l),w&&w.d(),O&&O.d(l),W&&W.d(l),J(),C&&C.d(l),H&&H.d(l),P&&P.d(),te[j].d(),M&&M.d(l),pe=!1,st(we)}}}function jt(e,t,s){let a,n,o,I;const u=["items","floatId","startingIndex","currentPageKey","itemsPerPage","updating","pageSizeSelectLabel","previousButtonLabel","nextButtonLabel"];let m=Je(t,u),i,f=ue,J=()=>(f(),f=dt(n,c=>s(9,i=c)),n),z;_t(e,vt,c=>s(23,z=c)),e.$$.on_destroy.push(()=>f());let{$$slots:B={},$$scope:N}=t;const ee=ct(B);var R;let{items:K}=t,{floatId:L=void 0}=t,{startingIndex:_=0}=t,{currentPageKey:v="page"}=t,{itemsPerPage:T=null}=t,{updating:$=!1}=t,{pageSizeSelectLabel:Q}=t,{previousButtonLabel:j}=t,{nextButtonLabel:D}=t,se,V,Z;mt(()=>{_e(),Number(_)>0&&Y()});const Y=()=>{Ve({parameter:v,value:i.currentPage,url:z.url})},_e=()=>{var c;L&&s(21,V=(c=document.getElementById(L))===null||c===void 0?void 0:c.clientWidth)};async function ce(c){switch(c.code){case"ArrowRight":case"KeyL":i.hasNext&&(n.next(),Y());break;case"ArrowLeft":case"KeyH":i.hasPrevious&&(n.previous(),Y());break;case"ArrowUp":case"KeyK":n.previousRow();break;case"ArrowDown":case"KeyJ":n.nextRow();break}}function me(){s(5,se=window.innerWidth)}const b=()=>{n.previous(),Y()},pe=()=>{n.next(),Y()};function we(){Z=this.clientHeight,s(6,Z)}const Ie=()=>n.previous(),U=()=>n.next();return e.$$set=c=>{t=Qe(Qe({},t),bt(c)),s(14,m=Je(t,u)),"items"in c&&s(16,K=c.items),"floatId"in c&&s(17,L=c.floatId),"startingIndex"in c&&s(18,_=c.startingIndex),"currentPageKey"in c&&s(19,v=c.currentPageKey),"itemsPerPage"in c&&s(0,T=c.itemsPerPage),"updating"in c&&s(1,$=c.updating),"pageSizeSelectLabel"in c&&s(2,Q=c.pageSizeSelectLabel),"previousButtonLabel"in c&&s(3,j=c.previousButtonLabel),"nextButtonLabel"in c&&s(4,D=c.nextButtonLabel),"$$scope"in c&&s(24,N=c.$$scope)},e.$$.update=()=>{e.$$.dirty[0]&8388609&&s(8,a=T!==null?String(T):String(gt(z.url.searchParams.get(he))).toString()),e.$$.dirty[0]&8388864&&(parseInt(a,10)>parseInt(Ze,10)?Ve({parameter:he,value:Ze,url:z.url}):Ue.includes(a)||Ve({parameter:he,value:pt,url:z.url})),e.$$.dirty[0]&327936&&J(s(7,n=It(K,a,_))),e.$$.dirty[0]&9961984&&s(22,o=s(20,R=z.url.searchParams.get(v))!==null&&R!==void 0?R:i.currentPage),e.$$.dirty[0]&4194432&&n.jumpToPage(o),e.$$.dirty[0]&2097248&&s(10,I=ht({width:V,height:Z,screenWidth:se}))},[T,$,Q,j,D,se,Z,n,a,i,I,Y,_e,ce,m,ee,K,L,_,v,R,V,o,z,N,B,me,b,pe,we,Ie,U]}class Wt extends ot{constructor(t){super(),rt(this,t,jt,Tt,ft,{items:16,floatId:17,startingIndex:18,currentPageKey:19,itemsPerPage:0,updating:1,pageSizeSelectLabel:2,previousButtonLabel:3,nextButtonLabel:4},null,[-1,-1])}}export{Wt as P}; diff --git a/ui/assets/local/_app/immutable/chunks/pagination.ee9074bd.js b/ui/assets/local/_app/immutable/chunks/pagination.aba14fc4.js similarity index 94% rename from ui/assets/local/_app/immutable/chunks/pagination.ee9074bd.js rename to ui/assets/local/_app/immutable/chunks/pagination.aba14fc4.js index b4ffdd5ae5..1fcfe2cde8 100644 --- a/ui/assets/local/_app/immutable/chunks/pagination.ee9074bd.js +++ b/ui/assets/local/_app/immutable/chunks/pagination.aba14fc4.js @@ -1 +1 @@ -import{S as U,b as X,a as Y,N as C,A as Z,a0 as L,C as y,D as z,E as D,R as W,Y as P,a1 as $,j as p,g as v,F as H,K as ee,U as T,G as te,H as ne,I as oe,J as re,e as B,f as se,z as ae,h as le,a7 as ue,k as ce,ac as _}from"./index.4e2fcbc7.js";import{p as ie}from"./stores.14a97433.js";import{u as fe}from"./update-query-parameters.dc7e7d75.js";import{S as _e,a as ge}from"./simple-select.db1acee2.js";import{j as he,w as j}from"./singletons.fb5f332e.js";function G(t,e,a){const s=t.slice();return s[14]=e[a],s}function V(t){let e,a;return e=new ge({props:{value:t[14]}}),{c(){y(e.$$.fragment)},l(s){z(e.$$.fragment,s)},m(s,n){D(e,s,n),a=!0},p(s,n){const l={};n&1&&(l.value=s[14]),e.$set(l)},i(s){a||(p(e.$$.fragment,s),a=!0)},o(s){v(e.$$.fragment,s),a=!1},d(s){H(e,s)}}}function me(t){let e,a,s=t[0].map(q),n=[];for(let o=0;ov(n[o],1,1,()=>{n[o]=null});return{c(){for(let o=0;oL(e,"value",l)),e.$on("change",t[3]),{c(){y(e.$$.fragment)},l(r){z(e.$$.fragment,r)},m(r,u){D(e,r,u),s=!0},p(r,[u]){const g=u&20?W(n,[u&4&&{id:r[2]},u&16&&P(r[4]),n[2]]):{};u&2049&&(g.$$scope={dirty:u,ctx:r}),!a&&u&2&&(a=!0,g.value=r[1],$(()=>a=!1)),e.$set(g)},i(r){s||(p(e.$$.fragment,r),s=!0)},o(r){v(e.$$.fragment,r),s=!1},d(r){H(e,r)}}}const q=t=>t.toString();function be(t,e,a){let s;ee(t,ie,f=>a(12,s=f));let{$$slots:n={},$$scope:l}=e,{label:o}=e,{value:r}=e,{options:u=[]}=e,{parameter:g=null}=e,{position:h=void 0}=e;const k=`${g||o}-${h?`${h}-filter`:"filter"}`;let d=g&&s.url.searchParams.get(g)||r&&r.toString();const b=()=>{fe({parameter:g,value:d,url:s.url}).then(f=>a(5,r=f))};function M(f){d=f,a(1,d)}return t.$$set=f=>{a(4,e=C(C({},e),T(f))),"label"in f&&a(6,o=f.label),"value"in f&&a(5,r=f.value),"options"in f&&a(0,u=f.options),"parameter"in f&&a(7,g=f.parameter),"position"in f&&a(8,h=f.position),"$$scope"in f&&a(11,l=f.$$scope)},e=T(e),[u,d,k,b,e,r,o,g,h,n,M,l]}class Fe extends U{constructor(e){super(),X(this,e,be,pe,Y,{label:6,value:5,options:0,parameter:7,position:8})}}const I=100,w=["100","250","500"],Ae="per-page",Ce="page",Ee=w[w.length-1],S=(t,e)=>Math.floor(t/e)+1,Ne=(t,e)=>e<=9?new Array(e).fill(0).map((a,s)=>s+1):t<5?[1,2,3,4,5,NaN,e-2,e-1,e]:t>=5&&t<=e-5?[1,2,NaN,t-1,t,t+1,NaN,e-1,e]:t>=e-5?[1,2,NaN,e-5,e-4,e-3,e-2,e-1,e]:[],J=(t,e,a)=>{if(isNaN(t)||t<=1)return 0;if(t>O(e,a)){const s=a.length-e;return s>0?s:0}return Math.floor(e*(t-1))},ve=(t,e,a)=>{const s=S(t,e);return J(s,e,a)},x=(t,e)=>Math.min(t-1,e-1),O=(t,e)=>Math.ceil(e.length/t),F=(t,e)=>isNaN(t)||t<0?0:tt>=e.length||t<0,Ke=(t=[],e=I,a=0)=>{e=Ie(e);const s=ve(E(a),e,t),n=j(e),l=j(s),o=j(void 0),r=c=>{n.set(E(c))},u=()=>{b(),l.update(c=>{const i=c+_(n);return A(i,t)?c:F(i,t)})},g=()=>{b(),l.update(c=>{const i=c-_(n);return F(i,t)})},h=c=>{const i=_(n),m=J(Number(c),i,t),N=t.slice(m,m+i).length;return _(o)>N-1&&o.set(N-1),l.set(m)},k=c=>{const i=S(Number(c),_(n));h(i)},R=c=>{for(let i=0;i{const i=R(c);return S(i,_(n))},b=(c=void 0)=>{c===void 0&&o.set(c);const i=t.slice(_(l),_(l)+_(n)).length,m=x(i,_(n));c<=m&&o.set(c)},M=()=>{const c=t.slice(_(l),_(l)+_(n)).length,i=x(c,_(n));_(o)===void 0?o.set(0):_(o){const c=_(o)>=1?_(o)-1:0;o.set(c)},{subscribe:Q}=he([l,n,o],([c,i,m])=>{const N=O(i,t),K=S(c,i);return{items:t.slice(c,c+i),initialItem:t[0],hasPrevious:!A(c-i,t),hasNext:!A(c+i,t),startingIndex:c,endingIndex:F(c+i-1,t),length:t.length,pageSize:i,currentPage:K,totalPages:N,activeRowIndex:m,pageShortcuts:Ne(K,N)}});return{subscribe:Q,adjustPageSize:r,next:u,previous:g,jumpToPage:h,jumpToIndex:k,findIndex:R,findPage:d,nextRow:M,previousRow:f,setActiveRowIndex:b}},Ie=(t=I)=>{const e=E(t);return isNaN(e)||!e?I:e},E=(t=0)=>{const e=Number(t);return isNaN(e)||!e?0:Math.abs(e)};export{Fe as F,Ee as M,Ae as a,Ke as b,Ce as c,I as d,w as o,Ie as p}; +import{S as U,b as X,a as Y,N as C,A as Z,a0 as L,C as y,D as z,E as D,R as W,Y as P,a1 as $,j as p,g as v,F as H,K as ee,U as T,G as te,H as ne,I as oe,J as re,e as B,f as se,z as ae,h as le,a7 as ue,k as ce,ac as _}from"./index.4e2fcbc7.js";import{p as ie}from"./stores.0e7b7e35.js";import{u as fe}from"./update-query-parameters.64a6ca26.js";import{S as _e,a as ge}from"./simple-select.db1acee2.js";import{j as he,w as j}from"./singletons.13b3836d.js";function G(t,e,a){const s=t.slice();return s[14]=e[a],s}function V(t){let e,a;return e=new ge({props:{value:t[14]}}),{c(){y(e.$$.fragment)},l(s){z(e.$$.fragment,s)},m(s,n){D(e,s,n),a=!0},p(s,n){const l={};n&1&&(l.value=s[14]),e.$set(l)},i(s){a||(p(e.$$.fragment,s),a=!0)},o(s){v(e.$$.fragment,s),a=!1},d(s){H(e,s)}}}function me(t){let e,a,s=t[0].map(q),n=[];for(let o=0;ov(n[o],1,1,()=>{n[o]=null});return{c(){for(let o=0;oL(e,"value",l)),e.$on("change",t[3]),{c(){y(e.$$.fragment)},l(r){z(e.$$.fragment,r)},m(r,u){D(e,r,u),s=!0},p(r,[u]){const g=u&20?W(n,[u&4&&{id:r[2]},u&16&&P(r[4]),n[2]]):{};u&2049&&(g.$$scope={dirty:u,ctx:r}),!a&&u&2&&(a=!0,g.value=r[1],$(()=>a=!1)),e.$set(g)},i(r){s||(p(e.$$.fragment,r),s=!0)},o(r){v(e.$$.fragment,r),s=!1},d(r){H(e,r)}}}const q=t=>t.toString();function be(t,e,a){let s;ee(t,ie,f=>a(12,s=f));let{$$slots:n={},$$scope:l}=e,{label:o}=e,{value:r}=e,{options:u=[]}=e,{parameter:g=null}=e,{position:h=void 0}=e;const k=`${g||o}-${h?`${h}-filter`:"filter"}`;let d=g&&s.url.searchParams.get(g)||r&&r.toString();const b=()=>{fe({parameter:g,value:d,url:s.url}).then(f=>a(5,r=f))};function M(f){d=f,a(1,d)}return t.$$set=f=>{a(4,e=C(C({},e),T(f))),"label"in f&&a(6,o=f.label),"value"in f&&a(5,r=f.value),"options"in f&&a(0,u=f.options),"parameter"in f&&a(7,g=f.parameter),"position"in f&&a(8,h=f.position),"$$scope"in f&&a(11,l=f.$$scope)},e=T(e),[u,d,k,b,e,r,o,g,h,n,M,l]}class Fe extends U{constructor(e){super(),X(this,e,be,pe,Y,{label:6,value:5,options:0,parameter:7,position:8})}}const I=100,w=["100","250","500"],Ae="per-page",Ce="page",Ee=w[w.length-1],S=(t,e)=>Math.floor(t/e)+1,Ne=(t,e)=>e<=9?new Array(e).fill(0).map((a,s)=>s+1):t<5?[1,2,3,4,5,NaN,e-2,e-1,e]:t>=5&&t<=e-5?[1,2,NaN,t-1,t,t+1,NaN,e-1,e]:t>=e-5?[1,2,NaN,e-5,e-4,e-3,e-2,e-1,e]:[],J=(t,e,a)=>{if(isNaN(t)||t<=1)return 0;if(t>O(e,a)){const s=a.length-e;return s>0?s:0}return Math.floor(e*(t-1))},ve=(t,e,a)=>{const s=S(t,e);return J(s,e,a)},x=(t,e)=>Math.min(t-1,e-1),O=(t,e)=>Math.ceil(e.length/t),F=(t,e)=>isNaN(t)||t<0?0:tt>=e.length||t<0,Ke=(t=[],e=I,a=0)=>{e=Ie(e);const s=ve(E(a),e,t),n=j(e),l=j(s),o=j(void 0),r=c=>{n.set(E(c))},u=()=>{b(),l.update(c=>{const i=c+_(n);return A(i,t)?c:F(i,t)})},g=()=>{b(),l.update(c=>{const i=c-_(n);return F(i,t)})},h=c=>{const i=_(n),m=J(Number(c),i,t),N=t.slice(m,m+i).length;return _(o)>N-1&&o.set(N-1),l.set(m)},k=c=>{const i=S(Number(c),_(n));h(i)},R=c=>{for(let i=0;i{const i=R(c);return S(i,_(n))},b=(c=void 0)=>{c===void 0&&o.set(c);const i=t.slice(_(l),_(l)+_(n)).length,m=x(i,_(n));c<=m&&o.set(c)},M=()=>{const c=t.slice(_(l),_(l)+_(n)).length,i=x(c,_(n));_(o)===void 0?o.set(0):_(o){const c=_(o)>=1?_(o)-1:0;o.set(c)},{subscribe:Q}=he([l,n,o],([c,i,m])=>{const N=O(i,t),K=S(c,i);return{items:t.slice(c,c+i),initialItem:t[0],hasPrevious:!A(c-i,t),hasNext:!A(c+i,t),startingIndex:c,endingIndex:F(c+i-1,t),length:t.length,pageSize:i,currentPage:K,totalPages:N,activeRowIndex:m,pageShortcuts:Ne(K,N)}});return{subscribe:Q,adjustPageSize:r,next:u,previous:g,jumpToPage:h,jumpToIndex:k,findIndex:R,findPage:d,nextRow:M,previousRow:f,setActiveRowIndex:b}},Ie=(t=I)=>{const e=E(t);return isNaN(e)||!e?I:e},E=(t=0)=>{const e=Number(t);return isNaN(e)||!e?0:Math.abs(e)};export{Fe as F,Ee as M,Ae as a,Ke as b,Ce as c,I as d,w as o,Ie as p}; diff --git a/ui/assets/local/_app/immutable/chunks/paths.b17cbae1.js b/ui/assets/local/_app/immutable/chunks/paths.b17cbae1.js new file mode 100644 index 0000000000..fdbfd8067b --- /dev/null +++ b/ui/assets/local/_app/immutable/chunks/paths.b17cbae1.js @@ -0,0 +1 @@ +var s;const e=((s=globalThis.__sveltekit_1diuwym)==null?void 0:s.base)??"";var a;const t=((a=globalThis.__sveltekit_1diuwym)==null?void 0:a.assets)??e;export{t as a,e as b}; diff --git a/ui/assets/local/_app/immutable/chunks/paths.c2469178.js b/ui/assets/local/_app/immutable/chunks/paths.c2469178.js deleted file mode 100644 index aac14bd7f2..0000000000 --- a/ui/assets/local/_app/immutable/chunks/paths.c2469178.js +++ /dev/null @@ -1 +0,0 @@ -var s;const a=((s=globalThis.__sveltekit_1tm5tzv)==null?void 0:s.base)??"";var t;const e=((t=globalThis.__sveltekit_1tm5tzv)==null?void 0:t.assets)??a;export{e as a,a as b}; diff --git a/ui/assets/local/_app/immutable/chunks/payload-decoder.23fe8b7d.js b/ui/assets/local/_app/immutable/chunks/payload-decoder.0883e1af.js similarity index 87% rename from ui/assets/local/_app/immutable/chunks/payload-decoder.23fe8b7d.js rename to ui/assets/local/_app/immutable/chunks/payload-decoder.0883e1af.js index 6f56264c08..ec1ccc7974 100644 --- a/ui/assets/local/_app/immutable/chunks/payload-decoder.23fe8b7d.js +++ b/ui/assets/local/_app/immutable/chunks/payload-decoder.0883e1af.js @@ -1 +1 @@ -import{S as A,b as V,a as v,G as I,H as T,I as E,J as S,j as U,g as W,K as k,o as j}from"./index.4e2fcbc7.js";import{p as q}from"./stores.14a97433.js";import{a as w}from"./auth-user.9757f5e9.js";import{e as B,d as G}from"./decode-payload.a8d5059b.js";import{g as H,a as J,b as K}from"./get-codec.418ac4fc.js";import{s as _}from"./parse-with-big-int.0036a80a.js";const M=t=>({decodedValue:t&1}),b=t=>({decodedValue:t[0]});function z(t){let n;const o=t[9].default,s=I(o,t,t[8],b);return{c(){s&&s.c()},l(e){s&&s.l(e)},m(e,d){s&&s.m(e,d),n=!0},p(e,[d]){s&&s.p&&(!n||d&257)&&T(s,o,e,e[8],n?S(o,e[8],d,M):E(e[8]),b)},i(e){n||(U(s,e),n=!0)},o(e){W(s,e),n=!1},d(e){s&&s.d(e)}}}function D(t,n,o){let s,e,d,g,m,c;k(t,w,a=>o(11,m=a)),k(t,q,a=>o(7,c=a));let{$$slots:h={},$$scope:y}=n;var r;let{value:i}=n,{key:l=""}=n,C=l&&(i!=null&&i[l])?i[l]:i,f=_(C);const P=async()=>{try{const a=await B(i,c.params.namespace,g,m.accessToken),u=G(a),p=l&&(u==null?void 0:u[l]);p?o(0,f=_(p)):o(0,f=_(u))}catch{console.error("Could not decode payloads")}};return j(()=>{P()}),t.$$set=a=>{"value"in a&&o(1,i=a.value),"key"in a&&o(2,l=a.key),"$$scope"in a&&o(8,y=a.$$scope)},t.$$.update=()=>{t.$$.dirty&128&&o(6,s=H(c.data.settings)),t.$$.dirty&128&&o(5,e=J(c.data.settings)),t.$$.dirty&128&&o(4,d=K(c.data.settings)),t.$$.dirty&248&&(g={...c.data.settings,codec:{...o(3,r=c.data.settings)===null||r===void 0?void 0:r.codec,endpoint:s,passAccessToken:e,includeCredentials:d}})},[f,i,l,r,d,e,s,c,y,h]}class X extends A{constructor(n){super(),V(this,n,D,z,v,{value:1,key:2})}}export{X as P}; +import{S as A,b as V,a as v,G as I,H as T,I as E,J as S,j as U,g as W,K as k,o as j}from"./index.4e2fcbc7.js";import{p as q}from"./stores.0e7b7e35.js";import{a as w}from"./auth-user.ce52bc5e.js";import{e as B,d as G}from"./decode-payload.11855cf3.js";import{g as H,a as J,b as K}from"./get-codec.89017b46.js";import{s as _}from"./parse-with-big-int.0036a80a.js";const M=t=>({decodedValue:t&1}),b=t=>({decodedValue:t[0]});function z(t){let n;const o=t[9].default,s=I(o,t,t[8],b);return{c(){s&&s.c()},l(e){s&&s.l(e)},m(e,d){s&&s.m(e,d),n=!0},p(e,[d]){s&&s.p&&(!n||d&257)&&T(s,o,e,e[8],n?S(o,e[8],d,M):E(e[8]),b)},i(e){n||(U(s,e),n=!0)},o(e){W(s,e),n=!1},d(e){s&&s.d(e)}}}function D(t,n,o){let s,e,d,g,m,c;k(t,w,a=>o(11,m=a)),k(t,q,a=>o(7,c=a));let{$$slots:h={},$$scope:y}=n;var r;let{value:i}=n,{key:l=""}=n,C=l&&(i!=null&&i[l])?i[l]:i,f=_(C);const P=async()=>{try{const a=await B(i,c.params.namespace,g,m.accessToken),u=G(a),p=l&&(u==null?void 0:u[l]);p?o(0,f=_(p)):o(0,f=_(u))}catch{console.error("Could not decode payloads")}};return j(()=>{P()}),t.$$set=a=>{"value"in a&&o(1,i=a.value),"key"in a&&o(2,l=a.key),"$$scope"in a&&o(8,y=a.$$scope)},t.$$.update=()=>{t.$$.dirty&128&&o(6,s=H(c.data.settings)),t.$$.dirty&128&&o(5,e=J(c.data.settings)),t.$$.dirty&128&&o(4,d=K(c.data.settings)),t.$$.dirty&248&&(g={...c.data.settings,codec:{...o(3,r=c.data.settings)===null||r===void 0?void 0:r.codec,endpoint:s,passAccessToken:e,includeCredentials:d}})},[f,i,l,r,d,e,s,c,y,h]}class X extends A{constructor(n){super(),V(this,n,D,z,v,{value:1,key:2})}}export{X as P}; diff --git a/ui/assets/local/_app/immutable/chunks/persist-store.2e269d08.js b/ui/assets/local/_app/immutable/chunks/persist-store.8930b3b5.js similarity index 93% rename from ui/assets/local/_app/immutable/chunks/persist-store.2e269d08.js rename to ui/assets/local/_app/immutable/chunks/persist-store.8930b3b5.js index 024fda827c..9803d4bd46 100644 --- a/ui/assets/local/_app/immutable/chunks/persist-store.2e269d08.js +++ b/ui/assets/local/_app/immutable/chunks/persist-store.8930b3b5.js @@ -1 +1 @@ -import{w as I}from"./singletons.fb5f332e.js";import{p as S,s as p}from"./parse-with-big-int.0036a80a.js";const m=e=>typeof e=="function";function y(e,a=null,u=!1){var l,c;let n=m(a)?a():a,o;try{(l=window==null?void 0:window.localStorage)!=null&&l.getItem(e)&&(n=S(((c=window==null?void 0:window.localStorage)==null?void 0:c.getItem(e))??""))}catch{n=null}const{subscribe:g,set:i,update:f}=I(n);if(u)try{o=new BroadcastChannel(`persist-store-${e}`),o==null||o.addEventListener("message",t=>{i(t.data)})}catch{console.error("Browser does not support BroadcastChannel")}return{subscribe:g,set:t=>{var r,s;o&&o.postMessage(t),t===null?(r=window==null?void 0:window.localStorage)==null||r.removeItem(e):(s=window==null?void 0:window.localStorage)==null||s.setItem(e,p(t)),i(t)},update:t=>{var r;(r=window==null?void 0:window.localStorage)==null||r.removeItem(e),f(s=>{var d;const w=t(s);return(d=window==null?void 0:window.localStorage)==null||d.setItem(e,p(w)),w})}}}export{m as i,y as p}; +import{w as I}from"./singletons.13b3836d.js";import{p as S,s as p}from"./parse-with-big-int.0036a80a.js";const m=e=>typeof e=="function";function y(e,a=null,u=!1){var l,c;let n=m(a)?a():a,o;try{(l=window==null?void 0:window.localStorage)!=null&&l.getItem(e)&&(n=S(((c=window==null?void 0:window.localStorage)==null?void 0:c.getItem(e))??""))}catch{n=null}const{subscribe:g,set:i,update:f}=I(n);if(u)try{o=new BroadcastChannel(`persist-store-${e}`),o==null||o.addEventListener("message",t=>{i(t.data)})}catch{console.error("Browser does not support BroadcastChannel")}return{subscribe:g,set:t=>{var r,s;o&&o.postMessage(t),t===null?(r=window==null?void 0:window.localStorage)==null||r.removeItem(e):(s=window==null?void 0:window.localStorage)==null||s.setItem(e,p(t)),i(t)},update:t=>{var r;(r=window==null?void 0:window.localStorage)==null||r.removeItem(e),f(s=>{var d;const w=t(s);return(d=window==null?void 0:window.localStorage)==null||d.setItem(e,p(w)),w})}}}export{m as i,y as p}; diff --git a/ui/assets/local/_app/immutable/chunks/pollers-service.541d2792.js b/ui/assets/local/_app/immutable/chunks/pollers-service.ea8b18d9.js similarity index 98% rename from ui/assets/local/_app/immutable/chunks/pollers-service.541d2792.js rename to ui/assets/local/_app/immutable/chunks/pollers-service.ea8b18d9.js index cce210b7b0..52d1fc28a6 100644 --- a/ui/assets/local/_app/immutable/chunks/pollers-service.541d2792.js +++ b/ui/assets/local/_app/immutable/chunks/pollers-service.ea8b18d9.js @@ -1 +1 @@ -import{S as j,b as z,a as G,m as y,p as v,q as I,k as p,u as T,f as w,z as H,g as m,h as J,j as d,C as O,w as W,D as R,x as B,E as D,L as g,y as K,F as N,G as A,c as P,d as E,P as h,H as S,I as C,J as F}from"./index.4e2fcbc7.js";import{I as Y}from"./icon.e8aa24c8.js";import{t as b}from"./translate.d23a91ae.js";import{r as Q,a as k}from"./route-for-api.60228029.js";const U=o=>({}),L=o=>({}),q=o=>({}),V=o=>({});function M(o){let t,s,a,r;return s=new Y({props:{name:"merge"}}),{c(){t=y("span"),O(s.$$.fragment),a=W(o[2]),this.h()},l(i){t=v(i,"SPAN",{class:!0});var n=I(t);R(s.$$.fragment,n),a=B(n,o[2]),n.forEach(p),this.h()},h(){T(t,"class","version svelte-1b9fh62")},m(i,n){w(i,t,n),D(s,t,null),g(t,a),r=!0},p(i,n){(!r||n&4)&&K(a,i[2])},i(i){r||(d(s.$$.fragment,i),r=!0)},o(i){m(s.$$.fragment,i),r=!1},d(i){i&&p(t),N(s)}}}function X(o){let t,s,a,r,i,n;s=new Y({props:{name:"merge"}});const f=o[4]["overall-default-worker"],e=A(f,o,o[3],V),c=o[4]["default-worker"],u=A(c,o,o[3],L);return{c(){t=y("span"),O(s.$$.fragment),a=W(o[2]),r=P(),e&&e.c(),i=P(),u&&u.c(),this.h()},l(l){t=v(l,"SPAN",{class:!0});var _=I(t);R(s.$$.fragment,_),a=B(_,o[2]),r=E(_),e&&e.l(_),i=E(_),u&&u.l(_),_.forEach(p),this.h()},h(){T(t,"class","svelte-1b9fh62"),h(t,"active-version",o[1]),h(t,"version",!o[1])},m(l,_){w(l,t,_),D(s,t,null),g(t,a),g(t,r),e&&e.m(t,null),g(t,i),u&&u.m(t,null),n=!0},p(l,_){(!n||_&4)&&K(a,l[2]),e&&e.p&&(!n||_&8)&&S(e,f,l,l[3],n?F(f,l[3],_,q):C(l[3]),V),u&&u.p&&(!n||_&8)&&S(u,c,l,l[3],n?F(c,l[3],_,U):C(l[3]),L),(!n||_&2)&&h(t,"active-version",l[1]),(!n||_&2)&&h(t,"version",!l[1])},i(l){n||(d(s.$$.fragment,l),d(e,l),d(u,l),n=!0)},o(l){m(s.$$.fragment,l),m(e,l),m(u,l),n=!1},d(l){l&&p(t),N(s),e&&e.d(l),u&&u.d(l)}}}function Z(o){let t,s,a,r;const i=[X,M],n=[];function f(e,c){return e[0]&&e[2]?0:e[2]?1:-1}return~(s=f(o))&&(a=n[s]=i[s](o)),{c(){t=y("p"),a&&a.c(),this.h()},l(e){t=v(e,"P",{class:!0});var c=I(t);a&&a.l(c),c.forEach(p),this.h()},h(){T(t,"class","flex select-all gap-2 font-mono")},m(e,c){w(e,t,c),~s&&n[s].m(t,null),r=!0},p(e,[c]){let u=s;s=f(e),s===u?~s&&n[s].p(e,c):(a&&(H(),m(n[u],1,1,()=>{n[u]=null}),J()),~s?(a=n[s],a?a.p(e,c):(a=n[s]=i[s](e),a.c()),d(a,1),a.m(t,null)):a=null)},i(e){r||(d(a),r=!0)},o(e){m(a),r=!1},d(e){e&&p(t),~s&&n[s].d()}}}function $(o,t,s){let{$$slots:a={},$$scope:r}=t,{defaultVersion:i=!1}=t,{active:n=!1}=t,{buildId:f=""}=t;return o.$$set=e=>{"defaultVersion"in e&&s(0,i=e.defaultVersion),"active"in e&&s(1,n=e.active),"buildId"in e&&s(2,f=e.buildId),"$$scope"in e&&s(3,r=e.$$scope)},[i,n,f,r,a]}class ne extends j{constructor(t){super(),z(this,t,$,Z,G,{defaultVersion:0,active:1,buildId:2})}}async function oe(o,t=fetch){const s=Q("task-queue",o),a=await k(s,{request:t,params:{taskQueueType:"1"}}),r=await k(s,{request:t,params:{taskQueueType:"2"}});r.pollers.forEach(e=>{e.taskQueueTypes=["ACTIVITY"]}),a.pollers.forEach(e=>{e.taskQueueTypes=["WORKFLOW"]});const i=e=>(c,u)=>{const l=c[u.identity]||{lastAccessTime:void 0,taskQueueTypes:[]};return c[u.identity]={lastAccessTime:!l.lastAccessTime||l.lastAccessTimea.pollers.some(c=>{if(e.identity===c.identity)return e.taskQueueTypes=[...c.taskQueueTypes,...e.taskQueueTypes],e})),r.pollers.reduce(i("ACTIVITY"),a.pollers.reduce(i("WORKFLOW"),{}));const n=r.pollers.length?r.pollers:a.pollers,f=r.pollers.length?r.taskQueueStatus:a.taskQueueStatus;return{pollers:n,taskQueueStatus:f}}async function re(o,t=fetch){const s=Q("task-queue.compatibility",o);return k(s,{request:t,onError:a=>console.error(a)})}async function le(o,t=fetch){const{namespace:s,buildIds:a,taskQueue:r}=o,i=Q("worker-task-reachability",{namespace:s}),n=new URLSearchParams;if(a.length)for(const f of a)n.append("buildIds",f);else n.append("buildIds",""),n.append("taskQueues",r);return await k(i,{request:t,params:n,onError:f=>(console.error(f),{buildIdReachability:[]})})}function x(o){return!o||!o.length?b("workers.ready-to-be-retired"):o.length===1&&o.includes("CLOSED")?b("common.maybe"):b("common.no")}function ie(o,t,s){var n,f;const a=(n=o==null?void 0:o.buildIdReachability)==null?void 0:n.find(e=>e.buildId===s);if(!a)return"";const r=(f=a==null?void 0:a.taskQueueReachability)==null?void 0:f.find(e=>(e==null?void 0:e.taskQueue)===t);if(!r)return"";const i=r==null?void 0:r.reachability;return x(i)}export{ne as C,re as a,le as b,ie as c,oe as g}; +import{S as j,b as z,a as G,m as y,p as v,q as I,k as p,u as T,f as w,z as H,g as m,h as J,j as d,C as O,w as W,D as R,x as B,E as D,L as g,y as K,F as N,G as A,c as P,d as E,P as h,H as S,I as C,J as F}from"./index.4e2fcbc7.js";import{I as Y}from"./icon.e8aa24c8.js";import{t as b}from"./translate.d23a91ae.js";import{r as Q,a as k}from"./route-for-api.d45de563.js";const U=o=>({}),L=o=>({}),q=o=>({}),V=o=>({});function M(o){let t,s,a,r;return s=new Y({props:{name:"merge"}}),{c(){t=y("span"),O(s.$$.fragment),a=W(o[2]),this.h()},l(i){t=v(i,"SPAN",{class:!0});var n=I(t);R(s.$$.fragment,n),a=B(n,o[2]),n.forEach(p),this.h()},h(){T(t,"class","version svelte-1b9fh62")},m(i,n){w(i,t,n),D(s,t,null),g(t,a),r=!0},p(i,n){(!r||n&4)&&K(a,i[2])},i(i){r||(d(s.$$.fragment,i),r=!0)},o(i){m(s.$$.fragment,i),r=!1},d(i){i&&p(t),N(s)}}}function X(o){let t,s,a,r,i,n;s=new Y({props:{name:"merge"}});const f=o[4]["overall-default-worker"],e=A(f,o,o[3],V),c=o[4]["default-worker"],u=A(c,o,o[3],L);return{c(){t=y("span"),O(s.$$.fragment),a=W(o[2]),r=P(),e&&e.c(),i=P(),u&&u.c(),this.h()},l(l){t=v(l,"SPAN",{class:!0});var _=I(t);R(s.$$.fragment,_),a=B(_,o[2]),r=E(_),e&&e.l(_),i=E(_),u&&u.l(_),_.forEach(p),this.h()},h(){T(t,"class","svelte-1b9fh62"),h(t,"active-version",o[1]),h(t,"version",!o[1])},m(l,_){w(l,t,_),D(s,t,null),g(t,a),g(t,r),e&&e.m(t,null),g(t,i),u&&u.m(t,null),n=!0},p(l,_){(!n||_&4)&&K(a,l[2]),e&&e.p&&(!n||_&8)&&S(e,f,l,l[3],n?F(f,l[3],_,q):C(l[3]),V),u&&u.p&&(!n||_&8)&&S(u,c,l,l[3],n?F(c,l[3],_,U):C(l[3]),L),(!n||_&2)&&h(t,"active-version",l[1]),(!n||_&2)&&h(t,"version",!l[1])},i(l){n||(d(s.$$.fragment,l),d(e,l),d(u,l),n=!0)},o(l){m(s.$$.fragment,l),m(e,l),m(u,l),n=!1},d(l){l&&p(t),N(s),e&&e.d(l),u&&u.d(l)}}}function Z(o){let t,s,a,r;const i=[X,M],n=[];function f(e,c){return e[0]&&e[2]?0:e[2]?1:-1}return~(s=f(o))&&(a=n[s]=i[s](o)),{c(){t=y("p"),a&&a.c(),this.h()},l(e){t=v(e,"P",{class:!0});var c=I(t);a&&a.l(c),c.forEach(p),this.h()},h(){T(t,"class","flex select-all gap-2 font-mono")},m(e,c){w(e,t,c),~s&&n[s].m(t,null),r=!0},p(e,[c]){let u=s;s=f(e),s===u?~s&&n[s].p(e,c):(a&&(H(),m(n[u],1,1,()=>{n[u]=null}),J()),~s?(a=n[s],a?a.p(e,c):(a=n[s]=i[s](e),a.c()),d(a,1),a.m(t,null)):a=null)},i(e){r||(d(a),r=!0)},o(e){m(a),r=!1},d(e){e&&p(t),~s&&n[s].d()}}}function $(o,t,s){let{$$slots:a={},$$scope:r}=t,{defaultVersion:i=!1}=t,{active:n=!1}=t,{buildId:f=""}=t;return o.$$set=e=>{"defaultVersion"in e&&s(0,i=e.defaultVersion),"active"in e&&s(1,n=e.active),"buildId"in e&&s(2,f=e.buildId),"$$scope"in e&&s(3,r=e.$$scope)},[i,n,f,r,a]}class ne extends j{constructor(t){super(),z(this,t,$,Z,G,{defaultVersion:0,active:1,buildId:2})}}async function oe(o,t=fetch){const s=Q("task-queue",o),a=await k(s,{request:t,params:{taskQueueType:"1"}}),r=await k(s,{request:t,params:{taskQueueType:"2"}});r.pollers.forEach(e=>{e.taskQueueTypes=["ACTIVITY"]}),a.pollers.forEach(e=>{e.taskQueueTypes=["WORKFLOW"]});const i=e=>(c,u)=>{const l=c[u.identity]||{lastAccessTime:void 0,taskQueueTypes:[]};return c[u.identity]={lastAccessTime:!l.lastAccessTime||l.lastAccessTimea.pollers.some(c=>{if(e.identity===c.identity)return e.taskQueueTypes=[...c.taskQueueTypes,...e.taskQueueTypes],e})),r.pollers.reduce(i("ACTIVITY"),a.pollers.reduce(i("WORKFLOW"),{}));const n=r.pollers.length?r.pollers:a.pollers,f=r.pollers.length?r.taskQueueStatus:a.taskQueueStatus;return{pollers:n,taskQueueStatus:f}}async function re(o,t=fetch){const s=Q("task-queue.compatibility",o);return k(s,{request:t,onError:a=>console.error(a)})}async function le(o,t=fetch){const{namespace:s,buildIds:a,taskQueue:r}=o,i=Q("worker-task-reachability",{namespace:s}),n=new URLSearchParams;if(a.length)for(const f of a)n.append("buildIds",f);else n.append("buildIds",""),n.append("taskQueues",r);return await k(i,{request:t,params:n,onError:f=>(console.error(f),{buildIdReachability:[]})})}function x(o){return!o||!o.length?b("workers.ready-to-be-retired"):o.length===1&&o.includes("CLOSED")?b("common.maybe"):b("common.no")}function ie(o,t,s){var n,f;const a=(n=o==null?void 0:o.buildIdReachability)==null?void 0:n.find(e=>e.buildId===s);if(!a)return"";const r=(f=a==null?void 0:a.taskQueueReachability)==null?void 0:f.find(e=>(e==null?void 0:e.taskQueue)===t);if(!r)return"";const i=r==null?void 0:r.reachability;return x(i)}export{ne as C,re as a,le as b,ie as c,oe as g}; diff --git a/ui/assets/local/_app/immutable/chunks/query-service.4630b63f.js b/ui/assets/local/_app/immutable/chunks/query-service.2a94e5c4.js similarity index 83% rename from ui/assets/local/_app/immutable/chunks/query-service.4630b63f.js rename to ui/assets/local/_app/immutable/chunks/query-service.2a94e5c4.js index 73884f570a..32f986499a 100644 --- a/ui/assets/local/_app/immutable/chunks/query-service.4630b63f.js +++ b/ui/assets/local/_app/immutable/chunks/query-service.2a94e5c4.js @@ -1 +1 @@ -import{p as f}from"./data-encoder-config.23d100a5.js";import{c as m}from"./decode-payload.a8d5059b.js";import{g as l,a as h}from"./get-codec.418ac4fc.js";import{h as T}from"./has.183130b0.js";import{s as d,p as _}from"./parse-with-big-int.0036a80a.js";import{r as g,a as A,e as I}from"./route-for-api.60228029.js";const b=e=>{const t=e.indexOf("["),r=e.indexOf("]");return e.slice(t+1,r).split(" ").filter(a=>a!=="__stack_trace").map(a=>a.endsWith(",")?a.slice(0,a.length-1):a)},O=async(e,t,r)=>(t=await t,{namespace:e,workflowId:t.id,queryType:r});async function u({workflow:e,namespace:t,queryType:r},a=fetch,n){e=await e;const o=await O(t,e,r),s=g("query",o);return await A(s,{options:{method:"POST",body:d({execution:{workflowId:e.id,runId:e.runId},query:{queryType:r,runId:e.runId}})},request:a,onError:n,notifyOnError:!1})}async function Q(e,t=fetch){return new Promise((r,a)=>{u({...e,queryType:"@@temporal-internal__list"},t,n=>{I(n.body)&&n.body.message.includes("@@temporal-internal__list")?r(b(n.body.message)):a(n)})})}async function P(e,t,r,a=fetch){return u(e,a).then(async n=>{const{queryResult:o}=n??{queryResult:{payloads:[]}};let s=o.payloads;try{if(s[0]){const i=l(t),p=h(t,f),y={...t,codec:{...t==null?void 0:t.codec,endpoint:i,passAccessToken:p}},c=await m({attributes:o,namespace:e.namespace,settings:y,accessToken:r});T(c,"payloads")&&Array.isArray(c.payloads)&&(s=c.payloads[0])}return _(s)}catch{return typeof s!="string"?d(s):s}})}async function q(e,t,r){return P({...e,queryType:"__stack_trace"},t,r)}export{Q as a,P as b,q as g}; +import{p as f}from"./data-encoder-config.896de1ac.js";import{c as m}from"./decode-payload.11855cf3.js";import{g as l,a as h}from"./get-codec.89017b46.js";import{h as T}from"./has.183130b0.js";import{s as d,p as _}from"./parse-with-big-int.0036a80a.js";import{r as g,a as A,e as I}from"./route-for-api.d45de563.js";const b=e=>{const t=e.indexOf("["),r=e.indexOf("]");return e.slice(t+1,r).split(" ").filter(a=>a!=="__stack_trace").map(a=>a.endsWith(",")?a.slice(0,a.length-1):a)},O=async(e,t,r)=>(t=await t,{namespace:e,workflowId:t.id,queryType:r});async function u({workflow:e,namespace:t,queryType:r},a=fetch,n){e=await e;const o=await O(t,e,r),s=g("query",o);return await A(s,{options:{method:"POST",body:d({execution:{workflowId:e.id,runId:e.runId},query:{queryType:r,runId:e.runId}})},request:a,onError:n,notifyOnError:!1})}async function Q(e,t=fetch){return new Promise((r,a)=>{u({...e,queryType:"@@temporal-internal__list"},t,n=>{I(n.body)&&n.body.message.includes("@@temporal-internal__list")?r(b(n.body.message)):a(n)})})}async function P(e,t,r,a=fetch){return u(e,a).then(async n=>{const{queryResult:o}=n??{queryResult:{payloads:[]}};let s=o.payloads;try{if(s[0]){const i=l(t),p=h(t,f),y={...t,codec:{...t==null?void 0:t.codec,endpoint:i,passAccessToken:p}},c=await m({attributes:o,namespace:e.namespace,settings:y,accessToken:r});T(c,"payloads")&&Array.isArray(c.payloads)&&(s=c.payloads[0])}return _(s)}catch{return typeof s!="string"?d(s):s}})}async function q(e,t,r){return P({...e,queryType:"__stack_trace"},t,r)}export{Q as a,P as b,q as g}; diff --git a/ui/assets/local/_app/immutable/chunks/radio-input.df4cce6e.js b/ui/assets/local/_app/immutable/chunks/radio-input.9ccf281c.js similarity index 98% rename from ui/assets/local/_app/immutable/chunks/radio-input.df4cce6e.js rename to ui/assets/local/_app/immutable/chunks/radio-input.9ccf281c.js index 87b3b3b842..b181f5eb41 100644 --- a/ui/assets/local/_app/immutable/chunks/radio-input.df4cce6e.js +++ b/ui/assets/local/_app/immutable/chunks/radio-input.9ccf281c.js @@ -1 +1 @@ -import{S as V,b as j,a as B,G as z,N as I,m as E,c as A,p as P,q as H,d as D,k as g,O,f as T,L as b,H as F,I as M,J as W,R as J,j as Y,g as Z,T as C,ae as x,U as K,w as G,x as L,u as k,y as S,P as R,Q as w,n as U,af as $,K as ee}from"./index.4e2fcbc7.js";import{w as le}from"./singletons.fb5f332e.js";function q(s){let e,l;return{c(){e=E("p"),l=G(s[1]),this.h()},l(a){e=P(a,"P",{class:!0});var i=H(e);l=L(i,s[1]),i.forEach(g),this.h()},h(){k(e,"class","font-secondary text-sm font-medium")},m(a,i){T(a,e,i),b(e,l)},p(a,i){i&2&&S(l,a[1])},d(a){a&&g(e)}}}function ae(s){let e,l,a,i,t=s[1]&&q(s);const c=s[6].default,f=z(c,s,s[5],null);let h=[{class:a="flex flex-col gap-2 "+s[0]},s[2]],m={};for(let n=0;n{e=I(I({},e),K(u)),l(2,i=C(e,a)),"class"in u&&l(0,f=u.class),"name"in u&&l(3,h=u.name),"group"in u&&l(4,m=u.group),"description"in u&&l(1,n=u.description),"$$scope"in u&&l(5,c=u.$$scope)},[f,n,i,h,m,c,t]}class fe extends V{constructor(e){super(),j(this,e,se,ae,B,{class:0,name:3,group:4,description:1})}}function y(s){let e,l,a;return{c(){e=E("p"),l=G(s[3]),this.h()},l(i){e=P(i,"P",{class:!0,id:!0});var t=H(e);l=L(t,s[3]),t.forEach(g),this.h()},h(){k(e,"class","description svelte-1fghmxc"),k(e,"id",a=s[1]+"-description")},m(i,t){T(i,e,t),b(e,l)},p(i,t){t&8&&S(l,i[3]),t&2&&a!==(a=i[1]+"-description")&&k(e,"id",a)},d(i){i&&g(e)}}}function te(s){let e,l,a,i,t,c,f,h,m,n,u=[{type:"radio"},{"aria-describedby":i=s[1]+"-description"},{name:s[6]},{__value:s[0]},{id:s[1]},s[8]],v={};for(let o=0;ol(5,t=_));const N=[[]];function X(){t=this.__value,p.set(t)}return s.$$set=_=>{e=I(I({},e),K(_)),l(8,i=C(e,a)),"value"in _&&l(0,f=_.value),"id"in _&&l(1,h=_.id),"label"in _&&l(2,m=_.label),"description"in _&&l(3,n=_.description),"labelHidden"in _&&l(4,u=_.labelHidden),"group"in _&&l(9,v=_.group),"name"in _&&l(10,d=_.name)},[f,h,m,n,u,t,r,p,i,v,d,X,N]}class oe extends V{constructor(e){super(),j(this,e,ie,te,B,{value:0,id:1,label:2,description:3,labelHidden:4,group:9,name:10})}}export{fe as R,oe as a}; +import{S as V,b as j,a as B,G as z,N as I,m as E,c as A,p as P,q as H,d as D,k as g,O,f as T,L as b,H as F,I as M,J as W,R as J,j as Y,g as Z,T as C,ae as x,U as K,w as G,x as L,u as k,y as S,P as R,Q as w,n as U,af as $,K as ee}from"./index.4e2fcbc7.js";import{w as le}from"./singletons.13b3836d.js";function q(s){let e,l;return{c(){e=E("p"),l=G(s[1]),this.h()},l(a){e=P(a,"P",{class:!0});var i=H(e);l=L(i,s[1]),i.forEach(g),this.h()},h(){k(e,"class","font-secondary text-sm font-medium")},m(a,i){T(a,e,i),b(e,l)},p(a,i){i&2&&S(l,a[1])},d(a){a&&g(e)}}}function ae(s){let e,l,a,i,t=s[1]&&q(s);const c=s[6].default,f=z(c,s,s[5],null);let h=[{class:a="flex flex-col gap-2 "+s[0]},s[2]],m={};for(let n=0;n{e=I(I({},e),K(u)),l(2,i=C(e,a)),"class"in u&&l(0,f=u.class),"name"in u&&l(3,h=u.name),"group"in u&&l(4,m=u.group),"description"in u&&l(1,n=u.description),"$$scope"in u&&l(5,c=u.$$scope)},[f,n,i,h,m,c,t]}class fe extends V{constructor(e){super(),j(this,e,se,ae,B,{class:0,name:3,group:4,description:1})}}function y(s){let e,l,a;return{c(){e=E("p"),l=G(s[3]),this.h()},l(i){e=P(i,"P",{class:!0,id:!0});var t=H(e);l=L(t,s[3]),t.forEach(g),this.h()},h(){k(e,"class","description svelte-1fghmxc"),k(e,"id",a=s[1]+"-description")},m(i,t){T(i,e,t),b(e,l)},p(i,t){t&8&&S(l,i[3]),t&2&&a!==(a=i[1]+"-description")&&k(e,"id",a)},d(i){i&&g(e)}}}function te(s){let e,l,a,i,t,c,f,h,m,n,u=[{type:"radio"},{"aria-describedby":i=s[1]+"-description"},{name:s[6]},{__value:s[0]},{id:s[1]},s[8]],v={};for(let o=0;ol(5,t=_));const N=[[]];function X(){t=this.__value,p.set(t)}return s.$$set=_=>{e=I(I({},e),K(_)),l(8,i=C(e,a)),"value"in _&&l(0,f=_.value),"id"in _&&l(1,h=_.id),"label"in _&&l(2,m=_.label),"description"in _&&l(3,n=_.description),"labelHidden"in _&&l(4,u=_.labelHidden),"group"in _&&l(9,v=_.group),"name"in _&&l(10,d=_.name)},[f,h,m,n,u,t,r,p,i,v,d,X,N]}class oe extends V{constructor(e){super(),j(this,e,ie,te,B,{value:0,id:1,label:2,description:3,labelHidden:4,group:9,name:10})}}export{fe as R,oe as a}; diff --git a/ui/assets/local/_app/immutable/chunks/route-for-api.60228029.js b/ui/assets/local/_app/immutable/chunks/route-for-api.d45de563.js similarity index 93% rename from ui/assets/local/_app/immutable/chunks/route-for-api.60228029.js rename to ui/assets/local/_app/immutable/chunks/route-for-api.d45de563.js index 2888395e0a..c914fe2173 100644 --- a/ui/assets/local/_app/immutable/chunks/route-for-api.60228029.js +++ b/ui/assets/local/_app/immutable/chunks/route-for-api.d45de563.js @@ -1 +1 @@ -import{B as t}from"./encode-uri.e26747e0.js";import{g as $}from"./auth-user.9757f5e9.js";import{w as A}from"./singletons.fb5f332e.js";import{t as x}from"./toaster.8a4adbc8.js";import{h as y}from"./has.183130b0.js";import{i as C}from"./is-network-error.e7e518bc.js";import{r as e,t as R}from"./route-for.80613b91.js";import{i as F}from"./persist-store.2e269d08.js";import{ac as P}from"./index.4e2fcbc7.js";import{b as N}from"./paths.c2469178.js";import{p as O}from"./stores.14a97433.js";const W=A(null),S=(c,n=x,s=W,i=t)=>{throw typeof c=="string"?n.push({variant:"error",message:c}):c.report=!1,c instanceof Error&&n.push({variant:"error",message:c.message}),I(c)&&i&&window.location.assign(e(c==null?void 0:c.message)),T(c)&&i&&window.location.assign(e(c==null?void 0:c.message)),C(c)&&(n.push({variant:"error",message:`${c.statusCode} ${c.statusText}`}),s.set(c)),c},sn=(c,n=t)=>{var i;const s=`${c==null?void 0:c.status} ${(i=c==null?void 0:c.body)==null?void 0:i.message}`;if(I(c)&&n){window.location.assign(e(s));return}if(T(c)&&n){window.location.assign(e(s));return}},I=c=>U(c,401),T=c=>U(c,403),U=(c,n)=>y(c,"statusCode")?c.statusCode===n:y(c,"status")?c.status===n:!1,on=c=>(c==null?void 0:c.message)!==void 0&&typeof(c==null?void 0:c.message)=="string",ln=async(c,n={})=>{const{params:s={},request:i=fetch,token:l,notifyOnError:u=!0,handleError:f=S,onError:k,isBrowser:g=t}=n;let{options:w}=n,d=new URLSearchParams;if(s!=null&&s.entries)d=s,l&&d.set("nextPageToken",l);else{const o=l?{next_page_token:l}:{};d=new URLSearchParams({...s,...o})}const v=R(c,d);try{w=_(w,g),w=await z(w,g);const o=await i(v,w),h=await o.json(),{status:E,statusText:q}=o;if(!o.ok)if(k&&F(k))k({status:E,statusText:q,body:h});else throw{statusCode:o.status,statusText:o.statusText,response:o,message:(h==null?void 0:h.message)??o.statusText};return h}catch(o){if(u)f(o);else throw o}},_=(c,n=t)=>{const s={credentials:"include",...c};return s.headers=B(c==null?void 0:c.headers,n),s},z=async(c,n=t)=>($().accessToken?(c.headers=await b(c==null?void 0:c.headers,async()=>$().accessToken,n),c.headers=L(c==null?void 0:c.headers,$().idToken,n)):globalThis!=null&&globalThis.AccessToken&&(c.headers=await b(c==null?void 0:c.headers,globalThis.AccessToken,n)),c),b=async(c,n,s=t)=>{if(c||(c={}),!s)return c;try{const i=await n();i&&(c.Authorization=`Bearer ${i}`)}catch(i){console.error(i)}return c},L=(c={},n,s=t)=>(s&&n&&(c["Authorization-Extras"]=n),c),B=(c,n=t)=>{if(c||(c={}),c["Caller-Type"]="operator",!n)return c;const s="_csrf=",i="X-CSRF-TOKEN";try{let u=document.cookie.split(";").find(f=>f.includes(s));u&&!c[i]&&(u=u.trim().slice(s.length),c[i]=u)}catch(l){console.error(l)}return c};function J(c=t){const n="",s=!n.startsWith("http");let i="";return s?i=c?window.location.origin+n:"":i=n,i.endsWith("/")&&(i=i.slice(0,-1)),i}const H=(c,n)=>c?c.replace("%namespace%",n):"",K=c=>{var u,f;let n="";const s=(u=P(O).data)==null?void 0:u.webUrl,i=s&&c,l=((f=globalThis==null?void 0:globalThis.AppConfig)==null?void 0:f.apiUrl)&&c;return i?n=s:l?(console.warn("Using fallback api url, web url not found"),n=H(globalThis.AppConfig.apiUrl,c)):n=J(),n.endsWith("/")&&(n=n.slice(0,-1)),n=`${n}${N}`,n},X=c=>(c.startsWith("/")&&(c=c.slice(1)),`/api/v1/${c}`),D=(c,n)=>`${K(n)}${c}`,G=c=>Object.keys(c??{}).reduce((n,s)=>(n[s]=encodeURIComponent(encodeURIComponent(c[s])),n),{namespace:"",workflowId:"",scheduleId:"",queue:"",queryType:"",signalName:"",batchJobId:"",activityId:""});function M(c,n,s=!0){s&&(n=G(n));const i={cluster:"/cluster-info",systemInfo:"/system-info","events.ascending":`/namespaces/${n==null?void 0:n.namespace}/workflows/${n==null?void 0:n.workflowId}/history`,"events.descending":`/namespaces/${n==null?void 0:n.namespace}/workflows/${n==null?void 0:n.workflowId}/history-reverse`,namespaces:"/namespaces",namespace:`/namespaces/${n==null?void 0:n.namespace}`,query:`/namespaces/${n==null?void 0:n.namespace}/workflows/${n==null?void 0:n.workflowId}/query/${n.queryType}`,schedule:`/namespaces/${n==null?void 0:n.namespace}/schedules/${n==null?void 0:n.scheduleId}`,"schedule.patch":`/namespaces/${n==null?void 0:n.namespace}/schedules/${n==null?void 0:n.scheduleId}/patch`,"schedule.edit":`/namespaces/${n==null?void 0:n.namespace}/schedules/${n==null?void 0:n.scheduleId}/update`,schedules:`/namespaces/${n==null?void 0:n.namespace}/schedules`,"search-attributes":`/namespaces/${n.namespace}/search-attributes`,settings:"/settings","task-queue":`/namespaces/${n==null?void 0:n.namespace}/task-queues/${n==null?void 0:n.queue}`,"task-queue.compatibility":`/namespaces/${n==null?void 0:n.namespace}/task-queues/${n==null?void 0:n.queue}/worker-build-id-compatibility`,user:"/me","worker-task-reachability":`/namespaces/${n==null?void 0:n.namespace}/worker-task-reachability`,"workflow.terminate":`/namespaces/${n==null?void 0:n.namespace}/workflows/${n==null?void 0:n.workflowId}/terminate`,"workflow.cancel":`/namespaces/${n.namespace}/workflows/${n.workflowId}/cancel`,"workflow.signal":`/namespaces/${n.namespace}/workflows/${n.workflowId}/signal/${n.signalName}`,"workflow.reset":`/namespaces/${n.namespace}/workflows/${n.workflowId}/reset`,workflow:`/namespaces/${n==null?void 0:n.namespace}/workflows/${n==null?void 0:n.workflowId}`,"workflows.archived":`/namespaces/${n==null?void 0:n.namespace}/archived-workflows`,workflows:`/namespaces/${n==null?void 0:n.namespace}/workflows`,"workflows.count":`/namespaces/${n==null?void 0:n.namespace}/workflow-count`,"activity.complete":`/namespaces/${n.namespace}/activities/complete-by-id`,"activity.fail":`/namespaces/${n.namespace}/activities/fail-by-id`,"batch-operations.list":`/namespaces/${n.namespace}/batch-operations`,"batch-operations":`/namespaces/${n.namespace}/batch-operations/${n==null?void 0:n.batchJobId}`};return X(i[c])}function un(c,n,s=!0){const i=M(c,n,s);return D(i,n==null?void 0:n.namespace)}export{ln as a,K as b,sn as c,T as d,on as e,J as g,S as h,I as i,W as n,M as p,un as r}; +import{B as t}from"./encode-uri.e26747e0.js";import{g as $}from"./auth-user.ce52bc5e.js";import{w as A}from"./singletons.13b3836d.js";import{t as x}from"./toaster.de22ba12.js";import{h as y}from"./has.183130b0.js";import{i as C}from"./is-network-error.e7e518bc.js";import{r as e,t as R}from"./route-for.084c7a46.js";import{i as F}from"./persist-store.8930b3b5.js";import{ac as P}from"./index.4e2fcbc7.js";import{b as N}from"./paths.b17cbae1.js";import{p as O}from"./stores.0e7b7e35.js";const W=A(null),S=(c,n=x,s=W,i=t)=>{throw typeof c=="string"?n.push({variant:"error",message:c}):c.report=!1,c instanceof Error&&n.push({variant:"error",message:c.message}),I(c)&&i&&window.location.assign(e(c==null?void 0:c.message)),T(c)&&i&&window.location.assign(e(c==null?void 0:c.message)),C(c)&&(n.push({variant:"error",message:`${c.statusCode} ${c.statusText}`}),s.set(c)),c},sn=(c,n=t)=>{var i;const s=`${c==null?void 0:c.status} ${(i=c==null?void 0:c.body)==null?void 0:i.message}`;if(I(c)&&n){window.location.assign(e(s));return}if(T(c)&&n){window.location.assign(e(s));return}},I=c=>U(c,401),T=c=>U(c,403),U=(c,n)=>y(c,"statusCode")?c.statusCode===n:y(c,"status")?c.status===n:!1,on=c=>(c==null?void 0:c.message)!==void 0&&typeof(c==null?void 0:c.message)=="string",ln=async(c,n={})=>{const{params:s={},request:i=fetch,token:l,notifyOnError:u=!0,handleError:f=S,onError:k,isBrowser:g=t}=n;let{options:w}=n,d=new URLSearchParams;if(s!=null&&s.entries)d=s,l&&d.set("nextPageToken",l);else{const o=l?{next_page_token:l}:{};d=new URLSearchParams({...s,...o})}const v=R(c,d);try{w=_(w,g),w=await z(w,g);const o=await i(v,w),h=await o.json(),{status:E,statusText:q}=o;if(!o.ok)if(k&&F(k))k({status:E,statusText:q,body:h});else throw{statusCode:o.status,statusText:o.statusText,response:o,message:(h==null?void 0:h.message)??o.statusText};return h}catch(o){if(u)f(o);else throw o}},_=(c,n=t)=>{const s={credentials:"include",...c};return s.headers=B(c==null?void 0:c.headers,n),s},z=async(c,n=t)=>($().accessToken?(c.headers=await b(c==null?void 0:c.headers,async()=>$().accessToken,n),c.headers=L(c==null?void 0:c.headers,$().idToken,n)):globalThis!=null&&globalThis.AccessToken&&(c.headers=await b(c==null?void 0:c.headers,globalThis.AccessToken,n)),c),b=async(c,n,s=t)=>{if(c||(c={}),!s)return c;try{const i=await n();i&&(c.Authorization=`Bearer ${i}`)}catch(i){console.error(i)}return c},L=(c={},n,s=t)=>(s&&n&&(c["Authorization-Extras"]=n),c),B=(c,n=t)=>{if(c||(c={}),c["Caller-Type"]="operator",!n)return c;const s="_csrf=",i="X-CSRF-TOKEN";try{let u=document.cookie.split(";").find(f=>f.includes(s));u&&!c[i]&&(u=u.trim().slice(s.length),c[i]=u)}catch(l){console.error(l)}return c};function J(c=t){const n="",s=!n.startsWith("http");let i="";return s?i=c?window.location.origin+n:"":i=n,i.endsWith("/")&&(i=i.slice(0,-1)),i}const H=(c,n)=>c?c.replace("%namespace%",n):"",K=c=>{var u,f;let n="";const s=(u=P(O).data)==null?void 0:u.webUrl,i=s&&c,l=((f=globalThis==null?void 0:globalThis.AppConfig)==null?void 0:f.apiUrl)&&c;return i?n=s:l?(console.warn("Using fallback api url, web url not found"),n=H(globalThis.AppConfig.apiUrl,c)):n=J(),n.endsWith("/")&&(n=n.slice(0,-1)),n=`${n}${N}`,n},X=c=>(c.startsWith("/")&&(c=c.slice(1)),`/api/v1/${c}`),D=(c,n)=>`${K(n)}${c}`,G=c=>Object.keys(c??{}).reduce((n,s)=>(n[s]=encodeURIComponent(encodeURIComponent(c[s])),n),{namespace:"",workflowId:"",scheduleId:"",queue:"",queryType:"",signalName:"",batchJobId:"",activityId:""});function M(c,n,s=!0){s&&(n=G(n));const i={cluster:"/cluster-info",systemInfo:"/system-info","events.ascending":`/namespaces/${n==null?void 0:n.namespace}/workflows/${n==null?void 0:n.workflowId}/history`,"events.descending":`/namespaces/${n==null?void 0:n.namespace}/workflows/${n==null?void 0:n.workflowId}/history-reverse`,namespaces:"/namespaces",namespace:`/namespaces/${n==null?void 0:n.namespace}`,query:`/namespaces/${n==null?void 0:n.namespace}/workflows/${n==null?void 0:n.workflowId}/query/${n.queryType}`,schedule:`/namespaces/${n==null?void 0:n.namespace}/schedules/${n==null?void 0:n.scheduleId}`,"schedule.patch":`/namespaces/${n==null?void 0:n.namespace}/schedules/${n==null?void 0:n.scheduleId}/patch`,"schedule.edit":`/namespaces/${n==null?void 0:n.namespace}/schedules/${n==null?void 0:n.scheduleId}/update`,schedules:`/namespaces/${n==null?void 0:n.namespace}/schedules`,"search-attributes":`/namespaces/${n.namespace}/search-attributes`,settings:"/settings","task-queue":`/namespaces/${n==null?void 0:n.namespace}/task-queues/${n==null?void 0:n.queue}`,"task-queue.compatibility":`/namespaces/${n==null?void 0:n.namespace}/task-queues/${n==null?void 0:n.queue}/worker-build-id-compatibility`,user:"/me","worker-task-reachability":`/namespaces/${n==null?void 0:n.namespace}/worker-task-reachability`,"workflow.terminate":`/namespaces/${n==null?void 0:n.namespace}/workflows/${n==null?void 0:n.workflowId}/terminate`,"workflow.cancel":`/namespaces/${n.namespace}/workflows/${n.workflowId}/cancel`,"workflow.signal":`/namespaces/${n.namespace}/workflows/${n.workflowId}/signal/${n.signalName}`,"workflow.reset":`/namespaces/${n.namespace}/workflows/${n.workflowId}/reset`,workflow:`/namespaces/${n==null?void 0:n.namespace}/workflows/${n==null?void 0:n.workflowId}`,"workflows.archived":`/namespaces/${n==null?void 0:n.namespace}/archived-workflows`,workflows:`/namespaces/${n==null?void 0:n.namespace}/workflows`,"workflows.count":`/namespaces/${n==null?void 0:n.namespace}/workflow-count`,"activity.complete":`/namespaces/${n.namespace}/activities/complete-by-id`,"activity.fail":`/namespaces/${n.namespace}/activities/fail-by-id`,"batch-operations.list":`/namespaces/${n.namespace}/batch-operations`,"batch-operations":`/namespaces/${n.namespace}/batch-operations/${n==null?void 0:n.batchJobId}`};return X(i[c])}function un(c,n,s=!0){const i=M(c,n,s);return D(i,n==null?void 0:n.namespace)}export{ln as a,K as b,sn as c,T as d,on as e,J as g,S as h,I as i,W as n,M as p,un as r}; diff --git a/ui/assets/local/_app/immutable/chunks/route-for.80613b91.js b/ui/assets/local/_app/immutable/chunks/route-for.084c7a46.js similarity index 96% rename from ui/assets/local/_app/immutable/chunks/route-for.80613b91.js rename to ui/assets/local/_app/immutable/chunks/route-for.084c7a46.js index 21d370986e..0431177731 100644 --- a/ui/assets/local/_app/immutable/chunks/route-for.80613b91.js +++ b/ui/assets/local/_app/immutable/chunks/route-for.084c7a46.js @@ -1 +1 @@ -import{B as f,e as c}from"./encode-uri.e26747e0.js";import{b as o}from"./paths.c2469178.js";const $=(r,t)=>{const e=t instanceof URLSearchParams;return t&&!e&&(t=new URLSearchParams(t)),t?`${r}?${t}`:r},g=()=>`${o}/namespaces`,u=({namespace:r})=>`${o}/namespaces/${r}`,p=()=>`${o}/select-namespace`,m=r=>`${u(r)}/workflows`,P=({namespace:r,query:t,search:e,page:s})=>$(m({namespace:r}),{query:t,search:e,...s&&{page:s}}),k=r=>`${u(r)}/archival`,n=({workflow:r,run:t,...e})=>{const s=c(r);return`${m(e)}/${s}/${t}`},h=r=>`${u(r)}/schedules`,v=({namespace:r})=>`${h({namespace:r})}/create`,S=({scheduleId:r,namespace:t})=>{const e=c(r);return`${h({namespace:t})}/${e}`},U=({scheduleId:r,namespace:t})=>{const e=c(r);return`${h({namespace:t})}/${e}/edit`},y=({queryParams:r,...t})=>{const e=`${n(t)}/history`;return $(`${e}`,r)},R=({eventId:r,...t})=>{const e=`${n(t)}/history/events/${r}`;return $(`${e}`)},W=r=>`${n(r)}/workers`,E=r=>{const t=c(r.queue);return`${u({namespace:r.namespace})}/task-queues/${t}`},L=r=>`${n(r)}/call-stack`,b=r=>`${n(r)}/query`,q=r=>`${n(r)}/pending-activities`,H=r=>{const{settings:t,searchParams:e,originUrl:s}=r,a=new URL(`${o}/auth/sso`,t.baseUrl);let i=t.auth.options??[];return i=[...i,"returnUrl"],i.forEach(l=>{if(!e)return;const F=e.get(l);F&&a.searchParams.set(l,F)}),!a.searchParams.get("returnUrl")&&s&&a.searchParams.set("returnUrl",s),a.toString()},B=(r="",t=f)=>{if(t){const e=new URL(`${o}/login`,window.location.origin);return e.searchParams.set("returnUrl",window.location.href),r&&e.searchParams.set("error",r),e.toString()}return`${o}/login`},A=(r,t)=>r&&t?`${o}/import/events/${r}/workflow/run/history/${t}`:`${o}/import/events`,N=({namespace:r})=>`${o}/namespaces/${r}/batch-operations`,O=({namespace:r,jobId:t})=>`${o}/namespaces/${r}/batch-operations/${t}`;export{m as a,k as b,g as c,h as d,N as e,A as f,y as g,W as h,q as i,L as j,b as k,p as l,E as m,R as n,u as o,O as p,S as q,B as r,v as s,$ as t,P as u,U as v,H as w}; +import{B as f,e as c}from"./encode-uri.e26747e0.js";import{b as o}from"./paths.b17cbae1.js";const $=(r,t)=>{const e=t instanceof URLSearchParams;return t&&!e&&(t=new URLSearchParams(t)),t?`${r}?${t}`:r},g=()=>`${o}/namespaces`,u=({namespace:r})=>`${o}/namespaces/${r}`,p=()=>`${o}/select-namespace`,m=r=>`${u(r)}/workflows`,P=({namespace:r,query:t,search:e,page:s})=>$(m({namespace:r}),{query:t,search:e,...s&&{page:s}}),k=r=>`${u(r)}/archival`,n=({workflow:r,run:t,...e})=>{const s=c(r);return`${m(e)}/${s}/${t}`},h=r=>`${u(r)}/schedules`,v=({namespace:r})=>`${h({namespace:r})}/create`,S=({scheduleId:r,namespace:t})=>{const e=c(r);return`${h({namespace:t})}/${e}`},U=({scheduleId:r,namespace:t})=>{const e=c(r);return`${h({namespace:t})}/${e}/edit`},y=({queryParams:r,...t})=>{const e=`${n(t)}/history`;return $(`${e}`,r)},R=({eventId:r,...t})=>{const e=`${n(t)}/history/events/${r}`;return $(`${e}`)},W=r=>`${n(r)}/workers`,E=r=>{const t=c(r.queue);return`${u({namespace:r.namespace})}/task-queues/${t}`},L=r=>`${n(r)}/call-stack`,b=r=>`${n(r)}/query`,q=r=>`${n(r)}/pending-activities`,H=r=>{const{settings:t,searchParams:e,originUrl:s}=r,a=new URL(`${o}/auth/sso`,t.baseUrl);let i=t.auth.options??[];return i=[...i,"returnUrl"],i.forEach(l=>{if(!e)return;const F=e.get(l);F&&a.searchParams.set(l,F)}),!a.searchParams.get("returnUrl")&&s&&a.searchParams.set("returnUrl",s),a.toString()},B=(r="",t=f)=>{if(t){const e=new URL(`${o}/login`,window.location.origin);return e.searchParams.set("returnUrl",window.location.href),r&&e.searchParams.set("error",r),e.toString()}return`${o}/login`},A=(r,t)=>r&&t?`${o}/import/events/${r}/workflow/run/history/${t}`:`${o}/import/events`,N=({namespace:r})=>`${o}/namespaces/${r}/batch-operations`,O=({namespace:r,jobId:t})=>`${o}/namespaces/${r}/batch-operations/${t}`;export{m as a,k as b,g as c,h as d,N as e,A as f,y as g,W as h,q as i,L as j,b as k,p as l,E as m,R as n,u as o,O as p,S as q,B as r,v as s,$ as t,P as u,U as v,H as w}; diff --git a/ui/assets/local/_app/immutable/chunks/schedule-form-view.7c016119.js b/ui/assets/local/_app/immutable/chunks/schedule-form-view.7c016119.js new file mode 100644 index 0000000000..6ad853625d --- /dev/null +++ b/ui/assets/local/_app/immutable/chunks/schedule-form-view.7c016119.js @@ -0,0 +1 @@ +import{S as Me,b as Se,a as We,G as Mt,N as et,m as W,p as V,q as T,k as _,O as ft,P as De,f as K,H as St,I as Wt,J as Vt,R as Ht,j as M,g as C,T as ot,af as Pt,K as je,U as At,u as Q,L as h,n as pe,a7 as Je,w as Z,x,Q as Ye,ag as Ze,c as H,d as P,A as j,a0 as z,C as A,D as L,E as N,a1 as G,F as U,z as tt,h as nt,a6 as Lt,a5 as dt,y as Nt}from"./index.4e2fcbc7.js";import{p as Tt}from"./stores.0e7b7e35.js";import{I as Ie}from"./input.4b0dcfae.js";import{c as Ut,T as Bt,a as qt,b as Ke}from"./tab.32ab741b.js";import{t as q}from"./translate.d23a91ae.js";import{m as ct,g as Xe,w as ht,S as Qt,O as Ge}from"./option.145cb9b7.js";import{I as Ft}from"./icon.e8aa24c8.js";import{T as Kt,a as _t}from"./toggle-buttons.9dfbcbed.js";import{S as Rt,e as xe,l as jt}from"./schedules.cfaf5e30.js";import{A as zt}from"./alert.9612e524.js";import{B as mt}from"./button.a45b0e55.js";import{L as Gt}from"./link.6803bb00.js";import{L as Jt}from"./loading.95801385.js";import{q as Xt,d as Yt}from"./route-for.084c7a46.js";import{w as gt}from"./write-actions-are-allowed.008c7180.js";function Zt(n){let e,t;const l=n[7].default,i=Mt(l,n,n[6],null);let r=[{id:n[0]},{"aria-labelledby":n[1]},{tabindex:"0"},{role:"tabpanel"},n[4]],o={};for(let s=0;st(5,o=m)),f(a),n.$$set=m=>{e=et(et({},e),At(m)),t(4,r=ot(e,i)),"id"in m&&t(0,a=m.id),"tabId"in m&&t(1,d=m.tabId),"$$scope"in m&&t(6,u=m.$$scope)},n.$$.update=()=>{n.$$.dirty&33&&t(2,l=o===a)},[a,d,l,c,r,o,u,s]}class Re extends Me{constructor(e){super(),Se(this,e,xt,Zt,We,{id:0,tabId:1})}}function pt(n,e,t){const l=n.slice();return l[4]=e[t],l}function vt(n){let e,t=n[4]+"",l,i,r;function o(...s){return n[3](n[4],...s)}return{c(){e=W("button"),l=Z(t),this.h()},l(s){e=V(s,"BUTTON",{class:!0});var u=T(e);l=x(u,t),u.forEach(_),this.h()},h(){Q(e,"class","cell svelte-c8o885"),De(e,"active",n[0].includes(n[4]))},m(s,u){K(s,e,u),h(e,l),i||(r=Ye(e,"click",Ze(o)),i=!0)},p(s,u){n=s,u&3&&De(e,"active",n[0].includes(n[4]))},d(s){s&&_(e),i=!1,r()}}}function en(n){let e,t,l=n[1],i=[];for(let r=0;ru+1);let{daysOfMonth:i}=e;const r=(s,u)=>{s.metaKey?i.includes(u)?i.filter(a=>a!==u):t(0,i=[...i,u]):t(0,i=[u])},o=(s,u)=>r(u,s);return n.$$set=s=>{"daysOfMonth"in s&&t(0,i=s.daysOfMonth)},[i,l,r,o]}class nn extends Me{constructor(e){super(),Se(this,e,tn,en,We,{daysOfMonth:0})}}function bt(n,e,t){const l=n.slice();return l[3]=e[t].label,l[4]=e[t].value,l}function $t(n){let e,t=n[3]+"",l,i,r,o;function s(...u){return n[2](n[4],...u)}return{c(){e=W("button"),l=Z(t),i=H(),this.h()},l(u){e=V(u,"BUTTON",{class:!0});var a=T(e);l=x(a,t),i=P(a),a.forEach(_),this.h()},h(){Q(e,"class","cell svelte-hc9i32"),De(e,"active",n[0].includes(n[4]))},m(u,a){K(u,e,a),h(e,l),h(e,i),r||(o=Ye(e,"click",Ze(s)),r=!0)},p(u,a){n=u,a&1&&De(e,"active",n[0].includes(n[4]))},d(u){u&&_(e),r=!1,o()}}}function ln(n){let e,t=ct,l=[];for(let i=0;i{o.metaKey&&s!=="*"?(l.includes("*")&&t(0,l=l.filter(u=>u!=="*")),l.includes(s)?t(0,l=l.filter(u=>u!==s)):t(0,l=[...l,s])):t(0,l=[s])},r=(o,s)=>i(s,o);return n.$$set=o=>{"months"in o&&t(0,l=o.months)},[l,i,r]}class un extends Me{constructor(e){super(),Se(this,e,sn,ln,We,{months:0})}}function an(n){let e=q("common.ante-meridiem")+"",t;return{c(){t=Z(e)},l(l){t=x(l,e)},m(l,i){K(l,t,i)},p:pe,d(l){l&&_(t)}}}function rn(n){let e=q("common.post-meridiem")+"",t;return{c(){t=Z(e)},l(l){t=x(l,e)},m(l,i){K(l,t,i)},p:pe,d(l){l&&_(t)}}}function fn(n){let e,t,l,i;return e=new _t({props:{active:n[2]==="AM",$$slots:{default:[an]},$$scope:{ctx:n}}}),e.$on("click",n[7]),l=new _t({props:{active:n[2]==="PM",$$slots:{default:[rn]},$$scope:{ctx:n}}}),l.$on("click",n[8]),{c(){A(e.$$.fragment),t=H(),A(l.$$.fragment)},l(r){L(e.$$.fragment,r),t=P(r),L(l.$$.fragment,r)},m(r,o){N(e,r,o),K(r,t,o),N(l,r,o),i=!0},p(r,o){const s={};o&4&&(s.active=r[2]==="AM"),o&512&&(s.$$scope={dirty:o,ctx:r}),e.$set(s);const u={};o&4&&(u.active=r[2]==="PM"),o&512&&(u.$$scope={dirty:o,ctx:r}),l.$set(u)},i(r){i||(M(e.$$.fragment,r),M(l.$$.fragment,r),i=!0)},o(r){C(e.$$.fragment,r),C(l.$$.fragment,r),i=!1},d(r){U(e,r),r&&_(t),U(l,r)}}}function on(n){let e,t,l=q("schedules.time-view-heading")+"",i,r,o,s=q("schedules.time-view-description")+"",u,a,d,f,c,m,g,b,y,w,I,B,J,k,$,D,se,Y,F,ne,S,X=q("common.based-on-time-preface")+"",ie,ue,ee;function ae(p){n[5](p)}let de={id:"hour-time",label:q("common.hours-abbreviated"),labelHidden:!0,placeholder:"00",suffix:q("common.hours-abbreviated"),maxLength:2,error:n[3](n[1],12)};n[1]!==void 0&&(de.value=n[1]),c=new Ie({props:de}),j.push(()=>z(c,"value",ae));function he(p){n[6](p)}let re={id:"minute-time",label:q("common.minutes-abbreviated"),labelHidden:!0,placeholder:"00",suffix:q("common.minutes-abbreviated"),maxLength:2,error:n[3](n[0],59)};return n[0]!==void 0&&(re.value=n[0]),B=new Ie({props:re}),j.push(()=>z(B,"value",he)),D=new Kt({props:{$$slots:{default:[fn]},$$scope:{ctx:n}}}),F=new Ft({props:{name:"clock","aria-hidden":"true"}}),{c(){e=W("div"),t=W("h3"),i=Z(l),r=H(),o=W("p"),u=Z(s),a=H(),d=W("div"),f=W("div"),A(c.$$.fragment),g=H(),b=W("div"),y=Z(":"),w=H(),I=W("div"),A(B.$$.fragment),k=H(),$=W("div"),A(D.$$.fragment),se=H(),Y=W("div"),A(F.$$.fragment),ne=H(),S=W("span"),ie=Z(X),ue=Z(" Universal Standard Time (UTC)"),this.h()},l(p){e=V(p,"DIV",{class:!0});var te=T(e);t=V(te,"H3",{class:!0});var _e=T(t);i=x(_e,l),_e.forEach(_),r=P(te),o=V(te,"P",{});var fe=T(o);u=x(fe,s),fe.forEach(_),a=P(te),d=V(te,"DIV",{class:!0});var oe=T(d);f=V(oe,"DIV",{class:!0});var Oe=T(f);L(c.$$.fragment,Oe),Oe.forEach(_),g=P(oe),b=V(oe,"DIV",{});var Ee=T(b);y=x(Ee,":"),Ee.forEach(_),w=P(oe),I=V(oe,"DIV",{class:!0});var me=T(I);L(B.$$.fragment,me),me.forEach(_),k=P(oe),$=V(oe,"DIV",{class:!0});var ge=T($);L(D.$$.fragment,ge),ge.forEach(_),oe.forEach(_),se=P(te),Y=V(te,"DIV",{class:!0});var ke=T(Y);L(F.$$.fragment,ke),ne=P(ke),S=V(ke,"SPAN",{class:!0});var ye=T(S);ie=x(ye,X),ue=x(ye," Universal Standard Time (UTC)"),ye.forEach(_),ke.forEach(_),te.forEach(_),this.h()},h(){Q(t,"class","text-lg font-medium"),Q(f,"class","w-24"),Q(I,"class","w-24"),Q($,"class","ml-2"),Q(d,"class","flex flex-row items-center gap-2"),Q(S,"class","text-xs font-normal text-gray-500"),Q(Y,"class","flex w-full flex-row items-center gap-2"),Q(e,"class","flex flex-col gap-4")},m(p,te){K(p,e,te),h(e,t),h(t,i),h(e,r),h(e,o),h(o,u),h(e,a),h(e,d),h(d,f),N(c,f,null),h(d,g),h(d,b),h(b,y),h(d,w),h(d,I),N(B,I,null),h(d,k),h(d,$),N(D,$,null),h(e,se),h(e,Y),N(F,Y,null),h(Y,ne),h(Y,S),h(S,ie),h(S,ue),ee=!0},p(p,[te]){const _e={};te&2&&(_e.error=p[3](p[1],12)),!m&&te&2&&(m=!0,_e.value=p[1],G(()=>m=!1)),c.$set(_e);const fe={};te&1&&(fe.error=p[3](p[0],59)),!J&&te&1&&(J=!0,fe.value=p[0],G(()=>J=!1)),B.$set(fe);const oe={};te&516&&(oe.$$scope={dirty:te,ctx:p}),D.$set(oe)},i(p){ee||(M(c.$$.fragment,p),M(B.$$.fragment,p),M(D.$$.fragment,p),M(F.$$.fragment,p),ee=!0)},o(p){C(c.$$.fragment,p),C(B.$$.fragment,p),C(D.$$.fragment,p),C(F.$$.fragment,p),ee=!1},d(p){p&&_(e),U(c),U(B),U(D),U(F)}}}function dn(n,e,t){let{hour:l=""}=e,{minute:i=""}=e,r="",o="AM";const s=(c,m)=>c?isNaN(parseInt(c))||parseInt(c)>m:!1;function u(c){r=c,t(1,r)}function a(c){i=c,t(0,i)}const d=()=>t(2,o="AM"),f=()=>t(2,o="PM");return n.$$set=c=>{"hour"in c&&t(4,l=c.hour),"minute"in c&&t(0,i=c.minute)},n.$$.update=()=>{n.$$.dirty&6&&(r?r==="12"?t(4,l=o==="AM"?"00":"12"):o==="PM"?t(4,l=(parseInt(r)+12).toString()):t(4,l=r):t(4,l=""))},[i,r,o,s,l,u,a,d,f]}class Ct extends Me{constructor(e){super(),Se(this,e,dn,on,We,{hour:4,minute:0})}}function cn(n){let e,t,l=q("schedules.recurring-dates-heading")+"",i,r,o,s=q("schedules.recurring-dates-description")+"",u,a,d,f,c,m,g,b,y,w,I,B,J;function k(S){n[4](S)}let $={};n[0]!==void 0&&($.daysOfMonth=n[0]),f=new nn({props:$}),j.push(()=>z(f,"daysOfMonth",k));function D(S){n[5](S)}let se={};n[1]!==void 0&&(se.months=n[1]),g=new un({props:se}),j.push(()=>z(g,"months",D));function Y(S){n[6](S)}function F(S){n[7](S)}let ne={};return n[2]!==void 0&&(ne.hour=n[2]),n[3]!==void 0&&(ne.minute=n[3]),w=new Ct({props:ne}),j.push(()=>z(w,"hour",Y)),j.push(()=>z(w,"minute",F)),{c(){e=W("div"),t=W("h3"),i=Z(l),r=H(),o=W("p"),u=Z(s),a=H(),d=W("div"),A(f.$$.fragment),m=H(),A(g.$$.fragment),y=H(),A(w.$$.fragment),this.h()},l(S){e=V(S,"DIV",{class:!0});var X=T(e);t=V(X,"H3",{class:!0});var ie=T(t);i=x(ie,l),ie.forEach(_),r=P(X),o=V(X,"P",{});var ue=T(o);u=x(ue,s),ue.forEach(_),a=P(X),d=V(X,"DIV",{class:!0});var ee=T(d);L(f.$$.fragment,ee),m=P(ee),L(g.$$.fragment,ee),ee.forEach(_),X.forEach(_),y=P(S),L(w.$$.fragment,S),this.h()},h(){Q(t,"class","text-lg font-medium"),Q(d,"class","flex w-full flex-col gap-4"),Q(e,"class","my-2 flex flex-col gap-4")},m(S,X){K(S,e,X),h(e,t),h(t,i),h(e,r),h(e,o),h(o,u),h(e,a),h(e,d),N(f,d,null),h(d,m),N(g,d,null),K(S,y,X),N(w,S,X),J=!0},p(S,[X]){const ie={};!c&&X&1&&(c=!0,ie.daysOfMonth=S[0],G(()=>c=!1)),f.$set(ie);const ue={};!b&&X&2&&(b=!0,ue.months=S[1],G(()=>b=!1)),g.$set(ue);const ee={};!I&&X&4&&(I=!0,ee.hour=S[2],G(()=>I=!1)),!B&&X&8&&(B=!0,ee.minute=S[3],G(()=>B=!1)),w.$set(ee)},i(S){J||(M(f.$$.fragment,S),M(g.$$.fragment,S),M(w.$$.fragment,S),J=!0)},o(S){C(f.$$.fragment,S),C(g.$$.fragment,S),C(w.$$.fragment,S),J=!1},d(S){S&&_(e),U(f),U(g),S&&_(y),U(w,S)}}}function hn(n,e,t){let{daysOfMonth:l}=e,{months:i}=e,{hour:r}=e,{minute:o}=e;function s(f){l=f,t(0,l)}function u(f){i=f,t(1,i)}function a(f){r=f,t(2,r)}function d(f){o=f,t(3,o)}return n.$$set=f=>{"daysOfMonth"in f&&t(0,l=f.daysOfMonth),"months"in f&&t(1,i=f.months),"hour"in f&&t(2,r=f.hour),"minute"in f&&t(3,o=f.minute)},[l,i,r,o,s,u,a,d]}class _n extends Me{constructor(e){super(),Se(this,e,hn,cn,We,{daysOfMonth:0,months:1,hour:2,minute:3})}}function wt(n,e,t){const l=n.slice();return l[4]=e[t].label,l[5]=e[t].value,l}function kt(n,e,t){const l=n.slice();return l[4]=e[t].label,l[5]=e[t].value,l}function It(n){let e,t=n[4]+"",l,i,r;function o(...s){return n[2](n[5],...s)}return{c(){e=W("button"),l=Z(t),this.h()},l(s){e=V(s,"BUTTON",{class:!0});var u=T(e);l=x(u,t),u.forEach(_),this.h()},h(){Q(e,"class","cell svelte-xr91x7"),De(e,"active",n[0].includes(n[5]))},m(s,u){K(s,e,u),h(e,l),i||(r=Ye(e,"click",Ze(o)),i=!0)},p(s,u){n=s,u&1&&De(e,"active",n[0].includes(n[5]))},d(s){s&&_(e),i=!1,r()}}}function Ot(n){let e,t=n[4]+"",l,i,r;function o(...s){return n[3](n[5],...s)}return{c(){e=W("button"),l=Z(t),this.h()},l(s){e=V(s,"BUTTON",{class:!0});var u=T(e);l=x(u,t),u.forEach(_),this.h()},h(){Q(e,"class","cell svelte-xr91x7"),De(e,"active",n[0].includes(n[5]))},m(s,u){K(s,e,u),h(e,l),i||(r=Ye(e,"click",Ze(o)),i=!0)},p(s,u){n=s,u&1&&De(e,"active",n[0].includes(n[5]))},d(s){s&&_(e),i=!1,r()}}}function mn(n){let e,t,l,i,r=Xe,o=[];for(let a=0;a{s.metaKey?(Xe.find(a=>a.value===u)?t(0,l=[u]):l.find(a=>Xe.find(d=>d.value===a))&&t(0,l=[u]),l.includes(u)?l.filter(a=>a!==u):t(0,l=[...l,u])):t(0,l=[u])},r=(s,u)=>i(u,s),o=(s,u)=>i(u,s);return n.$$set=s=>{"daysOfWeek"in s&&t(0,l=s.daysOfWeek)},[l,i,r,o]}class pn extends Me{constructor(e){super(),Se(this,e,gn,mn,We,{daysOfWeek:0})}}function vn(n){let e,t,l=q("schedules.recurring-days-heading")+"",i,r,o,s=q("schedules.recurring-days-description")+"",u,a,d,f,c,m,g,b,y;function w($){n[3]($)}let I={};n[0]!==void 0&&(I.daysOfWeek=n[0]),d=new pn({props:I}),j.push(()=>z(d,"daysOfWeek",w));function B($){n[4]($)}function J($){n[5]($)}let k={};return n[1]!==void 0&&(k.hour=n[1]),n[2]!==void 0&&(k.minute=n[2]),m=new Ct({props:k}),j.push(()=>z(m,"hour",B)),j.push(()=>z(m,"minute",J)),{c(){e=W("div"),t=W("h3"),i=Z(l),r=H(),o=W("p"),u=Z(s),a=H(),A(d.$$.fragment),c=H(),A(m.$$.fragment),this.h()},l($){e=V($,"DIV",{class:!0});var D=T(e);t=V(D,"H3",{class:!0});var se=T(t);i=x(se,l),se.forEach(_),r=P(D),o=V(D,"P",{});var Y=T(o);u=x(Y,s),Y.forEach(_),a=P(D),L(d.$$.fragment,D),D.forEach(_),c=P($),L(m.$$.fragment,$),this.h()},h(){Q(t,"class","text-lg font-medium"),Q(e,"class","my-2 flex flex-col gap-4")},m($,D){K($,e,D),h(e,t),h(t,i),h(e,r),h(e,o),h(o,u),h(e,a),N(d,e,null),K($,c,D),N(m,$,D),y=!0},p($,[D]){const se={};!f&&D&1&&(f=!0,se.daysOfWeek=$[0],G(()=>f=!1)),d.$set(se);const Y={};!g&&D&2&&(g=!0,Y.hour=$[1],G(()=>g=!1)),!b&&D&4&&(b=!0,Y.minute=$[2],G(()=>b=!1)),m.$set(Y)},i($){y||(M(d.$$.fragment,$),M(m.$$.fragment,$),y=!0)},o($){C(d.$$.fragment,$),C(m.$$.fragment,$),y=!1},d($){$&&_(e),U(d),$&&_(c),U(m,$)}}}function bn(n,e,t){let{daysOfWeek:l}=e,{hour:i}=e,{minute:r}=e;function o(a){l=a,t(0,l)}function s(a){i=a,t(1,i)}function u(a){r=a,t(2,r)}return n.$$set=a=>{"daysOfWeek"in a&&t(0,l=a.daysOfWeek),"hour"in a&&t(1,i=a.hour),"minute"in a&&t(2,r=a.minute)},[l,i,r,o,s,u]}class $n extends Me{constructor(e){super(),Se(this,e,bn,vn,We,{daysOfWeek:0,hour:1,minute:2})}}function wn(n){let e=q("common.days")+"",t;return{c(){t=Z(e)},l(l){t=x(l,e)},m(l,i){K(l,t,i)},p:pe,d(l){l&&_(t)}}}function kn(n){let e=q("common.hours-abbreviated")+"",t;return{c(){t=Z(e)},l(l){t=x(l,e)},m(l,i){K(l,t,i)},p:pe,d(l){l&&_(t)}}}function In(n){let e=q("common.minutes-abbreviated")+"",t;return{c(){t=Z(e)},l(l){t=x(l,e)},m(l,i){K(l,t,i)},p:pe,d(l){l&&_(t)}}}function On(n){let e=q("common.seconds-abbreviated")+"",t;return{c(){t=Z(e)},l(l){t=x(l,e)},m(l,i){K(l,t,i)},p:pe,d(l){l&&_(t)}}}function yn(n){let e,t,l,i,r,o,s,u;return e=new Ge({props:{value:"days",$$slots:{default:[wn]},$$scope:{ctx:n}}}),l=new Ge({props:{value:"hrs",$$slots:{default:[kn]},$$scope:{ctx:n}}}),r=new Ge({props:{value:"min",$$slots:{default:[In]},$$scope:{ctx:n}}}),s=new Ge({props:{value:"sec",$$slots:{default:[On]},$$scope:{ctx:n}}}),{c(){A(e.$$.fragment),t=H(),A(l.$$.fragment),i=H(),A(r.$$.fragment),o=H(),A(s.$$.fragment)},l(a){L(e.$$.fragment,a),t=P(a),L(l.$$.fragment,a),i=P(a),L(r.$$.fragment,a),o=P(a),L(s.$$.fragment,a)},m(a,d){N(e,a,d),K(a,t,d),N(l,a,d),K(a,i,d),N(r,a,d),K(a,o,d),N(s,a,d),u=!0},p(a,d){const f={};d&16384&&(f.$$scope={dirty:d,ctx:a}),e.$set(f);const c={};d&16384&&(c.$$scope={dirty:d,ctx:a}),l.$set(c);const m={};d&16384&&(m.$$scope={dirty:d,ctx:a}),r.$set(m);const g={};d&16384&&(g.$$scope={dirty:d,ctx:a}),s.$set(g)},i(a){u||(M(e.$$.fragment,a),M(l.$$.fragment,a),M(r.$$.fragment,a),M(s.$$.fragment,a),u=!0)},o(a){C(e.$$.fragment,a),C(l.$$.fragment,a),C(r.$$.fragment,a),C(s.$$.fragment,a),u=!1},d(a){U(e,a),a&&_(t),U(l,a),a&&_(i),U(r,a),a&&_(o),U(s,a)}}}function En(n){let e,t,l=q("schedules.interval-view-heading")+"",i,r,o,s=q("schedules.interval-view-description")+"",u,a,d,f,c,m,g,b,y,w,I,B,J,k,$,D,se,Y,F,ne,S,X,ie,ue,ee,ae,de,he,re,p=q("schedules.offset-heading")+"",te,_e,fe,oe=q("schedules.offset-description")+"",Oe,Ee,me,ge,ke,ye,$e,Pe,Ce;function Qe(E){n[8](E)}let Ae={id:"days",label:q("common.days"),labelHidden:!0,placeholder:"00",suffix:q("common.days"),maxLength:3,error:n[7](n[0])};n[0]!==void 0&&(Ae.value=n[0]),c=new Ie({props:Ae}),j.push(()=>z(c,"value",Qe));function Fe(E){n[9](E)}let ve={id:"hour-interval",label:q("common.hours-abbreviated"),labelHidden:!0,placeholder:"00",suffix:q("common.hours-abbreviated"),maxLength:2,error:n[7](n[1])};n[1]!==void 0&&(ve.value=n[1]),B=new Ie({props:ve}),j.push(()=>z(B,"value",Fe));function v(E){n[10](E)}let R={id:"minute-interval",label:q("common.minutes-abbreviated"),labelHidden:!0,placeholder:"00",suffix:q("common.minutes-abbreviated"),maxLength:2,error:n[7](n[2])};n[2]!==void 0&&(R.value=n[2]),F=new Ie({props:R}),j.push(()=>z(F,"value",v));function Ve(E){n[11](E)}let O={id:"second",label:q("common.seconds-abbreviated"),labelHidden:!0,placeholder:"00",suffix:q("common.seconds-abbreviated"),maxLength:2,error:n[7](n[3])};n[3]!==void 0&&(O.value=n[3]),ae=new Ie({props:O}),j.push(()=>z(ae,"value",Ve));function be(E){n[12](E)}let we={id:"phase",label:q("schedules.offset-heading"),labelHidden:!0,placeholder:"00",error:n[7](n[4]),unroundRight:!0};n[5]!==void 0&&(we.value=n[5]),ge=new Ie({props:we}),j.push(()=>z(ge,"value",be));function He(E){n[13](E)}let Te={label:q("schedules.offset-unit"),labelHidden:!0,unroundLeft:!0,id:"phase-unit",$$slots:{default:[yn]},$$scope:{ctx:n}};return n[6]!==void 0&&(Te.value=n[6]),$e=new Qt({props:Te}),j.push(()=>z($e,"value",He)),{c(){e=W("div"),t=W("h3"),i=Z(l),r=H(),o=W("p"),u=Z(s),a=H(),d=W("div"),f=W("div"),A(c.$$.fragment),g=H(),b=W("div"),y=Z(":"),w=H(),I=W("div"),A(B.$$.fragment),k=H(),$=W("div"),D=Z(":"),se=H(),Y=W("div"),A(F.$$.fragment),S=H(),X=W("div"),ie=Z(":"),ue=H(),ee=W("div"),A(ae.$$.fragment),he=H(),re=W("h3"),te=Z(p),_e=H(),fe=W("p"),Oe=Z(oe),Ee=H(),me=W("div"),A(ge.$$.fragment),ye=H(),A($e.$$.fragment),this.h()},l(E){e=V(E,"DIV",{class:!0});var le=T(e);t=V(le,"H3",{class:!0});var Le=T(t);i=x(Le,l),Le.forEach(_),r=P(le),o=V(le,"P",{});var Ne=T(o);u=x(Ne,s),Ne.forEach(_),a=P(le),d=V(le,"DIV",{class:!0});var ce=T(d);f=V(ce,"DIV",{class:!0});var Ue=T(f);L(c.$$.fragment,Ue),Ue.forEach(_),g=P(ce),b=V(ce,"DIV",{});var Be=T(b);y=x(Be,":"),Be.forEach(_),w=P(ce),I=V(ce,"DIV",{class:!0});var qe=T(I);L(B.$$.fragment,qe),qe.forEach(_),k=P(ce),$=V(ce,"DIV",{});var lt=T($);D=x(lt,":"),lt.forEach(_),se=P(ce),Y=V(ce,"DIV",{class:!0});var st=T(Y);L(F.$$.fragment,st),st.forEach(_),S=P(ce),X=V(ce,"DIV",{});var it=T(X);ie=x(it,":"),it.forEach(_),ue=P(ce),ee=V(ce,"DIV",{class:!0});var ut=T(ee);L(ae.$$.fragment,ut),ut.forEach(_),ce.forEach(_),he=P(le),re=V(le,"H3",{class:!0});var at=T(re);te=x(at,p),at.forEach(_),_e=P(le),fe=V(le,"P",{});var rt=T(fe);Oe=x(rt,oe),rt.forEach(_),Ee=P(le),me=V(le,"DIV",{class:!0});var ze=T(me);L(ge.$$.fragment,ze),ye=P(ze),L($e.$$.fragment,ze),ze.forEach(_),le.forEach(_),this.h()},h(){Q(t,"class","text-lg font-medium"),Q(f,"class","w-24"),Q(I,"class","w-24"),Q(Y,"class","w-24"),Q(ee,"class","w-24"),Q(d,"class","flex flex-row items-center gap-2"),Q(re,"class","mt-4 text-lg font-medium"),Q(me,"class","flex w-48 gap-0"),Q(e,"class","my-2 flex flex-col gap-4")},m(E,le){K(E,e,le),h(e,t),h(t,i),h(e,r),h(e,o),h(o,u),h(e,a),h(e,d),h(d,f),N(c,f,null),h(d,g),h(d,b),h(b,y),h(d,w),h(d,I),N(B,I,null),h(d,k),h(d,$),h($,D),h(d,se),h(d,Y),N(F,Y,null),h(d,S),h(d,X),h(X,ie),h(d,ue),h(d,ee),N(ae,ee,null),h(e,he),h(e,re),h(re,te),h(e,_e),h(e,fe),h(fe,Oe),h(e,Ee),h(e,me),N(ge,me,null),h(me,ye),N($e,me,null),Ce=!0},p(E,[le]){const Le={};le&1&&(Le.error=E[7](E[0])),!m&&le&1&&(m=!0,Le.value=E[0],G(()=>m=!1)),c.$set(Le);const Ne={};le&2&&(Ne.error=E[7](E[1])),!J&&le&2&&(J=!0,Ne.value=E[1],G(()=>J=!1)),B.$set(Ne);const ce={};le&4&&(ce.error=E[7](E[2])),!ne&&le&4&&(ne=!0,ce.value=E[2],G(()=>ne=!1)),F.$set(ce);const Ue={};le&8&&(Ue.error=E[7](E[3])),!de&&le&8&&(de=!0,Ue.value=E[3],G(()=>de=!1)),ae.$set(Ue);const Be={};le&16&&(Be.error=E[7](E[4])),!ke&&le&32&&(ke=!0,Be.value=E[5],G(()=>ke=!1)),ge.$set(Be);const qe={};le&16384&&(qe.$$scope={dirty:le,ctx:E}),!Pe&&le&64&&(Pe=!0,qe.value=E[6],G(()=>Pe=!1)),$e.$set(qe)},i(E){Ce||(M(c.$$.fragment,E),M(B.$$.fragment,E),M(F.$$.fragment,E),M(ae.$$.fragment,E),M(ge.$$.fragment,E),M($e.$$.fragment,E),Ce=!0)},o(E){C(c.$$.fragment,E),C(B.$$.fragment,E),C(F.$$.fragment,E),C(ae.$$.fragment,E),C(ge.$$.fragment,E),C($e.$$.fragment,E),Ce=!1},d(E){E&&_(e),U(c),U(B),U(F),U(ae),U(ge),U($e)}}}function Dn(n,e,t){let{days:l=""}=e,{hour:i=""}=e,{minute:r=""}=e,{second:o=""}=e,{phase:s=""}=e,u="",a="min";const d=w=>w?isNaN(parseInt(w)):!1;function f(w){l=w,t(0,l)}function c(w){i=w,t(1,i)}function m(w){r=w,t(2,r)}function g(w){o=w,t(3,o)}function b(w){u=w,t(5,u)}function y(w){a=w,t(6,a)}return n.$$set=w=>{"days"in w&&t(0,l=w.days),"hour"in w&&t(1,i=w.hour),"minute"in w&&t(2,r=w.minute),"second"in w&&t(3,o=w.second),"phase"in w&&t(4,s=w.phase)},n.$$.update=()=>{n.$$.dirty&96&&u&&(a==="days"?t(4,s=(parseInt(u)*60*60*24).toString()+"s"):a==="hrs"?t(4,s=(parseInt(u)*60*60).toString()+"s"):a==="min"?t(4,s=(parseInt(u)*60).toString()+"s"):a==="sec"&&t(4,s=parseInt(u).toString()+"s"))},[l,i,r,o,s,u,a,d,f,c,m,g,b,y]}class Mn extends Me{constructor(e){super(),Se(this,e,Dn,En,We,{days:0,hour:1,minute:2,second:3,phase:4})}}const Sn=n=>({preset:n[0]&1024}),yt=n=>({preset:n[10]});function Et(n){let e,t;return e=new Ke({props:{label:"Existing",id:"existing-tab",panelId:"existing-panel",onClick:n[12]}}),{c(){A(e.$$.fragment)},l(l){L(e.$$.fragment,l)},m(l,i){N(e,l,i),t=!0},p(l,i){const r={};i[0]&1024&&(r.onClick=l[12]),e.$set(r)},i(l){t||(M(e.$$.fragment,l),t=!0)},o(l){C(e.$$.fragment,l),t=!1},d(l){U(e,l)}}}function Wn(n){let e,t,l,i,r,o,s,u,a,d=n[9]&&Et(n);return t=new Ke({props:{label:"Interval",id:"interval-tab",panelId:"interval-panel",onClick:n[13]}}),i=new Ke({props:{label:"Days of the Week",id:"daily-tab",panelId:"daily-panel",onClick:n[14]}}),o=new Ke({props:{label:"Days of the Month",id:"monthly-tab",panelId:"monthly-panel",onClick:n[15]}}),u=new Ke({props:{label:"String",id:"string-tab",panelId:"string-panel",onClick:n[16]}}),{c(){d&&d.c(),e=H(),A(t.$$.fragment),l=H(),A(i.$$.fragment),r=H(),A(o.$$.fragment),s=H(),A(u.$$.fragment)},l(f){d&&d.l(f),e=P(f),L(t.$$.fragment,f),l=P(f),L(i.$$.fragment,f),r=P(f),L(o.$$.fragment,f),s=P(f),L(u.$$.fragment,f)},m(f,c){d&&d.m(f,c),K(f,e,c),N(t,f,c),K(f,l,c),N(i,f,c),K(f,r,c),N(o,f,c),K(f,s,c),N(u,f,c),a=!0},p(f,c){f[9]?d?(d.p(f,c),c[0]&512&&M(d,1)):(d=Et(f),d.c(),M(d,1),d.m(e.parentNode,e)):d&&(tt(),C(d,1,1,()=>{d=null}),nt());const m={};c[0]&1024&&(m.onClick=f[13]),t.$set(m);const g={};c[0]&1024&&(g.onClick=f[14]),i.$set(g);const b={};c[0]&1024&&(b.onClick=f[15]),o.$set(b);const y={};c[0]&1024&&(y.onClick=f[16]),u.$set(y)},i(f){a||(M(d),M(t.$$.fragment,f),M(i.$$.fragment,f),M(o.$$.fragment,f),M(u.$$.fragment,f),a=!0)},o(f){C(d),C(t.$$.fragment,f),C(i.$$.fragment,f),C(o.$$.fragment,f),C(u.$$.fragment,f),a=!1},d(f){d&&d.d(f),f&&_(e),U(t,f),f&&_(l),U(i,f),f&&_(r),U(o,f),f&&_(s),U(u,f)}}}function Dt(n){let e,t;return e=new Re({props:{id:"existing-panel",tabId:"existing-tab",class:"w-full",$$slots:{default:[Vn]},$$scope:{ctx:n}}}),{c(){A(e.$$.fragment)},l(l){L(e.$$.fragment,l)},m(l,i){N(e,l,i),t=!0},p(l,i){const r={};i[0]&1073742336&&(r.$$scope={dirty:i,ctx:l}),e.$set(r)},i(l){t||(M(e.$$.fragment,l),t=!0)},o(l){C(e.$$.fragment,l),t=!1},d(l){U(e,l)}}}function Vn(n){var l,i,r,o,s,u;let e,t;return e=new Rt({props:{calendar:(r=(i=(l=n[9])==null?void 0:l.spec)==null?void 0:i.structuredCalendar)==null?void 0:r[0],interval:(u=(s=(o=n[9])==null?void 0:o.spec)==null?void 0:s.interval)==null?void 0:u[0]}}),{c(){A(e.$$.fragment)},l(a){L(e.$$.fragment,a)},m(a,d){N(e,a,d),t=!0},p(a,d){var c,m,g,b,y,w;const f={};d[0]&512&&(f.calendar=(g=(m=(c=a[9])==null?void 0:c.spec)==null?void 0:m.structuredCalendar)==null?void 0:g[0]),d[0]&512&&(f.interval=(w=(y=(b=a[9])==null?void 0:b.spec)==null?void 0:y.interval)==null?void 0:w[0]),e.$set(f)},i(a){t||(M(e.$$.fragment,a),t=!0)},o(a){C(e.$$.fragment,a),t=!1},d(a){U(e,a)}}}function Tn(n){let e,t,l,i,r,o,s;function u(g){n[17](g)}function a(g){n[18](g)}function d(g){n[19](g)}function f(g){n[20](g)}function c(g){n[21](g)}let m={};return n[3]!==void 0&&(m.days=n[3]),n[4]!==void 0&&(m.hour=n[4]),n[5]!==void 0&&(m.minute=n[5]),n[6]!==void 0&&(m.second=n[6]),n[7]!==void 0&&(m.phase=n[7]),e=new Mn({props:m}),j.push(()=>z(e,"days",u)),j.push(()=>z(e,"hour",a)),j.push(()=>z(e,"minute",d)),j.push(()=>z(e,"second",f)),j.push(()=>z(e,"phase",c)),{c(){A(e.$$.fragment)},l(g){L(e.$$.fragment,g)},m(g,b){N(e,g,b),s=!0},p(g,b){const y={};!t&&b[0]&8&&(t=!0,y.days=g[3],G(()=>t=!1)),!l&&b[0]&16&&(l=!0,y.hour=g[4],G(()=>l=!1)),!i&&b[0]&32&&(i=!0,y.minute=g[5],G(()=>i=!1)),!r&&b[0]&64&&(r=!0,y.second=g[6],G(()=>r=!1)),!o&&b[0]&128&&(o=!0,y.phase=g[7],G(()=>o=!1)),e.$set(y)},i(g){s||(M(e.$$.fragment,g),s=!0)},o(g){C(e.$$.fragment,g),s=!1},d(g){U(e,g)}}}function Cn(n){let e,t,l,i,r;function o(d){n[22](d)}function s(d){n[23](d)}function u(d){n[24](d)}let a={};return n[0]!==void 0&&(a.daysOfWeek=n[0]),n[4]!==void 0&&(a.hour=n[4]),n[5]!==void 0&&(a.minute=n[5]),e=new $n({props:a}),j.push(()=>z(e,"daysOfWeek",o)),j.push(()=>z(e,"hour",s)),j.push(()=>z(e,"minute",u)),{c(){A(e.$$.fragment)},l(d){L(e.$$.fragment,d)},m(d,f){N(e,d,f),r=!0},p(d,f){const c={};!t&&f[0]&1&&(t=!0,c.daysOfWeek=d[0],G(()=>t=!1)),!l&&f[0]&16&&(l=!0,c.hour=d[4],G(()=>l=!1)),!i&&f[0]&32&&(i=!0,c.minute=d[5],G(()=>i=!1)),e.$set(c)},i(d){r||(M(e.$$.fragment,d),r=!0)},o(d){C(e.$$.fragment,d),r=!1},d(d){U(e,d)}}}function Hn(n){let e,t,l,i,r,o;function s(c){n[25](c)}function u(c){n[26](c)}function a(c){n[27](c)}function d(c){n[28](c)}let f={};return n[1]!==void 0&&(f.daysOfMonth=n[1]),n[2]!==void 0&&(f.months=n[2]),n[4]!==void 0&&(f.hour=n[4]),n[5]!==void 0&&(f.minute=n[5]),e=new _n({props:f}),j.push(()=>z(e,"daysOfMonth",s)),j.push(()=>z(e,"months",u)),j.push(()=>z(e,"hour",a)),j.push(()=>z(e,"minute",d)),{c(){A(e.$$.fragment)},l(c){L(e.$$.fragment,c)},m(c,m){N(e,c,m),o=!0},p(c,m){const g={};!t&&m[0]&2&&(t=!0,g.daysOfMonth=c[1],G(()=>t=!1)),!l&&m[0]&4&&(l=!0,g.months=c[2],G(()=>l=!1)),!i&&m[0]&16&&(i=!0,g.hour=c[4],G(()=>i=!1)),!r&&m[0]&32&&(r=!0,g.minute=c[5],G(()=>r=!1)),e.$set(g)},i(c){o||(M(e.$$.fragment,c),o=!0)},o(c){C(e.$$.fragment,c),o=!1},d(c){U(e,c)}}}function Pn(n){let e,t,l=q("schedules.cron-view-title")+"",i,r,o,s=q("schedules.cron-view-description")+"",u,a,d,f,c;function m(b){n[29](b)}let g={label:q("schedules.cron-view-title"),labelHidden:!0,id:"cronString",placeholder:"* * * * *"};return n[8]!==void 0&&(g.value=n[8]),d=new Ie({props:g}),j.push(()=>z(d,"value",m)),{c(){e=W("div"),t=W("h3"),i=Z(l),r=H(),o=W("p"),u=Z(s),a=H(),A(d.$$.fragment),this.h()},l(b){e=V(b,"DIV",{class:!0});var y=T(e);t=V(y,"H3",{class:!0});var w=T(t);i=x(w,l),w.forEach(_),r=P(y),o=V(y,"P",{});var I=T(o);u=x(I,s),I.forEach(_),a=P(y),L(d.$$.fragment,y),y.forEach(_),this.h()},h(){Q(t,"class","text-lg font-medium"),Q(e,"class","my-2 flex w-full flex-col gap-4")},m(b,y){K(b,e,y),h(e,t),h(t,i),h(e,r),h(e,o),h(o,u),h(e,a),N(d,e,null),c=!0},p(b,y){const w={};!f&&y[0]&256&&(f=!0,w.value=b[8],G(()=>f=!1)),d.$set(w)},i(b){c||(M(d.$$.fragment,b),c=!0)},o(b){C(d.$$.fragment,b),c=!1},d(b){b&&_(e),U(d)}}}function An(n){let e,t=q("schedules.schedule-spec")+"",l,i,r,o,s,u,a,d,f,c,m,g,b,y,w;r=new qt({props:{label:"Schedule Tabs",class:"flex flex-wrap gap-6",$$slots:{default:[Wn]},$$scope:{ctx:n}}});let I=n[9]&&Dt(n);a=new Re({props:{id:"interval-panel",tabId:"interval-tab",$$slots:{default:[Tn]},$$scope:{ctx:n}}}),f=new Re({props:{id:"daily-panel",tabId:"daily-tab",$$slots:{default:[Cn]},$$scope:{ctx:n}}}),m=new Re({props:{id:"monthly-panel",tabId:"monthly-tab",$$slots:{default:[Hn]},$$scope:{ctx:n}}}),b=new Re({props:{id:"string-panel",tabId:"string-tab",$$slots:{default:[Pn]},$$scope:{ctx:n}}});const B=n[11].default,J=Mt(B,n,n[30],yt);return{c(){e=W("h2"),l=Z(t),i=H(),A(r.$$.fragment),o=H(),s=W("div"),I&&I.c(),u=H(),A(a.$$.fragment),d=H(),A(f.$$.fragment),c=H(),A(m.$$.fragment),g=H(),A(b.$$.fragment),y=H(),J&&J.c(),this.h()},l(k){e=V(k,"H2",{class:!0});var $=T(e);l=x($,t),$.forEach(_),i=P(k),L(r.$$.fragment,k),o=P(k),s=V(k,"DIV",{class:!0});var D=T(s);I&&I.l(D),u=P(D),L(a.$$.fragment,D),d=P(D),L(f.$$.fragment,D),c=P(D),L(m.$$.fragment,D),g=P(D),L(b.$$.fragment,D),D.forEach(_),y=P(k),J&&J.l(k),this.h()},h(){Q(e,"class","mb-4 text-2xl"),Q(s,"class","mt-4 flex w-full flex-wrap gap-6")},m(k,$){K(k,e,$),h(e,l),K(k,i,$),N(r,k,$),K(k,o,$),K(k,s,$),I&&I.m(s,null),h(s,u),N(a,s,null),h(s,d),N(f,s,null),h(s,c),N(m,s,null),h(s,g),N(b,s,null),K(k,y,$),J&&J.m(k,$),w=!0},p(k,$){const D={};$[0]&1073743360&&(D.$$scope={dirty:$,ctx:k}),r.$set(D),k[9]?I?(I.p(k,$),$[0]&512&&M(I,1)):(I=Dt(k),I.c(),M(I,1),I.m(s,u)):I&&(tt(),C(I,1,1,()=>{I=null}),nt());const se={};$[0]&1073742072&&(se.$$scope={dirty:$,ctx:k}),a.$set(se);const Y={};$[0]&1073741873&&(Y.$$scope={dirty:$,ctx:k}),f.$set(Y);const F={};$[0]&1073741878&&(F.$$scope={dirty:$,ctx:k}),m.$set(F);const ne={};$[0]&1073742080&&(ne.$$scope={dirty:$,ctx:k}),b.$set(ne),J&&J.p&&(!w||$[0]&1073742848)&&St(J,B,k,k[30],w?Vt(B,k[30],$,Sn):Wt(k[30]),yt)},i(k){w||(M(r.$$.fragment,k),M(I),M(a.$$.fragment,k),M(f.$$.fragment,k),M(m.$$.fragment,k),M(b.$$.fragment,k),M(J,k),w=!0)},o(k){C(r.$$.fragment,k),C(I),C(a.$$.fragment,k),C(f.$$.fragment,k),C(m.$$.fragment,k),C(b.$$.fragment,k),C(J,k),w=!1},d(k){k&&_(e),k&&_(i),U(r,k),k&&_(o),k&&_(s),I&&I.d(),U(a),U(f),U(m),U(b),k&&_(y),J&&J.d(k)}}}function Ln(n){let e,t;return e=new Bt({props:{class:"mt-8 w-full",$$slots:{default:[An]},$$scope:{ctx:n}}}),{c(){A(e.$$.fragment)},l(l){L(e.$$.fragment,l)},m(l,i){N(e,l,i),t=!0},p(l,i){const r={};i[0]&1073743871&&(r.$$scope={dirty:i,ctx:l}),e.$set(r)},i(l){t||(M(e.$$.fragment,l),t=!0)},o(l){C(e.$$.fragment,l),t=!1},d(l){U(e,l)}}}function Nn(n,e,t){let l;je(n,Tt,p=>t(31,l=p));let{$$slots:i={},$$scope:r}=e,s=l.params.schedule?"existing":"interval",{schedule:u=null}=e,{daysOfWeek:a}=e,{daysOfMonth:d}=e,{months:f}=e,{days:c}=e,{hour:m}=e,{minute:g}=e,{second:b}=e,{phase:y}=e,{cronString:w}=e;const I=()=>{t(0,a=[]),t(1,d=[]),t(2,f=[]),t(3,c=""),t(4,m=""),t(5,g=""),t(6,b=""),t(7,y=""),t(8,w="")},B=()=>t(10,s="existing"),J=()=>t(10,s="interval"),k=()=>t(10,s="week"),$=()=>t(10,s="month"),D=()=>t(10,s="string");function se(p){c=p,t(3,c)}function Y(p){m=p,t(4,m)}function F(p){g=p,t(5,g)}function ne(p){b=p,t(6,b)}function S(p){y=p,t(7,y)}function X(p){a=p,t(0,a)}function ie(p){m=p,t(4,m)}function ue(p){g=p,t(5,g)}function ee(p){d=p,t(1,d)}function ae(p){f=p,t(2,f)}function de(p){m=p,t(4,m)}function he(p){g=p,t(5,g)}function re(p){w=p,t(8,w)}return n.$$set=p=>{"schedule"in p&&t(9,u=p.schedule),"daysOfWeek"in p&&t(0,a=p.daysOfWeek),"daysOfMonth"in p&&t(1,d=p.daysOfMonth),"months"in p&&t(2,f=p.months),"days"in p&&t(3,c=p.days),"hour"in p&&t(4,m=p.hour),"minute"in p&&t(5,g=p.minute),"second"in p&&t(6,b=p.second),"phase"in p&&t(7,y=p.phase),"cronString"in p&&t(8,w=p.cronString),"$$scope"in p&&t(30,r=p.$$scope)},I(),[a,d,f,c,m,g,b,y,w,u,s,i,B,J,k,$,D,se,Y,F,ne,S,X,ie,ue,ee,ae,de,he,re,r]}class Un extends Me{constructor(e){super(),Se(this,e,Nn,Ln,We,{schedule:9,daysOfWeek:0,daysOfMonth:1,months:2,days:3,hour:4,minute:5,second:6,phase:7,cronString:8},null,[-1,-1])}}function Bn(n){let e,t,l,i,r,o,s,u,a,d,f,c,m,g,b,y,w,I,B,J,k,$,D,se,Y,F,ne,S,X,ie,ue,ee,ae,de,he,re;t=new Gt({props:{href:n[22],icon:"chevron-left",$$slots:{default:[Qn]},$$scope:{ctx:n}}}),u=new zt({props:{intent:"error",title:"",hidden:!n[16],bold:!0,$$slots:{default:[Fn]},$$scope:{ctx:n}}});function p(v){n[28](v)}let te={id:"name",label:q("schedules.name-label"),error:n[13].name,maxLength:232,disabled:Boolean(n[18])};n[1]!==void 0&&(te.value=n[1]),f=new Ie({props:te}),j.push(()=>z(f,"value",p)),f.$on("input",n[25]),f.$on("blur",n[26]);function _e(v){n[29](v)}let fe={id:"workflowType",label:q("schedules.workflow-type-label"),error:n[13].workflowType};n[2]!==void 0&&(fe.value=n[2]),b=new Ie({props:fe}),j.push(()=>z(b,"value",_e)),b.$on("input",n[25]),b.$on("blur",n[26]);function oe(v){n[30](v)}let Oe={id:"workflowId",label:q("schedules.workflow-id-label"),error:n[13].workflowId};n[3]!==void 0&&(Oe.value=n[3]),B=new Ie({props:Oe}),j.push(()=>z(B,"value",oe)),B.$on("input",n[25]),B.$on("blur",n[26]);function Ee(v){n[31](v)}let me={id:"taskQueue",label:q("schedules.task-queue-label"),error:n[13].taskQueue};n[4]!==void 0&&(me.value=n[4]),D=new Ie({props:me}),j.push(()=>z(D,"value",Ee)),D.$on("input",n[25]),D.$on("blur",n[26]);function ge(v){n[33](v)}function ke(v){n[34](v)}function ye(v){n[35](v)}function $e(v){n[36](v)}function Pe(v){n[37](v)}function Ce(v){n[38](v)}function Qe(v){n[39](v)}function Ae(v){n[40](v)}function Fe(v){n[41](v)}let ve={schedule:n[0],$$slots:{default:[jn,({preset:v})=>({55:v}),({preset:v})=>[0,v?16777216:0]]},$$scope:{ctx:n}};return n[5]!==void 0&&(ve.daysOfWeek=n[5]),n[6]!==void 0&&(ve.daysOfMonth=n[6]),n[7]!==void 0&&(ve.months=n[7]),n[8]!==void 0&&(ve.days=n[8]),n[9]!==void 0&&(ve.hour=n[9]),n[10]!==void 0&&(ve.minute=n[10]),n[11]!==void 0&&(ve.second=n[11]),n[14]!==void 0&&(ve.phase=n[14]),n[12]!==void 0&&(ve.cronString=n[12]),F=new Un({props:ve}),j.push(()=>z(F,"daysOfWeek",ge)),j.push(()=>z(F,"daysOfMonth",ke)),j.push(()=>z(F,"months",ye)),j.push(()=>z(F,"days",$e)),j.push(()=>z(F,"hour",Pe)),j.push(()=>z(F,"minute",Ce)),j.push(()=>z(F,"second",Qe)),j.push(()=>z(F,"phase",Ae)),j.push(()=>z(F,"cronString",Fe)),{c(){e=W("header"),A(t.$$.fragment),l=H(),i=W("h1"),r=Z(n[19]),o=H(),s=W("form"),A(u.$$.fragment),a=H(),d=W("div"),A(f.$$.fragment),m=H(),g=W("div"),A(b.$$.fragment),w=H(),I=W("div"),A(B.$$.fragment),k=H(),$=W("div"),A(D.$$.fragment),Y=H(),A(F.$$.fragment),this.h()},l(v){e=V(v,"HEADER",{class:!0});var R=T(e);L(t.$$.fragment,R),l=P(R),i=V(R,"H1",{class:!0});var Ve=T(i);r=x(Ve,n[19]),Ve.forEach(_),R.forEach(_),o=P(v),s=V(v,"FORM",{class:!0});var O=T(s);L(u.$$.fragment,O),a=P(O),d=V(O,"DIV",{class:!0});var be=T(d);L(f.$$.fragment,be),be.forEach(_),m=P(O),g=V(O,"DIV",{class:!0});var we=T(g);L(b.$$.fragment,we),we.forEach(_),w=P(O),I=V(O,"DIV",{class:!0});var He=T(I);L(B.$$.fragment,He),He.forEach(_),k=P(O),$=V(O,"DIV",{class:!0});var Te=T($);L(D.$$.fragment,Te),Te.forEach(_),Y=P(O),L(F.$$.fragment,O),O.forEach(_),this.h()},h(){Q(i,"class","font-base text-2xl"),Q(e,"class","mb-12 flex flex-col gap-4"),Q(d,"class","w-full"),Q(g,"class","w-full"),Q(I,"class","w-full"),Q($,"class","w-full"),Q(s,"class","mb-4 flex w-full flex-col gap-4 md:w-2/3 xl:w-1/2")},m(v,R){K(v,e,R),N(t,e,null),h(e,l),h(e,i),h(i,r),K(v,o,R),K(v,s,R),N(u,s,null),h(s,a),h(s,d),N(f,d,null),h(s,m),h(s,g),N(b,g,null),h(s,w),h(s,I),N(B,I,null),h(s,k),h(s,$),N(D,$,null),h(s,Y),N(F,s,null),re=!0},p(v,R){const Ve={};R[1]&33554432&&(Ve.$$scope={dirty:R,ctx:v}),t.$set(Ve);const O={};R[0]&65536&&(O.hidden=!v[16]),R[0]&65536|R[1]&33554432&&(O.$$scope={dirty:R,ctx:v}),u.$set(O);const be={};R[0]&8192&&(be.error=v[13].name),!c&&R[0]&2&&(c=!0,be.value=v[1],G(()=>c=!1)),f.$set(be);const we={};R[0]&8192&&(we.error=v[13].workflowType),!y&&R[0]&4&&(y=!0,we.value=v[2],G(()=>y=!1)),b.$set(we);const He={};R[0]&8192&&(He.error=v[13].workflowId),!J&&R[0]&8&&(J=!0,He.value=v[3],G(()=>J=!1)),B.$set(He);const Te={};R[0]&8192&&(Te.error=v[13].taskQueue),!se&&R[0]&16&&(se=!0,Te.value=v[4],G(()=>se=!1)),D.$set(Te);const E={};R[0]&1&&(E.schedule=v[0]),R[0]&32769|R[1]&50331648&&(E.$$scope={dirty:R,ctx:v}),!ne&&R[0]&32&&(ne=!0,E.daysOfWeek=v[5],G(()=>ne=!1)),!S&&R[0]&64&&(S=!0,E.daysOfMonth=v[6],G(()=>S=!1)),!X&&R[0]&128&&(X=!0,E.months=v[7],G(()=>X=!1)),!ie&&R[0]&256&&(ie=!0,E.days=v[8],G(()=>ie=!1)),!ue&&R[0]&512&&(ue=!0,E.hour=v[9],G(()=>ue=!1)),!ee&&R[0]&1024&&(ee=!0,E.minute=v[10],G(()=>ee=!1)),!ae&&R[0]&2048&&(ae=!0,E.second=v[11],G(()=>ae=!1)),!de&&R[0]&16384&&(de=!0,E.phase=v[14],G(()=>de=!1)),!he&&R[0]&4096&&(he=!0,E.cronString=v[12],G(()=>he=!1)),F.$set(E)},i(v){re||(M(t.$$.fragment,v),M(u.$$.fragment,v),M(f.$$.fragment,v),M(b.$$.fragment,v),M(B.$$.fragment,v),M(D.$$.fragment,v),M(F.$$.fragment,v),re=!0)},o(v){C(t.$$.fragment,v),C(u.$$.fragment,v),C(f.$$.fragment,v),C(b.$$.fragment,v),C(B.$$.fragment,v),C(D.$$.fragment,v),C(F.$$.fragment,v),re=!1},d(v){v&&_(e),U(t),v&&_(o),v&&_(s),U(u),U(f),U(b),U(B),U(D),U(F)}}}function qn(n){let e,t;return e=new Jt({props:{title:n[20]}}),{c(){A(e.$$.fragment)},l(l){L(e.$$.fragment,l)},m(l,i){N(e,l,i),t=!0},p:pe,i(l){t||(M(e.$$.fragment,l),t=!0)},o(l){C(e.$$.fragment,l),t=!1},d(l){U(e,l)}}}function Qn(n){let e;return{c(){e=Z(n[21])},l(t){e=x(t,n[21])},m(t,l){K(t,e,l)},p:pe,d(t){t&&_(e)}}}function Fn(n){let e;return{c(){e=Z(n[16])},l(t){e=x(t,n[16])},m(t,l){K(t,e,l)},p(t,l){l[0]&65536&&Nt(e,t[16])},d(t){t&&_(e)}}}function Kn(n){let e;return{c(){e=Z(n[23])},l(t){e=x(t,n[23])},m(t,l){K(t,e,l)},p:pe,d(t){t&&_(e)}}}function Rn(n){let e=q("common.cancel")+"",t;return{c(){t=Z(e)},l(l){t=x(l,e)},m(l,i){K(l,t,i)},p:pe,d(l){l&&_(t)}}}function jn(n){let e,t,l,i,r;function o(){return n[32](n[55])}return t=new mt({props:{disabled:n[15](n[55])||!gt(),$$slots:{default:[Kn]},$$scope:{ctx:n}}}),t.$on("click",o),i=new mt({props:{variant:"ghost",href:n[22],$$slots:{default:[Rn]},$$scope:{ctx:n}}}),{c(){e=W("div"),A(t.$$.fragment),l=H(),A(i.$$.fragment),this.h()},l(s){e=V(s,"DIV",{class:!0});var u=T(e);L(t.$$.fragment,u),l=P(u),L(i.$$.fragment,u),u.forEach(_),this.h()},h(){Q(e,"class","mt-8 flex items-center gap-2")},m(s,u){K(s,e,u),N(t,e,null),h(e,l),N(i,e,null),r=!0},p(s,u){n=s;const a={};u[0]&32768|u[1]&16777216&&(a.disabled=n[15](n[55])||!gt()),u[1]&33554432&&(a.$$scope={dirty:u,ctx:n}),t.$set(a);const d={};u[1]&33554432&&(d.$$scope={dirty:u,ctx:n}),i.$set(d)},i(s){r||(M(t.$$.fragment,s),M(i.$$.fragment,s),r=!0)},o(s){C(t.$$.fragment,s),C(i.$$.fragment,s),r=!1},d(s){s&&_(e),U(t),U(i)}}}function zn(n){let e,t,l,i;const r=[qn,Bn],o=[];function s(u,a){return u[17]?0:1}return t=s(n),l=o[t]=r[t](n),{c(){e=W("div"),l.c(),this.h()},l(u){e=V(u,"DIV",{class:!0});var a=T(e);l.l(a),a.forEach(_),this.h()},h(){Q(e,"class","pb-20")},m(u,a){K(u,e,a),o[t].m(e,null),i=!0},p(u,a){let d=t;t=s(u),t===d?o[t].p(u,a):(tt(),C(o[d],1,1,()=>{o[d]=null}),nt(),l=o[t],l?l.p(u,a):(l=o[t]=r[t](u),l.c()),M(l,1),l.m(e,null))},i(u){i||(M(l),i=!0)},o(u){C(l),i=!1},d(u){u&&_(e),o[t].d()}}}function Gn(n,e,t){let l,i,r,o;je(n,xe,O=>t(16,i=O)),je(n,Tt,O=>t(53,r=O)),je(n,jt,O=>t(17,o=O));var s,u,a,d,f,c,m,g,b,y,w;let{schedule:I=null}=e,{onConfirm:B}=e,J=r.params.namespace,k=r.params.schedule,$=q(I?"schedules.edit":"schedules.create"),D=q(I?"schedules.editing":"schedules.creating"),se=q(I?"schedules.back-to-schedule":"schedules.back-to-schedules"),Y=I?Xt({namespace:J,scheduleId:k}):Yt({namespace:J}),F=I?q("common.save"):q("schedules.create"),ne={},S=k??"",X=(d=(a=(u=(s=I==null?void 0:I.action)===null||s===void 0?void 0:s.startWorkflow)===null||u===void 0?void 0:u.workflowType)===null||a===void 0?void 0:a.name)!==null&&d!==void 0?d:"",ie=(m=(c=(f=I==null?void 0:I.action)===null||f===void 0?void 0:f.startWorkflow)===null||c===void 0?void 0:c.workflowId)!==null&&m!==void 0?m:"",ue=(w=(y=(b=(g=I==null?void 0:I.action)===null||g===void 0?void 0:g.startWorkflow)===null||b===void 0?void 0:b.taskQueue)===null||y===void 0?void 0:y.name)!==null&&w!==void 0?w:"",ee=[],ae=[],de=[],he="",re="",p="",te="",_e="",fe="";const oe=(O,be)=>{B(O,{name:S,workflowType:X,workflowId:ie,taskQueue:ue,hour:re,minute:p,second:te,phase:_e,cronString:fe,daysOfWeek:ee,daysOfMonth:ae,days:he,months:de},be)},Oe=O=>{const{id:be}=O.target;t(13,ne[be]=!1,ne),i&&dt(xe,i="",i)},Ee=O=>{const{value:be,id:we}=O.target;be.trim()?t(13,ne[we]=!1,ne):t(13,ne[we]=!0,ne)};Lt(()=>dt(xe,i="",i));function me(O){S=O,t(1,S)}function ge(O){X=O,t(2,X)}function ke(O){ie=O,t(3,ie)}function ye(O){ue=O,t(4,ue)}const $e=O=>oe(O,I);function Pe(O){ee=O,t(5,ee)}function Ce(O){ae=O,t(6,ae)}function Qe(O){de=O,t(7,de)}function Ae(O){he=O,t(8,he)}function Fe(O){re=O,t(9,re)}function ve(O){p=O,t(10,p)}function v(O){te=O,t(11,te)}function R(O){_e=O,t(14,_e)}function Ve(O){fe=O,t(12,fe)}return n.$$set=O=>{"schedule"in O&&t(0,I=O.schedule),"onConfirm"in O&&t(27,B=O.onConfirm)},n.$$.update=()=>{n.$$.dirty[0]&8190&&t(15,l=O=>!S||!X||!ie||!ue?!0:O==="interval"?!he&&!re&&!p&&!te:O==="week"?!ee.length:O==="month"?!ae.length||!de.length:O==="string"?!fe:!1)},[I,S,X,ie,ue,ee,ae,de,he,re,p,te,fe,ne,_e,l,i,o,k,$,D,se,Y,F,oe,Oe,Ee,B,me,ge,ke,ye,$e,Pe,Ce,Qe,Ae,Fe,ve,v,R,Ve]}class ol extends Me{constructor(e){super(),Se(this,e,Gn,zn,We,{schedule:0,onConfirm:27},null,[-1,-1])}}export{ol as S}; diff --git a/ui/assets/local/_app/immutable/chunks/schedule-form-view.e4ddd14f.js b/ui/assets/local/_app/immutable/chunks/schedule-form-view.e4ddd14f.js deleted file mode 100644 index a1f8575e03..0000000000 --- a/ui/assets/local/_app/immutable/chunks/schedule-form-view.e4ddd14f.js +++ /dev/null @@ -1 +0,0 @@ -import{S as Me,b as Se,a as We,G as Dt,N as et,m as W,p as V,q as T,k as _,O as ft,P as De,f as K,H as Mt,I as St,J as Wt,R as Ct,j as M,g as C,T as ot,af as Ht,K as je,U as Pt,u as Q,L as h,n as pe,a7 as Je,w as Z,x,Q as Ye,ag as Ze,c as H,d as P,A as j,a0 as z,C as L,D as A,E as N,a1 as G,F as U,z as tt,h as nt,a6 as Lt,a5 as dt,y as At}from"./index.4e2fcbc7.js";import{p as Vt}from"./stores.14a97433.js";import{I as Ie}from"./input.0bde2076.js";import{c as Nt,T as Ut,a as Bt,b as Ke}from"./tab.33b6de7b.js";import{t as q}from"./translate.d23a91ae.js";import{m as ct,g as Xe,w as ht,S as qt,O as Ge}from"./option.6ac49d4b.js";import{I as Qt}from"./icon.e8aa24c8.js";import{T as Ft,a as _t}from"./toggle-buttons.781b6924.js";import{S as Kt,e as xe,l as Rt}from"./schedules.71007bee.js";import{A as jt}from"./alert.9612e524.js";import{B as mt}from"./button.a45b0e55.js";import{L as zt}from"./link.6803bb00.js";import{L as Gt}from"./loading.95801385.js";import{q as Jt,d as Xt}from"./route-for.80613b91.js";function Yt(n){let e,t;const l=n[7].default,i=Dt(l,n,n[6],null);let r=[{id:n[0]},{"aria-labelledby":n[1]},{tabindex:"0"},{role:"tabpanel"},n[4]],o={};for(let s=0;st(5,o=m)),f(a),n.$$set=m=>{e=et(et({},e),Pt(m)),t(4,r=ot(e,i)),"id"in m&&t(0,a=m.id),"tabId"in m&&t(1,d=m.tabId),"$$scope"in m&&t(6,u=m.$$scope)},n.$$.update=()=>{n.$$.dirty&33&&t(2,l=o===a)},[a,d,l,c,r,o,u,s]}class Re extends Me{constructor(e){super(),Se(this,e,Zt,Yt,We,{id:0,tabId:1})}}function gt(n,e,t){const l=n.slice();return l[4]=e[t],l}function pt(n){let e,t=n[4]+"",l,i,r;function o(...s){return n[3](n[4],...s)}return{c(){e=W("button"),l=Z(t),this.h()},l(s){e=V(s,"BUTTON",{class:!0});var u=T(e);l=x(u,t),u.forEach(_),this.h()},h(){Q(e,"class","cell svelte-c8o885"),De(e,"active",n[0].includes(n[4]))},m(s,u){K(s,e,u),h(e,l),i||(r=Ye(e,"click",Ze(o)),i=!0)},p(s,u){n=s,u&3&&De(e,"active",n[0].includes(n[4]))},d(s){s&&_(e),i=!1,r()}}}function xt(n){let e,t,l=n[1],i=[];for(let r=0;ru+1);let{daysOfMonth:i}=e;const r=(s,u)=>{s.metaKey?i.includes(u)?i.filter(a=>a!==u):t(0,i=[...i,u]):t(0,i=[u])},o=(s,u)=>r(u,s);return n.$$set=s=>{"daysOfMonth"in s&&t(0,i=s.daysOfMonth)},[i,l,r,o]}class tn extends Me{constructor(e){super(),Se(this,e,en,xt,We,{daysOfMonth:0})}}function vt(n,e,t){const l=n.slice();return l[3]=e[t].label,l[4]=e[t].value,l}function bt(n){let e,t=n[3]+"",l,i,r,o;function s(...u){return n[2](n[4],...u)}return{c(){e=W("button"),l=Z(t),i=H(),this.h()},l(u){e=V(u,"BUTTON",{class:!0});var a=T(e);l=x(a,t),i=P(a),a.forEach(_),this.h()},h(){Q(e,"class","cell svelte-hc9i32"),De(e,"active",n[0].includes(n[4]))},m(u,a){K(u,e,a),h(e,l),h(e,i),r||(o=Ye(e,"click",Ze(s)),r=!0)},p(u,a){n=u,a&1&&De(e,"active",n[0].includes(n[4]))},d(u){u&&_(e),r=!1,o()}}}function nn(n){let e,t=ct,l=[];for(let i=0;i{o.metaKey&&s!=="*"?(l.includes("*")&&t(0,l=l.filter(u=>u!=="*")),l.includes(s)?t(0,l=l.filter(u=>u!==s)):t(0,l=[...l,s])):t(0,l=[s])},r=(o,s)=>i(s,o);return n.$$set=o=>{"months"in o&&t(0,l=o.months)},[l,i,r]}class sn extends Me{constructor(e){super(),Se(this,e,ln,nn,We,{months:0})}}function un(n){let e=q("common.ante-meridiem")+"",t;return{c(){t=Z(e)},l(l){t=x(l,e)},m(l,i){K(l,t,i)},p:pe,d(l){l&&_(t)}}}function an(n){let e=q("common.post-meridiem")+"",t;return{c(){t=Z(e)},l(l){t=x(l,e)},m(l,i){K(l,t,i)},p:pe,d(l){l&&_(t)}}}function rn(n){let e,t,l,i;return e=new _t({props:{active:n[2]==="AM",$$slots:{default:[un]},$$scope:{ctx:n}}}),e.$on("click",n[7]),l=new _t({props:{active:n[2]==="PM",$$slots:{default:[an]},$$scope:{ctx:n}}}),l.$on("click",n[8]),{c(){L(e.$$.fragment),t=H(),L(l.$$.fragment)},l(r){A(e.$$.fragment,r),t=P(r),A(l.$$.fragment,r)},m(r,o){N(e,r,o),K(r,t,o),N(l,r,o),i=!0},p(r,o){const s={};o&4&&(s.active=r[2]==="AM"),o&512&&(s.$$scope={dirty:o,ctx:r}),e.$set(s);const u={};o&4&&(u.active=r[2]==="PM"),o&512&&(u.$$scope={dirty:o,ctx:r}),l.$set(u)},i(r){i||(M(e.$$.fragment,r),M(l.$$.fragment,r),i=!0)},o(r){C(e.$$.fragment,r),C(l.$$.fragment,r),i=!1},d(r){U(e,r),r&&_(t),U(l,r)}}}function fn(n){let e,t,l=q("schedules.time-view-heading")+"",i,r,o,s=q("schedules.time-view-description")+"",u,a,d,f,c,m,g,b,y,w,I,B,J,k,$,D,se,Y,F,ne,S,X=q("common.based-on-time-preface")+"",ie,ue,ee;function ae(p){n[5](p)}let de={id:"hour-time",label:q("common.hours-abbreviated"),labelHidden:!0,placeholder:"00",suffix:q("common.hours-abbreviated"),maxLength:2,error:n[3](n[1],12)};n[1]!==void 0&&(de.value=n[1]),c=new Ie({props:de}),j.push(()=>z(c,"value",ae));function he(p){n[6](p)}let re={id:"minute-time",label:q("common.minutes-abbreviated"),labelHidden:!0,placeholder:"00",suffix:q("common.minutes-abbreviated"),maxLength:2,error:n[3](n[0],59)};return n[0]!==void 0&&(re.value=n[0]),B=new Ie({props:re}),j.push(()=>z(B,"value",he)),D=new Ft({props:{$$slots:{default:[rn]},$$scope:{ctx:n}}}),F=new Qt({props:{name:"clock","aria-hidden":"true"}}),{c(){e=W("div"),t=W("h3"),i=Z(l),r=H(),o=W("p"),u=Z(s),a=H(),d=W("div"),f=W("div"),L(c.$$.fragment),g=H(),b=W("div"),y=Z(":"),w=H(),I=W("div"),L(B.$$.fragment),k=H(),$=W("div"),L(D.$$.fragment),se=H(),Y=W("div"),L(F.$$.fragment),ne=H(),S=W("span"),ie=Z(X),ue=Z(" Universal Standard Time (UTC)"),this.h()},l(p){e=V(p,"DIV",{class:!0});var te=T(e);t=V(te,"H3",{class:!0});var _e=T(t);i=x(_e,l),_e.forEach(_),r=P(te),o=V(te,"P",{});var fe=T(o);u=x(fe,s),fe.forEach(_),a=P(te),d=V(te,"DIV",{class:!0});var oe=T(d);f=V(oe,"DIV",{class:!0});var Oe=T(f);A(c.$$.fragment,Oe),Oe.forEach(_),g=P(oe),b=V(oe,"DIV",{});var Ee=T(b);y=x(Ee,":"),Ee.forEach(_),w=P(oe),I=V(oe,"DIV",{class:!0});var me=T(I);A(B.$$.fragment,me),me.forEach(_),k=P(oe),$=V(oe,"DIV",{class:!0});var ge=T($);A(D.$$.fragment,ge),ge.forEach(_),oe.forEach(_),se=P(te),Y=V(te,"DIV",{class:!0});var ke=T(Y);A(F.$$.fragment,ke),ne=P(ke),S=V(ke,"SPAN",{class:!0});var ye=T(S);ie=x(ye,X),ue=x(ye," Universal Standard Time (UTC)"),ye.forEach(_),ke.forEach(_),te.forEach(_),this.h()},h(){Q(t,"class","text-lg font-medium"),Q(f,"class","w-24"),Q(I,"class","w-24"),Q($,"class","ml-2"),Q(d,"class","flex flex-row items-center gap-2"),Q(S,"class","text-xs font-normal text-gray-500"),Q(Y,"class","flex w-full flex-row items-center gap-2"),Q(e,"class","flex flex-col gap-4")},m(p,te){K(p,e,te),h(e,t),h(t,i),h(e,r),h(e,o),h(o,u),h(e,a),h(e,d),h(d,f),N(c,f,null),h(d,g),h(d,b),h(b,y),h(d,w),h(d,I),N(B,I,null),h(d,k),h(d,$),N(D,$,null),h(e,se),h(e,Y),N(F,Y,null),h(Y,ne),h(Y,S),h(S,ie),h(S,ue),ee=!0},p(p,[te]){const _e={};te&2&&(_e.error=p[3](p[1],12)),!m&&te&2&&(m=!0,_e.value=p[1],G(()=>m=!1)),c.$set(_e);const fe={};te&1&&(fe.error=p[3](p[0],59)),!J&&te&1&&(J=!0,fe.value=p[0],G(()=>J=!1)),B.$set(fe);const oe={};te&516&&(oe.$$scope={dirty:te,ctx:p}),D.$set(oe)},i(p){ee||(M(c.$$.fragment,p),M(B.$$.fragment,p),M(D.$$.fragment,p),M(F.$$.fragment,p),ee=!0)},o(p){C(c.$$.fragment,p),C(B.$$.fragment,p),C(D.$$.fragment,p),C(F.$$.fragment,p),ee=!1},d(p){p&&_(e),U(c),U(B),U(D),U(F)}}}function on(n,e,t){let{hour:l=""}=e,{minute:i=""}=e,r="",o="AM";const s=(c,m)=>c?isNaN(parseInt(c))||parseInt(c)>m:!1;function u(c){r=c,t(1,r)}function a(c){i=c,t(0,i)}const d=()=>t(2,o="AM"),f=()=>t(2,o="PM");return n.$$set=c=>{"hour"in c&&t(4,l=c.hour),"minute"in c&&t(0,i=c.minute)},n.$$.update=()=>{n.$$.dirty&6&&(r?r==="12"?t(4,l=o==="AM"?"00":"12"):o==="PM"?t(4,l=(parseInt(r)+12).toString()):t(4,l=r):t(4,l=""))},[i,r,o,s,l,u,a,d,f]}class Tt extends Me{constructor(e){super(),Se(this,e,on,fn,We,{hour:4,minute:0})}}function dn(n){let e,t,l=q("schedules.recurring-dates-heading")+"",i,r,o,s=q("schedules.recurring-dates-description")+"",u,a,d,f,c,m,g,b,y,w,I,B,J;function k(S){n[4](S)}let $={};n[0]!==void 0&&($.daysOfMonth=n[0]),f=new tn({props:$}),j.push(()=>z(f,"daysOfMonth",k));function D(S){n[5](S)}let se={};n[1]!==void 0&&(se.months=n[1]),g=new sn({props:se}),j.push(()=>z(g,"months",D));function Y(S){n[6](S)}function F(S){n[7](S)}let ne={};return n[2]!==void 0&&(ne.hour=n[2]),n[3]!==void 0&&(ne.minute=n[3]),w=new Tt({props:ne}),j.push(()=>z(w,"hour",Y)),j.push(()=>z(w,"minute",F)),{c(){e=W("div"),t=W("h3"),i=Z(l),r=H(),o=W("p"),u=Z(s),a=H(),d=W("div"),L(f.$$.fragment),m=H(),L(g.$$.fragment),y=H(),L(w.$$.fragment),this.h()},l(S){e=V(S,"DIV",{class:!0});var X=T(e);t=V(X,"H3",{class:!0});var ie=T(t);i=x(ie,l),ie.forEach(_),r=P(X),o=V(X,"P",{});var ue=T(o);u=x(ue,s),ue.forEach(_),a=P(X),d=V(X,"DIV",{class:!0});var ee=T(d);A(f.$$.fragment,ee),m=P(ee),A(g.$$.fragment,ee),ee.forEach(_),X.forEach(_),y=P(S),A(w.$$.fragment,S),this.h()},h(){Q(t,"class","text-lg font-medium"),Q(d,"class","flex w-full flex-col gap-4"),Q(e,"class","my-2 flex flex-col gap-4")},m(S,X){K(S,e,X),h(e,t),h(t,i),h(e,r),h(e,o),h(o,u),h(e,a),h(e,d),N(f,d,null),h(d,m),N(g,d,null),K(S,y,X),N(w,S,X),J=!0},p(S,[X]){const ie={};!c&&X&1&&(c=!0,ie.daysOfMonth=S[0],G(()=>c=!1)),f.$set(ie);const ue={};!b&&X&2&&(b=!0,ue.months=S[1],G(()=>b=!1)),g.$set(ue);const ee={};!I&&X&4&&(I=!0,ee.hour=S[2],G(()=>I=!1)),!B&&X&8&&(B=!0,ee.minute=S[3],G(()=>B=!1)),w.$set(ee)},i(S){J||(M(f.$$.fragment,S),M(g.$$.fragment,S),M(w.$$.fragment,S),J=!0)},o(S){C(f.$$.fragment,S),C(g.$$.fragment,S),C(w.$$.fragment,S),J=!1},d(S){S&&_(e),U(f),U(g),S&&_(y),U(w,S)}}}function cn(n,e,t){let{daysOfMonth:l}=e,{months:i}=e,{hour:r}=e,{minute:o}=e;function s(f){l=f,t(0,l)}function u(f){i=f,t(1,i)}function a(f){r=f,t(2,r)}function d(f){o=f,t(3,o)}return n.$$set=f=>{"daysOfMonth"in f&&t(0,l=f.daysOfMonth),"months"in f&&t(1,i=f.months),"hour"in f&&t(2,r=f.hour),"minute"in f&&t(3,o=f.minute)},[l,i,r,o,s,u,a,d]}class hn extends Me{constructor(e){super(),Se(this,e,cn,dn,We,{daysOfMonth:0,months:1,hour:2,minute:3})}}function $t(n,e,t){const l=n.slice();return l[4]=e[t].label,l[5]=e[t].value,l}function wt(n,e,t){const l=n.slice();return l[4]=e[t].label,l[5]=e[t].value,l}function kt(n){let e,t=n[4]+"",l,i,r;function o(...s){return n[2](n[5],...s)}return{c(){e=W("button"),l=Z(t),this.h()},l(s){e=V(s,"BUTTON",{class:!0});var u=T(e);l=x(u,t),u.forEach(_),this.h()},h(){Q(e,"class","cell svelte-xr91x7"),De(e,"active",n[0].includes(n[5]))},m(s,u){K(s,e,u),h(e,l),i||(r=Ye(e,"click",Ze(o)),i=!0)},p(s,u){n=s,u&1&&De(e,"active",n[0].includes(n[5]))},d(s){s&&_(e),i=!1,r()}}}function It(n){let e,t=n[4]+"",l,i,r;function o(...s){return n[3](n[5],...s)}return{c(){e=W("button"),l=Z(t),this.h()},l(s){e=V(s,"BUTTON",{class:!0});var u=T(e);l=x(u,t),u.forEach(_),this.h()},h(){Q(e,"class","cell svelte-xr91x7"),De(e,"active",n[0].includes(n[5]))},m(s,u){K(s,e,u),h(e,l),i||(r=Ye(e,"click",Ze(o)),i=!0)},p(s,u){n=s,u&1&&De(e,"active",n[0].includes(n[5]))},d(s){s&&_(e),i=!1,r()}}}function _n(n){let e,t,l,i,r=Xe,o=[];for(let a=0;a{s.metaKey?(Xe.find(a=>a.value===u)?t(0,l=[u]):l.find(a=>Xe.find(d=>d.value===a))&&t(0,l=[u]),l.includes(u)?l.filter(a=>a!==u):t(0,l=[...l,u])):t(0,l=[u])},r=(s,u)=>i(u,s),o=(s,u)=>i(u,s);return n.$$set=s=>{"daysOfWeek"in s&&t(0,l=s.daysOfWeek)},[l,i,r,o]}class gn extends Me{constructor(e){super(),Se(this,e,mn,_n,We,{daysOfWeek:0})}}function pn(n){let e,t,l=q("schedules.recurring-days-heading")+"",i,r,o,s=q("schedules.recurring-days-description")+"",u,a,d,f,c,m,g,b,y;function w($){n[3]($)}let I={};n[0]!==void 0&&(I.daysOfWeek=n[0]),d=new gn({props:I}),j.push(()=>z(d,"daysOfWeek",w));function B($){n[4]($)}function J($){n[5]($)}let k={};return n[1]!==void 0&&(k.hour=n[1]),n[2]!==void 0&&(k.minute=n[2]),m=new Tt({props:k}),j.push(()=>z(m,"hour",B)),j.push(()=>z(m,"minute",J)),{c(){e=W("div"),t=W("h3"),i=Z(l),r=H(),o=W("p"),u=Z(s),a=H(),L(d.$$.fragment),c=H(),L(m.$$.fragment),this.h()},l($){e=V($,"DIV",{class:!0});var D=T(e);t=V(D,"H3",{class:!0});var se=T(t);i=x(se,l),se.forEach(_),r=P(D),o=V(D,"P",{});var Y=T(o);u=x(Y,s),Y.forEach(_),a=P(D),A(d.$$.fragment,D),D.forEach(_),c=P($),A(m.$$.fragment,$),this.h()},h(){Q(t,"class","text-lg font-medium"),Q(e,"class","my-2 flex flex-col gap-4")},m($,D){K($,e,D),h(e,t),h(t,i),h(e,r),h(e,o),h(o,u),h(e,a),N(d,e,null),K($,c,D),N(m,$,D),y=!0},p($,[D]){const se={};!f&&D&1&&(f=!0,se.daysOfWeek=$[0],G(()=>f=!1)),d.$set(se);const Y={};!g&&D&2&&(g=!0,Y.hour=$[1],G(()=>g=!1)),!b&&D&4&&(b=!0,Y.minute=$[2],G(()=>b=!1)),m.$set(Y)},i($){y||(M(d.$$.fragment,$),M(m.$$.fragment,$),y=!0)},o($){C(d.$$.fragment,$),C(m.$$.fragment,$),y=!1},d($){$&&_(e),U(d),$&&_(c),U(m,$)}}}function vn(n,e,t){let{daysOfWeek:l}=e,{hour:i}=e,{minute:r}=e;function o(a){l=a,t(0,l)}function s(a){i=a,t(1,i)}function u(a){r=a,t(2,r)}return n.$$set=a=>{"daysOfWeek"in a&&t(0,l=a.daysOfWeek),"hour"in a&&t(1,i=a.hour),"minute"in a&&t(2,r=a.minute)},[l,i,r,o,s,u]}class bn extends Me{constructor(e){super(),Se(this,e,vn,pn,We,{daysOfWeek:0,hour:1,minute:2})}}function $n(n){let e=q("common.days")+"",t;return{c(){t=Z(e)},l(l){t=x(l,e)},m(l,i){K(l,t,i)},p:pe,d(l){l&&_(t)}}}function wn(n){let e=q("common.hours-abbreviated")+"",t;return{c(){t=Z(e)},l(l){t=x(l,e)},m(l,i){K(l,t,i)},p:pe,d(l){l&&_(t)}}}function kn(n){let e=q("common.minutes-abbreviated")+"",t;return{c(){t=Z(e)},l(l){t=x(l,e)},m(l,i){K(l,t,i)},p:pe,d(l){l&&_(t)}}}function In(n){let e=q("common.seconds-abbreviated")+"",t;return{c(){t=Z(e)},l(l){t=x(l,e)},m(l,i){K(l,t,i)},p:pe,d(l){l&&_(t)}}}function On(n){let e,t,l,i,r,o,s,u;return e=new Ge({props:{value:"days",$$slots:{default:[$n]},$$scope:{ctx:n}}}),l=new Ge({props:{value:"hrs",$$slots:{default:[wn]},$$scope:{ctx:n}}}),r=new Ge({props:{value:"min",$$slots:{default:[kn]},$$scope:{ctx:n}}}),s=new Ge({props:{value:"sec",$$slots:{default:[In]},$$scope:{ctx:n}}}),{c(){L(e.$$.fragment),t=H(),L(l.$$.fragment),i=H(),L(r.$$.fragment),o=H(),L(s.$$.fragment)},l(a){A(e.$$.fragment,a),t=P(a),A(l.$$.fragment,a),i=P(a),A(r.$$.fragment,a),o=P(a),A(s.$$.fragment,a)},m(a,d){N(e,a,d),K(a,t,d),N(l,a,d),K(a,i,d),N(r,a,d),K(a,o,d),N(s,a,d),u=!0},p(a,d){const f={};d&16384&&(f.$$scope={dirty:d,ctx:a}),e.$set(f);const c={};d&16384&&(c.$$scope={dirty:d,ctx:a}),l.$set(c);const m={};d&16384&&(m.$$scope={dirty:d,ctx:a}),r.$set(m);const g={};d&16384&&(g.$$scope={dirty:d,ctx:a}),s.$set(g)},i(a){u||(M(e.$$.fragment,a),M(l.$$.fragment,a),M(r.$$.fragment,a),M(s.$$.fragment,a),u=!0)},o(a){C(e.$$.fragment,a),C(l.$$.fragment,a),C(r.$$.fragment,a),C(s.$$.fragment,a),u=!1},d(a){U(e,a),a&&_(t),U(l,a),a&&_(i),U(r,a),a&&_(o),U(s,a)}}}function yn(n){let e,t,l=q("schedules.interval-view-heading")+"",i,r,o,s=q("schedules.interval-view-description")+"",u,a,d,f,c,m,g,b,y,w,I,B,J,k,$,D,se,Y,F,ne,S,X,ie,ue,ee,ae,de,he,re,p=q("schedules.offset-heading")+"",te,_e,fe,oe=q("schedules.offset-description")+"",Oe,Ee,me,ge,ke,ye,$e,Pe,Ce;function Qe(E){n[8](E)}let Le={id:"days",label:q("common.days"),labelHidden:!0,placeholder:"00",suffix:q("common.days"),maxLength:3,error:n[7](n[0])};n[0]!==void 0&&(Le.value=n[0]),c=new Ie({props:Le}),j.push(()=>z(c,"value",Qe));function Fe(E){n[9](E)}let ve={id:"hour-interval",label:q("common.hours-abbreviated"),labelHidden:!0,placeholder:"00",suffix:q("common.hours-abbreviated"),maxLength:2,error:n[7](n[1])};n[1]!==void 0&&(ve.value=n[1]),B=new Ie({props:ve}),j.push(()=>z(B,"value",Fe));function v(E){n[10](E)}let R={id:"minute-interval",label:q("common.minutes-abbreviated"),labelHidden:!0,placeholder:"00",suffix:q("common.minutes-abbreviated"),maxLength:2,error:n[7](n[2])};n[2]!==void 0&&(R.value=n[2]),F=new Ie({props:R}),j.push(()=>z(F,"value",v));function Ve(E){n[11](E)}let O={id:"second",label:q("common.seconds-abbreviated"),labelHidden:!0,placeholder:"00",suffix:q("common.seconds-abbreviated"),maxLength:2,error:n[7](n[3])};n[3]!==void 0&&(O.value=n[3]),ae=new Ie({props:O}),j.push(()=>z(ae,"value",Ve));function be(E){n[12](E)}let we={id:"phase",label:q("schedules.offset-heading"),labelHidden:!0,placeholder:"00",error:n[7](n[4]),unroundRight:!0};n[5]!==void 0&&(we.value=n[5]),ge=new Ie({props:we}),j.push(()=>z(ge,"value",be));function He(E){n[13](E)}let Te={label:q("schedules.offset-unit"),labelHidden:!0,unroundLeft:!0,id:"phase-unit",$$slots:{default:[On]},$$scope:{ctx:n}};return n[6]!==void 0&&(Te.value=n[6]),$e=new qt({props:Te}),j.push(()=>z($e,"value",He)),{c(){e=W("div"),t=W("h3"),i=Z(l),r=H(),o=W("p"),u=Z(s),a=H(),d=W("div"),f=W("div"),L(c.$$.fragment),g=H(),b=W("div"),y=Z(":"),w=H(),I=W("div"),L(B.$$.fragment),k=H(),$=W("div"),D=Z(":"),se=H(),Y=W("div"),L(F.$$.fragment),S=H(),X=W("div"),ie=Z(":"),ue=H(),ee=W("div"),L(ae.$$.fragment),he=H(),re=W("h3"),te=Z(p),_e=H(),fe=W("p"),Oe=Z(oe),Ee=H(),me=W("div"),L(ge.$$.fragment),ye=H(),L($e.$$.fragment),this.h()},l(E){e=V(E,"DIV",{class:!0});var le=T(e);t=V(le,"H3",{class:!0});var Ae=T(t);i=x(Ae,l),Ae.forEach(_),r=P(le),o=V(le,"P",{});var Ne=T(o);u=x(Ne,s),Ne.forEach(_),a=P(le),d=V(le,"DIV",{class:!0});var ce=T(d);f=V(ce,"DIV",{class:!0});var Ue=T(f);A(c.$$.fragment,Ue),Ue.forEach(_),g=P(ce),b=V(ce,"DIV",{});var Be=T(b);y=x(Be,":"),Be.forEach(_),w=P(ce),I=V(ce,"DIV",{class:!0});var qe=T(I);A(B.$$.fragment,qe),qe.forEach(_),k=P(ce),$=V(ce,"DIV",{});var lt=T($);D=x(lt,":"),lt.forEach(_),se=P(ce),Y=V(ce,"DIV",{class:!0});var st=T(Y);A(F.$$.fragment,st),st.forEach(_),S=P(ce),X=V(ce,"DIV",{});var it=T(X);ie=x(it,":"),it.forEach(_),ue=P(ce),ee=V(ce,"DIV",{class:!0});var ut=T(ee);A(ae.$$.fragment,ut),ut.forEach(_),ce.forEach(_),he=P(le),re=V(le,"H3",{class:!0});var at=T(re);te=x(at,p),at.forEach(_),_e=P(le),fe=V(le,"P",{});var rt=T(fe);Oe=x(rt,oe),rt.forEach(_),Ee=P(le),me=V(le,"DIV",{class:!0});var ze=T(me);A(ge.$$.fragment,ze),ye=P(ze),A($e.$$.fragment,ze),ze.forEach(_),le.forEach(_),this.h()},h(){Q(t,"class","text-lg font-medium"),Q(f,"class","w-24"),Q(I,"class","w-24"),Q(Y,"class","w-24"),Q(ee,"class","w-24"),Q(d,"class","flex flex-row items-center gap-2"),Q(re,"class","mt-4 text-lg font-medium"),Q(me,"class","flex w-48 gap-0"),Q(e,"class","my-2 flex flex-col gap-4")},m(E,le){K(E,e,le),h(e,t),h(t,i),h(e,r),h(e,o),h(o,u),h(e,a),h(e,d),h(d,f),N(c,f,null),h(d,g),h(d,b),h(b,y),h(d,w),h(d,I),N(B,I,null),h(d,k),h(d,$),h($,D),h(d,se),h(d,Y),N(F,Y,null),h(d,S),h(d,X),h(X,ie),h(d,ue),h(d,ee),N(ae,ee,null),h(e,he),h(e,re),h(re,te),h(e,_e),h(e,fe),h(fe,Oe),h(e,Ee),h(e,me),N(ge,me,null),h(me,ye),N($e,me,null),Ce=!0},p(E,[le]){const Ae={};le&1&&(Ae.error=E[7](E[0])),!m&&le&1&&(m=!0,Ae.value=E[0],G(()=>m=!1)),c.$set(Ae);const Ne={};le&2&&(Ne.error=E[7](E[1])),!J&&le&2&&(J=!0,Ne.value=E[1],G(()=>J=!1)),B.$set(Ne);const ce={};le&4&&(ce.error=E[7](E[2])),!ne&&le&4&&(ne=!0,ce.value=E[2],G(()=>ne=!1)),F.$set(ce);const Ue={};le&8&&(Ue.error=E[7](E[3])),!de&&le&8&&(de=!0,Ue.value=E[3],G(()=>de=!1)),ae.$set(Ue);const Be={};le&16&&(Be.error=E[7](E[4])),!ke&&le&32&&(ke=!0,Be.value=E[5],G(()=>ke=!1)),ge.$set(Be);const qe={};le&16384&&(qe.$$scope={dirty:le,ctx:E}),!Pe&&le&64&&(Pe=!0,qe.value=E[6],G(()=>Pe=!1)),$e.$set(qe)},i(E){Ce||(M(c.$$.fragment,E),M(B.$$.fragment,E),M(F.$$.fragment,E),M(ae.$$.fragment,E),M(ge.$$.fragment,E),M($e.$$.fragment,E),Ce=!0)},o(E){C(c.$$.fragment,E),C(B.$$.fragment,E),C(F.$$.fragment,E),C(ae.$$.fragment,E),C(ge.$$.fragment,E),C($e.$$.fragment,E),Ce=!1},d(E){E&&_(e),U(c),U(B),U(F),U(ae),U(ge),U($e)}}}function En(n,e,t){let{days:l=""}=e,{hour:i=""}=e,{minute:r=""}=e,{second:o=""}=e,{phase:s=""}=e,u="",a="min";const d=w=>w?isNaN(parseInt(w)):!1;function f(w){l=w,t(0,l)}function c(w){i=w,t(1,i)}function m(w){r=w,t(2,r)}function g(w){o=w,t(3,o)}function b(w){u=w,t(5,u)}function y(w){a=w,t(6,a)}return n.$$set=w=>{"days"in w&&t(0,l=w.days),"hour"in w&&t(1,i=w.hour),"minute"in w&&t(2,r=w.minute),"second"in w&&t(3,o=w.second),"phase"in w&&t(4,s=w.phase)},n.$$.update=()=>{n.$$.dirty&96&&u&&(a==="days"?t(4,s=(parseInt(u)*60*60*24).toString()+"s"):a==="hrs"?t(4,s=(parseInt(u)*60*60).toString()+"s"):a==="min"?t(4,s=(parseInt(u)*60).toString()+"s"):a==="sec"&&t(4,s=parseInt(u).toString()+"s"))},[l,i,r,o,s,u,a,d,f,c,m,g,b,y]}class Dn extends Me{constructor(e){super(),Se(this,e,En,yn,We,{days:0,hour:1,minute:2,second:3,phase:4})}}const Mn=n=>({preset:n[0]&1024}),Ot=n=>({preset:n[10]});function yt(n){let e,t;return e=new Ke({props:{label:"Existing",id:"existing-tab",panelId:"existing-panel",onClick:n[12]}}),{c(){L(e.$$.fragment)},l(l){A(e.$$.fragment,l)},m(l,i){N(e,l,i),t=!0},p(l,i){const r={};i[0]&1024&&(r.onClick=l[12]),e.$set(r)},i(l){t||(M(e.$$.fragment,l),t=!0)},o(l){C(e.$$.fragment,l),t=!1},d(l){U(e,l)}}}function Sn(n){let e,t,l,i,r,o,s,u,a,d=n[9]&&yt(n);return t=new Ke({props:{label:"Interval",id:"interval-tab",panelId:"interval-panel",onClick:n[13]}}),i=new Ke({props:{label:"Days of the Week",id:"daily-tab",panelId:"daily-panel",onClick:n[14]}}),o=new Ke({props:{label:"Days of the Month",id:"monthly-tab",panelId:"monthly-panel",onClick:n[15]}}),u=new Ke({props:{label:"String",id:"string-tab",panelId:"string-panel",onClick:n[16]}}),{c(){d&&d.c(),e=H(),L(t.$$.fragment),l=H(),L(i.$$.fragment),r=H(),L(o.$$.fragment),s=H(),L(u.$$.fragment)},l(f){d&&d.l(f),e=P(f),A(t.$$.fragment,f),l=P(f),A(i.$$.fragment,f),r=P(f),A(o.$$.fragment,f),s=P(f),A(u.$$.fragment,f)},m(f,c){d&&d.m(f,c),K(f,e,c),N(t,f,c),K(f,l,c),N(i,f,c),K(f,r,c),N(o,f,c),K(f,s,c),N(u,f,c),a=!0},p(f,c){f[9]?d?(d.p(f,c),c[0]&512&&M(d,1)):(d=yt(f),d.c(),M(d,1),d.m(e.parentNode,e)):d&&(tt(),C(d,1,1,()=>{d=null}),nt());const m={};c[0]&1024&&(m.onClick=f[13]),t.$set(m);const g={};c[0]&1024&&(g.onClick=f[14]),i.$set(g);const b={};c[0]&1024&&(b.onClick=f[15]),o.$set(b);const y={};c[0]&1024&&(y.onClick=f[16]),u.$set(y)},i(f){a||(M(d),M(t.$$.fragment,f),M(i.$$.fragment,f),M(o.$$.fragment,f),M(u.$$.fragment,f),a=!0)},o(f){C(d),C(t.$$.fragment,f),C(i.$$.fragment,f),C(o.$$.fragment,f),C(u.$$.fragment,f),a=!1},d(f){d&&d.d(f),f&&_(e),U(t,f),f&&_(l),U(i,f),f&&_(r),U(o,f),f&&_(s),U(u,f)}}}function Et(n){let e,t;return e=new Re({props:{id:"existing-panel",tabId:"existing-tab",class:"w-full",$$slots:{default:[Wn]},$$scope:{ctx:n}}}),{c(){L(e.$$.fragment)},l(l){A(e.$$.fragment,l)},m(l,i){N(e,l,i),t=!0},p(l,i){const r={};i[0]&1073742336&&(r.$$scope={dirty:i,ctx:l}),e.$set(r)},i(l){t||(M(e.$$.fragment,l),t=!0)},o(l){C(e.$$.fragment,l),t=!1},d(l){U(e,l)}}}function Wn(n){var l,i,r,o,s,u;let e,t;return e=new Kt({props:{calendar:(r=(i=(l=n[9])==null?void 0:l.spec)==null?void 0:i.structuredCalendar)==null?void 0:r[0],interval:(u=(s=(o=n[9])==null?void 0:o.spec)==null?void 0:s.interval)==null?void 0:u[0]}}),{c(){L(e.$$.fragment)},l(a){A(e.$$.fragment,a)},m(a,d){N(e,a,d),t=!0},p(a,d){var c,m,g,b,y,w;const f={};d[0]&512&&(f.calendar=(g=(m=(c=a[9])==null?void 0:c.spec)==null?void 0:m.structuredCalendar)==null?void 0:g[0]),d[0]&512&&(f.interval=(w=(y=(b=a[9])==null?void 0:b.spec)==null?void 0:y.interval)==null?void 0:w[0]),e.$set(f)},i(a){t||(M(e.$$.fragment,a),t=!0)},o(a){C(e.$$.fragment,a),t=!1},d(a){U(e,a)}}}function Vn(n){let e,t,l,i,r,o,s;function u(g){n[17](g)}function a(g){n[18](g)}function d(g){n[19](g)}function f(g){n[20](g)}function c(g){n[21](g)}let m={};return n[3]!==void 0&&(m.days=n[3]),n[4]!==void 0&&(m.hour=n[4]),n[5]!==void 0&&(m.minute=n[5]),n[6]!==void 0&&(m.second=n[6]),n[7]!==void 0&&(m.phase=n[7]),e=new Dn({props:m}),j.push(()=>z(e,"days",u)),j.push(()=>z(e,"hour",a)),j.push(()=>z(e,"minute",d)),j.push(()=>z(e,"second",f)),j.push(()=>z(e,"phase",c)),{c(){L(e.$$.fragment)},l(g){A(e.$$.fragment,g)},m(g,b){N(e,g,b),s=!0},p(g,b){const y={};!t&&b[0]&8&&(t=!0,y.days=g[3],G(()=>t=!1)),!l&&b[0]&16&&(l=!0,y.hour=g[4],G(()=>l=!1)),!i&&b[0]&32&&(i=!0,y.minute=g[5],G(()=>i=!1)),!r&&b[0]&64&&(r=!0,y.second=g[6],G(()=>r=!1)),!o&&b[0]&128&&(o=!0,y.phase=g[7],G(()=>o=!1)),e.$set(y)},i(g){s||(M(e.$$.fragment,g),s=!0)},o(g){C(e.$$.fragment,g),s=!1},d(g){U(e,g)}}}function Tn(n){let e,t,l,i,r;function o(d){n[22](d)}function s(d){n[23](d)}function u(d){n[24](d)}let a={};return n[0]!==void 0&&(a.daysOfWeek=n[0]),n[4]!==void 0&&(a.hour=n[4]),n[5]!==void 0&&(a.minute=n[5]),e=new bn({props:a}),j.push(()=>z(e,"daysOfWeek",o)),j.push(()=>z(e,"hour",s)),j.push(()=>z(e,"minute",u)),{c(){L(e.$$.fragment)},l(d){A(e.$$.fragment,d)},m(d,f){N(e,d,f),r=!0},p(d,f){const c={};!t&&f[0]&1&&(t=!0,c.daysOfWeek=d[0],G(()=>t=!1)),!l&&f[0]&16&&(l=!0,c.hour=d[4],G(()=>l=!1)),!i&&f[0]&32&&(i=!0,c.minute=d[5],G(()=>i=!1)),e.$set(c)},i(d){r||(M(e.$$.fragment,d),r=!0)},o(d){C(e.$$.fragment,d),r=!1},d(d){U(e,d)}}}function Cn(n){let e,t,l,i,r,o;function s(c){n[25](c)}function u(c){n[26](c)}function a(c){n[27](c)}function d(c){n[28](c)}let f={};return n[1]!==void 0&&(f.daysOfMonth=n[1]),n[2]!==void 0&&(f.months=n[2]),n[4]!==void 0&&(f.hour=n[4]),n[5]!==void 0&&(f.minute=n[5]),e=new hn({props:f}),j.push(()=>z(e,"daysOfMonth",s)),j.push(()=>z(e,"months",u)),j.push(()=>z(e,"hour",a)),j.push(()=>z(e,"minute",d)),{c(){L(e.$$.fragment)},l(c){A(e.$$.fragment,c)},m(c,m){N(e,c,m),o=!0},p(c,m){const g={};!t&&m[0]&2&&(t=!0,g.daysOfMonth=c[1],G(()=>t=!1)),!l&&m[0]&4&&(l=!0,g.months=c[2],G(()=>l=!1)),!i&&m[0]&16&&(i=!0,g.hour=c[4],G(()=>i=!1)),!r&&m[0]&32&&(r=!0,g.minute=c[5],G(()=>r=!1)),e.$set(g)},i(c){o||(M(e.$$.fragment,c),o=!0)},o(c){C(e.$$.fragment,c),o=!1},d(c){U(e,c)}}}function Hn(n){let e,t,l=q("schedules.cron-view-title")+"",i,r,o,s=q("schedules.cron-view-description")+"",u,a,d,f,c;function m(b){n[29](b)}let g={label:q("schedules.cron-view-title"),labelHidden:!0,id:"cronString",placeholder:"* * * * *"};return n[8]!==void 0&&(g.value=n[8]),d=new Ie({props:g}),j.push(()=>z(d,"value",m)),{c(){e=W("div"),t=W("h3"),i=Z(l),r=H(),o=W("p"),u=Z(s),a=H(),L(d.$$.fragment),this.h()},l(b){e=V(b,"DIV",{class:!0});var y=T(e);t=V(y,"H3",{class:!0});var w=T(t);i=x(w,l),w.forEach(_),r=P(y),o=V(y,"P",{});var I=T(o);u=x(I,s),I.forEach(_),a=P(y),A(d.$$.fragment,y),y.forEach(_),this.h()},h(){Q(t,"class","text-lg font-medium"),Q(e,"class","my-2 flex w-full flex-col gap-4")},m(b,y){K(b,e,y),h(e,t),h(t,i),h(e,r),h(e,o),h(o,u),h(e,a),N(d,e,null),c=!0},p(b,y){const w={};!f&&y[0]&256&&(f=!0,w.value=b[8],G(()=>f=!1)),d.$set(w)},i(b){c||(M(d.$$.fragment,b),c=!0)},o(b){C(d.$$.fragment,b),c=!1},d(b){b&&_(e),U(d)}}}function Pn(n){let e,t=q("schedules.schedule-spec")+"",l,i,r,o,s,u,a,d,f,c,m,g,b,y,w;r=new Bt({props:{label:"Schedule Tabs",class:"flex flex-wrap gap-6",$$slots:{default:[Sn]},$$scope:{ctx:n}}});let I=n[9]&&Et(n);a=new Re({props:{id:"interval-panel",tabId:"interval-tab",$$slots:{default:[Vn]},$$scope:{ctx:n}}}),f=new Re({props:{id:"daily-panel",tabId:"daily-tab",$$slots:{default:[Tn]},$$scope:{ctx:n}}}),m=new Re({props:{id:"monthly-panel",tabId:"monthly-tab",$$slots:{default:[Cn]},$$scope:{ctx:n}}}),b=new Re({props:{id:"string-panel",tabId:"string-tab",$$slots:{default:[Hn]},$$scope:{ctx:n}}});const B=n[11].default,J=Dt(B,n,n[30],Ot);return{c(){e=W("h2"),l=Z(t),i=H(),L(r.$$.fragment),o=H(),s=W("div"),I&&I.c(),u=H(),L(a.$$.fragment),d=H(),L(f.$$.fragment),c=H(),L(m.$$.fragment),g=H(),L(b.$$.fragment),y=H(),J&&J.c(),this.h()},l(k){e=V(k,"H2",{class:!0});var $=T(e);l=x($,t),$.forEach(_),i=P(k),A(r.$$.fragment,k),o=P(k),s=V(k,"DIV",{class:!0});var D=T(s);I&&I.l(D),u=P(D),A(a.$$.fragment,D),d=P(D),A(f.$$.fragment,D),c=P(D),A(m.$$.fragment,D),g=P(D),A(b.$$.fragment,D),D.forEach(_),y=P(k),J&&J.l(k),this.h()},h(){Q(e,"class","mb-4 text-2xl"),Q(s,"class","mt-4 flex w-full flex-wrap gap-6")},m(k,$){K(k,e,$),h(e,l),K(k,i,$),N(r,k,$),K(k,o,$),K(k,s,$),I&&I.m(s,null),h(s,u),N(a,s,null),h(s,d),N(f,s,null),h(s,c),N(m,s,null),h(s,g),N(b,s,null),K(k,y,$),J&&J.m(k,$),w=!0},p(k,$){const D={};$[0]&1073743360&&(D.$$scope={dirty:$,ctx:k}),r.$set(D),k[9]?I?(I.p(k,$),$[0]&512&&M(I,1)):(I=Et(k),I.c(),M(I,1),I.m(s,u)):I&&(tt(),C(I,1,1,()=>{I=null}),nt());const se={};$[0]&1073742072&&(se.$$scope={dirty:$,ctx:k}),a.$set(se);const Y={};$[0]&1073741873&&(Y.$$scope={dirty:$,ctx:k}),f.$set(Y);const F={};$[0]&1073741878&&(F.$$scope={dirty:$,ctx:k}),m.$set(F);const ne={};$[0]&1073742080&&(ne.$$scope={dirty:$,ctx:k}),b.$set(ne),J&&J.p&&(!w||$[0]&1073742848)&&Mt(J,B,k,k[30],w?Wt(B,k[30],$,Mn):St(k[30]),Ot)},i(k){w||(M(r.$$.fragment,k),M(I),M(a.$$.fragment,k),M(f.$$.fragment,k),M(m.$$.fragment,k),M(b.$$.fragment,k),M(J,k),w=!0)},o(k){C(r.$$.fragment,k),C(I),C(a.$$.fragment,k),C(f.$$.fragment,k),C(m.$$.fragment,k),C(b.$$.fragment,k),C(J,k),w=!1},d(k){k&&_(e),k&&_(i),U(r,k),k&&_(o),k&&_(s),I&&I.d(),U(a),U(f),U(m),U(b),k&&_(y),J&&J.d(k)}}}function Ln(n){let e,t;return e=new Ut({props:{class:"mt-8 w-full",$$slots:{default:[Pn]},$$scope:{ctx:n}}}),{c(){L(e.$$.fragment)},l(l){A(e.$$.fragment,l)},m(l,i){N(e,l,i),t=!0},p(l,i){const r={};i[0]&1073743871&&(r.$$scope={dirty:i,ctx:l}),e.$set(r)},i(l){t||(M(e.$$.fragment,l),t=!0)},o(l){C(e.$$.fragment,l),t=!1},d(l){U(e,l)}}}function An(n,e,t){let l;je(n,Vt,p=>t(31,l=p));let{$$slots:i={},$$scope:r}=e,s=l.params.schedule?"existing":"interval",{schedule:u=null}=e,{daysOfWeek:a}=e,{daysOfMonth:d}=e,{months:f}=e,{days:c}=e,{hour:m}=e,{minute:g}=e,{second:b}=e,{phase:y}=e,{cronString:w}=e;const I=()=>{t(0,a=[]),t(1,d=[]),t(2,f=[]),t(3,c=""),t(4,m=""),t(5,g=""),t(6,b=""),t(7,y=""),t(8,w="")},B=()=>t(10,s="existing"),J=()=>t(10,s="interval"),k=()=>t(10,s="week"),$=()=>t(10,s="month"),D=()=>t(10,s="string");function se(p){c=p,t(3,c)}function Y(p){m=p,t(4,m)}function F(p){g=p,t(5,g)}function ne(p){b=p,t(6,b)}function S(p){y=p,t(7,y)}function X(p){a=p,t(0,a)}function ie(p){m=p,t(4,m)}function ue(p){g=p,t(5,g)}function ee(p){d=p,t(1,d)}function ae(p){f=p,t(2,f)}function de(p){m=p,t(4,m)}function he(p){g=p,t(5,g)}function re(p){w=p,t(8,w)}return n.$$set=p=>{"schedule"in p&&t(9,u=p.schedule),"daysOfWeek"in p&&t(0,a=p.daysOfWeek),"daysOfMonth"in p&&t(1,d=p.daysOfMonth),"months"in p&&t(2,f=p.months),"days"in p&&t(3,c=p.days),"hour"in p&&t(4,m=p.hour),"minute"in p&&t(5,g=p.minute),"second"in p&&t(6,b=p.second),"phase"in p&&t(7,y=p.phase),"cronString"in p&&t(8,w=p.cronString),"$$scope"in p&&t(30,r=p.$$scope)},I(),[a,d,f,c,m,g,b,y,w,u,s,i,B,J,k,$,D,se,Y,F,ne,S,X,ie,ue,ee,ae,de,he,re,r]}class Nn extends Me{constructor(e){super(),Se(this,e,An,Ln,We,{schedule:9,daysOfWeek:0,daysOfMonth:1,months:2,days:3,hour:4,minute:5,second:6,phase:7,cronString:8},null,[-1,-1])}}function Un(n){let e,t,l,i,r,o,s,u,a,d,f,c,m,g,b,y,w,I,B,J,k,$,D,se,Y,F,ne,S,X,ie,ue,ee,ae,de,he,re;t=new zt({props:{href:n[22],icon:"chevron-left",$$slots:{default:[qn]},$$scope:{ctx:n}}}),u=new jt({props:{intent:"error",title:"",hidden:!n[16],bold:!0,$$slots:{default:[Qn]},$$scope:{ctx:n}}});function p(v){n[28](v)}let te={id:"name",label:q("schedules.name-label"),error:n[13].name,maxLength:232,disabled:Boolean(n[18])};n[1]!==void 0&&(te.value=n[1]),f=new Ie({props:te}),j.push(()=>z(f,"value",p)),f.$on("input",n[25]),f.$on("blur",n[26]);function _e(v){n[29](v)}let fe={id:"workflowType",label:q("schedules.workflow-type-label"),error:n[13].workflowType};n[2]!==void 0&&(fe.value=n[2]),b=new Ie({props:fe}),j.push(()=>z(b,"value",_e)),b.$on("input",n[25]),b.$on("blur",n[26]);function oe(v){n[30](v)}let Oe={id:"workflowId",label:q("schedules.workflow-id-label"),error:n[13].workflowId};n[3]!==void 0&&(Oe.value=n[3]),B=new Ie({props:Oe}),j.push(()=>z(B,"value",oe)),B.$on("input",n[25]),B.$on("blur",n[26]);function Ee(v){n[31](v)}let me={id:"taskQueue",label:q("schedules.task-queue-label"),error:n[13].taskQueue};n[4]!==void 0&&(me.value=n[4]),D=new Ie({props:me}),j.push(()=>z(D,"value",Ee)),D.$on("input",n[25]),D.$on("blur",n[26]);function ge(v){n[33](v)}function ke(v){n[34](v)}function ye(v){n[35](v)}function $e(v){n[36](v)}function Pe(v){n[37](v)}function Ce(v){n[38](v)}function Qe(v){n[39](v)}function Le(v){n[40](v)}function Fe(v){n[41](v)}let ve={schedule:n[0],$$slots:{default:[Rn,({preset:v})=>({55:v}),({preset:v})=>[0,v?16777216:0]]},$$scope:{ctx:n}};return n[5]!==void 0&&(ve.daysOfWeek=n[5]),n[6]!==void 0&&(ve.daysOfMonth=n[6]),n[7]!==void 0&&(ve.months=n[7]),n[8]!==void 0&&(ve.days=n[8]),n[9]!==void 0&&(ve.hour=n[9]),n[10]!==void 0&&(ve.minute=n[10]),n[11]!==void 0&&(ve.second=n[11]),n[14]!==void 0&&(ve.phase=n[14]),n[12]!==void 0&&(ve.cronString=n[12]),F=new Nn({props:ve}),j.push(()=>z(F,"daysOfWeek",ge)),j.push(()=>z(F,"daysOfMonth",ke)),j.push(()=>z(F,"months",ye)),j.push(()=>z(F,"days",$e)),j.push(()=>z(F,"hour",Pe)),j.push(()=>z(F,"minute",Ce)),j.push(()=>z(F,"second",Qe)),j.push(()=>z(F,"phase",Le)),j.push(()=>z(F,"cronString",Fe)),{c(){e=W("header"),L(t.$$.fragment),l=H(),i=W("h1"),r=Z(n[19]),o=H(),s=W("form"),L(u.$$.fragment),a=H(),d=W("div"),L(f.$$.fragment),m=H(),g=W("div"),L(b.$$.fragment),w=H(),I=W("div"),L(B.$$.fragment),k=H(),$=W("div"),L(D.$$.fragment),Y=H(),L(F.$$.fragment),this.h()},l(v){e=V(v,"HEADER",{class:!0});var R=T(e);A(t.$$.fragment,R),l=P(R),i=V(R,"H1",{class:!0});var Ve=T(i);r=x(Ve,n[19]),Ve.forEach(_),R.forEach(_),o=P(v),s=V(v,"FORM",{class:!0});var O=T(s);A(u.$$.fragment,O),a=P(O),d=V(O,"DIV",{class:!0});var be=T(d);A(f.$$.fragment,be),be.forEach(_),m=P(O),g=V(O,"DIV",{class:!0});var we=T(g);A(b.$$.fragment,we),we.forEach(_),w=P(O),I=V(O,"DIV",{class:!0});var He=T(I);A(B.$$.fragment,He),He.forEach(_),k=P(O),$=V(O,"DIV",{class:!0});var Te=T($);A(D.$$.fragment,Te),Te.forEach(_),Y=P(O),A(F.$$.fragment,O),O.forEach(_),this.h()},h(){Q(i,"class","font-base text-2xl"),Q(e,"class","mb-12 flex flex-col gap-4"),Q(d,"class","w-full"),Q(g,"class","w-full"),Q(I,"class","w-full"),Q($,"class","w-full"),Q(s,"class","mb-4 flex w-full flex-col gap-4 md:w-2/3 xl:w-1/2")},m(v,R){K(v,e,R),N(t,e,null),h(e,l),h(e,i),h(i,r),K(v,o,R),K(v,s,R),N(u,s,null),h(s,a),h(s,d),N(f,d,null),h(s,m),h(s,g),N(b,g,null),h(s,w),h(s,I),N(B,I,null),h(s,k),h(s,$),N(D,$,null),h(s,Y),N(F,s,null),re=!0},p(v,R){const Ve={};R[1]&33554432&&(Ve.$$scope={dirty:R,ctx:v}),t.$set(Ve);const O={};R[0]&65536&&(O.hidden=!v[16]),R[0]&65536|R[1]&33554432&&(O.$$scope={dirty:R,ctx:v}),u.$set(O);const be={};R[0]&8192&&(be.error=v[13].name),!c&&R[0]&2&&(c=!0,be.value=v[1],G(()=>c=!1)),f.$set(be);const we={};R[0]&8192&&(we.error=v[13].workflowType),!y&&R[0]&4&&(y=!0,we.value=v[2],G(()=>y=!1)),b.$set(we);const He={};R[0]&8192&&(He.error=v[13].workflowId),!J&&R[0]&8&&(J=!0,He.value=v[3],G(()=>J=!1)),B.$set(He);const Te={};R[0]&8192&&(Te.error=v[13].taskQueue),!se&&R[0]&16&&(se=!0,Te.value=v[4],G(()=>se=!1)),D.$set(Te);const E={};R[0]&1&&(E.schedule=v[0]),R[0]&32769|R[1]&50331648&&(E.$$scope={dirty:R,ctx:v}),!ne&&R[0]&32&&(ne=!0,E.daysOfWeek=v[5],G(()=>ne=!1)),!S&&R[0]&64&&(S=!0,E.daysOfMonth=v[6],G(()=>S=!1)),!X&&R[0]&128&&(X=!0,E.months=v[7],G(()=>X=!1)),!ie&&R[0]&256&&(ie=!0,E.days=v[8],G(()=>ie=!1)),!ue&&R[0]&512&&(ue=!0,E.hour=v[9],G(()=>ue=!1)),!ee&&R[0]&1024&&(ee=!0,E.minute=v[10],G(()=>ee=!1)),!ae&&R[0]&2048&&(ae=!0,E.second=v[11],G(()=>ae=!1)),!de&&R[0]&16384&&(de=!0,E.phase=v[14],G(()=>de=!1)),!he&&R[0]&4096&&(he=!0,E.cronString=v[12],G(()=>he=!1)),F.$set(E)},i(v){re||(M(t.$$.fragment,v),M(u.$$.fragment,v),M(f.$$.fragment,v),M(b.$$.fragment,v),M(B.$$.fragment,v),M(D.$$.fragment,v),M(F.$$.fragment,v),re=!0)},o(v){C(t.$$.fragment,v),C(u.$$.fragment,v),C(f.$$.fragment,v),C(b.$$.fragment,v),C(B.$$.fragment,v),C(D.$$.fragment,v),C(F.$$.fragment,v),re=!1},d(v){v&&_(e),U(t),v&&_(o),v&&_(s),U(u),U(f),U(b),U(B),U(D),U(F)}}}function Bn(n){let e,t;return e=new Gt({props:{title:n[20]}}),{c(){L(e.$$.fragment)},l(l){A(e.$$.fragment,l)},m(l,i){N(e,l,i),t=!0},p:pe,i(l){t||(M(e.$$.fragment,l),t=!0)},o(l){C(e.$$.fragment,l),t=!1},d(l){U(e,l)}}}function qn(n){let e;return{c(){e=Z(n[21])},l(t){e=x(t,n[21])},m(t,l){K(t,e,l)},p:pe,d(t){t&&_(e)}}}function Qn(n){let e;return{c(){e=Z(n[16])},l(t){e=x(t,n[16])},m(t,l){K(t,e,l)},p(t,l){l[0]&65536&&At(e,t[16])},d(t){t&&_(e)}}}function Fn(n){let e;return{c(){e=Z(n[23])},l(t){e=x(t,n[23])},m(t,l){K(t,e,l)},p:pe,d(t){t&&_(e)}}}function Kn(n){let e=q("common.cancel")+"",t;return{c(){t=Z(e)},l(l){t=x(l,e)},m(l,i){K(l,t,i)},p:pe,d(l){l&&_(t)}}}function Rn(n){let e,t,l,i,r;function o(){return n[32](n[55])}return t=new mt({props:{disabled:n[15](n[55]),$$slots:{default:[Fn]},$$scope:{ctx:n}}}),t.$on("click",o),i=new mt({props:{variant:"ghost",href:n[22],$$slots:{default:[Kn]},$$scope:{ctx:n}}}),{c(){e=W("div"),L(t.$$.fragment),l=H(),L(i.$$.fragment),this.h()},l(s){e=V(s,"DIV",{class:!0});var u=T(e);A(t.$$.fragment,u),l=P(u),A(i.$$.fragment,u),u.forEach(_),this.h()},h(){Q(e,"class","mt-8 flex items-center gap-2")},m(s,u){K(s,e,u),N(t,e,null),h(e,l),N(i,e,null),r=!0},p(s,u){n=s;const a={};u[0]&32768|u[1]&16777216&&(a.disabled=n[15](n[55])),u[1]&33554432&&(a.$$scope={dirty:u,ctx:n}),t.$set(a);const d={};u[1]&33554432&&(d.$$scope={dirty:u,ctx:n}),i.$set(d)},i(s){r||(M(t.$$.fragment,s),M(i.$$.fragment,s),r=!0)},o(s){C(t.$$.fragment,s),C(i.$$.fragment,s),r=!1},d(s){s&&_(e),U(t),U(i)}}}function jn(n){let e,t,l,i;const r=[Bn,Un],o=[];function s(u,a){return u[17]?0:1}return t=s(n),l=o[t]=r[t](n),{c(){e=W("div"),l.c(),this.h()},l(u){e=V(u,"DIV",{class:!0});var a=T(e);l.l(a),a.forEach(_),this.h()},h(){Q(e,"class","pb-20")},m(u,a){K(u,e,a),o[t].m(e,null),i=!0},p(u,a){let d=t;t=s(u),t===d?o[t].p(u,a):(tt(),C(o[d],1,1,()=>{o[d]=null}),nt(),l=o[t],l?l.p(u,a):(l=o[t]=r[t](u),l.c()),M(l,1),l.m(e,null))},i(u){i||(M(l),i=!0)},o(u){C(l),i=!1},d(u){u&&_(e),o[t].d()}}}function zn(n,e,t){let l,i,r,o;je(n,xe,O=>t(16,i=O)),je(n,Vt,O=>t(53,r=O)),je(n,Rt,O=>t(17,o=O));var s,u,a,d,f,c,m,g,b,y,w;let{schedule:I=null}=e,{onConfirm:B}=e,J=r.params.namespace,k=r.params.schedule,$=q(I?"schedules.edit":"schedules.create"),D=q(I?"schedules.editing":"schedules.creating"),se=q(I?"schedules.back-to-schedule":"schedules.back-to-schedules"),Y=I?Jt({namespace:J,scheduleId:k}):Xt({namespace:J}),F=I?q("common.save"):q("schedules.create"),ne={},S=k??"",X=(d=(a=(u=(s=I==null?void 0:I.action)===null||s===void 0?void 0:s.startWorkflow)===null||u===void 0?void 0:u.workflowType)===null||a===void 0?void 0:a.name)!==null&&d!==void 0?d:"",ie=(m=(c=(f=I==null?void 0:I.action)===null||f===void 0?void 0:f.startWorkflow)===null||c===void 0?void 0:c.workflowId)!==null&&m!==void 0?m:"",ue=(w=(y=(b=(g=I==null?void 0:I.action)===null||g===void 0?void 0:g.startWorkflow)===null||b===void 0?void 0:b.taskQueue)===null||y===void 0?void 0:y.name)!==null&&w!==void 0?w:"",ee=[],ae=[],de=[],he="",re="",p="",te="",_e="",fe="";const oe=(O,be)=>{B(O,{name:S,workflowType:X,workflowId:ie,taskQueue:ue,hour:re,minute:p,second:te,phase:_e,cronString:fe,daysOfWeek:ee,daysOfMonth:ae,days:he,months:de},be)},Oe=O=>{const{id:be}=O.target;t(13,ne[be]=!1,ne),i&&dt(xe,i="",i)},Ee=O=>{const{value:be,id:we}=O.target;be.trim()?t(13,ne[we]=!1,ne):t(13,ne[we]=!0,ne)};Lt(()=>dt(xe,i="",i));function me(O){S=O,t(1,S)}function ge(O){X=O,t(2,X)}function ke(O){ie=O,t(3,ie)}function ye(O){ue=O,t(4,ue)}const $e=O=>oe(O,I);function Pe(O){ee=O,t(5,ee)}function Ce(O){ae=O,t(6,ae)}function Qe(O){de=O,t(7,de)}function Le(O){he=O,t(8,he)}function Fe(O){re=O,t(9,re)}function ve(O){p=O,t(10,p)}function v(O){te=O,t(11,te)}function R(O){_e=O,t(14,_e)}function Ve(O){fe=O,t(12,fe)}return n.$$set=O=>{"schedule"in O&&t(0,I=O.schedule),"onConfirm"in O&&t(27,B=O.onConfirm)},n.$$.update=()=>{n.$$.dirty[0]&8190&&t(15,l=O=>!S||!X||!ie||!ue?!0:O==="interval"?!he&&!re&&!p&&!te:O==="week"?!ee.length:O==="month"?!ae.length||!de.length:O==="string"?!fe:!1)},[I,S,X,ie,ue,ee,ae,de,he,re,p,te,fe,ne,_e,l,i,o,k,$,D,se,Y,F,oe,Oe,Ee,B,me,ge,ke,ye,$e,Pe,Ce,Qe,Le,Fe,ve,v,R,Ve]}class rl extends Me{constructor(e){super(),Se(this,e,zn,jn,We,{schedule:0,onConfirm:27},null,[-1,-1])}}export{rl as S}; diff --git a/ui/assets/local/_app/immutable/chunks/schedule-service.ba2f3be5.js b/ui/assets/local/_app/immutable/chunks/schedule-service.3e5d769d.js similarity index 93% rename from ui/assets/local/_app/immutable/chunks/schedule-service.ba2f3be5.js rename to ui/assets/local/_app/immutable/chunks/schedule-service.3e5d769d.js index 157b003e35..9f050e5f84 100644 --- a/ui/assets/local/_app/immutable/chunks/schedule-service.ba2f3be5.js +++ b/ui/assets/local/_app/immutable/chunks/schedule-service.3e5d769d.js @@ -1 +1 @@ -import"./index.4e2fcbc7.js";import"./i18next.1cfb3cb9.js";import{s as d}from"./parse-with-big-int.0036a80a.js";import{r as a,a as r}from"./route-for-api.60228029.js";import{v as h}from"./toaster.8a4adbc8.js";const S=async(t,e=fetch)=>(o=100,s="")=>{const n=a("schedules",{namespace:t});return r(n,{params:{maximumPageSize:String(o),nextPageToken:s},request:e}).then(({schedules:i,nextPageToken:c})=>({items:i,nextPageToken:c?String(c):""}))};async function T(t,e=fetch){const o=a("schedule",t);return r(o,{request:e})}async function P(t,e=fetch){const o=a("schedule",t);return r(o,{request:e,options:{method:"DELETE"}})}async function E({namespace:t,scheduleId:e,body:o}){let s="";const n=u=>{var p;return s=((p=u==null?void 0:u.body)==null?void 0:p.message)??`Error creating schedule: ${u.status}: ${u.statusText}`},i=a("schedule",{namespace:t,scheduleId:e}),{conflictToken:c}=await r(i,{options:{method:"POST",body:d({request_id:h(),...o})},onError:n});return{conflictToken:c,error:s}}async function b({namespace:t,scheduleId:e,body:o}){let s="";const n=c=>{var u;return s=((u=c==null?void 0:c.body)==null?void 0:u.message)??`Error editing schedule: ${c.status}: ${c.statusText}`},i=a("schedule.edit",{namespace:t,scheduleId:e});return await r(i,{options:{method:"POST",body:d({request_id:h(),...o})},onError:n}),{error:s}}async function q({namespace:t,scheduleId:e,reason:o}){const s={patch:{pause:o}},n=a("schedule.patch",{namespace:t,scheduleId:e});return await r(n,{options:{method:"POST",body:d({...s,request_id:h()})},onError:i=>console.error(i)})}async function w({namespace:t,scheduleId:e,reason:o}){const s={patch:{unpause:o}},n=a("schedule.patch",{namespace:t,scheduleId:e});return await r(n,{options:{method:"POST",body:d({...s,request_id:h()})}})}async function x({namespace:t,scheduleId:e,overlapPolicy:o}){const s={patch:{triggerImmediately:{overlapPolicy:o}}},n=a("schedule.patch",{namespace:t,scheduleId:e});return await r(n,{options:{method:"POST",body:d({...s,request_id:h()})}})}export{T as a,E as c,P as d,b as e,S as f,q as p,x as t,w as u}; +import"./index.4e2fcbc7.js";import"./i18next.1cfb3cb9.js";import{s as d}from"./parse-with-big-int.0036a80a.js";import{r as a,a as r}from"./route-for-api.d45de563.js";import{v as h}from"./toaster.de22ba12.js";const S=async(t,e=fetch)=>(o=100,s="")=>{const n=a("schedules",{namespace:t});return r(n,{params:{maximumPageSize:String(o),nextPageToken:s},request:e}).then(({schedules:i,nextPageToken:c})=>({items:i,nextPageToken:c?String(c):""}))};async function T(t,e=fetch){const o=a("schedule",t);return r(o,{request:e})}async function P(t,e=fetch){const o=a("schedule",t);return r(o,{request:e,options:{method:"DELETE"}})}async function E({namespace:t,scheduleId:e,body:o}){let s="";const n=u=>{var p;return s=((p=u==null?void 0:u.body)==null?void 0:p.message)??`Error creating schedule: ${u.status}: ${u.statusText}`},i=a("schedule",{namespace:t,scheduleId:e}),{conflictToken:c}=await r(i,{options:{method:"POST",body:d({request_id:h(),...o})},onError:n});return{conflictToken:c,error:s}}async function b({namespace:t,scheduleId:e,body:o}){let s="";const n=c=>{var u;return s=((u=c==null?void 0:c.body)==null?void 0:u.message)??`Error editing schedule: ${c.status}: ${c.statusText}`},i=a("schedule.edit",{namespace:t,scheduleId:e});return await r(i,{options:{method:"POST",body:d({request_id:h(),...o})},onError:n}),{error:s}}async function q({namespace:t,scheduleId:e,reason:o}){const s={patch:{pause:o}},n=a("schedule.patch",{namespace:t,scheduleId:e});return await r(n,{options:{method:"POST",body:d({...s,request_id:h()})},onError:i=>console.error(i)})}async function w({namespace:t,scheduleId:e,reason:o}){const s={patch:{unpause:o}},n=a("schedule.patch",{namespace:t,scheduleId:e});return await r(n,{options:{method:"POST",body:d({...s,request_id:h()})}})}async function x({namespace:t,scheduleId:e,overlapPolicy:o}){const s={patch:{triggerImmediately:{overlapPolicy:o}}},n=a("schedule.patch",{namespace:t,scheduleId:e});return await r(n,{options:{method:"POST",body:d({...s,request_id:h()})}})}export{T as a,E as c,P as d,b as e,S as f,q as p,x as t,w as u}; diff --git a/ui/assets/local/_app/immutable/chunks/schedules.71007bee.js b/ui/assets/local/_app/immutable/chunks/schedules.cfaf5e30.js similarity index 91% rename from ui/assets/local/_app/immutable/chunks/schedules.71007bee.js rename to ui/assets/local/_app/immutable/chunks/schedules.cfaf5e30.js index 8162ac5711..c3e76f5cf2 100644 --- a/ui/assets/local/_app/immutable/chunks/schedules.71007bee.js +++ b/ui/assets/local/_app/immutable/chunks/schedules.cfaf5e30.js @@ -1 +1 @@ -import{S as Q,b as z,a as b,e as S,f as j,z as E,g,n as F,h as B,j as _,k as v,N as w,U as y,m as N,C as A,p as U,q as V,D as G,u as I,E as H,F as J}from"./index.4e2fcbc7.js";import{C as K}from"./code-block.d389dfc4.js";import{s as T}from"./parse-with-big-int.0036a80a.js";import{w as D}from"./singletons.fb5f332e.js";import{g as M}from"./navigation.10919bcf.js";import{c as L,e as P}from"./schedule-service.ba2f3be5.js";import{d as R,q as X}from"./route-for.80613b91.js";function C(s){let a,t,r,n;return t=new K({props:{copyable:!0,inline:s[2],testId:"schedule-calendar",language:"json",content:T(s[0]||s[1])}}),{c(){a=N("div"),A(t.$$.fragment),this.h()},l(e){a=U(e,"DIV",{class:!0});var o=V(a);G(t.$$.fragment,o),o.forEach(v),this.h()},h(){I(a,"class",r="flex flex-col "+s[3].class)},m(e,o){j(e,a,o),H(t,a,null),n=!0},p(e,o){const l={};o&4&&(l.inline=e[2]),o&3&&(l.content=T(e[0]||e[1])),t.$set(l),(!n||o&8&&r!==(r="flex flex-col "+e[3].class))&&I(a,"class",r)},i(e){n||(_(t.$$.fragment,e),n=!0)},o(e){g(t.$$.fragment,e),n=!1},d(e){e&&v(a),J(t)}}}function Y(s){let a=[s[0],s[1]],t,r,n=C(s);return{c(){n.c(),t=S()},l(e){n.l(e),t=S()},m(e,o){n.m(e,o),j(e,t,o),r=!0},p(e,[o]){o&3&&b(a,a=[e[0],e[1]])?(E(),g(n,1,1,F),B(),n=C(e),n.c(),_(n,1),n.m(t.parentNode,t)):n.p(e,o)},i(e){r||(_(n),r=!0)},o(e){g(n),r=!1},d(e){e&&v(t),n.d(e)}}}function Z(s,a,t){let{calendar:r=void 0}=a,{interval:n=void 0}=a,{inline:e=!1}=a;return s.$$set=o=>{t(3,a=w(w({},a),y(o))),"calendar"in o&&t(0,r=o.calendar),"interval"in o&&t(1,n=o.interval),"inline"in o&&t(2,e=o.inline)},a=y(a),[r,n,e,a]}class le extends Q{constructor(a){super(),z(this,a,Z,Y,b,{calendar:0,interval:1,inline:2})}}const p=s=>s?parseInt(s):0,x=(s,a,t,r)=>`${p(s)*60*60*24+p(a)*60*60+p(t)*60+p(r)}s`,$=({months:s=[],daysOfMonth:a=[],daysOfWeek:t=[]})=>{var l,c;const r=s.sort((i,u)=>parseInt(i)-parseInt(u)).join(","),n=a.sort((i,u)=>i-u).join(","),o=(((c=(l=t==null?void 0:t[0])==null?void 0:l.split(","))==null?void 0:c.length)>1?t[0].split(","):t).sort((i,u)=>parseInt(i)-parseInt(u)).join(",");return{month:r,dayOfMonth:n,dayOfWeek:o}},W=(s,a,t)=>{const{hour:r,minute:n,second:e,phase:o,cronString:l}=a,{preset:c,months:i,days:u,daysOfMonth:f,daysOfWeek:h}=t;if(c==="string"){const m=`${l}#${l}`;s.schedule.spec.cronString=[m],s.schedule.spec.calendar=[],s.schedule.spec.interval=[]}else if(c==="interval"){const m=x(u,r,n,e);s.schedule.spec.interval=[{interval:m,phase:o||"0s"}],s.schedule.spec.cronString=[],s.schedule.spec.calendar=[]}else{const{month:m,dayOfMonth:q,dayOfWeek:O}=$({months:i,daysOfMonth:f,daysOfWeek:h});s.schedule.spec.calendar=[{year:"*",month:c==="month"?m:"",dayOfMonth:c==="month"?q:"",dayOfWeek:c==="week"?O:"",hour:r,minute:n,second:e}],s.schedule.spec.interval=[],s.schedule.spec.cronString=[]}},ce=async({action:s,spec:a,presets:t})=>{const{namespace:r,name:n,workflowId:e,workflowType:o,taskQueue:l}=s,c={schedule_id:n.trim(),schedule:{spec:{calendar:[],interval:[],cronString:[]},action:{startWorkflow:{workflowId:e,workflowType:{name:o},taskQueue:{name:l}}}}};W(c,a,t),d.set(!0);const{error:i}=await L({scheduleId:n,namespace:r,body:c});i?(k.set(i),d.set(!1)):setTimeout(()=>{k.set(""),d.set(!1),M(R({namespace:r}))},2e3)},ie=async({action:s,spec:a,presets:t},r,n)=>{const{namespace:e,name:o,workflowId:l,workflowType:c,taskQueue:i}=s,{preset:u}=t,f={schedule_id:n,schedule:{...r,action:{startWorkflow:{...r.action.startWorkflow,workflowId:l,workflowType:{name:c},taskQueue:{name:i}}}}};u==="existing"?f.schedule.spec=r.spec:(W(f,a,t),f.schedule.spec.structuredCalendar=[]),d.set(!0);const{error:h}=await P({namespace:e,scheduleId:n,body:f});h?(k.set(h),d.set(!1)):setTimeout(()=>{M(X({namespace:e,scheduleId:o})),k.set(""),d.set(!1)},2e3)},d=D(!1),k=D("");export{le as S,ce as a,k as e,d as l,ie as s}; +import{S as Q,b as z,a as b,e as S,f as j,z as E,g,n as F,h as B,j as _,k as v,N as w,U as y,m as N,C as A,p as U,q as V,D as G,u as I,E as H,F as J}from"./index.4e2fcbc7.js";import{C as K}from"./code-block.55adac36.js";import{s as T}from"./parse-with-big-int.0036a80a.js";import{w as D}from"./singletons.13b3836d.js";import{g as M}from"./navigation.b77a045a.js";import{c as L,e as P}from"./schedule-service.3e5d769d.js";import{d as R,q as X}from"./route-for.084c7a46.js";function C(s){let a,t,r,n;return t=new K({props:{copyable:!0,inline:s[2],testId:"schedule-calendar",language:"json",content:T(s[0]||s[1])}}),{c(){a=N("div"),A(t.$$.fragment),this.h()},l(e){a=U(e,"DIV",{class:!0});var o=V(a);G(t.$$.fragment,o),o.forEach(v),this.h()},h(){I(a,"class",r="flex flex-col "+s[3].class)},m(e,o){j(e,a,o),H(t,a,null),n=!0},p(e,o){const l={};o&4&&(l.inline=e[2]),o&3&&(l.content=T(e[0]||e[1])),t.$set(l),(!n||o&8&&r!==(r="flex flex-col "+e[3].class))&&I(a,"class",r)},i(e){n||(_(t.$$.fragment,e),n=!0)},o(e){g(t.$$.fragment,e),n=!1},d(e){e&&v(a),J(t)}}}function Y(s){let a=[s[0],s[1]],t,r,n=C(s);return{c(){n.c(),t=S()},l(e){n.l(e),t=S()},m(e,o){n.m(e,o),j(e,t,o),r=!0},p(e,[o]){o&3&&b(a,a=[e[0],e[1]])?(E(),g(n,1,1,F),B(),n=C(e),n.c(),_(n,1),n.m(t.parentNode,t)):n.p(e,o)},i(e){r||(_(n),r=!0)},o(e){g(n),r=!1},d(e){e&&v(t),n.d(e)}}}function Z(s,a,t){let{calendar:r=void 0}=a,{interval:n=void 0}=a,{inline:e=!1}=a;return s.$$set=o=>{t(3,a=w(w({},a),y(o))),"calendar"in o&&t(0,r=o.calendar),"interval"in o&&t(1,n=o.interval),"inline"in o&&t(2,e=o.inline)},a=y(a),[r,n,e,a]}class le extends Q{constructor(a){super(),z(this,a,Z,Y,b,{calendar:0,interval:1,inline:2})}}const p=s=>s?parseInt(s):0,x=(s,a,t,r)=>`${p(s)*60*60*24+p(a)*60*60+p(t)*60+p(r)}s`,$=({months:s=[],daysOfMonth:a=[],daysOfWeek:t=[]})=>{var l,c;const r=s.sort((i,u)=>parseInt(i)-parseInt(u)).join(","),n=a.sort((i,u)=>i-u).join(","),o=(((c=(l=t==null?void 0:t[0])==null?void 0:l.split(","))==null?void 0:c.length)>1?t[0].split(","):t).sort((i,u)=>parseInt(i)-parseInt(u)).join(",");return{month:r,dayOfMonth:n,dayOfWeek:o}},W=(s,a,t)=>{const{hour:r,minute:n,second:e,phase:o,cronString:l}=a,{preset:c,months:i,days:u,daysOfMonth:f,daysOfWeek:h}=t;if(c==="string"){const m=`${l}#${l}`;s.schedule.spec.cronString=[m],s.schedule.spec.calendar=[],s.schedule.spec.interval=[]}else if(c==="interval"){const m=x(u,r,n,e);s.schedule.spec.interval=[{interval:m,phase:o||"0s"}],s.schedule.spec.cronString=[],s.schedule.spec.calendar=[]}else{const{month:m,dayOfMonth:q,dayOfWeek:O}=$({months:i,daysOfMonth:f,daysOfWeek:h});s.schedule.spec.calendar=[{year:"*",month:c==="month"?m:"",dayOfMonth:c==="month"?q:"",dayOfWeek:c==="week"?O:"",hour:r,minute:n,second:e}],s.schedule.spec.interval=[],s.schedule.spec.cronString=[]}},ce=async({action:s,spec:a,presets:t})=>{const{namespace:r,name:n,workflowId:e,workflowType:o,taskQueue:l}=s,c={schedule_id:n.trim(),schedule:{spec:{calendar:[],interval:[],cronString:[]},action:{startWorkflow:{workflowId:e,workflowType:{name:o},taskQueue:{name:l}}}}};W(c,a,t),d.set(!0);const{error:i}=await L({scheduleId:n,namespace:r,body:c});i?(k.set(i),d.set(!1)):setTimeout(()=>{k.set(""),d.set(!1),M(R({namespace:r}))},2e3)},ie=async({action:s,spec:a,presets:t},r,n)=>{const{namespace:e,name:o,workflowId:l,workflowType:c,taskQueue:i}=s,{preset:u}=t,f={schedule_id:n,schedule:{...r,action:{startWorkflow:{...r.action.startWorkflow,workflowId:l,workflowType:{name:c},taskQueue:{name:i}}}}};u==="existing"?f.schedule.spec=r.spec:(W(f,a,t),f.schedule.spec.structuredCalendar=[]),d.set(!0);const{error:h}=await P({namespace:e,scheduleId:n,body:f});h?(k.set(h),d.set(!1)):setTimeout(()=>{M(X({namespace:e,scheduleId:o})),k.set(""),d.set(!1)},2e3)},d=D(!1),k=D("");export{le as S,ce as a,k as e,d as l,ie as s}; diff --git a/ui/assets/local/_app/immutable/chunks/search-attributes.5d6df3ed.js b/ui/assets/local/_app/immutable/chunks/search-attributes.5443a149.js similarity index 92% rename from ui/assets/local/_app/immutable/chunks/search-attributes.5d6df3ed.js rename to ui/assets/local/_app/immutable/chunks/search-attributes.5443a149.js index 7e1722f72f..5dd05fc228 100644 --- a/ui/assets/local/_app/immutable/chunks/search-attributes.5d6df3ed.js +++ b/ui/assets/local/_app/immutable/chunks/search-attributes.5443a149.js @@ -1 +1 @@ -import{j as r,w as o}from"./singletons.fb5f332e.js";import{ac as c}from"./index.4e2fcbc7.js";const i=o({customAttributes:{},systemAttributes:{}}),b=r([i],([t])=>({...t.customAttributes,...t.systemAttributes}));r([i],([t])=>t.systemAttributes);const l=r([i],([t])=>t.customAttributes),p=t=>{const e=c(l);return t in e},f=(t,e)=>{var s;return e in(((s=t==null?void 0:t.searchAttributes)==null?void 0:s.indexedFields)??{})},m=r([b],([t])=>t?Object.entries(t).map(([e,s])=>({label:e,value:e,type:s})):[]),h=r([m],([t])=>{const e=["ExecutionStatus","WorkflowId","WorkflowType","RunId","StartTime","CloseTime"];return t.sort((s,u)=>s.labelu.label?1:0).sort((s,u)=>{const n=e.indexOf(s.value),a=e.indexOf(u.value);return n<0?1:a<0?-1:n-a})});export{i as a,h as b,l as c,p as i,b as s,f as w}; +import{j as r,w as o}from"./singletons.13b3836d.js";import{ac as c}from"./index.4e2fcbc7.js";const i=o({customAttributes:{},systemAttributes:{}}),b=r([i],([t])=>({...t.customAttributes,...t.systemAttributes}));r([i],([t])=>t.systemAttributes);const l=r([i],([t])=>t.customAttributes),p=t=>{const e=c(l);return t in e},f=(t,e)=>{var s;return e in(((s=t==null?void 0:t.searchAttributes)==null?void 0:s.indexedFields)??{})},m=r([b],([t])=>t?Object.entries(t).map(([e,s])=>({label:e,value:e,type:s})):[]),h=r([m],([t])=>{const e=["ExecutionStatus","WorkflowId","WorkflowType","RunId","StartTime","CloseTime"];return t.sort((s,u)=>s.labelu.label?1:0).sort((s,u)=>{const n=e.indexOf(s.value),a=e.indexOf(u.value);return n<0?1:a<0?-1:n-a})});export{i as a,h as b,l as c,p as i,b as s,f as w}; diff --git a/ui/assets/local/_app/immutable/chunks/settings-service.7891e454.js b/ui/assets/local/_app/immutable/chunks/settings-service.eec0b467.js similarity index 95% rename from ui/assets/local/_app/immutable/chunks/settings-service.7891e454.js rename to ui/assets/local/_app/immutable/chunks/settings-service.eec0b467.js index ae1795b812..952f6ddafc 100644 --- a/ui/assets/local/_app/immutable/chunks/settings-service.7891e454.js +++ b/ui/assets/local/_app/immutable/chunks/settings-service.eec0b467.js @@ -1 +1 @@ -import{r as w,a as b,g as k}from"./route-for-api.60228029.js";function t(){return{}.VITE_TEMPORAL_UI_BUILD_TARGET??null}const u=/(tmprl\.cloud|tmprl-test\.cloud)$/,D=async(f=fetch)=>{var l,o,c,d,i;const m=w("settings"),r=await b(m,{request:f}),a=t();return{auth:{enabled:!!((l=r==null?void 0:r.Auth)!=null&&l.Enabled),options:(o=r==null?void 0:r.Auth)==null?void 0:o.Options},baseUrl:k(),codec:{endpoint:(c=r==null?void 0:r.Codec)==null?void 0:c.Endpoint,passAccessToken:(d=r==null?void 0:r.Codec)==null?void 0:d.PassAccessToken,includeCredentials:(i=r==null?void 0:r.Codec)==null?void 0:i.IncludeCredentials},defaultNamespace:(r==null?void 0:r.DefaultNamespace)||"default",disableWriteActions:!!(r!=null&&r.DisableWriteActions)||!1,workflowTerminateDisabled:!!(r!=null&&r.WorkflowTerminateDisabled),workflowCancelDisabled:!!(r!=null&&r.WorkflowCancelDisabled),workflowSignalDisabled:!!(r!=null&&r.WorkflowSignalDisabled),workflowResetDisabled:!!(r!=null&&r.WorkflowResetDisabled),batchActionsDisabled:!!(r!=null&&r.BatchActionsDisabled),hideWorkflowQueryErrors:!!(r!=null&&r.HideWorkflowQueryErrors),showTemporalSystemNamespace:r==null?void 0:r.ShowTemporalSystemNamespace,notifyOnNewVersion:r==null?void 0:r.NotifyOnNewVersion,feedbackURL:r==null?void 0:r.FeedbackURL,runtimeEnvironment:{get isCloud(){return a?a==="cloud":u.test(window.location.hostname)},get isLocal(){return a?a==="local":u.test(window.location.hostname)},envOverride:Boolean(a)},version:r==null?void 0:r.Version}};export{D as f,u as i}; +import{r as w,a as b,g as k}from"./route-for-api.d45de563.js";function t(){return{}.VITE_TEMPORAL_UI_BUILD_TARGET??null}const u=/(tmprl\.cloud|tmprl-test\.cloud)$/,D=async(f=fetch)=>{var l,o,c,d,i;const m=w("settings"),r=await b(m,{request:f}),a=t();return{auth:{enabled:!!((l=r==null?void 0:r.Auth)!=null&&l.Enabled),options:(o=r==null?void 0:r.Auth)==null?void 0:o.Options},baseUrl:k(),codec:{endpoint:(c=r==null?void 0:r.Codec)==null?void 0:c.Endpoint,passAccessToken:(d=r==null?void 0:r.Codec)==null?void 0:d.PassAccessToken,includeCredentials:(i=r==null?void 0:r.Codec)==null?void 0:i.IncludeCredentials},defaultNamespace:(r==null?void 0:r.DefaultNamespace)||"default",disableWriteActions:!!(r!=null&&r.DisableWriteActions)||!1,workflowTerminateDisabled:!!(r!=null&&r.WorkflowTerminateDisabled),workflowCancelDisabled:!!(r!=null&&r.WorkflowCancelDisabled),workflowSignalDisabled:!!(r!=null&&r.WorkflowSignalDisabled),workflowResetDisabled:!!(r!=null&&r.WorkflowResetDisabled),batchActionsDisabled:!!(r!=null&&r.BatchActionsDisabled),hideWorkflowQueryErrors:!!(r!=null&&r.HideWorkflowQueryErrors),showTemporalSystemNamespace:r==null?void 0:r.ShowTemporalSystemNamespace,notifyOnNewVersion:r==null?void 0:r.NotifyOnNewVersion,feedbackURL:r==null?void 0:r.FeedbackURL,runtimeEnvironment:{get isCloud(){return a?a==="cloud":u.test(window.location.hostname)},get isLocal(){return a?a==="local":u.test(window.location.hostname)},envOverride:Boolean(a)},version:r==null?void 0:r.Version}};export{D as f,u as i}; diff --git a/ui/assets/local/_app/immutable/chunks/settings.0d5c4f96.js b/ui/assets/local/_app/immutable/chunks/settings.0d5c4f96.js new file mode 100644 index 0000000000..64725bf714 --- /dev/null +++ b/ui/assets/local/_app/immutable/chunks/settings.0d5c4f96.js @@ -0,0 +1 @@ +import{j as t}from"./singletons.13b3836d.js";import{p as a}from"./stores.0e7b7e35.js";const r=t([a],([s])=>s.data.settings);export{r as s}; diff --git a/ui/assets/local/_app/immutable/chunks/simplify-attributes.8d6f7848.js b/ui/assets/local/_app/immutable/chunks/simplify-attributes.9504a504.js similarity index 94% rename from ui/assets/local/_app/immutable/chunks/simplify-attributes.8d6f7848.js rename to ui/assets/local/_app/immutable/chunks/simplify-attributes.9504a504.js index ea0748fb17..6261d10f4f 100644 --- a/ui/assets/local/_app/immutable/chunks/simplify-attributes.8d6f7848.js +++ b/ui/assets/local/_app/immutable/chunks/simplify-attributes.9504a504.js @@ -1 +1 @@ -import{b as r}from"./time-format.88312c30.js";import{k as s}from"./format-time.4f091e0e.js";const n=["closeTime","createTime","currentAttemptScheduledTime","earliestTime","eventTime","executionTime","expirationTime","expireTime","lastAccessTime","lastHeartbeatTime","lastStartedTime","lastUpdateTime","latestTime","releaseTime","scheduledTime","startedTime","startTime","workflowExecutionExpirationTime"],f=["backoffStartInterval","defaultWorkflowTaskTimeout","firstWorkflowTaskBackoff","heartbeatTimeout","initialInterval","maximumInterval","scheduleToCloseTimeout","scheduleToStartTimeout","startToCloseTimeout","startToFireTimeout","workflowExecutionRetentionPeriod","workflowExecutionRetentionTtl","workflowExecutionTimeout","workflowRunTimeout","workflowTaskTimeout"],a=e=>{for(const t of n)if(t===e)return!0;return!1},m=e=>{for(const t of f)if(t===e)return!0;return!1},l=e=>{if(e===null||e===void 0||typeof e!="object")return!1;const t=Object.keys(e),[o]=t;return!(t.length!==1||typeof e[o]!="string")},T=e=>{for(const t of Object.values(e))return t};function k(e,t=!1){for(const[o,i]of Object.entries(e))l(i)&&(e[o]=T(i)),a(o)&&!t&&(e[o]=r(i)),m(o)&&(e[o]=s(i));return e}export{k as s}; +import{b as r}from"./time-format.fa373b4c.js";import{k as s}from"./format-time.4f091e0e.js";const n=["closeTime","createTime","currentAttemptScheduledTime","earliestTime","eventTime","executionTime","expirationTime","expireTime","lastAccessTime","lastHeartbeatTime","lastStartedTime","lastUpdateTime","latestTime","releaseTime","scheduledTime","startedTime","startTime","workflowExecutionExpirationTime"],f=["backoffStartInterval","defaultWorkflowTaskTimeout","firstWorkflowTaskBackoff","heartbeatTimeout","initialInterval","maximumInterval","scheduleToCloseTimeout","scheduleToStartTimeout","startToCloseTimeout","startToFireTimeout","workflowExecutionRetentionPeriod","workflowExecutionRetentionTtl","workflowExecutionTimeout","workflowRunTimeout","workflowTaskTimeout"],a=e=>{for(const t of n)if(t===e)return!0;return!1},m=e=>{for(const t of f)if(t===e)return!0;return!1},l=e=>{if(e===null||e===void 0||typeof e!="object")return!1;const t=Object.keys(e),[o]=t;return!(t.length!==1||typeof e[o]!="string")},T=e=>{for(const t of Object.values(e))return t};function k(e,t=!1){for(const[o,i]of Object.entries(e))l(i)&&(e[o]=T(i)),a(o)&&!t&&(e[o]=r(i)),m(o)&&(e[o]=s(i));return e}export{k as s}; diff --git a/ui/assets/local/_app/immutable/chunks/singletons.fb5f332e.js b/ui/assets/local/_app/immutable/chunks/singletons.13b3836d.js similarity index 95% rename from ui/assets/local/_app/immutable/chunks/singletons.fb5f332e.js rename to ui/assets/local/_app/immutable/chunks/singletons.13b3836d.js index 0e624c5f98..a08236f243 100644 --- a/ui/assets/local/_app/immutable/chunks/singletons.fb5f332e.js +++ b/ui/assets/local/_app/immutable/chunks/singletons.13b3836d.js @@ -1 +1 @@ -import{n as p,s as R,r as S,a as I,i as T}from"./index.4e2fcbc7.js";import{a as x}from"./paths.c2469178.js";const f=[];function O(e,t){return{subscribe:b(e,t).subscribe}}function b(e,t=p){let n;const r=new Set;function a(s){if(I(e,s)&&(e=s,n)){const l=!f.length;for(const i of r)i[1](),f.push(i,e);if(l){for(let i=0;i{r.delete(i),r.size===0&&(n(),n=null)}}return{set:a,update:c,subscribe:o}}function Y(e,t,n){const r=!Array.isArray(e),a=r?[e]:e,c=t.length<2;return O(n,o=>{let s=!1;const l=[];let i=0,_=p;const h=()=>{if(i)return;_();const u=t(r?l[0]:l,o);c?o(u):_=T(u)?u:p},w=a.map((u,g)=>R(u,E=>{l[g]=E,i&=~(1<{i|=1<o)}function a(o){n=!1,t.set(o)}function c(o){let s;return t.subscribe(l=>{(s===void 0||n&&l!==s)&&o(s=l)})}return{notify:r,set:a,subscribe:c}}function L(){const{set:e,subscribe:t}=b(!1);let n;async function r(){clearTimeout(n);try{const a=await fetch(`${x}/_app/version.json`,{headers:{pragma:"no-cache","cache-control":"no-cache"}});if(!a.ok)return!1;const o=(await a.json()).version!==U;return o&&(e(!0),clearTimeout(n)),o}catch{return!1}}return{subscribe:t,check:r}}function N(e,t){return e.origin!==location.origin||!e.pathname.startsWith(t)}let A;function X(e){A=e.client}function B(e){return(...t)=>A[e](...t)}const H={url:k({}),page:k({}),navigating:b(null),updated:L()};export{K as I,m as P,q as S,j as a,D as b,G as c,H as d,X as e,C as f,$ as g,B as h,N as i,Y as j,O as r,z as s,b as w}; +import{n as p,s as R,r as S,a as I,i as T}from"./index.4e2fcbc7.js";import{a as x}from"./paths.b17cbae1.js";const f=[];function O(e,t){return{subscribe:b(e,t).subscribe}}function b(e,t=p){let n;const r=new Set;function a(s){if(I(e,s)&&(e=s,n)){const l=!f.length;for(const i of r)i[1](),f.push(i,e);if(l){for(let i=0;i{r.delete(i),r.size===0&&(n(),n=null)}}return{set:a,update:c,subscribe:o}}function Y(e,t,n){const r=!Array.isArray(e),a=r?[e]:e,c=t.length<2;return O(n,o=>{let s=!1;const l=[];let i=0,_=p;const h=()=>{if(i)return;_();const u=t(r?l[0]:l,o);c?o(u):_=T(u)?u:p},w=a.map((u,g)=>R(u,E=>{l[g]=E,i&=~(1<{i|=1<o)}function a(o){n=!1,t.set(o)}function c(o){let s;return t.subscribe(l=>{(s===void 0||n&&l!==s)&&o(s=l)})}return{notify:r,set:a,subscribe:c}}function L(){const{set:e,subscribe:t}=b(!1);let n;async function r(){clearTimeout(n);try{const a=await fetch(`${x}/_app/version.json`,{headers:{pragma:"no-cache","cache-control":"no-cache"}});if(!a.ok)return!1;const o=(await a.json()).version!==U;return o&&(e(!0),clearTimeout(n)),o}catch{return!1}}return{subscribe:t,check:r}}function N(e,t){return e.origin!==location.origin||!e.pathname.startsWith(t)}let A;function X(e){A=e.client}function B(e){return(...t)=>A[e](...t)}const H={url:k({}),page:k({}),navigating:b(null),updated:L()};export{K as I,m as P,q as S,j as a,D as b,G as c,H as d,X as e,C as f,$ as g,B as h,N as i,Y as j,O as r,z as s,b as w}; diff --git a/ui/assets/local/_app/immutable/chunks/split-button.8c08583d.js b/ui/assets/local/_app/immutable/chunks/split-button.015e101a.js similarity index 98% rename from ui/assets/local/_app/immutable/chunks/split-button.8c08583d.js rename to ui/assets/local/_app/immutable/chunks/split-button.015e101a.js index 26bb4877da..1616c5008c 100644 --- a/ui/assets/local/_app/immutable/chunks/split-button.8c08583d.js +++ b/ui/assets/local/_app/immutable/chunks/split-button.015e101a.js @@ -1 +1 @@ -import{S as B,b as C,a as E,C as g,D as h,E as p,j as r,g as b,F as k,N as M,U as A,m as N,c as L,p as V,q as j,d as I,k as v,u as z,f as D,L as F,V as G,w as H,x as J,z as R,h as U,y as K,G as O,H as P,I as Q,J as T}from"./index.4e2fcbc7.js";import{B as W}from"./button.a45b0e55.js";import{I as X}from"./icon.e8aa24c8.js";import{M as Y,a as Z,b as y}from"./menu.69cccace.js";function S(s){let e,a;return e=new X({props:{name:s[2]}}),{c(){g(e.$$.fragment)},l(n){h(e.$$.fragment,n)},m(n,t){p(e,n,t),a=!0},p(n,t){const i={};t&4&&(i.name=n[2]),e.$set(i)},i(n){a||(r(e.$$.fragment,n),a=!0)},o(n){b(e.$$.fragment,n),a=!1},d(n){k(e,n)}}}function $(s){let e,a,n,t=s[2]&&S(s);return{c(){t&&t.c(),e=L(),a=H(s[0])},l(i){t&&t.l(i),e=I(i),a=J(i,s[0])},m(i,o){t&&t.m(i,o),D(i,e,o),D(i,a,o),n=!0},p(i,o){i[2]?t?(t.p(i,o),o&4&&r(t,1)):(t=S(i),t.c(),r(t,1),t.m(e.parentNode,e)):t&&(R(),b(t,1,1,()=>{t=null}),U()),(!n||o&1)&&K(a,i[0])},i(i){n||(r(t),n=!0)},o(i){b(t),n=!1},d(i){t&&t.d(i),i&&v(e),i&&v(a)}}}function w(s){let e;const a=s[9].default,n=O(a,s,s[11],null);return{c(){n&&n.c()},l(t){n&&n.l(t)},m(t,i){n&&n.m(t,i),e=!0},p(t,i){n&&n.p&&(!e||i&2048)&&P(n,a,t,t[11],e?T(a,t[11],i,null):Q(t[11]),null)},i(t){e||(r(n,t),e=!0)},o(t){b(n,t),e=!1},d(t){n&&n.d(t)}}}function x(s){let e,a,n,t,i,o,_;return a=new W({props:{variant:s[4],borderRadiusModifier:"square-right",disabled:s[5]||s[7],id:s[3]+"-primary-button",$$slots:{default:[$]},$$scope:{ctx:s}}}),a.$on("click",s[10]),t=new Z({props:{class:"max-w-fit grow-0",id:s[3]+"-menu-button",label:s[1],controls:s[3]+"-menu",variant:"primary",unroundLeft:!0,disabled:s[5],hasIndicator:!0}}),o=new y({props:{id:s[3]+"-menu",position:s[6],class:"w-full",$$slots:{default:[w]},$$scope:{ctx:s}}}),{c(){e=N("div"),g(a.$$.fragment),n=L(),g(t.$$.fragment),i=L(),g(o.$$.fragment),this.h()},l(l){e=V(l,"DIV",{class:!0});var f=j(e);h(a.$$.fragment,f),n=I(f),h(t.$$.fragment,f),f.forEach(v),i=I(l),h(o.$$.fragment,l),this.h()},h(){z(e,"class","split-button svelte-1pybp5c")},m(l,f){D(l,e,f),p(a,e,null),F(e,n),p(t,e,null),D(l,i,f),p(o,l,f),_=!0},p(l,f){const m={};f&16&&(m.variant=l[4]),f&160&&(m.disabled=l[5]||l[7]),f&8&&(m.id=l[3]+"-primary-button"),f&2053&&(m.$$scope={dirty:f,ctx:l}),a.$set(m);const c={};f&8&&(c.id=l[3]+"-menu-button"),f&2&&(c.label=l[1]),f&8&&(c.controls=l[3]+"-menu"),f&32&&(c.disabled=l[5]),t.$set(c);const d={};f&8&&(d.id=l[3]+"-menu"),f&64&&(d.position=l[6]),f&2048&&(d.$$scope={dirty:f,ctx:l}),o.$set(d)},i(l){_||(r(a.$$.fragment,l),r(t.$$.fragment,l),r(o.$$.fragment,l),_=!0)},o(l){b(a.$$.fragment,l),b(t.$$.fragment,l),b(o.$$.fragment,l),_=!1},d(l){l&&v(e),k(a),k(t),l&&v(i),k(o,l)}}}function ee(s){let e,a;return e=new Y({props:{class:s[8].class,$$slots:{default:[x]},$$scope:{ctx:s}}}),{c(){g(e.$$.fragment)},l(n){h(e.$$.fragment,n)},m(n,t){p(e,n,t),a=!0},p(n,[t]){const i={};t&256&&(i.class=n[8].class),t&2303&&(i.$$scope={dirty:t,ctx:n}),e.$set(i)},i(n){a||(r(e.$$.fragment,n),a=!0)},o(n){b(e.$$.fragment,n),a=!1},d(n){k(e,n)}}}function te(s,e,a){let{$$slots:n={},$$scope:t}=e,{label:i}=e,{menuLabel:o}=e,{icon:_=void 0}=e,{id:l}=e,{variant:f="primary"}=e,{disabled:m=!1}=e,{position:c="left"}=e,{primaryActionDisabled:d=!1}=e;function q(u){G.call(this,s,u)}return s.$$set=u=>{a(8,e=M(M({},e),A(u))),"label"in u&&a(0,i=u.label),"menuLabel"in u&&a(1,o=u.menuLabel),"icon"in u&&a(2,_=u.icon),"id"in u&&a(3,l=u.id),"variant"in u&&a(4,f=u.variant),"disabled"in u&&a(5,m=u.disabled),"position"in u&&a(6,c=u.position),"primaryActionDisabled"in u&&a(7,d=u.primaryActionDisabled),"$$scope"in u&&a(11,t=u.$$scope)},e=A(e),[i,o,_,l,f,m,c,d,e,n,q,t]}class se extends B{constructor(e){super(),C(this,e,te,ee,E,{label:0,menuLabel:1,icon:2,id:3,variant:4,disabled:5,position:6,primaryActionDisabled:7})}}export{se as S}; +import{S as B,b as C,a as E,C as g,D as h,E as p,j as r,g as b,F as k,N as M,U as A,m as N,c as L,p as V,q as j,d as I,k as v,u as z,f as D,L as F,V as G,w as H,x as J,z as R,h as U,y as K,G as O,H as P,I as Q,J as T}from"./index.4e2fcbc7.js";import{B as W}from"./button.a45b0e55.js";import{I as X}from"./icon.e8aa24c8.js";import{M as Y,a as Z,b as y}from"./menu.716bcd2f.js";function S(s){let e,a;return e=new X({props:{name:s[2]}}),{c(){g(e.$$.fragment)},l(n){h(e.$$.fragment,n)},m(n,t){p(e,n,t),a=!0},p(n,t){const i={};t&4&&(i.name=n[2]),e.$set(i)},i(n){a||(r(e.$$.fragment,n),a=!0)},o(n){b(e.$$.fragment,n),a=!1},d(n){k(e,n)}}}function $(s){let e,a,n,t=s[2]&&S(s);return{c(){t&&t.c(),e=L(),a=H(s[0])},l(i){t&&t.l(i),e=I(i),a=J(i,s[0])},m(i,o){t&&t.m(i,o),D(i,e,o),D(i,a,o),n=!0},p(i,o){i[2]?t?(t.p(i,o),o&4&&r(t,1)):(t=S(i),t.c(),r(t,1),t.m(e.parentNode,e)):t&&(R(),b(t,1,1,()=>{t=null}),U()),(!n||o&1)&&K(a,i[0])},i(i){n||(r(t),n=!0)},o(i){b(t),n=!1},d(i){t&&t.d(i),i&&v(e),i&&v(a)}}}function w(s){let e;const a=s[9].default,n=O(a,s,s[11],null);return{c(){n&&n.c()},l(t){n&&n.l(t)},m(t,i){n&&n.m(t,i),e=!0},p(t,i){n&&n.p&&(!e||i&2048)&&P(n,a,t,t[11],e?T(a,t[11],i,null):Q(t[11]),null)},i(t){e||(r(n,t),e=!0)},o(t){b(n,t),e=!1},d(t){n&&n.d(t)}}}function x(s){let e,a,n,t,i,o,_;return a=new W({props:{variant:s[4],borderRadiusModifier:"square-right",disabled:s[5]||s[7],id:s[3]+"-primary-button",$$slots:{default:[$]},$$scope:{ctx:s}}}),a.$on("click",s[10]),t=new Z({props:{class:"max-w-fit grow-0",id:s[3]+"-menu-button",label:s[1],controls:s[3]+"-menu",variant:"primary",unroundLeft:!0,disabled:s[5],hasIndicator:!0}}),o=new y({props:{id:s[3]+"-menu",position:s[6],class:"w-full",$$slots:{default:[w]},$$scope:{ctx:s}}}),{c(){e=N("div"),g(a.$$.fragment),n=L(),g(t.$$.fragment),i=L(),g(o.$$.fragment),this.h()},l(l){e=V(l,"DIV",{class:!0});var f=j(e);h(a.$$.fragment,f),n=I(f),h(t.$$.fragment,f),f.forEach(v),i=I(l),h(o.$$.fragment,l),this.h()},h(){z(e,"class","split-button svelte-1pybp5c")},m(l,f){D(l,e,f),p(a,e,null),F(e,n),p(t,e,null),D(l,i,f),p(o,l,f),_=!0},p(l,f){const m={};f&16&&(m.variant=l[4]),f&160&&(m.disabled=l[5]||l[7]),f&8&&(m.id=l[3]+"-primary-button"),f&2053&&(m.$$scope={dirty:f,ctx:l}),a.$set(m);const c={};f&8&&(c.id=l[3]+"-menu-button"),f&2&&(c.label=l[1]),f&8&&(c.controls=l[3]+"-menu"),f&32&&(c.disabled=l[5]),t.$set(c);const d={};f&8&&(d.id=l[3]+"-menu"),f&64&&(d.position=l[6]),f&2048&&(d.$$scope={dirty:f,ctx:l}),o.$set(d)},i(l){_||(r(a.$$.fragment,l),r(t.$$.fragment,l),r(o.$$.fragment,l),_=!0)},o(l){b(a.$$.fragment,l),b(t.$$.fragment,l),b(o.$$.fragment,l),_=!1},d(l){l&&v(e),k(a),k(t),l&&v(i),k(o,l)}}}function ee(s){let e,a;return e=new Y({props:{class:s[8].class,$$slots:{default:[x]},$$scope:{ctx:s}}}),{c(){g(e.$$.fragment)},l(n){h(e.$$.fragment,n)},m(n,t){p(e,n,t),a=!0},p(n,[t]){const i={};t&256&&(i.class=n[8].class),t&2303&&(i.$$scope={dirty:t,ctx:n}),e.$set(i)},i(n){a||(r(e.$$.fragment,n),a=!0)},o(n){b(e.$$.fragment,n),a=!1},d(n){k(e,n)}}}function te(s,e,a){let{$$slots:n={},$$scope:t}=e,{label:i}=e,{menuLabel:o}=e,{icon:_=void 0}=e,{id:l}=e,{variant:f="primary"}=e,{disabled:m=!1}=e,{position:c="left"}=e,{primaryActionDisabled:d=!1}=e;function q(u){G.call(this,s,u)}return s.$$set=u=>{a(8,e=M(M({},e),A(u))),"label"in u&&a(0,i=u.label),"menuLabel"in u&&a(1,o=u.menuLabel),"icon"in u&&a(2,_=u.icon),"id"in u&&a(3,l=u.id),"variant"in u&&a(4,f=u.variant),"disabled"in u&&a(5,m=u.disabled),"position"in u&&a(6,c=u.position),"primaryActionDisabled"in u&&a(7,d=u.primaryActionDisabled),"$$scope"in u&&a(11,t=u.$$scope)},e=A(e),[i,o,_,l,f,m,c,d,e,n,q,t]}class se extends B{constructor(e){super(),C(this,e,te,ee,E,{label:0,menuLabel:1,icon:2,id:3,variant:4,disabled:5,position:6,primaryActionDisabled:7})}}export{se as S}; diff --git a/ui/assets/local/_app/immutable/chunks/stores.14a97433.js b/ui/assets/local/_app/immutable/chunks/stores.0e7b7e35.js similarity index 69% rename from ui/assets/local/_app/immutable/chunks/stores.14a97433.js rename to ui/assets/local/_app/immutable/chunks/stores.0e7b7e35.js index eacfa07888..e3c94e7e87 100644 --- a/ui/assets/local/_app/immutable/chunks/stores.14a97433.js +++ b/ui/assets/local/_app/immutable/chunks/stores.0e7b7e35.js @@ -1 +1 @@ -import"./index.4e2fcbc7.js";import{d as t}from"./singletons.fb5f332e.js";const r=()=>{const e=t;return{page:{subscribe:e.page.subscribe},navigating:{subscribe:e.navigating.subscribe},updated:e.updated}},u={subscribe(e){return r().page.subscribe(e)}},c={subscribe(e){const s=r().updated;return c.check=s.check,s.subscribe(e)},check:()=>{throw new Error("Cannot check updated store before subscribing")}};export{u as p,c as u}; +import"./index.4e2fcbc7.js";import{d as t}from"./singletons.13b3836d.js";const r=()=>{const e=t;return{page:{subscribe:e.page.subscribe},navigating:{subscribe:e.navigating.subscribe},updated:e.updated}},u={subscribe(e){return r().page.subscribe(e)}},c={subscribe(e){const s=r().updated;return c.check=s.check,s.subscribe(e)},check:()=>{throw new Error("Cannot check updated store before subscribing")}};export{u as p,c as u}; diff --git a/ui/assets/local/_app/immutable/chunks/tab.33b6de7b.js b/ui/assets/local/_app/immutable/chunks/tab.32ab741b.js similarity index 98% rename from ui/assets/local/_app/immutable/chunks/tab.33b6de7b.js rename to ui/assets/local/_app/immutable/chunks/tab.32ab741b.js index ecadc7cc50..ca64ef5dcd 100644 --- a/ui/assets/local/_app/immutable/chunks/tab.33b6de7b.js +++ b/ui/assets/local/_app/immutable/chunks/tab.32ab741b.js @@ -1 +1 @@ -import{S as E,b as S,a as P,G as q,N as h,m as A,p as L,q as U,k as g,O as T,P as v,f as N,H as V,I as j,J as B,R as G,j as z,g as O,T as k,U as I,ae as Z,a6 as J,e as K,af as y,K as p,w,c as x,x as $,d as ee,ai as Q,L as R,Q as te,y as le,n as se}from"./index.4e2fcbc7.js";import{c as ae}from"./has.183130b0.js";import{w as F}from"./singletons.fb5f332e.js";function ie(s){let e,a,o;const t=s[4].default,i=q(t,s,s[3],null);let f=[{class:a="tab-list "+s[1]},{role:"tablist"},{"aria-label":s[0]},s[2]],n={};for(let l=0;l{e=h(h({},e),I(r)),a(2,t=k(e,o)),"label"in r&&a(0,n=r.label),"class"in r&&a(1,l=r.class),"$$scope"in r&&a(3,f=r.$$scope)},[n,l,t,f,i]}class be extends E{constructor(e){super(),S(this,e,ne,ie,P,{label:0,class:1})}}function ue(s){let e,a;const o=s[2].default,t=q(o,s,s[1],null);let i=[{class:"tabs"},s[0]],f={};for(let n=0;n{n.push(c),r.update(_=>_||c),J(()=>{const _=n.indexOf(c);n.splice(_,1),r.update(u=>u===c?n[_]||n[n.length-1]:u)})},registerPanel:c=>{l.push(c),d.update(_=>_||c),J(()=>{const _=l.indexOf(c);l.splice(_,1),d.update(u=>u===c?l[_]||l[l.length-1]:u)})},selectTab:c=>{const _=n.indexOf(c);r.set(c),d.set(l[_])},activeTab:r,activePanel:d}),s.$$set=c=>{e=h(h({},e),I(c)),a(0,t=k(e,o)),"$$scope"in c&&a(1,f=c.$$scope)},[t,f,i]}class me extends E{constructor(e){super(),S(this,e,fe,ue,P,{})}}function D(s){let e,a,o,t,i,f,n,l;const r=s[14].default,d=q(r,s,s[13],null);let c=[{role:"tab"},{class:"tab"},{"aria-selected":s[5]},{"aria-controls":s[3]},{tabindex:t=s[5]?0:-1},{id:s[1]},{href:s[2]},{"data-testid":i=s[1]??s[8]["data-testid"]},s[9]],_={};for(let u=0;ua(12,f=m)),W(d);const Y=()=>{X(d),C&&C()};return s.$$set=m=>{a(8,e=h(h({},e),I(m))),a(9,i=k(e,t)),"label"in m&&a(0,r=m.label),"id"in m&&a(1,d=m.id),"href"in m&&a(2,c=m.href),"panelId"in m&&a(3,_=m.panelId),"disabled"in m&&a(4,u=m.disabled),"active"in m&&a(10,b=m.active),"onClick"in m&&a(11,C=m.onClick),"$$scope"in m&&a(13,l=m.$$scope)},s.$$.update=()=>{s.$$.dirty&5122&&a(5,o=ae(b)?f===d:b)},e=I(e),[r,d,c,_,u,o,H,Y,e,i,b,C,f,l,n]}class he extends E{constructor(e){super(),S(this,e,re,oe,P,{label:0,id:1,href:2,panelId:3,disabled:4,active:10,onClick:11})}}export{me as T,be as a,he as b,M as c}; +import{S as E,b as S,a as P,G as q,N as h,m as A,p as L,q as U,k as g,O as T,P as v,f as N,H as V,I as j,J as B,R as G,j as z,g as O,T as k,U as I,ae as Z,a6 as J,e as K,af as y,K as p,w,c as x,x as $,d as ee,ai as Q,L as R,Q as te,y as le,n as se}from"./index.4e2fcbc7.js";import{c as ae}from"./has.183130b0.js";import{w as F}from"./singletons.13b3836d.js";function ie(s){let e,a,o;const t=s[4].default,i=q(t,s,s[3],null);let f=[{class:a="tab-list "+s[1]},{role:"tablist"},{"aria-label":s[0]},s[2]],n={};for(let l=0;l{e=h(h({},e),I(r)),a(2,t=k(e,o)),"label"in r&&a(0,n=r.label),"class"in r&&a(1,l=r.class),"$$scope"in r&&a(3,f=r.$$scope)},[n,l,t,f,i]}class be extends E{constructor(e){super(),S(this,e,ne,ie,P,{label:0,class:1})}}function ue(s){let e,a;const o=s[2].default,t=q(o,s,s[1],null);let i=[{class:"tabs"},s[0]],f={};for(let n=0;n{n.push(c),r.update(_=>_||c),J(()=>{const _=n.indexOf(c);n.splice(_,1),r.update(u=>u===c?n[_]||n[n.length-1]:u)})},registerPanel:c=>{l.push(c),d.update(_=>_||c),J(()=>{const _=l.indexOf(c);l.splice(_,1),d.update(u=>u===c?l[_]||l[l.length-1]:u)})},selectTab:c=>{const _=n.indexOf(c);r.set(c),d.set(l[_])},activeTab:r,activePanel:d}),s.$$set=c=>{e=h(h({},e),I(c)),a(0,t=k(e,o)),"$$scope"in c&&a(1,f=c.$$scope)},[t,f,i]}class me extends E{constructor(e){super(),S(this,e,fe,ue,P,{})}}function D(s){let e,a,o,t,i,f,n,l;const r=s[14].default,d=q(r,s,s[13],null);let c=[{role:"tab"},{class:"tab"},{"aria-selected":s[5]},{"aria-controls":s[3]},{tabindex:t=s[5]?0:-1},{id:s[1]},{href:s[2]},{"data-testid":i=s[1]??s[8]["data-testid"]},s[9]],_={};for(let u=0;ua(12,f=m)),W(d);const Y=()=>{X(d),C&&C()};return s.$$set=m=>{a(8,e=h(h({},e),I(m))),a(9,i=k(e,t)),"label"in m&&a(0,r=m.label),"id"in m&&a(1,d=m.id),"href"in m&&a(2,c=m.href),"panelId"in m&&a(3,_=m.panelId),"disabled"in m&&a(4,u=m.disabled),"active"in m&&a(10,b=m.active),"onClick"in m&&a(11,C=m.onClick),"$$scope"in m&&a(13,l=m.$$scope)},s.$$.update=()=>{s.$$.dirty&5122&&a(5,o=ae(b)?f===d:b)},e=I(e),[r,d,c,_,u,o,H,Y,e,i,b,C,f,l,n]}class he extends E{constructor(e){super(),S(this,e,re,oe,P,{label:0,id:1,href:2,panelId:3,disabled:4,active:10,onClick:11})}}export{me as T,be as a,he as b,M as c}; diff --git a/ui/assets/local/_app/immutable/chunks/time-format.88312c30.js b/ui/assets/local/_app/immutable/chunks/time-format.fa373b4c.js similarity index 99% rename from ui/assets/local/_app/immutable/chunks/time-format.88312c30.js rename to ui/assets/local/_app/immutable/chunks/time-format.fa373b4c.js index 63008d2fdc..0fff1eea10 100644 --- a/ui/assets/local/_app/immutable/chunks/time-format.88312c30.js +++ b/ui/assets/local/_app/immutable/chunks/time-format.fa373b4c.js @@ -1 +1 @@ -import{p as ra}from"./persist-store.2e269d08.js";import{r as Re,d as na,c as ia,t as H,a as Ta,g as ue,b as ha,e as oa,i as ba,f as ga,p as Ma,h as pa}from"./format-time.4f091e0e.js";function Ke(e,a){if(e==null)throw new TypeError("assign requires that input parameter not be null or undefined");for(var u in a)Object.prototype.hasOwnProperty.call(a,u)&&(e[u]=a[u]);return e}function ua(e){return Ke({},e)}var Je=1440,_a=2520,Ve=43200,Aa=86400;function ya(e,a,u){var l,v;Re(2,arguments);var s=oa(),i=(l=(v=u==null?void 0:u.locale)!==null&&v!==void 0?v:s.locale)!==null&&l!==void 0?l:na;if(!i.formatDistance)throw new RangeError("locale must contain formatDistance property");var t=ia(e,a);if(isNaN(t))throw new RangeError("Invalid time value");var r=Ke(ua(u),{addSuffix:Boolean(u==null?void 0:u.addSuffix),comparison:t}),n,c;t>0?(n=H(a),c=H(e)):(n=H(e),c=H(a));var g=Ta(c,n),y=(ue(c)-ue(n))/1e3,h=Math.round((g-y)/60),p;if(h<2)return u!=null&&u.includeSeconds?g<5?i.formatDistance("lessThanXSeconds",5,r):g<10?i.formatDistance("lessThanXSeconds",10,r):g<20?i.formatDistance("lessThanXSeconds",20,r):g<40?i.formatDistance("halfAMinute",0,r):g<60?i.formatDistance("lessThanXMinutes",1,r):i.formatDistance("xMinutes",1,r):h===0?i.formatDistance("lessThanXMinutes",1,r):i.formatDistance("xMinutes",h,r);if(h<45)return i.formatDistance("xMinutes",h,r);if(h<90)return i.formatDistance("aboutXHours",1,r);if(h0?(c=H(a),g=H(e)):(c=H(e),g=H(a));var y=String((s=u==null?void 0:u.roundingMethod)!==null&&s!==void 0?s:"round"),h;if(y==="floor")h=Math.floor;else if(y==="ceil")h=Math.ceil;else if(y==="round")h=Math.round;else throw new RangeError("roundingMethod must be 'floor', 'ceil' or 'round'");var p=g.getTime()-c.getTime(),M=p/je,T=ue(g)-ue(c),f=(p-T)/je,m=u==null?void 0:u.unit,o;if(m?o=String(m):M<1?o="second":M<60?o="minute":M1?"s":"")+" required, but only "+v.length+" present")}e.exports=a.default})(Ea,P);(function(e,a){Object.defineProperty(a,"__esModule",{value:!0}),a.default=s;var u=l(P);function l(i){return i&&i.__esModule?i:{default:i}}function v(i){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?v=function(r){return typeof r}:v=function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},v(i)}function s(i){return(0,u.default)(1,arguments),i instanceof Date||v(i)==="object"&&Object.prototype.toString.call(i)==="[object Date]"}e.exports=a.default})(Pa,de);var C={},Ca={get exports(){return C},set exports(e){C=e}};(function(e,a){Object.defineProperty(a,"__esModule",{value:!0}),a.default=s;var u=l(P);function l(i){return i&&i.__esModule?i:{default:i}}function v(i){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?v=function(r){return typeof r}:v=function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},v(i)}function s(i){(0,u.default)(1,arguments);var t=Object.prototype.toString.call(i);return i instanceof Date||v(i)==="object"&&t==="[object Date]"?new Date(i.getTime()):typeof i=="number"||t==="[object Number]"?new Date(i):((typeof i=="string"||t==="[object String]")&&typeof console<"u"&&(console.warn("Starting with v2.0.0-beta.1 date-fns doesn't accept strings as date arguments. Please use `parseISO` to parse strings. See: https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#string-arguments"),console.warn(new Error().stack)),new Date(NaN))}e.exports=a.default})(Ca,C);(function(e,a){Object.defineProperty(a,"__esModule",{value:!0}),a.default=i;var u=s(de),l=s(C),v=s(P);function s(t){return t&&t.__esModule?t:{default:t}}function i(t){if((0,v.default)(1,arguments),!(0,u.default)(t)&&typeof t!="number")return!1;var r=(0,l.default)(t);return!isNaN(Number(r))}e.exports=a.default})(Oa,le);var ce={},Ga={get exports(){return ce},set exports(e){ce=e}},me={},ka={get exports(){return me},set exports(e){me=e}},U={},Na={get exports(){return U},set exports(e){U=e}};(function(e,a){Object.defineProperty(a,"__esModule",{value:!0}),a.default=u;function u(l){if(l===null||l===!0||l===!1)return NaN;var v=Number(l);return isNaN(v)?v:v<0?Math.ceil(v):Math.floor(v)}e.exports=a.default})(Na,U);(function(e,a){Object.defineProperty(a,"__esModule",{value:!0}),a.default=i;var u=s(U),l=s(C),v=s(P);function s(t){return t&&t.__esModule?t:{default:t}}function i(t,r){(0,v.default)(2,arguments);var n=(0,l.default)(t).getTime(),c=(0,u.default)(r);return new Date(n+c)}e.exports=a.default})(ka,me);(function(e,a){Object.defineProperty(a,"__esModule",{value:!0}),a.default=i;var u=s(me),l=s(P),v=s(U);function s(t){return t&&t.__esModule?t:{default:t}}function i(t,r){(0,l.default)(2,arguments);var n=(0,v.default)(r);return(0,u.default)(t,-n)}e.exports=a.default})(Ga,ce);var ve={},Ia={get exports(){return ve},set exports(e){ve=e}},Te={},Ua={get exports(){return Te},set exports(e){Te=e}};(function(e,a){Object.defineProperty(a,"__esModule",{value:!0}),a.default=i;var u=v(C),l=v(P);function v(t){return t&&t.__esModule?t:{default:t}}var s=864e5;function i(t){(0,l.default)(1,arguments);var r=(0,u.default)(t),n=r.getTime();r.setUTCMonth(0,1),r.setUTCHours(0,0,0,0);var c=r.getTime(),g=n-c;return Math.floor(g/s)+1}e.exports=a.default})(Ua,Te);var he={},Ya={get exports(){return he},set exports(e){he=e}},$={},Wa={get exports(){return $},set exports(e){$=e}};(function(e,a){Object.defineProperty(a,"__esModule",{value:!0}),a.default=s;var u=v(C),l=v(P);function v(i){return i&&i.__esModule?i:{default:i}}function s(i){(0,l.default)(1,arguments);var t=1,r=(0,u.default)(i),n=r.getUTCDay(),c=(n=g.getTime()?n+1:r.getTime()>=h.getTime()?n:n-1}e.exports=a.default})(Ha,K);(function(e,a){Object.defineProperty(a,"__esModule",{value:!0}),a.default=i;var u=s(K),l=s($),v=s(P);function s(t){return t&&t.__esModule?t:{default:t}}function i(t){(0,v.default)(1,arguments);var r=(0,u.default)(t),n=new Date(0);n.setUTCFullYear(r,0,4),n.setUTCHours(0,0,0,0);var c=(0,l.default)(n);return c}e.exports=a.default})(Ra,be);(function(e,a){Object.defineProperty(a,"__esModule",{value:!0}),a.default=r;var u=i(C),l=i($),v=i(be),s=i(P);function i(n){return n&&n.__esModule?n:{default:n}}var t=6048e5;function r(n){(0,s.default)(1,arguments);var c=(0,u.default)(n),g=(0,l.default)(c).getTime()-(0,v.default)(c).getTime();return Math.round(g/t)+1}e.exports=a.default})(Ya,he);var ge={},La={get exports(){return ge},set exports(e){ge=e}},B={},Fa={get exports(){return B},set exports(e){B=e}},q={};Object.defineProperty(q,"__esModule",{value:!0});q.getDefaultOptions=qa;q.setDefaultOptions=$a;var sa={};function qa(){return sa}function $a(e){sa=e}(function(e,a){Object.defineProperty(a,"__esModule",{value:!0}),a.default=t;var u=i(C),l=i(P),v=i(U),s=q;function i(r){return r&&r.__esModule?r:{default:r}}function t(r,n){var c,g,y,h,p,M,T,f;(0,l.default)(1,arguments);var m=(0,s.getDefaultOptions)(),o=(0,v.default)((c=(g=(y=(h=n==null?void 0:n.weekStartsOn)!==null&&h!==void 0?h:n==null||(p=n.locale)===null||p===void 0||(M=p.options)===null||M===void 0?void 0:M.weekStartsOn)!==null&&y!==void 0?y:m.weekStartsOn)!==null&&g!==void 0?g:(T=m.locale)===null||T===void 0||(f=T.options)===null||f===void 0?void 0:f.weekStartsOn)!==null&&c!==void 0?c:0);if(!(o>=0&&o<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var d=(0,u.default)(r),b=d.getUTCDay(),D=(b=1&&D<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var S=new Date(0);S.setUTCFullYear(d+1,0,D),S.setUTCHours(0,0,0,0);var w=(0,v.default)(S,c),_=new Date(0);_.setUTCFullYear(d,0,D),_.setUTCHours(0,0,0,0);var A=(0,v.default)(_,c);return o.getTime()>=w.getTime()?d+1:o.getTime()>=A.getTime()?d:d-1}e.exports=a.default})(Xa,Q);(function(e,a){Object.defineProperty(a,"__esModule",{value:!0}),a.default=r;var u=t(Q),l=t(P),v=t(B),s=t(U),i=q;function t(n){return n&&n.__esModule?n:{default:n}}function r(n,c){var g,y,h,p,M,T,f,m;(0,l.default)(1,arguments);var o=(0,i.getDefaultOptions)(),d=(0,s.default)((g=(y=(h=(p=c==null?void 0:c.firstWeekContainsDate)!==null&&p!==void 0?p:c==null||(M=c.locale)===null||M===void 0||(T=M.options)===null||T===void 0?void 0:T.firstWeekContainsDate)!==null&&h!==void 0?h:o.firstWeekContainsDate)!==null&&y!==void 0?y:(f=o.locale)===null||f===void 0||(m=f.options)===null||m===void 0?void 0:m.firstWeekContainsDate)!==null&&g!==void 0?g:1),b=(0,u.default)(n,c),D=new Date(0);D.setUTCFullYear(b,0,d),D.setUTCHours(0,0,0,0);var S=(0,v.default)(D,c);return S}e.exports=a.default})(Ba,Me);(function(e,a){Object.defineProperty(a,"__esModule",{value:!0}),a.default=r;var u=i(C),l=i(B),v=i(Me),s=i(P);function i(n){return n&&n.__esModule?n:{default:n}}var t=6048e5;function r(n,c){(0,s.default)(1,arguments);var g=(0,u.default)(n),y=(0,l.default)(g,c).getTime()-(0,v.default)(g,c).getTime();return Math.round(y/t)+1}e.exports=a.default})(La,ge);var J={},Za={get exports(){return J},set exports(e){J=e}};(function(e,a){Object.defineProperty(a,"__esModule",{value:!0}),a.default=u;function u(l,v){for(var s=l<0?"-":"",i=Math.abs(l).toString();i.length0?n:1-n;return(0,u.default)(r==="yy"?c%100:c,r.length)},M:function(t,r){var n=t.getUTCMonth();return r==="M"?String(n+1):(0,u.default)(n+1,2)},d:function(t,r){return(0,u.default)(t.getUTCDate(),r.length)},a:function(t,r){var n=t.getUTCHours()/12>=1?"pm":"am";switch(r){case"a":case"aa":return n.toUpperCase();case"aaa":return n;case"aaaaa":return n[0];case"aaaa":default:return n==="am"?"a.m.":"p.m."}},h:function(t,r){return(0,u.default)(t.getUTCHours()%12||12,r.length)},H:function(t,r){return(0,u.default)(t.getUTCHours(),r.length)},m:function(t,r){return(0,u.default)(t.getUTCMinutes(),r.length)},s:function(t,r){return(0,u.default)(t.getUTCSeconds(),r.length)},S:function(t,r){var n=r.length,c=t.getUTCMilliseconds(),g=Math.floor(c*Math.pow(10,n-3));return(0,u.default)(g,r.length)}},s=v;a.default=s,e.exports=a.default})(Va,pe);(function(e,a){Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0;var u=n(Te),l=n(he),v=n(K),s=n(ge),i=n(Q),t=n(J),r=n(pe);function n(T){return T&&T.__esModule?T:{default:T}}var c={am:"am",pm:"pm",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},g={G:function(f,m,o){var d=f.getUTCFullYear()>0?1:0;switch(m){case"G":case"GG":case"GGG":return o.era(d,{width:"abbreviated"});case"GGGGG":return o.era(d,{width:"narrow"});case"GGGG":default:return o.era(d,{width:"wide"})}},y:function(f,m,o){if(m==="yo"){var d=f.getUTCFullYear(),b=d>0?d:1-d;return o.ordinalNumber(b,{unit:"year"})}return r.default.y(f,m)},Y:function(f,m,o,d){var b=(0,i.default)(f,d),D=b>0?b:1-b;if(m==="YY"){var S=D%100;return(0,t.default)(S,2)}return m==="Yo"?o.ordinalNumber(D,{unit:"year"}):(0,t.default)(D,m.length)},R:function(f,m){var o=(0,v.default)(f);return(0,t.default)(o,m.length)},u:function(f,m){var o=f.getUTCFullYear();return(0,t.default)(o,m.length)},Q:function(f,m,o){var d=Math.ceil((f.getUTCMonth()+1)/3);switch(m){case"Q":return String(d);case"QQ":return(0,t.default)(d,2);case"Qo":return o.ordinalNumber(d,{unit:"quarter"});case"QQQ":return o.quarter(d,{width:"abbreviated",context:"formatting"});case"QQQQQ":return o.quarter(d,{width:"narrow",context:"formatting"});case"QQQQ":default:return o.quarter(d,{width:"wide",context:"formatting"})}},q:function(f,m,o){var d=Math.ceil((f.getUTCMonth()+1)/3);switch(m){case"q":return String(d);case"qq":return(0,t.default)(d,2);case"qo":return o.ordinalNumber(d,{unit:"quarter"});case"qqq":return o.quarter(d,{width:"abbreviated",context:"standalone"});case"qqqqq":return o.quarter(d,{width:"narrow",context:"standalone"});case"qqqq":default:return o.quarter(d,{width:"wide",context:"standalone"})}},M:function(f,m,o){var d=f.getUTCMonth();switch(m){case"M":case"MM":return r.default.M(f,m);case"Mo":return o.ordinalNumber(d+1,{unit:"month"});case"MMM":return o.month(d,{width:"abbreviated",context:"formatting"});case"MMMMM":return o.month(d,{width:"narrow",context:"formatting"});case"MMMM":default:return o.month(d,{width:"wide",context:"formatting"})}},L:function(f,m,o){var d=f.getUTCMonth();switch(m){case"L":return String(d+1);case"LL":return(0,t.default)(d+1,2);case"Lo":return o.ordinalNumber(d+1,{unit:"month"});case"LLL":return o.month(d,{width:"abbreviated",context:"standalone"});case"LLLLL":return o.month(d,{width:"narrow",context:"standalone"});case"LLLL":default:return o.month(d,{width:"wide",context:"standalone"})}},w:function(f,m,o,d){var b=(0,s.default)(f,d);return m==="wo"?o.ordinalNumber(b,{unit:"week"}):(0,t.default)(b,m.length)},I:function(f,m,o){var d=(0,l.default)(f);return m==="Io"?o.ordinalNumber(d,{unit:"week"}):(0,t.default)(d,m.length)},d:function(f,m,o){return m==="do"?o.ordinalNumber(f.getUTCDate(),{unit:"date"}):r.default.d(f,m)},D:function(f,m,o){var d=(0,u.default)(f);return m==="Do"?o.ordinalNumber(d,{unit:"dayOfYear"}):(0,t.default)(d,m.length)},E:function(f,m,o){var d=f.getUTCDay();switch(m){case"E":case"EE":case"EEE":return o.day(d,{width:"abbreviated",context:"formatting"});case"EEEEE":return o.day(d,{width:"narrow",context:"formatting"});case"EEEEEE":return o.day(d,{width:"short",context:"formatting"});case"EEEE":default:return o.day(d,{width:"wide",context:"formatting"})}},e:function(f,m,o,d){var b=f.getUTCDay(),D=(b-d.weekStartsOn+8)%7||7;switch(m){case"e":return String(D);case"ee":return(0,t.default)(D,2);case"eo":return o.ordinalNumber(D,{unit:"day"});case"eee":return o.day(b,{width:"abbreviated",context:"formatting"});case"eeeee":return o.day(b,{width:"narrow",context:"formatting"});case"eeeeee":return o.day(b,{width:"short",context:"formatting"});case"eeee":default:return o.day(b,{width:"wide",context:"formatting"})}},c:function(f,m,o,d){var b=f.getUTCDay(),D=(b-d.weekStartsOn+8)%7||7;switch(m){case"c":return String(D);case"cc":return(0,t.default)(D,m.length);case"co":return o.ordinalNumber(D,{unit:"day"});case"ccc":return o.day(b,{width:"abbreviated",context:"standalone"});case"ccccc":return o.day(b,{width:"narrow",context:"standalone"});case"cccccc":return o.day(b,{width:"short",context:"standalone"});case"cccc":default:return o.day(b,{width:"wide",context:"standalone"})}},i:function(f,m,o){var d=f.getUTCDay(),b=d===0?7:d;switch(m){case"i":return String(b);case"ii":return(0,t.default)(b,m.length);case"io":return o.ordinalNumber(b,{unit:"day"});case"iii":return o.day(d,{width:"abbreviated",context:"formatting"});case"iiiii":return o.day(d,{width:"narrow",context:"formatting"});case"iiiiii":return o.day(d,{width:"short",context:"formatting"});case"iiii":default:return o.day(d,{width:"wide",context:"formatting"})}},a:function(f,m,o){var d=f.getUTCHours(),b=d/12>=1?"pm":"am";switch(m){case"a":case"aa":return o.dayPeriod(b,{width:"abbreviated",context:"formatting"});case"aaa":return o.dayPeriod(b,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return o.dayPeriod(b,{width:"narrow",context:"formatting"});case"aaaa":default:return o.dayPeriod(b,{width:"wide",context:"formatting"})}},b:function(f,m,o){var d=f.getUTCHours(),b;switch(d===12?b=c.noon:d===0?b=c.midnight:b=d/12>=1?"pm":"am",m){case"b":case"bb":return o.dayPeriod(b,{width:"abbreviated",context:"formatting"});case"bbb":return o.dayPeriod(b,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return o.dayPeriod(b,{width:"narrow",context:"formatting"});case"bbbb":default:return o.dayPeriod(b,{width:"wide",context:"formatting"})}},B:function(f,m,o){var d=f.getUTCHours(),b;switch(d>=17?b=c.evening:d>=12?b=c.afternoon:d>=4?b=c.morning:b=c.night,m){case"B":case"BB":case"BBB":return o.dayPeriod(b,{width:"abbreviated",context:"formatting"});case"BBBBB":return o.dayPeriod(b,{width:"narrow",context:"formatting"});case"BBBB":default:return o.dayPeriod(b,{width:"wide",context:"formatting"})}},h:function(f,m,o){if(m==="ho"){var d=f.getUTCHours()%12;return d===0&&(d=12),o.ordinalNumber(d,{unit:"hour"})}return r.default.h(f,m)},H:function(f,m,o){return m==="Ho"?o.ordinalNumber(f.getUTCHours(),{unit:"hour"}):r.default.H(f,m)},K:function(f,m,o){var d=f.getUTCHours()%12;return m==="Ko"?o.ordinalNumber(d,{unit:"hour"}):(0,t.default)(d,m.length)},k:function(f,m,o){var d=f.getUTCHours();return d===0&&(d=24),m==="ko"?o.ordinalNumber(d,{unit:"hour"}):(0,t.default)(d,m.length)},m:function(f,m,o){return m==="mo"?o.ordinalNumber(f.getUTCMinutes(),{unit:"minute"}):r.default.m(f,m)},s:function(f,m,o){return m==="so"?o.ordinalNumber(f.getUTCSeconds(),{unit:"second"}):r.default.s(f,m)},S:function(f,m){return r.default.S(f,m)},X:function(f,m,o,d){var b=d._originalDate||f,D=b.getTimezoneOffset();if(D===0)return"Z";switch(m){case"X":return h(D);case"XXXX":case"XX":return p(D);case"XXXXX":case"XXX":default:return p(D,":")}},x:function(f,m,o,d){var b=d._originalDate||f,D=b.getTimezoneOffset();switch(m){case"x":return h(D);case"xxxx":case"xx":return p(D);case"xxxxx":case"xxx":default:return p(D,":")}},O:function(f,m,o,d){var b=d._originalDate||f,D=b.getTimezoneOffset();switch(m){case"O":case"OO":case"OOO":return"GMT"+y(D,":");case"OOOO":default:return"GMT"+p(D,":")}},z:function(f,m,o,d){var b=d._originalDate||f,D=b.getTimezoneOffset();switch(m){case"z":case"zz":case"zzz":return"GMT"+y(D,":");case"zzzz":default:return"GMT"+p(D,":")}},t:function(f,m,o,d){var b=d._originalDate||f,D=Math.floor(b.getTime()/1e3);return(0,t.default)(D,m.length)},T:function(f,m,o,d){var b=d._originalDate||f,D=b.getTime();return(0,t.default)(D,m.length)}};function y(T,f){var m=T>0?"-":"+",o=Math.abs(T),d=Math.floor(o/60),b=o%60;if(b===0)return m+String(d);var D=f||"";return m+String(d)+D+(0,t.default)(b,2)}function h(T,f){if(T%60===0){var m=T>0?"-":"+";return m+(0,t.default)(Math.abs(T)/60,2)}return p(T,f)}function p(T,f){var m=f||"",o=T>0?"-":"+",d=Math.abs(T),b=(0,t.default)(Math.floor(d/60),2),D=(0,t.default)(d%60,2);return o+b+m+D}var M=g;a.default=M,e.exports=a.default})(Ia,ve);var _e={},Ka={get exports(){return _e},set exports(e){_e=e}};(function(e,a){Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0;var u=function(r,n){switch(r){case"P":return n.date({width:"short"});case"PP":return n.date({width:"medium"});case"PPP":return n.date({width:"long"});case"PPPP":default:return n.date({width:"full"})}},l=function(r,n){switch(r){case"p":return n.time({width:"short"});case"pp":return n.time({width:"medium"});case"ppp":return n.time({width:"long"});case"pppp":default:return n.time({width:"full"})}},v=function(r,n){var c=r.match(/(P+)(p+)?/)||[],g=c[1],y=c[2];if(!y)return u(r,n);var h;switch(g){case"P":h=n.dateTime({width:"short"});break;case"PP":h=n.dateTime({width:"medium"});break;case"PPP":h=n.dateTime({width:"long"});break;case"PPPP":default:h=n.dateTime({width:"full"});break}return h.replace("{{date}}",u(g,n)).replace("{{time}}",l(y,n))},s={p:l,P:v},i=s;a.default=i,e.exports=a.default})(Ka,_e);var j={},Qa={get exports(){return j},set exports(e){j=e}};(function(e,a){Object.defineProperty(a,"__esModule",{value:!0}),a.default=u;function u(l){var v=new Date(Date.UTC(l.getFullYear(),l.getMonth(),l.getDate(),l.getHours(),l.getMinutes(),l.getSeconds(),l.getMilliseconds()));return v.setUTCFullYear(l.getFullYear()),l.getTime()-v.getTime()}e.exports=a.default})(Qa,j);var ne={};Object.defineProperty(ne,"__esModule",{value:!0});ne.isProtectedDayOfYearToken=et;ne.isProtectedWeekYearToken=at;ne.throwProtectedError=tt;var Ja=["D","DD"],ja=["YY","YYYY"];function et(e){return Ja.indexOf(e)!==-1}function at(e){return ja.indexOf(e)!==-1}function tt(e,a,u){if(e==="YYYY")throw new RangeError("Use `yyyy` instead of `YYYY` (in `".concat(a,"`) for formatting years to the input `").concat(u,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if(e==="YY")throw new RangeError("Use `yy` instead of `YY` (in `".concat(a,"`) for formatting years to the input `").concat(u,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if(e==="D")throw new RangeError("Use `d` instead of `D` (in `".concat(a,"`) for formatting days of the month to the input `").concat(u,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if(e==="DD")throw new RangeError("Use `dd` instead of `DD` (in `".concat(a,"`) for formatting days of the month to the input `").concat(u,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"))}var Ae={},rt={get exports(){return Ae},set exports(e){Ae=e}},ye={},nt={get exports(){return ye},set exports(e){ye=e}},we={},it={get exports(){return we},set exports(e){we=e}};(function(e,a){Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0;var u={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}},l=function(i,t,r){var n,c=u[i];return typeof c=="string"?n=c:t===1?n=c.one:n=c.other.replace("{{count}}",t.toString()),r!=null&&r.addSuffix?r.comparison&&r.comparison>0?"in "+n:n+" ago":n},v=l;a.default=v,e.exports=a.default})(it,we);var De={},ot={get exports(){return De},set exports(e){De=e}},xe={},ut={get exports(){return xe},set exports(e){xe=e}};(function(e,a){Object.defineProperty(a,"__esModule",{value:!0}),a.default=u;function u(l){return function(){var v=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},s=v.width?String(v.width):l.defaultWidth,i=l.formats[s]||l.formats[l.defaultWidth];return i}}e.exports=a.default})(ut,xe);(function(e,a){Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0;var u=l(xe);function l(n){return n&&n.__esModule?n:{default:n}}var v={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},s={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},i={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},t={date:(0,u.default)({formats:v,defaultWidth:"full"}),time:(0,u.default)({formats:s,defaultWidth:"full"}),dateTime:(0,u.default)({formats:i,defaultWidth:"full"})},r=t;a.default=r,e.exports=a.default})(ot,De);var Se={},st={get exports(){return Se},set exports(e){Se=e}};(function(e,a){Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0;var u={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},l=function(i,t,r,n){return u[i]},v=l;a.default=v,e.exports=a.default})(st,Se);var ze={},ft={get exports(){return ze},set exports(e){ze=e}},Oe={},lt={get exports(){return Oe},set exports(e){Oe=e}};(function(e,a){Object.defineProperty(a,"__esModule",{value:!0}),a.default=u;function u(l){return function(v,s){var i=s!=null&&s.context?String(s.context):"standalone",t;if(i==="formatting"&&l.formattingValues){var r=l.defaultFormattingWidth||l.defaultWidth,n=s!=null&&s.width?String(s.width):r;t=l.formattingValues[n]||l.formattingValues[r]}else{var c=l.defaultWidth,g=s!=null&&s.width?String(s.width):l.defaultWidth;t=l.values[g]||l.values[c]}var y=l.argumentCallback?l.argumentCallback(v):v;return t[y]}}e.exports=a.default})(lt,Oe);(function(e,a){Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0;var u=l(Oe);function l(h){return h&&h.__esModule?h:{default:h}}var v={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},s={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},i={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},t={narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},r={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},n={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},c=function(p,M){var T=Number(p),f=T%100;if(f>20||f<10)switch(f%10){case 1:return T+"st";case 2:return T+"nd";case 3:return T+"rd"}return T+"th"},g={ordinalNumber:c,era:(0,u.default)({values:v,defaultWidth:"wide"}),quarter:(0,u.default)({values:s,defaultWidth:"wide",argumentCallback:function(p){return p-1}}),month:(0,u.default)({values:i,defaultWidth:"wide"}),day:(0,u.default)({values:t,defaultWidth:"wide"}),dayPeriod:(0,u.default)({values:r,defaultWidth:"wide",formattingValues:n,defaultFormattingWidth:"wide"})},y=g;a.default=y,e.exports=a.default})(ft,ze);var Pe={},dt={get exports(){return Pe},set exports(e){Pe=e}},Ee={},ct={get exports(){return Ee},set exports(e){Ee=e}};(function(e,a){Object.defineProperty(a,"__esModule",{value:!0}),a.default=u;function u(s){return function(i){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=t.width,n=r&&s.matchPatterns[r]||s.matchPatterns[s.defaultMatchWidth],c=i.match(n);if(!c)return null;var g=c[0],y=r&&s.parsePatterns[r]||s.parsePatterns[s.defaultParseWidth],h=Array.isArray(y)?v(y,function(T){return T.test(g)}):l(y,function(T){return T.test(g)}),p;p=s.valueCallback?s.valueCallback(h):h,p=t.valueCallback?t.valueCallback(p):p;var M=i.slice(g.length);return{value:p,rest:M}}}function l(s,i){for(var t in s)if(s.hasOwnProperty(t)&&i(s[t]))return t}function v(s,i){for(var t=0;t1&&arguments[1]!==void 0?arguments[1]:{},i=v.match(l.matchPattern);if(!i)return null;var t=i[0],r=v.match(l.parsePattern);if(!r)return null;var n=l.valueCallback?l.valueCallback(r[0]):r[0];n=s.valueCallback?s.valueCallback(n):n;var c=v.slice(t.length);return{value:n,rest:c}}}e.exports=a.default})(mt,Ce);(function(e,a){Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0;var u=v(Ee),l=v(Ce);function v(o){return o&&o.__esModule?o:{default:o}}var s=/^(\d+)(th|st|nd|rd)?/i,i=/\d+/i,t={narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},r={any:[/^b/i,/^(a|c)/i]},n={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},c={any:[/1/i,/2/i,/3/i,/4/i]},g={narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},y={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},h={narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},p={narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},M={narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},T={any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},f={ordinalNumber:(0,l.default)({matchPattern:s,parsePattern:i,valueCallback:function(d){return parseInt(d,10)}}),era:(0,u.default)({matchPatterns:t,defaultMatchWidth:"wide",parsePatterns:r,defaultParseWidth:"any"}),quarter:(0,u.default)({matchPatterns:n,defaultMatchWidth:"wide",parsePatterns:c,defaultParseWidth:"any",valueCallback:function(d){return d+1}}),month:(0,u.default)({matchPatterns:g,defaultMatchWidth:"wide",parsePatterns:y,defaultParseWidth:"any"}),day:(0,u.default)({matchPatterns:h,defaultMatchWidth:"wide",parsePatterns:p,defaultParseWidth:"any"}),dayPeriod:(0,u.default)({matchPatterns:M,defaultMatchWidth:"any",parsePatterns:T,defaultParseWidth:"any"})},m=f;a.default=m,e.exports=a.default})(dt,Pe);(function(e,a){Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0;var u=t(we),l=t(De),v=t(Se),s=t(ze),i=t(Pe);function t(c){return c&&c.__esModule?c:{default:c}}var r={code:"en-US",formatDistance:u.default,formatLong:l.default,formatRelative:v.default,localize:s.default,match:i.default,options:{weekStartsOn:0,firstWeekContainsDate:1}},n=r;a.default=n,e.exports=a.default})(nt,ye);(function(e,a){Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0;var u=l(ye);function l(s){return s&&s.__esModule?s:{default:s}}var v=u.default;a.default=v,e.exports=a.default})(rt,Ae);(function(e,a){Object.defineProperty(a,"__esModule",{value:!0}),a.default=o;var u=h(le),l=h(ce),v=h(C),s=h(ve),i=h(_e),t=h(j),r=ne,n=h(U),c=h(P),g=q,y=h(Ae);function h(b){return b&&b.__esModule?b:{default:b}}var p=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,M=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,T=/^'([^]*?)'?$/,f=/''/g,m=/[a-zA-Z]/;function o(b,D,S){var w,_,A,x,z,O,G,Y,k,W,N,I,He,Le,Fe,qe,$e,Be;(0,c.default)(2,arguments);var la=String(D),X=(0,g.getDefaultOptions)(),Z=(w=(_=S==null?void 0:S.locale)!==null&&_!==void 0?_:X.locale)!==null&&w!==void 0?w:y.default,Xe=(0,n.default)((A=(x=(z=(O=S==null?void 0:S.firstWeekContainsDate)!==null&&O!==void 0?O:S==null||(G=S.locale)===null||G===void 0||(Y=G.options)===null||Y===void 0?void 0:Y.firstWeekContainsDate)!==null&&z!==void 0?z:X.firstWeekContainsDate)!==null&&x!==void 0?x:(k=X.locale)===null||k===void 0||(W=k.options)===null||W===void 0?void 0:W.firstWeekContainsDate)!==null&&A!==void 0?A:1);if(!(Xe>=1&&Xe<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var Ze=(0,n.default)((N=(I=(He=(Le=S==null?void 0:S.weekStartsOn)!==null&&Le!==void 0?Le:S==null||(Fe=S.locale)===null||Fe===void 0||(qe=Fe.options)===null||qe===void 0?void 0:qe.weekStartsOn)!==null&&He!==void 0?He:X.weekStartsOn)!==null&&I!==void 0?I:($e=X.locale)===null||$e===void 0||(Be=$e.options)===null||Be===void 0?void 0:Be.weekStartsOn)!==null&&N!==void 0?N:0);if(!(Ze>=0&&Ze<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");if(!Z.localize)throw new RangeError("locale must contain localize property");if(!Z.formatLong)throw new RangeError("locale must contain formatLong property");var ie=(0,v.default)(b);if(!(0,u.default)(ie))throw new RangeError("Invalid time value");var da=(0,t.default)(ie),ca=(0,l.default)(ie,da),ma={firstWeekContainsDate:Xe,weekStartsOn:Ze,locale:Z,_originalDate:ie},va=la.match(M).map(function(E){var R=E[0];if(R==="p"||R==="P"){var oe=i.default[R];return oe(E,Z.formatLong)}return E}).join("").match(p).map(function(E){if(E==="''")return"'";var R=E[0];if(R==="'")return d(E);var oe=s.default[R];if(oe)return!(S!=null&&S.useAdditionalWeekYearTokens)&&(0,r.isProtectedWeekYearToken)(E)&&(0,r.throwProtectedError)(E,D,String(b)),!(S!=null&&S.useAdditionalDayOfYearTokens)&&(0,r.isProtectedDayOfYearToken)(E)&&(0,r.throwProtectedError)(E,D,String(b)),oe(ca,E,Z.localize,ma);if(R.match(m))throw new RangeError("Format string contains an unescaped latin alphabet character `"+R+"`");return E}).join("");return va}function d(b){var D=b.match(T);return D?D[1].replace(f,"'"):b}e.exports=a.default})(za,fe);var Ge={},vt={get exports(){return Ge},set exports(e){Ge=e}},ke={},Tt={get exports(){return ke},set exports(e){ke=e}};(function(e,a){Object.defineProperty(a,"__esModule",{value:!0}),a.default=u;function u(i,t,r){var n=s(i,r.timeZone,r.locale);return n.formatToParts?l(n,t):v(n,t)}function l(i,t){for(var r=i.formatToParts(t),n=r.length-1;n>=0;--n)if(r[n].type==="timeZoneName")return r[n].value}function v(i,t){var r=i.format(t).replace(/\u200E/g,""),n=/ [\w-+ ]+$/.exec(r);return n?n[0].substr(1):""}function s(i,t,r){if(r&&!r.code)throw new Error("date-fns-tz error: Please set a language code on the locale object imported from date-fns, e.g. `locale.code = 'en-US'`");return new Intl.DateTimeFormat(r?[r.code,"en-US"]:void 0,{timeZone:t,timeZoneName:i})}e.exports=a.default})(Tt,ke);var L={},ht={get exports(){return L},set exports(e){L=e}},Ne={},bt={get exports(){return Ne},set exports(e){Ne=e}};(function(e,a){Object.defineProperty(a,"__esModule",{value:!0}),a.default=u;function u(r,n){var c=t(n);return c.formatToParts?v(c,r):s(c,r)}var l={year:0,month:1,day:2,hour:3,minute:4,second:5};function v(r,n){try{for(var c=r.formatToParts(n),g=[],y=0;y=0&&(g[h]=parseInt(c[y].value,10))}return g}catch(p){if(p instanceof RangeError)return[NaN];throw p}}function s(r,n){var c=r.format(n).replace(/\u200E/g,""),g=/(\d+)\/(\d+)\/(\d+),? (\d+):(\d+):(\d+)/.exec(c);return[g[3],g[1],g[2],g[4],g[5],g[6]]}var i={};function t(r){if(!i[r]){var n=new Intl.DateTimeFormat("en-US",{hour12:!1,timeZone:"America/New_York",year:"numeric",month:"numeric",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit"}).format(new Date("2014-06-25T04:00:00.123Z")),c=n==="06/25/2014, 00:00:00"||n==="‎06‎/‎25‎/‎2014‎ ‎00‎:‎00‎:‎00";i[r]=c?new Intl.DateTimeFormat("en-US",{hour12:!1,timeZone:r,year:"numeric",month:"numeric",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit"}):new Intl.DateTimeFormat("en-US",{hourCycle:"h23",timeZone:r,year:"numeric",month:"numeric",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit"})}return i[r]}e.exports=a.default})(bt,Ne);var ee={},gt={get exports(){return ee},set exports(e){ee=e}};(function(e,a){Object.defineProperty(a,"__esModule",{value:!0}),a.default=u;function u(l,v,s,i,t,r,n){var c=new Date(0);return c.setUTCFullYear(l,v,s),c.setUTCHours(i,t,r,n),c}e.exports=a.default})(gt,ee);(function(e,a){Object.defineProperty(a,"__esModule",{value:!0}),a.default=r;var u=v(Ne),l=v(ee);function v(M){return M&&M.__esModule?M:{default:M}}var s=36e5,i=6e4,t={timezone:/([Z+-].*)$/,timezoneZ:/^(Z)$/,timezoneHH:/^([+-]\d{2})$/,timezoneHHMM:/^([+-]\d{2}):?(\d{2})$/};function r(M,T,f){var m,o;if(M===""||(m=t.timezoneZ.exec(M),m))return 0;var d;if(m=t.timezoneHH.exec(M),m)return d=parseInt(m[1],10),y(d)?-(d*s):NaN;if(m=t.timezoneHHMM.exec(M),m){d=parseInt(m[1],10);var b=parseInt(m[2],10);return y(d,b)?(o=Math.abs(d)*s+b*i,d>0?-o:o):NaN}if(p(M)){T=new Date(T||Date.now());var D=f?T:n(T),S=c(D,M),w=f?S:g(T,S,M);return-w}return NaN}function n(M){return(0,l.default)(M.getFullYear(),M.getMonth(),M.getDate(),M.getHours(),M.getMinutes(),M.getSeconds(),M.getMilliseconds())}function c(M,T){var f=(0,u.default)(M,T),m=(0,l.default)(f[0],f[1]-1,f[2],f[3]%24,f[4],f[5],0).getTime(),o=M.getTime(),d=o%1e3;return o-=d>=0?d:1e3+d,m-o}function g(M,T,f){var m=M.getTime(),o=m-T,d=c(new Date(o),f);if(T===d)return T;o-=d-T;var b=c(new Date(o),f);return d===b?d:Math.max(d,b)}function y(M,T){return-23<=M&&M<=23&&(T==null||0<=T&&T<=59)}var h={};function p(M){if(h[M])return!0;try{return new Intl.DateTimeFormat(void 0,{timeZone:M}),h[M]=!0,!0}catch{return!1}}e.exports=a.default})(ht,L);(function(e,a){Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0;var u=v(ke),l=v(L);function v(h){return h&&h.__esModule?h:{default:h}}var s=60*1e3,i={X:function(h,p,M,T){var f=t(T.timeZone,T._originalDate||h);if(f===0)return"Z";switch(p){case"X":return c(f);case"XXXX":case"XX":return n(f);case"XXXXX":case"XXX":default:return n(f,":")}},x:function(h,p,M,T){var f=t(T.timeZone,T._originalDate||h);switch(p){case"x":return c(f);case"xxxx":case"xx":return n(f);case"xxxxx":case"xxx":default:return n(f,":")}},O:function(h,p,M,T){var f=t(T.timeZone,T._originalDate||h);switch(p){case"O":case"OO":case"OOO":return"GMT"+g(f,":");case"OOOO":default:return"GMT"+n(f,":")}},z:function(h,p,M,T){var f=T._originalDate||h;switch(p){case"z":case"zz":case"zzz":return(0,u.default)("short",f,T);case"zzzz":default:return(0,u.default)("long",f,T)}}};function t(h,p){var M=h?(0,l.default)(h,p,!0)/s:p.getTimezoneOffset();if(Number.isNaN(M))throw new RangeError("Invalid time zone specified: "+h);return M}function r(h,p){for(var M=h<0?"-":"",T=Math.abs(h).toString();T.length0?"-":"+",f=Math.abs(h),m=r(Math.floor(f/60),2),o=r(Math.floor(f%60),2);return T+m+M+o}function c(h,p){if(h%60===0){var M=h>0?"-":"+";return M+r(Math.abs(h)/60,2)}return n(h,p)}function g(h,p){var M=h>0?"-":"+",T=Math.abs(h),f=Math.floor(T/60),m=T%60;if(m===0)return M+String(f);var o=p||"";return M+String(f)+o+r(m,2)}var y=i;a.default=y,e.exports=a.default})(vt,Ge);var F={},Mt={get exports(){return F},set exports(e){F=e}},ae={},pt={get exports(){return ae},set exports(e){ae=e}};(function(e,a){Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0;var u=/(Z|[+-]\d{2}(?::?\d{2})?| UTC| [a-zA-Z]+\/[a-zA-Z_]+(?:\/[a-zA-Z_]+)?)$/,l=u;a.default=l,e.exports=a.default})(pt,ae);(function(e,a){Object.defineProperty(a,"__esModule",{value:!0}),a.default=g;var u=i(U),l=i(j),v=i(L),s=i(ae);function i(w){return w&&w.__esModule?w:{default:w}}var t=36e5,r=6e4,n=2,c={dateTimePattern:/^([0-9W+-]+)(T| )(.*)/,datePattern:/^([0-9W+-]+)(.*)/,plainTime:/:/,YY:/^(\d{2})$/,YYY:[/^([+-]\d{2})$/,/^([+-]\d{3})$/,/^([+-]\d{4})$/],YYYY:/^(\d{4})/,YYYYY:[/^([+-]\d{4})/,/^([+-]\d{5})/,/^([+-]\d{6})/],MM:/^-(\d{2})$/,DDD:/^-?(\d{3})$/,MMDD:/^-?(\d{2})-?(\d{2})$/,Www:/^-?W(\d{2})$/,WwwD:/^-?W(\d{2})-?(\d{1})$/,HH:/^(\d{2}([.,]\d*)?)$/,HHMM:/^(\d{2}):?(\d{2}([.,]\d*)?)$/,HHMMSS:/^(\d{2}):?(\d{2}):?(\d{2}([.,]\d*)?)$/,timeZone:s.default};function g(w,_){if(arguments.length<1)throw new TypeError("1 argument required, but only "+arguments.length+" present");if(w===null)return new Date(NaN);var A=_||{},x=A.additionalDigits==null?n:(0,u.default)(A.additionalDigits);if(x!==2&&x!==1&&x!==0)throw new RangeError("additionalDigits must be 0, 1 or 2");if(w instanceof Date||typeof w=="object"&&Object.prototype.toString.call(w)==="[object Date]")return new Date(w.getTime());if(typeof w=="number"||Object.prototype.toString.call(w)==="[object Number]")return new Date(w);if(!(typeof w=="string"||Object.prototype.toString.call(w)==="[object String]"))return new Date(NaN);var z=y(w),O=h(z.date,x),G=O.year,Y=O.restDateString,k=p(Y,G);if(isNaN(k))return new Date(NaN);if(k){var W=k.getTime(),N=0,I;if(z.time&&(N=M(z.time),isNaN(N)))return new Date(NaN);if(z.timeZone||A.timeZone){if(I=(0,v.default)(z.timeZone||A.timeZone,new Date(W+N)),isNaN(I))return new Date(NaN)}else I=(0,l.default)(new Date(W+N)),I=(0,l.default)(new Date(W+N+I));return new Date(W+N+I)}else return new Date(NaN)}function y(w){var _={},A=c.dateTimePattern.exec(w),x;if(A?(_.date=A[1],x=A[3]):(A=c.datePattern.exec(w),A?(_.date=A[1],x=A[2]):(_.date=null,x=w)),x){var z=c.timeZone.exec(x);z?(_.time=x.replace(z[1],""),_.timeZone=z[1].trim()):_.time=x}return _}function h(w,_){var A=c.YYY[_],x=c.YYYYY[_],z;if(z=c.YYYY.exec(w)||x.exec(w),z){var O=z[1];return{year:parseInt(O,10),restDateString:w.slice(O.length)}}if(z=c.YY.exec(w)||A.exec(w),z){var G=z[1];return{year:parseInt(G,10)*100,restDateString:w.slice(G.length)}}return{year:null}}function p(w,_){if(_===null)return null;var A,x,z,O;if(w.length===0)return x=new Date(0),x.setUTCFullYear(_),x;if(A=c.MM.exec(w),A)return x=new Date(0),z=parseInt(A[1],10)-1,d(_,z)?(x.setUTCFullYear(_,z),x):new Date(NaN);if(A=c.DDD.exec(w),A){x=new Date(0);var G=parseInt(A[1],10);return b(_,G)?(x.setUTCFullYear(_,0,G),x):new Date(NaN)}if(A=c.MMDD.exec(w),A){x=new Date(0),z=parseInt(A[1],10)-1;var Y=parseInt(A[2],10);return d(_,z,Y)?(x.setUTCFullYear(_,z,Y),x):new Date(NaN)}if(A=c.Www.exec(w),A)return O=parseInt(A[1],10)-1,D(_,O)?T(_,O):new Date(NaN);if(A=c.WwwD.exec(w),A){O=parseInt(A[1],10)-1;var k=parseInt(A[2],10)-1;return D(_,O,k)?T(_,O,k):new Date(NaN)}return null}function M(w){var _,A,x;if(_=c.HH.exec(w),_)return A=parseFloat(_[1].replace(",",".")),S(A)?A%24*t:NaN;if(_=c.HHMM.exec(w),_)return A=parseInt(_[1],10),x=parseFloat(_[2].replace(",",".")),S(A,x)?A%24*t+x*r:NaN;if(_=c.HHMMSS.exec(w),_){A=parseInt(_[1],10),x=parseInt(_[2],10);var z=parseFloat(_[3].replace(",","."));return S(A,x,z)?A%24*t+x*r+z*1e3:NaN}return null}function T(w,_,A){_=_||0,A=A||0;var x=new Date(0);x.setUTCFullYear(w,0,4);var z=x.getUTCDay()||7,O=_*7+A+1-z;return x.setUTCDate(x.getUTCDate()+O),x}var f=[31,28,31,30,31,30,31,31,30,31,30,31],m=[31,29,31,30,31,30,31,31,30,31,30,31];function o(w){return w%400===0||w%4===0&&w%100!==0}function d(w,_,A){if(_<0||_>11)return!1;if(A!=null){if(A<1)return!1;var x=o(w);if(x&&A>m[_]||!x&&A>f[_])return!1}return!0}function b(w,_){if(_<1)return!1;var A=o(w);return!(A&&_>366||!A&&_>365)}function D(w,_,A){return!(_<0||_>52||A!=null&&(A<0||A>6))}function S(w,_,A){return!(w!=null&&(w<0||w>=25)||_!=null&&(_<0||_>=60)||A!=null&&(A<0||A>=60))}e.exports=a.default})(Mt,F);(function(e,a){Object.defineProperty(a,"__esModule",{value:!0}),a.default=t;var u=s(fe),l=s(Ge),v=s(F);function s(r){return r&&r.__esModule?r:{default:r}}var i=/([xXOz]+)|''|'(''|[^'])+('|$)/g;function t(r,n,c){var g=String(n),y=c||{},h=g.match(i);if(h){var p=(0,v.default)(r,y);g=h.reduce(function(M,T){if(T[0]==="'")return M;var f=M.indexOf(T),m=M[f-1]==="'",o=M.replace(T,"'"+l.default[T[0]](p,T,null,y)+"'");return m?o.substring(0,f-1)+o.substring(f+1):o},g)}return(0,u.default)(r,g,y)}e.exports=a.default})(Sa,V);var Ie={},_t={get exports(){return Ie},set exports(e){Ie=e}},te={},At={get exports(){return te},set exports(e){te=e}},Ue={},yt={get exports(){return Ue},set exports(e){Ue=e}};(function(e,a){Object.defineProperty(a,"__esModule",{value:!0}),a.default=u;function u(l,v){if(l==null)throw new TypeError("assign requires that input parameter not be null or undefined");for(var s in v)Object.prototype.hasOwnProperty.call(v,s)&&(l[s]=v[s]);return l}e.exports=a.default})(yt,Ue);(function(e,a){Object.defineProperty(a,"__esModule",{value:!0}),a.default=v;var u=l(Ue);function l(s){return s&&s.__esModule?s:{default:s}}function v(s){return(0,u.default)({},s)}e.exports=a.default})(At,te);var re={},wt={get exports(){return re},set exports(e){re=e}};(function(e,a){Object.defineProperty(a,"__esModule",{value:!0}),a.default=s;var u=v(L),l=v(F);function v(i){return i&&i.__esModule?i:{default:i}}function s(i,t,r){var n=(0,l.default)(i,r),c=(0,u.default)(t,n,!0),g=new Date(n.getTime()-c),y=new Date(0);return y.setFullYear(g.getUTCFullYear(),g.getUTCMonth(),g.getUTCDate()),y.setHours(g.getUTCHours(),g.getUTCMinutes(),g.getUTCSeconds(),g.getUTCMilliseconds()),y}e.exports=a.default})(wt,re);(function(e,a){Object.defineProperty(a,"__esModule",{value:!0}),a.default=i;var u=s(te),l=s(V),v=s(re);function s(t){return t&&t.__esModule?t:{default:t}}function i(t,r,n,c){var g=(0,u.default)(c);return g.timeZone=r,(0,l.default)((0,v.default)(t,r),n,g)}e.exports=a.default})(_t,Ie);var Ye={},Dt={get exports(){return Ye},set exports(e){Ye=e}};(function(e,a){Object.defineProperty(a,"__esModule",{value:!0}),a.default=v;var u=l(L);function l(s){return s&&s.__esModule?s:{default:s}}function v(s,i){return-(0,u.default)(s,i)}e.exports=a.default})(Dt,Ye);var We={},xt={get exports(){return We},set exports(e){We=e}};(function(e,a){Object.defineProperty(a,"__esModule",{value:!0}),a.default=r;var u=t(te),l=t(F),v=t(ae),s=t(L),i=t(ee);function t(n){return n&&n.__esModule?n:{default:n}}function r(n,c,g){if(typeof n=="string"&&!n.match(v.default)){var y=(0,u.default)(g);return y.timeZone=c,(0,l.default)(n,y)}var h=(0,l.default)(n,g),p=(0,i.default)(h.getFullYear(),h.getMonth(),h.getDate(),h.getHours(),h.getMinutes(),h.getSeconds(),h.getMilliseconds()).getTime(),M=(0,s.default)(c,new Date(p));return new Date(p+M)}e.exports=a.default})(xt,We);var ta={format:V,formatInTimeZone:Ie,getTimezoneOffset:Ye,toDate:F,utcToZonedTime:re,zonedTimeToUtc:We};const St="yyyy-MM-dd z HH:mm:ss.SS";function Gt(e,a="UTC",u={}){if(!e)return"";const{relative:l=!1,relativeLabel:v="ago",relativeStrict:s=!1,abbrFormat:i=!1}=u;try{ba(e)&&(e=ga(e));const t=Ma(e),r=i?t.getSeconds()?"yyyy-MM-dd HH:mm:ss a":"yyyy-MM-dd HH:mm a":St;if(a==="local")return l?s?xa(t)+` ${v}`:Da(t)+` ${v}`:ta.format(t,r);const n=Pt(a);return ta.formatInTimeZone(t,n,r)}catch(t){return console.error("Error formatting date:",t),""}}function kt(e){const a=pa(e);return a instanceof Date&&!isNaN(a.getTime())}function Nt(e,a){if(e===void 0)return"";if(e===0)return`${a}±00:00`;const u=Math.abs(e),l=u>9?`${u}:00`:`0${u}:00`;if(e>0)return`${a}+${l}`;if(e<0)return`${a}-${l}`}function fa(){return Intl.DateTimeFormat().resolvedOptions().timeZone}function zt(){const e=fa(),a=Ot.find(({zones:u})=>u==null?void 0:u.includes(e));return a?`${a.label} (${a.abbr})`:e}function It(e){if(e==="local")return zt();const a=Qe[e];return a?`${e} (${a.abbr})`:e}const Ut=ra("timeFormat","UTC"),Yt=ra("relativeTime",!1),Qe={"Greenwich Mean Time":{abbr:"GMT",offset:0,zones:["Africa/Abidjan","Africa/Accra","Africa/Bamako","Africa/Banjul","Africa/Bissau","Africa/Conakry","Africa/Dakar","Africa/Freetown","Africa/Lome","Africa/Monrovia","Africa/Nouakchott","Africa/Ouagadougou","Africa/Sao_Tome","America/Danmarkshavn","Atlantic/Reykjavik","Atlantic/St_Helena"]},"East Africa Time":{abbr:"GMT+3",offset:3,zones:["Africa/Addis_Ababa","Africa/Asmera","Africa/Dar_es_Salaam","Africa/Djibouti","Africa/Kampala","Africa/Mogadishu","Africa/Nairobi","Indian/Antananarivo","Indian/Comoro","Indian/Mayotte"]},"Central European Standard Time":{abbr:"GMT+1",offset:1,zones:["Africa/Algiers","Africa/Tunis"]},"West Africa Standard Time":{abbr:"GMT+1",offset:1,zones:["Africa/Bangui","Africa/Brazzaville","Africa/Douala","Africa/Kinshasa","Africa/Lagos","Africa/Libreville","Africa/Luanda","Africa/Malabo","Africa/Ndjamena","Africa/Niamey","Africa/Porto-Novo"]},"Central Africa Time":{abbr:"GMT+2",offset:2,zones:["Africa/Blantyre","Africa/Bujumbura","Africa/Gaborone","Africa/Harare","Africa/Juba","Africa/Khartoum","Africa/Kigali","Africa/Lubumbashi","Africa/Lusaka","Africa/Maputo","Africa/Windhoek"]},"Eastern European Summer Time":{abbr:"GMT+3",offset:3,zones:["Africa/Cairo","Asia/Beirut","Asia/Gaza","Asia/Hebron","Asia/Nicosia","Europe/Athens","Europe/Bucharest","Europe/Chisinau","Europe/Helsinki","Europe/Kiev","Europe/Mariehamn","Europe/Riga","Europe/Sofia","Europe/Tallinn","Europe/Uzhgorod","Europe/Vilnius","Europe/Zaporozhye"]},"GMT+01:00":{abbr:"GMT+1",offset:1,zones:["Africa/Casablanca","Africa/El_Aaiun","Europe/Guernsey","Europe/Isle_of_Man","Europe/Jersey"]},"Central European Summer Time":{abbr:"GMT+2",offset:2,zones:["Africa/Ceuta","Arctic/Longyearbyen","Europe/Amsterdam","Europe/Andorra","Europe/Belgrade","Europe/Berlin","Europe/Bratislava","Europe/Brussels","Europe/Budapest","Europe/Busingen","Europe/Copenhagen","Europe/Gibraltar","Europe/Ljubljana","Europe/Luxembourg","Europe/Madrid","Europe/Malta","Europe/Monaco","Europe/Oslo","Europe/Paris","Europe/Podgorica","Europe/Prague","Europe/Rome","Europe/San_Marino","Europe/Sarajevo","Europe/Skopje","Europe/Stockholm","Europe/Tirane","Europe/Vaduz","Europe/Vatican","Europe/Vienna","Europe/Warsaw","Europe/Zagreb","Europe/Zurich"]},"South Africa Standard Time":{abbr:"GMT+2",offset:2,zones:["Africa/Johannesburg","Africa/Maseru","Africa/Mbabane"]},"Eastern European Standard Time":{abbr:"GMT+2",offset:2,zones:["Africa/Tripoli","Europe/Kaliningrad"]},"Hawaii-Aleutian Daylight Time":{abbr:"HADT",offset:-9,zones:["America/Adak"]},"Alaska Daylight Time":{abbr:"AKDT",offset:-8,zones:["America/Anchorage","America/Juneau","America/Metlakatla","America/Nome","America/Sitka","America/Yakutat"]},"Atlantic Standard Time":{abbr:"AST",offset:-4,zones:["America/Anguilla","America/Antigua","America/Aruba","America/Barbados","America/Blanc-Sablon","America/Curacao","America/Dominica","America/Grenada","America/Guadeloupe","America/Kralendijk","America/Lower_Princes","America/Marigot","America/Martinique","America/Montserrat","America/Port_of_Spain","America/Puerto_Rico","America/Santo_Domingo","America/St_Barthelemy","America/St_Kitts","America/St_Lucia","America/St_Thomas","America/St_Vincent","America/Tortola"]},"Brasilia Standard Time":{abbr:"GMT-3",offset:-3,zones:["America/Araguaina","America/Bahia","America/Belem","America/Fortaleza","America/Maceio","America/Recife","America/Santarem","America/Sao_Paulo"]},"Argentina Standard Time":{abbr:"GMT-3",offset:-3,zones:["America/Argentina/La_Rioja","America/Argentina/Rio_Gallegos","America/Argentina/Salta","America/Argentina/San_Juan","America/Argentina/San_Luis","America/Argentina/Tucuman","America/Argentina/Ushuaia","America/Buenos_Aires","America/Catamarca","America/Cordoba","America/Jujuy","America/Mendoza"]},"Paraguay Standard Time":{abbr:"GMT-4",offset:-4,zones:["America/Asuncion"]},"Central Standard Time":{abbr:"CST",offset:-6,zones:["America/Bahia_Banderas","America/Belize","America/Chihuahua","America/Costa_Rica","America/El_Salvador","America/Guatemala","America/Managua","America/Merida","America/Mexico_City","America/Monterrey","America/Regina","America/Swift_Current","America/Tegucigalpa"]},"Amazon Standard Time":{abbr:"GMT-4",offset:-4,zones:["America/Boa_Vista","America/Campo_Grande","America/Cuiaba","America/Manaus","America/Porto_Velho"]},"Colombia Standard Time":{abbr:"GMT-5",offset:-5,zones:["America/Bogota"]},"Mountain Daylight Time":{abbr:"MDT",offset:-6,zones:["America/Boise","America/Cambridge_Bay","America/Ciudad_Juarez","America/Denver","America/Edmonton","America/Inuvik","America/Yellowknife"]},"Eastern Standard Time":{abbr:"EST",offset:-5,zones:["America/Cancun","America/Cayman","America/Coral_Harbour","America/Jamaica","America/Panama"]},"Venezuela Time":{abbr:"GMT-4",offset:-4,zones:["America/Caracas"]},"French Guiana Time":{abbr:"GMT-3",offset:-3,zones:["America/Cayenne"]},"Central Daylight Time":{abbr:"CDT",offset:-5,zones:["America/Chicago","America/Indiana/Knox","America/Indiana/Tell_City","America/Matamoros","America/Menominee","America/North_Dakota/Beulah","America/North_Dakota/Center","America/North_Dakota/New_Salem","America/Ojinaga","America/Rainy_River","America/Rankin_Inlet","America/Resolute","America/Winnipeg"]},"Mountain Standard Time":{abbr:"MST",offset:-7,zones:["America/Creston","America/Dawson_Creek","America/Fort_Nelson","America/Phoenix"]},"Yukon Time":{abbr:"GMT-7",offset:-7,zones:["America/Dawson","America/Whitehorse"]},"Eastern Daylight Time":{abbr:"EDT",offset:-4,zones:["America/Detroit","America/Grand_Turk","America/Indiana/Marengo","America/Indiana/Petersburg","America/Indiana/Vevay","America/Indiana/Vincennes","America/Indiana/Winamac","America/Indianapolis","America/Iqaluit","America/Kentucky/Monticello","America/Louisville","America/Nassau","America/New_York","America/Nipigon","America/Pangnirtung","America/Port-au-Prince","America/Thunder_Bay","America/Toronto"]},"Acre Standard Time":{abbr:"GMT-5",offset:-5,zones:["America/Eirunepe","America/Rio_Branco"]},"Atlantic Daylight Time":{abbr:"ADT",offset:-3,zones:["America/Glace_Bay","America/Goose_Bay","America/Halifax","America/Moncton","America/Thule","Atlantic/Bermuda"]},"West Greenland Summer Time":{abbr:"GMT-2",offset:-2,zones:["America/Godthab"]},"Ecuador Time":{abbr:"GMT-5",offset:-5,zones:["America/Guayaquil"]},"Guyana Time":{abbr:"GMT-4",offset:-4,zones:["America/Guyana"]},"Cuba Daylight Time":{abbr:"GMT-4",offset:-4,zones:["America/Havana"]},"Mexican Pacific Standard Time":{abbr:"GMT-7",offset:-7,zones:["America/Hermosillo","America/Mazatlan"]},"Bolivia Time":{abbr:"GMT-4",offset:-4,zones:["America/La_Paz"]},"Peru Standard Time":{abbr:"GMT-5",offset:-5,zones:["America/Lima"]},"Pacific Daylight Time":{abbr:"PDT",offset:-7,zones:["America/Los_Angeles","America/Tijuana","America/Vancouver"]},"St. Pierre & Miquelon Daylight Time":{abbr:"GMT-2",offset:-2,zones:["America/Miquelon"]},"Uruguay Standard Time":{abbr:"GMT-3",offset:-3,zones:["America/Montevideo"]},"GMT-04:00":{abbr:"GMT-4",offset:-4,zones:["America/Montreal"]},"Fernando de Noronha Standard Time":{abbr:"GMT-2",offset:-2,zones:["America/Noronha"]},"Suriname Time":{abbr:"GMT-3",offset:-3,zones:["America/Paramaribo"]},"GMT-03:00":{abbr:"GMT-3",offset:-3,zones:["America/Punta_Arenas","Antarctica/Palmer"]},"Northwest Mexico Daylight Time":{abbr:"GMT-7",offset:-7,zones:["America/Santa_Isabel"]},"Chile Standard Time":{abbr:"GMT-4",offset:-4,zones:["America/Santiago"]},"East Greenland Summer Time":{abbr:"GMT",offset:0,zones:["America/Scoresbysund"]},"Newfoundland Daylight Time":{abbr:"GMT-2:30",offset:-3,zones:["America/St_Johns"]},"Casey Time":{abbr:"GMT+11",offset:11,zones:["Antarctica/Casey"]},"Davis Time":{abbr:"GMT+7",offset:7,zones:["Antarctica/Davis"]},"Dumont-d’Urville Time":{abbr:"GMT+10",offset:10,zones:["Antarctica/DumontDUrville"]},"Australian Eastern Standard Time":{abbr:"GMT+10",offset:10,zones:["Antarctica/Macquarie","Australia/Brisbane","Australia/Currie","Australia/Hobart","Australia/Lindeman","Australia/Melbourne","Australia/Sydney"]},"Mawson Time":{abbr:"GMT+5",offset:5,zones:["Antarctica/Mawson"]},"New Zealand Standard Time":{abbr:"GMT+12",offset:12,zones:["Antarctica/McMurdo","Pacific/Auckland"]},"Rothera Time":{abbr:"GMT-3",offset:-3,zones:["Antarctica/Rothera"]},"Syowa Time":{abbr:"GMT+3",offset:3,zones:["Antarctica/Syowa"]},"GMT+02:00":{abbr:"GMT+2",offset:2,zones:["Antarctica/Troll"]},"Vostok Time":{abbr:"GMT+6",offset:6,zones:["Antarctica/Vostok"]},"Arabian Standard Time":{abbr:"GMT+3",offset:3,zones:["Asia/Aden","Asia/Baghdad","Asia/Bahrain","Asia/Kuwait","Asia/Qatar","Asia/Riyadh"]},"East Kazakhstan Time":{abbr:"GMT+6",offset:6,zones:["Asia/Almaty","Asia/Qostanay"]},"GMT+03:00":{abbr:"GMT+3",offset:3,zones:["Asia/Amman","Asia/Damascus","Asia/Famagusta","Europe/Istanbul","Europe/Kirov"]},"Anadyr Standard Time":{abbr:"GMT+12",offset:12,zones:["Asia/Anadyr"]},"West Kazakhstan Time":{abbr:"GMT+5",offset:5,zones:["Asia/Aqtau","Asia/Aqtobe","Asia/Atyrau","Asia/Oral","Asia/Qyzylorda"]},"Turkmenistan Standard Time":{abbr:"GMT+5",offset:5,zones:["Asia/Ashgabat"]},"Azerbaijan Standard Time":{abbr:"GMT+4",offset:4,zones:["Asia/Baku"]},"Indochina Time":{abbr:"GMT+7",offset:7,zones:["Asia/Bangkok","Asia/Phnom_Penh","Asia/Saigon","Asia/Vientiane"]},"GMT+07:00":{abbr:"GMT+7",offset:7,zones:["Asia/Barnaul","Asia/Tomsk"]},"Kyrgyzstan Time":{abbr:"GMT+6",offset:6,zones:["Asia/Bishkek"]},"Brunei Darussalam Time":{abbr:"GMT+8",offset:8,zones:["Asia/Brunei"]},"India Standard Time":{abbr:"GMT+5:30",offset:5,zones:["Asia/Calcutta","Asia/Colombo"]},"Yakutsk Standard Time":{abbr:"GMT+9",offset:9,zones:["Asia/Chita","Asia/Khandyga","Asia/Yakutsk"]},"Ulaanbaatar Standard Time":{abbr:"GMT+8",offset:8,zones:["Asia/Choibalsan","Asia/Ulaanbaatar"]},"Bangladesh Standard Time":{abbr:"GMT+6",offset:6,zones:["Asia/Dhaka"]},"East Timor Time":{abbr:"GMT+9",offset:9,zones:["Asia/Dili"]},"Gulf Standard Time":{abbr:"GMT+4",offset:4,zones:["Asia/Dubai","Asia/Muscat"]},"Tajikistan Time":{abbr:"GMT+5",offset:5,zones:["Asia/Dushanbe"]},"Hong Kong Standard Time":{abbr:"GMT+8",offset:8,zones:["Asia/Hong_Kong"]},"Hovd Standard Time":{abbr:"GMT+7",offset:7,zones:["Asia/Hovd"]},"Irkutsk Standard Time":{abbr:"GMT+8",offset:8,zones:["Asia/Irkutsk"]},"Western Indonesia Time":{abbr:"GMT+7",offset:7,zones:["Asia/Jakarta","Asia/Pontianak"]},"Eastern Indonesia Time":{abbr:"GMT+9",offset:9,zones:["Asia/Jayapura"]},"Israel Daylight Time":{abbr:"GMT+3",offset:3,zones:["Asia/Jerusalem"]},"Afghanistan Time":{abbr:"GMT+4:30",offset:4,zones:["Asia/Kabul"]},"Petropavlovsk-Kamchatski Standard Time":{abbr:"GMT+12",offset:12,zones:["Asia/Kamchatka"]},"Pakistan Standard Time":{abbr:"GMT+5",offset:5,zones:["Asia/Karachi"]},"Nepal Time":{abbr:"GMT+5:45",offset:5,zones:["Asia/Katmandu"]},"Krasnoyarsk Standard Time":{abbr:"GMT+7",offset:7,zones:["Asia/Krasnoyarsk","Asia/Novokuznetsk"]},"Malaysia Time":{abbr:"GMT+8",offset:8,zones:["Asia/Kuala_Lumpur","Asia/Kuching"]},"China Standard Time":{abbr:"GMT+8",offset:8,zones:["Asia/Macau","Asia/Shanghai"]},"Magadan Standard Time":{abbr:"GMT+11",offset:11,zones:["Asia/Magadan"]},"Central Indonesia Time":{abbr:"GMT+8",offset:8,zones:["Asia/Makassar"]},"Philippine Standard Time":{abbr:"GMT+8",offset:8,zones:["Asia/Manila"]},"Novosibirsk Standard Time":{abbr:"GMT+7",offset:7,zones:["Asia/Novosibirsk"]},"Omsk Standard Time":{abbr:"GMT+6",offset:6,zones:["Asia/Omsk"]},"Korean Standard Time":{abbr:"GMT+9",offset:9,zones:["Asia/Pyongyang","Asia/Seoul"]},"Myanmar Time":{abbr:"GMT+6:30",offset:6,zones:["Asia/Rangoon"]},"Sakhalin Standard Time":{abbr:"GMT+11",offset:11,zones:["Asia/Sakhalin"]},"Uzbekistan Standard Time":{abbr:"GMT+5",offset:5,zones:["Asia/Samarkand","Asia/Tashkent"]},"Singapore Standard Time":{abbr:"GMT+8",offset:8,zones:["Asia/Singapore"]},"GMT+11:00":{abbr:"GMT+11",offset:11,zones:["Asia/Srednekolymsk","Pacific/Bougainville"]},"Taipei Standard Time":{abbr:"GMT+8",offset:8,zones:["Asia/Taipei"]},"Georgia Standard Time":{abbr:"GMT+4",offset:4,zones:["Asia/Tbilisi"]},"Iran Standard Time":{abbr:"GMT+3:30",offset:3,zones:["Asia/Tehran"]},"Bhutan Time":{abbr:"GMT+6",offset:6,zones:["Asia/Thimphu"]},"Japan Standard Time":{abbr:"GMT+9",offset:9,zones:["Asia/Tokyo"]},"GMT+06:00":{abbr:"GMT+6",offset:6,zones:["Asia/Urumqi"]},"Vladivostok Standard Time":{abbr:"GMT+10",offset:10,zones:["Asia/Ust-Nera","Asia/Vladivostok"]},"Yekaterinburg Standard Time":{abbr:"GMT+5",offset:5,zones:["Asia/Yekaterinburg"]},"Armenia Standard Time":{abbr:"GMT+4",offset:4,zones:["Asia/Yerevan"]},"Azores Summer Time":{abbr:"GMT",offset:0,zones:["Atlantic/Azores"]},"Western European Summer Time":{abbr:"GMT+1",offset:1,zones:["Atlantic/Canary","Atlantic/Faeroe","Atlantic/Madeira","Europe/Lisbon"]},"Cape Verde Standard Time":{abbr:"GMT-1",offset:-1,zones:["Atlantic/Cape_Verde"]},"South Georgia Time":{abbr:"GMT-2",offset:-2,zones:["Atlantic/South_Georgia"]},"Falkland Islands Standard Time":{abbr:"GMT-3",offset:-3,zones:["Atlantic/Stanley"]},"Australian Central Standard Time":{abbr:"GMT+9:30",offset:9,zones:["Australia/Adelaide","Australia/Broken_Hill","Australia/Darwin"]},"Australian Central Western Standard Time":{abbr:"GMT+8:45",offset:8,zones:["Australia/Eucla"]},"Lord Howe Standard Time":{abbr:"GMT+10:30",offset:10,zones:["Australia/Lord_Howe"]},"Australian Western Standard Time":{abbr:"GMT+8",offset:8,zones:["Australia/Perth"]},"GMT+04:00":{abbr:"GMT+4",offset:4,zones:["Europe/Astrakhan","Europe/Saratov","Europe/Ulyanovsk"]},"Irish Standard Time":{abbr:"GMT+1",offset:1,zones:["Europe/Dublin"]},"British Summer Time":{abbr:"GMT+1",offset:1,zones:["Europe/London"]},"Moscow Standard Time":{abbr:"GMT+3",offset:3,zones:["Europe/Minsk","Europe/Moscow","Europe/Simferopol"]},"Samara Standard Time":{abbr:"GMT+4",offset:4,zones:["Europe/Samara"]},"Volgograd Standard Time":{abbr:"GMT+3",offset:3,zones:["Europe/Volgograd"]},"Indian Ocean Time":{abbr:"GMT+6",offset:6,zones:["Indian/Chagos"]},"Christmas Island Time":{abbr:"GMT+7",offset:7,zones:["Indian/Christmas"]},"Cocos Islands Time":{abbr:"GMT+6:30",offset:6,zones:["Indian/Cocos"]},"French Southern & Antarctic Time":{abbr:"GMT+5",offset:5,zones:["Indian/Kerguelen"]},"Seychelles Time":{abbr:"GMT+4",offset:4,zones:["Indian/Mahe"]},"Maldives Time":{abbr:"GMT+5",offset:5,zones:["Indian/Maldives"]},"Mauritius Standard Time":{abbr:"GMT+4",offset:4,zones:["Indian/Mauritius"]},"Réunion Time":{abbr:"GMT+4",offset:4,zones:["Indian/Reunion"]},"Apia Standard Time":{abbr:"GMT+13",offset:13,zones:["Pacific/Apia"]},"Chatham Standard Time":{abbr:"GMT+12:45",offset:12,zones:["Pacific/Chatham"]},"Easter Island Standard Time":{abbr:"GMT-6",offset:-6,zones:["Pacific/Easter"]},"Vanuatu Standard Time":{abbr:"GMT+11",offset:11,zones:["Pacific/Efate"]},"Phoenix Islands Time":{abbr:"GMT+13",offset:13,zones:["Pacific/Enderbury"]},"Tokelau Time":{abbr:"GMT+13",offset:13,zones:["Pacific/Fakaofo"]},"Fiji Standard Time":{abbr:"GMT+12",offset:12,zones:["Pacific/Fiji"]},"Tuvalu Time":{abbr:"GMT+12",offset:12,zones:["Pacific/Funafuti"]},"Galapagos Time":{abbr:"GMT-6",offset:-6,zones:["Pacific/Galapagos"]},"Gambier Time":{abbr:"GMT-9",offset:-9,zones:["Pacific/Gambier"]},"Solomon Islands Time":{abbr:"GMT+11",offset:11,zones:["Pacific/Guadalcanal"]},"Chamorro Standard Time":{abbr:"GMT+10",offset:10,zones:["Pacific/Guam","Pacific/Saipan"]},"Hawaii-Aleutian Standard Time":{abbr:"HST",offset:-10,zones:["Pacific/Honolulu","Pacific/Johnston"]},"Line Islands Time":{abbr:"GMT+14",offset:14,zones:["Pacific/Kiritimati"]},"Kosrae Time":{abbr:"GMT+11",offset:11,zones:["Pacific/Kosrae"]},"Marshall Islands Time":{abbr:"GMT+12",offset:12,zones:["Pacific/Kwajalein","Pacific/Majuro"]},"Marquesas Time":{abbr:"GMT-9:30",offset:-10,zones:["Pacific/Marquesas"]},"Samoa Standard Time":{abbr:"GMT-11",offset:-11,zones:["Pacific/Midway","Pacific/Pago_Pago"]},"Nauru Time":{abbr:"GMT+12",offset:12,zones:["Pacific/Nauru"]},"Niue Time":{abbr:"GMT-11",offset:-11,zones:["Pacific/Niue"]},"Norfolk Island Standard Time":{abbr:"GMT+11",offset:11,zones:["Pacific/Norfolk"]},"New Caledonia Standard Time":{abbr:"GMT+11",offset:11,zones:["Pacific/Noumea"]},"Palau Time":{abbr:"GMT+9",offset:9,zones:["Pacific/Palau"]},"Pitcairn Time":{abbr:"GMT-8",offset:-8,zones:["Pacific/Pitcairn"]},"Ponape Time":{abbr:"GMT+11",offset:11,zones:["Pacific/Ponape"]},"Papua New Guinea Time":{abbr:"GMT+10",offset:10,zones:["Pacific/Port_Moresby"]},"Cook Islands Standard Time":{abbr:"GMT-10",offset:-10,zones:["Pacific/Rarotonga"]},"Tahiti Time":{abbr:"GMT-10",offset:-10,zones:["Pacific/Tahiti"]},"Gilbert Islands Time":{abbr:"GMT+12",offset:12,zones:["Pacific/Tarawa"]},"Tonga Standard Time":{abbr:"GMT+13",offset:13,zones:["Pacific/Tongatapu"]},"Chuuk Time":{abbr:"GMT+10",offset:10,zones:["Pacific/Truk"]},"Wake Island Time":{abbr:"GMT+12",offset:12,zones:["Pacific/Wake"]},"Wallis & Futuna Time":{abbr:"GMT+12",offset:12,zones:["Pacific/Wallis"]}},Ot=Object.entries(Qe).map(([e,a])=>({label:e,value:e,...a})).sort((e,a)=>e.label>a.label?1:a.label>e.label?-1:0),Pt=e=>{var a;return e==="local"?fa():((a=Qe[e])==null?void 0:a.zones[0])??e};export{Ot as T,Qe as a,Gt as b,It as c,Pt as d,ta as e,Nt as f,zt as g,kt as i,Yt as r,Ut as t}; +import{p as ra}from"./persist-store.8930b3b5.js";import{r as Re,d as na,c as ia,t as H,a as Ta,g as ue,b as ha,e as oa,i as ba,f as ga,p as Ma,h as pa}from"./format-time.4f091e0e.js";function Ke(e,a){if(e==null)throw new TypeError("assign requires that input parameter not be null or undefined");for(var u in a)Object.prototype.hasOwnProperty.call(a,u)&&(e[u]=a[u]);return e}function ua(e){return Ke({},e)}var Je=1440,_a=2520,Ve=43200,Aa=86400;function ya(e,a,u){var l,v;Re(2,arguments);var s=oa(),i=(l=(v=u==null?void 0:u.locale)!==null&&v!==void 0?v:s.locale)!==null&&l!==void 0?l:na;if(!i.formatDistance)throw new RangeError("locale must contain formatDistance property");var t=ia(e,a);if(isNaN(t))throw new RangeError("Invalid time value");var r=Ke(ua(u),{addSuffix:Boolean(u==null?void 0:u.addSuffix),comparison:t}),n,c;t>0?(n=H(a),c=H(e)):(n=H(e),c=H(a));var g=Ta(c,n),y=(ue(c)-ue(n))/1e3,h=Math.round((g-y)/60),p;if(h<2)return u!=null&&u.includeSeconds?g<5?i.formatDistance("lessThanXSeconds",5,r):g<10?i.formatDistance("lessThanXSeconds",10,r):g<20?i.formatDistance("lessThanXSeconds",20,r):g<40?i.formatDistance("halfAMinute",0,r):g<60?i.formatDistance("lessThanXMinutes",1,r):i.formatDistance("xMinutes",1,r):h===0?i.formatDistance("lessThanXMinutes",1,r):i.formatDistance("xMinutes",h,r);if(h<45)return i.formatDistance("xMinutes",h,r);if(h<90)return i.formatDistance("aboutXHours",1,r);if(h0?(c=H(a),g=H(e)):(c=H(e),g=H(a));var y=String((s=u==null?void 0:u.roundingMethod)!==null&&s!==void 0?s:"round"),h;if(y==="floor")h=Math.floor;else if(y==="ceil")h=Math.ceil;else if(y==="round")h=Math.round;else throw new RangeError("roundingMethod must be 'floor', 'ceil' or 'round'");var p=g.getTime()-c.getTime(),M=p/je,T=ue(g)-ue(c),f=(p-T)/je,m=u==null?void 0:u.unit,o;if(m?o=String(m):M<1?o="second":M<60?o="minute":M1?"s":"")+" required, but only "+v.length+" present")}e.exports=a.default})(Ea,P);(function(e,a){Object.defineProperty(a,"__esModule",{value:!0}),a.default=s;var u=l(P);function l(i){return i&&i.__esModule?i:{default:i}}function v(i){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?v=function(r){return typeof r}:v=function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},v(i)}function s(i){return(0,u.default)(1,arguments),i instanceof Date||v(i)==="object"&&Object.prototype.toString.call(i)==="[object Date]"}e.exports=a.default})(Pa,de);var C={},Ca={get exports(){return C},set exports(e){C=e}};(function(e,a){Object.defineProperty(a,"__esModule",{value:!0}),a.default=s;var u=l(P);function l(i){return i&&i.__esModule?i:{default:i}}function v(i){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?v=function(r){return typeof r}:v=function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},v(i)}function s(i){(0,u.default)(1,arguments);var t=Object.prototype.toString.call(i);return i instanceof Date||v(i)==="object"&&t==="[object Date]"?new Date(i.getTime()):typeof i=="number"||t==="[object Number]"?new Date(i):((typeof i=="string"||t==="[object String]")&&typeof console<"u"&&(console.warn("Starting with v2.0.0-beta.1 date-fns doesn't accept strings as date arguments. Please use `parseISO` to parse strings. See: https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#string-arguments"),console.warn(new Error().stack)),new Date(NaN))}e.exports=a.default})(Ca,C);(function(e,a){Object.defineProperty(a,"__esModule",{value:!0}),a.default=i;var u=s(de),l=s(C),v=s(P);function s(t){return t&&t.__esModule?t:{default:t}}function i(t){if((0,v.default)(1,arguments),!(0,u.default)(t)&&typeof t!="number")return!1;var r=(0,l.default)(t);return!isNaN(Number(r))}e.exports=a.default})(Oa,le);var ce={},Ga={get exports(){return ce},set exports(e){ce=e}},me={},ka={get exports(){return me},set exports(e){me=e}},U={},Na={get exports(){return U},set exports(e){U=e}};(function(e,a){Object.defineProperty(a,"__esModule",{value:!0}),a.default=u;function u(l){if(l===null||l===!0||l===!1)return NaN;var v=Number(l);return isNaN(v)?v:v<0?Math.ceil(v):Math.floor(v)}e.exports=a.default})(Na,U);(function(e,a){Object.defineProperty(a,"__esModule",{value:!0}),a.default=i;var u=s(U),l=s(C),v=s(P);function s(t){return t&&t.__esModule?t:{default:t}}function i(t,r){(0,v.default)(2,arguments);var n=(0,l.default)(t).getTime(),c=(0,u.default)(r);return new Date(n+c)}e.exports=a.default})(ka,me);(function(e,a){Object.defineProperty(a,"__esModule",{value:!0}),a.default=i;var u=s(me),l=s(P),v=s(U);function s(t){return t&&t.__esModule?t:{default:t}}function i(t,r){(0,l.default)(2,arguments);var n=(0,v.default)(r);return(0,u.default)(t,-n)}e.exports=a.default})(Ga,ce);var ve={},Ia={get exports(){return ve},set exports(e){ve=e}},Te={},Ua={get exports(){return Te},set exports(e){Te=e}};(function(e,a){Object.defineProperty(a,"__esModule",{value:!0}),a.default=i;var u=v(C),l=v(P);function v(t){return t&&t.__esModule?t:{default:t}}var s=864e5;function i(t){(0,l.default)(1,arguments);var r=(0,u.default)(t),n=r.getTime();r.setUTCMonth(0,1),r.setUTCHours(0,0,0,0);var c=r.getTime(),g=n-c;return Math.floor(g/s)+1}e.exports=a.default})(Ua,Te);var he={},Ya={get exports(){return he},set exports(e){he=e}},$={},Wa={get exports(){return $},set exports(e){$=e}};(function(e,a){Object.defineProperty(a,"__esModule",{value:!0}),a.default=s;var u=v(C),l=v(P);function v(i){return i&&i.__esModule?i:{default:i}}function s(i){(0,l.default)(1,arguments);var t=1,r=(0,u.default)(i),n=r.getUTCDay(),c=(n=g.getTime()?n+1:r.getTime()>=h.getTime()?n:n-1}e.exports=a.default})(Ha,K);(function(e,a){Object.defineProperty(a,"__esModule",{value:!0}),a.default=i;var u=s(K),l=s($),v=s(P);function s(t){return t&&t.__esModule?t:{default:t}}function i(t){(0,v.default)(1,arguments);var r=(0,u.default)(t),n=new Date(0);n.setUTCFullYear(r,0,4),n.setUTCHours(0,0,0,0);var c=(0,l.default)(n);return c}e.exports=a.default})(Ra,be);(function(e,a){Object.defineProperty(a,"__esModule",{value:!0}),a.default=r;var u=i(C),l=i($),v=i(be),s=i(P);function i(n){return n&&n.__esModule?n:{default:n}}var t=6048e5;function r(n){(0,s.default)(1,arguments);var c=(0,u.default)(n),g=(0,l.default)(c).getTime()-(0,v.default)(c).getTime();return Math.round(g/t)+1}e.exports=a.default})(Ya,he);var ge={},La={get exports(){return ge},set exports(e){ge=e}},B={},Fa={get exports(){return B},set exports(e){B=e}},q={};Object.defineProperty(q,"__esModule",{value:!0});q.getDefaultOptions=qa;q.setDefaultOptions=$a;var sa={};function qa(){return sa}function $a(e){sa=e}(function(e,a){Object.defineProperty(a,"__esModule",{value:!0}),a.default=t;var u=i(C),l=i(P),v=i(U),s=q;function i(r){return r&&r.__esModule?r:{default:r}}function t(r,n){var c,g,y,h,p,M,T,f;(0,l.default)(1,arguments);var m=(0,s.getDefaultOptions)(),o=(0,v.default)((c=(g=(y=(h=n==null?void 0:n.weekStartsOn)!==null&&h!==void 0?h:n==null||(p=n.locale)===null||p===void 0||(M=p.options)===null||M===void 0?void 0:M.weekStartsOn)!==null&&y!==void 0?y:m.weekStartsOn)!==null&&g!==void 0?g:(T=m.locale)===null||T===void 0||(f=T.options)===null||f===void 0?void 0:f.weekStartsOn)!==null&&c!==void 0?c:0);if(!(o>=0&&o<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var d=(0,u.default)(r),b=d.getUTCDay(),D=(b=1&&D<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var S=new Date(0);S.setUTCFullYear(d+1,0,D),S.setUTCHours(0,0,0,0);var w=(0,v.default)(S,c),_=new Date(0);_.setUTCFullYear(d,0,D),_.setUTCHours(0,0,0,0);var A=(0,v.default)(_,c);return o.getTime()>=w.getTime()?d+1:o.getTime()>=A.getTime()?d:d-1}e.exports=a.default})(Xa,Q);(function(e,a){Object.defineProperty(a,"__esModule",{value:!0}),a.default=r;var u=t(Q),l=t(P),v=t(B),s=t(U),i=q;function t(n){return n&&n.__esModule?n:{default:n}}function r(n,c){var g,y,h,p,M,T,f,m;(0,l.default)(1,arguments);var o=(0,i.getDefaultOptions)(),d=(0,s.default)((g=(y=(h=(p=c==null?void 0:c.firstWeekContainsDate)!==null&&p!==void 0?p:c==null||(M=c.locale)===null||M===void 0||(T=M.options)===null||T===void 0?void 0:T.firstWeekContainsDate)!==null&&h!==void 0?h:o.firstWeekContainsDate)!==null&&y!==void 0?y:(f=o.locale)===null||f===void 0||(m=f.options)===null||m===void 0?void 0:m.firstWeekContainsDate)!==null&&g!==void 0?g:1),b=(0,u.default)(n,c),D=new Date(0);D.setUTCFullYear(b,0,d),D.setUTCHours(0,0,0,0);var S=(0,v.default)(D,c);return S}e.exports=a.default})(Ba,Me);(function(e,a){Object.defineProperty(a,"__esModule",{value:!0}),a.default=r;var u=i(C),l=i(B),v=i(Me),s=i(P);function i(n){return n&&n.__esModule?n:{default:n}}var t=6048e5;function r(n,c){(0,s.default)(1,arguments);var g=(0,u.default)(n),y=(0,l.default)(g,c).getTime()-(0,v.default)(g,c).getTime();return Math.round(y/t)+1}e.exports=a.default})(La,ge);var J={},Za={get exports(){return J},set exports(e){J=e}};(function(e,a){Object.defineProperty(a,"__esModule",{value:!0}),a.default=u;function u(l,v){for(var s=l<0?"-":"",i=Math.abs(l).toString();i.length0?n:1-n;return(0,u.default)(r==="yy"?c%100:c,r.length)},M:function(t,r){var n=t.getUTCMonth();return r==="M"?String(n+1):(0,u.default)(n+1,2)},d:function(t,r){return(0,u.default)(t.getUTCDate(),r.length)},a:function(t,r){var n=t.getUTCHours()/12>=1?"pm":"am";switch(r){case"a":case"aa":return n.toUpperCase();case"aaa":return n;case"aaaaa":return n[0];case"aaaa":default:return n==="am"?"a.m.":"p.m."}},h:function(t,r){return(0,u.default)(t.getUTCHours()%12||12,r.length)},H:function(t,r){return(0,u.default)(t.getUTCHours(),r.length)},m:function(t,r){return(0,u.default)(t.getUTCMinutes(),r.length)},s:function(t,r){return(0,u.default)(t.getUTCSeconds(),r.length)},S:function(t,r){var n=r.length,c=t.getUTCMilliseconds(),g=Math.floor(c*Math.pow(10,n-3));return(0,u.default)(g,r.length)}},s=v;a.default=s,e.exports=a.default})(Va,pe);(function(e,a){Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0;var u=n(Te),l=n(he),v=n(K),s=n(ge),i=n(Q),t=n(J),r=n(pe);function n(T){return T&&T.__esModule?T:{default:T}}var c={am:"am",pm:"pm",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},g={G:function(f,m,o){var d=f.getUTCFullYear()>0?1:0;switch(m){case"G":case"GG":case"GGG":return o.era(d,{width:"abbreviated"});case"GGGGG":return o.era(d,{width:"narrow"});case"GGGG":default:return o.era(d,{width:"wide"})}},y:function(f,m,o){if(m==="yo"){var d=f.getUTCFullYear(),b=d>0?d:1-d;return o.ordinalNumber(b,{unit:"year"})}return r.default.y(f,m)},Y:function(f,m,o,d){var b=(0,i.default)(f,d),D=b>0?b:1-b;if(m==="YY"){var S=D%100;return(0,t.default)(S,2)}return m==="Yo"?o.ordinalNumber(D,{unit:"year"}):(0,t.default)(D,m.length)},R:function(f,m){var o=(0,v.default)(f);return(0,t.default)(o,m.length)},u:function(f,m){var o=f.getUTCFullYear();return(0,t.default)(o,m.length)},Q:function(f,m,o){var d=Math.ceil((f.getUTCMonth()+1)/3);switch(m){case"Q":return String(d);case"QQ":return(0,t.default)(d,2);case"Qo":return o.ordinalNumber(d,{unit:"quarter"});case"QQQ":return o.quarter(d,{width:"abbreviated",context:"formatting"});case"QQQQQ":return o.quarter(d,{width:"narrow",context:"formatting"});case"QQQQ":default:return o.quarter(d,{width:"wide",context:"formatting"})}},q:function(f,m,o){var d=Math.ceil((f.getUTCMonth()+1)/3);switch(m){case"q":return String(d);case"qq":return(0,t.default)(d,2);case"qo":return o.ordinalNumber(d,{unit:"quarter"});case"qqq":return o.quarter(d,{width:"abbreviated",context:"standalone"});case"qqqqq":return o.quarter(d,{width:"narrow",context:"standalone"});case"qqqq":default:return o.quarter(d,{width:"wide",context:"standalone"})}},M:function(f,m,o){var d=f.getUTCMonth();switch(m){case"M":case"MM":return r.default.M(f,m);case"Mo":return o.ordinalNumber(d+1,{unit:"month"});case"MMM":return o.month(d,{width:"abbreviated",context:"formatting"});case"MMMMM":return o.month(d,{width:"narrow",context:"formatting"});case"MMMM":default:return o.month(d,{width:"wide",context:"formatting"})}},L:function(f,m,o){var d=f.getUTCMonth();switch(m){case"L":return String(d+1);case"LL":return(0,t.default)(d+1,2);case"Lo":return o.ordinalNumber(d+1,{unit:"month"});case"LLL":return o.month(d,{width:"abbreviated",context:"standalone"});case"LLLLL":return o.month(d,{width:"narrow",context:"standalone"});case"LLLL":default:return o.month(d,{width:"wide",context:"standalone"})}},w:function(f,m,o,d){var b=(0,s.default)(f,d);return m==="wo"?o.ordinalNumber(b,{unit:"week"}):(0,t.default)(b,m.length)},I:function(f,m,o){var d=(0,l.default)(f);return m==="Io"?o.ordinalNumber(d,{unit:"week"}):(0,t.default)(d,m.length)},d:function(f,m,o){return m==="do"?o.ordinalNumber(f.getUTCDate(),{unit:"date"}):r.default.d(f,m)},D:function(f,m,o){var d=(0,u.default)(f);return m==="Do"?o.ordinalNumber(d,{unit:"dayOfYear"}):(0,t.default)(d,m.length)},E:function(f,m,o){var d=f.getUTCDay();switch(m){case"E":case"EE":case"EEE":return o.day(d,{width:"abbreviated",context:"formatting"});case"EEEEE":return o.day(d,{width:"narrow",context:"formatting"});case"EEEEEE":return o.day(d,{width:"short",context:"formatting"});case"EEEE":default:return o.day(d,{width:"wide",context:"formatting"})}},e:function(f,m,o,d){var b=f.getUTCDay(),D=(b-d.weekStartsOn+8)%7||7;switch(m){case"e":return String(D);case"ee":return(0,t.default)(D,2);case"eo":return o.ordinalNumber(D,{unit:"day"});case"eee":return o.day(b,{width:"abbreviated",context:"formatting"});case"eeeee":return o.day(b,{width:"narrow",context:"formatting"});case"eeeeee":return o.day(b,{width:"short",context:"formatting"});case"eeee":default:return o.day(b,{width:"wide",context:"formatting"})}},c:function(f,m,o,d){var b=f.getUTCDay(),D=(b-d.weekStartsOn+8)%7||7;switch(m){case"c":return String(D);case"cc":return(0,t.default)(D,m.length);case"co":return o.ordinalNumber(D,{unit:"day"});case"ccc":return o.day(b,{width:"abbreviated",context:"standalone"});case"ccccc":return o.day(b,{width:"narrow",context:"standalone"});case"cccccc":return o.day(b,{width:"short",context:"standalone"});case"cccc":default:return o.day(b,{width:"wide",context:"standalone"})}},i:function(f,m,o){var d=f.getUTCDay(),b=d===0?7:d;switch(m){case"i":return String(b);case"ii":return(0,t.default)(b,m.length);case"io":return o.ordinalNumber(b,{unit:"day"});case"iii":return o.day(d,{width:"abbreviated",context:"formatting"});case"iiiii":return o.day(d,{width:"narrow",context:"formatting"});case"iiiiii":return o.day(d,{width:"short",context:"formatting"});case"iiii":default:return o.day(d,{width:"wide",context:"formatting"})}},a:function(f,m,o){var d=f.getUTCHours(),b=d/12>=1?"pm":"am";switch(m){case"a":case"aa":return o.dayPeriod(b,{width:"abbreviated",context:"formatting"});case"aaa":return o.dayPeriod(b,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return o.dayPeriod(b,{width:"narrow",context:"formatting"});case"aaaa":default:return o.dayPeriod(b,{width:"wide",context:"formatting"})}},b:function(f,m,o){var d=f.getUTCHours(),b;switch(d===12?b=c.noon:d===0?b=c.midnight:b=d/12>=1?"pm":"am",m){case"b":case"bb":return o.dayPeriod(b,{width:"abbreviated",context:"formatting"});case"bbb":return o.dayPeriod(b,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return o.dayPeriod(b,{width:"narrow",context:"formatting"});case"bbbb":default:return o.dayPeriod(b,{width:"wide",context:"formatting"})}},B:function(f,m,o){var d=f.getUTCHours(),b;switch(d>=17?b=c.evening:d>=12?b=c.afternoon:d>=4?b=c.morning:b=c.night,m){case"B":case"BB":case"BBB":return o.dayPeriod(b,{width:"abbreviated",context:"formatting"});case"BBBBB":return o.dayPeriod(b,{width:"narrow",context:"formatting"});case"BBBB":default:return o.dayPeriod(b,{width:"wide",context:"formatting"})}},h:function(f,m,o){if(m==="ho"){var d=f.getUTCHours()%12;return d===0&&(d=12),o.ordinalNumber(d,{unit:"hour"})}return r.default.h(f,m)},H:function(f,m,o){return m==="Ho"?o.ordinalNumber(f.getUTCHours(),{unit:"hour"}):r.default.H(f,m)},K:function(f,m,o){var d=f.getUTCHours()%12;return m==="Ko"?o.ordinalNumber(d,{unit:"hour"}):(0,t.default)(d,m.length)},k:function(f,m,o){var d=f.getUTCHours();return d===0&&(d=24),m==="ko"?o.ordinalNumber(d,{unit:"hour"}):(0,t.default)(d,m.length)},m:function(f,m,o){return m==="mo"?o.ordinalNumber(f.getUTCMinutes(),{unit:"minute"}):r.default.m(f,m)},s:function(f,m,o){return m==="so"?o.ordinalNumber(f.getUTCSeconds(),{unit:"second"}):r.default.s(f,m)},S:function(f,m){return r.default.S(f,m)},X:function(f,m,o,d){var b=d._originalDate||f,D=b.getTimezoneOffset();if(D===0)return"Z";switch(m){case"X":return h(D);case"XXXX":case"XX":return p(D);case"XXXXX":case"XXX":default:return p(D,":")}},x:function(f,m,o,d){var b=d._originalDate||f,D=b.getTimezoneOffset();switch(m){case"x":return h(D);case"xxxx":case"xx":return p(D);case"xxxxx":case"xxx":default:return p(D,":")}},O:function(f,m,o,d){var b=d._originalDate||f,D=b.getTimezoneOffset();switch(m){case"O":case"OO":case"OOO":return"GMT"+y(D,":");case"OOOO":default:return"GMT"+p(D,":")}},z:function(f,m,o,d){var b=d._originalDate||f,D=b.getTimezoneOffset();switch(m){case"z":case"zz":case"zzz":return"GMT"+y(D,":");case"zzzz":default:return"GMT"+p(D,":")}},t:function(f,m,o,d){var b=d._originalDate||f,D=Math.floor(b.getTime()/1e3);return(0,t.default)(D,m.length)},T:function(f,m,o,d){var b=d._originalDate||f,D=b.getTime();return(0,t.default)(D,m.length)}};function y(T,f){var m=T>0?"-":"+",o=Math.abs(T),d=Math.floor(o/60),b=o%60;if(b===0)return m+String(d);var D=f||"";return m+String(d)+D+(0,t.default)(b,2)}function h(T,f){if(T%60===0){var m=T>0?"-":"+";return m+(0,t.default)(Math.abs(T)/60,2)}return p(T,f)}function p(T,f){var m=f||"",o=T>0?"-":"+",d=Math.abs(T),b=(0,t.default)(Math.floor(d/60),2),D=(0,t.default)(d%60,2);return o+b+m+D}var M=g;a.default=M,e.exports=a.default})(Ia,ve);var _e={},Ka={get exports(){return _e},set exports(e){_e=e}};(function(e,a){Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0;var u=function(r,n){switch(r){case"P":return n.date({width:"short"});case"PP":return n.date({width:"medium"});case"PPP":return n.date({width:"long"});case"PPPP":default:return n.date({width:"full"})}},l=function(r,n){switch(r){case"p":return n.time({width:"short"});case"pp":return n.time({width:"medium"});case"ppp":return n.time({width:"long"});case"pppp":default:return n.time({width:"full"})}},v=function(r,n){var c=r.match(/(P+)(p+)?/)||[],g=c[1],y=c[2];if(!y)return u(r,n);var h;switch(g){case"P":h=n.dateTime({width:"short"});break;case"PP":h=n.dateTime({width:"medium"});break;case"PPP":h=n.dateTime({width:"long"});break;case"PPPP":default:h=n.dateTime({width:"full"});break}return h.replace("{{date}}",u(g,n)).replace("{{time}}",l(y,n))},s={p:l,P:v},i=s;a.default=i,e.exports=a.default})(Ka,_e);var j={},Qa={get exports(){return j},set exports(e){j=e}};(function(e,a){Object.defineProperty(a,"__esModule",{value:!0}),a.default=u;function u(l){var v=new Date(Date.UTC(l.getFullYear(),l.getMonth(),l.getDate(),l.getHours(),l.getMinutes(),l.getSeconds(),l.getMilliseconds()));return v.setUTCFullYear(l.getFullYear()),l.getTime()-v.getTime()}e.exports=a.default})(Qa,j);var ne={};Object.defineProperty(ne,"__esModule",{value:!0});ne.isProtectedDayOfYearToken=et;ne.isProtectedWeekYearToken=at;ne.throwProtectedError=tt;var Ja=["D","DD"],ja=["YY","YYYY"];function et(e){return Ja.indexOf(e)!==-1}function at(e){return ja.indexOf(e)!==-1}function tt(e,a,u){if(e==="YYYY")throw new RangeError("Use `yyyy` instead of `YYYY` (in `".concat(a,"`) for formatting years to the input `").concat(u,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if(e==="YY")throw new RangeError("Use `yy` instead of `YY` (in `".concat(a,"`) for formatting years to the input `").concat(u,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if(e==="D")throw new RangeError("Use `d` instead of `D` (in `".concat(a,"`) for formatting days of the month to the input `").concat(u,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if(e==="DD")throw new RangeError("Use `dd` instead of `DD` (in `".concat(a,"`) for formatting days of the month to the input `").concat(u,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"))}var Ae={},rt={get exports(){return Ae},set exports(e){Ae=e}},ye={},nt={get exports(){return ye},set exports(e){ye=e}},we={},it={get exports(){return we},set exports(e){we=e}};(function(e,a){Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0;var u={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}},l=function(i,t,r){var n,c=u[i];return typeof c=="string"?n=c:t===1?n=c.one:n=c.other.replace("{{count}}",t.toString()),r!=null&&r.addSuffix?r.comparison&&r.comparison>0?"in "+n:n+" ago":n},v=l;a.default=v,e.exports=a.default})(it,we);var De={},ot={get exports(){return De},set exports(e){De=e}},xe={},ut={get exports(){return xe},set exports(e){xe=e}};(function(e,a){Object.defineProperty(a,"__esModule",{value:!0}),a.default=u;function u(l){return function(){var v=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},s=v.width?String(v.width):l.defaultWidth,i=l.formats[s]||l.formats[l.defaultWidth];return i}}e.exports=a.default})(ut,xe);(function(e,a){Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0;var u=l(xe);function l(n){return n&&n.__esModule?n:{default:n}}var v={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},s={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},i={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},t={date:(0,u.default)({formats:v,defaultWidth:"full"}),time:(0,u.default)({formats:s,defaultWidth:"full"}),dateTime:(0,u.default)({formats:i,defaultWidth:"full"})},r=t;a.default=r,e.exports=a.default})(ot,De);var Se={},st={get exports(){return Se},set exports(e){Se=e}};(function(e,a){Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0;var u={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},l=function(i,t,r,n){return u[i]},v=l;a.default=v,e.exports=a.default})(st,Se);var ze={},ft={get exports(){return ze},set exports(e){ze=e}},Oe={},lt={get exports(){return Oe},set exports(e){Oe=e}};(function(e,a){Object.defineProperty(a,"__esModule",{value:!0}),a.default=u;function u(l){return function(v,s){var i=s!=null&&s.context?String(s.context):"standalone",t;if(i==="formatting"&&l.formattingValues){var r=l.defaultFormattingWidth||l.defaultWidth,n=s!=null&&s.width?String(s.width):r;t=l.formattingValues[n]||l.formattingValues[r]}else{var c=l.defaultWidth,g=s!=null&&s.width?String(s.width):l.defaultWidth;t=l.values[g]||l.values[c]}var y=l.argumentCallback?l.argumentCallback(v):v;return t[y]}}e.exports=a.default})(lt,Oe);(function(e,a){Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0;var u=l(Oe);function l(h){return h&&h.__esModule?h:{default:h}}var v={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},s={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},i={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},t={narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},r={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},n={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},c=function(p,M){var T=Number(p),f=T%100;if(f>20||f<10)switch(f%10){case 1:return T+"st";case 2:return T+"nd";case 3:return T+"rd"}return T+"th"},g={ordinalNumber:c,era:(0,u.default)({values:v,defaultWidth:"wide"}),quarter:(0,u.default)({values:s,defaultWidth:"wide",argumentCallback:function(p){return p-1}}),month:(0,u.default)({values:i,defaultWidth:"wide"}),day:(0,u.default)({values:t,defaultWidth:"wide"}),dayPeriod:(0,u.default)({values:r,defaultWidth:"wide",formattingValues:n,defaultFormattingWidth:"wide"})},y=g;a.default=y,e.exports=a.default})(ft,ze);var Pe={},dt={get exports(){return Pe},set exports(e){Pe=e}},Ee={},ct={get exports(){return Ee},set exports(e){Ee=e}};(function(e,a){Object.defineProperty(a,"__esModule",{value:!0}),a.default=u;function u(s){return function(i){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=t.width,n=r&&s.matchPatterns[r]||s.matchPatterns[s.defaultMatchWidth],c=i.match(n);if(!c)return null;var g=c[0],y=r&&s.parsePatterns[r]||s.parsePatterns[s.defaultParseWidth],h=Array.isArray(y)?v(y,function(T){return T.test(g)}):l(y,function(T){return T.test(g)}),p;p=s.valueCallback?s.valueCallback(h):h,p=t.valueCallback?t.valueCallback(p):p;var M=i.slice(g.length);return{value:p,rest:M}}}function l(s,i){for(var t in s)if(s.hasOwnProperty(t)&&i(s[t]))return t}function v(s,i){for(var t=0;t1&&arguments[1]!==void 0?arguments[1]:{},i=v.match(l.matchPattern);if(!i)return null;var t=i[0],r=v.match(l.parsePattern);if(!r)return null;var n=l.valueCallback?l.valueCallback(r[0]):r[0];n=s.valueCallback?s.valueCallback(n):n;var c=v.slice(t.length);return{value:n,rest:c}}}e.exports=a.default})(mt,Ce);(function(e,a){Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0;var u=v(Ee),l=v(Ce);function v(o){return o&&o.__esModule?o:{default:o}}var s=/^(\d+)(th|st|nd|rd)?/i,i=/\d+/i,t={narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},r={any:[/^b/i,/^(a|c)/i]},n={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},c={any:[/1/i,/2/i,/3/i,/4/i]},g={narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},y={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},h={narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},p={narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},M={narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},T={any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},f={ordinalNumber:(0,l.default)({matchPattern:s,parsePattern:i,valueCallback:function(d){return parseInt(d,10)}}),era:(0,u.default)({matchPatterns:t,defaultMatchWidth:"wide",parsePatterns:r,defaultParseWidth:"any"}),quarter:(0,u.default)({matchPatterns:n,defaultMatchWidth:"wide",parsePatterns:c,defaultParseWidth:"any",valueCallback:function(d){return d+1}}),month:(0,u.default)({matchPatterns:g,defaultMatchWidth:"wide",parsePatterns:y,defaultParseWidth:"any"}),day:(0,u.default)({matchPatterns:h,defaultMatchWidth:"wide",parsePatterns:p,defaultParseWidth:"any"}),dayPeriod:(0,u.default)({matchPatterns:M,defaultMatchWidth:"any",parsePatterns:T,defaultParseWidth:"any"})},m=f;a.default=m,e.exports=a.default})(dt,Pe);(function(e,a){Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0;var u=t(we),l=t(De),v=t(Se),s=t(ze),i=t(Pe);function t(c){return c&&c.__esModule?c:{default:c}}var r={code:"en-US",formatDistance:u.default,formatLong:l.default,formatRelative:v.default,localize:s.default,match:i.default,options:{weekStartsOn:0,firstWeekContainsDate:1}},n=r;a.default=n,e.exports=a.default})(nt,ye);(function(e,a){Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0;var u=l(ye);function l(s){return s&&s.__esModule?s:{default:s}}var v=u.default;a.default=v,e.exports=a.default})(rt,Ae);(function(e,a){Object.defineProperty(a,"__esModule",{value:!0}),a.default=o;var u=h(le),l=h(ce),v=h(C),s=h(ve),i=h(_e),t=h(j),r=ne,n=h(U),c=h(P),g=q,y=h(Ae);function h(b){return b&&b.__esModule?b:{default:b}}var p=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,M=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,T=/^'([^]*?)'?$/,f=/''/g,m=/[a-zA-Z]/;function o(b,D,S){var w,_,A,x,z,O,G,Y,k,W,N,I,He,Le,Fe,qe,$e,Be;(0,c.default)(2,arguments);var la=String(D),X=(0,g.getDefaultOptions)(),Z=(w=(_=S==null?void 0:S.locale)!==null&&_!==void 0?_:X.locale)!==null&&w!==void 0?w:y.default,Xe=(0,n.default)((A=(x=(z=(O=S==null?void 0:S.firstWeekContainsDate)!==null&&O!==void 0?O:S==null||(G=S.locale)===null||G===void 0||(Y=G.options)===null||Y===void 0?void 0:Y.firstWeekContainsDate)!==null&&z!==void 0?z:X.firstWeekContainsDate)!==null&&x!==void 0?x:(k=X.locale)===null||k===void 0||(W=k.options)===null||W===void 0?void 0:W.firstWeekContainsDate)!==null&&A!==void 0?A:1);if(!(Xe>=1&&Xe<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var Ze=(0,n.default)((N=(I=(He=(Le=S==null?void 0:S.weekStartsOn)!==null&&Le!==void 0?Le:S==null||(Fe=S.locale)===null||Fe===void 0||(qe=Fe.options)===null||qe===void 0?void 0:qe.weekStartsOn)!==null&&He!==void 0?He:X.weekStartsOn)!==null&&I!==void 0?I:($e=X.locale)===null||$e===void 0||(Be=$e.options)===null||Be===void 0?void 0:Be.weekStartsOn)!==null&&N!==void 0?N:0);if(!(Ze>=0&&Ze<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");if(!Z.localize)throw new RangeError("locale must contain localize property");if(!Z.formatLong)throw new RangeError("locale must contain formatLong property");var ie=(0,v.default)(b);if(!(0,u.default)(ie))throw new RangeError("Invalid time value");var da=(0,t.default)(ie),ca=(0,l.default)(ie,da),ma={firstWeekContainsDate:Xe,weekStartsOn:Ze,locale:Z,_originalDate:ie},va=la.match(M).map(function(E){var R=E[0];if(R==="p"||R==="P"){var oe=i.default[R];return oe(E,Z.formatLong)}return E}).join("").match(p).map(function(E){if(E==="''")return"'";var R=E[0];if(R==="'")return d(E);var oe=s.default[R];if(oe)return!(S!=null&&S.useAdditionalWeekYearTokens)&&(0,r.isProtectedWeekYearToken)(E)&&(0,r.throwProtectedError)(E,D,String(b)),!(S!=null&&S.useAdditionalDayOfYearTokens)&&(0,r.isProtectedDayOfYearToken)(E)&&(0,r.throwProtectedError)(E,D,String(b)),oe(ca,E,Z.localize,ma);if(R.match(m))throw new RangeError("Format string contains an unescaped latin alphabet character `"+R+"`");return E}).join("");return va}function d(b){var D=b.match(T);return D?D[1].replace(f,"'"):b}e.exports=a.default})(za,fe);var Ge={},vt={get exports(){return Ge},set exports(e){Ge=e}},ke={},Tt={get exports(){return ke},set exports(e){ke=e}};(function(e,a){Object.defineProperty(a,"__esModule",{value:!0}),a.default=u;function u(i,t,r){var n=s(i,r.timeZone,r.locale);return n.formatToParts?l(n,t):v(n,t)}function l(i,t){for(var r=i.formatToParts(t),n=r.length-1;n>=0;--n)if(r[n].type==="timeZoneName")return r[n].value}function v(i,t){var r=i.format(t).replace(/\u200E/g,""),n=/ [\w-+ ]+$/.exec(r);return n?n[0].substr(1):""}function s(i,t,r){if(r&&!r.code)throw new Error("date-fns-tz error: Please set a language code on the locale object imported from date-fns, e.g. `locale.code = 'en-US'`");return new Intl.DateTimeFormat(r?[r.code,"en-US"]:void 0,{timeZone:t,timeZoneName:i})}e.exports=a.default})(Tt,ke);var L={},ht={get exports(){return L},set exports(e){L=e}},Ne={},bt={get exports(){return Ne},set exports(e){Ne=e}};(function(e,a){Object.defineProperty(a,"__esModule",{value:!0}),a.default=u;function u(r,n){var c=t(n);return c.formatToParts?v(c,r):s(c,r)}var l={year:0,month:1,day:2,hour:3,minute:4,second:5};function v(r,n){try{for(var c=r.formatToParts(n),g=[],y=0;y=0&&(g[h]=parseInt(c[y].value,10))}return g}catch(p){if(p instanceof RangeError)return[NaN];throw p}}function s(r,n){var c=r.format(n).replace(/\u200E/g,""),g=/(\d+)\/(\d+)\/(\d+),? (\d+):(\d+):(\d+)/.exec(c);return[g[3],g[1],g[2],g[4],g[5],g[6]]}var i={};function t(r){if(!i[r]){var n=new Intl.DateTimeFormat("en-US",{hour12:!1,timeZone:"America/New_York",year:"numeric",month:"numeric",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit"}).format(new Date("2014-06-25T04:00:00.123Z")),c=n==="06/25/2014, 00:00:00"||n==="‎06‎/‎25‎/‎2014‎ ‎00‎:‎00‎:‎00";i[r]=c?new Intl.DateTimeFormat("en-US",{hour12:!1,timeZone:r,year:"numeric",month:"numeric",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit"}):new Intl.DateTimeFormat("en-US",{hourCycle:"h23",timeZone:r,year:"numeric",month:"numeric",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit"})}return i[r]}e.exports=a.default})(bt,Ne);var ee={},gt={get exports(){return ee},set exports(e){ee=e}};(function(e,a){Object.defineProperty(a,"__esModule",{value:!0}),a.default=u;function u(l,v,s,i,t,r,n){var c=new Date(0);return c.setUTCFullYear(l,v,s),c.setUTCHours(i,t,r,n),c}e.exports=a.default})(gt,ee);(function(e,a){Object.defineProperty(a,"__esModule",{value:!0}),a.default=r;var u=v(Ne),l=v(ee);function v(M){return M&&M.__esModule?M:{default:M}}var s=36e5,i=6e4,t={timezone:/([Z+-].*)$/,timezoneZ:/^(Z)$/,timezoneHH:/^([+-]\d{2})$/,timezoneHHMM:/^([+-]\d{2}):?(\d{2})$/};function r(M,T,f){var m,o;if(M===""||(m=t.timezoneZ.exec(M),m))return 0;var d;if(m=t.timezoneHH.exec(M),m)return d=parseInt(m[1],10),y(d)?-(d*s):NaN;if(m=t.timezoneHHMM.exec(M),m){d=parseInt(m[1],10);var b=parseInt(m[2],10);return y(d,b)?(o=Math.abs(d)*s+b*i,d>0?-o:o):NaN}if(p(M)){T=new Date(T||Date.now());var D=f?T:n(T),S=c(D,M),w=f?S:g(T,S,M);return-w}return NaN}function n(M){return(0,l.default)(M.getFullYear(),M.getMonth(),M.getDate(),M.getHours(),M.getMinutes(),M.getSeconds(),M.getMilliseconds())}function c(M,T){var f=(0,u.default)(M,T),m=(0,l.default)(f[0],f[1]-1,f[2],f[3]%24,f[4],f[5],0).getTime(),o=M.getTime(),d=o%1e3;return o-=d>=0?d:1e3+d,m-o}function g(M,T,f){var m=M.getTime(),o=m-T,d=c(new Date(o),f);if(T===d)return T;o-=d-T;var b=c(new Date(o),f);return d===b?d:Math.max(d,b)}function y(M,T){return-23<=M&&M<=23&&(T==null||0<=T&&T<=59)}var h={};function p(M){if(h[M])return!0;try{return new Intl.DateTimeFormat(void 0,{timeZone:M}),h[M]=!0,!0}catch{return!1}}e.exports=a.default})(ht,L);(function(e,a){Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0;var u=v(ke),l=v(L);function v(h){return h&&h.__esModule?h:{default:h}}var s=60*1e3,i={X:function(h,p,M,T){var f=t(T.timeZone,T._originalDate||h);if(f===0)return"Z";switch(p){case"X":return c(f);case"XXXX":case"XX":return n(f);case"XXXXX":case"XXX":default:return n(f,":")}},x:function(h,p,M,T){var f=t(T.timeZone,T._originalDate||h);switch(p){case"x":return c(f);case"xxxx":case"xx":return n(f);case"xxxxx":case"xxx":default:return n(f,":")}},O:function(h,p,M,T){var f=t(T.timeZone,T._originalDate||h);switch(p){case"O":case"OO":case"OOO":return"GMT"+g(f,":");case"OOOO":default:return"GMT"+n(f,":")}},z:function(h,p,M,T){var f=T._originalDate||h;switch(p){case"z":case"zz":case"zzz":return(0,u.default)("short",f,T);case"zzzz":default:return(0,u.default)("long",f,T)}}};function t(h,p){var M=h?(0,l.default)(h,p,!0)/s:p.getTimezoneOffset();if(Number.isNaN(M))throw new RangeError("Invalid time zone specified: "+h);return M}function r(h,p){for(var M=h<0?"-":"",T=Math.abs(h).toString();T.length0?"-":"+",f=Math.abs(h),m=r(Math.floor(f/60),2),o=r(Math.floor(f%60),2);return T+m+M+o}function c(h,p){if(h%60===0){var M=h>0?"-":"+";return M+r(Math.abs(h)/60,2)}return n(h,p)}function g(h,p){var M=h>0?"-":"+",T=Math.abs(h),f=Math.floor(T/60),m=T%60;if(m===0)return M+String(f);var o=p||"";return M+String(f)+o+r(m,2)}var y=i;a.default=y,e.exports=a.default})(vt,Ge);var F={},Mt={get exports(){return F},set exports(e){F=e}},ae={},pt={get exports(){return ae},set exports(e){ae=e}};(function(e,a){Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0;var u=/(Z|[+-]\d{2}(?::?\d{2})?| UTC| [a-zA-Z]+\/[a-zA-Z_]+(?:\/[a-zA-Z_]+)?)$/,l=u;a.default=l,e.exports=a.default})(pt,ae);(function(e,a){Object.defineProperty(a,"__esModule",{value:!0}),a.default=g;var u=i(U),l=i(j),v=i(L),s=i(ae);function i(w){return w&&w.__esModule?w:{default:w}}var t=36e5,r=6e4,n=2,c={dateTimePattern:/^([0-9W+-]+)(T| )(.*)/,datePattern:/^([0-9W+-]+)(.*)/,plainTime:/:/,YY:/^(\d{2})$/,YYY:[/^([+-]\d{2})$/,/^([+-]\d{3})$/,/^([+-]\d{4})$/],YYYY:/^(\d{4})/,YYYYY:[/^([+-]\d{4})/,/^([+-]\d{5})/,/^([+-]\d{6})/],MM:/^-(\d{2})$/,DDD:/^-?(\d{3})$/,MMDD:/^-?(\d{2})-?(\d{2})$/,Www:/^-?W(\d{2})$/,WwwD:/^-?W(\d{2})-?(\d{1})$/,HH:/^(\d{2}([.,]\d*)?)$/,HHMM:/^(\d{2}):?(\d{2}([.,]\d*)?)$/,HHMMSS:/^(\d{2}):?(\d{2}):?(\d{2}([.,]\d*)?)$/,timeZone:s.default};function g(w,_){if(arguments.length<1)throw new TypeError("1 argument required, but only "+arguments.length+" present");if(w===null)return new Date(NaN);var A=_||{},x=A.additionalDigits==null?n:(0,u.default)(A.additionalDigits);if(x!==2&&x!==1&&x!==0)throw new RangeError("additionalDigits must be 0, 1 or 2");if(w instanceof Date||typeof w=="object"&&Object.prototype.toString.call(w)==="[object Date]")return new Date(w.getTime());if(typeof w=="number"||Object.prototype.toString.call(w)==="[object Number]")return new Date(w);if(!(typeof w=="string"||Object.prototype.toString.call(w)==="[object String]"))return new Date(NaN);var z=y(w),O=h(z.date,x),G=O.year,Y=O.restDateString,k=p(Y,G);if(isNaN(k))return new Date(NaN);if(k){var W=k.getTime(),N=0,I;if(z.time&&(N=M(z.time),isNaN(N)))return new Date(NaN);if(z.timeZone||A.timeZone){if(I=(0,v.default)(z.timeZone||A.timeZone,new Date(W+N)),isNaN(I))return new Date(NaN)}else I=(0,l.default)(new Date(W+N)),I=(0,l.default)(new Date(W+N+I));return new Date(W+N+I)}else return new Date(NaN)}function y(w){var _={},A=c.dateTimePattern.exec(w),x;if(A?(_.date=A[1],x=A[3]):(A=c.datePattern.exec(w),A?(_.date=A[1],x=A[2]):(_.date=null,x=w)),x){var z=c.timeZone.exec(x);z?(_.time=x.replace(z[1],""),_.timeZone=z[1].trim()):_.time=x}return _}function h(w,_){var A=c.YYY[_],x=c.YYYYY[_],z;if(z=c.YYYY.exec(w)||x.exec(w),z){var O=z[1];return{year:parseInt(O,10),restDateString:w.slice(O.length)}}if(z=c.YY.exec(w)||A.exec(w),z){var G=z[1];return{year:parseInt(G,10)*100,restDateString:w.slice(G.length)}}return{year:null}}function p(w,_){if(_===null)return null;var A,x,z,O;if(w.length===0)return x=new Date(0),x.setUTCFullYear(_),x;if(A=c.MM.exec(w),A)return x=new Date(0),z=parseInt(A[1],10)-1,d(_,z)?(x.setUTCFullYear(_,z),x):new Date(NaN);if(A=c.DDD.exec(w),A){x=new Date(0);var G=parseInt(A[1],10);return b(_,G)?(x.setUTCFullYear(_,0,G),x):new Date(NaN)}if(A=c.MMDD.exec(w),A){x=new Date(0),z=parseInt(A[1],10)-1;var Y=parseInt(A[2],10);return d(_,z,Y)?(x.setUTCFullYear(_,z,Y),x):new Date(NaN)}if(A=c.Www.exec(w),A)return O=parseInt(A[1],10)-1,D(_,O)?T(_,O):new Date(NaN);if(A=c.WwwD.exec(w),A){O=parseInt(A[1],10)-1;var k=parseInt(A[2],10)-1;return D(_,O,k)?T(_,O,k):new Date(NaN)}return null}function M(w){var _,A,x;if(_=c.HH.exec(w),_)return A=parseFloat(_[1].replace(",",".")),S(A)?A%24*t:NaN;if(_=c.HHMM.exec(w),_)return A=parseInt(_[1],10),x=parseFloat(_[2].replace(",",".")),S(A,x)?A%24*t+x*r:NaN;if(_=c.HHMMSS.exec(w),_){A=parseInt(_[1],10),x=parseInt(_[2],10);var z=parseFloat(_[3].replace(",","."));return S(A,x,z)?A%24*t+x*r+z*1e3:NaN}return null}function T(w,_,A){_=_||0,A=A||0;var x=new Date(0);x.setUTCFullYear(w,0,4);var z=x.getUTCDay()||7,O=_*7+A+1-z;return x.setUTCDate(x.getUTCDate()+O),x}var f=[31,28,31,30,31,30,31,31,30,31,30,31],m=[31,29,31,30,31,30,31,31,30,31,30,31];function o(w){return w%400===0||w%4===0&&w%100!==0}function d(w,_,A){if(_<0||_>11)return!1;if(A!=null){if(A<1)return!1;var x=o(w);if(x&&A>m[_]||!x&&A>f[_])return!1}return!0}function b(w,_){if(_<1)return!1;var A=o(w);return!(A&&_>366||!A&&_>365)}function D(w,_,A){return!(_<0||_>52||A!=null&&(A<0||A>6))}function S(w,_,A){return!(w!=null&&(w<0||w>=25)||_!=null&&(_<0||_>=60)||A!=null&&(A<0||A>=60))}e.exports=a.default})(Mt,F);(function(e,a){Object.defineProperty(a,"__esModule",{value:!0}),a.default=t;var u=s(fe),l=s(Ge),v=s(F);function s(r){return r&&r.__esModule?r:{default:r}}var i=/([xXOz]+)|''|'(''|[^'])+('|$)/g;function t(r,n,c){var g=String(n),y=c||{},h=g.match(i);if(h){var p=(0,v.default)(r,y);g=h.reduce(function(M,T){if(T[0]==="'")return M;var f=M.indexOf(T),m=M[f-1]==="'",o=M.replace(T,"'"+l.default[T[0]](p,T,null,y)+"'");return m?o.substring(0,f-1)+o.substring(f+1):o},g)}return(0,u.default)(r,g,y)}e.exports=a.default})(Sa,V);var Ie={},_t={get exports(){return Ie},set exports(e){Ie=e}},te={},At={get exports(){return te},set exports(e){te=e}},Ue={},yt={get exports(){return Ue},set exports(e){Ue=e}};(function(e,a){Object.defineProperty(a,"__esModule",{value:!0}),a.default=u;function u(l,v){if(l==null)throw new TypeError("assign requires that input parameter not be null or undefined");for(var s in v)Object.prototype.hasOwnProperty.call(v,s)&&(l[s]=v[s]);return l}e.exports=a.default})(yt,Ue);(function(e,a){Object.defineProperty(a,"__esModule",{value:!0}),a.default=v;var u=l(Ue);function l(s){return s&&s.__esModule?s:{default:s}}function v(s){return(0,u.default)({},s)}e.exports=a.default})(At,te);var re={},wt={get exports(){return re},set exports(e){re=e}};(function(e,a){Object.defineProperty(a,"__esModule",{value:!0}),a.default=s;var u=v(L),l=v(F);function v(i){return i&&i.__esModule?i:{default:i}}function s(i,t,r){var n=(0,l.default)(i,r),c=(0,u.default)(t,n,!0),g=new Date(n.getTime()-c),y=new Date(0);return y.setFullYear(g.getUTCFullYear(),g.getUTCMonth(),g.getUTCDate()),y.setHours(g.getUTCHours(),g.getUTCMinutes(),g.getUTCSeconds(),g.getUTCMilliseconds()),y}e.exports=a.default})(wt,re);(function(e,a){Object.defineProperty(a,"__esModule",{value:!0}),a.default=i;var u=s(te),l=s(V),v=s(re);function s(t){return t&&t.__esModule?t:{default:t}}function i(t,r,n,c){var g=(0,u.default)(c);return g.timeZone=r,(0,l.default)((0,v.default)(t,r),n,g)}e.exports=a.default})(_t,Ie);var Ye={},Dt={get exports(){return Ye},set exports(e){Ye=e}};(function(e,a){Object.defineProperty(a,"__esModule",{value:!0}),a.default=v;var u=l(L);function l(s){return s&&s.__esModule?s:{default:s}}function v(s,i){return-(0,u.default)(s,i)}e.exports=a.default})(Dt,Ye);var We={},xt={get exports(){return We},set exports(e){We=e}};(function(e,a){Object.defineProperty(a,"__esModule",{value:!0}),a.default=r;var u=t(te),l=t(F),v=t(ae),s=t(L),i=t(ee);function t(n){return n&&n.__esModule?n:{default:n}}function r(n,c,g){if(typeof n=="string"&&!n.match(v.default)){var y=(0,u.default)(g);return y.timeZone=c,(0,l.default)(n,y)}var h=(0,l.default)(n,g),p=(0,i.default)(h.getFullYear(),h.getMonth(),h.getDate(),h.getHours(),h.getMinutes(),h.getSeconds(),h.getMilliseconds()).getTime(),M=(0,s.default)(c,new Date(p));return new Date(p+M)}e.exports=a.default})(xt,We);var ta={format:V,formatInTimeZone:Ie,getTimezoneOffset:Ye,toDate:F,utcToZonedTime:re,zonedTimeToUtc:We};const St="yyyy-MM-dd z HH:mm:ss.SS";function Gt(e,a="UTC",u={}){if(!e)return"";const{relative:l=!1,relativeLabel:v="ago",relativeStrict:s=!1,abbrFormat:i=!1}=u;try{ba(e)&&(e=ga(e));const t=Ma(e),r=i?t.getSeconds()?"yyyy-MM-dd HH:mm:ss a":"yyyy-MM-dd HH:mm a":St;if(a==="local")return l?s?xa(t)+` ${v}`:Da(t)+` ${v}`:ta.format(t,r);const n=Pt(a);return ta.formatInTimeZone(t,n,r)}catch(t){return console.error("Error formatting date:",t),""}}function kt(e){const a=pa(e);return a instanceof Date&&!isNaN(a.getTime())}function Nt(e,a){if(e===void 0)return"";if(e===0)return`${a}±00:00`;const u=Math.abs(e),l=u>9?`${u}:00`:`0${u}:00`;if(e>0)return`${a}+${l}`;if(e<0)return`${a}-${l}`}function fa(){return Intl.DateTimeFormat().resolvedOptions().timeZone}function zt(){const e=fa(),a=Ot.find(({zones:u})=>u==null?void 0:u.includes(e));return a?`${a.label} (${a.abbr})`:e}function It(e){if(e==="local")return zt();const a=Qe[e];return a?`${e} (${a.abbr})`:e}const Ut=ra("timeFormat","UTC"),Yt=ra("relativeTime",!1),Qe={"Greenwich Mean Time":{abbr:"GMT",offset:0,zones:["Africa/Abidjan","Africa/Accra","Africa/Bamako","Africa/Banjul","Africa/Bissau","Africa/Conakry","Africa/Dakar","Africa/Freetown","Africa/Lome","Africa/Monrovia","Africa/Nouakchott","Africa/Ouagadougou","Africa/Sao_Tome","America/Danmarkshavn","Atlantic/Reykjavik","Atlantic/St_Helena"]},"East Africa Time":{abbr:"GMT+3",offset:3,zones:["Africa/Addis_Ababa","Africa/Asmera","Africa/Dar_es_Salaam","Africa/Djibouti","Africa/Kampala","Africa/Mogadishu","Africa/Nairobi","Indian/Antananarivo","Indian/Comoro","Indian/Mayotte"]},"Central European Standard Time":{abbr:"GMT+1",offset:1,zones:["Africa/Algiers","Africa/Tunis"]},"West Africa Standard Time":{abbr:"GMT+1",offset:1,zones:["Africa/Bangui","Africa/Brazzaville","Africa/Douala","Africa/Kinshasa","Africa/Lagos","Africa/Libreville","Africa/Luanda","Africa/Malabo","Africa/Ndjamena","Africa/Niamey","Africa/Porto-Novo"]},"Central Africa Time":{abbr:"GMT+2",offset:2,zones:["Africa/Blantyre","Africa/Bujumbura","Africa/Gaborone","Africa/Harare","Africa/Juba","Africa/Khartoum","Africa/Kigali","Africa/Lubumbashi","Africa/Lusaka","Africa/Maputo","Africa/Windhoek"]},"Eastern European Summer Time":{abbr:"GMT+3",offset:3,zones:["Africa/Cairo","Asia/Beirut","Asia/Gaza","Asia/Hebron","Asia/Nicosia","Europe/Athens","Europe/Bucharest","Europe/Chisinau","Europe/Helsinki","Europe/Kiev","Europe/Mariehamn","Europe/Riga","Europe/Sofia","Europe/Tallinn","Europe/Uzhgorod","Europe/Vilnius","Europe/Zaporozhye"]},"GMT+01:00":{abbr:"GMT+1",offset:1,zones:["Africa/Casablanca","Africa/El_Aaiun","Europe/Guernsey","Europe/Isle_of_Man","Europe/Jersey"]},"Central European Summer Time":{abbr:"GMT+2",offset:2,zones:["Africa/Ceuta","Arctic/Longyearbyen","Europe/Amsterdam","Europe/Andorra","Europe/Belgrade","Europe/Berlin","Europe/Bratislava","Europe/Brussels","Europe/Budapest","Europe/Busingen","Europe/Copenhagen","Europe/Gibraltar","Europe/Ljubljana","Europe/Luxembourg","Europe/Madrid","Europe/Malta","Europe/Monaco","Europe/Oslo","Europe/Paris","Europe/Podgorica","Europe/Prague","Europe/Rome","Europe/San_Marino","Europe/Sarajevo","Europe/Skopje","Europe/Stockholm","Europe/Tirane","Europe/Vaduz","Europe/Vatican","Europe/Vienna","Europe/Warsaw","Europe/Zagreb","Europe/Zurich"]},"South Africa Standard Time":{abbr:"GMT+2",offset:2,zones:["Africa/Johannesburg","Africa/Maseru","Africa/Mbabane"]},"Eastern European Standard Time":{abbr:"GMT+2",offset:2,zones:["Africa/Tripoli","Europe/Kaliningrad"]},"Hawaii-Aleutian Daylight Time":{abbr:"HADT",offset:-9,zones:["America/Adak"]},"Alaska Daylight Time":{abbr:"AKDT",offset:-8,zones:["America/Anchorage","America/Juneau","America/Metlakatla","America/Nome","America/Sitka","America/Yakutat"]},"Atlantic Standard Time":{abbr:"AST",offset:-4,zones:["America/Anguilla","America/Antigua","America/Aruba","America/Barbados","America/Blanc-Sablon","America/Curacao","America/Dominica","America/Grenada","America/Guadeloupe","America/Kralendijk","America/Lower_Princes","America/Marigot","America/Martinique","America/Montserrat","America/Port_of_Spain","America/Puerto_Rico","America/Santo_Domingo","America/St_Barthelemy","America/St_Kitts","America/St_Lucia","America/St_Thomas","America/St_Vincent","America/Tortola"]},"Brasilia Standard Time":{abbr:"GMT-3",offset:-3,zones:["America/Araguaina","America/Bahia","America/Belem","America/Fortaleza","America/Maceio","America/Recife","America/Santarem","America/Sao_Paulo"]},"Argentina Standard Time":{abbr:"GMT-3",offset:-3,zones:["America/Argentina/La_Rioja","America/Argentina/Rio_Gallegos","America/Argentina/Salta","America/Argentina/San_Juan","America/Argentina/San_Luis","America/Argentina/Tucuman","America/Argentina/Ushuaia","America/Buenos_Aires","America/Catamarca","America/Cordoba","America/Jujuy","America/Mendoza"]},"Paraguay Standard Time":{abbr:"GMT-4",offset:-4,zones:["America/Asuncion"]},"Central Standard Time":{abbr:"CST",offset:-6,zones:["America/Bahia_Banderas","America/Belize","America/Chihuahua","America/Costa_Rica","America/El_Salvador","America/Guatemala","America/Managua","America/Merida","America/Mexico_City","America/Monterrey","America/Regina","America/Swift_Current","America/Tegucigalpa"]},"Amazon Standard Time":{abbr:"GMT-4",offset:-4,zones:["America/Boa_Vista","America/Campo_Grande","America/Cuiaba","America/Manaus","America/Porto_Velho"]},"Colombia Standard Time":{abbr:"GMT-5",offset:-5,zones:["America/Bogota"]},"Mountain Daylight Time":{abbr:"MDT",offset:-6,zones:["America/Boise","America/Cambridge_Bay","America/Ciudad_Juarez","America/Denver","America/Edmonton","America/Inuvik","America/Yellowknife"]},"Eastern Standard Time":{abbr:"EST",offset:-5,zones:["America/Cancun","America/Cayman","America/Coral_Harbour","America/Jamaica","America/Panama"]},"Venezuela Time":{abbr:"GMT-4",offset:-4,zones:["America/Caracas"]},"French Guiana Time":{abbr:"GMT-3",offset:-3,zones:["America/Cayenne"]},"Central Daylight Time":{abbr:"CDT",offset:-5,zones:["America/Chicago","America/Indiana/Knox","America/Indiana/Tell_City","America/Matamoros","America/Menominee","America/North_Dakota/Beulah","America/North_Dakota/Center","America/North_Dakota/New_Salem","America/Ojinaga","America/Rainy_River","America/Rankin_Inlet","America/Resolute","America/Winnipeg"]},"Mountain Standard Time":{abbr:"MST",offset:-7,zones:["America/Creston","America/Dawson_Creek","America/Fort_Nelson","America/Phoenix"]},"Yukon Time":{abbr:"GMT-7",offset:-7,zones:["America/Dawson","America/Whitehorse"]},"Eastern Daylight Time":{abbr:"EDT",offset:-4,zones:["America/Detroit","America/Grand_Turk","America/Indiana/Marengo","America/Indiana/Petersburg","America/Indiana/Vevay","America/Indiana/Vincennes","America/Indiana/Winamac","America/Indianapolis","America/Iqaluit","America/Kentucky/Monticello","America/Louisville","America/Nassau","America/New_York","America/Nipigon","America/Pangnirtung","America/Port-au-Prince","America/Thunder_Bay","America/Toronto"]},"Acre Standard Time":{abbr:"GMT-5",offset:-5,zones:["America/Eirunepe","America/Rio_Branco"]},"Atlantic Daylight Time":{abbr:"ADT",offset:-3,zones:["America/Glace_Bay","America/Goose_Bay","America/Halifax","America/Moncton","America/Thule","Atlantic/Bermuda"]},"West Greenland Summer Time":{abbr:"GMT-2",offset:-2,zones:["America/Godthab"]},"Ecuador Time":{abbr:"GMT-5",offset:-5,zones:["America/Guayaquil"]},"Guyana Time":{abbr:"GMT-4",offset:-4,zones:["America/Guyana"]},"Cuba Daylight Time":{abbr:"GMT-4",offset:-4,zones:["America/Havana"]},"Mexican Pacific Standard Time":{abbr:"GMT-7",offset:-7,zones:["America/Hermosillo","America/Mazatlan"]},"Bolivia Time":{abbr:"GMT-4",offset:-4,zones:["America/La_Paz"]},"Peru Standard Time":{abbr:"GMT-5",offset:-5,zones:["America/Lima"]},"Pacific Daylight Time":{abbr:"PDT",offset:-7,zones:["America/Los_Angeles","America/Tijuana","America/Vancouver"]},"St. Pierre & Miquelon Daylight Time":{abbr:"GMT-2",offset:-2,zones:["America/Miquelon"]},"Uruguay Standard Time":{abbr:"GMT-3",offset:-3,zones:["America/Montevideo"]},"GMT-04:00":{abbr:"GMT-4",offset:-4,zones:["America/Montreal"]},"Fernando de Noronha Standard Time":{abbr:"GMT-2",offset:-2,zones:["America/Noronha"]},"Suriname Time":{abbr:"GMT-3",offset:-3,zones:["America/Paramaribo"]},"GMT-03:00":{abbr:"GMT-3",offset:-3,zones:["America/Punta_Arenas","Antarctica/Palmer"]},"Northwest Mexico Daylight Time":{abbr:"GMT-7",offset:-7,zones:["America/Santa_Isabel"]},"Chile Standard Time":{abbr:"GMT-4",offset:-4,zones:["America/Santiago"]},"East Greenland Summer Time":{abbr:"GMT",offset:0,zones:["America/Scoresbysund"]},"Newfoundland Daylight Time":{abbr:"GMT-2:30",offset:-3,zones:["America/St_Johns"]},"Casey Time":{abbr:"GMT+11",offset:11,zones:["Antarctica/Casey"]},"Davis Time":{abbr:"GMT+7",offset:7,zones:["Antarctica/Davis"]},"Dumont-d’Urville Time":{abbr:"GMT+10",offset:10,zones:["Antarctica/DumontDUrville"]},"Australian Eastern Standard Time":{abbr:"GMT+10",offset:10,zones:["Antarctica/Macquarie","Australia/Brisbane","Australia/Currie","Australia/Hobart","Australia/Lindeman","Australia/Melbourne","Australia/Sydney"]},"Mawson Time":{abbr:"GMT+5",offset:5,zones:["Antarctica/Mawson"]},"New Zealand Standard Time":{abbr:"GMT+12",offset:12,zones:["Antarctica/McMurdo","Pacific/Auckland"]},"Rothera Time":{abbr:"GMT-3",offset:-3,zones:["Antarctica/Rothera"]},"Syowa Time":{abbr:"GMT+3",offset:3,zones:["Antarctica/Syowa"]},"GMT+02:00":{abbr:"GMT+2",offset:2,zones:["Antarctica/Troll"]},"Vostok Time":{abbr:"GMT+6",offset:6,zones:["Antarctica/Vostok"]},"Arabian Standard Time":{abbr:"GMT+3",offset:3,zones:["Asia/Aden","Asia/Baghdad","Asia/Bahrain","Asia/Kuwait","Asia/Qatar","Asia/Riyadh"]},"East Kazakhstan Time":{abbr:"GMT+6",offset:6,zones:["Asia/Almaty","Asia/Qostanay"]},"GMT+03:00":{abbr:"GMT+3",offset:3,zones:["Asia/Amman","Asia/Damascus","Asia/Famagusta","Europe/Istanbul","Europe/Kirov"]},"Anadyr Standard Time":{abbr:"GMT+12",offset:12,zones:["Asia/Anadyr"]},"West Kazakhstan Time":{abbr:"GMT+5",offset:5,zones:["Asia/Aqtau","Asia/Aqtobe","Asia/Atyrau","Asia/Oral","Asia/Qyzylorda"]},"Turkmenistan Standard Time":{abbr:"GMT+5",offset:5,zones:["Asia/Ashgabat"]},"Azerbaijan Standard Time":{abbr:"GMT+4",offset:4,zones:["Asia/Baku"]},"Indochina Time":{abbr:"GMT+7",offset:7,zones:["Asia/Bangkok","Asia/Phnom_Penh","Asia/Saigon","Asia/Vientiane"]},"GMT+07:00":{abbr:"GMT+7",offset:7,zones:["Asia/Barnaul","Asia/Tomsk"]},"Kyrgyzstan Time":{abbr:"GMT+6",offset:6,zones:["Asia/Bishkek"]},"Brunei Darussalam Time":{abbr:"GMT+8",offset:8,zones:["Asia/Brunei"]},"India Standard Time":{abbr:"GMT+5:30",offset:5,zones:["Asia/Calcutta","Asia/Colombo"]},"Yakutsk Standard Time":{abbr:"GMT+9",offset:9,zones:["Asia/Chita","Asia/Khandyga","Asia/Yakutsk"]},"Ulaanbaatar Standard Time":{abbr:"GMT+8",offset:8,zones:["Asia/Choibalsan","Asia/Ulaanbaatar"]},"Bangladesh Standard Time":{abbr:"GMT+6",offset:6,zones:["Asia/Dhaka"]},"East Timor Time":{abbr:"GMT+9",offset:9,zones:["Asia/Dili"]},"Gulf Standard Time":{abbr:"GMT+4",offset:4,zones:["Asia/Dubai","Asia/Muscat"]},"Tajikistan Time":{abbr:"GMT+5",offset:5,zones:["Asia/Dushanbe"]},"Hong Kong Standard Time":{abbr:"GMT+8",offset:8,zones:["Asia/Hong_Kong"]},"Hovd Standard Time":{abbr:"GMT+7",offset:7,zones:["Asia/Hovd"]},"Irkutsk Standard Time":{abbr:"GMT+8",offset:8,zones:["Asia/Irkutsk"]},"Western Indonesia Time":{abbr:"GMT+7",offset:7,zones:["Asia/Jakarta","Asia/Pontianak"]},"Eastern Indonesia Time":{abbr:"GMT+9",offset:9,zones:["Asia/Jayapura"]},"Israel Daylight Time":{abbr:"GMT+3",offset:3,zones:["Asia/Jerusalem"]},"Afghanistan Time":{abbr:"GMT+4:30",offset:4,zones:["Asia/Kabul"]},"Petropavlovsk-Kamchatski Standard Time":{abbr:"GMT+12",offset:12,zones:["Asia/Kamchatka"]},"Pakistan Standard Time":{abbr:"GMT+5",offset:5,zones:["Asia/Karachi"]},"Nepal Time":{abbr:"GMT+5:45",offset:5,zones:["Asia/Katmandu"]},"Krasnoyarsk Standard Time":{abbr:"GMT+7",offset:7,zones:["Asia/Krasnoyarsk","Asia/Novokuznetsk"]},"Malaysia Time":{abbr:"GMT+8",offset:8,zones:["Asia/Kuala_Lumpur","Asia/Kuching"]},"China Standard Time":{abbr:"GMT+8",offset:8,zones:["Asia/Macau","Asia/Shanghai"]},"Magadan Standard Time":{abbr:"GMT+11",offset:11,zones:["Asia/Magadan"]},"Central Indonesia Time":{abbr:"GMT+8",offset:8,zones:["Asia/Makassar"]},"Philippine Standard Time":{abbr:"GMT+8",offset:8,zones:["Asia/Manila"]},"Novosibirsk Standard Time":{abbr:"GMT+7",offset:7,zones:["Asia/Novosibirsk"]},"Omsk Standard Time":{abbr:"GMT+6",offset:6,zones:["Asia/Omsk"]},"Korean Standard Time":{abbr:"GMT+9",offset:9,zones:["Asia/Pyongyang","Asia/Seoul"]},"Myanmar Time":{abbr:"GMT+6:30",offset:6,zones:["Asia/Rangoon"]},"Sakhalin Standard Time":{abbr:"GMT+11",offset:11,zones:["Asia/Sakhalin"]},"Uzbekistan Standard Time":{abbr:"GMT+5",offset:5,zones:["Asia/Samarkand","Asia/Tashkent"]},"Singapore Standard Time":{abbr:"GMT+8",offset:8,zones:["Asia/Singapore"]},"GMT+11:00":{abbr:"GMT+11",offset:11,zones:["Asia/Srednekolymsk","Pacific/Bougainville"]},"Taipei Standard Time":{abbr:"GMT+8",offset:8,zones:["Asia/Taipei"]},"Georgia Standard Time":{abbr:"GMT+4",offset:4,zones:["Asia/Tbilisi"]},"Iran Standard Time":{abbr:"GMT+3:30",offset:3,zones:["Asia/Tehran"]},"Bhutan Time":{abbr:"GMT+6",offset:6,zones:["Asia/Thimphu"]},"Japan Standard Time":{abbr:"GMT+9",offset:9,zones:["Asia/Tokyo"]},"GMT+06:00":{abbr:"GMT+6",offset:6,zones:["Asia/Urumqi"]},"Vladivostok Standard Time":{abbr:"GMT+10",offset:10,zones:["Asia/Ust-Nera","Asia/Vladivostok"]},"Yekaterinburg Standard Time":{abbr:"GMT+5",offset:5,zones:["Asia/Yekaterinburg"]},"Armenia Standard Time":{abbr:"GMT+4",offset:4,zones:["Asia/Yerevan"]},"Azores Summer Time":{abbr:"GMT",offset:0,zones:["Atlantic/Azores"]},"Western European Summer Time":{abbr:"GMT+1",offset:1,zones:["Atlantic/Canary","Atlantic/Faeroe","Atlantic/Madeira","Europe/Lisbon"]},"Cape Verde Standard Time":{abbr:"GMT-1",offset:-1,zones:["Atlantic/Cape_Verde"]},"South Georgia Time":{abbr:"GMT-2",offset:-2,zones:["Atlantic/South_Georgia"]},"Falkland Islands Standard Time":{abbr:"GMT-3",offset:-3,zones:["Atlantic/Stanley"]},"Australian Central Standard Time":{abbr:"GMT+9:30",offset:9,zones:["Australia/Adelaide","Australia/Broken_Hill","Australia/Darwin"]},"Australian Central Western Standard Time":{abbr:"GMT+8:45",offset:8,zones:["Australia/Eucla"]},"Lord Howe Standard Time":{abbr:"GMT+10:30",offset:10,zones:["Australia/Lord_Howe"]},"Australian Western Standard Time":{abbr:"GMT+8",offset:8,zones:["Australia/Perth"]},"GMT+04:00":{abbr:"GMT+4",offset:4,zones:["Europe/Astrakhan","Europe/Saratov","Europe/Ulyanovsk"]},"Irish Standard Time":{abbr:"GMT+1",offset:1,zones:["Europe/Dublin"]},"British Summer Time":{abbr:"GMT+1",offset:1,zones:["Europe/London"]},"Moscow Standard Time":{abbr:"GMT+3",offset:3,zones:["Europe/Minsk","Europe/Moscow","Europe/Simferopol"]},"Samara Standard Time":{abbr:"GMT+4",offset:4,zones:["Europe/Samara"]},"Volgograd Standard Time":{abbr:"GMT+3",offset:3,zones:["Europe/Volgograd"]},"Indian Ocean Time":{abbr:"GMT+6",offset:6,zones:["Indian/Chagos"]},"Christmas Island Time":{abbr:"GMT+7",offset:7,zones:["Indian/Christmas"]},"Cocos Islands Time":{abbr:"GMT+6:30",offset:6,zones:["Indian/Cocos"]},"French Southern & Antarctic Time":{abbr:"GMT+5",offset:5,zones:["Indian/Kerguelen"]},"Seychelles Time":{abbr:"GMT+4",offset:4,zones:["Indian/Mahe"]},"Maldives Time":{abbr:"GMT+5",offset:5,zones:["Indian/Maldives"]},"Mauritius Standard Time":{abbr:"GMT+4",offset:4,zones:["Indian/Mauritius"]},"Réunion Time":{abbr:"GMT+4",offset:4,zones:["Indian/Reunion"]},"Apia Standard Time":{abbr:"GMT+13",offset:13,zones:["Pacific/Apia"]},"Chatham Standard Time":{abbr:"GMT+12:45",offset:12,zones:["Pacific/Chatham"]},"Easter Island Standard Time":{abbr:"GMT-6",offset:-6,zones:["Pacific/Easter"]},"Vanuatu Standard Time":{abbr:"GMT+11",offset:11,zones:["Pacific/Efate"]},"Phoenix Islands Time":{abbr:"GMT+13",offset:13,zones:["Pacific/Enderbury"]},"Tokelau Time":{abbr:"GMT+13",offset:13,zones:["Pacific/Fakaofo"]},"Fiji Standard Time":{abbr:"GMT+12",offset:12,zones:["Pacific/Fiji"]},"Tuvalu Time":{abbr:"GMT+12",offset:12,zones:["Pacific/Funafuti"]},"Galapagos Time":{abbr:"GMT-6",offset:-6,zones:["Pacific/Galapagos"]},"Gambier Time":{abbr:"GMT-9",offset:-9,zones:["Pacific/Gambier"]},"Solomon Islands Time":{abbr:"GMT+11",offset:11,zones:["Pacific/Guadalcanal"]},"Chamorro Standard Time":{abbr:"GMT+10",offset:10,zones:["Pacific/Guam","Pacific/Saipan"]},"Hawaii-Aleutian Standard Time":{abbr:"HST",offset:-10,zones:["Pacific/Honolulu","Pacific/Johnston"]},"Line Islands Time":{abbr:"GMT+14",offset:14,zones:["Pacific/Kiritimati"]},"Kosrae Time":{abbr:"GMT+11",offset:11,zones:["Pacific/Kosrae"]},"Marshall Islands Time":{abbr:"GMT+12",offset:12,zones:["Pacific/Kwajalein","Pacific/Majuro"]},"Marquesas Time":{abbr:"GMT-9:30",offset:-10,zones:["Pacific/Marquesas"]},"Samoa Standard Time":{abbr:"GMT-11",offset:-11,zones:["Pacific/Midway","Pacific/Pago_Pago"]},"Nauru Time":{abbr:"GMT+12",offset:12,zones:["Pacific/Nauru"]},"Niue Time":{abbr:"GMT-11",offset:-11,zones:["Pacific/Niue"]},"Norfolk Island Standard Time":{abbr:"GMT+11",offset:11,zones:["Pacific/Norfolk"]},"New Caledonia Standard Time":{abbr:"GMT+11",offset:11,zones:["Pacific/Noumea"]},"Palau Time":{abbr:"GMT+9",offset:9,zones:["Pacific/Palau"]},"Pitcairn Time":{abbr:"GMT-8",offset:-8,zones:["Pacific/Pitcairn"]},"Ponape Time":{abbr:"GMT+11",offset:11,zones:["Pacific/Ponape"]},"Papua New Guinea Time":{abbr:"GMT+10",offset:10,zones:["Pacific/Port_Moresby"]},"Cook Islands Standard Time":{abbr:"GMT-10",offset:-10,zones:["Pacific/Rarotonga"]},"Tahiti Time":{abbr:"GMT-10",offset:-10,zones:["Pacific/Tahiti"]},"Gilbert Islands Time":{abbr:"GMT+12",offset:12,zones:["Pacific/Tarawa"]},"Tonga Standard Time":{abbr:"GMT+13",offset:13,zones:["Pacific/Tongatapu"]},"Chuuk Time":{abbr:"GMT+10",offset:10,zones:["Pacific/Truk"]},"Wake Island Time":{abbr:"GMT+12",offset:12,zones:["Pacific/Wake"]},"Wallis & Futuna Time":{abbr:"GMT+12",offset:12,zones:["Pacific/Wallis"]}},Ot=Object.entries(Qe).map(([e,a])=>({label:e,value:e,...a})).sort((e,a)=>e.label>a.label?1:a.label>e.label?-1:0),Pt=e=>{var a;return e==="local"?fa():((a=Qe[e])==null?void 0:a.zones[0])??e};export{Ot as T,Qe as a,Gt as b,It as c,Pt as d,ta as e,Nt as f,zt as g,kt as i,Yt as r,Ut as t}; diff --git a/ui/assets/local/_app/immutable/chunks/toaster.8a4adbc8.js b/ui/assets/local/_app/immutable/chunks/toaster.de22ba12.js similarity index 94% rename from ui/assets/local/_app/immutable/chunks/toaster.8a4adbc8.js rename to ui/assets/local/_app/immutable/chunks/toaster.de22ba12.js index 1ce0338cfb..57bddba945 100644 --- a/ui/assets/local/_app/immutable/chunks/toaster.8a4adbc8.js +++ b/ui/assets/local/_app/immutable/chunks/toaster.de22ba12.js @@ -1 +1 @@ -import{w as p}from"./singletons.fb5f332e.js";let c;const s=new Uint8Array(16);function m(){if(!c&&(c=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!c))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return c(s)}const e=[];for(let t=0;t<256;++t)e.push((t+256).toString(16).slice(1));function y(t,n=0){return(e[t[n+0]]+e[t[n+1]]+e[t[n+2]]+e[t[n+3]]+"-"+e[t[n+4]]+e[t[n+5]]+"-"+e[t[n+6]]+e[t[n+7]]+"-"+e[t[n+8]]+e[t[n+9]]+"-"+e[t[n+10]]+e[t[n+11]]+e[t[n+12]]+e[t[n+13]]+e[t[n+14]]+e[t[n+15]]).toLowerCase()}const l=typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto),r={randomUUID:l};function U(t,n,i){if(r.randomUUID&&!n&&!t)return r.randomUUID();t=t||{};const o=t.random||(t.rng||m)();if(o[6]=o[6]&15|64,o[8]=o[8]&63|128,n){i=i||0;for(let d=0;d<16;++d)n[i+d]=o[d];return n}return y(o)}const u=p([]),g=t=>{const n={id:U(),duration:3e3,variant:"primary",...t};u.update(o=>[...o,n]);const i=setTimeout(()=>{a(n.id),clearTimeout(i)},n.duration)},a=t=>{u.update(n=>n.filter(i=>i.id!==t))},x=()=>{u.set([])},h={push:g,pop:a,clear:x,toasts:u,set:u.set,subscribe:u.subscribe,update:u.update};export{h as t,U as v}; +import{w as p}from"./singletons.13b3836d.js";let c;const s=new Uint8Array(16);function m(){if(!c&&(c=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!c))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return c(s)}const e=[];for(let t=0;t<256;++t)e.push((t+256).toString(16).slice(1));function y(t,n=0){return(e[t[n+0]]+e[t[n+1]]+e[t[n+2]]+e[t[n+3]]+"-"+e[t[n+4]]+e[t[n+5]]+"-"+e[t[n+6]]+e[t[n+7]]+"-"+e[t[n+8]]+e[t[n+9]]+"-"+e[t[n+10]]+e[t[n+11]]+e[t[n+12]]+e[t[n+13]]+e[t[n+14]]+e[t[n+15]]).toLowerCase()}const l=typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto),r={randomUUID:l};function U(t,n,i){if(r.randomUUID&&!n&&!t)return r.randomUUID();t=t||{};const o=t.random||(t.rng||m)();if(o[6]=o[6]&15|64,o[8]=o[8]&63|128,n){i=i||0;for(let d=0;d<16;++d)n[i+d]=o[d];return n}return y(o)}const u=p([]),g=t=>{const n={id:U(),duration:3e3,variant:"primary",...t};u.update(o=>[...o,n]);const i=setTimeout(()=>{a(n.id),clearTimeout(i)},n.duration)},a=t=>{u.update(n=>n.filter(i=>i.id!==t))},x=()=>{u.set([])},h={push:g,pop:a,clear:x,toasts:u,set:u.set,subscribe:u.subscribe,update:u.update};export{h as t,U as v}; diff --git a/ui/assets/local/_app/immutable/chunks/toggle-buttons.781b6924.js b/ui/assets/local/_app/immutable/chunks/toggle-buttons.9dfbcbed.js similarity index 98% rename from ui/assets/local/_app/immutable/chunks/toggle-buttons.781b6924.js rename to ui/assets/local/_app/immutable/chunks/toggle-buttons.9dfbcbed.js index ccfba8673d..369c272084 100644 --- a/ui/assets/local/_app/immutable/chunks/toggle-buttons.781b6924.js +++ b/ui/assets/local/_app/immutable/chunks/toggle-buttons.9dfbcbed.js @@ -1 +1 @@ -import{af as J,S as G,b as H,a as P,e as U,f as E,j as g,g as b,k as h,T as j,K,N as T,U as L,m as k,p as C,q as y,ai as z,O as B,P as d,Q as O,z as Q,h as R,R as M,V as W,G as S,H as V,I as q,J as A,C as X,c as Y,D as Z,d as w,u as D,E as $,L as F,F as x,ae as ee}from"./index.4e2fcbc7.js";import{p as te}from"./stores.14a97433.js";import{I as le}from"./icon.e8aa24c8.js";function se(n){return J(n)}function ne(n){let e;const s=n[9].default,a=S(s,n,n[8],null);return{c(){a&&a.c()},l(t){a&&a.l(t)},m(t,l){a&&a.m(t,l),e=!0},p(t,l){a&&a.p&&(!e||l&256)&&V(a,s,t,t[8],e?A(s,t[8],l,null):q(t[8]),null)},i(t){e||(g(a,t),e=!0)},o(t){b(a,t),e=!1},d(t){a&&a.d(t)}}}function ae(n){let e,s,a,t,l;s=new le({props:{name:n[1]}});const r=n[9].default,f=S(r,n,n[8],null);return{c(){e=k("div"),X(s.$$.fragment),a=Y(),t=k("span"),f&&f.c(),this.h()},l(i){e=C(i,"DIV",{class:!0});var c=y(e);Z(s.$$.fragment,c),a=w(c),t=C(c,"SPAN",{class:!0});var _=y(t);f&&f.l(_),_.forEach(h),c.forEach(h),this.h()},h(){D(t,"class","hidden md:block"),D(e,"class","flex items-center gap-2")},m(i,c){E(i,e,c),$(s,e,null),F(e,a),F(e,t),f&&f.m(t,null),l=!0},p(i,c){const _={};c&2&&(_.name=i[1]),s.$set(_),f&&f.p&&(!l||c&256)&&V(f,r,i,i[8],l?A(r,i[8],c,null):q(i[8]),null)},i(i){l||(g(s.$$.fragment,i),g(f,i),l=!0)},o(i){b(s.$$.fragment,i),b(f,i),l=!1},d(i){i&&h(e),x(s),f&&f.d(i)}}}function N(n){let e,s,a,t,l,r,f,i;const c=[ae,ne],_=[];function p(o,u){return o[1]?0:1}s=p(n),a=_[s]=c[s](n);let v=[{class:t="toggle-button "+n[0]},{href:l=n[3]?n[3]+n[6].url.search:null},{role:"button"},{tabindex:"0"},n[7]],m={};for(let o=0;o{_[I]=null}),R(),a=_[s],a?a.p(o,u):(a=_[s]=c[s](o),a.c()),g(a,1),a.m(e,null)),m=M(v,[(!r||u&1&&t!==(t="toggle-button "+o[0]))&&{class:t},(!r||u&72&&l!==(l=o[3]?o[3]+o[6].url.search:null))&&{href:l},{role:"button"},{tabindex:"0"},u&128&&o[7]]),/-/.test(o[3]?"a":"button")?z(e,m):B(e,m),d(e,"group",o[2]),d(e,"active",o[3]?o[6].url.pathname.includes(o[4]):o[5]),d(e,"rounded-lg",!o[2]),d(e,"svelte-1yudo3l",!0)},i(o){r||(g(a),r=!0)},o(o){b(a),r=!1},d(o){o&&h(e),_[s].d(),f=!1,i()}}}function oe(n){let e=n[3]?"a":"button",s,a,t=(n[3]?"a":"button")&&N(n);return{c(){t&&t.c(),s=U()},l(l){t&&t.l(l),s=U()},m(l,r){t&&t.m(l,r),E(l,s,r),a=!0},p(l,[r]){l[3],e?P(e,l[3]?"a":"button")?(t.d(1),t=N(l),t.c(),t.m(s.parentNode,s)):t.p(l,r):(t=N(l),t.c(),t.m(s.parentNode,s)),e=l[3]?"a":"button"},i(l){a||(g(t),a=!0)},o(l){b(t),a=!1},d(l){l&&h(s),t&&t.d(l)}}}function ue(n,e,s){const a=["class","icon","group","href","base","active"];let t=j(e,a),l;K(n,te,u=>s(6,l=u));let{$$slots:r={},$$scope:f}=e,{class:i=""}=e,{icon:c=null}=e,{group:_=se("group")}=e,{href:p=""}=e,{base:v=p}=e,{active:m=!1}=e;function o(u){W.call(this,n,u)}return n.$$set=u=>{e=T(T({},e),L(u)),s(7,t=j(e,a)),"class"in u&&s(0,i=u.class),"icon"in u&&s(1,c=u.icon),"group"in u&&s(2,_=u.group),"href"in u&&s(3,p=u.href),"base"in u&&s(4,v=u.base),"active"in u&&s(5,m=u.active),"$$scope"in u&&s(8,f=u.$$scope)},[i,c,_,p,v,m,l,t,f,r,o]}class me extends G{constructor(e){super(),H(this,e,ue,oe,P,{class:0,icon:1,group:2,href:3,base:4,active:5})}}function re(n){let e,s;const a=n[1].default,t=S(a,n,n[0],null);return{c(){e=k("div"),t&&t.c(),this.h()},l(l){e=C(l,"DIV",{class:!0});var r=y(e);t&&t.l(r),r.forEach(h),this.h()},h(){D(e,"class","flex")},m(l,r){E(l,e,r),t&&t.m(e,null),s=!0},p(l,[r]){t&&t.p&&(!s||r&1)&&V(t,a,l,l[0],s?A(a,l[0],r,null):q(l[0]),null)},i(l){s||(g(t,l),s=!0)},o(l){b(t,l),s=!1},d(l){l&&h(e),t&&t.d(l)}}}function ie(n,e,s){let{$$slots:a={},$$scope:t}=e;return ee("group",!0),n.$$set=l=>{"$$scope"in l&&s(0,t=l.$$scope)},[t,a]}class de extends G{constructor(e){super(),H(this,e,ie,re,P,{})}}export{de as T,me as a}; +import{af as J,S as G,b as H,a as P,e as U,f as E,j as g,g as b,k as h,T as j,K,N as T,U as L,m as k,p as C,q as y,ai as z,O as B,P as d,Q as O,z as Q,h as R,R as M,V as W,G as S,H as V,I as q,J as A,C as X,c as Y,D as Z,d as w,u as D,E as $,L as F,F as x,ae as ee}from"./index.4e2fcbc7.js";import{p as te}from"./stores.0e7b7e35.js";import{I as le}from"./icon.e8aa24c8.js";function se(n){return J(n)}function ne(n){let e;const s=n[9].default,a=S(s,n,n[8],null);return{c(){a&&a.c()},l(t){a&&a.l(t)},m(t,l){a&&a.m(t,l),e=!0},p(t,l){a&&a.p&&(!e||l&256)&&V(a,s,t,t[8],e?A(s,t[8],l,null):q(t[8]),null)},i(t){e||(g(a,t),e=!0)},o(t){b(a,t),e=!1},d(t){a&&a.d(t)}}}function ae(n){let e,s,a,t,l;s=new le({props:{name:n[1]}});const r=n[9].default,f=S(r,n,n[8],null);return{c(){e=k("div"),X(s.$$.fragment),a=Y(),t=k("span"),f&&f.c(),this.h()},l(i){e=C(i,"DIV",{class:!0});var c=y(e);Z(s.$$.fragment,c),a=w(c),t=C(c,"SPAN",{class:!0});var _=y(t);f&&f.l(_),_.forEach(h),c.forEach(h),this.h()},h(){D(t,"class","hidden md:block"),D(e,"class","flex items-center gap-2")},m(i,c){E(i,e,c),$(s,e,null),F(e,a),F(e,t),f&&f.m(t,null),l=!0},p(i,c){const _={};c&2&&(_.name=i[1]),s.$set(_),f&&f.p&&(!l||c&256)&&V(f,r,i,i[8],l?A(r,i[8],c,null):q(i[8]),null)},i(i){l||(g(s.$$.fragment,i),g(f,i),l=!0)},o(i){b(s.$$.fragment,i),b(f,i),l=!1},d(i){i&&h(e),x(s),f&&f.d(i)}}}function N(n){let e,s,a,t,l,r,f,i;const c=[ae,ne],_=[];function p(o,u){return o[1]?0:1}s=p(n),a=_[s]=c[s](n);let v=[{class:t="toggle-button "+n[0]},{href:l=n[3]?n[3]+n[6].url.search:null},{role:"button"},{tabindex:"0"},n[7]],m={};for(let o=0;o{_[I]=null}),R(),a=_[s],a?a.p(o,u):(a=_[s]=c[s](o),a.c()),g(a,1),a.m(e,null)),m=M(v,[(!r||u&1&&t!==(t="toggle-button "+o[0]))&&{class:t},(!r||u&72&&l!==(l=o[3]?o[3]+o[6].url.search:null))&&{href:l},{role:"button"},{tabindex:"0"},u&128&&o[7]]),/-/.test(o[3]?"a":"button")?z(e,m):B(e,m),d(e,"group",o[2]),d(e,"active",o[3]?o[6].url.pathname.includes(o[4]):o[5]),d(e,"rounded-lg",!o[2]),d(e,"svelte-1yudo3l",!0)},i(o){r||(g(a),r=!0)},o(o){b(a),r=!1},d(o){o&&h(e),_[s].d(),f=!1,i()}}}function oe(n){let e=n[3]?"a":"button",s,a,t=(n[3]?"a":"button")&&N(n);return{c(){t&&t.c(),s=U()},l(l){t&&t.l(l),s=U()},m(l,r){t&&t.m(l,r),E(l,s,r),a=!0},p(l,[r]){l[3],e?P(e,l[3]?"a":"button")?(t.d(1),t=N(l),t.c(),t.m(s.parentNode,s)):t.p(l,r):(t=N(l),t.c(),t.m(s.parentNode,s)),e=l[3]?"a":"button"},i(l){a||(g(t),a=!0)},o(l){b(t),a=!1},d(l){l&&h(s),t&&t.d(l)}}}function ue(n,e,s){const a=["class","icon","group","href","base","active"];let t=j(e,a),l;K(n,te,u=>s(6,l=u));let{$$slots:r={},$$scope:f}=e,{class:i=""}=e,{icon:c=null}=e,{group:_=se("group")}=e,{href:p=""}=e,{base:v=p}=e,{active:m=!1}=e;function o(u){W.call(this,n,u)}return n.$$set=u=>{e=T(T({},e),L(u)),s(7,t=j(e,a)),"class"in u&&s(0,i=u.class),"icon"in u&&s(1,c=u.icon),"group"in u&&s(2,_=u.group),"href"in u&&s(3,p=u.href),"base"in u&&s(4,v=u.base),"active"in u&&s(5,m=u.active),"$$scope"in u&&s(8,f=u.$$scope)},[i,c,_,p,v,m,l,t,f,r,o]}class me extends G{constructor(e){super(),H(this,e,ue,oe,P,{class:0,icon:1,group:2,href:3,base:4,active:5})}}function re(n){let e,s;const a=n[1].default,t=S(a,n,n[0],null);return{c(){e=k("div"),t&&t.c(),this.h()},l(l){e=C(l,"DIV",{class:!0});var r=y(e);t&&t.l(r),r.forEach(h),this.h()},h(){D(e,"class","flex")},m(l,r){E(l,e,r),t&&t.m(e,null),s=!0},p(l,[r]){t&&t.p&&(!s||r&1)&&V(t,a,l,l[0],s?A(a,l[0],r,null):q(l[0]),null)},i(l){s||(g(t,l),s=!0)},o(l){b(t,l),s=!1},d(l){l&&h(e),t&&t.d(l)}}}function ie(n,e,s){let{$$slots:a={},$$scope:t}=e;return ee("group",!0),n.$$set=l=>{"$$scope"in l&&s(0,t=l.$$scope)},[t,a]}class de extends G{constructor(e){super(),H(this,e,ie,re,P,{})}}export{de as T,me as a}; diff --git a/ui/assets/local/_app/immutable/chunks/tooltip.6cb33d85.js b/ui/assets/local/_app/immutable/chunks/tooltip.4a34940b.js similarity index 98% rename from ui/assets/local/_app/immutable/chunks/tooltip.6cb33d85.js rename to ui/assets/local/_app/immutable/chunks/tooltip.4a34940b.js index 86127aa746..aa0c2f6c98 100644 --- a/ui/assets/local/_app/immutable/chunks/tooltip.6cb33d85.js +++ b/ui/assets/local/_app/immutable/chunks/tooltip.4a34940b.js @@ -1 +1 @@ -import{S as X,b as Y,a as Z,e as F,f as q,z as C,g as b,h as D,j as h,k as w,G as J,m as L,c as x,p as R,q as S,d as $,u as y,P as m,L as E,H as B,I as K,J as M,w as O,x as Q,y as U,C as N,D as A,E as P,F as V}from"./index.4e2fcbc7.js";import{C as ee}from"./index.2169175d.js";import{I as W}from"./icon.e8aa24c8.js";function te(o){let t,i,e,l,n,f,d,r,c;const k=o[16].default,_=J(k,o,o[17],null),I=[ne,ie],g=[];function T(s,u){return s[11]?0:1}return n=T(o),f=g[n]=I[n](o),{c(){t=L("div"),_&&_.c(),i=x(),e=L("div"),l=L("div"),f.c(),this.h()},l(s){t=R(s,"DIV",{class:!0});var u=S(t);_&&_.l(u),i=$(u),e=R(u,"DIV",{class:!0,style:!0});var p=S(e);l=R(p,"DIV",{class:!0});var v=S(l);f.l(v),v.forEach(w),p.forEach(w),u.forEach(w),this.h()},h(){y(l,"class","inline-block rounded-lg bg-gray-800 px-2 py-2"),y(e,"class","tooltip svelte-uxq741"),y(e,"style",d=o[13]?`white-space: pre-wrap; width: ${o[13]}px;`:null),m(e,"left",o[9]),m(e,"right",o[5]),m(e,"bottom",o[6]),m(e,"bottomLeft",o[7]),m(e,"bottomRight",o[8]),m(e,"top",o[3]),m(e,"topRight",o[4]),m(e,"topLeft",o[10]),y(t,"class",r="wrapper relative inline-block "+o[0]+" svelte-uxq741")},m(s,u){q(s,t,u),_&&_.m(t,null),E(t,i),E(t,e),E(e,l),g[n].m(l,null),c=!0},p(s,u){_&&_.p&&(!c||u&131072)&&B(_,k,s,s[17],c?M(k,s[17],u,null):K(s[17]),null);let p=n;n=T(s),n===p?g[n].p(s,u):(C(),b(g[p],1,1,()=>{g[p]=null}),D(),f=g[n],f?f.p(s,u):(f=g[n]=I[n](s),f.c()),h(f,1),f.m(l,null)),(!c||u&8192&&d!==(d=s[13]?`white-space: pre-wrap; width: ${s[13]}px;`:null))&&y(e,"style",d),(!c||u&512)&&m(e,"left",s[9]),(!c||u&32)&&m(e,"right",s[5]),(!c||u&64)&&m(e,"bottom",s[6]),(!c||u&128)&&m(e,"bottomLeft",s[7]),(!c||u&256)&&m(e,"bottomRight",s[8]),(!c||u&8)&&m(e,"top",s[3]),(!c||u&16)&&m(e,"topRight",s[4]),(!c||u&1024)&&m(e,"topLeft",s[10]),(!c||u&1&&r!==(r="wrapper relative inline-block "+s[0]+" svelte-uxq741"))&&y(t,"class",r)},i(s){c||(h(_,s),h(f),c=!0)},o(s){b(_,s),b(f),c=!1},d(s){s&&w(t),_&&_.d(s),g[n].d()}}}function le(o){let t;const i=o[16].default,e=J(i,o,o[17],null);return{c(){e&&e.c()},l(l){e&&e.l(l)},m(l,n){e&&e.m(l,n),t=!0},p(l,n){e&&e.p&&(!t||n&131072)&&B(e,i,l,l[17],t?M(i,l[17],n,null):K(l[17]),null)},i(l){t||(h(e,l),t=!0)},o(l){b(e,l),t=!1},d(l){e&&e.d(l)}}}function ie(o){let t,i,e,l=o[2]&&G(o);return{c(){t=L("span"),l&&l.c(),i=O(o[1]),this.h()},l(n){t=R(n,"SPAN",{class:!0});var f=S(t);l&&l.l(f),i=Q(f,o[1]),f.forEach(w),this.h()},h(){y(t,"class","flex gap-2 text-gray-100")},m(n,f){q(n,t,f),l&&l.m(t,null),E(t,i),e=!0},p(n,f){n[2]?l?(l.p(n,f),f&4&&h(l,1)):(l=G(n),l.c(),h(l,1),l.m(t,i)):l&&(C(),b(l,1,1,()=>{l=null}),D()),(!e||f&2)&&U(i,n[1])},i(n){e||(h(l),e=!0)},o(n){b(l),e=!1},d(n){n&&w(t),l&&l.d()}}}function ne(o){let t,i;return t=new ee({props:{copySuccessIconTitle:o[15],copyIconTitle:o[14],clickAllToCopy:!0,content:o[1],"container-class":"text-white",visible:!0,$$slots:{default:[oe]},$$scope:{ctx:o}}}),{c(){N(t.$$.fragment)},l(e){A(t.$$.fragment,e)},m(e,l){P(t,e,l),i=!0},p(e,l){const n={};l&32768&&(n.copySuccessIconTitle=e[15]),l&16384&&(n.copyIconTitle=e[14]),l&2&&(n.content=e[1]),l&131078&&(n.$$scope={dirty:l,ctx:e}),t.$set(n)},i(e){i||(h(t.$$.fragment,e),i=!0)},o(e){b(t.$$.fragment,e),i=!1},d(e){V(t,e)}}}function G(o){let t,i;return t=new W({props:{name:o[2],class:"inline h-4 text-white"}}),{c(){N(t.$$.fragment)},l(e){A(t.$$.fragment,e)},m(e,l){P(t,e,l),i=!0},p(e,l){const n={};l&4&&(n.name=e[2]),t.$set(n)},i(e){i||(h(t.$$.fragment,e),i=!0)},o(e){b(t.$$.fragment,e),i=!1},d(e){V(t,e)}}}function H(o){let t,i;return t=new W({props:{name:o[2],class:"inline h-4 text-white"}}),{c(){N(t.$$.fragment)},l(e){A(t.$$.fragment,e)},m(e,l){P(t,e,l),i=!0},p(e,l){const n={};l&4&&(n.name=e[2]),t.$set(n)},i(e){i||(h(t.$$.fragment,e),i=!0)},o(e){b(t.$$.fragment,e),i=!1},d(e){V(t,e)}}}function oe(o){let t,i,e,l=o[2]&&H(o);return{c(){t=L("span"),l&&l.c(),i=O(o[1]),this.h()},l(n){t=R(n,"SPAN",{class:!0});var f=S(t);l&&l.l(f),i=Q(f,o[1]),f.forEach(w),this.h()},h(){y(t,"class","text-gray-100")},m(n,f){q(n,t,f),l&&l.m(t,null),E(t,i),e=!0},p(n,f){n[2]?l?(l.p(n,f),f&4&&h(l,1)):(l=H(n),l.c(),h(l,1),l.m(t,i)):l&&(C(),b(l,1,1,()=>{l=null}),D()),(!e||f&2)&&U(i,n[1])},i(n){e||(h(l),e=!0)},o(n){b(l),e=!1},d(n){n&&w(t),l&&l.d()}}}function fe(o){let t,i,e,l;const n=[le,te],f=[];function d(r,c){return r[12]?0:1}return t=d(o),i=f[t]=n[t](o),{c(){i.c(),e=F()},l(r){i.l(r),e=F()},m(r,c){f[t].m(r,c),q(r,e,c),l=!0},p(r,[c]){let k=t;t=d(r),t===k?f[t].p(r,c):(C(),b(f[k],1,1,()=>{f[k]=null}),D(),i=f[t],i?i.p(r,c):(i=f[t]=n[t](r),i.c()),h(i,1),i.m(e.parentNode,e))},i(r){l||(h(i),l=!0)},o(r){b(i),l=!1},d(r){f[t].d(r),r&&w(e)}}}function se(o,t,i){let{$$slots:e={},$$scope:l}=t,{class:n=""}=t,{text:f=""}=t,{icon:d=null}=t,{top:r=!1}=t,{topRight:c=!1}=t,{right:k=!1}=t,{bottom:_=!1}=t,{bottomLeft:I=!1}=t,{bottomRight:g=!1}=t,{left:T=!1}=t,{topLeft:s=!1}=t,{copyable:u=!1}=t,{hide:p=!1}=t,{width:v=null}=t,{copyIconTitle:j=""}=t,{copySuccessIconTitle:z=""}=t;return o.$$set=a=>{"class"in a&&i(0,n=a.class),"text"in a&&i(1,f=a.text),"icon"in a&&i(2,d=a.icon),"top"in a&&i(3,r=a.top),"topRight"in a&&i(4,c=a.topRight),"right"in a&&i(5,k=a.right),"bottom"in a&&i(6,_=a.bottom),"bottomLeft"in a&&i(7,I=a.bottomLeft),"bottomRight"in a&&i(8,g=a.bottomRight),"left"in a&&i(9,T=a.left),"topLeft"in a&&i(10,s=a.topLeft),"copyable"in a&&i(11,u=a.copyable),"hide"in a&&i(12,p=a.hide),"width"in a&&i(13,v=a.width),"copyIconTitle"in a&&i(14,j=a.copyIconTitle),"copySuccessIconTitle"in a&&i(15,z=a.copySuccessIconTitle),"$$scope"in a&&i(17,l=a.$$scope)},[n,f,d,r,c,k,_,I,g,T,s,u,p,v,j,z,e,l]}class re extends X{constructor(t){super(),Y(this,t,se,fe,Z,{class:0,text:1,icon:2,top:3,topRight:4,right:5,bottom:6,bottomLeft:7,bottomRight:8,left:9,topLeft:10,copyable:11,hide:12,width:13,copyIconTitle:14,copySuccessIconTitle:15})}}export{re as T}; +import{S as X,b as Y,a as Z,e as F,f as q,z as C,g as b,h as D,j as h,k as w,G as J,m as L,c as x,p as R,q as S,d as $,u as y,P as m,L as E,H as B,I as K,J as M,w as O,x as Q,y as U,C as N,D as A,E as P,F as V}from"./index.4e2fcbc7.js";import{C as ee}from"./index.e93e2a88.js";import{I as W}from"./icon.e8aa24c8.js";function te(o){let t,i,e,l,n,f,d,r,c;const k=o[16].default,_=J(k,o,o[17],null),I=[ne,ie],g=[];function T(s,u){return s[11]?0:1}return n=T(o),f=g[n]=I[n](o),{c(){t=L("div"),_&&_.c(),i=x(),e=L("div"),l=L("div"),f.c(),this.h()},l(s){t=R(s,"DIV",{class:!0});var u=S(t);_&&_.l(u),i=$(u),e=R(u,"DIV",{class:!0,style:!0});var p=S(e);l=R(p,"DIV",{class:!0});var v=S(l);f.l(v),v.forEach(w),p.forEach(w),u.forEach(w),this.h()},h(){y(l,"class","inline-block rounded-lg bg-gray-800 px-2 py-2"),y(e,"class","tooltip svelte-uxq741"),y(e,"style",d=o[13]?`white-space: pre-wrap; width: ${o[13]}px;`:null),m(e,"left",o[9]),m(e,"right",o[5]),m(e,"bottom",o[6]),m(e,"bottomLeft",o[7]),m(e,"bottomRight",o[8]),m(e,"top",o[3]),m(e,"topRight",o[4]),m(e,"topLeft",o[10]),y(t,"class",r="wrapper relative inline-block "+o[0]+" svelte-uxq741")},m(s,u){q(s,t,u),_&&_.m(t,null),E(t,i),E(t,e),E(e,l),g[n].m(l,null),c=!0},p(s,u){_&&_.p&&(!c||u&131072)&&B(_,k,s,s[17],c?M(k,s[17],u,null):K(s[17]),null);let p=n;n=T(s),n===p?g[n].p(s,u):(C(),b(g[p],1,1,()=>{g[p]=null}),D(),f=g[n],f?f.p(s,u):(f=g[n]=I[n](s),f.c()),h(f,1),f.m(l,null)),(!c||u&8192&&d!==(d=s[13]?`white-space: pre-wrap; width: ${s[13]}px;`:null))&&y(e,"style",d),(!c||u&512)&&m(e,"left",s[9]),(!c||u&32)&&m(e,"right",s[5]),(!c||u&64)&&m(e,"bottom",s[6]),(!c||u&128)&&m(e,"bottomLeft",s[7]),(!c||u&256)&&m(e,"bottomRight",s[8]),(!c||u&8)&&m(e,"top",s[3]),(!c||u&16)&&m(e,"topRight",s[4]),(!c||u&1024)&&m(e,"topLeft",s[10]),(!c||u&1&&r!==(r="wrapper relative inline-block "+s[0]+" svelte-uxq741"))&&y(t,"class",r)},i(s){c||(h(_,s),h(f),c=!0)},o(s){b(_,s),b(f),c=!1},d(s){s&&w(t),_&&_.d(s),g[n].d()}}}function le(o){let t;const i=o[16].default,e=J(i,o,o[17],null);return{c(){e&&e.c()},l(l){e&&e.l(l)},m(l,n){e&&e.m(l,n),t=!0},p(l,n){e&&e.p&&(!t||n&131072)&&B(e,i,l,l[17],t?M(i,l[17],n,null):K(l[17]),null)},i(l){t||(h(e,l),t=!0)},o(l){b(e,l),t=!1},d(l){e&&e.d(l)}}}function ie(o){let t,i,e,l=o[2]&&G(o);return{c(){t=L("span"),l&&l.c(),i=O(o[1]),this.h()},l(n){t=R(n,"SPAN",{class:!0});var f=S(t);l&&l.l(f),i=Q(f,o[1]),f.forEach(w),this.h()},h(){y(t,"class","flex gap-2 text-gray-100")},m(n,f){q(n,t,f),l&&l.m(t,null),E(t,i),e=!0},p(n,f){n[2]?l?(l.p(n,f),f&4&&h(l,1)):(l=G(n),l.c(),h(l,1),l.m(t,i)):l&&(C(),b(l,1,1,()=>{l=null}),D()),(!e||f&2)&&U(i,n[1])},i(n){e||(h(l),e=!0)},o(n){b(l),e=!1},d(n){n&&w(t),l&&l.d()}}}function ne(o){let t,i;return t=new ee({props:{copySuccessIconTitle:o[15],copyIconTitle:o[14],clickAllToCopy:!0,content:o[1],"container-class":"text-white",visible:!0,$$slots:{default:[oe]},$$scope:{ctx:o}}}),{c(){N(t.$$.fragment)},l(e){A(t.$$.fragment,e)},m(e,l){P(t,e,l),i=!0},p(e,l){const n={};l&32768&&(n.copySuccessIconTitle=e[15]),l&16384&&(n.copyIconTitle=e[14]),l&2&&(n.content=e[1]),l&131078&&(n.$$scope={dirty:l,ctx:e}),t.$set(n)},i(e){i||(h(t.$$.fragment,e),i=!0)},o(e){b(t.$$.fragment,e),i=!1},d(e){V(t,e)}}}function G(o){let t,i;return t=new W({props:{name:o[2],class:"inline h-4 text-white"}}),{c(){N(t.$$.fragment)},l(e){A(t.$$.fragment,e)},m(e,l){P(t,e,l),i=!0},p(e,l){const n={};l&4&&(n.name=e[2]),t.$set(n)},i(e){i||(h(t.$$.fragment,e),i=!0)},o(e){b(t.$$.fragment,e),i=!1},d(e){V(t,e)}}}function H(o){let t,i;return t=new W({props:{name:o[2],class:"inline h-4 text-white"}}),{c(){N(t.$$.fragment)},l(e){A(t.$$.fragment,e)},m(e,l){P(t,e,l),i=!0},p(e,l){const n={};l&4&&(n.name=e[2]),t.$set(n)},i(e){i||(h(t.$$.fragment,e),i=!0)},o(e){b(t.$$.fragment,e),i=!1},d(e){V(t,e)}}}function oe(o){let t,i,e,l=o[2]&&H(o);return{c(){t=L("span"),l&&l.c(),i=O(o[1]),this.h()},l(n){t=R(n,"SPAN",{class:!0});var f=S(t);l&&l.l(f),i=Q(f,o[1]),f.forEach(w),this.h()},h(){y(t,"class","text-gray-100")},m(n,f){q(n,t,f),l&&l.m(t,null),E(t,i),e=!0},p(n,f){n[2]?l?(l.p(n,f),f&4&&h(l,1)):(l=H(n),l.c(),h(l,1),l.m(t,i)):l&&(C(),b(l,1,1,()=>{l=null}),D()),(!e||f&2)&&U(i,n[1])},i(n){e||(h(l),e=!0)},o(n){b(l),e=!1},d(n){n&&w(t),l&&l.d()}}}function fe(o){let t,i,e,l;const n=[le,te],f=[];function d(r,c){return r[12]?0:1}return t=d(o),i=f[t]=n[t](o),{c(){i.c(),e=F()},l(r){i.l(r),e=F()},m(r,c){f[t].m(r,c),q(r,e,c),l=!0},p(r,[c]){let k=t;t=d(r),t===k?f[t].p(r,c):(C(),b(f[k],1,1,()=>{f[k]=null}),D(),i=f[t],i?i.p(r,c):(i=f[t]=n[t](r),i.c()),h(i,1),i.m(e.parentNode,e))},i(r){l||(h(i),l=!0)},o(r){b(i),l=!1},d(r){f[t].d(r),r&&w(e)}}}function se(o,t,i){let{$$slots:e={},$$scope:l}=t,{class:n=""}=t,{text:f=""}=t,{icon:d=null}=t,{top:r=!1}=t,{topRight:c=!1}=t,{right:k=!1}=t,{bottom:_=!1}=t,{bottomLeft:I=!1}=t,{bottomRight:g=!1}=t,{left:T=!1}=t,{topLeft:s=!1}=t,{copyable:u=!1}=t,{hide:p=!1}=t,{width:v=null}=t,{copyIconTitle:j=""}=t,{copySuccessIconTitle:z=""}=t;return o.$$set=a=>{"class"in a&&i(0,n=a.class),"text"in a&&i(1,f=a.text),"icon"in a&&i(2,d=a.icon),"top"in a&&i(3,r=a.top),"topRight"in a&&i(4,c=a.topRight),"right"in a&&i(5,k=a.right),"bottom"in a&&i(6,_=a.bottom),"bottomLeft"in a&&i(7,I=a.bottomLeft),"bottomRight"in a&&i(8,g=a.bottomRight),"left"in a&&i(9,T=a.left),"topLeft"in a&&i(10,s=a.topLeft),"copyable"in a&&i(11,u=a.copyable),"hide"in a&&i(12,p=a.hide),"width"in a&&i(13,v=a.width),"copyIconTitle"in a&&i(14,j=a.copyIconTitle),"copySuccessIconTitle"in a&&i(15,z=a.copySuccessIconTitle),"$$scope"in a&&i(17,l=a.$$scope)},[n,f,d,r,c,k,_,I,g,T,s,u,p,v,j,z,e,l]}class re extends X{constructor(t){super(),Y(this,t,se,fe,Z,{class:0,text:1,icon:2,top:3,topRight:4,right:5,bottom:6,bottomLeft:7,bottomRight:8,left:9,topLeft:10,copyable:11,hide:12,width:13,copyIconTitle:14,copySuccessIconTitle:15})}}export{re as T}; diff --git a/ui/assets/local/_app/immutable/chunks/translate.ac8f94f7.js b/ui/assets/local/_app/immutable/chunks/translate.b598b7ef.js similarity index 96% rename from ui/assets/local/_app/immutable/chunks/translate.ac8f94f7.js rename to ui/assets/local/_app/immutable/chunks/translate.b598b7ef.js index 4513642239..26aa4a49c5 100644 --- a/ui/assets/local/_app/immutable/chunks/translate.ac8f94f7.js +++ b/ui/assets/local/_app/immutable/chunks/translate.b598b7ef.js @@ -1 +1 @@ -import{S as M,b as N,a as T,C as q,D as A,E as B,j as w,g as k,F as E,m as Y,p as Z,q as x,k as p,u as $,f as y,z as G,aa as tt,ab as et,h as O,K as I,a6 as nt,a5 as v,e as h,n as F,G as ot,H as st,I as rt,J as lt,w as at,x as ut,y as ct}from"./index.4e2fcbc7.js";import{p as ft}from"./stores.14a97433.js";import{S as it}from"./index.8b5c6ff3.js";import{r as _t,a as C,f as V}from"./workflows.73556738.js";import{a as mt}from"./decode-payload.a8d5059b.js";import{W as dt}from"./workflow-status.781aff44.js";import{t as wt}from"./translate.d23a91ae.js";const S=["Running","TimedOut","Completed","Failed","ContinuedAsNew","Canceled","Terminated"];function Et(o){return S.includes(o)}const Gt=["All",...S],j=(o,t,e)=>{const s=Math.pow(3600/o,1/e),l=o*Math.pow(s,t);return Math.min(3600,Math.round(l))};function kt(o){let t,e;return t=new dt({props:{count:o[1],newCount:o[2],status:o[0],"test-id":"workflow-status-"+o[0]}}),{c(){q(t.$$.fragment)},l(n){A(t.$$.fragment,n)},m(n,s){B(t,n,s),e=!0},p(n,[s]){const l={};s&2&&(l.count=n[1]),s&4&&(l.newCount=n[2]),s&1&&(l.status=n[0]),s&1&&(l["test-id"]="workflow-status-"+n[0]),t.$set(l)},i(n){e||(w(t.$$.fragment,n),e=!0)},o(n){k(t.$$.fragment,n),e=!1},d(n){E(t,n)}}}function ht(o,t,e){let{status:n}=t,{count:s=0}=t,{newCount:l=0}=t;return o.$$set=a=>{"status"in a&&e(0,n=a.status),"count"in a&&e(1,s=a.count),"newCount"in a&&e(2,l=a.newCount)},[n,s,l]}class pt extends M{constructor(t){super(),N(this,t,ht,kt,T,{status:0,count:1,newCount:2})}}function z(o,t,e){const n=o.slice();return n[18]=t[e].count,n[19]=t[e].status,n}function gt(o){let t,e;return t=new it({props:{class:"h-6 w-24 rounded"}}),{c(){q(t.$$.fragment)},l(n){A(t.$$.fragment,n)},m(n,s){B(t,n,s),e=!0},p:F,i(n){e||(w(t.$$.fragment,n),e=!0)},o(n){k(t.$$.fragment,n),e=!1},d(n){E(t,n)}}}function yt(o){let t,e;function n(...l){return o[8](o[19],...l)}function s(...l){return o[9](o[19],...l)}return t=new pt({props:{status:o[19],count:o[18],newCount:o[1].find(n)?o[1].find(s).count-o[18]:0}}),{c(){q(t.$$.fragment)},l(l){A(t.$$.fragment,l)},m(l,a){B(t,l,a),e=!0},p(l,a){o=l;const u={};a&1&&(u.status=o[19]),a&1&&(u.count=o[18]),a&3&&(u.newCount=o[1].find(n)?o[1].find(s).count-o[18]:0),t.$set(u)},i(l){e||(w(t.$$.fragment,l),e=!0)},o(l){k(t.$$.fragment,l),e=!1},d(l){E(t,l)}}}function H(o,t){let e,n,s,l,a;const u=[yt,gt],r=[];function c(i,m){return i[2]?1:0}return n=c(t),s=r[n]=u[n](t),{key:o,first:null,c(){e=h(),s.c(),l=h(),this.h()},l(i){e=h(),s.l(i),l=h(),this.h()},h(){this.first=e},m(i,m){y(i,e,m),r[n].m(i,m),y(i,l,m),a=!0},p(i,m){t=i;let d=n;n=c(t),n===d?r[n].p(t,m):(G(),k(r[d],1,1,()=>{r[d]=null}),O(),s=r[n],s?s.p(t,m):(s=r[n]=u[n](t),s.c()),w(s,1),s.m(l.parentNode,l))},i(i){a||(w(s),a=!0)},o(i){k(s),a=!1},d(i){i&&p(e),r[n].d(i),i&&p(l)}}}function bt(o){let t,e=[],n=new Map,s,l=o[0];const a=u=>u[19];for(let u=0;ue(6,l=f)),I(o,C,f=>e(12,a=f)),I(o,ft,f=>e(7,u=f));let{staticQuery:r=""}=t,c=[],i=[],m,d=1,b=!1;nt(()=>{Q()});const K=()=>{if(d+=1,clearInterval(m),d<=W){const f=j(J,d,W)*1e3;m=setInterval(()=>P(),f)}},Q=()=>{clearInterval(m),e(1,i=[]),v(C,a.newCount=0,a),d=1,e(2,b=!0)},D=(f=[])=>f.map(_=>{const g=mt(_==null?void 0:_.groupValues[0]),X=parseInt(_.count);return{status:g,count:X}}).sort((_,g)=>S.indexOf(_.status)-S.indexOf(g.status)),P=async()=>{K();try{const{count:f,groups:_}=await V({namespace:n,query:s});v(C,a.newCount=parseInt(f)-a.count,a),e(1,i=D(_))}catch(f){console.error("Fetching workflow counts failed: ",f==null?void 0:f.message)}finally{e(2,b=!1)}},R=async()=>{Q();const f=j(J,d,W)*1e3;m=setInterval(()=>P(),f);try{const{count:_,groups:g}=await V({namespace:n,query:s});v(C,a.count=parseInt(_),a),e(0,c=D(g))}catch(_){console.error("Fetching workflow counts failed: ",_==null?void 0:_.message)}finally{e(2,b=!1)}},L=(f,_)=>_.status===f,U=(f,_)=>_.status===f;return o.$$set=f=>{"staticQuery"in f&&e(3,r=f.staticQuery)},o.$$.update=()=>{o.$$.dirty&128&&e(4,n=u.params.namespace),o.$$.dirty&136&&e(5,s=r||u.url.searchParams.get("query")),o.$$.dirty&112&&R()},[c,i,b,r,n,s,l,u,L,U]}class Ot extends M{constructor(t){super(),N(this,t,Ct,bt,T,{staticQuery:3})}}function St(o){let t;const e=o[5].default,n=ot(e,o,o[4],null);return{c(){n&&n.c()},l(s){n&&n.l(s)},m(s,l){n&&n.m(s,l),t=!0},p(s,l){n&&n.p&&(!t||l&16)&&st(n,e,s,s[4],t?lt(e,s[4],l,null):rt(s[4]),null)},i(s){t||(w(n,s),t=!0)},o(s){k(n,s),t=!1},d(s){n&&n.d(s)}}}function It(o){let t;return{c(){t=at(o[1])},l(e){t=ut(e,o[1])},m(e,n){y(e,t,n)},p(e,n){n&2&&ct(t,e[1])},i:F,o:F,d(e){e&&p(t)}}}function vt(o){let t,e,n,s;const l=[It,St],a=[];function u(r,c){return r[1]!==r[0]?0:1}return t=u(o),e=a[t]=l[t](o),{c(){e.c(),n=h()},l(r){e.l(r),n=h()},m(r,c){a[t].m(r,c),y(r,n,c),s=!0},p(r,[c]){let i=t;t=u(r),t===i?a[t].p(r,c):(G(),k(a[i],1,1,()=>{a[i]=null}),O(),e=a[t],e?e.p(r,c):(e=a[t]=l[t](r),e.c()),w(e,1),e.m(n.parentNode,n))},i(r){s||(w(e),s=!0)},o(r){k(e),s=!1},d(r){a[t].d(r),r&&p(n)}}}function Wt(o,t,e){let n,{$$slots:s={},$$scope:l}=t,{key:a}=t,{count:u=void 0}=t,{replace:r=void 0}=t;return o.$$set=c=>{"key"in c&&e(0,a=c.key),"count"in c&&e(2,u=c.count),"replace"in c&&e(3,r=c.replace),"$$scope"in c&&e(4,l=c.$$scope)},o.$$.update=()=>{o.$$.dirty&13&&e(1,n=wt(a,{count:u,...r}))},[a,n,u,r,l,s]}class Qt extends M{constructor(t){super(),N(this,t,Wt,vt,T,{key:0,count:2,replace:3})}}export{Qt as T,Ot as W,Et as i,Gt as w}; +import{S as M,b as N,a as T,C as q,D as A,E as B,j as w,g as k,F as E,m as Y,p as Z,q as x,k as p,u as $,f as y,z as G,aa as tt,ab as et,h as O,K as I,a6 as nt,a5 as v,e as h,n as F,G as ot,H as st,I as rt,J as lt,w as at,x as ut,y as ct}from"./index.4e2fcbc7.js";import{p as ft}from"./stores.0e7b7e35.js";import{S as it}from"./index.8b5c6ff3.js";import{r as _t,a as C,f as V}from"./workflows.73426400.js";import{a as mt}from"./decode-payload.11855cf3.js";import{W as dt}from"./workflow-status.781aff44.js";import{t as wt}from"./translate.d23a91ae.js";const S=["Running","TimedOut","Completed","Failed","ContinuedAsNew","Canceled","Terminated"];function Et(o){return S.includes(o)}const Gt=["All",...S],j=(o,t,e)=>{const s=Math.pow(3600/o,1/e),l=o*Math.pow(s,t);return Math.min(3600,Math.round(l))};function kt(o){let t,e;return t=new dt({props:{count:o[1],newCount:o[2],status:o[0],"test-id":"workflow-status-"+o[0]}}),{c(){q(t.$$.fragment)},l(n){A(t.$$.fragment,n)},m(n,s){B(t,n,s),e=!0},p(n,[s]){const l={};s&2&&(l.count=n[1]),s&4&&(l.newCount=n[2]),s&1&&(l.status=n[0]),s&1&&(l["test-id"]="workflow-status-"+n[0]),t.$set(l)},i(n){e||(w(t.$$.fragment,n),e=!0)},o(n){k(t.$$.fragment,n),e=!1},d(n){E(t,n)}}}function ht(o,t,e){let{status:n}=t,{count:s=0}=t,{newCount:l=0}=t;return o.$$set=a=>{"status"in a&&e(0,n=a.status),"count"in a&&e(1,s=a.count),"newCount"in a&&e(2,l=a.newCount)},[n,s,l]}class pt extends M{constructor(t){super(),N(this,t,ht,kt,T,{status:0,count:1,newCount:2})}}function z(o,t,e){const n=o.slice();return n[18]=t[e].count,n[19]=t[e].status,n}function gt(o){let t,e;return t=new it({props:{class:"h-6 w-24 rounded"}}),{c(){q(t.$$.fragment)},l(n){A(t.$$.fragment,n)},m(n,s){B(t,n,s),e=!0},p:F,i(n){e||(w(t.$$.fragment,n),e=!0)},o(n){k(t.$$.fragment,n),e=!1},d(n){E(t,n)}}}function yt(o){let t,e;function n(...l){return o[8](o[19],...l)}function s(...l){return o[9](o[19],...l)}return t=new pt({props:{status:o[19],count:o[18],newCount:o[1].find(n)?o[1].find(s).count-o[18]:0}}),{c(){q(t.$$.fragment)},l(l){A(t.$$.fragment,l)},m(l,a){B(t,l,a),e=!0},p(l,a){o=l;const u={};a&1&&(u.status=o[19]),a&1&&(u.count=o[18]),a&3&&(u.newCount=o[1].find(n)?o[1].find(s).count-o[18]:0),t.$set(u)},i(l){e||(w(t.$$.fragment,l),e=!0)},o(l){k(t.$$.fragment,l),e=!1},d(l){E(t,l)}}}function H(o,t){let e,n,s,l,a;const u=[yt,gt],r=[];function c(i,m){return i[2]?1:0}return n=c(t),s=r[n]=u[n](t),{key:o,first:null,c(){e=h(),s.c(),l=h(),this.h()},l(i){e=h(),s.l(i),l=h(),this.h()},h(){this.first=e},m(i,m){y(i,e,m),r[n].m(i,m),y(i,l,m),a=!0},p(i,m){t=i;let d=n;n=c(t),n===d?r[n].p(t,m):(G(),k(r[d],1,1,()=>{r[d]=null}),O(),s=r[n],s?s.p(t,m):(s=r[n]=u[n](t),s.c()),w(s,1),s.m(l.parentNode,l))},i(i){a||(w(s),a=!0)},o(i){k(s),a=!1},d(i){i&&p(e),r[n].d(i),i&&p(l)}}}function bt(o){let t,e=[],n=new Map,s,l=o[0];const a=u=>u[19];for(let u=0;ue(6,l=f)),I(o,C,f=>e(12,a=f)),I(o,ft,f=>e(7,u=f));let{staticQuery:r=""}=t,c=[],i=[],m,d=1,b=!1;nt(()=>{Q()});const K=()=>{if(d+=1,clearInterval(m),d<=W){const f=j(J,d,W)*1e3;m=setInterval(()=>P(),f)}},Q=()=>{clearInterval(m),e(1,i=[]),v(C,a.newCount=0,a),d=1,e(2,b=!0)},D=(f=[])=>f.map(_=>{const g=mt(_==null?void 0:_.groupValues[0]),X=parseInt(_.count);return{status:g,count:X}}).sort((_,g)=>S.indexOf(_.status)-S.indexOf(g.status)),P=async()=>{K();try{const{count:f,groups:_}=await V({namespace:n,query:s});v(C,a.newCount=parseInt(f)-a.count,a),e(1,i=D(_))}catch(f){console.error("Fetching workflow counts failed: ",f==null?void 0:f.message)}finally{e(2,b=!1)}},R=async()=>{Q();const f=j(J,d,W)*1e3;m=setInterval(()=>P(),f);try{const{count:_,groups:g}=await V({namespace:n,query:s});v(C,a.count=parseInt(_),a),e(0,c=D(g))}catch(_){console.error("Fetching workflow counts failed: ",_==null?void 0:_.message)}finally{e(2,b=!1)}},L=(f,_)=>_.status===f,U=(f,_)=>_.status===f;return o.$$set=f=>{"staticQuery"in f&&e(3,r=f.staticQuery)},o.$$.update=()=>{o.$$.dirty&128&&e(4,n=u.params.namespace),o.$$.dirty&136&&e(5,s=r||u.url.searchParams.get("query")),o.$$.dirty&112&&R()},[c,i,b,r,n,s,l,u,L,U]}class Ot extends M{constructor(t){super(),N(this,t,Ct,bt,T,{staticQuery:3})}}function St(o){let t;const e=o[5].default,n=ot(e,o,o[4],null);return{c(){n&&n.c()},l(s){n&&n.l(s)},m(s,l){n&&n.m(s,l),t=!0},p(s,l){n&&n.p&&(!t||l&16)&&st(n,e,s,s[4],t?lt(e,s[4],l,null):rt(s[4]),null)},i(s){t||(w(n,s),t=!0)},o(s){k(n,s),t=!1},d(s){n&&n.d(s)}}}function It(o){let t;return{c(){t=at(o[1])},l(e){t=ut(e,o[1])},m(e,n){y(e,t,n)},p(e,n){n&2&&ct(t,e[1])},i:F,o:F,d(e){e&&p(t)}}}function vt(o){let t,e,n,s;const l=[It,St],a=[];function u(r,c){return r[1]!==r[0]?0:1}return t=u(o),e=a[t]=l[t](o),{c(){e.c(),n=h()},l(r){e.l(r),n=h()},m(r,c){a[t].m(r,c),y(r,n,c),s=!0},p(r,[c]){let i=t;t=u(r),t===i?a[t].p(r,c):(G(),k(a[i],1,1,()=>{a[i]=null}),O(),e=a[t],e?e.p(r,c):(e=a[t]=l[t](r),e.c()),w(e,1),e.m(n.parentNode,n))},i(r){s||(w(e),s=!0)},o(r){k(e),s=!1},d(r){a[t].d(r),r&&p(n)}}}function Wt(o,t,e){let n,{$$slots:s={},$$scope:l}=t,{key:a}=t,{count:u=void 0}=t,{replace:r=void 0}=t;return o.$$set=c=>{"key"in c&&e(0,a=c.key),"count"in c&&e(2,u=c.count),"replace"in c&&e(3,r=c.replace),"$$scope"in c&&e(4,l=c.$$scope)},o.$$.update=()=>{o.$$.dirty&13&&e(1,n=wt(a,{count:u,...r}))},[a,n,u,r,l,s]}class Qt extends M{constructor(t){super(),N(this,t,Wt,vt,T,{key:0,count:2,replace:3})}}export{Qt as T,Ot as W,Et as i,Gt as w}; diff --git a/ui/assets/local/_app/immutable/chunks/update-query-parameters.dc7e7d75.js b/ui/assets/local/_app/immutable/chunks/update-query-parameters.64a6ca26.js similarity index 82% rename from ui/assets/local/_app/immutable/chunks/update-query-parameters.dc7e7d75.js rename to ui/assets/local/_app/immutable/chunks/update-query-parameters.64a6ca26.js index 74e0fcdca3..f979ec5643 100644 --- a/ui/assets/local/_app/immutable/chunks/update-query-parameters.dc7e7d75.js +++ b/ui/assets/local/_app/immutable/chunks/update-query-parameters.64a6ca26.js @@ -1 +1 @@ -import{g}from"./navigation.10919bcf.js";const m={keepFocus:!0,noScroll:!0},h=async({parameter:n,value:a,url:e,goto:c=g,allowEmpty:i=!1})=>{const f=String(a),r={};e.searchParams.forEach((o,s)=>{s!==n&&(r[s]=o)});const t=new URLSearchParams(r);a?t.set(n,f):i&&t.set(n,"");{const o=t==null?void 0:t.toString(),s=o?`${e.pathname}?${o}`:e.pathname;c(s,m)}return a};export{h as u}; +import{g}from"./navigation.b77a045a.js";const m={keepFocus:!0,noScroll:!0},h=async({parameter:n,value:a,url:e,goto:c=g,allowEmpty:i=!1})=>{const f=String(a),r={};e.searchParams.forEach((o,s)=>{s!==n&&(r[s]=o)});const t=new URLSearchParams(r);a?t.set(n,f):i&&t.set(n,"");{const o=t==null?void 0:t.toString(),s=o?`${e.pathname}?${o}`:e.pathname;c(s,m)}return a};export{h as u}; diff --git a/ui/assets/local/_app/immutable/chunks/versions.6cca9ce8.js b/ui/assets/local/_app/immutable/chunks/versions.6cca9ce8.js new file mode 100644 index 0000000000..6cfadb0ea2 --- /dev/null +++ b/ui/assets/local/_app/immutable/chunks/versions.6cca9ce8.js @@ -0,0 +1 @@ +import{j as o}from"./singletons.13b3836d.js";import{p as e}from"./stores.0e7b7e35.js";import{s as m}from"./settings.0d5c4f96.js";const n=o([e],([r])=>{var a;return(a=r.data)==null?void 0:a.cluster}),t=o([n],([r])=>r==null?void 0:r.serverVersion),d=o([m],([r])=>r==null?void 0:r.version);export{n as c,t,d as u}; diff --git a/ui/assets/local/_app/immutable/chunks/versions.78cca4ad.js b/ui/assets/local/_app/immutable/chunks/versions.78cca4ad.js deleted file mode 100644 index a40efd14c1..0000000000 --- a/ui/assets/local/_app/immutable/chunks/versions.78cca4ad.js +++ /dev/null @@ -1 +0,0 @@ -import{j as o}from"./singletons.fb5f332e.js";import{p as e}from"./stores.14a97433.js";const s=o([e],([r])=>{var a;return(a=r.data)==null?void 0:a.cluster}),n=o([e],([r])=>r.data.settings),p=o([s],([r])=>r==null?void 0:r.serverVersion),m=o([n],([r])=>r==null?void 0:r.version);export{s as c,n as s,p as t,m as u}; diff --git a/ui/assets/local/_app/immutable/chunks/workers-list.1ce615d3.js b/ui/assets/local/_app/immutable/chunks/workers-list.611e6068.js similarity index 99% rename from ui/assets/local/_app/immutable/chunks/workers-list.1ce615d3.js rename to ui/assets/local/_app/immutable/chunks/workers-list.611e6068.js index 331af4a421..b2baee3455 100644 --- a/ui/assets/local/_app/immutable/chunks/workers-list.1ce615d3.js +++ b/ui/assets/local/_app/immutable/chunks/workers-list.611e6068.js @@ -1,3 +1,3 @@ -import{S as Se,b as Ae,a as Fe,m as v,w as V,c as F,C as W,p as g,q as E,x as S,k as c,d as Q,D as L,u as k,f as h,L as w,E as K,y as re,j as T,z as J,g as D,h as U,F as M,K as ue,e as G,aa as Ne,ab as Re,n as Y,a7 as Qe,P as ce}from"./index.4e2fcbc7.js";import{B as Be}from"./badge.96e01a15.js";import{c as Oe,C as ie}from"./pollers-service.541d2792.js";import{E as He}from"./empty-state.721f6c59.js";import{I as ae}from"./icon.e8aa24c8.js";import{T as Pe,a as Ce}from"./table-header-row.fec98b60.js";import{T as Ve}from"./table-row.0fafe278.js";import{t as A}from"./translate.d23a91ae.js";import{t as qe,r as We,b as _e}from"./time-format.88312c30.js";import{d as Le,a as Ke,e as Me,f as me,h as de}from"./task-queue-compatibility.cf5696f8.js";function pe(n,e,l){const t=n.slice();t[8]=e[l];const r=Me(t[8]);t[9]=r;const s=Oe(t[2],t[0],t[9]);return t[10]=s,t}function he(n,e,l){const t=n.slice();return t[13]=e[l],t[15]=l,t}function $e(n,e,l){const t=n.slice();return t[9]=e[l],t}function be(n){let e,l=A("workers.version-sets")+"",t,r,s,u;return s=new Pe({props:{class:"mb-6 w-full min-w-[600px] table-fixed",$$slots:{headers:[Xe],default:[Je]},$$scope:{ctx:n}}}),{c(){e=v("h2"),t=V(l),r=F(),W(s.$$.fragment),this.h()},l(a){e=g(a,"H2",{class:!0,"data-testid":!0});var o=E(e);t=S(o,l),o.forEach(c),r=Q(a),L(s.$$.fragment,a),this.h()},h(){k(e,"class","text-base font-medium"),k(e,"data-testid","version-sets")},m(a,o){h(a,e,o),w(e,t),h(a,r,o),K(s,a,o),u=!0},p(a,o){const i={};o&262160&&(i.$$scope={dirty:o,ctx:a}),s.$set(i)},i(a){u||(T(s.$$.fragment,a),u=!0)},o(a){D(s.$$.fragment,a),u=!1},d(a){a&&c(e),a&&c(r),M(s,a)}}}function ke(n){let e,l,t,r,s;return t=new He({props:{title:A("workers.no-version-sets-found")}}),{c(){e=v("tr"),l=v("td"),W(t.$$.fragment),r=F(),this.h()},l(u){e=g(u,"TR",{class:!0});var a=E(e);l=g(a,"TD",{colspan:!0});var o=E(l);L(t.$$.fragment,o),o.forEach(c),r=Q(a),a.forEach(c),this.h()},h(){k(l,"colspan","6"),k(e,"class","w-full")},m(u,a){h(u,e,a),w(e,l),K(t,l,null),w(e,r),s=!0},p:Y,i(u){s||(T(t.$$.fragment,u),s=!0)},o(u){D(t.$$.fragment,u),s=!1},d(u){u&&c(e),M(t)}}}function we(n){let e=A("workers.overall")+"",l;return{c(){l=V(e)},l(t){l=S(t,e)},m(t,r){h(t,l,r)},p:Y,d(t){t&&c(l)}}}function je(n){let e,l=n[15]===0&&we();return{c(){l&&l.c(),e=G()},l(t){l&&l.l(t),e=G()},m(t,r){l&&l.m(t,r),h(t,e,r)},p(t,r){t[15]===0?l?l.p(t,r):(l=we(),l.c(),l.m(e.parentNode,e)):l&&(l.d(1),l=null)},d(t){l&&l.d(t),t&&c(e)}}}function ze(n){let e=A("workers.default")+"",l;return{c(){l=V(e)},l(t){l=S(t,e)},m(t,r){h(t,l,r)},p:Y,d(t){t&&c(l)}}}function Ye(n){let e=A("workers.default")+"",l,t;return{c(){l=V(e),t=F()},l(r){l=S(r,e),t=Q(r)},m(r,s){h(r,l,s),h(r,t,s)},p:Y,d(r){r&&c(l),r&&c(t)}}}function ve(n){let e,l;return e=new ie({props:{active:!1,buildId:n[9],$$slots:{"default-worker":[Ye]},$$scope:{ctx:n}}}),{c(){W(e.$$.fragment)},l(t){L(e.$$.fragment,t)},m(t,r){K(e,t,r),l=!0},p(t,r){const s={};r&16&&(s.buildId=t[9]),r&262144&&(s.$$scope={dirty:r,ctx:t}),e.$set(s)},i(t){l||(T(e.$$.fragment,t),l=!0)},o(t){D(e.$$.fragment,t),l=!1},d(t){M(e,t)}}}function Ge(n){let e,l,t,r,s,u,a;l=new ie({props:{defaultVersion:!0,active:n[15]===0,buildId:me(n[13].buildIds),$$slots:{"default-worker":[ze],"overall-default-worker":[je]},$$scope:{ctx:n}}});let o=de(n[13].buildIds),i=[];for(let f=0;fD(i[f],1,1,()=>{i[f]=null});return{c(){e=v("td"),W(l.$$.fragment),t=F(),r=v("td"),s=v("div");for(let f=0;fo[15];for(let o=0;o{a=null}),U()):(a=ke(),a.c(),T(a,1),a.m(t.parentNode,t)))},i(o){if(!r){for(let i=0;i{m=null}),U()),(!q||H&98)&&i!==(i=_e(p[8].lastAccessTime,p[5],{relative:p[6]})+"")&&re(_,i);let x=b;b=X(p,H),b===x?j[b].p(p,H):(J(),D(j[x],1,1,()=>{j[x]=null}),U(),I=j[b],I?I.p(p,H):(I=j[b]=N[b](p),I.c()),T(I,1),I.m(d,null));let ee=O;O=te(p,H),O===ee?z[O].p(p,H):(J(),D(z[ee],1,1,()=>{z[ee]=null}),U(),$=z[O],$?$.p(p,H):($=z[O]=Z[O](p),$.c()),T($,1),$.m(B,null))},i(p){q||(T(m),T(I),T($),q=!0)},o(p){D(m),D(I),D($),q=!1},d(p){p&&c(e),p&&c(s),m&&m.d(p),p&&c(u),p&&c(a),p&&c(f),p&&c(d),j[b].d(),p&&c(C),p&&c(B),z[O].d(),p&&c(P)}}}function Ie(n,e){let l,t,r;return t=new Ve({props:{"data-testid":"worker-row",$$slots:{default:[at]},$$scope:{ctx:e}}}),{key:n,first:null,c(){l=G(),W(t.$$.fragment),this.h()},l(s){l=G(),L(t.$$.fragment,s),this.h()},h(){this.first=l},m(s,u){h(s,l,u),K(t,s,u),r=!0},p(s,u){e=s;const a={};u&262255&&(a.$$scope={dirty:u,ctx:e}),t.$set(a)},i(s){r||(T(t.$$.fragment,s),r=!0)},o(s){D(t.$$.fragment,s),r=!1},d(s){s&&c(l),M(t,s)}}}function it(n){var o;let e=[],l=new Map,t,r,s=(o=n[1])==null?void 0:o.pollers;const u=i=>i[8].identity;for(let i=0;i{a=null}),U()):(a=Ee(i),a.c(),T(a,1),a.m(t.parentNode,t)))},i(i){if(!r){for(let _=0;_D(i[f],1,1,()=>{i[f]=null});return{c(){e=v("td"),W(l.$$.fragment),t=F(),r=v("td"),s=v("div");for(let f=0;fo[15];for(let o=0;o{a=null}),U()):(a=ke(),a.c(),T(a,1),a.m(t.parentNode,t)))},i(o){if(!r){for(let i=0;i{m=null}),U()),(!q||H&98)&&i!==(i=_e(p[8].lastAccessTime,p[5],{relative:p[6]})+"")&&re(_,i);let x=b;b=X(p,H),b===x?j[b].p(p,H):(J(),D(j[x],1,1,()=>{j[x]=null}),U(),I=j[b],I?I.p(p,H):(I=j[b]=N[b](p),I.c()),T(I,1),I.m(d,null));let ee=O;O=te(p,H),O===ee?z[O].p(p,H):(J(),D(z[ee],1,1,()=>{z[ee]=null}),U(),$=z[O],$?$.p(p,H):($=z[O]=Z[O](p),$.c()),T($,1),$.m(B,null))},i(p){q||(T(m),T(I),T($),q=!0)},o(p){D(m),D(I),D($),q=!1},d(p){p&&c(e),p&&c(s),m&&m.d(p),p&&c(u),p&&c(a),p&&c(f),p&&c(d),j[b].d(),p&&c(C),p&&c(B),z[O].d(),p&&c(P)}}}function Ie(n,e){let l,t,r;return t=new Ve({props:{"data-testid":"worker-row",$$slots:{default:[at]},$$scope:{ctx:e}}}),{key:n,first:null,c(){l=G(),W(t.$$.fragment),this.h()},l(s){l=G(),L(t.$$.fragment,s),this.h()},h(){this.first=l},m(s,u){h(s,l,u),K(t,s,u),r=!0},p(s,u){e=s;const a={};u&262255&&(a.$$scope={dirty:u,ctx:e}),t.$set(a)},i(s){r||(T(t.$$.fragment,s),r=!0)},o(s){D(t.$$.fragment,s),r=!1},d(s){s&&c(l),M(t,s)}}}function it(n){var o;let e=[],l=new Map,t,r,s=(o=n[1])==null?void 0:o.pollers;const u=i=>i[8].identity;for(let i=0;i{a=null}),U()):(a=Ee(i),a.c(),T(a,1),a.m(t.parentNode,t)))},i(i){if(!r){for(let _=0;_{R=null}),U());const q={};P&262146&&(q.$$scope={dirty:P,ctx:$}),b.$set(q);const m={};P&262255&&(m.$$scope={dirty:P,ctx:$}),C.$set(m)},i($){B||(T(R),T(b.$$.fragment,$),T(C.$$.fragment,$),B=!0)},o($){D(R),D(b.$$.fragment,$),D(C.$$.fragment,$),B=!1},d($){$&&c(e),R&&R.d(),M(b),M(C)}}}function ct(n,e,l){let t,r,s,u;ue(n,qe,f=>l(5,s=f)),ue(n,We,f=>l(6,u=f));let{taskQueue:a}=e,{workers:o}=e,{compatibility:i=void 0}=e,{reachability:_=void 0}=e;return n.$$set=f=>{"taskQueue"in f&&l(0,a=f.taskQueue),"workers"in f&&l(1,o=f.workers),"compatibility"in f&&l(7,i=f.compatibility),"reachability"in f&&l(2,_=f.reachability)},n.$$.update=()=>{n.$$.dirty&128&&l(4,t=Le(i)),n.$$.dirty&128&&l(3,r=Ke(i))},[a,o,_,r,t,s,u,i]}class gt extends Se{constructor(e){super(),Ae(this,e,ct,ut,Fe,{taskQueue:0,workers:1,compatibility:7,reachability:2})}}export{gt as W}; diff --git a/ui/assets/local/_app/immutable/chunks/workflow-json-navigator.7a126a38.js b/ui/assets/local/_app/immutable/chunks/workflow-json-navigator.82fd29ea.js similarity index 97% rename from ui/assets/local/_app/immutable/chunks/workflow-json-navigator.7a126a38.js rename to ui/assets/local/_app/immutable/chunks/workflow-json-navigator.82fd29ea.js index c349228ee9..7a3a580456 100644 --- a/ui/assets/local/_app/immutable/chunks/workflow-json-navigator.7a126a38.js +++ b/ui/assets/local/_app/immutable/chunks/workflow-json-navigator.82fd29ea.js @@ -1 +1 @@ -import{S as Ie,b as Ne,a as oe,N as ie,m as E,w as te,c as C,p as I,q as N,x as le,k as h,d as K,u as p,v as pe,P as R,O as be,f as M,L as b,_ as se,Q as B,y as ne,R as De,aq as fe,n as Y,r as Pe,T as ge,U as ve,A as Te,e as q,z as re,g as O,h as ue,j as S,K as He,a0 as Oe,G as Se,C as Z,D as $,E as x,a1 as Ve,H as Le,I as Ue,J as je,F as ee}from"./index.4e2fcbc7.js";import{C as Ae}from"./code-block.d389dfc4.js";import{o as he,t as F}from"./translate.d23a91ae.js";import{L as Re}from"./loading.95801385.js";import{f as ae}from"./index.9a06eb7c.js";import{d as We}from"./events.631efcca.js";import{s as ke}from"./parse-with-big-int.0036a80a.js";import{P as Be}from"./payload-decoder.23fe8b7d.js";function Ce(s){let l,t,e,a,o,_,f,d,v=(s[0]??"")+"",c,g,r,L,D,V,k,y,P,m,W,X,i,U,H,w,G,j=[{name:"range"},{type:"range"},{class:"h-0 w-full cursor-pointer appearance-none rounded border-y-2 border-primary"},{min:s[3]},{max:s[4]},{step:L=s[12].step},he(s[13],"class")],z={};for(let n=0;n{if(Number.isNaN(i.currentTarget.valueAsNumber)){t(0,r=v);return}t(8,L=i.currentTarget.valueAsNumber>=v&&i.currentTarget.valueAsNumber<=c)},k=({value:i,min:U,max:H})=>(i-U)*100/(H-U),y=({outputElement:i,outputXPos:U})=>{var H;const w=(H=i==null?void 0:i.clientWidth)!==null&&H!==void 0?H:15;return Math.floor(U*w/100)},P=()=>{t(7,e=k({value:r,min:v,max:c})),t(9,a=y({outputElement:D,outputXPos:e}))};function m(i){Te[i?"unshift":"push"](()=>{D=i,t(6,D)})}function W(){r=fe(this.value),t(0,r)}function X(){r=fe(this.value),t(0,r)}return s.$$set=i=>{t(12,l=ie(ie({},l),ve(i))),t(13,_=ge(l,o)),"label"in i&&t(1,f=i.label),"labelHidden"in i&&t(2,d=i.labelHidden),"min"in i&&t(3,v=i.min),"max"in i&&t(4,c=i.max),"id"in i&&t(5,g=i.id),"value"in i&&t(0,r=i.value)},s.$$.update=()=>{s.$$.dirty&25&&t(7,e=k({value:r,min:v,max:c})),s.$$.dirty&217&&(r?(t(7,e=k({value:r,min:v,max:c})),t(9,a=y({outputElement:D,outputXPos:e}))):(t(7,e=0),t(9,a=0))),s.$$.dirty&192&&t(9,a=y({outputElement:D,outputXPos:e}))},l=ve(l),[r,f,d,v,c,g,D,e,L,a,V,P,l,_,m,W,X]}class Xe extends Ie{constructor(l){super(),Ne(this,l,Ke,Ce,oe,{label:1,labelHidden:2,min:3,max:4,id:5,value:0})}}const qe=s=>({}),ye=s=>({});function ze(s){let l,t,e,a,o,_,f,d,v,c,g,r,L,D,V,k,y,P,m,W,X;function i(n){s[5](n)}let U={label:F("common.event"),labelHidden:!0,id:"range-input-event-history",min:1,max:s[0].length};s[1]!==void 0&&(U.value=s[1]),e=new Xe({props:U}),Te.push(()=>Oe(e,"value",i));const H=s[4].decode,w=Se(H,s,s[8],ye),G=[Fe,Me],j=[];function z(n,u){return n[2]?0:1}return k=z(s),y=j[k]=G[k](s),{c(){l=E("div"),t=E("div"),Z(e.$$.fragment),o=C(),_=E("div"),f=E("button"),d=E("span"),c=C(),g=E("button"),r=E("span"),D=C(),w&&w.c(),V=C(),y.c(),P=q(),this.h()},l(n){l=I(n,"DIV",{class:!0});var u=N(l);t=I(u,"DIV",{class:!0});var T=N(t);$(e.$$.fragment,T),o=K(T),_=I(T,"DIV",{class:!0});var A=N(_);f=I(A,"BUTTON",{class:!0,"aria-label":!0});var Q=N(f);d=I(Q,"SPAN",{class:!0}),N(d).forEach(h),Q.forEach(h),c=K(A),g=I(A,"BUTTON",{class:!0,"aria-label":!0});var J=N(g);r=I(J,"SPAN",{class:!0}),N(r).forEach(h),J.forEach(h),A.forEach(h),T.forEach(h),D=K(u),w&&w.l(u),u.forEach(h),V=K(n),y.l(n),P=q(),this.h()},h(){p(d,"class","arrow arrow-left svelte-1780ds3"),R(d,"arrow-left-disabled",s[1]===1),p(f,"class","caret svelte-1780ds3"),f.disabled=v=s[1]===1,p(f,"aria-label",F("common.previous")),p(r,"class","arrow arrow-right svelte-1780ds3"),R(r,"arrow-right-disabled",s[1]===s[0].length),p(g,"class","caret svelte-1780ds3"),g.disabled=L=s[1]===s[0].length,p(g,"aria-label",F("common.next")),p(_,"class","flex items-center justify-center gap-3"),p(t,"class","flex w-full gap-4"),p(l,"class","flex gap-4 max-sm:flex-col")},m(n,u){M(n,l,u),b(l,t),x(e,t,null),b(t,o),b(t,_),b(_,f),b(f,d),b(_,c),b(_,g),b(g,r),b(l,D),w&&w.m(l,null),M(n,V,u),j[k].m(n,u),M(n,P,u),m=!0,W||(X=[B(f,"click",s[6]),B(g,"click",s[7])],W=!0)},p(n,u){const T={};u&1&&(T.max=n[0].length),!a&&u&2&&(a=!0,T.value=n[1],Ve(()=>a=!1)),e.$set(T),(!m||u&2)&&R(d,"arrow-left-disabled",n[1]===1),(!m||u&2&&v!==(v=n[1]===1))&&(f.disabled=v),(!m||u&3)&&R(r,"arrow-right-disabled",n[1]===n[0].length),(!m||u&3&&L!==(L=n[1]===n[0].length))&&(g.disabled=L),w&&w.p&&(!m||u&256)&&Le(w,H,n,n[8],m?je(H,n[8],u,qe):Ue(n[8]),ye);let A=k;k=z(n),k===A?j[k].p(n,u):(re(),O(j[A],1,1,()=>{j[A]=null}),ue(),y=j[k],y?y.p(n,u):(y=j[k]=G[k](n),y.c()),S(y,1),y.m(P.parentNode,P))},i(n){m||(S(e.$$.fragment,n),S(w,n),S(y),m=!0)},o(n){O(e.$$.fragment,n),O(w,n),O(y),m=!1},d(n){n&&h(l),ee(e),w&&w.d(n),n&&h(V),j[k].d(n),n&&h(P),W=!1,Pe(X)}}}function Je(s){let l,t;return l=new Re({}),{c(){Z(l.$$.fragment)},l(e){$(l.$$.fragment,e)},m(e,a){x(l,e,a),t=!0},p:Y,i(e){t||(S(l.$$.fragment,e),t=!0)},o(e){O(l.$$.fragment,e),t=!1},d(e){ee(l,e)}}}function Me(s){let l=s[1],t,e,a=we(s);return{c(){a.c(),t=q()},l(o){a.l(o),t=q()},m(o,_){a.m(o,_),M(o,t,_),e=!0},p(o,_){_&2&&oe(l,l=o[1])?(re(),O(a,1,1,Y),ue(),a=we(o),a.c(),S(a,1),a.m(t.parentNode,t)):a.p(o,_)},i(o){e||(S(a),e=!0)},o(o){O(a),e=!1},d(o){o&&h(t),a.d(o)}}}function Fe(s){let l=[s[1],s[2]],t,e,a=Ee(s);return{c(){a.c(),t=q()},l(o){a.l(o),t=q()},m(o,_){a.m(o,_),M(o,t,_),e=!0},p(o,_){_&6&&oe(l,l=[o[1],o[2]])?(re(),O(a,1,1,Y),ue(),a=Ee(o),a.c(),S(a,1),a.m(t.parentNode,t)):a.p(o,_)},i(o){e||(S(a),e=!0)},o(o){O(a),e=!1},d(o){o&&h(t),a.d(o)}}}function we(s){let l,t;return l=new Ae({props:{content:ke(ae(s[0][s[1]-1]),void 0,2),testId:"event-history-json",copyIconTitle:F("common.copy-icon-title"),copySuccessIconTitle:F("common.copy-success-icon-title")}}),{c(){Z(l.$$.fragment)},l(e){$(l.$$.fragment,e)},m(e,a){x(l,e,a),t=!0},p(e,a){const o={};a&3&&(o.content=ke(ae(e[0][e[1]-1]),void 0,2)),l.$set(o)},i(e){t||(S(l.$$.fragment,e),t=!0)},o(e){O(l.$$.fragment,e),t=!1},d(e){ee(l,e)}}}function Ge(s){let l,t;return l=new Ae({props:{content:s[9],testId:"event-history-json",copyIconTitle:F("common.copy-icon-title"),copySuccessIconTitle:F("common.copy-success-icon-title")}}),{c(){Z(l.$$.fragment)},l(e){$(l.$$.fragment,e)},m(e,a){x(l,e,a),t=!0},p(e,a){const o={};a&512&&(o.content=e[9]),l.$set(o)},i(e){t||(S(l.$$.fragment,e),t=!0)},o(e){O(l.$$.fragment,e),t=!1},d(e){ee(l,e)}}}function Ee(s){let l,t;return l=new Be({props:{value:ae(s[0][s[1]-1]),$$slots:{default:[Ge,({decodedValue:e})=>({9:e}),({decodedValue:e})=>e?512:0]},$$scope:{ctx:s}}}),{c(){Z(l.$$.fragment)},l(e){$(l.$$.fragment,e)},m(e,a){x(l,e,a),t=!0},p(e,a){const o={};a&3&&(o.value=ae(e[0][e[1]-1])),a&768&&(o.$$scope={dirty:a,ctx:e}),l.$set(o)},i(e){t||(S(l.$$.fragment,e),t=!0)},o(e){O(l.$$.fragment,e),t=!1},d(e){ee(l,e)}}}function Qe(s){let l,t,e,a,o,_;const f=[Je,ze],d=[];function v(c,g){return c[0].length?1:0}return l=v(s),t=d[l]=f[l](s),{c(){t.c(),e=q()},l(c){t.l(c),e=q()},m(c,g){d[l].m(c,g),M(c,e,g),a=!0,o||(_=B(window,"keydown",s[3]),o=!0)},p(c,[g]){let r=l;l=v(c),l===r?d[l].p(c,g):(re(),O(d[r],1,1,()=>{d[r]=null}),ue(),t=d[l],t?t.p(c,g):(t=d[l]=f[l](c),t.c()),S(t,1),t.m(e.parentNode,e))},i(c){a||(S(t),a=!0)},o(c){O(t),a=!1},d(c){d[l].d(c),c&&h(e),o=!1,_()}}}function Ye(s,l,t){let e;He(s,We,r=>t(2,e=r));let{$$slots:a={},$$scope:o}=l,{events:_=[]}=l,f=1;function d(r){switch(r.code){case"ArrowRight":case"KeyL":r.preventDefault(),r.stopPropagation(),f<_.length&&t(1,f+=1);break;case"ArrowLeft":case"KeyH":r.preventDefault(),r.stopPropagation(),f>1&&t(1,f-=1);break}}function v(r){f=r,t(1,f)}const c=()=>{t(1,f-=1)},g=()=>{t(1,f+=1)};return s.$$set=r=>{"events"in r&&t(0,_=r.events),"$$scope"in r&&t(8,o=r.$$scope)},[_,f,e,d,a,v,c,g,o]}class at extends Ie{constructor(l){super(),Ne(this,l,Ye,Qe,oe,{events:0})}}export{at as W}; +import{S as Ie,b as Ne,a as oe,N as ie,m as E,w as te,c as C,p as I,q as N,x as le,k as h,d as K,u as p,v as pe,P as R,O as be,f as M,L as b,_ as se,Q as B,y as ne,R as De,aq as fe,n as Y,r as Pe,T as ge,U as ve,A as Te,e as q,z as re,g as O,h as ue,j as S,K as He,a0 as Oe,G as Se,C as Z,D as $,E as x,a1 as Ve,H as Le,I as Ue,J as je,F as ee}from"./index.4e2fcbc7.js";import{C as Ae}from"./code-block.55adac36.js";import{o as he,t as F}from"./translate.d23a91ae.js";import{L as Re}from"./loading.95801385.js";import{f as ae}from"./index.49e6803e.js";import{d as We}from"./events.ccad8a5b.js";import{s as ke}from"./parse-with-big-int.0036a80a.js";import{P as Be}from"./payload-decoder.0883e1af.js";function Ce(s){let l,t,e,a,o,_,f,d,v=(s[0]??"")+"",c,g,r,L,D,V,k,y,P,m,W,X,i,U,H,w,G,j=[{name:"range"},{type:"range"},{class:"h-0 w-full cursor-pointer appearance-none rounded border-y-2 border-primary"},{min:s[3]},{max:s[4]},{step:L=s[12].step},he(s[13],"class")],z={};for(let n=0;n{if(Number.isNaN(i.currentTarget.valueAsNumber)){t(0,r=v);return}t(8,L=i.currentTarget.valueAsNumber>=v&&i.currentTarget.valueAsNumber<=c)},k=({value:i,min:U,max:H})=>(i-U)*100/(H-U),y=({outputElement:i,outputXPos:U})=>{var H;const w=(H=i==null?void 0:i.clientWidth)!==null&&H!==void 0?H:15;return Math.floor(U*w/100)},P=()=>{t(7,e=k({value:r,min:v,max:c})),t(9,a=y({outputElement:D,outputXPos:e}))};function m(i){Te[i?"unshift":"push"](()=>{D=i,t(6,D)})}function W(){r=fe(this.value),t(0,r)}function X(){r=fe(this.value),t(0,r)}return s.$$set=i=>{t(12,l=ie(ie({},l),ve(i))),t(13,_=ge(l,o)),"label"in i&&t(1,f=i.label),"labelHidden"in i&&t(2,d=i.labelHidden),"min"in i&&t(3,v=i.min),"max"in i&&t(4,c=i.max),"id"in i&&t(5,g=i.id),"value"in i&&t(0,r=i.value)},s.$$.update=()=>{s.$$.dirty&25&&t(7,e=k({value:r,min:v,max:c})),s.$$.dirty&217&&(r?(t(7,e=k({value:r,min:v,max:c})),t(9,a=y({outputElement:D,outputXPos:e}))):(t(7,e=0),t(9,a=0))),s.$$.dirty&192&&t(9,a=y({outputElement:D,outputXPos:e}))},l=ve(l),[r,f,d,v,c,g,D,e,L,a,V,P,l,_,m,W,X]}class Xe extends Ie{constructor(l){super(),Ne(this,l,Ke,Ce,oe,{label:1,labelHidden:2,min:3,max:4,id:5,value:0})}}const qe=s=>({}),ye=s=>({});function ze(s){let l,t,e,a,o,_,f,d,v,c,g,r,L,D,V,k,y,P,m,W,X;function i(n){s[5](n)}let U={label:F("common.event"),labelHidden:!0,id:"range-input-event-history",min:1,max:s[0].length};s[1]!==void 0&&(U.value=s[1]),e=new Xe({props:U}),Te.push(()=>Oe(e,"value",i));const H=s[4].decode,w=Se(H,s,s[8],ye),G=[Fe,Me],j=[];function z(n,u){return n[2]?0:1}return k=z(s),y=j[k]=G[k](s),{c(){l=E("div"),t=E("div"),Z(e.$$.fragment),o=C(),_=E("div"),f=E("button"),d=E("span"),c=C(),g=E("button"),r=E("span"),D=C(),w&&w.c(),V=C(),y.c(),P=q(),this.h()},l(n){l=I(n,"DIV",{class:!0});var u=N(l);t=I(u,"DIV",{class:!0});var T=N(t);$(e.$$.fragment,T),o=K(T),_=I(T,"DIV",{class:!0});var A=N(_);f=I(A,"BUTTON",{class:!0,"aria-label":!0});var Q=N(f);d=I(Q,"SPAN",{class:!0}),N(d).forEach(h),Q.forEach(h),c=K(A),g=I(A,"BUTTON",{class:!0,"aria-label":!0});var J=N(g);r=I(J,"SPAN",{class:!0}),N(r).forEach(h),J.forEach(h),A.forEach(h),T.forEach(h),D=K(u),w&&w.l(u),u.forEach(h),V=K(n),y.l(n),P=q(),this.h()},h(){p(d,"class","arrow arrow-left svelte-1780ds3"),R(d,"arrow-left-disabled",s[1]===1),p(f,"class","caret svelte-1780ds3"),f.disabled=v=s[1]===1,p(f,"aria-label",F("common.previous")),p(r,"class","arrow arrow-right svelte-1780ds3"),R(r,"arrow-right-disabled",s[1]===s[0].length),p(g,"class","caret svelte-1780ds3"),g.disabled=L=s[1]===s[0].length,p(g,"aria-label",F("common.next")),p(_,"class","flex items-center justify-center gap-3"),p(t,"class","flex w-full gap-4"),p(l,"class","flex gap-4 max-sm:flex-col")},m(n,u){M(n,l,u),b(l,t),x(e,t,null),b(t,o),b(t,_),b(_,f),b(f,d),b(_,c),b(_,g),b(g,r),b(l,D),w&&w.m(l,null),M(n,V,u),j[k].m(n,u),M(n,P,u),m=!0,W||(X=[B(f,"click",s[6]),B(g,"click",s[7])],W=!0)},p(n,u){const T={};u&1&&(T.max=n[0].length),!a&&u&2&&(a=!0,T.value=n[1],Ve(()=>a=!1)),e.$set(T),(!m||u&2)&&R(d,"arrow-left-disabled",n[1]===1),(!m||u&2&&v!==(v=n[1]===1))&&(f.disabled=v),(!m||u&3)&&R(r,"arrow-right-disabled",n[1]===n[0].length),(!m||u&3&&L!==(L=n[1]===n[0].length))&&(g.disabled=L),w&&w.p&&(!m||u&256)&&Le(w,H,n,n[8],m?je(H,n[8],u,qe):Ue(n[8]),ye);let A=k;k=z(n),k===A?j[k].p(n,u):(re(),O(j[A],1,1,()=>{j[A]=null}),ue(),y=j[k],y?y.p(n,u):(y=j[k]=G[k](n),y.c()),S(y,1),y.m(P.parentNode,P))},i(n){m||(S(e.$$.fragment,n),S(w,n),S(y),m=!0)},o(n){O(e.$$.fragment,n),O(w,n),O(y),m=!1},d(n){n&&h(l),ee(e),w&&w.d(n),n&&h(V),j[k].d(n),n&&h(P),W=!1,Pe(X)}}}function Je(s){let l,t;return l=new Re({}),{c(){Z(l.$$.fragment)},l(e){$(l.$$.fragment,e)},m(e,a){x(l,e,a),t=!0},p:Y,i(e){t||(S(l.$$.fragment,e),t=!0)},o(e){O(l.$$.fragment,e),t=!1},d(e){ee(l,e)}}}function Me(s){let l=s[1],t,e,a=we(s);return{c(){a.c(),t=q()},l(o){a.l(o),t=q()},m(o,_){a.m(o,_),M(o,t,_),e=!0},p(o,_){_&2&&oe(l,l=o[1])?(re(),O(a,1,1,Y),ue(),a=we(o),a.c(),S(a,1),a.m(t.parentNode,t)):a.p(o,_)},i(o){e||(S(a),e=!0)},o(o){O(a),e=!1},d(o){o&&h(t),a.d(o)}}}function Fe(s){let l=[s[1],s[2]],t,e,a=Ee(s);return{c(){a.c(),t=q()},l(o){a.l(o),t=q()},m(o,_){a.m(o,_),M(o,t,_),e=!0},p(o,_){_&6&&oe(l,l=[o[1],o[2]])?(re(),O(a,1,1,Y),ue(),a=Ee(o),a.c(),S(a,1),a.m(t.parentNode,t)):a.p(o,_)},i(o){e||(S(a),e=!0)},o(o){O(a),e=!1},d(o){o&&h(t),a.d(o)}}}function we(s){let l,t;return l=new Ae({props:{content:ke(ae(s[0][s[1]-1]),void 0,2),testId:"event-history-json",copyIconTitle:F("common.copy-icon-title"),copySuccessIconTitle:F("common.copy-success-icon-title")}}),{c(){Z(l.$$.fragment)},l(e){$(l.$$.fragment,e)},m(e,a){x(l,e,a),t=!0},p(e,a){const o={};a&3&&(o.content=ke(ae(e[0][e[1]-1]),void 0,2)),l.$set(o)},i(e){t||(S(l.$$.fragment,e),t=!0)},o(e){O(l.$$.fragment,e),t=!1},d(e){ee(l,e)}}}function Ge(s){let l,t;return l=new Ae({props:{content:s[9],testId:"event-history-json",copyIconTitle:F("common.copy-icon-title"),copySuccessIconTitle:F("common.copy-success-icon-title")}}),{c(){Z(l.$$.fragment)},l(e){$(l.$$.fragment,e)},m(e,a){x(l,e,a),t=!0},p(e,a){const o={};a&512&&(o.content=e[9]),l.$set(o)},i(e){t||(S(l.$$.fragment,e),t=!0)},o(e){O(l.$$.fragment,e),t=!1},d(e){ee(l,e)}}}function Ee(s){let l,t;return l=new Be({props:{value:ae(s[0][s[1]-1]),$$slots:{default:[Ge,({decodedValue:e})=>({9:e}),({decodedValue:e})=>e?512:0]},$$scope:{ctx:s}}}),{c(){Z(l.$$.fragment)},l(e){$(l.$$.fragment,e)},m(e,a){x(l,e,a),t=!0},p(e,a){const o={};a&3&&(o.value=ae(e[0][e[1]-1])),a&768&&(o.$$scope={dirty:a,ctx:e}),l.$set(o)},i(e){t||(S(l.$$.fragment,e),t=!0)},o(e){O(l.$$.fragment,e),t=!1},d(e){ee(l,e)}}}function Qe(s){let l,t,e,a,o,_;const f=[Je,ze],d=[];function v(c,g){return c[0].length?1:0}return l=v(s),t=d[l]=f[l](s),{c(){t.c(),e=q()},l(c){t.l(c),e=q()},m(c,g){d[l].m(c,g),M(c,e,g),a=!0,o||(_=B(window,"keydown",s[3]),o=!0)},p(c,[g]){let r=l;l=v(c),l===r?d[l].p(c,g):(re(),O(d[r],1,1,()=>{d[r]=null}),ue(),t=d[l],t?t.p(c,g):(t=d[l]=f[l](c),t.c()),S(t,1),t.m(e.parentNode,e))},i(c){a||(S(t),a=!0)},o(c){O(t),a=!1},d(c){d[l].d(c),c&&h(e),o=!1,_()}}}function Ye(s,l,t){let e;He(s,We,r=>t(2,e=r));let{$$slots:a={},$$scope:o}=l,{events:_=[]}=l,f=1;function d(r){switch(r.code){case"ArrowRight":case"KeyL":r.preventDefault(),r.stopPropagation(),f<_.length&&t(1,f+=1);break;case"ArrowLeft":case"KeyH":r.preventDefault(),r.stopPropagation(),f>1&&t(1,f-=1);break}}function v(r){f=r,t(1,f)}const c=()=>{t(1,f-=1)},g=()=>{t(1,f+=1)};return s.$$set=r=>{"events"in r&&t(0,_=r.events),"$$scope"in r&&t(8,o=r.$$scope)},[_,f,e,d,a,v,c,g,o]}class at extends Ie{constructor(l){super(),Ne(this,l,Ye,Qe,oe,{events:0})}}export{at as W}; diff --git a/ui/assets/local/_app/immutable/chunks/workflow-run.86769de7.js b/ui/assets/local/_app/immutable/chunks/workflow-run.8b92989d.js similarity index 54% rename from ui/assets/local/_app/immutable/chunks/workflow-run.86769de7.js rename to ui/assets/local/_app/immutable/chunks/workflow-run.8b92989d.js index 95bf8a7db7..1401c3afae 100644 --- a/ui/assets/local/_app/immutable/chunks/workflow-run.86769de7.js +++ b/ui/assets/local/_app/immutable/chunks/workflow-run.8b92989d.js @@ -1 +1 @@ -import{w as o}from"./singletons.fb5f332e.js";import{p as r}from"./persist-store.2e269d08.js";const t=o(0),e={workflow:null,workers:{pollers:[],taskQueueStatus:null}},l=o(e),i=r("workflowSummaryView",!0,!0),a=r("workflowTimelineView",!0,!0);export{a,i as b,e as i,t as r,l as w}; +import{w as o}from"./singletons.13b3836d.js";import{p as r}from"./persist-store.8930b3b5.js";const t=o(0),e={workflow:null,workers:{pollers:[],taskQueueStatus:null}},l=o(e),i=r("workflowSummaryView",!0,!0),a=r("workflowTimelineView",!0,!0);export{a,i as b,e as i,t as r,l as w}; diff --git a/ui/assets/local/_app/immutable/chunks/workflow-service.4d66b505.js b/ui/assets/local/_app/immutable/chunks/workflow-service.4d66b505.js deleted file mode 100644 index f7d2a8e5bc..0000000000 --- a/ui/assets/local/_app/immutable/chunks/workflow-service.4d66b505.js +++ /dev/null @@ -1 +0,0 @@ -import{ac as y}from"./index.4e2fcbc7.js";import{t as Q}from"./translate.d23a91ae.js";import{a as j,b as N}from"./decode-payload.a8d5059b.js";import{c as C}from"./has.183130b0.js";import{s as U,c as $,t as K}from"./versions.78cca4ad.js";import{s as _}from"./simplify-attributes.8d6f7848.js";import{l as L,a as J}from"./data-encoder-config.23d100a5.js";import{B as G}from"./encode-uri.e26747e0.js";import{b as H,p as M,a as d,r as w,c as X,i as Y,d as Z}from"./route-for-api.60228029.js";import{s as E}from"./parse-with-big-int.0036a80a.js";import{j as x}from"./singletons.fb5f332e.js";import{p as oo}from"./stores.14a97433.js";import{i as to}from"./version-check.d006b302.js";import{l as no,m as eo,n as F,o as ro}from"./format-time.4f091e0e.js";import{v as io}from"./toaster.8a4adbc8.js";const ao=(o=U)=>!y(o).disableWriteActions,co=(o=[])=>o.map(t=>{const n=_(t,!0),e=t.activityId;return{...n,id:e}}),so=o=>C(o)||C(o.indexedFields)?{}:{indexedFields:Object.entries(o.indexedFields).reduce((n,[e,r])=>({...n,[e]:j(r)}),{})},I=o=>{var b,g,T,p,W,S,A;const t=so(o.workflowExecutionInfo.searchAttributes),n=o.workflowExecutionInfo.type.name,e=o.workflowExecutionInfo.execution.workflowId,r=o.workflowExecutionInfo.execution.runId,i=o.workflowExecutionInfo.startTime,s=o.workflowExecutionInfo.closeTime,a=o.workflowExecutionInfo.executionTime,u=o.workflowExecutionInfo.status,f=o.workflowExecutionInfo.status==="Running",l=o.workflowExecutionInfo.historyLength,h=o.workflowExecutionInfo.historySizeBytes,c=`/workflows/${e}/${r}`,m=((g=(b=o==null?void 0:o.executionConfig)==null?void 0:b.taskQueue)==null?void 0:g.name)||((T=o==null?void 0:o.workflowExecutionInfo)==null?void 0:T.taskQueue),k=(p=o==null?void 0:o.workflowExecutionInfo)==null?void 0:p.mostRecentWorkerVersionStamp,v=(W=o==null?void 0:o.workflowExecutionInfo)==null?void 0:W.parentNamespaceId,B=(S=o==null?void 0:o.workflowExecutionInfo)==null?void 0:S.parentExecution,z=o.workflowExecutionInfo.stateTransitionCount,V=(A=o.executionConfig)==null?void 0:A.defaultWorkflowTaskTimeout,q=co(o.pendingActivities),D=(o==null?void 0:o.pendingChildren)??[];return{name:n,id:e,runId:r,startTime:i,endTime:s,executionTime:a,status:u,historyEvents:l,historySizeBytes:h,searchAttributes:t,url:c,taskQueue:m,mostRecentWorkerVersionStamp:k,pendingActivities:q,pendingChildren:D,parentNamespaceId:v,parent:B,stateTransitionCount:z,isRunning:f,defaultWorkflowTaskTimeout:V,get canBeTerminated(){return f&&ao()}}},P=o=>(o.executions||[]).map(t=>I({workflowExecutionInfo:t})),fo=o=>window.btoa(encodeURIComponent(o).replace(/%([0-9A-F]{2})/g,(t,n)=>String.fromCharCode(parseInt(n,16)))),O=(o,t=G)=>t?fo(o):o,uo=(o,t)=>{var n;return((n=o==null?void 0:o.visibilityStore)==null?void 0:n.includes("elasticsearch"))||to(t,"1.19")},lo=o=>{var t;return(t=o==null?void 0:o.visibilityStore)==null?void 0:t.includes("elasticsearch")},R=x([oo],([o])=>{var t,n,e;return(e=(n=(t=o.data)==null?void 0:t.settings)==null?void 0:n.runtimeEnvironment)==null?void 0:e.isCloud}),wo=x([$,K,R],([o,t,n])=>uo(o,t)||n);x([$,R],([o,t])=>lo(o)||t);const mo={workflowId:"WorkflowId",workflowType:"WorkflowType",timeRange:"StartTime",executionStatus:"ExecutionStatus",closeTime:"CloseTime"},ko=["workflowId","workflowType","timeRange","executionStatus","closeTime"],yo=o=>!(o===null||o===void 0||o===""||typeof o=="string"&&o==="undefined"),ho=o=>{if(typeof o!="string")return!1;for(const t of ko)if(t===o)return!0;return!1},Eo=(o,t,n)=>{const e=mo[o];return t==="All"?"":no(t)||eo(t)?n||y(wo)?`${e} > "${F(t)}"`:`${e} BETWEEN "${F(t)}" AND "${ro()}"`:`${e}="${t}"`},xo=(o,t)=>Object.entries(o).map(([n,e])=>{if(ho(n)&&yo(e))return Eo(n,e,t)}).filter(Boolean),Io=(o,t=!1)=>xo(o,t).join(" and "),bo=async(o,t,n=fetch,e=!1)=>{const r=t.query||Io(t,e);let i;try{i=decodeURIComponent(r)}catch{i=r}const s=e?"workflows.archived":"workflows";let a="";const u=c=>{var m,k;X(c),(m=c==null?void 0:c.body)!=null&&m.message||c!=null&&c.status?a=((k=c==null?void 0:c.body)==null?void 0:k.message)??`Error fetching workflows: ${c.status}: ${c.statusText}`:a="Error fetching workflows: Server failed to respond"},f=w(s,{namespace:o}),{executions:l,nextPageToken:h}=await d(f,{params:{query:i},onError:u,handleError:u,request:n})??{executions:[],nextPageToken:""};return{workflows:P({executions:l}),nextPageToken:String(h),error:a}},Vo=async({namespace:o,workflowId:t,url:n},e=fetch)=>{var l;const r="workflows",i=n??H(o),s=M(r,{namespace:o}),a=i+s,{executions:u}=await d(a,{params:{query:`WorkflowId="${t}"`,pageSize:"1"},request:e})??{executions:[]},f=(l=P({executions:u}))==null?void 0:l[0];return{runId:f==null?void 0:f.runId}},qo=async(o,t=fetch,n=!1)=>{const e=n?"workflows.archived":"workflows";let r=!0;const i=a=>{(Y(a)||Z(a))&&(r=!1)},s=w(e,{namespace:o});return await d(s,{params:{pageSize:"1"},onError:i,handleError:i,request:t}),{authorized:r}},Do=async(o,t,n=fetch)=>bo(o,t,n,!0);async function Qo(o,t=fetch){const n=w("workflow",{namespace:o.namespace,workflowId:o.workflowId});return d(n,{request:t,params:{"execution.runId":o.runId}}).then(I)}async function jo({workflow:o,namespace:t,reason:n,identity:e}){const r=w("workflow.terminate",{namespace:t,workflowId:o.id});return await d(r,{options:{method:"POST",body:E({reason:n,...e&&{identity:e}})},notifyOnError:!1,params:{"execution.runId":o.runId}})}async function No({namespace:o,workflowId:t,runId:n},e=fetch){const r=w("workflow.cancel",{namespace:o,workflowId:t});return d(r,{request:e,notifyOnError:!1,options:{method:"POST"},params:{"execution.runId":n}})}async function Uo({namespace:o,workflowId:t,runId:n,signalName:e,signalInput:r,settings:i,accessToken:s}){var f;const a=w("workflow.signal",{namespace:o,workflowId:t,signalName:e});let u=null;if(r)if((f=i==null?void 0:i.codec)!=null&&f.endpoint){const l=await N({payloads:{payloads:[JSON.parse(r)]},namespace:o,settings:i,accessToken:s,encode:!0});if(y(L)==="error")throw new Error(y(J)||Q("common.encode-failed"));u=(l==null?void 0:l.payloads)??null}else u=[{metadata:{encoding:O("json/plain")},data:O(r)}];return d(a,{notifyOnError:!1,options:{method:"POST",body:E({signalName:e,input:{payloads:u},params:{"execution.runId":n}})}})}async function Ko({namespace:o,workflowId:t,runId:n,eventId:e,reason:r,resetReapplyType:i}){const s=w("workflow.reset",{namespace:o,workflowId:t}),a={workflowExecution:{workflowId:t,runId:n},workflowTaskFinishEventId:e,resetReapplyType:i,requestId:io(),reason:r};return d(s,{notifyOnError:!1,options:{method:"POST",body:E(a)},params:{"execution.runId":n}})}async function _o(o,t=fetch){const n=r=>{console.error(r)},e=w("workflow",o);return d(e,{request:t,onError:n,handleError:n}).then(I)}export{wo as a,bo as b,No as c,qo as d,Do as e,Qo as f,Io as g,_o as h,R as i,Vo as j,Ko as r,Uo as s,jo as t,ao as w}; diff --git a/ui/assets/local/_app/immutable/chunks/workflow-service.e2f4a06b.js b/ui/assets/local/_app/immutable/chunks/workflow-service.e2f4a06b.js new file mode 100644 index 0000000000..d1ee5ba623 --- /dev/null +++ b/ui/assets/local/_app/immutable/chunks/workflow-service.e2f4a06b.js @@ -0,0 +1 @@ +import{ac as h}from"./index.4e2fcbc7.js";import{t as j}from"./translate.d23a91ae.js";import{a as N,b as U}from"./decode-payload.11855cf3.js";import{c as C}from"./has.183130b0.js";import{w as D}from"./write-actions-are-allowed.008c7180.js";import{s as K}from"./simplify-attributes.9504a504.js";import{l as _,a as L}from"./data-encoder-config.896de1ac.js";import{B as J}from"./encode-uri.e26747e0.js";import{b as G,p as H,a as d,r as w,c as M,i as X,d as Y}from"./route-for-api.d45de563.js";import{s as E}from"./parse-with-big-int.0036a80a.js";import{j as x}from"./singletons.13b3836d.js";import{p as Z}from"./stores.0e7b7e35.js";import{i as oo}from"./version-check.d006b302.js";import{c as $,t as to}from"./versions.6cca9ce8.js";import{l as no,m as ro,n as F,o as eo}from"./format-time.4f091e0e.js";import{v as io}from"./toaster.de22ba12.js";const ao=(o=[])=>o.map(t=>{const n=K(t,!0),r=t.activityId;return{...n,id:r}}),co=o=>C(o)||C(o.indexedFields)?{}:{indexedFields:Object.entries(o.indexedFields).reduce((n,[r,e])=>({...n,[r]:N(e)}),{})},I=o=>{var T,g,p,b,S,W,A;const t=co(o.workflowExecutionInfo.searchAttributes),n=o.workflowExecutionInfo.type.name,r=o.workflowExecutionInfo.execution.workflowId,e=o.workflowExecutionInfo.execution.runId,i=o.workflowExecutionInfo.startTime,s=o.workflowExecutionInfo.closeTime,a=o.workflowExecutionInfo.executionTime,u=o.workflowExecutionInfo.status,f=o.workflowExecutionInfo.status==="Running",l=o.workflowExecutionInfo.historyLength,y=o.workflowExecutionInfo.historySizeBytes,c=`/workflows/${r}/${e}`,m=((g=(T=o==null?void 0:o.executionConfig)==null?void 0:T.taskQueue)==null?void 0:g.name)||((p=o==null?void 0:o.workflowExecutionInfo)==null?void 0:p.taskQueue),k=(b=o==null?void 0:o.workflowExecutionInfo)==null?void 0:b.mostRecentWorkerVersionStamp,v=(S=o==null?void 0:o.workflowExecutionInfo)==null?void 0:S.parentNamespaceId,B=(W=o==null?void 0:o.workflowExecutionInfo)==null?void 0:W.parentExecution,z=o.workflowExecutionInfo.stateTransitionCount,V=(A=o.executionConfig)==null?void 0:A.defaultWorkflowTaskTimeout,q=ao(o.pendingActivities),Q=(o==null?void 0:o.pendingChildren)??[];return{name:n,id:r,runId:e,startTime:i,endTime:s,executionTime:a,status:u,historyEvents:l,historySizeBytes:y,searchAttributes:t,url:c,taskQueue:m,mostRecentWorkerVersionStamp:k,pendingActivities:q,pendingChildren:Q,parentNamespaceId:v,parent:B,stateTransitionCount:z,isRunning:f,defaultWorkflowTaskTimeout:V,get canBeTerminated(){return f&&D()}}},P=o=>(o.executions||[]).map(t=>I({workflowExecutionInfo:t})),so=o=>window.btoa(encodeURIComponent(o).replace(/%([0-9A-F]{2})/g,(t,n)=>String.fromCharCode(parseInt(n,16)))),O=(o,t=J)=>t?so(o):o,fo=(o,t)=>{var n;return((n=o==null?void 0:o.visibilityStore)==null?void 0:n.includes("elasticsearch"))||oo(t,"1.19")},uo=o=>{var t;return(t=o==null?void 0:o.visibilityStore)==null?void 0:t.includes("elasticsearch")},R=x([Z],([o])=>{var t,n,r;return(r=(n=(t=o.data)==null?void 0:t.settings)==null?void 0:n.runtimeEnvironment)==null?void 0:r.isCloud}),lo=x([$,to,R],([o,t,n])=>fo(o,t)||n);x([$,R],([o,t])=>uo(o)||t);const wo={workflowId:"WorkflowId",workflowType:"WorkflowType",timeRange:"StartTime",executionStatus:"ExecutionStatus",closeTime:"CloseTime"},mo=["workflowId","workflowType","timeRange","executionStatus","closeTime"],ko=o=>!(o===null||o===void 0||o===""||typeof o=="string"&&o==="undefined"),yo=o=>{if(typeof o!="string")return!1;for(const t of mo)if(t===o)return!0;return!1},ho=(o,t,n)=>{const r=wo[o];return t==="All"?"":no(t)||ro(t)?n||h(lo)?`${r} > "${F(t)}"`:`${r} BETWEEN "${F(t)}" AND "${eo()}"`:`${r}="${t}"`},Eo=(o,t)=>Object.entries(o).map(([n,r])=>{if(yo(n)&&ko(r))return ho(n,r,t)}).filter(Boolean),xo=(o,t=!1)=>Eo(o,t).join(" and "),Io=async(o,t,n=fetch,r=!1)=>{const e=t.query||xo(t,r);let i;try{i=decodeURIComponent(e)}catch{i=e}const s=r?"workflows.archived":"workflows";let a="";const u=c=>{var m,k;M(c),(m=c==null?void 0:c.body)!=null&&m.message||c!=null&&c.status?a=((k=c==null?void 0:c.body)==null?void 0:k.message)??`Error fetching workflows: ${c.status}: ${c.statusText}`:a="Error fetching workflows: Server failed to respond"},f=w(s,{namespace:o}),{executions:l,nextPageToken:y}=await d(f,{params:{query:i},onError:u,handleError:u,request:n})??{executions:[],nextPageToken:""};return{workflows:P({executions:l}),nextPageToken:String(y),error:a}},Vo=async({namespace:o,workflowId:t,url:n},r=fetch)=>{var l;const e="workflows",i=n??G(o),s=H(e,{namespace:o}),a=i+s,{executions:u}=await d(a,{params:{query:`WorkflowId="${t}"`,pageSize:"1"},request:r})??{executions:[]},f=(l=P({executions:u}))==null?void 0:l[0];return{runId:f==null?void 0:f.runId}},qo=async(o,t=fetch,n=!1)=>{const r=n?"workflows.archived":"workflows";let e=!0;const i=a=>{(X(a)||Y(a))&&(e=!1)},s=w(r,{namespace:o});return await d(s,{params:{pageSize:"1"},onError:i,handleError:i,request:t}),{authorized:e}},Qo=async(o,t,n=fetch)=>Io(o,t,n,!0);async function jo(o,t=fetch){const n=w("workflow",{namespace:o.namespace,workflowId:o.workflowId});return d(n,{request:t,params:{"execution.runId":o.runId}}).then(I)}async function No({workflow:o,namespace:t,reason:n,identity:r}){const e=w("workflow.terminate",{namespace:t,workflowId:o.id});return await d(e,{options:{method:"POST",body:E({reason:n,...r&&{identity:r}})},notifyOnError:!1,params:{"execution.runId":o.runId}})}async function Uo({namespace:o,workflowId:t,runId:n},r=fetch){const e=w("workflow.cancel",{namespace:o,workflowId:t});return d(e,{request:r,notifyOnError:!1,options:{method:"POST"},params:{"execution.runId":n}})}async function Do({namespace:o,workflowId:t,runId:n,signalName:r,signalInput:e,settings:i,accessToken:s}){var f;const a=w("workflow.signal",{namespace:o,workflowId:t,signalName:r});let u=null;if(e)if((f=i==null?void 0:i.codec)!=null&&f.endpoint){const l=await U({payloads:{payloads:[JSON.parse(e)]},namespace:o,settings:i,accessToken:s,encode:!0});if(h(_)==="error")throw new Error(h(L)||j("common.encode-failed"));u=(l==null?void 0:l.payloads)??null}else u=[{metadata:{encoding:O("json/plain")},data:O(e)}];return d(a,{notifyOnError:!1,options:{method:"POST",body:E({signalName:r,input:{payloads:u},params:{"execution.runId":n}})}})}async function Ko({namespace:o,workflowId:t,runId:n,eventId:r,reason:e,resetReapplyType:i}){const s=w("workflow.reset",{namespace:o,workflowId:t}),a={workflowExecution:{workflowId:t,runId:n},workflowTaskFinishEventId:r,resetReapplyType:i,requestId:io(),reason:e};return d(s,{notifyOnError:!1,options:{method:"POST",body:E(a)},params:{"execution.runId":n}})}async function _o(o,t=fetch){const n=e=>{console.error(e)},r=w("workflow",o);return d(r,{request:t,onError:n,handleError:n}).then(I)}export{lo as a,Io as b,Uo as c,qo as d,Qo as e,jo as f,xo as g,_o as h,R as i,Vo as j,Ko as r,Do as s,No as t}; diff --git a/ui/assets/local/_app/immutable/chunks/workflows.73556738.js b/ui/assets/local/_app/immutable/chunks/workflows.73426400.js similarity index 85% rename from ui/assets/local/_app/immutable/chunks/workflows.73556738.js rename to ui/assets/local/_app/immutable/chunks/workflows.73426400.js index cdf4044373..5405bc26bd 100644 --- a/ui/assets/local/_app/immutable/chunks/workflows.73556738.js +++ b/ui/assets/local/_app/immutable/chunks/workflows.73426400.js @@ -1 +1 @@ -import{j as c,r as m,w as n}from"./singletons.fb5f332e.js";import{p as u}from"./stores.14a97433.js";import{t as d}from"./translate.d23a91ae.js";import{n as w,ac as k}from"./index.4e2fcbc7.js";import{r as f,a as p}from"./route-for-api.60228029.js";import{a as h,b as E}from"./workflow-service.4d66b505.js";const b=async(o,r,s=fetch)=>{let t=0;try{const e=f("workflows.count",{namespace:o}),a=await p(e,{params:r?{query:r}:{},onError:w,handleError:w,request:s});t=parseInt(a==null?void 0:a.count)}catch{}return{count:t}},j=async({namespace:o,query:r})=>{const s="GROUP BY ExecutionStatus",t=f("workflows.count",{namespace:o}),{count:e,groups:a}=await p(t,{params:{query:r?`${r} ${s}`:`${s}`},notifyOnError:!1});return{count:e,groups:a}},g=300,C=async(o,r,s)=>{r.set(!0);try{await s()}catch(t){console.error(t)}o.set(!1),setTimeout(()=>{r.set(!1)},g)},W=c([u],([o])=>{var r,s,t;return Boolean((t=(s=(r=o.data)==null?void 0:r.systemInfo)==null?void 0:s.capabilities)==null?void 0:t.countGroupByExecutionStatus)}),A=n(0),B=c([u],([o])=>{var r,s;return(s=(r=o.data)==null?void 0:r.settings)==null?void 0:s.hideWorkflowQueryErrors}),q=c([u],([o])=>o.params.namespace),v=c([u],([o])=>o.url.searchParams.get("query")),Q=c([q,v,A,h,B],([o,r,s,t,e])=>({namespace:o,query:r,refresh:s,supportsAdvancedVisibility:t,hideWorkflowQueryErrors:e})),x=o=>{R.set({...o,newCount:0})},P=o=>Q.subscribe(({namespace:r,query:s,supportsAdvancedVisibility:t,hideWorkflowQueryErrors:e})=>{C(I,S,async()=>{const{workflows:a,error:l}=await E(r,{query:s});if(o(a),t&&!k(W)){const y=await b(r,s);x(y)}l?e?i.set(d("workflows.workflows-error-querying")):i.set(l):i.set("")})}),L=n(""),S=n(!0),I=n(!0),R=n({count:0,newCount:0}),i=n(""),T=m([],P),U=n("");export{R as a,U as b,i as c,T as d,j as f,W as g,I as l,A as r,S as u,L as w}; +import{j as c,r as m,w as n}from"./singletons.13b3836d.js";import{p as u}from"./stores.0e7b7e35.js";import{t as d}from"./translate.d23a91ae.js";import{n as w,ac as k}from"./index.4e2fcbc7.js";import{r as f,a as p}from"./route-for-api.d45de563.js";import{a as h,b as E}from"./workflow-service.e2f4a06b.js";const b=async(o,r,s=fetch)=>{let t=0;try{const e=f("workflows.count",{namespace:o}),a=await p(e,{params:r?{query:r}:{},onError:w,handleError:w,request:s});t=parseInt(a==null?void 0:a.count)}catch{}return{count:t}},j=async({namespace:o,query:r})=>{const s="GROUP BY ExecutionStatus",t=f("workflows.count",{namespace:o}),{count:e,groups:a}=await p(t,{params:{query:r?`${r} ${s}`:`${s}`},notifyOnError:!1});return{count:e,groups:a}},g=300,C=async(o,r,s)=>{r.set(!0);try{await s()}catch(t){console.error(t)}o.set(!1),setTimeout(()=>{r.set(!1)},g)},W=c([u],([o])=>{var r,s,t;return Boolean((t=(s=(r=o.data)==null?void 0:r.systemInfo)==null?void 0:s.capabilities)==null?void 0:t.countGroupByExecutionStatus)}),A=n(0),B=c([u],([o])=>{var r,s;return(s=(r=o.data)==null?void 0:r.settings)==null?void 0:s.hideWorkflowQueryErrors}),q=c([u],([o])=>o.params.namespace),v=c([u],([o])=>o.url.searchParams.get("query")),Q=c([q,v,A,h,B],([o,r,s,t,e])=>({namespace:o,query:r,refresh:s,supportsAdvancedVisibility:t,hideWorkflowQueryErrors:e})),x=o=>{R.set({...o,newCount:0})},P=o=>Q.subscribe(({namespace:r,query:s,supportsAdvancedVisibility:t,hideWorkflowQueryErrors:e})=>{C(I,S,async()=>{const{workflows:a,error:l}=await E(r,{query:s});if(o(a),t&&!k(W)){const y=await b(r,s);x(y)}l?e?i.set(d("workflows.workflows-error-querying")):i.set(l):i.set("")})}),L=n(""),S=n(!0),I=n(!0),R=n({count:0,newCount:0}),i=n(""),T=m([],P),U=n("");export{R as a,U as b,i as c,T as d,j as f,W as g,I as l,A as r,S as u,L as w}; diff --git a/ui/assets/local/_app/immutable/chunks/write-actions-are-allowed.008c7180.js b/ui/assets/local/_app/immutable/chunks/write-actions-are-allowed.008c7180.js new file mode 100644 index 0000000000..700e5c2aec --- /dev/null +++ b/ui/assets/local/_app/immutable/chunks/write-actions-are-allowed.008c7180.js @@ -0,0 +1 @@ +import{ac as t}from"./index.4e2fcbc7.js";import{s as e}from"./settings.0d5c4f96.js";const a=(s=e)=>!t(s).disableWriteActions;export{a as w}; diff --git a/ui/assets/local/_app/immutable/entry/app.24c7c316.js b/ui/assets/local/_app/immutable/entry/app.24c7c316.js deleted file mode 100644 index 4f1211b638..0000000000 --- a/ui/assets/local/_app/immutable/entry/app.24c7c316.js +++ /dev/null @@ -1 +0,0 @@ -import{S as H,b as J,a as K,c as M,e as m,d as Q,f as b,g as p,h as R,j as d,k as v,l as X,o as Y,m as Z,p as x,q as ee,u as O,v as $,w as te,x as ne,y as ie,z as L,t as re,A as P,B as w,C as h,D,E,F as k}from"../chunks/index.4e2fcbc7.js";const se="modulepreload",oe=function(_,e){return new URL(_,e).href},y={},u=function(e,n,r){if(!n||n.length===0)return e();const i=document.getElementsByTagName("link");return Promise.all(n.map(l=>{if(l=oe(l,r),l in y)return;y[l]=!0;const t=l.endsWith(".css"),o=t?'[rel="stylesheet"]':"";if(!!r)for(let c=i.length-1;c>=0;c--){const g=i[c];if(g.href===l&&(!t||g.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${l}"]${o}`))return;const a=document.createElement("link");if(a.rel=t?"stylesheet":se,t||(a.as="script",a.crossOrigin=""),a.href=l,document.head.appendChild(a),t)return new Promise((c,g)=>{a.addEventListener("load",c),a.addEventListener("error",()=>g(new Error(`Unable to preload CSS for ${l}`)))})})).then(()=>e())},be={};function ae(_){let e,n,r;var i=_[1][0];function l(t){return{props:{data:t[3],form:t[2]}}}return i&&(e=w(i,l(_)),_[21](e)),{c(){e&&h(e.$$.fragment),n=m()},l(t){e&&D(e.$$.fragment,t),n=m()},m(t,o){e&&E(e,t,o),b(t,n,o),r=!0},p(t,o){const s={};if(o&8&&(s.data=t[3]),o&4&&(s.form=t[2]),i!==(i=t[1][0])){if(e){L();const a=e;p(a.$$.fragment,1,0,()=>{k(a,1)}),R()}i?(e=w(i,l(t)),t[21](e),h(e.$$.fragment),d(e.$$.fragment,1),E(e,n.parentNode,n)):e=null}else i&&e.$set(s)},i(t){r||(e&&d(e.$$.fragment,t),r=!0)},o(t){e&&p(e.$$.fragment,t),r=!1},d(t){_[21](null),t&&v(n),e&&k(e,t)}}}function _e(_){let e,n,r;var i=_[1][0];function l(t){return{props:{data:t[3],$$slots:{default:[Ee]},$$scope:{ctx:t}}}}return i&&(e=w(i,l(_)),_[20](e)),{c(){e&&h(e.$$.fragment),n=m()},l(t){e&&D(e.$$.fragment,t),n=m()},m(t,o){e&&E(e,t,o),b(t,n,o),r=!0},p(t,o){const s={};if(o&8&&(s.data=t[3]),o&4194551&&(s.$$scope={dirty:o,ctx:t}),i!==(i=t[1][0])){if(e){L();const a=e;p(a.$$.fragment,1,0,()=>{k(a,1)}),R()}i?(e=w(i,l(t)),t[20](e),h(e.$$.fragment),d(e.$$.fragment,1),E(e,n.parentNode,n)):e=null}else i&&e.$set(s)},i(t){r||(e&&d(e.$$.fragment,t),r=!0)},o(t){e&&p(e.$$.fragment,t),r=!1},d(t){_[20](null),t&&v(n),e&&k(e,t)}}}function le(_){let e,n,r;var i=_[1][1];function l(t){return{props:{data:t[4],form:t[2]}}}return i&&(e=w(i,l(_)),_[19](e)),{c(){e&&h(e.$$.fragment),n=m()},l(t){e&&D(e.$$.fragment,t),n=m()},m(t,o){e&&E(e,t,o),b(t,n,o),r=!0},p(t,o){const s={};if(o&16&&(s.data=t[4]),o&4&&(s.form=t[2]),i!==(i=t[1][1])){if(e){L();const a=e;p(a.$$.fragment,1,0,()=>{k(a,1)}),R()}i?(e=w(i,l(t)),t[19](e),h(e.$$.fragment),d(e.$$.fragment,1),E(e,n.parentNode,n)):e=null}else i&&e.$set(s)},i(t){r||(e&&d(e.$$.fragment,t),r=!0)},o(t){e&&p(e.$$.fragment,t),r=!1},d(t){_[19](null),t&&v(n),e&&k(e,t)}}}function fe(_){let e,n,r;var i=_[1][1];function l(t){return{props:{data:t[4],$$slots:{default:[he]},$$scope:{ctx:t}}}}return i&&(e=w(i,l(_)),_[18](e)),{c(){e&&h(e.$$.fragment),n=m()},l(t){e&&D(e.$$.fragment,t),n=m()},m(t,o){e&&E(e,t,o),b(t,n,o),r=!0},p(t,o){const s={};if(o&16&&(s.data=t[4]),o&4194535&&(s.$$scope={dirty:o,ctx:t}),i!==(i=t[1][1])){if(e){L();const a=e;p(a.$$.fragment,1,0,()=>{k(a,1)}),R()}i?(e=w(i,l(t)),t[18](e),h(e.$$.fragment),d(e.$$.fragment,1),E(e,n.parentNode,n)):e=null}else i&&e.$set(s)},i(t){r||(e&&d(e.$$.fragment,t),r=!0)},o(t){e&&p(e.$$.fragment,t),r=!1},d(t){_[18](null),t&&v(n),e&&k(e,t)}}}function ce(_){let e,n,r;var i=_[1][2];function l(t){return{props:{data:t[5],form:t[2]}}}return i&&(e=w(i,l(_)),_[17](e)),{c(){e&&h(e.$$.fragment),n=m()},l(t){e&&D(e.$$.fragment,t),n=m()},m(t,o){e&&E(e,t,o),b(t,n,o),r=!0},p(t,o){const s={};if(o&32&&(s.data=t[5]),o&4&&(s.form=t[2]),i!==(i=t[1][2])){if(e){L();const a=e;p(a.$$.fragment,1,0,()=>{k(a,1)}),R()}i?(e=w(i,l(t)),t[17](e),h(e.$$.fragment),d(e.$$.fragment,1),E(e,n.parentNode,n)):e=null}else i&&e.$set(s)},i(t){r||(e&&d(e.$$.fragment,t),r=!0)},o(t){e&&p(e.$$.fragment,t),r=!1},d(t){_[17](null),t&&v(n),e&&k(e,t)}}}function ue(_){let e,n,r;var i=_[1][2];function l(t){return{props:{data:t[5],$$slots:{default:[we]},$$scope:{ctx:t}}}}return i&&(e=w(i,l(_)),_[16](e)),{c(){e&&h(e.$$.fragment),n=m()},l(t){e&&D(e.$$.fragment,t),n=m()},m(t,o){e&&E(e,t,o),b(t,n,o),r=!0},p(t,o){const s={};if(o&32&&(s.data=t[5]),o&4194503&&(s.$$scope={dirty:o,ctx:t}),i!==(i=t[1][2])){if(e){L();const a=e;p(a.$$.fragment,1,0,()=>{k(a,1)}),R()}i?(e=w(i,l(t)),t[16](e),h(e.$$.fragment),d(e.$$.fragment,1),E(e,n.parentNode,n)):e=null}else i&&e.$set(s)},i(t){r||(e&&d(e.$$.fragment,t),r=!0)},o(t){e&&p(e.$$.fragment,t),r=!1},d(t){_[16](null),t&&v(n),e&&k(e,t)}}}function me(_){let e,n,r;var i=_[1][3];function l(t){return{props:{data:t[6],form:t[2]}}}return i&&(e=w(i,l(_)),_[15](e)),{c(){e&&h(e.$$.fragment),n=m()},l(t){e&&D(e.$$.fragment,t),n=m()},m(t,o){e&&E(e,t,o),b(t,n,o),r=!0},p(t,o){const s={};if(o&64&&(s.data=t[6]),o&4&&(s.form=t[2]),i!==(i=t[1][3])){if(e){L();const a=e;p(a.$$.fragment,1,0,()=>{k(a,1)}),R()}i?(e=w(i,l(t)),t[15](e),h(e.$$.fragment),d(e.$$.fragment,1),E(e,n.parentNode,n)):e=null}else i&&e.$set(s)},i(t){r||(e&&d(e.$$.fragment,t),r=!0)},o(t){e&&p(e.$$.fragment,t),r=!1},d(t){_[15](null),t&&v(n),e&&k(e,t)}}}function pe(_){let e,n,r;var i=_[1][3];function l(t){return{props:{data:t[6],$$slots:{default:[de]},$$scope:{ctx:t}}}}return i&&(e=w(i,l(_)),_[14](e)),{c(){e&&h(e.$$.fragment),n=m()},l(t){e&&D(e.$$.fragment,t),n=m()},m(t,o){e&&E(e,t,o),b(t,n,o),r=!0},p(t,o){const s={};if(o&64&&(s.data=t[6]),o&4194439&&(s.$$scope={dirty:o,ctx:t}),i!==(i=t[1][3])){if(e){L();const a=e;p(a.$$.fragment,1,0,()=>{k(a,1)}),R()}i?(e=w(i,l(t)),t[14](e),h(e.$$.fragment),d(e.$$.fragment,1),E(e,n.parentNode,n)):e=null}else i&&e.$set(s)},i(t){r||(e&&d(e.$$.fragment,t),r=!0)},o(t){e&&p(e.$$.fragment,t),r=!1},d(t){_[14](null),t&&v(n),e&&k(e,t)}}}function de(_){let e,n,r;var i=_[1][4];function l(t){return{props:{data:t[7],form:t[2]}}}return i&&(e=w(i,l(_)),_[13](e)),{c(){e&&h(e.$$.fragment),n=m()},l(t){e&&D(e.$$.fragment,t),n=m()},m(t,o){e&&E(e,t,o),b(t,n,o),r=!0},p(t,o){const s={};if(o&128&&(s.data=t[7]),o&4&&(s.form=t[2]),i!==(i=t[1][4])){if(e){L();const a=e;p(a.$$.fragment,1,0,()=>{k(a,1)}),R()}i?(e=w(i,l(t)),t[13](e),h(e.$$.fragment),d(e.$$.fragment,1),E(e,n.parentNode,n)):e=null}else i&&e.$set(s)},i(t){r||(e&&d(e.$$.fragment,t),r=!0)},o(t){e&&p(e.$$.fragment,t),r=!1},d(t){_[13](null),t&&v(n),e&&k(e,t)}}}function we(_){let e,n,r,i;const l=[pe,me],t=[];function o(s,a){return s[1][4]?0:1}return e=o(_),n=t[e]=l[e](_),{c(){n.c(),r=m()},l(s){n.l(s),r=m()},m(s,a){t[e].m(s,a),b(s,r,a),i=!0},p(s,a){let c=e;e=o(s),e===c?t[e].p(s,a):(L(),p(t[c],1,1,()=>{t[c]=null}),R(),n=t[e],n?n.p(s,a):(n=t[e]=l[e](s),n.c()),d(n,1),n.m(r.parentNode,r))},i(s){i||(d(n),i=!0)},o(s){p(n),i=!1},d(s){t[e].d(s),s&&v(r)}}}function he(_){let e,n,r,i;const l=[ue,ce],t=[];function o(s,a){return s[1][3]?0:1}return e=o(_),n=t[e]=l[e](_),{c(){n.c(),r=m()},l(s){n.l(s),r=m()},m(s,a){t[e].m(s,a),b(s,r,a),i=!0},p(s,a){let c=e;e=o(s),e===c?t[e].p(s,a):(L(),p(t[c],1,1,()=>{t[c]=null}),R(),n=t[e],n?n.p(s,a):(n=t[e]=l[e](s),n.c()),d(n,1),n.m(r.parentNode,r))},i(s){i||(d(n),i=!0)},o(s){p(n),i=!1},d(s){t[e].d(s),s&&v(r)}}}function Ee(_){let e,n,r,i;const l=[fe,le],t=[];function o(s,a){return s[1][2]?0:1}return e=o(_),n=t[e]=l[e](_),{c(){n.c(),r=m()},l(s){n.l(s),r=m()},m(s,a){t[e].m(s,a),b(s,r,a),i=!0},p(s,a){let c=e;e=o(s),e===c?t[e].p(s,a):(L(),p(t[c],1,1,()=>{t[c]=null}),R(),n=t[e],n?n.p(s,a):(n=t[e]=l[e](s),n.c()),d(n,1),n.m(r.parentNode,r))},i(s){i||(d(n),i=!0)},o(s){p(n),i=!1},d(s){t[e].d(s),s&&v(r)}}}function N(_){let e,n=_[9]&&q(_);return{c(){e=Z("div"),n&&n.c(),this.h()},l(r){e=x(r,"DIV",{id:!0,"aria-live":!0,"aria-atomic":!0,style:!0});var i=ee(e);n&&n.l(i),i.forEach(v),this.h()},h(){O(e,"id","svelte-announcer"),O(e,"aria-live","assertive"),O(e,"aria-atomic","true"),$(e,"position","absolute"),$(e,"left","0"),$(e,"top","0"),$(e,"clip","rect(0 0 0 0)"),$(e,"clip-path","inset(50%)"),$(e,"overflow","hidden"),$(e,"white-space","nowrap"),$(e,"width","1px"),$(e,"height","1px")},m(r,i){b(r,e,i),n&&n.m(e,null)},p(r,i){r[9]?n?n.p(r,i):(n=q(r),n.c(),n.m(e,null)):n&&(n.d(1),n=null)},d(r){r&&v(e),n&&n.d()}}}function q(_){let e;return{c(){e=te(_[10])},l(n){e=ne(n,_[10])},m(n,r){b(n,e,r)},p(n,r){r&1024&&ie(e,n[10])},d(n){n&&v(e)}}}function ke(_){let e,n,r,i,l;const t=[_e,ae],o=[];function s(c,g){return c[1][1]?0:1}e=s(_),n=o[e]=t[e](_);let a=_[8]&&N(_);return{c(){n.c(),r=M(),a&&a.c(),i=m()},l(c){n.l(c),r=Q(c),a&&a.l(c),i=m()},m(c,g){o[e].m(c,g),b(c,r,g),a&&a.m(c,g),b(c,i,g),l=!0},p(c,[g]){let I=e;e=s(c),e===I?o[e].p(c,g):(L(),p(o[I],1,1,()=>{o[I]=null}),R(),n=o[e],n?n.p(c,g):(n=o[e]=t[e](c),n.c()),d(n,1),n.m(r.parentNode,r)),c[8]?a?a.p(c,g):(a=N(c),a.c(),a.m(i.parentNode,i)):a&&(a.d(1),a=null)},i(c){l||(d(n),l=!0)},o(c){p(n),l=!1},d(c){o[e].d(c),c&&v(r),a&&a.d(c),c&&v(i)}}}function ge(_,e,n){let{stores:r}=e,{page:i}=e,{constructors:l}=e,{components:t=[]}=e,{form:o}=e,{data_0:s=null}=e,{data_1:a=null}=e,{data_2:c=null}=e,{data_3:g=null}=e,{data_4:I=null}=e;X(r.page.notify);let A=!1,T=!1,V=null;Y(()=>{const f=r.page.subscribe(()=>{A&&(n(9,T=!0),re().then(()=>{n(10,V=document.title||"untitled page")}))});return n(8,A=!0),f});function S(f){P[f?"unshift":"push"](()=>{t[4]=f,n(0,t)})}function C(f){P[f?"unshift":"push"](()=>{t[3]=f,n(0,t)})}function j(f){P[f?"unshift":"push"](()=>{t[3]=f,n(0,t)})}function B(f){P[f?"unshift":"push"](()=>{t[2]=f,n(0,t)})}function U(f){P[f?"unshift":"push"](()=>{t[2]=f,n(0,t)})}function z(f){P[f?"unshift":"push"](()=>{t[1]=f,n(0,t)})}function F(f){P[f?"unshift":"push"](()=>{t[1]=f,n(0,t)})}function W(f){P[f?"unshift":"push"](()=>{t[0]=f,n(0,t)})}function G(f){P[f?"unshift":"push"](()=>{t[0]=f,n(0,t)})}return _.$$set=f=>{"stores"in f&&n(11,r=f.stores),"page"in f&&n(12,i=f.page),"constructors"in f&&n(1,l=f.constructors),"components"in f&&n(0,t=f.components),"form"in f&&n(2,o=f.form),"data_0"in f&&n(3,s=f.data_0),"data_1"in f&&n(4,a=f.data_1),"data_2"in f&&n(5,c=f.data_2),"data_3"in f&&n(6,g=f.data_3),"data_4"in f&&n(7,I=f.data_4)},_.$$.update=()=>{_.$$.dirty&6144&&r.page.set(i)},[t,l,o,s,a,c,g,I,A,T,V,r,i,S,C,j,B,U,z,F,W,G]}class Re extends H{constructor(e){super(),J(this,e,ge,ke,K,{stores:11,page:12,constructors:1,components:0,form:2,data_0:3,data_1:4,data_2:5,data_3:6,data_4:7})}}const Le=[()=>u(()=>import("../nodes/0.55bf5337.js"),["../nodes/0.55bf5337.js","../chunks/i18next.1cfb3cb9.js","../chunks/layout.0300d560.js","../chunks/index.4e2fcbc7.js"],import.meta.url),()=>u(()=>import("../nodes/1.92a017e0.js"),["../nodes/1.92a017e0.js","../chunks/index.4e2fcbc7.js","../chunks/stores.14a97433.js","../chunks/singletons.fb5f332e.js","../chunks/paths.c2469178.js","../chunks/error.2e6962d0.js","../chunks/navigation.10919bcf.js","../chunks/link.6803bb00.js","../chunks/icon.e8aa24c8.js","../assets/link.e1fc8ece.css","../chunks/has.183130b0.js","../chunks/is-network-error.e7e518bc.js","../chunks/parse-with-big-int.0036a80a.js","../assets/app.ec6980e4.css"],import.meta.url),()=>u(()=>import("../nodes/2.0928d4af.js"),["../nodes/2.0928d4af.js","../chunks/index.3158323b.js","../chunks/control.f5b05b5f.js","../chunks/route-for-api.60228029.js","../chunks/encode-uri.e26747e0.js","../chunks/auth-user.9757f5e9.js","../chunks/index.4e2fcbc7.js","../chunks/persist-store.2e269d08.js","../chunks/singletons.fb5f332e.js","../chunks/paths.c2469178.js","../chunks/parse-with-big-int.0036a80a.js","../chunks/toaster.8a4adbc8.js","../chunks/has.183130b0.js","../chunks/is-network-error.e7e518bc.js","../chunks/route-for.80613b91.js","../chunks/stores.14a97433.js","../chunks/namespaces-service.7a2265f4.js","../chunks/namespaces.85dd397c.js","../chunks/paginated.ee0f9410.js","../chunks/settings-service.7891e454.js","../chunks/is-http.7eda3176.js","../chunks/navigation.10919bcf.js","../chunks/toggle-switch.3a41e457.js","../assets/toggle-switch.ff91b31f.css","../chunks/translate.d23a91ae.js","../chunks/i18next.1cfb3cb9.js","../chunks/workflow-run.86769de7.js","../chunks/data-encoder-config.23d100a5.js","../chunks/menu.69cccace.js","../chunks/badge.96e01a15.js","../assets/badge.bfa9122b.css","../chunks/icon.e8aa24c8.js","../chunks/index.6509bfd4.js","../assets/menu.b7c0dde7.css","../chunks/link.6803bb00.js","../assets/link.e1fc8ece.css","../chunks/button.a45b0e55.js","../assets/button.386e08e4.css","../chunks/accordion.777f1aaf.js","../chunks/radio-input.df4cce6e.js","../assets/radio-input.01c3758f.css","../chunks/tooltip.6cb33d85.js","../chunks/index.2169175d.js","../chunks/copy-to-clipboard.35a8cf56.js","../chunks/button.a1f9786a.js","../assets/button.8b8c0631.css","../assets/tooltip.78399487.css","../chunks/batch-operations.79b667c0.js","../chunks/workflow-actions.6f88149c.js","../chunks/versions.78cca4ad.js","../chunks/version-check.d006b302.js","../chunks/icon-button.92948dd7.js","../assets/icon-button.16bef21d.css","../chunks/input.0bde2076.js","../assets/input.19df62ce.css","../chunks/menu-divider.ada09983.js","../chunks/time-format.88312c30.js","../chunks/format-time.4f091e0e.js","../chunks/format-camel-case.887ffc78.js","../chunks/error.2e6962d0.js","../assets/2.3f1f013f.css","../assets/app.ec6980e4.css"],import.meta.url),()=>u(()=>import("../nodes/3.8d0d3e16.js"),["../nodes/3.8d0d3e16.js","../chunks/index.4e2fcbc7.js","../chunks/stores.14a97433.js","../chunks/singletons.fb5f332e.js","../chunks/paths.c2469178.js","../chunks/page-title.f9a44b80.js"],import.meta.url),()=>u(()=>import("../nodes/4.f2b8562e.js"),["../nodes/4.f2b8562e.js","../chunks/index.4e2fcbc7.js","../chunks/event-history-file-import.45952db8.js","../chunks/navigation.10919bcf.js","../chunks/singletons.fb5f332e.js","../chunks/paths.c2469178.js","../chunks/button.a45b0e55.js","../chunks/badge.96e01a15.js","../assets/badge.bfa9122b.css","../chunks/icon.e8aa24c8.js","../assets/button.386e08e4.css","../chunks/translate.d23a91ae.js","../chunks/i18next.1cfb3cb9.js","../chunks/index.03feb468.js","../chunks/has.183130b0.js","../chunks/is-event-type.4dbe973b.js","../chunks/format-time.4f091e0e.js","../chunks/index.9a06eb7c.js","../chunks/data-encoder-config.23d100a5.js","../chunks/persist-store.2e269d08.js","../chunks/parse-with-big-int.0036a80a.js","../chunks/time-format.88312c30.js","../chunks/get-event-categorization.4d9adfe9.js","../chunks/simplify-attributes.8d6f7848.js","../chunks/import-events.7da68a62.js","../chunks/namespaces.85dd397c.js","../chunks/toaster.8a4adbc8.js","../chunks/route-for.80613b91.js","../chunks/encode-uri.e26747e0.js","../chunks/toggle-buttons.781b6924.js","../chunks/stores.14a97433.js","../assets/toggle-buttons.1415ce75.css"],import.meta.url),()=>u(()=>import("../nodes/5.0963412c.js"),["../nodes/5.0963412c.js","../chunks/route-for-api.60228029.js","../chunks/encode-uri.e26747e0.js","../chunks/auth-user.9757f5e9.js","../chunks/index.4e2fcbc7.js","../chunks/persist-store.2e269d08.js","../chunks/singletons.fb5f332e.js","../chunks/paths.c2469178.js","../chunks/parse-with-big-int.0036a80a.js","../chunks/toaster.8a4adbc8.js","../chunks/has.183130b0.js","../chunks/is-network-error.e7e518bc.js","../chunks/route-for.80613b91.js","../chunks/stores.14a97433.js","../chunks/search-attributes.5d6df3ed.js","../chunks/layout.0300d560.js"],import.meta.url),()=>u(()=>import("../nodes/6.05f27607.js"),["../nodes/6.05f27607.js","../chunks/index.4e2fcbc7.js"],import.meta.url),()=>u(()=>import("../nodes/7.e0d9613e.js"),["../nodes/7.e0d9613e.js","../chunks/index.4e2fcbc7.js"],import.meta.url),()=>u(()=>import("../nodes/8.a57da379.js"),["../nodes/8.a57da379.js","../chunks/index.4e2fcbc7.js","../chunks/stores.14a97433.js","../chunks/singletons.fb5f332e.js","../chunks/paths.c2469178.js","../chunks/loading.95801385.js","../chunks/translate.d23a91ae.js","../chunks/i18next.1cfb3cb9.js","../chunks/index.6509bfd4.js","../chunks/toggle-switch.3a41e457.js","../assets/toggle-switch.ff91b31f.css","../chunks/tooltip.6cb33d85.js","../chunks/index.2169175d.js","../chunks/copy-to-clipboard.35a8cf56.js","../chunks/button.a1f9786a.js","../chunks/icon.e8aa24c8.js","../assets/button.8b8c0631.css","../assets/tooltip.78399487.css","../chunks/event-view.56fa9b74.js","../chunks/persist-store.2e269d08.js","../chunks/parse-with-big-int.0036a80a.js","../chunks/workflow-terminate-enabled.cbb14ee6.js","../chunks/workflow-actions.6f88149c.js","../assets/workflow-terminate-enabled.6ee4d4a3.css","../chunks/input.0bde2076.js","../chunks/icon-button.92948dd7.js","../assets/icon-button.16bef21d.css","../assets/input.19df62ce.css","../chunks/radio-input.df4cce6e.js","../assets/radio-input.01c3758f.css","../chunks/events.631efcca.js","../chunks/auth-user.9757f5e9.js","../chunks/workflow-run.86769de7.js","../chunks/encode-uri.e26747e0.js","../chunks/is-event-type.4dbe973b.js","../chunks/button.a45b0e55.js","../chunks/badge.96e01a15.js","../assets/badge.bfa9122b.css","../assets/button.386e08e4.css","../chunks/code-block.d389dfc4.js","../chunks/menu.69cccace.js","../assets/menu.b7c0dde7.css","../chunks/menu-divider.ada09983.js","../chunks/modal.05d30376.js","../assets/modal.a1162225.css","../chunks/split-button.8c08583d.js","../assets/split-button.8566e410.css","../chunks/workflow-service.4d66b505.js","../chunks/decode-payload.a8d5059b.js","../chunks/data-encoder-config.23d100a5.js","../chunks/has.183130b0.js","../chunks/is-http.7eda3176.js","../chunks/versions.78cca4ad.js","../chunks/simplify-attributes.8d6f7848.js","../chunks/time-format.88312c30.js","../chunks/format-time.4f091e0e.js","../chunks/route-for-api.60228029.js","../chunks/toaster.8a4adbc8.js","../chunks/is-network-error.e7e518bc.js","../chunks/route-for.80613b91.js","../chunks/version-check.d006b302.js","../chunks/core-user.db246b6d.js","../chunks/workflow-status.781aff44.js","../assets/workflow-status.80899fb7.css","../chunks/alert.9612e524.js","../assets/alert.303275c8.css","../chunks/pollers-service.541d2792.js","../assets/pollers-service.3f93e67d.css","../chunks/link.6803bb00.js","../assets/link.e1fc8ece.css","../chunks/tab.33b6de7b.js","../assets/tab.8436f1bf.css","../chunks/workflows.73556738.js","../chunks/task-queue-compatibility.cf5696f8.js","../chunks/get-codec.418ac4fc.js","../chunks/events-service.d20b1da6.js","../chunks/index.9a06eb7c.js","../chunks/get-event-categorization.4d9adfe9.js","../chunks/paginated.ee0f9410.js"],import.meta.url),()=>u(()=>import("../nodes/9.bcb32c78.js"),["../nodes/9.bcb32c78.js","../chunks/index.3158323b.js","../chunks/control.f5b05b5f.js","../chunks/settings-service.7891e454.js","../chunks/route-for-api.60228029.js","../chunks/encode-uri.e26747e0.js","../chunks/auth-user.9757f5e9.js","../chunks/index.4e2fcbc7.js","../chunks/persist-store.2e269d08.js","../chunks/singletons.fb5f332e.js","../chunks/paths.c2469178.js","../chunks/parse-with-big-int.0036a80a.js","../chunks/toaster.8a4adbc8.js","../chunks/has.183130b0.js","../chunks/is-network-error.e7e518bc.js","../chunks/route-for.80613b91.js","../chunks/stores.14a97433.js","../assets/app.ec6980e4.css"],import.meta.url),()=>u(()=>import("../nodes/10.1dca8499.js"),["../nodes/10.1dca8499.js","../chunks/index.3158323b.js","../chunks/control.f5b05b5f.js","../chunks/route-for.80613b91.js","../chunks/encode-uri.e26747e0.js","../chunks/paths.c2469178.js","../chunks/index.4e2fcbc7.js","../chunks/navigation.10919bcf.js","../chunks/singletons.fb5f332e.js","../chunks/loading.95801385.js","../chunks/translate.d23a91ae.js","../chunks/i18next.1cfb3cb9.js","../chunks/workflow-service.4d66b505.js","../chunks/decode-payload.a8d5059b.js","../chunks/data-encoder-config.23d100a5.js","../chunks/persist-store.2e269d08.js","../chunks/parse-with-big-int.0036a80a.js","../chunks/has.183130b0.js","../chunks/is-http.7eda3176.js","../chunks/versions.78cca4ad.js","../chunks/stores.14a97433.js","../chunks/simplify-attributes.8d6f7848.js","../chunks/time-format.88312c30.js","../chunks/format-time.4f091e0e.js","../chunks/route-for-api.60228029.js","../chunks/auth-user.9757f5e9.js","../chunks/toaster.8a4adbc8.js","../chunks/is-network-error.e7e518bc.js","../chunks/version-check.d006b302.js","../chunks/namespaces.85dd397c.js"],import.meta.url),()=>u(()=>import("../nodes/11.49c98fba.js"),["../nodes/11.49c98fba.js","../chunks/index.3158323b.js","../chunks/control.f5b05b5f.js","../chunks/route-for.80613b91.js","../chunks/encode-uri.e26747e0.js","../chunks/paths.c2469178.js"],import.meta.url),()=>u(()=>import("../nodes/12.0cefefa6.js"),["../nodes/12.0cefefa6.js","../chunks/index.4e2fcbc7.js","../chunks/event-history-file-import.45952db8.js","../chunks/navigation.10919bcf.js","../chunks/singletons.fb5f332e.js","../chunks/paths.c2469178.js","../chunks/button.a45b0e55.js","../chunks/badge.96e01a15.js","../assets/badge.bfa9122b.css","../chunks/icon.e8aa24c8.js","../assets/button.386e08e4.css","../chunks/translate.d23a91ae.js","../chunks/i18next.1cfb3cb9.js","../chunks/index.03feb468.js","../chunks/has.183130b0.js","../chunks/is-event-type.4dbe973b.js","../chunks/format-time.4f091e0e.js","../chunks/index.9a06eb7c.js","../chunks/data-encoder-config.23d100a5.js","../chunks/persist-store.2e269d08.js","../chunks/parse-with-big-int.0036a80a.js","../chunks/time-format.88312c30.js","../chunks/get-event-categorization.4d9adfe9.js","../chunks/simplify-attributes.8d6f7848.js","../chunks/import-events.7da68a62.js","../chunks/namespaces.85dd397c.js","../chunks/toaster.8a4adbc8.js","../chunks/route-for.80613b91.js","../chunks/encode-uri.e26747e0.js","../chunks/code-block.d389dfc4.js","../chunks/button.a1f9786a.js","../assets/button.8b8c0631.css","../chunks/copy-to-clipboard.35a8cf56.js","../chunks/link.6803bb00.js","../assets/link.e1fc8ece.css"],import.meta.url),()=>u(()=>import("../nodes/13.d5bef43e.js"),["../nodes/13.d5bef43e.js","../chunks/index.3158323b.js","../chunks/control.f5b05b5f.js","../chunks/route-for.80613b91.js","../chunks/encode-uri.e26747e0.js","../chunks/paths.c2469178.js"],import.meta.url),()=>u(()=>import("../nodes/14.e0c55cfd.js"),["../nodes/14.e0c55cfd.js","../chunks/index.4e2fcbc7.js","../chunks/event-summary-table.f0d65a34.js","../chunks/empty-state.721f6c59.js","../chunks/icon.e8aa24c8.js","../chunks/loading.95801385.js","../chunks/translate.d23a91ae.js","../chunks/i18next.1cfb3cb9.js","../chunks/index.6509bfd4.js","../chunks/navigation.10919bcf.js","../chunks/singletons.fb5f332e.js","../chunks/paths.c2469178.js","../chunks/stores.14a97433.js","../chunks/link.6803bb00.js","../assets/link.e1fc8ece.css","../chunks/index.03feb468.js","../chunks/has.183130b0.js","../chunks/is-event-type.4dbe973b.js","../chunks/format-time.4f091e0e.js","../chunks/event-view.56fa9b74.js","../chunks/persist-store.2e269d08.js","../chunks/parse-with-big-int.0036a80a.js","../chunks/time-format.88312c30.js","../chunks/format-event-attributes.adc0487a.js","../chunks/format-camel-case.887ffc78.js","../chunks/route-for.80613b91.js","../chunks/encode-uri.e26747e0.js","../chunks/code-block.d389dfc4.js","../chunks/button.a1f9786a.js","../assets/button.8b8c0631.css","../chunks/copy-to-clipboard.35a8cf56.js","../chunks/index.2169175d.js","../chunks/payload-decoder.23fe8b7d.js","../chunks/auth-user.9757f5e9.js","../chunks/decode-payload.a8d5059b.js","../chunks/data-encoder-config.23d100a5.js","../chunks/is-http.7eda3176.js","../chunks/get-codec.418ac4fc.js","../chunks/table-header-row.fec98b60.js","../assets/table-header-row.6ba6477c.css","../chunks/menu.69cccace.js","../chunks/badge.96e01a15.js","../assets/badge.bfa9122b.css","../assets/menu.b7c0dde7.css","../chunks/get-event-categorization.4d9adfe9.js","../chunks/filters.e20189d3.js","../chunks/versions.78cca4ad.js","../chunks/update-query-parameters.dc7e7d75.js","../chunks/version-check.d006b302.js","../chunks/menu-divider.ada09983.js","../chunks/button.a45b0e55.js","../assets/button.386e08e4.css","../assets/event-summary-table.c983745f.css","../chunks/pagination.8a23314e.js","../chunks/pagination.ee9074bd.js","../chunks/simple-select.db1acee2.js","../assets/simple-select.51b2afe1.css","../chunks/index.8b5c6ff3.js","../assets/index.a8fb96df.css","../assets/pagination.76f9c6f3.css","../chunks/import-events.7da68a62.js"],import.meta.url),()=>u(()=>import("../nodes/15.e91dd5cb.js"),["../nodes/15.e91dd5cb.js","../chunks/index.4e2fcbc7.js","../chunks/event-summary-table.f0d65a34.js","../chunks/empty-state.721f6c59.js","../chunks/icon.e8aa24c8.js","../chunks/loading.95801385.js","../chunks/translate.d23a91ae.js","../chunks/i18next.1cfb3cb9.js","../chunks/index.6509bfd4.js","../chunks/navigation.10919bcf.js","../chunks/singletons.fb5f332e.js","../chunks/paths.c2469178.js","../chunks/stores.14a97433.js","../chunks/link.6803bb00.js","../assets/link.e1fc8ece.css","../chunks/index.03feb468.js","../chunks/has.183130b0.js","../chunks/is-event-type.4dbe973b.js","../chunks/format-time.4f091e0e.js","../chunks/event-view.56fa9b74.js","../chunks/persist-store.2e269d08.js","../chunks/parse-with-big-int.0036a80a.js","../chunks/time-format.88312c30.js","../chunks/format-event-attributes.adc0487a.js","../chunks/format-camel-case.887ffc78.js","../chunks/route-for.80613b91.js","../chunks/encode-uri.e26747e0.js","../chunks/code-block.d389dfc4.js","../chunks/button.a1f9786a.js","../assets/button.8b8c0631.css","../chunks/copy-to-clipboard.35a8cf56.js","../chunks/index.2169175d.js","../chunks/payload-decoder.23fe8b7d.js","../chunks/auth-user.9757f5e9.js","../chunks/decode-payload.a8d5059b.js","../chunks/data-encoder-config.23d100a5.js","../chunks/is-http.7eda3176.js","../chunks/get-codec.418ac4fc.js","../chunks/table-header-row.fec98b60.js","../assets/table-header-row.6ba6477c.css","../chunks/menu.69cccace.js","../chunks/badge.96e01a15.js","../assets/badge.bfa9122b.css","../assets/menu.b7c0dde7.css","../chunks/get-event-categorization.4d9adfe9.js","../chunks/filters.e20189d3.js","../chunks/versions.78cca4ad.js","../chunks/update-query-parameters.dc7e7d75.js","../chunks/version-check.d006b302.js","../chunks/menu-divider.ada09983.js","../chunks/button.a45b0e55.js","../assets/button.386e08e4.css","../assets/event-summary-table.c983745f.css","../chunks/pagination.8a23314e.js","../chunks/pagination.ee9074bd.js","../chunks/simple-select.db1acee2.js","../assets/simple-select.51b2afe1.css","../chunks/index.8b5c6ff3.js","../assets/index.a8fb96df.css","../assets/pagination.76f9c6f3.css","../chunks/import-events.7da68a62.js"],import.meta.url),()=>u(()=>import("../nodes/16.924f0257.js"),["../nodes/16.924f0257.js","../chunks/index.4e2fcbc7.js","../chunks/workflow-json-navigator.7a126a38.js","../chunks/code-block.d389dfc4.js","../chunks/button.a1f9786a.js","../chunks/icon.e8aa24c8.js","../assets/button.8b8c0631.css","../chunks/copy-to-clipboard.35a8cf56.js","../chunks/singletons.fb5f332e.js","../chunks/paths.c2469178.js","../chunks/parse-with-big-int.0036a80a.js","../chunks/translate.d23a91ae.js","../chunks/i18next.1cfb3cb9.js","../chunks/loading.95801385.js","../chunks/index.9a06eb7c.js","../chunks/data-encoder-config.23d100a5.js","../chunks/persist-store.2e269d08.js","../chunks/has.183130b0.js","../chunks/time-format.88312c30.js","../chunks/format-time.4f091e0e.js","../chunks/is-event-type.4dbe973b.js","../chunks/get-event-categorization.4d9adfe9.js","../chunks/simplify-attributes.8d6f7848.js","../chunks/events.631efcca.js","../chunks/stores.14a97433.js","../chunks/auth-user.9757f5e9.js","../chunks/workflow-run.86769de7.js","../chunks/encode-uri.e26747e0.js","../chunks/event-view.56fa9b74.js","../chunks/payload-decoder.23fe8b7d.js","../chunks/decode-payload.a8d5059b.js","../chunks/is-http.7eda3176.js","../chunks/get-codec.418ac4fc.js","../assets/workflow-json-navigator.a85b4b27.css","../chunks/import-events.7da68a62.js"],import.meta.url),()=>u(()=>import("../nodes/17.1932f61f.js"),["../nodes/17.1932f61f.js","../chunks/index.4e2fcbc7.js","../chunks/stores.14a97433.js","../chunks/singletons.fb5f332e.js","../chunks/paths.c2469178.js","../chunks/page-title.f9a44b80.js","../chunks/empty-state.721f6c59.js","../chunks/icon.e8aa24c8.js","../chunks/link.6803bb00.js","../assets/link.e1fc8ece.css","../chunks/pagination.8a23314e.js","../chunks/pagination.ee9074bd.js","../chunks/update-query-parameters.dc7e7d75.js","../chunks/navigation.10919bcf.js","../chunks/simple-select.db1acee2.js","../assets/simple-select.51b2afe1.css","../chunks/index.8b5c6ff3.js","../assets/index.a8fb96df.css","../assets/pagination.76f9c6f3.css","../chunks/table-header-row.fec98b60.js","../assets/table-header-row.6ba6477c.css","../chunks/table-row.0fafe278.js","../chunks/translate.d23a91ae.js","../chunks/i18next.1cfb3cb9.js","../chunks/namespaces.85dd397c.js","../chunks/persist-store.2e269d08.js","../chunks/parse-with-big-int.0036a80a.js","../chunks/route-for.80613b91.js","../chunks/encode-uri.e26747e0.js"],import.meta.url),()=>u(()=>import("../nodes/18.7a43c0e3.js"),["../nodes/18.7a43c0e3.js","../chunks/namespaces-service.7a2265f4.js","../chunks/namespaces.85dd397c.js","../chunks/singletons.fb5f332e.js","../chunks/index.4e2fcbc7.js","../chunks/paths.c2469178.js","../chunks/persist-store.2e269d08.js","../chunks/parse-with-big-int.0036a80a.js","../chunks/toaster.8a4adbc8.js","../chunks/paginated.ee0f9410.js","../chunks/route-for-api.60228029.js","../chunks/encode-uri.e26747e0.js","../chunks/auth-user.9757f5e9.js","../chunks/has.183130b0.js","../chunks/is-network-error.e7e518bc.js","../chunks/route-for.80613b91.js","../chunks/stores.14a97433.js","../chunks/page-title.f9a44b80.js","../chunks/badge.96e01a15.js","../assets/badge.bfa9122b.css","../chunks/card.c1324719.js","../assets/card.c4e4432a.css","../chunks/table-header-row.fec98b60.js","../assets/table-header-row.6ba6477c.css","../chunks/table-row.0fafe278.js","../chunks/translate.d23a91ae.js","../chunks/i18next.1cfb3cb9.js","../chunks/search-attributes.5d6df3ed.js","../chunks/versions.78cca4ad.js","../chunks/format-time.4f091e0e.js"],import.meta.url),()=>u(()=>import("../nodes/19.b1bb45a9.js"),["../nodes/19.b1bb45a9.js","../chunks/namespaces-service.7a2265f4.js","../chunks/namespaces.85dd397c.js","../chunks/singletons.fb5f332e.js","../chunks/index.4e2fcbc7.js","../chunks/paths.c2469178.js","../chunks/persist-store.2e269d08.js","../chunks/parse-with-big-int.0036a80a.js","../chunks/toaster.8a4adbc8.js","../chunks/paginated.ee0f9410.js","../chunks/route-for-api.60228029.js","../chunks/encode-uri.e26747e0.js","../chunks/auth-user.9757f5e9.js","../chunks/has.183130b0.js","../chunks/is-network-error.e7e518bc.js","../chunks/route-for.80613b91.js","../chunks/stores.14a97433.js","../chunks/workflow-service.4d66b505.js","../chunks/translate.d23a91ae.js","../chunks/i18next.1cfb3cb9.js","../chunks/decode-payload.a8d5059b.js","../chunks/data-encoder-config.23d100a5.js","../chunks/is-http.7eda3176.js","../chunks/versions.78cca4ad.js","../chunks/simplify-attributes.8d6f7848.js","../chunks/time-format.88312c30.js","../chunks/format-time.4f091e0e.js","../chunks/version-check.d006b302.js","../chunks/page-title.f9a44b80.js","../chunks/index.17ebf758.js","../chunks/navigation.10919bcf.js","../chunks/workflow-status.781aff44.js","../chunks/index.6509bfd4.js","../chunks/button.a45b0e55.js","../chunks/badge.96e01a15.js","../assets/badge.bfa9122b.css","../chunks/icon.e8aa24c8.js","../assets/button.386e08e4.css","../assets/workflow-status.80899fb7.css","../chunks/copy-to-clipboard.35a8cf56.js","../chunks/link.6803bb00.js","../assets/link.e1fc8ece.css","../chunks/table-row.0fafe278.js","../chunks/workflows.73556738.js","../chunks/update-query-parameters.dc7e7d75.js","../chunks/table-header-row.fec98b60.js","../assets/table-header-row.6ba6477c.css","../chunks/input.0bde2076.js","../chunks/icon-button.92948dd7.js","../assets/icon-button.16bef21d.css","../assets/input.19df62ce.css","../assets/index.d6094a94.css","../chunks/code-block.d389dfc4.js","../chunks/button.a1f9786a.js","../assets/button.8b8c0631.css","../chunks/empty-state.721f6c59.js","../chunks/pagination.8a23314e.js","../chunks/pagination.ee9074bd.js","../chunks/simple-select.db1acee2.js","../assets/simple-select.51b2afe1.css","../chunks/index.8b5c6ff3.js","../assets/index.a8fb96df.css","../assets/pagination.76f9c6f3.css","../assets/19.c5268cbc.css"],import.meta.url),()=>u(()=>import("../nodes/20.a37e085d.js"),["../nodes/20.a37e085d.js","../chunks/index.4e2fcbc7.js","../chunks/stores.14a97433.js","../chunks/singletons.fb5f332e.js","../chunks/paths.c2469178.js","../chunks/page-title.f9a44b80.js","../chunks/translate.d23a91ae.js","../chunks/i18next.1cfb3cb9.js","../chunks/badge.96e01a15.js","../assets/badge.bfa9122b.css","../chunks/empty-state.721f6c59.js","../chunks/icon.e8aa24c8.js","../chunks/link.6803bb00.js","../assets/link.e1fc8ece.css","../chunks/table-header-row.fec98b60.js","../assets/table-header-row.6ba6477c.css","../chunks/table-row.0fafe278.js","../chunks/time-format.88312c30.js","../chunks/persist-store.2e269d08.js","../chunks/parse-with-big-int.0036a80a.js","../chunks/format-time.4f091e0e.js","../chunks/has.183130b0.js","../chunks/route-for.80613b91.js","../chunks/encode-uri.e26747e0.js","../chunks/alert.9612e524.js","../assets/alert.303275c8.css","../chunks/loading.95801385.js","../chunks/batch-operations.79b667c0.js","../chunks/workflow-actions.6f88149c.js","../chunks/auth-user.9757f5e9.js","../chunks/versions.78cca4ad.js","../chunks/route-for-api.60228029.js","../chunks/toaster.8a4adbc8.js","../chunks/is-network-error.e7e518bc.js","../chunks/version-check.d006b302.js"],import.meta.url),()=>u(()=>import("../nodes/21.5e7435d8.js"),["../nodes/21.5e7435d8.js","../chunks/index.4e2fcbc7.js","../chunks/stores.14a97433.js","../chunks/singletons.fb5f332e.js","../chunks/paths.c2469178.js","../chunks/page-title.f9a44b80.js","../chunks/translate.d23a91ae.js","../chunks/i18next.1cfb3cb9.js","../chunks/time-format.88312c30.js","../chunks/persist-store.2e269d08.js","../chunks/parse-with-big-int.0036a80a.js","../chunks/format-time.4f091e0e.js","../chunks/has.183130b0.js","../chunks/badge.96e01a15.js","../assets/badge.bfa9122b.css","../chunks/toggle-switch.3a41e457.js","../assets/toggle-switch.ff91b31f.css","../chunks/tooltip.6cb33d85.js","../chunks/index.2169175d.js","../chunks/copy-to-clipboard.35a8cf56.js","../chunks/button.a1f9786a.js","../chunks/icon.e8aa24c8.js","../assets/button.8b8c0631.css","../assets/tooltip.78399487.css","../chunks/batch-operations.79b667c0.js","../chunks/workflow-actions.6f88149c.js","../chunks/auth-user.9757f5e9.js","../chunks/versions.78cca4ad.js","../chunks/route-for-api.60228029.js","../chunks/encode-uri.e26747e0.js","../chunks/toaster.8a4adbc8.js","../chunks/is-network-error.e7e518bc.js","../chunks/route-for.80613b91.js","../chunks/version-check.d006b302.js","../chunks/card.c1324719.js","../assets/card.c4e4432a.css","../chunks/link.6803bb00.js","../assets/link.e1fc8ece.css","../assets/21.32920668.css"],import.meta.url),()=>u(()=>import("../nodes/22.92bd0b9d.js"),["../nodes/22.92bd0b9d.js","../chunks/index.4e2fcbc7.js","../chunks/stores.14a97433.js","../chunks/singletons.fb5f332e.js","../chunks/paths.c2469178.js","../chunks/page-title.f9a44b80.js","../chunks/navigation.10919bcf.js","../chunks/workflow-status.781aff44.js","../chunks/index.6509bfd4.js","../chunks/button.a45b0e55.js","../chunks/badge.96e01a15.js","../assets/badge.bfa9122b.css","../chunks/icon.e8aa24c8.js","../assets/button.386e08e4.css","../chunks/translate.d23a91ae.js","../chunks/i18next.1cfb3cb9.js","../assets/workflow-status.80899fb7.css","../chunks/link.6803bb00.js","../assets/link.e1fc8ece.css","../chunks/table-row.0fafe278.js","../chunks/time-format.88312c30.js","../chunks/persist-store.2e269d08.js","../chunks/parse-with-big-int.0036a80a.js","../chunks/format-time.4f091e0e.js","../chunks/has.183130b0.js","../chunks/route-for.80613b91.js","../chunks/encode-uri.e26747e0.js","../chunks/table-header-row.fec98b60.js","../assets/table-header-row.6ba6477c.css","../chunks/alert.9612e524.js","../assets/alert.303275c8.css","../chunks/pagination.ee9074bd.js","../chunks/update-query-parameters.dc7e7d75.js","../chunks/simple-select.db1acee2.js","../assets/simple-select.51b2afe1.css","../chunks/index.8b5c6ff3.js","../assets/index.a8fb96df.css","../chunks/empty-state.721f6c59.js","../chunks/input.0bde2076.js","../chunks/copy-to-clipboard.35a8cf56.js","../chunks/icon-button.92948dd7.js","../assets/icon-button.16bef21d.css","../assets/input.19df62ce.css","../chunks/schedule-service.ba2f3be5.js","../chunks/route-for-api.60228029.js","../chunks/auth-user.9757f5e9.js","../chunks/toaster.8a4adbc8.js","../chunks/is-network-error.e7e518bc.js","../chunks/core-user.db246b6d.js","../assets/22.f6d93894.css"],import.meta.url),()=>u(()=>import("../nodes/23.4b45bb23.js"),["../nodes/23.4b45bb23.js","../chunks/index.4e2fcbc7.js","../chunks/stores.14a97433.js","../chunks/singletons.fb5f332e.js","../chunks/paths.c2469178.js","../chunks/page-title.f9a44b80.js","../chunks/navigation.10919bcf.js","../chunks/accordion.777f1aaf.js","../chunks/badge.96e01a15.js","../assets/badge.bfa9122b.css","../chunks/icon.e8aa24c8.js","../chunks/toaster.8a4adbc8.js","../chunks/translate.d23a91ae.js","../chunks/i18next.1cfb3cb9.js","../chunks/schedules.71007bee.js","../chunks/code-block.d389dfc4.js","../chunks/button.a1f9786a.js","../assets/button.8b8c0631.css","../chunks/copy-to-clipboard.35a8cf56.js","../chunks/parse-with-big-int.0036a80a.js","../chunks/schedule-service.ba2f3be5.js","../chunks/route-for-api.60228029.js","../chunks/encode-uri.e26747e0.js","../chunks/auth-user.9757f5e9.js","../chunks/persist-store.2e269d08.js","../chunks/has.183130b0.js","../chunks/is-network-error.e7e518bc.js","../chunks/route-for.80613b91.js","../chunks/empty-state.721f6c59.js","../chunks/link.6803bb00.js","../assets/link.e1fc8ece.css","../chunks/workflow-service.4d66b505.js","../chunks/decode-payload.a8d5059b.js","../chunks/data-encoder-config.23d100a5.js","../chunks/is-http.7eda3176.js","../chunks/versions.78cca4ad.js","../chunks/simplify-attributes.8d6f7848.js","../chunks/time-format.88312c30.js","../chunks/format-time.4f091e0e.js","../chunks/version-check.d006b302.js","../chunks/workflow-status.781aff44.js","../chunks/index.6509bfd4.js","../chunks/button.a45b0e55.js","../assets/button.386e08e4.css","../assets/workflow-status.80899fb7.css","../chunks/translate.ac8f94f7.js","../chunks/index.8b5c6ff3.js","../assets/index.a8fb96df.css","../chunks/workflows.73556738.js","../chunks/loading.95801385.js","../chunks/menu.69cccace.js","../assets/menu.b7c0dde7.css","../chunks/modal.05d30376.js","../chunks/icon-button.92948dd7.js","../assets/icon-button.16bef21d.css","../assets/modal.a1162225.css","../chunks/radio-input.df4cce6e.js","../assets/radio-input.01c3758f.css","../chunks/split-button.8c08583d.js","../assets/split-button.8566e410.css","../chunks/core-user.db246b6d.js","../assets/23.8e3b0af3.css"],import.meta.url),()=>u(()=>import("../nodes/24.7805093d.js"),["../nodes/24.7805093d.js","../chunks/index.4e2fcbc7.js","../chunks/stores.14a97433.js","../chunks/singletons.fb5f332e.js","../chunks/paths.c2469178.js","../chunks/page-title.f9a44b80.js","../chunks/schedule-form-view.e4ddd14f.js","../chunks/input.0bde2076.js","../chunks/icon.e8aa24c8.js","../chunks/copy-to-clipboard.35a8cf56.js","../chunks/icon-button.92948dd7.js","../assets/icon-button.16bef21d.css","../assets/input.19df62ce.css","../chunks/tab.33b6de7b.js","../chunks/has.183130b0.js","../assets/tab.8436f1bf.css","../chunks/translate.d23a91ae.js","../chunks/i18next.1cfb3cb9.js","../chunks/option.6ac49d4b.js","../chunks/badge.96e01a15.js","../assets/badge.bfa9122b.css","../chunks/menu.69cccace.js","../chunks/index.6509bfd4.js","../assets/menu.b7c0dde7.css","../assets/option.20882847.css","../chunks/toggle-buttons.781b6924.js","../assets/toggle-buttons.1415ce75.css","../chunks/schedules.71007bee.js","../chunks/code-block.d389dfc4.js","../chunks/button.a1f9786a.js","../assets/button.8b8c0631.css","../chunks/parse-with-big-int.0036a80a.js","../chunks/navigation.10919bcf.js","../chunks/schedule-service.ba2f3be5.js","../chunks/route-for-api.60228029.js","../chunks/encode-uri.e26747e0.js","../chunks/auth-user.9757f5e9.js","../chunks/persist-store.2e269d08.js","../chunks/toaster.8a4adbc8.js","../chunks/is-network-error.e7e518bc.js","../chunks/route-for.80613b91.js","../chunks/alert.9612e524.js","../assets/alert.303275c8.css","../chunks/button.a45b0e55.js","../assets/button.386e08e4.css","../chunks/link.6803bb00.js","../assets/link.e1fc8ece.css","../chunks/loading.95801385.js","../assets/schedule-form-view.6d80008f.css"],import.meta.url),()=>u(()=>import("../nodes/25.8db0dae8.js"),["../nodes/25.8db0dae8.js","../chunks/index.4e2fcbc7.js","../chunks/stores.14a97433.js","../chunks/singletons.fb5f332e.js","../chunks/paths.c2469178.js","../chunks/page-title.f9a44b80.js","../chunks/schedule-form-view.e4ddd14f.js","../chunks/input.0bde2076.js","../chunks/icon.e8aa24c8.js","../chunks/copy-to-clipboard.35a8cf56.js","../chunks/icon-button.92948dd7.js","../assets/icon-button.16bef21d.css","../assets/input.19df62ce.css","../chunks/tab.33b6de7b.js","../chunks/has.183130b0.js","../assets/tab.8436f1bf.css","../chunks/translate.d23a91ae.js","../chunks/i18next.1cfb3cb9.js","../chunks/option.6ac49d4b.js","../chunks/badge.96e01a15.js","../assets/badge.bfa9122b.css","../chunks/menu.69cccace.js","../chunks/index.6509bfd4.js","../assets/menu.b7c0dde7.css","../assets/option.20882847.css","../chunks/toggle-buttons.781b6924.js","../assets/toggle-buttons.1415ce75.css","../chunks/schedules.71007bee.js","../chunks/code-block.d389dfc4.js","../chunks/button.a1f9786a.js","../assets/button.8b8c0631.css","../chunks/parse-with-big-int.0036a80a.js","../chunks/navigation.10919bcf.js","../chunks/schedule-service.ba2f3be5.js","../chunks/route-for-api.60228029.js","../chunks/encode-uri.e26747e0.js","../chunks/auth-user.9757f5e9.js","../chunks/persist-store.2e269d08.js","../chunks/toaster.8a4adbc8.js","../chunks/is-network-error.e7e518bc.js","../chunks/route-for.80613b91.js","../chunks/alert.9612e524.js","../assets/alert.303275c8.css","../chunks/button.a45b0e55.js","../assets/button.386e08e4.css","../chunks/link.6803bb00.js","../assets/link.e1fc8ece.css","../chunks/loading.95801385.js","../assets/schedule-form-view.6d80008f.css"],import.meta.url),()=>u(()=>import("../nodes/26.3eaa9a64.js"),["../nodes/26.3eaa9a64.js","../chunks/index.4e2fcbc7.js"],import.meta.url),()=>u(()=>import("../nodes/27.c50c71d8.js"),["../nodes/27.c50c71d8.js","../chunks/index.4e2fcbc7.js","../chunks/stores.14a97433.js","../chunks/singletons.fb5f332e.js","../chunks/paths.c2469178.js","../chunks/page-title.f9a44b80.js","../chunks/workers-list.1ce615d3.js","../chunks/badge.96e01a15.js","../assets/badge.bfa9122b.css","../chunks/pollers-service.541d2792.js","../chunks/icon.e8aa24c8.js","../chunks/translate.d23a91ae.js","../chunks/i18next.1cfb3cb9.js","../chunks/route-for-api.60228029.js","../chunks/encode-uri.e26747e0.js","../chunks/auth-user.9757f5e9.js","../chunks/persist-store.2e269d08.js","../chunks/parse-with-big-int.0036a80a.js","../chunks/toaster.8a4adbc8.js","../chunks/has.183130b0.js","../chunks/is-network-error.e7e518bc.js","../chunks/route-for.80613b91.js","../assets/pollers-service.3f93e67d.css","../chunks/empty-state.721f6c59.js","../chunks/table-header-row.fec98b60.js","../assets/table-header-row.6ba6477c.css","../chunks/table-row.0fafe278.js","../chunks/time-format.88312c30.js","../chunks/format-time.4f091e0e.js","../chunks/task-queue-compatibility.cf5696f8.js","../assets/workers-list.7dbb8f48.css"],import.meta.url),()=>u(()=>import("../nodes/28.db150666.js"),["../nodes/28.db150666.js","../chunks/index.4e2fcbc7.js","../chunks/stores.14a97433.js","../chunks/singletons.fb5f332e.js","../chunks/paths.c2469178.js","../chunks/workflow-service.4d66b505.js","../chunks/translate.d23a91ae.js","../chunks/i18next.1cfb3cb9.js","../chunks/decode-payload.a8d5059b.js","../chunks/data-encoder-config.23d100a5.js","../chunks/persist-store.2e269d08.js","../chunks/parse-with-big-int.0036a80a.js","../chunks/has.183130b0.js","../chunks/is-http.7eda3176.js","../chunks/encode-uri.e26747e0.js","../chunks/versions.78cca4ad.js","../chunks/simplify-attributes.8d6f7848.js","../chunks/time-format.88312c30.js","../chunks/format-time.4f091e0e.js","../chunks/route-for-api.60228029.js","../chunks/auth-user.9757f5e9.js","../chunks/toaster.8a4adbc8.js","../chunks/is-network-error.e7e518bc.js","../chunks/route-for.80613b91.js","../chunks/version-check.d006b302.js","../chunks/page-title.f9a44b80.js","../chunks/input.0bde2076.js","../chunks/icon.e8aa24c8.js","../chunks/copy-to-clipboard.35a8cf56.js","../chunks/icon-button.92948dd7.js","../assets/icon-button.16bef21d.css","../assets/input.19df62ce.css","../chunks/modal.05d30376.js","../chunks/button.a45b0e55.js","../chunks/badge.96e01a15.js","../assets/badge.bfa9122b.css","../assets/button.386e08e4.css","../chunks/menu.69cccace.js","../chunks/index.6509bfd4.js","../assets/menu.b7c0dde7.css","../assets/modal.a1162225.css","../chunks/translate.ac8f94f7.js","../chunks/index.8b5c6ff3.js","../assets/index.a8fb96df.css","../chunks/workflows.73556738.js","../chunks/workflow-status.781aff44.js","../assets/workflow-status.80899fb7.css","../chunks/workflow-actions.6f88149c.js","../chunks/workflow-terminate-enabled.cbb14ee6.js","../assets/workflow-terminate-enabled.6ee4d4a3.css","../chunks/filters.e20189d3.js","../chunks/index.17ebf758.js","../chunks/navigation.10919bcf.js","../chunks/link.6803bb00.js","../assets/link.e1fc8ece.css","../chunks/table-row.0fafe278.js","../chunks/update-query-parameters.dc7e7d75.js","../chunks/table-header-row.fec98b60.js","../assets/table-header-row.6ba6477c.css","../assets/index.d6094a94.css","../chunks/toggle-switch.3a41e457.js","../assets/toggle-switch.ff91b31f.css","../chunks/search-attributes.5d6df3ed.js","../chunks/option.6ac49d4b.js","../assets/option.20882847.css","../chunks/menu-divider.ada09983.js","../chunks/radio-input.df4cce6e.js","../assets/radio-input.01c3758f.css","../chunks/toggle-buttons.781b6924.js","../assets/toggle-buttons.1415ce75.css","../chunks/drawer.802d9486.js","../assets/drawer.96194c4d.css","../chunks/alert.9612e524.js","../assets/alert.303275c8.css","../chunks/loading.95801385.js","../chunks/pagination.ee9074bd.js","../chunks/simple-select.db1acee2.js","../assets/simple-select.51b2afe1.css","../chunks/namespaces.85dd397c.js","../chunks/core-user.db246b6d.js","../chunks/batch-operations.79b667c0.js","../chunks/empty-state.721f6c59.js","../chunks/pagination.8a23314e.js","../assets/pagination.76f9c6f3.css","../assets/28.bed845af.css"],import.meta.url),()=>u(()=>import("../nodes/29.61e4ee2d.js"),["../nodes/29.61e4ee2d.js","../chunks/index.3158323b.js","../chunks/control.f5b05b5f.js","../chunks/workflow-service.4d66b505.js","../chunks/index.4e2fcbc7.js","../chunks/translate.d23a91ae.js","../chunks/i18next.1cfb3cb9.js","../chunks/decode-payload.a8d5059b.js","../chunks/data-encoder-config.23d100a5.js","../chunks/singletons.fb5f332e.js","../chunks/paths.c2469178.js","../chunks/persist-store.2e269d08.js","../chunks/parse-with-big-int.0036a80a.js","../chunks/has.183130b0.js","../chunks/is-http.7eda3176.js","../chunks/encode-uri.e26747e0.js","../chunks/versions.78cca4ad.js","../chunks/stores.14a97433.js","../chunks/simplify-attributes.8d6f7848.js","../chunks/time-format.88312c30.js","../chunks/format-time.4f091e0e.js","../chunks/route-for-api.60228029.js","../chunks/auth-user.9757f5e9.js","../chunks/toaster.8a4adbc8.js","../chunks/is-network-error.e7e518bc.js","../chunks/route-for.80613b91.js","../chunks/version-check.d006b302.js"],import.meta.url),()=>u(()=>import("../nodes/30.0498b019.js"),["../nodes/30.0498b019.js","../chunks/index.3158323b.js","../chunks/control.f5b05b5f.js","../chunks/index.4e2fcbc7.js"],import.meta.url),()=>u(()=>import("../nodes/31.add13cfd.js"),["../nodes/31.add13cfd.js","../chunks/index.4e2fcbc7.js","../chunks/stores.14a97433.js","../chunks/singletons.fb5f332e.js","../chunks/paths.c2469178.js","../chunks/page-title.f9a44b80.js","../chunks/translate.d23a91ae.js","../chunks/i18next.1cfb3cb9.js","../chunks/alert.9612e524.js","../chunks/icon.e8aa24c8.js","../assets/alert.303275c8.css","../chunks/button.a45b0e55.js","../chunks/badge.96e01a15.js","../assets/badge.bfa9122b.css","../assets/button.386e08e4.css","../chunks/code-block.d389dfc4.js","../chunks/button.a1f9786a.js","../assets/button.8b8c0631.css","../chunks/copy-to-clipboard.35a8cf56.js","../chunks/parse-with-big-int.0036a80a.js","../chunks/empty-state.721f6c59.js","../chunks/link.6803bb00.js","../assets/link.e1fc8ece.css","../chunks/loading.95801385.js","../chunks/query-service.4630b63f.js","../chunks/data-encoder-config.23d100a5.js","../chunks/persist-store.2e269d08.js","../chunks/has.183130b0.js","../chunks/decode-payload.a8d5059b.js","../chunks/is-http.7eda3176.js","../chunks/encode-uri.e26747e0.js","../chunks/get-codec.418ac4fc.js","../chunks/route-for-api.60228029.js","../chunks/auth-user.9757f5e9.js","../chunks/toaster.8a4adbc8.js","../chunks/is-network-error.e7e518bc.js","../chunks/route-for.80613b91.js","../chunks/workflow-run.86769de7.js"],import.meta.url),()=>u(()=>import("../nodes/32.0642a3ab.js"),["../nodes/32.0642a3ab.js","../chunks/index.4e2fcbc7.js","../chunks/stores.14a97433.js","../chunks/singletons.fb5f332e.js","../chunks/paths.c2469178.js","../chunks/page-title.f9a44b80.js","../chunks/translate.d23a91ae.js","../chunks/i18next.1cfb3cb9.js","../chunks/accordion.777f1aaf.js","../chunks/badge.96e01a15.js","../assets/badge.bfa9122b.css","../chunks/icon.e8aa24c8.js","../chunks/toaster.8a4adbc8.js","../chunks/loading.95801385.js","../chunks/toggle-buttons.781b6924.js","../assets/toggle-buttons.1415ce75.css","../chunks/index.03feb468.js","../chunks/has.183130b0.js","../chunks/is-event-type.4dbe973b.js","../chunks/format-time.4f091e0e.js","../chunks/get-event-categorization.4d9adfe9.js","../chunks/event-view.56fa9b74.js","../chunks/persist-store.2e269d08.js","../chunks/parse-with-big-int.0036a80a.js","../chunks/filters.e20189d3.js","../chunks/workflow-run.86769de7.js","../chunks/format-camel-case.887ffc78.js","../chunks/time-format.88312c30.js","../chunks/button.a45b0e55.js","../assets/button.386e08e4.css","../chunks/drawer.802d9486.js","../chunks/index.6509bfd4.js","../chunks/menu.69cccace.js","../assets/menu.b7c0dde7.css","../chunks/icon-button.92948dd7.js","../assets/icon-button.16bef21d.css","../assets/drawer.96194c4d.css","../chunks/tooltip.6cb33d85.js","../chunks/index.2169175d.js","../chunks/copy-to-clipboard.35a8cf56.js","../chunks/button.a1f9786a.js","../assets/button.8b8c0631.css","../assets/tooltip.78399487.css","../chunks/code-block.d389dfc4.js","../chunks/payload-decoder.23fe8b7d.js","../chunks/auth-user.9757f5e9.js","../chunks/decode-payload.a8d5059b.js","../chunks/data-encoder-config.23d100a5.js","../chunks/is-http.7eda3176.js","../chunks/encode-uri.e26747e0.js","../chunks/get-codec.418ac4fc.js","../chunks/link.6803bb00.js","../assets/link.e1fc8ece.css","../chunks/format-event-attributes.adc0487a.js","../chunks/route-for.80613b91.js","../chunks/to-time-difference.be87d1bf.js","../chunks/alert.9612e524.js","../assets/alert.303275c8.css","../chunks/task-queue-compatibility.cf5696f8.js","../chunks/pagination.8a23314e.js","../chunks/pagination.ee9074bd.js","../chunks/update-query-parameters.dc7e7d75.js","../chunks/navigation.10919bcf.js","../chunks/simple-select.db1acee2.js","../assets/simple-select.51b2afe1.css","../chunks/index.8b5c6ff3.js","../assets/index.a8fb96df.css","../assets/pagination.76f9c6f3.css","../chunks/table-header-row.fec98b60.js","../assets/table-header-row.6ba6477c.css","../chunks/table-row.0fafe278.js","../chunks/workflow-status.781aff44.js","../assets/workflow-status.80899fb7.css","../chunks/event-summary-table.f0d65a34.js","../chunks/empty-state.721f6c59.js","../chunks/versions.78cca4ad.js","../chunks/version-check.d006b302.js","../chunks/menu-divider.ada09983.js","../assets/event-summary-table.c983745f.css","../chunks/modal.05d30376.js","../assets/modal.a1162225.css","../chunks/toggle-switch.3a41e457.js","../assets/toggle-switch.ff91b31f.css","../chunks/events-service.d20b1da6.js","../chunks/index.9a06eb7c.js","../chunks/simplify-attributes.8d6f7848.js","../chunks/paginated.ee0f9410.js","../chunks/route-for-api.60228029.js","../chunks/is-network-error.e7e518bc.js","../chunks/events.631efcca.js","../chunks/namespaces.85dd397c.js","../chunks/workflow-json-navigator.7a126a38.js","../assets/workflow-json-navigator.a85b4b27.css","../assets/32.200c2e4f.css"],import.meta.url),()=>u(()=>import("../nodes/33.00413884.js"),["../nodes/33.00413884.js","../chunks/index.3158323b.js","../chunks/control.f5b05b5f.js","../chunks/route-for.80613b91.js","../chunks/encode-uri.e26747e0.js","../chunks/paths.c2469178.js"],import.meta.url),()=>u(()=>import("../nodes/34.1e721919.js"),["../nodes/34.1e721919.js","../chunks/index.4e2fcbc7.js","../chunks/stores.14a97433.js","../chunks/singletons.fb5f332e.js","../chunks/paths.c2469178.js","../chunks/event-summary-table.f0d65a34.js","../chunks/empty-state.721f6c59.js","../chunks/icon.e8aa24c8.js","../chunks/loading.95801385.js","../chunks/translate.d23a91ae.js","../chunks/i18next.1cfb3cb9.js","../chunks/index.6509bfd4.js","../chunks/navigation.10919bcf.js","../chunks/link.6803bb00.js","../assets/link.e1fc8ece.css","../chunks/index.03feb468.js","../chunks/has.183130b0.js","../chunks/is-event-type.4dbe973b.js","../chunks/format-time.4f091e0e.js","../chunks/event-view.56fa9b74.js","../chunks/persist-store.2e269d08.js","../chunks/parse-with-big-int.0036a80a.js","../chunks/time-format.88312c30.js","../chunks/format-event-attributes.adc0487a.js","../chunks/format-camel-case.887ffc78.js","../chunks/route-for.80613b91.js","../chunks/encode-uri.e26747e0.js","../chunks/code-block.d389dfc4.js","../chunks/button.a1f9786a.js","../assets/button.8b8c0631.css","../chunks/copy-to-clipboard.35a8cf56.js","../chunks/index.2169175d.js","../chunks/payload-decoder.23fe8b7d.js","../chunks/auth-user.9757f5e9.js","../chunks/decode-payload.a8d5059b.js","../chunks/data-encoder-config.23d100a5.js","../chunks/is-http.7eda3176.js","../chunks/get-codec.418ac4fc.js","../chunks/table-header-row.fec98b60.js","../assets/table-header-row.6ba6477c.css","../chunks/menu.69cccace.js","../chunks/badge.96e01a15.js","../assets/badge.bfa9122b.css","../assets/menu.b7c0dde7.css","../chunks/get-event-categorization.4d9adfe9.js","../chunks/filters.e20189d3.js","../chunks/versions.78cca4ad.js","../chunks/update-query-parameters.dc7e7d75.js","../chunks/version-check.d006b302.js","../chunks/menu-divider.ada09983.js","../chunks/button.a45b0e55.js","../assets/button.386e08e4.css","../assets/event-summary-table.c983745f.css","../chunks/events-service.d20b1da6.js","../chunks/index.9a06eb7c.js","../chunks/simplify-attributes.8d6f7848.js","../chunks/paginated.ee0f9410.js","../chunks/route-for-api.60228029.js","../chunks/toaster.8a4adbc8.js","../chunks/is-network-error.e7e518bc.js","../chunks/events.631efcca.js","../chunks/workflow-run.86769de7.js"],import.meta.url),()=>u(()=>import("../nodes/35.00413884.js"),["../nodes/35.00413884.js","../chunks/index.3158323b.js","../chunks/control.f5b05b5f.js","../chunks/route-for.80613b91.js","../chunks/encode-uri.e26747e0.js","../chunks/paths.c2469178.js"],import.meta.url),()=>u(()=>import("../nodes/36.00413884.js"),["../nodes/36.00413884.js","../chunks/index.3158323b.js","../chunks/control.f5b05b5f.js","../chunks/route-for.80613b91.js","../chunks/encode-uri.e26747e0.js","../chunks/paths.c2469178.js"],import.meta.url),()=>u(()=>import("../nodes/37.c3754ad1.js"),["../nodes/37.c3754ad1.js","../chunks/index.4e2fcbc7.js","../chunks/stores.14a97433.js","../chunks/singletons.fb5f332e.js","../chunks/paths.c2469178.js","../chunks/page-title.f9a44b80.js","../chunks/translate.d23a91ae.js","../chunks/i18next.1cfb3cb9.js","../chunks/badge.96e01a15.js","../assets/badge.bfa9122b.css","../chunks/code-block.d389dfc4.js","../chunks/button.a1f9786a.js","../chunks/icon.e8aa24c8.js","../assets/button.8b8c0631.css","../chunks/copy-to-clipboard.35a8cf56.js","../chunks/parse-with-big-int.0036a80a.js","../chunks/empty-state.721f6c59.js","../chunks/link.6803bb00.js","../assets/link.e1fc8ece.css","../chunks/table-header-row.fec98b60.js","../assets/table-header-row.6ba6477c.css","../chunks/table-row.0fafe278.js","../chunks/time-format.88312c30.js","../chunks/persist-store.2e269d08.js","../chunks/format-time.4f091e0e.js","../chunks/has.183130b0.js","../chunks/workflow-run.86769de7.js","../chunks/format-event-attributes.adc0487a.js","../chunks/format-camel-case.887ffc78.js","../chunks/index.03feb468.js","../chunks/is-event-type.4dbe973b.js","../chunks/to-time-difference.be87d1bf.js","../assets/37.682a0c0d.css"],import.meta.url),()=>u(()=>import("../nodes/38.19b25f3c.js"),["../nodes/38.19b25f3c.js","../chunks/index.4e2fcbc7.js","../chunks/stores.14a97433.js","../chunks/singletons.fb5f332e.js","../chunks/paths.c2469178.js","../chunks/page-title.f9a44b80.js","../chunks/translate.d23a91ae.js","../chunks/i18next.1cfb3cb9.js","../chunks/button.a45b0e55.js","../chunks/badge.96e01a15.js","../assets/badge.bfa9122b.css","../chunks/icon.e8aa24c8.js","../assets/button.386e08e4.css","../chunks/code-block.d389dfc4.js","../chunks/button.a1f9786a.js","../assets/button.8b8c0631.css","../chunks/copy-to-clipboard.35a8cf56.js","../chunks/parse-with-big-int.0036a80a.js","../chunks/empty-state.721f6c59.js","../chunks/loading.95801385.js","../chunks/simple-select.db1acee2.js","../assets/simple-select.51b2afe1.css","../chunks/toggle-switch.3a41e457.js","../assets/toggle-switch.ff91b31f.css","../chunks/query-service.4630b63f.js","../chunks/data-encoder-config.23d100a5.js","../chunks/persist-store.2e269d08.js","../chunks/has.183130b0.js","../chunks/decode-payload.a8d5059b.js","../chunks/is-http.7eda3176.js","../chunks/encode-uri.e26747e0.js","../chunks/get-codec.418ac4fc.js","../chunks/route-for-api.60228029.js","../chunks/auth-user.9757f5e9.js","../chunks/toaster.8a4adbc8.js","../chunks/is-network-error.e7e518bc.js","../chunks/route-for.80613b91.js"],import.meta.url),()=>u(()=>import("../nodes/39.4f82e729.js"),["../nodes/39.4f82e729.js","../chunks/index.3158323b.js","../chunks/control.f5b05b5f.js","../chunks/route-for.80613b91.js","../chunks/encode-uri.e26747e0.js","../chunks/paths.c2469178.js"],import.meta.url),()=>u(()=>import("../nodes/40.5b818d2e.js"),["../nodes/40.5b818d2e.js","../chunks/index.4e2fcbc7.js","../chunks/stores.14a97433.js","../chunks/singletons.fb5f332e.js","../chunks/paths.c2469178.js","../chunks/page-title.f9a44b80.js","../chunks/translate.d23a91ae.js","../chunks/i18next.1cfb3cb9.js","../chunks/workers-list.1ce615d3.js","../chunks/badge.96e01a15.js","../assets/badge.bfa9122b.css","../chunks/pollers-service.541d2792.js","../chunks/icon.e8aa24c8.js","../chunks/route-for-api.60228029.js","../chunks/encode-uri.e26747e0.js","../chunks/auth-user.9757f5e9.js","../chunks/persist-store.2e269d08.js","../chunks/parse-with-big-int.0036a80a.js","../chunks/toaster.8a4adbc8.js","../chunks/has.183130b0.js","../chunks/is-network-error.e7e518bc.js","../chunks/route-for.80613b91.js","../assets/pollers-service.3f93e67d.css","../chunks/empty-state.721f6c59.js","../chunks/table-header-row.fec98b60.js","../assets/table-header-row.6ba6477c.css","../chunks/table-row.0fafe278.js","../chunks/time-format.88312c30.js","../chunks/format-time.4f091e0e.js","../chunks/task-queue-compatibility.cf5696f8.js","../assets/workers-list.7dbb8f48.css","../chunks/workflow-run.86769de7.js"],import.meta.url),()=>u(()=>import("../nodes/41.f3c36bef.js"),["../nodes/41.f3c36bef.js","../chunks/index.4e2fcbc7.js","../chunks/navigation.10919bcf.js","../chunks/singletons.fb5f332e.js","../chunks/paths.c2469178.js","../chunks/stores.14a97433.js","../chunks/page-title.f9a44b80.js","../chunks/empty-state.721f6c59.js","../chunks/icon.e8aa24c8.js","../chunks/input.0bde2076.js","../chunks/copy-to-clipboard.35a8cf56.js","../chunks/icon-button.92948dd7.js","../assets/icon-button.16bef21d.css","../assets/input.19df62ce.css","../chunks/translate.d23a91ae.js","../chunks/i18next.1cfb3cb9.js","../chunks/workflow-service.4d66b505.js","../chunks/decode-payload.a8d5059b.js","../chunks/data-encoder-config.23d100a5.js","../chunks/persist-store.2e269d08.js","../chunks/parse-with-big-int.0036a80a.js","../chunks/has.183130b0.js","../chunks/is-http.7eda3176.js","../chunks/encode-uri.e26747e0.js","../chunks/versions.78cca4ad.js","../chunks/simplify-attributes.8d6f7848.js","../chunks/time-format.88312c30.js","../chunks/format-time.4f091e0e.js","../chunks/route-for-api.60228029.js","../chunks/auth-user.9757f5e9.js","../chunks/toaster.8a4adbc8.js","../chunks/is-network-error.e7e518bc.js","../chunks/route-for.80613b91.js","../chunks/version-check.d006b302.js","../chunks/namespaces.85dd397c.js","../assets/41.8ed620ce.css"],import.meta.url),()=>u(()=>import("../nodes/42.fef270cf.js"),["../nodes/42.fef270cf.js","../chunks/index.4e2fcbc7.js","../chunks/stores.14a97433.js","../chunks/singletons.fb5f332e.js","../chunks/paths.c2469178.js","../chunks/logo.ea390932.js","../chunks/icon.e8aa24c8.js","../assets/logo.4e0dbf07.css","../chunks/page-title.f9a44b80.js","../chunks/button.a45b0e55.js","../chunks/badge.96e01a15.js","../assets/badge.bfa9122b.css","../assets/button.386e08e4.css","../chunks/route-for.80613b91.js","../chunks/encode-uri.e26747e0.js"],import.meta.url),()=>u(()=>import("../nodes/43.fef270cf.js"),["../nodes/43.fef270cf.js","../chunks/index.4e2fcbc7.js","../chunks/stores.14a97433.js","../chunks/singletons.fb5f332e.js","../chunks/paths.c2469178.js","../chunks/logo.ea390932.js","../chunks/icon.e8aa24c8.js","../assets/logo.4e0dbf07.css","../chunks/page-title.f9a44b80.js","../chunks/button.a45b0e55.js","../chunks/badge.96e01a15.js","../assets/badge.bfa9122b.css","../assets/button.386e08e4.css","../chunks/route-for.80613b91.js","../chunks/encode-uri.e26747e0.js"],import.meta.url)],$e=[],Pe={"/(app)":[10,[2]],"/(app)/import":[11,[2,3]],"/(app)/import/events":[12,[2,3]],"/(app)/import/events/[namespace]/[workflow]/[run]/history":[13,[2,3,4]],"/(app)/import/events/[namespace]/[workflow]/[run]/history/compact":[14,[2,3,4]],"/(app)/import/events/[namespace]/[workflow]/[run]/history/feed":[15,[2,3,4]],"/(app)/import/events/[namespace]/[workflow]/[run]/history/json":[16,[2,3,4]],"/(login)/login":[42,[9]],"/(app)/namespaces":[17,[2]],"/(app)/namespaces/[namespace]":[18,[2,5]],"/(app)/namespaces/[namespace]/archival":[19,[2,5]],"/(app)/namespaces/[namespace]/batch-operations":[20,[2,5]],"/(app)/namespaces/[namespace]/batch-operations/[jobId]":[21,[2,5]],"/(app)/namespaces/[namespace]/schedules":[22,[2,5,6]],"/(app)/namespaces/[namespace]/schedules/create":[25,[2,5,6]],"/(app)/namespaces/[namespace]/schedules/[schedule]":[23,[2,5,6]],"/(app)/namespaces/[namespace]/schedules/[schedule]/edit":[24,[2,5,6]],"/(app)/namespaces/[namespace]/task-queues":[26,[2,5,7]],"/(app)/namespaces/[namespace]/task-queues/[queue]":[27,[2,5,7]],"/(app)/namespaces/[namespace]/workflows":[28,[2,5]],"/(app)/namespaces/[namespace]/workflows/[workflow]":[29,[2,5]],"/(app)/namespaces/[namespace]/workflows/[workflow]/[run]":[30,[2,5,8]],"/(app)/namespaces/[namespace]/workflows/[workflow]/[run]/call-stack":[31,[2,5,8]],"/(app)/namespaces/[namespace]/workflows/[workflow]/[run]/history":[32,[2,5,8]],"/(app)/namespaces/[namespace]/workflows/[workflow]/[run]/history/compact":[33,[2,5,8]],"/(app)/namespaces/[namespace]/workflows/[workflow]/[run]/history/events/[id]":[34,[2,5,8]],"/(app)/namespaces/[namespace]/workflows/[workflow]/[run]/history/feed":[35,[2,5,8]],"/(app)/namespaces/[namespace]/workflows/[workflow]/[run]/history/json":[36,[2,5,8]],"/(app)/namespaces/[namespace]/workflows/[workflow]/[run]/pending-activities":[37,[2,5,8]],"/(app)/namespaces/[namespace]/workflows/[workflow]/[run]/query":[38,[2,5,8]],"/(app)/namespaces/[namespace]/workflows/[workflow]/[run]/stack-trace":[39,[2,5,8]],"/(app)/namespaces/[namespace]/workflows/[workflow]/[run]/workers":[40,[2,5,8]],"/(app)/select-namespace":[41,[2]],"/(login)/signin":[43,[9]]},De={handleError:({error:_})=>{console.error(_)}};export{Pe as dictionary,De as hooks,be as matchers,Le as nodes,Re as root,$e as server_loads}; diff --git a/ui/assets/local/_app/immutable/entry/app.6df7f09d.js b/ui/assets/local/_app/immutable/entry/app.6df7f09d.js new file mode 100644 index 0000000000..bfa5710287 --- /dev/null +++ b/ui/assets/local/_app/immutable/entry/app.6df7f09d.js @@ -0,0 +1 @@ +import{S as H,b as J,a as K,c as M,e as m,d as Q,f as b,g as p,h as R,j as d,k as v,l as X,o as Y,m as Z,p as x,q as ee,u as O,v as $,w as te,x as ne,y as ie,z as L,t as re,A as P,B as w,C as h,D,E,F as k}from"../chunks/index.4e2fcbc7.js";const se="modulepreload",oe=function(_,e){return new URL(_,e).href},y={},u=function(e,n,r){if(!n||n.length===0)return e();const i=document.getElementsByTagName("link");return Promise.all(n.map(l=>{if(l=oe(l,r),l in y)return;y[l]=!0;const t=l.endsWith(".css"),o=t?'[rel="stylesheet"]':"";if(!!r)for(let c=i.length-1;c>=0;c--){const g=i[c];if(g.href===l&&(!t||g.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${l}"]${o}`))return;const a=document.createElement("link");if(a.rel=t?"stylesheet":se,t||(a.as="script",a.crossOrigin=""),a.href=l,document.head.appendChild(a),t)return new Promise((c,g)=>{a.addEventListener("load",c),a.addEventListener("error",()=>g(new Error(`Unable to preload CSS for ${l}`)))})})).then(()=>e())},be={};function ae(_){let e,n,r;var i=_[1][0];function l(t){return{props:{data:t[3],form:t[2]}}}return i&&(e=w(i,l(_)),_[21](e)),{c(){e&&h(e.$$.fragment),n=m()},l(t){e&&D(e.$$.fragment,t),n=m()},m(t,o){e&&E(e,t,o),b(t,n,o),r=!0},p(t,o){const s={};if(o&8&&(s.data=t[3]),o&4&&(s.form=t[2]),i!==(i=t[1][0])){if(e){L();const a=e;p(a.$$.fragment,1,0,()=>{k(a,1)}),R()}i?(e=w(i,l(t)),t[21](e),h(e.$$.fragment),d(e.$$.fragment,1),E(e,n.parentNode,n)):e=null}else i&&e.$set(s)},i(t){r||(e&&d(e.$$.fragment,t),r=!0)},o(t){e&&p(e.$$.fragment,t),r=!1},d(t){_[21](null),t&&v(n),e&&k(e,t)}}}function _e(_){let e,n,r;var i=_[1][0];function l(t){return{props:{data:t[3],$$slots:{default:[Ee]},$$scope:{ctx:t}}}}return i&&(e=w(i,l(_)),_[20](e)),{c(){e&&h(e.$$.fragment),n=m()},l(t){e&&D(e.$$.fragment,t),n=m()},m(t,o){e&&E(e,t,o),b(t,n,o),r=!0},p(t,o){const s={};if(o&8&&(s.data=t[3]),o&4194551&&(s.$$scope={dirty:o,ctx:t}),i!==(i=t[1][0])){if(e){L();const a=e;p(a.$$.fragment,1,0,()=>{k(a,1)}),R()}i?(e=w(i,l(t)),t[20](e),h(e.$$.fragment),d(e.$$.fragment,1),E(e,n.parentNode,n)):e=null}else i&&e.$set(s)},i(t){r||(e&&d(e.$$.fragment,t),r=!0)},o(t){e&&p(e.$$.fragment,t),r=!1},d(t){_[20](null),t&&v(n),e&&k(e,t)}}}function le(_){let e,n,r;var i=_[1][1];function l(t){return{props:{data:t[4],form:t[2]}}}return i&&(e=w(i,l(_)),_[19](e)),{c(){e&&h(e.$$.fragment),n=m()},l(t){e&&D(e.$$.fragment,t),n=m()},m(t,o){e&&E(e,t,o),b(t,n,o),r=!0},p(t,o){const s={};if(o&16&&(s.data=t[4]),o&4&&(s.form=t[2]),i!==(i=t[1][1])){if(e){L();const a=e;p(a.$$.fragment,1,0,()=>{k(a,1)}),R()}i?(e=w(i,l(t)),t[19](e),h(e.$$.fragment),d(e.$$.fragment,1),E(e,n.parentNode,n)):e=null}else i&&e.$set(s)},i(t){r||(e&&d(e.$$.fragment,t),r=!0)},o(t){e&&p(e.$$.fragment,t),r=!1},d(t){_[19](null),t&&v(n),e&&k(e,t)}}}function fe(_){let e,n,r;var i=_[1][1];function l(t){return{props:{data:t[4],$$slots:{default:[he]},$$scope:{ctx:t}}}}return i&&(e=w(i,l(_)),_[18](e)),{c(){e&&h(e.$$.fragment),n=m()},l(t){e&&D(e.$$.fragment,t),n=m()},m(t,o){e&&E(e,t,o),b(t,n,o),r=!0},p(t,o){const s={};if(o&16&&(s.data=t[4]),o&4194535&&(s.$$scope={dirty:o,ctx:t}),i!==(i=t[1][1])){if(e){L();const a=e;p(a.$$.fragment,1,0,()=>{k(a,1)}),R()}i?(e=w(i,l(t)),t[18](e),h(e.$$.fragment),d(e.$$.fragment,1),E(e,n.parentNode,n)):e=null}else i&&e.$set(s)},i(t){r||(e&&d(e.$$.fragment,t),r=!0)},o(t){e&&p(e.$$.fragment,t),r=!1},d(t){_[18](null),t&&v(n),e&&k(e,t)}}}function ce(_){let e,n,r;var i=_[1][2];function l(t){return{props:{data:t[5],form:t[2]}}}return i&&(e=w(i,l(_)),_[17](e)),{c(){e&&h(e.$$.fragment),n=m()},l(t){e&&D(e.$$.fragment,t),n=m()},m(t,o){e&&E(e,t,o),b(t,n,o),r=!0},p(t,o){const s={};if(o&32&&(s.data=t[5]),o&4&&(s.form=t[2]),i!==(i=t[1][2])){if(e){L();const a=e;p(a.$$.fragment,1,0,()=>{k(a,1)}),R()}i?(e=w(i,l(t)),t[17](e),h(e.$$.fragment),d(e.$$.fragment,1),E(e,n.parentNode,n)):e=null}else i&&e.$set(s)},i(t){r||(e&&d(e.$$.fragment,t),r=!0)},o(t){e&&p(e.$$.fragment,t),r=!1},d(t){_[17](null),t&&v(n),e&&k(e,t)}}}function ue(_){let e,n,r;var i=_[1][2];function l(t){return{props:{data:t[5],$$slots:{default:[we]},$$scope:{ctx:t}}}}return i&&(e=w(i,l(_)),_[16](e)),{c(){e&&h(e.$$.fragment),n=m()},l(t){e&&D(e.$$.fragment,t),n=m()},m(t,o){e&&E(e,t,o),b(t,n,o),r=!0},p(t,o){const s={};if(o&32&&(s.data=t[5]),o&4194503&&(s.$$scope={dirty:o,ctx:t}),i!==(i=t[1][2])){if(e){L();const a=e;p(a.$$.fragment,1,0,()=>{k(a,1)}),R()}i?(e=w(i,l(t)),t[16](e),h(e.$$.fragment),d(e.$$.fragment,1),E(e,n.parentNode,n)):e=null}else i&&e.$set(s)},i(t){r||(e&&d(e.$$.fragment,t),r=!0)},o(t){e&&p(e.$$.fragment,t),r=!1},d(t){_[16](null),t&&v(n),e&&k(e,t)}}}function me(_){let e,n,r;var i=_[1][3];function l(t){return{props:{data:t[6],form:t[2]}}}return i&&(e=w(i,l(_)),_[15](e)),{c(){e&&h(e.$$.fragment),n=m()},l(t){e&&D(e.$$.fragment,t),n=m()},m(t,o){e&&E(e,t,o),b(t,n,o),r=!0},p(t,o){const s={};if(o&64&&(s.data=t[6]),o&4&&(s.form=t[2]),i!==(i=t[1][3])){if(e){L();const a=e;p(a.$$.fragment,1,0,()=>{k(a,1)}),R()}i?(e=w(i,l(t)),t[15](e),h(e.$$.fragment),d(e.$$.fragment,1),E(e,n.parentNode,n)):e=null}else i&&e.$set(s)},i(t){r||(e&&d(e.$$.fragment,t),r=!0)},o(t){e&&p(e.$$.fragment,t),r=!1},d(t){_[15](null),t&&v(n),e&&k(e,t)}}}function pe(_){let e,n,r;var i=_[1][3];function l(t){return{props:{data:t[6],$$slots:{default:[de]},$$scope:{ctx:t}}}}return i&&(e=w(i,l(_)),_[14](e)),{c(){e&&h(e.$$.fragment),n=m()},l(t){e&&D(e.$$.fragment,t),n=m()},m(t,o){e&&E(e,t,o),b(t,n,o),r=!0},p(t,o){const s={};if(o&64&&(s.data=t[6]),o&4194439&&(s.$$scope={dirty:o,ctx:t}),i!==(i=t[1][3])){if(e){L();const a=e;p(a.$$.fragment,1,0,()=>{k(a,1)}),R()}i?(e=w(i,l(t)),t[14](e),h(e.$$.fragment),d(e.$$.fragment,1),E(e,n.parentNode,n)):e=null}else i&&e.$set(s)},i(t){r||(e&&d(e.$$.fragment,t),r=!0)},o(t){e&&p(e.$$.fragment,t),r=!1},d(t){_[14](null),t&&v(n),e&&k(e,t)}}}function de(_){let e,n,r;var i=_[1][4];function l(t){return{props:{data:t[7],form:t[2]}}}return i&&(e=w(i,l(_)),_[13](e)),{c(){e&&h(e.$$.fragment),n=m()},l(t){e&&D(e.$$.fragment,t),n=m()},m(t,o){e&&E(e,t,o),b(t,n,o),r=!0},p(t,o){const s={};if(o&128&&(s.data=t[7]),o&4&&(s.form=t[2]),i!==(i=t[1][4])){if(e){L();const a=e;p(a.$$.fragment,1,0,()=>{k(a,1)}),R()}i?(e=w(i,l(t)),t[13](e),h(e.$$.fragment),d(e.$$.fragment,1),E(e,n.parentNode,n)):e=null}else i&&e.$set(s)},i(t){r||(e&&d(e.$$.fragment,t),r=!0)},o(t){e&&p(e.$$.fragment,t),r=!1},d(t){_[13](null),t&&v(n),e&&k(e,t)}}}function we(_){let e,n,r,i;const l=[pe,me],t=[];function o(s,a){return s[1][4]?0:1}return e=o(_),n=t[e]=l[e](_),{c(){n.c(),r=m()},l(s){n.l(s),r=m()},m(s,a){t[e].m(s,a),b(s,r,a),i=!0},p(s,a){let c=e;e=o(s),e===c?t[e].p(s,a):(L(),p(t[c],1,1,()=>{t[c]=null}),R(),n=t[e],n?n.p(s,a):(n=t[e]=l[e](s),n.c()),d(n,1),n.m(r.parentNode,r))},i(s){i||(d(n),i=!0)},o(s){p(n),i=!1},d(s){t[e].d(s),s&&v(r)}}}function he(_){let e,n,r,i;const l=[ue,ce],t=[];function o(s,a){return s[1][3]?0:1}return e=o(_),n=t[e]=l[e](_),{c(){n.c(),r=m()},l(s){n.l(s),r=m()},m(s,a){t[e].m(s,a),b(s,r,a),i=!0},p(s,a){let c=e;e=o(s),e===c?t[e].p(s,a):(L(),p(t[c],1,1,()=>{t[c]=null}),R(),n=t[e],n?n.p(s,a):(n=t[e]=l[e](s),n.c()),d(n,1),n.m(r.parentNode,r))},i(s){i||(d(n),i=!0)},o(s){p(n),i=!1},d(s){t[e].d(s),s&&v(r)}}}function Ee(_){let e,n,r,i;const l=[fe,le],t=[];function o(s,a){return s[1][2]?0:1}return e=o(_),n=t[e]=l[e](_),{c(){n.c(),r=m()},l(s){n.l(s),r=m()},m(s,a){t[e].m(s,a),b(s,r,a),i=!0},p(s,a){let c=e;e=o(s),e===c?t[e].p(s,a):(L(),p(t[c],1,1,()=>{t[c]=null}),R(),n=t[e],n?n.p(s,a):(n=t[e]=l[e](s),n.c()),d(n,1),n.m(r.parentNode,r))},i(s){i||(d(n),i=!0)},o(s){p(n),i=!1},d(s){t[e].d(s),s&&v(r)}}}function N(_){let e,n=_[9]&&q(_);return{c(){e=Z("div"),n&&n.c(),this.h()},l(r){e=x(r,"DIV",{id:!0,"aria-live":!0,"aria-atomic":!0,style:!0});var i=ee(e);n&&n.l(i),i.forEach(v),this.h()},h(){O(e,"id","svelte-announcer"),O(e,"aria-live","assertive"),O(e,"aria-atomic","true"),$(e,"position","absolute"),$(e,"left","0"),$(e,"top","0"),$(e,"clip","rect(0 0 0 0)"),$(e,"clip-path","inset(50%)"),$(e,"overflow","hidden"),$(e,"white-space","nowrap"),$(e,"width","1px"),$(e,"height","1px")},m(r,i){b(r,e,i),n&&n.m(e,null)},p(r,i){r[9]?n?n.p(r,i):(n=q(r),n.c(),n.m(e,null)):n&&(n.d(1),n=null)},d(r){r&&v(e),n&&n.d()}}}function q(_){let e;return{c(){e=te(_[10])},l(n){e=ne(n,_[10])},m(n,r){b(n,e,r)},p(n,r){r&1024&&ie(e,n[10])},d(n){n&&v(e)}}}function ke(_){let e,n,r,i,l;const t=[_e,ae],o=[];function s(c,g){return c[1][1]?0:1}e=s(_),n=o[e]=t[e](_);let a=_[8]&&N(_);return{c(){n.c(),r=M(),a&&a.c(),i=m()},l(c){n.l(c),r=Q(c),a&&a.l(c),i=m()},m(c,g){o[e].m(c,g),b(c,r,g),a&&a.m(c,g),b(c,i,g),l=!0},p(c,[g]){let I=e;e=s(c),e===I?o[e].p(c,g):(L(),p(o[I],1,1,()=>{o[I]=null}),R(),n=o[e],n?n.p(c,g):(n=o[e]=t[e](c),n.c()),d(n,1),n.m(r.parentNode,r)),c[8]?a?a.p(c,g):(a=N(c),a.c(),a.m(i.parentNode,i)):a&&(a.d(1),a=null)},i(c){l||(d(n),l=!0)},o(c){p(n),l=!1},d(c){o[e].d(c),c&&v(r),a&&a.d(c),c&&v(i)}}}function ge(_,e,n){let{stores:r}=e,{page:i}=e,{constructors:l}=e,{components:t=[]}=e,{form:o}=e,{data_0:s=null}=e,{data_1:a=null}=e,{data_2:c=null}=e,{data_3:g=null}=e,{data_4:I=null}=e;X(r.page.notify);let A=!1,T=!1,V=null;Y(()=>{const f=r.page.subscribe(()=>{A&&(n(9,T=!0),re().then(()=>{n(10,V=document.title||"untitled page")}))});return n(8,A=!0),f});function S(f){P[f?"unshift":"push"](()=>{t[4]=f,n(0,t)})}function C(f){P[f?"unshift":"push"](()=>{t[3]=f,n(0,t)})}function j(f){P[f?"unshift":"push"](()=>{t[3]=f,n(0,t)})}function B(f){P[f?"unshift":"push"](()=>{t[2]=f,n(0,t)})}function U(f){P[f?"unshift":"push"](()=>{t[2]=f,n(0,t)})}function z(f){P[f?"unshift":"push"](()=>{t[1]=f,n(0,t)})}function F(f){P[f?"unshift":"push"](()=>{t[1]=f,n(0,t)})}function W(f){P[f?"unshift":"push"](()=>{t[0]=f,n(0,t)})}function G(f){P[f?"unshift":"push"](()=>{t[0]=f,n(0,t)})}return _.$$set=f=>{"stores"in f&&n(11,r=f.stores),"page"in f&&n(12,i=f.page),"constructors"in f&&n(1,l=f.constructors),"components"in f&&n(0,t=f.components),"form"in f&&n(2,o=f.form),"data_0"in f&&n(3,s=f.data_0),"data_1"in f&&n(4,a=f.data_1),"data_2"in f&&n(5,c=f.data_2),"data_3"in f&&n(6,g=f.data_3),"data_4"in f&&n(7,I=f.data_4)},_.$$.update=()=>{_.$$.dirty&6144&&r.page.set(i)},[t,l,o,s,a,c,g,I,A,T,V,r,i,S,C,j,B,U,z,F,W,G]}class Re extends H{constructor(e){super(),J(this,e,ge,ke,K,{stores:11,page:12,constructors:1,components:0,form:2,data_0:3,data_1:4,data_2:5,data_3:6,data_4:7})}}const Le=[()=>u(()=>import("../nodes/0.55bf5337.js"),["../nodes/0.55bf5337.js","../chunks/i18next.1cfb3cb9.js","../chunks/layout.0300d560.js","../chunks/index.4e2fcbc7.js"],import.meta.url),()=>u(()=>import("../nodes/1.080cfce7.js"),["../nodes/1.080cfce7.js","../chunks/index.4e2fcbc7.js","../chunks/stores.0e7b7e35.js","../chunks/singletons.13b3836d.js","../chunks/paths.b17cbae1.js","../chunks/error.63c227df.js","../chunks/navigation.b77a045a.js","../chunks/link.6803bb00.js","../chunks/icon.e8aa24c8.js","../assets/link.e1fc8ece.css","../chunks/has.183130b0.js","../chunks/is-network-error.e7e518bc.js","../chunks/parse-with-big-int.0036a80a.js","../assets/app.ec6980e4.css"],import.meta.url),()=>u(()=>import("../nodes/2.3d12cd7a.js"),["../nodes/2.3d12cd7a.js","../chunks/index.3158323b.js","../chunks/control.f5b05b5f.js","../chunks/route-for-api.d45de563.js","../chunks/encode-uri.e26747e0.js","../chunks/auth-user.ce52bc5e.js","../chunks/index.4e2fcbc7.js","../chunks/persist-store.8930b3b5.js","../chunks/singletons.13b3836d.js","../chunks/paths.b17cbae1.js","../chunks/parse-with-big-int.0036a80a.js","../chunks/toaster.de22ba12.js","../chunks/has.183130b0.js","../chunks/is-network-error.e7e518bc.js","../chunks/route-for.084c7a46.js","../chunks/stores.0e7b7e35.js","../chunks/namespaces-service.5b7524c9.js","../chunks/namespaces.c82b5451.js","../chunks/paginated.c754f9f4.js","../chunks/settings-service.eec0b467.js","../chunks/is-http.7eda3176.js","../chunks/navigation.b77a045a.js","../chunks/toggle-switch.3a41e457.js","../assets/toggle-switch.ff91b31f.css","../chunks/translate.d23a91ae.js","../chunks/i18next.1cfb3cb9.js","../chunks/workflow-run.8b92989d.js","../chunks/data-encoder-config.896de1ac.js","../chunks/menu.716bcd2f.js","../chunks/badge.96e01a15.js","../assets/badge.bfa9122b.css","../chunks/icon.e8aa24c8.js","../chunks/index.6509bfd4.js","../assets/menu.b7c0dde7.css","../chunks/link.6803bb00.js","../assets/link.e1fc8ece.css","../chunks/button.a45b0e55.js","../assets/button.386e08e4.css","../chunks/accordion.c09eb7a4.js","../chunks/radio-input.9ccf281c.js","../assets/radio-input.01c3758f.css","../chunks/tooltip.4a34940b.js","../chunks/index.e93e2a88.js","../chunks/copy-to-clipboard.a310d1bd.js","../chunks/button.a1f9786a.js","../assets/button.8b8c0631.css","../assets/tooltip.78399487.css","../chunks/batch-operations.fbef62e1.js","../chunks/workflow-actions.6f88149c.js","../chunks/versions.6cca9ce8.js","../chunks/settings.0d5c4f96.js","../chunks/version-check.d006b302.js","../chunks/icon-button.92948dd7.js","../assets/icon-button.16bef21d.css","../chunks/input.4b0dcfae.js","../assets/input.19df62ce.css","../chunks/menu-divider.ada09983.js","../chunks/time-format.fa373b4c.js","../chunks/format-time.4f091e0e.js","../chunks/format-camel-case.887ffc78.js","../chunks/error.63c227df.js","../assets/2.3f1f013f.css","../assets/app.ec6980e4.css"],import.meta.url),()=>u(()=>import("../nodes/3.47df72f1.js"),["../nodes/3.47df72f1.js","../chunks/index.4e2fcbc7.js","../chunks/stores.0e7b7e35.js","../chunks/singletons.13b3836d.js","../chunks/paths.b17cbae1.js","../chunks/page-title.f9a44b80.js"],import.meta.url),()=>u(()=>import("../nodes/4.64c13d56.js"),["../nodes/4.64c13d56.js","../chunks/index.4e2fcbc7.js","../chunks/event-history-file-import.e962a52b.js","../chunks/navigation.b77a045a.js","../chunks/singletons.13b3836d.js","../chunks/paths.b17cbae1.js","../chunks/button.a45b0e55.js","../chunks/badge.96e01a15.js","../assets/badge.bfa9122b.css","../chunks/icon.e8aa24c8.js","../assets/button.386e08e4.css","../chunks/translate.d23a91ae.js","../chunks/i18next.1cfb3cb9.js","../chunks/index.03feb468.js","../chunks/has.183130b0.js","../chunks/is-event-type.4dbe973b.js","../chunks/format-time.4f091e0e.js","../chunks/index.49e6803e.js","../chunks/data-encoder-config.896de1ac.js","../chunks/persist-store.8930b3b5.js","../chunks/parse-with-big-int.0036a80a.js","../chunks/time-format.fa373b4c.js","../chunks/get-event-categorization.4d9adfe9.js","../chunks/simplify-attributes.9504a504.js","../chunks/import-events.33147d23.js","../chunks/namespaces.c82b5451.js","../chunks/toaster.de22ba12.js","../chunks/route-for.084c7a46.js","../chunks/encode-uri.e26747e0.js","../chunks/toggle-buttons.9dfbcbed.js","../chunks/stores.0e7b7e35.js","../assets/toggle-buttons.1415ce75.css"],import.meta.url),()=>u(()=>import("../nodes/5.0aeeb5ec.js"),["../nodes/5.0aeeb5ec.js","../chunks/route-for-api.d45de563.js","../chunks/encode-uri.e26747e0.js","../chunks/auth-user.ce52bc5e.js","../chunks/index.4e2fcbc7.js","../chunks/persist-store.8930b3b5.js","../chunks/singletons.13b3836d.js","../chunks/paths.b17cbae1.js","../chunks/parse-with-big-int.0036a80a.js","../chunks/toaster.de22ba12.js","../chunks/has.183130b0.js","../chunks/is-network-error.e7e518bc.js","../chunks/route-for.084c7a46.js","../chunks/stores.0e7b7e35.js","../chunks/search-attributes.5443a149.js","../chunks/layout.0300d560.js"],import.meta.url),()=>u(()=>import("../nodes/6.05f27607.js"),["../nodes/6.05f27607.js","../chunks/index.4e2fcbc7.js"],import.meta.url),()=>u(()=>import("../nodes/7.e0d9613e.js"),["../nodes/7.e0d9613e.js","../chunks/index.4e2fcbc7.js"],import.meta.url),()=>u(()=>import("../nodes/8.d3f2c52d.js"),["../nodes/8.d3f2c52d.js","../chunks/index.4e2fcbc7.js","../chunks/stores.0e7b7e35.js","../chunks/singletons.13b3836d.js","../chunks/paths.b17cbae1.js","../chunks/loading.95801385.js","../chunks/translate.d23a91ae.js","../chunks/i18next.1cfb3cb9.js","../chunks/index.6509bfd4.js","../chunks/toggle-switch.3a41e457.js","../assets/toggle-switch.ff91b31f.css","../chunks/tooltip.4a34940b.js","../chunks/index.e93e2a88.js","../chunks/copy-to-clipboard.a310d1bd.js","../chunks/button.a1f9786a.js","../chunks/icon.e8aa24c8.js","../assets/button.8b8c0631.css","../assets/tooltip.78399487.css","../chunks/event-view.50193376.js","../chunks/persist-store.8930b3b5.js","../chunks/parse-with-big-int.0036a80a.js","../chunks/workflow-terminate-enabled.cbb14ee6.js","../chunks/workflow-actions.6f88149c.js","../assets/workflow-terminate-enabled.6ee4d4a3.css","../chunks/input.4b0dcfae.js","../chunks/icon-button.92948dd7.js","../assets/icon-button.16bef21d.css","../assets/input.19df62ce.css","../chunks/radio-input.9ccf281c.js","../assets/radio-input.01c3758f.css","../chunks/events.ccad8a5b.js","../chunks/auth-user.ce52bc5e.js","../chunks/workflow-run.8b92989d.js","../chunks/encode-uri.e26747e0.js","../chunks/is-event-type.4dbe973b.js","../chunks/button.a45b0e55.js","../chunks/badge.96e01a15.js","../assets/badge.bfa9122b.css","../assets/button.386e08e4.css","../chunks/code-block.55adac36.js","../chunks/menu.716bcd2f.js","../assets/menu.b7c0dde7.css","../chunks/menu-divider.ada09983.js","../chunks/modal.19f8e4b8.js","../assets/modal.a1162225.css","../chunks/split-button.015e101a.js","../assets/split-button.8566e410.css","../chunks/workflow-service.e2f4a06b.js","../chunks/decode-payload.11855cf3.js","../chunks/data-encoder-config.896de1ac.js","../chunks/has.183130b0.js","../chunks/is-http.7eda3176.js","../chunks/write-actions-are-allowed.008c7180.js","../chunks/settings.0d5c4f96.js","../chunks/simplify-attributes.9504a504.js","../chunks/time-format.fa373b4c.js","../chunks/format-time.4f091e0e.js","../chunks/route-for-api.d45de563.js","../chunks/toaster.de22ba12.js","../chunks/is-network-error.e7e518bc.js","../chunks/route-for.084c7a46.js","../chunks/version-check.d006b302.js","../chunks/versions.6cca9ce8.js","../chunks/core-user.d32cd5bb.js","../chunks/workflow-status.781aff44.js","../assets/workflow-status.80899fb7.css","../chunks/alert.9612e524.js","../assets/alert.303275c8.css","../chunks/pollers-service.ea8b18d9.js","../assets/pollers-service.3f93e67d.css","../chunks/link.6803bb00.js","../assets/link.e1fc8ece.css","../chunks/tab.32ab741b.js","../assets/tab.8436f1bf.css","../chunks/workflows.73426400.js","../chunks/task-queue-compatibility.cf5696f8.js","../chunks/get-codec.89017b46.js","../chunks/events-service.0141aab0.js","../chunks/index.49e6803e.js","../chunks/get-event-categorization.4d9adfe9.js","../chunks/paginated.c754f9f4.js"],import.meta.url),()=>u(()=>import("../nodes/9.681a7dea.js"),["../nodes/9.681a7dea.js","../chunks/index.3158323b.js","../chunks/control.f5b05b5f.js","../chunks/settings-service.eec0b467.js","../chunks/route-for-api.d45de563.js","../chunks/encode-uri.e26747e0.js","../chunks/auth-user.ce52bc5e.js","../chunks/index.4e2fcbc7.js","../chunks/persist-store.8930b3b5.js","../chunks/singletons.13b3836d.js","../chunks/paths.b17cbae1.js","../chunks/parse-with-big-int.0036a80a.js","../chunks/toaster.de22ba12.js","../chunks/has.183130b0.js","../chunks/is-network-error.e7e518bc.js","../chunks/route-for.084c7a46.js","../chunks/stores.0e7b7e35.js","../assets/app.ec6980e4.css"],import.meta.url),()=>u(()=>import("../nodes/10.c0846b08.js"),["../nodes/10.c0846b08.js","../chunks/index.3158323b.js","../chunks/control.f5b05b5f.js","../chunks/route-for.084c7a46.js","../chunks/encode-uri.e26747e0.js","../chunks/paths.b17cbae1.js","../chunks/index.4e2fcbc7.js","../chunks/navigation.b77a045a.js","../chunks/singletons.13b3836d.js","../chunks/loading.95801385.js","../chunks/translate.d23a91ae.js","../chunks/i18next.1cfb3cb9.js","../chunks/workflow-service.e2f4a06b.js","../chunks/decode-payload.11855cf3.js","../chunks/data-encoder-config.896de1ac.js","../chunks/persist-store.8930b3b5.js","../chunks/parse-with-big-int.0036a80a.js","../chunks/has.183130b0.js","../chunks/is-http.7eda3176.js","../chunks/write-actions-are-allowed.008c7180.js","../chunks/settings.0d5c4f96.js","../chunks/stores.0e7b7e35.js","../chunks/simplify-attributes.9504a504.js","../chunks/time-format.fa373b4c.js","../chunks/format-time.4f091e0e.js","../chunks/route-for-api.d45de563.js","../chunks/auth-user.ce52bc5e.js","../chunks/toaster.de22ba12.js","../chunks/is-network-error.e7e518bc.js","../chunks/version-check.d006b302.js","../chunks/versions.6cca9ce8.js","../chunks/namespaces.c82b5451.js"],import.meta.url),()=>u(()=>import("../nodes/11.2cfebb13.js"),["../nodes/11.2cfebb13.js","../chunks/index.3158323b.js","../chunks/control.f5b05b5f.js","../chunks/route-for.084c7a46.js","../chunks/encode-uri.e26747e0.js","../chunks/paths.b17cbae1.js"],import.meta.url),()=>u(()=>import("../nodes/12.c42820d5.js"),["../nodes/12.c42820d5.js","../chunks/index.4e2fcbc7.js","../chunks/event-history-file-import.e962a52b.js","../chunks/navigation.b77a045a.js","../chunks/singletons.13b3836d.js","../chunks/paths.b17cbae1.js","../chunks/button.a45b0e55.js","../chunks/badge.96e01a15.js","../assets/badge.bfa9122b.css","../chunks/icon.e8aa24c8.js","../assets/button.386e08e4.css","../chunks/translate.d23a91ae.js","../chunks/i18next.1cfb3cb9.js","../chunks/index.03feb468.js","../chunks/has.183130b0.js","../chunks/is-event-type.4dbe973b.js","../chunks/format-time.4f091e0e.js","../chunks/index.49e6803e.js","../chunks/data-encoder-config.896de1ac.js","../chunks/persist-store.8930b3b5.js","../chunks/parse-with-big-int.0036a80a.js","../chunks/time-format.fa373b4c.js","../chunks/get-event-categorization.4d9adfe9.js","../chunks/simplify-attributes.9504a504.js","../chunks/import-events.33147d23.js","../chunks/namespaces.c82b5451.js","../chunks/toaster.de22ba12.js","../chunks/route-for.084c7a46.js","../chunks/encode-uri.e26747e0.js","../chunks/code-block.55adac36.js","../chunks/button.a1f9786a.js","../assets/button.8b8c0631.css","../chunks/copy-to-clipboard.a310d1bd.js","../chunks/link.6803bb00.js","../assets/link.e1fc8ece.css"],import.meta.url),()=>u(()=>import("../nodes/13.c7863abf.js"),["../nodes/13.c7863abf.js","../chunks/index.3158323b.js","../chunks/control.f5b05b5f.js","../chunks/route-for.084c7a46.js","../chunks/encode-uri.e26747e0.js","../chunks/paths.b17cbae1.js"],import.meta.url),()=>u(()=>import("../nodes/14.f1a616a9.js"),["../nodes/14.f1a616a9.js","../chunks/index.4e2fcbc7.js","../chunks/event-summary-table.7924858b.js","../chunks/empty-state.721f6c59.js","../chunks/icon.e8aa24c8.js","../chunks/loading.95801385.js","../chunks/translate.d23a91ae.js","../chunks/i18next.1cfb3cb9.js","../chunks/index.6509bfd4.js","../chunks/navigation.b77a045a.js","../chunks/singletons.13b3836d.js","../chunks/paths.b17cbae1.js","../chunks/stores.0e7b7e35.js","../chunks/link.6803bb00.js","../assets/link.e1fc8ece.css","../chunks/index.03feb468.js","../chunks/has.183130b0.js","../chunks/is-event-type.4dbe973b.js","../chunks/format-time.4f091e0e.js","../chunks/event-view.50193376.js","../chunks/persist-store.8930b3b5.js","../chunks/parse-with-big-int.0036a80a.js","../chunks/time-format.fa373b4c.js","../chunks/format-event-attributes.5632ebeb.js","../chunks/format-camel-case.887ffc78.js","../chunks/route-for.084c7a46.js","../chunks/encode-uri.e26747e0.js","../chunks/code-block.55adac36.js","../chunks/button.a1f9786a.js","../assets/button.8b8c0631.css","../chunks/copy-to-clipboard.a310d1bd.js","../chunks/index.e93e2a88.js","../chunks/payload-decoder.0883e1af.js","../chunks/auth-user.ce52bc5e.js","../chunks/decode-payload.11855cf3.js","../chunks/data-encoder-config.896de1ac.js","../chunks/is-http.7eda3176.js","../chunks/get-codec.89017b46.js","../chunks/table-header-row.fec98b60.js","../assets/table-header-row.6ba6477c.css","../chunks/menu.716bcd2f.js","../chunks/badge.96e01a15.js","../assets/badge.bfa9122b.css","../assets/menu.b7c0dde7.css","../chunks/get-event-categorization.4d9adfe9.js","../chunks/filters.83a38186.js","../chunks/versions.6cca9ce8.js","../chunks/settings.0d5c4f96.js","../chunks/update-query-parameters.64a6ca26.js","../chunks/version-check.d006b302.js","../chunks/menu-divider.ada09983.js","../chunks/button.a45b0e55.js","../assets/button.386e08e4.css","../assets/event-summary-table.c983745f.css","../chunks/pagination.605d1f82.js","../chunks/pagination.aba14fc4.js","../chunks/simple-select.db1acee2.js","../assets/simple-select.51b2afe1.css","../chunks/index.8b5c6ff3.js","../assets/index.a8fb96df.css","../assets/pagination.76f9c6f3.css","../chunks/import-events.33147d23.js"],import.meta.url),()=>u(()=>import("../nodes/15.e2404ff1.js"),["../nodes/15.e2404ff1.js","../chunks/index.4e2fcbc7.js","../chunks/event-summary-table.7924858b.js","../chunks/empty-state.721f6c59.js","../chunks/icon.e8aa24c8.js","../chunks/loading.95801385.js","../chunks/translate.d23a91ae.js","../chunks/i18next.1cfb3cb9.js","../chunks/index.6509bfd4.js","../chunks/navigation.b77a045a.js","../chunks/singletons.13b3836d.js","../chunks/paths.b17cbae1.js","../chunks/stores.0e7b7e35.js","../chunks/link.6803bb00.js","../assets/link.e1fc8ece.css","../chunks/index.03feb468.js","../chunks/has.183130b0.js","../chunks/is-event-type.4dbe973b.js","../chunks/format-time.4f091e0e.js","../chunks/event-view.50193376.js","../chunks/persist-store.8930b3b5.js","../chunks/parse-with-big-int.0036a80a.js","../chunks/time-format.fa373b4c.js","../chunks/format-event-attributes.5632ebeb.js","../chunks/format-camel-case.887ffc78.js","../chunks/route-for.084c7a46.js","../chunks/encode-uri.e26747e0.js","../chunks/code-block.55adac36.js","../chunks/button.a1f9786a.js","../assets/button.8b8c0631.css","../chunks/copy-to-clipboard.a310d1bd.js","../chunks/index.e93e2a88.js","../chunks/payload-decoder.0883e1af.js","../chunks/auth-user.ce52bc5e.js","../chunks/decode-payload.11855cf3.js","../chunks/data-encoder-config.896de1ac.js","../chunks/is-http.7eda3176.js","../chunks/get-codec.89017b46.js","../chunks/table-header-row.fec98b60.js","../assets/table-header-row.6ba6477c.css","../chunks/menu.716bcd2f.js","../chunks/badge.96e01a15.js","../assets/badge.bfa9122b.css","../assets/menu.b7c0dde7.css","../chunks/get-event-categorization.4d9adfe9.js","../chunks/filters.83a38186.js","../chunks/versions.6cca9ce8.js","../chunks/settings.0d5c4f96.js","../chunks/update-query-parameters.64a6ca26.js","../chunks/version-check.d006b302.js","../chunks/menu-divider.ada09983.js","../chunks/button.a45b0e55.js","../assets/button.386e08e4.css","../assets/event-summary-table.c983745f.css","../chunks/pagination.605d1f82.js","../chunks/pagination.aba14fc4.js","../chunks/simple-select.db1acee2.js","../assets/simple-select.51b2afe1.css","../chunks/index.8b5c6ff3.js","../assets/index.a8fb96df.css","../assets/pagination.76f9c6f3.css","../chunks/import-events.33147d23.js"],import.meta.url),()=>u(()=>import("../nodes/16.a4ad2f8d.js"),["../nodes/16.a4ad2f8d.js","../chunks/index.4e2fcbc7.js","../chunks/workflow-json-navigator.82fd29ea.js","../chunks/code-block.55adac36.js","../chunks/button.a1f9786a.js","../chunks/icon.e8aa24c8.js","../assets/button.8b8c0631.css","../chunks/copy-to-clipboard.a310d1bd.js","../chunks/singletons.13b3836d.js","../chunks/paths.b17cbae1.js","../chunks/parse-with-big-int.0036a80a.js","../chunks/translate.d23a91ae.js","../chunks/i18next.1cfb3cb9.js","../chunks/loading.95801385.js","../chunks/index.49e6803e.js","../chunks/data-encoder-config.896de1ac.js","../chunks/persist-store.8930b3b5.js","../chunks/has.183130b0.js","../chunks/time-format.fa373b4c.js","../chunks/format-time.4f091e0e.js","../chunks/is-event-type.4dbe973b.js","../chunks/get-event-categorization.4d9adfe9.js","../chunks/simplify-attributes.9504a504.js","../chunks/events.ccad8a5b.js","../chunks/stores.0e7b7e35.js","../chunks/auth-user.ce52bc5e.js","../chunks/workflow-run.8b92989d.js","../chunks/encode-uri.e26747e0.js","../chunks/event-view.50193376.js","../chunks/payload-decoder.0883e1af.js","../chunks/decode-payload.11855cf3.js","../chunks/is-http.7eda3176.js","../chunks/get-codec.89017b46.js","../assets/workflow-json-navigator.a85b4b27.css","../chunks/import-events.33147d23.js"],import.meta.url),()=>u(()=>import("../nodes/17.5db091a6.js"),["../nodes/17.5db091a6.js","../chunks/index.4e2fcbc7.js","../chunks/stores.0e7b7e35.js","../chunks/singletons.13b3836d.js","../chunks/paths.b17cbae1.js","../chunks/page-title.f9a44b80.js","../chunks/empty-state.721f6c59.js","../chunks/icon.e8aa24c8.js","../chunks/link.6803bb00.js","../assets/link.e1fc8ece.css","../chunks/pagination.605d1f82.js","../chunks/pagination.aba14fc4.js","../chunks/update-query-parameters.64a6ca26.js","../chunks/navigation.b77a045a.js","../chunks/simple-select.db1acee2.js","../assets/simple-select.51b2afe1.css","../chunks/index.8b5c6ff3.js","../assets/index.a8fb96df.css","../assets/pagination.76f9c6f3.css","../chunks/table-header-row.fec98b60.js","../assets/table-header-row.6ba6477c.css","../chunks/table-row.0fafe278.js","../chunks/translate.d23a91ae.js","../chunks/i18next.1cfb3cb9.js","../chunks/namespaces.c82b5451.js","../chunks/persist-store.8930b3b5.js","../chunks/parse-with-big-int.0036a80a.js","../chunks/route-for.084c7a46.js","../chunks/encode-uri.e26747e0.js"],import.meta.url),()=>u(()=>import("../nodes/18.32c6e9c3.js"),["../nodes/18.32c6e9c3.js","../chunks/namespaces-service.5b7524c9.js","../chunks/namespaces.c82b5451.js","../chunks/singletons.13b3836d.js","../chunks/index.4e2fcbc7.js","../chunks/paths.b17cbae1.js","../chunks/persist-store.8930b3b5.js","../chunks/parse-with-big-int.0036a80a.js","../chunks/toaster.de22ba12.js","../chunks/paginated.c754f9f4.js","../chunks/route-for-api.d45de563.js","../chunks/encode-uri.e26747e0.js","../chunks/auth-user.ce52bc5e.js","../chunks/has.183130b0.js","../chunks/is-network-error.e7e518bc.js","../chunks/route-for.084c7a46.js","../chunks/stores.0e7b7e35.js","../chunks/page-title.f9a44b80.js","../chunks/badge.96e01a15.js","../assets/badge.bfa9122b.css","../chunks/card.c1324719.js","../assets/card.c4e4432a.css","../chunks/table-header-row.fec98b60.js","../assets/table-header-row.6ba6477c.css","../chunks/table-row.0fafe278.js","../chunks/translate.d23a91ae.js","../chunks/i18next.1cfb3cb9.js","../chunks/search-attributes.5443a149.js","../chunks/settings.0d5c4f96.js","../chunks/versions.6cca9ce8.js","../chunks/format-time.4f091e0e.js"],import.meta.url),()=>u(()=>import("../nodes/19.c1bc9a8f.js"),["../nodes/19.c1bc9a8f.js","../chunks/namespaces-service.5b7524c9.js","../chunks/namespaces.c82b5451.js","../chunks/singletons.13b3836d.js","../chunks/index.4e2fcbc7.js","../chunks/paths.b17cbae1.js","../chunks/persist-store.8930b3b5.js","../chunks/parse-with-big-int.0036a80a.js","../chunks/toaster.de22ba12.js","../chunks/paginated.c754f9f4.js","../chunks/route-for-api.d45de563.js","../chunks/encode-uri.e26747e0.js","../chunks/auth-user.ce52bc5e.js","../chunks/has.183130b0.js","../chunks/is-network-error.e7e518bc.js","../chunks/route-for.084c7a46.js","../chunks/stores.0e7b7e35.js","../chunks/workflow-service.e2f4a06b.js","../chunks/translate.d23a91ae.js","../chunks/i18next.1cfb3cb9.js","../chunks/decode-payload.11855cf3.js","../chunks/data-encoder-config.896de1ac.js","../chunks/is-http.7eda3176.js","../chunks/write-actions-are-allowed.008c7180.js","../chunks/settings.0d5c4f96.js","../chunks/simplify-attributes.9504a504.js","../chunks/time-format.fa373b4c.js","../chunks/format-time.4f091e0e.js","../chunks/version-check.d006b302.js","../chunks/versions.6cca9ce8.js","../chunks/page-title.f9a44b80.js","../chunks/index.1ccf1fb0.js","../chunks/navigation.b77a045a.js","../chunks/workflow-status.781aff44.js","../chunks/index.6509bfd4.js","../chunks/button.a45b0e55.js","../chunks/badge.96e01a15.js","../assets/badge.bfa9122b.css","../chunks/icon.e8aa24c8.js","../assets/button.386e08e4.css","../assets/workflow-status.80899fb7.css","../chunks/copy-to-clipboard.a310d1bd.js","../chunks/link.6803bb00.js","../assets/link.e1fc8ece.css","../chunks/table-row.0fafe278.js","../chunks/workflows.73426400.js","../chunks/update-query-parameters.64a6ca26.js","../chunks/table-header-row.fec98b60.js","../assets/table-header-row.6ba6477c.css","../chunks/input.4b0dcfae.js","../chunks/icon-button.92948dd7.js","../assets/icon-button.16bef21d.css","../assets/input.19df62ce.css","../assets/index.d6094a94.css","../chunks/code-block.55adac36.js","../chunks/button.a1f9786a.js","../assets/button.8b8c0631.css","../chunks/empty-state.721f6c59.js","../chunks/pagination.605d1f82.js","../chunks/pagination.aba14fc4.js","../chunks/simple-select.db1acee2.js","../assets/simple-select.51b2afe1.css","../chunks/index.8b5c6ff3.js","../assets/index.a8fb96df.css","../assets/pagination.76f9c6f3.css","../assets/19.c5268cbc.css"],import.meta.url),()=>u(()=>import("../nodes/20.a0778a28.js"),["../nodes/20.a0778a28.js","../chunks/index.4e2fcbc7.js","../chunks/stores.0e7b7e35.js","../chunks/singletons.13b3836d.js","../chunks/paths.b17cbae1.js","../chunks/page-title.f9a44b80.js","../chunks/translate.d23a91ae.js","../chunks/i18next.1cfb3cb9.js","../chunks/badge.96e01a15.js","../assets/badge.bfa9122b.css","../chunks/empty-state.721f6c59.js","../chunks/icon.e8aa24c8.js","../chunks/link.6803bb00.js","../assets/link.e1fc8ece.css","../chunks/table-header-row.fec98b60.js","../assets/table-header-row.6ba6477c.css","../chunks/table-row.0fafe278.js","../chunks/time-format.fa373b4c.js","../chunks/persist-store.8930b3b5.js","../chunks/parse-with-big-int.0036a80a.js","../chunks/format-time.4f091e0e.js","../chunks/has.183130b0.js","../chunks/route-for.084c7a46.js","../chunks/encode-uri.e26747e0.js","../chunks/alert.9612e524.js","../assets/alert.303275c8.css","../chunks/loading.95801385.js","../chunks/batch-operations.fbef62e1.js","../chunks/workflow-actions.6f88149c.js","../chunks/auth-user.ce52bc5e.js","../chunks/versions.6cca9ce8.js","../chunks/settings.0d5c4f96.js","../chunks/route-for-api.d45de563.js","../chunks/toaster.de22ba12.js","../chunks/is-network-error.e7e518bc.js","../chunks/version-check.d006b302.js"],import.meta.url),()=>u(()=>import("../nodes/21.976e4599.js"),["../nodes/21.976e4599.js","../chunks/index.4e2fcbc7.js","../chunks/stores.0e7b7e35.js","../chunks/singletons.13b3836d.js","../chunks/paths.b17cbae1.js","../chunks/page-title.f9a44b80.js","../chunks/translate.d23a91ae.js","../chunks/i18next.1cfb3cb9.js","../chunks/time-format.fa373b4c.js","../chunks/persist-store.8930b3b5.js","../chunks/parse-with-big-int.0036a80a.js","../chunks/format-time.4f091e0e.js","../chunks/has.183130b0.js","../chunks/badge.96e01a15.js","../assets/badge.bfa9122b.css","../chunks/toggle-switch.3a41e457.js","../assets/toggle-switch.ff91b31f.css","../chunks/tooltip.4a34940b.js","../chunks/index.e93e2a88.js","../chunks/copy-to-clipboard.a310d1bd.js","../chunks/button.a1f9786a.js","../chunks/icon.e8aa24c8.js","../assets/button.8b8c0631.css","../assets/tooltip.78399487.css","../chunks/batch-operations.fbef62e1.js","../chunks/workflow-actions.6f88149c.js","../chunks/auth-user.ce52bc5e.js","../chunks/versions.6cca9ce8.js","../chunks/settings.0d5c4f96.js","../chunks/route-for-api.d45de563.js","../chunks/encode-uri.e26747e0.js","../chunks/toaster.de22ba12.js","../chunks/is-network-error.e7e518bc.js","../chunks/route-for.084c7a46.js","../chunks/version-check.d006b302.js","../chunks/card.c1324719.js","../assets/card.c4e4432a.css","../chunks/link.6803bb00.js","../assets/link.e1fc8ece.css","../assets/21.32920668.css"],import.meta.url),()=>u(()=>import("../nodes/22.1bfc8cd1.js"),["../nodes/22.1bfc8cd1.js","../chunks/index.4e2fcbc7.js","../chunks/stores.0e7b7e35.js","../chunks/singletons.13b3836d.js","../chunks/paths.b17cbae1.js","../chunks/page-title.f9a44b80.js","../chunks/navigation.b77a045a.js","../chunks/workflow-status.781aff44.js","../chunks/index.6509bfd4.js","../chunks/button.a45b0e55.js","../chunks/badge.96e01a15.js","../assets/badge.bfa9122b.css","../chunks/icon.e8aa24c8.js","../assets/button.386e08e4.css","../chunks/translate.d23a91ae.js","../chunks/i18next.1cfb3cb9.js","../assets/workflow-status.80899fb7.css","../chunks/link.6803bb00.js","../assets/link.e1fc8ece.css","../chunks/table-row.0fafe278.js","../chunks/time-format.fa373b4c.js","../chunks/persist-store.8930b3b5.js","../chunks/parse-with-big-int.0036a80a.js","../chunks/format-time.4f091e0e.js","../chunks/has.183130b0.js","../chunks/route-for.084c7a46.js","../chunks/encode-uri.e26747e0.js","../chunks/table-header-row.fec98b60.js","../assets/table-header-row.6ba6477c.css","../chunks/alert.9612e524.js","../assets/alert.303275c8.css","../chunks/pagination.aba14fc4.js","../chunks/update-query-parameters.64a6ca26.js","../chunks/simple-select.db1acee2.js","../assets/simple-select.51b2afe1.css","../chunks/index.8b5c6ff3.js","../assets/index.a8fb96df.css","../chunks/empty-state.721f6c59.js","../chunks/input.4b0dcfae.js","../chunks/copy-to-clipboard.a310d1bd.js","../chunks/icon-button.92948dd7.js","../assets/icon-button.16bef21d.css","../assets/input.19df62ce.css","../chunks/schedule-service.3e5d769d.js","../chunks/route-for-api.d45de563.js","../chunks/auth-user.ce52bc5e.js","../chunks/toaster.de22ba12.js","../chunks/is-network-error.e7e518bc.js","../chunks/core-user.d32cd5bb.js","../chunks/write-actions-are-allowed.008c7180.js","../chunks/settings.0d5c4f96.js","../assets/22.f6d93894.css"],import.meta.url),()=>u(()=>import("../nodes/23.1afbc253.js"),["../nodes/23.1afbc253.js","../chunks/index.4e2fcbc7.js","../chunks/stores.0e7b7e35.js","../chunks/singletons.13b3836d.js","../chunks/paths.b17cbae1.js","../chunks/page-title.f9a44b80.js","../chunks/navigation.b77a045a.js","../chunks/accordion.c09eb7a4.js","../chunks/badge.96e01a15.js","../assets/badge.bfa9122b.css","../chunks/icon.e8aa24c8.js","../chunks/toaster.de22ba12.js","../chunks/translate.d23a91ae.js","../chunks/i18next.1cfb3cb9.js","../chunks/schedules.cfaf5e30.js","../chunks/code-block.55adac36.js","../chunks/button.a1f9786a.js","../assets/button.8b8c0631.css","../chunks/copy-to-clipboard.a310d1bd.js","../chunks/parse-with-big-int.0036a80a.js","../chunks/schedule-service.3e5d769d.js","../chunks/route-for-api.d45de563.js","../chunks/encode-uri.e26747e0.js","../chunks/auth-user.ce52bc5e.js","../chunks/persist-store.8930b3b5.js","../chunks/has.183130b0.js","../chunks/is-network-error.e7e518bc.js","../chunks/route-for.084c7a46.js","../chunks/empty-state.721f6c59.js","../chunks/link.6803bb00.js","../assets/link.e1fc8ece.css","../chunks/workflow-service.e2f4a06b.js","../chunks/decode-payload.11855cf3.js","../chunks/data-encoder-config.896de1ac.js","../chunks/is-http.7eda3176.js","../chunks/write-actions-are-allowed.008c7180.js","../chunks/settings.0d5c4f96.js","../chunks/simplify-attributes.9504a504.js","../chunks/time-format.fa373b4c.js","../chunks/format-time.4f091e0e.js","../chunks/version-check.d006b302.js","../chunks/versions.6cca9ce8.js","../chunks/workflow-status.781aff44.js","../chunks/index.6509bfd4.js","../chunks/button.a45b0e55.js","../assets/button.386e08e4.css","../assets/workflow-status.80899fb7.css","../chunks/translate.b598b7ef.js","../chunks/index.8b5c6ff3.js","../assets/index.a8fb96df.css","../chunks/workflows.73426400.js","../chunks/loading.95801385.js","../chunks/menu.716bcd2f.js","../assets/menu.b7c0dde7.css","../chunks/modal.19f8e4b8.js","../chunks/icon-button.92948dd7.js","../assets/icon-button.16bef21d.css","../assets/modal.a1162225.css","../chunks/radio-input.9ccf281c.js","../assets/radio-input.01c3758f.css","../chunks/split-button.015e101a.js","../assets/split-button.8566e410.css","../chunks/core-user.d32cd5bb.js","../assets/23.8e3b0af3.css"],import.meta.url),()=>u(()=>import("../nodes/24.8b6e6b30.js"),["../nodes/24.8b6e6b30.js","../chunks/index.4e2fcbc7.js","../chunks/stores.0e7b7e35.js","../chunks/singletons.13b3836d.js","../chunks/paths.b17cbae1.js","../chunks/page-title.f9a44b80.js","../chunks/schedule-form-view.7c016119.js","../chunks/input.4b0dcfae.js","../chunks/icon.e8aa24c8.js","../chunks/copy-to-clipboard.a310d1bd.js","../chunks/icon-button.92948dd7.js","../assets/icon-button.16bef21d.css","../assets/input.19df62ce.css","../chunks/tab.32ab741b.js","../chunks/has.183130b0.js","../assets/tab.8436f1bf.css","../chunks/translate.d23a91ae.js","../chunks/i18next.1cfb3cb9.js","../chunks/option.145cb9b7.js","../chunks/badge.96e01a15.js","../assets/badge.bfa9122b.css","../chunks/menu.716bcd2f.js","../chunks/index.6509bfd4.js","../assets/menu.b7c0dde7.css","../assets/option.20882847.css","../chunks/toggle-buttons.9dfbcbed.js","../assets/toggle-buttons.1415ce75.css","../chunks/schedules.cfaf5e30.js","../chunks/code-block.55adac36.js","../chunks/button.a1f9786a.js","../assets/button.8b8c0631.css","../chunks/parse-with-big-int.0036a80a.js","../chunks/navigation.b77a045a.js","../chunks/schedule-service.3e5d769d.js","../chunks/route-for-api.d45de563.js","../chunks/encode-uri.e26747e0.js","../chunks/auth-user.ce52bc5e.js","../chunks/persist-store.8930b3b5.js","../chunks/toaster.de22ba12.js","../chunks/is-network-error.e7e518bc.js","../chunks/route-for.084c7a46.js","../chunks/alert.9612e524.js","../assets/alert.303275c8.css","../chunks/button.a45b0e55.js","../assets/button.386e08e4.css","../chunks/link.6803bb00.js","../assets/link.e1fc8ece.css","../chunks/loading.95801385.js","../chunks/write-actions-are-allowed.008c7180.js","../chunks/settings.0d5c4f96.js","../assets/schedule-form-view.6d80008f.css"],import.meta.url),()=>u(()=>import("../nodes/25.2e6a0ab4.js"),["../nodes/25.2e6a0ab4.js","../chunks/index.4e2fcbc7.js","../chunks/stores.0e7b7e35.js","../chunks/singletons.13b3836d.js","../chunks/paths.b17cbae1.js","../chunks/page-title.f9a44b80.js","../chunks/schedule-form-view.7c016119.js","../chunks/input.4b0dcfae.js","../chunks/icon.e8aa24c8.js","../chunks/copy-to-clipboard.a310d1bd.js","../chunks/icon-button.92948dd7.js","../assets/icon-button.16bef21d.css","../assets/input.19df62ce.css","../chunks/tab.32ab741b.js","../chunks/has.183130b0.js","../assets/tab.8436f1bf.css","../chunks/translate.d23a91ae.js","../chunks/i18next.1cfb3cb9.js","../chunks/option.145cb9b7.js","../chunks/badge.96e01a15.js","../assets/badge.bfa9122b.css","../chunks/menu.716bcd2f.js","../chunks/index.6509bfd4.js","../assets/menu.b7c0dde7.css","../assets/option.20882847.css","../chunks/toggle-buttons.9dfbcbed.js","../assets/toggle-buttons.1415ce75.css","../chunks/schedules.cfaf5e30.js","../chunks/code-block.55adac36.js","../chunks/button.a1f9786a.js","../assets/button.8b8c0631.css","../chunks/parse-with-big-int.0036a80a.js","../chunks/navigation.b77a045a.js","../chunks/schedule-service.3e5d769d.js","../chunks/route-for-api.d45de563.js","../chunks/encode-uri.e26747e0.js","../chunks/auth-user.ce52bc5e.js","../chunks/persist-store.8930b3b5.js","../chunks/toaster.de22ba12.js","../chunks/is-network-error.e7e518bc.js","../chunks/route-for.084c7a46.js","../chunks/alert.9612e524.js","../assets/alert.303275c8.css","../chunks/button.a45b0e55.js","../assets/button.386e08e4.css","../chunks/link.6803bb00.js","../assets/link.e1fc8ece.css","../chunks/loading.95801385.js","../chunks/write-actions-are-allowed.008c7180.js","../chunks/settings.0d5c4f96.js","../assets/schedule-form-view.6d80008f.css"],import.meta.url),()=>u(()=>import("../nodes/26.3eaa9a64.js"),["../nodes/26.3eaa9a64.js","../chunks/index.4e2fcbc7.js"],import.meta.url),()=>u(()=>import("../nodes/27.6d331fe3.js"),["../nodes/27.6d331fe3.js","../chunks/index.4e2fcbc7.js","../chunks/stores.0e7b7e35.js","../chunks/singletons.13b3836d.js","../chunks/paths.b17cbae1.js","../chunks/page-title.f9a44b80.js","../chunks/workers-list.611e6068.js","../chunks/badge.96e01a15.js","../assets/badge.bfa9122b.css","../chunks/pollers-service.ea8b18d9.js","../chunks/icon.e8aa24c8.js","../chunks/translate.d23a91ae.js","../chunks/i18next.1cfb3cb9.js","../chunks/route-for-api.d45de563.js","../chunks/encode-uri.e26747e0.js","../chunks/auth-user.ce52bc5e.js","../chunks/persist-store.8930b3b5.js","../chunks/parse-with-big-int.0036a80a.js","../chunks/toaster.de22ba12.js","../chunks/has.183130b0.js","../chunks/is-network-error.e7e518bc.js","../chunks/route-for.084c7a46.js","../assets/pollers-service.3f93e67d.css","../chunks/empty-state.721f6c59.js","../chunks/table-header-row.fec98b60.js","../assets/table-header-row.6ba6477c.css","../chunks/table-row.0fafe278.js","../chunks/time-format.fa373b4c.js","../chunks/format-time.4f091e0e.js","../chunks/task-queue-compatibility.cf5696f8.js","../assets/workers-list.7dbb8f48.css"],import.meta.url),()=>u(()=>import("../nodes/28.579be9a1.js"),["../nodes/28.579be9a1.js","../chunks/index.4e2fcbc7.js","../chunks/stores.0e7b7e35.js","../chunks/singletons.13b3836d.js","../chunks/paths.b17cbae1.js","../chunks/workflow-service.e2f4a06b.js","../chunks/translate.d23a91ae.js","../chunks/i18next.1cfb3cb9.js","../chunks/decode-payload.11855cf3.js","../chunks/data-encoder-config.896de1ac.js","../chunks/persist-store.8930b3b5.js","../chunks/parse-with-big-int.0036a80a.js","../chunks/has.183130b0.js","../chunks/is-http.7eda3176.js","../chunks/encode-uri.e26747e0.js","../chunks/write-actions-are-allowed.008c7180.js","../chunks/settings.0d5c4f96.js","../chunks/simplify-attributes.9504a504.js","../chunks/time-format.fa373b4c.js","../chunks/format-time.4f091e0e.js","../chunks/route-for-api.d45de563.js","../chunks/auth-user.ce52bc5e.js","../chunks/toaster.de22ba12.js","../chunks/is-network-error.e7e518bc.js","../chunks/route-for.084c7a46.js","../chunks/version-check.d006b302.js","../chunks/versions.6cca9ce8.js","../chunks/page-title.f9a44b80.js","../chunks/input.4b0dcfae.js","../chunks/icon.e8aa24c8.js","../chunks/copy-to-clipboard.a310d1bd.js","../chunks/icon-button.92948dd7.js","../assets/icon-button.16bef21d.css","../assets/input.19df62ce.css","../chunks/modal.19f8e4b8.js","../chunks/button.a45b0e55.js","../chunks/badge.96e01a15.js","../assets/badge.bfa9122b.css","../assets/button.386e08e4.css","../chunks/menu.716bcd2f.js","../chunks/index.6509bfd4.js","../assets/menu.b7c0dde7.css","../assets/modal.a1162225.css","../chunks/translate.b598b7ef.js","../chunks/index.8b5c6ff3.js","../assets/index.a8fb96df.css","../chunks/workflows.73426400.js","../chunks/workflow-status.781aff44.js","../assets/workflow-status.80899fb7.css","../chunks/workflow-actions.6f88149c.js","../chunks/workflow-terminate-enabled.cbb14ee6.js","../assets/workflow-terminate-enabled.6ee4d4a3.css","../chunks/filters.83a38186.js","../chunks/index.1ccf1fb0.js","../chunks/navigation.b77a045a.js","../chunks/link.6803bb00.js","../assets/link.e1fc8ece.css","../chunks/table-row.0fafe278.js","../chunks/update-query-parameters.64a6ca26.js","../chunks/table-header-row.fec98b60.js","../assets/table-header-row.6ba6477c.css","../assets/index.d6094a94.css","../chunks/toggle-switch.3a41e457.js","../assets/toggle-switch.ff91b31f.css","../chunks/search-attributes.5443a149.js","../chunks/option.145cb9b7.js","../assets/option.20882847.css","../chunks/menu-divider.ada09983.js","../chunks/radio-input.9ccf281c.js","../assets/radio-input.01c3758f.css","../chunks/toggle-buttons.9dfbcbed.js","../assets/toggle-buttons.1415ce75.css","../chunks/drawer.f57bb4b9.js","../assets/drawer.96194c4d.css","../chunks/alert.9612e524.js","../assets/alert.303275c8.css","../chunks/loading.95801385.js","../chunks/pagination.aba14fc4.js","../chunks/simple-select.db1acee2.js","../assets/simple-select.51b2afe1.css","../chunks/namespaces.c82b5451.js","../chunks/core-user.d32cd5bb.js","../chunks/batch-operations.fbef62e1.js","../chunks/empty-state.721f6c59.js","../chunks/pagination.605d1f82.js","../assets/pagination.76f9c6f3.css","../assets/28.bed845af.css"],import.meta.url),()=>u(()=>import("../nodes/29.496d4b9a.js"),["../nodes/29.496d4b9a.js","../chunks/index.3158323b.js","../chunks/control.f5b05b5f.js","../chunks/workflow-service.e2f4a06b.js","../chunks/index.4e2fcbc7.js","../chunks/translate.d23a91ae.js","../chunks/i18next.1cfb3cb9.js","../chunks/decode-payload.11855cf3.js","../chunks/data-encoder-config.896de1ac.js","../chunks/singletons.13b3836d.js","../chunks/paths.b17cbae1.js","../chunks/persist-store.8930b3b5.js","../chunks/parse-with-big-int.0036a80a.js","../chunks/has.183130b0.js","../chunks/is-http.7eda3176.js","../chunks/encode-uri.e26747e0.js","../chunks/write-actions-are-allowed.008c7180.js","../chunks/settings.0d5c4f96.js","../chunks/stores.0e7b7e35.js","../chunks/simplify-attributes.9504a504.js","../chunks/time-format.fa373b4c.js","../chunks/format-time.4f091e0e.js","../chunks/route-for-api.d45de563.js","../chunks/auth-user.ce52bc5e.js","../chunks/toaster.de22ba12.js","../chunks/is-network-error.e7e518bc.js","../chunks/route-for.084c7a46.js","../chunks/version-check.d006b302.js","../chunks/versions.6cca9ce8.js"],import.meta.url),()=>u(()=>import("../nodes/30.0498b019.js"),["../nodes/30.0498b019.js","../chunks/index.3158323b.js","../chunks/control.f5b05b5f.js","../chunks/index.4e2fcbc7.js"],import.meta.url),()=>u(()=>import("../nodes/31.86858455.js"),["../nodes/31.86858455.js","../chunks/index.4e2fcbc7.js","../chunks/stores.0e7b7e35.js","../chunks/singletons.13b3836d.js","../chunks/paths.b17cbae1.js","../chunks/page-title.f9a44b80.js","../chunks/translate.d23a91ae.js","../chunks/i18next.1cfb3cb9.js","../chunks/alert.9612e524.js","../chunks/icon.e8aa24c8.js","../assets/alert.303275c8.css","../chunks/button.a45b0e55.js","../chunks/badge.96e01a15.js","../assets/badge.bfa9122b.css","../assets/button.386e08e4.css","../chunks/code-block.55adac36.js","../chunks/button.a1f9786a.js","../assets/button.8b8c0631.css","../chunks/copy-to-clipboard.a310d1bd.js","../chunks/parse-with-big-int.0036a80a.js","../chunks/empty-state.721f6c59.js","../chunks/link.6803bb00.js","../assets/link.e1fc8ece.css","../chunks/loading.95801385.js","../chunks/query-service.2a94e5c4.js","../chunks/data-encoder-config.896de1ac.js","../chunks/persist-store.8930b3b5.js","../chunks/has.183130b0.js","../chunks/decode-payload.11855cf3.js","../chunks/is-http.7eda3176.js","../chunks/encode-uri.e26747e0.js","../chunks/get-codec.89017b46.js","../chunks/route-for-api.d45de563.js","../chunks/auth-user.ce52bc5e.js","../chunks/toaster.de22ba12.js","../chunks/is-network-error.e7e518bc.js","../chunks/route-for.084c7a46.js","../chunks/workflow-run.8b92989d.js"],import.meta.url),()=>u(()=>import("../nodes/32.3003470c.js"),["../nodes/32.3003470c.js","../chunks/index.4e2fcbc7.js","../chunks/stores.0e7b7e35.js","../chunks/singletons.13b3836d.js","../chunks/paths.b17cbae1.js","../chunks/page-title.f9a44b80.js","../chunks/translate.d23a91ae.js","../chunks/i18next.1cfb3cb9.js","../chunks/accordion.c09eb7a4.js","../chunks/badge.96e01a15.js","../assets/badge.bfa9122b.css","../chunks/icon.e8aa24c8.js","../chunks/toaster.de22ba12.js","../chunks/loading.95801385.js","../chunks/toggle-buttons.9dfbcbed.js","../assets/toggle-buttons.1415ce75.css","../chunks/index.03feb468.js","../chunks/has.183130b0.js","../chunks/is-event-type.4dbe973b.js","../chunks/format-time.4f091e0e.js","../chunks/get-event-categorization.4d9adfe9.js","../chunks/event-view.50193376.js","../chunks/persist-store.8930b3b5.js","../chunks/parse-with-big-int.0036a80a.js","../chunks/filters.83a38186.js","../chunks/workflow-run.8b92989d.js","../chunks/format-camel-case.887ffc78.js","../chunks/time-format.fa373b4c.js","../chunks/button.a45b0e55.js","../assets/button.386e08e4.css","../chunks/drawer.f57bb4b9.js","../chunks/index.6509bfd4.js","../chunks/menu.716bcd2f.js","../assets/menu.b7c0dde7.css","../chunks/icon-button.92948dd7.js","../assets/icon-button.16bef21d.css","../assets/drawer.96194c4d.css","../chunks/tooltip.4a34940b.js","../chunks/index.e93e2a88.js","../chunks/copy-to-clipboard.a310d1bd.js","../chunks/button.a1f9786a.js","../assets/button.8b8c0631.css","../assets/tooltip.78399487.css","../chunks/code-block.55adac36.js","../chunks/payload-decoder.0883e1af.js","../chunks/auth-user.ce52bc5e.js","../chunks/decode-payload.11855cf3.js","../chunks/data-encoder-config.896de1ac.js","../chunks/is-http.7eda3176.js","../chunks/encode-uri.e26747e0.js","../chunks/get-codec.89017b46.js","../chunks/link.6803bb00.js","../assets/link.e1fc8ece.css","../chunks/format-event-attributes.5632ebeb.js","../chunks/route-for.084c7a46.js","../chunks/to-time-difference.be87d1bf.js","../chunks/alert.9612e524.js","../assets/alert.303275c8.css","../chunks/task-queue-compatibility.cf5696f8.js","../chunks/pagination.605d1f82.js","../chunks/pagination.aba14fc4.js","../chunks/update-query-parameters.64a6ca26.js","../chunks/navigation.b77a045a.js","../chunks/simple-select.db1acee2.js","../assets/simple-select.51b2afe1.css","../chunks/index.8b5c6ff3.js","../assets/index.a8fb96df.css","../assets/pagination.76f9c6f3.css","../chunks/table-header-row.fec98b60.js","../assets/table-header-row.6ba6477c.css","../chunks/table-row.0fafe278.js","../chunks/workflow-status.781aff44.js","../assets/workflow-status.80899fb7.css","../chunks/event-summary-table.7924858b.js","../chunks/empty-state.721f6c59.js","../chunks/versions.6cca9ce8.js","../chunks/settings.0d5c4f96.js","../chunks/version-check.d006b302.js","../chunks/menu-divider.ada09983.js","../assets/event-summary-table.c983745f.css","../chunks/modal.19f8e4b8.js","../assets/modal.a1162225.css","../chunks/toggle-switch.3a41e457.js","../assets/toggle-switch.ff91b31f.css","../chunks/events-service.0141aab0.js","../chunks/index.49e6803e.js","../chunks/simplify-attributes.9504a504.js","../chunks/paginated.c754f9f4.js","../chunks/route-for-api.d45de563.js","../chunks/is-network-error.e7e518bc.js","../chunks/events.ccad8a5b.js","../chunks/namespaces.c82b5451.js","../chunks/workflow-json-navigator.82fd29ea.js","../assets/workflow-json-navigator.a85b4b27.css","../assets/32.200c2e4f.css"],import.meta.url),()=>u(()=>import("../nodes/33.4cfdf017.js"),["../nodes/33.4cfdf017.js","../chunks/index.3158323b.js","../chunks/control.f5b05b5f.js","../chunks/route-for.084c7a46.js","../chunks/encode-uri.e26747e0.js","../chunks/paths.b17cbae1.js"],import.meta.url),()=>u(()=>import("../nodes/34.c642be39.js"),["../nodes/34.c642be39.js","../chunks/index.4e2fcbc7.js","../chunks/stores.0e7b7e35.js","../chunks/singletons.13b3836d.js","../chunks/paths.b17cbae1.js","../chunks/event-summary-table.7924858b.js","../chunks/empty-state.721f6c59.js","../chunks/icon.e8aa24c8.js","../chunks/loading.95801385.js","../chunks/translate.d23a91ae.js","../chunks/i18next.1cfb3cb9.js","../chunks/index.6509bfd4.js","../chunks/navigation.b77a045a.js","../chunks/link.6803bb00.js","../assets/link.e1fc8ece.css","../chunks/index.03feb468.js","../chunks/has.183130b0.js","../chunks/is-event-type.4dbe973b.js","../chunks/format-time.4f091e0e.js","../chunks/event-view.50193376.js","../chunks/persist-store.8930b3b5.js","../chunks/parse-with-big-int.0036a80a.js","../chunks/time-format.fa373b4c.js","../chunks/format-event-attributes.5632ebeb.js","../chunks/format-camel-case.887ffc78.js","../chunks/route-for.084c7a46.js","../chunks/encode-uri.e26747e0.js","../chunks/code-block.55adac36.js","../chunks/button.a1f9786a.js","../assets/button.8b8c0631.css","../chunks/copy-to-clipboard.a310d1bd.js","../chunks/index.e93e2a88.js","../chunks/payload-decoder.0883e1af.js","../chunks/auth-user.ce52bc5e.js","../chunks/decode-payload.11855cf3.js","../chunks/data-encoder-config.896de1ac.js","../chunks/is-http.7eda3176.js","../chunks/get-codec.89017b46.js","../chunks/table-header-row.fec98b60.js","../assets/table-header-row.6ba6477c.css","../chunks/menu.716bcd2f.js","../chunks/badge.96e01a15.js","../assets/badge.bfa9122b.css","../assets/menu.b7c0dde7.css","../chunks/get-event-categorization.4d9adfe9.js","../chunks/filters.83a38186.js","../chunks/versions.6cca9ce8.js","../chunks/settings.0d5c4f96.js","../chunks/update-query-parameters.64a6ca26.js","../chunks/version-check.d006b302.js","../chunks/menu-divider.ada09983.js","../chunks/button.a45b0e55.js","../assets/button.386e08e4.css","../assets/event-summary-table.c983745f.css","../chunks/events-service.0141aab0.js","../chunks/index.49e6803e.js","../chunks/simplify-attributes.9504a504.js","../chunks/paginated.c754f9f4.js","../chunks/route-for-api.d45de563.js","../chunks/toaster.de22ba12.js","../chunks/is-network-error.e7e518bc.js","../chunks/events.ccad8a5b.js","../chunks/workflow-run.8b92989d.js"],import.meta.url),()=>u(()=>import("../nodes/35.4cfdf017.js"),["../nodes/35.4cfdf017.js","../chunks/index.3158323b.js","../chunks/control.f5b05b5f.js","../chunks/route-for.084c7a46.js","../chunks/encode-uri.e26747e0.js","../chunks/paths.b17cbae1.js"],import.meta.url),()=>u(()=>import("../nodes/36.4cfdf017.js"),["../nodes/36.4cfdf017.js","../chunks/index.3158323b.js","../chunks/control.f5b05b5f.js","../chunks/route-for.084c7a46.js","../chunks/encode-uri.e26747e0.js","../chunks/paths.b17cbae1.js"],import.meta.url),()=>u(()=>import("../nodes/37.748d5224.js"),["../nodes/37.748d5224.js","../chunks/index.4e2fcbc7.js","../chunks/stores.0e7b7e35.js","../chunks/singletons.13b3836d.js","../chunks/paths.b17cbae1.js","../chunks/page-title.f9a44b80.js","../chunks/translate.d23a91ae.js","../chunks/i18next.1cfb3cb9.js","../chunks/badge.96e01a15.js","../assets/badge.bfa9122b.css","../chunks/code-block.55adac36.js","../chunks/button.a1f9786a.js","../chunks/icon.e8aa24c8.js","../assets/button.8b8c0631.css","../chunks/copy-to-clipboard.a310d1bd.js","../chunks/parse-with-big-int.0036a80a.js","../chunks/empty-state.721f6c59.js","../chunks/link.6803bb00.js","../assets/link.e1fc8ece.css","../chunks/table-header-row.fec98b60.js","../assets/table-header-row.6ba6477c.css","../chunks/table-row.0fafe278.js","../chunks/time-format.fa373b4c.js","../chunks/persist-store.8930b3b5.js","../chunks/format-time.4f091e0e.js","../chunks/has.183130b0.js","../chunks/workflow-run.8b92989d.js","../chunks/format-event-attributes.5632ebeb.js","../chunks/format-camel-case.887ffc78.js","../chunks/index.03feb468.js","../chunks/is-event-type.4dbe973b.js","../chunks/to-time-difference.be87d1bf.js","../assets/37.682a0c0d.css"],import.meta.url),()=>u(()=>import("../nodes/38.92693f62.js"),["../nodes/38.92693f62.js","../chunks/index.4e2fcbc7.js","../chunks/stores.0e7b7e35.js","../chunks/singletons.13b3836d.js","../chunks/paths.b17cbae1.js","../chunks/page-title.f9a44b80.js","../chunks/translate.d23a91ae.js","../chunks/i18next.1cfb3cb9.js","../chunks/button.a45b0e55.js","../chunks/badge.96e01a15.js","../assets/badge.bfa9122b.css","../chunks/icon.e8aa24c8.js","../assets/button.386e08e4.css","../chunks/code-block.55adac36.js","../chunks/button.a1f9786a.js","../assets/button.8b8c0631.css","../chunks/copy-to-clipboard.a310d1bd.js","../chunks/parse-with-big-int.0036a80a.js","../chunks/empty-state.721f6c59.js","../chunks/loading.95801385.js","../chunks/simple-select.db1acee2.js","../assets/simple-select.51b2afe1.css","../chunks/toggle-switch.3a41e457.js","../assets/toggle-switch.ff91b31f.css","../chunks/query-service.2a94e5c4.js","../chunks/data-encoder-config.896de1ac.js","../chunks/persist-store.8930b3b5.js","../chunks/has.183130b0.js","../chunks/decode-payload.11855cf3.js","../chunks/is-http.7eda3176.js","../chunks/encode-uri.e26747e0.js","../chunks/get-codec.89017b46.js","../chunks/route-for-api.d45de563.js","../chunks/auth-user.ce52bc5e.js","../chunks/toaster.de22ba12.js","../chunks/is-network-error.e7e518bc.js","../chunks/route-for.084c7a46.js"],import.meta.url),()=>u(()=>import("../nodes/39.ebb75185.js"),["../nodes/39.ebb75185.js","../chunks/index.3158323b.js","../chunks/control.f5b05b5f.js","../chunks/route-for.084c7a46.js","../chunks/encode-uri.e26747e0.js","../chunks/paths.b17cbae1.js"],import.meta.url),()=>u(()=>import("../nodes/40.7e27d597.js"),["../nodes/40.7e27d597.js","../chunks/index.4e2fcbc7.js","../chunks/stores.0e7b7e35.js","../chunks/singletons.13b3836d.js","../chunks/paths.b17cbae1.js","../chunks/page-title.f9a44b80.js","../chunks/translate.d23a91ae.js","../chunks/i18next.1cfb3cb9.js","../chunks/workers-list.611e6068.js","../chunks/badge.96e01a15.js","../assets/badge.bfa9122b.css","../chunks/pollers-service.ea8b18d9.js","../chunks/icon.e8aa24c8.js","../chunks/route-for-api.d45de563.js","../chunks/encode-uri.e26747e0.js","../chunks/auth-user.ce52bc5e.js","../chunks/persist-store.8930b3b5.js","../chunks/parse-with-big-int.0036a80a.js","../chunks/toaster.de22ba12.js","../chunks/has.183130b0.js","../chunks/is-network-error.e7e518bc.js","../chunks/route-for.084c7a46.js","../assets/pollers-service.3f93e67d.css","../chunks/empty-state.721f6c59.js","../chunks/table-header-row.fec98b60.js","../assets/table-header-row.6ba6477c.css","../chunks/table-row.0fafe278.js","../chunks/time-format.fa373b4c.js","../chunks/format-time.4f091e0e.js","../chunks/task-queue-compatibility.cf5696f8.js","../assets/workers-list.7dbb8f48.css","../chunks/workflow-run.8b92989d.js"],import.meta.url),()=>u(()=>import("../nodes/41.8cfba0ec.js"),["../nodes/41.8cfba0ec.js","../chunks/index.4e2fcbc7.js","../chunks/navigation.b77a045a.js","../chunks/singletons.13b3836d.js","../chunks/paths.b17cbae1.js","../chunks/stores.0e7b7e35.js","../chunks/page-title.f9a44b80.js","../chunks/empty-state.721f6c59.js","../chunks/icon.e8aa24c8.js","../chunks/input.4b0dcfae.js","../chunks/copy-to-clipboard.a310d1bd.js","../chunks/icon-button.92948dd7.js","../assets/icon-button.16bef21d.css","../assets/input.19df62ce.css","../chunks/translate.d23a91ae.js","../chunks/i18next.1cfb3cb9.js","../chunks/workflow-service.e2f4a06b.js","../chunks/decode-payload.11855cf3.js","../chunks/data-encoder-config.896de1ac.js","../chunks/persist-store.8930b3b5.js","../chunks/parse-with-big-int.0036a80a.js","../chunks/has.183130b0.js","../chunks/is-http.7eda3176.js","../chunks/encode-uri.e26747e0.js","../chunks/write-actions-are-allowed.008c7180.js","../chunks/settings.0d5c4f96.js","../chunks/simplify-attributes.9504a504.js","../chunks/time-format.fa373b4c.js","../chunks/format-time.4f091e0e.js","../chunks/route-for-api.d45de563.js","../chunks/auth-user.ce52bc5e.js","../chunks/toaster.de22ba12.js","../chunks/is-network-error.e7e518bc.js","../chunks/route-for.084c7a46.js","../chunks/version-check.d006b302.js","../chunks/versions.6cca9ce8.js","../chunks/namespaces.c82b5451.js","../assets/41.8ed620ce.css"],import.meta.url),()=>u(()=>import("../nodes/42.5351716c.js"),["../nodes/42.5351716c.js","../chunks/index.4e2fcbc7.js","../chunks/stores.0e7b7e35.js","../chunks/singletons.13b3836d.js","../chunks/paths.b17cbae1.js","../chunks/logo.8c0e7632.js","../chunks/icon.e8aa24c8.js","../assets/logo.4e0dbf07.css","../chunks/page-title.f9a44b80.js","../chunks/button.a45b0e55.js","../chunks/badge.96e01a15.js","../assets/badge.bfa9122b.css","../assets/button.386e08e4.css","../chunks/route-for.084c7a46.js","../chunks/encode-uri.e26747e0.js"],import.meta.url),()=>u(()=>import("../nodes/43.5351716c.js"),["../nodes/43.5351716c.js","../chunks/index.4e2fcbc7.js","../chunks/stores.0e7b7e35.js","../chunks/singletons.13b3836d.js","../chunks/paths.b17cbae1.js","../chunks/logo.8c0e7632.js","../chunks/icon.e8aa24c8.js","../assets/logo.4e0dbf07.css","../chunks/page-title.f9a44b80.js","../chunks/button.a45b0e55.js","../chunks/badge.96e01a15.js","../assets/badge.bfa9122b.css","../assets/button.386e08e4.css","../chunks/route-for.084c7a46.js","../chunks/encode-uri.e26747e0.js"],import.meta.url)],$e=[],Pe={"/(app)":[10,[2]],"/(app)/import":[11,[2,3]],"/(app)/import/events":[12,[2,3]],"/(app)/import/events/[namespace]/[workflow]/[run]/history":[13,[2,3,4]],"/(app)/import/events/[namespace]/[workflow]/[run]/history/compact":[14,[2,3,4]],"/(app)/import/events/[namespace]/[workflow]/[run]/history/feed":[15,[2,3,4]],"/(app)/import/events/[namespace]/[workflow]/[run]/history/json":[16,[2,3,4]],"/(login)/login":[42,[9]],"/(app)/namespaces":[17,[2]],"/(app)/namespaces/[namespace]":[18,[2,5]],"/(app)/namespaces/[namespace]/archival":[19,[2,5]],"/(app)/namespaces/[namespace]/batch-operations":[20,[2,5]],"/(app)/namespaces/[namespace]/batch-operations/[jobId]":[21,[2,5]],"/(app)/namespaces/[namespace]/schedules":[22,[2,5,6]],"/(app)/namespaces/[namespace]/schedules/create":[25,[2,5,6]],"/(app)/namespaces/[namespace]/schedules/[schedule]":[23,[2,5,6]],"/(app)/namespaces/[namespace]/schedules/[schedule]/edit":[24,[2,5,6]],"/(app)/namespaces/[namespace]/task-queues":[26,[2,5,7]],"/(app)/namespaces/[namespace]/task-queues/[queue]":[27,[2,5,7]],"/(app)/namespaces/[namespace]/workflows":[28,[2,5]],"/(app)/namespaces/[namespace]/workflows/[workflow]":[29,[2,5]],"/(app)/namespaces/[namespace]/workflows/[workflow]/[run]":[30,[2,5,8]],"/(app)/namespaces/[namespace]/workflows/[workflow]/[run]/call-stack":[31,[2,5,8]],"/(app)/namespaces/[namespace]/workflows/[workflow]/[run]/history":[32,[2,5,8]],"/(app)/namespaces/[namespace]/workflows/[workflow]/[run]/history/compact":[33,[2,5,8]],"/(app)/namespaces/[namespace]/workflows/[workflow]/[run]/history/events/[id]":[34,[2,5,8]],"/(app)/namespaces/[namespace]/workflows/[workflow]/[run]/history/feed":[35,[2,5,8]],"/(app)/namespaces/[namespace]/workflows/[workflow]/[run]/history/json":[36,[2,5,8]],"/(app)/namespaces/[namespace]/workflows/[workflow]/[run]/pending-activities":[37,[2,5,8]],"/(app)/namespaces/[namespace]/workflows/[workflow]/[run]/query":[38,[2,5,8]],"/(app)/namespaces/[namespace]/workflows/[workflow]/[run]/stack-trace":[39,[2,5,8]],"/(app)/namespaces/[namespace]/workflows/[workflow]/[run]/workers":[40,[2,5,8]],"/(app)/select-namespace":[41,[2]],"/(login)/signin":[43,[9]]},De={handleError:({error:_})=>{console.error(_)}};export{Pe as dictionary,De as hooks,be as matchers,Le as nodes,Re as root,$e as server_loads}; diff --git a/ui/assets/local/_app/immutable/entry/start.aba94dc6.js b/ui/assets/local/_app/immutable/entry/start.439d39e9.js similarity index 99% rename from ui/assets/local/_app/immutable/entry/start.aba94dc6.js rename to ui/assets/local/_app/immutable/entry/start.439d39e9.js index febf234669..61808e1e7d 100644 --- a/ui/assets/local/_app/immutable/entry/start.aba94dc6.js +++ b/ui/assets/local/_app/immutable/entry/start.439d39e9.js @@ -1,3 +1,3 @@ -import{o as me,t as we}from"../chunks/index.4e2fcbc7.js";import{S as Be,a as Ge,I as M,g as De,f as Ce,b as _e,c as le,s as te,i as ye,d as F,P as Me,e as Xe}from"../chunks/singletons.fb5f332e.js";import{b as K}from"../chunks/paths.c2469178.js";import{R as Ve,H as ne}from"../chunks/control.f5b05b5f.js";function Ze(n,o){return n==="/"||o==="ignore"?n:o==="never"?n.endsWith("/")?n.slice(0,-1):n:o==="always"&&!n.endsWith("/")?n+"/":n}function Qe(n){return n.split("%25").map(decodeURI).join("%25")}function et(n){for(const o in n)n[o]=decodeURIComponent(n[o]);return n}const tt=["href","pathname","search","searchParams","toString","toJSON"];function nt(n,o){const d=new URL(n);for(const s of tt)Object.defineProperty(d,s,{get(){return o(),n[s]},enumerable:!0,configurable:!0});return at(d),d}function at(n){Object.defineProperty(n,"hash",{get(){throw new Error("Cannot access event.url.hash. Consider using `$page.url.hash` inside a component instead")}})}const rt="/__data.json";function ot(n){return n.replace(/\/$/,"")+rt}function it(...n){let o=5381;for(const d of n)if(typeof d=="string"){let s=d.length;for(;s;)o=o*33^d.charCodeAt(--s)}else if(ArrayBuffer.isView(d)){const s=new Uint8Array(d.buffer,d.byteOffset,d.byteLength);let u=s.length;for(;u;)o=o*33^s[--u]}else throw new TypeError("value must be a string or TypedArray");return(o>>>0).toString(36)}const Ke=window.fetch;window.fetch=(n,o)=>((n instanceof Request?n.method:(o==null?void 0:o.method)||"GET")!=="GET"&&ae.delete(ke(n)),Ke(n,o));const ae=new Map;function st(n,o){const d=ke(n,o),s=document.querySelector(d);if(s!=null&&s.textContent){const{body:u,...f}=JSON.parse(s.textContent),E=s.getAttribute("data-ttl");return E&&ae.set(d,{body:u,init:f,ttl:1e3*Number(E)}),Promise.resolve(new Response(u,f))}return window.fetch(n,o)}function ct(n,o,d){if(ae.size>0){const s=ke(n,d),u=ae.get(s);if(u){if(performance.now(){const u=/^\[\.\.\.(\w+)(?:=(\w+))?\]$/.exec(s);if(u)return o.push({name:u[1],matcher:u[2],optional:!1,rest:!0,chained:!0}),"(?:/(.*))?";const f=/^\[\[(\w+)(?:=(\w+))?\]\]$/.exec(s);if(f)return o.push({name:f[1],matcher:f[2],optional:!0,rest:!1,chained:!0}),"(?:/([^/]+))?";if(!s)return;const E=s.split(/\[(.+?)\](?!\])/);return"/"+E.map((g,m)=>{if(m%2){if(g.startsWith("x+"))return ve(String.fromCharCode(parseInt(g.slice(2),16)));if(g.startsWith("u+"))return ve(String.fromCharCode(...g.slice(2).split("-").map(U=>parseInt(U,16))));const h=lt.exec(g);if(!h)throw new Error(`Invalid param: ${g}. Params and matcher names can only have underscores and alphanumeric characters.`);const[,x,j,S,N]=h;return o.push({name:S,matcher:N,optional:!!x,rest:!!j,chained:j?m===1&&E[0]==="":!1}),j?"(.*?)":x?"([^/]*)?":"([^/]+?)"}return ve(g)}).join("")}).join("")}/?$`),params:o}}function ut(n){return!/^\([^)]+\)$/.test(n)}function dt(n){return n.slice(1).split("/").filter(ut)}function pt(n,o,d){const s={},u=n.slice(1),f=u.filter(l=>l!==void 0);let E=0;for(let l=0;lh).join("/"),E=0),m===void 0){g.rest&&(s[g.name]="");continue}if(!g.matcher||d[g.matcher](m)){s[g.name]=m;const h=o[l+1],x=u[l+1];h&&!h.rest&&h.optional&&x&&g.chained&&(E=0),!h&&!x&&Object.keys(s).length===f.length&&(E=0);continue}if(g.optional&&g.chained){E++;continue}return}if(!E)return s}function ve(n){return n.normalize().replace(/[[\]]/g,"\\$&").replace(/%/g,"%25").replace(/\//g,"%2[Ff]").replace(/\?/g,"%3[Ff]").replace(/#/g,"%23").replace(/[.*+?^${}()|\\]/g,"\\$&")}function ht({nodes:n,server_loads:o,dictionary:d,matchers:s}){const u=new Set(o);return Object.entries(d).map(([l,[g,m,h]])=>{const{pattern:x,params:j}=ft(l),S={id:l,exec:N=>{const U=x.exec(N);if(U)return pt(U,j,s)},errors:[1,...h||[]].map(N=>n[N]),layouts:[0,...m||[]].map(E),leaf:f(g)};return S.errors.length=S.layouts.length=Math.max(S.errors.length,S.layouts.length),S});function f(l){const g=l<0;return g&&(l=~l),[g,n[l]]}function E(l){return l===void 0?l:[u.has(l),n[l]]}}function ze(n){try{return JSON.parse(sessionStorage[n])}catch{}}function qe(n,o){const d=JSON.stringify(o);try{sessionStorage[n]=d}catch{}}const gt=-1,mt=-2,wt=-3,_t=-4,yt=-5,vt=-6;function bt(n,o){if(typeof n=="number")return u(n,!0);if(!Array.isArray(n)||n.length===0)throw new Error("Invalid input");const d=n,s=Array(d.length);function u(f,E=!1){if(f===gt)return;if(f===wt)return NaN;if(f===_t)return 1/0;if(f===yt)return-1/0;if(f===vt)return-0;if(E)throw new Error("Invalid input");if(f in s)return s[f];const l=d[f];if(!l||typeof l!="object")s[f]=l;else if(Array.isArray(l))if(typeof l[0]=="string"){const g=l[0],m=o==null?void 0:o[g];if(m)return s[f]=m(u(l[1]));switch(g){case"Date":s[f]=new Date(l[1]);break;case"Set":const h=new Set;s[f]=h;for(let S=1;So!=null)}const Je=new Set(["load","prerender","csr","ssr","trailingSlash","config"]);[...Je];const kt=new Set([...Je]);[...kt];async function St(n){var o;for(const d in n)if(typeof((o=n[d])==null?void 0:o.then)=="function")return Object.fromEntries(await Promise.all(Object.entries(n).map(async([s,u])=>[s,await u])));return n}const Rt="x-sveltekit-invalidated",At="x-sveltekit-trailing-slash",z=ze(Be)??{},ee=ze(Ge)??{};function be(n){z[n]=te()}function It(n,o){var Ne;const d=ht(n),s=n.nodes[0],u=n.nodes[1];s(),u();const f=document.documentElement,E=[],l=[];let g=null;const m={before_navigate:[],on_navigate:[],after_navigate:[]};let h={branch:[],error:null,url:null},x=!1,j=!1,S=!0,N=!1,U=!1,H=!1,B=!1,V,D=(Ne=history.state)==null?void 0:Ne[M];D||(D=Date.now(),history.replaceState({...history.state,[M]:D},"",location.href));const fe=z[D];fe&&(history.scrollRestoration="manual",scrollTo(fe.x,fe.y));let q,J,Y;async function Se(){if(Y=Y||Promise.resolve(),await Y,!Y)return;Y=null;const e=new URL(location.href),i=Z(e,!0);g=null;const t=J={},r=i&&await pe(i);if(t===J&&r){if(r.type==="redirect")return re(new URL(r.location,e).href,{},1,t);r.props.page!==void 0&&(q=r.props.page),V.$set(r.props)}}function Re(e){l.some(i=>i==null?void 0:i.snapshot)&&(ee[e]=l.map(i=>{var t;return(t=i==null?void 0:i.snapshot)==null?void 0:t.capture()}))}function Ae(e){var i;(i=ee[e])==null||i.forEach((t,r)=>{var a,c;(c=(a=l[r])==null?void 0:a.snapshot)==null||c.restore(t)})}function Ie(){be(D),qe(Be,z),Re(D),qe(Ge,ee)}async function re(e,{noScroll:i=!1,replaceState:t=!1,keepFocus:r=!1,state:a={},invalidateAll:c=!1},p,v){return typeof e=="string"&&(e=new URL(e,De(document))),ce({url:e,scroll:i?te():null,keepfocus:r,redirect_count:p,details:{state:a,replaceState:t},nav_token:v,accepted:()=>{c&&(B=!0)},blocked:()=>{},type:"goto"})}async function Le(e){return g={id:e.id,promise:pe(e).then(i=>(i.type==="loaded"&&i.state.error&&(g=null),i))},g.promise}async function oe(...e){const t=d.filter(r=>e.some(a=>r.exec(a))).map(r=>Promise.all([...r.layouts,r.leaf].map(a=>a==null?void 0:a[1]())));await Promise.all(t)}function Pe(e){var r;h=e.state;const i=document.querySelector("style[data-sveltekit]");i&&i.remove(),q=e.props.page,V=new n.root({target:o,props:{...e.props,stores:F,components:l},hydrate:!0}),Ae(D);const t={from:null,to:{params:h.params,route:{id:((r=h.route)==null?void 0:r.id)??null},url:new URL(location.href)},willUnload:!1,type:"enter",complete:Promise.resolve()};m.after_navigate.forEach(a=>a(t)),j=!0}async function X({url:e,params:i,branch:t,status:r,error:a,route:c,form:p}){let v="never";for(const _ of t)(_==null?void 0:_.slash)!==void 0&&(v=_.slash);e.pathname=Ze(e.pathname,v),e.search=e.search;const b={type:"loaded",state:{url:e,params:i,branch:t,error:a,route:c},props:{constructors:Et(t).map(_=>_.node.component)}};p!==void 0&&(b.props.form=p);let y={},L=!q,A=0;for(let _=0;_(v.route=!0,w[O])}),params:new Proxy(r,{get:(w,O)=>(v.params.add(O),w[O])}),data:(c==null?void 0:c.data)??null,url:nt(t,()=>{v.url=!0}),async fetch(w,O){let T;w instanceof Request?(T=w.url,O={body:w.method==="GET"||w.method==="HEAD"?void 0:await w.blob(),cache:w.cache,credentials:w.credentials,headers:w.headers,integrity:w.integrity,keepalive:w.keepalive,method:w.method,mode:w.mode,redirect:w.redirect,referrer:w.referrer,referrerPolicy:w.referrerPolicy,signal:w.signal,...O}):T=w;const C=new URL(T,t);return P(C.href),C.origin===t.origin&&(T=C.href.slice(t.origin.length)),j?ct(T,C.href,O):st(T,O)},setHeaders:()=>{},depends:P,parent(){return v.parent=!0,i()}};p=await b.universal.load.call(null,_)??null,p=p?await St(p):null}return{node:b,loader:e,server:c,universal:(L=b.universal)!=null&&L.load?{type:"data",data:p,uses:v}:null,data:p??(c==null?void 0:c.data)??null,slash:((A=b.universal)==null?void 0:A.trailingSlash)??(c==null?void 0:c.slash)}}function Oe(e,i,t,r,a){if(B)return!0;if(!r)return!1;if(r.parent&&e||r.route&&i||r.url&&t)return!0;for(const c of r.params)if(a[c]!==h.params[c])return!0;for(const c of r.dependencies)if(E.some(p=>p(new URL(c))))return!0;return!1}function de(e,i){return(e==null?void 0:e.type)==="data"?e:(e==null?void 0:e.type)==="skip"?i??null:null}async function pe({id:e,invalidating:i,url:t,params:r,route:a}){if((g==null?void 0:g.id)===e)return g.promise;const{errors:c,layouts:p,leaf:v}=a,b=[...p,v];c.forEach(k=>k==null?void 0:k().catch(()=>{})),b.forEach(k=>k==null?void 0:k[1]().catch(()=>{}));let y=null;const L=h.url?e!==h.url.pathname+h.url.search:!1,A=h.route?a.id!==h.route.id:!1;let P=!1;const _=b.map((k,I)=>{var G;const R=h.branch[I],$=!!(k!=null&&k[0])&&((R==null?void 0:R.loader)!==k[1]||Oe(P,A,L,(G=R.server)==null?void 0:G.uses,r));return $&&(P=!0),$});if(_.some(Boolean)){try{y=await Fe(t,_)}catch(k){return ie({status:k instanceof ne?k.status:500,error:await Q(k,{url:t,params:r,route:{id:a.id}}),url:t,route:a})}if(y.type==="redirect")return y}const w=y==null?void 0:y.nodes;let O=!1;const T=b.map(async(k,I)=>{var he;if(!k)return;const R=h.branch[I],$=w==null?void 0:w[I];if((!$||$.type==="skip")&&k[1]===(R==null?void 0:R.loader)&&!Oe(O,A,L,(he=R.universal)==null?void 0:he.uses,r))return R;if(O=!0,($==null?void 0:$.type)==="error")throw $;return ue({loader:k[1],url:t,params:r,route:a,parent:async()=>{var $e;const Te={};for(let ge=0;ge{});const C=[];for(let k=0;kPromise.resolve({}),server_data_node:de(c)}),b={node:await u(),loader:u,universal:null,server:null,data:null};return await X({url:t,params:a,branch:[v,b],status:e,error:i,route:null})}function Z(e,i){if(ye(e,K))return;const t=se(e);for(const r of d){const a=r.exec(t);if(a)return{id:e.pathname+e.search,invalidating:i,route:r,params:et(a),url:e}}}function se(e){return Qe(e.pathname.slice(K.length)||"/")}function xe({url:e,type:i,intent:t,delta:r}){let a=!1;const c=He(h,t,e,i);r!==void 0&&(c.navigation.delta=r);const p={...c.navigation,cancel:()=>{a=!0,c.reject(new Error("navigation was cancelled"))}};return U||m.before_navigate.forEach(v=>v(p)),a?null:c}async function ce({url:e,scroll:i,keepfocus:t,redirect_count:r,details:a,type:c,delta:p,nav_token:v={},accepted:b,blocked:y}){var T,C,k;const L=Z(e,!1),A=xe({url:e,type:c,delta:p,intent:L});if(!A){y();return}const P=D;b(),U=!0,j&&F.navigating.set(A.navigation),J=v;let _=L&&await pe(L);if(!_){if(ye(e,K))return await W(e);_=await je(e,{id:null},await Q(new Error(`Not found: ${e.pathname}`),{url:e,params:{},route:{id:null}}),404)}if(e=(L==null?void 0:L.url)||e,J!==v)return A.reject(new Error("navigation was aborted")),!1;if(_.type==="redirect")if(r>=20)_=await ie({status:500,error:await Q(new Error("Redirect loop"),{url:e,params:{},route:{id:null}}),url:e,route:{id:null}});else return re(new URL(_.location,e).href,{},r+1,v),!1;else((T=_.props.page)==null?void 0:T.status)>=400&&await F.updated.check()&&await W(e);if(E.length=0,B=!1,N=!0,be(P),Re(P),(C=_.props.page)!=null&&C.url&&_.props.page.url.pathname!==e.pathname&&(e.pathname=(k=_.props.page)==null?void 0:k.url.pathname),a){const I=a.replaceState?0:1;if(a.state[M]=D+=I,history[a.replaceState?"replaceState":"pushState"](a.state,"",e),!a.replaceState){let R=D+1;for(;ee[R]||z[R];)delete ee[R],delete z[R],R+=1}}if(g=null,j){h=_.state,_.props.page&&(_.props.page.url=e);const I=(await Promise.all(m.on_navigate.map(R=>R(A.navigation)))).filter(R=>typeof R=="function");if(I.length>0){let R=function(){m.after_navigate=m.after_navigate.filter($=>!I.includes($))};I.push(R),m.after_navigate.push(...I)}V.$set(_.props)}else Pe(_);const{activeElement:w}=document;if(await we(),S){const I=e.hash&&document.getElementById(decodeURIComponent(e.hash.slice(1)));i?scrollTo(i.x,i.y):I?I.scrollIntoView():scrollTo(0,0)}const O=document.activeElement!==w&&document.activeElement!==document.body;!t&&!O&&Ee(),S=!0,_.props.page&&(q=_.props.page),U=!1,c==="popstate"&&Ae(D),A.fulfil(void 0),m.after_navigate.forEach(I=>I(A.navigation)),F.navigating.set(null),N=!1}async function je(e,i,t,r){return e.origin===location.origin&&e.pathname===location.pathname&&!x?await ie({status:r,error:t,url:e,route:i}):await W(e)}function W(e){return location.href=e.href,new Promise(()=>{})}function Ye(){let e;f.addEventListener("mousemove",c=>{const p=c.target;clearTimeout(e),e=setTimeout(()=>{r(p,2)},20)});function i(c){r(c.composedPath()[0],1)}f.addEventListener("mousedown",i),f.addEventListener("touchstart",i,{passive:!0});const t=new IntersectionObserver(c=>{for(const p of c)p.isIntersecting&&(oe(se(new URL(p.target.href))),t.unobserve(p.target))},{threshold:0});function r(c,p){const v=Ce(c,f);if(!v)return;const{url:b,external:y,download:L}=_e(v,K);if(y||L)return;const A=le(v);if(!A.reload)if(p<=A.preload_data){const P=Z(b,!1);P&&Le(P)}else p<=A.preload_code&&oe(se(b))}function a(){t.disconnect();for(const c of f.querySelectorAll("a")){const{url:p,external:v,download:b}=_e(c,K);if(v||b)continue;const y=le(c);y.reload||(y.preload_code===Me.viewport&&t.observe(c),y.preload_code===Me.eager&&oe(se(p)))}}m.after_navigate.push(a),a()}function Q(e,i){return e instanceof ne?e.body:n.hooks.handleError({error:e,event:i})??{message:i.route.id!=null?"Internal Error":"Not Found"}}return{after_navigate:e=>{me(()=>(m.after_navigate.push(e),()=>{const i=m.after_navigate.indexOf(e);m.after_navigate.splice(i,1)}))},before_navigate:e=>{me(()=>(m.before_navigate.push(e),()=>{const i=m.before_navigate.indexOf(e);m.before_navigate.splice(i,1)}))},on_navigate:e=>{me(()=>(m.on_navigate.push(e),()=>{const i=m.on_navigate.indexOf(e);m.on_navigate.splice(i,1)}))},disable_scroll_handling:()=>{(N||!j)&&(S=!1)},goto:(e,i={})=>re(e,i,0),invalidate:e=>{if(typeof e=="function")E.push(e);else{const{href:i}=new URL(e,location.href);E.push(t=>t.href===i)}return Se()},invalidate_all:()=>(B=!0,Se()),preload_data:async e=>{const i=new URL(e,De(document)),t=Z(i,!1);if(!t)throw new Error(`Attempted to preload a URL that does not belong to this app: ${i}`);await Le(t)},preload_code:oe,apply_action:async e=>{if(e.type==="error"){const i=new URL(location.href),{branch:t,route:r}=h;if(!r)return;const a=await Ue(h.branch.length,t,r.errors);if(a){const c=await X({url:i,params:h.params,branch:t.slice(0,a.idx).concat(a.node),status:e.status??500,error:e.error,route:r});h=c.state,V.$set(c.props),we().then(Ee)}}else e.type==="redirect"?re(e.location,{invalidateAll:!0},0):(V.$set({form:null,page:{...q,form:e.data,status:e.status}}),await we(),V.$set({form:e.data}),e.type==="success"&&Ee())},_start_router:()=>{var i;history.scrollRestoration="manual",addEventListener("beforeunload",t=>{let r=!1;if(Ie(),!U){const a=He(h,void 0,null,"leave"),c={...a.navigation,cancel:()=>{r=!0,a.reject(new Error("navigation was cancelled"))}};m.before_navigate.forEach(p=>p(c))}r?(t.preventDefault(),t.returnValue=""):history.scrollRestoration="auto"}),addEventListener("visibilitychange",()=>{document.visibilityState==="hidden"&&Ie()}),(i=navigator.connection)!=null&&i.saveData||Ye(),f.addEventListener("click",t=>{var P;if(t.button||t.which!==1||t.metaKey||t.ctrlKey||t.shiftKey||t.altKey||t.defaultPrevented)return;const r=Ce(t.composedPath()[0],f);if(!r)return;const{url:a,external:c,target:p,download:v}=_e(r,K);if(!a)return;if(p==="_parent"||p==="_top"){if(window.parent!==window)return}else if(p&&p!=="_self")return;const b=le(r);if(!(r instanceof SVGAElement)&&a.protocol!==location.protocol&&!(a.protocol==="https:"||a.protocol==="http:")||v)return;if(c||b.reload){xe({url:a,type:"link"})?U=!0:t.preventDefault();return}const[L,A]=a.href.split("#");if(A!==void 0&&L===location.href.split("#")[0]){if(h.url.hash===a.hash){t.preventDefault(),(P=r.ownerDocument.getElementById(A))==null||P.scrollIntoView();return}if(H=!0,be(D),e(a),!b.replace_state)return;H=!1,t.preventDefault()}ce({url:a,scroll:b.noscroll?te():null,keepfocus:b.keep_focus??!1,redirect_count:0,details:{state:{},replaceState:b.replace_state??a.href===location.href},accepted:()=>t.preventDefault(),blocked:()=>t.preventDefault(),type:"link"})}),f.addEventListener("submit",t=>{if(t.defaultPrevented)return;const r=HTMLFormElement.prototype.cloneNode.call(t.target),a=t.submitter;if(((a==null?void 0:a.formMethod)||r.method)!=="get")return;const p=new URL((a==null?void 0:a.hasAttribute("formaction"))&&(a==null?void 0:a.formAction)||r.action);if(ye(p,K))return;const v=t.target,{keep_focus:b,noscroll:y,reload:L,replace_state:A}=le(v);if(L)return;t.preventDefault(),t.stopPropagation();const P=new FormData(v),_=a==null?void 0:a.getAttribute("name");_&&P.append(_,(a==null?void 0:a.getAttribute("value"))??""),p.search=new URLSearchParams(P).toString(),ce({url:p,scroll:y?te():null,keepfocus:b??!1,redirect_count:0,details:{state:{},replaceState:A??p.href===location.href},nav_token:{},accepted:()=>{},blocked:()=>{},type:"form"})}),addEventListener("popstate",async t=>{var r;if(J={},(r=t.state)!=null&&r[M]){if(t.state[M]===D)return;const a=z[t.state[M]],c=new URL(location.href);if(h.url.href.split("#")[0]===location.href.split("#")[0]){e(c),z[D]=te(),D=t.state[M],scrollTo(a.x,a.y);return}const p=t.state[M]-D;await ce({url:c,scroll:a,keepfocus:!1,redirect_count:0,details:null,accepted:()=>{D=t.state[M]},blocked:()=>{history.go(-p)},type:"popstate",delta:p,nav_token:J})}else if(!H){const a=new URL(location.href);e(a)}}),addEventListener("hashchange",()=>{H&&(H=!1,history.replaceState({...history.state,[M]:++D},"",location.href))});for(const t of document.querySelectorAll("link"))t.rel==="icon"&&(t.href=t.href);addEventListener("pageshow",t=>{t.persisted&&F.navigating.set(null)});function e(t){h.url=t,F.page.set({...q,url:t}),F.page.notify()}},_hydrate:async({status:e=200,error:i,node_ids:t,params:r,route:a,data:c,form:p})=>{x=!0;const v=new URL(location.href);({params:r={},route:a={id:null}}=Z(v,!1)||{});let b;try{const y=t.map(async(P,_)=>{const w=c[_];return w!=null&&w.uses&&(w.uses=We(w.uses)),ue({loader:n.nodes[P],url:v,params:r,route:a,parent:async()=>{const O={};for(let T=0;T<_;T+=1)Object.assign(O,(await y[T]).data);return O},server_data_node:de(w)})}),L=await Promise.all(y),A=d.find(({id:P})=>P===a.id);if(A){const P=A.layouts;for(let _=0;_u?"1":"0").join(""));const s=await Ke(d.href);if(!s.ok)throw new ne(s.status,await s.json());return new Promise(async u=>{var h;const f=new Map,E=s.body.getReader(),l=new TextDecoder;function g(x){return bt(x,{Promise:j=>new Promise((S,N)=>{f.set(j,{fulfil:S,reject:N})})})}let m="";for(;;){const{done:x,value:j}=await E.read();if(x&&!m)break;for(m+=!j&&m?` +import{o as me,t as we}from"../chunks/index.4e2fcbc7.js";import{S as Be,a as Ge,I as M,g as De,f as Ce,b as _e,c as le,s as te,i as ye,d as F,P as Me,e as Xe}from"../chunks/singletons.13b3836d.js";import{b as K}from"../chunks/paths.b17cbae1.js";import{R as Ve,H as ne}from"../chunks/control.f5b05b5f.js";function Ze(n,o){return n==="/"||o==="ignore"?n:o==="never"?n.endsWith("/")?n.slice(0,-1):n:o==="always"&&!n.endsWith("/")?n+"/":n}function Qe(n){return n.split("%25").map(decodeURI).join("%25")}function et(n){for(const o in n)n[o]=decodeURIComponent(n[o]);return n}const tt=["href","pathname","search","searchParams","toString","toJSON"];function nt(n,o){const d=new URL(n);for(const s of tt)Object.defineProperty(d,s,{get(){return o(),n[s]},enumerable:!0,configurable:!0});return at(d),d}function at(n){Object.defineProperty(n,"hash",{get(){throw new Error("Cannot access event.url.hash. Consider using `$page.url.hash` inside a component instead")}})}const rt="/__data.json";function ot(n){return n.replace(/\/$/,"")+rt}function it(...n){let o=5381;for(const d of n)if(typeof d=="string"){let s=d.length;for(;s;)o=o*33^d.charCodeAt(--s)}else if(ArrayBuffer.isView(d)){const s=new Uint8Array(d.buffer,d.byteOffset,d.byteLength);let u=s.length;for(;u;)o=o*33^s[--u]}else throw new TypeError("value must be a string or TypedArray");return(o>>>0).toString(36)}const Ke=window.fetch;window.fetch=(n,o)=>((n instanceof Request?n.method:(o==null?void 0:o.method)||"GET")!=="GET"&&ae.delete(ke(n)),Ke(n,o));const ae=new Map;function st(n,o){const d=ke(n,o),s=document.querySelector(d);if(s!=null&&s.textContent){const{body:u,...f}=JSON.parse(s.textContent),E=s.getAttribute("data-ttl");return E&&ae.set(d,{body:u,init:f,ttl:1e3*Number(E)}),Promise.resolve(new Response(u,f))}return window.fetch(n,o)}function ct(n,o,d){if(ae.size>0){const s=ke(n,d),u=ae.get(s);if(u){if(performance.now(){const u=/^\[\.\.\.(\w+)(?:=(\w+))?\]$/.exec(s);if(u)return o.push({name:u[1],matcher:u[2],optional:!1,rest:!0,chained:!0}),"(?:/(.*))?";const f=/^\[\[(\w+)(?:=(\w+))?\]\]$/.exec(s);if(f)return o.push({name:f[1],matcher:f[2],optional:!0,rest:!1,chained:!0}),"(?:/([^/]+))?";if(!s)return;const E=s.split(/\[(.+?)\](?!\])/);return"/"+E.map((g,m)=>{if(m%2){if(g.startsWith("x+"))return ve(String.fromCharCode(parseInt(g.slice(2),16)));if(g.startsWith("u+"))return ve(String.fromCharCode(...g.slice(2).split("-").map(U=>parseInt(U,16))));const h=lt.exec(g);if(!h)throw new Error(`Invalid param: ${g}. Params and matcher names can only have underscores and alphanumeric characters.`);const[,x,j,S,N]=h;return o.push({name:S,matcher:N,optional:!!x,rest:!!j,chained:j?m===1&&E[0]==="":!1}),j?"(.*?)":x?"([^/]*)?":"([^/]+?)"}return ve(g)}).join("")}).join("")}/?$`),params:o}}function ut(n){return!/^\([^)]+\)$/.test(n)}function dt(n){return n.slice(1).split("/").filter(ut)}function pt(n,o,d){const s={},u=n.slice(1),f=u.filter(l=>l!==void 0);let E=0;for(let l=0;lh).join("/"),E=0),m===void 0){g.rest&&(s[g.name]="");continue}if(!g.matcher||d[g.matcher](m)){s[g.name]=m;const h=o[l+1],x=u[l+1];h&&!h.rest&&h.optional&&x&&g.chained&&(E=0),!h&&!x&&Object.keys(s).length===f.length&&(E=0);continue}if(g.optional&&g.chained){E++;continue}return}if(!E)return s}function ve(n){return n.normalize().replace(/[[\]]/g,"\\$&").replace(/%/g,"%25").replace(/\//g,"%2[Ff]").replace(/\?/g,"%3[Ff]").replace(/#/g,"%23").replace(/[.*+?^${}()|\\]/g,"\\$&")}function ht({nodes:n,server_loads:o,dictionary:d,matchers:s}){const u=new Set(o);return Object.entries(d).map(([l,[g,m,h]])=>{const{pattern:x,params:j}=ft(l),S={id:l,exec:N=>{const U=x.exec(N);if(U)return pt(U,j,s)},errors:[1,...h||[]].map(N=>n[N]),layouts:[0,...m||[]].map(E),leaf:f(g)};return S.errors.length=S.layouts.length=Math.max(S.errors.length,S.layouts.length),S});function f(l){const g=l<0;return g&&(l=~l),[g,n[l]]}function E(l){return l===void 0?l:[u.has(l),n[l]]}}function ze(n){try{return JSON.parse(sessionStorage[n])}catch{}}function qe(n,o){const d=JSON.stringify(o);try{sessionStorage[n]=d}catch{}}const gt=-1,mt=-2,wt=-3,_t=-4,yt=-5,vt=-6;function bt(n,o){if(typeof n=="number")return u(n,!0);if(!Array.isArray(n)||n.length===0)throw new Error("Invalid input");const d=n,s=Array(d.length);function u(f,E=!1){if(f===gt)return;if(f===wt)return NaN;if(f===_t)return 1/0;if(f===yt)return-1/0;if(f===vt)return-0;if(E)throw new Error("Invalid input");if(f in s)return s[f];const l=d[f];if(!l||typeof l!="object")s[f]=l;else if(Array.isArray(l))if(typeof l[0]=="string"){const g=l[0],m=o==null?void 0:o[g];if(m)return s[f]=m(u(l[1]));switch(g){case"Date":s[f]=new Date(l[1]);break;case"Set":const h=new Set;s[f]=h;for(let S=1;So!=null)}const Je=new Set(["load","prerender","csr","ssr","trailingSlash","config"]);[...Je];const kt=new Set([...Je]);[...kt];async function St(n){var o;for(const d in n)if(typeof((o=n[d])==null?void 0:o.then)=="function")return Object.fromEntries(await Promise.all(Object.entries(n).map(async([s,u])=>[s,await u])));return n}const Rt="x-sveltekit-invalidated",At="x-sveltekit-trailing-slash",z=ze(Be)??{},ee=ze(Ge)??{};function be(n){z[n]=te()}function It(n,o){var Ne;const d=ht(n),s=n.nodes[0],u=n.nodes[1];s(),u();const f=document.documentElement,E=[],l=[];let g=null;const m={before_navigate:[],on_navigate:[],after_navigate:[]};let h={branch:[],error:null,url:null},x=!1,j=!1,S=!0,N=!1,U=!1,H=!1,B=!1,V,D=(Ne=history.state)==null?void 0:Ne[M];D||(D=Date.now(),history.replaceState({...history.state,[M]:D},"",location.href));const fe=z[D];fe&&(history.scrollRestoration="manual",scrollTo(fe.x,fe.y));let q,J,Y;async function Se(){if(Y=Y||Promise.resolve(),await Y,!Y)return;Y=null;const e=new URL(location.href),i=Z(e,!0);g=null;const t=J={},r=i&&await pe(i);if(t===J&&r){if(r.type==="redirect")return re(new URL(r.location,e).href,{},1,t);r.props.page!==void 0&&(q=r.props.page),V.$set(r.props)}}function Re(e){l.some(i=>i==null?void 0:i.snapshot)&&(ee[e]=l.map(i=>{var t;return(t=i==null?void 0:i.snapshot)==null?void 0:t.capture()}))}function Ae(e){var i;(i=ee[e])==null||i.forEach((t,r)=>{var a,c;(c=(a=l[r])==null?void 0:a.snapshot)==null||c.restore(t)})}function Ie(){be(D),qe(Be,z),Re(D),qe(Ge,ee)}async function re(e,{noScroll:i=!1,replaceState:t=!1,keepFocus:r=!1,state:a={},invalidateAll:c=!1},p,v){return typeof e=="string"&&(e=new URL(e,De(document))),ce({url:e,scroll:i?te():null,keepfocus:r,redirect_count:p,details:{state:a,replaceState:t},nav_token:v,accepted:()=>{c&&(B=!0)},blocked:()=>{},type:"goto"})}async function Le(e){return g={id:e.id,promise:pe(e).then(i=>(i.type==="loaded"&&i.state.error&&(g=null),i))},g.promise}async function oe(...e){const t=d.filter(r=>e.some(a=>r.exec(a))).map(r=>Promise.all([...r.layouts,r.leaf].map(a=>a==null?void 0:a[1]())));await Promise.all(t)}function Pe(e){var r;h=e.state;const i=document.querySelector("style[data-sveltekit]");i&&i.remove(),q=e.props.page,V=new n.root({target:o,props:{...e.props,stores:F,components:l},hydrate:!0}),Ae(D);const t={from:null,to:{params:h.params,route:{id:((r=h.route)==null?void 0:r.id)??null},url:new URL(location.href)},willUnload:!1,type:"enter",complete:Promise.resolve()};m.after_navigate.forEach(a=>a(t)),j=!0}async function X({url:e,params:i,branch:t,status:r,error:a,route:c,form:p}){let v="never";for(const _ of t)(_==null?void 0:_.slash)!==void 0&&(v=_.slash);e.pathname=Ze(e.pathname,v),e.search=e.search;const b={type:"loaded",state:{url:e,params:i,branch:t,error:a,route:c},props:{constructors:Et(t).map(_=>_.node.component)}};p!==void 0&&(b.props.form=p);let y={},L=!q,A=0;for(let _=0;_(v.route=!0,w[O])}),params:new Proxy(r,{get:(w,O)=>(v.params.add(O),w[O])}),data:(c==null?void 0:c.data)??null,url:nt(t,()=>{v.url=!0}),async fetch(w,O){let T;w instanceof Request?(T=w.url,O={body:w.method==="GET"||w.method==="HEAD"?void 0:await w.blob(),cache:w.cache,credentials:w.credentials,headers:w.headers,integrity:w.integrity,keepalive:w.keepalive,method:w.method,mode:w.mode,redirect:w.redirect,referrer:w.referrer,referrerPolicy:w.referrerPolicy,signal:w.signal,...O}):T=w;const C=new URL(T,t);return P(C.href),C.origin===t.origin&&(T=C.href.slice(t.origin.length)),j?ct(T,C.href,O):st(T,O)},setHeaders:()=>{},depends:P,parent(){return v.parent=!0,i()}};p=await b.universal.load.call(null,_)??null,p=p?await St(p):null}return{node:b,loader:e,server:c,universal:(L=b.universal)!=null&&L.load?{type:"data",data:p,uses:v}:null,data:p??(c==null?void 0:c.data)??null,slash:((A=b.universal)==null?void 0:A.trailingSlash)??(c==null?void 0:c.slash)}}function Oe(e,i,t,r,a){if(B)return!0;if(!r)return!1;if(r.parent&&e||r.route&&i||r.url&&t)return!0;for(const c of r.params)if(a[c]!==h.params[c])return!0;for(const c of r.dependencies)if(E.some(p=>p(new URL(c))))return!0;return!1}function de(e,i){return(e==null?void 0:e.type)==="data"?e:(e==null?void 0:e.type)==="skip"?i??null:null}async function pe({id:e,invalidating:i,url:t,params:r,route:a}){if((g==null?void 0:g.id)===e)return g.promise;const{errors:c,layouts:p,leaf:v}=a,b=[...p,v];c.forEach(k=>k==null?void 0:k().catch(()=>{})),b.forEach(k=>k==null?void 0:k[1]().catch(()=>{}));let y=null;const L=h.url?e!==h.url.pathname+h.url.search:!1,A=h.route?a.id!==h.route.id:!1;let P=!1;const _=b.map((k,I)=>{var G;const R=h.branch[I],$=!!(k!=null&&k[0])&&((R==null?void 0:R.loader)!==k[1]||Oe(P,A,L,(G=R.server)==null?void 0:G.uses,r));return $&&(P=!0),$});if(_.some(Boolean)){try{y=await Fe(t,_)}catch(k){return ie({status:k instanceof ne?k.status:500,error:await Q(k,{url:t,params:r,route:{id:a.id}}),url:t,route:a})}if(y.type==="redirect")return y}const w=y==null?void 0:y.nodes;let O=!1;const T=b.map(async(k,I)=>{var he;if(!k)return;const R=h.branch[I],$=w==null?void 0:w[I];if((!$||$.type==="skip")&&k[1]===(R==null?void 0:R.loader)&&!Oe(O,A,L,(he=R.universal)==null?void 0:he.uses,r))return R;if(O=!0,($==null?void 0:$.type)==="error")throw $;return ue({loader:k[1],url:t,params:r,route:a,parent:async()=>{var $e;const Te={};for(let ge=0;ge{});const C=[];for(let k=0;kPromise.resolve({}),server_data_node:de(c)}),b={node:await u(),loader:u,universal:null,server:null,data:null};return await X({url:t,params:a,branch:[v,b],status:e,error:i,route:null})}function Z(e,i){if(ye(e,K))return;const t=se(e);for(const r of d){const a=r.exec(t);if(a)return{id:e.pathname+e.search,invalidating:i,route:r,params:et(a),url:e}}}function se(e){return Qe(e.pathname.slice(K.length)||"/")}function xe({url:e,type:i,intent:t,delta:r}){let a=!1;const c=He(h,t,e,i);r!==void 0&&(c.navigation.delta=r);const p={...c.navigation,cancel:()=>{a=!0,c.reject(new Error("navigation was cancelled"))}};return U||m.before_navigate.forEach(v=>v(p)),a?null:c}async function ce({url:e,scroll:i,keepfocus:t,redirect_count:r,details:a,type:c,delta:p,nav_token:v={},accepted:b,blocked:y}){var T,C,k;const L=Z(e,!1),A=xe({url:e,type:c,delta:p,intent:L});if(!A){y();return}const P=D;b(),U=!0,j&&F.navigating.set(A.navigation),J=v;let _=L&&await pe(L);if(!_){if(ye(e,K))return await W(e);_=await je(e,{id:null},await Q(new Error(`Not found: ${e.pathname}`),{url:e,params:{},route:{id:null}}),404)}if(e=(L==null?void 0:L.url)||e,J!==v)return A.reject(new Error("navigation was aborted")),!1;if(_.type==="redirect")if(r>=20)_=await ie({status:500,error:await Q(new Error("Redirect loop"),{url:e,params:{},route:{id:null}}),url:e,route:{id:null}});else return re(new URL(_.location,e).href,{},r+1,v),!1;else((T=_.props.page)==null?void 0:T.status)>=400&&await F.updated.check()&&await W(e);if(E.length=0,B=!1,N=!0,be(P),Re(P),(C=_.props.page)!=null&&C.url&&_.props.page.url.pathname!==e.pathname&&(e.pathname=(k=_.props.page)==null?void 0:k.url.pathname),a){const I=a.replaceState?0:1;if(a.state[M]=D+=I,history[a.replaceState?"replaceState":"pushState"](a.state,"",e),!a.replaceState){let R=D+1;for(;ee[R]||z[R];)delete ee[R],delete z[R],R+=1}}if(g=null,j){h=_.state,_.props.page&&(_.props.page.url=e);const I=(await Promise.all(m.on_navigate.map(R=>R(A.navigation)))).filter(R=>typeof R=="function");if(I.length>0){let R=function(){m.after_navigate=m.after_navigate.filter($=>!I.includes($))};I.push(R),m.after_navigate.push(...I)}V.$set(_.props)}else Pe(_);const{activeElement:w}=document;if(await we(),S){const I=e.hash&&document.getElementById(decodeURIComponent(e.hash.slice(1)));i?scrollTo(i.x,i.y):I?I.scrollIntoView():scrollTo(0,0)}const O=document.activeElement!==w&&document.activeElement!==document.body;!t&&!O&&Ee(),S=!0,_.props.page&&(q=_.props.page),U=!1,c==="popstate"&&Ae(D),A.fulfil(void 0),m.after_navigate.forEach(I=>I(A.navigation)),F.navigating.set(null),N=!1}async function je(e,i,t,r){return e.origin===location.origin&&e.pathname===location.pathname&&!x?await ie({status:r,error:t,url:e,route:i}):await W(e)}function W(e){return location.href=e.href,new Promise(()=>{})}function Ye(){let e;f.addEventListener("mousemove",c=>{const p=c.target;clearTimeout(e),e=setTimeout(()=>{r(p,2)},20)});function i(c){r(c.composedPath()[0],1)}f.addEventListener("mousedown",i),f.addEventListener("touchstart",i,{passive:!0});const t=new IntersectionObserver(c=>{for(const p of c)p.isIntersecting&&(oe(se(new URL(p.target.href))),t.unobserve(p.target))},{threshold:0});function r(c,p){const v=Ce(c,f);if(!v)return;const{url:b,external:y,download:L}=_e(v,K);if(y||L)return;const A=le(v);if(!A.reload)if(p<=A.preload_data){const P=Z(b,!1);P&&Le(P)}else p<=A.preload_code&&oe(se(b))}function a(){t.disconnect();for(const c of f.querySelectorAll("a")){const{url:p,external:v,download:b}=_e(c,K);if(v||b)continue;const y=le(c);y.reload||(y.preload_code===Me.viewport&&t.observe(c),y.preload_code===Me.eager&&oe(se(p)))}}m.after_navigate.push(a),a()}function Q(e,i){return e instanceof ne?e.body:n.hooks.handleError({error:e,event:i})??{message:i.route.id!=null?"Internal Error":"Not Found"}}return{after_navigate:e=>{me(()=>(m.after_navigate.push(e),()=>{const i=m.after_navigate.indexOf(e);m.after_navigate.splice(i,1)}))},before_navigate:e=>{me(()=>(m.before_navigate.push(e),()=>{const i=m.before_navigate.indexOf(e);m.before_navigate.splice(i,1)}))},on_navigate:e=>{me(()=>(m.on_navigate.push(e),()=>{const i=m.on_navigate.indexOf(e);m.on_navigate.splice(i,1)}))},disable_scroll_handling:()=>{(N||!j)&&(S=!1)},goto:(e,i={})=>re(e,i,0),invalidate:e=>{if(typeof e=="function")E.push(e);else{const{href:i}=new URL(e,location.href);E.push(t=>t.href===i)}return Se()},invalidate_all:()=>(B=!0,Se()),preload_data:async e=>{const i=new URL(e,De(document)),t=Z(i,!1);if(!t)throw new Error(`Attempted to preload a URL that does not belong to this app: ${i}`);await Le(t)},preload_code:oe,apply_action:async e=>{if(e.type==="error"){const i=new URL(location.href),{branch:t,route:r}=h;if(!r)return;const a=await Ue(h.branch.length,t,r.errors);if(a){const c=await X({url:i,params:h.params,branch:t.slice(0,a.idx).concat(a.node),status:e.status??500,error:e.error,route:r});h=c.state,V.$set(c.props),we().then(Ee)}}else e.type==="redirect"?re(e.location,{invalidateAll:!0},0):(V.$set({form:null,page:{...q,form:e.data,status:e.status}}),await we(),V.$set({form:e.data}),e.type==="success"&&Ee())},_start_router:()=>{var i;history.scrollRestoration="manual",addEventListener("beforeunload",t=>{let r=!1;if(Ie(),!U){const a=He(h,void 0,null,"leave"),c={...a.navigation,cancel:()=>{r=!0,a.reject(new Error("navigation was cancelled"))}};m.before_navigate.forEach(p=>p(c))}r?(t.preventDefault(),t.returnValue=""):history.scrollRestoration="auto"}),addEventListener("visibilitychange",()=>{document.visibilityState==="hidden"&&Ie()}),(i=navigator.connection)!=null&&i.saveData||Ye(),f.addEventListener("click",t=>{var P;if(t.button||t.which!==1||t.metaKey||t.ctrlKey||t.shiftKey||t.altKey||t.defaultPrevented)return;const r=Ce(t.composedPath()[0],f);if(!r)return;const{url:a,external:c,target:p,download:v}=_e(r,K);if(!a)return;if(p==="_parent"||p==="_top"){if(window.parent!==window)return}else if(p&&p!=="_self")return;const b=le(r);if(!(r instanceof SVGAElement)&&a.protocol!==location.protocol&&!(a.protocol==="https:"||a.protocol==="http:")||v)return;if(c||b.reload){xe({url:a,type:"link"})?U=!0:t.preventDefault();return}const[L,A]=a.href.split("#");if(A!==void 0&&L===location.href.split("#")[0]){if(h.url.hash===a.hash){t.preventDefault(),(P=r.ownerDocument.getElementById(A))==null||P.scrollIntoView();return}if(H=!0,be(D),e(a),!b.replace_state)return;H=!1,t.preventDefault()}ce({url:a,scroll:b.noscroll?te():null,keepfocus:b.keep_focus??!1,redirect_count:0,details:{state:{},replaceState:b.replace_state??a.href===location.href},accepted:()=>t.preventDefault(),blocked:()=>t.preventDefault(),type:"link"})}),f.addEventListener("submit",t=>{if(t.defaultPrevented)return;const r=HTMLFormElement.prototype.cloneNode.call(t.target),a=t.submitter;if(((a==null?void 0:a.formMethod)||r.method)!=="get")return;const p=new URL((a==null?void 0:a.hasAttribute("formaction"))&&(a==null?void 0:a.formAction)||r.action);if(ye(p,K))return;const v=t.target,{keep_focus:b,noscroll:y,reload:L,replace_state:A}=le(v);if(L)return;t.preventDefault(),t.stopPropagation();const P=new FormData(v),_=a==null?void 0:a.getAttribute("name");_&&P.append(_,(a==null?void 0:a.getAttribute("value"))??""),p.search=new URLSearchParams(P).toString(),ce({url:p,scroll:y?te():null,keepfocus:b??!1,redirect_count:0,details:{state:{},replaceState:A??p.href===location.href},nav_token:{},accepted:()=>{},blocked:()=>{},type:"form"})}),addEventListener("popstate",async t=>{var r;if(J={},(r=t.state)!=null&&r[M]){if(t.state[M]===D)return;const a=z[t.state[M]],c=new URL(location.href);if(h.url.href.split("#")[0]===location.href.split("#")[0]){e(c),z[D]=te(),D=t.state[M],scrollTo(a.x,a.y);return}const p=t.state[M]-D;await ce({url:c,scroll:a,keepfocus:!1,redirect_count:0,details:null,accepted:()=>{D=t.state[M]},blocked:()=>{history.go(-p)},type:"popstate",delta:p,nav_token:J})}else if(!H){const a=new URL(location.href);e(a)}}),addEventListener("hashchange",()=>{H&&(H=!1,history.replaceState({...history.state,[M]:++D},"",location.href))});for(const t of document.querySelectorAll("link"))t.rel==="icon"&&(t.href=t.href);addEventListener("pageshow",t=>{t.persisted&&F.navigating.set(null)});function e(t){h.url=t,F.page.set({...q,url:t}),F.page.notify()}},_hydrate:async({status:e=200,error:i,node_ids:t,params:r,route:a,data:c,form:p})=>{x=!0;const v=new URL(location.href);({params:r={},route:a={id:null}}=Z(v,!1)||{});let b;try{const y=t.map(async(P,_)=>{const w=c[_];return w!=null&&w.uses&&(w.uses=We(w.uses)),ue({loader:n.nodes[P],url:v,params:r,route:a,parent:async()=>{const O={};for(let T=0;T<_;T+=1)Object.assign(O,(await y[T]).data);return O},server_data_node:de(w)})}),L=await Promise.all(y),A=d.find(({id:P})=>P===a.id);if(A){const P=A.layouts;for(let _=0;_u?"1":"0").join(""));const s=await Ke(d.href);if(!s.ok)throw new ne(s.status,await s.json());return new Promise(async u=>{var h;const f=new Map,E=s.body.getReader(),l=new TextDecoder;function g(x){return bt(x,{Promise:j=>new Promise((S,N)=>{f.set(j,{fulfil:S,reject:N})})})}let m="";for(;;){const{done:x,value:j}=await E.read();if(x&&!m)break;for(m+=!j&&m?` `:l.decode(j);;){const S=m.indexOf(` `);if(S===-1)break;const N=JSON.parse(m.slice(0,S));if(m=m.slice(S+1),N.type==="redirect")return u(N);if(N.type==="data")(h=N.nodes)==null||h.forEach(U=>{(U==null?void 0:U.type)==="data"&&(U.uses=We(U.uses),U.data=g(U.data))}),u(N);else if(N.type==="chunk"){const{id:U,data:H,error:B}=N,V=f.get(U);f.delete(U),B?V.reject(g(B)):V.fulfil(g(H))}}}})}function We(n){return{dependencies:new Set((n==null?void 0:n.dependencies)??[]),params:new Set((n==null?void 0:n.params)??[]),parent:!!(n!=null&&n.parent),route:!!(n!=null&&n.route),url:!!(n!=null&&n.url)}}function Ee(){const n=document.querySelector("[autofocus]");if(n)n.focus();else{const o=document.body,d=o.getAttribute("tabindex");o.tabIndex=-1,o.focus({preventScroll:!0,focusVisible:!1}),d!==null?o.setAttribute("tabindex",d):o.removeAttribute("tabindex");const s=getSelection();if(s&&s.type!=="None"){const u=[];for(let f=0;f{if(s.rangeCount===u.length){for(let f=0;f{u=h,f=x});return E.catch(()=>{}),{navigation:{from:{params:n.params,route:{id:((g=n.route)==null?void 0:g.id)??null},url:n.url},to:d&&{params:(o==null?void 0:o.params)??null,route:{id:((m=o==null?void 0:o.route)==null?void 0:m.id)??null},url:d},willUnload:!o,type:s,complete:E},fulfil:u,reject:f}}async function xt(n,o,d){const s=It(n,o);Xe({client:s}),d?await s._hydrate(d):s.goto(location.href,{replaceState:!0}),s._start_router()}export{xt as start}; diff --git a/ui/assets/local/_app/immutable/nodes/1.92a017e0.js b/ui/assets/local/_app/immutable/nodes/1.080cfce7.js similarity index 86% rename from ui/assets/local/_app/immutable/nodes/1.92a017e0.js rename to ui/assets/local/_app/immutable/nodes/1.080cfce7.js index fa5b71f046..95a995119d 100644 --- a/ui/assets/local/_app/immutable/nodes/1.92a017e0.js +++ b/ui/assets/local/_app/immutable/nodes/1.080cfce7.js @@ -1 +1 @@ -import{S as i,b as p,a as c,C as u,D as f,E as _,j as g,g as l,F as $,K as E}from"../chunks/index.4e2fcbc7.js";/* empty css */import{p as d}from"../chunks/stores.14a97433.js";import{E as h}from"../chunks/error.2e6962d0.js";import{i as b}from"../chunks/is-network-error.e7e518bc.js";import{p as y}from"../chunks/parse-with-big-int.0036a80a.js";function C(e){let t,o;return t=new h({props:{error:e[1],status:e[0]}}),{c(){u(t.$$.fragment)},l(r){f(t.$$.fragment,r)},m(r,s){_(t,r,s),o=!0},p(r,[s]){const n={};s&2&&(n.error=r[1]),s&1&&(n.status=r[0]),t.$set(n)},i(r){o||(g(t.$$.fragment,r),o=!0)},o(r){l(t.$$.fragment,r),o=!1},d(r){$(t,r)}}}function q(e,t,o){let r,s,n;E(e,d,m=>o(2,n=m));let a;try{a=y(r.message),b(a)&&(s=a.statusCode)}catch(m){console.error(m)}return e.$$.update=()=>{e.$$.dirty&4&&o(1,r=n.error),e.$$.dirty&4&&o(0,s=n.status)},[s,r,n]}class A extends i{constructor(t){super(),p(this,t,q,C,c,{})}}export{A as component}; +import{S as i,b as p,a as c,C as u,D as f,E as _,j as g,g as l,F as $,K as E}from"../chunks/index.4e2fcbc7.js";/* empty css */import{p as d}from"../chunks/stores.0e7b7e35.js";import{E as h}from"../chunks/error.63c227df.js";import{i as b}from"../chunks/is-network-error.e7e518bc.js";import{p as y}from"../chunks/parse-with-big-int.0036a80a.js";function C(e){let t,o;return t=new h({props:{error:e[1],status:e[0]}}),{c(){u(t.$$.fragment)},l(r){f(t.$$.fragment,r)},m(r,s){_(t,r,s),o=!0},p(r,[s]){const n={};s&2&&(n.error=r[1]),s&1&&(n.status=r[0]),t.$set(n)},i(r){o||(g(t.$$.fragment,r),o=!0)},o(r){l(t.$$.fragment,r),o=!1},d(r){$(t,r)}}}function q(e,t,o){let r,s,n;E(e,d,m=>o(2,n=m));let a;try{a=y(r.message),b(a)&&(s=a.statusCode)}catch(m){console.error(m)}return e.$$.update=()=>{e.$$.dirty&4&&o(1,r=n.error),e.$$.dirty&4&&o(0,s=n.status)},[s,r,n]}class A extends i{constructor(t){super(),p(this,t,q,C,c,{})}}export{A as component}; diff --git a/ui/assets/local/_app/immutable/nodes/10.1dca8499.js b/ui/assets/local/_app/immutable/nodes/10.c0846b08.js similarity index 80% rename from ui/assets/local/_app/immutable/nodes/10.1dca8499.js rename to ui/assets/local/_app/immutable/nodes/10.c0846b08.js index 7b7c5f6b2d..1234beed31 100644 --- a/ui/assets/local/_app/immutable/nodes/10.1dca8499.js +++ b/ui/assets/local/_app/immutable/nodes/10.c0846b08.js @@ -1 +1 @@ -import{r as u}from"../chunks/index.3158323b.js";import{a as l,l as m}from"../chunks/route-for.80613b91.js";import{S as f,b as p,a as d,C as g,D as _,E as b,n as h,j as w,g as y,F as N,K as C,o as S}from"../chunks/index.4e2fcbc7.js";import{g as c}from"../chunks/navigation.10919bcf.js";import{L as $}from"../chunks/loading.95801385.js";import{d as F}from"../chunks/workflow-service.4d66b505.js";import{l as j}from"../chunks/namespaces.85dd397c.js";const v=async({parent:s})=>{var o,r;const t=await s(),a=(o=t==null?void 0:t.settings)==null?void 0:o.defaultNamespace;if((r=t.settings.runtimeEnvironment)==null?void 0:r.isCloud)throw u(302,l({namespace:a}));return{defaultNamespace:a}},U=Object.freeze(Object.defineProperty({__proto__:null,load:v},Symbol.toStringTag,{value:"Module"}));function x(s){let t,a;return t=new $({}),{c(){g(t.$$.fragment)},l(e){_(t.$$.fragment,e)},m(e,o){b(t,e,o),a=!0},p:h,i(e){a||(w(t.$$.fragment,e),a=!0)},o(e){y(t.$$.fragment,e),a=!1},d(e){N(t,e)}}}function z(s,t,a){let e;C(s,j,n=>a(1,e=n));let{data:o}=t,{defaultNamespace:r}=o;const i=e&&e!=="default"?e:r;return S(async()=>{try{const{authorized:n}=await F(i);n?c(l({namespace:i})):c(m())}catch{c(m())}}),s.$$set=n=>{"data"in n&&a(0,o=n.data)},[o]}class W extends f{constructor(t){super(),p(this,t,z,x,d,{data:0})}}export{W as component,U as universal}; +import{r as u}from"../chunks/index.3158323b.js";import{a as l,l as m}from"../chunks/route-for.084c7a46.js";import{S as f,b as p,a as d,C as g,D as _,E as b,n as h,j as w,g as y,F as N,K as C,o as S}from"../chunks/index.4e2fcbc7.js";import{g as c}from"../chunks/navigation.b77a045a.js";import{L as $}from"../chunks/loading.95801385.js";import{d as F}from"../chunks/workflow-service.e2f4a06b.js";import{l as j}from"../chunks/namespaces.c82b5451.js";const v=async({parent:s})=>{var o,r;const t=await s(),a=(o=t==null?void 0:t.settings)==null?void 0:o.defaultNamespace;if((r=t.settings.runtimeEnvironment)==null?void 0:r.isCloud)throw u(302,l({namespace:a}));return{defaultNamespace:a}},U=Object.freeze(Object.defineProperty({__proto__:null,load:v},Symbol.toStringTag,{value:"Module"}));function x(s){let t,a;return t=new $({}),{c(){g(t.$$.fragment)},l(e){_(t.$$.fragment,e)},m(e,o){b(t,e,o),a=!0},p:h,i(e){a||(w(t.$$.fragment,e),a=!0)},o(e){y(t.$$.fragment,e),a=!1},d(e){N(t,e)}}}function z(s,t,a){let e;C(s,j,n=>a(1,e=n));let{data:o}=t,{defaultNamespace:r}=o;const i=e&&e!=="default"?e:r;return S(async()=>{try{const{authorized:n}=await F(i);n?c(l({namespace:i})):c(m())}catch{c(m())}}),s.$$set=n=>{"data"in n&&a(0,o=n.data)},[o]}class W extends f{constructor(t){super(),p(this,t,z,x,d,{data:0})}}export{W as component,U as universal}; diff --git a/ui/assets/local/_app/immutable/nodes/11.49c98fba.js b/ui/assets/local/_app/immutable/nodes/11.2cfebb13.js similarity index 76% rename from ui/assets/local/_app/immutable/nodes/11.49c98fba.js rename to ui/assets/local/_app/immutable/nodes/11.2cfebb13.js index 9335cba913..6581f2a8c9 100644 --- a/ui/assets/local/_app/immutable/nodes/11.49c98fba.js +++ b/ui/assets/local/_app/immutable/nodes/11.2cfebb13.js @@ -1 +1 @@ -import{r as o}from"../chunks/index.3158323b.js";import{f as t}from"../chunks/route-for.80613b91.js";const e=async()=>{const r=t();throw o(302,r)},s=Object.freeze(Object.defineProperty({__proto__:null,load:e},Symbol.toStringTag,{value:"Module"}));export{s as universal}; +import{r as o}from"../chunks/index.3158323b.js";import{f as t}from"../chunks/route-for.084c7a46.js";const e=async()=>{const r=t();throw o(302,r)},s=Object.freeze(Object.defineProperty({__proto__:null,load:e},Symbol.toStringTag,{value:"Module"}));export{s as universal}; diff --git a/ui/assets/local/_app/immutable/nodes/12.0cefefa6.js b/ui/assets/local/_app/immutable/nodes/12.c42820d5.js similarity index 96% rename from ui/assets/local/_app/immutable/nodes/12.0cefefa6.js rename to ui/assets/local/_app/immutable/nodes/12.c42820d5.js index 2cc9d171ea..2ad8e73a5b 100644 --- a/ui/assets/local/_app/immutable/nodes/12.0cefefa6.js +++ b/ui/assets/local/_app/immutable/nodes/12.c42820d5.js @@ -1 +1 @@ -import{S as et,b as st,a as nt,m as l,w as N,c as w,C,p as m,q as f,x as O,k as i,d as H,D,u as o,f as rt,L as r,E as S,j as T,g as V,F as L,n as at}from"../chunks/index.4e2fcbc7.js";import{E as ot}from"../chunks/event-history-file-import.45952db8.js";import{C as Z}from"../chunks/code-block.d389dfc4.js";import{L as it}from"../chunks/link.6803bb00.js";import{t as $}from"../chunks/translate.d23a91ae.js";import{s as tt}from"../chunks/parse-with-big-int.0036a80a.js";function ct(v){let t=$("events.api-history-link")+"",s;return{c(){s=N(t)},l(e){s=O(e,t)},m(e,b){rt(e,s,b)},p:at,d(e){e&&i(s)}}}function lt(v){let t,s,e,b=$("events.import-event-history")+"",A,B,E,h,F,a,x,P,W,I,p,z,k,M=$("events.history-expected-formats")+"",G,J,u,g,K,_,j;return h=new ot({}),p=new it({props:{target:"_blank",href:"https://github.com/temporalio/api/blob/1cd0ac0bbd8e71c7bfc9fe1900c678b432e66e5b/temporal/api/history/v1/message.proto",class:"mb-8",$$slots:{default:[ct]},$$scope:{ctx:v}}}),g=new Z({props:{content:tt(v[0]),inline:!0,copyIconTitle:$("common.copy-icon-title"),copySuccessIconTitle:$("common.copy-success-icon-title")}}),_=new Z({props:{content:tt(mt),inline:!0,copyIconTitle:$("common.copy-icon-title"),copySuccessIconTitle:$("common.copy-success-icon-title")}}),{c(){t=l("section"),s=l("nav"),e=l("h1"),A=N(b),B=w(),E=l("div"),C(h.$$.fragment),F=w(),a=l("div"),x=l("code"),P=N("type HistoryEvent = temporal.api.history.v1.IHistoryEvent"),W=w(),I=l("div"),C(p.$$.fragment),z=w(),k=l("h2"),G=N(M),J=w(),u=l("div"),C(g.$$.fragment),K=w(),C(_.$$.fragment),this.h()},l(n){t=m(n,"SECTION",{class:!0});var c=f(t);s=m(c,"NAV",{id:!0,class:!0,"aria-label":!0});var y=f(s);e=m(y,"H1",{class:!0,"data-testid":!0});var Q=f(e);A=O(Q,b),Q.forEach(i),B=H(y),E=m(y,"DIV",{class:!0});var R=f(E);D(h.$$.fragment,R),R.forEach(i),y.forEach(i),F=H(c),a=m(c,"DIV",{class:!0});var d=f(a);x=m(d,"CODE",{class:!0});var U=f(x);P=O(U,"type HistoryEvent = temporal.api.history.v1.IHistoryEvent"),U.forEach(i),W=H(d),I=m(d,"DIV",{class:!0});var X=f(I);D(p.$$.fragment,X),X.forEach(i),z=H(d),k=m(d,"H2",{class:!0});var Y=f(k);G=O(Y,M),Y.forEach(i),J=H(d),u=m(d,"DIV",{class:!0});var q=f(u);D(g.$$.fragment,q),K=H(q),D(_.$$.fragment,q),q.forEach(i),d.forEach(i),c.forEach(i),this.h()},h(){o(e,"class","text-lg font-medium"),o(e,"data-testid","import-event-history"),o(E,"class","flex gap-4"),o(s,"id","event-history"),o(s,"class","block items-center justify-between gap-4 pb-4 lg:flex"),o(s,"aria-label",$("events.import-event-history")),o(x,"class","text-md bg-gray-200 p-2 font-medium"),o(I,"class","mt-4"),o(k,"class","mt-8 text-lg font-medium"),o(u,"class","h-40 text-center"),o(a,"class","w-full md:w-1/2"),o(t,"class","flex flex-col gap-4")},m(n,c){rt(n,t,c),r(t,s),r(s,e),r(e,A),r(s,B),r(s,E),S(h,E,null),r(t,F),r(t,a),r(a,x),r(x,P),r(a,W),r(a,I),S(p,I,null),r(a,z),r(a,k),r(k,G),r(a,J),r(a,u),S(g,u,null),r(u,K),S(_,u,null),j=!0},p(n,[c]){const y={};c&2&&(y.$$scope={dirty:c,ctx:n}),p.$set(y)},i(n){j||(T(h.$$.fragment,n),T(p.$$.fragment,n),T(g.$$.fragment,n),T(_.$$.fragment,n),j=!0)},o(n){V(h.$$.fragment,n),V(p.$$.fragment,n),V(g.$$.fragment,n),V(_.$$.fragment,n),j=!1},d(n){n&&i(t),L(h),L(p),L(g),L(_)}}}const mt="HistoryEvent[]";function ft(v){return[{events:"HistoryEvent[]"}]}class pt extends et{constructor(t){super(),st(this,t,ft,lt,nt,{})}}function ut(v){let t,s;return t=new pt({}),{c(){C(t.$$.fragment)},l(e){D(t.$$.fragment,e)},m(e,b){S(t,e,b),s=!0},p:at,i(e){s||(T(t.$$.fragment,e),s=!0)},o(e){V(t.$$.fragment,e),s=!1},d(e){L(t,e)}}}class yt extends et{constructor(t){super(),st(this,t,null,ut,nt,{})}}export{yt as component}; +import{S as et,b as st,a as nt,m as l,w as N,c as w,C,p as m,q as f,x as O,k as i,d as H,D,u as o,f as rt,L as r,E as S,j as T,g as V,F as L,n as at}from"../chunks/index.4e2fcbc7.js";import{E as ot}from"../chunks/event-history-file-import.e962a52b.js";import{C as Z}from"../chunks/code-block.55adac36.js";import{L as it}from"../chunks/link.6803bb00.js";import{t as $}from"../chunks/translate.d23a91ae.js";import{s as tt}from"../chunks/parse-with-big-int.0036a80a.js";function ct(v){let t=$("events.api-history-link")+"",s;return{c(){s=N(t)},l(e){s=O(e,t)},m(e,b){rt(e,s,b)},p:at,d(e){e&&i(s)}}}function lt(v){let t,s,e,b=$("events.import-event-history")+"",A,B,E,h,F,a,x,P,W,I,p,z,k,M=$("events.history-expected-formats")+"",G,J,u,g,K,_,j;return h=new ot({}),p=new it({props:{target:"_blank",href:"https://github.com/temporalio/api/blob/1cd0ac0bbd8e71c7bfc9fe1900c678b432e66e5b/temporal/api/history/v1/message.proto",class:"mb-8",$$slots:{default:[ct]},$$scope:{ctx:v}}}),g=new Z({props:{content:tt(v[0]),inline:!0,copyIconTitle:$("common.copy-icon-title"),copySuccessIconTitle:$("common.copy-success-icon-title")}}),_=new Z({props:{content:tt(mt),inline:!0,copyIconTitle:$("common.copy-icon-title"),copySuccessIconTitle:$("common.copy-success-icon-title")}}),{c(){t=l("section"),s=l("nav"),e=l("h1"),A=N(b),B=w(),E=l("div"),C(h.$$.fragment),F=w(),a=l("div"),x=l("code"),P=N("type HistoryEvent = temporal.api.history.v1.IHistoryEvent"),W=w(),I=l("div"),C(p.$$.fragment),z=w(),k=l("h2"),G=N(M),J=w(),u=l("div"),C(g.$$.fragment),K=w(),C(_.$$.fragment),this.h()},l(n){t=m(n,"SECTION",{class:!0});var c=f(t);s=m(c,"NAV",{id:!0,class:!0,"aria-label":!0});var y=f(s);e=m(y,"H1",{class:!0,"data-testid":!0});var Q=f(e);A=O(Q,b),Q.forEach(i),B=H(y),E=m(y,"DIV",{class:!0});var R=f(E);D(h.$$.fragment,R),R.forEach(i),y.forEach(i),F=H(c),a=m(c,"DIV",{class:!0});var d=f(a);x=m(d,"CODE",{class:!0});var U=f(x);P=O(U,"type HistoryEvent = temporal.api.history.v1.IHistoryEvent"),U.forEach(i),W=H(d),I=m(d,"DIV",{class:!0});var X=f(I);D(p.$$.fragment,X),X.forEach(i),z=H(d),k=m(d,"H2",{class:!0});var Y=f(k);G=O(Y,M),Y.forEach(i),J=H(d),u=m(d,"DIV",{class:!0});var q=f(u);D(g.$$.fragment,q),K=H(q),D(_.$$.fragment,q),q.forEach(i),d.forEach(i),c.forEach(i),this.h()},h(){o(e,"class","text-lg font-medium"),o(e,"data-testid","import-event-history"),o(E,"class","flex gap-4"),o(s,"id","event-history"),o(s,"class","block items-center justify-between gap-4 pb-4 lg:flex"),o(s,"aria-label",$("events.import-event-history")),o(x,"class","text-md bg-gray-200 p-2 font-medium"),o(I,"class","mt-4"),o(k,"class","mt-8 text-lg font-medium"),o(u,"class","h-40 text-center"),o(a,"class","w-full md:w-1/2"),o(t,"class","flex flex-col gap-4")},m(n,c){rt(n,t,c),r(t,s),r(s,e),r(e,A),r(s,B),r(s,E),S(h,E,null),r(t,F),r(t,a),r(a,x),r(x,P),r(a,W),r(a,I),S(p,I,null),r(a,z),r(a,k),r(k,G),r(a,J),r(a,u),S(g,u,null),r(u,K),S(_,u,null),j=!0},p(n,[c]){const y={};c&2&&(y.$$scope={dirty:c,ctx:n}),p.$set(y)},i(n){j||(T(h.$$.fragment,n),T(p.$$.fragment,n),T(g.$$.fragment,n),T(_.$$.fragment,n),j=!0)},o(n){V(h.$$.fragment,n),V(p.$$.fragment,n),V(g.$$.fragment,n),V(_.$$.fragment,n),j=!1},d(n){n&&i(t),L(h),L(p),L(g),L(_)}}}const mt="HistoryEvent[]";function ft(v){return[{events:"HistoryEvent[]"}]}class pt extends et{constructor(t){super(),st(this,t,ft,lt,nt,{})}}function ut(v){let t,s;return t=new pt({}),{c(){C(t.$$.fragment)},l(e){D(t.$$.fragment,e)},m(e,b){S(t,e,b),s=!0},p:at,i(e){s||(T(t.$$.fragment,e),s=!0)},o(e){V(t.$$.fragment,e),s=!1},d(e){L(t,e)}}}class yt extends et{constructor(t){super(),st(this,t,null,ut,nt,{})}}export{yt as component}; diff --git a/ui/assets/local/_app/immutable/nodes/13.d5bef43e.js b/ui/assets/local/_app/immutable/nodes/13.c7863abf.js similarity index 77% rename from ui/assets/local/_app/immutable/nodes/13.d5bef43e.js rename to ui/assets/local/_app/immutable/nodes/13.c7863abf.js index 7ee8039c35..8157c1e18d 100644 --- a/ui/assets/local/_app/immutable/nodes/13.d5bef43e.js +++ b/ui/assets/local/_app/immutable/nodes/13.c7863abf.js @@ -1 +1 @@ -import{r as o}from"../chunks/index.3158323b.js";import{f as r}from"../chunks/route-for.80613b91.js";const t=async function(){const e=r("feed");throw o(302,e)},c=Object.freeze(Object.defineProperty({__proto__:null,load:t},Symbol.toStringTag,{value:"Module"}));export{c as universal}; +import{r as o}from"../chunks/index.3158323b.js";import{f as r}from"../chunks/route-for.084c7a46.js";const t=async function(){const e=r("feed");throw o(302,e)},c=Object.freeze(Object.defineProperty({__proto__:null,load:t},Symbol.toStringTag,{value:"Module"}));export{c as universal}; diff --git a/ui/assets/local/_app/immutable/nodes/14.e0c55cfd.js b/ui/assets/local/_app/immutable/nodes/14.f1a616a9.js similarity index 92% rename from ui/assets/local/_app/immutable/nodes/14.e0c55cfd.js rename to ui/assets/local/_app/immutable/nodes/14.f1a616a9.js index 9aec42f86a..2bf036f48e 100644 --- a/ui/assets/local/_app/immutable/nodes/14.e0c55cfd.js +++ b/ui/assets/local/_app/immutable/nodes/14.f1a616a9.js @@ -1 +1 @@ -import{S as G,b as I,a as L,C as h,D as d,E as v,j as c,g as p,F as y,K as _,a5 as P,e as $,f as C,z as b,aa as z,h as w,k as F,ab as B}from"../chunks/index.4e2fcbc7.js";import{E as N,a as j,b as q}from"../chunks/event-summary-table.f0d65a34.js";import{P as D}from"../chunks/pagination.8a23314e.js";import{t as g}from"../chunks/translate.d23a91ae.js";import{b as k,e as K}from"../chunks/event-view.56fa9b74.js";import{e as M}from"../chunks/filters.e20189d3.js";import{a as H}from"../chunks/import-events.7da68a62.js";function E(i,t,r){const e=i.slice();return e[10]=t[r],e}function S(i){let t,r;return t=new j({}),{c(){h(t.$$.fragment)},l(e){d(t.$$.fragment,e)},m(e,a){v(t,e,a),r=!0},i(e){r||(c(t.$$.fragment,e),r=!0)},o(e){p(t.$$.fragment,e),r=!1},d(e){y(t,e)}}}function A(i,t){let r,e,a;return e=new q({props:{event:t[10],compact:x,expandAll:t[1]==="true",initialItem:t[9]}}),{key:i,first:null,c(){r=$(),h(e.$$.fragment),this.h()},l(n){r=$(),d(e.$$.fragment,n),this.h()},h(){this.first=r},m(n,m){C(n,r,m),v(e,n,m),a=!0},p(n,m){t=n;const s={};m&256&&(s.event=t[10]),m&2&&(s.expandAll=t[1]==="true"),m&512&&(s.initialItem=t[9]),e.$set(s)},i(n){a||(c(e.$$.fragment,n),a=!0)},o(n){p(e.$$.fragment,n),a=!1},d(n){n&&F(r),y(e,n)}}}function J(i){let t=[],r=new Map,e,a,n=i[8];const m=o=>`${o[10].id}-${o[10].timestamp}`;for(let o=0;o{s=null}),w()):s||(s=S(),s.c(),c(s,1),s.m(e.parentNode,e)))},i(o){if(!a){for(let l=0;l({8:e,9:a}),({visibleItems:e,initialItem:a})=>(e?256:0)|(a?512:0)]},$$scope:{ctx:i}}}),{c(){h(t.$$.fragment)},l(e){d(t.$$.fragment,e)},m(e,a){v(t,e,a),r=!0},p(e,[a]){const n={};a&1&&(n.items=e[0]),a&8962&&(n.$$scope={dirty:a,ctx:e}),t.$set(n)},i(e){r||(c(t.$$.fragment,e),r=!0)},o(e){p(t.$$.fragment,e),r=!1},d(e){y(t,e)}}}let x=!0;function R(i,t,r){let e,a,n,m,s,o,l;_(i,k,f=>r(1,m=f)),_(i,H,f=>r(5,s=f)),_(i,K,f=>r(6,o=f)),_(i,M,f=>r(7,l=f));function u(f){P(k,m=f.detail.expanded,m)}return i.$$.update=()=>{i.$$.dirty&128&&r(3,e=l),i.$$.dirty&96&&r(4,a=o==="descending"?[...s].reverse():s),i.$$.dirty&24&&r(0,n=a.filter(f=>e?f.category===e:f))},[n,m,u,e,a,s,o,l]}class ee extends G{constructor(t){super(),I(this,t,R,Q,L,{})}}export{ee as component}; +import{S as G,b as I,a as L,C as h,D as d,E as v,j as c,g as p,F as y,K as _,a5 as P,e as $,f as C,z as b,aa as z,h as w,k as F,ab as B}from"../chunks/index.4e2fcbc7.js";import{E as N,a as j,b as q}from"../chunks/event-summary-table.7924858b.js";import{P as D}from"../chunks/pagination.605d1f82.js";import{t as g}from"../chunks/translate.d23a91ae.js";import{b as k,e as K}from"../chunks/event-view.50193376.js";import{e as M}from"../chunks/filters.83a38186.js";import{a as H}from"../chunks/import-events.33147d23.js";function E(i,t,r){const e=i.slice();return e[10]=t[r],e}function S(i){let t,r;return t=new j({}),{c(){h(t.$$.fragment)},l(e){d(t.$$.fragment,e)},m(e,a){v(t,e,a),r=!0},i(e){r||(c(t.$$.fragment,e),r=!0)},o(e){p(t.$$.fragment,e),r=!1},d(e){y(t,e)}}}function A(i,t){let r,e,a;return e=new q({props:{event:t[10],compact:x,expandAll:t[1]==="true",initialItem:t[9]}}),{key:i,first:null,c(){r=$(),h(e.$$.fragment),this.h()},l(n){r=$(),d(e.$$.fragment,n),this.h()},h(){this.first=r},m(n,m){C(n,r,m),v(e,n,m),a=!0},p(n,m){t=n;const s={};m&256&&(s.event=t[10]),m&2&&(s.expandAll=t[1]==="true"),m&512&&(s.initialItem=t[9]),e.$set(s)},i(n){a||(c(e.$$.fragment,n),a=!0)},o(n){p(e.$$.fragment,n),a=!1},d(n){n&&F(r),y(e,n)}}}function J(i){let t=[],r=new Map,e,a,n=i[8];const m=o=>`${o[10].id}-${o[10].timestamp}`;for(let o=0;o{s=null}),w()):s||(s=S(),s.c(),c(s,1),s.m(e.parentNode,e)))},i(o){if(!a){for(let l=0;l({8:e,9:a}),({visibleItems:e,initialItem:a})=>(e?256:0)|(a?512:0)]},$$scope:{ctx:i}}}),{c(){h(t.$$.fragment)},l(e){d(t.$$.fragment,e)},m(e,a){v(t,e,a),r=!0},p(e,[a]){const n={};a&1&&(n.items=e[0]),a&8962&&(n.$$scope={dirty:a,ctx:e}),t.$set(n)},i(e){r||(c(t.$$.fragment,e),r=!0)},o(e){p(t.$$.fragment,e),r=!1},d(e){y(t,e)}}}let x=!0;function R(i,t,r){let e,a,n,m,s,o,l;_(i,k,f=>r(1,m=f)),_(i,H,f=>r(5,s=f)),_(i,K,f=>r(6,o=f)),_(i,M,f=>r(7,l=f));function u(f){P(k,m=f.detail.expanded,m)}return i.$$.update=()=>{i.$$.dirty&128&&r(3,e=l),i.$$.dirty&96&&r(4,a=o==="descending"?[...s].reverse():s),i.$$.dirty&24&&r(0,n=a.filter(f=>e?f.category===e:f))},[n,m,u,e,a,s,o,l]}class ee extends G{constructor(t){super(),I(this,t,R,Q,L,{})}}export{ee as component}; diff --git a/ui/assets/local/_app/immutable/nodes/15.e91dd5cb.js b/ui/assets/local/_app/immutable/nodes/15.e2404ff1.js similarity index 92% rename from ui/assets/local/_app/immutable/nodes/15.e91dd5cb.js rename to ui/assets/local/_app/immutable/nodes/15.e2404ff1.js index 2930f2d165..05bc4733bd 100644 --- a/ui/assets/local/_app/immutable/nodes/15.e91dd5cb.js +++ b/ui/assets/local/_app/immutable/nodes/15.e2404ff1.js @@ -1 +1 @@ -import{S as I,b as L,a as P,C as h,D as d,E as v,j as c,g as p,F as y,K as _,a5 as z,e as $,f as C,z as b,aa as B,h as w,k as F,ab as N}from"../chunks/index.4e2fcbc7.js";import{E as j,a as q,b as D}from"../chunks/event-summary-table.f0d65a34.js";import{P as K}from"../chunks/pagination.8a23314e.js";import{t as g}from"../chunks/translate.d23a91ae.js";import{b as k,e as M}from"../chunks/event-view.56fa9b74.js";import{e as G}from"../chunks/filters.e20189d3.js";import{i as H}from"../chunks/import-events.7da68a62.js";function E(i,t,n){const e=i.slice();return e[10]=t[n],e}function S(i){let t,n;return t=new q({}),{c(){h(t.$$.fragment)},l(e){d(t.$$.fragment,e)},m(e,a){v(t,e,a),n=!0},i(e){n||(c(t.$$.fragment,e),n=!0)},o(e){p(t.$$.fragment,e),n=!1},d(e){y(t,e)}}}function A(i,t){let n,e,a;return e=new D({props:{event:t[10],compact:x,expandAll:t[1]==="true",initialItem:t[9]}}),{key:i,first:null,c(){n=$(),h(e.$$.fragment),this.h()},l(r){n=$(),d(e.$$.fragment,r),this.h()},h(){this.first=n},m(r,m){C(r,n,m),v(e,r,m),a=!0},p(r,m){t=r;const s={};m&256&&(s.event=t[10]),m&2&&(s.expandAll=t[1]==="true"),m&512&&(s.initialItem=t[9]),e.$set(s)},i(r){a||(c(e.$$.fragment,r),a=!0)},o(r){p(e.$$.fragment,r),a=!1},d(r){r&&F(n),y(e,r)}}}function J(i){let t=[],n=new Map,e,a,r=i[8];const m=o=>`${o[10].id}-${o[10].timestamp}`;for(let o=0;o{s=null}),w()):s||(s=S(),s.c(),c(s,1),s.m(e.parentNode,e)))},i(o){if(!a){for(let l=0;l({8:e,9:a}),({visibleItems:e,initialItem:a})=>(e?256:0)|(a?512:0)]},$$scope:{ctx:i}}}),{c(){h(t.$$.fragment)},l(e){d(t.$$.fragment,e)},m(e,a){v(t,e,a),n=!0},p(e,[a]){const r={};a&1&&(r.items=e[0]),a&8962&&(r.$$scope={dirty:a,ctx:e}),t.$set(r)},i(e){n||(c(t.$$.fragment,e),n=!0)},o(e){p(t.$$.fragment,e),n=!1},d(e){y(t,e)}}}let x=!1;function R(i,t,n){let e,a,r,m,s,o,l;_(i,k,f=>n(1,m=f)),_(i,H,f=>n(5,s=f)),_(i,M,f=>n(6,o=f)),_(i,G,f=>n(7,l=f));function u(f){z(k,m=f.detail.expanded,m)}return i.$$.update=()=>{i.$$.dirty&128&&n(3,e=l),i.$$.dirty&96&&n(4,a=o==="descending"?[...s].reverse():s),i.$$.dirty&24&&n(0,r=a.filter(f=>e?f.category===e:f))},[r,m,u,e,a,s,o,l]}class ee extends I{constructor(t){super(),L(this,t,R,Q,P,{})}}export{ee as component}; +import{S as I,b as L,a as P,C as h,D as d,E as v,j as c,g as p,F as y,K as _,a5 as z,e as $,f as C,z as b,aa as B,h as w,k as F,ab as N}from"../chunks/index.4e2fcbc7.js";import{E as j,a as q,b as D}from"../chunks/event-summary-table.7924858b.js";import{P as K}from"../chunks/pagination.605d1f82.js";import{t as g}from"../chunks/translate.d23a91ae.js";import{b as k,e as M}from"../chunks/event-view.50193376.js";import{e as G}from"../chunks/filters.83a38186.js";import{i as H}from"../chunks/import-events.33147d23.js";function E(i,t,n){const e=i.slice();return e[10]=t[n],e}function S(i){let t,n;return t=new q({}),{c(){h(t.$$.fragment)},l(e){d(t.$$.fragment,e)},m(e,a){v(t,e,a),n=!0},i(e){n||(c(t.$$.fragment,e),n=!0)},o(e){p(t.$$.fragment,e),n=!1},d(e){y(t,e)}}}function A(i,t){let n,e,a;return e=new D({props:{event:t[10],compact:x,expandAll:t[1]==="true",initialItem:t[9]}}),{key:i,first:null,c(){n=$(),h(e.$$.fragment),this.h()},l(r){n=$(),d(e.$$.fragment,r),this.h()},h(){this.first=n},m(r,m){C(r,n,m),v(e,r,m),a=!0},p(r,m){t=r;const s={};m&256&&(s.event=t[10]),m&2&&(s.expandAll=t[1]==="true"),m&512&&(s.initialItem=t[9]),e.$set(s)},i(r){a||(c(e.$$.fragment,r),a=!0)},o(r){p(e.$$.fragment,r),a=!1},d(r){r&&F(n),y(e,r)}}}function J(i){let t=[],n=new Map,e,a,r=i[8];const m=o=>`${o[10].id}-${o[10].timestamp}`;for(let o=0;o{s=null}),w()):s||(s=S(),s.c(),c(s,1),s.m(e.parentNode,e)))},i(o){if(!a){for(let l=0;l({8:e,9:a}),({visibleItems:e,initialItem:a})=>(e?256:0)|(a?512:0)]},$$scope:{ctx:i}}}),{c(){h(t.$$.fragment)},l(e){d(t.$$.fragment,e)},m(e,a){v(t,e,a),n=!0},p(e,[a]){const r={};a&1&&(r.items=e[0]),a&8962&&(r.$$scope={dirty:a,ctx:e}),t.$set(r)},i(e){n||(c(t.$$.fragment,e),n=!0)},o(e){p(t.$$.fragment,e),n=!1},d(e){y(t,e)}}}let x=!1;function R(i,t,n){let e,a,r,m,s,o,l;_(i,k,f=>n(1,m=f)),_(i,H,f=>n(5,s=f)),_(i,M,f=>n(6,o=f)),_(i,G,f=>n(7,l=f));function u(f){z(k,m=f.detail.expanded,m)}return i.$$.update=()=>{i.$$.dirty&128&&n(3,e=l),i.$$.dirty&96&&n(4,a=o==="descending"?[...s].reverse():s),i.$$.dirty&24&&n(0,r=a.filter(f=>e?f.category===e:f))},[r,m,u,e,a,s,o,l]}class ee extends I{constructor(t){super(),L(this,t,R,Q,P,{})}}export{ee as component}; diff --git a/ui/assets/local/_app/immutable/nodes/16.924f0257.js b/ui/assets/local/_app/immutable/nodes/16.a4ad2f8d.js similarity index 79% rename from ui/assets/local/_app/immutable/nodes/16.924f0257.js rename to ui/assets/local/_app/immutable/nodes/16.a4ad2f8d.js index 1aae55b4ec..9c2d56ddc3 100644 --- a/ui/assets/local/_app/immutable/nodes/16.924f0257.js +++ b/ui/assets/local/_app/immutable/nodes/16.a4ad2f8d.js @@ -1 +1 @@ -import{S as a,b as i,a as m,C as c,D as p,E as f,j as u,g as _,F as l,K as $}from"../chunks/index.4e2fcbc7.js";import{W as g}from"../chunks/workflow-json-navigator.7a126a38.js";import{i as v}from"../chunks/import-events.7da68a62.js";function w(r){let n,o;return n=new g({props:{events:r[0]}}),{c(){c(n.$$.fragment)},l(t){p(n.$$.fragment,t)},m(t,e){f(n,t,e),o=!0},p(t,[e]){const s={};e&1&&(s.events=t[0]),n.$set(s)},i(t){o||(u(n.$$.fragment,t),o=!0)},o(t){_(n.$$.fragment,t),o=!1},d(t){l(n,t)}}}function j(r,n,o){let t;return $(r,v,e=>o(0,t=e)),[t]}class E extends a{constructor(n){super(),i(this,n,j,w,m,{})}}export{E as component}; +import{S as a,b as i,a as m,C as c,D as p,E as f,j as u,g as _,F as l,K as $}from"../chunks/index.4e2fcbc7.js";import{W as g}from"../chunks/workflow-json-navigator.82fd29ea.js";import{i as v}from"../chunks/import-events.33147d23.js";function w(r){let n,o;return n=new g({props:{events:r[0]}}),{c(){c(n.$$.fragment)},l(t){p(n.$$.fragment,t)},m(t,e){f(n,t,e),o=!0},p(t,[e]){const s={};e&1&&(s.events=t[0]),n.$set(s)},i(t){o||(u(n.$$.fragment,t),o=!0)},o(t){_(n.$$.fragment,t),o=!1},d(t){l(n,t)}}}function j(r,n,o){let t;return $(r,v,e=>o(0,t=e)),[t]}class E extends a{constructor(n){super(),i(this,n,j,w,m,{})}}export{E as component}; diff --git a/ui/assets/local/_app/immutable/nodes/17.1932f61f.js b/ui/assets/local/_app/immutable/nodes/17.5db091a6.js similarity index 95% rename from ui/assets/local/_app/immutable/nodes/17.1932f61f.js rename to ui/assets/local/_app/immutable/nodes/17.5db091a6.js index c4ccde5df5..509db0489b 100644 --- a/ui/assets/local/_app/immutable/nodes/17.1932f61f.js +++ b/ui/assets/local/_app/immutable/nodes/17.5db091a6.js @@ -1 +1 @@ -import{S as J,b as M,a as Q,C as d,c as B,m as P,w as x,e as E,D as b,d as C,p as y,q as I,x as N,k as i,u as L,E as k,f as $,L as q,g as u,h as O,j as p,F as w,K as H,z as G,n as z,a7 as R,y as U}from"../chunks/index.4e2fcbc7.js";import{p as V}from"../chunks/stores.14a97433.js";import{P as W}from"../chunks/page-title.f9a44b80.js";import{E as X}from"../chunks/empty-state.721f6c59.js";import{L as Y}from"../chunks/link.6803bb00.js";import{P as Z}from"../chunks/pagination.8a23314e.js";import{T as ee,a as te}from"../chunks/table-header-row.fec98b60.js";import{T as ae}from"../chunks/table-row.0fafe278.js";import{t as h}from"../chunks/translate.d23a91ae.js";import{n as ne}from"../chunks/namespaces.85dd397c.js";import{o as j}from"../chunks/route-for.80613b91.js";function A(f,t,n){const e=f.slice();return e[3]=t[n],e}function re(f){let t,n;return t=new X({props:{title:h("namespaces.namespaces-empty-state-title"),content:h("namespaces.namespaces-empty-state-content")}}),{c(){d(t.$$.fragment)},l(e){b(t.$$.fragment,e)},m(e,a){k(t,e,a),n=!0},p:z,i(e){n||(p(t.$$.fragment,e),n=!0)},o(e){u(t.$$.fragment,e),n=!1},d(e){w(t,e)}}}function se(f){let t,n;return t=new Z({props:{items:f[1],"aria-label":h("common.namespaces"),pageSizeSelectLabel:h("common.per-page"),previousButtonLabel:h("common.previous"),nextButtonLabel:h("common.next"),$$slots:{default:[pe,({visibleItems:e})=>({2:e}),({visibleItems:e})=>e?4:0]},$$scope:{ctx:f}}}),{c(){d(t.$$.fragment)},l(e){b(t.$$.fragment,e)},m(e,a){k(t,e,a),n=!0},p(e,a){const r={};a&2&&(r.items=e[1]),a&68&&(r.$$scope={dirty:a,ctx:e}),t.$set(r)},i(e){n||(p(t.$$.fragment,e),n=!0)},o(e){u(t.$$.fragment,e),n=!1},d(e){w(t,e)}}}function oe(f){let t=f[3].namespaceInfo.name+"",n;return{c(){n=x(t)},l(e){n=N(e,t)},m(e,a){$(e,n,a)},p(e,a){a&4&&t!==(t=e[3].namespaceInfo.name+"")&&U(n,t)},d(e){e&&i(n)}}}function le(f){let t,n,e,a;return n=new Y({props:{href:j({namespace:f[3].namespaceInfo.name}),$$slots:{default:[oe]},$$scope:{ctx:f}}}),{c(){t=P("td"),d(n.$$.fragment),e=B()},l(r){t=y(r,"TD",{});var s=I(t);b(n.$$.fragment,s),s.forEach(i),e=C(r)},m(r,s){$(r,t,s),k(n,t,null),$(r,e,s),a=!0},p(r,s){const o={};s&4&&(o.href=j({namespace:r[3].namespaceInfo.name})),s&68&&(o.$$scope={dirty:s,ctx:r}),n.$set(o)},i(r){a||(p(n.$$.fragment,r),a=!0)},o(r){u(n.$$.fragment,r),a=!1},d(r){r&&i(t),w(n),r&&i(e)}}}function K(f){let t,n;return t=new ae({props:{$$slots:{default:[le]},$$scope:{ctx:f}}}),{c(){d(t.$$.fragment)},l(e){b(t.$$.fragment,e)},m(e,a){k(t,e,a),n=!0},p(e,a){const r={};a&68&&(r.$$scope={dirty:a,ctx:e}),t.$set(r)},i(e){n||(p(t.$$.fragment,e),n=!0)},o(e){u(t.$$.fragment,e),n=!1},d(e){w(t,e)}}}function ce(f){let t,n,e=f[2],a=[];for(let s=0;su(a[s],1,1,()=>{a[s]=null});return{c(){for(let s=0;s0?0:1}return o=F(f),l=g[o]=D[o](f),{c(){d(t.$$.fragment),n=B(),e=P("h1"),r=x(a),s=B(),l.c(),_=E(),this.h()},l(c){b(t.$$.fragment,c),n=C(c),e=y(c,"H1",{"data-testid":!0,class:!0});var m=I(e);r=N(m,a),m.forEach(i),s=C(c),l.l(c),_=E(),this.h()},h(){L(e,"data-testid","namespace-selector-title"),L(e,"class","mb-8 text-2xl")},m(c,m){k(t,c,m),$(c,n,m),$(c,e,m),q(e,r),$(c,s,m),g[o].m(c,m),$(c,_,m),T=!0},p(c,[m]){const v={};m&1&&(v.url=c[0].url.href),t.$set(v);let S=o;o=F(c),o===S?g[o].p(c,m):(G(),u(g[S],1,1,()=>{g[S]=null}),O(),l=g[o],l?l.p(c,m):(l=g[o]=D[o](c),l.c()),p(l,1),l.m(_.parentNode,_))},i(c){T||(p(t.$$.fragment,c),p(l),T=!0)},o(c){u(t.$$.fragment,c),u(l),T=!1},d(c){w(t,c),c&&i(n),c&&i(e),c&&i(s),g[o].d(c),c&&i(_)}}}function $e(f,t,n){let e,a;return H(f,V,r=>n(0,e=r)),H(f,ne,r=>n(1,a=r)),[e,a]}class Pe extends J{constructor(t){super(),M(this,t,$e,ue,Q,{})}}export{Pe as component}; +import{S as J,b as M,a as Q,C as d,c as B,m as P,w as x,e as E,D as b,d as C,p as y,q as I,x as N,k as i,u as L,E as k,f as $,L as q,g as u,h as O,j as p,F as w,K as H,z as G,n as z,a7 as R,y as U}from"../chunks/index.4e2fcbc7.js";import{p as V}from"../chunks/stores.0e7b7e35.js";import{P as W}from"../chunks/page-title.f9a44b80.js";import{E as X}from"../chunks/empty-state.721f6c59.js";import{L as Y}from"../chunks/link.6803bb00.js";import{P as Z}from"../chunks/pagination.605d1f82.js";import{T as ee,a as te}from"../chunks/table-header-row.fec98b60.js";import{T as ae}from"../chunks/table-row.0fafe278.js";import{t as h}from"../chunks/translate.d23a91ae.js";import{n as ne}from"../chunks/namespaces.c82b5451.js";import{o as j}from"../chunks/route-for.084c7a46.js";function A(f,t,n){const e=f.slice();return e[3]=t[n],e}function re(f){let t,n;return t=new X({props:{title:h("namespaces.namespaces-empty-state-title"),content:h("namespaces.namespaces-empty-state-content")}}),{c(){d(t.$$.fragment)},l(e){b(t.$$.fragment,e)},m(e,a){k(t,e,a),n=!0},p:z,i(e){n||(p(t.$$.fragment,e),n=!0)},o(e){u(t.$$.fragment,e),n=!1},d(e){w(t,e)}}}function se(f){let t,n;return t=new Z({props:{items:f[1],"aria-label":h("common.namespaces"),pageSizeSelectLabel:h("common.per-page"),previousButtonLabel:h("common.previous"),nextButtonLabel:h("common.next"),$$slots:{default:[pe,({visibleItems:e})=>({2:e}),({visibleItems:e})=>e?4:0]},$$scope:{ctx:f}}}),{c(){d(t.$$.fragment)},l(e){b(t.$$.fragment,e)},m(e,a){k(t,e,a),n=!0},p(e,a){const r={};a&2&&(r.items=e[1]),a&68&&(r.$$scope={dirty:a,ctx:e}),t.$set(r)},i(e){n||(p(t.$$.fragment,e),n=!0)},o(e){u(t.$$.fragment,e),n=!1},d(e){w(t,e)}}}function oe(f){let t=f[3].namespaceInfo.name+"",n;return{c(){n=x(t)},l(e){n=N(e,t)},m(e,a){$(e,n,a)},p(e,a){a&4&&t!==(t=e[3].namespaceInfo.name+"")&&U(n,t)},d(e){e&&i(n)}}}function le(f){let t,n,e,a;return n=new Y({props:{href:j({namespace:f[3].namespaceInfo.name}),$$slots:{default:[oe]},$$scope:{ctx:f}}}),{c(){t=P("td"),d(n.$$.fragment),e=B()},l(r){t=y(r,"TD",{});var s=I(t);b(n.$$.fragment,s),s.forEach(i),e=C(r)},m(r,s){$(r,t,s),k(n,t,null),$(r,e,s),a=!0},p(r,s){const o={};s&4&&(o.href=j({namespace:r[3].namespaceInfo.name})),s&68&&(o.$$scope={dirty:s,ctx:r}),n.$set(o)},i(r){a||(p(n.$$.fragment,r),a=!0)},o(r){u(n.$$.fragment,r),a=!1},d(r){r&&i(t),w(n),r&&i(e)}}}function K(f){let t,n;return t=new ae({props:{$$slots:{default:[le]},$$scope:{ctx:f}}}),{c(){d(t.$$.fragment)},l(e){b(t.$$.fragment,e)},m(e,a){k(t,e,a),n=!0},p(e,a){const r={};a&68&&(r.$$scope={dirty:a,ctx:e}),t.$set(r)},i(e){n||(p(t.$$.fragment,e),n=!0)},o(e){u(t.$$.fragment,e),n=!1},d(e){w(t,e)}}}function ce(f){let t,n,e=f[2],a=[];for(let s=0;su(a[s],1,1,()=>{a[s]=null});return{c(){for(let s=0;s0?0:1}return o=F(f),l=g[o]=D[o](f),{c(){d(t.$$.fragment),n=B(),e=P("h1"),r=x(a),s=B(),l.c(),_=E(),this.h()},l(c){b(t.$$.fragment,c),n=C(c),e=y(c,"H1",{"data-testid":!0,class:!0});var m=I(e);r=N(m,a),m.forEach(i),s=C(c),l.l(c),_=E(),this.h()},h(){L(e,"data-testid","namespace-selector-title"),L(e,"class","mb-8 text-2xl")},m(c,m){k(t,c,m),$(c,n,m),$(c,e,m),q(e,r),$(c,s,m),g[o].m(c,m),$(c,_,m),T=!0},p(c,[m]){const v={};m&1&&(v.url=c[0].url.href),t.$set(v);let S=o;o=F(c),o===S?g[o].p(c,m):(G(),u(g[S],1,1,()=>{g[S]=null}),O(),l=g[o],l?l.p(c,m):(l=g[o]=D[o](c),l.c()),p(l,1),l.m(_.parentNode,_))},i(c){T||(p(t.$$.fragment,c),p(l),T=!0)},o(c){u(t.$$.fragment,c),u(l),T=!1},d(c){w(t,c),c&&i(n),c&&i(e),c&&i(s),g[o].d(c),c&&i(_)}}}function $e(f,t,n){let e,a;return H(f,V,r=>n(0,e=r)),H(f,ne,r=>n(1,a=r)),[e,a]}class Pe extends J{constructor(t){super(),M(this,t,$e,ue,Q,{})}}export{Pe as component}; diff --git a/ui/assets/local/_app/immutable/nodes/18.32c6e9c3.js b/ui/assets/local/_app/immutable/nodes/18.32c6e9c3.js new file mode 100644 index 0000000000..7653209e36 --- /dev/null +++ b/ui/assets/local/_app/immutable/nodes/18.32c6e9c3.js @@ -0,0 +1 @@ +import{a as dt}from"../chunks/namespaces-service.5b7524c9.js";import{S as $t,b as ht,a as vt,C as J,c as I,m as p,w as b,e as Me,D as Q,d as C,p as m,q as _,x as g,k as s,u as V,E as X,f as E,L as f,y as M,j,g as W,h as mt,F as Y,K as Ve,o as Et,a5 as Tt,z as _t,a7 as wt,n as be}from"../chunks/index.4e2fcbc7.js";import{p as bt}from"../chunks/stores.0e7b7e35.js";import{P as gt}from"../chunks/page-title.f9a44b80.js";import{B as we}from"../chunks/badge.96e01a15.js";import{C as Dt}from"../chunks/card.c1324719.js";import{T as ze,a as At}from"../chunks/table-header-row.fec98b60.js";import{T as kt}from"../chunks/table-row.0fafe278.js";import{t as N}from"../chunks/translate.d23a91ae.js";import{l as ft}from"../chunks/namespaces.c82b5451.js";import{s as Rt}from"../chunks/search-attributes.5443a149.js";import{s as It}from"../chunks/settings.0d5c4f96.js";import{t as Ct,u as St}from"../chunks/versions.6cca9ce8.js";import{s as it}from"../chunks/format-time.4f091e0e.js";const Ht=o=>{var t,a;const e=(t=o==null?void 0:o.replicationConfig)==null?void 0:t.clusters,l=(a=o==null?void 0:o.replicationConfig)==null?void 0:a.activeClusterName;return e!=null&&e.length?e.map(({clusterName:r})=>r===l?`${r} (active)`:r).join(", "):"Unknown"},Nt=async function({params:o,parent:e,url:l}){const{searchParams:t}=l;t.has("time-range")&&t.delete("time-range"),await e();const a=await dt(o.namespace),r=Ht(a);return{namespace:a,clusters:r}},vl=Object.freeze(Object.defineProperty({__proto__:null,load:Nt},Symbol.toStringTag,{value:"Module"}));function ct(o,e,l){const t=o.slice();return t[13]=e[l][0],t[14]=e[l][1],t}function Vt(o){var t;let e=((t=o[0])!=null&&t.isGlobalNamespace?N("common.yes"):N("common.no"))+"",l;return{c(){l=b(e)},l(a){l=g(a,e)},m(a,r){E(a,l,r)},p(a,r){var i;r&1&&e!==(e=((i=a[0])!=null&&i.isGlobalNamespace?N("common.yes"):N("common.no"))+"")&&M(l,e)},d(a){a&&s(l)}}}function Lt(o){var t,a;let e=((a=(t=o[0])==null?void 0:t.config)==null?void 0:a.historyArchivalState)+"",l;return{c(){l=b(e)},l(r){l=g(r,e)},m(r,i){E(r,l,i)},p(r,i){var u,n;i&1&&e!==(e=((n=(u=r[0])==null?void 0:u.config)==null?void 0:n.historyArchivalState)+"")&&M(l,e)},d(r){r&&s(l)}}}function yt(o){var t,a;let e=((a=(t=o[0])==null?void 0:t.config)==null?void 0:a.visibilityArchivalState)+"",l;return{c(){l=b(e)},l(r){l=g(r,e)},m(r,i){E(r,l,i)},p(r,i){var u,n;i&1&&e!==(e=((n=(u=r[0])==null?void 0:u.config)==null?void 0:n.visibilityArchivalState)+"")&&M(l,e)},d(r){r&&s(l)}}}function Pt(o){var Ke,Je,Qe,Xe,Ye,Ze,xe,et,tt,lt;let e,l,t=N("namespaces.owner")+"",a,r,i,u=(((Je=(Ke=o[0])==null?void 0:Ke.namespaceInfo)==null?void 0:Je.ownerEmail)||N("common.unknown"))+"",n,c,T,y,O=N("namespaces.global")+"",P,R,D,h,B,w,z,F=N("namespaces.retention-period")+"",Z,A,S,q=it((Xe=(Qe=o[0])==null?void 0:Qe.config)==null?void 0:Xe.workflowExecutionRetentionTtl.toString())+"",d,k,U,x,me=N("namespaces.history-archival")+"",ae,ee,te,G,le,se,_e,Ie=N("namespaces.visibility-archival")+"",de,re,ie,$,H,K,oe,fe=N("namespaces.failover-version")+"",ce,ue,pe,he=((Ye=o[0])==null?void 0:Ye.failoverVersion)+"",ge,$e,ne,ve,De=N("namespaces.clusters")+"",Ce,Se,Le,Ge,Ee;return h=new we({props:{class:"px-1 py-0",type:o[8]((Ze=o[0])==null?void 0:Ze.isGlobalNamespace,!1),$$slots:{default:[Vt]},$$scope:{ctx:o}}}),G=new we({props:{class:"px-1 py-0",type:o[7]((et=(xe=o[0])==null?void 0:xe.config)==null?void 0:et.historyArchivalState),$$slots:{default:[Lt]},$$scope:{ctx:o}}}),$=new we({props:{class:"px-1 py-0",type:o[7]((lt=(tt=o[0])==null?void 0:tt.config)==null?void 0:lt.visibilityArchivalState),$$slots:{default:[yt]},$$scope:{ctx:o}}}),{c(){e=p("tr"),l=p("td"),a=b(t),r=I(),i=p("td"),n=b(u),c=I(),T=p("tr"),y=p("td"),P=b(O),R=I(),D=p("td"),J(h.$$.fragment),B=I(),w=p("tr"),z=p("td"),Z=b(F),A=I(),S=p("td"),d=b(q),k=I(),U=p("tr"),x=p("td"),ae=b(me),ee=I(),te=p("td"),J(G.$$.fragment),le=I(),se=p("tr"),_e=p("td"),de=b(Ie),re=I(),ie=p("td"),J($.$$.fragment),H=I(),K=p("tr"),oe=p("td"),ce=b(fe),ue=I(),pe=p("td"),ge=b(he),$e=I(),ne=p("tr"),ve=p("td"),Ce=b(De),Se=I(),Le=p("td"),Ge=b(o[1]),this.h()},l(v){e=m(v,"TR",{"data-testid":!0});var L=_(e);l=m(L,"TD",{});var He=_(l);a=g(He,t),He.forEach(s),r=C(L),i=m(L,"TD",{});var Ne=_(i);n=g(Ne,u),Ne.forEach(s),L.forEach(s),c=C(v),T=m(v,"TR",{"data-testid":!0});var Te=_(T);y=m(Te,"TD",{});var ye=_(y);P=g(ye,O),ye.forEach(s),R=C(Te),D=m(Te,"TD",{});var Pe=_(D);Q(h.$$.fragment,Pe),Pe.forEach(s),Te.forEach(s),B=C(v),w=m(v,"TR",{"data-testid":!0});var Ae=_(w);z=m(Ae,"TD",{});var Be=_(z);Z=g(Be,F),Be.forEach(s),A=C(Ae),S=m(Ae,"TD",{});var Oe=_(S);d=g(Oe,q),Oe.forEach(s),Ae.forEach(s),k=C(v),U=m(v,"TR",{"data-testid":!0});var ke=_(U);x=m(ke,"TD",{});var Ue=_(x);ae=g(Ue,me),Ue.forEach(s),ee=C(ke),te=m(ke,"TD",{});var je=_(te);Q(G.$$.fragment,je),je.forEach(s),ke.forEach(s),le=C(v),se=m(v,"TR",{"data-testid":!0});var Re=_(se);_e=m(Re,"TD",{});var Fe=_(_e);de=g(Fe,Ie),Fe.forEach(s),re=C(Re),ie=m(Re,"TD",{});var at=_(ie);Q($.$$.fragment,at),at.forEach(s),Re.forEach(s),H=C(v),K=m(v,"TR",{"data-testid":!0});var We=_(K);oe=m(We,"TD",{});var st=_(oe);ce=g(st,fe),st.forEach(s),ue=C(We),pe=m(We,"TD",{});var rt=_(pe);ge=g(rt,he),rt.forEach(s),We.forEach(s),$e=C(v),ne=m(v,"TR",{"data-testid":!0});var qe=_(ne);ve=m(qe,"TD",{});var ot=_(ve);Ce=g(ot,De),ot.forEach(s),Se=C(qe),Le=m(qe,"TD",{});var nt=_(Le);Ge=g(nt,o[1]),nt.forEach(s),qe.forEach(s),this.h()},h(){V(e,"data-testid","namespace-owner"),V(T,"data-testid","namespace-global"),V(w,"data-testid","namespace-retention"),V(U,"data-testid","namespace-history"),V(se,"data-testid","namespace-visibility"),V(K,"data-testid","namespace-failover"),V(ne,"data-testid","namespace-clusters")},m(v,L){E(v,e,L),f(e,l),f(l,a),f(e,r),f(e,i),f(i,n),E(v,c,L),E(v,T,L),f(T,y),f(y,P),f(T,R),f(T,D),X(h,D,null),E(v,B,L),E(v,w,L),f(w,z),f(z,Z),f(w,A),f(w,S),f(S,d),E(v,k,L),E(v,U,L),f(U,x),f(x,ae),f(U,ee),f(U,te),X(G,te,null),E(v,le,L),E(v,se,L),f(se,_e),f(_e,de),f(se,re),f(se,ie),X($,ie,null),E(v,H,L),E(v,K,L),f(K,oe),f(oe,ce),f(K,ue),f(K,pe),f(pe,ge),E(v,$e,L),E(v,ne,L),f(ne,ve),f(ve,Ce),f(ne,Se),f(ne,Le),f(Le,Ge),Ee=!0},p(v,L){var ye,Pe,Ae,Be,Oe,ke,Ue,je,Re,Fe;(!Ee||L&1)&&u!==(u=(((Pe=(ye=v[0])==null?void 0:ye.namespaceInfo)==null?void 0:Pe.ownerEmail)||N("common.unknown"))+"")&&M(n,u);const He={};L&1&&(He.type=v[8]((Ae=v[0])==null?void 0:Ae.isGlobalNamespace,!1)),L&131073&&(He.$$scope={dirty:L,ctx:v}),h.$set(He),(!Ee||L&1)&&q!==(q=it((Oe=(Be=v[0])==null?void 0:Be.config)==null?void 0:Oe.workflowExecutionRetentionTtl.toString())+"")&&M(d,q);const Ne={};L&1&&(Ne.type=v[7]((Ue=(ke=v[0])==null?void 0:ke.config)==null?void 0:Ue.historyArchivalState)),L&131073&&(Ne.$$scope={dirty:L,ctx:v}),G.$set(Ne);const Te={};L&1&&(Te.type=v[7]((Re=(je=v[0])==null?void 0:je.config)==null?void 0:Re.visibilityArchivalState)),L&131073&&(Te.$$scope={dirty:L,ctx:v}),$.$set(Te),(!Ee||L&1)&&he!==(he=((Fe=v[0])==null?void 0:Fe.failoverVersion)+"")&&M(ge,he),(!Ee||L&2)&&M(Ge,v[1])},i(v){Ee||(j(h.$$.fragment,v),j(G.$$.fragment,v),j($.$$.fragment,v),Ee=!0)},o(v){W(h.$$.fragment,v),W(G.$$.fragment,v),W($.$$.fragment,v),Ee=!1},d(v){v&&s(e),v&&s(c),v&&s(T),Y(h),v&&s(B),v&&s(w),v&&s(k),v&&s(U),Y(G),v&&s(le),v&&s(se),Y($),v&&s(H),v&&s(K),v&&s($e),v&&s(ne)}}}function Bt(o){let e,l=`${N("namespaces.namespace")} ${N("common.details")}`,t;return{c(){e=p("caption"),t=b(l),this.h()},l(a){e=m(a,"CAPTION",{class:!0,slot:!0});var r=_(e);t=g(r,l),r.forEach(s),this.h()},h(){V(e,"class","sr-only"),V(e,"slot","caption")},m(a,r){E(a,e,r),f(e,t)},p:be,d(a){a&&s(e)}}}function Ot(o){let e,l,t;return{c(){e=p("tr"),l=p("th"),t=p("th"),this.h()},l(a){e=m(a,"TR",{slot:!0});var r=_(e);l=m(r,"TH",{class:!0}),_(l).forEach(s),t=m(r,"TH",{}),_(t).forEach(s),r.forEach(s),this.h()},h(){V(l,"class","w-1/2 lg:w-3/5"),V(e,"slot","headers")},m(a,r){E(a,e,r),f(e,l),f(e,t)},p:be,d(a){a&&s(e)}}}function Ut(o){let e,l,t,a,r,i,u,n,c,T,y,O,P;return{c(){e=p("tr"),l=p("td"),t=b("Temporal Server Version"),a=I(),r=p("td"),i=b(o[3]),u=I(),n=p("tr"),c=p("td"),T=b("Temporal UI Version"),y=I(),O=p("td"),P=b(o[4]),this.h()},l(R){e=m(R,"TR",{"data-testid":!0});var D=_(e);l=m(D,"TD",{});var h=_(l);t=g(h,"Temporal Server Version"),h.forEach(s),a=C(D),r=m(D,"TD",{});var B=_(r);i=g(B,o[3]),B.forEach(s),D.forEach(s),u=C(R),n=m(R,"TR",{"data-testid":!0});var w=_(n);c=m(w,"TD",{});var z=_(c);T=g(z,"Temporal UI Version"),z.forEach(s),y=C(w),O=m(w,"TD",{});var F=_(O);P=g(F,o[4]),F.forEach(s),w.forEach(s),this.h()},h(){V(e,"data-testid","server-version"),V(n,"data-testid","ui-version")},m(R,D){E(R,e,D),f(e,l),f(l,t),f(e,a),f(e,r),f(r,i),E(R,u,D),E(R,n,D),f(n,c),f(c,T),f(n,y),f(n,O),f(O,P)},p(R,D){D&8&&M(i,R[3]),D&16&&M(P,R[4])},d(R){R&&s(e),R&&s(u),R&&s(n)}}}function jt(o){let e,l=N("namespaces.versions")+"",t;return{c(){e=p("caption"),t=b(l),this.h()},l(a){e=m(a,"CAPTION",{class:!0,slot:!0});var r=_(e);t=g(r,l),r.forEach(s),this.h()},h(){V(e,"class","sr-only"),V(e,"slot","caption")},m(a,r){E(a,e,r),f(e,t)},p:be,d(a){a&&s(e)}}}function Ft(o){let e,l,t;return{c(){e=p("tr"),l=p("th"),t=p("th"),this.h()},l(a){e=m(a,"TR",{slot:!0});var r=_(e);l=m(r,"TH",{class:!0}),_(l).forEach(s),t=m(r,"TH",{}),_(t).forEach(s),r.forEach(s),this.h()},h(){V(l,"class","w-1/2 lg:w-3/4"),V(e,"slot","headers")},m(a,r){E(a,e,r),f(e,l),f(e,t)},p:be,d(a){a&&s(e)}}}function Gt(o){let e=o[9](o[5].disableWriteActions)+"",l;return{c(){l=b(e)},l(t){l=g(t,e)},m(t,a){E(t,l,a)},p(t,a){a&32&&e!==(e=t[9](t[5].disableWriteActions)+"")&&M(l,e)},d(t){t&&s(l)}}}function Wt(o){let e=o[9](o[5].workflowTerminateDisabled)+"",l;return{c(){l=b(e)},l(t){l=g(t,e)},m(t,a){E(t,l,a)},p(t,a){a&32&&e!==(e=t[9](t[5].workflowTerminateDisabled)+"")&&M(l,e)},d(t){t&&s(l)}}}function qt(o){let e=o[9](o[5].workflowCancelDisabled)+"",l;return{c(){l=b(e)},l(t){l=g(t,e)},m(t,a){E(t,l,a)},p(t,a){a&32&&e!==(e=t[9](t[5].workflowCancelDisabled)+"")&&M(l,e)},d(t){t&&s(l)}}}function zt(o){let e=o[9](o[5].workflowSignalDisabled)+"",l;return{c(){l=b(e)},l(t){l=g(t,e)},m(t,a){E(t,l,a)},p(t,a){a&32&&e!==(e=t[9](t[5].workflowSignalDisabled)+"")&&M(l,e)},d(t){t&&s(l)}}}function Mt(o){let e=o[9](o[5].workflowResetDisabled)+"",l;return{c(){l=b(e)},l(t){l=g(t,e)},m(t,a){E(t,l,a)},p(t,a){a&32&&e!==(e=t[9](t[5].workflowResetDisabled)+"")&&M(l,e)},d(t){t&&s(l)}}}function Kt(o){let e,l,t=N("namespaces.client-actions")+"",a,r,i,u,n,c,T,y=N("workflows.terminate-modal-title")+"",O,P,R,D,h,B,w,z=N("workflows.cancel-modal-title")+"",F,Z,A,S,q,d,k,U=N("namespaces.signal-workflow")+"",x,me,ae,ee,te,G,le,se=N("workflows.reset-modal-title")+"",_e,Ie,de,re,ie;return u=new we({props:{class:"px-1 py-0",type:o[8](o[5].disableWriteActions),$$slots:{default:[Gt]},$$scope:{ctx:o}}}),D=new we({props:{class:"px-1 py-0",type:o[8](o[5].workflowTerminateDisabled),$$slots:{default:[Wt]},$$scope:{ctx:o}}}),S=new we({props:{class:"px-1 py-0",type:o[8](o[5].workflowCancelDisabled),$$slots:{default:[qt]},$$scope:{ctx:o}}}),ee=new we({props:{class:"px-1 py-0",type:o[8](o[5].workflowSignalDisabled),$$slots:{default:[zt]},$$scope:{ctx:o}}}),re=new we({props:{class:"px-1 py-0",type:o[8](o[5].workflowResetDisabled),$$slots:{default:[Mt]},$$scope:{ctx:o}}}),{c(){e=p("tr"),l=p("td"),a=b(t),r=I(),i=p("td"),J(u.$$.fragment),n=I(),c=p("tr"),T=p("td"),O=b(y),P=I(),R=p("td"),J(D.$$.fragment),h=I(),B=p("tr"),w=p("td"),F=b(z),Z=I(),A=p("td"),J(S.$$.fragment),q=I(),d=p("tr"),k=p("td"),x=b(U),me=I(),ae=p("td"),J(ee.$$.fragment),te=I(),G=p("tr"),le=p("td"),_e=b(se),Ie=I(),de=p("td"),J(re.$$.fragment)},l($){e=m($,"TR",{});var H=_(e);l=m(H,"TD",{});var K=_(l);a=g(K,t),K.forEach(s),r=C(H),i=m(H,"TD",{});var oe=_(i);Q(u.$$.fragment,oe),oe.forEach(s),H.forEach(s),n=C($),c=m($,"TR",{});var fe=_(c);T=m(fe,"TD",{});var ce=_(T);O=g(ce,y),ce.forEach(s),P=C(fe),R=m(fe,"TD",{});var ue=_(R);Q(D.$$.fragment,ue),ue.forEach(s),fe.forEach(s),h=C($),B=m($,"TR",{});var pe=_(B);w=m(pe,"TD",{});var he=_(w);F=g(he,z),he.forEach(s),Z=C(pe),A=m(pe,"TD",{});var ge=_(A);Q(S.$$.fragment,ge),ge.forEach(s),pe.forEach(s),q=C($),d=m($,"TR",{});var $e=_(d);k=m($e,"TD",{});var ne=_(k);x=g(ne,U),ne.forEach(s),me=C($e),ae=m($e,"TD",{});var ve=_(ae);Q(ee.$$.fragment,ve),ve.forEach(s),$e.forEach(s),te=C($),G=m($,"TR",{});var De=_(G);le=m(De,"TD",{});var Ce=_(le);_e=g(Ce,se),Ce.forEach(s),Ie=C(De),de=m(De,"TD",{});var Se=_(de);Q(re.$$.fragment,Se),Se.forEach(s),De.forEach(s)},m($,H){E($,e,H),f(e,l),f(l,a),f(e,r),f(e,i),X(u,i,null),E($,n,H),E($,c,H),f(c,T),f(T,O),f(c,P),f(c,R),X(D,R,null),E($,h,H),E($,B,H),f(B,w),f(w,F),f(B,Z),f(B,A),X(S,A,null),E($,q,H),E($,d,H),f(d,k),f(k,x),f(d,me),f(d,ae),X(ee,ae,null),E($,te,H),E($,G,H),f(G,le),f(le,_e),f(G,Ie),f(G,de),X(re,de,null),ie=!0},p($,H){const K={};H&32&&(K.type=$[8]($[5].disableWriteActions)),H&131104&&(K.$$scope={dirty:H,ctx:$}),u.$set(K);const oe={};H&32&&(oe.type=$[8]($[5].workflowTerminateDisabled)),H&131104&&(oe.$$scope={dirty:H,ctx:$}),D.$set(oe);const fe={};H&32&&(fe.type=$[8]($[5].workflowCancelDisabled)),H&131104&&(fe.$$scope={dirty:H,ctx:$}),S.$set(fe);const ce={};H&32&&(ce.type=$[8]($[5].workflowSignalDisabled)),H&131104&&(ce.$$scope={dirty:H,ctx:$}),ee.$set(ce);const ue={};H&32&&(ue.type=$[8]($[5].workflowResetDisabled)),H&131104&&(ue.$$scope={dirty:H,ctx:$}),re.$set(ue)},i($){ie||(j(u.$$.fragment,$),j(D.$$.fragment,$),j(S.$$.fragment,$),j(ee.$$.fragment,$),j(re.$$.fragment,$),ie=!0)},o($){W(u.$$.fragment,$),W(D.$$.fragment,$),W(S.$$.fragment,$),W(ee.$$.fragment,$),W(re.$$.fragment,$),ie=!1},d($){$&&s(e),Y(u),$&&s(n),$&&s(c),Y(D),$&&s(h),$&&s(B),Y(S),$&&s(q),$&&s(d),Y(ee),$&&s(te),$&&s(G),Y(re)}}}function Jt(o){let e,l=N("namespaces.client-actions")+"",t;return{c(){e=p("caption"),t=b(l),this.h()},l(a){e=m(a,"CAPTION",{class:!0,slot:!0});var r=_(e);t=g(r,l),r.forEach(s),this.h()},h(){V(e,"class","sr-only"),V(e,"slot","caption")},m(a,r){E(a,e,r),f(e,t)},p:be,d(a){a&&s(e)}}}function Qt(o){let e,l,t;return{c(){e=p("tr"),l=p("th"),t=p("th"),this.h()},l(a){e=m(a,"TR",{slot:!0});var r=_(e);l=m(r,"TH",{class:!0}),_(l).forEach(s),t=m(r,"TH",{}),_(t).forEach(s),r.forEach(s),this.h()},h(){V(l,"class","w-1/2 lg:w-3/5"),V(e,"slot","headers")},m(a,r){E(a,e,r),f(e,l),f(e,t)},p:be,d(a){a&&s(e)}}}function Xt(o){let e,l,t=N("common.details")+"",a,r,i,u,n,c,T=N("namespaces.versions")+"",y,O,P,R,D,h,B=N("namespaces.client-actions")+"",w,z,F,Z;return i=new ze({props:{variant:"simple",$$slots:{headers:[Ot],caption:[Bt],default:[Pt]},$$scope:{ctx:o}}}),P=new ze({props:{variant:"simple",$$slots:{headers:[Ft],caption:[jt],default:[Ut]},$$scope:{ctx:o}}}),F=new ze({props:{variant:"simple",$$slots:{headers:[Qt],caption:[Jt],default:[Kt]},$$scope:{ctx:o}}}),{c(){e=p("article"),l=p("h3"),a=b(t),r=I(),J(i.$$.fragment),u=I(),n=p("article"),c=p("h3"),y=b(T),O=I(),J(P.$$.fragment),R=I(),D=p("article"),h=p("h3"),w=b(B),z=I(),J(F.$$.fragment),this.h()},l(A){e=m(A,"ARTICLE",{class:!0});var S=_(e);l=m(S,"H3",{class:!0});var q=_(l);a=g(q,t),q.forEach(s),r=C(S),Q(i.$$.fragment,S),S.forEach(s),u=C(A),n=m(A,"ARTICLE",{class:!0});var d=_(n);c=m(d,"H3",{class:!0});var k=_(c);y=g(k,T),k.forEach(s),O=C(d),Q(P.$$.fragment,d),d.forEach(s),R=C(A),D=m(A,"ARTICLE",{class:!0});var U=_(D);h=m(U,"H3",{class:!0});var x=_(h);w=g(x,B),x.forEach(s),z=C(U),Q(F.$$.fragment,U),U.forEach(s),this.h()},h(){V(l,"class","text-lg font-medium"),V(e,"class","namespace-info flex w-full flex-col"),V(c,"class","text-lg font-medium"),V(n,"class","namespace-info flex w-full flex-col"),V(h,"class","text-lg font-medium"),V(D,"class","namespace-info flex w-full flex-col")},m(A,S){E(A,e,S),f(e,l),f(l,a),f(e,r),X(i,e,null),E(A,u,S),E(A,n,S),f(n,c),f(c,y),f(n,O),X(P,n,null),E(A,R,S),E(A,D,S),f(D,h),f(h,w),f(D,z),X(F,D,null),Z=!0},p(A,S){const q={};S&131075&&(q.$$scope={dirty:S,ctx:A}),i.$set(q);const d={};S&131096&&(d.$$scope={dirty:S,ctx:A}),P.$set(d);const k={};S&131104&&(k.$$scope={dirty:S,ctx:A}),F.$set(k)},i(A){Z||(j(i.$$.fragment,A),j(P.$$.fragment,A),j(F.$$.fragment,A),Z=!0)},o(A){W(i.$$.fragment,A),W(P.$$.fragment,A),W(F.$$.fragment,A),Z=!1},d(A){A&&s(e),Y(i),A&&s(u),A&&s(n),Y(P),A&&s(R),A&&s(D),Y(F)}}}function ut(o){let e,l,t=N("events.attribute-group.search-attributes")+"",a,r,i,u;return i=new ze({props:{class:"w-full",$$slots:{headers:[tl],caption:[xt],default:[Zt]},$$scope:{ctx:o}}}),{c(){e=p("section"),l=p("h3"),a=b(t),r=I(),J(i.$$.fragment),this.h()},l(n){e=m(n,"SECTION",{});var c=_(e);l=m(c,"H3",{class:!0});var T=_(l);a=g(T,t),T.forEach(s),r=C(c),Q(i.$$.fragment,c),c.forEach(s),this.h()},h(){V(l,"class","my-4 text-lg font-medium")},m(n,c){E(n,e,c),f(e,l),f(l,a),f(e,r),X(i,e,null),u=!0},p(n,c){const T={};c&131136&&(T.$$scope={dirty:c,ctx:n}),i.$set(T)},i(n){u||(j(i.$$.fragment,n),u=!0)},o(n){W(i.$$.fragment,n),u=!1},d(n){n&&s(e),Y(i)}}}function Yt(o){let e,l=o[13]+"",t,a,r,i=o[14]+"",u,n;return{c(){e=p("td"),t=b(l),a=I(),r=p("td"),u=b(i),n=I()},l(c){e=m(c,"TD",{});var T=_(e);t=g(T,l),T.forEach(s),a=C(c),r=m(c,"TD",{});var y=_(r);u=g(y,i),y.forEach(s),n=C(c)},m(c,T){E(c,e,T),f(e,t),E(c,a,T),E(c,r,T),f(r,u),E(c,n,T)},p(c,T){T&64&&l!==(l=c[13]+"")&&M(t,l),T&64&&i!==(i=c[14]+"")&&M(u,i)},d(c){c&&s(e),c&&s(a),c&&s(r),c&&s(n)}}}function pt(o){let e,l;return e=new kt({props:{$$slots:{default:[Yt]},$$scope:{ctx:o}}}),{c(){J(e.$$.fragment)},l(t){Q(e.$$.fragment,t)},m(t,a){X(e,t,a),l=!0},p(t,a){const r={};a&131136&&(r.$$scope={dirty:a,ctx:t}),e.$set(r)},i(t){l||(j(e.$$.fragment,t),l=!0)},o(t){W(e.$$.fragment,t),l=!1},d(t){Y(e,t)}}}function Zt(o){let e,l,t=Object.entries(o[6]),a=[];for(let i=0;iW(a[i],1,1,()=>{a[i]=null});return{c(){for(let i=0;i{w=null}),mt())},i(d){B||(j(e.$$.fragment,d),j(R.$$.fragment,d),j(w),B=!0)},o(d){W(e.$$.fragment,d),W(R.$$.fragment,d),W(w),B=!1},d(d){Y(e,d),d&&s(l),d&&s(t),d&&s(c),d&&s(T),d&&s(P),Y(R,d),d&&s(D),w&&w.d(d),d&&s(h)}}}function al(o,e,l){let t,a,r,i,u,n,c,T;Ve(o,ft,h=>l(12,r=h)),Ve(o,bt,h=>l(2,i=h)),Ve(o,Ct,h=>l(3,u=h)),Ve(o,St,h=>l(4,n=h)),Ve(o,It,h=>l(5,c=h)),Ve(o,Rt,h=>l(6,T=h));let{data:y}=e;var O;(function(h){h[h.ARCHIVAL_STATE_UNSPECIFIED=0]="ARCHIVAL_STATE_UNSPECIFIED",h[h.ARCHIVAL_STATE_DISABLED=1]="ARCHIVAL_STATE_DISABLED",h[h.ARCHIVAL_STATE_ENABLED=2]="ARCHIVAL_STATE_ENABLED"})(O||(O={}));const P=h=>h===O.ARCHIVAL_STATE_ENABLED?"green":"default",R=(h,B=!0)=>B?h?"default":"green":h?"green":"default",D=h=>h?N("common.disabled"):N("common.enabled");return Et(()=>{var h;Tt(ft,r=(h=t==null?void 0:t.namespaceInfo)===null||h===void 0?void 0:h.name,r)}),o.$$set=h=>{"data"in h&&l(10,y=h.data)},o.$$.update=()=>{o.$$.dirty&1024&&l(0,{namespace:t,clusters:a}=y,t,(l(1,a),l(10,y)))},[t,a,i,u,n,c,T,P,R,D,y]}class El extends $t{constructor(e){super(),ht(this,e,al,ll,vt,{data:10})}}export{El as component,vl as universal}; diff --git a/ui/assets/local/_app/immutable/nodes/18.7a43c0e3.js b/ui/assets/local/_app/immutable/nodes/18.7a43c0e3.js deleted file mode 100644 index e3565216cd..0000000000 --- a/ui/assets/local/_app/immutable/nodes/18.7a43c0e3.js +++ /dev/null @@ -1 +0,0 @@ -import{a as dt}from"../chunks/namespaces-service.7a2265f4.js";import{S as $t,b as ht,a as vt,C as J,c as I,m as p,w as b,e as Me,D as Q,d as C,p as _,q as m,x as g,k as s,u as V,E as X,f as E,L as f,y as M,j,g as W,h as _t,F as Y,K as Ve,o as Et,a5 as Tt,z as mt,a7 as wt,n as be}from"../chunks/index.4e2fcbc7.js";import{p as bt}from"../chunks/stores.14a97433.js";import{P as gt}from"../chunks/page-title.f9a44b80.js";import{B as we}from"../chunks/badge.96e01a15.js";import{C as Dt}from"../chunks/card.c1324719.js";import{T as ze,a as At}from"../chunks/table-header-row.fec98b60.js";import{T as kt}from"../chunks/table-row.0fafe278.js";import{t as N}from"../chunks/translate.d23a91ae.js";import{l as ft}from"../chunks/namespaces.85dd397c.js";import{s as Rt}from"../chunks/search-attributes.5d6df3ed.js";import{t as It,u as Ct,s as St}from"../chunks/versions.78cca4ad.js";import{s as it}from"../chunks/format-time.4f091e0e.js";const Ht=o=>{var t,a;const e=(t=o==null?void 0:o.replicationConfig)==null?void 0:t.clusters,l=(a=o==null?void 0:o.replicationConfig)==null?void 0:a.activeClusterName;return e!=null&&e.length?e.map(({clusterName:r})=>r===l?`${r} (active)`:r).join(", "):"Unknown"},Nt=async function({params:o,parent:e,url:l}){const{searchParams:t}=l;t.has("time-range")&&t.delete("time-range"),await e();const a=await dt(o.namespace),r=Ht(a);return{namespace:a,clusters:r}},hl=Object.freeze(Object.defineProperty({__proto__:null,load:Nt},Symbol.toStringTag,{value:"Module"}));function ct(o,e,l){const t=o.slice();return t[13]=e[l][0],t[14]=e[l][1],t}function Vt(o){var t;let e=((t=o[0])!=null&&t.isGlobalNamespace?N("common.yes"):N("common.no"))+"",l;return{c(){l=b(e)},l(a){l=g(a,e)},m(a,r){E(a,l,r)},p(a,r){var i;r&1&&e!==(e=((i=a[0])!=null&&i.isGlobalNamespace?N("common.yes"):N("common.no"))+"")&&M(l,e)},d(a){a&&s(l)}}}function Lt(o){var t,a;let e=((a=(t=o[0])==null?void 0:t.config)==null?void 0:a.historyArchivalState)+"",l;return{c(){l=b(e)},l(r){l=g(r,e)},m(r,i){E(r,l,i)},p(r,i){var u,n;i&1&&e!==(e=((n=(u=r[0])==null?void 0:u.config)==null?void 0:n.historyArchivalState)+"")&&M(l,e)},d(r){r&&s(l)}}}function yt(o){var t,a;let e=((a=(t=o[0])==null?void 0:t.config)==null?void 0:a.visibilityArchivalState)+"",l;return{c(){l=b(e)},l(r){l=g(r,e)},m(r,i){E(r,l,i)},p(r,i){var u,n;i&1&&e!==(e=((n=(u=r[0])==null?void 0:u.config)==null?void 0:n.visibilityArchivalState)+"")&&M(l,e)},d(r){r&&s(l)}}}function Pt(o){var Ke,Je,Qe,Xe,Ye,Ze,xe,et,tt,lt;let e,l,t=N("namespaces.owner")+"",a,r,i,u=(((Je=(Ke=o[0])==null?void 0:Ke.namespaceInfo)==null?void 0:Je.ownerEmail)||N("common.unknown"))+"",n,c,T,y,O=N("namespaces.global")+"",P,R,D,h,B,w,z,F=N("namespaces.retention-period")+"",Z,A,S,q=it((Xe=(Qe=o[0])==null?void 0:Qe.config)==null?void 0:Xe.workflowExecutionRetentionTtl.toString())+"",d,k,U,x,_e=N("namespaces.history-archival")+"",ae,ee,te,G,le,se,me,Ie=N("namespaces.visibility-archival")+"",de,re,ie,$,H,K,oe,fe=N("namespaces.failover-version")+"",ce,ue,pe,he=((Ye=o[0])==null?void 0:Ye.failoverVersion)+"",ge,$e,ne,ve,De=N("namespaces.clusters")+"",Ce,Se,Le,Ge,Ee;return h=new we({props:{class:"px-1 py-0",type:o[8]((Ze=o[0])==null?void 0:Ze.isGlobalNamespace,!1),$$slots:{default:[Vt]},$$scope:{ctx:o}}}),G=new we({props:{class:"px-1 py-0",type:o[7]((et=(xe=o[0])==null?void 0:xe.config)==null?void 0:et.historyArchivalState),$$slots:{default:[Lt]},$$scope:{ctx:o}}}),$=new we({props:{class:"px-1 py-0",type:o[7]((lt=(tt=o[0])==null?void 0:tt.config)==null?void 0:lt.visibilityArchivalState),$$slots:{default:[yt]},$$scope:{ctx:o}}}),{c(){e=p("tr"),l=p("td"),a=b(t),r=I(),i=p("td"),n=b(u),c=I(),T=p("tr"),y=p("td"),P=b(O),R=I(),D=p("td"),J(h.$$.fragment),B=I(),w=p("tr"),z=p("td"),Z=b(F),A=I(),S=p("td"),d=b(q),k=I(),U=p("tr"),x=p("td"),ae=b(_e),ee=I(),te=p("td"),J(G.$$.fragment),le=I(),se=p("tr"),me=p("td"),de=b(Ie),re=I(),ie=p("td"),J($.$$.fragment),H=I(),K=p("tr"),oe=p("td"),ce=b(fe),ue=I(),pe=p("td"),ge=b(he),$e=I(),ne=p("tr"),ve=p("td"),Ce=b(De),Se=I(),Le=p("td"),Ge=b(o[1]),this.h()},l(v){e=_(v,"TR",{"data-testid":!0});var L=m(e);l=_(L,"TD",{});var He=m(l);a=g(He,t),He.forEach(s),r=C(L),i=_(L,"TD",{});var Ne=m(i);n=g(Ne,u),Ne.forEach(s),L.forEach(s),c=C(v),T=_(v,"TR",{"data-testid":!0});var Te=m(T);y=_(Te,"TD",{});var ye=m(y);P=g(ye,O),ye.forEach(s),R=C(Te),D=_(Te,"TD",{});var Pe=m(D);Q(h.$$.fragment,Pe),Pe.forEach(s),Te.forEach(s),B=C(v),w=_(v,"TR",{"data-testid":!0});var Ae=m(w);z=_(Ae,"TD",{});var Be=m(z);Z=g(Be,F),Be.forEach(s),A=C(Ae),S=_(Ae,"TD",{});var Oe=m(S);d=g(Oe,q),Oe.forEach(s),Ae.forEach(s),k=C(v),U=_(v,"TR",{"data-testid":!0});var ke=m(U);x=_(ke,"TD",{});var Ue=m(x);ae=g(Ue,_e),Ue.forEach(s),ee=C(ke),te=_(ke,"TD",{});var je=m(te);Q(G.$$.fragment,je),je.forEach(s),ke.forEach(s),le=C(v),se=_(v,"TR",{"data-testid":!0});var Re=m(se);me=_(Re,"TD",{});var Fe=m(me);de=g(Fe,Ie),Fe.forEach(s),re=C(Re),ie=_(Re,"TD",{});var at=m(ie);Q($.$$.fragment,at),at.forEach(s),Re.forEach(s),H=C(v),K=_(v,"TR",{"data-testid":!0});var We=m(K);oe=_(We,"TD",{});var st=m(oe);ce=g(st,fe),st.forEach(s),ue=C(We),pe=_(We,"TD",{});var rt=m(pe);ge=g(rt,he),rt.forEach(s),We.forEach(s),$e=C(v),ne=_(v,"TR",{"data-testid":!0});var qe=m(ne);ve=_(qe,"TD",{});var ot=m(ve);Ce=g(ot,De),ot.forEach(s),Se=C(qe),Le=_(qe,"TD",{});var nt=m(Le);Ge=g(nt,o[1]),nt.forEach(s),qe.forEach(s),this.h()},h(){V(e,"data-testid","namespace-owner"),V(T,"data-testid","namespace-global"),V(w,"data-testid","namespace-retention"),V(U,"data-testid","namespace-history"),V(se,"data-testid","namespace-visibility"),V(K,"data-testid","namespace-failover"),V(ne,"data-testid","namespace-clusters")},m(v,L){E(v,e,L),f(e,l),f(l,a),f(e,r),f(e,i),f(i,n),E(v,c,L),E(v,T,L),f(T,y),f(y,P),f(T,R),f(T,D),X(h,D,null),E(v,B,L),E(v,w,L),f(w,z),f(z,Z),f(w,A),f(w,S),f(S,d),E(v,k,L),E(v,U,L),f(U,x),f(x,ae),f(U,ee),f(U,te),X(G,te,null),E(v,le,L),E(v,se,L),f(se,me),f(me,de),f(se,re),f(se,ie),X($,ie,null),E(v,H,L),E(v,K,L),f(K,oe),f(oe,ce),f(K,ue),f(K,pe),f(pe,ge),E(v,$e,L),E(v,ne,L),f(ne,ve),f(ve,Ce),f(ne,Se),f(ne,Le),f(Le,Ge),Ee=!0},p(v,L){var ye,Pe,Ae,Be,Oe,ke,Ue,je,Re,Fe;(!Ee||L&1)&&u!==(u=(((Pe=(ye=v[0])==null?void 0:ye.namespaceInfo)==null?void 0:Pe.ownerEmail)||N("common.unknown"))+"")&&M(n,u);const He={};L&1&&(He.type=v[8]((Ae=v[0])==null?void 0:Ae.isGlobalNamespace,!1)),L&131073&&(He.$$scope={dirty:L,ctx:v}),h.$set(He),(!Ee||L&1)&&q!==(q=it((Oe=(Be=v[0])==null?void 0:Be.config)==null?void 0:Oe.workflowExecutionRetentionTtl.toString())+"")&&M(d,q);const Ne={};L&1&&(Ne.type=v[7]((Ue=(ke=v[0])==null?void 0:ke.config)==null?void 0:Ue.historyArchivalState)),L&131073&&(Ne.$$scope={dirty:L,ctx:v}),G.$set(Ne);const Te={};L&1&&(Te.type=v[7]((Re=(je=v[0])==null?void 0:je.config)==null?void 0:Re.visibilityArchivalState)),L&131073&&(Te.$$scope={dirty:L,ctx:v}),$.$set(Te),(!Ee||L&1)&&he!==(he=((Fe=v[0])==null?void 0:Fe.failoverVersion)+"")&&M(ge,he),(!Ee||L&2)&&M(Ge,v[1])},i(v){Ee||(j(h.$$.fragment,v),j(G.$$.fragment,v),j($.$$.fragment,v),Ee=!0)},o(v){W(h.$$.fragment,v),W(G.$$.fragment,v),W($.$$.fragment,v),Ee=!1},d(v){v&&s(e),v&&s(c),v&&s(T),Y(h),v&&s(B),v&&s(w),v&&s(k),v&&s(U),Y(G),v&&s(le),v&&s(se),Y($),v&&s(H),v&&s(K),v&&s($e),v&&s(ne)}}}function Bt(o){let e,l=`${N("namespaces.namespace")} ${N("common.details")}`,t;return{c(){e=p("caption"),t=b(l),this.h()},l(a){e=_(a,"CAPTION",{class:!0,slot:!0});var r=m(e);t=g(r,l),r.forEach(s),this.h()},h(){V(e,"class","sr-only"),V(e,"slot","caption")},m(a,r){E(a,e,r),f(e,t)},p:be,d(a){a&&s(e)}}}function Ot(o){let e,l,t;return{c(){e=p("tr"),l=p("th"),t=p("th"),this.h()},l(a){e=_(a,"TR",{slot:!0});var r=m(e);l=_(r,"TH",{class:!0}),m(l).forEach(s),t=_(r,"TH",{}),m(t).forEach(s),r.forEach(s),this.h()},h(){V(l,"class","w-1/2 lg:w-3/5"),V(e,"slot","headers")},m(a,r){E(a,e,r),f(e,l),f(e,t)},p:be,d(a){a&&s(e)}}}function Ut(o){let e,l,t,a,r,i,u,n,c,T,y,O,P;return{c(){e=p("tr"),l=p("td"),t=b("Temporal Server Version"),a=I(),r=p("td"),i=b(o[3]),u=I(),n=p("tr"),c=p("td"),T=b("Temporal UI Version"),y=I(),O=p("td"),P=b(o[4]),this.h()},l(R){e=_(R,"TR",{"data-testid":!0});var D=m(e);l=_(D,"TD",{});var h=m(l);t=g(h,"Temporal Server Version"),h.forEach(s),a=C(D),r=_(D,"TD",{});var B=m(r);i=g(B,o[3]),B.forEach(s),D.forEach(s),u=C(R),n=_(R,"TR",{"data-testid":!0});var w=m(n);c=_(w,"TD",{});var z=m(c);T=g(z,"Temporal UI Version"),z.forEach(s),y=C(w),O=_(w,"TD",{});var F=m(O);P=g(F,o[4]),F.forEach(s),w.forEach(s),this.h()},h(){V(e,"data-testid","server-version"),V(n,"data-testid","ui-version")},m(R,D){E(R,e,D),f(e,l),f(l,t),f(e,a),f(e,r),f(r,i),E(R,u,D),E(R,n,D),f(n,c),f(c,T),f(n,y),f(n,O),f(O,P)},p(R,D){D&8&&M(i,R[3]),D&16&&M(P,R[4])},d(R){R&&s(e),R&&s(u),R&&s(n)}}}function jt(o){let e,l=N("namespaces.versions")+"",t;return{c(){e=p("caption"),t=b(l),this.h()},l(a){e=_(a,"CAPTION",{class:!0,slot:!0});var r=m(e);t=g(r,l),r.forEach(s),this.h()},h(){V(e,"class","sr-only"),V(e,"slot","caption")},m(a,r){E(a,e,r),f(e,t)},p:be,d(a){a&&s(e)}}}function Ft(o){let e,l,t;return{c(){e=p("tr"),l=p("th"),t=p("th"),this.h()},l(a){e=_(a,"TR",{slot:!0});var r=m(e);l=_(r,"TH",{class:!0}),m(l).forEach(s),t=_(r,"TH",{}),m(t).forEach(s),r.forEach(s),this.h()},h(){V(l,"class","w-1/2 lg:w-3/4"),V(e,"slot","headers")},m(a,r){E(a,e,r),f(e,l),f(e,t)},p:be,d(a){a&&s(e)}}}function Gt(o){let e=o[9](o[5].disableWriteActions)+"",l;return{c(){l=b(e)},l(t){l=g(t,e)},m(t,a){E(t,l,a)},p(t,a){a&32&&e!==(e=t[9](t[5].disableWriteActions)+"")&&M(l,e)},d(t){t&&s(l)}}}function Wt(o){let e=o[9](o[5].workflowTerminateDisabled)+"",l;return{c(){l=b(e)},l(t){l=g(t,e)},m(t,a){E(t,l,a)},p(t,a){a&32&&e!==(e=t[9](t[5].workflowTerminateDisabled)+"")&&M(l,e)},d(t){t&&s(l)}}}function qt(o){let e=o[9](o[5].workflowCancelDisabled)+"",l;return{c(){l=b(e)},l(t){l=g(t,e)},m(t,a){E(t,l,a)},p(t,a){a&32&&e!==(e=t[9](t[5].workflowCancelDisabled)+"")&&M(l,e)},d(t){t&&s(l)}}}function zt(o){let e=o[9](o[5].workflowSignalDisabled)+"",l;return{c(){l=b(e)},l(t){l=g(t,e)},m(t,a){E(t,l,a)},p(t,a){a&32&&e!==(e=t[9](t[5].workflowSignalDisabled)+"")&&M(l,e)},d(t){t&&s(l)}}}function Mt(o){let e=o[9](o[5].workflowResetDisabled)+"",l;return{c(){l=b(e)},l(t){l=g(t,e)},m(t,a){E(t,l,a)},p(t,a){a&32&&e!==(e=t[9](t[5].workflowResetDisabled)+"")&&M(l,e)},d(t){t&&s(l)}}}function Kt(o){let e,l,t=N("namespaces.client-actions")+"",a,r,i,u,n,c,T,y=N("workflows.terminate-modal-title")+"",O,P,R,D,h,B,w,z=N("workflows.cancel-modal-title")+"",F,Z,A,S,q,d,k,U=N("namespaces.signal-workflow")+"",x,_e,ae,ee,te,G,le,se=N("workflows.reset-modal-title")+"",me,Ie,de,re,ie;return u=new we({props:{class:"px-1 py-0",type:o[8](o[5].disableWriteActions),$$slots:{default:[Gt]},$$scope:{ctx:o}}}),D=new we({props:{class:"px-1 py-0",type:o[8](o[5].workflowTerminateDisabled),$$slots:{default:[Wt]},$$scope:{ctx:o}}}),S=new we({props:{class:"px-1 py-0",type:o[8](o[5].workflowCancelDisabled),$$slots:{default:[qt]},$$scope:{ctx:o}}}),ee=new we({props:{class:"px-1 py-0",type:o[8](o[5].workflowSignalDisabled),$$slots:{default:[zt]},$$scope:{ctx:o}}}),re=new we({props:{class:"px-1 py-0",type:o[8](o[5].workflowResetDisabled),$$slots:{default:[Mt]},$$scope:{ctx:o}}}),{c(){e=p("tr"),l=p("td"),a=b(t),r=I(),i=p("td"),J(u.$$.fragment),n=I(),c=p("tr"),T=p("td"),O=b(y),P=I(),R=p("td"),J(D.$$.fragment),h=I(),B=p("tr"),w=p("td"),F=b(z),Z=I(),A=p("td"),J(S.$$.fragment),q=I(),d=p("tr"),k=p("td"),x=b(U),_e=I(),ae=p("td"),J(ee.$$.fragment),te=I(),G=p("tr"),le=p("td"),me=b(se),Ie=I(),de=p("td"),J(re.$$.fragment)},l($){e=_($,"TR",{});var H=m(e);l=_(H,"TD",{});var K=m(l);a=g(K,t),K.forEach(s),r=C(H),i=_(H,"TD",{});var oe=m(i);Q(u.$$.fragment,oe),oe.forEach(s),H.forEach(s),n=C($),c=_($,"TR",{});var fe=m(c);T=_(fe,"TD",{});var ce=m(T);O=g(ce,y),ce.forEach(s),P=C(fe),R=_(fe,"TD",{});var ue=m(R);Q(D.$$.fragment,ue),ue.forEach(s),fe.forEach(s),h=C($),B=_($,"TR",{});var pe=m(B);w=_(pe,"TD",{});var he=m(w);F=g(he,z),he.forEach(s),Z=C(pe),A=_(pe,"TD",{});var ge=m(A);Q(S.$$.fragment,ge),ge.forEach(s),pe.forEach(s),q=C($),d=_($,"TR",{});var $e=m(d);k=_($e,"TD",{});var ne=m(k);x=g(ne,U),ne.forEach(s),_e=C($e),ae=_($e,"TD",{});var ve=m(ae);Q(ee.$$.fragment,ve),ve.forEach(s),$e.forEach(s),te=C($),G=_($,"TR",{});var De=m(G);le=_(De,"TD",{});var Ce=m(le);me=g(Ce,se),Ce.forEach(s),Ie=C(De),de=_(De,"TD",{});var Se=m(de);Q(re.$$.fragment,Se),Se.forEach(s),De.forEach(s)},m($,H){E($,e,H),f(e,l),f(l,a),f(e,r),f(e,i),X(u,i,null),E($,n,H),E($,c,H),f(c,T),f(T,O),f(c,P),f(c,R),X(D,R,null),E($,h,H),E($,B,H),f(B,w),f(w,F),f(B,Z),f(B,A),X(S,A,null),E($,q,H),E($,d,H),f(d,k),f(k,x),f(d,_e),f(d,ae),X(ee,ae,null),E($,te,H),E($,G,H),f(G,le),f(le,me),f(G,Ie),f(G,de),X(re,de,null),ie=!0},p($,H){const K={};H&32&&(K.type=$[8]($[5].disableWriteActions)),H&131104&&(K.$$scope={dirty:H,ctx:$}),u.$set(K);const oe={};H&32&&(oe.type=$[8]($[5].workflowTerminateDisabled)),H&131104&&(oe.$$scope={dirty:H,ctx:$}),D.$set(oe);const fe={};H&32&&(fe.type=$[8]($[5].workflowCancelDisabled)),H&131104&&(fe.$$scope={dirty:H,ctx:$}),S.$set(fe);const ce={};H&32&&(ce.type=$[8]($[5].workflowSignalDisabled)),H&131104&&(ce.$$scope={dirty:H,ctx:$}),ee.$set(ce);const ue={};H&32&&(ue.type=$[8]($[5].workflowResetDisabled)),H&131104&&(ue.$$scope={dirty:H,ctx:$}),re.$set(ue)},i($){ie||(j(u.$$.fragment,$),j(D.$$.fragment,$),j(S.$$.fragment,$),j(ee.$$.fragment,$),j(re.$$.fragment,$),ie=!0)},o($){W(u.$$.fragment,$),W(D.$$.fragment,$),W(S.$$.fragment,$),W(ee.$$.fragment,$),W(re.$$.fragment,$),ie=!1},d($){$&&s(e),Y(u),$&&s(n),$&&s(c),Y(D),$&&s(h),$&&s(B),Y(S),$&&s(q),$&&s(d),Y(ee),$&&s(te),$&&s(G),Y(re)}}}function Jt(o){let e,l=N("namespaces.client-actions")+"",t;return{c(){e=p("caption"),t=b(l),this.h()},l(a){e=_(a,"CAPTION",{class:!0,slot:!0});var r=m(e);t=g(r,l),r.forEach(s),this.h()},h(){V(e,"class","sr-only"),V(e,"slot","caption")},m(a,r){E(a,e,r),f(e,t)},p:be,d(a){a&&s(e)}}}function Qt(o){let e,l,t;return{c(){e=p("tr"),l=p("th"),t=p("th"),this.h()},l(a){e=_(a,"TR",{slot:!0});var r=m(e);l=_(r,"TH",{class:!0}),m(l).forEach(s),t=_(r,"TH",{}),m(t).forEach(s),r.forEach(s),this.h()},h(){V(l,"class","w-1/2 lg:w-3/5"),V(e,"slot","headers")},m(a,r){E(a,e,r),f(e,l),f(e,t)},p:be,d(a){a&&s(e)}}}function Xt(o){let e,l,t=N("common.details")+"",a,r,i,u,n,c,T=N("namespaces.versions")+"",y,O,P,R,D,h,B=N("namespaces.client-actions")+"",w,z,F,Z;return i=new ze({props:{variant:"simple",$$slots:{headers:[Ot],caption:[Bt],default:[Pt]},$$scope:{ctx:o}}}),P=new ze({props:{variant:"simple",$$slots:{headers:[Ft],caption:[jt],default:[Ut]},$$scope:{ctx:o}}}),F=new ze({props:{variant:"simple",$$slots:{headers:[Qt],caption:[Jt],default:[Kt]},$$scope:{ctx:o}}}),{c(){e=p("article"),l=p("h3"),a=b(t),r=I(),J(i.$$.fragment),u=I(),n=p("article"),c=p("h3"),y=b(T),O=I(),J(P.$$.fragment),R=I(),D=p("article"),h=p("h3"),w=b(B),z=I(),J(F.$$.fragment),this.h()},l(A){e=_(A,"ARTICLE",{class:!0});var S=m(e);l=_(S,"H3",{class:!0});var q=m(l);a=g(q,t),q.forEach(s),r=C(S),Q(i.$$.fragment,S),S.forEach(s),u=C(A),n=_(A,"ARTICLE",{class:!0});var d=m(n);c=_(d,"H3",{class:!0});var k=m(c);y=g(k,T),k.forEach(s),O=C(d),Q(P.$$.fragment,d),d.forEach(s),R=C(A),D=_(A,"ARTICLE",{class:!0});var U=m(D);h=_(U,"H3",{class:!0});var x=m(h);w=g(x,B),x.forEach(s),z=C(U),Q(F.$$.fragment,U),U.forEach(s),this.h()},h(){V(l,"class","text-lg font-medium"),V(e,"class","namespace-info flex w-full flex-col"),V(c,"class","text-lg font-medium"),V(n,"class","namespace-info flex w-full flex-col"),V(h,"class","text-lg font-medium"),V(D,"class","namespace-info flex w-full flex-col")},m(A,S){E(A,e,S),f(e,l),f(l,a),f(e,r),X(i,e,null),E(A,u,S),E(A,n,S),f(n,c),f(c,y),f(n,O),X(P,n,null),E(A,R,S),E(A,D,S),f(D,h),f(h,w),f(D,z),X(F,D,null),Z=!0},p(A,S){const q={};S&131075&&(q.$$scope={dirty:S,ctx:A}),i.$set(q);const d={};S&131096&&(d.$$scope={dirty:S,ctx:A}),P.$set(d);const k={};S&131104&&(k.$$scope={dirty:S,ctx:A}),F.$set(k)},i(A){Z||(j(i.$$.fragment,A),j(P.$$.fragment,A),j(F.$$.fragment,A),Z=!0)},o(A){W(i.$$.fragment,A),W(P.$$.fragment,A),W(F.$$.fragment,A),Z=!1},d(A){A&&s(e),Y(i),A&&s(u),A&&s(n),Y(P),A&&s(R),A&&s(D),Y(F)}}}function ut(o){let e,l,t=N("events.attribute-group.search-attributes")+"",a,r,i,u;return i=new ze({props:{class:"w-full",$$slots:{headers:[tl],caption:[xt],default:[Zt]},$$scope:{ctx:o}}}),{c(){e=p("section"),l=p("h3"),a=b(t),r=I(),J(i.$$.fragment),this.h()},l(n){e=_(n,"SECTION",{});var c=m(e);l=_(c,"H3",{class:!0});var T=m(l);a=g(T,t),T.forEach(s),r=C(c),Q(i.$$.fragment,c),c.forEach(s),this.h()},h(){V(l,"class","my-4 text-lg font-medium")},m(n,c){E(n,e,c),f(e,l),f(l,a),f(e,r),X(i,e,null),u=!0},p(n,c){const T={};c&131136&&(T.$$scope={dirty:c,ctx:n}),i.$set(T)},i(n){u||(j(i.$$.fragment,n),u=!0)},o(n){W(i.$$.fragment,n),u=!1},d(n){n&&s(e),Y(i)}}}function Yt(o){let e,l=o[13]+"",t,a,r,i=o[14]+"",u,n;return{c(){e=p("td"),t=b(l),a=I(),r=p("td"),u=b(i),n=I()},l(c){e=_(c,"TD",{});var T=m(e);t=g(T,l),T.forEach(s),a=C(c),r=_(c,"TD",{});var y=m(r);u=g(y,i),y.forEach(s),n=C(c)},m(c,T){E(c,e,T),f(e,t),E(c,a,T),E(c,r,T),f(r,u),E(c,n,T)},p(c,T){T&64&&l!==(l=c[13]+"")&&M(t,l),T&64&&i!==(i=c[14]+"")&&M(u,i)},d(c){c&&s(e),c&&s(a),c&&s(r),c&&s(n)}}}function pt(o){let e,l;return e=new kt({props:{$$slots:{default:[Yt]},$$scope:{ctx:o}}}),{c(){J(e.$$.fragment)},l(t){Q(e.$$.fragment,t)},m(t,a){X(e,t,a),l=!0},p(t,a){const r={};a&131136&&(r.$$scope={dirty:a,ctx:t}),e.$set(r)},i(t){l||(j(e.$$.fragment,t),l=!0)},o(t){W(e.$$.fragment,t),l=!1},d(t){Y(e,t)}}}function Zt(o){let e,l,t=Object.entries(o[6]),a=[];for(let i=0;iW(a[i],1,1,()=>{a[i]=null});return{c(){for(let i=0;i{w=null}),_t())},i(d){B||(j(e.$$.fragment,d),j(R.$$.fragment,d),j(w),B=!0)},o(d){W(e.$$.fragment,d),W(R.$$.fragment,d),W(w),B=!1},d(d){Y(e,d),d&&s(l),d&&s(t),d&&s(c),d&&s(T),d&&s(P),Y(R,d),d&&s(D),w&&w.d(d),d&&s(h)}}}function al(o,e,l){let t,a,r,i,u,n,c,T;Ve(o,ft,h=>l(12,r=h)),Ve(o,bt,h=>l(2,i=h)),Ve(o,It,h=>l(3,u=h)),Ve(o,Ct,h=>l(4,n=h)),Ve(o,St,h=>l(5,c=h)),Ve(o,Rt,h=>l(6,T=h));let{data:y}=e;var O;(function(h){h[h.ARCHIVAL_STATE_UNSPECIFIED=0]="ARCHIVAL_STATE_UNSPECIFIED",h[h.ARCHIVAL_STATE_DISABLED=1]="ARCHIVAL_STATE_DISABLED",h[h.ARCHIVAL_STATE_ENABLED=2]="ARCHIVAL_STATE_ENABLED"})(O||(O={}));const P=h=>h===O.ARCHIVAL_STATE_ENABLED?"green":"default",R=(h,B=!0)=>B?h?"default":"green":h?"green":"default",D=h=>h?N("common.disabled"):N("common.enabled");return Et(()=>{var h;Tt(ft,r=(h=t==null?void 0:t.namespaceInfo)===null||h===void 0?void 0:h.name,r)}),o.$$set=h=>{"data"in h&&l(10,y=h.data)},o.$$.update=()=>{o.$$.dirty&1024&&l(0,{namespace:t,clusters:a}=y,t,(l(1,a),l(10,y)))},[t,a,i,u,n,c,T,P,R,D,y]}class vl extends $t{constructor(e){super(),ht(this,e,al,ll,vt,{data:10})}}export{vl as component,hl as universal}; diff --git a/ui/assets/local/_app/immutable/nodes/19.b1bb45a9.js b/ui/assets/local/_app/immutable/nodes/19.c1bc9a8f.js similarity index 96% rename from ui/assets/local/_app/immutable/nodes/19.b1bb45a9.js rename to ui/assets/local/_app/immutable/nodes/19.c1bc9a8f.js index 42898102e9..961b87fc19 100644 --- a/ui/assets/local/_app/immutable/nodes/19.b1bb45a9.js +++ b/ui/assets/local/_app/immutable/nodes/19.c1bc9a8f.js @@ -1 +1 @@ -import{a as $e}from"../chunks/namespaces-service.7a2265f4.js";import{e as he}from"../chunks/workflow-service.4d66b505.js";import{S as V,b as M,a as G,m as L,w as I,c as C,C as S,p as q,q as j,x as N,k as d,d as F,D as P,u as y,f as k,L as E,E as T,_ as Z,Q as x,$ as de,y as ge,j as g,g as w,F as A,r as we,K as H,V as be,z as W,h as D,n as Q,A as ke,a0 as ve,a1 as ye,e as B,a7 as pe,aa as Ee,ab as Se}from"../chunks/index.4e2fcbc7.js";import{p as K}from"../chunks/stores.14a97433.js";import{P as Pe}from"../chunks/page-title.f9a44b80.js";import{j as Te,S as Ae,W as Ie,a as Ne}from"../chunks/index.17ebf758.js";import{C as R}from"../chunks/code-block.d389dfc4.js";import{E as Ce}from"../chunks/empty-state.721f6c59.js";import{P as Fe}from"../chunks/pagination.8a23314e.js";import{t as b}from"../chunks/translate.d23a91ae.js";import{g as ee}from"../chunks/navigation.10919bcf.js";import{L as _e}from"../chunks/link.6803bb00.js";import{F as te}from"../chunks/pagination.ee9074bd.js";import{S as Le,a as z}from"../chunks/simple-select.db1acee2.js";import{t as le}from"../chunks/time-format.88312c30.js";import{u as re}from"../chunks/format-time.4f091e0e.js";import{I as qe}from"../chunks/icon.e8aa24c8.js";import{u as je}from"../chunks/update-query-parameters.dc7e7d75.js";const Be=async function({params:f,url:t}){var s,m,v,O,U,J,X,Y;const{searchParams:r}=t;r.has("time-range")||r.set("time-range","1 day");const e=r.get("workflow-id"),l=r.get("workflow-type"),i=r.get("time-range"),n=r.get("status"),a=await $e(f.namespace),o=(v=(m=(s=a.config)==null?void 0:s.historyArchivalUri)==null?void 0:m.toLowerCase())==null?void 0:v.startsWith("s3://"),p=(J=(U=(O=a.config)==null?void 0:O.historyArchivalUri)==null?void 0:U.toLowerCase())==null?void 0:J.startsWith("gs://"),c=o||p,$=c?{}:{workflowId:e,workflowType:l,closeTime:i,executionStatus:n},u=((X=a==null?void 0:a.config)==null?void 0:X.historyArchivalState)==="Enabled",h=((Y=a==null?void 0:a.config)==null?void 0:Y.visibilityArchivalState)==="Enabled",_=u&&h?await he(f.namespace,$,fetch):null;return{workflows:_?_.workflows:[],namespace:a,archivalEnabled:u,visibilityArchivalEnabled:h,archivalQueryingNotSupported:c}},Ct=Object.freeze(Object.defineProperty({__proto__:null,load:Be},Symbol.toStringTag,{value:"Module"}));function Oe(f){let t,r,e,l,i,n,a,o,p,c,$;return n=new qe({props:{name:"search",class:"flex items-center text-gray-700"}}),{c(){t=L("div"),r=L("label"),e=I(f[0]),l=C(),i=L("span"),S(n.$$.fragment),a=C(),o=L("input"),this.h()},l(u){t=q(u,"DIV",{class:!0});var h=j(t);r=q(h,"LABEL",{for:!0,class:!0});var _=j(r);e=N(_,f[0]),_.forEach(d),l=F(h),i=q(h,"SPAN",{class:!0});var s=j(i);P(n.$$.fragment,s),s.forEach(d),a=F(h),o=q(h,"INPUT",{type:!0,class:!0,placeholder:!0,id:!0}),h.forEach(d),this.h()},h(){y(r,"for",f[2]),y(r,"class","hidden"),y(i,"class","svelte-fxm0nn"),y(o,"type","search"),y(o,"class","block w-full focus:outline-none"),y(o,"placeholder",f[0]),y(o,"id",f[2]),y(t,"class","input-container bg-white focus-within:border-blue-700 svelte-fxm0nn")},m(u,h){k(u,t,h),E(t,r),E(r,e),E(t,l),E(t,i),T(n,i,null),E(t,a),E(t,o),Z(o,f[1]),p=!0,c||($=[x(o,"input",f[7]),x(o,"keydown",de(f[6]))],c=!0)},p(u,[h]){(!p||h&1)&&ge(e,u[0]),(!p||h&1)&&y(o,"placeholder",u[0]),h&2&&Z(o,u[1])},i(u){p||(g(n.$$.fragment,u),p=!0)},o(u){w(n.$$.fragment,u),p=!1},d(u){u&&d(t),A(n),c=!1,we($)}}}function We(f,t,r){let e;H(f,K,u=>r(5,e=u));let{parameter:l}=t,{name:i}=t,{value:n}=t,a=l&&e.url.searchParams.get(l)||n;const o=`${l||i}-filter`,p=Te(je,300);function c(u){be.call(this,f,u)}function $(){a=this.value,r(1,a)}return f.$$set=u=>{"parameter"in u&&r(3,l=u.parameter),"name"in u&&r(0,i=u.name),"value"in u&&r(4,n=u.value)},f.$$.update=()=>{f.$$.dirty&42&&p({parameter:l,value:a,url:e.url})},[i,a,o,l,n,e,c,$]}class ae extends V{constructor(t){super(),M(this,t,We,Oe,G,{parameter:3,name:0,value:4})}}function oe(f,t,r){const e=f.slice();return e[7]=t[r].value,e[8]=t[r].label,e}function ne(f,t,r){const e=f.slice();return e[7]=t[r],e}function De(f){let t,r;return t=new _e({props:{class:"text-blue-700",$$slots:{default:[Ue]},$$scope:{ctx:f}}}),t.$on("click",f[5]("advanced")),{c(){S(t.$$.fragment)},l(e){P(t.$$.fragment,e)},m(e,l){T(t,e,l),r=!0},p(e,l){const i={};l&8192&&(i.$$scope={dirty:l,ctx:e}),t.$set(i)},i(e){r||(g(t.$$.fragment,e),r=!0)},o(e){w(t.$$.fragment,e),r=!1},d(e){A(t,e)}}}function Qe(f){let t,r;return t=new _e({props:{href:f[1].url.pathname,$$slots:{default:[ze]},$$scope:{ctx:f}}}),t.$on("click",f[5]("basic")),{c(){S(t.$$.fragment)},l(e){P(t.$$.fragment,e)},m(e,l){T(t,e,l),r=!0},p(e,l){const i={};l&2&&(i.href=e[1].url.pathname),l&8192&&(i.$$scope={dirty:l,ctx:e}),t.$set(i)},i(e){r||(g(t.$$.fragment,e),r=!0)},o(e){w(t.$$.fragment,e),r=!1},d(e){A(t,e)}}}function Ue(f){let t=b("workflows.advanced-search")+"",r;return{c(){r=I(t)},l(e){r=N(e,t)},m(e,l){k(e,r,l)},p:Q,d(e){e&&d(r)}}}function ze(f){let t=b("workflows.basic-search")+"",r;return{c(){r=I(t)},l(e){r=N(e,t)},m(e,l){k(e,r,l)},p:Q,d(e){e&&d(r)}}}function He(f){let t,r,e,l,i,n,a,o,p,c,$,u;r=new ae({props:{parameter:"workflow-id",name:b("common.workflow-id"),value:et}}),l=new ae({props:{parameter:"workflow-type",name:b("common.workflow-type"),value:tt}}),n=new te({props:{label:b("workflows.time-range"),parameter:"time-range",value:"24 hours",$$slots:{default:[Ge]},$$scope:{ctx:f}}}),o=new te({props:{label:b("common.status"),parameter:"status",value:null,$$slots:{default:[Re]},$$scope:{ctx:f}}});function h(s){f[6](s)}let _={id:"filter-by-relative-time",$$slots:{default:[Ze]},$$scope:{ctx:f}};return f[2]!==void 0&&(_.value=f[2]),c=new Le({props:_}),ke.push(()=>ve(c,"value",h)),{c(){t=L("div"),S(r.$$.fragment),e=C(),S(l.$$.fragment),i=C(),S(n.$$.fragment),a=C(),S(o.$$.fragment),p=C(),S(c.$$.fragment),this.h()},l(s){t=q(s,"DIV",{class:!0,role:!0});var m=j(t);P(r.$$.fragment,m),e=F(m),P(l.$$.fragment,m),i=F(m),P(n.$$.fragment,m),a=F(m),P(o.$$.fragment,m),p=F(m),P(c.$$.fragment,m),m.forEach(d),this.h()},h(){y(t,"class","grid grid-cols-1 gap-4 sm:grid-cols-2 md:grid-cols-5"),y(t,"role","search")},m(s,m){k(s,t,m),T(r,t,null),E(t,e),T(l,t,null),E(t,i),T(n,t,null),E(t,a),T(o,t,null),E(t,p),T(c,t,null),u=!0},p(s,m){const v={};m&8192&&(v.$$scope={dirty:m,ctx:s}),n.$set(v);const O={};m&8192&&(O.$$scope={dirty:m,ctx:s}),o.$set(O);const U={};m&8192&&(U.$$scope={dirty:m,ctx:s}),!$&&m&4&&($=!0,U.value=s[2],ye(()=>$=!1)),c.$set(U)},i(s){u||(g(r.$$.fragment,s),g(l.$$.fragment,s),g(n.$$.fragment,s),g(o.$$.fragment,s),g(c.$$.fragment,s),u=!0)},o(s){w(r.$$.fragment,s),w(l.$$.fragment,s),w(n.$$.fragment,s),w(o.$$.fragment,s),w(c.$$.fragment,s),u=!1},d(s){s&&d(t),A(r),A(l),A(n),A(o),A(c)}}}function Ve(f){let t,r;return t=new Ae({props:{icon:!0,placeholder:b("common.search"),value:f[1].url.searchParams.get("query")}}),t.$on("submit",f[4]),{c(){S(t.$$.fragment)},l(e){P(t.$$.fragment,e)},m(e,l){T(t,e,l),r=!0},p(e,l){const i={};l&2&&(i.value=e[1].url.searchParams.get("query")),t.$set(i)},i(e){r||(g(t.$$.fragment,e),r=!0)},o(e){w(t.$$.fragment,e),r=!1},d(e){A(t,e)}}}function Me(f){let t=f[7]+"",r;return{c(){r=I(t)},l(e){r=N(e,t)},m(e,l){k(e,r,l)},p:Q,d(e){e&&d(r)}}}function se(f){let t,r;return t=new z({props:{value:f[7],$$slots:{default:[Me]},$$scope:{ctx:f}}}),{c(){S(t.$$.fragment)},l(e){P(t.$$.fragment,e)},m(e,l){T(t,e,l),r=!0},p(e,l){const i={};l&8192&&(i.$$scope={dirty:l,ctx:e}),t.$set(i)},i(e){r||(g(t.$$.fragment,e),r=!0)},o(e){w(t.$$.fragment,e),r=!1},d(e){A(t,e)}}}function Ge(f){let t,r,e=re,l=[];for(let n=0;nw(l[n],1,1,()=>{l[n]=null});return{c(){for(let n=0;na[8];for(let a=0;a{c[v]=null}),D(),l=c[e],l?l.p(s,m):(l=c[e]=p[e](s),l.c()),g(l,1),l.m(r,null));let O=n;n=_(s),n===O?h[n].p(s,m):(W(),w(h[O],1,1,()=>{h[O]=null}),D(),a=h[n],a?a.p(s,m):(a=h[n]=u[n](s),a.c()),g(a,1),a.m(t,null))},i(s){o||(g(l),g(a),o=!0)},o(s){w(l),w(a),o=!1},d(s){s&&d(t),c[e].d(),h[n].d()}}}let et="",tt="";function lt(f,t,r){let e,l;H(f,K,c=>r(1,e=c)),H(f,le,c=>r(2,l=c));const i={All:{value:null,label:b("workflows.all-statuses")},"Timed Out":{value:"TimedOut",label:b("workflows.timed-out")},Completed:{value:"Completed",label:b("workflows.completed")},Failed:{value:"Failed",label:b("workflows.failed")},"Continued as New":{value:"ContinuedAsNew",label:b("workflows.continued-as-new")},Canceled:{value:"Canceled",label:b("workflows.canceled")},Terminated:{value:"Terminated",label:b("workflows.terminated")}};let n=e.url.searchParams.has("query");const a=c=>{const u=new FormData(c.target).get("query");e.url.searchParams.set("query",String(u)),ee(e.url.toString())},o=c=>$=>{const u=$.target;r(0,n=c==="advanced"),n||e.url.searchParams.delete("query"),ee(u.href)};function p(c){l=c,le.set(l)}return[n,e,l,i,a,o,p]}class rt extends V{constructor(t){super(),M(this,t,lt,xe,G,{})}}function ce(f,t,r){const e=f.slice();return e[8]=t[r],e}function at(f){let t,r=b("workflows.archival-disabled-title")+"",e,l,i,n=b("workflows.archival-disabled-details")+"",a,o,p,c,$,u,h;c=new R({props:{content:`temporal operator namespace update --history-archival-state enabled ${f[4]}`,language:"text",inline:!0,copyIconTitle:b("common.copy-icon-title"),copySuccessIconTitle:b("common.copy-success-icon-title")}});let _=!f[1]&&fe(f);return{c(){t=L("h1"),e=I(r),l=C(),i=L("p"),a=I(n),o=I(":"),p=C(),S(c.$$.fragment),$=C(),_&&_.c(),u=B(),this.h()},l(s){t=q(s,"H1",{class:!0,"data-testid":!0});var m=j(t);e=N(m,r),m.forEach(d),l=F(s),i=q(s,"P",{});var v=j(i);a=N(v,n),o=N(v,":"),v.forEach(d),p=F(s),P(c.$$.fragment,s),$=F(s),_&&_.l(s),u=B(),this.h()},h(){y(t,"class","text-2xl"),y(t,"data-testid","archived-disabled-title")},m(s,m){k(s,t,m),E(t,e),k(s,l,m),k(s,i,m),E(i,a),E(i,o),k(s,p,m),T(c,s,m),k(s,$,m),_&&_.m(s,m),k(s,u,m),h=!0},p(s,m){const v={};m&16&&(v.content=`temporal operator namespace update --history-archival-state enabled ${s[4]}`),c.$set(v),s[1]?_&&(W(),w(_,1,1,()=>{_=null}),D()):_?(_.p(s,m),m&2&&g(_,1)):(_=fe(s),_.c(),g(_,1),_.m(u.parentNode,u))},i(s){h||(g(c.$$.fragment,s),g(_),h=!0)},o(s){w(c.$$.fragment,s),w(_),h=!1},d(s){s&&d(t),s&&d(l),s&&d(i),s&&d(p),A(c,s),s&&d($),_&&_.d(s),s&&d(u)}}}function ot(f){let t,r=b("workflows.visibility-disabled-archival")+"",e,l,i,n=b("workflows.archival-link-preface")+"",a,o,p=b("workflows.archival-link")+"",c,$,u,h,_;return h=new R({props:{content:`temporal operator namespace update --visibility-archival-state enabled ${f[4]}`,language:"text",inline:!0,copyIconTitle:b("common.copy-icon-title"),copySuccessIconTitle:b("common.copy-success-icon-title")}}),{c(){t=L("h1"),e=I(r),l=C(),i=L("p"),a=I(n),o=L("a"),c=I(p),$=I(":"),u=C(),S(h.$$.fragment),this.h()},l(s){t=q(s,"H1",{class:!0,"data-testid":!0});var m=j(t);e=N(m,r),m.forEach(d),l=F(s),i=q(s,"P",{});var v=j(i);a=N(v,n),o=q(v,"A",{class:!0,href:!0,target:!0,rel:!0});var O=j(o);c=N(O,p),O.forEach(d),$=N(v,":"),v.forEach(d),u=F(s),P(h.$$.fragment,s),this.h()},h(){y(t,"class","text-2xl"),y(t,"data-testid","visibility-disabled-title"),y(o,"class","text-blue-700 underline"),y(o,"href","https://docs.temporal.io/clusters#archival"),y(o,"target","_blank"),y(o,"rel","noreferrer")},m(s,m){k(s,t,m),E(t,e),k(s,l,m),k(s,i,m),E(i,a),E(i,o),E(o,c),E(i,$),k(s,u,m),T(h,s,m),_=!0},p(s,m){const v={};m&16&&(v.content=`temporal operator namespace update --visibility-archival-state enabled ${s[4]}`),h.$set(v)},i(s){_||(g(h.$$.fragment,s),_=!0)},o(s){w(h.$$.fragment,s),_=!1},d(s){s&&d(t),s&&d(l),s&&d(i),s&&d(u),A(h,s)}}}function nt(f){let t,r=b("workflows.archived-workflows")+"",e,l,i,n,a,o,p,c=!f[0]&&ue();const $=[it,st],u=[];function h(_,s){var m;return(m=_[3])!=null&&m.length?0:1}return n=h(f),a=u[n]=$[n](f),{c(){t=L("h1"),e=I(r),l=C(),c&&c.c(),i=C(),a.c(),o=B(),this.h()},l(_){t=q(_,"H1",{class:!0,"data-testid":!0});var s=j(t);e=N(s,r),s.forEach(d),l=F(_),c&&c.l(_),i=F(_),a.l(_),o=B(),this.h()},h(){y(t,"class","text-2xl"),y(t,"data-testid","archived-enabled-title")},m(_,s){k(_,t,s),E(t,e),k(_,l,s),c&&c.m(_,s),k(_,i,s),u[n].m(_,s),k(_,o,s),p=!0},p(_,s){_[0]?c&&(W(),w(c,1,1,()=>{c=null}),D()):c?s&1&&g(c,1):(c=ue(),c.c(),g(c,1),c.m(i.parentNode,i));let m=n;n=h(_),n===m?u[n].p(_,s):(W(),w(u[m],1,1,()=>{u[m]=null}),D(),a=u[n],a?a.p(_,s):(a=u[n]=$[n](_),a.c()),g(a,1),a.m(o.parentNode,o))},i(_){p||(g(c),g(a),p=!0)},o(_){w(c),w(a),p=!1},d(_){_&&d(t),_&&d(l),c&&c.d(_),_&&d(i),u[n].d(_),_&&d(o)}}}function fe(f){let t,r=b("workflows.archival-link-preface")+"",e,l,i=b("workflows.archival-link")+"",n,a,o,p,c;return p=new R({props:{content:`temporal operator namespace update --visibility-archival-state enabled ${f[4]}`,language:"text",inline:!0,copyIconTitle:b("common.copy-icon-title"),copySuccessIconTitle:b("common.copy-success-icon-title")}}),{c(){t=L("p"),e=I(r),l=L("a"),n=I(i),a=I(":"),o=C(),S(p.$$.fragment),this.h()},l($){t=q($,"P",{});var u=j(t);e=N(u,r),l=q(u,"A",{class:!0,href:!0,target:!0,rel:!0});var h=j(l);n=N(h,i),h.forEach(d),a=N(u,":"),u.forEach(d),o=F($),P(p.$$.fragment,$),this.h()},h(){y(l,"class","text-blue-700 underline"),y(l,"href","https://docs.temporal.io/clusters#archival"),y(l,"target","_blank"),y(l,"rel","noreferrer")},m($,u){k($,t,u),E(t,e),E(t,l),E(l,n),E(t,a),k($,o,u),T(p,$,u),c=!0},p($,u){const h={};u&16&&(h.content=`temporal operator namespace update --visibility-archival-state enabled ${$[4]}`),p.$set(h)},i($){c||(g(p.$$.fragment,$),c=!0)},o($){w(p.$$.fragment,$),c=!1},d($){$&&d(t),$&&d(o),A(p,$)}}}function ue(f){let t,r;return t=new rt({}),{c(){S(t.$$.fragment)},l(e){P(t.$$.fragment,e)},m(e,l){T(t,e,l),r=!0},i(e){r||(g(t.$$.fragment,e),r=!0)},o(e){w(t.$$.fragment,e),r=!1},d(e){A(t,e)}}}function st(f){let t,r;return t=new Ce({props:{title:b("workflows.workflow-empty-state-title"),content:b("workflows.archival-empty-state-description")}}),{c(){S(t.$$.fragment)},l(e){P(t.$$.fragment,e)},m(e,l){T(t,e,l),r=!0},p:Q,i(e){r||(g(t.$$.fragment,e),r=!0)},o(e){w(t.$$.fragment,e),r=!1},d(e){A(t,e)}}}function it(f){let t,r;return t=new Fe({props:{items:f[3],"aria-label":b("workflows.archived-workflows"),pageSizeSelectLabel:b("common.per-page"),previousButtonLabel:b("common.previous"),nextButtonLabel:b("common.next"),$$slots:{default:[ft,({visibleItems:e})=>({7:e}),({visibleItems:e})=>e?128:0]},$$scope:{ctx:f}}}),{c(){S(t.$$.fragment)},l(e){P(t.$$.fragment,e)},m(e,l){T(t,e,l),r=!0},p(e,l){const i={};l&8&&(i.items=e[3]),l&2192&&(i.$$scope={dirty:l,ctx:e}),t.$set(i)},i(e){r||(g(t.$$.fragment,e),r=!0)},o(e){w(t.$$.fragment,e),r=!1},d(e){A(t,e)}}}function me(f){let t,r;return t=new Ne({props:{workflow:f[8],namespace:f[4]}}),{c(){S(t.$$.fragment)},l(e){P(t.$$.fragment,e)},m(e,l){T(t,e,l),r=!0},p(e,l){const i={};l&128&&(i.workflow=e[8]),l&16&&(i.namespace=e[4]),t.$set(i)},i(e){r||(g(t.$$.fragment,e),r=!0)},o(e){w(t.$$.fragment,e),r=!1},d(e){A(t,e)}}}function ct(f){let t,r,e=f[7],l=[];for(let n=0;nw(l[n],1,1,()=>{l[n]=null});return{c(){for(let n=0;n{o[h]=null}),D(),l=o[e],l?l.p(c,$):(l=o[e]=a[e](c),l.c()),g(l,1),l.m(i.parentNode,i))},i(c){n||(g(t.$$.fragment,c),g(l),n=!0)},o(c){w(t.$$.fragment,c),w(l),n=!1},d(c){A(t,c),c&&d(r),o[e].d(c),c&&d(i)}}}function mt(f,t,r){let e,l,i,n,a,o;H(f,K,c=>r(5,o=c));let{data:p}=t;return f.$$set=c=>{"data"in c&&r(6,p=c.data)},f.$$.update=()=>{f.$$.dirty&64&&r(4,{namespace:{namespaceInfo:{name:e}},workflows:l,archivalEnabled:i,visibilityArchivalEnabled:n,archivalQueryingNotSupported:a}=p,e,(r(3,l),r(6,p)),(r(2,i),r(6,p)),(r(1,n),r(6,p)),(r(0,a),r(6,p)))},[a,n,i,l,e,o,p]}class Ft extends V{constructor(t){super(),M(this,t,mt,ut,G,{data:6})}}export{Ft as component,Ct as universal}; +import{a as $e}from"../chunks/namespaces-service.5b7524c9.js";import{e as he}from"../chunks/workflow-service.e2f4a06b.js";import{S as V,b as M,a as G,m as L,w as I,c as C,C as S,p as q,q as j,x as N,k as d,d as F,D as P,u as y,f as k,L as E,E as T,_ as Z,Q as x,$ as de,y as ge,j as g,g as w,F as A,r as we,K as H,V as be,z as W,h as D,n as Q,A as ke,a0 as ve,a1 as ye,e as B,a7 as pe,aa as Ee,ab as Se}from"../chunks/index.4e2fcbc7.js";import{p as K}from"../chunks/stores.0e7b7e35.js";import{P as Pe}from"../chunks/page-title.f9a44b80.js";import{j as Te,S as Ae,W as Ie,a as Ne}from"../chunks/index.1ccf1fb0.js";import{C as R}from"../chunks/code-block.55adac36.js";import{E as Ce}from"../chunks/empty-state.721f6c59.js";import{P as Fe}from"../chunks/pagination.605d1f82.js";import{t as b}from"../chunks/translate.d23a91ae.js";import{g as ee}from"../chunks/navigation.b77a045a.js";import{L as _e}from"../chunks/link.6803bb00.js";import{F as te}from"../chunks/pagination.aba14fc4.js";import{S as Le,a as z}from"../chunks/simple-select.db1acee2.js";import{t as le}from"../chunks/time-format.fa373b4c.js";import{u as re}from"../chunks/format-time.4f091e0e.js";import{I as qe}from"../chunks/icon.e8aa24c8.js";import{u as je}from"../chunks/update-query-parameters.64a6ca26.js";const Be=async function({params:f,url:t}){var s,m,v,O,U,J,X,Y;const{searchParams:r}=t;r.has("time-range")||r.set("time-range","1 day");const e=r.get("workflow-id"),l=r.get("workflow-type"),i=r.get("time-range"),n=r.get("status"),a=await $e(f.namespace),o=(v=(m=(s=a.config)==null?void 0:s.historyArchivalUri)==null?void 0:m.toLowerCase())==null?void 0:v.startsWith("s3://"),p=(J=(U=(O=a.config)==null?void 0:O.historyArchivalUri)==null?void 0:U.toLowerCase())==null?void 0:J.startsWith("gs://"),c=o||p,$=c?{}:{workflowId:e,workflowType:l,closeTime:i,executionStatus:n},u=((X=a==null?void 0:a.config)==null?void 0:X.historyArchivalState)==="Enabled",h=((Y=a==null?void 0:a.config)==null?void 0:Y.visibilityArchivalState)==="Enabled",_=u&&h?await he(f.namespace,$,fetch):null;return{workflows:_?_.workflows:[],namespace:a,archivalEnabled:u,visibilityArchivalEnabled:h,archivalQueryingNotSupported:c}},Ct=Object.freeze(Object.defineProperty({__proto__:null,load:Be},Symbol.toStringTag,{value:"Module"}));function Oe(f){let t,r,e,l,i,n,a,o,p,c,$;return n=new qe({props:{name:"search",class:"flex items-center text-gray-700"}}),{c(){t=L("div"),r=L("label"),e=I(f[0]),l=C(),i=L("span"),S(n.$$.fragment),a=C(),o=L("input"),this.h()},l(u){t=q(u,"DIV",{class:!0});var h=j(t);r=q(h,"LABEL",{for:!0,class:!0});var _=j(r);e=N(_,f[0]),_.forEach(d),l=F(h),i=q(h,"SPAN",{class:!0});var s=j(i);P(n.$$.fragment,s),s.forEach(d),a=F(h),o=q(h,"INPUT",{type:!0,class:!0,placeholder:!0,id:!0}),h.forEach(d),this.h()},h(){y(r,"for",f[2]),y(r,"class","hidden"),y(i,"class","svelte-fxm0nn"),y(o,"type","search"),y(o,"class","block w-full focus:outline-none"),y(o,"placeholder",f[0]),y(o,"id",f[2]),y(t,"class","input-container bg-white focus-within:border-blue-700 svelte-fxm0nn")},m(u,h){k(u,t,h),E(t,r),E(r,e),E(t,l),E(t,i),T(n,i,null),E(t,a),E(t,o),Z(o,f[1]),p=!0,c||($=[x(o,"input",f[7]),x(o,"keydown",de(f[6]))],c=!0)},p(u,[h]){(!p||h&1)&&ge(e,u[0]),(!p||h&1)&&y(o,"placeholder",u[0]),h&2&&Z(o,u[1])},i(u){p||(g(n.$$.fragment,u),p=!0)},o(u){w(n.$$.fragment,u),p=!1},d(u){u&&d(t),A(n),c=!1,we($)}}}function We(f,t,r){let e;H(f,K,u=>r(5,e=u));let{parameter:l}=t,{name:i}=t,{value:n}=t,a=l&&e.url.searchParams.get(l)||n;const o=`${l||i}-filter`,p=Te(je,300);function c(u){be.call(this,f,u)}function $(){a=this.value,r(1,a)}return f.$$set=u=>{"parameter"in u&&r(3,l=u.parameter),"name"in u&&r(0,i=u.name),"value"in u&&r(4,n=u.value)},f.$$.update=()=>{f.$$.dirty&42&&p({parameter:l,value:a,url:e.url})},[i,a,o,l,n,e,c,$]}class ae extends V{constructor(t){super(),M(this,t,We,Oe,G,{parameter:3,name:0,value:4})}}function oe(f,t,r){const e=f.slice();return e[7]=t[r].value,e[8]=t[r].label,e}function ne(f,t,r){const e=f.slice();return e[7]=t[r],e}function De(f){let t,r;return t=new _e({props:{class:"text-blue-700",$$slots:{default:[Ue]},$$scope:{ctx:f}}}),t.$on("click",f[5]("advanced")),{c(){S(t.$$.fragment)},l(e){P(t.$$.fragment,e)},m(e,l){T(t,e,l),r=!0},p(e,l){const i={};l&8192&&(i.$$scope={dirty:l,ctx:e}),t.$set(i)},i(e){r||(g(t.$$.fragment,e),r=!0)},o(e){w(t.$$.fragment,e),r=!1},d(e){A(t,e)}}}function Qe(f){let t,r;return t=new _e({props:{href:f[1].url.pathname,$$slots:{default:[ze]},$$scope:{ctx:f}}}),t.$on("click",f[5]("basic")),{c(){S(t.$$.fragment)},l(e){P(t.$$.fragment,e)},m(e,l){T(t,e,l),r=!0},p(e,l){const i={};l&2&&(i.href=e[1].url.pathname),l&8192&&(i.$$scope={dirty:l,ctx:e}),t.$set(i)},i(e){r||(g(t.$$.fragment,e),r=!0)},o(e){w(t.$$.fragment,e),r=!1},d(e){A(t,e)}}}function Ue(f){let t=b("workflows.advanced-search")+"",r;return{c(){r=I(t)},l(e){r=N(e,t)},m(e,l){k(e,r,l)},p:Q,d(e){e&&d(r)}}}function ze(f){let t=b("workflows.basic-search")+"",r;return{c(){r=I(t)},l(e){r=N(e,t)},m(e,l){k(e,r,l)},p:Q,d(e){e&&d(r)}}}function He(f){let t,r,e,l,i,n,a,o,p,c,$,u;r=new ae({props:{parameter:"workflow-id",name:b("common.workflow-id"),value:et}}),l=new ae({props:{parameter:"workflow-type",name:b("common.workflow-type"),value:tt}}),n=new te({props:{label:b("workflows.time-range"),parameter:"time-range",value:"24 hours",$$slots:{default:[Ge]},$$scope:{ctx:f}}}),o=new te({props:{label:b("common.status"),parameter:"status",value:null,$$slots:{default:[Re]},$$scope:{ctx:f}}});function h(s){f[6](s)}let _={id:"filter-by-relative-time",$$slots:{default:[Ze]},$$scope:{ctx:f}};return f[2]!==void 0&&(_.value=f[2]),c=new Le({props:_}),ke.push(()=>ve(c,"value",h)),{c(){t=L("div"),S(r.$$.fragment),e=C(),S(l.$$.fragment),i=C(),S(n.$$.fragment),a=C(),S(o.$$.fragment),p=C(),S(c.$$.fragment),this.h()},l(s){t=q(s,"DIV",{class:!0,role:!0});var m=j(t);P(r.$$.fragment,m),e=F(m),P(l.$$.fragment,m),i=F(m),P(n.$$.fragment,m),a=F(m),P(o.$$.fragment,m),p=F(m),P(c.$$.fragment,m),m.forEach(d),this.h()},h(){y(t,"class","grid grid-cols-1 gap-4 sm:grid-cols-2 md:grid-cols-5"),y(t,"role","search")},m(s,m){k(s,t,m),T(r,t,null),E(t,e),T(l,t,null),E(t,i),T(n,t,null),E(t,a),T(o,t,null),E(t,p),T(c,t,null),u=!0},p(s,m){const v={};m&8192&&(v.$$scope={dirty:m,ctx:s}),n.$set(v);const O={};m&8192&&(O.$$scope={dirty:m,ctx:s}),o.$set(O);const U={};m&8192&&(U.$$scope={dirty:m,ctx:s}),!$&&m&4&&($=!0,U.value=s[2],ye(()=>$=!1)),c.$set(U)},i(s){u||(g(r.$$.fragment,s),g(l.$$.fragment,s),g(n.$$.fragment,s),g(o.$$.fragment,s),g(c.$$.fragment,s),u=!0)},o(s){w(r.$$.fragment,s),w(l.$$.fragment,s),w(n.$$.fragment,s),w(o.$$.fragment,s),w(c.$$.fragment,s),u=!1},d(s){s&&d(t),A(r),A(l),A(n),A(o),A(c)}}}function Ve(f){let t,r;return t=new Ae({props:{icon:!0,placeholder:b("common.search"),value:f[1].url.searchParams.get("query")}}),t.$on("submit",f[4]),{c(){S(t.$$.fragment)},l(e){P(t.$$.fragment,e)},m(e,l){T(t,e,l),r=!0},p(e,l){const i={};l&2&&(i.value=e[1].url.searchParams.get("query")),t.$set(i)},i(e){r||(g(t.$$.fragment,e),r=!0)},o(e){w(t.$$.fragment,e),r=!1},d(e){A(t,e)}}}function Me(f){let t=f[7]+"",r;return{c(){r=I(t)},l(e){r=N(e,t)},m(e,l){k(e,r,l)},p:Q,d(e){e&&d(r)}}}function se(f){let t,r;return t=new z({props:{value:f[7],$$slots:{default:[Me]},$$scope:{ctx:f}}}),{c(){S(t.$$.fragment)},l(e){P(t.$$.fragment,e)},m(e,l){T(t,e,l),r=!0},p(e,l){const i={};l&8192&&(i.$$scope={dirty:l,ctx:e}),t.$set(i)},i(e){r||(g(t.$$.fragment,e),r=!0)},o(e){w(t.$$.fragment,e),r=!1},d(e){A(t,e)}}}function Ge(f){let t,r,e=re,l=[];for(let n=0;nw(l[n],1,1,()=>{l[n]=null});return{c(){for(let n=0;na[8];for(let a=0;a{c[v]=null}),D(),l=c[e],l?l.p(s,m):(l=c[e]=p[e](s),l.c()),g(l,1),l.m(r,null));let O=n;n=_(s),n===O?h[n].p(s,m):(W(),w(h[O],1,1,()=>{h[O]=null}),D(),a=h[n],a?a.p(s,m):(a=h[n]=u[n](s),a.c()),g(a,1),a.m(t,null))},i(s){o||(g(l),g(a),o=!0)},o(s){w(l),w(a),o=!1},d(s){s&&d(t),c[e].d(),h[n].d()}}}let et="",tt="";function lt(f,t,r){let e,l;H(f,K,c=>r(1,e=c)),H(f,le,c=>r(2,l=c));const i={All:{value:null,label:b("workflows.all-statuses")},"Timed Out":{value:"TimedOut",label:b("workflows.timed-out")},Completed:{value:"Completed",label:b("workflows.completed")},Failed:{value:"Failed",label:b("workflows.failed")},"Continued as New":{value:"ContinuedAsNew",label:b("workflows.continued-as-new")},Canceled:{value:"Canceled",label:b("workflows.canceled")},Terminated:{value:"Terminated",label:b("workflows.terminated")}};let n=e.url.searchParams.has("query");const a=c=>{const u=new FormData(c.target).get("query");e.url.searchParams.set("query",String(u)),ee(e.url.toString())},o=c=>$=>{const u=$.target;r(0,n=c==="advanced"),n||e.url.searchParams.delete("query"),ee(u.href)};function p(c){l=c,le.set(l)}return[n,e,l,i,a,o,p]}class rt extends V{constructor(t){super(),M(this,t,lt,xe,G,{})}}function ce(f,t,r){const e=f.slice();return e[8]=t[r],e}function at(f){let t,r=b("workflows.archival-disabled-title")+"",e,l,i,n=b("workflows.archival-disabled-details")+"",a,o,p,c,$,u,h;c=new R({props:{content:`temporal operator namespace update --history-archival-state enabled ${f[4]}`,language:"text",inline:!0,copyIconTitle:b("common.copy-icon-title"),copySuccessIconTitle:b("common.copy-success-icon-title")}});let _=!f[1]&&fe(f);return{c(){t=L("h1"),e=I(r),l=C(),i=L("p"),a=I(n),o=I(":"),p=C(),S(c.$$.fragment),$=C(),_&&_.c(),u=B(),this.h()},l(s){t=q(s,"H1",{class:!0,"data-testid":!0});var m=j(t);e=N(m,r),m.forEach(d),l=F(s),i=q(s,"P",{});var v=j(i);a=N(v,n),o=N(v,":"),v.forEach(d),p=F(s),P(c.$$.fragment,s),$=F(s),_&&_.l(s),u=B(),this.h()},h(){y(t,"class","text-2xl"),y(t,"data-testid","archived-disabled-title")},m(s,m){k(s,t,m),E(t,e),k(s,l,m),k(s,i,m),E(i,a),E(i,o),k(s,p,m),T(c,s,m),k(s,$,m),_&&_.m(s,m),k(s,u,m),h=!0},p(s,m){const v={};m&16&&(v.content=`temporal operator namespace update --history-archival-state enabled ${s[4]}`),c.$set(v),s[1]?_&&(W(),w(_,1,1,()=>{_=null}),D()):_?(_.p(s,m),m&2&&g(_,1)):(_=fe(s),_.c(),g(_,1),_.m(u.parentNode,u))},i(s){h||(g(c.$$.fragment,s),g(_),h=!0)},o(s){w(c.$$.fragment,s),w(_),h=!1},d(s){s&&d(t),s&&d(l),s&&d(i),s&&d(p),A(c,s),s&&d($),_&&_.d(s),s&&d(u)}}}function ot(f){let t,r=b("workflows.visibility-disabled-archival")+"",e,l,i,n=b("workflows.archival-link-preface")+"",a,o,p=b("workflows.archival-link")+"",c,$,u,h,_;return h=new R({props:{content:`temporal operator namespace update --visibility-archival-state enabled ${f[4]}`,language:"text",inline:!0,copyIconTitle:b("common.copy-icon-title"),copySuccessIconTitle:b("common.copy-success-icon-title")}}),{c(){t=L("h1"),e=I(r),l=C(),i=L("p"),a=I(n),o=L("a"),c=I(p),$=I(":"),u=C(),S(h.$$.fragment),this.h()},l(s){t=q(s,"H1",{class:!0,"data-testid":!0});var m=j(t);e=N(m,r),m.forEach(d),l=F(s),i=q(s,"P",{});var v=j(i);a=N(v,n),o=q(v,"A",{class:!0,href:!0,target:!0,rel:!0});var O=j(o);c=N(O,p),O.forEach(d),$=N(v,":"),v.forEach(d),u=F(s),P(h.$$.fragment,s),this.h()},h(){y(t,"class","text-2xl"),y(t,"data-testid","visibility-disabled-title"),y(o,"class","text-blue-700 underline"),y(o,"href","https://docs.temporal.io/clusters#archival"),y(o,"target","_blank"),y(o,"rel","noreferrer")},m(s,m){k(s,t,m),E(t,e),k(s,l,m),k(s,i,m),E(i,a),E(i,o),E(o,c),E(i,$),k(s,u,m),T(h,s,m),_=!0},p(s,m){const v={};m&16&&(v.content=`temporal operator namespace update --visibility-archival-state enabled ${s[4]}`),h.$set(v)},i(s){_||(g(h.$$.fragment,s),_=!0)},o(s){w(h.$$.fragment,s),_=!1},d(s){s&&d(t),s&&d(l),s&&d(i),s&&d(u),A(h,s)}}}function nt(f){let t,r=b("workflows.archived-workflows")+"",e,l,i,n,a,o,p,c=!f[0]&&ue();const $=[it,st],u=[];function h(_,s){var m;return(m=_[3])!=null&&m.length?0:1}return n=h(f),a=u[n]=$[n](f),{c(){t=L("h1"),e=I(r),l=C(),c&&c.c(),i=C(),a.c(),o=B(),this.h()},l(_){t=q(_,"H1",{class:!0,"data-testid":!0});var s=j(t);e=N(s,r),s.forEach(d),l=F(_),c&&c.l(_),i=F(_),a.l(_),o=B(),this.h()},h(){y(t,"class","text-2xl"),y(t,"data-testid","archived-enabled-title")},m(_,s){k(_,t,s),E(t,e),k(_,l,s),c&&c.m(_,s),k(_,i,s),u[n].m(_,s),k(_,o,s),p=!0},p(_,s){_[0]?c&&(W(),w(c,1,1,()=>{c=null}),D()):c?s&1&&g(c,1):(c=ue(),c.c(),g(c,1),c.m(i.parentNode,i));let m=n;n=h(_),n===m?u[n].p(_,s):(W(),w(u[m],1,1,()=>{u[m]=null}),D(),a=u[n],a?a.p(_,s):(a=u[n]=$[n](_),a.c()),g(a,1),a.m(o.parentNode,o))},i(_){p||(g(c),g(a),p=!0)},o(_){w(c),w(a),p=!1},d(_){_&&d(t),_&&d(l),c&&c.d(_),_&&d(i),u[n].d(_),_&&d(o)}}}function fe(f){let t,r=b("workflows.archival-link-preface")+"",e,l,i=b("workflows.archival-link")+"",n,a,o,p,c;return p=new R({props:{content:`temporal operator namespace update --visibility-archival-state enabled ${f[4]}`,language:"text",inline:!0,copyIconTitle:b("common.copy-icon-title"),copySuccessIconTitle:b("common.copy-success-icon-title")}}),{c(){t=L("p"),e=I(r),l=L("a"),n=I(i),a=I(":"),o=C(),S(p.$$.fragment),this.h()},l($){t=q($,"P",{});var u=j(t);e=N(u,r),l=q(u,"A",{class:!0,href:!0,target:!0,rel:!0});var h=j(l);n=N(h,i),h.forEach(d),a=N(u,":"),u.forEach(d),o=F($),P(p.$$.fragment,$),this.h()},h(){y(l,"class","text-blue-700 underline"),y(l,"href","https://docs.temporal.io/clusters#archival"),y(l,"target","_blank"),y(l,"rel","noreferrer")},m($,u){k($,t,u),E(t,e),E(t,l),E(l,n),E(t,a),k($,o,u),T(p,$,u),c=!0},p($,u){const h={};u&16&&(h.content=`temporal operator namespace update --visibility-archival-state enabled ${$[4]}`),p.$set(h)},i($){c||(g(p.$$.fragment,$),c=!0)},o($){w(p.$$.fragment,$),c=!1},d($){$&&d(t),$&&d(o),A(p,$)}}}function ue(f){let t,r;return t=new rt({}),{c(){S(t.$$.fragment)},l(e){P(t.$$.fragment,e)},m(e,l){T(t,e,l),r=!0},i(e){r||(g(t.$$.fragment,e),r=!0)},o(e){w(t.$$.fragment,e),r=!1},d(e){A(t,e)}}}function st(f){let t,r;return t=new Ce({props:{title:b("workflows.workflow-empty-state-title"),content:b("workflows.archival-empty-state-description")}}),{c(){S(t.$$.fragment)},l(e){P(t.$$.fragment,e)},m(e,l){T(t,e,l),r=!0},p:Q,i(e){r||(g(t.$$.fragment,e),r=!0)},o(e){w(t.$$.fragment,e),r=!1},d(e){A(t,e)}}}function it(f){let t,r;return t=new Fe({props:{items:f[3],"aria-label":b("workflows.archived-workflows"),pageSizeSelectLabel:b("common.per-page"),previousButtonLabel:b("common.previous"),nextButtonLabel:b("common.next"),$$slots:{default:[ft,({visibleItems:e})=>({7:e}),({visibleItems:e})=>e?128:0]},$$scope:{ctx:f}}}),{c(){S(t.$$.fragment)},l(e){P(t.$$.fragment,e)},m(e,l){T(t,e,l),r=!0},p(e,l){const i={};l&8&&(i.items=e[3]),l&2192&&(i.$$scope={dirty:l,ctx:e}),t.$set(i)},i(e){r||(g(t.$$.fragment,e),r=!0)},o(e){w(t.$$.fragment,e),r=!1},d(e){A(t,e)}}}function me(f){let t,r;return t=new Ne({props:{workflow:f[8],namespace:f[4]}}),{c(){S(t.$$.fragment)},l(e){P(t.$$.fragment,e)},m(e,l){T(t,e,l),r=!0},p(e,l){const i={};l&128&&(i.workflow=e[8]),l&16&&(i.namespace=e[4]),t.$set(i)},i(e){r||(g(t.$$.fragment,e),r=!0)},o(e){w(t.$$.fragment,e),r=!1},d(e){A(t,e)}}}function ct(f){let t,r,e=f[7],l=[];for(let n=0;nw(l[n],1,1,()=>{l[n]=null});return{c(){for(let n=0;n{o[h]=null}),D(),l=o[e],l?l.p(c,$):(l=o[e]=a[e](c),l.c()),g(l,1),l.m(i.parentNode,i))},i(c){n||(g(t.$$.fragment,c),g(l),n=!0)},o(c){w(t.$$.fragment,c),w(l),n=!1},d(c){A(t,c),c&&d(r),o[e].d(c),c&&d(i)}}}function mt(f,t,r){let e,l,i,n,a,o;H(f,K,c=>r(5,o=c));let{data:p}=t;return f.$$set=c=>{"data"in c&&r(6,p=c.data)},f.$$.update=()=>{f.$$.dirty&64&&r(4,{namespace:{namespaceInfo:{name:e}},workflows:l,archivalEnabled:i,visibilityArchivalEnabled:n,archivalQueryingNotSupported:a}=p,e,(r(3,l),r(6,p)),(r(2,i),r(6,p)),(r(1,n),r(6,p)),(r(0,a),r(6,p)))},[a,n,i,l,e,o,p]}class Ft extends V{constructor(t){super(),M(this,t,mt,ut,G,{data:6})}}export{Ft as component,Ct as universal}; diff --git a/ui/assets/local/_app/immutable/nodes/2.0928d4af.js b/ui/assets/local/_app/immutable/nodes/2.3d12cd7a.js similarity index 98% rename from ui/assets/local/_app/immutable/nodes/2.0928d4af.js rename to ui/assets/local/_app/immutable/nodes/2.3d12cd7a.js index 25f858fa64..5a1ccf81e2 100644 --- a/ui/assets/local/_app/immutable/nodes/2.0928d4af.js +++ b/ui/assets/local/_app/immutable/nodes/2.3d12cd7a.js @@ -1,4 +1,4 @@ -import{r as Rl}from"../chunks/index.3158323b.js";import{r as Tl,a as Ll,n as rt}from"../chunks/route-for-api.60228029.js";import{f as ql}from"../chunks/namespaces-service.7a2265f4.js";import{f as jl,i as Pl}from"../chunks/settings-service.7891e454.js";import{s as Fl,g as Hl,a as Vl,c as Ml}from"../chunks/auth-user.9757f5e9.js";import{B as Nl}from"../chunks/encode-uri.e26747e0.js";import{a as Ul,v as Kl,b as Wl}from"../chunks/is-http.7eda3176.js";import{p as Zl}from"../chunks/parse-with-big-int.0036a80a.js";import{r as Dl,a as Ye,b as Gl,c as Ql,d as Ct,e as It,f as Xl}from"../chunks/route-for.80613b91.js";/* empty css */import{S as ae,b as fe,a as ue,m as A,w as Q,c as P,p as R,q,x as X,k as _,d as F,u as $,P as G,Z as ze,f as C,L as V,_ as Tt,Q as ve,$ as et,y as pe,j as p,z as ce,g,h as me,r as pt,G as ee,H as te,I as le,J as ne,V as Fe,A as Le,a0 as Ne,C as D,D as S,E as B,a1 as De,F as z,n as se,e as ie,K as oe,a2 as Jl,a3 as gt,a4 as Yl,a5 as de,W as ot,X as it,N as we,v as Lt,O as tt,R as ht,T as Me,U as Oe,i as bt,Y as yl,a6 as xl,o as en,a7 as $t,M as Sl,a8 as Vt,s as st,a9 as Nt,aa as tn,ab as ln}from"../chunks/index.4e2fcbc7.js";import{a as nn,g as Dt}from"../chunks/navigation.10919bcf.js";import{p as qe,u as sn}from"../chunks/stores.14a97433.js";import{T as at}from"../chunks/toggle-switch.3a41e457.js";import{t as j}from"../chunks/translate.d23a91ae.js";import{r as St}from"../chunks/workflow-run.86769de7.js";import{o as ft,i as Bt,p as zt,c as ut,l as rn}from"../chunks/data-encoder-config.23d100a5.js";import{c as on,M as vt,a as Bl,b as kt,d as Ue}from"../chunks/menu.69cccace.js";import{L as zl}from"../chunks/link.6803bb00.js";import{B as ct}from"../chunks/button.a45b0e55.js";import{A as an}from"../chunks/accordion.777f1aaf.js";import{f as mt}from"../chunks/index.6509bfd4.js";import{w as Ke,j as fn}from"../chunks/singletons.fb5f332e.js";import{R as un,a as Ot}from"../chunks/radio-input.df4cce6e.js";import{I as Ie}from"../chunks/icon.e8aa24c8.js";import{p as cn}from"../chunks/persist-store.2e269d08.js";import{T as We}from"../chunks/tooltip.6cb33d85.js";import{i as mn}from"../chunks/batch-operations.79b667c0.js";import{I as Ze}from"../chunks/icon-button.92948dd7.js";import{I as dn}from"../chunks/input.0bde2076.js";import{M as Ol}from"../chunks/menu-divider.ada09983.js";import{r as ye,t as xe,g as _n,T as At,a as Rt,f as qt}from"../chunks/time-format.88312c30.js";import{c as pn}from"../chunks/format-camel-case.887ffc78.js";import{l as lt,n as gn}from"../chunks/namespaces.85dd397c.js";import{E as hn}from"../chunks/error.2e6962d0.js";import{t as jt}from"../chunks/toaster.8a4adbc8.js";const bn=async(s,e=fetch)=>{if(s.runtimeEnvironment.isCloud)return;const l=Tl("cluster");return await Ll(l,{request:e}).then(t=>t)},$n=async(s,e=fetch)=>{if(s.runtimeEnvironment.isCloud)return;const l=Tl("systemInfo");return await Ll(l,{request:e}).then(t=>t)},nt="user",vn=(s=Nl)=>{if(!s)return{};const e=document.cookie.split(";");let l=0,t=e.find(r=>r.includes(nt+l)),n="";for(;t;){const[r,o]=t.split("=");n+=o,l++,t=e.find(a=>a.includes(nt+l))}if(n)try{const r=Ul(n),o=Zl(r);return{accessToken:o==null?void 0:o.AccessToken,idToken:o==null?void 0:o.IDToken,name:o==null?void 0:o.Name,picture:o==null?void 0:o.Picture,email:o==null?void 0:o.Email}}catch(r){console.error(r)}return{}},kn=(s=Nl)=>{if(!s)return;const e=document.cookie.split(";");let l=0,t=e.find(n=>n.includes(nt+l));for(;t;){const[n]=t.split("=");document.cookie=`${n}=; max-age=-1; path=/`,l++,t=e.find(r=>r.includes(nt+l))}},wn=(s,e)=>!s.auth.enabled||Boolean(e==null?void 0:e.accessToken),En=async function({fetch:s}){const e=await jl(s),l=vn();l!=null&&l.accessToken&&(Fl(l),kn());const t=Hl();if(!wn(e,t))throw Rl(302,Dl());ql(e,s);const n=await bn(e,s),r=await $n(e,s);return{user:t,settings:e,cluster:n,systemInfo:r}},Ii=Object.freeze(Object.defineProperty({__proto__:null,load:En},Symbol.toStringTag,{value:"Module"}));const Cn=s=>({}),Pt=s=>({});function Ft(s){let e,l;return{c(){e=A("p"),l=Q(s[11]),this.h()},l(t){e=R(t,"P",{class:!0});var n=q(e);l=X(n,s[11]),n.forEach(_),this.h()},h(){$(e,"class","text-sm")},m(t,n){C(t,e,n),V(e,l)},p(t,n){n&2048&&pe(l,t[11])},d(t){t&&_(e)}}}function Ht(s){var a;let e,l,t=(((a=s[0])==null?void 0:a.length)??0)+"",n,r,o;return{c(){e=A("span"),l=A("span"),n=Q(t),r=Q(" / "),o=Q(s[12]),this.h()},l(i){e=R(i,"SPAN",{class:!0});var f=q(e);l=R(f,"SPAN",{class:!0});var u=q(l);n=X(u,t),u.forEach(_),r=X(f," / "),o=X(f,s[12]),f.forEach(_),this.h()},h(){var i,f;$(l,"class","text-blue-700 svelte-14m0wnf"),G(l,"warn",s[12]-((i=s[0])==null?void 0:i.length)<=5),G(l,"error",s[12]===((f=s[0])==null?void 0:f.length)),$(e,"class","count svelte-14m0wnf")},m(i,f){C(i,e,f),V(e,l),V(l,n),V(e,r),V(e,o)},p(i,f){var u,c,m;f&1&&t!==(t=(((u=i[0])==null?void 0:u.length)??0)+"")&&pe(n,t),f&4097&&G(l,"warn",i[12]-((c=i[0])==null?void 0:c.length)<=5),f&4097&&G(l,"error",i[12]===((m=i[0])==null?void 0:m.length)),f&4096&&pe(o,i[12])},d(i){i&&_(e)}}}function Mt(s){let e,l,t=s[2]&&Ut(s);const n=s[15].error,r=ee(n,s,s[14],Pt);return{c(){t&&t.c(),e=P(),r&&r.c()},l(o){t&&t.l(o),e=F(o),r&&r.l(o)},m(o,a){t&&t.m(o,a),C(o,e,a),r&&r.m(o,a),l=!0},p(o,a){o[2]?t?t.p(o,a):(t=Ut(o),t.c(),t.m(e.parentNode,e)):t&&(t.d(1),t=null),r&&r.p&&(!l||a&16384)&&te(r,n,o,o[14],l?ne(n,o[14],a,Cn):le(o[14]),Pt)},i(o){l||(p(r,o),l=!0)},o(o){g(r,o),l=!1},d(o){t&&t.d(o),o&&_(e),r&&r.d(o)}}}function Ut(s){let e,l;return{c(){e=A("p"),l=Q(s[2])},l(t){e=R(t,"P",{});var n=q(e);l=X(n,s[2]),n.forEach(_)},m(t,n){C(t,e,n),V(e,l)},p(t,n){n&4&&pe(l,t[2])},d(t){t&&_(e)}}}function In(s){let e,l,t,n,r,o,a,i,f,u,c,m,d,b,E,h,k=s[11]&&Ft(s),I=s[12]&&!s[1]&&Ht(s),N=!s[3]&&Mt(s);return{c(){e=A("div"),l=A("label"),t=Q(s[7]),n=P(),k&&k.c(),r=P(),o=A("div"),a=A("textarea"),f=P(),I&&I.c(),u=P(),c=A("div"),N&&N.c(),this.h()},l(w){e=R(w,"DIV",{class:!0});var T=q(e);l=R(T,"LABEL",{for:!0,class:!0});var W=q(l);t=X(W,s[7]),W.forEach(_),n=F(T),k&&k.l(T),r=F(T),o=R(T,"DIV",{class:!0});var O=q(o);a=R(O,"TEXTAREA",{class:!0,id:!0,placeholder:!0,rows:!0,spellcheck:!0,maxlength:!0}),q(a).forEach(_),f=F(O),I&&I.l(O),O.forEach(_),u=F(T),c=R(T,"DIV",{class:!0,"aria-live":!0});var U=q(c);N&&N.l(U),U.forEach(_),T.forEach(_),this.h()},h(){$(l,"for",s[9]),$(l,"class","svelte-14m0wnf"),G(l,"required",s[10]),G(l,"sr-only",s[8]),$(a,"class","min-h-fit w-full rounded border border-gray-900 py-2 px-3 font-mono text-sm svelte-14m0wnf"),$(a,"id",s[9]),a.disabled=s[1],$(a,"placeholder",s[4]),$(a,"rows",s[5]),$(a,"spellcheck",s[6]),$(a,"maxlength",i=s[12]>0?s[12]:void 0),G(a,"error",!s[3]),$(o,"class","relative"),$(c,"class","error-msg svelte-14m0wnf"),$(c,"aria-live",m=s[3]?"off":"assertive"),G(c,"min-width",s[12]),$(e,"class",d=ze(s[13])+" svelte-14m0wnf")},m(w,T){C(w,e,T),V(e,l),V(l,t),V(e,n),k&&k.m(e,null),V(e,r),V(e,o),V(o,a),Tt(a,s[0]),V(o,f),I&&I.m(o,null),V(e,u),V(e,c),N&&N.m(c,null),b=!0,E||(h=[ve(a,"input",s[21]),ve(a,"input",s[16]),ve(a,"change",s[17]),ve(a,"focus",s[18]),ve(a,"blur",s[19]),ve(a,"keydown",et(s[20]))],E=!0)},p(w,[T]){(!b||T&128)&&pe(t,w[7]),(!b||T&512)&&$(l,"for",w[9]),(!b||T&1024)&&G(l,"required",w[10]),(!b||T&256)&&G(l,"sr-only",w[8]),w[11]?k?k.p(w,T):(k=Ft(w),k.c(),k.m(e,r)):k&&(k.d(1),k=null),(!b||T&512)&&$(a,"id",w[9]),(!b||T&2)&&(a.disabled=w[1]),(!b||T&16)&&$(a,"placeholder",w[4]),(!b||T&32)&&$(a,"rows",w[5]),(!b||T&64)&&$(a,"spellcheck",w[6]),(!b||T&4096&&i!==(i=w[12]>0?w[12]:void 0))&&$(a,"maxlength",i),T&1&&Tt(a,w[0]),(!b||T&8)&&G(a,"error",!w[3]),w[12]&&!w[1]?I?I.p(w,T):(I=Ht(w),I.c(),I.m(o,null)):I&&(I.d(1),I=null),w[3]?N&&(ce(),g(N,1,1,()=>{N=null}),me()):N?(N.p(w,T),T&8&&p(N,1)):(N=Mt(w),N.c(),p(N,1),N.m(c,null)),(!b||T&8&&m!==(m=w[3]?"off":"assertive"))&&$(c,"aria-live",m),(!b||T&4096)&&G(c,"min-width",w[12]),(!b||T&8192&&d!==(d=ze(w[13])+" svelte-14m0wnf"))&&$(e,"class",d)},i(w){b||(p(N),b=!0)},o(w){g(N),b=!1},d(w){w&&_(e),k&&k.d(),I&&I.d(),N&&N.d(),E=!1,pt(h)}}}function Tn(s,e,l){let{$$slots:t={},$$scope:n}=e,{disabled:r=!1}=e,{error:o=""}=e,{isValid:a=!0}=e,{placeholder:i=""}=e,{rows:f=5}=e,{spellcheck:u=null}=e,{value:c}=e,{label:m}=e,{labelHidden:d=!1}=e,{id:b}=e,{required:E=!1}=e,{description:h=""}=e,{maxLength:k=0}=e,{class:I=""}=e;function N(v){Fe.call(this,s,v)}function w(v){Fe.call(this,s,v)}function T(v){Fe.call(this,s,v)}function W(v){Fe.call(this,s,v)}function O(v){Fe.call(this,s,v)}function U(){c=this.value,l(0,c)}return s.$$set=v=>{"disabled"in v&&l(1,r=v.disabled),"error"in v&&l(2,o=v.error),"isValid"in v&&l(3,a=v.isValid),"placeholder"in v&&l(4,i=v.placeholder),"rows"in v&&l(5,f=v.rows),"spellcheck"in v&&l(6,u=v.spellcheck),"value"in v&&l(0,c=v.value),"label"in v&&l(7,m=v.label),"labelHidden"in v&&l(8,d=v.labelHidden),"id"in v&&l(9,b=v.id),"required"in v&&l(10,E=v.required),"description"in v&&l(11,h=v.description),"maxLength"in v&&l(12,k=v.maxLength),"class"in v&&l(13,I=v.class),"$$scope"in v&&l(14,n=v.$$scope)},[c,r,o,a,i,f,u,m,d,b,E,h,k,I,n,t,N,w,T,W,O,U]}class Ln extends ae{constructor(e){super(),fe(this,e,Tn,In,ue,{disabled:1,error:2,isValid:3,placeholder:4,rows:5,spellcheck:6,value:0,label:7,labelHidden:8,id:9,required:10,description:11,maxLength:12,class:13})}}function Kt(s){let e,l=j("data-encoder.include-cross-origin-credentials-warning")+"",t;return{c(){e=A("small"),t=Q(l),this.h()},l(n){e=R(n,"SMALL",{"data-testid":!0});var r=q(e);t=X(r,l),r.forEach(_),this.h()},h(){$(e,"data-testid","data-encoder-cross-origin-credentials")},m(n,r){C(n,e,r),V(e,t)},p:se,d(n){n&&_(e)}}}function Vn(s){let e,l,t,n,r,o,a,i,f,u,c,m;function d(w){s[4](w)}let b={id:"data-encoder-endpoint-input",rows:3,placeholder:j("data-encoder.endpoint-placeholder"),error:s[3],isValid:!s[3],label:j("data-encoder.endpoint-title"),description:j("data-encoder.endpoint-description")};s[0]!==void 0&&(b.value=s[0]),t=new Ln({props:b}),Le.push(()=>Ne(t,"value",d));function E(w){s[5](w)}let h={label:j("data-encoder.pass-access-token-label"),id:"pass-access-token","data-testid":"data-encoder-pass-access-token"};s[1]!==void 0&&(h.checked=s[1]),o=new at({props:h}),Le.push(()=>Ne(o,"checked",E));function k(w){s[6](w)}let I={label:j("data-encoder.include-cross-origin-credentials-label"),id:"pass-access-credentials","data-testid":"data-encoder-include-credentials"};s[2]!==void 0&&(I.checked=s[2]),f=new at({props:I}),Le.push(()=>Ne(f,"checked",k));let N=s[2]&&Kt();return{c(){e=A("div"),l=A("div"),D(t.$$.fragment),r=P(),D(o.$$.fragment),i=P(),D(f.$$.fragment),c=P(),N&&N.c(),this.h()},l(w){e=R(w,"DIV",{class:!0});var T=q(e);l=R(T,"DIV",{class:!0});var W=q(l);S(t.$$.fragment,W),r=F(W),S(o.$$.fragment,W),i=F(W),S(f.$$.fragment,W),c=F(W),N&&N.l(W),W.forEach(_),T.forEach(_),this.h()},h(){$(l,"class","flex flex-col gap-2"),$(e,"class","flex flex-col gap-4")},m(w,T){C(w,e,T),V(e,l),B(t,l,null),V(l,r),B(o,l,null),V(l,i),B(f,l,null),V(l,c),N&&N.m(l,null),m=!0},p(w,[T]){const W={};T&8&&(W.error=w[3]),T&8&&(W.isValid=!w[3]),!n&&T&1&&(n=!0,W.value=w[0],De(()=>n=!1)),t.$set(W);const O={};!a&&T&2&&(a=!0,O.checked=w[1],De(()=>a=!1)),o.$set(O);const U={};!u&&T&4&&(u=!0,U.checked=w[2],De(()=>u=!1)),f.$set(U),w[2]?N?N.p(w,T):(N=Kt(),N.c(),N.m(l,null)):N&&(N.d(1),N=null)},i(w){m||(p(t.$$.fragment,w),p(o.$$.fragment,w),p(f.$$.fragment,w),m=!0)},o(w){g(t.$$.fragment,w),g(o.$$.fragment,w),g(f.$$.fragment,w),m=!1},d(w){w&&_(e),z(t),z(o),z(f),N&&N.d()}}}function Nn(s,e,l){let{endpoint:t=""}=e,{passToken:n=!1}=e,{includeCreds:r=!1}=e,{error:o=""}=e;function a(u){t=u,l(0,t)}function i(u){n=u,l(1,n)}function f(u){r=u,l(2,r)}return s.$$set=u=>{"endpoint"in u&&l(0,t=u.endpoint),"passToken"in u&&l(1,n=u.passToken),"includeCreds"in u&&l(2,r=u.includeCreds),"error"in u&&l(3,o=u.error)},[t,n,r,o,a,i,f]}class Dn extends ae{constructor(e){super(),fe(this,e,Nn,Vn,ue,{endpoint:0,passToken:1,includeCreds:2,error:3})}}function Wt(s){let e,l,t,n,r=j("common.codec-server")+"",o,a,i,f=j("data-encoder.codec-server-description-prefix")+"",u,c,m,d=j("data-encoder.codec-server-description-suffix",{level:s[5]})+"",b,E,h,k,I,N,w,T,W,O,U,v,M,K,J,Ee,ge;c=new zl({props:{href:"https://docs.temporal.io/dataconversion#codec-server",newTab:!0,$$slots:{default:[Sn]},$$scope:{ctx:s}}}),h=new an({props:{"data-testid":"override-accordion",title:s[6]?j("data-encoder.browser-override-description",{level:s[5]}):j("data-encoder.no-browser-override-description",{level:s[5]}),$$slots:{default:[zn]},$$scope:{ctx:s}}});function Te(Z){s[14](Z)}function he(Z){s[15](Z)}function Ce(Z){s[16](Z)}let _e={error:s[4]};return s[0]!==void 0&&(_e.endpoint=s[0]),s[1]!==void 0&&(_e.passToken=s[1]),s[3]!==void 0&&(_e.includeCreds=s[3]),I=new Dn({props:_e}),Le.push(()=>Ne(I,"endpoint",Te)),Le.push(()=>Ne(I,"passToken",he)),Le.push(()=>Ne(I,"includeCreds",Ce)),U=new ct({props:{disabled:Boolean(s[4]),"data-testid":"confirm-data-encoder-button",type:"submit",$$slots:{default:[On]},$$scope:{ctx:s}}}),U.$on("click",s[9]),M=new ct({props:{variant:"ghost","data-testid":"cancel-data-encoder-button",$$slots:{default:[An]},$$scope:{ctx:s}}}),M.$on("click",s[8]),{c(){e=A("aside"),l=A("div"),t=A("div"),n=A("h3"),o=Q(r),a=P(),i=A("p"),u=Q(f),D(c.$$.fragment),m=P(),b=Q(d),E=P(),D(h.$$.fragment),k=P(),D(I.$$.fragment),W=P(),O=A("div"),D(U.$$.fragment),v=P(),D(M.$$.fragment),this.h()},l(Z){e=R(Z,"ASIDE",{class:!0});var Y=q(e);l=R(Y,"DIV",{class:!0});var y=q(l);t=R(y,"DIV",{class:!0});var be=q(t);n=R(be,"H3",{"data-testid":!0,class:!0});var re=q(n);o=X(re,r),re.forEach(_),be.forEach(_),a=F(y),i=R(y,"P",{class:!0});var $e=q(i);u=X($e,f),S(c.$$.fragment,$e),m=F($e),b=X($e,d),$e.forEach(_),E=F(y),S(h.$$.fragment,y),k=F(y),S(I.$$.fragment,y),W=F(y),O=R(y,"DIV",{class:!0});var ke=q(O);S(U.$$.fragment,ke),v=F(ke),S(M.$$.fragment,ke),ke.forEach(_),y.forEach(_),Y.forEach(_),this.h()},h(){$(n,"data-testid","data-encoder-title"),$(n,"class","text-xl"),$(t,"class","flex items-center justify-between space-x-2"),$(i,"class","text-sm"),$(O,"class","flex items-center gap-4"),$(l,"class","flex w-full flex-col gap-4 xl:w-1/2"),$(e,"class","relative flex h-auto w-full flex-col gap-6 border-b border-blue-100 bg-blue-50 p-12")},m(Z,Y){C(Z,e,Y),V(e,l),V(l,t),V(t,n),V(n,o),V(l,a),V(l,i),V(i,u),B(c,i,null),V(i,m),V(i,b),V(l,E),B(h,l,null),V(l,k),B(I,l,null),V(l,W),V(l,O),B(U,O,null),V(O,v),B(M,O,null),J=!0,Ee||(ge=[Jl(on.call(null,e)),ve(e,"click-outside",s[17])],Ee=!0)},p(Z,Y){const y={};Y&8388608&&(y.$$scope={dirty:Y,ctx:Z}),c.$set(y),(!J||Y&32)&&d!==(d=j("data-encoder.codec-server-description-suffix",{level:Z[5]})+"")&&pe(b,d);const be={};Y&96&&(be.title=Z[6]?j("data-encoder.browser-override-description",{level:Z[5]}):j("data-encoder.no-browser-override-description",{level:Z[5]})),Y&8388640&&(be.$$scope={dirty:Y,ctx:Z}),h.$set(be);const re={};Y&16&&(re.error=Z[4]),!N&&Y&1&&(N=!0,re.endpoint=Z[0],De(()=>N=!1)),!w&&Y&2&&(w=!0,re.passToken=Z[1],De(()=>w=!1)),!T&&Y&8&&(T=!0,re.includeCreds=Z[3],De(()=>T=!1)),I.$set(re);const $e={};Y&16&&($e.disabled=Boolean(Z[4])),Y&8388608&&($e.$$scope={dirty:Y,ctx:Z}),U.$set($e);const ke={};Y&8388608&&(ke.$$scope={dirty:Y,ctx:Z}),M.$set(ke)},i(Z){J||(p(c.$$.fragment,Z),p(h.$$.fragment,Z),p(I.$$.fragment,Z),p(U.$$.fragment,Z),p(M.$$.fragment,Z),K||gt(()=>{K=Yl(e,mt,{y:-50,delay:0,duration:500}),K.start()}),J=!0)},o(Z){g(c.$$.fragment,Z),g(h.$$.fragment,Z),g(I.$$.fragment,Z),g(U.$$.fragment,Z),g(M.$$.fragment,Z),J=!1},d(Z){Z&&_(e),z(c),z(h),z(I),z(U),z(M),Ee=!1,pt(ge)}}}function Sn(s){let e=j("common.codec-server")+"",l;return{c(){l=Q(e)},l(t){l=X(t,e)},m(t,n){C(t,l,n)},p:se,d(t){t&&_(l)}}}function Bn(s){let e,l,t,n;return e=new Ot({props:{id:"use-configuration-endpoint-radio","data-testid":"use-configuration-endpoint-input",value:!1,label:j("data-encoder.no-browser-override-description",{level:s[5]})}}),t=new Ot({props:{id:"use-local-endpoint-radio","data-testid":"use-local-endpoint-input",value:!0,label:j("data-encoder.browser-override-description",{level:s[5]})}}),{c(){D(e.$$.fragment),l=P(),D(t.$$.fragment)},l(r){S(e.$$.fragment,r),l=F(r),S(t.$$.fragment,r)},m(r,o){B(e,r,o),C(r,l,o),B(t,r,o),n=!0},p(r,o){const a={};o&32&&(a.label=j("data-encoder.no-browser-override-description",{level:r[5]})),e.$set(a);const i={};o&32&&(i.label=j("data-encoder.browser-override-description",{level:r[5]})),t.$set(i)},i(r){n||(p(e.$$.fragment,r),p(t.$$.fragment,r),n=!0)},o(r){g(e.$$.fragment,r),g(t.$$.fragment,r),n=!1},d(r){z(e,r),r&&_(l),z(t,r)}}}function zn(s){let e,l;return e=new un({props:{name:"override",group:s[7],$$slots:{default:[Bn]},$$scope:{ctx:s}}}),{c(){D(e.$$.fragment)},l(t){S(e.$$.fragment,t)},m(t,n){B(e,t,n),l=!0},p(t,n){const r={};n&8388640&&(r.$$scope={dirty:n,ctx:t}),e.$set(r)},i(t){l||(p(e.$$.fragment,t),l=!0)},o(t){g(e.$$.fragment,t),l=!1},d(t){z(e,t)}}}function On(s){let e=j("common.apply")+"",l;return{c(){l=Q(e)},l(t){l=X(t,e)},m(t,n){C(t,l,n)},p:se,d(t){t&&_(l)}}}function An(s){let e=j("common.cancel")+"",l;return{c(){l=Q(e)},l(t){l=X(t,e)},m(t,n){C(t,l,n)},p:se,d(t){t&&_(l)}}}function Rn(s){let e,l,t=s[2]&&Wt(s);return{c(){t&&t.c(),e=ie()},l(n){t&&t.l(n),e=ie()},m(n,r){t&&t.m(n,r),C(n,e,r),l=!0},p(n,[r]){n[2]?t?(t.p(n,r),r&4&&p(t,1)):(t=Wt(n),t.c(),p(t,1),t.m(e.parentNode,e)):t&&(ce(),g(t,1,1,()=>{t=null}),me())},i(n){l||(p(t),l=!0)},o(n){g(t),l=!1},d(n){t&&t.d(n),n&&_(e)}}}const He=Ke(!1);function qn(s,e,l){let t,n,r,o,a,i,f,u=se,c,m,d;oe(s,St,K=>l(18,r=K)),oe(s,qe,K=>l(13,o=K)),oe(s,ft,K=>l(19,i=K)),oe(s,He,K=>l(2,f=K)),oe(s,Bt,K=>l(20,c=K)),oe(s,zt,K=>l(21,m=K)),oe(s,ut,K=>l(22,d=K)),s.$$.on_destroy.push(()=>u());var b,E,h;let k=d??"",I=m??!1,N=c??!1,w=Ke(i);oe(s,w,K=>l(6,a=K));const T=()=>{l(0,k=d),l(1,I=m),l(3,N=c),de(w,a=i,a),de(He,f=!1,f)},W=()=>{l(4,t=""),de(ut,d=k,d),de(zt,m=I,m),de(Bt,c=N,c),de(He,f=!1,f),de(ft,i=a,i),o.url.pathname.endsWith("history")&&de(St,r=Date.now(),r)};function O(K){k=K,l(0,k)}function U(K){I=K,l(1,I)}function v(K){N=K,l(3,N)}const M=()=>de(He,f=!1,f);return s.$$.update=()=>{s.$$.dirty&15360&&l(5,n=!(l(12,h=l(11,E=l(10,b=o.data)===null||b===void 0?void 0:b.settings)===null||E===void 0?void 0:E.runtimeEnvironment)===null||h===void 0)&&h.isCloud?j("common.namespaces"):j("common.cluster")),s.$$.dirty&3&&(I&&!Kl(k)?l(4,t=j("data-encoder.access-token-https-error")):k&&!Wl(k)?l(4,t=j("data-encoder.prefix-error")):l(4,t="")),s.$$.dirty&4&&(f||T())},l(4,t=""),[k,I,f,N,t,n,a,w,T,W,b,E,h,o,O,U,v,M]}class jn extends ae{constructor(e){super(),fe(this,e,qn,Rn,ue,{})}}const Pn=s=>({}),Zt=s=>({});function Fn(s){let e;const l=s[2].fallback,t=ee(l,s,s[1],Zt);return{c(){t&&t.c()},l(n){t&&t.l(n)},m(n,r){t&&t.m(n,r),e=!0},p(n,r){t&&t.p&&(!e||r&2)&&te(t,l,n,n[1],e?ne(l,n[1],r,Pn):le(n[1]),Zt)},i(n){e||(p(t,n),e=!0)},o(n){g(t,n),e=!1},d(n){t&&t.d(n)}}}function Hn(s){let e;const l=s[2].default,t=ee(l,s,s[1],null);return{c(){t&&t.c()},l(n){t&&t.l(n)},m(n,r){t&&t.m(n,r),e=!0},p(n,r){t&&t.p&&(!e||r&2)&&te(t,l,n,n[1],e?ne(l,n[1],r,null):le(n[1]),null)},i(n){e||(p(t,n),e=!0)},o(n){g(t,n),e=!1},d(n){t&&t.d(n)}}}function Mn(s){let e,l,t,n;const r=[Hn,Fn],o=[];function a(i,f){return i[0]?0:1}return e=a(s),l=o[e]=r[e](s),{c(){l.c(),t=ie()},l(i){l.l(i),t=ie()},m(i,f){o[e].m(i,f),C(i,t,f),n=!0},p(i,[f]){let u=e;e=a(i),e===u?o[e].p(i,f):(ce(),g(o[u],1,1,()=>{o[u]=null}),me(),l=o[e],l?l.p(i,f):(l=o[e]=r[e](i),l.c()),p(l,1),l.m(t.parentNode,t))},i(i){n||(p(l),n=!0)},o(i){g(l),n=!1},d(i){o[e].d(i),i&&_(t)}}}function Un(s,e,l){let{$$slots:t={},$$scope:n}=e,{enabled:r=!1}=e;return s.$$set=o=>{"enabled"in o&&l(0,r=o.enabled),"$$scope"in o&&l(1,n=o.$$scope)},[r,n,t]}class Kn extends ae{constructor(e){super(),fe(this,e,Un,Mn,ue,{enabled:0})}}const Wn=s=>({}),Gt=s=>({});function Zn(s){let e;const l=s[3].default,t=ee(l,s,s[2],null);return{c(){t&&t.c()},l(n){t&&t.l(n)},m(n,r){t&&t.m(n,r),e=!0},p(n,r){t&&t.p&&(!e||r&4)&&te(t,l,n,n[2],e?ne(l,n[2],r,null):le(n[2]),null)},i(n){e||(p(t,n),e=!0)},o(n){g(t,n),e=!1},d(n){t&&t.d(n)}}}function Gn(s){let e;const l=s[3].fallback,t=ee(l,s,s[2],Gt);return{c(){t&&t.c()},l(n){t&&t.l(n)},m(n,r){t&&t.m(n,r),e=!0},p(n,r){t&&t.p&&(!e||r&4)&&te(t,l,n,n[2],e?ne(l,n[2],r,Wn):le(n[2]),Gt)},i(n){e||(p(t,n),e=!0)},o(n){g(t,n),e=!1},d(n){t&&t.d(n)}}}function Qn(s){let e,l,t,n;const r=[Gn,Zn],o=[];function a(i,f){var u,c,m;return i[0]||(m=(c=(u=i[1].data)==null?void 0:u.settings)==null?void 0:c.runtimeEnvironment)!=null&&m.isCloud?0:1}return e=a(s),l=o[e]=r[e](s),{c(){l.c(),t=ie()},l(i){l.l(i),t=ie()},m(i,f){o[e].m(i,f),C(i,t,f),n=!0},p(i,[f]){let u=e;e=a(i),e===u?o[e].p(i,f):(ce(),g(o[u],1,1,()=>{o[u]=null}),me(),l=o[e],l?l.p(i,f):(l=o[e]=r[e](i),l.c()),p(l,1),l.m(t.parentNode,t))},i(i){n||(p(l),n=!0)},o(i){g(l),n=!1},d(i){o[e].d(i),i&&_(t)}}}function Xn(s,e,l){let t;oe(s,qe,a=>l(1,t=a));let{$$slots:n={},$$scope:r}=e,{isCloud:o=!1}=e;return s.$$set=a=>{"isCloud"in a&&l(0,o=a.isCloud),"$$scope"in a&&l(2,r=a.$$scope)},[o,t,r,n]}class dt extends ae{constructor(e){super(),fe(this,e,Xn,Qn,ue,{isCloud:0})}}function Jn(){return!0}const Yn=s=>({}),Qt=s=>({});function yn(s){let e;const l=s[4].default,t=ee(l,s,s[3],null);return{c(){t&&t.c()},l(n){t&&t.l(n)},m(n,r){t&&t.m(n,r),e=!0},p(n,r){t&&t.p&&(!e||r&8)&&te(t,l,n,n[3],e?ne(l,n[3],r,null):le(n[3]),null)},i(n){e||(p(t,n),e=!0)},o(n){g(t,n),e=!1},d(n){t&&t.d(n)}}}function xn(s){let e;const l=s[4].fallback,t=ee(l,s,s[3],Qt);return{c(){t&&t.c()},l(n){t&&t.l(n)},m(n,r){t&&t.m(n,r),e=!0},p(n,r){t&&t.p&&(!e||r&8)&&te(t,l,n,n[3],e?ne(l,n[3],r,Yn):le(n[3]),Qt)},i(n){e||(p(t,n),e=!0)},o(n){g(t,n),e=!1},d(n){t&&t.d(n)}}}function es(s){let e,l,t,n;const r=[xn,yn],o=[];function a(i,f){return i[0]&&i[1]?0:1}return e=a(s),l=o[e]=r[e](s),{c(){l.c(),t=ie()},l(i){l.l(i),t=ie()},m(i,f){o[e].m(i,f),C(i,t,f),n=!0},p(i,[f]){let u=e;e=a(i),e===u?o[e].p(i,f):(ce(),g(o[u],1,1,()=>{o[u]=null}),me(),l=o[e],l?l.p(i,f):(l=o[e]=r[e](i),l.c()),p(l,1),l.m(t.parentNode,t))},i(i){n||(p(l),n=!0)},o(i){g(l),n=!1},d(i){o[e].d(i),i&&_(t)}}}function ts(s,e,l){let t,n;oe(s,qe,i=>l(2,n=i));let{$$slots:r={},$$scope:o}=e,{isCloud:a=!0}=e;return s.$$set=i=>{"isCloud"in i&&l(0,a=i.isCloud),"$$scope"in i&&l(3,o=i.$$scope)},s.$$.update=()=>{s.$$.dirty&4&&l(1,t=Pl.test(Jn?n.url.hostname:""))},[a,t,n,o,r]}class ls extends ae{constructor(e){super(),fe(this,e,ts,es,ue,{isCloud:0})}}function ns(s){let e,l,t,n;return{c(){e=ot("svg"),l=ot("title"),t=Q(s[2]),n=ot("path"),this.h()},l(r){e=it(r,"svg",{width:!0,height:!0,viewBox:!0,xmlns:!0,"xmlns:xlink":!0,version:!0,role:!0});var o=q(e);l=it(o,"title",{});var a=q(l);t=X(a,s[2]),a.forEach(_),n=it(o,"path",{id:!0,d:!0,stroke:!0,fill:!0}),q(n).forEach(_),o.forEach(_),this.h()},h(){$(n,"id","Path"),$(n,"d","M65.816 34.224 C63.684 18.251 58.288 4.917 49.999 4.917 41.711 4.917 36.314 18.251 34.182 34.224 18.208 36.357 4.874 41.753 4.874 50.042 4.874 58.33 18.211 63.727 34.182 65.859 36.314 81.83 41.711 95.167 49.999 95.167 58.288 95.167 63.684 81.83 65.816 65.859 81.79 63.727 95.124 58.33 95.124 50.042 95.124 41.753 81.788 36.357 65.816 34.224 Z M33.661 61.206 C18.363 58.997 9.44 53.939 9.44 50.042 9.44 46.144 18.363 41.087 33.661 38.877 33.324 42.56 33.149 46.319 33.149 50.042 33.149 53.764 33.324 57.526 33.661 61.206 Z M49.999 9.483 C53.897 9.483 58.954 18.405 61.164 33.703 57.483 33.367 53.721 33.191 49.999 33.191 46.277 33.191 42.515 33.367 38.835 33.703 41.044 18.405 46.102 9.483 49.999 9.483 Z M66.338 61.206 C65.585 61.316 62.496 61.678 61.715 61.755 61.638 62.539 61.273 65.625 61.166 66.378 58.956 81.676 53.899 90.598 50.001 90.598 46.104 90.598 41.047 81.676 38.837 66.378 38.73 65.625 38.365 62.536 38.288 61.755 37.932 58.129 37.717 54.234 37.717 50.042 37.717 45.85 37.932 41.954 38.288 38.326 41.914 37.97 45.809 37.755 50.001 37.755 54.194 37.755 58.089 37.97 61.715 38.326 62.499 38.403 65.585 38.767 66.338 38.875 81.636 41.085 90.56 46.144 90.56 50.039 90.56 53.935 81.636 58.997 66.338 61.206 Z"),$(n,"stroke",s[3]),$(n,"fill",s[3]),$(e,"width",s[0]),$(e,"height",s[1]),$(e,"viewBox","0 0 100 100"),$(e,"xmlns","http://www.w3.org/2000/svg"),$(e,"xmlns:xlink","http://www.w3.org/1999/xlink"),$(e,"version","1.1"),$(e,"role","img")},m(r,o){C(r,e,o),V(e,l),V(l,t),V(e,n)},p(r,[o]){o&4&&pe(t,r[2]),o&1&&$(e,"width",r[0]),o&2&&$(e,"height",r[1])},i:se,o:se,d(r){r&&_(e)}}}function ss(s,e,l){let{width:t="100px"}=e,{height:n="100px"}=e,{isCloud:r}=e,{title:o=""}=e,a=r?"black":"white";return s.$$set=i=>{"width"in i&&l(0,t=i.width),"height"in i&&l(1,n=i.height),"isCloud"in i&&l(4,r=i.isCloud),"title"in i&&l(2,o=i.title)},[t,n,o,a,r]}class rs extends ae{constructor(e){super(),fe(this,e,ss,ns,ue,{width:0,height:1,isCloud:4,title:2})}}const _t=cn("navOpen",!1);const os=s=>({}),Xt=s=>({}),is=s=>({}),Jt=s=>({}),as=s=>({}),Yt=s=>({}),fs=s=>({}),yt=s=>({});function xt(s){let e,l=j("common.version")+"",t;return{c(){e=A("span"),t=Q(l),this.h()},l(n){e=R(n,"SPAN",{class:!0});var r=q(e);t=X(r,l),r.forEach(_),this.h()},h(){$(e,"class","sr-only")},m(n,r){C(n,e,r),V(e,t)},p:se,d(n){n&&_(e)}}}function us(s){let e,l,t,n,r,o,a,i,f,u,c,m,d,b,E,h,k,I,N,w,T,W,O,U,v,M,K,J,Ee,ge;n=new rs({props:{height:"24px",width:"24px",isCloud:s[0],title:j("workflows.recent-workflows-link")}}),i=new Ie({props:{name:s[3]?"chevron-left":"chevron-right"}});const Te=s[11].top,he=ee(Te,s,s[10],yt),Ce=s[11].middle,_e=ee(Ce,s,s[10],Yt),Z=s[11].bottom,Y=ee(Z,s,s[10],Jt);let y=s[2]&&xt();const be=s[11].drawer,re=ee(be,s,s[10],Xt);let $e=[{class:"nav-header transition-width"},{"data-testid":"navigation-header"},s[5]],ke={};for(let H=0;H<$e.length;H+=1)ke=we(ke,$e[H]);return{c(){e=A("nav"),l=A("div"),t=A("a"),D(n.$$.fragment),o=P(),a=A("button"),D(i.$$.fragment),u=P(),c=A("div"),m=A("div"),d=A("ul"),he&&he.c(),b=P(),E=A("hr"),k=P(),I=A("ul"),_e&&_e.c(),N=P(),w=A("div"),T=A("ul"),Y&&Y.c(),W=P(),O=A("div"),y&&y.c(),U=P(),v=Q(s[2]),K=P(),re&&re.c(),this.h()},l(H){e=R(H,"NAV",{class:!0,"data-testid":!0});var x=q(e);l=R(x,"DIV",{class:!0});var Ve=q(l);t=R(Ve,"A",{href:!0,class:!0,style:!0});var Ae=q(t);S(n.$$.fragment,Ae),Ae.forEach(_),o=F(Ve),a=R(Ve,"BUTTON",{class:!0,title:!0});var Ge=q(a);S(i.$$.fragment,Ge),Ge.forEach(_),Ve.forEach(_),u=F(x),c=R(x,"DIV",{class:!0});var Pe=q(c);m=R(Pe,"DIV",{class:!0});var Se=q(m);d=R(Se,"UL",{class:!0});var Qe=q(d);he&&he.l(Qe),Qe.forEach(_),b=F(Se),E=R(Se,"HR",{class:!0}),k=F(Se),I=R(Se,"UL",{class:!0});var Xe=q(I);_e&&_e.l(Xe),Xe.forEach(_),Se.forEach(_),N=F(Pe),w=R(Pe,"DIV",{class:!0});var L=q(w);T=R(L,"UL",{class:!0});var Be=q(T);Y&&Y.l(Be),Be.forEach(_),L.forEach(_),Pe.forEach(_),W=F(x),O=R(x,"DIV",{class:!0});var Je=q(O);y&&y.l(Je),U=F(Je),v=X(Je,s[2]),Je.forEach(_),K=F(x),re&&re.l(x),x.forEach(_),this.h()},h(){$(t,"href",r=s[1].home),$(t,"class","absolute block"),Lt(t,"top","22px"),Lt(t,"left","18px"),$(a,"class","nav-toggle svelte-1e50i2l"),$(a,"title",f=s[3]?"Collapse menu":"Expand menu"),G(a,"open",s[3]),G(a,"close",!s[3]),$(l,"class","relative h-32 min-h-[84px]"),$(d,"class","nav-section svelte-1e50i2l"),$(E,"class",h="my-8 w-full "+(s[0]?"stroke-gray-200":"stroke-gray-700")),$(I,"class","nav-section svelte-1e50i2l"),$(m,"class","nav-section-wrapper svelte-1e50i2l"),$(T,"class","nav-section svelte-1e50i2l"),$(w,"class","nav-section-wrapper svelte-1e50i2l"),$(c,"class","nav-wrapper transition-width svelte-1e50i2l"),G(c,"open",s[3]),G(c,"close",!s[3]),$(O,"class",M="h-4 w-full pb-12 pt-24 text-center text-[10px] "+(s[0]?"text-gray-500":"text-gray-300")),tt(e,ke),G(e,"cloud",s[0]),G(e,"svelte-1e50i2l",!0)},m(H,x){C(H,e,x),V(e,l),V(l,t),B(n,t,null),V(l,o),V(l,a),B(i,a,null),V(e,u),V(e,c),V(c,m),V(m,d),he&&he.m(d,null),V(m,b),V(m,E),V(m,k),V(m,I),_e&&_e.m(I,null),V(c,N),V(c,w),V(w,T),Y&&Y.m(T,null),V(e,W),V(e,O),y&&y.m(O,null),V(O,U),V(O,v),V(e,K),re&&re.m(e,null),J=!0,Ee||(ge=ve(a,"click",s[4]),Ee=!0)},p(H,[x]){const Ve={};x&1&&(Ve.isCloud=H[0]),n.$set(Ve),(!J||x&2&&r!==(r=H[1].home))&&$(t,"href",r);const Ae={};x&8&&(Ae.name=H[3]?"chevron-left":"chevron-right"),i.$set(Ae),(!J||x&8&&f!==(f=H[3]?"Collapse menu":"Expand menu"))&&$(a,"title",f),(!J||x&8)&&G(a,"open",H[3]),(!J||x&8)&&G(a,"close",!H[3]),he&&he.p&&(!J||x&1024)&&te(he,Te,H,H[10],J?ne(Te,H[10],x,fs):le(H[10]),yt),(!J||x&1&&h!==(h="my-8 w-full "+(H[0]?"stroke-gray-200":"stroke-gray-700")))&&$(E,"class",h),_e&&_e.p&&(!J||x&1024)&&te(_e,Ce,H,H[10],J?ne(Ce,H[10],x,as):le(H[10]),Yt),Y&&Y.p&&(!J||x&1024)&&te(Y,Z,H,H[10],J?ne(Z,H[10],x,is):le(H[10]),Jt),(!J||x&8)&&G(c,"open",H[3]),(!J||x&8)&&G(c,"close",!H[3]),H[2]?y?y.p(H,x):(y=xt(),y.c(),y.m(O,U)):y&&(y.d(1),y=null),(!J||x&4)&&pe(v,H[2]),(!J||x&1&&M!==(M="h-4 w-full pb-12 pt-24 text-center text-[10px] "+(H[0]?"text-gray-500":"text-gray-300")))&&$(O,"class",M),re&&re.p&&(!J||x&1024)&&te(re,be,H,H[10],J?ne(be,H[10],x,os):le(H[10]),Xt),tt(e,ke=ht($e,[{class:"nav-header transition-width"},{"data-testid":"navigation-header"},x&32&&H[5]])),G(e,"cloud",H[0]),G(e,"svelte-1e50i2l",!0)},i(H){J||(p(n.$$.fragment,H),p(i.$$.fragment,H),p(he,H),p(_e,H),p(Y,H),p(re,H),J=!0)},o(H){g(n.$$.fragment,H),g(i.$$.fragment,H),g(he,H),g(_e,H),g(Y,H),g(re,H),J=!1},d(H){H&&_(e),z(n),z(i),he&&he.d(H),_e&&_e.d(H),Y&&Y.d(H),y&&y.d(),re&&re.d(H),Ee=!1,ge()}}}function cs(s,e,l){let t;const n=["isCloud","linkList"];let r=Me(e,n),o,a;oe(s,qe,h=>l(9,o=h)),oe(s,_t,h=>l(3,a=h));let{$$slots:i={},$$scope:f}=e;var u,c,m;let{isCloud:d=!1}=e,{linkList:b}=e;function E(){de(_t,a=!a,a)}return s.$$set=h=>{e=we(we({},e),Oe(h)),l(5,r=Me(e,n)),"isCloud"in h&&l(0,d=h.isCloud),"linkList"in h&&l(1,b=h.linkList),"$$scope"in h&&l(10,f=h.$$scope)},s.$$.update=()=>{s.$$.dirty&960&&l(2,t=l(8,m=l(7,c=l(6,u=o.data)===null||u===void 0?void 0:u.settings)===null||c===void 0?void 0:c.version)!==null&&m!==void 0?m:"")},[d,b,t,a,E,r,u,c,m,o,f,i]}class ms extends ae{constructor(e){super(),fe(this,e,cs,us,ue,{isCloud:0,linkList:1})}}function ds(s){let e;const l=s[9].default,t=ee(l,s,s[8],null);return{c(){t&&t.c()},l(n){t&&t.l(n)},m(n,r){t&&t.m(n,r),e=!0},p(n,r){t&&t.p&&(!e||r&256)&&te(t,l,n,n[8],e?ne(l,n[8],r,null):le(n[8]),null)},i(n){e||(p(t,n),e=!0)},o(n){g(t,n),e=!1},d(n){t&&t.d(n)}}}function _s(s){let e,l;const t=s[9].default,n=ee(t,s,s[8],null);return{c(){e=A("a"),n&&n.c(),this.h()},l(r){e=R(r,"A",{href:!0,class:!0});var o=q(e);n&&n.l(o),o.forEach(_),this.h()},h(){$(e,"href",s[0]),$(e,"class",ze(s[5])+" svelte-4ukgao")},m(r,o){C(r,e,o),n&&n.m(e,null),l=!0},p(r,o){n&&n.p&&(!l||o&256)&&te(n,t,r,r[8],l?ne(t,r[8],o,null):le(r[8]),null),(!l||o&1)&&$(e,"href",r[0])},i(r){l||(p(n,r),l=!0)},o(r){g(n,r),l=!1},d(r){r&&_(e),n&&n.d(r)}}}function ps(s){let e,l;const t=s[9].default,n=ee(t,s,s[8],null);return{c(){e=A("a"),n&&n.c(),this.h()},l(r){e=R(r,"A",{href:!0,rel:!0,target:!0,class:!0});var o=q(e);n&&n.l(o),o.forEach(_),this.h()},h(){$(e,"href",s[0]),$(e,"rel","noreferrer"),$(e,"target","_blank"),$(e,"class",ze(s[5])+" svelte-4ukgao")},m(r,o){C(r,e,o),n&&n.m(e,null),l=!0},p(r,o){n&&n.p&&(!l||o&256)&&te(n,t,r,r[8],l?ne(t,r[8],o,null):le(r[8]),null),(!l||o&1)&&$(e,"href",r[0])},i(r){l||(p(n,r),l=!0)},o(r){g(n,r),l=!1},d(r){r&&_(e),n&&n.d(r)}}}function gs(s){let e,l,t,n;const r=s[9].default,o=ee(r,s,s[8],null);return{c(){e=A("button"),o&&o.c(),this.h()},l(a){e=R(a,"BUTTON",{class:!0});var i=q(e);o&&o.l(i),i.forEach(_),this.h()},h(){$(e,"class",s[5]+" text-left svelte-4ukgao")},m(a,i){C(a,e,i),o&&o.m(e,null),l=!0,t||(n=ve(e,"click",function(){bt(s[4])&&s[4].apply(this,arguments)}),t=!0)},p(a,i){s=a,o&&o.p&&(!l||i&256)&&te(o,r,s,s[8],l?ne(r,s[8],i,null):le(s[8]),null)},i(a){l||(p(o,a),l=!0)},o(a){g(o,a),l=!1},d(a){a&&_(e),o&&o.d(a),t=!1,n()}}}function hs(s){let e,l,t,n,r,o;const a=[gs,ps,_s,ds],i=[];function f(u,c){return u[4]!==null?0:u[0]&&u[3]?1:u[0]?2:3}return l=f(s),t=i[l]=a[l](s),{c(){e=A("li"),t.c(),this.h()},l(u){e=R(u,"LI",{class:!0,"data-testid":!0});var c=q(e);t.l(c),c.forEach(_),this.h()},h(){$(e,"class",n=ze(s[0]?"":s[5])+" svelte-4ukgao"),$(e,"data-testid",r=s[6]["data-testid"]),G(e,"noFilter",s[1]),G(e,"wrap",s[2]),G(e,"button",s[4]!==null)},m(u,c){C(u,e,c),i[l].m(e,null),o=!0},p(u,[c]){let m=l;l=f(u),l===m?i[l].p(u,c):(ce(),g(i[m],1,1,()=>{i[m]=null}),me(),t=i[l],t?t.p(u,c):(t=i[l]=a[l](u),t.c()),p(t,1),t.m(e,null)),(!o||c&1&&n!==(n=ze(u[0]?"":u[5])+" svelte-4ukgao"))&&$(e,"class",n),(!o||c&64&&r!==(r=u[6]["data-testid"]))&&$(e,"data-testid",r),(!o||c&3)&&G(e,"noFilter",u[1]),(!o||c&5)&&G(e,"wrap",u[2]),(!o||c&17)&&G(e,"button",u[4]!==null)},i(u){o||(p(t),o=!0)},o(u){g(t),o=!1},d(u){u&&_(e),i[l].d()}}}function bs(s,e,l){let{$$slots:t={},$$scope:n}=e,{link:r=null}=e,{isCloud:o}=e,{noFilter:a=!1}=e,{wrap:i=!1}=e,{externalLink:f=!1}=e,{handleClick:u=null}=e,c=`nav-row ${e.class} ${o?"cloud":"local"}`;return s.$$set=m=>{l(6,e=we(we({},e),Oe(m))),"link"in m&&l(0,r=m.link),"isCloud"in m&&l(7,o=m.isCloud),"noFilter"in m&&l(1,a=m.noFilter),"wrap"in m&&l(2,i=m.wrap),"externalLink"in m&&l(3,f=m.externalLink),"handleClick"in m&&l(4,u=m.handleClick),"$$scope"in m&&l(8,n=m.$$scope)},e=Oe(e),[r,a,i,f,u,c,e,o,n,t]}class Re extends ae{constructor(e){super(),fe(this,e,bs,hs,ue,{link:0,isCloud:7,noFilter:1,wrap:2,externalLink:3,handleClick:4})}}function $s(s){let e;const l=s[3].default,t=ee(l,s,s[4],null);return{c(){t&&t.c()},l(n){t&&t.l(n)},m(n,r){t&&t.m(n,r),e=!0},p(n,r){t&&t.p&&(!e||r&16)&&te(t,l,n,n[4],e?ne(l,n[4],r,null):le(n[4]),null)},i(n){e||(p(t,n),e=!0)},o(n){g(t,n),e=!1},d(n){t&&t.d(n)}}}function vs(s){let e,l;const t=[{right:!0},{hide:s[2]},{text:s[1]},s[0]];let n={$$slots:{default:[$s]},$$scope:{ctx:s}};for(let r=0;rl(2,r=u));let{$$slots:o={},$$scope:a}=e,{props:i=n}=e,{text:f=n.text}=e;return s.$$set=u=>{e=we(we({},e),Oe(u)),l(5,n=Me(e,t)),"props"in u&&l(0,i=u.props),"text"in u&&l(1,f=u.text),"$$scope"in u&&l(4,a=u.$$scope)},[i,f,r,o,a]}class je extends ae{constructor(e){super(),fe(this,e,ks,vs,ue,{props:0,text:1})}}const ws=s=>({}),el=s=>({}),Es=s=>({}),tl=s=>({}),Cs=s=>({}),ll=s=>({}),Is=s=>({}),nl=s=>({}),Ts=s=>({}),sl=s=>({});function Ls(s){let e,l,t;return l=new Ie({props:{name:"workflow"}}),{c(){e=A("div"),D(l.$$.fragment),this.h()},l(n){e=R(n,"DIV",{class:!0});var r=q(e);S(l.$$.fragment,r),r.forEach(_),this.h()},h(){$(e,"class","nav-icon svelte-1jb7rp7")},m(n,r){C(n,e,r),B(l,e,null),t=!0},p:se,i(n){t||(p(l.$$.fragment,n),t=!0)},o(n){g(l.$$.fragment,n),t=!1},d(n){n&&_(e),z(l)}}}function Vs(s){let e,l,t,n=j("common.workflows")+"",r,o;return e=new je({props:{text:j("common.workflows"),$$slots:{default:[Ls]},$$scope:{ctx:s}}}),{c(){D(e.$$.fragment),l=P(),t=A("div"),r=Q(n),this.h()},l(a){S(e.$$.fragment,a),l=F(a),t=R(a,"DIV",{class:!0});var i=q(t);r=X(i,n),i.forEach(_),this.h()},h(){$(t,"class","nav-title svelte-1jb7rp7")},m(a,i){B(e,a,i),C(a,l,i),C(a,t,i),V(t,r),o=!0},p(a,i){const f={};i&32&&(f.$$scope={dirty:i,ctx:a}),e.$set(f)},i(a){o||(p(e.$$.fragment,a),o=!0)},o(a){g(e.$$.fragment,a),o=!1},d(a){z(e,a),a&&_(l),a&&_(t)}}}function Ns(s){let e,l,t;return l=new Ie({props:{name:"schedules"}}),{c(){e=A("div"),D(l.$$.fragment),this.h()},l(n){e=R(n,"DIV",{class:!0});var r=q(e);S(l.$$.fragment,r),r.forEach(_),this.h()},h(){$(e,"class","nav-icon svelte-1jb7rp7")},m(n,r){C(n,e,r),B(l,e,null),t=!0},p:se,i(n){t||(p(l.$$.fragment,n),t=!0)},o(n){g(l.$$.fragment,n),t=!1},d(n){n&&_(e),z(l)}}}function Ds(s){let e,l,t,n=j("common.schedules")+"",r,o;return e=new je({props:{text:j("common.schedules"),$$slots:{default:[Ns]},$$scope:{ctx:s}}}),{c(){D(e.$$.fragment),l=P(),t=A("div"),r=Q(n),this.h()},l(a){S(e.$$.fragment,a),l=F(a),t=R(a,"DIV",{class:!0});var i=q(t);r=X(i,n),i.forEach(_),this.h()},h(){$(t,"class","nav-title svelte-1jb7rp7")},m(a,i){B(e,a,i),C(a,l,i),C(a,t,i),V(t,r),o=!0},p(a,i){const f={};i&32&&(f.$$scope={dirty:i,ctx:a}),e.$set(f)},i(a){o||(p(e.$$.fragment,a),o=!0)},o(a){g(e.$$.fragment,a),o=!1},d(a){z(e,a),a&&_(l),a&&_(t)}}}function Ss(s){let e,l;return e=new Re({props:{link:s[2].schedules,isCloud:s[0],"data-testid":"schedules-button",$$slots:{default:[Ds]},$$scope:{ctx:s}}}),{c(){D(e.$$.fragment)},l(t){S(e.$$.fragment,t)},m(t,n){B(e,t,n),l=!0},p(t,n){const r={};n&4&&(r.link=t[2].schedules),n&1&&(r.isCloud=t[0]),n&32&&(r.$$scope={dirty:n,ctx:t}),e.$set(r)},i(t){l||(p(e.$$.fragment,t),l=!0)},o(t){g(e.$$.fragment,t),l=!1},d(t){z(e,t)}}}function Bs(s){var t,n;let e,l;return e=new Kn({props:{enabled:Boolean((n=(t=s[1])==null?void 0:t.namespaceInfo)==null?void 0:n.supportsSchedules),$$slots:{default:[Ss]},$$scope:{ctx:s}}}),{c(){D(e.$$.fragment)},l(r){S(e.$$.fragment,r)},m(r,o){B(e,r,o),l=!0},p(r,o){var i,f;const a={};o&2&&(a.enabled=Boolean((f=(i=r[1])==null?void 0:i.namespaceInfo)==null?void 0:f.supportsSchedules)),o&37&&(a.$$scope={dirty:o,ctx:r}),e.$set(a)},i(r){l||(p(e.$$.fragment,r),l=!0)},o(r){g(e.$$.fragment,r),l=!1},d(r){z(e,r)}}}function zs(s){let e,l,t;return l=new Ie({props:{name:"archives"}}),{c(){e=A("div"),D(l.$$.fragment),this.h()},l(n){e=R(n,"DIV",{class:!0});var r=q(e);S(l.$$.fragment,r),r.forEach(_),this.h()},h(){$(e,"class","nav-icon svelte-1jb7rp7")},m(n,r){C(n,e,r),B(l,e,null),t=!0},p:se,i(n){t||(p(l.$$.fragment,n),t=!0)},o(n){g(l.$$.fragment,n),t=!1},d(n){n&&_(e),z(l)}}}function Os(s){let e,l,t,n=j("common.archive")+"",r,o;return e=new je({props:{text:j("common.archive"),$$slots:{default:[zs]},$$scope:{ctx:s}}}),{c(){D(e.$$.fragment),l=P(),t=A("div"),r=Q(n),this.h()},l(a){S(e.$$.fragment,a),l=F(a),t=R(a,"DIV",{class:!0});var i=q(t);r=X(i,n),i.forEach(_),this.h()},h(){$(t,"class","nav-title svelte-1jb7rp7")},m(a,i){B(e,a,i),C(a,l,i),C(a,t,i),V(t,r),o=!0},p(a,i){const f={};i&32&&(f.$$scope={dirty:i,ctx:a}),e.$set(f)},i(a){o||(p(e.$$.fragment,a),o=!0)},o(a){g(e.$$.fragment,a),o=!1},d(a){z(e,a),a&&_(l),a&&_(t)}}}function As(s){let e,l;return e=new Re({props:{link:s[2].archive,isCloud:s[0],"data-testid":"archive-button",$$slots:{default:[Os]},$$scope:{ctx:s}}}),{c(){D(e.$$.fragment)},l(t){S(e.$$.fragment,t)},m(t,n){B(e,t,n),l=!0},p(t,n){const r={};n&4&&(r.link=t[2].archive),n&1&&(r.isCloud=t[0]),n&32&&(r.$$scope={dirty:n,ctx:t}),e.$set(r)},i(t){l||(p(e.$$.fragment,t),l=!0)},o(t){g(e.$$.fragment,t),l=!1},d(t){z(e,t)}}}function Rs(s){let e,l,t;return l=new Ie({props:{name:s[3]}}),{c(){e=A("div"),D(l.$$.fragment),this.h()},l(n){e=R(n,"DIV",{class:!0});var r=q(e);S(l.$$.fragment,r),r.forEach(_),this.h()},h(){$(e,"class","nav-icon svelte-1jb7rp7")},m(n,r){C(n,e,r),B(l,e,null),t=!0},p(n,r){const o={};r&8&&(o.name=n[3]),l.$set(o)},i(n){t||(p(l.$$.fragment,n),t=!0)},o(n){g(l.$$.fragment,n),t=!1},d(n){n&&_(e),z(l)}}}function qs(s){let e,l,t,n=j("batch.nav-title")+"",r,o;return e=new je({props:{text:j("batch.list-page-title"),$$slots:{default:[Rs]},$$scope:{ctx:s}}}),{c(){D(e.$$.fragment),l=P(),t=A("div"),r=Q(n),this.h()},l(a){S(e.$$.fragment,a),l=F(a),t=R(a,"DIV",{class:!0});var i=q(t);r=X(i,n),i.forEach(_),this.h()},h(){$(t,"class","nav-title svelte-1jb7rp7")},m(a,i){B(e,a,i),C(a,l,i),C(a,t,i),V(t,r),o=!0},p(a,i){const f={};i&40&&(f.$$scope={dirty:i,ctx:a}),e.$set(f)},i(a){o||(p(e.$$.fragment,a),o=!0)},o(a){g(e.$$.fragment,a),o=!1},d(a){z(e,a),a&&_(l),a&&_(t)}}}function js(s){let e,l,t,n,r,o,a,i,f;e=new Re({props:{link:s[2].workflows,isCloud:s[0],"data-testid":"workflows-button",$$slots:{default:[Vs]},$$scope:{ctx:s}}}),t=new dt({props:{isCloud:s[0],$$slots:{default:[Bs]},$$scope:{ctx:s}}});const u=s[4].top,c=ee(u,s,s[5],el);return o=new dt({props:{isCloud:s[0],$$slots:{default:[As]},$$scope:{ctx:s}}}),i=new Re({props:{link:s[2].batchOperations,isCloud:s[0],$$slots:{default:[qs]},$$scope:{ctx:s}}}),{c(){D(e.$$.fragment),l=P(),D(t.$$.fragment),n=P(),c&&c.c(),r=P(),D(o.$$.fragment),a=P(),D(i.$$.fragment)},l(m){S(e.$$.fragment,m),l=F(m),S(t.$$.fragment,m),n=F(m),c&&c.l(m),r=F(m),S(o.$$.fragment,m),a=F(m),S(i.$$.fragment,m)},m(m,d){B(e,m,d),C(m,l,d),B(t,m,d),C(m,n,d),c&&c.m(m,d),C(m,r,d),B(o,m,d),C(m,a,d),B(i,m,d),f=!0},p(m,d){const b={};d&4&&(b.link=m[2].workflows),d&1&&(b.isCloud=m[0]),d&32&&(b.$$scope={dirty:d,ctx:m}),e.$set(b);const E={};d&1&&(E.isCloud=m[0]),d&39&&(E.$$scope={dirty:d,ctx:m}),t.$set(E),c&&c.p&&(!f||d&32)&&te(c,u,m,m[5],f?ne(u,m[5],d,ws):le(m[5]),el);const h={};d&1&&(h.isCloud=m[0]),d&37&&(h.$$scope={dirty:d,ctx:m}),o.$set(h);const k={};d&4&&(k.link=m[2].batchOperations),d&1&&(k.isCloud=m[0]),d&40&&(k.$$scope={dirty:d,ctx:m}),i.$set(k)},i(m){f||(p(e.$$.fragment,m),p(t.$$.fragment,m),p(c,m),p(o.$$.fragment,m),p(i.$$.fragment,m),f=!0)},o(m){g(e.$$.fragment,m),g(t.$$.fragment,m),g(c,m),g(o.$$.fragment,m),g(i.$$.fragment,m),f=!1},d(m){z(e,m),m&&_(l),z(t,m),m&&_(n),c&&c.d(m),m&&_(r),z(o,m),m&&_(a),z(i,m)}}}function Ps(s){let e,l,t;return l=new Ie({props:{name:"namespace"}}),{c(){e=A("div"),D(l.$$.fragment),this.h()},l(n){e=R(n,"DIV",{class:!0});var r=q(e);S(l.$$.fragment,r),r.forEach(_),this.h()},h(){$(e,"class","nav-icon svelte-1jb7rp7")},m(n,r){C(n,e,r),B(l,e,null),t=!0},p:se,i(n){t||(p(l.$$.fragment,n),t=!0)},o(n){g(l.$$.fragment,n),t=!1},d(n){n&&_(e),z(l)}}}function Fs(s){let e,l,t,n=j("common.namespaces")+"",r,o;return e=new je({props:{text:j("common.namespaces"),$$slots:{default:[Ps]},$$scope:{ctx:s}}}),{c(){D(e.$$.fragment),l=P(),t=A("div"),r=Q(n),this.h()},l(a){S(e.$$.fragment,a),l=F(a),t=R(a,"DIV",{class:!0});var i=q(t);r=X(i,n),i.forEach(_),this.h()},h(){$(t,"class","nav-title svelte-1jb7rp7")},m(a,i){B(e,a,i),C(a,l,i),C(a,t,i),V(t,r),o=!0},p(a,i){const f={};i&32&&(f.$$scope={dirty:i,ctx:a}),e.$set(f)},i(a){o||(p(e.$$.fragment,a),o=!0)},o(a){g(e.$$.fragment,a),o=!1},d(a){z(e,a),a&&_(l),a&&_(t)}}}function Hs(s){let e,l;return e=new Re({props:{link:s[2].namespaces,isCloud:s[0],"data-testid":"namespaces-button",$$slots:{default:[Fs]},$$scope:{ctx:s}}}),{c(){D(e.$$.fragment)},l(t){S(e.$$.fragment,t)},m(t,n){B(e,t,n),l=!0},p(t,n){const r={};n&4&&(r.link=t[2].namespaces),n&1&&(r.isCloud=t[0]),n&32&&(r.$$scope={dirty:n,ctx:t}),e.$set(r)},i(t){l||(p(e.$$.fragment,t),l=!0)},o(t){g(e.$$.fragment,t),l=!1},d(t){z(e,t)}}}function Ms(s){let e,l,t;e=new ls({props:{isCloud:s[0],$$slots:{default:[Hs]},$$scope:{ctx:s}}});const n=s[4].middle,r=ee(n,s,s[5],tl);return{c(){D(e.$$.fragment),l=P(),r&&r.c()},l(o){S(e.$$.fragment,o),l=F(o),r&&r.l(o)},m(o,a){B(e,o,a),C(o,l,a),r&&r.m(o,a),t=!0},p(o,a){const i={};a&1&&(i.isCloud=o[0]),a&37&&(i.$$scope={dirty:a,ctx:o}),e.$set(i),r&&r.p&&(!t||a&32)&&te(r,n,o,o[5],t?ne(n,o[5],a,Es):le(o[5]),tl)},i(o){t||(p(e.$$.fragment,o),p(r,o),t=!0)},o(o){g(e.$$.fragment,o),g(r,o),t=!1},d(o){z(e,o),o&&_(l),r&&r.d(o)}}}function Us(s){let e,l,t;return l=new Ie({props:{name:"import"}}),{c(){e=A("div"),D(l.$$.fragment),this.h()},l(n){e=R(n,"DIV",{class:!0});var r=q(e);S(l.$$.fragment,r),r.forEach(_),this.h()},h(){$(e,"class","nav-icon svelte-1jb7rp7")},m(n,r){C(n,e,r),B(l,e,null),t=!0},p:se,i(n){t||(p(l.$$.fragment,n),t=!0)},o(n){g(l.$$.fragment,n),t=!1},d(n){n&&_(e),z(l)}}}function Ks(s){let e,l,t,n=j("common.import")+"",r,o;return e=new je({props:{text:j("common.import"),$$slots:{default:[Us]},$$scope:{ctx:s}}}),{c(){D(e.$$.fragment),l=P(),t=A("div"),r=Q(n),this.h()},l(a){S(e.$$.fragment,a),l=F(a),t=R(a,"DIV",{class:!0});var i=q(t);r=X(i,n),i.forEach(_),this.h()},h(){$(t,"class","nav-title svelte-1jb7rp7")},m(a,i){B(e,a,i),C(a,l,i),C(a,t,i),V(t,r),o=!0},p(a,i){const f={};i&32&&(f.$$scope={dirty:i,ctx:a}),e.$set(f)},i(a){o||(p(e.$$.fragment,a),o=!0)},o(a){g(e.$$.fragment,a),o=!1},d(a){z(e,a),a&&_(l),a&&_(t)}}}function Ws(s){let e,l;return e=new Re({props:{link:s[2].import,isCloud:s[0],"data-testid":"import-button",$$slots:{default:[Ks]},$$scope:{ctx:s}}}),{c(){D(e.$$.fragment)},l(t){S(e.$$.fragment,t)},m(t,n){B(e,t,n),l=!0},p(t,n){const r={};n&4&&(r.link=t[2].import),n&1&&(r.isCloud=t[0]),n&32&&(r.$$scope={dirty:n,ctx:t}),e.$set(r)},i(t){l||(p(e.$$.fragment,t),l=!0)},o(t){g(e.$$.fragment,t),l=!1},d(t){z(e,t)}}}function Zs(s){let e,l;return e=new dt({props:{isCloud:s[0],$$slots:{default:[Ws]},$$scope:{ctx:s}}}),{c(){D(e.$$.fragment)},l(t){S(e.$$.fragment,t)},m(t,n){B(e,t,n),l=!0},p(t,n){const r={};n&1&&(r.isCloud=t[0]),n&37&&(r.$$scope={dirty:n,ctx:t}),e.$set(r)},i(t){l||(p(e.$$.fragment,t),l=!0)},o(t){g(e.$$.fragment,t),l=!1},d(t){z(e,t)}}}function Gs(s){let e,l,t;return l=new Ie({props:{name:"feedback"}}),{c(){e=A("div"),D(l.$$.fragment),this.h()},l(n){e=R(n,"DIV",{class:!0});var r=q(e);S(l.$$.fragment,r),r.forEach(_),this.h()},h(){$(e,"class","nav-icon svelte-1jb7rp7")},m(n,r){C(n,e,r),B(l,e,null),t=!0},p:se,i(n){t||(p(l.$$.fragment,n),t=!0)},o(n){g(l.$$.fragment,n),t=!1},d(n){n&&_(e),z(l)}}}function Qs(s){let e,l,t,n=j("common.feedback")+"",r,o;return e=new je({props:{text:j("common.feedback"),$$slots:{default:[Gs]},$$scope:{ctx:s}}}),{c(){D(e.$$.fragment),l=P(),t=A("div"),r=Q(n),this.h()},l(a){S(e.$$.fragment,a),l=F(a),t=R(a,"DIV",{class:!0});var i=q(t);r=X(i,n),i.forEach(_),this.h()},h(){$(t,"class","nav-title svelte-1jb7rp7")},m(a,i){B(e,a,i),C(a,l,i),C(a,t,i),V(t,r),o=!0},p(a,i){const f={};i&32&&(f.$$scope={dirty:i,ctx:a}),e.$set(f)},i(a){o||(p(e.$$.fragment,a),o=!0)},o(a){g(e.$$.fragment,a),o=!1},d(a){z(e,a),a&&_(l),a&&_(t)}}}function Xs(s){let e,l;return e=new Re({props:{link:s[2].feedback,isCloud:s[0],externalLink:!0,$$slots:{default:[Qs]},$$scope:{ctx:s}}}),{c(){D(e.$$.fragment)},l(t){S(e.$$.fragment,t)},m(t,n){B(e,t,n),l=!0},p(t,n){const r={};n&4&&(r.link=t[2].feedback),n&1&&(r.isCloud=t[0]),n&32&&(r.$$scope={dirty:n,ctx:t}),e.$set(r)},i(t){l||(p(e.$$.fragment,t),l=!0)},o(t){g(e.$$.fragment,t),l=!1},d(t){z(e,t)}}}function Js(s){let e,l,t;const n=s[4].bottom,r=ee(n,s,s[5],sl),o=s[4].import,a=ee(o,s,s[5],nl),i=a||Zs(s),f=s[4].feedback,u=ee(f,s,s[5],ll),c=u||Xs(s);return{c(){r&&r.c(),e=P(),i&&i.c(),l=P(),c&&c.c()},l(m){r&&r.l(m),e=F(m),i&&i.l(m),l=F(m),c&&c.l(m)},m(m,d){r&&r.m(m,d),C(m,e,d),i&&i.m(m,d),C(m,l,d),c&&c.m(m,d),t=!0},p(m,d){r&&r.p&&(!t||d&32)&&te(r,n,m,m[5],t?ne(n,m[5],d,Ts):le(m[5]),sl),a?a.p&&(!t||d&32)&&te(a,o,m,m[5],t?ne(o,m[5],d,Is):le(m[5]),nl):i&&i.p&&(!t||d&5)&&i.p(m,t?d:-1),u?u.p&&(!t||d&32)&&te(u,f,m,m[5],t?ne(f,m[5],d,Cs):le(m[5]),ll):c&&c.p&&(!t||d&5)&&c.p(m,t?d:-1)},i(m){t||(p(r,m),p(i,m),p(c,m),t=!0)},o(m){g(r,m),g(i,m),g(c,m),t=!1},d(m){r&&r.d(m),m&&_(e),i&&i.d(m),m&&_(l),c&&c.d(m)}}}function Ys(s){let e,l;return e=new ms({props:{isCloud:s[0],linkList:s[2],"aria-label":j("common.primary"),$$slots:{bottom:[Js],middle:[Ms],top:[js]},$$scope:{ctx:s}}}),{c(){D(e.$$.fragment)},l(t){S(e.$$.fragment,t)},m(t,n){B(e,t,n),l=!0},p(t,[n]){const r={};n&1&&(r.isCloud=t[0]),n&4&&(r.linkList=t[2]),n&47&&(r.$$scope={dirty:n,ctx:t}),e.$set(r)},i(t){l||(p(e.$$.fragment,t),l=!0)},o(t){g(e.$$.fragment,t),l=!1},d(t){z(e,t)}}}function ys(s,e,l){let t;oe(s,mn,c=>l(6,t=c));let{$$slots:n={},$$scope:r}=e,{isCloud:o=!1}=e,{activeNamespace:a}=e,{linkList:i}=e,f="layers-3";const u=setInterval(()=>{if(!t){l(3,f="layers-3");return}setTimeout(()=>{l(3,f="layers-1")}),setTimeout(()=>{l(3,f="layers-2")},330),setTimeout(()=>{l(3,f="layers-3")},660)},2e3);return xl(()=>{clearInterval(u)}),s.$$set=c=>{"isCloud"in c&&l(0,o=c.isCloud),"activeNamespace"in c&&l(1,a=c.activeNamespace),"linkList"in c&&l(2,i=c.linkList),"$$scope"in c&&l(5,r=c.$$scope)},[o,a,i,f,n,r]}class xs extends ae{constructor(e){super(),fe(this,e,ys,Ys,ue,{isCloud:0,activeNamespace:1,linkList:2})}}function er(s){let e=j("common.skip-nav")+"",l;return{c(){l=Q(e)},l(t){l=X(t,e)},m(t,n){C(t,l,n)},p:se,d(t){t&&_(l)}}}function tr(s){let e,l;return e=new zl({props:{id:"skip-nav",href:"#content",class:"absolute left-1/2 z-100 -translate-y-full p-1 focus:translate-y-0",$$slots:{default:[er]},$$scope:{ctx:s}}}),{c(){D(e.$$.fragment)},l(t){S(e.$$.fragment,t)},m(t,n){B(e,t,n),l=!0},p(t,[n]){const r={};n&1&&(r.$$scope={dirty:n,ctx:t}),e.$set(r)},i(t){l||(p(e.$$.fragment,t),l=!0)},o(t){g(e.$$.fragment,t),l=!1},d(t){z(e,t)}}}class lr extends ae{constructor(e){super(),fe(this,e,null,tr,ue,{})}}const nr=Ke("notRequested"),Al=fn([qe,ut,ft,rn,nr,Vl],([s,e,l,t,n,r])=>{var E,h,k,I,N,w,T,W,O;const o=s.params.namespace,a=(k=(h=(E=s==null?void 0:s.data)==null?void 0:E.settings)==null?void 0:h.codec)==null?void 0:k.endpoint,i=Boolean((w=(N=(I=s==null?void 0:s.data)==null?void 0:I.settings)==null?void 0:N.codec)==null?void 0:w.passAccessToken),f=Boolean((O=(W=(T=s==null?void 0:s.data)==null?void 0:T.settings)==null?void 0:W.codec)==null?void 0:O.includeCredentials),u=l?e:a||e,c=r==null?void 0:r.accessToken;return{namespace:o,settingsEndpoint:a,settingsPassAccessToken:i,settingsIncludeCredentials:f,endpoint:u,accessToken:c,hasNotRequested:u?t==="notRequested":n==="notRequested",hasError:u?t==="error":n==="error",hasSuccess:u?t==="success":n==="success"}});function sr(s){let e,l;return e=new We({props:{bottomRight:!0,text:j("data-encoder.configure-codec-server"),$$slots:{default:[or]},$$scope:{ctx:s}}}),{c(){D(e.$$.fragment)},l(t){S(e.$$.fragment,t)},m(t,n){B(e,t,n),l=!0},p(t,n){const r={};n&8&&(r.$$scope={dirty:n,ctx:t}),e.$set(r)},i(t){l||(p(e.$$.fragment,t),l=!0)},o(t){g(e.$$.fragment,t),l=!1},d(t){z(e,t)}}}function rr(s){let e,l,t,n;const r=[fr,ar,ir],o=[];function a(i,f){var u;return(u=i[0])!=null&&u.hasNotRequested?0:i[0].hasError?1:i[0].hasSuccess?2:-1}return~(e=a(s))&&(l=o[e]=r[e](s)),{c(){l&&l.c(),t=ie()},l(i){l&&l.l(i),t=ie()},m(i,f){~e&&o[e].m(i,f),C(i,t,f),n=!0},p(i,f){let u=e;e=a(i),e===u?~e&&o[e].p(i,f):(l&&(ce(),g(o[u],1,1,()=>{o[u]=null}),me()),~e?(l=o[e],l?l.p(i,f):(l=o[e]=r[e](i),l.c()),p(l,1),l.m(t.parentNode,t)):l=null)},i(i){n||(p(l),n=!0)},o(i){g(l),n=!1},d(i){~e&&o[e].d(i),i&&_(t)}}}function or(s){let e,l;return e=new Ze({props:{label:j("data-encoder.configure-codec-server"),class:"relative flex items-center","data-testid":"data-encoder-status",icon:"transcoder-off"}}),e.$on("click",s[1]),{c(){D(e.$$.fragment)},l(t){S(e.$$.fragment,t)},m(t,n){B(e,t,n),l=!0},p:se,i(t){l||(p(e.$$.fragment,t),l=!0)},o(t){g(e.$$.fragment,t),l=!1},d(t){z(e,t)}}}function ir(s){let e,l;return e=new We({props:{bottomRight:!0,text:j("data-encoder.codec-server-success"),$$slots:{default:[ur]},$$scope:{ctx:s}}}),{c(){D(e.$$.fragment)},l(t){S(e.$$.fragment,t)},m(t,n){B(e,t,n),l=!0},p(t,n){const r={};n&8&&(r.$$scope={dirty:n,ctx:t}),e.$set(r)},i(t){l||(p(e.$$.fragment,t),l=!0)},o(t){g(e.$$.fragment,t),l=!1},d(t){z(e,t)}}}function ar(s){let e,l;return e=new We({props:{bottomRight:!0,text:j("data-encoder.codec-server-error"),$$slots:{default:[cr]},$$scope:{ctx:s}}}),{c(){D(e.$$.fragment)},l(t){S(e.$$.fragment,t)},m(t,n){B(e,t,n),l=!0},p(t,n){const r={};n&8&&(r.$$scope={dirty:n,ctx:t}),e.$set(r)},i(t){l||(p(e.$$.fragment,t),l=!0)},o(t){g(e.$$.fragment,t),l=!1},d(t){z(e,t)}}}function fr(s){let e,l;return e=new We({props:{bottomRight:!0,text:j("data-encoder.codec-server-configured"),$$slots:{default:[mr]},$$scope:{ctx:s}}}),{c(){D(e.$$.fragment)},l(t){S(e.$$.fragment,t)},m(t,n){B(e,t,n),l=!0},p(t,n){const r={};n&8&&(r.$$scope={dirty:n,ctx:t}),e.$set(r)},i(t){l||(p(e.$$.fragment,t),l=!0)},o(t){g(e.$$.fragment,t),l=!1},d(t){z(e,t)}}}function ur(s){let e,l;return e=new Ze({props:{label:j("data-encoder.codec-server-success"),class:"relative flex items-center","data-testid":"data-encoder-status-success",icon:"transcoder-on"}}),e.$on("click",s[1]),{c(){D(e.$$.fragment)},l(t){S(e.$$.fragment,t)},m(t,n){B(e,t,n),l=!0},p:se,i(t){l||(p(e.$$.fragment,t),l=!0)},o(t){g(e.$$.fragment,t),l=!1},d(t){z(e,t)}}}function cr(s){let e,l;return e=new Ze({props:{label:j("data-encoder.codec-server-error"),class:"relative flex items-center","data-testid":"data-encoder-status-error",icon:"transcoder-error"}}),e.$on("click",s[1]),{c(){D(e.$$.fragment)},l(t){S(e.$$.fragment,t)},m(t,n){B(e,t,n),l=!0},p:se,i(t){l||(p(e.$$.fragment,t),l=!0)},o(t){g(e.$$.fragment,t),l=!1},d(t){z(e,t)}}}function mr(s){let e,l;return e=new Ze({props:{label:j("data-encoder.codec-server-configured"),class:"relative flex items-center","data-testid":"data-encoder-status-configured",icon:"transcoder-on"}}),e.$on("click",s[1]),{c(){D(e.$$.fragment)},l(t){S(e.$$.fragment,t)},m(t,n){B(e,t,n),l=!0},p:se,i(t){l||(p(e.$$.fragment,t),l=!0)},o(t){g(e.$$.fragment,t),l=!1},d(t){z(e,t)}}}function dr(s){let e,l,t,n;const r=[rr,sr],o=[];function a(i,f){var u;return(u=i[0])!=null&&u.endpoint?0:1}return l=a(s),t=o[l]=r[l](s),{c(){e=A("div"),t.c(),this.h()},l(i){e=R(i,"DIV",{class:!0});var f=q(e);t.l(f),f.forEach(_),this.h()},h(){$(e,"class","mx-1 flex items-center")},m(i,f){C(i,e,f),o[l].m(e,null),n=!0},p(i,[f]){let u=l;l=a(i),l===u?o[l].p(i,f):(ce(),g(o[u],1,1,()=>{o[u]=null}),me(),t=o[l],t?t.p(i,f):(t=o[l]=r[l](i),t.c()),p(t,1),t.m(e,null))},i(i){n||(p(t),n=!0)},o(i){g(t),n=!1},d(i){i&&_(e),o[l].d()}}}function _r(s,e,l){let t,n;return oe(s,He,o=>l(2,t=o)),oe(s,Al,o=>l(0,n=o)),[n,()=>{var o;de(He,t=!t,t),t&&((o=document.getElementById("content-wrapper"))===null||o===void 0||o.scrollTo(0,0))}]}class pr extends ae{constructor(e){super(),fe(this,e,_r,dr,ue,{})}}function rl(s,e,l){const t=s.slice();return t[18]=e[l].value,t[19]=e[l].label,t[20]=e[l].offset,t[21]=e[l].abbr,t}function ol(s,e,l){const t=s.slice();return t[18]=e[l].value,t[19]=e[l].label,t}function gr(s){let e;return{c(){e=Q(s[3])},l(l){e=X(l,s[3])},m(l,t){C(l,e,t)},p(l,t){t&8&&pe(e,l[3])},d(l){l&&_(e)}}}function hr(s){let e,l;return e=new Ie({props:{slot:"leading",name:"clock"}}),{c(){D(e.$$.fragment)},l(t){S(e.$$.fragment,t)},m(t,n){B(e,t,n),l=!0},p:se,i(t){l||(p(e.$$.fragment,t),l=!0)},o(t){g(e.$$.fragment,t),l=!1},d(t){z(e,t)}}}function il(s){let e,l,t,n,r,o,a,i=s[7],f=[];for(let d=0;dg(f[d],1,1,()=>{f[d]=null});function c(d){s[16](d)}let m={label:j("common.relative"),id:"relative-toggle",labelPosition:"left","data-testid":"timezones-relative-toggle"};return s[5]!==void 0&&(m.checked=s[5]),t=new at({props:m}),Le.push(()=>Ne(t,"checked",c)),t.$on("change",s[9]),o=new Ol({}),{c(){for(let d=0;dn=!1)),t.$set(E)},i(d){if(!a){for(let b=0;b{if(s.runtimeEnvironment.isCloud)return;const l=Tl("cluster");return await Ll(l,{request:e}).then(t=>t)},$n=async(s,e=fetch)=>{if(s.runtimeEnvironment.isCloud)return;const l=Tl("systemInfo");return await Ll(l,{request:e}).then(t=>t)},nt="user",vn=(s=Nl)=>{if(!s)return{};const e=document.cookie.split(";");let l=0,t=e.find(r=>r.includes(nt+l)),n="";for(;t;){const[r,o]=t.split("=");n+=o,l++,t=e.find(a=>a.includes(nt+l))}if(n)try{const r=Ul(n),o=Zl(r);return{accessToken:o==null?void 0:o.AccessToken,idToken:o==null?void 0:o.IDToken,name:o==null?void 0:o.Name,picture:o==null?void 0:o.Picture,email:o==null?void 0:o.Email}}catch(r){console.error(r)}return{}},kn=(s=Nl)=>{if(!s)return;const e=document.cookie.split(";");let l=0,t=e.find(n=>n.includes(nt+l));for(;t;){const[n]=t.split("=");document.cookie=`${n}=; max-age=-1; path=/`,l++,t=e.find(r=>r.includes(nt+l))}},wn=(s,e)=>!s.auth.enabled||Boolean(e==null?void 0:e.accessToken),En=async function({fetch:s}){const e=await jl(s),l=vn();l!=null&&l.accessToken&&(Fl(l),kn());const t=Hl();if(!wn(e,t))throw Rl(302,Dl());ql(e,s);const n=await bn(e,s),r=await $n(e,s);return{user:t,settings:e,cluster:n,systemInfo:r}},Ii=Object.freeze(Object.defineProperty({__proto__:null,load:En},Symbol.toStringTag,{value:"Module"}));const Cn=s=>({}),Pt=s=>({});function Ft(s){let e,l;return{c(){e=A("p"),l=Q(s[11]),this.h()},l(t){e=R(t,"P",{class:!0});var n=q(e);l=X(n,s[11]),n.forEach(_),this.h()},h(){$(e,"class","text-sm")},m(t,n){C(t,e,n),V(e,l)},p(t,n){n&2048&&pe(l,t[11])},d(t){t&&_(e)}}}function Ht(s){var a;let e,l,t=(((a=s[0])==null?void 0:a.length)??0)+"",n,r,o;return{c(){e=A("span"),l=A("span"),n=Q(t),r=Q(" / "),o=Q(s[12]),this.h()},l(i){e=R(i,"SPAN",{class:!0});var f=q(e);l=R(f,"SPAN",{class:!0});var u=q(l);n=X(u,t),u.forEach(_),r=X(f," / "),o=X(f,s[12]),f.forEach(_),this.h()},h(){var i,f;$(l,"class","text-blue-700 svelte-14m0wnf"),G(l,"warn",s[12]-((i=s[0])==null?void 0:i.length)<=5),G(l,"error",s[12]===((f=s[0])==null?void 0:f.length)),$(e,"class","count svelte-14m0wnf")},m(i,f){C(i,e,f),V(e,l),V(l,n),V(e,r),V(e,o)},p(i,f){var u,c,m;f&1&&t!==(t=(((u=i[0])==null?void 0:u.length)??0)+"")&&pe(n,t),f&4097&&G(l,"warn",i[12]-((c=i[0])==null?void 0:c.length)<=5),f&4097&&G(l,"error",i[12]===((m=i[0])==null?void 0:m.length)),f&4096&&pe(o,i[12])},d(i){i&&_(e)}}}function Mt(s){let e,l,t=s[2]&&Ut(s);const n=s[15].error,r=ee(n,s,s[14],Pt);return{c(){t&&t.c(),e=P(),r&&r.c()},l(o){t&&t.l(o),e=F(o),r&&r.l(o)},m(o,a){t&&t.m(o,a),C(o,e,a),r&&r.m(o,a),l=!0},p(o,a){o[2]?t?t.p(o,a):(t=Ut(o),t.c(),t.m(e.parentNode,e)):t&&(t.d(1),t=null),r&&r.p&&(!l||a&16384)&&te(r,n,o,o[14],l?ne(n,o[14],a,Cn):le(o[14]),Pt)},i(o){l||(p(r,o),l=!0)},o(o){g(r,o),l=!1},d(o){t&&t.d(o),o&&_(e),r&&r.d(o)}}}function Ut(s){let e,l;return{c(){e=A("p"),l=Q(s[2])},l(t){e=R(t,"P",{});var n=q(e);l=X(n,s[2]),n.forEach(_)},m(t,n){C(t,e,n),V(e,l)},p(t,n){n&4&&pe(l,t[2])},d(t){t&&_(e)}}}function In(s){let e,l,t,n,r,o,a,i,f,u,c,m,d,b,E,h,k=s[11]&&Ft(s),I=s[12]&&!s[1]&&Ht(s),N=!s[3]&&Mt(s);return{c(){e=A("div"),l=A("label"),t=Q(s[7]),n=P(),k&&k.c(),r=P(),o=A("div"),a=A("textarea"),f=P(),I&&I.c(),u=P(),c=A("div"),N&&N.c(),this.h()},l(w){e=R(w,"DIV",{class:!0});var T=q(e);l=R(T,"LABEL",{for:!0,class:!0});var W=q(l);t=X(W,s[7]),W.forEach(_),n=F(T),k&&k.l(T),r=F(T),o=R(T,"DIV",{class:!0});var O=q(o);a=R(O,"TEXTAREA",{class:!0,id:!0,placeholder:!0,rows:!0,spellcheck:!0,maxlength:!0}),q(a).forEach(_),f=F(O),I&&I.l(O),O.forEach(_),u=F(T),c=R(T,"DIV",{class:!0,"aria-live":!0});var U=q(c);N&&N.l(U),U.forEach(_),T.forEach(_),this.h()},h(){$(l,"for",s[9]),$(l,"class","svelte-14m0wnf"),G(l,"required",s[10]),G(l,"sr-only",s[8]),$(a,"class","min-h-fit w-full rounded border border-gray-900 py-2 px-3 font-mono text-sm svelte-14m0wnf"),$(a,"id",s[9]),a.disabled=s[1],$(a,"placeholder",s[4]),$(a,"rows",s[5]),$(a,"spellcheck",s[6]),$(a,"maxlength",i=s[12]>0?s[12]:void 0),G(a,"error",!s[3]),$(o,"class","relative"),$(c,"class","error-msg svelte-14m0wnf"),$(c,"aria-live",m=s[3]?"off":"assertive"),G(c,"min-width",s[12]),$(e,"class",d=ze(s[13])+" svelte-14m0wnf")},m(w,T){C(w,e,T),V(e,l),V(l,t),V(e,n),k&&k.m(e,null),V(e,r),V(e,o),V(o,a),Tt(a,s[0]),V(o,f),I&&I.m(o,null),V(e,u),V(e,c),N&&N.m(c,null),b=!0,E||(h=[ve(a,"input",s[21]),ve(a,"input",s[16]),ve(a,"change",s[17]),ve(a,"focus",s[18]),ve(a,"blur",s[19]),ve(a,"keydown",et(s[20]))],E=!0)},p(w,[T]){(!b||T&128)&&pe(t,w[7]),(!b||T&512)&&$(l,"for",w[9]),(!b||T&1024)&&G(l,"required",w[10]),(!b||T&256)&&G(l,"sr-only",w[8]),w[11]?k?k.p(w,T):(k=Ft(w),k.c(),k.m(e,r)):k&&(k.d(1),k=null),(!b||T&512)&&$(a,"id",w[9]),(!b||T&2)&&(a.disabled=w[1]),(!b||T&16)&&$(a,"placeholder",w[4]),(!b||T&32)&&$(a,"rows",w[5]),(!b||T&64)&&$(a,"spellcheck",w[6]),(!b||T&4096&&i!==(i=w[12]>0?w[12]:void 0))&&$(a,"maxlength",i),T&1&&Tt(a,w[0]),(!b||T&8)&&G(a,"error",!w[3]),w[12]&&!w[1]?I?I.p(w,T):(I=Ht(w),I.c(),I.m(o,null)):I&&(I.d(1),I=null),w[3]?N&&(ce(),g(N,1,1,()=>{N=null}),me()):N?(N.p(w,T),T&8&&p(N,1)):(N=Mt(w),N.c(),p(N,1),N.m(c,null)),(!b||T&8&&m!==(m=w[3]?"off":"assertive"))&&$(c,"aria-live",m),(!b||T&4096)&&G(c,"min-width",w[12]),(!b||T&8192&&d!==(d=ze(w[13])+" svelte-14m0wnf"))&&$(e,"class",d)},i(w){b||(p(N),b=!0)},o(w){g(N),b=!1},d(w){w&&_(e),k&&k.d(),I&&I.d(),N&&N.d(),E=!1,pt(h)}}}function Tn(s,e,l){let{$$slots:t={},$$scope:n}=e,{disabled:r=!1}=e,{error:o=""}=e,{isValid:a=!0}=e,{placeholder:i=""}=e,{rows:f=5}=e,{spellcheck:u=null}=e,{value:c}=e,{label:m}=e,{labelHidden:d=!1}=e,{id:b}=e,{required:E=!1}=e,{description:h=""}=e,{maxLength:k=0}=e,{class:I=""}=e;function N(v){Fe.call(this,s,v)}function w(v){Fe.call(this,s,v)}function T(v){Fe.call(this,s,v)}function W(v){Fe.call(this,s,v)}function O(v){Fe.call(this,s,v)}function U(){c=this.value,l(0,c)}return s.$$set=v=>{"disabled"in v&&l(1,r=v.disabled),"error"in v&&l(2,o=v.error),"isValid"in v&&l(3,a=v.isValid),"placeholder"in v&&l(4,i=v.placeholder),"rows"in v&&l(5,f=v.rows),"spellcheck"in v&&l(6,u=v.spellcheck),"value"in v&&l(0,c=v.value),"label"in v&&l(7,m=v.label),"labelHidden"in v&&l(8,d=v.labelHidden),"id"in v&&l(9,b=v.id),"required"in v&&l(10,E=v.required),"description"in v&&l(11,h=v.description),"maxLength"in v&&l(12,k=v.maxLength),"class"in v&&l(13,I=v.class),"$$scope"in v&&l(14,n=v.$$scope)},[c,r,o,a,i,f,u,m,d,b,E,h,k,I,n,t,N,w,T,W,O,U]}class Ln extends ae{constructor(e){super(),fe(this,e,Tn,In,ue,{disabled:1,error:2,isValid:3,placeholder:4,rows:5,spellcheck:6,value:0,label:7,labelHidden:8,id:9,required:10,description:11,maxLength:12,class:13})}}function Kt(s){let e,l=j("data-encoder.include-cross-origin-credentials-warning")+"",t;return{c(){e=A("small"),t=Q(l),this.h()},l(n){e=R(n,"SMALL",{"data-testid":!0});var r=q(e);t=X(r,l),r.forEach(_),this.h()},h(){$(e,"data-testid","data-encoder-cross-origin-credentials")},m(n,r){C(n,e,r),V(e,t)},p:se,d(n){n&&_(e)}}}function Vn(s){let e,l,t,n,r,o,a,i,f,u,c,m;function d(w){s[4](w)}let b={id:"data-encoder-endpoint-input",rows:3,placeholder:j("data-encoder.endpoint-placeholder"),error:s[3],isValid:!s[3],label:j("data-encoder.endpoint-title"),description:j("data-encoder.endpoint-description")};s[0]!==void 0&&(b.value=s[0]),t=new Ln({props:b}),Le.push(()=>Ne(t,"value",d));function E(w){s[5](w)}let h={label:j("data-encoder.pass-access-token-label"),id:"pass-access-token","data-testid":"data-encoder-pass-access-token"};s[1]!==void 0&&(h.checked=s[1]),o=new at({props:h}),Le.push(()=>Ne(o,"checked",E));function k(w){s[6](w)}let I={label:j("data-encoder.include-cross-origin-credentials-label"),id:"pass-access-credentials","data-testid":"data-encoder-include-credentials"};s[2]!==void 0&&(I.checked=s[2]),f=new at({props:I}),Le.push(()=>Ne(f,"checked",k));let N=s[2]&&Kt();return{c(){e=A("div"),l=A("div"),D(t.$$.fragment),r=P(),D(o.$$.fragment),i=P(),D(f.$$.fragment),c=P(),N&&N.c(),this.h()},l(w){e=R(w,"DIV",{class:!0});var T=q(e);l=R(T,"DIV",{class:!0});var W=q(l);S(t.$$.fragment,W),r=F(W),S(o.$$.fragment,W),i=F(W),S(f.$$.fragment,W),c=F(W),N&&N.l(W),W.forEach(_),T.forEach(_),this.h()},h(){$(l,"class","flex flex-col gap-2"),$(e,"class","flex flex-col gap-4")},m(w,T){C(w,e,T),V(e,l),B(t,l,null),V(l,r),B(o,l,null),V(l,i),B(f,l,null),V(l,c),N&&N.m(l,null),m=!0},p(w,[T]){const W={};T&8&&(W.error=w[3]),T&8&&(W.isValid=!w[3]),!n&&T&1&&(n=!0,W.value=w[0],De(()=>n=!1)),t.$set(W);const O={};!a&&T&2&&(a=!0,O.checked=w[1],De(()=>a=!1)),o.$set(O);const U={};!u&&T&4&&(u=!0,U.checked=w[2],De(()=>u=!1)),f.$set(U),w[2]?N?N.p(w,T):(N=Kt(),N.c(),N.m(l,null)):N&&(N.d(1),N=null)},i(w){m||(p(t.$$.fragment,w),p(o.$$.fragment,w),p(f.$$.fragment,w),m=!0)},o(w){g(t.$$.fragment,w),g(o.$$.fragment,w),g(f.$$.fragment,w),m=!1},d(w){w&&_(e),z(t),z(o),z(f),N&&N.d()}}}function Nn(s,e,l){let{endpoint:t=""}=e,{passToken:n=!1}=e,{includeCreds:r=!1}=e,{error:o=""}=e;function a(u){t=u,l(0,t)}function i(u){n=u,l(1,n)}function f(u){r=u,l(2,r)}return s.$$set=u=>{"endpoint"in u&&l(0,t=u.endpoint),"passToken"in u&&l(1,n=u.passToken),"includeCreds"in u&&l(2,r=u.includeCreds),"error"in u&&l(3,o=u.error)},[t,n,r,o,a,i,f]}class Dn extends ae{constructor(e){super(),fe(this,e,Nn,Vn,ue,{endpoint:0,passToken:1,includeCreds:2,error:3})}}function Wt(s){let e,l,t,n,r=j("common.codec-server")+"",o,a,i,f=j("data-encoder.codec-server-description-prefix")+"",u,c,m,d=j("data-encoder.codec-server-description-suffix",{level:s[5]})+"",b,E,h,k,I,N,w,T,W,O,U,v,M,K,J,Ee,ge;c=new zl({props:{href:"https://docs.temporal.io/dataconversion#codec-server",newTab:!0,$$slots:{default:[Sn]},$$scope:{ctx:s}}}),h=new an({props:{"data-testid":"override-accordion",title:s[6]?j("data-encoder.browser-override-description",{level:s[5]}):j("data-encoder.no-browser-override-description",{level:s[5]}),$$slots:{default:[zn]},$$scope:{ctx:s}}});function Te(Z){s[14](Z)}function he(Z){s[15](Z)}function Ce(Z){s[16](Z)}let _e={error:s[4]};return s[0]!==void 0&&(_e.endpoint=s[0]),s[1]!==void 0&&(_e.passToken=s[1]),s[3]!==void 0&&(_e.includeCreds=s[3]),I=new Dn({props:_e}),Le.push(()=>Ne(I,"endpoint",Te)),Le.push(()=>Ne(I,"passToken",he)),Le.push(()=>Ne(I,"includeCreds",Ce)),U=new ct({props:{disabled:Boolean(s[4]),"data-testid":"confirm-data-encoder-button",type:"submit",$$slots:{default:[On]},$$scope:{ctx:s}}}),U.$on("click",s[9]),M=new ct({props:{variant:"ghost","data-testid":"cancel-data-encoder-button",$$slots:{default:[An]},$$scope:{ctx:s}}}),M.$on("click",s[8]),{c(){e=A("aside"),l=A("div"),t=A("div"),n=A("h3"),o=Q(r),a=P(),i=A("p"),u=Q(f),D(c.$$.fragment),m=P(),b=Q(d),E=P(),D(h.$$.fragment),k=P(),D(I.$$.fragment),W=P(),O=A("div"),D(U.$$.fragment),v=P(),D(M.$$.fragment),this.h()},l(Z){e=R(Z,"ASIDE",{class:!0});var Y=q(e);l=R(Y,"DIV",{class:!0});var y=q(l);t=R(y,"DIV",{class:!0});var be=q(t);n=R(be,"H3",{"data-testid":!0,class:!0});var re=q(n);o=X(re,r),re.forEach(_),be.forEach(_),a=F(y),i=R(y,"P",{class:!0});var $e=q(i);u=X($e,f),S(c.$$.fragment,$e),m=F($e),b=X($e,d),$e.forEach(_),E=F(y),S(h.$$.fragment,y),k=F(y),S(I.$$.fragment,y),W=F(y),O=R(y,"DIV",{class:!0});var ke=q(O);S(U.$$.fragment,ke),v=F(ke),S(M.$$.fragment,ke),ke.forEach(_),y.forEach(_),Y.forEach(_),this.h()},h(){$(n,"data-testid","data-encoder-title"),$(n,"class","text-xl"),$(t,"class","flex items-center justify-between space-x-2"),$(i,"class","text-sm"),$(O,"class","flex items-center gap-4"),$(l,"class","flex w-full flex-col gap-4 xl:w-1/2"),$(e,"class","relative flex h-auto w-full flex-col gap-6 border-b border-blue-100 bg-blue-50 p-12")},m(Z,Y){C(Z,e,Y),V(e,l),V(l,t),V(t,n),V(n,o),V(l,a),V(l,i),V(i,u),B(c,i,null),V(i,m),V(i,b),V(l,E),B(h,l,null),V(l,k),B(I,l,null),V(l,W),V(l,O),B(U,O,null),V(O,v),B(M,O,null),J=!0,Ee||(ge=[Jl(on.call(null,e)),ve(e,"click-outside",s[17])],Ee=!0)},p(Z,Y){const y={};Y&8388608&&(y.$$scope={dirty:Y,ctx:Z}),c.$set(y),(!J||Y&32)&&d!==(d=j("data-encoder.codec-server-description-suffix",{level:Z[5]})+"")&&pe(b,d);const be={};Y&96&&(be.title=Z[6]?j("data-encoder.browser-override-description",{level:Z[5]}):j("data-encoder.no-browser-override-description",{level:Z[5]})),Y&8388640&&(be.$$scope={dirty:Y,ctx:Z}),h.$set(be);const re={};Y&16&&(re.error=Z[4]),!N&&Y&1&&(N=!0,re.endpoint=Z[0],De(()=>N=!1)),!w&&Y&2&&(w=!0,re.passToken=Z[1],De(()=>w=!1)),!T&&Y&8&&(T=!0,re.includeCreds=Z[3],De(()=>T=!1)),I.$set(re);const $e={};Y&16&&($e.disabled=Boolean(Z[4])),Y&8388608&&($e.$$scope={dirty:Y,ctx:Z}),U.$set($e);const ke={};Y&8388608&&(ke.$$scope={dirty:Y,ctx:Z}),M.$set(ke)},i(Z){J||(p(c.$$.fragment,Z),p(h.$$.fragment,Z),p(I.$$.fragment,Z),p(U.$$.fragment,Z),p(M.$$.fragment,Z),K||gt(()=>{K=Yl(e,mt,{y:-50,delay:0,duration:500}),K.start()}),J=!0)},o(Z){g(c.$$.fragment,Z),g(h.$$.fragment,Z),g(I.$$.fragment,Z),g(U.$$.fragment,Z),g(M.$$.fragment,Z),J=!1},d(Z){Z&&_(e),z(c),z(h),z(I),z(U),z(M),Ee=!1,pt(ge)}}}function Sn(s){let e=j("common.codec-server")+"",l;return{c(){l=Q(e)},l(t){l=X(t,e)},m(t,n){C(t,l,n)},p:se,d(t){t&&_(l)}}}function Bn(s){let e,l,t,n;return e=new Ot({props:{id:"use-configuration-endpoint-radio","data-testid":"use-configuration-endpoint-input",value:!1,label:j("data-encoder.no-browser-override-description",{level:s[5]})}}),t=new Ot({props:{id:"use-local-endpoint-radio","data-testid":"use-local-endpoint-input",value:!0,label:j("data-encoder.browser-override-description",{level:s[5]})}}),{c(){D(e.$$.fragment),l=P(),D(t.$$.fragment)},l(r){S(e.$$.fragment,r),l=F(r),S(t.$$.fragment,r)},m(r,o){B(e,r,o),C(r,l,o),B(t,r,o),n=!0},p(r,o){const a={};o&32&&(a.label=j("data-encoder.no-browser-override-description",{level:r[5]})),e.$set(a);const i={};o&32&&(i.label=j("data-encoder.browser-override-description",{level:r[5]})),t.$set(i)},i(r){n||(p(e.$$.fragment,r),p(t.$$.fragment,r),n=!0)},o(r){g(e.$$.fragment,r),g(t.$$.fragment,r),n=!1},d(r){z(e,r),r&&_(l),z(t,r)}}}function zn(s){let e,l;return e=new un({props:{name:"override",group:s[7],$$slots:{default:[Bn]},$$scope:{ctx:s}}}),{c(){D(e.$$.fragment)},l(t){S(e.$$.fragment,t)},m(t,n){B(e,t,n),l=!0},p(t,n){const r={};n&8388640&&(r.$$scope={dirty:n,ctx:t}),e.$set(r)},i(t){l||(p(e.$$.fragment,t),l=!0)},o(t){g(e.$$.fragment,t),l=!1},d(t){z(e,t)}}}function On(s){let e=j("common.apply")+"",l;return{c(){l=Q(e)},l(t){l=X(t,e)},m(t,n){C(t,l,n)},p:se,d(t){t&&_(l)}}}function An(s){let e=j("common.cancel")+"",l;return{c(){l=Q(e)},l(t){l=X(t,e)},m(t,n){C(t,l,n)},p:se,d(t){t&&_(l)}}}function Rn(s){let e,l,t=s[2]&&Wt(s);return{c(){t&&t.c(),e=ie()},l(n){t&&t.l(n),e=ie()},m(n,r){t&&t.m(n,r),C(n,e,r),l=!0},p(n,[r]){n[2]?t?(t.p(n,r),r&4&&p(t,1)):(t=Wt(n),t.c(),p(t,1),t.m(e.parentNode,e)):t&&(ce(),g(t,1,1,()=>{t=null}),me())},i(n){l||(p(t),l=!0)},o(n){g(t),l=!1},d(n){t&&t.d(n),n&&_(e)}}}const He=Ke(!1);function qn(s,e,l){let t,n,r,o,a,i,f,u=se,c,m,d;oe(s,St,K=>l(18,r=K)),oe(s,qe,K=>l(13,o=K)),oe(s,ft,K=>l(19,i=K)),oe(s,He,K=>l(2,f=K)),oe(s,Bt,K=>l(20,c=K)),oe(s,zt,K=>l(21,m=K)),oe(s,ut,K=>l(22,d=K)),s.$$.on_destroy.push(()=>u());var b,E,h;let k=d??"",I=m??!1,N=c??!1,w=Ke(i);oe(s,w,K=>l(6,a=K));const T=()=>{l(0,k=d),l(1,I=m),l(3,N=c),de(w,a=i,a),de(He,f=!1,f)},W=()=>{l(4,t=""),de(ut,d=k,d),de(zt,m=I,m),de(Bt,c=N,c),de(He,f=!1,f),de(ft,i=a,i),o.url.pathname.endsWith("history")&&de(St,r=Date.now(),r)};function O(K){k=K,l(0,k)}function U(K){I=K,l(1,I)}function v(K){N=K,l(3,N)}const M=()=>de(He,f=!1,f);return s.$$.update=()=>{s.$$.dirty&15360&&l(5,n=!(l(12,h=l(11,E=l(10,b=o.data)===null||b===void 0?void 0:b.settings)===null||E===void 0?void 0:E.runtimeEnvironment)===null||h===void 0)&&h.isCloud?j("common.namespaces"):j("common.cluster")),s.$$.dirty&3&&(I&&!Kl(k)?l(4,t=j("data-encoder.access-token-https-error")):k&&!Wl(k)?l(4,t=j("data-encoder.prefix-error")):l(4,t="")),s.$$.dirty&4&&(f||T())},l(4,t=""),[k,I,f,N,t,n,a,w,T,W,b,E,h,o,O,U,v,M]}class jn extends ae{constructor(e){super(),fe(this,e,qn,Rn,ue,{})}}const Pn=s=>({}),Zt=s=>({});function Fn(s){let e;const l=s[2].fallback,t=ee(l,s,s[1],Zt);return{c(){t&&t.c()},l(n){t&&t.l(n)},m(n,r){t&&t.m(n,r),e=!0},p(n,r){t&&t.p&&(!e||r&2)&&te(t,l,n,n[1],e?ne(l,n[1],r,Pn):le(n[1]),Zt)},i(n){e||(p(t,n),e=!0)},o(n){g(t,n),e=!1},d(n){t&&t.d(n)}}}function Hn(s){let e;const l=s[2].default,t=ee(l,s,s[1],null);return{c(){t&&t.c()},l(n){t&&t.l(n)},m(n,r){t&&t.m(n,r),e=!0},p(n,r){t&&t.p&&(!e||r&2)&&te(t,l,n,n[1],e?ne(l,n[1],r,null):le(n[1]),null)},i(n){e||(p(t,n),e=!0)},o(n){g(t,n),e=!1},d(n){t&&t.d(n)}}}function Mn(s){let e,l,t,n;const r=[Hn,Fn],o=[];function a(i,f){return i[0]?0:1}return e=a(s),l=o[e]=r[e](s),{c(){l.c(),t=ie()},l(i){l.l(i),t=ie()},m(i,f){o[e].m(i,f),C(i,t,f),n=!0},p(i,[f]){let u=e;e=a(i),e===u?o[e].p(i,f):(ce(),g(o[u],1,1,()=>{o[u]=null}),me(),l=o[e],l?l.p(i,f):(l=o[e]=r[e](i),l.c()),p(l,1),l.m(t.parentNode,t))},i(i){n||(p(l),n=!0)},o(i){g(l),n=!1},d(i){o[e].d(i),i&&_(t)}}}function Un(s,e,l){let{$$slots:t={},$$scope:n}=e,{enabled:r=!1}=e;return s.$$set=o=>{"enabled"in o&&l(0,r=o.enabled),"$$scope"in o&&l(1,n=o.$$scope)},[r,n,t]}class Kn extends ae{constructor(e){super(),fe(this,e,Un,Mn,ue,{enabled:0})}}const Wn=s=>({}),Gt=s=>({});function Zn(s){let e;const l=s[3].default,t=ee(l,s,s[2],null);return{c(){t&&t.c()},l(n){t&&t.l(n)},m(n,r){t&&t.m(n,r),e=!0},p(n,r){t&&t.p&&(!e||r&4)&&te(t,l,n,n[2],e?ne(l,n[2],r,null):le(n[2]),null)},i(n){e||(p(t,n),e=!0)},o(n){g(t,n),e=!1},d(n){t&&t.d(n)}}}function Gn(s){let e;const l=s[3].fallback,t=ee(l,s,s[2],Gt);return{c(){t&&t.c()},l(n){t&&t.l(n)},m(n,r){t&&t.m(n,r),e=!0},p(n,r){t&&t.p&&(!e||r&4)&&te(t,l,n,n[2],e?ne(l,n[2],r,Wn):le(n[2]),Gt)},i(n){e||(p(t,n),e=!0)},o(n){g(t,n),e=!1},d(n){t&&t.d(n)}}}function Qn(s){let e,l,t,n;const r=[Gn,Zn],o=[];function a(i,f){var u,c,m;return i[0]||(m=(c=(u=i[1].data)==null?void 0:u.settings)==null?void 0:c.runtimeEnvironment)!=null&&m.isCloud?0:1}return e=a(s),l=o[e]=r[e](s),{c(){l.c(),t=ie()},l(i){l.l(i),t=ie()},m(i,f){o[e].m(i,f),C(i,t,f),n=!0},p(i,[f]){let u=e;e=a(i),e===u?o[e].p(i,f):(ce(),g(o[u],1,1,()=>{o[u]=null}),me(),l=o[e],l?l.p(i,f):(l=o[e]=r[e](i),l.c()),p(l,1),l.m(t.parentNode,t))},i(i){n||(p(l),n=!0)},o(i){g(l),n=!1},d(i){o[e].d(i),i&&_(t)}}}function Xn(s,e,l){let t;oe(s,qe,a=>l(1,t=a));let{$$slots:n={},$$scope:r}=e,{isCloud:o=!1}=e;return s.$$set=a=>{"isCloud"in a&&l(0,o=a.isCloud),"$$scope"in a&&l(2,r=a.$$scope)},[o,t,r,n]}class dt extends ae{constructor(e){super(),fe(this,e,Xn,Qn,ue,{isCloud:0})}}function Jn(){return!0}const Yn=s=>({}),Qt=s=>({});function yn(s){let e;const l=s[4].default,t=ee(l,s,s[3],null);return{c(){t&&t.c()},l(n){t&&t.l(n)},m(n,r){t&&t.m(n,r),e=!0},p(n,r){t&&t.p&&(!e||r&8)&&te(t,l,n,n[3],e?ne(l,n[3],r,null):le(n[3]),null)},i(n){e||(p(t,n),e=!0)},o(n){g(t,n),e=!1},d(n){t&&t.d(n)}}}function xn(s){let e;const l=s[4].fallback,t=ee(l,s,s[3],Qt);return{c(){t&&t.c()},l(n){t&&t.l(n)},m(n,r){t&&t.m(n,r),e=!0},p(n,r){t&&t.p&&(!e||r&8)&&te(t,l,n,n[3],e?ne(l,n[3],r,Yn):le(n[3]),Qt)},i(n){e||(p(t,n),e=!0)},o(n){g(t,n),e=!1},d(n){t&&t.d(n)}}}function es(s){let e,l,t,n;const r=[xn,yn],o=[];function a(i,f){return i[0]&&i[1]?0:1}return e=a(s),l=o[e]=r[e](s),{c(){l.c(),t=ie()},l(i){l.l(i),t=ie()},m(i,f){o[e].m(i,f),C(i,t,f),n=!0},p(i,[f]){let u=e;e=a(i),e===u?o[e].p(i,f):(ce(),g(o[u],1,1,()=>{o[u]=null}),me(),l=o[e],l?l.p(i,f):(l=o[e]=r[e](i),l.c()),p(l,1),l.m(t.parentNode,t))},i(i){n||(p(l),n=!0)},o(i){g(l),n=!1},d(i){o[e].d(i),i&&_(t)}}}function ts(s,e,l){let t,n;oe(s,qe,i=>l(2,n=i));let{$$slots:r={},$$scope:o}=e,{isCloud:a=!0}=e;return s.$$set=i=>{"isCloud"in i&&l(0,a=i.isCloud),"$$scope"in i&&l(3,o=i.$$scope)},s.$$.update=()=>{s.$$.dirty&4&&l(1,t=Pl.test(Jn?n.url.hostname:""))},[a,t,n,o,r]}class ls extends ae{constructor(e){super(),fe(this,e,ts,es,ue,{isCloud:0})}}function ns(s){let e,l,t,n;return{c(){e=ot("svg"),l=ot("title"),t=Q(s[2]),n=ot("path"),this.h()},l(r){e=it(r,"svg",{width:!0,height:!0,viewBox:!0,xmlns:!0,"xmlns:xlink":!0,version:!0,role:!0});var o=q(e);l=it(o,"title",{});var a=q(l);t=X(a,s[2]),a.forEach(_),n=it(o,"path",{id:!0,d:!0,stroke:!0,fill:!0}),q(n).forEach(_),o.forEach(_),this.h()},h(){$(n,"id","Path"),$(n,"d","M65.816 34.224 C63.684 18.251 58.288 4.917 49.999 4.917 41.711 4.917 36.314 18.251 34.182 34.224 18.208 36.357 4.874 41.753 4.874 50.042 4.874 58.33 18.211 63.727 34.182 65.859 36.314 81.83 41.711 95.167 49.999 95.167 58.288 95.167 63.684 81.83 65.816 65.859 81.79 63.727 95.124 58.33 95.124 50.042 95.124 41.753 81.788 36.357 65.816 34.224 Z M33.661 61.206 C18.363 58.997 9.44 53.939 9.44 50.042 9.44 46.144 18.363 41.087 33.661 38.877 33.324 42.56 33.149 46.319 33.149 50.042 33.149 53.764 33.324 57.526 33.661 61.206 Z M49.999 9.483 C53.897 9.483 58.954 18.405 61.164 33.703 57.483 33.367 53.721 33.191 49.999 33.191 46.277 33.191 42.515 33.367 38.835 33.703 41.044 18.405 46.102 9.483 49.999 9.483 Z M66.338 61.206 C65.585 61.316 62.496 61.678 61.715 61.755 61.638 62.539 61.273 65.625 61.166 66.378 58.956 81.676 53.899 90.598 50.001 90.598 46.104 90.598 41.047 81.676 38.837 66.378 38.73 65.625 38.365 62.536 38.288 61.755 37.932 58.129 37.717 54.234 37.717 50.042 37.717 45.85 37.932 41.954 38.288 38.326 41.914 37.97 45.809 37.755 50.001 37.755 54.194 37.755 58.089 37.97 61.715 38.326 62.499 38.403 65.585 38.767 66.338 38.875 81.636 41.085 90.56 46.144 90.56 50.039 90.56 53.935 81.636 58.997 66.338 61.206 Z"),$(n,"stroke",s[3]),$(n,"fill",s[3]),$(e,"width",s[0]),$(e,"height",s[1]),$(e,"viewBox","0 0 100 100"),$(e,"xmlns","http://www.w3.org/2000/svg"),$(e,"xmlns:xlink","http://www.w3.org/1999/xlink"),$(e,"version","1.1"),$(e,"role","img")},m(r,o){C(r,e,o),V(e,l),V(l,t),V(e,n)},p(r,[o]){o&4&&pe(t,r[2]),o&1&&$(e,"width",r[0]),o&2&&$(e,"height",r[1])},i:se,o:se,d(r){r&&_(e)}}}function ss(s,e,l){let{width:t="100px"}=e,{height:n="100px"}=e,{isCloud:r}=e,{title:o=""}=e,a=r?"black":"white";return s.$$set=i=>{"width"in i&&l(0,t=i.width),"height"in i&&l(1,n=i.height),"isCloud"in i&&l(4,r=i.isCloud),"title"in i&&l(2,o=i.title)},[t,n,o,a,r]}class rs extends ae{constructor(e){super(),fe(this,e,ss,ns,ue,{width:0,height:1,isCloud:4,title:2})}}const _t=cn("navOpen",!1);const os=s=>({}),Xt=s=>({}),is=s=>({}),Jt=s=>({}),as=s=>({}),Yt=s=>({}),fs=s=>({}),yt=s=>({});function xt(s){let e,l=j("common.version")+"",t;return{c(){e=A("span"),t=Q(l),this.h()},l(n){e=R(n,"SPAN",{class:!0});var r=q(e);t=X(r,l),r.forEach(_),this.h()},h(){$(e,"class","sr-only")},m(n,r){C(n,e,r),V(e,t)},p:se,d(n){n&&_(e)}}}function us(s){let e,l,t,n,r,o,a,i,f,u,c,m,d,b,E,h,k,I,N,w,T,W,O,U,v,M,K,J,Ee,ge;n=new rs({props:{height:"24px",width:"24px",isCloud:s[0],title:j("workflows.recent-workflows-link")}}),i=new Ie({props:{name:s[3]?"chevron-left":"chevron-right"}});const Te=s[11].top,he=ee(Te,s,s[10],yt),Ce=s[11].middle,_e=ee(Ce,s,s[10],Yt),Z=s[11].bottom,Y=ee(Z,s,s[10],Jt);let y=s[2]&&xt();const be=s[11].drawer,re=ee(be,s,s[10],Xt);let $e=[{class:"nav-header transition-width"},{"data-testid":"navigation-header"},s[5]],ke={};for(let H=0;H<$e.length;H+=1)ke=we(ke,$e[H]);return{c(){e=A("nav"),l=A("div"),t=A("a"),D(n.$$.fragment),o=P(),a=A("button"),D(i.$$.fragment),u=P(),c=A("div"),m=A("div"),d=A("ul"),he&&he.c(),b=P(),E=A("hr"),k=P(),I=A("ul"),_e&&_e.c(),N=P(),w=A("div"),T=A("ul"),Y&&Y.c(),W=P(),O=A("div"),y&&y.c(),U=P(),v=Q(s[2]),K=P(),re&&re.c(),this.h()},l(H){e=R(H,"NAV",{class:!0,"data-testid":!0});var x=q(e);l=R(x,"DIV",{class:!0});var Ve=q(l);t=R(Ve,"A",{href:!0,class:!0,style:!0});var Ae=q(t);S(n.$$.fragment,Ae),Ae.forEach(_),o=F(Ve),a=R(Ve,"BUTTON",{class:!0,title:!0});var Ge=q(a);S(i.$$.fragment,Ge),Ge.forEach(_),Ve.forEach(_),u=F(x),c=R(x,"DIV",{class:!0});var Pe=q(c);m=R(Pe,"DIV",{class:!0});var Se=q(m);d=R(Se,"UL",{class:!0});var Qe=q(d);he&&he.l(Qe),Qe.forEach(_),b=F(Se),E=R(Se,"HR",{class:!0}),k=F(Se),I=R(Se,"UL",{class:!0});var Xe=q(I);_e&&_e.l(Xe),Xe.forEach(_),Se.forEach(_),N=F(Pe),w=R(Pe,"DIV",{class:!0});var L=q(w);T=R(L,"UL",{class:!0});var Be=q(T);Y&&Y.l(Be),Be.forEach(_),L.forEach(_),Pe.forEach(_),W=F(x),O=R(x,"DIV",{class:!0});var Je=q(O);y&&y.l(Je),U=F(Je),v=X(Je,s[2]),Je.forEach(_),K=F(x),re&&re.l(x),x.forEach(_),this.h()},h(){$(t,"href",r=s[1].home),$(t,"class","absolute block"),Lt(t,"top","22px"),Lt(t,"left","18px"),$(a,"class","nav-toggle svelte-1e50i2l"),$(a,"title",f=s[3]?"Collapse menu":"Expand menu"),G(a,"open",s[3]),G(a,"close",!s[3]),$(l,"class","relative h-32 min-h-[84px]"),$(d,"class","nav-section svelte-1e50i2l"),$(E,"class",h="my-8 w-full "+(s[0]?"stroke-gray-200":"stroke-gray-700")),$(I,"class","nav-section svelte-1e50i2l"),$(m,"class","nav-section-wrapper svelte-1e50i2l"),$(T,"class","nav-section svelte-1e50i2l"),$(w,"class","nav-section-wrapper svelte-1e50i2l"),$(c,"class","nav-wrapper transition-width svelte-1e50i2l"),G(c,"open",s[3]),G(c,"close",!s[3]),$(O,"class",M="h-4 w-full pb-12 pt-24 text-center text-[10px] "+(s[0]?"text-gray-500":"text-gray-300")),tt(e,ke),G(e,"cloud",s[0]),G(e,"svelte-1e50i2l",!0)},m(H,x){C(H,e,x),V(e,l),V(l,t),B(n,t,null),V(l,o),V(l,a),B(i,a,null),V(e,u),V(e,c),V(c,m),V(m,d),he&&he.m(d,null),V(m,b),V(m,E),V(m,k),V(m,I),_e&&_e.m(I,null),V(c,N),V(c,w),V(w,T),Y&&Y.m(T,null),V(e,W),V(e,O),y&&y.m(O,null),V(O,U),V(O,v),V(e,K),re&&re.m(e,null),J=!0,Ee||(ge=ve(a,"click",s[4]),Ee=!0)},p(H,[x]){const Ve={};x&1&&(Ve.isCloud=H[0]),n.$set(Ve),(!J||x&2&&r!==(r=H[1].home))&&$(t,"href",r);const Ae={};x&8&&(Ae.name=H[3]?"chevron-left":"chevron-right"),i.$set(Ae),(!J||x&8&&f!==(f=H[3]?"Collapse menu":"Expand menu"))&&$(a,"title",f),(!J||x&8)&&G(a,"open",H[3]),(!J||x&8)&&G(a,"close",!H[3]),he&&he.p&&(!J||x&1024)&&te(he,Te,H,H[10],J?ne(Te,H[10],x,fs):le(H[10]),yt),(!J||x&1&&h!==(h="my-8 w-full "+(H[0]?"stroke-gray-200":"stroke-gray-700")))&&$(E,"class",h),_e&&_e.p&&(!J||x&1024)&&te(_e,Ce,H,H[10],J?ne(Ce,H[10],x,as):le(H[10]),Yt),Y&&Y.p&&(!J||x&1024)&&te(Y,Z,H,H[10],J?ne(Z,H[10],x,is):le(H[10]),Jt),(!J||x&8)&&G(c,"open",H[3]),(!J||x&8)&&G(c,"close",!H[3]),H[2]?y?y.p(H,x):(y=xt(),y.c(),y.m(O,U)):y&&(y.d(1),y=null),(!J||x&4)&&pe(v,H[2]),(!J||x&1&&M!==(M="h-4 w-full pb-12 pt-24 text-center text-[10px] "+(H[0]?"text-gray-500":"text-gray-300")))&&$(O,"class",M),re&&re.p&&(!J||x&1024)&&te(re,be,H,H[10],J?ne(be,H[10],x,os):le(H[10]),Xt),tt(e,ke=ht($e,[{class:"nav-header transition-width"},{"data-testid":"navigation-header"},x&32&&H[5]])),G(e,"cloud",H[0]),G(e,"svelte-1e50i2l",!0)},i(H){J||(p(n.$$.fragment,H),p(i.$$.fragment,H),p(he,H),p(_e,H),p(Y,H),p(re,H),J=!0)},o(H){g(n.$$.fragment,H),g(i.$$.fragment,H),g(he,H),g(_e,H),g(Y,H),g(re,H),J=!1},d(H){H&&_(e),z(n),z(i),he&&he.d(H),_e&&_e.d(H),Y&&Y.d(H),y&&y.d(),re&&re.d(H),Ee=!1,ge()}}}function cs(s,e,l){let t;const n=["isCloud","linkList"];let r=Me(e,n),o,a;oe(s,qe,h=>l(9,o=h)),oe(s,_t,h=>l(3,a=h));let{$$slots:i={},$$scope:f}=e;var u,c,m;let{isCloud:d=!1}=e,{linkList:b}=e;function E(){de(_t,a=!a,a)}return s.$$set=h=>{e=we(we({},e),Oe(h)),l(5,r=Me(e,n)),"isCloud"in h&&l(0,d=h.isCloud),"linkList"in h&&l(1,b=h.linkList),"$$scope"in h&&l(10,f=h.$$scope)},s.$$.update=()=>{s.$$.dirty&960&&l(2,t=l(8,m=l(7,c=l(6,u=o.data)===null||u===void 0?void 0:u.settings)===null||c===void 0?void 0:c.version)!==null&&m!==void 0?m:"")},[d,b,t,a,E,r,u,c,m,o,f,i]}class ms extends ae{constructor(e){super(),fe(this,e,cs,us,ue,{isCloud:0,linkList:1})}}function ds(s){let e;const l=s[9].default,t=ee(l,s,s[8],null);return{c(){t&&t.c()},l(n){t&&t.l(n)},m(n,r){t&&t.m(n,r),e=!0},p(n,r){t&&t.p&&(!e||r&256)&&te(t,l,n,n[8],e?ne(l,n[8],r,null):le(n[8]),null)},i(n){e||(p(t,n),e=!0)},o(n){g(t,n),e=!1},d(n){t&&t.d(n)}}}function _s(s){let e,l;const t=s[9].default,n=ee(t,s,s[8],null);return{c(){e=A("a"),n&&n.c(),this.h()},l(r){e=R(r,"A",{href:!0,class:!0});var o=q(e);n&&n.l(o),o.forEach(_),this.h()},h(){$(e,"href",s[0]),$(e,"class",ze(s[5])+" svelte-4ukgao")},m(r,o){C(r,e,o),n&&n.m(e,null),l=!0},p(r,o){n&&n.p&&(!l||o&256)&&te(n,t,r,r[8],l?ne(t,r[8],o,null):le(r[8]),null),(!l||o&1)&&$(e,"href",r[0])},i(r){l||(p(n,r),l=!0)},o(r){g(n,r),l=!1},d(r){r&&_(e),n&&n.d(r)}}}function ps(s){let e,l;const t=s[9].default,n=ee(t,s,s[8],null);return{c(){e=A("a"),n&&n.c(),this.h()},l(r){e=R(r,"A",{href:!0,rel:!0,target:!0,class:!0});var o=q(e);n&&n.l(o),o.forEach(_),this.h()},h(){$(e,"href",s[0]),$(e,"rel","noreferrer"),$(e,"target","_blank"),$(e,"class",ze(s[5])+" svelte-4ukgao")},m(r,o){C(r,e,o),n&&n.m(e,null),l=!0},p(r,o){n&&n.p&&(!l||o&256)&&te(n,t,r,r[8],l?ne(t,r[8],o,null):le(r[8]),null),(!l||o&1)&&$(e,"href",r[0])},i(r){l||(p(n,r),l=!0)},o(r){g(n,r),l=!1},d(r){r&&_(e),n&&n.d(r)}}}function gs(s){let e,l,t,n;const r=s[9].default,o=ee(r,s,s[8],null);return{c(){e=A("button"),o&&o.c(),this.h()},l(a){e=R(a,"BUTTON",{class:!0});var i=q(e);o&&o.l(i),i.forEach(_),this.h()},h(){$(e,"class",s[5]+" text-left svelte-4ukgao")},m(a,i){C(a,e,i),o&&o.m(e,null),l=!0,t||(n=ve(e,"click",function(){bt(s[4])&&s[4].apply(this,arguments)}),t=!0)},p(a,i){s=a,o&&o.p&&(!l||i&256)&&te(o,r,s,s[8],l?ne(r,s[8],i,null):le(s[8]),null)},i(a){l||(p(o,a),l=!0)},o(a){g(o,a),l=!1},d(a){a&&_(e),o&&o.d(a),t=!1,n()}}}function hs(s){let e,l,t,n,r,o;const a=[gs,ps,_s,ds],i=[];function f(u,c){return u[4]!==null?0:u[0]&&u[3]?1:u[0]?2:3}return l=f(s),t=i[l]=a[l](s),{c(){e=A("li"),t.c(),this.h()},l(u){e=R(u,"LI",{class:!0,"data-testid":!0});var c=q(e);t.l(c),c.forEach(_),this.h()},h(){$(e,"class",n=ze(s[0]?"":s[5])+" svelte-4ukgao"),$(e,"data-testid",r=s[6]["data-testid"]),G(e,"noFilter",s[1]),G(e,"wrap",s[2]),G(e,"button",s[4]!==null)},m(u,c){C(u,e,c),i[l].m(e,null),o=!0},p(u,[c]){let m=l;l=f(u),l===m?i[l].p(u,c):(ce(),g(i[m],1,1,()=>{i[m]=null}),me(),t=i[l],t?t.p(u,c):(t=i[l]=a[l](u),t.c()),p(t,1),t.m(e,null)),(!o||c&1&&n!==(n=ze(u[0]?"":u[5])+" svelte-4ukgao"))&&$(e,"class",n),(!o||c&64&&r!==(r=u[6]["data-testid"]))&&$(e,"data-testid",r),(!o||c&3)&&G(e,"noFilter",u[1]),(!o||c&5)&&G(e,"wrap",u[2]),(!o||c&17)&&G(e,"button",u[4]!==null)},i(u){o||(p(t),o=!0)},o(u){g(t),o=!1},d(u){u&&_(e),i[l].d()}}}function bs(s,e,l){let{$$slots:t={},$$scope:n}=e,{link:r=null}=e,{isCloud:o}=e,{noFilter:a=!1}=e,{wrap:i=!1}=e,{externalLink:f=!1}=e,{handleClick:u=null}=e,c=`nav-row ${e.class} ${o?"cloud":"local"}`;return s.$$set=m=>{l(6,e=we(we({},e),Oe(m))),"link"in m&&l(0,r=m.link),"isCloud"in m&&l(7,o=m.isCloud),"noFilter"in m&&l(1,a=m.noFilter),"wrap"in m&&l(2,i=m.wrap),"externalLink"in m&&l(3,f=m.externalLink),"handleClick"in m&&l(4,u=m.handleClick),"$$scope"in m&&l(8,n=m.$$scope)},e=Oe(e),[r,a,i,f,u,c,e,o,n,t]}class Re extends ae{constructor(e){super(),fe(this,e,bs,hs,ue,{link:0,isCloud:7,noFilter:1,wrap:2,externalLink:3,handleClick:4})}}function $s(s){let e;const l=s[3].default,t=ee(l,s,s[4],null);return{c(){t&&t.c()},l(n){t&&t.l(n)},m(n,r){t&&t.m(n,r),e=!0},p(n,r){t&&t.p&&(!e||r&16)&&te(t,l,n,n[4],e?ne(l,n[4],r,null):le(n[4]),null)},i(n){e||(p(t,n),e=!0)},o(n){g(t,n),e=!1},d(n){t&&t.d(n)}}}function vs(s){let e,l;const t=[{right:!0},{hide:s[2]},{text:s[1]},s[0]];let n={$$slots:{default:[$s]},$$scope:{ctx:s}};for(let r=0;rl(2,r=u));let{$$slots:o={},$$scope:a}=e,{props:i=n}=e,{text:f=n.text}=e;return s.$$set=u=>{e=we(we({},e),Oe(u)),l(5,n=Me(e,t)),"props"in u&&l(0,i=u.props),"text"in u&&l(1,f=u.text),"$$scope"in u&&l(4,a=u.$$scope)},[i,f,r,o,a]}class je extends ae{constructor(e){super(),fe(this,e,ks,vs,ue,{props:0,text:1})}}const ws=s=>({}),el=s=>({}),Es=s=>({}),tl=s=>({}),Cs=s=>({}),ll=s=>({}),Is=s=>({}),nl=s=>({}),Ts=s=>({}),sl=s=>({});function Ls(s){let e,l,t;return l=new Ie({props:{name:"workflow"}}),{c(){e=A("div"),D(l.$$.fragment),this.h()},l(n){e=R(n,"DIV",{class:!0});var r=q(e);S(l.$$.fragment,r),r.forEach(_),this.h()},h(){$(e,"class","nav-icon svelte-1jb7rp7")},m(n,r){C(n,e,r),B(l,e,null),t=!0},p:se,i(n){t||(p(l.$$.fragment,n),t=!0)},o(n){g(l.$$.fragment,n),t=!1},d(n){n&&_(e),z(l)}}}function Vs(s){let e,l,t,n=j("common.workflows")+"",r,o;return e=new je({props:{text:j("common.workflows"),$$slots:{default:[Ls]},$$scope:{ctx:s}}}),{c(){D(e.$$.fragment),l=P(),t=A("div"),r=Q(n),this.h()},l(a){S(e.$$.fragment,a),l=F(a),t=R(a,"DIV",{class:!0});var i=q(t);r=X(i,n),i.forEach(_),this.h()},h(){$(t,"class","nav-title svelte-1jb7rp7")},m(a,i){B(e,a,i),C(a,l,i),C(a,t,i),V(t,r),o=!0},p(a,i){const f={};i&32&&(f.$$scope={dirty:i,ctx:a}),e.$set(f)},i(a){o||(p(e.$$.fragment,a),o=!0)},o(a){g(e.$$.fragment,a),o=!1},d(a){z(e,a),a&&_(l),a&&_(t)}}}function Ns(s){let e,l,t;return l=new Ie({props:{name:"schedules"}}),{c(){e=A("div"),D(l.$$.fragment),this.h()},l(n){e=R(n,"DIV",{class:!0});var r=q(e);S(l.$$.fragment,r),r.forEach(_),this.h()},h(){$(e,"class","nav-icon svelte-1jb7rp7")},m(n,r){C(n,e,r),B(l,e,null),t=!0},p:se,i(n){t||(p(l.$$.fragment,n),t=!0)},o(n){g(l.$$.fragment,n),t=!1},d(n){n&&_(e),z(l)}}}function Ds(s){let e,l,t,n=j("common.schedules")+"",r,o;return e=new je({props:{text:j("common.schedules"),$$slots:{default:[Ns]},$$scope:{ctx:s}}}),{c(){D(e.$$.fragment),l=P(),t=A("div"),r=Q(n),this.h()},l(a){S(e.$$.fragment,a),l=F(a),t=R(a,"DIV",{class:!0});var i=q(t);r=X(i,n),i.forEach(_),this.h()},h(){$(t,"class","nav-title svelte-1jb7rp7")},m(a,i){B(e,a,i),C(a,l,i),C(a,t,i),V(t,r),o=!0},p(a,i){const f={};i&32&&(f.$$scope={dirty:i,ctx:a}),e.$set(f)},i(a){o||(p(e.$$.fragment,a),o=!0)},o(a){g(e.$$.fragment,a),o=!1},d(a){z(e,a),a&&_(l),a&&_(t)}}}function Ss(s){let e,l;return e=new Re({props:{link:s[2].schedules,isCloud:s[0],"data-testid":"schedules-button",$$slots:{default:[Ds]},$$scope:{ctx:s}}}),{c(){D(e.$$.fragment)},l(t){S(e.$$.fragment,t)},m(t,n){B(e,t,n),l=!0},p(t,n){const r={};n&4&&(r.link=t[2].schedules),n&1&&(r.isCloud=t[0]),n&32&&(r.$$scope={dirty:n,ctx:t}),e.$set(r)},i(t){l||(p(e.$$.fragment,t),l=!0)},o(t){g(e.$$.fragment,t),l=!1},d(t){z(e,t)}}}function Bs(s){var t,n;let e,l;return e=new Kn({props:{enabled:Boolean((n=(t=s[1])==null?void 0:t.namespaceInfo)==null?void 0:n.supportsSchedules),$$slots:{default:[Ss]},$$scope:{ctx:s}}}),{c(){D(e.$$.fragment)},l(r){S(e.$$.fragment,r)},m(r,o){B(e,r,o),l=!0},p(r,o){var i,f;const a={};o&2&&(a.enabled=Boolean((f=(i=r[1])==null?void 0:i.namespaceInfo)==null?void 0:f.supportsSchedules)),o&37&&(a.$$scope={dirty:o,ctx:r}),e.$set(a)},i(r){l||(p(e.$$.fragment,r),l=!0)},o(r){g(e.$$.fragment,r),l=!1},d(r){z(e,r)}}}function zs(s){let e,l,t;return l=new Ie({props:{name:"archives"}}),{c(){e=A("div"),D(l.$$.fragment),this.h()},l(n){e=R(n,"DIV",{class:!0});var r=q(e);S(l.$$.fragment,r),r.forEach(_),this.h()},h(){$(e,"class","nav-icon svelte-1jb7rp7")},m(n,r){C(n,e,r),B(l,e,null),t=!0},p:se,i(n){t||(p(l.$$.fragment,n),t=!0)},o(n){g(l.$$.fragment,n),t=!1},d(n){n&&_(e),z(l)}}}function Os(s){let e,l,t,n=j("common.archive")+"",r,o;return e=new je({props:{text:j("common.archive"),$$slots:{default:[zs]},$$scope:{ctx:s}}}),{c(){D(e.$$.fragment),l=P(),t=A("div"),r=Q(n),this.h()},l(a){S(e.$$.fragment,a),l=F(a),t=R(a,"DIV",{class:!0});var i=q(t);r=X(i,n),i.forEach(_),this.h()},h(){$(t,"class","nav-title svelte-1jb7rp7")},m(a,i){B(e,a,i),C(a,l,i),C(a,t,i),V(t,r),o=!0},p(a,i){const f={};i&32&&(f.$$scope={dirty:i,ctx:a}),e.$set(f)},i(a){o||(p(e.$$.fragment,a),o=!0)},o(a){g(e.$$.fragment,a),o=!1},d(a){z(e,a),a&&_(l),a&&_(t)}}}function As(s){let e,l;return e=new Re({props:{link:s[2].archive,isCloud:s[0],"data-testid":"archive-button",$$slots:{default:[Os]},$$scope:{ctx:s}}}),{c(){D(e.$$.fragment)},l(t){S(e.$$.fragment,t)},m(t,n){B(e,t,n),l=!0},p(t,n){const r={};n&4&&(r.link=t[2].archive),n&1&&(r.isCloud=t[0]),n&32&&(r.$$scope={dirty:n,ctx:t}),e.$set(r)},i(t){l||(p(e.$$.fragment,t),l=!0)},o(t){g(e.$$.fragment,t),l=!1},d(t){z(e,t)}}}function Rs(s){let e,l,t;return l=new Ie({props:{name:s[3]}}),{c(){e=A("div"),D(l.$$.fragment),this.h()},l(n){e=R(n,"DIV",{class:!0});var r=q(e);S(l.$$.fragment,r),r.forEach(_),this.h()},h(){$(e,"class","nav-icon svelte-1jb7rp7")},m(n,r){C(n,e,r),B(l,e,null),t=!0},p(n,r){const o={};r&8&&(o.name=n[3]),l.$set(o)},i(n){t||(p(l.$$.fragment,n),t=!0)},o(n){g(l.$$.fragment,n),t=!1},d(n){n&&_(e),z(l)}}}function qs(s){let e,l,t,n=j("batch.nav-title")+"",r,o;return e=new je({props:{text:j("batch.list-page-title"),$$slots:{default:[Rs]},$$scope:{ctx:s}}}),{c(){D(e.$$.fragment),l=P(),t=A("div"),r=Q(n),this.h()},l(a){S(e.$$.fragment,a),l=F(a),t=R(a,"DIV",{class:!0});var i=q(t);r=X(i,n),i.forEach(_),this.h()},h(){$(t,"class","nav-title svelte-1jb7rp7")},m(a,i){B(e,a,i),C(a,l,i),C(a,t,i),V(t,r),o=!0},p(a,i){const f={};i&40&&(f.$$scope={dirty:i,ctx:a}),e.$set(f)},i(a){o||(p(e.$$.fragment,a),o=!0)},o(a){g(e.$$.fragment,a),o=!1},d(a){z(e,a),a&&_(l),a&&_(t)}}}function js(s){let e,l,t,n,r,o,a,i,f;e=new Re({props:{link:s[2].workflows,isCloud:s[0],"data-testid":"workflows-button",$$slots:{default:[Vs]},$$scope:{ctx:s}}}),t=new dt({props:{isCloud:s[0],$$slots:{default:[Bs]},$$scope:{ctx:s}}});const u=s[4].top,c=ee(u,s,s[5],el);return o=new dt({props:{isCloud:s[0],$$slots:{default:[As]},$$scope:{ctx:s}}}),i=new Re({props:{link:s[2].batchOperations,isCloud:s[0],$$slots:{default:[qs]},$$scope:{ctx:s}}}),{c(){D(e.$$.fragment),l=P(),D(t.$$.fragment),n=P(),c&&c.c(),r=P(),D(o.$$.fragment),a=P(),D(i.$$.fragment)},l(m){S(e.$$.fragment,m),l=F(m),S(t.$$.fragment,m),n=F(m),c&&c.l(m),r=F(m),S(o.$$.fragment,m),a=F(m),S(i.$$.fragment,m)},m(m,d){B(e,m,d),C(m,l,d),B(t,m,d),C(m,n,d),c&&c.m(m,d),C(m,r,d),B(o,m,d),C(m,a,d),B(i,m,d),f=!0},p(m,d){const b={};d&4&&(b.link=m[2].workflows),d&1&&(b.isCloud=m[0]),d&32&&(b.$$scope={dirty:d,ctx:m}),e.$set(b);const E={};d&1&&(E.isCloud=m[0]),d&39&&(E.$$scope={dirty:d,ctx:m}),t.$set(E),c&&c.p&&(!f||d&32)&&te(c,u,m,m[5],f?ne(u,m[5],d,ws):le(m[5]),el);const h={};d&1&&(h.isCloud=m[0]),d&37&&(h.$$scope={dirty:d,ctx:m}),o.$set(h);const k={};d&4&&(k.link=m[2].batchOperations),d&1&&(k.isCloud=m[0]),d&40&&(k.$$scope={dirty:d,ctx:m}),i.$set(k)},i(m){f||(p(e.$$.fragment,m),p(t.$$.fragment,m),p(c,m),p(o.$$.fragment,m),p(i.$$.fragment,m),f=!0)},o(m){g(e.$$.fragment,m),g(t.$$.fragment,m),g(c,m),g(o.$$.fragment,m),g(i.$$.fragment,m),f=!1},d(m){z(e,m),m&&_(l),z(t,m),m&&_(n),c&&c.d(m),m&&_(r),z(o,m),m&&_(a),z(i,m)}}}function Ps(s){let e,l,t;return l=new Ie({props:{name:"namespace"}}),{c(){e=A("div"),D(l.$$.fragment),this.h()},l(n){e=R(n,"DIV",{class:!0});var r=q(e);S(l.$$.fragment,r),r.forEach(_),this.h()},h(){$(e,"class","nav-icon svelte-1jb7rp7")},m(n,r){C(n,e,r),B(l,e,null),t=!0},p:se,i(n){t||(p(l.$$.fragment,n),t=!0)},o(n){g(l.$$.fragment,n),t=!1},d(n){n&&_(e),z(l)}}}function Fs(s){let e,l,t,n=j("common.namespaces")+"",r,o;return e=new je({props:{text:j("common.namespaces"),$$slots:{default:[Ps]},$$scope:{ctx:s}}}),{c(){D(e.$$.fragment),l=P(),t=A("div"),r=Q(n),this.h()},l(a){S(e.$$.fragment,a),l=F(a),t=R(a,"DIV",{class:!0});var i=q(t);r=X(i,n),i.forEach(_),this.h()},h(){$(t,"class","nav-title svelte-1jb7rp7")},m(a,i){B(e,a,i),C(a,l,i),C(a,t,i),V(t,r),o=!0},p(a,i){const f={};i&32&&(f.$$scope={dirty:i,ctx:a}),e.$set(f)},i(a){o||(p(e.$$.fragment,a),o=!0)},o(a){g(e.$$.fragment,a),o=!1},d(a){z(e,a),a&&_(l),a&&_(t)}}}function Hs(s){let e,l;return e=new Re({props:{link:s[2].namespaces,isCloud:s[0],"data-testid":"namespaces-button",$$slots:{default:[Fs]},$$scope:{ctx:s}}}),{c(){D(e.$$.fragment)},l(t){S(e.$$.fragment,t)},m(t,n){B(e,t,n),l=!0},p(t,n){const r={};n&4&&(r.link=t[2].namespaces),n&1&&(r.isCloud=t[0]),n&32&&(r.$$scope={dirty:n,ctx:t}),e.$set(r)},i(t){l||(p(e.$$.fragment,t),l=!0)},o(t){g(e.$$.fragment,t),l=!1},d(t){z(e,t)}}}function Ms(s){let e,l,t;e=new ls({props:{isCloud:s[0],$$slots:{default:[Hs]},$$scope:{ctx:s}}});const n=s[4].middle,r=ee(n,s,s[5],tl);return{c(){D(e.$$.fragment),l=P(),r&&r.c()},l(o){S(e.$$.fragment,o),l=F(o),r&&r.l(o)},m(o,a){B(e,o,a),C(o,l,a),r&&r.m(o,a),t=!0},p(o,a){const i={};a&1&&(i.isCloud=o[0]),a&37&&(i.$$scope={dirty:a,ctx:o}),e.$set(i),r&&r.p&&(!t||a&32)&&te(r,n,o,o[5],t?ne(n,o[5],a,Es):le(o[5]),tl)},i(o){t||(p(e.$$.fragment,o),p(r,o),t=!0)},o(o){g(e.$$.fragment,o),g(r,o),t=!1},d(o){z(e,o),o&&_(l),r&&r.d(o)}}}function Us(s){let e,l,t;return l=new Ie({props:{name:"import"}}),{c(){e=A("div"),D(l.$$.fragment),this.h()},l(n){e=R(n,"DIV",{class:!0});var r=q(e);S(l.$$.fragment,r),r.forEach(_),this.h()},h(){$(e,"class","nav-icon svelte-1jb7rp7")},m(n,r){C(n,e,r),B(l,e,null),t=!0},p:se,i(n){t||(p(l.$$.fragment,n),t=!0)},o(n){g(l.$$.fragment,n),t=!1},d(n){n&&_(e),z(l)}}}function Ks(s){let e,l,t,n=j("common.import")+"",r,o;return e=new je({props:{text:j("common.import"),$$slots:{default:[Us]},$$scope:{ctx:s}}}),{c(){D(e.$$.fragment),l=P(),t=A("div"),r=Q(n),this.h()},l(a){S(e.$$.fragment,a),l=F(a),t=R(a,"DIV",{class:!0});var i=q(t);r=X(i,n),i.forEach(_),this.h()},h(){$(t,"class","nav-title svelte-1jb7rp7")},m(a,i){B(e,a,i),C(a,l,i),C(a,t,i),V(t,r),o=!0},p(a,i){const f={};i&32&&(f.$$scope={dirty:i,ctx:a}),e.$set(f)},i(a){o||(p(e.$$.fragment,a),o=!0)},o(a){g(e.$$.fragment,a),o=!1},d(a){z(e,a),a&&_(l),a&&_(t)}}}function Ws(s){let e,l;return e=new Re({props:{link:s[2].import,isCloud:s[0],"data-testid":"import-button",$$slots:{default:[Ks]},$$scope:{ctx:s}}}),{c(){D(e.$$.fragment)},l(t){S(e.$$.fragment,t)},m(t,n){B(e,t,n),l=!0},p(t,n){const r={};n&4&&(r.link=t[2].import),n&1&&(r.isCloud=t[0]),n&32&&(r.$$scope={dirty:n,ctx:t}),e.$set(r)},i(t){l||(p(e.$$.fragment,t),l=!0)},o(t){g(e.$$.fragment,t),l=!1},d(t){z(e,t)}}}function Zs(s){let e,l;return e=new dt({props:{isCloud:s[0],$$slots:{default:[Ws]},$$scope:{ctx:s}}}),{c(){D(e.$$.fragment)},l(t){S(e.$$.fragment,t)},m(t,n){B(e,t,n),l=!0},p(t,n){const r={};n&1&&(r.isCloud=t[0]),n&37&&(r.$$scope={dirty:n,ctx:t}),e.$set(r)},i(t){l||(p(e.$$.fragment,t),l=!0)},o(t){g(e.$$.fragment,t),l=!1},d(t){z(e,t)}}}function Gs(s){let e,l,t;return l=new Ie({props:{name:"feedback"}}),{c(){e=A("div"),D(l.$$.fragment),this.h()},l(n){e=R(n,"DIV",{class:!0});var r=q(e);S(l.$$.fragment,r),r.forEach(_),this.h()},h(){$(e,"class","nav-icon svelte-1jb7rp7")},m(n,r){C(n,e,r),B(l,e,null),t=!0},p:se,i(n){t||(p(l.$$.fragment,n),t=!0)},o(n){g(l.$$.fragment,n),t=!1},d(n){n&&_(e),z(l)}}}function Qs(s){let e,l,t,n=j("common.feedback")+"",r,o;return e=new je({props:{text:j("common.feedback"),$$slots:{default:[Gs]},$$scope:{ctx:s}}}),{c(){D(e.$$.fragment),l=P(),t=A("div"),r=Q(n),this.h()},l(a){S(e.$$.fragment,a),l=F(a),t=R(a,"DIV",{class:!0});var i=q(t);r=X(i,n),i.forEach(_),this.h()},h(){$(t,"class","nav-title svelte-1jb7rp7")},m(a,i){B(e,a,i),C(a,l,i),C(a,t,i),V(t,r),o=!0},p(a,i){const f={};i&32&&(f.$$scope={dirty:i,ctx:a}),e.$set(f)},i(a){o||(p(e.$$.fragment,a),o=!0)},o(a){g(e.$$.fragment,a),o=!1},d(a){z(e,a),a&&_(l),a&&_(t)}}}function Xs(s){let e,l;return e=new Re({props:{link:s[2].feedback,isCloud:s[0],externalLink:!0,$$slots:{default:[Qs]},$$scope:{ctx:s}}}),{c(){D(e.$$.fragment)},l(t){S(e.$$.fragment,t)},m(t,n){B(e,t,n),l=!0},p(t,n){const r={};n&4&&(r.link=t[2].feedback),n&1&&(r.isCloud=t[0]),n&32&&(r.$$scope={dirty:n,ctx:t}),e.$set(r)},i(t){l||(p(e.$$.fragment,t),l=!0)},o(t){g(e.$$.fragment,t),l=!1},d(t){z(e,t)}}}function Js(s){let e,l,t;const n=s[4].bottom,r=ee(n,s,s[5],sl),o=s[4].import,a=ee(o,s,s[5],nl),i=a||Zs(s),f=s[4].feedback,u=ee(f,s,s[5],ll),c=u||Xs(s);return{c(){r&&r.c(),e=P(),i&&i.c(),l=P(),c&&c.c()},l(m){r&&r.l(m),e=F(m),i&&i.l(m),l=F(m),c&&c.l(m)},m(m,d){r&&r.m(m,d),C(m,e,d),i&&i.m(m,d),C(m,l,d),c&&c.m(m,d),t=!0},p(m,d){r&&r.p&&(!t||d&32)&&te(r,n,m,m[5],t?ne(n,m[5],d,Ts):le(m[5]),sl),a?a.p&&(!t||d&32)&&te(a,o,m,m[5],t?ne(o,m[5],d,Is):le(m[5]),nl):i&&i.p&&(!t||d&5)&&i.p(m,t?d:-1),u?u.p&&(!t||d&32)&&te(u,f,m,m[5],t?ne(f,m[5],d,Cs):le(m[5]),ll):c&&c.p&&(!t||d&5)&&c.p(m,t?d:-1)},i(m){t||(p(r,m),p(i,m),p(c,m),t=!0)},o(m){g(r,m),g(i,m),g(c,m),t=!1},d(m){r&&r.d(m),m&&_(e),i&&i.d(m),m&&_(l),c&&c.d(m)}}}function Ys(s){let e,l;return e=new ms({props:{isCloud:s[0],linkList:s[2],"aria-label":j("common.primary"),$$slots:{bottom:[Js],middle:[Ms],top:[js]},$$scope:{ctx:s}}}),{c(){D(e.$$.fragment)},l(t){S(e.$$.fragment,t)},m(t,n){B(e,t,n),l=!0},p(t,[n]){const r={};n&1&&(r.isCloud=t[0]),n&4&&(r.linkList=t[2]),n&47&&(r.$$scope={dirty:n,ctx:t}),e.$set(r)},i(t){l||(p(e.$$.fragment,t),l=!0)},o(t){g(e.$$.fragment,t),l=!1},d(t){z(e,t)}}}function ys(s,e,l){let t;oe(s,mn,c=>l(6,t=c));let{$$slots:n={},$$scope:r}=e,{isCloud:o=!1}=e,{activeNamespace:a}=e,{linkList:i}=e,f="layers-3";const u=setInterval(()=>{if(!t){l(3,f="layers-3");return}setTimeout(()=>{l(3,f="layers-1")}),setTimeout(()=>{l(3,f="layers-2")},330),setTimeout(()=>{l(3,f="layers-3")},660)},2e3);return xl(()=>{clearInterval(u)}),s.$$set=c=>{"isCloud"in c&&l(0,o=c.isCloud),"activeNamespace"in c&&l(1,a=c.activeNamespace),"linkList"in c&&l(2,i=c.linkList),"$$scope"in c&&l(5,r=c.$$scope)},[o,a,i,f,n,r]}class xs extends ae{constructor(e){super(),fe(this,e,ys,Ys,ue,{isCloud:0,activeNamespace:1,linkList:2})}}function er(s){let e=j("common.skip-nav")+"",l;return{c(){l=Q(e)},l(t){l=X(t,e)},m(t,n){C(t,l,n)},p:se,d(t){t&&_(l)}}}function tr(s){let e,l;return e=new zl({props:{id:"skip-nav",href:"#content",class:"absolute left-1/2 z-100 -translate-y-full p-1 focus:translate-y-0",$$slots:{default:[er]},$$scope:{ctx:s}}}),{c(){D(e.$$.fragment)},l(t){S(e.$$.fragment,t)},m(t,n){B(e,t,n),l=!0},p(t,[n]){const r={};n&1&&(r.$$scope={dirty:n,ctx:t}),e.$set(r)},i(t){l||(p(e.$$.fragment,t),l=!0)},o(t){g(e.$$.fragment,t),l=!1},d(t){z(e,t)}}}class lr extends ae{constructor(e){super(),fe(this,e,null,tr,ue,{})}}const nr=Ke("notRequested"),Al=fn([qe,ut,ft,rn,nr,Vl],([s,e,l,t,n,r])=>{var E,h,k,I,N,w,T,W,O;const o=s.params.namespace,a=(k=(h=(E=s==null?void 0:s.data)==null?void 0:E.settings)==null?void 0:h.codec)==null?void 0:k.endpoint,i=Boolean((w=(N=(I=s==null?void 0:s.data)==null?void 0:I.settings)==null?void 0:N.codec)==null?void 0:w.passAccessToken),f=Boolean((O=(W=(T=s==null?void 0:s.data)==null?void 0:T.settings)==null?void 0:W.codec)==null?void 0:O.includeCredentials),u=l?e:a||e,c=r==null?void 0:r.accessToken;return{namespace:o,settingsEndpoint:a,settingsPassAccessToken:i,settingsIncludeCredentials:f,endpoint:u,accessToken:c,hasNotRequested:u?t==="notRequested":n==="notRequested",hasError:u?t==="error":n==="error",hasSuccess:u?t==="success":n==="success"}});function sr(s){let e,l;return e=new We({props:{bottomRight:!0,text:j("data-encoder.configure-codec-server"),$$slots:{default:[or]},$$scope:{ctx:s}}}),{c(){D(e.$$.fragment)},l(t){S(e.$$.fragment,t)},m(t,n){B(e,t,n),l=!0},p(t,n){const r={};n&8&&(r.$$scope={dirty:n,ctx:t}),e.$set(r)},i(t){l||(p(e.$$.fragment,t),l=!0)},o(t){g(e.$$.fragment,t),l=!1},d(t){z(e,t)}}}function rr(s){let e,l,t,n;const r=[fr,ar,ir],o=[];function a(i,f){var u;return(u=i[0])!=null&&u.hasNotRequested?0:i[0].hasError?1:i[0].hasSuccess?2:-1}return~(e=a(s))&&(l=o[e]=r[e](s)),{c(){l&&l.c(),t=ie()},l(i){l&&l.l(i),t=ie()},m(i,f){~e&&o[e].m(i,f),C(i,t,f),n=!0},p(i,f){let u=e;e=a(i),e===u?~e&&o[e].p(i,f):(l&&(ce(),g(o[u],1,1,()=>{o[u]=null}),me()),~e?(l=o[e],l?l.p(i,f):(l=o[e]=r[e](i),l.c()),p(l,1),l.m(t.parentNode,t)):l=null)},i(i){n||(p(l),n=!0)},o(i){g(l),n=!1},d(i){~e&&o[e].d(i),i&&_(t)}}}function or(s){let e,l;return e=new Ze({props:{label:j("data-encoder.configure-codec-server"),class:"relative flex items-center","data-testid":"data-encoder-status",icon:"transcoder-off"}}),e.$on("click",s[1]),{c(){D(e.$$.fragment)},l(t){S(e.$$.fragment,t)},m(t,n){B(e,t,n),l=!0},p:se,i(t){l||(p(e.$$.fragment,t),l=!0)},o(t){g(e.$$.fragment,t),l=!1},d(t){z(e,t)}}}function ir(s){let e,l;return e=new We({props:{bottomRight:!0,text:j("data-encoder.codec-server-success"),$$slots:{default:[ur]},$$scope:{ctx:s}}}),{c(){D(e.$$.fragment)},l(t){S(e.$$.fragment,t)},m(t,n){B(e,t,n),l=!0},p(t,n){const r={};n&8&&(r.$$scope={dirty:n,ctx:t}),e.$set(r)},i(t){l||(p(e.$$.fragment,t),l=!0)},o(t){g(e.$$.fragment,t),l=!1},d(t){z(e,t)}}}function ar(s){let e,l;return e=new We({props:{bottomRight:!0,text:j("data-encoder.codec-server-error"),$$slots:{default:[cr]},$$scope:{ctx:s}}}),{c(){D(e.$$.fragment)},l(t){S(e.$$.fragment,t)},m(t,n){B(e,t,n),l=!0},p(t,n){const r={};n&8&&(r.$$scope={dirty:n,ctx:t}),e.$set(r)},i(t){l||(p(e.$$.fragment,t),l=!0)},o(t){g(e.$$.fragment,t),l=!1},d(t){z(e,t)}}}function fr(s){let e,l;return e=new We({props:{bottomRight:!0,text:j("data-encoder.codec-server-configured"),$$slots:{default:[mr]},$$scope:{ctx:s}}}),{c(){D(e.$$.fragment)},l(t){S(e.$$.fragment,t)},m(t,n){B(e,t,n),l=!0},p(t,n){const r={};n&8&&(r.$$scope={dirty:n,ctx:t}),e.$set(r)},i(t){l||(p(e.$$.fragment,t),l=!0)},o(t){g(e.$$.fragment,t),l=!1},d(t){z(e,t)}}}function ur(s){let e,l;return e=new Ze({props:{label:j("data-encoder.codec-server-success"),class:"relative flex items-center","data-testid":"data-encoder-status-success",icon:"transcoder-on"}}),e.$on("click",s[1]),{c(){D(e.$$.fragment)},l(t){S(e.$$.fragment,t)},m(t,n){B(e,t,n),l=!0},p:se,i(t){l||(p(e.$$.fragment,t),l=!0)},o(t){g(e.$$.fragment,t),l=!1},d(t){z(e,t)}}}function cr(s){let e,l;return e=new Ze({props:{label:j("data-encoder.codec-server-error"),class:"relative flex items-center","data-testid":"data-encoder-status-error",icon:"transcoder-error"}}),e.$on("click",s[1]),{c(){D(e.$$.fragment)},l(t){S(e.$$.fragment,t)},m(t,n){B(e,t,n),l=!0},p:se,i(t){l||(p(e.$$.fragment,t),l=!0)},o(t){g(e.$$.fragment,t),l=!1},d(t){z(e,t)}}}function mr(s){let e,l;return e=new Ze({props:{label:j("data-encoder.codec-server-configured"),class:"relative flex items-center","data-testid":"data-encoder-status-configured",icon:"transcoder-on"}}),e.$on("click",s[1]),{c(){D(e.$$.fragment)},l(t){S(e.$$.fragment,t)},m(t,n){B(e,t,n),l=!0},p:se,i(t){l||(p(e.$$.fragment,t),l=!0)},o(t){g(e.$$.fragment,t),l=!1},d(t){z(e,t)}}}function dr(s){let e,l,t,n;const r=[rr,sr],o=[];function a(i,f){var u;return(u=i[0])!=null&&u.endpoint?0:1}return l=a(s),t=o[l]=r[l](s),{c(){e=A("div"),t.c(),this.h()},l(i){e=R(i,"DIV",{class:!0});var f=q(e);t.l(f),f.forEach(_),this.h()},h(){$(e,"class","mx-1 flex items-center")},m(i,f){C(i,e,f),o[l].m(e,null),n=!0},p(i,[f]){let u=l;l=a(i),l===u?o[l].p(i,f):(ce(),g(o[u],1,1,()=>{o[u]=null}),me(),t=o[l],t?t.p(i,f):(t=o[l]=r[l](i),t.c()),p(t,1),t.m(e,null))},i(i){n||(p(t),n=!0)},o(i){g(t),n=!1},d(i){i&&_(e),o[l].d()}}}function _r(s,e,l){let t,n;return oe(s,He,o=>l(2,t=o)),oe(s,Al,o=>l(0,n=o)),[n,()=>{var o;de(He,t=!t,t),t&&((o=document.getElementById("content-wrapper"))===null||o===void 0||o.scrollTo(0,0))}]}class pr extends ae{constructor(e){super(),fe(this,e,_r,dr,ue,{})}}function rl(s,e,l){const t=s.slice();return t[18]=e[l].value,t[19]=e[l].label,t[20]=e[l].offset,t[21]=e[l].abbr,t}function ol(s,e,l){const t=s.slice();return t[18]=e[l].value,t[19]=e[l].label,t}function gr(s){let e;return{c(){e=Q(s[3])},l(l){e=X(l,s[3])},m(l,t){C(l,e,t)},p(l,t){t&8&&pe(e,l[3])},d(l){l&&_(e)}}}function hr(s){let e,l;return e=new Ie({props:{slot:"leading",name:"clock"}}),{c(){D(e.$$.fragment)},l(t){S(e.$$.fragment,t)},m(t,n){B(e,t,n),l=!0},p:se,i(t){l||(p(e.$$.fragment,t),l=!0)},o(t){g(e.$$.fragment,t),l=!1},d(t){z(e,t)}}}function il(s){let e,l,t,n,r,o,a,i=s[7],f=[];for(let d=0;dg(f[d],1,1,()=>{f[d]=null});function c(d){s[16](d)}let m={label:j("common.relative"),id:"relative-toggle",labelPosition:"left","data-testid":"timezones-relative-toggle"};return s[5]!==void 0&&(m.checked=s[5]),t=new at({props:m}),Le.push(()=>Ne(t,"checked",c)),t.$on("change",s[9]),o=new Ol({}),{c(){for(let d=0;dn=!1)),t.$set(E)},i(d){if(!a){for(let b=0;bNe(e,"value",f)),n=new Ol({});let c=!s[1]&&il(s),m=s[4],d=[];for(let h=0;hg(d[h],1,1,()=>{d[h]=null});let E=null;return m.length||(E=fl(s)),{c(){D(e.$$.fragment),t=P(),D(n.$$.fragment),r=P(),c&&c.c(),o=P();for(let h=0;hl=!1)),e.$set(I),h[1]?c&&(ce(),g(c,1,1,()=>{c=null}),me()):c?(c.p(h,k),k&2&&p(c,1)):(c=il(h),c.c(),p(c,1),c.m(o.parentNode,o)),k&276){m=h[4];let N;for(N=0;N{E=null}),me()):(E=fl(h),E.c(),p(E,1),E.m(a.parentNode,a))}},i(h){if(!i){p(e.$$.fragment,h),p(n.$$.fragment,h),p(c);for(let k=0;kl(5,r=T)),oe(s,xe,T=>l(2,o=T));var a,i,f,u;let{position:c="right"}=e;const m=_n(),d=[{label:j("common.utc"),value:"UTC"},{label:j("common.local"),value:"local"}];let b="";const E=T=>{r&&T!=="local"&&de(ye,r=!1,r),de(xe,o=T,o),l(1,b="")},h=T=>{T.target.checked&&o!=="local"&&de(xe,o="local",o)};en(()=>{String(o)==="relative"&&(de(xe,o="local",o),de(ye,r=!0,r))});function k(T){b=T,l(1,b)}const I=T=>E(T);function N(T){r=T,ye.set(r)}const w=T=>E(T);return s.$$set=T=>{"position"in T&&l(0,c=T.position)},s.$$.update=()=>{s.$$.dirty&2&&l(4,t=b?At.filter(({abbr:T,value:W,zones:O})=>{const U=b.trim().toLowerCase();return W.toLowerCase().includes(U)||(T==null?void 0:T.toLowerCase().includes(U))||(O==null?void 0:O.some(v=>v.toLowerCase().includes(U)))}):At),s.$$.dirty&15364&&l(3,n=l(13,u=l(11,i=l(10,a=Rt[o])===null||a===void 0?void 0:a.abbr)!==null&&i!==void 0?i:l(12,f=Rt[o])===null||f===void 0?void 0:f.label)!==null&&u!==void 0?u:pn(o))},[c,b,o,n,t,r,m,d,E,h,a,i,f,u,k,I,N,w]}class Ir extends ae{constructor(e){super(),fe(this,e,Cr,Er,ue,{position:0})}}const Tr=s=>({}),cl=s=>({slot:"leading"}),Lr=s=>({}),ml=s=>({slot:"trailing"});function Vr(s){let e;const l=s[2].default,t=ee(l,s,s[4],null);return{c(){t&&t.c()},l(n){t&&t.l(n)},m(n,r){t&&t.m(n,r),e=!0},p(n,r){t&&t.p&&(!e||r&16)&&te(t,l,n,n[4],e?ne(l,n[4],r,null):le(n[4]),null)},i(n){e||(p(t,n),e=!0)},o(n){g(t,n),e=!1},d(n){t&&t.d(n)}}}function Nr(s){let e;const l=s[2].leading,t=ee(l,s,s[4],cl);return{c(){t&&t.c()},l(n){t&&t.l(n)},m(n,r){t&&t.m(n,r),e=!0},p(n,r){t&&t.p&&(!e||r&16)&&te(t,l,n,n[4],e?ne(l,n[4],r,Tr):le(n[4]),cl)},i(n){e||(p(t,n),e=!0)},o(n){g(t,n),e=!1},d(n){t&&t.d(n)}}}function Dr(s){let e;const l=s[2].trailing,t=ee(l,s,s[4],ml);return{c(){t&&t.c()},l(n){t&&t.l(n)},m(n,r){t&&t.m(n,r),e=!0},p(n,r){t&&t.p&&(!e||r&16)&&te(t,l,n,n[4],e?ne(l,n[4],r,Lr):le(n[4]),ml)},i(n){e||(p(t,n),e=!0)},o(n){g(t,n),e=!1},d(n){t&&t.d(n)}}}function Sr(s){let e,l;return e=new Ue({props:{role:"option",class:"break-all","aria-selected":s[0],"aria-disabled":s[1],disabled:s[1],selected:s[0],$$slots:{trailing:[Dr],leading:[Nr],default:[Vr]},$$scope:{ctx:s}}}),e.$on("click",s[3]),{c(){D(e.$$.fragment)},l(t){S(e.$$.fragment,t)},m(t,n){B(e,t,n),l=!0},p(t,[n]){const r={};n&1&&(r["aria-selected"]=t[0]),n&2&&(r["aria-disabled"]=t[1]),n&2&&(r.disabled=t[1]),n&1&&(r.selected=t[0]),n&16&&(r.$$scope={dirty:n,ctx:t}),e.$set(r)},i(t){l||(p(e.$$.fragment,t),l=!0)},o(t){g(e.$$.fragment,t),l=!1},d(t){z(e,t)}}}function Br(s,e,l){let{$$slots:t={},$$scope:n}=e,{selected:r=!1}=e,{disabled:o=!1}=e;function a(i){Fe.call(this,s,i)}return s.$$set=i=>{"selected"in i&&l(0,r=i.selected),"disabled"in i&&l(1,o=i.disabled),"$$scope"in i&&l(4,n=i.$$scope)},[r,o,t,a,n]}class wt extends ae{constructor(e){super(),fe(this,e,Br,Sr,ue,{selected:0,disabled:1})}}function dl(s,e,l){const t=s.slice();return t[48]=e[l],t}const zr=s=>({option:s[0]&131072}),_l=s=>({option:s[22](s[48])});function pl(s){let e,l;return e=new Ie({props:{width:20,height:20,class:"ml-2 shrink-0 text-gray-500",name:s[11]}}),{c(){D(e.$$.fragment)},l(t){S(e.$$.fragment,t)},m(t,n){B(e,t,n),l=!0},p(t,n){const r={};n[0]&2048&&(r.name=t[11]),e.$set(r)},i(t){l||(p(e.$$.fragment,t),l=!0)},o(t){g(e.$$.fragment,t),l=!1},d(t){z(e,t)}}}function gl(s){let e,l;return e=new wt({props:{disabled:!0,$$slots:{default:[Or]},$$scope:{ctx:s}}}),{c(){D(e.$$.fragment)},l(t){S(e.$$.fragment,t)},m(t,n){B(e,t,n),l=!0},p(t,n){const r={};n[0]&32|n[1]&1024&&(r.$$scope={dirty:n,ctx:t}),e.$set(r)},i(t){l||(p(e.$$.fragment,t),l=!0)},o(t){g(e.$$.fragment,t),l=!1},d(t){z(e,t)}}}function Or(s){let e;return{c(){e=Q(s[5])},l(l){e=X(l,s[5])},m(l,t){C(l,e,t)},p(l,t){t[0]&32&&pe(e,l[5])},d(l){l&&_(e)}}}function Ar(s){let e,l,t,n,r;const o=[jr,qr],a=[];function i(f,u){return u[0]&131072&&(e=null),e==null&&(e=!!f[25](f[48])),e?0:1}return l=i(s,[-1,-1]),t=a[l]=o[l](s),{c(){t.c(),n=ie()},l(f){t.l(f),n=ie()},m(f,u){a[l].m(f,u),C(f,n,u),r=!0},p(f,u){let c=l;l=i(f,u),l===c?a[l].p(f,u):(ce(),g(a[c],1,1,()=>{a[c]=null}),me(),t=a[l],t?t.p(f,u):(t=a[l]=o[l](f),t.c()),p(t,1),t.m(n.parentNode,n))},i(f){r||(p(t),r=!0)},o(f){g(t),r=!1},d(f){a[l].d(f),f&&_(n)}}}function Rr(s){let e,l;function t(){return s[38](s[48])}return e=new wt({props:{selected:s[0]===s[48],$$slots:{default:[Fr]},$$scope:{ctx:s}}}),e.$on("click",t),{c(){D(e.$$.fragment)},l(n){S(e.$$.fragment,n)},m(n,r){B(e,n,r),l=!0},p(n,r){s=n;const o={};r[0]&131073&&(o.selected=s[0]===s[48]),r[0]&131072|r[1]&1024&&(o.$$scope={dirty:r,ctx:s}),e.$set(o)},i(n){l||(p(e.$$.fragment,n),l=!0)},o(n){g(e.$$.fragment,n),l=!1},d(n){z(e,n)}}}function qr(s){let e;const l=s[36].default,t=ee(l,s,s[41],_l);return{c(){t&&t.c()},l(n){t&&t.l(n)},m(n,r){t&&t.m(n,r),e=!0},p(n,r){t&&t.p&&(!e||r[0]&131072|r[1]&1024)&&te(t,l,n,n[41],e?ne(l,n[41],r,zr):le(n[41]),_l)},i(n){e||(p(t,n),e=!0)},o(n){g(t,n),e=!1},d(n){t&&t.d(n)}}}function jr(s){let e,l;function t(){return s[39](s[48])}return e=new wt({props:{selected:s[0]===s[48][s[12]],$$slots:{default:[Pr]},$$scope:{ctx:s}}}),e.$on("click",t),{c(){D(e.$$.fragment)},l(n){S(e.$$.fragment,n)},m(n,r){B(e,n,r),l=!0},p(n,r){s=n;const o={};r[0]&135169&&(o.selected=s[0]===s[48][s[12]]),r[0]&139264|r[1]&1024&&(o.$$scope={dirty:r,ctx:s}),e.$set(o)},i(n){l||(p(e.$$.fragment,n),l=!0)},o(n){g(e.$$.fragment,n),l=!1},d(n){z(e,n)}}}function Pr(s){let e=s[48][s[13]]+"",l,t;return{c(){l=Q(e),t=P()},l(n){l=X(n,e),t=F(n)},m(n,r){C(n,l,r),C(n,t,r)},p(n,r){r[0]&139264&&e!==(e=n[48][n[13]]+"")&&pe(l,e)},d(n){n&&_(l),n&&_(t)}}}function Fr(s){let e=s[48]+"",l,t;return{c(){l=Q(e),t=P()},l(n){l=X(n,e),t=F(n)},m(n,r){C(n,l,r),C(n,t,r)},p(n,r){r[0]&131072&&e!==(e=n[48]+"")&&pe(l,e)},d(n){n&&_(l),n&&_(t)}}}function hl(s){let e,l,t,n,r,o;const a=[Rr,Ar],i=[];function f(u,c){return c[0]&131072&&(e=null),c[0]&131072&&(l=null),e==null&&(e=!!u[23](u[48])),e?0:(l==null&&(l=!!u[24](u[48])),l?1:-1)}return~(t=f(s,[-1,-1]))&&(n=i[t]=a[t](s)),{c(){n&&n.c(),r=ie()},l(u){n&&n.l(u),r=ie()},m(u,c){~t&&i[t].m(u,c),C(u,r,c),o=!0},p(u,c){let m=t;t=f(u,c),t===m?~t&&i[t].p(u,c):(n&&(ce(),g(i[m],1,1,()=>{i[m]=null}),me()),~t?(n=i[t],n?n.p(u,c):(n=i[t]=a[t](u),n.c()),p(n,1),n.m(r.parentNode,r)):n=null)},i(u){o||(p(n),o=!0)},o(u){g(n),o=!1},d(u){~t&&i[t].d(u),u&&_(r)}}}function Hr(s){let e,l,t=s[17],n=[];for(let a=0;ag(n[a],1,1,()=>{n[a]=null});let o=null;return t.length||(o=gl(s)),{c(){for(let a=0;a{o=null}),me()):(o=gl(a),o.c(),p(o,1),o.m(e.parentNode,e))}},i(a){if(!l){for(let i=0;iNe(E,"menuElement",O)),{c(){e=A("label"),l=Q(s[3]),t=P(),n=A("div"),w&&w.c(),r=P(),o=A("input"),u=P(),c=A("button"),D(m.$$.fragment),b=P(),D(E.$$.fragment),this.h()},l(v){e=R(v,"LABEL",{class:!0,for:!0});var M=q(e);l=X(M,s[3]),M.forEach(_),t=F(v),n=R(v,"DIV",{class:!0});var K=q(n);w&&w.l(K),r=F(K),o=R(K,"INPUT",{id:!0,placeholder:!0,type:!0,class:!0,role:!0,autocomplete:!0,autocapitalize:!0,spellcheck:!0,"data-lpignore":!0,"aria-controls":!0,"aria-expanded":!0,"aria-required":!0,"aria-autocomplete":!0,"data-testid":!0}),u=F(K),c=R(K,"BUTTON",{"aria-label":!0,class:!0,tabindex:!0,"aria-controls":!0,"aria-expanded":!0});var J=q(c);S(m.$$.fragment,J),J.forEach(_),K.forEach(_),b=F(v),S(E.$$.fragment,v),this.h()},h(){$(e,"class","combobox-label svelte-1nqx354"),$(e,"for",s[2]),G(e,"sr-only",s[7]),tt(o,W),G(o,"disabled",s[6]),G(o,"svelte-1nqx354",!0),$(c,"aria-label",s[4]),$(c,"class","combobox-button svelte-1nqx354"),$(c,"tabindex",-1),$(c,"aria-controls",d=s[2]+"-listbox"),$(c,"aria-expanded",s[18]),$(n,"class","combobox-wrapper svelte-1nqx354")},m(v,M){C(v,e,M),V(e,l),C(v,t,M),C(v,n,M),w&&w.m(n,null),V(n,r),V(n,o),o.value=W.value,o.autofocus&&o.focus(),s[37](o),V(n,u),V(n,c),B(m,c,null),C(v,b,M),B(E,v,M),k=!0,I||(N=[ve(o,"input",et(s[28])),ve(o,"keydown",et(s[27])),ve(o,"click",et(s[29])),ve(c,"click",s[20])],I=!0)},p(v,M){(!k||M[0]&8)&&pe(l,v[3]),(!k||M[0]&4)&&$(e,"for",v[2]),(!k||M[0]&128)&&G(e,"sr-only",v[7]),v[11]?w?(w.p(v,M),M[0]&2048&&p(w,1)):(w=pl(v),w.c(),p(w,1),w.m(n,r)):w&&(ce(),g(w,1,1,()=>{w=null}),me()),tt(o,W=ht(T,[(!k||M[0]&4)&&{id:v[2]},(!k||M[0]&256)&&{placeholder:v[8]},(!k||M[0]&1024)&&{required:v[10]},(!k||M[0]&512)&&{readOnly:v[9]},(!k||M[0]&64)&&{disabled:v[6]},{type:"text"},(!k||M[0]&16384&&o.value!==v[14])&&{value:v[14]},(!k||M[0]&2&&a!==(a="combobox-input "+v[1]))&&{class:a},{role:"combobox"},{autocomplete:"off"},{autocapitalize:"off"},{spellcheck:"false"},{"data-lpignore":"true"},(!k||M[0]&4&&i!==(i=v[2]+"-listbox"))&&{"aria-controls":i},(!k||M[0]&262144)&&{"aria-expanded":v[18]},(!k||M[0]&1024)&&{"aria-required":v[10]},{"aria-autocomplete":"list"},(!k||M[0]&1073741828&&f!==(f=v[30]["data-testid"]??v[2]))&&{"data-testid":f},M[1]&1&&v[31]])),"value"in W&&(o.value=W.value),G(o,"disabled",v[6]),G(o,"svelte-1nqx354",!0);const K={};M[0]&262144&&(K.name=v[18]?"chevron-up":"chevron-down"),m.$set(K),(!k||M[0]&16)&&$(c,"aria-label",v[4]),(!k||M[0]&4&&d!==(d=v[2]+"-listbox"))&&$(c,"aria-controls",d),(!k||M[0]&262144)&&$(c,"aria-expanded",v[18]);const J={};M[0]&4&&(J.id=v[2]+"-listbox"),M[0]&143393|M[1]&1024&&(J.$$scope={dirty:M,ctx:v}),!h&&M[0]&65536&&(h=!0,J.menuElement=v[16],De(()=>h=!1)),E.$set(J)},i(v){k||(p(w),p(m.$$.fragment,v),p(E.$$.fragment,v),k=!0)},o(v){g(w),g(m.$$.fragment,v),g(E.$$.fragment,v),k=!1},d(v){v&&_(e),v&&_(t),v&&_(n),w&&w.d(),s[37](null),z(m),v&&_(b),z(E,v),I=!1,pt(N)}}}function Ur(s){let e,l;return e=new vt({props:{open:s[19],$$slots:{default:[Mr]},$$scope:{ctx:s}}}),e.$on("close",s[21]),{c(){D(e.$$.fragment)},l(t){S(e.$$.fragment,t)},m(t,n){B(e,t,n),l=!0},p(t,n){const r={};n[0]&1074266111|n[1]&1025&&(r.$$scope={dirty:n,ctx:t}),e.$set(r)},i(t){l||(p(e.$$.fragment,t),l=!0)},o(t){g(e.$$.fragment,t),l=!1},d(t){z(e,t)}}}function Kr(s,e,l){let t;const n=["class","id","label","value","toggleLabel","noResultsText","disabled","labelHidden","options","placeholder","readonly","required","leadingIcon","optionValueKey","optionLabelKey","minSize","maxSize"];let r=Me(e,n),o,{$$slots:a={},$$scope:i}=e;const f=Sl();let{class:u=""}=e,{id:c}=e,{label:m}=e,{value:d=void 0}=e,{toggleLabel:b}=e,{noResultsText:E}=e,{disabled:h=!1}=e,{labelHidden:k=!1}=e,{options:I}=e,{placeholder:N=null}=e,{readonly:w=!1}=e,{required:T=!1}=e,{leadingIcon:W=null}=e,{optionValueKey:O=null}=e,{optionLabelKey:U=O}=e,{minSize:v=0}=e,{maxSize:M=120}=e,K,J,Ee,ge;const Te=Ke(!1);oe(s,Te,L=>l(18,o=L));const he=()=>{o?_e():Ce()},Ce=()=>{de(Te,o=!0,o),ge.focus(),ge.select()},_e=()=>{o&&(de(Te,o=!1,o),Z())},Z=()=>{l(14,K=$e(J)),l(17,t=I)},Y=L=>L,y=L=>typeof L=="string",be=L=>typeof L=="object",re=L=>L===null||typeof L!="object"?!1:O!==null&&U!==null&&O in L&&U in L,$e=L=>{if(!L)return d??"";if(y(L))return L;if(be(L)&&re(L))return String(L[U])},ke=L=>{y(L)&&l(0,d=L),be(L)&&re(L)&&l(0,d=String(L[O]))},H=L=>{f("change",L),ke(L),Z()},x=()=>{const L=Ee.querySelector('li[role="option"]:not([aria-disabled="true"])');L&&requestAnimationFrame(()=>L.focus())},Ve=L=>{switch(L.key){case"Escape":_e();break;case"ArrowDown":Ce(),x();break;case"Enter":Ce(),x();break}},Ae=L=>{l(14,K=L.currentTarget.value),f("filter",K),o||Ce(),l(17,t=I.filter(Be=>{if(y(Be))return Be.toLowerCase().includes(L.currentTarget.value.toLowerCase());if(be(Be)&&re(Be))return String(Be[U]).toLowerCase().includes(L.currentTarget.value.toLowerCase())}))},Ge=()=>{o||Ce()};function Pe(L){Le[L?"unshift":"push"](()=>{ge=L,l(15,ge),l(14,K),l(33,v),l(34,M),l(32,I),l(0,d),l(12,O),l(35,J)})}const Se=L=>H(L),Qe=L=>H(L);function Xe(L){Ee=L,l(16,Ee)}return s.$$set=L=>{l(30,e=we(we({},e),Oe(L))),l(31,r=Me(e,n)),"class"in L&&l(1,u=L.class),"id"in L&&l(2,c=L.id),"label"in L&&l(3,m=L.label),"value"in L&&l(0,d=L.value),"toggleLabel"in L&&l(4,b=L.toggleLabel),"noResultsText"in L&&l(5,E=L.noResultsText),"disabled"in L&&l(6,h=L.disabled),"labelHidden"in L&&l(7,k=L.labelHidden),"options"in L&&l(32,I=L.options),"placeholder"in L&&l(8,N=L.placeholder),"readonly"in L&&l(9,w=L.readonly),"required"in L&&l(10,T=L.required),"leadingIcon"in L&&l(11,W=L.leadingIcon),"optionValueKey"in L&&l(12,O=L.optionValueKey),"optionLabelKey"in L&&l(13,U=L.optionLabelKey),"minSize"in L&&l(33,v=L.minSize),"maxSize"in L&&l(34,M=L.maxSize),"$$scope"in L&&l(41,i=L.$$scope)},s.$$.update=()=>{s.$$.dirty[1]&2&&l(17,t=I),s.$$.dirty[0]&4097|s.$$.dirty[1]&18&&(l(35,J=I.find(L=>{if(y(L))return L===d;if(be(L)&&re(L))return L[O]===d})),l(14,K=$e(J))),s.$$.dirty[0]&49152|s.$$.dirty[1]&12&&ge&&K&&(K.lengthM?l(15,ge.size=M,ge):l(15,ge.size=K.length,ge))},e=Oe(e),[d,u,c,m,b,E,h,k,N,w,T,W,O,U,K,ge,Ee,t,o,Te,he,Z,Y,y,be,re,H,Ve,Ae,Ge,e,r,I,v,M,J,a,Pe,Se,Qe,Xe,i]}class Wr extends ae{constructor(e){super(),fe(this,e,Kr,Ur,ue,{class:1,id:2,label:3,value:0,toggleLabel:4,noResultsText:5,disabled:6,labelHidden:7,options:32,placeholder:8,readonly:9,required:10,leadingIcon:11,optionValueKey:12,optionLabelKey:13,minSize:33,maxSize:34},null,[-1,-1])}}function bl(s){let e,l;return e=new Wr({props:{label:j("namespaces.namespace-label",{namespace:s[3]}),toggleLabel:j("common.namespaces"),noResultsText:j("common.no-results"),labelHidden:!0,value:s[3],id:"namespace-switcher",leadingIcon:"namespace-switcher",options:s[1],optionValueKey:"namespace",minSize:32}}),e.$on("change",s[10]),{c(){D(e.$$.fragment)},l(t){S(e.$$.fragment,t)},m(t,n){B(e,t,n),l=!0},p(t,n){const r={};n&8&&(r.label=j("namespaces.namespace-label",{namespace:t[3]})),n&8&&(r.value=t[3]),n&2&&(r.options=t[1]),e.$set(r)},i(t){l||(p(e.$$.fragment,t),l=!0)},o(t){g(e.$$.fragment,t),l=!1},d(t){z(e,t)}}}function $l(s){let e,l;return e=new pr({}),{c(){D(e.$$.fragment)},l(t){S(e.$$.fragment,t)},m(t,n){B(e,t,n),l=!0},i(t){l||(p(e.$$.fragment,t),l=!0)},o(t){g(e.$$.fragment,t),l=!1},d(t){z(e,t)}}}function vl(s){let e,l;return e=new vt({props:{$$slots:{default:[Jr]},$$scope:{ctx:s}}}),{c(){D(e.$$.fragment)},l(t){S(e.$$.fragment,t)},m(t,n){B(e,t,n),l=!0},p(t,n){const r={};n&33061&&(r.$$scope={dirty:n,ctx:t}),e.$set(r)},i(t){l||(p(e.$$.fragment,t),l=!0)},o(t){g(e.$$.fragment,t),l=!1},d(t){z(e,t)}}}function kl(s){var n;let e,l=((n=s[8])==null?void 0:n.name.trim().charAt(0))+"",t;return{c(){e=A("div"),t=Q(l),this.h()},l(r){e=R(r,"DIV",{class:!0});var o=q(e);t=X(o,l),o.forEach(_),this.h()},h(){$(e,"class","text-center text-sm text-black")},m(r,o){C(r,e,o),V(e,t)},p(r,o){var a;o&256&&l!==(l=((a=r[8])==null?void 0:a.name.trim().charAt(0))+"")&&pe(t,l)},d(r){r&&_(e)}}}function Zr(s){var f;let e,l,t,n,r,o,a,i=((f=s[8])==null?void 0:f.name)&&kl(s);return{c(){e=A("img"),n=P(),r=A("div"),i&&i.c(),this.h()},l(u){e=R(u,"IMG",{src:!0,alt:!0,class:!0}),n=F(u),r=R(u,"DIV",{class:!0});var c=q(r);i&&i.l(c),c.forEach(_),this.h()},h(){var u,c;Vt(e.src,l=(u=s[8])==null?void 0:u.picture)||$(e,"src",l),$(e,"alt",t=((c=s[8])==null?void 0:c.profile)??j("common.user-profile")),$(e,"class","h-[24px] w-[24px] cursor-pointer rounded-md"),G(e,"hidden",!s[5]),$(r,"class","aspect-square h-full w-[24px] rounded-md bg-blue-200 p-0.5"),G(r,"hidden",s[5])},m(u,c){C(u,e,c),C(u,n,c),C(u,r,c),i&&i.m(r,null),o||(a=ve(e,"error",s[9]),o=!0)},p(u,c){var m,d,b;c&256&&!Vt(e.src,l=(m=u[8])==null?void 0:m.picture)&&$(e,"src",l),c&256&&t!==(t=((d=u[8])==null?void 0:d.profile)??j("common.user-profile"))&&$(e,"alt",t),c&32&&G(e,"hidden",!u[5]),(b=u[8])!=null&&b.name?i?i.p(u,c):(i=kl(u),i.c(),i.m(r,null)):i&&(i.d(1),i=null),c&32&&G(r,"hidden",u[5])},d(u){u&&_(e),u&&_(n),u&&_(r),i&&i.d(),o=!1,a()}}}function Gr(s){let e=s[8].email+"",l;return{c(){l=Q(e)},l(t){l=X(t,e)},m(t,n){C(t,l,n)},p(t,n){n&256&&e!==(e=t[8].email+"")&&pe(l,e)},d(t){t&&_(l)}}}function Qr(s){let e=j("common.log-out")+"",l;return{c(){l=Q(e)},l(t){l=X(t,e)},m(t,n){C(t,l,n)},p:se,d(t){t&&_(l)}}}function Xr(s){let e,l,t,n;return e=new Ue({props:{href:s[2],disabled:!s[2],$$slots:{default:[Gr]},$$scope:{ctx:s}}}),t=new Ue({props:{$$slots:{default:[Qr]},$$scope:{ctx:s}}}),t.$on("click",function(){bt(s[0])&&s[0].apply(this,arguments)}),{c(){D(e.$$.fragment),l=P(),D(t.$$.fragment)},l(r){S(e.$$.fragment,r),l=F(r),S(t.$$.fragment,r)},m(r,o){B(e,r,o),C(r,l,o),B(t,r,o),n=!0},p(r,o){s=r;const a={};o&4&&(a.href=s[2]),o&4&&(a.disabled=!s[2]),o&33024&&(a.$$scope={dirty:o,ctx:s}),e.$set(a);const i={};o&32768&&(i.$$scope={dirty:o,ctx:s}),t.$set(i)},i(r){n||(p(e.$$.fragment,r),p(t.$$.fragment,r),n=!0)},o(r){g(e.$$.fragment,r),g(t.$$.fragment,r),n=!1},d(r){z(e,r),r&&_(l),z(t,r)}}}function Jr(s){let e,l,t,n;return e=new Bl({props:{variant:"ghost",hasIndicator:!0,controls:"user-menu",$$slots:{default:[Zr]},$$scope:{ctx:s}}}),t=new kt({props:{id:"user-menu",position:"right",$$slots:{default:[Xr]},$$scope:{ctx:s}}}),{c(){D(e.$$.fragment),l=P(),D(t.$$.fragment)},l(r){S(e.$$.fragment,r),l=F(r),S(t.$$.fragment,r)},m(r,o){B(e,r,o),C(r,l,o),B(t,r,o),n=!0},p(r,o){const a={};o&33056&&(a.$$scope={dirty:o,ctx:r}),e.$set(a);const i={};o&33029&&(i.$$scope={dirty:o,ctx:r}),t.$set(i)},i(r){n||(p(e.$$.fragment,r),p(t.$$.fragment,r),n=!0)},o(r){g(e.$$.fragment,r),g(t.$$.fragment,r),n=!1},d(r){z(e,r),r&&_(l),z(t,r)}}}function Yr(s){let e,l,t,n,r,o,a,i,f,u;gt(s[13]);let c=s[6]&&bl(s);r=new Ir({props:{position:s[4]<768?"left":"right"}});let m=s[6]&&$l(),d=s[8].accessToken&&vl(s);return{c(){e=A("nav"),l=A("div"),c&&c.c(),t=P(),n=A("div"),D(r.$$.fragment),o=P(),m&&m.c(),a=P(),d&&d.c(),this.h()},l(b){e=R(b,"NAV",{class:!0,"data-testid":!0,"aria-label":!0});var E=q(e);l=R(E,"DIV",{class:!0});var h=q(l);c&&c.l(h),h.forEach(_),t=F(E),n=R(E,"DIV",{class:!0});var k=q(n);S(r.$$.fragment,k),o=F(k),m&&m.l(k),a=F(k),d&&d.l(k),k.forEach(_),E.forEach(_),this.h()},h(){$(l,"class","flex grow items-center"),$(n,"class","flex items-center gap-2"),$(e,"class","sticky top-0 z-40 flex w-full flex-col items-center justify-end border-b-2 bg-gray-100 p-1 px-4 md:flex-row md:px-8"),$(e,"data-testid","top-nav"),$(e,"aria-label",j("common.main")),G(e,"bg-red-50",s[7].hasError&&s[6])},m(b,E){C(b,e,E),V(e,l),c&&c.m(l,null),V(e,t),V(e,n),B(r,n,null),V(n,o),m&&m.m(n,null),V(n,a),d&&d.m(n,null),i=!0,f||(u=ve(window,"resize",s[13]),f=!0)},p(b,[E]){b[6]?c?(c.p(b,E),E&64&&p(c,1)):(c=bl(b),c.c(),p(c,1),c.m(l,null)):c&&(ce(),g(c,1,1,()=>{c=null}),me());const h={};E&16&&(h.position=b[4]<768?"left":"right"),r.$set(h),b[6]?m?E&64&&p(m,1):(m=$l(),m.c(),p(m,1),m.m(n,a)):m&&(ce(),g(m,1,1,()=>{m=null}),me()),b[8].accessToken?d?(d.p(b,E),E&256&&p(d,1)):(d=vl(b),d.c(),p(d,1),d.m(n,null)):d&&(ce(),g(d,1,1,()=>{d=null}),me()),(!i||E&192)&&G(e,"bg-red-50",b[7].hasError&&b[6])},i(b){i||(p(c),p(r.$$.fragment,b),p(m),p(d),i=!0)},o(b){g(c),g(r.$$.fragment,b),g(m),g(d),i=!1},d(b){b&&_(e),c&&c.d(),z(r),m&&m.d(),d&&d.d(),f=!1,u()}}}function yr(s,e,l){let t,n,r,o,a,i,f;oe(s,lt,I=>l(14,o=I)),oe(s,qe,I=>l(12,a=I)),oe(s,Al,I=>l(7,i=I)),oe(s,Vl,I=>l(8,f=I));let{logout:u}=e,{namespaceList:c=[]}=e,{userEmaiLink:m=""}=e,d,b=!0;function E(){l(5,b=!1)}const h=I=>{const N=I.detail;de(lt,o=N.namespace,o),N==null||N.onClick(N.namespace)};function k(){l(4,d=window.innerWidth)}return s.$$set=I=>{"logout"in I&&l(0,u=I.logout),"namespaceList"in I&&l(1,c=I.namespaceList),"userEmaiLink"in I&&l(2,m=I.userEmaiLink)},s.$$.update=()=>{s.$$.dirty&4096&&l(3,t=a.params.namespace),s.$$.dirty&4096&&l(11,n=a.url.pathname.split("/")),s.$$.dirty&2056&&l(6,r=t&&(n.includes("workflows")||n.includes("schedules")||n.includes("batch-operations")||n.includes("task-queues")||n.includes("import")))},[u,c,m,t,d,b,r,i,f,E,h,n,a,k]}class xr extends ae{constructor(e){super(),fe(this,e,yr,Yr,ue,{logout:0,namespaceList:1,userEmaiLink:2})}}function eo(s){let e;const l=s[5].default,t=ee(l,s,s[4],null);return{c(){t&&t.c()},l(n){t&&t.l(n)},m(n,r){t&&t.m(n,r),e=!0},p(n,r){t&&t.p&&(!e||r&16)&&te(t,l,n,n[4],e?ne(l,n[4],r,null):le(n[4]),null)},i(n){e||(p(t,n),e=!0)},o(n){g(t,n),e=!1},d(n){t&&t.d(n)}}}function to(s){let e,l,t=s[1].message+"",n,r,o,a,i=(s[2]?s[1].stack:"")+"",f,u;return{c(){e=A("div"),l=A("b"),n=Q(t),r=P(),o=A("pre"),a=Q(" "),f=Q(i),u=Q(` `),this.h()},l(c){e=R(c,"DIV",{class:!0});var m=q(e);l=R(m,"B",{});var d=q(l);n=X(d,t),d.forEach(_),r=F(m),o=R(m,"PRE",{class:!0});var b=q(o);a=X(b," "),f=X(b,i),u=X(b,` diff --git a/ui/assets/local/_app/immutable/nodes/20.a37e085d.js b/ui/assets/local/_app/immutable/nodes/20.a0778a28.js similarity index 96% rename from ui/assets/local/_app/immutable/nodes/20.a37e085d.js rename to ui/assets/local/_app/immutable/nodes/20.a0778a28.js index 60e4a1af92..d6501179b9 100644 --- a/ui/assets/local/_app/immutable/nodes/20.a37e085d.js +++ b/ui/assets/local/_app/immutable/nodes/20.a0778a28.js @@ -1 +1 @@ -import{S as Q,b as V,a as W,C as d,D as w,E as v,j as _,g as h,F as k,K as R,e as U,f as p,z as J,h as M,a7 as se,k as m,m as B,w as F,p as D,q as j,x as H,u as g,L as S,n as E,c as P,d as C,y as G,ar as X,as as ne}from"../chunks/index.4e2fcbc7.js";import{p as oe}from"../chunks/stores.14a97433.js";import{P as fe}from"../chunks/page-title.f9a44b80.js";import{t as L}from"../chunks/translate.d23a91ae.js";import{B as ie}from"../chunks/badge.96e01a15.js";import{E as Y}from"../chunks/empty-state.721f6c59.js";import{L as ce}from"../chunks/link.6803bb00.js";import{T as me,a as ue}from"../chunks/table-header-row.fec98b60.js";import{T as re}from"../chunks/table-row.0fafe278.js";import{t as pe,r as $e,b as K}from"../chunks/time-format.88312c30.js";import{p as Z}from"../chunks/route-for.80613b91.js";import{A as _e}from"../chunks/alert.9612e524.js";import{L as he}from"../chunks/loading.95801385.js";import{l as y,i as be}from"../chunks/batch-operations.79b667c0.js";function x(n,t,l){const e=n.slice();return e[5]=t[l].state,e[6]=t[l].jobId,e[7]=t[l].startTime,e[8]=t[l].closeTime,e}function ee(n){let t,l;return t=new re({props:{$$slots:{default:[ge]},$$scope:{ctx:n}}}),{c(){d(t.$$.fragment)},l(e){w(t.$$.fragment,e)},m(e,a){v(t,e,a),l=!0},p(e,a){const r={};a&2048&&(r.$$scope={dirty:a,ctx:e}),t.$set(r)},i(e){l||(_(t.$$.fragment,e),l=!0)},o(e){h(t.$$.fragment,e),l=!1},d(e){k(t,e)}}}function ge(n){let t,l,e,a,r,c,f;return l=new Y({props:{title:L("batch.empty-state-title")}}),r=new Y({props:{title:L("batch.empty-state-title")}}),{c(){t=B("td"),d(l.$$.fragment),e=P(),a=B("td"),d(r.$$.fragment),c=P(),this.h()},l(s){t=D(s,"TD",{class:!0,colspan:!0});var i=j(t);w(l.$$.fragment,i),i.forEach(m),e=C(s),a=D(s,"TD",{class:!0,colspan:!0});var $=j(a);w(r.$$.fragment,$),$.forEach(m),c=C(s),this.h()},h(){g(t,"class","max-sm:hidden"),g(t,"colspan","4"),g(a,"class","sm:hidden"),g(a,"colspan","2")},m(s,i){p(s,t,i),v(l,t,null),p(s,e,i),p(s,a,i),v(r,a,null),p(s,c,i),f=!0},p:E,i(s){f||(_(l.$$.fragment,s),_(r.$$.fragment,s),f=!0)},o(s){h(l.$$.fragment,s),h(r.$$.fragment,s),f=!1},d(s){s&&m(t),k(l),s&&m(e),s&&m(a),k(r),s&&m(c)}}}function de(n){let t=n[5]+"",l;return{c(){l=F(t)},l(e){l=H(e,t)},m(e,a){p(e,l,a)},p(e,a){a&2&&t!==(t=e[5]+"")&&G(l,t)},d(e){e&&m(l)}}}function we(n){let t=n[6]+"",l;return{c(){l=F(t)},l(e){l=H(e,t)},m(e,a){p(e,l,a)},p(e,a){a&2&&t!==(t=e[6]+"")&&G(l,t)},d(e){e&&m(l)}}}function ve(n){let t,l,e,a,r,c,f,s=K(n[7],n[2],{relative:n[3]})+"",i,$,b,N=K(n[8],n[2],{relative:n[3]})+"",T,q,O;return l=new ie({props:{type:n[4][n[5]],$$slots:{default:[de]},$$scope:{ctx:n}}}),r=new ce({props:{href:Z({namespace:n[0],jobId:n[6]}),$$slots:{default:[we]},$$scope:{ctx:n}}}),{c(){t=B("td"),d(l.$$.fragment),e=P(),a=B("td"),d(r.$$.fragment),c=P(),f=B("td"),i=F(s),$=P(),b=B("td"),T=F(N),q=P(),this.h()},l(o){t=D(o,"TD",{});var u=j(t);w(l.$$.fragment,u),u.forEach(m),e=C(o),a=D(o,"TD",{});var I=j(a);w(r.$$.fragment,I),I.forEach(m),c=C(o),f=D(o,"TD",{class:!0});var A=j(f);i=H(A,s),A.forEach(m),$=C(o),b=D(o,"TD",{class:!0});var z=j(b);T=H(z,N),z.forEach(m),q=C(o),this.h()},h(){g(f,"class","max-sm:hidden"),g(b,"class","max-sm:hidden")},m(o,u){p(o,t,u),v(l,t,null),p(o,e,u),p(o,a,u),v(r,a,null),p(o,c,u),p(o,f,u),S(f,i),p(o,$,u),p(o,b,u),S(b,T),p(o,q,u),O=!0},p(o,u){const I={};u&2&&(I.type=o[4][o[5]]),u&2050&&(I.$$scope={dirty:u,ctx:o}),l.$set(I);const A={};u&3&&(A.href=Z({namespace:o[0],jobId:o[6]})),u&2050&&(A.$$scope={dirty:u,ctx:o}),r.$set(A),(!O||u&14)&&s!==(s=K(o[7],o[2],{relative:o[3]})+"")&&G(i,s),(!O||u&14)&&N!==(N=K(o[8],o[2],{relative:o[3]})+"")&&G(T,N)},i(o){O||(_(l.$$.fragment,o),_(r.$$.fragment,o),O=!0)},o(o){h(l.$$.fragment,o),h(r.$$.fragment,o),O=!1},d(o){o&&m(t),k(l),o&&m(e),o&&m(a),k(r),o&&m(c),o&&m(f),o&&m($),o&&m(b),o&&m(q)}}}function te(n){let t,l;return t=new re({props:{$$slots:{default:[ve]},$$scope:{ctx:n}}}),{c(){d(t.$$.fragment)},l(e){w(t.$$.fragment,e)},m(e,a){v(t,e,a),l=!0},p(e,a){const r={};a&2063&&(r.$$scope={dirty:a,ctx:e}),t.$set(r)},i(e){l||(_(t.$$.fragment,e),l=!0)},o(e){h(t.$$.fragment,e),l=!1},d(e){k(t,e)}}}function ke(n){let t,l,e=n[1],a=[];for(let f=0;fh(a[f],1,1,()=>{a[f]=null});let c=null;return e.length||(c=ee(n)),{c(){for(let f=0;f{c=null}),M()):(c=ee(f),c.c(),_(c,1),c.m(t.parentNode,t))}},i(f){if(!l){for(let s=0;sl(2,e=s)),R(n,$e,s=>l(3,a=s));let{namespace:r}=t,{operations:c}=t;const f={Completed:"green",Running:"blue",Failed:"red",Unspecified:"gray"};return n.$$set=s=>{"namespace"in s&&l(0,r=s.namespace),"operations"in s&&l(1,c=s.operations)},[r,c,e,a,f]}class Pe extends Q{constructor(t){super(),V(this,t,je,De,W,{namespace:0,operations:1})}}function ae(n){n[2]=n[3].operations}function Ce(n){return{c:E,l:E,m:E,p:E,i:E,o:E,d:E}}function Fe(n){ae(n);let t,l,e,a=n[1]&&le(n);return l=new Pe({props:{operations:n[2],namespace:n[0]}}),{c(){a&&a.c(),t=P(),d(l.$$.fragment)},l(r){a&&a.l(r),t=C(r),w(l.$$.fragment,r)},m(r,c){a&&a.m(r,c),p(r,t,c),v(l,r,c),e=!0},p(r,c){ae(r),r[1]?a?(a.p(r,c),c&2&&_(a,1)):(a=le(r),a.c(),_(a,1),a.m(t.parentNode,t)):a&&(J(),h(a,1,1,()=>{a=null}),M());const f={};c&1&&(f.operations=r[2]),c&1&&(f.namespace=r[0]),l.$set(f)},i(r){e||(_(a),_(l.$$.fragment,r),e=!0)},o(r){h(a),h(l.$$.fragment,r),e=!1},d(r){a&&a.d(r),r&&m(t),k(l,r)}}}function le(n){let t,l;return t=new _e({props:{icon:"info",intent:"info",title:L("batch.max-concurrent-alert-title"),$$slots:{default:[He]},$$scope:{ctx:n}}}),{c(){d(t.$$.fragment)},l(e){w(t.$$.fragment,e)},m(e,a){v(t,e,a),l=!0},p(e,a){const r={};a&16&&(r.$$scope={dirty:a,ctx:e}),t.$set(r)},i(e){l||(_(t.$$.fragment,e),l=!0)},o(e){h(t.$$.fragment,e),l=!1},d(e){k(t,e)}}}function He(n){let t=L("batch.max-concurrent-alert-description")+"",l;return{c(){l=F(t)},l(e){l=H(e,t)},m(e,a){p(e,l,a)},p:E,d(e){e&&m(l)}}}function Le(n){let t,l;return t=new he({}),{c(){d(t.$$.fragment)},l(e){w(t.$$.fragment,e)},m(e,a){v(t,e,a),l=!0},p:E,i(e){l||(_(t.$$.fragment,e),l=!0)},o(e){h(t.$$.fragment,e),l=!1},d(e){k(t,e)}}}function Ne(n){let t,l=L("batch.list-page-title")+"",e,a,r,c,f,s={ctx:n,current:null,token:null,hasCatch:!1,pending:Le,then:Fe,catch:Ce,value:3,blocks:[,,,]};return X(c=y(n[0]),s),{c(){t=B("h1"),e=F(l),a=P(),r=U(),s.block.c(),this.h()},l(i){t=D(i,"H1",{class:!0});var $=j(t);e=H($,l),$.forEach(m),a=C(i),r=U(),s.block.l(i),this.h()},h(){g(t,"class","text-2xl")},m(i,$){p(i,t,$),S(t,e),p(i,a,$),p(i,r,$),s.block.m(i,s.anchor=$),s.mount=()=>r.parentNode,s.anchor=r,f=!0},p(i,[$]){n=i,s.ctx=n,$&1&&c!==(c=y(n[0]))&&X(c,s)||ne(s,n,$)},i(i){f||(_(s.block),f=!0)},o(i){for(let $=0;$<3;$+=1){const b=s.blocks[$];h(b)}f=!1},d(i){i&&m(t),i&&m(a),i&&m(r),s.block.d(i),s.token=null,s=null}}}function Oe(n,t,l){let e;R(n,be,r=>l(1,e=r));let{namespace:a}=t;return n.$$set=r=>{"namespace"in r&&l(0,a=r.namespace)},[a,e]}class Ie extends Q{constructor(t){super(),V(this,t,Oe,Ne,W,{namespace:0})}}function Ae(n){let t,l,e,a;return t=new fe({props:{title:L("batch.list-page-title")}}),e=new Ie({props:{namespace:n[0]}}),{c(){d(t.$$.fragment),l=P(),d(e.$$.fragment)},l(r){w(t.$$.fragment,r),l=C(r),w(e.$$.fragment,r)},m(r,c){v(t,r,c),p(r,l,c),v(e,r,c),a=!0},p(r,[c]){const f={};c&1&&(f.namespace=r[0]),e.$set(f)},i(r){a||(_(t.$$.fragment,r),_(e.$$.fragment,r),a=!0)},o(r){h(t.$$.fragment,r),h(e.$$.fragment,r),a=!1},d(r){k(t,r),r&&m(l),k(e,r)}}}function Se(n,t,l){let e,a;return R(n,oe,r=>l(1,a=r)),n.$$.update=()=>{n.$$.dirty&2&&l(0,e=a.params.namespace)},[e,a]}class ye extends Q{constructor(t){super(),V(this,t,Se,Ae,W,{})}}export{ye as component}; +import{S as Q,b as V,a as W,C as d,D as w,E as v,j as _,g as h,F as k,K as R,e as U,f as p,z as J,h as M,a7 as se,k as m,m as B,w as F,p as D,q as j,x as H,u as g,L as S,n as E,c as P,d as C,y as G,ar as X,as as ne}from"../chunks/index.4e2fcbc7.js";import{p as oe}from"../chunks/stores.0e7b7e35.js";import{P as fe}from"../chunks/page-title.f9a44b80.js";import{t as L}from"../chunks/translate.d23a91ae.js";import{B as ie}from"../chunks/badge.96e01a15.js";import{E as Y}from"../chunks/empty-state.721f6c59.js";import{L as ce}from"../chunks/link.6803bb00.js";import{T as me,a as ue}from"../chunks/table-header-row.fec98b60.js";import{T as re}from"../chunks/table-row.0fafe278.js";import{t as pe,r as $e,b as K}from"../chunks/time-format.fa373b4c.js";import{p as Z}from"../chunks/route-for.084c7a46.js";import{A as _e}from"../chunks/alert.9612e524.js";import{L as he}from"../chunks/loading.95801385.js";import{l as y,i as be}from"../chunks/batch-operations.fbef62e1.js";function x(n,t,l){const e=n.slice();return e[5]=t[l].state,e[6]=t[l].jobId,e[7]=t[l].startTime,e[8]=t[l].closeTime,e}function ee(n){let t,l;return t=new re({props:{$$slots:{default:[ge]},$$scope:{ctx:n}}}),{c(){d(t.$$.fragment)},l(e){w(t.$$.fragment,e)},m(e,a){v(t,e,a),l=!0},p(e,a){const r={};a&2048&&(r.$$scope={dirty:a,ctx:e}),t.$set(r)},i(e){l||(_(t.$$.fragment,e),l=!0)},o(e){h(t.$$.fragment,e),l=!1},d(e){k(t,e)}}}function ge(n){let t,l,e,a,r,c,f;return l=new Y({props:{title:L("batch.empty-state-title")}}),r=new Y({props:{title:L("batch.empty-state-title")}}),{c(){t=B("td"),d(l.$$.fragment),e=P(),a=B("td"),d(r.$$.fragment),c=P(),this.h()},l(s){t=D(s,"TD",{class:!0,colspan:!0});var i=j(t);w(l.$$.fragment,i),i.forEach(m),e=C(s),a=D(s,"TD",{class:!0,colspan:!0});var $=j(a);w(r.$$.fragment,$),$.forEach(m),c=C(s),this.h()},h(){g(t,"class","max-sm:hidden"),g(t,"colspan","4"),g(a,"class","sm:hidden"),g(a,"colspan","2")},m(s,i){p(s,t,i),v(l,t,null),p(s,e,i),p(s,a,i),v(r,a,null),p(s,c,i),f=!0},p:E,i(s){f||(_(l.$$.fragment,s),_(r.$$.fragment,s),f=!0)},o(s){h(l.$$.fragment,s),h(r.$$.fragment,s),f=!1},d(s){s&&m(t),k(l),s&&m(e),s&&m(a),k(r),s&&m(c)}}}function de(n){let t=n[5]+"",l;return{c(){l=F(t)},l(e){l=H(e,t)},m(e,a){p(e,l,a)},p(e,a){a&2&&t!==(t=e[5]+"")&&G(l,t)},d(e){e&&m(l)}}}function we(n){let t=n[6]+"",l;return{c(){l=F(t)},l(e){l=H(e,t)},m(e,a){p(e,l,a)},p(e,a){a&2&&t!==(t=e[6]+"")&&G(l,t)},d(e){e&&m(l)}}}function ve(n){let t,l,e,a,r,c,f,s=K(n[7],n[2],{relative:n[3]})+"",i,$,b,N=K(n[8],n[2],{relative:n[3]})+"",T,q,O;return l=new ie({props:{type:n[4][n[5]],$$slots:{default:[de]},$$scope:{ctx:n}}}),r=new ce({props:{href:Z({namespace:n[0],jobId:n[6]}),$$slots:{default:[we]},$$scope:{ctx:n}}}),{c(){t=B("td"),d(l.$$.fragment),e=P(),a=B("td"),d(r.$$.fragment),c=P(),f=B("td"),i=F(s),$=P(),b=B("td"),T=F(N),q=P(),this.h()},l(o){t=D(o,"TD",{});var u=j(t);w(l.$$.fragment,u),u.forEach(m),e=C(o),a=D(o,"TD",{});var I=j(a);w(r.$$.fragment,I),I.forEach(m),c=C(o),f=D(o,"TD",{class:!0});var A=j(f);i=H(A,s),A.forEach(m),$=C(o),b=D(o,"TD",{class:!0});var z=j(b);T=H(z,N),z.forEach(m),q=C(o),this.h()},h(){g(f,"class","max-sm:hidden"),g(b,"class","max-sm:hidden")},m(o,u){p(o,t,u),v(l,t,null),p(o,e,u),p(o,a,u),v(r,a,null),p(o,c,u),p(o,f,u),S(f,i),p(o,$,u),p(o,b,u),S(b,T),p(o,q,u),O=!0},p(o,u){const I={};u&2&&(I.type=o[4][o[5]]),u&2050&&(I.$$scope={dirty:u,ctx:o}),l.$set(I);const A={};u&3&&(A.href=Z({namespace:o[0],jobId:o[6]})),u&2050&&(A.$$scope={dirty:u,ctx:o}),r.$set(A),(!O||u&14)&&s!==(s=K(o[7],o[2],{relative:o[3]})+"")&&G(i,s),(!O||u&14)&&N!==(N=K(o[8],o[2],{relative:o[3]})+"")&&G(T,N)},i(o){O||(_(l.$$.fragment,o),_(r.$$.fragment,o),O=!0)},o(o){h(l.$$.fragment,o),h(r.$$.fragment,o),O=!1},d(o){o&&m(t),k(l),o&&m(e),o&&m(a),k(r),o&&m(c),o&&m(f),o&&m($),o&&m(b),o&&m(q)}}}function te(n){let t,l;return t=new re({props:{$$slots:{default:[ve]},$$scope:{ctx:n}}}),{c(){d(t.$$.fragment)},l(e){w(t.$$.fragment,e)},m(e,a){v(t,e,a),l=!0},p(e,a){const r={};a&2063&&(r.$$scope={dirty:a,ctx:e}),t.$set(r)},i(e){l||(_(t.$$.fragment,e),l=!0)},o(e){h(t.$$.fragment,e),l=!1},d(e){k(t,e)}}}function ke(n){let t,l,e=n[1],a=[];for(let f=0;fh(a[f],1,1,()=>{a[f]=null});let c=null;return e.length||(c=ee(n)),{c(){for(let f=0;f{c=null}),M()):(c=ee(f),c.c(),_(c,1),c.m(t.parentNode,t))}},i(f){if(!l){for(let s=0;sl(2,e=s)),R(n,$e,s=>l(3,a=s));let{namespace:r}=t,{operations:c}=t;const f={Completed:"green",Running:"blue",Failed:"red",Unspecified:"gray"};return n.$$set=s=>{"namespace"in s&&l(0,r=s.namespace),"operations"in s&&l(1,c=s.operations)},[r,c,e,a,f]}class Pe extends Q{constructor(t){super(),V(this,t,je,De,W,{namespace:0,operations:1})}}function ae(n){n[2]=n[3].operations}function Ce(n){return{c:E,l:E,m:E,p:E,i:E,o:E,d:E}}function Fe(n){ae(n);let t,l,e,a=n[1]&&le(n);return l=new Pe({props:{operations:n[2],namespace:n[0]}}),{c(){a&&a.c(),t=P(),d(l.$$.fragment)},l(r){a&&a.l(r),t=C(r),w(l.$$.fragment,r)},m(r,c){a&&a.m(r,c),p(r,t,c),v(l,r,c),e=!0},p(r,c){ae(r),r[1]?a?(a.p(r,c),c&2&&_(a,1)):(a=le(r),a.c(),_(a,1),a.m(t.parentNode,t)):a&&(J(),h(a,1,1,()=>{a=null}),M());const f={};c&1&&(f.operations=r[2]),c&1&&(f.namespace=r[0]),l.$set(f)},i(r){e||(_(a),_(l.$$.fragment,r),e=!0)},o(r){h(a),h(l.$$.fragment,r),e=!1},d(r){a&&a.d(r),r&&m(t),k(l,r)}}}function le(n){let t,l;return t=new _e({props:{icon:"info",intent:"info",title:L("batch.max-concurrent-alert-title"),$$slots:{default:[He]},$$scope:{ctx:n}}}),{c(){d(t.$$.fragment)},l(e){w(t.$$.fragment,e)},m(e,a){v(t,e,a),l=!0},p(e,a){const r={};a&16&&(r.$$scope={dirty:a,ctx:e}),t.$set(r)},i(e){l||(_(t.$$.fragment,e),l=!0)},o(e){h(t.$$.fragment,e),l=!1},d(e){k(t,e)}}}function He(n){let t=L("batch.max-concurrent-alert-description")+"",l;return{c(){l=F(t)},l(e){l=H(e,t)},m(e,a){p(e,l,a)},p:E,d(e){e&&m(l)}}}function Le(n){let t,l;return t=new he({}),{c(){d(t.$$.fragment)},l(e){w(t.$$.fragment,e)},m(e,a){v(t,e,a),l=!0},p:E,i(e){l||(_(t.$$.fragment,e),l=!0)},o(e){h(t.$$.fragment,e),l=!1},d(e){k(t,e)}}}function Ne(n){let t,l=L("batch.list-page-title")+"",e,a,r,c,f,s={ctx:n,current:null,token:null,hasCatch:!1,pending:Le,then:Fe,catch:Ce,value:3,blocks:[,,,]};return X(c=y(n[0]),s),{c(){t=B("h1"),e=F(l),a=P(),r=U(),s.block.c(),this.h()},l(i){t=D(i,"H1",{class:!0});var $=j(t);e=H($,l),$.forEach(m),a=C(i),r=U(),s.block.l(i),this.h()},h(){g(t,"class","text-2xl")},m(i,$){p(i,t,$),S(t,e),p(i,a,$),p(i,r,$),s.block.m(i,s.anchor=$),s.mount=()=>r.parentNode,s.anchor=r,f=!0},p(i,[$]){n=i,s.ctx=n,$&1&&c!==(c=y(n[0]))&&X(c,s)||ne(s,n,$)},i(i){f||(_(s.block),f=!0)},o(i){for(let $=0;$<3;$+=1){const b=s.blocks[$];h(b)}f=!1},d(i){i&&m(t),i&&m(a),i&&m(r),s.block.d(i),s.token=null,s=null}}}function Oe(n,t,l){let e;R(n,be,r=>l(1,e=r));let{namespace:a}=t;return n.$$set=r=>{"namespace"in r&&l(0,a=r.namespace)},[a,e]}class Ie extends Q{constructor(t){super(),V(this,t,Oe,Ne,W,{namespace:0})}}function Ae(n){let t,l,e,a;return t=new fe({props:{title:L("batch.list-page-title")}}),e=new Ie({props:{namespace:n[0]}}),{c(){d(t.$$.fragment),l=P(),d(e.$$.fragment)},l(r){w(t.$$.fragment,r),l=C(r),w(e.$$.fragment,r)},m(r,c){v(t,r,c),p(r,l,c),v(e,r,c),a=!0},p(r,[c]){const f={};c&1&&(f.namespace=r[0]),e.$set(f)},i(r){a||(_(t.$$.fragment,r),_(e.$$.fragment,r),a=!0)},o(r){h(t.$$.fragment,r),h(e.$$.fragment,r),a=!1},d(r){k(t,r),r&&m(l),k(e,r)}}}function Se(n,t,l){let e,a;return R(n,oe,r=>l(1,a=r)),n.$$.update=()=>{n.$$.dirty&2&&l(0,e=a.params.namespace)},[e,a]}class ye extends Q{constructor(t){super(),V(this,t,Se,Ae,W,{})}}export{ye as component}; diff --git a/ui/assets/local/_app/immutable/nodes/21.5e7435d8.js b/ui/assets/local/_app/immutable/nodes/21.976e4599.js similarity index 97% rename from ui/assets/local/_app/immutable/nodes/21.5e7435d8.js rename to ui/assets/local/_app/immutable/nodes/21.976e4599.js index 5ac7df2583..d486e3e727 100644 --- a/ui/assets/local/_app/immutable/nodes/21.5e7435d8.js +++ b/ui/assets/local/_app/immutable/nodes/21.976e4599.js @@ -1 +1 @@ -import{S as we,b as De,a as Ee,m as p,w as E,c as b,p as u,q as d,x as k,k as f,d as g,u as h,f as le,L as s,y as H,n as D,K as Ie,C as X,D as Y,E as Z,j,z as lt,g as N,h as rt,F as x,M as nt,a5 as ct,v as ge,P as xe,ar as it,e as et,as as ft}from"../chunks/index.4e2fcbc7.js";import{p as pt}from"../chunks/stores.14a97433.js";import{P as ut}from"../chunks/page-title.f9a44b80.js";import{t as V}from"../chunks/translate.d23a91ae.js";import{b as Re,t as dt,r as mt}from"../chunks/time-format.88312c30.js";import{B as ht}from"../chunks/badge.96e01a15.js";import{T as vt}from"../chunks/toggle-switch.3a41e457.js";import{T as _t}from"../chunks/tooltip.6cb33d85.js";import{a as Ae,d as $t}from"../chunks/batch-operations.79b667c0.js";import{C as tt}from"../chunks/card.c1324719.js";import{L as bt}from"../chunks/link.6803bb00.js";import{e as at}from"../chunks/route-for.80613b91.js";function gt(o){let e,a,t=V("batch.details")+"",n,l,i,r,c=V("batch.operation-type")+"",m,v,O,z=o[0].operationType+"",B,U,_,$,P=V("batch.identity")+"",S,y,T,L=o[0].identity+"",q,K,A,G,de=V("common.reason")+"",me,J,Q,ee=o[0].reason+"",fe,W,R,te,ae=V("common.start-time")+"",C,w,re,oe=Re(o[0].startTime,o[1],{relative:o[2]})+"",ne,ve,M,ce,he=V("common.close-time")+"",pe,_e,ie,se=Re(o[0].closeTime,o[1],{relative:o[2]})+"",Pe,Fe,ue,$e,Be=V("batch.total-operations")+"",Ne,ye,be,ke=Intl.NumberFormat("en-US").format(o[0].totalOperationCount)+"",Ve;return{c(){e=p("div"),a=p("p"),n=E(t),l=b(),i=p("div"),r=p("p"),m=E(c),v=b(),O=p("p"),B=E(z),U=b(),_=p("div"),$=p("p"),S=E(P),y=b(),T=p("p"),q=E(L),K=b(),A=p("div"),G=p("p"),me=E(de),J=b(),Q=p("p"),fe=E(ee),W=b(),R=p("div"),te=p("p"),C=E(ae),w=b(),re=p("p"),ne=E(oe),ve=b(),M=p("div"),ce=p("p"),pe=E(he),_e=b(),ie=p("p"),Pe=E(se),Fe=b(),ue=p("div"),$e=p("p"),Ne=E(Be),ye=b(),be=p("p"),Ve=E(ke),this.h()},l(F){e=u(F,"DIV",{class:!0});var I=d(e);a=u(I,"P",{});var Ue=d(a);n=k(Ue,t),Ue.forEach(f),l=g(I),i=u(I,"DIV",{class:!0});var ze=d(i);r=u(ze,"P",{class:!0});var Me=d(r);m=k(Me,c),Me.forEach(f),v=g(ze),O=u(ze,"P",{class:!0});var He=d(O);B=k(He,z),He.forEach(f),ze.forEach(f),U=g(I),_=u(I,"DIV",{class:!0});var Ce=d(_);$=u(Ce,"P",{class:!0});var Le=d($);S=k(Le,P),Le.forEach(f),y=g(Ce),T=u(Ce,"P",{class:!0});var qe=d(T);q=k(qe,L),qe.forEach(f),Ce.forEach(f),K=g(I),A=u(I,"DIV",{class:!0});var Te=d(A);G=u(Te,"P",{class:!0});var Ke=d(G);me=k(Ke,de),Ke.forEach(f),J=g(Te),Q=u(Te,"P",{class:!0});var Ge=d(Q);fe=k(Ge,ee),Ge.forEach(f),Te.forEach(f),W=g(I),R=u(I,"DIV",{class:!0});var je=d(R);te=u(je,"P",{class:!0});var Je=d(te);C=k(Je,ae),Je.forEach(f),w=g(je),re=u(je,"P",{class:!0});var Qe=d(re);ne=k(Qe,oe),Qe.forEach(f),je.forEach(f),ve=g(I),M=u(I,"DIV",{class:!0});var Oe=d(M);ce=u(Oe,"P",{class:!0});var We=d(ce);pe=k(We,he),We.forEach(f),_e=g(Oe),ie=u(Oe,"P",{class:!0});var Xe=d(ie);Pe=k(Xe,se),Xe.forEach(f),Oe.forEach(f),Fe=g(I),ue=u(I,"DIV",{class:!0});var Se=d(ue);$e=u(Se,"P",{class:!0});var Ye=d($e);Ne=k(Ye,Be),Ye.forEach(f),ye=g(Se),be=u(Se,"P",{class:!0});var Ze=d(be);Ve=k(Ze,ke),Ze.forEach(f),Se.forEach(f),I.forEach(f),this.h()},h(){h(r,"class","batch-operation-key svelte-z5po3c"),h(O,"class","batch-operation-value svelte-z5po3c"),h(i,"class","batch-operation-detail svelte-z5po3c"),h($,"class","batch-operation-key svelte-z5po3c"),h(T,"class","batch-operation-value svelte-z5po3c"),h(_,"class","batch-operation-detail svelte-z5po3c"),h(G,"class","batch-operation-key svelte-z5po3c"),h(Q,"class","batch-operation-value svelte-z5po3c"),h(A,"class","batch-operation-detail svelte-z5po3c"),h(te,"class","batch-operation-key svelte-z5po3c"),h(re,"class","batch-operation-value svelte-z5po3c"),h(R,"class","batch-operation-detail svelte-z5po3c"),h(ce,"class","batch-operation-key svelte-z5po3c"),h(ie,"class","batch-operation-value svelte-z5po3c"),h(M,"class","batch-operation-detail svelte-z5po3c"),h($e,"class","batch-operation-key svelte-z5po3c"),h(be,"class","batch-operation-value svelte-z5po3c"),h(ue,"class","batch-operation-detail svelte-z5po3c"),h(e,"class","flex flex-col gap-2")},m(F,I){le(F,e,I),s(e,a),s(a,n),s(e,l),s(e,i),s(i,r),s(r,m),s(i,v),s(i,O),s(O,B),s(e,U),s(e,_),s(_,$),s($,S),s(_,y),s(_,T),s(T,q),s(e,K),s(e,A),s(A,G),s(G,me),s(A,J),s(A,Q),s(Q,fe),s(e,W),s(e,R),s(R,te),s(te,C),s(R,w),s(R,re),s(re,ne),s(e,ve),s(e,M),s(M,ce),s(ce,pe),s(M,_e),s(M,ie),s(ie,Pe),s(e,Fe),s(e,ue),s(ue,$e),s($e,Ne),s(ue,ye),s(ue,be),s(be,Ve)},p(F,[I]){I&1&&z!==(z=F[0].operationType+"")&&H(B,z),I&1&&L!==(L=F[0].identity+"")&&H(q,L),I&1&&ee!==(ee=F[0].reason+"")&&H(fe,ee),I&7&&oe!==(oe=Re(F[0].startTime,F[1],{relative:F[2]})+"")&&H(ne,oe),I&7&&se!==(se=Re(F[0].closeTime,F[1],{relative:F[2]})+"")&&H(Pe,se),I&1&&ke!==(ke=Intl.NumberFormat("en-US").format(F[0].totalOperationCount)+"")&&H(Ve,ke)},i:D,o:D,d(F){F&&f(e)}}}function Et(o,e,a){let t,n;Ie(o,dt,i=>a(1,t=i)),Ie(o,mt,i=>a(2,n=i));let{operation:l}=e;return o.$$set=i=>{"operation"in i&&a(0,l=i.operation)},[l,t,n]}class kt extends we{constructor(e){super(),De(this,e,Et,gt,Ee,{operation:0})}}function It(o){let e=o[0].state+"",a;return{c(){a=E(e)},l(t){a=k(t,e)},m(t,n){le(t,a,n)},p(t,n){n&1&&e!==(e=t[0].state+"")&&H(a,e)},d(t){t&&f(a)}}}function ot(o){let e,a;return e=new _t({props:{top:!0,text:V("common.auto-refresh-tooltip",{interval:"5"}),$$slots:{default:[wt]},$$scope:{ctx:o}}}),{c(){X(e.$$.fragment)},l(t){Y(e.$$.fragment,t)},m(t,n){Z(e,t,n),a=!0},p(t,n){const l={};n&34&&(l.$$scope={dirty:n,ctx:t}),e.$set(l)},i(t){a||(j(e.$$.fragment,t),a=!0)},o(t){N(e.$$.fragment,t),a=!1},d(t){x(e,t)}}}function wt(o){let e,a;return e=new vt({props:{id:"batch-operation-auto-refresh",label:V("common.auto-refresh"),labelPosition:"left",checked:o[1]}}),e.$on("change",o[2]),{c(){X(e.$$.fragment)},l(t){Y(e.$$.fragment,t)},m(t,n){Z(e,t,n),a=!0},p(t,n){const l={};n&2&&(l.checked=t[1]),e.$set(l)},i(t){a||(j(e.$$.fragment,t),a=!0)},o(t){N(e.$$.fragment,t),a=!1},d(t){x(e,t)}}}function Dt(o){let e,a,t,n,l=V("batch.describe-page-title")+"",i,r,c,m,v,O=o[0].jobId+"",z,B,U;c=new ht({props:{type:o[3][o[0].state],$$slots:{default:[It]},$$scope:{ctx:o}}});let _=o[0].state==="Running"&&ot(o);return{c(){e=p("div"),a=p("div"),t=p("div"),n=p("h1"),i=E(l),r=b(),X(c.$$.fragment),m=b(),v=p("h2"),z=E(O),B=b(),_&&_.c(),this.h()},l($){e=u($,"DIV",{class:!0});var P=d(e);a=u(P,"DIV",{class:!0});var S=d(a);t=u(S,"DIV",{class:!0});var y=d(t);n=u(y,"H1",{class:!0});var T=d(n);i=k(T,l),T.forEach(f),r=g(y),Y(c.$$.fragment,y),y.forEach(f),m=g(S),v=u(S,"H2",{class:!0});var L=d(v);z=k(L,O),L.forEach(f),S.forEach(f),B=g(P),_&&_.l(P),P.forEach(f),this.h()},h(){h(n,"class","text-2xl"),h(t,"class","flex flex-row gap-2 max-sm:flex-col"),h(v,"class","text-sm"),h(a,"class","flex flex-col gap-2"),h(e,"class","flex items-center justify-between")},m($,P){le($,e,P),s(e,a),s(a,t),s(t,n),s(n,i),s(t,r),Z(c,t,null),s(a,m),s(a,v),s(v,z),s(e,B),_&&_.m(e,null),U=!0},p($,[P]){const S={};P&1&&(S.type=$[3][$[0].state]),P&33&&(S.$$scope={dirty:P,ctx:$}),c.$set(S),(!U||P&1)&&O!==(O=$[0].jobId+"")&&H(z,O),$[0].state==="Running"?_?(_.p($,P),P&1&&j(_,1)):(_=ot($),_.c(),j(_,1),_.m(e,null)):_&&(lt(),N(_,1,1,()=>{_=null}),rt())},i($){U||(j(c.$$.fragment,$),j(_),U=!0)},o($){N(c.$$.fragment,$),N(_),U=!1},d($){$&&f(e),x(c),_&&_.d()}}}function Pt(o,e,a){let t;Ie(o,Ae,c=>a(1,t=c));let{operation:n}=e;const l=nt(),i=c=>{const{checked:m}=c.target;l("toggleAutoRefresh",{checked:m}),ct(Ae,t=m,t)},r={Completed:"green",Running:"blue",Failed:"red",Unspecified:"gray"};return o.$$set=c=>{"operation"in c&&a(0,n=c.operation)},[n,t,i,r]}class Vt extends we{constructor(e){super(),De(this,e,Pt,Dt,Ee,{operation:0})}}function zt(o){let e,a,t=V("batch.results")+"",n,l,i,r,c,m=V("batch.operations-progress",{percent:o[3]})+"",v,O,z,B=Intl.NumberFormat("en-US").format(o[0].completeOperationCount)+"",U,_,$=Intl.NumberFormat("en-US").format(o[0].totalOperationCount)+"",P,S,y,T,L,q,K,A,G=V("batch.operations-succeeded",{count:o[0].completeOperationCount})+"",de,me,J,Q=V("batch.operations-failed",{count:o[0].failureOperationCount})+"",ee,fe,W,R,te,ae;return{c(){e=p("div"),a=p("p"),n=E(t),l=b(),i=p("div"),r=p("div"),c=p("span"),v=E(m),O=b(),z=p("span"),U=E(B),_=E(" / "),P=E($),S=b(),y=p("div"),T=p("div"),L=b(),q=p("div"),K=p("div"),A=p("span"),de=E(G),me=b(),J=p("span"),ee=E(Q),fe=b(),W=p("div"),R=p("div"),te=b(),ae=p("div"),this.h()},l(C){e=u(C,"DIV",{class:!0});var w=d(e);a=u(w,"P",{});var re=d(a);n=k(re,t),re.forEach(f),l=g(w),i=u(w,"DIV",{});var oe=d(i);r=u(oe,"DIV",{class:!0});var ne=d(r);c=u(ne,"SPAN",{class:!0});var ve=d(c);v=k(ve,m),ve.forEach(f),O=g(ne),z=u(ne,"SPAN",{class:!0});var M=d(z);U=k(M,B),_=k(M," / "),P=k(M,$),M.forEach(f),ne.forEach(f),S=g(oe),y=u(oe,"DIV",{class:!0});var ce=d(y);T=u(ce,"DIV",{class:!0,style:!0}),d(T).forEach(f),ce.forEach(f),oe.forEach(f),L=g(w),q=u(w,"DIV",{});var he=d(q);K=u(he,"DIV",{class:!0});var pe=d(K);A=u(pe,"SPAN",{class:!0});var _e=d(A);de=k(_e,G),_e.forEach(f),me=g(pe),J=u(pe,"SPAN",{class:!0});var ie=d(J);ee=k(ie,Q),ie.forEach(f),pe.forEach(f),fe=g(he),W=u(he,"DIV",{class:!0});var se=d(W);R=u(se,"DIV",{style:!0,class:!0}),d(R).forEach(f),te=g(se),ae=u(se,"DIV",{style:!0,class:!0}),d(ae).forEach(f),se.forEach(f),he.forEach(f),w.forEach(f),this.h()},h(){h(c,"class","text-xs font-semibold"),h(z,"class","text-xs font-semibold"),h(r,"class","flex justify-between"),h(T,"class","absolute left-0 flex h-full items-center bg-indigo-600"),ge(T,"width",o[3]+"%"),h(y,"class","relative h-2 w-full overflow-hidden rounded bg-indigo-100"),h(A,"class","text-xs font-semibold text-green-700"),h(J,"class","text-xs font-semibold"),xe(J,"text-red-700",o[2]>0),h(K,"class","flex justify-between"),ge(R,"width",o[1]+"%"),h(R,"class","absolute left-0 flex h-full items-center bg-green-200"),ge(ae,"width",o[2]+"%"),h(ae,"class","absolute right-0 flex h-full items-center justify-end bg-red-200"),h(W,"class","relative h-2 w-full overflow-hidden rounded"),h(e,"class","flex flex-col gap-4")},m(C,w){le(C,e,w),s(e,a),s(a,n),s(e,l),s(e,i),s(i,r),s(r,c),s(c,v),s(r,O),s(r,z),s(z,U),s(z,_),s(z,P),s(i,S),s(i,y),s(y,T),s(e,L),s(e,q),s(q,K),s(K,A),s(A,de),s(K,me),s(K,J),s(J,ee),s(q,fe),s(q,W),s(W,R),s(W,te),s(W,ae)},p(C,[w]){w&8&&m!==(m=V("batch.operations-progress",{percent:C[3]})+"")&&H(v,m),w&1&&B!==(B=Intl.NumberFormat("en-US").format(C[0].completeOperationCount)+"")&&H(U,B),w&1&&$!==($=Intl.NumberFormat("en-US").format(C[0].totalOperationCount)+"")&&H(P,$),w&8&&ge(T,"width",C[3]+"%"),w&1&&G!==(G=V("batch.operations-succeeded",{count:C[0].completeOperationCount})+"")&&H(de,G),w&1&&Q!==(Q=V("batch.operations-failed",{count:C[0].failureOperationCount})+"")&&H(ee,Q),w&4&&xe(J,"text-red-700",C[2]>0),w&2&&ge(R,"width",C[1]+"%"),w&4&&ge(ae,"width",C[2]+"%")},i:D,o:D,d(C){C&&f(e)}}}function Ct(o,e,a){let{operation:t}=e,n,l,i;return o.$$set=r=>{"operation"in r&&a(0,t=r.operation)},o.$$.update=()=>{if(o.$$.dirty&1){const{completeOperationCount:r,failureOperationCount:c,totalOperationCount:m}=t;a(1,n=Math.round(r/m*100)),a(2,l=Math.round(c/m*100)),a(3,i=Math.round((r+c)/m*100))}},[t,n,l,i]}class Tt extends we{constructor(e){super(),De(this,e,Ct,zt,Ee,{operation:0})}}function jt(o){let e=V("batch.back-link")+"",a;return{c(){a=E(e)},l(t){a=k(t,e)},m(t,n){le(t,a,n)},p:D,d(t){t&&f(a)}}}function Ot(o){return{c:D,l:D,m:D,p:D,i:D,o:D,d:D}}function St(o){let e,a,t,n,l,i;return e=new Vt({props:{operation:o[7]}}),e.$on("toggleAutoRefresh",o[2]),t=new tt({props:{$$slots:{default:[Rt]},$$scope:{ctx:o}}}),l=new tt({props:{$$slots:{default:[Ft]},$$scope:{ctx:o}}}),{c(){X(e.$$.fragment),a=b(),X(t.$$.fragment),n=b(),X(l.$$.fragment)},l(r){Y(e.$$.fragment,r),a=g(r),Y(t.$$.fragment,r),n=g(r),Y(l.$$.fragment,r)},m(r,c){Z(e,r,c),le(r,a,c),Z(t,r,c),le(r,n,c),Z(l,r,c),i=!0},p(r,c){const m={};c&256&&(m.$$scope={dirty:c,ctx:r}),t.$set(m);const v={};c&256&&(v.$$scope={dirty:c,ctx:r}),l.$set(v)},i(r){i||(j(e.$$.fragment,r),j(t.$$.fragment,r),j(l.$$.fragment,r),i=!0)},o(r){N(e.$$.fragment,r),N(t.$$.fragment,r),N(l.$$.fragment,r),i=!1},d(r){x(e,r),r&&f(a),x(t,r),r&&f(n),x(l,r)}}}function Rt(o){let e,a;return e=new kt({props:{operation:o[7]}}),{c(){X(e.$$.fragment)},l(t){Y(e.$$.fragment,t)},m(t,n){Z(e,t,n),a=!0},p:D,i(t){a||(j(e.$$.fragment,t),a=!0)},o(t){N(e.$$.fragment,t),a=!1},d(t){x(e,t)}}}function Ft(o){let e,a;return e=new Tt({props:{operation:o[7]}}),{c(){X(e.$$.fragment)},l(t){Y(e.$$.fragment,t)},m(t,n){Z(e,t,n),a=!0},p:D,i(t){a||(j(e.$$.fragment,t),a=!0)},o(t){N(e.$$.fragment,t),a=!1},d(t){x(e,t)}}}function Nt(o){return{c:D,l:D,m:D,p:D,i:D,o:D,d:D}}function st(o){let e,a,t={ctx:o,current:null,token:null,hasCatch:!1,pending:Nt,then:St,catch:Ot,value:7,blocks:[,,,]};return it(o[3](),t),{c(){e=et(),t.block.c()},l(n){e=et(),t.block.l(n)},m(n,l){le(n,e,l),t.block.m(n,t.anchor=l),t.mount=()=>e.parentNode,t.anchor=e,a=!0},p(n,l){o=n,ft(t,o,l)},i(n){a||(j(t.block),a=!0)},o(n){for(let l=0;l<3;l+=1){const i=t.blocks[l];N(i)}a=!1},d(n){n&&f(e),t.block.d(n),t.token=null,t=null}}}function yt(o){let e,a,t,n,l=o[1],i;t=new bt({props:{href:at({namespace:o[0]}),icon:"chevron-left",$$slots:{default:[jt]},$$scope:{ctx:o}}});let r=st(o);return{c(){e=p("div"),a=p("div"),X(t.$$.fragment),n=b(),r.c(),this.h()},l(c){e=u(c,"DIV",{class:!0});var m=d(e);a=u(m,"DIV",{class:!0});var v=d(a);Y(t.$$.fragment,v),v.forEach(f),n=g(m),r.l(m),m.forEach(f),this.h()},h(){h(a,"class","flex flex-row"),h(e,"class","flex flex-col gap-4")},m(c,m){le(c,e,m),s(e,a),Z(t,a,null),s(e,n),r.m(e,null),i=!0},p(c,[m]){const v={};m&1&&(v.href=at({namespace:c[0]})),m&256&&(v.$$scope={dirty:m,ctx:c}),t.$set(v),m&2&&Ee(l,l=c[1])?(lt(),N(r,1,1,D),rt(),r=st(c),r.c(),j(r,1),r.m(e,null)):r.p(c,m)},i(c){i||(j(t.$$.fragment,c),j(r),i=!0)},o(c){N(t.$$.fragment,c),N(r),i=!1},d(c){c&&f(e),x(t),r.d(c)}}}function At(o,e,a){let t;Ie(o,Ae,v=>a(6,t=v));let{namespace:n}=e,{jobId:l}=e,i=0,r;const c=v=>{v.detail.checked?a(1,i+=1):r&&window.clearTimeout(r)},m=()=>$t({jobId:l,namespace:n}).then(v=>(t&&v.state==="Running"&&(r=window.setTimeout(()=>{a(1,i+=1)},5e3)),v));return o.$$set=v=>{"namespace"in v&&a(0,n=v.namespace),"jobId"in v&&a(4,l=v.jobId)},[n,i,c,m,l]}class Bt extends we{constructor(e){super(),De(this,e,At,yt,Ee,{namespace:0,jobId:4})}}function Ut(o){let e,a,t,n;return e=new ut({props:{title:V("batch.describe-page-title")+" | "+o[0]}}),t=new Bt({props:{jobId:o[0],namespace:o[1]}}),{c(){X(e.$$.fragment),a=b(),X(t.$$.fragment)},l(l){Y(e.$$.fragment,l),a=g(l),Y(t.$$.fragment,l)},m(l,i){Z(e,l,i),le(l,a,i),Z(t,l,i),n=!0},p(l,[i]){const r={};i&1&&(r.title=V("batch.describe-page-title")+" | "+l[0]),e.$set(r);const c={};i&1&&(c.jobId=l[0]),i&2&&(c.namespace=l[1]),t.$set(c)},i(l){n||(j(e.$$.fragment,l),j(t.$$.fragment,l),n=!0)},o(l){N(e.$$.fragment,l),N(t.$$.fragment,l),n=!1},d(l){x(e,l),l&&f(a),x(t,l)}}}function Mt(o,e,a){let t,n,l;return Ie(o,pt,i=>a(2,l=i)),o.$$.update=()=>{o.$$.dirty&4&&a(1,t=l.params.namespace),o.$$.dirty&4&&a(0,n=l.params.jobId)},[n,t,l]}class ea extends we{constructor(e){super(),De(this,e,Mt,Ut,Ee,{})}}export{ea as component}; +import{S as we,b as De,a as Ee,m as p,w as E,c as b,p as u,q as d,x as k,k as f,d as g,u as h,f as le,L as s,y as H,n as D,K as Ie,C as X,D as Y,E as Z,j,z as lt,g as N,h as rt,F as x,M as nt,a5 as ct,v as ge,P as xe,ar as it,e as et,as as ft}from"../chunks/index.4e2fcbc7.js";import{p as pt}from"../chunks/stores.0e7b7e35.js";import{P as ut}from"../chunks/page-title.f9a44b80.js";import{t as V}from"../chunks/translate.d23a91ae.js";import{b as Re,t as dt,r as mt}from"../chunks/time-format.fa373b4c.js";import{B as ht}from"../chunks/badge.96e01a15.js";import{T as vt}from"../chunks/toggle-switch.3a41e457.js";import{T as _t}from"../chunks/tooltip.4a34940b.js";import{a as Ae,d as $t}from"../chunks/batch-operations.fbef62e1.js";import{C as tt}from"../chunks/card.c1324719.js";import{L as bt}from"../chunks/link.6803bb00.js";import{e as at}from"../chunks/route-for.084c7a46.js";function gt(o){let e,a,t=V("batch.details")+"",n,l,i,r,c=V("batch.operation-type")+"",m,v,O,z=o[0].operationType+"",B,U,_,$,P=V("batch.identity")+"",S,y,T,L=o[0].identity+"",q,K,A,G,de=V("common.reason")+"",me,J,Q,ee=o[0].reason+"",fe,W,R,te,ae=V("common.start-time")+"",C,w,re,oe=Re(o[0].startTime,o[1],{relative:o[2]})+"",ne,ve,M,ce,he=V("common.close-time")+"",pe,_e,ie,se=Re(o[0].closeTime,o[1],{relative:o[2]})+"",Pe,Fe,ue,$e,Be=V("batch.total-operations")+"",Ne,ye,be,ke=Intl.NumberFormat("en-US").format(o[0].totalOperationCount)+"",Ve;return{c(){e=p("div"),a=p("p"),n=E(t),l=b(),i=p("div"),r=p("p"),m=E(c),v=b(),O=p("p"),B=E(z),U=b(),_=p("div"),$=p("p"),S=E(P),y=b(),T=p("p"),q=E(L),K=b(),A=p("div"),G=p("p"),me=E(de),J=b(),Q=p("p"),fe=E(ee),W=b(),R=p("div"),te=p("p"),C=E(ae),w=b(),re=p("p"),ne=E(oe),ve=b(),M=p("div"),ce=p("p"),pe=E(he),_e=b(),ie=p("p"),Pe=E(se),Fe=b(),ue=p("div"),$e=p("p"),Ne=E(Be),ye=b(),be=p("p"),Ve=E(ke),this.h()},l(F){e=u(F,"DIV",{class:!0});var I=d(e);a=u(I,"P",{});var Ue=d(a);n=k(Ue,t),Ue.forEach(f),l=g(I),i=u(I,"DIV",{class:!0});var ze=d(i);r=u(ze,"P",{class:!0});var Me=d(r);m=k(Me,c),Me.forEach(f),v=g(ze),O=u(ze,"P",{class:!0});var He=d(O);B=k(He,z),He.forEach(f),ze.forEach(f),U=g(I),_=u(I,"DIV",{class:!0});var Ce=d(_);$=u(Ce,"P",{class:!0});var Le=d($);S=k(Le,P),Le.forEach(f),y=g(Ce),T=u(Ce,"P",{class:!0});var qe=d(T);q=k(qe,L),qe.forEach(f),Ce.forEach(f),K=g(I),A=u(I,"DIV",{class:!0});var Te=d(A);G=u(Te,"P",{class:!0});var Ke=d(G);me=k(Ke,de),Ke.forEach(f),J=g(Te),Q=u(Te,"P",{class:!0});var Ge=d(Q);fe=k(Ge,ee),Ge.forEach(f),Te.forEach(f),W=g(I),R=u(I,"DIV",{class:!0});var je=d(R);te=u(je,"P",{class:!0});var Je=d(te);C=k(Je,ae),Je.forEach(f),w=g(je),re=u(je,"P",{class:!0});var Qe=d(re);ne=k(Qe,oe),Qe.forEach(f),je.forEach(f),ve=g(I),M=u(I,"DIV",{class:!0});var Oe=d(M);ce=u(Oe,"P",{class:!0});var We=d(ce);pe=k(We,he),We.forEach(f),_e=g(Oe),ie=u(Oe,"P",{class:!0});var Xe=d(ie);Pe=k(Xe,se),Xe.forEach(f),Oe.forEach(f),Fe=g(I),ue=u(I,"DIV",{class:!0});var Se=d(ue);$e=u(Se,"P",{class:!0});var Ye=d($e);Ne=k(Ye,Be),Ye.forEach(f),ye=g(Se),be=u(Se,"P",{class:!0});var Ze=d(be);Ve=k(Ze,ke),Ze.forEach(f),Se.forEach(f),I.forEach(f),this.h()},h(){h(r,"class","batch-operation-key svelte-z5po3c"),h(O,"class","batch-operation-value svelte-z5po3c"),h(i,"class","batch-operation-detail svelte-z5po3c"),h($,"class","batch-operation-key svelte-z5po3c"),h(T,"class","batch-operation-value svelte-z5po3c"),h(_,"class","batch-operation-detail svelte-z5po3c"),h(G,"class","batch-operation-key svelte-z5po3c"),h(Q,"class","batch-operation-value svelte-z5po3c"),h(A,"class","batch-operation-detail svelte-z5po3c"),h(te,"class","batch-operation-key svelte-z5po3c"),h(re,"class","batch-operation-value svelte-z5po3c"),h(R,"class","batch-operation-detail svelte-z5po3c"),h(ce,"class","batch-operation-key svelte-z5po3c"),h(ie,"class","batch-operation-value svelte-z5po3c"),h(M,"class","batch-operation-detail svelte-z5po3c"),h($e,"class","batch-operation-key svelte-z5po3c"),h(be,"class","batch-operation-value svelte-z5po3c"),h(ue,"class","batch-operation-detail svelte-z5po3c"),h(e,"class","flex flex-col gap-2")},m(F,I){le(F,e,I),s(e,a),s(a,n),s(e,l),s(e,i),s(i,r),s(r,m),s(i,v),s(i,O),s(O,B),s(e,U),s(e,_),s(_,$),s($,S),s(_,y),s(_,T),s(T,q),s(e,K),s(e,A),s(A,G),s(G,me),s(A,J),s(A,Q),s(Q,fe),s(e,W),s(e,R),s(R,te),s(te,C),s(R,w),s(R,re),s(re,ne),s(e,ve),s(e,M),s(M,ce),s(ce,pe),s(M,_e),s(M,ie),s(ie,Pe),s(e,Fe),s(e,ue),s(ue,$e),s($e,Ne),s(ue,ye),s(ue,be),s(be,Ve)},p(F,[I]){I&1&&z!==(z=F[0].operationType+"")&&H(B,z),I&1&&L!==(L=F[0].identity+"")&&H(q,L),I&1&&ee!==(ee=F[0].reason+"")&&H(fe,ee),I&7&&oe!==(oe=Re(F[0].startTime,F[1],{relative:F[2]})+"")&&H(ne,oe),I&7&&se!==(se=Re(F[0].closeTime,F[1],{relative:F[2]})+"")&&H(Pe,se),I&1&&ke!==(ke=Intl.NumberFormat("en-US").format(F[0].totalOperationCount)+"")&&H(Ve,ke)},i:D,o:D,d(F){F&&f(e)}}}function Et(o,e,a){let t,n;Ie(o,dt,i=>a(1,t=i)),Ie(o,mt,i=>a(2,n=i));let{operation:l}=e;return o.$$set=i=>{"operation"in i&&a(0,l=i.operation)},[l,t,n]}class kt extends we{constructor(e){super(),De(this,e,Et,gt,Ee,{operation:0})}}function It(o){let e=o[0].state+"",a;return{c(){a=E(e)},l(t){a=k(t,e)},m(t,n){le(t,a,n)},p(t,n){n&1&&e!==(e=t[0].state+"")&&H(a,e)},d(t){t&&f(a)}}}function ot(o){let e,a;return e=new _t({props:{top:!0,text:V("common.auto-refresh-tooltip",{interval:"5"}),$$slots:{default:[wt]},$$scope:{ctx:o}}}),{c(){X(e.$$.fragment)},l(t){Y(e.$$.fragment,t)},m(t,n){Z(e,t,n),a=!0},p(t,n){const l={};n&34&&(l.$$scope={dirty:n,ctx:t}),e.$set(l)},i(t){a||(j(e.$$.fragment,t),a=!0)},o(t){N(e.$$.fragment,t),a=!1},d(t){x(e,t)}}}function wt(o){let e,a;return e=new vt({props:{id:"batch-operation-auto-refresh",label:V("common.auto-refresh"),labelPosition:"left",checked:o[1]}}),e.$on("change",o[2]),{c(){X(e.$$.fragment)},l(t){Y(e.$$.fragment,t)},m(t,n){Z(e,t,n),a=!0},p(t,n){const l={};n&2&&(l.checked=t[1]),e.$set(l)},i(t){a||(j(e.$$.fragment,t),a=!0)},o(t){N(e.$$.fragment,t),a=!1},d(t){x(e,t)}}}function Dt(o){let e,a,t,n,l=V("batch.describe-page-title")+"",i,r,c,m,v,O=o[0].jobId+"",z,B,U;c=new ht({props:{type:o[3][o[0].state],$$slots:{default:[It]},$$scope:{ctx:o}}});let _=o[0].state==="Running"&&ot(o);return{c(){e=p("div"),a=p("div"),t=p("div"),n=p("h1"),i=E(l),r=b(),X(c.$$.fragment),m=b(),v=p("h2"),z=E(O),B=b(),_&&_.c(),this.h()},l($){e=u($,"DIV",{class:!0});var P=d(e);a=u(P,"DIV",{class:!0});var S=d(a);t=u(S,"DIV",{class:!0});var y=d(t);n=u(y,"H1",{class:!0});var T=d(n);i=k(T,l),T.forEach(f),r=g(y),Y(c.$$.fragment,y),y.forEach(f),m=g(S),v=u(S,"H2",{class:!0});var L=d(v);z=k(L,O),L.forEach(f),S.forEach(f),B=g(P),_&&_.l(P),P.forEach(f),this.h()},h(){h(n,"class","text-2xl"),h(t,"class","flex flex-row gap-2 max-sm:flex-col"),h(v,"class","text-sm"),h(a,"class","flex flex-col gap-2"),h(e,"class","flex items-center justify-between")},m($,P){le($,e,P),s(e,a),s(a,t),s(t,n),s(n,i),s(t,r),Z(c,t,null),s(a,m),s(a,v),s(v,z),s(e,B),_&&_.m(e,null),U=!0},p($,[P]){const S={};P&1&&(S.type=$[3][$[0].state]),P&33&&(S.$$scope={dirty:P,ctx:$}),c.$set(S),(!U||P&1)&&O!==(O=$[0].jobId+"")&&H(z,O),$[0].state==="Running"?_?(_.p($,P),P&1&&j(_,1)):(_=ot($),_.c(),j(_,1),_.m(e,null)):_&&(lt(),N(_,1,1,()=>{_=null}),rt())},i($){U||(j(c.$$.fragment,$),j(_),U=!0)},o($){N(c.$$.fragment,$),N(_),U=!1},d($){$&&f(e),x(c),_&&_.d()}}}function Pt(o,e,a){let t;Ie(o,Ae,c=>a(1,t=c));let{operation:n}=e;const l=nt(),i=c=>{const{checked:m}=c.target;l("toggleAutoRefresh",{checked:m}),ct(Ae,t=m,t)},r={Completed:"green",Running:"blue",Failed:"red",Unspecified:"gray"};return o.$$set=c=>{"operation"in c&&a(0,n=c.operation)},[n,t,i,r]}class Vt extends we{constructor(e){super(),De(this,e,Pt,Dt,Ee,{operation:0})}}function zt(o){let e,a,t=V("batch.results")+"",n,l,i,r,c,m=V("batch.operations-progress",{percent:o[3]})+"",v,O,z,B=Intl.NumberFormat("en-US").format(o[0].completeOperationCount)+"",U,_,$=Intl.NumberFormat("en-US").format(o[0].totalOperationCount)+"",P,S,y,T,L,q,K,A,G=V("batch.operations-succeeded",{count:o[0].completeOperationCount})+"",de,me,J,Q=V("batch.operations-failed",{count:o[0].failureOperationCount})+"",ee,fe,W,R,te,ae;return{c(){e=p("div"),a=p("p"),n=E(t),l=b(),i=p("div"),r=p("div"),c=p("span"),v=E(m),O=b(),z=p("span"),U=E(B),_=E(" / "),P=E($),S=b(),y=p("div"),T=p("div"),L=b(),q=p("div"),K=p("div"),A=p("span"),de=E(G),me=b(),J=p("span"),ee=E(Q),fe=b(),W=p("div"),R=p("div"),te=b(),ae=p("div"),this.h()},l(C){e=u(C,"DIV",{class:!0});var w=d(e);a=u(w,"P",{});var re=d(a);n=k(re,t),re.forEach(f),l=g(w),i=u(w,"DIV",{});var oe=d(i);r=u(oe,"DIV",{class:!0});var ne=d(r);c=u(ne,"SPAN",{class:!0});var ve=d(c);v=k(ve,m),ve.forEach(f),O=g(ne),z=u(ne,"SPAN",{class:!0});var M=d(z);U=k(M,B),_=k(M," / "),P=k(M,$),M.forEach(f),ne.forEach(f),S=g(oe),y=u(oe,"DIV",{class:!0});var ce=d(y);T=u(ce,"DIV",{class:!0,style:!0}),d(T).forEach(f),ce.forEach(f),oe.forEach(f),L=g(w),q=u(w,"DIV",{});var he=d(q);K=u(he,"DIV",{class:!0});var pe=d(K);A=u(pe,"SPAN",{class:!0});var _e=d(A);de=k(_e,G),_e.forEach(f),me=g(pe),J=u(pe,"SPAN",{class:!0});var ie=d(J);ee=k(ie,Q),ie.forEach(f),pe.forEach(f),fe=g(he),W=u(he,"DIV",{class:!0});var se=d(W);R=u(se,"DIV",{style:!0,class:!0}),d(R).forEach(f),te=g(se),ae=u(se,"DIV",{style:!0,class:!0}),d(ae).forEach(f),se.forEach(f),he.forEach(f),w.forEach(f),this.h()},h(){h(c,"class","text-xs font-semibold"),h(z,"class","text-xs font-semibold"),h(r,"class","flex justify-between"),h(T,"class","absolute left-0 flex h-full items-center bg-indigo-600"),ge(T,"width",o[3]+"%"),h(y,"class","relative h-2 w-full overflow-hidden rounded bg-indigo-100"),h(A,"class","text-xs font-semibold text-green-700"),h(J,"class","text-xs font-semibold"),xe(J,"text-red-700",o[2]>0),h(K,"class","flex justify-between"),ge(R,"width",o[1]+"%"),h(R,"class","absolute left-0 flex h-full items-center bg-green-200"),ge(ae,"width",o[2]+"%"),h(ae,"class","absolute right-0 flex h-full items-center justify-end bg-red-200"),h(W,"class","relative h-2 w-full overflow-hidden rounded"),h(e,"class","flex flex-col gap-4")},m(C,w){le(C,e,w),s(e,a),s(a,n),s(e,l),s(e,i),s(i,r),s(r,c),s(c,v),s(r,O),s(r,z),s(z,U),s(z,_),s(z,P),s(i,S),s(i,y),s(y,T),s(e,L),s(e,q),s(q,K),s(K,A),s(A,de),s(K,me),s(K,J),s(J,ee),s(q,fe),s(q,W),s(W,R),s(W,te),s(W,ae)},p(C,[w]){w&8&&m!==(m=V("batch.operations-progress",{percent:C[3]})+"")&&H(v,m),w&1&&B!==(B=Intl.NumberFormat("en-US").format(C[0].completeOperationCount)+"")&&H(U,B),w&1&&$!==($=Intl.NumberFormat("en-US").format(C[0].totalOperationCount)+"")&&H(P,$),w&8&&ge(T,"width",C[3]+"%"),w&1&&G!==(G=V("batch.operations-succeeded",{count:C[0].completeOperationCount})+"")&&H(de,G),w&1&&Q!==(Q=V("batch.operations-failed",{count:C[0].failureOperationCount})+"")&&H(ee,Q),w&4&&xe(J,"text-red-700",C[2]>0),w&2&&ge(R,"width",C[1]+"%"),w&4&&ge(ae,"width",C[2]+"%")},i:D,o:D,d(C){C&&f(e)}}}function Ct(o,e,a){let{operation:t}=e,n,l,i;return o.$$set=r=>{"operation"in r&&a(0,t=r.operation)},o.$$.update=()=>{if(o.$$.dirty&1){const{completeOperationCount:r,failureOperationCount:c,totalOperationCount:m}=t;a(1,n=Math.round(r/m*100)),a(2,l=Math.round(c/m*100)),a(3,i=Math.round((r+c)/m*100))}},[t,n,l,i]}class Tt extends we{constructor(e){super(),De(this,e,Ct,zt,Ee,{operation:0})}}function jt(o){let e=V("batch.back-link")+"",a;return{c(){a=E(e)},l(t){a=k(t,e)},m(t,n){le(t,a,n)},p:D,d(t){t&&f(a)}}}function Ot(o){return{c:D,l:D,m:D,p:D,i:D,o:D,d:D}}function St(o){let e,a,t,n,l,i;return e=new Vt({props:{operation:o[7]}}),e.$on("toggleAutoRefresh",o[2]),t=new tt({props:{$$slots:{default:[Rt]},$$scope:{ctx:o}}}),l=new tt({props:{$$slots:{default:[Ft]},$$scope:{ctx:o}}}),{c(){X(e.$$.fragment),a=b(),X(t.$$.fragment),n=b(),X(l.$$.fragment)},l(r){Y(e.$$.fragment,r),a=g(r),Y(t.$$.fragment,r),n=g(r),Y(l.$$.fragment,r)},m(r,c){Z(e,r,c),le(r,a,c),Z(t,r,c),le(r,n,c),Z(l,r,c),i=!0},p(r,c){const m={};c&256&&(m.$$scope={dirty:c,ctx:r}),t.$set(m);const v={};c&256&&(v.$$scope={dirty:c,ctx:r}),l.$set(v)},i(r){i||(j(e.$$.fragment,r),j(t.$$.fragment,r),j(l.$$.fragment,r),i=!0)},o(r){N(e.$$.fragment,r),N(t.$$.fragment,r),N(l.$$.fragment,r),i=!1},d(r){x(e,r),r&&f(a),x(t,r),r&&f(n),x(l,r)}}}function Rt(o){let e,a;return e=new kt({props:{operation:o[7]}}),{c(){X(e.$$.fragment)},l(t){Y(e.$$.fragment,t)},m(t,n){Z(e,t,n),a=!0},p:D,i(t){a||(j(e.$$.fragment,t),a=!0)},o(t){N(e.$$.fragment,t),a=!1},d(t){x(e,t)}}}function Ft(o){let e,a;return e=new Tt({props:{operation:o[7]}}),{c(){X(e.$$.fragment)},l(t){Y(e.$$.fragment,t)},m(t,n){Z(e,t,n),a=!0},p:D,i(t){a||(j(e.$$.fragment,t),a=!0)},o(t){N(e.$$.fragment,t),a=!1},d(t){x(e,t)}}}function Nt(o){return{c:D,l:D,m:D,p:D,i:D,o:D,d:D}}function st(o){let e,a,t={ctx:o,current:null,token:null,hasCatch:!1,pending:Nt,then:St,catch:Ot,value:7,blocks:[,,,]};return it(o[3](),t),{c(){e=et(),t.block.c()},l(n){e=et(),t.block.l(n)},m(n,l){le(n,e,l),t.block.m(n,t.anchor=l),t.mount=()=>e.parentNode,t.anchor=e,a=!0},p(n,l){o=n,ft(t,o,l)},i(n){a||(j(t.block),a=!0)},o(n){for(let l=0;l<3;l+=1){const i=t.blocks[l];N(i)}a=!1},d(n){n&&f(e),t.block.d(n),t.token=null,t=null}}}function yt(o){let e,a,t,n,l=o[1],i;t=new bt({props:{href:at({namespace:o[0]}),icon:"chevron-left",$$slots:{default:[jt]},$$scope:{ctx:o}}});let r=st(o);return{c(){e=p("div"),a=p("div"),X(t.$$.fragment),n=b(),r.c(),this.h()},l(c){e=u(c,"DIV",{class:!0});var m=d(e);a=u(m,"DIV",{class:!0});var v=d(a);Y(t.$$.fragment,v),v.forEach(f),n=g(m),r.l(m),m.forEach(f),this.h()},h(){h(a,"class","flex flex-row"),h(e,"class","flex flex-col gap-4")},m(c,m){le(c,e,m),s(e,a),Z(t,a,null),s(e,n),r.m(e,null),i=!0},p(c,[m]){const v={};m&1&&(v.href=at({namespace:c[0]})),m&256&&(v.$$scope={dirty:m,ctx:c}),t.$set(v),m&2&&Ee(l,l=c[1])?(lt(),N(r,1,1,D),rt(),r=st(c),r.c(),j(r,1),r.m(e,null)):r.p(c,m)},i(c){i||(j(t.$$.fragment,c),j(r),i=!0)},o(c){N(t.$$.fragment,c),N(r),i=!1},d(c){c&&f(e),x(t),r.d(c)}}}function At(o,e,a){let t;Ie(o,Ae,v=>a(6,t=v));let{namespace:n}=e,{jobId:l}=e,i=0,r;const c=v=>{v.detail.checked?a(1,i+=1):r&&window.clearTimeout(r)},m=()=>$t({jobId:l,namespace:n}).then(v=>(t&&v.state==="Running"&&(r=window.setTimeout(()=>{a(1,i+=1)},5e3)),v));return o.$$set=v=>{"namespace"in v&&a(0,n=v.namespace),"jobId"in v&&a(4,l=v.jobId)},[n,i,c,m,l]}class Bt extends we{constructor(e){super(),De(this,e,At,yt,Ee,{namespace:0,jobId:4})}}function Ut(o){let e,a,t,n;return e=new ut({props:{title:V("batch.describe-page-title")+" | "+o[0]}}),t=new Bt({props:{jobId:o[0],namespace:o[1]}}),{c(){X(e.$$.fragment),a=b(),X(t.$$.fragment)},l(l){Y(e.$$.fragment,l),a=g(l),Y(t.$$.fragment,l)},m(l,i){Z(e,l,i),le(l,a,i),Z(t,l,i),n=!0},p(l,[i]){const r={};i&1&&(r.title=V("batch.describe-page-title")+" | "+l[0]),e.$set(r);const c={};i&1&&(c.jobId=l[0]),i&2&&(c.namespace=l[1]),t.$set(c)},i(l){n||(j(e.$$.fragment,l),j(t.$$.fragment,l),n=!0)},o(l){N(e.$$.fragment,l),N(t.$$.fragment,l),n=!1},d(l){x(e,l),l&&f(a),x(t,l)}}}function Mt(o,e,a){let t,n,l;return Ie(o,pt,i=>a(2,l=i)),o.$$.update=()=>{o.$$.dirty&4&&a(1,t=l.params.namespace),o.$$.dirty&4&&a(0,n=l.params.jobId)},[n,t,l]}class ea extends we{constructor(e){super(),De(this,e,Mt,Ut,Ee,{})}}export{ea as component}; diff --git a/ui/assets/local/_app/immutable/nodes/22.1bfc8cd1.js b/ui/assets/local/_app/immutable/nodes/22.1bfc8cd1.js new file mode 100644 index 0000000000..d975f45cb6 --- /dev/null +++ b/ui/assets/local/_app/immutable/nodes/22.1bfc8cd1.js @@ -0,0 +1 @@ +import{S as ke,b as Ie,a as ve,e as fe,f as S,n as ce,k as c,N as Be,U as Ke,m as L,w as J,p as B,q as j,x as G,u as T,L as P,y as _e,C as O,c as U,D as q,d as W,E as H,j as g,g as $,F as C,K as we,z as re,h as ie,a7 as De,G as me,H as pe,I as he,J as ge,v as ye,Z as Oe,Q as Ne,T as qe,ah as Kt,o as yt,P as $e,r as zt,A as Mt,a0 as Ot,a1 as qt}from"../chunks/index.4e2fcbc7.js";import{p as We}from"../chunks/stores.0e7b7e35.js";import{P as Ht}from"../chunks/page-title.f9a44b80.js";import{g as Me}from"../chunks/navigation.b77a045a.js";import{W as Ct}from"../chunks/workflow-status.781aff44.js";import{L as je}from"../chunks/link.6803bb00.js";import{T as Fe}from"../chunks/table-row.0fafe278.js";import{t as Q}from"../chunks/translate.d23a91ae.js";import{t as Jt,r as Gt,b as Re}from"../chunks/time-format.fa373b4c.js";import{q as Qt,g as He,s as Ce}from"../chunks/route-for.084c7a46.js";import{s as Je}from"../chunks/parse-with-big-int.0036a80a.js";import{T as Lt,a as Bt}from"../chunks/table-header-row.fec98b60.js";import{A as Zt}from"../chunks/alert.9612e524.js";import{a as jt,p as Xt,o as Ft,d as Ue,F as Rt}from"../chunks/pagination.aba14fc4.js";import{S as Yt}from"../chunks/index.8b5c6ff3.js";import{j as Ge,w as xt}from"../chunks/singletons.13b3836d.js";import{k as el}from"../chunks/has.183130b0.js";import{B as Ut}from"../chunks/button.a45b0e55.js";import{E as Wt}from"../chunks/empty-state.721f6c59.js";import{I as tl}from"../chunks/input.4b0dcfae.js";import{f as ll}from"../chunks/schedule-service.3e5d769d.js";import{c as sl}from"../chunks/core-user.d32cd5bb.js";import{w as Vt}from"../chunks/write-actions-are-allowed.008c7180.js";function Qe(a){let t,s,e,l=Je(a[0]||a[1])+"",n,r;return{c(){t=L("div"),s=L("code"),e=L("pre"),n=J(l),this.h()},l(i){t=B(i,"DIV",{class:!0});var o=j(t);s=B(o,"CODE",{});var u=j(s);e=B(u,"PRE",{});var d=j(e);n=G(d,l),d.forEach(c),u.forEach(c),o.forEach(c),this.h()},h(){T(t,"class",r="frequency "+a[2].class+" svelte-1f2qew1")},m(i,o){S(i,t,o),P(t,s),P(s,e),P(e,n)},p(i,o){o&3&&l!==(l=Je(i[0]||i[1])+"")&&_e(n,l),o&4&&r!==(r="frequency "+i[2].class+" svelte-1f2qew1")&&T(t,"class",r)},d(i){i&&c(t)}}}function al(a){let t=[a[0],a[1]],s,e=Qe(a);return{c(){e.c(),s=fe()},l(l){e.l(l),s=fe()},m(l,n){e.m(l,n),S(l,s,n)},p(l,[n]){n&3&&ve(t,t=[l[0],l[1]])?(e.d(1),e=Qe(l),e.c(),e.m(s.parentNode,s)):e.p(l,n)},i:ce,o:ce,d(l){l&&c(s),e.d(l)}}}function nl(a,t,s){let{calendar:e=void 0}=t,{interval:l=void 0}=t;return a.$$set=n=>{s(2,t=Be(Be({},t),Ke(n))),"calendar"in n&&s(0,e=n.calendar),"interval"in n&&s(1,l=n.interval)},t=Ke(t),[e,l,t]}class Ve extends ke{constructor(t){super(),Ie(this,t,nl,al,ve,{calendar:0,interval:1})}}function Ze(a,t,s){const e=a.slice();return e[14]=t[s],e}function Xe(a,t,s){const e=a.slice();return e[14]=t[s],e}function rl(a){let t=a[0].scheduleId+"",s;return{c(){s=J(t)},l(e){s=G(e,t)},m(e,l){S(e,s,l)},p(e,l){l&1&&t!==(t=e[0].scheduleId+"")&&_e(s,t)},d(e){e&&c(s)}}}function il(a){var e;let t=Re((e=a[14])==null?void 0:e.actualTime,a[2],{relative:a[3]})+"",s;return{c(){s=J(t)},l(l){s=G(l,t)},m(l,n){S(l,s,n)},p(l,n){var r;n&13&&t!==(t=Re((r=l[14])==null?void 0:r.actualTime,l[2],{relative:l[3]})+"")&&_e(s,t)},d(l){l&&c(s)}}}function Ye(a){var n,r,i,o;let t,s,e,l;return s=new je({props:{href:He({namespace:a[4],workflow:(r=(n=a[14])==null?void 0:n.startWorkflowResult)==null?void 0:r.workflowId,run:(o=(i=a[14])==null?void 0:i.startWorkflowResult)==null?void 0:o.runId}),$$slots:{default:[il]},$$scope:{ctx:a}}}),{c(){t=L("p"),O(s.$$.fragment),e=U()},l(u){t=B(u,"P",{});var d=j(t);q(s.$$.fragment,d),e=W(d),d.forEach(c)},m(u,d){S(u,t,d),H(s,t,null),P(t,e),l=!0},p(u,d){var D,N,F,_;const I={};d&1&&(I.href=He({namespace:u[4],workflow:(N=(D=u[14])==null?void 0:D.startWorkflowResult)==null?void 0:N.workflowId,run:(_=(F=u[14])==null?void 0:F.startWorkflowResult)==null?void 0:_.runId})),d&524301&&(I.$$scope={dirty:d,ctx:u}),s.$set(I)},i(u){l||(g(s.$$.fragment,u),l=!0)},o(u){$(s.$$.fragment,u),l=!1},d(u){u&&c(t),C(s)}}}function xe(a){let t,s=Re(a[14],a[2],{relative:a[3],relativeLabel:Q("common.from-now")})+"",e,l;return{c(){t=L("div"),e=J(s),l=U()},l(n){t=B(n,"DIV",{});var r=j(t);e=G(r,s),l=W(r),r.forEach(c)},m(n,r){S(n,t,r),P(t,e),P(t,l)},p(n,r){r&13&&s!==(s=Re(n[14],n[2],{relative:n[3],relativeLabel:Q("common.from-now")})+"")&&_e(e,s)},d(n){n&&c(t)}}}function ol(a){var z,y,A,E,w,k,le,X,ee,ne;let t,s,e,l,n,r,i,o=(((A=(y=(z=a[0])==null?void 0:z.info)==null?void 0:y.workflowType)==null?void 0:A.name)??"")+"",u,d,I,D,N,F;s=new Ct({props:{status:(w=(E=a[0])==null?void 0:E.info)!=null&&w.paused?"Paused":"Running"}}),n=new je({props:{class:"text-base",$$slots:{default:[rl]},$$scope:{ctx:a}}}),n.$on("click",a[8]);let _=a[7]((le=(k=a[0])==null?void 0:k.info)==null?void 0:le.recentActions),f=[];for(let h=0;h<_.length;h+=1)f[h]=Ye(Xe(a,_,h));const m=h=>$(f[h],1,1,()=>{f[h]=null});let R=((ne=(ee=(X=a[0])==null?void 0:X.info)==null?void 0:ee.futureActionTimes)==null?void 0:ne.slice(0,5))??[],v=[];for(let h=0;hs(12,l=m)),we(a,Jt,m=>s(2,n=m)),we(a,Gt,m=>s(3,r=m));var i,o,u;let{namespace:d}=l.params,{schedule:I}=t;const D=(i=I==null?void 0:I.info)===null||i===void 0?void 0:i.spec,N=(o=D==null?void 0:D.structuredCalendar)===null||o===void 0?void 0:o[0],F=(u=D==null?void 0:D.interval)===null||u===void 0?void 0:u[0],_=m=>{var R;return(R=m==null?void 0:m.sort((v,z)=>new Date(z.actualTime).getTime()-new Date(v.actualTime).getTime()).slice(0,5))!==null&&R!==void 0?R:[]},f=()=>{Me(e)};return a.$$set=m=>{"schedule"in m&&s(0,I=m.schedule)},a.$$.update=()=>{a.$$.dirty&1&&s(1,e=Qt({namespace:d,scheduleId:I==null?void 0:I.scheduleId}))},[I,e,n,r,d,N,F,_,f]}class _l extends ke{constructor(t){super(),Ie(this,t,cl,ul,ve,{schedule:0})}}function dl(a){let t;const s=a[0].default,e=me(s,a,a[1],null);return{c(){e&&e.c()},l(l){e&&e.l(l)},m(l,n){e&&e.m(l,n),t=!0},p(l,n){e&&e.p&&(!t||n&2)&&pe(e,s,l,l[1],t?ge(s,l[1],n,null):he(l[1]),null)},i(l){t||(g(e,l),t=!0)},o(l){$(e,l),t=!1},d(l){e&&e.d(l)}}}function ml(a){let t,s=Q("common.schedules")+"",e;return{c(){t=L("caption"),e=J(s),this.h()},l(l){t=B(l,"CAPTION",{class:!0,slot:!0});var n=j(t);e=G(n,s),n.forEach(c),this.h()},h(){T(t,"class","sr-only"),T(t,"slot","caption")},m(l,n){S(l,t,n),P(t,e)},p:ce,d(l){l&&c(t)}}}function pl(a){let t,s=Q("common.status")+"",e,l,n,r=Q("schedules.name")+"",i,o,u,d=Q("common.workflow-type")+"",I,D,N,F=Q("schedules.recent-runs")+"",_,f,m,R=Q("schedules.upcoming-runs")+"",v;return{c(){t=L("th"),e=J(s),l=U(),n=L("th"),i=J(r),o=U(),u=L("th"),I=J(d),D=U(),N=L("th"),_=J(F),f=U(),m=L("th"),v=J(R),this.h()},l(z){t=B(z,"TH",{class:!0});var y=j(t);e=G(y,s),y.forEach(c),l=W(z),n=B(z,"TH",{class:!0});var A=j(n);i=G(A,r),A.forEach(c),o=W(z),u=B(z,"TH",{class:!0});var E=j(u);I=G(E,d),E.forEach(c),D=W(z),N=B(z,"TH",{class:!0});var w=j(N);_=G(w,F),w.forEach(c),f=W(z),m=B(z,"TH",{class:!0});var k=j(m);v=G(k,R),k.forEach(c),this.h()},h(){T(t,"class","w-28"),T(n,"class","md:w-80 xl:w-auto"),T(u,"class","w-60 max-md:hidden xl:w-80"),T(N,"class","w-56 max-xl:hidden"),T(m,"class","w-56 max-xl:hidden")},m(z,y){S(z,t,y),P(t,e),S(z,l,y),S(z,n,y),P(n,i),S(z,o,y),S(z,u,y),P(u,I),S(z,D,y),S(z,N,y),P(N,_),S(z,f,y),S(z,m,y),P(m,v)},p:ce,d(z){z&&c(t),z&&c(l),z&&c(n),z&&c(o),z&&c(u),z&&c(D),z&&c(N),z&&c(f),z&&c(m)}}}function hl(a){let t,s;return t=new Bt({props:{slot:"headers",$$slots:{default:[pl]},$$scope:{ctx:a}}}),{c(){O(t.$$.fragment)},l(e){q(t.$$.fragment,e)},m(e,l){H(t,e,l),s=!0},p(e,l){const n={};l&2&&(n.$$scope={dirty:l,ctx:e}),t.$set(n)},i(e){s||(g(t.$$.fragment,e),s=!0)},o(e){$(t.$$.fragment,e),s=!1},d(e){C(t,e)}}}function gl(a){let t,s;return t=new Lt({props:{class:"w-full table-fixed",$$slots:{headers:[hl],caption:[ml],default:[dl]},$$scope:{ctx:a}}}),{c(){O(t.$$.fragment)},l(e){q(t.$$.fragment,e)},m(e,l){H(t,e,l),s=!0},p(e,[l]){const n={};l&2&&(n.$$scope={dirty:l,ctx:e}),t.$set(n)},i(e){s||(g(t.$$.fragment,e),s=!0)},o(e){$(t.$$.fragment,e),s=!1},d(e){C(t,e)}}}function vl(a,t,s){let{$$slots:e={},$$scope:l}=t;return a.$$set=n=>{"$$scope"in n&&s(1,l=n.$$scope)},[e,l]}class bl extends ke{constructor(t){super(),Ie(this,t,vl,gl,ve,{})}}function et(a,t,s){const e=a.slice();return e[8]=t[s],e}function tt(a,t,s){const e=a.slice();return e[5]=t[s],e}function lt(a,t,s){const e=a.slice();return e[5]=t[s],e[7]=s,e}const $l=a=>({}),st=a=>({});function at(a){let t,s,e;return s=new Yt({props:{class:"h-4 w-full"}}),{c(){t=L("td"),O(s.$$.fragment),this.h()},l(l){t=B(l,"TD",{style:!0});var n=j(t);q(s.$$.fragment,n),n.forEach(c),this.h()},h(){ye(t,"padding-right","0.5rem")},m(l,n){S(l,t,n),H(s,t,null),e=!0},p:ce,i(l){e||(g(s.$$.fragment,l),e=!0)},o(l){$(s.$$.fragment,l),e=!1},d(l){l&&c(t),C(s)}}}function wl(a){let t,s,e=Array.from(new Array(a[1])),l=[];for(let r=0;r$(l[r],1,1,()=>{l[r]=null});return{c(){for(let r=0;r$(l[r],1,1,()=>{l[r]=null});return{c(){for(let r=0;r{"rows"in o&&s(0,n=o.rows),"columns"in o&&s(1,r=o.columns),"columnWidths"in o&&s(2,i=o.columnWidths),"$$scope"in o&&s(4,l=o.$$scope)},[n,r,i,e,l]}class Al extends ke{constructor(t){super(),Ie(this,t,Dl,Pl,ve,{rows:0,columns:1,columnWidths:2})}}const it={key:jt,loading:!0,updating:!1,hasNext:!1,hasPrevious:!1,index:0,previousPageSize:Ue,pageSize:Ue,indexData:{},visibleItems:[],hasNextIndexData:!1,indexStart:0,indexEnd:0,activeIndex:0},ot=a=>{const t=a[0];if(!t)return Ue;const s=parseInt(t.toString());return isNaN(s)?Ue:s},Tl=(a,t=void 0)=>{if(t){const s=parseInt(t.toString());return isNaN(s)?ot(a):s}else return ot(a)};function Nl(a=Ft,t=void 0){const s=Tl(a,t),e=xt({...it,previousPageSize:s,pageSize:s}),{set:l,update:n}=e,r=Ge([We],([_])=>{const f=_.url.searchParams.get(jt);return f?Xt(f):void 0}),{subscribe:i}=Ge([e,r],([_,f])=>{var y,A,E;const m=((y=_.indexData[_.index])==null?void 0:y.items)??[],R=((A=_.indexData[_.index])==null?void 0:A.start)??0,v=((E=_.indexData[_.index])==null?void 0:E.end)??0,z=Boolean(_.indexData[_.index+1]);return{..._,visibleItems:m,indexStart:R,indexEnd:v,hasNextIndexData:z,pageSize:f??_.pageSize}}),o=(_,f,m)=>{const R=m.index,v={...m,indexData:{...m.indexData},hasNext:Boolean(_),updating:!1,loading:!1};return f.length?(v.indexData[R]?(v.index=R+1,v.indexData[v.index]={nextToken:_,start:v.indexData[R].end+1,end:v.indexData[R].end+f.length,items:f},v.hasPrevious=!0):(v.indexData[R]={nextToken:_,start:1,end:f.length,items:f},v.hasPrevious=!1),v):{...v,hasNext:!1}},u=_=>{var m;const f={..._,index:_.index+1,hasPrevious:!0,loading:!1,updating:!1};return(m=f.indexData[f.index])!=null&&m.nextToken||(f.hasNext=!1),f},d=_=>{const f={..._,hasNext:!0,updating:!1,loading:!1,index:_.index>0?_.index-1:0};return f.index===0&&(f.hasPrevious=!1),f},I=_=>{var R,v;const f={..._},m=((v=(R=f.indexData[f.index])==null?void 0:R.items)==null?void 0:v.length)??0;return f.activeIndex{const f={..._},m=f.activeIndex>=1?f.activeIndex-1:0;return f.activeIndex=m,f},N=(_,f)=>({..._,activeIndex:f}),F=(_,f)=>({..._,pageSize:f,previousPageSize:f,index:0,indexData:{},loading:!0,updating:!1});return{subscribe:i,nextPageWithItems:(_,f)=>n(m=>o(_,f,m)),nextPage:()=>n(_=>u(_)),previousPage:()=>n(_=>d(_)),setUpdating:()=>n(_=>({..._,updating:!0})),reset:()=>l(it),resetPageSize:_=>n(f=>F(f,_)),nextRow:()=>n(_=>I(_)),previousRow:()=>n(_=>D(_)),setActiveIndex:_=>n(f=>N(f,_))}}const zl=a=>({updating:a&128,visibleItems:a&128,activeIndex:a&128}),ft=a=>({updating:a[7].updating,visibleItems:a[7].visibleItems,activeIndex:a[7].activeIndex,setActiveIndex:a[10].setActiveIndex}),Ll=a=>({updating:a&128,visibleItems:a&128,activeIndex:a&128}),ut=a=>({updating:a[7].updating,visibleItems:a[7].visibleItems,activeIndex:a[7].activeIndex,setActiveIndex:a[10].setActiveIndex}),Bl=a=>({updating:a&128,visibleItems:a&128,activeIndex:a&128}),ct=a=>({updating:a[7].updating,visibleItems:a[7].visibleItems,activeIndex:a[7].activeIndex,setActiveIndex:a[10].setActiveIndex}),jl=a=>({updating:a&128,visibleItems:a&128,activeIndex:a&128}),_t=a=>({updating:a[7].updating,visibleItems:a[7].visibleItems,activeIndex:a[7].activeIndex,setActiveIndex:a[10].setActiveIndex}),Fl=a=>({updating:a&128,visibleItems:a&128,activeIndex:a&128}),dt=a=>({updating:a[7].updating,visibleItems:a[7].visibleItems,activeIndex:a[7].activeIndex,setActiveIndex:a[10].setActiveIndex}),Rl=a=>({updating:a&128,visibleItems:a&128,activeIndex:a&128}),mt=a=>({updating:a[7].updating,visibleItems:a[7].visibleItems,activeIndex:a[7].activeIndex,setActiveIndex:a[10].setActiveIndex}),Ul=a=>({updating:a&128,visibleItems:a&128,activeIndex:a&128}),pt=a=>({updating:a[7].updating,visibleItems:a[7].visibleItems,activeIndex:a[7].activeIndex,setActiveIndex:a[10].setActiveIndex}),Wl=a=>({updating:a&128,visibleItems:a&128,activeIndex:a&128}),ht=a=>({updating:a[7].updating,visibleItems:a[7].visibleItems,activeIndex:a[7].activeIndex,setActiveIndex:a[10].setActiveIndex}),Vl=a=>({updating:a&128,visibleItems:a&128,activeIndex:a&128}),gt=a=>({updating:a[7].updating,visibleItems:a[7].visibleItems,activeIndex:a[7].activeIndex,setActiveIndex:a[10].setActiveIndex});function Kl(a){var e;let t,s;return t=new Zt({props:{bold:!0,intent:"error",class:"mb-10",title:((e=a[8])==null?void 0:e.message)??a[4]}}),{c(){O(t.$$.fragment)},l(l){q(t.$$.fragment,l)},m(l,n){H(t,l,n),s=!0},p(l,n){var i;const r={};n&272&&(r.title=((i=l[8])==null?void 0:i.message)??l[4]),t.$set(r)},i(l){s||(g(t.$$.fragment,l),s=!0)},o(l){$(t.$$.fragment,l),s=!1},d(l){C(t,l)}}}function yl(a){let t;const s=a[24].error,e=me(s,a,a[23],gt);return{c(){e&&e.c()},l(l){e&&e.l(l)},m(l,n){e&&e.m(l,n),t=!0},p(l,n){e&&e.p&&(!t||n&8388736)&&pe(e,s,l,l[23],t?ge(s,l[23],n,Vl):he(l[23]),gt)},i(l){t||(g(e,l),t=!0)},o(l){$(e,l),t=!1},d(l){e&&e.d(l)}}}function vt(a){let t,s,e,l,n,r,i,o,u=a[7].indexStart+"",d,I,D=a[7].indexEnd+"",N,F,_,f,m,R,v,z,y,A=a[0].length&&bt(a),E=a[1]&&$t(a);return{c(){A&&A.c(),t=U(),s=L("div"),e=L("button"),l=L("span"),r=U(),i=L("div"),o=L("p"),d=J(u),I=J("–"),N=J(D),F=U(),E&&E.c(),_=U(),f=L("button"),m=L("span"),this.h()},l(w){A&&A.l(w),t=W(w),s=B(w,"DIV",{class:!0});var k=j(s);e=B(k,"BUTTON",{class:!0,"aria-label":!0});var le=j(e);l=B(le,"SPAN",{class:!0}),j(l).forEach(c),le.forEach(c),r=W(k),i=B(k,"DIV",{class:!0});var X=j(i);o=B(X,"P",{});var ee=j(o);d=G(ee,u),I=G(ee,"–"),N=G(ee,D),ee.forEach(c),F=W(X),E&&E.l(X),X.forEach(c),_=W(k),f=B(k,"BUTTON",{class:!0,"aria-label":!0});var ne=j(f);m=B(ne,"SPAN",{class:!0}),j(m).forEach(c),ne.forEach(c),k.forEach(c),this.h()},h(){T(l,"class","arrow arrow-left svelte-1jw2xtb"),$e(l,"arrow-left-disabled",!a[7].hasPrevious),T(e,"class","caret svelte-1jw2xtb"),e.disabled=n=!a[7].hasPrevious,T(e,"aria-label",a[5]),T(i,"class","flex gap-1"),T(m,"class","arrow arrow-right svelte-1jw2xtb"),$e(m,"arrow-right-disabled",!a[7].hasNext),T(f,"class","caret svelte-1jw2xtb"),f.disabled=R=!a[7].hasNext,T(f,"aria-label",a[6]),T(s,"class","flex items-center justify-center gap-3")},m(w,k){A&&A.m(w,k),S(w,t,k),S(w,s,k),P(s,e),P(e,l),P(s,r),P(s,i),P(i,o),P(o,d),P(o,I),P(o,N),P(i,F),E&&E.m(i,null),P(s,_),P(s,f),P(f,m),v=!0,z||(y=[Ne(e,"click",a[10].previousPage),Ne(f,"click",a[11])],z=!0)},p(w,k){w[0].length?A?(A.p(w,k),k&1&&g(A,1)):(A=bt(w),A.c(),g(A,1),A.m(t.parentNode,t)):A&&(re(),$(A,1,1,()=>{A=null}),ie()),(!v||k&128)&&$e(l,"arrow-left-disabled",!w[7].hasPrevious),(!v||k&128&&n!==(n=!w[7].hasPrevious))&&(e.disabled=n),(!v||k&32)&&T(e,"aria-label",w[5]),(!v||k&128)&&u!==(u=w[7].indexStart+"")&&_e(d,u),(!v||k&128)&&D!==(D=w[7].indexEnd+"")&&_e(N,D),w[1]?E?E.p(w,k):(E=$t(w),E.c(),E.m(i,null)):E&&(E.d(1),E=null),(!v||k&128)&&$e(m,"arrow-right-disabled",!w[7].hasNext),(!v||k&128&&R!==(R=!w[7].hasNext))&&(f.disabled=R),(!v||k&64)&&T(f,"aria-label",w[6])},i(w){v||(g(A),v=!0)},o(w){$(A),v=!1},d(w){A&&A.d(w),w&&c(t),w&&c(s),E&&E.d(),z=!1,zt(y)}}}function bt(a){let t,s;return t=new Rt({props:{label:a[2],parameter:a[7].key,value:String(a[7].pageSize),options:a[0]}}),{c(){O(t.$$.fragment)},l(e){q(t.$$.fragment,e)},m(e,l){H(t,e,l),s=!0},p(e,l){const n={};l&4&&(n.label=e[2]),l&128&&(n.parameter=e[7].key),l&128&&(n.value=String(e[7].pageSize)),l&1&&(n.options=e[0]),t.$set(n)},i(e){s||(g(t.$$.fragment,e),s=!0)},o(e){$(t.$$.fragment,e),s=!1},d(e){C(t,e)}}}function $t(a){let t,s,e;return{c(){t=L("p"),s=J("of "),e=J(a[1])},l(l){t=B(l,"P",{});var n=j(t);s=G(n,"of "),e=G(n,a[1]),n.forEach(c)},m(l,n){S(l,t,n),P(t,s),P(t,e)},p(l,n){n&2&&_e(e,l[1])},d(l){l&&c(t)}}}function Ml(a){let t;const s=a[24].default,e=me(s,a,a[23],ct);return{c(){e&&e.c()},l(l){e&&e.l(l)},m(l,n){e&&e.m(l,n),t=!0},p(l,n){e&&e.p&&(!t||n&8388736)&&pe(e,s,l,l[23],t?ge(s,l[23],n,Bl):he(l[23]),ct)},i(l){t||(g(e,l),t=!0)},o(l){$(e,l),t=!1},d(l){e&&e.d(l)}}}function Ol(a){let t;const s=a[24].empty,e=me(s,a,a[23],_t),l=e||Hl(a);return{c(){l&&l.c()},l(n){l&&l.l(n)},m(n,r){l&&l.m(n,r),t=!0},p(n,r){e?e.p&&(!t||r&8388736)&&pe(e,s,n,n[23],t?ge(s,n[23],r,jl):he(n[23]),_t):l&&l.p&&(!t||r&8)&&l.p(n,t?r:-1)},i(n){t||(g(l,n),t=!0)},o(n){$(l,n),t=!1},d(n){l&&l.d(n)}}}function ql(a){let t,s;return t=new Al({props:{rows:15}}),{c(){O(t.$$.fragment)},l(e){q(t.$$.fragment,e)},m(e,l){H(t,e,l),s=!0},p:ce,i(e){s||(g(t.$$.fragment,e),s=!0)},o(e){$(t.$$.fragment,e),s=!1},d(e){C(t,e)}}}function Hl(a){let t;return{c(){t=J(a[3])},l(s){t=G(s,a[3])},m(s,e){S(s,t,e)},p(s,e){e&8&&_e(t,s[3])},d(s){s&&c(t)}}}function wt(a){let t,s,e,l,n,r,i,o,u=a[7].indexStart+"",d,I,D=a[7].indexEnd+"",N,F,_,f,m,R,v,z,y,A=a[0].length&&kt(a),E=a[1]&&It(a);return{c(){A&&A.c(),t=U(),s=L("div"),e=L("button"),l=L("span"),r=U(),i=L("div"),o=L("p"),d=J(u),I=J("–"),N=J(D),F=U(),E&&E.c(),_=U(),f=L("button"),m=L("span"),this.h()},l(w){A&&A.l(w),t=W(w),s=B(w,"DIV",{class:!0});var k=j(s);e=B(k,"BUTTON",{class:!0,"aria-label":!0});var le=j(e);l=B(le,"SPAN",{class:!0}),j(l).forEach(c),le.forEach(c),r=W(k),i=B(k,"DIV",{class:!0});var X=j(i);o=B(X,"P",{});var ee=j(o);d=G(ee,u),I=G(ee,"–"),N=G(ee,D),ee.forEach(c),F=W(X),E&&E.l(X),X.forEach(c),_=W(k),f=B(k,"BUTTON",{class:!0,"aria-label":!0});var ne=j(f);m=B(ne,"SPAN",{class:!0}),j(m).forEach(c),ne.forEach(c),k.forEach(c),this.h()},h(){T(l,"class","arrow arrow-left svelte-1jw2xtb"),$e(l,"arrow-left-disabled",!a[7].hasPrevious),T(e,"class","caret svelte-1jw2xtb"),e.disabled=n=!a[7].hasPrevious,T(e,"aria-label",a[5]),T(i,"class","flex gap-1"),T(m,"class","arrow arrow-right svelte-1jw2xtb"),$e(m,"arrow-right-disabled",!a[7].hasNext),T(f,"class","caret svelte-1jw2xtb"),f.disabled=R=!a[7].hasNext,T(f,"aria-label",a[6]),T(s,"class","flex items-center justify-center gap-3")},m(w,k){A&&A.m(w,k),S(w,t,k),S(w,s,k),P(s,e),P(e,l),P(s,r),P(s,i),P(i,o),P(o,d),P(o,I),P(o,N),P(i,F),E&&E.m(i,null),P(s,_),P(s,f),P(f,m),v=!0,z||(y=[Ne(e,"click",a[10].previousPage),Ne(f,"click",a[11])],z=!0)},p(w,k){w[0].length?A?(A.p(w,k),k&1&&g(A,1)):(A=kt(w),A.c(),g(A,1),A.m(t.parentNode,t)):A&&(re(),$(A,1,1,()=>{A=null}),ie()),(!v||k&128)&&$e(l,"arrow-left-disabled",!w[7].hasPrevious),(!v||k&128&&n!==(n=!w[7].hasPrevious))&&(e.disabled=n),(!v||k&32)&&T(e,"aria-label",w[5]),(!v||k&128)&&u!==(u=w[7].indexStart+"")&&_e(d,u),(!v||k&128)&&D!==(D=w[7].indexEnd+"")&&_e(N,D),w[1]?E?E.p(w,k):(E=It(w),E.c(),E.m(i,null)):E&&(E.d(1),E=null),(!v||k&128)&&$e(m,"arrow-right-disabled",!w[7].hasNext),(!v||k&128&&R!==(R=!w[7].hasNext))&&(f.disabled=R),(!v||k&64)&&T(f,"aria-label",w[6])},i(w){v||(g(A),v=!0)},o(w){$(A),v=!1},d(w){A&&A.d(w),w&&c(t),w&&c(s),E&&E.d(),z=!1,zt(y)}}}function kt(a){let t,s;return t=new Rt({props:{label:a[2],parameter:a[7].key,value:String(a[7].pageSize),options:a[0]}}),{c(){O(t.$$.fragment)},l(e){q(t.$$.fragment,e)},m(e,l){H(t,e,l),s=!0},p(e,l){const n={};l&4&&(n.label=e[2]),l&128&&(n.parameter=e[7].key),l&128&&(n.value=String(e[7].pageSize)),l&1&&(n.options=e[0]),t.$set(n)},i(e){s||(g(t.$$.fragment,e),s=!0)},o(e){$(t.$$.fragment,e),s=!1},d(e){C(t,e)}}}function It(a){let t,s,e;return{c(){t=L("p"),s=J("of "),e=J(a[1])},l(l){t=B(l,"P",{});var n=j(t);s=G(n,"of "),e=G(n,a[1]),n.forEach(c)},m(l,n){S(l,t,n),P(t,s),P(t,e)},p(l,n){n&2&&_e(e,l[1])},d(l){l&&c(t)}}}function Cl(a){let t,s,e,l,n,r,i,o,u,d,I,D,N,F,_,f,m,R,v,z,y,A,E,w,k;const le=[yl,Kl],X=[];function ee(p,K){return p[8]&&p[13].error?0:p[8]?1:-1}~(t=ee(a))&&(s=X[t]=le[t](a));const ne=a[24].header,h=me(ne,a,a[23],ht),b=a[24]["action-top-left"],V=me(b,a,a[23],pt),ue=a[24]["action-top-center"],Y=me(ue,a,a[23],mt);let Z=a[7].visibleItems.length&&vt(a);const oe=a[24]["action-top-right"],se=me(oe,a,a[23],dt),Ae=[ql,Ol,Ml],de=[];function Te(p,K){return p[7].loading?0:p[9]?1:2}F=Te(a),_=de[F]=Ae[F](a);const Se=a[24]["action-bottom-left"],ae=me(Se,a,a[23],ut);let x=a[7].visibleItems.length&&wt(a);const M=a[24]["action-bottom-right"],te=me(M,a,a[23],ft);return{c(){s&&s.c(),e=U(),h&&h.c(),l=U(),n=L("div"),r=L("div"),i=L("div"),V&&V.c(),o=U(),u=L("nav"),Y&&Y.c(),d=U(),Z&&Z.c(),I=U(),se&&se.c(),N=U(),_.c(),f=U(),m=L("nav"),ae&&ae.c(),R=U(),v=L("div"),x&&x.c(),z=U(),te&&te.c(),this.h()},l(p){s&&s.l(p),e=W(p),h&&h.l(p),l=W(p),n=B(p,"DIV",{class:!0});var K=j(n);r=B(K,"DIV",{class:!0});var be=j(r);i=B(be,"DIV",{class:!0});var Ee=j(i);V&&V.l(Ee),Ee.forEach(c),o=W(be),u=B(be,"NAV",{class:!0,"aria-label":!0});var Pe=j(u);Y&&Y.l(Pe),d=W(Pe),Z&&Z.l(Pe),I=W(Pe),se&&se.l(Pe),Pe.forEach(c),be.forEach(c),N=W(K),_.l(K),f=W(K),m=B(K,"NAV",{class:!0,"aria-label":!0});var ze=j(m);ae&&ae.l(ze),R=W(ze),v=B(ze,"DIV",{class:!0});var Le=j(v);x&&x.l(Le),z=W(Le),te&&te.l(Le),Le.forEach(c),ze.forEach(c),K.forEach(c),this.h()},h(){T(i,"class","flex items-center gap-1 lg:gap-2 xl:gap-3"),T(u,"class","flex flex-col justify-end gap-4 md:flex-row"),T(u,"aria-label",D=a[14]["aria-label"]+" 1"),T(r,"class","flex flex-col items-center justify-between gap-4 lg:flex-row"),T(v,"class","flex gap-4"),T(m,"class",y=Oe(`flex ${a[13]["action-bottom-left"]?"justify-between":"justify-end"}`)+" svelte-1jw2xtb"),T(m,"aria-label",A=a[14]["aria-label"]+" 2"),T(n,"class","relative mb-8 flex flex-col gap-4")},m(p,K){~t&&X[t].m(p,K),S(p,e,K),h&&h.m(p,K),S(p,l,K),S(p,n,K),P(n,r),P(r,i),V&&V.m(i,null),P(r,o),P(r,u),Y&&Y.m(u,null),P(u,d),Z&&Z.m(u,null),P(u,I),se&&se.m(u,null),P(n,N),de[F].m(n,null),P(n,f),P(n,m),ae&&ae.m(m,null),P(m,R),P(m,v),x&&x.m(v,null),P(v,z),te&&te.m(v,null),E=!0,w||(k=Ne(window,"keydown",a[12]),w=!0)},p(p,[K]){let be=t;t=ee(p),t===be?~t&&X[t].p(p,K):(s&&(re(),$(X[be],1,1,()=>{X[be]=null}),ie()),~t?(s=X[t],s?s.p(p,K):(s=X[t]=le[t](p),s.c()),g(s,1),s.m(e.parentNode,e)):s=null),h&&h.p&&(!E||K&8388736)&&pe(h,ne,p,p[23],E?ge(ne,p[23],K,Wl):he(p[23]),ht),V&&V.p&&(!E||K&8388736)&&pe(V,b,p,p[23],E?ge(b,p[23],K,Ul):he(p[23]),pt),Y&&Y.p&&(!E||K&8388736)&&pe(Y,ue,p,p[23],E?ge(ue,p[23],K,Rl):he(p[23]),mt),p[7].visibleItems.length?Z?(Z.p(p,K),K&128&&g(Z,1)):(Z=vt(p),Z.c(),g(Z,1),Z.m(u,I)):Z&&(re(),$(Z,1,1,()=>{Z=null}),ie()),se&&se.p&&(!E||K&8388736)&&pe(se,oe,p,p[23],E?ge(oe,p[23],K,Fl):he(p[23]),dt),(!E||K&16384&&D!==(D=p[14]["aria-label"]+" 1"))&&T(u,"aria-label",D);let Ee=F;F=Te(p),F===Ee?de[F].p(p,K):(re(),$(de[Ee],1,1,()=>{de[Ee]=null}),ie(),_=de[F],_?_.p(p,K):(_=de[F]=Ae[F](p),_.c()),g(_,1),_.m(n,f)),ae&&ae.p&&(!E||K&8388736)&&pe(ae,Se,p,p[23],E?ge(Se,p[23],K,Ll):he(p[23]),ut),p[7].visibleItems.length?x?(x.p(p,K),K&128&&g(x,1)):(x=wt(p),x.c(),g(x,1),x.m(v,z)):x&&(re(),$(x,1,1,()=>{x=null}),ie()),te&&te.p&&(!E||K&8388736)&&pe(te,M,p,p[23],E?ge(M,p[23],K,zl):he(p[23]),ft),(!E||K&8192&&y!==(y=Oe(`flex ${p[13]["action-bottom-left"]?"justify-between":"justify-end"}`)+" svelte-1jw2xtb"))&&T(m,"class",y),(!E||K&16384&&A!==(A=p[14]["aria-label"]+" 2"))&&T(m,"aria-label",A)},i(p){E||(g(s),g(h,p),g(V,p),g(Y,p),g(Z),g(se,p),g(_),g(ae,p),g(x),g(te,p),E=!0)},o(p){$(s),$(h,p),$(V,p),$(Y,p),$(Z),$(se,p),$(_),$(ae,p),$(x),$(te,p),E=!1},d(p){~t&&X[t].d(p),p&&c(e),h&&h.d(p),p&&c(l),p&&c(n),V&&V.d(p),Y&&Y.d(p),Z&&Z.d(),se&&se.d(p),de[F].d(),ae&&ae.d(p),x&&x.d(),te&&te.d(p),w=!1,k()}}}function Jl(a,t,s){let e,l;const n=["onError","onFetch","onShiftUp","onShiftDown","onSpace","pageSizeOptions","defaultPageSize","total","pageSizeSelectLabel","emptyStateMessage","fallbackErrorMessage","itemsKeyname","previousButtonLabel","nextButtonLabel"];let r=qe(t,n),i,{$$slots:o={},$$scope:u}=t;const d=Kt(o);let{onError:I=void 0}=t,{onFetch:D}=t,{onShiftUp:N=void 0}=t,{onShiftDown:F=void 0}=t,{onSpace:_=void 0}=t,{pageSizeOptions:f=Ft}=t,{defaultPageSize:m=void 0}=t,{total:R=""}=t,{pageSizeSelectLabel:v}=t,{emptyStateMessage:z}=t,{fallbackErrorMessage:y}=t,{itemsKeyname:A="items"}=t,{previousButtonLabel:E}=t,{nextButtonLabel:w}=t,k=Nl(f,m);we(a,k,b=>s(7,i=b));let le;function X(){le&&s(8,le=void 0)}yt(()=>{ee()});async function ee(){const b=await D();try{const V=await b(i.pageSize,""),{nextPageToken:ue}=V,Y=V[A]||[];k.nextPageWithItems(ue,Y)}catch(V){s(8,le=V),I&&I(le)}}async function ne(){if(X(),k.setUpdating(),i.hasNextIndexData)k.nextPage();else try{const V=await(await D())(i.pageSize,i.indexData[i.index].nextToken),{nextPageToken:ue}=V,Y=V[A]||[];k.nextPageWithItems(ue,Y)}catch(b){el(b)&&I&&I(b)}}async function h(b){const V=b.shiftKey;switch(b.code){case"ArrowRight":case"KeyL":i.hasNext&&!i.updating&&ne();break;case"ArrowLeft":case"KeyH":i.hasPrevious&&!i.updating&&k.previousPage();break;case"ArrowUp":case"KeyK":V&&N?(N(b),k.reset(),ee()):k.previousRow();break;case"ArrowDown":case"KeyJ":V&&F?(F(b),k.reset(),ee()):k.nextRow();break;case"Space":_&&_(b);break}}return a.$$set=b=>{t=Be(Be({},t),Ke(b)),s(14,r=qe(t,n)),"onError"in b&&s(15,I=b.onError),"onFetch"in b&&s(16,D=b.onFetch),"onShiftUp"in b&&s(17,N=b.onShiftUp),"onShiftDown"in b&&s(18,F=b.onShiftDown),"onSpace"in b&&s(19,_=b.onSpace),"pageSizeOptions"in b&&s(0,f=b.pageSizeOptions),"defaultPageSize"in b&&s(20,m=b.defaultPageSize),"total"in b&&s(1,R=b.total),"pageSizeSelectLabel"in b&&s(2,v=b.pageSizeSelectLabel),"emptyStateMessage"in b&&s(3,z=b.emptyStateMessage),"fallbackErrorMessage"in b&&s(4,y=b.fallbackErrorMessage),"itemsKeyname"in b&&s(21,A=b.itemsKeyname),"previousButtonLabel"in b&&s(5,E=b.previousButtonLabel),"nextButtonLabel"in b&&s(6,w=b.nextButtonLabel),"$$scope"in b&&s(23,u=b.$$scope)},a.$$.update=()=>{a.$$.dirty&128&&s(9,e=i.visibleItems.length===0&&!i.loading),a.$$.dirty&128&&s(22,l=!i.loading&&i.pageSize!==i.previousPageSize),a.$$.dirty&4194432&&l&&(k.resetPageSize(i.pageSize),ee())},[f,R,v,z,y,E,w,i,le,e,k,ne,h,d,r,I,D,N,F,_,m,A,l,u,o]}class Gl extends ke{constructor(t){super(),Ie(this,t,Jl,Cl,ve,{onError:15,onFetch:16,onShiftUp:17,onShiftDown:18,onSpace:19,pageSizeOptions:0,defaultPageSize:20,total:1,pageSizeSelectLabel:2,emptyStateMessage:3,fallbackErrorMessage:4,itemsKeyname:21,previousButtonLabel:5,nextButtonLabel:6})}}function St(a,t,s){const e=a.slice();return e[14]=t[s],e}function Et(a){let t,s;return t=new Fe({props:{$$slots:{default:[Ql]},$$scope:{ctx:a}}}),{c(){O(t.$$.fragment)},l(e){q(t.$$.fragment,e)},m(e,l){H(t,e,l),s=!0},p(e,l){const n={};l&131072&&(n.$$scope={dirty:l,ctx:e}),t.$set(n)},i(e){s||(g(t.$$.fragment,e),s=!0)},o(e){$(t.$$.fragment,e),s=!1},d(e){C(t,e)}}}function Ql(a){let t,s,e,l,n,r,i,o;return l=new Wt({props:{title:Q("schedules.empty-state-title"),content:Q("schedules.empty-state-description")}}),{c(){t=L("td"),s=U(),e=L("td"),O(l.$$.fragment),n=U(),r=L("td"),i=U(),this.h()},l(u){t=B(u,"TD",{class:!0}),j(t).forEach(c),s=W(u),e=B(u,"TD",{colspan:!0});var d=j(e);q(l.$$.fragment,d),d.forEach(c),n=W(u),r=B(u,"TD",{class:!0}),j(r).forEach(c),i=W(u),this.h()},h(){T(t,"class","hidden xl:table-cell"),T(e,"colspan","3"),T(r,"class","hidden xl:table-cell")},m(u,d){S(u,t,d),S(u,s,d),S(u,e,d),H(l,e,null),S(u,n,d),S(u,r,d),S(u,i,d),o=!0},p:ce,i(u){o||(g(l.$$.fragment,u),o=!0)},o(u){$(l.$$.fragment,u),o=!1},d(u){u&&c(t),u&&c(s),u&&c(e),C(l),u&&c(n),u&&c(r),u&&c(i)}}}function Pt(a){let t,s;return t=new _l({props:{schedule:a[14]}}),{c(){O(t.$$.fragment)},l(e){q(t.$$.fragment,e)},m(e,l){H(t,e,l),s=!0},p(e,l){const n={};l&8200&&(n.schedule=e[14]),t.$set(n)},i(e){s||(g(t.$$.fragment,e),s=!0)},o(e){$(t.$$.fragment,e),s=!1},d(e){C(t,e)}}}function Zl(a){let t,s,e=a[3](a[13]),l=[];for(let i=0;i$(l[i],1,1,()=>{l[i]=null});let r=null;return e.length||(r=Et(a)),{c(){for(let i=0;i{r=null}),ie()):(r=Et(i),r.c(),g(r,1),r.m(t.parentNode,t))}},i(i){if(!s){for(let o=0;o{o=null}),ie())},i(u){i||(g(o),i=!0)},o(u){$(o),i=!1},d(u){u&&c(t),o&&o.d()}}}function At(a){let t,s,e,l;function n(i){a[11](i)}let r={icon:"search",type:"search",label:Q("schedules.name"),labelHidden:!0,id:"schedule-name-filter",placeholder:Q("schedules.name"),clearable:!0,clearButtonLabel:Q("common.clear-input-button-label")};return a[0]!==void 0&&(r.value=a[0]),s=new tl({props:r}),Mt.push(()=>Ot(s,"value",n)),s.$on("submit",ce),{c(){t=L("div"),O(s.$$.fragment),this.h()},l(i){t=B(i,"DIV",{class:!0});var o=j(t);q(s.$$.fragment,o),o.forEach(c),this.h()},h(){T(t,"class","w-96")},m(i,o){S(i,t,o),H(s,t,null),l=!0},p(i,o){const u={};!e&&o&1&&(e=!0,u.value=i[0],qt(()=>e=!1)),s.$set(u)},i(i){l||(g(s.$$.fragment,i),l=!0)},o(i){$(s.$$.fragment,i),l=!1},d(i){i&&c(t),C(s)}}}function es(a){let t,s,e=a[13].length&&At(a);return{c(){e&&e.c(),t=fe()},l(l){e&&e.l(l),t=fe()},m(l,n){e&&e.m(l,n),S(l,t,n),s=!0},p(l,n){l[13].length?e?(e.p(l,n),n&8192&&g(e,1)):(e=At(l),e.c(),g(e,1),e.m(t.parentNode,t)):e&&(re(),$(e,1,1,()=>{e=null}),ie())},i(l){s||(g(e),s=!0)},o(l){$(e),s=!1},d(l){e&&e.d(l),l&&c(t)}}}function ts(a){let t=Q("schedules.getting-started-docs-link")+"",s;return{c(){s=J(t)},l(e){s=G(e,t)},m(e,l){S(e,s,l)},p:ce,d(e){e&&c(s)}}}function ls(a){let t;return{c(){t=J("Temporal CLI")},l(s){t=G(s,"Temporal CLI")},m(s,e){S(s,t,e)},d(s){s&&c(t)}}}function Tt(a){let t,s;return t=new Ut({props:{"data-testid":"create-schedule",disabled:!Vt(),$$slots:{default:[ss]},$$scope:{ctx:a}}}),t.$on("click",a[10]),{c(){O(t.$$.fragment)},l(e){q(t.$$.fragment,e)},m(e,l){H(t,e,l),s=!0},p(e,l){const n={};l&131072&&(n.$$scope={dirty:l,ctx:e}),t.$set(n)},i(e){s||(g(t.$$.fragment,e),s=!0)},o(e){$(t.$$.fragment,e),s=!1},d(e){C(t,e)}}}function ss(a){let t=Q("schedules.create")+"",s;return{c(){s=J(t)},l(e){s=G(e,t)},m(e,l){S(e,s,l)},p:ce,d(e){e&&c(s)}}}function as(a){let t,s=Q("schedules.getting-started-docs-link-preface")+"",e,l,n,r,i=Q("schedules.getting-started-cli-link-preface")+"",o,u,d,I,D,N,F;n=new je({props:{target:"_external",href:"https://docs.temporal.io/workflows/#schedule",$$slots:{default:[ts]},$$scope:{ctx:a}}}),d=new je({props:{target:"_external",href:"https://docs.temporal.io/cli/schedule",$$slots:{default:[ls]},$$scope:{ctx:a}}});let _=!a[2]&&!a[5]&&Tt(a);return{c(){t=L("p"),e=J(s),l=U(),O(n.$$.fragment),r=U(),o=J(i),u=U(),O(d.$$.fragment),I=J("."),D=U(),_&&_.c(),N=fe()},l(f){t=B(f,"P",{});var m=j(t);e=G(m,s),l=W(m),q(n.$$.fragment,m),r=W(m),o=G(m,i),u=W(m),q(d.$$.fragment,m),I=G(m,"."),m.forEach(c),D=W(f),_&&_.l(f),N=fe()},m(f,m){S(f,t,m),P(t,e),P(t,l),H(n,t,null),P(t,r),P(t,o),P(t,u),H(d,t,null),P(t,I),S(f,D,m),_&&_.m(f,m),S(f,N,m),F=!0},p(f,m){const R={};m&131072&&(R.$$scope={dirty:m,ctx:f}),n.$set(R);const v={};m&131072&&(v.$$scope={dirty:m,ctx:f}),d.$set(v),!f[2]&&!f[5]?_?(_.p(f,m),m&36&&g(_,1)):(_=Tt(f),_.c(),g(_,1),_.m(N.parentNode,N)):_&&(re(),$(_,1,1,()=>{_=null}),ie())},i(f){F||(g(n.$$.fragment,f),g(d.$$.fragment,f),g(_),F=!0)},o(f){$(n.$$.fragment,f),$(d.$$.fragment,f),$(_),F=!1},d(f){f&&c(t),C(n),C(d),f&&c(D),_&&_.d(f),f&&c(N)}}}function ns(a){let t,s,e;return s=new Wt({props:{title:Q("schedules.empty-state-title"),error:a[2],$$slots:{default:[as]},$$scope:{ctx:a}}}),{c(){t=L("div"),O(s.$$.fragment),this.h()},l(l){t=B(l,"DIV",{class:!0,slot:!0});var n=j(t);q(s.$$.fragment,n),n.forEach(c),this.h()},h(){T(t,"class","my-12 flex flex-col items-center justify-start gap-2"),T(t,"slot","empty")},m(l,n){S(l,t,n),H(s,t,null),e=!0},p(l,n){const r={};n&4&&(r.error=l[2]),n&131110&&(r.$$scope={dirty:n,ctx:l}),s.$set(r)},i(l){e||(g(s.$$.fragment,l),e=!0)},o(l){$(s.$$.fragment,l),e=!1},d(l){l&&c(t),C(s)}}}function Nt(a){let t,s;return t=new Gl({props:{onFetch:a[4],onError:a[6],"aria-label":Q("common.schedules"),pageSizeSelectLabel:Q("common.per-page"),nextButtonLabel:Q("common.next"),previousButtonLabel:Q("common.previous"),emptyStateMessage:Q("schedules.empty-state-title"),fallbackErrorMessage:Q("schedules.error-message-fetching"),$$slots:{empty:[ns,({visibleItems:e})=>({13:e}),({visibleItems:e})=>e?8192:0],"action-top-left":[es,({visibleItems:e})=>({13:e}),({visibleItems:e})=>e?8192:0],header:[xl,({visibleItems:e})=>({13:e}),({visibleItems:e})=>e?8192:0],default:[Xl,({visibleItems:e})=>({13:e}),({visibleItems:e})=>e?8192:0]},$$scope:{ctx:a}}}),{c(){O(t.$$.fragment)},l(e){q(t.$$.fragment,e)},m(e,l){H(t,e,l),s=!0},p(e,l){const n={};l&16&&(n.onFetch=e[4]),l&139311&&(n.$$scope={dirty:l,ctx:e}),t.$set(n)},i(e){s||(g(t.$$.fragment,e),s=!0)},o(e){$(t.$$.fragment,e),s=!1},d(e){C(t,e)}}}function rs(a){let t=a[1],s,e,l=Nt(a);return{c(){l.c(),s=fe()},l(n){l.l(n),s=fe()},m(n,r){l.m(n,r),S(n,s,r),e=!0},p(n,[r]){r&2&&ve(t,t=n[1])?(re(),$(l,1,1,ce),ie(),l=Nt(n),l.c(),g(l,1),l.m(s.parentNode,s)):l.p(n,r)},i(n){e||(g(l),e=!0)},o(n){$(l),e=!1},d(n){n&&c(s),l.d(n)}}}function is(a,t,s){let e,l,n,r,i,o;we(a,We,f=>s(9,o=f));let u="";const d=f=>{var m,R;return s(2,u=(R=(m=f==null?void 0:f.body)===null||m===void 0?void 0:m.message)!==null&&R!==void 0?R:`${Q("schedules.error-message-fetching")}: ${f.status}: ${f.statusText}`)};let I=sl();we(a,I,f=>s(8,i=f));let D="";const N=()=>Me(Ce({namespace:e}));function F(f){D=f,s(0,D)}const _=()=>Me(Ce({namespace:e}));return a.$$.update=()=>{a.$$.dirty&512&&s(1,e=o.params.namespace),a.$$.dirty&258&&s(5,l=i.namespaceWriteDisabled(e)),a.$$.dirty&2&&s(4,n=()=>ll(e)),a.$$.dirty&1&&s(3,r=f=>D?f.filter(m=>m.scheduleId.toLowerCase().includes(D.toLowerCase())):f)},[D,e,u,r,n,l,d,I,i,o,N,F,_]}class os extends ke{constructor(t){super(),Ie(this,t,is,rs,ve,{})}}function fs(a){let t,s,e,l;return t=new Ht({props:{title:`Schedules | ${a[0].params.namespace}`,url:a[0].url.href}}),e=new os({}),{c(){O(t.$$.fragment),s=U(),O(e.$$.fragment)},l(n){q(t.$$.fragment,n),s=W(n),q(e.$$.fragment,n)},m(n,r){H(t,n,r),S(n,s,r),H(e,n,r),l=!0},p(n,[r]){const i={};r&1&&(i.title=`Schedules | ${n[0].params.namespace}`),r&1&&(i.url=n[0].url.href),t.$set(i)},i(n){l||(g(t.$$.fragment,n),g(e.$$.fragment,n),l=!0)},o(n){$(t.$$.fragment,n),$(e.$$.fragment,n),l=!1},d(n){C(t,n),n&&c(s),C(e,n)}}}function us(a,t,s){let e;return we(a,We,l=>s(0,e=l)),[e]}class js extends ke{constructor(t){super(),Ie(this,t,us,fs,ve,{})}}export{js as component}; diff --git a/ui/assets/local/_app/immutable/nodes/22.92bd0b9d.js b/ui/assets/local/_app/immutable/nodes/22.92bd0b9d.js deleted file mode 100644 index b0b03133ee..0000000000 --- a/ui/assets/local/_app/immutable/nodes/22.92bd0b9d.js +++ /dev/null @@ -1 +0,0 @@ -import{S as ke,b as Ie,a as ve,e as fe,f as S,n as ce,k as c,N as Be,U as Ke,m as L,w as J,p as B,q as j,x as G,u as T,L as P,y as _e,C as O,c as U,D as q,d as W,E as H,j as g,g as $,F as C,K as we,z as re,h as ie,a7 as De,G as me,H as pe,I as he,J as ge,v as ye,Z as Oe,Q as Ne,T as qe,ah as Vt,o as Kt,P as $e,r as zt,A as yt,a0 as Mt,a1 as Ot}from"../chunks/index.4e2fcbc7.js";import{p as We}from"../chunks/stores.14a97433.js";import{P as qt}from"../chunks/page-title.f9a44b80.js";import{g as Me}from"../chunks/navigation.10919bcf.js";import{W as Ht}from"../chunks/workflow-status.781aff44.js";import{L as je}from"../chunks/link.6803bb00.js";import{T as Fe}from"../chunks/table-row.0fafe278.js";import{t as Q}from"../chunks/translate.d23a91ae.js";import{t as Ct,r as Jt,b as Re}from"../chunks/time-format.88312c30.js";import{q as Gt,g as He,s as Ce}from"../chunks/route-for.80613b91.js";import{s as Je}from"../chunks/parse-with-big-int.0036a80a.js";import{T as Lt,a as Bt}from"../chunks/table-header-row.fec98b60.js";import{A as Qt}from"../chunks/alert.9612e524.js";import{a as jt,p as Zt,o as Ft,d as Ue,F as Rt}from"../chunks/pagination.ee9074bd.js";import{S as Xt}from"../chunks/index.8b5c6ff3.js";import{j as Ge,w as Yt}from"../chunks/singletons.fb5f332e.js";import{k as xt}from"../chunks/has.183130b0.js";import{B as Ut}from"../chunks/button.a45b0e55.js";import{E as Wt}from"../chunks/empty-state.721f6c59.js";import{I as el}from"../chunks/input.0bde2076.js";import{f as tl}from"../chunks/schedule-service.ba2f3be5.js";import{c as ll}from"../chunks/core-user.db246b6d.js";function Qe(a){let t,s,e,l=Je(a[0]||a[1])+"",n,r;return{c(){t=L("div"),s=L("code"),e=L("pre"),n=J(l),this.h()},l(i){t=B(i,"DIV",{class:!0});var o=j(t);s=B(o,"CODE",{});var u=j(s);e=B(u,"PRE",{});var d=j(e);n=G(d,l),d.forEach(c),u.forEach(c),o.forEach(c),this.h()},h(){T(t,"class",r="frequency "+a[2].class+" svelte-1f2qew1")},m(i,o){S(i,t,o),P(t,s),P(s,e),P(e,n)},p(i,o){o&3&&l!==(l=Je(i[0]||i[1])+"")&&_e(n,l),o&4&&r!==(r="frequency "+i[2].class+" svelte-1f2qew1")&&T(t,"class",r)},d(i){i&&c(t)}}}function sl(a){let t=[a[0],a[1]],s,e=Qe(a);return{c(){e.c(),s=fe()},l(l){e.l(l),s=fe()},m(l,n){e.m(l,n),S(l,s,n)},p(l,[n]){n&3&&ve(t,t=[l[0],l[1]])?(e.d(1),e=Qe(l),e.c(),e.m(s.parentNode,s)):e.p(l,n)},i:ce,o:ce,d(l){l&&c(s),e.d(l)}}}function al(a,t,s){let{calendar:e=void 0}=t,{interval:l=void 0}=t;return a.$$set=n=>{s(2,t=Be(Be({},t),Ke(n))),"calendar"in n&&s(0,e=n.calendar),"interval"in n&&s(1,l=n.interval)},t=Ke(t),[e,l,t]}class Ve extends ke{constructor(t){super(),Ie(this,t,al,sl,ve,{calendar:0,interval:1})}}function Ze(a,t,s){const e=a.slice();return e[14]=t[s],e}function Xe(a,t,s){const e=a.slice();return e[14]=t[s],e}function nl(a){let t=a[0].scheduleId+"",s;return{c(){s=J(t)},l(e){s=G(e,t)},m(e,l){S(e,s,l)},p(e,l){l&1&&t!==(t=e[0].scheduleId+"")&&_e(s,t)},d(e){e&&c(s)}}}function rl(a){var e;let t=Re((e=a[14])==null?void 0:e.actualTime,a[2],{relative:a[3]})+"",s;return{c(){s=J(t)},l(l){s=G(l,t)},m(l,n){S(l,s,n)},p(l,n){var r;n&13&&t!==(t=Re((r=l[14])==null?void 0:r.actualTime,l[2],{relative:l[3]})+"")&&_e(s,t)},d(l){l&&c(s)}}}function Ye(a){var n,r,i,o;let t,s,e,l;return s=new je({props:{href:He({namespace:a[4],workflow:(r=(n=a[14])==null?void 0:n.startWorkflowResult)==null?void 0:r.workflowId,run:(o=(i=a[14])==null?void 0:i.startWorkflowResult)==null?void 0:o.runId}),$$slots:{default:[rl]},$$scope:{ctx:a}}}),{c(){t=L("p"),O(s.$$.fragment),e=U()},l(u){t=B(u,"P",{});var d=j(t);q(s.$$.fragment,d),e=W(d),d.forEach(c)},m(u,d){S(u,t,d),H(s,t,null),P(t,e),l=!0},p(u,d){var D,N,F,_;const I={};d&1&&(I.href=He({namespace:u[4],workflow:(N=(D=u[14])==null?void 0:D.startWorkflowResult)==null?void 0:N.workflowId,run:(_=(F=u[14])==null?void 0:F.startWorkflowResult)==null?void 0:_.runId})),d&524301&&(I.$$scope={dirty:d,ctx:u}),s.$set(I)},i(u){l||(g(s.$$.fragment,u),l=!0)},o(u){$(s.$$.fragment,u),l=!1},d(u){u&&c(t),C(s)}}}function xe(a){let t,s=Re(a[14],a[2],{relative:a[3],relativeLabel:Q("common.from-now")})+"",e,l;return{c(){t=L("div"),e=J(s),l=U()},l(n){t=B(n,"DIV",{});var r=j(t);e=G(r,s),l=W(r),r.forEach(c)},m(n,r){S(n,t,r),P(t,e),P(t,l)},p(n,r){r&13&&s!==(s=Re(n[14],n[2],{relative:n[3],relativeLabel:Q("common.from-now")})+"")&&_e(e,s)},d(n){n&&c(t)}}}function il(a){var z,y,A,E,w,k,le,X,ee,ne;let t,s,e,l,n,r,i,o=(((A=(y=(z=a[0])==null?void 0:z.info)==null?void 0:y.workflowType)==null?void 0:A.name)??"")+"",u,d,I,D,N,F;s=new Ht({props:{status:(w=(E=a[0])==null?void 0:E.info)!=null&&w.paused?"Paused":"Running"}}),n=new je({props:{class:"text-base",$$slots:{default:[nl]},$$scope:{ctx:a}}}),n.$on("click",a[8]);let _=a[7]((le=(k=a[0])==null?void 0:k.info)==null?void 0:le.recentActions),f=[];for(let h=0;h<_.length;h+=1)f[h]=Ye(Xe(a,_,h));const m=h=>$(f[h],1,1,()=>{f[h]=null});let R=((ne=(ee=(X=a[0])==null?void 0:X.info)==null?void 0:ee.futureActionTimes)==null?void 0:ne.slice(0,5))??[],v=[];for(let h=0;hs(12,l=m)),we(a,Ct,m=>s(2,n=m)),we(a,Jt,m=>s(3,r=m));var i,o,u;let{namespace:d}=l.params,{schedule:I}=t;const D=(i=I==null?void 0:I.info)===null||i===void 0?void 0:i.spec,N=(o=D==null?void 0:D.structuredCalendar)===null||o===void 0?void 0:o[0],F=(u=D==null?void 0:D.interval)===null||u===void 0?void 0:u[0],_=m=>{var R;return(R=m==null?void 0:m.sort((v,z)=>new Date(z.actualTime).getTime()-new Date(v.actualTime).getTime()).slice(0,5))!==null&&R!==void 0?R:[]},f=()=>{Me(e)};return a.$$set=m=>{"schedule"in m&&s(0,I=m.schedule)},a.$$.update=()=>{a.$$.dirty&1&&s(1,e=Gt({namespace:d,scheduleId:I==null?void 0:I.scheduleId}))},[I,e,n,r,d,N,F,_,f]}class cl extends ke{constructor(t){super(),Ie(this,t,ul,fl,ve,{schedule:0})}}function _l(a){let t;const s=a[0].default,e=me(s,a,a[1],null);return{c(){e&&e.c()},l(l){e&&e.l(l)},m(l,n){e&&e.m(l,n),t=!0},p(l,n){e&&e.p&&(!t||n&2)&&pe(e,s,l,l[1],t?ge(s,l[1],n,null):he(l[1]),null)},i(l){t||(g(e,l),t=!0)},o(l){$(e,l),t=!1},d(l){e&&e.d(l)}}}function dl(a){let t,s=Q("common.schedules")+"",e;return{c(){t=L("caption"),e=J(s),this.h()},l(l){t=B(l,"CAPTION",{class:!0,slot:!0});var n=j(t);e=G(n,s),n.forEach(c),this.h()},h(){T(t,"class","sr-only"),T(t,"slot","caption")},m(l,n){S(l,t,n),P(t,e)},p:ce,d(l){l&&c(t)}}}function ml(a){let t,s=Q("common.status")+"",e,l,n,r=Q("schedules.name")+"",i,o,u,d=Q("common.workflow-type")+"",I,D,N,F=Q("schedules.recent-runs")+"",_,f,m,R=Q("schedules.upcoming-runs")+"",v;return{c(){t=L("th"),e=J(s),l=U(),n=L("th"),i=J(r),o=U(),u=L("th"),I=J(d),D=U(),N=L("th"),_=J(F),f=U(),m=L("th"),v=J(R),this.h()},l(z){t=B(z,"TH",{class:!0});var y=j(t);e=G(y,s),y.forEach(c),l=W(z),n=B(z,"TH",{class:!0});var A=j(n);i=G(A,r),A.forEach(c),o=W(z),u=B(z,"TH",{class:!0});var E=j(u);I=G(E,d),E.forEach(c),D=W(z),N=B(z,"TH",{class:!0});var w=j(N);_=G(w,F),w.forEach(c),f=W(z),m=B(z,"TH",{class:!0});var k=j(m);v=G(k,R),k.forEach(c),this.h()},h(){T(t,"class","w-28"),T(n,"class","md:w-80 xl:w-auto"),T(u,"class","w-60 max-md:hidden xl:w-80"),T(N,"class","w-56 max-xl:hidden"),T(m,"class","w-56 max-xl:hidden")},m(z,y){S(z,t,y),P(t,e),S(z,l,y),S(z,n,y),P(n,i),S(z,o,y),S(z,u,y),P(u,I),S(z,D,y),S(z,N,y),P(N,_),S(z,f,y),S(z,m,y),P(m,v)},p:ce,d(z){z&&c(t),z&&c(l),z&&c(n),z&&c(o),z&&c(u),z&&c(D),z&&c(N),z&&c(f),z&&c(m)}}}function pl(a){let t,s;return t=new Bt({props:{slot:"headers",$$slots:{default:[ml]},$$scope:{ctx:a}}}),{c(){O(t.$$.fragment)},l(e){q(t.$$.fragment,e)},m(e,l){H(t,e,l),s=!0},p(e,l){const n={};l&2&&(n.$$scope={dirty:l,ctx:e}),t.$set(n)},i(e){s||(g(t.$$.fragment,e),s=!0)},o(e){$(t.$$.fragment,e),s=!1},d(e){C(t,e)}}}function hl(a){let t,s;return t=new Lt({props:{class:"w-full table-fixed",$$slots:{headers:[pl],caption:[dl],default:[_l]},$$scope:{ctx:a}}}),{c(){O(t.$$.fragment)},l(e){q(t.$$.fragment,e)},m(e,l){H(t,e,l),s=!0},p(e,[l]){const n={};l&2&&(n.$$scope={dirty:l,ctx:e}),t.$set(n)},i(e){s||(g(t.$$.fragment,e),s=!0)},o(e){$(t.$$.fragment,e),s=!1},d(e){C(t,e)}}}function gl(a,t,s){let{$$slots:e={},$$scope:l}=t;return a.$$set=n=>{"$$scope"in n&&s(1,l=n.$$scope)},[e,l]}class vl extends ke{constructor(t){super(),Ie(this,t,gl,hl,ve,{})}}function et(a,t,s){const e=a.slice();return e[8]=t[s],e}function tt(a,t,s){const e=a.slice();return e[5]=t[s],e}function lt(a,t,s){const e=a.slice();return e[5]=t[s],e[7]=s,e}const bl=a=>({}),st=a=>({});function at(a){let t,s,e;return s=new Xt({props:{class:"h-4 w-full"}}),{c(){t=L("td"),O(s.$$.fragment),this.h()},l(l){t=B(l,"TD",{style:!0});var n=j(t);q(s.$$.fragment,n),n.forEach(c),this.h()},h(){ye(t,"padding-right","0.5rem")},m(l,n){S(l,t,n),H(s,t,null),e=!0},p:ce,i(l){e||(g(s.$$.fragment,l),e=!0)},o(l){$(s.$$.fragment,l),e=!1},d(l){l&&c(t),C(s)}}}function $l(a){let t,s,e=Array.from(new Array(a[1])),l=[];for(let r=0;r$(l[r],1,1,()=>{l[r]=null});return{c(){for(let r=0;r$(l[r],1,1,()=>{l[r]=null});return{c(){for(let r=0;r{"rows"in o&&s(0,n=o.rows),"columns"in o&&s(1,r=o.columns),"columnWidths"in o&&s(2,i=o.columnWidths),"$$scope"in o&&s(4,l=o.$$scope)},[n,r,i,e,l]}class Dl extends ke{constructor(t){super(),Ie(this,t,Pl,El,ve,{rows:0,columns:1,columnWidths:2})}}const it={key:jt,loading:!0,updating:!1,hasNext:!1,hasPrevious:!1,index:0,previousPageSize:Ue,pageSize:Ue,indexData:{},visibleItems:[],hasNextIndexData:!1,indexStart:0,indexEnd:0,activeIndex:0},ot=a=>{const t=a[0];if(!t)return Ue;const s=parseInt(t.toString());return isNaN(s)?Ue:s},Al=(a,t=void 0)=>{if(t){const s=parseInt(t.toString());return isNaN(s)?ot(a):s}else return ot(a)};function Tl(a=Ft,t=void 0){const s=Al(a,t),e=Yt({...it,previousPageSize:s,pageSize:s}),{set:l,update:n}=e,r=Ge([We],([_])=>{const f=_.url.searchParams.get(jt);return f?Zt(f):void 0}),{subscribe:i}=Ge([e,r],([_,f])=>{var y,A,E;const m=((y=_.indexData[_.index])==null?void 0:y.items)??[],R=((A=_.indexData[_.index])==null?void 0:A.start)??0,v=((E=_.indexData[_.index])==null?void 0:E.end)??0,z=Boolean(_.indexData[_.index+1]);return{..._,visibleItems:m,indexStart:R,indexEnd:v,hasNextIndexData:z,pageSize:f??_.pageSize}}),o=(_,f,m)=>{const R=m.index,v={...m,indexData:{...m.indexData},hasNext:Boolean(_),updating:!1,loading:!1};return f.length?(v.indexData[R]?(v.index=R+1,v.indexData[v.index]={nextToken:_,start:v.indexData[R].end+1,end:v.indexData[R].end+f.length,items:f},v.hasPrevious=!0):(v.indexData[R]={nextToken:_,start:1,end:f.length,items:f},v.hasPrevious=!1),v):{...v,hasNext:!1}},u=_=>{var m;const f={..._,index:_.index+1,hasPrevious:!0,loading:!1,updating:!1};return(m=f.indexData[f.index])!=null&&m.nextToken||(f.hasNext=!1),f},d=_=>{const f={..._,hasNext:!0,updating:!1,loading:!1,index:_.index>0?_.index-1:0};return f.index===0&&(f.hasPrevious=!1),f},I=_=>{var R,v;const f={..._},m=((v=(R=f.indexData[f.index])==null?void 0:R.items)==null?void 0:v.length)??0;return f.activeIndex{const f={..._},m=f.activeIndex>=1?f.activeIndex-1:0;return f.activeIndex=m,f},N=(_,f)=>({..._,activeIndex:f}),F=(_,f)=>({..._,pageSize:f,previousPageSize:f,index:0,indexData:{},loading:!0,updating:!1});return{subscribe:i,nextPageWithItems:(_,f)=>n(m=>o(_,f,m)),nextPage:()=>n(_=>u(_)),previousPage:()=>n(_=>d(_)),setUpdating:()=>n(_=>({..._,updating:!0})),reset:()=>l(it),resetPageSize:_=>n(f=>F(f,_)),nextRow:()=>n(_=>I(_)),previousRow:()=>n(_=>D(_)),setActiveIndex:_=>n(f=>N(f,_))}}const Nl=a=>({updating:a&128,visibleItems:a&128,activeIndex:a&128}),ft=a=>({updating:a[7].updating,visibleItems:a[7].visibleItems,activeIndex:a[7].activeIndex,setActiveIndex:a[10].setActiveIndex}),zl=a=>({updating:a&128,visibleItems:a&128,activeIndex:a&128}),ut=a=>({updating:a[7].updating,visibleItems:a[7].visibleItems,activeIndex:a[7].activeIndex,setActiveIndex:a[10].setActiveIndex}),Ll=a=>({updating:a&128,visibleItems:a&128,activeIndex:a&128}),ct=a=>({updating:a[7].updating,visibleItems:a[7].visibleItems,activeIndex:a[7].activeIndex,setActiveIndex:a[10].setActiveIndex}),Bl=a=>({updating:a&128,visibleItems:a&128,activeIndex:a&128}),_t=a=>({updating:a[7].updating,visibleItems:a[7].visibleItems,activeIndex:a[7].activeIndex,setActiveIndex:a[10].setActiveIndex}),jl=a=>({updating:a&128,visibleItems:a&128,activeIndex:a&128}),dt=a=>({updating:a[7].updating,visibleItems:a[7].visibleItems,activeIndex:a[7].activeIndex,setActiveIndex:a[10].setActiveIndex}),Fl=a=>({updating:a&128,visibleItems:a&128,activeIndex:a&128}),mt=a=>({updating:a[7].updating,visibleItems:a[7].visibleItems,activeIndex:a[7].activeIndex,setActiveIndex:a[10].setActiveIndex}),Rl=a=>({updating:a&128,visibleItems:a&128,activeIndex:a&128}),pt=a=>({updating:a[7].updating,visibleItems:a[7].visibleItems,activeIndex:a[7].activeIndex,setActiveIndex:a[10].setActiveIndex}),Ul=a=>({updating:a&128,visibleItems:a&128,activeIndex:a&128}),ht=a=>({updating:a[7].updating,visibleItems:a[7].visibleItems,activeIndex:a[7].activeIndex,setActiveIndex:a[10].setActiveIndex}),Wl=a=>({updating:a&128,visibleItems:a&128,activeIndex:a&128}),gt=a=>({updating:a[7].updating,visibleItems:a[7].visibleItems,activeIndex:a[7].activeIndex,setActiveIndex:a[10].setActiveIndex});function Vl(a){var e;let t,s;return t=new Qt({props:{bold:!0,intent:"error",class:"mb-10",title:((e=a[8])==null?void 0:e.message)??a[4]}}),{c(){O(t.$$.fragment)},l(l){q(t.$$.fragment,l)},m(l,n){H(t,l,n),s=!0},p(l,n){var i;const r={};n&272&&(r.title=((i=l[8])==null?void 0:i.message)??l[4]),t.$set(r)},i(l){s||(g(t.$$.fragment,l),s=!0)},o(l){$(t.$$.fragment,l),s=!1},d(l){C(t,l)}}}function Kl(a){let t;const s=a[24].error,e=me(s,a,a[23],gt);return{c(){e&&e.c()},l(l){e&&e.l(l)},m(l,n){e&&e.m(l,n),t=!0},p(l,n){e&&e.p&&(!t||n&8388736)&&pe(e,s,l,l[23],t?ge(s,l[23],n,Wl):he(l[23]),gt)},i(l){t||(g(e,l),t=!0)},o(l){$(e,l),t=!1},d(l){e&&e.d(l)}}}function vt(a){let t,s,e,l,n,r,i,o,u=a[7].indexStart+"",d,I,D=a[7].indexEnd+"",N,F,_,f,m,R,v,z,y,A=a[0].length&&bt(a),E=a[1]&&$t(a);return{c(){A&&A.c(),t=U(),s=L("div"),e=L("button"),l=L("span"),r=U(),i=L("div"),o=L("p"),d=J(u),I=J("–"),N=J(D),F=U(),E&&E.c(),_=U(),f=L("button"),m=L("span"),this.h()},l(w){A&&A.l(w),t=W(w),s=B(w,"DIV",{class:!0});var k=j(s);e=B(k,"BUTTON",{class:!0,"aria-label":!0});var le=j(e);l=B(le,"SPAN",{class:!0}),j(l).forEach(c),le.forEach(c),r=W(k),i=B(k,"DIV",{class:!0});var X=j(i);o=B(X,"P",{});var ee=j(o);d=G(ee,u),I=G(ee,"–"),N=G(ee,D),ee.forEach(c),F=W(X),E&&E.l(X),X.forEach(c),_=W(k),f=B(k,"BUTTON",{class:!0,"aria-label":!0});var ne=j(f);m=B(ne,"SPAN",{class:!0}),j(m).forEach(c),ne.forEach(c),k.forEach(c),this.h()},h(){T(l,"class","arrow arrow-left svelte-1jw2xtb"),$e(l,"arrow-left-disabled",!a[7].hasPrevious),T(e,"class","caret svelte-1jw2xtb"),e.disabled=n=!a[7].hasPrevious,T(e,"aria-label",a[5]),T(i,"class","flex gap-1"),T(m,"class","arrow arrow-right svelte-1jw2xtb"),$e(m,"arrow-right-disabled",!a[7].hasNext),T(f,"class","caret svelte-1jw2xtb"),f.disabled=R=!a[7].hasNext,T(f,"aria-label",a[6]),T(s,"class","flex items-center justify-center gap-3")},m(w,k){A&&A.m(w,k),S(w,t,k),S(w,s,k),P(s,e),P(e,l),P(s,r),P(s,i),P(i,o),P(o,d),P(o,I),P(o,N),P(i,F),E&&E.m(i,null),P(s,_),P(s,f),P(f,m),v=!0,z||(y=[Ne(e,"click",a[10].previousPage),Ne(f,"click",a[11])],z=!0)},p(w,k){w[0].length?A?(A.p(w,k),k&1&&g(A,1)):(A=bt(w),A.c(),g(A,1),A.m(t.parentNode,t)):A&&(re(),$(A,1,1,()=>{A=null}),ie()),(!v||k&128)&&$e(l,"arrow-left-disabled",!w[7].hasPrevious),(!v||k&128&&n!==(n=!w[7].hasPrevious))&&(e.disabled=n),(!v||k&32)&&T(e,"aria-label",w[5]),(!v||k&128)&&u!==(u=w[7].indexStart+"")&&_e(d,u),(!v||k&128)&&D!==(D=w[7].indexEnd+"")&&_e(N,D),w[1]?E?E.p(w,k):(E=$t(w),E.c(),E.m(i,null)):E&&(E.d(1),E=null),(!v||k&128)&&$e(m,"arrow-right-disabled",!w[7].hasNext),(!v||k&128&&R!==(R=!w[7].hasNext))&&(f.disabled=R),(!v||k&64)&&T(f,"aria-label",w[6])},i(w){v||(g(A),v=!0)},o(w){$(A),v=!1},d(w){A&&A.d(w),w&&c(t),w&&c(s),E&&E.d(),z=!1,zt(y)}}}function bt(a){let t,s;return t=new Rt({props:{label:a[2],parameter:a[7].key,value:String(a[7].pageSize),options:a[0]}}),{c(){O(t.$$.fragment)},l(e){q(t.$$.fragment,e)},m(e,l){H(t,e,l),s=!0},p(e,l){const n={};l&4&&(n.label=e[2]),l&128&&(n.parameter=e[7].key),l&128&&(n.value=String(e[7].pageSize)),l&1&&(n.options=e[0]),t.$set(n)},i(e){s||(g(t.$$.fragment,e),s=!0)},o(e){$(t.$$.fragment,e),s=!1},d(e){C(t,e)}}}function $t(a){let t,s,e;return{c(){t=L("p"),s=J("of "),e=J(a[1])},l(l){t=B(l,"P",{});var n=j(t);s=G(n,"of "),e=G(n,a[1]),n.forEach(c)},m(l,n){S(l,t,n),P(t,s),P(t,e)},p(l,n){n&2&&_e(e,l[1])},d(l){l&&c(t)}}}function yl(a){let t;const s=a[24].default,e=me(s,a,a[23],ct);return{c(){e&&e.c()},l(l){e&&e.l(l)},m(l,n){e&&e.m(l,n),t=!0},p(l,n){e&&e.p&&(!t||n&8388736)&&pe(e,s,l,l[23],t?ge(s,l[23],n,Ll):he(l[23]),ct)},i(l){t||(g(e,l),t=!0)},o(l){$(e,l),t=!1},d(l){e&&e.d(l)}}}function Ml(a){let t;const s=a[24].empty,e=me(s,a,a[23],_t),l=e||ql(a);return{c(){l&&l.c()},l(n){l&&l.l(n)},m(n,r){l&&l.m(n,r),t=!0},p(n,r){e?e.p&&(!t||r&8388736)&&pe(e,s,n,n[23],t?ge(s,n[23],r,Bl):he(n[23]),_t):l&&l.p&&(!t||r&8)&&l.p(n,t?r:-1)},i(n){t||(g(l,n),t=!0)},o(n){$(l,n),t=!1},d(n){l&&l.d(n)}}}function Ol(a){let t,s;return t=new Dl({props:{rows:15}}),{c(){O(t.$$.fragment)},l(e){q(t.$$.fragment,e)},m(e,l){H(t,e,l),s=!0},p:ce,i(e){s||(g(t.$$.fragment,e),s=!0)},o(e){$(t.$$.fragment,e),s=!1},d(e){C(t,e)}}}function ql(a){let t;return{c(){t=J(a[3])},l(s){t=G(s,a[3])},m(s,e){S(s,t,e)},p(s,e){e&8&&_e(t,s[3])},d(s){s&&c(t)}}}function wt(a){let t,s,e,l,n,r,i,o,u=a[7].indexStart+"",d,I,D=a[7].indexEnd+"",N,F,_,f,m,R,v,z,y,A=a[0].length&&kt(a),E=a[1]&&It(a);return{c(){A&&A.c(),t=U(),s=L("div"),e=L("button"),l=L("span"),r=U(),i=L("div"),o=L("p"),d=J(u),I=J("–"),N=J(D),F=U(),E&&E.c(),_=U(),f=L("button"),m=L("span"),this.h()},l(w){A&&A.l(w),t=W(w),s=B(w,"DIV",{class:!0});var k=j(s);e=B(k,"BUTTON",{class:!0,"aria-label":!0});var le=j(e);l=B(le,"SPAN",{class:!0}),j(l).forEach(c),le.forEach(c),r=W(k),i=B(k,"DIV",{class:!0});var X=j(i);o=B(X,"P",{});var ee=j(o);d=G(ee,u),I=G(ee,"–"),N=G(ee,D),ee.forEach(c),F=W(X),E&&E.l(X),X.forEach(c),_=W(k),f=B(k,"BUTTON",{class:!0,"aria-label":!0});var ne=j(f);m=B(ne,"SPAN",{class:!0}),j(m).forEach(c),ne.forEach(c),k.forEach(c),this.h()},h(){T(l,"class","arrow arrow-left svelte-1jw2xtb"),$e(l,"arrow-left-disabled",!a[7].hasPrevious),T(e,"class","caret svelte-1jw2xtb"),e.disabled=n=!a[7].hasPrevious,T(e,"aria-label",a[5]),T(i,"class","flex gap-1"),T(m,"class","arrow arrow-right svelte-1jw2xtb"),$e(m,"arrow-right-disabled",!a[7].hasNext),T(f,"class","caret svelte-1jw2xtb"),f.disabled=R=!a[7].hasNext,T(f,"aria-label",a[6]),T(s,"class","flex items-center justify-center gap-3")},m(w,k){A&&A.m(w,k),S(w,t,k),S(w,s,k),P(s,e),P(e,l),P(s,r),P(s,i),P(i,o),P(o,d),P(o,I),P(o,N),P(i,F),E&&E.m(i,null),P(s,_),P(s,f),P(f,m),v=!0,z||(y=[Ne(e,"click",a[10].previousPage),Ne(f,"click",a[11])],z=!0)},p(w,k){w[0].length?A?(A.p(w,k),k&1&&g(A,1)):(A=kt(w),A.c(),g(A,1),A.m(t.parentNode,t)):A&&(re(),$(A,1,1,()=>{A=null}),ie()),(!v||k&128)&&$e(l,"arrow-left-disabled",!w[7].hasPrevious),(!v||k&128&&n!==(n=!w[7].hasPrevious))&&(e.disabled=n),(!v||k&32)&&T(e,"aria-label",w[5]),(!v||k&128)&&u!==(u=w[7].indexStart+"")&&_e(d,u),(!v||k&128)&&D!==(D=w[7].indexEnd+"")&&_e(N,D),w[1]?E?E.p(w,k):(E=It(w),E.c(),E.m(i,null)):E&&(E.d(1),E=null),(!v||k&128)&&$e(m,"arrow-right-disabled",!w[7].hasNext),(!v||k&128&&R!==(R=!w[7].hasNext))&&(f.disabled=R),(!v||k&64)&&T(f,"aria-label",w[6])},i(w){v||(g(A),v=!0)},o(w){$(A),v=!1},d(w){A&&A.d(w),w&&c(t),w&&c(s),E&&E.d(),z=!1,zt(y)}}}function kt(a){let t,s;return t=new Rt({props:{label:a[2],parameter:a[7].key,value:String(a[7].pageSize),options:a[0]}}),{c(){O(t.$$.fragment)},l(e){q(t.$$.fragment,e)},m(e,l){H(t,e,l),s=!0},p(e,l){const n={};l&4&&(n.label=e[2]),l&128&&(n.parameter=e[7].key),l&128&&(n.value=String(e[7].pageSize)),l&1&&(n.options=e[0]),t.$set(n)},i(e){s||(g(t.$$.fragment,e),s=!0)},o(e){$(t.$$.fragment,e),s=!1},d(e){C(t,e)}}}function It(a){let t,s,e;return{c(){t=L("p"),s=J("of "),e=J(a[1])},l(l){t=B(l,"P",{});var n=j(t);s=G(n,"of "),e=G(n,a[1]),n.forEach(c)},m(l,n){S(l,t,n),P(t,s),P(t,e)},p(l,n){n&2&&_e(e,l[1])},d(l){l&&c(t)}}}function Hl(a){let t,s,e,l,n,r,i,o,u,d,I,D,N,F,_,f,m,R,v,z,y,A,E,w,k;const le=[Kl,Vl],X=[];function ee(p,K){return p[8]&&p[13].error?0:p[8]?1:-1}~(t=ee(a))&&(s=X[t]=le[t](a));const ne=a[24].header,h=me(ne,a,a[23],ht),b=a[24]["action-top-left"],V=me(b,a,a[23],pt),ue=a[24]["action-top-center"],Y=me(ue,a,a[23],mt);let Z=a[7].visibleItems.length&&vt(a);const oe=a[24]["action-top-right"],se=me(oe,a,a[23],dt),Ae=[Ol,Ml,yl],de=[];function Te(p,K){return p[7].loading?0:p[9]?1:2}F=Te(a),_=de[F]=Ae[F](a);const Se=a[24]["action-bottom-left"],ae=me(Se,a,a[23],ut);let x=a[7].visibleItems.length&&wt(a);const M=a[24]["action-bottom-right"],te=me(M,a,a[23],ft);return{c(){s&&s.c(),e=U(),h&&h.c(),l=U(),n=L("div"),r=L("div"),i=L("div"),V&&V.c(),o=U(),u=L("nav"),Y&&Y.c(),d=U(),Z&&Z.c(),I=U(),se&&se.c(),N=U(),_.c(),f=U(),m=L("nav"),ae&&ae.c(),R=U(),v=L("div"),x&&x.c(),z=U(),te&&te.c(),this.h()},l(p){s&&s.l(p),e=W(p),h&&h.l(p),l=W(p),n=B(p,"DIV",{class:!0});var K=j(n);r=B(K,"DIV",{class:!0});var be=j(r);i=B(be,"DIV",{class:!0});var Ee=j(i);V&&V.l(Ee),Ee.forEach(c),o=W(be),u=B(be,"NAV",{class:!0,"aria-label":!0});var Pe=j(u);Y&&Y.l(Pe),d=W(Pe),Z&&Z.l(Pe),I=W(Pe),se&&se.l(Pe),Pe.forEach(c),be.forEach(c),N=W(K),_.l(K),f=W(K),m=B(K,"NAV",{class:!0,"aria-label":!0});var ze=j(m);ae&&ae.l(ze),R=W(ze),v=B(ze,"DIV",{class:!0});var Le=j(v);x&&x.l(Le),z=W(Le),te&&te.l(Le),Le.forEach(c),ze.forEach(c),K.forEach(c),this.h()},h(){T(i,"class","flex items-center gap-1 lg:gap-2 xl:gap-3"),T(u,"class","flex flex-col justify-end gap-4 md:flex-row"),T(u,"aria-label",D=a[14]["aria-label"]+" 1"),T(r,"class","flex flex-col items-center justify-between gap-4 lg:flex-row"),T(v,"class","flex gap-4"),T(m,"class",y=Oe(`flex ${a[13]["action-bottom-left"]?"justify-between":"justify-end"}`)+" svelte-1jw2xtb"),T(m,"aria-label",A=a[14]["aria-label"]+" 2"),T(n,"class","relative mb-8 flex flex-col gap-4")},m(p,K){~t&&X[t].m(p,K),S(p,e,K),h&&h.m(p,K),S(p,l,K),S(p,n,K),P(n,r),P(r,i),V&&V.m(i,null),P(r,o),P(r,u),Y&&Y.m(u,null),P(u,d),Z&&Z.m(u,null),P(u,I),se&&se.m(u,null),P(n,N),de[F].m(n,null),P(n,f),P(n,m),ae&&ae.m(m,null),P(m,R),P(m,v),x&&x.m(v,null),P(v,z),te&&te.m(v,null),E=!0,w||(k=Ne(window,"keydown",a[12]),w=!0)},p(p,[K]){let be=t;t=ee(p),t===be?~t&&X[t].p(p,K):(s&&(re(),$(X[be],1,1,()=>{X[be]=null}),ie()),~t?(s=X[t],s?s.p(p,K):(s=X[t]=le[t](p),s.c()),g(s,1),s.m(e.parentNode,e)):s=null),h&&h.p&&(!E||K&8388736)&&pe(h,ne,p,p[23],E?ge(ne,p[23],K,Ul):he(p[23]),ht),V&&V.p&&(!E||K&8388736)&&pe(V,b,p,p[23],E?ge(b,p[23],K,Rl):he(p[23]),pt),Y&&Y.p&&(!E||K&8388736)&&pe(Y,ue,p,p[23],E?ge(ue,p[23],K,Fl):he(p[23]),mt),p[7].visibleItems.length?Z?(Z.p(p,K),K&128&&g(Z,1)):(Z=vt(p),Z.c(),g(Z,1),Z.m(u,I)):Z&&(re(),$(Z,1,1,()=>{Z=null}),ie()),se&&se.p&&(!E||K&8388736)&&pe(se,oe,p,p[23],E?ge(oe,p[23],K,jl):he(p[23]),dt),(!E||K&16384&&D!==(D=p[14]["aria-label"]+" 1"))&&T(u,"aria-label",D);let Ee=F;F=Te(p),F===Ee?de[F].p(p,K):(re(),$(de[Ee],1,1,()=>{de[Ee]=null}),ie(),_=de[F],_?_.p(p,K):(_=de[F]=Ae[F](p),_.c()),g(_,1),_.m(n,f)),ae&&ae.p&&(!E||K&8388736)&&pe(ae,Se,p,p[23],E?ge(Se,p[23],K,zl):he(p[23]),ut),p[7].visibleItems.length?x?(x.p(p,K),K&128&&g(x,1)):(x=wt(p),x.c(),g(x,1),x.m(v,z)):x&&(re(),$(x,1,1,()=>{x=null}),ie()),te&&te.p&&(!E||K&8388736)&&pe(te,M,p,p[23],E?ge(M,p[23],K,Nl):he(p[23]),ft),(!E||K&8192&&y!==(y=Oe(`flex ${p[13]["action-bottom-left"]?"justify-between":"justify-end"}`)+" svelte-1jw2xtb"))&&T(m,"class",y),(!E||K&16384&&A!==(A=p[14]["aria-label"]+" 2"))&&T(m,"aria-label",A)},i(p){E||(g(s),g(h,p),g(V,p),g(Y,p),g(Z),g(se,p),g(_),g(ae,p),g(x),g(te,p),E=!0)},o(p){$(s),$(h,p),$(V,p),$(Y,p),$(Z),$(se,p),$(_),$(ae,p),$(x),$(te,p),E=!1},d(p){~t&&X[t].d(p),p&&c(e),h&&h.d(p),p&&c(l),p&&c(n),V&&V.d(p),Y&&Y.d(p),Z&&Z.d(),se&&se.d(p),de[F].d(),ae&&ae.d(p),x&&x.d(),te&&te.d(p),w=!1,k()}}}function Cl(a,t,s){let e,l;const n=["onError","onFetch","onShiftUp","onShiftDown","onSpace","pageSizeOptions","defaultPageSize","total","pageSizeSelectLabel","emptyStateMessage","fallbackErrorMessage","itemsKeyname","previousButtonLabel","nextButtonLabel"];let r=qe(t,n),i,{$$slots:o={},$$scope:u}=t;const d=Vt(o);let{onError:I=void 0}=t,{onFetch:D}=t,{onShiftUp:N=void 0}=t,{onShiftDown:F=void 0}=t,{onSpace:_=void 0}=t,{pageSizeOptions:f=Ft}=t,{defaultPageSize:m=void 0}=t,{total:R=""}=t,{pageSizeSelectLabel:v}=t,{emptyStateMessage:z}=t,{fallbackErrorMessage:y}=t,{itemsKeyname:A="items"}=t,{previousButtonLabel:E}=t,{nextButtonLabel:w}=t,k=Tl(f,m);we(a,k,b=>s(7,i=b));let le;function X(){le&&s(8,le=void 0)}Kt(()=>{ee()});async function ee(){const b=await D();try{const V=await b(i.pageSize,""),{nextPageToken:ue}=V,Y=V[A]||[];k.nextPageWithItems(ue,Y)}catch(V){s(8,le=V),I&&I(le)}}async function ne(){if(X(),k.setUpdating(),i.hasNextIndexData)k.nextPage();else try{const V=await(await D())(i.pageSize,i.indexData[i.index].nextToken),{nextPageToken:ue}=V,Y=V[A]||[];k.nextPageWithItems(ue,Y)}catch(b){xt(b)&&I&&I(b)}}async function h(b){const V=b.shiftKey;switch(b.code){case"ArrowRight":case"KeyL":i.hasNext&&!i.updating&&ne();break;case"ArrowLeft":case"KeyH":i.hasPrevious&&!i.updating&&k.previousPage();break;case"ArrowUp":case"KeyK":V&&N?(N(b),k.reset(),ee()):k.previousRow();break;case"ArrowDown":case"KeyJ":V&&F?(F(b),k.reset(),ee()):k.nextRow();break;case"Space":_&&_(b);break}}return a.$$set=b=>{t=Be(Be({},t),Ke(b)),s(14,r=qe(t,n)),"onError"in b&&s(15,I=b.onError),"onFetch"in b&&s(16,D=b.onFetch),"onShiftUp"in b&&s(17,N=b.onShiftUp),"onShiftDown"in b&&s(18,F=b.onShiftDown),"onSpace"in b&&s(19,_=b.onSpace),"pageSizeOptions"in b&&s(0,f=b.pageSizeOptions),"defaultPageSize"in b&&s(20,m=b.defaultPageSize),"total"in b&&s(1,R=b.total),"pageSizeSelectLabel"in b&&s(2,v=b.pageSizeSelectLabel),"emptyStateMessage"in b&&s(3,z=b.emptyStateMessage),"fallbackErrorMessage"in b&&s(4,y=b.fallbackErrorMessage),"itemsKeyname"in b&&s(21,A=b.itemsKeyname),"previousButtonLabel"in b&&s(5,E=b.previousButtonLabel),"nextButtonLabel"in b&&s(6,w=b.nextButtonLabel),"$$scope"in b&&s(23,u=b.$$scope)},a.$$.update=()=>{a.$$.dirty&128&&s(9,e=i.visibleItems.length===0&&!i.loading),a.$$.dirty&128&&s(22,l=!i.loading&&i.pageSize!==i.previousPageSize),a.$$.dirty&4194432&&l&&(k.resetPageSize(i.pageSize),ee())},[f,R,v,z,y,E,w,i,le,e,k,ne,h,d,r,I,D,N,F,_,m,A,l,u,o]}class Jl extends ke{constructor(t){super(),Ie(this,t,Cl,Hl,ve,{onError:15,onFetch:16,onShiftUp:17,onShiftDown:18,onSpace:19,pageSizeOptions:0,defaultPageSize:20,total:1,pageSizeSelectLabel:2,emptyStateMessage:3,fallbackErrorMessage:4,itemsKeyname:21,previousButtonLabel:5,nextButtonLabel:6})}}function St(a,t,s){const e=a.slice();return e[14]=t[s],e}function Et(a){let t,s;return t=new Fe({props:{$$slots:{default:[Gl]},$$scope:{ctx:a}}}),{c(){O(t.$$.fragment)},l(e){q(t.$$.fragment,e)},m(e,l){H(t,e,l),s=!0},p(e,l){const n={};l&131072&&(n.$$scope={dirty:l,ctx:e}),t.$set(n)},i(e){s||(g(t.$$.fragment,e),s=!0)},o(e){$(t.$$.fragment,e),s=!1},d(e){C(t,e)}}}function Gl(a){let t,s,e,l,n,r,i,o;return l=new Wt({props:{title:Q("schedules.empty-state-title"),content:Q("schedules.empty-state-description")}}),{c(){t=L("td"),s=U(),e=L("td"),O(l.$$.fragment),n=U(),r=L("td"),i=U(),this.h()},l(u){t=B(u,"TD",{class:!0}),j(t).forEach(c),s=W(u),e=B(u,"TD",{colspan:!0});var d=j(e);q(l.$$.fragment,d),d.forEach(c),n=W(u),r=B(u,"TD",{class:!0}),j(r).forEach(c),i=W(u),this.h()},h(){T(t,"class","hidden xl:table-cell"),T(e,"colspan","3"),T(r,"class","hidden xl:table-cell")},m(u,d){S(u,t,d),S(u,s,d),S(u,e,d),H(l,e,null),S(u,n,d),S(u,r,d),S(u,i,d),o=!0},p:ce,i(u){o||(g(l.$$.fragment,u),o=!0)},o(u){$(l.$$.fragment,u),o=!1},d(u){u&&c(t),u&&c(s),u&&c(e),C(l),u&&c(n),u&&c(r),u&&c(i)}}}function Pt(a){let t,s;return t=new cl({props:{schedule:a[14]}}),{c(){O(t.$$.fragment)},l(e){q(t.$$.fragment,e)},m(e,l){H(t,e,l),s=!0},p(e,l){const n={};l&8200&&(n.schedule=e[14]),t.$set(n)},i(e){s||(g(t.$$.fragment,e),s=!0)},o(e){$(t.$$.fragment,e),s=!1},d(e){C(t,e)}}}function Ql(a){let t,s,e=a[3](a[13]),l=[];for(let i=0;i$(l[i],1,1,()=>{l[i]=null});let r=null;return e.length||(r=Et(a)),{c(){for(let i=0;i{r=null}),ie()):(r=Et(i),r.c(),g(r,1),r.m(t.parentNode,t))}},i(i){if(!s){for(let o=0;o{o=null}),ie())},i(u){i||(g(o),i=!0)},o(u){$(o),i=!1},d(u){u&&c(t),o&&o.d()}}}function At(a){let t,s,e,l;function n(i){a[11](i)}let r={icon:"search",type:"search",label:Q("schedules.name"),labelHidden:!0,id:"schedule-name-filter",placeholder:Q("schedules.name"),clearable:!0,clearButtonLabel:Q("common.clear-input-button-label")};return a[0]!==void 0&&(r.value=a[0]),s=new el({props:r}),yt.push(()=>Mt(s,"value",n)),s.$on("submit",ce),{c(){t=L("div"),O(s.$$.fragment),this.h()},l(i){t=B(i,"DIV",{class:!0});var o=j(t);q(s.$$.fragment,o),o.forEach(c),this.h()},h(){T(t,"class","w-96")},m(i,o){S(i,t,o),H(s,t,null),l=!0},p(i,o){const u={};!e&&o&1&&(e=!0,u.value=i[0],Ot(()=>e=!1)),s.$set(u)},i(i){l||(g(s.$$.fragment,i),l=!0)},o(i){$(s.$$.fragment,i),l=!1},d(i){i&&c(t),C(s)}}}function xl(a){let t,s,e=a[13].length&&At(a);return{c(){e&&e.c(),t=fe()},l(l){e&&e.l(l),t=fe()},m(l,n){e&&e.m(l,n),S(l,t,n),s=!0},p(l,n){l[13].length?e?(e.p(l,n),n&8192&&g(e,1)):(e=At(l),e.c(),g(e,1),e.m(t.parentNode,t)):e&&(re(),$(e,1,1,()=>{e=null}),ie())},i(l){s||(g(e),s=!0)},o(l){$(e),s=!1},d(l){e&&e.d(l),l&&c(t)}}}function es(a){let t=Q("schedules.getting-started-docs-link")+"",s;return{c(){s=J(t)},l(e){s=G(e,t)},m(e,l){S(e,s,l)},p:ce,d(e){e&&c(s)}}}function ts(a){let t;return{c(){t=J("Temporal CLI")},l(s){t=G(s,"Temporal CLI")},m(s,e){S(s,t,e)},d(s){s&&c(t)}}}function Tt(a){let t,s;return t=new Ut({props:{"data-testid":"create-schedule",$$slots:{default:[ls]},$$scope:{ctx:a}}}),t.$on("click",a[10]),{c(){O(t.$$.fragment)},l(e){q(t.$$.fragment,e)},m(e,l){H(t,e,l),s=!0},p(e,l){const n={};l&131072&&(n.$$scope={dirty:l,ctx:e}),t.$set(n)},i(e){s||(g(t.$$.fragment,e),s=!0)},o(e){$(t.$$.fragment,e),s=!1},d(e){C(t,e)}}}function ls(a){let t=Q("schedules.create")+"",s;return{c(){s=J(t)},l(e){s=G(e,t)},m(e,l){S(e,s,l)},p:ce,d(e){e&&c(s)}}}function ss(a){let t,s=Q("schedules.getting-started-docs-link-preface")+"",e,l,n,r,i=Q("schedules.getting-started-cli-link-preface")+"",o,u,d,I,D,N,F;n=new je({props:{target:"_external",href:"https://docs.temporal.io/workflows/#schedule",$$slots:{default:[es]},$$scope:{ctx:a}}}),d=new je({props:{target:"_external",href:"https://docs.temporal.io/cli/schedule",$$slots:{default:[ts]},$$scope:{ctx:a}}});let _=!a[2]&&!a[5]&&Tt(a);return{c(){t=L("p"),e=J(s),l=U(),O(n.$$.fragment),r=U(),o=J(i),u=U(),O(d.$$.fragment),I=J("."),D=U(),_&&_.c(),N=fe()},l(f){t=B(f,"P",{});var m=j(t);e=G(m,s),l=W(m),q(n.$$.fragment,m),r=W(m),o=G(m,i),u=W(m),q(d.$$.fragment,m),I=G(m,"."),m.forEach(c),D=W(f),_&&_.l(f),N=fe()},m(f,m){S(f,t,m),P(t,e),P(t,l),H(n,t,null),P(t,r),P(t,o),P(t,u),H(d,t,null),P(t,I),S(f,D,m),_&&_.m(f,m),S(f,N,m),F=!0},p(f,m){const R={};m&131072&&(R.$$scope={dirty:m,ctx:f}),n.$set(R);const v={};m&131072&&(v.$$scope={dirty:m,ctx:f}),d.$set(v),!f[2]&&!f[5]?_?(_.p(f,m),m&36&&g(_,1)):(_=Tt(f),_.c(),g(_,1),_.m(N.parentNode,N)):_&&(re(),$(_,1,1,()=>{_=null}),ie())},i(f){F||(g(n.$$.fragment,f),g(d.$$.fragment,f),g(_),F=!0)},o(f){$(n.$$.fragment,f),$(d.$$.fragment,f),$(_),F=!1},d(f){f&&c(t),C(n),C(d),f&&c(D),_&&_.d(f),f&&c(N)}}}function as(a){let t,s,e;return s=new Wt({props:{title:Q("schedules.empty-state-title"),error:a[2],$$slots:{default:[ss]},$$scope:{ctx:a}}}),{c(){t=L("div"),O(s.$$.fragment),this.h()},l(l){t=B(l,"DIV",{class:!0,slot:!0});var n=j(t);q(s.$$.fragment,n),n.forEach(c),this.h()},h(){T(t,"class","my-12 flex flex-col items-center justify-start gap-2"),T(t,"slot","empty")},m(l,n){S(l,t,n),H(s,t,null),e=!0},p(l,n){const r={};n&4&&(r.error=l[2]),n&131110&&(r.$$scope={dirty:n,ctx:l}),s.$set(r)},i(l){e||(g(s.$$.fragment,l),e=!0)},o(l){$(s.$$.fragment,l),e=!1},d(l){l&&c(t),C(s)}}}function Nt(a){let t,s;return t=new Jl({props:{onFetch:a[4],onError:a[6],"aria-label":Q("common.schedules"),pageSizeSelectLabel:Q("common.per-page"),nextButtonLabel:Q("common.next"),previousButtonLabel:Q("common.previous"),emptyStateMessage:Q("schedules.empty-state-title"),fallbackErrorMessage:Q("schedules.error-message-fetching"),$$slots:{empty:[as,({visibleItems:e})=>({13:e}),({visibleItems:e})=>e?8192:0],"action-top-left":[xl,({visibleItems:e})=>({13:e}),({visibleItems:e})=>e?8192:0],header:[Yl,({visibleItems:e})=>({13:e}),({visibleItems:e})=>e?8192:0],default:[Zl,({visibleItems:e})=>({13:e}),({visibleItems:e})=>e?8192:0]},$$scope:{ctx:a}}}),{c(){O(t.$$.fragment)},l(e){q(t.$$.fragment,e)},m(e,l){H(t,e,l),s=!0},p(e,l){const n={};l&16&&(n.onFetch=e[4]),l&139311&&(n.$$scope={dirty:l,ctx:e}),t.$set(n)},i(e){s||(g(t.$$.fragment,e),s=!0)},o(e){$(t.$$.fragment,e),s=!1},d(e){C(t,e)}}}function ns(a){let t=a[1],s,e,l=Nt(a);return{c(){l.c(),s=fe()},l(n){l.l(n),s=fe()},m(n,r){l.m(n,r),S(n,s,r),e=!0},p(n,[r]){r&2&&ve(t,t=n[1])?(re(),$(l,1,1,ce),ie(),l=Nt(n),l.c(),g(l,1),l.m(s.parentNode,s)):l.p(n,r)},i(n){e||(g(l),e=!0)},o(n){$(l),e=!1},d(n){n&&c(s),l.d(n)}}}function rs(a,t,s){let e,l,n,r,i,o;we(a,We,f=>s(9,o=f));let u="";const d=f=>{var m,R;return s(2,u=(R=(m=f==null?void 0:f.body)===null||m===void 0?void 0:m.message)!==null&&R!==void 0?R:`${Q("schedules.error-message-fetching")}: ${f.status}: ${f.statusText}`)};let I=ll();we(a,I,f=>s(8,i=f));let D="";const N=()=>Me(Ce({namespace:e}));function F(f){D=f,s(0,D)}const _=()=>Me(Ce({namespace:e}));return a.$$.update=()=>{a.$$.dirty&512&&s(1,e=o.params.namespace),a.$$.dirty&258&&s(5,l=i.namespaceWriteDisabled(e)),a.$$.dirty&2&&s(4,n=()=>tl(e)),a.$$.dirty&1&&s(3,r=f=>D?f.filter(m=>m.scheduleId.toLowerCase().includes(D.toLowerCase())):f)},[D,e,u,r,n,l,d,I,i,o,N,F,_]}class is extends ke{constructor(t){super(),Ie(this,t,rs,ns,ve,{})}}function os(a){let t,s,e,l;return t=new qt({props:{title:`Schedules | ${a[0].params.namespace}`,url:a[0].url.href}}),e=new is({}),{c(){O(t.$$.fragment),s=U(),O(e.$$.fragment)},l(n){q(t.$$.fragment,n),s=W(n),q(e.$$.fragment,n)},m(n,r){H(t,n,r),S(n,s,r),H(e,n,r),l=!0},p(n,[r]){const i={};r&1&&(i.title=`Schedules | ${n[0].params.namespace}`),r&1&&(i.url=n[0].url.href),t.$set(i)},i(n){l||(g(t.$$.fragment,n),g(e.$$.fragment,n),l=!0)},o(n){$(t.$$.fragment,n),$(e.$$.fragment,n),l=!1},d(n){C(t,n),n&&c(s),C(e,n)}}}function fs(a,t,s){let e;return we(a,We,l=>s(0,e=l)),[e]}class Ls extends ke{constructor(t){super(),Ie(this,t,fs,os,ve,{})}}export{Ls as component}; diff --git a/ui/assets/local/_app/immutable/nodes/23.1afbc253.js b/ui/assets/local/_app/immutable/nodes/23.1afbc253.js new file mode 100644 index 0000000000..9bb86ea584 --- /dev/null +++ b/ui/assets/local/_app/immutable/nodes/23.1afbc253.js @@ -0,0 +1 @@ +import{S as Ee,b as Ie,a as Te,m as b,w as M,c as A,p as E,q as I,x as q,k as i,d as C,u as R,f as w,L as p,y as J,n as B,C as N,D as F,E as Q,j as D,g as V,F as U,G as xl,P as bl,H as es,I as ts,J as ls,N as El,U as Il,K as ne,e as le,z as Ce,aa as ss,ab as rs,h as Me,ar as Je,as as jl,a7 as Bl,a5 as Qe,V as ns,A as Ue,a0 as je,a1 as Be,_ as Tl,Q as Dl,$ as os,r as as}from"../chunks/index.4e2fcbc7.js";import{p as Ol}from"../chunks/stores.0e7b7e35.js";import{P as us}from"../chunks/page-title.f9a44b80.js";import{w as is}from"../chunks/singletons.13b3836d.js";import{g as Ne}from"../chunks/navigation.b77a045a.js";import{A as fs}from"../chunks/accordion.c09eb7a4.js";import{t as $}from"../chunks/translate.d23a91ae.js";import{S as cs,l as Oe}from"../chunks/schedules.cfaf5e30.js";import{E as ms}from"../chunks/empty-state.721f6c59.js";import{L as Fe}from"../chunks/link.6803bb00.js";import{h as Rl}from"../chunks/workflow-service.e2f4a06b.js";import{t as xe,r as et,b as we}from"../chunks/time-format.fa373b4c.js";import{d as ye}from"../chunks/encode-uri.e26747e0.js";import{u as ds,g as Pl,d as ze,v as ps}from"../chunks/route-for.084c7a46.js";import{W as zl}from"../chunks/workflow-status.781aff44.js";import{T as hs,W as _s}from"../chunks/translate.b598b7ef.js";import{B as $s}from"../chunks/button.a45b0e55.js";import{L as Gl}from"../chunks/loading.95801385.js";import{d as Ye}from"../chunks/menu.716bcd2f.js";import{M as Ze}from"../chunks/modal.19f8e4b8.js";import{R as gs,a as vs}from"../chunks/radio-input.9ccf281c.js";import{S as ws}from"../chunks/split-button.015e101a.js";import{a as Ge,d as ks,u as bs,p as Es,t as Is}from"../chunks/schedule-service.3e5d769d.js";import{c as Ts}from"../chunks/core-user.d32cd5bb.js";import{g as Ds,a as Rs,r as Sl}from"../chunks/workflows.73426400.js";import{w as Ps}from"../chunks/write-actions-are-allowed.008c7180.js";function Ss(s){let e,l,t=$("common.notes")+"",r,n,o,a;return{c(){e=b("div"),l=b("h2"),r=M(t),n=A(),o=b("p"),a=M(s[0]),this.h()},l(u){e=E(u,"DIV",{});var c=I(e);l=E(c,"H2",{class:!0});var f=I(l);r=q(f,t),f.forEach(i),n=C(c),o=E(c,"P",{});var g=I(o);a=q(g,s[0]),g.forEach(i),c.forEach(i),this.h()},h(){R(l,"class","mb-4 text-2xl")},m(u,c){w(u,e,c),p(e,l),p(l,r),p(e,n),p(e,o),p(o,a)},p(u,[c]){c&1&&J(a,u[0])},i:B,o:B,d(u){u&&i(e)}}}function Vs(s,e,l){let{notes:t=""}=e;return s.$$set=r=>{"notes"in r&&l(0,t=r.notes)},[t]}class Ws extends Ee{constructor(e){super(),Ie(this,e,Vs,Ss,Te,{notes:0})}}function Vl(s){var o;let e,l=$("schedules.remaining-actions")+"",t,r=(((o=s[1])==null?void 0:o.remainingActions)??$("common.none"))+"",n;return{c(){e=b("p"),t=M(l),n=M(r)},l(a){e=E(a,"P",{});var u=I(e);t=q(u,l),n=q(u,r),u.forEach(i)},m(a,u){w(a,e,u),p(e,t),p(e,n)},p(a,u){var c;u&2&&r!==(r=(((c=a[1])==null?void 0:c.remainingActions)??$("common.none"))+"")&&J(n,r)},d(a){a&&i(e)}}}function As(s){var ue,De,ge,ie,ke,te,Re;let e,l=$("schedules.start-time")+"",t,r,n=(((ue=s[0])==null?void 0:ue.startTime)??$("common.none"))+"",o,a,u,c=$("schedules.end-time")+"",f,g=(((De=s[0])==null?void 0:De.endTime)??$("common.none"))+"",k,m,h,_=$("schedules.jitter")+"",d,v=(((ge=s[0])==null?void 0:ge.jitter)??$("common.none"))+"",W,Z,K,me=$("schedules.exclusion-calendar")+"",x,oe=(((ke=(ie=s[0])==null?void 0:ie.excludeCalendar)==null?void 0:ke[0])??$("common.none"))+"",X,de,ae,y,ee=$("schedules.overlap-policy")+"",se,$e=(((te=s[2])==null?void 0:te.overlapPolicy)??$("common.none"))+"",re,z=((Re=s[1])==null?void 0:Re.limitedActions)&&Vl(s);return{c(){e=b("p"),t=M(l),r=A(),o=M(n),a=A(),u=b("p"),f=M(c),k=M(g),m=A(),h=b("p"),d=M(_),W=M(v),Z=A(),K=b("p"),x=M(me),X=M(oe),de=A(),z&&z.c(),ae=A(),y=b("p"),se=M(ee),re=M($e)},l(P){e=E(P,"P",{});var L=I(e);t=q(L,l),r=C(L),o=q(L,n),L.forEach(i),a=C(P),u=E(P,"P",{});var pe=I(u);f=q(pe,c),k=q(pe,g),pe.forEach(i),m=C(P),h=E(P,"P",{});var fe=I(h);d=q(fe,_),W=q(fe,v),fe.forEach(i),Z=C(P),K=E(P,"P",{});var G=I(K);x=q(G,me),X=q(G,oe),G.forEach(i),de=C(P),z&&z.l(P),ae=C(P),y=E(P,"P",{});var he=I(y);se=q(he,ee),re=q(he,$e),he.forEach(i)},m(P,L){w(P,e,L),p(e,t),p(e,r),p(e,o),w(P,a,L),w(P,u,L),p(u,f),p(u,k),w(P,m,L),w(P,h,L),p(h,d),p(h,W),w(P,Z,L),w(P,K,L),p(K,x),p(K,X),w(P,de,L),z&&z.m(P,L),w(P,ae,L),w(P,y,L),p(y,se),p(y,re)},p(P,L){var pe,fe,G,he,Se,H,O;L&1&&n!==(n=(((pe=P[0])==null?void 0:pe.startTime)??$("common.none"))+"")&&J(o,n),L&1&&g!==(g=(((fe=P[0])==null?void 0:fe.endTime)??$("common.none"))+"")&&J(k,g),L&1&&v!==(v=(((G=P[0])==null?void 0:G.jitter)??$("common.none"))+"")&&J(W,v),L&1&&oe!==(oe=(((Se=(he=P[0])==null?void 0:he.excludeCalendar)==null?void 0:Se[0])??$("common.none"))+"")&&J(X,oe),(H=P[1])!=null&&H.limitedActions?z?z.p(P,L):(z=Vl(P),z.c(),z.m(ae.parentNode,ae)):z&&(z.d(1),z=null),L&4&&$e!==($e=(((O=P[2])==null?void 0:O.overlapPolicy)??$("common.none"))+"")&&J(re,$e)},d(P){P&&i(e),P&&i(a),P&&i(u),P&&i(m),P&&i(h),P&&i(Z),P&&i(K),P&&i(de),z&&z.d(P),P&&i(ae),P&&i(y)}}}function Cs(s){let e,l,t,r;return e=new Ws({props:{notes:s[3]}}),t=new fs({props:{title:$("schedules.advanced-settings"),$$slots:{default:[As]},$$scope:{ctx:s}}}),{c(){N(e.$$.fragment),l=A(),N(t.$$.fragment)},l(n){F(e.$$.fragment,n),l=C(n),F(t.$$.fragment,n)},m(n,o){Q(e,n,o),w(n,l,o),Q(t,n,o),r=!0},p(n,[o]){const a={};o&8&&(a.notes=n[3]),e.$set(a);const u={};o&23&&(u.$$scope={dirty:o,ctx:n}),t.$set(u)},i(n){r||(D(e.$$.fragment,n),D(t.$$.fragment,n),r=!0)},o(n){V(e.$$.fragment,n),V(t.$$.fragment,n),r=!1},d(n){U(e,n),n&&i(l),U(t,n)}}}function Ms(s,e,l){let{spec:t}=e,{state:r}=e,{policies:n}=e,{notes:o=""}=e;return s.$$set=a=>{"spec"in a&&l(0,t=a.spec),"state"in a&&l(1,r=a.state),"policies"in a&&l(2,n=a.policies),"notes"in a&&l(3,o=a.notes)},[t,r,n,o]}class qs extends Ee{constructor(e){super(),Ie(this,e,Ms,Cs,Te,{spec:0,state:1,policies:2,notes:3})}}function Hs(s){let e,l,t;const r=s[3].default,n=xl(r,s,s[2],null);return{c(){e=b("div"),n&&n.c(),this.h()},l(o){e=E(o,"DIV",{class:!0});var a=I(e);n&&n.l(a),a.forEach(i),this.h()},h(){R(e,"class",l="panel bg-white "+s[1].class+" svelte-11fqqfg"),bl(e,"error",s[0])},m(o,a){w(o,e,a),n&&n.m(e,null),t=!0},p(o,[a]){n&&n.p&&(!t||a&4)&&es(n,r,o,o[2],t?ls(r,o[2],a,null):ts(o[2]),null),(!t||a&2&&l!==(l="panel bg-white "+o[1].class+" svelte-11fqqfg"))&&R(e,"class",l),(!t||a&3)&&bl(e,"error",o[0])},i(o){t||(D(n,o),t=!0)},o(o){V(n,o),t=!1},d(o){o&&i(e),n&&n.d(o)}}}function Ls(s,e,l){let{$$slots:t={},$$scope:r}=e,{error:n=!1}=e;return s.$$set=o=>{l(1,e=El(El({},e),Il(o))),"error"in o&&l(0,n=o.error),"$$scope"in o&&l(2,r=o.$$scope)},e=Il(e),[n,e,r,t]}class Ke extends Ee{constructor(e){super(),Ie(this,e,Ls,Hs,Te,{error:0})}}function Ns(s){let e,l=$("schedules.error-title")+"",t,r,n,o;return{c(){e=b("p"),t=M(l),r=A(),n=b("p"),o=M(s[0]),this.h()},l(a){e=E(a,"P",{class:!0});var u=I(e);t=q(u,l),u.forEach(i),r=C(a),n=E(a,"P",{class:!0});var c=I(n);o=q(c,s[0]),c.forEach(i),this.h()},h(){R(e,"class","error-text svelte-1lke5yx"),R(n,"class","error-text svelte-1lke5yx")},m(a,u){w(a,e,u),p(e,t),w(a,r,u),w(a,n,u),p(n,o)},p(a,u){u&1&&J(o,a[0])},d(a){a&&i(e),a&&i(r),a&&i(n)}}}function Fs(s){let e,l;return e=new Ke({props:{error:!0,$$slots:{default:[Ns]},$$scope:{ctx:s}}}),{c(){N(e.$$.fragment)},l(t){F(e.$$.fragment,t)},m(t,r){Q(e,t,r),l=!0},p(t,[r]){const n={};r&3&&(n.$$scope={dirty:r,ctx:t}),e.$set(n)},i(t){l||(D(e.$$.fragment,t),l=!0)},o(t){V(e.$$.fragment,t),l=!1},d(t){U(e,t)}}}function Qs(s,e,l){let{error:t=""}=e;return s.$$set=r=>{"error"in r&&l(0,t=r.error)},[t]}class Jl extends Ee{constructor(e){super(),Ie(this,e,Qs,Fs,Te,{error:0})}}function Us(s){let e,l=$("schedules.schedule-spec")+"",t,r,n,o,a;return o=new cs({props:{calendar:s[0],interval:s[1],class:"text-base"}}),{c(){e=b("h2"),t=M(l),r=A(),n=b("div"),N(o.$$.fragment),this.h()},l(u){e=E(u,"H2",{class:!0});var c=I(e);t=q(c,l),c.forEach(i),r=C(u),n=E(u,"DIV",{class:!0});var f=I(n);F(o.$$.fragment,f),f.forEach(i),this.h()},h(){R(e,"class","mb-4 text-2xl"),R(n,"class","pr-2")},m(u,c){w(u,e,c),p(e,t),w(u,r,c),w(u,n,c),Q(o,n,null),a=!0},p(u,c){const f={};c&1&&(f.calendar=u[0]),c&2&&(f.interval=u[1]),o.$set(f)},i(u){a||(D(o.$$.fragment,u),a=!0)},o(u){V(o.$$.fragment,u),a=!1},d(u){u&&i(e),u&&i(r),u&&i(n),U(o)}}}function js(s){let e,l;return e=new Ke({props:{$$slots:{default:[Us]},$$scope:{ctx:s}}}),{c(){N(e.$$.fragment)},l(t){F(e.$$.fragment,t)},m(t,r){Q(e,t,r),l=!0},p(t,[r]){const n={};r&7&&(n.$$scope={dirty:r,ctx:t}),e.$set(n)},i(t){l||(D(e.$$.fragment,t),l=!0)},o(t){V(e.$$.fragment,t),l=!1},d(t){U(e,t)}}}function Bs(s,e,l){let{calendar:t=void 0}=e,{interval:r=void 0}=e;return s.$$set=n=>{"calendar"in n&&l(0,t=n.calendar),"interval"in n&&l(1,r=n.interval)},[t,r]}class Os extends Ee{constructor(e){super(),Ie(this,e,Bs,js,Te,{calendar:0,interval:1})}}function Wl(s,e,l){const t=s.slice();return t[7]=e[l],t}function zs(s){let e=$("common.view-all-runs")+"",l;return{c(){l=M(e)},l(t){l=q(t,e)},m(t,r){w(t,l,r)},p:B,d(t){t&&i(l)}}}function Gs(s){let e,l,t,r,n=s[7].startWorkflowResult.workflowId+"",o,a,u,c,f=we(s[7].actualTime,s[3],{relative:s[4]})+"",g;return{c(){e=b("div"),l=b("div"),t=A(),r=b("div"),o=M(n),a=A(),u=b("div"),c=b("p"),g=M(f),this.h()},l(k){e=E(k,"DIV",{class:!0});var m=I(e);l=E(m,"DIV",{class:!0}),I(l).forEach(i),t=C(m),r=E(m,"DIV",{class:!0});var h=I(r);o=q(h,n),h.forEach(i),a=C(m),u=E(m,"DIV",{class:!0});var _=I(u);c=E(_,"P",{});var d=I(c);g=q(d,f),d.forEach(i),_.forEach(i),m.forEach(i),this.h()},h(){R(l,"class","w-28"),R(r,"class","w-96"),R(u,"class","ml-auto"),R(e,"class","row svelte-lqpjgu")},m(k,m){w(k,e,m),p(e,l),p(e,t),p(e,r),p(r,o),p(e,a),p(e,u),p(u,c),p(c,g)},p(k,m){m&1&&n!==(n=k[7].startWorkflowResult.workflowId+"")&&J(o,n),m&25&&f!==(f=we(k[7].actualTime,k[3],{relative:k[4]})+"")&&J(g,f)},i:B,o:B,d(k){k&&i(e)}}}function Js(s){let e,l,t,r,n,o,a,u,c,f=we(s[7].actualTime,s[3],{relative:s[4]})+"",g,k;return t=new zl({props:{status:s[10].status}}),o=new Fe({props:{newTab:!0,href:Pl({workflow:s[7].startWorkflowResult.workflowId,run:s[7].startWorkflowResult.runId,namespace:s[1]}),$$slots:{default:[Ks]},$$scope:{ctx:s}}}),{c(){e=b("div"),l=b("div"),N(t.$$.fragment),r=A(),n=b("div"),N(o.$$.fragment),a=A(),u=b("div"),c=b("p"),g=M(f),this.h()},l(m){e=E(m,"DIV",{class:!0});var h=I(e);l=E(h,"DIV",{class:!0});var _=I(l);F(t.$$.fragment,_),_.forEach(i),r=C(h),n=E(h,"DIV",{class:!0});var d=I(n);F(o.$$.fragment,d),d.forEach(i),a=C(h),u=E(h,"DIV",{class:!0});var v=I(u);c=E(v,"P",{});var W=I(c);g=q(W,f),W.forEach(i),v.forEach(i),h.forEach(i),this.h()},h(){R(l,"class","w-28"),R(n,"class","mx-2 w-auto break-words"),R(u,"class","ml-auto"),R(e,"class","row svelte-lqpjgu")},m(m,h){w(m,e,h),p(e,l),Q(t,l,null),p(e,r),p(e,n),Q(o,n,null),p(e,a),p(e,u),p(u,c),p(c,g),k=!0},p(m,h){const _={};h&3&&(_.status=m[10].status),t.$set(_);const d={};h&3&&(d.href=Pl({workflow:m[7].startWorkflowResult.workflowId,run:m[7].startWorkflowResult.runId,namespace:m[1]})),h&2049&&(d.$$scope={dirty:h,ctx:m}),o.$set(d),(!k||h&25)&&f!==(f=we(m[7].actualTime,m[3],{relative:m[4]})+"")&&J(g,f)},i(m){k||(D(t.$$.fragment,m),D(o.$$.fragment,m),k=!0)},o(m){V(t.$$.fragment,m),V(o.$$.fragment,m),k=!1},d(m){m&&i(e),U(t),U(o)}}}function Ks(s){let e=s[7].startWorkflowResult.workflowId+"",l;return{c(){l=M(e)},l(t){l=q(t,e)},m(t,r){w(t,l,r)},p(t,r){r&1&&e!==(e=t[7].startWorkflowResult.workflowId+"")&&J(l,e)},d(t){t&&i(l)}}}function Xs(s){return{c:B,l:B,m:B,p:B,i:B,o:B,d:B}}function Al(s,e){let l,t,r,n,o={ctx:e,current:null,token:null,hasCatch:!0,pending:Xs,then:Js,catch:Gs,value:10,blocks:[,,,]};return Je(r=Rl({namespace:e[1],workflowId:ye(e[7].startWorkflowResult.workflowId),runId:e[7].startWorkflowResult.runId},fetch),o),{key:s,first:null,c(){l=le(),t=le(),o.block.c(),this.h()},l(a){l=le(),t=le(),o.block.l(a),this.h()},h(){this.first=l},m(a,u){w(a,l,u),w(a,t,u),o.block.m(a,o.anchor=u),o.mount=()=>t.parentNode,o.anchor=t,n=!0},p(a,u){e=a,o.ctx=e,u&3&&r!==(r=Rl({namespace:e[1],workflowId:ye(e[7].startWorkflowResult.workflowId),runId:e[7].startWorkflowResult.runId},fetch))&&Je(r,o)||jl(o,e,u)},i(a){n||(D(o.block),n=!0)},o(a){for(let u=0;u<3;u+=1){const c=o.blocks[u];V(c)}n=!1},d(a){a&&i(l),a&&i(t),o.block.d(a),o.token=null,o=null}}}function Cl(s){let e,l;return e=new ms({props:{title:$("schedules.recent-runs-empty-state-title")}}),{c(){N(e.$$.fragment)},l(t){F(e.$$.fragment,t)},m(t,r){Q(e,t,r),l=!0},p:B,i(t){l||(D(e.$$.fragment,t),l=!0)},o(t){V(e.$$.fragment,t),l=!1},d(t){U(e,t)}}}function Ys(s){let e,l,t=$("schedules.recent-runs")+"",r,n,o,a,u=[],c=new Map,f,g,k;o=new Fe({props:{$$slots:{default:[zs]},$$scope:{ctx:s}}}),o.$on("click",s[6]);let m=s[5](s[0]);const h=d=>{var v,W;return(W=(v=d[7])==null?void 0:v.startWorkflowResult)==null?void 0:W.workflowId};for(let d=0;d{_=null}),Me()):_?(_.p(d,v),v&1&&D(_,1)):(_=Cl(),_.c(),D(_,1),_.m(g.parentNode,g))},i(d){if(!k){D(o.$$.fragment,d);for(let v=0;vl(3,t=f)),ne(s,et,f=>l(4,r=f));let{recentRuns:n=[]}=e,{namespace:o}=e,{workflowQuery:a}=e;const u=f=>{var g,k;return(k=(g=f==null?void 0:f.sort((m,h)=>new Date(h.actualTime).getTime()-new Date(m.actualTime).getTime()))===null||g===void 0?void 0:g.slice(0,5))!==null&&k!==void 0?k:[]},c=()=>{Ne(ds({namespace:o,query:a}))};return s.$$set=f=>{"recentRuns"in f&&l(0,n=f.recentRuns),"namespace"in f&&l(1,o=f.namespace),"workflowQuery"in f&&l(2,a=f.workflowQuery)},[n,o,a,t,r,u,c]}class xs extends Ee{constructor(e){super(),Ie(this,e,ys,Zs,Te,{recentRuns:0,namespace:1,workflowQuery:2})}}function Ml(s,e,l){const t=s.slice();return t[3]=e[l],t}function ql(s){let e,l,t=we(s[3],s[1],{relative:s[2],relativeLabel:$("common.from-now")})+"",r,n;return{c(){e=b("div"),l=b("p"),r=M(t),n=A(),this.h()},l(o){e=E(o,"DIV",{class:!0});var a=I(e);l=E(a,"P",{});var u=I(l);r=q(u,t),u.forEach(i),n=C(a),a.forEach(i),this.h()},h(){R(e,"class","row svelte-kbuuws")},m(o,a){w(o,e,a),p(e,l),p(l,r),p(e,n)},p(o,a){a&7&&t!==(t=we(o[3],o[1],{relative:o[2],relativeLabel:$("common.from-now")})+"")&&J(r,t)},d(o){o&&i(e)}}}function er(s){let e,l=$("schedules.upcoming-runs")+"",t,r,n,o=s[0].slice(0,5),a=[];for(let u=0;ul(1,t=o)),ne(s,et,o=>l(2,r=o));let{futureRuns:n=[]}=e;return s.$$set=o=>{"futureRuns"in o&&l(0,n=o.futureRuns)},[n,t,r]}class sr extends Ee{constructor(e){super(),Ie(this,e,lr,tr,Te,{futureRuns:0})}}function Hl(s,e,l){const t=s.slice();return t[45]=e[l],t}function rr(s){var m;let e,l,t,r,n,o,a,u,c,f,g,k;return t=new Fe({props:{icon:"chevron-left",$$slots:{default:[nr]},$$scope:{ctx:s}}}),t.$on("click",s[40]),g=new Jl({props:{error:(m=s[12])==null?void 0:m.message}}),{c(){e=b("header"),l=b("div"),N(t.$$.fragment),r=A(),n=b("h1"),o=M(s[14]),a=A(),u=b("p"),c=M(s[13]),f=A(),N(g.$$.fragment),this.h()},l(h){e=E(h,"HEADER",{class:!0});var _=I(e);l=E(_,"DIV",{class:!0});var d=I(l);F(t.$$.fragment,d),r=C(d),n=E(d,"H1",{class:!0,"data-testid":!0});var v=I(n);o=q(v,s[14]),v.forEach(i),a=C(d),u=E(d,"P",{class:!0});var W=I(u);c=q(W,s[13]),W.forEach(i),d.forEach(i),_.forEach(i),f=C(h),F(g.$$.fragment,h),this.h()},h(){R(n,"class","mt-8 select-all text-2xl font-medium"),R(n,"data-testid","schedule-name"),R(u,"class","text-sm"),R(l,"class","relative flex flex-col gap-1"),R(e,"class","mb-8")},m(h,_){w(h,e,_),p(e,l),Q(t,l,null),p(l,r),p(l,n),p(n,o),p(l,a),p(l,u),p(u,c),w(h,f,_),Q(g,h,_),k=!0},p(h,_){var W;const d={};_[1]&131072&&(d.$$scope={dirty:_,ctx:h}),t.$set(d);const v={};_[0]&1&&(v.error=(W=h[12])==null?void 0:W.message),g.$set(v)},i(h){k||(D(t.$$.fragment,h),D(g.$$.fragment,h),k=!0)},o(h){V(t.$$.fragment,h),V(g.$$.fragment,h),k=!1},d(h){h&&i(e),U(t),h&&i(f),U(g,h)}}}function nr(s){let e=$("schedules.back-to-schedules")+"",l;return{c(){l=M(e)},l(t){l=q(t,e)},m(t,r){w(t,l,r)},p:B,d(t){t&&i(l)}}}function or(s){let e,l,t,r;const n=[ur,ar],o=[];function a(u,c){return u[6]?0:1}return e=a(s),l=o[e]=n[e](s),{c(){l.c(),t=le()},l(u){l.l(u),t=le()},m(u,c){o[e].m(u,c),w(u,t,c),r=!0},p(u,c){let f=e;e=a(u),e===f?o[e].p(u,c):(Ce(),V(o[f],1,1,()=>{o[f]=null}),Me(),l=o[e],l?l.p(u,c):(l=o[e]=n[e](u),l.c()),D(l,1),l.m(t.parentNode,t))},i(u){r||(D(l),r=!0)},o(u){V(l),r=!1},d(u){o[e].d(u),u&&i(t)}}}function ar(s){var st,rt,nt,ot,at,ut,it,ft,ct,mt,dt,pt,ht,_t,$t,gt,vt,wt,kt,bt,Et,It,Tt,Dt,Rt,Pt,St,Vt,Wt,At,Ct,Mt,qt,Ht,Lt,Nt,Ft;let e,l,t,r,n,o,a,u,c,f,g,k,m=((at=(ot=(nt=(rt=(st=s[44])==null?void 0:st.schedule)==null?void 0:rt.action)==null?void 0:nt.startWorkflow)==null?void 0:ot.workflowType)==null?void 0:at.name)+"",h,_,d,v,W=$("common.created",{created:we((it=(ut=s[44])==null?void 0:ut.info)==null?void 0:it.createTime,s[7],{relative:s[8]})})+"",Z,K,me,x,oe,X,de,ae,y,ee,se,$e,re,z,ue,De,ge,ie,ke,te,Re,P,L,pe,fe,G,he,Se,H;t=new Fe({props:{icon:"chevron-left",$$slots:{default:[ir]},$$scope:{ctx:s}}}),t.$on("click",s[27]),f=new zl({props:{status:(ft=s[44])!=null&&ft.schedule.state.paused?"Paused":"Running"}});let O=((mt=(ct=s[44])==null?void 0:ct.info)==null?void 0:mt.updateTime)&&Ll(s);x=new ws({props:{position:"right",label:(ht=(pt=(dt=s[44])==null?void 0:dt.schedule)==null?void 0:pt.state)!=null&&ht.paused?$("schedules.unpause"):$("schedules.pause"),menuLabel:$("schedules.schedule-actions"),id:"schedule-actions",disabled:s[20],$$slots:{default:[dr]},$$scope:{ctx:s}}}),x.$on("click",s[30]);let j=(($t=(_t=s[44])==null?void 0:_t.info)==null?void 0:$t.invalidScheduleError)&&Nl(s),Y=s[9]&&Fl(s);se=new xs({props:{namespace:s[13],recentRuns:(vt=(gt=s[44])==null?void 0:gt.info)==null?void 0:vt.recentActions,workflowQuery:s[15]}}),re=new sr({props:{futureRuns:(kt=(wt=s[44])==null?void 0:wt.info)==null?void 0:kt.futureActionTimes}}),ue=new qs({props:{spec:(Et=(bt=s[44])==null?void 0:bt.schedule)==null?void 0:Et.spec,state:(Tt=(It=s[44])==null?void 0:It.schedule)==null?void 0:Tt.state,policies:(Rt=(Dt=s[44])==null?void 0:Dt.schedule)==null?void 0:Rt.policies,notes:(Vt=(St=(Pt=s[44])==null?void 0:Pt.schedule)==null?void 0:St.state)==null?void 0:Vt.notes}}),ie=new Os({props:{calendar:(Mt=(Ct=(At=(Wt=s[44])==null?void 0:Wt.schedule)==null?void 0:At.spec)==null?void 0:Ct.structuredCalendar)==null?void 0:Mt[0],interval:(Nt=(Lt=(Ht=(qt=s[44])==null?void 0:qt.schedule)==null?void 0:Ht.spec)==null?void 0:Lt.interval)==null?void 0:Nt[0]}});function Kl(T){s[33](T)}function Xl(){return s[34](s[44])}let tt={id:"pause-schedule-modal",confirmType:"primary",confirmText:(Ft=s[44])!=null&&Ft.schedule.state.paused?$("schedules.unpause"):$("schedules.pause"),cancelText:$("common.cancel"),confirmDisabled:!s[4],$$slots:{content:[_r],title:[hr]},$$scope:{ctx:s}};s[1]!==void 0&&(tt.open=s[1]),te=new Ze({props:tt}),Ue.push(()=>je(te,"open",Kl)),te.$on("confirmModal",Xl),te.$on("cancelModal",s[24]);function Yl(T){s[35](T)}let lt={id:"trigger-schedule-modal",large:!0,confirmType:"primary",confirmText:$("schedules.trigger"),cancelText:$("common.cancel"),loading:s[5],$$slots:{content:[vr],title:[$r]},$$scope:{ctx:s}};s[2]!==void 0&&(lt.open=s[2]),L=new Ze({props:lt}),Ue.push(()=>je(L,"open",Yl)),L.$on("confirmModal",s[36]),L.$on("cancelModal",s[37]);function Zl(T){s[38](T)}function yl(T){s[39](T)}let Xe={id:"delete-schedule-modal",confirmType:"destructive",confirmText:$("common.delete"),cancelText:$("common.cancel"),$$slots:{content:[kr],title:[wr]},$$scope:{ctx:s}};return s[3]!==void 0&&(Xe.open=s[3]),s[12]!==void 0&&(Xe.error=s[12]),G=new Ze({props:Xe}),Ue.push(()=>je(G,"open",Zl)),Ue.push(()=>je(G,"error",yl)),G.$on("confirmModal",s[21]),G.$on("cancelModal",s[24]),{c(){e=b("header"),l=b("div"),N(t.$$.fragment),r=A(),n=b("h1"),o=b("span"),a=M(s[14]),u=A(),c=b("div"),N(f.$$.fragment),g=A(),k=b("p"),h=M(m),_=A(),d=b("div"),v=b("p"),Z=M(W),K=A(),O&&O.c(),me=A(),N(x.$$.fragment),oe=A(),X=b("div"),j&&j.c(),de=A(),Y&&Y.c(),ae=A(),y=b("div"),ee=b("div"),N(se.$$.fragment),$e=A(),N(re.$$.fragment),z=A(),N(ue.$$.fragment),De=A(),ge=b("div"),N(ie.$$.fragment),ke=A(),N(te.$$.fragment),P=A(),N(L.$$.fragment),fe=A(),N(G.$$.fragment),this.h()},l(T){e=E(T,"HEADER",{class:!0});var S=I(e);l=E(S,"DIV",{class:!0});var ce=I(l);F(t.$$.fragment,ce),r=C(ce),n=E(ce,"H1",{class:!0});var qe=I(n);o=E(qe,"SPAN",{class:!0,"data-testid":!0});var We=I(o);a=q(We,s[14]),We.forEach(i),qe.forEach(i),u=C(ce),c=E(ce,"DIV",{class:!0});var Ve=I(c);F(f.$$.fragment,Ve),g=C(Ve),k=E(Ve,"P",{});var He=I(k);h=q(He,m),He.forEach(i),Ve.forEach(i),_=C(ce),d=E(ce,"DIV",{class:!0});var Pe=I(d);v=E(Pe,"P",{});var Ae=I(v);Z=q(Ae,W),Ae.forEach(i),Pe.forEach(i),K=C(ce),O&&O.l(ce),ce.forEach(i),me=C(S),F(x.$$.fragment,S),S.forEach(i),oe=C(T),X=E(T,"DIV",{class:!0});var _e=I(X);j&&j.l(_e),de=C(_e),Y&&Y.l(_e),ae=C(_e),y=E(_e,"DIV",{class:!0});var be=I(y);ee=E(be,"DIV",{class:!0});var ve=I(ee);F(se.$$.fragment,ve),$e=C(ve),F(re.$$.fragment,ve),z=C(ve),F(ue.$$.fragment,ve),ve.forEach(i),De=C(be),ge=E(be,"DIV",{class:!0});var Le=I(ge);F(ie.$$.fragment,Le),Le.forEach(i),be.forEach(i),_e.forEach(i),ke=C(T),F(te.$$.fragment,T),P=C(T),F(L.$$.fragment,T),fe=C(T),F(G.$$.fragment,T),this.h()},h(){R(o,"class","select-all font-medium"),R(o,"data-testid","schedule-name"),R(n,"class","relative flex items-center text-2xl"),R(c,"class","flex items-center gap-2 text-lg"),R(d,"class","flex items-center gap-2 text-sm"),R(l,"class","relative flex flex-col gap-4"),R(e,"class","mb-8 flex flex-row justify-between gap-4"),R(ee,"class","flex w-full flex-col items-start gap-4 xl:w-2/3"),R(ge,"class","w-full xl:w-1/3"),R(y,"class","flex flex-col gap-4 xl:flex-row"),R(X,"class","flex flex-col gap-4 pb-24")},m(T,S){w(T,e,S),p(e,l),Q(t,l,null),p(l,r),p(l,n),p(n,o),p(o,a),p(l,u),p(l,c),Q(f,c,null),p(c,g),p(c,k),p(k,h),p(l,_),p(l,d),p(d,v),p(v,Z),p(l,K),O&&O.m(l,null),p(e,me),Q(x,e,null),w(T,oe,S),w(T,X,S),j&&j.m(X,null),p(X,de),Y&&Y.m(X,null),p(X,ae),p(X,y),p(y,ee),Q(se,ee,null),p(ee,$e),Q(re,ee,null),p(ee,z),Q(ue,ee,null),p(y,De),p(y,ge),Q(ie,ge,null),w(T,ke,S),Q(te,T,S),w(T,P,S),Q(L,T,S),w(T,fe,S),Q(G,T,S),H=!0},p(T,S){var Le,Qt,Ut,jt,Bt,Ot,zt,Gt,Jt,Kt,Xt,Yt,Zt,yt,xt,el,tl,ll,sl,rl,nl,ol,al,ul,il,fl,cl,ml,dl,pl,hl,_l,$l,gl,vl,wl,kl;s=T;const ce={};S[1]&131072&&(ce.$$scope={dirty:S,ctx:s}),t.$set(ce);const qe={};S[0]&1&&(qe.status=(Le=s[44])!=null&&Le.schedule.state.paused?"Paused":"Running"),f.$set(qe),(!H||S[0]&1)&&m!==(m=((Ot=(Bt=(jt=(Ut=(Qt=s[44])==null?void 0:Qt.schedule)==null?void 0:Ut.action)==null?void 0:jt.startWorkflow)==null?void 0:Bt.workflowType)==null?void 0:Ot.name)+"")&&J(h,m),(!H||S[0]&385)&&W!==(W=$("common.created",{created:we((Gt=(zt=s[44])==null?void 0:zt.info)==null?void 0:Gt.createTime,s[7],{relative:s[8]})})+"")&&J(Z,W),(Kt=(Jt=s[44])==null?void 0:Jt.info)!=null&&Kt.updateTime?O?O.p(s,S):(O=Ll(s),O.c(),O.m(l,null)):O&&(O.d(1),O=null);const We={};S[0]&1&&(We.label=(Zt=(Yt=(Xt=s[44])==null?void 0:Xt.schedule)==null?void 0:Yt.state)!=null&&Zt.paused?$("schedules.unpause"):$("schedules.pause")),S[0]&12|S[1]&131072&&(We.$$scope={dirty:S,ctx:s}),x.$set(We),(xt=(yt=s[44])==null?void 0:yt.info)!=null&&xt.invalidScheduleError?j?(j.p(s,S),S[0]&1&&D(j,1)):(j=Nl(s),j.c(),D(j,1),j.m(X,de)):j&&(Ce(),V(j,1,1,()=>{j=null}),Me()),s[9]?Y?(Y.p(s,S),S[0]&512&&D(Y,1)):(Y=Fl(s),Y.c(),D(Y,1),Y.m(X,ae)):Y&&(Ce(),V(Y,1,1,()=>{Y=null}),Me());const Ve={};S[0]&1&&(Ve.recentRuns=(tl=(el=s[44])==null?void 0:el.info)==null?void 0:tl.recentActions),se.$set(Ve);const He={};S[0]&1&&(He.futureRuns=(sl=(ll=s[44])==null?void 0:ll.info)==null?void 0:sl.futureActionTimes),re.$set(He);const Pe={};S[0]&1&&(Pe.spec=(nl=(rl=s[44])==null?void 0:rl.schedule)==null?void 0:nl.spec),S[0]&1&&(Pe.state=(al=(ol=s[44])==null?void 0:ol.schedule)==null?void 0:al.state),S[0]&1&&(Pe.policies=(il=(ul=s[44])==null?void 0:ul.schedule)==null?void 0:il.policies),S[0]&1&&(Pe.notes=(ml=(cl=(fl=s[44])==null?void 0:fl.schedule)==null?void 0:cl.state)==null?void 0:ml.notes),ue.$set(Pe);const Ae={};S[0]&1&&(Ae.calendar=(_l=(hl=(pl=(dl=s[44])==null?void 0:dl.schedule)==null?void 0:pl.spec)==null?void 0:hl.structuredCalendar)==null?void 0:_l[0]),S[0]&1&&(Ae.interval=(wl=(vl=(gl=($l=s[44])==null?void 0:$l.schedule)==null?void 0:gl.spec)==null?void 0:vl.interval)==null?void 0:wl[0]),ie.$set(Ae);const _e={};S[0]&1&&(_e.confirmText=(kl=s[44])!=null&&kl.schedule.state.paused?$("schedules.unpause"):$("schedules.pause")),S[0]&16&&(_e.confirmDisabled=!s[4]),S[0]&17|S[1]&131072&&(_e.$$scope={dirty:S,ctx:s}),!Re&&S[0]&2&&(Re=!0,_e.open=s[1],Be(()=>Re=!1)),te.$set(_e);const be={};S[0]&32&&(be.loading=s[5]),S[1]&131072&&(be.$$scope={dirty:S,ctx:s}),!pe&&S[0]&4&&(pe=!0,be.open=s[2],Be(()=>pe=!1)),L.$set(be);const ve={};S[1]&131072&&(ve.$$scope={dirty:S,ctx:s}),!he&&S[0]&8&&(he=!0,ve.open=s[3],Be(()=>he=!1)),!Se&&S[0]&4096&&(Se=!0,ve.error=s[12],Be(()=>Se=!1)),G.$set(ve)},i(T){H||(D(t.$$.fragment,T),D(f.$$.fragment,T),D(x.$$.fragment,T),D(j),D(Y),D(se.$$.fragment,T),D(re.$$.fragment,T),D(ue.$$.fragment,T),D(ie.$$.fragment,T),D(te.$$.fragment,T),D(L.$$.fragment,T),D(G.$$.fragment,T),H=!0)},o(T){V(t.$$.fragment,T),V(f.$$.fragment,T),V(x.$$.fragment,T),V(j),V(Y),V(se.$$.fragment,T),V(re.$$.fragment,T),V(ue.$$.fragment,T),V(ie.$$.fragment,T),V(te.$$.fragment,T),V(L.$$.fragment,T),V(G.$$.fragment,T),H=!1},d(T){T&&i(e),U(t),U(f),O&&O.d(),U(x),T&&i(oe),T&&i(X),j&&j.d(),Y&&Y.d(),U(se),U(re),U(ue),U(ie),T&&i(ke),U(te,T),T&&i(P),U(L,T),T&&i(fe),U(G,T)}}}function ur(s){let e,l;return e=new Gl({props:{title:$("schedules.deleting"),class:"my-2"}}),{c(){N(e.$$.fragment)},l(t){F(e.$$.fragment,t)},m(t,r){Q(e,t,r),l=!0},p:B,i(t){l||(D(e.$$.fragment,t),l=!0)},o(t){V(e.$$.fragment,t),l=!1},d(t){U(e,t)}}}function ir(s){let e=$("schedules.back-to-schedules")+"",l;return{c(){l=M(e)},l(t){l=q(t,e)},m(t,r){w(t,l,r)},p:B,d(t){t&&i(l)}}}function Ll(s){var n,o;let e,l,t=$("common.last-updated",{updated:we((o=(n=s[44])==null?void 0:n.info)==null?void 0:o.updateTime,s[7],{relative:s[8]})})+"",r;return{c(){e=b("div"),l=b("p"),r=M(t),this.h()},l(a){e=E(a,"DIV",{class:!0});var u=I(e);l=E(u,"P",{});var c=I(l);r=q(c,t),c.forEach(i),u.forEach(i),this.h()},h(){R(e,"class","flex items-center gap-2 text-sm")},m(a,u){w(a,e,u),p(e,l),p(l,r)},p(a,u){var c,f;u[0]&385&&t!==(t=$("common.last-updated",{updated:we((f=(c=a[44])==null?void 0:c.info)==null?void 0:f.updateTime,a[7],{relative:a[8]})})+"")&&J(r,t)},d(a){a&&i(e)}}}function fr(s){let e=$("schedules.trigger")+"",l;return{c(){l=M(e)},l(t){l=q(t,e)},m(t,r){w(t,l,r)},p:B,d(t){t&&i(l)}}}function cr(s){let e=$("common.edit")+"",l;return{c(){l=M(e)},l(t){l=q(t,e)},m(t,r){w(t,l,r)},p:B,d(t){t&&i(l)}}}function mr(s){let e=$("common.delete")+"",l;return{c(){l=M(e)},l(t){l=q(t,e)},m(t,r){w(t,l,r)},p:B,d(t){t&&i(l)}}}function dr(s){let e,l,t,r,n,o;return e=new Ye({props:{"data-testid":"trigger-schedule",$$slots:{default:[fr]},$$scope:{ctx:s}}}),e.$on("click",s[28]),t=new Ye({props:{"data-testid":"edit-schedule",href:ps({namespace:s[13],scheduleId:s[14]}),$$slots:{default:[cr]},$$scope:{ctx:s}}}),n=new Ye({props:{"data-testid":"delete-schedule",destructive:!0,$$slots:{default:[mr]},$$scope:{ctx:s}}}),n.$on("click",s[29]),{c(){N(e.$$.fragment),l=A(),N(t.$$.fragment),r=A(),N(n.$$.fragment)},l(a){F(e.$$.fragment,a),l=C(a),F(t.$$.fragment,a),r=C(a),F(n.$$.fragment,a)},m(a,u){Q(e,a,u),w(a,l,u),Q(t,a,u),w(a,r,u),Q(n,a,u),o=!0},p(a,u){const c={};u[1]&131072&&(c.$$scope={dirty:u,ctx:a}),e.$set(c);const f={};u[1]&131072&&(f.$$scope={dirty:u,ctx:a}),t.$set(f);const g={};u[1]&131072&&(g.$$scope={dirty:u,ctx:a}),n.$set(g)},i(a){o||(D(e.$$.fragment,a),D(t.$$.fragment,a),D(n.$$.fragment,a),o=!0)},o(a){V(e.$$.fragment,a),V(t.$$.fragment,a),V(n.$$.fragment,a),o=!1},d(a){U(e,a),a&&i(l),U(t,a),a&&i(r),U(n,a)}}}function Nl(s){var r,n;let e,l,t;return l=new Jl({props:{error:(n=(r=s[44])==null?void 0:r.info)==null?void 0:n.invalidScheduleError}}),{c(){e=b("div"),N(l.$$.fragment),this.h()},l(o){e=E(o,"DIV",{class:!0});var a=I(e);F(l.$$.fragment,a),a.forEach(i),this.h()},h(){R(e,"class","w-full xl:w-1/2")},m(o,a){w(o,e,a),Q(l,e,null),t=!0},p(o,a){var c,f;const u={};a[0]&1&&(u.error=(f=(c=o[44])==null?void 0:c.info)==null?void 0:f.invalidScheduleError),l.$set(u)},i(o){t||(D(l.$$.fragment,o),t=!0)},o(o){V(l.$$.fragment,o),t=!1},d(o){o&&i(e),U(l)}}}function Fl(s){let e,l,t,r=s[10].count.toLocaleString()+"",n,o,a,u,c,f,g,k;return a=new hs({props:{key:"common.workflows-plural",count:s[10].count}}),c=new $s({props:{size:"xs",variant:"ghost",leadingIcon:"retry",$$slots:{default:[pr]},$$scope:{ctx:s}}}),c.$on("click",s[31]),g=new _s({props:{staticQuery:s[15]}}),{c(){e=b("div"),l=b("div"),t=b("span"),n=M(r),o=A(),N(a.$$.fragment),u=A(),N(c.$$.fragment),f=A(),N(g.$$.fragment),this.h()},l(m){e=E(m,"DIV",{class:!0});var h=I(e);l=E(h,"DIV",{class:!0});var _=I(l);t=E(_,"SPAN",{"data-testid":!0});var d=I(t);n=q(d,r),o=C(d),F(a.$$.fragment,d),d.forEach(i),u=C(_),F(c.$$.fragment,_),_.forEach(i),f=C(h),F(g.$$.fragment,h),h.forEach(i),this.h()},h(){R(t,"data-testid","workflow-count"),R(l,"class","flex items-center gap-2"),R(e,"class","flex w-full flex-col gap-2 text-lg")},m(m,h){w(m,e,h),p(e,l),p(l,t),p(t,n),p(t,o),Q(a,t,null),p(l,u),Q(c,l,null),p(e,f),Q(g,e,null),k=!0},p(m,h){(!k||h[0]&1024)&&r!==(r=m[10].count.toLocaleString()+"")&&J(n,r);const _={};h[0]&1024&&(_.count=m[10].count),a.$set(_);const d={};h[0]&1024|h[1]&131072&&(d.$$scope={dirty:h,ctx:m}),c.$set(d)},i(m){k||(D(a.$$.fragment,m),D(c.$$.fragment,m),D(g.$$.fragment,m),k=!0)},o(m){V(a.$$.fragment,m),V(c.$$.fragment,m),V(g.$$.fragment,m),k=!1},d(m){m&&i(e),U(a),U(c),U(g)}}}function Ql(s){let e,l=s[10].newCount.toLocaleString()+"",t;return{c(){e=M("+"),t=M(l)},l(r){e=q(r,"+"),t=q(r,l)},m(r,n){w(r,e,n),w(r,t,n)},p(r,n){n[0]&1024&&l!==(l=r[10].newCount.toLocaleString()+"")&&J(t,l)},d(r){r&&i(e),r&&i(t)}}}function pr(s){let e,l=s[10].newCount>0&&Ql(s);return{c(){l&&l.c(),e=le()},l(t){l&&l.l(t),e=le()},m(t,r){l&&l.m(t,r),w(t,e,r)},p(t,r){t[10].newCount>0?l?l.p(t,r):(l=Ql(t),l.c(),l.m(e.parentNode,e)):l&&(l.d(1),l=null)},d(t){l&&l.d(t),t&&i(e)}}}function hr(s){var r;let e,l=((r=s[44])!=null&&r.schedule.state.paused?$("schedules.unpause-modal-title"):$("schedules.pause-modal-title"))+"",t;return{c(){e=b("h3"),t=M(l),this.h()},l(n){e=E(n,"H3",{slot:!0});var o=I(e);t=q(o,l),o.forEach(i),this.h()},h(){R(e,"slot","title")},m(n,o){w(n,e,o),p(e,t)},p(n,o){var a;o[0]&1&&l!==(l=((a=n[44])!=null&&a.schedule.state.paused?$("schedules.unpause-modal-title"):$("schedules.pause-modal-title"))+"")&&J(t,l)},d(n){n&&i(e)}}}function _r(s){var m,h;let e,l,t=((m=s[44])!=null&&m.schedule.state.paused?$("schedules.unpause-modal-confirmation",{schedule:s[14]}):$("schedules.pause-modal-confirmation",{schedule:s[14]}))+"",r,n,o,a=((h=s[44])!=null&&h.schedule.state.paused?$("schedules.unpause-reason"):$("schedules.pause-reason"))+"",u,c,f,g,k;return{c(){e=b("div"),l=b("p"),r=M(t),n=A(),o=b("p"),u=M(a),c=A(),f=b("input"),this.h()},l(_){e=E(_,"DIV",{slot:!0});var d=I(e);l=E(d,"P",{});var v=I(l);r=q(v,t),v.forEach(i),n=C(d),o=E(d,"P",{class:!0});var W=I(o);u=q(W,a),W.forEach(i),c=C(d),f=E(d,"INPUT",{class:!0,placeholder:!0}),d.forEach(i),this.h()},h(){R(o,"class","my-4"),R(f,"class","mt-4 block w-full rounded-md border border-gray-200 p-2"),R(f,"placeholder",$("common.reason")),R(e,"slot","content")},m(_,d){w(_,e,d),p(e,l),p(l,r),p(e,n),p(e,o),p(o,u),p(e,c),p(e,f),Tl(f,s[4]),g||(k=[Dl(f,"input",s[32]),Dl(f,"keydown",os(s[25]))],g=!0)},p(_,d){var v,W;d[0]&1&&t!==(t=((v=_[44])!=null&&v.schedule.state.paused?$("schedules.unpause-modal-confirmation",{schedule:_[14]}):$("schedules.pause-modal-confirmation",{schedule:_[14]}))+"")&&J(r,t),d[0]&1&&a!==(a=((W=_[44])!=null&&W.schedule.state.paused?$("schedules.unpause-reason"):$("schedules.pause-reason"))+"")&&J(u,a),d[0]&16&&f.value!==_[4]&&Tl(f,_[4])},d(_){_&&i(e),g=!1,as(k)}}}function $r(s){let e,l=$("schedules.trigger-modal-title")+"",t;return{c(){e=b("h3"),t=M(l),this.h()},l(r){e=E(r,"H3",{slot:!0});var n=I(e);t=q(n,l),n.forEach(i),this.h()},h(){R(e,"slot","title")},m(r,n){w(r,e,n),p(e,t)},p:B,d(r){r&&i(e)}}}function Ul(s){let e,l;return e=new vs({props:{id:s[45].value,value:s[45].value,label:s[45].label,description:s[45].description}}),{c(){N(e.$$.fragment)},l(t){F(e.$$.fragment,t)},m(t,r){Q(e,t,r),l=!0},p:B,i(t){l||(D(e.$$.fragment,t),l=!0)},o(t){V(e.$$.fragment,t),l=!1},d(t){U(e,t)}}}function gr(s){let e,l,t=s[18],r=[];for(let o=0;oV(r[o],1,1,()=>{r[o]=null});return{c(){for(let o=0;oe.parentNode,r.anchor=e,t=!0},p(n,o){s=n,r.ctx=s,o[0]&1&&l!==(l=s[0])&&Je(l,r)||jl(r,s,o)},i(n){t||(D(r.block),t=!0)},o(n){for(let o=0;o<3;o+=1){const a=r.blocks[o];V(a)}t=!1},d(n){n&&i(e),r.block.d(n),r.token=null,r=null}}}function Tr(s,e,l){let t,r,n,o,a,u,c,f,g;ne(s,Oe,H=>l(6,r=H)),ne(s,Ol,H=>l(43,o=H)),ne(s,xe,H=>l(7,a=H)),ne(s,et,H=>l(8,u=H)),ne(s,Ds,H=>l(9,c=H)),ne(s,Rs,H=>l(10,f=H)),ne(s,Sl,H=>l(11,g=H));let k=o.params.namespace,m=o.params.schedule,h=`TemporalScheduledById="${m}"`;const _={namespace:k,scheduleId:ye(m)};let d=Ge(_),v=!1,W=!1,Z=!1,K="",me="",x=!1,oe=is("Unspecified");ne(s,oe,H=>l(41,t=H));let X=[{description:$("schedules.trigger-unspecified-description"),label:$("schedules.trigger-unspecified-title"),value:"Unspecified"},{description:$("schedules.trigger-allow-all-description"),label:$("schedules.trigger-allow-all-title"),value:"AllowAll"},{description:$("schedules.trigger-skip-description"),label:$("schedules.trigger-skip-title"),value:"Skip"},{description:$("schedules.trigger-buffer-one-description"),label:$("schedules.trigger-buffer-one-title"),value:"BufferOne"},{description:$("schedules.trigger-buffer-all-description"),label:$("schedules.trigger-buffer-all-title"),value:"BufferAll"},{description:$("schedules.trigger-cancel-other-description"),label:$("schedules.trigger-cancel-other-title"),value:"CancelOther"},{description:$("schedules.trigger-terminate-other-description"),label:$("schedules.trigger-terminate-other-title"),value:"TerminateOther"}],de=Ts();ne(s,de,H=>l(42,n=H));let ae=n.namespaceWriteDisabled(k)||!Ps();const y=async()=>{l(12,me="");try{Qe(Oe,r=!0,r),await ks({namespace:k,scheduleId:m}),l(3,Z=!1),setTimeout(()=>{Qe(Oe,r=!1,r),Ne(ze({namespace:k}))},2e3),l(4,K="")}catch(H){l(12,me=$("schedules.delete-schedule-error",{error:H==null?void 0:H.message})),Qe(Oe,r=!1,r)}},ee=async H=>{var O,j;!((j=(O=H==null?void 0:H.schedule)===null||O===void 0?void 0:O.state)===null||j===void 0)&&j.paused?await bs({namespace:k,scheduleId:m,reason:K}):await Es({namespace:k,scheduleId:m,reason:K}),l(0,d=Ge(_)),l(4,K=""),l(1,v=!1)},se=async()=>{l(5,x=!0),await Is({namespace:k,scheduleId:m,overlapPolicy:t}),setTimeout(()=>{l(0,d=Ge(_)),l(2,W=!1),l(5,x=!1)},1e3)},$e=()=>{l(4,K="")};function re(H){ns.call(this,s,H)}const z=()=>{Ne(ze({namespace:k}))},ue=()=>{Ne(ze({namespace:k}))},De=()=>l(2,W=!0),ge=()=>l(3,Z=!0),ie=()=>l(1,v=!0),ke=()=>{l(0,d=Ge(_)),Qe(Sl,g=Date.now(),g)};function te(){K=this.value,l(4,K)}function Re(H){v=H,l(1,v)}const P=H=>ee(H);function L(H){W=H,l(2,W)}const pe=()=>se(),fe=()=>l(2,W=!1);function G(H){Z=H,l(3,Z)}function he(H){me=H,l(12,me)}return[d,v,W,Z,K,x,r,a,u,c,f,g,me,k,m,h,_,oe,X,de,ae,y,ee,se,$e,re,z,ue,De,ge,ie,ke,te,Re,P,L,pe,fe,G,he,()=>{Ne(ze({namespace:k}))}]}class Dr extends Ee{constructor(e){super(),Ie(this,e,Tr,Ir,Te,{},null,[-1,-1])}}function Rr(s){let e,l,t,r;return e=new us({props:{title:`Schedule | ${s[1]}`,url:s[0].url.href}}),t=new Dr({}),{c(){N(e.$$.fragment),l=A(),N(t.$$.fragment)},l(n){F(e.$$.fragment,n),l=C(n),F(t.$$.fragment,n)},m(n,o){Q(e,n,o),w(n,l,o),Q(t,n,o),r=!0},p(n,[o]){const a={};o&1&&(a.url=n[0].url.href),e.$set(a)},i(n){r||(D(e.$$.fragment,n),D(t.$$.fragment,n),r=!0)},o(n){V(e.$$.fragment,n),V(t.$$.fragment,n),r=!1},d(n){U(e,n),n&&i(l),U(t,n)}}}function Pr(s,e,l){let t;ne(s,Ol,n=>l(0,t=n));const r=t.params.schedule;return[t,r]}class tn extends Ee{constructor(e){super(),Ie(this,e,Pr,Rr,Te,{})}}export{tn as component}; diff --git a/ui/assets/local/_app/immutable/nodes/23.4b45bb23.js b/ui/assets/local/_app/immutable/nodes/23.4b45bb23.js deleted file mode 100644 index 86eaf2b484..0000000000 --- a/ui/assets/local/_app/immutable/nodes/23.4b45bb23.js +++ /dev/null @@ -1 +0,0 @@ -import{S as Ee,b as Ie,a as Te,m as b,w as M,c as C,p as E,q as I,x as q,k as i,d as A,u as R,f as w,L as p,y as J,n as B,C as N,D as F,E as Q,j as D,g as V,F as U,G as xl,P as bl,H as es,I as ts,J as ls,N as El,U as Il,K as ne,e as le,z as Ae,aa as ss,ab as rs,h as Me,ar as Je,as as jl,a7 as Bl,a5 as Qe,V as ns,A as Ue,a0 as je,a1 as Be,_ as Tl,Q as Dl,$ as os,r as as}from"../chunks/index.4e2fcbc7.js";import{p as Ol}from"../chunks/stores.14a97433.js";import{P as us}from"../chunks/page-title.f9a44b80.js";import{w as is}from"../chunks/singletons.fb5f332e.js";import{g as Ne}from"../chunks/navigation.10919bcf.js";import{A as fs}from"../chunks/accordion.777f1aaf.js";import{t as $}from"../chunks/translate.d23a91ae.js";import{S as cs,l as Oe}from"../chunks/schedules.71007bee.js";import{E as ms}from"../chunks/empty-state.721f6c59.js";import{L as Fe}from"../chunks/link.6803bb00.js";import{h as Rl}from"../chunks/workflow-service.4d66b505.js";import{t as xe,r as et,b as we}from"../chunks/time-format.88312c30.js";import{d as ye}from"../chunks/encode-uri.e26747e0.js";import{u as ds,g as Pl,d as ze,v as ps}from"../chunks/route-for.80613b91.js";import{W as zl}from"../chunks/workflow-status.781aff44.js";import{T as hs,W as _s}from"../chunks/translate.ac8f94f7.js";import{B as $s}from"../chunks/button.a45b0e55.js";import{L as Gl}from"../chunks/loading.95801385.js";import{d as Ye}from"../chunks/menu.69cccace.js";import{M as Ze}from"../chunks/modal.05d30376.js";import{R as gs,a as vs}from"../chunks/radio-input.df4cce6e.js";import{S as ws}from"../chunks/split-button.8c08583d.js";import{a as Ge,d as ks,u as bs,p as Es,t as Is}from"../chunks/schedule-service.ba2f3be5.js";import{c as Ts}from"../chunks/core-user.db246b6d.js";import{g as Ds,a as Rs,r as Sl}from"../chunks/workflows.73556738.js";function Ps(s){let e,l,t=$("common.notes")+"",r,n,o,a;return{c(){e=b("div"),l=b("h2"),r=M(t),n=C(),o=b("p"),a=M(s[0]),this.h()},l(u){e=E(u,"DIV",{});var c=I(e);l=E(c,"H2",{class:!0});var f=I(l);r=q(f,t),f.forEach(i),n=A(c),o=E(c,"P",{});var g=I(o);a=q(g,s[0]),g.forEach(i),c.forEach(i),this.h()},h(){R(l,"class","mb-4 text-2xl")},m(u,c){w(u,e,c),p(e,l),p(l,r),p(e,n),p(e,o),p(o,a)},p(u,[c]){c&1&&J(a,u[0])},i:B,o:B,d(u){u&&i(e)}}}function Ss(s,e,l){let{notes:t=""}=e;return s.$$set=r=>{"notes"in r&&l(0,t=r.notes)},[t]}class Vs extends Ee{constructor(e){super(),Ie(this,e,Ss,Ps,Te,{notes:0})}}function Vl(s){var o;let e,l=$("schedules.remaining-actions")+"",t,r=(((o=s[1])==null?void 0:o.remainingActions)??$("common.none"))+"",n;return{c(){e=b("p"),t=M(l),n=M(r)},l(a){e=E(a,"P",{});var u=I(e);t=q(u,l),n=q(u,r),u.forEach(i)},m(a,u){w(a,e,u),p(e,t),p(e,n)},p(a,u){var c;u&2&&r!==(r=(((c=a[1])==null?void 0:c.remainingActions)??$("common.none"))+"")&&J(n,r)},d(a){a&&i(e)}}}function Ws(s){var ue,De,ge,ie,ke,te,Re;let e,l=$("schedules.start-time")+"",t,r,n=(((ue=s[0])==null?void 0:ue.startTime)??$("common.none"))+"",o,a,u,c=$("schedules.end-time")+"",f,g=(((De=s[0])==null?void 0:De.endTime)??$("common.none"))+"",k,m,h,_=$("schedules.jitter")+"",d,v=(((ge=s[0])==null?void 0:ge.jitter)??$("common.none"))+"",W,Z,K,me=$("schedules.exclusion-calendar")+"",x,oe=(((ke=(ie=s[0])==null?void 0:ie.excludeCalendar)==null?void 0:ke[0])??$("common.none"))+"",X,de,ae,y,ee=$("schedules.overlap-policy")+"",se,$e=(((te=s[2])==null?void 0:te.overlapPolicy)??$("common.none"))+"",re,z=((Re=s[1])==null?void 0:Re.limitedActions)&&Vl(s);return{c(){e=b("p"),t=M(l),r=C(),o=M(n),a=C(),u=b("p"),f=M(c),k=M(g),m=C(),h=b("p"),d=M(_),W=M(v),Z=C(),K=b("p"),x=M(me),X=M(oe),de=C(),z&&z.c(),ae=C(),y=b("p"),se=M(ee),re=M($e)},l(P){e=E(P,"P",{});var L=I(e);t=q(L,l),r=A(L),o=q(L,n),L.forEach(i),a=A(P),u=E(P,"P",{});var pe=I(u);f=q(pe,c),k=q(pe,g),pe.forEach(i),m=A(P),h=E(P,"P",{});var fe=I(h);d=q(fe,_),W=q(fe,v),fe.forEach(i),Z=A(P),K=E(P,"P",{});var G=I(K);x=q(G,me),X=q(G,oe),G.forEach(i),de=A(P),z&&z.l(P),ae=A(P),y=E(P,"P",{});var he=I(y);se=q(he,ee),re=q(he,$e),he.forEach(i)},m(P,L){w(P,e,L),p(e,t),p(e,r),p(e,o),w(P,a,L),w(P,u,L),p(u,f),p(u,k),w(P,m,L),w(P,h,L),p(h,d),p(h,W),w(P,Z,L),w(P,K,L),p(K,x),p(K,X),w(P,de,L),z&&z.m(P,L),w(P,ae,L),w(P,y,L),p(y,se),p(y,re)},p(P,L){var pe,fe,G,he,Se,H,O;L&1&&n!==(n=(((pe=P[0])==null?void 0:pe.startTime)??$("common.none"))+"")&&J(o,n),L&1&&g!==(g=(((fe=P[0])==null?void 0:fe.endTime)??$("common.none"))+"")&&J(k,g),L&1&&v!==(v=(((G=P[0])==null?void 0:G.jitter)??$("common.none"))+"")&&J(W,v),L&1&&oe!==(oe=(((Se=(he=P[0])==null?void 0:he.excludeCalendar)==null?void 0:Se[0])??$("common.none"))+"")&&J(X,oe),(H=P[1])!=null&&H.limitedActions?z?z.p(P,L):(z=Vl(P),z.c(),z.m(ae.parentNode,ae)):z&&(z.d(1),z=null),L&4&&$e!==($e=(((O=P[2])==null?void 0:O.overlapPolicy)??$("common.none"))+"")&&J(re,$e)},d(P){P&&i(e),P&&i(a),P&&i(u),P&&i(m),P&&i(h),P&&i(Z),P&&i(K),P&&i(de),z&&z.d(P),P&&i(ae),P&&i(y)}}}function Cs(s){let e,l,t,r;return e=new Vs({props:{notes:s[3]}}),t=new fs({props:{title:$("schedules.advanced-settings"),$$slots:{default:[Ws]},$$scope:{ctx:s}}}),{c(){N(e.$$.fragment),l=C(),N(t.$$.fragment)},l(n){F(e.$$.fragment,n),l=A(n),F(t.$$.fragment,n)},m(n,o){Q(e,n,o),w(n,l,o),Q(t,n,o),r=!0},p(n,[o]){const a={};o&8&&(a.notes=n[3]),e.$set(a);const u={};o&23&&(u.$$scope={dirty:o,ctx:n}),t.$set(u)},i(n){r||(D(e.$$.fragment,n),D(t.$$.fragment,n),r=!0)},o(n){V(e.$$.fragment,n),V(t.$$.fragment,n),r=!1},d(n){U(e,n),n&&i(l),U(t,n)}}}function As(s,e,l){let{spec:t}=e,{state:r}=e,{policies:n}=e,{notes:o=""}=e;return s.$$set=a=>{"spec"in a&&l(0,t=a.spec),"state"in a&&l(1,r=a.state),"policies"in a&&l(2,n=a.policies),"notes"in a&&l(3,o=a.notes)},[t,r,n,o]}class Ms extends Ee{constructor(e){super(),Ie(this,e,As,Cs,Te,{spec:0,state:1,policies:2,notes:3})}}function qs(s){let e,l,t;const r=s[3].default,n=xl(r,s,s[2],null);return{c(){e=b("div"),n&&n.c(),this.h()},l(o){e=E(o,"DIV",{class:!0});var a=I(e);n&&n.l(a),a.forEach(i),this.h()},h(){R(e,"class",l="panel bg-white "+s[1].class+" svelte-11fqqfg"),bl(e,"error",s[0])},m(o,a){w(o,e,a),n&&n.m(e,null),t=!0},p(o,[a]){n&&n.p&&(!t||a&4)&&es(n,r,o,o[2],t?ls(r,o[2],a,null):ts(o[2]),null),(!t||a&2&&l!==(l="panel bg-white "+o[1].class+" svelte-11fqqfg"))&&R(e,"class",l),(!t||a&3)&&bl(e,"error",o[0])},i(o){t||(D(n,o),t=!0)},o(o){V(n,o),t=!1},d(o){o&&i(e),n&&n.d(o)}}}function Hs(s,e,l){let{$$slots:t={},$$scope:r}=e,{error:n=!1}=e;return s.$$set=o=>{l(1,e=El(El({},e),Il(o))),"error"in o&&l(0,n=o.error),"$$scope"in o&&l(2,r=o.$$scope)},e=Il(e),[n,e,r,t]}class Ke extends Ee{constructor(e){super(),Ie(this,e,Hs,qs,Te,{error:0})}}function Ls(s){let e,l=$("schedules.error-title")+"",t,r,n,o;return{c(){e=b("p"),t=M(l),r=C(),n=b("p"),o=M(s[0]),this.h()},l(a){e=E(a,"P",{class:!0});var u=I(e);t=q(u,l),u.forEach(i),r=A(a),n=E(a,"P",{class:!0});var c=I(n);o=q(c,s[0]),c.forEach(i),this.h()},h(){R(e,"class","error-text svelte-1lke5yx"),R(n,"class","error-text svelte-1lke5yx")},m(a,u){w(a,e,u),p(e,t),w(a,r,u),w(a,n,u),p(n,o)},p(a,u){u&1&&J(o,a[0])},d(a){a&&i(e),a&&i(r),a&&i(n)}}}function Ns(s){let e,l;return e=new Ke({props:{error:!0,$$slots:{default:[Ls]},$$scope:{ctx:s}}}),{c(){N(e.$$.fragment)},l(t){F(e.$$.fragment,t)},m(t,r){Q(e,t,r),l=!0},p(t,[r]){const n={};r&3&&(n.$$scope={dirty:r,ctx:t}),e.$set(n)},i(t){l||(D(e.$$.fragment,t),l=!0)},o(t){V(e.$$.fragment,t),l=!1},d(t){U(e,t)}}}function Fs(s,e,l){let{error:t=""}=e;return s.$$set=r=>{"error"in r&&l(0,t=r.error)},[t]}class Jl extends Ee{constructor(e){super(),Ie(this,e,Fs,Ns,Te,{error:0})}}function Qs(s){let e,l=$("schedules.schedule-spec")+"",t,r,n,o,a;return o=new cs({props:{calendar:s[0],interval:s[1],class:"text-base"}}),{c(){e=b("h2"),t=M(l),r=C(),n=b("div"),N(o.$$.fragment),this.h()},l(u){e=E(u,"H2",{class:!0});var c=I(e);t=q(c,l),c.forEach(i),r=A(u),n=E(u,"DIV",{class:!0});var f=I(n);F(o.$$.fragment,f),f.forEach(i),this.h()},h(){R(e,"class","mb-4 text-2xl"),R(n,"class","pr-2")},m(u,c){w(u,e,c),p(e,t),w(u,r,c),w(u,n,c),Q(o,n,null),a=!0},p(u,c){const f={};c&1&&(f.calendar=u[0]),c&2&&(f.interval=u[1]),o.$set(f)},i(u){a||(D(o.$$.fragment,u),a=!0)},o(u){V(o.$$.fragment,u),a=!1},d(u){u&&i(e),u&&i(r),u&&i(n),U(o)}}}function Us(s){let e,l;return e=new Ke({props:{$$slots:{default:[Qs]},$$scope:{ctx:s}}}),{c(){N(e.$$.fragment)},l(t){F(e.$$.fragment,t)},m(t,r){Q(e,t,r),l=!0},p(t,[r]){const n={};r&7&&(n.$$scope={dirty:r,ctx:t}),e.$set(n)},i(t){l||(D(e.$$.fragment,t),l=!0)},o(t){V(e.$$.fragment,t),l=!1},d(t){U(e,t)}}}function js(s,e,l){let{calendar:t=void 0}=e,{interval:r=void 0}=e;return s.$$set=n=>{"calendar"in n&&l(0,t=n.calendar),"interval"in n&&l(1,r=n.interval)},[t,r]}class Bs extends Ee{constructor(e){super(),Ie(this,e,js,Us,Te,{calendar:0,interval:1})}}function Wl(s,e,l){const t=s.slice();return t[7]=e[l],t}function Os(s){let e=$("common.view-all-runs")+"",l;return{c(){l=M(e)},l(t){l=q(t,e)},m(t,r){w(t,l,r)},p:B,d(t){t&&i(l)}}}function zs(s){let e,l,t,r,n=s[7].startWorkflowResult.workflowId+"",o,a,u,c,f=we(s[7].actualTime,s[3],{relative:s[4]})+"",g;return{c(){e=b("div"),l=b("div"),t=C(),r=b("div"),o=M(n),a=C(),u=b("div"),c=b("p"),g=M(f),this.h()},l(k){e=E(k,"DIV",{class:!0});var m=I(e);l=E(m,"DIV",{class:!0}),I(l).forEach(i),t=A(m),r=E(m,"DIV",{class:!0});var h=I(r);o=q(h,n),h.forEach(i),a=A(m),u=E(m,"DIV",{class:!0});var _=I(u);c=E(_,"P",{});var d=I(c);g=q(d,f),d.forEach(i),_.forEach(i),m.forEach(i),this.h()},h(){R(l,"class","w-28"),R(r,"class","w-96"),R(u,"class","ml-auto"),R(e,"class","row svelte-lqpjgu")},m(k,m){w(k,e,m),p(e,l),p(e,t),p(e,r),p(r,o),p(e,a),p(e,u),p(u,c),p(c,g)},p(k,m){m&1&&n!==(n=k[7].startWorkflowResult.workflowId+"")&&J(o,n),m&25&&f!==(f=we(k[7].actualTime,k[3],{relative:k[4]})+"")&&J(g,f)},i:B,o:B,d(k){k&&i(e)}}}function Gs(s){let e,l,t,r,n,o,a,u,c,f=we(s[7].actualTime,s[3],{relative:s[4]})+"",g,k;return t=new zl({props:{status:s[10].status}}),o=new Fe({props:{newTab:!0,href:Pl({workflow:s[7].startWorkflowResult.workflowId,run:s[7].startWorkflowResult.runId,namespace:s[1]}),$$slots:{default:[Js]},$$scope:{ctx:s}}}),{c(){e=b("div"),l=b("div"),N(t.$$.fragment),r=C(),n=b("div"),N(o.$$.fragment),a=C(),u=b("div"),c=b("p"),g=M(f),this.h()},l(m){e=E(m,"DIV",{class:!0});var h=I(e);l=E(h,"DIV",{class:!0});var _=I(l);F(t.$$.fragment,_),_.forEach(i),r=A(h),n=E(h,"DIV",{class:!0});var d=I(n);F(o.$$.fragment,d),d.forEach(i),a=A(h),u=E(h,"DIV",{class:!0});var v=I(u);c=E(v,"P",{});var W=I(c);g=q(W,f),W.forEach(i),v.forEach(i),h.forEach(i),this.h()},h(){R(l,"class","w-28"),R(n,"class","mx-2 w-auto break-words"),R(u,"class","ml-auto"),R(e,"class","row svelte-lqpjgu")},m(m,h){w(m,e,h),p(e,l),Q(t,l,null),p(e,r),p(e,n),Q(o,n,null),p(e,a),p(e,u),p(u,c),p(c,g),k=!0},p(m,h){const _={};h&3&&(_.status=m[10].status),t.$set(_);const d={};h&3&&(d.href=Pl({workflow:m[7].startWorkflowResult.workflowId,run:m[7].startWorkflowResult.runId,namespace:m[1]})),h&2049&&(d.$$scope={dirty:h,ctx:m}),o.$set(d),(!k||h&25)&&f!==(f=we(m[7].actualTime,m[3],{relative:m[4]})+"")&&J(g,f)},i(m){k||(D(t.$$.fragment,m),D(o.$$.fragment,m),k=!0)},o(m){V(t.$$.fragment,m),V(o.$$.fragment,m),k=!1},d(m){m&&i(e),U(t),U(o)}}}function Js(s){let e=s[7].startWorkflowResult.workflowId+"",l;return{c(){l=M(e)},l(t){l=q(t,e)},m(t,r){w(t,l,r)},p(t,r){r&1&&e!==(e=t[7].startWorkflowResult.workflowId+"")&&J(l,e)},d(t){t&&i(l)}}}function Ks(s){return{c:B,l:B,m:B,p:B,i:B,o:B,d:B}}function Cl(s,e){let l,t,r,n,o={ctx:e,current:null,token:null,hasCatch:!0,pending:Ks,then:Gs,catch:zs,value:10,blocks:[,,,]};return Je(r=Rl({namespace:e[1],workflowId:ye(e[7].startWorkflowResult.workflowId),runId:e[7].startWorkflowResult.runId},fetch),o),{key:s,first:null,c(){l=le(),t=le(),o.block.c(),this.h()},l(a){l=le(),t=le(),o.block.l(a),this.h()},h(){this.first=l},m(a,u){w(a,l,u),w(a,t,u),o.block.m(a,o.anchor=u),o.mount=()=>t.parentNode,o.anchor=t,n=!0},p(a,u){e=a,o.ctx=e,u&3&&r!==(r=Rl({namespace:e[1],workflowId:ye(e[7].startWorkflowResult.workflowId),runId:e[7].startWorkflowResult.runId},fetch))&&Je(r,o)||jl(o,e,u)},i(a){n||(D(o.block),n=!0)},o(a){for(let u=0;u<3;u+=1){const c=o.blocks[u];V(c)}n=!1},d(a){a&&i(l),a&&i(t),o.block.d(a),o.token=null,o=null}}}function Al(s){let e,l;return e=new ms({props:{title:$("schedules.recent-runs-empty-state-title")}}),{c(){N(e.$$.fragment)},l(t){F(e.$$.fragment,t)},m(t,r){Q(e,t,r),l=!0},p:B,i(t){l||(D(e.$$.fragment,t),l=!0)},o(t){V(e.$$.fragment,t),l=!1},d(t){U(e,t)}}}function Xs(s){let e,l,t=$("schedules.recent-runs")+"",r,n,o,a,u=[],c=new Map,f,g,k;o=new Fe({props:{$$slots:{default:[Os]},$$scope:{ctx:s}}}),o.$on("click",s[6]);let m=s[5](s[0]);const h=d=>{var v,W;return(W=(v=d[7])==null?void 0:v.startWorkflowResult)==null?void 0:W.workflowId};for(let d=0;d{_=null}),Me()):_?(_.p(d,v),v&1&&D(_,1)):(_=Al(),_.c(),D(_,1),_.m(g.parentNode,g))},i(d){if(!k){D(o.$$.fragment,d);for(let v=0;vl(3,t=f)),ne(s,et,f=>l(4,r=f));let{recentRuns:n=[]}=e,{namespace:o}=e,{workflowQuery:a}=e;const u=f=>{var g,k;return(k=(g=f==null?void 0:f.sort((m,h)=>new Date(h.actualTime).getTime()-new Date(m.actualTime).getTime()))===null||g===void 0?void 0:g.slice(0,5))!==null&&k!==void 0?k:[]},c=()=>{Ne(ds({namespace:o,query:a}))};return s.$$set=f=>{"recentRuns"in f&&l(0,n=f.recentRuns),"namespace"in f&&l(1,o=f.namespace),"workflowQuery"in f&&l(2,a=f.workflowQuery)},[n,o,a,t,r,u,c]}class ys extends Ee{constructor(e){super(),Ie(this,e,Zs,Ys,Te,{recentRuns:0,namespace:1,workflowQuery:2})}}function Ml(s,e,l){const t=s.slice();return t[3]=e[l],t}function ql(s){let e,l,t=we(s[3],s[1],{relative:s[2],relativeLabel:$("common.from-now")})+"",r,n;return{c(){e=b("div"),l=b("p"),r=M(t),n=C(),this.h()},l(o){e=E(o,"DIV",{class:!0});var a=I(e);l=E(a,"P",{});var u=I(l);r=q(u,t),u.forEach(i),n=A(a),a.forEach(i),this.h()},h(){R(e,"class","row svelte-kbuuws")},m(o,a){w(o,e,a),p(e,l),p(l,r),p(e,n)},p(o,a){a&7&&t!==(t=we(o[3],o[1],{relative:o[2],relativeLabel:$("common.from-now")})+"")&&J(r,t)},d(o){o&&i(e)}}}function xs(s){let e,l=$("schedules.upcoming-runs")+"",t,r,n,o=s[0].slice(0,5),a=[];for(let u=0;ul(1,t=o)),ne(s,et,o=>l(2,r=o));let{futureRuns:n=[]}=e;return s.$$set=o=>{"futureRuns"in o&&l(0,n=o.futureRuns)},[n,t,r]}class lr extends Ee{constructor(e){super(),Ie(this,e,tr,er,Te,{futureRuns:0})}}function Hl(s,e,l){const t=s.slice();return t[45]=e[l],t}function sr(s){var m;let e,l,t,r,n,o,a,u,c,f,g,k;return t=new Fe({props:{icon:"chevron-left",$$slots:{default:[rr]},$$scope:{ctx:s}}}),t.$on("click",s[40]),g=new Jl({props:{error:(m=s[12])==null?void 0:m.message}}),{c(){e=b("header"),l=b("div"),N(t.$$.fragment),r=C(),n=b("h1"),o=M(s[14]),a=C(),u=b("p"),c=M(s[13]),f=C(),N(g.$$.fragment),this.h()},l(h){e=E(h,"HEADER",{class:!0});var _=I(e);l=E(_,"DIV",{class:!0});var d=I(l);F(t.$$.fragment,d),r=A(d),n=E(d,"H1",{class:!0,"data-testid":!0});var v=I(n);o=q(v,s[14]),v.forEach(i),a=A(d),u=E(d,"P",{class:!0});var W=I(u);c=q(W,s[13]),W.forEach(i),d.forEach(i),_.forEach(i),f=A(h),F(g.$$.fragment,h),this.h()},h(){R(n,"class","mt-8 select-all text-2xl font-medium"),R(n,"data-testid","schedule-name"),R(u,"class","text-sm"),R(l,"class","relative flex flex-col gap-1"),R(e,"class","mb-8")},m(h,_){w(h,e,_),p(e,l),Q(t,l,null),p(l,r),p(l,n),p(n,o),p(l,a),p(l,u),p(u,c),w(h,f,_),Q(g,h,_),k=!0},p(h,_){var W;const d={};_[1]&131072&&(d.$$scope={dirty:_,ctx:h}),t.$set(d);const v={};_[0]&1&&(v.error=(W=h[12])==null?void 0:W.message),g.$set(v)},i(h){k||(D(t.$$.fragment,h),D(g.$$.fragment,h),k=!0)},o(h){V(t.$$.fragment,h),V(g.$$.fragment,h),k=!1},d(h){h&&i(e),U(t),h&&i(f),U(g,h)}}}function rr(s){let e=$("schedules.back-to-schedules")+"",l;return{c(){l=M(e)},l(t){l=q(t,e)},m(t,r){w(t,l,r)},p:B,d(t){t&&i(l)}}}function nr(s){let e,l,t,r;const n=[ar,or],o=[];function a(u,c){return u[6]?0:1}return e=a(s),l=o[e]=n[e](s),{c(){l.c(),t=le()},l(u){l.l(u),t=le()},m(u,c){o[e].m(u,c),w(u,t,c),r=!0},p(u,c){let f=e;e=a(u),e===f?o[e].p(u,c):(Ae(),V(o[f],1,1,()=>{o[f]=null}),Me(),l=o[e],l?l.p(u,c):(l=o[e]=n[e](u),l.c()),D(l,1),l.m(t.parentNode,t))},i(u){r||(D(l),r=!0)},o(u){V(l),r=!1},d(u){o[e].d(u),u&&i(t)}}}function or(s){var st,rt,nt,ot,at,ut,it,ft,ct,mt,dt,pt,ht,_t,$t,gt,vt,wt,kt,bt,Et,It,Tt,Dt,Rt,Pt,St,Vt,Wt,Ct,At,Mt,qt,Ht,Lt,Nt,Ft;let e,l,t,r,n,o,a,u,c,f,g,k,m=((at=(ot=(nt=(rt=(st=s[44])==null?void 0:st.schedule)==null?void 0:rt.action)==null?void 0:nt.startWorkflow)==null?void 0:ot.workflowType)==null?void 0:at.name)+"",h,_,d,v,W=$("common.created",{created:we((it=(ut=s[44])==null?void 0:ut.info)==null?void 0:it.createTime,s[7],{relative:s[8]})})+"",Z,K,me,x,oe,X,de,ae,y,ee,se,$e,re,z,ue,De,ge,ie,ke,te,Re,P,L,pe,fe,G,he,Se,H;t=new Fe({props:{icon:"chevron-left",$$slots:{default:[ur]},$$scope:{ctx:s}}}),t.$on("click",s[27]),f=new zl({props:{status:(ft=s[44])!=null&&ft.schedule.state.paused?"Paused":"Running"}});let O=((mt=(ct=s[44])==null?void 0:ct.info)==null?void 0:mt.updateTime)&&Ll(s);x=new ws({props:{position:"right",label:(ht=(pt=(dt=s[44])==null?void 0:dt.schedule)==null?void 0:pt.state)!=null&&ht.paused?$("schedules.unpause"):$("schedules.pause"),menuLabel:$("schedules.schedule-actions"),id:"schedule-actions",disabled:s[20],$$slots:{default:[mr]},$$scope:{ctx:s}}}),x.$on("click",s[30]);let j=(($t=(_t=s[44])==null?void 0:_t.info)==null?void 0:$t.invalidScheduleError)&&Nl(s),Y=s[9]&&Fl(s);se=new ys({props:{namespace:s[13],recentRuns:(vt=(gt=s[44])==null?void 0:gt.info)==null?void 0:vt.recentActions,workflowQuery:s[15]}}),re=new lr({props:{futureRuns:(kt=(wt=s[44])==null?void 0:wt.info)==null?void 0:kt.futureActionTimes}}),ue=new Ms({props:{spec:(Et=(bt=s[44])==null?void 0:bt.schedule)==null?void 0:Et.spec,state:(Tt=(It=s[44])==null?void 0:It.schedule)==null?void 0:Tt.state,policies:(Rt=(Dt=s[44])==null?void 0:Dt.schedule)==null?void 0:Rt.policies,notes:(Vt=(St=(Pt=s[44])==null?void 0:Pt.schedule)==null?void 0:St.state)==null?void 0:Vt.notes}}),ie=new Bs({props:{calendar:(Mt=(At=(Ct=(Wt=s[44])==null?void 0:Wt.schedule)==null?void 0:Ct.spec)==null?void 0:At.structuredCalendar)==null?void 0:Mt[0],interval:(Nt=(Lt=(Ht=(qt=s[44])==null?void 0:qt.schedule)==null?void 0:Ht.spec)==null?void 0:Lt.interval)==null?void 0:Nt[0]}});function Kl(T){s[33](T)}function Xl(){return s[34](s[44])}let tt={id:"pause-schedule-modal",confirmType:"primary",confirmText:(Ft=s[44])!=null&&Ft.schedule.state.paused?$("schedules.unpause"):$("schedules.pause"),cancelText:$("common.cancel"),confirmDisabled:!s[4],$$slots:{content:[hr],title:[pr]},$$scope:{ctx:s}};s[1]!==void 0&&(tt.open=s[1]),te=new Ze({props:tt}),Ue.push(()=>je(te,"open",Kl)),te.$on("confirmModal",Xl),te.$on("cancelModal",s[24]);function Yl(T){s[35](T)}let lt={id:"trigger-schedule-modal",large:!0,confirmType:"primary",confirmText:$("schedules.trigger"),cancelText:$("common.cancel"),loading:s[5],$$slots:{content:[gr],title:[_r]},$$scope:{ctx:s}};s[2]!==void 0&&(lt.open=s[2]),L=new Ze({props:lt}),Ue.push(()=>je(L,"open",Yl)),L.$on("confirmModal",s[36]),L.$on("cancelModal",s[37]);function Zl(T){s[38](T)}function yl(T){s[39](T)}let Xe={id:"delete-schedule-modal",confirmType:"destructive",confirmText:$("common.delete"),cancelText:$("common.cancel"),$$slots:{content:[wr],title:[vr]},$$scope:{ctx:s}};return s[3]!==void 0&&(Xe.open=s[3]),s[12]!==void 0&&(Xe.error=s[12]),G=new Ze({props:Xe}),Ue.push(()=>je(G,"open",Zl)),Ue.push(()=>je(G,"error",yl)),G.$on("confirmModal",s[21]),G.$on("cancelModal",s[24]),{c(){e=b("header"),l=b("div"),N(t.$$.fragment),r=C(),n=b("h1"),o=b("span"),a=M(s[14]),u=C(),c=b("div"),N(f.$$.fragment),g=C(),k=b("p"),h=M(m),_=C(),d=b("div"),v=b("p"),Z=M(W),K=C(),O&&O.c(),me=C(),N(x.$$.fragment),oe=C(),X=b("div"),j&&j.c(),de=C(),Y&&Y.c(),ae=C(),y=b("div"),ee=b("div"),N(se.$$.fragment),$e=C(),N(re.$$.fragment),z=C(),N(ue.$$.fragment),De=C(),ge=b("div"),N(ie.$$.fragment),ke=C(),N(te.$$.fragment),P=C(),N(L.$$.fragment),fe=C(),N(G.$$.fragment),this.h()},l(T){e=E(T,"HEADER",{class:!0});var S=I(e);l=E(S,"DIV",{class:!0});var ce=I(l);F(t.$$.fragment,ce),r=A(ce),n=E(ce,"H1",{class:!0});var qe=I(n);o=E(qe,"SPAN",{class:!0,"data-testid":!0});var We=I(o);a=q(We,s[14]),We.forEach(i),qe.forEach(i),u=A(ce),c=E(ce,"DIV",{class:!0});var Ve=I(c);F(f.$$.fragment,Ve),g=A(Ve),k=E(Ve,"P",{});var He=I(k);h=q(He,m),He.forEach(i),Ve.forEach(i),_=A(ce),d=E(ce,"DIV",{class:!0});var Pe=I(d);v=E(Pe,"P",{});var Ce=I(v);Z=q(Ce,W),Ce.forEach(i),Pe.forEach(i),K=A(ce),O&&O.l(ce),ce.forEach(i),me=A(S),F(x.$$.fragment,S),S.forEach(i),oe=A(T),X=E(T,"DIV",{class:!0});var _e=I(X);j&&j.l(_e),de=A(_e),Y&&Y.l(_e),ae=A(_e),y=E(_e,"DIV",{class:!0});var be=I(y);ee=E(be,"DIV",{class:!0});var ve=I(ee);F(se.$$.fragment,ve),$e=A(ve),F(re.$$.fragment,ve),z=A(ve),F(ue.$$.fragment,ve),ve.forEach(i),De=A(be),ge=E(be,"DIV",{class:!0});var Le=I(ge);F(ie.$$.fragment,Le),Le.forEach(i),be.forEach(i),_e.forEach(i),ke=A(T),F(te.$$.fragment,T),P=A(T),F(L.$$.fragment,T),fe=A(T),F(G.$$.fragment,T),this.h()},h(){R(o,"class","select-all font-medium"),R(o,"data-testid","schedule-name"),R(n,"class","relative flex items-center text-2xl"),R(c,"class","flex items-center gap-2 text-lg"),R(d,"class","flex items-center gap-2 text-sm"),R(l,"class","relative flex flex-col gap-4"),R(e,"class","mb-8 flex flex-row justify-between gap-4"),R(ee,"class","flex w-full flex-col items-start gap-4 xl:w-2/3"),R(ge,"class","w-full xl:w-1/3"),R(y,"class","flex flex-col gap-4 xl:flex-row"),R(X,"class","flex flex-col gap-4 pb-24")},m(T,S){w(T,e,S),p(e,l),Q(t,l,null),p(l,r),p(l,n),p(n,o),p(o,a),p(l,u),p(l,c),Q(f,c,null),p(c,g),p(c,k),p(k,h),p(l,_),p(l,d),p(d,v),p(v,Z),p(l,K),O&&O.m(l,null),p(e,me),Q(x,e,null),w(T,oe,S),w(T,X,S),j&&j.m(X,null),p(X,de),Y&&Y.m(X,null),p(X,ae),p(X,y),p(y,ee),Q(se,ee,null),p(ee,$e),Q(re,ee,null),p(ee,z),Q(ue,ee,null),p(y,De),p(y,ge),Q(ie,ge,null),w(T,ke,S),Q(te,T,S),w(T,P,S),Q(L,T,S),w(T,fe,S),Q(G,T,S),H=!0},p(T,S){var Le,Qt,Ut,jt,Bt,Ot,zt,Gt,Jt,Kt,Xt,Yt,Zt,yt,xt,el,tl,ll,sl,rl,nl,ol,al,ul,il,fl,cl,ml,dl,pl,hl,_l,$l,gl,vl,wl,kl;s=T;const ce={};S[1]&131072&&(ce.$$scope={dirty:S,ctx:s}),t.$set(ce);const qe={};S[0]&1&&(qe.status=(Le=s[44])!=null&&Le.schedule.state.paused?"Paused":"Running"),f.$set(qe),(!H||S[0]&1)&&m!==(m=((Ot=(Bt=(jt=(Ut=(Qt=s[44])==null?void 0:Qt.schedule)==null?void 0:Ut.action)==null?void 0:jt.startWorkflow)==null?void 0:Bt.workflowType)==null?void 0:Ot.name)+"")&&J(h,m),(!H||S[0]&385)&&W!==(W=$("common.created",{created:we((Gt=(zt=s[44])==null?void 0:zt.info)==null?void 0:Gt.createTime,s[7],{relative:s[8]})})+"")&&J(Z,W),(Kt=(Jt=s[44])==null?void 0:Jt.info)!=null&&Kt.updateTime?O?O.p(s,S):(O=Ll(s),O.c(),O.m(l,null)):O&&(O.d(1),O=null);const We={};S[0]&1&&(We.label=(Zt=(Yt=(Xt=s[44])==null?void 0:Xt.schedule)==null?void 0:Yt.state)!=null&&Zt.paused?$("schedules.unpause"):$("schedules.pause")),S[0]&12|S[1]&131072&&(We.$$scope={dirty:S,ctx:s}),x.$set(We),(xt=(yt=s[44])==null?void 0:yt.info)!=null&&xt.invalidScheduleError?j?(j.p(s,S),S[0]&1&&D(j,1)):(j=Nl(s),j.c(),D(j,1),j.m(X,de)):j&&(Ae(),V(j,1,1,()=>{j=null}),Me()),s[9]?Y?(Y.p(s,S),S[0]&512&&D(Y,1)):(Y=Fl(s),Y.c(),D(Y,1),Y.m(X,ae)):Y&&(Ae(),V(Y,1,1,()=>{Y=null}),Me());const Ve={};S[0]&1&&(Ve.recentRuns=(tl=(el=s[44])==null?void 0:el.info)==null?void 0:tl.recentActions),se.$set(Ve);const He={};S[0]&1&&(He.futureRuns=(sl=(ll=s[44])==null?void 0:ll.info)==null?void 0:sl.futureActionTimes),re.$set(He);const Pe={};S[0]&1&&(Pe.spec=(nl=(rl=s[44])==null?void 0:rl.schedule)==null?void 0:nl.spec),S[0]&1&&(Pe.state=(al=(ol=s[44])==null?void 0:ol.schedule)==null?void 0:al.state),S[0]&1&&(Pe.policies=(il=(ul=s[44])==null?void 0:ul.schedule)==null?void 0:il.policies),S[0]&1&&(Pe.notes=(ml=(cl=(fl=s[44])==null?void 0:fl.schedule)==null?void 0:cl.state)==null?void 0:ml.notes),ue.$set(Pe);const Ce={};S[0]&1&&(Ce.calendar=(_l=(hl=(pl=(dl=s[44])==null?void 0:dl.schedule)==null?void 0:pl.spec)==null?void 0:hl.structuredCalendar)==null?void 0:_l[0]),S[0]&1&&(Ce.interval=(wl=(vl=(gl=($l=s[44])==null?void 0:$l.schedule)==null?void 0:gl.spec)==null?void 0:vl.interval)==null?void 0:wl[0]),ie.$set(Ce);const _e={};S[0]&1&&(_e.confirmText=(kl=s[44])!=null&&kl.schedule.state.paused?$("schedules.unpause"):$("schedules.pause")),S[0]&16&&(_e.confirmDisabled=!s[4]),S[0]&17|S[1]&131072&&(_e.$$scope={dirty:S,ctx:s}),!Re&&S[0]&2&&(Re=!0,_e.open=s[1],Be(()=>Re=!1)),te.$set(_e);const be={};S[0]&32&&(be.loading=s[5]),S[1]&131072&&(be.$$scope={dirty:S,ctx:s}),!pe&&S[0]&4&&(pe=!0,be.open=s[2],Be(()=>pe=!1)),L.$set(be);const ve={};S[1]&131072&&(ve.$$scope={dirty:S,ctx:s}),!he&&S[0]&8&&(he=!0,ve.open=s[3],Be(()=>he=!1)),!Se&&S[0]&4096&&(Se=!0,ve.error=s[12],Be(()=>Se=!1)),G.$set(ve)},i(T){H||(D(t.$$.fragment,T),D(f.$$.fragment,T),D(x.$$.fragment,T),D(j),D(Y),D(se.$$.fragment,T),D(re.$$.fragment,T),D(ue.$$.fragment,T),D(ie.$$.fragment,T),D(te.$$.fragment,T),D(L.$$.fragment,T),D(G.$$.fragment,T),H=!0)},o(T){V(t.$$.fragment,T),V(f.$$.fragment,T),V(x.$$.fragment,T),V(j),V(Y),V(se.$$.fragment,T),V(re.$$.fragment,T),V(ue.$$.fragment,T),V(ie.$$.fragment,T),V(te.$$.fragment,T),V(L.$$.fragment,T),V(G.$$.fragment,T),H=!1},d(T){T&&i(e),U(t),U(f),O&&O.d(),U(x),T&&i(oe),T&&i(X),j&&j.d(),Y&&Y.d(),U(se),U(re),U(ue),U(ie),T&&i(ke),U(te,T),T&&i(P),U(L,T),T&&i(fe),U(G,T)}}}function ar(s){let e,l;return e=new Gl({props:{title:$("schedules.deleting"),class:"my-2"}}),{c(){N(e.$$.fragment)},l(t){F(e.$$.fragment,t)},m(t,r){Q(e,t,r),l=!0},p:B,i(t){l||(D(e.$$.fragment,t),l=!0)},o(t){V(e.$$.fragment,t),l=!1},d(t){U(e,t)}}}function ur(s){let e=$("schedules.back-to-schedules")+"",l;return{c(){l=M(e)},l(t){l=q(t,e)},m(t,r){w(t,l,r)},p:B,d(t){t&&i(l)}}}function Ll(s){var n,o;let e,l,t=$("common.last-updated",{updated:we((o=(n=s[44])==null?void 0:n.info)==null?void 0:o.updateTime,s[7],{relative:s[8]})})+"",r;return{c(){e=b("div"),l=b("p"),r=M(t),this.h()},l(a){e=E(a,"DIV",{class:!0});var u=I(e);l=E(u,"P",{});var c=I(l);r=q(c,t),c.forEach(i),u.forEach(i),this.h()},h(){R(e,"class","flex items-center gap-2 text-sm")},m(a,u){w(a,e,u),p(e,l),p(l,r)},p(a,u){var c,f;u[0]&385&&t!==(t=$("common.last-updated",{updated:we((f=(c=a[44])==null?void 0:c.info)==null?void 0:f.updateTime,a[7],{relative:a[8]})})+"")&&J(r,t)},d(a){a&&i(e)}}}function ir(s){let e=$("schedules.trigger")+"",l;return{c(){l=M(e)},l(t){l=q(t,e)},m(t,r){w(t,l,r)},p:B,d(t){t&&i(l)}}}function fr(s){let e=$("common.edit")+"",l;return{c(){l=M(e)},l(t){l=q(t,e)},m(t,r){w(t,l,r)},p:B,d(t){t&&i(l)}}}function cr(s){let e=$("common.delete")+"",l;return{c(){l=M(e)},l(t){l=q(t,e)},m(t,r){w(t,l,r)},p:B,d(t){t&&i(l)}}}function mr(s){let e,l,t,r,n,o;return e=new Ye({props:{"data-testid":"trigger-schedule",$$slots:{default:[ir]},$$scope:{ctx:s}}}),e.$on("click",s[28]),t=new Ye({props:{"data-testid":"edit-schedule",href:ps({namespace:s[13],scheduleId:s[14]}),$$slots:{default:[fr]},$$scope:{ctx:s}}}),n=new Ye({props:{"data-testid":"delete-schedule",destructive:!0,$$slots:{default:[cr]},$$scope:{ctx:s}}}),n.$on("click",s[29]),{c(){N(e.$$.fragment),l=C(),N(t.$$.fragment),r=C(),N(n.$$.fragment)},l(a){F(e.$$.fragment,a),l=A(a),F(t.$$.fragment,a),r=A(a),F(n.$$.fragment,a)},m(a,u){Q(e,a,u),w(a,l,u),Q(t,a,u),w(a,r,u),Q(n,a,u),o=!0},p(a,u){const c={};u[1]&131072&&(c.$$scope={dirty:u,ctx:a}),e.$set(c);const f={};u[1]&131072&&(f.$$scope={dirty:u,ctx:a}),t.$set(f);const g={};u[1]&131072&&(g.$$scope={dirty:u,ctx:a}),n.$set(g)},i(a){o||(D(e.$$.fragment,a),D(t.$$.fragment,a),D(n.$$.fragment,a),o=!0)},o(a){V(e.$$.fragment,a),V(t.$$.fragment,a),V(n.$$.fragment,a),o=!1},d(a){U(e,a),a&&i(l),U(t,a),a&&i(r),U(n,a)}}}function Nl(s){var r,n;let e,l,t;return l=new Jl({props:{error:(n=(r=s[44])==null?void 0:r.info)==null?void 0:n.invalidScheduleError}}),{c(){e=b("div"),N(l.$$.fragment),this.h()},l(o){e=E(o,"DIV",{class:!0});var a=I(e);F(l.$$.fragment,a),a.forEach(i),this.h()},h(){R(e,"class","w-full xl:w-1/2")},m(o,a){w(o,e,a),Q(l,e,null),t=!0},p(o,a){var c,f;const u={};a[0]&1&&(u.error=(f=(c=o[44])==null?void 0:c.info)==null?void 0:f.invalidScheduleError),l.$set(u)},i(o){t||(D(l.$$.fragment,o),t=!0)},o(o){V(l.$$.fragment,o),t=!1},d(o){o&&i(e),U(l)}}}function Fl(s){let e,l,t,r=s[10].count.toLocaleString()+"",n,o,a,u,c,f,g,k;return a=new hs({props:{key:"common.workflows-plural",count:s[10].count}}),c=new $s({props:{size:"xs",variant:"ghost",leadingIcon:"retry",$$slots:{default:[dr]},$$scope:{ctx:s}}}),c.$on("click",s[31]),g=new _s({props:{staticQuery:s[15]}}),{c(){e=b("div"),l=b("div"),t=b("span"),n=M(r),o=C(),N(a.$$.fragment),u=C(),N(c.$$.fragment),f=C(),N(g.$$.fragment),this.h()},l(m){e=E(m,"DIV",{class:!0});var h=I(e);l=E(h,"DIV",{class:!0});var _=I(l);t=E(_,"SPAN",{"data-testid":!0});var d=I(t);n=q(d,r),o=A(d),F(a.$$.fragment,d),d.forEach(i),u=A(_),F(c.$$.fragment,_),_.forEach(i),f=A(h),F(g.$$.fragment,h),h.forEach(i),this.h()},h(){R(t,"data-testid","workflow-count"),R(l,"class","flex items-center gap-2"),R(e,"class","flex w-full flex-col gap-2 text-lg")},m(m,h){w(m,e,h),p(e,l),p(l,t),p(t,n),p(t,o),Q(a,t,null),p(l,u),Q(c,l,null),p(e,f),Q(g,e,null),k=!0},p(m,h){(!k||h[0]&1024)&&r!==(r=m[10].count.toLocaleString()+"")&&J(n,r);const _={};h[0]&1024&&(_.count=m[10].count),a.$set(_);const d={};h[0]&1024|h[1]&131072&&(d.$$scope={dirty:h,ctx:m}),c.$set(d)},i(m){k||(D(a.$$.fragment,m),D(c.$$.fragment,m),D(g.$$.fragment,m),k=!0)},o(m){V(a.$$.fragment,m),V(c.$$.fragment,m),V(g.$$.fragment,m),k=!1},d(m){m&&i(e),U(a),U(c),U(g)}}}function Ql(s){let e,l=s[10].newCount.toLocaleString()+"",t;return{c(){e=M("+"),t=M(l)},l(r){e=q(r,"+"),t=q(r,l)},m(r,n){w(r,e,n),w(r,t,n)},p(r,n){n[0]&1024&&l!==(l=r[10].newCount.toLocaleString()+"")&&J(t,l)},d(r){r&&i(e),r&&i(t)}}}function dr(s){let e,l=s[10].newCount>0&&Ql(s);return{c(){l&&l.c(),e=le()},l(t){l&&l.l(t),e=le()},m(t,r){l&&l.m(t,r),w(t,e,r)},p(t,r){t[10].newCount>0?l?l.p(t,r):(l=Ql(t),l.c(),l.m(e.parentNode,e)):l&&(l.d(1),l=null)},d(t){l&&l.d(t),t&&i(e)}}}function pr(s){var r;let e,l=((r=s[44])!=null&&r.schedule.state.paused?$("schedules.unpause-modal-title"):$("schedules.pause-modal-title"))+"",t;return{c(){e=b("h3"),t=M(l),this.h()},l(n){e=E(n,"H3",{slot:!0});var o=I(e);t=q(o,l),o.forEach(i),this.h()},h(){R(e,"slot","title")},m(n,o){w(n,e,o),p(e,t)},p(n,o){var a;o[0]&1&&l!==(l=((a=n[44])!=null&&a.schedule.state.paused?$("schedules.unpause-modal-title"):$("schedules.pause-modal-title"))+"")&&J(t,l)},d(n){n&&i(e)}}}function hr(s){var m,h;let e,l,t=((m=s[44])!=null&&m.schedule.state.paused?$("schedules.unpause-modal-confirmation",{schedule:s[14]}):$("schedules.pause-modal-confirmation",{schedule:s[14]}))+"",r,n,o,a=((h=s[44])!=null&&h.schedule.state.paused?$("schedules.unpause-reason"):$("schedules.pause-reason"))+"",u,c,f,g,k;return{c(){e=b("div"),l=b("p"),r=M(t),n=C(),o=b("p"),u=M(a),c=C(),f=b("input"),this.h()},l(_){e=E(_,"DIV",{slot:!0});var d=I(e);l=E(d,"P",{});var v=I(l);r=q(v,t),v.forEach(i),n=A(d),o=E(d,"P",{class:!0});var W=I(o);u=q(W,a),W.forEach(i),c=A(d),f=E(d,"INPUT",{class:!0,placeholder:!0}),d.forEach(i),this.h()},h(){R(o,"class","my-4"),R(f,"class","mt-4 block w-full rounded-md border border-gray-200 p-2"),R(f,"placeholder",$("common.reason")),R(e,"slot","content")},m(_,d){w(_,e,d),p(e,l),p(l,r),p(e,n),p(e,o),p(o,u),p(e,c),p(e,f),Tl(f,s[4]),g||(k=[Dl(f,"input",s[32]),Dl(f,"keydown",os(s[25]))],g=!0)},p(_,d){var v,W;d[0]&1&&t!==(t=((v=_[44])!=null&&v.schedule.state.paused?$("schedules.unpause-modal-confirmation",{schedule:_[14]}):$("schedules.pause-modal-confirmation",{schedule:_[14]}))+"")&&J(r,t),d[0]&1&&a!==(a=((W=_[44])!=null&&W.schedule.state.paused?$("schedules.unpause-reason"):$("schedules.pause-reason"))+"")&&J(u,a),d[0]&16&&f.value!==_[4]&&Tl(f,_[4])},d(_){_&&i(e),g=!1,as(k)}}}function _r(s){let e,l=$("schedules.trigger-modal-title")+"",t;return{c(){e=b("h3"),t=M(l),this.h()},l(r){e=E(r,"H3",{slot:!0});var n=I(e);t=q(n,l),n.forEach(i),this.h()},h(){R(e,"slot","title")},m(r,n){w(r,e,n),p(e,t)},p:B,d(r){r&&i(e)}}}function Ul(s){let e,l;return e=new vs({props:{id:s[45].value,value:s[45].value,label:s[45].label,description:s[45].description}}),{c(){N(e.$$.fragment)},l(t){F(e.$$.fragment,t)},m(t,r){Q(e,t,r),l=!0},p:B,i(t){l||(D(e.$$.fragment,t),l=!0)},o(t){V(e.$$.fragment,t),l=!1},d(t){U(e,t)}}}function $r(s){let e,l,t=s[18],r=[];for(let o=0;oV(r[o],1,1,()=>{r[o]=null});return{c(){for(let o=0;oe.parentNode,r.anchor=e,t=!0},p(n,o){s=n,r.ctx=s,o[0]&1&&l!==(l=s[0])&&Je(l,r)||jl(r,s,o)},i(n){t||(D(r.block),t=!0)},o(n){for(let o=0;o<3;o+=1){const a=r.blocks[o];V(a)}t=!1},d(n){n&&i(e),r.block.d(n),r.token=null,r=null}}}function Ir(s,e,l){let t,r,n,o,a,u,c,f,g;ne(s,Oe,H=>l(6,r=H)),ne(s,Ol,H=>l(43,o=H)),ne(s,xe,H=>l(7,a=H)),ne(s,et,H=>l(8,u=H)),ne(s,Ds,H=>l(9,c=H)),ne(s,Rs,H=>l(10,f=H)),ne(s,Sl,H=>l(11,g=H));let k=o.params.namespace,m=o.params.schedule,h=`TemporalScheduledById="${m}"`;const _={namespace:k,scheduleId:ye(m)};let d=Ge(_),v=!1,W=!1,Z=!1,K="",me="",x=!1,oe=is("Unspecified");ne(s,oe,H=>l(41,t=H));let X=[{description:$("schedules.trigger-unspecified-description"),label:$("schedules.trigger-unspecified-title"),value:"Unspecified"},{description:$("schedules.trigger-allow-all-description"),label:$("schedules.trigger-allow-all-title"),value:"AllowAll"},{description:$("schedules.trigger-skip-description"),label:$("schedules.trigger-skip-title"),value:"Skip"},{description:$("schedules.trigger-buffer-one-description"),label:$("schedules.trigger-buffer-one-title"),value:"BufferOne"},{description:$("schedules.trigger-buffer-all-description"),label:$("schedules.trigger-buffer-all-title"),value:"BufferAll"},{description:$("schedules.trigger-cancel-other-description"),label:$("schedules.trigger-cancel-other-title"),value:"CancelOther"},{description:$("schedules.trigger-terminate-other-description"),label:$("schedules.trigger-terminate-other-title"),value:"TerminateOther"}],de=Ts();ne(s,de,H=>l(42,n=H));let ae=n.namespaceWriteDisabled(k);const y=async()=>{l(12,me="");try{Qe(Oe,r=!0,r),await ks({namespace:k,scheduleId:m}),l(3,Z=!1),setTimeout(()=>{Qe(Oe,r=!1,r),Ne(ze({namespace:k}))},2e3),l(4,K="")}catch(H){l(12,me=$("schedules.delete-schedule-error",{error:H==null?void 0:H.message})),Qe(Oe,r=!1,r)}},ee=async H=>{var O,j;!((j=(O=H==null?void 0:H.schedule)===null||O===void 0?void 0:O.state)===null||j===void 0)&&j.paused?await bs({namespace:k,scheduleId:m,reason:K}):await Es({namespace:k,scheduleId:m,reason:K}),l(0,d=Ge(_)),l(4,K=""),l(1,v=!1)},se=async()=>{l(5,x=!0),await Is({namespace:k,scheduleId:m,overlapPolicy:t}),setTimeout(()=>{l(0,d=Ge(_)),l(2,W=!1),l(5,x=!1)},1e3)},$e=()=>{l(4,K="")};function re(H){ns.call(this,s,H)}const z=()=>{Ne(ze({namespace:k}))},ue=()=>{Ne(ze({namespace:k}))},De=()=>l(2,W=!0),ge=()=>l(3,Z=!0),ie=()=>l(1,v=!0),ke=()=>{l(0,d=Ge(_)),Qe(Sl,g=Date.now(),g)};function te(){K=this.value,l(4,K)}function Re(H){v=H,l(1,v)}const P=H=>ee(H);function L(H){W=H,l(2,W)}const pe=()=>se(),fe=()=>l(2,W=!1);function G(H){Z=H,l(3,Z)}function he(H){me=H,l(12,me)}return[d,v,W,Z,K,x,r,a,u,c,f,g,me,k,m,h,_,oe,X,de,ae,y,ee,se,$e,re,z,ue,De,ge,ie,ke,te,Re,P,L,pe,fe,G,he,()=>{Ne(ze({namespace:k}))}]}class Tr extends Ee{constructor(e){super(),Ie(this,e,Ir,Er,Te,{},null,[-1,-1])}}function Dr(s){let e,l,t,r;return e=new us({props:{title:`Schedule | ${s[1]}`,url:s[0].url.href}}),t=new Tr({}),{c(){N(e.$$.fragment),l=C(),N(t.$$.fragment)},l(n){F(e.$$.fragment,n),l=A(n),F(t.$$.fragment,n)},m(n,o){Q(e,n,o),w(n,l,o),Q(t,n,o),r=!0},p(n,[o]){const a={};o&1&&(a.url=n[0].url.href),e.$set(a)},i(n){r||(D(e.$$.fragment,n),D(t.$$.fragment,n),r=!0)},o(n){V(e.$$.fragment,n),V(t.$$.fragment,n),r=!1},d(n){U(e,n),n&&i(l),U(t,n)}}}function Rr(s,e,l){let t;ne(s,Ol,n=>l(0,t=n));const r=t.params.schedule;return[t,r]}class xr extends Ee{constructor(e){super(),Ie(this,e,Rr,Dr,Te,{})}}export{xr as component}; diff --git a/ui/assets/local/_app/immutable/nodes/24.7805093d.js b/ui/assets/local/_app/immutable/nodes/24.8b6e6b30.js similarity index 88% rename from ui/assets/local/_app/immutable/nodes/24.7805093d.js rename to ui/assets/local/_app/immutable/nodes/24.8b6e6b30.js index 2288c536f0..8e05e3b80d 100644 --- a/ui/assets/local/_app/immutable/nodes/24.7805093d.js +++ b/ui/assets/local/_app/immutable/nodes/24.8b6e6b30.js @@ -1 +1 @@ -import{S as g,b as k,a as b,ar as T,e as h,f as w,as as U,j as l,g as i,k as S,K as y,n as c,C as m,D as f,E as p,F as d,c as W,d as z}from"../chunks/index.4e2fcbc7.js";import{p as E}from"../chunks/stores.14a97433.js";import{P as A}from"../chunks/page-title.f9a44b80.js";import{S as B}from"../chunks/schedule-form-view.e4ddd14f.js";import{L as G}from"../chunks/loading.95801385.js";import{t as H}from"../chunks/translate.d23a91ae.js";import{a as J}from"../chunks/schedule-service.ba2f3be5.js";import{s as V}from"../chunks/schedules.71007bee.js";import{d as X}from"../chunks/encode-uri.e26747e0.js";function _(o){o[6]=o[7].schedule}function Y(o){return{c,l:c,m:c,p:c,i:c,o:c,d:c}}function Z(o){_(o);let t,a;return t=new B({props:{onConfirm:o[1],schedule:o[6]}}),{c(){m(t.$$.fragment)},l(e){f(t.$$.fragment,e)},m(e,r){p(t,e,r),a=!0},p(e,r){_(e)},i(e){a||(l(t.$$.fragment,e),a=!0)},o(e){i(t.$$.fragment,e),a=!1},d(e){d(t,e)}}}function x(o){let t,a;return t=new G({props:{title:H("schedules.loading")}}),{c(){m(t.$$.fragment)},l(e){f(t.$$.fragment,e)},m(e,r){p(t,e,r),a=!0},p:c,i(e){a||(l(t.$$.fragment,e),a=!0)},o(e){i(t.$$.fragment,e),a=!1},d(e){d(t,e)}}}function ee(o){let t,a,e={ctx:o,current:null,token:null,hasCatch:!1,pending:x,then:Z,catch:Y,value:7,blocks:[,,,]};return T(o[0],e),{c(){t=h(),e.block.c()},l(r){t=h(),e.block.l(r)},m(r,n){w(r,t,n),e.block.m(r,e.anchor=n),e.mount=()=>t.parentNode,e.anchor=t,a=!0},p(r,[n]){o=r,U(e,o,n)},i(r){a||(l(e.block),a=!0)},o(r){for(let n=0;n<3;n+=1){const s=e.blocks[n];i(s)}a=!1},d(r){r&&S(t),e.block.d(r),e.token=null,e=null}}}function te(o,t,a){let e;y(o,E,$=>a(2,e=$));let r=e.params.namespace,n=e.params.schedule;const s={namespace:r,scheduleId:X(n)};return[J(s),($,v,C)=>{const{name:F,workflowType:I,workflowId:P,taskQueue:L,hour:O,minute:j,second:q,phase:D,cronString:K,daysOfWeek:M,daysOfMonth:N,days:Q,months:R}=v;V({action:{namespace:r,name:F,workflowType:I,workflowId:P,taskQueue:L},spec:{hour:O,minute:j,second:q,phase:D,cronString:K},presets:{preset:$,daysOfWeek:M,daysOfMonth:N,months:R,days:Q}},C,n)}]}class ne extends g{constructor(t){super(),k(this,t,te,ee,b,{})}}function re(o){let t,a,e,r;return t=new A({props:{title:`Schedule Edit | ${o[0].params.schedule}`,url:o[0].url.href}}),e=new ne({}),{c(){m(t.$$.fragment),a=W(),m(e.$$.fragment)},l(n){f(t.$$.fragment,n),a=z(n),f(e.$$.fragment,n)},m(n,s){p(t,n,s),w(n,a,s),p(e,n,s),r=!0},p(n,[s]){const u={};s&1&&(u.title=`Schedule Edit | ${n[0].params.schedule}`),s&1&&(u.url=n[0].url.href),t.$set(u)},i(n){r||(l(t.$$.fragment,n),l(e.$$.fragment,n),r=!0)},o(n){i(t.$$.fragment,n),i(e.$$.fragment,n),r=!1},d(n){d(t,n),n&&S(a),d(e,n)}}}function ae(o,t,a){let e;return y(o,E,r=>a(0,e=r)),[e]}class ge extends g{constructor(t){super(),k(this,t,ae,re,b,{})}}export{ge as component}; +import{S as g,b as k,a as b,ar as T,e as h,f as w,as as U,j as l,g as i,k as S,K as y,n as c,C as m,D as f,E as p,F as d,c as W,d as z}from"../chunks/index.4e2fcbc7.js";import{p as E}from"../chunks/stores.0e7b7e35.js";import{P as A}from"../chunks/page-title.f9a44b80.js";import{S as B}from"../chunks/schedule-form-view.7c016119.js";import{L as G}from"../chunks/loading.95801385.js";import{t as H}from"../chunks/translate.d23a91ae.js";import{a as J}from"../chunks/schedule-service.3e5d769d.js";import{s as V}from"../chunks/schedules.cfaf5e30.js";import{d as X}from"../chunks/encode-uri.e26747e0.js";function _(o){o[6]=o[7].schedule}function Y(o){return{c,l:c,m:c,p:c,i:c,o:c,d:c}}function Z(o){_(o);let t,a;return t=new B({props:{onConfirm:o[1],schedule:o[6]}}),{c(){m(t.$$.fragment)},l(e){f(t.$$.fragment,e)},m(e,r){p(t,e,r),a=!0},p(e,r){_(e)},i(e){a||(l(t.$$.fragment,e),a=!0)},o(e){i(t.$$.fragment,e),a=!1},d(e){d(t,e)}}}function x(o){let t,a;return t=new G({props:{title:H("schedules.loading")}}),{c(){m(t.$$.fragment)},l(e){f(t.$$.fragment,e)},m(e,r){p(t,e,r),a=!0},p:c,i(e){a||(l(t.$$.fragment,e),a=!0)},o(e){i(t.$$.fragment,e),a=!1},d(e){d(t,e)}}}function ee(o){let t,a,e={ctx:o,current:null,token:null,hasCatch:!1,pending:x,then:Z,catch:Y,value:7,blocks:[,,,]};return T(o[0],e),{c(){t=h(),e.block.c()},l(r){t=h(),e.block.l(r)},m(r,n){w(r,t,n),e.block.m(r,e.anchor=n),e.mount=()=>t.parentNode,e.anchor=t,a=!0},p(r,[n]){o=r,U(e,o,n)},i(r){a||(l(e.block),a=!0)},o(r){for(let n=0;n<3;n+=1){const s=e.blocks[n];i(s)}a=!1},d(r){r&&S(t),e.block.d(r),e.token=null,e=null}}}function te(o,t,a){let e;y(o,E,$=>a(2,e=$));let r=e.params.namespace,n=e.params.schedule;const s={namespace:r,scheduleId:X(n)};return[J(s),($,v,C)=>{const{name:F,workflowType:I,workflowId:P,taskQueue:L,hour:O,minute:j,second:q,phase:D,cronString:K,daysOfWeek:M,daysOfMonth:N,days:Q,months:R}=v;V({action:{namespace:r,name:F,workflowType:I,workflowId:P,taskQueue:L},spec:{hour:O,minute:j,second:q,phase:D,cronString:K},presets:{preset:$,daysOfWeek:M,daysOfMonth:N,months:R,days:Q}},C,n)}]}class ne extends g{constructor(t){super(),k(this,t,te,ee,b,{})}}function re(o){let t,a,e,r;return t=new A({props:{title:`Schedule Edit | ${o[0].params.schedule}`,url:o[0].url.href}}),e=new ne({}),{c(){m(t.$$.fragment),a=W(),m(e.$$.fragment)},l(n){f(t.$$.fragment,n),a=z(n),f(e.$$.fragment,n)},m(n,s){p(t,n,s),w(n,a,s),p(e,n,s),r=!0},p(n,[s]){const u={};s&1&&(u.title=`Schedule Edit | ${n[0].params.schedule}`),s&1&&(u.url=n[0].url.href),t.$set(u)},i(n){r||(l(t.$$.fragment,n),l(e.$$.fragment,n),r=!0)},o(n){i(t.$$.fragment,n),i(e.$$.fragment,n),r=!1},d(n){d(t,n),n&&S(a),d(e,n)}}}function ae(o,t,a){let e;return y(o,E,r=>a(0,e=r)),[e]}class ge extends g{constructor(t){super(),k(this,t,ae,re,b,{})}}export{ge as component}; diff --git a/ui/assets/local/_app/immutable/nodes/25.8db0dae8.js b/ui/assets/local/_app/immutable/nodes/25.2e6a0ab4.js similarity index 88% rename from ui/assets/local/_app/immutable/nodes/25.8db0dae8.js rename to ui/assets/local/_app/immutable/nodes/25.2e6a0ab4.js index 4bca53043d..78071d6141 100644 --- a/ui/assets/local/_app/immutable/nodes/25.8db0dae8.js +++ b/ui/assets/local/_app/immutable/nodes/25.2e6a0ab4.js @@ -1 +1 @@ -import{S as l,b as g,a as _,C as m,D as p,E as i,n as E,j as f,g as u,F as $,K as d,c as F,d as I,f as K,k as M}from"../chunks/index.4e2fcbc7.js";import{p as h}from"../chunks/stores.14a97433.js";import{P as Q}from"../chunks/page-title.f9a44b80.js";import{S as T}from"../chunks/schedule-form-view.e4ddd14f.js";import{a as W}from"../chunks/schedules.71007bee.js";function z(a){let t,r;return t=new T({props:{onConfirm:a[0]}}),{c(){m(t.$$.fragment)},l(e){p(t.$$.fragment,e)},m(e,s){i(t,e,s),r=!0},p:E,i(e){r||(f(t.$$.fragment,e),r=!0)},o(e){u(t.$$.fragment,e),r=!1},d(e){$(t,e)}}}function A(a,t,r){let e;d(a,h,o=>r(1,e=o));let{namespace:s}=e.params;return[(o,c)=>{const{name:w,workflowType:S,workflowId:C,taskQueue:y,hour:k,minute:b,second:v,phase:P,cronString:x,daysOfWeek:O,daysOfMonth:j,days:q,months:D}=c;W({action:{namespace:s,name:w,workflowType:S,workflowId:C,taskQueue:y},spec:{hour:k,minute:b,second:v,phase:P,cronString:x},presets:{preset:o,daysOfWeek:O,daysOfMonth:j,months:D,days:q}})}]}class B extends l{constructor(t){super(),g(this,t,A,z,_,{})}}function G(a){let t,r,e,s;return t=new Q({props:{title:`Create Schedule | ${a[1]}`,url:a[0].url.href}}),e=new B({}),{c(){m(t.$$.fragment),r=F(),m(e.$$.fragment)},l(n){p(t.$$.fragment,n),r=I(n),p(e.$$.fragment,n)},m(n,o){i(t,n,o),K(n,r,o),i(e,n,o),s=!0},p(n,[o]){const c={};o&1&&(c.url=n[0].url.href),t.$set(c)},i(n){s||(f(t.$$.fragment,n),f(e.$$.fragment,n),s=!0)},o(n){u(t.$$.fragment,n),u(e.$$.fragment,n),s=!1},d(n){$(t,n),n&&M(r),$(e,n)}}}function H(a,t,r){let e;d(a,h,n=>r(0,e=n));const s=e.params.namespace;return[e,s]}class Z extends l{constructor(t){super(),g(this,t,H,G,_,{})}}export{Z as component}; +import{S as l,b as g,a as _,C as m,D as p,E as i,n as E,j as f,g as u,F as $,K as d,c as F,d as I,f as K,k as M}from"../chunks/index.4e2fcbc7.js";import{p as h}from"../chunks/stores.0e7b7e35.js";import{P as Q}from"../chunks/page-title.f9a44b80.js";import{S as T}from"../chunks/schedule-form-view.7c016119.js";import{a as W}from"../chunks/schedules.cfaf5e30.js";function z(a){let t,r;return t=new T({props:{onConfirm:a[0]}}),{c(){m(t.$$.fragment)},l(e){p(t.$$.fragment,e)},m(e,s){i(t,e,s),r=!0},p:E,i(e){r||(f(t.$$.fragment,e),r=!0)},o(e){u(t.$$.fragment,e),r=!1},d(e){$(t,e)}}}function A(a,t,r){let e;d(a,h,o=>r(1,e=o));let{namespace:s}=e.params;return[(o,c)=>{const{name:w,workflowType:S,workflowId:C,taskQueue:y,hour:k,minute:b,second:v,phase:P,cronString:x,daysOfWeek:O,daysOfMonth:j,days:q,months:D}=c;W({action:{namespace:s,name:w,workflowType:S,workflowId:C,taskQueue:y},spec:{hour:k,minute:b,second:v,phase:P,cronString:x},presets:{preset:o,daysOfWeek:O,daysOfMonth:j,months:D,days:q}})}]}class B extends l{constructor(t){super(),g(this,t,A,z,_,{})}}function G(a){let t,r,e,s;return t=new Q({props:{title:`Create Schedule | ${a[1]}`,url:a[0].url.href}}),e=new B({}),{c(){m(t.$$.fragment),r=F(),m(e.$$.fragment)},l(n){p(t.$$.fragment,n),r=I(n),p(e.$$.fragment,n)},m(n,o){i(t,n,o),K(n,r,o),i(e,n,o),s=!0},p(n,[o]){const c={};o&1&&(c.url=n[0].url.href),t.$set(c)},i(n){s||(f(t.$$.fragment,n),f(e.$$.fragment,n),s=!0)},o(n){u(t.$$.fragment,n),u(e.$$.fragment,n),s=!1},d(n){$(t,n),n&&M(r),$(e,n)}}}function H(a,t,r){let e;d(a,h,n=>r(0,e=n));const s=e.params.namespace;return[e,s]}class Z extends l{constructor(t){super(),g(this,t,H,G,_,{})}}export{Z as component}; diff --git a/ui/assets/local/_app/immutable/nodes/27.c50c71d8.js b/ui/assets/local/_app/immutable/nodes/27.6d331fe3.js similarity index 92% rename from ui/assets/local/_app/immutable/nodes/27.c50c71d8.js rename to ui/assets/local/_app/immutable/nodes/27.6d331fe3.js index fd1411a19a..a1ae4f2107 100644 --- a/ui/assets/local/_app/immutable/nodes/27.c50c71d8.js +++ b/ui/assets/local/_app/immutable/nodes/27.6d331fe3.js @@ -1 +1 @@ -import{S as Q,b as P,a as C,ar as T,e as p,f as g,as as v,j as u,g as i,k as d,K as W,n as a,C as _,D as k,E as $,F as b,c as I,d as N}from"../chunks/index.4e2fcbc7.js";import{p as F}from"../chunks/stores.14a97433.js";import{P as S}from"../chunks/page-title.f9a44b80.js";import{W as h}from"../chunks/workers-list.1ce615d3.js";import{g as j,a as B,b as D}from"../chunks/pollers-service.541d2792.js";import{p as E,c as H}from"../chunks/task-queue-compatibility.cf5696f8.js";function y(r){const t=E(r[4].pollers);r[5]=t}function q(r){r[7]=r[9][0],r[8]=r[9][1]}function K(r){const t=r.slice(),l=H(t[4].pollers);return t[6]=l,t}function R(r){return{c:a,l:a,m:a,p:a,i:a,o:a,d:a}}function U(r){y(r);let t,l,e,n;const o=[z,V],c=[];function m(s,f){return s[5]?0:1}function w(s,f){return f===0?K(s):s}return t=m(r),l=c[t]=o[t](w(r,t)),{c(){l.c(),e=p()},l(s){l.l(s),e=p()},m(s,f){c[t].m(s,f),g(s,e,f),n=!0},p(s,f){y(s),l.p(w(s,t),f)},i(s){n||(u(l),n=!0)},o(s){i(l),n=!1},d(s){c[t].d(s),s&&d(e)}}}function V(r){let t,l;return t=new h({props:{taskQueue:r[0],workers:r[4]}}),{c(){_(t.$$.fragment)},l(e){k(t.$$.fragment,e)},m(e,n){$(t,e,n),l=!0},p:a,i(e){l||(u(t.$$.fragment,e),l=!0)},o(e){i(t.$$.fragment,e),l=!1},d(e){b(t,e)}}}function z(r){let t,l,e={ctx:r,current:null,token:null,hasCatch:!0,pending:J,then:G,catch:A,value:9,blocks:[,,,]};return T(Promise.all([B({queue:r[0],namespace:r[1]}),D({namespace:r[1],buildIds:r[6],taskQueue:r[2]})]),e),{c(){t=p(),e.block.c()},l(n){t=p(),e.block.l(n)},m(n,o){g(n,t,o),e.block.m(n,e.anchor=o),e.mount=()=>t.parentNode,e.anchor=t,l=!0},p(n,o){r=n,v(e,r,o)},i(n){l||(u(e.block),l=!0)},o(n){for(let o=0;o<3;o+=1){const c=e.blocks[o];i(c)}l=!1},d(n){n&&d(t),e.block.d(n),e.token=null,e=null}}}function A(r){let t,l;return t=new h({props:{taskQueue:r[0],workers:r[4]}}),{c(){_(t.$$.fragment)},l(e){k(t.$$.fragment,e)},m(e,n){$(t,e,n),l=!0},p:a,i(e){l||(u(t.$$.fragment,e),l=!0)},o(e){i(t.$$.fragment,e),l=!1},d(e){b(t,e)}}}function G(r){q(r);let t,l;return t=new h({props:{taskQueue:r[0],workers:r[4],compatibility:r[7],reachability:r[8]}}),{c(){_(t.$$.fragment)},l(e){k(t.$$.fragment,e)},m(e,n){$(t,e,n),l=!0},p(e,n){q(e)},i(e){l||(u(t.$$.fragment,e),l=!0)},o(e){i(t.$$.fragment,e),l=!1},d(e){b(t,e)}}}function J(r){return{c:a,l:a,m:a,p:a,i:a,o:a,d:a}}function L(r){return{c:a,l:a,m:a,p:a,i:a,o:a,d:a}}function M(r){let t,l,e={ctx:r,current:null,token:null,hasCatch:!1,pending:L,then:U,catch:R,value:4,blocks:[,,,]};return T(j({queue:r[0],namespace:r[1]}),e),{c(){t=p(),e.block.c()},l(n){t=p(),e.block.l(n)},m(n,o){g(n,t,o),e.block.m(n,e.anchor=o),e.mount=()=>t.parentNode,e.anchor=t,l=!0},p(n,[o]){r=n,v(e,r,o)},i(n){l||(u(e.block),l=!0)},o(n){for(let o=0;o<3;o+=1){const c=e.blocks[o];i(c)}l=!1},d(n){n&&d(t),e.block.d(n),e.token=null,e=null}}}function O(r,t,l){let e;W(r,F,m=>l(3,e=m));let{queue:n,namespace:o,taskQueue:c}=e.params;return[n,o,c]}class X extends Q{constructor(t){super(),P(this,t,O,M,C,{})}}function Y(r){let t,l,e,n;return t=new S({props:{title:`Task Queue | ${r[1]}`,url:r[0].url.href}}),e=new X({}),{c(){_(t.$$.fragment),l=I(),_(e.$$.fragment)},l(o){k(t.$$.fragment,o),l=N(o),k(e.$$.fragment,o)},m(o,c){$(t,o,c),g(o,l,c),$(e,o,c),n=!0},p(o,[c]){const m={};c&1&&(m.url=o[0].url.href),t.$set(m)},i(o){n||(u(t.$$.fragment,o),u(e.$$.fragment,o),n=!0)},o(o){i(t.$$.fragment,o),i(e.$$.fragment,o),n=!1},d(o){b(t,o),o&&d(l),b(e,o)}}}function Z(r,t,l){let e;W(r,F,o=>l(0,e=o));const n=e.params.queue;return[e,n]}class le extends Q{constructor(t){super(),P(this,t,Z,Y,C,{})}}export{le as component}; +import{S as Q,b as P,a as C,ar as T,e as p,f as g,as as v,j as u,g as i,k as d,K as W,n as a,C as _,D as k,E as $,F as b,c as I,d as N}from"../chunks/index.4e2fcbc7.js";import{p as F}from"../chunks/stores.0e7b7e35.js";import{P as S}from"../chunks/page-title.f9a44b80.js";import{W as h}from"../chunks/workers-list.611e6068.js";import{g as j,a as B,b as D}from"../chunks/pollers-service.ea8b18d9.js";import{p as E,c as H}from"../chunks/task-queue-compatibility.cf5696f8.js";function y(r){const t=E(r[4].pollers);r[5]=t}function q(r){r[7]=r[9][0],r[8]=r[9][1]}function K(r){const t=r.slice(),l=H(t[4].pollers);return t[6]=l,t}function R(r){return{c:a,l:a,m:a,p:a,i:a,o:a,d:a}}function U(r){y(r);let t,l,e,n;const o=[z,V],c=[];function m(s,f){return s[5]?0:1}function w(s,f){return f===0?K(s):s}return t=m(r),l=c[t]=o[t](w(r,t)),{c(){l.c(),e=p()},l(s){l.l(s),e=p()},m(s,f){c[t].m(s,f),g(s,e,f),n=!0},p(s,f){y(s),l.p(w(s,t),f)},i(s){n||(u(l),n=!0)},o(s){i(l),n=!1},d(s){c[t].d(s),s&&d(e)}}}function V(r){let t,l;return t=new h({props:{taskQueue:r[0],workers:r[4]}}),{c(){_(t.$$.fragment)},l(e){k(t.$$.fragment,e)},m(e,n){$(t,e,n),l=!0},p:a,i(e){l||(u(t.$$.fragment,e),l=!0)},o(e){i(t.$$.fragment,e),l=!1},d(e){b(t,e)}}}function z(r){let t,l,e={ctx:r,current:null,token:null,hasCatch:!0,pending:J,then:G,catch:A,value:9,blocks:[,,,]};return T(Promise.all([B({queue:r[0],namespace:r[1]}),D({namespace:r[1],buildIds:r[6],taskQueue:r[2]})]),e),{c(){t=p(),e.block.c()},l(n){t=p(),e.block.l(n)},m(n,o){g(n,t,o),e.block.m(n,e.anchor=o),e.mount=()=>t.parentNode,e.anchor=t,l=!0},p(n,o){r=n,v(e,r,o)},i(n){l||(u(e.block),l=!0)},o(n){for(let o=0;o<3;o+=1){const c=e.blocks[o];i(c)}l=!1},d(n){n&&d(t),e.block.d(n),e.token=null,e=null}}}function A(r){let t,l;return t=new h({props:{taskQueue:r[0],workers:r[4]}}),{c(){_(t.$$.fragment)},l(e){k(t.$$.fragment,e)},m(e,n){$(t,e,n),l=!0},p:a,i(e){l||(u(t.$$.fragment,e),l=!0)},o(e){i(t.$$.fragment,e),l=!1},d(e){b(t,e)}}}function G(r){q(r);let t,l;return t=new h({props:{taskQueue:r[0],workers:r[4],compatibility:r[7],reachability:r[8]}}),{c(){_(t.$$.fragment)},l(e){k(t.$$.fragment,e)},m(e,n){$(t,e,n),l=!0},p(e,n){q(e)},i(e){l||(u(t.$$.fragment,e),l=!0)},o(e){i(t.$$.fragment,e),l=!1},d(e){b(t,e)}}}function J(r){return{c:a,l:a,m:a,p:a,i:a,o:a,d:a}}function L(r){return{c:a,l:a,m:a,p:a,i:a,o:a,d:a}}function M(r){let t,l,e={ctx:r,current:null,token:null,hasCatch:!1,pending:L,then:U,catch:R,value:4,blocks:[,,,]};return T(j({queue:r[0],namespace:r[1]}),e),{c(){t=p(),e.block.c()},l(n){t=p(),e.block.l(n)},m(n,o){g(n,t,o),e.block.m(n,e.anchor=o),e.mount=()=>t.parentNode,e.anchor=t,l=!0},p(n,[o]){r=n,v(e,r,o)},i(n){l||(u(e.block),l=!0)},o(n){for(let o=0;o<3;o+=1){const c=e.blocks[o];i(c)}l=!1},d(n){n&&d(t),e.block.d(n),e.token=null,e=null}}}function O(r,t,l){let e;W(r,F,m=>l(3,e=m));let{queue:n,namespace:o,taskQueue:c}=e.params;return[n,o,c]}class X extends Q{constructor(t){super(),P(this,t,O,M,C,{})}}function Y(r){let t,l,e,n;return t=new S({props:{title:`Task Queue | ${r[1]}`,url:r[0].url.href}}),e=new X({}),{c(){_(t.$$.fragment),l=I(),_(e.$$.fragment)},l(o){k(t.$$.fragment,o),l=N(o),k(e.$$.fragment,o)},m(o,c){$(t,o,c),g(o,l,c),$(e,o,c),n=!0},p(o,[c]){const m={};c&1&&(m.url=o[0].url.href),t.$set(m)},i(o){n||(u(t.$$.fragment,o),u(e.$$.fragment,o),n=!0)},o(o){i(t.$$.fragment,o),i(e.$$.fragment,o),n=!1},d(o){b(t,o),o&&d(l),b(e,o)}}}function Z(r,t,l){let e;W(r,F,o=>l(0,e=o));const n=e.params.queue;return[e,n]}class le extends Q{constructor(t){super(),P(this,t,Z,Y,C,{})}}export{le as component}; diff --git a/ui/assets/local/_app/immutable/nodes/28.579be9a1.js b/ui/assets/local/_app/immutable/nodes/28.579be9a1.js new file mode 100644 index 0000000000..e1be203995 --- /dev/null +++ b/ui/assets/local/_app/immutable/nodes/28.579be9a1.js @@ -0,0 +1,3 @@ +import{S as re,b as oe,a as se,e as X,f as I,z as G,g as $,h as J,j as h,k as g,K as j,G as he,H as ge,I as be,J as $e,A as ie,a0 as fe,C as E,D as T,E as y,a1 as ue,F as D,M as xe,m as N,p as A,q as W,u as S,c as F,d as V,L as C,w as q,x as U,y as te,ac as et,Q as ce,ag as ot,a3 as Ue,a4 as je,n as K,a5 as le,af as Fe,a7 as Ee,aa as ut,at as gr,P as me,i as Rn,a2 as br,r as ct,V as Me,ab as yt,Z as Zt,_ as xt,aq as Mn,N as vt,U as It,au as $r,ae as kr,l as wr,ak as vr,a8 as el,v as tl,s as Vt,$ as At,o as Hn,a6 as Ir}from"../chunks/index.4e2fcbc7.js";import{p as Te}from"../chunks/stores.0e7b7e35.js";import{a as mt,i as Er,g as ll}from"../chunks/workflow-service.e2f4a06b.js";import{P as Tr}from"../chunks/page-title.f9a44b80.js";import{w as He,j as Ge}from"../chunks/singletons.13b3836d.js";import{I as ye}from"../chunks/input.4b0dcfae.js";import{M as yr}from"../chunks/modal.19f8e4b8.js";import{t as P}from"../chunks/translate.d23a91ae.js";import{T as Pe,i as Dr,w as nl,W as Lr}from"../chunks/translate.b598b7ef.js";import{A as Ze}from"../chunks/workflow-actions.6f88149c.js";import{a as Br}from"../chunks/auth-user.ce52bc5e.js";import{g as Sr,f as Cr,C as Mt,a as Nr,w as Ar}from"../chunks/workflow-terminate-enabled.cbb14ee6.js";import{v as Pr,t as rl}from"../chunks/toaster.de22ba12.js";import{f as tt,a as qn}from"../chunks/index.6509bfd4.js";import{B as lt}from"../chunks/button.a45b0e55.js";import{w as pe,s as ol}from"../chunks/filters.83a38186.js";import{r as ze,b as st,l as Un,u as Dt,c as jn,a as zn,d as Ht,w as Et,g as Or}from"../chunks/workflows.73426400.js";import{t as Fr,j as Kn,F as Vr,b as sl,S as Wr,W as Rr,a as Mr}from"../chunks/index.1ccf1fb0.js";import{r as Lt,t as Hr,z as Bt,l as qr,m as Ur,n as Wt,o as jr,A as bt,B as zr,C as al,u as $t}from"../chunks/format-time.4f091e0e.js";import{i as il,t as at,c as Kr,d as Qr,e as fl,r as Qn,b as Ie}from"../chunks/time-format.fa373b4c.js";import{l as ul,e as Yr,d as Gr,m as Jr,a as Xr}from"../chunks/has.183130b0.js";import{u as Ae}from"../chunks/update-query-parameters.64a6ca26.js";import{T as Zr}from"../chunks/toggle-switch.3a41e457.js";import{s as nt,b as xr,c as Yn,i as eo,w as to}from"../chunks/search-attributes.5443a149.js";import{M as _t,a as dt,b as pt,d as Oe,c as lo}from"../chunks/menu.716bcd2f.js";import{I as Le}from"../chunks/icon-button.92948dd7.js";import{w as cl,a as no,b as ml,S as ro,O as oo}from"../chunks/option.145cb9b7.js";import{I as Ve}from"../chunks/icon.e8aa24c8.js";import{M as St}from"../chunks/menu-divider.ada09983.js";import{a as Gn}from"../chunks/radio-input.9ccf281c.js";import{T as so,a as _l}from"../chunks/toggle-buttons.9dfbcbed.js";import{W as qt}from"../chunks/workflow-status.781aff44.js";import{D as ao}from"../chunks/drawer.f57bb4b9.js";import{A as io}from"../chunks/alert.9612e524.js";import{L as rt}from"../chunks/link.6803bb00.js";import{L as Ut}from"../chunks/loading.95801385.js";import{P as fo}from"../chunks/table-header-row.fec98b60.js";import{a as wt,d as dl,c as kt,b as uo,M as pl,o as Jn,F as co}from"../chunks/pagination.aba14fc4.js";import{n as mo,l as Tt}from"../chunks/namespaces.c82b5451.js";import{p as Xn}from"../chunks/persist-store.8930b3b5.js";import{B as _o}from"../chunks/badge.96e01a15.js";import{g as po}from"../chunks/route-for.084c7a46.js";import{i as ho}from"../chunks/version-check.d006b302.js";import{s as go}from"../chunks/settings.0d5c4f96.js";import{t as bo}from"../chunks/versions.6cca9ce8.js";import{c as $o}from"../chunks/core-user.d32cd5bb.js";import{b as ko,c as wo}from"../chunks/batch-operations.fbef62e1.js";import{s as vo}from"../chunks/parse-with-big-int.0036a80a.js";import{S as Pt,a as Ye}from"../chunks/simple-select.db1acee2.js";import{E as Zn}from"../chunks/empty-state.721f6c59.js";import{P as Io}from"../chunks/pagination.605d1f82.js";function jt(r,e){Lt(2,arguments);var l=Hr(r).getTime(),t=Bt(e);return new Date(l+t)}var Eo=36e5;function To(r,e){Lt(2,arguments);var l=Bt(e);return jt(r,l*Eo)}var yo=6e4;function Do(r,e){Lt(2,arguments);var l=Bt(e);return jt(r,l*yo)}function Lo(r,e){Lt(2,arguments);var l=Bt(e);return jt(r,l*1e3)}const Bo=!1,fm=Object.freeze(Object.defineProperty({__proto__:null,ssr:Bo},Symbol.toStringTag,{value:"Module"})),So=r=>({}),hl=r=>({});function Co(r){let e;const l=r[2].fallback,t=he(l,r,r[1],hl);return{c(){t&&t.c()},l(n){t&&t.l(n)},m(n,o){t&&t.m(n,o),e=!0},p(n,o){t&&t.p&&(!e||o&2)&&ge(t,l,n,n[1],e?$e(l,n[1],o,So):be(n[1]),hl)},i(n){e||(h(t,n),e=!0)},o(n){$(t,n),e=!1},d(n){t&&t.d(n)}}}function No(r){let e;const l=r[2].default,t=he(l,r,r[1],null);return{c(){t&&t.c()},l(n){t&&t.l(n)},m(n,o){t&&t.m(n,o),e=!0},p(n,o){t&&t.p&&(!e||o&2)&&ge(t,l,n,n[1],e?$e(l,n[1],o,null):be(n[1]),null)},i(n){e||(h(t,n),e=!0)},o(n){$(t,n),e=!1},d(n){t&&t.d(n)}}}function Ao(r){let e,l,t,n;const o=[No,Co],i=[];function a(s,f){return s[0]?0:1}return e=a(r),l=i[e]=o[e](r),{c(){l.c(),t=X()},l(s){l.l(s),t=X()},m(s,f){i[e].m(s,f),I(s,t,f),n=!0},p(s,[f]){let u=e;e=a(s),e===u?i[e].p(s,f):(G(),$(i[u],1,1,()=>{i[u]=null}),J(),l=i[e],l?l.p(s,f):(l=i[e]=o[e](s),l.c()),h(l,1),l.m(t.parentNode,t))},i(s){n||(h(l),n=!0)},o(s){$(l),n=!1},d(s){i[e].d(s),s&&g(t)}}}function Po(r,e,l){let t;j(r,mt,i=>l(0,t=i));let{$$slots:n={},$$scope:o}=e;return r.$$set=i=>{"$$scope"in i&&l(1,o=i.$$scope)},[t,o,n]}class Oo extends re{constructor(e){super(),oe(this,e,Po,Ao,se,{})}}function Fo(r){let e,l,t;return l=new Pe({props:{key:"workflows.batch-operation-modal-title",replace:{action:r[3]}}}),{c(){e=N("h3"),E(l.$$.fragment),this.h()},l(n){e=A(n,"H3",{slot:!0});var o=W(e);T(l.$$.fragment,o),o.forEach(g),this.h()},h(){S(e,"slot","title")},m(n,o){I(n,e,o),y(l,e,null),t=!0},p(n,o){const i={};o&8&&(i.replace={action:n[3]}),l.$set(i)},i(n){t||(h(l.$$.fragment,n),t=!0)},o(n){$(l.$$.fragment,n),t=!1},d(n){n&&g(e),D(l)}}}function Vo(r){let e,l,t;return l=new Pe({props:{key:r[0]===Ze.Cancel?"workflows.batch-cancel-confirmation":"workflows.batch-terminate-confirmation",count:r[1]}}),{c(){e=N("p"),E(l.$$.fragment)},l(n){e=A(n,"P",{});var o=W(e);T(l.$$.fragment,o),o.forEach(g)},m(n,o){I(n,e,o),y(l,e,null),t=!0},p(n,o){const i={};o&1&&(i.key=n[0]===Ze.Cancel?"workflows.batch-cancel-confirmation":"workflows.batch-terminate-confirmation"),o&2&&(i.count=n[1]),l.$set(i)},i(n){t||(h(l.$$.fragment,n),t=!0)},o(n){$(l.$$.fragment,n),t=!1},d(n){n&&g(e),D(l)}}}function Wo(r){let e,l,t,n,o,i,a,s,f,u;return l=new Pe({props:{key:"workflows.batch-operation-confirmation-all",replace:{action:r[3]}}}),f=new Pe({props:{key:"workflows.batch-operation-count-disclaimer",replace:{action:r[3]}}}),{c(){e=N("p"),E(l.$$.fragment),t=F(),n=N("div"),o=N("code"),i=q(r[2]),a=F(),s=N("span"),E(f.$$.fragment),this.h()},l(c){e=A(c,"P",{class:!0});var _=W(e);T(l.$$.fragment,_),_.forEach(g),t=V(c),n=A(c,"DIV",{class:!0});var m=W(n);o=A(m,"CODE",{"data-testid":!0});var p=W(o);i=U(p,r[2]),p.forEach(g),m.forEach(g),a=V(c),s=A(c,"SPAN",{class:!0});var d=W(s);T(f.$$.fragment,d),d.forEach(g),this.h()},h(){S(e,"class","mb-2"),S(o,"data-testid","batch-action-workflows-query"),S(n,"class","mb-2 overflow-scroll whitespace-nowrap rounded border border-primary bg-gray-100 p-2"),S(s,"class","text-xs")},m(c,_){I(c,e,_),y(l,e,null),I(c,t,_),I(c,n,_),C(n,o),C(o,i),I(c,a,_),I(c,s,_),y(f,s,null),u=!0},p(c,_){const m={};_&8&&(m.replace={action:c[3]}),l.$set(m),(!u||_&4)&&te(i,c[2]);const p={};_&8&&(p.replace={action:c[3]}),f.$set(p)},i(c){u||(h(l.$$.fragment,c),h(f.$$.fragment,c),u=!0)},o(c){$(l.$$.fragment,c),$(f.$$.fragment,c),u=!1},d(c){c&&g(e),D(l),c&&g(t),c&&g(n),c&&g(a),c&&g(s),D(f)}}}function Ro(r){let e,l,t,n,o,i,a,s,f,u;const c=[Wo,Vo],_=[];function m(w,v){return w[11]?0:1}l=m(r),t=_[l]=c[l](r);function p(w){r[19](w)}let d={id:`bulk-action-reason-${r[0]}`,label:P("common.reason"),hintText:P("workflows.batch-operation-confirmation-input-hint",{placeholder:r[9]}),placeholder:r[9]};r[4]!==void 0&&(d.value=r[4]),o=new ye({props:d}),ie.push(()=>fe(o,"value",p));function b(w){r[20](w)}let k={id:"batch-operation-job-id",label:P("common.job-id"),hintText:r[8]?P("batch.job-id-input-hint"):P("batch.job-id-input-error"),placeholder:r[12],valid:r[8]};return r[7]!==void 0&&(k.value=r[7]),s=new ye({props:k}),ie.push(()=>fe(s,"value",b)),s.$on("input",r[14]),{c(){e=N("div"),t.c(),n=F(),E(o.$$.fragment),a=F(),E(s.$$.fragment),this.h()},l(w){e=A(w,"DIV",{class:!0});var v=W(e);t.l(v),n=V(v),T(o.$$.fragment,v),a=V(v),T(s.$$.fragment,v),v.forEach(g),this.h()},h(){S(e,"class","mb-4 flex flex-col gap-2")},m(w,v){I(w,e,v),_[l].m(e,null),C(e,n),y(o,e,null),C(e,a),y(s,e,null),u=!0},p(w,v){let L=l;l=m(w),l===L?_[l].p(w,v):(G(),$(_[L],1,1,()=>{_[L]=null}),J(),t=_[l],t?t.p(w,v):(t=_[l]=c[l](w),t.c()),h(t,1),t.m(e,n));const R={};v&1&&(R.id=`bulk-action-reason-${w[0]}`),v&512&&(R.hintText=P("workflows.batch-operation-confirmation-input-hint",{placeholder:w[9]})),v&512&&(R.placeholder=w[9]),!i&&v&16&&(i=!0,R.value=w[4],ue(()=>i=!1)),o.$set(R);const B={};v&256&&(B.hintText=w[8]?P("batch.job-id-input-hint"):P("batch.job-id-input-error")),v&256&&(B.valid=w[8]),!f&&v&128&&(f=!0,B.value=w[7],ue(()=>f=!1)),s.$set(B)},i(w){u||(h(t),h(o.$$.fragment,w),h(s.$$.fragment,w),u=!0)},o(w){$(t),$(o.$$.fragment,w),$(s.$$.fragment,w),u=!1},d(w){w&&g(e),_[l].d(),D(o),D(s)}}}function Mo(r){let e,l,t,n;function o(s){r[21](s)}function i(s){r[22](s)}let a={id:`batch-operation-confirmation-modal-${r[0]}`,"data-testid":"batch-"+r[3]+"-confirmation",confirmType:"destructive",cancelText:P("common.cancel"),confirmDisabled:!r[8],confirmText:r[10],$$slots:{content:[Ro],title:[Fo]},$$scope:{ctx:r}};return r[5]!==void 0&&(a.open=r[5]),r[6]!==void 0&&(a.error=r[6]),e=new yr({props:a}),ie.push(()=>fe(e,"open",o)),ie.push(()=>fe(e,"error",i)),e.$on("confirmModal",r[13]),{c(){E(e.$$.fragment)},l(s){T(e.$$.fragment,s)},m(s,f){y(e,s,f),n=!0},p(s,[f]){const u={};f&1&&(u.id=`batch-operation-confirmation-modal-${s[0]}`),f&8&&(u["data-testid"]="batch-"+s[3]+"-confirmation"),f&256&&(u.confirmDisabled=!s[8]),f&1024&&(u.confirmText=s[10]),f&16780191&&(u.$$scope={dirty:f,ctx:s}),!l&&f&32&&(l=!0,u.open=s[5],ue(()=>l=!1)),!t&&f&64&&(t=!0,u.error=s[6],ue(()=>t=!1)),e.$set(u)},i(s){n||(h(e.$$.fragment,s),n=!0)},o(s){$(e.$$.fragment,s),n=!1},d(s){D(e,s)}}}function Ho(r,e,l){let t,n,o,i,a;j(r,Br,O=>l(18,i=O)),j(r,Ke,O=>l(11,a=O));let{action:s}=e,{actionableWorkflowsLength:f}=e,{query:u}=e,c="",_=!1,m="",p="",d=Pr(),b=!0;const k=()=>{l(4,c=""),l(5,_=!0)},w=()=>l(5,_=!1),v=O=>l(6,m=O),L=xe(),R=()=>{l(6,m=""),L("confirm",{reason:Cr({action:s,reason:c,email:i.email}),jobId:p||d})},B=O=>{/^[\w.~-]*$/.test(O.target.value)?l(8,b=!0):l(8,b=!1)};function M(O){c=O,l(4,c)}function x(O){p=O,l(7,p)}function ee(O){_=O,l(5,_)}function Y(O){m=O,l(6,m)}return r.$$set=O=>{"action"in O&&l(0,s=O.action),"actionableWorkflowsLength"in O&&l(1,f=O.actionableWorkflowsLength),"query"in O&&l(2,u=O.query)},r.$$.update=()=>{r.$$.dirty&1&&l(3,t=s===Ze.Cancel?P("common.cancel"):P("workflows.terminate")),r.$$.dirty&9&&l(10,n=s===Ze.Cancel?P("common.confirm"):t),r.$$.dirty&262145&&l(9,o=Sr(s,i.email))},[s,f,u,t,c,_,m,p,b,o,n,a,d,R,B,k,w,v,i,M,x,ee,Y]}class gl extends re{constructor(e){super(),oe(this,e,Ho,Mo,se,{action:0,actionableWorkflowsLength:1,query:2,open:15,close:16,setError:17})}get open(){return this.$$.ctx[15]}get close(){return this.$$.ctx[16]}get setError(){return this.$$.ctx[17]}}const qo={workflowId:"WorkflowId",workflowType:"WorkflowType",timeRange:"StartTime",executionStatus:"ExecutionStatus",closeTime:"CloseTime",runId:"RunId"},Uo=r=>!(r===null||r===void 0||r===""||typeof r=="string"&&r==="undefined"),jo=(r,e)=>e==="Bool"?r.toLowerCase()==="true":`"${r}"`,zo=(r,e,l,t="=",n,o)=>{const i=qo[r]??r;return l==="All"?"":o?`${i} ${l}`:qr(l)||Ur(l)?n||et(mt)?`${i} ${t} "${Wt(l)}"`:`${i} BETWEEN "${Wt(l)}" AND "${jr()}"`:`${i}${t}${jo(l,e)}`},Ko=(r,e)=>r.map(({attribute:l,type:t,value:n,conditional:o,operator:i,parenthesis:a,customDate:s})=>{if(Uo(n)){let f=zo(l,t,n,o,e,s);return a==="("?f=`(${f}`:a===")"&&(f=`${f})`),i&&(f=`${f} ${i} `),f}}).filter(Boolean),xn=(r=[],e=!1)=>Ko(r,e).join(""),er=r=>e=>e.toLowerCase()===r.toLowerCase(),bl=(r,e)=>r[e+2],Qo=(r,e)=>r[e-2],Yo=er("Datetime"),Go=er("Bool"),qe=()=>({attribute:"",type:"Keyword",value:"",operator:"",parenthesis:"",conditional:""}),Jo={ExecutionStatus:"Keyword",StartTime:"Datetime",CloseTime:"Datetime",WorkflowId:"Keyword",WorkflowType:"Keyword",RunId:"Keyword"},tr=(r,e=Jo)=>{const l=Fr(r),t=[];let n=qe();if(!r)return[];try{return l.forEach((o,i)=>{if(e[o])if(n.attribute=o,n.type=e[o],Yo(e[o])){const a=bl(l,i),s=il(a);if(ul(l[i+1])){const f=l[i+4],u=il(f);s&&u?(n.value=`BETWEEN "${a}" AND "${f}"`,n.customDate=!0):console.error("Error parsing Datetime field from query")}else s?n.value=a:console.error("Error parsing Datetime field from query")}else Go(n.type)?(n.value=l[i+1].replace("=",""),n.conditional="="):n.value=bl(l,i);Yr(o)&&(n.conditional=o),Gr(o)&&(n.parenthesis=o),Jr(o)&&!ul(Qo(l,i))&&(n.operator=o,t.push(n),n=qe()),i===l.length-1&&(t.push(n),n=qe())}),t}catch(o){return console.error("Error setting filter parameters: ",o),[]}},Xo=r=>{const e=r.filter(a=>a.attribute==="ExecutionStatus"&&a.value),l=r.filter(a=>a.attribute==="WorkflowId"&&a.value),t=r.filter(a=>a.attribute==="WorkflowType"&&a.value),n=r.filter(a=>a.attribute==="RunId"&&a.value),o=r.filter(a=>(a.attribute==="StartTime"||a.attribute==="CloseTime")&&a.value),i=[e,l,n,t,o].filter(a=>a.length);return i.forEach((a,s)=>{var f,u;a.length&&((f=i[s+1])!=null&&f.length)?a[a.length-1].operator="AND":a.length&&!((u=i[s+1])!=null&&u.length)&&(a[a.length-1].operator="")}),[...e,...l,...n,...t,...o]},lr=r=>(r.forEach((e,l)=>{const t=r[l-1];t&&!t.operator&&(t.operator="AND");const n=r[l+1];n||(e.operator=""),e.operator==="OR"&&(n==null?void 0:n.attribute)!==e.attribute?(e.parenthesis="",e.operator=""):e.operator==="OR"&&(t==null?void 0:t.operator)!=="OR"?e.parenthesis="(":(t==null?void 0:t.operator)==="OR"&&e.operator!=="OR"?e.parenthesis=")":e.parenthesis=""}),r),zt=Kn((r,e,l=!1)=>{const t=l?Xo(e):lr(e),n=xn(t);Ae({url:r,parameter:"query",value:n,allowEmpty:!1})},300);function Zo(r){let e=P("common.search")+"",l;return{c(){l=q(e)},l(t){l=U(t,e)},m(t,n){I(t,l,n)},p:K,d(t){t&&g(l)}}}function xo(r){let e,l,t,n,o,i,a,s,f,u,c,_;function m(d){r[5](d)}let p={id:"manual-search",type:"search",label:P("workflows.search-placeholder"),labelHidden:!0,placeholder:P("workflows.search-placeholder"),icon:"search",class:"w-full lg:w-3/4",clearable:!0,clearButtonLabel:P("common.clear-input-button-label"),unroundRight:!0};return r[0]!==void 0&&(p.value=r[0]),n=new ye({props:p}),ie.push(()=>fe(n,"value",m)),n.$on("clear",r[2]),a=new lt({props:{"data-testid":"manual-search-button",variant:"primary",borderRadiusModifier:"square-left",type:"submit",$$slots:{default:[Zo]},$$scope:{ctx:r}}}),{c(){e=N("div"),l=N("div"),t=N("form"),E(n.$$.fragment),i=F(),E(a.$$.fragment),this.h()},l(d){e=A(d,"DIV",{class:!0});var b=W(e);l=A(b,"DIV",{class:!0});var k=W(l);t=A(k,"FORM",{class:!0,role:!0});var w=W(t);T(n.$$.fragment,w),i=V(w),T(a.$$.fragment,w),w.forEach(g),k.forEach(g),b.forEach(g),this.h()},h(){S(t,"class","relative flex w-full items-center gap-0"),S(t,"role","search"),S(l,"class","flex w-full items-center gap-0"),S(e,"class","flex grow gap-4")},m(d,b){I(d,e,b),C(e,l),C(l,t),y(n,t,null),C(t,i),y(a,t,null),u=!0,c||(_=ce(t,"submit",ot(r[1])),c=!0)},p(d,[b]){const k={};!o&&b&1&&(o=!0,k.value=d[0],ue(()=>o=!1)),n.$set(k);const w={};b&1024&&(w.$$scope={dirty:b,ctx:d}),a.$set(w)},i(d){u||(h(n.$$.fragment,d),h(a.$$.fragment,d),s||Ue(()=>{s=je(t,tt,{x:-100,duration:150}),s.start()}),f||Ue(()=>{f=je(l,qn,{}),f.start()}),u=!0)},o(d){$(n.$$.fragment,d),$(a.$$.fragment,d),u=!1},d(d){d&&g(e),D(n),D(a),c=!1,_()}}}function es(r,e,l){let t,n,o,i,a;j(r,Te,m=>l(4,n=m)),j(r,ze,m=>l(6,o=m)),j(r,pe,m=>l(7,i=m)),j(r,st,m=>l(8,a=m));let s="";function f(m){l(0,s=m)}const u=()=>{if(!s)le(pe,i=[],i),le(st,a="",a);else try{le(pe,i=tr(s),i)}catch(m){console.error(m)}s&&s===t?le(ze,o=Date.now(),o):Ae({url:n.url,parameter:"query",value:s,allowEmpty:!0})};function c(){u()}function _(m){s=m,l(0,s)}return r.$$.update=()=>{r.$$.dirty&16&&l(3,t=n.url.searchParams.get("query")),r.$$.dirty&8&&f(t)},[s,u,c,t,n,_]}class ts extends re{constructor(e){super(),oe(this,e,es,xo,se,{})}}function Xe(r){return r==="ExecutionStatus"}function it({attribute:r,type:e},l=nt){if(Xe(r))return!1;if(e==="Keyword")return!0;const t=et(l)[r];return["Keyword","Text","String"].includes(t)}function nr({attribute:r,type:e},l=nt){return e==="KeywordList"?!0:et(l)[r]==="KeywordList"}function rr({attribute:r,type:e},l=nt){if(e==="Int")return!0;const t=et(l)[r];return["Int","Double"].includes(t)}function ls(r){return["ExecutionDuration"].includes(r)}function Kt({attribute:r,type:e},l=nt){return e==="Datetime"?!0:et(l)[r]==="Datetime"}function or({attribute:r,type:e},l=nt){return e==="Bool"?!0:et(l)[r]==="Bool"}function sr({attribute:r,type:e}){return Xe(r)?"status-filter":it({attribute:r,type:e})||rr({attribute:r,type:e})||Kt({attribute:r,type:e})?"conditional-menu-button":nr({attribute:r,type:e})?"list-filter-search":or({attribute:r,type:e})?"boolean-filter":""}function $l(r,e,l){const t=r.slice();return t[8]=e[l].value,t[9]=e[l].label,t}function ns(r){let e;return{c(){e=q(r[1])},l(l){e=U(l,r[1])},m(l,t){I(l,e,t)},p(l,t){t&2&&te(e,l[1])},d(l){l&&g(e)}}}function rs(r){let e=r[9]+"",l,t;return{c(){l=q(e),t=F()},l(n){l=U(n,e),t=V(n)},m(n,o){I(n,l,o),I(n,t,o)},p:K,d(n){n&&g(l),n&&g(t)}}}function kl(r){let e,l;function t(){return r[7](r[8])}return e=new Oe({props:{$$slots:{default:[rs]},$$scope:{ctx:r}}}),e.$on("click",t),{c(){E(e.$$.fragment)},l(n){T(e.$$.fragment,n)},m(n,o){y(e,n,o),l=!0},p(n,o){r=n;const i={};o&4096&&(i.$$scope={dirty:o,ctx:r}),e.$set(i)},i(n){l||(h(e.$$.fragment,n),l=!0)},o(n){$(e.$$.fragment,n),l=!1},d(n){D(e,n)}}}function os(r){let e,l,t=r[4],n=[];for(let i=0;i$(n[i],1,1,()=>{n[i]=null});return{c(){for(let i=0;il(0,o=c));const f=[{value:"true",label:P("common.true")},{value:"false",label:P("common.false")}],u=c=>{le(a,o.value=c,o),s()};return r.$$.update=()=>{r.$$.dirty&33&&l(6,t=l(5,i=f.find(c=>c.value===o.value))!==null&&i!==void 0?i:f[0]),r.$$.dirty&64&&l(1,n=t==null?void 0:t.label)},[o,n,a,s,f,i,t,u]}class fs extends re{constructor(e){super(),oe(this,e,is,as,se,{})}}function us(r){let e,l;return e=new Le({props:{label:P("common.close"),icon:"close",class:"ml-1"}}),e.$on("click",r[0]),{c(){E(e.$$.fragment)},l(t){T(e.$$.fragment,t)},m(t,n){y(e,t,n),l=!0},p:K,i(t){l||(h(e.$$.fragment,t),l=!0)},o(t){$(e.$$.fragment,t),l=!1},d(t){D(e,t)}}}function cs(r){const{resetFilter:e}=Fe(Be);return[e]}class ht extends re{constructor(e){super(),oe(this,e,cs,us,se,{})}}function wl(r,e,l){const t=r.slice();return t[9]=e[l].allowed,t[10]=e[l].value,t[12]=l,t}function vl(r,e,l){const t=r.slice();return t[13]=e[l],t}function Il(r){let e,l=r[13].label.slice(0,2)+"",t;return{c(){e=N("p"),t=q(l),this.h()},l(n){e=A(n,"P",{class:!0});var o=W(e);t=U(o,l),o.forEach(g),this.h()},h(){S(e,"class","cell svelte-1we9vff")},m(n,o){I(n,e,o),C(e,t)},p:K,d(n){n&&g(e)}}}function El(r,e){let l,t=(e[10]||"")+"",n,o,i,a;function s(){return e[6](e[10])}return{key:r,first:null,c(){l=N("button"),n=q(t),o=F(),this.h()},l(f){l=A(f,"BUTTON",{type:!0,class:!0});var u=W(l);n=U(u,t),o=V(u),u.forEach(g),this.h()},h(){S(l,"type","button"),S(l,"class","cell svelte-1we9vff"),me(l,"highlight",e[9]&&e[10]),me(l,"disabled",!e[9]),me(l,"selected",new Date(e[0].getFullYear(),e[0].getMonth(),e[0].getDate()).getTime()===new Date(e[2],e[1],e[10]).getTime()),this.first=l},m(f,u){I(f,l,u),C(l,n),C(l,o),i||(a=ce(l,"click",function(){Rn(e[9]&&e[10]?s:K)&&(e[9]&&e[10]?s:K).apply(this,arguments)}),i=!0)},p(f,u){e=f,u&8&&t!==(t=(e[10]||"")+"")&&te(n,t),u&8&&me(l,"highlight",e[9]&&e[10]),u&8&&me(l,"disabled",!e[9]),u&15&&me(l,"selected",new Date(e[0].getFullYear(),e[0].getMonth(),e[0].getDate()).getTime()===new Date(e[2],e[1],e[10]).getTime())},d(f){f&&g(l),i=!1,a()}}}function ms(r){let e,l,t,n,o=[],i=new Map,a=cl,s=[];for(let c=0;cc[12];for(let c=0;c!0}=e,s=[];const f=_=>{t("datechange",new Date(i,o,_))},u=(_,m,p)=>p?a(new Date(_,m,p)):!0,c=_=>f(_);return r.$$set=_=>{"date"in _&&l(0,n=_.date),"month"in _&&l(1,o=_.month),"year"in _&&l(2,i=_.year),"isAllowed"in _&&l(5,a=_.isAllowed)},r.$$.update=()=>{r.$$.dirty&6&&l(3,s=no(o,i).map(_=>({value:_,allowed:u(i,o,_)})))},[n,o,i,s,f,a,c]}class ds extends re{constructor(e){super(),oe(this,e,_s,ms,se,{date:0,month:1,year:2,isAllowed:5})}}function Tl(r){var Q;let e,l,t,n,o,i,a,s=(((Q=ml(r[8]))==null?void 0:Q.label)??"")+"",f,u,c,_,m,p,d,b,k,w,v,L,R,B,M,x,ee,Y,O;return o=new Ve({props:{name:"chevron-left"}}),d=new Ve({props:{name:"chevron-right"}}),k=new ds({props:{month:r[8],year:r[9],date:r[0],isAllowed:r[1]}}),k.$on("datechange",r[15]),{c(){e=N("div"),l=N("div"),t=N("div"),n=N("button"),E(o.$$.fragment),i=F(),a=N("div"),f=q(s),u=F(),c=q(r[9]),_=F(),m=N("div"),p=N("button"),E(d.$$.fragment),b=F(),E(k.$$.fragment),w=F(),v=N("div"),L=N("button"),R=q(r[4]),B=F(),M=N("button"),x=q(r[5]),this.h()},l(z){e=A(z,"DIV",{class:!0});var H=W(e);l=A(H,"DIV",{class:!0});var ae=W(l);t=A(ae,"DIV",{class:!0});var _e=W(t);n=A(_e,"BUTTON",{type:!0});var de=W(n);T(o.$$.fragment,de),de.forEach(g),_e.forEach(g),i=V(ae),a=A(ae,"DIV",{class:!0});var we=W(a);f=U(we,s),u=V(we),c=U(we,r[9]),we.forEach(g),_=V(ae),m=A(ae,"DIV",{class:!0});var Z=W(m);p=A(Z,"BUTTON",{type:!0});var ke=W(p);T(d.$$.fragment,ke),ke.forEach(g),Z.forEach(g),ae.forEach(g),b=V(H),T(k.$$.fragment,H),w=V(H),v=A(H,"DIV",{class:!0});var ve=W(v);L=A(ve,"BUTTON",{type:!0,class:!0});var We=W(L);R=U(We,r[4]),We.forEach(g),B=V(ve),M=A(ve,"BUTTON",{type:!0,class:!0});var gt=W(M);x=U(gt,r[5]),gt.forEach(g),ve.forEach(g),H.forEach(g),this.h()},h(){S(n,"type","button"),S(t,"class","flex items-center justify-center"),S(a,"class","flex items-center justify-center"),S(p,"type","button"),S(m,"class","flex items-center justify-center"),S(l,"class","mx-3 my-2 flex items-center justify-around"),S(L,"type","button"),S(L,"class","cursor-pointer text-[12px]"),S(M,"type","button"),S(M,"class","cursor-pointer text-[12px]"),S(v,"class","my-1 flex justify-between px-2"),S(e,"class","absolute z-30 inline-block rounded border border-gray-900 bg-white shadow")},m(z,H){I(z,e,H),C(e,l),C(l,t),C(t,n),y(o,n,null),C(l,i),C(l,a),C(a,f),C(a,u),C(a,c),C(l,_),C(l,m),C(m,p),y(d,p,null),C(e,b),y(k,e,null),C(e,w),C(e,v),C(v,L),C(L,R),C(v,B),C(v,M),C(M,x),ee=!0,Y||(O=[ce(n,"click",r[14]),ce(p,"click",r[13]),ce(L,"click",r[16]),ce(M,"click",r[17])],Y=!0)},p(z,H){var _e;(!ee||H&256)&&s!==(s=(((_e=ml(z[8]))==null?void 0:_e.label)??"")+"")&&te(f,s),(!ee||H&512)&&te(c,z[9]);const ae={};H&256&&(ae.month=z[8]),H&512&&(ae.year=z[9]),H&1&&(ae.date=z[0]),H&2&&(ae.isAllowed=z[1]),k.$set(ae),(!ee||H&16)&&te(R,z[4]),(!ee||H&32)&&te(x,z[5])},i(z){ee||(h(o.$$.fragment,z),h(d.$$.fragment,z),h(k.$$.fragment,z),ee=!0)},o(z){$(o.$$.fragment,z),$(d.$$.fragment,z),$(k.$$.fragment,z),ee=!1},d(z){z&&g(e),D(o),D(d),D(k),Y=!1,ct(O)}}}function ps(r){let e,l,t,n,o,i;l=new ye({props:{id:"datepicker",label:r[2],labelHidden:r[3],icon:"calendar-plus",type:"text",placeholder:"MM/DD/YY",value:r[0].toDateString(),clearable:!0,clearButtonLabel:r[6],disabled:r[7]}}),l.$on("focus",r[11]),l.$on("input",r[12]);let a=r[10]&&Tl(r);return{c(){e=N("div"),E(l.$$.fragment),t=F(),a&&a.c(),this.h()},l(s){e=A(s,"DIV",{class:!0});var f=W(e);T(l.$$.fragment,f),t=V(f),a&&a.l(f),f.forEach(g),this.h()},h(){S(e,"class","relative")},m(s,f){I(s,e,f),y(l,e,null),C(e,t),a&&a.m(e,null),n=!0,o||(i=[br(lo.call(null,e)),ce(e,"click-outside",r[18])],o=!0)},p(s,[f]){const u={};f&4&&(u.label=s[2]),f&8&&(u.labelHidden=s[3]),f&1&&(u.value=s[0].toDateString()),f&64&&(u.clearButtonLabel=s[6]),f&128&&(u.disabled=s[7]),l.$set(u),s[10]?a?(a.p(s,f),f&1024&&h(a,1)):(a=Tl(s),a.c(),h(a,1),a.m(e,null)):a&&(G(),$(a,1,1,()=>{a=null}),J())},i(s){n||(h(l.$$.fragment,s),h(a),n=!0)},o(s){$(l.$$.fragment,s),$(a),n=!1},d(s){s&&g(e),D(l),a&&a.d(),o=!1,ct(i)}}}function hs(r,e,l){const t=xe();let{isAllowed:n=()=>!0}=e,{selected:o=new Date}=e,{label:i}=e,{labelHidden:a=!1}=e,{todayLabel:s}=e,{closeLabel:f}=e,{clearLabel:u}=e,{disabled:c=!1}=e,_,m,p=!1;const d=()=>{l(10,p=!0)},b=M=>{const ee=M.target.value;if(ee.length===8){const Y=ee==null?void 0:ee.split("/"),Q=2e3+parseInt(Y[2]),z=parseInt(Y[0])-1,H=parseInt(Y[1]),ae=new Date(Q,z,H);t("datechange",ae)}},k=()=>{if(_===11){l(8,_=0),l(9,m=m+1);return}l(8,_=_+1)},w=()=>{if(_===0){l(8,_=11),l(9,m-=1);return}l(8,_-=1)},v=M=>{l(10,p=!1),t("datechange",M.detail)},L=()=>l(0,o=new Date),R=()=>l(10,p=!1),B=()=>l(10,p=!1);return r.$$set=M=>{"isAllowed"in M&&l(1,n=M.isAllowed),"selected"in M&&l(0,o=M.selected),"label"in M&&l(2,i=M.label),"labelHidden"in M&&l(3,a=M.labelHidden),"todayLabel"in M&&l(4,s=M.todayLabel),"closeLabel"in M&&l(5,f=M.closeLabel),"clearLabel"in M&&l(6,u=M.clearLabel),"disabled"in M&&l(7,c=M.disabled)},r.$$.update=()=>{r.$$.dirty&1&&(l(8,_=o.getMonth()),l(9,m=o.getFullYear()))},[o,n,i,a,s,f,u,c,_,m,p,d,b,k,w,v,L,R,B]}class Qt extends re{constructor(e){super(),oe(this,e,hs,ps,se,{isAllowed:1,selected:0,label:2,labelHidden:3,todayLabel:4,closeLabel:5,clearLabel:6,disabled:7})}}function yl(r){let e,l;return e=new so({props:{$$slots:{default:[$s]},$$scope:{ctx:r}}}),{c(){E(e.$$.fragment)},l(t){T(e.$$.fragment,t)},m(t,n){y(e,t,n),l=!0},p(t,n){const o={};n&2056&&(o.$$scope={dirty:n,ctx:t}),e.$set(o)},i(t){l||(h(e.$$.fragment,t),l=!0)},o(t){$(e.$$.fragment,t),l=!1},d(t){D(e,t)}}}function gs(r){let e;return{c(){e=q("AM")},l(l){e=U(l,"AM")},m(l,t){I(l,e,t)},d(l){l&&g(e)}}}function bs(r){let e;return{c(){e=q("PM")},l(l){e=U(l,"PM")},m(l,t){I(l,e,t)},d(l){l&&g(e)}}}function $s(r){let e,l,t,n;return e=new _l({props:{active:r[3]==="AM",$$slots:{default:[gs]},$$scope:{ctx:r}}}),e.$on("click",r[9]),t=new _l({props:{active:r[3]==="PM",$$slots:{default:[bs]},$$scope:{ctx:r}}}),t.$on("click",r[10]),{c(){E(e.$$.fragment),l=F(),E(t.$$.fragment)},l(o){T(e.$$.fragment,o),l=V(o),T(t.$$.fragment,o)},m(o,i){y(e,o,i),I(o,l,i),y(t,o,i),n=!0},p(o,i){const a={};i&8&&(a.active=o[3]==="AM"),i&2048&&(a.$$scope={dirty:i,ctx:o}),e.$set(a);const s={};i&8&&(s.active=o[3]==="PM"),i&2048&&(s.$$scope={dirty:i,ctx:o}),t.$set(s)},i(o){n||(h(e.$$.fragment,o),h(t.$$.fragment,o),n=!0)},o(o){$(e.$$.fragment,o),$(t.$$.fragment,o),n=!1},d(o){D(e,o),o&&g(l),D(t,o)}}}function ks(r){let e,l,t,n,o,i,a,s,f,u,c;function _(v){r[6](v)}let m={id:"hour",label:"hrs",labelHidden:!0,placeholder:"00",suffix:"hrs",maxLength:2,error:r[4]?parseInt(r[0])>12:parseInt(r[0])>23,disabled:r[5]};r[0]!==void 0&&(m.value=r[0]),l=new ye({props:m}),ie.push(()=>fe(l,"value",_));function p(v){r[7](v)}let d={id:"minute",label:"min",labelHidden:!0,required:!0,placeholder:"00",suffix:"min",maxLength:2,error:Boolean(parseInt(r[0])>59),disabled:r[5]};r[1]!==void 0&&(d.value=r[1]),o=new ye({props:d}),ie.push(()=>fe(o,"value",p));function b(v){r[8](v)}let k={id:"second",label:"sec",labelHidden:!0,placeholder:"00",suffix:"sec",maxLength:2,error:Boolean(parseInt(r[0])>59),disabled:r[5]};r[2]!==void 0&&(k.value=r[2]),s=new ye({props:k}),ie.push(()=>fe(s,"value",b));let w=r[4]&&yl(r);return{c(){e=N("div"),E(l.$$.fragment),n=F(),E(o.$$.fragment),a=F(),E(s.$$.fragment),u=F(),w&&w.c(),this.h()},l(v){e=A(v,"DIV",{class:!0});var L=W(e);T(l.$$.fragment,L),n=V(L),T(o.$$.fragment,L),a=V(L),T(s.$$.fragment,L),u=V(L),w&&w.l(L),L.forEach(g),this.h()},h(){S(e,"class","flex gap-2")},m(v,L){I(v,e,L),y(l,e,null),C(e,n),y(o,e,null),C(e,a),y(s,e,null),C(e,u),w&&w.m(e,null),c=!0},p(v,[L]){const R={};L&17&&(R.error=v[4]?parseInt(v[0])>12:parseInt(v[0])>23),L&32&&(R.disabled=v[5]),!t&&L&1&&(t=!0,R.value=v[0],ue(()=>t=!1)),l.$set(R);const B={};L&1&&(B.error=Boolean(parseInt(v[0])>59)),L&32&&(B.disabled=v[5]),!i&&L&2&&(i=!0,B.value=v[1],ue(()=>i=!1)),o.$set(B);const M={};L&1&&(M.error=Boolean(parseInt(v[0])>59)),L&32&&(M.disabled=v[5]),!f&&L&4&&(f=!0,M.value=v[2],ue(()=>f=!1)),s.$set(M),v[4]?w?(w.p(v,L),L&16&&h(w,1)):(w=yl(v),w.c(),h(w,1),w.m(e,null)):w&&(G(),$(w,1,1,()=>{w=null}),J())},i(v){c||(h(l.$$.fragment,v),h(o.$$.fragment,v),h(s.$$.fragment,v),h(w),c=!0)},o(v){$(l.$$.fragment,v),$(o.$$.fragment,v),$(s.$$.fragment,v),$(w),c=!1},d(v){v&&g(e),D(l),D(o),D(s),w&&w.d()}}}function ws(r,e,l){let{hour:t=""}=e,{minute:n=""}=e,{second:o=""}=e,{half:i="AM"}=e,{twelveHourClock:a=!0}=e,{disabled:s=!1}=e;function f(p){t=p,l(0,t)}function u(p){n=p,l(1,n)}function c(p){o=p,l(2,o)}const _=()=>l(3,i="AM"),m=()=>l(3,i="PM");return r.$$set=p=>{"hour"in p&&l(0,t=p.hour),"minute"in p&&l(1,n=p.minute),"second"in p&&l(2,o=p.second),"half"in p&&l(3,i=p.half),"twelveHourClock"in p&&l(4,a=p.twelveHourClock),"disabled"in p&&l(5,s=p.disabled)},[t,n,o,i,a,s,f,u,c,_,m]}class Yt extends re{constructor(e){super(),oe(this,e,ws,ks,se,{hour:0,minute:1,second:2,half:3,twelveHourClock:4,disabled:5})}}function Dl(r,e,l){const t=r.slice();return t[16]=e[l].value,t[17]=e[l].label,t}function vs(r){let e;return{c(){e=q(r[6])},l(l){e=U(l,r[6])},m(l,t){I(l,e,t)},p(l,t){t&64&&te(e,l[6])},d(l){l&&g(e)}}}function Is(r){let e=(r[17]??r[16])+"",l,t;return{c(){l=q(e),t=F()},l(n){l=U(n,e),t=V(n)},m(n,o){I(n,l,o),I(n,t,o)},p(n,o){o&1&&e!==(e=(n[17]??n[16])+"")&&te(l,e)},d(n){n&&g(l),n&&g(t)}}}function Ll(r){let e,l;function t(){return r[13](r[16])}return e=new Oe({props:{$$slots:{default:[Is]},$$scope:{ctx:r}}}),e.$on("click",t),{c(){E(e.$$.fragment)},l(n){T(e.$$.fragment,n)},m(n,o){y(e,n,o),l=!0},p(n,o){r=n;const i={};o&1048577&&(i.$$scope={dirty:o,ctx:r}),e.$set(i)},i(n){l||(h(e.$$.fragment,n),l=!0)},o(n){$(e.$$.fragment,n),l=!1},d(n){D(e,n)}}}function Es(r){let e,l,t=r[0],n=[];for(let i=0;i$(n[i],1,1,()=>{n[i]=null});return{c(){for(let i=0;il(5,i=v)),j(r,u,v=>l(7,a=v));const c=[{value:">"},{value:">="},{value:"="},{value:"<="},{value:"<"}];let{options:_=c}=e,{disabled:m=!1}=e,{inputId:p}=e,{noBorderLeft:d=!1}=e,{noBorderRight:b=!1}=e;function k(){t||le(f,i.conditional=_[0].value,i)}const w=v=>{le(f,i.conditional=v,i),le(u,a=p,a)};return r.$$set=v=>{"options"in v&&l(0,_=v.options),"disabled"in v&&l(1,m=v.disabled),"inputId"in v&&l(2,p=v.inputId),"noBorderLeft"in v&&l(3,d=v.noBorderLeft),"noBorderRight"in v&&l(4,b=v.noBorderRight)},r.$$.update=()=>{r.$$.dirty&33&&l(11,t=_.find(v=>v.value===i.conditional)),r.$$.dirty&1&&k(),r.$$.dirty&2049&&l(12,n=t??_[0]),r.$$.dirty&5120&&l(6,o=l(10,s=n==null?void 0:n.label)!==null&&s!==void 0?s:n==null?void 0:n.value)},[_,m,p,d,b,i,o,a,f,u,s,t,n,w]}class Ct extends re{constructor(e){super(),oe(this,e,Ds,ys,se,{options:0,disabled:1,inputId:2,noBorderLeft:3,noBorderRight:4})}}function Bl(r,e,l){const t=r.slice();return t[40]=e[l],t}function Ls(r){let e=P("workflows.select-time")+"",l;return{c(){l=q(e)},l(t){l=U(t,e)},m(t,n){I(t,l,n)},p:K,d(t){t&&g(l)}}}function Bs(r){let e,l,t,n,o,i;return e=new Oe({props:{$$slots:{default:[As]},$$scope:{ctx:r}}}),e.$on("click",r[33]),t=new St({}),o=new Oe({props:{$$slots:{default:[Ps]},$$scope:{ctx:r}}}),o.$on("click",r[37]),{c(){E(e.$$.fragment),l=F(),E(t.$$.fragment),n=F(),E(o.$$.fragment)},l(a){T(e.$$.fragment,a),l=V(a),T(t.$$.fragment,a),n=V(a),T(o.$$.fragment,a)},m(a,s){y(e,a,s),I(a,l,s),y(t,a,s),I(a,n,s),y(o,a,s),i=!0},p(a,s){const f={};s[0]&2053|s[1]&4096&&(f.$$scope={dirty:s,ctx:a}),e.$set(f);const u={};s[0]&236|s[1]&4096&&(u.$$scope={dirty:s,ctx:a}),o.$set(u)},i(a){i||(h(e.$$.fragment,a),h(t.$$.fragment,a),h(o.$$.fragment,a),i=!0)},o(a){$(e.$$.fragment,a),$(t.$$.fragment,a),$(o.$$.fragment,a),i=!1},d(a){D(e,a),a&&g(l),D(t,a),a&&g(n),D(o,a)}}}function Ss(r){let e,l,t,n,o,i;return e=new Oe({props:{$$slots:{default:[Os]},$$scope:{ctx:r}}}),t=new St({}),o=new Oe({props:{$$slots:{default:[Fs]},$$scope:{ctx:r}}}),{c(){E(e.$$.fragment),l=F(),E(t.$$.fragment),n=F(),E(o.$$.fragment)},l(a){T(e.$$.fragment,a),l=V(a),T(t.$$.fragment,a),n=V(a),T(o.$$.fragment,a)},m(a,s){y(e,a,s),I(a,l,s),y(t,a,s),I(a,n,s),y(o,a,s),i=!0},p(a,s){const f={};s[0]&232|s[1]&4096&&(f.$$scope={dirty:s,ctx:a}),e.$set(f);const u={};s[0]&1808|s[1]&4096&&(u.$$scope={dirty:s,ctx:a}),o.$set(u)},i(a){i||(h(e.$$.fragment,a),h(t.$$.fragment,a),h(o.$$.fragment,a),i=!0)},o(a){$(e.$$.fragment,a),$(t.$$.fragment,a),$(o.$$.fragment,a),i=!1},d(a){D(e,a),a&&g(l),D(t,a),a&&g(n),D(o,a)}}}function Cs(r){let e=r[40]+"",l,t,n=P("common.ago")+"",o;return{c(){l=q(e),t=F(),o=q(n)},l(i){l=U(i,e),t=V(i),o=U(i,n)},m(i,a){I(i,l,a),I(i,t,a),I(i,o,a)},p:K,d(i){i&&g(l),i&&g(t),i&&g(o)}}}function Sl(r){let e,l;return e=new oo({props:{value:r[40],$$slots:{default:[Cs]},$$scope:{ctx:r}}}),{c(){E(e.$$.fragment)},l(t){T(e.$$.fragment,t)},m(t,n){y(e,t,n),l=!0},p(t,n){const o={};n[1]&4096&&(o.$$scope={dirty:n,ctx:t}),e.$set(o)},i(t){l||(h(e.$$.fragment,t),l=!0)},o(t){$(e.$$.fragment,t),l=!1},d(t){D(e,t)}}}function Ns(r){let e,l,t=r[15],n=[];for(let i=0;i$(n[i],1,1,()=>{n[i]=null});return{c(){for(let i=0;ife(o,"value",c));function m(d){r[32](d)}let p={unroundLeft:!0,id:"relative-datetime-unit-input",label:P("common.time-unit"),labelHidden:!0,disabled:r[2]!=="relative",$$slots:{default:[Ns]},$$scope:{ctx:r}};return r[11]!==void 0&&(p.value=r[11]),s=new ro({props:p}),ie.push(()=>fe(s,"value",m)),{c(){e=N("div"),E(l.$$.fragment),t=F(),n=N("div"),E(o.$$.fragment),a=F(),E(s.$$.fragment),this.h()},l(d){e=A(d,"DIV",{class:!0});var b=W(e);T(l.$$.fragment,b),t=V(b),n=A(b,"DIV",{class:!0});var k=W(n);T(o.$$.fragment,k),a=V(k),T(s.$$.fragment,k),k.forEach(g),b.forEach(g),this.h()},h(){S(n,"class","ml-6 flex gap-0 pt-2"),S(e,"class","flex flex-col")},m(d,b){I(d,e,b),y(l,e,null),C(e,t),C(e,n),y(o,n,null),C(n,a),y(s,n,null),u=!0},p(d,b){const k={};b[0]&1&&(k.error=d[20](d[0])),b[0]&4&&(k.disabled=d[2]!=="relative"),!i&&b[0]&1&&(i=!0,k.value=d[0],ue(()=>i=!1)),o.$set(k);const w={};b[0]&4&&(w.disabled=d[2]!=="relative"),b[1]&4096&&(w.$$scope={dirty:b,ctx:d}),!f&&b[0]&2048&&(f=!0,w.value=d[11],ue(()=>f=!1)),s.$set(w)},i(d){u||(h(l.$$.fragment,d),h(o.$$.fragment,d),h(s.$$.fragment,d),u=!0)},o(d){$(l.$$.fragment,d),$(o.$$.fragment,d),$(s.$$.fragment,d),u=!1},d(d){d&&g(e),D(l),D(o),D(s)}}}function Ps(r){let e,l,t,n,o,i,a,s,f,u,c;l=new Gn({props:{label:P("common.absolute"),id:"absolute-time",value:"absolute",name:"time-filter-type",group:r[16]}}),o=new Qt({props:{label:"",labelHidden:!0,selected:r[3],todayLabel:P("common.today"),closeLabel:P("common.close"),clearLabel:P("common.clear-input-button-label"),disabled:r[2]!=="absolute"}}),o.$on("datechange",r[17]);function _(b){r[34](b)}function m(b){r[35](b)}function p(b){r[36](b)}let d={twelveHourClock:!1,disabled:r[2]!=="absolute"};return r[5]!==void 0&&(d.hour=r[5]),r[6]!==void 0&&(d.minute=r[6]),r[7]!==void 0&&(d.second=r[7]),a=new Yt({props:d}),ie.push(()=>fe(a,"hour",_)),ie.push(()=>fe(a,"minute",m)),ie.push(()=>fe(a,"second",p)),{c(){e=N("div"),E(l.$$.fragment),t=F(),n=N("div"),E(o.$$.fragment),i=F(),E(a.$$.fragment),this.h()},l(b){e=A(b,"DIV",{class:!0});var k=W(e);T(l.$$.fragment,k),t=V(k),n=A(k,"DIV",{class:!0});var w=W(n);T(o.$$.fragment,w),i=V(w),T(a.$$.fragment,w),w.forEach(g),k.forEach(g),this.h()},h(){S(n,"class","ml-6 flex flex-col gap-2"),S(e,"class","flex flex-col gap-2")},m(b,k){I(b,e,k),y(l,e,null),C(e,t),C(e,n),y(o,n,null),C(n,i),y(a,n,null),c=!0},p(b,k){const w={};k[0]&8&&(w.selected=b[3]),k[0]&4&&(w.disabled=b[2]!=="absolute"),o.$set(w);const v={};k[0]&4&&(v.disabled=b[2]!=="absolute"),!s&&k[0]&32&&(s=!0,v.hour=b[5],ue(()=>s=!1)),!f&&k[0]&64&&(f=!0,v.minute=b[6],ue(()=>f=!1)),!u&&k[0]&128&&(u=!0,v.second=b[7],ue(()=>u=!1)),a.$set(v)},i(b){c||(h(l.$$.fragment,b),h(o.$$.fragment,b),h(a.$$.fragment,b),c=!0)},o(b){$(l.$$.fragment,b),$(o.$$.fragment,b),$(a.$$.fragment,b),c=!1},d(b){b&&g(e),D(l),D(o),D(a)}}}function Os(r){let e,l,t,n,o,i,a,s;l=new Qt({props:{label:P("common.start"),selected:r[3],todayLabel:P("common.today"),closeLabel:P("common.close"),clearLabel:P("common.clear-input-button-label")}}),l.$on("datechange",r[17]);function f(m){r[25](m)}function u(m){r[26](m)}function c(m){r[27](m)}let _={twelveHourClock:!1};return r[5]!==void 0&&(_.hour=r[5]),r[6]!==void 0&&(_.minute=r[6]),r[7]!==void 0&&(_.second=r[7]),n=new Yt({props:_}),ie.push(()=>fe(n,"hour",f)),ie.push(()=>fe(n,"minute",u)),ie.push(()=>fe(n,"second",c)),{c(){e=N("div"),E(l.$$.fragment),t=F(),E(n.$$.fragment),this.h()},l(m){e=A(m,"DIV",{class:!0});var p=W(e);T(l.$$.fragment,p),t=V(p),T(n.$$.fragment,p),p.forEach(g),this.h()},h(){S(e,"class","flex flex-col gap-2")},m(m,p){I(m,e,p),y(l,e,null),C(e,t),y(n,e,null),s=!0},p(m,p){const d={};p[0]&8&&(d.selected=m[3]),l.$set(d);const b={};!o&&p[0]&32&&(o=!0,b.hour=m[5],ue(()=>o=!1)),!i&&p[0]&64&&(i=!0,b.minute=m[6],ue(()=>i=!1)),!a&&p[0]&128&&(a=!0,b.second=m[7],ue(()=>a=!1)),n.$set(b)},i(m){s||(h(l.$$.fragment,m),h(n.$$.fragment,m),s=!0)},o(m){$(l.$$.fragment,m),$(n.$$.fragment,m),s=!1},d(m){m&&g(e),D(l),D(n)}}}function Fs(r){let e,l,t,n,o,i,a,s;l=new Qt({props:{label:P("common.end"),selected:r[4],todayLabel:P("common.today"),closeLabel:P("common.close"),clearLabel:P("common.clear-input-button-label")}}),l.$on("datechange",r[18]);function f(m){r[28](m)}function u(m){r[29](m)}function c(m){r[30](m)}let _={twelveHourClock:!1};return r[8]!==void 0&&(_.hour=r[8]),r[9]!==void 0&&(_.minute=r[9]),r[10]!==void 0&&(_.second=r[10]),n=new Yt({props:_}),ie.push(()=>fe(n,"hour",f)),ie.push(()=>fe(n,"minute",u)),ie.push(()=>fe(n,"second",c)),{c(){e=N("div"),E(l.$$.fragment),t=F(),E(n.$$.fragment),this.h()},l(m){e=A(m,"DIV",{class:!0});var p=W(e);T(l.$$.fragment,p),t=V(p),T(n.$$.fragment,p),p.forEach(g),this.h()},h(){S(e,"class","flex flex-col gap-2")},m(m,p){I(m,e,p),y(l,e,null),C(e,t),y(n,e,null),s=!0},p(m,p){const d={};p[0]&16&&(d.selected=m[4]),l.$set(d);const b={};!o&&p[0]&256&&(o=!0,b.hour=m[8],ue(()=>o=!1)),!i&&p[0]&512&&(i=!0,b.minute=m[9],ue(()=>i=!1)),!a&&p[0]&1024&&(a=!0,b.second=m[10],ue(()=>a=!1)),n.$set(b)},i(m){s||(h(l.$$.fragment,m),h(n.$$.fragment,m),s=!0)},o(m){$(l.$$.fragment,m),$(n.$$.fragment,m),s=!1},d(m){m&&g(e),D(l),D(n)}}}function Vs(r){let e=P("common.apply")+"",l;return{c(){l=q(e)},l(t){l=U(t,e)},m(t,n){I(t,l,n)},p:K,d(t){t&&g(l)}}}function Ws(r){let e,l,t=P("common.based-on-time-preface")+"",n,o,i,a;return e=new Ve({props:{name:"clock","aria-hidden":"true"}}),{c(){E(e.$$.fragment),l=F(),n=q(t),o=F(),i=q(r[13])},l(s){T(e.$$.fragment,s),l=V(s),n=U(s,t),o=V(s),i=U(s,r[13])},m(s,f){y(e,s,f),I(s,l,f),I(s,n,f),I(s,o,f),I(s,i,f),a=!0},p(s,f){(!a||f[0]&8192)&&te(i,s[13])},i(s){a||(h(e.$$.fragment,s),a=!0)},o(s){$(e.$$.fragment,s),a=!1},d(s){D(e,s),s&&g(l),s&&g(n),s&&g(o),s&&g(i)}}}function Rs(r){let e,l,t,n,o,i,a,s,f,u;const c=[Ss,Bs],_=[];function m(p,d){return p[1]?0:1}return e=m(r),l=_[e]=c[e](r),n=new St({}),a=new lt({props:{size:"xs",style:"width: 100%",disabled:r[12],$$slots:{default:[Vs]},$$scope:{ctx:r}}}),a.$on("click",r[19]),f=new Oe({props:{centered:!0,disabled:!0,class:"!pt-0",$$slots:{default:[Ws]},$$scope:{ctx:r}}}),{c(){l.c(),t=F(),E(n.$$.fragment),o=F(),i=N("div"),E(a.$$.fragment),s=F(),E(f.$$.fragment),this.h()},l(p){l.l(p),t=V(p),T(n.$$.fragment,p),o=V(p),i=A(p,"DIV",{class:!0});var d=W(i);T(a.$$.fragment,d),d.forEach(g),s=V(p),T(f.$$.fragment,p),this.h()},h(){S(i,"class","flex items-center p-2")},m(p,d){_[e].m(p,d),I(p,t,d),y(n,p,d),I(p,o,d),I(p,i,d),y(a,i,null),I(p,s,d),y(f,p,d),u=!0},p(p,d){let b=e;e=m(p),e===b?_[e].p(p,d):(G(),$(_[b],1,1,()=>{_[b]=null}),J(),l=_[e],l?l.p(p,d):(l=_[e]=c[e](p),l.c()),h(l,1),l.m(t.parentNode,t));const k={};d[0]&4096&&(k.disabled=p[12]),d[1]&4096&&(k.$$scope={dirty:d,ctx:p}),a.$set(k);const w={};d[0]&8192|d[1]&4096&&(w.$$scope={dirty:d,ctx:p}),f.$set(w)},i(p){u||(h(l),h(n.$$.fragment,p),h(a.$$.fragment,p),h(f.$$.fragment,p),u=!0)},o(p){$(l),$(n.$$.fragment,p),$(a.$$.fragment,p),$(f.$$.fragment,p),u=!1},d(p){_[e].d(p),p&&g(t),D(n,p),p&&g(o),p&&g(i),D(a),p&&g(s),D(f,p)}}}function Ms(r){let e,l,t,n;return e=new dt({props:{unroundLeft:!0,id:"time-range-filter",controls:"time-range-filter-menu",$$slots:{default:[Ls]},$$scope:{ctx:r}}}),t=new pt({props:{keepOpen:!0,id:"time-range-filter-menu",class:"w-[25rem] !overflow-visible",$$slots:{default:[Rs]},$$scope:{ctx:r}}}),{c(){E(e.$$.fragment),l=F(),E(t.$$.fragment)},l(o){T(e.$$.fragment,o),l=V(o),T(t.$$.fragment,o)},m(o,i){y(e,o,i),I(o,l,i),y(t,o,i),n=!0},p(o,i){const a={};i[1]&4096&&(a.$$scope={dirty:i,ctx:o}),e.$set(a);const s={};i[0]&16383|i[1]&4096&&(s.$$scope={dirty:i,ctx:o}),t.$set(s)},i(o){n||(h(e.$$.fragment,o),h(t.$$.fragment,o),n=!0)},o(o){$(e.$$.fragment,o),$(t.$$.fragment,o),n=!1},d(o){D(e,o),o&&g(l),D(t,o)}}}function Hs(r){let e,l,t,n,o;return l=new Ct({props:{inputId:"time-range-filter",options:[{value:"<=",label:P("common.before")},{value:"BETWEEN",label:P("common.between")},{value:">=",label:P("common.after")}],noBorderLeft:!0,noBorderRight:!0}}),n=new _t({props:{$$slots:{default:[Ms]},$$scope:{ctx:r}}}),{c(){e=N("div"),E(l.$$.fragment),t=F(),E(n.$$.fragment),this.h()},l(i){e=A(i,"DIV",{class:!0});var a=W(e);T(l.$$.fragment,a),t=V(a),T(n.$$.fragment,a),a.forEach(g),this.h()},h(){S(e,"class","flex items-center")},m(i,a){I(i,e,a),y(l,e,null),C(e,t),y(n,e,null),o=!0},p(i,a){const s={};a[0]&16383|a[1]&4096&&(s.$$scope={dirty:a,ctx:i}),n.$set(s)},i(i){o||(h(l.$$.fragment,i),h(n.$$.fragment,i),o=!0)},o(i){$(l.$$.fragment,i),$(n.$$.fragment,i),o=!1},d(i){i&&g(e),D(l),D(n)}}}function qs(r,e,l){let t,n,o,i,a,s,f,u;j(r,at,ne=>l(23,s=ne)),j(r,mt,ne=>l(24,u=ne));const{filter:c,handleSubmit:_}=Fe(Be);j(r,c,ne=>l(22,a=ne));let m=bt(new Date),p=bt(new Date),d="",b="",k="",w="",v="",L="";const R=["minutes","hours","days"];let B=R[0],M="";const x=He("relative");j(r,x,ne=>l(2,f=ne));const ee=ne=>{l(3,m=bt(ne.detail))},Y=ne=>{l(4,p=bt(ne.detail))},O=(ne,Re)=>{let Se=new Date(ne);return Re.hour&&(Se=To(Se,parseInt(Re.hour))),Re.minute&&(Se=Do(Se,parseInt(Re.minute))),Re.second&&(Se=Lo(Se,parseInt(Re.second))),Se},Q=()=>{if(f==="relative"&&!o){if(!M)return;le(c,a.value=Wt(`${M} ${B}`),a),le(c,a.customDate=!1,a)}else{let ne=O(m,{hour:d,minute:b,second:k}),Re=O(p,{hour:w,minute:v,second:L});const Se=Qr(s),Xt=fl.zonedTimeToUtc(ne,Se).toISOString(),pr=fl.zonedTimeToUtc(Re,Se).toISOString(),hr=o?`BETWEEN "${Xt}" AND "${pr}"`:Xt;le(c,a.value=hr,a),t?(le(c,a.customDate=!0,a),le(c,a.conditional="",a)):le(c,a.customDate=!1,a)}_()},z=ne=>ne?isNaN(Number(ne))||isNaN(parseFloat(ne)):!1;function H(ne){d=ne,l(5,d)}function ae(ne){b=ne,l(6,b)}function _e(ne){k=ne,l(7,k)}function de(ne){w=ne,l(8,w)}function we(ne){v=ne,l(9,v)}function Z(ne){L=ne,l(10,L)}function ke(ne){M=ne,l(0,M)}function ve(ne){B=ne,l(11,B)}const We=()=>le(x,f="relative",f);function gt(ne){d=ne,l(5,d)}function mr(ne){b=ne,l(6,b)}function _r(ne){k=ne,l(7,k)}const dr=()=>le(x,f="absolute",f);return r.$$.update=()=>{r.$$.dirty[0]&4194304&&l(1,t=a.conditional==="BETWEEN"),r.$$.dirty[0]&8388608&&l(13,n=Kr(s)),r.$$.dirty[0]&16777218&&l(21,o=t||!u),r.$$.dirty[0]&2097157&&l(12,i=f==="relative"&&!o&&(!M||z(M)))},[M,t,f,m,p,d,b,k,w,v,L,B,i,n,c,R,x,ee,Y,Q,z,o,a,s,u,H,ae,_e,de,we,Z,ke,ve,We,gt,mr,_r,dr]}class Us extends re{constructor(e){super(),oe(this,e,qs,Hs,se,{},null,[-1,-1])}}function js(r){let e,l,t,n,o;e=new Ct({props:{inputId:"duration-filter-search",noBorderLeft:!0}});function i(s){r[6](s)}let a={label:r[2].attribute,labelHidden:!0,id:"duration-filter-search",type:"search",placeholder:`${P("common.enter")} ${r[2].attribute} (${P("workflows.duration-filter-placeholder")})`,icon:"search",class:"w-full",unroundLeft:!0,valid:r[1]};return r[0]!==void 0&&(a.value=r[0]),t=new ye({props:a}),ie.push(()=>fe(t,"value",i)),t.$on("keydown",r[4]),t.$on("input",r[5]),{c(){E(e.$$.fragment),l=F(),E(t.$$.fragment)},l(s){T(e.$$.fragment,s),l=V(s),T(t.$$.fragment,s)},m(s,f){y(e,s,f),I(s,l,f),y(t,s,f),o=!0},p(s,[f]){const u={};f&4&&(u.label=s[2].attribute),f&4&&(u.placeholder=`${P("common.enter")} ${s[2].attribute} (${P("workflows.duration-filter-placeholder")})`),f&2&&(u.valid=s[1]),!n&&f&1&&(n=!0,u.value=s[0],ue(()=>n=!1)),t.$set(u)},i(s){o||(h(e.$$.fragment,s),h(t.$$.fragment,s),o=!0)},o(s){$(e.$$.fragment,s),$(t.$$.fragment,s),o=!1},d(s){D(e,s),s&&g(l),D(t,s)}}}function zs(r,e,l){let t;const{filter:n,handleSubmit:o}=Fe(Be);j(r,n,c=>l(2,t=c));let i=t.value,a=!0;const s=c=>{const _=i.trim();a&&c.key==="Enter"&&_!==""&&(le(n,t.value=_,t),c.preventDefault(),o())},f=c=>{zr(c.target.value.trim())?l(1,a=!0):l(1,a=!1)};function u(c){i=c,l(0,i)}return[i,a,t,n,s,f,u]}class Ks extends re{constructor(e){super(),oe(this,e,zs,js,se,{})}}function Qs(r){let e;const l=r[5].default,t=he(l,r,r[4],null);return{c(){t&&t.c()},l(n){t&&t.l(n)},m(n,o){t&&t.m(n,o),e=!0},p(n,o){t&&t.p&&(!e||o&16)&&ge(t,l,n,n[4],e?$e(l,n[4],o,null):be(n[4]),null)},i(n){e||(h(t,n),e=!0)},o(n){$(t,n),e=!1},d(n){t&&t.d(n)}}}function Ys(r){let e,l,t,n;const o=r[5].default,i=he(o,r,r[4],null);return{c(){e=N("button"),i&&i.c(),this.h()},l(a){e=A(a,"BUTTON",{class:!0});var s=W(e);i&&i.l(s),s.forEach(g),this.h()},h(){S(e,"class","flex items-center gap-1")},m(a,s){I(a,e,s),i&&i.m(e,null),l=!0,t||(n=ce(e,"click",r[6]),t=!0)},p(a,s){i&&i.p&&(!l||s&16)&&ge(i,o,a,a[4],l?$e(o,a[4],s,null):be(a[4]),null)},i(a){l||(h(i,a),l=!0)},o(a){$(i,a),l=!1},d(a){a&&g(e),i&&i.d(a),t=!1,n()}}}function Gs(r){let e,l,t,n,o,i,a,s,f,u;const c=[Ys,Qs],_=[];function m(p,d){return p[1]?0:1}return l=m(r),t=_[l]=c[l](r),i=new Ve({props:{name:"close"}}),{c(){e=N("span"),t.c(),n=F(),o=N("button"),E(i.$$.fragment),this.h()},l(p){e=A(p,"SPAN",{class:!0});var d=W(e);t.l(d),n=V(d),o=A(d,"BUTTON",{"aria-label":!0});var b=W(o);T(i.$$.fragment,b),b.forEach(g),d.forEach(g),this.h()},h(){S(o,"aria-label",r[2]),S(e,"class",a="chip "+r[0]+" svelte-jjsz31")},m(p,d){I(p,e,d),_[l].m(e,null),C(e,n),C(e,o),y(i,o,null),s=!0,f||(u=ce(o,"click",r[3]),f=!0)},p(p,[d]){let b=l;l=m(p),l===b?_[l].p(p,d):(G(),$(_[b],1,1,()=>{_[b]=null}),J(),t=_[l],t?t.p(p,d):(t=_[l]=c[l](p),t.c()),h(t,1),t.m(e,n)),(!s||d&4)&&S(o,"aria-label",p[2]),(!s||d&1&&a!==(a="chip "+p[0]+" svelte-jjsz31"))&&S(e,"class",a)},i(p){s||(h(t),h(i.$$.fragment,p),s=!0)},o(p){$(t),$(i.$$.fragment,p),s=!1},d(p){p&&g(e),_[l].d(),D(i),f=!1,u()}}}function Js(r,e,l){let{$$slots:t={},$$scope:n}=e,{intent:o="default"}=e,{button:i=!1}=e,{removeButtonLabel:a}=e;const s=xe(),f=c=>{c.preventDefault(),s("remove")};function u(c){Me.call(this,r,c)}return r.$$set=c=>{"intent"in c&&l(0,o=c.intent),"button"in c&&l(1,i=c.button),"removeButtonLabel"in c&&l(2,a=c.removeButtonLabel),"$$scope"in c&&l(4,n=c.$$scope)},[o,i,a,f,n,t,u]}class Xs extends re{constructor(e){super(),oe(this,e,Js,Gs,se,{intent:0,button:1,removeButtonLabel:2})}}function Cl(r,e,l){const t=r.slice();t[17]=e[l],t[24]=l;const n=t[17];return t[18]=n.attribute,t[19]=n.type,t[20]=n.value,t[21]=n.conditional,t[22]=n.customDate,t}function Nl(r){let e,l,t,n,o;function i(){return r[14](r[24])}function a(){return r[15](r[24],r[17])}return l=new Xs({props:{removeButtonLabel:P("workflows.remove-filter-label",{attribute:r[18]}),intent:"default",button:!0,$$slots:{default:[ra]},$$scope:{ctx:r}}}),l.$on("remove",i),l.$on("click",a),{c(){e=N("div"),E(l.$$.fragment),this.h()},l(s){e=A(s,"DIV",{"data-testid":!0});var f=W(e);T(l.$$.fragment,f),f.forEach(g),this.h()},h(){S(e,"data-testid",t=r[17].attribute+"-"+r[24])},m(s,f){I(s,e,f),y(l,e,null),o=!0},p(s,f){r=s;const u={};f&2&&(u.removeButtonLabel=P("workflows.remove-filter-label",{attribute:r[18]})),f&33554482&&(u.$$scope={dirty:f,ctx:r}),l.$set(u),(!o||f&2&&t!==(t=r[17].attribute+"-"+r[24]))&&S(e,"data-testid",t)},i(s){o||(h(l.$$.fragment,s),n||Ue(()=>{n=je(e,qn,{}),n.start()}),o=!0)},o(s){$(l.$$.fragment,s),o=!1},d(s){s&&g(e),D(l)}}}function Zs(r){let e,l=r[18]+"",t,n,o;function i(f,u){return u&2&&(o=null),o==null&&(o=!!Kt({attribute:f[18],type:f[19]})),o?ta:ea}let a=i(r,-1),s=a(r);return{c(){e=N("span"),t=q(l),n=F(),s.c(),this.h()},l(f){e=A(f,"SPAN",{class:!0});var u=W(e);t=U(u,l),n=V(u),s.l(u),u.forEach(g),this.h()},h(){S(e,"class","max-w-xs truncate md:max-w-lg xl:max-w-2xl")},m(f,u){I(f,e,u),C(e,t),C(e,n),s.m(e,null)},p(f,u){u&2&&l!==(l=f[18]+"")&&te(t,l),a===(a=i(f,u))&&s?s.p(f,u):(s.d(1),s=a(f),s&&(s.c(),s.m(e,null)))},i:K,o:K,d(f){f&&g(e),s.d()}}}function xs(r){let e,l=r[18]+"",t,n,o=r[21]+"",i,a,s,f,u;return f=new qt({props:{status:r[20]}}),{c(){e=N("span"),t=q(l),n=F(),i=q(o),a=F(),s=N("span"),E(f.$$.fragment),this.h()},l(c){e=A(c,"SPAN",{class:!0});var _=W(e);t=U(_,l),n=V(_),i=U(_,o),a=V(_),s=A(_,"SPAN",{class:!0});var m=W(s);T(f.$$.fragment,m),m.forEach(g),_.forEach(g),this.h()},h(){S(s,"class","-py-1 ml-1"),S(e,"class","flex")},m(c,_){I(c,e,_),C(e,t),C(e,n),C(e,i),C(e,a),C(e,s),y(f,s,null),u=!0},p(c,_){(!u||_&2)&&l!==(l=c[18]+"")&&te(t,l),(!u||_&2)&&o!==(o=c[21]+"")&&te(i,o);const m={};_&2&&(m.status=c[20]),f.$set(m)},i(c){u||(h(f.$$.fragment,c),u=!0)},o(c){$(f.$$.fragment,c),u=!1},d(c){c&&g(e),D(f)}}}function ea(r){let e=r[21]+"",l,t,n=(it({attribute:r[18],type:r[19]})?`"${r[20]}"`:r[20])+"",o;return{c(){l=q(e),t=F(),o=q(n)},l(i){l=U(i,e),t=V(i),o=U(i,n)},m(i,a){I(i,l,a),I(i,t,a),I(i,o,a)},p(i,a){a&2&&e!==(e=i[21]+"")&&te(l,e),a&2&&n!==(n=(it({attribute:i[18],type:i[19]})?`"${i[20]}"`:i[20])+"")&&te(o,n)},d(i){i&&g(l),i&&g(t),i&&g(o)}}}function ta(r){let e;function l(o,i){return o[22]?na:la}let t=l(r),n=t(r);return{c(){n.c(),e=X()},l(o){n.l(o),e=X()},m(o,i){n.m(o,i),I(o,e,i)},p(o,i){t===(t=l(o))&&n?n.p(o,i):(n.d(1),n=t(o),n&&(n.c(),n.m(e.parentNode,e)))},d(o){n.d(o),o&&g(e)}}}function la(r){let e=r[10](r[21])+"",l,t,n=Ie(r[20],r[4],{relative:r[5],abbrFormat:!0})+"",o;return{c(){l=q(e),t=F(),o=q(n)},l(i){l=U(i,e),t=V(i),o=U(i,n)},m(i,a){I(i,l,a),I(i,t,a),I(i,o,a)},p(i,a){a&2&&e!==(e=i[10](i[21])+"")&&te(l,e),a&50&&n!==(n=Ie(i[20],i[4],{relative:i[5],abbrFormat:!0})+"")&&te(o,n)},d(i){i&&g(l),i&&g(t),i&&g(o)}}}function na(r){let e=r[11](r[20],r[4],r[5])+"",l;return{c(){l=q(e)},l(t){l=U(t,e)},m(t,n){I(t,l,n)},p(t,n){n&50&&e!==(e=t[11](t[20],t[4],t[5])+"")&&te(l,e)},d(t){t&&g(l)}}}function ra(r){let e,l,t,n,o;const i=[xs,Zs],a=[];function s(f,u){return u&2&&(e=null),e==null&&(e=!!(f[18]==="ExecutionStatus"&&Dr(f[20]))),e?0:1}return l=s(r,-1),t=a[l]=i[l](r),{c(){t.c(),n=X()},l(f){t.l(f),n=X()},m(f,u){a[l].m(f,u),I(f,n,u),o=!0},p(f,u){let c=l;l=s(f,u),l===c?a[l].p(f,u):(G(),$(a[c],1,1,()=>{a[c]=null}),J(),t=a[l],t?t.p(f,u):(t=a[l]=i[l](f),t.c()),h(t,1),t.m(n.parentNode,n))},i(f){o||(h(t),o=!0)},o(f){$(t),o=!1},d(f){a[l].d(f),f&&g(n)}}}function Al(r,e){let l,t,n,o=e[18]&&Nl(e);return{key:r,first:null,c(){l=X(),o&&o.c(),t=X(),this.h()},l(i){l=X(),o&&o.l(i),t=X(),this.h()},h(){this.first=l},m(i,a){I(i,l,a),o&&o.m(i,a),I(i,t,a),n=!0},p(i,a){e=i,e[18]?o?(o.p(e,a),a&2&&h(o,1)):(o=Nl(e),o.c(),h(o,1),o.m(t.parentNode,t)):o&&(G(),$(o,1,1,()=>{o=null}),J())},i(i){n||(h(o),n=!0)},o(i){$(o),n=!1},d(i){i&&g(l),o&&o.d(i),i&&g(t)}}}function Pl(r){let e,l;return e=new lt({props:{variant:"secondary",size:"xs",$$slots:{default:[oa]},$$scope:{ctx:r}}}),e.$on("click",r[9]),{c(){E(e.$$.fragment)},l(t){T(e.$$.fragment,t)},m(t,n){y(e,t,n),l=!0},p(t,n){const o={};n&33554432&&(o.$$scope={dirty:n,ctx:t}),e.$set(o)},i(t){l||(h(e.$$.fragment,t),l=!0)},o(t){$(e.$$.fragment,t),l=!1},d(t){D(e,t)}}}function oa(r){let e=P("common.view-more")+"",l;return{c(){l=q(e)},l(t){l=U(t,e)},m(t,n){I(t,l,n)},p:K,d(t){t&&g(l)}}}function sa(r){let e,l=[],t=new Map,n,o,i=r[1];const a=f=>`${f[17].attribute}-${f[24]}`;for(let f=0;f{s=null}),J()),(!o||u&2)&&me(e,"pt-2",f[1].length)},i(f){if(!o){for(let u=0;ul(13,o=L)),j(r,Te,L=>l(16,s=L)),j(r,at,L=>l(4,f=L)),j(r,Qn,L=>l(5,u=L));const{filter:c,activeQueryIndex:_}=Fe(Be);j(r,c,L=>l(3,a=L)),j(r,_,L=>l(2,i=L));const m=L=>{if(o.splice(L,1),pe.set(o),zt(s.url,o),L===o.length){const R=o[o.length-1];R&&(R.operator="")}L===i?(le(_,i=null,i),le(c,a=qe(),a)):L{n&&l(12,p+=5)},b=L=>["<","<="].includes(L)?P("common.before").toLowerCase():[">",">="].includes(L)?P("common.after").toLowerCase():L,k=(L,R,B)=>{const[M,x,ee,Y]=L.split(" ");return`${M.toLowerCase()} ${Ie(x,R,{relative:B,abbrFormat:!0})} ${ee.toLowerCase()} ${Ie(Y,R,{relative:B,abbrFormat:!0})}`},w=L=>m(L),v=(L,R)=>{le(_,i=L,i),le(c,a={...R},a)};return r.$$.update=()=>{r.$$.dirty&12288&&l(1,t=o.slice(0,p)),r.$$.dirty&12288&&l(0,n=p{v=null}),J()),(!b||B&2048)&&S(s,"max",R[11]),(!b||B&4096)&&S(s,"min",R[12]),(!b||B&256)&&(s.disabled=R[8]),(!b||B&64)&&S(s,"placeholder",R[6]),(!b||B&4)&&S(s,"id",R[2]),(!b||B&128)&&S(s,"name",R[7]),B&1&&Mn(s.value)!==R[0]&&xt(s,R[0]),(!b||B&256)&&me(s,"disabled",R[8]),(!b||B&512&&f!==(f="input-container "+R[9]+" svelte-1851tme"))&&S(i,"class",f),(!b||B&768)&&me(i,"disabled",R[8]),(!b||B&33280)&&me(i,"search",R[15]),(!b||B&8704)&&me(i,"unroundRight",R[13]),(!b||B&16896)&&me(i,"unroundLeft",R[14]),(!b||B&66048)&&me(i,"invalid",!R[16]),(!b||B&32)&&te(_,R[5]),(!b||B&131072&&m!==(m=Zt(R[17].class)+" svelte-1851tme"))&&S(e,"class",m),!R[16]&&R[10]?L?L.p(R,B):(L=Fl(R),L.c(),L.m(d.parentNode,d)):L&&(L.d(1),L=null)},i(R){b||(h(v),b=!0)},o(R){$(v),b=!1},d(R){R&&g(e),v&&v.d(),R&&g(p),L&&L.d(R),R&&g(d),k=!1,ct(w)}}}function ua(r,e,l){let{icon:t=null}=e,{id:n}=e,{value:o}=e,{label:i}=e,{labelHidden:a=!1}=e,{units:s=""}=e,{placeholder:f=""}=e,{name:u=n}=e,{disabled:c=!1}=e,{theme:_="light"}=e,{hintText:m=""}=e,{max:p=void 0}=e,{min:d=void 0}=e,{unroundRight:b=!1}=e,{unroundLeft:k=!1}=e,{search:w=!1}=e,v=!0;const L=O=>{d!==void 0&&Op?l(16,v=!1):l(16,v=!0)};function R(O){Me.call(this,r,O)}function B(O){Me.call(this,r,O)}function M(O){Me.call(this,r,O)}function x(O){Me.call(this,r,O)}function ee(O){Me.call(this,r,O)}function Y(){o=Mn(this.value),l(0,o)}return r.$$set=O=>{l(17,e=vt(vt({},e),It(O))),"icon"in O&&l(1,t=O.icon),"id"in O&&l(2,n=O.id),"value"in O&&l(0,o=O.value),"label"in O&&l(3,i=O.label),"labelHidden"in O&&l(4,a=O.labelHidden),"units"in O&&l(5,s=O.units),"placeholder"in O&&l(6,f=O.placeholder),"name"in O&&l(7,u=O.name),"disabled"in O&&l(8,c=O.disabled),"theme"in O&&l(9,_=O.theme),"hintText"in O&&l(10,m=O.hintText),"max"in O&&l(11,p=O.max),"min"in O&&l(12,d=O.min),"unroundRight"in O&&l(13,b=O.unroundRight),"unroundLeft"in O&&l(14,k=O.unroundLeft),"search"in O&&l(15,w=O.search)},r.$$.update=()=>{r.$$.dirty&1&&L(o)},e=It(e),[o,t,n,i,a,s,f,u,c,_,m,p,d,b,k,w,v,e,R,B,M,x,ee,Y]}class ca extends re{constructor(e){super(),oe(this,e,ua,fa,se,{icon:1,id:2,value:0,label:3,labelHidden:4,units:5,placeholder:6,name:7,disabled:8,theme:9,hintText:10,max:11,min:12,unroundRight:13,unroundLeft:14,search:15})}}function ma(r){let e,l,t,n,o,i;l=new Ct({props:{inputId:"number-filter-search",noBorderLeft:!0,noBorderRight:!0}});function a(f){r[4](f)}let s={label:P("common.number-input-placeholder"),labelHidden:!0,id:"number-filter-search",icon:"search",placeholder:P("common.number-input-placeholder"),min:ar,unroundLeft:!0,search:!0,class:"-mr-2"};return r[0]!==void 0&&(s.value=r[0]),n=new ca({props:s}),ie.push(()=>fe(n,"value",a)),n.$on("keydown",r[3]),{c(){e=N("div"),E(l.$$.fragment),t=F(),E(n.$$.fragment),this.h()},l(f){e=A(f,"DIV",{class:!0});var u=W(e);T(l.$$.fragment,u),t=V(u),T(n.$$.fragment,u),u.forEach(g),this.h()},h(){S(e,"class","flex items-center")},m(f,u){I(f,e,u),y(l,e,null),C(e,t),y(n,e,null),i=!0},p(f,[u]){const c={};!o&&u&1&&(o=!0,c.value=f[0],ue(()=>o=!1)),n.$set(c)},i(f){i||(h(l.$$.fragment,f),h(n.$$.fragment,f),i=!0)},o(f){$(l.$$.fragment,f),$(n.$$.fragment,f),i=!1},d(f){f&&g(e),D(l),D(n)}}}const ar=0;function _a(r,e,l){let t,n;const{filter:o,focusedElementId:i,handleSubmit:a}=Fe(Be);j(r,o,c=>l(5,t=c)),j(r,i,c=>l(6,n=c));let s=t.value?Number(t.value):null;const f=c=>{le(i,n="",n),c.key==="Enter"&&s!==null&&s>=ar&&(le(o,t.value=String(s),t),c.preventDefault(),a())};function u(c){s=c,l(0,s)}return[s,o,i,f,u]}class da extends re{constructor(e){super(),oe(this,e,_a,ma,se,{})}}const{Boolean:pa}=$r;function Vl(r,e,l){const t=r.slice();t[15]=e[l].value,t[16]=e[l].label,t[17]=e[l].type;const n=Ia(t[15],t[4]);return t[18]=n,t}function ha(r){let e=(r[2].attribute||P("workflows.filter"))+"",l;return{c(){l=q(e)},l(t){l=U(t,e)},m(t,n){I(t,l,n)},p(t,n){n&4&&e!==(e=(t[2].attribute||P("workflows.filter"))+"")&&te(l,e)},d(t){t&&g(l)}}}function Wl(r){let e,l;return e=new Ve({props:{name:"filter"}}),{c(){E(e.$$.fragment)},l(t){T(e.$$.fragment,t)},m(t,n){y(e,t,n),l=!0},i(t){l||(h(e.$$.fragment,t),l=!0)},o(t){$(e.$$.fragment,t),l=!1},d(t){D(e,t)}}}function ga(r){let e,l,t=!r[2].attribute&&Wl();return{c(){t&&t.c(),e=X()},l(n){t&&t.l(n),e=X()},m(n,o){t&&t.m(n,o),I(n,e,o),l=!0},p(n,o){n[2].attribute?t&&(G(),$(t,1,1,()=>{t=null}),J()):t?o&4&&h(t,1):(t=Wl(),t.c(),h(t,1),t.m(e.parentNode,e))},i(n){l||(h(t),l=!0)},o(n){$(t),l=!1},d(n){t&&t.d(n),n&&g(e)}}}function Rl(r){let e,l;return e=new Oe({props:{class:"whitespace-nowrap",disabled:!0,$$slots:{default:[ba]},$$scope:{ctx:r}}}),{c(){E(e.$$.fragment)},l(t){T(e.$$.fragment,t)},m(t,n){y(e,t,n),l=!0},p(t,n){const o={};n&2097152&&(o.$$scope={dirty:n,ctx:t}),e.$set(o)},i(t){l||(h(e.$$.fragment,t),l=!0)},o(t){$(e.$$.fragment,t),l=!1},d(t){D(e,t)}}}function ba(r){let e=P("common.no-results")+"",l;return{c(){l=q(e)},l(t){l=U(t,e)},m(t,n){I(t,l,n)},p:K,d(t){t&&g(l)}}}function $a(r){let e=r[16]+"",l,t;return{c(){l=q(e),t=F()},l(n){l=U(n,e),t=V(n)},m(n,o){I(n,l,o),I(n,t,o)},p(n,o){o&2&&e!==(e=n[16]+"")&&te(l,e)},d(n){n&&g(l),n&&g(t)}}}function Ml(r){let e,l;function t(){return r[13](r[15],r[17])}return e=new Oe({props:{disabled:r[18],$$slots:{default:[$a]},$$scope:{ctx:r}}}),e.$on("click",t),{c(){E(e.$$.fragment)},l(n){T(e.$$.fragment,n)},m(n,o){y(e,n,o),l=!0},p(n,o){r=n;const i={};o&18&&(i.disabled=r[18]),o&2097154&&(i.$$scope={dirty:o,ctx:r}),e.$set(i)},i(n){l||(h(e.$$.fragment,n),l=!0)},o(n){$(e.$$.fragment,n),l=!1},d(n){D(e,n)}}}function ka(r){let e,l,t,n,o;function i(_){r[12](_)}let a={label:P("common.search"),labelHidden:!0,id:"filter-search",noBorder:!0,icon:"search",placeholder:P("common.search"),class:"mb-1"};r[0]!==void 0&&(a.value=r[0]),e=new ye({props:a}),ie.push(()=>fe(e,"value",i));let s=r[1],f=[];for(let _=0;_$(f[_],1,1,()=>{f[_]=null});let c=null;return s.length||(c=Rl(r)),{c(){E(e.$$.fragment),t=F();for(let _=0;_l=!1)),e.$set(p),m&274){s=_[1];let d;for(d=0;d{c=null}),J()):(c=Rl(_),c.c(),h(c,1),c.m(n.parentNode,n))}},i(_){if(!o){h(e.$$.fragment,_);for(let m=0;m(l.conditional==="="||l.conditional==="!=")&&l.attribute===r)}function Ea(r,e,l){let t,n,o,i,a,s,f;j(r,xr,w=>l(10,o=w)),j(r,pe,w=>l(4,f=w));const{filter:u,activeQueryIndex:c,focusedElementId:_}=Fe(Be);j(r,u,w=>l(2,a=w)),j(r,c,w=>l(3,s=w)),j(r,_,w=>l(14,i=w));function m(w,v){l(0,p=""),u.set({...qe(),attribute:w,conditional:"=",type:v}),le(_,i=sr({attribute:w,type:v}),i)}let p="";const d=()=>l(0,p="");function b(w){p=w,l(0,p)}const k=(w,v)=>{m(w,v)};return r.$$.update=()=>{r.$$.dirty&1024&&l(9,t=o.filter(({value:w,type:v})=>!nr({attribute:w,type:v}))),r.$$.dirty&513&&l(1,n=p?t.filter(w=>w.value.toLowerCase().includes(p.toLowerCase())):t)},[p,n,a,s,f,u,c,_,m,t,o,d,b,k]}class Ta extends re{constructor(e){super(),oe(this,e,Ea,va,se,{})}}function Hl(r,e,l){const t=r.slice();t[17]=e[l];const n=t[0].some(function(...i){return r[12](t[17],...i)})||!t[0].length&&t[17]==="All";return t[18]=n,t}function ya(r){let e=r[1].attribute+"",l;return{c(){l=q(e)},l(t){l=U(t,e)},m(t,n){I(t,l,n)},p(t,n){n&2&&e!==(e=t[1].attribute+"")&&te(l,e)},d(t){t&&g(l)}}}function Da(r){let e,l;return e=new qt({props:{status:r[17]}}),{c(){E(e.$$.fragment)},l(t){T(e.$$.fragment,t)},m(t,n){y(e,t,n),l=!0},p:K,i(t){l||(h(e.$$.fragment,t),l=!0)},o(t){$(e.$$.fragment,t),l=!1},d(t){D(e,t)}}}function La(r){let e,l;return e=new Pe({props:{key:"workflows.all-statuses"}}),{c(){E(e.$$.fragment)},l(t){T(e.$$.fragment,t)},m(t,n){y(e,t,n),l=!0},p:K,i(t){l||(h(e.$$.fragment,t),l=!0)},o(t){$(e.$$.fragment,t),l=!1},d(t){D(e,t)}}}function Ba(r){let e,l,t,n;const o=[La,Da],i=[];function a(s,f){return s[17]==="All"?0:1}return e=a(r),l=i[e]=o[e](r),{c(){l.c(),t=X()},l(s){l.l(s),t=X()},m(s,f){i[e].m(s,f),I(s,t,f),n=!0},p(s,f){l.p(s,f)},i(s){n||(h(l),n=!0)},o(s){$(l),n=!1},d(s){i[e].d(s),s&&g(t)}}}function Sa(r){let e,l;function t(){return r[10](r[17])}return e=new Mt({props:{slot:"leading",checked:r[18],label:r[17],labelHidden:!0}}),e.$on("click",t),{c(){E(e.$$.fragment)},l(n){T(e.$$.fragment,n)},m(n,o){y(e,n,o),l=!0},p(n,o){r=n;const i={};o&1&&(i.checked=r[18]),e.$set(i)},i(n){l||(h(e.$$.fragment,n),l=!0)},o(n){$(e.$$.fragment,n),l=!1},d(n){D(e,n)}}}function ql(r,e){let l,t,n;function o(){return e[11](e[17])}return t=new Oe({props:{"data-testid":e[17],$$slots:{leading:[Sa],default:[Ba]},$$scope:{ctx:e}}}),t.$on("click",o),{key:r,first:null,c(){l=X(),E(t.$$.fragment),this.h()},l(i){l=X(),T(t.$$.fragment,i),this.h()},h(){this.first=l},m(i,a){I(i,l,a),y(t,i,a),n=!0},p(i,a){e=i;const s={};a&2097153&&(s.$$scope={dirty:a,ctx:e}),t.$set(s)},i(i){n||(h(t.$$.fragment,i),n=!0)},o(i){$(t.$$.fragment,i),n=!1},d(i){i&&g(l),D(t,i)}}}function Ca(r){let e=[],l=new Map,t,n,o,i=nl;const a=s=>s[17];for(let s=0;sl(8,o=L)),j(r,Te,L=>l(13,a=L));const{filter:f,resetFilter:u}=Fe(Be);j(r,f,L=>l(1,i=L));const c=He(!0);j(r,c,L=>l(2,s=L));function _(){le(pe,o=t,o),zt(a.url,o)}function m(L){return{...i,value:L}}function p(L){return L.length===1?[m(L[0].value)]:L.map((R,B)=>{const M=B===L.length-1?"":"OR";return{...R,operator:M}})}const d=L=>{if(L==="All")l(7,t=o.filter(R=>R.attribute!=="ExecutionStatus"));else if(n.find(R=>R.value===L)){const R=o.filter(B=>!Xe(B.attribute));l(7,t=[...R,...p(n.filter(B=>B.value!==L))])}else if(!n.length)l(7,t=[...t,m(L)]);else{const R=t.filter(B=>!Xe(B.attribute));l(7,t=[...R,...p([...n,m(L)])])}_()},b=()=>{s&&u()},k=L=>d(L),w=L=>{d(L)},v=(L,R)=>R.value===L;return r.$$.update=()=>{r.$$.dirty&256&&l(7,t=[...o]),r.$$.dirty&128&&l(0,n=t.filter(L=>Xe(L.attribute)))},[n,i,s,f,u,c,d,t,o,b,k,w,v]}class Oa extends re{constructor(e){super(),oe(this,e,Pa,Aa,se,{})}}function Fa(r){let e,l,t,n,o;e=new Ct({props:{options:[{value:"=",label:P("common.equal-to")},{value:"!=",label:P("common.not-equal-to")}],inputId:"text-filter-search",noBorderLeft:!0}});function i(s){r[4](s)}let a={label:r[1].attribute,labelHidden:!0,id:"text-filter-search",type:"search",placeholder:`${P("common.enter")} ${r[1].attribute}`,icon:"search",class:"w-full",unroundLeft:!0};return r[0]!==void 0&&(a.value=r[0]),t=new ye({props:a}),ie.push(()=>fe(t,"value",i)),t.$on("keydown",r[3]),{c(){E(e.$$.fragment),l=F(),E(t.$$.fragment)},l(s){T(e.$$.fragment,s),l=V(s),T(t.$$.fragment,s)},m(s,f){y(e,s,f),I(s,l,f),y(t,s,f),o=!0},p(s,[f]){const u={};f&2&&(u.label=s[1].attribute),f&2&&(u.placeholder=`${P("common.enter")} ${s[1].attribute}`),!n&&f&1&&(n=!0,u.value=s[0],ue(()=>n=!1)),t.$set(u)},i(s){o||(h(e.$$.fragment,s),h(t.$$.fragment,s),o=!0)},o(s){$(e.$$.fragment,s),$(t.$$.fragment,s),o=!1},d(s){D(e,s),s&&g(l),D(t,s)}}}function Va(r,e,l){let t;const{filter:n,handleSubmit:o}=Fe(Be);j(r,n,f=>l(1,t=f));let i=t.value;function a(f){f.key==="Enter"&&i!==""&&(f.preventDefault(),le(n,t.value=i,t),o())}function s(f){i=f,l(0,i)}return[i,t,n,a,s]}class Wa extends re{constructor(e){super(),oe(this,e,Va,Fa,se,{})}}function Ra(r){let e,l,t,n,o,i,a,s,f,u,c;const _=[qa,Ha],m=[];function p(k,w){return w&1&&(l=null),l==null&&(l=!!Xe(k[0])),l?0:1}t=p(r,-1),n=m[t]=_[t](r);let d=r[0]&&Ul(r),b=r[2]&&jl(r);return{c(){e=N("div"),n.c(),o=F(),d&&d.c(),i=F(),a=N("div"),b&&b.c(),this.h()},l(k){e=A(k,"DIV",{class:!0});var w=W(e);n.l(w),o=V(w),d&&d.l(w),w.forEach(g),i=V(k),a=A(k,"DIV",{class:!0});var v=W(a);b&&b.l(v),v.forEach(g),this.h()},h(){S(e,"class","flex items-center svelte-d4361j"),me(e,"filter",!r[2]),S(a,"class",s="flex flex-col sm:flex-row "+(r[2]?"w-full justify-between":"justify-end"))},m(k,w){I(k,e,w),m[t].m(e,null),C(e,o),d&&d.m(e,null),I(k,i,w),I(k,a,w),b&&b.m(a,null),f=!0,u||(c=ce(e,"keyup",r[9]),u=!0)},p(k,w){let v=t;t=p(k,w),t!==v&&(G(),$(m[v],1,1,()=>{m[v]=null}),J(),n=m[t],n||(n=m[t]=_[t](k),n.c()),h(n,1),n.m(e,o)),k[0]?d?(d.p(k,w),w&1&&h(d,1)):(d=Ul(k),d.c(),h(d,1),d.m(e,null)):d&&(G(),$(d,1,1,()=>{d=null}),J()),(!f||w&4)&&me(e,"filter",!k[2]),k[2]?b?(b.p(k,w),w&4&&h(b,1)):(b=jl(k),b.c(),h(b,1),b.m(a,null)):b&&(G(),$(b,1,1,()=>{b=null}),J()),(!f||w&4&&s!==(s="flex flex-col sm:flex-row "+(k[2]?"w-full justify-between":"justify-end")))&&S(a,"class",s)},i(k){f||(h(n),h(d),h(b),f=!0)},o(k){$(n),$(d),$(b),f=!1},d(k){k&&g(e),m[t].d(),d&&d.d(),k&&g(i),k&&g(a),b&&b.d(),u=!1,c()}}}function Ma(r){let e,l;return e=new ts({}),{c(){E(e.$$.fragment)},l(t){T(e.$$.fragment,t)},m(t,n){y(e,t,n),l=!0},p:K,i(t){l||(h(e.$$.fragment,t),l=!0)},o(t){$(e.$$.fragment,t),l=!1},d(t){D(e,t)}}}function Ha(r){let e,l;return e=new Ta({}),{c(){E(e.$$.fragment)},l(t){T(e.$$.fragment,t)},m(t,n){y(e,t,n),l=!0},i(t){l||(h(e.$$.fragment,t),l=!0)},o(t){$(e.$$.fragment,t),l=!1},d(t){D(e,t)}}}function qa(r){let e,l;return e=new Oa({}),{c(){E(e.$$.fragment)},l(t){T(e.$$.fragment,t)},m(t,n){y(e,t,n),l=!0},i(t){l||(h(e.$$.fragment,t),l=!0)},o(t){$(e.$$.fragment,t),l=!1},d(t){D(e,t)}}}function Ul(r){let e,l,t,n,o,i,a,s,f;const u=[Qa,Ka,za,ja,Ua],c=[];function _(m,p){return p&3&&(e=null),p&1&&(l=null),p&3&&(t=null),p&3&&(n=null),p&3&&(o=null),e==null&&(e=!!it({attribute:m[0],type:m[1]})),e?0:(l==null&&(l=!!ls(m[0])),l?1:(t==null&&(t=!!rr({attribute:m[0],type:m[1]})),t?2:(n==null&&(n=!!Kt({attribute:m[0],type:m[1]})),n?3:(o==null&&(o=!!or({attribute:m[0],type:m[1]})),o?4:-1))))}return~(i=_(r,-1))&&(a=c[i]=u[i](r)),{c(){a&&a.c(),s=X()},l(m){a&&a.l(m),s=X()},m(m,p){~i&&c[i].m(m,p),I(m,s,p),f=!0},p(m,p){let d=i;i=_(m,p),i!==d&&(a&&(G(),$(c[d],1,1,()=>{c[d]=null}),J()),~i?(a=c[i],a||(a=c[i]=u[i](m),a.c()),h(a,1),a.m(s.parentNode,s)):a=null)},i(m){f||(h(a),f=!0)},o(m){$(a),f=!1},d(m){~i&&c[i].d(m),m&&g(s)}}}function Ua(r){let e,l,t,n,o,i;return l=new fs({}),n=new ht({}),{c(){e=N("div"),E(l.$$.fragment),t=F(),E(n.$$.fragment),this.h()},l(a){e=A(a,"DIV",{class:!0});var s=W(e);T(l.$$.fragment,s),t=V(s),T(n.$$.fragment,s),s.forEach(g),this.h()},h(){S(e,"class","flex w-full items-center")},m(a,s){I(a,e,s),y(l,e,null),C(e,t),y(n,e,null),i=!0},i(a){i||(h(l.$$.fragment,a),h(n.$$.fragment,a),o||Ue(()=>{o=je(e,tt,{x:-100,duration:150}),o.start()}),i=!0)},o(a){$(l.$$.fragment,a),$(n.$$.fragment,a),i=!1},d(a){a&&g(e),D(l),D(n)}}}function ja(r){let e,l,t,n,o,i;return l=new Us({}),n=new ht({}),{c(){e=N("div"),E(l.$$.fragment),t=F(),E(n.$$.fragment),this.h()},l(a){e=A(a,"DIV",{class:!0});var s=W(e);T(l.$$.fragment,s),t=V(s),T(n.$$.fragment,s),s.forEach(g),this.h()},h(){S(e,"class","flex w-full items-center")},m(a,s){I(a,e,s),y(l,e,null),C(e,t),y(n,e,null),i=!0},i(a){i||(h(l.$$.fragment,a),h(n.$$.fragment,a),o||Ue(()=>{o=je(e,tt,{x:-100,duration:150}),o.start()}),i=!0)},o(a){$(l.$$.fragment,a),$(n.$$.fragment,a),i=!1},d(a){a&&g(e),D(l),D(n)}}}function za(r){let e,l,t,n,o,i;return l=new da({}),n=new ht({}),{c(){e=N("div"),E(l.$$.fragment),t=F(),E(n.$$.fragment),this.h()},l(a){e=A(a,"DIV",{class:!0});var s=W(e);T(l.$$.fragment,s),t=V(s),T(n.$$.fragment,s),s.forEach(g),this.h()},h(){S(e,"class","flex w-full items-center")},m(a,s){I(a,e,s),y(l,e,null),C(e,t),y(n,e,null),i=!0},i(a){i||(h(l.$$.fragment,a),h(n.$$.fragment,a),o||Ue(()=>{o=je(e,tt,{x:-100,duration:150}),o.start()}),i=!0)},o(a){$(l.$$.fragment,a),$(n.$$.fragment,a),i=!1},d(a){a&&g(e),D(l),D(n)}}}function Ka(r){let e,l,t,n,o,i;return l=new Ks({}),n=new ht({}),{c(){e=N("div"),E(l.$$.fragment),t=F(),E(n.$$.fragment),this.h()},l(a){e=A(a,"DIV",{class:!0});var s=W(e);T(l.$$.fragment,s),t=V(s),T(n.$$.fragment,s),s.forEach(g),this.h()},h(){S(e,"class","flex w-full items-center")},m(a,s){I(a,e,s),y(l,e,null),C(e,t),y(n,e,null),i=!0},i(a){i||(h(l.$$.fragment,a),h(n.$$.fragment,a),o||Ue(()=>{o=je(e,tt,{x:-100,duration:150}),o.start()}),i=!0)},o(a){$(l.$$.fragment,a),$(n.$$.fragment,a),i=!1},d(a){a&&g(e),D(l),D(n)}}}function Qa(r){let e,l,t,n,o,i;return l=new Wa({}),n=new ht({}),{c(){e=N("div"),E(l.$$.fragment),t=F(),E(n.$$.fragment),this.h()},l(a){e=A(a,"DIV",{class:!0});var s=W(e);T(l.$$.fragment,s),t=V(s),T(n.$$.fragment,s),s.forEach(g),this.h()},h(){S(e,"class","flex w-full items-center")},m(a,s){I(a,e,s),y(l,e,null),C(e,t),y(n,e,null),i=!0},i(a){i||(h(l.$$.fragment,a),h(n.$$.fragment,a),o||Ue(()=>{o=je(e,tt,{x:-100,duration:150}),o.start()}),i=!0)},o(a){$(l.$$.fragment,a),$(n.$$.fragment,a),i=!1},d(a){a&&g(e),D(l),D(n)}}}function jl(r){let e,l;return e=new lt({props:{variant:"ghost",$$slots:{default:[Ya]},$$scope:{ctx:r}}}),e.$on("click",r[7]),{c(){E(e.$$.fragment)},l(t){T(e.$$.fragment,t)},m(t,n){y(e,t,n),l=!0},p(t,n){const o={};n&8388608&&(o.$$scope={dirty:n,ctx:t}),e.$set(o)},i(t){l||(h(e.$$.fragment,t),l=!0)},o(t){$(e.$$.fragment,t),l=!1},d(t){D(e,t)}}}function Ya(r){let e=P("common.clear-all")+"",l;return{c(){l=q(e)},l(t){l=U(t,e)},m(t,n){I(t,l,n)},p:K,d(t){t&&g(l)}}}function Ga(r){let e,l,t,n,o,i,a,s,f,u;const c=[Ma,Ra],_=[];function m(b,k){return b[3]?0:1}t=m(r),n=_[t]=c[t](r);function p(b){r[14](b)}let d={"data-testid":"manual-search-toggle",label:P("workflows.view-search-input"),labelPosition:"left",id:"view-search-input"};return r[3]!==void 0&&(d.checked=r[3]),i=new Zr({props:d}),ie.push(()=>fe(i,"checked",p)),i.$on("change",r[15]),f=new ia({}),{c(){e=N("div"),l=N("div"),n.c(),o=F(),E(i.$$.fragment),s=F(),E(f.$$.fragment),this.h()},l(b){e=A(b,"DIV",{class:!0});var k=W(e);l=A(k,"DIV",{class:!0});var w=W(l);n.l(w),o=V(w),T(i.$$.fragment,w),w.forEach(g),s=V(k),T(f.$$.fragment,k),k.forEach(g),this.h()},h(){S(l,"class","flex grow flex-col gap-4 sm:flex-row sm:items-center"),S(e,"class","flex grow flex-col")},m(b,k){I(b,e,k),C(e,l),_[t].m(l,null),C(l,o),y(i,l,null),C(e,s),y(f,e,null),u=!0},p(b,[k]){let w=t;t=m(b),t===w?_[t].p(b,k):(G(),$(_[w],1,1,()=>{_[w]=null}),J(),n=_[t],n?n.p(b,k):(n=_[t]=c[t](b),n.c()),h(n,1),n.m(l,o));const v={};!a&&k&8&&(a=!0,v.checked=b[3],ue(()=>a=!1)),i.$set(v)},i(b){u||(h(n),h(i.$$.fragment,b),h(f.$$.fragment,b),u=!0)},o(b){$(n),$(i.$$.fragment,b),$(f.$$.fragment,b),u=!1},d(b){b&&g(e),_[t].d(),D(i),D(f)}}}const Be="filter-context";function Ja(r,e,l){let t,n,o,i,a,s,f,u,c,_,m;j(r,pe,Y=>l(11,f=Y)),j(r,Te,Y=>l(13,c=Y)),j(r,ze,Y=>l(18,_=Y)),j(r,ol,Y=>l(3,m=Y));const p=He(qe());j(r,p,Y=>l(12,u=Y));const d=He(null);j(r,d,Y=>l(10,s=Y));const b=He("");j(r,b,Y=>l(17,a=Y)),kr(Be,{filter:p,activeQueryIndex:d,handleSubmit:w,focusedElementId:b,resetFilter:B});function k(){const Y=xn(lr(f));Y&&Y===o?le(ze,_=Date.now(),_):Ae({url:c.url,parameter:"query",value:Y,allowEmpty:!0})}function w(){s!==null?(le(pe,f[s]=u,f),le(d,s=null,s)):le(pe,f=[...f,u],f),p.set(qe()),k()}function v(){le(pe,f=[],f),k()}function L(){s!==null&&le(b,a=sr({attribute:t,type:n}),a)}function R(){if(a){const Y=document.getElementById(a);Y&&(Y.focus(),Y instanceof HTMLButtonElement&&Y.click())}}wr(()=>{R()});function B(){d.set(null),p.set(qe())}function M(Y){Y.key==="Escape"&&!it({attribute:t,type:n})&&B()}function x(Y){m=Y,ol.set(m)}const ee=()=>{B()};return r.$$.update=()=>{r.$$.dirty&4096&&l(0,{attribute:t,type:n}=u,t,(l(1,n),l(12,u))),r.$$.dirty&8192&&(o=c.url.searchParams.get("query")),r.$$.dirty&2049&&l(2,i=f.length&&!t),r.$$.dirty&1024&&L()},[t,n,i,m,p,d,b,v,B,M,s,f,u,c,x,ee]}class Xa extends re{constructor(e){super(),oe(this,e,Ja,Ga,se,{})}}function Za(r){let e=r[0].toLocaleString()+"",l;return{c(){l=q(e)},l(t){l=U(t,e)},m(t,n){I(t,l,n)},p(t,n){n&1&&e!==(e=t[0].toLocaleString()+"")&&te(l,e)},d(t){t&&g(l)}}}function xa(r){let e,l=r[0].toLocaleString()+"",t;return{c(){e=q("+"),t=q(l)},l(n){e=U(n,"+"),t=U(n,l)},m(n,o){I(n,e,o),I(n,t,o)},p(n,o){o&1&&l!==(l=n[0].toLocaleString()+"")&&te(t,l)},d(n){n&&g(e),n&&g(t)}}}function ei(r){let e;function l(o,i){if(o[0]>0)return xa;if(o[0]<0)return Za}let t=l(r),n=t&&t(r);return{c(){n&&n.c(),e=X()},l(o){n&&n.l(o),e=X()},m(o,i){n&&n.m(o,i),I(o,e,i)},p(o,i){t===(t=l(o))&&n?n.p(o,i):(n&&n.d(1),n=t&&t(o),n&&(n.c(),n.m(e.parentNode,e)))},d(o){n&&n.d(o),o&&g(e)}}}function ti(r){let e,l;return e=new lt({props:{size:"xs",variant:"ghost",leadingIcon:"retry",loading:r[1]||r[2],$$slots:{default:[ei]},$$scope:{ctx:r}}}),e.$on("click",r[4]),{c(){E(e.$$.fragment)},l(t){T(e.$$.fragment,t)},m(t,n){y(e,t,n),l=!0},p(t,[n]){const o={};n&6&&(o.loading=t[1]||t[2]),n&33&&(o.$$scope={dirty:n,ctx:t}),e.$set(o)},i(t){l||(h(e.$$.fragment,t),l=!0)},o(t){$(e.$$.fragment,t),l=!1},d(t){D(e,t)}}}function li(r,e,l){let t,n,o;j(r,Un,s=>l(1,t=s)),j(r,Dt,s=>l(2,n=s)),j(r,ze,s=>l(3,o=s));let{count:i=0}=e;const a=()=>le(ze,o=Date.now(),o);return r.$$set=s=>{"count"in s&&l(0,i=s.count)},[i,t,n,o,a]}class ni extends re{constructor(e){super(),oe(this,e,li,ti,se,{count:0})}}const Ot=""+new URL("../assets/empty-state-dark_2x.91ea3d8e.png",import.meta.url).href,zl=""+new URL("../assets/empty-state-light_2x.212be1d9.png",import.meta.url).href;function Kl(r,e,l){const t=r.slice();return t[7]=e[l],t}const ri=r=>({}),Ql=r=>({});function oi(r){let e,l,t,n,o,i;function a(m,p){return m[1]?ii:ai}let s=a(r),f=s(r);const u=[ci,ui,fi],c=[];function _(m,p){return m[2]?0:m[1]?1:2}return t=_(r),n=c[t]=u[t](r),{c(){e=N("h2"),f.c(),l=F(),n.c(),o=X(),this.h()},l(m){e=A(m,"H2",{class:!0});var p=W(e);f.l(p),p.forEach(g),l=V(m),n.l(m),o=X(),this.h()},h(){S(e,"class","text-lg font-medium")},m(m,p){I(m,e,p),f.m(e,null),I(m,l,p),c[t].m(m,p),I(m,o,p),i=!0},p(m,p){s===(s=a(m))&&f?f.p(m,p):(f.d(1),f=s(m),f&&(f.c(),f.m(e,null)));let d=t;t=_(m),t===d?c[t].p(m,p):(G(),$(c[d],1,1,()=>{c[d]=null}),J(),n=c[t],n?n.p(m,p):(n=c[t]=u[t](m),n.c()),h(n,1),n.m(o.parentNode,o))},i(m){i||(h(n),i=!0)},o(m){$(n),i=!1},d(m){m&&g(e),f.d(),m&&g(l),c[t].d(m),m&&g(o)}}}function si(r){let e,l;return e=new Ut({}),{c(){E(e.$$.fragment)},l(t){T(e.$$.fragment,t)},m(t,n){y(e,t,n),l=!0},p:K,i(t){l||(h(e.$$.fragment,t),l=!0)},o(t){$(e.$$.fragment,t),l=!1},d(t){D(e,t)}}}function ai(r){let e=P("workflows.workflow-empty-state-title")+"",l;return{c(){l=q(e)},l(t){l=U(t,e)},m(t,n){I(t,l,n)},p:K,d(t){t&&g(l)}}}function ii(r){let e=P("workflows.workflow-query-empty-state-title")+"",l;return{c(){l=q(e)},l(t){l=U(t,e)},m(t,n){I(t,l,n)},p:K,d(t){t&&g(l)}}}function fi(r){let e,l,t=P("workflows.workflow-empty-state-description")+"",n,o,i,a,s,f,u;const c=r[5].cloud,_=he(c,r,r[6],Ql);i=new rt({props:{newTab:!0,href:"https://github.com/temporalio",$$slots:{default:[mi]},$$scope:{ctx:r}}});let m=r[3],p=[];for(let b=0;b$(p[b],1,1,()=>{p[b]=null});return{c(){_&&_.c(),e=F(),l=N("p"),n=q(t),o=F(),E(i.$$.fragment),a=q("."),s=F(),f=N("ul");for(let b=0;b{m[k]=null}),J(),i=m[o],i?i.p(d,b):(i=m[o]=_[o](d),i.c()),h(i,1),i.m(n,null)),(!c||b&2&&!el(f.src,u=d[1]?zl:Ot))&&S(f,"src",u)},i(d){c||(h(i),c=!0)},o(d){$(i),c=!1},d(d){g(e),d&&g(l),d&&g(t),m[o].d()}}}function hi(r,e,l){let t,n,o;j(r,Te,u=>l(4,n=u)),j(r,jn,u=>l(2,o=u));let{$$slots:i={},$$scope:a}=e,{updating:s=!1}=e;const f=["samples-go","samples-java","samples-typescript","samples-python","samples-dotnet","samples-php"];return r.$$set=u=>{"updating"in u&&l(0,s=u.updating),"$$scope"in u&&l(6,a=u.$$scope)},r.$$.update=()=>{r.$$.dirty&16&&l(1,t=n.url.searchParams.get("query"))},[s,t,o,f,n,i,a]}class gi extends re{constructor(e){super(),oe(this,e,hi,pi,se,{updating:0})}}const bi=r=>({visibleItems:r&256}),Gl=r=>({slot:"cloud",visibleItems:r[8].items});function Jl(r,e,l){const t=r.slice();return t[23]=e[l],t}const $i=r=>({visibleItems:r&256}),Xl=r=>({visibleItems:r[8].items}),ki=r=>({visibleItems:r&256}),Zl=r=>({visibleItems:r[8].items}),wi=r=>({visibleItems:r&256}),xl=r=>({visibleItems:r[8].items});function en(r){let e,l;return e=new fo({}),{c(){E(e.$$.fragment)},l(t){T(e.$$.fragment,t)},m(t,n){y(e,t,n),l=!0},i(t){l||(h(e.$$.fragment,t),l=!0)},o(t){$(e.$$.fragment,t),l=!1},d(t){D(e,t)}}}function vi(r){let e,l;return e=new gi({props:{updating:r[0],$$slots:{cloud:[Ei]},$$scope:{ctx:r}}}),{c(){E(e.$$.fragment)},l(t){T(e.$$.fragment,t)},m(t,n){y(e,t,n),l=!0},p(t,n){const o={};n&1&&(o.updating=t[0]),n&4194560&&(o.$$scope={dirty:n,ctx:t}),e.$set(o)},i(t){l||(h(e.$$.fragment,t),l=!0)},o(t){$(e.$$.fragment,t),l=!1},d(t){D(e,t)}}}function Ii(r){let e,l,t,n,o,i,a,s,f,u,c;t=new co({props:{label:r[1],parameter:wt,value:r[6],options:Jn}});let _=r[8].pageShortcuts,m=[];for(let d=0;d<_.length;d+=1)m[d]=tn(Jl(r,_,d));const p=d=>$(m[d],1,1,()=>{m[d]=null});return s=new Le({props:{label:r[4],disabled:!r[8].hasPrevious,icon:"arrow-left"}}),s.$on("click",r[19]),u=new Le({props:{label:r[3],disabled:!r[8].hasNext,icon:"arrow-right"}}),u.$on("click",r[20]),{c(){e=N("div"),l=N("div"),E(t.$$.fragment),n=F(),o=N("div");for(let d=0;d{a[c]=null}),J(),t=a[l],t?t.p(f,u):(t=a[l]=i[l](f),t.c()),h(t,1),t.m(n.parentNode,n))},i(f){o||(h(t),o=!0)},o(f){$(t),o=!1},d(f){a[l].d(f),f&&g(n)}}}function Li(r){let e,l,t,n,o,i,a,s,f,u,c;const _=r[17].caption,m=he(_,r,r[22],xl),p=r[17].headers,d=he(p,r,r[22],Zl);let b=r[0]&&en();const k=r[17].default,w=he(k,r,r[22],Xl),v=[Ii,vi],L=[];function R(B,M){return B[8].items.length?0:1}return f=R(r),u=L[f]=v[f](r),{c(){e=N("div"),l=N("table"),m&&m.c(),t=F(),n=N("thead"),d&&d.c(),o=F(),b&&b.c(),i=F(),a=N("tbody"),w&&w.c(),s=F(),u.c(),this.h()},l(B){e=A(B,"DIV",{class:!0,style:!0});var M=W(e);l=A(M,"TABLE",{class:!0});var x=W(l);m&&m.l(x),t=V(x),n=A(x,"THEAD",{class:!0});var ee=W(n);d&&d.l(ee),o=V(ee),b&&b.l(ee),ee.forEach(g),i=V(x),a=A(x,"TBODY",{class:!0});var Y=W(a);w&&w.l(Y),Y.forEach(g),x.forEach(g),s=V(M),u.l(M),M.forEach(g),this.h()},h(){S(n,"class","paginated-table-header svelte-5xhosh"),S(a,"class","paginated-table-body svelte-5xhosh"),S(l,"class","paginated-table svelte-5xhosh"),S(e,"class","paginated-table-wrapper svelte-5xhosh"),tl(e,"max-height","calc(100vh - "+r[9]+"px)")},m(B,M){I(B,e,M),C(e,l),m&&m.m(l,null),C(l,t),C(l,n),d&&d.m(n,null),C(n,o),b&&b.m(n,null),C(l,i),C(l,a),w&&w.m(a,null),C(e,s),L[f].m(e,null),r[21](e),c=!0},p(B,[M]){m&&m.p&&(!c||M&4194560)&&ge(m,_,B,B[22],c?$e(_,B[22],M,wi):be(B[22]),xl),d&&d.p&&(!c||M&4194560)&&ge(d,p,B,B[22],c?$e(p,B[22],M,ki):be(B[22]),Zl),B[0]?b?M&1&&h(b,1):(b=en(),b.c(),h(b,1),b.m(n,null)):b&&(G(),$(b,1,1,()=>{b=null}),J()),w&&w.p&&(!c||M&4194560)&&ge(w,k,B,B[22],c?$e(k,B[22],M,$i):be(B[22]),Xl);let x=f;f=R(B),f===x?L[f].p(B,M):(G(),$(L[x],1,1,()=>{L[x]=null}),J(),u=L[f],u?u.p(B,M):(u=L[f]=v[f](B),u.c()),h(u,1),u.m(e,null)),(!c||M&512)&&tl(e,"max-height","calc(100vh - "+B[9]+"px)")},i(B){c||(h(m,B),h(d,B),h(b),h(w,B),h(u),c=!0)},o(B){$(m,B),$(d,B),$(b),$(w,B),$(u),c=!1},d(B){B&&g(e),m&&m.d(B),d&&d.d(B),b&&b.d(),w&&w.d(B),L[f].d(),r[21](null)}}}function Bi(r,e,l){let t,n,o,i,a,s,f=K,u=()=>(f(),f=Vt(i,Q=>l(8,s=Q)),i),c;j(r,Te,Q=>l(16,c=Q)),r.$$.on_destroy.push(()=>f());let{$$slots:_={},$$scope:m}=e;var p,d;let{items:b}=e,{updating:k=!1}=e,{perPageLabel:w}=e,{pageButtonLabel:v}=e,{nextPageButtonLabel:L}=e,{previousPageButtonLabel:R}=e,B;const M=Q=>{Ae({parameter:kt,value:Q,url:t})},x=Q=>M(Q),ee=()=>M(s.currentPage-1),Y=()=>M(s.currentPage+1);function O(Q){ie[Q?"unshift":"push"](()=>{B=Q,l(5,B)})}return r.$$set=Q=>{"items"in Q&&l(11,b=Q.items),"updating"in Q&&l(0,k=Q.updating),"perPageLabel"in Q&&l(1,w=Q.perPageLabel),"pageButtonLabel"in Q&&l(2,v=Q.pageButtonLabel),"nextPageButtonLabel"in Q&&l(3,L=Q.nextPageButtonLabel),"previousPageButtonLabel"in Q&&l(4,R=Q.previousPageButtonLabel),"$$scope"in Q&&l(22,m=Q.$$scope)},r.$$.update=()=>{r.$$.dirty&65536&&l(15,t=c.url),r.$$.dirty&36864&&l(6,n=l(12,p=t.searchParams.get(wt))!==null&&p!==void 0?p:String(dl)),r.$$.dirty&40960&&l(14,o=l(13,d=t.searchParams.get(kt))!==null&&d!==void 0?d:"1"),r.$$.dirty&18496&&u(l(7,i=uo(b,n,o))),r.$$.dirty&32832&&(parseInt(n,10)>parseInt(pl,10)?Ae({parameter:wt,value:pl,url:t}):Jn.includes(n)||Ae({parameter:wt,value:dl,url:t})),r.$$.dirty&49408&&(s.totalPages&&parseInt(o,10)>s.totalPages?Ae({parameter:kt,value:s.totalPages,url:t}):(o===null||parseInt(o,10)<0)&&Ae({parameter:kt,value:"1",url:t})),r.$$.dirty&16576&&(o&&i.jumpToPage(o),n&&i.adjustPageSize(n)),r.$$.dirty&32&&l(9,a=B!=null&&B.offsetTop?(B==null?void 0:B.offsetTop)+32:0)},[k,w,v,L,R,B,n,i,s,a,M,b,p,d,o,t,c,_,x,ee,Y,O,m]}class Si extends re{constructor(e){super(),oe(this,e,Bi,Li,se,{items:11,updating:0,perPageLabel:1,pageButtonLabel:2,nextPageButtonLabel:3,previousPageButtonLabel:4})}}const Ci=2,Qe=[{label:"Status",pinned:!0},{label:"Workflow ID",pinned:!0},{label:"Run ID",pinned:!1},{label:"Type",pinned:!1},{label:"Start",pinned:!1},{label:"End",pinned:!1}],Ni=[{label:"History Size",pinned:!1},{label:"History Length",pinned:!1},{label:"Execution Time",pinned:!1},{label:"Execution Duration",pinned:!1},{label:"State Transitions",pinned:!1},{label:"Parent Namespace",pinned:!1},{label:"Task Queue",pinned:!1},{label:"Scheduled By ID",pinned:!1},{label:"Scheduled Start Time",pinned:!1}],ir=r=>r.label!=="Parent Workflow ID",Ai=()=>{let r;try{const e=window.localStorage.getItem("workflow-table-columns"),l=JSON.parse(e);e&&(l!=null&&l.length)?r=l.filter(ir):r=Qe}catch{r=Qe}return r},Rt=Xn("namespace-workflow-table-columns",{}),Nt=Ge([mo,Te,Rt],([r,e,l])=>{const t={},n=(a,s)=>{var u;if(!((u=a==null?void 0:a[s])!=null&&u.length))return a[s]=[...Ai()],a[s];const f=a[s].filter(ir);return f.length!==a[s].length&&(a[s]=f,Rt.set(a)),a[s]},o=(r==null?void 0:r.reduce((a,{namespaceInfo:{name:s}})=>({...a,[s]:n(l,s)}),t))??{},{namespace:i}=e.params;return o[i]?o:{...o,[i]:n(l,i)}});Xn("workflow-table-pinned-columns-width");const Pi=r=>Ge(Nt,e=>[...Qe,...Ni].filter(l=>{var t;return!((t=e[r])!=null&&t.some(n=>n.label===l.label))})),Oi=r=>Ge([Yn,Nt],([e,l])=>Object.keys(e).filter(t=>{var n;return!((n=l[r])!=null&&n.some(o=>o.label===t))}).map(t=>({label:t,pinned:!1}))),Fi=(r,e)=>{switch(r.type){case"WORKFLOW_COLUMN.ADD":{const{label:l,namespace:t}=r.payload,n=(e==null?void 0:e[t])??Qe;return{...e,[t]:[...n,{label:l,pinned:!1}]}}case"WORKFLOW_COLUMN.REMOVE":{const{label:l,namespace:t}=r.payload,n=(e==null?void 0:e[t])??Qe;return{...e,[t]:n.filter(({label:o})=>o!==l)}}case"WORKFLOW_COLUMN.PIN":{const{label:l,namespace:t}=r.payload,n=(e==null?void 0:e[t])??Qe,o=n.findIndex(({label:f})=>f===l),i=n[o].pinned;let a=-1;for(let f=n.length-1;f>=0;f--)if(n[f].pinned){a=f;break}const s=[...n];return s[o].pinned=!i,o>a&&!i?s.splice(a+1,0,s.splice(o,1)[0]):o=0;f--)if(o[f].pinned){a=f;break}const s=[...o];return t<=a&&!i?s[l].pinned=!0:t>a&&i&&(s[l].pinned=!1),s.splice(t,0,s.splice(l,1)[0]),{...e,[n]:s.map((f,u)=>u>Ci-1?{...f,pinned:!1}:f)}}default:return e}},Gt=r=>{Rt.update(e=>Fi(r,e))},ln=(r,e)=>{Gt({type:"WORKFLOW_COLUMN.ADD",payload:{label:r,namespace:e}})},Vi=(r,e)=>{Gt({type:"WORKFLOW_COLUMN.REMOVE",payload:{label:r,namespace:e}})},Wi=(r,e,l)=>{Gt({type:"WORKFLOW_COLUMN.MOVE",payload:{from:r,to:e,namespace:l}})};function nn(r){let e,l,t,n,o;return l=new Le({props:{disabled:r[5]===0,icon:"chevron-up","data-testid":"orderable-list-item-"+r[1]+"-move-up-button",label:r[7]}}),l.$on("click",r[19]),n=new Le({props:{disabled:r[5]===r[6]-1,icon:"chevron-down","data-testid":"orderable-list-item-"+r[1]+"-move-down-button",label:r[8]}}),n.$on("click",r[20]),{c(){e=N("div"),E(l.$$.fragment),t=F(),E(n.$$.fragment),this.h()},l(i){e=A(i,"DIV",{class:!0});var a=W(e);T(l.$$.fragment,a),t=V(a),T(n.$$.fragment,a),a.forEach(g),this.h()},h(){S(e,"class","flex items-center")},m(i,a){I(i,e,a),y(l,e,null),C(e,t),y(n,e,null),o=!0},p(i,a){const s={};a&32&&(s.disabled=i[5]===0),a&2&&(s["data-testid"]="orderable-list-item-"+i[1]+"-move-up-button"),a&128&&(s.label=i[7]),l.$set(s);const f={};a&96&&(f.disabled=i[5]===i[6]-1),a&2&&(f["data-testid"]="orderable-list-item-"+i[1]+"-move-down-button"),a&256&&(f.label=i[8]),n.$set(f)},i(i){o||(h(l.$$.fragment,i),h(n.$$.fragment,i),o=!0)},o(i){$(l.$$.fragment,i),$(n.$$.fragment,i),o=!1},d(i){i&&g(e),D(l),D(n)}}}function rn(r){let e,l,t,n;const o=[Mi,Ri],i=[];function a(s,f){return s[3]?0:1}return e=a(r),l=i[e]=o[e](r),{c(){l.c(),t=X()},l(s){l.l(s),t=X()},m(s,f){i[e].m(s,f),I(s,t,f),n=!0},p(s,f){let u=e;e=a(s),e===u?i[e].p(s,f):(G(),$(i[u],1,1,()=>{i[u]=null}),J(),l=i[e],l?l.p(s,f):(l=i[e]=o[e](s),l.c()),h(l,1),l.m(t.parentNode,t))},i(s){n||(h(l),n=!0)},o(s){$(l),n=!1},d(s){i[e].d(s),s&&g(t)}}}function Ri(r){let e,l;return e=new Le({props:{icon:"pin","data-testid":"orderable-list-item-"+r[1]+"-pin-button",label:r[9]}}),e.$on("click",r[22]),{c(){E(e.$$.fragment)},l(t){T(e.$$.fragment,t)},m(t,n){y(e,t,n),l=!0},p(t,n){const o={};n&2&&(o["data-testid"]="orderable-list-item-"+t[1]+"-pin-button"),n&512&&(o.label=t[9]),e.$set(o)},i(t){l||(h(e.$$.fragment,t),l=!0)},o(t){$(e.$$.fragment,t),l=!1},d(t){D(e,t)}}}function Mi(r){let e,l;return e=new Le({props:{icon:"pin-filled","data-testid":"orderable-list-item-"+r[1]+"-unpin-button",label:r[10]}}),e.$on("click",r[21]),{c(){E(e.$$.fragment)},l(t){T(e.$$.fragment,t)},m(t,n){y(e,t,n),l=!0},p(t,n){const o={};n&2&&(o["data-testid"]="orderable-list-item-"+t[1]+"-unpin-button"),n&1024&&(o.label=t[10]),e.$set(o)},i(t){l||(h(e.$$.fragment,t),l=!0)},o(t){$(e.$$.fragment,t),l=!1},d(t){D(e,t)}}}function on(r){let e,l,t,n;const o=[qi,Hi],i=[];function a(s,f){return s[0]?0:1}return e=a(r),l=i[e]=o[e](r),{c(){l.c(),t=X()},l(s){l.l(s),t=X()},m(s,f){i[e].m(s,f),I(s,t,f),n=!0},p(s,f){let u=e;e=a(s),e===u?i[e].p(s,f):(G(),$(i[u],1,1,()=>{i[u]=null}),J(),l=i[e],l?l.p(s,f):(l=i[e]=o[e](s),l.c()),h(l,1),l.m(t.parentNode,t))},i(s){n||(h(l),n=!0)},o(s){$(l),n=!1},d(s){i[e].d(s),s&&g(t)}}}function Hi(r){let e,l;return e=new Le({props:{icon:"hyphen","data-testid":"orderable-list-item-"+r[1]+"-remove-button",label:r[12]}}),e.$on("click",r[24]),{c(){E(e.$$.fragment)},l(t){T(e.$$.fragment,t)},m(t,n){y(e,t,n),l=!0},p(t,n){const o={};n&2&&(o["data-testid"]="orderable-list-item-"+t[1]+"-remove-button"),n&4096&&(o.label=t[12]),e.$set(o)},i(t){l||(h(e.$$.fragment,t),l=!0)},o(t){$(e.$$.fragment,t),l=!1},d(t){D(e,t)}}}function qi(r){let e,l;return e=new Le({props:{icon:"add","data-testid":"orderable-list-item-"+r[1]+"-add-button",label:r[11]}}),e.$on("click",r[23]),{c(){E(e.$$.fragment)},l(t){T(e.$$.fragment,t)},m(t,n){y(e,t,n),l=!0},p(t,n){const o={};n&2&&(o["data-testid"]="orderable-list-item-"+t[1]+"-add-button"),n&2048&&(o.label=t[11]),e.$set(o)},i(t){l||(h(e.$$.fragment,t),l=!0)},o(t){$(e.$$.fragment,t),l=!1},d(t){D(e,t)}}}function Ui(r){let e,l,t,n,o,i,a,s,f,u,c,_,m,p=!r[0]&&!r[4]&&nn(r),d=!r[0]&&!r[4]&&r[5]<=r[2]-1&&rn(r),b=!r[4]&&on(r);return{c(){e=N("li"),l=N("div"),p&&p.c(),t=F(),n=q(r[1]),o=F(),d&&d.c(),i=F(),b&&b.c(),f=F(),u=N("hr"),this.h()},l(k){e=A(k,"LI",{draggable:!0,class:!0,"data-testid":!0});var w=W(e);l=A(w,"DIV",{class:!0});var v=W(l);p&&p.l(v),t=V(v),n=U(v,r[1]),o=V(v),d&&d.l(v),v.forEach(g),i=V(w),b&&b.l(w),w.forEach(g),f=V(k),u=A(k,"HR",{class:!0}),this.h()},h(){S(l,"class","flex flex-row items-center gap-2"),S(e,"draggable",a=!r[0]&&!r[4]),S(e,"class","orderable-item group svelte-1btkzzb"),S(e,"data-testid",s="orderable-list-item-"+r[1]),me(e,"readonly",r[4]),S(u,"class","svelte-1btkzzb")},m(k,w){I(k,e,w),C(e,l),p&&p.m(l,null),C(l,t),C(l,n),C(l,o),d&&d.m(l,null),C(e,i),b&&b.m(e,null),I(k,f,w),I(k,u,w),c=!0,_||(m=[ce(e,"dragstart",r[25]),ce(e,"drop",ot(r[26])),ce(e,"dragenter",At(ot(r[16]))),ce(e,"dragleave",At(ot(r[17]))),ce(e,"dragover",At(ot(r[18])))],_=!0)},p(k,[w]){!k[0]&&!k[4]?p?(p.p(k,w),w&17&&h(p,1)):(p=nn(k),p.c(),h(p,1),p.m(l,t)):p&&(G(),$(p,1,1,()=>{p=null}),J()),(!c||w&2)&&te(n,k[1]),!k[0]&&!k[4]&&k[5]<=k[2]-1?d?(d.p(k,w),w&53&&h(d,1)):(d=rn(k),d.c(),h(d,1),d.m(l,null)):d&&(G(),$(d,1,1,()=>{d=null}),J()),k[4]?b&&(G(),$(b,1,1,()=>{b=null}),J()):b?(b.p(k,w),w&16&&h(b,1)):(b=on(k),b.c(),h(b,1),b.m(e,null)),(!c||w&17&&a!==(a=!k[0]&&!k[4]))&&S(e,"draggable",a),(!c||w&2&&s!==(s="orderable-list-item-"+k[1]))&&S(e,"data-testid",s),(!c||w&16)&&me(e,"readonly",k[4])},i(k){c||(h(p),h(d),h(b),c=!0)},o(k){$(p),$(d),$(b),c=!1},d(k){k&&g(e),p&&p.d(),d&&d.d(),b&&b.d(),k&&g(f),k&&g(u),_=!1,ct(m)}}}function ji(r,e,l){const t=xe();let{static:n=!1}=e,{label:o}=e,{maxPinnedItems:i=void 0}=e,{pinned:a=!1}=e,{readonly:s=!1}=e,{index:f=0}=e,{totalItems:u=0}=e,{moveUpButtonLabel:c=""}=e,{moveDownButtonLabel:_=""}=e,{pinButtonLabel:m=""}=e,{unpinButtonLabel:p=""}=e,{addButtonLabel:d=""}=e,{removeButtonLabel:b=""}=e;const k=(H,ae)=>{n||s||(H.dataTransfer.setData("text/plain",ae.toString()),H.dataTransfer.dropEffect="move")},w=(H,ae)=>{H.currentTarget.classList.remove("dragging-over");const _e=parseInt(H.dataTransfer.getData("text/plain"));t("moveItem",{from:_e,to:ae})},v=H=>H.currentTarget.classList.add("dragging-over"),L=H=>H.currentTarget.classList.remove("dragging-over");function R(H){Me.call(this,r,H)}const B=()=>t("moveItem",{from:f,to:f-1}),M=()=>t("moveItem",{from:f,to:f+1}),x=()=>t("pinItem"),ee=()=>t("pinItem"),Y=()=>t("addItem"),O=()=>t("removeItem"),Q=H=>k(H,f),z=H=>w(H,f);return r.$$set=H=>{"static"in H&&l(0,n=H.static),"label"in H&&l(1,o=H.label),"maxPinnedItems"in H&&l(2,i=H.maxPinnedItems),"pinned"in H&&l(3,a=H.pinned),"readonly"in H&&l(4,s=H.readonly),"index"in H&&l(5,f=H.index),"totalItems"in H&&l(6,u=H.totalItems),"moveUpButtonLabel"in H&&l(7,c=H.moveUpButtonLabel),"moveDownButtonLabel"in H&&l(8,_=H.moveDownButtonLabel),"pinButtonLabel"in H&&l(9,m=H.pinButtonLabel),"unpinButtonLabel"in H&&l(10,p=H.unpinButtonLabel),"addButtonLabel"in H&&l(11,d=H.addButtonLabel),"removeButtonLabel"in H&&l(12,b=H.removeButtonLabel)},[n,o,i,a,s,f,u,c,_,m,p,d,b,t,k,w,v,L,R,B,M,x,ee,Y,O,Q,z]}class Je extends re{constructor(e){super(),oe(this,e,ji,Ui,se,{static:0,label:1,maxPinnedItems:2,pinned:3,readonly:4,index:5,totalItems:6,moveUpButtonLabel:7,moveDownButtonLabel:8,pinButtonLabel:9,unpinButtonLabel:10,addButtonLabel:11,removeButtonLabel:12})}}const zi=r=>({}),sn=r=>({});function Ki(r){let e;return{c(){e=q("Items")},l(l){e=U(l,"Items")},m(l,t){I(l,e,t)},d(l){l&&g(e)}}}function Qi(r){let e,l;return e=new Je({props:{readonly:!0,label:"No Items",pinned:!1}}),{c(){E(e.$$.fragment)},l(t){T(e.$$.fragment,t)},m(t,n){y(e,t,n),l=!0},p:K,i(t){l||(h(e.$$.fragment,t),l=!0)},o(t){$(e.$$.fragment,t),l=!1},d(t){D(e,t)}}}function Yi(r){let e,l,t,n,o;const i=r[1].heading,a=he(i,r,r[0],sn),s=a||Ki(),f=r[1].default,u=he(f,r,r[0],null),c=u||Qi();return{c(){e=N("div"),l=N("h4"),s&&s.c(),t=F(),n=N("ol"),c&&c.c(),this.h()},l(_){e=A(_,"DIV",{class:!0});var m=W(e);l=A(m,"H4",{class:!0});var p=W(l);s&&s.l(p),p.forEach(g),t=V(m),n=A(m,"OL",{class:!0});var d=W(n);c&&c.l(d),d.forEach(g),m.forEach(g),this.h()},h(){S(l,"class","orderable-heading svelte-cheqnz"),S(n,"class","orderable-list svelte-cheqnz"),S(e,"class","orderable-section svelte-cheqnz")},m(_,m){I(_,e,m),C(e,l),s&&s.m(l,null),C(e,t),C(e,n),c&&c.m(n,null),o=!0},p(_,[m]){a&&a.p&&(!o||m&1)&&ge(a,i,_,_[0],o?$e(i,_[0],m,zi):be(_[0]),sn),u&&u.p&&(!o||m&1)&&ge(u,f,_,_[0],o?$e(f,_[0],m,null):be(_[0]),null)},i(_){o||(h(s,_),h(c,_),o=!0)},o(_){$(s,_),$(c,_),o=!1},d(_){_&&g(e),s&&s.d(_),c&&c.d(_)}}}function Gi(r,e,l){let{$$slots:t={},$$scope:n}=e;return r.$$set=o=>{"$$scope"in o&&l(0,n=o.$$scope)},[n,t]}let Ft=class extends re{constructor(e){super(),oe(this,e,Gi,Yi,se,{})}};function an(r,e,l){const t=r.slice();return t[12]=e[l].label,t}function fn(r,e,l){const t=r.slice();return t[12]=e[l].label,t}function un(r,e,l){const t=r.slice();return t[12]=e[l].label,t[18]=l,t}function cn(r){let e,l;return e=new Je({props:{readonly:!0,label:P("workflows.no-headings-in-view")}}),{c(){E(e.$$.fragment)},l(t){T(e.$$.fragment,t)},m(t,n){y(e,t,n),l=!0},p:K,i(t){l||(h(e.$$.fragment,t),l=!0)},o(t){$(e.$$.fragment,t),l=!1},d(t){D(e,t)}}}function mn(r,e){let l,t,n;function o(){return e[9](e[12])}return t=new Je({props:{index:e[18],label:e[12],totalItems:e[3].length,addButtonLabel:P("workflows.add-column-label",{column:e[12]}),removeButtonLabel:P("workflows.remove-column-label",{column:e[12]}),moveUpButtonLabel:P("workflows.move-column-up-label",{column:e[12]}),moveDownButtonLabel:P("workflows.move-column-down-label",{column:e[12]}),pinButtonLabel:P("workflows.pin-column-label",{column:e[12]}),unpinButtonLabel:P("workflows.unpin-column-label",{column:e[12]})}}),t.$on("moveItem",e[8]),t.$on("removeItem",o),{key:r,first:null,c(){l=X(),E(t.$$.fragment),this.h()},l(i){l=X(),T(t.$$.fragment,i),this.h()},h(){this.first=l},m(i,a){I(i,l,a),y(t,i,a),n=!0},p(i,a){e=i;const s={};a&8&&(s.index=e[18]),a&8&&(s.label=e[12]),a&8&&(s.totalItems=e[3].length),a&8&&(s.addButtonLabel=P("workflows.add-column-label",{column:e[12]})),a&8&&(s.removeButtonLabel=P("workflows.remove-column-label",{column:e[12]})),a&8&&(s.moveUpButtonLabel=P("workflows.move-column-up-label",{column:e[12]})),a&8&&(s.moveDownButtonLabel=P("workflows.move-column-down-label",{column:e[12]})),a&8&&(s.pinButtonLabel=P("workflows.pin-column-label",{column:e[12]})),a&8&&(s.unpinButtonLabel=P("workflows.unpin-column-label",{column:e[12]})),t.$set(s)},i(i){n||(h(t.$$.fragment,i),n=!0)},o(i){$(t.$$.fragment,i),n=!1},d(i){i&&g(l),D(t,i)}}}function Ji(r){let e=[],l=new Map,t,n,o=r[3];const i=s=>s[12];for(let s=0;s{a=null}),J()):(a=cn(),a.c(),h(a,1),a.m(t.parentNode,t)))},i(s){if(!n){for(let f=0;f$(n[a],1,1,()=>{n[a]=null});let i=null;return t.length||(i=_n()),{c(){for(let a=0;a{i=null}),J()):(i=_n(),i.c(),h(i,1),i.m(e.parentNode,e))}},i(a){if(!l){for(let s=0;s$(n[a],1,1,()=>{n[a]=null});let i=null;return t.length||(i=pn()),{c(){for(let a=0;a{i=null}),J()):(i=pn(),i.c(),h(i,1),i.m(e.parentNode,e))}},i(a){if(!l){for(let s=0;s(s(),s=Vt(n,v=>l(4,a=v)),n),u,c=K,_=()=>(c(),c=Vt(o,v=>l(5,u=v)),o);j(r,Nt,v=>l(7,i=v)),r.$$.on_destroy.push(()=>s()),r.$$.on_destroy.push(()=>c());var m;let{namespace:p}=e;const d=v=>Wi(v.detail.from,v.detail.to,p),b=v=>Vi(v,p),k=v=>ln(v,p),w=v=>ln(v,p);return r.$$set=v=>{"namespace"in v&&l(0,p=v.namespace)},r.$$.update=()=>{r.$$.dirty&193&&l(3,t=l(6,m=i==null?void 0:i[p])!==null&&m!==void 0?m:[]),r.$$.dirty&1&&f(l(2,n=Pi(p))),r.$$.dirty&1&&_(l(1,o=Oi(p)))},[p,o,n,t,a,u,m,i,d,b,k,w]}class rf extends re{constructor(e){super(),oe(this,e,nf,lf,se,{namespace:0})}}const gn=(r,e=2)=>{if(!+r)return"0 Bytes";const l=1024,t=e<0?0:e,n=["Bytes","KB","MB","GB","TB","PB","EB","ZB","YB"],o=Math.floor(Math.log(r)/Math.log(l));return`${parseFloat((r/Math.pow(l,o)).toFixed(t))} ${n[o]}`},of={WorkflowId:"id",WorkflowType:"name",RunId:"runId"};function sf(r){let e;return{c(){e=q(r[2])},l(l){e=U(l,r[2])},m(l,t){I(l,e,t)},p(l,t){t&4&&te(e,l[2])},d(l){l&&g(e)}}}function af(r){let e,l,t,n;return e=new rt({props:{href:r[3],$$slots:{default:[sf]},$$scope:{ctx:r}}}),t=new Vr({props:{copyIconTitle:P("common.copy-icon-title"),copySuccessIconTitle:P("common.copy-success-icon-title"),filterIconTitle:P("common.filter-workflows"),show:r[1],content:r[2],onFilter:r[5],filtered:r[4].some(r[9])}}),{c(){E(e.$$.fragment),l=F(),E(t.$$.fragment)},l(o){T(e.$$.fragment,o),l=V(o),T(t.$$.fragment,o)},m(o,i){y(e,o,i),I(o,l,i),y(t,o,i),n=!0},p(o,[i]){const a={};i&8&&(a.href=o[3]),i&1028&&(a.$$scope={dirty:i,ctx:o}),e.$set(a);const s={};i&2&&(s.show=o[1]),i&4&&(s.content=o[2]),i&21&&(s.filtered=o[4].some(o[9])),t.$set(s)},i(o){n||(h(e.$$.fragment,o),h(t.$$.fragment,o),n=!0)},o(o){$(e.$$.fragment,o),$(t.$$.fragment,o),n=!1},d(o){D(e,o),o&&g(l),D(t,o)}}}function ff(r,e,l){let t,n,o,i,a;j(r,pe,m=>l(4,i=m)),j(r,Te,m=>l(8,a=m));let{attribute:s}=e,{workflow:f}=e,{filterOrCopyButtonsVisible:u=!1}=e;const c=()=>{const m=i.find(d=>d.attribute===s),p=()=>i.filter(d=>d.attribute!==s);if(m)le(pe,i=[...p()],i);else{const d={attribute:s,type:"Keyword",value:t,conditional:"=",operator:"",parenthesis:""};le(pe,i=[...p(),d],i)}zt(a.url,i)},_=m=>m.attribute===s&&m.value===t;return r.$$set=m=>{"attribute"in m&&l(0,s=m.attribute),"workflow"in m&&l(6,f=m.workflow),"filterOrCopyButtonsVisible"in m&&l(1,u=m.filterOrCopyButtonsVisible)},r.$$.update=()=>{r.$$.dirty&65&&l(2,t=f[of[s]]),r.$$.dirty&256&&l(7,n=a.params.namespace),r.$$.dirty&192&&l(3,o=po({namespace:n,workflow:f.id,run:f.runId}))},[s,u,t,o,i,c,f,n,a,_]}class Jt extends re{constructor(e){super(),oe(this,e,ff,af,se,{attribute:0,workflow:6,filterOrCopyButtonsVisible:1})}}function uf(r){const e=r.slice(),l=e[0].searchAttributes.indexedFields[e[2]];return e[10]=l,e}function cf(r){var t,n;const e=r.slice(),l=(n=(t=e[0].searchAttributes)==null?void 0:t.indexedFields)==null?void 0:n.TemporalScheduledStartTime;return e[10]=l,e}function mf(r){let e,l,t,n,o;const i=[yf,Tf,Ef,If,vf,wf,kf,$f,bf,gf,hf,pf,df],a=[];function s(u,c){return c&5&&(l=null),u[2]==="Status"?0:u[2]==="End"?1:u[2]==="Start"?2:u[2]==="Task Queue"?3:u[2]==="Parent Namespace"?4:u[2]==="History Size"?5:u[2]==="State Transitions"?6:u[2]==="Execution Time"?7:u[2]==="Execution Duration"?8:u[2]==="History Length"?9:u[2]==="Scheduled By ID"?10:u[2]==="Scheduled Start Time"?11:(l==null&&(l=!!(eo(u[2])&&to(u[0],u[2]))),l?12:-1)}function f(u,c){return c===11?cf(u):c===12?uf(u):u}return~(t=s(r,-1))&&(n=a[t]=i[t](f(r,t))),{c(){e=N("td"),n&&n.c(),this.h()},l(u){e=A(u,"TD",{class:!0,"data-testid":!0});var c=W(e);n&&n.l(c),c.forEach(g),this.h()},h(){S(e,"class","workflows-summary-table-body-cell svelte-qupenl"),S(e,"data-testid","workflows-summary-table-body-cell")},m(u,c){I(u,e,c),~t&&a[t].m(e,null),o=!0},p(u,c){let _=t;t=s(u,c),t===_?~t&&a[t].p(f(u,t),c):(n&&(G(),$(a[_],1,1,()=>{a[_]=null}),J()),~t?(n=a[t],n?n.p(f(u,t),c):(n=a[t]=i[t](f(u,t)),n.c()),h(n,1),n.m(e,null)):n=null)},i(u){o||(h(n),o=!0)},o(u){$(n),o=!1},d(u){u&&g(e),~t&&a[t].d()}}}function _f(r){let e,l,t,n,o,i;const a=[Af,Nf,Cf],s=[];function f(u,c){return u[2]==="Type"?0:u[2]==="Workflow ID"?1:u[2]==="Run ID"?2:-1}return~(l=f(r))&&(t=s[l]=a[l](r)),{c(){e=N("td"),t&&t.c(),this.h()},l(u){e=A(u,"TD",{class:!0,"data-testid":!0});var c=W(e);t&&t.l(c),c.forEach(g),this.h()},h(){S(e,"class","workflows-summary-table-body-cell filterable svelte-qupenl"),S(e,"data-testid","workflows-summary-table-body-cell")},m(u,c){I(u,e,c),~l&&s[l].m(e,null),n=!0,o||(i=[ce(e,"mouseover",r[6]),ce(e,"focus",r[6]),ce(e,"focusin",r[6]),ce(e,"focusout",r[8]),ce(e,"mouseleave",r[7]),ce(e,"blur",r[7])],o=!0)},p(u,c){let _=l;l=f(u),l===_?~l&&s[l].p(u,c):(t&&(G(),$(s[_],1,1,()=>{s[_]=null}),J()),~l?(t=s[l],t?t.p(u,c):(t=s[l]=a[l](u),t.c()),h(t,1),t.m(e,null)):t=null)},i(u){n||(h(t),n=!0)},o(u){$(t),n=!1},d(u){u&&g(e),~l&&s[l].d(),o=!1,ct(i)}}}function df(r){let e,l,t,n;const o=[Bf,Lf,Df],i=[];function a(s,f){return s[5][s[2]]==="Datetime"&&typeof s[10]=="string"?0:s[5][s[2]]==="Bool"?1:2}return e=a(r),l=i[e]=o[e](r),{c(){l.c(),t=X()},l(s){l.l(s),t=X()},m(s,f){i[e].m(s,f),I(s,t,f),n=!0},p(s,f){let u=e;e=a(s),e===u?i[e].p(s,f):(G(),$(i[u],1,1,()=>{i[u]=null}),J(),l=i[e],l?l.p(s,f):(l=i[e]=o[e](s),l.c()),h(l,1),l.m(t.parentNode,t))},i(s){n||(h(l),n=!0)},o(s){$(l),n=!1},d(s){i[e].d(s),s&&g(t)}}}function pf(r){let e=(r[10]&&typeof r[10]=="string"?Ie(r[10],r[3],{relative:r[4]}):"")+"",l;return{c(){l=q(e)},l(t){l=U(t,e)},m(t,n){I(t,l,n)},p(t,n){n&25&&e!==(e=(t[10]&&typeof t[10]=="string"?Ie(t[10],t[3],{relative:t[4]}):"")+"")&&te(l,e)},i:K,o:K,d(t){t&&g(l)}}}function hf(r){var t,n;let e=(((n=(t=r[0].searchAttributes)==null?void 0:t.indexedFields)==null?void 0:n.TemporalScheduledById)??"")+"",l;return{c(){l=q(e)},l(o){l=U(o,e)},m(o,i){I(o,l,i)},p(o,i){var a,s;i&1&&e!==(e=(((s=(a=o[0].searchAttributes)==null?void 0:a.indexedFields)==null?void 0:s.TemporalScheduledById)??"")+"")&&te(l,e)},i:K,o:K,d(o){o&&g(l)}}}function gf(r){let e=(parseInt(r[0].historyEvents,10)>0?r[0].historyEvents:"")+"",l;return{c(){l=q(e)},l(t){l=U(t,e)},m(t,n){I(t,l,n)},p(t,n){n&1&&e!==(e=(parseInt(t[0].historyEvents,10)>0?t[0].historyEvents:"")+"")&&te(l,e)},i:K,o:K,d(t){t&&g(l)}}}function bf(r){let e=al({start:r[0].startTime,end:r[0].endTime,includeMillisecondsForUnderSecond:!0})+"",l;return{c(){l=q(e)},l(t){l=U(t,e)},m(t,n){I(t,l,n)},p(t,n){n&1&&e!==(e=al({start:t[0].startTime,end:t[0].endTime,includeMillisecondsForUnderSecond:!0})+"")&&te(l,e)},i:K,o:K,d(t){t&&g(l)}}}function $f(r){let e=Ie(r[0].executionTime,r[3],{relative:r[4]})+"",l;return{c(){l=q(e)},l(t){l=U(t,e)},m(t,n){I(t,l,n)},p(t,n){n&25&&e!==(e=Ie(t[0].executionTime,t[3],{relative:t[4]})+"")&&te(l,e)},i:K,o:K,d(t){t&&g(l)}}}function kf(r){let e=(parseInt(r[0].stateTransitionCount,10)>0?r[0].stateTransitionCount:"")+"",l;return{c(){l=q(e)},l(t){l=U(t,e)},m(t,n){I(t,l,n)},p(t,n){n&1&&e!==(e=(parseInt(t[0].stateTransitionCount,10)>0?t[0].stateTransitionCount:"")+"")&&te(l,e)},i:K,o:K,d(t){t&&g(l)}}}function wf(r){let e=gn(parseInt(r[0].historySizeBytes,10))+"",l;return{c(){l=q(e)},l(t){l=U(t,e)},m(t,n){I(t,l,n)},p(t,n){n&1&&e!==(e=gn(parseInt(t[0].historySizeBytes,10))+"")&&te(l,e)},i:K,o:K,d(t){t&&g(l)}}}function vf(r){let e=r[0].parentNamespaceId+"",l;return{c(){l=q(e)},l(t){l=U(t,e)},m(t,n){I(t,l,n)},p(t,n){n&1&&e!==(e=t[0].parentNamespaceId+"")&&te(l,e)},i:K,o:K,d(t){t&&g(l)}}}function If(r){let e=r[0].taskQueue+"",l;return{c(){l=q(e)},l(t){l=U(t,e)},m(t,n){I(t,l,n)},p(t,n){n&1&&e!==(e=t[0].taskQueue+"")&&te(l,e)},i:K,o:K,d(t){t&&g(l)}}}function Ef(r){let e=Ie(r[0].startTime,r[3],{relative:r[4]})+"",l;return{c(){l=q(e)},l(t){l=U(t,e)},m(t,n){I(t,l,n)},p(t,n){n&25&&e!==(e=Ie(t[0].startTime,t[3],{relative:t[4]})+"")&&te(l,e)},i:K,o:K,d(t){t&&g(l)}}}function Tf(r){let e=Ie(r[0].endTime,r[3],{relative:r[4]})+"",l;return{c(){l=q(e)},l(t){l=U(t,e)},m(t,n){I(t,l,n)},p(t,n){n&25&&e!==(e=Ie(t[0].endTime,t[3],{relative:t[4]})+"")&&te(l,e)},i:K,o:K,d(t){t&&g(l)}}}function yf(r){let e,l;return e=new qt({props:{status:r[0].status}}),{c(){E(e.$$.fragment)},l(t){T(e.$$.fragment,t)},m(t,n){y(e,t,n),l=!0},p(t,n){const o={};n&1&&(o.status=t[0].status),e.$set(o)},i(t){l||(h(e.$$.fragment,t),l=!0)},o(t){$(e.$$.fragment,t),l=!1},d(t){D(e,t)}}}function Df(r){let e=r[10]+"",l;return{c(){l=q(e)},l(t){l=U(t,e)},m(t,n){I(t,l,n)},p(t,n){n&5&&e!==(e=t[10]+"")&&te(l,e)},i:K,o:K,d(t){t&&g(l)}}}function Lf(r){let e,l;return e=new _o({props:{$$slots:{default:[Sf]},$$scope:{ctx:r}}}),{c(){E(e.$$.fragment)},l(t){T(e.$$.fragment,t)},m(t,n){y(e,t,n),l=!0},p(t,n){const o={};n&2053&&(o.$$scope={dirty:n,ctx:t}),e.$set(o)},i(t){l||(h(e.$$.fragment,t),l=!0)},o(t){$(e.$$.fragment,t),l=!1},d(t){D(e,t)}}}function Bf(r){let e=Ie(r[10],r[3],{relative:r[4]})+"",l;return{c(){l=q(e)},l(t){l=U(t,e)},m(t,n){I(t,l,n)},p(t,n){n&29&&e!==(e=Ie(t[10],t[3],{relative:t[4]})+"")&&te(l,e)},i:K,o:K,d(t){t&&g(l)}}}function Sf(r){let e=r[10]+"",l;return{c(){l=q(e)},l(t){l=U(t,e)},m(t,n){I(t,l,n)},p(t,n){n&5&&e!==(e=t[10]+"")&&te(l,e)},d(t){t&&g(l)}}}function Cf(r){let e,l;return e=new Jt({props:{filterOrCopyButtonsVisible:r[1],attribute:"RunId",workflow:r[0]}}),{c(){E(e.$$.fragment)},l(t){T(e.$$.fragment,t)},m(t,n){y(e,t,n),l=!0},p(t,n){const o={};n&2&&(o.filterOrCopyButtonsVisible=t[1]),n&1&&(o.workflow=t[0]),e.$set(o)},i(t){l||(h(e.$$.fragment,t),l=!0)},o(t){$(e.$$.fragment,t),l=!1},d(t){D(e,t)}}}function Nf(r){let e,l;return e=new Jt({props:{filterOrCopyButtonsVisible:r[1],attribute:"WorkflowId",workflow:r[0]}}),{c(){E(e.$$.fragment)},l(t){T(e.$$.fragment,t)},m(t,n){y(e,t,n),l=!0},p(t,n){const o={};n&2&&(o.filterOrCopyButtonsVisible=t[1]),n&1&&(o.workflow=t[0]),e.$set(o)},i(t){l||(h(e.$$.fragment,t),l=!0)},o(t){$(e.$$.fragment,t),l=!1},d(t){D(e,t)}}}function Af(r){let e,l;return e=new Jt({props:{filterOrCopyButtonsVisible:r[1],attribute:"WorkflowType",workflow:r[0]}}),{c(){E(e.$$.fragment)},l(t){T(e.$$.fragment,t)},m(t,n){y(e,t,n),l=!0},p(t,n){const o={};n&2&&(o.filterOrCopyButtonsVisible=t[1]),n&1&&(o.workflow=t[0]),e.$set(o)},i(t){l||(h(e.$$.fragment,t),l=!0)},o(t){$(e.$$.fragment,t),l=!1},d(t){D(e,t)}}}function Pf(r){let e,l,t,n;const o=[_f,mf],i=[];function a(s,f){return s[2]==="Run ID"||s[2]==="Workflow ID"||s[2]==="Type"?0:1}return e=a(r),l=i[e]=o[e](r),{c(){l.c(),t=X()},l(s){l.l(s),t=X()},m(s,f){i[e].m(s,f),I(s,t,f),n=!0},p(s,[f]){let u=e;e=a(s),e===u?i[e].p(s,f):(G(),$(i[u],1,1,()=>{i[u]=null}),J(),l=i[e],l?l.p(s,f):(l=i[e]=o[e](s),l.c()),h(l,1),l.m(t.parentNode,t))},i(s){n||(h(l),n=!0)},o(s){$(l),n=!1},d(s){i[e].d(s),s&&g(t)}}}function Of(r,e,l){let t,n,o,i;j(r,at,m=>l(3,n=m)),j(r,Qn,m=>l(4,o=m)),j(r,Yn,m=>l(5,i=m));let{column:a}=e,{workflow:s}=e,f=!1;const u=()=>l(1,f=!0),c=()=>l(1,f=!1),_=m=>{const p=m.relatedTarget;p&&!["filter-button","copy-button"].includes(p.id)&&c()};return r.$$set=m=>{"column"in m&&l(9,a=m.column),"workflow"in m&&l(0,s=m.workflow)},r.$$.update=()=>{r.$$.dirty&512&&l(2,{label:t}=a,t)},[s,f,t,n,o,i,u,c,_,a]}class Ff extends re{constructor(e){super(),oe(this,e,Of,Pf,se,{column:9,workflow:0})}}function Vf(r){let e,l,t;return{c(){e=N("th"),l=q(r[0]),this.h()},l(n){e=A(n,"TH",{class:!0,"data-testid":!0});var o=W(e);l=U(o,r[0]),o.forEach(g),this.h()},h(){S(e,"class","workflows-summary-table-header-cell svelte-x2wk3"),S(e,"data-testid",t="workflows-summary-table-header-cell-"+r[0])},m(n,o){I(n,e,o),C(e,l)},p(n,[o]){o&1&&te(l,n[0]),o&1&&t!==(t="workflows-summary-table-header-cell-"+n[0])&&S(e,"data-testid",t)},i:K,o:K,d(n){n&&g(e)}}}function Wf(r,e,l){let t,{column:n}=e;return r.$$set=o=>{"column"in o&&l(1,n=o.column)},r.$$.update=()=>{r.$$.dirty&2&&l(0,{label:t}=n,t)},[t,n]}class Rf extends re{constructor(e){super(),oe(this,e,Wf,Vf,se,{column:1})}}const Mf=["workflowCancelDisabled","workflowTerminateDisabled"],Hf=r=>r.disableWriteActions||r.batchActionsDisabled?!1:Mf.some(e=>!r[e]),fr=Ge([bo,mt,go,Er],([r,e,l,t])=>(t?!0:ho(r,"1.18.0"))&&e&&Hf(l));function qf(r){let e,l,t,n,o;const i=r[5].default,a=he(i,r,r[4],null);return{c(){e=N("button"),a&&a.c(),this.h()},l(s){e=A(s,"BUTTON",{"data-testid":!0,class:!0});var f=W(e);a&&a.l(f),f.forEach(g),this.h()},h(){S(e,"data-testid",r[0]),e.disabled=r[1],S(e,"class",l="bulk-action-button "+r[2]+" "+r[3].class+" svelte-19w6g7u")},m(s,f){I(s,e,f),a&&a.m(e,null),t=!0,n||(o=ce(e,"click",r[6]),n=!0)},p(s,[f]){a&&a.p&&(!t||f&16)&&ge(a,i,s,s[4],t?$e(i,s[4],f,null):be(s[4]),null),(!t||f&1)&&S(e,"data-testid",s[0]),(!t||f&2)&&(e.disabled=s[1]),(!t||f&12&&l!==(l="bulk-action-button "+s[2]+" "+s[3].class+" svelte-19w6g7u"))&&S(e,"class",l)},i(s){t||(h(a,s),t=!0)},o(s){$(a,s),t=!1},d(s){s&&g(e),a&&a.d(s),n=!1,o()}}}function Uf(r,e,l){let{$$slots:t={},$$scope:n}=e,{testId:o=null}=e,{disabled:i=!1}=e,{variant:a="primary"}=e;function s(f){Me.call(this,r,f)}return r.$$set=f=>{l(3,e=vt(vt({},e),It(f))),"testId"in f&&l(0,o=f.testId),"disabled"in f&&l(1,i=f.disabled),"variant"in f&&l(2,a=f.variant),"$$scope"in f&&l(4,n=f.$$scope)},e=It(e),[o,i,a,e,n,t,s]}class ur extends re{constructor(e){super(),oe(this,e,Uf,qf,se,{testId:0,disabled:1,variant:2})}}function jf(r){let e,l,t,n,o,i,a,s,f,u,c;return l=new Pe({props:{key:"workflows.n-selected",count:r[1]}}),a=new Pe({props:{key:"workflows.select-all",count:r[6].count}}),{c(){e=N("span"),E(l.$$.fragment),t=F(),n=N("span"),o=q("(or "),i=N("button"),E(a.$$.fragment),s=q(")"),this.h()},l(_){e=A(_,"SPAN",{class:!0});var m=W(e);T(l.$$.fragment,m),m.forEach(g),t=V(_),n=A(_,"SPAN",{});var p=W(n);o=U(p,"(or "),i=A(p,"BUTTON",{"data-testid":!0,class:!0});var d=W(i);T(a.$$.fragment,d),d.forEach(g),s=U(p,")"),p.forEach(g),this.h()},h(){S(e,"class","font-semibold"),S(i,"data-testid","select-all-workflows"),S(i,"class","cursor-pointer underline")},m(_,m){I(_,e,m),y(l,e,null),I(_,t,m),I(_,n,m),C(n,o),C(n,i),y(a,i,null),C(n,s),f=!0,u||(c=ce(i,"click",r[13]),u=!0)},p(_,m){const p={};m&2&&(p.count=_[1]),l.$set(p);const d={};m&64&&(d.count=_[6].count),a.$set(d)},i(_){f||(h(l.$$.fragment,_),h(a.$$.fragment,_),f=!0)},o(_){$(l.$$.fragment,_),$(a.$$.fragment,_),f=!1},d(_){_&&g(e),D(l),_&&g(t),_&&g(n),D(a),u=!1,c()}}}function zf(r){let e,l,t;return l=new Pe({props:{key:"workflows.all-selected",count:r[6].count}}),{c(){e=N("span"),E(l.$$.fragment),this.h()},l(n){e=A(n,"SPAN",{class:!0});var o=W(e);T(l.$$.fragment,o),o.forEach(g),this.h()},h(){S(e,"class","font-semibold")},m(n,o){I(n,e,o),y(l,e,null),t=!0},p(n,o){const i={};o&64&&(i.count=n[6].count),l.$set(i)},i(n){t||(h(l.$$.fragment,n),t=!0)},o(n){$(l.$$.fragment,n),t=!1},d(n){n&&g(e),D(l)}}}function bn(r){let e,l;return e=new ur({props:{testId:"bulk-cancel-button",disabled:r[2]||!r[7].length,$$slots:{default:[Kf]},$$scope:{ctx:r}}}),e.$on("click",yu),{c(){E(e.$$.fragment)},l(t){T(e.$$.fragment,t)},m(t,n){y(e,t,n),l=!0},p(t,n){const o={};n&132&&(o.disabled=t[2]||!t[7].length),n&16384&&(o.$$scope={dirty:n,ctx:t}),e.$set(o)},i(t){l||(h(e.$$.fragment,t),l=!0)},o(t){$(e.$$.fragment,t),l=!1},d(t){D(e,t)}}}function Kf(r){let e=P("workflows.request-cancellation")+"",l;return{c(){l=q(e)},l(t){l=U(t,e)},m(t,n){I(t,l,n)},p:K,d(t){t&&g(l)}}}function $n(r){let e,l;return e=new ur({props:{variant:"destructive",testId:"bulk-terminate-button",disabled:r[2],$$slots:{default:[Qf]},$$scope:{ctx:r}}}),e.$on("click",Du),{c(){E(e.$$.fragment)},l(t){T(e.$$.fragment,t)},m(t,n){y(e,t,n),l=!0},p(t,n){const o={};n&4&&(o.disabled=t[2]),n&16384&&(o.$$scope={dirty:n,ctx:t}),e.$set(o)},i(t){l||(h(e.$$.fragment,t),l=!0)},o(t){$(e.$$.fragment,t),l=!1},d(t){D(e,t)}}}function Qf(r){let e=P("workflows.terminate")+"",l;return{c(){l=q(e)},l(t){l=U(t,e)},m(t,n){I(t,l,n)},p:K,d(t){t&&g(l)}}}function Yf(r){let e,l,t,n,o,i;const a=[zf,jf],s=[];function f(_,m){return _[5]?0:1}e=f(r),l=s[e]=a[e](r);let u=r[3]&&bn(r),c=r[4]&&$n(r);return{c(){l.c(),t=F(),n=N("div"),u&&u.c(),o=F(),c&&c.c(),this.h()},l(_){l.l(_),t=V(_),n=A(_,"DIV",{class:!0});var m=W(n);u&&u.l(m),o=V(m),c&&c.l(m),m.forEach(g),this.h()},h(){S(n,"class","ml-4 inline-flex gap-2")},m(_,m){s[e].m(_,m),I(_,t,m),I(_,n,m),u&&u.m(n,null),C(n,o),c&&c.m(n,null),i=!0},p(_,[m]){let p=e;e=f(_),e===p?s[e].p(_,m):(G(),$(s[p],1,1,()=>{s[p]=null}),J(),l=s[e],l?l.p(_,m):(l=s[e]=a[e](_),l.c()),h(l,1),l.m(t.parentNode,t)),_[3]?u?(u.p(_,m),m&8&&h(u,1)):(u=bn(_),u.c(),h(u,1),u.m(n,o)):u&&(G(),$(u,1,1,()=>{u=null}),J()),_[4]?c?(c.p(_,m),m&16&&h(c,1)):(c=$n(_),c.c(),h(c,1),c.m(n,null)):c&&(G(),$(c,1,1,()=>{c=null}),J())},i(_){i||(h(l),h(u),h(c),i=!0)},o(_){$(l),$(u),$(c),i=!1},d(_){s[e].d(_),_&&g(t),_&&g(n),u&&u.d(),c&&c.d()}}}function Gf(r,e,l){let t,n,o,i,a,s,f,u,c;j(r,Te,k=>l(10,i=k)),j(r,De,k=>l(12,s=k)),j(r,Ke,k=>l(5,f=k)),j(r,zn,k=>l(6,u=k)),j(r,cr,k=>l(7,c=k));var _;let{workflows:m}=e,p=$o();j(r,p,k=>l(11,a=k));let d;const b=()=>Lu(m);return r.$$set=k=>{"workflows"in k&&l(0,m=k.workflows)},r.$$.update=()=>{r.$$.dirty&4608&&l(1,d=l(9,_=s==null?void 0:s.length)!==null&&_!==void 0?_:0),r.$$.dirty&1024&&l(4,t=Nr(i.data.settings)),r.$$.dirty&1024&&l(3,n=Ar(i.data.settings)),r.$$.dirty&3072&&l(2,o=a.namespaceWriteDisabled(i.params.namespace))},[m,d,o,n,t,f,u,c,p,_,i,a,s,b]}class Jf extends re{constructor(e){super(),oe(this,e,Gf,Yf,se,{workflows:0})}}function kn(r){let e,l,t,n;function o(a){r[13](a)}let i={label:r[4],labelHidden:!0,id:"select-visible-workflows","data-testid":"batch-actions-checkbox",onDark:!0,hoverable:!0,indeterminate:r[5]};return r[7]!==void 0&&(i.checked=r[7]),l=new Mt({props:i}),ie.push(()=>fe(l,"checked",o)),l.$on("change",r[9]),{c(){e=N("th"),E(l.$$.fragment),this.h()},l(a){e=A(a,"TH",{class:!0});var s=W(e);T(l.$$.fragment,s),s.forEach(g),this.h()},h(){S(e,"class","batch-actions-checkbox-table-cell svelte-1nquu83")},m(a,s){I(a,e,s),y(l,e,null),n=!0},p(a,s){const f={};s&16&&(f.label=a[4]),s&32&&(f.indeterminate=a[5]),!t&&s&128&&(t=!0,f.checked=a[7],ue(()=>t=!1)),l.$set(f)},i(a){n||(h(l.$$.fragment,a),n=!0)},o(a){$(l.$$.fragment,a),n=!1},d(a){a&&g(e),D(l)}}}function Xf(r){let e;const l=r[12].default,t=he(l,r,r[11],null);return{c(){t&&t.c()},l(n){t&&t.l(n)},m(n,o){t&&t.m(n,o),e=!0},p(n,o){t&&t.p&&(!e||o&2048)&&ge(t,l,n,n[11],e?$e(l,n[11],o,null):be(n[11]),null)},i(n){e||(h(t,n),e=!0)},o(n){$(t,n),e=!1},d(n){t&&t.d(n)}}}function Zf(r){let e,l,t;return l=new Jf({props:{workflows:r[0]}}),{c(){e=N("th"),E(l.$$.fragment),this.h()},l(n){e=A(n,"TH",{class:!0,colspan:!0});var o=W(e);T(l.$$.fragment,o),o.forEach(g),this.h()},h(){S(e,"class","batch-actions-table-cell svelte-1nquu83"),S(e,"colspan",r[3])},m(n,o){I(n,e,o),y(l,e,null),t=!0},p(n,o){const i={};o&1&&(i.workflows=n[0]),l.$set(i),(!t||o&8)&&S(e,"colspan",n[3])},i(n){t||(h(l.$$.fragment,n),t=!0)},o(n){$(l.$$.fragment,n),t=!1},d(n){n&&g(e),D(l)}}}function xf(r){let e,l,t,n,o,i,a,s,f=!r[1]&&r[6]&&kn(r);const u=[Zf,Xf],c=[];function _(m,p){return m[6]&&m[8]?0:1}return t=_(r),n=c[t]=u[t](r),a=new Le({props:{"data-testid":"workflows-summary-table-configuration-button",icon:"vertical-ellipsis",label:P("workflows.open-configure-workflows")}}),a.$on("click",function(){Rn(r[2])&&r[2].apply(this,arguments)}),{c(){e=N("tr"),f&&f.c(),l=F(),n.c(),o=F(),i=N("th"),E(a.$$.fragment),this.h()},l(m){e=A(m,"TR",{});var p=W(e);f&&f.l(p),l=V(p),n.l(p),o=V(p),i=A(p,"TH",{class:!0});var d=W(i);T(a.$$.fragment,d),d.forEach(g),p.forEach(g),this.h()},h(){S(i,"class","configuration-button-table-cell svelte-1nquu83")},m(m,p){I(m,e,p),f&&f.m(e,null),C(e,l),c[t].m(e,null),C(e,o),C(e,i),y(a,i,null),s=!0},p(m,[p]){r=m,!r[1]&&r[6]?f?(f.p(r,p),p&66&&h(f,1)):(f=kn(r),f.c(),h(f,1),f.m(e,l)):f&&(G(),$(f,1,1,()=>{f=null}),J());let d=t;t=_(r),t===d?c[t].p(r,p):(G(),$(c[d],1,1,()=>{c[d]=null}),J(),n=c[t],n?n.p(r,p):(n=c[t]=u[t](r),n.c()),h(n,1),n.m(e,o))},i(m){s||(h(f),h(n),h(a.$$.fragment,m),s=!0)},o(m){$(f),$(n),$(a.$$.fragment,m),s=!1},d(m){m&&g(e),f&&f.d(),c[t].d(),D(a)}}}function eu(r,e,l){let t,n,o,i,a,s;j(r,De,k=>l(10,o=k)),j(r,fr,k=>l(6,i=k)),j(r,ft,k=>l(7,a=k)),j(r,Eu,k=>l(8,s=k));let{$$slots:f={},$$scope:u}=e,{workflows:c}=e,{empty:_}=e,{onClickConfigure:m=K}=e,{columnsCount:p}=e;const d=k=>{const{checked:w}=k.detail;Bu(w,c)};function b(k){a=k,ft.set(a)}return r.$$set=k=>{"workflows"in k&&l(0,c=k.workflows),"empty"in k&&l(1,_=k.empty),"onClickConfigure"in k&&l(2,m=k.onClickConfigure),"columnsCount"in k&&l(3,p=k.columnsCount),"$$scope"in k&&l(11,u=k.$$scope)},r.$$.update=()=>{r.$$.dirty&1025&&l(5,t=o.length>0&&o.lengthfe(l,"group",o)),{c(){e=N("td"),E(l.$$.fragment),this.h()},l(a){e=A(a,"TD",{class:!0});var s=W(e);T(l.$$.fragment,s),s.forEach(g),this.h()},h(){S(e,"class","px-2")},m(a,s){I(a,e,s),y(l,e,null),n=!0},p(a,s){const f={};s&4&&(f.label=a[2]),s&1&&(f.value=a[0]),s&32&&(f.disabled=a[5]),s&4&&(f["aria-label"]=a[2]),!t&&s&16&&(t=!0,f.group=a[4],ue(()=>t=!1)),l.$set(f)},i(a){n||(h(l.$$.fragment,a),n=!0)},o(a){$(l.$$.fragment,a),n=!1},d(a){a&&g(e),D(l)}}}function lu(r){let e,l,t,n,o,i=!r[1]&&r[3]&&wn(r);const a=r[7].default,s=he(a,r,r[6],null);return{c(){e=N("tr"),i&&i.c(),l=F(),s&&s.c(),t=F(),n=N("td"),this.h()},l(f){e=A(f,"TR",{"data-testid":!0});var u=W(e);i&&i.l(u),l=V(u),s&&s.l(u),t=V(u),n=A(u,"TD",{}),W(n).forEach(g),u.forEach(g),this.h()},h(){S(e,"data-testid","workflows-summary-configurable-table-row"),me(e,"empty",r[1])},m(f,u){I(f,e,u),i&&i.m(e,null),C(e,l),s&&s.m(e,null),C(e,t),C(e,n),o=!0},p(f,[u]){!f[1]&&f[3]?i?(i.p(f,u),u&10&&h(i,1)):(i=wn(f),i.c(),h(i,1),i.m(e,l)):i&&(G(),$(i,1,1,()=>{i=null}),J()),s&&s.p&&(!o||u&64)&&ge(s,a,f,f[6],o?$e(a,f[6],u,null):be(f[6]),null),(!o||u&2)&&me(e,"empty",f[1])},i(f){o||(h(i),h(s,f),o=!0)},o(f){$(i),$(s,f),o=!1},d(f){f&&g(e),i&&i.d(),s&&s.d(f)}}}function nu(r,e,l){let t,n,o,i;j(r,fr,_=>l(3,n=_)),j(r,De,_=>l(4,o=_)),j(r,Ke,_=>l(5,i=_));let{$$slots:a={},$$scope:s}=e,{workflow:f=void 0}=e,{empty:u=!1}=e;function c(_){o=_,De.set(o)}return r.$$set=_=>{"workflow"in _&&l(0,f=_.workflow),"empty"in _&&l(1,u=_.empty),"$$scope"in _&&l(6,s=_.$$scope)},r.$$.update=()=>{r.$$.dirty&1&&l(2,t=P("workflows.select-workflow",{workflow:f==null?void 0:f.id}))},[f,u,t,n,o,i,s,a,c]}class ru extends re{constructor(e){super(),oe(this,e,nu,lu,se,{workflow:0,empty:1})}}function vn(r,e,l){const t=r.slice();return t[18]=e[l],t}function In(r,e,l){const t=r.slice();return t[15]=e[l],t}function En(r,e,l){const t=r.slice();return t[15]=e[l],t}const ou=r=>({}),Tn=r=>({slot:"cloud"});function yn(r){let e,l;return e=new Ff({props:{workflow:r[18],column:r[15]}}),{c(){E(e.$$.fragment)},l(t){T(e.$$.fragment,t)},m(t,n){y(e,t,n),l=!0},p(t,n){const o={};n&16384&&(o.workflow=t[18]),n&16&&(o.column=t[15]),e.$set(o)},i(t){l||(h(e.$$.fragment,t),l=!0)},o(t){$(e.$$.fragment,t),l=!1},d(t){D(e,t)}}}function su(r){let e,l,t=r[4],n=[];for(let i=0;i$(n[i],1,1,()=>{n[i]=null});return{c(){for(let i=0;i$(n[i],1,1,()=>{n[i]=null});return{c(){for(let i=0;i$(n[i],1,1,()=>{n[i]=null});return{c(){for(let i=0;i({14:o}),({visibleItems:o})=>o?16384:0],headers:[uu,({visibleItems:o})=>({14:o}),({visibleItems:o})=>o?16384:0],caption:[iu,({visibleItems:o})=>({14:o}),({visibleItems:o})=>o?16384:0],default:[au,({visibleItems:o})=>({14:o}),({visibleItems:o})=>o?16384:0]},$$scope:{ctx:r}}}),t=new ao({props:{open:r[2],onClick:r[7],position:"right",id:"workflows-summary-table-configuration-drawer",dark:!1,title:P("workflows.configure-workflows"),closeButtonLabel:P("workflows.close-configure-workflows"),$$slots:{subtitle:[_u],default:[mu]},$$scope:{ctx:r}}}),{c(){E(e.$$.fragment),l=F(),E(t.$$.fragment)},l(o){T(e.$$.fragment,o),l=V(o),T(t.$$.fragment,o)},m(o,i){y(e,o,i),I(o,l,i),y(t,o,i),n=!0},p(o,[i]){const a={};i&32&&(a.updating=o[5]),i&2&&(a.items=o[1]),i&24600&&(a.$$scope={dirty:i,ctx:o}),e.$set(a);const s={};i&4&&(s.open=o[2]),i&8193&&(s.$$scope={dirty:i,ctx:o}),t.$set(s)},i(o){n||(h(e.$$.fragment,o),h(t.$$.fragment,o),n=!0)},o(o){$(e.$$.fragment,o),$(t.$$.fragment,o),n=!1},d(o){D(e,o),o&&g(l),D(t,o)}}}function pu(r,e,l){let t,n,o,i,a,s,f;j(r,Ht,k=>l(1,i=k)),j(r,Nt,k=>l(9,a=k)),j(r,Te,k=>l(10,s=k)),j(r,Dt,k=>l(5,f=k));let{$$slots:u={},$$scope:c}=e;var _;let m=!1;const p=()=>{l(2,m=!0)},d=()=>{l(2,m=!1)},b=k=>P("common.go-to-page",{page:k});return r.$$set=k=>{"$$scope"in k&&l(13,c=k.$$scope)},r.$$.update=()=>{r.$$.dirty&1024&&l(0,{namespace:t}=s.params,t),r.$$.dirty&769&&l(4,n=l(8,_=a==null?void 0:a[t])!==null&&_!==void 0?_:[]),r.$$.dirty&2&&l(3,o=i.length===0)},[t,i,m,o,n,f,p,d,_,a,s,u,b,c]}class hu extends re{constructor(e){super(),oe(this,e,pu,du,se,{})}}const gu=r=>{const e=vo({workflows:r},null,2);l(e,`workflows-${r==null?void 0:r.length}-${Date.now()}.json`,"text/plain");function l(t,n,o){const i=document.createElement("a"),a=new Blob([t],{type:o});i.href=URL.createObjectURL(a),i.download=n,i.click()}},bu=r=>({}),Bn=r=>({slot:"cloud"});function $u(r){let e,l;return e=new Pe({props:{key:"workflows.recent-workflows"}}),{c(){E(e.$$.fragment)},l(t){T(e.$$.fragment,t)},m(t,n){y(e,t,n),l=!0},p:K,i(t){l||(h(e.$$.fragment,t),l=!0)},o(t){$(e.$$.fragment,t),l=!1},d(t){D(e,t)}}}function ku(r){let e,l=r[4].count.toLocaleString()+"",t,n,o,i;return o=new Pe({props:{key:"common.workflows-plural",count:r[4].count}}),{c(){e=N("span"),t=q(l),n=F(),E(o.$$.fragment),this.h()},l(a){e=A(a,"SPAN",{"data-testid":!0});var s=W(e);t=U(s,l),s.forEach(g),n=V(a),T(o.$$.fragment,a),this.h()},h(){S(e,"data-testid","workflow-count")},m(a,s){I(a,e,s),C(e,t),I(a,n,s),y(o,a,s),i=!0},p(a,s){(!i||s&16)&&l!==(l=a[4].count.toLocaleString()+"")&&te(t,l);const f={};s&16&&(f.count=a[4].count),o.$set(f)},i(a){i||(h(o.$$.fragment,a),i=!0)},o(a){$(o.$$.fragment,a),i=!1},d(a){a&&g(e),a&&g(n),D(o,a)}}}function wu(r){let e=P("common.download-json")+"",l;return{c(){l=q(e)},l(t){l=U(t,e)},m(t,n){I(t,l,n)},p:K,d(t){t&&g(l)}}}function Sn(r){let e,l;return e=new Lr({}),{c(){E(e.$$.fragment)},l(t){T(e.$$.fragment,t)},m(t,n){y(e,t,n),l=!0},i(t){l||(h(e.$$.fragment,t),l=!0)},o(t){$(e.$$.fragment,t),l=!1},d(t){D(e,t)}}}function vu(r){let e;const l=r[15].cloud,t=he(l,r,r[19],Bn);return{c(){t&&t.c()},l(n){t&&t.l(n)},m(n,o){t&&t.m(n,o),e=!0},p(n,o){t&&t.p&&(!e||o&524288)&&ge(t,l,n,n[19],e?$e(l,n[19],o,bu):be(n[19]),Bn)},i(n){e||(h(t,n),e=!0)},o(n){$(t,n),e=!1},d(n){t&&t.d(n)}}}function Iu(r){let e,l,t,n,o,i,a,s,f,u,c,_,m,p,d,b,k,w,v,L,R,B,M={action:Ze.Terminate,actionableWorkflowsLength:r[1].length,query:r[0]};e=new gl({props:M}),r[16](e),e.$on("confirm",r[7]);let x={action:Ze.Cancel,actionableWorkflowsLength:r[2].length,query:r[0]};t=new gl({props:x}),r[17](t),t.$on("confirm",r[8]);const ee=[ku,$u],Y=[];function O(z,H){return z[3]?0:1}f=O(r),u=Y[f]=ee[f](r),_=new ni({props:{count:r[4].newCount}}),d=new rt({props:{tabindex:0,$$slots:{default:[wu]},$$scope:{ctx:r}}}),d.$on("click",r[18]);let Q=r[6]&&Sn();return v=new Xa({}),R=new hu({props:{$$slots:{cloud:[vu]},$$scope:{ctx:r}}}),{c(){E(e.$$.fragment),l=F(),E(t.$$.fragment),n=F(),o=N("header"),i=N("div"),a=N("div"),s=N("h1"),u.c(),c=F(),E(_.$$.fragment),m=F(),p=N("div"),E(d.$$.fragment),b=F(),Q&&Q.c(),k=F(),w=N("div"),E(v.$$.fragment),L=F(),E(R.$$.fragment),this.h()},l(z){T(e.$$.fragment,z),l=V(z),T(t.$$.fragment,z),n=V(z),o=A(z,"HEADER",{class:!0});var H=W(o);i=A(H,"DIV",{class:!0});var ae=W(i);a=A(ae,"DIV",{});var _e=W(a);s=A(_e,"H1",{class:!0,"data-cy":!0});var de=W(s);u.l(de),c=V(de),T(_.$$.fragment,de),de.forEach(g),_e.forEach(g),m=V(ae),p=A(ae,"DIV",{class:!0});var we=W(p);T(d.$$.fragment,we),we.forEach(g),ae.forEach(g),b=V(H),Q&&Q.l(H),H.forEach(g),k=V(z),w=A(z,"DIV",{class:!0});var Z=W(w);T(v.$$.fragment,Z),Z.forEach(g),L=V(z),T(R.$$.fragment,z),this.h()},h(){S(s,"class","flex items-center gap-2 text-2xl"),S(s,"data-cy","workflows-title"),S(p,"class","flex items-center gap-2 text-sm"),S(i,"class","flex items-center justify-between"),S(o,"class","flex flex-col gap-2"),S(w,"class","flex flex-col gap-2 md:flex-row")},m(z,H){y(e,z,H),I(z,l,H),y(t,z,H),I(z,n,H),I(z,o,H),C(o,i),C(i,a),C(a,s),Y[f].m(s,null),C(s,c),y(_,s,null),C(i,m),C(i,p),y(d,p,null),C(o,b),Q&&Q.m(o,null),I(z,k,H),I(z,w,H),y(v,w,null),I(z,L,H),y(R,z,H),B=!0},p(z,[H]){const ae={};H&2&&(ae.actionableWorkflowsLength=z[1].length),H&1&&(ae.query=z[0]),e.$set(ae);const _e={};H&4&&(_e.actionableWorkflowsLength=z[2].length),H&1&&(_e.query=z[0]),t.$set(_e);let de=f;f=O(z),f===de?Y[f].p(z,H):(G(),$(Y[de],1,1,()=>{Y[de]=null}),J(),u=Y[f],u?u.p(z,H):(u=Y[f]=ee[f](z),u.c()),h(u,1),u.m(s,c));const we={};H&16&&(we.count=z[4].newCount),_.$set(we);const Z={};H&524288&&(Z.$$scope={dirty:H,ctx:z}),d.$set(Z),z[6]?Q?H&64&&h(Q,1):(Q=Sn(),Q.c(),h(Q,1),Q.m(o,null)):Q&&(G(),$(Q,1,1,()=>{Q=null}),J());const ke={};H&524288&&(ke.$$scope={dirty:H,ctx:z}),R.$set(ke)},i(z){B||(h(e.$$.fragment,z),h(t.$$.fragment,z),h(u),h(_.$$.fragment,z),h(d.$$.fragment,z),h(Q),h(v.$$.fragment,z),h(R.$$.fragment,z),B=!0)},o(z){$(e.$$.fragment,z),$(t.$$.fragment,z),$(u),$(_.$$.fragment,z),$(d.$$.fragment,z),$(Q),$(v.$$.fragment,z),$(R.$$.fragment,z),B=!1},d(z){r[16](null),D(e,z),z&&g(l),r[17](null),D(t,z),z&&g(n),z&&g(o),Y[f].d(),D(_),D(d),Q&&Q.d(),z&&g(k),z&&g(w),D(v),z&&g(L),D(R,z)}}}let Ce,Ne;const Ke=He(!1),ft=He(!1),De=He([]),Eu=Ge(De,r=>r.length>0),Tu=Ge(De,r=>r.filter(e=>e.canBeTerminated)),cr=Ge(De,r=>r.filter(e=>e.status==="Running")),yu=()=>{Ne==null||Ne.open()},Du=()=>{Ce==null||Ce.open()},Lu=r=>{Ke.set(!0),De.set([...r])},Bu=(r,e)=>{ft.set(r),Ke&&Ke.set(!1),r?De.set([...e]):De.set([])};function Su(r,e,l){let t,n,o,i,a,s,f=K,u,c=K,_,m,p=K,d,b=K,k,w,v,L,R,B=K,M,x,ee,Y;j(r,Dt,Z=>l(11,i=Z)),j(r,st,Z=>l(12,a=Z)),j(r,Tu,Z=>l(1,s=Z)),j(r,Ke,Z=>l(20,u=Z)),j(r,Te,Z=>l(13,_=Z)),j(r,De,Z=>l(21,m=Z)),j(r,ft,Z=>l(22,d=Z)),j(r,nt,Z=>l(23,k=Z)),j(r,pe,Z=>l(14,w=Z)),j(r,Tt,Z=>l(24,v=Z)),j(r,Et,Z=>l(25,L=Z)),j(r,cr,Z=>l(2,R=Z)),j(r,mt,Z=>l(3,M=Z)),j(r,zn,Z=>l(4,x=Z)),j(r,Ht,Z=>l(5,ee=Z)),j(r,Or,Z=>l(6,Y=Z)),r.$$.on_destroy.push(()=>f()),r.$$.on_destroy.push(()=>c()),r.$$.on_destroy.push(()=>p()),r.$$.on_destroy.push(()=>b()),r.$$.on_destroy.push(()=>B());let{$$slots:O={},$$scope:Q}=e;Hn(()=>{le(Tt,v=_.params.namespace,v),t&&le(pe,w=tr(t,k),w)});const z=()=>{le(Ke,u=!1,u),le(ft,d=!1,d),le(De,m=[],m)},H=async Z=>{var ke;try{const ve={namespace:_.params.namespace,reason:Z.detail.reason,jobId:Z.detail.jobId,...u?{query:o}:{workflows:s}};await ko(ve),Ce==null||Ce.close(),rl.push({message:P("workflows.batch-terminate-all-success"),id:"batch-terminate-success-toast"})}catch(ve){Ce==null||Ce.setError((ke=ve==null?void 0:ve.message)!==null&&ke!==void 0?ke:P("common.unknown-error"))}},ae=async Z=>{var ke;const ve={namespace:_.params.namespace,reason:Z.detail.reason,jobId:Z.detail.jobId,...u?{query:o}:{workflows:s}};try{await wo(ve),Ne==null||Ne.close(),rl.push({message:P("workflows.batch-cancel-all-success"),id:"batch-cancel-success-toast"})}catch(We){Ne==null||Ne.setError((ke=We==null?void 0:We.message)!==null&&ke!==void 0?ke:P("common.unknown-error"))}};function _e(Z){ie[Z?"unshift":"push"](()=>{Ce=Z})}function de(Z){ie[Z?"unshift":"push"](()=>{Ne=Z})}const we=()=>gu(ee);return r.$$set=Z=>{"$$scope"in Z&&l(19,Q=Z.$$scope)},r.$$.update=()=>{r.$$.dirty&8192&&l(9,t=_.url.searchParams.get("query")),r.$$.dirty&512&&t&&le(st,a=t,a),r.$$.dirty&8192&&l(10,n=_.url.searchParams.toString()),r.$$.dirty&1024&&le(Et,L=n,L),r.$$.dirty&16384&&(w.length||le(st,a="",a)),r.$$.dirty&4096&&l(0,o=a||'ExecutionStatus="Running"'),r.$$.dirty&2048&&i&&z()},[o,s,R,M,x,ee,Y,H,ae,t,n,i,a,_,w,O,_e,de,we,Q]}class Cu extends re{constructor(e){super(),oe(this,e,Su,Iu,se,{})}}function Cn(r,e,l){const t=r.slice();return t[16]=e[l][0],t[17]=e[l][1],t}function Nn(r,e,l){const t=r.slice();return t[17]=e[l],t}function Nu(r){let e,l;return e=new rt({props:{href:r[2].url.pathname+"?search=advanced",$$slots:{default:[Pu]},$$scope:{ctx:r}}}),e.$on("click",r[6]("advanced")),{c(){E(e.$$.fragment)},l(t){T(e.$$.fragment,t)},m(t,n){y(e,t,n),l=!0},p(t,n){const o={};n&4&&(o.href=t[2].url.pathname+"?search=advanced"),n&4194304&&(o.$$scope={dirty:n,ctx:t}),e.$set(o)},i(t){l||(h(e.$$.fragment,t),l=!0)},o(t){$(e.$$.fragment,t),l=!1},d(t){D(e,t)}}}function Au(r){let e,l;return e=new rt({props:{href:r[2].url.pathname+"?search=basic",$$slots:{default:[Ou]},$$scope:{ctx:r}}}),e.$on("click",r[6]("basic")),{c(){E(e.$$.fragment)},l(t){T(e.$$.fragment,t)},m(t,n){y(e,t,n),l=!0},p(t,n){const o={};n&4&&(o.href=t[2].url.pathname+"?search=basic"),n&4194304&&(o.$$scope={dirty:n,ctx:t}),e.$set(o)},i(t){l||(h(e.$$.fragment,t),l=!0)},o(t){$(e.$$.fragment,t),l=!1},d(t){D(e,t)}}}function Pu(r){let e=P("workflows.advanced-search")+"",l;return{c(){l=q(e)},l(t){l=U(t,e)},m(t,n){I(t,l,n)},p:K,d(t){t&&g(l)}}}function Ou(r){let e=P("workflows.basic-search")+"",l;return{c(){l=q(e)},l(t){l=U(t,e)},m(t,n){I(t,l,n)},p:K,d(t){t&&g(l)}}}function Fu(r){let e,l,t,n,o,i,a,s,f,u,c,_,m,p,d,b;function k(O){r[9](O)}let w={icon:"search",type:"search",id:"workflow-id-filter",placeholder:P("common.workflow-id"),label:P("common.workflow-id"),labelHidden:!0};r[3].workflowId!==void 0&&(w.value=r[3].workflowId),l=new ye({props:w}),ie.push(()=>fe(l,"value",k)),l.$on("input",r[8]);function v(O){r[10](O)}let L={icon:"search",type:"search",id:"workflow-type-filter",placeholder:P("common.workflow-type"),label:P("common.workflow-type"),labelHidden:!0};r[3].workflowType!==void 0&&(L.value=r[3].workflowType),o=new ye({props:L}),ie.push(()=>fe(o,"value",v)),o.$on("input",r[8]);function R(O){r[11](O)}let B={id:"time-range-filter",label:P("common.time-range"),$$slots:{default:[Hu]},$$scope:{ctx:r}};r[3].timeRange!==void 0&&(B.value=r[3].timeRange),s=new Pt({props:B}),ie.push(()=>fe(s,"value",R)),s.$on("change",r[8]);function M(O){r[12](O)}let x={id:"execution-status-filter",label:P("common.status"),$$slots:{default:[Uu]},$$scope:{ctx:r}};r[3].executionStatus!==void 0&&(x.value=r[3].executionStatus),c=new Pt({props:x}),ie.push(()=>fe(c,"value",M)),c.$on("change",r[8]);function ee(O){r[13](O)}let Y={id:"filter-by-relative-time",label:P("common.time-format"),$$slots:{default:[Qu]},$$scope:{ctx:r}};return r[4]!==void 0&&(Y.value=r[4]),p=new Pt({props:Y}),ie.push(()=>fe(p,"value",ee)),{c(){e=N("div"),E(l.$$.fragment),n=F(),E(o.$$.fragment),a=F(),E(s.$$.fragment),u=F(),E(c.$$.fragment),m=F(),E(p.$$.fragment),this.h()},l(O){e=A(O,"DIV",{role:!0,class:!0});var Q=W(e);T(l.$$.fragment,Q),n=V(Q),T(o.$$.fragment,Q),a=V(Q),T(s.$$.fragment,Q),u=V(Q),T(c.$$.fragment,Q),m=V(Q),T(p.$$.fragment,Q),Q.forEach(g),this.h()},h(){S(e,"role","search"),S(e,"class","grid grid-cols-1 gap-4 sm:grid-cols-2 md:grid-cols-5")},m(O,Q){I(O,e,Q),y(l,e,null),C(e,n),y(o,e,null),C(e,a),y(s,e,null),C(e,u),y(c,e,null),C(e,m),y(p,e,null),b=!0},p(O,Q){const z={};!t&&Q&8&&(t=!0,z.value=O[3].workflowId,ue(()=>t=!1)),l.$set(z);const H={};!i&&Q&8&&(i=!0,H.value=O[3].workflowType,ue(()=>i=!1)),o.$set(H);const ae={};Q&4194312&&(ae.$$scope={dirty:Q,ctx:O}),!f&&Q&8&&(f=!0,ae.value=O[3].timeRange,ue(()=>f=!1)),s.$set(ae);const _e={};Q&4194304&&(_e.$$scope={dirty:Q,ctx:O}),!_&&Q&8&&(_=!0,_e.value=O[3].executionStatus,ue(()=>_=!1)),c.$set(_e);const de={};Q&4194304&&(de.$$scope={dirty:Q,ctx:O}),!d&&Q&16&&(d=!0,de.value=O[4],ue(()=>d=!1)),p.$set(de)},i(O){b||(h(l.$$.fragment,O),h(o.$$.fragment,O),h(s.$$.fragment,O),h(c.$$.fragment,O),h(p.$$.fragment,O),b=!0)},o(O){$(l.$$.fragment,O),$(o.$$.fragment,O),$(s.$$.fragment,O),$(c.$$.fragment,O),$(p.$$.fragment,O),b=!1},d(O){O&&g(e),D(l),D(o),D(s),D(c),D(p)}}}function Vu(r){let e,l;return e=new Wr({props:{icon:!0,id:"advanced-search",placeholder:P("common.query"),value:r[1]}}),e.$on("submit",r[7]),{c(){E(e.$$.fragment)},l(t){T(e.$$.fragment,t)},m(t,n){y(e,t,n),l=!0},p(t,n){const o={};n&2&&(o.value=t[1]),e.$set(o)},i(t){l||(h(e.$$.fragment,t),l=!0)},o(t){$(e.$$.fragment,t),l=!1},d(t){D(e,t)}}}function Wu(r){let e;return{c(){e=q("All")},l(l){e=U(l,"All")},m(l,t){I(l,e,t)},d(l){l&&g(e)}}}function An(r){let e,l;return e=new Ye({props:{value:r[3].timeRange,$$slots:{default:[Ru]},$$scope:{ctx:r}}}),{c(){E(e.$$.fragment)},l(t){T(e.$$.fragment,t)},m(t,n){y(e,t,n),l=!0},p(t,n){const o={};n&8&&(o.value=t[3].timeRange),n&4194312&&(o.$$scope={dirty:n,ctx:t}),e.$set(o)},i(t){l||(h(e.$$.fragment,t),l=!0)},o(t){$(e.$$.fragment,t),l=!1},d(t){D(e,t)}}}function Ru(r){let e=r[3].timeRange+"",l;return{c(){l=q(e)},l(t){l=U(t,e)},m(t,n){I(t,l,n)},p(t,n){n&8&&e!==(e=t[3].timeRange+"")&&te(l,e)},d(t){t&&g(l)}}}function Mu(r){let e=r[17]+"",l;return{c(){l=q(e)},l(t){l=U(t,e)},m(t,n){I(t,l,n)},p:K,d(t){t&&g(l)}}}function Pn(r){let e,l;return e=new Ye({props:{value:r[17],$$slots:{default:[Mu]},$$scope:{ctx:r}}}),{c(){E(e.$$.fragment)},l(t){T(e.$$.fragment,t)},m(t,n){y(e,t,n),l=!0},p(t,n){const o={};n&4194304&&(o.$$scope={dirty:n,ctx:t}),e.$set(o)},i(t){l||(h(e.$$.fragment,t),l=!0)},o(t){$(e.$$.fragment,t),l=!1},d(t){D(e,t)}}}function Hu(r){let e,l,t=r[3].timeRange&&!$t.includes(r[3].timeRange),n,o,i;e=new Ye({props:{value:null,$$slots:{default:[Wu]},$$scope:{ctx:r}}});let a=t&&An(r),s=$t,f=[];for(let c=0;c$(f[c],1,1,()=>{f[c]=null});return{c(){E(e.$$.fragment),l=F(),a&&a.c(),n=F();for(let c=0;c{a=null}),J()),_&0){s=$t;let p;for(p=0;pa[16];for(let a=0;a{u[k]=null}),J(),n=u[t],n?n.p(d,b):(n=u[t]=f[t](d),n.c()),h(n,1),n.m(l,null));let w=i;i=p(d),i===w?m[i].p(d,b):(G(),$(m[w],1,1,()=>{m[w]=null}),J(),a=m[i],a?a.p(d,b):(a=m[i]=_[i](d),a.c()),h(a,1),a.m(e,null))},i(d){s||(h(n),h(a),s=!0)},o(d){$(n),$(a),s=!1},d(d){d&&g(e),u[t].d(),m[i].d()}}}function Gu(r,e,l){let t,n,o,i;j(r,Te,v=>l(2,o=v)),j(r,at,v=>l(4,i=v));const a=xe();let{searchType:s}=e;const f=ll({timeRange:"All"}),u={All:null,Running:"Running","Timed Out":"TimedOut",Completed:"Completed",Failed:"Failed","Continued as New":"ContinuedAsNew",Canceled:"Canceled",Terminated:"Terminated"},c=v=>()=>{l(0,s=v)},_=v=>{a("search");const L=new FormData(v.target);l(1,t=String(L.get("query"))),l(3,n=sl(t)),Ae({url:o.url,parameter:"query",value:t})},m=Kn(()=>{a("search"),l(1,t=ll(n)),Ae({url:o.url,parameter:"query",value:t,allowEmpty:!0})},300);function p(v){r.$$.not_equal(n.workflowId,v)&&(n.workflowId=v,l(3,n),l(1,t),l(2,o))}function d(v){r.$$.not_equal(n.workflowType,v)&&(n.workflowType=v,l(3,n),l(1,t),l(2,o))}function b(v){r.$$.not_equal(n.timeRange,v)&&(n.timeRange=v,l(3,n),l(1,t),l(2,o))}function k(v){r.$$.not_equal(n.executionStatus,v)&&(n.executionStatus=v,l(3,n),l(1,t),l(2,o))}function w(v){i=v,at.set(i)}return r.$$set=v=>{"searchType"in v&&l(0,s=v.searchType)},r.$$.update=()=>{r.$$.dirty&4&&l(1,t=o.url.searchParams.get("query")),r.$$.dirty&2&&l(3,n=sl(t??f))},[s,t,o,n,i,u,c,_,m,p,d,b,k,w]}class Ju extends re{constructor(e){super(),oe(this,e,Gu,Yu,se,{searchType:0})}}const Xu=r=>Xr(r)?r==="basic"||r==="advanced":!1,Zu=r=>{const e=r.searchParams.get("search");return Xu(e)?e:(r.searchParams.set("search","basic"),"basic")};function Fn(r,e,l){const t=r.slice();return t[13]=e[l],t}function Vn(r){let e,l,t,n,o,i,a,s,f,u;const c=[ec,xu],_=[];function m(k,w){return k[4]?0:1}t=m(r),n=_[t]=c[t](r);const p=[lc,tc],d=[];function b(k,w){return k[4]?0:1}return a=b(r),s=d[a]=p[a](r),{c(){e=N("tr"),l=N("td"),n.c(),o=F(),i=N("td"),s.c(),f=F(),this.h()},l(k){e=A(k,"TR",{});var w=W(e);l=A(w,"TD",{colspan:!0,class:!0});var v=W(l);n.l(v),v.forEach(g),o=V(w),i=A(w,"TD",{colspan:!0,class:!0});var L=W(i);s.l(L),L.forEach(g),f=V(w),w.forEach(g),this.h()},h(){S(l,"colspan","5"),S(l,"class","xl:hidden"),S(i,"colspan","7"),S(i,"class","hidden xl:table-cell")},m(k,w){I(k,e,w),C(e,l),_[t].m(l,null),C(e,o),C(e,i),d[a].m(i,null),C(e,f),u=!0},p(k,w){let v=t;t=m(k),t===v?_[t].p(k,w):(G(),$(_[v],1,1,()=>{_[v]=null}),J(),n=_[t],n?n.p(k,w):(n=_[t]=c[t](k),n.c()),h(n,1),n.m(l,null));let L=a;a=b(k),a===L?d[a].p(k,w):(G(),$(d[L],1,1,()=>{d[L]=null}),J(),s=d[a],s?s.p(k,w):(s=d[a]=p[a](k),s.c()),h(s,1),s.m(i,null))},i(k){u||(h(n),h(s),u=!0)},o(k){$(n),$(s),u=!1},d(k){k&&g(e),_[t].d(),d[a].d()}}}function xu(r){let e,l;return e=new Zn({props:{title:"No Workflows Found",content:r[6],error:r[5]}}),{c(){E(e.$$.fragment)},l(t){T(e.$$.fragment,t)},m(t,n){y(e,t,n),l=!0},p(t,n){const o={};n&32&&(o.error=t[5]),e.$set(o)},i(t){l||(h(e.$$.fragment,t),l=!0)},o(t){$(e.$$.fragment,t),l=!1},d(t){D(e,t)}}}function ec(r){let e,l;return e=new Ut({}),{c(){E(e.$$.fragment)},l(t){T(e.$$.fragment,t)},m(t,n){y(e,t,n),l=!0},p:K,i(t){l||(h(e.$$.fragment,t),l=!0)},o(t){$(e.$$.fragment,t),l=!1},d(t){D(e,t)}}}function tc(r){let e,l;return e=new Zn({props:{title:"No Workflows Found",content:r[6],error:r[5]}}),{c(){E(e.$$.fragment)},l(t){T(e.$$.fragment,t)},m(t,n){y(e,t,n),l=!0},p(t,n){const o={};n&32&&(o.error=t[5]),e.$set(o)},i(t){l||(h(e.$$.fragment,t),l=!0)},o(t){$(e.$$.fragment,t),l=!1},d(t){D(e,t)}}}function lc(r){let e,l;return e=new Ut({}),{c(){E(e.$$.fragment)},l(t){T(e.$$.fragment,t)},m(t,n){y(e,t,n),l=!0},p:K,i(t){l||(h(e.$$.fragment,t),l=!0)},o(t){$(e.$$.fragment,t),l=!1},d(t){D(e,t)}}}function Wn(r){let e,l;return e=new Mr({props:{workflow:r[13],namespace:r[1].params.namespace}}),{c(){E(e.$$.fragment)},l(t){T(e.$$.fragment,t)},m(t,n){y(e,t,n),l=!0},p(t,n){const o={};n&4096&&(o.workflow=t[13]),n&2&&(o.namespace=t[1].params.namespace),e.$set(o)},i(t){l||(h(e.$$.fragment,t),l=!0)},o(t){$(e.$$.fragment,t),l=!1},d(t){D(e,t)}}}function nc(r){let e,l,t=r[12],n=[];for(let a=0;a$(n[a],1,1,()=>{n[a]=null});let i=null;return t.length||(i=Vn(r)),{c(){for(let a=0;a{i=null}),J()):(i=Vn(a),i.c(),h(i,1),i.m(e.parentNode,e))}},i(a){if(!l){for(let s=0;sfe(d,"searchType",L)),w=new Io({props:{items:r[2],"aria-label":P("workflows.recent-workflows"),pageSizeSelectLabel:P("common.per-page"),previousButtonLabel:P("common.previous"),nextButtonLabel:P("common.next"),$$slots:{default:[rc,({visibleItems:B})=>({12:B}),({visibleItems:B})=>B?4096:0]},$$scope:{ctx:r}}}),{c(){e=N("header"),l=N("div"),t=N("h1"),o=q(n),i=F(),a=N("div"),s=N("p"),u=q(f),c=F(),_=N("div"),E(m.$$.fragment),p=F(),E(d.$$.fragment),k=F(),E(w.$$.fragment),this.h()},l(B){e=A(B,"HEADER",{class:!0});var M=W(e);l=A(M,"DIV",{});var x=W(l);t=A(x,"H1",{class:!0,"data-testid":!0});var ee=W(t);o=U(ee,n),ee.forEach(g),i=V(x),a=A(x,"DIV",{class:!0});var Y=W(a);s=A(Y,"P",{"data-testid":!0});var O=W(s);u=U(O,f),O.forEach(g),Y.forEach(g),x.forEach(g),c=V(M),_=A(M,"DIV",{});var Q=W(_);T(m.$$.fragment,Q),Q.forEach(g),M.forEach(g),p=V(B),T(d.$$.fragment,B),k=V(B),T(w.$$.fragment,B),this.h()},h(){S(t,"class","text-2xl"),S(t,"data-testid","namespace-title"),S(s,"data-testid","namespace-name"),S(a,"class","flex items-center gap-2 text-sm"),S(e,"class","mb-2 flex items-center justify-between")},m(B,M){I(B,e,M),C(e,l),C(l,t),C(t,o),C(l,i),C(l,a),C(a,s),C(s,u),C(e,c),C(e,_),y(m,_,null),I(B,p,M),y(d,B,M),I(B,k,M),y(w,B,M),v=!0},p(B,[M]){(!v||M&2)&&f!==(f=B[1].params.namespace+"")&&te(u,f);const x={};!b&&M&1&&(b=!0,x.searchType=B[0],ue(()=>b=!1)),d.$set(x);const ee={};M&4&&(ee.items=B[2]),M&69690&&(ee.$$scope={dirty:M,ctx:B}),w.$set(ee)},i(B){v||(h(m.$$.fragment,B),h(d.$$.fragment,B),h(w.$$.fragment,B),v=!0)},o(B){$(m.$$.fragment,B),$(d.$$.fragment,B),$(w.$$.fragment,B),v=!1},d(B){B&&g(e),D(m),B&&g(p),D(d,B),B&&g(k),D(w,B)}}}function sc(r,e,l){let t,n,o,i,a,s,f,u;j(r,Te,d=>l(1,t=d)),j(r,Et,d=>l(9,n=d)),j(r,ze,d=>l(10,o=d)),j(r,Tt,d=>l(11,i=d)),j(r,Ht,d=>l(2,a=d)),j(r,Dt,d=>l(3,s=d)),j(r,Un,d=>l(4,f=d)),j(r,jn,d=>l(5,u=d));let c=Zu(t.url);const _=c==="advanced"?"Please check your syntax and try again.":"If you have filters applied, try adjusting them.";Hn(()=>{le(Tt,i=t.params.namespace,i)});const m=()=>{le(ze,o=Date.now(),o)};Ir(()=>{le(Et,n=t.url.searchParams.toString(),n)});function p(d){c=d,l(0,c)}return[c,t,a,s,f,u,_,m,p]}class ac extends re{constructor(e){super(),oe(this,e,sc,oc,se,{})}}function ic(r){let e,l;return e=new Cu({}),{c(){E(e.$$.fragment)},l(t){T(e.$$.fragment,t)},m(t,n){y(e,t,n),l=!0},i(t){l||(h(e.$$.fragment,t),l=!0)},o(t){$(e.$$.fragment,t),l=!1},d(t){D(e,t)}}}function fc(r){let e,l;return e=new ac({props:{slot:"fallback"}}),{c(){E(e.$$.fragment)},l(t){T(e.$$.fragment,t)},m(t,n){y(e,t,n),l=!0},p:K,i(t){l||(h(e.$$.fragment,t),l=!0)},o(t){$(e.$$.fragment,t),l=!1},d(t){D(e,t)}}}function uc(r){let e,l,t,n;return e=new Tr({props:{title:`Workflows | ${r[0].params.namespace}`,url:r[0].url.href}}),t=new Oo({props:{$$slots:{fallback:[fc],default:[ic]},$$scope:{ctx:r}}}),{c(){E(e.$$.fragment),l=F(),E(t.$$.fragment)},l(o){T(e.$$.fragment,o),l=V(o),T(t.$$.fragment,o)},m(o,i){y(e,o,i),I(o,l,i),y(t,o,i),n=!0},p(o,[i]){const a={};i&1&&(a.title=`Workflows | ${o[0].params.namespace}`),i&1&&(a.url=o[0].url.href),e.$set(a);const s={};i&2&&(s.$$scope={dirty:i,ctx:o}),t.$set(s)},i(o){n||(h(e.$$.fragment,o),h(t.$$.fragment,o),n=!0)},o(o){$(e.$$.fragment,o),$(t.$$.fragment,o),n=!1},d(o){D(e,o),o&&g(l),D(t,o)}}}function cc(r,e,l){let t;return j(r,Te,n=>l(0,t=n)),[t]}class cm extends re{constructor(e){super(),oe(this,e,cc,uc,se,{})}}export{cm as component,fm as universal}; diff --git a/ui/assets/local/_app/immutable/nodes/28.db150666.js b/ui/assets/local/_app/immutable/nodes/28.db150666.js deleted file mode 100644 index ac96795189..0000000000 --- a/ui/assets/local/_app/immutable/nodes/28.db150666.js +++ /dev/null @@ -1,3 +0,0 @@ -import{S as re,b as oe,a as se,e as X,f as I,z as G,g as $,h as J,j as h,k as g,K as j,G as he,H as ge,I as be,J as $e,A as ie,a0 as fe,C as E,D as T,E as y,a1 as ue,F as D,M as xe,m as N,p as A,q as W,u as S,c as F,d as V,L as C,w as q,x as U,y as te,ac as et,Q as ce,ag as ot,a3 as Ue,a4 as je,n as K,a5 as le,af as Fe,a7 as Ee,aa as ut,at as gr,P as me,i as Rn,a2 as br,r as ct,V as Me,ab as yt,Z as Zt,_ as xt,aq as Mn,N as vt,U as It,au as $r,ae as kr,l as wr,ak as vr,a8 as el,v as tl,s as Vt,$ as At,o as Hn,a6 as Ir}from"../chunks/index.4e2fcbc7.js";import{p as Te}from"../chunks/stores.14a97433.js";import{a as mt,i as Er,g as ll}from"../chunks/workflow-service.4d66b505.js";import{P as Tr}from"../chunks/page-title.f9a44b80.js";import{w as He,j as Ge}from"../chunks/singletons.fb5f332e.js";import{I as ye}from"../chunks/input.0bde2076.js";import{M as yr}from"../chunks/modal.05d30376.js";import{t as P}from"../chunks/translate.d23a91ae.js";import{T as Pe,i as Dr,w as nl,W as Lr}from"../chunks/translate.ac8f94f7.js";import{A as Ze}from"../chunks/workflow-actions.6f88149c.js";import{a as Br}from"../chunks/auth-user.9757f5e9.js";import{g as Sr,f as Cr,C as Mt,a as Nr,w as Ar}from"../chunks/workflow-terminate-enabled.cbb14ee6.js";import{v as Pr,t as rl}from"../chunks/toaster.8a4adbc8.js";import{f as tt,a as qn}from"../chunks/index.6509bfd4.js";import{B as lt}from"../chunks/button.a45b0e55.js";import{w as pe,s as ol}from"../chunks/filters.e20189d3.js";import{r as ze,b as st,l as Un,u as Dt,c as jn,a as zn,d as Ht,w as Et,g as Or}from"../chunks/workflows.73556738.js";import{t as Fr,j as Kn,F as Vr,b as sl,S as Wr,W as Rr,a as Mr}from"../chunks/index.17ebf758.js";import{r as Lt,t as Hr,z as Bt,l as qr,m as Ur,n as Wt,o as jr,A as bt,B as zr,C as al,u as $t}from"../chunks/format-time.4f091e0e.js";import{i as il,t as at,c as Kr,d as Qr,e as fl,r as Qn,b as Ie}from"../chunks/time-format.88312c30.js";import{l as ul,e as Yr,d as Gr,m as Jr,a as Xr}from"../chunks/has.183130b0.js";import{u as Ae}from"../chunks/update-query-parameters.dc7e7d75.js";import{T as Zr}from"../chunks/toggle-switch.3a41e457.js";import{s as nt,b as xr,c as Yn,i as eo,w as to}from"../chunks/search-attributes.5d6df3ed.js";import{M as _t,a as dt,b as pt,d as Oe,c as lo}from"../chunks/menu.69cccace.js";import{I as Le}from"../chunks/icon-button.92948dd7.js";import{w as cl,a as no,b as ml,S as ro,O as oo}from"../chunks/option.6ac49d4b.js";import{I as Ve}from"../chunks/icon.e8aa24c8.js";import{M as St}from"../chunks/menu-divider.ada09983.js";import{a as Gn}from"../chunks/radio-input.df4cce6e.js";import{T as so,a as _l}from"../chunks/toggle-buttons.781b6924.js";import{W as qt}from"../chunks/workflow-status.781aff44.js";import{D as ao}from"../chunks/drawer.802d9486.js";import{A as io}from"../chunks/alert.9612e524.js";import{L as rt}from"../chunks/link.6803bb00.js";import{L as Ut}from"../chunks/loading.95801385.js";import{P as fo}from"../chunks/table-header-row.fec98b60.js";import{a as wt,d as dl,c as kt,b as uo,M as pl,o as Jn,F as co}from"../chunks/pagination.ee9074bd.js";import{n as mo,l as Tt}from"../chunks/namespaces.85dd397c.js";import{p as Xn}from"../chunks/persist-store.2e269d08.js";import{B as _o}from"../chunks/badge.96e01a15.js";import{g as po}from"../chunks/route-for.80613b91.js";import{i as ho}from"../chunks/version-check.d006b302.js";import{t as go,s as bo}from"../chunks/versions.78cca4ad.js";import{c as $o}from"../chunks/core-user.db246b6d.js";import{b as ko,c as wo}from"../chunks/batch-operations.79b667c0.js";import{s as vo}from"../chunks/parse-with-big-int.0036a80a.js";import{S as Pt,a as Ye}from"../chunks/simple-select.db1acee2.js";import{E as Zn}from"../chunks/empty-state.721f6c59.js";import{P as Io}from"../chunks/pagination.8a23314e.js";function jt(r,e){Lt(2,arguments);var l=Hr(r).getTime(),t=Bt(e);return new Date(l+t)}var Eo=36e5;function To(r,e){Lt(2,arguments);var l=Bt(e);return jt(r,l*Eo)}var yo=6e4;function Do(r,e){Lt(2,arguments);var l=Bt(e);return jt(r,l*yo)}function Lo(r,e){Lt(2,arguments);var l=Bt(e);return jt(r,l*1e3)}const Bo=!1,im=Object.freeze(Object.defineProperty({__proto__:null,ssr:Bo},Symbol.toStringTag,{value:"Module"})),So=r=>({}),hl=r=>({});function Co(r){let e;const l=r[2].fallback,t=he(l,r,r[1],hl);return{c(){t&&t.c()},l(n){t&&t.l(n)},m(n,o){t&&t.m(n,o),e=!0},p(n,o){t&&t.p&&(!e||o&2)&&ge(t,l,n,n[1],e?$e(l,n[1],o,So):be(n[1]),hl)},i(n){e||(h(t,n),e=!0)},o(n){$(t,n),e=!1},d(n){t&&t.d(n)}}}function No(r){let e;const l=r[2].default,t=he(l,r,r[1],null);return{c(){t&&t.c()},l(n){t&&t.l(n)},m(n,o){t&&t.m(n,o),e=!0},p(n,o){t&&t.p&&(!e||o&2)&&ge(t,l,n,n[1],e?$e(l,n[1],o,null):be(n[1]),null)},i(n){e||(h(t,n),e=!0)},o(n){$(t,n),e=!1},d(n){t&&t.d(n)}}}function Ao(r){let e,l,t,n;const o=[No,Co],i=[];function a(s,f){return s[0]?0:1}return e=a(r),l=i[e]=o[e](r),{c(){l.c(),t=X()},l(s){l.l(s),t=X()},m(s,f){i[e].m(s,f),I(s,t,f),n=!0},p(s,[f]){let u=e;e=a(s),e===u?i[e].p(s,f):(G(),$(i[u],1,1,()=>{i[u]=null}),J(),l=i[e],l?l.p(s,f):(l=i[e]=o[e](s),l.c()),h(l,1),l.m(t.parentNode,t))},i(s){n||(h(l),n=!0)},o(s){$(l),n=!1},d(s){i[e].d(s),s&&g(t)}}}function Po(r,e,l){let t;j(r,mt,i=>l(0,t=i));let{$$slots:n={},$$scope:o}=e;return r.$$set=i=>{"$$scope"in i&&l(1,o=i.$$scope)},[t,o,n]}class Oo extends re{constructor(e){super(),oe(this,e,Po,Ao,se,{})}}function Fo(r){let e,l,t;return l=new Pe({props:{key:"workflows.batch-operation-modal-title",replace:{action:r[3]}}}),{c(){e=N("h3"),E(l.$$.fragment),this.h()},l(n){e=A(n,"H3",{slot:!0});var o=W(e);T(l.$$.fragment,o),o.forEach(g),this.h()},h(){S(e,"slot","title")},m(n,o){I(n,e,o),y(l,e,null),t=!0},p(n,o){const i={};o&8&&(i.replace={action:n[3]}),l.$set(i)},i(n){t||(h(l.$$.fragment,n),t=!0)},o(n){$(l.$$.fragment,n),t=!1},d(n){n&&g(e),D(l)}}}function Vo(r){let e,l,t;return l=new Pe({props:{key:r[0]===Ze.Cancel?"workflows.batch-cancel-confirmation":"workflows.batch-terminate-confirmation",count:r[1]}}),{c(){e=N("p"),E(l.$$.fragment)},l(n){e=A(n,"P",{});var o=W(e);T(l.$$.fragment,o),o.forEach(g)},m(n,o){I(n,e,o),y(l,e,null),t=!0},p(n,o){const i={};o&1&&(i.key=n[0]===Ze.Cancel?"workflows.batch-cancel-confirmation":"workflows.batch-terminate-confirmation"),o&2&&(i.count=n[1]),l.$set(i)},i(n){t||(h(l.$$.fragment,n),t=!0)},o(n){$(l.$$.fragment,n),t=!1},d(n){n&&g(e),D(l)}}}function Wo(r){let e,l,t,n,o,i,a,s,f,u;return l=new Pe({props:{key:"workflows.batch-operation-confirmation-all",replace:{action:r[3]}}}),f=new Pe({props:{key:"workflows.batch-operation-count-disclaimer",replace:{action:r[3]}}}),{c(){e=N("p"),E(l.$$.fragment),t=F(),n=N("div"),o=N("code"),i=q(r[2]),a=F(),s=N("span"),E(f.$$.fragment),this.h()},l(c){e=A(c,"P",{class:!0});var _=W(e);T(l.$$.fragment,_),_.forEach(g),t=V(c),n=A(c,"DIV",{class:!0});var m=W(n);o=A(m,"CODE",{"data-testid":!0});var p=W(o);i=U(p,r[2]),p.forEach(g),m.forEach(g),a=V(c),s=A(c,"SPAN",{class:!0});var d=W(s);T(f.$$.fragment,d),d.forEach(g),this.h()},h(){S(e,"class","mb-2"),S(o,"data-testid","batch-action-workflows-query"),S(n,"class","mb-2 overflow-scroll whitespace-nowrap rounded border border-primary bg-gray-100 p-2"),S(s,"class","text-xs")},m(c,_){I(c,e,_),y(l,e,null),I(c,t,_),I(c,n,_),C(n,o),C(o,i),I(c,a,_),I(c,s,_),y(f,s,null),u=!0},p(c,_){const m={};_&8&&(m.replace={action:c[3]}),l.$set(m),(!u||_&4)&&te(i,c[2]);const p={};_&8&&(p.replace={action:c[3]}),f.$set(p)},i(c){u||(h(l.$$.fragment,c),h(f.$$.fragment,c),u=!0)},o(c){$(l.$$.fragment,c),$(f.$$.fragment,c),u=!1},d(c){c&&g(e),D(l),c&&g(t),c&&g(n),c&&g(a),c&&g(s),D(f)}}}function Ro(r){let e,l,t,n,o,i,a,s,f,u;const c=[Wo,Vo],_=[];function m(w,v){return w[11]?0:1}l=m(r),t=_[l]=c[l](r);function p(w){r[19](w)}let d={id:`bulk-action-reason-${r[0]}`,label:P("common.reason"),hintText:P("workflows.batch-operation-confirmation-input-hint",{placeholder:r[9]}),placeholder:r[9]};r[4]!==void 0&&(d.value=r[4]),o=new ye({props:d}),ie.push(()=>fe(o,"value",p));function b(w){r[20](w)}let k={id:"batch-operation-job-id",label:P("common.job-id"),hintText:r[8]?P("batch.job-id-input-hint"):P("batch.job-id-input-error"),placeholder:r[12],valid:r[8]};return r[7]!==void 0&&(k.value=r[7]),s=new ye({props:k}),ie.push(()=>fe(s,"value",b)),s.$on("input",r[14]),{c(){e=N("div"),t.c(),n=F(),E(o.$$.fragment),a=F(),E(s.$$.fragment),this.h()},l(w){e=A(w,"DIV",{class:!0});var v=W(e);t.l(v),n=V(v),T(o.$$.fragment,v),a=V(v),T(s.$$.fragment,v),v.forEach(g),this.h()},h(){S(e,"class","mb-4 flex flex-col gap-2")},m(w,v){I(w,e,v),_[l].m(e,null),C(e,n),y(o,e,null),C(e,a),y(s,e,null),u=!0},p(w,v){let L=l;l=m(w),l===L?_[l].p(w,v):(G(),$(_[L],1,1,()=>{_[L]=null}),J(),t=_[l],t?t.p(w,v):(t=_[l]=c[l](w),t.c()),h(t,1),t.m(e,n));const R={};v&1&&(R.id=`bulk-action-reason-${w[0]}`),v&512&&(R.hintText=P("workflows.batch-operation-confirmation-input-hint",{placeholder:w[9]})),v&512&&(R.placeholder=w[9]),!i&&v&16&&(i=!0,R.value=w[4],ue(()=>i=!1)),o.$set(R);const B={};v&256&&(B.hintText=w[8]?P("batch.job-id-input-hint"):P("batch.job-id-input-error")),v&256&&(B.valid=w[8]),!f&&v&128&&(f=!0,B.value=w[7],ue(()=>f=!1)),s.$set(B)},i(w){u||(h(t),h(o.$$.fragment,w),h(s.$$.fragment,w),u=!0)},o(w){$(t),$(o.$$.fragment,w),$(s.$$.fragment,w),u=!1},d(w){w&&g(e),_[l].d(),D(o),D(s)}}}function Mo(r){let e,l,t,n;function o(s){r[21](s)}function i(s){r[22](s)}let a={id:`batch-operation-confirmation-modal-${r[0]}`,"data-testid":"batch-"+r[3]+"-confirmation",confirmType:"destructive",cancelText:P("common.cancel"),confirmDisabled:!r[8],confirmText:r[10],$$slots:{content:[Ro],title:[Fo]},$$scope:{ctx:r}};return r[5]!==void 0&&(a.open=r[5]),r[6]!==void 0&&(a.error=r[6]),e=new yr({props:a}),ie.push(()=>fe(e,"open",o)),ie.push(()=>fe(e,"error",i)),e.$on("confirmModal",r[13]),{c(){E(e.$$.fragment)},l(s){T(e.$$.fragment,s)},m(s,f){y(e,s,f),n=!0},p(s,[f]){const u={};f&1&&(u.id=`batch-operation-confirmation-modal-${s[0]}`),f&8&&(u["data-testid"]="batch-"+s[3]+"-confirmation"),f&256&&(u.confirmDisabled=!s[8]),f&1024&&(u.confirmText=s[10]),f&16780191&&(u.$$scope={dirty:f,ctx:s}),!l&&f&32&&(l=!0,u.open=s[5],ue(()=>l=!1)),!t&&f&64&&(t=!0,u.error=s[6],ue(()=>t=!1)),e.$set(u)},i(s){n||(h(e.$$.fragment,s),n=!0)},o(s){$(e.$$.fragment,s),n=!1},d(s){D(e,s)}}}function Ho(r,e,l){let t,n,o,i,a;j(r,Br,O=>l(18,i=O)),j(r,Ke,O=>l(11,a=O));let{action:s}=e,{actionableWorkflowsLength:f}=e,{query:u}=e,c="",_=!1,m="",p="",d=Pr(),b=!0;const k=()=>{l(4,c=""),l(5,_=!0)},w=()=>l(5,_=!1),v=O=>l(6,m=O),L=xe(),R=()=>{l(6,m=""),L("confirm",{reason:Cr({action:s,reason:c,email:i.email}),jobId:p||d})},B=O=>{/^[\w.~-]*$/.test(O.target.value)?l(8,b=!0):l(8,b=!1)};function M(O){c=O,l(4,c)}function x(O){p=O,l(7,p)}function ee(O){_=O,l(5,_)}function Y(O){m=O,l(6,m)}return r.$$set=O=>{"action"in O&&l(0,s=O.action),"actionableWorkflowsLength"in O&&l(1,f=O.actionableWorkflowsLength),"query"in O&&l(2,u=O.query)},r.$$.update=()=>{r.$$.dirty&1&&l(3,t=s===Ze.Cancel?P("common.cancel"):P("workflows.terminate")),r.$$.dirty&9&&l(10,n=s===Ze.Cancel?P("common.confirm"):t),r.$$.dirty&262145&&l(9,o=Sr(s,i.email))},[s,f,u,t,c,_,m,p,b,o,n,a,d,R,B,k,w,v,i,M,x,ee,Y]}class gl extends re{constructor(e){super(),oe(this,e,Ho,Mo,se,{action:0,actionableWorkflowsLength:1,query:2,open:15,close:16,setError:17})}get open(){return this.$$.ctx[15]}get close(){return this.$$.ctx[16]}get setError(){return this.$$.ctx[17]}}const qo={workflowId:"WorkflowId",workflowType:"WorkflowType",timeRange:"StartTime",executionStatus:"ExecutionStatus",closeTime:"CloseTime",runId:"RunId"},Uo=r=>!(r===null||r===void 0||r===""||typeof r=="string"&&r==="undefined"),jo=(r,e)=>e==="Bool"?r.toLowerCase()==="true":`"${r}"`,zo=(r,e,l,t="=",n,o)=>{const i=qo[r]??r;return l==="All"?"":o?`${i} ${l}`:qr(l)||Ur(l)?n||et(mt)?`${i} ${t} "${Wt(l)}"`:`${i} BETWEEN "${Wt(l)}" AND "${jr()}"`:`${i}${t}${jo(l,e)}`},Ko=(r,e)=>r.map(({attribute:l,type:t,value:n,conditional:o,operator:i,parenthesis:a,customDate:s})=>{if(Uo(n)){let f=zo(l,t,n,o,e,s);return a==="("?f=`(${f}`:a===")"&&(f=`${f})`),i&&(f=`${f} ${i} `),f}}).filter(Boolean),xn=(r=[],e=!1)=>Ko(r,e).join(""),er=r=>e=>e.toLowerCase()===r.toLowerCase(),bl=(r,e)=>r[e+2],Qo=(r,e)=>r[e-2],Yo=er("Datetime"),Go=er("Bool"),qe=()=>({attribute:"",type:"Keyword",value:"",operator:"",parenthesis:"",conditional:""}),Jo={ExecutionStatus:"Keyword",StartTime:"Datetime",CloseTime:"Datetime",WorkflowId:"Keyword",WorkflowType:"Keyword",RunId:"Keyword"},tr=(r,e=Jo)=>{const l=Fr(r),t=[];let n=qe();if(!r)return[];try{return l.forEach((o,i)=>{if(e[o])if(n.attribute=o,n.type=e[o],Yo(e[o])){const a=bl(l,i),s=il(a);if(ul(l[i+1])){const f=l[i+4],u=il(f);s&&u?(n.value=`BETWEEN "${a}" AND "${f}"`,n.customDate=!0):console.error("Error parsing Datetime field from query")}else s?n.value=a:console.error("Error parsing Datetime field from query")}else Go(n.type)?(n.value=l[i+1].replace("=",""),n.conditional="="):n.value=bl(l,i);Yr(o)&&(n.conditional=o),Gr(o)&&(n.parenthesis=o),Jr(o)&&!ul(Qo(l,i))&&(n.operator=o,t.push(n),n=qe()),i===l.length-1&&(t.push(n),n=qe())}),t}catch(o){return console.error("Error setting filter parameters: ",o),[]}},Xo=r=>{const e=r.filter(a=>a.attribute==="ExecutionStatus"&&a.value),l=r.filter(a=>a.attribute==="WorkflowId"&&a.value),t=r.filter(a=>a.attribute==="WorkflowType"&&a.value),n=r.filter(a=>a.attribute==="RunId"&&a.value),o=r.filter(a=>(a.attribute==="StartTime"||a.attribute==="CloseTime")&&a.value),i=[e,l,n,t,o].filter(a=>a.length);return i.forEach((a,s)=>{var f,u;a.length&&((f=i[s+1])!=null&&f.length)?a[a.length-1].operator="AND":a.length&&!((u=i[s+1])!=null&&u.length)&&(a[a.length-1].operator="")}),[...e,...l,...n,...t,...o]},lr=r=>(r.forEach((e,l)=>{const t=r[l-1];t&&!t.operator&&(t.operator="AND");const n=r[l+1];n||(e.operator=""),e.operator==="OR"&&(n==null?void 0:n.attribute)!==e.attribute?(e.parenthesis="",e.operator=""):e.operator==="OR"&&(t==null?void 0:t.operator)!=="OR"?e.parenthesis="(":(t==null?void 0:t.operator)==="OR"&&e.operator!=="OR"?e.parenthesis=")":e.parenthesis=""}),r),zt=Kn((r,e,l=!1)=>{const t=l?Xo(e):lr(e),n=xn(t);Ae({url:r,parameter:"query",value:n,allowEmpty:!1})},300);function Zo(r){let e=P("common.search")+"",l;return{c(){l=q(e)},l(t){l=U(t,e)},m(t,n){I(t,l,n)},p:K,d(t){t&&g(l)}}}function xo(r){let e,l,t,n,o,i,a,s,f,u,c,_;function m(d){r[5](d)}let p={id:"manual-search",type:"search",label:P("workflows.search-placeholder"),labelHidden:!0,placeholder:P("workflows.search-placeholder"),icon:"search",class:"w-full lg:w-3/4",clearable:!0,clearButtonLabel:P("common.clear-input-button-label"),unroundRight:!0};return r[0]!==void 0&&(p.value=r[0]),n=new ye({props:p}),ie.push(()=>fe(n,"value",m)),n.$on("clear",r[2]),a=new lt({props:{"data-testid":"manual-search-button",variant:"primary",borderRadiusModifier:"square-left",type:"submit",$$slots:{default:[Zo]},$$scope:{ctx:r}}}),{c(){e=N("div"),l=N("div"),t=N("form"),E(n.$$.fragment),i=F(),E(a.$$.fragment),this.h()},l(d){e=A(d,"DIV",{class:!0});var b=W(e);l=A(b,"DIV",{class:!0});var k=W(l);t=A(k,"FORM",{class:!0,role:!0});var w=W(t);T(n.$$.fragment,w),i=V(w),T(a.$$.fragment,w),w.forEach(g),k.forEach(g),b.forEach(g),this.h()},h(){S(t,"class","relative flex w-full items-center gap-0"),S(t,"role","search"),S(l,"class","flex w-full items-center gap-0"),S(e,"class","flex grow gap-4")},m(d,b){I(d,e,b),C(e,l),C(l,t),y(n,t,null),C(t,i),y(a,t,null),u=!0,c||(_=ce(t,"submit",ot(r[1])),c=!0)},p(d,[b]){const k={};!o&&b&1&&(o=!0,k.value=d[0],ue(()=>o=!1)),n.$set(k);const w={};b&1024&&(w.$$scope={dirty:b,ctx:d}),a.$set(w)},i(d){u||(h(n.$$.fragment,d),h(a.$$.fragment,d),s||Ue(()=>{s=je(t,tt,{x:-100,duration:150}),s.start()}),f||Ue(()=>{f=je(l,qn,{}),f.start()}),u=!0)},o(d){$(n.$$.fragment,d),$(a.$$.fragment,d),u=!1},d(d){d&&g(e),D(n),D(a),c=!1,_()}}}function es(r,e,l){let t,n,o,i,a;j(r,Te,m=>l(4,n=m)),j(r,ze,m=>l(6,o=m)),j(r,pe,m=>l(7,i=m)),j(r,st,m=>l(8,a=m));let s="";function f(m){l(0,s=m)}const u=()=>{if(!s)le(pe,i=[],i),le(st,a="",a);else try{le(pe,i=tr(s),i)}catch(m){console.error(m)}s&&s===t?le(ze,o=Date.now(),o):Ae({url:n.url,parameter:"query",value:s,allowEmpty:!0})};function c(){u()}function _(m){s=m,l(0,s)}return r.$$.update=()=>{r.$$.dirty&16&&l(3,t=n.url.searchParams.get("query")),r.$$.dirty&8&&f(t)},[s,u,c,t,n,_]}class ts extends re{constructor(e){super(),oe(this,e,es,xo,se,{})}}function Xe(r){return r==="ExecutionStatus"}function it({attribute:r,type:e},l=nt){if(Xe(r))return!1;if(e==="Keyword")return!0;const t=et(l)[r];return["Keyword","Text","String"].includes(t)}function nr({attribute:r,type:e},l=nt){return e==="KeywordList"?!0:et(l)[r]==="KeywordList"}function rr({attribute:r,type:e},l=nt){if(e==="Int")return!0;const t=et(l)[r];return["Int","Double"].includes(t)}function ls(r){return["ExecutionDuration"].includes(r)}function Kt({attribute:r,type:e},l=nt){return e==="Datetime"?!0:et(l)[r]==="Datetime"}function or({attribute:r,type:e},l=nt){return e==="Bool"?!0:et(l)[r]==="Bool"}function sr({attribute:r,type:e}){return Xe(r)?"status-filter":it({attribute:r,type:e})||rr({attribute:r,type:e})||Kt({attribute:r,type:e})?"conditional-menu-button":nr({attribute:r,type:e})?"list-filter-search":or({attribute:r,type:e})?"boolean-filter":""}function $l(r,e,l){const t=r.slice();return t[8]=e[l].value,t[9]=e[l].label,t}function ns(r){let e;return{c(){e=q(r[1])},l(l){e=U(l,r[1])},m(l,t){I(l,e,t)},p(l,t){t&2&&te(e,l[1])},d(l){l&&g(e)}}}function rs(r){let e=r[9]+"",l,t;return{c(){l=q(e),t=F()},l(n){l=U(n,e),t=V(n)},m(n,o){I(n,l,o),I(n,t,o)},p:K,d(n){n&&g(l),n&&g(t)}}}function kl(r){let e,l;function t(){return r[7](r[8])}return e=new Oe({props:{$$slots:{default:[rs]},$$scope:{ctx:r}}}),e.$on("click",t),{c(){E(e.$$.fragment)},l(n){T(e.$$.fragment,n)},m(n,o){y(e,n,o),l=!0},p(n,o){r=n;const i={};o&4096&&(i.$$scope={dirty:o,ctx:r}),e.$set(i)},i(n){l||(h(e.$$.fragment,n),l=!0)},o(n){$(e.$$.fragment,n),l=!1},d(n){D(e,n)}}}function os(r){let e,l,t=r[4],n=[];for(let i=0;i$(n[i],1,1,()=>{n[i]=null});return{c(){for(let i=0;il(0,o=c));const f=[{value:"true",label:P("common.true")},{value:"false",label:P("common.false")}],u=c=>{le(a,o.value=c,o),s()};return r.$$.update=()=>{r.$$.dirty&33&&l(6,t=l(5,i=f.find(c=>c.value===o.value))!==null&&i!==void 0?i:f[0]),r.$$.dirty&64&&l(1,n=t==null?void 0:t.label)},[o,n,a,s,f,i,t,u]}class fs extends re{constructor(e){super(),oe(this,e,is,as,se,{})}}function us(r){let e,l;return e=new Le({props:{label:P("common.close"),icon:"close",class:"ml-1"}}),e.$on("click",r[0]),{c(){E(e.$$.fragment)},l(t){T(e.$$.fragment,t)},m(t,n){y(e,t,n),l=!0},p:K,i(t){l||(h(e.$$.fragment,t),l=!0)},o(t){$(e.$$.fragment,t),l=!1},d(t){D(e,t)}}}function cs(r){const{resetFilter:e}=Fe(Be);return[e]}class ht extends re{constructor(e){super(),oe(this,e,cs,us,se,{})}}function wl(r,e,l){const t=r.slice();return t[9]=e[l].allowed,t[10]=e[l].value,t[12]=l,t}function vl(r,e,l){const t=r.slice();return t[13]=e[l],t}function Il(r){let e,l=r[13].label.slice(0,2)+"",t;return{c(){e=N("p"),t=q(l),this.h()},l(n){e=A(n,"P",{class:!0});var o=W(e);t=U(o,l),o.forEach(g),this.h()},h(){S(e,"class","cell svelte-1we9vff")},m(n,o){I(n,e,o),C(e,t)},p:K,d(n){n&&g(e)}}}function El(r,e){let l,t=(e[10]||"")+"",n,o,i,a;function s(){return e[6](e[10])}return{key:r,first:null,c(){l=N("button"),n=q(t),o=F(),this.h()},l(f){l=A(f,"BUTTON",{type:!0,class:!0});var u=W(l);n=U(u,t),o=V(u),u.forEach(g),this.h()},h(){S(l,"type","button"),S(l,"class","cell svelte-1we9vff"),me(l,"highlight",e[9]&&e[10]),me(l,"disabled",!e[9]),me(l,"selected",new Date(e[0].getFullYear(),e[0].getMonth(),e[0].getDate()).getTime()===new Date(e[2],e[1],e[10]).getTime()),this.first=l},m(f,u){I(f,l,u),C(l,n),C(l,o),i||(a=ce(l,"click",function(){Rn(e[9]&&e[10]?s:K)&&(e[9]&&e[10]?s:K).apply(this,arguments)}),i=!0)},p(f,u){e=f,u&8&&t!==(t=(e[10]||"")+"")&&te(n,t),u&8&&me(l,"highlight",e[9]&&e[10]),u&8&&me(l,"disabled",!e[9]),u&15&&me(l,"selected",new Date(e[0].getFullYear(),e[0].getMonth(),e[0].getDate()).getTime()===new Date(e[2],e[1],e[10]).getTime())},d(f){f&&g(l),i=!1,a()}}}function ms(r){let e,l,t,n,o=[],i=new Map,a=cl,s=[];for(let c=0;cc[12];for(let c=0;c!0}=e,s=[];const f=_=>{t("datechange",new Date(i,o,_))},u=(_,m,p)=>p?a(new Date(_,m,p)):!0,c=_=>f(_);return r.$$set=_=>{"date"in _&&l(0,n=_.date),"month"in _&&l(1,o=_.month),"year"in _&&l(2,i=_.year),"isAllowed"in _&&l(5,a=_.isAllowed)},r.$$.update=()=>{r.$$.dirty&6&&l(3,s=no(o,i).map(_=>({value:_,allowed:u(i,o,_)})))},[n,o,i,s,f,a,c]}class ds extends re{constructor(e){super(),oe(this,e,_s,ms,se,{date:0,month:1,year:2,isAllowed:5})}}function Tl(r){var Q;let e,l,t,n,o,i,a,s=(((Q=ml(r[8]))==null?void 0:Q.label)??"")+"",f,u,c,_,m,p,d,b,k,w,v,L,R,B,M,x,ee,Y,O;return o=new Ve({props:{name:"chevron-left"}}),d=new Ve({props:{name:"chevron-right"}}),k=new ds({props:{month:r[8],year:r[9],date:r[0],isAllowed:r[1]}}),k.$on("datechange",r[15]),{c(){e=N("div"),l=N("div"),t=N("div"),n=N("button"),E(o.$$.fragment),i=F(),a=N("div"),f=q(s),u=F(),c=q(r[9]),_=F(),m=N("div"),p=N("button"),E(d.$$.fragment),b=F(),E(k.$$.fragment),w=F(),v=N("div"),L=N("button"),R=q(r[4]),B=F(),M=N("button"),x=q(r[5]),this.h()},l(z){e=A(z,"DIV",{class:!0});var H=W(e);l=A(H,"DIV",{class:!0});var ae=W(l);t=A(ae,"DIV",{class:!0});var _e=W(t);n=A(_e,"BUTTON",{type:!0});var de=W(n);T(o.$$.fragment,de),de.forEach(g),_e.forEach(g),i=V(ae),a=A(ae,"DIV",{class:!0});var we=W(a);f=U(we,s),u=V(we),c=U(we,r[9]),we.forEach(g),_=V(ae),m=A(ae,"DIV",{class:!0});var Z=W(m);p=A(Z,"BUTTON",{type:!0});var ke=W(p);T(d.$$.fragment,ke),ke.forEach(g),Z.forEach(g),ae.forEach(g),b=V(H),T(k.$$.fragment,H),w=V(H),v=A(H,"DIV",{class:!0});var ve=W(v);L=A(ve,"BUTTON",{type:!0,class:!0});var We=W(L);R=U(We,r[4]),We.forEach(g),B=V(ve),M=A(ve,"BUTTON",{type:!0,class:!0});var gt=W(M);x=U(gt,r[5]),gt.forEach(g),ve.forEach(g),H.forEach(g),this.h()},h(){S(n,"type","button"),S(t,"class","flex items-center justify-center"),S(a,"class","flex items-center justify-center"),S(p,"type","button"),S(m,"class","flex items-center justify-center"),S(l,"class","mx-3 my-2 flex items-center justify-around"),S(L,"type","button"),S(L,"class","cursor-pointer text-[12px]"),S(M,"type","button"),S(M,"class","cursor-pointer text-[12px]"),S(v,"class","my-1 flex justify-between px-2"),S(e,"class","absolute z-30 inline-block rounded border border-gray-900 bg-white shadow")},m(z,H){I(z,e,H),C(e,l),C(l,t),C(t,n),y(o,n,null),C(l,i),C(l,a),C(a,f),C(a,u),C(a,c),C(l,_),C(l,m),C(m,p),y(d,p,null),C(e,b),y(k,e,null),C(e,w),C(e,v),C(v,L),C(L,R),C(v,B),C(v,M),C(M,x),ee=!0,Y||(O=[ce(n,"click",r[14]),ce(p,"click",r[13]),ce(L,"click",r[16]),ce(M,"click",r[17])],Y=!0)},p(z,H){var _e;(!ee||H&256)&&s!==(s=(((_e=ml(z[8]))==null?void 0:_e.label)??"")+"")&&te(f,s),(!ee||H&512)&&te(c,z[9]);const ae={};H&256&&(ae.month=z[8]),H&512&&(ae.year=z[9]),H&1&&(ae.date=z[0]),H&2&&(ae.isAllowed=z[1]),k.$set(ae),(!ee||H&16)&&te(R,z[4]),(!ee||H&32)&&te(x,z[5])},i(z){ee||(h(o.$$.fragment,z),h(d.$$.fragment,z),h(k.$$.fragment,z),ee=!0)},o(z){$(o.$$.fragment,z),$(d.$$.fragment,z),$(k.$$.fragment,z),ee=!1},d(z){z&&g(e),D(o),D(d),D(k),Y=!1,ct(O)}}}function ps(r){let e,l,t,n,o,i;l=new ye({props:{id:"datepicker",label:r[2],labelHidden:r[3],icon:"calendar-plus",type:"text",placeholder:"MM/DD/YY",value:r[0].toDateString(),clearable:!0,clearButtonLabel:r[6],disabled:r[7]}}),l.$on("focus",r[11]),l.$on("input",r[12]);let a=r[10]&&Tl(r);return{c(){e=N("div"),E(l.$$.fragment),t=F(),a&&a.c(),this.h()},l(s){e=A(s,"DIV",{class:!0});var f=W(e);T(l.$$.fragment,f),t=V(f),a&&a.l(f),f.forEach(g),this.h()},h(){S(e,"class","relative")},m(s,f){I(s,e,f),y(l,e,null),C(e,t),a&&a.m(e,null),n=!0,o||(i=[br(lo.call(null,e)),ce(e,"click-outside",r[18])],o=!0)},p(s,[f]){const u={};f&4&&(u.label=s[2]),f&8&&(u.labelHidden=s[3]),f&1&&(u.value=s[0].toDateString()),f&64&&(u.clearButtonLabel=s[6]),f&128&&(u.disabled=s[7]),l.$set(u),s[10]?a?(a.p(s,f),f&1024&&h(a,1)):(a=Tl(s),a.c(),h(a,1),a.m(e,null)):a&&(G(),$(a,1,1,()=>{a=null}),J())},i(s){n||(h(l.$$.fragment,s),h(a),n=!0)},o(s){$(l.$$.fragment,s),$(a),n=!1},d(s){s&&g(e),D(l),a&&a.d(),o=!1,ct(i)}}}function hs(r,e,l){const t=xe();let{isAllowed:n=()=>!0}=e,{selected:o=new Date}=e,{label:i}=e,{labelHidden:a=!1}=e,{todayLabel:s}=e,{closeLabel:f}=e,{clearLabel:u}=e,{disabled:c=!1}=e,_,m,p=!1;const d=()=>{l(10,p=!0)},b=M=>{const ee=M.target.value;if(ee.length===8){const Y=ee==null?void 0:ee.split("/"),Q=2e3+parseInt(Y[2]),z=parseInt(Y[0])-1,H=parseInt(Y[1]),ae=new Date(Q,z,H);t("datechange",ae)}},k=()=>{if(_===11){l(8,_=0),l(9,m=m+1);return}l(8,_=_+1)},w=()=>{if(_===0){l(8,_=11),l(9,m-=1);return}l(8,_-=1)},v=M=>{l(10,p=!1),t("datechange",M.detail)},L=()=>l(0,o=new Date),R=()=>l(10,p=!1),B=()=>l(10,p=!1);return r.$$set=M=>{"isAllowed"in M&&l(1,n=M.isAllowed),"selected"in M&&l(0,o=M.selected),"label"in M&&l(2,i=M.label),"labelHidden"in M&&l(3,a=M.labelHidden),"todayLabel"in M&&l(4,s=M.todayLabel),"closeLabel"in M&&l(5,f=M.closeLabel),"clearLabel"in M&&l(6,u=M.clearLabel),"disabled"in M&&l(7,c=M.disabled)},r.$$.update=()=>{r.$$.dirty&1&&(l(8,_=o.getMonth()),l(9,m=o.getFullYear()))},[o,n,i,a,s,f,u,c,_,m,p,d,b,k,w,v,L,R,B]}class Qt extends re{constructor(e){super(),oe(this,e,hs,ps,se,{isAllowed:1,selected:0,label:2,labelHidden:3,todayLabel:4,closeLabel:5,clearLabel:6,disabled:7})}}function yl(r){let e,l;return e=new so({props:{$$slots:{default:[$s]},$$scope:{ctx:r}}}),{c(){E(e.$$.fragment)},l(t){T(e.$$.fragment,t)},m(t,n){y(e,t,n),l=!0},p(t,n){const o={};n&2056&&(o.$$scope={dirty:n,ctx:t}),e.$set(o)},i(t){l||(h(e.$$.fragment,t),l=!0)},o(t){$(e.$$.fragment,t),l=!1},d(t){D(e,t)}}}function gs(r){let e;return{c(){e=q("AM")},l(l){e=U(l,"AM")},m(l,t){I(l,e,t)},d(l){l&&g(e)}}}function bs(r){let e;return{c(){e=q("PM")},l(l){e=U(l,"PM")},m(l,t){I(l,e,t)},d(l){l&&g(e)}}}function $s(r){let e,l,t,n;return e=new _l({props:{active:r[3]==="AM",$$slots:{default:[gs]},$$scope:{ctx:r}}}),e.$on("click",r[9]),t=new _l({props:{active:r[3]==="PM",$$slots:{default:[bs]},$$scope:{ctx:r}}}),t.$on("click",r[10]),{c(){E(e.$$.fragment),l=F(),E(t.$$.fragment)},l(o){T(e.$$.fragment,o),l=V(o),T(t.$$.fragment,o)},m(o,i){y(e,o,i),I(o,l,i),y(t,o,i),n=!0},p(o,i){const a={};i&8&&(a.active=o[3]==="AM"),i&2048&&(a.$$scope={dirty:i,ctx:o}),e.$set(a);const s={};i&8&&(s.active=o[3]==="PM"),i&2048&&(s.$$scope={dirty:i,ctx:o}),t.$set(s)},i(o){n||(h(e.$$.fragment,o),h(t.$$.fragment,o),n=!0)},o(o){$(e.$$.fragment,o),$(t.$$.fragment,o),n=!1},d(o){D(e,o),o&&g(l),D(t,o)}}}function ks(r){let e,l,t,n,o,i,a,s,f,u,c;function _(v){r[6](v)}let m={id:"hour",label:"hrs",labelHidden:!0,placeholder:"00",suffix:"hrs",maxLength:2,error:r[4]?parseInt(r[0])>12:parseInt(r[0])>23,disabled:r[5]};r[0]!==void 0&&(m.value=r[0]),l=new ye({props:m}),ie.push(()=>fe(l,"value",_));function p(v){r[7](v)}let d={id:"minute",label:"min",labelHidden:!0,required:!0,placeholder:"00",suffix:"min",maxLength:2,error:Boolean(parseInt(r[0])>59),disabled:r[5]};r[1]!==void 0&&(d.value=r[1]),o=new ye({props:d}),ie.push(()=>fe(o,"value",p));function b(v){r[8](v)}let k={id:"second",label:"sec",labelHidden:!0,placeholder:"00",suffix:"sec",maxLength:2,error:Boolean(parseInt(r[0])>59),disabled:r[5]};r[2]!==void 0&&(k.value=r[2]),s=new ye({props:k}),ie.push(()=>fe(s,"value",b));let w=r[4]&&yl(r);return{c(){e=N("div"),E(l.$$.fragment),n=F(),E(o.$$.fragment),a=F(),E(s.$$.fragment),u=F(),w&&w.c(),this.h()},l(v){e=A(v,"DIV",{class:!0});var L=W(e);T(l.$$.fragment,L),n=V(L),T(o.$$.fragment,L),a=V(L),T(s.$$.fragment,L),u=V(L),w&&w.l(L),L.forEach(g),this.h()},h(){S(e,"class","flex gap-2")},m(v,L){I(v,e,L),y(l,e,null),C(e,n),y(o,e,null),C(e,a),y(s,e,null),C(e,u),w&&w.m(e,null),c=!0},p(v,[L]){const R={};L&17&&(R.error=v[4]?parseInt(v[0])>12:parseInt(v[0])>23),L&32&&(R.disabled=v[5]),!t&&L&1&&(t=!0,R.value=v[0],ue(()=>t=!1)),l.$set(R);const B={};L&1&&(B.error=Boolean(parseInt(v[0])>59)),L&32&&(B.disabled=v[5]),!i&&L&2&&(i=!0,B.value=v[1],ue(()=>i=!1)),o.$set(B);const M={};L&1&&(M.error=Boolean(parseInt(v[0])>59)),L&32&&(M.disabled=v[5]),!f&&L&4&&(f=!0,M.value=v[2],ue(()=>f=!1)),s.$set(M),v[4]?w?(w.p(v,L),L&16&&h(w,1)):(w=yl(v),w.c(),h(w,1),w.m(e,null)):w&&(G(),$(w,1,1,()=>{w=null}),J())},i(v){c||(h(l.$$.fragment,v),h(o.$$.fragment,v),h(s.$$.fragment,v),h(w),c=!0)},o(v){$(l.$$.fragment,v),$(o.$$.fragment,v),$(s.$$.fragment,v),$(w),c=!1},d(v){v&&g(e),D(l),D(o),D(s),w&&w.d()}}}function ws(r,e,l){let{hour:t=""}=e,{minute:n=""}=e,{second:o=""}=e,{half:i="AM"}=e,{twelveHourClock:a=!0}=e,{disabled:s=!1}=e;function f(p){t=p,l(0,t)}function u(p){n=p,l(1,n)}function c(p){o=p,l(2,o)}const _=()=>l(3,i="AM"),m=()=>l(3,i="PM");return r.$$set=p=>{"hour"in p&&l(0,t=p.hour),"minute"in p&&l(1,n=p.minute),"second"in p&&l(2,o=p.second),"half"in p&&l(3,i=p.half),"twelveHourClock"in p&&l(4,a=p.twelveHourClock),"disabled"in p&&l(5,s=p.disabled)},[t,n,o,i,a,s,f,u,c,_,m]}class Yt extends re{constructor(e){super(),oe(this,e,ws,ks,se,{hour:0,minute:1,second:2,half:3,twelveHourClock:4,disabled:5})}}function Dl(r,e,l){const t=r.slice();return t[16]=e[l].value,t[17]=e[l].label,t}function vs(r){let e;return{c(){e=q(r[6])},l(l){e=U(l,r[6])},m(l,t){I(l,e,t)},p(l,t){t&64&&te(e,l[6])},d(l){l&&g(e)}}}function Is(r){let e=(r[17]??r[16])+"",l,t;return{c(){l=q(e),t=F()},l(n){l=U(n,e),t=V(n)},m(n,o){I(n,l,o),I(n,t,o)},p(n,o){o&1&&e!==(e=(n[17]??n[16])+"")&&te(l,e)},d(n){n&&g(l),n&&g(t)}}}function Ll(r){let e,l;function t(){return r[13](r[16])}return e=new Oe({props:{$$slots:{default:[Is]},$$scope:{ctx:r}}}),e.$on("click",t),{c(){E(e.$$.fragment)},l(n){T(e.$$.fragment,n)},m(n,o){y(e,n,o),l=!0},p(n,o){r=n;const i={};o&1048577&&(i.$$scope={dirty:o,ctx:r}),e.$set(i)},i(n){l||(h(e.$$.fragment,n),l=!0)},o(n){$(e.$$.fragment,n),l=!1},d(n){D(e,n)}}}function Es(r){let e,l,t=r[0],n=[];for(let i=0;i$(n[i],1,1,()=>{n[i]=null});return{c(){for(let i=0;il(5,i=v)),j(r,u,v=>l(7,a=v));const c=[{value:">"},{value:">="},{value:"="},{value:"<="},{value:"<"}];let{options:_=c}=e,{disabled:m=!1}=e,{inputId:p}=e,{noBorderLeft:d=!1}=e,{noBorderRight:b=!1}=e;function k(){t||le(f,i.conditional=_[0].value,i)}const w=v=>{le(f,i.conditional=v,i),le(u,a=p,a)};return r.$$set=v=>{"options"in v&&l(0,_=v.options),"disabled"in v&&l(1,m=v.disabled),"inputId"in v&&l(2,p=v.inputId),"noBorderLeft"in v&&l(3,d=v.noBorderLeft),"noBorderRight"in v&&l(4,b=v.noBorderRight)},r.$$.update=()=>{r.$$.dirty&33&&l(11,t=_.find(v=>v.value===i.conditional)),r.$$.dirty&1&&k(),r.$$.dirty&2049&&l(12,n=t??_[0]),r.$$.dirty&5120&&l(6,o=l(10,s=n==null?void 0:n.label)!==null&&s!==void 0?s:n==null?void 0:n.value)},[_,m,p,d,b,i,o,a,f,u,s,t,n,w]}class Ct extends re{constructor(e){super(),oe(this,e,Ds,ys,se,{options:0,disabled:1,inputId:2,noBorderLeft:3,noBorderRight:4})}}function Bl(r,e,l){const t=r.slice();return t[40]=e[l],t}function Ls(r){let e=P("workflows.select-time")+"",l;return{c(){l=q(e)},l(t){l=U(t,e)},m(t,n){I(t,l,n)},p:K,d(t){t&&g(l)}}}function Bs(r){let e,l,t,n,o,i;return e=new Oe({props:{$$slots:{default:[As]},$$scope:{ctx:r}}}),e.$on("click",r[33]),t=new St({}),o=new Oe({props:{$$slots:{default:[Ps]},$$scope:{ctx:r}}}),o.$on("click",r[37]),{c(){E(e.$$.fragment),l=F(),E(t.$$.fragment),n=F(),E(o.$$.fragment)},l(a){T(e.$$.fragment,a),l=V(a),T(t.$$.fragment,a),n=V(a),T(o.$$.fragment,a)},m(a,s){y(e,a,s),I(a,l,s),y(t,a,s),I(a,n,s),y(o,a,s),i=!0},p(a,s){const f={};s[0]&2053|s[1]&4096&&(f.$$scope={dirty:s,ctx:a}),e.$set(f);const u={};s[0]&236|s[1]&4096&&(u.$$scope={dirty:s,ctx:a}),o.$set(u)},i(a){i||(h(e.$$.fragment,a),h(t.$$.fragment,a),h(o.$$.fragment,a),i=!0)},o(a){$(e.$$.fragment,a),$(t.$$.fragment,a),$(o.$$.fragment,a),i=!1},d(a){D(e,a),a&&g(l),D(t,a),a&&g(n),D(o,a)}}}function Ss(r){let e,l,t,n,o,i;return e=new Oe({props:{$$slots:{default:[Os]},$$scope:{ctx:r}}}),t=new St({}),o=new Oe({props:{$$slots:{default:[Fs]},$$scope:{ctx:r}}}),{c(){E(e.$$.fragment),l=F(),E(t.$$.fragment),n=F(),E(o.$$.fragment)},l(a){T(e.$$.fragment,a),l=V(a),T(t.$$.fragment,a),n=V(a),T(o.$$.fragment,a)},m(a,s){y(e,a,s),I(a,l,s),y(t,a,s),I(a,n,s),y(o,a,s),i=!0},p(a,s){const f={};s[0]&232|s[1]&4096&&(f.$$scope={dirty:s,ctx:a}),e.$set(f);const u={};s[0]&1808|s[1]&4096&&(u.$$scope={dirty:s,ctx:a}),o.$set(u)},i(a){i||(h(e.$$.fragment,a),h(t.$$.fragment,a),h(o.$$.fragment,a),i=!0)},o(a){$(e.$$.fragment,a),$(t.$$.fragment,a),$(o.$$.fragment,a),i=!1},d(a){D(e,a),a&&g(l),D(t,a),a&&g(n),D(o,a)}}}function Cs(r){let e=r[40]+"",l,t,n=P("common.ago")+"",o;return{c(){l=q(e),t=F(),o=q(n)},l(i){l=U(i,e),t=V(i),o=U(i,n)},m(i,a){I(i,l,a),I(i,t,a),I(i,o,a)},p:K,d(i){i&&g(l),i&&g(t),i&&g(o)}}}function Sl(r){let e,l;return e=new oo({props:{value:r[40],$$slots:{default:[Cs]},$$scope:{ctx:r}}}),{c(){E(e.$$.fragment)},l(t){T(e.$$.fragment,t)},m(t,n){y(e,t,n),l=!0},p(t,n){const o={};n[1]&4096&&(o.$$scope={dirty:n,ctx:t}),e.$set(o)},i(t){l||(h(e.$$.fragment,t),l=!0)},o(t){$(e.$$.fragment,t),l=!1},d(t){D(e,t)}}}function Ns(r){let e,l,t=r[15],n=[];for(let i=0;i$(n[i],1,1,()=>{n[i]=null});return{c(){for(let i=0;ife(o,"value",c));function m(d){r[32](d)}let p={unroundLeft:!0,id:"relative-datetime-unit-input",label:P("common.time-unit"),labelHidden:!0,disabled:r[2]!=="relative",$$slots:{default:[Ns]},$$scope:{ctx:r}};return r[11]!==void 0&&(p.value=r[11]),s=new ro({props:p}),ie.push(()=>fe(s,"value",m)),{c(){e=N("div"),E(l.$$.fragment),t=F(),n=N("div"),E(o.$$.fragment),a=F(),E(s.$$.fragment),this.h()},l(d){e=A(d,"DIV",{class:!0});var b=W(e);T(l.$$.fragment,b),t=V(b),n=A(b,"DIV",{class:!0});var k=W(n);T(o.$$.fragment,k),a=V(k),T(s.$$.fragment,k),k.forEach(g),b.forEach(g),this.h()},h(){S(n,"class","ml-6 flex gap-0 pt-2"),S(e,"class","flex flex-col")},m(d,b){I(d,e,b),y(l,e,null),C(e,t),C(e,n),y(o,n,null),C(n,a),y(s,n,null),u=!0},p(d,b){const k={};b[0]&1&&(k.error=d[20](d[0])),b[0]&4&&(k.disabled=d[2]!=="relative"),!i&&b[0]&1&&(i=!0,k.value=d[0],ue(()=>i=!1)),o.$set(k);const w={};b[0]&4&&(w.disabled=d[2]!=="relative"),b[1]&4096&&(w.$$scope={dirty:b,ctx:d}),!f&&b[0]&2048&&(f=!0,w.value=d[11],ue(()=>f=!1)),s.$set(w)},i(d){u||(h(l.$$.fragment,d),h(o.$$.fragment,d),h(s.$$.fragment,d),u=!0)},o(d){$(l.$$.fragment,d),$(o.$$.fragment,d),$(s.$$.fragment,d),u=!1},d(d){d&&g(e),D(l),D(o),D(s)}}}function Ps(r){let e,l,t,n,o,i,a,s,f,u,c;l=new Gn({props:{label:P("common.absolute"),id:"absolute-time",value:"absolute",name:"time-filter-type",group:r[16]}}),o=new Qt({props:{label:"",labelHidden:!0,selected:r[3],todayLabel:P("common.today"),closeLabel:P("common.close"),clearLabel:P("common.clear-input-button-label"),disabled:r[2]!=="absolute"}}),o.$on("datechange",r[17]);function _(b){r[34](b)}function m(b){r[35](b)}function p(b){r[36](b)}let d={twelveHourClock:!1,disabled:r[2]!=="absolute"};return r[5]!==void 0&&(d.hour=r[5]),r[6]!==void 0&&(d.minute=r[6]),r[7]!==void 0&&(d.second=r[7]),a=new Yt({props:d}),ie.push(()=>fe(a,"hour",_)),ie.push(()=>fe(a,"minute",m)),ie.push(()=>fe(a,"second",p)),{c(){e=N("div"),E(l.$$.fragment),t=F(),n=N("div"),E(o.$$.fragment),i=F(),E(a.$$.fragment),this.h()},l(b){e=A(b,"DIV",{class:!0});var k=W(e);T(l.$$.fragment,k),t=V(k),n=A(k,"DIV",{class:!0});var w=W(n);T(o.$$.fragment,w),i=V(w),T(a.$$.fragment,w),w.forEach(g),k.forEach(g),this.h()},h(){S(n,"class","ml-6 flex flex-col gap-2"),S(e,"class","flex flex-col gap-2")},m(b,k){I(b,e,k),y(l,e,null),C(e,t),C(e,n),y(o,n,null),C(n,i),y(a,n,null),c=!0},p(b,k){const w={};k[0]&8&&(w.selected=b[3]),k[0]&4&&(w.disabled=b[2]!=="absolute"),o.$set(w);const v={};k[0]&4&&(v.disabled=b[2]!=="absolute"),!s&&k[0]&32&&(s=!0,v.hour=b[5],ue(()=>s=!1)),!f&&k[0]&64&&(f=!0,v.minute=b[6],ue(()=>f=!1)),!u&&k[0]&128&&(u=!0,v.second=b[7],ue(()=>u=!1)),a.$set(v)},i(b){c||(h(l.$$.fragment,b),h(o.$$.fragment,b),h(a.$$.fragment,b),c=!0)},o(b){$(l.$$.fragment,b),$(o.$$.fragment,b),$(a.$$.fragment,b),c=!1},d(b){b&&g(e),D(l),D(o),D(a)}}}function Os(r){let e,l,t,n,o,i,a,s;l=new Qt({props:{label:P("common.start"),selected:r[3],todayLabel:P("common.today"),closeLabel:P("common.close"),clearLabel:P("common.clear-input-button-label")}}),l.$on("datechange",r[17]);function f(m){r[25](m)}function u(m){r[26](m)}function c(m){r[27](m)}let _={twelveHourClock:!1};return r[5]!==void 0&&(_.hour=r[5]),r[6]!==void 0&&(_.minute=r[6]),r[7]!==void 0&&(_.second=r[7]),n=new Yt({props:_}),ie.push(()=>fe(n,"hour",f)),ie.push(()=>fe(n,"minute",u)),ie.push(()=>fe(n,"second",c)),{c(){e=N("div"),E(l.$$.fragment),t=F(),E(n.$$.fragment),this.h()},l(m){e=A(m,"DIV",{class:!0});var p=W(e);T(l.$$.fragment,p),t=V(p),T(n.$$.fragment,p),p.forEach(g),this.h()},h(){S(e,"class","flex flex-col gap-2")},m(m,p){I(m,e,p),y(l,e,null),C(e,t),y(n,e,null),s=!0},p(m,p){const d={};p[0]&8&&(d.selected=m[3]),l.$set(d);const b={};!o&&p[0]&32&&(o=!0,b.hour=m[5],ue(()=>o=!1)),!i&&p[0]&64&&(i=!0,b.minute=m[6],ue(()=>i=!1)),!a&&p[0]&128&&(a=!0,b.second=m[7],ue(()=>a=!1)),n.$set(b)},i(m){s||(h(l.$$.fragment,m),h(n.$$.fragment,m),s=!0)},o(m){$(l.$$.fragment,m),$(n.$$.fragment,m),s=!1},d(m){m&&g(e),D(l),D(n)}}}function Fs(r){let e,l,t,n,o,i,a,s;l=new Qt({props:{label:P("common.end"),selected:r[4],todayLabel:P("common.today"),closeLabel:P("common.close"),clearLabel:P("common.clear-input-button-label")}}),l.$on("datechange",r[18]);function f(m){r[28](m)}function u(m){r[29](m)}function c(m){r[30](m)}let _={twelveHourClock:!1};return r[8]!==void 0&&(_.hour=r[8]),r[9]!==void 0&&(_.minute=r[9]),r[10]!==void 0&&(_.second=r[10]),n=new Yt({props:_}),ie.push(()=>fe(n,"hour",f)),ie.push(()=>fe(n,"minute",u)),ie.push(()=>fe(n,"second",c)),{c(){e=N("div"),E(l.$$.fragment),t=F(),E(n.$$.fragment),this.h()},l(m){e=A(m,"DIV",{class:!0});var p=W(e);T(l.$$.fragment,p),t=V(p),T(n.$$.fragment,p),p.forEach(g),this.h()},h(){S(e,"class","flex flex-col gap-2")},m(m,p){I(m,e,p),y(l,e,null),C(e,t),y(n,e,null),s=!0},p(m,p){const d={};p[0]&16&&(d.selected=m[4]),l.$set(d);const b={};!o&&p[0]&256&&(o=!0,b.hour=m[8],ue(()=>o=!1)),!i&&p[0]&512&&(i=!0,b.minute=m[9],ue(()=>i=!1)),!a&&p[0]&1024&&(a=!0,b.second=m[10],ue(()=>a=!1)),n.$set(b)},i(m){s||(h(l.$$.fragment,m),h(n.$$.fragment,m),s=!0)},o(m){$(l.$$.fragment,m),$(n.$$.fragment,m),s=!1},d(m){m&&g(e),D(l),D(n)}}}function Vs(r){let e=P("common.apply")+"",l;return{c(){l=q(e)},l(t){l=U(t,e)},m(t,n){I(t,l,n)},p:K,d(t){t&&g(l)}}}function Ws(r){let e,l,t=P("common.based-on-time-preface")+"",n,o,i,a;return e=new Ve({props:{name:"clock","aria-hidden":"true"}}),{c(){E(e.$$.fragment),l=F(),n=q(t),o=F(),i=q(r[13])},l(s){T(e.$$.fragment,s),l=V(s),n=U(s,t),o=V(s),i=U(s,r[13])},m(s,f){y(e,s,f),I(s,l,f),I(s,n,f),I(s,o,f),I(s,i,f),a=!0},p(s,f){(!a||f[0]&8192)&&te(i,s[13])},i(s){a||(h(e.$$.fragment,s),a=!0)},o(s){$(e.$$.fragment,s),a=!1},d(s){D(e,s),s&&g(l),s&&g(n),s&&g(o),s&&g(i)}}}function Rs(r){let e,l,t,n,o,i,a,s,f,u;const c=[Ss,Bs],_=[];function m(p,d){return p[1]?0:1}return e=m(r),l=_[e]=c[e](r),n=new St({}),a=new lt({props:{size:"xs",style:"width: 100%",disabled:r[12],$$slots:{default:[Vs]},$$scope:{ctx:r}}}),a.$on("click",r[19]),f=new Oe({props:{centered:!0,disabled:!0,class:"!pt-0",$$slots:{default:[Ws]},$$scope:{ctx:r}}}),{c(){l.c(),t=F(),E(n.$$.fragment),o=F(),i=N("div"),E(a.$$.fragment),s=F(),E(f.$$.fragment),this.h()},l(p){l.l(p),t=V(p),T(n.$$.fragment,p),o=V(p),i=A(p,"DIV",{class:!0});var d=W(i);T(a.$$.fragment,d),d.forEach(g),s=V(p),T(f.$$.fragment,p),this.h()},h(){S(i,"class","flex items-center p-2")},m(p,d){_[e].m(p,d),I(p,t,d),y(n,p,d),I(p,o,d),I(p,i,d),y(a,i,null),I(p,s,d),y(f,p,d),u=!0},p(p,d){let b=e;e=m(p),e===b?_[e].p(p,d):(G(),$(_[b],1,1,()=>{_[b]=null}),J(),l=_[e],l?l.p(p,d):(l=_[e]=c[e](p),l.c()),h(l,1),l.m(t.parentNode,t));const k={};d[0]&4096&&(k.disabled=p[12]),d[1]&4096&&(k.$$scope={dirty:d,ctx:p}),a.$set(k);const w={};d[0]&8192|d[1]&4096&&(w.$$scope={dirty:d,ctx:p}),f.$set(w)},i(p){u||(h(l),h(n.$$.fragment,p),h(a.$$.fragment,p),h(f.$$.fragment,p),u=!0)},o(p){$(l),$(n.$$.fragment,p),$(a.$$.fragment,p),$(f.$$.fragment,p),u=!1},d(p){_[e].d(p),p&&g(t),D(n,p),p&&g(o),p&&g(i),D(a),p&&g(s),D(f,p)}}}function Ms(r){let e,l,t,n;return e=new dt({props:{unroundLeft:!0,id:"time-range-filter",controls:"time-range-filter-menu",$$slots:{default:[Ls]},$$scope:{ctx:r}}}),t=new pt({props:{keepOpen:!0,id:"time-range-filter-menu",class:"w-[25rem] !overflow-visible",$$slots:{default:[Rs]},$$scope:{ctx:r}}}),{c(){E(e.$$.fragment),l=F(),E(t.$$.fragment)},l(o){T(e.$$.fragment,o),l=V(o),T(t.$$.fragment,o)},m(o,i){y(e,o,i),I(o,l,i),y(t,o,i),n=!0},p(o,i){const a={};i[1]&4096&&(a.$$scope={dirty:i,ctx:o}),e.$set(a);const s={};i[0]&16383|i[1]&4096&&(s.$$scope={dirty:i,ctx:o}),t.$set(s)},i(o){n||(h(e.$$.fragment,o),h(t.$$.fragment,o),n=!0)},o(o){$(e.$$.fragment,o),$(t.$$.fragment,o),n=!1},d(o){D(e,o),o&&g(l),D(t,o)}}}function Hs(r){let e,l,t,n,o;return l=new Ct({props:{inputId:"time-range-filter",options:[{value:"<=",label:P("common.before")},{value:"BETWEEN",label:P("common.between")},{value:">=",label:P("common.after")}],noBorderLeft:!0,noBorderRight:!0}}),n=new _t({props:{$$slots:{default:[Ms]},$$scope:{ctx:r}}}),{c(){e=N("div"),E(l.$$.fragment),t=F(),E(n.$$.fragment),this.h()},l(i){e=A(i,"DIV",{class:!0});var a=W(e);T(l.$$.fragment,a),t=V(a),T(n.$$.fragment,a),a.forEach(g),this.h()},h(){S(e,"class","flex items-center")},m(i,a){I(i,e,a),y(l,e,null),C(e,t),y(n,e,null),o=!0},p(i,a){const s={};a[0]&16383|a[1]&4096&&(s.$$scope={dirty:a,ctx:i}),n.$set(s)},i(i){o||(h(l.$$.fragment,i),h(n.$$.fragment,i),o=!0)},o(i){$(l.$$.fragment,i),$(n.$$.fragment,i),o=!1},d(i){i&&g(e),D(l),D(n)}}}function qs(r,e,l){let t,n,o,i,a,s,f,u;j(r,at,ne=>l(23,s=ne)),j(r,mt,ne=>l(24,u=ne));const{filter:c,handleSubmit:_}=Fe(Be);j(r,c,ne=>l(22,a=ne));let m=bt(new Date),p=bt(new Date),d="",b="",k="",w="",v="",L="";const R=["minutes","hours","days"];let B=R[0],M="";const x=He("relative");j(r,x,ne=>l(2,f=ne));const ee=ne=>{l(3,m=bt(ne.detail))},Y=ne=>{l(4,p=bt(ne.detail))},O=(ne,Re)=>{let Se=new Date(ne);return Re.hour&&(Se=To(Se,parseInt(Re.hour))),Re.minute&&(Se=Do(Se,parseInt(Re.minute))),Re.second&&(Se=Lo(Se,parseInt(Re.second))),Se},Q=()=>{if(f==="relative"&&!o){if(!M)return;le(c,a.value=Wt(`${M} ${B}`),a),le(c,a.customDate=!1,a)}else{let ne=O(m,{hour:d,minute:b,second:k}),Re=O(p,{hour:w,minute:v,second:L});const Se=Qr(s),Xt=fl.zonedTimeToUtc(ne,Se).toISOString(),pr=fl.zonedTimeToUtc(Re,Se).toISOString(),hr=o?`BETWEEN "${Xt}" AND "${pr}"`:Xt;le(c,a.value=hr,a),t?(le(c,a.customDate=!0,a),le(c,a.conditional="",a)):le(c,a.customDate=!1,a)}_()},z=ne=>ne?isNaN(Number(ne))||isNaN(parseFloat(ne)):!1;function H(ne){d=ne,l(5,d)}function ae(ne){b=ne,l(6,b)}function _e(ne){k=ne,l(7,k)}function de(ne){w=ne,l(8,w)}function we(ne){v=ne,l(9,v)}function Z(ne){L=ne,l(10,L)}function ke(ne){M=ne,l(0,M)}function ve(ne){B=ne,l(11,B)}const We=()=>le(x,f="relative",f);function gt(ne){d=ne,l(5,d)}function mr(ne){b=ne,l(6,b)}function _r(ne){k=ne,l(7,k)}const dr=()=>le(x,f="absolute",f);return r.$$.update=()=>{r.$$.dirty[0]&4194304&&l(1,t=a.conditional==="BETWEEN"),r.$$.dirty[0]&8388608&&l(13,n=Kr(s)),r.$$.dirty[0]&16777218&&l(21,o=t||!u),r.$$.dirty[0]&2097157&&l(12,i=f==="relative"&&!o&&(!M||z(M)))},[M,t,f,m,p,d,b,k,w,v,L,B,i,n,c,R,x,ee,Y,Q,z,o,a,s,u,H,ae,_e,de,we,Z,ke,ve,We,gt,mr,_r,dr]}class Us extends re{constructor(e){super(),oe(this,e,qs,Hs,se,{},null,[-1,-1])}}function js(r){let e,l,t,n,o;e=new Ct({props:{inputId:"duration-filter-search",noBorderLeft:!0}});function i(s){r[6](s)}let a={label:r[2].attribute,labelHidden:!0,id:"duration-filter-search",type:"search",placeholder:`${P("common.enter")} ${r[2].attribute} (${P("workflows.duration-filter-placeholder")})`,icon:"search",class:"w-full",unroundLeft:!0,valid:r[1]};return r[0]!==void 0&&(a.value=r[0]),t=new ye({props:a}),ie.push(()=>fe(t,"value",i)),t.$on("keydown",r[4]),t.$on("input",r[5]),{c(){E(e.$$.fragment),l=F(),E(t.$$.fragment)},l(s){T(e.$$.fragment,s),l=V(s),T(t.$$.fragment,s)},m(s,f){y(e,s,f),I(s,l,f),y(t,s,f),o=!0},p(s,[f]){const u={};f&4&&(u.label=s[2].attribute),f&4&&(u.placeholder=`${P("common.enter")} ${s[2].attribute} (${P("workflows.duration-filter-placeholder")})`),f&2&&(u.valid=s[1]),!n&&f&1&&(n=!0,u.value=s[0],ue(()=>n=!1)),t.$set(u)},i(s){o||(h(e.$$.fragment,s),h(t.$$.fragment,s),o=!0)},o(s){$(e.$$.fragment,s),$(t.$$.fragment,s),o=!1},d(s){D(e,s),s&&g(l),D(t,s)}}}function zs(r,e,l){let t;const{filter:n,handleSubmit:o}=Fe(Be);j(r,n,c=>l(2,t=c));let i=t.value,a=!0;const s=c=>{const _=i.trim();a&&c.key==="Enter"&&_!==""&&(le(n,t.value=_,t),c.preventDefault(),o())},f=c=>{zr(c.target.value.trim())?l(1,a=!0):l(1,a=!1)};function u(c){i=c,l(0,i)}return[i,a,t,n,s,f,u]}class Ks extends re{constructor(e){super(),oe(this,e,zs,js,se,{})}}function Qs(r){let e;const l=r[5].default,t=he(l,r,r[4],null);return{c(){t&&t.c()},l(n){t&&t.l(n)},m(n,o){t&&t.m(n,o),e=!0},p(n,o){t&&t.p&&(!e||o&16)&&ge(t,l,n,n[4],e?$e(l,n[4],o,null):be(n[4]),null)},i(n){e||(h(t,n),e=!0)},o(n){$(t,n),e=!1},d(n){t&&t.d(n)}}}function Ys(r){let e,l,t,n;const o=r[5].default,i=he(o,r,r[4],null);return{c(){e=N("button"),i&&i.c(),this.h()},l(a){e=A(a,"BUTTON",{class:!0});var s=W(e);i&&i.l(s),s.forEach(g),this.h()},h(){S(e,"class","flex items-center gap-1")},m(a,s){I(a,e,s),i&&i.m(e,null),l=!0,t||(n=ce(e,"click",r[6]),t=!0)},p(a,s){i&&i.p&&(!l||s&16)&&ge(i,o,a,a[4],l?$e(o,a[4],s,null):be(a[4]),null)},i(a){l||(h(i,a),l=!0)},o(a){$(i,a),l=!1},d(a){a&&g(e),i&&i.d(a),t=!1,n()}}}function Gs(r){let e,l,t,n,o,i,a,s,f,u;const c=[Ys,Qs],_=[];function m(p,d){return p[1]?0:1}return l=m(r),t=_[l]=c[l](r),i=new Ve({props:{name:"close"}}),{c(){e=N("span"),t.c(),n=F(),o=N("button"),E(i.$$.fragment),this.h()},l(p){e=A(p,"SPAN",{class:!0});var d=W(e);t.l(d),n=V(d),o=A(d,"BUTTON",{"aria-label":!0});var b=W(o);T(i.$$.fragment,b),b.forEach(g),d.forEach(g),this.h()},h(){S(o,"aria-label",r[2]),S(e,"class",a="chip "+r[0]+" svelte-jjsz31")},m(p,d){I(p,e,d),_[l].m(e,null),C(e,n),C(e,o),y(i,o,null),s=!0,f||(u=ce(o,"click",r[3]),f=!0)},p(p,[d]){let b=l;l=m(p),l===b?_[l].p(p,d):(G(),$(_[b],1,1,()=>{_[b]=null}),J(),t=_[l],t?t.p(p,d):(t=_[l]=c[l](p),t.c()),h(t,1),t.m(e,n)),(!s||d&4)&&S(o,"aria-label",p[2]),(!s||d&1&&a!==(a="chip "+p[0]+" svelte-jjsz31"))&&S(e,"class",a)},i(p){s||(h(t),h(i.$$.fragment,p),s=!0)},o(p){$(t),$(i.$$.fragment,p),s=!1},d(p){p&&g(e),_[l].d(),D(i),f=!1,u()}}}function Js(r,e,l){let{$$slots:t={},$$scope:n}=e,{intent:o="default"}=e,{button:i=!1}=e,{removeButtonLabel:a}=e;const s=xe(),f=c=>{c.preventDefault(),s("remove")};function u(c){Me.call(this,r,c)}return r.$$set=c=>{"intent"in c&&l(0,o=c.intent),"button"in c&&l(1,i=c.button),"removeButtonLabel"in c&&l(2,a=c.removeButtonLabel),"$$scope"in c&&l(4,n=c.$$scope)},[o,i,a,f,n,t,u]}class Xs extends re{constructor(e){super(),oe(this,e,Js,Gs,se,{intent:0,button:1,removeButtonLabel:2})}}function Cl(r,e,l){const t=r.slice();t[17]=e[l],t[24]=l;const n=t[17];return t[18]=n.attribute,t[19]=n.type,t[20]=n.value,t[21]=n.conditional,t[22]=n.customDate,t}function Nl(r){let e,l,t,n,o;function i(){return r[14](r[24])}function a(){return r[15](r[24],r[17])}return l=new Xs({props:{removeButtonLabel:P("workflows.remove-filter-label",{attribute:r[18]}),intent:"default",button:!0,$$slots:{default:[ra]},$$scope:{ctx:r}}}),l.$on("remove",i),l.$on("click",a),{c(){e=N("div"),E(l.$$.fragment),this.h()},l(s){e=A(s,"DIV",{"data-testid":!0});var f=W(e);T(l.$$.fragment,f),f.forEach(g),this.h()},h(){S(e,"data-testid",t=r[17].attribute+"-"+r[24])},m(s,f){I(s,e,f),y(l,e,null),o=!0},p(s,f){r=s;const u={};f&2&&(u.removeButtonLabel=P("workflows.remove-filter-label",{attribute:r[18]})),f&33554482&&(u.$$scope={dirty:f,ctx:r}),l.$set(u),(!o||f&2&&t!==(t=r[17].attribute+"-"+r[24]))&&S(e,"data-testid",t)},i(s){o||(h(l.$$.fragment,s),n||Ue(()=>{n=je(e,qn,{}),n.start()}),o=!0)},o(s){$(l.$$.fragment,s),o=!1},d(s){s&&g(e),D(l)}}}function Zs(r){let e,l=r[18]+"",t,n,o;function i(f,u){return u&2&&(o=null),o==null&&(o=!!Kt({attribute:f[18],type:f[19]})),o?ta:ea}let a=i(r,-1),s=a(r);return{c(){e=N("span"),t=q(l),n=F(),s.c(),this.h()},l(f){e=A(f,"SPAN",{class:!0});var u=W(e);t=U(u,l),n=V(u),s.l(u),u.forEach(g),this.h()},h(){S(e,"class","max-w-xs truncate md:max-w-lg xl:max-w-2xl")},m(f,u){I(f,e,u),C(e,t),C(e,n),s.m(e,null)},p(f,u){u&2&&l!==(l=f[18]+"")&&te(t,l),a===(a=i(f,u))&&s?s.p(f,u):(s.d(1),s=a(f),s&&(s.c(),s.m(e,null)))},i:K,o:K,d(f){f&&g(e),s.d()}}}function xs(r){let e,l=r[18]+"",t,n,o=r[21]+"",i,a,s,f,u;return f=new qt({props:{status:r[20]}}),{c(){e=N("span"),t=q(l),n=F(),i=q(o),a=F(),s=N("span"),E(f.$$.fragment),this.h()},l(c){e=A(c,"SPAN",{class:!0});var _=W(e);t=U(_,l),n=V(_),i=U(_,o),a=V(_),s=A(_,"SPAN",{class:!0});var m=W(s);T(f.$$.fragment,m),m.forEach(g),_.forEach(g),this.h()},h(){S(s,"class","-py-1 ml-1"),S(e,"class","flex")},m(c,_){I(c,e,_),C(e,t),C(e,n),C(e,i),C(e,a),C(e,s),y(f,s,null),u=!0},p(c,_){(!u||_&2)&&l!==(l=c[18]+"")&&te(t,l),(!u||_&2)&&o!==(o=c[21]+"")&&te(i,o);const m={};_&2&&(m.status=c[20]),f.$set(m)},i(c){u||(h(f.$$.fragment,c),u=!0)},o(c){$(f.$$.fragment,c),u=!1},d(c){c&&g(e),D(f)}}}function ea(r){let e=r[21]+"",l,t,n=(it({attribute:r[18],type:r[19]})?`"${r[20]}"`:r[20])+"",o;return{c(){l=q(e),t=F(),o=q(n)},l(i){l=U(i,e),t=V(i),o=U(i,n)},m(i,a){I(i,l,a),I(i,t,a),I(i,o,a)},p(i,a){a&2&&e!==(e=i[21]+"")&&te(l,e),a&2&&n!==(n=(it({attribute:i[18],type:i[19]})?`"${i[20]}"`:i[20])+"")&&te(o,n)},d(i){i&&g(l),i&&g(t),i&&g(o)}}}function ta(r){let e;function l(o,i){return o[22]?na:la}let t=l(r),n=t(r);return{c(){n.c(),e=X()},l(o){n.l(o),e=X()},m(o,i){n.m(o,i),I(o,e,i)},p(o,i){t===(t=l(o))&&n?n.p(o,i):(n.d(1),n=t(o),n&&(n.c(),n.m(e.parentNode,e)))},d(o){n.d(o),o&&g(e)}}}function la(r){let e=r[10](r[21])+"",l,t,n=Ie(r[20],r[4],{relative:r[5],abbrFormat:!0})+"",o;return{c(){l=q(e),t=F(),o=q(n)},l(i){l=U(i,e),t=V(i),o=U(i,n)},m(i,a){I(i,l,a),I(i,t,a),I(i,o,a)},p(i,a){a&2&&e!==(e=i[10](i[21])+"")&&te(l,e),a&50&&n!==(n=Ie(i[20],i[4],{relative:i[5],abbrFormat:!0})+"")&&te(o,n)},d(i){i&&g(l),i&&g(t),i&&g(o)}}}function na(r){let e=r[11](r[20],r[4],r[5])+"",l;return{c(){l=q(e)},l(t){l=U(t,e)},m(t,n){I(t,l,n)},p(t,n){n&50&&e!==(e=t[11](t[20],t[4],t[5])+"")&&te(l,e)},d(t){t&&g(l)}}}function ra(r){let e,l,t,n,o;const i=[xs,Zs],a=[];function s(f,u){return u&2&&(e=null),e==null&&(e=!!(f[18]==="ExecutionStatus"&&Dr(f[20]))),e?0:1}return l=s(r,-1),t=a[l]=i[l](r),{c(){t.c(),n=X()},l(f){t.l(f),n=X()},m(f,u){a[l].m(f,u),I(f,n,u),o=!0},p(f,u){let c=l;l=s(f,u),l===c?a[l].p(f,u):(G(),$(a[c],1,1,()=>{a[c]=null}),J(),t=a[l],t?t.p(f,u):(t=a[l]=i[l](f),t.c()),h(t,1),t.m(n.parentNode,n))},i(f){o||(h(t),o=!0)},o(f){$(t),o=!1},d(f){a[l].d(f),f&&g(n)}}}function Al(r,e){let l,t,n,o=e[18]&&Nl(e);return{key:r,first:null,c(){l=X(),o&&o.c(),t=X(),this.h()},l(i){l=X(),o&&o.l(i),t=X(),this.h()},h(){this.first=l},m(i,a){I(i,l,a),o&&o.m(i,a),I(i,t,a),n=!0},p(i,a){e=i,e[18]?o?(o.p(e,a),a&2&&h(o,1)):(o=Nl(e),o.c(),h(o,1),o.m(t.parentNode,t)):o&&(G(),$(o,1,1,()=>{o=null}),J())},i(i){n||(h(o),n=!0)},o(i){$(o),n=!1},d(i){i&&g(l),o&&o.d(i),i&&g(t)}}}function Pl(r){let e,l;return e=new lt({props:{variant:"secondary",size:"xs",$$slots:{default:[oa]},$$scope:{ctx:r}}}),e.$on("click",r[9]),{c(){E(e.$$.fragment)},l(t){T(e.$$.fragment,t)},m(t,n){y(e,t,n),l=!0},p(t,n){const o={};n&33554432&&(o.$$scope={dirty:n,ctx:t}),e.$set(o)},i(t){l||(h(e.$$.fragment,t),l=!0)},o(t){$(e.$$.fragment,t),l=!1},d(t){D(e,t)}}}function oa(r){let e=P("common.view-more")+"",l;return{c(){l=q(e)},l(t){l=U(t,e)},m(t,n){I(t,l,n)},p:K,d(t){t&&g(l)}}}function sa(r){let e,l=[],t=new Map,n,o,i=r[1];const a=f=>`${f[17].attribute}-${f[24]}`;for(let f=0;f{s=null}),J()),(!o||u&2)&&me(e,"pt-2",f[1].length)},i(f){if(!o){for(let u=0;ul(13,o=L)),j(r,Te,L=>l(16,s=L)),j(r,at,L=>l(4,f=L)),j(r,Qn,L=>l(5,u=L));const{filter:c,activeQueryIndex:_}=Fe(Be);j(r,c,L=>l(3,a=L)),j(r,_,L=>l(2,i=L));const m=L=>{if(o.splice(L,1),pe.set(o),zt(s.url,o),L===o.length){const R=o[o.length-1];R&&(R.operator="")}L===i?(le(_,i=null,i),le(c,a=qe(),a)):L{n&&l(12,p+=5)},b=L=>["<","<="].includes(L)?P("common.before").toLowerCase():[">",">="].includes(L)?P("common.after").toLowerCase():L,k=(L,R,B)=>{const[M,x,ee,Y]=L.split(" ");return`${M.toLowerCase()} ${Ie(x,R,{relative:B,abbrFormat:!0})} ${ee.toLowerCase()} ${Ie(Y,R,{relative:B,abbrFormat:!0})}`},w=L=>m(L),v=(L,R)=>{le(_,i=L,i),le(c,a={...R},a)};return r.$$.update=()=>{r.$$.dirty&12288&&l(1,t=o.slice(0,p)),r.$$.dirty&12288&&l(0,n=p{v=null}),J()),(!b||B&2048)&&S(s,"max",R[11]),(!b||B&4096)&&S(s,"min",R[12]),(!b||B&256)&&(s.disabled=R[8]),(!b||B&64)&&S(s,"placeholder",R[6]),(!b||B&4)&&S(s,"id",R[2]),(!b||B&128)&&S(s,"name",R[7]),B&1&&Mn(s.value)!==R[0]&&xt(s,R[0]),(!b||B&256)&&me(s,"disabled",R[8]),(!b||B&512&&f!==(f="input-container "+R[9]+" svelte-1851tme"))&&S(i,"class",f),(!b||B&768)&&me(i,"disabled",R[8]),(!b||B&33280)&&me(i,"search",R[15]),(!b||B&8704)&&me(i,"unroundRight",R[13]),(!b||B&16896)&&me(i,"unroundLeft",R[14]),(!b||B&66048)&&me(i,"invalid",!R[16]),(!b||B&32)&&te(_,R[5]),(!b||B&131072&&m!==(m=Zt(R[17].class)+" svelte-1851tme"))&&S(e,"class",m),!R[16]&&R[10]?L?L.p(R,B):(L=Fl(R),L.c(),L.m(d.parentNode,d)):L&&(L.d(1),L=null)},i(R){b||(h(v),b=!0)},o(R){$(v),b=!1},d(R){R&&g(e),v&&v.d(),R&&g(p),L&&L.d(R),R&&g(d),k=!1,ct(w)}}}function ua(r,e,l){let{icon:t=null}=e,{id:n}=e,{value:o}=e,{label:i}=e,{labelHidden:a=!1}=e,{units:s=""}=e,{placeholder:f=""}=e,{name:u=n}=e,{disabled:c=!1}=e,{theme:_="light"}=e,{hintText:m=""}=e,{max:p=void 0}=e,{min:d=void 0}=e,{unroundRight:b=!1}=e,{unroundLeft:k=!1}=e,{search:w=!1}=e,v=!0;const L=O=>{d!==void 0&&Op?l(16,v=!1):l(16,v=!0)};function R(O){Me.call(this,r,O)}function B(O){Me.call(this,r,O)}function M(O){Me.call(this,r,O)}function x(O){Me.call(this,r,O)}function ee(O){Me.call(this,r,O)}function Y(){o=Mn(this.value),l(0,o)}return r.$$set=O=>{l(17,e=vt(vt({},e),It(O))),"icon"in O&&l(1,t=O.icon),"id"in O&&l(2,n=O.id),"value"in O&&l(0,o=O.value),"label"in O&&l(3,i=O.label),"labelHidden"in O&&l(4,a=O.labelHidden),"units"in O&&l(5,s=O.units),"placeholder"in O&&l(6,f=O.placeholder),"name"in O&&l(7,u=O.name),"disabled"in O&&l(8,c=O.disabled),"theme"in O&&l(9,_=O.theme),"hintText"in O&&l(10,m=O.hintText),"max"in O&&l(11,p=O.max),"min"in O&&l(12,d=O.min),"unroundRight"in O&&l(13,b=O.unroundRight),"unroundLeft"in O&&l(14,k=O.unroundLeft),"search"in O&&l(15,w=O.search)},r.$$.update=()=>{r.$$.dirty&1&&L(o)},e=It(e),[o,t,n,i,a,s,f,u,c,_,m,p,d,b,k,w,v,e,R,B,M,x,ee,Y]}class ca extends re{constructor(e){super(),oe(this,e,ua,fa,se,{icon:1,id:2,value:0,label:3,labelHidden:4,units:5,placeholder:6,name:7,disabled:8,theme:9,hintText:10,max:11,min:12,unroundRight:13,unroundLeft:14,search:15})}}function ma(r){let e,l,t,n,o,i;l=new Ct({props:{inputId:"number-filter-search",noBorderLeft:!0,noBorderRight:!0}});function a(f){r[4](f)}let s={label:P("common.number-input-placeholder"),labelHidden:!0,id:"number-filter-search",icon:"search",placeholder:P("common.number-input-placeholder"),min:ar,unroundLeft:!0,search:!0,class:"-mr-2"};return r[0]!==void 0&&(s.value=r[0]),n=new ca({props:s}),ie.push(()=>fe(n,"value",a)),n.$on("keydown",r[3]),{c(){e=N("div"),E(l.$$.fragment),t=F(),E(n.$$.fragment),this.h()},l(f){e=A(f,"DIV",{class:!0});var u=W(e);T(l.$$.fragment,u),t=V(u),T(n.$$.fragment,u),u.forEach(g),this.h()},h(){S(e,"class","flex items-center")},m(f,u){I(f,e,u),y(l,e,null),C(e,t),y(n,e,null),i=!0},p(f,[u]){const c={};!o&&u&1&&(o=!0,c.value=f[0],ue(()=>o=!1)),n.$set(c)},i(f){i||(h(l.$$.fragment,f),h(n.$$.fragment,f),i=!0)},o(f){$(l.$$.fragment,f),$(n.$$.fragment,f),i=!1},d(f){f&&g(e),D(l),D(n)}}}const ar=0;function _a(r,e,l){let t,n;const{filter:o,focusedElementId:i,handleSubmit:a}=Fe(Be);j(r,o,c=>l(5,t=c)),j(r,i,c=>l(6,n=c));let s=t.value?Number(t.value):null;const f=c=>{le(i,n="",n),c.key==="Enter"&&s!==null&&s>=ar&&(le(o,t.value=String(s),t),c.preventDefault(),a())};function u(c){s=c,l(0,s)}return[s,o,i,f,u]}class da extends re{constructor(e){super(),oe(this,e,_a,ma,se,{})}}const{Boolean:pa}=$r;function Vl(r,e,l){const t=r.slice();t[15]=e[l].value,t[16]=e[l].label,t[17]=e[l].type;const n=Ia(t[15],t[4]);return t[18]=n,t}function ha(r){let e=(r[2].attribute||P("workflows.filter"))+"",l;return{c(){l=q(e)},l(t){l=U(t,e)},m(t,n){I(t,l,n)},p(t,n){n&4&&e!==(e=(t[2].attribute||P("workflows.filter"))+"")&&te(l,e)},d(t){t&&g(l)}}}function Wl(r){let e,l;return e=new Ve({props:{name:"filter"}}),{c(){E(e.$$.fragment)},l(t){T(e.$$.fragment,t)},m(t,n){y(e,t,n),l=!0},i(t){l||(h(e.$$.fragment,t),l=!0)},o(t){$(e.$$.fragment,t),l=!1},d(t){D(e,t)}}}function ga(r){let e,l,t=!r[2].attribute&&Wl();return{c(){t&&t.c(),e=X()},l(n){t&&t.l(n),e=X()},m(n,o){t&&t.m(n,o),I(n,e,o),l=!0},p(n,o){n[2].attribute?t&&(G(),$(t,1,1,()=>{t=null}),J()):t?o&4&&h(t,1):(t=Wl(),t.c(),h(t,1),t.m(e.parentNode,e))},i(n){l||(h(t),l=!0)},o(n){$(t),l=!1},d(n){t&&t.d(n),n&&g(e)}}}function Rl(r){let e,l;return e=new Oe({props:{class:"whitespace-nowrap",disabled:!0,$$slots:{default:[ba]},$$scope:{ctx:r}}}),{c(){E(e.$$.fragment)},l(t){T(e.$$.fragment,t)},m(t,n){y(e,t,n),l=!0},p(t,n){const o={};n&2097152&&(o.$$scope={dirty:n,ctx:t}),e.$set(o)},i(t){l||(h(e.$$.fragment,t),l=!0)},o(t){$(e.$$.fragment,t),l=!1},d(t){D(e,t)}}}function ba(r){let e=P("common.no-results")+"",l;return{c(){l=q(e)},l(t){l=U(t,e)},m(t,n){I(t,l,n)},p:K,d(t){t&&g(l)}}}function $a(r){let e=r[16]+"",l,t;return{c(){l=q(e),t=F()},l(n){l=U(n,e),t=V(n)},m(n,o){I(n,l,o),I(n,t,o)},p(n,o){o&2&&e!==(e=n[16]+"")&&te(l,e)},d(n){n&&g(l),n&&g(t)}}}function Ml(r){let e,l;function t(){return r[13](r[15],r[17])}return e=new Oe({props:{disabled:r[18],$$slots:{default:[$a]},$$scope:{ctx:r}}}),e.$on("click",t),{c(){E(e.$$.fragment)},l(n){T(e.$$.fragment,n)},m(n,o){y(e,n,o),l=!0},p(n,o){r=n;const i={};o&18&&(i.disabled=r[18]),o&2097154&&(i.$$scope={dirty:o,ctx:r}),e.$set(i)},i(n){l||(h(e.$$.fragment,n),l=!0)},o(n){$(e.$$.fragment,n),l=!1},d(n){D(e,n)}}}function ka(r){let e,l,t,n,o;function i(_){r[12](_)}let a={label:P("common.search"),labelHidden:!0,id:"filter-search",noBorder:!0,icon:"search",placeholder:P("common.search"),class:"mb-1"};r[0]!==void 0&&(a.value=r[0]),e=new ye({props:a}),ie.push(()=>fe(e,"value",i));let s=r[1],f=[];for(let _=0;_$(f[_],1,1,()=>{f[_]=null});let c=null;return s.length||(c=Rl(r)),{c(){E(e.$$.fragment),t=F();for(let _=0;_l=!1)),e.$set(p),m&274){s=_[1];let d;for(d=0;d{c=null}),J()):(c=Rl(_),c.c(),h(c,1),c.m(n.parentNode,n))}},i(_){if(!o){h(e.$$.fragment,_);for(let m=0;m(l.conditional==="="||l.conditional==="!=")&&l.attribute===r)}function Ea(r,e,l){let t,n,o,i,a,s,f;j(r,xr,w=>l(10,o=w)),j(r,pe,w=>l(4,f=w));const{filter:u,activeQueryIndex:c,focusedElementId:_}=Fe(Be);j(r,u,w=>l(2,a=w)),j(r,c,w=>l(3,s=w)),j(r,_,w=>l(14,i=w));function m(w,v){l(0,p=""),u.set({...qe(),attribute:w,conditional:"=",type:v}),le(_,i=sr({attribute:w,type:v}),i)}let p="";const d=()=>l(0,p="");function b(w){p=w,l(0,p)}const k=(w,v)=>{m(w,v)};return r.$$.update=()=>{r.$$.dirty&1024&&l(9,t=o.filter(({value:w,type:v})=>!nr({attribute:w,type:v}))),r.$$.dirty&513&&l(1,n=p?t.filter(w=>w.value.toLowerCase().includes(p.toLowerCase())):t)},[p,n,a,s,f,u,c,_,m,t,o,d,b,k]}class Ta extends re{constructor(e){super(),oe(this,e,Ea,va,se,{})}}function Hl(r,e,l){const t=r.slice();t[17]=e[l];const n=t[0].some(function(...i){return r[12](t[17],...i)})||!t[0].length&&t[17]==="All";return t[18]=n,t}function ya(r){let e=r[1].attribute+"",l;return{c(){l=q(e)},l(t){l=U(t,e)},m(t,n){I(t,l,n)},p(t,n){n&2&&e!==(e=t[1].attribute+"")&&te(l,e)},d(t){t&&g(l)}}}function Da(r){let e,l;return e=new qt({props:{status:r[17]}}),{c(){E(e.$$.fragment)},l(t){T(e.$$.fragment,t)},m(t,n){y(e,t,n),l=!0},p:K,i(t){l||(h(e.$$.fragment,t),l=!0)},o(t){$(e.$$.fragment,t),l=!1},d(t){D(e,t)}}}function La(r){let e,l;return e=new Pe({props:{key:"workflows.all-statuses"}}),{c(){E(e.$$.fragment)},l(t){T(e.$$.fragment,t)},m(t,n){y(e,t,n),l=!0},p:K,i(t){l||(h(e.$$.fragment,t),l=!0)},o(t){$(e.$$.fragment,t),l=!1},d(t){D(e,t)}}}function Ba(r){let e,l,t,n;const o=[La,Da],i=[];function a(s,f){return s[17]==="All"?0:1}return e=a(r),l=i[e]=o[e](r),{c(){l.c(),t=X()},l(s){l.l(s),t=X()},m(s,f){i[e].m(s,f),I(s,t,f),n=!0},p(s,f){l.p(s,f)},i(s){n||(h(l),n=!0)},o(s){$(l),n=!1},d(s){i[e].d(s),s&&g(t)}}}function Sa(r){let e,l;function t(){return r[10](r[17])}return e=new Mt({props:{slot:"leading",checked:r[18],label:r[17],labelHidden:!0}}),e.$on("click",t),{c(){E(e.$$.fragment)},l(n){T(e.$$.fragment,n)},m(n,o){y(e,n,o),l=!0},p(n,o){r=n;const i={};o&1&&(i.checked=r[18]),e.$set(i)},i(n){l||(h(e.$$.fragment,n),l=!0)},o(n){$(e.$$.fragment,n),l=!1},d(n){D(e,n)}}}function ql(r,e){let l,t,n;function o(){return e[11](e[17])}return t=new Oe({props:{"data-testid":e[17],$$slots:{leading:[Sa],default:[Ba]},$$scope:{ctx:e}}}),t.$on("click",o),{key:r,first:null,c(){l=X(),E(t.$$.fragment),this.h()},l(i){l=X(),T(t.$$.fragment,i),this.h()},h(){this.first=l},m(i,a){I(i,l,a),y(t,i,a),n=!0},p(i,a){e=i;const s={};a&2097153&&(s.$$scope={dirty:a,ctx:e}),t.$set(s)},i(i){n||(h(t.$$.fragment,i),n=!0)},o(i){$(t.$$.fragment,i),n=!1},d(i){i&&g(l),D(t,i)}}}function Ca(r){let e=[],l=new Map,t,n,o,i=nl;const a=s=>s[17];for(let s=0;sl(8,o=L)),j(r,Te,L=>l(13,a=L));const{filter:f,resetFilter:u}=Fe(Be);j(r,f,L=>l(1,i=L));const c=He(!0);j(r,c,L=>l(2,s=L));function _(){le(pe,o=t,o),zt(a.url,o)}function m(L){return{...i,value:L}}function p(L){return L.length===1?[m(L[0].value)]:L.map((R,B)=>{const M=B===L.length-1?"":"OR";return{...R,operator:M}})}const d=L=>{if(L==="All")l(7,t=o.filter(R=>R.attribute!=="ExecutionStatus"));else if(n.find(R=>R.value===L)){const R=o.filter(B=>!Xe(B.attribute));l(7,t=[...R,...p(n.filter(B=>B.value!==L))])}else if(!n.length)l(7,t=[...t,m(L)]);else{const R=t.filter(B=>!Xe(B.attribute));l(7,t=[...R,...p([...n,m(L)])])}_()},b=()=>{s&&u()},k=L=>d(L),w=L=>{d(L)},v=(L,R)=>R.value===L;return r.$$.update=()=>{r.$$.dirty&256&&l(7,t=[...o]),r.$$.dirty&128&&l(0,n=t.filter(L=>Xe(L.attribute)))},[n,i,s,f,u,c,d,t,o,b,k,w,v]}class Oa extends re{constructor(e){super(),oe(this,e,Pa,Aa,se,{})}}function Fa(r){let e,l,t,n,o;e=new Ct({props:{options:[{value:"=",label:P("common.equal-to")},{value:"!=",label:P("common.not-equal-to")}],inputId:"text-filter-search",noBorderLeft:!0}});function i(s){r[4](s)}let a={label:r[1].attribute,labelHidden:!0,id:"text-filter-search",type:"search",placeholder:`${P("common.enter")} ${r[1].attribute}`,icon:"search",class:"w-full",unroundLeft:!0};return r[0]!==void 0&&(a.value=r[0]),t=new ye({props:a}),ie.push(()=>fe(t,"value",i)),t.$on("keydown",r[3]),{c(){E(e.$$.fragment),l=F(),E(t.$$.fragment)},l(s){T(e.$$.fragment,s),l=V(s),T(t.$$.fragment,s)},m(s,f){y(e,s,f),I(s,l,f),y(t,s,f),o=!0},p(s,[f]){const u={};f&2&&(u.label=s[1].attribute),f&2&&(u.placeholder=`${P("common.enter")} ${s[1].attribute}`),!n&&f&1&&(n=!0,u.value=s[0],ue(()=>n=!1)),t.$set(u)},i(s){o||(h(e.$$.fragment,s),h(t.$$.fragment,s),o=!0)},o(s){$(e.$$.fragment,s),$(t.$$.fragment,s),o=!1},d(s){D(e,s),s&&g(l),D(t,s)}}}function Va(r,e,l){let t;const{filter:n,handleSubmit:o}=Fe(Be);j(r,n,f=>l(1,t=f));let i=t.value;function a(f){f.key==="Enter"&&i!==""&&(f.preventDefault(),le(n,t.value=i,t),o())}function s(f){i=f,l(0,i)}return[i,t,n,a,s]}class Wa extends re{constructor(e){super(),oe(this,e,Va,Fa,se,{})}}function Ra(r){let e,l,t,n,o,i,a,s,f,u,c;const _=[qa,Ha],m=[];function p(k,w){return w&1&&(l=null),l==null&&(l=!!Xe(k[0])),l?0:1}t=p(r,-1),n=m[t]=_[t](r);let d=r[0]&&Ul(r),b=r[2]&&jl(r);return{c(){e=N("div"),n.c(),o=F(),d&&d.c(),i=F(),a=N("div"),b&&b.c(),this.h()},l(k){e=A(k,"DIV",{class:!0});var w=W(e);n.l(w),o=V(w),d&&d.l(w),w.forEach(g),i=V(k),a=A(k,"DIV",{class:!0});var v=W(a);b&&b.l(v),v.forEach(g),this.h()},h(){S(e,"class","flex items-center svelte-d4361j"),me(e,"filter",!r[2]),S(a,"class",s="flex flex-col sm:flex-row "+(r[2]?"w-full justify-between":"justify-end"))},m(k,w){I(k,e,w),m[t].m(e,null),C(e,o),d&&d.m(e,null),I(k,i,w),I(k,a,w),b&&b.m(a,null),f=!0,u||(c=ce(e,"keyup",r[9]),u=!0)},p(k,w){let v=t;t=p(k,w),t!==v&&(G(),$(m[v],1,1,()=>{m[v]=null}),J(),n=m[t],n||(n=m[t]=_[t](k),n.c()),h(n,1),n.m(e,o)),k[0]?d?(d.p(k,w),w&1&&h(d,1)):(d=Ul(k),d.c(),h(d,1),d.m(e,null)):d&&(G(),$(d,1,1,()=>{d=null}),J()),(!f||w&4)&&me(e,"filter",!k[2]),k[2]?b?(b.p(k,w),w&4&&h(b,1)):(b=jl(k),b.c(),h(b,1),b.m(a,null)):b&&(G(),$(b,1,1,()=>{b=null}),J()),(!f||w&4&&s!==(s="flex flex-col sm:flex-row "+(k[2]?"w-full justify-between":"justify-end")))&&S(a,"class",s)},i(k){f||(h(n),h(d),h(b),f=!0)},o(k){$(n),$(d),$(b),f=!1},d(k){k&&g(e),m[t].d(),d&&d.d(),k&&g(i),k&&g(a),b&&b.d(),u=!1,c()}}}function Ma(r){let e,l;return e=new ts({}),{c(){E(e.$$.fragment)},l(t){T(e.$$.fragment,t)},m(t,n){y(e,t,n),l=!0},p:K,i(t){l||(h(e.$$.fragment,t),l=!0)},o(t){$(e.$$.fragment,t),l=!1},d(t){D(e,t)}}}function Ha(r){let e,l;return e=new Ta({}),{c(){E(e.$$.fragment)},l(t){T(e.$$.fragment,t)},m(t,n){y(e,t,n),l=!0},i(t){l||(h(e.$$.fragment,t),l=!0)},o(t){$(e.$$.fragment,t),l=!1},d(t){D(e,t)}}}function qa(r){let e,l;return e=new Oa({}),{c(){E(e.$$.fragment)},l(t){T(e.$$.fragment,t)},m(t,n){y(e,t,n),l=!0},i(t){l||(h(e.$$.fragment,t),l=!0)},o(t){$(e.$$.fragment,t),l=!1},d(t){D(e,t)}}}function Ul(r){let e,l,t,n,o,i,a,s,f;const u=[Qa,Ka,za,ja,Ua],c=[];function _(m,p){return p&3&&(e=null),p&1&&(l=null),p&3&&(t=null),p&3&&(n=null),p&3&&(o=null),e==null&&(e=!!it({attribute:m[0],type:m[1]})),e?0:(l==null&&(l=!!ls(m[0])),l?1:(t==null&&(t=!!rr({attribute:m[0],type:m[1]})),t?2:(n==null&&(n=!!Kt({attribute:m[0],type:m[1]})),n?3:(o==null&&(o=!!or({attribute:m[0],type:m[1]})),o?4:-1))))}return~(i=_(r,-1))&&(a=c[i]=u[i](r)),{c(){a&&a.c(),s=X()},l(m){a&&a.l(m),s=X()},m(m,p){~i&&c[i].m(m,p),I(m,s,p),f=!0},p(m,p){let d=i;i=_(m,p),i!==d&&(a&&(G(),$(c[d],1,1,()=>{c[d]=null}),J()),~i?(a=c[i],a||(a=c[i]=u[i](m),a.c()),h(a,1),a.m(s.parentNode,s)):a=null)},i(m){f||(h(a),f=!0)},o(m){$(a),f=!1},d(m){~i&&c[i].d(m),m&&g(s)}}}function Ua(r){let e,l,t,n,o,i;return l=new fs({}),n=new ht({}),{c(){e=N("div"),E(l.$$.fragment),t=F(),E(n.$$.fragment),this.h()},l(a){e=A(a,"DIV",{class:!0});var s=W(e);T(l.$$.fragment,s),t=V(s),T(n.$$.fragment,s),s.forEach(g),this.h()},h(){S(e,"class","flex w-full items-center")},m(a,s){I(a,e,s),y(l,e,null),C(e,t),y(n,e,null),i=!0},i(a){i||(h(l.$$.fragment,a),h(n.$$.fragment,a),o||Ue(()=>{o=je(e,tt,{x:-100,duration:150}),o.start()}),i=!0)},o(a){$(l.$$.fragment,a),$(n.$$.fragment,a),i=!1},d(a){a&&g(e),D(l),D(n)}}}function ja(r){let e,l,t,n,o,i;return l=new Us({}),n=new ht({}),{c(){e=N("div"),E(l.$$.fragment),t=F(),E(n.$$.fragment),this.h()},l(a){e=A(a,"DIV",{class:!0});var s=W(e);T(l.$$.fragment,s),t=V(s),T(n.$$.fragment,s),s.forEach(g),this.h()},h(){S(e,"class","flex w-full items-center")},m(a,s){I(a,e,s),y(l,e,null),C(e,t),y(n,e,null),i=!0},i(a){i||(h(l.$$.fragment,a),h(n.$$.fragment,a),o||Ue(()=>{o=je(e,tt,{x:-100,duration:150}),o.start()}),i=!0)},o(a){$(l.$$.fragment,a),$(n.$$.fragment,a),i=!1},d(a){a&&g(e),D(l),D(n)}}}function za(r){let e,l,t,n,o,i;return l=new da({}),n=new ht({}),{c(){e=N("div"),E(l.$$.fragment),t=F(),E(n.$$.fragment),this.h()},l(a){e=A(a,"DIV",{class:!0});var s=W(e);T(l.$$.fragment,s),t=V(s),T(n.$$.fragment,s),s.forEach(g),this.h()},h(){S(e,"class","flex w-full items-center")},m(a,s){I(a,e,s),y(l,e,null),C(e,t),y(n,e,null),i=!0},i(a){i||(h(l.$$.fragment,a),h(n.$$.fragment,a),o||Ue(()=>{o=je(e,tt,{x:-100,duration:150}),o.start()}),i=!0)},o(a){$(l.$$.fragment,a),$(n.$$.fragment,a),i=!1},d(a){a&&g(e),D(l),D(n)}}}function Ka(r){let e,l,t,n,o,i;return l=new Ks({}),n=new ht({}),{c(){e=N("div"),E(l.$$.fragment),t=F(),E(n.$$.fragment),this.h()},l(a){e=A(a,"DIV",{class:!0});var s=W(e);T(l.$$.fragment,s),t=V(s),T(n.$$.fragment,s),s.forEach(g),this.h()},h(){S(e,"class","flex w-full items-center")},m(a,s){I(a,e,s),y(l,e,null),C(e,t),y(n,e,null),i=!0},i(a){i||(h(l.$$.fragment,a),h(n.$$.fragment,a),o||Ue(()=>{o=je(e,tt,{x:-100,duration:150}),o.start()}),i=!0)},o(a){$(l.$$.fragment,a),$(n.$$.fragment,a),i=!1},d(a){a&&g(e),D(l),D(n)}}}function Qa(r){let e,l,t,n,o,i;return l=new Wa({}),n=new ht({}),{c(){e=N("div"),E(l.$$.fragment),t=F(),E(n.$$.fragment),this.h()},l(a){e=A(a,"DIV",{class:!0});var s=W(e);T(l.$$.fragment,s),t=V(s),T(n.$$.fragment,s),s.forEach(g),this.h()},h(){S(e,"class","flex w-full items-center")},m(a,s){I(a,e,s),y(l,e,null),C(e,t),y(n,e,null),i=!0},i(a){i||(h(l.$$.fragment,a),h(n.$$.fragment,a),o||Ue(()=>{o=je(e,tt,{x:-100,duration:150}),o.start()}),i=!0)},o(a){$(l.$$.fragment,a),$(n.$$.fragment,a),i=!1},d(a){a&&g(e),D(l),D(n)}}}function jl(r){let e,l;return e=new lt({props:{variant:"ghost",$$slots:{default:[Ya]},$$scope:{ctx:r}}}),e.$on("click",r[7]),{c(){E(e.$$.fragment)},l(t){T(e.$$.fragment,t)},m(t,n){y(e,t,n),l=!0},p(t,n){const o={};n&8388608&&(o.$$scope={dirty:n,ctx:t}),e.$set(o)},i(t){l||(h(e.$$.fragment,t),l=!0)},o(t){$(e.$$.fragment,t),l=!1},d(t){D(e,t)}}}function Ya(r){let e=P("common.clear-all")+"",l;return{c(){l=q(e)},l(t){l=U(t,e)},m(t,n){I(t,l,n)},p:K,d(t){t&&g(l)}}}function Ga(r){let e,l,t,n,o,i,a,s,f,u;const c=[Ma,Ra],_=[];function m(b,k){return b[3]?0:1}t=m(r),n=_[t]=c[t](r);function p(b){r[14](b)}let d={"data-testid":"manual-search-toggle",label:P("workflows.view-search-input"),labelPosition:"left",id:"view-search-input"};return r[3]!==void 0&&(d.checked=r[3]),i=new Zr({props:d}),ie.push(()=>fe(i,"checked",p)),i.$on("change",r[15]),f=new ia({}),{c(){e=N("div"),l=N("div"),n.c(),o=F(),E(i.$$.fragment),s=F(),E(f.$$.fragment),this.h()},l(b){e=A(b,"DIV",{class:!0});var k=W(e);l=A(k,"DIV",{class:!0});var w=W(l);n.l(w),o=V(w),T(i.$$.fragment,w),w.forEach(g),s=V(k),T(f.$$.fragment,k),k.forEach(g),this.h()},h(){S(l,"class","flex grow flex-col gap-4 sm:flex-row sm:items-center"),S(e,"class","flex grow flex-col")},m(b,k){I(b,e,k),C(e,l),_[t].m(l,null),C(l,o),y(i,l,null),C(e,s),y(f,e,null),u=!0},p(b,[k]){let w=t;t=m(b),t===w?_[t].p(b,k):(G(),$(_[w],1,1,()=>{_[w]=null}),J(),n=_[t],n?n.p(b,k):(n=_[t]=c[t](b),n.c()),h(n,1),n.m(l,o));const v={};!a&&k&8&&(a=!0,v.checked=b[3],ue(()=>a=!1)),i.$set(v)},i(b){u||(h(n),h(i.$$.fragment,b),h(f.$$.fragment,b),u=!0)},o(b){$(n),$(i.$$.fragment,b),$(f.$$.fragment,b),u=!1},d(b){b&&g(e),_[t].d(),D(i),D(f)}}}const Be="filter-context";function Ja(r,e,l){let t,n,o,i,a,s,f,u,c,_,m;j(r,pe,Y=>l(11,f=Y)),j(r,Te,Y=>l(13,c=Y)),j(r,ze,Y=>l(18,_=Y)),j(r,ol,Y=>l(3,m=Y));const p=He(qe());j(r,p,Y=>l(12,u=Y));const d=He(null);j(r,d,Y=>l(10,s=Y));const b=He("");j(r,b,Y=>l(17,a=Y)),kr(Be,{filter:p,activeQueryIndex:d,handleSubmit:w,focusedElementId:b,resetFilter:B});function k(){const Y=xn(lr(f));Y&&Y===o?le(ze,_=Date.now(),_):Ae({url:c.url,parameter:"query",value:Y,allowEmpty:!0})}function w(){s!==null?(le(pe,f[s]=u,f),le(d,s=null,s)):le(pe,f=[...f,u],f),p.set(qe()),k()}function v(){le(pe,f=[],f),k()}function L(){s!==null&&le(b,a=sr({attribute:t,type:n}),a)}function R(){if(a){const Y=document.getElementById(a);Y&&(Y.focus(),Y instanceof HTMLButtonElement&&Y.click())}}wr(()=>{R()});function B(){d.set(null),p.set(qe())}function M(Y){Y.key==="Escape"&&!it({attribute:t,type:n})&&B()}function x(Y){m=Y,ol.set(m)}const ee=()=>{B()};return r.$$.update=()=>{r.$$.dirty&4096&&l(0,{attribute:t,type:n}=u,t,(l(1,n),l(12,u))),r.$$.dirty&8192&&(o=c.url.searchParams.get("query")),r.$$.dirty&2049&&l(2,i=f.length&&!t),r.$$.dirty&1024&&L()},[t,n,i,m,p,d,b,v,B,M,s,f,u,c,x,ee]}class Xa extends re{constructor(e){super(),oe(this,e,Ja,Ga,se,{})}}function Za(r){let e=r[0].toLocaleString()+"",l;return{c(){l=q(e)},l(t){l=U(t,e)},m(t,n){I(t,l,n)},p(t,n){n&1&&e!==(e=t[0].toLocaleString()+"")&&te(l,e)},d(t){t&&g(l)}}}function xa(r){let e,l=r[0].toLocaleString()+"",t;return{c(){e=q("+"),t=q(l)},l(n){e=U(n,"+"),t=U(n,l)},m(n,o){I(n,e,o),I(n,t,o)},p(n,o){o&1&&l!==(l=n[0].toLocaleString()+"")&&te(t,l)},d(n){n&&g(e),n&&g(t)}}}function ei(r){let e;function l(o,i){if(o[0]>0)return xa;if(o[0]<0)return Za}let t=l(r),n=t&&t(r);return{c(){n&&n.c(),e=X()},l(o){n&&n.l(o),e=X()},m(o,i){n&&n.m(o,i),I(o,e,i)},p(o,i){t===(t=l(o))&&n?n.p(o,i):(n&&n.d(1),n=t&&t(o),n&&(n.c(),n.m(e.parentNode,e)))},d(o){n&&n.d(o),o&&g(e)}}}function ti(r){let e,l;return e=new lt({props:{size:"xs",variant:"ghost",leadingIcon:"retry",loading:r[1]||r[2],$$slots:{default:[ei]},$$scope:{ctx:r}}}),e.$on("click",r[4]),{c(){E(e.$$.fragment)},l(t){T(e.$$.fragment,t)},m(t,n){y(e,t,n),l=!0},p(t,[n]){const o={};n&6&&(o.loading=t[1]||t[2]),n&33&&(o.$$scope={dirty:n,ctx:t}),e.$set(o)},i(t){l||(h(e.$$.fragment,t),l=!0)},o(t){$(e.$$.fragment,t),l=!1},d(t){D(e,t)}}}function li(r,e,l){let t,n,o;j(r,Un,s=>l(1,t=s)),j(r,Dt,s=>l(2,n=s)),j(r,ze,s=>l(3,o=s));let{count:i=0}=e;const a=()=>le(ze,o=Date.now(),o);return r.$$set=s=>{"count"in s&&l(0,i=s.count)},[i,t,n,o,a]}class ni extends re{constructor(e){super(),oe(this,e,li,ti,se,{count:0})}}const Ot=""+new URL("../assets/empty-state-dark_2x.91ea3d8e.png",import.meta.url).href,zl=""+new URL("../assets/empty-state-light_2x.212be1d9.png",import.meta.url).href;function Kl(r,e,l){const t=r.slice();return t[7]=e[l],t}const ri=r=>({}),Ql=r=>({});function oi(r){let e,l,t,n,o,i;function a(m,p){return m[1]?ii:ai}let s=a(r),f=s(r);const u=[ci,ui,fi],c=[];function _(m,p){return m[2]?0:m[1]?1:2}return t=_(r),n=c[t]=u[t](r),{c(){e=N("h2"),f.c(),l=F(),n.c(),o=X(),this.h()},l(m){e=A(m,"H2",{class:!0});var p=W(e);f.l(p),p.forEach(g),l=V(m),n.l(m),o=X(),this.h()},h(){S(e,"class","text-lg font-medium")},m(m,p){I(m,e,p),f.m(e,null),I(m,l,p),c[t].m(m,p),I(m,o,p),i=!0},p(m,p){s===(s=a(m))&&f?f.p(m,p):(f.d(1),f=s(m),f&&(f.c(),f.m(e,null)));let d=t;t=_(m),t===d?c[t].p(m,p):(G(),$(c[d],1,1,()=>{c[d]=null}),J(),n=c[t],n?n.p(m,p):(n=c[t]=u[t](m),n.c()),h(n,1),n.m(o.parentNode,o))},i(m){i||(h(n),i=!0)},o(m){$(n),i=!1},d(m){m&&g(e),f.d(),m&&g(l),c[t].d(m),m&&g(o)}}}function si(r){let e,l;return e=new Ut({}),{c(){E(e.$$.fragment)},l(t){T(e.$$.fragment,t)},m(t,n){y(e,t,n),l=!0},p:K,i(t){l||(h(e.$$.fragment,t),l=!0)},o(t){$(e.$$.fragment,t),l=!1},d(t){D(e,t)}}}function ai(r){let e=P("workflows.workflow-empty-state-title")+"",l;return{c(){l=q(e)},l(t){l=U(t,e)},m(t,n){I(t,l,n)},p:K,d(t){t&&g(l)}}}function ii(r){let e=P("workflows.workflow-query-empty-state-title")+"",l;return{c(){l=q(e)},l(t){l=U(t,e)},m(t,n){I(t,l,n)},p:K,d(t){t&&g(l)}}}function fi(r){let e,l,t=P("workflows.workflow-empty-state-description")+"",n,o,i,a,s,f,u;const c=r[5].cloud,_=he(c,r,r[6],Ql);i=new rt({props:{newTab:!0,href:"https://github.com/temporalio",$$slots:{default:[mi]},$$scope:{ctx:r}}});let m=r[3],p=[];for(let b=0;b$(p[b],1,1,()=>{p[b]=null});return{c(){_&&_.c(),e=F(),l=N("p"),n=q(t),o=F(),E(i.$$.fragment),a=q("."),s=F(),f=N("ul");for(let b=0;b{m[k]=null}),J(),i=m[o],i?i.p(d,b):(i=m[o]=_[o](d),i.c()),h(i,1),i.m(n,null)),(!c||b&2&&!el(f.src,u=d[1]?zl:Ot))&&S(f,"src",u)},i(d){c||(h(i),c=!0)},o(d){$(i),c=!1},d(d){g(e),d&&g(l),d&&g(t),m[o].d()}}}function hi(r,e,l){let t,n,o;j(r,Te,u=>l(4,n=u)),j(r,jn,u=>l(2,o=u));let{$$slots:i={},$$scope:a}=e,{updating:s=!1}=e;const f=["samples-go","samples-java","samples-typescript","samples-python","samples-dotnet","samples-php"];return r.$$set=u=>{"updating"in u&&l(0,s=u.updating),"$$scope"in u&&l(6,a=u.$$scope)},r.$$.update=()=>{r.$$.dirty&16&&l(1,t=n.url.searchParams.get("query"))},[s,t,o,f,n,i,a]}class gi extends re{constructor(e){super(),oe(this,e,hi,pi,se,{updating:0})}}const bi=r=>({visibleItems:r&256}),Gl=r=>({slot:"cloud",visibleItems:r[8].items});function Jl(r,e,l){const t=r.slice();return t[23]=e[l],t}const $i=r=>({visibleItems:r&256}),Xl=r=>({visibleItems:r[8].items}),ki=r=>({visibleItems:r&256}),Zl=r=>({visibleItems:r[8].items}),wi=r=>({visibleItems:r&256}),xl=r=>({visibleItems:r[8].items});function en(r){let e,l;return e=new fo({}),{c(){E(e.$$.fragment)},l(t){T(e.$$.fragment,t)},m(t,n){y(e,t,n),l=!0},i(t){l||(h(e.$$.fragment,t),l=!0)},o(t){$(e.$$.fragment,t),l=!1},d(t){D(e,t)}}}function vi(r){let e,l;return e=new gi({props:{updating:r[0],$$slots:{cloud:[Ei]},$$scope:{ctx:r}}}),{c(){E(e.$$.fragment)},l(t){T(e.$$.fragment,t)},m(t,n){y(e,t,n),l=!0},p(t,n){const o={};n&1&&(o.updating=t[0]),n&4194560&&(o.$$scope={dirty:n,ctx:t}),e.$set(o)},i(t){l||(h(e.$$.fragment,t),l=!0)},o(t){$(e.$$.fragment,t),l=!1},d(t){D(e,t)}}}function Ii(r){let e,l,t,n,o,i,a,s,f,u,c;t=new co({props:{label:r[1],parameter:wt,value:r[6],options:Jn}});let _=r[8].pageShortcuts,m=[];for(let d=0;d<_.length;d+=1)m[d]=tn(Jl(r,_,d));const p=d=>$(m[d],1,1,()=>{m[d]=null});return s=new Le({props:{label:r[4],disabled:!r[8].hasPrevious,icon:"arrow-left"}}),s.$on("click",r[19]),u=new Le({props:{label:r[3],disabled:!r[8].hasNext,icon:"arrow-right"}}),u.$on("click",r[20]),{c(){e=N("div"),l=N("div"),E(t.$$.fragment),n=F(),o=N("div");for(let d=0;d{a[c]=null}),J(),t=a[l],t?t.p(f,u):(t=a[l]=i[l](f),t.c()),h(t,1),t.m(n.parentNode,n))},i(f){o||(h(t),o=!0)},o(f){$(t),o=!1},d(f){a[l].d(f),f&&g(n)}}}function Li(r){let e,l,t,n,o,i,a,s,f,u,c;const _=r[17].caption,m=he(_,r,r[22],xl),p=r[17].headers,d=he(p,r,r[22],Zl);let b=r[0]&&en();const k=r[17].default,w=he(k,r,r[22],Xl),v=[Ii,vi],L=[];function R(B,M){return B[8].items.length?0:1}return f=R(r),u=L[f]=v[f](r),{c(){e=N("div"),l=N("table"),m&&m.c(),t=F(),n=N("thead"),d&&d.c(),o=F(),b&&b.c(),i=F(),a=N("tbody"),w&&w.c(),s=F(),u.c(),this.h()},l(B){e=A(B,"DIV",{class:!0,style:!0});var M=W(e);l=A(M,"TABLE",{class:!0});var x=W(l);m&&m.l(x),t=V(x),n=A(x,"THEAD",{class:!0});var ee=W(n);d&&d.l(ee),o=V(ee),b&&b.l(ee),ee.forEach(g),i=V(x),a=A(x,"TBODY",{class:!0});var Y=W(a);w&&w.l(Y),Y.forEach(g),x.forEach(g),s=V(M),u.l(M),M.forEach(g),this.h()},h(){S(n,"class","paginated-table-header svelte-5xhosh"),S(a,"class","paginated-table-body svelte-5xhosh"),S(l,"class","paginated-table svelte-5xhosh"),S(e,"class","paginated-table-wrapper svelte-5xhosh"),tl(e,"max-height","calc(100vh - "+r[9]+"px)")},m(B,M){I(B,e,M),C(e,l),m&&m.m(l,null),C(l,t),C(l,n),d&&d.m(n,null),C(n,o),b&&b.m(n,null),C(l,i),C(l,a),w&&w.m(a,null),C(e,s),L[f].m(e,null),r[21](e),c=!0},p(B,[M]){m&&m.p&&(!c||M&4194560)&&ge(m,_,B,B[22],c?$e(_,B[22],M,wi):be(B[22]),xl),d&&d.p&&(!c||M&4194560)&&ge(d,p,B,B[22],c?$e(p,B[22],M,ki):be(B[22]),Zl),B[0]?b?M&1&&h(b,1):(b=en(),b.c(),h(b,1),b.m(n,null)):b&&(G(),$(b,1,1,()=>{b=null}),J()),w&&w.p&&(!c||M&4194560)&&ge(w,k,B,B[22],c?$e(k,B[22],M,$i):be(B[22]),Xl);let x=f;f=R(B),f===x?L[f].p(B,M):(G(),$(L[x],1,1,()=>{L[x]=null}),J(),u=L[f],u?u.p(B,M):(u=L[f]=v[f](B),u.c()),h(u,1),u.m(e,null)),(!c||M&512)&&tl(e,"max-height","calc(100vh - "+B[9]+"px)")},i(B){c||(h(m,B),h(d,B),h(b),h(w,B),h(u),c=!0)},o(B){$(m,B),$(d,B),$(b),$(w,B),$(u),c=!1},d(B){B&&g(e),m&&m.d(B),d&&d.d(B),b&&b.d(),w&&w.d(B),L[f].d(),r[21](null)}}}function Bi(r,e,l){let t,n,o,i,a,s,f=K,u=()=>(f(),f=Vt(i,Q=>l(8,s=Q)),i),c;j(r,Te,Q=>l(16,c=Q)),r.$$.on_destroy.push(()=>f());let{$$slots:_={},$$scope:m}=e;var p,d;let{items:b}=e,{updating:k=!1}=e,{perPageLabel:w}=e,{pageButtonLabel:v}=e,{nextPageButtonLabel:L}=e,{previousPageButtonLabel:R}=e,B;const M=Q=>{Ae({parameter:kt,value:Q,url:t})},x=Q=>M(Q),ee=()=>M(s.currentPage-1),Y=()=>M(s.currentPage+1);function O(Q){ie[Q?"unshift":"push"](()=>{B=Q,l(5,B)})}return r.$$set=Q=>{"items"in Q&&l(11,b=Q.items),"updating"in Q&&l(0,k=Q.updating),"perPageLabel"in Q&&l(1,w=Q.perPageLabel),"pageButtonLabel"in Q&&l(2,v=Q.pageButtonLabel),"nextPageButtonLabel"in Q&&l(3,L=Q.nextPageButtonLabel),"previousPageButtonLabel"in Q&&l(4,R=Q.previousPageButtonLabel),"$$scope"in Q&&l(22,m=Q.$$scope)},r.$$.update=()=>{r.$$.dirty&65536&&l(15,t=c.url),r.$$.dirty&36864&&l(6,n=l(12,p=t.searchParams.get(wt))!==null&&p!==void 0?p:String(dl)),r.$$.dirty&40960&&l(14,o=l(13,d=t.searchParams.get(kt))!==null&&d!==void 0?d:"1"),r.$$.dirty&18496&&u(l(7,i=uo(b,n,o))),r.$$.dirty&32832&&(parseInt(n,10)>parseInt(pl,10)?Ae({parameter:wt,value:pl,url:t}):Jn.includes(n)||Ae({parameter:wt,value:dl,url:t})),r.$$.dirty&49408&&(s.totalPages&&parseInt(o,10)>s.totalPages?Ae({parameter:kt,value:s.totalPages,url:t}):(o===null||parseInt(o,10)<0)&&Ae({parameter:kt,value:"1",url:t})),r.$$.dirty&16576&&(o&&i.jumpToPage(o),n&&i.adjustPageSize(n)),r.$$.dirty&32&&l(9,a=B!=null&&B.offsetTop?(B==null?void 0:B.offsetTop)+32:0)},[k,w,v,L,R,B,n,i,s,a,M,b,p,d,o,t,c,_,x,ee,Y,O,m]}class Si extends re{constructor(e){super(),oe(this,e,Bi,Li,se,{items:11,updating:0,perPageLabel:1,pageButtonLabel:2,nextPageButtonLabel:3,previousPageButtonLabel:4})}}const Ci=2,Qe=[{label:"Status",pinned:!0},{label:"Workflow ID",pinned:!0},{label:"Run ID",pinned:!1},{label:"Type",pinned:!1},{label:"Start",pinned:!1},{label:"End",pinned:!1}],Ni=[{label:"History Size",pinned:!1},{label:"History Length",pinned:!1},{label:"Execution Time",pinned:!1},{label:"Execution Duration",pinned:!1},{label:"State Transitions",pinned:!1},{label:"Parent Namespace",pinned:!1},{label:"Task Queue",pinned:!1},{label:"Scheduled By ID",pinned:!1},{label:"Scheduled Start Time",pinned:!1}],ir=r=>r.label!=="Parent Workflow ID",Ai=()=>{let r;try{const e=window.localStorage.getItem("workflow-table-columns"),l=JSON.parse(e);e&&(l!=null&&l.length)?r=l.filter(ir):r=Qe}catch{r=Qe}return r},Rt=Xn("namespace-workflow-table-columns",{}),Nt=Ge([mo,Te,Rt],([r,e,l])=>{const t={},n=(a,s)=>{var u;if(!((u=a==null?void 0:a[s])!=null&&u.length))return a[s]=[...Ai()],a[s];const f=a[s].filter(ir);return f.length!==a[s].length&&(a[s]=f,Rt.set(a)),a[s]},o=(r==null?void 0:r.reduce((a,{namespaceInfo:{name:s}})=>({...a,[s]:n(l,s)}),t))??{},{namespace:i}=e.params;return o[i]?o:{...o,[i]:n(l,i)}});Xn("workflow-table-pinned-columns-width");const Pi=r=>Ge(Nt,e=>[...Qe,...Ni].filter(l=>{var t;return!((t=e[r])!=null&&t.some(n=>n.label===l.label))})),Oi=r=>Ge([Yn,Nt],([e,l])=>Object.keys(e).filter(t=>{var n;return!((n=l[r])!=null&&n.some(o=>o.label===t))}).map(t=>({label:t,pinned:!1}))),Fi=(r,e)=>{switch(r.type){case"WORKFLOW_COLUMN.ADD":{const{label:l,namespace:t}=r.payload,n=(e==null?void 0:e[t])??Qe;return{...e,[t]:[...n,{label:l,pinned:!1}]}}case"WORKFLOW_COLUMN.REMOVE":{const{label:l,namespace:t}=r.payload,n=(e==null?void 0:e[t])??Qe;return{...e,[t]:n.filter(({label:o})=>o!==l)}}case"WORKFLOW_COLUMN.PIN":{const{label:l,namespace:t}=r.payload,n=(e==null?void 0:e[t])??Qe,o=n.findIndex(({label:f})=>f===l),i=n[o].pinned;let a=-1;for(let f=n.length-1;f>=0;f--)if(n[f].pinned){a=f;break}const s=[...n];return s[o].pinned=!i,o>a&&!i?s.splice(a+1,0,s.splice(o,1)[0]):o=0;f--)if(o[f].pinned){a=f;break}const s=[...o];return t<=a&&!i?s[l].pinned=!0:t>a&&i&&(s[l].pinned=!1),s.splice(t,0,s.splice(l,1)[0]),{...e,[n]:s.map((f,u)=>u>Ci-1?{...f,pinned:!1}:f)}}default:return e}},Gt=r=>{Rt.update(e=>Fi(r,e))},ln=(r,e)=>{Gt({type:"WORKFLOW_COLUMN.ADD",payload:{label:r,namespace:e}})},Vi=(r,e)=>{Gt({type:"WORKFLOW_COLUMN.REMOVE",payload:{label:r,namespace:e}})},Wi=(r,e,l)=>{Gt({type:"WORKFLOW_COLUMN.MOVE",payload:{from:r,to:e,namespace:l}})};function nn(r){let e,l,t,n,o;return l=new Le({props:{disabled:r[5]===0,icon:"chevron-up","data-testid":"orderable-list-item-"+r[1]+"-move-up-button",label:r[7]}}),l.$on("click",r[19]),n=new Le({props:{disabled:r[5]===r[6]-1,icon:"chevron-down","data-testid":"orderable-list-item-"+r[1]+"-move-down-button",label:r[8]}}),n.$on("click",r[20]),{c(){e=N("div"),E(l.$$.fragment),t=F(),E(n.$$.fragment),this.h()},l(i){e=A(i,"DIV",{class:!0});var a=W(e);T(l.$$.fragment,a),t=V(a),T(n.$$.fragment,a),a.forEach(g),this.h()},h(){S(e,"class","flex items-center")},m(i,a){I(i,e,a),y(l,e,null),C(e,t),y(n,e,null),o=!0},p(i,a){const s={};a&32&&(s.disabled=i[5]===0),a&2&&(s["data-testid"]="orderable-list-item-"+i[1]+"-move-up-button"),a&128&&(s.label=i[7]),l.$set(s);const f={};a&96&&(f.disabled=i[5]===i[6]-1),a&2&&(f["data-testid"]="orderable-list-item-"+i[1]+"-move-down-button"),a&256&&(f.label=i[8]),n.$set(f)},i(i){o||(h(l.$$.fragment,i),h(n.$$.fragment,i),o=!0)},o(i){$(l.$$.fragment,i),$(n.$$.fragment,i),o=!1},d(i){i&&g(e),D(l),D(n)}}}function rn(r){let e,l,t,n;const o=[Mi,Ri],i=[];function a(s,f){return s[3]?0:1}return e=a(r),l=i[e]=o[e](r),{c(){l.c(),t=X()},l(s){l.l(s),t=X()},m(s,f){i[e].m(s,f),I(s,t,f),n=!0},p(s,f){let u=e;e=a(s),e===u?i[e].p(s,f):(G(),$(i[u],1,1,()=>{i[u]=null}),J(),l=i[e],l?l.p(s,f):(l=i[e]=o[e](s),l.c()),h(l,1),l.m(t.parentNode,t))},i(s){n||(h(l),n=!0)},o(s){$(l),n=!1},d(s){i[e].d(s),s&&g(t)}}}function Ri(r){let e,l;return e=new Le({props:{icon:"pin","data-testid":"orderable-list-item-"+r[1]+"-pin-button",label:r[9]}}),e.$on("click",r[22]),{c(){E(e.$$.fragment)},l(t){T(e.$$.fragment,t)},m(t,n){y(e,t,n),l=!0},p(t,n){const o={};n&2&&(o["data-testid"]="orderable-list-item-"+t[1]+"-pin-button"),n&512&&(o.label=t[9]),e.$set(o)},i(t){l||(h(e.$$.fragment,t),l=!0)},o(t){$(e.$$.fragment,t),l=!1},d(t){D(e,t)}}}function Mi(r){let e,l;return e=new Le({props:{icon:"pin-filled","data-testid":"orderable-list-item-"+r[1]+"-unpin-button",label:r[10]}}),e.$on("click",r[21]),{c(){E(e.$$.fragment)},l(t){T(e.$$.fragment,t)},m(t,n){y(e,t,n),l=!0},p(t,n){const o={};n&2&&(o["data-testid"]="orderable-list-item-"+t[1]+"-unpin-button"),n&1024&&(o.label=t[10]),e.$set(o)},i(t){l||(h(e.$$.fragment,t),l=!0)},o(t){$(e.$$.fragment,t),l=!1},d(t){D(e,t)}}}function on(r){let e,l,t,n;const o=[qi,Hi],i=[];function a(s,f){return s[0]?0:1}return e=a(r),l=i[e]=o[e](r),{c(){l.c(),t=X()},l(s){l.l(s),t=X()},m(s,f){i[e].m(s,f),I(s,t,f),n=!0},p(s,f){let u=e;e=a(s),e===u?i[e].p(s,f):(G(),$(i[u],1,1,()=>{i[u]=null}),J(),l=i[e],l?l.p(s,f):(l=i[e]=o[e](s),l.c()),h(l,1),l.m(t.parentNode,t))},i(s){n||(h(l),n=!0)},o(s){$(l),n=!1},d(s){i[e].d(s),s&&g(t)}}}function Hi(r){let e,l;return e=new Le({props:{icon:"hyphen","data-testid":"orderable-list-item-"+r[1]+"-remove-button",label:r[12]}}),e.$on("click",r[24]),{c(){E(e.$$.fragment)},l(t){T(e.$$.fragment,t)},m(t,n){y(e,t,n),l=!0},p(t,n){const o={};n&2&&(o["data-testid"]="orderable-list-item-"+t[1]+"-remove-button"),n&4096&&(o.label=t[12]),e.$set(o)},i(t){l||(h(e.$$.fragment,t),l=!0)},o(t){$(e.$$.fragment,t),l=!1},d(t){D(e,t)}}}function qi(r){let e,l;return e=new Le({props:{icon:"add","data-testid":"orderable-list-item-"+r[1]+"-add-button",label:r[11]}}),e.$on("click",r[23]),{c(){E(e.$$.fragment)},l(t){T(e.$$.fragment,t)},m(t,n){y(e,t,n),l=!0},p(t,n){const o={};n&2&&(o["data-testid"]="orderable-list-item-"+t[1]+"-add-button"),n&2048&&(o.label=t[11]),e.$set(o)},i(t){l||(h(e.$$.fragment,t),l=!0)},o(t){$(e.$$.fragment,t),l=!1},d(t){D(e,t)}}}function Ui(r){let e,l,t,n,o,i,a,s,f,u,c,_,m,p=!r[0]&&!r[4]&&nn(r),d=!r[0]&&!r[4]&&r[5]<=r[2]-1&&rn(r),b=!r[4]&&on(r);return{c(){e=N("li"),l=N("div"),p&&p.c(),t=F(),n=q(r[1]),o=F(),d&&d.c(),i=F(),b&&b.c(),f=F(),u=N("hr"),this.h()},l(k){e=A(k,"LI",{draggable:!0,class:!0,"data-testid":!0});var w=W(e);l=A(w,"DIV",{class:!0});var v=W(l);p&&p.l(v),t=V(v),n=U(v,r[1]),o=V(v),d&&d.l(v),v.forEach(g),i=V(w),b&&b.l(w),w.forEach(g),f=V(k),u=A(k,"HR",{class:!0}),this.h()},h(){S(l,"class","flex flex-row items-center gap-2"),S(e,"draggable",a=!r[0]&&!r[4]),S(e,"class","orderable-item group svelte-1btkzzb"),S(e,"data-testid",s="orderable-list-item-"+r[1]),me(e,"readonly",r[4]),S(u,"class","svelte-1btkzzb")},m(k,w){I(k,e,w),C(e,l),p&&p.m(l,null),C(l,t),C(l,n),C(l,o),d&&d.m(l,null),C(e,i),b&&b.m(e,null),I(k,f,w),I(k,u,w),c=!0,_||(m=[ce(e,"dragstart",r[25]),ce(e,"drop",ot(r[26])),ce(e,"dragenter",At(ot(r[16]))),ce(e,"dragleave",At(ot(r[17]))),ce(e,"dragover",At(ot(r[18])))],_=!0)},p(k,[w]){!k[0]&&!k[4]?p?(p.p(k,w),w&17&&h(p,1)):(p=nn(k),p.c(),h(p,1),p.m(l,t)):p&&(G(),$(p,1,1,()=>{p=null}),J()),(!c||w&2)&&te(n,k[1]),!k[0]&&!k[4]&&k[5]<=k[2]-1?d?(d.p(k,w),w&53&&h(d,1)):(d=rn(k),d.c(),h(d,1),d.m(l,null)):d&&(G(),$(d,1,1,()=>{d=null}),J()),k[4]?b&&(G(),$(b,1,1,()=>{b=null}),J()):b?(b.p(k,w),w&16&&h(b,1)):(b=on(k),b.c(),h(b,1),b.m(e,null)),(!c||w&17&&a!==(a=!k[0]&&!k[4]))&&S(e,"draggable",a),(!c||w&2&&s!==(s="orderable-list-item-"+k[1]))&&S(e,"data-testid",s),(!c||w&16)&&me(e,"readonly",k[4])},i(k){c||(h(p),h(d),h(b),c=!0)},o(k){$(p),$(d),$(b),c=!1},d(k){k&&g(e),p&&p.d(),d&&d.d(),b&&b.d(),k&&g(f),k&&g(u),_=!1,ct(m)}}}function ji(r,e,l){const t=xe();let{static:n=!1}=e,{label:o}=e,{maxPinnedItems:i=void 0}=e,{pinned:a=!1}=e,{readonly:s=!1}=e,{index:f=0}=e,{totalItems:u=0}=e,{moveUpButtonLabel:c=""}=e,{moveDownButtonLabel:_=""}=e,{pinButtonLabel:m=""}=e,{unpinButtonLabel:p=""}=e,{addButtonLabel:d=""}=e,{removeButtonLabel:b=""}=e;const k=(H,ae)=>{n||s||(H.dataTransfer.setData("text/plain",ae.toString()),H.dataTransfer.dropEffect="move")},w=(H,ae)=>{H.currentTarget.classList.remove("dragging-over");const _e=parseInt(H.dataTransfer.getData("text/plain"));t("moveItem",{from:_e,to:ae})},v=H=>H.currentTarget.classList.add("dragging-over"),L=H=>H.currentTarget.classList.remove("dragging-over");function R(H){Me.call(this,r,H)}const B=()=>t("moveItem",{from:f,to:f-1}),M=()=>t("moveItem",{from:f,to:f+1}),x=()=>t("pinItem"),ee=()=>t("pinItem"),Y=()=>t("addItem"),O=()=>t("removeItem"),Q=H=>k(H,f),z=H=>w(H,f);return r.$$set=H=>{"static"in H&&l(0,n=H.static),"label"in H&&l(1,o=H.label),"maxPinnedItems"in H&&l(2,i=H.maxPinnedItems),"pinned"in H&&l(3,a=H.pinned),"readonly"in H&&l(4,s=H.readonly),"index"in H&&l(5,f=H.index),"totalItems"in H&&l(6,u=H.totalItems),"moveUpButtonLabel"in H&&l(7,c=H.moveUpButtonLabel),"moveDownButtonLabel"in H&&l(8,_=H.moveDownButtonLabel),"pinButtonLabel"in H&&l(9,m=H.pinButtonLabel),"unpinButtonLabel"in H&&l(10,p=H.unpinButtonLabel),"addButtonLabel"in H&&l(11,d=H.addButtonLabel),"removeButtonLabel"in H&&l(12,b=H.removeButtonLabel)},[n,o,i,a,s,f,u,c,_,m,p,d,b,t,k,w,v,L,R,B,M,x,ee,Y,O,Q,z]}class Je extends re{constructor(e){super(),oe(this,e,ji,Ui,se,{static:0,label:1,maxPinnedItems:2,pinned:3,readonly:4,index:5,totalItems:6,moveUpButtonLabel:7,moveDownButtonLabel:8,pinButtonLabel:9,unpinButtonLabel:10,addButtonLabel:11,removeButtonLabel:12})}}const zi=r=>({}),sn=r=>({});function Ki(r){let e;return{c(){e=q("Items")},l(l){e=U(l,"Items")},m(l,t){I(l,e,t)},d(l){l&&g(e)}}}function Qi(r){let e,l;return e=new Je({props:{readonly:!0,label:"No Items",pinned:!1}}),{c(){E(e.$$.fragment)},l(t){T(e.$$.fragment,t)},m(t,n){y(e,t,n),l=!0},p:K,i(t){l||(h(e.$$.fragment,t),l=!0)},o(t){$(e.$$.fragment,t),l=!1},d(t){D(e,t)}}}function Yi(r){let e,l,t,n,o;const i=r[1].heading,a=he(i,r,r[0],sn),s=a||Ki(),f=r[1].default,u=he(f,r,r[0],null),c=u||Qi();return{c(){e=N("div"),l=N("h4"),s&&s.c(),t=F(),n=N("ol"),c&&c.c(),this.h()},l(_){e=A(_,"DIV",{class:!0});var m=W(e);l=A(m,"H4",{class:!0});var p=W(l);s&&s.l(p),p.forEach(g),t=V(m),n=A(m,"OL",{class:!0});var d=W(n);c&&c.l(d),d.forEach(g),m.forEach(g),this.h()},h(){S(l,"class","orderable-heading svelte-cheqnz"),S(n,"class","orderable-list svelte-cheqnz"),S(e,"class","orderable-section svelte-cheqnz")},m(_,m){I(_,e,m),C(e,l),s&&s.m(l,null),C(e,t),C(e,n),c&&c.m(n,null),o=!0},p(_,[m]){a&&a.p&&(!o||m&1)&&ge(a,i,_,_[0],o?$e(i,_[0],m,zi):be(_[0]),sn),u&&u.p&&(!o||m&1)&&ge(u,f,_,_[0],o?$e(f,_[0],m,null):be(_[0]),null)},i(_){o||(h(s,_),h(c,_),o=!0)},o(_){$(s,_),$(c,_),o=!1},d(_){_&&g(e),s&&s.d(_),c&&c.d(_)}}}function Gi(r,e,l){let{$$slots:t={},$$scope:n}=e;return r.$$set=o=>{"$$scope"in o&&l(0,n=o.$$scope)},[n,t]}let Ft=class extends re{constructor(e){super(),oe(this,e,Gi,Yi,se,{})}};function an(r,e,l){const t=r.slice();return t[12]=e[l].label,t}function fn(r,e,l){const t=r.slice();return t[12]=e[l].label,t}function un(r,e,l){const t=r.slice();return t[12]=e[l].label,t[18]=l,t}function cn(r){let e,l;return e=new Je({props:{readonly:!0,label:P("workflows.no-headings-in-view")}}),{c(){E(e.$$.fragment)},l(t){T(e.$$.fragment,t)},m(t,n){y(e,t,n),l=!0},p:K,i(t){l||(h(e.$$.fragment,t),l=!0)},o(t){$(e.$$.fragment,t),l=!1},d(t){D(e,t)}}}function mn(r,e){let l,t,n;function o(){return e[9](e[12])}return t=new Je({props:{index:e[18],label:e[12],totalItems:e[3].length,addButtonLabel:P("workflows.add-column-label",{column:e[12]}),removeButtonLabel:P("workflows.remove-column-label",{column:e[12]}),moveUpButtonLabel:P("workflows.move-column-up-label",{column:e[12]}),moveDownButtonLabel:P("workflows.move-column-down-label",{column:e[12]}),pinButtonLabel:P("workflows.pin-column-label",{column:e[12]}),unpinButtonLabel:P("workflows.unpin-column-label",{column:e[12]})}}),t.$on("moveItem",e[8]),t.$on("removeItem",o),{key:r,first:null,c(){l=X(),E(t.$$.fragment),this.h()},l(i){l=X(),T(t.$$.fragment,i),this.h()},h(){this.first=l},m(i,a){I(i,l,a),y(t,i,a),n=!0},p(i,a){e=i;const s={};a&8&&(s.index=e[18]),a&8&&(s.label=e[12]),a&8&&(s.totalItems=e[3].length),a&8&&(s.addButtonLabel=P("workflows.add-column-label",{column:e[12]})),a&8&&(s.removeButtonLabel=P("workflows.remove-column-label",{column:e[12]})),a&8&&(s.moveUpButtonLabel=P("workflows.move-column-up-label",{column:e[12]})),a&8&&(s.moveDownButtonLabel=P("workflows.move-column-down-label",{column:e[12]})),a&8&&(s.pinButtonLabel=P("workflows.pin-column-label",{column:e[12]})),a&8&&(s.unpinButtonLabel=P("workflows.unpin-column-label",{column:e[12]})),t.$set(s)},i(i){n||(h(t.$$.fragment,i),n=!0)},o(i){$(t.$$.fragment,i),n=!1},d(i){i&&g(l),D(t,i)}}}function Ji(r){let e=[],l=new Map,t,n,o=r[3];const i=s=>s[12];for(let s=0;s{a=null}),J()):(a=cn(),a.c(),h(a,1),a.m(t.parentNode,t)))},i(s){if(!n){for(let f=0;f$(n[a],1,1,()=>{n[a]=null});let i=null;return t.length||(i=_n()),{c(){for(let a=0;a{i=null}),J()):(i=_n(),i.c(),h(i,1),i.m(e.parentNode,e))}},i(a){if(!l){for(let s=0;s$(n[a],1,1,()=>{n[a]=null});let i=null;return t.length||(i=pn()),{c(){for(let a=0;a{i=null}),J()):(i=pn(),i.c(),h(i,1),i.m(e.parentNode,e))}},i(a){if(!l){for(let s=0;s(s(),s=Vt(n,v=>l(4,a=v)),n),u,c=K,_=()=>(c(),c=Vt(o,v=>l(5,u=v)),o);j(r,Nt,v=>l(7,i=v)),r.$$.on_destroy.push(()=>s()),r.$$.on_destroy.push(()=>c());var m;let{namespace:p}=e;const d=v=>Wi(v.detail.from,v.detail.to,p),b=v=>Vi(v,p),k=v=>ln(v,p),w=v=>ln(v,p);return r.$$set=v=>{"namespace"in v&&l(0,p=v.namespace)},r.$$.update=()=>{r.$$.dirty&193&&l(3,t=l(6,m=i==null?void 0:i[p])!==null&&m!==void 0?m:[]),r.$$.dirty&1&&f(l(2,n=Pi(p))),r.$$.dirty&1&&_(l(1,o=Oi(p)))},[p,o,n,t,a,u,m,i,d,b,k,w]}class rf extends re{constructor(e){super(),oe(this,e,nf,lf,se,{namespace:0})}}const gn=(r,e=2)=>{if(!+r)return"0 Bytes";const l=1024,t=e<0?0:e,n=["Bytes","KB","MB","GB","TB","PB","EB","ZB","YB"],o=Math.floor(Math.log(r)/Math.log(l));return`${parseFloat((r/Math.pow(l,o)).toFixed(t))} ${n[o]}`},of={WorkflowId:"id",WorkflowType:"name",RunId:"runId"};function sf(r){let e;return{c(){e=q(r[2])},l(l){e=U(l,r[2])},m(l,t){I(l,e,t)},p(l,t){t&4&&te(e,l[2])},d(l){l&&g(e)}}}function af(r){let e,l,t,n;return e=new rt({props:{href:r[3],$$slots:{default:[sf]},$$scope:{ctx:r}}}),t=new Vr({props:{copyIconTitle:P("common.copy-icon-title"),copySuccessIconTitle:P("common.copy-success-icon-title"),filterIconTitle:P("common.filter-workflows"),show:r[1],content:r[2],onFilter:r[5],filtered:r[4].some(r[9])}}),{c(){E(e.$$.fragment),l=F(),E(t.$$.fragment)},l(o){T(e.$$.fragment,o),l=V(o),T(t.$$.fragment,o)},m(o,i){y(e,o,i),I(o,l,i),y(t,o,i),n=!0},p(o,[i]){const a={};i&8&&(a.href=o[3]),i&1028&&(a.$$scope={dirty:i,ctx:o}),e.$set(a);const s={};i&2&&(s.show=o[1]),i&4&&(s.content=o[2]),i&21&&(s.filtered=o[4].some(o[9])),t.$set(s)},i(o){n||(h(e.$$.fragment,o),h(t.$$.fragment,o),n=!0)},o(o){$(e.$$.fragment,o),$(t.$$.fragment,o),n=!1},d(o){D(e,o),o&&g(l),D(t,o)}}}function ff(r,e,l){let t,n,o,i,a;j(r,pe,m=>l(4,i=m)),j(r,Te,m=>l(8,a=m));let{attribute:s}=e,{workflow:f}=e,{filterOrCopyButtonsVisible:u=!1}=e;const c=()=>{const m=i.find(d=>d.attribute===s),p=()=>i.filter(d=>d.attribute!==s);if(m)le(pe,i=[...p()],i);else{const d={attribute:s,type:"Keyword",value:t,conditional:"=",operator:"",parenthesis:""};le(pe,i=[...p(),d],i)}zt(a.url,i)},_=m=>m.attribute===s&&m.value===t;return r.$$set=m=>{"attribute"in m&&l(0,s=m.attribute),"workflow"in m&&l(6,f=m.workflow),"filterOrCopyButtonsVisible"in m&&l(1,u=m.filterOrCopyButtonsVisible)},r.$$.update=()=>{r.$$.dirty&65&&l(2,t=f[of[s]]),r.$$.dirty&256&&l(7,n=a.params.namespace),r.$$.dirty&192&&l(3,o=po({namespace:n,workflow:f.id,run:f.runId}))},[s,u,t,o,i,c,f,n,a,_]}class Jt extends re{constructor(e){super(),oe(this,e,ff,af,se,{attribute:0,workflow:6,filterOrCopyButtonsVisible:1})}}function uf(r){const e=r.slice(),l=e[0].searchAttributes.indexedFields[e[2]];return e[10]=l,e}function cf(r){var t,n;const e=r.slice(),l=(n=(t=e[0].searchAttributes)==null?void 0:t.indexedFields)==null?void 0:n.TemporalScheduledStartTime;return e[10]=l,e}function mf(r){let e,l,t,n,o;const i=[yf,Tf,Ef,If,vf,wf,kf,$f,bf,gf,hf,pf,df],a=[];function s(u,c){return c&5&&(l=null),u[2]==="Status"?0:u[2]==="End"?1:u[2]==="Start"?2:u[2]==="Task Queue"?3:u[2]==="Parent Namespace"?4:u[2]==="History Size"?5:u[2]==="State Transitions"?6:u[2]==="Execution Time"?7:u[2]==="Execution Duration"?8:u[2]==="History Length"?9:u[2]==="Scheduled By ID"?10:u[2]==="Scheduled Start Time"?11:(l==null&&(l=!!(eo(u[2])&&to(u[0],u[2]))),l?12:-1)}function f(u,c){return c===11?cf(u):c===12?uf(u):u}return~(t=s(r,-1))&&(n=a[t]=i[t](f(r,t))),{c(){e=N("td"),n&&n.c(),this.h()},l(u){e=A(u,"TD",{class:!0,"data-testid":!0});var c=W(e);n&&n.l(c),c.forEach(g),this.h()},h(){S(e,"class","workflows-summary-table-body-cell svelte-qupenl"),S(e,"data-testid","workflows-summary-table-body-cell")},m(u,c){I(u,e,c),~t&&a[t].m(e,null),o=!0},p(u,c){let _=t;t=s(u,c),t===_?~t&&a[t].p(f(u,t),c):(n&&(G(),$(a[_],1,1,()=>{a[_]=null}),J()),~t?(n=a[t],n?n.p(f(u,t),c):(n=a[t]=i[t](f(u,t)),n.c()),h(n,1),n.m(e,null)):n=null)},i(u){o||(h(n),o=!0)},o(u){$(n),o=!1},d(u){u&&g(e),~t&&a[t].d()}}}function _f(r){let e,l,t,n,o,i;const a=[Af,Nf,Cf],s=[];function f(u,c){return u[2]==="Type"?0:u[2]==="Workflow ID"?1:u[2]==="Run ID"?2:-1}return~(l=f(r))&&(t=s[l]=a[l](r)),{c(){e=N("td"),t&&t.c(),this.h()},l(u){e=A(u,"TD",{class:!0,"data-testid":!0});var c=W(e);t&&t.l(c),c.forEach(g),this.h()},h(){S(e,"class","workflows-summary-table-body-cell filterable svelte-qupenl"),S(e,"data-testid","workflows-summary-table-body-cell")},m(u,c){I(u,e,c),~l&&s[l].m(e,null),n=!0,o||(i=[ce(e,"mouseover",r[6]),ce(e,"focus",r[6]),ce(e,"focusin",r[6]),ce(e,"focusout",r[8]),ce(e,"mouseleave",r[7]),ce(e,"blur",r[7])],o=!0)},p(u,c){let _=l;l=f(u),l===_?~l&&s[l].p(u,c):(t&&(G(),$(s[_],1,1,()=>{s[_]=null}),J()),~l?(t=s[l],t?t.p(u,c):(t=s[l]=a[l](u),t.c()),h(t,1),t.m(e,null)):t=null)},i(u){n||(h(t),n=!0)},o(u){$(t),n=!1},d(u){u&&g(e),~l&&s[l].d(),o=!1,ct(i)}}}function df(r){let e,l,t,n;const o=[Bf,Lf,Df],i=[];function a(s,f){return s[5][s[2]]==="Datetime"&&typeof s[10]=="string"?0:s[5][s[2]]==="Bool"?1:2}return e=a(r),l=i[e]=o[e](r),{c(){l.c(),t=X()},l(s){l.l(s),t=X()},m(s,f){i[e].m(s,f),I(s,t,f),n=!0},p(s,f){let u=e;e=a(s),e===u?i[e].p(s,f):(G(),$(i[u],1,1,()=>{i[u]=null}),J(),l=i[e],l?l.p(s,f):(l=i[e]=o[e](s),l.c()),h(l,1),l.m(t.parentNode,t))},i(s){n||(h(l),n=!0)},o(s){$(l),n=!1},d(s){i[e].d(s),s&&g(t)}}}function pf(r){let e=(r[10]&&typeof r[10]=="string"?Ie(r[10],r[3],{relative:r[4]}):"")+"",l;return{c(){l=q(e)},l(t){l=U(t,e)},m(t,n){I(t,l,n)},p(t,n){n&25&&e!==(e=(t[10]&&typeof t[10]=="string"?Ie(t[10],t[3],{relative:t[4]}):"")+"")&&te(l,e)},i:K,o:K,d(t){t&&g(l)}}}function hf(r){var t,n;let e=(((n=(t=r[0].searchAttributes)==null?void 0:t.indexedFields)==null?void 0:n.TemporalScheduledById)??"")+"",l;return{c(){l=q(e)},l(o){l=U(o,e)},m(o,i){I(o,l,i)},p(o,i){var a,s;i&1&&e!==(e=(((s=(a=o[0].searchAttributes)==null?void 0:a.indexedFields)==null?void 0:s.TemporalScheduledById)??"")+"")&&te(l,e)},i:K,o:K,d(o){o&&g(l)}}}function gf(r){let e=(parseInt(r[0].historyEvents,10)>0?r[0].historyEvents:"")+"",l;return{c(){l=q(e)},l(t){l=U(t,e)},m(t,n){I(t,l,n)},p(t,n){n&1&&e!==(e=(parseInt(t[0].historyEvents,10)>0?t[0].historyEvents:"")+"")&&te(l,e)},i:K,o:K,d(t){t&&g(l)}}}function bf(r){let e=al({start:r[0].startTime,end:r[0].endTime,includeMillisecondsForUnderSecond:!0})+"",l;return{c(){l=q(e)},l(t){l=U(t,e)},m(t,n){I(t,l,n)},p(t,n){n&1&&e!==(e=al({start:t[0].startTime,end:t[0].endTime,includeMillisecondsForUnderSecond:!0})+"")&&te(l,e)},i:K,o:K,d(t){t&&g(l)}}}function $f(r){let e=Ie(r[0].executionTime,r[3],{relative:r[4]})+"",l;return{c(){l=q(e)},l(t){l=U(t,e)},m(t,n){I(t,l,n)},p(t,n){n&25&&e!==(e=Ie(t[0].executionTime,t[3],{relative:t[4]})+"")&&te(l,e)},i:K,o:K,d(t){t&&g(l)}}}function kf(r){let e=(parseInt(r[0].stateTransitionCount,10)>0?r[0].stateTransitionCount:"")+"",l;return{c(){l=q(e)},l(t){l=U(t,e)},m(t,n){I(t,l,n)},p(t,n){n&1&&e!==(e=(parseInt(t[0].stateTransitionCount,10)>0?t[0].stateTransitionCount:"")+"")&&te(l,e)},i:K,o:K,d(t){t&&g(l)}}}function wf(r){let e=gn(parseInt(r[0].historySizeBytes,10))+"",l;return{c(){l=q(e)},l(t){l=U(t,e)},m(t,n){I(t,l,n)},p(t,n){n&1&&e!==(e=gn(parseInt(t[0].historySizeBytes,10))+"")&&te(l,e)},i:K,o:K,d(t){t&&g(l)}}}function vf(r){let e=r[0].parentNamespaceId+"",l;return{c(){l=q(e)},l(t){l=U(t,e)},m(t,n){I(t,l,n)},p(t,n){n&1&&e!==(e=t[0].parentNamespaceId+"")&&te(l,e)},i:K,o:K,d(t){t&&g(l)}}}function If(r){let e=r[0].taskQueue+"",l;return{c(){l=q(e)},l(t){l=U(t,e)},m(t,n){I(t,l,n)},p(t,n){n&1&&e!==(e=t[0].taskQueue+"")&&te(l,e)},i:K,o:K,d(t){t&&g(l)}}}function Ef(r){let e=Ie(r[0].startTime,r[3],{relative:r[4]})+"",l;return{c(){l=q(e)},l(t){l=U(t,e)},m(t,n){I(t,l,n)},p(t,n){n&25&&e!==(e=Ie(t[0].startTime,t[3],{relative:t[4]})+"")&&te(l,e)},i:K,o:K,d(t){t&&g(l)}}}function Tf(r){let e=Ie(r[0].endTime,r[3],{relative:r[4]})+"",l;return{c(){l=q(e)},l(t){l=U(t,e)},m(t,n){I(t,l,n)},p(t,n){n&25&&e!==(e=Ie(t[0].endTime,t[3],{relative:t[4]})+"")&&te(l,e)},i:K,o:K,d(t){t&&g(l)}}}function yf(r){let e,l;return e=new qt({props:{status:r[0].status}}),{c(){E(e.$$.fragment)},l(t){T(e.$$.fragment,t)},m(t,n){y(e,t,n),l=!0},p(t,n){const o={};n&1&&(o.status=t[0].status),e.$set(o)},i(t){l||(h(e.$$.fragment,t),l=!0)},o(t){$(e.$$.fragment,t),l=!1},d(t){D(e,t)}}}function Df(r){let e=r[10]+"",l;return{c(){l=q(e)},l(t){l=U(t,e)},m(t,n){I(t,l,n)},p(t,n){n&5&&e!==(e=t[10]+"")&&te(l,e)},i:K,o:K,d(t){t&&g(l)}}}function Lf(r){let e,l;return e=new _o({props:{$$slots:{default:[Sf]},$$scope:{ctx:r}}}),{c(){E(e.$$.fragment)},l(t){T(e.$$.fragment,t)},m(t,n){y(e,t,n),l=!0},p(t,n){const o={};n&2053&&(o.$$scope={dirty:n,ctx:t}),e.$set(o)},i(t){l||(h(e.$$.fragment,t),l=!0)},o(t){$(e.$$.fragment,t),l=!1},d(t){D(e,t)}}}function Bf(r){let e=Ie(r[10],r[3],{relative:r[4]})+"",l;return{c(){l=q(e)},l(t){l=U(t,e)},m(t,n){I(t,l,n)},p(t,n){n&29&&e!==(e=Ie(t[10],t[3],{relative:t[4]})+"")&&te(l,e)},i:K,o:K,d(t){t&&g(l)}}}function Sf(r){let e=r[10]+"",l;return{c(){l=q(e)},l(t){l=U(t,e)},m(t,n){I(t,l,n)},p(t,n){n&5&&e!==(e=t[10]+"")&&te(l,e)},d(t){t&&g(l)}}}function Cf(r){let e,l;return e=new Jt({props:{filterOrCopyButtonsVisible:r[1],attribute:"RunId",workflow:r[0]}}),{c(){E(e.$$.fragment)},l(t){T(e.$$.fragment,t)},m(t,n){y(e,t,n),l=!0},p(t,n){const o={};n&2&&(o.filterOrCopyButtonsVisible=t[1]),n&1&&(o.workflow=t[0]),e.$set(o)},i(t){l||(h(e.$$.fragment,t),l=!0)},o(t){$(e.$$.fragment,t),l=!1},d(t){D(e,t)}}}function Nf(r){let e,l;return e=new Jt({props:{filterOrCopyButtonsVisible:r[1],attribute:"WorkflowId",workflow:r[0]}}),{c(){E(e.$$.fragment)},l(t){T(e.$$.fragment,t)},m(t,n){y(e,t,n),l=!0},p(t,n){const o={};n&2&&(o.filterOrCopyButtonsVisible=t[1]),n&1&&(o.workflow=t[0]),e.$set(o)},i(t){l||(h(e.$$.fragment,t),l=!0)},o(t){$(e.$$.fragment,t),l=!1},d(t){D(e,t)}}}function Af(r){let e,l;return e=new Jt({props:{filterOrCopyButtonsVisible:r[1],attribute:"WorkflowType",workflow:r[0]}}),{c(){E(e.$$.fragment)},l(t){T(e.$$.fragment,t)},m(t,n){y(e,t,n),l=!0},p(t,n){const o={};n&2&&(o.filterOrCopyButtonsVisible=t[1]),n&1&&(o.workflow=t[0]),e.$set(o)},i(t){l||(h(e.$$.fragment,t),l=!0)},o(t){$(e.$$.fragment,t),l=!1},d(t){D(e,t)}}}function Pf(r){let e,l,t,n;const o=[_f,mf],i=[];function a(s,f){return s[2]==="Run ID"||s[2]==="Workflow ID"||s[2]==="Type"?0:1}return e=a(r),l=i[e]=o[e](r),{c(){l.c(),t=X()},l(s){l.l(s),t=X()},m(s,f){i[e].m(s,f),I(s,t,f),n=!0},p(s,[f]){let u=e;e=a(s),e===u?i[e].p(s,f):(G(),$(i[u],1,1,()=>{i[u]=null}),J(),l=i[e],l?l.p(s,f):(l=i[e]=o[e](s),l.c()),h(l,1),l.m(t.parentNode,t))},i(s){n||(h(l),n=!0)},o(s){$(l),n=!1},d(s){i[e].d(s),s&&g(t)}}}function Of(r,e,l){let t,n,o,i;j(r,at,m=>l(3,n=m)),j(r,Qn,m=>l(4,o=m)),j(r,Yn,m=>l(5,i=m));let{column:a}=e,{workflow:s}=e,f=!1;const u=()=>l(1,f=!0),c=()=>l(1,f=!1),_=m=>{const p=m.relatedTarget;p&&!["filter-button","copy-button"].includes(p.id)&&c()};return r.$$set=m=>{"column"in m&&l(9,a=m.column),"workflow"in m&&l(0,s=m.workflow)},r.$$.update=()=>{r.$$.dirty&512&&l(2,{label:t}=a,t)},[s,f,t,n,o,i,u,c,_,a]}class Ff extends re{constructor(e){super(),oe(this,e,Of,Pf,se,{column:9,workflow:0})}}function Vf(r){let e,l,t;return{c(){e=N("th"),l=q(r[0]),this.h()},l(n){e=A(n,"TH",{class:!0,"data-testid":!0});var o=W(e);l=U(o,r[0]),o.forEach(g),this.h()},h(){S(e,"class","workflows-summary-table-header-cell svelte-x2wk3"),S(e,"data-testid",t="workflows-summary-table-header-cell-"+r[0])},m(n,o){I(n,e,o),C(e,l)},p(n,[o]){o&1&&te(l,n[0]),o&1&&t!==(t="workflows-summary-table-header-cell-"+n[0])&&S(e,"data-testid",t)},i:K,o:K,d(n){n&&g(e)}}}function Wf(r,e,l){let t,{column:n}=e;return r.$$set=o=>{"column"in o&&l(1,n=o.column)},r.$$.update=()=>{r.$$.dirty&2&&l(0,{label:t}=n,t)},[t,n]}class Rf extends re{constructor(e){super(),oe(this,e,Wf,Vf,se,{column:1})}}const Mf=["workflowCancelDisabled","workflowTerminateDisabled"],Hf=r=>r.disableWriteActions||r.batchActionsDisabled?!1:Mf.some(e=>!r[e]),fr=Ge([go,mt,bo,Er],([r,e,l,t])=>(t?!0:ho(r,"1.18.0"))&&e&&Hf(l));function qf(r){let e,l,t,n,o;const i=r[5].default,a=he(i,r,r[4],null);return{c(){e=N("button"),a&&a.c(),this.h()},l(s){e=A(s,"BUTTON",{"data-testid":!0,class:!0});var f=W(e);a&&a.l(f),f.forEach(g),this.h()},h(){S(e,"data-testid",r[0]),e.disabled=r[1],S(e,"class",l="bulk-action-button "+r[2]+" "+r[3].class+" svelte-19w6g7u")},m(s,f){I(s,e,f),a&&a.m(e,null),t=!0,n||(o=ce(e,"click",r[6]),n=!0)},p(s,[f]){a&&a.p&&(!t||f&16)&&ge(a,i,s,s[4],t?$e(i,s[4],f,null):be(s[4]),null),(!t||f&1)&&S(e,"data-testid",s[0]),(!t||f&2)&&(e.disabled=s[1]),(!t||f&12&&l!==(l="bulk-action-button "+s[2]+" "+s[3].class+" svelte-19w6g7u"))&&S(e,"class",l)},i(s){t||(h(a,s),t=!0)},o(s){$(a,s),t=!1},d(s){s&&g(e),a&&a.d(s),n=!1,o()}}}function Uf(r,e,l){let{$$slots:t={},$$scope:n}=e,{testId:o=null}=e,{disabled:i=!1}=e,{variant:a="primary"}=e;function s(f){Me.call(this,r,f)}return r.$$set=f=>{l(3,e=vt(vt({},e),It(f))),"testId"in f&&l(0,o=f.testId),"disabled"in f&&l(1,i=f.disabled),"variant"in f&&l(2,a=f.variant),"$$scope"in f&&l(4,n=f.$$scope)},e=It(e),[o,i,a,e,n,t,s]}class ur extends re{constructor(e){super(),oe(this,e,Uf,qf,se,{testId:0,disabled:1,variant:2})}}function jf(r){let e,l,t,n,o,i,a,s,f,u,c;return l=new Pe({props:{key:"workflows.n-selected",count:r[1]}}),a=new Pe({props:{key:"workflows.select-all",count:r[6].count}}),{c(){e=N("span"),E(l.$$.fragment),t=F(),n=N("span"),o=q("(or "),i=N("button"),E(a.$$.fragment),s=q(")"),this.h()},l(_){e=A(_,"SPAN",{class:!0});var m=W(e);T(l.$$.fragment,m),m.forEach(g),t=V(_),n=A(_,"SPAN",{});var p=W(n);o=U(p,"(or "),i=A(p,"BUTTON",{"data-testid":!0,class:!0});var d=W(i);T(a.$$.fragment,d),d.forEach(g),s=U(p,")"),p.forEach(g),this.h()},h(){S(e,"class","font-semibold"),S(i,"data-testid","select-all-workflows"),S(i,"class","cursor-pointer underline")},m(_,m){I(_,e,m),y(l,e,null),I(_,t,m),I(_,n,m),C(n,o),C(n,i),y(a,i,null),C(n,s),f=!0,u||(c=ce(i,"click",r[13]),u=!0)},p(_,m){const p={};m&2&&(p.count=_[1]),l.$set(p);const d={};m&64&&(d.count=_[6].count),a.$set(d)},i(_){f||(h(l.$$.fragment,_),h(a.$$.fragment,_),f=!0)},o(_){$(l.$$.fragment,_),$(a.$$.fragment,_),f=!1},d(_){_&&g(e),D(l),_&&g(t),_&&g(n),D(a),u=!1,c()}}}function zf(r){let e,l,t;return l=new Pe({props:{key:"workflows.all-selected",count:r[6].count}}),{c(){e=N("span"),E(l.$$.fragment),this.h()},l(n){e=A(n,"SPAN",{class:!0});var o=W(e);T(l.$$.fragment,o),o.forEach(g),this.h()},h(){S(e,"class","font-semibold")},m(n,o){I(n,e,o),y(l,e,null),t=!0},p(n,o){const i={};o&64&&(i.count=n[6].count),l.$set(i)},i(n){t||(h(l.$$.fragment,n),t=!0)},o(n){$(l.$$.fragment,n),t=!1},d(n){n&&g(e),D(l)}}}function bn(r){let e,l;return e=new ur({props:{testId:"bulk-cancel-button",disabled:r[2]||!r[7].length,$$slots:{default:[Kf]},$$scope:{ctx:r}}}),e.$on("click",yu),{c(){E(e.$$.fragment)},l(t){T(e.$$.fragment,t)},m(t,n){y(e,t,n),l=!0},p(t,n){const o={};n&132&&(o.disabled=t[2]||!t[7].length),n&16384&&(o.$$scope={dirty:n,ctx:t}),e.$set(o)},i(t){l||(h(e.$$.fragment,t),l=!0)},o(t){$(e.$$.fragment,t),l=!1},d(t){D(e,t)}}}function Kf(r){let e=P("workflows.request-cancellation")+"",l;return{c(){l=q(e)},l(t){l=U(t,e)},m(t,n){I(t,l,n)},p:K,d(t){t&&g(l)}}}function $n(r){let e,l;return e=new ur({props:{variant:"destructive",testId:"bulk-terminate-button",disabled:r[2],$$slots:{default:[Qf]},$$scope:{ctx:r}}}),e.$on("click",Du),{c(){E(e.$$.fragment)},l(t){T(e.$$.fragment,t)},m(t,n){y(e,t,n),l=!0},p(t,n){const o={};n&4&&(o.disabled=t[2]),n&16384&&(o.$$scope={dirty:n,ctx:t}),e.$set(o)},i(t){l||(h(e.$$.fragment,t),l=!0)},o(t){$(e.$$.fragment,t),l=!1},d(t){D(e,t)}}}function Qf(r){let e=P("workflows.terminate")+"",l;return{c(){l=q(e)},l(t){l=U(t,e)},m(t,n){I(t,l,n)},p:K,d(t){t&&g(l)}}}function Yf(r){let e,l,t,n,o,i;const a=[zf,jf],s=[];function f(_,m){return _[5]?0:1}e=f(r),l=s[e]=a[e](r);let u=r[3]&&bn(r),c=r[4]&&$n(r);return{c(){l.c(),t=F(),n=N("div"),u&&u.c(),o=F(),c&&c.c(),this.h()},l(_){l.l(_),t=V(_),n=A(_,"DIV",{class:!0});var m=W(n);u&&u.l(m),o=V(m),c&&c.l(m),m.forEach(g),this.h()},h(){S(n,"class","ml-4 inline-flex gap-2")},m(_,m){s[e].m(_,m),I(_,t,m),I(_,n,m),u&&u.m(n,null),C(n,o),c&&c.m(n,null),i=!0},p(_,[m]){let p=e;e=f(_),e===p?s[e].p(_,m):(G(),$(s[p],1,1,()=>{s[p]=null}),J(),l=s[e],l?l.p(_,m):(l=s[e]=a[e](_),l.c()),h(l,1),l.m(t.parentNode,t)),_[3]?u?(u.p(_,m),m&8&&h(u,1)):(u=bn(_),u.c(),h(u,1),u.m(n,o)):u&&(G(),$(u,1,1,()=>{u=null}),J()),_[4]?c?(c.p(_,m),m&16&&h(c,1)):(c=$n(_),c.c(),h(c,1),c.m(n,null)):c&&(G(),$(c,1,1,()=>{c=null}),J())},i(_){i||(h(l),h(u),h(c),i=!0)},o(_){$(l),$(u),$(c),i=!1},d(_){s[e].d(_),_&&g(t),_&&g(n),u&&u.d(),c&&c.d()}}}function Gf(r,e,l){let t,n,o,i,a,s,f,u,c;j(r,Te,k=>l(10,i=k)),j(r,De,k=>l(12,s=k)),j(r,Ke,k=>l(5,f=k)),j(r,zn,k=>l(6,u=k)),j(r,cr,k=>l(7,c=k));var _;let{workflows:m}=e,p=$o();j(r,p,k=>l(11,a=k));let d;const b=()=>Lu(m);return r.$$set=k=>{"workflows"in k&&l(0,m=k.workflows)},r.$$.update=()=>{r.$$.dirty&4608&&l(1,d=l(9,_=s==null?void 0:s.length)!==null&&_!==void 0?_:0),r.$$.dirty&1024&&l(4,t=Nr(i.data.settings)),r.$$.dirty&1024&&l(3,n=Ar(i.data.settings)),r.$$.dirty&3072&&l(2,o=a.namespaceWriteDisabled(i.params.namespace))},[m,d,o,n,t,f,u,c,p,_,i,a,s,b]}class Jf extends re{constructor(e){super(),oe(this,e,Gf,Yf,se,{workflows:0})}}function kn(r){let e,l,t,n;function o(a){r[13](a)}let i={label:r[4],labelHidden:!0,id:"select-visible-workflows","data-testid":"batch-actions-checkbox",onDark:!0,hoverable:!0,indeterminate:r[5]};return r[7]!==void 0&&(i.checked=r[7]),l=new Mt({props:i}),ie.push(()=>fe(l,"checked",o)),l.$on("change",r[9]),{c(){e=N("th"),E(l.$$.fragment),this.h()},l(a){e=A(a,"TH",{class:!0});var s=W(e);T(l.$$.fragment,s),s.forEach(g),this.h()},h(){S(e,"class","batch-actions-checkbox-table-cell svelte-1nquu83")},m(a,s){I(a,e,s),y(l,e,null),n=!0},p(a,s){const f={};s&16&&(f.label=a[4]),s&32&&(f.indeterminate=a[5]),!t&&s&128&&(t=!0,f.checked=a[7],ue(()=>t=!1)),l.$set(f)},i(a){n||(h(l.$$.fragment,a),n=!0)},o(a){$(l.$$.fragment,a),n=!1},d(a){a&&g(e),D(l)}}}function Xf(r){let e;const l=r[12].default,t=he(l,r,r[11],null);return{c(){t&&t.c()},l(n){t&&t.l(n)},m(n,o){t&&t.m(n,o),e=!0},p(n,o){t&&t.p&&(!e||o&2048)&&ge(t,l,n,n[11],e?$e(l,n[11],o,null):be(n[11]),null)},i(n){e||(h(t,n),e=!0)},o(n){$(t,n),e=!1},d(n){t&&t.d(n)}}}function Zf(r){let e,l,t;return l=new Jf({props:{workflows:r[0]}}),{c(){e=N("th"),E(l.$$.fragment),this.h()},l(n){e=A(n,"TH",{class:!0,colspan:!0});var o=W(e);T(l.$$.fragment,o),o.forEach(g),this.h()},h(){S(e,"class","batch-actions-table-cell svelte-1nquu83"),S(e,"colspan",r[3])},m(n,o){I(n,e,o),y(l,e,null),t=!0},p(n,o){const i={};o&1&&(i.workflows=n[0]),l.$set(i),(!t||o&8)&&S(e,"colspan",n[3])},i(n){t||(h(l.$$.fragment,n),t=!0)},o(n){$(l.$$.fragment,n),t=!1},d(n){n&&g(e),D(l)}}}function xf(r){let e,l,t,n,o,i,a,s,f=!r[1]&&r[6]&&kn(r);const u=[Zf,Xf],c=[];function _(m,p){return m[6]&&m[8]?0:1}return t=_(r),n=c[t]=u[t](r),a=new Le({props:{"data-testid":"workflows-summary-table-configuration-button",icon:"vertical-ellipsis",label:P("workflows.open-configure-workflows")}}),a.$on("click",function(){Rn(r[2])&&r[2].apply(this,arguments)}),{c(){e=N("tr"),f&&f.c(),l=F(),n.c(),o=F(),i=N("th"),E(a.$$.fragment),this.h()},l(m){e=A(m,"TR",{});var p=W(e);f&&f.l(p),l=V(p),n.l(p),o=V(p),i=A(p,"TH",{class:!0});var d=W(i);T(a.$$.fragment,d),d.forEach(g),p.forEach(g),this.h()},h(){S(i,"class","configuration-button-table-cell svelte-1nquu83")},m(m,p){I(m,e,p),f&&f.m(e,null),C(e,l),c[t].m(e,null),C(e,o),C(e,i),y(a,i,null),s=!0},p(m,[p]){r=m,!r[1]&&r[6]?f?(f.p(r,p),p&66&&h(f,1)):(f=kn(r),f.c(),h(f,1),f.m(e,l)):f&&(G(),$(f,1,1,()=>{f=null}),J());let d=t;t=_(r),t===d?c[t].p(r,p):(G(),$(c[d],1,1,()=>{c[d]=null}),J(),n=c[t],n?n.p(r,p):(n=c[t]=u[t](r),n.c()),h(n,1),n.m(e,o))},i(m){s||(h(f),h(n),h(a.$$.fragment,m),s=!0)},o(m){$(f),$(n),$(a.$$.fragment,m),s=!1},d(m){m&&g(e),f&&f.d(),c[t].d(),D(a)}}}function eu(r,e,l){let t,n,o,i,a,s;j(r,De,k=>l(10,o=k)),j(r,fr,k=>l(6,i=k)),j(r,ft,k=>l(7,a=k)),j(r,Eu,k=>l(8,s=k));let{$$slots:f={},$$scope:u}=e,{workflows:c}=e,{empty:_}=e,{onClickConfigure:m=K}=e,{columnsCount:p}=e;const d=k=>{const{checked:w}=k.detail;Bu(w,c)};function b(k){a=k,ft.set(a)}return r.$$set=k=>{"workflows"in k&&l(0,c=k.workflows),"empty"in k&&l(1,_=k.empty),"onClickConfigure"in k&&l(2,m=k.onClickConfigure),"columnsCount"in k&&l(3,p=k.columnsCount),"$$scope"in k&&l(11,u=k.$$scope)},r.$$.update=()=>{r.$$.dirty&1025&&l(5,t=o.length>0&&o.lengthfe(l,"group",o)),{c(){e=N("td"),E(l.$$.fragment),this.h()},l(a){e=A(a,"TD",{class:!0});var s=W(e);T(l.$$.fragment,s),s.forEach(g),this.h()},h(){S(e,"class","px-2")},m(a,s){I(a,e,s),y(l,e,null),n=!0},p(a,s){const f={};s&4&&(f.label=a[2]),s&1&&(f.value=a[0]),s&32&&(f.disabled=a[5]),s&4&&(f["aria-label"]=a[2]),!t&&s&16&&(t=!0,f.group=a[4],ue(()=>t=!1)),l.$set(f)},i(a){n||(h(l.$$.fragment,a),n=!0)},o(a){$(l.$$.fragment,a),n=!1},d(a){a&&g(e),D(l)}}}function lu(r){let e,l,t,n,o,i=!r[1]&&r[3]&&wn(r);const a=r[7].default,s=he(a,r,r[6],null);return{c(){e=N("tr"),i&&i.c(),l=F(),s&&s.c(),t=F(),n=N("td"),this.h()},l(f){e=A(f,"TR",{"data-testid":!0});var u=W(e);i&&i.l(u),l=V(u),s&&s.l(u),t=V(u),n=A(u,"TD",{}),W(n).forEach(g),u.forEach(g),this.h()},h(){S(e,"data-testid","workflows-summary-configurable-table-row"),me(e,"empty",r[1])},m(f,u){I(f,e,u),i&&i.m(e,null),C(e,l),s&&s.m(e,null),C(e,t),C(e,n),o=!0},p(f,[u]){!f[1]&&f[3]?i?(i.p(f,u),u&10&&h(i,1)):(i=wn(f),i.c(),h(i,1),i.m(e,l)):i&&(G(),$(i,1,1,()=>{i=null}),J()),s&&s.p&&(!o||u&64)&&ge(s,a,f,f[6],o?$e(a,f[6],u,null):be(f[6]),null),(!o||u&2)&&me(e,"empty",f[1])},i(f){o||(h(i),h(s,f),o=!0)},o(f){$(i),$(s,f),o=!1},d(f){f&&g(e),i&&i.d(),s&&s.d(f)}}}function nu(r,e,l){let t,n,o,i;j(r,fr,_=>l(3,n=_)),j(r,De,_=>l(4,o=_)),j(r,Ke,_=>l(5,i=_));let{$$slots:a={},$$scope:s}=e,{workflow:f=void 0}=e,{empty:u=!1}=e;function c(_){o=_,De.set(o)}return r.$$set=_=>{"workflow"in _&&l(0,f=_.workflow),"empty"in _&&l(1,u=_.empty),"$$scope"in _&&l(6,s=_.$$scope)},r.$$.update=()=>{r.$$.dirty&1&&l(2,t=P("workflows.select-workflow",{workflow:f==null?void 0:f.id}))},[f,u,t,n,o,i,s,a,c]}class ru extends re{constructor(e){super(),oe(this,e,nu,lu,se,{workflow:0,empty:1})}}function vn(r,e,l){const t=r.slice();return t[18]=e[l],t}function In(r,e,l){const t=r.slice();return t[15]=e[l],t}function En(r,e,l){const t=r.slice();return t[15]=e[l],t}const ou=r=>({}),Tn=r=>({slot:"cloud"});function yn(r){let e,l;return e=new Ff({props:{workflow:r[18],column:r[15]}}),{c(){E(e.$$.fragment)},l(t){T(e.$$.fragment,t)},m(t,n){y(e,t,n),l=!0},p(t,n){const o={};n&16384&&(o.workflow=t[18]),n&16&&(o.column=t[15]),e.$set(o)},i(t){l||(h(e.$$.fragment,t),l=!0)},o(t){$(e.$$.fragment,t),l=!1},d(t){D(e,t)}}}function su(r){let e,l,t=r[4],n=[];for(let i=0;i$(n[i],1,1,()=>{n[i]=null});return{c(){for(let i=0;i$(n[i],1,1,()=>{n[i]=null});return{c(){for(let i=0;i$(n[i],1,1,()=>{n[i]=null});return{c(){for(let i=0;i({14:o}),({visibleItems:o})=>o?16384:0],headers:[uu,({visibleItems:o})=>({14:o}),({visibleItems:o})=>o?16384:0],caption:[iu,({visibleItems:o})=>({14:o}),({visibleItems:o})=>o?16384:0],default:[au,({visibleItems:o})=>({14:o}),({visibleItems:o})=>o?16384:0]},$$scope:{ctx:r}}}),t=new ao({props:{open:r[2],onClick:r[7],position:"right",id:"workflows-summary-table-configuration-drawer",dark:!1,title:P("workflows.configure-workflows"),closeButtonLabel:P("workflows.close-configure-workflows"),$$slots:{subtitle:[_u],default:[mu]},$$scope:{ctx:r}}}),{c(){E(e.$$.fragment),l=F(),E(t.$$.fragment)},l(o){T(e.$$.fragment,o),l=V(o),T(t.$$.fragment,o)},m(o,i){y(e,o,i),I(o,l,i),y(t,o,i),n=!0},p(o,[i]){const a={};i&32&&(a.updating=o[5]),i&2&&(a.items=o[1]),i&24600&&(a.$$scope={dirty:i,ctx:o}),e.$set(a);const s={};i&4&&(s.open=o[2]),i&8193&&(s.$$scope={dirty:i,ctx:o}),t.$set(s)},i(o){n||(h(e.$$.fragment,o),h(t.$$.fragment,o),n=!0)},o(o){$(e.$$.fragment,o),$(t.$$.fragment,o),n=!1},d(o){D(e,o),o&&g(l),D(t,o)}}}function pu(r,e,l){let t,n,o,i,a,s,f;j(r,Ht,k=>l(1,i=k)),j(r,Nt,k=>l(9,a=k)),j(r,Te,k=>l(10,s=k)),j(r,Dt,k=>l(5,f=k));let{$$slots:u={},$$scope:c}=e;var _;let m=!1;const p=()=>{l(2,m=!0)},d=()=>{l(2,m=!1)},b=k=>P("common.go-to-page",{page:k});return r.$$set=k=>{"$$scope"in k&&l(13,c=k.$$scope)},r.$$.update=()=>{r.$$.dirty&1024&&l(0,{namespace:t}=s.params,t),r.$$.dirty&769&&l(4,n=l(8,_=a==null?void 0:a[t])!==null&&_!==void 0?_:[]),r.$$.dirty&2&&l(3,o=i.length===0)},[t,i,m,o,n,f,p,d,_,a,s,u,b,c]}class hu extends re{constructor(e){super(),oe(this,e,pu,du,se,{})}}const gu=r=>{const e=vo({workflows:r},null,2);l(e,`workflows-${r==null?void 0:r.length}-${Date.now()}.json`,"text/plain");function l(t,n,o){const i=document.createElement("a"),a=new Blob([t],{type:o});i.href=URL.createObjectURL(a),i.download=n,i.click()}},bu=r=>({}),Bn=r=>({slot:"cloud"});function $u(r){let e,l;return e=new Pe({props:{key:"workflows.recent-workflows"}}),{c(){E(e.$$.fragment)},l(t){T(e.$$.fragment,t)},m(t,n){y(e,t,n),l=!0},p:K,i(t){l||(h(e.$$.fragment,t),l=!0)},o(t){$(e.$$.fragment,t),l=!1},d(t){D(e,t)}}}function ku(r){let e,l=r[4].count.toLocaleString()+"",t,n,o,i;return o=new Pe({props:{key:"common.workflows-plural",count:r[4].count}}),{c(){e=N("span"),t=q(l),n=F(),E(o.$$.fragment),this.h()},l(a){e=A(a,"SPAN",{"data-testid":!0});var s=W(e);t=U(s,l),s.forEach(g),n=V(a),T(o.$$.fragment,a),this.h()},h(){S(e,"data-testid","workflow-count")},m(a,s){I(a,e,s),C(e,t),I(a,n,s),y(o,a,s),i=!0},p(a,s){(!i||s&16)&&l!==(l=a[4].count.toLocaleString()+"")&&te(t,l);const f={};s&16&&(f.count=a[4].count),o.$set(f)},i(a){i||(h(o.$$.fragment,a),i=!0)},o(a){$(o.$$.fragment,a),i=!1},d(a){a&&g(e),a&&g(n),D(o,a)}}}function wu(r){let e=P("common.download-json")+"",l;return{c(){l=q(e)},l(t){l=U(t,e)},m(t,n){I(t,l,n)},p:K,d(t){t&&g(l)}}}function Sn(r){let e,l;return e=new Lr({}),{c(){E(e.$$.fragment)},l(t){T(e.$$.fragment,t)},m(t,n){y(e,t,n),l=!0},i(t){l||(h(e.$$.fragment,t),l=!0)},o(t){$(e.$$.fragment,t),l=!1},d(t){D(e,t)}}}function vu(r){let e;const l=r[15].cloud,t=he(l,r,r[19],Bn);return{c(){t&&t.c()},l(n){t&&t.l(n)},m(n,o){t&&t.m(n,o),e=!0},p(n,o){t&&t.p&&(!e||o&524288)&&ge(t,l,n,n[19],e?$e(l,n[19],o,bu):be(n[19]),Bn)},i(n){e||(h(t,n),e=!0)},o(n){$(t,n),e=!1},d(n){t&&t.d(n)}}}function Iu(r){let e,l,t,n,o,i,a,s,f,u,c,_,m,p,d,b,k,w,v,L,R,B,M={action:Ze.Terminate,actionableWorkflowsLength:r[1].length,query:r[0]};e=new gl({props:M}),r[16](e),e.$on("confirm",r[7]);let x={action:Ze.Cancel,actionableWorkflowsLength:r[2].length,query:r[0]};t=new gl({props:x}),r[17](t),t.$on("confirm",r[8]);const ee=[ku,$u],Y=[];function O(z,H){return z[3]?0:1}f=O(r),u=Y[f]=ee[f](r),_=new ni({props:{count:r[4].newCount}}),d=new rt({props:{tabindex:0,$$slots:{default:[wu]},$$scope:{ctx:r}}}),d.$on("click",r[18]);let Q=r[6]&&Sn();return v=new Xa({}),R=new hu({props:{$$slots:{cloud:[vu]},$$scope:{ctx:r}}}),{c(){E(e.$$.fragment),l=F(),E(t.$$.fragment),n=F(),o=N("header"),i=N("div"),a=N("div"),s=N("h1"),u.c(),c=F(),E(_.$$.fragment),m=F(),p=N("div"),E(d.$$.fragment),b=F(),Q&&Q.c(),k=F(),w=N("div"),E(v.$$.fragment),L=F(),E(R.$$.fragment),this.h()},l(z){T(e.$$.fragment,z),l=V(z),T(t.$$.fragment,z),n=V(z),o=A(z,"HEADER",{class:!0});var H=W(o);i=A(H,"DIV",{class:!0});var ae=W(i);a=A(ae,"DIV",{});var _e=W(a);s=A(_e,"H1",{class:!0,"data-cy":!0});var de=W(s);u.l(de),c=V(de),T(_.$$.fragment,de),de.forEach(g),_e.forEach(g),m=V(ae),p=A(ae,"DIV",{class:!0});var we=W(p);T(d.$$.fragment,we),we.forEach(g),ae.forEach(g),b=V(H),Q&&Q.l(H),H.forEach(g),k=V(z),w=A(z,"DIV",{class:!0});var Z=W(w);T(v.$$.fragment,Z),Z.forEach(g),L=V(z),T(R.$$.fragment,z),this.h()},h(){S(s,"class","flex items-center gap-2 text-2xl"),S(s,"data-cy","workflows-title"),S(p,"class","flex items-center gap-2 text-sm"),S(i,"class","flex items-center justify-between"),S(o,"class","flex flex-col gap-2"),S(w,"class","flex flex-col gap-2 md:flex-row")},m(z,H){y(e,z,H),I(z,l,H),y(t,z,H),I(z,n,H),I(z,o,H),C(o,i),C(i,a),C(a,s),Y[f].m(s,null),C(s,c),y(_,s,null),C(i,m),C(i,p),y(d,p,null),C(o,b),Q&&Q.m(o,null),I(z,k,H),I(z,w,H),y(v,w,null),I(z,L,H),y(R,z,H),B=!0},p(z,[H]){const ae={};H&2&&(ae.actionableWorkflowsLength=z[1].length),H&1&&(ae.query=z[0]),e.$set(ae);const _e={};H&4&&(_e.actionableWorkflowsLength=z[2].length),H&1&&(_e.query=z[0]),t.$set(_e);let de=f;f=O(z),f===de?Y[f].p(z,H):(G(),$(Y[de],1,1,()=>{Y[de]=null}),J(),u=Y[f],u?u.p(z,H):(u=Y[f]=ee[f](z),u.c()),h(u,1),u.m(s,c));const we={};H&16&&(we.count=z[4].newCount),_.$set(we);const Z={};H&524288&&(Z.$$scope={dirty:H,ctx:z}),d.$set(Z),z[6]?Q?H&64&&h(Q,1):(Q=Sn(),Q.c(),h(Q,1),Q.m(o,null)):Q&&(G(),$(Q,1,1,()=>{Q=null}),J());const ke={};H&524288&&(ke.$$scope={dirty:H,ctx:z}),R.$set(ke)},i(z){B||(h(e.$$.fragment,z),h(t.$$.fragment,z),h(u),h(_.$$.fragment,z),h(d.$$.fragment,z),h(Q),h(v.$$.fragment,z),h(R.$$.fragment,z),B=!0)},o(z){$(e.$$.fragment,z),$(t.$$.fragment,z),$(u),$(_.$$.fragment,z),$(d.$$.fragment,z),$(Q),$(v.$$.fragment,z),$(R.$$.fragment,z),B=!1},d(z){r[16](null),D(e,z),z&&g(l),r[17](null),D(t,z),z&&g(n),z&&g(o),Y[f].d(),D(_),D(d),Q&&Q.d(),z&&g(k),z&&g(w),D(v),z&&g(L),D(R,z)}}}let Ce,Ne;const Ke=He(!1),ft=He(!1),De=He([]),Eu=Ge(De,r=>r.length>0),Tu=Ge(De,r=>r.filter(e=>e.canBeTerminated)),cr=Ge(De,r=>r.filter(e=>e.status==="Running")),yu=()=>{Ne==null||Ne.open()},Du=()=>{Ce==null||Ce.open()},Lu=r=>{Ke.set(!0),De.set([...r])},Bu=(r,e)=>{ft.set(r),Ke&&Ke.set(!1),r?De.set([...e]):De.set([])};function Su(r,e,l){let t,n,o,i,a,s,f=K,u,c=K,_,m,p=K,d,b=K,k,w,v,L,R,B=K,M,x,ee,Y;j(r,Dt,Z=>l(11,i=Z)),j(r,st,Z=>l(12,a=Z)),j(r,Tu,Z=>l(1,s=Z)),j(r,Ke,Z=>l(20,u=Z)),j(r,Te,Z=>l(13,_=Z)),j(r,De,Z=>l(21,m=Z)),j(r,ft,Z=>l(22,d=Z)),j(r,nt,Z=>l(23,k=Z)),j(r,pe,Z=>l(14,w=Z)),j(r,Tt,Z=>l(24,v=Z)),j(r,Et,Z=>l(25,L=Z)),j(r,cr,Z=>l(2,R=Z)),j(r,mt,Z=>l(3,M=Z)),j(r,zn,Z=>l(4,x=Z)),j(r,Ht,Z=>l(5,ee=Z)),j(r,Or,Z=>l(6,Y=Z)),r.$$.on_destroy.push(()=>f()),r.$$.on_destroy.push(()=>c()),r.$$.on_destroy.push(()=>p()),r.$$.on_destroy.push(()=>b()),r.$$.on_destroy.push(()=>B());let{$$slots:O={},$$scope:Q}=e;Hn(()=>{le(Tt,v=_.params.namespace,v),t&&le(pe,w=tr(t,k),w)});const z=()=>{le(Ke,u=!1,u),le(ft,d=!1,d),le(De,m=[],m)},H=async Z=>{var ke;try{const ve={namespace:_.params.namespace,reason:Z.detail.reason,jobId:Z.detail.jobId,...u?{query:o}:{workflows:s}};await ko(ve),Ce==null||Ce.close(),rl.push({message:P("workflows.batch-terminate-all-success"),id:"batch-terminate-success-toast"})}catch(ve){Ce==null||Ce.setError((ke=ve==null?void 0:ve.message)!==null&&ke!==void 0?ke:P("common.unknown-error"))}},ae=async Z=>{var ke;const ve={namespace:_.params.namespace,reason:Z.detail.reason,jobId:Z.detail.jobId,...u?{query:o}:{workflows:s}};try{await wo(ve),Ne==null||Ne.close(),rl.push({message:P("workflows.batch-cancel-all-success"),id:"batch-cancel-success-toast"})}catch(We){Ne==null||Ne.setError((ke=We==null?void 0:We.message)!==null&&ke!==void 0?ke:P("common.unknown-error"))}};function _e(Z){ie[Z?"unshift":"push"](()=>{Ce=Z})}function de(Z){ie[Z?"unshift":"push"](()=>{Ne=Z})}const we=()=>gu(ee);return r.$$set=Z=>{"$$scope"in Z&&l(19,Q=Z.$$scope)},r.$$.update=()=>{r.$$.dirty&8192&&l(9,t=_.url.searchParams.get("query")),r.$$.dirty&512&&t&&le(st,a=t,a),r.$$.dirty&8192&&l(10,n=_.url.searchParams.toString()),r.$$.dirty&1024&&le(Et,L=n,L),r.$$.dirty&16384&&(w.length||le(st,a="",a)),r.$$.dirty&4096&&l(0,o=a||'ExecutionStatus="Running"'),r.$$.dirty&2048&&i&&z()},[o,s,R,M,x,ee,Y,H,ae,t,n,i,a,_,w,O,_e,de,we,Q]}class Cu extends re{constructor(e){super(),oe(this,e,Su,Iu,se,{})}}function Cn(r,e,l){const t=r.slice();return t[16]=e[l][0],t[17]=e[l][1],t}function Nn(r,e,l){const t=r.slice();return t[17]=e[l],t}function Nu(r){let e,l;return e=new rt({props:{href:r[2].url.pathname+"?search=advanced",$$slots:{default:[Pu]},$$scope:{ctx:r}}}),e.$on("click",r[6]("advanced")),{c(){E(e.$$.fragment)},l(t){T(e.$$.fragment,t)},m(t,n){y(e,t,n),l=!0},p(t,n){const o={};n&4&&(o.href=t[2].url.pathname+"?search=advanced"),n&4194304&&(o.$$scope={dirty:n,ctx:t}),e.$set(o)},i(t){l||(h(e.$$.fragment,t),l=!0)},o(t){$(e.$$.fragment,t),l=!1},d(t){D(e,t)}}}function Au(r){let e,l;return e=new rt({props:{href:r[2].url.pathname+"?search=basic",$$slots:{default:[Ou]},$$scope:{ctx:r}}}),e.$on("click",r[6]("basic")),{c(){E(e.$$.fragment)},l(t){T(e.$$.fragment,t)},m(t,n){y(e,t,n),l=!0},p(t,n){const o={};n&4&&(o.href=t[2].url.pathname+"?search=basic"),n&4194304&&(o.$$scope={dirty:n,ctx:t}),e.$set(o)},i(t){l||(h(e.$$.fragment,t),l=!0)},o(t){$(e.$$.fragment,t),l=!1},d(t){D(e,t)}}}function Pu(r){let e=P("workflows.advanced-search")+"",l;return{c(){l=q(e)},l(t){l=U(t,e)},m(t,n){I(t,l,n)},p:K,d(t){t&&g(l)}}}function Ou(r){let e=P("workflows.basic-search")+"",l;return{c(){l=q(e)},l(t){l=U(t,e)},m(t,n){I(t,l,n)},p:K,d(t){t&&g(l)}}}function Fu(r){let e,l,t,n,o,i,a,s,f,u,c,_,m,p,d,b;function k(O){r[9](O)}let w={icon:"search",type:"search",id:"workflow-id-filter",placeholder:P("common.workflow-id"),label:P("common.workflow-id"),labelHidden:!0};r[3].workflowId!==void 0&&(w.value=r[3].workflowId),l=new ye({props:w}),ie.push(()=>fe(l,"value",k)),l.$on("input",r[8]);function v(O){r[10](O)}let L={icon:"search",type:"search",id:"workflow-type-filter",placeholder:P("common.workflow-type"),label:P("common.workflow-type"),labelHidden:!0};r[3].workflowType!==void 0&&(L.value=r[3].workflowType),o=new ye({props:L}),ie.push(()=>fe(o,"value",v)),o.$on("input",r[8]);function R(O){r[11](O)}let B={id:"time-range-filter",label:P("common.time-range"),$$slots:{default:[Hu]},$$scope:{ctx:r}};r[3].timeRange!==void 0&&(B.value=r[3].timeRange),s=new Pt({props:B}),ie.push(()=>fe(s,"value",R)),s.$on("change",r[8]);function M(O){r[12](O)}let x={id:"execution-status-filter",label:P("common.status"),$$slots:{default:[Uu]},$$scope:{ctx:r}};r[3].executionStatus!==void 0&&(x.value=r[3].executionStatus),c=new Pt({props:x}),ie.push(()=>fe(c,"value",M)),c.$on("change",r[8]);function ee(O){r[13](O)}let Y={id:"filter-by-relative-time",label:P("common.time-format"),$$slots:{default:[Qu]},$$scope:{ctx:r}};return r[4]!==void 0&&(Y.value=r[4]),p=new Pt({props:Y}),ie.push(()=>fe(p,"value",ee)),{c(){e=N("div"),E(l.$$.fragment),n=F(),E(o.$$.fragment),a=F(),E(s.$$.fragment),u=F(),E(c.$$.fragment),m=F(),E(p.$$.fragment),this.h()},l(O){e=A(O,"DIV",{role:!0,class:!0});var Q=W(e);T(l.$$.fragment,Q),n=V(Q),T(o.$$.fragment,Q),a=V(Q),T(s.$$.fragment,Q),u=V(Q),T(c.$$.fragment,Q),m=V(Q),T(p.$$.fragment,Q),Q.forEach(g),this.h()},h(){S(e,"role","search"),S(e,"class","grid grid-cols-1 gap-4 sm:grid-cols-2 md:grid-cols-5")},m(O,Q){I(O,e,Q),y(l,e,null),C(e,n),y(o,e,null),C(e,a),y(s,e,null),C(e,u),y(c,e,null),C(e,m),y(p,e,null),b=!0},p(O,Q){const z={};!t&&Q&8&&(t=!0,z.value=O[3].workflowId,ue(()=>t=!1)),l.$set(z);const H={};!i&&Q&8&&(i=!0,H.value=O[3].workflowType,ue(()=>i=!1)),o.$set(H);const ae={};Q&4194312&&(ae.$$scope={dirty:Q,ctx:O}),!f&&Q&8&&(f=!0,ae.value=O[3].timeRange,ue(()=>f=!1)),s.$set(ae);const _e={};Q&4194304&&(_e.$$scope={dirty:Q,ctx:O}),!_&&Q&8&&(_=!0,_e.value=O[3].executionStatus,ue(()=>_=!1)),c.$set(_e);const de={};Q&4194304&&(de.$$scope={dirty:Q,ctx:O}),!d&&Q&16&&(d=!0,de.value=O[4],ue(()=>d=!1)),p.$set(de)},i(O){b||(h(l.$$.fragment,O),h(o.$$.fragment,O),h(s.$$.fragment,O),h(c.$$.fragment,O),h(p.$$.fragment,O),b=!0)},o(O){$(l.$$.fragment,O),$(o.$$.fragment,O),$(s.$$.fragment,O),$(c.$$.fragment,O),$(p.$$.fragment,O),b=!1},d(O){O&&g(e),D(l),D(o),D(s),D(c),D(p)}}}function Vu(r){let e,l;return e=new Wr({props:{icon:!0,id:"advanced-search",placeholder:P("common.query"),value:r[1]}}),e.$on("submit",r[7]),{c(){E(e.$$.fragment)},l(t){T(e.$$.fragment,t)},m(t,n){y(e,t,n),l=!0},p(t,n){const o={};n&2&&(o.value=t[1]),e.$set(o)},i(t){l||(h(e.$$.fragment,t),l=!0)},o(t){$(e.$$.fragment,t),l=!1},d(t){D(e,t)}}}function Wu(r){let e;return{c(){e=q("All")},l(l){e=U(l,"All")},m(l,t){I(l,e,t)},d(l){l&&g(e)}}}function An(r){let e,l;return e=new Ye({props:{value:r[3].timeRange,$$slots:{default:[Ru]},$$scope:{ctx:r}}}),{c(){E(e.$$.fragment)},l(t){T(e.$$.fragment,t)},m(t,n){y(e,t,n),l=!0},p(t,n){const o={};n&8&&(o.value=t[3].timeRange),n&4194312&&(o.$$scope={dirty:n,ctx:t}),e.$set(o)},i(t){l||(h(e.$$.fragment,t),l=!0)},o(t){$(e.$$.fragment,t),l=!1},d(t){D(e,t)}}}function Ru(r){let e=r[3].timeRange+"",l;return{c(){l=q(e)},l(t){l=U(t,e)},m(t,n){I(t,l,n)},p(t,n){n&8&&e!==(e=t[3].timeRange+"")&&te(l,e)},d(t){t&&g(l)}}}function Mu(r){let e=r[17]+"",l;return{c(){l=q(e)},l(t){l=U(t,e)},m(t,n){I(t,l,n)},p:K,d(t){t&&g(l)}}}function Pn(r){let e,l;return e=new Ye({props:{value:r[17],$$slots:{default:[Mu]},$$scope:{ctx:r}}}),{c(){E(e.$$.fragment)},l(t){T(e.$$.fragment,t)},m(t,n){y(e,t,n),l=!0},p(t,n){const o={};n&4194304&&(o.$$scope={dirty:n,ctx:t}),e.$set(o)},i(t){l||(h(e.$$.fragment,t),l=!0)},o(t){$(e.$$.fragment,t),l=!1},d(t){D(e,t)}}}function Hu(r){let e,l,t=r[3].timeRange&&!$t.includes(r[3].timeRange),n,o,i;e=new Ye({props:{value:null,$$slots:{default:[Wu]},$$scope:{ctx:r}}});let a=t&&An(r),s=$t,f=[];for(let c=0;c$(f[c],1,1,()=>{f[c]=null});return{c(){E(e.$$.fragment),l=F(),a&&a.c(),n=F();for(let c=0;c{a=null}),J()),_&0){s=$t;let p;for(p=0;pa[16];for(let a=0;a{u[k]=null}),J(),n=u[t],n?n.p(d,b):(n=u[t]=f[t](d),n.c()),h(n,1),n.m(l,null));let w=i;i=p(d),i===w?m[i].p(d,b):(G(),$(m[w],1,1,()=>{m[w]=null}),J(),a=m[i],a?a.p(d,b):(a=m[i]=_[i](d),a.c()),h(a,1),a.m(e,null))},i(d){s||(h(n),h(a),s=!0)},o(d){$(n),$(a),s=!1},d(d){d&&g(e),u[t].d(),m[i].d()}}}function Gu(r,e,l){let t,n,o,i;j(r,Te,v=>l(2,o=v)),j(r,at,v=>l(4,i=v));const a=xe();let{searchType:s}=e;const f=ll({timeRange:"All"}),u={All:null,Running:"Running","Timed Out":"TimedOut",Completed:"Completed",Failed:"Failed","Continued as New":"ContinuedAsNew",Canceled:"Canceled",Terminated:"Terminated"},c=v=>()=>{l(0,s=v)},_=v=>{a("search");const L=new FormData(v.target);l(1,t=String(L.get("query"))),l(3,n=sl(t)),Ae({url:o.url,parameter:"query",value:t})},m=Kn(()=>{a("search"),l(1,t=ll(n)),Ae({url:o.url,parameter:"query",value:t,allowEmpty:!0})},300);function p(v){r.$$.not_equal(n.workflowId,v)&&(n.workflowId=v,l(3,n),l(1,t),l(2,o))}function d(v){r.$$.not_equal(n.workflowType,v)&&(n.workflowType=v,l(3,n),l(1,t),l(2,o))}function b(v){r.$$.not_equal(n.timeRange,v)&&(n.timeRange=v,l(3,n),l(1,t),l(2,o))}function k(v){r.$$.not_equal(n.executionStatus,v)&&(n.executionStatus=v,l(3,n),l(1,t),l(2,o))}function w(v){i=v,at.set(i)}return r.$$set=v=>{"searchType"in v&&l(0,s=v.searchType)},r.$$.update=()=>{r.$$.dirty&4&&l(1,t=o.url.searchParams.get("query")),r.$$.dirty&2&&l(3,n=sl(t??f))},[s,t,o,n,i,u,c,_,m,p,d,b,k,w]}class Ju extends re{constructor(e){super(),oe(this,e,Gu,Yu,se,{searchType:0})}}const Xu=r=>Xr(r)?r==="basic"||r==="advanced":!1,Zu=r=>{const e=r.searchParams.get("search");return Xu(e)?e:(r.searchParams.set("search","basic"),"basic")};function Fn(r,e,l){const t=r.slice();return t[13]=e[l],t}function Vn(r){let e,l,t,n,o,i,a,s,f,u;const c=[ec,xu],_=[];function m(k,w){return k[4]?0:1}t=m(r),n=_[t]=c[t](r);const p=[lc,tc],d=[];function b(k,w){return k[4]?0:1}return a=b(r),s=d[a]=p[a](r),{c(){e=N("tr"),l=N("td"),n.c(),o=F(),i=N("td"),s.c(),f=F(),this.h()},l(k){e=A(k,"TR",{});var w=W(e);l=A(w,"TD",{colspan:!0,class:!0});var v=W(l);n.l(v),v.forEach(g),o=V(w),i=A(w,"TD",{colspan:!0,class:!0});var L=W(i);s.l(L),L.forEach(g),f=V(w),w.forEach(g),this.h()},h(){S(l,"colspan","5"),S(l,"class","xl:hidden"),S(i,"colspan","7"),S(i,"class","hidden xl:table-cell")},m(k,w){I(k,e,w),C(e,l),_[t].m(l,null),C(e,o),C(e,i),d[a].m(i,null),C(e,f),u=!0},p(k,w){let v=t;t=m(k),t===v?_[t].p(k,w):(G(),$(_[v],1,1,()=>{_[v]=null}),J(),n=_[t],n?n.p(k,w):(n=_[t]=c[t](k),n.c()),h(n,1),n.m(l,null));let L=a;a=b(k),a===L?d[a].p(k,w):(G(),$(d[L],1,1,()=>{d[L]=null}),J(),s=d[a],s?s.p(k,w):(s=d[a]=p[a](k),s.c()),h(s,1),s.m(i,null))},i(k){u||(h(n),h(s),u=!0)},o(k){$(n),$(s),u=!1},d(k){k&&g(e),_[t].d(),d[a].d()}}}function xu(r){let e,l;return e=new Zn({props:{title:"No Workflows Found",content:r[6],error:r[5]}}),{c(){E(e.$$.fragment)},l(t){T(e.$$.fragment,t)},m(t,n){y(e,t,n),l=!0},p(t,n){const o={};n&32&&(o.error=t[5]),e.$set(o)},i(t){l||(h(e.$$.fragment,t),l=!0)},o(t){$(e.$$.fragment,t),l=!1},d(t){D(e,t)}}}function ec(r){let e,l;return e=new Ut({}),{c(){E(e.$$.fragment)},l(t){T(e.$$.fragment,t)},m(t,n){y(e,t,n),l=!0},p:K,i(t){l||(h(e.$$.fragment,t),l=!0)},o(t){$(e.$$.fragment,t),l=!1},d(t){D(e,t)}}}function tc(r){let e,l;return e=new Zn({props:{title:"No Workflows Found",content:r[6],error:r[5]}}),{c(){E(e.$$.fragment)},l(t){T(e.$$.fragment,t)},m(t,n){y(e,t,n),l=!0},p(t,n){const o={};n&32&&(o.error=t[5]),e.$set(o)},i(t){l||(h(e.$$.fragment,t),l=!0)},o(t){$(e.$$.fragment,t),l=!1},d(t){D(e,t)}}}function lc(r){let e,l;return e=new Ut({}),{c(){E(e.$$.fragment)},l(t){T(e.$$.fragment,t)},m(t,n){y(e,t,n),l=!0},p:K,i(t){l||(h(e.$$.fragment,t),l=!0)},o(t){$(e.$$.fragment,t),l=!1},d(t){D(e,t)}}}function Wn(r){let e,l;return e=new Mr({props:{workflow:r[13],namespace:r[1].params.namespace}}),{c(){E(e.$$.fragment)},l(t){T(e.$$.fragment,t)},m(t,n){y(e,t,n),l=!0},p(t,n){const o={};n&4096&&(o.workflow=t[13]),n&2&&(o.namespace=t[1].params.namespace),e.$set(o)},i(t){l||(h(e.$$.fragment,t),l=!0)},o(t){$(e.$$.fragment,t),l=!1},d(t){D(e,t)}}}function nc(r){let e,l,t=r[12],n=[];for(let a=0;a$(n[a],1,1,()=>{n[a]=null});let i=null;return t.length||(i=Vn(r)),{c(){for(let a=0;a{i=null}),J()):(i=Vn(a),i.c(),h(i,1),i.m(e.parentNode,e))}},i(a){if(!l){for(let s=0;sfe(d,"searchType",L)),w=new Io({props:{items:r[2],"aria-label":P("workflows.recent-workflows"),pageSizeSelectLabel:P("common.per-page"),previousButtonLabel:P("common.previous"),nextButtonLabel:P("common.next"),$$slots:{default:[rc,({visibleItems:B})=>({12:B}),({visibleItems:B})=>B?4096:0]},$$scope:{ctx:r}}}),{c(){e=N("header"),l=N("div"),t=N("h1"),o=q(n),i=F(),a=N("div"),s=N("p"),u=q(f),c=F(),_=N("div"),E(m.$$.fragment),p=F(),E(d.$$.fragment),k=F(),E(w.$$.fragment),this.h()},l(B){e=A(B,"HEADER",{class:!0});var M=W(e);l=A(M,"DIV",{});var x=W(l);t=A(x,"H1",{class:!0,"data-testid":!0});var ee=W(t);o=U(ee,n),ee.forEach(g),i=V(x),a=A(x,"DIV",{class:!0});var Y=W(a);s=A(Y,"P",{"data-testid":!0});var O=W(s);u=U(O,f),O.forEach(g),Y.forEach(g),x.forEach(g),c=V(M),_=A(M,"DIV",{});var Q=W(_);T(m.$$.fragment,Q),Q.forEach(g),M.forEach(g),p=V(B),T(d.$$.fragment,B),k=V(B),T(w.$$.fragment,B),this.h()},h(){S(t,"class","text-2xl"),S(t,"data-testid","namespace-title"),S(s,"data-testid","namespace-name"),S(a,"class","flex items-center gap-2 text-sm"),S(e,"class","mb-2 flex items-center justify-between")},m(B,M){I(B,e,M),C(e,l),C(l,t),C(t,o),C(l,i),C(l,a),C(a,s),C(s,u),C(e,c),C(e,_),y(m,_,null),I(B,p,M),y(d,B,M),I(B,k,M),y(w,B,M),v=!0},p(B,[M]){(!v||M&2)&&f!==(f=B[1].params.namespace+"")&&te(u,f);const x={};!b&&M&1&&(b=!0,x.searchType=B[0],ue(()=>b=!1)),d.$set(x);const ee={};M&4&&(ee.items=B[2]),M&69690&&(ee.$$scope={dirty:M,ctx:B}),w.$set(ee)},i(B){v||(h(m.$$.fragment,B),h(d.$$.fragment,B),h(w.$$.fragment,B),v=!0)},o(B){$(m.$$.fragment,B),$(d.$$.fragment,B),$(w.$$.fragment,B),v=!1},d(B){B&&g(e),D(m),B&&g(p),D(d,B),B&&g(k),D(w,B)}}}function sc(r,e,l){let t,n,o,i,a,s,f,u;j(r,Te,d=>l(1,t=d)),j(r,Et,d=>l(9,n=d)),j(r,ze,d=>l(10,o=d)),j(r,Tt,d=>l(11,i=d)),j(r,Ht,d=>l(2,a=d)),j(r,Dt,d=>l(3,s=d)),j(r,Un,d=>l(4,f=d)),j(r,jn,d=>l(5,u=d));let c=Zu(t.url);const _=c==="advanced"?"Please check your syntax and try again.":"If you have filters applied, try adjusting them.";Hn(()=>{le(Tt,i=t.params.namespace,i)});const m=()=>{le(ze,o=Date.now(),o)};Ir(()=>{le(Et,n=t.url.searchParams.toString(),n)});function p(d){c=d,l(0,c)}return[c,t,a,s,f,u,_,m,p]}class ac extends re{constructor(e){super(),oe(this,e,sc,oc,se,{})}}function ic(r){let e,l;return e=new Cu({}),{c(){E(e.$$.fragment)},l(t){T(e.$$.fragment,t)},m(t,n){y(e,t,n),l=!0},i(t){l||(h(e.$$.fragment,t),l=!0)},o(t){$(e.$$.fragment,t),l=!1},d(t){D(e,t)}}}function fc(r){let e,l;return e=new ac({props:{slot:"fallback"}}),{c(){E(e.$$.fragment)},l(t){T(e.$$.fragment,t)},m(t,n){y(e,t,n),l=!0},p:K,i(t){l||(h(e.$$.fragment,t),l=!0)},o(t){$(e.$$.fragment,t),l=!1},d(t){D(e,t)}}}function uc(r){let e,l,t,n;return e=new Tr({props:{title:`Workflows | ${r[0].params.namespace}`,url:r[0].url.href}}),t=new Oo({props:{$$slots:{fallback:[fc],default:[ic]},$$scope:{ctx:r}}}),{c(){E(e.$$.fragment),l=F(),E(t.$$.fragment)},l(o){T(e.$$.fragment,o),l=V(o),T(t.$$.fragment,o)},m(o,i){y(e,o,i),I(o,l,i),y(t,o,i),n=!0},p(o,[i]){const a={};i&1&&(a.title=`Workflows | ${o[0].params.namespace}`),i&1&&(a.url=o[0].url.href),e.$set(a);const s={};i&2&&(s.$$scope={dirty:i,ctx:o}),t.$set(s)},i(o){n||(h(e.$$.fragment,o),h(t.$$.fragment,o),n=!0)},o(o){$(e.$$.fragment,o),$(t.$$.fragment,o),n=!1},d(o){D(e,o),o&&g(l),D(t,o)}}}function cc(r,e,l){let t;return j(r,Te,n=>l(0,t=n)),[t]}class um extends re{constructor(e){super(),oe(this,e,cc,uc,se,{})}}export{um as component,im as universal}; diff --git a/ui/assets/local/_app/immutable/nodes/29.61e4ee2d.js b/ui/assets/local/_app/immutable/nodes/29.496d4b9a.js similarity index 84% rename from ui/assets/local/_app/immutable/nodes/29.61e4ee2d.js rename to ui/assets/local/_app/immutable/nodes/29.496d4b9a.js index f32ede69c3..79e692af78 100644 --- a/ui/assets/local/_app/immutable/nodes/29.61e4ee2d.js +++ b/ui/assets/local/_app/immutable/nodes/29.496d4b9a.js @@ -1 +1 @@ -import{r as n,e as s}from"../chunks/index.3158323b.js";import{j as c}from"../chunks/workflow-service.4d66b505.js";const l=async function({url:r,params:e}){const{namespace:t,workflow:a}=e,{runId:o}=await c({namespace:t,workflowId:a});throw o?n(302,`${r.pathname}/${o}`):s(404)},p=Object.freeze(Object.defineProperty({__proto__:null,load:l},Symbol.toStringTag,{value:"Module"}));export{p as universal}; +import{r as n,e as s}from"../chunks/index.3158323b.js";import{j as c}from"../chunks/workflow-service.e2f4a06b.js";const l=async function({url:r,params:e}){const{namespace:t,workflow:a}=e,{runId:o}=await c({namespace:t,workflowId:a});throw o?n(302,`${r.pathname}/${o}`):s(404)},p=Object.freeze(Object.defineProperty({__proto__:null,load:l},Symbol.toStringTag,{value:"Module"}));export{p as universal}; diff --git a/ui/assets/local/_app/immutable/nodes/3.8d0d3e16.js b/ui/assets/local/_app/immutable/nodes/3.47df72f1.js similarity index 93% rename from ui/assets/local/_app/immutable/nodes/3.8d0d3e16.js rename to ui/assets/local/_app/immutable/nodes/3.47df72f1.js index 59aaf3dd01..e1e0b38c71 100644 --- a/ui/assets/local/_app/immutable/nodes/3.8d0d3e16.js +++ b/ui/assets/local/_app/immutable/nodes/3.47df72f1.js @@ -1 +1 @@ -import{S as m,b as u,a as _,G as c,C as $,c as g,D as d,d as b,E as h,f as y,H as C,I as E,J as H,j as f,g as p,F as I,k as P,K as S}from"../chunks/index.4e2fcbc7.js";import{p as j}from"../chunks/stores.14a97433.js";import{P as k}from"../chunks/page-title.f9a44b80.js";function q(n){let s,o,a;s=new k({props:{title:"Import Event History",url:n[0].url.href}});const l=n[2].default,e=c(l,n,n[1],null);return{c(){$(s.$$.fragment),o=g(),e&&e.c()},l(t){d(s.$$.fragment,t),o=b(t),e&&e.l(t)},m(t,r){h(s,t,r),y(t,o,r),e&&e.m(t,r),a=!0},p(t,[r]){const i={};r&1&&(i.url=t[0].url.href),s.$set(i),e&&e.p&&(!a||r&2)&&C(e,l,t,t[1],a?H(l,t[1],r,null):E(t[1]),null)},i(t){a||(f(s.$$.fragment,t),f(e,t),a=!0)},o(t){p(s.$$.fragment,t),p(e,t),a=!1},d(t){I(s,t),t&&P(o),e&&e.d(t)}}}function v(n,s,o){let a;S(n,j,t=>o(0,a=t));let{$$slots:l={},$$scope:e}=s;return n.$$set=t=>{"$$scope"in t&&o(1,e=t.$$scope)},[a,e,l]}class G extends m{constructor(s){super(),u(this,s,v,q,_,{})}}export{G as component}; +import{S as m,b as u,a as _,G as c,C as $,c as g,D as d,d as b,E as h,f as y,H as C,I as E,J as H,j as f,g as p,F as I,k as P,K as S}from"../chunks/index.4e2fcbc7.js";import{p as j}from"../chunks/stores.0e7b7e35.js";import{P as k}from"../chunks/page-title.f9a44b80.js";function q(n){let s,o,a;s=new k({props:{title:"Import Event History",url:n[0].url.href}});const l=n[2].default,e=c(l,n,n[1],null);return{c(){$(s.$$.fragment),o=g(),e&&e.c()},l(t){d(s.$$.fragment,t),o=b(t),e&&e.l(t)},m(t,r){h(s,t,r),y(t,o,r),e&&e.m(t,r),a=!0},p(t,[r]){const i={};r&1&&(i.url=t[0].url.href),s.$set(i),e&&e.p&&(!a||r&2)&&C(e,l,t,t[1],a?H(l,t[1],r,null):E(t[1]),null)},i(t){a||(f(s.$$.fragment,t),f(e,t),a=!0)},o(t){p(s.$$.fragment,t),p(e,t),a=!1},d(t){I(s,t),t&&P(o),e&&e.d(t)}}}function v(n,s,o){let a;S(n,j,t=>o(0,a=t));let{$$slots:l={},$$scope:e}=s;return n.$$set=t=>{"$$scope"in t&&o(1,e=t.$$scope)},[a,e,l]}class G extends m{constructor(s){super(),u(this,s,v,q,_,{})}}export{G as component}; diff --git a/ui/assets/local/_app/immutable/nodes/31.add13cfd.js b/ui/assets/local/_app/immutable/nodes/31.86858455.js similarity index 95% rename from ui/assets/local/_app/immutable/nodes/31.add13cfd.js rename to ui/assets/local/_app/immutable/nodes/31.86858455.js index 663098508e..f5e1d81505 100644 --- a/ui/assets/local/_app/immutable/nodes/31.add13cfd.js +++ b/ui/assets/local/_app/immutable/nodes/31.86858455.js @@ -1 +1 @@ -import{S as K,b as O,a as G,m as L,p as C,q as D,k as p,f as h,z as H,g as w,h as J,j as k,K as A,C as v,D as y,E,F as T,ar as j,e as B,as as Z,w as P,x as R,L as b,y as M,n as U,c as q,d as Q,u as W}from"../chunks/index.4e2fcbc7.js";import{p as X}from"../chunks/stores.14a97433.js";import{P as x}from"../chunks/page-title.f9a44b80.js";import{t as g}from"../chunks/translate.d23a91ae.js";import{A as ee}from"../chunks/alert.9612e524.js";import{B as te}from"../chunks/button.a45b0e55.js";import{C as re}from"../chunks/code-block.d389dfc4.js";import{E as Y}from"../chunks/empty-state.721f6c59.js";import{L as le}from"../chunks/link.6803bb00.js";import{L as oe}from"../chunks/loading.95801385.js";import{g as z}from"../chunks/query-service.4630b63f.js";import{a as ne}from"../chunks/auth-user.9757f5e9.js";import{w as ae}from"../chunks/workflow-run.86769de7.js";function se(a){let t,r;return t=new Y({props:{title:g("workflows.call-stack-empty-state"),testId:"query-call-stack-empty",$$slots:{default:[ie]},$$scope:{ctx:a}}}),{c(){v(t.$$.fragment)},l(e){y(t.$$.fragment,e)},m(e,l){E(t,e,l),r=!0},p(e,l){const o={};l&4105&&(o.$$scope={dirty:l,ctx:e}),t.$set(o)},i(e){r||(k(t.$$.fragment,e),r=!0)},o(e){w(t.$$.fragment,e),r=!1},d(e){T(t,e)}}}function ce(a){let t,r,e,l={ctx:a,current:null,token:null,hasCatch:!0,pending:$e,then:me,catch:ue,value:10,error:11,blocks:[,,,]};return j(r=a[2],l),{c(){t=B(),l.block.c()},l(o){t=B(),l.block.l(o)},m(o,n){h(o,t,n),l.block.m(o,l.anchor=n),l.mount=()=>t.parentNode,l.anchor=t,e=!0},p(o,n){a=o,l.ctx=a,n&4&&r!==(r=a[2])&&j(r,l)||Z(l,a,n)},i(o){e||(k(l.block),e=!0)},o(o){for(let n=0;n<3;n+=1){const s=l.blocks[n];w(s)}e=!1},d(o){o&&p(t),l.block.d(o),l.token=null,l=null}}}function F(a){var c;let t,r=g("workflows.call-stack-link-preface")+"",e,l,o=g("workflows.call-stack-link-postface",{taskQueue:(c=a[0])==null?void 0:c.taskQueue})+"",n,s;return l=new le({props:{href:"https://docs.temporal.io/workflows#stack-trace-query",$$slots:{default:[fe]},$$scope:{ctx:a}}}),{c(){t=L("p"),e=P(r),v(l.$$.fragment),n=P(o)},l(f){t=C(f,"P",{});var i=D(t);e=R(i,r),y(l.$$.fragment,i),n=R(i,o),i.forEach(p)},m(f,i){h(f,t,i),b(t,e),E(l,t,null),b(t,n),s=!0},p(f,i){var d;const $={};i&4096&&($.$$scope={dirty:i,ctx:f}),l.$set($),(!s||i&1)&&o!==(o=g("workflows.call-stack-link-postface",{taskQueue:(d=f[0])==null?void 0:d.taskQueue})+"")&&M(n,o)},i(f){s||(k(l.$$.fragment,f),s=!0)},o(f){w(l.$$.fragment,f),s=!1},d(f){f&&p(t),T(l)}}}function fe(a){let t=g("workflows.call-stack-link")+"",r;return{c(){r=P(t)},l(e){r=R(e,t)},m(e,l){h(e,r,l)},p:U,d(e){e&&p(r)}}}function ie(a){var l,o,n;let t,r,e=((l=a[0])==null?void 0:l.isRunning)&&((n=(o=a[3])==null?void 0:o.pollers)==null?void 0:n.length)===0&&F(a);return{c(){e&&e.c(),t=B()},l(s){e&&e.l(s),t=B()},m(s,c){e&&e.m(s,c),h(s,t,c),r=!0},p(s,c){var f,i,$;(f=s[0])!=null&&f.isRunning&&(($=(i=s[3])==null?void 0:i.pollers)==null?void 0:$.length)===0?e?(e.p(s,c),c&9&&k(e,1)):(e=F(s),e.c(),k(e,1),e.m(t.parentNode,t)):e&&(H(),w(e,1,1,()=>{e=null}),J())},i(s){r||(k(e),r=!0)},o(s){w(e),r=!1},d(s){e&&e.d(s),s&&p(t)}}}function ue(a){let t,r;return t=new Y({props:{title:g("common.error-occurred"),content:g("workflows.no-workers-running-message")}}),{c(){v(t.$$.fragment)},l(e){y(t.$$.fragment,e)},m(e,l){E(t,e,l),r=!0},p:U,i(e){r||(k(t.$$.fragment,e),r=!0)},o(e){w(t.$$.fragment,e),r=!1},d(e){T(t,e)}}}function me(a){let t,r,e,l,o,n,s=g("workflows.call-stack-at")+"",c,f,i=a[1].toLocaleTimeString()+"",$,d,m,I,N;return t=new ee({props:{intent:"info",icon:"info",title:g("workflows.call-stack-alert"),class:"mb-4 w-fit"}}),l=new te({props:{leadingIcon:"retry",loading:ke,$$slots:{default:[pe]},$$scope:{ctx:a}}}),l.$on("click",a[4]),I=new re({props:{content:a[10],language:"text",testId:"query-call-stack",copyIconTitle:g("common.copy-icon-title"),copySuccessIconTitle:g("common.copy-success-icon-title")}}),{c(){v(t.$$.fragment),r=q(),e=L("div"),v(l.$$.fragment),o=q(),n=L("p"),c=P(s),f=q(),$=P(i),d=q(),m=L("div"),v(I.$$.fragment),this.h()},l(u){y(t.$$.fragment,u),r=Q(u),e=C(u,"DIV",{class:!0});var _=D(e);y(l.$$.fragment,_),o=Q(_),n=C(_,"P",{});var S=D(n);c=R(S,s),f=Q(S),$=R(S,i),S.forEach(p),_.forEach(p),d=Q(u),m=C(u,"DIV",{class:!0});var V=D(m);y(I.$$.fragment,V),V.forEach(p),this.h()},h(){W(e,"class","flex items-center gap-4"),W(m,"class","my-2 flex h-full items-start")},m(u,_){E(t,u,_),h(u,r,_),h(u,e,_),E(l,e,null),b(e,o),b(e,n),b(n,c),b(n,f),b(n,$),h(u,d,_),h(u,m,_),E(I,m,null),N=!0},p(u,_){const S={};_&4096&&(S.$$scope={dirty:_,ctx:u}),l.$set(S),(!N||_&2)&&i!==(i=u[1].toLocaleTimeString()+"")&&M($,i);const V={};_&4&&(V.content=u[10]),I.$set(V)},i(u){N||(k(t.$$.fragment,u),k(l.$$.fragment,u),k(I.$$.fragment,u),N=!0)},o(u){w(t.$$.fragment,u),w(l.$$.fragment,u),w(I.$$.fragment,u),N=!1},d(u){T(t,u),u&&p(r),u&&p(e),T(l),u&&p(d),u&&p(m),T(I)}}}function pe(a){let t=g("common.refresh")+"",r;return{c(){r=P(t)},l(e){r=R(e,t)},m(e,l){h(e,r,l)},p:U,d(e){e&&p(r)}}}function $e(a){let t,r,e,l,o=g("workflows.no-workers-failure-message")+"",n,s;return r=new oe({}),{c(){t=L("div"),v(r.$$.fragment),e=q(),l=L("p"),n=P(o),this.h()},l(c){t=C(c,"DIV",{class:!0});var f=D(t);y(r.$$.fragment,f),e=Q(f),l=C(f,"P",{});var i=D(l);n=R(i,o),i.forEach(p),f.forEach(p),this.h()},h(){W(t,"class","text-center")},m(c,f){h(c,t,f),E(r,t,null),b(t,e),b(t,l),b(l,n),s=!0},p:U,i(c){s||(k(r.$$.fragment,c),s=!0)},o(c){w(r.$$.fragment,c),s=!1},d(c){c&&p(t),T(r)}}}function _e(a){let t,r,e,l;const o=[ce,se],n=[];function s(c,f){var i,$,d;return(i=c[0])!=null&&i.isRunning&&((d=($=c[3])==null?void 0:$.pollers)==null?void 0:d.length)>0?0:1}return r=s(a),e=n[r]=o[r](a),{c(){t=L("section"),e.c()},l(c){t=C(c,"SECTION",{});var f=D(t);e.l(f),f.forEach(p)},m(c,f){h(c,t,f),n[r].m(t,null),l=!0},p(c,[f]){let i=r;r=s(c),r===i?n[r].p(c,f):(H(),w(n[i],1,1,()=>{n[i]=null}),J(),e=n[r],e?e.p(c,f):(e=n[r]=o[r](c),e.c()),k(e,1),e.m(t,null))},i(c){l||(k(e),l=!0)},o(c){w(e),l=!1},d(c){c&&p(t),n[r].d()}}}let ke=!1;function ge(a,t,r){let e,l,o,n,s;A(a,ne,m=>r(6,o=m)),A(a,X,m=>r(7,n=m)),A(a,ae,m=>r(5,s=m));const{namespace:c}=n.params;let f=new Date;const i=()=>{var m;return z({workflow:e,namespace:c},(m=n.data)===null||m===void 0?void 0:m.settings,o==null?void 0:o.accessToken)};let $;const d=()=>{var m;r(2,$=z({workflow:e,namespace:c},(m=n.data)===null||m===void 0?void 0:m.settings,o==null?void 0:o.accessToken)),$.then(()=>{r(1,f=new Date)})};return a.$$.update=()=>{a.$$.dirty&32&&r(0,{workflow:e,workers:l}=s,e,(r(3,l),r(5,s))),a.$$.dirty&1&&e!=null&&e.isRunning&&r(2,$=i())},[e,f,$,l,d,s]}class we extends K{constructor(t){super(),O(this,t,ge,_e,G,{})}}function de(a){let t,r,e,l;return t=new x({props:{title:`${g("workflows.call-stack-tab")} | ${a[1]}`,url:a[0].url.href}}),e=new we({}),{c(){v(t.$$.fragment),r=q(),v(e.$$.fragment)},l(o){y(t.$$.fragment,o),r=Q(o),y(e.$$.fragment,o)},m(o,n){E(t,o,n),h(o,r,n),E(e,o,n),l=!0},p(o,[n]){const s={};n&1&&(s.url=o[0].url.href),t.$set(s)},i(o){l||(k(t.$$.fragment,o),k(e.$$.fragment,o),l=!0)},o(o){w(t.$$.fragment,o),w(e.$$.fragment,o),l=!1},d(o){T(t,o),o&&p(r),T(e,o)}}}function he(a,t,r){let e;A(a,X,o=>r(0,e=o));const l=e.params.workflow;return[e,l]}class Qe extends K{constructor(t){super(),O(this,t,he,de,G,{})}}export{Qe as component}; +import{S as K,b as O,a as G,m as L,p as C,q as D,k as p,f as h,z as H,g as w,h as J,j as k,K as A,C as v,D as y,E,F as T,ar as j,e as B,as as Z,w as P,x as R,L as b,y as M,n as U,c as q,d as Q,u as W}from"../chunks/index.4e2fcbc7.js";import{p as X}from"../chunks/stores.0e7b7e35.js";import{P as x}from"../chunks/page-title.f9a44b80.js";import{t as g}from"../chunks/translate.d23a91ae.js";import{A as ee}from"../chunks/alert.9612e524.js";import{B as te}from"../chunks/button.a45b0e55.js";import{C as re}from"../chunks/code-block.55adac36.js";import{E as Y}from"../chunks/empty-state.721f6c59.js";import{L as le}from"../chunks/link.6803bb00.js";import{L as oe}from"../chunks/loading.95801385.js";import{g as z}from"../chunks/query-service.2a94e5c4.js";import{a as ne}from"../chunks/auth-user.ce52bc5e.js";import{w as ae}from"../chunks/workflow-run.8b92989d.js";function se(a){let t,r;return t=new Y({props:{title:g("workflows.call-stack-empty-state"),testId:"query-call-stack-empty",$$slots:{default:[ie]},$$scope:{ctx:a}}}),{c(){v(t.$$.fragment)},l(e){y(t.$$.fragment,e)},m(e,l){E(t,e,l),r=!0},p(e,l){const o={};l&4105&&(o.$$scope={dirty:l,ctx:e}),t.$set(o)},i(e){r||(k(t.$$.fragment,e),r=!0)},o(e){w(t.$$.fragment,e),r=!1},d(e){T(t,e)}}}function ce(a){let t,r,e,l={ctx:a,current:null,token:null,hasCatch:!0,pending:$e,then:me,catch:ue,value:10,error:11,blocks:[,,,]};return j(r=a[2],l),{c(){t=B(),l.block.c()},l(o){t=B(),l.block.l(o)},m(o,n){h(o,t,n),l.block.m(o,l.anchor=n),l.mount=()=>t.parentNode,l.anchor=t,e=!0},p(o,n){a=o,l.ctx=a,n&4&&r!==(r=a[2])&&j(r,l)||Z(l,a,n)},i(o){e||(k(l.block),e=!0)},o(o){for(let n=0;n<3;n+=1){const s=l.blocks[n];w(s)}e=!1},d(o){o&&p(t),l.block.d(o),l.token=null,l=null}}}function F(a){var c;let t,r=g("workflows.call-stack-link-preface")+"",e,l,o=g("workflows.call-stack-link-postface",{taskQueue:(c=a[0])==null?void 0:c.taskQueue})+"",n,s;return l=new le({props:{href:"https://docs.temporal.io/workflows#stack-trace-query",$$slots:{default:[fe]},$$scope:{ctx:a}}}),{c(){t=L("p"),e=P(r),v(l.$$.fragment),n=P(o)},l(f){t=C(f,"P",{});var i=D(t);e=R(i,r),y(l.$$.fragment,i),n=R(i,o),i.forEach(p)},m(f,i){h(f,t,i),b(t,e),E(l,t,null),b(t,n),s=!0},p(f,i){var d;const $={};i&4096&&($.$$scope={dirty:i,ctx:f}),l.$set($),(!s||i&1)&&o!==(o=g("workflows.call-stack-link-postface",{taskQueue:(d=f[0])==null?void 0:d.taskQueue})+"")&&M(n,o)},i(f){s||(k(l.$$.fragment,f),s=!0)},o(f){w(l.$$.fragment,f),s=!1},d(f){f&&p(t),T(l)}}}function fe(a){let t=g("workflows.call-stack-link")+"",r;return{c(){r=P(t)},l(e){r=R(e,t)},m(e,l){h(e,r,l)},p:U,d(e){e&&p(r)}}}function ie(a){var l,o,n;let t,r,e=((l=a[0])==null?void 0:l.isRunning)&&((n=(o=a[3])==null?void 0:o.pollers)==null?void 0:n.length)===0&&F(a);return{c(){e&&e.c(),t=B()},l(s){e&&e.l(s),t=B()},m(s,c){e&&e.m(s,c),h(s,t,c),r=!0},p(s,c){var f,i,$;(f=s[0])!=null&&f.isRunning&&(($=(i=s[3])==null?void 0:i.pollers)==null?void 0:$.length)===0?e?(e.p(s,c),c&9&&k(e,1)):(e=F(s),e.c(),k(e,1),e.m(t.parentNode,t)):e&&(H(),w(e,1,1,()=>{e=null}),J())},i(s){r||(k(e),r=!0)},o(s){w(e),r=!1},d(s){e&&e.d(s),s&&p(t)}}}function ue(a){let t,r;return t=new Y({props:{title:g("common.error-occurred"),content:g("workflows.no-workers-running-message")}}),{c(){v(t.$$.fragment)},l(e){y(t.$$.fragment,e)},m(e,l){E(t,e,l),r=!0},p:U,i(e){r||(k(t.$$.fragment,e),r=!0)},o(e){w(t.$$.fragment,e),r=!1},d(e){T(t,e)}}}function me(a){let t,r,e,l,o,n,s=g("workflows.call-stack-at")+"",c,f,i=a[1].toLocaleTimeString()+"",$,d,m,I,N;return t=new ee({props:{intent:"info",icon:"info",title:g("workflows.call-stack-alert"),class:"mb-4 w-fit"}}),l=new te({props:{leadingIcon:"retry",loading:ke,$$slots:{default:[pe]},$$scope:{ctx:a}}}),l.$on("click",a[4]),I=new re({props:{content:a[10],language:"text",testId:"query-call-stack",copyIconTitle:g("common.copy-icon-title"),copySuccessIconTitle:g("common.copy-success-icon-title")}}),{c(){v(t.$$.fragment),r=q(),e=L("div"),v(l.$$.fragment),o=q(),n=L("p"),c=P(s),f=q(),$=P(i),d=q(),m=L("div"),v(I.$$.fragment),this.h()},l(u){y(t.$$.fragment,u),r=Q(u),e=C(u,"DIV",{class:!0});var _=D(e);y(l.$$.fragment,_),o=Q(_),n=C(_,"P",{});var S=D(n);c=R(S,s),f=Q(S),$=R(S,i),S.forEach(p),_.forEach(p),d=Q(u),m=C(u,"DIV",{class:!0});var V=D(m);y(I.$$.fragment,V),V.forEach(p),this.h()},h(){W(e,"class","flex items-center gap-4"),W(m,"class","my-2 flex h-full items-start")},m(u,_){E(t,u,_),h(u,r,_),h(u,e,_),E(l,e,null),b(e,o),b(e,n),b(n,c),b(n,f),b(n,$),h(u,d,_),h(u,m,_),E(I,m,null),N=!0},p(u,_){const S={};_&4096&&(S.$$scope={dirty:_,ctx:u}),l.$set(S),(!N||_&2)&&i!==(i=u[1].toLocaleTimeString()+"")&&M($,i);const V={};_&4&&(V.content=u[10]),I.$set(V)},i(u){N||(k(t.$$.fragment,u),k(l.$$.fragment,u),k(I.$$.fragment,u),N=!0)},o(u){w(t.$$.fragment,u),w(l.$$.fragment,u),w(I.$$.fragment,u),N=!1},d(u){T(t,u),u&&p(r),u&&p(e),T(l),u&&p(d),u&&p(m),T(I)}}}function pe(a){let t=g("common.refresh")+"",r;return{c(){r=P(t)},l(e){r=R(e,t)},m(e,l){h(e,r,l)},p:U,d(e){e&&p(r)}}}function $e(a){let t,r,e,l,o=g("workflows.no-workers-failure-message")+"",n,s;return r=new oe({}),{c(){t=L("div"),v(r.$$.fragment),e=q(),l=L("p"),n=P(o),this.h()},l(c){t=C(c,"DIV",{class:!0});var f=D(t);y(r.$$.fragment,f),e=Q(f),l=C(f,"P",{});var i=D(l);n=R(i,o),i.forEach(p),f.forEach(p),this.h()},h(){W(t,"class","text-center")},m(c,f){h(c,t,f),E(r,t,null),b(t,e),b(t,l),b(l,n),s=!0},p:U,i(c){s||(k(r.$$.fragment,c),s=!0)},o(c){w(r.$$.fragment,c),s=!1},d(c){c&&p(t),T(r)}}}function _e(a){let t,r,e,l;const o=[ce,se],n=[];function s(c,f){var i,$,d;return(i=c[0])!=null&&i.isRunning&&((d=($=c[3])==null?void 0:$.pollers)==null?void 0:d.length)>0?0:1}return r=s(a),e=n[r]=o[r](a),{c(){t=L("section"),e.c()},l(c){t=C(c,"SECTION",{});var f=D(t);e.l(f),f.forEach(p)},m(c,f){h(c,t,f),n[r].m(t,null),l=!0},p(c,[f]){let i=r;r=s(c),r===i?n[r].p(c,f):(H(),w(n[i],1,1,()=>{n[i]=null}),J(),e=n[r],e?e.p(c,f):(e=n[r]=o[r](c),e.c()),k(e,1),e.m(t,null))},i(c){l||(k(e),l=!0)},o(c){w(e),l=!1},d(c){c&&p(t),n[r].d()}}}let ke=!1;function ge(a,t,r){let e,l,o,n,s;A(a,ne,m=>r(6,o=m)),A(a,X,m=>r(7,n=m)),A(a,ae,m=>r(5,s=m));const{namespace:c}=n.params;let f=new Date;const i=()=>{var m;return z({workflow:e,namespace:c},(m=n.data)===null||m===void 0?void 0:m.settings,o==null?void 0:o.accessToken)};let $;const d=()=>{var m;r(2,$=z({workflow:e,namespace:c},(m=n.data)===null||m===void 0?void 0:m.settings,o==null?void 0:o.accessToken)),$.then(()=>{r(1,f=new Date)})};return a.$$.update=()=>{a.$$.dirty&32&&r(0,{workflow:e,workers:l}=s,e,(r(3,l),r(5,s))),a.$$.dirty&1&&e!=null&&e.isRunning&&r(2,$=i())},[e,f,$,l,d,s]}class we extends K{constructor(t){super(),O(this,t,ge,_e,G,{})}}function de(a){let t,r,e,l;return t=new x({props:{title:`${g("workflows.call-stack-tab")} | ${a[1]}`,url:a[0].url.href}}),e=new we({}),{c(){v(t.$$.fragment),r=q(),v(e.$$.fragment)},l(o){y(t.$$.fragment,o),r=Q(o),y(e.$$.fragment,o)},m(o,n){E(t,o,n),h(o,r,n),E(e,o,n),l=!0},p(o,[n]){const s={};n&1&&(s.url=o[0].url.href),t.$set(s)},i(o){l||(k(t.$$.fragment,o),k(e.$$.fragment,o),l=!0)},o(o){w(t.$$.fragment,o),w(e.$$.fragment,o),l=!1},d(o){T(t,o),o&&p(r),T(e,o)}}}function he(a,t,r){let e;A(a,X,o=>r(0,e=o));const l=e.params.workflow;return[e,l]}class Qe extends K{constructor(t){super(),O(this,t,he,de,G,{})}}export{Qe as component}; diff --git a/ui/assets/local/_app/immutable/nodes/32.0642a3ab.js b/ui/assets/local/_app/immutable/nodes/32.3003470c.js similarity index 99% rename from ui/assets/local/_app/immutable/nodes/32.0642a3ab.js rename to ui/assets/local/_app/immutable/nodes/32.3003470c.js index ff737a4c9a..8e657ff166 100644 --- a/ui/assets/local/_app/immutable/nodes/32.0642a3ab.js +++ b/ui/assets/local/_app/immutable/nodes/32.3003470c.js @@ -1,4 +1,4 @@ -import{ac as Rr,S as wt,b as $t,a as kt,C as j,D as G,E as H,j as E,g as C,F as W,K as ze,o as aT,m as Z,c as ne,p as J,q as K,k as S,d as ie,u as U,f as R,L as M,z as Ye,h as je,A as Rl,a5 as ca,w as se,x as oe,W as Lr,X as Fr,y as qe,n as He,G as eb,H as tb,I as rb,J as nb,B as el,e as ft,i as sT,N as tl,O as vp,R as ib,T as pp,U as oT,a7 as ab,aa as sb,ab as ob,av as lT,a3 as lb,a4 as ub,a0 as md,Y as uT,a1 as gd}from"../chunks/index.4e2fcbc7.js";import{p as Ta}from"../chunks/stores.14a97433.js";import{P as cT}from"../chunks/page-title.f9a44b80.js";import{t as Y}from"../chunks/translate.d23a91ae.js";import{A as Ds}from"../chunks/accordion.777f1aaf.js";import{I as Ea}from"../chunks/icon.e8aa24c8.js";import{L as fT}from"../chunks/loading.95801385.js";import{T as cb,a as mi}from"../chunks/toggle-buttons.781b6924.js";import{g as Zc}from"../chunks/index.03feb468.js";import{C as fb}from"../chunks/get-event-categorization.4d9adfe9.js";import{d as rl,e as yd,b as mp}from"../chunks/event-view.56fa9b74.js";import{e as hb}from"../chunks/filters.e20189d3.js";import{w as Da,a as gp,b as yp,r as hT}from"../chunks/workflow-run.86769de7.js";import{c as dT}from"../chunks/format-camel-case.887ffc78.js";import{x as vT,C as db,H as vb,I as pT,J as mT,u as gT,f as yT,n as _T,g as bT,p as wT}from"../chunks/is-event-type.4dbe973b.js";import{s as un,p as ss}from"../chunks/parse-with-big-int.0036a80a.js";import{b as Kr,r as ki,t as Si}from"../chunks/time-format.88312c30.js";import{r as pb,t as mb,q as _d,k as _p,D as bp}from"../chunks/format-time.4f091e0e.js";import{B as $T}from"../chunks/button.a45b0e55.js";import{D as kT}from"../chunks/drawer.802d9486.js";import{T as gb}from"../chunks/tooltip.6cb33d85.js";import{B as dr}from"../chunks/badge.96e01a15.js";import{C as Ca}from"../chunks/code-block.d389dfc4.js";import{P as bd}from"../chunks/payload-decoder.23fe8b7d.js";import{L as jr}from"../chunks/link.6803bb00.js";import{j as wp,k as $p}from"../chunks/format-event-attributes.adc0487a.js";import{i as ST,g as mr,q as kp,h as Sp}from"../chunks/route-for.80613b91.js";import{t as xp}from"../chunks/to-time-difference.be87d1bf.js";import{f as yb}from"../chunks/index.6509bfd4.js";import{A as wd}from"../chunks/alert.9612e524.js";import{w as xT}from"../chunks/task-queue-compatibility.cf5696f8.js";import{P as _b}from"../chunks/pagination.8a23314e.js";import{T as Cs,a as Os}from"../chunks/table-header-row.fec98b60.js";import{T as Nl}from"../chunks/table-row.0fafe278.js";import{W as TT}from"../chunks/workflow-status.781aff44.js";import{C as Ii}from"../chunks/index.2169175d.js";import{b as bb,E as ET,a as DT}from"../chunks/event-summary-table.f0d65a34.js";import{M as CT}from"../chunks/modal.05d30376.js";import{T as wb}from"../chunks/toggle-switch.3a41e457.js";import{a as OT,b as IT}from"../chunks/events-service.d20b1da6.js";import{d as nl,f as os,e as $b}from"../chunks/events.631efcca.js";import{n as PT}from"../chunks/namespaces.85dd397c.js";import{d as Du}from"../chunks/encode-uri.e26747e0.js";import{a as MT}from"../chunks/auth-user.9757f5e9.js";import{e as AT,d as RT}from"../chunks/decode-payload.a8d5059b.js";import{g as NT,a as LT,b as FT}from"../chunks/get-codec.418ac4fc.js";import{h as YT,a as jT}from"../chunks/has.183130b0.js";import{W as HT}from"../chunks/workflow-json-navigator.7a126a38.js";function WT(e){pb(1,arguments);var n=mb(e);return n.setSeconds(0,0),n}function BT(e){pb(1,arguments);var n=mb(e);return n.setSeconds(59,999),n}const MJ=Object.freeze(Object.defineProperty({__proto__:null},Symbol.toStringTag,{value:"Module"}));/** +import{ac as Rr,S as wt,b as $t,a as kt,C as j,D as G,E as H,j as E,g as C,F as W,K as ze,o as aT,m as Z,c as ne,p as J,q as K,k as S,d as ie,u as U,f as R,L as M,z as Ye,h as je,A as Rl,a5 as ca,w as se,x as oe,W as Lr,X as Fr,y as qe,n as He,G as eb,H as tb,I as rb,J as nb,B as el,e as ft,i as sT,N as tl,O as vp,R as ib,T as pp,U as oT,a7 as ab,aa as sb,ab as ob,av as lT,a3 as lb,a4 as ub,a0 as md,Y as uT,a1 as gd}from"../chunks/index.4e2fcbc7.js";import{p as Ta}from"../chunks/stores.0e7b7e35.js";import{P as cT}from"../chunks/page-title.f9a44b80.js";import{t as Y}from"../chunks/translate.d23a91ae.js";import{A as Ds}from"../chunks/accordion.c09eb7a4.js";import{I as Ea}from"../chunks/icon.e8aa24c8.js";import{L as fT}from"../chunks/loading.95801385.js";import{T as cb,a as mi}from"../chunks/toggle-buttons.9dfbcbed.js";import{g as Zc}from"../chunks/index.03feb468.js";import{C as fb}from"../chunks/get-event-categorization.4d9adfe9.js";import{d as rl,e as yd,b as mp}from"../chunks/event-view.50193376.js";import{e as hb}from"../chunks/filters.83a38186.js";import{w as Da,a as gp,b as yp,r as hT}from"../chunks/workflow-run.8b92989d.js";import{c as dT}from"../chunks/format-camel-case.887ffc78.js";import{x as vT,C as db,H as vb,I as pT,J as mT,u as gT,f as yT,n as _T,g as bT,p as wT}from"../chunks/is-event-type.4dbe973b.js";import{s as un,p as ss}from"../chunks/parse-with-big-int.0036a80a.js";import{b as Kr,r as ki,t as Si}from"../chunks/time-format.fa373b4c.js";import{r as pb,t as mb,q as _d,k as _p,D as bp}from"../chunks/format-time.4f091e0e.js";import{B as $T}from"../chunks/button.a45b0e55.js";import{D as kT}from"../chunks/drawer.f57bb4b9.js";import{T as gb}from"../chunks/tooltip.4a34940b.js";import{B as dr}from"../chunks/badge.96e01a15.js";import{C as Ca}from"../chunks/code-block.55adac36.js";import{P as bd}from"../chunks/payload-decoder.0883e1af.js";import{L as jr}from"../chunks/link.6803bb00.js";import{j as wp,k as $p}from"../chunks/format-event-attributes.5632ebeb.js";import{i as ST,g as mr,q as kp,h as Sp}from"../chunks/route-for.084c7a46.js";import{t as xp}from"../chunks/to-time-difference.be87d1bf.js";import{f as yb}from"../chunks/index.6509bfd4.js";import{A as wd}from"../chunks/alert.9612e524.js";import{w as xT}from"../chunks/task-queue-compatibility.cf5696f8.js";import{P as _b}from"../chunks/pagination.605d1f82.js";import{T as Cs,a as Os}from"../chunks/table-header-row.fec98b60.js";import{T as Nl}from"../chunks/table-row.0fafe278.js";import{W as TT}from"../chunks/workflow-status.781aff44.js";import{C as Ii}from"../chunks/index.e93e2a88.js";import{b as bb,E as ET,a as DT}from"../chunks/event-summary-table.7924858b.js";import{M as CT}from"../chunks/modal.19f8e4b8.js";import{T as wb}from"../chunks/toggle-switch.3a41e457.js";import{a as OT,b as IT}from"../chunks/events-service.0141aab0.js";import{d as nl,f as os,e as $b}from"../chunks/events.ccad8a5b.js";import{n as PT}from"../chunks/namespaces.c82b5451.js";import{d as Du}from"../chunks/encode-uri.e26747e0.js";import{a as MT}from"../chunks/auth-user.ce52bc5e.js";import{e as AT,d as RT}from"../chunks/decode-payload.11855cf3.js";import{g as NT,a as LT,b as FT}from"../chunks/get-codec.89017b46.js";import{h as YT,a as jT}from"../chunks/has.183130b0.js";import{W as HT}from"../chunks/workflow-json-navigator.82fd29ea.js";function WT(e){pb(1,arguments);var n=mb(e);return n.setSeconds(0,0),n}function BT(e){pb(1,arguments);var n=mb(e);return n.setSeconds(59,999),n}const MJ=Object.freeze(Object.defineProperty({__proto__:null},Symbol.toStringTag,{value:"Module"}));/** * vis-timeline and vis-graph2d * https://visjs.github.io/vis-timeline/ * diff --git a/ui/assets/local/_app/immutable/nodes/33.00413884.js b/ui/assets/local/_app/immutable/nodes/33.4cfdf017.js similarity index 81% rename from ui/assets/local/_app/immutable/nodes/33.00413884.js rename to ui/assets/local/_app/immutable/nodes/33.4cfdf017.js index 95ea7a5759..f379ddec9e 100644 --- a/ui/assets/local/_app/immutable/nodes/33.00413884.js +++ b/ui/assets/local/_app/immutable/nodes/33.4cfdf017.js @@ -1 +1 @@ -import{r as a}from"../chunks/index.3158323b.js";import{g as s}from"../chunks/route-for.80613b91.js";const c=async function({params:o}){const{namespace:r,workflow:e,run:t}=o,n=s({namespace:r,workflow:e,run:t});throw a(302,n)},u=Object.freeze(Object.defineProperty({__proto__:null,load:c},Symbol.toStringTag,{value:"Module"}));export{u as universal}; +import{r as a}from"../chunks/index.3158323b.js";import{g as s}from"../chunks/route-for.084c7a46.js";const c=async function({params:o}){const{namespace:r,workflow:e,run:t}=o,n=s({namespace:r,workflow:e,run:t});throw a(302,n)},u=Object.freeze(Object.defineProperty({__proto__:null,load:c},Symbol.toStringTag,{value:"Module"}));export{u as universal}; diff --git a/ui/assets/local/_app/immutable/nodes/34.1e721919.js b/ui/assets/local/_app/immutable/nodes/34.c642be39.js similarity index 91% rename from ui/assets/local/_app/immutable/nodes/34.1e721919.js rename to ui/assets/local/_app/immutable/nodes/34.c642be39.js index 3c379d82ef..75cf43c409 100644 --- a/ui/assets/local/_app/immutable/nodes/34.1e721919.js +++ b/ui/assets/local/_app/immutable/nodes/34.c642be39.js @@ -1 +1 @@ -import{S as D,b as K,a as M,C as v,D as b,E as k,j as g,g as h,F as E,K as d,e as w,f as P,z as $,aa as Q,ab as R,h as C,k as W,a5 as F,n as T}from"../chunks/index.4e2fcbc7.js";import{p as U}from"../chunks/stores.14a97433.js";import{E as V,a as X,b as Y}from"../chunks/event-summary-table.f0d65a34.js";import{b as Z}from"../chunks/events-service.d20b1da6.js";import{e as x,b as N}from"../chunks/event-view.56fa9b74.js";import{f as S,e as ee}from"../chunks/events.631efcca.js";function j(o,t,n){const e=o.slice();return e[18]=t[n],e}function q(o){let t,n;return t=new X({props:{loading:o[1]}}),{c(){v(t.$$.fragment)},l(e){b(t.$$.fragment,e)},m(e,i){k(t,e,i),n=!0},p(e,i){const r={};i&2&&(r.loading=e[1]),t.$set(r)},i(e){n||(g(t.$$.fragment,e),n=!0)},o(e){h(t.$$.fragment,e),n=!1},d(e){E(t,e)}}}function z(o,t){let n,e,i;return e=new Y({props:{event:t[18],compact:t[0],expandAll:!0,initialItem:t[4],active:!0}}),{key:o,first:null,c(){n=w(),v(e.$$.fragment),this.h()},l(r){n=w(),b(e.$$.fragment,r),this.h()},h(){this.first=n},m(r,m){P(r,n,m),k(e,r,m),i=!0},p(r,m){t=r;const s={};m&4&&(s.event=t[18]),m&1&&(s.compact=t[0]),m&16&&(s.initialItem=t[4]),e.$set(s)},i(r){i||(g(e.$$.fragment,r),i=!0)},o(r){h(e.$$.fragment,r),i=!1},d(r){r&&W(n),E(e,r)}}}function te(o){let t=[],n=new Map,e,i,r=o[2];const m=l=>`${l[18].id}-${l[18].timestamp}`;for(let l=0;l{s=null}),C()):(s=q(l),s.c(),g(s,1),s.m(e.parentNode,e)))},i(l){if(!i){for(let a=0;an(11,_=f)),d(o,S,f=>n(12,u=f)),d(o,ee,f=>n(13,p=f)),d(o,x,f=>n(14,I=f)),d(o,N,f=>n(15,A=f));let{compact:H=!1}=t,y=!1;const B=()=>{F(S,u=[],u),n(1,y=!0)},G=async(f,L,O)=>{u.length||(n(1,y=!0),B(),F(S,u=await Z({namespace:f,workflowId:L,runId:O}),u),n(1,y=!1))};function J(f){F(N,A=f.detail.expanded,A)}return o.$$set=f=>{"compact"in f&&n(0,H=f.compact)},o.$$.update=()=>{o.$$.dirty&2048&&n(10,{namespace:e,workflow:i,run:r}=_.params,e,(n(9,i),n(11,_)),(n(8,r),n(11,_))),o.$$.dirty&1792&&G(e,i,r),o.$$.dirty&24577&&n(7,m=I==="descending"&&!H?p==null?void 0:p.end:p==null?void 0:p.start),o.$$.dirty&4224&&n(6,s=u.length?u:m),o.$$.dirty&64&&n(4,l=s==null?void 0:s[0]),o.$$.dirty&4160&&n(3,a=s.length&&!u.length),o.$$.dirty&6144&&n(2,c=u.filter(f=>f.id===_.params.id))},[H,y,c,a,l,J,s,m,r,i,e,_,u,p,I]}class oe extends D{constructor(t){super(),K(this,t,re,ne,M,{compact:0})}}function le(o){let t,n;return t=new oe({}),{c(){v(t.$$.fragment)},l(e){b(t.$$.fragment,e)},m(e,i){k(t,e,i),n=!0},p:T,i(e){n||(g(t.$$.fragment,e),n=!0)},o(e){h(t.$$.fragment,e),n=!1},d(e){E(t,e)}}}class ce extends D{constructor(t){super(),K(this,t,null,le,M,{})}}export{ce as component}; +import{S as D,b as K,a as M,C as v,D as b,E as k,j as g,g as h,F as E,K as d,e as w,f as P,z as $,aa as Q,ab as R,h as C,k as W,a5 as F,n as T}from"../chunks/index.4e2fcbc7.js";import{p as U}from"../chunks/stores.0e7b7e35.js";import{E as V,a as X,b as Y}from"../chunks/event-summary-table.7924858b.js";import{b as Z}from"../chunks/events-service.0141aab0.js";import{e as x,b as N}from"../chunks/event-view.50193376.js";import{f as S,e as ee}from"../chunks/events.ccad8a5b.js";function j(o,t,n){const e=o.slice();return e[18]=t[n],e}function q(o){let t,n;return t=new X({props:{loading:o[1]}}),{c(){v(t.$$.fragment)},l(e){b(t.$$.fragment,e)},m(e,i){k(t,e,i),n=!0},p(e,i){const r={};i&2&&(r.loading=e[1]),t.$set(r)},i(e){n||(g(t.$$.fragment,e),n=!0)},o(e){h(t.$$.fragment,e),n=!1},d(e){E(t,e)}}}function z(o,t){let n,e,i;return e=new Y({props:{event:t[18],compact:t[0],expandAll:!0,initialItem:t[4],active:!0}}),{key:o,first:null,c(){n=w(),v(e.$$.fragment),this.h()},l(r){n=w(),b(e.$$.fragment,r),this.h()},h(){this.first=n},m(r,m){P(r,n,m),k(e,r,m),i=!0},p(r,m){t=r;const s={};m&4&&(s.event=t[18]),m&1&&(s.compact=t[0]),m&16&&(s.initialItem=t[4]),e.$set(s)},i(r){i||(g(e.$$.fragment,r),i=!0)},o(r){h(e.$$.fragment,r),i=!1},d(r){r&&W(n),E(e,r)}}}function te(o){let t=[],n=new Map,e,i,r=o[2];const m=l=>`${l[18].id}-${l[18].timestamp}`;for(let l=0;l{s=null}),C()):(s=q(l),s.c(),g(s,1),s.m(e.parentNode,e)))},i(l){if(!i){for(let a=0;an(11,_=f)),d(o,S,f=>n(12,u=f)),d(o,ee,f=>n(13,p=f)),d(o,x,f=>n(14,I=f)),d(o,N,f=>n(15,A=f));let{compact:H=!1}=t,y=!1;const B=()=>{F(S,u=[],u),n(1,y=!0)},G=async(f,L,O)=>{u.length||(n(1,y=!0),B(),F(S,u=await Z({namespace:f,workflowId:L,runId:O}),u),n(1,y=!1))};function J(f){F(N,A=f.detail.expanded,A)}return o.$$set=f=>{"compact"in f&&n(0,H=f.compact)},o.$$.update=()=>{o.$$.dirty&2048&&n(10,{namespace:e,workflow:i,run:r}=_.params,e,(n(9,i),n(11,_)),(n(8,r),n(11,_))),o.$$.dirty&1792&&G(e,i,r),o.$$.dirty&24577&&n(7,m=I==="descending"&&!H?p==null?void 0:p.end:p==null?void 0:p.start),o.$$.dirty&4224&&n(6,s=u.length?u:m),o.$$.dirty&64&&n(4,l=s==null?void 0:s[0]),o.$$.dirty&4160&&n(3,a=s.length&&!u.length),o.$$.dirty&6144&&n(2,c=u.filter(f=>f.id===_.params.id))},[H,y,c,a,l,J,s,m,r,i,e,_,u,p,I]}class oe extends D{constructor(t){super(),K(this,t,re,ne,M,{compact:0})}}function le(o){let t,n;return t=new oe({}),{c(){v(t.$$.fragment)},l(e){b(t.$$.fragment,e)},m(e,i){k(t,e,i),n=!0},p:T,i(e){n||(g(t.$$.fragment,e),n=!0)},o(e){h(t.$$.fragment,e),n=!1},d(e){E(t,e)}}}class ce extends D{constructor(t){super(),K(this,t,null,le,M,{})}}export{ce as component}; diff --git a/ui/assets/local/_app/immutable/nodes/35.00413884.js b/ui/assets/local/_app/immutable/nodes/35.4cfdf017.js similarity index 81% rename from ui/assets/local/_app/immutable/nodes/35.00413884.js rename to ui/assets/local/_app/immutable/nodes/35.4cfdf017.js index 95ea7a5759..f379ddec9e 100644 --- a/ui/assets/local/_app/immutable/nodes/35.00413884.js +++ b/ui/assets/local/_app/immutable/nodes/35.4cfdf017.js @@ -1 +1 @@ -import{r as a}from"../chunks/index.3158323b.js";import{g as s}from"../chunks/route-for.80613b91.js";const c=async function({params:o}){const{namespace:r,workflow:e,run:t}=o,n=s({namespace:r,workflow:e,run:t});throw a(302,n)},u=Object.freeze(Object.defineProperty({__proto__:null,load:c},Symbol.toStringTag,{value:"Module"}));export{u as universal}; +import{r as a}from"../chunks/index.3158323b.js";import{g as s}from"../chunks/route-for.084c7a46.js";const c=async function({params:o}){const{namespace:r,workflow:e,run:t}=o,n=s({namespace:r,workflow:e,run:t});throw a(302,n)},u=Object.freeze(Object.defineProperty({__proto__:null,load:c},Symbol.toStringTag,{value:"Module"}));export{u as universal}; diff --git a/ui/assets/local/_app/immutable/nodes/36.00413884.js b/ui/assets/local/_app/immutable/nodes/36.4cfdf017.js similarity index 81% rename from ui/assets/local/_app/immutable/nodes/36.00413884.js rename to ui/assets/local/_app/immutable/nodes/36.4cfdf017.js index 95ea7a5759..f379ddec9e 100644 --- a/ui/assets/local/_app/immutable/nodes/36.00413884.js +++ b/ui/assets/local/_app/immutable/nodes/36.4cfdf017.js @@ -1 +1 @@ -import{r as a}from"../chunks/index.3158323b.js";import{g as s}from"../chunks/route-for.80613b91.js";const c=async function({params:o}){const{namespace:r,workflow:e,run:t}=o,n=s({namespace:r,workflow:e,run:t});throw a(302,n)},u=Object.freeze(Object.defineProperty({__proto__:null,load:c},Symbol.toStringTag,{value:"Module"}));export{u as universal}; +import{r as a}from"../chunks/index.3158323b.js";import{g as s}from"../chunks/route-for.084c7a46.js";const c=async function({params:o}){const{namespace:r,workflow:e,run:t}=o,n=s({namespace:r,workflow:e,run:t});throw a(302,n)},u=Object.freeze(Object.defineProperty({__proto__:null,load:c},Symbol.toStringTag,{value:"Module"}));export{u as universal}; diff --git a/ui/assets/local/_app/immutable/nodes/37.c3754ad1.js b/ui/assets/local/_app/immutable/nodes/37.748d5224.js similarity index 98% rename from ui/assets/local/_app/immutable/nodes/37.c3754ad1.js rename to ui/assets/local/_app/immutable/nodes/37.748d5224.js index f9992478d8..b3cc37e8f9 100644 --- a/ui/assets/local/_app/immutable/nodes/37.c3754ad1.js +++ b/ui/assets/local/_app/immutable/nodes/37.748d5224.js @@ -1 +1 @@ -import{S as ut,b as ct,a as mt,e as J,f as k,z as Q,g as I,h as X,j as b,k as m,K as Ee,C as B,D as R,E as q,n as Ce,F as M,aa as _t,ab as $t,m as h,w as L,p as d,q as v,x as D,u as N,L as c,av as ht,c as E,d as T,y as z}from"../chunks/index.4e2fcbc7.js";import{p as dt}from"../chunks/stores.14a97433.js";import{P as vt}from"../chunks/page-title.f9a44b80.js";import{t as A}from"../chunks/translate.d23a91ae.js";import{B as ce}from"../chunks/badge.96e01a15.js";import{C as pt}from"../chunks/code-block.d389dfc4.js";import{E as wt}from"../chunks/empty-state.721f6c59.js";import{I as bt}from"../chunks/icon.e8aa24c8.js";import{L as kt}from"../chunks/link.6803bb00.js";import{T as gt,a as Et}from"../chunks/table-header-row.fec98b60.js";import{T as Tt}from"../chunks/table-row.0fafe278.js";import{t as It,r as yt,b as le}from"../chunks/time-format.88312c30.js";import{w as Lt}from"../chunks/workflow-run.86769de7.js";import{k as Ge,l as Je,j as Qe}from"../chunks/format-event-attributes.adc0487a.js";import{k as Xe,D as Ye}from"../chunks/format-time.4f091e0e.js";import{s as Te}from"../chunks/parse-with-big-int.0036a80a.js";import{t as Ze}from"../chunks/to-time-difference.be87d1bf.js";function xe(n,e,l){const t=n.slice();t[5]=e[l].id,t[6]=e[l].activityId,t[7]=ht(e[l],["id","activityId"]);const o=t[7].attempt>1;return t[8]=o,t}function Dt(n){let e,l;return e=new wt({props:{title:A("workflows.pending-activities-empty-state")}}),{c(){B(e.$$.fragment)},l(t){R(e.$$.fragment,t)},m(t,o){q(e,t,o),l=!0},p:Ce,i(t){l||(b(e.$$.fragment,t),l=!0)},o(t){I(e.$$.fragment,t),l=!1},d(t){M(e,t)}}}function Ht(n){let e,l;return e=new gt({props:{class:"mb-6 w-full min-w-[600px] table-fixed",$$slots:{headers:[qt],caption:[Bt],default:[jt]},$$scope:{ctx:n}}}),{c(){B(e.$$.fragment)},l(t){R(e.$$.fragment,t)},m(t,o){q(e,t,o),l=!0},p(t,o){const s={};o&2055&&(s.$$scope={dirty:o,ctx:t}),e.$set(s)},i(t){l||(b(e.$$.fragment,t),l=!0)},o(t){I(e.$$.fragment,t),l=!1},d(t){M(e,t)}}}function At(n){let e=n[6]+"",l;return{c(){l=L(e)},l(t){l=D(t,e)},m(t,o){k(t,l,o)},p(t,o){o&1&&e!==(e=t[6]+"")&&z(l,e)},d(t){t&&m(l)}}}function Pt(n){let e=n[7].activityType+"",l;return{c(){l=L(e)},l(t){l=D(t,e)},m(t,o){k(t,l,o)},p(t,o){o&1&&e!==(e=t[7].activityType+"")&&z(l,e)},d(t){t&&m(l)}}}function et(n){let e,l;return e=new bt({props:{class:"mr-1",name:"retry"}}),{c(){B(e.$$.fragment)},l(t){R(e.$$.fragment,t)},m(t,o){q(e,t,o),l=!0},i(t){l||(b(e.$$.fragment,t),l=!0)},o(t){I(e.$$.fragment,t),l=!1},d(t){M(e,t)}}}function St(n){let e,l=n[7].attempt+"",t,o,s=n[8]&&et();return{c(){s&&s.c(),e=E(),t=L(l)},l(r){s&&s.l(r),e=T(r),t=D(r,l)},m(r,i){s&&s.m(r,i),k(r,e,i),k(r,t,i),o=!0},p(r,i){r[8]?s?i&1&&b(s,1):(s=et(),s.c(),b(s,1),s.m(e.parentNode,e)):s&&(Q(),I(s,1,1,()=>{s=null}),X()),(!o||i&1)&&l!==(l=r[7].attempt+"")&&z(t,l)},i(r){o||(b(s),o=!0)},o(r){I(s),o=!1},d(r){s&&s.d(r),r&&m(e),r&&m(t)}}}function tt(n){let e,l,t=A("workflows.attempts-left")+"",o,s,r,i,a,f;r=new ce({props:{type:"error",$$slots:{default:[Ft]},$$scope:{ctx:n}}});let u=n[7].scheduledTime&<(n);return{c(){e=h("li"),l=h("h4"),o=L(t),s=E(),B(r.$$.fragment),i=E(),u&&u.c(),a=J(),this.h()},l($){e=d($,"LI",{class:!0});var p=v(e);l=d(p,"H4",{});var g=v(l);o=D(g,t),g.forEach(m),s=T(p),R(r.$$.fragment,p),p.forEach(m),i=T($),u&&u.l($),a=J(),this.h()},h(){N(e,"class","event-table-row svelte-pnunl5")},m($,p){k($,e,p),c(e,l),c(l,o),c(e,s),q(r,e,null),k($,i,p),u&&u.m($,p),k($,a,p),f=!0},p($,p){const g={};p&2049&&(g.$$scope={dirty:p,ctx:$}),r.$set(g),$[7].scheduledTime?u?(u.p($,p),p&1&&b(u,1)):(u=lt($),u.c(),b(u,1),u.m(a.parentNode,a)):u&&(Q(),I(u,1,1,()=>{u=null}),X())},i($){f||(b(r.$$.fragment,$),b(u),f=!0)},o($){I(r.$$.fragment,$),I(u),f=!1},d($){$&&m(e),M(r),$&&m(i),u&&u.d($),$&&m(a)}}}function Ft(n){let e=Ge(n[7].maximumAttempts,n[7].attempt)+"",l;return{c(){l=L(e)},l(t){l=D(t,e)},m(t,o){k(t,l,o)},p(t,o){o&1&&e!==(e=Ge(t[7].maximumAttempts,t[7].attempt)+"")&&z(l,e)},d(t){t&&m(l)}}}function lt(n){let e,l,t=A("workflows.next-retry")+"",o,s,r,i;return r=new ce({props:{type:"error",$$slots:{default:[Nt]},$$scope:{ctx:n}}}),{c(){e=h("li"),l=h("h4"),o=L(t),s=E(),B(r.$$.fragment),this.h()},l(a){e=d(a,"LI",{class:!0});var f=v(e);l=d(f,"H4",{});var u=v(l);o=D(u,t),u.forEach(m),s=T(f),R(r.$$.fragment,f),f.forEach(m),this.h()},h(){N(e,"class","event-table-row svelte-pnunl5")},m(a,f){k(a,e,f),c(e,l),c(l,o),c(e,s),q(r,e,null),i=!0},p(a,f){const u={};f&2049&&(u.$$scope={dirty:f,ctx:a}),r.$set(u)},i(a){i||(b(r.$$.fragment,a),i=!0)},o(a){I(r.$$.fragment,a),i=!1},d(a){a&&m(e),M(r)}}}function Nt(n){let e=Ze({date:n[7].scheduledTime,negativeDefault:A("workflows.no-retry")})+"",l;return{c(){l=L(e)},l(t){l=D(t,e)},m(t,o){k(t,l,o)},p(t,o){o&1&&e!==(e=Ze({date:t[7].scheduledTime,negativeDefault:A("workflows.no-retry")})+"")&&z(l,e)},d(t){t&&m(l)}}}function Wt(n){let e=Je(n[7].maximumAttempts)+"",l;return{c(){l=L(e)},l(t){l=D(t,e)},m(t,o){k(t,l,o)},p(t,o){o&1&&e!==(e=Je(t[7].maximumAttempts)+"")&&z(l,e)},d(t){t&&m(l)}}}function rt(n){let e,l,t,o,s=A("workflows.retry-expiration")+"",r,i,a,f=Qe(n[7].maximumAttempts,Xe(Ye({start:Date.now(),end:n[7].expirationTime})))+"",u,$,p=n[7].heartbeatDetails&&at(n),g=n[7].lastFailure&&st(n);return{c(){p&&p.c(),e=E(),g&&g.c(),l=E(),t=h("li"),o=h("h4"),r=L(s),i=E(),a=h("p"),u=L(f),this.h()},l(w){p&&p.l(w),e=T(w),g&&g.l(w),l=T(w),t=d(w,"LI",{class:!0});var P=v(t);o=d(P,"H4",{});var re=v(o);r=D(re,s),re.forEach(m),i=T(P),a=d(P,"P",{});var Z=v(a);u=D(Z,f),Z.forEach(m),P.forEach(m),this.h()},h(){N(t,"class","event-table-row svelte-pnunl5")},m(w,P){p&&p.m(w,P),k(w,e,P),g&&g.m(w,P),k(w,l,P),k(w,t,P),c(t,o),c(o,r),c(t,i),c(t,a),c(a,u),$=!0},p(w,P){w[7].heartbeatDetails?p?(p.p(w,P),P&1&&b(p,1)):(p=at(w),p.c(),b(p,1),p.m(e.parentNode,e)):p&&(Q(),I(p,1,1,()=>{p=null}),X()),w[7].lastFailure?g?(g.p(w,P),P&1&&b(g,1)):(g=st(w),g.c(),b(g,1),g.m(l.parentNode,l)):g&&(Q(),I(g,1,1,()=>{g=null}),X()),(!$||P&1)&&f!==(f=Qe(w[7].maximumAttempts,Xe(Ye({start:Date.now(),end:w[7].expirationTime})))+"")&&z(u,f)},i(w){$||(b(p),b(g),$=!0)},o(w){I(p),I(g),$=!1},d(w){p&&p.d(w),w&&m(e),g&&g.d(w),w&&m(l),w&&m(t)}}}function at(n){let e,l,t=A("workflows.heartbeat-details")+"",o,s,r,i;return r=new pt({props:{slot:"value",class:"pb-2",content:Te(n[7].heartbeatDetails),copyIconTitle:A("common.copy-icon-title"),copySuccessIconTitle:A("common.copy-success-icon-title")}}),{c(){e=h("li"),l=h("h4"),o=L(t),s=E(),B(r.$$.fragment),this.h()},l(a){e=d(a,"LI",{class:!0});var f=v(e);l=d(f,"H4",{});var u=v(l);o=D(u,t),u.forEach(m),s=T(f),R(r.$$.fragment,f),f.forEach(m),this.h()},h(){N(e,"class","event-table-row svelte-pnunl5")},m(a,f){k(a,e,f),c(e,l),c(l,o),c(e,s),q(r,e,null),i=!0},p(a,f){const u={};f&1&&(u.content=Te(a[7].heartbeatDetails)),r.$set(u)},i(a){i||(b(r.$$.fragment,a),i=!0)},o(a){I(r.$$.fragment,a),i=!1},d(a){a&&m(e),M(r)}}}function st(n){let e,l,t=A("workflows.last-failure")+"",o,s,r,i;return r=new pt({props:{slot:"value",class:"pb-2",content:Te(n[7].lastFailure),copyIconTitle:A("common.copy-icon-title"),copySuccessIconTitle:A("common.copy-success-icon-title")}}),{c(){e=h("li"),l=h("h4"),o=L(t),s=E(),B(r.$$.fragment),this.h()},l(a){e=d(a,"LI",{class:!0});var f=v(e);l=d(f,"H4",{});var u=v(l);o=D(u,t),u.forEach(m),s=T(f),R(r.$$.fragment,f),f.forEach(m),this.h()},h(){N(e,"class","event-table-row svelte-pnunl5")},m(a,f){k(a,e,f),c(e,l),c(l,o),c(e,s),q(r,e,null),i=!0},p(a,f){const u={};f&1&&(u.content=Te(a[7].lastFailure)),r.$set(u)},i(a){i||(b(r.$$.fragment,a),i=!0)},o(a){I(r.$$.fragment,a),i=!1},d(a){a&&m(e),M(r)}}}function ot(n){let e,l,t=A("workflows.last-started-time")+"",o,s,r,i=le(n[7].lastStartedTime,n[1],{relative:n[2]})+"",a;return{c(){e=h("li"),l=h("h4"),o=L(t),s=E(),r=h("p"),a=L(i),this.h()},l(f){e=d(f,"LI",{class:!0});var u=v(e);l=d(u,"H4",{});var $=v(l);o=D($,t),$.forEach(m),s=T(u),r=d(u,"P",{});var p=v(r);a=D(p,i),p.forEach(m),u.forEach(m),this.h()},h(){N(e,"class","event-table-row svelte-pnunl5")},m(f,u){k(f,e,u),c(e,l),c(l,o),c(e,s),c(e,r),c(r,a)},p(f,u){u&7&&i!==(i=le(f[7].lastStartedTime,f[1],{relative:f[2]})+"")&&z(a,i)},d(f){f&&m(e)}}}function it(n){let e,l,t=A("workflows.scheduled-time")+"",o,s,r,i=le(n[7].scheduledTime,n[1],{relative:n[2]})+"",a;return{c(){e=h("li"),l=h("h4"),o=L(t),s=E(),r=h("p"),a=L(i),this.h()},l(f){e=d(f,"LI",{class:!0});var u=v(e);l=d(u,"H4",{});var $=v(l);o=D($,t),$.forEach(m),s=T(u),r=d(u,"P",{});var p=v(r);a=D(p,i),p.forEach(m),u.forEach(m),this.h()},h(){N(e,"class","event-table-row svelte-pnunl5")},m(f,u){k(f,e,u),c(e,l),c(l,o),c(e,s),c(e,r),c(r,a)},p(f,u){u&7&&i!==(i=le(f[7].scheduledTime,f[1],{relative:f[2]})+"")&&z(a,i)},d(f){f&&m(e)}}}function nt(n){let e,l,t=A("workflows.last-worker-identity")+"",o,s,r,i=n[7].lastWorkerIdentity+"",a;return{c(){e=h("li"),l=h("h4"),o=L(t),s=E(),r=h("p"),a=L(i),this.h()},l(f){e=d(f,"LI",{class:!0});var u=v(e);l=d(u,"H4",{});var $=v(l);o=D($,t),$.forEach(m),s=T(u),r=d(u,"P",{});var p=v(r);a=D(p,i),p.forEach(m),u.forEach(m),this.h()},h(){N(e,"class","event-table-row svelte-pnunl5")},m(f,u){k(f,e,u),c(e,l),c(l,o),c(e,s),c(e,r),c(r,a)},p(f,u){u&1&&i!==(i=f[7].lastWorkerIdentity+"")&&z(a,i)},d(f){f&&m(e)}}}function Ct(n){let e,l,t,o,s,r,i,a,f=A("workflows.activity-type")+"",u,$,p,g,w,P,re=A("workflows.attempt")+"",Z,Ie,K,ye,me,O,ae,je=A("workflows.maximum-attempts")+"",Le,De,U,He,pe,V,se,Be=A("workflows.last-heartbeat")+"",Ae,Pe,oe,ie=le(n[7].lastHeartbeatTime,n[1],{relative:n[2],relativeStrict:!0})+"",_e,Se,G,ne,Re=A("workflows.state")+"",Fe,Ne,fe,ue=n[7].state+"",$e,We,he,de,ve,x;t=new kt({props:{href:"#"+n[5],$$slots:{default:[At]},$$scope:{ctx:n}}}),p=new ce({props:{type:n[8]?"error":"default",$$slots:{default:[Pt]},$$scope:{ctx:n}}}),K=new ce({props:{type:n[8]?"error":"default",$$slots:{default:[St]},$$scope:{ctx:n}}});let S=n[8]&&tt(n);U=new ce({props:{$$slots:{default:[Wt]},$$scope:{ctx:n}}});let F=n[8]&&rt(n),W=n[7].lastStartedTime&&ot(n),C=n[7].scheduledTime&&it(n),j=n[7].lastWorkerIdentity&&nt(n);return{c(){e=h("td"),l=h("div"),B(t.$$.fragment),o=E(),s=h("td"),r=h("ul"),i=h("li"),a=h("h4"),u=L(f),$=E(),B(p.$$.fragment),g=E(),w=h("li"),P=h("h4"),Z=L(re),Ie=E(),B(K.$$.fragment),ye=E(),S&&S.c(),me=E(),O=h("li"),ae=h("h4"),Le=L(je),De=E(),B(U.$$.fragment),He=E(),F&&F.c(),pe=E(),V=h("li"),se=h("h4"),Ae=L(Be),Pe=E(),oe=h("p"),_e=L(ie),Se=E(),G=h("li"),ne=h("h4"),Fe=L(Re),Ne=E(),fe=h("p"),$e=L(ue),We=E(),W&&W.c(),he=E(),C&&C.c(),de=E(),j&&j.c(),ve=E(),this.h()},l(_){e=d(_,"TD",{class:!0});var y=v(e);l=d(y,"DIV",{class:!0});var ee=v(l);R(t.$$.fragment,ee),ee.forEach(m),y.forEach(m),o=T(_),s=d(_,"TD",{class:!0});var te=v(s);r=d(te,"UL",{});var H=v(r);i=d(H,"LI",{class:!0});var Y=v(i);a=d(Y,"H4",{class:!0});var qe=v(a);u=D(qe,f),qe.forEach(m),$=T(Y),R(p.$$.fragment,Y),Y.forEach(m),g=T(H),w=d(H,"LI",{class:!0});var we=v(w);P=d(we,"H4",{});var Me=v(P);Z=D(Me,re),Me.forEach(m),Ie=T(we),R(K.$$.fragment,we),we.forEach(m),ye=T(H),S&&S.l(H),me=T(H),O=d(H,"LI",{class:!0});var be=v(O);ae=d(be,"H4",{});var ze=v(ae);Le=D(ze,je),ze.forEach(m),De=T(be),R(U.$$.fragment,be),be.forEach(m),He=T(H),F&&F.l(H),pe=T(H),V=d(H,"LI",{class:!0});var ke=v(V);se=d(ke,"H4",{});var Ke=v(se);Ae=D(Ke,Be),Ke.forEach(m),Pe=T(ke),oe=d(ke,"P",{});var Oe=v(oe);_e=D(Oe,ie),Oe.forEach(m),ke.forEach(m),Se=T(H),G=d(H,"LI",{class:!0});var ge=v(G);ne=d(ge,"H4",{});var Ue=v(ne);Fe=D(Ue,Re),Ue.forEach(m),Ne=T(ge),fe=d(ge,"P",{});var Ve=v(fe);$e=D(Ve,ue),Ve.forEach(m),ge.forEach(m),We=T(H),W&&W.l(H),he=T(H),C&&C.l(H),de=T(H),j&&j.l(H),H.forEach(m),te.forEach(m),ve=T(_),this.h()},h(){N(l,"class","pt-1"),N(e,"class","w-44 items-start break-all py-5 pl-5 pr-2 align-top"),N(a,"class","font-semibold"),N(i,"class","event-table-row svelte-pnunl5"),N(w,"class","event-table-row svelte-pnunl5"),N(O,"class","event-table-row svelte-pnunl5"),N(V,"class","event-table-row svelte-pnunl5"),N(G,"class","event-table-row svelte-pnunl5"),N(s,"class","py-4 px-5")},m(_,y){k(_,e,y),c(e,l),q(t,l,null),k(_,o,y),k(_,s,y),c(s,r),c(r,i),c(i,a),c(a,u),c(i,$),q(p,i,null),c(r,g),c(r,w),c(w,P),c(P,Z),c(w,Ie),q(K,w,null),c(r,ye),S&&S.m(r,null),c(r,me),c(r,O),c(O,ae),c(ae,Le),c(O,De),q(U,O,null),c(r,He),F&&F.m(r,null),c(r,pe),c(r,V),c(V,se),c(se,Ae),c(V,Pe),c(V,oe),c(oe,_e),c(r,Se),c(r,G),c(G,ne),c(ne,Fe),c(G,Ne),c(G,fe),c(fe,$e),c(r,We),W&&W.m(r,null),c(r,he),C&&C.m(r,null),c(r,de),j&&j.m(r,null),k(_,ve,y),x=!0},p(_,y){const ee={};y&1&&(ee.href="#"+_[5]),y&2049&&(ee.$$scope={dirty:y,ctx:_}),t.$set(ee);const te={};y&1&&(te.type=_[8]?"error":"default"),y&2049&&(te.$$scope={dirty:y,ctx:_}),p.$set(te);const H={};y&1&&(H.type=_[8]?"error":"default"),y&2049&&(H.$$scope={dirty:y,ctx:_}),K.$set(H),_[8]?S?(S.p(_,y),y&1&&b(S,1)):(S=tt(_),S.c(),b(S,1),S.m(r,me)):S&&(Q(),I(S,1,1,()=>{S=null}),X());const Y={};y&2049&&(Y.$$scope={dirty:y,ctx:_}),U.$set(Y),_[8]?F?(F.p(_,y),y&1&&b(F,1)):(F=rt(_),F.c(),b(F,1),F.m(r,pe)):F&&(Q(),I(F,1,1,()=>{F=null}),X()),(!x||y&7)&&ie!==(ie=le(_[7].lastHeartbeatTime,_[1],{relative:_[2],relativeStrict:!0})+"")&&z(_e,ie),(!x||y&1)&&ue!==(ue=_[7].state+"")&&z($e,ue),_[7].lastStartedTime?W?W.p(_,y):(W=ot(_),W.c(),W.m(r,he)):W&&(W.d(1),W=null),_[7].scheduledTime?C?C.p(_,y):(C=it(_),C.c(),C.m(r,de)):C&&(C.d(1),C=null),_[7].lastWorkerIdentity?j?j.p(_,y):(j=nt(_),j.c(),j.m(r,null)):j&&(j.d(1),j=null)},i(_){x||(b(t.$$.fragment,_),b(p.$$.fragment,_),b(K.$$.fragment,_),b(S),b(U.$$.fragment,_),b(F),x=!0)},o(_){I(t.$$.fragment,_),I(p.$$.fragment,_),I(K.$$.fragment,_),I(S),I(U.$$.fragment,_),I(F),x=!1},d(_){_&&m(e),M(t),_&&m(o),_&&m(s),M(p),M(K),S&&S.d(),M(U),F&&F.d(),W&&W.d(),C&&C.d(),j&&j.d(),_&&m(ve)}}}function ft(n,e){let l,t,o;return t=new Tt({props:{$$slots:{default:[Ct]},$$scope:{ctx:e}}}),{key:n,first:null,c(){l=J(),B(t.$$.fragment),this.h()},l(s){l=J(),R(t.$$.fragment,s),this.h()},h(){this.first=l},m(s,r){k(s,l,r),q(t,s,r),o=!0},p(s,r){e=s;const i={};r&2055&&(i.$$scope={dirty:r,ctx:e}),t.$set(i)},i(s){o||(b(t.$$.fragment,s),o=!0)},o(s){I(t.$$.fragment,s),o=!1},d(s){s&&m(l),M(t,s)}}}function jt(n){let e=[],l=new Map,t,o,s=n[0];const r=i=>i[5];for(let i=0;i{r[u]=null}),X(),l=r[e],l?l.p(a,f):(l=r[e]=s[e](a),l.c()),b(l,1),l.m(t.parentNode,t))},i(a){o||(b(l),o=!0)},o(a){I(l),o=!1},d(a){r[e].d(a),a&&m(t)}}}function zt(n,e,l){let t,o,s,r;Ee(n,Lt,a=>l(4,o=a)),Ee(n,It,a=>l(1,s=a)),Ee(n,yt,a=>l(2,r=a));var i;return n.$$.update=()=>{n.$$.dirty&24&&l(0,t=l(3,i=o.workflow)===null||i===void 0?void 0:i.pendingActivities)},[t,s,r,i,o]}class Kt extends ut{constructor(e){super(),ct(this,e,zt,Mt,mt,{})}}function Ot(n){let e,l,t,o;return e=new vt({props:{title:`${A("workflows.pending-activities-tab")} | ${n[1]}`,url:n[0].url.href}}),t=new Kt({}),{c(){B(e.$$.fragment),l=E(),B(t.$$.fragment)},l(s){R(e.$$.fragment,s),l=T(s),R(t.$$.fragment,s)},m(s,r){q(e,s,r),k(s,l,r),q(t,s,r),o=!0},p(s,[r]){const i={};r&1&&(i.url=s[0].url.href),e.$set(i)},i(s){o||(b(e.$$.fragment,s),b(t.$$.fragment,s),o=!0)},o(s){I(e.$$.fragment,s),I(t.$$.fragment,s),o=!1},d(s){M(e,s),s&&m(l),M(t,s)}}}function Ut(n,e,l){let t;Ee(n,dt,s=>l(0,t=s));const o=t.params.workflow;return[t,o]}class fl extends ut{constructor(e){super(),ct(this,e,Ut,Ot,mt,{})}}export{fl as component}; +import{S as ut,b as ct,a as mt,e as J,f as k,z as Q,g as I,h as X,j as b,k as m,K as Ee,C as B,D as R,E as q,n as Ce,F as M,aa as _t,ab as $t,m as h,w as L,p as d,q as v,x as D,u as N,L as c,av as ht,c as E,d as T,y as z}from"../chunks/index.4e2fcbc7.js";import{p as dt}from"../chunks/stores.0e7b7e35.js";import{P as vt}from"../chunks/page-title.f9a44b80.js";import{t as A}from"../chunks/translate.d23a91ae.js";import{B as ce}from"../chunks/badge.96e01a15.js";import{C as pt}from"../chunks/code-block.55adac36.js";import{E as wt}from"../chunks/empty-state.721f6c59.js";import{I as bt}from"../chunks/icon.e8aa24c8.js";import{L as kt}from"../chunks/link.6803bb00.js";import{T as gt,a as Et}from"../chunks/table-header-row.fec98b60.js";import{T as Tt}from"../chunks/table-row.0fafe278.js";import{t as It,r as yt,b as le}from"../chunks/time-format.fa373b4c.js";import{w as Lt}from"../chunks/workflow-run.8b92989d.js";import{k as Ge,l as Je,j as Qe}from"../chunks/format-event-attributes.5632ebeb.js";import{k as Xe,D as Ye}from"../chunks/format-time.4f091e0e.js";import{s as Te}from"../chunks/parse-with-big-int.0036a80a.js";import{t as Ze}from"../chunks/to-time-difference.be87d1bf.js";function xe(n,e,l){const t=n.slice();t[5]=e[l].id,t[6]=e[l].activityId,t[7]=ht(e[l],["id","activityId"]);const o=t[7].attempt>1;return t[8]=o,t}function Dt(n){let e,l;return e=new wt({props:{title:A("workflows.pending-activities-empty-state")}}),{c(){B(e.$$.fragment)},l(t){R(e.$$.fragment,t)},m(t,o){q(e,t,o),l=!0},p:Ce,i(t){l||(b(e.$$.fragment,t),l=!0)},o(t){I(e.$$.fragment,t),l=!1},d(t){M(e,t)}}}function Ht(n){let e,l;return e=new gt({props:{class:"mb-6 w-full min-w-[600px] table-fixed",$$slots:{headers:[qt],caption:[Bt],default:[jt]},$$scope:{ctx:n}}}),{c(){B(e.$$.fragment)},l(t){R(e.$$.fragment,t)},m(t,o){q(e,t,o),l=!0},p(t,o){const s={};o&2055&&(s.$$scope={dirty:o,ctx:t}),e.$set(s)},i(t){l||(b(e.$$.fragment,t),l=!0)},o(t){I(e.$$.fragment,t),l=!1},d(t){M(e,t)}}}function At(n){let e=n[6]+"",l;return{c(){l=L(e)},l(t){l=D(t,e)},m(t,o){k(t,l,o)},p(t,o){o&1&&e!==(e=t[6]+"")&&z(l,e)},d(t){t&&m(l)}}}function Pt(n){let e=n[7].activityType+"",l;return{c(){l=L(e)},l(t){l=D(t,e)},m(t,o){k(t,l,o)},p(t,o){o&1&&e!==(e=t[7].activityType+"")&&z(l,e)},d(t){t&&m(l)}}}function et(n){let e,l;return e=new bt({props:{class:"mr-1",name:"retry"}}),{c(){B(e.$$.fragment)},l(t){R(e.$$.fragment,t)},m(t,o){q(e,t,o),l=!0},i(t){l||(b(e.$$.fragment,t),l=!0)},o(t){I(e.$$.fragment,t),l=!1},d(t){M(e,t)}}}function St(n){let e,l=n[7].attempt+"",t,o,s=n[8]&&et();return{c(){s&&s.c(),e=E(),t=L(l)},l(r){s&&s.l(r),e=T(r),t=D(r,l)},m(r,i){s&&s.m(r,i),k(r,e,i),k(r,t,i),o=!0},p(r,i){r[8]?s?i&1&&b(s,1):(s=et(),s.c(),b(s,1),s.m(e.parentNode,e)):s&&(Q(),I(s,1,1,()=>{s=null}),X()),(!o||i&1)&&l!==(l=r[7].attempt+"")&&z(t,l)},i(r){o||(b(s),o=!0)},o(r){I(s),o=!1},d(r){s&&s.d(r),r&&m(e),r&&m(t)}}}function tt(n){let e,l,t=A("workflows.attempts-left")+"",o,s,r,i,a,f;r=new ce({props:{type:"error",$$slots:{default:[Ft]},$$scope:{ctx:n}}});let u=n[7].scheduledTime&<(n);return{c(){e=h("li"),l=h("h4"),o=L(t),s=E(),B(r.$$.fragment),i=E(),u&&u.c(),a=J(),this.h()},l($){e=d($,"LI",{class:!0});var p=v(e);l=d(p,"H4",{});var g=v(l);o=D(g,t),g.forEach(m),s=T(p),R(r.$$.fragment,p),p.forEach(m),i=T($),u&&u.l($),a=J(),this.h()},h(){N(e,"class","event-table-row svelte-pnunl5")},m($,p){k($,e,p),c(e,l),c(l,o),c(e,s),q(r,e,null),k($,i,p),u&&u.m($,p),k($,a,p),f=!0},p($,p){const g={};p&2049&&(g.$$scope={dirty:p,ctx:$}),r.$set(g),$[7].scheduledTime?u?(u.p($,p),p&1&&b(u,1)):(u=lt($),u.c(),b(u,1),u.m(a.parentNode,a)):u&&(Q(),I(u,1,1,()=>{u=null}),X())},i($){f||(b(r.$$.fragment,$),b(u),f=!0)},o($){I(r.$$.fragment,$),I(u),f=!1},d($){$&&m(e),M(r),$&&m(i),u&&u.d($),$&&m(a)}}}function Ft(n){let e=Ge(n[7].maximumAttempts,n[7].attempt)+"",l;return{c(){l=L(e)},l(t){l=D(t,e)},m(t,o){k(t,l,o)},p(t,o){o&1&&e!==(e=Ge(t[7].maximumAttempts,t[7].attempt)+"")&&z(l,e)},d(t){t&&m(l)}}}function lt(n){let e,l,t=A("workflows.next-retry")+"",o,s,r,i;return r=new ce({props:{type:"error",$$slots:{default:[Nt]},$$scope:{ctx:n}}}),{c(){e=h("li"),l=h("h4"),o=L(t),s=E(),B(r.$$.fragment),this.h()},l(a){e=d(a,"LI",{class:!0});var f=v(e);l=d(f,"H4",{});var u=v(l);o=D(u,t),u.forEach(m),s=T(f),R(r.$$.fragment,f),f.forEach(m),this.h()},h(){N(e,"class","event-table-row svelte-pnunl5")},m(a,f){k(a,e,f),c(e,l),c(l,o),c(e,s),q(r,e,null),i=!0},p(a,f){const u={};f&2049&&(u.$$scope={dirty:f,ctx:a}),r.$set(u)},i(a){i||(b(r.$$.fragment,a),i=!0)},o(a){I(r.$$.fragment,a),i=!1},d(a){a&&m(e),M(r)}}}function Nt(n){let e=Ze({date:n[7].scheduledTime,negativeDefault:A("workflows.no-retry")})+"",l;return{c(){l=L(e)},l(t){l=D(t,e)},m(t,o){k(t,l,o)},p(t,o){o&1&&e!==(e=Ze({date:t[7].scheduledTime,negativeDefault:A("workflows.no-retry")})+"")&&z(l,e)},d(t){t&&m(l)}}}function Wt(n){let e=Je(n[7].maximumAttempts)+"",l;return{c(){l=L(e)},l(t){l=D(t,e)},m(t,o){k(t,l,o)},p(t,o){o&1&&e!==(e=Je(t[7].maximumAttempts)+"")&&z(l,e)},d(t){t&&m(l)}}}function rt(n){let e,l,t,o,s=A("workflows.retry-expiration")+"",r,i,a,f=Qe(n[7].maximumAttempts,Xe(Ye({start:Date.now(),end:n[7].expirationTime})))+"",u,$,p=n[7].heartbeatDetails&&at(n),g=n[7].lastFailure&&st(n);return{c(){p&&p.c(),e=E(),g&&g.c(),l=E(),t=h("li"),o=h("h4"),r=L(s),i=E(),a=h("p"),u=L(f),this.h()},l(w){p&&p.l(w),e=T(w),g&&g.l(w),l=T(w),t=d(w,"LI",{class:!0});var P=v(t);o=d(P,"H4",{});var re=v(o);r=D(re,s),re.forEach(m),i=T(P),a=d(P,"P",{});var Z=v(a);u=D(Z,f),Z.forEach(m),P.forEach(m),this.h()},h(){N(t,"class","event-table-row svelte-pnunl5")},m(w,P){p&&p.m(w,P),k(w,e,P),g&&g.m(w,P),k(w,l,P),k(w,t,P),c(t,o),c(o,r),c(t,i),c(t,a),c(a,u),$=!0},p(w,P){w[7].heartbeatDetails?p?(p.p(w,P),P&1&&b(p,1)):(p=at(w),p.c(),b(p,1),p.m(e.parentNode,e)):p&&(Q(),I(p,1,1,()=>{p=null}),X()),w[7].lastFailure?g?(g.p(w,P),P&1&&b(g,1)):(g=st(w),g.c(),b(g,1),g.m(l.parentNode,l)):g&&(Q(),I(g,1,1,()=>{g=null}),X()),(!$||P&1)&&f!==(f=Qe(w[7].maximumAttempts,Xe(Ye({start:Date.now(),end:w[7].expirationTime})))+"")&&z(u,f)},i(w){$||(b(p),b(g),$=!0)},o(w){I(p),I(g),$=!1},d(w){p&&p.d(w),w&&m(e),g&&g.d(w),w&&m(l),w&&m(t)}}}function at(n){let e,l,t=A("workflows.heartbeat-details")+"",o,s,r,i;return r=new pt({props:{slot:"value",class:"pb-2",content:Te(n[7].heartbeatDetails),copyIconTitle:A("common.copy-icon-title"),copySuccessIconTitle:A("common.copy-success-icon-title")}}),{c(){e=h("li"),l=h("h4"),o=L(t),s=E(),B(r.$$.fragment),this.h()},l(a){e=d(a,"LI",{class:!0});var f=v(e);l=d(f,"H4",{});var u=v(l);o=D(u,t),u.forEach(m),s=T(f),R(r.$$.fragment,f),f.forEach(m),this.h()},h(){N(e,"class","event-table-row svelte-pnunl5")},m(a,f){k(a,e,f),c(e,l),c(l,o),c(e,s),q(r,e,null),i=!0},p(a,f){const u={};f&1&&(u.content=Te(a[7].heartbeatDetails)),r.$set(u)},i(a){i||(b(r.$$.fragment,a),i=!0)},o(a){I(r.$$.fragment,a),i=!1},d(a){a&&m(e),M(r)}}}function st(n){let e,l,t=A("workflows.last-failure")+"",o,s,r,i;return r=new pt({props:{slot:"value",class:"pb-2",content:Te(n[7].lastFailure),copyIconTitle:A("common.copy-icon-title"),copySuccessIconTitle:A("common.copy-success-icon-title")}}),{c(){e=h("li"),l=h("h4"),o=L(t),s=E(),B(r.$$.fragment),this.h()},l(a){e=d(a,"LI",{class:!0});var f=v(e);l=d(f,"H4",{});var u=v(l);o=D(u,t),u.forEach(m),s=T(f),R(r.$$.fragment,f),f.forEach(m),this.h()},h(){N(e,"class","event-table-row svelte-pnunl5")},m(a,f){k(a,e,f),c(e,l),c(l,o),c(e,s),q(r,e,null),i=!0},p(a,f){const u={};f&1&&(u.content=Te(a[7].lastFailure)),r.$set(u)},i(a){i||(b(r.$$.fragment,a),i=!0)},o(a){I(r.$$.fragment,a),i=!1},d(a){a&&m(e),M(r)}}}function ot(n){let e,l,t=A("workflows.last-started-time")+"",o,s,r,i=le(n[7].lastStartedTime,n[1],{relative:n[2]})+"",a;return{c(){e=h("li"),l=h("h4"),o=L(t),s=E(),r=h("p"),a=L(i),this.h()},l(f){e=d(f,"LI",{class:!0});var u=v(e);l=d(u,"H4",{});var $=v(l);o=D($,t),$.forEach(m),s=T(u),r=d(u,"P",{});var p=v(r);a=D(p,i),p.forEach(m),u.forEach(m),this.h()},h(){N(e,"class","event-table-row svelte-pnunl5")},m(f,u){k(f,e,u),c(e,l),c(l,o),c(e,s),c(e,r),c(r,a)},p(f,u){u&7&&i!==(i=le(f[7].lastStartedTime,f[1],{relative:f[2]})+"")&&z(a,i)},d(f){f&&m(e)}}}function it(n){let e,l,t=A("workflows.scheduled-time")+"",o,s,r,i=le(n[7].scheduledTime,n[1],{relative:n[2]})+"",a;return{c(){e=h("li"),l=h("h4"),o=L(t),s=E(),r=h("p"),a=L(i),this.h()},l(f){e=d(f,"LI",{class:!0});var u=v(e);l=d(u,"H4",{});var $=v(l);o=D($,t),$.forEach(m),s=T(u),r=d(u,"P",{});var p=v(r);a=D(p,i),p.forEach(m),u.forEach(m),this.h()},h(){N(e,"class","event-table-row svelte-pnunl5")},m(f,u){k(f,e,u),c(e,l),c(l,o),c(e,s),c(e,r),c(r,a)},p(f,u){u&7&&i!==(i=le(f[7].scheduledTime,f[1],{relative:f[2]})+"")&&z(a,i)},d(f){f&&m(e)}}}function nt(n){let e,l,t=A("workflows.last-worker-identity")+"",o,s,r,i=n[7].lastWorkerIdentity+"",a;return{c(){e=h("li"),l=h("h4"),o=L(t),s=E(),r=h("p"),a=L(i),this.h()},l(f){e=d(f,"LI",{class:!0});var u=v(e);l=d(u,"H4",{});var $=v(l);o=D($,t),$.forEach(m),s=T(u),r=d(u,"P",{});var p=v(r);a=D(p,i),p.forEach(m),u.forEach(m),this.h()},h(){N(e,"class","event-table-row svelte-pnunl5")},m(f,u){k(f,e,u),c(e,l),c(l,o),c(e,s),c(e,r),c(r,a)},p(f,u){u&1&&i!==(i=f[7].lastWorkerIdentity+"")&&z(a,i)},d(f){f&&m(e)}}}function Ct(n){let e,l,t,o,s,r,i,a,f=A("workflows.activity-type")+"",u,$,p,g,w,P,re=A("workflows.attempt")+"",Z,Ie,K,ye,me,O,ae,je=A("workflows.maximum-attempts")+"",Le,De,U,He,pe,V,se,Be=A("workflows.last-heartbeat")+"",Ae,Pe,oe,ie=le(n[7].lastHeartbeatTime,n[1],{relative:n[2],relativeStrict:!0})+"",_e,Se,G,ne,Re=A("workflows.state")+"",Fe,Ne,fe,ue=n[7].state+"",$e,We,he,de,ve,x;t=new kt({props:{href:"#"+n[5],$$slots:{default:[At]},$$scope:{ctx:n}}}),p=new ce({props:{type:n[8]?"error":"default",$$slots:{default:[Pt]},$$scope:{ctx:n}}}),K=new ce({props:{type:n[8]?"error":"default",$$slots:{default:[St]},$$scope:{ctx:n}}});let S=n[8]&&tt(n);U=new ce({props:{$$slots:{default:[Wt]},$$scope:{ctx:n}}});let F=n[8]&&rt(n),W=n[7].lastStartedTime&&ot(n),C=n[7].scheduledTime&&it(n),j=n[7].lastWorkerIdentity&&nt(n);return{c(){e=h("td"),l=h("div"),B(t.$$.fragment),o=E(),s=h("td"),r=h("ul"),i=h("li"),a=h("h4"),u=L(f),$=E(),B(p.$$.fragment),g=E(),w=h("li"),P=h("h4"),Z=L(re),Ie=E(),B(K.$$.fragment),ye=E(),S&&S.c(),me=E(),O=h("li"),ae=h("h4"),Le=L(je),De=E(),B(U.$$.fragment),He=E(),F&&F.c(),pe=E(),V=h("li"),se=h("h4"),Ae=L(Be),Pe=E(),oe=h("p"),_e=L(ie),Se=E(),G=h("li"),ne=h("h4"),Fe=L(Re),Ne=E(),fe=h("p"),$e=L(ue),We=E(),W&&W.c(),he=E(),C&&C.c(),de=E(),j&&j.c(),ve=E(),this.h()},l(_){e=d(_,"TD",{class:!0});var y=v(e);l=d(y,"DIV",{class:!0});var ee=v(l);R(t.$$.fragment,ee),ee.forEach(m),y.forEach(m),o=T(_),s=d(_,"TD",{class:!0});var te=v(s);r=d(te,"UL",{});var H=v(r);i=d(H,"LI",{class:!0});var Y=v(i);a=d(Y,"H4",{class:!0});var qe=v(a);u=D(qe,f),qe.forEach(m),$=T(Y),R(p.$$.fragment,Y),Y.forEach(m),g=T(H),w=d(H,"LI",{class:!0});var we=v(w);P=d(we,"H4",{});var Me=v(P);Z=D(Me,re),Me.forEach(m),Ie=T(we),R(K.$$.fragment,we),we.forEach(m),ye=T(H),S&&S.l(H),me=T(H),O=d(H,"LI",{class:!0});var be=v(O);ae=d(be,"H4",{});var ze=v(ae);Le=D(ze,je),ze.forEach(m),De=T(be),R(U.$$.fragment,be),be.forEach(m),He=T(H),F&&F.l(H),pe=T(H),V=d(H,"LI",{class:!0});var ke=v(V);se=d(ke,"H4",{});var Ke=v(se);Ae=D(Ke,Be),Ke.forEach(m),Pe=T(ke),oe=d(ke,"P",{});var Oe=v(oe);_e=D(Oe,ie),Oe.forEach(m),ke.forEach(m),Se=T(H),G=d(H,"LI",{class:!0});var ge=v(G);ne=d(ge,"H4",{});var Ue=v(ne);Fe=D(Ue,Re),Ue.forEach(m),Ne=T(ge),fe=d(ge,"P",{});var Ve=v(fe);$e=D(Ve,ue),Ve.forEach(m),ge.forEach(m),We=T(H),W&&W.l(H),he=T(H),C&&C.l(H),de=T(H),j&&j.l(H),H.forEach(m),te.forEach(m),ve=T(_),this.h()},h(){N(l,"class","pt-1"),N(e,"class","w-44 items-start break-all py-5 pl-5 pr-2 align-top"),N(a,"class","font-semibold"),N(i,"class","event-table-row svelte-pnunl5"),N(w,"class","event-table-row svelte-pnunl5"),N(O,"class","event-table-row svelte-pnunl5"),N(V,"class","event-table-row svelte-pnunl5"),N(G,"class","event-table-row svelte-pnunl5"),N(s,"class","py-4 px-5")},m(_,y){k(_,e,y),c(e,l),q(t,l,null),k(_,o,y),k(_,s,y),c(s,r),c(r,i),c(i,a),c(a,u),c(i,$),q(p,i,null),c(r,g),c(r,w),c(w,P),c(P,Z),c(w,Ie),q(K,w,null),c(r,ye),S&&S.m(r,null),c(r,me),c(r,O),c(O,ae),c(ae,Le),c(O,De),q(U,O,null),c(r,He),F&&F.m(r,null),c(r,pe),c(r,V),c(V,se),c(se,Ae),c(V,Pe),c(V,oe),c(oe,_e),c(r,Se),c(r,G),c(G,ne),c(ne,Fe),c(G,Ne),c(G,fe),c(fe,$e),c(r,We),W&&W.m(r,null),c(r,he),C&&C.m(r,null),c(r,de),j&&j.m(r,null),k(_,ve,y),x=!0},p(_,y){const ee={};y&1&&(ee.href="#"+_[5]),y&2049&&(ee.$$scope={dirty:y,ctx:_}),t.$set(ee);const te={};y&1&&(te.type=_[8]?"error":"default"),y&2049&&(te.$$scope={dirty:y,ctx:_}),p.$set(te);const H={};y&1&&(H.type=_[8]?"error":"default"),y&2049&&(H.$$scope={dirty:y,ctx:_}),K.$set(H),_[8]?S?(S.p(_,y),y&1&&b(S,1)):(S=tt(_),S.c(),b(S,1),S.m(r,me)):S&&(Q(),I(S,1,1,()=>{S=null}),X());const Y={};y&2049&&(Y.$$scope={dirty:y,ctx:_}),U.$set(Y),_[8]?F?(F.p(_,y),y&1&&b(F,1)):(F=rt(_),F.c(),b(F,1),F.m(r,pe)):F&&(Q(),I(F,1,1,()=>{F=null}),X()),(!x||y&7)&&ie!==(ie=le(_[7].lastHeartbeatTime,_[1],{relative:_[2],relativeStrict:!0})+"")&&z(_e,ie),(!x||y&1)&&ue!==(ue=_[7].state+"")&&z($e,ue),_[7].lastStartedTime?W?W.p(_,y):(W=ot(_),W.c(),W.m(r,he)):W&&(W.d(1),W=null),_[7].scheduledTime?C?C.p(_,y):(C=it(_),C.c(),C.m(r,de)):C&&(C.d(1),C=null),_[7].lastWorkerIdentity?j?j.p(_,y):(j=nt(_),j.c(),j.m(r,null)):j&&(j.d(1),j=null)},i(_){x||(b(t.$$.fragment,_),b(p.$$.fragment,_),b(K.$$.fragment,_),b(S),b(U.$$.fragment,_),b(F),x=!0)},o(_){I(t.$$.fragment,_),I(p.$$.fragment,_),I(K.$$.fragment,_),I(S),I(U.$$.fragment,_),I(F),x=!1},d(_){_&&m(e),M(t),_&&m(o),_&&m(s),M(p),M(K),S&&S.d(),M(U),F&&F.d(),W&&W.d(),C&&C.d(),j&&j.d(),_&&m(ve)}}}function ft(n,e){let l,t,o;return t=new Tt({props:{$$slots:{default:[Ct]},$$scope:{ctx:e}}}),{key:n,first:null,c(){l=J(),B(t.$$.fragment),this.h()},l(s){l=J(),R(t.$$.fragment,s),this.h()},h(){this.first=l},m(s,r){k(s,l,r),q(t,s,r),o=!0},p(s,r){e=s;const i={};r&2055&&(i.$$scope={dirty:r,ctx:e}),t.$set(i)},i(s){o||(b(t.$$.fragment,s),o=!0)},o(s){I(t.$$.fragment,s),o=!1},d(s){s&&m(l),M(t,s)}}}function jt(n){let e=[],l=new Map,t,o,s=n[0];const r=i=>i[5];for(let i=0;i{r[u]=null}),X(),l=r[e],l?l.p(a,f):(l=r[e]=s[e](a),l.c()),b(l,1),l.m(t.parentNode,t))},i(a){o||(b(l),o=!0)},o(a){I(l),o=!1},d(a){r[e].d(a),a&&m(t)}}}function zt(n,e,l){let t,o,s,r;Ee(n,Lt,a=>l(4,o=a)),Ee(n,It,a=>l(1,s=a)),Ee(n,yt,a=>l(2,r=a));var i;return n.$$.update=()=>{n.$$.dirty&24&&l(0,t=l(3,i=o.workflow)===null||i===void 0?void 0:i.pendingActivities)},[t,s,r,i,o]}class Kt extends ut{constructor(e){super(),ct(this,e,zt,Mt,mt,{})}}function Ot(n){let e,l,t,o;return e=new vt({props:{title:`${A("workflows.pending-activities-tab")} | ${n[1]}`,url:n[0].url.href}}),t=new Kt({}),{c(){B(e.$$.fragment),l=E(),B(t.$$.fragment)},l(s){R(e.$$.fragment,s),l=T(s),R(t.$$.fragment,s)},m(s,r){q(e,s,r),k(s,l,r),q(t,s,r),o=!0},p(s,[r]){const i={};r&1&&(i.url=s[0].url.href),e.$set(i)},i(s){o||(b(e.$$.fragment,s),b(t.$$.fragment,s),o=!0)},o(s){I(e.$$.fragment,s),I(t.$$.fragment,s),o=!1},d(s){M(e,s),s&&m(l),M(t,s)}}}function Ut(n,e,l){let t;Ee(n,dt,s=>l(0,t=s));const o=t.params.workflow;return[t,o]}class fl extends ut{constructor(e){super(),ct(this,e,Ut,Ot,mt,{})}}export{fl as component}; diff --git a/ui/assets/local/_app/immutable/nodes/38.19b25f3c.js b/ui/assets/local/_app/immutable/nodes/38.92693f62.js similarity index 95% rename from ui/assets/local/_app/immutable/nodes/38.19b25f3c.js rename to ui/assets/local/_app/immutable/nodes/38.92693f62.js index b52b0cb92b..d8aa9df6e7 100644 --- a/ui/assets/local/_app/immutable/nodes/38.19b25f3c.js +++ b/ui/assets/local/_app/immutable/nodes/38.92693f62.js @@ -1 +1 @@ -import{S as H,b as J,a as M,ar as U,m as T,p as C,q as S,k as $,f as b,as as X,j as _,g,K as W,C as w,D as v,E as y,n as m,F as I,A as Z,a0 as x,c as L,d as F,u as B,L as D,a1 as ee,e as K,z as te,h as ne,a7 as oe,w as z,x as A}from"../chunks/index.4e2fcbc7.js";import{p as Y}from"../chunks/stores.14a97433.js";import{P as re}from"../chunks/page-title.f9a44b80.js";import{t as q}from"../chunks/translate.d23a91ae.js";import{B as le}from"../chunks/button.a45b0e55.js";import{C as ae}from"../chunks/code-block.d389dfc4.js";import{E as se}from"../chunks/empty-state.721f6c59.js";import{L as ce}from"../chunks/loading.95801385.js";import{S as ie,a as ue}from"../chunks/simple-select.db1acee2.js";import{T as fe}from"../chunks/toggle-switch.3a41e457.js";import{a as me,b as pe}from"../chunks/query-service.4630b63f.js";import{a as $e}from"../chunks/auth-user.9757f5e9.js";import{s as _e}from"../chunks/parse-with-big-int.0036a80a.js";function O(r){const t=typeof r[15]!="string"?_e(r[15]):r[15];r[16]=t}function R(r,t,o){const e=r.slice();return e[17]=t[o],e}function ge(r){var e;let t,o;return t=new se({props:{title:q("common.error-occurred"),content:q("workflows.no-workers-running-message"),error:(e=r[20])==null?void 0:e.message}}),{c(){w(t.$$.fragment)},l(n){v(t.$$.fragment,n)},m(n,l){y(t,n,l),o=!0},p:m,i(n){o||(_(t.$$.fragment,n),o=!0)},o(n){g(t.$$.fragment,n),o=!1},d(n){I(t,n)}}}function he(r){let t,o,e,n,l,a,i,s,u,k,h,E,j;function Q(c){r[5](c)}let N={id:"query-select",label:q("workflows.query-type"),"data-testid":"query-select",$$slots:{default:[ke]},$$scope:{ctx:r}};r[0]!==void 0&&(N.value=r[0]),e=new ie({props:N}),Z.push(()=>x(e,"value",Q)),a=new le({props:{leadingIcon:"retry",loading:Ee,$$slots:{default:[be]},$$scope:{ctx:r}}}),a.$on("click",r[6]),u=new fe({props:{label:q("workflows.json-formatting"),labelPosition:"left",id:"json-formatting",checked:r[2]}}),u.$on("change",r[7]);let p={ctx:r,current:null,token:null,hasCatch:!1,pending:ye,then:ve,catch:we,value:15,blocks:[,,,]};return U(E=r[1],p),{c(){t=T("div"),o=T("div"),w(e.$$.fragment),l=L(),w(a.$$.fragment),i=L(),s=T("div"),w(u.$$.fragment),k=L(),h=T("div"),p.block.c(),this.h()},l(c){t=C(c,"DIV",{class:!0});var f=S(t);o=C(f,"DIV",{class:!0});var d=S(o);v(e.$$.fragment,d),l=F(d),v(a.$$.fragment,d),d.forEach($),i=F(f),s=C(f,"DIV",{class:!0});var P=S(s);v(u.$$.fragment,P),P.forEach($),f.forEach($),k=F(c),h=C(c,"DIV",{class:!0});var V=S(h);p.block.l(V),V.forEach($),this.h()},h(){B(o,"class","flex items-center gap-4"),B(s,"class","flex justify-end"),B(t,"class","flex justify-between"),B(h,"class","my-2 flex h-full items-start")},m(c,f){b(c,t,f),D(t,o),y(e,o,null),D(o,l),y(a,o,null),D(t,i),D(t,s),y(u,s,null),b(c,k,f),b(c,h,f),p.block.m(h,p.anchor=null),p.mount=()=>h,p.anchor=null,j=!0},p(c,f){r=c;const d={};f&2097152&&(d.$$scope={dirty:f,ctx:r}),!n&&f&1&&(n=!0,d.value=r[0],ee(()=>n=!1)),e.$set(d);const P={};f&2097152&&(P.$$scope={dirty:f,ctx:r}),a.$set(P);const V={};f&4&&(V.checked=r[2]),u.$set(V),p.ctx=r,f&2&&E!==(E=r[1])&&U(E,p)||X(p,r,f)},i(c){j||(_(e.$$.fragment,c),_(a.$$.fragment,c),_(u.$$.fragment,c),_(p.block),j=!0)},o(c){g(e.$$.fragment,c),g(a.$$.fragment,c),g(u.$$.fragment,c);for(let f=0;f<3;f+=1){const d=p.blocks[f];g(d)}j=!1},d(c){c&&$(t),I(e),I(a),I(u),c&&$(k),c&&$(h),p.block.d(),p.token=null,p=null}}}function de(r){let t=r[17]+"",o;return{c(){o=z(t)},l(e){o=A(e,t)},m(e,n){b(e,o,n)},p:m,d(e){e&&$(o)}}}function G(r){let t,o;return t=new ue({props:{value:r[17],$$slots:{default:[de]},$$scope:{ctx:r}}}),{c(){w(t.$$.fragment)},l(e){v(t.$$.fragment,e)},m(e,n){y(t,e,n),o=!0},p(e,n){const l={};n&2097152&&(l.$$scope={dirty:n,ctx:e}),t.$set(l)},i(e){o||(_(t.$$.fragment,e),o=!0)},o(e){g(t.$$.fragment,e),o=!1},d(e){I(t,e)}}}function ke(r){let t,o,e=r[14],n=[];for(let a=0;ag(n[a],1,1,()=>{n[a]=null});return{c(){for(let a=0;at,e.anchor=null,o=!0},p(n,[l]){r=n,X(e,r,l)},i(n){o||(_(e.block),o=!0)},o(n){for(let l=0;l<3;l+=1){const a=e.blocks[l];g(a)}o=!1},d(n){n&&$(t),e.block.d(),e.token=null,e=null}}}let Ee=!1;function je(r,t,o){let e,n;W(r,$e,c=>o(8,e=c)),W(r,Y,c=>o(9,n=c));const{namespace:l,workflow:a,run:i}=n.params,s={id:a,runId:i};let u,k=me({namespace:l,workflow:s}).then(c=>(o(0,u=u||c[0]),c)),h;const E=c=>{var f;o(1,h=pe({namespace:l,workflow:s,queryType:c},(f=n.data)===null||f===void 0?void 0:f.settings,e==null?void 0:e.accessToken))};let j=!0;function Q(c){u=c,o(0,u)}const N=()=>E(u),p=()=>o(2,j=!j);return r.$$.update=()=>{r.$$.dirty&1&&u&&E(u)},[u,h,j,k,E,Q,N,p]}class Te extends H{constructor(t){super(),J(this,t,je,qe,M,{})}}function Ce(r){let t,o,e,n;return t=new re({props:{title:`${q("workflows.queries-tab")} | ${r[1]}`,url:r[0].url.href}}),e=new Te({}),{c(){w(t.$$.fragment),o=L(),w(e.$$.fragment)},l(l){v(t.$$.fragment,l),o=F(l),v(e.$$.fragment,l)},m(l,a){y(t,l,a),b(l,o,a),y(e,l,a),n=!0},p(l,[a]){const i={};a&1&&(i.url=l[0].url.href),t.$set(i)},i(l){n||(_(t.$$.fragment,l),_(e.$$.fragment,l),n=!0)},o(l){g(t.$$.fragment,l),g(e.$$.fragment,l),n=!1},d(l){I(t,l),l&&$(o),I(e,l)}}}function Se(r,t,o){let e;W(r,Y,l=>o(0,e=l));const n=e.params.workflow;return[e,n]}class Oe extends H{constructor(t){super(),J(this,t,Se,Ce,M,{})}}export{Oe as component}; +import{S as H,b as J,a as M,ar as U,m as T,p as C,q as S,k as $,f as b,as as X,j as _,g,K as W,C as w,D as v,E as y,n as m,F as I,A as Z,a0 as x,c as L,d as F,u as B,L as D,a1 as ee,e as K,z as te,h as ne,a7 as oe,w as z,x as A}from"../chunks/index.4e2fcbc7.js";import{p as Y}from"../chunks/stores.0e7b7e35.js";import{P as re}from"../chunks/page-title.f9a44b80.js";import{t as q}from"../chunks/translate.d23a91ae.js";import{B as le}from"../chunks/button.a45b0e55.js";import{C as ae}from"../chunks/code-block.55adac36.js";import{E as se}from"../chunks/empty-state.721f6c59.js";import{L as ce}from"../chunks/loading.95801385.js";import{S as ie,a as ue}from"../chunks/simple-select.db1acee2.js";import{T as fe}from"../chunks/toggle-switch.3a41e457.js";import{a as me,b as pe}from"../chunks/query-service.2a94e5c4.js";import{a as $e}from"../chunks/auth-user.ce52bc5e.js";import{s as _e}from"../chunks/parse-with-big-int.0036a80a.js";function O(r){const t=typeof r[15]!="string"?_e(r[15]):r[15];r[16]=t}function R(r,t,o){const e=r.slice();return e[17]=t[o],e}function ge(r){var e;let t,o;return t=new se({props:{title:q("common.error-occurred"),content:q("workflows.no-workers-running-message"),error:(e=r[20])==null?void 0:e.message}}),{c(){w(t.$$.fragment)},l(n){v(t.$$.fragment,n)},m(n,l){y(t,n,l),o=!0},p:m,i(n){o||(_(t.$$.fragment,n),o=!0)},o(n){g(t.$$.fragment,n),o=!1},d(n){I(t,n)}}}function he(r){let t,o,e,n,l,a,i,s,u,k,h,E,j;function Q(c){r[5](c)}let N={id:"query-select",label:q("workflows.query-type"),"data-testid":"query-select",$$slots:{default:[ke]},$$scope:{ctx:r}};r[0]!==void 0&&(N.value=r[0]),e=new ie({props:N}),Z.push(()=>x(e,"value",Q)),a=new le({props:{leadingIcon:"retry",loading:Ee,$$slots:{default:[be]},$$scope:{ctx:r}}}),a.$on("click",r[6]),u=new fe({props:{label:q("workflows.json-formatting"),labelPosition:"left",id:"json-formatting",checked:r[2]}}),u.$on("change",r[7]);let p={ctx:r,current:null,token:null,hasCatch:!1,pending:ye,then:ve,catch:we,value:15,blocks:[,,,]};return U(E=r[1],p),{c(){t=T("div"),o=T("div"),w(e.$$.fragment),l=L(),w(a.$$.fragment),i=L(),s=T("div"),w(u.$$.fragment),k=L(),h=T("div"),p.block.c(),this.h()},l(c){t=C(c,"DIV",{class:!0});var f=S(t);o=C(f,"DIV",{class:!0});var d=S(o);v(e.$$.fragment,d),l=F(d),v(a.$$.fragment,d),d.forEach($),i=F(f),s=C(f,"DIV",{class:!0});var P=S(s);v(u.$$.fragment,P),P.forEach($),f.forEach($),k=F(c),h=C(c,"DIV",{class:!0});var V=S(h);p.block.l(V),V.forEach($),this.h()},h(){B(o,"class","flex items-center gap-4"),B(s,"class","flex justify-end"),B(t,"class","flex justify-between"),B(h,"class","my-2 flex h-full items-start")},m(c,f){b(c,t,f),D(t,o),y(e,o,null),D(o,l),y(a,o,null),D(t,i),D(t,s),y(u,s,null),b(c,k,f),b(c,h,f),p.block.m(h,p.anchor=null),p.mount=()=>h,p.anchor=null,j=!0},p(c,f){r=c;const d={};f&2097152&&(d.$$scope={dirty:f,ctx:r}),!n&&f&1&&(n=!0,d.value=r[0],ee(()=>n=!1)),e.$set(d);const P={};f&2097152&&(P.$$scope={dirty:f,ctx:r}),a.$set(P);const V={};f&4&&(V.checked=r[2]),u.$set(V),p.ctx=r,f&2&&E!==(E=r[1])&&U(E,p)||X(p,r,f)},i(c){j||(_(e.$$.fragment,c),_(a.$$.fragment,c),_(u.$$.fragment,c),_(p.block),j=!0)},o(c){g(e.$$.fragment,c),g(a.$$.fragment,c),g(u.$$.fragment,c);for(let f=0;f<3;f+=1){const d=p.blocks[f];g(d)}j=!1},d(c){c&&$(t),I(e),I(a),I(u),c&&$(k),c&&$(h),p.block.d(),p.token=null,p=null}}}function de(r){let t=r[17]+"",o;return{c(){o=z(t)},l(e){o=A(e,t)},m(e,n){b(e,o,n)},p:m,d(e){e&&$(o)}}}function G(r){let t,o;return t=new ue({props:{value:r[17],$$slots:{default:[de]},$$scope:{ctx:r}}}),{c(){w(t.$$.fragment)},l(e){v(t.$$.fragment,e)},m(e,n){y(t,e,n),o=!0},p(e,n){const l={};n&2097152&&(l.$$scope={dirty:n,ctx:e}),t.$set(l)},i(e){o||(_(t.$$.fragment,e),o=!0)},o(e){g(t.$$.fragment,e),o=!1},d(e){I(t,e)}}}function ke(r){let t,o,e=r[14],n=[];for(let a=0;ag(n[a],1,1,()=>{n[a]=null});return{c(){for(let a=0;at,e.anchor=null,o=!0},p(n,[l]){r=n,X(e,r,l)},i(n){o||(_(e.block),o=!0)},o(n){for(let l=0;l<3;l+=1){const a=e.blocks[l];g(a)}o=!1},d(n){n&&$(t),e.block.d(),e.token=null,e=null}}}let Ee=!1;function je(r,t,o){let e,n;W(r,$e,c=>o(8,e=c)),W(r,Y,c=>o(9,n=c));const{namespace:l,workflow:a,run:i}=n.params,s={id:a,runId:i};let u,k=me({namespace:l,workflow:s}).then(c=>(o(0,u=u||c[0]),c)),h;const E=c=>{var f;o(1,h=pe({namespace:l,workflow:s,queryType:c},(f=n.data)===null||f===void 0?void 0:f.settings,e==null?void 0:e.accessToken))};let j=!0;function Q(c){u=c,o(0,u)}const N=()=>E(u),p=()=>o(2,j=!j);return r.$$.update=()=>{r.$$.dirty&1&&u&&E(u)},[u,h,j,k,E,Q,N,p]}class Te extends H{constructor(t){super(),J(this,t,je,qe,M,{})}}function Ce(r){let t,o,e,n;return t=new re({props:{title:`${q("workflows.queries-tab")} | ${r[1]}`,url:r[0].url.href}}),e=new Te({}),{c(){w(t.$$.fragment),o=L(),w(e.$$.fragment)},l(l){v(t.$$.fragment,l),o=F(l),v(e.$$.fragment,l)},m(l,a){y(t,l,a),b(l,o,a),y(e,l,a),n=!0},p(l,[a]){const i={};a&1&&(i.url=l[0].url.href),t.$set(i)},i(l){n||(_(t.$$.fragment,l),_(e.$$.fragment,l),n=!0)},o(l){g(t.$$.fragment,l),g(e.$$.fragment,l),n=!1},d(l){I(t,l),l&&$(o),I(e,l)}}}function Se(r,t,o){let e;W(r,Y,l=>o(0,e=l));const n=e.params.workflow;return[e,n]}class Oe extends H{constructor(t){super(),J(this,t,Se,Ce,M,{})}}export{Oe as component}; diff --git a/ui/assets/local/_app/immutable/nodes/39.4f82e729.js b/ui/assets/local/_app/immutable/nodes/39.ebb75185.js similarity index 76% rename from ui/assets/local/_app/immutable/nodes/39.4f82e729.js rename to ui/assets/local/_app/immutable/nodes/39.ebb75185.js index 21b4156d31..d805b32b6a 100644 --- a/ui/assets/local/_app/immutable/nodes/39.4f82e729.js +++ b/ui/assets/local/_app/immutable/nodes/39.ebb75185.js @@ -1 +1 @@ -import{r}from"../chunks/index.3158323b.js";import{j as e}from"../chunks/route-for.80613b91.js";const t=async function({params:o}){throw r(302,e(o))},n=Object.freeze(Object.defineProperty({__proto__:null,load:t},Symbol.toStringTag,{value:"Module"}));export{n as universal}; +import{r}from"../chunks/index.3158323b.js";import{j as e}from"../chunks/route-for.084c7a46.js";const t=async function({params:o}){throw r(302,e(o))},n=Object.freeze(Object.defineProperty({__proto__:null,load:t},Symbol.toStringTag,{value:"Module"}));export{n as universal}; diff --git a/ui/assets/local/_app/immutable/nodes/4.f2b8562e.js b/ui/assets/local/_app/immutable/nodes/4.64c13d56.js similarity index 95% rename from ui/assets/local/_app/immutable/nodes/4.f2b8562e.js rename to ui/assets/local/_app/immutable/nodes/4.64c13d56.js index 26596718fd..4085bc16b3 100644 --- a/ui/assets/local/_app/immutable/nodes/4.f2b8562e.js +++ b/ui/assets/local/_app/immutable/nodes/4.64c13d56.js @@ -1 +1 @@ -import{S as M,b as P,a as Q,G as R,m as j,w as A,c as q,C as T,p as I,q as N,x as F,k as c,d as y,D as V,u as _,f as S,L as g,E as C,H as W,I as X,J as Y,j as d,g as h,F as D,K as Z,n as J}from"../chunks/index.4e2fcbc7.js";import{E as x}from"../chunks/event-history-file-import.45952db8.js";import{T as ee,a as G}from"../chunks/toggle-buttons.781b6924.js";import{t as H}from"../chunks/translate.d23a91ae.js";import{l as te}from"../chunks/namespaces.85dd397c.js";import{f as k}from"../chunks/route-for.80613b91.js";function se(a){let t=H("workflows.history")+"",s;return{c(){s=A(t)},l(e){s=F(e,t)},m(e,o){S(e,s,o)},p:J,d(e){e&&c(s)}}}function ne(a){let t=H("workflows.compact")+"",s;return{c(){s=A(t)},l(e){s=F(e,t)},m(e,o){S(e,s,o)},p:J,d(e){e&&c(s)}}}function oe(a){let t=H("workflows.json")+"",s;return{c(){s=A(t)},l(e){s=F(e,t)},m(e,o){S(e,s,o)},p:J,d(e){e&&c(s)}}}function ae(a){let t,s,e,o,l,i;return t=new G({props:{icon:"feed",href:k(a[0],"feed"),$$slots:{default:[se]},$$scope:{ctx:a}}}),e=new G({props:{icon:"compact",href:k(a[0],"compact"),$$slots:{default:[ne]},$$scope:{ctx:a}}}),l=new G({props:{icon:"json",href:k(a[0],"json"),$$slots:{default:[oe]},$$scope:{ctx:a}}}),{c(){T(t.$$.fragment),s=q(),T(e.$$.fragment),o=q(),T(l.$$.fragment)},l(n){V(t.$$.fragment,n),s=y(n),V(e.$$.fragment,n),o=y(n),V(l.$$.fragment,n)},m(n,r){C(t,n,r),S(n,s,r),C(e,n,r),S(n,o,r),C(l,n,r),i=!0},p(n,r){const b={};r&1&&(b.href=k(n[0],"feed")),r&4&&(b.$$scope={dirty:r,ctx:n}),t.$set(b);const m={};r&1&&(m.href=k(n[0],"compact")),r&4&&(m.$$scope={dirty:r,ctx:n}),e.$set(m);const p={};r&1&&(p.href=k(n[0],"json")),r&4&&(p.$$scope={dirty:r,ctx:n}),l.$set(p)},i(n){i||(d(t.$$.fragment,n),d(e.$$.fragment,n),d(l.$$.fragment,n),i=!0)},o(n){h(t.$$.fragment,n),h(e.$$.fragment,n),h(l.$$.fragment,n),i=!1},d(n){D(t,n),n&&c(s),D(e,n),n&&c(o),D(l,n)}}}function le(a){let t,s,e,o=H("events.import-event-history")+"",l,i,n,r,b,m,p,v,L,E;r=new x({}),v=new ee({props:{$$slots:{default:[ae]},$$scope:{ctx:a}}});const U=a[1].default,$=R(U,a,a[2],null);return{c(){t=j("section"),s=j("nav"),e=j("h3"),l=A(o),i=q(),n=j("div"),T(r.$$.fragment),b=q(),m=j("nav"),p=j("div"),T(v.$$.fragment),L=q(),$&&$.c(),this.h()},l(f){t=I(f,"SECTION",{id:!0});var u=N(t);s=I(u,"NAV",{class:!0,"aria-label":!0});var w=N(s);e=I(w,"H3",{class:!0});var K=N(e);l=F(K,o),K.forEach(c),i=y(w),n=I(w,"DIV",{class:!0});var O=N(n);V(r.$$.fragment,O),O.forEach(c),w.forEach(c),b=y(u),m=I(u,"NAV",{class:!0,"aria-label":!0});var z=N(m);p=I(z,"DIV",{id:!0,class:!0});var B=N(p);V(v.$$.fragment,B),B.forEach(c),z.forEach(c),L=y(u),$&&$.l(u),u.forEach(c),this.h()},h(){_(e,"class","text-lg font-medium"),_(n,"class","flex gap-4"),_(s,"class","flex items-end justify-between gap-4 pb-4"),_(s,"aria-label",H("events.import-event-history")),_(p,"id","event-view-toggle"),_(p,"class","flex gap-4 bg-white"),_(m,"class","flex items-end justify-end gap-4"),_(m,"aria-label",H("events.event-history-view")),_(t,"id","event-history")},m(f,u){S(f,t,u),g(t,s),g(s,e),g(e,l),g(s,i),g(s,n),C(r,n,null),g(t,b),g(t,m),g(m,p),C(v,p,null),g(t,L),$&&$.m(t,null),E=!0},p(f,[u]){const w={};u&5&&(w.$$scope={dirty:u,ctx:f}),v.$set(w),$&&$.p&&(!E||u&4)&&W($,U,f,f[2],E?Y(U,f[2],u,null):X(f[2]),null)},i(f){E||(d(r.$$.fragment,f),d(v.$$.fragment,f),d($,f),E=!0)},o(f){h(r.$$.fragment,f),h(v.$$.fragment,f),h($,f),E=!1},d(f){f&&c(t),D(r),D(v),$&&$.d(f)}}}function re(a,t,s){let e;Z(a,te,i=>s(0,e=i));let{$$slots:o={},$$scope:l}=t;return a.$$set=i=>{"$$scope"in i&&s(2,l=i.$$scope)},[e,o,l]}class fe extends M{constructor(t){super(),P(this,t,re,le,Q,{})}}function ie(a){let t;const s=a[0].default,e=R(s,a,a[1],null);return{c(){e&&e.c()},l(o){e&&e.l(o)},m(o,l){e&&e.m(o,l),t=!0},p(o,l){e&&e.p&&(!t||l&2)&&W(e,s,o,o[1],t?Y(s,o[1],l,null):X(o[1]),null)},i(o){t||(d(e,o),t=!0)},o(o){h(e,o),t=!1},d(o){e&&e.d(o)}}}function $e(a){let t,s;return t=new fe({props:{$$slots:{default:[ie]},$$scope:{ctx:a}}}),{c(){T(t.$$.fragment)},l(e){V(t.$$.fragment,e)},m(e,o){C(t,e,o),s=!0},p(e,[o]){const l={};o&2&&(l.$$scope={dirty:o,ctx:e}),t.$set(l)},i(e){s||(d(t.$$.fragment,e),s=!0)},o(e){h(t.$$.fragment,e),s=!1},d(e){D(t,e)}}}function ue(a,t,s){let{$$slots:e={},$$scope:o}=t;return a.$$set=l=>{"$$scope"in l&&s(1,o=l.$$scope)},[e,o]}class de extends M{constructor(t){super(),P(this,t,ue,$e,Q,{})}}export{de as component}; +import{S as M,b as P,a as Q,G as R,m as j,w as A,c as q,C as T,p as I,q as N,x as F,k as c,d as y,D as V,u as _,f as S,L as g,E as C,H as W,I as X,J as Y,j as d,g as h,F as D,K as Z,n as J}from"../chunks/index.4e2fcbc7.js";import{E as x}from"../chunks/event-history-file-import.e962a52b.js";import{T as ee,a as G}from"../chunks/toggle-buttons.9dfbcbed.js";import{t as H}from"../chunks/translate.d23a91ae.js";import{l as te}from"../chunks/namespaces.c82b5451.js";import{f as k}from"../chunks/route-for.084c7a46.js";function se(a){let t=H("workflows.history")+"",s;return{c(){s=A(t)},l(e){s=F(e,t)},m(e,o){S(e,s,o)},p:J,d(e){e&&c(s)}}}function ne(a){let t=H("workflows.compact")+"",s;return{c(){s=A(t)},l(e){s=F(e,t)},m(e,o){S(e,s,o)},p:J,d(e){e&&c(s)}}}function oe(a){let t=H("workflows.json")+"",s;return{c(){s=A(t)},l(e){s=F(e,t)},m(e,o){S(e,s,o)},p:J,d(e){e&&c(s)}}}function ae(a){let t,s,e,o,l,i;return t=new G({props:{icon:"feed",href:k(a[0],"feed"),$$slots:{default:[se]},$$scope:{ctx:a}}}),e=new G({props:{icon:"compact",href:k(a[0],"compact"),$$slots:{default:[ne]},$$scope:{ctx:a}}}),l=new G({props:{icon:"json",href:k(a[0],"json"),$$slots:{default:[oe]},$$scope:{ctx:a}}}),{c(){T(t.$$.fragment),s=q(),T(e.$$.fragment),o=q(),T(l.$$.fragment)},l(n){V(t.$$.fragment,n),s=y(n),V(e.$$.fragment,n),o=y(n),V(l.$$.fragment,n)},m(n,r){C(t,n,r),S(n,s,r),C(e,n,r),S(n,o,r),C(l,n,r),i=!0},p(n,r){const b={};r&1&&(b.href=k(n[0],"feed")),r&4&&(b.$$scope={dirty:r,ctx:n}),t.$set(b);const m={};r&1&&(m.href=k(n[0],"compact")),r&4&&(m.$$scope={dirty:r,ctx:n}),e.$set(m);const p={};r&1&&(p.href=k(n[0],"json")),r&4&&(p.$$scope={dirty:r,ctx:n}),l.$set(p)},i(n){i||(d(t.$$.fragment,n),d(e.$$.fragment,n),d(l.$$.fragment,n),i=!0)},o(n){h(t.$$.fragment,n),h(e.$$.fragment,n),h(l.$$.fragment,n),i=!1},d(n){D(t,n),n&&c(s),D(e,n),n&&c(o),D(l,n)}}}function le(a){let t,s,e,o=H("events.import-event-history")+"",l,i,n,r,b,m,p,v,L,E;r=new x({}),v=new ee({props:{$$slots:{default:[ae]},$$scope:{ctx:a}}});const U=a[1].default,$=R(U,a,a[2],null);return{c(){t=j("section"),s=j("nav"),e=j("h3"),l=A(o),i=q(),n=j("div"),T(r.$$.fragment),b=q(),m=j("nav"),p=j("div"),T(v.$$.fragment),L=q(),$&&$.c(),this.h()},l(f){t=I(f,"SECTION",{id:!0});var u=N(t);s=I(u,"NAV",{class:!0,"aria-label":!0});var w=N(s);e=I(w,"H3",{class:!0});var K=N(e);l=F(K,o),K.forEach(c),i=y(w),n=I(w,"DIV",{class:!0});var O=N(n);V(r.$$.fragment,O),O.forEach(c),w.forEach(c),b=y(u),m=I(u,"NAV",{class:!0,"aria-label":!0});var z=N(m);p=I(z,"DIV",{id:!0,class:!0});var B=N(p);V(v.$$.fragment,B),B.forEach(c),z.forEach(c),L=y(u),$&&$.l(u),u.forEach(c),this.h()},h(){_(e,"class","text-lg font-medium"),_(n,"class","flex gap-4"),_(s,"class","flex items-end justify-between gap-4 pb-4"),_(s,"aria-label",H("events.import-event-history")),_(p,"id","event-view-toggle"),_(p,"class","flex gap-4 bg-white"),_(m,"class","flex items-end justify-end gap-4"),_(m,"aria-label",H("events.event-history-view")),_(t,"id","event-history")},m(f,u){S(f,t,u),g(t,s),g(s,e),g(e,l),g(s,i),g(s,n),C(r,n,null),g(t,b),g(t,m),g(m,p),C(v,p,null),g(t,L),$&&$.m(t,null),E=!0},p(f,[u]){const w={};u&5&&(w.$$scope={dirty:u,ctx:f}),v.$set(w),$&&$.p&&(!E||u&4)&&W($,U,f,f[2],E?Y(U,f[2],u,null):X(f[2]),null)},i(f){E||(d(r.$$.fragment,f),d(v.$$.fragment,f),d($,f),E=!0)},o(f){h(r.$$.fragment,f),h(v.$$.fragment,f),h($,f),E=!1},d(f){f&&c(t),D(r),D(v),$&&$.d(f)}}}function re(a,t,s){let e;Z(a,te,i=>s(0,e=i));let{$$slots:o={},$$scope:l}=t;return a.$$set=i=>{"$$scope"in i&&s(2,l=i.$$scope)},[e,o,l]}class fe extends M{constructor(t){super(),P(this,t,re,le,Q,{})}}function ie(a){let t;const s=a[0].default,e=R(s,a,a[1],null);return{c(){e&&e.c()},l(o){e&&e.l(o)},m(o,l){e&&e.m(o,l),t=!0},p(o,l){e&&e.p&&(!t||l&2)&&W(e,s,o,o[1],t?Y(s,o[1],l,null):X(o[1]),null)},i(o){t||(d(e,o),t=!0)},o(o){h(e,o),t=!1},d(o){e&&e.d(o)}}}function $e(a){let t,s;return t=new fe({props:{$$slots:{default:[ie]},$$scope:{ctx:a}}}),{c(){T(t.$$.fragment)},l(e){V(t.$$.fragment,e)},m(e,o){C(t,e,o),s=!0},p(e,[o]){const l={};o&2&&(l.$$scope={dirty:o,ctx:e}),t.$set(l)},i(e){s||(d(t.$$.fragment,e),s=!0)},o(e){h(t.$$.fragment,e),s=!1},d(e){D(t,e)}}}function ue(a,t,s){let{$$slots:e={},$$scope:o}=t;return a.$$set=l=>{"$$scope"in l&&s(1,o=l.$$scope)},[e,o]}class de extends M{constructor(t){super(),P(this,t,ue,$e,Q,{})}}export{de as component}; diff --git a/ui/assets/local/_app/immutable/nodes/40.5b818d2e.js b/ui/assets/local/_app/immutable/nodes/40.7e27d597.js similarity index 89% rename from ui/assets/local/_app/immutable/nodes/40.5b818d2e.js rename to ui/assets/local/_app/immutable/nodes/40.7e27d597.js index b3601dc754..a8aa93a347 100644 --- a/ui/assets/local/_app/immutable/nodes/40.5b818d2e.js +++ b/ui/assets/local/_app/immutable/nodes/40.7e27d597.js @@ -1 +1 @@ -import{S as w,b as k,a as $,C as m,D as i,E as u,j as p,g as l,F as c,K as g,c as b,d as h,f as y,k as Q}from"../chunks/index.4e2fcbc7.js";import{p as P}from"../chunks/stores.14a97433.js";import{P as W}from"../chunks/page-title.f9a44b80.js";import{t as C}from"../chunks/translate.d23a91ae.js";import{W as R}from"../chunks/workers-list.1ce615d3.js";import{w as S}from"../chunks/workflow-run.86769de7.js";function j(n){var s;let t,o;return t=new R({props:{taskQueue:(s=n[2])==null?void 0:s.taskQueue,workers:n[3],compatibility:n[1],reachability:n[0]}}),{c(){m(t.$$.fragment)},l(r){i(t.$$.fragment,r)},m(r,e){u(t,r,e),o=!0},p(r,[e]){var f;const a={};e&4&&(a.taskQueue=(f=r[2])==null?void 0:f.taskQueue),e&8&&(a.workers=r[3]),e&2&&(a.compatibility=r[1]),e&1&&(a.reachability=r[0]),t.$set(a)},i(r){o||(p(t.$$.fragment,r),o=!0)},o(r){l(t.$$.fragment,r),o=!1},d(r){c(t,r)}}}function q(n,t,o){let s,r,e,a,f;return g(n,S,_=>o(4,f=_)),n.$$.update=()=>{n.$$.dirty&16&&o(3,{workers:s,workflow:r,compatibility:e,reachability:a}=f,s,(o(2,r),o(4,f)),(o(1,e),o(4,f)),(o(0,a),o(4,f)))},[a,e,r,s,f]}class D extends w{constructor(t){super(),k(this,t,q,j,$,{})}}function E(n){let t,o,s,r;return t=new W({props:{title:`${C("workflows.workers-tab")} | ${n[1]}`,url:n[0].url.href}}),s=new D({}),{c(){m(t.$$.fragment),o=b(),m(s.$$.fragment)},l(e){i(t.$$.fragment,e),o=h(e),i(s.$$.fragment,e)},m(e,a){u(t,e,a),y(e,o,a),u(s,e,a),r=!0},p(e,[a]){const f={};a&1&&(f.url=e[0].url.href),t.$set(f)},i(e){r||(p(t.$$.fragment,e),p(s.$$.fragment,e),r=!0)},o(e){l(t.$$.fragment,e),l(s.$$.fragment,e),r=!1},d(e){c(t,e),e&&Q(o),c(s,e)}}}function F(n,t,o){let s;g(n,P,e=>o(0,s=e));const r=s.params.workflow;return[s,r]}class I extends w{constructor(t){super(),k(this,t,F,E,$,{})}}export{I as component}; +import{S as w,b as k,a as $,C as m,D as i,E as u,j as p,g as l,F as c,K as g,c as b,d as h,f as y,k as Q}from"../chunks/index.4e2fcbc7.js";import{p as P}from"../chunks/stores.0e7b7e35.js";import{P as W}from"../chunks/page-title.f9a44b80.js";import{t as C}from"../chunks/translate.d23a91ae.js";import{W as R}from"../chunks/workers-list.611e6068.js";import{w as S}from"../chunks/workflow-run.8b92989d.js";function j(n){var s;let t,o;return t=new R({props:{taskQueue:(s=n[2])==null?void 0:s.taskQueue,workers:n[3],compatibility:n[1],reachability:n[0]}}),{c(){m(t.$$.fragment)},l(r){i(t.$$.fragment,r)},m(r,e){u(t,r,e),o=!0},p(r,[e]){var f;const a={};e&4&&(a.taskQueue=(f=r[2])==null?void 0:f.taskQueue),e&8&&(a.workers=r[3]),e&2&&(a.compatibility=r[1]),e&1&&(a.reachability=r[0]),t.$set(a)},i(r){o||(p(t.$$.fragment,r),o=!0)},o(r){l(t.$$.fragment,r),o=!1},d(r){c(t,r)}}}function q(n,t,o){let s,r,e,a,f;return g(n,S,_=>o(4,f=_)),n.$$.update=()=>{n.$$.dirty&16&&o(3,{workers:s,workflow:r,compatibility:e,reachability:a}=f,s,(o(2,r),o(4,f)),(o(1,e),o(4,f)),(o(0,a),o(4,f)))},[a,e,r,s,f]}class D extends w{constructor(t){super(),k(this,t,q,j,$,{})}}function E(n){let t,o,s,r;return t=new W({props:{title:`${C("workflows.workers-tab")} | ${n[1]}`,url:n[0].url.href}}),s=new D({}),{c(){m(t.$$.fragment),o=b(),m(s.$$.fragment)},l(e){i(t.$$.fragment,e),o=h(e),i(s.$$.fragment,e)},m(e,a){u(t,e,a),y(e,o,a),u(s,e,a),r=!0},p(e,[a]){const f={};a&1&&(f.url=e[0].url.href),t.$set(f)},i(e){r||(p(t.$$.fragment,e),p(s.$$.fragment,e),r=!0)},o(e){l(t.$$.fragment,e),l(s.$$.fragment,e),r=!1},d(e){c(t,e),e&&Q(o),c(s,e)}}}function F(n,t,o){let s;g(n,P,e=>o(0,s=e));const r=s.params.workflow;return[s,r]}class I extends w{constructor(t){super(),k(this,t,F,E,$,{})}}export{I as component}; diff --git a/ui/assets/local/_app/immutable/nodes/41.f3c36bef.js b/ui/assets/local/_app/immutable/nodes/41.8cfba0ec.js similarity index 94% rename from ui/assets/local/_app/immutable/nodes/41.f3c36bef.js rename to ui/assets/local/_app/immutable/nodes/41.8cfba0ec.js index 93baaa8214..39059954ec 100644 --- a/ui/assets/local/_app/immutable/nodes/41.f3c36bef.js +++ b/ui/assets/local/_app/immutable/nodes/41.8cfba0ec.js @@ -1 +1 @@ -import{S as fe,b as me,a as he,m as N,p as z,q as P,k as b,v as O,aw as le,a3 as ve,f as C,L as E,am as be,Q as pe,z as ne,aa as ke,ab as we,h as ae,j as V,g as H,o as ye,G as Ee,c as F,d as W,H as Te,I as Ie,J as Le,t as ee,A as se,w as Z,x as $,a0 as Ve,C as q,D as B,u as R,E as j,a1 as He,F as G,K as te,a5 as Se,n as ge,e as re,P as Y,y as Ne}from"../chunks/index.4e2fcbc7.js";import{g as ze}from"../chunks/navigation.10919bcf.js";import{p as Pe}from"../chunks/stores.14a97433.js";import{P as Re}from"../chunks/page-title.f9a44b80.js";import{E as de}from"../chunks/empty-state.721f6c59.js";import{I as Ue}from"../chunks/input.0bde2076.js";import{t as U}from"../chunks/translate.d23a91ae.js";import{d as Ae}from"../chunks/workflow-service.4d66b505.js";import{l as oe,n as Ce}from"../chunks/namespaces.85dd397c.js";import{t as Me}from"../chunks/toaster.8a4adbc8.js";import{a as Oe}from"../chunks/route-for.80613b91.js";function ie(s,e,t){const l=s.slice();return l[23]=e[t],l}const De=s=>({item:s&16}),ce=s=>({item:s[23].data});function Fe(s){let e;return{c(){e=Z("Missing template")},l(t){e=$(t,"Missing template")},m(t,l){C(t,e,l)},d(t){t&&b(e)}}}function ue(s,e){let t,l,i;const f=e[14].default,u=Ee(f,e,e[13],ce),_=u||Fe();return{key:s,first:null,c(){t=N("svelte-virtual-list-row"),_&&_.c(),l=F(),this.h()},l(n){t=z(n,"SVELTE-VIRTUAL-LIST-ROW",{class:!0});var o=P(t);_&&_.l(o),l=W(o),o.forEach(b),this.h()},h(){le(t,"class","svelte-1kdxoed"),this.first=t},m(n,o){C(n,t,o),_&&_.m(t,null),E(t,l),i=!0},p(n,o){e=n,u&&u.p&&(!i||o&8208)&&Te(u,f,e,e[13],i?Le(f,e[13],o,De):Ie(e[13]),ce)},i(n){i||(V(_,n),i=!0)},o(n){H(_,n),i=!1},d(n){n&&b(t),_&&_.d(n)}}}function We(s){let e,t,l=[],i=new Map,f,u,_,n,o=s[4];const p=c=>c[23].index;for(let c=0;cs[17].call(e))},m(c,a){C(c,e,a),E(e,t);for(let m=0;mr){t(8,n=d),t(5,v=y);break}y+=g,d+=1}for(;dr+w)););t(9,o=d);const L=f.length-o;for(I=y/o;d{c=m.getElementsByTagName("svelte-virtual-list-row"),t(12,T=!0)});function K(r){se[r?"unshift":"push"](()=>{m=r,t(3,m)})}function S(r){se[r?"unshift":"push"](()=>{a=r,t(2,a)})}function Q(){w=this.offsetHeight,t(1,w)}return s.$$set=r=>{"items"in r&&t(10,f=r.items),"height"in r&&t(0,u=r.height),"itemHeight"in r&&t(11,_=r.itemHeight),"start"in r&&t(8,n=r.start),"end"in r&&t(9,o=r.end),"$$scope"in r&&t(13,i=r.$$scope)},s.$$.update=()=>{s.$$.dirty&1792&&t(4,M=f.slice(n,o).map((r,h)=>({index:h+n,data:r}))),s.$$.dirty&7170&&T&&x(f,w,_)},[u,w,a,m,M,v,k,J,n,o,f,_,T,i,l,K,S,Q]}class Be extends fe{constructor(e){super(),me(this,e,qe,We,he,{items:10,height:0,itemHeight:11,start:8,end:9})}}function _e(s){const e=s[9]===s[2][0];s[10]=e;const t=s[9]===s[2][s[2].length-1];s[11]=t}function je(s){let e,t;return e=new de({props:{title:U("namespaces.select-namespace-empty-state")}}),{c(){q(e.$$.fragment)},l(l){B(e.$$.fragment,l)},m(l,i){j(e,l,i),t=!0},p:ge,i(l){t||(V(e.$$.fragment,l),t=!0)},o(l){H(e.$$.fragment,l),t=!1},d(l){G(e,l)}}}function Ge(s){let e,t,l,i;const f=[Ke,Je],u=[];function _(n,o){return n[2].length?0:1}return e=_(s),t=u[e]=f[e](s),{c(){t.c(),l=re()},l(n){t.l(n),l=re()},m(n,o){u[e].m(n,o),C(n,l,o),i=!0},p(n,o){let p=e;e=_(n),e===p?u[e].p(n,o):(ne(),H(u[p],1,1,()=>{u[p]=null}),ae(),t=u[e],t?t.p(n,o):(t=u[e]=f[e](n),t.c()),V(t,1),t.m(l.parentNode,l))},i(n){i||(V(t),i=!0)},o(n){H(t),i=!1},d(n){u[e].d(n),n&&b(l)}}}function Je(s){let e,t;return e=new de({props:{title:U("common.no-results")}}),{c(){q(e.$$.fragment)},l(l){B(e.$$.fragment,l)},m(l,i){j(e,l,i),t=!0},p:ge,i(l){t||(V(e.$$.fragment,l),t=!0)},o(l){H(e.$$.fragment,l),t=!1},d(l){G(e,l)}}}function Ke(s){let e,t;return e=new Be({props:{items:s[2],itemHeight:50,$$slots:{default:[Qe,({item:l})=>({9:l}),({item:l})=>l?512:0]},$$scope:{ctx:s}}}),{c(){q(e.$$.fragment)},l(l){B(e.$$.fragment,l)},m(l,i){j(e,l,i),t=!0},p(l,i){const f={};i&4&&(f.items=l[2]),i&4612&&(f.$$scope={dirty:i,ctx:l}),e.$set(f)},i(l){t||(V(e.$$.fragment,l),t=!0)},o(l){H(e.$$.fragment,l),t=!1},d(l){G(e,l)}}}function Qe(s){_e(s);let e,t,l=s[9].namespace+"",i,f,u;function _(){return s[7](s[9])}return{c(){e=N("div"),t=N("button"),i=Z(l),this.h()},l(n){e=z(n,"DIV",{class:!0});var o=P(e);t=z(o,"BUTTON",{class:!0});var p=P(t);i=$(p,l),p.forEach(b),o.forEach(b),this.h()},h(){R(t,"class","w-full truncate p-3 text-left"),R(e,"class","link-item svelte-uk7srb"),Y(e,"first",s[10]),Y(e,"last",s[11])},m(n,o){C(n,e,o),E(e,t),E(t,i),f||(u=pe(t,"click",_),f=!0)},p(n,o){s=n,_e(s),o&512&&l!==(l=s[9].namespace+"")&&Ne(i,l),o&516&&Y(e,"first",s[10]),o&516&&Y(e,"last",s[11])},d(n){n&&b(e),f=!1,u()}}}function Xe(s){let e,t,l,i,f=U("namespaces.select-namespace-welcome")+"",u,_,n,o=U("namespaces.select-namespace")+"",p,c,a,m,w,M,T,v,k,I;e=new Re({props:{title:U("namespaces.namespace-select-header"),url:s[3].url.href}});function x(r){s[6](r)}let J={id:"search-namespaces",type:"search",label:U("common.search"),labelHidden:!0,placeholder:U("common.search"),icon:"search"};s[0]!==void 0&&(J.value=s[0]),m=new Ue({props:J}),se.push(()=>Ve(m,"value",x));const K=[Ge,je],S=[];function Q(r,h){return r[1].length?0:1}return v=Q(s),k=S[v]=K[v](s),{c(){q(e.$$.fragment),t=F(),l=N("div"),i=N("h1"),u=Z(f),_=F(),n=N("p"),p=Z(o),c=F(),a=N("form"),q(m.$$.fragment),M=F(),T=N("div"),k.c(),this.h()},l(r){B(e.$$.fragment,r),t=W(r),l=z(r,"DIV",{class:!0});var h=P(l);i=z(h,"H1",{class:!0});var d=P(i);u=$(d,f),d.forEach(b),_=W(h),n=z(h,"P",{class:!0});var y=P(n);p=$(y,o),y.forEach(b),c=W(h),a=z(h,"FORM",{class:!0,role:!0});var L=P(a);B(m.$$.fragment,L),L.forEach(b),M=W(h),T=z(h,"DIV",{class:!0,"aria-label":!0});var g=P(T);k.l(g),g.forEach(b),h.forEach(b),this.h()},h(){R(i,"class","my-4 text-3xl"),R(n,"class","mb-8"),R(a,"class","mb-5"),R(a,"role","search"),R(T,"class","h-screen w-full"),R(T,"aria-label",U("common.namespaces")),R(l,"class","w-full p-8 xl:w-1/2")},m(r,h){j(e,r,h),C(r,t,h),C(r,l,h),E(l,i),E(i,u),E(l,_),E(l,n),E(n,p),E(l,c),E(l,a),j(m,a,null),E(l,M),E(l,T),S[v].m(T,null),I=!0},p(r,[h]){const d={};h&8&&(d.url=r[3].url.href),e.$set(d);const y={};!w&&h&1&&(w=!0,y.value=r[0],He(()=>w=!1)),m.$set(y);let L=v;v=Q(r),v===L?S[v].p(r,h):(ne(),H(S[L],1,1,()=>{S[L]=null}),ae(),k=S[v],k?k.p(r,h):(k=S[v]=K[v](r),k.c()),V(k,1),k.m(T,null))},i(r){I||(V(e.$$.fragment,r),V(m.$$.fragment,r),V(k),I=!0)},o(r){H(e.$$.fragment,r),H(m.$$.fragment,r),H(k),I=!1},d(r){G(e,r),r&&b(t),r&&b(l),G(m),S[v].d()}}}function Ye(s,e,t){let l,i,f,u,_,n;te(s,oe,a=>t(8,u=a)),te(s,Ce,a=>t(5,_=a)),te(s,Pe,a=>t(3,n=a));let o="";function p(a){o=a,t(0,o)}const c=a=>a==null?void 0:a.onClick(a.namespace);return s.$$.update=()=>{s.$$.dirty&32&&t(4,l=_.map(a=>{var m;return(m=a==null?void 0:a.namespaceInfo)===null||m===void 0?void 0:m.name})),s.$$.dirty&16&&t(1,i=l.map(a=>({namespace:a,onClick:async m=>{const{authorized:w}=await Ae(m);w?(Se(oe,u=m,u),ze(Oe({namespace:m}))):Me.push({variant:"error",message:U("namespaces.unauthorized-namespace-error")})}}))),s.$$.dirty&3&&t(2,f=i.filter(({namespace:a})=>a.includes(o)))},[o,i,f,n,l,_,p,c]}class it extends fe{constructor(e){super(),me(this,e,Ye,Xe,he,{})}}export{it as component}; +import{S as fe,b as me,a as he,m as N,p as z,q as P,k as b,v as O,aw as le,a3 as ve,f as C,L as E,am as be,Q as pe,z as ne,aa as ke,ab as we,h as ae,j as V,g as H,o as ye,G as Ee,c as F,d as W,H as Te,I as Ie,J as Le,t as ee,A as se,w as Z,x as $,a0 as Ve,C as q,D as B,u as R,E as j,a1 as He,F as G,K as te,a5 as Se,n as ge,e as re,P as Y,y as Ne}from"../chunks/index.4e2fcbc7.js";import{g as ze}from"../chunks/navigation.b77a045a.js";import{p as Pe}from"../chunks/stores.0e7b7e35.js";import{P as Re}from"../chunks/page-title.f9a44b80.js";import{E as de}from"../chunks/empty-state.721f6c59.js";import{I as Ue}from"../chunks/input.4b0dcfae.js";import{t as U}from"../chunks/translate.d23a91ae.js";import{d as Ae}from"../chunks/workflow-service.e2f4a06b.js";import{l as oe,n as Ce}from"../chunks/namespaces.c82b5451.js";import{t as Me}from"../chunks/toaster.de22ba12.js";import{a as Oe}from"../chunks/route-for.084c7a46.js";function ie(s,e,t){const l=s.slice();return l[23]=e[t],l}const De=s=>({item:s&16}),ce=s=>({item:s[23].data});function Fe(s){let e;return{c(){e=Z("Missing template")},l(t){e=$(t,"Missing template")},m(t,l){C(t,e,l)},d(t){t&&b(e)}}}function ue(s,e){let t,l,i;const f=e[14].default,u=Ee(f,e,e[13],ce),_=u||Fe();return{key:s,first:null,c(){t=N("svelte-virtual-list-row"),_&&_.c(),l=F(),this.h()},l(n){t=z(n,"SVELTE-VIRTUAL-LIST-ROW",{class:!0});var o=P(t);_&&_.l(o),l=W(o),o.forEach(b),this.h()},h(){le(t,"class","svelte-1kdxoed"),this.first=t},m(n,o){C(n,t,o),_&&_.m(t,null),E(t,l),i=!0},p(n,o){e=n,u&&u.p&&(!i||o&8208)&&Te(u,f,e,e[13],i?Le(f,e[13],o,De):Ie(e[13]),ce)},i(n){i||(V(_,n),i=!0)},o(n){H(_,n),i=!1},d(n){n&&b(t),_&&_.d(n)}}}function We(s){let e,t,l=[],i=new Map,f,u,_,n,o=s[4];const p=c=>c[23].index;for(let c=0;cs[17].call(e))},m(c,a){C(c,e,a),E(e,t);for(let m=0;mr){t(8,n=d),t(5,v=y);break}y+=g,d+=1}for(;dr+w)););t(9,o=d);const L=f.length-o;for(I=y/o;d{c=m.getElementsByTagName("svelte-virtual-list-row"),t(12,T=!0)});function K(r){se[r?"unshift":"push"](()=>{m=r,t(3,m)})}function S(r){se[r?"unshift":"push"](()=>{a=r,t(2,a)})}function Q(){w=this.offsetHeight,t(1,w)}return s.$$set=r=>{"items"in r&&t(10,f=r.items),"height"in r&&t(0,u=r.height),"itemHeight"in r&&t(11,_=r.itemHeight),"start"in r&&t(8,n=r.start),"end"in r&&t(9,o=r.end),"$$scope"in r&&t(13,i=r.$$scope)},s.$$.update=()=>{s.$$.dirty&1792&&t(4,M=f.slice(n,o).map((r,h)=>({index:h+n,data:r}))),s.$$.dirty&7170&&T&&x(f,w,_)},[u,w,a,m,M,v,k,J,n,o,f,_,T,i,l,K,S,Q]}class Be extends fe{constructor(e){super(),me(this,e,qe,We,he,{items:10,height:0,itemHeight:11,start:8,end:9})}}function _e(s){const e=s[9]===s[2][0];s[10]=e;const t=s[9]===s[2][s[2].length-1];s[11]=t}function je(s){let e,t;return e=new de({props:{title:U("namespaces.select-namespace-empty-state")}}),{c(){q(e.$$.fragment)},l(l){B(e.$$.fragment,l)},m(l,i){j(e,l,i),t=!0},p:ge,i(l){t||(V(e.$$.fragment,l),t=!0)},o(l){H(e.$$.fragment,l),t=!1},d(l){G(e,l)}}}function Ge(s){let e,t,l,i;const f=[Ke,Je],u=[];function _(n,o){return n[2].length?0:1}return e=_(s),t=u[e]=f[e](s),{c(){t.c(),l=re()},l(n){t.l(n),l=re()},m(n,o){u[e].m(n,o),C(n,l,o),i=!0},p(n,o){let p=e;e=_(n),e===p?u[e].p(n,o):(ne(),H(u[p],1,1,()=>{u[p]=null}),ae(),t=u[e],t?t.p(n,o):(t=u[e]=f[e](n),t.c()),V(t,1),t.m(l.parentNode,l))},i(n){i||(V(t),i=!0)},o(n){H(t),i=!1},d(n){u[e].d(n),n&&b(l)}}}function Je(s){let e,t;return e=new de({props:{title:U("common.no-results")}}),{c(){q(e.$$.fragment)},l(l){B(e.$$.fragment,l)},m(l,i){j(e,l,i),t=!0},p:ge,i(l){t||(V(e.$$.fragment,l),t=!0)},o(l){H(e.$$.fragment,l),t=!1},d(l){G(e,l)}}}function Ke(s){let e,t;return e=new Be({props:{items:s[2],itemHeight:50,$$slots:{default:[Qe,({item:l})=>({9:l}),({item:l})=>l?512:0]},$$scope:{ctx:s}}}),{c(){q(e.$$.fragment)},l(l){B(e.$$.fragment,l)},m(l,i){j(e,l,i),t=!0},p(l,i){const f={};i&4&&(f.items=l[2]),i&4612&&(f.$$scope={dirty:i,ctx:l}),e.$set(f)},i(l){t||(V(e.$$.fragment,l),t=!0)},o(l){H(e.$$.fragment,l),t=!1},d(l){G(e,l)}}}function Qe(s){_e(s);let e,t,l=s[9].namespace+"",i,f,u;function _(){return s[7](s[9])}return{c(){e=N("div"),t=N("button"),i=Z(l),this.h()},l(n){e=z(n,"DIV",{class:!0});var o=P(e);t=z(o,"BUTTON",{class:!0});var p=P(t);i=$(p,l),p.forEach(b),o.forEach(b),this.h()},h(){R(t,"class","w-full truncate p-3 text-left"),R(e,"class","link-item svelte-uk7srb"),Y(e,"first",s[10]),Y(e,"last",s[11])},m(n,o){C(n,e,o),E(e,t),E(t,i),f||(u=pe(t,"click",_),f=!0)},p(n,o){s=n,_e(s),o&512&&l!==(l=s[9].namespace+"")&&Ne(i,l),o&516&&Y(e,"first",s[10]),o&516&&Y(e,"last",s[11])},d(n){n&&b(e),f=!1,u()}}}function Xe(s){let e,t,l,i,f=U("namespaces.select-namespace-welcome")+"",u,_,n,o=U("namespaces.select-namespace")+"",p,c,a,m,w,M,T,v,k,I;e=new Re({props:{title:U("namespaces.namespace-select-header"),url:s[3].url.href}});function x(r){s[6](r)}let J={id:"search-namespaces",type:"search",label:U("common.search"),labelHidden:!0,placeholder:U("common.search"),icon:"search"};s[0]!==void 0&&(J.value=s[0]),m=new Ue({props:J}),se.push(()=>Ve(m,"value",x));const K=[Ge,je],S=[];function Q(r,h){return r[1].length?0:1}return v=Q(s),k=S[v]=K[v](s),{c(){q(e.$$.fragment),t=F(),l=N("div"),i=N("h1"),u=Z(f),_=F(),n=N("p"),p=Z(o),c=F(),a=N("form"),q(m.$$.fragment),M=F(),T=N("div"),k.c(),this.h()},l(r){B(e.$$.fragment,r),t=W(r),l=z(r,"DIV",{class:!0});var h=P(l);i=z(h,"H1",{class:!0});var d=P(i);u=$(d,f),d.forEach(b),_=W(h),n=z(h,"P",{class:!0});var y=P(n);p=$(y,o),y.forEach(b),c=W(h),a=z(h,"FORM",{class:!0,role:!0});var L=P(a);B(m.$$.fragment,L),L.forEach(b),M=W(h),T=z(h,"DIV",{class:!0,"aria-label":!0});var g=P(T);k.l(g),g.forEach(b),h.forEach(b),this.h()},h(){R(i,"class","my-4 text-3xl"),R(n,"class","mb-8"),R(a,"class","mb-5"),R(a,"role","search"),R(T,"class","h-screen w-full"),R(T,"aria-label",U("common.namespaces")),R(l,"class","w-full p-8 xl:w-1/2")},m(r,h){j(e,r,h),C(r,t,h),C(r,l,h),E(l,i),E(i,u),E(l,_),E(l,n),E(n,p),E(l,c),E(l,a),j(m,a,null),E(l,M),E(l,T),S[v].m(T,null),I=!0},p(r,[h]){const d={};h&8&&(d.url=r[3].url.href),e.$set(d);const y={};!w&&h&1&&(w=!0,y.value=r[0],He(()=>w=!1)),m.$set(y);let L=v;v=Q(r),v===L?S[v].p(r,h):(ne(),H(S[L],1,1,()=>{S[L]=null}),ae(),k=S[v],k?k.p(r,h):(k=S[v]=K[v](r),k.c()),V(k,1),k.m(T,null))},i(r){I||(V(e.$$.fragment,r),V(m.$$.fragment,r),V(k),I=!0)},o(r){H(e.$$.fragment,r),H(m.$$.fragment,r),H(k),I=!1},d(r){G(e,r),r&&b(t),r&&b(l),G(m),S[v].d()}}}function Ye(s,e,t){let l,i,f,u,_,n;te(s,oe,a=>t(8,u=a)),te(s,Ce,a=>t(5,_=a)),te(s,Pe,a=>t(3,n=a));let o="";function p(a){o=a,t(0,o)}const c=a=>a==null?void 0:a.onClick(a.namespace);return s.$$.update=()=>{s.$$.dirty&32&&t(4,l=_.map(a=>{var m;return(m=a==null?void 0:a.namespaceInfo)===null||m===void 0?void 0:m.name})),s.$$.dirty&16&&t(1,i=l.map(a=>({namespace:a,onClick:async m=>{const{authorized:w}=await Ae(m);w?(Se(oe,u=m,u),ze(Oe({namespace:m}))):Me.push({variant:"error",message:U("namespaces.unauthorized-namespace-error")})}}))),s.$$.dirty&3&&t(2,f=i.filter(({namespace:a})=>a.includes(o)))},[o,i,f,n,l,_,p,c]}class it extends fe{constructor(e){super(),me(this,e,Ye,Xe,he,{})}}export{it as component}; diff --git a/ui/assets/local/_app/immutable/nodes/42.fef270cf.js b/ui/assets/local/_app/immutable/nodes/42.5351716c.js similarity index 94% rename from ui/assets/local/_app/immutable/nodes/42.fef270cf.js rename to ui/assets/local/_app/immutable/nodes/42.5351716c.js index c3adc2396e..60693bede2 100644 --- a/ui/assets/local/_app/immutable/nodes/42.fef270cf.js +++ b/ui/assets/local/_app/immutable/nodes/42.5351716c.js @@ -1 +1 @@ -import{S as N,b as R,a as T,C as A,c as y,m as $,w as C,D as B,d as x,p as b,q as k,k as i,x as I,a8 as U,u as c,E as H,f as P,L as f,j as V,g as W,F as G,K as z,n as J}from"../chunks/index.4e2fcbc7.js";import{p as Q}from"../chunks/stores.14a97433.js";import{F as X,L as Y}from"../chunks/logo.ea390932.js";import{P as Z}from"../chunks/page-title.f9a44b80.js";import{B as tt}from"../chunks/button.a45b0e55.js";import{w as et}from"../chunks/route-for.80613b91.js";function at(o){let e;return{c(){e=C("Continue to SSO")},l(s){e=I(s,"Continue to SSO")},m(s,a){P(s,e,a)},d(s){s&&i(e)}}}function st(o){let e,s,a;return{c(){e=$("div"),s=$("p"),a=C(o[2]),this.h()},l(r){e=b(r,"DIV",{class:!0});var m=k(e);s=b(m,"P",{class:!0});var h=k(s);a=I(h,o[2]),h.forEach(i),m.forEach(i),this.h()},h(){c(s,"class","rounded-md border-2 border-orange-500 bg-orange-100 p-5 text-center"),c(e,"class","my-12 flex flex-col items-center justify-start gap-2")},m(r,m){P(r,e,m),f(e,s),f(s,a)},p:J,d(r){r&&i(e)}}}function rt(o){let e,s,a,r,m,h,d,p,l,v,j,D,E,F,q,w,g,O,L;e=new Z({props:{title:"Login",url:o[0].url.href}}),d=new X({}),g=new tt({props:{"data-testid":"login-button",leadingIcon:"lock",$$slots:{default:[at]},$$scope:{ctx:o}}}),g.$on("click",o[4]);let _=o[2]&&st(o);return{c(){A(e.$$.fragment),s=y(),a=$("header"),r=$("img"),h=y(),A(d.$$.fragment),p=y(),l=$("section"),v=$("h1"),j=C("Welcome back."),D=y(),E=$("p"),F=C("Let's get you signed in."),q=y(),w=$("div"),A(g.$$.fragment),O=y(),_&&_.c(),this.h()},l(t){B(e.$$.fragment,t),s=x(t),a=b(t,"HEADER",{class:!0});var n=k(a);r=b(n,"IMG",{src:!0,alt:!0,class:!0}),h=x(n),B(d.$$.fragment,n),n.forEach(i),p=x(t),l=b(t,"SECTION",{class:!0});var u=k(l);v=b(u,"H1",{class:!0,"data-testid":!0});var S=k(v);j=I(S,"Welcome back."),S.forEach(i),D=x(u),E=b(u,"P",{class:!0,"data-testid":!0});var K=k(E);F=I(K,"Let's get you signed in."),K.forEach(i),q=x(u),w=b(u,"DIV",{class:!0});var M=k(w);B(g.$$.fragment,M),M.forEach(i),O=x(u),_&&_.l(u),u.forEach(i),this.h()},h(){U(r.src,m=Y)||c(r,"src",m),c(r,"alt",""),c(r,"class","max-h-10"),c(a,"class","flex h-16 w-full items-center justify-between bg-primary px-10"),c(v,"class","text-8xl font-semibold"),c(v,"data-testid","login-title"),c(E,"class","my-7"),c(E,"data-testid","login-info"),c(w,"class","flex items-center justify-center"),c(l,"class","my-[20vh] text-center")},m(t,n){H(e,t,n),P(t,s,n),P(t,a,n),f(a,r),f(a,h),H(d,a,null),P(t,p,n),P(t,l,n),f(l,v),f(v,j),f(l,D),f(l,E),f(E,F),f(l,q),f(l,w),H(g,w,null),f(l,O),_&&_.m(l,null),L=!0},p(t,[n]){const u={};n&1&&(u.url=t[0].url.href),e.$set(u);const S={};n&32&&(S.$$scope={dirty:n,ctx:t}),g.$set(S),t[2]&&_.p(t,n)},i(t){L||(V(e.$$.fragment,t),V(d.$$.fragment,t),V(g.$$.fragment,t),L=!0)},o(t){W(e.$$.fragment,t),W(d.$$.fragment,t),W(g.$$.fragment,t),L=!1},d(t){G(e,t),t&&i(s),t&&i(a),G(d),t&&i(p),t&&i(l),G(g),_&&_.d()}}}function nt(o,e,s){let a;z(o,Q,p=>s(0,a=p));let{data:r}=e,{settings:m}=r;const h=a.url.searchParams.get("error"),d=()=>{window.location.assign(et({settings:m,searchParams:a.url.searchParams,originUrl:a.url.origin}))};return o.$$set=p=>{"data"in p&&s(3,r=p.data)},[a,m,h,r,d]}class mt extends N{constructor(e){super(),R(this,e,nt,rt,T,{data:3})}}export{mt as component}; +import{S as N,b as R,a as T,C as A,c as y,m as $,w as C,D as B,d as x,p as b,q as k,k as i,x as I,a8 as U,u as c,E as H,f as P,L as f,j as V,g as W,F as G,K as z,n as J}from"../chunks/index.4e2fcbc7.js";import{p as Q}from"../chunks/stores.0e7b7e35.js";import{F as X,L as Y}from"../chunks/logo.8c0e7632.js";import{P as Z}from"../chunks/page-title.f9a44b80.js";import{B as tt}from"../chunks/button.a45b0e55.js";import{w as et}from"../chunks/route-for.084c7a46.js";function at(o){let e;return{c(){e=C("Continue to SSO")},l(s){e=I(s,"Continue to SSO")},m(s,a){P(s,e,a)},d(s){s&&i(e)}}}function st(o){let e,s,a;return{c(){e=$("div"),s=$("p"),a=C(o[2]),this.h()},l(r){e=b(r,"DIV",{class:!0});var m=k(e);s=b(m,"P",{class:!0});var h=k(s);a=I(h,o[2]),h.forEach(i),m.forEach(i),this.h()},h(){c(s,"class","rounded-md border-2 border-orange-500 bg-orange-100 p-5 text-center"),c(e,"class","my-12 flex flex-col items-center justify-start gap-2")},m(r,m){P(r,e,m),f(e,s),f(s,a)},p:J,d(r){r&&i(e)}}}function rt(o){let e,s,a,r,m,h,d,p,l,v,j,D,E,F,q,w,g,O,L;e=new Z({props:{title:"Login",url:o[0].url.href}}),d=new X({}),g=new tt({props:{"data-testid":"login-button",leadingIcon:"lock",$$slots:{default:[at]},$$scope:{ctx:o}}}),g.$on("click",o[4]);let _=o[2]&&st(o);return{c(){A(e.$$.fragment),s=y(),a=$("header"),r=$("img"),h=y(),A(d.$$.fragment),p=y(),l=$("section"),v=$("h1"),j=C("Welcome back."),D=y(),E=$("p"),F=C("Let's get you signed in."),q=y(),w=$("div"),A(g.$$.fragment),O=y(),_&&_.c(),this.h()},l(t){B(e.$$.fragment,t),s=x(t),a=b(t,"HEADER",{class:!0});var n=k(a);r=b(n,"IMG",{src:!0,alt:!0,class:!0}),h=x(n),B(d.$$.fragment,n),n.forEach(i),p=x(t),l=b(t,"SECTION",{class:!0});var u=k(l);v=b(u,"H1",{class:!0,"data-testid":!0});var S=k(v);j=I(S,"Welcome back."),S.forEach(i),D=x(u),E=b(u,"P",{class:!0,"data-testid":!0});var K=k(E);F=I(K,"Let's get you signed in."),K.forEach(i),q=x(u),w=b(u,"DIV",{class:!0});var M=k(w);B(g.$$.fragment,M),M.forEach(i),O=x(u),_&&_.l(u),u.forEach(i),this.h()},h(){U(r.src,m=Y)||c(r,"src",m),c(r,"alt",""),c(r,"class","max-h-10"),c(a,"class","flex h-16 w-full items-center justify-between bg-primary px-10"),c(v,"class","text-8xl font-semibold"),c(v,"data-testid","login-title"),c(E,"class","my-7"),c(E,"data-testid","login-info"),c(w,"class","flex items-center justify-center"),c(l,"class","my-[20vh] text-center")},m(t,n){H(e,t,n),P(t,s,n),P(t,a,n),f(a,r),f(a,h),H(d,a,null),P(t,p,n),P(t,l,n),f(l,v),f(v,j),f(l,D),f(l,E),f(E,F),f(l,q),f(l,w),H(g,w,null),f(l,O),_&&_.m(l,null),L=!0},p(t,[n]){const u={};n&1&&(u.url=t[0].url.href),e.$set(u);const S={};n&32&&(S.$$scope={dirty:n,ctx:t}),g.$set(S),t[2]&&_.p(t,n)},i(t){L||(V(e.$$.fragment,t),V(d.$$.fragment,t),V(g.$$.fragment,t),L=!0)},o(t){W(e.$$.fragment,t),W(d.$$.fragment,t),W(g.$$.fragment,t),L=!1},d(t){G(e,t),t&&i(s),t&&i(a),G(d),t&&i(p),t&&i(l),G(g),_&&_.d()}}}function nt(o,e,s){let a;z(o,Q,p=>s(0,a=p));let{data:r}=e,{settings:m}=r;const h=a.url.searchParams.get("error"),d=()=>{window.location.assign(et({settings:m,searchParams:a.url.searchParams,originUrl:a.url.origin}))};return o.$$set=p=>{"data"in p&&s(3,r=p.data)},[a,m,h,r,d]}class mt extends N{constructor(e){super(),R(this,e,nt,rt,T,{data:3})}}export{mt as component}; diff --git a/ui/assets/local/_app/immutable/nodes/43.fef270cf.js b/ui/assets/local/_app/immutable/nodes/43.5351716c.js similarity index 94% rename from ui/assets/local/_app/immutable/nodes/43.fef270cf.js rename to ui/assets/local/_app/immutable/nodes/43.5351716c.js index c3adc2396e..60693bede2 100644 --- a/ui/assets/local/_app/immutable/nodes/43.fef270cf.js +++ b/ui/assets/local/_app/immutable/nodes/43.5351716c.js @@ -1 +1 @@ -import{S as N,b as R,a as T,C as A,c as y,m as $,w as C,D as B,d as x,p as b,q as k,k as i,x as I,a8 as U,u as c,E as H,f as P,L as f,j as V,g as W,F as G,K as z,n as J}from"../chunks/index.4e2fcbc7.js";import{p as Q}from"../chunks/stores.14a97433.js";import{F as X,L as Y}from"../chunks/logo.ea390932.js";import{P as Z}from"../chunks/page-title.f9a44b80.js";import{B as tt}from"../chunks/button.a45b0e55.js";import{w as et}from"../chunks/route-for.80613b91.js";function at(o){let e;return{c(){e=C("Continue to SSO")},l(s){e=I(s,"Continue to SSO")},m(s,a){P(s,e,a)},d(s){s&&i(e)}}}function st(o){let e,s,a;return{c(){e=$("div"),s=$("p"),a=C(o[2]),this.h()},l(r){e=b(r,"DIV",{class:!0});var m=k(e);s=b(m,"P",{class:!0});var h=k(s);a=I(h,o[2]),h.forEach(i),m.forEach(i),this.h()},h(){c(s,"class","rounded-md border-2 border-orange-500 bg-orange-100 p-5 text-center"),c(e,"class","my-12 flex flex-col items-center justify-start gap-2")},m(r,m){P(r,e,m),f(e,s),f(s,a)},p:J,d(r){r&&i(e)}}}function rt(o){let e,s,a,r,m,h,d,p,l,v,j,D,E,F,q,w,g,O,L;e=new Z({props:{title:"Login",url:o[0].url.href}}),d=new X({}),g=new tt({props:{"data-testid":"login-button",leadingIcon:"lock",$$slots:{default:[at]},$$scope:{ctx:o}}}),g.$on("click",o[4]);let _=o[2]&&st(o);return{c(){A(e.$$.fragment),s=y(),a=$("header"),r=$("img"),h=y(),A(d.$$.fragment),p=y(),l=$("section"),v=$("h1"),j=C("Welcome back."),D=y(),E=$("p"),F=C("Let's get you signed in."),q=y(),w=$("div"),A(g.$$.fragment),O=y(),_&&_.c(),this.h()},l(t){B(e.$$.fragment,t),s=x(t),a=b(t,"HEADER",{class:!0});var n=k(a);r=b(n,"IMG",{src:!0,alt:!0,class:!0}),h=x(n),B(d.$$.fragment,n),n.forEach(i),p=x(t),l=b(t,"SECTION",{class:!0});var u=k(l);v=b(u,"H1",{class:!0,"data-testid":!0});var S=k(v);j=I(S,"Welcome back."),S.forEach(i),D=x(u),E=b(u,"P",{class:!0,"data-testid":!0});var K=k(E);F=I(K,"Let's get you signed in."),K.forEach(i),q=x(u),w=b(u,"DIV",{class:!0});var M=k(w);B(g.$$.fragment,M),M.forEach(i),O=x(u),_&&_.l(u),u.forEach(i),this.h()},h(){U(r.src,m=Y)||c(r,"src",m),c(r,"alt",""),c(r,"class","max-h-10"),c(a,"class","flex h-16 w-full items-center justify-between bg-primary px-10"),c(v,"class","text-8xl font-semibold"),c(v,"data-testid","login-title"),c(E,"class","my-7"),c(E,"data-testid","login-info"),c(w,"class","flex items-center justify-center"),c(l,"class","my-[20vh] text-center")},m(t,n){H(e,t,n),P(t,s,n),P(t,a,n),f(a,r),f(a,h),H(d,a,null),P(t,p,n),P(t,l,n),f(l,v),f(v,j),f(l,D),f(l,E),f(E,F),f(l,q),f(l,w),H(g,w,null),f(l,O),_&&_.m(l,null),L=!0},p(t,[n]){const u={};n&1&&(u.url=t[0].url.href),e.$set(u);const S={};n&32&&(S.$$scope={dirty:n,ctx:t}),g.$set(S),t[2]&&_.p(t,n)},i(t){L||(V(e.$$.fragment,t),V(d.$$.fragment,t),V(g.$$.fragment,t),L=!0)},o(t){W(e.$$.fragment,t),W(d.$$.fragment,t),W(g.$$.fragment,t),L=!1},d(t){G(e,t),t&&i(s),t&&i(a),G(d),t&&i(p),t&&i(l),G(g),_&&_.d()}}}function nt(o,e,s){let a;z(o,Q,p=>s(0,a=p));let{data:r}=e,{settings:m}=r;const h=a.url.searchParams.get("error"),d=()=>{window.location.assign(et({settings:m,searchParams:a.url.searchParams,originUrl:a.url.origin}))};return o.$$set=p=>{"data"in p&&s(3,r=p.data)},[a,m,h,r,d]}class mt extends N{constructor(e){super(),R(this,e,nt,rt,T,{data:3})}}export{mt as component}; +import{S as N,b as R,a as T,C as A,c as y,m as $,w as C,D as B,d as x,p as b,q as k,k as i,x as I,a8 as U,u as c,E as H,f as P,L as f,j as V,g as W,F as G,K as z,n as J}from"../chunks/index.4e2fcbc7.js";import{p as Q}from"../chunks/stores.0e7b7e35.js";import{F as X,L as Y}from"../chunks/logo.8c0e7632.js";import{P as Z}from"../chunks/page-title.f9a44b80.js";import{B as tt}from"../chunks/button.a45b0e55.js";import{w as et}from"../chunks/route-for.084c7a46.js";function at(o){let e;return{c(){e=C("Continue to SSO")},l(s){e=I(s,"Continue to SSO")},m(s,a){P(s,e,a)},d(s){s&&i(e)}}}function st(o){let e,s,a;return{c(){e=$("div"),s=$("p"),a=C(o[2]),this.h()},l(r){e=b(r,"DIV",{class:!0});var m=k(e);s=b(m,"P",{class:!0});var h=k(s);a=I(h,o[2]),h.forEach(i),m.forEach(i),this.h()},h(){c(s,"class","rounded-md border-2 border-orange-500 bg-orange-100 p-5 text-center"),c(e,"class","my-12 flex flex-col items-center justify-start gap-2")},m(r,m){P(r,e,m),f(e,s),f(s,a)},p:J,d(r){r&&i(e)}}}function rt(o){let e,s,a,r,m,h,d,p,l,v,j,D,E,F,q,w,g,O,L;e=new Z({props:{title:"Login",url:o[0].url.href}}),d=new X({}),g=new tt({props:{"data-testid":"login-button",leadingIcon:"lock",$$slots:{default:[at]},$$scope:{ctx:o}}}),g.$on("click",o[4]);let _=o[2]&&st(o);return{c(){A(e.$$.fragment),s=y(),a=$("header"),r=$("img"),h=y(),A(d.$$.fragment),p=y(),l=$("section"),v=$("h1"),j=C("Welcome back."),D=y(),E=$("p"),F=C("Let's get you signed in."),q=y(),w=$("div"),A(g.$$.fragment),O=y(),_&&_.c(),this.h()},l(t){B(e.$$.fragment,t),s=x(t),a=b(t,"HEADER",{class:!0});var n=k(a);r=b(n,"IMG",{src:!0,alt:!0,class:!0}),h=x(n),B(d.$$.fragment,n),n.forEach(i),p=x(t),l=b(t,"SECTION",{class:!0});var u=k(l);v=b(u,"H1",{class:!0,"data-testid":!0});var S=k(v);j=I(S,"Welcome back."),S.forEach(i),D=x(u),E=b(u,"P",{class:!0,"data-testid":!0});var K=k(E);F=I(K,"Let's get you signed in."),K.forEach(i),q=x(u),w=b(u,"DIV",{class:!0});var M=k(w);B(g.$$.fragment,M),M.forEach(i),O=x(u),_&&_.l(u),u.forEach(i),this.h()},h(){U(r.src,m=Y)||c(r,"src",m),c(r,"alt",""),c(r,"class","max-h-10"),c(a,"class","flex h-16 w-full items-center justify-between bg-primary px-10"),c(v,"class","text-8xl font-semibold"),c(v,"data-testid","login-title"),c(E,"class","my-7"),c(E,"data-testid","login-info"),c(w,"class","flex items-center justify-center"),c(l,"class","my-[20vh] text-center")},m(t,n){H(e,t,n),P(t,s,n),P(t,a,n),f(a,r),f(a,h),H(d,a,null),P(t,p,n),P(t,l,n),f(l,v),f(v,j),f(l,D),f(l,E),f(E,F),f(l,q),f(l,w),H(g,w,null),f(l,O),_&&_.m(l,null),L=!0},p(t,[n]){const u={};n&1&&(u.url=t[0].url.href),e.$set(u);const S={};n&32&&(S.$$scope={dirty:n,ctx:t}),g.$set(S),t[2]&&_.p(t,n)},i(t){L||(V(e.$$.fragment,t),V(d.$$.fragment,t),V(g.$$.fragment,t),L=!0)},o(t){W(e.$$.fragment,t),W(d.$$.fragment,t),W(g.$$.fragment,t),L=!1},d(t){G(e,t),t&&i(s),t&&i(a),G(d),t&&i(p),t&&i(l),G(g),_&&_.d()}}}function nt(o,e,s){let a;z(o,Q,p=>s(0,a=p));let{data:r}=e,{settings:m}=r;const h=a.url.searchParams.get("error"),d=()=>{window.location.assign(et({settings:m,searchParams:a.url.searchParams,originUrl:a.url.origin}))};return o.$$set=p=>{"data"in p&&s(3,r=p.data)},[a,m,h,r,d]}class mt extends N{constructor(e){super(),R(this,e,nt,rt,T,{data:3})}}export{mt as component}; diff --git a/ui/assets/local/_app/immutable/nodes/5.0963412c.js b/ui/assets/local/_app/immutable/nodes/5.0aeeb5ec.js similarity index 81% rename from ui/assets/local/_app/immutable/nodes/5.0963412c.js rename to ui/assets/local/_app/immutable/nodes/5.0aeeb5ec.js index 4e673b83c6..0573cc9956 100644 --- a/ui/assets/local/_app/immutable/nodes/5.0963412c.js +++ b/ui/assets/local/_app/immutable/nodes/5.0aeeb5ec.js @@ -1 +1 @@ -import{r as o,a}from"../chunks/route-for-api.60228029.js";import{a as c}from"../chunks/search-attributes.5d6df3ed.js";import{L as A}from"../chunks/layout.0300d560.js";const u=async(e,s=fetch)=>{try{const t=o("search-attributes",{namespace:e}),r=await a(t,{request:s});return{customAttributes:r.customAttributes,systemAttributes:r.systemAttributes}}catch(t){return console.error("Error fetching search attributes for namespace",e,t),{customAttributes:{},systemAttributes:{}}}},i=async({params:e,parent:s,fetch:t})=>{await s();const r=await u(e.namespace,t);c.set(r)},b=Object.freeze(Object.defineProperty({__proto__:null,load:i},Symbol.toStringTag,{value:"Module"}));export{A as component,b as universal}; +import{r as o,a}from"../chunks/route-for-api.d45de563.js";import{a as c}from"../chunks/search-attributes.5443a149.js";import{L as A}from"../chunks/layout.0300d560.js";const u=async(e,s=fetch)=>{try{const t=o("search-attributes",{namespace:e}),r=await a(t,{request:s});return{customAttributes:r.customAttributes,systemAttributes:r.systemAttributes}}catch(t){return console.error("Error fetching search attributes for namespace",e,t),{customAttributes:{},systemAttributes:{}}}},i=async({params:e,parent:s,fetch:t})=>{await s();const r=await u(e.namespace,t);c.set(r)},b=Object.freeze(Object.defineProperty({__proto__:null,load:i},Symbol.toStringTag,{value:"Module"}));export{A as component,b as universal}; diff --git a/ui/assets/local/_app/immutable/nodes/8.a57da379.js b/ui/assets/local/_app/immutable/nodes/8.a57da379.js deleted file mode 100644 index efda7edb90..0000000000 --- a/ui/assets/local/_app/immutable/nodes/8.a57da379.js +++ /dev/null @@ -1 +0,0 @@ -import{S as be,b as ve,a as Ie,C as D,D as S,E as P,j as d,g as h,F as W,K,i as mt,A as se,a0 as fe,m as Q,c as j,p as J,q as Y,d as O,k as w,u as X,f as y,L as F,a1 as ie,e as $e,z as pe,h as de,a7 as pt,w as z,x as G,n as ue,s as to,a5 as le,y as Te,o as dt,a6 as Me,a3 as _t,a4 as gt,G as wt,H as ht,I as $t,J as kt}from"../chunks/index.4e2fcbc7.js";import{p as qe}from"../chunks/stores.14a97433.js";import{L as oo}from"../chunks/loading.95801385.js";import{f as bt}from"../chunks/index.6509bfd4.js";import{T as no}from"../chunks/toggle-switch.3a41e457.js";import{T as Fe}from"../chunks/tooltip.6cb33d85.js";import{t as $}from"../chunks/translate.d23a91ae.js";import{a as Se,e as Qe}from"../chunks/event-view.56fa9b74.js";import{w as vt}from"../chunks/singletons.fb5f332e.js";import{C as ro,w as lo,a as so,f as Je}from"../chunks/workflow-terminate-enabled.cbb14ee6.js";import{I as Ne}from"../chunks/input.0bde2076.js";import{R as ao,a as fo}from"../chunks/radio-input.df4cce6e.js";import{R as ke,A as Ye}from"../chunks/workflow-actions.6f88149c.js";import{r as It,e as Pe,t as ze,i as io}from"../chunks/events.631efcca.js";import{B as uo}from"../chunks/button.a45b0e55.js";import{C as co}from"../chunks/code-block.d389dfc4.js";import{B as Be}from"../chunks/badge.96e01a15.js";import{I as mo}from"../chunks/icon.e8aa24c8.js";import{d as po}from"../chunks/menu.69cccace.js";import{M as _o}from"../chunks/menu-divider.ada09983.js";import{M as Re}from"../chunks/modal.05d30376.js";import{S as go}from"../chunks/split-button.8c08583d.js";import{w as wo,t as ho,c as $o,s as ko,r as bo,f as vo}from"../chunks/workflow-service.4d66b505.js";import{a as Tt}from"../chunks/auth-user.9757f5e9.js";import{c as Io}from"../chunks/core-user.db246b6d.js";import{p as Et,i as To,c as Rt}from"../chunks/data-encoder-config.23d100a5.js";import{p as Eo}from"../chunks/persist-store.2e269d08.js";import{s as Ro}from"../chunks/versions.78cca4ad.js";import{t as Ve}from"../chunks/toaster.8a4adbc8.js";import{r as ge,w as We,i as Co}from"../chunks/workflow-run.86769de7.js";import{W as Ao}from"../chunks/workflow-status.781aff44.js";import{A as Ct}from"../chunks/alert.9612e524.js";import{C as Ge,g as yo,a as Do,b as So}from"../chunks/pollers-service.541d2792.js";import{C as Po}from"../chunks/index.2169175d.js";import{L as He}from"../chunks/link.6803bb00.js";import{T as Wo,a as Vo,b as Ee}from"../chunks/tab.33b6de7b.js";import{w as Mo}from"../chunks/workflows.73556738.js";import{h as qo}from"../chunks/has.183130b0.js";import{a as Ke,g as he,h as Ce,i as Ae,j as ye,k as De}from"../chunks/route-for.80613b91.js";import{g as Fo,a as No,b as Bo,p as Ho,c as Uo}from"../chunks/task-queue-compatibility.cf5696f8.js";import{c as Lo,d as jo}from"../chunks/decode-payload.a8d5059b.js";import{g as Oo,a as Qo}from"../chunks/get-codec.418ac4fc.js";import{f as Jo}from"../chunks/events-service.d20b1da6.js";function Yo(r){let t,e;return t=new no({props:{label:$("common.auto-refresh"),labelPosition:"left",id:"autorefresh",checked:r[1]}}),t.$on("change",function(){mt(r[0])&&r[0].apply(this,arguments)}),{c(){D(t.$$.fragment)},l(o){S(t.$$.fragment,o)},m(o,n){P(t,o,n),e=!0},p(o,n){r=o;const l={};n&2&&(l.checked=r[1]),t.$set(l)},i(o){e||(d(t.$$.fragment,o),e=!0)},o(o){h(t.$$.fragment,o),e=!1},d(o){W(t,o)}}}function zo(r){let t,e;return t=new Fe({props:{bottomLeft:!0,text:$("common.auto-refresh-tooltip",{interval:"15"}),$$slots:{default:[Yo]},$$scope:{ctx:r}}}),{c(){D(t.$$.fragment)},l(o){S(t.$$.fragment,o)},m(o,n){P(t,o,n),e=!0},p(o,[n]){const l={};n&11&&(l.$$scope={dirty:n,ctx:o}),t.$set(l)},i(o){e||(d(t.$$.fragment,o),e=!0)},o(o){h(t.$$.fragment,o),e=!1},d(o){W(t,o)}}}function Go(r,t,e){let o,n;K(r,Se,s=>e(2,n=s));let{onChange:l}=t;return r.$$set=s=>{"onChange"in s&&e(0,l=s.onChange)},r.$$.update=()=>{r.$$.dirty&4&&e(1,o=n==="on")},[l,o,n]}class Ko extends be{constructor(t){super(),ve(this,t,Go,zo,Ie,{onChange:0})}}function Xe(r,t,e){const o=r.slice();return o[6]=t[e],o}function Ze(r){let t,e;return t=new fo({props:{id:"reset-event-"+r[6].id,value:r[6].id,label:r[6].id+" - "+r[6].eventType}}),{c(){D(t.$$.fragment)},l(o){S(t.$$.fragment,o)},m(o,n){P(t,o,n),e=!0},p(o,n){const l={};n&8&&(l.id="reset-event-"+o[6].id),n&8&&(l.value=o[6].id),n&8&&(l.label=o[6].id+" - "+o[6].eventType),t.$set(l)},i(o){e||(d(t.$$.fragment,o),e=!0)},o(o){h(t.$$.fragment,o),e=!1},d(o){W(t,o)}}}function Xo(r){let t,e,o=r[3],n=[];for(let s=0;sh(n[s],1,1,()=>{n[s]=null});return{c(){for(let s=0;sfe(s,"value",u)),{c(){t=Q("div"),D(e.$$.fragment),o=j(),D(n.$$.fragment),l=j(),D(s.$$.fragment),this.h()},l(a){t=J(a,"DIV",{class:!0});var m=Y(t);S(e.$$.fragment,m),o=O(m),S(n.$$.fragment,m),l=O(m),S(s.$$.fragment,m),m.forEach(w),this.h()},h(){X(t,"class","flex w-full flex-col gap-4")},m(a,m){y(a,t,m),P(e,t,null),F(t,o),P(n,t,null),F(t,l),P(s,t,null),f=!0},p(a,[m]){const _={};m&4&&(_.group=a[2]),m&520&&(_.$$scope={dirty:m,ctx:a}),e.$set(_);const b={};m&1&&(b.checked=a[0]===ke.Signal),n.$set(b);const A={};!i&&m&2&&(i=!0,A.value=a[1],ie(()=>i=!1)),s.$set(A)},i(a){f||(d(e.$$.fragment,a),d(n.$$.fragment,a),d(s.$$.fragment,a),f=!0)},o(a){h(e.$$.fragment,a),h(n.$$.fragment,a),h(s.$$.fragment,a),f=!1},d(a){a&&w(t),W(e),W(n),W(s)}}}function xo(r,t,e){let o;K(r,It,u=>e(3,o=u));let{resetReapplyType:n=ke.Signal}=t,{reason:l=""}=t,{eventId:s}=t;const i=u=>{e(0,n=u.detail.checked?ke.Signal:ke.None)};function f(u){l=u,e(1,l)}return r.$$set=u=>{"resetReapplyType"in u&&e(0,n=u.resetReapplyType),"reason"in u&&e(1,l=u.reason),"eventId"in u&&e(2,s=u.eventId)},[n,l,s,o,i,f]}class en extends be{constructor(t){super(),ve(this,t,xo,Zo,Ie,{resetReapplyType:0,reason:1,eventId:2})}}const At=Eo("resetWorkflows",{}),tn=r=>!r.disableWriteActions&&!r.workflowResetDisabled,on=r=>!r.disableWriteActions&&!r.workflowSignalDisabled;function xe(r,t,e){const o=r.slice();return o[65]=t[e].onClick,o[66]=t[e].destructive,o[67]=t[e].label,o[68]=t[e].allowed,o[69]=t[e].testId,o[70]=t[e].tooltip,o}function nn(r){let t,e;return t=new Fe({props:{bottomRight:!0,width:200,text:r[2],hide:r[3],$$slots:{default:[sn]},$$scope:{ctx:r}}}),{c(){D(t.$$.fragment)},l(o){S(t.$$.fragment,o)},m(o,n){P(t,o,n),e=!0},p(o,n){const l={};n[0]&4&&(l.text=o[2]),n[0]&8&&(l.hide=o[3]),n[0]&520|n[2]&2048&&(l.$$scope={dirty:n,ctx:o}),t.$set(l)},i(o){e||(d(t.$$.fragment,o),e=!0)},o(o){h(t.$$.fragment,o),e=!1},d(o){W(t,o)}}}function rn(r){let t,e;return t=new go({props:{id:"workflow-actions",position:"right",disabled:r[18],primaryActionDisabled:!r[19]||r[0],label:$("workflows.request-cancellation"),menuLabel:$("workflows.workflow-actions"),$$slots:{default:[un]},$$scope:{ctx:r}}}),t.$on("click",r[41]),{c(){D(t.$$.fragment)},l(o){S(t.$$.fragment,o)},m(o,n){P(t,o,n),e=!0},p(o,n){const l={};n[0]&262144&&(l.disabled=o[18]),n[0]&524289&&(l.primaryActionDisabled=!o[19]||o[0]),n[0]&131072|n[2]&2048&&(l.$$scope={dirty:n,ctx:o}),t.$set(l)},i(o){e||(d(t.$$.fragment,o),e=!0)},o(o){h(t.$$.fragment,o),e=!1},d(o){W(t,o)}}}function ln(r){let t=$("workflows.reset")+"",e;return{c(){e=z(t)},l(o){e=G(o,t)},m(o,n){y(o,e,n)},p:ue,d(o){o&&w(e)}}}function sn(r){let t,e;return t=new uo({props:{"aria-label":$("workflows.reset"),disabled:!r[3],variant:"primary",$$slots:{default:[ln]},$$scope:{ctx:r}}}),t.$on("click",r[42]),{c(){D(t.$$.fragment)},l(o){S(t.$$.fragment,o)},m(o,n){P(t,o,n),e=!0},p(o,n){const l={};n[0]&8&&(l.disabled=!o[3]),n[2]&2048&&(l.$$scope={dirty:n,ctx:o}),t.$set(l)},i(o){e||(d(t.$$.fragment,o),e=!0)},o(o){h(t.$$.fragment,o),e=!1},d(o){W(t,o)}}}function et(r){let t,e;return t=new _o({}),{c(){D(t.$$.fragment)},l(o){S(t.$$.fragment,o)},m(o,n){P(t,o,n),e=!0},i(o){e||(d(t.$$.fragment,o),e=!0)},o(o){h(t.$$.fragment,o),e=!1},d(o){W(t,o)}}}function an(r){let t=r[67]+"",e;return{c(){e=z(t)},l(o){e=G(o,t)},m(o,n){y(o,e,n)},p(o,n){n[0]&131072&&t!==(t=o[67]+"")&&Te(e,t)},d(o){o&&w(e)}}}function fn(r){let t,e,o;return t=new po({props:{destructive:r[66],disabled:!r[68],"data-testid":r[69],$$slots:{default:[an]},$$scope:{ctx:r}}}),t.$on("click",function(){mt(r[65])&&r[65].apply(this,arguments)}),{c(){D(t.$$.fragment),e=j()},l(n){S(t.$$.fragment,n),e=O(n)},m(n,l){P(t,n,l),y(n,e,l),o=!0},p(n,l){r=n;const s={};l[0]&131072&&(s.destructive=r[66]),l[0]&131072&&(s.disabled=!r[68]),l[0]&131072&&(s["data-testid"]=r[69]),l[0]&131072|l[2]&2048&&(s.$$scope={dirty:l,ctx:r}),t.$set(s)},i(n){o||(d(t.$$.fragment,n),o=!0)},o(n){h(t.$$.fragment,n),o=!1},d(n){W(t,n),n&&w(e)}}}function tt(r){let t,e,o,n=r[66]&&et();return e=new Fe({props:{text:r[70],hide:!r[70],width:200,left:!0,$$slots:{default:[fn]},$$scope:{ctx:r}}}),{c(){n&&n.c(),t=j(),D(e.$$.fragment)},l(l){n&&n.l(l),t=O(l),S(e.$$.fragment,l)},m(l,s){n&&n.m(l,s),y(l,t,s),P(e,l,s),o=!0},p(l,s){l[66]?n?s[0]&131072&&d(n,1):(n=et(),n.c(),d(n,1),n.m(t.parentNode,t)):n&&(pe(),h(n,1,1,()=>{n=null}),de());const i={};s[0]&131072&&(i.text=l[70]),s[0]&131072&&(i.hide=!l[70]),s[0]&131072|s[2]&2048&&(i.$$scope={dirty:s,ctx:l}),e.$set(i)},i(l){o||(d(n),d(e.$$.fragment,l),o=!0)},o(l){h(n),h(e.$$.fragment,l),o=!1},d(l){n&&n.d(l),l&&w(t),W(e,l)}}}function un(r){let t,e,o=r[17],n=[];for(let s=0;sh(n[s],1,1,()=>{n[s]=null});return{c(){for(let s=0;sfe(t,"eventId",s)),se.push(()=>fe(t,"resetReapplyType",i)),se.push(()=>fe(t,"reason",f)),{c(){D(t.$$.fragment)},l(p){S(t.$$.fragment,p)},m(p,a){P(t,p,a),l=!0},p(p,a){const m={};!e&&a[0]&8192&&(e=!0,m.eventId=p[13],ie(()=>e=!1)),!o&&a[0]&4096&&(o=!0,m.resetReapplyType=p[12],ie(()=>o=!1)),!n&&a[0]&16384&&(n=!0,m.reason=p[14],ie(()=>n=!1)),t.$set(m)},i(p){l||(d(t.$$.fragment,p),l=!0)},o(p){h(t.$$.fragment,p),l=!1},d(p){W(t,p)}}}function pn(r){let t,e=$("workflows.cancel-modal-title")+"",o;return{c(){t=Q("h3"),o=z(e),this.h()},l(n){t=J(n,"H3",{slot:!0});var l=Y(t);o=G(l,e),l.forEach(w),this.h()},h(){X(t,"slot","title")},m(n,l){y(n,t,l),F(t,o)},p:ue,d(n){n&&w(t)}}}function dn(r){let t,e=$("workflows.cancel-modal-confirmation")+"",o;return{c(){t=Q("p"),o=z(e)},l(n){t=J(n,"P",{});var l=Y(t);o=G(l,e),l.forEach(w)},m(n,l){y(n,t,l),F(t,o)},p:ue,d(n){n&&w(t)}}}function _n(r){let t,e=$("workflows.terminate-modal-title")+"",o;return{c(){t=Q("h3"),o=z(e),this.h()},l(n){t=J(n,"H3",{slot:!0});var l=Y(t);o=G(l,e),l.forEach(w),this.h()},h(){X(t,"slot","title")},m(n,l){y(n,t,l),F(t,o)},p:ue,d(n){n&&w(t)}}}function gn(r){let t,e,o=$("workflows.terminate-modal-confirmation")+"",n,l,s,i,f;function u(a){r[50](a)}let p={id:"workflow-termination-reason",class:"mt-4",placeholder:$("common.reason-placeholder"),label:$("common.reason-placeholder"),labelHidden:!0};return r[4]!==void 0&&(p.value=r[4]),s=new Ne({props:p}),se.push(()=>fe(s,"value",u)),{c(){t=Q("div"),e=Q("p"),n=z(o),l=j(),D(s.$$.fragment),this.h()},l(a){t=J(a,"DIV",{slot:!0});var m=Y(t);e=J(m,"P",{});var _=Y(e);n=G(_,o),_.forEach(w),l=O(m),S(s.$$.fragment,m),m.forEach(w),this.h()},h(){X(t,"slot","content")},m(a,m){y(a,t,m),F(t,e),F(e,n),F(t,l),P(s,t,null),f=!0},p(a,m){const _={};!i&&m[0]&16&&(i=!0,_.value=a[4],ie(()=>i=!1)),s.$set(_)},i(a){f||(d(s.$$.fragment,a),f=!0)},o(a){h(s.$$.fragment,a),f=!1},d(a){a&&w(t),W(s)}}}function wn(r){let t,e=$("workflows.signal-modal-title")+"",o;return{c(){t=Q("h3"),o=z(e),this.h()},l(n){t=J(n,"H3",{slot:!0});var l=Y(t);o=G(l,e),l.forEach(w),this.h()},h(){X(t,"slot","title")},m(n,l){y(n,t,l),F(t,o)},p:ue,d(n){n&&w(t)}}}function hn(r){let t,e,o,n,l,s,i=$("workflows.signal-payload-input-label")+"",f,u,p,a=$("workflows.signal-payload-input-label-hint")+"",m,_,b,A;function I(T){r[53](T)}let L={id:"signal-name",label:$("workflows.signal-name-label"),required:!0};r[6]!==void 0&&(L.value=r[6]),e=new Ne({props:L}),se.push(()=>fe(e,"value",I));let R={class:"max-h-80 overflow-y-scroll overscroll-contain",content:r[5],editable:!0,copyable:!1};return b=new co({props:R}),r[54](b),b.$on("change",r[26]),{c(){t=Q("div"),D(e.$$.fragment),n=j(),l=Q("div"),s=Q("span"),f=z(i),u=j(),p=Q("span"),m=z(a),_=j(),D(b.$$.fragment),this.h()},l(T){t=J(T,"DIV",{slot:!0,class:!0});var M=Y(t);S(e.$$.fragment,M),n=O(M),l=J(M,"DIV",{});var V=Y(l);s=J(V,"SPAN",{class:!0});var B=Y(s);f=G(B,i),B.forEach(w),u=O(V),p=J(V,"SPAN",{class:!0});var v=Y(p);m=G(v,a),v.forEach(w),_=O(V),S(b.$$.fragment,V),V.forEach(w),M.forEach(w),this.h()},h(){X(s,"class","font-secondary text-sm font-medium"),X(p,"class","font-secondary text-xs font-light italic"),X(t,"slot","content"),X(t,"class","flex flex-col gap-4")},m(T,M){y(T,t,M),P(e,t,null),F(t,n),F(t,l),F(l,s),F(s,f),F(l,u),F(l,p),F(p,m),F(l,_),P(b,l,null),A=!0},p(T,M){const V={};!o&&M[0]&64&&(o=!0,V.value=T[6],ie(()=>o=!1)),e.$set(V);const B={};M[0]&32&&(B.content=T[5]),b.$set(B)},i(T){A||(d(e.$$.fragment,T),d(b.$$.fragment,T),A=!0)},o(T){h(e.$$.fragment,T),h(b.$$.fragment,T),A=!1},d(T){T&&w(t),W(e),r[54](null),W(b)}}}function $n(r){let t,e,o,n,l,s,i,f,u,p,a,m,_,b,A,I,L,R,T;const M=[rn,nn],V=[];function B(c,C){return c[1]?0:1}t=B(r),e=V[t]=M[t](r);function v(c){r[46](c)}function q(c){r[47](c)}let N={id:"reset-confirmation-modal","data-testid":"reset-confirmation-modal",confirmText:$("common.confirm"),cancelText:$("common.cancel"),confirmDisabled:!r[20],$$slots:{content:[mn],title:[cn]},$$scope:{ctx:r}};r[11]!==void 0&&(N.error=r[11]),r[9]!==void 0&&(N.open=r[9]),n=new Re({props:N}),se.push(()=>fe(n,"error",v)),se.push(()=>fe(n,"open",q)),n.$on("confirmModal",r[28]),n.$on("cancelModal",r[23]);function H(c){r[48](c)}function U(c){r[49](c)}let te={id:"cancel-confirmation-modal","data-testid":"cancel-confirmation-modal",confirmText:$("common.confirm"),cancelText:$("common.cancel"),loading:r[15],confirmType:"destructive",$$slots:{content:[dn],title:[pn]},$$scope:{ctx:r}};r[11]!==void 0&&(te.error=r[11]),r[7]!==void 0&&(te.open=r[7]),f=new Re({props:te}),se.push(()=>fe(f,"error",H)),se.push(()=>fe(f,"open",U)),f.$on("confirmModal",r[25]);function Z(c){r[51](c)}function E(c){r[52](c)}let k={id:"terminate-confirmation-modal","data-testid":"terminate-confirmation-modal",confirmText:$("workflows.terminate"),cancelText:$("common.cancel"),confirmType:"destructive",$$slots:{content:[gn],title:[_n]},$$scope:{ctx:r}};r[11]!==void 0&&(k.error=r[11]),r[8]!==void 0&&(k.open=r[8]),m=new Re({props:k}),se.push(()=>fe(m,"error",Z)),se.push(()=>fe(m,"open",E)),m.$on("cancelModal",r[21]),m.$on("confirmModal",r[24]);function ne(c){r[55](c)}function re(c){r[56](c)}let oe={id:"signal-confirmation-modal","data-testid":"signal-confirmation-modal",confirmText:$("common.submit"),cancelText:$("common.cancel"),confirmDisabled:!r[6],$$slots:{content:[hn],title:[wn]},$$scope:{ctx:r}};return r[11]!==void 0&&(oe.error=r[11]),r[10]!==void 0&&(oe.open=r[10]),I=new Re({props:oe}),se.push(()=>fe(I,"error",ne)),se.push(()=>fe(I,"open",re)),I.$on("cancelModal",r[22]),I.$on("confirmModal",r[27]),{c(){e.c(),o=j(),D(n.$$.fragment),i=j(),D(f.$$.fragment),a=j(),D(m.$$.fragment),A=j(),D(I.$$.fragment)},l(c){e.l(c),o=O(c),S(n.$$.fragment,c),i=O(c),S(f.$$.fragment,c),a=O(c),S(m.$$.fragment,c),A=O(c),S(I.$$.fragment,c)},m(c,C){V[t].m(c,C),y(c,o,C),P(n,c,C),y(c,i,C),P(f,c,C),y(c,a,C),P(m,c,C),y(c,A,C),P(I,c,C),T=!0},p(c,C){let ee=t;t=B(c),t===ee?V[t].p(c,C):(pe(),h(V[ee],1,1,()=>{V[ee]=null}),de(),e=V[t],e?e.p(c,C):(e=V[t]=M[t](c),e.c()),d(e,1),e.m(o.parentNode,o));const ae={};C[0]&1048576&&(ae.confirmDisabled=!c[20]),C[0]&28672|C[2]&2048&&(ae.$$scope={dirty:C,ctx:c}),!l&&C[0]&2048&&(l=!0,ae.error=c[11],ie(()=>l=!1)),!s&&C[0]&512&&(s=!0,ae.open=c[9],ie(()=>s=!1)),n.$set(ae);const we={};C[0]&32768&&(we.loading=c[15]),C[2]&2048&&(we.$$scope={dirty:C,ctx:c}),!u&&C[0]&2048&&(u=!0,we.error=c[11],ie(()=>u=!1)),!p&&C[0]&128&&(p=!0,we.open=c[7],ie(()=>p=!1)),f.$set(we);const ce={};C[0]&16|C[2]&2048&&(ce.$$scope={dirty:C,ctx:c}),!_&&C[0]&2048&&(_=!0,ce.error=c[11],ie(()=>_=!1)),!b&&C[0]&256&&(b=!0,ce.open=c[8],ie(()=>b=!1)),m.$set(ce);const me={};C[0]&64&&(me.confirmDisabled=!c[6]),C[0]&65632|C[2]&2048&&(me.$$scope={dirty:C,ctx:c}),!L&&C[0]&2048&&(L=!0,me.error=c[11],ie(()=>L=!1)),!R&&C[0]&1024&&(R=!0,me.open=c[10],ie(()=>R=!1)),I.$set(me)},i(c){T||(d(e),d(n.$$.fragment,c),d(f.$$.fragment,c),d(m.$$.fragment,c),d(I.$$.fragment,c),T=!0)},o(c){h(e),h(n.$$.fragment,c),h(f.$$.fragment,c),h(m.$$.fragment,c),h(I.$$.fragment,c),T=!1},d(c){V[t].d(c),c&&w(o),W(n,c),c&&w(i),W(f,c),c&&w(a),W(m,c),c&&w(A),W(I,c)}}}function kn(r,t,e){let o,n,l,s,i,f,u,p,a,m,_,b=ue,A=()=>(b(),b=to(ee,g=>e(20,_=g)),ee),I,L,R,T;K(r,It,g=>e(39,p=g)),K(r,ge,g=>e(57,a=g)),K(r,Tt,g=>e(58,m=g)),K(r,Et,g=>e(59,I=g)),K(r,To,g=>e(60,L=g)),K(r,Rt,g=>e(61,R=g)),K(r,qe,g=>e(40,T=g)),r.$$.on_destroy.push(()=>b());var M,V,B;let{workflow:v}=t,{namespace:q}=t,{cancelInProgress:N}=t,{isRunning:H}=t;const U=()=>R?'{"metadata": {"encoding": ""}, "data": ""}':"";let te="",Z=U(),E="",k=!1,ne=!1,re=!1,oe=!1,c="",C=ke.Signal,ee=vt();A();let ae,we=!1,ce,me;const Dt=()=>{e(4,te="")},Ue=()=>{e(5,Z=U()),e(6,E=""),me==null||me.resetView(Z)},Le=()=>{e(12,C=ke.Signal),le(ee,_=void 0,_),e(14,ae=void 0)},St=async()=>{e(8,ne=!1),le(ge,a=Date.now(),a),Ve.push({id:"workflow-termination-success-toast",message:$("workflows.terminate-success")})},Pt=g=>{var x;e(4,te=""),e(11,c=(x=g==null?void 0:g.message)!==null&&x!==void 0?x:$("common.unknown-error"))},Wt=()=>{e(11,c=""),v.canBeTerminated&&ho({workflow:v,namespace:q,reason:Je({action:Ye.Terminate,reason:te,email:m.email}),identity:m.email}).then(St).catch(Pt)},Vt=async()=>{var g;e(15,we=!0),e(11,c="");try{await $o({namespace:q,workflowId:v.id,runId:v.runId}),e(7,k=!1),e(15,we=!1),le(ge,a=Date.now(),a),Ve.push({id:"workflow-cancelation-success-toast",message:$("workflows.cancel-success")})}catch(x){e(11,c=(g=x==null?void 0:x.message)!==null&&g!==void 0?g:$("common.unknown-error"))}},Mt=g=>{e(5,Z=g.detail)},qt=async()=>{var g;e(11,c="");try{await ko({namespace:q,workflowId:v.id,runId:v.runId,signalInput:Z,signalName:E,settings:{...T.data.settings,codec:{endpoint:R,includeCredentials:L,passAccessToken:I}},accessToken:m.accessToken}),e(10,oe=!1),le(ge,a=Date.now(),a),Ve.push({message:$("workflows.signal-success"),id:"workflow-signal-success-toast"}),Ue()}catch(x){e(11,c=(g=x==null?void 0:x.message)!==null&&g!==void 0?g:$("common.unknown-error"))}},Ft=async()=>{var g;e(11,c="");try{const x=await bo({namespace:q,workflowId:v.id,runId:v.runId,eventId:_,reason:Je({action:Ye.Reset,reason:ae,email:m.email}),resetReapplyType:C});x&&x.runId&&At.update(eo=>({...eo,[v.runId]:x.runId})),e(9,re=!1),le(ge,a=Date.now(),a)}catch(x){e(11,c=(g=x==null?void 0:x.message)!==null&&g!==void 0?g:$("common.unknown-error"))}Le()};let je,Oe=Io();K(r,Oe,g=>e(38,u=g));const Nt=()=>e(7,k=!0),Bt=()=>e(9,re=!0);function Ht(g){ee=g,A(e(13,ee))}function Ut(g){C=g,e(12,C)}function Lt(g){ae=g,e(14,ae)}function jt(g){c=g,e(11,c)}function Ot(g){re=g,e(9,re),e(3,i),e(2,ce),e(36,n),e(35,l),e(37,s),e(30,v),e(34,B),e(39,p),e(32,M),e(33,V),e(40,T)}function Qt(g){c=g,e(11,c)}function Jt(g){k=g,e(7,k)}function Yt(g){te=g,e(4,te)}function zt(g){c=g,e(11,c)}function Gt(g){ne=g,e(8,ne),e(3,i),e(2,ce),e(36,n),e(35,l),e(37,s),e(30,v),e(34,B),e(39,p),e(32,M),e(33,V),e(40,T)}function Kt(g){E=g,e(6,E)}function Xt(g){se[g?"unshift":"push"](()=>{me=g,e(16,me)})}function Zt(g){c=g,e(11,c)}function xt(g){oe=g,e(10,oe),e(3,i),e(2,ce),e(36,n),e(35,l),e(37,s),e(30,v),e(34,B),e(39,p),e(32,M),e(33,V),e(40,T)}return r.$$set=g=>{"workflow"in g&&e(30,v=g.workflow),"namespace"in g&&e(31,q=g.namespace),"cancelInProgress"in g&&e(0,N=g.cancelInProgress),"isRunning"in g&&e(1,H=g.isRunning)},r.$$.update=()=>{r.$$.dirty[1]&512&&e(19,o=lo(T.data.settings)),r.$$.dirty[1]&512&&e(36,n=on(T.data.settings)),r.$$.dirty[1]&512&&e(35,l=so(T.data.settings)),r.$$.dirty[1]&512&&e(37,s=tn(T.data.settings)),r.$$.dirty[0]&1073741824|r.$$.dirty[1]&326&&(s?s&&(e(32,M=v==null?void 0:v.pendingChildren)===null||M===void 0?void 0:M.length)>0?e(2,ce=$("workflows.reset-disabled-pending-children")):s&&(e(33,V=v==null?void 0:v.pendingChildren)===null||V===void 0?void 0:V.length)===0&&p.length===0&&e(2,ce=$("workflows.reset-disabled-no-events")):e(2,ce=$("workflows.reset-disabled"))),r.$$.dirty[0]&1073741824|r.$$.dirty[1]&328&&e(3,i=s&&(e(34,B=v==null?void 0:v.pendingChildren)===null||B===void 0?void 0:B.length)===0&&p.length>0),r.$$.dirty[0]&12|r.$$.dirty[1]&48&&e(17,je=[{label:$("workflows.reset"),onClick:()=>e(9,re=!0),testId:"reset-button",allowed:i,tooltip:i?"":ce},{label:$("workflows.signal"),onClick:()=>e(10,oe=!0),testId:"signal-button",allowed:n,tooltip:n?"":$("workflows.signal-disabled")},{label:$("workflows.terminate"),onClick:()=>e(8,ne=!0),testId:"terminate-button",allowed:l,destructive:!0,tooltip:l?"":$("workflows.terminate-disabled")}]),r.$$.dirty[1]&129&&e(18,f=u.namespaceWriteDisabled(q)||!wo(Ro))},[N,H,ce,i,te,Z,E,k,ne,re,oe,c,C,ee,ae,we,me,je,f,o,_,Dt,Ue,Le,Wt,Vt,Mt,qt,Ft,Oe,v,q,M,V,B,l,n,s,u,p,T,Nt,Bt,Ht,Ut,Lt,jt,Ot,Qt,Jt,Yt,zt,Gt,Kt,Xt,Zt,xt]}class bn extends be{constructor(t){super(),ve(this,t,kn,$n,Ie,{workflow:30,namespace:31,cancelInProgress:0,isRunning:1},null,[-1,-1,-1])}}const vn=(r,t)=>{var n;const e=r==="Running",o=(n=t==null?void 0:t.end)==null?void 0:n.some(l=>(l==null?void 0:l.eventType)==="WorkflowExecutionCancelRequested");return e&&o},ot=r=>{const t=r==null?void 0:r.indexOf("?");return t>-1?r.slice(0,t):r},_e=(r,t,e=!1)=>{const o=ot(r).split("/"),n=ot(t).split("/");if(e&&o.length!==n.length)return!1;for(let l=0;l{o=gt(t,bt,{duration:200,delay:100}),o.start()}),n=!0)},o(l){h(e.$$.fragment,l),n=!1},d(l){l&&w(t),W(e)}}}function yn(r){let t=$("workflows.cancel-request-sent-description")+"",e;return{c(){e=z(t)},l(o){e=G(o,t)},m(o,n){y(o,e,n)},p:ue,d(o){o&&w(e)}}}function it(r){let t,e,o,n;return e=new Ct({props:{bold:!0,icon:"info",intent:"info","data-testid":"workflow-reset-alert",title:$("workflows.reset-success-alert-title"),$$slots:{default:[Sn]},$$scope:{ctx:r}}}),{c(){t=Q("div"),D(e.$$.fragment),this.h()},l(l){t=J(l,"DIV",{class:!0});var s=Y(t);S(e.$$.fragment,s),s.forEach(w),this.h()},h(){X(t,"class","mb-4")},m(l,s){y(l,t,s),P(e,t,null),n=!0},p(l,s){const i={};s&268435505&&(i.$$scope={dirty:s,ctx:l}),e.$set(i)},i(l){n||(d(e.$$.fragment,l),o||_t(()=>{o=gt(t,bt,{duration:200,delay:100}),o.start()}),n=!0)},o(l){h(e.$$.fragment,l),n=!1},d(l){l&&w(t),W(e)}}}function Dn(r){let t;return{c(){t=z("here")},l(e){t=G(e,"here")},m(e,o){y(e,t,o)},d(e){e&&w(t)}}}function Sn(r){var l,s,i,f;let t,e,o,n;return e=new He({props:{href:he({namespace:r[0],workflow:(s=(l=r[4])==null?void 0:l.workflow)==null?void 0:s.id,run:r[5][(f=(i=r[4])==null?void 0:i.workflow)==null?void 0:f.runId]}),$$slots:{default:[Dn]},$$scope:{ctx:r}}}),{c(){t=z("You can find the resulting Workflow Execution "),D(e.$$.fragment),o=z(".")},l(u){t=G(u,"You can find the resulting Workflow Execution "),S(e.$$.fragment,u),o=G(u,".")},m(u,p){y(u,t,p),P(e,u,p),y(u,o,p),n=!0},p(u,p){var m,_,b,A;const a={};p&49&&(a.href=he({namespace:u[0],workflow:(_=(m=u[4])==null?void 0:m.workflow)==null?void 0:_.id,run:u[5][(A=(b=u[4])==null?void 0:b.workflow)==null?void 0:A.runId]})),p&268435456&&(a.$$scope={dirty:p,ctx:u}),e.$set(a)},i(u){n||(d(e.$$.fragment,u),n=!0)},o(u){h(e.$$.fragment,u),n=!1},d(u){u&&w(t),W(e,u),u&&w(o)}}}function Pn(r){var o;let t=((o=r[2])==null?void 0:o.historyEvents)+"",e;return{c(){e=z(t)},l(n){e=G(n,t)},m(n,l){y(n,e,l)},p(n,l){var s;l&4&&t!==(t=((s=n[2])==null?void 0:s.historyEvents)+"")&&Te(e,t)},d(n){n&&w(e)}}}function Wn(r){let t,e;return t=new Be({props:{type:"blue",class:"px-2 py-0",$$slots:{default:[Pn]},$$scope:{ctx:r}}}),{c(){D(t.$$.fragment)},l(o){S(t.$$.fragment,o)},m(o,n){P(t,o,n),e=!0},p(o,n){const l={};n&268435460&&(l.$$scope={dirty:n,ctx:o}),t.$set(l)},i(o){e||(d(t.$$.fragment,o),e=!0)},o(o){h(t.$$.fragment,o),e=!1},d(o){W(t,o)}}}function Vn(r){var o,n;let t=((n=(o=r[15])==null?void 0:o.pollers)==null?void 0:n.length)+"",e;return{c(){e=z(t)},l(l){e=G(l,t)},m(l,s){y(l,e,s)},p(l,s){var i,f;s&32768&&t!==(t=((f=(i=l[15])==null?void 0:i.pollers)==null?void 0:f.length)+"")&&Te(e,t)},d(l){l&&w(e)}}}function Mn(r){let t,e;return t=new Be({props:{type:"blue",class:"px-2 py-0",$$slots:{default:[Vn]},$$scope:{ctx:r}}}),{c(){D(t.$$.fragment)},l(o){S(t.$$.fragment,o)},m(o,n){P(t,o,n),e=!0},p(o,n){const l={};n&268468224&&(l.$$scope={dirty:n,ctx:o}),t.$set(l)},i(o){e||(d(t.$$.fragment,o),e=!0)},o(o){h(t.$$.fragment,o),e=!1},d(o){W(t,o)}}}function ut(r){let t,e;return t=new mo({props:{name:"canceled",width:20,height:20}}),{c(){D(t.$$.fragment)},l(o){S(t.$$.fragment,o)},m(o,n){P(t,o,n),e=!0},i(o){e||(d(t.$$.fragment,o),e=!0)},o(o){h(t.$$.fragment,o),e=!1},d(o){W(t,o)}}}function qn(r){var s,i;let t,e=((i=(s=r[2])==null?void 0:s.pendingActivities)==null?void 0:i.length)+"",o,n,l=r[12]&&ut();return{c(){l&&l.c(),t=j(),o=z(e)},l(f){l&&l.l(f),t=O(f),o=G(f,e)},m(f,u){l&&l.m(f,u),y(f,t,u),y(f,o,u),n=!0},p(f,u){var p,a;f[12]?l?u&4096&&d(l,1):(l=ut(),l.c(),d(l,1),l.m(t.parentNode,t)):l&&(pe(),h(l,1,1,()=>{l=null}),de()),(!n||u&4)&&e!==(e=((a=(p=f[2])==null?void 0:p.pendingActivities)==null?void 0:a.length)+"")&&Te(o,e)},i(f){n||(d(l),n=!0)},o(f){h(l),n=!1},d(f){l&&l.d(f),f&&w(t),f&&w(o)}}}function Fn(r){let t,e;return t=new Be({props:{type:r[12]?"warning":"blue",class:"px-2 py-0",$$slots:{default:[qn]},$$scope:{ctx:r}}}),{c(){D(t.$$.fragment)},l(o){S(t.$$.fragment,o)},m(o,n){P(t,o,n),e=!0},p(o,n){const l={};n&4096&&(l.type=o[12]?"warning":"blue"),n&268439556&&(l.$$scope={dirty:n,ctx:o}),t.$set(l)},i(o){e||(d(t.$$.fragment,o),e=!0)},o(o){h(t.$$.fragment,o),e=!1},d(o){W(t,o)}}}function Nn(r){let t,e,o,n,l,s,i,f,u,p;return t=new Ee({props:{label:$("workflows.history-tab"),id:"history-tab",href:he({...r[13]}),active:_e(r[6].url.pathname,he({...r[13]})),$$slots:{default:[Wn]},$$scope:{ctx:r}}}),o=new Ee({props:{label:$("workflows.workers-tab"),id:"workers-tab",href:Ce(r[13]),active:_e(r[6].url.pathname,Ce(r[13])),$$slots:{default:[Mn]},$$scope:{ctx:r}}}),l=new Ee({props:{label:$("workflows.pending-activities-tab"),id:"pending-activities-tab",href:Ae(r[13]),active:_e(r[6].url.pathname,Ae(r[13])),$$slots:{default:[Fn]},$$scope:{ctx:r}}}),i=new Ee({props:{label:$("workflows.call-stack-tab"),id:"call-stack-tab",href:ye(r[13]),active:_e(r[6].url.pathname,ye(r[13]))}}),u=new Ee({props:{label:$("workflows.queries-tab"),id:"queries-tab",href:De(r[13]),active:_e(r[6].url.pathname,De(r[13]))}}),{c(){D(t.$$.fragment),e=j(),D(o.$$.fragment),n=j(),D(l.$$.fragment),s=j(),D(i.$$.fragment),f=j(),D(u.$$.fragment)},l(a){S(t.$$.fragment,a),e=O(a),S(o.$$.fragment,a),n=O(a),S(l.$$.fragment,a),s=O(a),S(i.$$.fragment,a),f=O(a),S(u.$$.fragment,a)},m(a,m){P(t,a,m),y(a,e,m),P(o,a,m),y(a,n,m),P(l,a,m),y(a,s,m),P(i,a,m),y(a,f,m),P(u,a,m),p=!0},p(a,m){const _={};m&8192&&(_.href=he({...a[13]})),m&8256&&(_.active=_e(a[6].url.pathname,he({...a[13]}))),m&268435460&&(_.$$scope={dirty:m,ctx:a}),t.$set(_);const b={};m&8192&&(b.href=Ce(a[13])),m&8256&&(b.active=_e(a[6].url.pathname,Ce(a[13]))),m&268468224&&(b.$$scope={dirty:m,ctx:a}),o.$set(b);const A={};m&8192&&(A.href=Ae(a[13])),m&8256&&(A.active=_e(a[6].url.pathname,Ae(a[13]))),m&268439556&&(A.$$scope={dirty:m,ctx:a}),l.$set(A);const I={};m&8192&&(I.href=ye(a[13])),m&8256&&(I.active=_e(a[6].url.pathname,ye(a[13]))),i.$set(I);const L={};m&8192&&(L.href=De(a[13])),m&8256&&(L.active=_e(a[6].url.pathname,De(a[13]))),u.$set(L)},i(a){p||(d(t.$$.fragment,a),d(o.$$.fragment,a),d(l.$$.fragment,a),d(i.$$.fragment,a),d(u.$$.fragment,a),p=!0)},o(a){h(t.$$.fragment,a),h(o.$$.fragment,a),h(l.$$.fragment,a),h(i.$$.fragment,a),h(u.$$.fragment,a),p=!1},d(a){W(t,a),a&&w(e),W(o,a),a&&w(n),W(l,a),a&&w(s),W(i,a),a&&w(f),W(u,a)}}}function Bn(r){let t,e;return t=new Vo({props:{class:"flex flex-wrap gap-6",label:"workflow detail",$$slots:{default:[Nn]},$$scope:{ctx:r}}}),{c(){D(t.$$.fragment)},l(o){S(t.$$.fragment,o)},m(o,n){P(t,o,n),e=!0},p(o,n){const l={};n&268480580&&(l.$$scope={dirty:n,ctx:o}),t.$set(l)},i(o){e||(d(t.$$.fragment,o),e=!0)},o(o){h(t.$$.fragment,o),e=!1},d(o){W(t,o)}}}function Hn(r){var te,Z;let t,e,o,n,l,s,i,f,u,p,a,m,_,b,A,I,L,R,T,M,V,B;o=new He({props:{href:`${Ke({namespace:r[0]})}?${r[16]}`,"data-testid":"back-to-workflows",icon:"chevron-left",$$slots:{default:[In]},$$scope:{ctx:r}}});let v=r[14]&&nt(r);u=new Po({props:{copyIconTitle:$("common.copy-icon-title"),copySuccessIconTitle:$("common.copy-success-icon-title"),content:(te=r[2])==null?void 0:te.id,clickAllToCopy:!0,"container-class":"w-full",class:"overflow-hidden text-ellipsis"}}),m=new Ao({props:{status:(Z=r[2])==null?void 0:Z.status}});let q=r[9]&&rt(r),N=r[3]&&at(r);L=new bn({props:{isRunning:r[3],cancelInProgress:r[11],workflow:r[2],namespace:r[0]}});let H=r[11]&&ft(r),U=r[10]&&it(r);return V=new Wo({props:{$$slots:{default:[Bn]},$$scope:{ctx:r}}}),{c(){t=Q("header"),e=Q("div"),D(o.$$.fragment),n=j(),v&&v.c(),l=j(),s=Q("div"),i=Q("div"),f=Q("h1"),D(u.$$.fragment),p=j(),a=Q("div"),D(m.$$.fragment),_=j(),q&&q.c(),b=j(),A=Q("div"),N&&N.c(),I=j(),D(L.$$.fragment),R=j(),H&&H.c(),T=j(),U&&U.c(),M=j(),D(V.$$.fragment),this.h()},l(E){t=J(E,"HEADER",{class:!0});var k=Y(t);e=J(k,"DIV",{class:!0});var ne=Y(e);S(o.$$.fragment,ne),n=O(ne),v&&v.l(ne),ne.forEach(w),l=O(k),s=J(k,"DIV",{class:!0});var re=Y(s);i=J(re,"DIV",{class:!0});var oe=Y(i);f=J(oe,"H1",{"data-testid":!0,class:!0});var c=Y(f);S(u.$$.fragment,c),c.forEach(w),p=O(oe),a=J(oe,"DIV",{class:!0});var C=Y(a);S(m.$$.fragment,C),_=O(C),q&&q.l(C),C.forEach(w),oe.forEach(w),b=O(re),A=J(re,"DIV",{class:!0});var ee=Y(A);N&&N.l(ee),I=O(ee),S(L.$$.fragment,ee),ee.forEach(w),re.forEach(w),R=O(k),H&&H.l(k),T=O(k),U&&U.l(k),M=O(k),S(V.$$.fragment,k),k.forEach(w),this.h()},h(){X(e,"class","mb-4 block"),X(f,"data-testid","workflow-id-heading"),X(f,"class","overflow-hidden text-2xl font-medium"),X(a,"class","flex flex-wrap items-center gap-4"),X(i,"class","flex w-full flex-col justify-start gap-4 overflow-hidden whitespace-nowrap lg:w-auto"),X(A,"class","flex flex-col items-center justify-center gap-4 whitespace-nowrap sm:flex-row lg:justify-end"),X(s,"class","mb-8 flex w-full flex-col items-center justify-between gap-4 lg:flex-row"),X(t,"class","mb-4 flex flex-col gap-1")},m(E,k){y(E,t,k),F(t,e),P(o,e,null),F(e,n),v&&v.m(e,null),F(t,l),F(t,s),F(s,i),F(i,f),P(u,f,null),F(i,p),F(i,a),P(m,a,null),F(a,_),q&&q.m(a,null),F(s,b),F(s,A),N&&N.m(A,null),F(A,I),P(L,A,null),F(t,R),H&&H.m(t,null),F(t,T),U&&U.m(t,null),F(t,M),P(V,t,null),B=!0},p(E,[k]){var ee,ae;const ne={};k&65537&&(ne.href=`${Ke({namespace:E[0]})}?${E[16]}`),k&268451840&&(ne.$$scope={dirty:k,ctx:E}),o.$set(ne),E[14]?v?(v.p(E,k),k&16384&&d(v,1)):(v=nt(E),v.c(),d(v,1),v.m(e,null)):v&&(pe(),h(v,1,1,()=>{v=null}),de());const re={};k&4&&(re.content=(ee=E[2])==null?void 0:ee.id),u.$set(re);const oe={};k&4&&(oe.status=(ae=E[2])==null?void 0:ae.status),m.$set(oe),E[9]?q?(q.p(E,k),k&512&&d(q,1)):(q=rt(E),q.c(),d(q,1),q.m(a,null)):q&&(pe(),h(q,1,1,()=>{q=null}),de()),E[3]?N?(N.p(E,k),k&8&&d(N,1)):(N=at(E),N.c(),d(N,1),N.m(A,I)):N&&(pe(),h(N,1,1,()=>{N=null}),de());const c={};k&8&&(c.isRunning=E[3]),k&2048&&(c.cancelInProgress=E[11]),k&4&&(c.workflow=E[2]),k&1&&(c.namespace=E[0]),L.$set(c),E[11]?H?(H.p(E,k),k&2048&&d(H,1)):(H=ft(E),H.c(),d(H,1),H.m(t,T)):H&&(pe(),h(H,1,1,()=>{H=null}),de()),E[10]?U?(U.p(E,k),k&1024&&d(U,1)):(U=it(E),U.c(),d(U,1),U.m(t,M)):U&&(pe(),h(U,1,1,()=>{U=null}),de());const C={};k&268480580&&(C.$$scope={dirty:k,ctx:E}),V.$set(C)},i(E){B||(d(o.$$.fragment,E),d(v),d(u.$$.fragment,E),d(m.$$.fragment,E),d(q),d(N),d(L.$$.fragment,E),d(H),d(U),d(V.$$.fragment,E),B=!0)},o(E){h(o.$$.fragment,E),h(v),h(u.$$.fragment,E),h(m.$$.fragment,E),h(q),h(N),h(L.$$.fragment,E),h(H),h(U),h(V.$$.fragment,E),B=!1},d(E){E&&w(t),W(o),v&&v.d(),W(u),W(m),q&&q.d(),N&&N.d(),W(L),H&&H.d(),U&&U.d(),W(V)}}}const ct=15e3;function Un(r,t,e){let o,n,l,s,i,f,u,p,a,m,_,b,A,I,L,R,T,M,V,B;K(r,We,k=>e(4,I=k)),K(r,At,k=>e(5,L=k)),K(r,Pe,k=>e(25,R=k)),K(r,ge,k=>e(26,T=k)),K(r,Se,k=>e(27,M=k)),K(r,qe,k=>e(6,V=k)),K(r,Mo,k=>e(16,B=k));var v,q,N,H,U;let{namespace:te}=t,Z;dt(()=>{f&&M==="on"&&(clearInterval(Z),e(23,Z=setInterval(()=>le(ge,T=Date.now(),T),ct)))});const E=()=>{M==="on"?(le(Se,M="off",M),clearInterval(Z)):(le(ge,T=Date.now(),T),le(Se,M="on",M),clearInterval(Z),e(23,Z=setInterval(()=>le(ge,T=Date.now(),T),ct)))};return Me(()=>{clearInterval(Z)}),r.$$set=k=>{"namespace"in k&&e(0,te=k.namespace)},r.$$.update=()=>{r.$$.dirty&16&&e(2,{workflow:o,workers:n,compatibility:l}=I,o,(e(15,n),e(4,I)),(e(24,l),e(4,I))),r.$$.dirty&64&&e(14,s=V.params.id),r.$$.dirty&5&&e(13,i={namespace:te,workflow:o==null?void 0:o.id,run:o==null?void 0:o.runId}),r.$$.dirty&262160&&e(3,f=e(18,v=I==null?void 0:I.workflow)===null||v===void 0?void 0:v.isRunning),r.$$.dirty&524304&&e(12,u=["Terminated","TimedOut","Canceled"].includes(e(19,q=I.workflow)===null||q===void 0?void 0:q.status)),r.$$.dirty&8388616&&(f||clearInterval(Z)),r.$$.dirty&34603024&&e(11,p=vn(e(20,N=I==null?void 0:I.workflow)===null||N===void 0?void 0:N.status,R)),r.$$.dirty&2097200&&e(10,a=qo(L,e(21,H=I==null?void 0:I.workflow)===null||H===void 0?void 0:H.runId)),r.$$.dirty&4194308&&e(9,m=e(22,U=o==null?void 0:o.mostRecentWorkerVersionStamp)===null||U===void 0?void 0:U.useVersioning),r.$$.dirty&4&&e(1,_=Fo(o)),r.$$.dirty&16777216&&e(8,b=No(l)),r.$$.dirty&16777218&&e(7,A=Bo(l,_))},[te,_,o,f,I,L,V,A,b,m,a,p,u,i,s,n,B,E,v,q,N,H,U,Z,l,R]}class Ln extends be{constructor(t){super(),ve(this,t,Un,Hn,Ie,{namespace:0})}}async function jn({activity:r,namespace:t,settings:e,accessToken:o},{convertWithCodec:n=Lo,decodeAttributes:l=jo,encoderEndpoint:s=Rt}={}){const i=Oo(e,s),f=Qo(e,Et),u={...e,codec:{...e==null?void 0:e.codec,endpoint:i,passAccessToken:f}},p=await n({attributes:r,namespace:t,settings:u,accessToken:o});return l(p)}const On=async({activity:r,namespace:t,settings:e,accessToken:o})=>await jn({activity:r,namespace:t,settings:e,accessToken:o}),Qn=async(r,t,e,o)=>{const n=(r==null?void 0:r.pendingActivities)??[],l=[];for(const s of n){const i=await On({activity:s,namespace:t,settings:e,accessToken:o});l.push(i)}return l};function Jn(r){let t,e,o;t=new Ln({props:{namespace:r[0].params.namespace}});const n=r[7].default,l=wt(n,r,r[6],null);return{c(){D(t.$$.fragment),e=j(),l&&l.c()},l(s){S(t.$$.fragment,s),e=O(s),l&&l.l(s)},m(s,i){P(t,s,i),y(s,e,i),l&&l.m(s,i),o=!0},p(s,i){const f={};i&1&&(f.namespace=s[0].params.namespace),t.$set(f),l&&l.p&&(!o||i&64)&&ht(l,n,s,s[6],o?kt(n,s[6],i,null):$t(s[6]),null)},i(s){o||(d(t.$$.fragment,s),d(l,s),o=!0)},o(s){h(t.$$.fragment,s),h(l,s),o=!1},d(s){W(t,s),s&&w(e),l&&l.d(s)}}}function Yn(r){let t,e;return t=new oo({}),{c(){D(t.$$.fragment)},l(o){S(t.$$.fragment,o)},m(o,n){P(t,o,n),e=!0},p:ue,i(o){e||(d(t.$$.fragment,o),e=!0)},o(o){h(t.$$.fragment,o),e=!1},d(o){W(t,o)}}}function zn(r){let t,e,o,n;const l=[Yn,Jn],s=[];function i(f,u){return f[1].workflow?1:0}return e=i(r),o=s[e]=l[e](r),{c(){t=Q("div"),o.c(),this.h()},l(f){t=J(f,"DIV",{class:!0});var u=Y(t);o.l(u),u.forEach(w),this.h()},h(){X(t,"class","flex h-full flex-col gap-6")},m(f,u){y(f,t,u),s[e].m(t,null),n=!0},p(f,[u]){let p=e;e=i(f),e===p?s[e].p(f,u):(pe(),h(s[p],1,1,()=>{s[p]=null}),de(),o=s[e],o?o.p(f,u):(o=s[e]=l[e](f),o.c()),d(o,1),o.m(t,null))},i(f){n||(d(o),n=!0)},o(f){h(o),n=!1},d(f){f&&w(t),s[e].d()}}}function Gn(r,t,e){let o,n,l,s,i,f,u,p,a,m;K(r,Pe,R=>e(8,s=R)),K(r,We,R=>e(1,i=R)),K(r,ze,R=>e(9,f=R)),K(r,Qe,R=>e(10,u=R)),K(r,qe,R=>e(0,p=R)),K(r,ge,R=>e(5,a=R)),K(r,Tt,R=>e(11,m=R));let{$$slots:_={},$$scope:b}=t;const A=async(R,T)=>{var M;if(!((M=R==null?void 0:R.mostRecentWorkerVersionStamp)===null||M===void 0)&&M.useVersioning)return await Do({queue:T,namespace:o})},I=async({namespace:R,workers:T,taskQueue:M})=>{if(!Ho(T.pollers))return;const B=Uo(T.pollers);return await So({namespace:R,buildIds:B,taskQueue:M})},L=async(R,T,M)=>{const{settings:V}=p.data,B=await vo({namespace:R,workflowId:T,runId:M}),{taskQueue:v}=B,q=await yo({queue:v,namespace:R}),N=await A(B,v),H=await I({namespace:R,workers:q,taskQueue:v});B.pendingActivities=await Qn(B,R,V,m==null?void 0:m.accessToken),le(We,i={workflow:B,workers:q,compatibility:N,reachability:H},i);const U=await Jo({namespace:R,workflowId:T,runId:M});le(Pe,s=U,s)};return dt(()=>{const R=p.url.searchParams.get("sort");R&&le(Qe,u=R,u)}),Me(()=>{le(ze,f=null,f),le(We,i=Co,i),le(Pe,s=io,s)}),r.$$set=R=>{"$$scope"in R&&e(6,b=R.$$scope)},r.$$.update=()=>{r.$$.dirty&1&&e(4,{namespace:o,workflow:n,run:l}=p.params,o,(e(3,n),e(0,p)),(e(2,l),e(0,p))),r.$$.dirty&60&&L(o,n,l)},[p,i,l,n,o,a,b,_]}class Kn extends be{constructor(t){super(),ve(this,t,Gn,zn,Ie,{})}}const yt={namespace:null,workflowId:null,runId:null,rawPayloads:null,sort:null},Xn=vt(yt),Zn=()=>{Xn.set(yt)};function xn(r){let t;const e=r[0].default,o=wt(e,r,r[1],null);return{c(){o&&o.c()},l(n){o&&o.l(n)},m(n,l){o&&o.m(n,l),t=!0},p(n,l){o&&o.p&&(!t||l&2)&&ht(o,e,n,n[1],t?kt(e,n[1],l,null):$t(n[1]),null)},i(n){t||(d(o,n),t=!0)},o(n){h(o,n),t=!1},d(n){o&&o.d(n)}}}function er(r){let t,e;return t=new Kn({props:{$$slots:{default:[xn]},$$scope:{ctx:r}}}),{c(){D(t.$$.fragment)},l(o){S(t.$$.fragment,o)},m(o,n){P(t,o,n),e=!0},p(o,[n]){const l={};n&2&&(l.$$scope={dirty:n,ctx:o}),t.$set(l)},i(o){e||(d(t.$$.fragment,o),e=!0)},o(o){h(t.$$.fragment,o),e=!1},d(o){W(t,o)}}}function tr(r,t,e){let{$$slots:o={},$$scope:n}=t;return Me(()=>{Zn()}),r.$$set=l=>{"$$scope"in l&&e(1,n=l.$$scope)},[o,n]}class Qr extends be{constructor(t){super(),ve(this,t,tr,er,Ie,{})}}export{Qr as component}; diff --git a/ui/assets/local/_app/immutable/nodes/8.d3f2c52d.js b/ui/assets/local/_app/immutable/nodes/8.d3f2c52d.js new file mode 100644 index 0000000000..c9122bf8fe --- /dev/null +++ b/ui/assets/local/_app/immutable/nodes/8.d3f2c52d.js @@ -0,0 +1 @@ +import{S as be,b as ve,a as Ie,C as D,D as S,E as P,j as d,g as h,F as W,K,i as mt,A as se,a0 as fe,m as Q,c as j,p as J,q as Y,d as O,k as w,u as X,f as y,L as F,a1 as ie,e as $e,z as pe,h as de,a7 as pt,w as z,x as G,n as ue,s as to,a5 as le,y as Te,o as dt,a6 as Me,a3 as _t,a4 as gt,G as wt,H as ht,I as $t,J as kt}from"../chunks/index.4e2fcbc7.js";import{p as qe}from"../chunks/stores.0e7b7e35.js";import{L as oo}from"../chunks/loading.95801385.js";import{f as bt}from"../chunks/index.6509bfd4.js";import{T as no}from"../chunks/toggle-switch.3a41e457.js";import{T as Fe}from"../chunks/tooltip.4a34940b.js";import{t as $}from"../chunks/translate.d23a91ae.js";import{a as Se,e as Qe}from"../chunks/event-view.50193376.js";import{w as vt}from"../chunks/singletons.13b3836d.js";import{C as ro,w as lo,a as so,f as Je}from"../chunks/workflow-terminate-enabled.cbb14ee6.js";import{I as Ne}from"../chunks/input.4b0dcfae.js";import{R as ao,a as fo}from"../chunks/radio-input.9ccf281c.js";import{R as ke,A as Ye}from"../chunks/workflow-actions.6f88149c.js";import{r as It,e as Pe,t as ze,i as io}from"../chunks/events.ccad8a5b.js";import{B as uo}from"../chunks/button.a45b0e55.js";import{C as co}from"../chunks/code-block.55adac36.js";import{B as Be}from"../chunks/badge.96e01a15.js";import{I as mo}from"../chunks/icon.e8aa24c8.js";import{d as po}from"../chunks/menu.716bcd2f.js";import{M as _o}from"../chunks/menu-divider.ada09983.js";import{M as Re}from"../chunks/modal.19f8e4b8.js";import{S as go}from"../chunks/split-button.015e101a.js";import{t as wo,c as ho,s as $o,r as ko,f as bo}from"../chunks/workflow-service.e2f4a06b.js";import{a as Tt}from"../chunks/auth-user.ce52bc5e.js";import{c as vo}from"../chunks/core-user.d32cd5bb.js";import{p as Et,i as Io,c as Rt}from"../chunks/data-encoder-config.896de1ac.js";import{p as To}from"../chunks/persist-store.8930b3b5.js";import{s as Eo}from"../chunks/settings.0d5c4f96.js";import{t as Ve}from"../chunks/toaster.de22ba12.js";import{r as ge,w as We,i as Ro}from"../chunks/workflow-run.8b92989d.js";import{w as Co}from"../chunks/write-actions-are-allowed.008c7180.js";import{W as Ao}from"../chunks/workflow-status.781aff44.js";import{A as Ct}from"../chunks/alert.9612e524.js";import{C as Ge,g as yo,a as Do,b as So}from"../chunks/pollers-service.ea8b18d9.js";import{C as Po}from"../chunks/index.e93e2a88.js";import{L as He}from"../chunks/link.6803bb00.js";import{T as Wo,a as Vo,b as Ee}from"../chunks/tab.32ab741b.js";import{w as Mo}from"../chunks/workflows.73426400.js";import{h as qo}from"../chunks/has.183130b0.js";import{a as Ke,g as he,h as Ce,i as Ae,j as ye,k as De}from"../chunks/route-for.084c7a46.js";import{g as Fo,a as No,b as Bo,p as Ho,c as Uo}from"../chunks/task-queue-compatibility.cf5696f8.js";import{c as Lo,d as jo}from"../chunks/decode-payload.11855cf3.js";import{g as Oo,a as Qo}from"../chunks/get-codec.89017b46.js";import{f as Jo}from"../chunks/events-service.0141aab0.js";function Yo(r){let t,e;return t=new no({props:{label:$("common.auto-refresh"),labelPosition:"left",id:"autorefresh",checked:r[1]}}),t.$on("change",function(){mt(r[0])&&r[0].apply(this,arguments)}),{c(){D(t.$$.fragment)},l(o){S(t.$$.fragment,o)},m(o,n){P(t,o,n),e=!0},p(o,n){r=o;const l={};n&2&&(l.checked=r[1]),t.$set(l)},i(o){e||(d(t.$$.fragment,o),e=!0)},o(o){h(t.$$.fragment,o),e=!1},d(o){W(t,o)}}}function zo(r){let t,e;return t=new Fe({props:{bottomLeft:!0,text:$("common.auto-refresh-tooltip",{interval:"15"}),$$slots:{default:[Yo]},$$scope:{ctx:r}}}),{c(){D(t.$$.fragment)},l(o){S(t.$$.fragment,o)},m(o,n){P(t,o,n),e=!0},p(o,[n]){const l={};n&11&&(l.$$scope={dirty:n,ctx:o}),t.$set(l)},i(o){e||(d(t.$$.fragment,o),e=!0)},o(o){h(t.$$.fragment,o),e=!1},d(o){W(t,o)}}}function Go(r,t,e){let o,n;K(r,Se,s=>e(2,n=s));let{onChange:l}=t;return r.$$set=s=>{"onChange"in s&&e(0,l=s.onChange)},r.$$.update=()=>{r.$$.dirty&4&&e(1,o=n==="on")},[l,o,n]}class Ko extends be{constructor(t){super(),ve(this,t,Go,zo,Ie,{onChange:0})}}function Xe(r,t,e){const o=r.slice();return o[6]=t[e],o}function Ze(r){let t,e;return t=new fo({props:{id:"reset-event-"+r[6].id,value:r[6].id,label:r[6].id+" - "+r[6].eventType}}),{c(){D(t.$$.fragment)},l(o){S(t.$$.fragment,o)},m(o,n){P(t,o,n),e=!0},p(o,n){const l={};n&8&&(l.id="reset-event-"+o[6].id),n&8&&(l.value=o[6].id),n&8&&(l.label=o[6].id+" - "+o[6].eventType),t.$set(l)},i(o){e||(d(t.$$.fragment,o),e=!0)},o(o){h(t.$$.fragment,o),e=!1},d(o){W(t,o)}}}function Xo(r){let t,e,o=r[3],n=[];for(let s=0;sh(n[s],1,1,()=>{n[s]=null});return{c(){for(let s=0;sfe(s,"value",u)),{c(){t=Q("div"),D(e.$$.fragment),o=j(),D(n.$$.fragment),l=j(),D(s.$$.fragment),this.h()},l(a){t=J(a,"DIV",{class:!0});var m=Y(t);S(e.$$.fragment,m),o=O(m),S(n.$$.fragment,m),l=O(m),S(s.$$.fragment,m),m.forEach(w),this.h()},h(){X(t,"class","flex w-full flex-col gap-4")},m(a,m){y(a,t,m),P(e,t,null),F(t,o),P(n,t,null),F(t,l),P(s,t,null),f=!0},p(a,[m]){const _={};m&4&&(_.group=a[2]),m&520&&(_.$$scope={dirty:m,ctx:a}),e.$set(_);const b={};m&1&&(b.checked=a[0]===ke.Signal),n.$set(b);const A={};!i&&m&2&&(i=!0,A.value=a[1],ie(()=>i=!1)),s.$set(A)},i(a){f||(d(e.$$.fragment,a),d(n.$$.fragment,a),d(s.$$.fragment,a),f=!0)},o(a){h(e.$$.fragment,a),h(n.$$.fragment,a),h(s.$$.fragment,a),f=!1},d(a){a&&w(t),W(e),W(n),W(s)}}}function xo(r,t,e){let o;K(r,It,u=>e(3,o=u));let{resetReapplyType:n=ke.Signal}=t,{reason:l=""}=t,{eventId:s}=t;const i=u=>{e(0,n=u.detail.checked?ke.Signal:ke.None)};function f(u){l=u,e(1,l)}return r.$$set=u=>{"resetReapplyType"in u&&e(0,n=u.resetReapplyType),"reason"in u&&e(1,l=u.reason),"eventId"in u&&e(2,s=u.eventId)},[n,l,s,o,i,f]}class en extends be{constructor(t){super(),ve(this,t,xo,Zo,Ie,{resetReapplyType:0,reason:1,eventId:2})}}const At=To("resetWorkflows",{}),tn=r=>!r.disableWriteActions&&!r.workflowResetDisabled,on=r=>!r.disableWriteActions&&!r.workflowSignalDisabled;function xe(r,t,e){const o=r.slice();return o[65]=t[e].onClick,o[66]=t[e].destructive,o[67]=t[e].label,o[68]=t[e].allowed,o[69]=t[e].testId,o[70]=t[e].tooltip,o}function nn(r){let t,e;return t=new Fe({props:{bottomRight:!0,width:200,text:r[2],hide:r[3],$$slots:{default:[sn]},$$scope:{ctx:r}}}),{c(){D(t.$$.fragment)},l(o){S(t.$$.fragment,o)},m(o,n){P(t,o,n),e=!0},p(o,n){const l={};n[0]&4&&(l.text=o[2]),n[0]&8&&(l.hide=o[3]),n[0]&520|n[2]&2048&&(l.$$scope={dirty:n,ctx:o}),t.$set(l)},i(o){e||(d(t.$$.fragment,o),e=!0)},o(o){h(t.$$.fragment,o),e=!1},d(o){W(t,o)}}}function rn(r){let t,e;return t=new go({props:{id:"workflow-actions",position:"right",disabled:r[18],primaryActionDisabled:!r[19]||r[0],label:$("workflows.request-cancellation"),menuLabel:$("workflows.workflow-actions"),$$slots:{default:[un]},$$scope:{ctx:r}}}),t.$on("click",r[41]),{c(){D(t.$$.fragment)},l(o){S(t.$$.fragment,o)},m(o,n){P(t,o,n),e=!0},p(o,n){const l={};n[0]&262144&&(l.disabled=o[18]),n[0]&524289&&(l.primaryActionDisabled=!o[19]||o[0]),n[0]&131072|n[2]&2048&&(l.$$scope={dirty:n,ctx:o}),t.$set(l)},i(o){e||(d(t.$$.fragment,o),e=!0)},o(o){h(t.$$.fragment,o),e=!1},d(o){W(t,o)}}}function ln(r){let t=$("workflows.reset")+"",e;return{c(){e=z(t)},l(o){e=G(o,t)},m(o,n){y(o,e,n)},p:ue,d(o){o&&w(e)}}}function sn(r){let t,e;return t=new uo({props:{"aria-label":$("workflows.reset"),disabled:!r[3],variant:"primary",$$slots:{default:[ln]},$$scope:{ctx:r}}}),t.$on("click",r[42]),{c(){D(t.$$.fragment)},l(o){S(t.$$.fragment,o)},m(o,n){P(t,o,n),e=!0},p(o,n){const l={};n[0]&8&&(l.disabled=!o[3]),n[2]&2048&&(l.$$scope={dirty:n,ctx:o}),t.$set(l)},i(o){e||(d(t.$$.fragment,o),e=!0)},o(o){h(t.$$.fragment,o),e=!1},d(o){W(t,o)}}}function et(r){let t,e;return t=new _o({}),{c(){D(t.$$.fragment)},l(o){S(t.$$.fragment,o)},m(o,n){P(t,o,n),e=!0},i(o){e||(d(t.$$.fragment,o),e=!0)},o(o){h(t.$$.fragment,o),e=!1},d(o){W(t,o)}}}function an(r){let t=r[67]+"",e;return{c(){e=z(t)},l(o){e=G(o,t)},m(o,n){y(o,e,n)},p(o,n){n[0]&131072&&t!==(t=o[67]+"")&&Te(e,t)},d(o){o&&w(e)}}}function fn(r){let t,e,o;return t=new po({props:{destructive:r[66],disabled:!r[68],"data-testid":r[69],$$slots:{default:[an]},$$scope:{ctx:r}}}),t.$on("click",function(){mt(r[65])&&r[65].apply(this,arguments)}),{c(){D(t.$$.fragment),e=j()},l(n){S(t.$$.fragment,n),e=O(n)},m(n,l){P(t,n,l),y(n,e,l),o=!0},p(n,l){r=n;const s={};l[0]&131072&&(s.destructive=r[66]),l[0]&131072&&(s.disabled=!r[68]),l[0]&131072&&(s["data-testid"]=r[69]),l[0]&131072|l[2]&2048&&(s.$$scope={dirty:l,ctx:r}),t.$set(s)},i(n){o||(d(t.$$.fragment,n),o=!0)},o(n){h(t.$$.fragment,n),o=!1},d(n){W(t,n),n&&w(e)}}}function tt(r){let t,e,o,n=r[66]&&et();return e=new Fe({props:{text:r[70],hide:!r[70],width:200,left:!0,$$slots:{default:[fn]},$$scope:{ctx:r}}}),{c(){n&&n.c(),t=j(),D(e.$$.fragment)},l(l){n&&n.l(l),t=O(l),S(e.$$.fragment,l)},m(l,s){n&&n.m(l,s),y(l,t,s),P(e,l,s),o=!0},p(l,s){l[66]?n?s[0]&131072&&d(n,1):(n=et(),n.c(),d(n,1),n.m(t.parentNode,t)):n&&(pe(),h(n,1,1,()=>{n=null}),de());const i={};s[0]&131072&&(i.text=l[70]),s[0]&131072&&(i.hide=!l[70]),s[0]&131072|s[2]&2048&&(i.$$scope={dirty:s,ctx:l}),e.$set(i)},i(l){o||(d(n),d(e.$$.fragment,l),o=!0)},o(l){h(n),h(e.$$.fragment,l),o=!1},d(l){n&&n.d(l),l&&w(t),W(e,l)}}}function un(r){let t,e,o=r[17],n=[];for(let s=0;sh(n[s],1,1,()=>{n[s]=null});return{c(){for(let s=0;sfe(t,"eventId",s)),se.push(()=>fe(t,"resetReapplyType",i)),se.push(()=>fe(t,"reason",f)),{c(){D(t.$$.fragment)},l(p){S(t.$$.fragment,p)},m(p,a){P(t,p,a),l=!0},p(p,a){const m={};!e&&a[0]&8192&&(e=!0,m.eventId=p[13],ie(()=>e=!1)),!o&&a[0]&4096&&(o=!0,m.resetReapplyType=p[12],ie(()=>o=!1)),!n&&a[0]&16384&&(n=!0,m.reason=p[14],ie(()=>n=!1)),t.$set(m)},i(p){l||(d(t.$$.fragment,p),l=!0)},o(p){h(t.$$.fragment,p),l=!1},d(p){W(t,p)}}}function pn(r){let t,e=$("workflows.cancel-modal-title")+"",o;return{c(){t=Q("h3"),o=z(e),this.h()},l(n){t=J(n,"H3",{slot:!0});var l=Y(t);o=G(l,e),l.forEach(w),this.h()},h(){X(t,"slot","title")},m(n,l){y(n,t,l),F(t,o)},p:ue,d(n){n&&w(t)}}}function dn(r){let t,e=$("workflows.cancel-modal-confirmation")+"",o;return{c(){t=Q("p"),o=z(e)},l(n){t=J(n,"P",{});var l=Y(t);o=G(l,e),l.forEach(w)},m(n,l){y(n,t,l),F(t,o)},p:ue,d(n){n&&w(t)}}}function _n(r){let t,e=$("workflows.terminate-modal-title")+"",o;return{c(){t=Q("h3"),o=z(e),this.h()},l(n){t=J(n,"H3",{slot:!0});var l=Y(t);o=G(l,e),l.forEach(w),this.h()},h(){X(t,"slot","title")},m(n,l){y(n,t,l),F(t,o)},p:ue,d(n){n&&w(t)}}}function gn(r){let t,e,o=$("workflows.terminate-modal-confirmation")+"",n,l,s,i,f;function u(a){r[50](a)}let p={id:"workflow-termination-reason",class:"mt-4",placeholder:$("common.reason-placeholder"),label:$("common.reason-placeholder"),labelHidden:!0};return r[4]!==void 0&&(p.value=r[4]),s=new Ne({props:p}),se.push(()=>fe(s,"value",u)),{c(){t=Q("div"),e=Q("p"),n=z(o),l=j(),D(s.$$.fragment),this.h()},l(a){t=J(a,"DIV",{slot:!0});var m=Y(t);e=J(m,"P",{});var _=Y(e);n=G(_,o),_.forEach(w),l=O(m),S(s.$$.fragment,m),m.forEach(w),this.h()},h(){X(t,"slot","content")},m(a,m){y(a,t,m),F(t,e),F(e,n),F(t,l),P(s,t,null),f=!0},p(a,m){const _={};!i&&m[0]&16&&(i=!0,_.value=a[4],ie(()=>i=!1)),s.$set(_)},i(a){f||(d(s.$$.fragment,a),f=!0)},o(a){h(s.$$.fragment,a),f=!1},d(a){a&&w(t),W(s)}}}function wn(r){let t,e=$("workflows.signal-modal-title")+"",o;return{c(){t=Q("h3"),o=z(e),this.h()},l(n){t=J(n,"H3",{slot:!0});var l=Y(t);o=G(l,e),l.forEach(w),this.h()},h(){X(t,"slot","title")},m(n,l){y(n,t,l),F(t,o)},p:ue,d(n){n&&w(t)}}}function hn(r){let t,e,o,n,l,s,i=$("workflows.signal-payload-input-label")+"",f,u,p,a=$("workflows.signal-payload-input-label-hint")+"",m,_,b,A;function I(T){r[53](T)}let L={id:"signal-name",label:$("workflows.signal-name-label"),required:!0};r[6]!==void 0&&(L.value=r[6]),e=new Ne({props:L}),se.push(()=>fe(e,"value",I));let R={class:"max-h-80 overflow-y-scroll overscroll-contain",content:r[5],editable:!0,copyable:!1};return b=new co({props:R}),r[54](b),b.$on("change",r[26]),{c(){t=Q("div"),D(e.$$.fragment),n=j(),l=Q("div"),s=Q("span"),f=z(i),u=j(),p=Q("span"),m=z(a),_=j(),D(b.$$.fragment),this.h()},l(T){t=J(T,"DIV",{slot:!0,class:!0});var M=Y(t);S(e.$$.fragment,M),n=O(M),l=J(M,"DIV",{});var V=Y(l);s=J(V,"SPAN",{class:!0});var B=Y(s);f=G(B,i),B.forEach(w),u=O(V),p=J(V,"SPAN",{class:!0});var v=Y(p);m=G(v,a),v.forEach(w),_=O(V),S(b.$$.fragment,V),V.forEach(w),M.forEach(w),this.h()},h(){X(s,"class","font-secondary text-sm font-medium"),X(p,"class","font-secondary text-xs font-light italic"),X(t,"slot","content"),X(t,"class","flex flex-col gap-4")},m(T,M){y(T,t,M),P(e,t,null),F(t,n),F(t,l),F(l,s),F(s,f),F(l,u),F(l,p),F(p,m),F(l,_),P(b,l,null),A=!0},p(T,M){const V={};!o&&M[0]&64&&(o=!0,V.value=T[6],ie(()=>o=!1)),e.$set(V);const B={};M[0]&32&&(B.content=T[5]),b.$set(B)},i(T){A||(d(e.$$.fragment,T),d(b.$$.fragment,T),A=!0)},o(T){h(e.$$.fragment,T),h(b.$$.fragment,T),A=!1},d(T){T&&w(t),W(e),r[54](null),W(b)}}}function $n(r){let t,e,o,n,l,s,i,f,u,p,a,m,_,b,A,I,L,R,T;const M=[rn,nn],V=[];function B(c,C){return c[1]?0:1}t=B(r),e=V[t]=M[t](r);function v(c){r[46](c)}function q(c){r[47](c)}let N={id:"reset-confirmation-modal","data-testid":"reset-confirmation-modal",confirmText:$("common.confirm"),cancelText:$("common.cancel"),confirmDisabled:!r[20],$$slots:{content:[mn],title:[cn]},$$scope:{ctx:r}};r[11]!==void 0&&(N.error=r[11]),r[9]!==void 0&&(N.open=r[9]),n=new Re({props:N}),se.push(()=>fe(n,"error",v)),se.push(()=>fe(n,"open",q)),n.$on("confirmModal",r[28]),n.$on("cancelModal",r[23]);function H(c){r[48](c)}function U(c){r[49](c)}let te={id:"cancel-confirmation-modal","data-testid":"cancel-confirmation-modal",confirmText:$("common.confirm"),cancelText:$("common.cancel"),loading:r[15],confirmType:"destructive",$$slots:{content:[dn],title:[pn]},$$scope:{ctx:r}};r[11]!==void 0&&(te.error=r[11]),r[7]!==void 0&&(te.open=r[7]),f=new Re({props:te}),se.push(()=>fe(f,"error",H)),se.push(()=>fe(f,"open",U)),f.$on("confirmModal",r[25]);function Z(c){r[51](c)}function E(c){r[52](c)}let k={id:"terminate-confirmation-modal","data-testid":"terminate-confirmation-modal",confirmText:$("workflows.terminate"),cancelText:$("common.cancel"),confirmType:"destructive",$$slots:{content:[gn],title:[_n]},$$scope:{ctx:r}};r[11]!==void 0&&(k.error=r[11]),r[8]!==void 0&&(k.open=r[8]),m=new Re({props:k}),se.push(()=>fe(m,"error",Z)),se.push(()=>fe(m,"open",E)),m.$on("cancelModal",r[21]),m.$on("confirmModal",r[24]);function ne(c){r[55](c)}function re(c){r[56](c)}let oe={id:"signal-confirmation-modal","data-testid":"signal-confirmation-modal",confirmText:$("common.submit"),cancelText:$("common.cancel"),confirmDisabled:!r[6],$$slots:{content:[hn],title:[wn]},$$scope:{ctx:r}};return r[11]!==void 0&&(oe.error=r[11]),r[10]!==void 0&&(oe.open=r[10]),I=new Re({props:oe}),se.push(()=>fe(I,"error",ne)),se.push(()=>fe(I,"open",re)),I.$on("cancelModal",r[22]),I.$on("confirmModal",r[27]),{c(){e.c(),o=j(),D(n.$$.fragment),i=j(),D(f.$$.fragment),a=j(),D(m.$$.fragment),A=j(),D(I.$$.fragment)},l(c){e.l(c),o=O(c),S(n.$$.fragment,c),i=O(c),S(f.$$.fragment,c),a=O(c),S(m.$$.fragment,c),A=O(c),S(I.$$.fragment,c)},m(c,C){V[t].m(c,C),y(c,o,C),P(n,c,C),y(c,i,C),P(f,c,C),y(c,a,C),P(m,c,C),y(c,A,C),P(I,c,C),T=!0},p(c,C){let ee=t;t=B(c),t===ee?V[t].p(c,C):(pe(),h(V[ee],1,1,()=>{V[ee]=null}),de(),e=V[t],e?e.p(c,C):(e=V[t]=M[t](c),e.c()),d(e,1),e.m(o.parentNode,o));const ae={};C[0]&1048576&&(ae.confirmDisabled=!c[20]),C[0]&28672|C[2]&2048&&(ae.$$scope={dirty:C,ctx:c}),!l&&C[0]&2048&&(l=!0,ae.error=c[11],ie(()=>l=!1)),!s&&C[0]&512&&(s=!0,ae.open=c[9],ie(()=>s=!1)),n.$set(ae);const we={};C[0]&32768&&(we.loading=c[15]),C[2]&2048&&(we.$$scope={dirty:C,ctx:c}),!u&&C[0]&2048&&(u=!0,we.error=c[11],ie(()=>u=!1)),!p&&C[0]&128&&(p=!0,we.open=c[7],ie(()=>p=!1)),f.$set(we);const ce={};C[0]&16|C[2]&2048&&(ce.$$scope={dirty:C,ctx:c}),!_&&C[0]&2048&&(_=!0,ce.error=c[11],ie(()=>_=!1)),!b&&C[0]&256&&(b=!0,ce.open=c[8],ie(()=>b=!1)),m.$set(ce);const me={};C[0]&64&&(me.confirmDisabled=!c[6]),C[0]&65632|C[2]&2048&&(me.$$scope={dirty:C,ctx:c}),!L&&C[0]&2048&&(L=!0,me.error=c[11],ie(()=>L=!1)),!R&&C[0]&1024&&(R=!0,me.open=c[10],ie(()=>R=!1)),I.$set(me)},i(c){T||(d(e),d(n.$$.fragment,c),d(f.$$.fragment,c),d(m.$$.fragment,c),d(I.$$.fragment,c),T=!0)},o(c){h(e),h(n.$$.fragment,c),h(f.$$.fragment,c),h(m.$$.fragment,c),h(I.$$.fragment,c),T=!1},d(c){V[t].d(c),c&&w(o),W(n,c),c&&w(i),W(f,c),c&&w(a),W(m,c),c&&w(A),W(I,c)}}}function kn(r,t,e){let o,n,l,s,i,f,u,p,a,m,_,b=ue,A=()=>(b(),b=to(ee,g=>e(20,_=g)),ee),I,L,R,T;K(r,It,g=>e(39,p=g)),K(r,ge,g=>e(57,a=g)),K(r,Tt,g=>e(58,m=g)),K(r,Et,g=>e(59,I=g)),K(r,Io,g=>e(60,L=g)),K(r,Rt,g=>e(61,R=g)),K(r,qe,g=>e(40,T=g)),r.$$.on_destroy.push(()=>b());var M,V,B;let{workflow:v}=t,{namespace:q}=t,{cancelInProgress:N}=t,{isRunning:H}=t;const U=()=>R?'{"metadata": {"encoding": ""}, "data": ""}':"";let te="",Z=U(),E="",k=!1,ne=!1,re=!1,oe=!1,c="",C=ke.Signal,ee=vt();A();let ae,we=!1,ce,me;const Dt=()=>{e(4,te="")},Ue=()=>{e(5,Z=U()),e(6,E=""),me==null||me.resetView(Z)},Le=()=>{e(12,C=ke.Signal),le(ee,_=void 0,_),e(14,ae=void 0)},St=async()=>{e(8,ne=!1),le(ge,a=Date.now(),a),Ve.push({id:"workflow-termination-success-toast",message:$("workflows.terminate-success")})},Pt=g=>{var x;e(4,te=""),e(11,c=(x=g==null?void 0:g.message)!==null&&x!==void 0?x:$("common.unknown-error"))},Wt=()=>{e(11,c=""),v.canBeTerminated&&wo({workflow:v,namespace:q,reason:Je({action:Ye.Terminate,reason:te,email:m.email}),identity:m.email}).then(St).catch(Pt)},Vt=async()=>{var g;e(15,we=!0),e(11,c="");try{await ho({namespace:q,workflowId:v.id,runId:v.runId}),e(7,k=!1),e(15,we=!1),le(ge,a=Date.now(),a),Ve.push({id:"workflow-cancelation-success-toast",message:$("workflows.cancel-success")})}catch(x){e(11,c=(g=x==null?void 0:x.message)!==null&&g!==void 0?g:$("common.unknown-error"))}},Mt=g=>{e(5,Z=g.detail)},qt=async()=>{var g;e(11,c="");try{await $o({namespace:q,workflowId:v.id,runId:v.runId,signalInput:Z,signalName:E,settings:{...T.data.settings,codec:{endpoint:R,includeCredentials:L,passAccessToken:I}},accessToken:m.accessToken}),e(10,oe=!1),le(ge,a=Date.now(),a),Ve.push({message:$("workflows.signal-success"),id:"workflow-signal-success-toast"}),Ue()}catch(x){e(11,c=(g=x==null?void 0:x.message)!==null&&g!==void 0?g:$("common.unknown-error"))}},Ft=async()=>{var g;e(11,c="");try{const x=await ko({namespace:q,workflowId:v.id,runId:v.runId,eventId:_,reason:Je({action:Ye.Reset,reason:ae,email:m.email}),resetReapplyType:C});x&&x.runId&&At.update(eo=>({...eo,[v.runId]:x.runId})),e(9,re=!1),le(ge,a=Date.now(),a)}catch(x){e(11,c=(g=x==null?void 0:x.message)!==null&&g!==void 0?g:$("common.unknown-error"))}Le()};let je,Oe=vo();K(r,Oe,g=>e(38,u=g));const Nt=()=>e(7,k=!0),Bt=()=>e(9,re=!0);function Ht(g){ee=g,A(e(13,ee))}function Ut(g){C=g,e(12,C)}function Lt(g){ae=g,e(14,ae)}function jt(g){c=g,e(11,c)}function Ot(g){re=g,e(9,re),e(3,i),e(2,ce),e(36,n),e(35,l),e(37,s),e(30,v),e(34,B),e(39,p),e(32,M),e(33,V),e(40,T)}function Qt(g){c=g,e(11,c)}function Jt(g){k=g,e(7,k)}function Yt(g){te=g,e(4,te)}function zt(g){c=g,e(11,c)}function Gt(g){ne=g,e(8,ne),e(3,i),e(2,ce),e(36,n),e(35,l),e(37,s),e(30,v),e(34,B),e(39,p),e(32,M),e(33,V),e(40,T)}function Kt(g){E=g,e(6,E)}function Xt(g){se[g?"unshift":"push"](()=>{me=g,e(16,me)})}function Zt(g){c=g,e(11,c)}function xt(g){oe=g,e(10,oe),e(3,i),e(2,ce),e(36,n),e(35,l),e(37,s),e(30,v),e(34,B),e(39,p),e(32,M),e(33,V),e(40,T)}return r.$$set=g=>{"workflow"in g&&e(30,v=g.workflow),"namespace"in g&&e(31,q=g.namespace),"cancelInProgress"in g&&e(0,N=g.cancelInProgress),"isRunning"in g&&e(1,H=g.isRunning)},r.$$.update=()=>{r.$$.dirty[1]&512&&e(19,o=lo(T.data.settings)),r.$$.dirty[1]&512&&e(36,n=on(T.data.settings)),r.$$.dirty[1]&512&&e(35,l=so(T.data.settings)),r.$$.dirty[1]&512&&e(37,s=tn(T.data.settings)),r.$$.dirty[0]&1073741824|r.$$.dirty[1]&326&&(s?s&&(e(32,M=v==null?void 0:v.pendingChildren)===null||M===void 0?void 0:M.length)>0?e(2,ce=$("workflows.reset-disabled-pending-children")):s&&(e(33,V=v==null?void 0:v.pendingChildren)===null||V===void 0?void 0:V.length)===0&&p.length===0&&e(2,ce=$("workflows.reset-disabled-no-events")):e(2,ce=$("workflows.reset-disabled"))),r.$$.dirty[0]&1073741824|r.$$.dirty[1]&328&&e(3,i=s&&(e(34,B=v==null?void 0:v.pendingChildren)===null||B===void 0?void 0:B.length)===0&&p.length>0),r.$$.dirty[0]&12|r.$$.dirty[1]&48&&e(17,je=[{label:$("workflows.reset"),onClick:()=>e(9,re=!0),testId:"reset-button",allowed:i,tooltip:i?"":ce},{label:$("workflows.signal"),onClick:()=>e(10,oe=!0),testId:"signal-button",allowed:n,tooltip:n?"":$("workflows.signal-disabled")},{label:$("workflows.terminate"),onClick:()=>e(8,ne=!0),testId:"terminate-button",allowed:l,destructive:!0,tooltip:l?"":$("workflows.terminate-disabled")}]),r.$$.dirty[1]&129&&e(18,f=u.namespaceWriteDisabled(q)||!Co(Eo))},[N,H,ce,i,te,Z,E,k,ne,re,oe,c,C,ee,ae,we,me,je,f,o,_,Dt,Ue,Le,Wt,Vt,Mt,qt,Ft,Oe,v,q,M,V,B,l,n,s,u,p,T,Nt,Bt,Ht,Ut,Lt,jt,Ot,Qt,Jt,Yt,zt,Gt,Kt,Xt,Zt,xt]}class bn extends be{constructor(t){super(),ve(this,t,kn,$n,Ie,{workflow:30,namespace:31,cancelInProgress:0,isRunning:1},null,[-1,-1,-1])}}const vn=(r,t)=>{var n;const e=r==="Running",o=(n=t==null?void 0:t.end)==null?void 0:n.some(l=>(l==null?void 0:l.eventType)==="WorkflowExecutionCancelRequested");return e&&o},ot=r=>{const t=r==null?void 0:r.indexOf("?");return t>-1?r.slice(0,t):r},_e=(r,t,e=!1)=>{const o=ot(r).split("/"),n=ot(t).split("/");if(e&&o.length!==n.length)return!1;for(let l=0;l{o=gt(t,bt,{duration:200,delay:100}),o.start()}),n=!0)},o(l){h(e.$$.fragment,l),n=!1},d(l){l&&w(t),W(e)}}}function yn(r){let t=$("workflows.cancel-request-sent-description")+"",e;return{c(){e=z(t)},l(o){e=G(o,t)},m(o,n){y(o,e,n)},p:ue,d(o){o&&w(e)}}}function it(r){let t,e,o,n;return e=new Ct({props:{bold:!0,icon:"info",intent:"info","data-testid":"workflow-reset-alert",title:$("workflows.reset-success-alert-title"),$$slots:{default:[Sn]},$$scope:{ctx:r}}}),{c(){t=Q("div"),D(e.$$.fragment),this.h()},l(l){t=J(l,"DIV",{class:!0});var s=Y(t);S(e.$$.fragment,s),s.forEach(w),this.h()},h(){X(t,"class","mb-4")},m(l,s){y(l,t,s),P(e,t,null),n=!0},p(l,s){const i={};s&268435505&&(i.$$scope={dirty:s,ctx:l}),e.$set(i)},i(l){n||(d(e.$$.fragment,l),o||_t(()=>{o=gt(t,bt,{duration:200,delay:100}),o.start()}),n=!0)},o(l){h(e.$$.fragment,l),n=!1},d(l){l&&w(t),W(e)}}}function Dn(r){let t;return{c(){t=z("here")},l(e){t=G(e,"here")},m(e,o){y(e,t,o)},d(e){e&&w(t)}}}function Sn(r){var l,s,i,f;let t,e,o,n;return e=new He({props:{href:he({namespace:r[0],workflow:(s=(l=r[4])==null?void 0:l.workflow)==null?void 0:s.id,run:r[5][(f=(i=r[4])==null?void 0:i.workflow)==null?void 0:f.runId]}),$$slots:{default:[Dn]},$$scope:{ctx:r}}}),{c(){t=z("You can find the resulting Workflow Execution "),D(e.$$.fragment),o=z(".")},l(u){t=G(u,"You can find the resulting Workflow Execution "),S(e.$$.fragment,u),o=G(u,".")},m(u,p){y(u,t,p),P(e,u,p),y(u,o,p),n=!0},p(u,p){var m,_,b,A;const a={};p&49&&(a.href=he({namespace:u[0],workflow:(_=(m=u[4])==null?void 0:m.workflow)==null?void 0:_.id,run:u[5][(A=(b=u[4])==null?void 0:b.workflow)==null?void 0:A.runId]})),p&268435456&&(a.$$scope={dirty:p,ctx:u}),e.$set(a)},i(u){n||(d(e.$$.fragment,u),n=!0)},o(u){h(e.$$.fragment,u),n=!1},d(u){u&&w(t),W(e,u),u&&w(o)}}}function Pn(r){var o;let t=((o=r[2])==null?void 0:o.historyEvents)+"",e;return{c(){e=z(t)},l(n){e=G(n,t)},m(n,l){y(n,e,l)},p(n,l){var s;l&4&&t!==(t=((s=n[2])==null?void 0:s.historyEvents)+"")&&Te(e,t)},d(n){n&&w(e)}}}function Wn(r){let t,e;return t=new Be({props:{type:"blue",class:"px-2 py-0",$$slots:{default:[Pn]},$$scope:{ctx:r}}}),{c(){D(t.$$.fragment)},l(o){S(t.$$.fragment,o)},m(o,n){P(t,o,n),e=!0},p(o,n){const l={};n&268435460&&(l.$$scope={dirty:n,ctx:o}),t.$set(l)},i(o){e||(d(t.$$.fragment,o),e=!0)},o(o){h(t.$$.fragment,o),e=!1},d(o){W(t,o)}}}function Vn(r){var o,n;let t=((n=(o=r[15])==null?void 0:o.pollers)==null?void 0:n.length)+"",e;return{c(){e=z(t)},l(l){e=G(l,t)},m(l,s){y(l,e,s)},p(l,s){var i,f;s&32768&&t!==(t=((f=(i=l[15])==null?void 0:i.pollers)==null?void 0:f.length)+"")&&Te(e,t)},d(l){l&&w(e)}}}function Mn(r){let t,e;return t=new Be({props:{type:"blue",class:"px-2 py-0",$$slots:{default:[Vn]},$$scope:{ctx:r}}}),{c(){D(t.$$.fragment)},l(o){S(t.$$.fragment,o)},m(o,n){P(t,o,n),e=!0},p(o,n){const l={};n&268468224&&(l.$$scope={dirty:n,ctx:o}),t.$set(l)},i(o){e||(d(t.$$.fragment,o),e=!0)},o(o){h(t.$$.fragment,o),e=!1},d(o){W(t,o)}}}function ut(r){let t,e;return t=new mo({props:{name:"canceled",width:20,height:20}}),{c(){D(t.$$.fragment)},l(o){S(t.$$.fragment,o)},m(o,n){P(t,o,n),e=!0},i(o){e||(d(t.$$.fragment,o),e=!0)},o(o){h(t.$$.fragment,o),e=!1},d(o){W(t,o)}}}function qn(r){var s,i;let t,e=((i=(s=r[2])==null?void 0:s.pendingActivities)==null?void 0:i.length)+"",o,n,l=r[12]&&ut();return{c(){l&&l.c(),t=j(),o=z(e)},l(f){l&&l.l(f),t=O(f),o=G(f,e)},m(f,u){l&&l.m(f,u),y(f,t,u),y(f,o,u),n=!0},p(f,u){var p,a;f[12]?l?u&4096&&d(l,1):(l=ut(),l.c(),d(l,1),l.m(t.parentNode,t)):l&&(pe(),h(l,1,1,()=>{l=null}),de()),(!n||u&4)&&e!==(e=((a=(p=f[2])==null?void 0:p.pendingActivities)==null?void 0:a.length)+"")&&Te(o,e)},i(f){n||(d(l),n=!0)},o(f){h(l),n=!1},d(f){l&&l.d(f),f&&w(t),f&&w(o)}}}function Fn(r){let t,e;return t=new Be({props:{type:r[12]?"warning":"blue",class:"px-2 py-0",$$slots:{default:[qn]},$$scope:{ctx:r}}}),{c(){D(t.$$.fragment)},l(o){S(t.$$.fragment,o)},m(o,n){P(t,o,n),e=!0},p(o,n){const l={};n&4096&&(l.type=o[12]?"warning":"blue"),n&268439556&&(l.$$scope={dirty:n,ctx:o}),t.$set(l)},i(o){e||(d(t.$$.fragment,o),e=!0)},o(o){h(t.$$.fragment,o),e=!1},d(o){W(t,o)}}}function Nn(r){let t,e,o,n,l,s,i,f,u,p;return t=new Ee({props:{label:$("workflows.history-tab"),id:"history-tab",href:he({...r[13]}),active:_e(r[6].url.pathname,he({...r[13]})),$$slots:{default:[Wn]},$$scope:{ctx:r}}}),o=new Ee({props:{label:$("workflows.workers-tab"),id:"workers-tab",href:Ce(r[13]),active:_e(r[6].url.pathname,Ce(r[13])),$$slots:{default:[Mn]},$$scope:{ctx:r}}}),l=new Ee({props:{label:$("workflows.pending-activities-tab"),id:"pending-activities-tab",href:Ae(r[13]),active:_e(r[6].url.pathname,Ae(r[13])),$$slots:{default:[Fn]},$$scope:{ctx:r}}}),i=new Ee({props:{label:$("workflows.call-stack-tab"),id:"call-stack-tab",href:ye(r[13]),active:_e(r[6].url.pathname,ye(r[13]))}}),u=new Ee({props:{label:$("workflows.queries-tab"),id:"queries-tab",href:De(r[13]),active:_e(r[6].url.pathname,De(r[13]))}}),{c(){D(t.$$.fragment),e=j(),D(o.$$.fragment),n=j(),D(l.$$.fragment),s=j(),D(i.$$.fragment),f=j(),D(u.$$.fragment)},l(a){S(t.$$.fragment,a),e=O(a),S(o.$$.fragment,a),n=O(a),S(l.$$.fragment,a),s=O(a),S(i.$$.fragment,a),f=O(a),S(u.$$.fragment,a)},m(a,m){P(t,a,m),y(a,e,m),P(o,a,m),y(a,n,m),P(l,a,m),y(a,s,m),P(i,a,m),y(a,f,m),P(u,a,m),p=!0},p(a,m){const _={};m&8192&&(_.href=he({...a[13]})),m&8256&&(_.active=_e(a[6].url.pathname,he({...a[13]}))),m&268435460&&(_.$$scope={dirty:m,ctx:a}),t.$set(_);const b={};m&8192&&(b.href=Ce(a[13])),m&8256&&(b.active=_e(a[6].url.pathname,Ce(a[13]))),m&268468224&&(b.$$scope={dirty:m,ctx:a}),o.$set(b);const A={};m&8192&&(A.href=Ae(a[13])),m&8256&&(A.active=_e(a[6].url.pathname,Ae(a[13]))),m&268439556&&(A.$$scope={dirty:m,ctx:a}),l.$set(A);const I={};m&8192&&(I.href=ye(a[13])),m&8256&&(I.active=_e(a[6].url.pathname,ye(a[13]))),i.$set(I);const L={};m&8192&&(L.href=De(a[13])),m&8256&&(L.active=_e(a[6].url.pathname,De(a[13]))),u.$set(L)},i(a){p||(d(t.$$.fragment,a),d(o.$$.fragment,a),d(l.$$.fragment,a),d(i.$$.fragment,a),d(u.$$.fragment,a),p=!0)},o(a){h(t.$$.fragment,a),h(o.$$.fragment,a),h(l.$$.fragment,a),h(i.$$.fragment,a),h(u.$$.fragment,a),p=!1},d(a){W(t,a),a&&w(e),W(o,a),a&&w(n),W(l,a),a&&w(s),W(i,a),a&&w(f),W(u,a)}}}function Bn(r){let t,e;return t=new Vo({props:{class:"flex flex-wrap gap-6",label:"workflow detail",$$slots:{default:[Nn]},$$scope:{ctx:r}}}),{c(){D(t.$$.fragment)},l(o){S(t.$$.fragment,o)},m(o,n){P(t,o,n),e=!0},p(o,n){const l={};n&268480580&&(l.$$scope={dirty:n,ctx:o}),t.$set(l)},i(o){e||(d(t.$$.fragment,o),e=!0)},o(o){h(t.$$.fragment,o),e=!1},d(o){W(t,o)}}}function Hn(r){var te,Z;let t,e,o,n,l,s,i,f,u,p,a,m,_,b,A,I,L,R,T,M,V,B;o=new He({props:{href:`${Ke({namespace:r[0]})}?${r[16]}`,"data-testid":"back-to-workflows",icon:"chevron-left",$$slots:{default:[In]},$$scope:{ctx:r}}});let v=r[14]&&nt(r);u=new Po({props:{copyIconTitle:$("common.copy-icon-title"),copySuccessIconTitle:$("common.copy-success-icon-title"),content:(te=r[2])==null?void 0:te.id,clickAllToCopy:!0,"container-class":"w-full",class:"overflow-hidden text-ellipsis"}}),m=new Ao({props:{status:(Z=r[2])==null?void 0:Z.status}});let q=r[9]&&rt(r),N=r[3]&&at(r);L=new bn({props:{isRunning:r[3],cancelInProgress:r[11],workflow:r[2],namespace:r[0]}});let H=r[11]&&ft(r),U=r[10]&&it(r);return V=new Wo({props:{$$slots:{default:[Bn]},$$scope:{ctx:r}}}),{c(){t=Q("header"),e=Q("div"),D(o.$$.fragment),n=j(),v&&v.c(),l=j(),s=Q("div"),i=Q("div"),f=Q("h1"),D(u.$$.fragment),p=j(),a=Q("div"),D(m.$$.fragment),_=j(),q&&q.c(),b=j(),A=Q("div"),N&&N.c(),I=j(),D(L.$$.fragment),R=j(),H&&H.c(),T=j(),U&&U.c(),M=j(),D(V.$$.fragment),this.h()},l(E){t=J(E,"HEADER",{class:!0});var k=Y(t);e=J(k,"DIV",{class:!0});var ne=Y(e);S(o.$$.fragment,ne),n=O(ne),v&&v.l(ne),ne.forEach(w),l=O(k),s=J(k,"DIV",{class:!0});var re=Y(s);i=J(re,"DIV",{class:!0});var oe=Y(i);f=J(oe,"H1",{"data-testid":!0,class:!0});var c=Y(f);S(u.$$.fragment,c),c.forEach(w),p=O(oe),a=J(oe,"DIV",{class:!0});var C=Y(a);S(m.$$.fragment,C),_=O(C),q&&q.l(C),C.forEach(w),oe.forEach(w),b=O(re),A=J(re,"DIV",{class:!0});var ee=Y(A);N&&N.l(ee),I=O(ee),S(L.$$.fragment,ee),ee.forEach(w),re.forEach(w),R=O(k),H&&H.l(k),T=O(k),U&&U.l(k),M=O(k),S(V.$$.fragment,k),k.forEach(w),this.h()},h(){X(e,"class","mb-4 block"),X(f,"data-testid","workflow-id-heading"),X(f,"class","overflow-hidden text-2xl font-medium"),X(a,"class","flex flex-wrap items-center gap-4"),X(i,"class","flex w-full flex-col justify-start gap-4 overflow-hidden whitespace-nowrap lg:w-auto"),X(A,"class","flex flex-col items-center justify-center gap-4 whitespace-nowrap sm:flex-row lg:justify-end"),X(s,"class","mb-8 flex w-full flex-col items-center justify-between gap-4 lg:flex-row"),X(t,"class","mb-4 flex flex-col gap-1")},m(E,k){y(E,t,k),F(t,e),P(o,e,null),F(e,n),v&&v.m(e,null),F(t,l),F(t,s),F(s,i),F(i,f),P(u,f,null),F(i,p),F(i,a),P(m,a,null),F(a,_),q&&q.m(a,null),F(s,b),F(s,A),N&&N.m(A,null),F(A,I),P(L,A,null),F(t,R),H&&H.m(t,null),F(t,T),U&&U.m(t,null),F(t,M),P(V,t,null),B=!0},p(E,[k]){var ee,ae;const ne={};k&65537&&(ne.href=`${Ke({namespace:E[0]})}?${E[16]}`),k&268451840&&(ne.$$scope={dirty:k,ctx:E}),o.$set(ne),E[14]?v?(v.p(E,k),k&16384&&d(v,1)):(v=nt(E),v.c(),d(v,1),v.m(e,null)):v&&(pe(),h(v,1,1,()=>{v=null}),de());const re={};k&4&&(re.content=(ee=E[2])==null?void 0:ee.id),u.$set(re);const oe={};k&4&&(oe.status=(ae=E[2])==null?void 0:ae.status),m.$set(oe),E[9]?q?(q.p(E,k),k&512&&d(q,1)):(q=rt(E),q.c(),d(q,1),q.m(a,null)):q&&(pe(),h(q,1,1,()=>{q=null}),de()),E[3]?N?(N.p(E,k),k&8&&d(N,1)):(N=at(E),N.c(),d(N,1),N.m(A,I)):N&&(pe(),h(N,1,1,()=>{N=null}),de());const c={};k&8&&(c.isRunning=E[3]),k&2048&&(c.cancelInProgress=E[11]),k&4&&(c.workflow=E[2]),k&1&&(c.namespace=E[0]),L.$set(c),E[11]?H?(H.p(E,k),k&2048&&d(H,1)):(H=ft(E),H.c(),d(H,1),H.m(t,T)):H&&(pe(),h(H,1,1,()=>{H=null}),de()),E[10]?U?(U.p(E,k),k&1024&&d(U,1)):(U=it(E),U.c(),d(U,1),U.m(t,M)):U&&(pe(),h(U,1,1,()=>{U=null}),de());const C={};k&268480580&&(C.$$scope={dirty:k,ctx:E}),V.$set(C)},i(E){B||(d(o.$$.fragment,E),d(v),d(u.$$.fragment,E),d(m.$$.fragment,E),d(q),d(N),d(L.$$.fragment,E),d(H),d(U),d(V.$$.fragment,E),B=!0)},o(E){h(o.$$.fragment,E),h(v),h(u.$$.fragment,E),h(m.$$.fragment,E),h(q),h(N),h(L.$$.fragment,E),h(H),h(U),h(V.$$.fragment,E),B=!1},d(E){E&&w(t),W(o),v&&v.d(),W(u),W(m),q&&q.d(),N&&N.d(),W(L),H&&H.d(),U&&U.d(),W(V)}}}const ct=15e3;function Un(r,t,e){let o,n,l,s,i,f,u,p,a,m,_,b,A,I,L,R,T,M,V,B;K(r,We,k=>e(4,I=k)),K(r,At,k=>e(5,L=k)),K(r,Pe,k=>e(25,R=k)),K(r,ge,k=>e(26,T=k)),K(r,Se,k=>e(27,M=k)),K(r,qe,k=>e(6,V=k)),K(r,Mo,k=>e(16,B=k));var v,q,N,H,U;let{namespace:te}=t,Z;dt(()=>{f&&M==="on"&&(clearInterval(Z),e(23,Z=setInterval(()=>le(ge,T=Date.now(),T),ct)))});const E=()=>{M==="on"?(le(Se,M="off",M),clearInterval(Z)):(le(ge,T=Date.now(),T),le(Se,M="on",M),clearInterval(Z),e(23,Z=setInterval(()=>le(ge,T=Date.now(),T),ct)))};return Me(()=>{clearInterval(Z)}),r.$$set=k=>{"namespace"in k&&e(0,te=k.namespace)},r.$$.update=()=>{r.$$.dirty&16&&e(2,{workflow:o,workers:n,compatibility:l}=I,o,(e(15,n),e(4,I)),(e(24,l),e(4,I))),r.$$.dirty&64&&e(14,s=V.params.id),r.$$.dirty&5&&e(13,i={namespace:te,workflow:o==null?void 0:o.id,run:o==null?void 0:o.runId}),r.$$.dirty&262160&&e(3,f=e(18,v=I==null?void 0:I.workflow)===null||v===void 0?void 0:v.isRunning),r.$$.dirty&524304&&e(12,u=["Terminated","TimedOut","Canceled"].includes(e(19,q=I.workflow)===null||q===void 0?void 0:q.status)),r.$$.dirty&8388616&&(f||clearInterval(Z)),r.$$.dirty&34603024&&e(11,p=vn(e(20,N=I==null?void 0:I.workflow)===null||N===void 0?void 0:N.status,R)),r.$$.dirty&2097200&&e(10,a=qo(L,e(21,H=I==null?void 0:I.workflow)===null||H===void 0?void 0:H.runId)),r.$$.dirty&4194308&&e(9,m=e(22,U=o==null?void 0:o.mostRecentWorkerVersionStamp)===null||U===void 0?void 0:U.useVersioning),r.$$.dirty&4&&e(1,_=Fo(o)),r.$$.dirty&16777216&&e(8,b=No(l)),r.$$.dirty&16777218&&e(7,A=Bo(l,_))},[te,_,o,f,I,L,V,A,b,m,a,p,u,i,s,n,B,E,v,q,N,H,U,Z,l,R]}class Ln extends be{constructor(t){super(),ve(this,t,Un,Hn,Ie,{namespace:0})}}async function jn({activity:r,namespace:t,settings:e,accessToken:o},{convertWithCodec:n=Lo,decodeAttributes:l=jo,encoderEndpoint:s=Rt}={}){const i=Oo(e,s),f=Qo(e,Et),u={...e,codec:{...e==null?void 0:e.codec,endpoint:i,passAccessToken:f}},p=await n({attributes:r,namespace:t,settings:u,accessToken:o});return l(p)}const On=async({activity:r,namespace:t,settings:e,accessToken:o})=>await jn({activity:r,namespace:t,settings:e,accessToken:o}),Qn=async(r,t,e,o)=>{const n=(r==null?void 0:r.pendingActivities)??[],l=[];for(const s of n){const i=await On({activity:s,namespace:t,settings:e,accessToken:o});l.push(i)}return l};function Jn(r){let t,e,o;t=new Ln({props:{namespace:r[0].params.namespace}});const n=r[7].default,l=wt(n,r,r[6],null);return{c(){D(t.$$.fragment),e=j(),l&&l.c()},l(s){S(t.$$.fragment,s),e=O(s),l&&l.l(s)},m(s,i){P(t,s,i),y(s,e,i),l&&l.m(s,i),o=!0},p(s,i){const f={};i&1&&(f.namespace=s[0].params.namespace),t.$set(f),l&&l.p&&(!o||i&64)&&ht(l,n,s,s[6],o?kt(n,s[6],i,null):$t(s[6]),null)},i(s){o||(d(t.$$.fragment,s),d(l,s),o=!0)},o(s){h(t.$$.fragment,s),h(l,s),o=!1},d(s){W(t,s),s&&w(e),l&&l.d(s)}}}function Yn(r){let t,e;return t=new oo({}),{c(){D(t.$$.fragment)},l(o){S(t.$$.fragment,o)},m(o,n){P(t,o,n),e=!0},p:ue,i(o){e||(d(t.$$.fragment,o),e=!0)},o(o){h(t.$$.fragment,o),e=!1},d(o){W(t,o)}}}function zn(r){let t,e,o,n;const l=[Yn,Jn],s=[];function i(f,u){return f[1].workflow?1:0}return e=i(r),o=s[e]=l[e](r),{c(){t=Q("div"),o.c(),this.h()},l(f){t=J(f,"DIV",{class:!0});var u=Y(t);o.l(u),u.forEach(w),this.h()},h(){X(t,"class","flex h-full flex-col gap-6")},m(f,u){y(f,t,u),s[e].m(t,null),n=!0},p(f,[u]){let p=e;e=i(f),e===p?s[e].p(f,u):(pe(),h(s[p],1,1,()=>{s[p]=null}),de(),o=s[e],o?o.p(f,u):(o=s[e]=l[e](f),o.c()),d(o,1),o.m(t,null))},i(f){n||(d(o),n=!0)},o(f){h(o),n=!1},d(f){f&&w(t),s[e].d()}}}function Gn(r,t,e){let o,n,l,s,i,f,u,p,a,m;K(r,Pe,R=>e(8,s=R)),K(r,We,R=>e(1,i=R)),K(r,ze,R=>e(9,f=R)),K(r,Qe,R=>e(10,u=R)),K(r,qe,R=>e(0,p=R)),K(r,ge,R=>e(5,a=R)),K(r,Tt,R=>e(11,m=R));let{$$slots:_={},$$scope:b}=t;const A=async(R,T)=>{var M;if(!((M=R==null?void 0:R.mostRecentWorkerVersionStamp)===null||M===void 0)&&M.useVersioning)return await Do({queue:T,namespace:o})},I=async({namespace:R,workers:T,taskQueue:M})=>{if(!Ho(T.pollers))return;const B=Uo(T.pollers);return await So({namespace:R,buildIds:B,taskQueue:M})},L=async(R,T,M)=>{const{settings:V}=p.data,B=await bo({namespace:R,workflowId:T,runId:M}),{taskQueue:v}=B,q=await yo({queue:v,namespace:R}),N=await A(B,v),H=await I({namespace:R,workers:q,taskQueue:v});B.pendingActivities=await Qn(B,R,V,m==null?void 0:m.accessToken),le(We,i={workflow:B,workers:q,compatibility:N,reachability:H},i);const U=await Jo({namespace:R,workflowId:T,runId:M});le(Pe,s=U,s)};return dt(()=>{const R=p.url.searchParams.get("sort");R&&le(Qe,u=R,u)}),Me(()=>{le(ze,f=null,f),le(We,i=Ro,i),le(Pe,s=io,s)}),r.$$set=R=>{"$$scope"in R&&e(6,b=R.$$scope)},r.$$.update=()=>{r.$$.dirty&1&&e(4,{namespace:o,workflow:n,run:l}=p.params,o,(e(3,n),e(0,p)),(e(2,l),e(0,p))),r.$$.dirty&60&&L(o,n,l)},[p,i,l,n,o,a,b,_]}class Kn extends be{constructor(t){super(),ve(this,t,Gn,zn,Ie,{})}}const yt={namespace:null,workflowId:null,runId:null,rawPayloads:null,sort:null},Xn=vt(yt),Zn=()=>{Xn.set(yt)};function xn(r){let t;const e=r[0].default,o=wt(e,r,r[1],null);return{c(){o&&o.c()},l(n){o&&o.l(n)},m(n,l){o&&o.m(n,l),t=!0},p(n,l){o&&o.p&&(!t||l&2)&&ht(o,e,n,n[1],t?kt(e,n[1],l,null):$t(n[1]),null)},i(n){t||(d(o,n),t=!0)},o(n){h(o,n),t=!1},d(n){o&&o.d(n)}}}function er(r){let t,e;return t=new Kn({props:{$$slots:{default:[xn]},$$scope:{ctx:r}}}),{c(){D(t.$$.fragment)},l(o){S(t.$$.fragment,o)},m(o,n){P(t,o,n),e=!0},p(o,[n]){const l={};n&2&&(l.$$scope={dirty:n,ctx:o}),t.$set(l)},i(o){e||(d(t.$$.fragment,o),e=!0)},o(o){h(t.$$.fragment,o),e=!1},d(o){W(t,o)}}}function tr(r,t,e){let{$$slots:o={},$$scope:n}=t;return Me(()=>{Zn()}),r.$$set=l=>{"$$scope"in l&&e(1,n=l.$$scope)},[o,n]}class Jr extends be{constructor(t){super(),ve(this,t,tr,er,Ie,{})}}export{Jr as component}; diff --git a/ui/assets/local/_app/immutable/nodes/9.bcb32c78.js b/ui/assets/local/_app/immutable/nodes/9.681a7dea.js similarity index 93% rename from ui/assets/local/_app/immutable/nodes/9.bcb32c78.js rename to ui/assets/local/_app/immutable/nodes/9.681a7dea.js index 35d84ff8eb..e2fc5b2518 100644 --- a/ui/assets/local/_app/immutable/nodes/9.bcb32c78.js +++ b/ui/assets/local/_app/immutable/nodes/9.681a7dea.js @@ -1 +1 @@ -/* empty css */import{e as r}from"../chunks/index.3158323b.js";import{f as l}from"../chunks/settings-service.7891e454.js";import{S as i,b as u,a as f,G as c,H as _,I as p,J as m,j as d,g}from"../chunks/index.4e2fcbc7.js";const $=!1,b=async function({fetch:o}){const s=await l(o);if(!s.auth.enabled)throw r(404);return{settings:s}},O=Object.freeze(Object.defineProperty({__proto__:null,load:b,ssr:$},Symbol.toStringTag,{value:"Module"}));function h(o){let s;const a=o[1].default,e=c(a,o,o[0],null);return{c(){e&&e.c()},l(t){e&&e.l(t)},m(t,n){e&&e.m(t,n),s=!0},p(t,[n]){e&&e.p&&(!s||n&1)&&_(e,a,t,t[0],s?m(a,t[0],n,null):p(t[0]),null)},i(t){s||(d(e,t),s=!0)},o(t){g(e,t),s=!1},d(t){e&&e.d(t)}}}function y(o,s,a){let{$$slots:e={},$$scope:t}=s;return o.$$set=n=>{"$$scope"in n&&a(0,t=n.$$scope)},[t,e]}class q extends i{constructor(s){super(),u(this,s,y,h,f,{})}}export{q as component,O as universal}; +/* empty css */import{e as r}from"../chunks/index.3158323b.js";import{f as l}from"../chunks/settings-service.eec0b467.js";import{S as i,b as u,a as f,G as c,H as _,I as p,J as m,j as d,g}from"../chunks/index.4e2fcbc7.js";const $=!1,b=async function({fetch:o}){const s=await l(o);if(!s.auth.enabled)throw r(404);return{settings:s}},O=Object.freeze(Object.defineProperty({__proto__:null,load:b,ssr:$},Symbol.toStringTag,{value:"Module"}));function h(o){let s;const a=o[1].default,e=c(a,o,o[0],null);return{c(){e&&e.c()},l(t){e&&e.l(t)},m(t,n){e&&e.m(t,n),s=!0},p(t,[n]){e&&e.p&&(!s||n&1)&&_(e,a,t,t[0],s?m(a,t[0],n,null):p(t[0]),null)},i(t){s||(d(e,t),s=!0)},o(t){g(e,t),s=!1},d(t){e&&e.d(t)}}}function y(o,s,a){let{$$slots:e={},$$scope:t}=s;return o.$$set=n=>{"$$scope"in n&&a(0,t=n.$$scope)},[t,e]}class q extends i{constructor(s){super(),u(this,s,y,h,f,{})}}export{q as component,O as universal}; diff --git a/ui/assets/local/_app/version.json b/ui/assets/local/_app/version.json index 026017d5e7..9389b1c829 100644 --- a/ui/assets/local/_app/version.json +++ b/ui/assets/local/_app/version.json @@ -1 +1 @@ -{"version":"1705508023537"} \ No newline at end of file +{"version":"1705520675496"} \ No newline at end of file diff --git a/ui/assets/local/index.html b/ui/assets/local/index.html index 1d6735569b..d33ca1552e 100644 --- a/ui/assets/local/index.html +++ b/ui/assets/local/index.html @@ -4,19 +4,19 @@ - + - - + + - +