diff --git a/go.mod b/go.mod index e222e3d43c..81742169d1 100644 --- a/go.mod +++ b/go.mod @@ -4,16 +4,16 @@ go 1.20 require ( github.com/coreos/go-oidc/v3 v3.1.0 - github.com/gogo/gateway v1.1.0 github.com/gorilla/securecookie v1.1.1 - github.com/grpc-ecosystem/grpc-gateway v1.16.0 + github.com/grpc-ecosystem/grpc-gateway/v2 v2.18.1 github.com/labstack/echo/v4 v4.9.1 github.com/stretchr/testify v1.8.4 github.com/urfave/cli/v2 v2.3.0 - go.temporal.io/api v1.24.1-0.20231020155655-224b196919ea - golang.org/x/net v0.17.0 - golang.org/x/oauth2 v0.11.0 + go.temporal.io/api v1.26.2-0.20231129165614-630d88440548 + golang.org/x/net v0.19.0 + golang.org/x/oauth2 v0.13.0 google.golang.org/grpc v1.59.0 + google.golang.org/protobuf v1.31.0 gopkg.in/validator.v2 v2.0.0-20210331031555-b37d688a7fb0 gopkg.in/yaml.v3 v3.0.1 ) @@ -21,7 +21,6 @@ require ( require ( github.com/cpuguy83/go-md2man/v2 v2.0.1 // indirect github.com/davecgh/go-spew v1.1.1 // indirect - github.com/gogo/protobuf v1.3.2 // indirect github.com/golang-jwt/jwt v3.2.2+incompatible // indirect github.com/golang/protobuf v1.5.3 // indirect github.com/labstack/gommon v0.4.0 // indirect @@ -31,15 +30,14 @@ require ( github.com/russross/blackfriday/v2 v2.1.0 // indirect github.com/valyala/bytebufferpool v1.0.0 // indirect github.com/valyala/fasttemplate v1.2.1 // indirect - golang.org/x/crypto v0.14.0 // indirect - golang.org/x/sys v0.13.0 // indirect - golang.org/x/text v0.13.0 // indirect + golang.org/x/crypto v0.16.0 // indirect + golang.org/x/sys v0.15.0 // indirect + golang.org/x/text v0.14.0 // indirect golang.org/x/time v0.3.0 // indirect google.golang.org/appengine v1.6.7 // indirect - google.golang.org/genproto v0.0.0-20231016165738-49dd2c1f3d0b // indirect - google.golang.org/genproto/googleapis/api v0.0.0-20231016165738-49dd2c1f3d0b // indirect - google.golang.org/genproto/googleapis/rpc v0.0.0-20231016165738-49dd2c1f3d0b // indirect - google.golang.org/protobuf v1.31.0 // indirect + google.golang.org/genproto v0.0.0-20231127180814-3a041ad873d4 // indirect + google.golang.org/genproto/googleapis/api v0.0.0-20231127180814-3a041ad873d4 // indirect + google.golang.org/genproto/googleapis/rpc v0.0.0-20231127180814-3a041ad873d4 // indirect gopkg.in/square/go-jose.v2 v2.6.0 // indirect ) diff --git a/go.sum b/go.sum index 6ed9fab860..147e737a02 100644 --- a/go.sum +++ b/go.sum @@ -1,10 +1,5 @@ -cloud.google.com/go v0.26.0/go.mod h1:aQUYkXzVsufM+DwF1aE+0xfcU+56JwCaLick0ClmMTw= cloud.google.com/go v0.34.0/go.mod h1:aQUYkXzVsufM+DwF1aE+0xfcU+56JwCaLick0ClmMTw= github.com/BurntSushi/toml v0.3.1/go.mod h1:xHWCNGjB5oqiDr8zfno3MHue2Ht5sIBksp03qcyfWMU= -github.com/antihax/optional v1.0.0/go.mod h1:uupD/76wgC+ih3iEmQUL+0Ugr19nfwCT1kdvxnR2qWY= -github.com/census-instrumentation/opencensus-proto v0.2.1/go.mod h1:f6KPmirojxKA12rnyqOA5BBL4O983OfeGPqjHWSTneU= -github.com/client9/misspell v0.3.4/go.mod h1:qj6jICC3Q7zFZvVWo7KLAzC3yx5G7kyvSDkc90ppPyw= -github.com/cncf/udpa/go v0.0.0-20191209042840-269d4d468f6f/go.mod h1:M8M6+tZqaGXZJjfX53e64911xZQV5JYwmTeXPW+k8Sc= github.com/coreos/go-oidc/v3 v3.1.0 h1:6avEvcdvTa1qYsOZ6I5PRkSYHzpTNWgKYmaJfaYbrRw= github.com/coreos/go-oidc/v3 v3.1.0/go.mod h1:rEJ/idjfUyfkBit1eI1fvyr+64/g9dcKpAm8MJMesvo= github.com/cpuguy83/go-md2man/v2 v2.0.0-20190314233015-f79a8a8ca69d/go.mod h1:maD7wRr/U5Z6m/iR4s+kqSMx2CaBsrgA7czyZG/E6dU= @@ -13,37 +8,22 @@ github.com/cpuguy83/go-md2man/v2 v2.0.1/go.mod h1:tgQtvFlXSQOSOSIRvRPT7W67SCa46t github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/davecgh/go-spew v1.1.1 h1:vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c= github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= -github.com/envoyproxy/go-control-plane v0.9.0/go.mod h1:YTl/9mNaCwkRvm6d1a2C3ymFceY/DCBVvsKhRF0iEA4= -github.com/envoyproxy/go-control-plane v0.9.1-0.20191026205805-5f8ba28d4473/go.mod h1:YTl/9mNaCwkRvm6d1a2C3ymFceY/DCBVvsKhRF0iEA4= -github.com/envoyproxy/go-control-plane v0.9.4/go.mod h1:6rpuAdCZL397s3pYoYcLgu1mIlRU8Am5FuJP05cCM98= -github.com/envoyproxy/protoc-gen-validate v0.1.0/go.mod h1:iSmxcyjqTsJpI2R4NaDN7+kN2VEUnK/pcBlmesArF7c= -github.com/ghodss/yaml v1.0.0/go.mod h1:4dBDuWmgqj2HViK6kFavaiC9ZROes6MMH2rRYeMEF04= -github.com/gogo/gateway v1.1.0 h1:u0SuhL9+Il+UbjM9VIE3ntfRujKbvVpFvNB4HbjeVQ0= -github.com/gogo/gateway v1.1.0/go.mod h1:S7rR8FRQyG3QFESeSv4l2WnsyzlCLG0CzBbUUo/mbic= -github.com/gogo/protobuf v1.2.0/go.mod h1:r8qH/GZQm5c6nD/R0oafs1akxWv10x8SbQlK7atdtwQ= -github.com/gogo/protobuf v1.3.2 h1:Ov1cvc58UF3b5XjBnZv7+opcTcQFZebYjWzi34vdm4Q= -github.com/gogo/protobuf v1.3.2/go.mod h1:P1XiOD3dCwIKUDQYPy72D8LYyHL2YPYrpS2s69NZV8Q= github.com/golang-jwt/jwt v3.2.2+incompatible h1:IfV12K8xAKAnZqdXVzCZ+TOjboZ2keLg81eXfW3O+oY= github.com/golang-jwt/jwt v3.2.2+incompatible/go.mod h1:8pz2t5EyA70fFQQSrl6XZXzqecmYZeUEB8OUGHkxJ+I= -github.com/golang/glog v0.0.0-20160126235308-23def4e6c14b/go.mod h1:SBH7ygxi8pfUlaOkMMuAQtPIUF8ecWP5IEl/CR7VP2Q= -github.com/golang/glog v1.0.0/go.mod h1:EWib/APOK0SL3dFbYqvxE3UYd8E6s1ouQ7iEp/0LWV4= -github.com/golang/mock v1.1.1/go.mod h1:oTYuIxOrZwtPieC+H1uAHpcLFnEyAGVDL/k47Jfbm0A= github.com/golang/protobuf v1.2.0/go.mod h1:6lQm79b+lXiMfvg/cZm0SGofjICqVBUtrP5yJMmIC1U= github.com/golang/protobuf v1.3.1/go.mod h1:6lQm79b+lXiMfvg/cZm0SGofjICqVBUtrP5yJMmIC1U= -github.com/golang/protobuf v1.3.2/go.mod h1:6lQm79b+lXiMfvg/cZm0SGofjICqVBUtrP5yJMmIC1U= -github.com/golang/protobuf v1.3.3/go.mod h1:vzj43D7+SQXF/4pzW/hwtAqwc6iTitCiVSaWz5lYuqw= github.com/golang/protobuf v1.5.0/go.mod h1:FsONVRAS9T7sI+LIUmWTfcYkHO4aIWwzhcaSAoJOfIk= github.com/golang/protobuf v1.5.3 h1:KhyjKVUg7Usr/dYsdSqoFveMYd5ko72D+zANwlG1mmg= github.com/golang/protobuf v1.5.3/go.mod h1:XVQd3VNwM+JqD3oG2Ue2ip4fOMUkwXdXDdiuN0vRsmY= -github.com/google/go-cmp v0.2.0/go.mod h1:oXzfMopK8JAjlY9xF4vHSVASa0yLyX7SntLO5aqRK0M= github.com/google/go-cmp v0.4.0/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= github.com/google/go-cmp v0.5.5/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= -github.com/google/go-cmp v0.5.9 h1:O2Tfq5qg4qc4AmwVlvv0oLiVAGB7enBSJ2x2DqQFi38= -github.com/google/uuid v1.1.2/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= +github.com/google/go-cmp v0.6.0 h1:ofyhxvXcZhMsU5ulbFiLKl/XBFqE1GSq7atu8tAmTRI= github.com/gorilla/securecookie v1.1.1 h1:miw7JPhV+b/lAHSXz4qd/nN9jRiAFV5FwjeKyCS8BvQ= github.com/gorilla/securecookie v1.1.1/go.mod h1:ra0sb63/xPlUeL+yeDciTfxMRAA+MP+HVt/4epWDjd4= -github.com/kisielk/errcheck v1.5.0/go.mod h1:pFxgyoBC7bSaBwPgfKdkLd5X25qrDl4LWUI2bnpBCr8= -github.com/kisielk/gotool v1.0.0/go.mod h1:XhKaO+MFFWcvkIS/tQcRk01m1F5IRFswLeQ+oQHNcck= +github.com/grpc-ecosystem/grpc-gateway/v2 v2.18.1 h1:6UKoz5ujsI55KNpsJH3UwCq3T8kKbZwNZBNPuTTje8U= +github.com/grpc-ecosystem/grpc-gateway/v2 v2.18.1/go.mod h1:YvJ2f6MplWDhfxiUC3KpyTy76kYUZA4W3pTv/wdKQ9Y= +github.com/kr/pretty v0.3.1 h1:flRD4NNwYAUpkphVc1HcthR4KEIFJ65n8Mw5qdRn3LE= +github.com/kr/text v0.2.0 h1:5Nx0Ya0ZqY2ygV366QzturHI13Jq95ApcVaJBhpS+AY= github.com/labstack/echo/v4 v4.9.1 h1:GliPYSpzGKlyOhqIbG8nmHBo3i1saKWFOgh41AN3b+Y= github.com/labstack/echo/v4 v4.9.1/go.mod h1:Pop5HLc+xoc4qhTZ1ip6C0RtP7Z+4VzRLWZZFKqbbjo= github.com/labstack/gommon v0.4.0 h1:y7cvthEAEbU0yHOf4axH8ZG2NH8knB9iNSoTO8dyIk8= @@ -56,8 +36,7 @@ github.com/mattn/go-isatty v0.0.17 h1:BTarxUcIeDqL27Mc+vyvdWYSL28zpIhv3RoTdsLMPn github.com/mattn/go-isatty v0.0.17/go.mod h1:kYGgaQfpe5nmfYZH+SKPsOc2e4SrIfOl2e/yFXSvRLM= github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZbAQM= github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4= -github.com/prometheus/client_model v0.0.0-20190812154241-14fe0d1b01d4/go.mod h1:xMI15A0UPsDsEKsMN9yxemIoYk6Tm2C1GtYGdfGttqA= -github.com/rogpeppe/fastuuid v1.2.0/go.mod h1:jVj6XXZzXRy/MSR5jhDC/2q6DgLz+nrA6LYCDYWNEvQ= +github.com/rogpeppe/go-internal v1.11.0 h1:cWPaGQEPrBb5/AsnsZesgZZ9yb1OQ+GOISoDNXVBh4M= github.com/russross/blackfriday/v2 v2.0.1/go.mod h1:+Rmxgy9KzJVeS9/2gXHxylqXiyQDYRxCVz55jmeOWTM= github.com/russross/blackfriday/v2 v2.1.0 h1:JIOH55/0cWyOuilr9/qlrm0BSXldqnqwMsf35Ld67mk= github.com/russross/blackfriday/v2 v2.1.0/go.mod h1:+Rmxgy9KzJVeS9/2gXHxylqXiyQDYRxCVz55jmeOWTM= @@ -67,110 +46,60 @@ github.com/stretchr/testify v1.5.1/go.mod h1:5W2xD1RspED5o8YsWQXVCued0rvSQ+mT+I5 github.com/stretchr/testify v1.7.0/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/h/Wwjteg= github.com/stretchr/testify v1.8.4 h1:CcVxjf3Q8PM0mHUKJCdn+eZZtm5yQwehR5yeSVQQcUk= github.com/stretchr/testify v1.8.4/go.mod h1:sz/lmYIOXD/1dqDmKjjqLyZ2RngseejIcXlSw2iwfAo= -github.com/temporalio/grpc-gateway v1.17.0 h1:OTX4OP39TfV4/FSo9OkeF7g8KkirDlhu8dmELzRdRvk= -github.com/temporalio/grpc-gateway v1.17.0/go.mod h1:ahEN4bs7da8rI4DJqn1xL0d83Djiau/rnZUztjeGdOI= github.com/urfave/cli/v2 v2.3.0 h1:qph92Y649prgesehzOrQjdWyxFOp/QVM+6imKHad91M= github.com/urfave/cli/v2 v2.3.0/go.mod h1:LJmUH05zAU44vOAcrfzZQKsZbVcdbOG8rtL3/XcUArI= github.com/valyala/bytebufferpool v1.0.0 h1:GqA5TC/0021Y/b9FG4Oi9Mr3q7XYx6KllzawFIhcdPw= github.com/valyala/bytebufferpool v1.0.0/go.mod h1:6bBcMArwyJ5K/AmCkWv1jt77kVWyCJ6HpOuEn7z0Csc= github.com/valyala/fasttemplate v1.2.1 h1:TVEnxayobAdVkhQfrfes2IzOB6o+z4roRkPF52WA1u4= github.com/valyala/fasttemplate v1.2.1/go.mod h1:KHLXt3tVN2HBp8eijSv/kGJopbvo7S+qRAEEKiv+SiQ= -github.com/yuin/goldmark v1.1.27/go.mod h1:3hX8gzYuyVAZsxl0MRgGTJEmQBFcNTphYh9decYSb74= -github.com/yuin/goldmark v1.2.1/go.mod h1:3hX8gzYuyVAZsxl0MRgGTJEmQBFcNTphYh9decYSb74= -go.temporal.io/api v1.24.1-0.20231020155655-224b196919ea h1:cTq1Fqv4SKCvYuvkF3ZdkLxYgECwGEeCzRqcr4qjRd4= -go.temporal.io/api v1.24.1-0.20231020155655-224b196919ea/go.mod h1:LTJM9iMOIuiE5hRtym4Ne6I4rKlDGioUiscdD9D6N2Y= +go.temporal.io/api v1.26.2-0.20231129165614-630d88440548 h1:9CV7l/WG7Nd4Ai8mSIUlCvf0W+Mdra5ei38I860Esac= +go.temporal.io/api v1.26.2-0.20231129165614-630d88440548/go.mod h1:Y/rALXTprFO+bvAlAfLFoJj7KpQIcL4GDQVN6fhYIa4= golang.org/x/crypto v0.0.0-20190308221718-c2843e01d9a2/go.mod h1:djNgcEr1/C05ACkg1iLfiJU5Ep61QUkGW8qpdssI0+w= -golang.org/x/crypto v0.0.0-20191011191535-87dc89f01550/go.mod h1:yigFU9vqHzYiE8UmvKecakEJjdnWj3jj499lnFckfCI= -golang.org/x/crypto v0.0.0-20200622213623-75b288015ac9/go.mod h1:LzIPMQfyMNhhGPhUkYOs5KpL4U8rLKemX1yGLhDgUto= -golang.org/x/crypto v0.14.0 h1:wBqGXzWJW6m1XrIKlAH0Hs1JJ7+9KBwnIO8v66Q9cHc= -golang.org/x/crypto v0.14.0/go.mod h1:MVFd36DqK4CsrnJYDkBA3VC4m2GkXAM0PvzMCn4JQf4= -golang.org/x/exp v0.0.0-20190121172915-509febef88a4/go.mod h1:CJ0aWSM057203Lf6IL+f9T1iT9GByDxfZKAQTCR3kQA= -golang.org/x/lint v0.0.0-20181026193005-c67002cb31c3/go.mod h1:UVdnD1Gm6xHRNCYTkRU2/jEulfH38KcIWyp/GAMgvoE= -golang.org/x/lint v0.0.0-20190227174305-5b3e6a55c961/go.mod h1:wehouNa3lNwaWXcvxsM5YxQ5yQlVC4a0KAMCusXpPoU= -golang.org/x/lint v0.0.0-20190313153728-d0100b6bd8b3/go.mod h1:6SW0HCj/g11FgYtHlgUYUwCkIfeOF89ocIRzGO/8vkc= -golang.org/x/mod v0.2.0/go.mod h1:s0Qsj1ACt9ePp/hMypM3fl4fZqREWJwdYDEqhRiZZUA= -golang.org/x/mod v0.3.0/go.mod h1:s0Qsj1ACt9ePp/hMypM3fl4fZqREWJwdYDEqhRiZZUA= +golang.org/x/crypto v0.16.0 h1:mMMrFzRSCF0GvB7Ne27XVtVAaXLrPmgPC7/v0tkwHaY= +golang.org/x/crypto v0.16.0/go.mod h1:gCAAfMLgwOJRpTjQ2zCCt2OcSfYMTeZVSRtQlPC7Nq4= golang.org/x/net v0.0.0-20180724234803-3673e40ba225/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= -golang.org/x/net v0.0.0-20180826012351-8a410e7b638d/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= golang.org/x/net v0.0.0-20190108225652-1e06a53dbb7e/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= -golang.org/x/net v0.0.0-20190213061140-3a22650c66bd/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= -golang.org/x/net v0.0.0-20190311183353-d8887717615a/go.mod h1:t9HGtf8HONx5eT2rtn7q6eTqICYqUVnKs3thJo3Qplg= -golang.org/x/net v0.0.0-20190404232315-eb5bcb51f2a3/go.mod h1:t9HGtf8HONx5eT2rtn7q6eTqICYqUVnKs3thJo3Qplg= golang.org/x/net v0.0.0-20190603091049-60506f45cf65/go.mod h1:HSz+uSET+XFnRR8LxR5pz3Of3rY3CfYBVs4xY44aLks= -golang.org/x/net v0.0.0-20190620200207-3b0461eec859/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= -golang.org/x/net v0.0.0-20200226121028-0de0cce0169b/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= golang.org/x/net v0.0.0-20200505041828-1ed23360d12c/go.mod h1:qpuaurCH72eLCgpAm/N6yyVIVM9cpaDIP3A8BGJEC5A= -golang.org/x/net v0.0.0-20200822124328-c89045814202/go.mod h1:/O7V0waA8r7cgGh81Ro3o1hOxt32SMVPicZroKQ2sZA= -golang.org/x/net v0.0.0-20201021035429-f5854403a974/go.mod h1:sp8m0HH+o8qH0wwXwYZr8TS3Oi6o0r6Gce1SSxlDquU= -golang.org/x/net v0.17.0 h1:pVaXccu2ozPjCXewfr1S7xza/zcXTity9cCdXQYSjIM= -golang.org/x/net v0.17.0/go.mod h1:NxSsAGuq816PNPmqtQdLE42eU2Fs7NoRIZrHJAlaCOE= -golang.org/x/oauth2 v0.0.0-20180821212333-d2e6202438be/go.mod h1:N/0e6XlmueqKjAGxoOufVs8QHGRruUQn6yWY3a++T0U= +golang.org/x/net v0.19.0 h1:zTwKpTd2XuCqf8huc7Fo2iSy+4RHPd10s4KzeTnVr1c= +golang.org/x/net v0.19.0/go.mod h1:CfAk/cbD4CthTvqiEl8NpboMuiuOYsAr/7NOjZJtv1U= golang.org/x/oauth2 v0.0.0-20200107190931-bf48bf16ab8d/go.mod h1:gOpvHmFTYa4IltrdGE7lF6nIHvwfUNPOp7c8zoXwtLw= -golang.org/x/oauth2 v0.11.0 h1:vPL4xzxBM4niKCW6g9whtaWVXTJf1U5e4aZxxFx/gbU= -golang.org/x/oauth2 v0.11.0/go.mod h1:LdF7O/8bLR/qWK9DrpXmbHLTouvRHK0SgJl0GmDBchk= -golang.org/x/sync v0.0.0-20180314180146-1d60e4601c6f/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= -golang.org/x/sync v0.0.0-20181108010431-42b317875d0f/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= +golang.org/x/oauth2 v0.13.0 h1:jDDenyj+WgFtmV3zYVoi8aE2BwtXFLWOA67ZfNWftiY= +golang.org/x/oauth2 v0.13.0/go.mod h1:/JMhi4ZRXAf4HG9LiNmxvk+45+96RUlVThiH8FzNBn0= golang.org/x/sync v0.0.0-20181221193216-37e7f081c4d4/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= -golang.org/x/sync v0.0.0-20190423024810-112230192c58/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= -golang.org/x/sync v0.0.0-20190911185100-cd5d95a43a6e/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= -golang.org/x/sync v0.0.0-20201020160332-67f06af15bc9/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= -golang.org/x/sys v0.0.0-20180830151530-49385e6e1522/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= golang.org/x/sys v0.0.0-20190215142949-d0b11bdaac8a/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= -golang.org/x/sys v0.0.0-20190412213103-97732733099d/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20200323222414-85ca7c5b95cd/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20200930185726-fdedc70b468f/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20210630005230-0f9fa26af87c/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.0.0-20210927094055-39ccf1dd6fa6/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.0.0-20211103235746-7861aae1554b/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.0.0-20220811171246-fbc7d0a398ab/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= -golang.org/x/sys v0.13.0 h1:Af8nKPmuFypiUBjVoU9V20FiaFXOcuZI21p0ycVYYGE= -golang.org/x/sys v0.13.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= +golang.org/x/sys v0.15.0 h1:h48lPFYpsTvQJZF4EKyI4aLHaev3CxivZmv7yZig9pc= +golang.org/x/sys v0.15.0/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA= golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= golang.org/x/text v0.3.2/go.mod h1:bEr9sfX3Q8Zfm5fL9x+3itogRgK3+ptLWKqgva+5dAk= -golang.org/x/text v0.3.3/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ= -golang.org/x/text v0.13.0 h1:ablQoSUd0tRdKxZewP80B+BaqeKJuVhuRxj/dkrun3k= -golang.org/x/text v0.13.0/go.mod h1:TvPlkZtksWOMsz7fbANvkp4WM8x/WCo/om8BMLbz+aE= +golang.org/x/text v0.14.0 h1:ScX5w1eTa3QqT8oi6+ziP7dTV1S2+ALU0bI+0zXKWiQ= +golang.org/x/text v0.14.0/go.mod h1:18ZOQIKpY8NJVqYksKHtTdi31H5itFRjB5/qKTNYzSU= golang.org/x/time v0.3.0 h1:rg5rLMjNzMS1RkNLzCG38eapWhnYLFYXDXj2gOlr8j4= golang.org/x/time v0.3.0/go.mod h1:tRJNPiyCQ0inRvYxbN9jk5I+vvW/OXSQhTDSoE431IQ= golang.org/x/tools v0.0.0-20180917221912-90fa682c2a6e/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ= -golang.org/x/tools v0.0.0-20190114222345-bf090417da8b/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ= -golang.org/x/tools v0.0.0-20190226205152-f727befe758c/go.mod h1:9Yl7xja0Znq3iFh3HoIrodX9oNMXvdceNzlUR8zjMvY= -golang.org/x/tools v0.0.0-20190311212946-11955173bddd/go.mod h1:LCzVGOaR6xXOjkQ3onu1FJEFr0SW1gC7cKk1uF8kGRs= -golang.org/x/tools v0.0.0-20190524140312-2c0ae7006135/go.mod h1:RgjU9mgBXZiqYHBnxXauZ1Gv1EHHAz9KjViQ78xBX0Q= -golang.org/x/tools v0.0.0-20191119224855-298f0cb1881e/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= -golang.org/x/tools v0.0.0-20200619180055-7c47624df98f/go.mod h1:EkVYQZoAsY45+roYkvgYkIh4xh/qjgUK9TdY2XT94GE= -golang.org/x/tools v0.0.0-20210106214847-113979e3529a/go.mod h1:emZCQorbCU4vsT4fOWvOPXz4eW1wZW4PmDk9uLelYpA= -golang.org/x/xerrors v0.0.0-20190717185122-a985d3407aa7/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= -golang.org/x/xerrors v0.0.0-20191011141410-1b5146add898/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= golang.org/x/xerrors v0.0.0-20191204190536-9bdfabe68543/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= -golang.org/x/xerrors v0.0.0-20200804184101-5ec99f83aff1/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= -google.golang.org/appengine v1.1.0/go.mod h1:EbEs0AVv82hx2wNQdGPgUI5lhzA/G0D9YwlJXL52JkM= google.golang.org/appengine v1.4.0/go.mod h1:xpcJRLb0r/rnEns0DIKYYv+WjYCduHsrkT7/EB5XEv4= google.golang.org/appengine v1.6.7 h1:FZR1q0exgwxzPzp/aF+VccGrSfxfPpkBqjIIEq3ru6c= google.golang.org/appengine v1.6.7/go.mod h1:8WjMMxjGQR8xUklV/ARdw2HLXBOI7O7uCIDZVag1xfc= -google.golang.org/genproto v0.0.0-20180817151627-c66870c02cf8/go.mod h1:JiN7NxoALGmiZfu7CAH4rXhgtRTLTxftemlI0sWmxmc= -google.golang.org/genproto v0.0.0-20190819201941-24fa4b261c55/go.mod h1:DMBHOl98Agz4BDEuKkezgsaosCRResVns1a3J2ZsMNc= -google.golang.org/genproto v0.0.0-20200513103714-09dca8ec2884/go.mod h1:55QSHmfGQM9UVYDPBsyGGes0y52j32PQ3BqQfXhyH3c= -google.golang.org/genproto v0.0.0-20231016165738-49dd2c1f3d0b h1:+YaDE2r2OG8t/z5qmsh7Y+XXwCbvadxxZ0YY6mTdrVA= -google.golang.org/genproto v0.0.0-20231016165738-49dd2c1f3d0b/go.mod h1:CgAqfJo+Xmu0GwA0411Ht3OU3OntXwsGmrmjI8ioGXI= -google.golang.org/genproto/googleapis/api v0.0.0-20231016165738-49dd2c1f3d0b h1:CIC2YMXmIhYw6evmhPxBKJ4fmLbOFtXQN/GV3XOZR8k= -google.golang.org/genproto/googleapis/api v0.0.0-20231016165738-49dd2c1f3d0b/go.mod h1:IBQ646DjkDkvUIsVq/cc03FUFQ9wbZu7yE396YcL870= -google.golang.org/genproto/googleapis/rpc v0.0.0-20231016165738-49dd2c1f3d0b h1:ZlWIi1wSK56/8hn4QcBp/j9M7Gt3U/3hZw3mC7vDICo= -google.golang.org/genproto/googleapis/rpc v0.0.0-20231016165738-49dd2c1f3d0b/go.mod h1:swOH3j0KzcDDgGUWr+SNpyTen5YrXjS3eyPzFYKc6lc= -google.golang.org/grpc v1.19.0/go.mod h1:mqu4LbDTu4XGKhr4mRzUsmM4RtVoemTSY81AxZiDr8c= -google.golang.org/grpc v1.19.1/go.mod h1:mqu4LbDTu4XGKhr4mRzUsmM4RtVoemTSY81AxZiDr8c= -google.golang.org/grpc v1.23.0/go.mod h1:Y5yQAOtifL1yxbo5wqy6BxZv8vAUGQwXBOALyacEbxg= -google.golang.org/grpc v1.25.1/go.mod h1:c3i+UQWmh7LiEpx4sFZnkU36qjEYZ0imhYfXVyQciAY= -google.golang.org/grpc v1.27.0/go.mod h1:qbnxyOmOxrQa7FizSgH+ReBfzJrCY1pSN7KXBS8abTk= -google.golang.org/grpc v1.33.1/go.mod h1:fr5YgcSWrqhRRxogOsw7RzIpsmvOZ6IcH4kBYTpR3n0= +google.golang.org/genproto v0.0.0-20231127180814-3a041ad873d4 h1:W12Pwm4urIbRdGhMEg2NM9O3TWKjNcxQhs46V0ypf/k= +google.golang.org/genproto v0.0.0-20231127180814-3a041ad873d4/go.mod h1:5RBcpGRxr25RbDzY5w+dmaqpSEvl8Gwl1x2CICf60ic= +google.golang.org/genproto/googleapis/api v0.0.0-20231127180814-3a041ad873d4 h1:ZcOkrmX74HbKFYnpPY8Qsw93fC29TbJXspYKaBkSXDQ= +google.golang.org/genproto/googleapis/api v0.0.0-20231127180814-3a041ad873d4/go.mod h1:k2dtGpRrbsSyKcNPKKI5sstZkrNCZwpU/ns96JoHbGg= +google.golang.org/genproto/googleapis/rpc v0.0.0-20231127180814-3a041ad873d4 h1:DC7wcm+i+P1rN3Ff07vL+OndGg5OhNddHyTA+ocPqYE= +google.golang.org/genproto/googleapis/rpc v0.0.0-20231127180814-3a041ad873d4/go.mod h1:eJVxU6o+4G1PSczBr85xmyvSNYAKvAYgkub40YGomFM= google.golang.org/grpc v1.59.0 h1:Z5Iec2pjwb+LEOqzpB2MR12/eKFhDPhuqW91O+4bwUk= google.golang.org/grpc v1.59.0/go.mod h1:aUPDwccQo6OTjy7Hct4AfBPD1GptF4fyUjIkQ9YtF98= google.golang.org/protobuf v1.26.0-rc.1/go.mod h1:jlhhOSvTdKEhbULTjvd4ARK9grFBp09yW+WbY/TyQbw= google.golang.org/protobuf v1.26.0/go.mod h1:9q0QmTI4eRPtz6boOQmLYwt+qCgq0jsYwAQnmE0givc= google.golang.org/protobuf v1.31.0 h1:g0LDEJHgrBl9N9r17Ru3sqWhkIx2NB67okBHPwC7hs8= google.golang.org/protobuf v1.31.0/go.mod h1:HV8QOd/L58Z+nl8r43ehVNZIU/HEI6OcFqwMG9pJV4I= -gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405 h1:yhCVgyC4o1eVCa2tZl7eS0r+SDo693bJlVdllGtEeKM= gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0= +gopkg.in/check.v1 v1.0.0-20201130134442-10cb98267c6c h1:Hei/4ADfdWqJk1ZMxUNpqntNwaWcugrBjAiHlqqRiVk= gopkg.in/square/go-jose.v2 v2.5.1/go.mod h1:M9dMgbHiYLoDGQrXy7OpJDJWiKiU//h+vD76mk0e1AI= gopkg.in/square/go-jose.v2 v2.6.0 h1:NGk74WTnPKBNUhNzQX7PYcTLUjoq7mzKk2OKbvwk2iI= gopkg.in/square/go-jose.v2 v2.6.0/go.mod h1:M9dMgbHiYLoDGQrXy7OpJDJWiKiU//h+vD76mk0e1AI= @@ -182,5 +111,3 @@ gopkg.in/yaml.v3 v3.0.0-20200313102051-9f266ea9e77c/go.mod h1:K4uyk7z7BCEPqu6E+C gopkg.in/yaml.v3 v3.0.0-20210107192922-496545a6307b/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM= gopkg.in/yaml.v3 v3.0.1 h1:fxVm/GzAzEWqLHuvctI91KS9hhNmmWOoWu0XTYJS7CA= gopkg.in/yaml.v3 v3.0.1/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM= -honnef.co/go/tools v0.0.0-20190102054323-c2f93a96b099/go.mod h1:rf3lG4BRIbNafJWhAfAdb/ePZxsR/4RtNHQocxwk9r4= -honnef.co/go/tools v0.0.0-20190523083050-ea95bdfd59fc/go.mod h1:rf3lG4BRIbNafJWhAfAdb/ePZxsR/4RtNHQocxwk9r4= diff --git a/server/api/handler.go b/server/api/handler.go index e1861b91fe..a9f3233d1f 100644 --- a/server/api/handler.go +++ b/server/api/handler.go @@ -26,8 +26,7 @@ import ( "fmt" "net/http" - "github.com/gogo/gateway" - "github.com/grpc-ecosystem/grpc-gateway/runtime" + "github.com/grpc-ecosystem/grpc-gateway/v2/runtime" "github.com/labstack/echo/v4" "golang.org/x/net/context" "google.golang.org/grpc" @@ -37,7 +36,12 @@ import ( "github.com/temporalio/ui-server/v2/server/rpc" "github.com/temporalio/ui-server/v2/server/version" "go.temporal.io/api/operatorservice/v1" + "go.temporal.io/api/serviceerror" + "go.temporal.io/api/temporalproto" "go.temporal.io/api/workflowservice/v1" + + // DO NOT REMOVE + _ "go.temporal.io/api/temporalproto" ) type Auth struct { @@ -142,6 +146,36 @@ func GetSettings(cfgProvider *config.ConfigProviderWithRefresh) func(echo.Contex } } +func errorHandler( + ctx context.Context, + mux *runtime.ServeMux, + marshaler runtime.Marshaler, + w http.ResponseWriter, + r *http.Request, + err error, +) { + // Convert the error using serviceerror. The result does not conform to Google + // gRPC status directly (it conforms to gogo gRPC status), but Err() does + // based on internal code reading. However, Err() uses Google proto Any + // which our marshaler is not expecting. So instead we are embedding similar + // logic to runtime.DefaultHTTPProtoErrorHandler in here but with gogo + // support. We don't implement custom content type marshaler or trailers at + // this time. + s := serviceerror.ToStatus(err) + w.Header().Set("Content-Type", marshaler.ContentType(struct{}{})) + + buf, merr := marshaler.Marshal(s.Proto()) + if merr != nil { + w.Header().Set("Content-Type", "application/json") + w.WriteHeader(http.StatusInternalServerError) + _, _ = w.Write([]byte(`{"code": 13, "message": "failed to marshal error message"}`)) + return + } + + w.WriteHeader(runtime.HTTPStatusFromCode(s.Code())) + _, _ = w.Write(buf) +} + func getTemporalClientMux(c echo.Context, temporalConn *grpc.ClientConn, apiMiddleware []Middleware) (*runtime.ServeMux, error) { var muxOpts []runtime.ServeMuxOption for _, m := range apiMiddleware { @@ -152,9 +186,10 @@ func getTemporalClientMux(c echo.Context, temporalConn *grpc.ClientConn, apiMidd append(muxOpts, withMarshaler(), version.WithVersionHeader(c), + runtime.WithUnescapingMode(runtime.UnescapingModeAllExceptReserved), // This is necessary to get error details properly // marshalled in unary requests. - runtime.WithProtoErrorHandler(runtime.DefaultHTTPProtoErrorHandler), + runtime.WithErrorHandler(errorHandler), )..., ) @@ -169,11 +204,10 @@ func getTemporalClientMux(c echo.Context, temporalConn *grpc.ClientConn, apiMidd } func withMarshaler() runtime.ServeMuxOption { - jsonpb := &gateway.JSONPb{ - EmitDefaults: true, - Indent: " ", - OrigName: false, - } - - return runtime.WithMarshalerOption(runtime.MIMEWildcard, jsonpb) + return runtime.WithMarshalerOption(runtime.MIMEWildcard, temporalProtoMarshaler{ + contentType: runtime.MIMEWildcard, + mOpts: temporalproto.CustomJSONMarshalOptions{ + Indent: " ", + }, + }) } diff --git a/server/api/marshaler.go b/server/api/marshaler.go new file mode 100644 index 0000000000..254a3250ad --- /dev/null +++ b/server/api/marshaler.go @@ -0,0 +1,101 @@ +package api + +import ( + "encoding/json" + "io" + + "github.com/grpc-ecosystem/grpc-gateway/v2/runtime" + "go.temporal.io/api/temporalproto" + "google.golang.org/protobuf/proto" +) + +type temporalProtoMarshaler struct { + contentType string + mOpts temporalproto.CustomJSONMarshalOptions + uOpts temporalproto.CustomJSONUnmarshalOptions +} + +type temporalProtoEncoder struct { + mOpts temporalproto.CustomJSONMarshalOptions + writer io.Writer + json *json.Encoder +} + +type temporalProtoDecoder struct { + uOpts temporalproto.CustomJSONUnmarshalOptions + reader io.Reader + json *json.Decoder +} + +func (p temporalProtoMarshaler) Marshal(v any) ([]byte, error) { + if m, ok := v.(proto.Message); ok { + return p.mOpts.Marshal(m) + } + + if p.mOpts.Indent != "" { + return json.MarshalIndent(v, "", p.mOpts.Indent) + } + + return json.Marshal(v) +} + +func (p temporalProtoMarshaler) Unmarshal(data []byte, v interface{}) error { + if m, ok := v.(proto.Message); ok { + return p.uOpts.Unmarshal(data, m) + } + + return json.Unmarshal(data, v) +} + +func (p temporalProtoMarshaler) NewDecoder(r io.Reader) runtime.Decoder { + return temporalProtoDecoder{ + p.uOpts, + r, + json.NewDecoder(r), + } +} + +func (p temporalProtoMarshaler) NewEncoder(w io.Writer) runtime.Encoder { + return temporalProtoEncoder{ + p.mOpts, + w, + json.NewEncoder(w), + } +} + +func (p temporalProtoMarshaler) ContentType(_ any) string { + return p.contentType +} + +func (d temporalProtoDecoder) Decode(v any) error { + m, ok := v.(proto.Message) + if !ok { + return d.json.Decode(v) + } + + var bs json.RawMessage + if err := d.json.Decode(&bs); err != nil { + return err + } + + return d.uOpts.Unmarshal([]byte(bs), m) +} + +func (e temporalProtoEncoder) Encode(v any) error { + m, ok := v.(proto.Message) + if !ok { + return e.json.Encode(v) + } + + bs, err := e.mOpts.Marshal(m) + if err != nil { + return err + } + + _, err = e.writer.Write(bs) + if err != nil { + return err + } + _, err = e.writer.Write([]byte{'\n'}) + return err +} diff --git a/server/api/middleware.go b/server/api/middleware.go index b761b46ce9..d1fa5f169f 100644 --- a/server/api/middleware.go +++ b/server/api/middleware.go @@ -25,7 +25,7 @@ package api import ( - "github.com/grpc-ecosystem/grpc-gateway/runtime" + "github.com/grpc-ecosystem/grpc-gateway/v2/runtime" "github.com/labstack/echo/v4" ) diff --git a/server/headers/headers.go b/server/headers/headers.go index 4a26ca8f94..0d40ad2d05 100644 --- a/server/headers/headers.go +++ b/server/headers/headers.go @@ -26,7 +26,7 @@ import ( "context" "net/http" - "github.com/grpc-ecosystem/grpc-gateway/runtime" + "github.com/grpc-ecosystem/grpc-gateway/v2/runtime" "github.com/labstack/echo/v4" "github.com/temporalio/ui-server/v2/server/api" "google.golang.org/grpc/metadata" diff --git a/server/version/with_version_header.go b/server/version/with_version_header.go index 2d6a5ddff3..17e1ceec36 100644 --- a/server/version/with_version_header.go +++ b/server/version/with_version_header.go @@ -28,7 +28,7 @@ import ( "context" "net/http" - "github.com/grpc-ecosystem/grpc-gateway/runtime" + "github.com/grpc-ecosystem/grpc-gateway/v2/runtime" "github.com/labstack/echo/v4" "google.golang.org/grpc/metadata" ) diff --git a/ui/assets/local/_app/immutable/chunks/accordion.89b036f1.js b/ui/assets/local/_app/immutable/chunks/accordion.6428cbfc.js similarity index 98% rename from ui/assets/local/_app/immutable/chunks/accordion.89b036f1.js rename to ui/assets/local/_app/immutable/chunks/accordion.6428cbfc.js index 73df7b0734..9286abf1b7 100644 --- a/ui/assets/local/_app/immutable/chunks/accordion.89b036f1.js +++ b/ui/assets/local/_app/immutable/chunks/accordion.6428cbfc.js @@ -1 +1 @@ -import{S as Ae,b as Be,a as Pe,G as x,O as ie,m as P,c as q,w as ne,p as C,q as H,d as N,x as oe,k as I,u as d,Q as be,P as he,f as De,L as _,M 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 qe,r as Ce,T as pe,U as He,C as fe,D as ue,E as ce,F as de,n as Ne,$ as ke}from"./index.0942deb7.js";import{B as Se}from"./badge.5c29cec8.js";import{I as Ve}from"./icon.33308831.js";import{v as Ue}from"./toaster.60da8f1b.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,M,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:M="flex w-full cursor-default flex-col rounded-xl border-2 border-gray-900 bg-white p-4 text-primary "+s[8]},s[10]],Q={};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,Q=qe(w,[(!r||n&256&&M!==(M="flex w-full cursor-default flex-col rounded-xl border-2 border-gray-900 bg-white p-4 text-primary "+a[8]))&&{class:M},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,Ce(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=Ne}=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),He(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 Ke extends Ae{constructor(e){super(),Be(this,e,Je,Ge,Pe,{title:1,id:2,subtitle:3,icon:4,open:0,disabled:5,readOnly:6,error:7,onToggle:11,class:8})}}export{Ke as A}; +import{S as Ae,b as Be,a as Pe,G as x,O as ie,m as P,c as q,w as ne,p as C,q as H,d as N,x as oe,k as I,u as d,Q as be,P as he,f as De,L as _,M 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 qe,r as Ce,T as pe,U as He,C as fe,D as ue,E as ce,F as de,n as Ne,$ as ke}from"./index.0942deb7.js";import{B as Se}from"./badge.5c29cec8.js";import{I as Ve}from"./icon.33308831.js";import{v as Ue}from"./toaster.cfecd6c1.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,M,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:M="flex w-full cursor-default flex-col rounded-xl border-2 border-gray-900 bg-white p-4 text-primary "+s[8]},s[10]],Q={};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,Q=qe(w,[(!r||n&256&&M!==(M="flex w-full cursor-default flex-col rounded-xl border-2 border-gray-900 bg-white p-4 text-primary "+a[8]))&&{class:M},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,Ce(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=Ne}=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),He(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 Ke extends Ae{constructor(e){super(),Be(this,e,Je,Ge,Pe,{title:1,id:2,subtitle:3,icon:4,open:0,disabled:5,readOnly:6,error:7,onToggle:11,class:8})}}export{Ke as A}; diff --git a/ui/assets/local/_app/immutable/chunks/auth-user.a1d7e47f.js b/ui/assets/local/_app/immutable/chunks/auth-user.6dc931ea.js similarity index 81% rename from ui/assets/local/_app/immutable/chunks/auth-user.a1d7e47f.js rename to ui/assets/local/_app/immutable/chunks/auth-user.6dc931ea.js index 6bd64355c7..4015e52622 100644 --- a/ui/assets/local/_app/immutable/chunks/auth-user.a1d7e47f.js +++ b/ui/assets/local/_app/immutable/chunks/auth-user.6dc931ea.js @@ -1 +1 @@ -import{ac as n}from"./index.0942deb7.js";import{p as i}from"./persist-store.dd882958.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.0942deb7.js";import{p as i}from"./persist-store.3ea3c364.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.ac8cf9e3.js b/ui/assets/local/_app/immutable/chunks/batch-operations.ac8cf9e3.js deleted file mode 100644 index 76a645b6d5..0000000000 --- a/ui/assets/local/_app/immutable/chunks/batch-operations.ac8cf9e3.js +++ /dev/null @@ -1 +0,0 @@ -import{w as b}from"./singletons.0a6e865f.js";import{ac as p}from"./index.0942deb7.js";import{A as a}from"./workflow-actions.6f88149c.js";import{g as d}from"./auth-user.a1d7e47f.js";import{p as h}from"./persist-store.dd882958.js";import{t as I}from"./versions.e238352a.js";import{s as u}from"./parse-with-big-int.0036a80a.js";import{r as c,a as i}from"./route-for-api.f2500de4.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/batch-operations.b60f5f99.js b/ui/assets/local/_app/immutable/chunks/batch-operations.b60f5f99.js new file mode 100644 index 0000000000..a6ce1d6de8 --- /dev/null +++ b/ui/assets/local/_app/immutable/chunks/batch-operations.b60f5f99.js @@ -0,0 +1 @@ +import{w as l}from"./singletons.d67f4e6b.js";import{ac as y}from"./index.0942deb7.js";import{A as s}from"./workflow-actions.6f88149c.js";import{g as I}from"./auth-user.6dc931ea.js";import{p as w}from"./persist-store.3ea3c364.js";import{t as T}from"./versions.1002dc8d.js";import{s as f}from"./parse-with-big-int.0036a80a.js";import{r as c,a as m}from"./route-for-api.4c8e7aa5.js";import{b as p,c as b}from"./screaming-enums.7a4380bd.js";import{i as h}from"./version-check.d006b302.js";const k=e=>e.map(t=>t.runId).reduce((t,r,n,u)=>(t+=`RunId="${r}"`,n!==u.length-1&&(t+=" OR "),t),""),C=e=>{const o=I().email;switch(e){case s.Cancel:return{cancellationOperation:{identity:o}};case s.Terminate:return{terminationOperation:{identity:o}};default:return{}}},g=({id:e,runId:o})=>({workflowId:e,runId:o}),i=(e,o)=>{const t={jobId:o.jobId,namespace:o.namespace,reason:o.reason,...C(e)};if(o.workflows)return h(y(T),"1.19")?{...t,executions:o.workflows.map(g)}:{...t,visibilityQuery:k(o.workflows)};if(o.query)return{...t,visibilityQuery:o.query}};async function V(e){const o=c("batch-operations",{namespace:e.namespace,batchJobId:e.jobId}),t=i(s.Cancel,e);await m(o,{options:{method:"POST",body:f(t)},notifyOnError:!1}),a.set({jobId:t.jobId,namespace:t.namespace})}async function _(e){const o=c("batch-operations",{namespace:e.namespace,batchJobId:e.jobId}),t=i(s.Terminate,e);await m(o,{options:{method:"POST",body:f(t)},notifyOnError:!1}),a.set({jobId:t.jobId,namespace:t.namespace})}async function d({namespace:e,jobId:o}){return new Promise((t,r)=>{j({namespace:e,jobId:o}).then(({state:n,completeOperationCount:u})=>{n==="Failed"?r():n!=="Running"?t(u):setTimeout(()=>{try{t(d({namespace:e,jobId:o}))}catch{r()}},5e3)})})}async function j({jobId:e,namespace:o},t=fetch){const r=c("batch-operations",{namespace:o,batchJobId:e}),n=await m(r,{request:t});return P(n)}const P=e=>({...e,operationType:p(e.operationType),state:b(e.state),startTime:e.startTime,closeTime:e.closeTime,totalOperationCount:parseInt((e==null?void 0:e.totalOperationCount)??"0",10),completeOperationCount:parseInt((e==null?void 0:e.completeOperationCount)??"0",10),failureOperationCount:parseInt((e==null?void 0:e.failureOperationCount)??"0",10)});async function N(e,o=fetch){const t=c("batch-operations.list",{namespace:e,batchJobId:""}),r=await m(t,{request:o});return{nextPageToken:r.nextPageToken,operations:r.operationInfo?r.operationInfo.map(R):[]}}const R=e=>({startTime:e.startTime,closeTime:e.closeTime,jobId:e.jobId,state:b(e.state)}),a=l();a.subscribe(async e=>{e&&await d(e).then(()=>a.set(void 0))});const O=w("auto-refresh-batch-operation",!1);export{O as a,_ as b,V as c,j as d,a as i,N as l}; diff --git a/ui/assets/local/_app/immutable/chunks/button.c09134bf.js b/ui/assets/local/_app/immutable/chunks/button.72eef818.js similarity index 99% rename from ui/assets/local/_app/immutable/chunks/button.c09134bf.js rename to ui/assets/local/_app/immutable/chunks/button.72eef818.js index 4c01623110..1bcc995a3e 100644 --- a/ui/assets/local/_app/immutable/chunks/button.c09134bf.js +++ b/ui/assets/local/_app/immutable/chunks/button.72eef818.js @@ -1 +1 @@ -import{S as fe,b as ue,a as de,e as O,f as p,z as N,g as _,h as I,j as m,k,T as F,O as q,U as be,$ as ce,G as $,m as C,c as P,p as V,q as E,d as S,P as G,Q as j,L as T,M as me,_ as ge,H as x,I as ee,J as ie,R as te,C as w,D as z,E as R,X as he,F as A,w as le,x as re,y as ne}from"./index.0942deb7.js";import{B as oe}from"./badge.5c29cec8.js";import{I as B}from"./icon.33308831.js";import{L as _e}from"./link.f0cc0bf5.js";function se(l){var e,i,t="";if(typeof l=="string"||typeof l=="number")t+=l;else if(typeof l=="object")if(Array.isArray(l))for(e=0;etypeof l=="boolean"?"".concat(l):l===0?"0":l,J=ve,ke=(l,e)=>i=>{var t;if((e==null?void 0:e.variants)==null)return J(l,i==null?void 0:i.class,i==null?void 0:i.className);const{variants:r,defaultVariants:n}=e,o=Object.keys(r).map(a=>{const b=i==null?void 0:i[a],s=n==null?void 0:n[a];if(b===null)return null;const f=H(b)||H(s);return r[a][f]}),v=i&&Object.entries(i).reduce((a,b)=>{let[s,f]=b;return f===void 0||(a[s]=f),a},{}),d=e==null||(t=e.compoundVariants)===null||t===void 0?void 0:t.reduce((a,b)=>{let{class:s,className:f,...h}=b;return Object.entries(h).every(M=>{let[y,u]=M;return Array.isArray(u)?u.includes({...n,...v}[y]):{...n,...v}[y]===u})?[...a,s,f]:a},[]);return J(l,o,d,i==null?void 0:i.class,i==null?void 0:i.className)};function pe(l){let e,i,t,r,n,o,v,d,a=(l[6]||l[5])&&K(l);const b=l[15].default,s=$(b,l,l[17],null);let f=l[7]&&Q(l),h=l[8]>0&&W(l),M=[{disabled:l[4]},{id:l[9]},{type:"button"},{class:n=l[13]({variant:l[0],size:l[1],borderModifier:l[2],borderRadiusModifier:l[3]})},l[14]],y={};for(let u=0;u{a=null}),I()),s&&s.p&&(!o||g&131072)&&x(s,b,u,u[17],o?ie(b,u[17],g,null):ee(u[17]),null),u[7]?f?(f.p(u,g),g&128&&m(f,1)):(f=Q(u),f.c(),m(f,1),f.m(e,r)):f&&(N(),_(f,1,1,()=>{f=null}),I()),u[8]>0?h?(h.p(u,g),g&256&&m(h,1)):(h=W(u),h.c(),m(h,1),h.m(e,null)):h&&(N(),_(h,1,1,()=>{h=null}),I()),G(e,y=te(M,[(!o||g&16)&&{disabled:u[4]},(!o||g&512)&&{id:u[9]},{type:"button"},(!o||g&15&&n!==(n=u[13]({variant:u[0],size:u[1],borderModifier:u[2],borderRadiusModifier:u[3]})))&&{class:n},g&16384&&u[14]])),j(e,"active",u[12])},i(u){o||(m(a),m(s,u),m(f),m(h),o=!0)},o(u){_(a),_(s,u),_(f),_(h),o=!1},d(u){u&&k(e),a&&a.d(),s&&s.d(u),f&&f.d(),h&&h.d(),v=!1,d()}}}function ye(l){let e,i;const t=[{target:l[11]},{href:l[10]},{id:l[9]},{role:"button"},{type:"button"},{class:l[13]({variant:l[0],size:l[1],borderModifier:l[2],borderRadiusModifier:l[3]})},l[14]];let r={$$slots:{default:[Ie]},$$scope:{ctx:l}};for(let n=0;n0&&Z(l);return{c(){o&&o.c(),e=P(),d&&d.c(),i=P(),a&&a.c(),t=P(),b&&b.c(),r=O()},l(s){o&&o.l(s),e=S(s),d&&d.l(s),i=S(s),a&&a.l(s),t=S(s),b&&b.l(s),r=O()},m(s,f){o&&o.m(s,f),p(s,e,f),d&&d.m(s,f),p(s,i,f),a&&a.m(s,f),p(s,t,f),b&&b.m(s,f),p(s,r,f),n=!0},p(s,f){s[6]||s[5]?o?(o.p(s,f),f&96&&m(o,1)):(o=X(s),o.c(),m(o,1),o.m(e.parentNode,e)):o&&(N(),_(o,1,1,()=>{o=null}),I()),d&&d.p&&(!n||f&131072)&&x(d,v,s,s[17],n?ie(v,s[17],f,null):ee(s[17]),null),s[7]?a?(a.p(s,f),f&128&&m(a,1)):(a=Y(s),a.c(),m(a,1),a.m(t.parentNode,t)):a&&(N(),_(a,1,1,()=>{a=null}),I()),s[8]>0?b?(b.p(s,f),f&256&&m(b,1)):(b=Z(s),b.c(),m(b,1),b.m(r.parentNode,r)):b&&(N(),_(b,1,1,()=>{b=null}),I())},i(s){n||(m(o),m(d,s),m(a),m(b),n=!0)},o(s){_(o),_(d,s),_(a),_(b),n=!1},d(s){o&&o.d(s),s&&k(e),d&&d.d(s),s&&k(i),a&&a.d(s),s&&k(t),b&&b.d(s),s&&k(r)}}}function we(l){let e,i,t,r;const n=[ye,pe],o=[];function v(d,a){return d[10]&&!d[4]?0:1}return e=v(l),i=o[e]=n[e](l),{c(){i.c(),t=O()},l(d){i.l(d),t=O()},m(d,a){o[e].m(d,a),p(d,t,a),r=!0},p(d,[a]){let b=e;e=v(d),e===b?o[e].p(d,a):(N(),_(o[b],1,1,()=>{o[b]=null}),I(),i=o[e],i?i.p(d,a):(i=o[e]=n[e](d),i.c()),m(i,1),i.m(t.parentNode,t))},i(d){r||(m(i),r=!0)},o(d){_(i),r=!1},d(d){o[e].d(d),d&&k(t)}}}function ze(l,e,i){const t=["variant","size","borderModifier","borderRadiusModifier","disabled","loading","leadingIcon","trailingIcon","count","id","href","target","active"];let r=F(e,t),{$$slots:n={},$$scope:o}=e;const v=ke(["relative","flex","w-fit","items-center","justify-center","gap-2","rounded-lg","disabled:opacity-50","disabled:cursor-not-allowed","border-2","border-box","transition-colors","transition-shadow","focus-visible:outline-none"],{variants:{variant:{primary:"border-gray-900 bg-gray-900 bg-gradient-to-br text-white [&:not(:disabled):hover]:shadow-focus [&:not(:disabled):hover]:shadow-blue-600/50 [&:not(:disabled):hover]:from-blue-100 [&:not(:disabled):hover]:to-purple-100 [&:not(:disabled):hover]:text-gray-900 [&:not(:disabled):hover]:border-indigo-600 focus-visible:shadow-focus focus-visible:shadow-blue-600/50 focus-visible:from-blue-100 focus-visible:to-purple-100 focus-visible:text-gray-900 focus-visible:border-indigo-600",secondary:"border-gray-900 bg-white text-gray-900 [&:not(:disabled):hover]:shadow-focus [&:not(:disabled):hover]:shadow-blue-600/50 [&:not(:disabled):hover]:bg-gray-900 [&:not(:disabled):hover]:text-white [&:not(:disabled):hover]:border-white focus-visible:shadow-focus focus-visible:shadow-blue-600/50 focus-visible:bg-gray-900 focus-visible:text-white focus-visible:border-white",destructive:"border-red-700 bg-red-700 text-white [&:not(:disabled):hover]:shadow-focus [&:not(:disabled):hover]:shadow-red-200/50 [&:not(:disabled):hover]:border-white focus-visible:border-white focus-visible:shadow-focus focus-visible:shadow-red-200/50",ghost:"border-[transparent] bg-[transparent] text-gray-600 [&:not(:disabled):hover]:shadow-focus [&:not(:disabled):hover]:shadow-blue-600/50 [&:not(:disabled):hover]:bg-indigo-100 [&:not(:disabled):hover]:border-indigo-600 focus-visible:shadow-focus focus-visible:shadow-blue-600/50 focus-visible:bg-indigo-100 focus-visible:border-indigo-600","table-header":"border-gray-900 bg-gray-900 text-white focus-visible:shadow-focus focus-visible:shadow-blue-600/50 focus-visible:border-white"},size:{xs:"h-8 text-xs px-2 py-1",sm:"h-9 text-sm px-4 py-1.5",md:"h-10 text-base px-4 py-2",lg:"h-11 text-lg px-5 py-2.5"},borderModifier:{borderless:"border-0","borderless-left":"border-l-0","borderless-right":"border-r-0"},borderRadiusModifier:{square:"rounded-none","square-left":"rounded-l-none","square-right":"rounded-r-none"}},defaultVariants:{variant:"primary",size:"md"}});let{variant:d="primary"}=e,{size:a="md"}=e,{borderModifier:b=null}=e,{borderRadiusModifier:s=null}=e,{disabled:f=!1}=e,{loading:h=!1}=e,{leadingIcon:M=null}=e,{trailingIcon:y=null}=e,{count:u=0}=e,{id:g=null}=e,{href:L=null}=e,{target:U=null}=e,{active:D=!1}=e;function ae(c){ce.call(this,l,c)}return l.$$set=c=>{e=q(q({},e),be(c)),i(14,r=F(e,t)),"variant"in c&&i(0,d=c.variant),"size"in c&&i(1,a=c.size),"borderModifier"in c&&i(2,b=c.borderModifier),"borderRadiusModifier"in c&&i(3,s=c.borderRadiusModifier),"disabled"in c&&i(4,f=c.disabled),"loading"in c&&i(5,h=c.loading),"leadingIcon"in c&&i(6,M=c.leadingIcon),"trailingIcon"in c&&i(7,y=c.trailingIcon),"count"in c&&i(8,u=c.count),"id"in c&&i(9,g=c.id),"href"in c&&i(10,L=c.href),"target"in c&&i(11,U=c.target),"active"in c&&i(12,D=c.active),"$$scope"in c&&i(17,o=c.$$scope)},[d,a,b,s,f,h,M,y,u,g,L,U,D,v,r,n,ae,o]}class je extends fe{constructor(e){super(),ue(this,e,ze,we,de,{variant:0,size:1,borderModifier:2,borderRadiusModifier:3,disabled:4,loading:5,leadingIcon:6,trailingIcon:7,count:8,id:9,href:10,target:11,active:12})}}export{je as B,ke as c}; +import{S as fe,b as ue,a as de,e as O,f as p,z as N,g as _,h as I,j as m,k,T as F,O as q,U as be,$ as ce,G as $,m as C,c as P,p as V,q as E,d as S,P as G,Q as j,L as T,M as me,_ as ge,H as x,I as ee,J as ie,R as te,C as w,D as z,E as R,X as he,F as A,w as le,x as re,y as ne}from"./index.0942deb7.js";import{B as oe}from"./badge.5c29cec8.js";import{I as B}from"./icon.33308831.js";import{L as _e}from"./link.faba7c50.js";function se(l){var e,i,t="";if(typeof l=="string"||typeof l=="number")t+=l;else if(typeof l=="object")if(Array.isArray(l))for(e=0;etypeof l=="boolean"?"".concat(l):l===0?"0":l,J=ve,ke=(l,e)=>i=>{var t;if((e==null?void 0:e.variants)==null)return J(l,i==null?void 0:i.class,i==null?void 0:i.className);const{variants:r,defaultVariants:n}=e,o=Object.keys(r).map(a=>{const b=i==null?void 0:i[a],s=n==null?void 0:n[a];if(b===null)return null;const f=H(b)||H(s);return r[a][f]}),v=i&&Object.entries(i).reduce((a,b)=>{let[s,f]=b;return f===void 0||(a[s]=f),a},{}),d=e==null||(t=e.compoundVariants)===null||t===void 0?void 0:t.reduce((a,b)=>{let{class:s,className:f,...h}=b;return Object.entries(h).every(M=>{let[y,u]=M;return Array.isArray(u)?u.includes({...n,...v}[y]):{...n,...v}[y]===u})?[...a,s,f]:a},[]);return J(l,o,d,i==null?void 0:i.class,i==null?void 0:i.className)};function pe(l){let e,i,t,r,n,o,v,d,a=(l[6]||l[5])&&K(l);const b=l[15].default,s=$(b,l,l[17],null);let f=l[7]&&Q(l),h=l[8]>0&&W(l),M=[{disabled:l[4]},{id:l[9]},{type:"button"},{class:n=l[13]({variant:l[0],size:l[1],borderModifier:l[2],borderRadiusModifier:l[3]})},l[14]],y={};for(let u=0;u{a=null}),I()),s&&s.p&&(!o||g&131072)&&x(s,b,u,u[17],o?ie(b,u[17],g,null):ee(u[17]),null),u[7]?f?(f.p(u,g),g&128&&m(f,1)):(f=Q(u),f.c(),m(f,1),f.m(e,r)):f&&(N(),_(f,1,1,()=>{f=null}),I()),u[8]>0?h?(h.p(u,g),g&256&&m(h,1)):(h=W(u),h.c(),m(h,1),h.m(e,null)):h&&(N(),_(h,1,1,()=>{h=null}),I()),G(e,y=te(M,[(!o||g&16)&&{disabled:u[4]},(!o||g&512)&&{id:u[9]},{type:"button"},(!o||g&15&&n!==(n=u[13]({variant:u[0],size:u[1],borderModifier:u[2],borderRadiusModifier:u[3]})))&&{class:n},g&16384&&u[14]])),j(e,"active",u[12])},i(u){o||(m(a),m(s,u),m(f),m(h),o=!0)},o(u){_(a),_(s,u),_(f),_(h),o=!1},d(u){u&&k(e),a&&a.d(),s&&s.d(u),f&&f.d(),h&&h.d(),v=!1,d()}}}function ye(l){let e,i;const t=[{target:l[11]},{href:l[10]},{id:l[9]},{role:"button"},{type:"button"},{class:l[13]({variant:l[0],size:l[1],borderModifier:l[2],borderRadiusModifier:l[3]})},l[14]];let r={$$slots:{default:[Ie]},$$scope:{ctx:l}};for(let n=0;n0&&Z(l);return{c(){o&&o.c(),e=P(),d&&d.c(),i=P(),a&&a.c(),t=P(),b&&b.c(),r=O()},l(s){o&&o.l(s),e=S(s),d&&d.l(s),i=S(s),a&&a.l(s),t=S(s),b&&b.l(s),r=O()},m(s,f){o&&o.m(s,f),p(s,e,f),d&&d.m(s,f),p(s,i,f),a&&a.m(s,f),p(s,t,f),b&&b.m(s,f),p(s,r,f),n=!0},p(s,f){s[6]||s[5]?o?(o.p(s,f),f&96&&m(o,1)):(o=X(s),o.c(),m(o,1),o.m(e.parentNode,e)):o&&(N(),_(o,1,1,()=>{o=null}),I()),d&&d.p&&(!n||f&131072)&&x(d,v,s,s[17],n?ie(v,s[17],f,null):ee(s[17]),null),s[7]?a?(a.p(s,f),f&128&&m(a,1)):(a=Y(s),a.c(),m(a,1),a.m(t.parentNode,t)):a&&(N(),_(a,1,1,()=>{a=null}),I()),s[8]>0?b?(b.p(s,f),f&256&&m(b,1)):(b=Z(s),b.c(),m(b,1),b.m(r.parentNode,r)):b&&(N(),_(b,1,1,()=>{b=null}),I())},i(s){n||(m(o),m(d,s),m(a),m(b),n=!0)},o(s){_(o),_(d,s),_(a),_(b),n=!1},d(s){o&&o.d(s),s&&k(e),d&&d.d(s),s&&k(i),a&&a.d(s),s&&k(t),b&&b.d(s),s&&k(r)}}}function we(l){let e,i,t,r;const n=[ye,pe],o=[];function v(d,a){return d[10]&&!d[4]?0:1}return e=v(l),i=o[e]=n[e](l),{c(){i.c(),t=O()},l(d){i.l(d),t=O()},m(d,a){o[e].m(d,a),p(d,t,a),r=!0},p(d,[a]){let b=e;e=v(d),e===b?o[e].p(d,a):(N(),_(o[b],1,1,()=>{o[b]=null}),I(),i=o[e],i?i.p(d,a):(i=o[e]=n[e](d),i.c()),m(i,1),i.m(t.parentNode,t))},i(d){r||(m(i),r=!0)},o(d){_(i),r=!1},d(d){o[e].d(d),d&&k(t)}}}function ze(l,e,i){const t=["variant","size","borderModifier","borderRadiusModifier","disabled","loading","leadingIcon","trailingIcon","count","id","href","target","active"];let r=F(e,t),{$$slots:n={},$$scope:o}=e;const v=ke(["relative","flex","w-fit","items-center","justify-center","gap-2","rounded-lg","disabled:opacity-50","disabled:cursor-not-allowed","border-2","border-box","transition-colors","transition-shadow","focus-visible:outline-none"],{variants:{variant:{primary:"border-gray-900 bg-gray-900 bg-gradient-to-br text-white [&:not(:disabled):hover]:shadow-focus [&:not(:disabled):hover]:shadow-blue-600/50 [&:not(:disabled):hover]:from-blue-100 [&:not(:disabled):hover]:to-purple-100 [&:not(:disabled):hover]:text-gray-900 [&:not(:disabled):hover]:border-indigo-600 focus-visible:shadow-focus focus-visible:shadow-blue-600/50 focus-visible:from-blue-100 focus-visible:to-purple-100 focus-visible:text-gray-900 focus-visible:border-indigo-600",secondary:"border-gray-900 bg-white text-gray-900 [&:not(:disabled):hover]:shadow-focus [&:not(:disabled):hover]:shadow-blue-600/50 [&:not(:disabled):hover]:bg-gray-900 [&:not(:disabled):hover]:text-white [&:not(:disabled):hover]:border-white focus-visible:shadow-focus focus-visible:shadow-blue-600/50 focus-visible:bg-gray-900 focus-visible:text-white focus-visible:border-white",destructive:"border-red-700 bg-red-700 text-white [&:not(:disabled):hover]:shadow-focus [&:not(:disabled):hover]:shadow-red-200/50 [&:not(:disabled):hover]:border-white focus-visible:border-white focus-visible:shadow-focus focus-visible:shadow-red-200/50",ghost:"border-[transparent] bg-[transparent] text-gray-600 [&:not(:disabled):hover]:shadow-focus [&:not(:disabled):hover]:shadow-blue-600/50 [&:not(:disabled):hover]:bg-indigo-100 [&:not(:disabled):hover]:border-indigo-600 focus-visible:shadow-focus focus-visible:shadow-blue-600/50 focus-visible:bg-indigo-100 focus-visible:border-indigo-600","table-header":"border-gray-900 bg-gray-900 text-white focus-visible:shadow-focus focus-visible:shadow-blue-600/50 focus-visible:border-white"},size:{xs:"h-8 text-xs px-2 py-1",sm:"h-9 text-sm px-4 py-1.5",md:"h-10 text-base px-4 py-2",lg:"h-11 text-lg px-5 py-2.5"},borderModifier:{borderless:"border-0","borderless-left":"border-l-0","borderless-right":"border-r-0"},borderRadiusModifier:{square:"rounded-none","square-left":"rounded-l-none","square-right":"rounded-r-none"}},defaultVariants:{variant:"primary",size:"md"}});let{variant:d="primary"}=e,{size:a="md"}=e,{borderModifier:b=null}=e,{borderRadiusModifier:s=null}=e,{disabled:f=!1}=e,{loading:h=!1}=e,{leadingIcon:M=null}=e,{trailingIcon:y=null}=e,{count:u=0}=e,{id:g=null}=e,{href:L=null}=e,{target:U=null}=e,{active:D=!1}=e;function ae(c){ce.call(this,l,c)}return l.$$set=c=>{e=q(q({},e),be(c)),i(14,r=F(e,t)),"variant"in c&&i(0,d=c.variant),"size"in c&&i(1,a=c.size),"borderModifier"in c&&i(2,b=c.borderModifier),"borderRadiusModifier"in c&&i(3,s=c.borderRadiusModifier),"disabled"in c&&i(4,f=c.disabled),"loading"in c&&i(5,h=c.loading),"leadingIcon"in c&&i(6,M=c.leadingIcon),"trailingIcon"in c&&i(7,y=c.trailingIcon),"count"in c&&i(8,u=c.count),"id"in c&&i(9,g=c.id),"href"in c&&i(10,L=c.href),"target"in c&&i(11,U=c.target),"active"in c&&i(12,D=c.active),"$$scope"in c&&i(17,o=c.$$scope)},[d,a,b,s,f,h,M,y,u,g,L,U,D,v,r,n,ae,o]}class je extends fe{constructor(e){super(),ue(this,e,ze,we,de,{variant:0,size:1,borderModifier:2,borderRadiusModifier:3,disabled:4,loading:5,leadingIcon:6,trailingIcon:7,count:8,id:9,href:10,target:11,active:12})}}export{je as B,ke as c}; diff --git a/ui/assets/local/_app/immutable/chunks/code-block.c6eabdb8.js b/ui/assets/local/_app/immutable/chunks/code-block.a5088abe.js similarity index 99% rename from ui/assets/local/_app/immutable/chunks/code-block.c6eabdb8.js rename to ui/assets/local/_app/immutable/chunks/code-block.a5088abe.js index a4867da376..d5b2f8bebf 100644 --- a/ui/assets/local/_app/immutable/chunks/code-block.c6eabdb8.js +++ b/ui/assets/local/_app/immutable/chunks/code-block.a5088abe.js @@ -1,4 +1,4 @@ -import{S as ta,b as ea,a as ia,O as In,m as _s,c as na,p as Xs,q as Ys,k as dn,d as sa,P as Zs,Q as ni,u as ra,f as oa,L as tr,M as la,_ as ha,R as aa,j as vi,z as fa,g as Nn,h as ca,T as er,N as ua,K as da,o as pa,U as ir,C as ga,D as ma,E as ya,F as ba,$ as wa,A as ka}from"./index.0942deb7.js";import{B as xa}from"./button.d6281b70.js";import{c as Sa}from"./copy-to-clipboard.8b0ec1c6.js";import{p as va,s as Ca}from"./parse-with-big-int.0036a80a.js";import{c as it}from"./icon.33308831.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,O as In,m as _s,c as na,p as Xs,q as Ys,k as dn,d as sa,P as Zs,Q as ni,u as ra,f as oa,L as tr,M as la,_ as ha,R as aa,j as vi,z as fa,g as Nn,h as ca,T as er,N as ua,K as da,o as pa,U as ir,C as ga,D as ma,E as ya,F as ba,$ as wa,A as ka}from"./index.0942deb7.js";import{B as xa}from"./button.d6281b70.js";import{c as Sa}from"./copy-to-clipboard.24b8f9c0.js";import{p as va,s as Ca}from"./parse-with-big-int.0036a80a.js";import{c as it}from"./icon.33308831.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.8b0ec1c6.js b/ui/assets/local/_app/immutable/chunks/copy-to-clipboard.24b8f9c0.js similarity index 77% rename from ui/assets/local/_app/immutable/chunks/copy-to-clipboard.8b0ec1c6.js rename to ui/assets/local/_app/immutable/chunks/copy-to-clipboard.24b8f9c0.js index 4d3c1f1021..b479b2a163 100644 --- a/ui/assets/local/_app/immutable/chunks/copy-to-clipboard.8b0ec1c6.js +++ b/ui/assets/local/_app/immutable/chunks/copy-to-clipboard.24b8f9c0.js @@ -1 +1 @@ -import{w as c}from"./singletons.0a6e865f.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.d67f4e6b.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.20a8d8a5.js b/ui/assets/local/_app/immutable/chunks/core-user.1d8c4365.js similarity index 63% rename from ui/assets/local/_app/immutable/chunks/core-user.20a8d8a5.js rename to ui/assets/local/_app/immutable/chunks/core-user.1d8c4365.js index fda6d2cfc3..be7a1f8682 100644 --- a/ui/assets/local/_app/immutable/chunks/core-user.20a8d8a5.js +++ b/ui/assets/local/_app/immutable/chunks/core-user.1d8c4365.js @@ -1 +1 @@ -import{r}from"./singletons.0a6e865f.js";import{al as t,af as o}from"./index.0942deb7.js";const e="CoreUser",s=r({namespaceWriteDisabled:()=>!1}),c=()=>t(e)?o(e):s;export{c}; +import{r}from"./singletons.d67f4e6b.js";import{al as t,af as o}from"./index.0942deb7.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.74f5c7e0.js b/ui/assets/local/_app/immutable/chunks/data-encoder-config.e34150f0.js similarity index 74% rename from ui/assets/local/_app/immutable/chunks/data-encoder-config.74f5c7e0.js rename to ui/assets/local/_app/immutable/chunks/data-encoder-config.e34150f0.js index 2aa35c5b7d..8628e917e6 100644 --- a/ui/assets/local/_app/immutable/chunks/data-encoder-config.74f5c7e0.js +++ b/ui/assets/local/_app/immutable/chunks/data-encoder-config.e34150f0.js @@ -1 +1 @@ -import{w as a}from"./singletons.0a6e865f.js";import{p as e}from"./persist-store.dd882958.js";import{h as n}from"./has.233e577a.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.d67f4e6b.js";import{p as e}from"./persist-store.3ea3c364.js";import{h as n}from"./has.233e577a.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.3d6f13eb.js b/ui/assets/local/_app/immutable/chunks/decode-payload.19da7edc.js similarity index 94% rename from ui/assets/local/_app/immutable/chunks/decode-payload.3d6f13eb.js rename to ui/assets/local/_app/immutable/chunks/decode-payload.19da7edc.js index 726aa6d278..ef121ddf08 100644 --- a/ui/assets/local/_app/immutable/chunks/decode-payload.3d6f13eb.js +++ b/ui/assets/local/_app/immutable/chunks/decode-payload.19da7edc.js @@ -1 +1 @@ -import{ac as s}from"./index.0942deb7.js";import{p as T}from"./stores.73c3690d.js";import{t as W}from"./translate.135d909a.js";import{s as O,b as B,c as E,o as P,p as F,i as L}from"./data-encoder-config.74f5c7e0.js";import{h as m,i as R}from"./has.233e577a.js";import{v as _,a as w}from"./is-http.b24d498b.js";import{s as x,p as b}from"./parse-with-big-int.0036a80a.js";import{a as z}from"./auth-user.a1d7e47f.js";async function H({payloads:o,namespace:e,settings:c,accessToken:r,encode:d=!1}){var C,j,k;const i=(C=c==null?void 0:c.codec)==null?void 0:C.endpoint,n=(j=c==null?void 0:c.codec)==null?void 0:j.passAccessToken,a=(k=c==null?void 0:c.codec)==null?void 0:k.includeCredentials,t={"Content-Type":"application/json","X-Namespace":e};if(n)if(_(i))t.Authorization=`Bearer ${r}`;else return O(),o;const f=a?{headers:t,credentials:"include",method:"POST",body:x(o)}:{headers:t,method:"POST",body:x(o)};return fetch(i+(d?"/encode":"/decode"),f).then(h=>{if(m(h,"ok")&&!h.ok)throw{statusCode:h.status,statusText:h.statusText,response:h,message:d?W("common.encode-failed"):W("common.decode-failed")};return h.json()}).then(h=>(B(),h)).catch(h=>(O(h),o))}const J=(o,e=E,c=P)=>{var d;return s(c)&&s(e)||((d=o==null?void 0:o.codec)==null?void 0:d.endpoint)||s(e)||""},K=(o,e=F,c=E,r=P)=>{var n,a;const d=s(r)&&s(c),i=(n=o==null?void 0:o.codec)!=null&&n.endpoint?!!((a=o==null?void 0:o.codec)!=null&&a.passAccessToken):!!s(e);return d?!!s(e):i},N=(o,e=L,c=E,r=P)=>{var n,a;const d=s(r)&&s(c),i=(n=o==null?void 0:o.codec)!=null&&n.endpoint?!!((a=o==null?void 0:o.codec)!=null&&a.includeCredentials):!!s(e);return d?!!s(e):i},S=o=>Array.isArray(o)?o:[o];function u(o,e=!0){var r;if(o===null)return o;const c=w(String(((r=o==null?void 0:o.metadata)==null?void 0:r.encoding)??""));if(o!=null&&o.metadata&&(o.metadata.encodingDecoded=c),c!=null&&c.startsWith("json/"))try{const d=b(w(String((o==null?void 0:o.data)??"")));return e?d:{...o,data:d}}catch(d){console.warn("Could not parse payload: ",d)}return c==="binary/null"?e?null:{...o,data:null}:o}const A=(o,e=!0)=>{if(m(o,"searchAttributes")&&m(o.searchAttributes,"indexedFields")){const c=o.searchAttributes.indexedFields;Object.entries(c).forEach(([r,d])=>{c[r]=u(d,e)})}else if(m(o,"searchAttributes")){const c=o.searchAttributes;Object.entries(c).forEach(([r,d])=>{c[r]=u(d,e)})}if(m(o,"memo")&&m(o.memo,"fields")){const c=o.memo.fields;Object.entries(c).forEach(([r,d])=>{c[r]=u(d,e)})}if(m(o,"header")&&m(o.header,"fields")){const c=o.header.fields;Object.entries(c).forEach(([r,d])=>{c[r]=u(d,e)})}if(m(o,"queryResult")){const c=o==null?void 0:o.queryResult;Object.entries(c).forEach(([r,d])=>{c[r]=u(d,e)})}return o},q=(o,e,c)=>async(r,d=!0)=>{var i;if((i=e==null?void 0:e.codec)!=null&&i.endpoint){const n=await H({payloads:{payloads:r},namespace:o,settings:e,accessToken:c});return((n==null?void 0:n.payloads)??[]).map(a=>u(a,d))}else return r.map(n=>u(n,d))},p=(o,...e)=>{for(const c of e)if(o===c)return!0;return!1},I=async(o,e=s(T).params.namespace,c=s(T).data.settings,r=s(z).accessToken)=>{const d=J(c),i=K(c),n=N(c),a={...c,codec:{...c==null?void 0:c.codec,endpoint:d,passAccessToken:i,includeCredentials:n}},t=q(e,a,r);if(o)for(const f of Object.keys(o))if(p(f,"payloads","encodedAttributes")&&o[f]){const l=S(o[f]),C=await t(l);o[f]=p(f,"encodedAttributes")?C[0]:C}else{const l=o[f];R(l)&&(o[f]=await I(l,e,c,r))}return o},U=async(o,e,c,r,d=!0)=>{if(!o)return o;const i=q(e,c,r),n={...o};if(o)for(const a of Object.keys(n))if(p(a,"payloads","encodedAttributes")&&n[a]){const t=S(n[a]),f=await i(t,d);n[a]=p(a,"encodedAttributes")?f[0]:f}else{const t=n[a];R(t)&&(n[a]=await U(t,e,c,r,d))}return n},v=async({attributes:o,namespace:e,settings:c,accessToken:r})=>await I(o,e,c,r);export{u as a,H as b,v as c,A as d,K as e,N as f,J as g,U as h}; +import{ac as s}from"./index.0942deb7.js";import{p as T}from"./stores.255470ec.js";import{t as W}from"./translate.135d909a.js";import{s as O,b as B,c as E,o as P,p as F,i as L}from"./data-encoder-config.e34150f0.js";import{h as m,i as R}from"./has.233e577a.js";import{v as _,a as w}from"./is-http.b24d498b.js";import{s as x,p as b}from"./parse-with-big-int.0036a80a.js";import{a as z}from"./auth-user.6dc931ea.js";async function H({payloads:o,namespace:e,settings:c,accessToken:r,encode:d=!1}){var C,j,k;const i=(C=c==null?void 0:c.codec)==null?void 0:C.endpoint,n=(j=c==null?void 0:c.codec)==null?void 0:j.passAccessToken,a=(k=c==null?void 0:c.codec)==null?void 0:k.includeCredentials,t={"Content-Type":"application/json","X-Namespace":e};if(n)if(_(i))t.Authorization=`Bearer ${r}`;else return O(),o;const f=a?{headers:t,credentials:"include",method:"POST",body:x(o)}:{headers:t,method:"POST",body:x(o)};return fetch(i+(d?"/encode":"/decode"),f).then(h=>{if(m(h,"ok")&&!h.ok)throw{statusCode:h.status,statusText:h.statusText,response:h,message:d?W("common.encode-failed"):W("common.decode-failed")};return h.json()}).then(h=>(B(),h)).catch(h=>(O(h),o))}const J=(o,e=E,c=P)=>{var d;return s(c)&&s(e)||((d=o==null?void 0:o.codec)==null?void 0:d.endpoint)||s(e)||""},K=(o,e=F,c=E,r=P)=>{var n,a;const d=s(r)&&s(c),i=(n=o==null?void 0:o.codec)!=null&&n.endpoint?!!((a=o==null?void 0:o.codec)!=null&&a.passAccessToken):!!s(e);return d?!!s(e):i},N=(o,e=L,c=E,r=P)=>{var n,a;const d=s(r)&&s(c),i=(n=o==null?void 0:o.codec)!=null&&n.endpoint?!!((a=o==null?void 0:o.codec)!=null&&a.includeCredentials):!!s(e);return d?!!s(e):i},S=o=>Array.isArray(o)?o:[o];function u(o,e=!0){var r;if(o===null)return o;const c=w(String(((r=o==null?void 0:o.metadata)==null?void 0:r.encoding)??""));if(o!=null&&o.metadata&&(o.metadata.encodingDecoded=c),c!=null&&c.startsWith("json/"))try{const d=b(w(String((o==null?void 0:o.data)??"")));return e?d:{...o,data:d}}catch(d){console.warn("Could not parse payload: ",d)}return c==="binary/null"?e?null:{...o,data:null}:o}const A=(o,e=!0)=>{if(m(o,"searchAttributes")&&m(o.searchAttributes,"indexedFields")){const c=o.searchAttributes.indexedFields;Object.entries(c).forEach(([r,d])=>{c[r]=u(d,e)})}else if(m(o,"searchAttributes")){const c=o.searchAttributes;Object.entries(c).forEach(([r,d])=>{c[r]=u(d,e)})}if(m(o,"memo")&&m(o.memo,"fields")){const c=o.memo.fields;Object.entries(c).forEach(([r,d])=>{c[r]=u(d,e)})}if(m(o,"header")&&m(o.header,"fields")){const c=o.header.fields;Object.entries(c).forEach(([r,d])=>{c[r]=u(d,e)})}if(m(o,"queryResult")){const c=o==null?void 0:o.queryResult;Object.entries(c).forEach(([r,d])=>{c[r]=u(d,e)})}return o},q=(o,e,c)=>async(r,d=!0)=>{var i;if((i=e==null?void 0:e.codec)!=null&&i.endpoint){const n=await H({payloads:{payloads:r},namespace:o,settings:e,accessToken:c});return((n==null?void 0:n.payloads)??[]).map(a=>u(a,d))}else return r.map(n=>u(n,d))},p=(o,...e)=>{for(const c of e)if(o===c)return!0;return!1},I=async(o,e=s(T).params.namespace,c=s(T).data.settings,r=s(z).accessToken)=>{const d=J(c),i=K(c),n=N(c),a={...c,codec:{...c==null?void 0:c.codec,endpoint:d,passAccessToken:i,includeCredentials:n}},t=q(e,a,r);if(o)for(const f of Object.keys(o))if(p(f,"payloads","encodedAttributes")&&o[f]){const l=S(o[f]),C=await t(l);o[f]=p(f,"encodedAttributes")?C[0]:C}else{const l=o[f];R(l)&&(o[f]=await I(l,e,c,r))}return o},U=async(o,e,c,r,d=!0)=>{if(!o)return o;const i=q(e,c,r),n={...o};if(o)for(const a of Object.keys(n))if(p(a,"payloads","encodedAttributes")&&n[a]){const t=S(n[a]),f=await i(t,d);n[a]=p(a,"encodedAttributes")?f[0]:f}else{const t=n[a];R(t)&&(n[a]=await U(t,e,c,r,d))}return n},v=async({attributes:o,namespace:e,settings:c,accessToken:r})=>await I(o,e,c,r);export{u as a,H as b,v as c,A as d,K as e,N as f,J as g,U as h}; diff --git a/ui/assets/local/_app/immutable/chunks/drawer.03af1b30.js b/ui/assets/local/_app/immutable/chunks/drawer.56956d31.js similarity index 96% rename from ui/assets/local/_app/immutable/chunks/drawer.03af1b30.js rename to ui/assets/local/_app/immutable/chunks/drawer.56956d31.js index 3ee3f95247..0c2a5b7668 100644 --- a/ui/assets/local/_app/immutable/chunks/drawer.03af1b30.js +++ b/ui/assets/local/_app/immutable/chunks/drawer.56956d31.js @@ -1 +1 @@ -import{S as ee,b as te,a as se,e as N,f as F,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 z,w as ie,p as B,q as H,D as ne,d as A,x as oe,u as d,Q as V,L as p,E as re,a2 as P,M as fe,y as ue,H as Z,I as x,J as $,a3 as _e,a9 as Q,F as ce,r as de}from"./index.0942deb7.js";import{f as T}from"./index.2fa3ca4d.js";import{c as me,f as he}from"./menu.55d17299.js";import{I as be}from"./icon-button.cdadbc6c.js";const ve=e=>({}),K=e=>({});function R(e){let t,a,s,l,i,r,h,g,j,w,I,m,E,o,k,_,q,G;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=z(),r=L("div"),h=L("h1"),g=ie(e[1]),j=z(),f&&f.c(),I=z(),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=A(n),r=B(n,"DIV",{class:!0});var S=H(r);h=B(S,"H1",{class:!0});var J=H(h);g=oe(J,e[1]),J.forEach(b),j=A(S),f&&f.l(S),S.forEach(b),I=A(n),m=B(n,"DIV",{class:!0});var M=H(m);c&&c.l(M),M.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){F(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||(G=[P(me.call(null,t)),fe(t,"click-outside",function(){O(e[4])&&e[4].apply(this,arguments)}),P(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=Q(t,T,e[7],!0)),k.run(1)}),_=!0)},o(u){D(s.$$.fragment,u),D(f),D(c,u),k||(k=Q(t,T,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(G)}}}function U(e){let t,a;const s=e[10].subtitle,l=Y(s,e,e[9],K);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){F(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]),K)},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),F(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 F,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 z,w as ie,p as B,q as H,D as ne,d as A,x as oe,u as d,Q as V,L as p,E as re,a2 as P,M as fe,y as ue,H as Z,I as x,J as $,a3 as _e,a9 as Q,F as ce,r as de}from"./index.0942deb7.js";import{f as T}from"./index.2fa3ca4d.js";import{c as me,f as he}from"./menu.1cf8fd74.js";import{I as be}from"./icon-button.cdadbc6c.js";const ve=e=>({}),K=e=>({});function R(e){let t,a,s,l,i,r,h,g,j,w,I,m,E,o,k,_,q,G;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=z(),r=L("div"),h=L("h1"),g=ie(e[1]),j=z(),f&&f.c(),I=z(),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=A(n),r=B(n,"DIV",{class:!0});var S=H(r);h=B(S,"H1",{class:!0});var J=H(h);g=oe(J,e[1]),J.forEach(b),j=A(S),f&&f.l(S),S.forEach(b),I=A(n),m=B(n,"DIV",{class:!0});var M=H(m);c&&c.l(M),M.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){F(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||(G=[P(me.call(null,t)),fe(t,"click-outside",function(){O(e[4])&&e[4].apply(this,arguments)}),P(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=Q(t,T,e[7],!0)),k.run(1)}),_=!0)},o(u){D(s.$$.fragment,u),D(f),D(c,u),k||(k=Q(t,T,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(G)}}}function U(e){let t,a;const s=e[10].subtitle,l=Y(s,e,e[9],K);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){F(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]),K)},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),F(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.9ad9aabe.js b/ui/assets/local/_app/immutable/chunks/error.6e410547.js similarity index 94% rename from ui/assets/local/_app/immutable/chunks/error.9ad9aabe.js rename to ui/assets/local/_app/immutable/chunks/error.6e410547.js index 655e69f2b4..5ae668d455 100644 --- a/ui/assets/local/_app/immutable/chunks/error.9ad9aabe.js +++ b/ui/assets/local/_app/immutable/chunks/error.6e410547.js @@ -1,4 +1,4 @@ -import{S as F,b as H,a as I,m as g,w as p,c as L,C as M,p as E,q as b,x as _,k as h,d as P,D as z,u as c,f as B,L as s,E as A,M as G,y as J,j as K,g as Q,F as R,N as V}from"./index.0942deb7.js";import{a as W}from"./navigation.83f47780.js";import{L as X}from"./link.f0cc0bf5.js";import{h as Y}from"./has.233e577a.js";function Z(l){let e;return{c(){e=p("jump on our Slack Channel")},l(t){e=_(t,"jump on our Slack Channel")},m(t,a){B(t,e,a)},d(t){t&&h(e)}}}function ee(l){let e,t,a,d,u,v,x,o,$,w,i,m,y,S,f,N,k,j,U;return f=new X({props:{newTab:!0,href:"https://temporal.io/slack",$$slots:{default:[Z]},$$scope:{ctx:l}}}),{c(){e=g("section"),t=g("h1"),a=p(l[0]),d=L(),u=g("p"),v=p("Uh oh. There's an error."),x=L(),o=g("p"),$=p(l[1]),w=L(),i=g("p"),m=g("button"),y=p("Try a refresh"),S=p(` +import{S as F,b as H,a as I,m as g,w as p,c as L,C as M,p as E,q as b,x as _,k as h,d as P,D as z,u as c,f as B,L as s,E as A,M as G,y as J,j as K,g as Q,F as R,N as V}from"./index.0942deb7.js";import{a as W}from"./navigation.dde0d4fa.js";import{L as X}from"./link.faba7c50.js";import{h as Y}from"./has.233e577a.js";function Z(l){let e;return{c(){e=p("jump on our Slack Channel")},l(t){e=_(t,"jump on our Slack Channel")},m(t,a){B(t,e,a)},d(t){t&&h(e)}}}function ee(l){let e,t,a,d,u,v,x,o,$,w,i,m,y,S,f,N,k,j,U;return f=new X({props:{newTab:!0,href:"https://temporal.io/slack",$$slots:{default:[Z]},$$scope:{ctx:l}}}),{c(){e=g("section"),t=g("h1"),a=p(l[0]),d=L(),u=g("p"),v=p("Uh oh. There's an error."),x=L(),o=g("p"),$=p(l[1]),w=L(),i=g("p"),m=g("button"),y=p("Try a refresh"),S=p(` or `),M(f.$$.fragment),N=p("."),this.h()},l(n){e=E(n,"SECTION",{"aria-roledescription":!0,class:!0,role:!0});var r=b(e);t=E(r,"H1",{class:!0});var T=b(t);a=_(T,l[0]),T.forEach(h),d=P(r),u=E(r,"P",{class:!0});var q=b(u);v=_(q,"Uh oh. There's an error."),q.forEach(h),x=P(r),o=E(r,"P",{class:!0});var D=b(o);$=_(D,l[1]),D.forEach(h),w=P(r),i=E(r,"P",{class:!0});var C=b(i);m=E(C,"BUTTON",{class:!0,tabindex:!0});var O=b(m);y=_(O,"Try a refresh"),O.forEach(h),S=_(C,` or diff --git a/ui/assets/local/_app/immutable/chunks/event-history-file-import.d2dbee6f.js b/ui/assets/local/_app/immutable/chunks/event-history-file-import.de8c0286.js similarity index 84% rename from ui/assets/local/_app/immutable/chunks/event-history-file-import.d2dbee6f.js rename to ui/assets/local/_app/immutable/chunks/event-history-file-import.de8c0286.js index 8b9a44c902..9001ac3dc8 100644 --- a/ui/assets/local/_app/immutable/chunks/event-history-file-import.d2dbee6f.js +++ b/ui/assets/local/_app/immutable/chunks/event-history-file-import.de8c0286.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,M as j,j as q,g as G,F as H,K as T,n as D}from"./index.0942deb7.js";import{g as K}from"./navigation.83f47780.js";import{B as M}from"./button.c09134bf.js";import{t as y}from"./translate.135d909a.js";import{g as P}from"./index.5fe2e895.js";import{t as R}from"./index.db10a648.js";import{i as W,a as z}from"./import-events.155db9b7.js";import{l as J}from"./namespaces.5c0c98b2.js";import{t as F}from"./toaster.60da8f1b.js";import{p as O}from"./parse-with-big-int.0036a80a.js";import{f as Q}from"./route-for.ecd88549.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 M({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=O(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=P(a);W.set(a),z.set(p),n(0,s=!1);const c=Q(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,M as j,j as q,g as G,F as H,K as T,n as D}from"./index.0942deb7.js";import{g as K}from"./navigation.dde0d4fa.js";import{B as M}from"./button.72eef818.js";import{t as y}from"./translate.135d909a.js";import{g as P}from"./index.5fe2e895.js";import{t as R}from"./index.dca55ccc.js";import{i as W,a as z}from"./import-events.ad8d6143.js";import{l as J}from"./namespaces.68caf21c.js";import{t as F}from"./toaster.cfecd6c1.js";import{p as O}from"./parse-with-big-int.0036a80a.js";import{f as Q}from"./route-for.18f9590b.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 M({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=O(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=P(a);W.set(a),z.set(p),n(0,s=!1);const c=Q(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.14d935eb.js b/ui/assets/local/_app/immutable/chunks/event-summary-table.e279c965.js similarity index 98% rename from ui/assets/local/_app/immutable/chunks/event-summary-table.14d935eb.js rename to ui/assets/local/_app/immutable/chunks/event-summary-table.e279c965.js index b5f9048e15..daab9612c5 100644 --- a/ui/assets/local/_app/immutable/chunks/event-summary-table.14d935eb.js +++ b/ui/assets/local/_app/immutable/chunks/event-summary-table.e279c965.js @@ -1 +1 @@ -import{S as se,b as ae,a as ie,m as $,p as b,q as k,k as d,u as v,f as E,L as g,z as W,g as h,h as Q,j as p,C as I,D as T,E as y,F as D,n as re,G as Ct,c as S,d as G,Y as Ye,Q as H,M as ze,H as Pt,I as Vt,J as St,O as $e,U as Te,$ as Ut,e as z,N as Gt,aa as Ce,ab as Pe,w as M,x as j,y as F,K as le,_ as Nt,ag as Jt,R as Kt,X as Xt,A as Yt,a0 as Zt,a1 as xt,a3 as el,a4 as tl,a5 as Fe,a7 as ll}from"./index.0942deb7.js";import{E as nl}from"./empty-state.64fbab21.js";import{L as rl}from"./loading.e7565465.js";import{t as N}from"./translate.135d909a.js";import{a as sl}from"./index.2fa3ca4d.js";import{p as be}from"./stores.73c3690d.js";import{I as me}from"./icon.33308831.js";import{L as ge}from"./link.f0cc0bf5.js";import{e as qe,a as Be,b as He,i as ve}from"./index.5fe2e895.js";import{c as Oe,e as We,b as al}from"./event-view.33fc78e9.js";import{t as il,r as ol,b as Ze}from"./time-format.7dc1f425.js";import{a as xe,g as fl,b as cl,s as Ot,c as Lt,d as Rt,e as Le,f as Mt,h as ul,i as et}from"./format-event-attributes.1749c5f9.js";import{q as tt}from"./format-time.5082c525.js";import{C as Re}from"./is-event-type.7aa6d0ba.js";import{m as Me,g as he,n as Qe}from"./route-for.ecd88549.js";import{C as Ve}from"./code-block.c6eabdb8.js";import{C as ye}from"./index.ad79a693.js";import{f as X}from"./format-camel-case.887ffc78.js";import{P as je}from"./payload-decoder.31bd549e.js";import{T as jt,a as ml}from"./table-header-row.b9d52458.js";import{M as Ft,a as qt,b as Bt,d as Ae}from"./menu.55d17299.js";import{M as Ht}from"./menu-divider.79623dfc.js";import{u as Wt}from"./update-query-parameters.6de0b7d2.js";import{B as _l}from"./button.c09134bf.js";import{w as dl}from"./singletons.0a6e865f.js";import{C as pl}from"./checkbox.7cf45921.js";import{c as hl,a as gl}from"./get-event-categorization.75c83097.js";import{e as vl}from"./filters.6a09297f.js";import{t as $l}from"./versions.e238352a.js";import{i as bl}from"./version-check.d006b302.js";function kl(s){let e,l;return e=new nl({props:{title:s[1],content:s[2]}}),{c(){I(e.$$.fragment)},l(t){T(e.$$.fragment,t)},m(t,n){y(e,t,n),l=!0},p(t,n){const r={};n&2&&(r.title=t[1]),n&4&&(r.content=t[2]),e.$set(r)},i(t){l||(p(e.$$.fragment,t),l=!0)},o(t){h(e.$$.fragment,t),l=!1},d(t){D(e,t)}}}function wl(s){let e,l;return e=new rl({}),{c(){I(e.$$.fragment)},l(t){T(e.$$.fragment,t)},m(t,n){y(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){D(e,t)}}}function El(s){let e,l,t,n,r;const a=[wl,kl],o=[];function c(i,f){return i[0]?0:1}return t=c(s),n=o[t]=a[t](s),{c(){e=$("tr"),l=$("td"),n.c(),this.h()},l(i){e=b(i,"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(){v(l,"colspan","6"),v(e,"class","row svelte-kwty14")},m(i,f){E(i,e,f),g(e,l),o[t].m(l,null),r=!0},p(i,[f]){let m=t;t=c(i),t===m?o[t].p(i,f):(W(),h(o[m],1,1,()=>{o[m]=null}),Q(),n=o[t],n?n.p(i,f):(n=o[t]=a[t](i),n.c()),p(n,1),n.m(l,null))},i(i){r||(p(n),r=!0)},o(i){h(n),r=!1},d(i){i&&d(e),o[t].d()}}}function Il(s,e,l){let{loading:t=!1}=e,{title:n=N("events.empty-state-title")}=e,{content:r=N("events.empty-state-description")}=e;return s.$$set=a=>{"loading"in a&&l(0,t=a.loading),"title"in a&&l(1,n=a.title),"content"in a&&l(2,r=a.content)},[t,n,r]}class Gr extends se{constructor(e){super(),ae(this,e,Il,El,ie,{loading:0,title:1,content:2})}}function lt(s){let e,l,t;return l=new me({props:{name:s[1]?"spinner":s[3]}}),{c(){e=$("span"),I(l.$$.fragment),this.h()},l(n){e=b(n,"SPAN",{});var r=k(e);T(l.$$.fragment,r),r.forEach(d),this.h()},h(){H(e,"animate-spin",s[1])},m(n,r){E(n,e,r),y(l,e,null),t=!0},p(n,r){const a={};r&10&&(a.name=n[1]?"spinner":n[3]),l.$set(a),(!t||r&2)&&H(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),D(l)}}}function Tl(s){let e,l,t,n,r,a,o=s[3]&<(s);const c=s[7].default,i=Ct(c,s,s[6],null);return{c(){e=$("button"),o&&o.c(),l=S(),i&&i.c(),this.h()},l(f){e=b(f,"BUTTON",{class:!0});var m=k(e);o&&o.l(m),l=G(m),i&&i.l(m),m.forEach(d),this.h()},h(){v(e,"class",t=Ye(`pill ${s[5]} ${s[4]}`)+" svelte-1dt2q6k"),e.disabled=s[0],H(e,"active",s[2])},m(f,m){E(f,e,m),o&&o.m(e,null),g(e,l),i&&i.m(e,null),n=!0,r||(a=ze(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()),i&&i.p&&(!n||m&64)&&Pt(i,c,f,f[6],n?St(c,f[6],m,null):Vt(f[6]),null),(!n||m&48&&t!==(t=Ye(`pill ${f[5]} ${f[4]}`)+" svelte-1dt2q6k"))&&v(e,"class",t),(!n||m&1)&&(e.disabled=f[0]),(!n||m&52)&&H(e,"active",f[2])},i(f){n||(p(o),p(i,f),n=!0)},o(f){h(o),h(i,f),n=!1},d(f){f&&d(e),o&&o.d(),i&&i.d(f),r=!1,a()}}}function yl(s,e,l){let{$$slots:t={},$$scope:n}=e,{disabled:r=!1}=e,{loading:a=!1}=e,{active:o=!1}=e,{icon:c=null}=e,{classes:i=e.class}=e,{color:f="gray"}=e;function m(u){Ut.call(this,s,u)}return s.$$set=u=>{l(9,e=$e($e({},e),Te(u))),"disabled"in u&&l(0,r=u.disabled),"loading"in u&&l(1,a=u.loading),"active"in u&&l(2,o=u.active),"icon"in u&&l(3,c=u.icon),"classes"in u&&l(4,i=u.classes),"color"in u&&l(5,f=u.color),"$$scope"in u&&l(6,n=u.$$scope)},e=Te(e),[r,a,o,c,i,f,n,t,m]}class Dl extends se{constructor(e){super(),ae(this,e,yl,Tl,ie,{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,a=Object.entries(s[0]);const o=c=>c[5];for(let c=0;c{r=null}),Q())},i(a){n||(p(r),n=!0)},o(a){h(r),n=!1},d(a){a&&d(l),r&&r.d(a),a&&d(t)}}}function Cl(s){let e,l,t=s[2]>1&&rt(s);return{c(){t&&t.c(),e=z()},l(n){t&&t.l(n),e=z()},m(n,r){t&&t.m(n,r),E(n,e,r),l=!0},p(n,[r]){n[2]>1?t?(t.p(n,r),r&4&&p(t,1)):(t=rt(n),t.c(),p(t,1),t.m(e.parentNode,e)):t&&(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 Pl(s,e,l){let t,{attributeGrouping:n}=e,{activePill:r}=e;const a=Gt(),o=c=>a("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,i)=>(i.length&&(c+=1),c),0))},[n,r,t,a,o]}class Qt extends se{constructor(e){super(),ae(this,e,Pl,Cl,ie,{attributeGrouping:0,activePill:1})}}function Vl(s){let e,l,t=X(s[0])+"",n,r,a,o,c;return{c(){e=$("div"),l=$("p"),n=M(t),r=S(),a=$("p"),o=$("span"),c=M(s[1]),this.h()},l(i){e=b(i,"DIV",{class:!0});var f=k(e);l=b(f,"P",{class:!0});var m=k(l);n=j(m,t),m.forEach(d),r=G(f),a=b(f,"P",{class:!0});var u=k(a);o=b(u,"SPAN",{class:!0});var _=k(o);c=j(_,s[1]),_.forEach(d),u.forEach(d),f.forEach(d),this.h()},h(){v(l,"class","text-sm"),v(o,"class","select-all px-2 svelte-10e9wiy"),H(o,"badge",!Le(s[0])),v(a,"class","text-sm"),v(e,"class","content detail-row svelte-10e9wiy")},m(i,f){E(i,e,f),g(e,l),g(l,n),g(e,r),g(e,a),g(a,o),g(o,c)},p(i,f){f&1&&t!==(t=X(i[0])+"")&&F(n,t),f&2&&F(c,i[1]),f&1&&H(o,"badge",!Le(i[0]))},i:re,o:re,d(i){i&&d(e)}}}function Sl(s){let e,l,t=X(s[0])+"",n,r,a,o,c;return o=new ye({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=$("div"),l=$("p"),n=M(t),r=S(),a=$("div"),I(o.$$.fragment),this.h()},l(i){e=b(i,"DIV",{class:!0});var f=k(e);l=b(f,"P",{class:!0});var m=k(l);n=j(m,t),m.forEach(d),r=G(f),a=b(f,"DIV",{class:!0});var u=k(a);T(o.$$.fragment,u),u.forEach(d),f.forEach(d),this.h()},h(){v(l,"class","text-sm"),v(a,"class","text-sm"),v(e,"class","content detail-row svelte-10e9wiy")},m(i,f){E(i,e,f),g(e,l),g(l,n),g(e,r),g(e,a),y(o,a,null),c=!0},p(i,f){(!c||f&1)&&t!==(t=X(i[0])+"")&&F(n,t);const m={};f&2&&(m.content=i[1]),f&2050&&(m.$$scope={dirty:f,ctx:i}),o.$set(m)},i(i){c||(p(o.$$.fragment,i),c=!0)},o(i){h(o.$$.fragment,i),c=!1},d(i){i&&d(e),D(o)}}}function Gl(s){let e,l,t=X(s[0])+"",n,r,a,o,c;return o=new ye({props:{copyIconTitle:N("common.copy-icon-title"),copySuccessIconTitle:N("common.copy-success-icon-title"),content:s[1],"container-class":"xl:flex-row",$$slots:{default:[jl]},$$scope:{ctx:s}}}),{c(){e=$("div"),l=$("p"),n=M(t),r=S(),a=$("div"),I(o.$$.fragment),this.h()},l(i){e=b(i,"DIV",{class:!0});var f=k(e);l=b(f,"P",{class:!0});var m=k(l);n=j(m,t),m.forEach(d),r=G(f),a=b(f,"DIV",{class:!0});var u=k(a);T(o.$$.fragment,u),u.forEach(d),f.forEach(d),this.h()},h(){v(l,"class","text-sm"),v(a,"class","text-sm"),v(e,"class","content detail-row svelte-10e9wiy")},m(i,f){E(i,e,f),g(e,l),g(l,n),g(e,r),g(e,a),y(o,a,null),c=!0},p(i,f){(!c||f&1)&&t!==(t=X(i[0])+"")&&F(n,t);const m={};f&2&&(m.content=i[1]),f&2054&&(m.$$scope={dirty:f,ctx:i}),o.$set(m)},i(i){c||(p(o.$$.fragment,i),c=!0)},o(i){h(o.$$.fragment,i),c=!1},d(i){i&&d(e),D(o)}}}function Nl(s){let e,l,t=X(s[0])+"",n,r,a,o,c;return o=new ye({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:[ql]},$$scope:{ctx:s}}}),{c(){e=$("div"),l=$("p"),n=M(t),r=S(),a=$("div"),I(o.$$.fragment),this.h()},l(i){e=b(i,"DIV",{class:!0});var f=k(e);l=b(f,"P",{class:!0});var m=k(l);n=j(m,t),m.forEach(d),r=G(f),a=b(f,"DIV",{class:!0});var u=k(a);T(o.$$.fragment,u),u.forEach(d),f.forEach(d),this.h()},h(){v(l,"class","text-sm"),v(a,"class","text-sm"),v(e,"class","content detail-row svelte-10e9wiy")},m(i,f){E(i,e,f),g(e,l),g(l,n),g(e,r),g(e,a),y(o,a,null),c=!0},p(i,f){(!c||f&1)&&t!==(t=X(i[0])+"")&&F(n,t);const m={};f&2&&(m.content=i[1]),f&2050&&(m.$$scope={dirty:f,ctx:i}),o.$set(m)},i(i){c||(p(o.$$.fragment,i),c=!0)},o(i){h(o.$$.fragment,i),c=!1},d(i){i&&d(e),D(o)}}}function Ol(s){let e,l,t,n=X(s[0])+"",r,a,o,c,i,f,m;const u=[Wl,Hl,Bl],_=[];function w(P,O){var q;return(q=P[1])!=null&&q.payloads?0:P[0]==="searchAttributes"?1:2}o=w(s),c=_[o]=u[o](s);let C=s[5]&&!s[3]&&it(s);return{c(){e=$("div"),l=$("div"),t=$("p"),r=M(n),a=S(),c.c(),f=S(),C&&C.c(),this.h()},l(P){e=b(P,"DIV",{class:!0});var O=k(e);l=b(O,"DIV",{class:!0});var q=k(l);t=b(q,"P",{class:!0});var te=k(t);r=j(te,n),te.forEach(d),a=G(q),c.l(q),q.forEach(d),f=G(O),C&&C.l(O),O.forEach(d),this.h()},h(){v(t,"class","text-sm"),v(l,"class",i="flex flex-col "+(s[5]?"lg:w-1/2":"")),v(e,"class","content code-block-row svelte-10e9wiy"),H(e,"code-with-stack-trace",s[5])},m(P,O){E(P,e,O),g(e,l),g(l,t),g(t,r),g(l,a),_[o].m(l,null),g(e,f),C&&C.m(e,null),m=!0},p(P,O){(!m||O&1)&&n!==(n=X(P[0])+"")&&F(r,n);let q=o;o=w(P),o===q?_[o].p(P,O):(W(),h(_[q],1,1,()=>{_[q]=null}),Q(),c=_[o],c?c.p(P,O):(c=_[o]=u[o](P),c.c()),p(c,1),c.m(l,null)),(!m||O&32&&i!==(i="flex flex-col "+(P[5]?"lg:w-1/2":"")))&&v(l,"class",i),P[5]&&!P[3]?C?(C.p(P,O),O&40&&p(C,1)):(C=it(P),C.c(),p(C,1),C.m(e,null)):C&&(W(),h(C,1,1,()=>{C=null}),Q()),(!m||O&32)&&H(e,"code-with-stack-trace",P[5])},i(P){m||(p(c),p(C),m=!0)},o(P){h(c),h(C),m=!1},d(P){P&&d(e),_[o].d(),C&&C.d()}}}function Ll(s){let e;return{c(){e=M(s[1])},l(l){e=j(l,s[1])},m(l,t){E(l,e,t)},p(l,t){t&2&&F(e,l[1])},d(l){l&&d(e)}}}function Rl(s){let e,l;return e=new ge({props:{href:Me({namespace:s[7],queue:s[1]}),$$slots:{default:[Ll]},$$scope:{ctx:s}}}),{c(){I(e.$$.fragment)},l(t){T(e.$$.fragment,t)},m(t,n){y(e,t,n),l=!0},p(t,n){const r={};n&2&&(r.href=Me({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){D(e,t)}}}function Ml(s){let e;return{c(){e=M(s[1])},l(l){e=j(l,s[1])},m(l,t){E(l,e,t)},p(l,t){t&2&&F(e,l[1])},d(l){l&&d(e)}}}function jl(s){var t;let e,l;return e=new ge({props:{href:he({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(){I(e.$$.fragment)},l(n){T(e.$$.fragment,n)},m(n,r){y(e,n,r),l=!0},p(n,r){var o;const a={};r&4&&(a.href=he({namespace:((o=n[2])==null?void 0:o.namespace)||n[7],workflow:n[2].workflowExecutionWorkflowId,run:n[2].workflowExecutionRunId})),r&2050&&(a.$$scope={dirty:r,ctx:n}),e.$set(a)},i(n){l||(p(e.$$.fragment,n),l=!0)},o(n){h(e.$$.fragment,n),l=!1},d(n){D(e,n)}}}function Fl(s){let e;return{c(){e=M(s[1])},l(l){e=j(l,s[1])},m(l,t){E(l,e,t)},p(l,t){t&2&&F(e,l[1])},d(l){l&&d(e)}}}function ql(s){let e,l;return e=new ge({props:{href:he({namespace:s[7],workflow:s[6],run:s[1]}),$$slots:{default:[Fl]},$$scope:{ctx:s}}}),{c(){I(e.$$.fragment)},l(t){T(e.$$.fragment,t)},m(t,n){y(e,t,n),l=!0},p(t,n){const r={};n&2&&(r.href=he({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){D(e,t)}}}function Bl(s){let e,l;return e=new je({props:{value:s[4],$$slots:{default:[Ql,({decodedValue:t})=>({10:t}),({decodedValue:t})=>t?1024:0]},$$scope:{ctx:s}}}),{c(){I(e.$$.fragment)},l(t){T(e.$$.fragment,t)},m(t,n){y(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){D(e,t)}}}function Hl(s){let e,l;return e=new je({props:{key:"searchAttributes",value:{searchAttributes:s[4]},$$slots:{default:[zl,({decodedValue:t})=>({10:t}),({decodedValue:t})=>t?1024:0]},$$scope:{ctx:s}}}),{c(){I(e.$$.fragment)},l(t){T(e.$$.fragment,t)},m(t,n){y(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){D(e,t)}}}function Wl(s){let e,l;return e=new je({props:{value:s[1],key:"payloads",$$slots:{default:[Ul,({decodedValue:t})=>({10:t}),({decodedValue:t})=>t?1024:0]},$$scope:{ctx:s}}}),{c(){I(e.$$.fragment)},l(t){T(e.$$.fragment,t)},m(t,n){y(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){D(e,t)}}}function Ql(s){let e,l;return e=new Ve({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(){I(e.$$.fragment)},l(t){T(e.$$.fragment,t)},m(t,n){y(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){D(e,t)}}}function zl(s){let e,l;return e=new Ve({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(){I(e.$$.fragment)},l(t){T(e.$$.fragment,t)},m(t,n){y(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){D(e,t)}}}function Ul(s){let e,l;return e=new Ve({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(){I(e.$$.fragment)},l(t){T(e.$$.fragment,t)},m(t,n){y(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){D(e,t)}}}function it(s){let e,l,t=N("workflows.call-stack-tab")+"",n,r,a,o;return a=new Ve({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=$("div"),l=$("p"),n=M(t),r=S(),I(a.$$.fragment),this.h()},l(c){e=b(c,"DIV",{class:!0});var i=k(e);l=b(i,"P",{class:!0});var f=k(l);n=j(f,t),f.forEach(d),r=G(i),T(a.$$.fragment,i),i.forEach(d),this.h()},h(){v(l,"class","text-sm"),v(e,"class","flex flex-col lg:w-1/2")},m(c,i){E(c,e,i),g(e,l),g(l,n),g(e,r),y(a,e,null),o=!0},p(c,i){const f={};i&32&&(f.content=c[5]),a.$set(f)},i(c){o||(p(a.$$.fragment,c),o=!0)},o(c){h(a.$$.fragment,c),o=!1},d(c){c&&d(e),D(a)}}}function Jl(s){let e,l,t,n,r,a,o,c;const i=[Ol,Nl,Gl,Sl,Vl],f=[];function m(u,_){return _&1&&(l=null),_&5&&(t=null),_&1&&(n=null),typeof u[1]=="object"?0:(l==null&&(l=!!Ot(u[0])),l?1:(t==null&&(t=!!Lt(u[0],u[2])),t?2:(n==null&&(n=!!Rt(u[0])),n?3:4)))}return r=m(s,-1),a=f[r]=i[r](s),{c(){e=$("div"),a.c(),this.h()},l(u){e=b(u,"DIV",{class:!0});var _=k(e);a.l(_),_.forEach(d),this.h()},h(){v(e,"class",o="row "+s[8].class+" svelte-10e9wiy")},m(u,_){E(u,e,_),f[r].m(e,null),c=!0},p(u,[_]){let w=r;r=m(u,_),r===w?f[r].p(u,_):(W(),h(f[w],1,1,()=>{f[w]=null}),Q(),a=f[r],a?a.p(u,_):(a=f[r]=i[r](u),a.c()),p(a,1),a.m(e,null)),(!c||_&256&&o!==(o="row "+u[8].class+" svelte-10e9wiy"))&&v(e,"class",o)},i(u){c||(p(a),c=!0)},o(u){h(a),c=!1},d(u){u&&d(e),f[r].d()}}}function Kl(s,e,l){let t,n,r;le(s,be,u=>l(9,r=u));let{key:a}=e,{value:o}=e,{attributes:c}=e,{inline:i=!1}=e;const{workflow:f,namespace:m}=r.params;return s.$$set=u=>{l(8,e=$e($e({},e),Te(u))),"key"in u&&l(0,a=u.key),"value"in u&&l(1,o=u.value),"attributes"in u&&l(2,c=u.attributes),"inline"in u&&l(3,i=u.inline)},s.$$.update=()=>{s.$$.dirty&2&&l(4,t=fl(o)),s.$$.dirty&16&&l(5,n=cl(t))},e=Te(e),[a,o,c,i,t,n,f,m,e]}class zt extends se{constructor(e){super(),ae(this,e,Kl,Jl,ie,{key:0,value:1,attributes:2,inline:3})}}function ot(s,e,l){const t=s.slice();return t[8]=e[l][0],t[9]=e[l][1],t}function Xl(s){let e=s[8]+"",l;return{c(){l=M(e)},l(t){l=j(t,e)},m(t,n){E(t,l,n)},p(t,n){n&1&&e!==(e=t[8]+"")&&F(l,e)},d(t){t&&d(l)}}}function ft(s,e){let l,t,n,r,a,o,c,i,f,m=(Re(e[9])?"LocalActivity":e[9].eventType)+"",u,_,w,C,P,O,q;o=new ge({props:{class:"truncate",href:Qe({eventId:e[8],namespace:e[3],workflow:e[5],run:e[4]}),$$slots:{default:[Xl]},$$scope:{ctx:e}}});function te(){return e[7](e[8])}return{key:s,first:null,c(){l=$("tr"),t=$("td"),n=S(),r=$("td"),a=$("p"),I(o.$$.fragment),c=S(),i=$("td"),f=$("p"),u=M(m),_=S(),w=$("td"),C=S(),this.h()},l(L){l=b(L,"TR",{class:!0});var A=k(l);t=b(A,"TD",{class:!0}),k(t).forEach(d),n=G(A),r=b(A,"TD",{class:!0});var U=k(r);a=b(U,"P",{class:!0});var oe=k(a);T(o.$$.fragment,oe),oe.forEach(d),U.forEach(d),c=G(A),i=b(A,"TD",{});var ce=k(i);f=b(ce,"P",{class:!0});var fe=k(f);u=j(fe,m),fe.forEach(d),ce.forEach(d),_=G(A),w=b(A,"TD",{}),k(w).forEach(d),C=G(A),A.forEach(d),this.h()},h(){v(t,"class","w-1/12"),v(a,"class","truncate text-sm text-gray-500 md:text-base"),v(r,"class","w-24"),v(f,"class","event-type truncate text-sm md:text-base svelte-11yead6"),v(l,"class","row svelte-11yead6"),H(l,"active",e[8]===e[1]),H(l,"failure",qe(e[9])),H(l,"canceled",Be(e[9])),H(l,"terminated",He(e[9])),this.first=l},m(L,A){E(L,l,A),g(l,t),g(l,n),g(l,r),g(r,a),y(o,a,null),g(l,c),g(l,i),g(i,f),g(f,u),g(l,_),g(l,w),g(l,C),P=!0,O||(q=ze(l,"click",Nt(Jt(te))),O=!0)},p(L,A){e=L;const U={};A&57&&(U.href=Qe({eventId:e[8],namespace:e[3],workflow:e[5],run:e[4]})),A&4097&&(U.$$scope={dirty:A,ctx:e}),o.$set(U),(!P||A&1)&&m!==(m=(Re(e[9])?"LocalActivity":e[9].eventType)+"")&&F(u,m),(!P||A&3)&&H(l,"active",e[8]===e[1]),(!P||A&1)&&H(l,"failure",qe(e[9])),(!P||A&1)&&H(l,"canceled",Be(e[9])),(!P||A&1)&&H(l,"terminated",He(e[9]))},i(L){P||(p(o.$$.fragment,L),P=!0)},o(L){h(o.$$.fragment,L),P=!1},d(L){L&&d(l),D(o),O=!1,q()}}}function Yl(s){let e=[],l=new Map,t,n,r=[...s[0].events].reverse();const a=o=>o[8];for(let o=0;ol(6,a=m));let{eventGroup:o}=e,{selectedId:c}=e,{onGroupClick:i}=e;const f=m=>i(m);return s.$$set=m=>{"eventGroup"in m&&l(0,o=m.eventGroup),"selectedId"in m&&l(1,c=m.selectedId),"onGroupClick"in m&&l(2,i=m.onGroupClick)},s.$$.update=()=>{s.$$.dirty&64&&l(5,{workflow:t,run:n,namespace:r}=a.params,t,(l(4,n),l(6,a)),(l(3,r),l(6,a)))},[o,c,i,r,n,t,a,f]}class en extends se{constructor(e){super(),ae(this,e,xl,Zl,ie,{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 tn(s){let e,l,t,n=[],r=new Map,a;l=new Qt({props:{attributeGrouping:s[4],activePill:s[5]}}),l.$on("pillChange",s[7]);let o=s[6];const c=i=>i[10];for(let i=0;iu[10];for(let u=0;u{a=null}),Q())},i(c){r||(p(a),r=!0)},o(c){h(a),r=!1},d(c){c&&d(l),a&&a.d(c),c&&d(n)}}}function dt(s){let e,l;return e=new zt({props:{key:s[10],value:s[11],attributes:s[3],class:"w-full"}}),{c(){I(e.$$.fragment)},l(t){T(e.$$.fragment,t)},m(t,n){y(e,t,n),l=!0},p(t,n){const r={};n&64&&(r.key=t[10]),n&64&&(r.value=t[11]),n&8&&(r.attributes=t[3]),e.$set(r)},i(t){l||(p(e.$$.fragment,t),l=!0)},o(t){h(e.$$.fragment,t),l=!1},d(t){D(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,a=t&&dt(e);return{key:s,first:null,c(){l=z(),a&&a.c(),n=z(),this.h()},l(c){l=z(),a&&a.l(c),n=z(),this.h()},h(){this.first=l},m(c,i){E(c,l,i),a&&a.m(c,i),E(c,n,i),r=!0},p(c,i){var f;e=c,i&112&&(t=(f=e[4][e[5]])==null?void 0:f.includes(e[10])),t?a?(a.p(e,i),i&112&&p(a,1)):(a=dt(e),a.c(),p(a,1),a.m(n.parentNode,n)):a&&(W(),h(a,1,1,()=>{a=null}),Q())},i(c){r||(p(a),r=!0)},o(c){h(a),r=!1},d(c){c&&d(l),a&&a.d(c),c&&d(n)}}}function nn(s){let e,l,t,n,r;const a=[ln,tn],o=[];function c(i,f){return f&6&&(e=null),e==null&&(e=!!(i[2]&&ve(i[1]))),e?0:1}return l=c(s,-1),t=o[l]=a[l](s),{c(){t.c(),n=z()},l(i){t.l(i),n=z()},m(i,f){o[l].m(i,f),E(i,n,f),r=!0},p(i,[f]){let m=l;l=c(i,f),l===m?o[l].p(i,f):(W(),h(o[m],1,1,()=>{o[m]=null}),Q(),t=o[l],t?t.p(i,f):(t=o[l]=a[l](i),t.c()),p(t,1),t.m(n.parentNode,n))},i(i){r||(p(t),r=!0)},o(i){h(t),r=!1},d(i){o[l].d(i),i&&d(n)}}}function rn(s,e,l){let t,n,r,a,{event:o}=e,{currentEvent:c}=e,{compact:i=!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,i=_.compact),"selectedId"in _&&l(0,f=_.selectedId)},s.$$.update=()=>{s.$$.dirty&516&&l(3,t=Mt(c,{compact:i})),s.$$.dirty&10&&l(4,n=ul(o,t)),s.$$.dirty&16&&l(5,r=Object.keys(n).find(_=>n[_].length)),s.$$.dirty&8&&l(6,a=Object.entries(t))},[f,o,i,t,n,r,a,m,u,c]}class sn extends se{constructor(e){super(),ae(this,e,rn,nn,ie,{event:1,currentEvent:9,compact:2,selectedId:0})}}function an(s){let e,l,t=X(s[0])+"",n,r,a,o,c;return{c(){e=$("div"),l=$("p"),n=M(t),r=S(),a=$("p"),o=$("span"),c=M(s[1]),this.h()},l(i){e=b(i,"DIV",{class:!0});var f=k(e);l=b(f,"P",{class:!0});var m=k(l);n=j(m,t),m.forEach(d),r=G(f),a=b(f,"P",{class:!0});var u=k(a);o=b(u,"SPAN",{class:!0});var _=k(o);c=j(_,s[1]),_.forEach(d),u.forEach(d),f.forEach(d),this.h()},h(){v(l,"class","mr-3 truncate text-sm"),v(o,"class","w-full select-all text-gray-700 svelte-n4ehvt"),H(o,"badge",!Le(s[0])),v(a,"class","truncate text-right text-sm xl:text-left"),v(e,"class","flex w-full flex-wrap items-center gap-1 pr-1")},m(i,f){E(i,e,f),g(e,l),g(l,n),g(e,r),g(e,a),g(a,o),g(o,c)},p(i,f){f&1&&t!==(t=X(i[0])+"")&&F(n,t),f&2&&F(c,i[1]),f&1&&H(o,"badge",!Le(i[0]))},i:re,o:re,d(i){i&&d(e)}}}function on(s){let e,l,t=X(s[0])+"",n,r,a,o,c;return o=new ye({props:{copyIconTitle:N("common.copy-icon-title"),copySuccessIconTitle:N("common.copy-success-icon-title"),content:s[1],$$slots:{default:[_n]},$$scope:{ctx:s}}}),{c(){e=$("div"),l=$("p"),n=M(t),r=S(),a=$("div"),I(o.$$.fragment),this.h()},l(i){e=b(i,"DIV",{class:!0});var f=k(e);l=b(f,"P",{class:!0});var m=k(l);n=j(m,t),m.forEach(d),r=G(f),a=b(f,"DIV",{class:!0});var u=k(a);T(o.$$.fragment,u),u.forEach(d),f.forEach(d),this.h()},h(){v(l,"class","mr-3 truncate text-sm"),v(a,"class","truncate text-sm"),v(e,"class","flex w-full flex-wrap items-center gap-1 pr-1")},m(i,f){E(i,e,f),g(e,l),g(l,n),g(e,r),g(e,a),y(o,a,null),c=!0},p(i,f){(!c||f&1)&&t!==(t=X(i[0])+"")&&F(n,t);const m={};f&2&&(m.content=i[1]),f&514&&(m.$$scope={dirty:f,ctx:i}),o.$set(m)},i(i){c||(p(o.$$.fragment,i),c=!0)},o(i){h(o.$$.fragment,i),c=!1},d(i){i&&d(e),D(o)}}}function fn(s){let e,l,t=X(s[0])+"",n,r,a,o,c;return o=new ye({props:{copyIconTitle:N("common.copy-icon-title"),copySuccessIconTitle:N("common.copy-success-icon-title"),content:s[1],"container-class":"xl:flex-row",$$slots:{default:[pn]},$$scope:{ctx:s}}}),{c(){e=$("div"),l=$("p"),n=M(t),r=S(),a=$("div"),I(o.$$.fragment),this.h()},l(i){e=b(i,"DIV",{class:!0});var f=k(e);l=b(f,"P",{class:!0});var m=k(l);n=j(m,t),m.forEach(d),r=G(f),a=b(f,"DIV",{class:!0});var u=k(a);T(o.$$.fragment,u),u.forEach(d),f.forEach(d),this.h()},h(){v(l,"class","truncate text-sm"),v(a,"class","truncate text-sm"),v(e,"class","flex w-full flex-wrap items-center gap-1 pr-1")},m(i,f){E(i,e,f),g(e,l),g(l,n),g(e,r),g(e,a),y(o,a,null),c=!0},p(i,f){(!c||f&1)&&t!==(t=X(i[0])+"")&&F(n,t);const m={};f&2&&(m.content=i[1]),f&518&&(m.$$scope={dirty:f,ctx:i}),o.$set(m)},i(i){c||(p(o.$$.fragment,i),c=!0)},o(i){h(o.$$.fragment,i),c=!1},d(i){i&&d(e),D(o)}}}function cn(s){let e,l,t=X(s[0])+"",n,r,a,o,c;return o=new ye({props:{copyIconTitle:N("common.copy-icon-title"),copySuccessIconTitle:N("common.copy-success-icon-title"),content:s[1],"container-class":"xl:flex-row",$$slots:{default:[gn]},$$scope:{ctx:s}}}),{c(){e=$("div"),l=$("p"),n=M(t),r=S(),a=$("div"),I(o.$$.fragment),this.h()},l(i){e=b(i,"DIV",{class:!0});var f=k(e);l=b(f,"P",{class:!0});var m=k(l);n=j(m,t),m.forEach(d),r=G(f),a=b(f,"DIV",{class:!0});var u=k(a);T(o.$$.fragment,u),u.forEach(d),f.forEach(d),this.h()},h(){v(l,"class","mr-3 truncate text-sm"),v(a,"class","truncate text-sm"),v(e,"class","flex w-full flex-wrap items-center gap-1 pr-1")},m(i,f){E(i,e,f),g(e,l),g(l,n),g(e,r),g(e,a),y(o,a,null),c=!0},p(i,f){(!c||f&1)&&t!==(t=X(i[0])+"")&&F(n,t);const m={};f&2&&(m.content=i[1]),f&514&&(m.$$scope={dirty:f,ctx:i}),o.$set(m)},i(i){c||(p(o.$$.fragment,i),c=!0)},o(i){h(o.$$.fragment,i),c=!1},d(i){i&&d(e),D(o)}}}function un(s){let e,l,t=X(s[0])+"",n,r,a,o;return a=new je({props:{value:s[1],key:"payloads",$$slots:{default:[vn,({decodedValue:c})=>({8:c}),({decodedValue:c})=>c?256:0]},$$scope:{ctx:s}}}),{c(){e=$("div"),l=$("p"),n=M(t),r=S(),I(a.$$.fragment),this.h()},l(c){e=b(c,"DIV",{class:!0});var i=k(e);l=b(i,"P",{class:!0});var f=k(l);n=j(f,t),f.forEach(d),r=G(i),T(a.$$.fragment,i),i.forEach(d),this.h()},h(){v(l,"class","min-w-fit text-sm"),v(e,"class","flex w-full flex-wrap items-center justify-between gap-1 pr-1 xl:flex-nowrap xl:gap-4")},m(c,i){E(c,e,i),g(e,l),g(l,n),g(e,r),y(a,e,null),o=!0},p(c,i){(!o||i&1)&&t!==(t=X(c[0])+"")&&F(n,t);const f={};i&2&&(f.value=c[1]),i&776&&(f.$$scope={dirty:i,ctx:c}),a.$set(f)},i(c){o||(p(a.$$.fragment,c),o=!0)},o(c){h(a.$$.fragment,c),o=!1},d(c){c&&d(e),D(a)}}}function mn(s){let e;return{c(){e=M(s[1])},l(l){e=j(l,s[1])},m(l,t){E(l,e,t)},p(l,t){t&2&&F(e,l[1])},d(l){l&&d(e)}}}function _n(s){let e,l;return e=new ge({props:{class:"truncate",href:Me({namespace:s[5],queue:s[1]}),$$slots:{default:[mn]},$$scope:{ctx:s}}}),{c(){I(e.$$.fragment)},l(t){T(e.$$.fragment,t)},m(t,n){y(e,t,n),l=!0},p(t,n){const r={};n&2&&(r.href=Me({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){D(e,t)}}}function dn(s){let e;return{c(){e=M(s[1])},l(l){e=j(l,s[1])},m(l,t){E(l,e,t)},p(l,t){t&2&&F(e,l[1])},d(l){l&&d(e)}}}function pn(s){let e,l;return e=new ge({props:{class:"truncate",href:he({namespace:s[5],workflow:s[2].workflowExecutionWorkflowId,run:s[2].workflowExecutionRunId}),$$slots:{default:[dn]},$$scope:{ctx:s}}}),{c(){I(e.$$.fragment)},l(t){T(e.$$.fragment,t)},m(t,n){y(e,t,n),l=!0},p(t,n){const r={};n&4&&(r.href=he({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){D(e,t)}}}function hn(s){let e;return{c(){e=M(s[1])},l(l){e=j(l,s[1])},m(l,t){E(l,e,t)},p(l,t){t&2&&F(e,l[1])},d(l){l&&d(e)}}}function gn(s){let e,l;return e=new ge({props:{class:"truncate",href:he({namespace:s[5],workflow:s[4],run:s[1]}),$$slots:{default:[hn]},$$scope:{ctx:s}}}),{c(){I(e.$$.fragment)},l(t){T(e.$$.fragment,t)},m(t,n){y(e,t,n),l=!0},p(t,n){const r={};n&2&&(r.href=he({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){D(e,t)}}}function vn(s){let e,l;return e=new Ve({props:{content:s[8],inline:s[3],copyIconTitle:N("common.copy-icon-title"),copySuccessIconTitle:N("common.copy-success-icon-title")}}),{c(){I(e.$$.fragment)},l(t){T(e.$$.fragment,t)},m(t,n){y(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){D(e,t)}}}function $n(s){let e,l,t,n,r,a,o,c;const i=[un,cn,fn,on,an],f=[];function m(u,_){return _&1&&(l=null),_&5&&(t=null),_&1&&(n=null),typeof u[1]=="object"?0:(l==null&&(l=!!Ot(u[0])),l?1:(t==null&&(t=!!Lt(u[0],u[2])),t?2:(n==null&&(n=!!Rt(u[0])),n?3:4)))}return r=m(s,-1),a=f[r]=i[r](s),{c(){e=$("div"),a.c(),this.h()},l(u){e=b(u,"DIV",{class:!0});var _=k(e);a.l(_),_.forEach(d),this.h()},h(){v(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,_){E(u,e,_),f[r].m(e,null),c=!0},p(u,[_]){let w=r;r=m(u,_),r===w?f[r].p(u,_):(W(),h(f[w],1,1,()=>{f[w]=null}),Q(),a=f[r],a?a.p(u,_):(a=f[r]=i[r](u),a.c()),p(a,1),a.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"))&&v(e,"class",o)},i(u){c||(p(a),c=!0)},o(u){h(a),c=!1},d(u){u&&d(e),f[r].d()}}}function bn(s,e,l){let t;le(s,be,f=>l(7,t=f));let{key:n}=e,{value:r}=e,{attributes:a}=e,{inline:o=!1}=e;const{workflow:c,namespace:i}=t.params;return s.$$set=f=>{l(6,e=$e($e({},e),Te(f))),"key"in f&&l(0,n=f.key),"value"in f&&l(1,r=f.value),"attributes"in f&&l(2,a=f.attributes),"inline"in f&&l(3,o=f.inline)},e=Te(e),[n,r,a,o,c,i,e]}class kn extends se{constructor(e){super(),ae(this,e,bn,$n,ie,{key:0,value:1,attributes:2,inline:3})}}function wn(s){let e=s[0].id+"",l;return{c(){l=M(e)},l(t){l=j(t,e)},m(t,n){E(t,l,n)},p(t,n){n&1&&e!==(e=t[0].id+"")&&F(l,e)},d(t){t&&d(l)}}}function En(s){var n;let e,l=Ze((n=s[0])==null?void 0:n.eventTime,s[14],{relative:s[15]})+"",t;return{c(){e=$("p"),t=M(l),this.h()},l(r){e=b(r,"P",{class:!0});var a=k(e);t=j(a,l),a.forEach(d),this.h()},h(){v(e,"class","break-word truncate text-sm md:whitespace-normal md:text-base")},m(r,a){E(r,e,a),g(e,t)},p(r,a){var o;a&49153&&l!==(l=Ze((o=r[0])==null?void 0:o.eventTime,r[14],{relative:r[15]})+"")&&F(t,l)},i:re,o:re,d(r){r&&d(e)}}}function In(s){let e,l,t,n,r=s[9]&&ht(s),a=s[8]&&s[8]!=="0ms"&>(s);return{c(){e=$("p"),r&&r.c(),l=S(),a&&a.c(),t=z(),this.h()},l(o){e=b(o,"P",{class:!0});var c=k(e);r&&r.l(c),c.forEach(d),l=G(o),a&&a.l(o),t=z(),this.h()},h(){v(e,"class","break-word truncate text-sm md:whitespace-normal")},m(o,c){E(o,e,c),r&&r.m(e,null),E(o,l,c),a&&a.m(o,c),E(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"?a?(a.p(o,c),c&256&&p(a,1)):(a=gt(o),a.c(),p(a,1),a.m(t.parentNode,t)):a&&(W(),h(a,1,1,()=>{a=null}),Q())},i(o){n||(p(a),n=!0)},o(o){h(a),n=!1},d(o){o&&d(e),r&&r.d(),o&&d(l),a&&a.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=j(n,e),t=j(n,s[9])},m(n,r){E(n,l,r),E(n,t,r)},p(n,r){r&4096&&e!==(e=n[12]?"-":"+")&&F(l,e),r&512&&F(t,n[9])},d(n){n&&d(l),n&&d(t)}}}function gt(s){let e,l,t,n,r,a;return l=new me({props:{class:"inline",name:"clock"}}),{c(){e=$("div"),I(l.$$.fragment),t=S(),n=$("p"),r=M(s[8]),this.h()},l(o){e=b(o,"DIV",{class:!0});var c=k(e);T(l.$$.fragment,c),t=G(c),n=b(c,"P",{class:!0});var i=k(n);r=j(i,s[8]),i.forEach(d),c.forEach(d),this.h()},h(){v(n,"class","break-word truncate text-sm md:whitespace-normal"),v(e,"class","flex flex-row items-center gap-0")},m(o,c){E(o,e,c),y(l,e,null),g(e,t),g(e,n),g(n,r),a=!0},p(o,c){(!a||c&256)&&F(r,o[8])},i(o){a||(p(l.$$.fragment,o),a=!0)},o(o){h(l.$$.fragment,o),a=!1},d(o){o&&d(e),D(l)}}}function vt(s){let e,l;return e=new me({props:{class:"mr-1.5 inline text-red-700",name:"clock"}}),{c(){I(e.$$.fragment)},l(t){T(e.$$.fragment,t)},m(t,n){y(e,t,n),l=!0},i(t){l||(p(e.$$.fragment,t),l=!0)},o(t){h(e.$$.fragment,t),l=!1},d(t){D(e,t)}}}function $t(s){let e,l;return e=new me({props:{class:"mr-1.5 inline text-yellow-700",name:"clock"}}),{c(){I(e.$$.fragment)},l(t){T(e.$$.fragment,t)},m(t,n){y(e,t,n),l=!0},i(t){l||(p(e.$$.fragment,t),l=!0)},o(t){h(e.$$.fragment,t),l=!1},d(t){D(e,t)}}}function bt(s){let e,l;return e=new me({props:{class:"mr-1.5 inline text-pink-700",name:"clock"}}),{c(){I(e.$$.fragment)},l(t){T(e.$$.fragment,t)},m(t,n){y(e,t,n),l=!0},i(t){l||(p(e.$$.fragment,t),l=!0)},o(t){h(e.$$.fragment,t),l=!1},d(t){D(e,t)}}}function kt(s){let e,l,t;return l=new me({props:{class:"inline",name:"chevron-up"}}),{c(){e=$("div"),I(l.$$.fragment)},l(n){e=b(n,"DIV",{});var r=k(e);T(l.$$.fragment,r),r.forEach(d)},m(n,r){E(n,e,r),y(l,e,null),t=!0},i(n){t||(p(l.$$.fragment,n),t=!0)},o(n){h(l.$$.fragment,n),t=!1},d(n){n&&d(e),D(l)}}}function wt(s){let e,l,t,n,r,a,o,c;const i=[et(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;mZt(t,"selectedId",o)),{c(){e=$("tr"),l=$("td"),I(t.$$.fragment),this.h()},l(i){e=b(i,"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(){v(l,"class","expanded-cell svelte-5vypy2"),v(l,"colspan","6"),v(e,"class","svelte-5vypy2"),H(e,"typedError",s[3])},m(i,f){E(i,e,f),g(e,l),y(t,l,null),a=!0},p(i,f){const m={};f&1&&(m.event=i[0]),f&64&&(m.currentEvent=i[6]),f&2&&(m.compact=i[1]),!n&&f&32&&(n=!0,m.selectedId=i[5],xt(()=>n=!1)),t.$set(m),(!a||f&8)&&H(e,"typedError",i[3])},i(i){a||(p(t.$$.fragment,i),i&&(r||el(()=>{r=tl(e,sl,{}),r.start()})),a=!0)},o(i){h(t.$$.fragment,i),a=!1},d(i){i&&d(e),D(t)}}}function Tn(s){let e,l,t,n,r,a,o,c,i,f,m,u,_,w,C,P,O,q,te,L=(ve(s[0])?s[0].displayName:Re(s[0])?"LocalActivity":s[0].name)+"",A,U,oe,ce,fe,_e,ue,ke,de,ne,De,Se;r=new ge({props:{class:"truncate","data-testid":"link",href:s[13],$$slots:{default:[wn]},$$scope:{ctx:s}}});const B=[In,En],pe=[];function Ue(V,R){return V[11]?0:1}i=Ue(s),f=pe[i]=B[i](s);let Y=s[1]&&s[17]&&vt(),Z=s[1]&&s[18]&&$t(),x=s[1]&&s[19]&&bt(),ee=s[7]&&kt(),J=!s[7]&&wt(s),K=s[7]&&Et(s);return{c(){e=$("tr"),l=$("td"),t=S(),n=$("td"),I(r.$$.fragment),a=S(),o=$("td"),c=$("div"),f.c(),m=S(),u=$("td"),_=$("div"),w=$("div"),Y&&Y.c(),C=S(),Z&&Z.c(),P=S(),x&&x.c(),O=S(),q=$("div"),te=$("p"),A=M(L),U=S(),ee&&ee.c(),ce=S(),J&&J.c(),fe=S(),_e=$("td"),ke=S(),K&&K.c(),de=z(),this.h()},l(V){e=b(V,"TR",{class:!0,id:!0,"data-testid":!0});var R=k(e);l=b(R,"TD",{}),k(l).forEach(d),t=G(R),n=b(R,"TD",{class:!0});var we=k(n);T(r.$$.fragment,we),we.forEach(d),a=G(R),o=b(R,"TD",{class:!0});var Ee=k(o);c=b(Ee,"DIV",{class:!0});var Je=k(c);f.l(Je),Je.forEach(d),Ee.forEach(d),m=G(R),u=b(R,"TD",{colspan:!0,class:!0});var Ke=k(u);_=b(Ke,"DIV",{class:!0});var Ge=k(_);w=b(Ge,"DIV",{});var Ie=k(w);Y&&Y.l(Ie),C=G(Ie),Z&&Z.l(Ie),P=G(Ie),x&&x.l(Ie),Ie.forEach(d),O=G(Ge),q=b(Ge,"DIV",{class:!0});var Ne=k(q);te=b(Ne,"P",{class:!0});var Xe=k(te);A=j(Xe,L),Xe.forEach(d),U=G(Ne),ee&&ee.l(Ne),Ne.forEach(d),Ge.forEach(d),Ke.forEach(d),ce=G(R),J&&J.l(R),fe=G(R),_e=b(R,"TD",{}),k(_e).forEach(d),R.forEach(d),ke=G(V),K&&K.l(V),de=z(),this.h()},h(){v(n,"class","w-24 text-left"),v(c,"class","flex flex-col gap-0"),v(o,"class","text-left"),v(te,"class","event-name truncate text-sm font-semibold md:text-base svelte-5vypy2"),v(q,"class","flex w-full items-center justify-between truncate"),v(_,"class","flex"),v(u,"colspan",oe=s[7]?2:1),v(u,"class","text-right text-sm font-normal xl:text-left"),v(e,"class","row svelte-5vypy2"),v(e,"id",ue=s[0].id),v(e,"data-testid","event-summary-row"),H(e,"expanded",s[7]&&!s[2]),H(e,"active",s[4]),H(e,"failure",s[17]),H(e,"canceled",s[18]),H(e,"terminated",s[19]),H(e,"typedError",s[3])},m(V,R){E(V,e,R),g(e,l),g(e,t),g(e,n),y(r,n,null),g(e,a),g(e,o),g(o,c),pe[i].m(c,null),g(e,m),g(e,u),g(u,_),g(_,w),Y&&Y.m(w,null),g(w,C),Z&&Z.m(w,null),g(w,P),x&&x.m(w,null),g(_,O),g(_,q),g(q,te),g(te,A),g(q,U),ee&&ee.m(q,null),g(e,ce),J&&J.m(e,null),g(e,fe),g(e,_e),E(V,ke,R),K&&K.m(V,R),E(V,de,R),ne=!0,De||(Se=ze(e,"click",Nt(s[16])),De=!0)},p(V,[R]){const we={};R&8192&&(we.href=V[13]),R&1073741825&&(we.$$scope={dirty:R,ctx:V}),r.$set(we);let Ee=i;i=Ue(V),i===Ee?pe[i].p(V,R):(W(),h(pe[Ee],1,1,()=>{pe[Ee]=null}),Q(),f=pe[i],f?f.p(V,R):(f=pe[i]=B[i](V),f.c()),p(f,1),f.m(c,null)),V[1]&&V[17]?Y?R&2&&p(Y,1):(Y=vt(),Y.c(),p(Y,1),Y.m(w,C)):Y&&(W(),h(Y,1,1,()=>{Y=null}),Q()),V[1]&&V[18]?Z?R&2&&p(Z,1):(Z=$t(),Z.c(),p(Z,1),Z.m(w,P)):Z&&(W(),h(Z,1,1,()=>{Z=null}),Q()),V[1]&&V[19]?x?R&2&&p(x,1):(x=bt(),x.c(),p(x,1),x.m(w,null)):x&&(W(),h(x,1,1,()=>{x=null}),Q()),(!ne||R&1)&&L!==(L=(ve(V[0])?V[0].displayName:Re(V[0])?"LocalActivity":V[0].name)+"")&&F(A,L),V[7]?ee?R&128&&p(ee,1):(ee=kt(),ee.c(),p(ee,1),ee.m(q,null)):ee&&(W(),h(ee,1,1,()=>{ee=null}),Q()),(!ne||R&128&&oe!==(oe=V[7]?2:1))&&v(u,"colspan",oe),V[7]?J&&(W(),h(J,1,1,()=>{J=null}),Q()):J?(J.p(V,R),R&128&&p(J,1)):(J=wt(V),J.c(),p(J,1),J.m(e,fe)),(!ne||R&1&&ue!==(ue=V[0].id))&&v(e,"id",ue),(!ne||R&132)&&H(e,"expanded",V[7]&&!V[2]),(!ne||R&16)&&H(e,"active",V[4]),(!ne||R&8)&&H(e,"typedError",V[3]),V[7]?K?(K.p(V,R),R&128&&p(K,1)):(K=Et(V),K.c(),p(K,1),K.m(de.parentNode,de)):K&&(W(),h(K,1,1,()=>{K=null}),Q())},i(V){ne||(p(r.$$.fragment,V),p(f),p(Y),p(Z),p(x),p(ee),p(J),p(K),ne=!0)},o(V){h(r.$$.fragment,V),h(f),h(Y),h(Z),h(x),h(ee),h(J),h(K),ne=!1},d(V){V&&d(e),D(r),pe[i].d(),Y&&Y.d(),Z&&Z.d(),x&&x.d(),ee&&ee.d(),J&&J.d(),V&&d(ke),K&&K.d(V),V&&d(de),De=!1,Se()}}}function yn(s,e,l){let t,n,r,a,o,c,i,f,m,u,_,w,C,P,O,q,te;le(s,Oe,B=>l(26,C=B)),le(s,We,B=>l(27,P=B)),le(s,be,B=>l(28,O=B)),le(s,il,B=>l(14,q=B)),le(s,ol,B=>l(15,te=B));let{event:L}=e,{initialItem:A}=e,{compact:U=!1}=e,{expandAll:oe=!1}=e,{typedError:ce=!1}=e,{active:fe=!1}=e,{onRowClick:_e=re}=e,ue=ve(L)?Array.from(L.events.keys()).pop():L.id;const ke=()=>{l(7,o=!o),_e()},de=qe(L),ne=Be(L),De=He(L);function Se(B){ue=B,l(5,ue)}return s.$$set=B=>{"event"in B&&l(0,L=B.event),"initialItem"in B&&l(20,A=B.initialItem),"compact"in B&&l(1,U=B.compact),"expandAll"in B&&l(2,oe=B.expandAll),"typedError"in B&&l(3,ce=B.typedError),"active"in B&&l(4,fe=B.active),"onRowClick"in B&&l(21,_e=B.onRowClick)},s.$$.update=()=>{s.$$.dirty&268435456&&l(24,{workflow:t,run:n,namespace:r}=O.params,t,(l(23,n),l(28,O)),(l(25,r),l(28,O))),s.$$.dirty&58720257&&l(13,a=Qe({eventId:L.id,namespace:r,workflow:t,run:n})),s.$$.dirty&4&&l(7,o=oe),s.$$.dirty&134217728&&l(12,c=P==="descending"),s.$$.dirty&67108864&&l(22,i=C==="true"),s.$$.dirty&5242881&&l(11,f=i&&A&&L.id!==A.id),s.$$.dirty&3&&l(10,m=Mt(L,{compact:U})),s.$$.dirty&33&&l(6,u=ve(L)?L.events.get(ue):L),s.$$.dirty&1048641&&l(9,_=tt({start:A.eventTime,end:ve(L)?L.initialEvent.eventTime:u.eventTime,includeMilliseconds:!0})),s.$$.dirty&1&&l(8,w=ve(L)?tt({start:L.initialEvent.eventTime,end:L.lastEvent.eventTime,includeMilliseconds:!0}):"")},[L,U,oe,ce,fe,ue,u,o,w,_,m,f,c,a,q,te,ke,de,ne,De,A,_e,i,n,t,r,C,P,O,Se]}class Nr extends se{constructor(e){super(),ae(this,e,yn,Tn,ie,{event:0,initialItem:20,compact:1,expandAll:2,typedError:3,active:4,onRowClick:21})}}const Dn=({compact:s,sortOrder:e,showElapsed:l})=>{if(!((s||e==="descending")&&l==="false"))return`${e}:${l}`};function It(s,e,l){const t=s.slice();return t[9]=e[l].option,t[10]=e[l].label,t}function An(s){let e,l,t,n=N("common.date-and-time")+"",r,a;return e=new me({props:{class:"md:hidden",name:"clock"}}),{c(){I(e.$$.fragment),l=S(),t=$("span"),r=M(n),this.h()},l(o){T(e.$$.fragment,o),l=G(o),t=b(o,"SPAN",{class:!0});var c=k(t);r=j(c,n),c.forEach(d),this.h()},h(){v(t,"class","max-md:hidden")},m(o,c){y(e,o,c),E(o,l,c),E(o,t,c),g(t,r),a=!0},p:re,i(o){a||(p(e.$$.fragment,o),a=!0)},o(o){h(e.$$.fragment,o),a=!1},d(o){D(e,o),o&&d(l),o&&d(t)}}}function Cn(s){let e=s[10]+"",l;return{c(){l=M(e)},l(t){l=j(t,e)},m(t,n){E(t,l,n)},p:re,d(t){t&&d(l)}}}function Tt(s){let e,l;function t(){return s[7](s[9])}return e=new Ae({props:{selected:s[1]===s[9],$$slots:{default:[Cn]},$$scope:{ctx:s}}}),e.$on("click",t),{c(){I(e.$$.fragment)},l(n){T(e.$$.fragment,n)},m(n,r){y(e,n,r),l=!0},p(n,r){s=n;const a={};r&2&&(a.selected=s[1]===s[9]),r&8192&&(a.$$scope={dirty:r,ctx:s}),e.$set(a)},i(n){l||(p(e.$$.fragment,n),l=!0)},o(n){h(e.$$.fragment,n),l=!1},d(n){D(e,n)}}}function Pn(s){let e=N("events.show-elapsed-time")+"",l;return{c(){l=M(e)},l(t){l=j(t,e)},m(t,n){E(t,l,n)},p:re,d(t){t&&d(l)}}}function Vn(s){let e,l,t,n,r,a=s[3],o=[];for(let i=0;ih(o[i],1,1,()=>{o[i]=null});return l=new Ht({}),n=new Ae({props:{selected:s[0]==="true",$$slots:{default:[Pn]},$$scope:{ctx:s}}}),n.$on("click",s[5]),{c(){for(let i=0;il(0,n=u)),le(s,We,u=>l(1,r=u)),le(s,be,u=>l(8,a=u));let{compact:o}=e,c=[{label:N("events.sort-ascending"),option:"ascending"},{label:N("events.sort-descending"),option:"descending"}];const i=u=>{Fe(We,r=u,r),Wt({parameter:"sort",value:u,url:a.url})},f=()=>{n==="true"?Fe(Oe,n="false",n):Fe(Oe,n="true",n)},m=u=>i(u);return s.$$set=u=>{"compact"in u&&l(6,o=u.compact)},s.$$.update=()=>{s.$$.dirty&67&&l(2,t=Dn({compact:o,sortOrder:r,showElapsed:n}))},[n,r,t,c,i,f,o,m]}class On extends se{constructor(e){super(),ae(this,e,Nn,Gn,ie,{compact:6})}}function yt(s,e,l){const t=s.slice();t[18]=e[l];const n=Boolean(t[8].find(function(...a){return s[17](t[18],...a)}));return t[19]=n,t}function Dt(s){let e,l;return e=new me({props:{class:"md:hidden",name:s[4]}}),{c(){I(e.$$.fragment)},l(t){T(e.$$.fragment,t)},m(t,n){y(e,t,n),l=!0},p(t,n){const r={};n&16&&(r.name=t[4]),e.$set(r)},i(t){l||(p(e.$$.fragment,t),l=!0)},o(t){h(e.$$.fragment,t),l=!1},d(t){D(e,t)}}}function Ln(s){let e,l,t,n,r=s[4]&&Dt(s);return{c(){r&&r.c(),e=S(),l=$("span"),t=M(s[1]),this.h()},l(a){r&&r.l(a),e=G(a),l=b(a,"SPAN",{class:!0});var o=k(l);t=j(o,s[1]),o.forEach(d),this.h()},h(){v(l,"class","max-md:hidden")},m(a,o){r&&r.m(a,o),E(a,e,o),E(a,l,o),g(l,t),n=!0},p(a,o){a[4]?r?(r.p(a,o),o&16&&p(r,1)):(r=Dt(a),r.c(),p(r,1),r.m(e.parentNode,e)):r&&(W(),h(r,1,1,()=>{r=null}),Q()),(!n||o&2)&&F(t,a[1])},i(a){n||(p(r),n=!0)},o(a){h(r),n=!1},d(a){r&&r.d(a),a&&d(e),a&&d(l)}}}function Rn(s){let e=s[18].label+"",l;return{c(){l=M(e)},l(t){l=j(t,e)},m(t,n){E(t,l,n)},p(t,n){n&1&&e!==(e=t[18].label+"")&&F(l,e)},d(t){t&&d(l)}}}function Mn(s){let e,l;function t(){return s[15](s[18])}return e=new pl({props:{slot:"leading",checked:s[19],label:s[18].label,labelHidden:!0}}),e.$on("click",t),{c(){I(e.$$.fragment)},l(n){T(e.$$.fragment,n)},m(n,r){y(e,n,r),l=!0},p(n,r){s=n;const a={};r&257&&(a.checked=s[19]),r&1&&(a.label=s[18].label),e.$set(a)},i(n){l||(p(e.$$.fragment,n),l=!0)},o(n){h(e.$$.fragment,n),l=!1},d(n){D(e,n)}}}function At(s,e){let l,t,n;function r(){return e[16](e[18])}return t=new Ae({props:{"data-testid":e[18].label,$$slots:{leading:[Mn],default:[Rn]},$$scope:{ctx:e}}}),t.$on("click",r),{key:s,first:null,c(){l=z(),I(t.$$.fragment),this.h()},l(a){l=z(),T(t.$$.fragment,a),this.h()},h(){this.first=l},m(a,o){E(a,l,o),y(t,a,o),n=!0},p(a,o){e=a;const c={};o&1&&(c["data-testid"]=e[18].label),o&4194561&&(c.$$scope={dirty:o,ctx:e}),t.$set(c)},i(a){n||(p(t.$$.fragment,a),n=!0)},o(a){h(t.$$.fragment,a),n=!1},d(a){a&&d(l),D(t,a)}}}function jn(s){let e;return{c(){e=M(s[5])},l(l){e=j(l,s[5])},m(l,t){E(l,e,t)},p(l,t){t&32&&F(e,l[5])},d(l){l&&d(e)}}}function Fn(s){let e;return{c(){e=M(s[6])},l(l){e=j(l,s[6])},m(l,t){E(l,e,t)},p(l,t){t&64&&F(e,l[6])},d(l){l&&d(e)}}}function qn(s){let e=[],l=new Map,t,n,r,a,o,c,i,f=s[0];const m=u=>u[18];for(let u=0;u{_.some(U=>U.value===A.value)?l(8,_=_.filter(U=>U.value!==A.value)):l(8,_=[..._,A]),r(_)},P=()=>{l(8,_=t),r(_)},O=()=>{l(8,_=[]),r(_)},q=A=>C(A),te=A=>{C(A)},L=(A,U)=>U.value===A.value;return s.$$set=A=>{"options"in A&&l(0,t=A.options),"initialSelected"in A&&l(13,n=A.initialSelected),"onChange"in A&&l(14,r=A.onChange),"label"in A&&l(1,a=A.label),"id"in A&&l(2,o=A.id),"variant"in A&&l(3,c=A.variant),"icon"in A&&l(4,i=A.icon),"selectAllLabel"in A&&l(5,f=A.selectAllLabel),"clearAllLabel"in A&&l(6,m=A.clearAllLabel),"active"in A&&l(7,u=A.active)},[t,a,o,c,i,f,m,u,_,w,C,P,O,n,r,q,te,L]}class Qn extends se{constructor(e){super(),ae(this,e,Wn,Hn,ie,{options:0,initialSelected:13,onChange:14,label:1,id:2,variant:3,icon:4,selectAllLabel:5,clearAllLabel:6,active:7})}}function zn(s){let e,l;return e=new Qn({props:{id:"event-category-filter-menu",options:s[0],initialSelected:s[2],label:s[3],active:!!s[1],selectAllLabel:N("common.select-all"),clearAllLabel:N("common.clear-all-capitalized"),onChange:s[4],variant:"table-header",icon:"filter"}}),{c(){I(e.$$.fragment)},l(t){T(e.$$.fragment,t)},m(t,n){y(e,t,n),l=!0},p(t,[n]){const r={};n&1&&(r.options=t[0]),n&4&&(r.initialSelected=t[2]),n&8&&(r.label=t[3]),n&2&&(r.active=!!t[1]),e.$set(r)},i(t){l||(p(e.$$.fragment,t),l=!0)},o(t){h(e.$$.fragment,t),l=!1},d(t){D(e,t)}}}let Un="category";function Jn(s,e,l){let t,n,r,a,o;le(s,be,m=>l(7,r=m)),le(s,vl,m=>l(1,a=m)),le(s,$l,m=>l(6,o=m));let{compact:c=!1}=e,i=(c?hl:gl).map(m=>({...m,label:N(m.label)}));const f=m=>{m.length===i.length&&(m=[]);const u=m.map(_=>_.value).join(",");Wt({parameter:Un,value:u,url:r.url})};return s.$$set=m=>{"compact"in m&&l(5,c=m.compact)},s.$$.update=()=>{s.$$.dirty&32&&l(3,t=c?N("events.event-type"):N("events.workflow-events")),s.$$.dirty&65&&bl("1.21",o)&&l(0,i=i.filter(({value:m})=>m!=="update")),s.$$.dirty&3&&l(2,n=a?i.filter(m=>a.includes(m.value)):[])},[i,a,n,t,f,c,o]}class Kn extends se{constructor(e){super(),ae(this,e,Jn,zn,ie,{compact:5})}}function Xn(s){let e;const l=s[6].default,t=Ct(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)&&Pt(t,l,n,n[7],e?St(l,n[7],r,null):Vt(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 Yn(s){let e,l=N("workflows.event-history")+"",t;return{c(){e=$("caption"),t=M(l),this.h()},l(n){e=b(n,"CAPTION",{class:!0,slot:!0});var r=k(e);t=j(r,l),r.forEach(d),this.h()},h(){v(e,"class","sr-only"),v(e,"slot","caption")},m(n,r){E(n,e,r),g(e,t)},p:re,d(n){n&&d(e)}}}function Zn(s){let e,l=(s[2]?N("common.collapse-all"):N("common.expand-all"))+"",t;return{c(){e=$("span"),t=M(l),this.h()},l(n){e=b(n,"SPAN",{class:!0});var r=k(e);t=j(r,l),r.forEach(d),this.h()},h(){v(e,"class","hidden sm:block")},m(n,r){E(n,e,r),g(e,t)},p(n,r){r&4&&l!==(l=(n[2]?N("common.collapse-all"):N("common.expand-all"))+"")&&F(t,l)},d(n){n&&d(e)}}}function xn(s){let e,l,t,n,r,a,o,c,i,f,m,u;return n=new On({props:{compact:s[0]}}),o=new Kn({props:{compact:s[0]}}),m=new _l({props:{size:"sm",variant:"table-header",trailingIcon:s[2]?"chevron-up":"chevron-down",disabled:!!s[3],$$slots:{default:[Zn]},$$scope:{ctx:s}}}),m.$on("click",s[4]),{c(){e=$("td"),l=S(),t=$("th"),I(n.$$.fragment),r=S(),a=$("th"),I(o.$$.fragment),c=S(),i=$("th"),f=$("div"),I(m.$$.fragment),this.h()},l(_){e=b(_,"TD",{class:!0}),k(e).forEach(d),l=G(_),t=b(_,"TH",{class:!0});var w=k(t);T(n.$$.fragment,w),w.forEach(d),r=G(_),a=b(_,"TH",{class:!0});var C=k(a);T(o.$$.fragment,C),C.forEach(d),c=G(_),i=b(_,"TH",{class:!0});var P=k(i);f=b(P,"DIV",{class:!0});var O=k(f);T(m.$$.fragment,O),O.forEach(d),P.forEach(d),this.h()},h(){v(e,"class","w-14 xl:w-10"),v(t,"class","w-16 md:w-32"),v(a,"class","w-44"),v(f,"class","flex w-full justify-end"),v(i,"class","w-auto xl:w-80")},m(_,w){E(_,e,w),E(_,l,w),E(_,t,w),y(n,t,null),E(_,r,w),E(_,a,w),y(o,a,null),E(_,c,w),E(_,i,w),g(i,f),y(m,f,null),u=!0},p(_,w){const C={};w&1&&(C.compact=_[0]),n.$set(C);const P={};w&1&&(P.compact=_[0]),o.$set(P);const O={};w&4&&(O.trailingIcon=_[2]?"chevron-up":"chevron-down"),w&8&&(O.disabled=!!_[3]),w&132&&(O.$$scope={dirty:w,ctx:_}),m.$set(O)},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),D(n),_&&d(r),_&&d(a),D(o),_&&d(c),_&&d(i),D(m)}}}function er(s){let e,l;return e=new ml({props:{slot:"headers",$$slots:{default:[xn]},$$scope:{ctx:s}}}),{c(){I(e.$$.fragment)},l(t){T(e.$$.fragment,t)},m(t,n){y(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){D(e,t)}}}function tr(s){let e,l;return e=new jt({props:{updating:s[1],class:"dark w-full table-fixed","data-testid":"event-summary-table",$$slots:{headers:[er],caption:[Yn],default:[Xn]},$$scope:{ctx:s}}}),{c(){I(e.$$.fragment)},l(t){T(e.$$.fragment,t)},m(t,n){y(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){D(e,t)}}}function lr(s,e,l){let t,n,r;le(s,be,_=>l(5,n=_)),le(s,al,_=>l(8,r=_));let{$$slots:a={},$$scope:o}=e,{compact:c=!1}=e,{updating:i=!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,i=_.updating),"$$scope"in _&&l(7,o=_.$$scope)},s.$$.update=()=>{s.$$.dirty&32&&l(3,t=n.params.id)},[c,i,f,t,u,n,a,o]}class Or extends se{constructor(e){super(),ae(this,e,lr,tr,ie,{compact:0,updating:1})}}export{Or as E,Gr as a,Nr as b}; +import{S as se,b as ae,a as ie,m as $,p as b,q as k,k as d,u as v,f as E,L as g,z as W,g as h,h as Q,j as p,C as I,D as T,E as y,F as D,n as re,G as Ct,c as S,d as G,Y as Ye,Q as H,M as ze,H as Pt,I as Vt,J as St,O as $e,U as Te,$ as Ut,e as z,N as Gt,aa as Ce,ab as Pe,w as M,x as j,y as F,K as le,_ as Nt,ag as Jt,R as Kt,X as Xt,A as Yt,a0 as Zt,a1 as xt,a3 as el,a4 as tl,a5 as Fe,a7 as ll}from"./index.0942deb7.js";import{E as nl}from"./empty-state.64fbab21.js";import{L as rl}from"./loading.e7565465.js";import{t as N}from"./translate.135d909a.js";import{a as sl}from"./index.2fa3ca4d.js";import{p as be}from"./stores.255470ec.js";import{I as me}from"./icon.33308831.js";import{L as ge}from"./link.faba7c50.js";import{e as qe,a as Be,b as He,i as ve}from"./index.5fe2e895.js";import{c as Oe,e as We,b as al}from"./event-view.f292d7b1.js";import{t as il,r as ol,b as Ze}from"./time-format.aa1f006c.js";import{a as xe,g as fl,b as cl,s as Ot,c as Lt,d as Rt,e as Le,f as Mt,h as ul,i as et}from"./format-event-attributes.f47536f1.js";import{q as tt}from"./format-time.5082c525.js";import{C as Re}from"./is-event-type.7aa6d0ba.js";import{m as Me,g as he,n as Qe}from"./route-for.18f9590b.js";import{C as Ve}from"./code-block.a5088abe.js";import{C as ye}from"./index.de7612af.js";import{f as X}from"./format-camel-case.887ffc78.js";import{P as je}from"./payload-decoder.ec62e968.js";import{T as jt,a as ml}from"./table-header-row.b9d52458.js";import{M as Ft,a as qt,b as Bt,d as Ae}from"./menu.1cf8fd74.js";import{M as Ht}from"./menu-divider.79623dfc.js";import{u as Wt}from"./update-query-parameters.5fc30b68.js";import{B as _l}from"./button.72eef818.js";import{w as dl}from"./singletons.d67f4e6b.js";import{C as pl}from"./checkbox.7cf45921.js";import{c as hl,a as gl}from"./get-event-categorization.75c83097.js";import{e as vl}from"./filters.38f71e0d.js";import{t as $l}from"./versions.1002dc8d.js";import{i as bl}from"./version-check.d006b302.js";function kl(s){let e,l;return e=new nl({props:{title:s[1],content:s[2]}}),{c(){I(e.$$.fragment)},l(t){T(e.$$.fragment,t)},m(t,n){y(e,t,n),l=!0},p(t,n){const r={};n&2&&(r.title=t[1]),n&4&&(r.content=t[2]),e.$set(r)},i(t){l||(p(e.$$.fragment,t),l=!0)},o(t){h(e.$$.fragment,t),l=!1},d(t){D(e,t)}}}function wl(s){let e,l;return e=new rl({}),{c(){I(e.$$.fragment)},l(t){T(e.$$.fragment,t)},m(t,n){y(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){D(e,t)}}}function El(s){let e,l,t,n,r;const a=[wl,kl],o=[];function c(i,f){return i[0]?0:1}return t=c(s),n=o[t]=a[t](s),{c(){e=$("tr"),l=$("td"),n.c(),this.h()},l(i){e=b(i,"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(){v(l,"colspan","6"),v(e,"class","row svelte-kwty14")},m(i,f){E(i,e,f),g(e,l),o[t].m(l,null),r=!0},p(i,[f]){let m=t;t=c(i),t===m?o[t].p(i,f):(W(),h(o[m],1,1,()=>{o[m]=null}),Q(),n=o[t],n?n.p(i,f):(n=o[t]=a[t](i),n.c()),p(n,1),n.m(l,null))},i(i){r||(p(n),r=!0)},o(i){h(n),r=!1},d(i){i&&d(e),o[t].d()}}}function Il(s,e,l){let{loading:t=!1}=e,{title:n=N("events.empty-state-title")}=e,{content:r=N("events.empty-state-description")}=e;return s.$$set=a=>{"loading"in a&&l(0,t=a.loading),"title"in a&&l(1,n=a.title),"content"in a&&l(2,r=a.content)},[t,n,r]}class Gr extends se{constructor(e){super(),ae(this,e,Il,El,ie,{loading:0,title:1,content:2})}}function lt(s){let e,l,t;return l=new me({props:{name:s[1]?"spinner":s[3]}}),{c(){e=$("span"),I(l.$$.fragment),this.h()},l(n){e=b(n,"SPAN",{});var r=k(e);T(l.$$.fragment,r),r.forEach(d),this.h()},h(){H(e,"animate-spin",s[1])},m(n,r){E(n,e,r),y(l,e,null),t=!0},p(n,r){const a={};r&10&&(a.name=n[1]?"spinner":n[3]),l.$set(a),(!t||r&2)&&H(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),D(l)}}}function Tl(s){let e,l,t,n,r,a,o=s[3]&<(s);const c=s[7].default,i=Ct(c,s,s[6],null);return{c(){e=$("button"),o&&o.c(),l=S(),i&&i.c(),this.h()},l(f){e=b(f,"BUTTON",{class:!0});var m=k(e);o&&o.l(m),l=G(m),i&&i.l(m),m.forEach(d),this.h()},h(){v(e,"class",t=Ye(`pill ${s[5]} ${s[4]}`)+" svelte-1dt2q6k"),e.disabled=s[0],H(e,"active",s[2])},m(f,m){E(f,e,m),o&&o.m(e,null),g(e,l),i&&i.m(e,null),n=!0,r||(a=ze(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()),i&&i.p&&(!n||m&64)&&Pt(i,c,f,f[6],n?St(c,f[6],m,null):Vt(f[6]),null),(!n||m&48&&t!==(t=Ye(`pill ${f[5]} ${f[4]}`)+" svelte-1dt2q6k"))&&v(e,"class",t),(!n||m&1)&&(e.disabled=f[0]),(!n||m&52)&&H(e,"active",f[2])},i(f){n||(p(o),p(i,f),n=!0)},o(f){h(o),h(i,f),n=!1},d(f){f&&d(e),o&&o.d(),i&&i.d(f),r=!1,a()}}}function yl(s,e,l){let{$$slots:t={},$$scope:n}=e,{disabled:r=!1}=e,{loading:a=!1}=e,{active:o=!1}=e,{icon:c=null}=e,{classes:i=e.class}=e,{color:f="gray"}=e;function m(u){Ut.call(this,s,u)}return s.$$set=u=>{l(9,e=$e($e({},e),Te(u))),"disabled"in u&&l(0,r=u.disabled),"loading"in u&&l(1,a=u.loading),"active"in u&&l(2,o=u.active),"icon"in u&&l(3,c=u.icon),"classes"in u&&l(4,i=u.classes),"color"in u&&l(5,f=u.color),"$$scope"in u&&l(6,n=u.$$scope)},e=Te(e),[r,a,o,c,i,f,n,t,m]}class Dl extends se{constructor(e){super(),ae(this,e,yl,Tl,ie,{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,a=Object.entries(s[0]);const o=c=>c[5];for(let c=0;c{r=null}),Q())},i(a){n||(p(r),n=!0)},o(a){h(r),n=!1},d(a){a&&d(l),r&&r.d(a),a&&d(t)}}}function Cl(s){let e,l,t=s[2]>1&&rt(s);return{c(){t&&t.c(),e=z()},l(n){t&&t.l(n),e=z()},m(n,r){t&&t.m(n,r),E(n,e,r),l=!0},p(n,[r]){n[2]>1?t?(t.p(n,r),r&4&&p(t,1)):(t=rt(n),t.c(),p(t,1),t.m(e.parentNode,e)):t&&(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 Pl(s,e,l){let t,{attributeGrouping:n}=e,{activePill:r}=e;const a=Gt(),o=c=>a("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,i)=>(i.length&&(c+=1),c),0))},[n,r,t,a,o]}class Qt extends se{constructor(e){super(),ae(this,e,Pl,Cl,ie,{attributeGrouping:0,activePill:1})}}function Vl(s){let e,l,t=X(s[0])+"",n,r,a,o,c;return{c(){e=$("div"),l=$("p"),n=M(t),r=S(),a=$("p"),o=$("span"),c=M(s[1]),this.h()},l(i){e=b(i,"DIV",{class:!0});var f=k(e);l=b(f,"P",{class:!0});var m=k(l);n=j(m,t),m.forEach(d),r=G(f),a=b(f,"P",{class:!0});var u=k(a);o=b(u,"SPAN",{class:!0});var _=k(o);c=j(_,s[1]),_.forEach(d),u.forEach(d),f.forEach(d),this.h()},h(){v(l,"class","text-sm"),v(o,"class","select-all px-2 svelte-10e9wiy"),H(o,"badge",!Le(s[0])),v(a,"class","text-sm"),v(e,"class","content detail-row svelte-10e9wiy")},m(i,f){E(i,e,f),g(e,l),g(l,n),g(e,r),g(e,a),g(a,o),g(o,c)},p(i,f){f&1&&t!==(t=X(i[0])+"")&&F(n,t),f&2&&F(c,i[1]),f&1&&H(o,"badge",!Le(i[0]))},i:re,o:re,d(i){i&&d(e)}}}function Sl(s){let e,l,t=X(s[0])+"",n,r,a,o,c;return o=new ye({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=$("div"),l=$("p"),n=M(t),r=S(),a=$("div"),I(o.$$.fragment),this.h()},l(i){e=b(i,"DIV",{class:!0});var f=k(e);l=b(f,"P",{class:!0});var m=k(l);n=j(m,t),m.forEach(d),r=G(f),a=b(f,"DIV",{class:!0});var u=k(a);T(o.$$.fragment,u),u.forEach(d),f.forEach(d),this.h()},h(){v(l,"class","text-sm"),v(a,"class","text-sm"),v(e,"class","content detail-row svelte-10e9wiy")},m(i,f){E(i,e,f),g(e,l),g(l,n),g(e,r),g(e,a),y(o,a,null),c=!0},p(i,f){(!c||f&1)&&t!==(t=X(i[0])+"")&&F(n,t);const m={};f&2&&(m.content=i[1]),f&2050&&(m.$$scope={dirty:f,ctx:i}),o.$set(m)},i(i){c||(p(o.$$.fragment,i),c=!0)},o(i){h(o.$$.fragment,i),c=!1},d(i){i&&d(e),D(o)}}}function Gl(s){let e,l,t=X(s[0])+"",n,r,a,o,c;return o=new ye({props:{copyIconTitle:N("common.copy-icon-title"),copySuccessIconTitle:N("common.copy-success-icon-title"),content:s[1],"container-class":"xl:flex-row",$$slots:{default:[jl]},$$scope:{ctx:s}}}),{c(){e=$("div"),l=$("p"),n=M(t),r=S(),a=$("div"),I(o.$$.fragment),this.h()},l(i){e=b(i,"DIV",{class:!0});var f=k(e);l=b(f,"P",{class:!0});var m=k(l);n=j(m,t),m.forEach(d),r=G(f),a=b(f,"DIV",{class:!0});var u=k(a);T(o.$$.fragment,u),u.forEach(d),f.forEach(d),this.h()},h(){v(l,"class","text-sm"),v(a,"class","text-sm"),v(e,"class","content detail-row svelte-10e9wiy")},m(i,f){E(i,e,f),g(e,l),g(l,n),g(e,r),g(e,a),y(o,a,null),c=!0},p(i,f){(!c||f&1)&&t!==(t=X(i[0])+"")&&F(n,t);const m={};f&2&&(m.content=i[1]),f&2054&&(m.$$scope={dirty:f,ctx:i}),o.$set(m)},i(i){c||(p(o.$$.fragment,i),c=!0)},o(i){h(o.$$.fragment,i),c=!1},d(i){i&&d(e),D(o)}}}function Nl(s){let e,l,t=X(s[0])+"",n,r,a,o,c;return o=new ye({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:[ql]},$$scope:{ctx:s}}}),{c(){e=$("div"),l=$("p"),n=M(t),r=S(),a=$("div"),I(o.$$.fragment),this.h()},l(i){e=b(i,"DIV",{class:!0});var f=k(e);l=b(f,"P",{class:!0});var m=k(l);n=j(m,t),m.forEach(d),r=G(f),a=b(f,"DIV",{class:!0});var u=k(a);T(o.$$.fragment,u),u.forEach(d),f.forEach(d),this.h()},h(){v(l,"class","text-sm"),v(a,"class","text-sm"),v(e,"class","content detail-row svelte-10e9wiy")},m(i,f){E(i,e,f),g(e,l),g(l,n),g(e,r),g(e,a),y(o,a,null),c=!0},p(i,f){(!c||f&1)&&t!==(t=X(i[0])+"")&&F(n,t);const m={};f&2&&(m.content=i[1]),f&2050&&(m.$$scope={dirty:f,ctx:i}),o.$set(m)},i(i){c||(p(o.$$.fragment,i),c=!0)},o(i){h(o.$$.fragment,i),c=!1},d(i){i&&d(e),D(o)}}}function Ol(s){let e,l,t,n=X(s[0])+"",r,a,o,c,i,f,m;const u=[Wl,Hl,Bl],_=[];function w(P,O){var q;return(q=P[1])!=null&&q.payloads?0:P[0]==="searchAttributes"?1:2}o=w(s),c=_[o]=u[o](s);let C=s[5]&&!s[3]&&it(s);return{c(){e=$("div"),l=$("div"),t=$("p"),r=M(n),a=S(),c.c(),f=S(),C&&C.c(),this.h()},l(P){e=b(P,"DIV",{class:!0});var O=k(e);l=b(O,"DIV",{class:!0});var q=k(l);t=b(q,"P",{class:!0});var te=k(t);r=j(te,n),te.forEach(d),a=G(q),c.l(q),q.forEach(d),f=G(O),C&&C.l(O),O.forEach(d),this.h()},h(){v(t,"class","text-sm"),v(l,"class",i="flex flex-col "+(s[5]?"lg:w-1/2":"")),v(e,"class","content code-block-row svelte-10e9wiy"),H(e,"code-with-stack-trace",s[5])},m(P,O){E(P,e,O),g(e,l),g(l,t),g(t,r),g(l,a),_[o].m(l,null),g(e,f),C&&C.m(e,null),m=!0},p(P,O){(!m||O&1)&&n!==(n=X(P[0])+"")&&F(r,n);let q=o;o=w(P),o===q?_[o].p(P,O):(W(),h(_[q],1,1,()=>{_[q]=null}),Q(),c=_[o],c?c.p(P,O):(c=_[o]=u[o](P),c.c()),p(c,1),c.m(l,null)),(!m||O&32&&i!==(i="flex flex-col "+(P[5]?"lg:w-1/2":"")))&&v(l,"class",i),P[5]&&!P[3]?C?(C.p(P,O),O&40&&p(C,1)):(C=it(P),C.c(),p(C,1),C.m(e,null)):C&&(W(),h(C,1,1,()=>{C=null}),Q()),(!m||O&32)&&H(e,"code-with-stack-trace",P[5])},i(P){m||(p(c),p(C),m=!0)},o(P){h(c),h(C),m=!1},d(P){P&&d(e),_[o].d(),C&&C.d()}}}function Ll(s){let e;return{c(){e=M(s[1])},l(l){e=j(l,s[1])},m(l,t){E(l,e,t)},p(l,t){t&2&&F(e,l[1])},d(l){l&&d(e)}}}function Rl(s){let e,l;return e=new ge({props:{href:Me({namespace:s[7],queue:s[1]}),$$slots:{default:[Ll]},$$scope:{ctx:s}}}),{c(){I(e.$$.fragment)},l(t){T(e.$$.fragment,t)},m(t,n){y(e,t,n),l=!0},p(t,n){const r={};n&2&&(r.href=Me({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){D(e,t)}}}function Ml(s){let e;return{c(){e=M(s[1])},l(l){e=j(l,s[1])},m(l,t){E(l,e,t)},p(l,t){t&2&&F(e,l[1])},d(l){l&&d(e)}}}function jl(s){var t;let e,l;return e=new ge({props:{href:he({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(){I(e.$$.fragment)},l(n){T(e.$$.fragment,n)},m(n,r){y(e,n,r),l=!0},p(n,r){var o;const a={};r&4&&(a.href=he({namespace:((o=n[2])==null?void 0:o.namespace)||n[7],workflow:n[2].workflowExecutionWorkflowId,run:n[2].workflowExecutionRunId})),r&2050&&(a.$$scope={dirty:r,ctx:n}),e.$set(a)},i(n){l||(p(e.$$.fragment,n),l=!0)},o(n){h(e.$$.fragment,n),l=!1},d(n){D(e,n)}}}function Fl(s){let e;return{c(){e=M(s[1])},l(l){e=j(l,s[1])},m(l,t){E(l,e,t)},p(l,t){t&2&&F(e,l[1])},d(l){l&&d(e)}}}function ql(s){let e,l;return e=new ge({props:{href:he({namespace:s[7],workflow:s[6],run:s[1]}),$$slots:{default:[Fl]},$$scope:{ctx:s}}}),{c(){I(e.$$.fragment)},l(t){T(e.$$.fragment,t)},m(t,n){y(e,t,n),l=!0},p(t,n){const r={};n&2&&(r.href=he({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){D(e,t)}}}function Bl(s){let e,l;return e=new je({props:{value:s[4],$$slots:{default:[Ql,({decodedValue:t})=>({10:t}),({decodedValue:t})=>t?1024:0]},$$scope:{ctx:s}}}),{c(){I(e.$$.fragment)},l(t){T(e.$$.fragment,t)},m(t,n){y(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){D(e,t)}}}function Hl(s){let e,l;return e=new je({props:{key:"searchAttributes",value:{searchAttributes:s[4]},$$slots:{default:[zl,({decodedValue:t})=>({10:t}),({decodedValue:t})=>t?1024:0]},$$scope:{ctx:s}}}),{c(){I(e.$$.fragment)},l(t){T(e.$$.fragment,t)},m(t,n){y(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){D(e,t)}}}function Wl(s){let e,l;return e=new je({props:{value:s[1],key:"payloads",$$slots:{default:[Ul,({decodedValue:t})=>({10:t}),({decodedValue:t})=>t?1024:0]},$$scope:{ctx:s}}}),{c(){I(e.$$.fragment)},l(t){T(e.$$.fragment,t)},m(t,n){y(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){D(e,t)}}}function Ql(s){let e,l;return e=new Ve({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(){I(e.$$.fragment)},l(t){T(e.$$.fragment,t)},m(t,n){y(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){D(e,t)}}}function zl(s){let e,l;return e=new Ve({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(){I(e.$$.fragment)},l(t){T(e.$$.fragment,t)},m(t,n){y(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){D(e,t)}}}function Ul(s){let e,l;return e=new Ve({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(){I(e.$$.fragment)},l(t){T(e.$$.fragment,t)},m(t,n){y(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){D(e,t)}}}function it(s){let e,l,t=N("workflows.call-stack-tab")+"",n,r,a,o;return a=new Ve({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=$("div"),l=$("p"),n=M(t),r=S(),I(a.$$.fragment),this.h()},l(c){e=b(c,"DIV",{class:!0});var i=k(e);l=b(i,"P",{class:!0});var f=k(l);n=j(f,t),f.forEach(d),r=G(i),T(a.$$.fragment,i),i.forEach(d),this.h()},h(){v(l,"class","text-sm"),v(e,"class","flex flex-col lg:w-1/2")},m(c,i){E(c,e,i),g(e,l),g(l,n),g(e,r),y(a,e,null),o=!0},p(c,i){const f={};i&32&&(f.content=c[5]),a.$set(f)},i(c){o||(p(a.$$.fragment,c),o=!0)},o(c){h(a.$$.fragment,c),o=!1},d(c){c&&d(e),D(a)}}}function Jl(s){let e,l,t,n,r,a,o,c;const i=[Ol,Nl,Gl,Sl,Vl],f=[];function m(u,_){return _&1&&(l=null),_&5&&(t=null),_&1&&(n=null),typeof u[1]=="object"?0:(l==null&&(l=!!Ot(u[0])),l?1:(t==null&&(t=!!Lt(u[0],u[2])),t?2:(n==null&&(n=!!Rt(u[0])),n?3:4)))}return r=m(s,-1),a=f[r]=i[r](s),{c(){e=$("div"),a.c(),this.h()},l(u){e=b(u,"DIV",{class:!0});var _=k(e);a.l(_),_.forEach(d),this.h()},h(){v(e,"class",o="row "+s[8].class+" svelte-10e9wiy")},m(u,_){E(u,e,_),f[r].m(e,null),c=!0},p(u,[_]){let w=r;r=m(u,_),r===w?f[r].p(u,_):(W(),h(f[w],1,1,()=>{f[w]=null}),Q(),a=f[r],a?a.p(u,_):(a=f[r]=i[r](u),a.c()),p(a,1),a.m(e,null)),(!c||_&256&&o!==(o="row "+u[8].class+" svelte-10e9wiy"))&&v(e,"class",o)},i(u){c||(p(a),c=!0)},o(u){h(a),c=!1},d(u){u&&d(e),f[r].d()}}}function Kl(s,e,l){let t,n,r;le(s,be,u=>l(9,r=u));let{key:a}=e,{value:o}=e,{attributes:c}=e,{inline:i=!1}=e;const{workflow:f,namespace:m}=r.params;return s.$$set=u=>{l(8,e=$e($e({},e),Te(u))),"key"in u&&l(0,a=u.key),"value"in u&&l(1,o=u.value),"attributes"in u&&l(2,c=u.attributes),"inline"in u&&l(3,i=u.inline)},s.$$.update=()=>{s.$$.dirty&2&&l(4,t=fl(o)),s.$$.dirty&16&&l(5,n=cl(t))},e=Te(e),[a,o,c,i,t,n,f,m,e]}class zt extends se{constructor(e){super(),ae(this,e,Kl,Jl,ie,{key:0,value:1,attributes:2,inline:3})}}function ot(s,e,l){const t=s.slice();return t[8]=e[l][0],t[9]=e[l][1],t}function Xl(s){let e=s[8]+"",l;return{c(){l=M(e)},l(t){l=j(t,e)},m(t,n){E(t,l,n)},p(t,n){n&1&&e!==(e=t[8]+"")&&F(l,e)},d(t){t&&d(l)}}}function ft(s,e){let l,t,n,r,a,o,c,i,f,m=(Re(e[9])?"LocalActivity":e[9].eventType)+"",u,_,w,C,P,O,q;o=new ge({props:{class:"truncate",href:Qe({eventId:e[8],namespace:e[3],workflow:e[5],run:e[4]}),$$slots:{default:[Xl]},$$scope:{ctx:e}}});function te(){return e[7](e[8])}return{key:s,first:null,c(){l=$("tr"),t=$("td"),n=S(),r=$("td"),a=$("p"),I(o.$$.fragment),c=S(),i=$("td"),f=$("p"),u=M(m),_=S(),w=$("td"),C=S(),this.h()},l(L){l=b(L,"TR",{class:!0});var A=k(l);t=b(A,"TD",{class:!0}),k(t).forEach(d),n=G(A),r=b(A,"TD",{class:!0});var U=k(r);a=b(U,"P",{class:!0});var oe=k(a);T(o.$$.fragment,oe),oe.forEach(d),U.forEach(d),c=G(A),i=b(A,"TD",{});var ce=k(i);f=b(ce,"P",{class:!0});var fe=k(f);u=j(fe,m),fe.forEach(d),ce.forEach(d),_=G(A),w=b(A,"TD",{}),k(w).forEach(d),C=G(A),A.forEach(d),this.h()},h(){v(t,"class","w-1/12"),v(a,"class","truncate text-sm text-gray-500 md:text-base"),v(r,"class","w-24"),v(f,"class","event-type truncate text-sm md:text-base svelte-11yead6"),v(l,"class","row svelte-11yead6"),H(l,"active",e[8]===e[1]),H(l,"failure",qe(e[9])),H(l,"canceled",Be(e[9])),H(l,"terminated",He(e[9])),this.first=l},m(L,A){E(L,l,A),g(l,t),g(l,n),g(l,r),g(r,a),y(o,a,null),g(l,c),g(l,i),g(i,f),g(f,u),g(l,_),g(l,w),g(l,C),P=!0,O||(q=ze(l,"click",Nt(Jt(te))),O=!0)},p(L,A){e=L;const U={};A&57&&(U.href=Qe({eventId:e[8],namespace:e[3],workflow:e[5],run:e[4]})),A&4097&&(U.$$scope={dirty:A,ctx:e}),o.$set(U),(!P||A&1)&&m!==(m=(Re(e[9])?"LocalActivity":e[9].eventType)+"")&&F(u,m),(!P||A&3)&&H(l,"active",e[8]===e[1]),(!P||A&1)&&H(l,"failure",qe(e[9])),(!P||A&1)&&H(l,"canceled",Be(e[9])),(!P||A&1)&&H(l,"terminated",He(e[9]))},i(L){P||(p(o.$$.fragment,L),P=!0)},o(L){h(o.$$.fragment,L),P=!1},d(L){L&&d(l),D(o),O=!1,q()}}}function Yl(s){let e=[],l=new Map,t,n,r=[...s[0].events].reverse();const a=o=>o[8];for(let o=0;ol(6,a=m));let{eventGroup:o}=e,{selectedId:c}=e,{onGroupClick:i}=e;const f=m=>i(m);return s.$$set=m=>{"eventGroup"in m&&l(0,o=m.eventGroup),"selectedId"in m&&l(1,c=m.selectedId),"onGroupClick"in m&&l(2,i=m.onGroupClick)},s.$$.update=()=>{s.$$.dirty&64&&l(5,{workflow:t,run:n,namespace:r}=a.params,t,(l(4,n),l(6,a)),(l(3,r),l(6,a)))},[o,c,i,r,n,t,a,f]}class en extends se{constructor(e){super(),ae(this,e,xl,Zl,ie,{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 tn(s){let e,l,t,n=[],r=new Map,a;l=new Qt({props:{attributeGrouping:s[4],activePill:s[5]}}),l.$on("pillChange",s[7]);let o=s[6];const c=i=>i[10];for(let i=0;iu[10];for(let u=0;u{a=null}),Q())},i(c){r||(p(a),r=!0)},o(c){h(a),r=!1},d(c){c&&d(l),a&&a.d(c),c&&d(n)}}}function dt(s){let e,l;return e=new zt({props:{key:s[10],value:s[11],attributes:s[3],class:"w-full"}}),{c(){I(e.$$.fragment)},l(t){T(e.$$.fragment,t)},m(t,n){y(e,t,n),l=!0},p(t,n){const r={};n&64&&(r.key=t[10]),n&64&&(r.value=t[11]),n&8&&(r.attributes=t[3]),e.$set(r)},i(t){l||(p(e.$$.fragment,t),l=!0)},o(t){h(e.$$.fragment,t),l=!1},d(t){D(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,a=t&&dt(e);return{key:s,first:null,c(){l=z(),a&&a.c(),n=z(),this.h()},l(c){l=z(),a&&a.l(c),n=z(),this.h()},h(){this.first=l},m(c,i){E(c,l,i),a&&a.m(c,i),E(c,n,i),r=!0},p(c,i){var f;e=c,i&112&&(t=(f=e[4][e[5]])==null?void 0:f.includes(e[10])),t?a?(a.p(e,i),i&112&&p(a,1)):(a=dt(e),a.c(),p(a,1),a.m(n.parentNode,n)):a&&(W(),h(a,1,1,()=>{a=null}),Q())},i(c){r||(p(a),r=!0)},o(c){h(a),r=!1},d(c){c&&d(l),a&&a.d(c),c&&d(n)}}}function nn(s){let e,l,t,n,r;const a=[ln,tn],o=[];function c(i,f){return f&6&&(e=null),e==null&&(e=!!(i[2]&&ve(i[1]))),e?0:1}return l=c(s,-1),t=o[l]=a[l](s),{c(){t.c(),n=z()},l(i){t.l(i),n=z()},m(i,f){o[l].m(i,f),E(i,n,f),r=!0},p(i,[f]){let m=l;l=c(i,f),l===m?o[l].p(i,f):(W(),h(o[m],1,1,()=>{o[m]=null}),Q(),t=o[l],t?t.p(i,f):(t=o[l]=a[l](i),t.c()),p(t,1),t.m(n.parentNode,n))},i(i){r||(p(t),r=!0)},o(i){h(t),r=!1},d(i){o[l].d(i),i&&d(n)}}}function rn(s,e,l){let t,n,r,a,{event:o}=e,{currentEvent:c}=e,{compact:i=!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,i=_.compact),"selectedId"in _&&l(0,f=_.selectedId)},s.$$.update=()=>{s.$$.dirty&516&&l(3,t=Mt(c,{compact:i})),s.$$.dirty&10&&l(4,n=ul(o,t)),s.$$.dirty&16&&l(5,r=Object.keys(n).find(_=>n[_].length)),s.$$.dirty&8&&l(6,a=Object.entries(t))},[f,o,i,t,n,r,a,m,u,c]}class sn extends se{constructor(e){super(),ae(this,e,rn,nn,ie,{event:1,currentEvent:9,compact:2,selectedId:0})}}function an(s){let e,l,t=X(s[0])+"",n,r,a,o,c;return{c(){e=$("div"),l=$("p"),n=M(t),r=S(),a=$("p"),o=$("span"),c=M(s[1]),this.h()},l(i){e=b(i,"DIV",{class:!0});var f=k(e);l=b(f,"P",{class:!0});var m=k(l);n=j(m,t),m.forEach(d),r=G(f),a=b(f,"P",{class:!0});var u=k(a);o=b(u,"SPAN",{class:!0});var _=k(o);c=j(_,s[1]),_.forEach(d),u.forEach(d),f.forEach(d),this.h()},h(){v(l,"class","mr-3 truncate text-sm"),v(o,"class","w-full select-all text-gray-700 svelte-n4ehvt"),H(o,"badge",!Le(s[0])),v(a,"class","truncate text-right text-sm xl:text-left"),v(e,"class","flex w-full flex-wrap items-center gap-1 pr-1")},m(i,f){E(i,e,f),g(e,l),g(l,n),g(e,r),g(e,a),g(a,o),g(o,c)},p(i,f){f&1&&t!==(t=X(i[0])+"")&&F(n,t),f&2&&F(c,i[1]),f&1&&H(o,"badge",!Le(i[0]))},i:re,o:re,d(i){i&&d(e)}}}function on(s){let e,l,t=X(s[0])+"",n,r,a,o,c;return o=new ye({props:{copyIconTitle:N("common.copy-icon-title"),copySuccessIconTitle:N("common.copy-success-icon-title"),content:s[1],$$slots:{default:[_n]},$$scope:{ctx:s}}}),{c(){e=$("div"),l=$("p"),n=M(t),r=S(),a=$("div"),I(o.$$.fragment),this.h()},l(i){e=b(i,"DIV",{class:!0});var f=k(e);l=b(f,"P",{class:!0});var m=k(l);n=j(m,t),m.forEach(d),r=G(f),a=b(f,"DIV",{class:!0});var u=k(a);T(o.$$.fragment,u),u.forEach(d),f.forEach(d),this.h()},h(){v(l,"class","mr-3 truncate text-sm"),v(a,"class","truncate text-sm"),v(e,"class","flex w-full flex-wrap items-center gap-1 pr-1")},m(i,f){E(i,e,f),g(e,l),g(l,n),g(e,r),g(e,a),y(o,a,null),c=!0},p(i,f){(!c||f&1)&&t!==(t=X(i[0])+"")&&F(n,t);const m={};f&2&&(m.content=i[1]),f&514&&(m.$$scope={dirty:f,ctx:i}),o.$set(m)},i(i){c||(p(o.$$.fragment,i),c=!0)},o(i){h(o.$$.fragment,i),c=!1},d(i){i&&d(e),D(o)}}}function fn(s){let e,l,t=X(s[0])+"",n,r,a,o,c;return o=new ye({props:{copyIconTitle:N("common.copy-icon-title"),copySuccessIconTitle:N("common.copy-success-icon-title"),content:s[1],"container-class":"xl:flex-row",$$slots:{default:[pn]},$$scope:{ctx:s}}}),{c(){e=$("div"),l=$("p"),n=M(t),r=S(),a=$("div"),I(o.$$.fragment),this.h()},l(i){e=b(i,"DIV",{class:!0});var f=k(e);l=b(f,"P",{class:!0});var m=k(l);n=j(m,t),m.forEach(d),r=G(f),a=b(f,"DIV",{class:!0});var u=k(a);T(o.$$.fragment,u),u.forEach(d),f.forEach(d),this.h()},h(){v(l,"class","truncate text-sm"),v(a,"class","truncate text-sm"),v(e,"class","flex w-full flex-wrap items-center gap-1 pr-1")},m(i,f){E(i,e,f),g(e,l),g(l,n),g(e,r),g(e,a),y(o,a,null),c=!0},p(i,f){(!c||f&1)&&t!==(t=X(i[0])+"")&&F(n,t);const m={};f&2&&(m.content=i[1]),f&518&&(m.$$scope={dirty:f,ctx:i}),o.$set(m)},i(i){c||(p(o.$$.fragment,i),c=!0)},o(i){h(o.$$.fragment,i),c=!1},d(i){i&&d(e),D(o)}}}function cn(s){let e,l,t=X(s[0])+"",n,r,a,o,c;return o=new ye({props:{copyIconTitle:N("common.copy-icon-title"),copySuccessIconTitle:N("common.copy-success-icon-title"),content:s[1],"container-class":"xl:flex-row",$$slots:{default:[gn]},$$scope:{ctx:s}}}),{c(){e=$("div"),l=$("p"),n=M(t),r=S(),a=$("div"),I(o.$$.fragment),this.h()},l(i){e=b(i,"DIV",{class:!0});var f=k(e);l=b(f,"P",{class:!0});var m=k(l);n=j(m,t),m.forEach(d),r=G(f),a=b(f,"DIV",{class:!0});var u=k(a);T(o.$$.fragment,u),u.forEach(d),f.forEach(d),this.h()},h(){v(l,"class","mr-3 truncate text-sm"),v(a,"class","truncate text-sm"),v(e,"class","flex w-full flex-wrap items-center gap-1 pr-1")},m(i,f){E(i,e,f),g(e,l),g(l,n),g(e,r),g(e,a),y(o,a,null),c=!0},p(i,f){(!c||f&1)&&t!==(t=X(i[0])+"")&&F(n,t);const m={};f&2&&(m.content=i[1]),f&514&&(m.$$scope={dirty:f,ctx:i}),o.$set(m)},i(i){c||(p(o.$$.fragment,i),c=!0)},o(i){h(o.$$.fragment,i),c=!1},d(i){i&&d(e),D(o)}}}function un(s){let e,l,t=X(s[0])+"",n,r,a,o;return a=new je({props:{value:s[1],key:"payloads",$$slots:{default:[vn,({decodedValue:c})=>({8:c}),({decodedValue:c})=>c?256:0]},$$scope:{ctx:s}}}),{c(){e=$("div"),l=$("p"),n=M(t),r=S(),I(a.$$.fragment),this.h()},l(c){e=b(c,"DIV",{class:!0});var i=k(e);l=b(i,"P",{class:!0});var f=k(l);n=j(f,t),f.forEach(d),r=G(i),T(a.$$.fragment,i),i.forEach(d),this.h()},h(){v(l,"class","min-w-fit text-sm"),v(e,"class","flex w-full flex-wrap items-center justify-between gap-1 pr-1 xl:flex-nowrap xl:gap-4")},m(c,i){E(c,e,i),g(e,l),g(l,n),g(e,r),y(a,e,null),o=!0},p(c,i){(!o||i&1)&&t!==(t=X(c[0])+"")&&F(n,t);const f={};i&2&&(f.value=c[1]),i&776&&(f.$$scope={dirty:i,ctx:c}),a.$set(f)},i(c){o||(p(a.$$.fragment,c),o=!0)},o(c){h(a.$$.fragment,c),o=!1},d(c){c&&d(e),D(a)}}}function mn(s){let e;return{c(){e=M(s[1])},l(l){e=j(l,s[1])},m(l,t){E(l,e,t)},p(l,t){t&2&&F(e,l[1])},d(l){l&&d(e)}}}function _n(s){let e,l;return e=new ge({props:{class:"truncate",href:Me({namespace:s[5],queue:s[1]}),$$slots:{default:[mn]},$$scope:{ctx:s}}}),{c(){I(e.$$.fragment)},l(t){T(e.$$.fragment,t)},m(t,n){y(e,t,n),l=!0},p(t,n){const r={};n&2&&(r.href=Me({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){D(e,t)}}}function dn(s){let e;return{c(){e=M(s[1])},l(l){e=j(l,s[1])},m(l,t){E(l,e,t)},p(l,t){t&2&&F(e,l[1])},d(l){l&&d(e)}}}function pn(s){let e,l;return e=new ge({props:{class:"truncate",href:he({namespace:s[5],workflow:s[2].workflowExecutionWorkflowId,run:s[2].workflowExecutionRunId}),$$slots:{default:[dn]},$$scope:{ctx:s}}}),{c(){I(e.$$.fragment)},l(t){T(e.$$.fragment,t)},m(t,n){y(e,t,n),l=!0},p(t,n){const r={};n&4&&(r.href=he({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){D(e,t)}}}function hn(s){let e;return{c(){e=M(s[1])},l(l){e=j(l,s[1])},m(l,t){E(l,e,t)},p(l,t){t&2&&F(e,l[1])},d(l){l&&d(e)}}}function gn(s){let e,l;return e=new ge({props:{class:"truncate",href:he({namespace:s[5],workflow:s[4],run:s[1]}),$$slots:{default:[hn]},$$scope:{ctx:s}}}),{c(){I(e.$$.fragment)},l(t){T(e.$$.fragment,t)},m(t,n){y(e,t,n),l=!0},p(t,n){const r={};n&2&&(r.href=he({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){D(e,t)}}}function vn(s){let e,l;return e=new Ve({props:{content:s[8],inline:s[3],copyIconTitle:N("common.copy-icon-title"),copySuccessIconTitle:N("common.copy-success-icon-title")}}),{c(){I(e.$$.fragment)},l(t){T(e.$$.fragment,t)},m(t,n){y(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){D(e,t)}}}function $n(s){let e,l,t,n,r,a,o,c;const i=[un,cn,fn,on,an],f=[];function m(u,_){return _&1&&(l=null),_&5&&(t=null),_&1&&(n=null),typeof u[1]=="object"?0:(l==null&&(l=!!Ot(u[0])),l?1:(t==null&&(t=!!Lt(u[0],u[2])),t?2:(n==null&&(n=!!Rt(u[0])),n?3:4)))}return r=m(s,-1),a=f[r]=i[r](s),{c(){e=$("div"),a.c(),this.h()},l(u){e=b(u,"DIV",{class:!0});var _=k(e);a.l(_),_.forEach(d),this.h()},h(){v(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,_){E(u,e,_),f[r].m(e,null),c=!0},p(u,[_]){let w=r;r=m(u,_),r===w?f[r].p(u,_):(W(),h(f[w],1,1,()=>{f[w]=null}),Q(),a=f[r],a?a.p(u,_):(a=f[r]=i[r](u),a.c()),p(a,1),a.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"))&&v(e,"class",o)},i(u){c||(p(a),c=!0)},o(u){h(a),c=!1},d(u){u&&d(e),f[r].d()}}}function bn(s,e,l){let t;le(s,be,f=>l(7,t=f));let{key:n}=e,{value:r}=e,{attributes:a}=e,{inline:o=!1}=e;const{workflow:c,namespace:i}=t.params;return s.$$set=f=>{l(6,e=$e($e({},e),Te(f))),"key"in f&&l(0,n=f.key),"value"in f&&l(1,r=f.value),"attributes"in f&&l(2,a=f.attributes),"inline"in f&&l(3,o=f.inline)},e=Te(e),[n,r,a,o,c,i,e]}class kn extends se{constructor(e){super(),ae(this,e,bn,$n,ie,{key:0,value:1,attributes:2,inline:3})}}function wn(s){let e=s[0].id+"",l;return{c(){l=M(e)},l(t){l=j(t,e)},m(t,n){E(t,l,n)},p(t,n){n&1&&e!==(e=t[0].id+"")&&F(l,e)},d(t){t&&d(l)}}}function En(s){var n;let e,l=Ze((n=s[0])==null?void 0:n.eventTime,s[14],{relative:s[15]})+"",t;return{c(){e=$("p"),t=M(l),this.h()},l(r){e=b(r,"P",{class:!0});var a=k(e);t=j(a,l),a.forEach(d),this.h()},h(){v(e,"class","break-word truncate text-sm md:whitespace-normal md:text-base")},m(r,a){E(r,e,a),g(e,t)},p(r,a){var o;a&49153&&l!==(l=Ze((o=r[0])==null?void 0:o.eventTime,r[14],{relative:r[15]})+"")&&F(t,l)},i:re,o:re,d(r){r&&d(e)}}}function In(s){let e,l,t,n,r=s[9]&&ht(s),a=s[8]&&s[8]!=="0ms"&>(s);return{c(){e=$("p"),r&&r.c(),l=S(),a&&a.c(),t=z(),this.h()},l(o){e=b(o,"P",{class:!0});var c=k(e);r&&r.l(c),c.forEach(d),l=G(o),a&&a.l(o),t=z(),this.h()},h(){v(e,"class","break-word truncate text-sm md:whitespace-normal")},m(o,c){E(o,e,c),r&&r.m(e,null),E(o,l,c),a&&a.m(o,c),E(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"?a?(a.p(o,c),c&256&&p(a,1)):(a=gt(o),a.c(),p(a,1),a.m(t.parentNode,t)):a&&(W(),h(a,1,1,()=>{a=null}),Q())},i(o){n||(p(a),n=!0)},o(o){h(a),n=!1},d(o){o&&d(e),r&&r.d(),o&&d(l),a&&a.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=j(n,e),t=j(n,s[9])},m(n,r){E(n,l,r),E(n,t,r)},p(n,r){r&4096&&e!==(e=n[12]?"-":"+")&&F(l,e),r&512&&F(t,n[9])},d(n){n&&d(l),n&&d(t)}}}function gt(s){let e,l,t,n,r,a;return l=new me({props:{class:"inline",name:"clock"}}),{c(){e=$("div"),I(l.$$.fragment),t=S(),n=$("p"),r=M(s[8]),this.h()},l(o){e=b(o,"DIV",{class:!0});var c=k(e);T(l.$$.fragment,c),t=G(c),n=b(c,"P",{class:!0});var i=k(n);r=j(i,s[8]),i.forEach(d),c.forEach(d),this.h()},h(){v(n,"class","break-word truncate text-sm md:whitespace-normal"),v(e,"class","flex flex-row items-center gap-0")},m(o,c){E(o,e,c),y(l,e,null),g(e,t),g(e,n),g(n,r),a=!0},p(o,c){(!a||c&256)&&F(r,o[8])},i(o){a||(p(l.$$.fragment,o),a=!0)},o(o){h(l.$$.fragment,o),a=!1},d(o){o&&d(e),D(l)}}}function vt(s){let e,l;return e=new me({props:{class:"mr-1.5 inline text-red-700",name:"clock"}}),{c(){I(e.$$.fragment)},l(t){T(e.$$.fragment,t)},m(t,n){y(e,t,n),l=!0},i(t){l||(p(e.$$.fragment,t),l=!0)},o(t){h(e.$$.fragment,t),l=!1},d(t){D(e,t)}}}function $t(s){let e,l;return e=new me({props:{class:"mr-1.5 inline text-yellow-700",name:"clock"}}),{c(){I(e.$$.fragment)},l(t){T(e.$$.fragment,t)},m(t,n){y(e,t,n),l=!0},i(t){l||(p(e.$$.fragment,t),l=!0)},o(t){h(e.$$.fragment,t),l=!1},d(t){D(e,t)}}}function bt(s){let e,l;return e=new me({props:{class:"mr-1.5 inline text-pink-700",name:"clock"}}),{c(){I(e.$$.fragment)},l(t){T(e.$$.fragment,t)},m(t,n){y(e,t,n),l=!0},i(t){l||(p(e.$$.fragment,t),l=!0)},o(t){h(e.$$.fragment,t),l=!1},d(t){D(e,t)}}}function kt(s){let e,l,t;return l=new me({props:{class:"inline",name:"chevron-up"}}),{c(){e=$("div"),I(l.$$.fragment)},l(n){e=b(n,"DIV",{});var r=k(e);T(l.$$.fragment,r),r.forEach(d)},m(n,r){E(n,e,r),y(l,e,null),t=!0},i(n){t||(p(l.$$.fragment,n),t=!0)},o(n){h(l.$$.fragment,n),t=!1},d(n){n&&d(e),D(l)}}}function wt(s){let e,l,t,n,r,a,o,c;const i=[et(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;mZt(t,"selectedId",o)),{c(){e=$("tr"),l=$("td"),I(t.$$.fragment),this.h()},l(i){e=b(i,"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(){v(l,"class","expanded-cell svelte-5vypy2"),v(l,"colspan","6"),v(e,"class","svelte-5vypy2"),H(e,"typedError",s[3])},m(i,f){E(i,e,f),g(e,l),y(t,l,null),a=!0},p(i,f){const m={};f&1&&(m.event=i[0]),f&64&&(m.currentEvent=i[6]),f&2&&(m.compact=i[1]),!n&&f&32&&(n=!0,m.selectedId=i[5],xt(()=>n=!1)),t.$set(m),(!a||f&8)&&H(e,"typedError",i[3])},i(i){a||(p(t.$$.fragment,i),i&&(r||el(()=>{r=tl(e,sl,{}),r.start()})),a=!0)},o(i){h(t.$$.fragment,i),a=!1},d(i){i&&d(e),D(t)}}}function Tn(s){let e,l,t,n,r,a,o,c,i,f,m,u,_,w,C,P,O,q,te,L=(ve(s[0])?s[0].displayName:Re(s[0])?"LocalActivity":s[0].name)+"",A,U,oe,ce,fe,_e,ue,ke,de,ne,De,Se;r=new ge({props:{class:"truncate","data-testid":"link",href:s[13],$$slots:{default:[wn]},$$scope:{ctx:s}}});const B=[In,En],pe=[];function Ue(V,R){return V[11]?0:1}i=Ue(s),f=pe[i]=B[i](s);let Y=s[1]&&s[17]&&vt(),Z=s[1]&&s[18]&&$t(),x=s[1]&&s[19]&&bt(),ee=s[7]&&kt(),J=!s[7]&&wt(s),K=s[7]&&Et(s);return{c(){e=$("tr"),l=$("td"),t=S(),n=$("td"),I(r.$$.fragment),a=S(),o=$("td"),c=$("div"),f.c(),m=S(),u=$("td"),_=$("div"),w=$("div"),Y&&Y.c(),C=S(),Z&&Z.c(),P=S(),x&&x.c(),O=S(),q=$("div"),te=$("p"),A=M(L),U=S(),ee&&ee.c(),ce=S(),J&&J.c(),fe=S(),_e=$("td"),ke=S(),K&&K.c(),de=z(),this.h()},l(V){e=b(V,"TR",{class:!0,id:!0,"data-testid":!0});var R=k(e);l=b(R,"TD",{}),k(l).forEach(d),t=G(R),n=b(R,"TD",{class:!0});var we=k(n);T(r.$$.fragment,we),we.forEach(d),a=G(R),o=b(R,"TD",{class:!0});var Ee=k(o);c=b(Ee,"DIV",{class:!0});var Je=k(c);f.l(Je),Je.forEach(d),Ee.forEach(d),m=G(R),u=b(R,"TD",{colspan:!0,class:!0});var Ke=k(u);_=b(Ke,"DIV",{class:!0});var Ge=k(_);w=b(Ge,"DIV",{});var Ie=k(w);Y&&Y.l(Ie),C=G(Ie),Z&&Z.l(Ie),P=G(Ie),x&&x.l(Ie),Ie.forEach(d),O=G(Ge),q=b(Ge,"DIV",{class:!0});var Ne=k(q);te=b(Ne,"P",{class:!0});var Xe=k(te);A=j(Xe,L),Xe.forEach(d),U=G(Ne),ee&&ee.l(Ne),Ne.forEach(d),Ge.forEach(d),Ke.forEach(d),ce=G(R),J&&J.l(R),fe=G(R),_e=b(R,"TD",{}),k(_e).forEach(d),R.forEach(d),ke=G(V),K&&K.l(V),de=z(),this.h()},h(){v(n,"class","w-24 text-left"),v(c,"class","flex flex-col gap-0"),v(o,"class","text-left"),v(te,"class","event-name truncate text-sm font-semibold md:text-base svelte-5vypy2"),v(q,"class","flex w-full items-center justify-between truncate"),v(_,"class","flex"),v(u,"colspan",oe=s[7]?2:1),v(u,"class","text-right text-sm font-normal xl:text-left"),v(e,"class","row svelte-5vypy2"),v(e,"id",ue=s[0].id),v(e,"data-testid","event-summary-row"),H(e,"expanded",s[7]&&!s[2]),H(e,"active",s[4]),H(e,"failure",s[17]),H(e,"canceled",s[18]),H(e,"terminated",s[19]),H(e,"typedError",s[3])},m(V,R){E(V,e,R),g(e,l),g(e,t),g(e,n),y(r,n,null),g(e,a),g(e,o),g(o,c),pe[i].m(c,null),g(e,m),g(e,u),g(u,_),g(_,w),Y&&Y.m(w,null),g(w,C),Z&&Z.m(w,null),g(w,P),x&&x.m(w,null),g(_,O),g(_,q),g(q,te),g(te,A),g(q,U),ee&&ee.m(q,null),g(e,ce),J&&J.m(e,null),g(e,fe),g(e,_e),E(V,ke,R),K&&K.m(V,R),E(V,de,R),ne=!0,De||(Se=ze(e,"click",Nt(s[16])),De=!0)},p(V,[R]){const we={};R&8192&&(we.href=V[13]),R&1073741825&&(we.$$scope={dirty:R,ctx:V}),r.$set(we);let Ee=i;i=Ue(V),i===Ee?pe[i].p(V,R):(W(),h(pe[Ee],1,1,()=>{pe[Ee]=null}),Q(),f=pe[i],f?f.p(V,R):(f=pe[i]=B[i](V),f.c()),p(f,1),f.m(c,null)),V[1]&&V[17]?Y?R&2&&p(Y,1):(Y=vt(),Y.c(),p(Y,1),Y.m(w,C)):Y&&(W(),h(Y,1,1,()=>{Y=null}),Q()),V[1]&&V[18]?Z?R&2&&p(Z,1):(Z=$t(),Z.c(),p(Z,1),Z.m(w,P)):Z&&(W(),h(Z,1,1,()=>{Z=null}),Q()),V[1]&&V[19]?x?R&2&&p(x,1):(x=bt(),x.c(),p(x,1),x.m(w,null)):x&&(W(),h(x,1,1,()=>{x=null}),Q()),(!ne||R&1)&&L!==(L=(ve(V[0])?V[0].displayName:Re(V[0])?"LocalActivity":V[0].name)+"")&&F(A,L),V[7]?ee?R&128&&p(ee,1):(ee=kt(),ee.c(),p(ee,1),ee.m(q,null)):ee&&(W(),h(ee,1,1,()=>{ee=null}),Q()),(!ne||R&128&&oe!==(oe=V[7]?2:1))&&v(u,"colspan",oe),V[7]?J&&(W(),h(J,1,1,()=>{J=null}),Q()):J?(J.p(V,R),R&128&&p(J,1)):(J=wt(V),J.c(),p(J,1),J.m(e,fe)),(!ne||R&1&&ue!==(ue=V[0].id))&&v(e,"id",ue),(!ne||R&132)&&H(e,"expanded",V[7]&&!V[2]),(!ne||R&16)&&H(e,"active",V[4]),(!ne||R&8)&&H(e,"typedError",V[3]),V[7]?K?(K.p(V,R),R&128&&p(K,1)):(K=Et(V),K.c(),p(K,1),K.m(de.parentNode,de)):K&&(W(),h(K,1,1,()=>{K=null}),Q())},i(V){ne||(p(r.$$.fragment,V),p(f),p(Y),p(Z),p(x),p(ee),p(J),p(K),ne=!0)},o(V){h(r.$$.fragment,V),h(f),h(Y),h(Z),h(x),h(ee),h(J),h(K),ne=!1},d(V){V&&d(e),D(r),pe[i].d(),Y&&Y.d(),Z&&Z.d(),x&&x.d(),ee&&ee.d(),J&&J.d(),V&&d(ke),K&&K.d(V),V&&d(de),De=!1,Se()}}}function yn(s,e,l){let t,n,r,a,o,c,i,f,m,u,_,w,C,P,O,q,te;le(s,Oe,B=>l(26,C=B)),le(s,We,B=>l(27,P=B)),le(s,be,B=>l(28,O=B)),le(s,il,B=>l(14,q=B)),le(s,ol,B=>l(15,te=B));let{event:L}=e,{initialItem:A}=e,{compact:U=!1}=e,{expandAll:oe=!1}=e,{typedError:ce=!1}=e,{active:fe=!1}=e,{onRowClick:_e=re}=e,ue=ve(L)?Array.from(L.events.keys()).pop():L.id;const ke=()=>{l(7,o=!o),_e()},de=qe(L),ne=Be(L),De=He(L);function Se(B){ue=B,l(5,ue)}return s.$$set=B=>{"event"in B&&l(0,L=B.event),"initialItem"in B&&l(20,A=B.initialItem),"compact"in B&&l(1,U=B.compact),"expandAll"in B&&l(2,oe=B.expandAll),"typedError"in B&&l(3,ce=B.typedError),"active"in B&&l(4,fe=B.active),"onRowClick"in B&&l(21,_e=B.onRowClick)},s.$$.update=()=>{s.$$.dirty&268435456&&l(24,{workflow:t,run:n,namespace:r}=O.params,t,(l(23,n),l(28,O)),(l(25,r),l(28,O))),s.$$.dirty&58720257&&l(13,a=Qe({eventId:L.id,namespace:r,workflow:t,run:n})),s.$$.dirty&4&&l(7,o=oe),s.$$.dirty&134217728&&l(12,c=P==="descending"),s.$$.dirty&67108864&&l(22,i=C==="true"),s.$$.dirty&5242881&&l(11,f=i&&A&&L.id!==A.id),s.$$.dirty&3&&l(10,m=Mt(L,{compact:U})),s.$$.dirty&33&&l(6,u=ve(L)?L.events.get(ue):L),s.$$.dirty&1048641&&l(9,_=tt({start:A.eventTime,end:ve(L)?L.initialEvent.eventTime:u.eventTime,includeMilliseconds:!0})),s.$$.dirty&1&&l(8,w=ve(L)?tt({start:L.initialEvent.eventTime,end:L.lastEvent.eventTime,includeMilliseconds:!0}):"")},[L,U,oe,ce,fe,ue,u,o,w,_,m,f,c,a,q,te,ke,de,ne,De,A,_e,i,n,t,r,C,P,O,Se]}class Nr extends se{constructor(e){super(),ae(this,e,yn,Tn,ie,{event:0,initialItem:20,compact:1,expandAll:2,typedError:3,active:4,onRowClick:21})}}const Dn=({compact:s,sortOrder:e,showElapsed:l})=>{if(!((s||e==="descending")&&l==="false"))return`${e}:${l}`};function It(s,e,l){const t=s.slice();return t[9]=e[l].option,t[10]=e[l].label,t}function An(s){let e,l,t,n=N("common.date-and-time")+"",r,a;return e=new me({props:{class:"md:hidden",name:"clock"}}),{c(){I(e.$$.fragment),l=S(),t=$("span"),r=M(n),this.h()},l(o){T(e.$$.fragment,o),l=G(o),t=b(o,"SPAN",{class:!0});var c=k(t);r=j(c,n),c.forEach(d),this.h()},h(){v(t,"class","max-md:hidden")},m(o,c){y(e,o,c),E(o,l,c),E(o,t,c),g(t,r),a=!0},p:re,i(o){a||(p(e.$$.fragment,o),a=!0)},o(o){h(e.$$.fragment,o),a=!1},d(o){D(e,o),o&&d(l),o&&d(t)}}}function Cn(s){let e=s[10]+"",l;return{c(){l=M(e)},l(t){l=j(t,e)},m(t,n){E(t,l,n)},p:re,d(t){t&&d(l)}}}function Tt(s){let e,l;function t(){return s[7](s[9])}return e=new Ae({props:{selected:s[1]===s[9],$$slots:{default:[Cn]},$$scope:{ctx:s}}}),e.$on("click",t),{c(){I(e.$$.fragment)},l(n){T(e.$$.fragment,n)},m(n,r){y(e,n,r),l=!0},p(n,r){s=n;const a={};r&2&&(a.selected=s[1]===s[9]),r&8192&&(a.$$scope={dirty:r,ctx:s}),e.$set(a)},i(n){l||(p(e.$$.fragment,n),l=!0)},o(n){h(e.$$.fragment,n),l=!1},d(n){D(e,n)}}}function Pn(s){let e=N("events.show-elapsed-time")+"",l;return{c(){l=M(e)},l(t){l=j(t,e)},m(t,n){E(t,l,n)},p:re,d(t){t&&d(l)}}}function Vn(s){let e,l,t,n,r,a=s[3],o=[];for(let i=0;ih(o[i],1,1,()=>{o[i]=null});return l=new Ht({}),n=new Ae({props:{selected:s[0]==="true",$$slots:{default:[Pn]},$$scope:{ctx:s}}}),n.$on("click",s[5]),{c(){for(let i=0;il(0,n=u)),le(s,We,u=>l(1,r=u)),le(s,be,u=>l(8,a=u));let{compact:o}=e,c=[{label:N("events.sort-ascending"),option:"ascending"},{label:N("events.sort-descending"),option:"descending"}];const i=u=>{Fe(We,r=u,r),Wt({parameter:"sort",value:u,url:a.url})},f=()=>{n==="true"?Fe(Oe,n="false",n):Fe(Oe,n="true",n)},m=u=>i(u);return s.$$set=u=>{"compact"in u&&l(6,o=u.compact)},s.$$.update=()=>{s.$$.dirty&67&&l(2,t=Dn({compact:o,sortOrder:r,showElapsed:n}))},[n,r,t,c,i,f,o,m]}class On extends se{constructor(e){super(),ae(this,e,Nn,Gn,ie,{compact:6})}}function yt(s,e,l){const t=s.slice();t[18]=e[l];const n=Boolean(t[8].find(function(...a){return s[17](t[18],...a)}));return t[19]=n,t}function Dt(s){let e,l;return e=new me({props:{class:"md:hidden",name:s[4]}}),{c(){I(e.$$.fragment)},l(t){T(e.$$.fragment,t)},m(t,n){y(e,t,n),l=!0},p(t,n){const r={};n&16&&(r.name=t[4]),e.$set(r)},i(t){l||(p(e.$$.fragment,t),l=!0)},o(t){h(e.$$.fragment,t),l=!1},d(t){D(e,t)}}}function Ln(s){let e,l,t,n,r=s[4]&&Dt(s);return{c(){r&&r.c(),e=S(),l=$("span"),t=M(s[1]),this.h()},l(a){r&&r.l(a),e=G(a),l=b(a,"SPAN",{class:!0});var o=k(l);t=j(o,s[1]),o.forEach(d),this.h()},h(){v(l,"class","max-md:hidden")},m(a,o){r&&r.m(a,o),E(a,e,o),E(a,l,o),g(l,t),n=!0},p(a,o){a[4]?r?(r.p(a,o),o&16&&p(r,1)):(r=Dt(a),r.c(),p(r,1),r.m(e.parentNode,e)):r&&(W(),h(r,1,1,()=>{r=null}),Q()),(!n||o&2)&&F(t,a[1])},i(a){n||(p(r),n=!0)},o(a){h(r),n=!1},d(a){r&&r.d(a),a&&d(e),a&&d(l)}}}function Rn(s){let e=s[18].label+"",l;return{c(){l=M(e)},l(t){l=j(t,e)},m(t,n){E(t,l,n)},p(t,n){n&1&&e!==(e=t[18].label+"")&&F(l,e)},d(t){t&&d(l)}}}function Mn(s){let e,l;function t(){return s[15](s[18])}return e=new pl({props:{slot:"leading",checked:s[19],label:s[18].label,labelHidden:!0}}),e.$on("click",t),{c(){I(e.$$.fragment)},l(n){T(e.$$.fragment,n)},m(n,r){y(e,n,r),l=!0},p(n,r){s=n;const a={};r&257&&(a.checked=s[19]),r&1&&(a.label=s[18].label),e.$set(a)},i(n){l||(p(e.$$.fragment,n),l=!0)},o(n){h(e.$$.fragment,n),l=!1},d(n){D(e,n)}}}function At(s,e){let l,t,n;function r(){return e[16](e[18])}return t=new Ae({props:{"data-testid":e[18].label,$$slots:{leading:[Mn],default:[Rn]},$$scope:{ctx:e}}}),t.$on("click",r),{key:s,first:null,c(){l=z(),I(t.$$.fragment),this.h()},l(a){l=z(),T(t.$$.fragment,a),this.h()},h(){this.first=l},m(a,o){E(a,l,o),y(t,a,o),n=!0},p(a,o){e=a;const c={};o&1&&(c["data-testid"]=e[18].label),o&4194561&&(c.$$scope={dirty:o,ctx:e}),t.$set(c)},i(a){n||(p(t.$$.fragment,a),n=!0)},o(a){h(t.$$.fragment,a),n=!1},d(a){a&&d(l),D(t,a)}}}function jn(s){let e;return{c(){e=M(s[5])},l(l){e=j(l,s[5])},m(l,t){E(l,e,t)},p(l,t){t&32&&F(e,l[5])},d(l){l&&d(e)}}}function Fn(s){let e;return{c(){e=M(s[6])},l(l){e=j(l,s[6])},m(l,t){E(l,e,t)},p(l,t){t&64&&F(e,l[6])},d(l){l&&d(e)}}}function qn(s){let e=[],l=new Map,t,n,r,a,o,c,i,f=s[0];const m=u=>u[18];for(let u=0;u{_.some(U=>U.value===A.value)?l(8,_=_.filter(U=>U.value!==A.value)):l(8,_=[..._,A]),r(_)},P=()=>{l(8,_=t),r(_)},O=()=>{l(8,_=[]),r(_)},q=A=>C(A),te=A=>{C(A)},L=(A,U)=>U.value===A.value;return s.$$set=A=>{"options"in A&&l(0,t=A.options),"initialSelected"in A&&l(13,n=A.initialSelected),"onChange"in A&&l(14,r=A.onChange),"label"in A&&l(1,a=A.label),"id"in A&&l(2,o=A.id),"variant"in A&&l(3,c=A.variant),"icon"in A&&l(4,i=A.icon),"selectAllLabel"in A&&l(5,f=A.selectAllLabel),"clearAllLabel"in A&&l(6,m=A.clearAllLabel),"active"in A&&l(7,u=A.active)},[t,a,o,c,i,f,m,u,_,w,C,P,O,n,r,q,te,L]}class Qn extends se{constructor(e){super(),ae(this,e,Wn,Hn,ie,{options:0,initialSelected:13,onChange:14,label:1,id:2,variant:3,icon:4,selectAllLabel:5,clearAllLabel:6,active:7})}}function zn(s){let e,l;return e=new Qn({props:{id:"event-category-filter-menu",options:s[0],initialSelected:s[2],label:s[3],active:!!s[1],selectAllLabel:N("common.select-all"),clearAllLabel:N("common.clear-all-capitalized"),onChange:s[4],variant:"table-header",icon:"filter"}}),{c(){I(e.$$.fragment)},l(t){T(e.$$.fragment,t)},m(t,n){y(e,t,n),l=!0},p(t,[n]){const r={};n&1&&(r.options=t[0]),n&4&&(r.initialSelected=t[2]),n&8&&(r.label=t[3]),n&2&&(r.active=!!t[1]),e.$set(r)},i(t){l||(p(e.$$.fragment,t),l=!0)},o(t){h(e.$$.fragment,t),l=!1},d(t){D(e,t)}}}let Un="category";function Jn(s,e,l){let t,n,r,a,o;le(s,be,m=>l(7,r=m)),le(s,vl,m=>l(1,a=m)),le(s,$l,m=>l(6,o=m));let{compact:c=!1}=e,i=(c?hl:gl).map(m=>({...m,label:N(m.label)}));const f=m=>{m.length===i.length&&(m=[]);const u=m.map(_=>_.value).join(",");Wt({parameter:Un,value:u,url:r.url})};return s.$$set=m=>{"compact"in m&&l(5,c=m.compact)},s.$$.update=()=>{s.$$.dirty&32&&l(3,t=c?N("events.event-type"):N("events.workflow-events")),s.$$.dirty&65&&bl("1.21",o)&&l(0,i=i.filter(({value:m})=>m!=="update")),s.$$.dirty&3&&l(2,n=a?i.filter(m=>a.includes(m.value)):[])},[i,a,n,t,f,c,o]}class Kn extends se{constructor(e){super(),ae(this,e,Jn,zn,ie,{compact:5})}}function Xn(s){let e;const l=s[6].default,t=Ct(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)&&Pt(t,l,n,n[7],e?St(l,n[7],r,null):Vt(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 Yn(s){let e,l=N("workflows.event-history")+"",t;return{c(){e=$("caption"),t=M(l),this.h()},l(n){e=b(n,"CAPTION",{class:!0,slot:!0});var r=k(e);t=j(r,l),r.forEach(d),this.h()},h(){v(e,"class","sr-only"),v(e,"slot","caption")},m(n,r){E(n,e,r),g(e,t)},p:re,d(n){n&&d(e)}}}function Zn(s){let e,l=(s[2]?N("common.collapse-all"):N("common.expand-all"))+"",t;return{c(){e=$("span"),t=M(l),this.h()},l(n){e=b(n,"SPAN",{class:!0});var r=k(e);t=j(r,l),r.forEach(d),this.h()},h(){v(e,"class","hidden sm:block")},m(n,r){E(n,e,r),g(e,t)},p(n,r){r&4&&l!==(l=(n[2]?N("common.collapse-all"):N("common.expand-all"))+"")&&F(t,l)},d(n){n&&d(e)}}}function xn(s){let e,l,t,n,r,a,o,c,i,f,m,u;return n=new On({props:{compact:s[0]}}),o=new Kn({props:{compact:s[0]}}),m=new _l({props:{size:"sm",variant:"table-header",trailingIcon:s[2]?"chevron-up":"chevron-down",disabled:!!s[3],$$slots:{default:[Zn]},$$scope:{ctx:s}}}),m.$on("click",s[4]),{c(){e=$("td"),l=S(),t=$("th"),I(n.$$.fragment),r=S(),a=$("th"),I(o.$$.fragment),c=S(),i=$("th"),f=$("div"),I(m.$$.fragment),this.h()},l(_){e=b(_,"TD",{class:!0}),k(e).forEach(d),l=G(_),t=b(_,"TH",{class:!0});var w=k(t);T(n.$$.fragment,w),w.forEach(d),r=G(_),a=b(_,"TH",{class:!0});var C=k(a);T(o.$$.fragment,C),C.forEach(d),c=G(_),i=b(_,"TH",{class:!0});var P=k(i);f=b(P,"DIV",{class:!0});var O=k(f);T(m.$$.fragment,O),O.forEach(d),P.forEach(d),this.h()},h(){v(e,"class","w-14 xl:w-10"),v(t,"class","w-16 md:w-32"),v(a,"class","w-44"),v(f,"class","flex w-full justify-end"),v(i,"class","w-auto xl:w-80")},m(_,w){E(_,e,w),E(_,l,w),E(_,t,w),y(n,t,null),E(_,r,w),E(_,a,w),y(o,a,null),E(_,c,w),E(_,i,w),g(i,f),y(m,f,null),u=!0},p(_,w){const C={};w&1&&(C.compact=_[0]),n.$set(C);const P={};w&1&&(P.compact=_[0]),o.$set(P);const O={};w&4&&(O.trailingIcon=_[2]?"chevron-up":"chevron-down"),w&8&&(O.disabled=!!_[3]),w&132&&(O.$$scope={dirty:w,ctx:_}),m.$set(O)},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),D(n),_&&d(r),_&&d(a),D(o),_&&d(c),_&&d(i),D(m)}}}function er(s){let e,l;return e=new ml({props:{slot:"headers",$$slots:{default:[xn]},$$scope:{ctx:s}}}),{c(){I(e.$$.fragment)},l(t){T(e.$$.fragment,t)},m(t,n){y(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){D(e,t)}}}function tr(s){let e,l;return e=new jt({props:{updating:s[1],class:"dark w-full table-fixed","data-testid":"event-summary-table",$$slots:{headers:[er],caption:[Yn],default:[Xn]},$$scope:{ctx:s}}}),{c(){I(e.$$.fragment)},l(t){T(e.$$.fragment,t)},m(t,n){y(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){D(e,t)}}}function lr(s,e,l){let t,n,r;le(s,be,_=>l(5,n=_)),le(s,al,_=>l(8,r=_));let{$$slots:a={},$$scope:o}=e,{compact:c=!1}=e,{updating:i=!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,i=_.updating),"$$scope"in _&&l(7,o=_.$$scope)},s.$$.update=()=>{s.$$.dirty&32&&l(3,t=n.params.id)},[c,i,f,t,u,n,a,o]}class Or extends se{constructor(e){super(),ae(this,e,lr,tr,ie,{compact:0,updating:1})}}export{Or as E,Gr as a,Nr as b}; diff --git a/ui/assets/local/_app/immutable/chunks/event-view.33fc78e9.js b/ui/assets/local/_app/immutable/chunks/event-view.f292d7b1.js similarity index 75% rename from ui/assets/local/_app/immutable/chunks/event-view.33fc78e9.js rename to ui/assets/local/_app/immutable/chunks/event-view.f292d7b1.js index 99b845e262..d62af60615 100644 --- a/ui/assets/local/_app/immutable/chunks/event-view.33fc78e9.js +++ b/ui/assets/local/_app/immutable/chunks/event-view.f292d7b1.js @@ -1 +1 @@ -import{p as e}from"./persist-store.dd882958.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.3ea3c364.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.f9e1ef0b.js b/ui/assets/local/_app/immutable/chunks/events-service.4b32e39d.js similarity index 84% rename from ui/assets/local/_app/immutable/chunks/events-service.f9e1ef0b.js rename to ui/assets/local/_app/immutable/chunks/events-service.4b32e39d.js index 52c3291fb6..63c45516c4 100644 --- a/ui/assets/local/_app/immutable/chunks/events-service.f9e1ef0b.js +++ b/ui/assets/local/_app/immutable/chunks/events-service.4b32e39d.js @@ -1 +1 @@ -import{t as u}from"./index.db10a648.js";import{b as y}from"./has.233e577a.js";import{p as g}from"./paginated.2d0a4e32.js";import{r as d,a as p}from"./route-for-api.f2500de4.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.dca55ccc.js";import{b as y}from"./has.233e577a.js";import{p as g}from"./paginated.b6fcdb03.js";import{r as d,a as p}from"./route-for-api.4c8e7aa5.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.edd90912.js b/ui/assets/local/_app/immutable/chunks/events.a3eb82f4.js similarity index 66% rename from ui/assets/local/_app/immutable/chunks/events.edd90912.js rename to ui/assets/local/_app/immutable/chunks/events.a3eb82f4.js index 74ff06913a..1df7ecdb17 100644 --- a/ui/assets/local/_app/immutable/chunks/events.edd90912.js +++ b/ui/assets/local/_app/immutable/chunks/events.a3eb82f4.js @@ -1 +1 @@ -import{j as t,w as a}from"./singletons.0a6e865f.js";import{p as s}from"./stores.73c3690d.js";import{a as c}from"./auth-user.a1d7e47f.js";import{r as m}from"./workflow-run.80b64688.js";import{d as i}from"./encode-uri.dfce78e4.js";import{G as p}from"./is-event-type.7aa6d0ba.js";import{e as f}from"./event-view.33fc78e9.js";import{p as d}from"./persist-store.dd882958.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.d67f4e6b.js";import{p as s}from"./stores.255470ec.js";import{a as c}from"./auth-user.6dc931ea.js";import{r as m}from"./workflow-run.27281c78.js";import{d as i}from"./encode-uri.dfce78e4.js";import{G as p}from"./is-event-type.7aa6d0ba.js";import{e as f}from"./event-view.f292d7b1.js";import{p as d}from"./persist-store.3ea3c364.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.6a09297f.js b/ui/assets/local/_app/immutable/chunks/filters.38f71e0d.js similarity index 63% rename from ui/assets/local/_app/immutable/chunks/filters.6a09297f.js rename to ui/assets/local/_app/immutable/chunks/filters.38f71e0d.js index f14fb417d6..c65d3acf4f 100644 --- a/ui/assets/local/_app/immutable/chunks/filters.6a09297f.js +++ b/ui/assets/local/_app/immutable/chunks/filters.38f71e0d.js @@ -1 +1 @@ -import{j as t,w as s}from"./singletons.0a6e865f.js";import{p as a}from"./stores.73c3690d.js";import{p as i}from"./persist-store.dd882958.js";import{ac as o}from"./index.0942deb7.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.d67f4e6b.js";import{p as a}from"./stores.255470ec.js";import{p as i}from"./persist-store.3ea3c364.js";import{ac as o}from"./index.0942deb7.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.1749c5f9.js b/ui/assets/local/_app/immutable/chunks/format-event-attributes.f47536f1.js similarity index 97% rename from ui/assets/local/_app/immutable/chunks/format-event-attributes.1749c5f9.js rename to ui/assets/local/_app/immutable/chunks/format-event-attributes.f47536f1.js index afd74897ec..0f1593a3ee 100644 --- a/ui/assets/local/_app/immutable/chunks/format-event-attributes.1749c5f9.js +++ b/ui/assets/local/_app/immutable/chunks/format-event-attributes.f47536f1.js @@ -1 +1 @@ -import{ac as w}from"./index.0942deb7.js";import{t as T}from"./translate.135d909a.js";import{b as I,r as S,t as g}from"./time-format.7dc1f425.js";import{c as u}from"./format-camel-case.887ffc78.js";import{i as A}from"./index.5fe2e895.js";import{a as D}from"./decode-payload.3d6f13eb.js";import{h as y,i as h}from"./has.233e577a.js";import{C as R}from"./is-event-type.7aa6d0ba.js";const j={key:"",value:""},O=new Set(["activityId","attempt","binaryChecksum","identity","parentInitiatedEventId","requestId","scheduledEventId","startedEventId","lastHeartbeatTime","scheduledTime","expirationTime"]),ot=t=>O.has(t),v=new Set(["suggestContinueAsNew","historySizeBytes"]),l=(t,e)=>!(e===null||e===void 0||e===""||e==="0s"||t==="type"||(!e||e==="0")&&v.has(t)),L=t=>!(t===null||t===void 0||t===""||Array.isArray(t)&&!t.length),it=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),G=t=>{if(h(t)){if(y(t,"stackTrace")&&t.stackTrace)return t.stackTrace;for(const e in t)if(h(t[e]))return G(t[e])}},K=["baseRunId","continuedExecutionRunId","firstExecutionRunId","newExecutionRunId","newRunId","originalExecutionRunId"],nt=t=>{for(const e of K)if(t===e)return!0;return!1},N=["taskQueueName"],at=t=>{for(const e of N)if(t===e)return!0;return!1},Q=["workflowExecutionWorkflowId","workflowExecutionRunId"],ct=(t,e)=>{const r=Boolean((e==null?void 0:e.workflowExecutionWorkflowId)&&(e==null?void 0:e.workflowExecutionRunId));for(const s of Q)if(t===s&&r)return!0;return!1},f=(t,e)=>{if(typeof e=="object"){const[r]=Object.keys(e);return r==="payloads"?{key:t,value:e}:{key:t+u(r),value:e[r]}}else return{key:t,value:e.toString()}},F=["failure","input","activityType","parentInitiatedEventId","workflowExecution","workflowType","taskQueue"],W=({attributes:t})=>{for(const[e,r]of Object.entries(t))if(l(e,r))return f(e,r)},C=t=>{if(y(t,"ActivityType"))return t.ActivityType;if(y(t,"activity_type"))return t.activity_type},P=t=>{var e,r,s;return!!((s=(r=(e=t.markerRecordedEventAttributes)==null?void 0:e.details)==null?void 0:r.type)!=null&&s.payloads)},x=t=>{var r,s,o,i,d,k;const e=W(t);if(R(t)){const n=(((o=(s=(r=t.markerRecordedEventAttributes)==null?void 0:r.details)==null?void 0:s.data)==null?void 0:o.payloads)||((k=(d=(i=t.markerRecordedEventAttributes)==null?void 0:i.details)==null?void 0:d.type)==null?void 0:k.payloads)||[]).map(b=>D(b)),a=n==null?void 0:n[0];if(P(t)&&a)return f("ActivityType",a);const p=C(a);if(p)return f("ActivityType",p)}for(const[c,n]of Object.entries(t.attributes))for(const a of F)if(c===a&&l(c,n))return f(c,n);return e},V=({lastEvent:t})=>x(t),ft=t=>t?A(t)?V(t):x(t):j,_=new Set(["header"]),$=new Set(["taskQueue","retryPolicy","parentWorkflowExecution","workflowExecution","meta"]),B=new Set(["maximumAttempts"]),m=T("workflows.unlimited"),q=T("workflows.no-expiration"),ut=(t,e)=>t===0?q:e,yt=(t,e)=>t?t-e:m,lt=t=>t||m,z=(t,e)=>t==="maximumAttempts"&&!e?m:e,M=(t,e)=>{if($.has(e)&&typeof t[e]=="object"){for(const[r,s]of Object.entries(t[e]))L(s)&&(B.has(r)?t[`${e}${u(r)}`]=z(r,s):t[`${e}${u(r)}`]=s);delete t[e]}},mt=(t,{compact:e}={compact:!1})=>{const r={};e&&(r.eventTime=I(t.eventTime,w(g),{relative:w(S)}));for(const[s,o]of Object.entries(t.attributes)){const i=l(s,o);!_.has(s)&&i&&(r[s]=o),M(r,s)}return r},E=["summary","parent","activity","taskQueue","schedule","retryPolicy","workflow","searchAttributes"],dt={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"}},H=(t,e)=>{var r,s;t.category==="activity"&&((r=e==null?void 0:e.activity)!=null&&r.length)&&(e.summary=[...e.activity,...e.summary],e.activity=[]),t.category==="activity"&&((s=e==null?void 0:e.workflow)!=null&&s.length)&&(e.summary=[...e.summary,...e.workflow],e.workflow=[])},J=t=>{const e=new Set(["summary","searchAttributes"]);for(const[r,s]of Object.entries(t))s.length===1&&!e.has(r)&&(t.summary=[...t.summary,...s],t[r]=[])},kt=(t,e)=>{const r={};E.forEach(s=>{s==="summary"?r[s]=Object.keys(e):r[s]=[]});for(const s in e){const o=E.find(i=>s.includes(i));o&&(r[o]=[s,...r[o]],r.summary=r.summary.filter(i=>i!==s))}return H(t,r),J(r),r};export{dt as a,G as b,ct as c,at as d,ot as e,mt as f,it as g,kt as h,ft as i,ut as j,yt as k,x as l,lt as m,nt as s}; +import{ac as w}from"./index.0942deb7.js";import{t as T}from"./translate.135d909a.js";import{b as I,r as S,t as g}from"./time-format.aa1f006c.js";import{c as u}from"./format-camel-case.887ffc78.js";import{i as A}from"./index.5fe2e895.js";import{a as D}from"./decode-payload.19da7edc.js";import{h as y,i as h}from"./has.233e577a.js";import{C as R}from"./is-event-type.7aa6d0ba.js";const j={key:"",value:""},O=new Set(["activityId","attempt","binaryChecksum","identity","parentInitiatedEventId","requestId","scheduledEventId","startedEventId","lastHeartbeatTime","scheduledTime","expirationTime"]),ot=t=>O.has(t),v=new Set(["suggestContinueAsNew","historySizeBytes"]),l=(t,e)=>!(e===null||e===void 0||e===""||e==="0s"||t==="type"||(!e||e==="0")&&v.has(t)),L=t=>!(t===null||t===void 0||t===""||Array.isArray(t)&&!t.length),it=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),G=t=>{if(h(t)){if(y(t,"stackTrace")&&t.stackTrace)return t.stackTrace;for(const e in t)if(h(t[e]))return G(t[e])}},K=["baseRunId","continuedExecutionRunId","firstExecutionRunId","newExecutionRunId","newRunId","originalExecutionRunId"],nt=t=>{for(const e of K)if(t===e)return!0;return!1},N=["taskQueueName"],at=t=>{for(const e of N)if(t===e)return!0;return!1},Q=["workflowExecutionWorkflowId","workflowExecutionRunId"],ct=(t,e)=>{const r=Boolean((e==null?void 0:e.workflowExecutionWorkflowId)&&(e==null?void 0:e.workflowExecutionRunId));for(const s of Q)if(t===s&&r)return!0;return!1},f=(t,e)=>{if(typeof e=="object"){const[r]=Object.keys(e);return r==="payloads"?{key:t,value:e}:{key:t+u(r),value:e[r]}}else return{key:t,value:e.toString()}},F=["failure","input","activityType","parentInitiatedEventId","workflowExecution","workflowType","taskQueue"],W=({attributes:t})=>{for(const[e,r]of Object.entries(t))if(l(e,r))return f(e,r)},C=t=>{if(y(t,"ActivityType"))return t.ActivityType;if(y(t,"activity_type"))return t.activity_type},P=t=>{var e,r,s;return!!((s=(r=(e=t.markerRecordedEventAttributes)==null?void 0:e.details)==null?void 0:r.type)!=null&&s.payloads)},x=t=>{var r,s,o,i,d,k;const e=W(t);if(R(t)){const n=(((o=(s=(r=t.markerRecordedEventAttributes)==null?void 0:r.details)==null?void 0:s.data)==null?void 0:o.payloads)||((k=(d=(i=t.markerRecordedEventAttributes)==null?void 0:i.details)==null?void 0:d.type)==null?void 0:k.payloads)||[]).map(b=>D(b)),a=n==null?void 0:n[0];if(P(t)&&a)return f("ActivityType",a);const p=C(a);if(p)return f("ActivityType",p)}for(const[c,n]of Object.entries(t.attributes))for(const a of F)if(c===a&&l(c,n))return f(c,n);return e},V=({lastEvent:t})=>x(t),ft=t=>t?A(t)?V(t):x(t):j,_=new Set(["header"]),$=new Set(["taskQueue","retryPolicy","parentWorkflowExecution","workflowExecution","meta"]),B=new Set(["maximumAttempts"]),m=T("workflows.unlimited"),q=T("workflows.no-expiration"),ut=(t,e)=>t===0?q:e,yt=(t,e)=>t?t-e:m,lt=t=>t||m,z=(t,e)=>t==="maximumAttempts"&&!e?m:e,M=(t,e)=>{if($.has(e)&&typeof t[e]=="object"){for(const[r,s]of Object.entries(t[e]))L(s)&&(B.has(r)?t[`${e}${u(r)}`]=z(r,s):t[`${e}${u(r)}`]=s);delete t[e]}},mt=(t,{compact:e}={compact:!1})=>{const r={};e&&(r.eventTime=I(t.eventTime,w(g),{relative:w(S)}));for(const[s,o]of Object.entries(t.attributes)){const i=l(s,o);!_.has(s)&&i&&(r[s]=o),M(r,s)}return r},E=["summary","parent","activity","taskQueue","schedule","retryPolicy","workflow","searchAttributes"],dt={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"}},H=(t,e)=>{var r,s;t.category==="activity"&&((r=e==null?void 0:e.activity)!=null&&r.length)&&(e.summary=[...e.activity,...e.summary],e.activity=[]),t.category==="activity"&&((s=e==null?void 0:e.workflow)!=null&&s.length)&&(e.summary=[...e.summary,...e.workflow],e.workflow=[])},J=t=>{const e=new Set(["summary","searchAttributes"]);for(const[r,s]of Object.entries(t))s.length===1&&!e.has(r)&&(t.summary=[...t.summary,...s],t[r]=[])},kt=(t,e)=>{const r={};E.forEach(s=>{s==="summary"?r[s]=Object.keys(e):r[s]=[]});for(const s in e){const o=E.find(i=>s.includes(i));o&&(r[o]=[s,...r[o]],r.summary=r.summary.filter(i=>i!==s))}return H(t,r),J(r),r};export{dt as a,G as b,ct as c,at as d,ot as e,mt as f,it as g,kt as h,ft as i,ut as j,yt as k,x as l,lt as m,nt as s}; diff --git a/ui/assets/local/_app/immutable/chunks/get-workflow-relationships.54c919d2.js b/ui/assets/local/_app/immutable/chunks/get-workflow-relationships.fae6d6c6.js similarity index 99% rename from ui/assets/local/_app/immutable/chunks/get-workflow-relationships.54c919d2.js rename to ui/assets/local/_app/immutable/chunks/get-workflow-relationships.fae6d6c6.js index 33a315daa8..274e433913 100644 --- a/ui/assets/local/_app/immutable/chunks/get-workflow-relationships.54c919d2.js +++ b/ui/assets/local/_app/immutable/chunks/get-workflow-relationships.fae6d6c6.js @@ -1,4 +1,4 @@ -import{ac as pr,S as BS,b as US,a as VS,m as xs,C as sa,c as Zu,p as Ts,q as $s,D as oa,k as vr,d as Qu,u as Ds,f as bn,L as Os,E as la,j as ti,z as XS,g as Si,h as KS,F as ua,K as Zi,o as qS,A as ZS,w as Vh,x as Xh}from"./index.0942deb7.js";import{p as QS}from"./stores.73c3690d.js";import{H as JS}from"./heart-beat-indicator.df4ee8c0.js";import{I as Bc}from"./icon.33308831.js";import{L as ex}from"./link.f0cc0bf5.js";import{L as tx}from"./loading.e7565465.js";import{T as rx,a as $l}from"./toggle-buttons.01bd60a8.js";import{g as ix}from"./index.5fe2e895.js";import{C as nx}from"./get-event-categorization.75c83097.js";import{d as ax,e as sx}from"./event-view.33fc78e9.js";import{e as ox}from"./filters.6a09297f.js";import{w as lx,b as ux}from"./workflow-run.80b64688.js";import{c as hx}from"./format-camel-case.887ffc78.js";import{l as dx}from"./format-event-attributes.1749c5f9.js";import{x as cx,C as Dl,J as fx,u as vx,f as px,n as mx,g as gx,p as yx}from"./is-event-type.7aa6d0ba.js";import{s as bx}from"./parse-with-big-int.0036a80a.js";import{w as _x}from"./route-for.ecd88549.js";import{b as ya,r as ba,t as _a}from"./time-format.7dc1f425.js";import{r as Pm,t as Im,q as Am}from"./format-time.5082c525.js";import{h as wx,a as kx}from"./has.233e577a.js";function Sx(e){Pm(1,arguments);var a=Im(e);return a.setSeconds(0,0),a}function xx(e){Pm(1,arguments);var a=Im(e);return a.setSeconds(59,999),a}/** +import{ac as pr,S as BS,b as US,a as VS,m as xs,C as sa,c as Zu,p as Ts,q as $s,D as oa,k as vr,d as Qu,u as Ds,f as bn,L as Os,E as la,j as ti,z as XS,g as Si,h as KS,F as ua,K as Zi,o as qS,A as ZS,w as Vh,x as Xh}from"./index.0942deb7.js";import{p as QS}from"./stores.255470ec.js";import{H as JS}from"./heart-beat-indicator.df4ee8c0.js";import{I as Bc}from"./icon.33308831.js";import{L as ex}from"./link.faba7c50.js";import{L as tx}from"./loading.e7565465.js";import{T as rx,a as $l}from"./toggle-buttons.e3375436.js";import{g as ix}from"./index.5fe2e895.js";import{C as nx}from"./get-event-categorization.75c83097.js";import{d as ax,e as sx}from"./event-view.f292d7b1.js";import{e as ox}from"./filters.38f71e0d.js";import{w as lx,b as ux}from"./workflow-run.27281c78.js";import{c as hx}from"./format-camel-case.887ffc78.js";import{l as dx}from"./format-event-attributes.f47536f1.js";import{x as cx,C as Dl,J as fx,u as vx,f as px,n as mx,g as gx,p as yx}from"./is-event-type.7aa6d0ba.js";import{s as bx}from"./parse-with-big-int.0036a80a.js";import{w as _x}from"./route-for.18f9590b.js";import{b as ya,r as ba,t as _a}from"./time-format.aa1f006c.js";import{r as Pm,t as Im,q as Am}from"./format-time.5082c525.js";import{h as wx,a as kx}from"./has.233e577a.js";function Sx(e){Pm(1,arguments);var a=Im(e);return a.setSeconds(0,0),a}function xx(e){Pm(1,arguments);var a=Im(e);return a.setSeconds(59,999),a}/** * vis-timeline and vis-graph2d * https://visjs.github.io/vis-timeline/ * diff --git a/ui/assets/local/_app/immutable/chunks/import-events.155db9b7.js b/ui/assets/local/_app/immutable/chunks/import-events.155db9b7.js deleted file mode 100644 index 7f6a459496..0000000000 --- a/ui/assets/local/_app/immutable/chunks/import-events.155db9b7.js +++ /dev/null @@ -1 +0,0 @@ -import{w as t}from"./singletons.0a6e865f.js";const r=t([]),s=t([]);export{s as a,r as i}; diff --git a/ui/assets/local/_app/immutable/chunks/import-events.ad8d6143.js b/ui/assets/local/_app/immutable/chunks/import-events.ad8d6143.js new file mode 100644 index 0000000000..e2c0e68a2c --- /dev/null +++ b/ui/assets/local/_app/immutable/chunks/import-events.ad8d6143.js @@ -0,0 +1 @@ +import{w as t}from"./singletons.d67f4e6b.js";const r=t([]),s=t([]);export{s as a,r as i}; diff --git a/ui/assets/local/_app/immutable/chunks/index.db10a648.js b/ui/assets/local/_app/immutable/chunks/index.db10a648.js deleted file mode 100644 index a4f3925b79..0000000000 --- a/ui/assets/local/_app/immutable/chunks/index.db10a648.js +++ /dev/null @@ -1 +0,0 @@ -import"./index.0942deb7.js";import"./paths.7de1f58b.js";import"./i18next.1cfb3cb9.js";import"./data-encoder-config.74f5c7e0.js";import"./parse-with-big-int.0036a80a.js";import"./auth-user.a1d7e47f.js";import{b as c}from"./time-format.7dc1f425.js";import{F as m}from"./is-event-type.7aa6d0ba.js";import{g as d}from"./get-event-categorization.75c83097.js";import{s as l}from"./simplify-attributes.4e073f3b.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),i=e.eventType,n=c(String(e.eventTime)),s=p(i),a=d(i),{key:o,attributes:r}=m(e);return{...e,name:i,id:t,eventType:i,timestamp:n,classification:s,category:a,attributes:l({type:o,...r})}},A=async e=>await Promise.all(e.map(u)),E=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{E as f,A as t}; diff --git a/ui/assets/local/_app/immutable/chunks/index.dca55ccc.js b/ui/assets/local/_app/immutable/chunks/index.dca55ccc.js new file mode 100644 index 0000000000..e03c55fbb9 --- /dev/null +++ b/ui/assets/local/_app/immutable/chunks/index.dca55ccc.js @@ -0,0 +1 @@ +import"./index.0942deb7.js";import"./paths.742c8328.js";import"./i18next.1cfb3cb9.js";import"./data-encoder-config.e34150f0.js";import"./parse-with-big-int.0036a80a.js";import"./auth-user.6dc931ea.js";import{b as c}from"./time-format.aa1f006c.js";import{F as m}from"./is-event-type.7aa6d0ba.js";import{d}from"./screaming-enums.7a4380bd.js";import{g as l}from"./get-event-categorization.75c83097.js";import{s as f}from"./simplify-attributes.3c34b46b.js";const p=["Unspecified","Scheduled","Open","New","Started","Initiated","Running","Completed","Fired","CancelRequested","TimedOut","Signaled","Canceled","Failed","Terminated"],u=e=>{if(e.includes("RequestCancel"))return"CancelRequested";for(const t of p)if(e.includes(t))return t},g=async e=>{const t=String(e.eventId),i=d(e.eventType),n=c(String(e.eventTime)),a=u(i),o=l(i),{key:s,attributes:r}=m(e);return{...e,name:i,id:t,eventType:i,timestamp:n,classification:a,category:o,attributes:f({type:s,...r})}},F=async e=>await Promise.all(e.map(g)),k=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{k as f,F as t}; diff --git a/ui/assets/local/_app/immutable/chunks/index.ad79a693.js b/ui/assets/local/_app/immutable/chunks/index.de7612af.js similarity index 98% rename from ui/assets/local/_app/immutable/chunks/index.ad79a693.js rename to ui/assets/local/_app/immutable/chunks/index.de7612af.js index 47afebbe84..842fb5a591 100644 --- a/ui/assets/local/_app/immutable/chunks/index.ad79a693.js +++ b/ui/assets/local/_app/immutable/chunks/index.de7612af.js @@ -1 +1 @@ -import{S as M,b as Q,a as V,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,O as A,U as E,G as N,m as T,c as B,C as O,p as I,q as y,d as q,D,u as h,L as S,E as P,H as U,I as j,J as z,F,M as Z,w as G,x as H,Q as d,y as J}from"./index.0942deb7.js";import{c as w}from"./copy-to-clipboard.8b0ec1c6.js";import{B as K}from"./button.d6281b70.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(),O(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),P(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(),O(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),P(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 M{constructor(e){super(),Q(this,e,oe,se,V,{content:0,visible:1,clickAllToCopy:2,copyIconTitle:3,copySuccessIconTitle:4})}}export{ce as C}; +import{S as M,b as Q,a as V,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,O as A,U as E,G as N,m as T,c as B,C as O,p as I,q as y,d as q,D,u as h,L as S,E as P,H as U,I as j,J as z,F,M as Z,w as G,x as H,Q as d,y as J}from"./index.0942deb7.js";import{c as w}from"./copy-to-clipboard.24b8f9c0.js";import{B as K}from"./button.d6281b70.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(),O(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),P(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(),O(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),P(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 M{constructor(e){super(),Q(this,e,oe,se,V,{content:0,visible:1,clickAllToCopy:2,copyIconTitle:3,copySuccessIconTitle:4})}}export{ce as C}; diff --git a/ui/assets/local/_app/immutable/chunks/index.fdd410d4.js b/ui/assets/local/_app/immutable/chunks/index.f08fc81f.js similarity index 97% rename from ui/assets/local/_app/immutable/chunks/index.fdd410d4.js rename to ui/assets/local/_app/immutable/chunks/index.f08fc81f.js index bd6fe11e4e..2afd44ef9f 100644 --- a/ui/assets/local/_app/immutable/chunks/index.fdd410d4.js +++ b/ui/assets/local/_app/immutable/chunks/index.f08fc81f.js @@ -1 +1 @@ -import{S as H,b as J,a as A,e as D,f as g,j as m,z as d,g as _,h as y,k as h,K as R,m as w,c as W,p as C,q as F,d as X,u as b,L as Y,M as k,_ as p,ag as T,n as I,r as Z,Q as O,i as x,C as K,D as L,E as M,F as P}from"./index.0942deb7.js";import{I as V}from"./icon.33308831.js";import{c as $}from"./copy-to-clipboard.8b0ec1c6.js";import{e as ee,f as v,g as te,j as le}from"./has.233e577a.js";function q(o){let e,n,t,l,f,c,i=o[1]&&z(o),s=o[2]&&U(o);return{c(){e=w("div"),i&&i.c(),n=W(),s&&s.c(),this.h()},l(r){e=C(r,"DIV",{class:!0});var u=F(e);i&&i.l(u),n=X(u),s&&s.l(u),u.forEach(h),this.h()},h(){b(e,"class",t="copy-or-filter "+o[9]+" svelte-1f7279h")},m(r,u){g(r,e,u),i&&i.m(e,null),Y(e,n),s&&s.m(e,null),l=!0,f||(c=[k(e,"click",p(T(I))),k(e,"keyup",p(T(I)))],f=!0)},p(r,u){r[1]?i?(i.p(r,u),u&2&&m(i,1)):(i=z(r),i.c(),m(i,1),i.m(e,n)):i&&(d(),_(i,1,1,()=>{i=null}),y()),r[2]?s?(s.p(r,u),u&4&&m(s,1)):(s=U(r),s.c(),m(s,1),s.m(e,null)):s&&(d(),_(s,1,1,()=>{s=null}),y()),(!l||u&512&&t!==(t="copy-or-filter "+r[9]+" svelte-1f7279h"))&&b(e,"class",t)},i(r){l||(m(i),m(s),l=!0)},o(r){_(i),_(s),l=!1},d(r){r&&h(e),i&&i.d(),s&&s.d(),f=!1,Z(c)}}}function z(o){let e,n=o[5],t,l,f,c=Q(o);return{c(){e=w("button"),c.c(),this.h()},l(i){e=C(i,"BUTTON",{class:!0,id:!0});var s=F(e);c.l(s),s.forEach(h),this.h()},h(){b(e,"class","copy-or-filter-button svelte-1f7279h"),b(e,"id","filter-button"),O(e,"filtered",o[5])},m(i,s){g(i,e,s),c.m(e,null),t=!0,l||(f=k(e,"click",p(T(function(){x(o[4])&&o[4].apply(this,arguments)}))),l=!0)},p(i,s){o=i,s&32&&A(n,n=o[5])?(d(),_(c,1,1,I),y(),c=Q(o),c.c(),m(c,1),c.m(e,null)):c.p(o,s),(!t||s&32)&&O(e,"filtered",o[5])},i(i){t||(m(c),t=!0)},o(i){_(c),t=!1},d(i){i&&h(e),c.d(i),l=!1,f()}}}function Q(o){let e,n;return e=new V({props:{title:o[8],name:"filter"}}),{c(){K(e.$$.fragment)},l(t){L(e.$$.fragment,t)},m(t,l){M(e,t,l),n=!0},p(t,l){const f={};l&256&&(f.title=t[8]),e.$set(f)},i(t){n||(m(e.$$.fragment,t),n=!0)},o(t){_(e.$$.fragment,t),n=!1},d(t){P(e,t)}}}function U(o){let e,n,t,l,f;return n=new V({props:{title:o[10]?o[7]:o[6],name:o[10]?"checkmark":"copy",stroke:"#000"}}),{c(){e=w("button"),K(n.$$.fragment),this.h()},l(c){e=C(c,"BUTTON",{class:!0,id:!0});var i=F(e);L(n.$$.fragment,i),i.forEach(h),this.h()},h(){b(e,"class","copy-or-filter-button svelte-1f7279h"),b(e,"id","copy-button")},m(c,i){g(c,e,i),M(n,e,null),t=!0,l||(f=k(e,"click",p(T(o[13]))),l=!0)},p(c,i){const s={};i&1216&&(s.title=c[10]?c[7]:c[6]),i&1024&&(s.name=c[10]?"checkmark":"copy"),n.$set(s)},i(c){t||(m(n.$$.fragment,c),t=!0)},o(c){_(n.$$.fragment,c),t=!1},d(c){c&&h(e),P(n),l=!1,f()}}}function ne(o){let e,n,t=o[0]&&q(o);return{c(){t&&t.c(),e=D()},l(l){t&&t.l(l),e=D()},m(l,f){t&&t.m(l,f),g(l,e,f),n=!0},p(l,[f]){l[0]?t?(t.p(l,f),f&1&&m(t,1)):(t=q(l),t.c(),m(t,1),t.m(e.parentNode,e)):t&&(d(),_(t,1,1,()=>{t=null}),y())},i(l){n||(m(t),n=!0)},o(l){_(t),n=!1},d(l){t&&t.d(l),l&&h(e)}}}function ie(o,e,n){let t,{show:l=!1}=e,{filterable:f=!0}=e,{copyable:c=!0}=e,{content:i}=e,{onFilter:s=I}=e,{filtered:r=!1}=e,{copyIconTitle:u}=e,{copySuccessIconTitle:S}=e,{filterIconTitle:j}=e,{class:B=""}=e;const{copy:E,copied:N}=$();R(o,N,a=>n(10,t=a));const G=a=>E(a,i);return o.$$set=a=>{"show"in a&&n(0,l=a.show),"filterable"in a&&n(1,f=a.filterable),"copyable"in a&&n(2,c=a.copyable),"content"in a&&n(3,i=a.content),"onFilter"in a&&n(4,s=a.onFilter),"filtered"in a&&n(5,r=a.filtered),"copyIconTitle"in a&&n(6,u=a.copyIconTitle),"copySuccessIconTitle"in a&&n(7,S=a.copySuccessIconTitle),"filterIconTitle"in a&&n(8,j=a.filterIconTitle),"class"in a&&n(9,B=a.class)},[l,f,c,i,s,r,u,S,j,B,t,E,N,G]}class re extends H{constructor(e){super(),J(this,e,ie,ne,A,{show:0,filterable:1,copyable:2,content:3,onFilter:4,filtered:5,copyIconTitle:6,copySuccessIconTitle:7,filterIconTitle:8,class:9})}}const ue=o=>{const e=[],n=()=>{t&&(e.push(t),t="")};let t="",l=0;for(;l{i=null}),y()),r[2]?s?(s.p(r,u),u&4&&m(s,1)):(s=U(r),s.c(),m(s,1),s.m(e,null)):s&&(d(),_(s,1,1,()=>{s=null}),y()),(!l||u&512&&t!==(t="copy-or-filter "+r[9]+" svelte-1f7279h"))&&b(e,"class",t)},i(r){l||(m(i),m(s),l=!0)},o(r){_(i),_(s),l=!1},d(r){r&&h(e),i&&i.d(),s&&s.d(),f=!1,Z(c)}}}function z(o){let e,n=o[5],t,l,f,c=Q(o);return{c(){e=w("button"),c.c(),this.h()},l(i){e=C(i,"BUTTON",{class:!0,id:!0});var s=F(e);c.l(s),s.forEach(h),this.h()},h(){b(e,"class","copy-or-filter-button svelte-1f7279h"),b(e,"id","filter-button"),O(e,"filtered",o[5])},m(i,s){g(i,e,s),c.m(e,null),t=!0,l||(f=k(e,"click",p(T(function(){x(o[4])&&o[4].apply(this,arguments)}))),l=!0)},p(i,s){o=i,s&32&&A(n,n=o[5])?(d(),_(c,1,1,I),y(),c=Q(o),c.c(),m(c,1),c.m(e,null)):c.p(o,s),(!t||s&32)&&O(e,"filtered",o[5])},i(i){t||(m(c),t=!0)},o(i){_(c),t=!1},d(i){i&&h(e),c.d(i),l=!1,f()}}}function Q(o){let e,n;return e=new V({props:{title:o[8],name:"filter"}}),{c(){K(e.$$.fragment)},l(t){L(e.$$.fragment,t)},m(t,l){M(e,t,l),n=!0},p(t,l){const f={};l&256&&(f.title=t[8]),e.$set(f)},i(t){n||(m(e.$$.fragment,t),n=!0)},o(t){_(e.$$.fragment,t),n=!1},d(t){P(e,t)}}}function U(o){let e,n,t,l,f;return n=new V({props:{title:o[10]?o[7]:o[6],name:o[10]?"checkmark":"copy",stroke:"#000"}}),{c(){e=w("button"),K(n.$$.fragment),this.h()},l(c){e=C(c,"BUTTON",{class:!0,id:!0});var i=F(e);L(n.$$.fragment,i),i.forEach(h),this.h()},h(){b(e,"class","copy-or-filter-button svelte-1f7279h"),b(e,"id","copy-button")},m(c,i){g(c,e,i),M(n,e,null),t=!0,l||(f=k(e,"click",p(T(o[13]))),l=!0)},p(c,i){const s={};i&1216&&(s.title=c[10]?c[7]:c[6]),i&1024&&(s.name=c[10]?"checkmark":"copy"),n.$set(s)},i(c){t||(m(n.$$.fragment,c),t=!0)},o(c){_(n.$$.fragment,c),t=!1},d(c){c&&h(e),P(n),l=!1,f()}}}function ne(o){let e,n,t=o[0]&&q(o);return{c(){t&&t.c(),e=D()},l(l){t&&t.l(l),e=D()},m(l,f){t&&t.m(l,f),g(l,e,f),n=!0},p(l,[f]){l[0]?t?(t.p(l,f),f&1&&m(t,1)):(t=q(l),t.c(),m(t,1),t.m(e.parentNode,e)):t&&(d(),_(t,1,1,()=>{t=null}),y())},i(l){n||(m(t),n=!0)},o(l){_(t),n=!1},d(l){t&&t.d(l),l&&h(e)}}}function ie(o,e,n){let t,{show:l=!1}=e,{filterable:f=!0}=e,{copyable:c=!0}=e,{content:i}=e,{onFilter:s=I}=e,{filtered:r=!1}=e,{copyIconTitle:u}=e,{copySuccessIconTitle:S}=e,{filterIconTitle:j}=e,{class:B=""}=e;const{copy:E,copied:N}=$();R(o,N,a=>n(10,t=a));const G=a=>E(a,i);return o.$$set=a=>{"show"in a&&n(0,l=a.show),"filterable"in a&&n(1,f=a.filterable),"copyable"in a&&n(2,c=a.copyable),"content"in a&&n(3,i=a.content),"onFilter"in a&&n(4,s=a.onFilter),"filtered"in a&&n(5,r=a.filtered),"copyIconTitle"in a&&n(6,u=a.copyIconTitle),"copySuccessIconTitle"in a&&n(7,S=a.copySuccessIconTitle),"filterIconTitle"in a&&n(8,j=a.filterIconTitle),"class"in a&&n(9,B=a.class)},[l,f,c,i,s,r,u,S,j,B,t,E,N,G]}class re extends H{constructor(e){super(),J(this,e,ie,ne,A,{show:0,filterable:1,copyable:2,content:3,onFilter:4,filtered:5,copyIconTitle:6,copySuccessIconTitle:7,filterIconTitle:8,class:9})}}const ue=o=>{const e=[],n=()=>{t&&(e.push(t),t="")};let t="",l=0;for(;l5),h(e,"warn",a[15]-a[1].length<=5),h(e,"error",a[15]===a[1].length),b(l,"class","count svelte-9wyzah")},m(d,f){M(d,l,f),B(l,e),B(e,i),B(l,r),B(l,u)},p(d,f){f[0]&2&&o!==(o=d[1].length+"")&&le(i,o),f[0]&32770&&h(e,"ok",d[15]-d[1].length>5),f[0]&32770&&h(e,"warn",d[15]-d[1].length<=5),f[0]&32770&&h(e,"error",d[15]===d[1].length),f[0]&32768&&le(u,d[15])},d(d){d&&z(l)}}}function _e(a){let l,e;return{c(){l=I("div"),e=X(a[7]),this.h()},l(o){l=q(o,"DIV",{class:!0});var i=C(l);e=w(i,a[7]),i.forEach(z),this.h()},h(){b(l,"class","suffix svelte-9wyzah")},m(o,i){M(o,l,i),B(l,e)},p(o,i){i[0]&128&&le(e,o[7])},d(o){o&&z(l)}}}function Me(a){let l,e,o,i,r,u,d,f,D,O,_,g,V,F,R,Q,L,A,H,U,j,c,Y,p,m=a[5]&&me(a),Z=[{class:"input"},{disabled:a[0]},{"data-lpignore":"true"},{maxlength:D=a[15]>0?a[15]:void 0},{placeholder:a[6]},{id:a[2]},{name:a[8]},{spellcheck:a[17]},{required:a[22]},{autocomplete:a[12]},a[31]],N={};for(let t=0;t{m=null}),he()),oe(f,N=Fe(Z,[{class:"input"},(!c||s[0]&1)&&{disabled:t[0]},{"data-lpignore":"true"},(!c||s[0]&32768&&D!==(D=t[15]>0?t[15]:void 0))&&{maxlength:D},(!c||s[0]&64)&&{placeholder:t[6]},(!c||s[0]&4)&&{id:t[2]},(!c||s[0]&256)&&{name:t[8]},(!c||s[0]&131072)&&{spellcheck:t[17]},(!c||s[0]&4194304)&&{required:t[22]},(!c||s[0]&4096)&&{autocomplete:t[12]},s[1]&1&&t[31]])),s[0]&2&&f.value!==t[1]&&fe(f,t[1]),h(f,"disabled",t[0]),h(f,"svelte-9wyzah",!0);let P=_;_=$(t),_===P?~_&&y[_].p(t,s):(g&&(ce(),S(y[P],1,1,()=>{y[P]=null}),he()),~_?(g=y[_],g?g.p(t,s):(g=y[_]=x[_](t),g.c()),T(g,1),g.m(u,V)):g=null),t[15]&&!t[0]&&!t[16]?v?v.p(t,s):(v=be(t),v.c(),v.m(u,F)):v&&(v.d(1),v=null),t[7]?k?k.p(t,s):(k=_e(t),k.c(),k.m(u,null)):k&&(k.d(1),k=null),(!c||s[0]&2048&&R!==(R="input-container "+t[11]+" svelte-9wyzah"))&&b(u,"class",R),(!c||s[0]&2049)&&h(u,"disabled",t[0]),(!c||s[0]&2099200)&&h(u,"error",t[21]),(!c||s[0]&264320)&&h(u,"unroundRight",t[18]??t[7]),(!c||s[0]&526336)&&h(u,"unroundLeft",t[19]),(!c||s[0]&1050624)&&h(u,"noBorder",t[20]),(!c||s[0]&10240)&&h(u,"invalid",!t[13]),(!c||s[0]&16384)&&le(A,t[14]),(!c||s[0]&2048&&H!==(H="hint-text inline-block "+t[11]+" svelte-9wyzah"))&&b(L,"class",H),(!c||s[0]&2097152&&U!==(U=t[21]?"alert":null))&&b(L,"role",U),(!c||s[0]&10240)&&h(L,"invalid",!t[13]),(!c||s[0]&2099200)&&h(L,"error",t[21]),(!c||s[0]&18432)&&h(L,"hidden",!t[14]),(!c||s[0]&33554432&&j!==(j="flex flex-col gap-1 "+t[25]+" svelte-9wyzah"))&&b(l,"class",j)},i(t){c||(T(m),T(g),c=!0)},o(t){S(m),S(g),c=!1},d(t){t&&z(l),m&&m.d(),~_&&y[_].d(),v&&v.d(),k&&k.d(),Y=!1,Ne(p)}}}function Oe(a,l,e){const o=["id","value","label","labelHidden","icon","placeholder","suffix","name","copyable","disabled","clearable","theme","autocomplete","valid","hintText","maxLength","hideCount","spellcheck","unroundRight","unroundLeft","noBorder","autoFocus","error","required","copyButtonLabel","clearButtonLabel","class"];let i=de(l,o),r,{id:u}=l,{value:d}=l,{label:f}=l,{labelHidden:D=!1}=l,{icon:O=null}=l,{placeholder:_=""}=l,{suffix:g=""}=l,{name:V=u}=l,{copyable:F=!1}=l,{disabled:R=!1}=l,{clearable:Q=!1}=l,{theme:L="light"}=l,{autocomplete:A="off"}=l,{valid:H=!0}=l,{hintText:U=""}=l,{maxLength:j=0}=l,{hideCount:c=!1}=l,{spellcheck:Y=null}=l,{unroundRight:p=!1}=l,{unroundLeft:m=!1}=l,{noBorder:Z=!1}=l,{autoFocus:N=!1}=l,{error:x=!1}=l,{required:y=!1}=l,{copyButtonLabel:$=""}=l,{clearButtonLabel:v=""}=l,{class:k=""}=l;function t(n){N&&n&&n.focus()}const s=Pe();function P(){e(1,d=""),s("clear",{})}const{copy:E,copied:ee}=He();Se(a,ee,n=>e(26,r=n));function ke(n){W.call(this,a,n)}function Le(n){W.call(this,a,n)}function ze(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(){d=this.value,e(1,d)}const ye=n=>E(n,d);return a.$$set=n=>{l=ue(ue({},l),Ve(n)),e(31,i=de(l,o)),"id"in n&&e(2,u=n.id),"value"in n&&e(1,d=n.value),"label"in n&&e(3,f=n.label),"labelHidden"in n&&e(4,D=n.labelHidden),"icon"in n&&e(5,O=n.icon),"placeholder"in n&&e(6,_=n.placeholder),"suffix"in n&&e(7,g=n.suffix),"name"in n&&e(8,V=n.name),"copyable"in n&&e(9,F=n.copyable),"disabled"in n&&e(0,R=n.disabled),"clearable"in n&&e(10,Q=n.clearable),"theme"in n&&e(11,L=n.theme),"autocomplete"in n&&e(12,A=n.autocomplete),"valid"in n&&e(13,H=n.valid),"hintText"in n&&e(14,U=n.hintText),"maxLength"in n&&e(15,j=n.maxLength),"hideCount"in n&&e(16,c=n.hideCount),"spellcheck"in n&&e(17,Y=n.spellcheck),"unroundRight"in n&&e(18,p=n.unroundRight),"unroundLeft"in n&&e(19,m=n.unroundLeft),"noBorder"in n&&e(20,Z=n.noBorder),"autoFocus"in n&&e(32,N=n.autoFocus),"error"in n&&e(21,x=n.error),"required"in n&&e(22,y=n.required),"copyButtonLabel"in n&&e(23,$=n.copyButtonLabel),"clearButtonLabel"in n&&e(24,v=n.clearButtonLabel),"class"in n&&e(25,k=n.class)},a.$$.update=()=>{a.$$.dirty[0]&513&&e(0,R=R||F)},[R,d,u,f,D,O,_,g,V,F,Q,L,A,H,U,j,c,Y,p,m,Z,x,y,$,v,k,r,t,P,E,ee,i,N,ke,Le,ze,Be,Ee,Ie,qe,ye]}class Je extends Ce{constructor(l){super(),De(this,l,Oe,Me,Re,{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,hideCount:16,spellcheck:17,unroundRight:18,unroundLeft:19,noBorder:20,autoFocus:32,error:21,required:22,copyButtonLabel:23,clearButtonLabel:24,class:25},null,[-1,-1])}}export{Je as I}; +import{S as Ce,b as De,a as Re,O as ue,m as I,w as X,c as G,p as q,q as C,x as w,k as z,d as J,u as b,Y as se,Q as h,P as oe,f as M,L as B,Z as fe,M as K,_ as re,a2 as Te,y as le,j as T,z as ce,g as S,h as he,R as Fe,r as Ne,T as de,N as Pe,K as Se,U as Ve,C as ae,D as ne,E as te,F as ie,$ as W,n as Ae}from"./index.0942deb7.js";import{I as ge}from"./icon.33308831.js";import{c as He}from"./copy-to-clipboard.24b8f9c0.js";import{I as ve}from"./icon-button.cdadbc6c.js";function me(a){let l,e,o;return e=new ge({props:{name:a[5]}}),{c(){l=I("span"),ae(e.$$.fragment),this.h()},l(i){l=q(i,"SPAN",{class:!0});var r=C(l);ne(e.$$.fragment,r),r.forEach(z),this.h()},h(){b(l,"class","icon-container svelte-9wyzah")},m(i,r){M(i,l,r),te(e,l,null),o=!0},p(i,r){const u={};r[0]&32&&(u.name=i[5]),e.$set(u)},i(i){o||(T(e.$$.fragment,i),o=!0)},o(i){S(e.$$.fragment,i),o=!1},d(i){i&&z(l),ie(e)}}}function Ue(a){let l,e,o;return e=new ve({props:{label:a[24],icon:"close"}}),e.$on("click",a[28]),{c(){l=I("div"),ae(e.$$.fragment),this.h()},l(i){l=q(i,"DIV",{class:!0,"data-testid":!0});var r=C(l);ne(e.$$.fragment,r),r.forEach(z),this.h()},h(){b(l,"class","clear-icon-container svelte-9wyzah"),b(l,"data-testid","clear-input")},m(i,r){M(i,l,r),te(e,l,null),o=!0},p(i,r){const u={};r[0]&16777216&&(u.label=i[24]),e.$set(u)},i(i){o||(T(e.$$.fragment,i),o=!0)},o(i){S(e.$$.fragment,i),o=!1},d(i){i&&z(l),ie(e)}}}function je(a){let l,e,o;return e=new ge({props:{name:"lock"}}),{c(){l=I("div"),ae(e.$$.fragment),this.h()},l(i){l=q(i,"DIV",{class:!0});var r=C(l);ne(e.$$.fragment,r),r.forEach(z),this.h()},h(){b(l,"class","disabled-icon-container svelte-9wyzah")},m(i,r){M(i,l,r),te(e,l,null),o=!0},p:Ae,i(i){o||(T(e.$$.fragment,i),o=!0)},o(i){S(e.$$.fragment,i),o=!1},d(i){i&&z(l),ie(e)}}}function Ke(a){let l,e,o;return e=new ve({props:{label:a[23],icon:a[26]?"checkmark":"copy"}}),e.$on("click",a[40]),{c(){l=I("div"),ae(e.$$.fragment),this.h()},l(i){l=q(i,"DIV",{class:!0});var r=C(l);ne(e.$$.fragment,r),r.forEach(z),this.h()},h(){b(l,"class","copy-icon-container svelte-9wyzah")},m(i,r){M(i,l,r),te(e,l,null),o=!0},p(i,r){const u={};r[0]&8388608&&(u.label=i[23]),r[0]&67108864&&(u.icon=i[26]?"checkmark":"copy"),e.$set(u)},i(i){o||(T(e.$$.fragment,i),o=!0)},o(i){S(e.$$.fragment,i),o=!1},d(i){i&&z(l),ie(e)}}}function be(a){let l,e,o=a[1].length+"",i,r,u;return{c(){l=I("span"),e=I("span"),i=X(o),r=X("/"),u=X(a[15]),this.h()},l(d){l=q(d,"SPAN",{class:!0});var f=C(l);e=q(f,"SPAN",{class:!0});var D=C(e);i=w(D,o),D.forEach(z),r=w(f,"/"),u=w(f,a[15]),f.forEach(z),this.h()},h(){b(e,"class","svelte-9wyzah"),h(e,"ok",a[15]-a[1].length>5),h(e,"warn",a[15]-a[1].length<=5),h(e,"error",a[15]===a[1].length),b(l,"class","count svelte-9wyzah")},m(d,f){M(d,l,f),B(l,e),B(e,i),B(l,r),B(l,u)},p(d,f){f[0]&2&&o!==(o=d[1].length+"")&&le(i,o),f[0]&32770&&h(e,"ok",d[15]-d[1].length>5),f[0]&32770&&h(e,"warn",d[15]-d[1].length<=5),f[0]&32770&&h(e,"error",d[15]===d[1].length),f[0]&32768&&le(u,d[15])},d(d){d&&z(l)}}}function _e(a){let l,e;return{c(){l=I("div"),e=X(a[7]),this.h()},l(o){l=q(o,"DIV",{class:!0});var i=C(l);e=w(i,a[7]),i.forEach(z),this.h()},h(){b(l,"class","suffix svelte-9wyzah")},m(o,i){M(o,l,i),B(l,e)},p(o,i){i[0]&128&&le(e,o[7])},d(o){o&&z(l)}}}function Me(a){let l,e,o,i,r,u,d,f,D,O,_,g,V,F,R,Q,L,A,H,U,j,c,Y,p,m=a[5]&&me(a),Z=[{class:"input"},{disabled:a[0]},{"data-lpignore":"true"},{maxlength:D=a[15]>0?a[15]:void 0},{placeholder:a[6]},{id:a[2]},{name:a[8]},{spellcheck:a[17]},{required:a[22]},{autocomplete:a[12]},a[31]],N={};for(let t=0;t{m=null}),he()),oe(f,N=Fe(Z,[{class:"input"},(!c||s[0]&1)&&{disabled:t[0]},{"data-lpignore":"true"},(!c||s[0]&32768&&D!==(D=t[15]>0?t[15]:void 0))&&{maxlength:D},(!c||s[0]&64)&&{placeholder:t[6]},(!c||s[0]&4)&&{id:t[2]},(!c||s[0]&256)&&{name:t[8]},(!c||s[0]&131072)&&{spellcheck:t[17]},(!c||s[0]&4194304)&&{required:t[22]},(!c||s[0]&4096)&&{autocomplete:t[12]},s[1]&1&&t[31]])),s[0]&2&&f.value!==t[1]&&fe(f,t[1]),h(f,"disabled",t[0]),h(f,"svelte-9wyzah",!0);let P=_;_=$(t),_===P?~_&&y[_].p(t,s):(g&&(ce(),S(y[P],1,1,()=>{y[P]=null}),he()),~_?(g=y[_],g?g.p(t,s):(g=y[_]=x[_](t),g.c()),T(g,1),g.m(u,V)):g=null),t[15]&&!t[0]&&!t[16]?v?v.p(t,s):(v=be(t),v.c(),v.m(u,F)):v&&(v.d(1),v=null),t[7]?k?k.p(t,s):(k=_e(t),k.c(),k.m(u,null)):k&&(k.d(1),k=null),(!c||s[0]&2048&&R!==(R="input-container "+t[11]+" svelte-9wyzah"))&&b(u,"class",R),(!c||s[0]&2049)&&h(u,"disabled",t[0]),(!c||s[0]&2099200)&&h(u,"error",t[21]),(!c||s[0]&264320)&&h(u,"unroundRight",t[18]??t[7]),(!c||s[0]&526336)&&h(u,"unroundLeft",t[19]),(!c||s[0]&1050624)&&h(u,"noBorder",t[20]),(!c||s[0]&10240)&&h(u,"invalid",!t[13]),(!c||s[0]&16384)&&le(A,t[14]),(!c||s[0]&2048&&H!==(H="hint-text inline-block "+t[11]+" svelte-9wyzah"))&&b(L,"class",H),(!c||s[0]&2097152&&U!==(U=t[21]?"alert":null))&&b(L,"role",U),(!c||s[0]&10240)&&h(L,"invalid",!t[13]),(!c||s[0]&2099200)&&h(L,"error",t[21]),(!c||s[0]&18432)&&h(L,"hidden",!t[14]),(!c||s[0]&33554432&&j!==(j="flex flex-col gap-1 "+t[25]+" svelte-9wyzah"))&&b(l,"class",j)},i(t){c||(T(m),T(g),c=!0)},o(t){S(m),S(g),c=!1},d(t){t&&z(l),m&&m.d(),~_&&y[_].d(),v&&v.d(),k&&k.d(),Y=!1,Ne(p)}}}function Oe(a,l,e){const o=["id","value","label","labelHidden","icon","placeholder","suffix","name","copyable","disabled","clearable","theme","autocomplete","valid","hintText","maxLength","hideCount","spellcheck","unroundRight","unroundLeft","noBorder","autoFocus","error","required","copyButtonLabel","clearButtonLabel","class"];let i=de(l,o),r,{id:u}=l,{value:d}=l,{label:f}=l,{labelHidden:D=!1}=l,{icon:O=null}=l,{placeholder:_=""}=l,{suffix:g=""}=l,{name:V=u}=l,{copyable:F=!1}=l,{disabled:R=!1}=l,{clearable:Q=!1}=l,{theme:L="light"}=l,{autocomplete:A="off"}=l,{valid:H=!0}=l,{hintText:U=""}=l,{maxLength:j=0}=l,{hideCount:c=!1}=l,{spellcheck:Y=null}=l,{unroundRight:p=!1}=l,{unroundLeft:m=!1}=l,{noBorder:Z=!1}=l,{autoFocus:N=!1}=l,{error:x=!1}=l,{required:y=!1}=l,{copyButtonLabel:$=""}=l,{clearButtonLabel:v=""}=l,{class:k=""}=l;function t(n){N&&n&&n.focus()}const s=Pe();function P(){e(1,d=""),s("clear",{})}const{copy:E,copied:ee}=He();Se(a,ee,n=>e(26,r=n));function ke(n){W.call(this,a,n)}function Le(n){W.call(this,a,n)}function ze(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(){d=this.value,e(1,d)}const ye=n=>E(n,d);return a.$$set=n=>{l=ue(ue({},l),Ve(n)),e(31,i=de(l,o)),"id"in n&&e(2,u=n.id),"value"in n&&e(1,d=n.value),"label"in n&&e(3,f=n.label),"labelHidden"in n&&e(4,D=n.labelHidden),"icon"in n&&e(5,O=n.icon),"placeholder"in n&&e(6,_=n.placeholder),"suffix"in n&&e(7,g=n.suffix),"name"in n&&e(8,V=n.name),"copyable"in n&&e(9,F=n.copyable),"disabled"in n&&e(0,R=n.disabled),"clearable"in n&&e(10,Q=n.clearable),"theme"in n&&e(11,L=n.theme),"autocomplete"in n&&e(12,A=n.autocomplete),"valid"in n&&e(13,H=n.valid),"hintText"in n&&e(14,U=n.hintText),"maxLength"in n&&e(15,j=n.maxLength),"hideCount"in n&&e(16,c=n.hideCount),"spellcheck"in n&&e(17,Y=n.spellcheck),"unroundRight"in n&&e(18,p=n.unroundRight),"unroundLeft"in n&&e(19,m=n.unroundLeft),"noBorder"in n&&e(20,Z=n.noBorder),"autoFocus"in n&&e(32,N=n.autoFocus),"error"in n&&e(21,x=n.error),"required"in n&&e(22,y=n.required),"copyButtonLabel"in n&&e(23,$=n.copyButtonLabel),"clearButtonLabel"in n&&e(24,v=n.clearButtonLabel),"class"in n&&e(25,k=n.class)},a.$$.update=()=>{a.$$.dirty[0]&513&&e(0,R=R||F)},[R,d,u,f,D,O,_,g,V,F,Q,L,A,H,U,j,c,Y,p,m,Z,x,y,$,v,k,r,t,P,E,ee,i,N,ke,Le,ze,Be,Ee,Ie,qe,ye]}class Je extends Ce{constructor(l){super(),De(this,l,Oe,Me,Re,{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,hideCount:16,spellcheck:17,unroundRight:18,unroundLeft:19,noBorder:20,autoFocus:32,error:21,required:22,copyButtonLabel:23,clearButtonLabel:24,class:25},null,[-1,-1])}}export{Je as I}; diff --git a/ui/assets/local/_app/immutable/chunks/link.f0cc0bf5.js b/ui/assets/local/_app/immutable/chunks/link.faba7c50.js similarity index 97% rename from ui/assets/local/_app/immutable/chunks/link.f0cc0bf5.js rename to ui/assets/local/_app/immutable/chunks/link.faba7c50.js index c2b11dd0c9..30087ee7f8 100644 --- a/ui/assets/local/_app/immutable/chunks/link.f0cc0bf5.js +++ b/ui/assets/local/_app/immutable/chunks/link.faba7c50.js @@ -1 +1 @@ -import{S as F,b as G,a as H,G as J,O as C,m as K,c as P,p as M,q as N,d as q,k as I,P as D,Q as v,f as A,L as E,M as O,j as d,z as Q,g as T,h as R,H as U,I as B,J as V,R as W,T as S,U as X,C as Y,D as Z,E as y,F as p,w,x,y as $}from"./index.0942deb7.js";import{g as ee}from"./navigation.83f47780.js";import{I as te}from"./icon.33308831.js";function j(s){let e,a;return e=new te({props:{width:20,height:20,class:"mt-0.5",name:s[4]}}),{c(){Y(e.$$.fragment)},l(n){Z(e.$$.fragment,n)},m(n,u){y(e,n,u),a=!0},p(n,u){const c={};u&16&&(c.name=n[4]),e.$set(c)},i(n){a||(d(e.$$.fragment,n),a=!0)},o(n){T(e.$$.fragment,n),a=!1},d(n){p(e,n)}}}function z(s){let e;return{c(){e=w(s[5])},l(a){e=x(a,s[5])},m(a,n){A(a,e,n)},p(a,n){n&32&&$(e,a[5])},d(a){a&&I(e)}}}function le(s){let e,a,n,u,c,_,m,o,h,g,i=s[4]&&j(s),r=s[5]&&z(s);const b=s[9].default,t=J(b,s,s[8],null);let L=[{href:s[1]},{target:u=s[3]?"_blank":null},{rel:c=s[3]?"noreferrer":null},{class:_="link "+(s[4]?"inline-flex":"inline")+" "+s[0]},{tabindex:m=s[1]?null:0},s[7]],k={};for(let l=0;l{i=null}),R()),l[5]?r?r.p(l,f):(r=z(l),r.c(),r.m(e,n)):r&&(r.d(1),r=null),t&&t.p&&(!o||f&256)&&U(t,b,l,l[8],o?V(b,l[8],f,null):B(l[8]),null),D(e,k=W(L,[(!o||f&2)&&{href:l[1]},(!o||f&8&&u!==(u=l[3]?"_blank":null))&&{target:u},(!o||f&8&&c!==(c=l[3]?"noreferrer":null))&&{rel:c},(!o||f&17&&_!==(_="link "+(l[4]?"inline-flex":"inline")+" "+l[0]))&&{class:_},(!o||f&2&&m!==(m=l[1]?null:0))&&{tabindex:m},f&128&&l[7]])),v(e,"active",l[2]),v(e,"svelte-10xxh5w",!0)},i(l){o||(d(i),d(t,l),o=!0)},o(l){T(i),T(t,l),o=!1},d(l){l&&I(e),i&&i.d(),r&&r.d(),t&&t.d(l),h=!1,g()}}}function ae(s,e,a){const n=["class","href","active","newTab","icon","text"];let u=S(e,n),{$$slots:c={},$$scope:_}=e,{class:m=""}=e,{href:o}=e,{active:h=!1}=e,{newTab:g=!1}=e,{icon:i=null}=e,{text:r=""}=e;const b=t=>{t.button===1||g||t.metaKey||(t.preventDefault(),t.stopPropagation(),ee(o))};return s.$$set=t=>{e=C(C({},e),X(t)),a(7,u=S(e,n)),"class"in t&&a(0,m=t.class),"href"in t&&a(1,o=t.href),"active"in t&&a(2,h=t.active),"newTab"in t&&a(3,g=t.newTab),"icon"in t&&a(4,i=t.icon),"text"in t&&a(5,r=t.text),"$$scope"in t&&a(8,_=t.$$scope)},[m,o,h,g,i,r,b,u,_,c]}class fe extends F{constructor(e){super(),G(this,e,ae,le,H,{class:0,href:1,active:2,newTab:3,icon:4,text:5})}}export{fe as L}; +import{S as F,b as G,a as H,G as J,O as C,m as K,c as P,p as M,q as N,d as q,k as I,P as D,Q as v,f as A,L as E,M as O,j as d,z as Q,g as T,h as R,H as U,I as B,J as V,R as W,T as S,U as X,C as Y,D as Z,E as y,F as p,w,x,y as $}from"./index.0942deb7.js";import{g as ee}from"./navigation.dde0d4fa.js";import{I as te}from"./icon.33308831.js";function j(s){let e,a;return e=new te({props:{width:20,height:20,class:"mt-0.5",name:s[4]}}),{c(){Y(e.$$.fragment)},l(n){Z(e.$$.fragment,n)},m(n,u){y(e,n,u),a=!0},p(n,u){const c={};u&16&&(c.name=n[4]),e.$set(c)},i(n){a||(d(e.$$.fragment,n),a=!0)},o(n){T(e.$$.fragment,n),a=!1},d(n){p(e,n)}}}function z(s){let e;return{c(){e=w(s[5])},l(a){e=x(a,s[5])},m(a,n){A(a,e,n)},p(a,n){n&32&&$(e,a[5])},d(a){a&&I(e)}}}function le(s){let e,a,n,u,c,_,m,o,h,g,i=s[4]&&j(s),r=s[5]&&z(s);const b=s[9].default,t=J(b,s,s[8],null);let L=[{href:s[1]},{target:u=s[3]?"_blank":null},{rel:c=s[3]?"noreferrer":null},{class:_="link "+(s[4]?"inline-flex":"inline")+" "+s[0]},{tabindex:m=s[1]?null:0},s[7]],k={};for(let l=0;l{i=null}),R()),l[5]?r?r.p(l,f):(r=z(l),r.c(),r.m(e,n)):r&&(r.d(1),r=null),t&&t.p&&(!o||f&256)&&U(t,b,l,l[8],o?V(b,l[8],f,null):B(l[8]),null),D(e,k=W(L,[(!o||f&2)&&{href:l[1]},(!o||f&8&&u!==(u=l[3]?"_blank":null))&&{target:u},(!o||f&8&&c!==(c=l[3]?"noreferrer":null))&&{rel:c},(!o||f&17&&_!==(_="link "+(l[4]?"inline-flex":"inline")+" "+l[0]))&&{class:_},(!o||f&2&&m!==(m=l[1]?null:0))&&{tabindex:m},f&128&&l[7]])),v(e,"active",l[2]),v(e,"svelte-10xxh5w",!0)},i(l){o||(d(i),d(t,l),o=!0)},o(l){T(i),T(t,l),o=!1},d(l){l&&I(e),i&&i.d(),r&&r.d(),t&&t.d(l),h=!1,g()}}}function ae(s,e,a){const n=["class","href","active","newTab","icon","text"];let u=S(e,n),{$$slots:c={},$$scope:_}=e,{class:m=""}=e,{href:o}=e,{active:h=!1}=e,{newTab:g=!1}=e,{icon:i=null}=e,{text:r=""}=e;const b=t=>{t.button===1||g||t.metaKey||(t.preventDefault(),t.stopPropagation(),ee(o))};return s.$$set=t=>{e=C(C({},e),X(t)),a(7,u=S(e,n)),"class"in t&&a(0,m=t.class),"href"in t&&a(1,o=t.href),"active"in t&&a(2,h=t.active),"newTab"in t&&a(3,g=t.newTab),"icon"in t&&a(4,i=t.icon),"text"in t&&a(5,r=t.text),"$$scope"in t&&a(8,_=t.$$scope)},[m,o,h,g,i,r,b,u,_,c]}class fe extends F{constructor(e){super(),G(this,e,ae,le,H,{class:0,href:1,active:2,newTab:3,icon:4,text:5})}}export{fe as L}; diff --git a/ui/assets/local/_app/immutable/chunks/logo.f647e2df.js b/ui/assets/local/_app/immutable/chunks/logo.a9749c30.js similarity index 95% rename from ui/assets/local/_app/immutable/chunks/logo.f647e2df.js rename to ui/assets/local/_app/immutable/chunks/logo.a9749c30.js index 9ade95adae..6bf9db3c1a 100644 --- a/ui/assets/local/_app/immutable/chunks/logo.f647e2df.js +++ b/ui/assets/local/_app/immutable/chunks/logo.a9749c30.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.0942deb7.js";import{p as C}from"./stores.73c3690d.js";import{I as G}from"./icon.33308831.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.0942deb7.js";import{p as C}from"./stores.255470ec.js";import{I as G}from"./icon.33308831.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.55d17299.js b/ui/assets/local/_app/immutable/chunks/menu.1cf8fd74.js similarity index 99% rename from ui/assets/local/_app/immutable/chunks/menu.55d17299.js rename to ui/assets/local/_app/immutable/chunks/menu.1cf8fd74.js index c306a423fe..afb36add84 100644 --- a/ui/assets/local/_app/immutable/chunks/menu.55d17299.js +++ b/ui/assets/local/_app/immutable/chunks/menu.1cf8fd74.js @@ -1 +1 @@ -import{S as ee,b as te,a as le,G as K,O as S,m as P,p as U,q as y,k as p,P as z,f as G,a2 as Se,M as Z,H as B,I as j,J as H,R as $,j as M,g as D,r as oe,T as W,N as re,ae as Re,U as ne,n as Pe,s as Ue,a5 as J,e as be,z as w,h as x,af as fe,K as Y,c as Q,d as X,u as F,Q as I,L as R,_ as ce,C as de,D as me,E as _e,F as he,w as Ae,x as De,y as pe,ag as ye,ah as Ve,a3 as Ke,a4 as Be,A as je}from"./index.0942deb7.js";import{B as He}from"./badge.5c29cec8.js";import{I as Te}from"./icon.33308831.js";import{f as ze}from"./index.2fa3ca4d.js";import{w as ae}from"./singletons.0a6e865f.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}),ge=t=>({open:t[1]});function Qe(t){let e,n,l,s,a;const _=t[5].default,m=K(_,t,t[4],ge);let r=[{class:n="relative "+t[0]},t[3]],i={};for(let d=0;d(_(),_=Ue(v,b=>n(6,a=b)),v);t.$$.on_destroy.push(()=>_());let{$$slots:r={},$$scope:i}=e,{class:d=""}=e,{open:v=ae(!1)}=e;m();const u=ae(!1),h=ae(null),q=re(),C=()=>{q("close"),J(v,a=!1,a)};return Re(se,{open:v,keepOpen:u,menuElement:h}),t.$$set=b=>{e=S(S({},e),ne(b)),n(3,s=W(e,l)),"class"in b&&n(0,d=b.class),"open"in b&&m(n(1,v=b.open)),"$$scope"in b&&n(4,i=b.$$scope)},[d,v,C,s,i,r]}class mt extends ee{constructor(e){super(),te(this,e,Xe,Qe,le,{class:0,open:1})}}const We=t=>({}),ve=t=>({}),Ye=t=>({}),ke=t=>({});function Ze(t){let e,n,l,s,a,_,m,r,i,d,v,u,h,q;const C=t[14].leading,b=K(C,t,t[13],ke),T=[xe,we],E=[];function L(c,A){return c[5]?0:1}s=L(t),a=E[s]=T[s](t);let O=t[1]!==void 0&&Ee(t);const N=t[14].trailing,o=K(N,t,t[13],ve);let f=[{role:"menuitem"},{class:i="menu-item "+t[7]+" "+t[0]},{"aria-hidden":d=t[3]?"true":"false"},{"aria-disabled":t[3]},{tabindex:v=t[3]?-1:0},t[12]],g={};for(let c=0;c{E[V]=null}),x(),a=E[s],a?a.p(c,A):(a=E[s]=T[s](c),a.c()),M(a,1),a.m(l,_)),c[1]!==void 0?O?(O.p(c,A),A&2&&M(O,1)):(O=Ee(c),O.c(),M(O,1),O.m(l,null)):O&&(w(),D(O,1,1,()=>{O=null}),x()),(!u||A&128&&m!==(m="menu-item-wrapper "+c[7]+" svelte-p5vq2i"))&&F(l,"class",m),(!u||A&130)&&I(l,"selected",c[1]),(!u||A&192)&&I(l,"centered",c[6]),o&&o.p&&(!u||A&8192)&&B(o,N,c,c[13],u?H(N,c[13],A,We):j(c[13]),ve),z(e,g=$(f,[{role:"menuitem"},(!u||A&129&&i!==(i="menu-item "+c[7]+" "+c[0]))&&{class:i},(!u||A&8&&d!==(d=c[3]?"true":"false"))&&{"aria-hidden":d},(!u||A&8)&&{"aria-disabled":c[3]},(!u||A&8&&v!==(v=c[3]?-1:0))&&{tabindex:v},A&4096&&c[12]])),I(e,"destructive",c[2]),I(e,"disabled",c[3]),I(e,"svelte-p5vq2i",!0)},i(c){u||(M(b,c),M(a),M(O),M(o,c),u=!0)},o(c){D(b,c),D(a),D(O),D(o,c),u=!1},d(c){c&&p(e),b&&b.d(c),E[s].d(),O&&O.d(),o&&o.d(c),h=!1,oe(q)}}}function Fe(t){let e,n,l,s,a,_,m;const r=t[14].default,i=K(r,t,t[13],null);let d=[{href:t[4]},{role:"menuitem"},{class:n="menu-item "+t[7]+" "+t[0]},{"aria-hidden":l=t[3]?"true":"false"},{"aria-disabled":t[3]},{tabindex:s=t[3]?-1:0},t[12]],v={};for(let u=0;u{l=null}),x())},i(s){n||(M(l),n=!0)},o(s){D(l),n=!1},d(s){s&&p(e),l&&l.d()}}}function Ie(t){let e,n;return e=new Te({props:{name:"checkmark"}}),{c(){de(e.$$.fragment)},l(l){me(e.$$.fragment,l)},m(l,s){_e(e,l,s),n=!0},i(l){n||(M(e.$$.fragment,l),n=!0)},o(l){D(e.$$.fragment,l),n=!1},d(l){he(e,l)}}}function $e(t){let e,n,l,s;const a=[Fe,Ze],_=[];function m(r,i){return r[4]?0:1}return e=m(t),n=_[e]=a[e](t),{c(){n.c(),l=be()},l(r){n.l(r),l=be()},m(r,i){_[e].m(r,i),G(r,l,i),s=!0},p(r,[i]){let d=e;e=m(r),e===d?_[e].p(r,i):(w(),D(_[d],1,1,()=>{_[d]=null}),x(),n=_[e],n?n.p(r,i):(n=_[e]=a[e](r),n.c()),M(n,1),n.m(l.parentNode,l))},i(r){s||(M(n),s=!0)},o(r){D(n),s=!1},d(r){_[e].d(r),r&&p(l)}}}const ue='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","theme"];let s=W(e,l),a,_,{$$slots:m={},$$scope:r}=e,{class:i=""}=e,{selected:d=void 0}=e,{destructive:v=!1}=e,{disabled:u=!1}=e,{href:h=null}=e,{description:q=null}=e,{centered:C=!1}=e,{theme:b="light"}=e;const{keepOpen:T,open:E}=fe(se);Y(t,T,g=>n(16,_=g)),Y(t,E,g=>n(15,a=g));const L=re(),O=g=>{switch(g.key){case"Escape":J(E,a=!1,a);break;case"ArrowDown":case"ArrowRight":N(g.currentTarget);break;case"ArrowUp":case"ArrowLeft":o(g.currentTarget);break;case" ":case"Enter":L("click"),_||J(E,a=!1,a);break}},N=g=>{let c=g.nextElementSibling;for(;c&&!c.matches(ue);)c=c.nextElementSibling;c&&c instanceof HTMLLIElement&&c.focus()},o=g=>{let c=g.previousElementSibling;for(;c&&!c.matches(ue);)c=c.previousElementSibling;c&&c instanceof HTMLLIElement&&c.focus()},f=()=>{_||J(E,a=!1,a),L("click")};return t.$$set=g=>{e=S(S({},e),ne(g)),n(12,s=W(e,l)),"class"in g&&n(0,i=g.class),"selected"in g&&n(1,d=g.selected),"destructive"in g&&n(2,v=g.destructive),"disabled"in g&&n(3,u=g.disabled),"href"in g&&n(4,h=g.href),"description"in g&&n(5,q=g.description),"centered"in g&&n(6,C=g.centered),"theme"in g&&n(7,b=g.theme),"$$scope"in g&&n(13,r=g.$$scope)},[i,d,v,u,h,q,C,b,T,E,O,f,s,r,m]}class _t extends ee{constructor(e){super(),te(this,e,et,$e,le,{class:0,selected:1,destructive:2,disabled:3,href:4,description:5,centered:6,theme:7})}}const tt=t=>({}),Le=t=>({}),lt=t=>({}),Oe=t=>({});function Me(t){let e,n,l;return n=new Te({props:{name:t[13]?"chevron-up":"chevron-down"}}),{c(){e=P("div"),de(n.$$.fragment),this.h()},l(s){e=U(s,"DIV",{class:!0});var a=y(e);me(n.$$.fragment,a),a.forEach(p),this.h()},h(){F(e,"class","flex")},m(s,a){G(s,e,a),_e(n,e,null),l=!0},p(s,a){const _={};a&8192&&(_.name=s[13]?"chevron-up":"chevron-down"),n.$set(_)},i(s){l||(M(n.$$.fragment,s),l=!0)},o(s){D(n.$$.fragment,s),l=!1},d(s){s&&p(e),he(n)}}}function Ce(t){let e,n;return e=new He({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(){de(e.$$.fragment)},l(l){me(e.$$.fragment,l)},m(l,s){_e(e,l,s),n=!0},p(l,s){const a={};s&2097156&&(a.$$scope={dirty:s,ctx:l}),e.$set(a)},i(l){n||(M(e.$$.fragment,l),n=!0)},o(l){D(e.$$.fragment,l),n=!1},d(l){he(e,l)}}}function nt(t){let e;return{c(){e=Ae(t[2])},l(n){e=De(n,t[2])},m(n,l){G(n,e,l)},p(n,l){l&4&&pe(e,n[2])},d(n){n&&p(e)}}}function st(t){let e,n,l,s,a,_,m,r,i,d,v;const u=t[20].leading,h=K(u,t,t[21],Oe),q=t[20].default,C=K(q,t,t[21],null);let b=t[4]&&Me(t);const T=t[20].trailing,E=K(T,t,t[21],Le);let L=t[2]>0&&Ce(t),O=[{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:r="menu-button "+t[10]+" "+t[0]},t[18]],N={};for(let o=0;o{b=null}),x()),E&&E.p&&(!i||f&2097152)&&B(E,T,o,o[21],i?H(T,o[21],f,tt):j(o[21]),Le),o[2]>0?L?(L.p(o,f),f&4&&M(L,1)):(L=Ce(o),L.c(),M(L,1),L.m(e,null)):L&&(w(),D(L,1,1,()=>{L=null}),x()),z(e,N=$(O,[(!i||f&32)&&{id:o[5]},(!i||f&8)&&{disabled:o[3]},{type:"button"},(!i||f&8&&m!==(m=!o[3]))&&{"aria-haspopup":m},(!i||f&2)&&{"aria-controls":o[1]},(!i||f&8192)&&{"aria-expanded":o[13]},(!i||f&64)&&{"aria-label":o[6]},(!i||f&1025&&r!==(r="menu-button "+o[10]+" "+o[0]))&&{class:r},f&262144&&o[18]])),I(e,"unroundLeft",o[9]),I(e,"unroundRight",o[8]),I(e,"active",o[11]),I(e,"unround",o[7]),I(e,"round",o[12]),I(e,"svelte-etc7wv",!0)},i(o){i||(M(h,o),M(C,o),M(b),M(E,o),M(L),i=!0)},o(o){D(h,o),D(C,o),D(b),D(E,o),D(L),i=!1},d(o){o&&p(e),h&&h.d(o),C&&C.d(o),b&&b.d(),E&&E.d(o),L&&L.d(),d=!1,oe(v)}}}function it(t,e,n){const l=["class","controls","count","disabled","hasIndicator","id","label","unround","unroundRight","unroundLeft","variant","active","round"];let s=W(e,l),a,_,{$$slots:m={},$$scope:r}=e;const i=Ve(m);let{class:d=""}=e,{controls:v}=e,{count:u=0}=e,{disabled:h=!1}=e,{hasIndicator:q=!1}=e,{id:C=null}=e,{label:b=null}=e,{unround:T=!1}=e,{unroundRight:E=!1}=e,{unroundLeft:L=!1}=e,{variant:O="secondary"}=e,{active:N=!1}=e,{round:o=!1}=e;const f=re(),{open:g,menuElement:c}=fe(se);Y(t,g,k=>n(13,_=k)),Y(t,c,k=>n(22,a=k));const A=()=>{g.update(k=>{let ie=k;return h||(ie=!k),f("click",{open:ie}),ie})},V=k=>{switch(k.key){case"Escape":J(g,_=!1,_);break;case"ArrowDown":k.preventDefault(),_?Ne():J(g,_=!0,_);break}},Ne=()=>{const k=Array.from(a.querySelectorAll(ue));k&&k[0]&&requestAnimationFrame(()=>k[0].focus())};return t.$$set=k=>{e=S(S({},e),ne(k)),n(18,s=W(e,l)),"class"in k&&n(0,d=k.class),"controls"in k&&n(1,v=k.controls),"count"in k&&n(2,u=k.count),"disabled"in k&&n(3,h=k.disabled),"hasIndicator"in k&&n(4,q=k.hasIndicator),"id"in k&&n(5,C=k.id),"label"in k&&n(6,b=k.label),"unround"in k&&n(7,T=k.unround),"unroundRight"in k&&n(8,E=k.unroundRight),"unroundLeft"in k&&n(9,L=k.unroundLeft),"variant"in k&&n(10,O=k.variant),"active"in k&&n(11,N=k.active),"round"in k&&n(12,o=k.round),"$$scope"in k&&n(21,r=k.$$scope)},[d,v,u,h,q,C,b,T,E,L,O,N,o,_,g,c,A,V,s,i,m,r]}class ht extends ee{constructor(e){super(),te(this,e,it,st,le,{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 qe=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=qe(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 r=t[14].default,i=K(r,t,t[13],null);let d=[{role:"menu"},{class:n="menu "+t[3]+" "+t[4]+" "+t[1]},{"aria-labelledby":t[2]},{tabindex:l=-1},{id:t[2]},t[10]],v={};for(let u=0;u{s=Be(e,ze,{duration:100}),s.start()}),a=!0)},o(u){D(i,u),a=!1},d(u){u&&p(e),i&&i.d(u),t[15](null),_=!1,m()}}}function ut(t,e,n){let l,s;const a=["class","id","keepOpen","position","theme","menuElement"];let _=W(e,a),m,r,i,{$$slots:d={},$$scope:v}=e,{class:u=""}=e,{id:h}=e,{keepOpen:q=!1}=e,{position:C="left"}=e,{theme:b="light"}=e,{menuElement:T=null}=e;const{keepOpen:E,menuElement:L,open:O}=fe(se);Y(t,E,f=>n(17,r=f)),Y(t,L,f=>n(18,i=f)),Y(t,O,f=>n(5,m=f));const N=f=>{!r&&f.target===s&&J(O,m=!1,m)};function o(f){je[f?"unshift":"push"](()=>{T=f,n(0,T)})}return t.$$set=f=>{e=S(S({},e),ne(f)),n(10,_=W(e,a)),"class"in f&&n(1,u=f.class),"id"in f&&n(2,h=f.id),"keepOpen"in f&&n(11,q=f.keepOpen),"position"in f&&n(3,C=f.position),"theme"in f&&n(4,b=f.theme),"menuElement"in f&&n(0,T=f.menuElement),"$$scope"in f&&n(13,v=f.$$scope)},t.$$.update=()=>{t.$$.dirty&2048&&J(E,r=q,r),t.$$.dirty&1&&J(L,i=T,i),t.$$.dirty&1&&n(12,l=T?qe(T):[]),t.$$.dirty&4096&&(s=l[l.length-1])},[T,u,h,C,b,m,E,L,O,N,_,q,l,v,d,o]}class gt extends ee{constructor(e){super(),te(this,e,ut,at,le,{class:1,id:2,keepOpen:11,position:3,theme:4,menuElement:0})}}export{mt as M,ht as a,gt as b,Ge as c,_t as d,bt as f}; +import{S as ee,b as te,a as le,G as K,O as S,m as P,p as U,q as y,k as p,P as z,f as G,a2 as Se,M as Z,H as B,I as j,J as H,R as $,j as M,g as D,r as oe,T as W,N as re,ae as Re,U as ne,n as Pe,s as Ue,a5 as J,e as be,z as w,h as x,af as fe,K as Y,c as Q,d as X,u as F,Q as I,L as R,_ as ce,C as de,D as me,E as _e,F as he,w as Ae,x as De,y as pe,ag as ye,ah as Ve,a3 as Ke,a4 as Be,A as je}from"./index.0942deb7.js";import{B as He}from"./badge.5c29cec8.js";import{I as Te}from"./icon.33308831.js";import{f as ze}from"./index.2fa3ca4d.js";import{w as ae}from"./singletons.d67f4e6b.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}),ge=t=>({open:t[1]});function Qe(t){let e,n,l,s,a;const _=t[5].default,m=K(_,t,t[4],ge);let r=[{class:n="relative "+t[0]},t[3]],i={};for(let d=0;d(_(),_=Ue(v,b=>n(6,a=b)),v);t.$$.on_destroy.push(()=>_());let{$$slots:r={},$$scope:i}=e,{class:d=""}=e,{open:v=ae(!1)}=e;m();const u=ae(!1),h=ae(null),q=re(),C=()=>{q("close"),J(v,a=!1,a)};return Re(se,{open:v,keepOpen:u,menuElement:h}),t.$$set=b=>{e=S(S({},e),ne(b)),n(3,s=W(e,l)),"class"in b&&n(0,d=b.class),"open"in b&&m(n(1,v=b.open)),"$$scope"in b&&n(4,i=b.$$scope)},[d,v,C,s,i,r]}class mt extends ee{constructor(e){super(),te(this,e,Xe,Qe,le,{class:0,open:1})}}const We=t=>({}),ve=t=>({}),Ye=t=>({}),ke=t=>({});function Ze(t){let e,n,l,s,a,_,m,r,i,d,v,u,h,q;const C=t[14].leading,b=K(C,t,t[13],ke),T=[xe,we],E=[];function L(c,A){return c[5]?0:1}s=L(t),a=E[s]=T[s](t);let O=t[1]!==void 0&&Ee(t);const N=t[14].trailing,o=K(N,t,t[13],ve);let f=[{role:"menuitem"},{class:i="menu-item "+t[7]+" "+t[0]},{"aria-hidden":d=t[3]?"true":"false"},{"aria-disabled":t[3]},{tabindex:v=t[3]?-1:0},t[12]],g={};for(let c=0;c{E[V]=null}),x(),a=E[s],a?a.p(c,A):(a=E[s]=T[s](c),a.c()),M(a,1),a.m(l,_)),c[1]!==void 0?O?(O.p(c,A),A&2&&M(O,1)):(O=Ee(c),O.c(),M(O,1),O.m(l,null)):O&&(w(),D(O,1,1,()=>{O=null}),x()),(!u||A&128&&m!==(m="menu-item-wrapper "+c[7]+" svelte-p5vq2i"))&&F(l,"class",m),(!u||A&130)&&I(l,"selected",c[1]),(!u||A&192)&&I(l,"centered",c[6]),o&&o.p&&(!u||A&8192)&&B(o,N,c,c[13],u?H(N,c[13],A,We):j(c[13]),ve),z(e,g=$(f,[{role:"menuitem"},(!u||A&129&&i!==(i="menu-item "+c[7]+" "+c[0]))&&{class:i},(!u||A&8&&d!==(d=c[3]?"true":"false"))&&{"aria-hidden":d},(!u||A&8)&&{"aria-disabled":c[3]},(!u||A&8&&v!==(v=c[3]?-1:0))&&{tabindex:v},A&4096&&c[12]])),I(e,"destructive",c[2]),I(e,"disabled",c[3]),I(e,"svelte-p5vq2i",!0)},i(c){u||(M(b,c),M(a),M(O),M(o,c),u=!0)},o(c){D(b,c),D(a),D(O),D(o,c),u=!1},d(c){c&&p(e),b&&b.d(c),E[s].d(),O&&O.d(),o&&o.d(c),h=!1,oe(q)}}}function Fe(t){let e,n,l,s,a,_,m;const r=t[14].default,i=K(r,t,t[13],null);let d=[{href:t[4]},{role:"menuitem"},{class:n="menu-item "+t[7]+" "+t[0]},{"aria-hidden":l=t[3]?"true":"false"},{"aria-disabled":t[3]},{tabindex:s=t[3]?-1:0},t[12]],v={};for(let u=0;u{l=null}),x())},i(s){n||(M(l),n=!0)},o(s){D(l),n=!1},d(s){s&&p(e),l&&l.d()}}}function Ie(t){let e,n;return e=new Te({props:{name:"checkmark"}}),{c(){de(e.$$.fragment)},l(l){me(e.$$.fragment,l)},m(l,s){_e(e,l,s),n=!0},i(l){n||(M(e.$$.fragment,l),n=!0)},o(l){D(e.$$.fragment,l),n=!1},d(l){he(e,l)}}}function $e(t){let e,n,l,s;const a=[Fe,Ze],_=[];function m(r,i){return r[4]?0:1}return e=m(t),n=_[e]=a[e](t),{c(){n.c(),l=be()},l(r){n.l(r),l=be()},m(r,i){_[e].m(r,i),G(r,l,i),s=!0},p(r,[i]){let d=e;e=m(r),e===d?_[e].p(r,i):(w(),D(_[d],1,1,()=>{_[d]=null}),x(),n=_[e],n?n.p(r,i):(n=_[e]=a[e](r),n.c()),M(n,1),n.m(l.parentNode,l))},i(r){s||(M(n),s=!0)},o(r){D(n),s=!1},d(r){_[e].d(r),r&&p(l)}}}const ue='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","theme"];let s=W(e,l),a,_,{$$slots:m={},$$scope:r}=e,{class:i=""}=e,{selected:d=void 0}=e,{destructive:v=!1}=e,{disabled:u=!1}=e,{href:h=null}=e,{description:q=null}=e,{centered:C=!1}=e,{theme:b="light"}=e;const{keepOpen:T,open:E}=fe(se);Y(t,T,g=>n(16,_=g)),Y(t,E,g=>n(15,a=g));const L=re(),O=g=>{switch(g.key){case"Escape":J(E,a=!1,a);break;case"ArrowDown":case"ArrowRight":N(g.currentTarget);break;case"ArrowUp":case"ArrowLeft":o(g.currentTarget);break;case" ":case"Enter":L("click"),_||J(E,a=!1,a);break}},N=g=>{let c=g.nextElementSibling;for(;c&&!c.matches(ue);)c=c.nextElementSibling;c&&c instanceof HTMLLIElement&&c.focus()},o=g=>{let c=g.previousElementSibling;for(;c&&!c.matches(ue);)c=c.previousElementSibling;c&&c instanceof HTMLLIElement&&c.focus()},f=()=>{_||J(E,a=!1,a),L("click")};return t.$$set=g=>{e=S(S({},e),ne(g)),n(12,s=W(e,l)),"class"in g&&n(0,i=g.class),"selected"in g&&n(1,d=g.selected),"destructive"in g&&n(2,v=g.destructive),"disabled"in g&&n(3,u=g.disabled),"href"in g&&n(4,h=g.href),"description"in g&&n(5,q=g.description),"centered"in g&&n(6,C=g.centered),"theme"in g&&n(7,b=g.theme),"$$scope"in g&&n(13,r=g.$$scope)},[i,d,v,u,h,q,C,b,T,E,O,f,s,r,m]}class _t extends ee{constructor(e){super(),te(this,e,et,$e,le,{class:0,selected:1,destructive:2,disabled:3,href:4,description:5,centered:6,theme:7})}}const tt=t=>({}),Le=t=>({}),lt=t=>({}),Oe=t=>({});function Me(t){let e,n,l;return n=new Te({props:{name:t[13]?"chevron-up":"chevron-down"}}),{c(){e=P("div"),de(n.$$.fragment),this.h()},l(s){e=U(s,"DIV",{class:!0});var a=y(e);me(n.$$.fragment,a),a.forEach(p),this.h()},h(){F(e,"class","flex")},m(s,a){G(s,e,a),_e(n,e,null),l=!0},p(s,a){const _={};a&8192&&(_.name=s[13]?"chevron-up":"chevron-down"),n.$set(_)},i(s){l||(M(n.$$.fragment,s),l=!0)},o(s){D(n.$$.fragment,s),l=!1},d(s){s&&p(e),he(n)}}}function Ce(t){let e,n;return e=new He({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(){de(e.$$.fragment)},l(l){me(e.$$.fragment,l)},m(l,s){_e(e,l,s),n=!0},p(l,s){const a={};s&2097156&&(a.$$scope={dirty:s,ctx:l}),e.$set(a)},i(l){n||(M(e.$$.fragment,l),n=!0)},o(l){D(e.$$.fragment,l),n=!1},d(l){he(e,l)}}}function nt(t){let e;return{c(){e=Ae(t[2])},l(n){e=De(n,t[2])},m(n,l){G(n,e,l)},p(n,l){l&4&&pe(e,n[2])},d(n){n&&p(e)}}}function st(t){let e,n,l,s,a,_,m,r,i,d,v;const u=t[20].leading,h=K(u,t,t[21],Oe),q=t[20].default,C=K(q,t,t[21],null);let b=t[4]&&Me(t);const T=t[20].trailing,E=K(T,t,t[21],Le);let L=t[2]>0&&Ce(t),O=[{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:r="menu-button "+t[10]+" "+t[0]},t[18]],N={};for(let o=0;o{b=null}),x()),E&&E.p&&(!i||f&2097152)&&B(E,T,o,o[21],i?H(T,o[21],f,tt):j(o[21]),Le),o[2]>0?L?(L.p(o,f),f&4&&M(L,1)):(L=Ce(o),L.c(),M(L,1),L.m(e,null)):L&&(w(),D(L,1,1,()=>{L=null}),x()),z(e,N=$(O,[(!i||f&32)&&{id:o[5]},(!i||f&8)&&{disabled:o[3]},{type:"button"},(!i||f&8&&m!==(m=!o[3]))&&{"aria-haspopup":m},(!i||f&2)&&{"aria-controls":o[1]},(!i||f&8192)&&{"aria-expanded":o[13]},(!i||f&64)&&{"aria-label":o[6]},(!i||f&1025&&r!==(r="menu-button "+o[10]+" "+o[0]))&&{class:r},f&262144&&o[18]])),I(e,"unroundLeft",o[9]),I(e,"unroundRight",o[8]),I(e,"active",o[11]),I(e,"unround",o[7]),I(e,"round",o[12]),I(e,"svelte-etc7wv",!0)},i(o){i||(M(h,o),M(C,o),M(b),M(E,o),M(L),i=!0)},o(o){D(h,o),D(C,o),D(b),D(E,o),D(L),i=!1},d(o){o&&p(e),h&&h.d(o),C&&C.d(o),b&&b.d(),E&&E.d(o),L&&L.d(),d=!1,oe(v)}}}function it(t,e,n){const l=["class","controls","count","disabled","hasIndicator","id","label","unround","unroundRight","unroundLeft","variant","active","round"];let s=W(e,l),a,_,{$$slots:m={},$$scope:r}=e;const i=Ve(m);let{class:d=""}=e,{controls:v}=e,{count:u=0}=e,{disabled:h=!1}=e,{hasIndicator:q=!1}=e,{id:C=null}=e,{label:b=null}=e,{unround:T=!1}=e,{unroundRight:E=!1}=e,{unroundLeft:L=!1}=e,{variant:O="secondary"}=e,{active:N=!1}=e,{round:o=!1}=e;const f=re(),{open:g,menuElement:c}=fe(se);Y(t,g,k=>n(13,_=k)),Y(t,c,k=>n(22,a=k));const A=()=>{g.update(k=>{let ie=k;return h||(ie=!k),f("click",{open:ie}),ie})},V=k=>{switch(k.key){case"Escape":J(g,_=!1,_);break;case"ArrowDown":k.preventDefault(),_?Ne():J(g,_=!0,_);break}},Ne=()=>{const k=Array.from(a.querySelectorAll(ue));k&&k[0]&&requestAnimationFrame(()=>k[0].focus())};return t.$$set=k=>{e=S(S({},e),ne(k)),n(18,s=W(e,l)),"class"in k&&n(0,d=k.class),"controls"in k&&n(1,v=k.controls),"count"in k&&n(2,u=k.count),"disabled"in k&&n(3,h=k.disabled),"hasIndicator"in k&&n(4,q=k.hasIndicator),"id"in k&&n(5,C=k.id),"label"in k&&n(6,b=k.label),"unround"in k&&n(7,T=k.unround),"unroundRight"in k&&n(8,E=k.unroundRight),"unroundLeft"in k&&n(9,L=k.unroundLeft),"variant"in k&&n(10,O=k.variant),"active"in k&&n(11,N=k.active),"round"in k&&n(12,o=k.round),"$$scope"in k&&n(21,r=k.$$scope)},[d,v,u,h,q,C,b,T,E,L,O,N,o,_,g,c,A,V,s,i,m,r]}class ht extends ee{constructor(e){super(),te(this,e,it,st,le,{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 qe=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=qe(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 r=t[14].default,i=K(r,t,t[13],null);let d=[{role:"menu"},{class:n="menu "+t[3]+" "+t[4]+" "+t[1]},{"aria-labelledby":t[2]},{tabindex:l=-1},{id:t[2]},t[10]],v={};for(let u=0;u{s=Be(e,ze,{duration:100}),s.start()}),a=!0)},o(u){D(i,u),a=!1},d(u){u&&p(e),i&&i.d(u),t[15](null),_=!1,m()}}}function ut(t,e,n){let l,s;const a=["class","id","keepOpen","position","theme","menuElement"];let _=W(e,a),m,r,i,{$$slots:d={},$$scope:v}=e,{class:u=""}=e,{id:h}=e,{keepOpen:q=!1}=e,{position:C="left"}=e,{theme:b="light"}=e,{menuElement:T=null}=e;const{keepOpen:E,menuElement:L,open:O}=fe(se);Y(t,E,f=>n(17,r=f)),Y(t,L,f=>n(18,i=f)),Y(t,O,f=>n(5,m=f));const N=f=>{!r&&f.target===s&&J(O,m=!1,m)};function o(f){je[f?"unshift":"push"](()=>{T=f,n(0,T)})}return t.$$set=f=>{e=S(S({},e),ne(f)),n(10,_=W(e,a)),"class"in f&&n(1,u=f.class),"id"in f&&n(2,h=f.id),"keepOpen"in f&&n(11,q=f.keepOpen),"position"in f&&n(3,C=f.position),"theme"in f&&n(4,b=f.theme),"menuElement"in f&&n(0,T=f.menuElement),"$$scope"in f&&n(13,v=f.$$scope)},t.$$.update=()=>{t.$$.dirty&2048&&J(E,r=q,r),t.$$.dirty&1&&J(L,i=T,i),t.$$.dirty&1&&n(12,l=T?qe(T):[]),t.$$.dirty&4096&&(s=l[l.length-1])},[T,u,h,C,b,m,E,L,O,N,_,q,l,v,d,o]}class gt extends ee{constructor(e){super(),te(this,e,ut,at,le,{class:1,id:2,keepOpen:11,position:3,theme:4,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.cb157ac8.js b/ui/assets/local/_app/immutable/chunks/modal.2dc225aa.js similarity index 97% rename from ui/assets/local/_app/immutable/chunks/modal.cb157ac8.js rename to ui/assets/local/_app/immutable/chunks/modal.2dc225aa.js index a07cdfdfdc..4992e4cec4 100644 --- a/ui/assets/local/_app/immutable/chunks/modal.cb157ac8.js +++ b/ui/assets/local/_app/immutable/chunks/modal.2dc225aa.js @@ -1 +1 @@ -import{S as be,b as ve,a as Te,G as ae,O 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,Q as I,P as ie,f as x,L as T,E as $,M 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,N as Ee,U as ce,A as Ne}from"./index.0942deb7.js";import{B as he}from"./button.c09134bf.js";import{f as Ie}from"./menu.55d17299.js";import{I as ye}from"./icon-button.cdadbc6c.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,O 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,Q as I,P as ie,f as x,L as T,E as $,M 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,N as Ee,U as ce,A as Ne}from"./index.0942deb7.js";import{B as he}from"./button.72eef818.js";import{f as Ie}from"./menu.1cf8fd74.js";import{I as ye}from"./icon-button.cdadbc6c.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.7a177dbb.js b/ui/assets/local/_app/immutable/chunks/namespaces-service.7a177dbb.js deleted file mode 100644 index 00a913170b..0000000000 --- a/ui/assets/local/_app/immutable/chunks/namespaces-service.7a177dbb.js +++ /dev/null @@ -1 +0,0 @@ -import{n as c}from"./namespaces.5c0c98b2.js";import{t as p}from"./toaster.60da8f1b.js";import{p as u}from"./paginated.2d0a4e32.js";import{r as f,a as i}from"./route-for-api.f2500de4.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-service.db387b71.js b/ui/assets/local/_app/immutable/chunks/namespaces-service.db387b71.js new file mode 100644 index 0000000000..2011345da6 --- /dev/null +++ b/ui/assets/local/_app/immutable/chunks/namespaces-service.db387b71.js @@ -0,0 +1 @@ +import{n as i}from"./namespaces.68caf21c.js";import{t as f}from"./toaster.cfecd6c1.js";import{p as u}from"./paginated.b6fcdb03.js";import{r as p,a as h}from"./route-for-api.4c8e7aa5.js";import{t as m,a as y}from"./screaming-enums.7a4380bd.js";const v={namespaces:[]},l=a=>{var e;return a.config&&(a.config.historyArchivalState=m(a.config.historyArchivalState),a.config.visibilityArchivalState=m(a.config.visibilityArchivalState)),a.namespaceInfo&&(a.namespaceInfo.state=y((e=a.namespaceInfo)==null?void 0:e.state)),a};async function I(a,e=fetch){const{showTemporalSystemNamespace:n,runtimeEnvironment:s}=a;if(s.isCloud){i.set([]);return}try{const o=p("namespaces"),t=await u(async c=>h(o,{request:e,token:c,onError:()=>f.push({variant:"error",message:"Unable to fetch namespaces"})})),r=((t==null?void 0:t.namespaces)??[]).filter(c=>n||c.namespaceInfo.name!=="temporal-system").map(l);i.set(r)}catch{i.set([])}}async function g(a,e,n=fetch){var r;const[s]=v.namespaces;if((r=e==null?void 0:e.runtimeEnvironment)!=null&&r.isCloud)return s;const o=p("namespace",{namespace:a}),t=await h(o,{request:n,onError:()=>f.push({variant:"error",message:"Unable to fetch namespaces"})});return t?l(t):s}export{g as a,I as f}; diff --git a/ui/assets/local/_app/immutable/chunks/namespaces.5c0c98b2.js b/ui/assets/local/_app/immutable/chunks/namespaces.5c0c98b2.js deleted file mode 100644 index d8ddf677cd..0000000000 --- a/ui/assets/local/_app/immutable/chunks/namespaces.5c0c98b2.js +++ /dev/null @@ -1 +0,0 @@ -import{w as s}from"./singletons.0a6e865f.js";import{p as a}from"./persist-store.dd882958.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.68caf21c.js b/ui/assets/local/_app/immutable/chunks/namespaces.68caf21c.js new file mode 100644 index 0000000000..0452d5c0f8 --- /dev/null +++ b/ui/assets/local/_app/immutable/chunks/namespaces.68caf21c.js @@ -0,0 +1 @@ +import{w as s}from"./singletons.d67f4e6b.js";import{p as a}from"./persist-store.3ea3c364.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.83f47780.js b/ui/assets/local/_app/immutable/chunks/navigation.83f47780.js deleted file mode 100644 index ed7d515b37..0000000000 --- a/ui/assets/local/_app/immutable/chunks/navigation.83f47780.js +++ /dev/null @@ -1 +0,0 @@ -import{h as t}from"./singletons.0a6e865f.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.dde0d4fa.js b/ui/assets/local/_app/immutable/chunks/navigation.dde0d4fa.js new file mode 100644 index 0000000000..c37834921b --- /dev/null +++ b/ui/assets/local/_app/immutable/chunks/navigation.dde0d4fa.js @@ -0,0 +1 @@ +import{h as t}from"./singletons.d67f4e6b.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.915b4554.js b/ui/assets/local/_app/immutable/chunks/option.d4e4d556.js similarity index 98% rename from ui/assets/local/_app/immutable/chunks/option.915b4554.js rename to ui/assets/local/_app/immutable/chunks/option.d4e4d556.js index c25f3460ac..9c0591d438 100644 --- a/ui/assets/local/_app/immutable/chunks/option.915b4554.js +++ b/ui/assets/local/_app/immutable/chunks/option.d4e4d556.js @@ -1 +1 @@ -import{S as te,b as le,a as ne,C as E,D as L,E as I,j as _,g as b,F as M,T as X,K as N,ae as ce,o as ae,a5 as z,O 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 Y,Q as k,f as C,L as _e,y as be,n as he,e as Z,P 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,N as ke,a6 as Ee,A as Le}from"./index.0942deb7.js";import"./badge.5c29cec8.js";import{I as oe}from"./icon.33308831.js";import{M as Ie,a as Me,b as De,d as Se}from"./menu.55d17299.js";import{w as H}from"./singletons.0a6e865f.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){I(e,t,l),a=!0},i(t){a||(_(e.$$.fragment,t),a=!0)},o(t){b(e.$$.fragment,t),a=!1},d(t){M(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){I(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){M(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 Me({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(){Y(e,"for",n[3]),k(e,"sr-only",n[2])},m(o,u){C(o,e,u),_e(e,a),C(o,t,u),I(l,o,u),C(o,s,u),I(r,o,u),f=!0},p(o,u){(!f||u&2)&&be(a,o[1]),(!f||u&8)&&Y(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),M(l,o),o&&p(s),M(r,o)}}}function Pe(n){let e,a;return e=new Ie({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){I(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){M(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=X(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 Q=r.find(fe=>fe.value===i);if(Q!==void 0)return Q.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=X(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){I(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){M(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 I,j as _,g as b,F as M,T as X,K as N,ae as ce,o as ae,a5 as z,O 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 Y,Q as k,f as C,L as _e,y as be,n as he,e as Z,P 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,N as ke,a6 as Ee,A as Le}from"./index.0942deb7.js";import"./badge.5c29cec8.js";import{I as oe}from"./icon.33308831.js";import{M as Ie,a as Me,b as De,d as Se}from"./menu.1cf8fd74.js";import{w as H}from"./singletons.d67f4e6b.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){I(e,t,l),a=!0},i(t){a||(_(e.$$.fragment,t),a=!0)},o(t){b(e.$$.fragment,t),a=!1},d(t){M(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){I(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){M(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 Me({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(){Y(e,"for",n[3]),k(e,"sr-only",n[2])},m(o,u){C(o,e,u),_e(e,a),C(o,t,u),I(l,o,u),C(o,s,u),I(r,o,u),f=!0},p(o,u){(!f||u&2)&&be(a,o[1]),(!f||u&8)&&Y(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),M(l,o),o&&p(s),M(r,o)}}}function Pe(n){let e,a;return e=new Ie({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){I(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){M(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=X(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 Q=r.find(fe=>fe.value===i);if(Q!==void 0)return Q.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=X(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){I(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){M(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.2d0a4e32.js b/ui/assets/local/_app/immutable/chunks/paginated.b6fcdb03.js similarity index 78% rename from ui/assets/local/_app/immutable/chunks/paginated.2d0a4e32.js rename to ui/assets/local/_app/immutable/chunks/paginated.b6fcdb03.js index 35c19a15e6..f768e79d62 100644 --- a/ui/assets/local/_app/immutable/chunks/paginated.2d0a4e32.js +++ b/ui/assets/local/_app/immutable/chunks/paginated.b6fcdb03.js @@ -1 +1 @@ -import{h as g}from"./route-for-api.f2500de4.js";import{i as c}from"./persist-store.dd882958.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.4c8e7aa5.js";import{i as c}from"./persist-store.3ea3c364.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.a81dd55b.js b/ui/assets/local/_app/immutable/chunks/pagination.057da68c.js similarity index 98% rename from ui/assets/local/_app/immutable/chunks/pagination.a81dd55b.js rename to ui/assets/local/_app/immutable/chunks/pagination.057da68c.js index 8d24aaabca..b7ff28cc2b 100644 --- a/ui/assets/local/_app/immutable/chunks/pagination.a81dd55b.js +++ b/ui/assets/local/_app/immutable/chunks/pagination.057da68c.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,Q as ae,Y as Ge,f as Y,L as p,am as ut,M 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,O 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.0942deb7.js";import{p as vt}from"./stores.73c3690d.js";import{p as gt,a as he,M as Xe,o as Ue,d as pt,b as It,F as it}from"./pagination.a85cd038.js";import{S as nt}from"./index.f0c1b3d6.js";import{u as Ve}from"./update-query-parameters.6de0b7d2.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}),Ye=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}),Ze=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){Y(i,s,f),Y(i,a,f),Y(i,o,f),Y(i,I,f),Y(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 j=S(s);a=A(j,"SPAN",{class:!0}),S(a).forEach(g),j.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){Y(_,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 j=u;u=L(_),u===j?K[u].p(_,v):(Ae(),E(K[j],1,1,()=>{K[j]=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){Y(i,s,f),Y(i,a,f),Y(i,o,f),Y(i,I,f),Y(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 jt(e){let t,s,a,n,o,I,u,m,i,f,J,z,B,N,ee,R,K,L,_,v,j,$,Q,T,D,se,V,X,Z,_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"],M=ie(ze,e,e[24],xe),je=e[25].default,W=ie(je,e,e[24],ye),Te=e[25]["action-bottom-left"],C=ie(Te,e,e[24],Ze);let P=!e[0]&&at(e);const Fe=[zt,Kt],te=[];function Oe(l,r){return l[1]?0:1}T=Oe(e),D=te[T]=Fe[T](e);const De=e[25]["action-bottom-right"],H=ie(De,e,e[24],Ye);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(),M&&M.c(),z=q(),W&&W.c(),B=q(),N=k("nav"),C&&C.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"),X=k("span"),_e=q(),H&&H.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 Me=S(a);U&&U.l(Me),Me.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),M&&M.l(be),be.forEach(g),le.forEach(g),z=G(r),W&&W.l(r),B=G(r),N=A(r,"NAV",{class:!0,"aria-label":!0});var ke=S(N);C&&C.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 We=S(_);v=A(We,"SPAN",{class:!0}),S(v).forEach(g),We.forEach(g),$=G(ve),Q=A(ve,"P",{});var Ce=S(Q);D.l(Ce),Ce.forEach(g),se=G(ve),V=A(ve,"BUTTON",{class:!0,"aria-label":!0});var He=S(V);X=A(He,"SPAN",{class:!0}),S(X).forEach(g),He.forEach(g),ve.forEach(g),_e=G(de),H&&H.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:justify-start"),d(v,"class","arrow arrow-left svelte-1780ds3"),ae(v,"arrow-left-disabled",!e[9].hasPrevious),d(_,"class","caret svelte-1780ds3"),_.disabled=j=!e[9].hasPrevious,d(_,"aria-label",e[3]),d(X,"class","arrow arrow-right svelte-1780ds3"),ae(X,"arrow-right-disabled",!e[9].hasNext),d(V,"class","caret svelte-1780ds3"),V.disabled=Z=!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){Y(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),M&&M.m(o,null),J=ut(o,e[29].bind(o)),p(t,z),W&&W.m(t,null),p(t,B),p(t,N),C&&C.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[T].m(Q,null),p(L,se),p(L,V),p(V,X),p(R,_e),H&&H.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]),M&&M.p&&(!b||r[0]&16777856)&&ne(M,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),W&&W.p&&(!b||r[0]&16777856)&&ne(W,je,l,l[24],b?re(je,l[24],r,Rt):oe(l[24]),ye),C&&C.p&&(!b||r[0]&16777856)&&ne(C,Te,l,l[24],b?re(Te,l[24],r,Pt):oe(l[24]),Ze),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&&j!==(j=!l[9].hasPrevious))&&(_.disabled=j),(!b||r[0]&8)&&d(_,"aria-label",l[3]);let le=T;T=Oe(l),T===le?te[T].p(l,r):(Ae(),E(te[le],1,1,()=>{te[le]=null}),Se(),D=te[T],D?D.p(l,r):(D=te[T]=Fe[T](l),D.c()),h(D,1),D.m(Q,null)),(!b||r[0]&512)&&ae(X,"arrow-right-disabled",!l[9].hasNext),(!b||r[0]&512&&Z!==(Z=!l[9].hasNext))&&(V.disabled=Z),(!b||r[0]&16)&&d(V,"aria-label",l[4]),H&&H.p&&(!b||r[0]&16777856)&&ne(H,De,l,l[24],b?re(De,l[24],r,wt):oe(l[24]),Ye),(!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(M,l),h(W,l),h(C,l),h(P),h(D),h(H,l),b=!0)},o(l){E(U,l),E(F,l),E(w),E(O,l),E(M,l),E(W,l),E(C,l),E(P),E(D),E(H,l),b=!1},d(l){l&&g(t),U&&U.d(l),F&&F.d(l),w&&w.d(),O&&O.d(l),M&&M.d(l),J(),W&&W.d(l),C&&C.d(l),P&&P.d(),te[T].d(),H&&H.d(l),pe=!1,st(we)}}}function Tt(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:j=null}=t,{updating:$=!1}=t,{pageSizeSelectLabel:Q}=t,{previousButtonLabel:T}=t,{nextButtonLabel:D}=t,se,V,X;mt(()=>{_e(),Number(_)>0&&Z()});const Z=()=>{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(),Z());break;case"ArrowLeft":case"KeyH":i.hasPrevious&&(n.previous(),Z());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(),Z()},pe=()=>{n.next(),Z()};function we(){X=this.clientHeight,s(6,X)}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,j=c.itemsPerPage),"updating"in c&&s(1,$=c.updating),"pageSizeSelectLabel"in c&&s(2,Q=c.pageSizeSelectLabel),"previousButtonLabel"in c&&s(3,T=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=j!==null?String(j):String(gt(z.url.searchParams.get(he))).toString()),e.$$.dirty[0]&8388864&&(parseInt(a,10)>parseInt(Xe,10)?Ve({parameter:he,value:Xe,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:X,screenWidth:se}))},[j,$,Q,T,D,se,X,n,a,i,I,Z,_e,ce,m,ee,K,L,_,v,R,V,o,z,N,B,me,b,pe,we,Ie,U]}class Mt extends ot{constructor(t){super(),rt(this,t,Tt,jt,ft,{items:16,floatId:17,startingIndex:18,currentPageKey:19,itemsPerPage:0,updating:1,pageSizeSelectLabel:2,previousButtonLabel:3,nextButtonLabel:4},null,[-1,-1])}}export{Mt 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,Q as ae,Y as Ge,f as Y,L as p,am as ut,M 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,O 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.0942deb7.js";import{p as vt}from"./stores.255470ec.js";import{p as gt,a as he,M as Xe,o as Ue,d as pt,b as It,F as it}from"./pagination.c124cb03.js";import{S as nt}from"./index.f0c1b3d6.js";import{u as Ve}from"./update-query-parameters.5fc30b68.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}),Ye=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}),Ze=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){Y(i,s,f),Y(i,a,f),Y(i,o,f),Y(i,I,f),Y(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 j=S(s);a=A(j,"SPAN",{class:!0}),S(a).forEach(g),j.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){Y(_,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 j=u;u=L(_),u===j?K[u].p(_,v):(Ae(),E(K[j],1,1,()=>{K[j]=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){Y(i,s,f),Y(i,a,f),Y(i,o,f),Y(i,I,f),Y(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 jt(e){let t,s,a,n,o,I,u,m,i,f,J,z,B,N,ee,R,K,L,_,v,j,$,Q,T,D,se,V,X,Z,_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"],M=ie(ze,e,e[24],xe),je=e[25].default,W=ie(je,e,e[24],ye),Te=e[25]["action-bottom-left"],C=ie(Te,e,e[24],Ze);let P=!e[0]&&at(e);const Fe=[zt,Kt],te=[];function Oe(l,r){return l[1]?0:1}T=Oe(e),D=te[T]=Fe[T](e);const De=e[25]["action-bottom-right"],H=ie(De,e,e[24],Ye);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(),M&&M.c(),z=q(),W&&W.c(),B=q(),N=k("nav"),C&&C.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"),X=k("span"),_e=q(),H&&H.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 Me=S(a);U&&U.l(Me),Me.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),M&&M.l(be),be.forEach(g),le.forEach(g),z=G(r),W&&W.l(r),B=G(r),N=A(r,"NAV",{class:!0,"aria-label":!0});var ke=S(N);C&&C.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 We=S(_);v=A(We,"SPAN",{class:!0}),S(v).forEach(g),We.forEach(g),$=G(ve),Q=A(ve,"P",{});var Ce=S(Q);D.l(Ce),Ce.forEach(g),se=G(ve),V=A(ve,"BUTTON",{class:!0,"aria-label":!0});var He=S(V);X=A(He,"SPAN",{class:!0}),S(X).forEach(g),He.forEach(g),ve.forEach(g),_e=G(de),H&&H.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:justify-start"),d(v,"class","arrow arrow-left svelte-1780ds3"),ae(v,"arrow-left-disabled",!e[9].hasPrevious),d(_,"class","caret svelte-1780ds3"),_.disabled=j=!e[9].hasPrevious,d(_,"aria-label",e[3]),d(X,"class","arrow arrow-right svelte-1780ds3"),ae(X,"arrow-right-disabled",!e[9].hasNext),d(V,"class","caret svelte-1780ds3"),V.disabled=Z=!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){Y(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),M&&M.m(o,null),J=ut(o,e[29].bind(o)),p(t,z),W&&W.m(t,null),p(t,B),p(t,N),C&&C.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[T].m(Q,null),p(L,se),p(L,V),p(V,X),p(R,_e),H&&H.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]),M&&M.p&&(!b||r[0]&16777856)&&ne(M,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),W&&W.p&&(!b||r[0]&16777856)&&ne(W,je,l,l[24],b?re(je,l[24],r,Rt):oe(l[24]),ye),C&&C.p&&(!b||r[0]&16777856)&&ne(C,Te,l,l[24],b?re(Te,l[24],r,Pt):oe(l[24]),Ze),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&&j!==(j=!l[9].hasPrevious))&&(_.disabled=j),(!b||r[0]&8)&&d(_,"aria-label",l[3]);let le=T;T=Oe(l),T===le?te[T].p(l,r):(Ae(),E(te[le],1,1,()=>{te[le]=null}),Se(),D=te[T],D?D.p(l,r):(D=te[T]=Fe[T](l),D.c()),h(D,1),D.m(Q,null)),(!b||r[0]&512)&&ae(X,"arrow-right-disabled",!l[9].hasNext),(!b||r[0]&512&&Z!==(Z=!l[9].hasNext))&&(V.disabled=Z),(!b||r[0]&16)&&d(V,"aria-label",l[4]),H&&H.p&&(!b||r[0]&16777856)&&ne(H,De,l,l[24],b?re(De,l[24],r,wt):oe(l[24]),Ye),(!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(M,l),h(W,l),h(C,l),h(P),h(D),h(H,l),b=!0)},o(l){E(U,l),E(F,l),E(w),E(O,l),E(M,l),E(W,l),E(C,l),E(P),E(D),E(H,l),b=!1},d(l){l&&g(t),U&&U.d(l),F&&F.d(l),w&&w.d(),O&&O.d(l),M&&M.d(l),J(),W&&W.d(l),C&&C.d(l),P&&P.d(),te[T].d(),H&&H.d(l),pe=!1,st(we)}}}function Tt(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:j=null}=t,{updating:$=!1}=t,{pageSizeSelectLabel:Q}=t,{previousButtonLabel:T}=t,{nextButtonLabel:D}=t,se,V,X;mt(()=>{_e(),Number(_)>0&&Z()});const Z=()=>{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(),Z());break;case"ArrowLeft":case"KeyH":i.hasPrevious&&(n.previous(),Z());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(),Z()},pe=()=>{n.next(),Z()};function we(){X=this.clientHeight,s(6,X)}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,j=c.itemsPerPage),"updating"in c&&s(1,$=c.updating),"pageSizeSelectLabel"in c&&s(2,Q=c.pageSizeSelectLabel),"previousButtonLabel"in c&&s(3,T=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=j!==null?String(j):String(gt(z.url.searchParams.get(he))).toString()),e.$$.dirty[0]&8388864&&(parseInt(a,10)>parseInt(Xe,10)?Ve({parameter:he,value:Xe,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:X,screenWidth:se}))},[j,$,Q,T,D,se,X,n,a,i,I,Z,_e,ce,m,ee,K,L,_,v,R,V,o,z,N,B,me,b,pe,we,Ie,U]}class Mt extends ot{constructor(t){super(),rt(this,t,Tt,jt,ft,{items:16,floatId:17,startingIndex:18,currentPageKey:19,itemsPerPage:0,updating:1,pageSizeSelectLabel:2,previousButtonLabel:3,nextButtonLabel:4},null,[-1,-1])}}export{Mt as P}; diff --git a/ui/assets/local/_app/immutable/chunks/pagination.a85cd038.js b/ui/assets/local/_app/immutable/chunks/pagination.c124cb03.js similarity index 94% rename from ui/assets/local/_app/immutable/chunks/pagination.a85cd038.js rename to ui/assets/local/_app/immutable/chunks/pagination.c124cb03.js index 8049e2b2f1..20a4331e31 100644 --- a/ui/assets/local/_app/immutable/chunks/pagination.a85cd038.js +++ b/ui/assets/local/_app/immutable/chunks/pagination.c124cb03.js @@ -1 +1 @@ -import{S as Q,b as U,a as Z,O as C,A as L,a0 as W,C as w,D as x,E as y,R as Y,X as P,a1 as $,j as p,g as v,F as z,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.0942deb7.js";import{p as ie}from"./stores.73c3690d.js";import{u as fe}from"./update-query-parameters.6de0b7d2.js";import{S as _e,a as ge}from"./simple-select.4e19902f.js";import{j as he,w as j}from"./singletons.0a6e865f.js";function G(t,e,a){const s=t.slice();return s[14]=e[a],s}function O(t){let e,a;return e=new ge({props:{value:t[14]}}),{c(){w(e.$$.fragment)},l(s){x(e.$$.fragment,s)},m(s,n){y(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){z(e,s)}}}function me(t){let e,a,s=t[0].map(V),n=[];for(let o=0;ov(n[o],1,1,()=>{n[o]=null});return{c(){for(let o=0;oW(e,"value",l)),e.$on("change",t[3]),{c(){w(e.$$.fragment)},l(r){x(e.$$.fragment,r)},m(r,u){y(e,r,u),s=!0},p(r,[u]){const g=u&20?Y(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){z(e,r)}}}const V=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 Q{constructor(e){super(),U(this,e,be,pe,Z,{label:6,value:5,options:0,parameter:7,position:8})}}const I=100,X=["100","250","500"],Ae="per-page",Ce="page",Ee=X[X.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]:[],D=(t,e,a)=>{if(isNaN(t)||t<=1)return 0;if(t>H(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 D(s,e,a)},q=(t,e)=>Math.min(t-1,e-1),H=(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=D(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=q(i,_(n));c<=m&&o.set(c)},M=()=>{const c=t.slice(_(l),_(l)+_(n)).length,i=q(c,_(n));_(o)===void 0?o.set(0):_(o){const c=_(o)>=1?_(o)-1:0;o.set(c)},{subscribe:J}=he([l,n,o],([c,i,m])=>{const N=H(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:J,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,X as o,Ie as p}; +import{S as Q,b as U,a as Z,O as C,A as L,a0 as W,C as w,D as x,E as y,R as Y,X as P,a1 as $,j as p,g as v,F as z,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.0942deb7.js";import{p as ie}from"./stores.255470ec.js";import{u as fe}from"./update-query-parameters.5fc30b68.js";import{S as _e,a as ge}from"./simple-select.4e19902f.js";import{j as he,w as j}from"./singletons.d67f4e6b.js";function G(t,e,a){const s=t.slice();return s[14]=e[a],s}function O(t){let e,a;return e=new ge({props:{value:t[14]}}),{c(){w(e.$$.fragment)},l(s){x(e.$$.fragment,s)},m(s,n){y(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){z(e,s)}}}function me(t){let e,a,s=t[0].map(V),n=[];for(let o=0;ov(n[o],1,1,()=>{n[o]=null});return{c(){for(let o=0;oW(e,"value",l)),e.$on("change",t[3]),{c(){w(e.$$.fragment)},l(r){x(e.$$.fragment,r)},m(r,u){y(e,r,u),s=!0},p(r,[u]){const g=u&20?Y(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){z(e,r)}}}const V=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 Q{constructor(e){super(),U(this,e,be,pe,Z,{label:6,value:5,options:0,parameter:7,position:8})}}const I=100,X=["100","250","500"],Ae="per-page",Ce="page",Ee=X[X.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]:[],D=(t,e,a)=>{if(isNaN(t)||t<=1)return 0;if(t>H(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 D(s,e,a)},q=(t,e)=>Math.min(t-1,e-1),H=(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=D(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=q(i,_(n));c<=m&&o.set(c)},M=()=>{const c=t.slice(_(l),_(l)+_(n)).length,i=q(c,_(n));_(o)===void 0?o.set(0):_(o){const c=_(o)>=1?_(o)-1:0;o.set(c)},{subscribe:J}=he([l,n,o],([c,i,m])=>{const N=H(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:J,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,X as o,Ie as p}; diff --git a/ui/assets/local/_app/immutable/chunks/paths.742c8328.js b/ui/assets/local/_app/immutable/chunks/paths.742c8328.js new file mode 100644 index 0000000000..06a154a967 --- /dev/null +++ b/ui/assets/local/_app/immutable/chunks/paths.742c8328.js @@ -0,0 +1 @@ +var s;const e=((s=globalThis.__sveltekit_1gguyf1)==null?void 0:s.base)??"";var a;const t=((a=globalThis.__sveltekit_1gguyf1)==null?void 0:a.assets)??e;export{t as a,e as b}; diff --git a/ui/assets/local/_app/immutable/chunks/paths.7de1f58b.js b/ui/assets/local/_app/immutable/chunks/paths.7de1f58b.js deleted file mode 100644 index 0bebd4e871..0000000000 --- a/ui/assets/local/_app/immutable/chunks/paths.7de1f58b.js +++ /dev/null @@ -1 +0,0 @@ -var s;const e=((s=globalThis.__sveltekit_1mj6p6k)==null?void 0:s.base)??"";var a;const t=((a=globalThis.__sveltekit_1mj6p6k)==null?void 0:a.assets)??e;export{t as a,e as b}; diff --git a/ui/assets/local/_app/immutable/chunks/payload-decoder.31bd549e.js b/ui/assets/local/_app/immutable/chunks/payload-decoder.ec62e968.js similarity index 91% rename from ui/assets/local/_app/immutable/chunks/payload-decoder.31bd549e.js rename to ui/assets/local/_app/immutable/chunks/payload-decoder.ec62e968.js index 3a5369ee0b..09f3bcdb4c 100644 --- a/ui/assets/local/_app/immutable/chunks/payload-decoder.31bd549e.js +++ b/ui/assets/local/_app/immutable/chunks/payload-decoder.ec62e968.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 h,o as j}from"./index.0942deb7.js";import{p as q}from"./stores.73c3690d.js";import{a as w}from"./auth-user.a1d7e47f.js";import{g as B,e as G,f as H,h as J,d as K}from"./decode-payload.3d6f13eb.js";import{s as _}from"./parse-with-big-int.0036a80a.js";const M=t=>({decodedValue:t&1}),k=t=>({decodedValue:t[0]});function z(t){let n;const o=t[9].default,s=I(o,t,t[8],k);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]),k)},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;h(t,w,a=>o(11,m=a)),h(t,q,a=>o(7,c=a));let{$$slots:C={},$$scope:y}=n;var r;let{value:i}=n,{key:l=""}=n,b=l&&(i!=null&&i[l])?i[l]:i,f=_(b);const P=async()=>{try{const a=await J(i,c.params.namespace,g,m.accessToken),u=K(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=B(c.data.settings)),t.$$.dirty&128&&o(5,e=G(c.data.settings)),t.$$.dirty&128&&o(4,d=H(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,C]}class R extends A{constructor(n){super(),V(this,n,D,z,v,{value:1,key:2})}}export{R 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 h,o as j}from"./index.0942deb7.js";import{p as q}from"./stores.255470ec.js";import{a as w}from"./auth-user.6dc931ea.js";import{g as B,e as G,f as H,h as J,d as K}from"./decode-payload.19da7edc.js";import{s as _}from"./parse-with-big-int.0036a80a.js";const M=t=>({decodedValue:t&1}),k=t=>({decodedValue:t[0]});function z(t){let n;const o=t[9].default,s=I(o,t,t[8],k);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]),k)},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;h(t,w,a=>o(11,m=a)),h(t,q,a=>o(7,c=a));let{$$slots:C={},$$scope:y}=n;var r;let{value:i}=n,{key:l=""}=n,b=l&&(i!=null&&i[l])?i[l]:i,f=_(b);const P=async()=>{try{const a=await J(i,c.params.namespace,g,m.accessToken),u=K(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=B(c.data.settings)),t.$$.dirty&128&&o(5,e=G(c.data.settings)),t.$$.dirty&128&&o(4,d=H(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,C]}class R extends A{constructor(n){super(),V(this,n,D,z,v,{value:1,key:2})}}export{R as P}; diff --git a/ui/assets/local/_app/immutable/chunks/persist-store.dd882958.js b/ui/assets/local/_app/immutable/chunks/persist-store.3ea3c364.js similarity index 93% rename from ui/assets/local/_app/immutable/chunks/persist-store.dd882958.js rename to ui/assets/local/_app/immutable/chunks/persist-store.3ea3c364.js index 43b8279633..46af75e1b4 100644 --- a/ui/assets/local/_app/immutable/chunks/persist-store.dd882958.js +++ b/ui/assets/local/_app/immutable/chunks/persist-store.3ea3c364.js @@ -1 +1 @@ -import{w as I}from"./singletons.0a6e865f.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.d67f4e6b.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.351badff.js b/ui/assets/local/_app/immutable/chunks/pollers-service.351badff.js new file mode 100644 index 0000000000..6cf0334cf3 --- /dev/null +++ b/ui/assets/local/_app/immutable/chunks/pollers-service.351badff.js @@ -0,0 +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 Q,f as T,z as H,g as m,h as J,j as d,C as P,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 E,d as S,Q as h,H as C,I as F,J as L}from"./index.0942deb7.js";import{I as Y}from"./icon.33308831.js";import{t as b}from"./translate.135d909a.js";import{r as w,a as k}from"./route-for-api.4c8e7aa5.js";const U=r=>({}),V=r=>({}),q=r=>({}),O=r=>({});function M(r){let e,a,t,o;return a=new Y({props:{name:"merge"}}),{c(){e=y("span"),P(a.$$.fragment),t=W(r[2]),this.h()},l(i){e=v(i,"SPAN",{class:!0});var n=I(e);R(a.$$.fragment,n),t=B(n,r[2]),n.forEach(p),this.h()},h(){Q(e,"class","version svelte-1b9fh62")},m(i,n){T(i,e,n),D(a,e,null),g(e,t),o=!0},p(i,n){(!o||n&4)&&K(t,i[2])},i(i){o||(d(a.$$.fragment,i),o=!0)},o(i){m(a.$$.fragment,i),o=!1},d(i){i&&p(e),N(a)}}}function X(r){let e,a,t,o,i,n;a=new Y({props:{name:"merge"}});const _=r[4]["overall-default-worker"],s=A(_,r,r[3],O),c=r[4]["default-worker"],u=A(c,r,r[3],V);return{c(){e=y("span"),P(a.$$.fragment),t=W(r[2]),o=E(),s&&s.c(),i=E(),u&&u.c(),this.h()},l(l){e=v(l,"SPAN",{class:!0});var f=I(e);R(a.$$.fragment,f),t=B(f,r[2]),o=S(f),s&&s.l(f),i=S(f),u&&u.l(f),f.forEach(p),this.h()},h(){Q(e,"class","svelte-1b9fh62"),h(e,"active-version",r[1]),h(e,"version",!r[1])},m(l,f){T(l,e,f),D(a,e,null),g(e,t),g(e,o),s&&s.m(e,null),g(e,i),u&&u.m(e,null),n=!0},p(l,f){(!n||f&4)&&K(t,l[2]),s&&s.p&&(!n||f&8)&&C(s,_,l,l[3],n?L(_,l[3],f,q):F(l[3]),O),u&&u.p&&(!n||f&8)&&C(u,c,l,l[3],n?L(c,l[3],f,U):F(l[3]),V),(!n||f&2)&&h(e,"active-version",l[1]),(!n||f&2)&&h(e,"version",!l[1])},i(l){n||(d(a.$$.fragment,l),d(s,l),d(u,l),n=!0)},o(l){m(a.$$.fragment,l),m(s,l),m(u,l),n=!1},d(l){l&&p(e),N(a),s&&s.d(l),u&&u.d(l)}}}function Z(r){let e,a,t,o;const i=[X,M],n=[];function _(s,c){return s[0]&&s[2]?0:s[2]?1:-1}return~(a=_(r))&&(t=n[a]=i[a](r)),{c(){e=y("p"),t&&t.c(),this.h()},l(s){e=v(s,"P",{class:!0});var c=I(e);t&&t.l(c),c.forEach(p),this.h()},h(){Q(e,"class","flex select-all gap-2 font-mono")},m(s,c){T(s,e,c),~a&&n[a].m(e,null),o=!0},p(s,[c]){let u=a;a=_(s),a===u?~a&&n[a].p(s,c):(t&&(H(),m(n[u],1,1,()=>{n[u]=null}),J()),~a?(t=n[a],t?t.p(s,c):(t=n[a]=i[a](s),t.c()),d(t,1),t.m(e,null)):t=null)},i(s){o||(d(t),o=!0)},o(s){m(t),o=!1},d(s){s&&p(e),~a&&n[a].d()}}}function $(r,e,a){let{$$slots:t={},$$scope:o}=e,{defaultVersion:i=!1}=e,{active:n=!1}=e,{buildId:_=""}=e;return r.$$set=s=>{"defaultVersion"in s&&a(0,i=s.defaultVersion),"active"in s&&a(1,n=s.active),"buildId"in s&&a(2,_=s.buildId),"$$scope"in s&&a(3,o=s.$$scope)},[i,n,_,o,t]}class ne extends j{constructor(e){super(),z(this,e,$,Z,G,{defaultVersion:0,active:1,buildId:2})}}async function re(r,e=fetch){var s;const a=w("task-queue",r),t=await k(a,{request:e,params:{taskQueueType:"1"}}),o=await k(a,{request:e,params:{taskQueueType:"2"}});t!=null&&t.pollers||(t.pollers=[]),o!=null&&o.pollers||(o.pollers=[]),o.pollers.forEach(c=>{c.taskQueueTypes=["ACTIVITY"]}),t.pollers.forEach(c=>{c.taskQueueTypes=["WORKFLOW"]});const i=c=>(u,l)=>{const f=u[l.identity]||{lastAccessTime:void 0,taskQueueTypes:[]};return u[l.identity]={lastAccessTime:!f.lastAccessTime||f.lastAccessTimet.pollers.some(u=>{if(c.identity===u.identity)return c.taskQueueTypes=[...u.taskQueueTypes,...c.taskQueueTypes],c})),(s=o.pollers)==null||s.reduce(i("ACTIVITY"),t.pollers.reduce(i("WORKFLOW"),{}));const n=o.pollers.length?o.pollers:t.pollers,_=o.pollers.length?o.taskQueueStatus:t.taskQueueStatus;return{pollers:n,taskQueueStatus:_}}async function oe(r,e=fetch){const a=w("task-queue.compatibility",r);return k(a,{request:e,onError:t=>console.error(t)})}async function le(r,e=fetch){const{namespace:a,buildIds:t,taskQueue:o}=r,i=w("worker-task-reachability",{namespace:a}),n=new URLSearchParams;if(t.length)for(const _ of t)n.append("buildIds",_);else n.append("buildIds",""),n.append("taskQueues",o);return await k(i,{request:e,params:n,onError:_=>(console.error(_),{buildIdReachability:[]})})}function x(r){return!r||!r.length?b("workers.ready-to-be-retired"):r.length===1&&r.includes("CLOSED")?b("common.maybe"):b("common.no")}function ie(r,e,a){var n,_;const t=(n=r==null?void 0:r.buildIdReachability)==null?void 0:n.find(s=>s.buildId===a);if(!t)return"";const o=(_=t==null?void 0:t.taskQueueReachability)==null?void 0:_.find(s=>(s==null?void 0:s.taskQueue)===e);if(!o)return"";const i=o==null?void 0:o.reachability;return x(i)}export{ne as C,oe as a,le as b,ie as c,re as g}; diff --git a/ui/assets/local/_app/immutable/chunks/pollers-service.b55a2a09.js b/ui/assets/local/_app/immutable/chunks/pollers-service.b55a2a09.js deleted file mode 100644 index 3ba6d9ba91..0000000000 --- a/ui/assets/local/_app/immutable/chunks/pollers-service.b55a2a09.js +++ /dev/null @@ -1 +0,0 @@ -import{S as j,b as z,a as G,m as y,p as v,q as I,k as p,u as Q,f as T,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 E,d as P,Q as h,H as S,I as C,J as F}from"./index.0942deb7.js";import{I as Y}from"./icon.33308831.js";import{t as b}from"./translate.135d909a.js";import{r as w,a as k}from"./route-for-api.f2500de4.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(){Q(t,"class","version svelte-1b9fh62")},m(i,n){T(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=E(),e&&e.c(),i=E(),u&&u.c(),this.h()},l(l){t=v(l,"SPAN",{class:!0});var _=I(t);R(s.$$.fragment,_),a=B(_,o[2]),r=P(_),e&&e.l(_),i=P(_),u&&u.l(_),_.forEach(p),this.h()},h(){Q(t,"class","svelte-1b9fh62"),h(t,"active-version",o[1]),h(t,"version",!o[1])},m(l,_){T(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(){Q(t,"class","flex select-all gap-2 font-mono")},m(e,c){T(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=w("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=w("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=w("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.7b844b9a.js b/ui/assets/local/_app/immutable/chunks/query-service.7b844b9a.js new file mode 100644 index 0000000000..c93e94610a --- /dev/null +++ b/ui/assets/local/_app/immutable/chunks/query-service.7b844b9a.js @@ -0,0 +1 @@ +import{c as y}from"./decode-payload.19da7edc.js";import{h as d}from"./has.233e577a.js";import{s as c,p as f}from"./parse-with-big-int.0036a80a.js";import{r as l,a as p,e as m}from"./route-for-api.4c8e7aa5.js";const h=t=>{const e=t.indexOf("["),r=t.indexOf("]");return t.slice(e+1,r).split(" ").filter(a=>a!=="__stack_trace").map(a=>a.endsWith(",")?a.slice(0,a.length-1):a)},g=async(t,e,r)=>(e=await e,{namespace:t,workflowId:e.id,queryType:r});async function u({workflow:t,namespace:e,queryType:r},a=fetch,n){t=await t;const i=await g(e,t,r),s=l("query",i);return await p(s,{options:{method:"POST",body:c({execution:{workflowId:t.id,runId:t.runId},query:{queryType:r}})},request:a,onError:n,notifyOnError:!1})}async function x(t,e=fetch){return new Promise((r,a)=>{u({...t,queryType:"@@temporal-internal__list"},e,n=>{m(n.body)&&n.body.message.includes("@@temporal-internal__list")?r(h(n.body.message)):a(n)})})}async function _(t,e,r,a=fetch){return u(t,a).then(async n=>{const{queryResult:i}=n??{queryResult:{payloads:[]}};let s=i.payloads;try{if(s[0]){const o=await y({attributes:i,namespace:t.namespace,settings:e,accessToken:r});d(o,"payloads")&&Array.isArray(o.payloads)&&(s=o.payloads[0])}return f(s)}catch{return typeof s!="string"?c(s):s}})}async function A(t,e,r){return _({...t,queryType:"__stack_trace"},e,r)}export{x as a,_ as b,A as g}; diff --git a/ui/assets/local/_app/immutable/chunks/query-service.fd7152f2.js b/ui/assets/local/_app/immutable/chunks/query-service.fd7152f2.js deleted file mode 100644 index 22b4c36f0e..0000000000 --- a/ui/assets/local/_app/immutable/chunks/query-service.fd7152f2.js +++ /dev/null @@ -1 +0,0 @@ -import{c as y}from"./decode-payload.3d6f13eb.js";import{h as d}from"./has.233e577a.js";import{s as c,p as f}from"./parse-with-big-int.0036a80a.js";import{r as p,a as l,e as m}from"./route-for-api.f2500de4.js";const h=t=>{const e=t.indexOf("["),r=t.indexOf("]");return t.slice(e+1,r).split(" ").filter(a=>a!=="__stack_trace").map(a=>a.endsWith(",")?a.slice(0,a.length-1):a)},g=async(t,e,r)=>(e=await e,{namespace:t,workflowId:e.id,queryType:r});async function u({workflow:t,namespace:e,queryType:r},a=fetch,n){t=await t;const i=await g(e,t,r),s=p("query",i);return await l(s,{options:{method:"POST",body:c({execution:{workflowId:t.id,runId:t.runId},query:{queryType:r,runId:t.runId}})},request:a,onError:n,notifyOnError:!1})}async function x(t,e=fetch){return new Promise((r,a)=>{u({...t,queryType:"@@temporal-internal__list"},e,n=>{m(n.body)&&n.body.message.includes("@@temporal-internal__list")?r(h(n.body.message)):a(n)})})}async function I(t,e,r,a=fetch){return u(t,a).then(async n=>{const{queryResult:i}=n??{queryResult:{payloads:[]}};let s=i.payloads;try{if(s[0]){const o=await y({attributes:i,namespace:t.namespace,settings:e,accessToken:r});d(o,"payloads")&&Array.isArray(o.payloads)&&(s=o.payloads[0])}return f(s)}catch{return typeof s!="string"?c(s):s}})}async function A(t,e,r){return I({...t,queryType:"__stack_trace"},e,r)}export{x as a,I as b,A as g}; diff --git a/ui/assets/local/_app/immutable/chunks/radio-input.cbaf2baa.js b/ui/assets/local/_app/immutable/chunks/radio-input.aefa279b.js similarity index 98% rename from ui/assets/local/_app/immutable/chunks/radio-input.cbaf2baa.js rename to ui/assets/local/_app/immutable/chunks/radio-input.aefa279b.js index ba50259ef1..319f40eabe 100644 --- a/ui/assets/local/_app/immutable/chunks/radio-input.cbaf2baa.js +++ b/ui/assets/local/_app/immutable/chunks/radio-input.aefa279b.js @@ -1 +1 @@ -import{S as V,b as j,a as B,G as X,O as I,m as E,c as A,p as P,q as H,d as D,k as g,P as O,f as T,L as b,H as z,I as F,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,Q as N,M as w,n as U,af as $,K as ee}from"./index.0942deb7.js";import{w as le}from"./singletons.0a6e865f.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=X(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 R=[[]];function Q(){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,Q,R]}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 X,O as I,m as E,c as A,p as P,q as H,d as D,k as g,P as O,f as T,L as b,H as z,I as F,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,Q as N,M as w,n as U,af as $,K as ee}from"./index.0942deb7.js";import{w as le}from"./singletons.d67f4e6b.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=X(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 R=[[]];function Q(){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,Q,R]}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.f2500de4.js b/ui/assets/local/_app/immutable/chunks/route-for-api.4c8e7aa5.js similarity index 93% rename from ui/assets/local/_app/immutable/chunks/route-for-api.f2500de4.js rename to ui/assets/local/_app/immutable/chunks/route-for-api.4c8e7aa5.js index 2be26a4d55..f9493f118d 100644 --- a/ui/assets/local/_app/immutable/chunks/route-for-api.f2500de4.js +++ b/ui/assets/local/_app/immutable/chunks/route-for-api.4c8e7aa5.js @@ -1 +1 @@ -import{B as t}from"./prod-browser.becde89a.js";import{g as $}from"./auth-user.a1d7e47f.js";import{w as A}from"./singletons.0a6e865f.js";import{t as x}from"./toaster.60da8f1b.js";import{h as y}from"./has.233e577a.js";import{i as C}from"./is-network-error.d988be19.js";import{r as e,t as R}from"./route-for.ecd88549.js";import{i as F}from"./persist-store.dd882958.js";import{ac as P}from"./index.0942deb7.js";import{b as N}from"./paths.7de1f58b.js";import{p as O}from"./stores.73c3690d.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"./prod-browser.becde89a.js";import{g as $}from"./auth-user.6dc931ea.js";import{w as A}from"./singletons.d67f4e6b.js";import{t as x}from"./toaster.cfecd6c1.js";import{h as y}from"./has.233e577a.js";import{i as C}from"./is-network-error.d988be19.js";import{r as e,t as R}from"./route-for.18f9590b.js";import{i as F}from"./persist-store.3ea3c364.js";import{ac as P}from"./index.0942deb7.js";import{b as N}from"./paths.742c8328.js";import{p as O}from"./stores.255470ec.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.ecd88549.js b/ui/assets/local/_app/immutable/chunks/route-for.18f9590b.js similarity index 96% rename from ui/assets/local/_app/immutable/chunks/route-for.ecd88549.js rename to ui/assets/local/_app/immutable/chunks/route-for.18f9590b.js index 2a8651fbaa..923a7e3840 100644 --- a/ui/assets/local/_app/immutable/chunks/route-for.ecd88549.js +++ b/ui/assets/local/_app/immutable/chunks/route-for.18f9590b.js @@ -1 +1 @@ -import{B as f}from"./prod-browser.becde89a.js";import{b as o}from"./paths.7de1f58b.js";import{e as c}from"./encode-uri.dfce78e4.js";const F=(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}`,v=()=>`${o}/select-namespace`,m=r=>`${u(r)}/workflows`,k=({namespace:r,query:t,search:e,page:s})=>F(m({namespace:r}),{query:t,search:e,...s&&{page:s}}),P=r=>`${u(r)}/archival`,n=({workflow:r,run:t,...e})=>{const s=c(r);return`${m(e)}/${s}/${t}`},$=r=>`${u(r)}/schedules`,S=({namespace:r})=>`${$({namespace:r})}/create`,U=({scheduleId:r,namespace:t})=>{const e=c(r);return`${$({namespace:t})}/${e}`},y=({scheduleId:r,namespace:t})=>{const e=c(r);return`${$({namespace:t})}/${e}/edit`},R=({queryParams:r,...t})=>{const e=`${n(t)}/history`;return F(`${e}`,r)},E=({eventId:r,...t})=>`${n(t)}/history/events/${r}`,W=({eventId:r,...t})=>`${n(t)}/history/event-groups/${r}`,L=r=>`${n(r)}/workers`,b=r=>{const t=c(r.queue);return`${u({namespace:r.namespace})}/task-queues/${t}`},q=r=>`${n(r)}/call-stack`,B=r=>`${n(r)}/query`,H=r=>`${n(r)}/pending-activities`,A=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(h=>{if(!e)return;const l=e.get(h);l&&a.searchParams.set(h,l)}),!a.searchParams.get("returnUrl")&&s&&a.searchParams.set("returnUrl",s),a.toString()},N=(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`},O=(r,t)=>r&&t?`${o}/import/events/${r}/workflow/run/history/${t}`:`${o}/import/events`,Q=({namespace:r})=>`${o}/namespaces/${r}/batch-operations`,x=({namespace:r,jobId:t})=>`${o}/namespaces/${r}/batch-operations/${t}`;export{m as a,P as b,g as c,$ as d,Q as e,O as f,R as g,L as h,H as i,q as j,B as k,v as l,b as m,E as n,u as o,x as p,U as q,N as r,S as s,F as t,k as u,y as v,W as w,A as x}; +import{B as f}from"./prod-browser.becde89a.js";import{b as o}from"./paths.742c8328.js";import{e as c}from"./encode-uri.dfce78e4.js";const F=(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}`,v=()=>`${o}/select-namespace`,m=r=>`${u(r)}/workflows`,k=({namespace:r,query:t,search:e,page:s})=>F(m({namespace:r}),{query:t,search:e,...s&&{page:s}}),P=r=>`${u(r)}/archival`,n=({workflow:r,run:t,...e})=>{const s=c(r);return`${m(e)}/${s}/${t}`},$=r=>`${u(r)}/schedules`,S=({namespace:r})=>`${$({namespace:r})}/create`,U=({scheduleId:r,namespace:t})=>{const e=c(r);return`${$({namespace:t})}/${e}`},y=({scheduleId:r,namespace:t})=>{const e=c(r);return`${$({namespace:t})}/${e}/edit`},R=({queryParams:r,...t})=>{const e=`${n(t)}/history`;return F(`${e}`,r)},E=({eventId:r,...t})=>`${n(t)}/history/events/${r}`,W=({eventId:r,...t})=>`${n(t)}/history/event-groups/${r}`,L=r=>`${n(r)}/workers`,b=r=>{const t=c(r.queue);return`${u({namespace:r.namespace})}/task-queues/${t}`},q=r=>`${n(r)}/call-stack`,B=r=>`${n(r)}/query`,H=r=>`${n(r)}/pending-activities`,A=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(h=>{if(!e)return;const l=e.get(h);l&&a.searchParams.set(h,l)}),!a.searchParams.get("returnUrl")&&s&&a.searchParams.set("returnUrl",s),a.toString()},N=(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`},O=(r,t)=>r&&t?`${o}/import/events/${r}/workflow/run/history/${t}`:`${o}/import/events`,Q=({namespace:r})=>`${o}/namespaces/${r}/batch-operations`,x=({namespace:r,jobId:t})=>`${o}/namespaces/${r}/batch-operations/${t}`;export{m as a,P as b,g as c,$ as d,Q as e,O as f,R as g,L as h,H as i,q as j,B as k,v as l,b as m,E as n,u as o,x as p,U as q,N as r,S as s,F as t,k as u,y as v,W as w,A as x}; diff --git a/ui/assets/local/_app/immutable/chunks/schedule-form-view.4e0824ec.js b/ui/assets/local/_app/immutable/chunks/schedule-form-view.bfaa408e.js similarity index 98% rename from ui/assets/local/_app/immutable/chunks/schedule-form-view.4e0824ec.js rename to ui/assets/local/_app/immutable/chunks/schedule-form-view.bfaa408e.js index f27f29a0d6..9d2654c7c4 100644 --- a/ui/assets/local/_app/immutable/chunks/schedule-form-view.4e0824ec.js +++ b/ui/assets/local/_app/immutable/chunks/schedule-form-view.bfaa408e.js @@ -1 +1 @@ -import{S as ye,b as Ie,a as Ee,G as $t,O as Xe,m as C,p as H,q as P,k as g,P as tt,Q as Oe,f as K,H as wt,I as kt,J as Ot,R as Et,j as D,g as S,T as nt,af as Mt,K as Qe,U as Dt,u as F,L as m,n as me,a7 as Re,w as ee,x as te,M as ze,ag as Ge,c as W,d as T,A as G,a0 as J,C as A,D as L,E as N,a1 as X,F as U,z as Ye,h as Ze,a6 as St,a5 as lt,y as Wt}from"./index.0942deb7.js";import{p as yt}from"./stores.73c3690d.js";import{I as we}from"./input.828c22e1.js";import{c as Tt,T as Vt,a as Ct,b as Be}from"./tab.88eb698c.js";import{t as B}from"./translate.135d909a.js";import{m as st,g as je,w as it,S as Ht,O as Ke}from"./option.915b4554.js";import{I as Pt}from"./icon.33308831.js";import{T as At,a as ut}from"./toggle-buttons.01bd60a8.js";import{S as Lt,e as Je,l as Nt}from"./schedules.17e8498c.js";import{A as Ut}from"./alert.c46cfdd9.js";import{B as at}from"./button.c09134bf.js";import{L as Bt}from"./link.f0cc0bf5.js";import{L as qt}from"./loading.e7565465.js";import{q as Qt,d as Ft}from"./route-for.ecd88549.js";import{w as rt}from"./write-actions-are-allowed.7f76f8ee.js";function Kt(n){let e,t;const l=n[7].default,i=$t(l,n,n[6],null);let f=[{id:n[0]},{"aria-labelledby":n[1]},{tabindex:"0"},{role:"tabpanel"},n[4]],o={};for(let s=0;st(5,o=_)),a(r),n.$$set=_=>{e=Xe(Xe({},e),Dt(_)),t(4,f=nt(e,i)),"id"in _&&t(0,r=_.id),"tabId"in _&&t(1,d=_.tabId),"$$scope"in _&&t(6,u=_.$$scope)},n.$$.update=()=>{n.$$.dirty&33&&t(2,l=o===r)},[r,d,l,c,f,o,u,s]}class qe extends ye{constructor(e){super(),Ie(this,e,Rt,Kt,Ee,{id:0,tabId:1})}}function ft(n,e,t){const l=n.slice();return l[4]=e[t],l}function ot(n){let e,t=n[4]+"",l,i,f;function o(...s){return n[3](n[4],...s)}return{c(){e=C("button"),l=ee(t),this.h()},l(s){e=H(s,"BUTTON",{class:!0});var u=P(e);l=te(u,t),u.forEach(g),this.h()},h(){F(e,"class","cell svelte-c8o885"),Oe(e,"active",n[0].includes(n[4]))},m(s,u){K(s,e,u),m(e,l),i||(f=ze(e,"click",Ge(o)),i=!0)},p(s,u){n=s,u&3&&Oe(e,"active",n[0].includes(n[4]))},d(s){s&&g(e),i=!1,f()}}}function jt(n){let e,t,l=n[1],i=[];for(let f=0;fu+1);let{daysOfMonth:i}=e;const f=(s,u)=>{s.metaKey?i.includes(u)?i.filter(r=>r!==u):t(0,i=[...i,u]):t(0,i=[u])},o=(s,u)=>f(u,s);return n.$$set=s=>{"daysOfMonth"in s&&t(0,i=s.daysOfMonth)},[i,l,f,o]}class Gt extends ye{constructor(e){super(),Ie(this,e,zt,jt,Ee,{daysOfMonth:0})}}function dt(n,e,t){const l=n.slice();return l[3]=e[t].label,l[4]=e[t].value,l}function ct(n){let e,t=n[3]+"",l,i,f,o;function s(...u){return n[2](n[4],...u)}return{c(){e=C("button"),l=ee(t),i=W(),this.h()},l(u){e=H(u,"BUTTON",{class:!0});var r=P(e);l=te(r,t),i=T(r),r.forEach(g),this.h()},h(){F(e,"class","cell svelte-hc9i32"),Oe(e,"active",n[0].includes(n[4]))},m(u,r){K(u,e,r),m(e,l),m(e,i),f||(o=ze(e,"click",Ge(s)),f=!0)},p(u,r){n=u,r&1&&Oe(e,"active",n[0].includes(n[4]))},d(u){u&&g(e),f=!1,o()}}}function Jt(n){let e,t=st,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])},f=(o,s)=>i(s,o);return n.$$set=o=>{"months"in o&&t(0,l=o.months)},[l,i,f]}class Yt extends ye{constructor(e){super(),Ie(this,e,Xt,Jt,Ee,{months:0})}}function Zt(n){let e=B("common.ante-meridiem")+"",t;return{c(){t=ee(e)},l(l){t=te(l,e)},m(l,i){K(l,t,i)},p:me,d(l){l&&g(t)}}}function xt(n){let e=B("common.post-meridiem")+"",t;return{c(){t=ee(e)},l(l){t=te(l,e)},m(l,i){K(l,t,i)},p:me,d(l){l&&g(t)}}}function en(n){let e,t,l,i;return e=new ut({props:{active:n[2]==="AM",$$slots:{default:[Zt]},$$scope:{ctx:n}}}),e.$on("click",n[7]),l=new ut({props:{active:n[2]==="PM",$$slots:{default:[xt]},$$scope:{ctx:n}}}),l.$on("click",n[8]),{c(){A(e.$$.fragment),t=W(),A(l.$$.fragment)},l(f){L(e.$$.fragment,f),t=T(f),L(l.$$.fragment,f)},m(f,o){N(e,f,o),K(f,t,o),N(l,f,o),i=!0},p(f,o){const s={};o&4&&(s.active=f[2]==="AM"),o&512&&(s.$$scope={dirty:o,ctx:f}),e.$set(s);const u={};o&4&&(u.active=f[2]==="PM"),o&512&&(u.$$scope={dirty:o,ctx:f}),l.$set(u)},i(f){i||(D(e.$$.fragment,f),D(l.$$.fragment,f),i=!0)},o(f){S(e.$$.fragment,f),S(l.$$.fragment,f),i=!1},d(f){U(e,f),f&&g(t),U(l,f)}}}function tn(n){let e,t,l=B("schedules.time-view-heading")+"",i,f,o,s=B("schedules.time-view-description")+"",u,r,d,a,c,_,h,$,E,p,y,x,q,b,w,I,ne,ie,R,ue=B("common.based-on-time-preface")+"",V,j,ae;function re(Q){n[5](Q)}let se={id:"hour-time",label:B("common.hour-abbreviated"),labelHidden:!0,placeholder:"00",suffix:B("common.hour-abbreviated"),maxLength:2,error:n[3](n[1],12)};n[1]!==void 0&&(se.value=n[1]),a=new we({props:se}),G.push(()=>J(a,"value",re));function _e(Q){n[6](Q)}let ce={id:"minute-time",label:B("common.minutes-abbreviated"),labelHidden:!0,placeholder:"00",suffix:B("common.minutes-abbreviated"),maxLength:2,error:n[3](n[0],59)};return n[0]!==void 0&&(ce.value=n[0]),p=new we({props:ce}),G.push(()=>J(p,"value",_e)),b=new At({props:{$$slots:{default:[en]},$$scope:{ctx:n}}}),ne=new Pt({props:{name:"clock","aria-hidden":"true"}}),{c(){e=C("div"),t=C("h3"),i=ee(l),f=W(),o=C("p"),u=ee(s),r=W(),d=C("div"),A(a.$$.fragment),_=W(),h=C("div"),$=ee(":"),E=W(),A(p.$$.fragment),x=W(),q=C("div"),A(b.$$.fragment),w=W(),I=C("div"),A(ne.$$.fragment),ie=W(),R=C("span"),V=ee(ue),j=ee(" Universal Standard Time (UTC)"),this.h()},l(Q){e=H(Q,"DIV",{class:!0});var Z=P(e);t=H(Z,"H3",{class:!0});var O=P(t);i=te(O,l),O.forEach(g),f=T(Z),o=H(Z,"P",{});var de=P(o);u=te(de,s),de.forEach(g),r=T(Z),d=H(Z,"DIV",{class:!0});var fe=P(d);L(a.$$.fragment,fe),_=T(fe),h=H(fe,"DIV",{class:!0});var oe=P(h);$=te(oe,":"),oe.forEach(g),E=T(fe),L(p.$$.fragment,fe),x=T(fe),q=H(fe,"DIV",{class:!0});var he=P(q);L(b.$$.fragment,he),he.forEach(g),fe.forEach(g),w=T(Z),I=H(Z,"DIV",{class:!0});var ve=P(I);L(ne.$$.fragment,ve),ie=T(ve),R=H(ve,"SPAN",{class:!0});var ke=P(R);V=te(ke,ue),j=te(ke," Universal Standard Time (UTC)"),ke.forEach(g),ve.forEach(g),Z.forEach(g),this.h()},h(){F(t,"class","text-lg font-medium"),F(h,"class","hidden lg:block"),F(q,"class","ml-2"),F(d,"class","flex flex-col items-center gap-2 lg:flex-row"),F(R,"class","text-xs font-normal text-gray-500"),F(I,"class","flex w-full flex-row items-center gap-2"),F(e,"class","flex flex-col gap-4")},m(Q,Z){K(Q,e,Z),m(e,t),m(t,i),m(e,f),m(e,o),m(o,u),m(e,r),m(e,d),N(a,d,null),m(d,_),m(d,h),m(h,$),m(d,E),N(p,d,null),m(d,x),m(d,q),N(b,q,null),m(e,w),m(e,I),N(ne,I,null),m(I,ie),m(I,R),m(R,V),m(R,j),ae=!0},p(Q,[Z]){const O={};Z&2&&(O.error=Q[3](Q[1],12)),!c&&Z&2&&(c=!0,O.value=Q[1],X(()=>c=!1)),a.$set(O);const de={};Z&1&&(de.error=Q[3](Q[0],59)),!y&&Z&1&&(y=!0,de.value=Q[0],X(()=>y=!1)),p.$set(de);const fe={};Z&516&&(fe.$$scope={dirty:Z,ctx:Q}),b.$set(fe)},i(Q){ae||(D(a.$$.fragment,Q),D(p.$$.fragment,Q),D(b.$$.fragment,Q),D(ne.$$.fragment,Q),ae=!0)},o(Q){S(a.$$.fragment,Q),S(p.$$.fragment,Q),S(b.$$.fragment,Q),S(ne.$$.fragment,Q),ae=!1},d(Q){Q&&g(e),U(a),U(p),U(b),U(ne)}}}function nn(n,e,t){let{hour:l=""}=e,{minute:i=""}=e,f="",o="AM";const s=(c,_)=>c?isNaN(parseInt(c))||parseInt(c)>_:!1;function u(c){f=c,t(1,f)}function r(c){i=c,t(0,i)}const d=()=>t(2,o="AM"),a=()=>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&&(f?f==="12"?t(4,l=o==="AM"?"00":"12"):o==="PM"?t(4,l=(parseInt(f)+12).toString()):t(4,l=f):t(4,l=""))},[i,f,o,s,l,u,r,d,a]}class It extends ye{constructor(e){super(),Ie(this,e,nn,tn,Ee,{hour:4,minute:0})}}function ln(n){let e,t,l=B("schedules.recurring-dates-heading")+"",i,f,o,s=B("schedules.recurring-dates-description")+"",u,r,d,a,c,_,h,$,E,p,y,x,q;function b(V){n[4](V)}let w={};n[0]!==void 0&&(w.daysOfMonth=n[0]),a=new Gt({props:w}),G.push(()=>J(a,"daysOfMonth",b));function I(V){n[5](V)}let ne={};n[1]!==void 0&&(ne.months=n[1]),h=new Yt({props:ne}),G.push(()=>J(h,"months",I));function ie(V){n[6](V)}function R(V){n[7](V)}let ue={};return n[2]!==void 0&&(ue.hour=n[2]),n[3]!==void 0&&(ue.minute=n[3]),p=new It({props:ue}),G.push(()=>J(p,"hour",ie)),G.push(()=>J(p,"minute",R)),{c(){e=C("div"),t=C("h3"),i=ee(l),f=W(),o=C("p"),u=ee(s),r=W(),d=C("div"),A(a.$$.fragment),_=W(),A(h.$$.fragment),E=W(),A(p.$$.fragment),this.h()},l(V){e=H(V,"DIV",{class:!0});var j=P(e);t=H(j,"H3",{class:!0});var ae=P(t);i=te(ae,l),ae.forEach(g),f=T(j),o=H(j,"P",{});var re=P(o);u=te(re,s),re.forEach(g),r=T(j),d=H(j,"DIV",{class:!0});var se=P(d);L(a.$$.fragment,se),_=T(se),L(h.$$.fragment,se),se.forEach(g),j.forEach(g),E=T(V),L(p.$$.fragment,V),this.h()},h(){F(t,"class","text-lg font-medium"),F(d,"class","flex w-full flex-col gap-4"),F(e,"class","my-2 flex flex-col gap-4")},m(V,j){K(V,e,j),m(e,t),m(t,i),m(e,f),m(e,o),m(o,u),m(e,r),m(e,d),N(a,d,null),m(d,_),N(h,d,null),K(V,E,j),N(p,V,j),q=!0},p(V,[j]){const ae={};!c&&j&1&&(c=!0,ae.daysOfMonth=V[0],X(()=>c=!1)),a.$set(ae);const re={};!$&&j&2&&($=!0,re.months=V[1],X(()=>$=!1)),h.$set(re);const se={};!y&&j&4&&(y=!0,se.hour=V[2],X(()=>y=!1)),!x&&j&8&&(x=!0,se.minute=V[3],X(()=>x=!1)),p.$set(se)},i(V){q||(D(a.$$.fragment,V),D(h.$$.fragment,V),D(p.$$.fragment,V),q=!0)},o(V){S(a.$$.fragment,V),S(h.$$.fragment,V),S(p.$$.fragment,V),q=!1},d(V){V&&g(e),U(a),U(h),V&&g(E),U(p,V)}}}function sn(n,e,t){let{daysOfMonth:l}=e,{months:i}=e,{hour:f}=e,{minute:o}=e;function s(a){l=a,t(0,l)}function u(a){i=a,t(1,i)}function r(a){f=a,t(2,f)}function d(a){o=a,t(3,o)}return n.$$set=a=>{"daysOfMonth"in a&&t(0,l=a.daysOfMonth),"months"in a&&t(1,i=a.months),"hour"in a&&t(2,f=a.hour),"minute"in a&&t(3,o=a.minute)},[l,i,f,o,s,u,r,d]}class un extends ye{constructor(e){super(),Ie(this,e,sn,ln,Ee,{daysOfMonth:0,months:1,hour:2,minute:3})}}function ht(n,e,t){const l=n.slice();return l[4]=e[t].label,l[5]=e[t].value,l}function _t(n,e,t){const l=n.slice();return l[4]=e[t].label,l[5]=e[t].value,l}function mt(n){let e,t=n[4]+"",l,i,f;function o(...s){return n[2](n[5],...s)}return{c(){e=C("button"),l=ee(t),this.h()},l(s){e=H(s,"BUTTON",{class:!0});var u=P(e);l=te(u,t),u.forEach(g),this.h()},h(){F(e,"class","cell svelte-xr91x7"),Oe(e,"active",n[0].includes(n[5]))},m(s,u){K(s,e,u),m(e,l),i||(f=ze(e,"click",Ge(o)),i=!0)},p(s,u){n=s,u&1&&Oe(e,"active",n[0].includes(n[5]))},d(s){s&&g(e),i=!1,f()}}}function gt(n){let e,t=n[4]+"",l,i,f;function o(...s){return n[3](n[5],...s)}return{c(){e=C("button"),l=ee(t),this.h()},l(s){e=H(s,"BUTTON",{class:!0});var u=P(e);l=te(u,t),u.forEach(g),this.h()},h(){F(e,"class","cell svelte-xr91x7"),Oe(e,"active",n[0].includes(n[5]))},m(s,u){K(s,e,u),m(e,l),i||(f=ze(e,"click",Ge(o)),i=!0)},p(s,u){n=s,u&1&&Oe(e,"active",n[0].includes(n[5]))},d(s){s&&g(e),i=!1,f()}}}function an(n){let e,t,l,i,f=je,o=[];for(let r=0;r{s.metaKey?(je.find(r=>r.value===u)?t(0,l=[u]):l.find(r=>je.find(d=>d.value===r))&&t(0,l=[u]),l.includes(u)?l.filter(r=>r!==u):t(0,l=[...l,u])):t(0,l=[u])},f=(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,f,o]}class fn extends ye{constructor(e){super(),Ie(this,e,rn,an,Ee,{daysOfWeek:0})}}function on(n){let e,t,l=B("schedules.recurring-days-heading")+"",i,f,o,s=B("schedules.recurring-days-description")+"",u,r,d,a,c,_,h,$,E;function p(w){n[3](w)}let y={};n[0]!==void 0&&(y.daysOfWeek=n[0]),d=new fn({props:y}),G.push(()=>J(d,"daysOfWeek",p));function x(w){n[4](w)}function q(w){n[5](w)}let b={};return n[1]!==void 0&&(b.hour=n[1]),n[2]!==void 0&&(b.minute=n[2]),_=new It({props:b}),G.push(()=>J(_,"hour",x)),G.push(()=>J(_,"minute",q)),{c(){e=C("div"),t=C("h3"),i=ee(l),f=W(),o=C("p"),u=ee(s),r=W(),A(d.$$.fragment),c=W(),A(_.$$.fragment),this.h()},l(w){e=H(w,"DIV",{class:!0});var I=P(e);t=H(I,"H3",{class:!0});var ne=P(t);i=te(ne,l),ne.forEach(g),f=T(I),o=H(I,"P",{});var ie=P(o);u=te(ie,s),ie.forEach(g),r=T(I),L(d.$$.fragment,I),I.forEach(g),c=T(w),L(_.$$.fragment,w),this.h()},h(){F(t,"class","text-lg font-medium"),F(e,"class","my-2 flex flex-col gap-4")},m(w,I){K(w,e,I),m(e,t),m(t,i),m(e,f),m(e,o),m(o,u),m(e,r),N(d,e,null),K(w,c,I),N(_,w,I),E=!0},p(w,[I]){const ne={};!a&&I&1&&(a=!0,ne.daysOfWeek=w[0],X(()=>a=!1)),d.$set(ne);const ie={};!h&&I&2&&(h=!0,ie.hour=w[1],X(()=>h=!1)),!$&&I&4&&($=!0,ie.minute=w[2],X(()=>$=!1)),_.$set(ie)},i(w){E||(D(d.$$.fragment,w),D(_.$$.fragment,w),E=!0)},o(w){S(d.$$.fragment,w),S(_.$$.fragment,w),E=!1},d(w){w&&g(e),U(d),w&&g(c),U(_,w)}}}function dn(n,e,t){let{daysOfWeek:l}=e,{hour:i}=e,{minute:f}=e;function o(r){l=r,t(0,l)}function s(r){i=r,t(1,i)}function u(r){f=r,t(2,f)}return n.$$set=r=>{"daysOfWeek"in r&&t(0,l=r.daysOfWeek),"hour"in r&&t(1,i=r.hour),"minute"in r&&t(2,f=r.minute)},[l,i,f,o,s,u]}class cn extends ye{constructor(e){super(),Ie(this,e,dn,on,Ee,{daysOfWeek:0,hour:1,minute:2})}}function hn(n){let e=B("common.days")+"",t;return{c(){t=ee(e)},l(l){t=te(l,e)},m(l,i){K(l,t,i)},p:me,d(l){l&&g(t)}}}function _n(n){let e=B("common.hours-abbreviated")+"",t;return{c(){t=ee(e)},l(l){t=te(l,e)},m(l,i){K(l,t,i)},p:me,d(l){l&&g(t)}}}function mn(n){let e=B("common.minutes-abbreviated")+"",t;return{c(){t=ee(e)},l(l){t=te(l,e)},m(l,i){K(l,t,i)},p:me,d(l){l&&g(t)}}}function gn(n){let e=B("common.seconds-abbreviated")+"",t;return{c(){t=ee(e)},l(l){t=te(l,e)},m(l,i){K(l,t,i)},p:me,d(l){l&&g(t)}}}function pn(n){let e,t,l,i,f,o,s,u;return e=new Ke({props:{value:"days",$$slots:{default:[hn]},$$scope:{ctx:n}}}),l=new Ke({props:{value:"hrs",$$slots:{default:[_n]},$$scope:{ctx:n}}}),f=new Ke({props:{value:"min",$$slots:{default:[mn]},$$scope:{ctx:n}}}),s=new Ke({props:{value:"sec",$$slots:{default:[gn]},$$scope:{ctx:n}}}),{c(){A(e.$$.fragment),t=W(),A(l.$$.fragment),i=W(),A(f.$$.fragment),o=W(),A(s.$$.fragment)},l(r){L(e.$$.fragment,r),t=T(r),L(l.$$.fragment,r),i=T(r),L(f.$$.fragment,r),o=T(r),L(s.$$.fragment,r)},m(r,d){N(e,r,d),K(r,t,d),N(l,r,d),K(r,i,d),N(f,r,d),K(r,o,d),N(s,r,d),u=!0},p(r,d){const a={};d&16384&&(a.$$scope={dirty:d,ctx:r}),e.$set(a);const c={};d&16384&&(c.$$scope={dirty:d,ctx:r}),l.$set(c);const _={};d&16384&&(_.$$scope={dirty:d,ctx:r}),f.$set(_);const h={};d&16384&&(h.$$scope={dirty:d,ctx:r}),s.$set(h)},i(r){u||(D(e.$$.fragment,r),D(l.$$.fragment,r),D(f.$$.fragment,r),D(s.$$.fragment,r),u=!0)},o(r){S(e.$$.fragment,r),S(l.$$.fragment,r),S(f.$$.fragment,r),S(s.$$.fragment,r),u=!1},d(r){U(e,r),r&&g(t),U(l,r),r&&g(i),U(f,r),r&&g(o),U(s,r)}}}function vn(n){let e,t,l=B("schedules.interval-view-heading")+"",i,f,o,s=B("schedules.interval-view-description")+"",u,r,d,a,c,_,h,$,E,p,y,x,q,b,w,I,ne,ie,R,ue,V,j,ae,re,se,_e=B("schedules.offset-heading")+"",ce,Q,Z,O=B("schedules.offset-description")+"",de,fe,oe,he,ve,ke,pe,Se,De;function Ae(M){n[8](M)}let We={id:"days",label:B("common.days"),labelHidden:!0,placeholder:"00",suffix:B("common.days"),maxLength:3,error:n[7](n[0])};n[0]!==void 0&&(We.value=n[0]),a=new we({props:We}),G.push(()=>J(a,"value",Ae));function Le(M){n[9](M)}let Te={id:"hour-interval",label:B("common.hours-abbreviated"),labelHidden:!0,placeholder:"00",suffix:B("common.hours-abbreviated"),maxLength:2,error:n[7](n[1])};n[1]!==void 0&&(Te.value=n[1]),p=new we({props:Te}),G.push(()=>J(p,"value",Le));function Ne(M){n[10](M)}let Ve={id:"minute-interval",label:B("common.minutes-abbreviated"),labelHidden:!0,placeholder:"00",suffix:B("common.minutes-abbreviated"),maxLength:2,error:n[7](n[2])};n[2]!==void 0&&(Ve.value=n[2]),I=new we({props:Ve}),G.push(()=>J(I,"value",Ne));function Ue(M){n[11](M)}let ge={id:"second",label:B("common.seconds-abbreviated"),labelHidden:!0,placeholder:"00",suffix:B("common.seconds-abbreviated"),maxLength:2,error:n[7](n[3])};n[3]!==void 0&&(ge.value=n[3]),j=new we({props:ge}),G.push(()=>J(j,"value",Ue));function v(M){n[12](M)}let z={id:"phase",label:B("schedules.offset-heading"),labelHidden:!0,placeholder:"00",error:n[7](n[4]),unroundRight:!0};n[5]!==void 0&&(z.value=n[5]),he=new we({props:z}),G.push(()=>J(he,"value",v));function Me(M){n[13](M)}let k={label:B("schedules.offset-unit"),labelHidden:!0,unroundLeft:!0,id:"phase-unit",$$slots:{default:[pn]},$$scope:{ctx:n}};return n[6]!==void 0&&(k.value=n[6]),pe=new Ht({props:k}),G.push(()=>J(pe,"value",Me)),{c(){e=C("div"),t=C("h3"),i=ee(l),f=W(),o=C("p"),u=ee(s),r=W(),d=C("div"),A(a.$$.fragment),_=W(),h=C("div"),$=ee(":"),E=W(),A(p.$$.fragment),x=W(),q=C("div"),b=ee(":"),w=W(),A(I.$$.fragment),ie=W(),R=C("div"),ue=ee(":"),V=W(),A(j.$$.fragment),re=W(),se=C("h3"),ce=ee(_e),Q=W(),Z=C("p"),de=ee(O),fe=W(),oe=C("div"),A(he.$$.fragment),ke=W(),A(pe.$$.fragment),this.h()},l(M){e=H(M,"DIV",{class:!0});var Y=P(e);t=H(Y,"H3",{class:!0});var be=P(t);i=te(be,l),be.forEach(g),f=T(Y),o=H(Y,"P",{});var $e=P(o);u=te($e,s),$e.forEach(g),r=T(Y),d=H(Y,"DIV",{class:!0});var le=P(d);L(a.$$.fragment,le),_=T(le),h=H(le,"DIV",{class:!0});var Ce=P(h);$=te(Ce,":"),Ce.forEach(g),E=T(le),L(p.$$.fragment,le),x=T(le),q=H(le,"DIV",{class:!0});var He=P(q);b=te(He,":"),He.forEach(g),w=T(le),L(I.$$.fragment,le),ie=T(le),R=H(le,"DIV",{class:!0});var Pe=P(R);ue=te(Pe,":"),Pe.forEach(g),V=T(le),L(j.$$.fragment,le),le.forEach(g),re=T(Y),se=H(Y,"H3",{class:!0});var xe=P(se);ce=te(xe,_e),xe.forEach(g),Q=T(Y),Z=H(Y,"P",{});var et=P(Z);de=te(et,O),et.forEach(g),fe=T(Y),oe=H(Y,"DIV",{class:!0});var Fe=P(oe);L(he.$$.fragment,Fe),ke=T(Fe),L(pe.$$.fragment,Fe),Fe.forEach(g),Y.forEach(g),this.h()},h(){F(t,"class","text-lg font-medium"),F(h,"class","hidden lg:block"),F(q,"class","hidden lg:block"),F(R,"class","hidden lg:block"),F(d,"class","flex flex-col items-center gap-2 lg:flex-row"),F(se,"class","mt-4 text-lg font-medium"),F(oe,"class","flex w-48 gap-0"),F(e,"class","my-2 flex flex-col gap-4")},m(M,Y){K(M,e,Y),m(e,t),m(t,i),m(e,f),m(e,o),m(o,u),m(e,r),m(e,d),N(a,d,null),m(d,_),m(d,h),m(h,$),m(d,E),N(p,d,null),m(d,x),m(d,q),m(q,b),m(d,w),N(I,d,null),m(d,ie),m(d,R),m(R,ue),m(d,V),N(j,d,null),m(e,re),m(e,se),m(se,ce),m(e,Q),m(e,Z),m(Z,de),m(e,fe),m(e,oe),N(he,oe,null),m(oe,ke),N(pe,oe,null),De=!0},p(M,[Y]){const be={};Y&1&&(be.error=M[7](M[0])),!c&&Y&1&&(c=!0,be.value=M[0],X(()=>c=!1)),a.$set(be);const $e={};Y&2&&($e.error=M[7](M[1])),!y&&Y&2&&(y=!0,$e.value=M[1],X(()=>y=!1)),p.$set($e);const le={};Y&4&&(le.error=M[7](M[2])),!ne&&Y&4&&(ne=!0,le.value=M[2],X(()=>ne=!1)),I.$set(le);const Ce={};Y&8&&(Ce.error=M[7](M[3])),!ae&&Y&8&&(ae=!0,Ce.value=M[3],X(()=>ae=!1)),j.$set(Ce);const He={};Y&16&&(He.error=M[7](M[4])),!ve&&Y&32&&(ve=!0,He.value=M[5],X(()=>ve=!1)),he.$set(He);const Pe={};Y&16384&&(Pe.$$scope={dirty:Y,ctx:M}),!Se&&Y&64&&(Se=!0,Pe.value=M[6],X(()=>Se=!1)),pe.$set(Pe)},i(M){De||(D(a.$$.fragment,M),D(p.$$.fragment,M),D(I.$$.fragment,M),D(j.$$.fragment,M),D(he.$$.fragment,M),D(pe.$$.fragment,M),De=!0)},o(M){S(a.$$.fragment,M),S(p.$$.fragment,M),S(I.$$.fragment,M),S(j.$$.fragment,M),S(he.$$.fragment,M),S(pe.$$.fragment,M),De=!1},d(M){M&&g(e),U(a),U(p),U(I),U(j),U(he),U(pe)}}}function bn(n,e,t){let{days:l=""}=e,{hour:i=""}=e,{minute:f=""}=e,{second:o=""}=e,{phase:s=""}=e,u="",r="min";const d=p=>p?isNaN(parseInt(p)):!1;function a(p){l=p,t(0,l)}function c(p){i=p,t(1,i)}function _(p){f=p,t(2,f)}function h(p){o=p,t(3,o)}function $(p){u=p,t(5,u)}function E(p){r=p,t(6,r)}return n.$$set=p=>{"days"in p&&t(0,l=p.days),"hour"in p&&t(1,i=p.hour),"minute"in p&&t(2,f=p.minute),"second"in p&&t(3,o=p.second),"phase"in p&&t(4,s=p.phase)},n.$$.update=()=>{n.$$.dirty&96&&u&&(r==="days"?t(4,s=(parseInt(u)*60*60*24).toString()+"s"):r==="hrs"?t(4,s=(parseInt(u)*60*60).toString()+"s"):r==="min"?t(4,s=(parseInt(u)*60).toString()+"s"):r==="sec"&&t(4,s=parseInt(u).toString()+"s"))},[l,i,f,o,s,u,r,d,a,c,_,h,$,E]}class $n extends ye{constructor(e){super(),Ie(this,e,bn,vn,Ee,{days:0,hour:1,minute:2,second:3,phase:4})}}const wn=n=>({preset:n[0]&1024}),pt=n=>({preset:n[10]});function vt(n){let e,t;return e=new Be({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 f={};i[0]&1024&&(f.onClick=l[12]),e.$set(f)},i(l){t||(D(e.$$.fragment,l),t=!0)},o(l){S(e.$$.fragment,l),t=!1},d(l){U(e,l)}}}function kn(n){let e,t,l,i,f,o,s,u,r,d=n[9]&&vt(n);return t=new Be({props:{label:"Interval",id:"interval-tab",panelId:"interval-panel",onClick:n[13]}}),i=new Be({props:{label:"Days of the Week",id:"daily-tab",panelId:"daily-panel",onClick:n[14]}}),o=new Be({props:{label:"Days of the Month",id:"monthly-tab",panelId:"monthly-panel",onClick:n[15]}}),u=new Be({props:{label:"String",id:"string-tab",panelId:"string-panel",onClick:n[16]}}),{c(){d&&d.c(),e=W(),A(t.$$.fragment),l=W(),A(i.$$.fragment),f=W(),A(o.$$.fragment),s=W(),A(u.$$.fragment)},l(a){d&&d.l(a),e=T(a),L(t.$$.fragment,a),l=T(a),L(i.$$.fragment,a),f=T(a),L(o.$$.fragment,a),s=T(a),L(u.$$.fragment,a)},m(a,c){d&&d.m(a,c),K(a,e,c),N(t,a,c),K(a,l,c),N(i,a,c),K(a,f,c),N(o,a,c),K(a,s,c),N(u,a,c),r=!0},p(a,c){a[9]?d?(d.p(a,c),c[0]&512&&D(d,1)):(d=vt(a),d.c(),D(d,1),d.m(e.parentNode,e)):d&&(Ye(),S(d,1,1,()=>{d=null}),Ze());const _={};c[0]&1024&&(_.onClick=a[13]),t.$set(_);const h={};c[0]&1024&&(h.onClick=a[14]),i.$set(h);const $={};c[0]&1024&&($.onClick=a[15]),o.$set($);const E={};c[0]&1024&&(E.onClick=a[16]),u.$set(E)},i(a){r||(D(d),D(t.$$.fragment,a),D(i.$$.fragment,a),D(o.$$.fragment,a),D(u.$$.fragment,a),r=!0)},o(a){S(d),S(t.$$.fragment,a),S(i.$$.fragment,a),S(o.$$.fragment,a),S(u.$$.fragment,a),r=!1},d(a){d&&d.d(a),a&&g(e),U(t,a),a&&g(l),U(i,a),a&&g(f),U(o,a),a&&g(s),U(u,a)}}}function bt(n){let e,t;return e=new qe({props:{id:"existing-panel",tabId:"existing-tab",class:"w-full",$$slots:{default:[On]},$$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 f={};i[0]&1073742336&&(f.$$scope={dirty:i,ctx:l}),e.$set(f)},i(l){t||(D(e.$$.fragment,l),t=!0)},o(l){S(e.$$.fragment,l),t=!1},d(l){U(e,l)}}}function On(n){var l,i,f,o,s,u;let e,t;return e=new Lt({props:{calendar:(f=(i=(l=n[9])==null?void 0:l.spec)==null?void 0:i.structuredCalendar)==null?void 0:f[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(r){L(e.$$.fragment,r)},m(r,d){N(e,r,d),t=!0},p(r,d){var c,_,h,$,E,p;const a={};d[0]&512&&(a.calendar=(h=(_=(c=r[9])==null?void 0:c.spec)==null?void 0:_.structuredCalendar)==null?void 0:h[0]),d[0]&512&&(a.interval=(p=(E=($=r[9])==null?void 0:$.spec)==null?void 0:E.interval)==null?void 0:p[0]),e.$set(a)},i(r){t||(D(e.$$.fragment,r),t=!0)},o(r){S(e.$$.fragment,r),t=!1},d(r){U(e,r)}}}function yn(n){let e,t,l,i,f,o,s;function u(h){n[17](h)}function r(h){n[18](h)}function d(h){n[19](h)}function a(h){n[20](h)}function c(h){n[21](h)}let _={};return n[3]!==void 0&&(_.days=n[3]),n[4]!==void 0&&(_.hour=n[4]),n[5]!==void 0&&(_.minute=n[5]),n[6]!==void 0&&(_.second=n[6]),n[7]!==void 0&&(_.phase=n[7]),e=new $n({props:_}),G.push(()=>J(e,"days",u)),G.push(()=>J(e,"hour",r)),G.push(()=>J(e,"minute",d)),G.push(()=>J(e,"second",a)),G.push(()=>J(e,"phase",c)),{c(){A(e.$$.fragment)},l(h){L(e.$$.fragment,h)},m(h,$){N(e,h,$),s=!0},p(h,$){const E={};!t&&$[0]&8&&(t=!0,E.days=h[3],X(()=>t=!1)),!l&&$[0]&16&&(l=!0,E.hour=h[4],X(()=>l=!1)),!i&&$[0]&32&&(i=!0,E.minute=h[5],X(()=>i=!1)),!f&&$[0]&64&&(f=!0,E.second=h[6],X(()=>f=!1)),!o&&$[0]&128&&(o=!0,E.phase=h[7],X(()=>o=!1)),e.$set(E)},i(h){s||(D(e.$$.fragment,h),s=!0)},o(h){S(e.$$.fragment,h),s=!1},d(h){U(e,h)}}}function In(n){let e,t,l,i,f;function o(d){n[22](d)}function s(d){n[23](d)}function u(d){n[24](d)}let r={};return n[0]!==void 0&&(r.daysOfWeek=n[0]),n[4]!==void 0&&(r.hour=n[4]),n[5]!==void 0&&(r.minute=n[5]),e=new cn({props:r}),G.push(()=>J(e,"daysOfWeek",o)),G.push(()=>J(e,"hour",s)),G.push(()=>J(e,"minute",u)),{c(){A(e.$$.fragment)},l(d){L(e.$$.fragment,d)},m(d,a){N(e,d,a),f=!0},p(d,a){const c={};!t&&a[0]&1&&(t=!0,c.daysOfWeek=d[0],X(()=>t=!1)),!l&&a[0]&16&&(l=!0,c.hour=d[4],X(()=>l=!1)),!i&&a[0]&32&&(i=!0,c.minute=d[5],X(()=>i=!1)),e.$set(c)},i(d){f||(D(e.$$.fragment,d),f=!0)},o(d){S(e.$$.fragment,d),f=!1},d(d){U(e,d)}}}function En(n){let e,t,l,i,f,o;function s(c){n[25](c)}function u(c){n[26](c)}function r(c){n[27](c)}function d(c){n[28](c)}let a={};return n[1]!==void 0&&(a.daysOfMonth=n[1]),n[2]!==void 0&&(a.months=n[2]),n[4]!==void 0&&(a.hour=n[4]),n[5]!==void 0&&(a.minute=n[5]),e=new un({props:a}),G.push(()=>J(e,"daysOfMonth",s)),G.push(()=>J(e,"months",u)),G.push(()=>J(e,"hour",r)),G.push(()=>J(e,"minute",d)),{c(){A(e.$$.fragment)},l(c){L(e.$$.fragment,c)},m(c,_){N(e,c,_),o=!0},p(c,_){const h={};!t&&_[0]&2&&(t=!0,h.daysOfMonth=c[1],X(()=>t=!1)),!l&&_[0]&4&&(l=!0,h.months=c[2],X(()=>l=!1)),!i&&_[0]&16&&(i=!0,h.hour=c[4],X(()=>i=!1)),!f&&_[0]&32&&(f=!0,h.minute=c[5],X(()=>f=!1)),e.$set(h)},i(c){o||(D(e.$$.fragment,c),o=!0)},o(c){S(e.$$.fragment,c),o=!1},d(c){U(e,c)}}}function Mn(n){let e,t,l=B("schedules.cron-view-title")+"",i,f,o,s=B("schedules.cron-view-description")+"",u,r,d,a,c;function _($){n[29]($)}let h={label:B("schedules.cron-view-title"),labelHidden:!0,id:"cronString",placeholder:"* * * * *"};return n[8]!==void 0&&(h.value=n[8]),d=new we({props:h}),G.push(()=>J(d,"value",_)),{c(){e=C("div"),t=C("h3"),i=ee(l),f=W(),o=C("p"),u=ee(s),r=W(),A(d.$$.fragment),this.h()},l($){e=H($,"DIV",{class:!0});var E=P(e);t=H(E,"H3",{class:!0});var p=P(t);i=te(p,l),p.forEach(g),f=T(E),o=H(E,"P",{});var y=P(o);u=te(y,s),y.forEach(g),r=T(E),L(d.$$.fragment,E),E.forEach(g),this.h()},h(){F(t,"class","text-lg font-medium"),F(e,"class","my-2 flex w-full flex-col gap-4")},m($,E){K($,e,E),m(e,t),m(t,i),m(e,f),m(e,o),m(o,u),m(e,r),N(d,e,null),c=!0},p($,E){const p={};!a&&E[0]&256&&(a=!0,p.value=$[8],X(()=>a=!1)),d.$set(p)},i($){c||(D(d.$$.fragment,$),c=!0)},o($){S(d.$$.fragment,$),c=!1},d($){$&&g(e),U(d)}}}function Dn(n){let e,t=B("schedules.schedule-spec")+"",l,i,f,o,s,u,r,d,a,c,_,h,$,E,p;f=new Ct({props:{label:"Schedule Tabs",class:"flex flex-wrap gap-6",$$slots:{default:[kn]},$$scope:{ctx:n}}});let y=n[9]&&bt(n);r=new qe({props:{id:"interval-panel",tabId:"interval-tab",$$slots:{default:[yn]},$$scope:{ctx:n}}}),a=new qe({props:{id:"daily-panel",tabId:"daily-tab",$$slots:{default:[In]},$$scope:{ctx:n}}}),_=new qe({props:{id:"monthly-panel",tabId:"monthly-tab",$$slots:{default:[En]},$$scope:{ctx:n}}}),$=new qe({props:{id:"string-panel",tabId:"string-tab",$$slots:{default:[Mn]},$$scope:{ctx:n}}});const x=n[11].default,q=$t(x,n,n[30],pt);return{c(){e=C("h2"),l=ee(t),i=W(),A(f.$$.fragment),o=W(),s=C("div"),y&&y.c(),u=W(),A(r.$$.fragment),d=W(),A(a.$$.fragment),c=W(),A(_.$$.fragment),h=W(),A($.$$.fragment),E=W(),q&&q.c(),this.h()},l(b){e=H(b,"H2",{class:!0});var w=P(e);l=te(w,t),w.forEach(g),i=T(b),L(f.$$.fragment,b),o=T(b),s=H(b,"DIV",{class:!0});var I=P(s);y&&y.l(I),u=T(I),L(r.$$.fragment,I),d=T(I),L(a.$$.fragment,I),c=T(I),L(_.$$.fragment,I),h=T(I),L($.$$.fragment,I),I.forEach(g),E=T(b),q&&q.l(b),this.h()},h(){F(e,"class","mb-4 text-2xl"),F(s,"class","mt-4 flex w-full flex-wrap gap-6")},m(b,w){K(b,e,w),m(e,l),K(b,i,w),N(f,b,w),K(b,o,w),K(b,s,w),y&&y.m(s,null),m(s,u),N(r,s,null),m(s,d),N(a,s,null),m(s,c),N(_,s,null),m(s,h),N($,s,null),K(b,E,w),q&&q.m(b,w),p=!0},p(b,w){const I={};w[0]&1073743360&&(I.$$scope={dirty:w,ctx:b}),f.$set(I),b[9]?y?(y.p(b,w),w[0]&512&&D(y,1)):(y=bt(b),y.c(),D(y,1),y.m(s,u)):y&&(Ye(),S(y,1,1,()=>{y=null}),Ze());const ne={};w[0]&1073742072&&(ne.$$scope={dirty:w,ctx:b}),r.$set(ne);const ie={};w[0]&1073741873&&(ie.$$scope={dirty:w,ctx:b}),a.$set(ie);const R={};w[0]&1073741878&&(R.$$scope={dirty:w,ctx:b}),_.$set(R);const ue={};w[0]&1073742080&&(ue.$$scope={dirty:w,ctx:b}),$.$set(ue),q&&q.p&&(!p||w[0]&1073742848)&&wt(q,x,b,b[30],p?Ot(x,b[30],w,wn):kt(b[30]),pt)},i(b){p||(D(f.$$.fragment,b),D(y),D(r.$$.fragment,b),D(a.$$.fragment,b),D(_.$$.fragment,b),D($.$$.fragment,b),D(q,b),p=!0)},o(b){S(f.$$.fragment,b),S(y),S(r.$$.fragment,b),S(a.$$.fragment,b),S(_.$$.fragment,b),S($.$$.fragment,b),S(q,b),p=!1},d(b){b&&g(e),b&&g(i),U(f,b),b&&g(o),b&&g(s),y&&y.d(),U(r),U(a),U(_),U($),b&&g(E),q&&q.d(b)}}}function Sn(n){let e,t;return e=new Vt({props:{class:"mt-8 w-full",$$slots:{default:[Dn]},$$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 f={};i[0]&1073743871&&(f.$$scope={dirty:i,ctx:l}),e.$set(f)},i(l){t||(D(e.$$.fragment,l),t=!0)},o(l){S(e.$$.fragment,l),t=!1},d(l){U(e,l)}}}function Wn(n,e,t){let l;Qe(n,yt,O=>t(31,l=O));let{$$slots:i={},$$scope:f}=e,s=l.params.schedule?"existing":"interval",{schedule:u=null}=e,{daysOfWeek:r}=e,{daysOfMonth:d}=e,{months:a}=e,{days:c}=e,{hour:_}=e,{minute:h}=e,{second:$}=e,{phase:E}=e,{cronString:p}=e;const y=()=>{t(0,r=[]),t(1,d=[]),t(2,a=[]),t(3,c=""),t(4,_=""),t(5,h=""),t(6,$=""),t(7,E=""),t(8,p="")},x=()=>t(10,s="existing"),q=()=>t(10,s="interval"),b=()=>t(10,s="week"),w=()=>t(10,s="month"),I=()=>t(10,s="string");function ne(O){c=O,t(3,c)}function ie(O){_=O,t(4,_)}function R(O){h=O,t(5,h)}function ue(O){$=O,t(6,$)}function V(O){E=O,t(7,E)}function j(O){r=O,t(0,r)}function ae(O){_=O,t(4,_)}function re(O){h=O,t(5,h)}function se(O){d=O,t(1,d)}function _e(O){a=O,t(2,a)}function ce(O){_=O,t(4,_)}function Q(O){h=O,t(5,h)}function Z(O){p=O,t(8,p)}return n.$$set=O=>{"schedule"in O&&t(9,u=O.schedule),"daysOfWeek"in O&&t(0,r=O.daysOfWeek),"daysOfMonth"in O&&t(1,d=O.daysOfMonth),"months"in O&&t(2,a=O.months),"days"in O&&t(3,c=O.days),"hour"in O&&t(4,_=O.hour),"minute"in O&&t(5,h=O.minute),"second"in O&&t(6,$=O.second),"phase"in O&&t(7,E=O.phase),"cronString"in O&&t(8,p=O.cronString),"$$scope"in O&&t(30,f=O.$$scope)},y(),[r,d,a,c,_,h,$,E,p,u,s,i,x,q,b,w,I,ne,ie,R,ue,V,j,ae,re,se,_e,ce,Q,Z,f]}class Tn extends ye{constructor(e){super(),Ie(this,e,Wn,Sn,Ee,{schedule:9,daysOfWeek:0,daysOfMonth:1,months:2,days:3,hour:4,minute:5,second:6,phase:7,cronString:8},null,[-1,-1])}}function Vn(n){let e,t,l,i,f,o,s,u,r,d,a,c,_,h,$,E,p,y,x,q,b,w,I,ne,ie,R,ue,V,j,ae,re,se,_e,ce,Q,Z;t=new Bt({props:{href:n[22],icon:"chevron-left",$$slots:{default:[Hn]},$$scope:{ctx:n}}}),u=new Ut({props:{intent:"error",title:"",hidden:!n[16],bold:!0,$$slots:{default:[Pn]},$$scope:{ctx:n}}});function O(v){n[28](v)}let de={id:"name",label:B("schedules.name-label"),error:n[13].name,maxLength:232,disabled:Boolean(n[18])};n[1]!==void 0&&(de.value=n[1]),a=new we({props:de}),G.push(()=>J(a,"value",O)),a.$on("input",n[25]),a.$on("blur",n[26]);function fe(v){n[29](v)}let oe={id:"workflowType",label:B("schedules.workflow-type-label"),error:n[13].workflowType};n[2]!==void 0&&(oe.value=n[2]),$=new we({props:oe}),G.push(()=>J($,"value",fe)),$.$on("input",n[25]),$.$on("blur",n[26]);function he(v){n[30](v)}let ve={id:"workflowId",label:B("schedules.workflow-id-label"),error:n[13].workflowId};n[3]!==void 0&&(ve.value=n[3]),x=new we({props:ve}),G.push(()=>J(x,"value",he)),x.$on("input",n[25]),x.$on("blur",n[26]);function ke(v){n[31](v)}let pe={id:"taskQueue",label:B("schedules.task-queue-label"),error:n[13].taskQueue};n[4]!==void 0&&(pe.value=n[4]),I=new we({props:pe}),G.push(()=>J(I,"value",ke)),I.$on("input",n[25]),I.$on("blur",n[26]);function Se(v){n[33](v)}function De(v){n[34](v)}function Ae(v){n[35](v)}function We(v){n[36](v)}function Le(v){n[37](v)}function Te(v){n[38](v)}function Ne(v){n[39](v)}function Ve(v){n[40](v)}function Ue(v){n[41](v)}let ge={schedule:n[0],$$slots:{default:[Nn,({preset:v})=>({55:v}),({preset:v})=>[0,v?16777216:0]]},$$scope:{ctx:n}};return n[5]!==void 0&&(ge.daysOfWeek=n[5]),n[6]!==void 0&&(ge.daysOfMonth=n[6]),n[7]!==void 0&&(ge.months=n[7]),n[8]!==void 0&&(ge.days=n[8]),n[9]!==void 0&&(ge.hour=n[9]),n[10]!==void 0&&(ge.minute=n[10]),n[11]!==void 0&&(ge.second=n[11]),n[14]!==void 0&&(ge.phase=n[14]),n[12]!==void 0&&(ge.cronString=n[12]),R=new Tn({props:ge}),G.push(()=>J(R,"daysOfWeek",Se)),G.push(()=>J(R,"daysOfMonth",De)),G.push(()=>J(R,"months",Ae)),G.push(()=>J(R,"days",We)),G.push(()=>J(R,"hour",Le)),G.push(()=>J(R,"minute",Te)),G.push(()=>J(R,"second",Ne)),G.push(()=>J(R,"phase",Ve)),G.push(()=>J(R,"cronString",Ue)),{c(){e=C("header"),A(t.$$.fragment),l=W(),i=C("h1"),f=ee(n[19]),o=W(),s=C("form"),A(u.$$.fragment),r=W(),d=C("div"),A(a.$$.fragment),_=W(),h=C("div"),A($.$$.fragment),p=W(),y=C("div"),A(x.$$.fragment),b=W(),w=C("div"),A(I.$$.fragment),ie=W(),A(R.$$.fragment),this.h()},l(v){e=H(v,"HEADER",{class:!0});var z=P(e);L(t.$$.fragment,z),l=T(z),i=H(z,"H1",{class:!0});var Me=P(i);f=te(Me,n[19]),Me.forEach(g),z.forEach(g),o=T(v),s=H(v,"FORM",{class:!0});var k=P(s);L(u.$$.fragment,k),r=T(k),d=H(k,"DIV",{class:!0});var M=P(d);L(a.$$.fragment,M),M.forEach(g),_=T(k),h=H(k,"DIV",{class:!0});var Y=P(h);L($.$$.fragment,Y),Y.forEach(g),p=T(k),y=H(k,"DIV",{class:!0});var be=P(y);L(x.$$.fragment,be),be.forEach(g),b=T(k),w=H(k,"DIV",{class:!0});var $e=P(w);L(I.$$.fragment,$e),$e.forEach(g),ie=T(k),L(R.$$.fragment,k),k.forEach(g),this.h()},h(){F(i,"class","font-base text-2xl"),F(e,"class","mb-12 flex flex-col gap-4"),F(d,"class","w-full"),F(h,"class","w-full"),F(y,"class","w-full"),F(w,"class","w-full"),F(s,"class","mb-4 flex w-full flex-col gap-4 md:w-2/3 xl:w-1/2")},m(v,z){K(v,e,z),N(t,e,null),m(e,l),m(e,i),m(i,f),K(v,o,z),K(v,s,z),N(u,s,null),m(s,r),m(s,d),N(a,d,null),m(s,_),m(s,h),N($,h,null),m(s,p),m(s,y),N(x,y,null),m(s,b),m(s,w),N(I,w,null),m(s,ie),N(R,s,null),Z=!0},p(v,z){const Me={};z[1]&33554432&&(Me.$$scope={dirty:z,ctx:v}),t.$set(Me);const k={};z[0]&65536&&(k.hidden=!v[16]),z[0]&65536|z[1]&33554432&&(k.$$scope={dirty:z,ctx:v}),u.$set(k);const M={};z[0]&8192&&(M.error=v[13].name),!c&&z[0]&2&&(c=!0,M.value=v[1],X(()=>c=!1)),a.$set(M);const Y={};z[0]&8192&&(Y.error=v[13].workflowType),!E&&z[0]&4&&(E=!0,Y.value=v[2],X(()=>E=!1)),$.$set(Y);const be={};z[0]&8192&&(be.error=v[13].workflowId),!q&&z[0]&8&&(q=!0,be.value=v[3],X(()=>q=!1)),x.$set(be);const $e={};z[0]&8192&&($e.error=v[13].taskQueue),!ne&&z[0]&16&&(ne=!0,$e.value=v[4],X(()=>ne=!1)),I.$set($e);const le={};z[0]&1&&(le.schedule=v[0]),z[0]&32769|z[1]&50331648&&(le.$$scope={dirty:z,ctx:v}),!ue&&z[0]&32&&(ue=!0,le.daysOfWeek=v[5],X(()=>ue=!1)),!V&&z[0]&64&&(V=!0,le.daysOfMonth=v[6],X(()=>V=!1)),!j&&z[0]&128&&(j=!0,le.months=v[7],X(()=>j=!1)),!ae&&z[0]&256&&(ae=!0,le.days=v[8],X(()=>ae=!1)),!re&&z[0]&512&&(re=!0,le.hour=v[9],X(()=>re=!1)),!se&&z[0]&1024&&(se=!0,le.minute=v[10],X(()=>se=!1)),!_e&&z[0]&2048&&(_e=!0,le.second=v[11],X(()=>_e=!1)),!ce&&z[0]&16384&&(ce=!0,le.phase=v[14],X(()=>ce=!1)),!Q&&z[0]&4096&&(Q=!0,le.cronString=v[12],X(()=>Q=!1)),R.$set(le)},i(v){Z||(D(t.$$.fragment,v),D(u.$$.fragment,v),D(a.$$.fragment,v),D($.$$.fragment,v),D(x.$$.fragment,v),D(I.$$.fragment,v),D(R.$$.fragment,v),Z=!0)},o(v){S(t.$$.fragment,v),S(u.$$.fragment,v),S(a.$$.fragment,v),S($.$$.fragment,v),S(x.$$.fragment,v),S(I.$$.fragment,v),S(R.$$.fragment,v),Z=!1},d(v){v&&g(e),U(t),v&&g(o),v&&g(s),U(u),U(a),U($),U(x),U(I),U(R)}}}function Cn(n){let e,t;return e=new qt({props:{title:n[20]}}),{c(){A(e.$$.fragment)},l(l){L(e.$$.fragment,l)},m(l,i){N(e,l,i),t=!0},p:me,i(l){t||(D(e.$$.fragment,l),t=!0)},o(l){S(e.$$.fragment,l),t=!1},d(l){U(e,l)}}}function Hn(n){let e;return{c(){e=ee(n[21])},l(t){e=te(t,n[21])},m(t,l){K(t,e,l)},p:me,d(t){t&&g(e)}}}function Pn(n){let e;return{c(){e=ee(n[16])},l(t){e=te(t,n[16])},m(t,l){K(t,e,l)},p(t,l){l[0]&65536&&Wt(e,t[16])},d(t){t&&g(e)}}}function An(n){let e;return{c(){e=ee(n[23])},l(t){e=te(t,n[23])},m(t,l){K(t,e,l)},p:me,d(t){t&&g(e)}}}function Ln(n){let e=B("common.cancel")+"",t;return{c(){t=ee(e)},l(l){t=te(l,e)},m(l,i){K(l,t,i)},p:me,d(l){l&&g(t)}}}function Nn(n){let e,t,l,i,f;function o(){return n[32](n[55])}return t=new at({props:{disabled:n[15](n[55])||!rt(),$$slots:{default:[An]},$$scope:{ctx:n}}}),t.$on("click",o),i=new at({props:{variant:"ghost",href:n[22],$$slots:{default:[Ln]},$$scope:{ctx:n}}}),{c(){e=C("div"),A(t.$$.fragment),l=W(),A(i.$$.fragment),this.h()},l(s){e=H(s,"DIV",{class:!0});var u=P(e);L(t.$$.fragment,u),l=T(u),L(i.$$.fragment,u),u.forEach(g),this.h()},h(){F(e,"class","mt-8 flex items-center gap-2")},m(s,u){K(s,e,u),N(t,e,null),m(e,l),N(i,e,null),f=!0},p(s,u){n=s;const r={};u[0]&32768|u[1]&16777216&&(r.disabled=n[15](n[55])||!rt()),u[1]&33554432&&(r.$$scope={dirty:u,ctx:n}),t.$set(r);const d={};u[1]&33554432&&(d.$$scope={dirty:u,ctx:n}),i.$set(d)},i(s){f||(D(t.$$.fragment,s),D(i.$$.fragment,s),f=!0)},o(s){S(t.$$.fragment,s),S(i.$$.fragment,s),f=!1},d(s){s&&g(e),U(t),U(i)}}}function Un(n){let e,t,l,i;const f=[Cn,Vn],o=[];function s(u,r){return u[17]?0:1}return t=s(n),l=o[t]=f[t](n),{c(){e=C("div"),l.c(),this.h()},l(u){e=H(u,"DIV",{class:!0});var r=P(e);l.l(r),r.forEach(g),this.h()},h(){F(e,"class","pb-20")},m(u,r){K(u,e,r),o[t].m(e,null),i=!0},p(u,r){let d=t;t=s(u),t===d?o[t].p(u,r):(Ye(),S(o[d],1,1,()=>{o[d]=null}),Ze(),l=o[t],l?l.p(u,r):(l=o[t]=f[t](u),l.c()),D(l,1),l.m(e,null))},i(u){i||(D(l),i=!0)},o(u){S(l),i=!1},d(u){u&&g(e),o[t].d()}}}function Bn(n,e,t){let l,i,f,o;Qe(n,Je,k=>t(16,i=k)),Qe(n,yt,k=>t(53,f=k)),Qe(n,Nt,k=>t(17,o=k));var s,u,r,d,a,c,_,h,$,E,p;let{schedule:y=null}=e,{onConfirm:x}=e,q=f.params.namespace,b=f.params.schedule,w=B(y?"schedules.edit":"schedules.create"),I=B(y?"schedules.editing":"schedules.creating"),ne=B(y?"schedules.back-to-schedule":"schedules.back-to-schedules"),ie=y?Qt({namespace:q,scheduleId:b}):Ft({namespace:q}),R=y?B("common.save"):B("schedules.create"),ue={},V=b??"",j=(d=(r=(u=(s=y==null?void 0:y.action)===null||s===void 0?void 0:s.startWorkflow)===null||u===void 0?void 0:u.workflowType)===null||r===void 0?void 0:r.name)!==null&&d!==void 0?d:"",ae=(_=(c=(a=y==null?void 0:y.action)===null||a===void 0?void 0:a.startWorkflow)===null||c===void 0?void 0:c.workflowId)!==null&&_!==void 0?_:"",re=(p=(E=($=(h=y==null?void 0:y.action)===null||h===void 0?void 0:h.startWorkflow)===null||$===void 0?void 0:$.taskQueue)===null||E===void 0?void 0:E.name)!==null&&p!==void 0?p:"",se=[],_e=[],ce=[],Q="",Z="",O="",de="",fe="",oe="";const he=(k,M)=>{x(k,{name:V,workflowType:j,workflowId:ae,taskQueue:re,hour:Z,minute:O,second:de,phase:fe,cronString:oe,daysOfWeek:se,daysOfMonth:_e,days:Q,months:ce},M)},ve=k=>{const{id:M}=k.target;t(13,ue[M]=!1,ue),i&<(Je,i="",i)},ke=k=>{const{value:M,id:Y}=k.target;M.trim()?t(13,ue[Y]=!1,ue):t(13,ue[Y]=!0,ue)};St(()=>lt(Je,i="",i));function pe(k){V=k,t(1,V)}function Se(k){j=k,t(2,j)}function De(k){ae=k,t(3,ae)}function Ae(k){re=k,t(4,re)}const We=k=>he(k,y);function Le(k){se=k,t(5,se)}function Te(k){_e=k,t(6,_e)}function Ne(k){ce=k,t(7,ce)}function Ve(k){Q=k,t(8,Q)}function Ue(k){Z=k,t(9,Z)}function ge(k){O=k,t(10,O)}function v(k){de=k,t(11,de)}function z(k){fe=k,t(14,fe)}function Me(k){oe=k,t(12,oe)}return n.$$set=k=>{"schedule"in k&&t(0,y=k.schedule),"onConfirm"in k&&t(27,x=k.onConfirm)},n.$$.update=()=>{n.$$.dirty[0]&8190&&t(15,l=k=>!V||!j||!ae||!re?!0:k==="interval"?!Q&&!Z&&!O&&!de:k==="week"?!se.length:k==="month"?!_e.length||!ce.length:k==="string"?!oe:!1)},[y,V,j,ae,re,se,_e,ce,Q,Z,O,de,oe,ue,fe,l,i,o,b,w,I,ne,ie,R,he,ve,ke,x,pe,Se,De,Ae,We,Le,Te,Ne,Ve,Ue,ge,v,z,Me]}class nl extends ye{constructor(e){super(),Ie(this,e,Bn,Un,Ee,{schedule:0,onConfirm:27},null,[-1,-1])}}export{nl as S}; +import{S as ye,b as Ie,a as Ee,G as $t,O as Xe,m as C,p as H,q as P,k as g,P as tt,Q as Oe,f as K,H as wt,I as kt,J as Ot,R as Et,j as D,g as S,T as nt,af as Mt,K as Qe,U as Dt,u as F,L as m,n as me,a7 as Re,w as ee,x as te,M as ze,ag as Ge,c as W,d as T,A as G,a0 as J,C as A,D as L,E as N,a1 as X,F as U,z as Ye,h as Ze,a6 as St,a5 as lt,y as Wt}from"./index.0942deb7.js";import{p as yt}from"./stores.255470ec.js";import{I as we}from"./input.1a8beba6.js";import{c as Tt,T as Vt,a as Ct,b as Be}from"./tab.f6368f6e.js";import{t as B}from"./translate.135d909a.js";import{m as st,g as je,w as it,S as Ht,O as Ke}from"./option.d4e4d556.js";import{I as Pt}from"./icon.33308831.js";import{T as At,a as ut}from"./toggle-buttons.e3375436.js";import{S as Lt,e as Je,l as Nt}from"./schedules.50ce05b5.js";import{A as Ut}from"./alert.c46cfdd9.js";import{B as at}from"./button.72eef818.js";import{L as Bt}from"./link.faba7c50.js";import{L as qt}from"./loading.e7565465.js";import{q as Qt,d as Ft}from"./route-for.18f9590b.js";import{w as rt}from"./write-actions-are-allowed.652105b1.js";function Kt(n){let e,t;const l=n[7].default,i=$t(l,n,n[6],null);let f=[{id:n[0]},{"aria-labelledby":n[1]},{tabindex:"0"},{role:"tabpanel"},n[4]],o={};for(let s=0;st(5,o=_)),a(r),n.$$set=_=>{e=Xe(Xe({},e),Dt(_)),t(4,f=nt(e,i)),"id"in _&&t(0,r=_.id),"tabId"in _&&t(1,d=_.tabId),"$$scope"in _&&t(6,u=_.$$scope)},n.$$.update=()=>{n.$$.dirty&33&&t(2,l=o===r)},[r,d,l,c,f,o,u,s]}class qe extends ye{constructor(e){super(),Ie(this,e,Rt,Kt,Ee,{id:0,tabId:1})}}function ft(n,e,t){const l=n.slice();return l[4]=e[t],l}function ot(n){let e,t=n[4]+"",l,i,f;function o(...s){return n[3](n[4],...s)}return{c(){e=C("button"),l=ee(t),this.h()},l(s){e=H(s,"BUTTON",{class:!0});var u=P(e);l=te(u,t),u.forEach(g),this.h()},h(){F(e,"class","cell svelte-c8o885"),Oe(e,"active",n[0].includes(n[4]))},m(s,u){K(s,e,u),m(e,l),i||(f=ze(e,"click",Ge(o)),i=!0)},p(s,u){n=s,u&3&&Oe(e,"active",n[0].includes(n[4]))},d(s){s&&g(e),i=!1,f()}}}function jt(n){let e,t,l=n[1],i=[];for(let f=0;fu+1);let{daysOfMonth:i}=e;const f=(s,u)=>{s.metaKey?i.includes(u)?i.filter(r=>r!==u):t(0,i=[...i,u]):t(0,i=[u])},o=(s,u)=>f(u,s);return n.$$set=s=>{"daysOfMonth"in s&&t(0,i=s.daysOfMonth)},[i,l,f,o]}class Gt extends ye{constructor(e){super(),Ie(this,e,zt,jt,Ee,{daysOfMonth:0})}}function dt(n,e,t){const l=n.slice();return l[3]=e[t].label,l[4]=e[t].value,l}function ct(n){let e,t=n[3]+"",l,i,f,o;function s(...u){return n[2](n[4],...u)}return{c(){e=C("button"),l=ee(t),i=W(),this.h()},l(u){e=H(u,"BUTTON",{class:!0});var r=P(e);l=te(r,t),i=T(r),r.forEach(g),this.h()},h(){F(e,"class","cell svelte-hc9i32"),Oe(e,"active",n[0].includes(n[4]))},m(u,r){K(u,e,r),m(e,l),m(e,i),f||(o=ze(e,"click",Ge(s)),f=!0)},p(u,r){n=u,r&1&&Oe(e,"active",n[0].includes(n[4]))},d(u){u&&g(e),f=!1,o()}}}function Jt(n){let e,t=st,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])},f=(o,s)=>i(s,o);return n.$$set=o=>{"months"in o&&t(0,l=o.months)},[l,i,f]}class Yt extends ye{constructor(e){super(),Ie(this,e,Xt,Jt,Ee,{months:0})}}function Zt(n){let e=B("common.ante-meridiem")+"",t;return{c(){t=ee(e)},l(l){t=te(l,e)},m(l,i){K(l,t,i)},p:me,d(l){l&&g(t)}}}function xt(n){let e=B("common.post-meridiem")+"",t;return{c(){t=ee(e)},l(l){t=te(l,e)},m(l,i){K(l,t,i)},p:me,d(l){l&&g(t)}}}function en(n){let e,t,l,i;return e=new ut({props:{active:n[2]==="AM",$$slots:{default:[Zt]},$$scope:{ctx:n}}}),e.$on("click",n[7]),l=new ut({props:{active:n[2]==="PM",$$slots:{default:[xt]},$$scope:{ctx:n}}}),l.$on("click",n[8]),{c(){A(e.$$.fragment),t=W(),A(l.$$.fragment)},l(f){L(e.$$.fragment,f),t=T(f),L(l.$$.fragment,f)},m(f,o){N(e,f,o),K(f,t,o),N(l,f,o),i=!0},p(f,o){const s={};o&4&&(s.active=f[2]==="AM"),o&512&&(s.$$scope={dirty:o,ctx:f}),e.$set(s);const u={};o&4&&(u.active=f[2]==="PM"),o&512&&(u.$$scope={dirty:o,ctx:f}),l.$set(u)},i(f){i||(D(e.$$.fragment,f),D(l.$$.fragment,f),i=!0)},o(f){S(e.$$.fragment,f),S(l.$$.fragment,f),i=!1},d(f){U(e,f),f&&g(t),U(l,f)}}}function tn(n){let e,t,l=B("schedules.time-view-heading")+"",i,f,o,s=B("schedules.time-view-description")+"",u,r,d,a,c,_,h,$,E,p,y,x,q,b,w,I,ne,ie,R,ue=B("common.based-on-time-preface")+"",V,j,ae;function re(Q){n[5](Q)}let se={id:"hour-time",label:B("common.hour-abbreviated"),labelHidden:!0,placeholder:"00",suffix:B("common.hour-abbreviated"),maxLength:2,error:n[3](n[1],12)};n[1]!==void 0&&(se.value=n[1]),a=new we({props:se}),G.push(()=>J(a,"value",re));function _e(Q){n[6](Q)}let ce={id:"minute-time",label:B("common.minutes-abbreviated"),labelHidden:!0,placeholder:"00",suffix:B("common.minutes-abbreviated"),maxLength:2,error:n[3](n[0],59)};return n[0]!==void 0&&(ce.value=n[0]),p=new we({props:ce}),G.push(()=>J(p,"value",_e)),b=new At({props:{$$slots:{default:[en]},$$scope:{ctx:n}}}),ne=new Pt({props:{name:"clock","aria-hidden":"true"}}),{c(){e=C("div"),t=C("h3"),i=ee(l),f=W(),o=C("p"),u=ee(s),r=W(),d=C("div"),A(a.$$.fragment),_=W(),h=C("div"),$=ee(":"),E=W(),A(p.$$.fragment),x=W(),q=C("div"),A(b.$$.fragment),w=W(),I=C("div"),A(ne.$$.fragment),ie=W(),R=C("span"),V=ee(ue),j=ee(" Universal Standard Time (UTC)"),this.h()},l(Q){e=H(Q,"DIV",{class:!0});var Z=P(e);t=H(Z,"H3",{class:!0});var O=P(t);i=te(O,l),O.forEach(g),f=T(Z),o=H(Z,"P",{});var de=P(o);u=te(de,s),de.forEach(g),r=T(Z),d=H(Z,"DIV",{class:!0});var fe=P(d);L(a.$$.fragment,fe),_=T(fe),h=H(fe,"DIV",{class:!0});var oe=P(h);$=te(oe,":"),oe.forEach(g),E=T(fe),L(p.$$.fragment,fe),x=T(fe),q=H(fe,"DIV",{class:!0});var he=P(q);L(b.$$.fragment,he),he.forEach(g),fe.forEach(g),w=T(Z),I=H(Z,"DIV",{class:!0});var ve=P(I);L(ne.$$.fragment,ve),ie=T(ve),R=H(ve,"SPAN",{class:!0});var ke=P(R);V=te(ke,ue),j=te(ke," Universal Standard Time (UTC)"),ke.forEach(g),ve.forEach(g),Z.forEach(g),this.h()},h(){F(t,"class","text-lg font-medium"),F(h,"class","hidden lg:block"),F(q,"class","ml-2"),F(d,"class","flex flex-col items-center gap-2 lg:flex-row"),F(R,"class","text-xs font-normal text-gray-500"),F(I,"class","flex w-full flex-row items-center gap-2"),F(e,"class","flex flex-col gap-4")},m(Q,Z){K(Q,e,Z),m(e,t),m(t,i),m(e,f),m(e,o),m(o,u),m(e,r),m(e,d),N(a,d,null),m(d,_),m(d,h),m(h,$),m(d,E),N(p,d,null),m(d,x),m(d,q),N(b,q,null),m(e,w),m(e,I),N(ne,I,null),m(I,ie),m(I,R),m(R,V),m(R,j),ae=!0},p(Q,[Z]){const O={};Z&2&&(O.error=Q[3](Q[1],12)),!c&&Z&2&&(c=!0,O.value=Q[1],X(()=>c=!1)),a.$set(O);const de={};Z&1&&(de.error=Q[3](Q[0],59)),!y&&Z&1&&(y=!0,de.value=Q[0],X(()=>y=!1)),p.$set(de);const fe={};Z&516&&(fe.$$scope={dirty:Z,ctx:Q}),b.$set(fe)},i(Q){ae||(D(a.$$.fragment,Q),D(p.$$.fragment,Q),D(b.$$.fragment,Q),D(ne.$$.fragment,Q),ae=!0)},o(Q){S(a.$$.fragment,Q),S(p.$$.fragment,Q),S(b.$$.fragment,Q),S(ne.$$.fragment,Q),ae=!1},d(Q){Q&&g(e),U(a),U(p),U(b),U(ne)}}}function nn(n,e,t){let{hour:l=""}=e,{minute:i=""}=e,f="",o="AM";const s=(c,_)=>c?isNaN(parseInt(c))||parseInt(c)>_:!1;function u(c){f=c,t(1,f)}function r(c){i=c,t(0,i)}const d=()=>t(2,o="AM"),a=()=>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&&(f?f==="12"?t(4,l=o==="AM"?"00":"12"):o==="PM"?t(4,l=(parseInt(f)+12).toString()):t(4,l=f):t(4,l=""))},[i,f,o,s,l,u,r,d,a]}class It extends ye{constructor(e){super(),Ie(this,e,nn,tn,Ee,{hour:4,minute:0})}}function ln(n){let e,t,l=B("schedules.recurring-dates-heading")+"",i,f,o,s=B("schedules.recurring-dates-description")+"",u,r,d,a,c,_,h,$,E,p,y,x,q;function b(V){n[4](V)}let w={};n[0]!==void 0&&(w.daysOfMonth=n[0]),a=new Gt({props:w}),G.push(()=>J(a,"daysOfMonth",b));function I(V){n[5](V)}let ne={};n[1]!==void 0&&(ne.months=n[1]),h=new Yt({props:ne}),G.push(()=>J(h,"months",I));function ie(V){n[6](V)}function R(V){n[7](V)}let ue={};return n[2]!==void 0&&(ue.hour=n[2]),n[3]!==void 0&&(ue.minute=n[3]),p=new It({props:ue}),G.push(()=>J(p,"hour",ie)),G.push(()=>J(p,"minute",R)),{c(){e=C("div"),t=C("h3"),i=ee(l),f=W(),o=C("p"),u=ee(s),r=W(),d=C("div"),A(a.$$.fragment),_=W(),A(h.$$.fragment),E=W(),A(p.$$.fragment),this.h()},l(V){e=H(V,"DIV",{class:!0});var j=P(e);t=H(j,"H3",{class:!0});var ae=P(t);i=te(ae,l),ae.forEach(g),f=T(j),o=H(j,"P",{});var re=P(o);u=te(re,s),re.forEach(g),r=T(j),d=H(j,"DIV",{class:!0});var se=P(d);L(a.$$.fragment,se),_=T(se),L(h.$$.fragment,se),se.forEach(g),j.forEach(g),E=T(V),L(p.$$.fragment,V),this.h()},h(){F(t,"class","text-lg font-medium"),F(d,"class","flex w-full flex-col gap-4"),F(e,"class","my-2 flex flex-col gap-4")},m(V,j){K(V,e,j),m(e,t),m(t,i),m(e,f),m(e,o),m(o,u),m(e,r),m(e,d),N(a,d,null),m(d,_),N(h,d,null),K(V,E,j),N(p,V,j),q=!0},p(V,[j]){const ae={};!c&&j&1&&(c=!0,ae.daysOfMonth=V[0],X(()=>c=!1)),a.$set(ae);const re={};!$&&j&2&&($=!0,re.months=V[1],X(()=>$=!1)),h.$set(re);const se={};!y&&j&4&&(y=!0,se.hour=V[2],X(()=>y=!1)),!x&&j&8&&(x=!0,se.minute=V[3],X(()=>x=!1)),p.$set(se)},i(V){q||(D(a.$$.fragment,V),D(h.$$.fragment,V),D(p.$$.fragment,V),q=!0)},o(V){S(a.$$.fragment,V),S(h.$$.fragment,V),S(p.$$.fragment,V),q=!1},d(V){V&&g(e),U(a),U(h),V&&g(E),U(p,V)}}}function sn(n,e,t){let{daysOfMonth:l}=e,{months:i}=e,{hour:f}=e,{minute:o}=e;function s(a){l=a,t(0,l)}function u(a){i=a,t(1,i)}function r(a){f=a,t(2,f)}function d(a){o=a,t(3,o)}return n.$$set=a=>{"daysOfMonth"in a&&t(0,l=a.daysOfMonth),"months"in a&&t(1,i=a.months),"hour"in a&&t(2,f=a.hour),"minute"in a&&t(3,o=a.minute)},[l,i,f,o,s,u,r,d]}class un extends ye{constructor(e){super(),Ie(this,e,sn,ln,Ee,{daysOfMonth:0,months:1,hour:2,minute:3})}}function ht(n,e,t){const l=n.slice();return l[4]=e[t].label,l[5]=e[t].value,l}function _t(n,e,t){const l=n.slice();return l[4]=e[t].label,l[5]=e[t].value,l}function mt(n){let e,t=n[4]+"",l,i,f;function o(...s){return n[2](n[5],...s)}return{c(){e=C("button"),l=ee(t),this.h()},l(s){e=H(s,"BUTTON",{class:!0});var u=P(e);l=te(u,t),u.forEach(g),this.h()},h(){F(e,"class","cell svelte-xr91x7"),Oe(e,"active",n[0].includes(n[5]))},m(s,u){K(s,e,u),m(e,l),i||(f=ze(e,"click",Ge(o)),i=!0)},p(s,u){n=s,u&1&&Oe(e,"active",n[0].includes(n[5]))},d(s){s&&g(e),i=!1,f()}}}function gt(n){let e,t=n[4]+"",l,i,f;function o(...s){return n[3](n[5],...s)}return{c(){e=C("button"),l=ee(t),this.h()},l(s){e=H(s,"BUTTON",{class:!0});var u=P(e);l=te(u,t),u.forEach(g),this.h()},h(){F(e,"class","cell svelte-xr91x7"),Oe(e,"active",n[0].includes(n[5]))},m(s,u){K(s,e,u),m(e,l),i||(f=ze(e,"click",Ge(o)),i=!0)},p(s,u){n=s,u&1&&Oe(e,"active",n[0].includes(n[5]))},d(s){s&&g(e),i=!1,f()}}}function an(n){let e,t,l,i,f=je,o=[];for(let r=0;r{s.metaKey?(je.find(r=>r.value===u)?t(0,l=[u]):l.find(r=>je.find(d=>d.value===r))&&t(0,l=[u]),l.includes(u)?l.filter(r=>r!==u):t(0,l=[...l,u])):t(0,l=[u])},f=(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,f,o]}class fn extends ye{constructor(e){super(),Ie(this,e,rn,an,Ee,{daysOfWeek:0})}}function on(n){let e,t,l=B("schedules.recurring-days-heading")+"",i,f,o,s=B("schedules.recurring-days-description")+"",u,r,d,a,c,_,h,$,E;function p(w){n[3](w)}let y={};n[0]!==void 0&&(y.daysOfWeek=n[0]),d=new fn({props:y}),G.push(()=>J(d,"daysOfWeek",p));function x(w){n[4](w)}function q(w){n[5](w)}let b={};return n[1]!==void 0&&(b.hour=n[1]),n[2]!==void 0&&(b.minute=n[2]),_=new It({props:b}),G.push(()=>J(_,"hour",x)),G.push(()=>J(_,"minute",q)),{c(){e=C("div"),t=C("h3"),i=ee(l),f=W(),o=C("p"),u=ee(s),r=W(),A(d.$$.fragment),c=W(),A(_.$$.fragment),this.h()},l(w){e=H(w,"DIV",{class:!0});var I=P(e);t=H(I,"H3",{class:!0});var ne=P(t);i=te(ne,l),ne.forEach(g),f=T(I),o=H(I,"P",{});var ie=P(o);u=te(ie,s),ie.forEach(g),r=T(I),L(d.$$.fragment,I),I.forEach(g),c=T(w),L(_.$$.fragment,w),this.h()},h(){F(t,"class","text-lg font-medium"),F(e,"class","my-2 flex flex-col gap-4")},m(w,I){K(w,e,I),m(e,t),m(t,i),m(e,f),m(e,o),m(o,u),m(e,r),N(d,e,null),K(w,c,I),N(_,w,I),E=!0},p(w,[I]){const ne={};!a&&I&1&&(a=!0,ne.daysOfWeek=w[0],X(()=>a=!1)),d.$set(ne);const ie={};!h&&I&2&&(h=!0,ie.hour=w[1],X(()=>h=!1)),!$&&I&4&&($=!0,ie.minute=w[2],X(()=>$=!1)),_.$set(ie)},i(w){E||(D(d.$$.fragment,w),D(_.$$.fragment,w),E=!0)},o(w){S(d.$$.fragment,w),S(_.$$.fragment,w),E=!1},d(w){w&&g(e),U(d),w&&g(c),U(_,w)}}}function dn(n,e,t){let{daysOfWeek:l}=e,{hour:i}=e,{minute:f}=e;function o(r){l=r,t(0,l)}function s(r){i=r,t(1,i)}function u(r){f=r,t(2,f)}return n.$$set=r=>{"daysOfWeek"in r&&t(0,l=r.daysOfWeek),"hour"in r&&t(1,i=r.hour),"minute"in r&&t(2,f=r.minute)},[l,i,f,o,s,u]}class cn extends ye{constructor(e){super(),Ie(this,e,dn,on,Ee,{daysOfWeek:0,hour:1,minute:2})}}function hn(n){let e=B("common.days")+"",t;return{c(){t=ee(e)},l(l){t=te(l,e)},m(l,i){K(l,t,i)},p:me,d(l){l&&g(t)}}}function _n(n){let e=B("common.hours-abbreviated")+"",t;return{c(){t=ee(e)},l(l){t=te(l,e)},m(l,i){K(l,t,i)},p:me,d(l){l&&g(t)}}}function mn(n){let e=B("common.minutes-abbreviated")+"",t;return{c(){t=ee(e)},l(l){t=te(l,e)},m(l,i){K(l,t,i)},p:me,d(l){l&&g(t)}}}function gn(n){let e=B("common.seconds-abbreviated")+"",t;return{c(){t=ee(e)},l(l){t=te(l,e)},m(l,i){K(l,t,i)},p:me,d(l){l&&g(t)}}}function pn(n){let e,t,l,i,f,o,s,u;return e=new Ke({props:{value:"days",$$slots:{default:[hn]},$$scope:{ctx:n}}}),l=new Ke({props:{value:"hrs",$$slots:{default:[_n]},$$scope:{ctx:n}}}),f=new Ke({props:{value:"min",$$slots:{default:[mn]},$$scope:{ctx:n}}}),s=new Ke({props:{value:"sec",$$slots:{default:[gn]},$$scope:{ctx:n}}}),{c(){A(e.$$.fragment),t=W(),A(l.$$.fragment),i=W(),A(f.$$.fragment),o=W(),A(s.$$.fragment)},l(r){L(e.$$.fragment,r),t=T(r),L(l.$$.fragment,r),i=T(r),L(f.$$.fragment,r),o=T(r),L(s.$$.fragment,r)},m(r,d){N(e,r,d),K(r,t,d),N(l,r,d),K(r,i,d),N(f,r,d),K(r,o,d),N(s,r,d),u=!0},p(r,d){const a={};d&16384&&(a.$$scope={dirty:d,ctx:r}),e.$set(a);const c={};d&16384&&(c.$$scope={dirty:d,ctx:r}),l.$set(c);const _={};d&16384&&(_.$$scope={dirty:d,ctx:r}),f.$set(_);const h={};d&16384&&(h.$$scope={dirty:d,ctx:r}),s.$set(h)},i(r){u||(D(e.$$.fragment,r),D(l.$$.fragment,r),D(f.$$.fragment,r),D(s.$$.fragment,r),u=!0)},o(r){S(e.$$.fragment,r),S(l.$$.fragment,r),S(f.$$.fragment,r),S(s.$$.fragment,r),u=!1},d(r){U(e,r),r&&g(t),U(l,r),r&&g(i),U(f,r),r&&g(o),U(s,r)}}}function vn(n){let e,t,l=B("schedules.interval-view-heading")+"",i,f,o,s=B("schedules.interval-view-description")+"",u,r,d,a,c,_,h,$,E,p,y,x,q,b,w,I,ne,ie,R,ue,V,j,ae,re,se,_e=B("schedules.offset-heading")+"",ce,Q,Z,O=B("schedules.offset-description")+"",de,fe,oe,he,ve,ke,pe,Se,De;function Ae(M){n[8](M)}let We={id:"days",label:B("common.days"),labelHidden:!0,placeholder:"00",suffix:B("common.days"),maxLength:3,error:n[7](n[0])};n[0]!==void 0&&(We.value=n[0]),a=new we({props:We}),G.push(()=>J(a,"value",Ae));function Le(M){n[9](M)}let Te={id:"hour-interval",label:B("common.hours-abbreviated"),labelHidden:!0,placeholder:"00",suffix:B("common.hours-abbreviated"),maxLength:2,error:n[7](n[1])};n[1]!==void 0&&(Te.value=n[1]),p=new we({props:Te}),G.push(()=>J(p,"value",Le));function Ne(M){n[10](M)}let Ve={id:"minute-interval",label:B("common.minutes-abbreviated"),labelHidden:!0,placeholder:"00",suffix:B("common.minutes-abbreviated"),maxLength:2,error:n[7](n[2])};n[2]!==void 0&&(Ve.value=n[2]),I=new we({props:Ve}),G.push(()=>J(I,"value",Ne));function Ue(M){n[11](M)}let ge={id:"second",label:B("common.seconds-abbreviated"),labelHidden:!0,placeholder:"00",suffix:B("common.seconds-abbreviated"),maxLength:2,error:n[7](n[3])};n[3]!==void 0&&(ge.value=n[3]),j=new we({props:ge}),G.push(()=>J(j,"value",Ue));function v(M){n[12](M)}let z={id:"phase",label:B("schedules.offset-heading"),labelHidden:!0,placeholder:"00",error:n[7](n[4]),unroundRight:!0};n[5]!==void 0&&(z.value=n[5]),he=new we({props:z}),G.push(()=>J(he,"value",v));function Me(M){n[13](M)}let k={label:B("schedules.offset-unit"),labelHidden:!0,unroundLeft:!0,id:"phase-unit",$$slots:{default:[pn]},$$scope:{ctx:n}};return n[6]!==void 0&&(k.value=n[6]),pe=new Ht({props:k}),G.push(()=>J(pe,"value",Me)),{c(){e=C("div"),t=C("h3"),i=ee(l),f=W(),o=C("p"),u=ee(s),r=W(),d=C("div"),A(a.$$.fragment),_=W(),h=C("div"),$=ee(":"),E=W(),A(p.$$.fragment),x=W(),q=C("div"),b=ee(":"),w=W(),A(I.$$.fragment),ie=W(),R=C("div"),ue=ee(":"),V=W(),A(j.$$.fragment),re=W(),se=C("h3"),ce=ee(_e),Q=W(),Z=C("p"),de=ee(O),fe=W(),oe=C("div"),A(he.$$.fragment),ke=W(),A(pe.$$.fragment),this.h()},l(M){e=H(M,"DIV",{class:!0});var Y=P(e);t=H(Y,"H3",{class:!0});var be=P(t);i=te(be,l),be.forEach(g),f=T(Y),o=H(Y,"P",{});var $e=P(o);u=te($e,s),$e.forEach(g),r=T(Y),d=H(Y,"DIV",{class:!0});var le=P(d);L(a.$$.fragment,le),_=T(le),h=H(le,"DIV",{class:!0});var Ce=P(h);$=te(Ce,":"),Ce.forEach(g),E=T(le),L(p.$$.fragment,le),x=T(le),q=H(le,"DIV",{class:!0});var He=P(q);b=te(He,":"),He.forEach(g),w=T(le),L(I.$$.fragment,le),ie=T(le),R=H(le,"DIV",{class:!0});var Pe=P(R);ue=te(Pe,":"),Pe.forEach(g),V=T(le),L(j.$$.fragment,le),le.forEach(g),re=T(Y),se=H(Y,"H3",{class:!0});var xe=P(se);ce=te(xe,_e),xe.forEach(g),Q=T(Y),Z=H(Y,"P",{});var et=P(Z);de=te(et,O),et.forEach(g),fe=T(Y),oe=H(Y,"DIV",{class:!0});var Fe=P(oe);L(he.$$.fragment,Fe),ke=T(Fe),L(pe.$$.fragment,Fe),Fe.forEach(g),Y.forEach(g),this.h()},h(){F(t,"class","text-lg font-medium"),F(h,"class","hidden lg:block"),F(q,"class","hidden lg:block"),F(R,"class","hidden lg:block"),F(d,"class","flex flex-col items-center gap-2 lg:flex-row"),F(se,"class","mt-4 text-lg font-medium"),F(oe,"class","flex w-48 gap-0"),F(e,"class","my-2 flex flex-col gap-4")},m(M,Y){K(M,e,Y),m(e,t),m(t,i),m(e,f),m(e,o),m(o,u),m(e,r),m(e,d),N(a,d,null),m(d,_),m(d,h),m(h,$),m(d,E),N(p,d,null),m(d,x),m(d,q),m(q,b),m(d,w),N(I,d,null),m(d,ie),m(d,R),m(R,ue),m(d,V),N(j,d,null),m(e,re),m(e,se),m(se,ce),m(e,Q),m(e,Z),m(Z,de),m(e,fe),m(e,oe),N(he,oe,null),m(oe,ke),N(pe,oe,null),De=!0},p(M,[Y]){const be={};Y&1&&(be.error=M[7](M[0])),!c&&Y&1&&(c=!0,be.value=M[0],X(()=>c=!1)),a.$set(be);const $e={};Y&2&&($e.error=M[7](M[1])),!y&&Y&2&&(y=!0,$e.value=M[1],X(()=>y=!1)),p.$set($e);const le={};Y&4&&(le.error=M[7](M[2])),!ne&&Y&4&&(ne=!0,le.value=M[2],X(()=>ne=!1)),I.$set(le);const Ce={};Y&8&&(Ce.error=M[7](M[3])),!ae&&Y&8&&(ae=!0,Ce.value=M[3],X(()=>ae=!1)),j.$set(Ce);const He={};Y&16&&(He.error=M[7](M[4])),!ve&&Y&32&&(ve=!0,He.value=M[5],X(()=>ve=!1)),he.$set(He);const Pe={};Y&16384&&(Pe.$$scope={dirty:Y,ctx:M}),!Se&&Y&64&&(Se=!0,Pe.value=M[6],X(()=>Se=!1)),pe.$set(Pe)},i(M){De||(D(a.$$.fragment,M),D(p.$$.fragment,M),D(I.$$.fragment,M),D(j.$$.fragment,M),D(he.$$.fragment,M),D(pe.$$.fragment,M),De=!0)},o(M){S(a.$$.fragment,M),S(p.$$.fragment,M),S(I.$$.fragment,M),S(j.$$.fragment,M),S(he.$$.fragment,M),S(pe.$$.fragment,M),De=!1},d(M){M&&g(e),U(a),U(p),U(I),U(j),U(he),U(pe)}}}function bn(n,e,t){let{days:l=""}=e,{hour:i=""}=e,{minute:f=""}=e,{second:o=""}=e,{phase:s=""}=e,u="",r="min";const d=p=>p?isNaN(parseInt(p)):!1;function a(p){l=p,t(0,l)}function c(p){i=p,t(1,i)}function _(p){f=p,t(2,f)}function h(p){o=p,t(3,o)}function $(p){u=p,t(5,u)}function E(p){r=p,t(6,r)}return n.$$set=p=>{"days"in p&&t(0,l=p.days),"hour"in p&&t(1,i=p.hour),"minute"in p&&t(2,f=p.minute),"second"in p&&t(3,o=p.second),"phase"in p&&t(4,s=p.phase)},n.$$.update=()=>{n.$$.dirty&96&&u&&(r==="days"?t(4,s=(parseInt(u)*60*60*24).toString()+"s"):r==="hrs"?t(4,s=(parseInt(u)*60*60).toString()+"s"):r==="min"?t(4,s=(parseInt(u)*60).toString()+"s"):r==="sec"&&t(4,s=parseInt(u).toString()+"s"))},[l,i,f,o,s,u,r,d,a,c,_,h,$,E]}class $n extends ye{constructor(e){super(),Ie(this,e,bn,vn,Ee,{days:0,hour:1,minute:2,second:3,phase:4})}}const wn=n=>({preset:n[0]&1024}),pt=n=>({preset:n[10]});function vt(n){let e,t;return e=new Be({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 f={};i[0]&1024&&(f.onClick=l[12]),e.$set(f)},i(l){t||(D(e.$$.fragment,l),t=!0)},o(l){S(e.$$.fragment,l),t=!1},d(l){U(e,l)}}}function kn(n){let e,t,l,i,f,o,s,u,r,d=n[9]&&vt(n);return t=new Be({props:{label:"Interval",id:"interval-tab",panelId:"interval-panel",onClick:n[13]}}),i=new Be({props:{label:"Days of the Week",id:"daily-tab",panelId:"daily-panel",onClick:n[14]}}),o=new Be({props:{label:"Days of the Month",id:"monthly-tab",panelId:"monthly-panel",onClick:n[15]}}),u=new Be({props:{label:"String",id:"string-tab",panelId:"string-panel",onClick:n[16]}}),{c(){d&&d.c(),e=W(),A(t.$$.fragment),l=W(),A(i.$$.fragment),f=W(),A(o.$$.fragment),s=W(),A(u.$$.fragment)},l(a){d&&d.l(a),e=T(a),L(t.$$.fragment,a),l=T(a),L(i.$$.fragment,a),f=T(a),L(o.$$.fragment,a),s=T(a),L(u.$$.fragment,a)},m(a,c){d&&d.m(a,c),K(a,e,c),N(t,a,c),K(a,l,c),N(i,a,c),K(a,f,c),N(o,a,c),K(a,s,c),N(u,a,c),r=!0},p(a,c){a[9]?d?(d.p(a,c),c[0]&512&&D(d,1)):(d=vt(a),d.c(),D(d,1),d.m(e.parentNode,e)):d&&(Ye(),S(d,1,1,()=>{d=null}),Ze());const _={};c[0]&1024&&(_.onClick=a[13]),t.$set(_);const h={};c[0]&1024&&(h.onClick=a[14]),i.$set(h);const $={};c[0]&1024&&($.onClick=a[15]),o.$set($);const E={};c[0]&1024&&(E.onClick=a[16]),u.$set(E)},i(a){r||(D(d),D(t.$$.fragment,a),D(i.$$.fragment,a),D(o.$$.fragment,a),D(u.$$.fragment,a),r=!0)},o(a){S(d),S(t.$$.fragment,a),S(i.$$.fragment,a),S(o.$$.fragment,a),S(u.$$.fragment,a),r=!1},d(a){d&&d.d(a),a&&g(e),U(t,a),a&&g(l),U(i,a),a&&g(f),U(o,a),a&&g(s),U(u,a)}}}function bt(n){let e,t;return e=new qe({props:{id:"existing-panel",tabId:"existing-tab",class:"w-full",$$slots:{default:[On]},$$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 f={};i[0]&1073742336&&(f.$$scope={dirty:i,ctx:l}),e.$set(f)},i(l){t||(D(e.$$.fragment,l),t=!0)},o(l){S(e.$$.fragment,l),t=!1},d(l){U(e,l)}}}function On(n){var l,i,f,o,s,u;let e,t;return e=new Lt({props:{calendar:(f=(i=(l=n[9])==null?void 0:l.spec)==null?void 0:i.structuredCalendar)==null?void 0:f[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(r){L(e.$$.fragment,r)},m(r,d){N(e,r,d),t=!0},p(r,d){var c,_,h,$,E,p;const a={};d[0]&512&&(a.calendar=(h=(_=(c=r[9])==null?void 0:c.spec)==null?void 0:_.structuredCalendar)==null?void 0:h[0]),d[0]&512&&(a.interval=(p=(E=($=r[9])==null?void 0:$.spec)==null?void 0:E.interval)==null?void 0:p[0]),e.$set(a)},i(r){t||(D(e.$$.fragment,r),t=!0)},o(r){S(e.$$.fragment,r),t=!1},d(r){U(e,r)}}}function yn(n){let e,t,l,i,f,o,s;function u(h){n[17](h)}function r(h){n[18](h)}function d(h){n[19](h)}function a(h){n[20](h)}function c(h){n[21](h)}let _={};return n[3]!==void 0&&(_.days=n[3]),n[4]!==void 0&&(_.hour=n[4]),n[5]!==void 0&&(_.minute=n[5]),n[6]!==void 0&&(_.second=n[6]),n[7]!==void 0&&(_.phase=n[7]),e=new $n({props:_}),G.push(()=>J(e,"days",u)),G.push(()=>J(e,"hour",r)),G.push(()=>J(e,"minute",d)),G.push(()=>J(e,"second",a)),G.push(()=>J(e,"phase",c)),{c(){A(e.$$.fragment)},l(h){L(e.$$.fragment,h)},m(h,$){N(e,h,$),s=!0},p(h,$){const E={};!t&&$[0]&8&&(t=!0,E.days=h[3],X(()=>t=!1)),!l&&$[0]&16&&(l=!0,E.hour=h[4],X(()=>l=!1)),!i&&$[0]&32&&(i=!0,E.minute=h[5],X(()=>i=!1)),!f&&$[0]&64&&(f=!0,E.second=h[6],X(()=>f=!1)),!o&&$[0]&128&&(o=!0,E.phase=h[7],X(()=>o=!1)),e.$set(E)},i(h){s||(D(e.$$.fragment,h),s=!0)},o(h){S(e.$$.fragment,h),s=!1},d(h){U(e,h)}}}function In(n){let e,t,l,i,f;function o(d){n[22](d)}function s(d){n[23](d)}function u(d){n[24](d)}let r={};return n[0]!==void 0&&(r.daysOfWeek=n[0]),n[4]!==void 0&&(r.hour=n[4]),n[5]!==void 0&&(r.minute=n[5]),e=new cn({props:r}),G.push(()=>J(e,"daysOfWeek",o)),G.push(()=>J(e,"hour",s)),G.push(()=>J(e,"minute",u)),{c(){A(e.$$.fragment)},l(d){L(e.$$.fragment,d)},m(d,a){N(e,d,a),f=!0},p(d,a){const c={};!t&&a[0]&1&&(t=!0,c.daysOfWeek=d[0],X(()=>t=!1)),!l&&a[0]&16&&(l=!0,c.hour=d[4],X(()=>l=!1)),!i&&a[0]&32&&(i=!0,c.minute=d[5],X(()=>i=!1)),e.$set(c)},i(d){f||(D(e.$$.fragment,d),f=!0)},o(d){S(e.$$.fragment,d),f=!1},d(d){U(e,d)}}}function En(n){let e,t,l,i,f,o;function s(c){n[25](c)}function u(c){n[26](c)}function r(c){n[27](c)}function d(c){n[28](c)}let a={};return n[1]!==void 0&&(a.daysOfMonth=n[1]),n[2]!==void 0&&(a.months=n[2]),n[4]!==void 0&&(a.hour=n[4]),n[5]!==void 0&&(a.minute=n[5]),e=new un({props:a}),G.push(()=>J(e,"daysOfMonth",s)),G.push(()=>J(e,"months",u)),G.push(()=>J(e,"hour",r)),G.push(()=>J(e,"minute",d)),{c(){A(e.$$.fragment)},l(c){L(e.$$.fragment,c)},m(c,_){N(e,c,_),o=!0},p(c,_){const h={};!t&&_[0]&2&&(t=!0,h.daysOfMonth=c[1],X(()=>t=!1)),!l&&_[0]&4&&(l=!0,h.months=c[2],X(()=>l=!1)),!i&&_[0]&16&&(i=!0,h.hour=c[4],X(()=>i=!1)),!f&&_[0]&32&&(f=!0,h.minute=c[5],X(()=>f=!1)),e.$set(h)},i(c){o||(D(e.$$.fragment,c),o=!0)},o(c){S(e.$$.fragment,c),o=!1},d(c){U(e,c)}}}function Mn(n){let e,t,l=B("schedules.cron-view-title")+"",i,f,o,s=B("schedules.cron-view-description")+"",u,r,d,a,c;function _($){n[29]($)}let h={label:B("schedules.cron-view-title"),labelHidden:!0,id:"cronString",placeholder:"* * * * *"};return n[8]!==void 0&&(h.value=n[8]),d=new we({props:h}),G.push(()=>J(d,"value",_)),{c(){e=C("div"),t=C("h3"),i=ee(l),f=W(),o=C("p"),u=ee(s),r=W(),A(d.$$.fragment),this.h()},l($){e=H($,"DIV",{class:!0});var E=P(e);t=H(E,"H3",{class:!0});var p=P(t);i=te(p,l),p.forEach(g),f=T(E),o=H(E,"P",{});var y=P(o);u=te(y,s),y.forEach(g),r=T(E),L(d.$$.fragment,E),E.forEach(g),this.h()},h(){F(t,"class","text-lg font-medium"),F(e,"class","my-2 flex w-full flex-col gap-4")},m($,E){K($,e,E),m(e,t),m(t,i),m(e,f),m(e,o),m(o,u),m(e,r),N(d,e,null),c=!0},p($,E){const p={};!a&&E[0]&256&&(a=!0,p.value=$[8],X(()=>a=!1)),d.$set(p)},i($){c||(D(d.$$.fragment,$),c=!0)},o($){S(d.$$.fragment,$),c=!1},d($){$&&g(e),U(d)}}}function Dn(n){let e,t=B("schedules.schedule-spec")+"",l,i,f,o,s,u,r,d,a,c,_,h,$,E,p;f=new Ct({props:{label:"Schedule Tabs",class:"flex flex-wrap gap-6",$$slots:{default:[kn]},$$scope:{ctx:n}}});let y=n[9]&&bt(n);r=new qe({props:{id:"interval-panel",tabId:"interval-tab",$$slots:{default:[yn]},$$scope:{ctx:n}}}),a=new qe({props:{id:"daily-panel",tabId:"daily-tab",$$slots:{default:[In]},$$scope:{ctx:n}}}),_=new qe({props:{id:"monthly-panel",tabId:"monthly-tab",$$slots:{default:[En]},$$scope:{ctx:n}}}),$=new qe({props:{id:"string-panel",tabId:"string-tab",$$slots:{default:[Mn]},$$scope:{ctx:n}}});const x=n[11].default,q=$t(x,n,n[30],pt);return{c(){e=C("h2"),l=ee(t),i=W(),A(f.$$.fragment),o=W(),s=C("div"),y&&y.c(),u=W(),A(r.$$.fragment),d=W(),A(a.$$.fragment),c=W(),A(_.$$.fragment),h=W(),A($.$$.fragment),E=W(),q&&q.c(),this.h()},l(b){e=H(b,"H2",{class:!0});var w=P(e);l=te(w,t),w.forEach(g),i=T(b),L(f.$$.fragment,b),o=T(b),s=H(b,"DIV",{class:!0});var I=P(s);y&&y.l(I),u=T(I),L(r.$$.fragment,I),d=T(I),L(a.$$.fragment,I),c=T(I),L(_.$$.fragment,I),h=T(I),L($.$$.fragment,I),I.forEach(g),E=T(b),q&&q.l(b),this.h()},h(){F(e,"class","mb-4 text-2xl"),F(s,"class","mt-4 flex w-full flex-wrap gap-6")},m(b,w){K(b,e,w),m(e,l),K(b,i,w),N(f,b,w),K(b,o,w),K(b,s,w),y&&y.m(s,null),m(s,u),N(r,s,null),m(s,d),N(a,s,null),m(s,c),N(_,s,null),m(s,h),N($,s,null),K(b,E,w),q&&q.m(b,w),p=!0},p(b,w){const I={};w[0]&1073743360&&(I.$$scope={dirty:w,ctx:b}),f.$set(I),b[9]?y?(y.p(b,w),w[0]&512&&D(y,1)):(y=bt(b),y.c(),D(y,1),y.m(s,u)):y&&(Ye(),S(y,1,1,()=>{y=null}),Ze());const ne={};w[0]&1073742072&&(ne.$$scope={dirty:w,ctx:b}),r.$set(ne);const ie={};w[0]&1073741873&&(ie.$$scope={dirty:w,ctx:b}),a.$set(ie);const R={};w[0]&1073741878&&(R.$$scope={dirty:w,ctx:b}),_.$set(R);const ue={};w[0]&1073742080&&(ue.$$scope={dirty:w,ctx:b}),$.$set(ue),q&&q.p&&(!p||w[0]&1073742848)&&wt(q,x,b,b[30],p?Ot(x,b[30],w,wn):kt(b[30]),pt)},i(b){p||(D(f.$$.fragment,b),D(y),D(r.$$.fragment,b),D(a.$$.fragment,b),D(_.$$.fragment,b),D($.$$.fragment,b),D(q,b),p=!0)},o(b){S(f.$$.fragment,b),S(y),S(r.$$.fragment,b),S(a.$$.fragment,b),S(_.$$.fragment,b),S($.$$.fragment,b),S(q,b),p=!1},d(b){b&&g(e),b&&g(i),U(f,b),b&&g(o),b&&g(s),y&&y.d(),U(r),U(a),U(_),U($),b&&g(E),q&&q.d(b)}}}function Sn(n){let e,t;return e=new Vt({props:{class:"mt-8 w-full",$$slots:{default:[Dn]},$$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 f={};i[0]&1073743871&&(f.$$scope={dirty:i,ctx:l}),e.$set(f)},i(l){t||(D(e.$$.fragment,l),t=!0)},o(l){S(e.$$.fragment,l),t=!1},d(l){U(e,l)}}}function Wn(n,e,t){let l;Qe(n,yt,O=>t(31,l=O));let{$$slots:i={},$$scope:f}=e,s=l.params.schedule?"existing":"interval",{schedule:u=null}=e,{daysOfWeek:r}=e,{daysOfMonth:d}=e,{months:a}=e,{days:c}=e,{hour:_}=e,{minute:h}=e,{second:$}=e,{phase:E}=e,{cronString:p}=e;const y=()=>{t(0,r=[]),t(1,d=[]),t(2,a=[]),t(3,c=""),t(4,_=""),t(5,h=""),t(6,$=""),t(7,E=""),t(8,p="")},x=()=>t(10,s="existing"),q=()=>t(10,s="interval"),b=()=>t(10,s="week"),w=()=>t(10,s="month"),I=()=>t(10,s="string");function ne(O){c=O,t(3,c)}function ie(O){_=O,t(4,_)}function R(O){h=O,t(5,h)}function ue(O){$=O,t(6,$)}function V(O){E=O,t(7,E)}function j(O){r=O,t(0,r)}function ae(O){_=O,t(4,_)}function re(O){h=O,t(5,h)}function se(O){d=O,t(1,d)}function _e(O){a=O,t(2,a)}function ce(O){_=O,t(4,_)}function Q(O){h=O,t(5,h)}function Z(O){p=O,t(8,p)}return n.$$set=O=>{"schedule"in O&&t(9,u=O.schedule),"daysOfWeek"in O&&t(0,r=O.daysOfWeek),"daysOfMonth"in O&&t(1,d=O.daysOfMonth),"months"in O&&t(2,a=O.months),"days"in O&&t(3,c=O.days),"hour"in O&&t(4,_=O.hour),"minute"in O&&t(5,h=O.minute),"second"in O&&t(6,$=O.second),"phase"in O&&t(7,E=O.phase),"cronString"in O&&t(8,p=O.cronString),"$$scope"in O&&t(30,f=O.$$scope)},y(),[r,d,a,c,_,h,$,E,p,u,s,i,x,q,b,w,I,ne,ie,R,ue,V,j,ae,re,se,_e,ce,Q,Z,f]}class Tn extends ye{constructor(e){super(),Ie(this,e,Wn,Sn,Ee,{schedule:9,daysOfWeek:0,daysOfMonth:1,months:2,days:3,hour:4,minute:5,second:6,phase:7,cronString:8},null,[-1,-1])}}function Vn(n){let e,t,l,i,f,o,s,u,r,d,a,c,_,h,$,E,p,y,x,q,b,w,I,ne,ie,R,ue,V,j,ae,re,se,_e,ce,Q,Z;t=new Bt({props:{href:n[22],icon:"chevron-left",$$slots:{default:[Hn]},$$scope:{ctx:n}}}),u=new Ut({props:{intent:"error",title:"",hidden:!n[16],bold:!0,$$slots:{default:[Pn]},$$scope:{ctx:n}}});function O(v){n[28](v)}let de={id:"name",label:B("schedules.name-label"),error:n[13].name,maxLength:232,disabled:Boolean(n[18])};n[1]!==void 0&&(de.value=n[1]),a=new we({props:de}),G.push(()=>J(a,"value",O)),a.$on("input",n[25]),a.$on("blur",n[26]);function fe(v){n[29](v)}let oe={id:"workflowType",label:B("schedules.workflow-type-label"),error:n[13].workflowType};n[2]!==void 0&&(oe.value=n[2]),$=new we({props:oe}),G.push(()=>J($,"value",fe)),$.$on("input",n[25]),$.$on("blur",n[26]);function he(v){n[30](v)}let ve={id:"workflowId",label:B("schedules.workflow-id-label"),error:n[13].workflowId};n[3]!==void 0&&(ve.value=n[3]),x=new we({props:ve}),G.push(()=>J(x,"value",he)),x.$on("input",n[25]),x.$on("blur",n[26]);function ke(v){n[31](v)}let pe={id:"taskQueue",label:B("schedules.task-queue-label"),error:n[13].taskQueue};n[4]!==void 0&&(pe.value=n[4]),I=new we({props:pe}),G.push(()=>J(I,"value",ke)),I.$on("input",n[25]),I.$on("blur",n[26]);function Se(v){n[33](v)}function De(v){n[34](v)}function Ae(v){n[35](v)}function We(v){n[36](v)}function Le(v){n[37](v)}function Te(v){n[38](v)}function Ne(v){n[39](v)}function Ve(v){n[40](v)}function Ue(v){n[41](v)}let ge={schedule:n[0],$$slots:{default:[Nn,({preset:v})=>({55:v}),({preset:v})=>[0,v?16777216:0]]},$$scope:{ctx:n}};return n[5]!==void 0&&(ge.daysOfWeek=n[5]),n[6]!==void 0&&(ge.daysOfMonth=n[6]),n[7]!==void 0&&(ge.months=n[7]),n[8]!==void 0&&(ge.days=n[8]),n[9]!==void 0&&(ge.hour=n[9]),n[10]!==void 0&&(ge.minute=n[10]),n[11]!==void 0&&(ge.second=n[11]),n[14]!==void 0&&(ge.phase=n[14]),n[12]!==void 0&&(ge.cronString=n[12]),R=new Tn({props:ge}),G.push(()=>J(R,"daysOfWeek",Se)),G.push(()=>J(R,"daysOfMonth",De)),G.push(()=>J(R,"months",Ae)),G.push(()=>J(R,"days",We)),G.push(()=>J(R,"hour",Le)),G.push(()=>J(R,"minute",Te)),G.push(()=>J(R,"second",Ne)),G.push(()=>J(R,"phase",Ve)),G.push(()=>J(R,"cronString",Ue)),{c(){e=C("header"),A(t.$$.fragment),l=W(),i=C("h1"),f=ee(n[19]),o=W(),s=C("form"),A(u.$$.fragment),r=W(),d=C("div"),A(a.$$.fragment),_=W(),h=C("div"),A($.$$.fragment),p=W(),y=C("div"),A(x.$$.fragment),b=W(),w=C("div"),A(I.$$.fragment),ie=W(),A(R.$$.fragment),this.h()},l(v){e=H(v,"HEADER",{class:!0});var z=P(e);L(t.$$.fragment,z),l=T(z),i=H(z,"H1",{class:!0});var Me=P(i);f=te(Me,n[19]),Me.forEach(g),z.forEach(g),o=T(v),s=H(v,"FORM",{class:!0});var k=P(s);L(u.$$.fragment,k),r=T(k),d=H(k,"DIV",{class:!0});var M=P(d);L(a.$$.fragment,M),M.forEach(g),_=T(k),h=H(k,"DIV",{class:!0});var Y=P(h);L($.$$.fragment,Y),Y.forEach(g),p=T(k),y=H(k,"DIV",{class:!0});var be=P(y);L(x.$$.fragment,be),be.forEach(g),b=T(k),w=H(k,"DIV",{class:!0});var $e=P(w);L(I.$$.fragment,$e),$e.forEach(g),ie=T(k),L(R.$$.fragment,k),k.forEach(g),this.h()},h(){F(i,"class","font-base text-2xl"),F(e,"class","mb-12 flex flex-col gap-4"),F(d,"class","w-full"),F(h,"class","w-full"),F(y,"class","w-full"),F(w,"class","w-full"),F(s,"class","mb-4 flex w-full flex-col gap-4 md:w-2/3 xl:w-1/2")},m(v,z){K(v,e,z),N(t,e,null),m(e,l),m(e,i),m(i,f),K(v,o,z),K(v,s,z),N(u,s,null),m(s,r),m(s,d),N(a,d,null),m(s,_),m(s,h),N($,h,null),m(s,p),m(s,y),N(x,y,null),m(s,b),m(s,w),N(I,w,null),m(s,ie),N(R,s,null),Z=!0},p(v,z){const Me={};z[1]&33554432&&(Me.$$scope={dirty:z,ctx:v}),t.$set(Me);const k={};z[0]&65536&&(k.hidden=!v[16]),z[0]&65536|z[1]&33554432&&(k.$$scope={dirty:z,ctx:v}),u.$set(k);const M={};z[0]&8192&&(M.error=v[13].name),!c&&z[0]&2&&(c=!0,M.value=v[1],X(()=>c=!1)),a.$set(M);const Y={};z[0]&8192&&(Y.error=v[13].workflowType),!E&&z[0]&4&&(E=!0,Y.value=v[2],X(()=>E=!1)),$.$set(Y);const be={};z[0]&8192&&(be.error=v[13].workflowId),!q&&z[0]&8&&(q=!0,be.value=v[3],X(()=>q=!1)),x.$set(be);const $e={};z[0]&8192&&($e.error=v[13].taskQueue),!ne&&z[0]&16&&(ne=!0,$e.value=v[4],X(()=>ne=!1)),I.$set($e);const le={};z[0]&1&&(le.schedule=v[0]),z[0]&32769|z[1]&50331648&&(le.$$scope={dirty:z,ctx:v}),!ue&&z[0]&32&&(ue=!0,le.daysOfWeek=v[5],X(()=>ue=!1)),!V&&z[0]&64&&(V=!0,le.daysOfMonth=v[6],X(()=>V=!1)),!j&&z[0]&128&&(j=!0,le.months=v[7],X(()=>j=!1)),!ae&&z[0]&256&&(ae=!0,le.days=v[8],X(()=>ae=!1)),!re&&z[0]&512&&(re=!0,le.hour=v[9],X(()=>re=!1)),!se&&z[0]&1024&&(se=!0,le.minute=v[10],X(()=>se=!1)),!_e&&z[0]&2048&&(_e=!0,le.second=v[11],X(()=>_e=!1)),!ce&&z[0]&16384&&(ce=!0,le.phase=v[14],X(()=>ce=!1)),!Q&&z[0]&4096&&(Q=!0,le.cronString=v[12],X(()=>Q=!1)),R.$set(le)},i(v){Z||(D(t.$$.fragment,v),D(u.$$.fragment,v),D(a.$$.fragment,v),D($.$$.fragment,v),D(x.$$.fragment,v),D(I.$$.fragment,v),D(R.$$.fragment,v),Z=!0)},o(v){S(t.$$.fragment,v),S(u.$$.fragment,v),S(a.$$.fragment,v),S($.$$.fragment,v),S(x.$$.fragment,v),S(I.$$.fragment,v),S(R.$$.fragment,v),Z=!1},d(v){v&&g(e),U(t),v&&g(o),v&&g(s),U(u),U(a),U($),U(x),U(I),U(R)}}}function Cn(n){let e,t;return e=new qt({props:{title:n[20]}}),{c(){A(e.$$.fragment)},l(l){L(e.$$.fragment,l)},m(l,i){N(e,l,i),t=!0},p:me,i(l){t||(D(e.$$.fragment,l),t=!0)},o(l){S(e.$$.fragment,l),t=!1},d(l){U(e,l)}}}function Hn(n){let e;return{c(){e=ee(n[21])},l(t){e=te(t,n[21])},m(t,l){K(t,e,l)},p:me,d(t){t&&g(e)}}}function Pn(n){let e;return{c(){e=ee(n[16])},l(t){e=te(t,n[16])},m(t,l){K(t,e,l)},p(t,l){l[0]&65536&&Wt(e,t[16])},d(t){t&&g(e)}}}function An(n){let e;return{c(){e=ee(n[23])},l(t){e=te(t,n[23])},m(t,l){K(t,e,l)},p:me,d(t){t&&g(e)}}}function Ln(n){let e=B("common.cancel")+"",t;return{c(){t=ee(e)},l(l){t=te(l,e)},m(l,i){K(l,t,i)},p:me,d(l){l&&g(t)}}}function Nn(n){let e,t,l,i,f;function o(){return n[32](n[55])}return t=new at({props:{disabled:n[15](n[55])||!rt(),$$slots:{default:[An]},$$scope:{ctx:n}}}),t.$on("click",o),i=new at({props:{variant:"ghost",href:n[22],$$slots:{default:[Ln]},$$scope:{ctx:n}}}),{c(){e=C("div"),A(t.$$.fragment),l=W(),A(i.$$.fragment),this.h()},l(s){e=H(s,"DIV",{class:!0});var u=P(e);L(t.$$.fragment,u),l=T(u),L(i.$$.fragment,u),u.forEach(g),this.h()},h(){F(e,"class","mt-8 flex items-center gap-2")},m(s,u){K(s,e,u),N(t,e,null),m(e,l),N(i,e,null),f=!0},p(s,u){n=s;const r={};u[0]&32768|u[1]&16777216&&(r.disabled=n[15](n[55])||!rt()),u[1]&33554432&&(r.$$scope={dirty:u,ctx:n}),t.$set(r);const d={};u[1]&33554432&&(d.$$scope={dirty:u,ctx:n}),i.$set(d)},i(s){f||(D(t.$$.fragment,s),D(i.$$.fragment,s),f=!0)},o(s){S(t.$$.fragment,s),S(i.$$.fragment,s),f=!1},d(s){s&&g(e),U(t),U(i)}}}function Un(n){let e,t,l,i;const f=[Cn,Vn],o=[];function s(u,r){return u[17]?0:1}return t=s(n),l=o[t]=f[t](n),{c(){e=C("div"),l.c(),this.h()},l(u){e=H(u,"DIV",{class:!0});var r=P(e);l.l(r),r.forEach(g),this.h()},h(){F(e,"class","pb-20")},m(u,r){K(u,e,r),o[t].m(e,null),i=!0},p(u,r){let d=t;t=s(u),t===d?o[t].p(u,r):(Ye(),S(o[d],1,1,()=>{o[d]=null}),Ze(),l=o[t],l?l.p(u,r):(l=o[t]=f[t](u),l.c()),D(l,1),l.m(e,null))},i(u){i||(D(l),i=!0)},o(u){S(l),i=!1},d(u){u&&g(e),o[t].d()}}}function Bn(n,e,t){let l,i,f,o;Qe(n,Je,k=>t(16,i=k)),Qe(n,yt,k=>t(53,f=k)),Qe(n,Nt,k=>t(17,o=k));var s,u,r,d,a,c,_,h,$,E,p;let{schedule:y=null}=e,{onConfirm:x}=e,q=f.params.namespace,b=f.params.schedule,w=B(y?"schedules.edit":"schedules.create"),I=B(y?"schedules.editing":"schedules.creating"),ne=B(y?"schedules.back-to-schedule":"schedules.back-to-schedules"),ie=y?Qt({namespace:q,scheduleId:b}):Ft({namespace:q}),R=y?B("common.save"):B("schedules.create"),ue={},V=b??"",j=(d=(r=(u=(s=y==null?void 0:y.action)===null||s===void 0?void 0:s.startWorkflow)===null||u===void 0?void 0:u.workflowType)===null||r===void 0?void 0:r.name)!==null&&d!==void 0?d:"",ae=(_=(c=(a=y==null?void 0:y.action)===null||a===void 0?void 0:a.startWorkflow)===null||c===void 0?void 0:c.workflowId)!==null&&_!==void 0?_:"",re=(p=(E=($=(h=y==null?void 0:y.action)===null||h===void 0?void 0:h.startWorkflow)===null||$===void 0?void 0:$.taskQueue)===null||E===void 0?void 0:E.name)!==null&&p!==void 0?p:"",se=[],_e=[],ce=[],Q="",Z="",O="",de="",fe="",oe="";const he=(k,M)=>{x(k,{name:V,workflowType:j,workflowId:ae,taskQueue:re,hour:Z,minute:O,second:de,phase:fe,cronString:oe,daysOfWeek:se,daysOfMonth:_e,days:Q,months:ce},M)},ve=k=>{const{id:M}=k.target;t(13,ue[M]=!1,ue),i&<(Je,i="",i)},ke=k=>{const{value:M,id:Y}=k.target;M.trim()?t(13,ue[Y]=!1,ue):t(13,ue[Y]=!0,ue)};St(()=>lt(Je,i="",i));function pe(k){V=k,t(1,V)}function Se(k){j=k,t(2,j)}function De(k){ae=k,t(3,ae)}function Ae(k){re=k,t(4,re)}const We=k=>he(k,y);function Le(k){se=k,t(5,se)}function Te(k){_e=k,t(6,_e)}function Ne(k){ce=k,t(7,ce)}function Ve(k){Q=k,t(8,Q)}function Ue(k){Z=k,t(9,Z)}function ge(k){O=k,t(10,O)}function v(k){de=k,t(11,de)}function z(k){fe=k,t(14,fe)}function Me(k){oe=k,t(12,oe)}return n.$$set=k=>{"schedule"in k&&t(0,y=k.schedule),"onConfirm"in k&&t(27,x=k.onConfirm)},n.$$.update=()=>{n.$$.dirty[0]&8190&&t(15,l=k=>!V||!j||!ae||!re?!0:k==="interval"?!Q&&!Z&&!O&&!de:k==="week"?!se.length:k==="month"?!_e.length||!ce.length:k==="string"?!oe:!1)},[y,V,j,ae,re,se,_e,ce,Q,Z,O,de,oe,ue,fe,l,i,o,b,w,I,ne,ie,R,he,ve,ke,x,pe,Se,De,Ae,We,Le,Te,Ne,Ve,Ue,ge,v,z,Me]}class nl extends ye{constructor(e){super(),Ie(this,e,Bn,Un,Ee,{schedule:0,onConfirm:27},null,[-1,-1])}}export{nl as S}; diff --git a/ui/assets/local/_app/immutable/chunks/schedule-service.19174d51.js b/ui/assets/local/_app/immutable/chunks/schedule-service.f7ec754b.js similarity index 93% rename from ui/assets/local/_app/immutable/chunks/schedule-service.19174d51.js rename to ui/assets/local/_app/immutable/chunks/schedule-service.f7ec754b.js index 5e96b43fe0..8f8890738a 100644 --- a/ui/assets/local/_app/immutable/chunks/schedule-service.19174d51.js +++ b/ui/assets/local/_app/immutable/chunks/schedule-service.f7ec754b.js @@ -1 +1 @@ -import"./index.0942deb7.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.f2500de4.js";import{v as h}from"./toaster.60da8f1b.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.0942deb7.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.4c8e7aa5.js";import{v as h}from"./toaster.cfecd6c1.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.17e8498c.js b/ui/assets/local/_app/immutable/chunks/schedules.50ce05b5.js similarity index 91% rename from ui/assets/local/_app/immutable/chunks/schedules.17e8498c.js rename to ui/assets/local/_app/immutable/chunks/schedules.50ce05b5.js index bde5a265db..db00d971f7 100644 --- a/ui/assets/local/_app/immutable/chunks/schedules.17e8498c.js +++ b/ui/assets/local/_app/immutable/chunks/schedules.50ce05b5.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,O as w,U as y,m as A,C as N,p as U,q as V,D as G,u as I,E as H,F as J}from"./index.0942deb7.js";import{C as K}from"./code-block.c6eabdb8.js";import{s as T}from"./parse-with-big-int.0036a80a.js";import{w as D}from"./singletons.0a6e865f.js";import{g as M}from"./navigation.83f47780.js";import{c as L,e as P}from"./schedule-service.19174d51.js";import{d as R,q as X}from"./route-for.ecd88549.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=A("div"),N(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}},O=(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:W,dayOfWeek:q}=$({months:i,daysOfMonth:f,daysOfWeek:h});s.schedule.spec.calendar=[{year:"*",month:c==="month"?m:"",dayOfMonth:c==="month"?W:"",dayOfWeek:c==="week"?q:"",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}}}}};O(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:(O(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,O as w,U as y,m as A,C as N,p as U,q as V,D as G,u as I,E as H,F as J}from"./index.0942deb7.js";import{C as K}from"./code-block.a5088abe.js";import{s as T}from"./parse-with-big-int.0036a80a.js";import{w as D}from"./singletons.d67f4e6b.js";import{g as M}from"./navigation.dde0d4fa.js";import{c as L,e as P}from"./schedule-service.f7ec754b.js";import{d as R,q as X}from"./route-for.18f9590b.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=A("div"),N(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}},O=(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:W,dayOfWeek:q}=$({months:i,daysOfMonth:f,daysOfWeek:h});s.schedule.spec.calendar=[{year:"*",month:c==="month"?m:"",dayOfMonth:c==="month"?W:"",dayOfWeek:c==="week"?q:"",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}}}}};O(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:(O(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/screaming-enums.7a4380bd.js b/ui/assets/local/_app/immutable/chunks/screaming-enums.7a4380bd.js new file mode 100644 index 0000000000..6eb4836823 --- /dev/null +++ b/ui/assets/local/_app/immutable/chunks/screaming-enums.7a4380bd.js @@ -0,0 +1 @@ +const e=(t,o)=>{if(!t)return t;const a=String(t).split("_");return!a||a.length<=1?t:a.map(r=>r.charAt(0)+r.substring(1).toLowerCase()).join("").replace(o,"")},c=t=>e(t,"IndexedValueType"),u=t=>e(t,"WorkflowExecutionStatus"),l=t=>e(t,"ArchivalState"),i=t=>e(t,"NamespaceState"),p=t=>e(t,"EventType"),d=t=>e(t,"BatchOperationState"),b=t=>e(t,"BatchOperationType"),f=t=>e(t,"WorkflowTaskFailedCause");export{i as a,b,d as c,p as d,c as e,u as f,f as g,l as t}; diff --git a/ui/assets/local/_app/immutable/chunks/search-attributes.06872bde.js b/ui/assets/local/_app/immutable/chunks/search-attributes.ed984efc.js similarity index 92% rename from ui/assets/local/_app/immutable/chunks/search-attributes.06872bde.js rename to ui/assets/local/_app/immutable/chunks/search-attributes.ed984efc.js index e7df1d776b..9aefbb884d 100644 --- a/ui/assets/local/_app/immutable/chunks/search-attributes.06872bde.js +++ b/ui/assets/local/_app/immutable/chunks/search-attributes.ed984efc.js @@ -1 +1 @@ -import{j as r,w as o}from"./singletons.0a6e865f.js";import{ac as c}from"./index.0942deb7.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.d67f4e6b.js";import{ac as c}from"./index.0942deb7.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.7bd36f05.js b/ui/assets/local/_app/immutable/chunks/settings-service.d5aa336c.js similarity index 95% rename from ui/assets/local/_app/immutable/chunks/settings-service.7bd36f05.js rename to ui/assets/local/_app/immutable/chunks/settings-service.d5aa336c.js index 3bf3b4139a..39a39d3445 100644 --- a/ui/assets/local/_app/immutable/chunks/settings-service.7bd36f05.js +++ b/ui/assets/local/_app/immutable/chunks/settings-service.d5aa336c.js @@ -1 +1 @@ -import{r as w,a as b,g as k}from"./route-for-api.f2500de4.js";function h(){return{}.VITE_TEMPORAL_UI_BUILD_TARGET??null}const u=/(tmprl\.cloud|tmprl-test\.cloud)$/,t=async(f=fetch)=>{var l,o,c,d,i;const m=w("settings"),r=await b(m,{request:f}),a=h();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},bannerText:r==null?void 0:r.BannerText,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{t as f,u as i}; +import{r as w,a as b,g as k}from"./route-for-api.4c8e7aa5.js";function h(){return{}.VITE_TEMPORAL_UI_BUILD_TARGET??null}const u=/(tmprl\.cloud|tmprl-test\.cloud)$/,t=async(f=fetch)=>{var l,o,c,d,i;const m=w("settings"),r=await b(m,{request:f}),a=h();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},bannerText:r==null?void 0:r.BannerText,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{t as f,u as i}; diff --git a/ui/assets/local/_app/immutable/chunks/settings.23b6089e.js b/ui/assets/local/_app/immutable/chunks/settings.23b6089e.js new file mode 100644 index 0000000000..e51f16daa9 --- /dev/null +++ b/ui/assets/local/_app/immutable/chunks/settings.23b6089e.js @@ -0,0 +1 @@ +import{j as t}from"./singletons.d67f4e6b.js";import{p as a}from"./stores.255470ec.js";const r=t([a],([s])=>s.data.settings);export{r as s}; diff --git a/ui/assets/local/_app/immutable/chunks/settings.424dea30.js b/ui/assets/local/_app/immutable/chunks/settings.424dea30.js deleted file mode 100644 index a622db1c15..0000000000 --- a/ui/assets/local/_app/immutable/chunks/settings.424dea30.js +++ /dev/null @@ -1 +0,0 @@ -import{j as t}from"./singletons.0a6e865f.js";import{p as a}from"./stores.73c3690d.js";const r=t([a],([s])=>s.data.settings);export{r as s}; diff --git a/ui/assets/local/_app/immutable/chunks/simplify-attributes.4e073f3b.js b/ui/assets/local/_app/immutable/chunks/simplify-attributes.3c34b46b.js similarity index 94% rename from ui/assets/local/_app/immutable/chunks/simplify-attributes.4e073f3b.js rename to ui/assets/local/_app/immutable/chunks/simplify-attributes.3c34b46b.js index cac243b1e1..777127edaa 100644 --- a/ui/assets/local/_app/immutable/chunks/simplify-attributes.4e073f3b.js +++ b/ui/assets/local/_app/immutable/chunks/simplify-attributes.3c34b46b.js @@ -1 +1 @@ -import{b as r}from"./time-format.7dc1f425.js";import{k as s}from"./format-time.5082c525.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.aa1f006c.js";import{k as s}from"./format-time.5082c525.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.0a6e865f.js b/ui/assets/local/_app/immutable/chunks/singletons.d67f4e6b.js similarity index 95% rename from ui/assets/local/_app/immutable/chunks/singletons.0a6e865f.js rename to ui/assets/local/_app/immutable/chunks/singletons.d67f4e6b.js index ac7c331d3a..396c4fe85e 100644 --- a/ui/assets/local/_app/immutable/chunks/singletons.0a6e865f.js +++ b/ui/assets/local/_app/immutable/chunks/singletons.d67f4e6b.js @@ -1 +1 @@ -import{n as p,s as R,r as S,a as I,i as T}from"./index.0942deb7.js";import{a as x}from"./paths.7de1f58b.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.0942deb7.js";import{a as x}from"./paths.742c8328.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.5ab393f2.js b/ui/assets/local/_app/immutable/chunks/split-button.3aa0e7a5.js similarity index 96% rename from ui/assets/local/_app/immutable/chunks/split-button.5ab393f2.js rename to ui/assets/local/_app/immutable/chunks/split-button.3aa0e7a5.js index 8ada416909..fd04406815 100644 --- a/ui/assets/local/_app/immutable/chunks/split-button.5ab393f2.js +++ b/ui/assets/local/_app/immutable/chunks/split-button.3aa0e7a5.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,O as M,U as A,m as j,c as L,p as z,q as F,d as I,k as v,u as G,f as D,L as H,$ as J,w as N,x as O,z as R,h as U,y as V,G as K,H as P,I as Q,J as T}from"./index.0942deb7.js";import{B as W}from"./button.c09134bf.js";import{I as X}from"./icon.33308831.js";import{M as Y,a as Z,b as y}from"./menu.55d17299.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=N(s[0])},l(i){t&&t.l(i),e=I(i),a=O(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)&&V(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=K(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=j("div"),g(a.$$.fragment),n=L(),g(t.$$.fragment),i=L(),g(o.$$.fragment),this.h()},l(l){e=z(l,"DIV",{class:!0});var f=F(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(){G(e,"class","split-button svelte-1pybp5c")},m(l,f){D(l,e,f),p(a,e,null),H(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){J.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,O as M,U as A,m as j,c as L,p as z,q as F,d as I,k as v,u as G,f as D,L as H,$ as J,w as N,x as O,z as R,h as U,y as V,G as K,H as P,I as Q,J as T}from"./index.0942deb7.js";import{B as W}from"./button.72eef818.js";import{I as X}from"./icon.33308831.js";import{M as Y,a as Z,b as y}from"./menu.1cf8fd74.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=N(s[0])},l(i){t&&t.l(i),e=I(i),a=O(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)&&V(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=K(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=j("div"),g(a.$$.fragment),n=L(),g(t.$$.fragment),i=L(),g(o.$$.fragment),this.h()},l(l){e=z(l,"DIV",{class:!0});var f=F(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(){G(e,"class","split-button svelte-1pybp5c")},m(l,f){D(l,e,f),p(a,e,null),H(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){J.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.73c3690d.js b/ui/assets/local/_app/immutable/chunks/stores.255470ec.js similarity index 69% rename from ui/assets/local/_app/immutable/chunks/stores.73c3690d.js rename to ui/assets/local/_app/immutable/chunks/stores.255470ec.js index a20a1bc1f1..d7552ac872 100644 --- a/ui/assets/local/_app/immutable/chunks/stores.73c3690d.js +++ b/ui/assets/local/_app/immutable/chunks/stores.255470ec.js @@ -1 +1 @@ -import"./index.0942deb7.js";import{d as t}from"./singletons.0a6e865f.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.0942deb7.js";import{d as t}from"./singletons.d67f4e6b.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.88eb698c.js b/ui/assets/local/_app/immutable/chunks/tab.f6368f6e.js similarity index 98% rename from ui/assets/local/_app/immutable/chunks/tab.88eb698c.js rename to ui/assets/local/_app/immutable/chunks/tab.f6368f6e.js index 417d3f62a0..716d0dd578 100644 --- a/ui/assets/local/_app/immutable/chunks/tab.88eb698c.js +++ b/ui/assets/local/_app/immutable/chunks/tab.f6368f6e.js @@ -1 +1 @@ -import{S as E,b as S,a as P,G as q,O as h,m as A,p as L,q as U,k as g,P as T,Q as v,f as z,H as V,I as j,J as B,R as G,j as N,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,ak as M,L as Q,M as te,y as le,n as se}from"./index.0942deb7.js";import{c as ae}from"./has.233e577a.js";import{w as R}from"./singletons.0a6e865f.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,F as c}; +import{S as E,b as S,a as P,G as q,O as h,m as A,p as L,q as U,k as g,P as T,Q as v,f as z,H as V,I as j,J as B,R as G,j as N,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,ak as M,L as Q,M as te,y as le,n as se}from"./index.0942deb7.js";import{c as ae}from"./has.233e577a.js";import{w as R}from"./singletons.d67f4e6b.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,F as c}; diff --git a/ui/assets/local/_app/immutable/chunks/task-queue-compatibility.8d922da0.js b/ui/assets/local/_app/immutable/chunks/task-queue-compatibility.8d922da0.js new file mode 100644 index 0000000000..98fcbb717b --- /dev/null +++ b/ui/assets/local/_app/immutable/chunks/task-queue-compatibility.8d922da0.js @@ -0,0 +1 @@ +const i=e=>(e!=null&&e.majorVersionSets?[...e.majorVersionSets]:[]).reverse(),u=e=>{if(!(!e||!e.length))return e[e.length-1]},d=(e,n)=>{var s;const r=(s=e==null?void 0:e.majorVersionSets)==null?void 0:s.find(t=>{var o;return(o=t.buildIds)==null?void 0:o.includes(n)});return u(r==null?void 0:r.buildIds)},c=e=>e?e.slice(0,e.length-1).reverse():[],f=e=>{var s;const n=i(e);if(!n.length)return;const r=(s=n[0])==null?void 0:s.buildIds;if(r!=null&&r.length)return u(n[0].buildIds)},a=e=>{var n,r;if((n=e==null?void 0:e.mostRecentWorkerVersionStamp)!=null&&n.useVersioning)return((r=e.mostRecentWorkerVersionStamp)==null?void 0:r.buildId)||void 0},g=e=>{var n,r;if((n=e==null?void 0:e.workerVersionCapabilities)!=null&&n.useVersioning)return((r=e.workerVersionCapabilities)==null?void 0:r.buildId)||void 0},V=e=>[...new Set(e==null?void 0:e.map(g).filter(Boolean))],I=e=>e==null?void 0:e.some(n=>{var r;return(r=n==null?void 0:n.workerVersionCapabilities)==null?void 0:r.useVersioning}),S=(e,n,r)=>{const s=a(e);if(!s)return!0;const t=d(r,s);return V(n).includes(t)};export{f as a,d as b,V as c,i as d,g as e,u as f,a as g,c as h,I as p,S as w}; diff --git a/ui/assets/local/_app/immutable/chunks/task-queue-compatibility.cf5696f8.js b/ui/assets/local/_app/immutable/chunks/task-queue-compatibility.cf5696f8.js deleted file mode 100644 index a4f693b385..0000000000 --- a/ui/assets/local/_app/immutable/chunks/task-queue-compatibility.cf5696f8.js +++ /dev/null @@ -1 +0,0 @@ -const i=e=>(e!=null&&e.majorVersionSets?[...e.majorVersionSets]:[]).reverse(),u=e=>{if(!(!e||!e.length))return e[e.length-1]},d=(e,r)=>{var n;const s=(n=e==null?void 0:e.majorVersionSets)==null?void 0:n.find(t=>{var o;return(o=t.buildIds)==null?void 0:o.includes(r)});return u(s==null?void 0:s.buildIds)},c=e=>e?e.slice(0,e.length-1).reverse():[],f=e=>{var n;const r=i(e);if(!r.length)return;const s=(n=r[0])==null?void 0:n.buildIds;if(s!=null&&s.length)return u(r[0].buildIds)},a=e=>{var r,s;if((r=e==null?void 0:e.mostRecentWorkerVersionStamp)!=null&&r.useVersioning)return((s=e.mostRecentWorkerVersionStamp)==null?void 0:s.buildId)||void 0},g=e=>{var r,s;if((r=e==null?void 0:e.workerVersionCapabilities)!=null&&r.useVersioning)return((s=e.workerVersionCapabilities)==null?void 0:s.buildId)||void 0},V=e=>[...new Set(e.map(g).filter(Boolean))],I=e=>e.some(r=>{var s;return(s=r==null?void 0:r.workerVersionCapabilities)==null?void 0:s.useVersioning}),S=(e,r,s)=>{const n=a(e);if(!n)return!0;const t=d(s,n);return V(r).includes(t)};export{f as a,d as b,V as c,i as d,g as e,u as f,a as g,c as h,I as p,S as w}; diff --git a/ui/assets/local/_app/immutable/chunks/time-format.7dc1f425.js b/ui/assets/local/_app/immutable/chunks/time-format.aa1f006c.js similarity index 99% rename from ui/assets/local/_app/immutable/chunks/time-format.7dc1f425.js rename to ui/assets/local/_app/immutable/chunks/time-format.aa1f006c.js index b08943181f..a4246b84eb 100644 --- a/ui/assets/local/_app/immutable/chunks/time-format.7dc1f425.js +++ b/ui/assets/local/_app/immutable/chunks/time-format.aa1f006c.js @@ -1 +1 @@ -import{p as ra}from"./persist-store.dd882958.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.5082c525.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.3ea3c364.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.5082c525.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.60da8f1b.js b/ui/assets/local/_app/immutable/chunks/toaster.cfecd6c1.js similarity index 94% rename from ui/assets/local/_app/immutable/chunks/toaster.60da8f1b.js rename to ui/assets/local/_app/immutable/chunks/toaster.cfecd6c1.js index 37fc8fd6a9..d54950735b 100644 --- a/ui/assets/local/_app/immutable/chunks/toaster.60da8f1b.js +++ b/ui/assets/local/_app/immutable/chunks/toaster.cfecd6c1.js @@ -1 +1 @@ -import{w as p}from"./singletons.0a6e865f.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.d67f4e6b.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.01bd60a8.js b/ui/assets/local/_app/immutable/chunks/toggle-buttons.e3375436.js similarity index 98% rename from ui/assets/local/_app/immutable/chunks/toggle-buttons.01bd60a8.js rename to ui/assets/local/_app/immutable/chunks/toggle-buttons.e3375436.js index c5155b6184..d770a1b93d 100644 --- a/ui/assets/local/_app/immutable/chunks/toggle-buttons.01bd60a8.js +++ b/ui/assets/local/_app/immutable/chunks/toggle-buttons.e3375436.js @@ -1 +1 @@ -import{af as J,S as G,b as H,a as P,e as V,f as E,j as g,g as b,k as h,T as j,K,O as T,U as L,m as k,p as C,q as y,ak as z,P as B,Q as d,M,z as O,h as Q,R,$ as W,G as S,H as q,I as A,J as U,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.0942deb7.js";import{p as te}from"./stores.73c3690d.js";import{I as le}from"./icon.33308831.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)&&q(a,s,t,t[8],e?U(s,t[8],l,null):A(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)&&q(f,r,i,i[8],l?U(r,i[8],c,null):A(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}),Q(),a=_[s],a?a.p(o,u):(a=_[s]=c[s](o),a.c()),g(a,1),a.m(e,null)),m=R(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=V()},l(l){t&&t.l(l),s=V()},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)&&q(t,a,l,l[0],s?U(a,l[0],r,null):A(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 V,f as E,j as g,g as b,k as h,T as j,K,O as T,U as L,m as k,p as C,q as y,ak as z,P as B,Q as d,M,z as O,h as Q,R,$ as W,G as S,H as q,I as A,J as U,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.0942deb7.js";import{p as te}from"./stores.255470ec.js";import{I as le}from"./icon.33308831.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)&&q(a,s,t,t[8],e?U(s,t[8],l,null):A(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)&&q(f,r,i,i[8],l?U(r,i[8],c,null):A(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}),Q(),a=_[s],a?a.p(o,u):(a=_[s]=c[s](o),a.c()),g(a,1),a.m(e,null)),m=R(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=V()},l(l){t&&t.l(l),s=V()},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)&&q(t,a,l,l[0],s?U(a,l[0],r,null):A(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.ea285ef3.js b/ui/assets/local/_app/immutable/chunks/tooltip.0f6d0305.js similarity index 98% rename from ui/assets/local/_app/immutable/chunks/tooltip.ea285ef3.js rename to ui/assets/local/_app/immutable/chunks/tooltip.0f6d0305.js index 72e5820059..bcae15835e 100644 --- a/ui/assets/local/_app/immutable/chunks/tooltip.ea285ef3.js +++ b/ui/assets/local/_app/immutable/chunks/tooltip.0f6d0305.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,Q as m,L as E,H as Q,I as B,J as K,w as M,x as O,y as U,C as N,D as A,E as V,F as P}from"./index.0942deb7.js";import{C as ee}from"./index.ad79a693.js";import{I as W}from"./icon.33308831.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)&&Q(_,k,s,s[17],c?K(k,s[17],u,null):B(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)&&Q(e,i,l,l[17],t?K(i,l[17],n,null):B(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=M(o[1]),this.h()},l(n){t=R(n,"SPAN",{class:!0});var f=S(t);l&&l.l(f),i=O(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){V(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){P(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){V(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){P(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){V(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){P(t,e)}}}function oe(o){let t,i,e,l=o[2]&&H(o);return{c(){t=L("span"),l&&l.c(),i=M(o[1]),this.h()},l(n){t=R(n,"SPAN",{class:!0});var f=S(t);l&&l.l(f),i=O(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,Q as m,L as E,H as Q,I as B,J as K,w as M,x as O,y as U,C as N,D as A,E as V,F as P}from"./index.0942deb7.js";import{C as ee}from"./index.de7612af.js";import{I as W}from"./icon.33308831.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)&&Q(_,k,s,s[17],c?K(k,s[17],u,null):B(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)&&Q(e,i,l,l[17],t?K(i,l[17],n,null):B(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=M(o[1]),this.h()},l(n){t=R(n,"SPAN",{class:!0});var f=S(t);l&&l.l(f),i=O(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){V(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){P(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){V(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){P(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){V(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){P(t,e)}}}function oe(o){let t,i,e,l=o[2]&&H(o);return{c(){t=L("span"),l&&l.c(),i=M(o[1]),this.h()},l(n){t=R(n,"SPAN",{class:!0});var f=S(t);l&&l.l(f),i=O(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.f1dc53e5.js b/ui/assets/local/_app/immutable/chunks/translate.d58b2c80.js similarity index 96% rename from ui/assets/local/_app/immutable/chunks/translate.f1dc53e5.js rename to ui/assets/local/_app/immutable/chunks/translate.d58b2c80.js index c1f5070524..cc8a2c4803 100644 --- a/ui/assets/local/_app/immutable/chunks/translate.f1dc53e5.js +++ b/ui/assets/local/_app/immutable/chunks/translate.d58b2c80.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.0942deb7.js";import{p as ft}from"./stores.73c3690d.js";import{S as it}from"./index.f0c1b3d6.js";import{r as _t,a as C,f as V}from"./workflows.13c60c9c.js";import{a as mt}from"./decode-payload.3d6f13eb.js";import{W as dt}from"./workflow-status.833cfe09.js";import{t as wt}from"./translate.135d909a.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.0942deb7.js";import{p as ft}from"./stores.255470ec.js";import{S as it}from"./index.f0c1b3d6.js";import{r as _t,a as C,f as V}from"./workflows.99ef2d92.js";import{a as mt}from"./decode-payload.19da7edc.js";import{W as dt}from"./workflow-status.391c4889.js";import{t as wt}from"./translate.135d909a.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.6de0b7d2.js b/ui/assets/local/_app/immutable/chunks/update-query-parameters.5fc30b68.js similarity index 82% rename from ui/assets/local/_app/immutable/chunks/update-query-parameters.6de0b7d2.js rename to ui/assets/local/_app/immutable/chunks/update-query-parameters.5fc30b68.js index 0326ba590d..21b58302d9 100644 --- a/ui/assets/local/_app/immutable/chunks/update-query-parameters.6de0b7d2.js +++ b/ui/assets/local/_app/immutable/chunks/update-query-parameters.5fc30b68.js @@ -1 +1 @@ -import{g}from"./navigation.83f47780.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.dde0d4fa.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.e238352a.js b/ui/assets/local/_app/immutable/chunks/versions.1002dc8d.js similarity index 58% rename from ui/assets/local/_app/immutable/chunks/versions.e238352a.js rename to ui/assets/local/_app/immutable/chunks/versions.1002dc8d.js index f607682142..274974fade 100644 --- a/ui/assets/local/_app/immutable/chunks/versions.e238352a.js +++ b/ui/assets/local/_app/immutable/chunks/versions.1002dc8d.js @@ -1 +1 @@ -import{j as o}from"./singletons.0a6e865f.js";import{p as e}from"./stores.73c3690d.js";import{s as m}from"./settings.424dea30.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}; +import{j as o}from"./singletons.d67f4e6b.js";import{p as e}from"./stores.255470ec.js";import{s as m}from"./settings.23b6089e.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/workers-list.501e9be3.js b/ui/assets/local/_app/immutable/chunks/workers-list.3a8ea58e.js similarity index 98% rename from ui/assets/local/_app/immutable/chunks/workers-list.501e9be3.js rename to ui/assets/local/_app/immutable/chunks/workers-list.3a8ea58e.js index 3d53ba5f64..341fb0fa1c 100644 --- a/ui/assets/local/_app/immutable/chunks/workers-list.501e9be3.js +++ b/ui/assets/local/_app/immutable/chunks/workers-list.3a8ea58e.js @@ -1,3 +1,3 @@ -import{S as Se,b as Qe,a as Ae,m as v,w as V,c as A,C as W,p as g,q as E,x as S,k as c,d as F,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 Fe,Q as ce}from"./index.0942deb7.js";import{B as Be}from"./badge.5c29cec8.js";import{c as Oe,C as ie}from"./pollers-service.b55a2a09.js";import{E as He}from"./empty-state.64fbab21.js";import{I as ae}from"./icon.33308831.js";import{T as Ce,a as Pe}from"./table-header-row.b9d52458.js";import{T as Ve}from"./table-row.9c997398.js";import{t as Q}from"./translate.135d909a.js";import{t as qe,r as We,b as _e}from"./time-format.7dc1f425.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=Q("workers.version-sets")+"",t,r,s,u;return s=new Ce({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=A(),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=F(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:Q("workers.no-version-sets-found")}}),{c(){e=v("tr"),l=v("td"),W(t.$$.fragment),r=A(),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=F(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=Q("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=Q("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=Q("workers.default")+"",l,t;return{c(){l=V(e),t=A()},l(r){l=S(r,e),t=F(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=A(),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(P),p&&c(B),z[O].d(),p&&c(C)}}}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=A(),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(P),p&&c(B),z[O].d(),p&&c(C)}}}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={};C&262146&&(q.$$scope={dirty:C,ctx:$}),b.$set(q);const m={};C&262255&&(m.$$scope={dirty:C,ctx:$}),P.$set(m)},i($){B||(T(R),T(b.$$.fragment,$),T(P.$$.fragment,$),B=!0)},o($){D(R),D(b.$$.fragment,$),D(P.$$.fragment,$),B=!1},d($){$&&c(e),R&&R.d(),M(b),M(P)}}}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(),Qe(this,e,ct,ut,Ae,{taskQueue:0,workers:1,compatibility:7,reachability:2})}}export{gt as W}; diff --git a/ui/assets/local/_app/immutable/chunks/workflow-json-navigator.85eda75f.js b/ui/assets/local/_app/immutable/chunks/workflow-json-navigator.50ae8db9.js similarity index 97% rename from ui/assets/local/_app/immutable/chunks/workflow-json-navigator.85eda75f.js rename to ui/assets/local/_app/immutable/chunks/workflow-json-navigator.50ae8db9.js index 5d4e0bf07a..e67862d306 100644 --- a/ui/assets/local/_app/immutable/chunks/workflow-json-navigator.85eda75f.js +++ b/ui/assets/local/_app/immutable/chunks/workflow-json-navigator.50ae8db9.js @@ -1 +1 @@ -import{S as Ie,b as Ne,a as oe,O 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,Q as R,P as be,f as J,L as b,Z as se,M as B,y as ne,R as De,aq as fe,n as Z,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 Y,D as $,E as x,a1 as Ve,H as Le,I as Ue,J as je,F as ee}from"./index.0942deb7.js";import{C as Ae}from"./code-block.c6eabdb8.js";import{o as he,t as F}from"./translate.135d909a.js";import{L as Re}from"./loading.e7565465.js";import{f as ae}from"./index.db10a648.js";import{d as We}from"./events.edd90912.js";import{s as ke}from"./parse-with-big-int.0036a80a.js";import{P as Be}from"./payload-decoder.31bd549e.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,Je],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"),Y(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 M=N(g);r=I(M,"SPAN",{class:!0}),N(r).forEach(h),M.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){J(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),J(n,V,u),j[k].m(n,u),J(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 Me(s){let l,t;return l=new Re({}),{c(){Y(l.$$.fragment)},l(e){$(l.$$.fragment,e)},m(e,a){x(l,e,a),t=!0},p:Z,i(e){t||(S(l.$$.fragment,e),t=!0)},o(e){O(l.$$.fragment,e),t=!1},d(e){ee(l,e)}}}function Je(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,_),J(o,t,_),e=!0},p(o,_){_&2&&oe(l,l=o[1])?(re(),O(a,1,1,Z),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,_),J(o,t,_),e=!0},p(o,_){_&6&&oe(l,l=[o[1],o[2]])?(re(),O(a,1,1,Z),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(){Y(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(){Y(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(){Y(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=[Me,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),J(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 Ze(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,Ze,Qe,oe,{events:0})}}export{at as W}; +import{S as Ie,b as Ne,a as oe,O 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,Q as R,P as be,f as J,L as b,Z as se,M as B,y as ne,R as De,aq as fe,n as Z,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 Y,D as $,E as x,a1 as Ve,H as Le,I as Ue,J as je,F as ee}from"./index.0942deb7.js";import{C as Ae}from"./code-block.a5088abe.js";import{o as he,t as F}from"./translate.135d909a.js";import{L as Re}from"./loading.e7565465.js";import{f as ae}from"./index.dca55ccc.js";import{d as We}from"./events.a3eb82f4.js";import{s as ke}from"./parse-with-big-int.0036a80a.js";import{P as Be}from"./payload-decoder.ec62e968.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,Je],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"),Y(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 M=N(g);r=I(M,"SPAN",{class:!0}),N(r).forEach(h),M.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){J(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),J(n,V,u),j[k].m(n,u),J(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 Me(s){let l,t;return l=new Re({}),{c(){Y(l.$$.fragment)},l(e){$(l.$$.fragment,e)},m(e,a){x(l,e,a),t=!0},p:Z,i(e){t||(S(l.$$.fragment,e),t=!0)},o(e){O(l.$$.fragment,e),t=!1},d(e){ee(l,e)}}}function Je(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,_),J(o,t,_),e=!0},p(o,_){_&2&&oe(l,l=o[1])?(re(),O(a,1,1,Z),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,_),J(o,t,_),e=!0},p(o,_){_&6&&oe(l,l=[o[1],o[2]])?(re(),O(a,1,1,Z),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(){Y(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(){Y(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(){Y(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=[Me,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),J(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 Ze(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,Ze,Qe,oe,{events:0})}}export{at as W}; diff --git a/ui/assets/local/_app/immutable/chunks/workflow-run.80b64688.js b/ui/assets/local/_app/immutable/chunks/workflow-run.27281c78.js similarity index 54% rename from ui/assets/local/_app/immutable/chunks/workflow-run.80b64688.js rename to ui/assets/local/_app/immutable/chunks/workflow-run.27281c78.js index 72d49ce1cc..34c37604d4 100644 --- a/ui/assets/local/_app/immutable/chunks/workflow-run.80b64688.js +++ b/ui/assets/local/_app/immutable/chunks/workflow-run.27281c78.js @@ -1 +1 @@ -import{w as o}from"./singletons.0a6e865f.js";import{p as r}from"./persist-store.dd882958.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{i as a,a as b,e as i,t as r,l as w}; +import{w as o}from"./singletons.d67f4e6b.js";import{p as r}from"./persist-store.3ea3c364.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{i as a,a as b,e as i,t as r,l as w}; diff --git a/ui/assets/local/_app/immutable/chunks/workflow-service.61e0ba9f.js b/ui/assets/local/_app/immutable/chunks/workflow-service.61e0ba9f.js deleted file mode 100644 index 4c809ebbe0..0000000000 --- a/ui/assets/local/_app/immutable/chunks/workflow-service.61e0ba9f.js +++ /dev/null @@ -1 +0,0 @@ -import{ac as h}from"./index.0942deb7.js";import{t as j}from"./translate.135d909a.js";import{a as N,b as U}from"./decode-payload.3d6f13eb.js";import{c as O}from"./has.233e577a.js";import{w as D}from"./write-actions-are-allowed.7f76f8ee.js";import{s as K}from"./simplify-attributes.4e073f3b.js";import{l as _,a as L}from"./data-encoder-config.74f5c7e0.js";import{B as J}from"./prod-browser.becde89a.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.f2500de4.js";import{s as E}from"./parse-with-big-int.0036a80a.js";import{j as x}from"./singletons.0a6e865f.js";import{p as Z}from"./stores.73c3690d.js";import{i as oo}from"./version-check.d006b302.js";import{c as $,t as to}from"./versions.e238352a.js";import{l as no,m as ro,n as C,o as eo}from"./format-time.5082c525.js";import{v as io}from"./toaster.60da8f1b.js";const ao=(o=[])=>o.map(t=>{const n=K(t,!0),r=t.activityId;return{...n,id:r}}),co=o=>O(o)||O(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)))),F=(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} > "${C(t)}"`:`${r} BETWEEN "${C(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,notifyOnError:!1,params:{"execution.runId":o.runId}}).then(r=>({workflow:I(r)})).catch(r=>({error:r}))}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:F("json/plain")},data:F(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/workflow-service.bd668cd0.js b/ui/assets/local/_app/immutable/chunks/workflow-service.bd668cd0.js new file mode 100644 index 0000000000..ad58462d5e --- /dev/null +++ b/ui/assets/local/_app/immutable/chunks/workflow-service.bd668cd0.js @@ -0,0 +1 @@ +import{ac as h}from"./index.0942deb7.js";import{t as Q}from"./translate.135d909a.js";import{a as j,b as U}from"./decode-payload.19da7edc.js";import{f as D}from"./screaming-enums.7a4380bd.js";import{w as K}from"./write-actions-are-allowed.652105b1.js";import{s as N}from"./simplify-attributes.3c34b46b.js";import{l as _,a as L}from"./data-encoder-config.e34150f0.js";import{B as J}from"./prod-browser.becde89a.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.4c8e7aa5.js";import{s as E}from"./parse-with-big-int.0036a80a.js";import{j as x}from"./singletons.d67f4e6b.js";import{p as Z}from"./stores.255470ec.js";import{i as oo}from"./version-check.d006b302.js";import{c as F,t as to}from"./versions.1002dc8d.js";import{l as no,m as ro,n as O,o as eo}from"./format-time.5082c525.js";import{v as io}from"./toaster.cfecd6c1.js";const ao=(o=[])=>o.map(t=>{const n=N(t,!0),r=t.activityId;return{...n,id:r}}),co=o=>!o||!o.indexedFields?{}:{indexedFields:Object.entries(o.indexedFields).reduce((n,[r,e])=>({...n,[r]:j(e)}),{})},I=o=>{var p,T,b,g,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,f=D(o.workflowExecutionInfo.status),u=f==="Running",l=o.workflowExecutionInfo.historyLength,y=o.workflowExecutionInfo.historySizeBytes,c=`/workflows/${r}/${e}`,m=((T=(p=o==null?void 0:o.executionConfig)==null?void 0:p.taskQueue)==null?void 0:T.name)||((b=o==null?void 0:o.workflowExecutionInfo)==null?void 0:b.taskQueue),k=(g=o==null?void 0:o.workflowExecutionInfo)==null?void 0:g.mostRecentWorkerVersionStamp,P=(S=o==null?void 0:o.workflowExecutionInfo)==null?void 0:S.parentNamespaceId,v=(W=o==null?void 0:o.workflowExecutionInfo)==null?void 0:W.parentExecution,B=o.workflowExecutionInfo.stateTransitionCount,z=(A=o.executionConfig)==null?void 0:A.defaultWorkflowTaskTimeout,V=ao(o.pendingActivities),q=(o==null?void 0:o.pendingChildren)??[];return{name:n,id:r,runId:e,startTime:i,endTime:s,executionTime:a,status:f,historyEvents:l,historySizeBytes:y,searchAttributes:t,url:c,taskQueue:m,mostRecentWorkerVersionStamp:k,pendingActivities:V,pendingChildren:q,parentNamespaceId:P,parent:v,stateTransitionCount:B,isRunning:u,defaultWorkflowTaskTimeout:z,get canBeTerminated(){return u&&K()}}},R=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)))),C=(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")},$=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([F,to,$],([o,t,n])=>fo(o,t)||n);x([F,$],([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} > "${O(t)}"`:`${r} BETWEEN "${O(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 f=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"},u=w(s,{namespace:o}),{executions:l,nextPageToken:y}=await d(u,{params:{query:i},onError:f,handleError:f,request:n})??{executions:[],nextPageToken:""};return{workflows:R({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:f}=await d(a,{params:{query:`WorkflowId="${t}"`,pageSize:"1"},request:r})??{executions:[]},u=(l=R({executions:f}))==null?void 0:l[0];return{runId:u==null?void 0:u.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,notifyOnError:!1,params:{"execution.runId":o.runId}}).then(r=>({workflow:I(r)})).catch(r=>({error:r}))}async function Uo({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 Do({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 Ko({namespace:o,workflowId:t,runId:n,signalName:r,signalInput:e,settings:i,accessToken:s}){var u;const a=w("workflow.signal",{namespace:o,workflowId:t,signalName:r});let f=null;if(e)if((u=i==null?void 0:i.codec)!=null&&u.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)||Q("common.encode-failed"));f=(l==null?void 0:l.payloads)??null}else f=[{metadata:{encoding:C("json/plain")},data:C(e)}];return d(a,{notifyOnError:!1,options:{method:"POST",body:E({signalName:r,input:{payloads:f},params:{"execution.runId":n}})}})}async function No({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,Do as c,qo as d,Qo as e,jo as f,xo as g,_o as h,$ as i,Vo as j,No as r,Ko as s,Uo as t}; diff --git a/ui/assets/local/_app/immutable/chunks/workflow-status.833cfe09.js b/ui/assets/local/_app/immutable/chunks/workflow-status.391c4889.js similarity index 98% rename from ui/assets/local/_app/immutable/chunks/workflow-status.833cfe09.js rename to ui/assets/local/_app/immutable/chunks/workflow-status.391c4889.js index 9a0ff5698f..cdce3f06f6 100644 --- a/ui/assets/local/_app/immutable/chunks/workflow-status.833cfe09.js +++ b/ui/assets/local/_app/immutable/chunks/workflow-status.391c4889.js @@ -1 +1 @@ -import{S as M,b as X,a as Y,m as A,c as F,w as R,p as E,q as P,d as O,x as N,k as w,u as h,Q as U,f as q,L as k,z as D,g as y,h as H,j as g,y as T,O as W,U as j,C as B,D as G,E as J,F as K,a3 as Z,a4 as $,n as x}from"./index.0942deb7.js";import{a as ee}from"./index.2fa3ca4d.js";import{c as te}from"./button.c09134bf.js";import{S as ne}from"./icon.33308831.js";import{t as u}from"./translate.135d909a.js";import{H as ae}from"./heart-beat-indicator.df4ee8c0.js";function ie(l){let e=l[2].toLocaleString()+"",n;return{c(){n=R(e)},l(t){n=N(t,e)},m(t,a){q(t,n,a)},p(t,a){a&4&&e!==(e=t[2].toLocaleString()+"")&&T(n,e)},i:x,o:x,d(t){t&&w(n)}}}function le(l){let e,n;return e=new ne({props:{class:"h-4 w-4 animate-spin"}}),{c(){B(e.$$.fragment)},l(t){G(e.$$.fragment,t)},m(t,a){J(e,t,a),n=!0},p:x,i(t){n||(g(e.$$.fragment,t),n=!0)},o(t){y(e.$$.fragment,t),n=!1},d(t){K(e,t)}}}function z(l){let e,n;return e=new ae({props:{delay:l[0]}}),{c(){B(e.$$.fragment)},l(t){G(e.$$.fragment,t)},m(t,a){J(e,t,a),n=!0},p(t,a){const s={};a&1&&(s.delay=t[0]),e.$set(s)},i(t){n||(g(e.$$.fragment,t),n=!0)},o(t){y(e.$$.fragment,t),n=!1},d(t){K(e,t)}}}function Q(l){let e,n,t,a=l[4]>0&&V();return{c(){e=A("span"),a&&a.c(),n=R(l[4]),this.h()},l(s){e=E(s,"SPAN",{class:!0});var c=P(e);a&&a.l(c),n=N(c,l[4]),c.forEach(w),this.h()},h(){h(e,"class","font-base rounded-r bg-white px-1 py-0.5 text-xs text-gray-900")},m(s,c){q(s,e,c),a&&a.m(e,null),k(e,n)},p(s,c){s[4]>0?a||(a=V(),a.c(),a.m(e,n)):a&&(a.d(1),a=null),c&16&&T(n,s[4])},i(s){t||Z(()=>{t=$(e,ee,{}),t.start()})},o:x,d(s){s&&w(e),a&&a.d()}}}function V(l){let e;return{c(){e=R("+")},l(n){e=N(n,"+")},m(n,t){q(n,e,t)},d(n){n&&w(e)}}}function se(l){let e,n,t,a,s,c=l[5][l[1]]+"",p,S,v,d,C,_;const I=[le,ie],b=[];function L(i,f){return i[3]?0:i[2]>=0?1:-1}~(t=L(l))&&(a=b[t]=I[t](l));let o=l[1]==="Running"&&z(l),r=l[4]&&Q(l);return{c(){e=A("div"),n=A("span"),a&&a.c(),s=F(),p=R(c),S=F(),o&&o.c(),d=F(),r&&r.c(),this.h()},l(i){e=E(i,"DIV",{class:!0,"data-testid":!0});var f=P(e);n=E(f,"SPAN",{class:!0});var m=P(n);a&&a.l(m),s=O(m),p=N(m,c),S=O(m),o&&o.l(m),m.forEach(w),d=O(f),r&&r.l(f),f.forEach(w),this.h()},h(){h(n,"class",v="flex items-center gap-1 font-medium "+l[6]({status:l[1]})),U(n,"rounded-r-none",l[4]),h(e,"class","relative flex items-center gap-0 text-center text-sm leading-4"),h(e,"data-testid",C=l[7]["test-id"])},m(i,f){q(i,e,f),k(e,n),~t&&b[t].m(n,null),k(n,s),k(n,p),k(n,S),o&&o.m(n,null),k(e,d),r&&r.m(e,null),_=!0},p(i,[f]){let m=t;t=L(i),t===m?~t&&b[t].p(i,f):(a&&(D(),y(b[m],1,1,()=>{b[m]=null}),H()),~t?(a=b[t],a?a.p(i,f):(a=b[t]=I[t](i),a.c()),g(a,1),a.m(n,s)):a=null),(!_||f&2)&&c!==(c=i[5][i[1]]+"")&&T(p,c),i[1]==="Running"?o?(o.p(i,f),f&2&&g(o,1)):(o=z(i),o.c(),g(o,1),o.m(n,null)):o&&(D(),y(o,1,1,()=>{o=null}),H()),(!_||f&2&&v!==(v="flex items-center gap-1 font-medium "+i[6]({status:i[1]})))&&h(n,"class",v),(!_||f&18)&&U(n,"rounded-r-none",i[4]),i[4]?r?(r.p(i,f),f&16&&g(r,1)):(r=Q(i),r.c(),g(r,1),r.m(e,null)):r&&(r.d(1),r=null),(!_||f&128&&C!==(C=i[7]["test-id"]))&&h(e,"data-testid",C)},i(i){_||(g(a),g(o),g(r),_=!0)},o(i){y(a),y(o),_=!1},d(i){i&&w(e),~t&&b[t].d(),o&&o.d(),r&&r.d()}}}function oe(l,e,n){let{delay:t=0}=e,{status:a="Running"}=e,{count:s=void 0}=e,{loading:c=!1}=e,{newCount:p=void 0}=e;const S={Running:u("workflows.running"),TimedOut:u("workflows.timed-out"),Completed:u("workflows.completed"),Failed:u("workflows.failed"),ContinuedAsNew:u("workflows.continued-as-new"),Canceled:u("workflows.canceled"),Terminated:u("workflows.terminated"),Paused:u("workflows.paused"),Scheduled:u("events.event-classification.started"),Started:u("events.event-classification.started"),Unspecified:u("events.event-classification.unspecified"),Open:u("events.event-classification.open"),New:u("events.event-classification.new"),Initiated:u("events.event-classification.initiated"),Fired:u("events.event-classification.fired"),CancelRequested:u("events.event-classification.cancelrequested"),Signaled:u("events.event-classification.signaled")},v=te(["flex items-center rounded-sm px-1 py-0.5 font-secondary whitespace-nowrap"],{variants:{status:{Running:"bg-blue-100 text-blue-700",TimedOut:"bg-orange-100 text-orange-700",Completed:"bg-green-100 text-green-700",Failed:"bg-red-100 text-red-700",ContinuedAsNew:"bg-gray-200 text-gray-900",Canceled:"bg-yellow-100 text-yellow-900",Terminated:"bg-red-100 text-red-700",Paused:"bg-yellow-100 text-yellow-700",Unspecified:"bg-gray-200 text-gray-900",Scheduled:"bg-blue-100 text-blue-700",Started:"bg-blue-100 text-blue-700",Open:"bg-green-100 text-green-700",New:"bg-indigo-100 text-indigo-700",Initiated:"bg-blue-100 text-blue-700",Fired:"bg-blue-100 text-blue-700",CancelRequested:"bg-yellow-100 text-yellow-900",Signaled:"bg-purple-100 text-purple-700"}}});return l.$$set=d=>{n(7,e=W(W({},e),j(d))),"delay"in d&&n(0,t=d.delay),"status"in d&&n(1,a=d.status),"count"in d&&n(2,s=d.count),"loading"in d&&n(3,c=d.loading),"newCount"in d&&n(4,p=d.newCount)},e=j(e),[t,a,s,c,p,S,v,e]}class ge extends M{constructor(e){super(),X(this,e,oe,se,Y,{delay:0,status:1,count:2,loading:3,newCount:4})}}export{ge as W}; +import{S as M,b as X,a as Y,m as A,c as F,w as R,p as E,q as P,d as O,x as N,k as w,u as h,Q as U,f as q,L as k,z as D,g as y,h as H,j as g,y as T,O as W,U as j,C as B,D as G,E as J,F as K,a3 as Z,a4 as $,n as x}from"./index.0942deb7.js";import{a as ee}from"./index.2fa3ca4d.js";import{c as te}from"./button.72eef818.js";import{S as ne}from"./icon.33308831.js";import{t as u}from"./translate.135d909a.js";import{H as ae}from"./heart-beat-indicator.df4ee8c0.js";function ie(l){let e=l[2].toLocaleString()+"",n;return{c(){n=R(e)},l(t){n=N(t,e)},m(t,a){q(t,n,a)},p(t,a){a&4&&e!==(e=t[2].toLocaleString()+"")&&T(n,e)},i:x,o:x,d(t){t&&w(n)}}}function le(l){let e,n;return e=new ne({props:{class:"h-4 w-4 animate-spin"}}),{c(){B(e.$$.fragment)},l(t){G(e.$$.fragment,t)},m(t,a){J(e,t,a),n=!0},p:x,i(t){n||(g(e.$$.fragment,t),n=!0)},o(t){y(e.$$.fragment,t),n=!1},d(t){K(e,t)}}}function z(l){let e,n;return e=new ae({props:{delay:l[0]}}),{c(){B(e.$$.fragment)},l(t){G(e.$$.fragment,t)},m(t,a){J(e,t,a),n=!0},p(t,a){const s={};a&1&&(s.delay=t[0]),e.$set(s)},i(t){n||(g(e.$$.fragment,t),n=!0)},o(t){y(e.$$.fragment,t),n=!1},d(t){K(e,t)}}}function Q(l){let e,n,t,a=l[4]>0&&V();return{c(){e=A("span"),a&&a.c(),n=R(l[4]),this.h()},l(s){e=E(s,"SPAN",{class:!0});var c=P(e);a&&a.l(c),n=N(c,l[4]),c.forEach(w),this.h()},h(){h(e,"class","font-base rounded-r bg-white px-1 py-0.5 text-xs text-gray-900")},m(s,c){q(s,e,c),a&&a.m(e,null),k(e,n)},p(s,c){s[4]>0?a||(a=V(),a.c(),a.m(e,n)):a&&(a.d(1),a=null),c&16&&T(n,s[4])},i(s){t||Z(()=>{t=$(e,ee,{}),t.start()})},o:x,d(s){s&&w(e),a&&a.d()}}}function V(l){let e;return{c(){e=R("+")},l(n){e=N(n,"+")},m(n,t){q(n,e,t)},d(n){n&&w(e)}}}function se(l){let e,n,t,a,s,c=l[5][l[1]]+"",p,S,v,d,C,_;const I=[le,ie],b=[];function L(i,f){return i[3]?0:i[2]>=0?1:-1}~(t=L(l))&&(a=b[t]=I[t](l));let o=l[1]==="Running"&&z(l),r=l[4]&&Q(l);return{c(){e=A("div"),n=A("span"),a&&a.c(),s=F(),p=R(c),S=F(),o&&o.c(),d=F(),r&&r.c(),this.h()},l(i){e=E(i,"DIV",{class:!0,"data-testid":!0});var f=P(e);n=E(f,"SPAN",{class:!0});var m=P(n);a&&a.l(m),s=O(m),p=N(m,c),S=O(m),o&&o.l(m),m.forEach(w),d=O(f),r&&r.l(f),f.forEach(w),this.h()},h(){h(n,"class",v="flex items-center gap-1 font-medium "+l[6]({status:l[1]})),U(n,"rounded-r-none",l[4]),h(e,"class","relative flex items-center gap-0 text-center text-sm leading-4"),h(e,"data-testid",C=l[7]["test-id"])},m(i,f){q(i,e,f),k(e,n),~t&&b[t].m(n,null),k(n,s),k(n,p),k(n,S),o&&o.m(n,null),k(e,d),r&&r.m(e,null),_=!0},p(i,[f]){let m=t;t=L(i),t===m?~t&&b[t].p(i,f):(a&&(D(),y(b[m],1,1,()=>{b[m]=null}),H()),~t?(a=b[t],a?a.p(i,f):(a=b[t]=I[t](i),a.c()),g(a,1),a.m(n,s)):a=null),(!_||f&2)&&c!==(c=i[5][i[1]]+"")&&T(p,c),i[1]==="Running"?o?(o.p(i,f),f&2&&g(o,1)):(o=z(i),o.c(),g(o,1),o.m(n,null)):o&&(D(),y(o,1,1,()=>{o=null}),H()),(!_||f&2&&v!==(v="flex items-center gap-1 font-medium "+i[6]({status:i[1]})))&&h(n,"class",v),(!_||f&18)&&U(n,"rounded-r-none",i[4]),i[4]?r?(r.p(i,f),f&16&&g(r,1)):(r=Q(i),r.c(),g(r,1),r.m(e,null)):r&&(r.d(1),r=null),(!_||f&128&&C!==(C=i[7]["test-id"]))&&h(e,"data-testid",C)},i(i){_||(g(a),g(o),g(r),_=!0)},o(i){y(a),y(o),_=!1},d(i){i&&w(e),~t&&b[t].d(),o&&o.d(),r&&r.d()}}}function oe(l,e,n){let{delay:t=0}=e,{status:a="Running"}=e,{count:s=void 0}=e,{loading:c=!1}=e,{newCount:p=void 0}=e;const S={Running:u("workflows.running"),TimedOut:u("workflows.timed-out"),Completed:u("workflows.completed"),Failed:u("workflows.failed"),ContinuedAsNew:u("workflows.continued-as-new"),Canceled:u("workflows.canceled"),Terminated:u("workflows.terminated"),Paused:u("workflows.paused"),Scheduled:u("events.event-classification.started"),Started:u("events.event-classification.started"),Unspecified:u("events.event-classification.unspecified"),Open:u("events.event-classification.open"),New:u("events.event-classification.new"),Initiated:u("events.event-classification.initiated"),Fired:u("events.event-classification.fired"),CancelRequested:u("events.event-classification.cancelrequested"),Signaled:u("events.event-classification.signaled")},v=te(["flex items-center rounded-sm px-1 py-0.5 font-secondary whitespace-nowrap"],{variants:{status:{Running:"bg-blue-100 text-blue-700",TimedOut:"bg-orange-100 text-orange-700",Completed:"bg-green-100 text-green-700",Failed:"bg-red-100 text-red-700",ContinuedAsNew:"bg-gray-200 text-gray-900",Canceled:"bg-yellow-100 text-yellow-900",Terminated:"bg-red-100 text-red-700",Paused:"bg-yellow-100 text-yellow-700",Unspecified:"bg-gray-200 text-gray-900",Scheduled:"bg-blue-100 text-blue-700",Started:"bg-blue-100 text-blue-700",Open:"bg-green-100 text-green-700",New:"bg-indigo-100 text-indigo-700",Initiated:"bg-blue-100 text-blue-700",Fired:"bg-blue-100 text-blue-700",CancelRequested:"bg-yellow-100 text-yellow-900",Signaled:"bg-purple-100 text-purple-700"}}});return l.$$set=d=>{n(7,e=W(W({},e),j(d))),"delay"in d&&n(0,t=d.delay),"status"in d&&n(1,a=d.status),"count"in d&&n(2,s=d.count),"loading"in d&&n(3,c=d.loading),"newCount"in d&&n(4,p=d.newCount)},e=j(e),[t,a,s,c,p,S,v,e]}class ge extends M{constructor(e){super(),X(this,e,oe,se,Y,{delay:0,status:1,count:2,loading:3,newCount:4})}}export{ge as W}; diff --git a/ui/assets/local/_app/immutable/chunks/workflows.13c60c9c.js b/ui/assets/local/_app/immutable/chunks/workflows.13c60c9c.js deleted file mode 100644 index 1443f3bd9c..0000000000 --- a/ui/assets/local/_app/immutable/chunks/workflows.13c60c9c.js +++ /dev/null @@ -1 +0,0 @@ -import{j as c,r as m,w as n}from"./singletons.0a6e865f.js";import{p as u}from"./stores.73c3690d.js";import{t as d}from"./translate.135d909a.js";import{n as w,ac as k}from"./index.0942deb7.js";import{r as f,a as p}from"./route-for-api.f2500de4.js";import{a as h,b as E}from"./workflow-service.61e0ba9f.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/workflows.99ef2d92.js b/ui/assets/local/_app/immutable/chunks/workflows.99ef2d92.js new file mode 100644 index 0000000000..aff0c7f8ed --- /dev/null +++ b/ui/assets/local/_app/immutable/chunks/workflows.99ef2d92.js @@ -0,0 +1 @@ +import{j as c,r as m,w as n}from"./singletons.d67f4e6b.js";import{p as u}from"./stores.255470ec.js";import{t as d}from"./translate.135d909a.js";import{n as w,ac as k}from"./index.0942deb7.js";import{r as f,a as p}from"./route-for-api.4c8e7aa5.js";import{a as h,b as E}from"./workflow-service.bd668cd0.js";const b=async(o,r,t=fetch)=>{let s=0;try{const e=f("workflows.count",{namespace:o}),a=await p(e,{params:r?{query:r}:{},onError:w,handleError:w,request:t});s=parseInt((a==null?void 0:a.count)||"0")}catch{}return{count:s}},j=async({namespace:o,query:r})=>{const t="GROUP BY ExecutionStatus",s=f("workflows.count",{namespace:o}),{count:e,groups:a}=await p(s,{params:{query:r?`${r} ${t}`:`${t}`},notifyOnError:!1});return{count:e??"0",groups:a}},g=300,C=async(o,r,t)=>{r.set(!0);try{await t()}catch(s){console.error(s)}o.set(!1),setTimeout(()=>{r.set(!1)},g)},W=c([u],([o])=>{var r,t,s;return Boolean((s=(t=(r=o.data)==null?void 0:r.systemInfo)==null?void 0:t.capabilities)==null?void 0:s.countGroupByExecutionStatus)}),A=n(0),B=c([u],([o])=>{var r,t;return(t=(r=o.data)==null?void 0:r.settings)==null?void 0:t.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,t,s,e])=>({namespace:o,query:r,refresh:t,supportsAdvancedVisibility:s,hideWorkflowQueryErrors:e})),x=o=>{R.set({...o,newCount:0})},P=o=>Q.subscribe(({namespace:r,query:t,supportsAdvancedVisibility:s,hideWorkflowQueryErrors:e})=>{C(I,S,async()=>{const{workflows:a,error:l}=await E(r,{query:t});if(o(a),s&&!k(W)){const y=await b(r,t);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.7f76f8ee.js b/ui/assets/local/_app/immutable/chunks/write-actions-are-allowed.652105b1.js similarity index 54% rename from ui/assets/local/_app/immutable/chunks/write-actions-are-allowed.7f76f8ee.js rename to ui/assets/local/_app/immutable/chunks/write-actions-are-allowed.652105b1.js index 646f3678f7..4d864b2717 100644 --- a/ui/assets/local/_app/immutable/chunks/write-actions-are-allowed.7f76f8ee.js +++ b/ui/assets/local/_app/immutable/chunks/write-actions-are-allowed.652105b1.js @@ -1 +1 @@ -import{ac as t}from"./index.0942deb7.js";import{s as e}from"./settings.424dea30.js";const a=(s=e)=>!t(s).disableWriteActions;export{a as w}; +import{ac as t}from"./index.0942deb7.js";import{s as e}from"./settings.23b6089e.js";const a=(s=e)=>!t(s).disableWriteActions;export{a as w}; diff --git a/ui/assets/local/_app/immutable/entry/app.7a67a672.js b/ui/assets/local/_app/immutable/entry/app.7a67a672.js new file mode 100644 index 0000000000..e9041ba589 --- /dev/null +++ b/ui/assets/local/_app/immutable/entry/app.7a67a672.js @@ -0,0 +1 @@ +import{S as H,b as J,a as K,c as M,e as p,d as Q,f as b,g as m,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.0942deb7.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=p()},l(t){e&&D(e.$$.fragment,t),n=p()},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;m(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&&m(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=p()},l(t){e&&D(e.$$.fragment,t),n=p()},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;m(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&&m(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=p()},l(t){e&&D(e.$$.fragment,t),n=p()},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;m(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&&m(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=p()},l(t){e&&D(e.$$.fragment,t),n=p()},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;m(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&&m(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=p()},l(t){e&&D(e.$$.fragment,t),n=p()},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;m(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&&m(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=p()},l(t){e&&D(e.$$.fragment,t),n=p()},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;m(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&&m(e.$$.fragment,t),r=!1},d(t){_[16](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],form:t[2]}}}return i&&(e=w(i,l(_)),_[15](e)),{c(){e&&h(e.$$.fragment),n=p()},l(t){e&&D(e.$$.fragment,t),n=p()},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;m(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&&m(e.$$.fragment,t),r=!1},d(t){_[15](null),t&&v(n),e&&k(e,t)}}}function me(_){let e,n,r;var i=_[1][3];function l(t){return{props:{data:t[6],$$slots:{default:[de]},$$scope:{ctx:t}}}}return i&&(e=w(i,l(_)),_[14](e)),{c(){e&&h(e.$$.fragment),n=p()},l(t){e&&D(e.$$.fragment,t),n=p()},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;m(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&&m(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=p()},l(t){e&&D(e.$$.fragment,t),n=p()},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;m(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&&m(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=[me,pe],t=[];function o(s,a){return s[1][4]?0:1}return e=o(_),n=t[e]=l[e](_),{c(){n.c(),r=p()},l(s){n.l(s),r=p()},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(),m(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){m(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=p()},l(s){n.l(s),r=p()},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(),m(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){m(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=p()},l(s){n.l(s),r=p()},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(),m(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){m(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=p()},l(c){n.l(c),r=Q(c),a&&a.l(c),i=p()},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(),m(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){m(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.f82b1c0e.js"),["../nodes/0.f82b1c0e.js","../chunks/i18next.1cfb3cb9.js","../chunks/layout.00d22cc5.js","../chunks/index.0942deb7.js"],import.meta.url),()=>u(()=>import("../nodes/1.1fe70d49.js"),["../nodes/1.1fe70d49.js","../chunks/index.0942deb7.js","../chunks/stores.255470ec.js","../chunks/singletons.d67f4e6b.js","../chunks/paths.742c8328.js","../chunks/error.6e410547.js","../chunks/navigation.dde0d4fa.js","../chunks/link.faba7c50.js","../chunks/icon.33308831.js","../assets/link.336f9447.css","../chunks/has.233e577a.js","../chunks/is-network-error.d988be19.js","../chunks/parse-with-big-int.0036a80a.js","../assets/app.6749d24f.css"],import.meta.url),()=>u(()=>import("../nodes/2.af614172.js"),["../nodes/2.af614172.js","../chunks/index.3158323b.js","../chunks/control.f5b05b5f.js","../chunks/route-for-api.4c8e7aa5.js","../chunks/prod-browser.becde89a.js","../chunks/auth-user.6dc931ea.js","../chunks/index.0942deb7.js","../chunks/persist-store.3ea3c364.js","../chunks/singletons.d67f4e6b.js","../chunks/paths.742c8328.js","../chunks/parse-with-big-int.0036a80a.js","../chunks/toaster.cfecd6c1.js","../chunks/has.233e577a.js","../chunks/is-network-error.d988be19.js","../chunks/route-for.18f9590b.js","../chunks/encode-uri.dfce78e4.js","../chunks/stores.255470ec.js","../chunks/namespaces-service.db387b71.js","../chunks/namespaces.68caf21c.js","../chunks/paginated.b6fcdb03.js","../chunks/screaming-enums.7a4380bd.js","../chunks/settings-service.d5aa336c.js","../chunks/is-http.b24d498b.js","../chunks/navigation.dde0d4fa.js","../chunks/toggle-switch.cc141600.js","../assets/toggle-switch.ff91b31f.css","../chunks/translate.135d909a.js","../chunks/i18next.1cfb3cb9.js","../chunks/workflow-run.27281c78.js","../chunks/data-encoder-config.e34150f0.js","../chunks/menu.1cf8fd74.js","../chunks/badge.5c29cec8.js","../assets/badge.bfa9122b.css","../chunks/icon.33308831.js","../chunks/index.2fa3ca4d.js","../assets/menu.15c6ebf1.css","../chunks/link.faba7c50.js","../assets/link.336f9447.css","../chunks/button.72eef818.js","../chunks/accordion.6428cbfc.js","../chunks/radio-input.aefa279b.js","../assets/radio-input.01c3758f.css","../chunks/tooltip.0f6d0305.js","../chunks/index.de7612af.js","../chunks/copy-to-clipboard.24b8f9c0.js","../chunks/button.d6281b70.js","../assets/button.8b8c0631.css","../assets/tooltip.78399487.css","../chunks/batch-operations.b60f5f99.js","../chunks/workflow-actions.6f88149c.js","../chunks/versions.1002dc8d.js","../chunks/settings.23b6089e.js","../chunks/version-check.d006b302.js","../chunks/icon-button.cdadbc6c.js","../assets/icon-button.c79bd23b.css","../chunks/input.1a8beba6.js","../assets/input.c1217c93.css","../chunks/menu-divider.79623dfc.js","../chunks/time-format.aa1f006c.js","../chunks/format-time.5082c525.js","../chunks/format-camel-case.887ffc78.js","../chunks/error.6e410547.js","../assets/2.2e6abd94.css","../assets/app.6749d24f.css"],import.meta.url),()=>u(()=>import("../nodes/3.29f53349.js"),["../nodes/3.29f53349.js","../chunks/index.0942deb7.js","../chunks/stores.255470ec.js","../chunks/singletons.d67f4e6b.js","../chunks/paths.742c8328.js","../chunks/page-title.433b384d.js"],import.meta.url),()=>u(()=>import("../nodes/4.cc1f7d32.js"),["../nodes/4.cc1f7d32.js","../chunks/index.0942deb7.js","../chunks/event-history-file-import.de8c0286.js","../chunks/navigation.dde0d4fa.js","../chunks/singletons.d67f4e6b.js","../chunks/paths.742c8328.js","../chunks/button.72eef818.js","../chunks/badge.5c29cec8.js","../assets/badge.bfa9122b.css","../chunks/icon.33308831.js","../chunks/link.faba7c50.js","../assets/link.336f9447.css","../chunks/translate.135d909a.js","../chunks/i18next.1cfb3cb9.js","../chunks/index.5fe2e895.js","../chunks/has.233e577a.js","../chunks/is-event-type.7aa6d0ba.js","../chunks/format-time.5082c525.js","../chunks/index.dca55ccc.js","../chunks/data-encoder-config.e34150f0.js","../chunks/persist-store.3ea3c364.js","../chunks/parse-with-big-int.0036a80a.js","../chunks/auth-user.6dc931ea.js","../chunks/time-format.aa1f006c.js","../chunks/screaming-enums.7a4380bd.js","../chunks/get-event-categorization.75c83097.js","../chunks/simplify-attributes.3c34b46b.js","../chunks/import-events.ad8d6143.js","../chunks/namespaces.68caf21c.js","../chunks/toaster.cfecd6c1.js","../chunks/route-for.18f9590b.js","../chunks/prod-browser.becde89a.js","../chunks/encode-uri.dfce78e4.js","../chunks/toggle-buttons.e3375436.js","../chunks/stores.255470ec.js","../assets/toggle-buttons.1415ce75.css"],import.meta.url),()=>u(()=>import("../nodes/5.b154ce54.js"),["../nodes/5.b154ce54.js","../chunks/route-for-api.4c8e7aa5.js","../chunks/prod-browser.becde89a.js","../chunks/auth-user.6dc931ea.js","../chunks/index.0942deb7.js","../chunks/persist-store.3ea3c364.js","../chunks/singletons.d67f4e6b.js","../chunks/paths.742c8328.js","../chunks/parse-with-big-int.0036a80a.js","../chunks/toaster.cfecd6c1.js","../chunks/has.233e577a.js","../chunks/is-network-error.d988be19.js","../chunks/route-for.18f9590b.js","../chunks/encode-uri.dfce78e4.js","../chunks/stores.255470ec.js","../chunks/screaming-enums.7a4380bd.js","../chunks/search-attributes.ed984efc.js","../chunks/layout.00d22cc5.js"],import.meta.url),()=>u(()=>import("../nodes/6.fff347b6.js"),["../nodes/6.fff347b6.js","../chunks/index.0942deb7.js"],import.meta.url),()=>u(()=>import("../nodes/7.940a302e.js"),["../nodes/7.940a302e.js","../chunks/index.0942deb7.js","../chunks/stores.255470ec.js","../chunks/singletons.d67f4e6b.js","../chunks/paths.742c8328.js","../chunks/link.faba7c50.js","../chunks/navigation.dde0d4fa.js","../chunks/icon.33308831.js","../assets/link.336f9447.css","../chunks/translate.135d909a.js","../chunks/i18next.1cfb3cb9.js","../chunks/workflows.99ef2d92.js","../chunks/route-for-api.4c8e7aa5.js","../chunks/prod-browser.becde89a.js","../chunks/auth-user.6dc931ea.js","../chunks/persist-store.3ea3c364.js","../chunks/parse-with-big-int.0036a80a.js","../chunks/toaster.cfecd6c1.js","../chunks/has.233e577a.js","../chunks/is-network-error.d988be19.js","../chunks/route-for.18f9590b.js","../chunks/encode-uri.dfce78e4.js","../chunks/workflow-service.bd668cd0.js","../chunks/decode-payload.19da7edc.js","../chunks/data-encoder-config.e34150f0.js","../chunks/is-http.b24d498b.js","../chunks/screaming-enums.7a4380bd.js","../chunks/write-actions-are-allowed.652105b1.js","../chunks/settings.23b6089e.js","../chunks/simplify-attributes.3c34b46b.js","../chunks/time-format.aa1f006c.js","../chunks/format-time.5082c525.js","../chunks/version-check.d006b302.js","../chunks/versions.1002dc8d.js","../chunks/loading.e7565465.js","../chunks/index.2fa3ca4d.js","../chunks/toggle-switch.cc141600.js","../assets/toggle-switch.ff91b31f.css","../chunks/tooltip.0f6d0305.js","../chunks/index.de7612af.js","../chunks/copy-to-clipboard.24b8f9c0.js","../chunks/button.d6281b70.js","../assets/button.8b8c0631.css","../assets/tooltip.78399487.css","../chunks/event-view.f292d7b1.js","../chunks/checkbox.7cf45921.js","../assets/checkbox.4a8ab4a7.css","../chunks/input.1a8beba6.js","../chunks/icon-button.cdadbc6c.js","../assets/icon-button.c79bd23b.css","../assets/input.c1217c93.css","../chunks/radio-input.aefa279b.js","../assets/radio-input.01c3758f.css","../chunks/workflow-actions.6f88149c.js","../chunks/events.a3eb82f4.js","../chunks/workflow-run.27281c78.js","../chunks/is-event-type.7aa6d0ba.js","../chunks/button.72eef818.js","../chunks/badge.5c29cec8.js","../assets/badge.bfa9122b.css","../chunks/code-block.a5088abe.js","../chunks/menu.1cf8fd74.js","../assets/menu.15c6ebf1.css","../chunks/menu-divider.79623dfc.js","../chunks/modal.2dc225aa.js","../assets/modal.a1162225.css","../chunks/split-button.3aa0e7a5.js","../assets/split-button.8566e410.css","../chunks/core-user.1d8c4365.js","../chunks/workflow-terminate-enabled.abf4a597.js","../chunks/workflow-status.391c4889.js","../chunks/heart-beat-indicator.df4ee8c0.js","../assets/heart-beat-indicator.80899fb7.css","../chunks/alert.c46cfdd9.js","../assets/alert.303275c8.css","../chunks/pollers-service.351badff.js","../assets/pollers-service.3f93e67d.css","../chunks/tab.f6368f6e.js","../assets/tab.8436f1bf.css","../chunks/task-queue-compatibility.8d922da0.js","../chunks/events-service.4b32e39d.js","../chunks/index.dca55ccc.js","../chunks/get-event-categorization.75c83097.js","../chunks/paginated.b6fcdb03.js"],import.meta.url),()=>u(()=>import("../nodes/8.956a6de8.js"),["../nodes/8.956a6de8.js","../chunks/index.3158323b.js","../chunks/control.f5b05b5f.js","../chunks/settings-service.d5aa336c.js","../chunks/route-for-api.4c8e7aa5.js","../chunks/prod-browser.becde89a.js","../chunks/auth-user.6dc931ea.js","../chunks/index.0942deb7.js","../chunks/persist-store.3ea3c364.js","../chunks/singletons.d67f4e6b.js","../chunks/paths.742c8328.js","../chunks/parse-with-big-int.0036a80a.js","../chunks/toaster.cfecd6c1.js","../chunks/has.233e577a.js","../chunks/is-network-error.d988be19.js","../chunks/route-for.18f9590b.js","../chunks/encode-uri.dfce78e4.js","../chunks/stores.255470ec.js","../assets/app.6749d24f.css"],import.meta.url),()=>u(()=>import("../nodes/9.f04e4c83.js"),["../nodes/9.f04e4c83.js","../chunks/index.3158323b.js","../chunks/control.f5b05b5f.js","../chunks/route-for.18f9590b.js","../chunks/prod-browser.becde89a.js","../chunks/paths.742c8328.js","../chunks/encode-uri.dfce78e4.js","../chunks/index.0942deb7.js","../chunks/navigation.dde0d4fa.js","../chunks/singletons.d67f4e6b.js","../chunks/loading.e7565465.js","../chunks/translate.135d909a.js","../chunks/i18next.1cfb3cb9.js","../chunks/workflow-service.bd668cd0.js","../chunks/decode-payload.19da7edc.js","../chunks/stores.255470ec.js","../chunks/data-encoder-config.e34150f0.js","../chunks/persist-store.3ea3c364.js","../chunks/parse-with-big-int.0036a80a.js","../chunks/has.233e577a.js","../chunks/is-http.b24d498b.js","../chunks/auth-user.6dc931ea.js","../chunks/screaming-enums.7a4380bd.js","../chunks/write-actions-are-allowed.652105b1.js","../chunks/settings.23b6089e.js","../chunks/simplify-attributes.3c34b46b.js","../chunks/time-format.aa1f006c.js","../chunks/format-time.5082c525.js","../chunks/route-for-api.4c8e7aa5.js","../chunks/toaster.cfecd6c1.js","../chunks/is-network-error.d988be19.js","../chunks/version-check.d006b302.js","../chunks/versions.1002dc8d.js","../chunks/namespaces.68caf21c.js"],import.meta.url),()=>u(()=>import("../nodes/10.5b83395a.js"),["../nodes/10.5b83395a.js","../chunks/index.3158323b.js","../chunks/control.f5b05b5f.js","../chunks/route-for.18f9590b.js","../chunks/prod-browser.becde89a.js","../chunks/paths.742c8328.js","../chunks/encode-uri.dfce78e4.js"],import.meta.url),()=>u(()=>import("../nodes/11.a1f2dab7.js"),["../nodes/11.a1f2dab7.js","../chunks/index.0942deb7.js","../chunks/event-history-file-import.de8c0286.js","../chunks/navigation.dde0d4fa.js","../chunks/singletons.d67f4e6b.js","../chunks/paths.742c8328.js","../chunks/button.72eef818.js","../chunks/badge.5c29cec8.js","../assets/badge.bfa9122b.css","../chunks/icon.33308831.js","../chunks/link.faba7c50.js","../assets/link.336f9447.css","../chunks/translate.135d909a.js","../chunks/i18next.1cfb3cb9.js","../chunks/index.5fe2e895.js","../chunks/has.233e577a.js","../chunks/is-event-type.7aa6d0ba.js","../chunks/format-time.5082c525.js","../chunks/index.dca55ccc.js","../chunks/data-encoder-config.e34150f0.js","../chunks/persist-store.3ea3c364.js","../chunks/parse-with-big-int.0036a80a.js","../chunks/auth-user.6dc931ea.js","../chunks/time-format.aa1f006c.js","../chunks/screaming-enums.7a4380bd.js","../chunks/get-event-categorization.75c83097.js","../chunks/simplify-attributes.3c34b46b.js","../chunks/import-events.ad8d6143.js","../chunks/namespaces.68caf21c.js","../chunks/toaster.cfecd6c1.js","../chunks/route-for.18f9590b.js","../chunks/prod-browser.becde89a.js","../chunks/encode-uri.dfce78e4.js","../chunks/code-block.a5088abe.js","../chunks/button.d6281b70.js","../assets/button.8b8c0631.css","../chunks/copy-to-clipboard.24b8f9c0.js"],import.meta.url),()=>u(()=>import("../nodes/12.dcde8a64.js"),["../nodes/12.dcde8a64.js","../chunks/index.3158323b.js","../chunks/control.f5b05b5f.js","../chunks/route-for.18f9590b.js","../chunks/prod-browser.becde89a.js","../chunks/paths.742c8328.js","../chunks/encode-uri.dfce78e4.js"],import.meta.url),()=>u(()=>import("../nodes/13.69125e94.js"),["../nodes/13.69125e94.js","../chunks/index.0942deb7.js","../chunks/event-summary-table.e279c965.js","../chunks/empty-state.64fbab21.js","../chunks/icon.33308831.js","../chunks/loading.e7565465.js","../chunks/translate.135d909a.js","../chunks/i18next.1cfb3cb9.js","../chunks/index.2fa3ca4d.js","../chunks/stores.255470ec.js","../chunks/singletons.d67f4e6b.js","../chunks/paths.742c8328.js","../chunks/link.faba7c50.js","../chunks/navigation.dde0d4fa.js","../assets/link.336f9447.css","../chunks/index.5fe2e895.js","../chunks/has.233e577a.js","../chunks/is-event-type.7aa6d0ba.js","../chunks/format-time.5082c525.js","../chunks/event-view.f292d7b1.js","../chunks/persist-store.3ea3c364.js","../chunks/parse-with-big-int.0036a80a.js","../chunks/time-format.aa1f006c.js","../chunks/format-event-attributes.f47536f1.js","../chunks/format-camel-case.887ffc78.js","../chunks/decode-payload.19da7edc.js","../chunks/data-encoder-config.e34150f0.js","../chunks/is-http.b24d498b.js","../chunks/prod-browser.becde89a.js","../chunks/auth-user.6dc931ea.js","../chunks/route-for.18f9590b.js","../chunks/encode-uri.dfce78e4.js","../chunks/code-block.a5088abe.js","../chunks/button.d6281b70.js","../assets/button.8b8c0631.css","../chunks/copy-to-clipboard.24b8f9c0.js","../chunks/index.de7612af.js","../chunks/payload-decoder.ec62e968.js","../chunks/table-header-row.b9d52458.js","../chunks/progress-bar.91bfde03.js","../assets/progress-bar.b97d2e42.css","../assets/table-header-row.402c4f6e.css","../chunks/menu.1cf8fd74.js","../chunks/badge.5c29cec8.js","../assets/badge.bfa9122b.css","../assets/menu.15c6ebf1.css","../chunks/menu-divider.79623dfc.js","../chunks/update-query-parameters.5fc30b68.js","../chunks/button.72eef818.js","../chunks/checkbox.7cf45921.js","../assets/checkbox.4a8ab4a7.css","../chunks/get-event-categorization.75c83097.js","../chunks/filters.38f71e0d.js","../chunks/versions.1002dc8d.js","../chunks/settings.23b6089e.js","../chunks/version-check.d006b302.js","../assets/event-summary-table.c983745f.css","../chunks/pagination.057da68c.js","../chunks/pagination.c124cb03.js","../chunks/simple-select.4e19902f.js","../assets/simple-select.51b2afe1.css","../chunks/index.f0c1b3d6.js","../assets/index.a8fb96df.css","../assets/pagination.76f9c6f3.css","../chunks/import-events.ad8d6143.js"],import.meta.url),()=>u(()=>import("../nodes/14.acf76f23.js"),["../nodes/14.acf76f23.js","../chunks/index.0942deb7.js","../chunks/event-summary-table.e279c965.js","../chunks/empty-state.64fbab21.js","../chunks/icon.33308831.js","../chunks/loading.e7565465.js","../chunks/translate.135d909a.js","../chunks/i18next.1cfb3cb9.js","../chunks/index.2fa3ca4d.js","../chunks/stores.255470ec.js","../chunks/singletons.d67f4e6b.js","../chunks/paths.742c8328.js","../chunks/link.faba7c50.js","../chunks/navigation.dde0d4fa.js","../assets/link.336f9447.css","../chunks/index.5fe2e895.js","../chunks/has.233e577a.js","../chunks/is-event-type.7aa6d0ba.js","../chunks/format-time.5082c525.js","../chunks/event-view.f292d7b1.js","../chunks/persist-store.3ea3c364.js","../chunks/parse-with-big-int.0036a80a.js","../chunks/time-format.aa1f006c.js","../chunks/format-event-attributes.f47536f1.js","../chunks/format-camel-case.887ffc78.js","../chunks/decode-payload.19da7edc.js","../chunks/data-encoder-config.e34150f0.js","../chunks/is-http.b24d498b.js","../chunks/prod-browser.becde89a.js","../chunks/auth-user.6dc931ea.js","../chunks/route-for.18f9590b.js","../chunks/encode-uri.dfce78e4.js","../chunks/code-block.a5088abe.js","../chunks/button.d6281b70.js","../assets/button.8b8c0631.css","../chunks/copy-to-clipboard.24b8f9c0.js","../chunks/index.de7612af.js","../chunks/payload-decoder.ec62e968.js","../chunks/table-header-row.b9d52458.js","../chunks/progress-bar.91bfde03.js","../assets/progress-bar.b97d2e42.css","../assets/table-header-row.402c4f6e.css","../chunks/menu.1cf8fd74.js","../chunks/badge.5c29cec8.js","../assets/badge.bfa9122b.css","../assets/menu.15c6ebf1.css","../chunks/menu-divider.79623dfc.js","../chunks/update-query-parameters.5fc30b68.js","../chunks/button.72eef818.js","../chunks/checkbox.7cf45921.js","../assets/checkbox.4a8ab4a7.css","../chunks/get-event-categorization.75c83097.js","../chunks/filters.38f71e0d.js","../chunks/versions.1002dc8d.js","../chunks/settings.23b6089e.js","../chunks/version-check.d006b302.js","../assets/event-summary-table.c983745f.css","../chunks/pagination.057da68c.js","../chunks/pagination.c124cb03.js","../chunks/simple-select.4e19902f.js","../assets/simple-select.51b2afe1.css","../chunks/index.f0c1b3d6.js","../assets/index.a8fb96df.css","../assets/pagination.76f9c6f3.css","../chunks/import-events.ad8d6143.js"],import.meta.url),()=>u(()=>import("../nodes/15.76089fee.js"),["../nodes/15.76089fee.js","../chunks/index.0942deb7.js","../chunks/workflow-json-navigator.50ae8db9.js","../chunks/code-block.a5088abe.js","../chunks/button.d6281b70.js","../chunks/icon.33308831.js","../assets/button.8b8c0631.css","../chunks/copy-to-clipboard.24b8f9c0.js","../chunks/singletons.d67f4e6b.js","../chunks/paths.742c8328.js","../chunks/parse-with-big-int.0036a80a.js","../chunks/translate.135d909a.js","../chunks/i18next.1cfb3cb9.js","../chunks/loading.e7565465.js","../chunks/index.dca55ccc.js","../chunks/data-encoder-config.e34150f0.js","../chunks/persist-store.3ea3c364.js","../chunks/has.233e577a.js","../chunks/auth-user.6dc931ea.js","../chunks/time-format.aa1f006c.js","../chunks/format-time.5082c525.js","../chunks/is-event-type.7aa6d0ba.js","../chunks/screaming-enums.7a4380bd.js","../chunks/get-event-categorization.75c83097.js","../chunks/simplify-attributes.3c34b46b.js","../chunks/events.a3eb82f4.js","../chunks/stores.255470ec.js","../chunks/workflow-run.27281c78.js","../chunks/encode-uri.dfce78e4.js","../chunks/event-view.f292d7b1.js","../chunks/payload-decoder.ec62e968.js","../chunks/decode-payload.19da7edc.js","../chunks/is-http.b24d498b.js","../chunks/prod-browser.becde89a.js","../assets/workflow-json-navigator.a85b4b27.css","../chunks/import-events.ad8d6143.js"],import.meta.url),()=>u(()=>import("../nodes/16.b1f2181e.js"),["../nodes/16.b1f2181e.js","../chunks/index.0942deb7.js","../chunks/stores.255470ec.js","../chunks/singletons.d67f4e6b.js","../chunks/paths.742c8328.js","../chunks/page-title.433b384d.js","../chunks/empty-state.64fbab21.js","../chunks/icon.33308831.js","../chunks/link.faba7c50.js","../chunks/navigation.dde0d4fa.js","../assets/link.336f9447.css","../chunks/pagination.057da68c.js","../chunks/pagination.c124cb03.js","../chunks/update-query-parameters.5fc30b68.js","../chunks/simple-select.4e19902f.js","../assets/simple-select.51b2afe1.css","../chunks/index.f0c1b3d6.js","../assets/index.a8fb96df.css","../assets/pagination.76f9c6f3.css","../chunks/table-header-row.b9d52458.js","../chunks/progress-bar.91bfde03.js","../assets/progress-bar.b97d2e42.css","../assets/table-header-row.402c4f6e.css","../chunks/table-row.9c997398.js","../chunks/translate.135d909a.js","../chunks/i18next.1cfb3cb9.js","../chunks/namespaces.68caf21c.js","../chunks/persist-store.3ea3c364.js","../chunks/parse-with-big-int.0036a80a.js","../chunks/route-for.18f9590b.js","../chunks/prod-browser.becde89a.js","../chunks/encode-uri.dfce78e4.js"],import.meta.url),()=>u(()=>import("../nodes/17.7f794e61.js"),["../nodes/17.7f794e61.js","../chunks/namespaces-service.db387b71.js","../chunks/namespaces.68caf21c.js","../chunks/singletons.d67f4e6b.js","../chunks/index.0942deb7.js","../chunks/paths.742c8328.js","../chunks/persist-store.3ea3c364.js","../chunks/parse-with-big-int.0036a80a.js","../chunks/toaster.cfecd6c1.js","../chunks/paginated.b6fcdb03.js","../chunks/route-for-api.4c8e7aa5.js","../chunks/prod-browser.becde89a.js","../chunks/auth-user.6dc931ea.js","../chunks/has.233e577a.js","../chunks/is-network-error.d988be19.js","../chunks/route-for.18f9590b.js","../chunks/encode-uri.dfce78e4.js","../chunks/stores.255470ec.js","../chunks/screaming-enums.7a4380bd.js","../chunks/page-title.433b384d.js","../chunks/badge.5c29cec8.js","../assets/badge.bfa9122b.css","../chunks/card.eda89c85.js","../assets/card.c4e4432a.css","../chunks/table-header-row.b9d52458.js","../chunks/progress-bar.91bfde03.js","../assets/progress-bar.b97d2e42.css","../assets/table-header-row.402c4f6e.css","../chunks/table-row.9c997398.js","../chunks/translate.135d909a.js","../chunks/i18next.1cfb3cb9.js","../chunks/search-attributes.ed984efc.js","../chunks/settings.23b6089e.js","../chunks/versions.1002dc8d.js","../chunks/format-time.5082c525.js"],import.meta.url),()=>u(()=>import("../nodes/18.37a56ae6.js"),["../nodes/18.37a56ae6.js","../chunks/namespaces-service.db387b71.js","../chunks/namespaces.68caf21c.js","../chunks/singletons.d67f4e6b.js","../chunks/index.0942deb7.js","../chunks/paths.742c8328.js","../chunks/persist-store.3ea3c364.js","../chunks/parse-with-big-int.0036a80a.js","../chunks/toaster.cfecd6c1.js","../chunks/paginated.b6fcdb03.js","../chunks/route-for-api.4c8e7aa5.js","../chunks/prod-browser.becde89a.js","../chunks/auth-user.6dc931ea.js","../chunks/has.233e577a.js","../chunks/is-network-error.d988be19.js","../chunks/route-for.18f9590b.js","../chunks/encode-uri.dfce78e4.js","../chunks/stores.255470ec.js","../chunks/screaming-enums.7a4380bd.js","../chunks/workflow-service.bd668cd0.js","../chunks/translate.135d909a.js","../chunks/i18next.1cfb3cb9.js","../chunks/decode-payload.19da7edc.js","../chunks/data-encoder-config.e34150f0.js","../chunks/is-http.b24d498b.js","../chunks/write-actions-are-allowed.652105b1.js","../chunks/settings.23b6089e.js","../chunks/simplify-attributes.3c34b46b.js","../chunks/time-format.aa1f006c.js","../chunks/format-time.5082c525.js","../chunks/version-check.d006b302.js","../chunks/versions.1002dc8d.js","../chunks/page-title.433b384d.js","../chunks/workflow-status.391c4889.js","../chunks/index.2fa3ca4d.js","../chunks/button.72eef818.js","../chunks/badge.5c29cec8.js","../assets/badge.bfa9122b.css","../chunks/icon.33308831.js","../chunks/link.faba7c50.js","../chunks/navigation.dde0d4fa.js","../assets/link.336f9447.css","../chunks/heart-beat-indicator.df4ee8c0.js","../assets/heart-beat-indicator.80899fb7.css","../chunks/index.f08fc81f.js","../chunks/copy-to-clipboard.24b8f9c0.js","../assets/index.ad9f8937.css","../chunks/table-row.9c997398.js","../chunks/update-query-parameters.5fc30b68.js","../chunks/table-header-row.b9d52458.js","../chunks/progress-bar.91bfde03.js","../assets/progress-bar.b97d2e42.css","../assets/table-header-row.402c4f6e.css","../chunks/code-block.a5088abe.js","../chunks/button.d6281b70.js","../assets/button.8b8c0631.css","../chunks/empty-state.64fbab21.js","../chunks/pagination.057da68c.js","../chunks/pagination.c124cb03.js","../chunks/simple-select.4e19902f.js","../assets/simple-select.51b2afe1.css","../chunks/index.f0c1b3d6.js","../assets/index.a8fb96df.css","../assets/pagination.76f9c6f3.css","../chunks/input.1a8beba6.js","../chunks/icon-button.cdadbc6c.js","../assets/icon-button.c79bd23b.css","../assets/input.c1217c93.css","../assets/18.f47ef9ef.css"],import.meta.url),()=>u(()=>import("../nodes/19.b528c10f.js"),["../nodes/19.b528c10f.js","../chunks/index.0942deb7.js","../chunks/stores.255470ec.js","../chunks/singletons.d67f4e6b.js","../chunks/paths.742c8328.js","../chunks/page-title.433b384d.js","../chunks/translate.135d909a.js","../chunks/i18next.1cfb3cb9.js","../chunks/badge.5c29cec8.js","../assets/badge.bfa9122b.css","../chunks/empty-state.64fbab21.js","../chunks/icon.33308831.js","../chunks/link.faba7c50.js","../chunks/navigation.dde0d4fa.js","../assets/link.336f9447.css","../chunks/table-header-row.b9d52458.js","../chunks/progress-bar.91bfde03.js","../assets/progress-bar.b97d2e42.css","../assets/table-header-row.402c4f6e.css","../chunks/table-row.9c997398.js","../chunks/time-format.aa1f006c.js","../chunks/persist-store.3ea3c364.js","../chunks/parse-with-big-int.0036a80a.js","../chunks/format-time.5082c525.js","../chunks/has.233e577a.js","../chunks/route-for.18f9590b.js","../chunks/prod-browser.becde89a.js","../chunks/encode-uri.dfce78e4.js","../chunks/alert.c46cfdd9.js","../assets/alert.303275c8.css","../chunks/loading.e7565465.js","../chunks/batch-operations.b60f5f99.js","../chunks/workflow-actions.6f88149c.js","../chunks/auth-user.6dc931ea.js","../chunks/versions.1002dc8d.js","../chunks/settings.23b6089e.js","../chunks/route-for-api.4c8e7aa5.js","../chunks/toaster.cfecd6c1.js","../chunks/is-network-error.d988be19.js","../chunks/screaming-enums.7a4380bd.js","../chunks/version-check.d006b302.js"],import.meta.url),()=>u(()=>import("../nodes/20.1c60f6f9.js"),["../nodes/20.1c60f6f9.js","../chunks/index.0942deb7.js","../chunks/stores.255470ec.js","../chunks/singletons.d67f4e6b.js","../chunks/paths.742c8328.js","../chunks/page-title.433b384d.js","../chunks/translate.135d909a.js","../chunks/i18next.1cfb3cb9.js","../chunks/time-format.aa1f006c.js","../chunks/persist-store.3ea3c364.js","../chunks/parse-with-big-int.0036a80a.js","../chunks/format-time.5082c525.js","../chunks/has.233e577a.js","../chunks/badge.5c29cec8.js","../assets/badge.bfa9122b.css","../chunks/toggle-switch.cc141600.js","../assets/toggle-switch.ff91b31f.css","../chunks/tooltip.0f6d0305.js","../chunks/index.de7612af.js","../chunks/copy-to-clipboard.24b8f9c0.js","../chunks/button.d6281b70.js","../chunks/icon.33308831.js","../assets/button.8b8c0631.css","../assets/tooltip.78399487.css","../chunks/batch-operations.b60f5f99.js","../chunks/workflow-actions.6f88149c.js","../chunks/auth-user.6dc931ea.js","../chunks/versions.1002dc8d.js","../chunks/settings.23b6089e.js","../chunks/route-for-api.4c8e7aa5.js","../chunks/prod-browser.becde89a.js","../chunks/toaster.cfecd6c1.js","../chunks/is-network-error.d988be19.js","../chunks/route-for.18f9590b.js","../chunks/encode-uri.dfce78e4.js","../chunks/screaming-enums.7a4380bd.js","../chunks/version-check.d006b302.js","../chunks/card.eda89c85.js","../assets/card.c4e4432a.css","../chunks/link.faba7c50.js","../chunks/navigation.dde0d4fa.js","../assets/link.336f9447.css","../assets/20.32920668.css"],import.meta.url),()=>u(()=>import("../nodes/21.5b630146.js"),["../nodes/21.5b630146.js","../chunks/index.0942deb7.js","../chunks/stores.255470ec.js","../chunks/singletons.d67f4e6b.js","../chunks/paths.742c8328.js","../chunks/page-title.433b384d.js","../chunks/navigation.dde0d4fa.js","../chunks/workflow-status.391c4889.js","../chunks/index.2fa3ca4d.js","../chunks/button.72eef818.js","../chunks/badge.5c29cec8.js","../assets/badge.bfa9122b.css","../chunks/icon.33308831.js","../chunks/link.faba7c50.js","../assets/link.336f9447.css","../chunks/translate.135d909a.js","../chunks/i18next.1cfb3cb9.js","../chunks/heart-beat-indicator.df4ee8c0.js","../assets/heart-beat-indicator.80899fb7.css","../chunks/table-row.9c997398.js","../chunks/time-format.aa1f006c.js","../chunks/persist-store.3ea3c364.js","../chunks/parse-with-big-int.0036a80a.js","../chunks/format-time.5082c525.js","../chunks/has.233e577a.js","../chunks/route-for.18f9590b.js","../chunks/prod-browser.becde89a.js","../chunks/encode-uri.dfce78e4.js","../chunks/table-header-row.b9d52458.js","../chunks/progress-bar.91bfde03.js","../assets/progress-bar.b97d2e42.css","../assets/table-header-row.402c4f6e.css","../chunks/alert.c46cfdd9.js","../assets/alert.303275c8.css","../chunks/pagination.c124cb03.js","../chunks/update-query-parameters.5fc30b68.js","../chunks/simple-select.4e19902f.js","../assets/simple-select.51b2afe1.css","../chunks/index.f0c1b3d6.js","../assets/index.a8fb96df.css","../chunks/empty-state.64fbab21.js","../chunks/input.1a8beba6.js","../chunks/copy-to-clipboard.24b8f9c0.js","../chunks/icon-button.cdadbc6c.js","../assets/icon-button.c79bd23b.css","../assets/input.c1217c93.css","../chunks/schedule-service.f7ec754b.js","../chunks/route-for-api.4c8e7aa5.js","../chunks/auth-user.6dc931ea.js","../chunks/toaster.cfecd6c1.js","../chunks/is-network-error.d988be19.js","../chunks/core-user.1d8c4365.js","../chunks/write-actions-are-allowed.652105b1.js","../chunks/settings.23b6089e.js","../assets/21.f6d93894.css"],import.meta.url),()=>u(()=>import("../nodes/22.ab6406e9.js"),["../nodes/22.ab6406e9.js","../chunks/index.0942deb7.js","../chunks/stores.255470ec.js","../chunks/singletons.d67f4e6b.js","../chunks/paths.742c8328.js","../chunks/page-title.433b384d.js","../chunks/navigation.dde0d4fa.js","../chunks/accordion.6428cbfc.js","../chunks/badge.5c29cec8.js","../assets/badge.bfa9122b.css","../chunks/icon.33308831.js","../chunks/toaster.cfecd6c1.js","../chunks/translate.135d909a.js","../chunks/i18next.1cfb3cb9.js","../chunks/schedules.50ce05b5.js","../chunks/code-block.a5088abe.js","../chunks/button.d6281b70.js","../assets/button.8b8c0631.css","../chunks/copy-to-clipboard.24b8f9c0.js","../chunks/parse-with-big-int.0036a80a.js","../chunks/schedule-service.f7ec754b.js","../chunks/route-for-api.4c8e7aa5.js","../chunks/prod-browser.becde89a.js","../chunks/auth-user.6dc931ea.js","../chunks/persist-store.3ea3c364.js","../chunks/has.233e577a.js","../chunks/is-network-error.d988be19.js","../chunks/route-for.18f9590b.js","../chunks/encode-uri.dfce78e4.js","../chunks/empty-state.64fbab21.js","../chunks/link.faba7c50.js","../assets/link.336f9447.css","../chunks/workflow-service.bd668cd0.js","../chunks/decode-payload.19da7edc.js","../chunks/data-encoder-config.e34150f0.js","../chunks/is-http.b24d498b.js","../chunks/screaming-enums.7a4380bd.js","../chunks/write-actions-are-allowed.652105b1.js","../chunks/settings.23b6089e.js","../chunks/simplify-attributes.3c34b46b.js","../chunks/time-format.aa1f006c.js","../chunks/format-time.5082c525.js","../chunks/version-check.d006b302.js","../chunks/versions.1002dc8d.js","../chunks/workflow-status.391c4889.js","../chunks/index.2fa3ca4d.js","../chunks/button.72eef818.js","../chunks/heart-beat-indicator.df4ee8c0.js","../assets/heart-beat-indicator.80899fb7.css","../chunks/translate.d58b2c80.js","../chunks/index.f0c1b3d6.js","../assets/index.a8fb96df.css","../chunks/workflows.99ef2d92.js","../chunks/loading.e7565465.js","../chunks/menu.1cf8fd74.js","../assets/menu.15c6ebf1.css","../chunks/modal.2dc225aa.js","../chunks/icon-button.cdadbc6c.js","../assets/icon-button.c79bd23b.css","../assets/modal.a1162225.css","../chunks/radio-input.aefa279b.js","../assets/radio-input.01c3758f.css","../chunks/split-button.3aa0e7a5.js","../assets/split-button.8566e410.css","../chunks/core-user.1d8c4365.js","../assets/22.8e3b0af3.css"],import.meta.url),()=>u(()=>import("../nodes/23.b05e6ae3.js"),["../nodes/23.b05e6ae3.js","../chunks/index.0942deb7.js","../chunks/stores.255470ec.js","../chunks/singletons.d67f4e6b.js","../chunks/paths.742c8328.js","../chunks/page-title.433b384d.js","../chunks/schedule-form-view.bfaa408e.js","../chunks/input.1a8beba6.js","../chunks/icon.33308831.js","../chunks/copy-to-clipboard.24b8f9c0.js","../chunks/icon-button.cdadbc6c.js","../assets/icon-button.c79bd23b.css","../assets/input.c1217c93.css","../chunks/tab.f6368f6e.js","../chunks/has.233e577a.js","../assets/tab.8436f1bf.css","../chunks/translate.135d909a.js","../chunks/i18next.1cfb3cb9.js","../chunks/option.d4e4d556.js","../chunks/badge.5c29cec8.js","../assets/badge.bfa9122b.css","../chunks/menu.1cf8fd74.js","../chunks/index.2fa3ca4d.js","../assets/menu.15c6ebf1.css","../assets/option.20882847.css","../chunks/toggle-buttons.e3375436.js","../assets/toggle-buttons.1415ce75.css","../chunks/schedules.50ce05b5.js","../chunks/code-block.a5088abe.js","../chunks/button.d6281b70.js","../assets/button.8b8c0631.css","../chunks/parse-with-big-int.0036a80a.js","../chunks/navigation.dde0d4fa.js","../chunks/schedule-service.f7ec754b.js","../chunks/route-for-api.4c8e7aa5.js","../chunks/prod-browser.becde89a.js","../chunks/auth-user.6dc931ea.js","../chunks/persist-store.3ea3c364.js","../chunks/toaster.cfecd6c1.js","../chunks/is-network-error.d988be19.js","../chunks/route-for.18f9590b.js","../chunks/encode-uri.dfce78e4.js","../chunks/alert.c46cfdd9.js","../assets/alert.303275c8.css","../chunks/button.72eef818.js","../chunks/link.faba7c50.js","../assets/link.336f9447.css","../chunks/loading.e7565465.js","../chunks/write-actions-are-allowed.652105b1.js","../chunks/settings.23b6089e.js","../assets/schedule-form-view.6d80008f.css"],import.meta.url),()=>u(()=>import("../nodes/24.b4b27e0a.js"),["../nodes/24.b4b27e0a.js","../chunks/index.0942deb7.js","../chunks/stores.255470ec.js","../chunks/singletons.d67f4e6b.js","../chunks/paths.742c8328.js","../chunks/page-title.433b384d.js","../chunks/schedule-form-view.bfaa408e.js","../chunks/input.1a8beba6.js","../chunks/icon.33308831.js","../chunks/copy-to-clipboard.24b8f9c0.js","../chunks/icon-button.cdadbc6c.js","../assets/icon-button.c79bd23b.css","../assets/input.c1217c93.css","../chunks/tab.f6368f6e.js","../chunks/has.233e577a.js","../assets/tab.8436f1bf.css","../chunks/translate.135d909a.js","../chunks/i18next.1cfb3cb9.js","../chunks/option.d4e4d556.js","../chunks/badge.5c29cec8.js","../assets/badge.bfa9122b.css","../chunks/menu.1cf8fd74.js","../chunks/index.2fa3ca4d.js","../assets/menu.15c6ebf1.css","../assets/option.20882847.css","../chunks/toggle-buttons.e3375436.js","../assets/toggle-buttons.1415ce75.css","../chunks/schedules.50ce05b5.js","../chunks/code-block.a5088abe.js","../chunks/button.d6281b70.js","../assets/button.8b8c0631.css","../chunks/parse-with-big-int.0036a80a.js","../chunks/navigation.dde0d4fa.js","../chunks/schedule-service.f7ec754b.js","../chunks/route-for-api.4c8e7aa5.js","../chunks/prod-browser.becde89a.js","../chunks/auth-user.6dc931ea.js","../chunks/persist-store.3ea3c364.js","../chunks/toaster.cfecd6c1.js","../chunks/is-network-error.d988be19.js","../chunks/route-for.18f9590b.js","../chunks/encode-uri.dfce78e4.js","../chunks/alert.c46cfdd9.js","../assets/alert.303275c8.css","../chunks/button.72eef818.js","../chunks/link.faba7c50.js","../assets/link.336f9447.css","../chunks/loading.e7565465.js","../chunks/write-actions-are-allowed.652105b1.js","../chunks/settings.23b6089e.js","../assets/schedule-form-view.6d80008f.css"],import.meta.url),()=>u(()=>import("../nodes/25.08385fab.js"),["../nodes/25.08385fab.js","../chunks/index.0942deb7.js"],import.meta.url),()=>u(()=>import("../nodes/26.584593eb.js"),["../nodes/26.584593eb.js","../chunks/index.0942deb7.js","../chunks/stores.255470ec.js","../chunks/singletons.d67f4e6b.js","../chunks/paths.742c8328.js","../chunks/page-title.433b384d.js","../chunks/workers-list.3a8ea58e.js","../chunks/badge.5c29cec8.js","../assets/badge.bfa9122b.css","../chunks/pollers-service.351badff.js","../chunks/icon.33308831.js","../chunks/translate.135d909a.js","../chunks/i18next.1cfb3cb9.js","../chunks/route-for-api.4c8e7aa5.js","../chunks/prod-browser.becde89a.js","../chunks/auth-user.6dc931ea.js","../chunks/persist-store.3ea3c364.js","../chunks/parse-with-big-int.0036a80a.js","../chunks/toaster.cfecd6c1.js","../chunks/has.233e577a.js","../chunks/is-network-error.d988be19.js","../chunks/route-for.18f9590b.js","../chunks/encode-uri.dfce78e4.js","../assets/pollers-service.3f93e67d.css","../chunks/empty-state.64fbab21.js","../chunks/table-header-row.b9d52458.js","../chunks/progress-bar.91bfde03.js","../assets/progress-bar.b97d2e42.css","../assets/table-header-row.402c4f6e.css","../chunks/table-row.9c997398.js","../chunks/time-format.aa1f006c.js","../chunks/format-time.5082c525.js","../chunks/task-queue-compatibility.8d922da0.js","../assets/workers-list.7dbb8f48.css"],import.meta.url),()=>u(()=>import("../nodes/27.09bd7b79.js"),["../nodes/27.09bd7b79.js","../chunks/index.0942deb7.js","../chunks/stores.255470ec.js","../chunks/singletons.d67f4e6b.js","../chunks/paths.742c8328.js","../chunks/page-title.433b384d.js","../chunks/input.1a8beba6.js","../chunks/icon.33308831.js","../chunks/copy-to-clipboard.24b8f9c0.js","../chunks/icon-button.cdadbc6c.js","../assets/icon-button.c79bd23b.css","../assets/input.c1217c93.css","../chunks/modal.2dc225aa.js","../chunks/button.72eef818.js","../chunks/badge.5c29cec8.js","../assets/badge.bfa9122b.css","../chunks/link.faba7c50.js","../chunks/navigation.dde0d4fa.js","../assets/link.336f9447.css","../chunks/menu.1cf8fd74.js","../chunks/index.2fa3ca4d.js","../assets/menu.15c6ebf1.css","../assets/modal.a1162225.css","../chunks/translate.135d909a.js","../chunks/i18next.1cfb3cb9.js","../chunks/translate.d58b2c80.js","../chunks/index.f0c1b3d6.js","../assets/index.a8fb96df.css","../chunks/workflows.99ef2d92.js","../chunks/route-for-api.4c8e7aa5.js","../chunks/prod-browser.becde89a.js","../chunks/auth-user.6dc931ea.js","../chunks/persist-store.3ea3c364.js","../chunks/parse-with-big-int.0036a80a.js","../chunks/toaster.cfecd6c1.js","../chunks/has.233e577a.js","../chunks/is-network-error.d988be19.js","../chunks/route-for.18f9590b.js","../chunks/encode-uri.dfce78e4.js","../chunks/workflow-service.bd668cd0.js","../chunks/decode-payload.19da7edc.js","../chunks/data-encoder-config.e34150f0.js","../chunks/is-http.b24d498b.js","../chunks/screaming-enums.7a4380bd.js","../chunks/write-actions-are-allowed.652105b1.js","../chunks/settings.23b6089e.js","../chunks/simplify-attributes.3c34b46b.js","../chunks/time-format.aa1f006c.js","../chunks/format-time.5082c525.js","../chunks/version-check.d006b302.js","../chunks/versions.1002dc8d.js","../chunks/workflow-status.391c4889.js","../chunks/heart-beat-indicator.df4ee8c0.js","../assets/heart-beat-indicator.80899fb7.css","../chunks/workflow-actions.6f88149c.js","../chunks/workflow-terminate-enabled.abf4a597.js","../chunks/filters.38f71e0d.js","../chunks/index.f08fc81f.js","../assets/index.ad9f8937.css","../chunks/update-query-parameters.5fc30b68.js","../chunks/toggle-switch.cc141600.js","../assets/toggle-switch.ff91b31f.css","../chunks/search-attributes.ed984efc.js","../chunks/option.d4e4d556.js","../assets/option.20882847.css","../chunks/menu-divider.79623dfc.js","../chunks/radio-input.aefa279b.js","../assets/radio-input.01c3758f.css","../chunks/toggle-buttons.e3375436.js","../assets/toggle-buttons.1415ce75.css","../chunks/checkbox.7cf45921.js","../assets/checkbox.4a8ab4a7.css","../chunks/drawer.56956d31.js","../assets/drawer.96194c4d.css","../chunks/alert.c46cfdd9.js","../assets/alert.303275c8.css","../chunks/loading.e7565465.js","../chunks/progress-bar.91bfde03.js","../assets/progress-bar.b97d2e42.css","../chunks/pagination.c124cb03.js","../chunks/simple-select.4e19902f.js","../assets/simple-select.51b2afe1.css","../chunks/namespaces.68caf21c.js","../chunks/core-user.1d8c4365.js","../chunks/batch-operations.b60f5f99.js","../assets/27.bed845af.css"],import.meta.url),()=>u(()=>import("../nodes/28.0c119124.js"),["../nodes/28.0c119124.js","../chunks/index.3158323b.js","../chunks/control.f5b05b5f.js","../chunks/workflow-service.bd668cd0.js","../chunks/index.0942deb7.js","../chunks/translate.135d909a.js","../chunks/i18next.1cfb3cb9.js","../chunks/decode-payload.19da7edc.js","../chunks/stores.255470ec.js","../chunks/singletons.d67f4e6b.js","../chunks/paths.742c8328.js","../chunks/data-encoder-config.e34150f0.js","../chunks/persist-store.3ea3c364.js","../chunks/parse-with-big-int.0036a80a.js","../chunks/has.233e577a.js","../chunks/is-http.b24d498b.js","../chunks/prod-browser.becde89a.js","../chunks/auth-user.6dc931ea.js","../chunks/screaming-enums.7a4380bd.js","../chunks/write-actions-are-allowed.652105b1.js","../chunks/settings.23b6089e.js","../chunks/simplify-attributes.3c34b46b.js","../chunks/time-format.aa1f006c.js","../chunks/format-time.5082c525.js","../chunks/route-for-api.4c8e7aa5.js","../chunks/toaster.cfecd6c1.js","../chunks/is-network-error.d988be19.js","../chunks/route-for.18f9590b.js","../chunks/encode-uri.dfce78e4.js","../chunks/version-check.d006b302.js","../chunks/versions.1002dc8d.js"],import.meta.url),()=>u(()=>import("../nodes/29.60cfec00.js"),["../nodes/29.60cfec00.js","../chunks/index.3158323b.js","../chunks/control.f5b05b5f.js","../chunks/index.0942deb7.js"],import.meta.url),()=>u(()=>import("../nodes/30.038c359d.js"),["../nodes/30.038c359d.js","../chunks/index.0942deb7.js","../chunks/stores.255470ec.js","../chunks/singletons.d67f4e6b.js","../chunks/paths.742c8328.js","../chunks/page-title.433b384d.js","../chunks/translate.135d909a.js","../chunks/i18next.1cfb3cb9.js","../chunks/alert.c46cfdd9.js","../chunks/icon.33308831.js","../assets/alert.303275c8.css","../chunks/button.72eef818.js","../chunks/badge.5c29cec8.js","../assets/badge.bfa9122b.css","../chunks/link.faba7c50.js","../chunks/navigation.dde0d4fa.js","../assets/link.336f9447.css","../chunks/code-block.a5088abe.js","../chunks/button.d6281b70.js","../assets/button.8b8c0631.css","../chunks/copy-to-clipboard.24b8f9c0.js","../chunks/parse-with-big-int.0036a80a.js","../chunks/empty-state.64fbab21.js","../chunks/loading.e7565465.js","../chunks/query-service.7b844b9a.js","../chunks/decode-payload.19da7edc.js","../chunks/data-encoder-config.e34150f0.js","../chunks/persist-store.3ea3c364.js","../chunks/has.233e577a.js","../chunks/is-http.b24d498b.js","../chunks/prod-browser.becde89a.js","../chunks/auth-user.6dc931ea.js","../chunks/route-for-api.4c8e7aa5.js","../chunks/toaster.cfecd6c1.js","../chunks/is-network-error.d988be19.js","../chunks/route-for.18f9590b.js","../chunks/encode-uri.dfce78e4.js","../chunks/workflow-run.27281c78.js"],import.meta.url),()=>u(()=>import("../nodes/31.b559a3ca.js"),["../nodes/31.b559a3ca.js","../chunks/index.0942deb7.js","../chunks/stores.255470ec.js","../chunks/singletons.d67f4e6b.js","../chunks/paths.742c8328.js","../chunks/page-title.433b384d.js","../chunks/translate.135d909a.js","../chunks/i18next.1cfb3cb9.js","../chunks/get-workflow-relationships.fae6d6c6.js","../chunks/heart-beat-indicator.df4ee8c0.js","../assets/heart-beat-indicator.80899fb7.css","../chunks/icon.33308831.js","../chunks/link.faba7c50.js","../chunks/navigation.dde0d4fa.js","../assets/link.336f9447.css","../chunks/loading.e7565465.js","../chunks/toggle-buttons.e3375436.js","../assets/toggle-buttons.1415ce75.css","../chunks/index.5fe2e895.js","../chunks/has.233e577a.js","../chunks/is-event-type.7aa6d0ba.js","../chunks/format-time.5082c525.js","../chunks/get-event-categorization.75c83097.js","../chunks/event-view.f292d7b1.js","../chunks/persist-store.3ea3c364.js","../chunks/parse-with-big-int.0036a80a.js","../chunks/filters.38f71e0d.js","../chunks/workflow-run.27281c78.js","../chunks/format-camel-case.887ffc78.js","../chunks/format-event-attributes.f47536f1.js","../chunks/time-format.aa1f006c.js","../chunks/decode-payload.19da7edc.js","../chunks/data-encoder-config.e34150f0.js","../chunks/is-http.b24d498b.js","../chunks/prod-browser.becde89a.js","../chunks/auth-user.6dc931ea.js","../chunks/route-for.18f9590b.js","../chunks/encode-uri.dfce78e4.js","../assets/get-workflow-relationships.9cb1e30e.css","../chunks/button.72eef818.js","../chunks/badge.5c29cec8.js","../assets/badge.bfa9122b.css","../chunks/drawer.56956d31.js","../chunks/index.2fa3ca4d.js","../chunks/menu.1cf8fd74.js","../assets/menu.15c6ebf1.css","../chunks/icon-button.cdadbc6c.js","../assets/icon-button.c79bd23b.css","../assets/drawer.96194c4d.css","../chunks/tooltip.0f6d0305.js","../chunks/index.de7612af.js","../chunks/copy-to-clipboard.24b8f9c0.js","../chunks/button.d6281b70.js","../assets/button.8b8c0631.css","../assets/tooltip.78399487.css","../chunks/code-block.a5088abe.js","../chunks/payload-decoder.ec62e968.js","../chunks/accordion.6428cbfc.js","../chunks/toaster.cfecd6c1.js","../chunks/to-time-difference.be87d1bf.js","../chunks/alert.c46cfdd9.js","../assets/alert.303275c8.css","../chunks/task-queue-compatibility.8d922da0.js","../chunks/pagination.057da68c.js","../chunks/pagination.c124cb03.js","../chunks/update-query-parameters.5fc30b68.js","../chunks/simple-select.4e19902f.js","../assets/simple-select.51b2afe1.css","../chunks/index.f0c1b3d6.js","../assets/index.a8fb96df.css","../assets/pagination.76f9c6f3.css","../chunks/table-header-row.b9d52458.js","../chunks/progress-bar.91bfde03.js","../assets/progress-bar.b97d2e42.css","../assets/table-header-row.402c4f6e.css","../chunks/table-row.9c997398.js","../chunks/workflow-status.391c4889.js","../chunks/event-summary-table.e279c965.js","../chunks/empty-state.64fbab21.js","../chunks/menu-divider.79623dfc.js","../chunks/checkbox.7cf45921.js","../assets/checkbox.4a8ab4a7.css","../chunks/versions.1002dc8d.js","../chunks/settings.23b6089e.js","../chunks/version-check.d006b302.js","../assets/event-summary-table.c983745f.css","../chunks/screaming-enums.7a4380bd.js","../chunks/modal.2dc225aa.js","../assets/modal.a1162225.css","../chunks/toggle-switch.cc141600.js","../assets/toggle-switch.ff91b31f.css","../chunks/events-service.4b32e39d.js","../chunks/index.dca55ccc.js","../chunks/simplify-attributes.3c34b46b.js","../chunks/paginated.b6fcdb03.js","../chunks/route-for-api.4c8e7aa5.js","../chunks/is-network-error.d988be19.js","../chunks/events.a3eb82f4.js","../chunks/namespaces.68caf21c.js","../chunks/workflow-json-navigator.50ae8db9.js","../assets/workflow-json-navigator.a85b4b27.css","../assets/31.fac88ce7.css"],import.meta.url),()=>u(()=>import("../nodes/32.3576e451.js"),["../nodes/32.3576e451.js","../chunks/index.3158323b.js","../chunks/control.f5b05b5f.js","../chunks/route-for.18f9590b.js","../chunks/prod-browser.becde89a.js","../chunks/paths.742c8328.js","../chunks/encode-uri.dfce78e4.js"],import.meta.url),()=>u(()=>import("../nodes/33.53769e9f.js"),["../nodes/33.53769e9f.js","../chunks/index.0942deb7.js","../chunks/stores.255470ec.js","../chunks/singletons.d67f4e6b.js","../chunks/paths.742c8328.js","../chunks/event-summary-table.e279c965.js","../chunks/empty-state.64fbab21.js","../chunks/icon.33308831.js","../chunks/loading.e7565465.js","../chunks/translate.135d909a.js","../chunks/i18next.1cfb3cb9.js","../chunks/index.2fa3ca4d.js","../chunks/link.faba7c50.js","../chunks/navigation.dde0d4fa.js","../assets/link.336f9447.css","../chunks/index.5fe2e895.js","../chunks/has.233e577a.js","../chunks/is-event-type.7aa6d0ba.js","../chunks/format-time.5082c525.js","../chunks/event-view.f292d7b1.js","../chunks/persist-store.3ea3c364.js","../chunks/parse-with-big-int.0036a80a.js","../chunks/time-format.aa1f006c.js","../chunks/format-event-attributes.f47536f1.js","../chunks/format-camel-case.887ffc78.js","../chunks/decode-payload.19da7edc.js","../chunks/data-encoder-config.e34150f0.js","../chunks/is-http.b24d498b.js","../chunks/prod-browser.becde89a.js","../chunks/auth-user.6dc931ea.js","../chunks/route-for.18f9590b.js","../chunks/encode-uri.dfce78e4.js","../chunks/code-block.a5088abe.js","../chunks/button.d6281b70.js","../assets/button.8b8c0631.css","../chunks/copy-to-clipboard.24b8f9c0.js","../chunks/index.de7612af.js","../chunks/payload-decoder.ec62e968.js","../chunks/table-header-row.b9d52458.js","../chunks/progress-bar.91bfde03.js","../assets/progress-bar.b97d2e42.css","../assets/table-header-row.402c4f6e.css","../chunks/menu.1cf8fd74.js","../chunks/badge.5c29cec8.js","../assets/badge.bfa9122b.css","../assets/menu.15c6ebf1.css","../chunks/menu-divider.79623dfc.js","../chunks/update-query-parameters.5fc30b68.js","../chunks/button.72eef818.js","../chunks/checkbox.7cf45921.js","../assets/checkbox.4a8ab4a7.css","../chunks/get-event-categorization.75c83097.js","../chunks/filters.38f71e0d.js","../chunks/versions.1002dc8d.js","../chunks/settings.23b6089e.js","../chunks/version-check.d006b302.js","../assets/event-summary-table.c983745f.css","../chunks/get-workflow-relationships.fae6d6c6.js","../chunks/heart-beat-indicator.df4ee8c0.js","../assets/heart-beat-indicator.80899fb7.css","../chunks/toggle-buttons.e3375436.js","../assets/toggle-buttons.1415ce75.css","../chunks/workflow-run.27281c78.js","../assets/get-workflow-relationships.9cb1e30e.css","../chunks/events-service.4b32e39d.js","../chunks/index.dca55ccc.js","../chunks/screaming-enums.7a4380bd.js","../chunks/simplify-attributes.3c34b46b.js","../chunks/paginated.b6fcdb03.js","../chunks/route-for-api.4c8e7aa5.js","../chunks/toaster.cfecd6c1.js","../chunks/is-network-error.d988be19.js","../chunks/events.a3eb82f4.js"],import.meta.url),()=>u(()=>import("../nodes/34.f9137d14.js"),["../nodes/34.f9137d14.js","../chunks/index.0942deb7.js","../chunks/stores.255470ec.js","../chunks/singletons.d67f4e6b.js","../chunks/paths.742c8328.js","../chunks/event-summary-table.e279c965.js","../chunks/empty-state.64fbab21.js","../chunks/icon.33308831.js","../chunks/loading.e7565465.js","../chunks/translate.135d909a.js","../chunks/i18next.1cfb3cb9.js","../chunks/index.2fa3ca4d.js","../chunks/link.faba7c50.js","../chunks/navigation.dde0d4fa.js","../assets/link.336f9447.css","../chunks/index.5fe2e895.js","../chunks/has.233e577a.js","../chunks/is-event-type.7aa6d0ba.js","../chunks/format-time.5082c525.js","../chunks/event-view.f292d7b1.js","../chunks/persist-store.3ea3c364.js","../chunks/parse-with-big-int.0036a80a.js","../chunks/time-format.aa1f006c.js","../chunks/format-event-attributes.f47536f1.js","../chunks/format-camel-case.887ffc78.js","../chunks/decode-payload.19da7edc.js","../chunks/data-encoder-config.e34150f0.js","../chunks/is-http.b24d498b.js","../chunks/prod-browser.becde89a.js","../chunks/auth-user.6dc931ea.js","../chunks/route-for.18f9590b.js","../chunks/encode-uri.dfce78e4.js","../chunks/code-block.a5088abe.js","../chunks/button.d6281b70.js","../assets/button.8b8c0631.css","../chunks/copy-to-clipboard.24b8f9c0.js","../chunks/index.de7612af.js","../chunks/payload-decoder.ec62e968.js","../chunks/table-header-row.b9d52458.js","../chunks/progress-bar.91bfde03.js","../assets/progress-bar.b97d2e42.css","../assets/table-header-row.402c4f6e.css","../chunks/menu.1cf8fd74.js","../chunks/badge.5c29cec8.js","../assets/badge.bfa9122b.css","../assets/menu.15c6ebf1.css","../chunks/menu-divider.79623dfc.js","../chunks/update-query-parameters.5fc30b68.js","../chunks/button.72eef818.js","../chunks/checkbox.7cf45921.js","../assets/checkbox.4a8ab4a7.css","../chunks/get-event-categorization.75c83097.js","../chunks/filters.38f71e0d.js","../chunks/versions.1002dc8d.js","../chunks/settings.23b6089e.js","../chunks/version-check.d006b302.js","../assets/event-summary-table.c983745f.css","../chunks/events-service.4b32e39d.js","../chunks/index.dca55ccc.js","../chunks/screaming-enums.7a4380bd.js","../chunks/simplify-attributes.3c34b46b.js","../chunks/paginated.b6fcdb03.js","../chunks/route-for-api.4c8e7aa5.js","../chunks/toaster.cfecd6c1.js","../chunks/is-network-error.d988be19.js","../chunks/events.a3eb82f4.js","../chunks/workflow-run.27281c78.js"],import.meta.url),()=>u(()=>import("../nodes/35.3576e451.js"),["../nodes/35.3576e451.js","../chunks/index.3158323b.js","../chunks/control.f5b05b5f.js","../chunks/route-for.18f9590b.js","../chunks/prod-browser.becde89a.js","../chunks/paths.742c8328.js","../chunks/encode-uri.dfce78e4.js"],import.meta.url),()=>u(()=>import("../nodes/36.3576e451.js"),["../nodes/36.3576e451.js","../chunks/index.3158323b.js","../chunks/control.f5b05b5f.js","../chunks/route-for.18f9590b.js","../chunks/prod-browser.becde89a.js","../chunks/paths.742c8328.js","../chunks/encode-uri.dfce78e4.js"],import.meta.url),()=>u(()=>import("../nodes/37.02539a70.js"),["../nodes/37.02539a70.js","../chunks/index.0942deb7.js","../chunks/stores.255470ec.js","../chunks/singletons.d67f4e6b.js","../chunks/paths.742c8328.js","../chunks/page-title.433b384d.js","../chunks/translate.135d909a.js","../chunks/i18next.1cfb3cb9.js","../chunks/badge.5c29cec8.js","../assets/badge.bfa9122b.css","../chunks/code-block.a5088abe.js","../chunks/button.d6281b70.js","../chunks/icon.33308831.js","../assets/button.8b8c0631.css","../chunks/copy-to-clipboard.24b8f9c0.js","../chunks/parse-with-big-int.0036a80a.js","../chunks/empty-state.64fbab21.js","../chunks/link.faba7c50.js","../chunks/navigation.dde0d4fa.js","../assets/link.336f9447.css","../chunks/table-header-row.b9d52458.js","../chunks/progress-bar.91bfde03.js","../assets/progress-bar.b97d2e42.css","../assets/table-header-row.402c4f6e.css","../chunks/table-row.9c997398.js","../chunks/time-format.aa1f006c.js","../chunks/persist-store.3ea3c364.js","../chunks/format-time.5082c525.js","../chunks/has.233e577a.js","../chunks/workflow-run.27281c78.js","../chunks/format-event-attributes.f47536f1.js","../chunks/format-camel-case.887ffc78.js","../chunks/index.5fe2e895.js","../chunks/is-event-type.7aa6d0ba.js","../chunks/decode-payload.19da7edc.js","../chunks/data-encoder-config.e34150f0.js","../chunks/is-http.b24d498b.js","../chunks/prod-browser.becde89a.js","../chunks/auth-user.6dc931ea.js","../chunks/to-time-difference.be87d1bf.js","../assets/37.682a0c0d.css"],import.meta.url),()=>u(()=>import("../nodes/38.dbcb492a.js"),["../nodes/38.dbcb492a.js","../chunks/index.0942deb7.js","../chunks/stores.255470ec.js","../chunks/singletons.d67f4e6b.js","../chunks/paths.742c8328.js","../chunks/page-title.433b384d.js","../chunks/translate.135d909a.js","../chunks/i18next.1cfb3cb9.js","../chunks/button.72eef818.js","../chunks/badge.5c29cec8.js","../assets/badge.bfa9122b.css","../chunks/icon.33308831.js","../chunks/link.faba7c50.js","../chunks/navigation.dde0d4fa.js","../assets/link.336f9447.css","../chunks/code-block.a5088abe.js","../chunks/button.d6281b70.js","../assets/button.8b8c0631.css","../chunks/copy-to-clipboard.24b8f9c0.js","../chunks/parse-with-big-int.0036a80a.js","../chunks/empty-state.64fbab21.js","../chunks/loading.e7565465.js","../chunks/simple-select.4e19902f.js","../assets/simple-select.51b2afe1.css","../chunks/toggle-switch.cc141600.js","../assets/toggle-switch.ff91b31f.css","../chunks/query-service.7b844b9a.js","../chunks/decode-payload.19da7edc.js","../chunks/data-encoder-config.e34150f0.js","../chunks/persist-store.3ea3c364.js","../chunks/has.233e577a.js","../chunks/is-http.b24d498b.js","../chunks/prod-browser.becde89a.js","../chunks/auth-user.6dc931ea.js","../chunks/route-for-api.4c8e7aa5.js","../chunks/toaster.cfecd6c1.js","../chunks/is-network-error.d988be19.js","../chunks/route-for.18f9590b.js","../chunks/encode-uri.dfce78e4.js"],import.meta.url),()=>u(()=>import("../nodes/39.676da7f7.js"),["../nodes/39.676da7f7.js","../chunks/index.3158323b.js","../chunks/control.f5b05b5f.js","../chunks/route-for.18f9590b.js","../chunks/prod-browser.becde89a.js","../chunks/paths.742c8328.js","../chunks/encode-uri.dfce78e4.js"],import.meta.url),()=>u(()=>import("../nodes/40.56367dab.js"),["../nodes/40.56367dab.js","../chunks/index.0942deb7.js","../chunks/stores.255470ec.js","../chunks/singletons.d67f4e6b.js","../chunks/paths.742c8328.js","../chunks/page-title.433b384d.js","../chunks/translate.135d909a.js","../chunks/i18next.1cfb3cb9.js","../chunks/workers-list.3a8ea58e.js","../chunks/badge.5c29cec8.js","../assets/badge.bfa9122b.css","../chunks/pollers-service.351badff.js","../chunks/icon.33308831.js","../chunks/route-for-api.4c8e7aa5.js","../chunks/prod-browser.becde89a.js","../chunks/auth-user.6dc931ea.js","../chunks/persist-store.3ea3c364.js","../chunks/parse-with-big-int.0036a80a.js","../chunks/toaster.cfecd6c1.js","../chunks/has.233e577a.js","../chunks/is-network-error.d988be19.js","../chunks/route-for.18f9590b.js","../chunks/encode-uri.dfce78e4.js","../assets/pollers-service.3f93e67d.css","../chunks/empty-state.64fbab21.js","../chunks/table-header-row.b9d52458.js","../chunks/progress-bar.91bfde03.js","../assets/progress-bar.b97d2e42.css","../assets/table-header-row.402c4f6e.css","../chunks/table-row.9c997398.js","../chunks/time-format.aa1f006c.js","../chunks/format-time.5082c525.js","../chunks/task-queue-compatibility.8d922da0.js","../assets/workers-list.7dbb8f48.css","../chunks/workflow-run.27281c78.js"],import.meta.url),()=>u(()=>import("../nodes/41.5c0af3ef.js"),["../nodes/41.5c0af3ef.js","../chunks/index.0942deb7.js","../chunks/navigation.dde0d4fa.js","../chunks/singletons.d67f4e6b.js","../chunks/paths.742c8328.js","../chunks/stores.255470ec.js","../chunks/page-title.433b384d.js","../chunks/empty-state.64fbab21.js","../chunks/icon.33308831.js","../chunks/input.1a8beba6.js","../chunks/copy-to-clipboard.24b8f9c0.js","../chunks/icon-button.cdadbc6c.js","../assets/icon-button.c79bd23b.css","../assets/input.c1217c93.css","../chunks/translate.135d909a.js","../chunks/i18next.1cfb3cb9.js","../chunks/workflow-service.bd668cd0.js","../chunks/decode-payload.19da7edc.js","../chunks/data-encoder-config.e34150f0.js","../chunks/persist-store.3ea3c364.js","../chunks/parse-with-big-int.0036a80a.js","../chunks/has.233e577a.js","../chunks/is-http.b24d498b.js","../chunks/prod-browser.becde89a.js","../chunks/auth-user.6dc931ea.js","../chunks/screaming-enums.7a4380bd.js","../chunks/write-actions-are-allowed.652105b1.js","../chunks/settings.23b6089e.js","../chunks/simplify-attributes.3c34b46b.js","../chunks/time-format.aa1f006c.js","../chunks/format-time.5082c525.js","../chunks/route-for-api.4c8e7aa5.js","../chunks/toaster.cfecd6c1.js","../chunks/is-network-error.d988be19.js","../chunks/route-for.18f9590b.js","../chunks/encode-uri.dfce78e4.js","../chunks/version-check.d006b302.js","../chunks/versions.1002dc8d.js","../chunks/namespaces.68caf21c.js","../assets/41.8ed620ce.css"],import.meta.url),()=>u(()=>import("../nodes/42.9f0c68cf.js"),["../nodes/42.9f0c68cf.js","../chunks/index.0942deb7.js","../chunks/stores.255470ec.js","../chunks/singletons.d67f4e6b.js","../chunks/paths.742c8328.js","../chunks/logo.a9749c30.js","../chunks/icon.33308831.js","../assets/logo.4e0dbf07.css","../chunks/page-title.433b384d.js","../chunks/button.72eef818.js","../chunks/badge.5c29cec8.js","../assets/badge.bfa9122b.css","../chunks/link.faba7c50.js","../chunks/navigation.dde0d4fa.js","../assets/link.336f9447.css","../chunks/route-for.18f9590b.js","../chunks/prod-browser.becde89a.js","../chunks/encode-uri.dfce78e4.js"],import.meta.url),()=>u(()=>import("../nodes/43.9f0c68cf.js"),["../nodes/43.9f0c68cf.js","../chunks/index.0942deb7.js","../chunks/stores.255470ec.js","../chunks/singletons.d67f4e6b.js","../chunks/paths.742c8328.js","../chunks/logo.a9749c30.js","../chunks/icon.33308831.js","../assets/logo.4e0dbf07.css","../chunks/page-title.433b384d.js","../chunks/button.72eef818.js","../chunks/badge.5c29cec8.js","../assets/badge.bfa9122b.css","../chunks/link.faba7c50.js","../chunks/navigation.dde0d4fa.js","../assets/link.336f9447.css","../chunks/route-for.18f9590b.js","../chunks/prod-browser.becde89a.js","../chunks/encode-uri.dfce78e4.js"],import.meta.url)],$e=[],Pe={"/(app)":[9,[2]],"/(app)/import":[10,[2,3]],"/(app)/import/events":[11,[2,3]],"/(app)/import/events/[namespace]/[workflow]/[run]/history":[12,[2,3,4]],"/(app)/import/events/[namespace]/[workflow]/[run]/history/compact":[13,[2,3,4]],"/(app)/import/events/[namespace]/[workflow]/[run]/history/feed":[14,[2,3,4]],"/(app)/import/events/[namespace]/[workflow]/[run]/history/json":[15,[2,3,4]],"/(login)/login":[42,[8]],"/(app)/namespaces":[16,[2]],"/(app)/namespaces/[namespace]":[17,[2,5]],"/(app)/namespaces/[namespace]/archival":[18,[2,5]],"/(app)/namespaces/[namespace]/batch-operations":[19,[2,5]],"/(app)/namespaces/[namespace]/batch-operations/[jobId]":[20,[2,5]],"/(app)/namespaces/[namespace]/schedules":[21,[2,5]],"/(app)/namespaces/[namespace]/schedules/create":[24,[2,5]],"/(app)/namespaces/[namespace]/schedules/[schedule]":[22,[2,5]],"/(app)/namespaces/[namespace]/schedules/[schedule]/edit":[23,[2,5]],"/(app)/namespaces/[namespace]/task-queues":[25,[2,5,6]],"/(app)/namespaces/[namespace]/task-queues/[queue]":[26,[2,5,6]],"/(app)/namespaces/[namespace]/workflows":[27,[2,5]],"/(app)/namespaces/[namespace]/workflows/[workflow]":[28,[2,5]],"/(app)/namespaces/[namespace]/workflows/[workflow]/[run]":[29,[2,5,7]],"/(app)/namespaces/[namespace]/workflows/[workflow]/[run]/call-stack":[30,[2,5,7]],"/(app)/namespaces/[namespace]/workflows/[workflow]/[run]/history":[31,[2,5,7]],"/(app)/namespaces/[namespace]/workflows/[workflow]/[run]/history/compact":[32,[2,5,7]],"/(app)/namespaces/[namespace]/workflows/[workflow]/[run]/history/event-groups/[id]":[33,[2,5,7]],"/(app)/namespaces/[namespace]/workflows/[workflow]/[run]/history/events/[id]":[34,[2,5,7]],"/(app)/namespaces/[namespace]/workflows/[workflow]/[run]/history/feed":[35,[2,5,7]],"/(app)/namespaces/[namespace]/workflows/[workflow]/[run]/history/json":[36,[2,5,7]],"/(app)/namespaces/[namespace]/workflows/[workflow]/[run]/pending-activities":[37,[2,5,7]],"/(app)/namespaces/[namespace]/workflows/[workflow]/[run]/query":[38,[2,5,7]],"/(app)/namespaces/[namespace]/workflows/[workflow]/[run]/stack-trace":[39,[2,5,7]],"/(app)/namespaces/[namespace]/workflows/[workflow]/[run]/workers":[40,[2,5,7]],"/(app)/select-namespace":[41,[2]],"/(login)/signin":[43,[8]]},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.c4d6a2f6.js b/ui/assets/local/_app/immutable/entry/app.c4d6a2f6.js deleted file mode 100644 index 30785c775b..0000000000 --- a/ui/assets/local/_app/immutable/entry/app.c4d6a2f6.js +++ /dev/null @@ -1 +0,0 @@ -import{S as H,b as J,a as K,c as M,e as p,d as Q,f as b,g as m,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.0942deb7.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=p()},l(t){e&&D(e.$$.fragment,t),n=p()},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;m(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&&m(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=p()},l(t){e&&D(e.$$.fragment,t),n=p()},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;m(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&&m(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=p()},l(t){e&&D(e.$$.fragment,t),n=p()},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;m(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&&m(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=p()},l(t){e&&D(e.$$.fragment,t),n=p()},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;m(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&&m(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=p()},l(t){e&&D(e.$$.fragment,t),n=p()},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;m(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&&m(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=p()},l(t){e&&D(e.$$.fragment,t),n=p()},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;m(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&&m(e.$$.fragment,t),r=!1},d(t){_[16](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],form:t[2]}}}return i&&(e=w(i,l(_)),_[15](e)),{c(){e&&h(e.$$.fragment),n=p()},l(t){e&&D(e.$$.fragment,t),n=p()},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;m(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&&m(e.$$.fragment,t),r=!1},d(t){_[15](null),t&&v(n),e&&k(e,t)}}}function me(_){let e,n,r;var i=_[1][3];function l(t){return{props:{data:t[6],$$slots:{default:[de]},$$scope:{ctx:t}}}}return i&&(e=w(i,l(_)),_[14](e)),{c(){e&&h(e.$$.fragment),n=p()},l(t){e&&D(e.$$.fragment,t),n=p()},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;m(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&&m(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=p()},l(t){e&&D(e.$$.fragment,t),n=p()},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;m(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&&m(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=[me,pe],t=[];function o(s,a){return s[1][4]?0:1}return e=o(_),n=t[e]=l[e](_),{c(){n.c(),r=p()},l(s){n.l(s),r=p()},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(),m(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){m(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=p()},l(s){n.l(s),r=p()},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(),m(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){m(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=p()},l(s){n.l(s),r=p()},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(),m(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){m(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=p()},l(c){n.l(c),r=Q(c),a&&a.l(c),i=p()},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(),m(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){m(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.f82b1c0e.js"),["../nodes/0.f82b1c0e.js","../chunks/i18next.1cfb3cb9.js","../chunks/layout.00d22cc5.js","../chunks/index.0942deb7.js"],import.meta.url),()=>u(()=>import("../nodes/1.69447c3c.js"),["../nodes/1.69447c3c.js","../chunks/index.0942deb7.js","../chunks/stores.73c3690d.js","../chunks/singletons.0a6e865f.js","../chunks/paths.7de1f58b.js","../chunks/error.9ad9aabe.js","../chunks/navigation.83f47780.js","../chunks/link.f0cc0bf5.js","../chunks/icon.33308831.js","../assets/link.336f9447.css","../chunks/has.233e577a.js","../chunks/is-network-error.d988be19.js","../chunks/parse-with-big-int.0036a80a.js","../assets/app.6749d24f.css"],import.meta.url),()=>u(()=>import("../nodes/2.2610c332.js"),["../nodes/2.2610c332.js","../chunks/index.3158323b.js","../chunks/control.f5b05b5f.js","../chunks/route-for-api.f2500de4.js","../chunks/prod-browser.becde89a.js","../chunks/auth-user.a1d7e47f.js","../chunks/index.0942deb7.js","../chunks/persist-store.dd882958.js","../chunks/singletons.0a6e865f.js","../chunks/paths.7de1f58b.js","../chunks/parse-with-big-int.0036a80a.js","../chunks/toaster.60da8f1b.js","../chunks/has.233e577a.js","../chunks/is-network-error.d988be19.js","../chunks/route-for.ecd88549.js","../chunks/encode-uri.dfce78e4.js","../chunks/stores.73c3690d.js","../chunks/namespaces-service.7a177dbb.js","../chunks/namespaces.5c0c98b2.js","../chunks/paginated.2d0a4e32.js","../chunks/settings-service.7bd36f05.js","../chunks/is-http.b24d498b.js","../chunks/navigation.83f47780.js","../chunks/toggle-switch.cc141600.js","../assets/toggle-switch.ff91b31f.css","../chunks/translate.135d909a.js","../chunks/i18next.1cfb3cb9.js","../chunks/workflow-run.80b64688.js","../chunks/data-encoder-config.74f5c7e0.js","../chunks/menu.55d17299.js","../chunks/badge.5c29cec8.js","../assets/badge.bfa9122b.css","../chunks/icon.33308831.js","../chunks/index.2fa3ca4d.js","../assets/menu.15c6ebf1.css","../chunks/link.f0cc0bf5.js","../assets/link.336f9447.css","../chunks/button.c09134bf.js","../chunks/accordion.89b036f1.js","../chunks/radio-input.cbaf2baa.js","../assets/radio-input.01c3758f.css","../chunks/tooltip.ea285ef3.js","../chunks/index.ad79a693.js","../chunks/copy-to-clipboard.8b0ec1c6.js","../chunks/button.d6281b70.js","../assets/button.8b8c0631.css","../assets/tooltip.78399487.css","../chunks/batch-operations.ac8cf9e3.js","../chunks/workflow-actions.6f88149c.js","../chunks/versions.e238352a.js","../chunks/settings.424dea30.js","../chunks/version-check.d006b302.js","../chunks/icon-button.cdadbc6c.js","../assets/icon-button.c79bd23b.css","../chunks/input.828c22e1.js","../assets/input.c1217c93.css","../chunks/menu-divider.79623dfc.js","../chunks/time-format.7dc1f425.js","../chunks/format-time.5082c525.js","../chunks/format-camel-case.887ffc78.js","../chunks/error.9ad9aabe.js","../assets/2.2e6abd94.css","../assets/app.6749d24f.css"],import.meta.url),()=>u(()=>import("../nodes/3.5e898323.js"),["../nodes/3.5e898323.js","../chunks/index.0942deb7.js","../chunks/stores.73c3690d.js","../chunks/singletons.0a6e865f.js","../chunks/paths.7de1f58b.js","../chunks/page-title.433b384d.js"],import.meta.url),()=>u(()=>import("../nodes/4.b9252058.js"),["../nodes/4.b9252058.js","../chunks/index.0942deb7.js","../chunks/event-history-file-import.d2dbee6f.js","../chunks/navigation.83f47780.js","../chunks/singletons.0a6e865f.js","../chunks/paths.7de1f58b.js","../chunks/button.c09134bf.js","../chunks/badge.5c29cec8.js","../assets/badge.bfa9122b.css","../chunks/icon.33308831.js","../chunks/link.f0cc0bf5.js","../assets/link.336f9447.css","../chunks/translate.135d909a.js","../chunks/i18next.1cfb3cb9.js","../chunks/index.5fe2e895.js","../chunks/has.233e577a.js","../chunks/is-event-type.7aa6d0ba.js","../chunks/format-time.5082c525.js","../chunks/index.db10a648.js","../chunks/data-encoder-config.74f5c7e0.js","../chunks/persist-store.dd882958.js","../chunks/parse-with-big-int.0036a80a.js","../chunks/auth-user.a1d7e47f.js","../chunks/time-format.7dc1f425.js","../chunks/get-event-categorization.75c83097.js","../chunks/simplify-attributes.4e073f3b.js","../chunks/import-events.155db9b7.js","../chunks/namespaces.5c0c98b2.js","../chunks/toaster.60da8f1b.js","../chunks/route-for.ecd88549.js","../chunks/prod-browser.becde89a.js","../chunks/encode-uri.dfce78e4.js","../chunks/toggle-buttons.01bd60a8.js","../chunks/stores.73c3690d.js","../assets/toggle-buttons.1415ce75.css"],import.meta.url),()=>u(()=>import("../nodes/5.0e020872.js"),["../nodes/5.0e020872.js","../chunks/route-for-api.f2500de4.js","../chunks/prod-browser.becde89a.js","../chunks/auth-user.a1d7e47f.js","../chunks/index.0942deb7.js","../chunks/persist-store.dd882958.js","../chunks/singletons.0a6e865f.js","../chunks/paths.7de1f58b.js","../chunks/parse-with-big-int.0036a80a.js","../chunks/toaster.60da8f1b.js","../chunks/has.233e577a.js","../chunks/is-network-error.d988be19.js","../chunks/route-for.ecd88549.js","../chunks/encode-uri.dfce78e4.js","../chunks/stores.73c3690d.js","../chunks/search-attributes.06872bde.js","../chunks/layout.00d22cc5.js"],import.meta.url),()=>u(()=>import("../nodes/6.fff347b6.js"),["../nodes/6.fff347b6.js","../chunks/index.0942deb7.js"],import.meta.url),()=>u(()=>import("../nodes/7.a95b78e0.js"),["../nodes/7.a95b78e0.js","../chunks/index.0942deb7.js","../chunks/stores.73c3690d.js","../chunks/singletons.0a6e865f.js","../chunks/paths.7de1f58b.js","../chunks/link.f0cc0bf5.js","../chunks/navigation.83f47780.js","../chunks/icon.33308831.js","../assets/link.336f9447.css","../chunks/translate.135d909a.js","../chunks/i18next.1cfb3cb9.js","../chunks/workflows.13c60c9c.js","../chunks/route-for-api.f2500de4.js","../chunks/prod-browser.becde89a.js","../chunks/auth-user.a1d7e47f.js","../chunks/persist-store.dd882958.js","../chunks/parse-with-big-int.0036a80a.js","../chunks/toaster.60da8f1b.js","../chunks/has.233e577a.js","../chunks/is-network-error.d988be19.js","../chunks/route-for.ecd88549.js","../chunks/encode-uri.dfce78e4.js","../chunks/workflow-service.61e0ba9f.js","../chunks/decode-payload.3d6f13eb.js","../chunks/data-encoder-config.74f5c7e0.js","../chunks/is-http.b24d498b.js","../chunks/write-actions-are-allowed.7f76f8ee.js","../chunks/settings.424dea30.js","../chunks/simplify-attributes.4e073f3b.js","../chunks/time-format.7dc1f425.js","../chunks/format-time.5082c525.js","../chunks/version-check.d006b302.js","../chunks/versions.e238352a.js","../chunks/loading.e7565465.js","../chunks/index.2fa3ca4d.js","../chunks/toggle-switch.cc141600.js","../assets/toggle-switch.ff91b31f.css","../chunks/tooltip.ea285ef3.js","../chunks/index.ad79a693.js","../chunks/copy-to-clipboard.8b0ec1c6.js","../chunks/button.d6281b70.js","../assets/button.8b8c0631.css","../assets/tooltip.78399487.css","../chunks/event-view.33fc78e9.js","../chunks/checkbox.7cf45921.js","../assets/checkbox.4a8ab4a7.css","../chunks/input.828c22e1.js","../chunks/icon-button.cdadbc6c.js","../assets/icon-button.c79bd23b.css","../assets/input.c1217c93.css","../chunks/radio-input.cbaf2baa.js","../assets/radio-input.01c3758f.css","../chunks/workflow-actions.6f88149c.js","../chunks/events.edd90912.js","../chunks/workflow-run.80b64688.js","../chunks/is-event-type.7aa6d0ba.js","../chunks/button.c09134bf.js","../chunks/badge.5c29cec8.js","../assets/badge.bfa9122b.css","../chunks/code-block.c6eabdb8.js","../chunks/menu.55d17299.js","../assets/menu.15c6ebf1.css","../chunks/menu-divider.79623dfc.js","../chunks/modal.cb157ac8.js","../assets/modal.a1162225.css","../chunks/split-button.5ab393f2.js","../assets/split-button.8566e410.css","../chunks/core-user.20a8d8a5.js","../chunks/workflow-terminate-enabled.abf4a597.js","../chunks/workflow-status.833cfe09.js","../chunks/heart-beat-indicator.df4ee8c0.js","../assets/heart-beat-indicator.80899fb7.css","../chunks/alert.c46cfdd9.js","../assets/alert.303275c8.css","../chunks/pollers-service.b55a2a09.js","../assets/pollers-service.3f93e67d.css","../chunks/tab.88eb698c.js","../assets/tab.8436f1bf.css","../chunks/task-queue-compatibility.cf5696f8.js","../chunks/events-service.f9e1ef0b.js","../chunks/index.db10a648.js","../chunks/get-event-categorization.75c83097.js","../chunks/paginated.2d0a4e32.js"],import.meta.url),()=>u(()=>import("../nodes/8.2954be28.js"),["../nodes/8.2954be28.js","../chunks/index.3158323b.js","../chunks/control.f5b05b5f.js","../chunks/settings-service.7bd36f05.js","../chunks/route-for-api.f2500de4.js","../chunks/prod-browser.becde89a.js","../chunks/auth-user.a1d7e47f.js","../chunks/index.0942deb7.js","../chunks/persist-store.dd882958.js","../chunks/singletons.0a6e865f.js","../chunks/paths.7de1f58b.js","../chunks/parse-with-big-int.0036a80a.js","../chunks/toaster.60da8f1b.js","../chunks/has.233e577a.js","../chunks/is-network-error.d988be19.js","../chunks/route-for.ecd88549.js","../chunks/encode-uri.dfce78e4.js","../chunks/stores.73c3690d.js","../assets/app.6749d24f.css"],import.meta.url),()=>u(()=>import("../nodes/9.a414eb76.js"),["../nodes/9.a414eb76.js","../chunks/index.3158323b.js","../chunks/control.f5b05b5f.js","../chunks/route-for.ecd88549.js","../chunks/prod-browser.becde89a.js","../chunks/paths.7de1f58b.js","../chunks/encode-uri.dfce78e4.js","../chunks/index.0942deb7.js","../chunks/navigation.83f47780.js","../chunks/singletons.0a6e865f.js","../chunks/loading.e7565465.js","../chunks/translate.135d909a.js","../chunks/i18next.1cfb3cb9.js","../chunks/workflow-service.61e0ba9f.js","../chunks/decode-payload.3d6f13eb.js","../chunks/stores.73c3690d.js","../chunks/data-encoder-config.74f5c7e0.js","../chunks/persist-store.dd882958.js","../chunks/parse-with-big-int.0036a80a.js","../chunks/has.233e577a.js","../chunks/is-http.b24d498b.js","../chunks/auth-user.a1d7e47f.js","../chunks/write-actions-are-allowed.7f76f8ee.js","../chunks/settings.424dea30.js","../chunks/simplify-attributes.4e073f3b.js","../chunks/time-format.7dc1f425.js","../chunks/format-time.5082c525.js","../chunks/route-for-api.f2500de4.js","../chunks/toaster.60da8f1b.js","../chunks/is-network-error.d988be19.js","../chunks/version-check.d006b302.js","../chunks/versions.e238352a.js","../chunks/namespaces.5c0c98b2.js"],import.meta.url),()=>u(()=>import("../nodes/10.c7e19cea.js"),["../nodes/10.c7e19cea.js","../chunks/index.3158323b.js","../chunks/control.f5b05b5f.js","../chunks/route-for.ecd88549.js","../chunks/prod-browser.becde89a.js","../chunks/paths.7de1f58b.js","../chunks/encode-uri.dfce78e4.js"],import.meta.url),()=>u(()=>import("../nodes/11.a2f6467e.js"),["../nodes/11.a2f6467e.js","../chunks/index.0942deb7.js","../chunks/event-history-file-import.d2dbee6f.js","../chunks/navigation.83f47780.js","../chunks/singletons.0a6e865f.js","../chunks/paths.7de1f58b.js","../chunks/button.c09134bf.js","../chunks/badge.5c29cec8.js","../assets/badge.bfa9122b.css","../chunks/icon.33308831.js","../chunks/link.f0cc0bf5.js","../assets/link.336f9447.css","../chunks/translate.135d909a.js","../chunks/i18next.1cfb3cb9.js","../chunks/index.5fe2e895.js","../chunks/has.233e577a.js","../chunks/is-event-type.7aa6d0ba.js","../chunks/format-time.5082c525.js","../chunks/index.db10a648.js","../chunks/data-encoder-config.74f5c7e0.js","../chunks/persist-store.dd882958.js","../chunks/parse-with-big-int.0036a80a.js","../chunks/auth-user.a1d7e47f.js","../chunks/time-format.7dc1f425.js","../chunks/get-event-categorization.75c83097.js","../chunks/simplify-attributes.4e073f3b.js","../chunks/import-events.155db9b7.js","../chunks/namespaces.5c0c98b2.js","../chunks/toaster.60da8f1b.js","../chunks/route-for.ecd88549.js","../chunks/prod-browser.becde89a.js","../chunks/encode-uri.dfce78e4.js","../chunks/code-block.c6eabdb8.js","../chunks/button.d6281b70.js","../assets/button.8b8c0631.css","../chunks/copy-to-clipboard.8b0ec1c6.js"],import.meta.url),()=>u(()=>import("../nodes/12.79a3b4d9.js"),["../nodes/12.79a3b4d9.js","../chunks/index.3158323b.js","../chunks/control.f5b05b5f.js","../chunks/route-for.ecd88549.js","../chunks/prod-browser.becde89a.js","../chunks/paths.7de1f58b.js","../chunks/encode-uri.dfce78e4.js"],import.meta.url),()=>u(()=>import("../nodes/13.188f3272.js"),["../nodes/13.188f3272.js","../chunks/index.0942deb7.js","../chunks/event-summary-table.14d935eb.js","../chunks/empty-state.64fbab21.js","../chunks/icon.33308831.js","../chunks/loading.e7565465.js","../chunks/translate.135d909a.js","../chunks/i18next.1cfb3cb9.js","../chunks/index.2fa3ca4d.js","../chunks/stores.73c3690d.js","../chunks/singletons.0a6e865f.js","../chunks/paths.7de1f58b.js","../chunks/link.f0cc0bf5.js","../chunks/navigation.83f47780.js","../assets/link.336f9447.css","../chunks/index.5fe2e895.js","../chunks/has.233e577a.js","../chunks/is-event-type.7aa6d0ba.js","../chunks/format-time.5082c525.js","../chunks/event-view.33fc78e9.js","../chunks/persist-store.dd882958.js","../chunks/parse-with-big-int.0036a80a.js","../chunks/time-format.7dc1f425.js","../chunks/format-event-attributes.1749c5f9.js","../chunks/format-camel-case.887ffc78.js","../chunks/decode-payload.3d6f13eb.js","../chunks/data-encoder-config.74f5c7e0.js","../chunks/is-http.b24d498b.js","../chunks/prod-browser.becde89a.js","../chunks/auth-user.a1d7e47f.js","../chunks/route-for.ecd88549.js","../chunks/encode-uri.dfce78e4.js","../chunks/code-block.c6eabdb8.js","../chunks/button.d6281b70.js","../assets/button.8b8c0631.css","../chunks/copy-to-clipboard.8b0ec1c6.js","../chunks/index.ad79a693.js","../chunks/payload-decoder.31bd549e.js","../chunks/table-header-row.b9d52458.js","../chunks/progress-bar.91bfde03.js","../assets/progress-bar.b97d2e42.css","../assets/table-header-row.402c4f6e.css","../chunks/menu.55d17299.js","../chunks/badge.5c29cec8.js","../assets/badge.bfa9122b.css","../assets/menu.15c6ebf1.css","../chunks/menu-divider.79623dfc.js","../chunks/update-query-parameters.6de0b7d2.js","../chunks/button.c09134bf.js","../chunks/checkbox.7cf45921.js","../assets/checkbox.4a8ab4a7.css","../chunks/get-event-categorization.75c83097.js","../chunks/filters.6a09297f.js","../chunks/versions.e238352a.js","../chunks/settings.424dea30.js","../chunks/version-check.d006b302.js","../assets/event-summary-table.c983745f.css","../chunks/pagination.a81dd55b.js","../chunks/pagination.a85cd038.js","../chunks/simple-select.4e19902f.js","../assets/simple-select.51b2afe1.css","../chunks/index.f0c1b3d6.js","../assets/index.a8fb96df.css","../assets/pagination.76f9c6f3.css","../chunks/import-events.155db9b7.js"],import.meta.url),()=>u(()=>import("../nodes/14.dfd8ec96.js"),["../nodes/14.dfd8ec96.js","../chunks/index.0942deb7.js","../chunks/event-summary-table.14d935eb.js","../chunks/empty-state.64fbab21.js","../chunks/icon.33308831.js","../chunks/loading.e7565465.js","../chunks/translate.135d909a.js","../chunks/i18next.1cfb3cb9.js","../chunks/index.2fa3ca4d.js","../chunks/stores.73c3690d.js","../chunks/singletons.0a6e865f.js","../chunks/paths.7de1f58b.js","../chunks/link.f0cc0bf5.js","../chunks/navigation.83f47780.js","../assets/link.336f9447.css","../chunks/index.5fe2e895.js","../chunks/has.233e577a.js","../chunks/is-event-type.7aa6d0ba.js","../chunks/format-time.5082c525.js","../chunks/event-view.33fc78e9.js","../chunks/persist-store.dd882958.js","../chunks/parse-with-big-int.0036a80a.js","../chunks/time-format.7dc1f425.js","../chunks/format-event-attributes.1749c5f9.js","../chunks/format-camel-case.887ffc78.js","../chunks/decode-payload.3d6f13eb.js","../chunks/data-encoder-config.74f5c7e0.js","../chunks/is-http.b24d498b.js","../chunks/prod-browser.becde89a.js","../chunks/auth-user.a1d7e47f.js","../chunks/route-for.ecd88549.js","../chunks/encode-uri.dfce78e4.js","../chunks/code-block.c6eabdb8.js","../chunks/button.d6281b70.js","../assets/button.8b8c0631.css","../chunks/copy-to-clipboard.8b0ec1c6.js","../chunks/index.ad79a693.js","../chunks/payload-decoder.31bd549e.js","../chunks/table-header-row.b9d52458.js","../chunks/progress-bar.91bfde03.js","../assets/progress-bar.b97d2e42.css","../assets/table-header-row.402c4f6e.css","../chunks/menu.55d17299.js","../chunks/badge.5c29cec8.js","../assets/badge.bfa9122b.css","../assets/menu.15c6ebf1.css","../chunks/menu-divider.79623dfc.js","../chunks/update-query-parameters.6de0b7d2.js","../chunks/button.c09134bf.js","../chunks/checkbox.7cf45921.js","../assets/checkbox.4a8ab4a7.css","../chunks/get-event-categorization.75c83097.js","../chunks/filters.6a09297f.js","../chunks/versions.e238352a.js","../chunks/settings.424dea30.js","../chunks/version-check.d006b302.js","../assets/event-summary-table.c983745f.css","../chunks/pagination.a81dd55b.js","../chunks/pagination.a85cd038.js","../chunks/simple-select.4e19902f.js","../assets/simple-select.51b2afe1.css","../chunks/index.f0c1b3d6.js","../assets/index.a8fb96df.css","../assets/pagination.76f9c6f3.css","../chunks/import-events.155db9b7.js"],import.meta.url),()=>u(()=>import("../nodes/15.33238cf5.js"),["../nodes/15.33238cf5.js","../chunks/index.0942deb7.js","../chunks/workflow-json-navigator.85eda75f.js","../chunks/code-block.c6eabdb8.js","../chunks/button.d6281b70.js","../chunks/icon.33308831.js","../assets/button.8b8c0631.css","../chunks/copy-to-clipboard.8b0ec1c6.js","../chunks/singletons.0a6e865f.js","../chunks/paths.7de1f58b.js","../chunks/parse-with-big-int.0036a80a.js","../chunks/translate.135d909a.js","../chunks/i18next.1cfb3cb9.js","../chunks/loading.e7565465.js","../chunks/index.db10a648.js","../chunks/data-encoder-config.74f5c7e0.js","../chunks/persist-store.dd882958.js","../chunks/has.233e577a.js","../chunks/auth-user.a1d7e47f.js","../chunks/time-format.7dc1f425.js","../chunks/format-time.5082c525.js","../chunks/is-event-type.7aa6d0ba.js","../chunks/get-event-categorization.75c83097.js","../chunks/simplify-attributes.4e073f3b.js","../chunks/events.edd90912.js","../chunks/stores.73c3690d.js","../chunks/workflow-run.80b64688.js","../chunks/encode-uri.dfce78e4.js","../chunks/event-view.33fc78e9.js","../chunks/payload-decoder.31bd549e.js","../chunks/decode-payload.3d6f13eb.js","../chunks/is-http.b24d498b.js","../chunks/prod-browser.becde89a.js","../assets/workflow-json-navigator.a85b4b27.css","../chunks/import-events.155db9b7.js"],import.meta.url),()=>u(()=>import("../nodes/16.fe44d133.js"),["../nodes/16.fe44d133.js","../chunks/index.0942deb7.js","../chunks/stores.73c3690d.js","../chunks/singletons.0a6e865f.js","../chunks/paths.7de1f58b.js","../chunks/page-title.433b384d.js","../chunks/empty-state.64fbab21.js","../chunks/icon.33308831.js","../chunks/link.f0cc0bf5.js","../chunks/navigation.83f47780.js","../assets/link.336f9447.css","../chunks/pagination.a81dd55b.js","../chunks/pagination.a85cd038.js","../chunks/update-query-parameters.6de0b7d2.js","../chunks/simple-select.4e19902f.js","../assets/simple-select.51b2afe1.css","../chunks/index.f0c1b3d6.js","../assets/index.a8fb96df.css","../assets/pagination.76f9c6f3.css","../chunks/table-header-row.b9d52458.js","../chunks/progress-bar.91bfde03.js","../assets/progress-bar.b97d2e42.css","../assets/table-header-row.402c4f6e.css","../chunks/table-row.9c997398.js","../chunks/translate.135d909a.js","../chunks/i18next.1cfb3cb9.js","../chunks/namespaces.5c0c98b2.js","../chunks/persist-store.dd882958.js","../chunks/parse-with-big-int.0036a80a.js","../chunks/route-for.ecd88549.js","../chunks/prod-browser.becde89a.js","../chunks/encode-uri.dfce78e4.js"],import.meta.url),()=>u(()=>import("../nodes/17.9ef57917.js"),["../nodes/17.9ef57917.js","../chunks/namespaces-service.7a177dbb.js","../chunks/namespaces.5c0c98b2.js","../chunks/singletons.0a6e865f.js","../chunks/index.0942deb7.js","../chunks/paths.7de1f58b.js","../chunks/persist-store.dd882958.js","../chunks/parse-with-big-int.0036a80a.js","../chunks/toaster.60da8f1b.js","../chunks/paginated.2d0a4e32.js","../chunks/route-for-api.f2500de4.js","../chunks/prod-browser.becde89a.js","../chunks/auth-user.a1d7e47f.js","../chunks/has.233e577a.js","../chunks/is-network-error.d988be19.js","../chunks/route-for.ecd88549.js","../chunks/encode-uri.dfce78e4.js","../chunks/stores.73c3690d.js","../chunks/page-title.433b384d.js","../chunks/badge.5c29cec8.js","../assets/badge.bfa9122b.css","../chunks/card.eda89c85.js","../assets/card.c4e4432a.css","../chunks/table-header-row.b9d52458.js","../chunks/progress-bar.91bfde03.js","../assets/progress-bar.b97d2e42.css","../assets/table-header-row.402c4f6e.css","../chunks/table-row.9c997398.js","../chunks/translate.135d909a.js","../chunks/i18next.1cfb3cb9.js","../chunks/search-attributes.06872bde.js","../chunks/settings.424dea30.js","../chunks/versions.e238352a.js","../chunks/format-time.5082c525.js"],import.meta.url),()=>u(()=>import("../nodes/18.4699bcc9.js"),["../nodes/18.4699bcc9.js","../chunks/namespaces-service.7a177dbb.js","../chunks/namespaces.5c0c98b2.js","../chunks/singletons.0a6e865f.js","../chunks/index.0942deb7.js","../chunks/paths.7de1f58b.js","../chunks/persist-store.dd882958.js","../chunks/parse-with-big-int.0036a80a.js","../chunks/toaster.60da8f1b.js","../chunks/paginated.2d0a4e32.js","../chunks/route-for-api.f2500de4.js","../chunks/prod-browser.becde89a.js","../chunks/auth-user.a1d7e47f.js","../chunks/has.233e577a.js","../chunks/is-network-error.d988be19.js","../chunks/route-for.ecd88549.js","../chunks/encode-uri.dfce78e4.js","../chunks/stores.73c3690d.js","../chunks/workflow-service.61e0ba9f.js","../chunks/translate.135d909a.js","../chunks/i18next.1cfb3cb9.js","../chunks/decode-payload.3d6f13eb.js","../chunks/data-encoder-config.74f5c7e0.js","../chunks/is-http.b24d498b.js","../chunks/write-actions-are-allowed.7f76f8ee.js","../chunks/settings.424dea30.js","../chunks/simplify-attributes.4e073f3b.js","../chunks/time-format.7dc1f425.js","../chunks/format-time.5082c525.js","../chunks/version-check.d006b302.js","../chunks/versions.e238352a.js","../chunks/page-title.433b384d.js","../chunks/workflow-status.833cfe09.js","../chunks/index.2fa3ca4d.js","../chunks/button.c09134bf.js","../chunks/badge.5c29cec8.js","../assets/badge.bfa9122b.css","../chunks/icon.33308831.js","../chunks/link.f0cc0bf5.js","../chunks/navigation.83f47780.js","../assets/link.336f9447.css","../chunks/heart-beat-indicator.df4ee8c0.js","../assets/heart-beat-indicator.80899fb7.css","../chunks/index.fdd410d4.js","../chunks/copy-to-clipboard.8b0ec1c6.js","../assets/index.ad9f8937.css","../chunks/table-row.9c997398.js","../chunks/update-query-parameters.6de0b7d2.js","../chunks/table-header-row.b9d52458.js","../chunks/progress-bar.91bfde03.js","../assets/progress-bar.b97d2e42.css","../assets/table-header-row.402c4f6e.css","../chunks/code-block.c6eabdb8.js","../chunks/button.d6281b70.js","../assets/button.8b8c0631.css","../chunks/empty-state.64fbab21.js","../chunks/pagination.a81dd55b.js","../chunks/pagination.a85cd038.js","../chunks/simple-select.4e19902f.js","../assets/simple-select.51b2afe1.css","../chunks/index.f0c1b3d6.js","../assets/index.a8fb96df.css","../assets/pagination.76f9c6f3.css","../chunks/input.828c22e1.js","../chunks/icon-button.cdadbc6c.js","../assets/icon-button.c79bd23b.css","../assets/input.c1217c93.css","../assets/18.f47ef9ef.css"],import.meta.url),()=>u(()=>import("../nodes/19.2167743a.js"),["../nodes/19.2167743a.js","../chunks/index.0942deb7.js","../chunks/stores.73c3690d.js","../chunks/singletons.0a6e865f.js","../chunks/paths.7de1f58b.js","../chunks/page-title.433b384d.js","../chunks/translate.135d909a.js","../chunks/i18next.1cfb3cb9.js","../chunks/badge.5c29cec8.js","../assets/badge.bfa9122b.css","../chunks/empty-state.64fbab21.js","../chunks/icon.33308831.js","../chunks/link.f0cc0bf5.js","../chunks/navigation.83f47780.js","../assets/link.336f9447.css","../chunks/table-header-row.b9d52458.js","../chunks/progress-bar.91bfde03.js","../assets/progress-bar.b97d2e42.css","../assets/table-header-row.402c4f6e.css","../chunks/table-row.9c997398.js","../chunks/time-format.7dc1f425.js","../chunks/persist-store.dd882958.js","../chunks/parse-with-big-int.0036a80a.js","../chunks/format-time.5082c525.js","../chunks/has.233e577a.js","../chunks/route-for.ecd88549.js","../chunks/prod-browser.becde89a.js","../chunks/encode-uri.dfce78e4.js","../chunks/alert.c46cfdd9.js","../assets/alert.303275c8.css","../chunks/loading.e7565465.js","../chunks/batch-operations.ac8cf9e3.js","../chunks/workflow-actions.6f88149c.js","../chunks/auth-user.a1d7e47f.js","../chunks/versions.e238352a.js","../chunks/settings.424dea30.js","../chunks/route-for-api.f2500de4.js","../chunks/toaster.60da8f1b.js","../chunks/is-network-error.d988be19.js","../chunks/version-check.d006b302.js"],import.meta.url),()=>u(()=>import("../nodes/20.f79398a5.js"),["../nodes/20.f79398a5.js","../chunks/index.0942deb7.js","../chunks/stores.73c3690d.js","../chunks/singletons.0a6e865f.js","../chunks/paths.7de1f58b.js","../chunks/page-title.433b384d.js","../chunks/translate.135d909a.js","../chunks/i18next.1cfb3cb9.js","../chunks/time-format.7dc1f425.js","../chunks/persist-store.dd882958.js","../chunks/parse-with-big-int.0036a80a.js","../chunks/format-time.5082c525.js","../chunks/has.233e577a.js","../chunks/badge.5c29cec8.js","../assets/badge.bfa9122b.css","../chunks/toggle-switch.cc141600.js","../assets/toggle-switch.ff91b31f.css","../chunks/tooltip.ea285ef3.js","../chunks/index.ad79a693.js","../chunks/copy-to-clipboard.8b0ec1c6.js","../chunks/button.d6281b70.js","../chunks/icon.33308831.js","../assets/button.8b8c0631.css","../assets/tooltip.78399487.css","../chunks/batch-operations.ac8cf9e3.js","../chunks/workflow-actions.6f88149c.js","../chunks/auth-user.a1d7e47f.js","../chunks/versions.e238352a.js","../chunks/settings.424dea30.js","../chunks/route-for-api.f2500de4.js","../chunks/prod-browser.becde89a.js","../chunks/toaster.60da8f1b.js","../chunks/is-network-error.d988be19.js","../chunks/route-for.ecd88549.js","../chunks/encode-uri.dfce78e4.js","../chunks/version-check.d006b302.js","../chunks/card.eda89c85.js","../assets/card.c4e4432a.css","../chunks/link.f0cc0bf5.js","../chunks/navigation.83f47780.js","../assets/link.336f9447.css","../assets/20.32920668.css"],import.meta.url),()=>u(()=>import("../nodes/21.ebf7277c.js"),["../nodes/21.ebf7277c.js","../chunks/index.0942deb7.js","../chunks/stores.73c3690d.js","../chunks/singletons.0a6e865f.js","../chunks/paths.7de1f58b.js","../chunks/page-title.433b384d.js","../chunks/navigation.83f47780.js","../chunks/workflow-status.833cfe09.js","../chunks/index.2fa3ca4d.js","../chunks/button.c09134bf.js","../chunks/badge.5c29cec8.js","../assets/badge.bfa9122b.css","../chunks/icon.33308831.js","../chunks/link.f0cc0bf5.js","../assets/link.336f9447.css","../chunks/translate.135d909a.js","../chunks/i18next.1cfb3cb9.js","../chunks/heart-beat-indicator.df4ee8c0.js","../assets/heart-beat-indicator.80899fb7.css","../chunks/table-row.9c997398.js","../chunks/time-format.7dc1f425.js","../chunks/persist-store.dd882958.js","../chunks/parse-with-big-int.0036a80a.js","../chunks/format-time.5082c525.js","../chunks/has.233e577a.js","../chunks/route-for.ecd88549.js","../chunks/prod-browser.becde89a.js","../chunks/encode-uri.dfce78e4.js","../chunks/table-header-row.b9d52458.js","../chunks/progress-bar.91bfde03.js","../assets/progress-bar.b97d2e42.css","../assets/table-header-row.402c4f6e.css","../chunks/alert.c46cfdd9.js","../assets/alert.303275c8.css","../chunks/pagination.a85cd038.js","../chunks/update-query-parameters.6de0b7d2.js","../chunks/simple-select.4e19902f.js","../assets/simple-select.51b2afe1.css","../chunks/index.f0c1b3d6.js","../assets/index.a8fb96df.css","../chunks/empty-state.64fbab21.js","../chunks/input.828c22e1.js","../chunks/copy-to-clipboard.8b0ec1c6.js","../chunks/icon-button.cdadbc6c.js","../assets/icon-button.c79bd23b.css","../assets/input.c1217c93.css","../chunks/schedule-service.19174d51.js","../chunks/route-for-api.f2500de4.js","../chunks/auth-user.a1d7e47f.js","../chunks/toaster.60da8f1b.js","../chunks/is-network-error.d988be19.js","../chunks/core-user.20a8d8a5.js","../chunks/write-actions-are-allowed.7f76f8ee.js","../chunks/settings.424dea30.js","../assets/21.f6d93894.css"],import.meta.url),()=>u(()=>import("../nodes/22.e33258a1.js"),["../nodes/22.e33258a1.js","../chunks/index.0942deb7.js","../chunks/stores.73c3690d.js","../chunks/singletons.0a6e865f.js","../chunks/paths.7de1f58b.js","../chunks/page-title.433b384d.js","../chunks/navigation.83f47780.js","../chunks/accordion.89b036f1.js","../chunks/badge.5c29cec8.js","../assets/badge.bfa9122b.css","../chunks/icon.33308831.js","../chunks/toaster.60da8f1b.js","../chunks/translate.135d909a.js","../chunks/i18next.1cfb3cb9.js","../chunks/schedules.17e8498c.js","../chunks/code-block.c6eabdb8.js","../chunks/button.d6281b70.js","../assets/button.8b8c0631.css","../chunks/copy-to-clipboard.8b0ec1c6.js","../chunks/parse-with-big-int.0036a80a.js","../chunks/schedule-service.19174d51.js","../chunks/route-for-api.f2500de4.js","../chunks/prod-browser.becde89a.js","../chunks/auth-user.a1d7e47f.js","../chunks/persist-store.dd882958.js","../chunks/has.233e577a.js","../chunks/is-network-error.d988be19.js","../chunks/route-for.ecd88549.js","../chunks/encode-uri.dfce78e4.js","../chunks/empty-state.64fbab21.js","../chunks/link.f0cc0bf5.js","../assets/link.336f9447.css","../chunks/workflow-service.61e0ba9f.js","../chunks/decode-payload.3d6f13eb.js","../chunks/data-encoder-config.74f5c7e0.js","../chunks/is-http.b24d498b.js","../chunks/write-actions-are-allowed.7f76f8ee.js","../chunks/settings.424dea30.js","../chunks/simplify-attributes.4e073f3b.js","../chunks/time-format.7dc1f425.js","../chunks/format-time.5082c525.js","../chunks/version-check.d006b302.js","../chunks/versions.e238352a.js","../chunks/workflow-status.833cfe09.js","../chunks/index.2fa3ca4d.js","../chunks/button.c09134bf.js","../chunks/heart-beat-indicator.df4ee8c0.js","../assets/heart-beat-indicator.80899fb7.css","../chunks/translate.f1dc53e5.js","../chunks/index.f0c1b3d6.js","../assets/index.a8fb96df.css","../chunks/workflows.13c60c9c.js","../chunks/loading.e7565465.js","../chunks/menu.55d17299.js","../assets/menu.15c6ebf1.css","../chunks/modal.cb157ac8.js","../chunks/icon-button.cdadbc6c.js","../assets/icon-button.c79bd23b.css","../assets/modal.a1162225.css","../chunks/radio-input.cbaf2baa.js","../assets/radio-input.01c3758f.css","../chunks/split-button.5ab393f2.js","../assets/split-button.8566e410.css","../chunks/core-user.20a8d8a5.js","../assets/22.8e3b0af3.css"],import.meta.url),()=>u(()=>import("../nodes/23.8ac69c9e.js"),["../nodes/23.8ac69c9e.js","../chunks/index.0942deb7.js","../chunks/stores.73c3690d.js","../chunks/singletons.0a6e865f.js","../chunks/paths.7de1f58b.js","../chunks/page-title.433b384d.js","../chunks/schedule-form-view.4e0824ec.js","../chunks/input.828c22e1.js","../chunks/icon.33308831.js","../chunks/copy-to-clipboard.8b0ec1c6.js","../chunks/icon-button.cdadbc6c.js","../assets/icon-button.c79bd23b.css","../assets/input.c1217c93.css","../chunks/tab.88eb698c.js","../chunks/has.233e577a.js","../assets/tab.8436f1bf.css","../chunks/translate.135d909a.js","../chunks/i18next.1cfb3cb9.js","../chunks/option.915b4554.js","../chunks/badge.5c29cec8.js","../assets/badge.bfa9122b.css","../chunks/menu.55d17299.js","../chunks/index.2fa3ca4d.js","../assets/menu.15c6ebf1.css","../assets/option.20882847.css","../chunks/toggle-buttons.01bd60a8.js","../assets/toggle-buttons.1415ce75.css","../chunks/schedules.17e8498c.js","../chunks/code-block.c6eabdb8.js","../chunks/button.d6281b70.js","../assets/button.8b8c0631.css","../chunks/parse-with-big-int.0036a80a.js","../chunks/navigation.83f47780.js","../chunks/schedule-service.19174d51.js","../chunks/route-for-api.f2500de4.js","../chunks/prod-browser.becde89a.js","../chunks/auth-user.a1d7e47f.js","../chunks/persist-store.dd882958.js","../chunks/toaster.60da8f1b.js","../chunks/is-network-error.d988be19.js","../chunks/route-for.ecd88549.js","../chunks/encode-uri.dfce78e4.js","../chunks/alert.c46cfdd9.js","../assets/alert.303275c8.css","../chunks/button.c09134bf.js","../chunks/link.f0cc0bf5.js","../assets/link.336f9447.css","../chunks/loading.e7565465.js","../chunks/write-actions-are-allowed.7f76f8ee.js","../chunks/settings.424dea30.js","../assets/schedule-form-view.6d80008f.css"],import.meta.url),()=>u(()=>import("../nodes/24.9667780f.js"),["../nodes/24.9667780f.js","../chunks/index.0942deb7.js","../chunks/stores.73c3690d.js","../chunks/singletons.0a6e865f.js","../chunks/paths.7de1f58b.js","../chunks/page-title.433b384d.js","../chunks/schedule-form-view.4e0824ec.js","../chunks/input.828c22e1.js","../chunks/icon.33308831.js","../chunks/copy-to-clipboard.8b0ec1c6.js","../chunks/icon-button.cdadbc6c.js","../assets/icon-button.c79bd23b.css","../assets/input.c1217c93.css","../chunks/tab.88eb698c.js","../chunks/has.233e577a.js","../assets/tab.8436f1bf.css","../chunks/translate.135d909a.js","../chunks/i18next.1cfb3cb9.js","../chunks/option.915b4554.js","../chunks/badge.5c29cec8.js","../assets/badge.bfa9122b.css","../chunks/menu.55d17299.js","../chunks/index.2fa3ca4d.js","../assets/menu.15c6ebf1.css","../assets/option.20882847.css","../chunks/toggle-buttons.01bd60a8.js","../assets/toggle-buttons.1415ce75.css","../chunks/schedules.17e8498c.js","../chunks/code-block.c6eabdb8.js","../chunks/button.d6281b70.js","../assets/button.8b8c0631.css","../chunks/parse-with-big-int.0036a80a.js","../chunks/navigation.83f47780.js","../chunks/schedule-service.19174d51.js","../chunks/route-for-api.f2500de4.js","../chunks/prod-browser.becde89a.js","../chunks/auth-user.a1d7e47f.js","../chunks/persist-store.dd882958.js","../chunks/toaster.60da8f1b.js","../chunks/is-network-error.d988be19.js","../chunks/route-for.ecd88549.js","../chunks/encode-uri.dfce78e4.js","../chunks/alert.c46cfdd9.js","../assets/alert.303275c8.css","../chunks/button.c09134bf.js","../chunks/link.f0cc0bf5.js","../assets/link.336f9447.css","../chunks/loading.e7565465.js","../chunks/write-actions-are-allowed.7f76f8ee.js","../chunks/settings.424dea30.js","../assets/schedule-form-view.6d80008f.css"],import.meta.url),()=>u(()=>import("../nodes/25.08385fab.js"),["../nodes/25.08385fab.js","../chunks/index.0942deb7.js"],import.meta.url),()=>u(()=>import("../nodes/26.40584af9.js"),["../nodes/26.40584af9.js","../chunks/index.0942deb7.js","../chunks/stores.73c3690d.js","../chunks/singletons.0a6e865f.js","../chunks/paths.7de1f58b.js","../chunks/page-title.433b384d.js","../chunks/workers-list.501e9be3.js","../chunks/badge.5c29cec8.js","../assets/badge.bfa9122b.css","../chunks/pollers-service.b55a2a09.js","../chunks/icon.33308831.js","../chunks/translate.135d909a.js","../chunks/i18next.1cfb3cb9.js","../chunks/route-for-api.f2500de4.js","../chunks/prod-browser.becde89a.js","../chunks/auth-user.a1d7e47f.js","../chunks/persist-store.dd882958.js","../chunks/parse-with-big-int.0036a80a.js","../chunks/toaster.60da8f1b.js","../chunks/has.233e577a.js","../chunks/is-network-error.d988be19.js","../chunks/route-for.ecd88549.js","../chunks/encode-uri.dfce78e4.js","../assets/pollers-service.3f93e67d.css","../chunks/empty-state.64fbab21.js","../chunks/table-header-row.b9d52458.js","../chunks/progress-bar.91bfde03.js","../assets/progress-bar.b97d2e42.css","../assets/table-header-row.402c4f6e.css","../chunks/table-row.9c997398.js","../chunks/time-format.7dc1f425.js","../chunks/format-time.5082c525.js","../chunks/task-queue-compatibility.cf5696f8.js","../assets/workers-list.7dbb8f48.css"],import.meta.url),()=>u(()=>import("../nodes/27.0c430cd7.js"),["../nodes/27.0c430cd7.js","../chunks/index.0942deb7.js","../chunks/stores.73c3690d.js","../chunks/singletons.0a6e865f.js","../chunks/paths.7de1f58b.js","../chunks/page-title.433b384d.js","../chunks/input.828c22e1.js","../chunks/icon.33308831.js","../chunks/copy-to-clipboard.8b0ec1c6.js","../chunks/icon-button.cdadbc6c.js","../assets/icon-button.c79bd23b.css","../assets/input.c1217c93.css","../chunks/modal.cb157ac8.js","../chunks/button.c09134bf.js","../chunks/badge.5c29cec8.js","../assets/badge.bfa9122b.css","../chunks/link.f0cc0bf5.js","../chunks/navigation.83f47780.js","../assets/link.336f9447.css","../chunks/menu.55d17299.js","../chunks/index.2fa3ca4d.js","../assets/menu.15c6ebf1.css","../assets/modal.a1162225.css","../chunks/translate.135d909a.js","../chunks/i18next.1cfb3cb9.js","../chunks/translate.f1dc53e5.js","../chunks/index.f0c1b3d6.js","../assets/index.a8fb96df.css","../chunks/workflows.13c60c9c.js","../chunks/route-for-api.f2500de4.js","../chunks/prod-browser.becde89a.js","../chunks/auth-user.a1d7e47f.js","../chunks/persist-store.dd882958.js","../chunks/parse-with-big-int.0036a80a.js","../chunks/toaster.60da8f1b.js","../chunks/has.233e577a.js","../chunks/is-network-error.d988be19.js","../chunks/route-for.ecd88549.js","../chunks/encode-uri.dfce78e4.js","../chunks/workflow-service.61e0ba9f.js","../chunks/decode-payload.3d6f13eb.js","../chunks/data-encoder-config.74f5c7e0.js","../chunks/is-http.b24d498b.js","../chunks/write-actions-are-allowed.7f76f8ee.js","../chunks/settings.424dea30.js","../chunks/simplify-attributes.4e073f3b.js","../chunks/time-format.7dc1f425.js","../chunks/format-time.5082c525.js","../chunks/version-check.d006b302.js","../chunks/versions.e238352a.js","../chunks/workflow-status.833cfe09.js","../chunks/heart-beat-indicator.df4ee8c0.js","../assets/heart-beat-indicator.80899fb7.css","../chunks/workflow-actions.6f88149c.js","../chunks/workflow-terminate-enabled.abf4a597.js","../chunks/filters.6a09297f.js","../chunks/index.fdd410d4.js","../assets/index.ad9f8937.css","../chunks/update-query-parameters.6de0b7d2.js","../chunks/toggle-switch.cc141600.js","../assets/toggle-switch.ff91b31f.css","../chunks/search-attributes.06872bde.js","../chunks/option.915b4554.js","../assets/option.20882847.css","../chunks/menu-divider.79623dfc.js","../chunks/radio-input.cbaf2baa.js","../assets/radio-input.01c3758f.css","../chunks/toggle-buttons.01bd60a8.js","../assets/toggle-buttons.1415ce75.css","../chunks/checkbox.7cf45921.js","../assets/checkbox.4a8ab4a7.css","../chunks/drawer.03af1b30.js","../assets/drawer.96194c4d.css","../chunks/alert.c46cfdd9.js","../assets/alert.303275c8.css","../chunks/loading.e7565465.js","../chunks/progress-bar.91bfde03.js","../assets/progress-bar.b97d2e42.css","../chunks/pagination.a85cd038.js","../chunks/simple-select.4e19902f.js","../assets/simple-select.51b2afe1.css","../chunks/namespaces.5c0c98b2.js","../chunks/core-user.20a8d8a5.js","../chunks/batch-operations.ac8cf9e3.js","../assets/27.bed845af.css"],import.meta.url),()=>u(()=>import("../nodes/28.acd4d792.js"),["../nodes/28.acd4d792.js","../chunks/index.3158323b.js","../chunks/control.f5b05b5f.js","../chunks/workflow-service.61e0ba9f.js","../chunks/index.0942deb7.js","../chunks/translate.135d909a.js","../chunks/i18next.1cfb3cb9.js","../chunks/decode-payload.3d6f13eb.js","../chunks/stores.73c3690d.js","../chunks/singletons.0a6e865f.js","../chunks/paths.7de1f58b.js","../chunks/data-encoder-config.74f5c7e0.js","../chunks/persist-store.dd882958.js","../chunks/parse-with-big-int.0036a80a.js","../chunks/has.233e577a.js","../chunks/is-http.b24d498b.js","../chunks/prod-browser.becde89a.js","../chunks/auth-user.a1d7e47f.js","../chunks/write-actions-are-allowed.7f76f8ee.js","../chunks/settings.424dea30.js","../chunks/simplify-attributes.4e073f3b.js","../chunks/time-format.7dc1f425.js","../chunks/format-time.5082c525.js","../chunks/route-for-api.f2500de4.js","../chunks/toaster.60da8f1b.js","../chunks/is-network-error.d988be19.js","../chunks/route-for.ecd88549.js","../chunks/encode-uri.dfce78e4.js","../chunks/version-check.d006b302.js","../chunks/versions.e238352a.js"],import.meta.url),()=>u(()=>import("../nodes/29.60cfec00.js"),["../nodes/29.60cfec00.js","../chunks/index.3158323b.js","../chunks/control.f5b05b5f.js","../chunks/index.0942deb7.js"],import.meta.url),()=>u(()=>import("../nodes/30.a0cba945.js"),["../nodes/30.a0cba945.js","../chunks/index.0942deb7.js","../chunks/stores.73c3690d.js","../chunks/singletons.0a6e865f.js","../chunks/paths.7de1f58b.js","../chunks/page-title.433b384d.js","../chunks/translate.135d909a.js","../chunks/i18next.1cfb3cb9.js","../chunks/alert.c46cfdd9.js","../chunks/icon.33308831.js","../assets/alert.303275c8.css","../chunks/button.c09134bf.js","../chunks/badge.5c29cec8.js","../assets/badge.bfa9122b.css","../chunks/link.f0cc0bf5.js","../chunks/navigation.83f47780.js","../assets/link.336f9447.css","../chunks/code-block.c6eabdb8.js","../chunks/button.d6281b70.js","../assets/button.8b8c0631.css","../chunks/copy-to-clipboard.8b0ec1c6.js","../chunks/parse-with-big-int.0036a80a.js","../chunks/empty-state.64fbab21.js","../chunks/loading.e7565465.js","../chunks/query-service.fd7152f2.js","../chunks/decode-payload.3d6f13eb.js","../chunks/data-encoder-config.74f5c7e0.js","../chunks/persist-store.dd882958.js","../chunks/has.233e577a.js","../chunks/is-http.b24d498b.js","../chunks/prod-browser.becde89a.js","../chunks/auth-user.a1d7e47f.js","../chunks/route-for-api.f2500de4.js","../chunks/toaster.60da8f1b.js","../chunks/is-network-error.d988be19.js","../chunks/route-for.ecd88549.js","../chunks/encode-uri.dfce78e4.js","../chunks/workflow-run.80b64688.js"],import.meta.url),()=>u(()=>import("../nodes/31.3c2adc5b.js"),["../nodes/31.3c2adc5b.js","../chunks/index.0942deb7.js","../chunks/stores.73c3690d.js","../chunks/singletons.0a6e865f.js","../chunks/paths.7de1f58b.js","../chunks/page-title.433b384d.js","../chunks/translate.135d909a.js","../chunks/i18next.1cfb3cb9.js","../chunks/get-workflow-relationships.54c919d2.js","../chunks/heart-beat-indicator.df4ee8c0.js","../assets/heart-beat-indicator.80899fb7.css","../chunks/icon.33308831.js","../chunks/link.f0cc0bf5.js","../chunks/navigation.83f47780.js","../assets/link.336f9447.css","../chunks/loading.e7565465.js","../chunks/toggle-buttons.01bd60a8.js","../assets/toggle-buttons.1415ce75.css","../chunks/index.5fe2e895.js","../chunks/has.233e577a.js","../chunks/is-event-type.7aa6d0ba.js","../chunks/format-time.5082c525.js","../chunks/get-event-categorization.75c83097.js","../chunks/event-view.33fc78e9.js","../chunks/persist-store.dd882958.js","../chunks/parse-with-big-int.0036a80a.js","../chunks/filters.6a09297f.js","../chunks/workflow-run.80b64688.js","../chunks/format-camel-case.887ffc78.js","../chunks/format-event-attributes.1749c5f9.js","../chunks/time-format.7dc1f425.js","../chunks/decode-payload.3d6f13eb.js","../chunks/data-encoder-config.74f5c7e0.js","../chunks/is-http.b24d498b.js","../chunks/prod-browser.becde89a.js","../chunks/auth-user.a1d7e47f.js","../chunks/route-for.ecd88549.js","../chunks/encode-uri.dfce78e4.js","../assets/get-workflow-relationships.9cb1e30e.css","../chunks/button.c09134bf.js","../chunks/badge.5c29cec8.js","../assets/badge.bfa9122b.css","../chunks/drawer.03af1b30.js","../chunks/index.2fa3ca4d.js","../chunks/menu.55d17299.js","../assets/menu.15c6ebf1.css","../chunks/icon-button.cdadbc6c.js","../assets/icon-button.c79bd23b.css","../assets/drawer.96194c4d.css","../chunks/tooltip.ea285ef3.js","../chunks/index.ad79a693.js","../chunks/copy-to-clipboard.8b0ec1c6.js","../chunks/button.d6281b70.js","../assets/button.8b8c0631.css","../assets/tooltip.78399487.css","../chunks/code-block.c6eabdb8.js","../chunks/payload-decoder.31bd549e.js","../chunks/accordion.89b036f1.js","../chunks/toaster.60da8f1b.js","../chunks/to-time-difference.be87d1bf.js","../chunks/alert.c46cfdd9.js","../assets/alert.303275c8.css","../chunks/task-queue-compatibility.cf5696f8.js","../chunks/pagination.a81dd55b.js","../chunks/pagination.a85cd038.js","../chunks/update-query-parameters.6de0b7d2.js","../chunks/simple-select.4e19902f.js","../assets/simple-select.51b2afe1.css","../chunks/index.f0c1b3d6.js","../assets/index.a8fb96df.css","../assets/pagination.76f9c6f3.css","../chunks/table-header-row.b9d52458.js","../chunks/progress-bar.91bfde03.js","../assets/progress-bar.b97d2e42.css","../assets/table-header-row.402c4f6e.css","../chunks/table-row.9c997398.js","../chunks/workflow-status.833cfe09.js","../chunks/event-summary-table.14d935eb.js","../chunks/empty-state.64fbab21.js","../chunks/menu-divider.79623dfc.js","../chunks/checkbox.7cf45921.js","../assets/checkbox.4a8ab4a7.css","../chunks/versions.e238352a.js","../chunks/settings.424dea30.js","../chunks/version-check.d006b302.js","../assets/event-summary-table.c983745f.css","../chunks/modal.cb157ac8.js","../assets/modal.a1162225.css","../chunks/toggle-switch.cc141600.js","../assets/toggle-switch.ff91b31f.css","../chunks/events-service.f9e1ef0b.js","../chunks/index.db10a648.js","../chunks/simplify-attributes.4e073f3b.js","../chunks/paginated.2d0a4e32.js","../chunks/route-for-api.f2500de4.js","../chunks/is-network-error.d988be19.js","../chunks/events.edd90912.js","../chunks/namespaces.5c0c98b2.js","../chunks/workflow-json-navigator.85eda75f.js","../assets/workflow-json-navigator.a85b4b27.css","../assets/31.fac88ce7.css"],import.meta.url),()=>u(()=>import("../nodes/32.c60a48a6.js"),["../nodes/32.c60a48a6.js","../chunks/index.3158323b.js","../chunks/control.f5b05b5f.js","../chunks/route-for.ecd88549.js","../chunks/prod-browser.becde89a.js","../chunks/paths.7de1f58b.js","../chunks/encode-uri.dfce78e4.js"],import.meta.url),()=>u(()=>import("../nodes/33.31f24430.js"),["../nodes/33.31f24430.js","../chunks/index.0942deb7.js","../chunks/stores.73c3690d.js","../chunks/singletons.0a6e865f.js","../chunks/paths.7de1f58b.js","../chunks/event-summary-table.14d935eb.js","../chunks/empty-state.64fbab21.js","../chunks/icon.33308831.js","../chunks/loading.e7565465.js","../chunks/translate.135d909a.js","../chunks/i18next.1cfb3cb9.js","../chunks/index.2fa3ca4d.js","../chunks/link.f0cc0bf5.js","../chunks/navigation.83f47780.js","../assets/link.336f9447.css","../chunks/index.5fe2e895.js","../chunks/has.233e577a.js","../chunks/is-event-type.7aa6d0ba.js","../chunks/format-time.5082c525.js","../chunks/event-view.33fc78e9.js","../chunks/persist-store.dd882958.js","../chunks/parse-with-big-int.0036a80a.js","../chunks/time-format.7dc1f425.js","../chunks/format-event-attributes.1749c5f9.js","../chunks/format-camel-case.887ffc78.js","../chunks/decode-payload.3d6f13eb.js","../chunks/data-encoder-config.74f5c7e0.js","../chunks/is-http.b24d498b.js","../chunks/prod-browser.becde89a.js","../chunks/auth-user.a1d7e47f.js","../chunks/route-for.ecd88549.js","../chunks/encode-uri.dfce78e4.js","../chunks/code-block.c6eabdb8.js","../chunks/button.d6281b70.js","../assets/button.8b8c0631.css","../chunks/copy-to-clipboard.8b0ec1c6.js","../chunks/index.ad79a693.js","../chunks/payload-decoder.31bd549e.js","../chunks/table-header-row.b9d52458.js","../chunks/progress-bar.91bfde03.js","../assets/progress-bar.b97d2e42.css","../assets/table-header-row.402c4f6e.css","../chunks/menu.55d17299.js","../chunks/badge.5c29cec8.js","../assets/badge.bfa9122b.css","../assets/menu.15c6ebf1.css","../chunks/menu-divider.79623dfc.js","../chunks/update-query-parameters.6de0b7d2.js","../chunks/button.c09134bf.js","../chunks/checkbox.7cf45921.js","../assets/checkbox.4a8ab4a7.css","../chunks/get-event-categorization.75c83097.js","../chunks/filters.6a09297f.js","../chunks/versions.e238352a.js","../chunks/settings.424dea30.js","../chunks/version-check.d006b302.js","../assets/event-summary-table.c983745f.css","../chunks/get-workflow-relationships.54c919d2.js","../chunks/heart-beat-indicator.df4ee8c0.js","../assets/heart-beat-indicator.80899fb7.css","../chunks/toggle-buttons.01bd60a8.js","../assets/toggle-buttons.1415ce75.css","../chunks/workflow-run.80b64688.js","../assets/get-workflow-relationships.9cb1e30e.css","../chunks/events-service.f9e1ef0b.js","../chunks/index.db10a648.js","../chunks/simplify-attributes.4e073f3b.js","../chunks/paginated.2d0a4e32.js","../chunks/route-for-api.f2500de4.js","../chunks/toaster.60da8f1b.js","../chunks/is-network-error.d988be19.js","../chunks/events.edd90912.js"],import.meta.url),()=>u(()=>import("../nodes/34.0d4eb2b8.js"),["../nodes/34.0d4eb2b8.js","../chunks/index.0942deb7.js","../chunks/stores.73c3690d.js","../chunks/singletons.0a6e865f.js","../chunks/paths.7de1f58b.js","../chunks/event-summary-table.14d935eb.js","../chunks/empty-state.64fbab21.js","../chunks/icon.33308831.js","../chunks/loading.e7565465.js","../chunks/translate.135d909a.js","../chunks/i18next.1cfb3cb9.js","../chunks/index.2fa3ca4d.js","../chunks/link.f0cc0bf5.js","../chunks/navigation.83f47780.js","../assets/link.336f9447.css","../chunks/index.5fe2e895.js","../chunks/has.233e577a.js","../chunks/is-event-type.7aa6d0ba.js","../chunks/format-time.5082c525.js","../chunks/event-view.33fc78e9.js","../chunks/persist-store.dd882958.js","../chunks/parse-with-big-int.0036a80a.js","../chunks/time-format.7dc1f425.js","../chunks/format-event-attributes.1749c5f9.js","../chunks/format-camel-case.887ffc78.js","../chunks/decode-payload.3d6f13eb.js","../chunks/data-encoder-config.74f5c7e0.js","../chunks/is-http.b24d498b.js","../chunks/prod-browser.becde89a.js","../chunks/auth-user.a1d7e47f.js","../chunks/route-for.ecd88549.js","../chunks/encode-uri.dfce78e4.js","../chunks/code-block.c6eabdb8.js","../chunks/button.d6281b70.js","../assets/button.8b8c0631.css","../chunks/copy-to-clipboard.8b0ec1c6.js","../chunks/index.ad79a693.js","../chunks/payload-decoder.31bd549e.js","../chunks/table-header-row.b9d52458.js","../chunks/progress-bar.91bfde03.js","../assets/progress-bar.b97d2e42.css","../assets/table-header-row.402c4f6e.css","../chunks/menu.55d17299.js","../chunks/badge.5c29cec8.js","../assets/badge.bfa9122b.css","../assets/menu.15c6ebf1.css","../chunks/menu-divider.79623dfc.js","../chunks/update-query-parameters.6de0b7d2.js","../chunks/button.c09134bf.js","../chunks/checkbox.7cf45921.js","../assets/checkbox.4a8ab4a7.css","../chunks/get-event-categorization.75c83097.js","../chunks/filters.6a09297f.js","../chunks/versions.e238352a.js","../chunks/settings.424dea30.js","../chunks/version-check.d006b302.js","../assets/event-summary-table.c983745f.css","../chunks/events-service.f9e1ef0b.js","../chunks/index.db10a648.js","../chunks/simplify-attributes.4e073f3b.js","../chunks/paginated.2d0a4e32.js","../chunks/route-for-api.f2500de4.js","../chunks/toaster.60da8f1b.js","../chunks/is-network-error.d988be19.js","../chunks/events.edd90912.js","../chunks/workflow-run.80b64688.js"],import.meta.url),()=>u(()=>import("../nodes/35.c60a48a6.js"),["../nodes/35.c60a48a6.js","../chunks/index.3158323b.js","../chunks/control.f5b05b5f.js","../chunks/route-for.ecd88549.js","../chunks/prod-browser.becde89a.js","../chunks/paths.7de1f58b.js","../chunks/encode-uri.dfce78e4.js"],import.meta.url),()=>u(()=>import("../nodes/36.c60a48a6.js"),["../nodes/36.c60a48a6.js","../chunks/index.3158323b.js","../chunks/control.f5b05b5f.js","../chunks/route-for.ecd88549.js","../chunks/prod-browser.becde89a.js","../chunks/paths.7de1f58b.js","../chunks/encode-uri.dfce78e4.js"],import.meta.url),()=>u(()=>import("../nodes/37.a265d511.js"),["../nodes/37.a265d511.js","../chunks/index.0942deb7.js","../chunks/stores.73c3690d.js","../chunks/singletons.0a6e865f.js","../chunks/paths.7de1f58b.js","../chunks/page-title.433b384d.js","../chunks/translate.135d909a.js","../chunks/i18next.1cfb3cb9.js","../chunks/badge.5c29cec8.js","../assets/badge.bfa9122b.css","../chunks/code-block.c6eabdb8.js","../chunks/button.d6281b70.js","../chunks/icon.33308831.js","../assets/button.8b8c0631.css","../chunks/copy-to-clipboard.8b0ec1c6.js","../chunks/parse-with-big-int.0036a80a.js","../chunks/empty-state.64fbab21.js","../chunks/link.f0cc0bf5.js","../chunks/navigation.83f47780.js","../assets/link.336f9447.css","../chunks/table-header-row.b9d52458.js","../chunks/progress-bar.91bfde03.js","../assets/progress-bar.b97d2e42.css","../assets/table-header-row.402c4f6e.css","../chunks/table-row.9c997398.js","../chunks/time-format.7dc1f425.js","../chunks/persist-store.dd882958.js","../chunks/format-time.5082c525.js","../chunks/has.233e577a.js","../chunks/workflow-run.80b64688.js","../chunks/format-event-attributes.1749c5f9.js","../chunks/format-camel-case.887ffc78.js","../chunks/index.5fe2e895.js","../chunks/is-event-type.7aa6d0ba.js","../chunks/decode-payload.3d6f13eb.js","../chunks/data-encoder-config.74f5c7e0.js","../chunks/is-http.b24d498b.js","../chunks/prod-browser.becde89a.js","../chunks/auth-user.a1d7e47f.js","../chunks/to-time-difference.be87d1bf.js","../assets/37.682a0c0d.css"],import.meta.url),()=>u(()=>import("../nodes/38.263ede6d.js"),["../nodes/38.263ede6d.js","../chunks/index.0942deb7.js","../chunks/stores.73c3690d.js","../chunks/singletons.0a6e865f.js","../chunks/paths.7de1f58b.js","../chunks/page-title.433b384d.js","../chunks/translate.135d909a.js","../chunks/i18next.1cfb3cb9.js","../chunks/button.c09134bf.js","../chunks/badge.5c29cec8.js","../assets/badge.bfa9122b.css","../chunks/icon.33308831.js","../chunks/link.f0cc0bf5.js","../chunks/navigation.83f47780.js","../assets/link.336f9447.css","../chunks/code-block.c6eabdb8.js","../chunks/button.d6281b70.js","../assets/button.8b8c0631.css","../chunks/copy-to-clipboard.8b0ec1c6.js","../chunks/parse-with-big-int.0036a80a.js","../chunks/empty-state.64fbab21.js","../chunks/loading.e7565465.js","../chunks/simple-select.4e19902f.js","../assets/simple-select.51b2afe1.css","../chunks/toggle-switch.cc141600.js","../assets/toggle-switch.ff91b31f.css","../chunks/query-service.fd7152f2.js","../chunks/decode-payload.3d6f13eb.js","../chunks/data-encoder-config.74f5c7e0.js","../chunks/persist-store.dd882958.js","../chunks/has.233e577a.js","../chunks/is-http.b24d498b.js","../chunks/prod-browser.becde89a.js","../chunks/auth-user.a1d7e47f.js","../chunks/route-for-api.f2500de4.js","../chunks/toaster.60da8f1b.js","../chunks/is-network-error.d988be19.js","../chunks/route-for.ecd88549.js","../chunks/encode-uri.dfce78e4.js"],import.meta.url),()=>u(()=>import("../nodes/39.e247916e.js"),["../nodes/39.e247916e.js","../chunks/index.3158323b.js","../chunks/control.f5b05b5f.js","../chunks/route-for.ecd88549.js","../chunks/prod-browser.becde89a.js","../chunks/paths.7de1f58b.js","../chunks/encode-uri.dfce78e4.js"],import.meta.url),()=>u(()=>import("../nodes/40.ac51d9c9.js"),["../nodes/40.ac51d9c9.js","../chunks/index.0942deb7.js","../chunks/stores.73c3690d.js","../chunks/singletons.0a6e865f.js","../chunks/paths.7de1f58b.js","../chunks/page-title.433b384d.js","../chunks/translate.135d909a.js","../chunks/i18next.1cfb3cb9.js","../chunks/workers-list.501e9be3.js","../chunks/badge.5c29cec8.js","../assets/badge.bfa9122b.css","../chunks/pollers-service.b55a2a09.js","../chunks/icon.33308831.js","../chunks/route-for-api.f2500de4.js","../chunks/prod-browser.becde89a.js","../chunks/auth-user.a1d7e47f.js","../chunks/persist-store.dd882958.js","../chunks/parse-with-big-int.0036a80a.js","../chunks/toaster.60da8f1b.js","../chunks/has.233e577a.js","../chunks/is-network-error.d988be19.js","../chunks/route-for.ecd88549.js","../chunks/encode-uri.dfce78e4.js","../assets/pollers-service.3f93e67d.css","../chunks/empty-state.64fbab21.js","../chunks/table-header-row.b9d52458.js","../chunks/progress-bar.91bfde03.js","../assets/progress-bar.b97d2e42.css","../assets/table-header-row.402c4f6e.css","../chunks/table-row.9c997398.js","../chunks/time-format.7dc1f425.js","../chunks/format-time.5082c525.js","../chunks/task-queue-compatibility.cf5696f8.js","../assets/workers-list.7dbb8f48.css","../chunks/workflow-run.80b64688.js"],import.meta.url),()=>u(()=>import("../nodes/41.fc743280.js"),["../nodes/41.fc743280.js","../chunks/index.0942deb7.js","../chunks/navigation.83f47780.js","../chunks/singletons.0a6e865f.js","../chunks/paths.7de1f58b.js","../chunks/stores.73c3690d.js","../chunks/page-title.433b384d.js","../chunks/empty-state.64fbab21.js","../chunks/icon.33308831.js","../chunks/input.828c22e1.js","../chunks/copy-to-clipboard.8b0ec1c6.js","../chunks/icon-button.cdadbc6c.js","../assets/icon-button.c79bd23b.css","../assets/input.c1217c93.css","../chunks/translate.135d909a.js","../chunks/i18next.1cfb3cb9.js","../chunks/workflow-service.61e0ba9f.js","../chunks/decode-payload.3d6f13eb.js","../chunks/data-encoder-config.74f5c7e0.js","../chunks/persist-store.dd882958.js","../chunks/parse-with-big-int.0036a80a.js","../chunks/has.233e577a.js","../chunks/is-http.b24d498b.js","../chunks/prod-browser.becde89a.js","../chunks/auth-user.a1d7e47f.js","../chunks/write-actions-are-allowed.7f76f8ee.js","../chunks/settings.424dea30.js","../chunks/simplify-attributes.4e073f3b.js","../chunks/time-format.7dc1f425.js","../chunks/format-time.5082c525.js","../chunks/route-for-api.f2500de4.js","../chunks/toaster.60da8f1b.js","../chunks/is-network-error.d988be19.js","../chunks/route-for.ecd88549.js","../chunks/encode-uri.dfce78e4.js","../chunks/version-check.d006b302.js","../chunks/versions.e238352a.js","../chunks/namespaces.5c0c98b2.js","../assets/41.8ed620ce.css"],import.meta.url),()=>u(()=>import("../nodes/42.d5306497.js"),["../nodes/42.d5306497.js","../chunks/index.0942deb7.js","../chunks/stores.73c3690d.js","../chunks/singletons.0a6e865f.js","../chunks/paths.7de1f58b.js","../chunks/logo.f647e2df.js","../chunks/icon.33308831.js","../assets/logo.4e0dbf07.css","../chunks/page-title.433b384d.js","../chunks/button.c09134bf.js","../chunks/badge.5c29cec8.js","../assets/badge.bfa9122b.css","../chunks/link.f0cc0bf5.js","../chunks/navigation.83f47780.js","../assets/link.336f9447.css","../chunks/route-for.ecd88549.js","../chunks/prod-browser.becde89a.js","../chunks/encode-uri.dfce78e4.js"],import.meta.url),()=>u(()=>import("../nodes/43.d5306497.js"),["../nodes/43.d5306497.js","../chunks/index.0942deb7.js","../chunks/stores.73c3690d.js","../chunks/singletons.0a6e865f.js","../chunks/paths.7de1f58b.js","../chunks/logo.f647e2df.js","../chunks/icon.33308831.js","../assets/logo.4e0dbf07.css","../chunks/page-title.433b384d.js","../chunks/button.c09134bf.js","../chunks/badge.5c29cec8.js","../assets/badge.bfa9122b.css","../chunks/link.f0cc0bf5.js","../chunks/navigation.83f47780.js","../assets/link.336f9447.css","../chunks/route-for.ecd88549.js","../chunks/prod-browser.becde89a.js","../chunks/encode-uri.dfce78e4.js"],import.meta.url)],$e=[],Pe={"/(app)":[9,[2]],"/(app)/import":[10,[2,3]],"/(app)/import/events":[11,[2,3]],"/(app)/import/events/[namespace]/[workflow]/[run]/history":[12,[2,3,4]],"/(app)/import/events/[namespace]/[workflow]/[run]/history/compact":[13,[2,3,4]],"/(app)/import/events/[namespace]/[workflow]/[run]/history/feed":[14,[2,3,4]],"/(app)/import/events/[namespace]/[workflow]/[run]/history/json":[15,[2,3,4]],"/(login)/login":[42,[8]],"/(app)/namespaces":[16,[2]],"/(app)/namespaces/[namespace]":[17,[2,5]],"/(app)/namespaces/[namespace]/archival":[18,[2,5]],"/(app)/namespaces/[namespace]/batch-operations":[19,[2,5]],"/(app)/namespaces/[namespace]/batch-operations/[jobId]":[20,[2,5]],"/(app)/namespaces/[namespace]/schedules":[21,[2,5]],"/(app)/namespaces/[namespace]/schedules/create":[24,[2,5]],"/(app)/namespaces/[namespace]/schedules/[schedule]":[22,[2,5]],"/(app)/namespaces/[namespace]/schedules/[schedule]/edit":[23,[2,5]],"/(app)/namespaces/[namespace]/task-queues":[25,[2,5,6]],"/(app)/namespaces/[namespace]/task-queues/[queue]":[26,[2,5,6]],"/(app)/namespaces/[namespace]/workflows":[27,[2,5]],"/(app)/namespaces/[namespace]/workflows/[workflow]":[28,[2,5]],"/(app)/namespaces/[namespace]/workflows/[workflow]/[run]":[29,[2,5,7]],"/(app)/namespaces/[namespace]/workflows/[workflow]/[run]/call-stack":[30,[2,5,7]],"/(app)/namespaces/[namespace]/workflows/[workflow]/[run]/history":[31,[2,5,7]],"/(app)/namespaces/[namespace]/workflows/[workflow]/[run]/history/compact":[32,[2,5,7]],"/(app)/namespaces/[namespace]/workflows/[workflow]/[run]/history/event-groups/[id]":[33,[2,5,7]],"/(app)/namespaces/[namespace]/workflows/[workflow]/[run]/history/events/[id]":[34,[2,5,7]],"/(app)/namespaces/[namespace]/workflows/[workflow]/[run]/history/feed":[35,[2,5,7]],"/(app)/namespaces/[namespace]/workflows/[workflow]/[run]/history/json":[36,[2,5,7]],"/(app)/namespaces/[namespace]/workflows/[workflow]/[run]/pending-activities":[37,[2,5,7]],"/(app)/namespaces/[namespace]/workflows/[workflow]/[run]/query":[38,[2,5,7]],"/(app)/namespaces/[namespace]/workflows/[workflow]/[run]/stack-trace":[39,[2,5,7]],"/(app)/namespaces/[namespace]/workflows/[workflow]/[run]/workers":[40,[2,5,7]],"/(app)/select-namespace":[41,[2]],"/(login)/signin":[43,[8]]},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.87b91924.js b/ui/assets/local/_app/immutable/entry/start.d2132700.js similarity index 99% rename from ui/assets/local/_app/immutable/entry/start.87b91924.js rename to ui/assets/local/_app/immutable/entry/start.d2132700.js index 72bacd8ee0..65d06d291f 100644 --- a/ui/assets/local/_app/immutable/entry/start.87b91924.js +++ b/ui/assets/local/_app/immutable/entry/start.d2132700.js @@ -1,3 +1,3 @@ -import{o as me,t as we}from"../chunks/index.0942deb7.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.0a6e865f.js";import{b as K}from"../chunks/paths.7de1f58b.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.0942deb7.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.d67f4e6b.js";import{b as K}from"../chunks/paths.742c8328.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.69447c3c.js b/ui/assets/local/_app/immutable/nodes/1.1fe70d49.js similarity index 86% rename from ui/assets/local/_app/immutable/nodes/1.69447c3c.js rename to ui/assets/local/_app/immutable/nodes/1.1fe70d49.js index ce6c3b1067..cdcb15c9c2 100644 --- a/ui/assets/local/_app/immutable/nodes/1.69447c3c.js +++ b/ui/assets/local/_app/immutable/nodes/1.1fe70d49.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.0942deb7.js";/* empty css */import{p as d}from"../chunks/stores.73c3690d.js";import{E as h}from"../chunks/error.9ad9aabe.js";import{i as b}from"../chunks/is-network-error.d988be19.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.0942deb7.js";/* empty css */import{p as d}from"../chunks/stores.255470ec.js";import{E as h}from"../chunks/error.6e410547.js";import{i as b}from"../chunks/is-network-error.d988be19.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.c7e19cea.js b/ui/assets/local/_app/immutable/nodes/10.5b83395a.js similarity index 76% rename from ui/assets/local/_app/immutable/nodes/10.c7e19cea.js rename to ui/assets/local/_app/immutable/nodes/10.5b83395a.js index 78556515bf..637df72a86 100644 --- a/ui/assets/local/_app/immutable/nodes/10.c7e19cea.js +++ b/ui/assets/local/_app/immutable/nodes/10.5b83395a.js @@ -1 +1 @@ -import{r as o}from"../chunks/index.3158323b.js";import{f as t}from"../chunks/route-for.ecd88549.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.18f9590b.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/11.a2f6467e.js b/ui/assets/local/_app/immutable/nodes/11.a1f2dab7.js similarity index 94% rename from ui/assets/local/_app/immutable/nodes/11.a2f6467e.js rename to ui/assets/local/_app/immutable/nodes/11.a1f2dab7.js index 98f2731da4..1e770cf456 100644 --- a/ui/assets/local/_app/immutable/nodes/11.a2f6467e.js +++ b/ui/assets/local/_app/immutable/nodes/11.a1f2dab7.js @@ -1 +1 @@ -import{S as et,b as st,a as nt,m as l,w as N,c as k,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 T,j as S,g as V,F as L,n as at}from"../chunks/index.0942deb7.js";import{E as ot}from"../chunks/event-history-file-import.d2dbee6f.js";import{C as Z}from"../chunks/code-block.c6eabdb8.js";import{L as it}from"../chunks/link.f0cc0bf5.js";import{t as $}from"../chunks/translate.135d909a.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,w,M=$("events.history-expected-formats")+"",G,J,u,g,K,_,j;return h=new ot({}),p=new it({props:{newTab:!0,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=k(),E=l("div"),C(h.$$.fragment),F=k(),a=l("div"),x=l("code"),P=N("type HistoryEvent = temporal.api.history.v1.IHistoryEvent"),W=k(),I=l("div"),C(p.$$.fragment),z=k(),w=l("h2"),G=N(M),J=k(),u=l("div"),C(g.$$.fragment),K=k(),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),w=m(d,"H2",{class:!0});var Y=f(w);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(w,"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),T(h,E,null),r(t,F),r(t,a),r(a,x),r(x,P),r(a,W),r(a,I),T(p,I,null),r(a,z),r(a,w),r(w,G),r(a,J),r(a,u),T(g,u,null),r(u,K),T(_,u,null),j=!0},p(n,[c]){const y={};c&2&&(y.$$scope={dirty:c,ctx:n}),p.$set(y)},i(n){j||(S(h.$$.fragment,n),S(p.$$.fragment,n),S(g.$$.fragment,n),S(_.$$.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){T(t,e,b),s=!0},p:at,i(e){s||(S(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 k,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 T,j as S,g as V,F as L,n as at}from"../chunks/index.0942deb7.js";import{E as ot}from"../chunks/event-history-file-import.de8c0286.js";import{C as Z}from"../chunks/code-block.a5088abe.js";import{L as it}from"../chunks/link.faba7c50.js";import{t as $}from"../chunks/translate.135d909a.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,w,M=$("events.history-expected-formats")+"",G,J,u,g,K,_,j;return h=new ot({}),p=new it({props:{newTab:!0,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=k(),E=l("div"),C(h.$$.fragment),F=k(),a=l("div"),x=l("code"),P=N("type HistoryEvent = temporal.api.history.v1.IHistoryEvent"),W=k(),I=l("div"),C(p.$$.fragment),z=k(),w=l("h2"),G=N(M),J=k(),u=l("div"),C(g.$$.fragment),K=k(),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),w=m(d,"H2",{class:!0});var Y=f(w);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(w,"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),T(h,E,null),r(t,F),r(t,a),r(a,x),r(x,P),r(a,W),r(a,I),T(p,I,null),r(a,z),r(a,w),r(w,G),r(a,J),r(a,u),T(g,u,null),r(u,K),T(_,u,null),j=!0},p(n,[c]){const y={};c&2&&(y.$$scope={dirty:c,ctx:n}),p.$set(y)},i(n){j||(S(h.$$.fragment,n),S(p.$$.fragment,n),S(g.$$.fragment,n),S(_.$$.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){T(t,e,b),s=!0},p:at,i(e){s||(S(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/12.79a3b4d9.js b/ui/assets/local/_app/immutable/nodes/12.dcde8a64.js similarity index 77% rename from ui/assets/local/_app/immutable/nodes/12.79a3b4d9.js rename to ui/assets/local/_app/immutable/nodes/12.dcde8a64.js index 1a554b1303..e55956b6ae 100644 --- a/ui/assets/local/_app/immutable/nodes/12.79a3b4d9.js +++ b/ui/assets/local/_app/immutable/nodes/12.dcde8a64.js @@ -1 +1 @@ -import{r as o}from"../chunks/index.3158323b.js";import{f as r}from"../chunks/route-for.ecd88549.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.18f9590b.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/13.188f3272.js b/ui/assets/local/_app/immutable/nodes/13.69125e94.js similarity index 92% rename from ui/assets/local/_app/immutable/nodes/13.188f3272.js rename to ui/assets/local/_app/immutable/nodes/13.69125e94.js index 43140d84ed..144afa5878 100644 --- a/ui/assets/local/_app/immutable/nodes/13.188f3272.js +++ b/ui/assets/local/_app/immutable/nodes/13.69125e94.js @@ -1 +1 @@ -import{S as x,b as G,a as I,C as $,D as h,E as d,j as u,g as c,F as v,K as p,a5 as L,e as g,f as A,z as b,aa as P,h as y,k as C,ab as z}from"../chunks/index.0942deb7.js";import{E as B,a as N,b as j}from"../chunks/event-summary-table.14d935eb.js";import{P as q}from"../chunks/pagination.a81dd55b.js";import{t as _}from"../chunks/translate.135d909a.js";import{b as w,e as D}from"../chunks/event-view.33fc78e9.js";import{e as K}from"../chunks/filters.6a09297f.js";import{a as M}from"../chunks/import-events.155db9b7.js";function k(i,t,r){const e=i.slice();return e[9]=t[r],e}function E(i){let t,r;return t=new N({}),{c(){$(t.$$.fragment)},l(e){h(t.$$.fragment,e)},m(e,a){d(t,e,a),r=!0},i(e){r||(u(t.$$.fragment,e),r=!0)},o(e){c(t.$$.fragment,e),r=!1},d(e){v(t,e)}}}function S(i,t){let r,e,a;return e=new j({props:{event:t[9],compact:F,expandAll:t[1]==="true",initialItem:t[8]}}),{key:i,first:null,c(){r=g(),$(e.$$.fragment),this.h()},l(n){r=g(),h(e.$$.fragment,n),this.h()},h(){this.first=r},m(n,f){A(n,r,f),d(e,n,f),a=!0},p(n,f){t=n;const l={};f&128&&(l.event=t[9]),f&2&&(l.expandAll=t[1]==="true"),f&256&&(l.initialItem=t[8]),e.$set(l)},i(n){a||(u(e.$$.fragment,n),a=!0)},o(n){c(e.$$.fragment,n),a=!1},d(n){n&&C(r),v(e,n)}}}function H(i){let t=[],r=new Map,e,a,n=i[7];const f=o=>`${o[9].id}-${o[9].timestamp}`;for(let o=0;o{l=null}),y()):l||(l=E(),l.c(),u(l,1),l.m(e.parentNode,e)))},i(o){if(!a){for(let s=0;s({7:e,8:a}),({visibleItems:e,initialItem:a})=>(e?128:0)|(a?256:0)]},$$scope:{ctx:i}}}),{c(){$(t.$$.fragment)},l(e){h(t.$$.fragment,e)},m(e,a){d(t,e,a),r=!0},p(e,[a]){const n={};a&1&&(n.items=e[0]),a&4482&&(n.$$scope={dirty:a,ctx:e}),t.$set(n)},i(e){r||(u(t.$$.fragment,e),r=!0)},o(e){c(t.$$.fragment,e),r=!1},d(e){v(t,e)}}}let F=!0;function Q(i,t,r){let e,a,n,f,l,o;p(i,w,m=>r(1,n=m)),p(i,K,m=>r(4,f=m)),p(i,M,m=>r(5,l=m)),p(i,D,m=>r(6,o=m));function s(m){L(w,n=m.detail.expanded,n)}return i.$$.update=()=>{i.$$.dirty&96&&r(3,e=o==="descending"?[...l].reverse():l),i.$$.dirty&24&&r(0,a=e.filter(m=>f?f.includes(m.category):m))},[a,n,s,e,f,l,o]}class Z extends x{constructor(t){super(),G(this,t,Q,O,I,{})}}export{Z as component}; +import{S as x,b as G,a as I,C as $,D as h,E as d,j as u,g as c,F as v,K as p,a5 as L,e as g,f as A,z as b,aa as P,h as y,k as C,ab as z}from"../chunks/index.0942deb7.js";import{E as B,a as N,b as j}from"../chunks/event-summary-table.e279c965.js";import{P as q}from"../chunks/pagination.057da68c.js";import{t as _}from"../chunks/translate.135d909a.js";import{b as w,e as D}from"../chunks/event-view.f292d7b1.js";import{e as K}from"../chunks/filters.38f71e0d.js";import{a as M}from"../chunks/import-events.ad8d6143.js";function k(i,t,r){const e=i.slice();return e[9]=t[r],e}function E(i){let t,r;return t=new N({}),{c(){$(t.$$.fragment)},l(e){h(t.$$.fragment,e)},m(e,a){d(t,e,a),r=!0},i(e){r||(u(t.$$.fragment,e),r=!0)},o(e){c(t.$$.fragment,e),r=!1},d(e){v(t,e)}}}function S(i,t){let r,e,a;return e=new j({props:{event:t[9],compact:F,expandAll:t[1]==="true",initialItem:t[8]}}),{key:i,first:null,c(){r=g(),$(e.$$.fragment),this.h()},l(n){r=g(),h(e.$$.fragment,n),this.h()},h(){this.first=r},m(n,f){A(n,r,f),d(e,n,f),a=!0},p(n,f){t=n;const l={};f&128&&(l.event=t[9]),f&2&&(l.expandAll=t[1]==="true"),f&256&&(l.initialItem=t[8]),e.$set(l)},i(n){a||(u(e.$$.fragment,n),a=!0)},o(n){c(e.$$.fragment,n),a=!1},d(n){n&&C(r),v(e,n)}}}function H(i){let t=[],r=new Map,e,a,n=i[7];const f=o=>`${o[9].id}-${o[9].timestamp}`;for(let o=0;o{l=null}),y()):l||(l=E(),l.c(),u(l,1),l.m(e.parentNode,e)))},i(o){if(!a){for(let s=0;s({7:e,8:a}),({visibleItems:e,initialItem:a})=>(e?128:0)|(a?256:0)]},$$scope:{ctx:i}}}),{c(){$(t.$$.fragment)},l(e){h(t.$$.fragment,e)},m(e,a){d(t,e,a),r=!0},p(e,[a]){const n={};a&1&&(n.items=e[0]),a&4482&&(n.$$scope={dirty:a,ctx:e}),t.$set(n)},i(e){r||(u(t.$$.fragment,e),r=!0)},o(e){c(t.$$.fragment,e),r=!1},d(e){v(t,e)}}}let F=!0;function Q(i,t,r){let e,a,n,f,l,o;p(i,w,m=>r(1,n=m)),p(i,K,m=>r(4,f=m)),p(i,M,m=>r(5,l=m)),p(i,D,m=>r(6,o=m));function s(m){L(w,n=m.detail.expanded,n)}return i.$$.update=()=>{i.$$.dirty&96&&r(3,e=o==="descending"?[...l].reverse():l),i.$$.dirty&24&&r(0,a=e.filter(m=>f?f.includes(m.category):m))},[a,n,s,e,f,l,o]}class Z extends x{constructor(t){super(),G(this,t,Q,O,I,{})}}export{Z as component}; diff --git a/ui/assets/local/_app/immutable/nodes/14.dfd8ec96.js b/ui/assets/local/_app/immutable/nodes/14.acf76f23.js similarity index 92% rename from ui/assets/local/_app/immutable/nodes/14.dfd8ec96.js rename to ui/assets/local/_app/immutable/nodes/14.acf76f23.js index 461ced115d..3aa5e53f72 100644 --- a/ui/assets/local/_app/immutable/nodes/14.dfd8ec96.js +++ b/ui/assets/local/_app/immutable/nodes/14.acf76f23.js @@ -1 +1 @@ -import{S as x,b as I,a as L,C as $,D as h,E as d,j as u,g as c,F as v,K as p,a5 as P,e as g,f as A,z as b,aa as z,h as y,k as C,ab as B}from"../chunks/index.0942deb7.js";import{E as N,a as j,b as q}from"../chunks/event-summary-table.14d935eb.js";import{P as D}from"../chunks/pagination.a81dd55b.js";import{t as _}from"../chunks/translate.135d909a.js";import{b as w,e as K}from"../chunks/event-view.33fc78e9.js";import{e as M}from"../chunks/filters.6a09297f.js";import{i as G}from"../chunks/import-events.155db9b7.js";function k(i,t,r){const e=i.slice();return e[9]=t[r],e}function E(i){let t,r;return t=new j({}),{c(){$(t.$$.fragment)},l(e){h(t.$$.fragment,e)},m(e,a){d(t,e,a),r=!0},i(e){r||(u(t.$$.fragment,e),r=!0)},o(e){c(t.$$.fragment,e),r=!1},d(e){v(t,e)}}}function S(i,t){let r,e,a;return e=new q({props:{event:t[9],compact:F,expandAll:t[1]==="true",initialItem:t[8]}}),{key:i,first:null,c(){r=g(),$(e.$$.fragment),this.h()},l(n){r=g(),h(e.$$.fragment,n),this.h()},h(){this.first=r},m(n,f){A(n,r,f),d(e,n,f),a=!0},p(n,f){t=n;const l={};f&128&&(l.event=t[9]),f&2&&(l.expandAll=t[1]==="true"),f&256&&(l.initialItem=t[8]),e.$set(l)},i(n){a||(u(e.$$.fragment,n),a=!0)},o(n){c(e.$$.fragment,n),a=!1},d(n){n&&C(r),v(e,n)}}}function H(i){let t=[],r=new Map,e,a,n=i[7];const f=o=>`${o[9].id}-${o[9].timestamp}`;for(let o=0;o{l=null}),y()):l||(l=E(),l.c(),u(l,1),l.m(e.parentNode,e)))},i(o){if(!a){for(let s=0;s({7:e,8:a}),({visibleItems:e,initialItem:a})=>(e?128:0)|(a?256:0)]},$$scope:{ctx:i}}}),{c(){$(t.$$.fragment)},l(e){h(t.$$.fragment,e)},m(e,a){d(t,e,a),r=!0},p(e,[a]){const n={};a&1&&(n.items=e[0]),a&4482&&(n.$$scope={dirty:a,ctx:e}),t.$set(n)},i(e){r||(u(t.$$.fragment,e),r=!0)},o(e){c(t.$$.fragment,e),r=!1},d(e){v(t,e)}}}let F=!1;function Q(i,t,r){let e,a,n,f,l,o;p(i,w,m=>r(1,n=m)),p(i,M,m=>r(4,f=m)),p(i,G,m=>r(5,l=m)),p(i,K,m=>r(6,o=m));function s(m){P(w,n=m.detail.expanded,n)}return i.$$.update=()=>{i.$$.dirty&96&&r(3,e=o==="descending"?[...l].reverse():l),i.$$.dirty&24&&r(0,a=e.filter(m=>f?f.includes(m.category):m))},[a,n,s,e,f,l,o]}class Z extends x{constructor(t){super(),I(this,t,Q,O,L,{})}}export{Z as component}; +import{S as x,b as I,a as L,C as $,D as h,E as d,j as u,g as c,F as v,K as p,a5 as P,e as g,f as A,z as b,aa as z,h as y,k as C,ab as B}from"../chunks/index.0942deb7.js";import{E as N,a as j,b as q}from"../chunks/event-summary-table.e279c965.js";import{P as D}from"../chunks/pagination.057da68c.js";import{t as _}from"../chunks/translate.135d909a.js";import{b as w,e as K}from"../chunks/event-view.f292d7b1.js";import{e as M}from"../chunks/filters.38f71e0d.js";import{i as G}from"../chunks/import-events.ad8d6143.js";function k(i,t,r){const e=i.slice();return e[9]=t[r],e}function E(i){let t,r;return t=new j({}),{c(){$(t.$$.fragment)},l(e){h(t.$$.fragment,e)},m(e,a){d(t,e,a),r=!0},i(e){r||(u(t.$$.fragment,e),r=!0)},o(e){c(t.$$.fragment,e),r=!1},d(e){v(t,e)}}}function S(i,t){let r,e,a;return e=new q({props:{event:t[9],compact:F,expandAll:t[1]==="true",initialItem:t[8]}}),{key:i,first:null,c(){r=g(),$(e.$$.fragment),this.h()},l(n){r=g(),h(e.$$.fragment,n),this.h()},h(){this.first=r},m(n,f){A(n,r,f),d(e,n,f),a=!0},p(n,f){t=n;const l={};f&128&&(l.event=t[9]),f&2&&(l.expandAll=t[1]==="true"),f&256&&(l.initialItem=t[8]),e.$set(l)},i(n){a||(u(e.$$.fragment,n),a=!0)},o(n){c(e.$$.fragment,n),a=!1},d(n){n&&C(r),v(e,n)}}}function H(i){let t=[],r=new Map,e,a,n=i[7];const f=o=>`${o[9].id}-${o[9].timestamp}`;for(let o=0;o{l=null}),y()):l||(l=E(),l.c(),u(l,1),l.m(e.parentNode,e)))},i(o){if(!a){for(let s=0;s({7:e,8:a}),({visibleItems:e,initialItem:a})=>(e?128:0)|(a?256:0)]},$$scope:{ctx:i}}}),{c(){$(t.$$.fragment)},l(e){h(t.$$.fragment,e)},m(e,a){d(t,e,a),r=!0},p(e,[a]){const n={};a&1&&(n.items=e[0]),a&4482&&(n.$$scope={dirty:a,ctx:e}),t.$set(n)},i(e){r||(u(t.$$.fragment,e),r=!0)},o(e){c(t.$$.fragment,e),r=!1},d(e){v(t,e)}}}let F=!1;function Q(i,t,r){let e,a,n,f,l,o;p(i,w,m=>r(1,n=m)),p(i,M,m=>r(4,f=m)),p(i,G,m=>r(5,l=m)),p(i,K,m=>r(6,o=m));function s(m){P(w,n=m.detail.expanded,n)}return i.$$.update=()=>{i.$$.dirty&96&&r(3,e=o==="descending"?[...l].reverse():l),i.$$.dirty&24&&r(0,a=e.filter(m=>f?f.includes(m.category):m))},[a,n,s,e,f,l,o]}class Z extends x{constructor(t){super(),I(this,t,Q,O,L,{})}}export{Z as component}; diff --git a/ui/assets/local/_app/immutable/nodes/15.33238cf5.js b/ui/assets/local/_app/immutable/nodes/15.76089fee.js similarity index 79% rename from ui/assets/local/_app/immutable/nodes/15.33238cf5.js rename to ui/assets/local/_app/immutable/nodes/15.76089fee.js index 5bae2996d7..1f8ca64b57 100644 --- a/ui/assets/local/_app/immutable/nodes/15.33238cf5.js +++ b/ui/assets/local/_app/immutable/nodes/15.76089fee.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.0942deb7.js";import{W as g}from"../chunks/workflow-json-navigator.85eda75f.js";import{i as v}from"../chunks/import-events.155db9b7.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.0942deb7.js";import{W as g}from"../chunks/workflow-json-navigator.50ae8db9.js";import{i as v}from"../chunks/import-events.ad8d6143.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/16.fe44d133.js b/ui/assets/local/_app/immutable/nodes/16.b1f2181e.js similarity index 94% rename from ui/assets/local/_app/immutable/nodes/16.fe44d133.js rename to ui/assets/local/_app/immutable/nodes/16.b1f2181e.js index 3d1f0a5116..2bf9e13f30 100644 --- a/ui/assets/local/_app/immutable/nodes/16.fe44d133.js +++ b/ui/assets/local/_app/immutable/nodes/16.b1f2181e.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.0942deb7.js";import{p as V}from"../chunks/stores.73c3690d.js";import{P as W}from"../chunks/page-title.433b384d.js";import{E as X}from"../chunks/empty-state.64fbab21.js";import{L as Y}from"../chunks/link.f0cc0bf5.js";import{P as Z}from"../chunks/pagination.a81dd55b.js";import{T as ee,a as te}from"../chunks/table-header-row.b9d52458.js";import{T as ae}from"../chunks/table-row.9c997398.js";import{t as h}from"../chunks/translate.135d909a.js";import{n as ne}from"../chunks/namespaces.5c0c98b2.js";import{o as j}from"../chunks/route-for.ecd88549.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.0942deb7.js";import{p as V}from"../chunks/stores.255470ec.js";import{P as W}from"../chunks/page-title.433b384d.js";import{E as X}from"../chunks/empty-state.64fbab21.js";import{L as Y}from"../chunks/link.faba7c50.js";import{P as Z}from"../chunks/pagination.057da68c.js";import{T as ee,a as te}from"../chunks/table-header-row.b9d52458.js";import{T as ae}from"../chunks/table-row.9c997398.js";import{t as h}from"../chunks/translate.135d909a.js";import{n as ne}from"../chunks/namespaces.68caf21c.js";import{o as j}from"../chunks/route-for.18f9590b.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/17.7f794e61.js b/ui/assets/local/_app/immutable/nodes/17.7f794e61.js new file mode 100644 index 0000000000..906ffbcdd3 --- /dev/null +++ b/ui/assets/local/_app/immutable/nodes/17.7f794e61.js @@ -0,0 +1 @@ +import{a as dt}from"../chunks/namespaces-service.db387b71.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.0942deb7.js";import{p as bt}from"../chunks/stores.255470ec.js";import{P as gt}from"../chunks/page-title.433b384d.js";import{B as we}from"../chunks/badge.5c29cec8.js";import{C as Dt}from"../chunks/card.eda89c85.js";import{T as ze,a as At}from"../chunks/table-header-row.b9d52458.js";import{T as kt}from"../chunks/table-row.9c997398.js";import{t as N}from"../chunks/translate.135d909a.js";import{l as ft}from"../chunks/namespaces.68caf21c.js";import{s as Rt}from"../chunks/search-attributes.ed984efc.js";import{s as It}from"../chunks/settings.23b6089e.js";import{t as Ct,u as St}from"../chunks/versions.1002dc8d.js";import{s as it}from"../chunks/format-time.5082c525.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/17.9ef57917.js b/ui/assets/local/_app/immutable/nodes/17.9ef57917.js deleted file mode 100644 index 35b2dc866a..0000000000 --- a/ui/assets/local/_app/immutable/nodes/17.9ef57917.js +++ /dev/null @@ -1 +0,0 @@ -import{a as dt}from"../chunks/namespaces-service.7a177dbb.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.0942deb7.js";import{p as bt}from"../chunks/stores.73c3690d.js";import{P as gt}from"../chunks/page-title.433b384d.js";import{B as we}from"../chunks/badge.5c29cec8.js";import{C as Dt}from"../chunks/card.eda89c85.js";import{T as ze,a as At}from"../chunks/table-header-row.b9d52458.js";import{T as kt}from"../chunks/table-row.9c997398.js";import{t as N}from"../chunks/translate.135d909a.js";import{l as ft}from"../chunks/namespaces.5c0c98b2.js";import{s as Rt}from"../chunks/search-attributes.06872bde.js";import{s as It}from"../chunks/settings.424dea30.js";import{t as Ct,u as St}from"../chunks/versions.e238352a.js";import{s as it}from"../chunks/format-time.5082c525.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.4699bcc9.js b/ui/assets/local/_app/immutable/nodes/18.37a56ae6.js similarity index 97% rename from ui/assets/local/_app/immutable/nodes/18.4699bcc9.js rename to ui/assets/local/_app/immutable/nodes/18.37a56ae6.js index 7bee9b4cf2..2a678620e9 100644 --- a/ui/assets/local/_app/immutable/nodes/18.4699bcc9.js +++ b/ui/assets/local/_app/immutable/nodes/18.37a56ae6.js @@ -1 +1 @@ -import{a as st}from"../chunks/namespaces-service.7a177dbb.js";import{e as nt,g as Oe}from"../chunks/workflow-service.61e0ba9f.js";import{S as ne,b as fe,a as ie,C as D,D as L,E as H,j as k,g as y,F as j,K as oe,m as q,c as F,w as I,p as A,q as N,k as m,d as W,x as P,u as E,f as g,L as v,M as G,_ as tt,ag as lt,y as le,r as rt,G as ft,H as it,I as ut,J as ct,n as Z,$ as qe,Z as Re,z as Y,h as x,A as mt,a0 as pt,a1 as _t,e as U,a7 as at,aa as $t,ab as ht}from"../chunks/index.0942deb7.js";import{p as Se}from"../chunks/stores.73c3690d.js";import{P as dt}from"../chunks/page-title.433b384d.js";import{W as wt}from"../chunks/workflow-status.833cfe09.js";import{t as gt,F as Ue,j as bt}from"../chunks/index.fdd410d4.js";import{L as Ce}from"../chunks/link.f0cc0bf5.js";import{T as kt}from"../chunks/table-row.9c997398.js";import{t as T}from"../chunks/translate.135d909a.js";import{t as Ae,r as vt,b as te}from"../chunks/time-format.7dc1f425.js";import{u as yt,v as Tt,w as Et,x as Qe,y as Me}from"../chunks/format-time.5082c525.js";import{d as St}from"../chunks/has.233e577a.js";import{g as It}from"../chunks/route-for.ecd88549.js";import{u as ot}from"../chunks/update-query-parameters.6de0b7d2.js";import{T as Pt,a as qt}from"../chunks/table-header-row.b9d52458.js";import{C as Ne}from"../chunks/code-block.c6eabdb8.js";import{E as At}from"../chunks/empty-state.64fbab21.js";import{P as Ct}from"../chunks/pagination.a81dd55b.js";import{g as Nt}from"../chunks/navigation.83f47780.js";import{B as Ft}from"../chunks/button.c09134bf.js";import{I as Wt}from"../chunks/input.828c22e1.js";import{F as ze}from"../chunks/pagination.a85cd038.js";import{S as Dt,a as ge}from"../chunks/simple-select.4e19902f.js";import{I as Lt}from"../chunks/icon.33308831.js";const Ht=async function({params:a,url:e}){var i,_,S,b,C,Q,O,M;const{searchParams:r}=e;r.has("time-range")||r.set("time-range","1 day");const t=r.get("workflow-id"),l=r.get("workflow-type"),n=r.get("time-range"),f=r.get("status"),o=await st(a.namespace),s=(S=(_=(i=o.config)==null?void 0:i.historyArchivalUri)==null?void 0:_.toLowerCase())==null?void 0:S.startsWith("s3://"),c=(Q=(C=(b=o.config)==null?void 0:b.historyArchivalUri)==null?void 0:C.toLowerCase())==null?void 0:Q.startsWith("gs://"),u=s||c,p=u?{}:{workflowId:t,workflowType:l,closeTime:n,executionStatus:f},$=((O=o==null?void 0:o.config)==null?void 0:O.historyArchivalState)==="Enabled",h=((M=o==null?void 0:o.config)==null?void 0:M.visibilityArchivalState)==="Enabled",d=$&&h?await nt(a.namespace,p,fetch):null;return{workflows:d?d.workflows:[],namespace:o,archivalEnabled:$,visibilityArchivalEnabled:h,archivalQueryingNotSupported:u}},nr=Object.freeze(Object.defineProperty({__proto__:null,load:Ht},Symbol.toStringTag,{value:"Module"})),Ie=a=>e=>e.toLowerCase()===a.toLowerCase(),Ee=(a,e)=>a[e+2],jt=a=>{if(a){for(const e of Et)if(a[e])return{[e]:a[e]}}},Bt=Ie("WorkflowType"),Ot=Ie("WorkflowId"),Rt=Ie("StartTime"),Ut=Ie("ExecutionStatus"),Qt=a=>{const e=gt(a),r={workflowId:"",workflowType:"",executionStatus:null,timeRange:null};return e.forEach((t,l)=>{if(Ot(t)&&(r.workflowId=Ee(e,l)),Bt(t)&&(r.workflowType=Ee(e,l)),Ut(t)){const n=Ee(e,l);St(n)&&(r.executionStatus=n)}if(Rt(t)){const n=Ee(e,l);try{const f=yt(n),o=jt(f);r.timeRange=Tt(o)}catch(f){console.error("Error parsing StartTime from query",f)}}}),r};function Mt(a){let e=a[0].id+"",r;return{c(){r=I(e)},l(t){r=P(t,e)},m(t,l){g(t,r,l)},p(t,l){l&1&&e!==(e=t[0].id+"")&&le(r,e)},d(t){t&&m(r)}}}function zt(a){var We,De,Le;let e,r,t,l,n,f,o,s,c,u=te(a[0].startTime,a[4],{relative:a[5]})+"",p,$,h,d,i=T("workflows.workflow-name")+"",_,S,b,C,Q=a[0].name+"",O,M,K,R,ue,ee,ce=te(a[0].endTime,a[4],{relative:a[5]})+"",be,ke,re,me,pe=te(a[0].startTime,a[4],{relative:a[5]})+"",ve,ye,ae,_e,$e=te(a[0].endTime,a[4],{relative:a[5]})+"",Te,V,Pe,Fe;return r=new wt({props:{status:a[0].status,delay:Qe(a[0].startTime)}}),n=new Ce({props:{href:a[2],$$slots:{default:[Mt]},$$scope:{ctx:a}}}),o=new Ue({props:{copyIconTitle:T("common.copy-icon-title"),copySuccessIconTitle:T("common.copy-success-icon-title"),filterIconTitle:T("common.filter-workflows"),show:a[1],content:a[0].id,filterable:!1}}),R=new Ue({props:{copyIconTitle:T("common.copy-icon-title"),copySuccessIconTitle:T("common.copy-success-icon-title"),filterIconTitle:T("common.filter-workflows"),show:a[1],content:a[0].name,onFilter:a[13],filtered:(Le=(De=(We=a[3].url)==null?void 0:We.searchParams)==null?void 0:De.get("query"))==null?void 0:Le.includes(a[0].name)}}),{c(){e=q("td"),D(r.$$.fragment),t=F(),l=q("td"),D(n.$$.fragment),f=F(),D(o.$$.fragment),s=F(),c=q("p"),p=I(u),$=F(),h=q("td"),d=q("h3"),_=I(i),S=I(":"),b=F(),C=q("button"),O=I(Q),K=F(),D(R.$$.fragment),ue=F(),ee=q("p"),be=I(ce),ke=F(),re=q("td"),me=q("p"),ve=I(pe),ye=F(),ae=q("td"),_e=q("p"),Te=I($e),this.h()},l(w){e=A(w,"TD",{});var B=N(e);L(r.$$.fragment,B),B.forEach(m),t=W(w),l=A(w,"TD",{class:!0});var J=N(l);L(n.$$.fragment,J),f=W(J),L(o.$$.fragment,J),s=W(J),c=A(J,"P",{class:!0});var se=N(c);p=P(se,u),se.forEach(m),J.forEach(m),$=W(w),h=A(w,"TD",{class:!0});var z=N(h);d=A(z,"H3",{class:!0});var X=N(d);_=P(X,i),S=P(X,":"),X.forEach(m),b=W(z),C=A(z,"BUTTON",{class:!0,"aria-label":!0});var he=N(C);O=P(he,Q),he.forEach(m),K=W(z),L(R.$$.fragment,z),ue=W(z),ee=A(z,"P",{class:!0});var de=N(ee);be=P(de,ce),de.forEach(m),z.forEach(m),ke=W(w),re=A(w,"TD",{class:!0});var we=N(re);me=A(we,"P",{});var He=N(me);ve=P(He,pe),He.forEach(m),we.forEach(m),ye=W(w),ae=A(w,"TD",{class:!0});var je=N(ae);_e=A(je,"P",{});var Be=N(_e);Te=P(Be,$e),Be.forEach(m),je.forEach(m),this.h()},h(){E(c,"class","inline-time-cell svelte-tyqpjy"),E(l,"class","relative break-words pr-4"),E(d,"class","md:hidden"),E(C,"class","table-link svelte-tyqpjy"),E(C,"aria-label",M=T("workflows.filter-by",{workflowName:a[0].name})),E(ee,"class","inline-time-cell svelte-tyqpjy"),E(h,"class","relative truncate"),E(re,"class","time-cell svelte-tyqpjy"),E(ae,"class","time-cell svelte-tyqpjy")},m(w,B){g(w,e,B),H(r,e,null),g(w,t,B),g(w,l,B),H(n,l,null),v(l,f),H(o,l,null),v(l,s),v(l,c),v(c,p),g(w,$,B),g(w,h,B),v(h,d),v(d,_),v(d,S),v(h,b),v(h,C),v(C,O),v(h,K),H(R,h,null),v(h,ue),v(h,ee),v(ee,be),g(w,ke,B),g(w,re,B),v(re,me),v(me,ve),g(w,ye,B),g(w,ae,B),v(ae,_e),v(_e,Te),V=!0,Pe||(Fe=[G(l,"mouseover",a[8]),G(l,"focus",a[9]),G(l,"mouseleave",a[10]),G(l,"blur",a[11]),G(C,"click",tt(lt(a[12]))),G(h,"mouseover",a[14]),G(h,"focus",a[15]),G(h,"mouseleave",a[16]),G(h,"blur",a[17])],Pe=!0)},p(w,B){var he,de,we;const J={};B&1&&(J.status=w[0].status),B&1&&(J.delay=Qe(w[0].startTime)),r.$set(J);const se={};B&4&&(se.href=w[2]),B&262145&&(se.$$scope={dirty:B,ctx:w}),n.$set(se);const z={};B&2&&(z.show=w[1]),B&1&&(z.content=w[0].id),o.$set(z),(!V||B&49)&&u!==(u=te(w[0].startTime,w[4],{relative:w[5]})+"")&&le(p,u),(!V||B&1)&&Q!==(Q=w[0].name+"")&&le(O,Q),(!V||B&1&&M!==(M=T("workflows.filter-by",{workflowName:w[0].name})))&&E(C,"aria-label",M);const X={};B&2&&(X.show=w[1]),B&1&&(X.content=w[0].name),B&1&&(X.onFilter=w[13]),B&9&&(X.filtered=(we=(de=(he=w[3].url)==null?void 0:he.searchParams)==null?void 0:de.get("query"))==null?void 0:we.includes(w[0].name)),R.$set(X),(!V||B&49)&&ce!==(ce=te(w[0].endTime,w[4],{relative:w[5]})+"")&&le(be,ce),(!V||B&49)&&pe!==(pe=te(w[0].startTime,w[4],{relative:w[5]})+"")&&le(ve,pe),(!V||B&49)&&$e!==($e=te(w[0].endTime,w[4],{relative:w[5]})+"")&&le(Te,$e)},i(w){V||(k(r.$$.fragment,w),k(n.$$.fragment,w),k(o.$$.fragment,w),k(R.$$.fragment,w),V=!0)},o(w){y(r.$$.fragment,w),y(n.$$.fragment,w),y(o.$$.fragment,w),y(R.$$.fragment,w),V=!1},d(w){w&&m(e),j(r),w&&m(t),w&&m(l),j(n),j(o),w&&m($),w&&m(h),j(R),w&&m(ke),w&&m(re),w&&m(ye),w&&m(ae),Pe=!1,rt(Fe)}}}function Gt(a){let e,r;return e=new kt({props:{class:"workflow-summary-row",$$slots:{default:[zt]},$$scope:{ctx:a}}}),{c(){D(e.$$.fragment)},l(t){L(e.$$.fragment,t)},m(t,l){H(e,t,l),r=!0},p(t,[l]){const n={};l&262207&&(n.$$scope={dirty:l,ctx:t}),e.$set(n)},i(t){r||(k(e.$$.fragment,t),r=!0)},o(t){y(e.$$.fragment,t),r=!1},d(t){j(e,t)}}}function Kt(a,e,r){let t,l,n,f;oe(a,Se,O=>r(3,l=O)),oe(a,Ae,O=>r(4,n=O)),oe(a,vt,O=>r(5,f=O));let{namespace:o}=e,{workflow:s}=e,c=!1;const u=O=>{const M=Oe({timeRange:"All"}),K=l.url.searchParams.get("query"),R=Qt(K??M),ue=(R==null?void 0:R.workflowType)===O?"":O,ee=Oe({...R,workflowType:ue});ot({url:l.url,parameter:"query",value:ee,allowEmpty:!0})},p=()=>r(1,c=!0),$=()=>r(1,c=!0),h=()=>r(1,c=!1),d=()=>r(1,c=!1),i=()=>u(s.name),_=()=>u(s.name),S=()=>r(1,c=!0),b=()=>r(1,c=!0),C=()=>r(1,c=!1),Q=()=>r(1,c=!1);return a.$$set=O=>{"namespace"in O&&r(7,o=O.namespace),"workflow"in O&&r(0,s=O.workflow)},a.$$.update=()=>{a.$$.dirty&129&&r(2,t=It({namespace:o,workflow:s.id,run:s.runId}))},[s,c,t,l,n,f,u,o,p,$,h,d,i,_,S,b,C,Q]}class Vt extends ne{constructor(e){super(),fe(this,e,Kt,Gt,ie,{namespace:7,workflow:0})}}function Jt(a){let e;const r=a[1].default,t=ft(r,a,a[2],null);return{c(){t&&t.c()},l(l){t&&t.l(l)},m(l,n){t&&t.m(l,n),e=!0},p(l,n){t&&t.p&&(!e||n&4)&&it(t,r,l,l[2],e?ct(r,l[2],n,null):ut(l[2]),null)},i(l){e||(k(t,l),e=!0)},o(l){y(t,l),e=!1},d(l){t&&t.d(l)}}}function Zt(a){let e,r;return{c(){e=q("caption"),r=I("Workflows"),this.h()},l(t){e=A(t,"CAPTION",{class:!0,slot:!0});var l=N(e);r=P(l,"Workflows"),l.forEach(m),this.h()},h(){E(e,"class","sr-only"),E(e,"slot","caption")},m(t,l){g(t,e,l),v(e,r)},p:Z,d(t){t&&m(e)}}}function Xt(a){let e,r,t,l,n,f,o,s,c,u,p,$,h,d,i,_,S;return{c(){e=q("th"),r=I("Status"),t=F(),l=q("th"),n=I("Workflow ID"),f=F(),o=q("th"),s=I("Type"),c=F(),u=q("th"),p=I("Start"),$=F(),h=q("th"),d=I("End"),i=F(),_=q("th"),S=I("Summary"),this.h()},l(b){e=A(b,"TH",{class:!0});var C=N(e);r=P(C,"Status"),C.forEach(m),t=W(b),l=A(b,"TH",{class:!0});var Q=N(l);n=P(Q,"Workflow ID"),Q.forEach(m),f=W(b),o=A(b,"TH",{class:!0});var O=N(o);s=P(O,"Type"),O.forEach(m),c=W(b),u=A(b,"TH",{class:!0});var M=N(u);p=P(M,"Start"),M.forEach(m),$=W(b),h=A(b,"TH",{class:!0});var K=N(h);d=P(K,"End"),K.forEach(m),i=W(b),_=A(b,"TH",{class:!0,colspan:!0});var R=N(_);S=P(R,"Summary"),R.forEach(m),this.h()},h(){E(e,"class","w-32 max-md:hidden"),E(l,"class","max-md:hidden md:w-auto"),E(o,"class","w-60 max-md:hidden"),E(u,"class","w-60 max-xl:hidden"),E(h,"class","w-60 max-xl:hidden"),E(_,"class","md:hidden"),E(_,"colspan","3")},m(b,C){g(b,e,C),v(e,r),g(b,t,C),g(b,l,C),v(l,n),g(b,f,C),g(b,o,C),v(o,s),g(b,c,C),g(b,u,C),v(u,p),g(b,$,C),g(b,h,C),v(h,d),g(b,i,C),g(b,_,C),v(_,S)},p:Z,d(b){b&&m(e),b&&m(t),b&&m(l),b&&m(f),b&&m(o),b&&m(c),b&&m(u),b&&m($),b&&m(h),b&&m(i),b&&m(_)}}}function Yt(a){let e,r;return e=new qt({props:{slot:"headers",$$slots:{default:[Xt]},$$scope:{ctx:a}}}),{c(){D(e.$$.fragment)},l(t){L(e.$$.fragment,t)},m(t,l){H(e,t,l),r=!0},p(t,l){const n={};l&4&&(n.$$scope={dirty:l,ctx:t}),e.$set(n)},i(t){r||(k(e.$$.fragment,t),r=!0)},o(t){y(e.$$.fragment,t),r=!1},d(t){j(e,t)}}}function xt(a){let e,r;return e=new Pt({props:{class:"w-full md:table-fixed",updating:a[0],"data-testid":"workflows-table",$$slots:{headers:[Yt],caption:[Zt],default:[Jt]},$$scope:{ctx:a}}}),{c(){D(e.$$.fragment)},l(t){L(e.$$.fragment,t)},m(t,l){H(e,t,l),r=!0},p(t,[l]){const n={};l&1&&(n.updating=t[0]),l&4&&(n.$$scope={dirty:l,ctx:t}),e.$set(n)},i(t){r||(k(e.$$.fragment,t),r=!0)},o(t){y(e.$$.fragment,t),r=!1},d(t){j(e,t)}}}function el(a,e,r){let{$$slots:t={},$$scope:l}=e,{updating:n=!1}=e;return a.$$set=f=>{"updating"in f&&r(0,n=f.updating),"$$scope"in f&&r(2,l=f.$$scope)},[n,t,l]}class tl extends ne{constructor(e){super(),fe(this,e,el,xt,ie,{updating:0})}}function ll(a){let e;return{c(){e=I(a[2])},l(r){e=P(r,a[2])},m(r,t){g(r,e,t)},p(r,t){t&4&&le(e,r[2])},d(r){r&&m(e)}}}function rl(a){let e,r,t,l,n,f,o;return r=new Wt({props:{class:"w-full",unroundRight:!0,label:a[2],id:a[5],labelHidden:!0,icon:a[4]?"search":null,type:"search",name:a[3],value:a[1],placeholder:a[0],autocomplete:"off"}}),r.$on("input",a[7]),l=new Ft({props:{borderRadiusModifier:"square-left",type:"submit",$$slots:{default:[ll]},$$scope:{ctx:a}}}),{c(){e=q("form"),D(r.$$.fragment),t=F(),D(l.$$.fragment),this.h()},l(s){e=A(s,"FORM",{role:!0,class:!0});var c=N(e);L(r.$$.fragment,c),t=W(c),L(l.$$.fragment,c),c.forEach(m),this.h()},h(){E(e,"role","search"),E(e,"class","flex items-center")},m(s,c){g(s,e,c),H(r,e,null),v(e,t),H(l,e,null),n=!0,f||(o=G(e,"submit",lt(a[6])),f=!0)},p(s,[c]){const u={};c&4&&(u.label=s[2]),c&32&&(u.id=s[5]),c&16&&(u.icon=s[4]?"search":null),c&8&&(u.name=s[3]),c&2&&(u.value=s[1]),c&1&&(u.placeholder=s[0]),r.$set(u);const p={};c&260&&(p.$$scope={dirty:c,ctx:s}),l.$set(p)},i(s){n||(k(r.$$.fragment,s),k(l.$$.fragment,s),n=!0)},o(s){y(r.$$.fragment,s),y(l.$$.fragment,s),n=!1},d(s){s&&m(e),j(r),j(l),f=!1,o()}}}function al(a,e,r){let{placeholder:t=""}=e,{value:l=""}=e,{label:n=T("common.search")}=e,{name:f="query"}=e,{icon:o=!1}=e,{id:s=`${n.toLocaleUpperCase()}-input`}=e;function c(p){qe.call(this,a,p)}function u(p){qe.call(this,a,p)}return a.$$set=p=>{"placeholder"in p&&r(0,t=p.placeholder),"value"in p&&r(1,l=p.value),"label"in p&&r(2,n=p.label),"name"in p&&r(3,f=p.name),"icon"in p&&r(4,o=p.icon),"id"in p&&r(5,s=p.id)},[t,l,n,f,o,s,c,u]}class ol extends ne{constructor(e){super(),fe(this,e,al,rl,ie,{placeholder:0,value:1,label:2,name:3,icon:4,id:5})}}function sl(a){let e,r,t,l,n,f,o,s,c,u,p;return f=new Lt({props:{name:"search",class:"flex items-center text-gray-700"}}),{c(){e=q("div"),r=q("label"),t=I(a[0]),l=F(),n=q("span"),D(f.$$.fragment),o=F(),s=q("input"),this.h()},l($){e=A($,"DIV",{class:!0});var h=N(e);r=A(h,"LABEL",{for:!0,class:!0});var d=N(r);t=P(d,a[0]),d.forEach(m),l=W(h),n=A(h,"SPAN",{class:!0});var i=N(n);L(f.$$.fragment,i),i.forEach(m),o=W(h),s=A(h,"INPUT",{type:!0,class:!0,placeholder:!0,id:!0}),h.forEach(m),this.h()},h(){E(r,"for",a[2]),E(r,"class","hidden"),E(n,"class","svelte-fxm0nn"),E(s,"type","search"),E(s,"class","block w-full focus:outline-none"),E(s,"placeholder",a[0]),E(s,"id",a[2]),E(e,"class","input-container bg-white focus-within:border-blue-700 svelte-fxm0nn")},m($,h){g($,e,h),v(e,r),v(r,t),v(e,l),v(e,n),H(f,n,null),v(e,o),v(e,s),Re(s,a[1]),c=!0,u||(p=[G(s,"input",a[7]),G(s,"keydown",tt(a[6]))],u=!0)},p($,[h]){(!c||h&1)&&le(t,$[0]),(!c||h&1)&&E(s,"placeholder",$[0]),h&2&&Re(s,$[1])},i($){c||(k(f.$$.fragment,$),c=!0)},o($){y(f.$$.fragment,$),c=!1},d($){$&&m(e),j(f),u=!1,rt(p)}}}function nl(a,e,r){let t;oe(a,Se,$=>r(5,t=$));let{parameter:l}=e,{name:n}=e,{value:f}=e,o=l&&t.url.searchParams.get(l)||f;const s=`${l||n}-filter`,c=bt(ot,300);function u($){qe.call(this,a,$)}function p(){o=this.value,r(1,o)}return a.$$set=$=>{"parameter"in $&&r(3,l=$.parameter),"name"in $&&r(0,n=$.name),"value"in $&&r(4,f=$.value)},a.$$.update=()=>{a.$$.dirty&42&&c({parameter:l,value:o,url:t.url})},[n,o,s,l,f,t,u,p]}class Ge extends ne{constructor(e){super(),fe(this,e,nl,sl,ie,{parameter:3,name:0,value:4})}}function Ke(a,e,r){const t=a.slice();return t[6]=e[r].value,t[7]=e[r].label,t}function Ve(a,e,r){const t=a.slice();return t[6]=e[r],t}function fl(a){let e,r;return e=new Ce({props:{href:`${a[0].url.pathname}?query=`,$$slots:{default:[ul]},$$scope:{ctx:a}}}),{c(){D(e.$$.fragment)},l(t){L(e.$$.fragment,t)},m(t,l){H(e,t,l),r=!0},p(t,l){const n={};l&1&&(n.href=`${t[0].url.pathname}?query=`),l&4096&&(n.$$scope={dirty:l,ctx:t}),e.$set(n)},i(t){r||(k(e.$$.fragment,t),r=!0)},o(t){y(e.$$.fragment,t),r=!1},d(t){j(e,t)}}}function il(a){let e,r;return e=new Ce({props:{href:a[0].url.pathname,$$slots:{default:[cl]},$$scope:{ctx:a}}}),{c(){D(e.$$.fragment)},l(t){L(e.$$.fragment,t)},m(t,l){H(e,t,l),r=!0},p(t,l){const n={};l&1&&(n.href=t[0].url.pathname),l&4096&&(n.$$scope={dirty:l,ctx:t}),e.$set(n)},i(t){r||(k(e.$$.fragment,t),r=!0)},o(t){y(e.$$.fragment,t),r=!1},d(t){j(e,t)}}}function ul(a){let e=T("workflows.advanced-search")+"",r;return{c(){r=I(e)},l(t){r=P(t,e)},m(t,l){g(t,r,l)},p:Z,d(t){t&&m(r)}}}function cl(a){let e=T("workflows.basic-search")+"",r;return{c(){r=I(e)},l(t){r=P(t,e)},m(t,l){g(t,r,l)},p:Z,d(t){t&&m(r)}}}function ml(a){let e,r,t,l,n,f,o,s,c,u,p,$;r=new Ge({props:{parameter:"workflow-id",name:T("common.workflow-id"),value:yl}}),l=new Ge({props:{parameter:"workflow-type",name:T("common.workflow-type"),value:Tl}}),f=new ze({props:{label:T("workflows.time-range"),parameter:"time-range",value:"24 hours",$$slots:{default:[$l]},$$scope:{ctx:a}}}),s=new ze({props:{label:T("common.status"),parameter:"status",value:null,$$slots:{default:[dl]},$$scope:{ctx:a}}});function h(i){a[5](i)}let d={id:"filter-by-relative-time",$$slots:{default:[kl]},$$scope:{ctx:a}};return a[2]!==void 0&&(d.value=a[2]),u=new Dt({props:d}),mt.push(()=>pt(u,"value",h)),{c(){e=q("div"),D(r.$$.fragment),t=F(),D(l.$$.fragment),n=F(),D(f.$$.fragment),o=F(),D(s.$$.fragment),c=F(),D(u.$$.fragment),this.h()},l(i){e=A(i,"DIV",{class:!0,role:!0});var _=N(e);L(r.$$.fragment,_),t=W(_),L(l.$$.fragment,_),n=W(_),L(f.$$.fragment,_),o=W(_),L(s.$$.fragment,_),c=W(_),L(u.$$.fragment,_),_.forEach(m),this.h()},h(){E(e,"class","grid grid-cols-1 gap-4 sm:grid-cols-2 md:grid-cols-5"),E(e,"role","search")},m(i,_){g(i,e,_),H(r,e,null),v(e,t),H(l,e,null),v(e,n),H(f,e,null),v(e,o),H(s,e,null),v(e,c),H(u,e,null),$=!0},p(i,_){const S={};_&4096&&(S.$$scope={dirty:_,ctx:i}),f.$set(S);const b={};_&4096&&(b.$$scope={dirty:_,ctx:i}),s.$set(b);const C={};_&4096&&(C.$$scope={dirty:_,ctx:i}),!p&&_&4&&(p=!0,C.value=i[2],_t(()=>p=!1)),u.$set(C)},i(i){$||(k(r.$$.fragment,i),k(l.$$.fragment,i),k(f.$$.fragment,i),k(s.$$.fragment,i),k(u.$$.fragment,i),$=!0)},o(i){y(r.$$.fragment,i),y(l.$$.fragment,i),y(f.$$.fragment,i),y(s.$$.fragment,i),y(u.$$.fragment,i),$=!1},d(i){i&&m(e),j(r),j(l),j(f),j(s),j(u)}}}function pl(a){let e,r;return e=new ol({props:{icon:!0,placeholder:T("common.search"),value:a[0].url.searchParams.get("query")}}),e.$on("submit",a[4]),{c(){D(e.$$.fragment)},l(t){L(e.$$.fragment,t)},m(t,l){H(e,t,l),r=!0},p(t,l){const n={};l&1&&(n.value=t[0].url.searchParams.get("query")),e.$set(n)},i(t){r||(k(e.$$.fragment,t),r=!0)},o(t){y(e.$$.fragment,t),r=!1},d(t){j(e,t)}}}function _l(a){let e=a[6]+"",r;return{c(){r=I(e)},l(t){r=P(t,e)},m(t,l){g(t,r,l)},p:Z,d(t){t&&m(r)}}}function Je(a){let e,r;return e=new ge({props:{value:a[6],$$slots:{default:[_l]},$$scope:{ctx:a}}}),{c(){D(e.$$.fragment)},l(t){L(e.$$.fragment,t)},m(t,l){H(e,t,l),r=!0},p(t,l){const n={};l&4096&&(n.$$scope={dirty:l,ctx:t}),e.$set(n)},i(t){r||(k(e.$$.fragment,t),r=!0)},o(t){y(e.$$.fragment,t),r=!1},d(t){j(e,t)}}}function $l(a){let e,r,t=Me,l=[];for(let f=0;fy(l[f],1,1,()=>{l[f]=null});return{c(){for(let f=0;fo[7];for(let o=0;o{u[S]=null}),x(),l=u[t],l?l.p(i,_):(l=u[t]=c[t](i),l.c()),k(l,1),l.m(r,null));let b=f;f=d(i),f===b?h[f].p(i,_):(Y(),y(h[b],1,1,()=>{h[b]=null}),x(),o=h[f],o?o.p(i,_):(o=h[f]=$[f](i),o.c()),k(o,1),o.m(e,null))},i(i){s||(k(l),k(o),s=!0)},o(i){y(l),y(o),s=!1},d(i){i&&m(e),u[t].d(),h[f].d()}}}let yl="",Tl="";function El(a,e,r){let t,l,n;oe(a,Se,c=>r(0,l=c)),oe(a,Ae,c=>r(2,n=c));const f={All:{value:null,label:T("workflows.all-statuses")},"Timed Out":{value:"TimedOut",label:T("workflows.timed-out")},Completed:{value:"Completed",label:T("workflows.completed")},Failed:{value:"Failed",label:T("workflows.failed")},"Continued as New":{value:"ContinuedAsNew",label:T("workflows.continued-as-new")},Canceled:{value:"Canceled",label:T("workflows.canceled")},Terminated:{value:"Terminated",label:T("workflows.terminated")}},o=c=>{const p=new FormData(c.target).get("query");l.url.searchParams.set("query",String(p)),Nt(l.url.toString())};function s(c){n=c,Ae.set(n)}return a.$$.update=()=>{a.$$.dirty&1&&r(1,t=l.url.searchParams.has("query"))},[l,t,n,f,o,s]}class Sl extends ne{constructor(e){super(),fe(this,e,El,vl,ie,{})}}function Xe(a,e,r){const t=a.slice();return t[8]=e[r],t}function Il(a){let e,r=T("workflows.archival-disabled-title")+"",t,l,n,f=T("workflows.archival-disabled-details")+"",o,s,c,u,p,$,h;u=new Ne({props:{content:`temporal operator namespace update --history-archival-state enabled ${a[4]}`,language:"text",inline:!0,copyIconTitle:T("common.copy-icon-title"),copySuccessIconTitle:T("common.copy-success-icon-title")}});let d=!a[1]&&Ye(a);return{c(){e=q("h1"),t=I(r),l=F(),n=q("p"),o=I(f),s=I(":"),c=F(),D(u.$$.fragment),p=F(),d&&d.c(),$=U(),this.h()},l(i){e=A(i,"H1",{class:!0,"data-testid":!0});var _=N(e);t=P(_,r),_.forEach(m),l=W(i),n=A(i,"P",{});var S=N(n);o=P(S,f),s=P(S,":"),S.forEach(m),c=W(i),L(u.$$.fragment,i),p=W(i),d&&d.l(i),$=U(),this.h()},h(){E(e,"class","text-2xl"),E(e,"data-testid","archived-disabled-title")},m(i,_){g(i,e,_),v(e,t),g(i,l,_),g(i,n,_),v(n,o),v(n,s),g(i,c,_),H(u,i,_),g(i,p,_),d&&d.m(i,_),g(i,$,_),h=!0},p(i,_){const S={};_&16&&(S.content=`temporal operator namespace update --history-archival-state enabled ${i[4]}`),u.$set(S),i[1]?d&&(Y(),y(d,1,1,()=>{d=null}),x()):d?(d.p(i,_),_&2&&k(d,1)):(d=Ye(i),d.c(),k(d,1),d.m($.parentNode,$))},i(i){h||(k(u.$$.fragment,i),k(d),h=!0)},o(i){y(u.$$.fragment,i),y(d),h=!1},d(i){i&&m(e),i&&m(l),i&&m(n),i&&m(c),j(u,i),i&&m(p),d&&d.d(i),i&&m($)}}}function Pl(a){let e,r=T("workflows.visibility-disabled-archival")+"",t,l,n,f=T("workflows.archival-link-preface")+"",o,s,c=T("workflows.archival-link")+"",u,p,$,h,d;return h=new Ne({props:{content:`temporal operator namespace update --visibility-archival-state enabled ${a[4]}`,language:"text",inline:!0,copyIconTitle:T("common.copy-icon-title"),copySuccessIconTitle:T("common.copy-success-icon-title")}}),{c(){e=q("h1"),t=I(r),l=F(),n=q("p"),o=I(f),s=q("a"),u=I(c),p=I(":"),$=F(),D(h.$$.fragment),this.h()},l(i){e=A(i,"H1",{class:!0,"data-testid":!0});var _=N(e);t=P(_,r),_.forEach(m),l=W(i),n=A(i,"P",{});var S=N(n);o=P(S,f),s=A(S,"A",{class:!0,href:!0,target:!0,rel:!0});var b=N(s);u=P(b,c),b.forEach(m),p=P(S,":"),S.forEach(m),$=W(i),L(h.$$.fragment,i),this.h()},h(){E(e,"class","text-2xl"),E(e,"data-testid","visibility-disabled-title"),E(s,"class","text-blue-700 underline"),E(s,"href","https://docs.temporal.io/clusters#archival"),E(s,"target","_blank"),E(s,"rel","noreferrer")},m(i,_){g(i,e,_),v(e,t),g(i,l,_),g(i,n,_),v(n,o),v(n,s),v(s,u),v(n,p),g(i,$,_),H(h,i,_),d=!0},p(i,_){const S={};_&16&&(S.content=`temporal operator namespace update --visibility-archival-state enabled ${i[4]}`),h.$set(S)},i(i){d||(k(h.$$.fragment,i),d=!0)},o(i){y(h.$$.fragment,i),d=!1},d(i){i&&m(e),i&&m(l),i&&m(n),i&&m($),j(h,i)}}}function ql(a){let e,r=T("workflows.archived-workflows")+"",t,l,n,f,o,s,c,u=!a[0]&&xe();const p=[Cl,Al],$=[];function h(d,i){var _;return(_=d[3])!=null&&_.length?0:1}return f=h(a),o=$[f]=p[f](a),{c(){e=q("h1"),t=I(r),l=F(),u&&u.c(),n=F(),o.c(),s=U(),this.h()},l(d){e=A(d,"H1",{class:!0,"data-testid":!0});var i=N(e);t=P(i,r),i.forEach(m),l=W(d),u&&u.l(d),n=W(d),o.l(d),s=U(),this.h()},h(){E(e,"class","text-2xl"),E(e,"data-testid","archived-enabled-title")},m(d,i){g(d,e,i),v(e,t),g(d,l,i),u&&u.m(d,i),g(d,n,i),$[f].m(d,i),g(d,s,i),c=!0},p(d,i){d[0]?u&&(Y(),y(u,1,1,()=>{u=null}),x()):u?i&1&&k(u,1):(u=xe(),u.c(),k(u,1),u.m(n.parentNode,n));let _=f;f=h(d),f===_?$[f].p(d,i):(Y(),y($[_],1,1,()=>{$[_]=null}),x(),o=$[f],o?o.p(d,i):(o=$[f]=p[f](d),o.c()),k(o,1),o.m(s.parentNode,s))},i(d){c||(k(u),k(o),c=!0)},o(d){y(u),y(o),c=!1},d(d){d&&m(e),d&&m(l),u&&u.d(d),d&&m(n),$[f].d(d),d&&m(s)}}}function Ye(a){let e,r=T("workflows.archival-link-preface")+"",t,l,n=T("workflows.archival-link")+"",f,o,s,c,u;return c=new Ne({props:{content:`temporal operator namespace update --visibility-archival-state enabled ${a[4]}`,language:"text",inline:!0,copyIconTitle:T("common.copy-icon-title"),copySuccessIconTitle:T("common.copy-success-icon-title")}}),{c(){e=q("p"),t=I(r),l=q("a"),f=I(n),o=I(":"),s=F(),D(c.$$.fragment),this.h()},l(p){e=A(p,"P",{});var $=N(e);t=P($,r),l=A($,"A",{class:!0,href:!0,target:!0,rel:!0});var h=N(l);f=P(h,n),h.forEach(m),o=P($,":"),$.forEach(m),s=W(p),L(c.$$.fragment,p),this.h()},h(){E(l,"class","text-blue-700 underline"),E(l,"href","https://docs.temporal.io/clusters#archival"),E(l,"target","_blank"),E(l,"rel","noreferrer")},m(p,$){g(p,e,$),v(e,t),v(e,l),v(l,f),v(e,o),g(p,s,$),H(c,p,$),u=!0},p(p,$){const h={};$&16&&(h.content=`temporal operator namespace update --visibility-archival-state enabled ${p[4]}`),c.$set(h)},i(p){u||(k(c.$$.fragment,p),u=!0)},o(p){y(c.$$.fragment,p),u=!1},d(p){p&&m(e),p&&m(s),j(c,p)}}}function xe(a){let e,r;return e=new Sl({}),{c(){D(e.$$.fragment)},l(t){L(e.$$.fragment,t)},m(t,l){H(e,t,l),r=!0},i(t){r||(k(e.$$.fragment,t),r=!0)},o(t){y(e.$$.fragment,t),r=!1},d(t){j(e,t)}}}function Al(a){let e,r;return e=new At({props:{title:T("workflows.workflow-empty-state-title"),content:T("workflows.archival-empty-state-description")}}),{c(){D(e.$$.fragment)},l(t){L(e.$$.fragment,t)},m(t,l){H(e,t,l),r=!0},p:Z,i(t){r||(k(e.$$.fragment,t),r=!0)},o(t){y(e.$$.fragment,t),r=!1},d(t){j(e,t)}}}function Cl(a){let e,r;return e=new Ct({props:{items:a[3],"aria-label":T("workflows.archived-workflows"),pageSizeSelectLabel:T("common.per-page"),previousButtonLabel:T("common.previous"),nextButtonLabel:T("common.next"),$$slots:{default:[Fl,({visibleItems:t})=>({7:t}),({visibleItems:t})=>t?128:0]},$$scope:{ctx:a}}}),{c(){D(e.$$.fragment)},l(t){L(e.$$.fragment,t)},m(t,l){H(e,t,l),r=!0},p(t,l){const n={};l&8&&(n.items=t[3]),l&2192&&(n.$$scope={dirty:l,ctx:t}),e.$set(n)},i(t){r||(k(e.$$.fragment,t),r=!0)},o(t){y(e.$$.fragment,t),r=!1},d(t){j(e,t)}}}function et(a){let e,r;return e=new Vt({props:{workflow:a[8],namespace:a[4]}}),{c(){D(e.$$.fragment)},l(t){L(e.$$.fragment,t)},m(t,l){H(e,t,l),r=!0},p(t,l){const n={};l&128&&(n.workflow=t[8]),l&16&&(n.namespace=t[4]),e.$set(n)},i(t){r||(k(e.$$.fragment,t),r=!0)},o(t){y(e.$$.fragment,t),r=!1},d(t){j(e,t)}}}function Nl(a){let e,r,t=a[7],l=[];for(let f=0;fy(l[f],1,1,()=>{l[f]=null});return{c(){for(let f=0;f{s[h]=null}),x(),l=s[t],l?l.p(u,p):(l=s[t]=o[t](u),l.c()),k(l,1),l.m(n.parentNode,n))},i(u){f||(k(e.$$.fragment,u),k(l),f=!0)},o(u){y(e.$$.fragment,u),y(l),f=!1},d(u){j(e,u),u&&m(r),s[t].d(u),u&&m(n)}}}function Dl(a,e,r){let t,l,n,f,o,s;oe(a,Se,u=>r(5,s=u));let{data:c}=e;return a.$$set=u=>{"data"in u&&r(6,c=u.data)},a.$$.update=()=>{a.$$.dirty&64&&r(4,{namespace:{namespaceInfo:{name:t}},workflows:l,archivalEnabled:n,visibilityArchivalEnabled:f,archivalQueryingNotSupported:o}=c,t,(r(3,l),r(6,c)),(r(2,n),r(6,c)),(r(1,f),r(6,c)),(r(0,o),r(6,c)))},[o,f,n,l,t,s,c]}class fr extends ne{constructor(e){super(),fe(this,e,Dl,Wl,ie,{data:6})}}export{fr as component,nr as universal}; +import{a as st}from"../chunks/namespaces-service.db387b71.js";import{e as nt,g as Oe}from"../chunks/workflow-service.bd668cd0.js";import{S as ne,b as fe,a as ie,C as D,D as L,E as H,j as k,g as y,F as j,K as oe,m as q,c as F,w as I,p as A,q as N,k as m,d as W,x as P,u as E,f as g,L as v,M as G,_ as tt,ag as lt,y as le,r as rt,G as ft,H as it,I as ut,J as ct,n as Z,$ as qe,Z as Re,z as Y,h as x,A as mt,a0 as pt,a1 as _t,e as U,a7 as at,aa as $t,ab as ht}from"../chunks/index.0942deb7.js";import{p as Se}from"../chunks/stores.255470ec.js";import{P as dt}from"../chunks/page-title.433b384d.js";import{W as wt}from"../chunks/workflow-status.391c4889.js";import{t as gt,F as Ue,j as bt}from"../chunks/index.f08fc81f.js";import{L as Ce}from"../chunks/link.faba7c50.js";import{T as kt}from"../chunks/table-row.9c997398.js";import{t as T}from"../chunks/translate.135d909a.js";import{t as Ae,r as vt,b as te}from"../chunks/time-format.aa1f006c.js";import{u as yt,v as Tt,w as Et,x as Qe,y as Me}from"../chunks/format-time.5082c525.js";import{d as St}from"../chunks/has.233e577a.js";import{g as It}from"../chunks/route-for.18f9590b.js";import{u as ot}from"../chunks/update-query-parameters.5fc30b68.js";import{T as Pt,a as qt}from"../chunks/table-header-row.b9d52458.js";import{C as Ne}from"../chunks/code-block.a5088abe.js";import{E as At}from"../chunks/empty-state.64fbab21.js";import{P as Ct}from"../chunks/pagination.057da68c.js";import{g as Nt}from"../chunks/navigation.dde0d4fa.js";import{B as Ft}from"../chunks/button.72eef818.js";import{I as Wt}from"../chunks/input.1a8beba6.js";import{F as ze}from"../chunks/pagination.c124cb03.js";import{S as Dt,a as ge}from"../chunks/simple-select.4e19902f.js";import{I as Lt}from"../chunks/icon.33308831.js";const Ht=async function({params:a,url:e}){var i,_,S,b,C,Q,O,M;const{searchParams:r}=e;r.has("time-range")||r.set("time-range","1 day");const t=r.get("workflow-id"),l=r.get("workflow-type"),n=r.get("time-range"),f=r.get("status"),o=await st(a.namespace),s=(S=(_=(i=o.config)==null?void 0:i.historyArchivalUri)==null?void 0:_.toLowerCase())==null?void 0:S.startsWith("s3://"),c=(Q=(C=(b=o.config)==null?void 0:b.historyArchivalUri)==null?void 0:C.toLowerCase())==null?void 0:Q.startsWith("gs://"),u=s||c,p=u?{}:{workflowId:t,workflowType:l,closeTime:n,executionStatus:f},$=((O=o==null?void 0:o.config)==null?void 0:O.historyArchivalState)==="Enabled",h=((M=o==null?void 0:o.config)==null?void 0:M.visibilityArchivalState)==="Enabled",d=$&&h?await nt(a.namespace,p,fetch):null;return{workflows:d?d.workflows:[],namespace:o,archivalEnabled:$,visibilityArchivalEnabled:h,archivalQueryingNotSupported:u}},nr=Object.freeze(Object.defineProperty({__proto__:null,load:Ht},Symbol.toStringTag,{value:"Module"})),Ie=a=>e=>e.toLowerCase()===a.toLowerCase(),Ee=(a,e)=>a[e+2],jt=a=>{if(a){for(const e of Et)if(a[e])return{[e]:a[e]}}},Bt=Ie("WorkflowType"),Ot=Ie("WorkflowId"),Rt=Ie("StartTime"),Ut=Ie("ExecutionStatus"),Qt=a=>{const e=gt(a),r={workflowId:"",workflowType:"",executionStatus:null,timeRange:null};return e.forEach((t,l)=>{if(Ot(t)&&(r.workflowId=Ee(e,l)),Bt(t)&&(r.workflowType=Ee(e,l)),Ut(t)){const n=Ee(e,l);St(n)&&(r.executionStatus=n)}if(Rt(t)){const n=Ee(e,l);try{const f=yt(n),o=jt(f);r.timeRange=Tt(o)}catch(f){console.error("Error parsing StartTime from query",f)}}}),r};function Mt(a){let e=a[0].id+"",r;return{c(){r=I(e)},l(t){r=P(t,e)},m(t,l){g(t,r,l)},p(t,l){l&1&&e!==(e=t[0].id+"")&&le(r,e)},d(t){t&&m(r)}}}function zt(a){var We,De,Le;let e,r,t,l,n,f,o,s,c,u=te(a[0].startTime,a[4],{relative:a[5]})+"",p,$,h,d,i=T("workflows.workflow-name")+"",_,S,b,C,Q=a[0].name+"",O,M,K,R,ue,ee,ce=te(a[0].endTime,a[4],{relative:a[5]})+"",be,ke,re,me,pe=te(a[0].startTime,a[4],{relative:a[5]})+"",ve,ye,ae,_e,$e=te(a[0].endTime,a[4],{relative:a[5]})+"",Te,V,Pe,Fe;return r=new wt({props:{status:a[0].status,delay:Qe(a[0].startTime)}}),n=new Ce({props:{href:a[2],$$slots:{default:[Mt]},$$scope:{ctx:a}}}),o=new Ue({props:{copyIconTitle:T("common.copy-icon-title"),copySuccessIconTitle:T("common.copy-success-icon-title"),filterIconTitle:T("common.filter-workflows"),show:a[1],content:a[0].id,filterable:!1}}),R=new Ue({props:{copyIconTitle:T("common.copy-icon-title"),copySuccessIconTitle:T("common.copy-success-icon-title"),filterIconTitle:T("common.filter-workflows"),show:a[1],content:a[0].name,onFilter:a[13],filtered:(Le=(De=(We=a[3].url)==null?void 0:We.searchParams)==null?void 0:De.get("query"))==null?void 0:Le.includes(a[0].name)}}),{c(){e=q("td"),D(r.$$.fragment),t=F(),l=q("td"),D(n.$$.fragment),f=F(),D(o.$$.fragment),s=F(),c=q("p"),p=I(u),$=F(),h=q("td"),d=q("h3"),_=I(i),S=I(":"),b=F(),C=q("button"),O=I(Q),K=F(),D(R.$$.fragment),ue=F(),ee=q("p"),be=I(ce),ke=F(),re=q("td"),me=q("p"),ve=I(pe),ye=F(),ae=q("td"),_e=q("p"),Te=I($e),this.h()},l(w){e=A(w,"TD",{});var B=N(e);L(r.$$.fragment,B),B.forEach(m),t=W(w),l=A(w,"TD",{class:!0});var J=N(l);L(n.$$.fragment,J),f=W(J),L(o.$$.fragment,J),s=W(J),c=A(J,"P",{class:!0});var se=N(c);p=P(se,u),se.forEach(m),J.forEach(m),$=W(w),h=A(w,"TD",{class:!0});var z=N(h);d=A(z,"H3",{class:!0});var X=N(d);_=P(X,i),S=P(X,":"),X.forEach(m),b=W(z),C=A(z,"BUTTON",{class:!0,"aria-label":!0});var he=N(C);O=P(he,Q),he.forEach(m),K=W(z),L(R.$$.fragment,z),ue=W(z),ee=A(z,"P",{class:!0});var de=N(ee);be=P(de,ce),de.forEach(m),z.forEach(m),ke=W(w),re=A(w,"TD",{class:!0});var we=N(re);me=A(we,"P",{});var He=N(me);ve=P(He,pe),He.forEach(m),we.forEach(m),ye=W(w),ae=A(w,"TD",{class:!0});var je=N(ae);_e=A(je,"P",{});var Be=N(_e);Te=P(Be,$e),Be.forEach(m),je.forEach(m),this.h()},h(){E(c,"class","inline-time-cell svelte-tyqpjy"),E(l,"class","relative break-words pr-4"),E(d,"class","md:hidden"),E(C,"class","table-link svelte-tyqpjy"),E(C,"aria-label",M=T("workflows.filter-by",{workflowName:a[0].name})),E(ee,"class","inline-time-cell svelte-tyqpjy"),E(h,"class","relative truncate"),E(re,"class","time-cell svelte-tyqpjy"),E(ae,"class","time-cell svelte-tyqpjy")},m(w,B){g(w,e,B),H(r,e,null),g(w,t,B),g(w,l,B),H(n,l,null),v(l,f),H(o,l,null),v(l,s),v(l,c),v(c,p),g(w,$,B),g(w,h,B),v(h,d),v(d,_),v(d,S),v(h,b),v(h,C),v(C,O),v(h,K),H(R,h,null),v(h,ue),v(h,ee),v(ee,be),g(w,ke,B),g(w,re,B),v(re,me),v(me,ve),g(w,ye,B),g(w,ae,B),v(ae,_e),v(_e,Te),V=!0,Pe||(Fe=[G(l,"mouseover",a[8]),G(l,"focus",a[9]),G(l,"mouseleave",a[10]),G(l,"blur",a[11]),G(C,"click",tt(lt(a[12]))),G(h,"mouseover",a[14]),G(h,"focus",a[15]),G(h,"mouseleave",a[16]),G(h,"blur",a[17])],Pe=!0)},p(w,B){var he,de,we;const J={};B&1&&(J.status=w[0].status),B&1&&(J.delay=Qe(w[0].startTime)),r.$set(J);const se={};B&4&&(se.href=w[2]),B&262145&&(se.$$scope={dirty:B,ctx:w}),n.$set(se);const z={};B&2&&(z.show=w[1]),B&1&&(z.content=w[0].id),o.$set(z),(!V||B&49)&&u!==(u=te(w[0].startTime,w[4],{relative:w[5]})+"")&&le(p,u),(!V||B&1)&&Q!==(Q=w[0].name+"")&&le(O,Q),(!V||B&1&&M!==(M=T("workflows.filter-by",{workflowName:w[0].name})))&&E(C,"aria-label",M);const X={};B&2&&(X.show=w[1]),B&1&&(X.content=w[0].name),B&1&&(X.onFilter=w[13]),B&9&&(X.filtered=(we=(de=(he=w[3].url)==null?void 0:he.searchParams)==null?void 0:de.get("query"))==null?void 0:we.includes(w[0].name)),R.$set(X),(!V||B&49)&&ce!==(ce=te(w[0].endTime,w[4],{relative:w[5]})+"")&&le(be,ce),(!V||B&49)&&pe!==(pe=te(w[0].startTime,w[4],{relative:w[5]})+"")&&le(ve,pe),(!V||B&49)&&$e!==($e=te(w[0].endTime,w[4],{relative:w[5]})+"")&&le(Te,$e)},i(w){V||(k(r.$$.fragment,w),k(n.$$.fragment,w),k(o.$$.fragment,w),k(R.$$.fragment,w),V=!0)},o(w){y(r.$$.fragment,w),y(n.$$.fragment,w),y(o.$$.fragment,w),y(R.$$.fragment,w),V=!1},d(w){w&&m(e),j(r),w&&m(t),w&&m(l),j(n),j(o),w&&m($),w&&m(h),j(R),w&&m(ke),w&&m(re),w&&m(ye),w&&m(ae),Pe=!1,rt(Fe)}}}function Gt(a){let e,r;return e=new kt({props:{class:"workflow-summary-row",$$slots:{default:[zt]},$$scope:{ctx:a}}}),{c(){D(e.$$.fragment)},l(t){L(e.$$.fragment,t)},m(t,l){H(e,t,l),r=!0},p(t,[l]){const n={};l&262207&&(n.$$scope={dirty:l,ctx:t}),e.$set(n)},i(t){r||(k(e.$$.fragment,t),r=!0)},o(t){y(e.$$.fragment,t),r=!1},d(t){j(e,t)}}}function Kt(a,e,r){let t,l,n,f;oe(a,Se,O=>r(3,l=O)),oe(a,Ae,O=>r(4,n=O)),oe(a,vt,O=>r(5,f=O));let{namespace:o}=e,{workflow:s}=e,c=!1;const u=O=>{const M=Oe({timeRange:"All"}),K=l.url.searchParams.get("query"),R=Qt(K??M),ue=(R==null?void 0:R.workflowType)===O?"":O,ee=Oe({...R,workflowType:ue});ot({url:l.url,parameter:"query",value:ee,allowEmpty:!0})},p=()=>r(1,c=!0),$=()=>r(1,c=!0),h=()=>r(1,c=!1),d=()=>r(1,c=!1),i=()=>u(s.name),_=()=>u(s.name),S=()=>r(1,c=!0),b=()=>r(1,c=!0),C=()=>r(1,c=!1),Q=()=>r(1,c=!1);return a.$$set=O=>{"namespace"in O&&r(7,o=O.namespace),"workflow"in O&&r(0,s=O.workflow)},a.$$.update=()=>{a.$$.dirty&129&&r(2,t=It({namespace:o,workflow:s.id,run:s.runId}))},[s,c,t,l,n,f,u,o,p,$,h,d,i,_,S,b,C,Q]}class Vt extends ne{constructor(e){super(),fe(this,e,Kt,Gt,ie,{namespace:7,workflow:0})}}function Jt(a){let e;const r=a[1].default,t=ft(r,a,a[2],null);return{c(){t&&t.c()},l(l){t&&t.l(l)},m(l,n){t&&t.m(l,n),e=!0},p(l,n){t&&t.p&&(!e||n&4)&&it(t,r,l,l[2],e?ct(r,l[2],n,null):ut(l[2]),null)},i(l){e||(k(t,l),e=!0)},o(l){y(t,l),e=!1},d(l){t&&t.d(l)}}}function Zt(a){let e,r;return{c(){e=q("caption"),r=I("Workflows"),this.h()},l(t){e=A(t,"CAPTION",{class:!0,slot:!0});var l=N(e);r=P(l,"Workflows"),l.forEach(m),this.h()},h(){E(e,"class","sr-only"),E(e,"slot","caption")},m(t,l){g(t,e,l),v(e,r)},p:Z,d(t){t&&m(e)}}}function Xt(a){let e,r,t,l,n,f,o,s,c,u,p,$,h,d,i,_,S;return{c(){e=q("th"),r=I("Status"),t=F(),l=q("th"),n=I("Workflow ID"),f=F(),o=q("th"),s=I("Type"),c=F(),u=q("th"),p=I("Start"),$=F(),h=q("th"),d=I("End"),i=F(),_=q("th"),S=I("Summary"),this.h()},l(b){e=A(b,"TH",{class:!0});var C=N(e);r=P(C,"Status"),C.forEach(m),t=W(b),l=A(b,"TH",{class:!0});var Q=N(l);n=P(Q,"Workflow ID"),Q.forEach(m),f=W(b),o=A(b,"TH",{class:!0});var O=N(o);s=P(O,"Type"),O.forEach(m),c=W(b),u=A(b,"TH",{class:!0});var M=N(u);p=P(M,"Start"),M.forEach(m),$=W(b),h=A(b,"TH",{class:!0});var K=N(h);d=P(K,"End"),K.forEach(m),i=W(b),_=A(b,"TH",{class:!0,colspan:!0});var R=N(_);S=P(R,"Summary"),R.forEach(m),this.h()},h(){E(e,"class","w-32 max-md:hidden"),E(l,"class","max-md:hidden md:w-auto"),E(o,"class","w-60 max-md:hidden"),E(u,"class","w-60 max-xl:hidden"),E(h,"class","w-60 max-xl:hidden"),E(_,"class","md:hidden"),E(_,"colspan","3")},m(b,C){g(b,e,C),v(e,r),g(b,t,C),g(b,l,C),v(l,n),g(b,f,C),g(b,o,C),v(o,s),g(b,c,C),g(b,u,C),v(u,p),g(b,$,C),g(b,h,C),v(h,d),g(b,i,C),g(b,_,C),v(_,S)},p:Z,d(b){b&&m(e),b&&m(t),b&&m(l),b&&m(f),b&&m(o),b&&m(c),b&&m(u),b&&m($),b&&m(h),b&&m(i),b&&m(_)}}}function Yt(a){let e,r;return e=new qt({props:{slot:"headers",$$slots:{default:[Xt]},$$scope:{ctx:a}}}),{c(){D(e.$$.fragment)},l(t){L(e.$$.fragment,t)},m(t,l){H(e,t,l),r=!0},p(t,l){const n={};l&4&&(n.$$scope={dirty:l,ctx:t}),e.$set(n)},i(t){r||(k(e.$$.fragment,t),r=!0)},o(t){y(e.$$.fragment,t),r=!1},d(t){j(e,t)}}}function xt(a){let e,r;return e=new Pt({props:{class:"w-full md:table-fixed",updating:a[0],"data-testid":"workflows-table",$$slots:{headers:[Yt],caption:[Zt],default:[Jt]},$$scope:{ctx:a}}}),{c(){D(e.$$.fragment)},l(t){L(e.$$.fragment,t)},m(t,l){H(e,t,l),r=!0},p(t,[l]){const n={};l&1&&(n.updating=t[0]),l&4&&(n.$$scope={dirty:l,ctx:t}),e.$set(n)},i(t){r||(k(e.$$.fragment,t),r=!0)},o(t){y(e.$$.fragment,t),r=!1},d(t){j(e,t)}}}function el(a,e,r){let{$$slots:t={},$$scope:l}=e,{updating:n=!1}=e;return a.$$set=f=>{"updating"in f&&r(0,n=f.updating),"$$scope"in f&&r(2,l=f.$$scope)},[n,t,l]}class tl extends ne{constructor(e){super(),fe(this,e,el,xt,ie,{updating:0})}}function ll(a){let e;return{c(){e=I(a[2])},l(r){e=P(r,a[2])},m(r,t){g(r,e,t)},p(r,t){t&4&&le(e,r[2])},d(r){r&&m(e)}}}function rl(a){let e,r,t,l,n,f,o;return r=new Wt({props:{class:"w-full",unroundRight:!0,label:a[2],id:a[5],labelHidden:!0,icon:a[4]?"search":null,type:"search",name:a[3],value:a[1],placeholder:a[0],autocomplete:"off"}}),r.$on("input",a[7]),l=new Ft({props:{borderRadiusModifier:"square-left",type:"submit",$$slots:{default:[ll]},$$scope:{ctx:a}}}),{c(){e=q("form"),D(r.$$.fragment),t=F(),D(l.$$.fragment),this.h()},l(s){e=A(s,"FORM",{role:!0,class:!0});var c=N(e);L(r.$$.fragment,c),t=W(c),L(l.$$.fragment,c),c.forEach(m),this.h()},h(){E(e,"role","search"),E(e,"class","flex items-center")},m(s,c){g(s,e,c),H(r,e,null),v(e,t),H(l,e,null),n=!0,f||(o=G(e,"submit",lt(a[6])),f=!0)},p(s,[c]){const u={};c&4&&(u.label=s[2]),c&32&&(u.id=s[5]),c&16&&(u.icon=s[4]?"search":null),c&8&&(u.name=s[3]),c&2&&(u.value=s[1]),c&1&&(u.placeholder=s[0]),r.$set(u);const p={};c&260&&(p.$$scope={dirty:c,ctx:s}),l.$set(p)},i(s){n||(k(r.$$.fragment,s),k(l.$$.fragment,s),n=!0)},o(s){y(r.$$.fragment,s),y(l.$$.fragment,s),n=!1},d(s){s&&m(e),j(r),j(l),f=!1,o()}}}function al(a,e,r){let{placeholder:t=""}=e,{value:l=""}=e,{label:n=T("common.search")}=e,{name:f="query"}=e,{icon:o=!1}=e,{id:s=`${n.toLocaleUpperCase()}-input`}=e;function c(p){qe.call(this,a,p)}function u(p){qe.call(this,a,p)}return a.$$set=p=>{"placeholder"in p&&r(0,t=p.placeholder),"value"in p&&r(1,l=p.value),"label"in p&&r(2,n=p.label),"name"in p&&r(3,f=p.name),"icon"in p&&r(4,o=p.icon),"id"in p&&r(5,s=p.id)},[t,l,n,f,o,s,c,u]}class ol extends ne{constructor(e){super(),fe(this,e,al,rl,ie,{placeholder:0,value:1,label:2,name:3,icon:4,id:5})}}function sl(a){let e,r,t,l,n,f,o,s,c,u,p;return f=new Lt({props:{name:"search",class:"flex items-center text-gray-700"}}),{c(){e=q("div"),r=q("label"),t=I(a[0]),l=F(),n=q("span"),D(f.$$.fragment),o=F(),s=q("input"),this.h()},l($){e=A($,"DIV",{class:!0});var h=N(e);r=A(h,"LABEL",{for:!0,class:!0});var d=N(r);t=P(d,a[0]),d.forEach(m),l=W(h),n=A(h,"SPAN",{class:!0});var i=N(n);L(f.$$.fragment,i),i.forEach(m),o=W(h),s=A(h,"INPUT",{type:!0,class:!0,placeholder:!0,id:!0}),h.forEach(m),this.h()},h(){E(r,"for",a[2]),E(r,"class","hidden"),E(n,"class","svelte-fxm0nn"),E(s,"type","search"),E(s,"class","block w-full focus:outline-none"),E(s,"placeholder",a[0]),E(s,"id",a[2]),E(e,"class","input-container bg-white focus-within:border-blue-700 svelte-fxm0nn")},m($,h){g($,e,h),v(e,r),v(r,t),v(e,l),v(e,n),H(f,n,null),v(e,o),v(e,s),Re(s,a[1]),c=!0,u||(p=[G(s,"input",a[7]),G(s,"keydown",tt(a[6]))],u=!0)},p($,[h]){(!c||h&1)&&le(t,$[0]),(!c||h&1)&&E(s,"placeholder",$[0]),h&2&&Re(s,$[1])},i($){c||(k(f.$$.fragment,$),c=!0)},o($){y(f.$$.fragment,$),c=!1},d($){$&&m(e),j(f),u=!1,rt(p)}}}function nl(a,e,r){let t;oe(a,Se,$=>r(5,t=$));let{parameter:l}=e,{name:n}=e,{value:f}=e,o=l&&t.url.searchParams.get(l)||f;const s=`${l||n}-filter`,c=bt(ot,300);function u($){qe.call(this,a,$)}function p(){o=this.value,r(1,o)}return a.$$set=$=>{"parameter"in $&&r(3,l=$.parameter),"name"in $&&r(0,n=$.name),"value"in $&&r(4,f=$.value)},a.$$.update=()=>{a.$$.dirty&42&&c({parameter:l,value:o,url:t.url})},[n,o,s,l,f,t,u,p]}class Ge extends ne{constructor(e){super(),fe(this,e,nl,sl,ie,{parameter:3,name:0,value:4})}}function Ke(a,e,r){const t=a.slice();return t[6]=e[r].value,t[7]=e[r].label,t}function Ve(a,e,r){const t=a.slice();return t[6]=e[r],t}function fl(a){let e,r;return e=new Ce({props:{href:`${a[0].url.pathname}?query=`,$$slots:{default:[ul]},$$scope:{ctx:a}}}),{c(){D(e.$$.fragment)},l(t){L(e.$$.fragment,t)},m(t,l){H(e,t,l),r=!0},p(t,l){const n={};l&1&&(n.href=`${t[0].url.pathname}?query=`),l&4096&&(n.$$scope={dirty:l,ctx:t}),e.$set(n)},i(t){r||(k(e.$$.fragment,t),r=!0)},o(t){y(e.$$.fragment,t),r=!1},d(t){j(e,t)}}}function il(a){let e,r;return e=new Ce({props:{href:a[0].url.pathname,$$slots:{default:[cl]},$$scope:{ctx:a}}}),{c(){D(e.$$.fragment)},l(t){L(e.$$.fragment,t)},m(t,l){H(e,t,l),r=!0},p(t,l){const n={};l&1&&(n.href=t[0].url.pathname),l&4096&&(n.$$scope={dirty:l,ctx:t}),e.$set(n)},i(t){r||(k(e.$$.fragment,t),r=!0)},o(t){y(e.$$.fragment,t),r=!1},d(t){j(e,t)}}}function ul(a){let e=T("workflows.advanced-search")+"",r;return{c(){r=I(e)},l(t){r=P(t,e)},m(t,l){g(t,r,l)},p:Z,d(t){t&&m(r)}}}function cl(a){let e=T("workflows.basic-search")+"",r;return{c(){r=I(e)},l(t){r=P(t,e)},m(t,l){g(t,r,l)},p:Z,d(t){t&&m(r)}}}function ml(a){let e,r,t,l,n,f,o,s,c,u,p,$;r=new Ge({props:{parameter:"workflow-id",name:T("common.workflow-id"),value:yl}}),l=new Ge({props:{parameter:"workflow-type",name:T("common.workflow-type"),value:Tl}}),f=new ze({props:{label:T("workflows.time-range"),parameter:"time-range",value:"24 hours",$$slots:{default:[$l]},$$scope:{ctx:a}}}),s=new ze({props:{label:T("common.status"),parameter:"status",value:null,$$slots:{default:[dl]},$$scope:{ctx:a}}});function h(i){a[5](i)}let d={id:"filter-by-relative-time",$$slots:{default:[kl]},$$scope:{ctx:a}};return a[2]!==void 0&&(d.value=a[2]),u=new Dt({props:d}),mt.push(()=>pt(u,"value",h)),{c(){e=q("div"),D(r.$$.fragment),t=F(),D(l.$$.fragment),n=F(),D(f.$$.fragment),o=F(),D(s.$$.fragment),c=F(),D(u.$$.fragment),this.h()},l(i){e=A(i,"DIV",{class:!0,role:!0});var _=N(e);L(r.$$.fragment,_),t=W(_),L(l.$$.fragment,_),n=W(_),L(f.$$.fragment,_),o=W(_),L(s.$$.fragment,_),c=W(_),L(u.$$.fragment,_),_.forEach(m),this.h()},h(){E(e,"class","grid grid-cols-1 gap-4 sm:grid-cols-2 md:grid-cols-5"),E(e,"role","search")},m(i,_){g(i,e,_),H(r,e,null),v(e,t),H(l,e,null),v(e,n),H(f,e,null),v(e,o),H(s,e,null),v(e,c),H(u,e,null),$=!0},p(i,_){const S={};_&4096&&(S.$$scope={dirty:_,ctx:i}),f.$set(S);const b={};_&4096&&(b.$$scope={dirty:_,ctx:i}),s.$set(b);const C={};_&4096&&(C.$$scope={dirty:_,ctx:i}),!p&&_&4&&(p=!0,C.value=i[2],_t(()=>p=!1)),u.$set(C)},i(i){$||(k(r.$$.fragment,i),k(l.$$.fragment,i),k(f.$$.fragment,i),k(s.$$.fragment,i),k(u.$$.fragment,i),$=!0)},o(i){y(r.$$.fragment,i),y(l.$$.fragment,i),y(f.$$.fragment,i),y(s.$$.fragment,i),y(u.$$.fragment,i),$=!1},d(i){i&&m(e),j(r),j(l),j(f),j(s),j(u)}}}function pl(a){let e,r;return e=new ol({props:{icon:!0,placeholder:T("common.search"),value:a[0].url.searchParams.get("query")}}),e.$on("submit",a[4]),{c(){D(e.$$.fragment)},l(t){L(e.$$.fragment,t)},m(t,l){H(e,t,l),r=!0},p(t,l){const n={};l&1&&(n.value=t[0].url.searchParams.get("query")),e.$set(n)},i(t){r||(k(e.$$.fragment,t),r=!0)},o(t){y(e.$$.fragment,t),r=!1},d(t){j(e,t)}}}function _l(a){let e=a[6]+"",r;return{c(){r=I(e)},l(t){r=P(t,e)},m(t,l){g(t,r,l)},p:Z,d(t){t&&m(r)}}}function Je(a){let e,r;return e=new ge({props:{value:a[6],$$slots:{default:[_l]},$$scope:{ctx:a}}}),{c(){D(e.$$.fragment)},l(t){L(e.$$.fragment,t)},m(t,l){H(e,t,l),r=!0},p(t,l){const n={};l&4096&&(n.$$scope={dirty:l,ctx:t}),e.$set(n)},i(t){r||(k(e.$$.fragment,t),r=!0)},o(t){y(e.$$.fragment,t),r=!1},d(t){j(e,t)}}}function $l(a){let e,r,t=Me,l=[];for(let f=0;fy(l[f],1,1,()=>{l[f]=null});return{c(){for(let f=0;fo[7];for(let o=0;o{u[S]=null}),x(),l=u[t],l?l.p(i,_):(l=u[t]=c[t](i),l.c()),k(l,1),l.m(r,null));let b=f;f=d(i),f===b?h[f].p(i,_):(Y(),y(h[b],1,1,()=>{h[b]=null}),x(),o=h[f],o?o.p(i,_):(o=h[f]=$[f](i),o.c()),k(o,1),o.m(e,null))},i(i){s||(k(l),k(o),s=!0)},o(i){y(l),y(o),s=!1},d(i){i&&m(e),u[t].d(),h[f].d()}}}let yl="",Tl="";function El(a,e,r){let t,l,n;oe(a,Se,c=>r(0,l=c)),oe(a,Ae,c=>r(2,n=c));const f={All:{value:null,label:T("workflows.all-statuses")},"Timed Out":{value:"TimedOut",label:T("workflows.timed-out")},Completed:{value:"Completed",label:T("workflows.completed")},Failed:{value:"Failed",label:T("workflows.failed")},"Continued as New":{value:"ContinuedAsNew",label:T("workflows.continued-as-new")},Canceled:{value:"Canceled",label:T("workflows.canceled")},Terminated:{value:"Terminated",label:T("workflows.terminated")}},o=c=>{const p=new FormData(c.target).get("query");l.url.searchParams.set("query",String(p)),Nt(l.url.toString())};function s(c){n=c,Ae.set(n)}return a.$$.update=()=>{a.$$.dirty&1&&r(1,t=l.url.searchParams.has("query"))},[l,t,n,f,o,s]}class Sl extends ne{constructor(e){super(),fe(this,e,El,vl,ie,{})}}function Xe(a,e,r){const t=a.slice();return t[8]=e[r],t}function Il(a){let e,r=T("workflows.archival-disabled-title")+"",t,l,n,f=T("workflows.archival-disabled-details")+"",o,s,c,u,p,$,h;u=new Ne({props:{content:`temporal operator namespace update --history-archival-state enabled ${a[4]}`,language:"text",inline:!0,copyIconTitle:T("common.copy-icon-title"),copySuccessIconTitle:T("common.copy-success-icon-title")}});let d=!a[1]&&Ye(a);return{c(){e=q("h1"),t=I(r),l=F(),n=q("p"),o=I(f),s=I(":"),c=F(),D(u.$$.fragment),p=F(),d&&d.c(),$=U(),this.h()},l(i){e=A(i,"H1",{class:!0,"data-testid":!0});var _=N(e);t=P(_,r),_.forEach(m),l=W(i),n=A(i,"P",{});var S=N(n);o=P(S,f),s=P(S,":"),S.forEach(m),c=W(i),L(u.$$.fragment,i),p=W(i),d&&d.l(i),$=U(),this.h()},h(){E(e,"class","text-2xl"),E(e,"data-testid","archived-disabled-title")},m(i,_){g(i,e,_),v(e,t),g(i,l,_),g(i,n,_),v(n,o),v(n,s),g(i,c,_),H(u,i,_),g(i,p,_),d&&d.m(i,_),g(i,$,_),h=!0},p(i,_){const S={};_&16&&(S.content=`temporal operator namespace update --history-archival-state enabled ${i[4]}`),u.$set(S),i[1]?d&&(Y(),y(d,1,1,()=>{d=null}),x()):d?(d.p(i,_),_&2&&k(d,1)):(d=Ye(i),d.c(),k(d,1),d.m($.parentNode,$))},i(i){h||(k(u.$$.fragment,i),k(d),h=!0)},o(i){y(u.$$.fragment,i),y(d),h=!1},d(i){i&&m(e),i&&m(l),i&&m(n),i&&m(c),j(u,i),i&&m(p),d&&d.d(i),i&&m($)}}}function Pl(a){let e,r=T("workflows.visibility-disabled-archival")+"",t,l,n,f=T("workflows.archival-link-preface")+"",o,s,c=T("workflows.archival-link")+"",u,p,$,h,d;return h=new Ne({props:{content:`temporal operator namespace update --visibility-archival-state enabled ${a[4]}`,language:"text",inline:!0,copyIconTitle:T("common.copy-icon-title"),copySuccessIconTitle:T("common.copy-success-icon-title")}}),{c(){e=q("h1"),t=I(r),l=F(),n=q("p"),o=I(f),s=q("a"),u=I(c),p=I(":"),$=F(),D(h.$$.fragment),this.h()},l(i){e=A(i,"H1",{class:!0,"data-testid":!0});var _=N(e);t=P(_,r),_.forEach(m),l=W(i),n=A(i,"P",{});var S=N(n);o=P(S,f),s=A(S,"A",{class:!0,href:!0,target:!0,rel:!0});var b=N(s);u=P(b,c),b.forEach(m),p=P(S,":"),S.forEach(m),$=W(i),L(h.$$.fragment,i),this.h()},h(){E(e,"class","text-2xl"),E(e,"data-testid","visibility-disabled-title"),E(s,"class","text-blue-700 underline"),E(s,"href","https://docs.temporal.io/clusters#archival"),E(s,"target","_blank"),E(s,"rel","noreferrer")},m(i,_){g(i,e,_),v(e,t),g(i,l,_),g(i,n,_),v(n,o),v(n,s),v(s,u),v(n,p),g(i,$,_),H(h,i,_),d=!0},p(i,_){const S={};_&16&&(S.content=`temporal operator namespace update --visibility-archival-state enabled ${i[4]}`),h.$set(S)},i(i){d||(k(h.$$.fragment,i),d=!0)},o(i){y(h.$$.fragment,i),d=!1},d(i){i&&m(e),i&&m(l),i&&m(n),i&&m($),j(h,i)}}}function ql(a){let e,r=T("workflows.archived-workflows")+"",t,l,n,f,o,s,c,u=!a[0]&&xe();const p=[Cl,Al],$=[];function h(d,i){var _;return(_=d[3])!=null&&_.length?0:1}return f=h(a),o=$[f]=p[f](a),{c(){e=q("h1"),t=I(r),l=F(),u&&u.c(),n=F(),o.c(),s=U(),this.h()},l(d){e=A(d,"H1",{class:!0,"data-testid":!0});var i=N(e);t=P(i,r),i.forEach(m),l=W(d),u&&u.l(d),n=W(d),o.l(d),s=U(),this.h()},h(){E(e,"class","text-2xl"),E(e,"data-testid","archived-enabled-title")},m(d,i){g(d,e,i),v(e,t),g(d,l,i),u&&u.m(d,i),g(d,n,i),$[f].m(d,i),g(d,s,i),c=!0},p(d,i){d[0]?u&&(Y(),y(u,1,1,()=>{u=null}),x()):u?i&1&&k(u,1):(u=xe(),u.c(),k(u,1),u.m(n.parentNode,n));let _=f;f=h(d),f===_?$[f].p(d,i):(Y(),y($[_],1,1,()=>{$[_]=null}),x(),o=$[f],o?o.p(d,i):(o=$[f]=p[f](d),o.c()),k(o,1),o.m(s.parentNode,s))},i(d){c||(k(u),k(o),c=!0)},o(d){y(u),y(o),c=!1},d(d){d&&m(e),d&&m(l),u&&u.d(d),d&&m(n),$[f].d(d),d&&m(s)}}}function Ye(a){let e,r=T("workflows.archival-link-preface")+"",t,l,n=T("workflows.archival-link")+"",f,o,s,c,u;return c=new Ne({props:{content:`temporal operator namespace update --visibility-archival-state enabled ${a[4]}`,language:"text",inline:!0,copyIconTitle:T("common.copy-icon-title"),copySuccessIconTitle:T("common.copy-success-icon-title")}}),{c(){e=q("p"),t=I(r),l=q("a"),f=I(n),o=I(":"),s=F(),D(c.$$.fragment),this.h()},l(p){e=A(p,"P",{});var $=N(e);t=P($,r),l=A($,"A",{class:!0,href:!0,target:!0,rel:!0});var h=N(l);f=P(h,n),h.forEach(m),o=P($,":"),$.forEach(m),s=W(p),L(c.$$.fragment,p),this.h()},h(){E(l,"class","text-blue-700 underline"),E(l,"href","https://docs.temporal.io/clusters#archival"),E(l,"target","_blank"),E(l,"rel","noreferrer")},m(p,$){g(p,e,$),v(e,t),v(e,l),v(l,f),v(e,o),g(p,s,$),H(c,p,$),u=!0},p(p,$){const h={};$&16&&(h.content=`temporal operator namespace update --visibility-archival-state enabled ${p[4]}`),c.$set(h)},i(p){u||(k(c.$$.fragment,p),u=!0)},o(p){y(c.$$.fragment,p),u=!1},d(p){p&&m(e),p&&m(s),j(c,p)}}}function xe(a){let e,r;return e=new Sl({}),{c(){D(e.$$.fragment)},l(t){L(e.$$.fragment,t)},m(t,l){H(e,t,l),r=!0},i(t){r||(k(e.$$.fragment,t),r=!0)},o(t){y(e.$$.fragment,t),r=!1},d(t){j(e,t)}}}function Al(a){let e,r;return e=new At({props:{title:T("workflows.workflow-empty-state-title"),content:T("workflows.archival-empty-state-description")}}),{c(){D(e.$$.fragment)},l(t){L(e.$$.fragment,t)},m(t,l){H(e,t,l),r=!0},p:Z,i(t){r||(k(e.$$.fragment,t),r=!0)},o(t){y(e.$$.fragment,t),r=!1},d(t){j(e,t)}}}function Cl(a){let e,r;return e=new Ct({props:{items:a[3],"aria-label":T("workflows.archived-workflows"),pageSizeSelectLabel:T("common.per-page"),previousButtonLabel:T("common.previous"),nextButtonLabel:T("common.next"),$$slots:{default:[Fl,({visibleItems:t})=>({7:t}),({visibleItems:t})=>t?128:0]},$$scope:{ctx:a}}}),{c(){D(e.$$.fragment)},l(t){L(e.$$.fragment,t)},m(t,l){H(e,t,l),r=!0},p(t,l){const n={};l&8&&(n.items=t[3]),l&2192&&(n.$$scope={dirty:l,ctx:t}),e.$set(n)},i(t){r||(k(e.$$.fragment,t),r=!0)},o(t){y(e.$$.fragment,t),r=!1},d(t){j(e,t)}}}function et(a){let e,r;return e=new Vt({props:{workflow:a[8],namespace:a[4]}}),{c(){D(e.$$.fragment)},l(t){L(e.$$.fragment,t)},m(t,l){H(e,t,l),r=!0},p(t,l){const n={};l&128&&(n.workflow=t[8]),l&16&&(n.namespace=t[4]),e.$set(n)},i(t){r||(k(e.$$.fragment,t),r=!0)},o(t){y(e.$$.fragment,t),r=!1},d(t){j(e,t)}}}function Nl(a){let e,r,t=a[7],l=[];for(let f=0;fy(l[f],1,1,()=>{l[f]=null});return{c(){for(let f=0;f{s[h]=null}),x(),l=s[t],l?l.p(u,p):(l=s[t]=o[t](u),l.c()),k(l,1),l.m(n.parentNode,n))},i(u){f||(k(e.$$.fragment,u),k(l),f=!0)},o(u){y(e.$$.fragment,u),y(l),f=!1},d(u){j(e,u),u&&m(r),s[t].d(u),u&&m(n)}}}function Dl(a,e,r){let t,l,n,f,o,s;oe(a,Se,u=>r(5,s=u));let{data:c}=e;return a.$$set=u=>{"data"in u&&r(6,c=u.data)},a.$$.update=()=>{a.$$.dirty&64&&r(4,{namespace:{namespaceInfo:{name:t}},workflows:l,archivalEnabled:n,visibilityArchivalEnabled:f,archivalQueryingNotSupported:o}=c,t,(r(3,l),r(6,c)),(r(2,n),r(6,c)),(r(1,f),r(6,c)),(r(0,o),r(6,c)))},[o,f,n,l,t,s,c]}class fr extends ne{constructor(e){super(),fe(this,e,Dl,Wl,ie,{data:6})}}export{fr as component,nr as universal}; diff --git a/ui/assets/local/_app/immutable/nodes/19.2167743a.js b/ui/assets/local/_app/immutable/nodes/19.b528c10f.js similarity index 96% rename from ui/assets/local/_app/immutable/nodes/19.2167743a.js rename to ui/assets/local/_app/immutable/nodes/19.b528c10f.js index 78a6c3cccb..32ecf9ed65 100644 --- a/ui/assets/local/_app/immutable/nodes/19.2167743a.js +++ b/ui/assets/local/_app/immutable/nodes/19.b528c10f.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.0942deb7.js";import{p as oe}from"../chunks/stores.73c3690d.js";import{P as fe}from"../chunks/page-title.433b384d.js";import{t as L}from"../chunks/translate.135d909a.js";import{B as ie}from"../chunks/badge.5c29cec8.js";import{E as Y}from"../chunks/empty-state.64fbab21.js";import{L as ce}from"../chunks/link.f0cc0bf5.js";import{T as me,a as ue}from"../chunks/table-header-row.b9d52458.js";import{T as re}from"../chunks/table-row.9c997398.js";import{t as pe,r as $e,b as K}from"../chunks/time-format.7dc1f425.js";import{p as Z}from"../chunks/route-for.ecd88549.js";import{A as _e}from"../chunks/alert.c46cfdd9.js";import{L as he}from"../chunks/loading.e7565465.js";import{l as y,i as be}from"../chunks/batch-operations.ac8cf9e3.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.0942deb7.js";import{p as oe}from"../chunks/stores.255470ec.js";import{P as fe}from"../chunks/page-title.433b384d.js";import{t as L}from"../chunks/translate.135d909a.js";import{B as ie}from"../chunks/badge.5c29cec8.js";import{E as Y}from"../chunks/empty-state.64fbab21.js";import{L as ce}from"../chunks/link.faba7c50.js";import{T as me,a as ue}from"../chunks/table-header-row.b9d52458.js";import{T as re}from"../chunks/table-row.9c997398.js";import{t as pe,r as $e,b as K}from"../chunks/time-format.aa1f006c.js";import{p as Z}from"../chunks/route-for.18f9590b.js";import{A as _e}from"../chunks/alert.c46cfdd9.js";import{L as he}from"../chunks/loading.e7565465.js";import{l as y,i as be}from"../chunks/batch-operations.b60f5f99.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/2.2610c332.js b/ui/assets/local/_app/immutable/nodes/2.af614172.js similarity index 98% rename from ui/assets/local/_app/immutable/nodes/2.2610c332.js rename to ui/assets/local/_app/immutable/nodes/2.af614172.js index 402bbfe735..b8c7690ae5 100644 --- a/ui/assets/local/_app/immutable/nodes/2.2610c332.js +++ b/ui/assets/local/_app/immutable/nodes/2.af614172.js @@ -1,4 +1,4 @@ -import{r as Fl}from"../chunks/index.3158323b.js";import{r as Nl,a as Dl,n as it}from"../chunks/route-for-api.f2500de4.js";import{f as Hl}from"../chunks/namespaces-service.7a177dbb.js";import{f as Ml,i as Ul}from"../chunks/settings-service.7bd36f05.js";import{s as Kl,g as Wl,a as Sl,c as Zl}from"../chunks/auth-user.a1d7e47f.js";import{B as Bl}from"../chunks/prod-browser.becde89a.js";import{a as Gl,v as Ql,b as Xl}from"../chunks/is-http.b24d498b.js";import{p as Jl}from"../chunks/parse-with-big-int.0036a80a.js";import{r as zl,a as xe,b as Yl,c as yl,d as Lt,e as Tt,f as xl}from"../chunks/route-for.ecd88549.js";/* empty css */import{S as ue,b as ce,a as me,m as A,w as Q,c as H,p as R,q,x as X,k as _,d as M,u as v,Q as G,Y as Oe,f as k,L as T,Z as It,M as ke,_ as lt,y as ge,j as p,z as de,g,h as _e,r as ht,G as x,H as ee,I as te,J as le,$ as Fe,A as Ve,a0 as Ne,C as D,D as S,E as B,a1 as De,F as z,n as ne,e as ae,K as ie,a2 as en,a3 as bt,a4 as tn,a5 as pe,V as at,W as ft,O as we,v as Vt,P as Me,R as rt,T as Ae,U as Se,i as vt,X as ln,a6 as nn,o as sn,a7 as $t,N as Ol,a8 as Nt,s as ot,a9 as Dt,aa as rn,ab as on}from"../chunks/index.0942deb7.js";import{a as an,g as St}from"../chunks/navigation.83f47780.js";import{p as qe,u as fn}from"../chunks/stores.73c3690d.js";import{T as ut}from"../chunks/toggle-switch.cc141600.js";import{t as P}from"../chunks/translate.135d909a.js";import{r as Bt}from"../chunks/workflow-run.80b64688.js";import{o as ct,i as zt,p as Ot,c as mt,l as un}from"../chunks/data-encoder-config.74f5c7e0.js";import{c as cn,M as kt,a as Al,b as wt,d as Ue}from"../chunks/menu.55d17299.js";import{L as Rl}from"../chunks/link.f0cc0bf5.js";import{B as dt}from"../chunks/button.c09134bf.js";import{A as mn}from"../chunks/accordion.89b036f1.js";import{f as _t}from"../chunks/index.2fa3ca4d.js";import{w as Ke,j as dn}from"../chunks/singletons.0a6e865f.js";import{R as _n,a as At}from"../chunks/radio-input.cbaf2baa.js";import{I as Le}from"../chunks/icon.33308831.js";import{p as ql}from"../chunks/persist-store.dd882958.js";import{T as Ge}from"../chunks/tooltip.ea285ef3.js";import{i as pn}from"../chunks/batch-operations.ac8cf9e3.js";import{I as We}from"../chunks/icon-button.cdadbc6c.js";import{I as gn}from"../chunks/input.828c22e1.js";import{M as Pl}from"../chunks/menu-divider.79623dfc.js";import{r as et,t as tt,g as hn,T as Rt,a as qt,f as Pt}from"../chunks/time-format.7dc1f425.js";import{c as bn}from"../chunks/format-camel-case.887ffc78.js";import{l as nt,n as vn}from"../chunks/namespaces.5c0c98b2.js";import{E as $n}from"../chunks/error.9ad9aabe.js";import{t as jt}from"../chunks/toaster.60da8f1b.js";const kn=async(s,e=fetch)=>{if(s.runtimeEnvironment.isCloud)return;const l=Nl("cluster");return await Dl(l,{request:e}).then(t=>t)},wn=async(s,e=fetch)=>{if(s.runtimeEnvironment.isCloud)return;const l=Nl("systemInfo");return await Dl(l,{request:e}).then(t=>t)},st="user",En=(s=Bl)=>{if(!s)return{};const e=document.cookie.split(";");let l=0,t=e.find(r=>r.includes(st+l)),n="";for(;t;){const[r,o]=t.split("=");n+=o,l++,t=e.find(a=>a.includes(st+l))}if(n)try{const r=Gl(n),o=Jl(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{}},Cn=(s=Bl)=>{if(!s)return;const e=document.cookie.split(";");let l=0,t=e.find(n=>n.includes(st+l));for(;t;){const[n]=t.split("=");document.cookie=`${n}=; max-age=-1; path=/`,l++,t=e.find(r=>r.includes(st+l))}},Ln=(s,e)=>!s.auth.enabled||Boolean(e==null?void 0:e.accessToken),Tn=async function({fetch:s}){const e=await Ml(s),l=En();l!=null&&l.accessToken&&(Kl(l),Cn());const t=Wl();if(!Ln(e,t))throw Fl(302,zl());Hl(e,s);const n=await kn(e,s),r=await wn(e,s);return{user:t,settings:e,cluster:n,systemInfo:r}},Si=Object.freeze(Object.defineProperty({__proto__:null,load:Tn},Symbol.toStringTag,{value:"Module"}));const In=s=>({}),Ft=s=>({});function Ht(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(){v(e,"class","text-sm")},m(t,n){k(t,e,n),T(e,l)},p(t,n){n&2048&&ge(l,t[11])},d(t){t&&_(e)}}}function Mt(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;v(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)),v(e,"class","count svelte-14m0wnf")},m(i,f){k(i,e,f),T(e,l),T(l,n),T(e,r),T(e,o)},p(i,f){var u,m,c;f&1&&t!==(t=(((u=i[0])==null?void 0:u.length)??0)+"")&&ge(n,t),f&4097&&G(l,"warn",i[12]-((m=i[0])==null?void 0:m.length)<=5),f&4097&&G(l,"error",i[12]===((c=i[0])==null?void 0:c.length)),f&4096&&ge(o,i[12])},d(i){i&&_(e)}}}function Ut(s){let e,l,t=s[2]&&Kt(s);const n=s[15].error,r=x(n,s,s[14],Ft);return{c(){t&&t.c(),e=H(),r&&r.c()},l(o){t&&t.l(o),e=M(o),r&&r.l(o)},m(o,a){t&&t.m(o,a),k(o,e,a),r&&r.m(o,a),l=!0},p(o,a){o[2]?t?t.p(o,a):(t=Kt(o),t.c(),t.m(e.parentNode,e)):t&&(t.d(1),t=null),r&&r.p&&(!l||a&16384)&&ee(r,n,o,o[14],l?le(n,o[14],a,In):te(o[14]),Ft)},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 Kt(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){k(t,e,n),T(e,l)},p(t,n){n&4&&ge(l,t[2])},d(t){t&&_(e)}}}function Vn(s){let e,l,t,n,r,o,a,i,f,u,m,c,d,b,E,h,w=s[11]&&Ht(s),I=s[12]&&!s[1]&&Mt(s),$=!s[3]&&Ut(s);return{c(){e=A("div"),l=A("label"),t=Q(s[7]),n=H(),w&&w.c(),r=H(),o=A("div"),a=A("textarea"),f=H(),I&&I.c(),u=H(),m=A("div"),$&&$.c(),this.h()},l(L){e=R(L,"DIV",{class:!0});var N=q(e);l=R(N,"LABEL",{for:!0,class:!0});var K=q(l);t=X(K,s[7]),K.forEach(_),n=M(N),w&&w.l(N),r=M(N),o=R(N,"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=M(O),I&&I.l(O),O.forEach(_),u=M(N),m=R(N,"DIV",{class:!0,"aria-live":!0});var W=q(m);$&&$.l(W),W.forEach(_),N.forEach(_),this.h()},h(){v(l,"for",s[9]),v(l,"class","svelte-14m0wnf"),G(l,"required",s[10]),G(l,"sr-only",s[8]),v(a,"class","min-h-fit w-full rounded border border-gray-900 py-2 px-3 font-mono text-sm svelte-14m0wnf"),v(a,"id",s[9]),a.disabled=s[1],v(a,"placeholder",s[4]),v(a,"rows",s[5]),v(a,"spellcheck",s[6]),v(a,"maxlength",i=s[12]>0?s[12]:void 0),G(a,"error",!s[3]),v(o,"class","relative"),v(m,"class","error-msg svelte-14m0wnf"),v(m,"aria-live",c=s[3]?"off":"assertive"),G(m,"min-width",s[12]),v(e,"class",d=Oe(s[13])+" svelte-14m0wnf")},m(L,N){k(L,e,N),T(e,l),T(l,t),T(e,n),w&&w.m(e,null),T(e,r),T(e,o),T(o,a),It(a,s[0]),T(o,f),I&&I.m(o,null),T(e,u),T(e,m),$&&$.m(m,null),b=!0,E||(h=[ke(a,"input",s[21]),ke(a,"input",s[16]),ke(a,"change",s[17]),ke(a,"focus",s[18]),ke(a,"blur",s[19]),ke(a,"keydown",lt(s[20]))],E=!0)},p(L,[N]){(!b||N&128)&&ge(t,L[7]),(!b||N&512)&&v(l,"for",L[9]),(!b||N&1024)&&G(l,"required",L[10]),(!b||N&256)&&G(l,"sr-only",L[8]),L[11]?w?w.p(L,N):(w=Ht(L),w.c(),w.m(e,r)):w&&(w.d(1),w=null),(!b||N&512)&&v(a,"id",L[9]),(!b||N&2)&&(a.disabled=L[1]),(!b||N&16)&&v(a,"placeholder",L[4]),(!b||N&32)&&v(a,"rows",L[5]),(!b||N&64)&&v(a,"spellcheck",L[6]),(!b||N&4096&&i!==(i=L[12]>0?L[12]:void 0))&&v(a,"maxlength",i),N&1&&It(a,L[0]),(!b||N&8)&&G(a,"error",!L[3]),L[12]&&!L[1]?I?I.p(L,N):(I=Mt(L),I.c(),I.m(o,null)):I&&(I.d(1),I=null),L[3]?$&&(de(),g($,1,1,()=>{$=null}),_e()):$?($.p(L,N),N&8&&p($,1)):($=Ut(L),$.c(),p($,1),$.m(m,null)),(!b||N&8&&c!==(c=L[3]?"off":"assertive"))&&v(m,"aria-live",c),(!b||N&4096)&&G(m,"min-width",L[12]),(!b||N&8192&&d!==(d=Oe(L[13])+" svelte-14m0wnf"))&&v(e,"class",d)},i(L){b||(p($),b=!0)},o(L){g($),b=!1},d(L){L&&_(e),w&&w.d(),I&&I.d(),$&&$.d(),E=!1,ht(h)}}}function Nn(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:m}=e,{label:c}=e,{labelHidden:d=!1}=e,{id:b}=e,{required:E=!1}=e,{description:h=""}=e,{maxLength:w=0}=e,{class:I=""}=e;function $(F){Fe.call(this,s,F)}function L(F){Fe.call(this,s,F)}function N(F){Fe.call(this,s,F)}function K(F){Fe.call(this,s,F)}function O(F){Fe.call(this,s,F)}function W(){m=this.value,l(0,m)}return s.$$set=F=>{"disabled"in F&&l(1,r=F.disabled),"error"in F&&l(2,o=F.error),"isValid"in F&&l(3,a=F.isValid),"placeholder"in F&&l(4,i=F.placeholder),"rows"in F&&l(5,f=F.rows),"spellcheck"in F&&l(6,u=F.spellcheck),"value"in F&&l(0,m=F.value),"label"in F&&l(7,c=F.label),"labelHidden"in F&&l(8,d=F.labelHidden),"id"in F&&l(9,b=F.id),"required"in F&&l(10,E=F.required),"description"in F&&l(11,h=F.description),"maxLength"in F&&l(12,w=F.maxLength),"class"in F&&l(13,I=F.class),"$$scope"in F&&l(14,n=F.$$scope)},[m,r,o,a,i,f,u,c,d,b,E,h,w,I,n,t,$,L,N,K,O,W]}class Dn extends ue{constructor(e){super(),ce(this,e,Nn,Vn,me,{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 Wt(s){let e,l=P("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(){v(e,"data-testid","data-encoder-cross-origin-credentials")},m(n,r){k(n,e,r),T(e,t)},p:ne,d(n){n&&_(e)}}}function Sn(s){let e,l,t,n,r,o,a,i,f,u,m,c;function d(L){s[4](L)}let b={id:"data-encoder-endpoint-input",rows:3,placeholder:P("data-encoder.endpoint-placeholder"),error:s[3],isValid:!s[3],label:P("data-encoder.endpoint-title"),description:P("data-encoder.endpoint-description")};s[0]!==void 0&&(b.value=s[0]),t=new Dn({props:b}),Ve.push(()=>Ne(t,"value",d));function E(L){s[5](L)}let h={label:P("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 ut({props:h}),Ve.push(()=>Ne(o,"checked",E));function w(L){s[6](L)}let I={label:P("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 ut({props:I}),Ve.push(()=>Ne(f,"checked",w));let $=s[2]&&Wt();return{c(){e=A("div"),l=A("div"),D(t.$$.fragment),r=H(),D(o.$$.fragment),i=H(),D(f.$$.fragment),m=H(),$&&$.c(),this.h()},l(L){e=R(L,"DIV",{class:!0});var N=q(e);l=R(N,"DIV",{class:!0});var K=q(l);S(t.$$.fragment,K),r=M(K),S(o.$$.fragment,K),i=M(K),S(f.$$.fragment,K),m=M(K),$&&$.l(K),K.forEach(_),N.forEach(_),this.h()},h(){v(l,"class","flex flex-col gap-2"),v(e,"class","flex flex-col gap-4")},m(L,N){k(L,e,N),T(e,l),B(t,l,null),T(l,r),B(o,l,null),T(l,i),B(f,l,null),T(l,m),$&&$.m(l,null),c=!0},p(L,[N]){const K={};N&8&&(K.error=L[3]),N&8&&(K.isValid=!L[3]),!n&&N&1&&(n=!0,K.value=L[0],De(()=>n=!1)),t.$set(K);const O={};!a&&N&2&&(a=!0,O.checked=L[1],De(()=>a=!1)),o.$set(O);const W={};!u&&N&4&&(u=!0,W.checked=L[2],De(()=>u=!1)),f.$set(W),L[2]?$?$.p(L,N):($=Wt(),$.c(),$.m(l,null)):$&&($.d(1),$=null)},i(L){c||(p(t.$$.fragment,L),p(o.$$.fragment,L),p(f.$$.fragment,L),c=!0)},o(L){g(t.$$.fragment,L),g(o.$$.fragment,L),g(f.$$.fragment,L),c=!1},d(L){L&&_(e),z(t),z(o),z(f),$&&$.d()}}}function Bn(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 zn extends ue{constructor(e){super(),ce(this,e,Bn,Sn,me,{endpoint:0,passToken:1,includeCreds:2,error:3})}}function Zt(s){let e,l,t,n,r=P("common.codec-server")+"",o,a,i,f=P("data-encoder.codec-server-description-prefix")+"",u,m,c,d=P("data-encoder.codec-server-description-suffix",{level:s[5]})+"",b,E,h,w,I,$,L,N,K,O,W,F,fe,V,j,se,he;m=new Rl({props:{href:"https://docs.temporal.io/dataconversion#codec-server",newTab:!0,$$slots:{default:[On]},$$scope:{ctx:s}}}),h=new mn({props:{"data-testid":"override-accordion",title:s[6]?P("data-encoder.browser-override-description",{level:s[5]}):P("data-encoder.no-browser-override-description",{level:s[5]}),$$slots:{default:[Rn]},$$scope:{ctx:s}}});function Te(Z){s[14](Z)}function re(Z){s[15](Z)}function Ie(Z){s[16](Z)}let be={error:s[4]};return s[0]!==void 0&&(be.endpoint=s[0]),s[1]!==void 0&&(be.passToken=s[1]),s[3]!==void 0&&(be.includeCreds=s[3]),I=new zn({props:be}),Ve.push(()=>Ne(I,"endpoint",Te)),Ve.push(()=>Ne(I,"passToken",re)),Ve.push(()=>Ne(I,"includeCreds",Ie)),W=new dt({props:{disabled:Boolean(s[4]),"data-testid":"confirm-data-encoder-button",type:"submit",$$slots:{default:[qn]},$$scope:{ctx:s}}}),W.$on("click",s[9]),fe=new dt({props:{variant:"ghost","data-testid":"cancel-data-encoder-button",$$slots:{default:[Pn]},$$scope:{ctx:s}}}),fe.$on("click",s[8]),{c(){e=A("aside"),l=A("div"),t=A("div"),n=A("h3"),o=Q(r),a=H(),i=A("p"),u=Q(f),D(m.$$.fragment),c=H(),b=Q(d),E=H(),D(h.$$.fragment),w=H(),D(I.$$.fragment),K=H(),O=A("div"),D(W.$$.fragment),F=H(),D(fe.$$.fragment),this.h()},l(Z){e=R(Z,"ASIDE",{class:!0});var J=q(e);l=R(J,"DIV",{class:!0});var Y=q(l);t=R(Y,"DIV",{class:!0});var Ee=q(t);n=R(Ee,"H3",{"data-testid":!0,class:!0});var oe=q(n);o=X(oe,r),oe.forEach(_),Ee.forEach(_),a=M(Y),i=R(Y,"P",{class:!0});var ve=q(i);u=X(ve,f),S(m.$$.fragment,ve),c=M(ve),b=X(ve,d),ve.forEach(_),E=M(Y),S(h.$$.fragment,Y),w=M(Y),S(I.$$.fragment,Y),K=M(Y),O=R(Y,"DIV",{class:!0});var $e=q(O);S(W.$$.fragment,$e),F=M($e),S(fe.$$.fragment,$e),$e.forEach(_),Y.forEach(_),J.forEach(_),this.h()},h(){v(n,"data-testid","data-encoder-title"),v(n,"class","text-xl"),v(t,"class","flex items-center justify-between space-x-2"),v(i,"class","text-sm"),v(O,"class","flex items-center gap-4"),v(l,"class","flex w-full flex-col gap-4 xl:w-1/2"),v(e,"class","relative flex h-auto w-full flex-col gap-6 border-b border-blue-100 bg-blue-50 p-12")},m(Z,J){k(Z,e,J),T(e,l),T(l,t),T(t,n),T(n,o),T(l,a),T(l,i),T(i,u),B(m,i,null),T(i,c),T(i,b),T(l,E),B(h,l,null),T(l,w),B(I,l,null),T(l,K),T(l,O),B(W,O,null),T(O,F),B(fe,O,null),j=!0,se||(he=[en(cn.call(null,e)),ke(e,"click-outside",s[17])],se=!0)},p(Z,J){const Y={};J&8388608&&(Y.$$scope={dirty:J,ctx:Z}),m.$set(Y),(!j||J&32)&&d!==(d=P("data-encoder.codec-server-description-suffix",{level:Z[5]})+"")&&ge(b,d);const Ee={};J&96&&(Ee.title=Z[6]?P("data-encoder.browser-override-description",{level:Z[5]}):P("data-encoder.no-browser-override-description",{level:Z[5]})),J&8388640&&(Ee.$$scope={dirty:J,ctx:Z}),h.$set(Ee);const oe={};J&16&&(oe.error=Z[4]),!$&&J&1&&($=!0,oe.endpoint=Z[0],De(()=>$=!1)),!L&&J&2&&(L=!0,oe.passToken=Z[1],De(()=>L=!1)),!N&&J&8&&(N=!0,oe.includeCreds=Z[3],De(()=>N=!1)),I.$set(oe);const ve={};J&16&&(ve.disabled=Boolean(Z[4])),J&8388608&&(ve.$$scope={dirty:J,ctx:Z}),W.$set(ve);const $e={};J&8388608&&($e.$$scope={dirty:J,ctx:Z}),fe.$set($e)},i(Z){j||(p(m.$$.fragment,Z),p(h.$$.fragment,Z),p(I.$$.fragment,Z),p(W.$$.fragment,Z),p(fe.$$.fragment,Z),V||bt(()=>{V=tn(e,_t,{y:-50,delay:0,duration:500}),V.start()}),j=!0)},o(Z){g(m.$$.fragment,Z),g(h.$$.fragment,Z),g(I.$$.fragment,Z),g(W.$$.fragment,Z),g(fe.$$.fragment,Z),j=!1},d(Z){Z&&_(e),z(m),z(h),z(I),z(W),z(fe),se=!1,ht(he)}}}function On(s){let e=P("common.codec-server")+"",l;return{c(){l=Q(e)},l(t){l=X(t,e)},m(t,n){k(t,l,n)},p:ne,d(t){t&&_(l)}}}function An(s){let e,l,t,n;return e=new At({props:{id:"use-configuration-endpoint-radio","data-testid":"use-configuration-endpoint-input",value:!1,label:P("data-encoder.no-browser-override-description",{level:s[5]})}}),t=new At({props:{id:"use-local-endpoint-radio","data-testid":"use-local-endpoint-input",value:!0,label:P("data-encoder.browser-override-description",{level:s[5]})}}),{c(){D(e.$$.fragment),l=H(),D(t.$$.fragment)},l(r){S(e.$$.fragment,r),l=M(r),S(t.$$.fragment,r)},m(r,o){B(e,r,o),k(r,l,o),B(t,r,o),n=!0},p(r,o){const a={};o&32&&(a.label=P("data-encoder.no-browser-override-description",{level:r[5]})),e.$set(a);const i={};o&32&&(i.label=P("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 Rn(s){let e,l;return e=new _n({props:{name:"override",group:s[7],$$slots:{default:[An]},$$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 qn(s){let e=P("common.apply")+"",l;return{c(){l=Q(e)},l(t){l=X(t,e)},m(t,n){k(t,l,n)},p:ne,d(t){t&&_(l)}}}function Pn(s){let e=P("common.cancel")+"",l;return{c(){l=Q(e)},l(t){l=X(t,e)},m(t,n){k(t,l,n)},p:ne,d(t){t&&_(l)}}}function jn(s){let e,l,t=s[2]&&Zt(s);return{c(){t&&t.c(),e=ae()},l(n){t&&t.l(n),e=ae()},m(n,r){t&&t.m(n,r),k(n,e,r),l=!0},p(n,[r]){n[2]?t?(t.p(n,r),r&4&&p(t,1)):(t=Zt(n),t.c(),p(t,1),t.m(e.parentNode,e)):t&&(de(),g(t,1,1,()=>{t=null}),_e())},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 Fn(s,e,l){let t,n,r,o,a,i,f,u=ne,m,c,d;ie(s,Bt,V=>l(18,r=V)),ie(s,qe,V=>l(13,o=V)),ie(s,ct,V=>l(19,i=V)),ie(s,He,V=>l(2,f=V)),ie(s,zt,V=>l(20,m=V)),ie(s,Ot,V=>l(21,c=V)),ie(s,mt,V=>l(22,d=V)),s.$$.on_destroy.push(()=>u());var b,E,h;let w=d??"",I=c??!1,$=m??!1,L=Ke(i);ie(s,L,V=>l(6,a=V));const N=()=>{l(0,w=d),l(1,I=c),l(3,$=m),pe(L,a=i,a),pe(He,f=!1,f)},K=()=>{l(4,t=""),pe(mt,d=w,d),pe(Ot,c=I,c),pe(zt,m=$,m),pe(He,f=!1,f),pe(ct,i=a,i),o.url.pathname.endsWith("history")&&pe(Bt,r=Date.now(),r)};function O(V){w=V,l(0,w)}function W(V){I=V,l(1,I)}function F(V){$=V,l(3,$)}const fe=()=>pe(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?P("common.namespaces"):P("common.cluster")),s.$$.dirty&3&&(I&&!Ql(w)?l(4,t=P("data-encoder.access-token-https-error")):w&&!Xl(w)?l(4,t=P("data-encoder.prefix-error")):l(4,t="")),s.$$.dirty&4&&(f||N())},l(4,t=""),[w,I,f,$,t,n,a,L,N,K,b,E,h,o,O,W,F,fe]}class Hn extends ue{constructor(e){super(),ce(this,e,Fn,jn,me,{})}}const Mn=s=>({}),Gt=s=>({});function Un(s){let e;const l=s[2].fallback,t=x(l,s,s[1],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&2)&&ee(t,l,n,n[1],e?le(l,n[1],r,Mn):te(n[1]),Gt)},i(n){e||(p(t,n),e=!0)},o(n){g(t,n),e=!1},d(n){t&&t.d(n)}}}function Kn(s){let e;const l=s[2].default,t=x(l,s,s[1],null);return{c(){t&&t.c()},l(n){t&&t.l(n)},m(n,r){t&&t.m(n,r),e=!0},p(n,r){t&&t.p&&(!e||r&2)&&ee(t,l,n,n[1],e?le(l,n[1],r,null):te(n[1]),null)},i(n){e||(p(t,n),e=!0)},o(n){g(t,n),e=!1},d(n){t&&t.d(n)}}}function Wn(s){let e,l,t,n;const r=[Kn,Un],o=[];function a(i,f){return i[0]?0:1}return e=a(s),l=o[e]=r[e](s),{c(){l.c(),t=ae()},l(i){l.l(i),t=ae()},m(i,f){o[e].m(i,f),k(i,t,f),n=!0},p(i,[f]){let u=e;e=a(i),e===u?o[e].p(i,f):(de(),g(o[u],1,1,()=>{o[u]=null}),_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))},i(i){n||(p(l),n=!0)},o(i){g(l),n=!1},d(i){o[e].d(i),i&&_(t)}}}function Zn(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 Gn extends ue{constructor(e){super(),ce(this,e,Zn,Wn,me,{enabled:0})}}const Qn=s=>({}),Qt=s=>({});function Xn(s){let e;const l=s[3].default,t=x(l,s,s[2],null);return{c(){t&&t.c()},l(n){t&&t.l(n)},m(n,r){t&&t.m(n,r),e=!0},p(n,r){t&&t.p&&(!e||r&4)&&ee(t,l,n,n[2],e?le(l,n[2],r,null):te(n[2]),null)},i(n){e||(p(t,n),e=!0)},o(n){g(t,n),e=!1},d(n){t&&t.d(n)}}}function Jn(s){let e;const l=s[3].fallback,t=x(l,s,s[2],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&4)&&ee(t,l,n,n[2],e?le(l,n[2],r,Qn):te(n[2]),Qt)},i(n){e||(p(t,n),e=!0)},o(n){g(t,n),e=!1},d(n){t&&t.d(n)}}}function Yn(s){let e,l,t,n;const r=[Jn,Xn],o=[];function a(i,f){var u,m,c;return i[0]||(c=(m=(u=i[1].data)==null?void 0:u.settings)==null?void 0:m.runtimeEnvironment)!=null&&c.isCloud?0:1}return e=a(s),l=o[e]=r[e](s),{c(){l.c(),t=ae()},l(i){l.l(i),t=ae()},m(i,f){o[e].m(i,f),k(i,t,f),n=!0},p(i,[f]){let u=e;e=a(i),e===u?o[e].p(i,f):(de(),g(o[u],1,1,()=>{o[u]=null}),_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))},i(i){n||(p(l),n=!0)},o(i){g(l),n=!1},d(i){o[e].d(i),i&&_(t)}}}function yn(s,e,l){let t;ie(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 pt extends ue{constructor(e){super(),ce(this,e,yn,Yn,me,{isCloud:0})}}function xn(){return!0}const es=s=>({}),Xt=s=>({});function ts(s){let e;const l=s[4].default,t=x(l,s,s[3],null);return{c(){t&&t.c()},l(n){t&&t.l(n)},m(n,r){t&&t.m(n,r),e=!0},p(n,r){t&&t.p&&(!e||r&8)&&ee(t,l,n,n[3],e?le(l,n[3],r,null):te(n[3]),null)},i(n){e||(p(t,n),e=!0)},o(n){g(t,n),e=!1},d(n){t&&t.d(n)}}}function ls(s){let e;const l=s[4].fallback,t=x(l,s,s[3],Xt);return{c(){t&&t.c()},l(n){t&&t.l(n)},m(n,r){t&&t.m(n,r),e=!0},p(n,r){t&&t.p&&(!e||r&8)&&ee(t,l,n,n[3],e?le(l,n[3],r,es):te(n[3]),Xt)},i(n){e||(p(t,n),e=!0)},o(n){g(t,n),e=!1},d(n){t&&t.d(n)}}}function ns(s){let e,l,t,n;const r=[ls,ts],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=ae()},l(i){l.l(i),t=ae()},m(i,f){o[e].m(i,f),k(i,t,f),n=!0},p(i,[f]){let u=e;e=a(i),e===u?o[e].p(i,f):(de(),g(o[u],1,1,()=>{o[u]=null}),_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))},i(i){n||(p(l),n=!0)},o(i){g(l),n=!1},d(i){o[e].d(i),i&&_(t)}}}function ss(s,e,l){let t,n;ie(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=Ul.test(xn?n.url.hostname:""))},[a,t,n,o,r]}class rs extends ue{constructor(e){super(),ce(this,e,ss,ns,me,{isCloud:0})}}function os(s){let e,l,t,n;return{c(){e=at("svg"),l=at("title"),t=Q(s[2]),n=at("path"),this.h()},l(r){e=ft(r,"svg",{width:!0,height:!0,viewBox:!0,xmlns:!0,"xmlns:xlink":!0,version:!0,role:!0});var o=q(e);l=ft(o,"title",{});var a=q(l);t=X(a,s[2]),a.forEach(_),n=ft(o,"path",{id:!0,d:!0,stroke:!0,fill:!0}),q(n).forEach(_),o.forEach(_),this.h()},h(){v(n,"id","Path"),v(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"),v(n,"stroke",s[3]),v(n,"fill",s[3]),v(e,"width",s[0]),v(e,"height",s[1]),v(e,"viewBox","0 0 100 100"),v(e,"xmlns","http://www.w3.org/2000/svg"),v(e,"xmlns:xlink","http://www.w3.org/1999/xlink"),v(e,"version","1.1"),v(e,"role","img")},m(r,o){k(r,e,o),T(e,l),T(l,t),T(e,n)},p(r,[o]){o&4&&ge(t,r[2]),o&1&&v(e,"width",r[0]),o&2&&v(e,"height",r[1])},i:ne,o:ne,d(r){r&&_(e)}}}function is(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 as extends ue{constructor(e){super(),ce(this,e,is,os,me,{width:0,height:1,isCloud:4,title:2})}}const gt=ql("navOpen",!1);const fs=s=>({}),Jt=s=>({}),us=s=>({}),Yt=s=>({}),cs=s=>({}),yt=s=>({}),ms=s=>({}),xt=s=>({});function el(s){let e,l=P("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(){v(e,"class","sr-only")},m(n,r){k(n,e,r),T(e,t)},p:ne,d(n){n&&_(e)}}}function ds(s){let e,l,t,n,r,o,a,i,f,u,m,c,d,b,E,h,w,I,$,L,N,K,O,W,F,fe,V,j,se,he;n=new as({props:{height:"24px",width:"24px",isCloud:s[0],title:P("workflows.recent-workflows-link")}}),i=new Le({props:{name:s[3]?"chevron-left":"chevron-right"}});const Te=s[11].top,re=x(Te,s,s[10],xt),Ie=s[11].middle,be=x(Ie,s,s[10],yt),Z=s[11].bottom,J=x(Z,s,s[10],Yt);let Y=s[2]&&el();const Ee=s[11].drawer,oe=x(Ee,s,s[10],Jt);let ve=[{class:"nav-header transition-width"},{"data-testid":"navigation-header"},s[5]],$e={};for(let U=0;Ul(9,o=h)),ie(s,gt,h=>l(3,a=h));let{$$slots:i={},$$scope:f}=e;var u,m,c;let{isCloud:d=!1}=e,{linkList:b}=e;function E(){pe(gt,a=!a,a)}return s.$$set=h=>{e=we(we({},e),Se(h)),l(5,r=Ae(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,c=l(7,m=l(6,u=o.data)===null||u===void 0?void 0:u.settings)===null||m===void 0?void 0:m.version)!==null&&c!==void 0?c:"")},[d,b,t,a,E,r,u,m,c,o,f,i]}class ps extends ue{constructor(e){super(),ce(this,e,_s,ds,me,{isCloud:0,linkList:1})}}function gs(s){let e;const l=s[9].default,t=x(l,s,s[8],null);return{c(){t&&t.c()},l(n){t&&t.l(n)},m(n,r){t&&t.m(n,r),e=!0},p(n,r){t&&t.p&&(!e||r&256)&&ee(t,l,n,n[8],e?le(l,n[8],r,null):te(n[8]),null)},i(n){e||(p(t,n),e=!0)},o(n){g(t,n),e=!1},d(n){t&&t.d(n)}}}function hs(s){let e,l;const t=s[9].default,n=x(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(){v(e,"href",s[0]),v(e,"class",Oe(s[5])+" svelte-4ukgao")},m(r,o){k(r,e,o),n&&n.m(e,null),l=!0},p(r,o){n&&n.p&&(!l||o&256)&&ee(n,t,r,r[8],l?le(t,r[8],o,null):te(r[8]),null),(!l||o&1)&&v(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 bs(s){let e,l;const t=s[9].default,n=x(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(){v(e,"href",s[0]),v(e,"rel","noreferrer"),v(e,"target","_blank"),v(e,"class",Oe(s[5])+" svelte-4ukgao")},m(r,o){k(r,e,o),n&&n.m(e,null),l=!0},p(r,o){n&&n.p&&(!l||o&256)&&ee(n,t,r,r[8],l?le(t,r[8],o,null):te(r[8]),null),(!l||o&1)&&v(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 vs(s){let e,l,t,n;const r=s[9].default,o=x(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(){v(e,"class",s[5]+" text-left svelte-4ukgao")},m(a,i){k(a,e,i),o&&o.m(e,null),l=!0,t||(n=ke(e,"click",function(){vt(s[4])&&s[4].apply(this,arguments)}),t=!0)},p(a,i){s=a,o&&o.p&&(!l||i&256)&&ee(o,r,s,s[8],l?le(r,s[8],i,null):te(s[8]),null)},i(a){l||(p(o,a),l=!0)},o(a){g(o,a),l=!1},d(a){a&&_(e),o&&o.d(a),t=!1,n()}}}function $s(s){let e,l,t,n,r,o;const a=[vs,bs,hs,gs],i=[];function f(u,m){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 m=q(e);t.l(m),m.forEach(_),this.h()},h(){v(e,"class",n=Oe(s[0]?"":s[5])+" svelte-4ukgao"),v(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,m){k(u,e,m),i[l].m(e,null),o=!0},p(u,[m]){let c=l;l=f(u),l===c?i[l].p(u,m):(de(),g(i[c],1,1,()=>{i[c]=null}),_e(),t=i[l],t?t.p(u,m):(t=i[l]=a[l](u),t.c()),p(t,1),t.m(e,null)),(!o||m&1&&n!==(n=Oe(u[0]?"":u[5])+" svelte-4ukgao"))&&v(e,"class",n),(!o||m&64&&r!==(r=u[6]["data-testid"]))&&v(e,"data-testid",r),(!o||m&3)&&G(e,"noFilter",u[1]),(!o||m&5)&&G(e,"wrap",u[2]),(!o||m&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 ks(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,m=`nav-row ${e.class} ${o?"cloud":"local"}`;return s.$$set=c=>{l(6,e=we(we({},e),Se(c))),"link"in c&&l(0,r=c.link),"isCloud"in c&&l(7,o=c.isCloud),"noFilter"in c&&l(1,a=c.noFilter),"wrap"in c&&l(2,i=c.wrap),"externalLink"in c&&l(3,f=c.externalLink),"handleClick"in c&&l(4,u=c.handleClick),"$$scope"in c&&l(8,n=c.$$scope)},e=Se(e),[r,a,i,f,u,m,e,o,n,t]}class Re extends ue{constructor(e){super(),ce(this,e,ks,$s,me,{link:0,isCloud:7,noFilter:1,wrap:2,externalLink:3,handleClick:4})}}function ws(s){let e;const l=s[3].default,t=x(l,s,s[4],null);return{c(){t&&t.c()},l(n){t&&t.l(n)},m(n,r){t&&t.m(n,r),e=!0},p(n,r){t&&t.p&&(!e||r&16)&&ee(t,l,n,n[4],e?le(l,n[4],r,null):te(n[4]),null)},i(n){e||(p(t,n),e=!0)},o(n){g(t,n),e=!1},d(n){t&&t.d(n)}}}function Es(s){let e,l;const t=[{right:!0},{hide:s[2]},{text:s[1]},s[0]];let n={$$slots:{default:[ws]},$$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),Se(u)),l(5,n=Ae(e,t)),"props"in u&&l(0,i=u.props),"text"in u&&l(1,f=u.text),"$$scope"in u&&l(4,a=u.$$scope)},[i,f,r,o,a]}class Pe extends ue{constructor(e){super(),ce(this,e,Cs,Es,me,{props:0,text:1})}}const Ls=s=>({}),tl=s=>({}),Ts=s=>({}),ll=s=>({}),Is=s=>({}),nl=s=>({}),Vs=s=>({}),sl=s=>({}),Ns=s=>({}),rl=s=>({});function Ds(s){let e,l,t;return l=new Le({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(){v(e,"class","nav-icon svelte-1jb7rp7")},m(n,r){k(n,e,r),B(l,e,null),t=!0},p:ne,i(n){t||(p(l.$$.fragment,n),t=!0)},o(n){g(l.$$.fragment,n),t=!1},d(n){n&&_(e),z(l)}}}function Ss(s){let e,l,t,n=P("common.workflows")+"",r,o;return e=new Pe({props:{text:P("common.workflows"),$$slots:{default:[Ds]},$$scope:{ctx:s}}}),{c(){D(e.$$.fragment),l=H(),t=A("div"),r=Q(n),this.h()},l(a){S(e.$$.fragment,a),l=M(a),t=R(a,"DIV",{class:!0});var i=q(t);r=X(i,n),i.forEach(_),this.h()},h(){v(t,"class","nav-title svelte-1jb7rp7")},m(a,i){B(e,a,i),k(a,l,i),k(a,t,i),T(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 Bs(s){let e,l,t;return l=new Le({props:{name:"schedules",height:25,width:24}}),{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(){v(e,"class","nav-icon svelte-1jb7rp7")},m(n,r){k(n,e,r),B(l,e,null),t=!0},p:ne,i(n){t||(p(l.$$.fragment,n),t=!0)},o(n){g(l.$$.fragment,n),t=!1},d(n){n&&_(e),z(l)}}}function zs(s){let e,l,t,n=P("common.schedules")+"",r,o;return e=new Pe({props:{text:P("common.schedules"),$$slots:{default:[Bs]},$$scope:{ctx:s}}}),{c(){D(e.$$.fragment),l=H(),t=A("div"),r=Q(n),this.h()},l(a){S(e.$$.fragment,a),l=M(a),t=R(a,"DIV",{class:!0});var i=q(t);r=X(i,n),i.forEach(_),this.h()},h(){v(t,"class","nav-title svelte-1jb7rp7")},m(a,i){B(e,a,i),k(a,l,i),k(a,t,i),T(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 Os(s){let e,l;return e=new Re({props:{link:s[2].schedules,isCloud:s[0],"data-testid":"schedules-button",$$slots:{default:[zs]},$$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 As(s){var t,n;let e,l;return e=new Gn({props:{enabled:Boolean((n=(t=s[1])==null?void 0:t.namespaceInfo)==null?void 0:n.supportsSchedules),$$slots:{default:[Os]},$$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 Rs(s){let e,l,t;return l=new Le({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(){v(e,"class","nav-icon svelte-1jb7rp7")},m(n,r){k(n,e,r),B(l,e,null),t=!0},p:ne,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=P("common.archive")+"",r,o;return e=new Pe({props:{text:P("common.archive"),$$slots:{default:[Rs]},$$scope:{ctx:s}}}),{c(){D(e.$$.fragment),l=H(),t=A("div"),r=Q(n),this.h()},l(a){S(e.$$.fragment,a),l=M(a),t=R(a,"DIV",{class:!0});var i=q(t);r=X(i,n),i.forEach(_),this.h()},h(){v(t,"class","nav-title svelte-1jb7rp7")},m(a,i){B(e,a,i),k(a,l,i),k(a,t,i),T(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 Ps(s){let e,l;return e=new Re({props:{link:s[2].archive,isCloud:s[0],"data-testid":"archive-button",$$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].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 js(s){let e,l,t;return l=new Le({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(){v(e,"class","nav-icon svelte-1jb7rp7")},m(n,r){k(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 Fs(s){let e,l,t,n=P("batch.nav-title")+"",r,o;return e=new Pe({props:{text:P("batch.list-page-title"),$$slots:{default:[js]},$$scope:{ctx:s}}}),{c(){D(e.$$.fragment),l=H(),t=A("div"),r=Q(n),this.h()},l(a){S(e.$$.fragment,a),l=M(a),t=R(a,"DIV",{class:!0});var i=q(t);r=X(i,n),i.forEach(_),this.h()},h(){v(t,"class","nav-title svelte-1jb7rp7")},m(a,i){B(e,a,i),k(a,l,i),k(a,t,i),T(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 Hs(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:[Ss]},$$scope:{ctx:s}}}),t=new pt({props:{isCloud:s[0],$$slots:{default:[As]},$$scope:{ctx:s}}});const u=s[4].top,m=x(u,s,s[5],tl);return o=new pt({props:{isCloud:s[0],$$slots:{default:[Ps]},$$scope:{ctx:s}}}),i=new Re({props:{link:s[2].batchOperations,isCloud:s[0],$$slots:{default:[Fs]},$$scope:{ctx:s}}}),{c(){D(e.$$.fragment),l=H(),D(t.$$.fragment),n=H(),m&&m.c(),r=H(),D(o.$$.fragment),a=H(),D(i.$$.fragment)},l(c){S(e.$$.fragment,c),l=M(c),S(t.$$.fragment,c),n=M(c),m&&m.l(c),r=M(c),S(o.$$.fragment,c),a=M(c),S(i.$$.fragment,c)},m(c,d){B(e,c,d),k(c,l,d),B(t,c,d),k(c,n,d),m&&m.m(c,d),k(c,r,d),B(o,c,d),k(c,a,d),B(i,c,d),f=!0},p(c,d){const b={};d&4&&(b.link=c[2].workflows),d&1&&(b.isCloud=c[0]),d&32&&(b.$$scope={dirty:d,ctx:c}),e.$set(b);const E={};d&1&&(E.isCloud=c[0]),d&39&&(E.$$scope={dirty:d,ctx:c}),t.$set(E),m&&m.p&&(!f||d&32)&&ee(m,u,c,c[5],f?le(u,c[5],d,Ls):te(c[5]),tl);const h={};d&1&&(h.isCloud=c[0]),d&37&&(h.$$scope={dirty:d,ctx:c}),o.$set(h);const w={};d&4&&(w.link=c[2].batchOperations),d&1&&(w.isCloud=c[0]),d&40&&(w.$$scope={dirty:d,ctx:c}),i.$set(w)},i(c){f||(p(e.$$.fragment,c),p(t.$$.fragment,c),p(m,c),p(o.$$.fragment,c),p(i.$$.fragment,c),f=!0)},o(c){g(e.$$.fragment,c),g(t.$$.fragment,c),g(m,c),g(o.$$.fragment,c),g(i.$$.fragment,c),f=!1},d(c){z(e,c),c&&_(l),z(t,c),c&&_(n),m&&m.d(c),c&&_(r),z(o,c),c&&_(a),z(i,c)}}}function Ms(s){let e,l,t;return l=new Le({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(){v(e,"class","nav-icon svelte-1jb7rp7")},m(n,r){k(n,e,r),B(l,e,null),t=!0},p:ne,i(n){t||(p(l.$$.fragment,n),t=!0)},o(n){g(l.$$.fragment,n),t=!1},d(n){n&&_(e),z(l)}}}function Us(s){let e,l,t,n=P("common.namespaces")+"",r,o;return e=new Pe({props:{text:P("common.namespaces"),$$slots:{default:[Ms]},$$scope:{ctx:s}}}),{c(){D(e.$$.fragment),l=H(),t=A("div"),r=Q(n),this.h()},l(a){S(e.$$.fragment,a),l=M(a),t=R(a,"DIV",{class:!0});var i=q(t);r=X(i,n),i.forEach(_),this.h()},h(){v(t,"class","nav-title svelte-1jb7rp7")},m(a,i){B(e,a,i),k(a,l,i),k(a,t,i),T(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 Ks(s){let e,l;return e=new Re({props:{link:s[2].namespaces,isCloud:s[0],"data-testid":"namespaces-button",$$slots:{default:[Us]},$$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 Ws(s){let e,l,t;e=new rs({props:{isCloud:s[0],$$slots:{default:[Ks]},$$scope:{ctx:s}}});const n=s[4].middle,r=x(n,s,s[5],ll);return{c(){D(e.$$.fragment),l=H(),r&&r.c()},l(o){S(e.$$.fragment,o),l=M(o),r&&r.l(o)},m(o,a){B(e,o,a),k(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)&&ee(r,n,o,o[5],t?le(n,o[5],a,Ts):te(o[5]),ll)},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 Zs(s){let e,l,t;return l=new Le({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(){v(e,"class","nav-icon svelte-1jb7rp7")},m(n,r){k(n,e,r),B(l,e,null),t=!0},p:ne,i(n){t||(p(l.$$.fragment,n),t=!0)},o(n){g(l.$$.fragment,n),t=!1},d(n){n&&_(e),z(l)}}}function Gs(s){let e,l,t,n=P("common.import")+"",r,o;return e=new Pe({props:{text:P("common.import"),$$slots:{default:[Zs]},$$scope:{ctx:s}}}),{c(){D(e.$$.fragment),l=H(),t=A("div"),r=Q(n),this.h()},l(a){S(e.$$.fragment,a),l=M(a),t=R(a,"DIV",{class:!0});var i=q(t);r=X(i,n),i.forEach(_),this.h()},h(){v(t,"class","nav-title svelte-1jb7rp7")},m(a,i){B(e,a,i),k(a,l,i),k(a,t,i),T(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 Qs(s){let e,l;return e=new Re({props:{link:s[2].import,isCloud:s[0],"data-testid":"import-button",$$slots:{default:[Gs]},$$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 Xs(s){let e,l;return e=new pt({props:{isCloud:s[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&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 Js(s){let e,l,t;return l=new Le({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(){v(e,"class","nav-icon svelte-1jb7rp7")},m(n,r){k(n,e,r),B(l,e,null),t=!0},p:ne,i(n){t||(p(l.$$.fragment,n),t=!0)},o(n){g(l.$$.fragment,n),t=!1},d(n){n&&_(e),z(l)}}}function Ys(s){let e,l,t,n=P("common.feedback")+"",r,o;return e=new Pe({props:{text:P("common.feedback"),$$slots:{default:[Js]},$$scope:{ctx:s}}}),{c(){D(e.$$.fragment),l=H(),t=A("div"),r=Q(n),this.h()},l(a){S(e.$$.fragment,a),l=M(a),t=R(a,"DIV",{class:!0});var i=q(t);r=X(i,n),i.forEach(_),this.h()},h(){v(t,"class","nav-title svelte-1jb7rp7")},m(a,i){B(e,a,i),k(a,l,i),k(a,t,i),T(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 ys(s){let e,l;return e=new Re({props:{link:s[2].feedback,isCloud:s[0],externalLink:!0,$$slots:{default:[Ys]},$$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 xs(s){let e,l,t;const n=s[4].bottom,r=x(n,s,s[5],rl),o=s[4].import,a=x(o,s,s[5],sl),i=a||Xs(s),f=s[4].feedback,u=x(f,s,s[5],nl),m=u||ys(s);return{c(){r&&r.c(),e=H(),i&&i.c(),l=H(),m&&m.c()},l(c){r&&r.l(c),e=M(c),i&&i.l(c),l=M(c),m&&m.l(c)},m(c,d){r&&r.m(c,d),k(c,e,d),i&&i.m(c,d),k(c,l,d),m&&m.m(c,d),t=!0},p(c,d){r&&r.p&&(!t||d&32)&&ee(r,n,c,c[5],t?le(n,c[5],d,Ns):te(c[5]),rl),a?a.p&&(!t||d&32)&&ee(a,o,c,c[5],t?le(o,c[5],d,Vs):te(c[5]),sl):i&&i.p&&(!t||d&5)&&i.p(c,t?d:-1),u?u.p&&(!t||d&32)&&ee(u,f,c,c[5],t?le(f,c[5],d,Is):te(c[5]),nl):m&&m.p&&(!t||d&5)&&m.p(c,t?d:-1)},i(c){t||(p(r,c),p(i,c),p(m,c),t=!0)},o(c){g(r,c),g(i,c),g(m,c),t=!1},d(c){r&&r.d(c),c&&_(e),i&&i.d(c),c&&_(l),m&&m.d(c)}}}function er(s){let e,l;return e=new ps({props:{isCloud:s[0],linkList:s[2],"aria-label":P("common.primary"),$$slots:{bottom:[xs],middle:[Ws],top:[Hs]},$$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 tr(s,e,l){let t;ie(s,pn,m=>l(6,t=m));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 nn(()=>{clearInterval(u)}),s.$$set=m=>{"isCloud"in m&&l(0,o=m.isCloud),"activeNamespace"in m&&l(1,a=m.activeNamespace),"linkList"in m&&l(2,i=m.linkList),"$$scope"in m&&l(5,r=m.$$scope)},[o,a,i,f,n,r]}class lr extends ue{constructor(e){super(),ce(this,e,tr,er,me,{isCloud:0,activeNamespace:1,linkList:2})}}function nr(s){let e=P("common.skip-nav")+"",l;return{c(){l=Q(e)},l(t){l=X(t,e)},m(t,n){k(t,l,n)},p:ne,d(t){t&&_(l)}}}function sr(s){let e,l;return e=new Rl({props:{id:"skip-nav",href:"#content",class:"absolute left-1/2 z-100 -translate-y-full p-1 focus:translate-y-0",$$slots:{default:[nr]},$$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 rr extends ue{constructor(e){super(),ce(this,e,null,sr,me,{})}}const or=Ke("notRequested"),jl=dn([qe,mt,ct,un,or,Sl],([s,e,l,t,n,r])=>{var E,h,w,I,$,L,N,K,O;const o=s.params.namespace,a=(w=(h=(E=s==null?void 0:s.data)==null?void 0:E.settings)==null?void 0:h.codec)==null?void 0:w.endpoint,i=Boolean((L=($=(I=s==null?void 0:s.data)==null?void 0:I.settings)==null?void 0:$.codec)==null?void 0:L.passAccessToken),f=Boolean((O=(K=(N=s==null?void 0:s.data)==null?void 0:N.settings)==null?void 0:K.codec)==null?void 0:O.includeCredentials),u=l?e:a||e,m=r==null?void 0:r.accessToken;return{namespace:o,settingsEndpoint:a,settingsPassAccessToken:i,settingsIncludeCredentials:f,endpoint:u,accessToken:m,hasNotRequested:u?t==="notRequested":n==="notRequested",hasError:u?t==="error":n==="error",hasSuccess:u?t==="success":n==="success"}});function ir(s){let e,l;return e=new Ge({props:{bottomRight:!0,text:P("data-encoder.configure-codec-server"),$$slots:{default:[fr]},$$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,t,n;const r=[mr,cr,ur],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=ae()},l(i){l&&l.l(i),t=ae()},m(i,f){~e&&o[e].m(i,f),k(i,t,f),n=!0},p(i,f){let u=e;e=a(i),e===u?~e&&o[e].p(i,f):(l&&(de(),g(o[u],1,1,()=>{o[u]=null}),_e()),~e?(l=o[e],l?l.p(i,f):(l=o[e]=r[e](i),l.c()),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 fr(s){let e,l;return e=new We({props:{label:P("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:ne,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 Ge({props:{bottomRight:!0,text:P("data-encoder.codec-server-success"),$$slots:{default:[dr]},$$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 cr(s){let e,l;return e=new Ge({props:{bottomRight:!0,text:P("data-encoder.codec-server-error"),$$slots:{default:[_r]},$$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 mr(s){let e,l;return e=new Ge({props:{bottomRight:!0,text:P("data-encoder.codec-server-configured"),$$slots:{default:[pr]},$$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 dr(s){let e,l;return e=new We({props:{label:P("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:ne,i(t){l||(p(e.$$.fragment,t),l=!0)},o(t){g(e.$$.fragment,t),l=!1},d(t){z(e,t)}}}function _r(s){let e,l;return e=new We({props:{label:P("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:ne,i(t){l||(p(e.$$.fragment,t),l=!0)},o(t){g(e.$$.fragment,t),l=!1},d(t){z(e,t)}}}function pr(s){let e,l;return e=new We({props:{label:P("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:ne,i(t){l||(p(e.$$.fragment,t),l=!0)},o(t){g(e.$$.fragment,t),l=!1},d(t){z(e,t)}}}function gr(s){let e,l,t,n;const r=[ar,ir],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(){v(e,"class","mx-1 flex items-center")},m(i,f){k(i,e,f),o[l].m(e,null),n=!0},p(i,[f]){let u=l;l=a(i),l===u?o[l].p(i,f):(de(),g(o[u],1,1,()=>{o[u]=null}),_e(),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 hr(s,e,l){let t,n;return ie(s,He,o=>l(2,t=o)),ie(s,jl,o=>l(0,n=o)),[n,()=>{var o;pe(He,t=!t,t),t&&((o=document.getElementById("content-wrapper"))===null||o===void 0||o.scrollTo(0,0))}]}class br extends ue{constructor(e){super(),ce(this,e,hr,gr,me,{})}}function ol(s,e,l){const t=s.slice();return t[18]=e[l].value,t[19]=e[l].label,t[20]=e[l].offset,t[21]=e[l].abbr,t}function il(s,e,l){const t=s.slice();return t[18]=e[l].value,t[19]=e[l].label,t}function vr(s){let e;return{c(){e=Q(s[3])},l(l){e=X(l,s[3])},m(l,t){k(l,e,t)},p(l,t){t&8&&ge(e,l[3])},d(l){l&&_(e)}}}function $r(s){let e,l;return e=new Le({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:ne,i(t){l||(p(e.$$.fragment,t),l=!0)},o(t){g(e.$$.fragment,t),l=!1},d(t){z(e,t)}}}function al(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 m(d){s[16](d)}let c={label:P("common.relative"),id:"relative-toggle",labelPosition:"left","data-testid":"timezones-relative-toggle"};return s[5]!==void 0&&(c.checked=s[5]),t=new ut({props:c}),Ve.push(()=>Ne(t,"checked",m)),t.$on("change",s[9]),o=new Pl({}),{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=Nl("cluster");return await Dl(l,{request:e}).then(t=>t)},wn=async(s,e=fetch)=>{if(s.runtimeEnvironment.isCloud)return;const l=Nl("systemInfo");return await Dl(l,{request:e}).then(t=>t)},st="user",En=(s=Bl)=>{if(!s)return{};const e=document.cookie.split(";");let l=0,t=e.find(r=>r.includes(st+l)),n="";for(;t;){const[r,o]=t.split("=");n+=o,l++,t=e.find(a=>a.includes(st+l))}if(n)try{const r=Gl(n),o=Jl(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{}},Cn=(s=Bl)=>{if(!s)return;const e=document.cookie.split(";");let l=0,t=e.find(n=>n.includes(st+l));for(;t;){const[n]=t.split("=");document.cookie=`${n}=; max-age=-1; path=/`,l++,t=e.find(r=>r.includes(st+l))}},Ln=(s,e)=>!s.auth.enabled||Boolean(e==null?void 0:e.accessToken),Tn=async function({fetch:s}){const e=await Ml(s),l=En();l!=null&&l.accessToken&&(Kl(l),Cn());const t=Wl();if(!Ln(e,t))throw Fl(302,zl());Hl(e,s);const n=await kn(e,s),r=await wn(e,s);return{user:t,settings:e,cluster:n,systemInfo:r}},Si=Object.freeze(Object.defineProperty({__proto__:null,load:Tn},Symbol.toStringTag,{value:"Module"}));const In=s=>({}),Ft=s=>({});function Ht(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(){v(e,"class","text-sm")},m(t,n){k(t,e,n),T(e,l)},p(t,n){n&2048&&ge(l,t[11])},d(t){t&&_(e)}}}function Mt(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;v(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)),v(e,"class","count svelte-14m0wnf")},m(i,f){k(i,e,f),T(e,l),T(l,n),T(e,r),T(e,o)},p(i,f){var u,m,c;f&1&&t!==(t=(((u=i[0])==null?void 0:u.length)??0)+"")&&ge(n,t),f&4097&&G(l,"warn",i[12]-((m=i[0])==null?void 0:m.length)<=5),f&4097&&G(l,"error",i[12]===((c=i[0])==null?void 0:c.length)),f&4096&&ge(o,i[12])},d(i){i&&_(e)}}}function Ut(s){let e,l,t=s[2]&&Kt(s);const n=s[15].error,r=x(n,s,s[14],Ft);return{c(){t&&t.c(),e=H(),r&&r.c()},l(o){t&&t.l(o),e=M(o),r&&r.l(o)},m(o,a){t&&t.m(o,a),k(o,e,a),r&&r.m(o,a),l=!0},p(o,a){o[2]?t?t.p(o,a):(t=Kt(o),t.c(),t.m(e.parentNode,e)):t&&(t.d(1),t=null),r&&r.p&&(!l||a&16384)&&ee(r,n,o,o[14],l?le(n,o[14],a,In):te(o[14]),Ft)},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 Kt(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){k(t,e,n),T(e,l)},p(t,n){n&4&&ge(l,t[2])},d(t){t&&_(e)}}}function Vn(s){let e,l,t,n,r,o,a,i,f,u,m,c,d,b,E,h,w=s[11]&&Ht(s),I=s[12]&&!s[1]&&Mt(s),$=!s[3]&&Ut(s);return{c(){e=A("div"),l=A("label"),t=Q(s[7]),n=H(),w&&w.c(),r=H(),o=A("div"),a=A("textarea"),f=H(),I&&I.c(),u=H(),m=A("div"),$&&$.c(),this.h()},l(L){e=R(L,"DIV",{class:!0});var N=q(e);l=R(N,"LABEL",{for:!0,class:!0});var K=q(l);t=X(K,s[7]),K.forEach(_),n=M(N),w&&w.l(N),r=M(N),o=R(N,"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=M(O),I&&I.l(O),O.forEach(_),u=M(N),m=R(N,"DIV",{class:!0,"aria-live":!0});var W=q(m);$&&$.l(W),W.forEach(_),N.forEach(_),this.h()},h(){v(l,"for",s[9]),v(l,"class","svelte-14m0wnf"),G(l,"required",s[10]),G(l,"sr-only",s[8]),v(a,"class","min-h-fit w-full rounded border border-gray-900 py-2 px-3 font-mono text-sm svelte-14m0wnf"),v(a,"id",s[9]),a.disabled=s[1],v(a,"placeholder",s[4]),v(a,"rows",s[5]),v(a,"spellcheck",s[6]),v(a,"maxlength",i=s[12]>0?s[12]:void 0),G(a,"error",!s[3]),v(o,"class","relative"),v(m,"class","error-msg svelte-14m0wnf"),v(m,"aria-live",c=s[3]?"off":"assertive"),G(m,"min-width",s[12]),v(e,"class",d=Oe(s[13])+" svelte-14m0wnf")},m(L,N){k(L,e,N),T(e,l),T(l,t),T(e,n),w&&w.m(e,null),T(e,r),T(e,o),T(o,a),It(a,s[0]),T(o,f),I&&I.m(o,null),T(e,u),T(e,m),$&&$.m(m,null),b=!0,E||(h=[ke(a,"input",s[21]),ke(a,"input",s[16]),ke(a,"change",s[17]),ke(a,"focus",s[18]),ke(a,"blur",s[19]),ke(a,"keydown",lt(s[20]))],E=!0)},p(L,[N]){(!b||N&128)&&ge(t,L[7]),(!b||N&512)&&v(l,"for",L[9]),(!b||N&1024)&&G(l,"required",L[10]),(!b||N&256)&&G(l,"sr-only",L[8]),L[11]?w?w.p(L,N):(w=Ht(L),w.c(),w.m(e,r)):w&&(w.d(1),w=null),(!b||N&512)&&v(a,"id",L[9]),(!b||N&2)&&(a.disabled=L[1]),(!b||N&16)&&v(a,"placeholder",L[4]),(!b||N&32)&&v(a,"rows",L[5]),(!b||N&64)&&v(a,"spellcheck",L[6]),(!b||N&4096&&i!==(i=L[12]>0?L[12]:void 0))&&v(a,"maxlength",i),N&1&&It(a,L[0]),(!b||N&8)&&G(a,"error",!L[3]),L[12]&&!L[1]?I?I.p(L,N):(I=Mt(L),I.c(),I.m(o,null)):I&&(I.d(1),I=null),L[3]?$&&(de(),g($,1,1,()=>{$=null}),_e()):$?($.p(L,N),N&8&&p($,1)):($=Ut(L),$.c(),p($,1),$.m(m,null)),(!b||N&8&&c!==(c=L[3]?"off":"assertive"))&&v(m,"aria-live",c),(!b||N&4096)&&G(m,"min-width",L[12]),(!b||N&8192&&d!==(d=Oe(L[13])+" svelte-14m0wnf"))&&v(e,"class",d)},i(L){b||(p($),b=!0)},o(L){g($),b=!1},d(L){L&&_(e),w&&w.d(),I&&I.d(),$&&$.d(),E=!1,ht(h)}}}function Nn(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:m}=e,{label:c}=e,{labelHidden:d=!1}=e,{id:b}=e,{required:E=!1}=e,{description:h=""}=e,{maxLength:w=0}=e,{class:I=""}=e;function $(F){Fe.call(this,s,F)}function L(F){Fe.call(this,s,F)}function N(F){Fe.call(this,s,F)}function K(F){Fe.call(this,s,F)}function O(F){Fe.call(this,s,F)}function W(){m=this.value,l(0,m)}return s.$$set=F=>{"disabled"in F&&l(1,r=F.disabled),"error"in F&&l(2,o=F.error),"isValid"in F&&l(3,a=F.isValid),"placeholder"in F&&l(4,i=F.placeholder),"rows"in F&&l(5,f=F.rows),"spellcheck"in F&&l(6,u=F.spellcheck),"value"in F&&l(0,m=F.value),"label"in F&&l(7,c=F.label),"labelHidden"in F&&l(8,d=F.labelHidden),"id"in F&&l(9,b=F.id),"required"in F&&l(10,E=F.required),"description"in F&&l(11,h=F.description),"maxLength"in F&&l(12,w=F.maxLength),"class"in F&&l(13,I=F.class),"$$scope"in F&&l(14,n=F.$$scope)},[m,r,o,a,i,f,u,c,d,b,E,h,w,I,n,t,$,L,N,K,O,W]}class Dn extends ue{constructor(e){super(),ce(this,e,Nn,Vn,me,{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 Wt(s){let e,l=P("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(){v(e,"data-testid","data-encoder-cross-origin-credentials")},m(n,r){k(n,e,r),T(e,t)},p:ne,d(n){n&&_(e)}}}function Sn(s){let e,l,t,n,r,o,a,i,f,u,m,c;function d(L){s[4](L)}let b={id:"data-encoder-endpoint-input",rows:3,placeholder:P("data-encoder.endpoint-placeholder"),error:s[3],isValid:!s[3],label:P("data-encoder.endpoint-title"),description:P("data-encoder.endpoint-description")};s[0]!==void 0&&(b.value=s[0]),t=new Dn({props:b}),Ve.push(()=>Ne(t,"value",d));function E(L){s[5](L)}let h={label:P("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 ut({props:h}),Ve.push(()=>Ne(o,"checked",E));function w(L){s[6](L)}let I={label:P("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 ut({props:I}),Ve.push(()=>Ne(f,"checked",w));let $=s[2]&&Wt();return{c(){e=A("div"),l=A("div"),D(t.$$.fragment),r=H(),D(o.$$.fragment),i=H(),D(f.$$.fragment),m=H(),$&&$.c(),this.h()},l(L){e=R(L,"DIV",{class:!0});var N=q(e);l=R(N,"DIV",{class:!0});var K=q(l);S(t.$$.fragment,K),r=M(K),S(o.$$.fragment,K),i=M(K),S(f.$$.fragment,K),m=M(K),$&&$.l(K),K.forEach(_),N.forEach(_),this.h()},h(){v(l,"class","flex flex-col gap-2"),v(e,"class","flex flex-col gap-4")},m(L,N){k(L,e,N),T(e,l),B(t,l,null),T(l,r),B(o,l,null),T(l,i),B(f,l,null),T(l,m),$&&$.m(l,null),c=!0},p(L,[N]){const K={};N&8&&(K.error=L[3]),N&8&&(K.isValid=!L[3]),!n&&N&1&&(n=!0,K.value=L[0],De(()=>n=!1)),t.$set(K);const O={};!a&&N&2&&(a=!0,O.checked=L[1],De(()=>a=!1)),o.$set(O);const W={};!u&&N&4&&(u=!0,W.checked=L[2],De(()=>u=!1)),f.$set(W),L[2]?$?$.p(L,N):($=Wt(),$.c(),$.m(l,null)):$&&($.d(1),$=null)},i(L){c||(p(t.$$.fragment,L),p(o.$$.fragment,L),p(f.$$.fragment,L),c=!0)},o(L){g(t.$$.fragment,L),g(o.$$.fragment,L),g(f.$$.fragment,L),c=!1},d(L){L&&_(e),z(t),z(o),z(f),$&&$.d()}}}function Bn(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 zn extends ue{constructor(e){super(),ce(this,e,Bn,Sn,me,{endpoint:0,passToken:1,includeCreds:2,error:3})}}function Zt(s){let e,l,t,n,r=P("common.codec-server")+"",o,a,i,f=P("data-encoder.codec-server-description-prefix")+"",u,m,c,d=P("data-encoder.codec-server-description-suffix",{level:s[5]})+"",b,E,h,w,I,$,L,N,K,O,W,F,fe,V,j,se,he;m=new Rl({props:{href:"https://docs.temporal.io/dataconversion#codec-server",newTab:!0,$$slots:{default:[On]},$$scope:{ctx:s}}}),h=new mn({props:{"data-testid":"override-accordion",title:s[6]?P("data-encoder.browser-override-description",{level:s[5]}):P("data-encoder.no-browser-override-description",{level:s[5]}),$$slots:{default:[Rn]},$$scope:{ctx:s}}});function Te(Z){s[14](Z)}function re(Z){s[15](Z)}function Ie(Z){s[16](Z)}let be={error:s[4]};return s[0]!==void 0&&(be.endpoint=s[0]),s[1]!==void 0&&(be.passToken=s[1]),s[3]!==void 0&&(be.includeCreds=s[3]),I=new zn({props:be}),Ve.push(()=>Ne(I,"endpoint",Te)),Ve.push(()=>Ne(I,"passToken",re)),Ve.push(()=>Ne(I,"includeCreds",Ie)),W=new dt({props:{disabled:Boolean(s[4]),"data-testid":"confirm-data-encoder-button",type:"submit",$$slots:{default:[qn]},$$scope:{ctx:s}}}),W.$on("click",s[9]),fe=new dt({props:{variant:"ghost","data-testid":"cancel-data-encoder-button",$$slots:{default:[Pn]},$$scope:{ctx:s}}}),fe.$on("click",s[8]),{c(){e=A("aside"),l=A("div"),t=A("div"),n=A("h3"),o=Q(r),a=H(),i=A("p"),u=Q(f),D(m.$$.fragment),c=H(),b=Q(d),E=H(),D(h.$$.fragment),w=H(),D(I.$$.fragment),K=H(),O=A("div"),D(W.$$.fragment),F=H(),D(fe.$$.fragment),this.h()},l(Z){e=R(Z,"ASIDE",{class:!0});var J=q(e);l=R(J,"DIV",{class:!0});var Y=q(l);t=R(Y,"DIV",{class:!0});var Ee=q(t);n=R(Ee,"H3",{"data-testid":!0,class:!0});var oe=q(n);o=X(oe,r),oe.forEach(_),Ee.forEach(_),a=M(Y),i=R(Y,"P",{class:!0});var ve=q(i);u=X(ve,f),S(m.$$.fragment,ve),c=M(ve),b=X(ve,d),ve.forEach(_),E=M(Y),S(h.$$.fragment,Y),w=M(Y),S(I.$$.fragment,Y),K=M(Y),O=R(Y,"DIV",{class:!0});var $e=q(O);S(W.$$.fragment,$e),F=M($e),S(fe.$$.fragment,$e),$e.forEach(_),Y.forEach(_),J.forEach(_),this.h()},h(){v(n,"data-testid","data-encoder-title"),v(n,"class","text-xl"),v(t,"class","flex items-center justify-between space-x-2"),v(i,"class","text-sm"),v(O,"class","flex items-center gap-4"),v(l,"class","flex w-full flex-col gap-4 xl:w-1/2"),v(e,"class","relative flex h-auto w-full flex-col gap-6 border-b border-blue-100 bg-blue-50 p-12")},m(Z,J){k(Z,e,J),T(e,l),T(l,t),T(t,n),T(n,o),T(l,a),T(l,i),T(i,u),B(m,i,null),T(i,c),T(i,b),T(l,E),B(h,l,null),T(l,w),B(I,l,null),T(l,K),T(l,O),B(W,O,null),T(O,F),B(fe,O,null),j=!0,se||(he=[en(cn.call(null,e)),ke(e,"click-outside",s[17])],se=!0)},p(Z,J){const Y={};J&8388608&&(Y.$$scope={dirty:J,ctx:Z}),m.$set(Y),(!j||J&32)&&d!==(d=P("data-encoder.codec-server-description-suffix",{level:Z[5]})+"")&&ge(b,d);const Ee={};J&96&&(Ee.title=Z[6]?P("data-encoder.browser-override-description",{level:Z[5]}):P("data-encoder.no-browser-override-description",{level:Z[5]})),J&8388640&&(Ee.$$scope={dirty:J,ctx:Z}),h.$set(Ee);const oe={};J&16&&(oe.error=Z[4]),!$&&J&1&&($=!0,oe.endpoint=Z[0],De(()=>$=!1)),!L&&J&2&&(L=!0,oe.passToken=Z[1],De(()=>L=!1)),!N&&J&8&&(N=!0,oe.includeCreds=Z[3],De(()=>N=!1)),I.$set(oe);const ve={};J&16&&(ve.disabled=Boolean(Z[4])),J&8388608&&(ve.$$scope={dirty:J,ctx:Z}),W.$set(ve);const $e={};J&8388608&&($e.$$scope={dirty:J,ctx:Z}),fe.$set($e)},i(Z){j||(p(m.$$.fragment,Z),p(h.$$.fragment,Z),p(I.$$.fragment,Z),p(W.$$.fragment,Z),p(fe.$$.fragment,Z),V||bt(()=>{V=tn(e,_t,{y:-50,delay:0,duration:500}),V.start()}),j=!0)},o(Z){g(m.$$.fragment,Z),g(h.$$.fragment,Z),g(I.$$.fragment,Z),g(W.$$.fragment,Z),g(fe.$$.fragment,Z),j=!1},d(Z){Z&&_(e),z(m),z(h),z(I),z(W),z(fe),se=!1,ht(he)}}}function On(s){let e=P("common.codec-server")+"",l;return{c(){l=Q(e)},l(t){l=X(t,e)},m(t,n){k(t,l,n)},p:ne,d(t){t&&_(l)}}}function An(s){let e,l,t,n;return e=new At({props:{id:"use-configuration-endpoint-radio","data-testid":"use-configuration-endpoint-input",value:!1,label:P("data-encoder.no-browser-override-description",{level:s[5]})}}),t=new At({props:{id:"use-local-endpoint-radio","data-testid":"use-local-endpoint-input",value:!0,label:P("data-encoder.browser-override-description",{level:s[5]})}}),{c(){D(e.$$.fragment),l=H(),D(t.$$.fragment)},l(r){S(e.$$.fragment,r),l=M(r),S(t.$$.fragment,r)},m(r,o){B(e,r,o),k(r,l,o),B(t,r,o),n=!0},p(r,o){const a={};o&32&&(a.label=P("data-encoder.no-browser-override-description",{level:r[5]})),e.$set(a);const i={};o&32&&(i.label=P("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 Rn(s){let e,l;return e=new _n({props:{name:"override",group:s[7],$$slots:{default:[An]},$$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 qn(s){let e=P("common.apply")+"",l;return{c(){l=Q(e)},l(t){l=X(t,e)},m(t,n){k(t,l,n)},p:ne,d(t){t&&_(l)}}}function Pn(s){let e=P("common.cancel")+"",l;return{c(){l=Q(e)},l(t){l=X(t,e)},m(t,n){k(t,l,n)},p:ne,d(t){t&&_(l)}}}function jn(s){let e,l,t=s[2]&&Zt(s);return{c(){t&&t.c(),e=ae()},l(n){t&&t.l(n),e=ae()},m(n,r){t&&t.m(n,r),k(n,e,r),l=!0},p(n,[r]){n[2]?t?(t.p(n,r),r&4&&p(t,1)):(t=Zt(n),t.c(),p(t,1),t.m(e.parentNode,e)):t&&(de(),g(t,1,1,()=>{t=null}),_e())},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 Fn(s,e,l){let t,n,r,o,a,i,f,u=ne,m,c,d;ie(s,Bt,V=>l(18,r=V)),ie(s,qe,V=>l(13,o=V)),ie(s,ct,V=>l(19,i=V)),ie(s,He,V=>l(2,f=V)),ie(s,zt,V=>l(20,m=V)),ie(s,Ot,V=>l(21,c=V)),ie(s,mt,V=>l(22,d=V)),s.$$.on_destroy.push(()=>u());var b,E,h;let w=d??"",I=c??!1,$=m??!1,L=Ke(i);ie(s,L,V=>l(6,a=V));const N=()=>{l(0,w=d),l(1,I=c),l(3,$=m),pe(L,a=i,a),pe(He,f=!1,f)},K=()=>{l(4,t=""),pe(mt,d=w,d),pe(Ot,c=I,c),pe(zt,m=$,m),pe(He,f=!1,f),pe(ct,i=a,i),o.url.pathname.endsWith("history")&&pe(Bt,r=Date.now(),r)};function O(V){w=V,l(0,w)}function W(V){I=V,l(1,I)}function F(V){$=V,l(3,$)}const fe=()=>pe(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?P("common.namespaces"):P("common.cluster")),s.$$.dirty&3&&(I&&!Ql(w)?l(4,t=P("data-encoder.access-token-https-error")):w&&!Xl(w)?l(4,t=P("data-encoder.prefix-error")):l(4,t="")),s.$$.dirty&4&&(f||N())},l(4,t=""),[w,I,f,$,t,n,a,L,N,K,b,E,h,o,O,W,F,fe]}class Hn extends ue{constructor(e){super(),ce(this,e,Fn,jn,me,{})}}const Mn=s=>({}),Gt=s=>({});function Un(s){let e;const l=s[2].fallback,t=x(l,s,s[1],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&2)&&ee(t,l,n,n[1],e?le(l,n[1],r,Mn):te(n[1]),Gt)},i(n){e||(p(t,n),e=!0)},o(n){g(t,n),e=!1},d(n){t&&t.d(n)}}}function Kn(s){let e;const l=s[2].default,t=x(l,s,s[1],null);return{c(){t&&t.c()},l(n){t&&t.l(n)},m(n,r){t&&t.m(n,r),e=!0},p(n,r){t&&t.p&&(!e||r&2)&&ee(t,l,n,n[1],e?le(l,n[1],r,null):te(n[1]),null)},i(n){e||(p(t,n),e=!0)},o(n){g(t,n),e=!1},d(n){t&&t.d(n)}}}function Wn(s){let e,l,t,n;const r=[Kn,Un],o=[];function a(i,f){return i[0]?0:1}return e=a(s),l=o[e]=r[e](s),{c(){l.c(),t=ae()},l(i){l.l(i),t=ae()},m(i,f){o[e].m(i,f),k(i,t,f),n=!0},p(i,[f]){let u=e;e=a(i),e===u?o[e].p(i,f):(de(),g(o[u],1,1,()=>{o[u]=null}),_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))},i(i){n||(p(l),n=!0)},o(i){g(l),n=!1},d(i){o[e].d(i),i&&_(t)}}}function Zn(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 Gn extends ue{constructor(e){super(),ce(this,e,Zn,Wn,me,{enabled:0})}}const Qn=s=>({}),Qt=s=>({});function Xn(s){let e;const l=s[3].default,t=x(l,s,s[2],null);return{c(){t&&t.c()},l(n){t&&t.l(n)},m(n,r){t&&t.m(n,r),e=!0},p(n,r){t&&t.p&&(!e||r&4)&&ee(t,l,n,n[2],e?le(l,n[2],r,null):te(n[2]),null)},i(n){e||(p(t,n),e=!0)},o(n){g(t,n),e=!1},d(n){t&&t.d(n)}}}function Jn(s){let e;const l=s[3].fallback,t=x(l,s,s[2],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&4)&&ee(t,l,n,n[2],e?le(l,n[2],r,Qn):te(n[2]),Qt)},i(n){e||(p(t,n),e=!0)},o(n){g(t,n),e=!1},d(n){t&&t.d(n)}}}function Yn(s){let e,l,t,n;const r=[Jn,Xn],o=[];function a(i,f){var u,m,c;return i[0]||(c=(m=(u=i[1].data)==null?void 0:u.settings)==null?void 0:m.runtimeEnvironment)!=null&&c.isCloud?0:1}return e=a(s),l=o[e]=r[e](s),{c(){l.c(),t=ae()},l(i){l.l(i),t=ae()},m(i,f){o[e].m(i,f),k(i,t,f),n=!0},p(i,[f]){let u=e;e=a(i),e===u?o[e].p(i,f):(de(),g(o[u],1,1,()=>{o[u]=null}),_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))},i(i){n||(p(l),n=!0)},o(i){g(l),n=!1},d(i){o[e].d(i),i&&_(t)}}}function yn(s,e,l){let t;ie(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 pt extends ue{constructor(e){super(),ce(this,e,yn,Yn,me,{isCloud:0})}}function xn(){return!0}const es=s=>({}),Xt=s=>({});function ts(s){let e;const l=s[4].default,t=x(l,s,s[3],null);return{c(){t&&t.c()},l(n){t&&t.l(n)},m(n,r){t&&t.m(n,r),e=!0},p(n,r){t&&t.p&&(!e||r&8)&&ee(t,l,n,n[3],e?le(l,n[3],r,null):te(n[3]),null)},i(n){e||(p(t,n),e=!0)},o(n){g(t,n),e=!1},d(n){t&&t.d(n)}}}function ls(s){let e;const l=s[4].fallback,t=x(l,s,s[3],Xt);return{c(){t&&t.c()},l(n){t&&t.l(n)},m(n,r){t&&t.m(n,r),e=!0},p(n,r){t&&t.p&&(!e||r&8)&&ee(t,l,n,n[3],e?le(l,n[3],r,es):te(n[3]),Xt)},i(n){e||(p(t,n),e=!0)},o(n){g(t,n),e=!1},d(n){t&&t.d(n)}}}function ns(s){let e,l,t,n;const r=[ls,ts],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=ae()},l(i){l.l(i),t=ae()},m(i,f){o[e].m(i,f),k(i,t,f),n=!0},p(i,[f]){let u=e;e=a(i),e===u?o[e].p(i,f):(de(),g(o[u],1,1,()=>{o[u]=null}),_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))},i(i){n||(p(l),n=!0)},o(i){g(l),n=!1},d(i){o[e].d(i),i&&_(t)}}}function ss(s,e,l){let t,n;ie(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=Ul.test(xn?n.url.hostname:""))},[a,t,n,o,r]}class rs extends ue{constructor(e){super(),ce(this,e,ss,ns,me,{isCloud:0})}}function os(s){let e,l,t,n;return{c(){e=at("svg"),l=at("title"),t=Q(s[2]),n=at("path"),this.h()},l(r){e=ft(r,"svg",{width:!0,height:!0,viewBox:!0,xmlns:!0,"xmlns:xlink":!0,version:!0,role:!0});var o=q(e);l=ft(o,"title",{});var a=q(l);t=X(a,s[2]),a.forEach(_),n=ft(o,"path",{id:!0,d:!0,stroke:!0,fill:!0}),q(n).forEach(_),o.forEach(_),this.h()},h(){v(n,"id","Path"),v(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"),v(n,"stroke",s[3]),v(n,"fill",s[3]),v(e,"width",s[0]),v(e,"height",s[1]),v(e,"viewBox","0 0 100 100"),v(e,"xmlns","http://www.w3.org/2000/svg"),v(e,"xmlns:xlink","http://www.w3.org/1999/xlink"),v(e,"version","1.1"),v(e,"role","img")},m(r,o){k(r,e,o),T(e,l),T(l,t),T(e,n)},p(r,[o]){o&4&&ge(t,r[2]),o&1&&v(e,"width",r[0]),o&2&&v(e,"height",r[1])},i:ne,o:ne,d(r){r&&_(e)}}}function is(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 as extends ue{constructor(e){super(),ce(this,e,is,os,me,{width:0,height:1,isCloud:4,title:2})}}const gt=ql("navOpen",!1);const fs=s=>({}),Jt=s=>({}),us=s=>({}),Yt=s=>({}),cs=s=>({}),yt=s=>({}),ms=s=>({}),xt=s=>({});function el(s){let e,l=P("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(){v(e,"class","sr-only")},m(n,r){k(n,e,r),T(e,t)},p:ne,d(n){n&&_(e)}}}function ds(s){let e,l,t,n,r,o,a,i,f,u,m,c,d,b,E,h,w,I,$,L,N,K,O,W,F,fe,V,j,se,he;n=new as({props:{height:"24px",width:"24px",isCloud:s[0],title:P("workflows.recent-workflows-link")}}),i=new Le({props:{name:s[3]?"chevron-left":"chevron-right"}});const Te=s[11].top,re=x(Te,s,s[10],xt),Ie=s[11].middle,be=x(Ie,s,s[10],yt),Z=s[11].bottom,J=x(Z,s,s[10],Yt);let Y=s[2]&&el();const Ee=s[11].drawer,oe=x(Ee,s,s[10],Jt);let ve=[{class:"nav-header transition-width"},{"data-testid":"navigation-header"},s[5]],$e={};for(let U=0;Ul(9,o=h)),ie(s,gt,h=>l(3,a=h));let{$$slots:i={},$$scope:f}=e;var u,m,c;let{isCloud:d=!1}=e,{linkList:b}=e;function E(){pe(gt,a=!a,a)}return s.$$set=h=>{e=we(we({},e),Se(h)),l(5,r=Ae(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,c=l(7,m=l(6,u=o.data)===null||u===void 0?void 0:u.settings)===null||m===void 0?void 0:m.version)!==null&&c!==void 0?c:"")},[d,b,t,a,E,r,u,m,c,o,f,i]}class ps extends ue{constructor(e){super(),ce(this,e,_s,ds,me,{isCloud:0,linkList:1})}}function gs(s){let e;const l=s[9].default,t=x(l,s,s[8],null);return{c(){t&&t.c()},l(n){t&&t.l(n)},m(n,r){t&&t.m(n,r),e=!0},p(n,r){t&&t.p&&(!e||r&256)&&ee(t,l,n,n[8],e?le(l,n[8],r,null):te(n[8]),null)},i(n){e||(p(t,n),e=!0)},o(n){g(t,n),e=!1},d(n){t&&t.d(n)}}}function hs(s){let e,l;const t=s[9].default,n=x(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(){v(e,"href",s[0]),v(e,"class",Oe(s[5])+" svelte-4ukgao")},m(r,o){k(r,e,o),n&&n.m(e,null),l=!0},p(r,o){n&&n.p&&(!l||o&256)&&ee(n,t,r,r[8],l?le(t,r[8],o,null):te(r[8]),null),(!l||o&1)&&v(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 bs(s){let e,l;const t=s[9].default,n=x(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(){v(e,"href",s[0]),v(e,"rel","noreferrer"),v(e,"target","_blank"),v(e,"class",Oe(s[5])+" svelte-4ukgao")},m(r,o){k(r,e,o),n&&n.m(e,null),l=!0},p(r,o){n&&n.p&&(!l||o&256)&&ee(n,t,r,r[8],l?le(t,r[8],o,null):te(r[8]),null),(!l||o&1)&&v(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 vs(s){let e,l,t,n;const r=s[9].default,o=x(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(){v(e,"class",s[5]+" text-left svelte-4ukgao")},m(a,i){k(a,e,i),o&&o.m(e,null),l=!0,t||(n=ke(e,"click",function(){vt(s[4])&&s[4].apply(this,arguments)}),t=!0)},p(a,i){s=a,o&&o.p&&(!l||i&256)&&ee(o,r,s,s[8],l?le(r,s[8],i,null):te(s[8]),null)},i(a){l||(p(o,a),l=!0)},o(a){g(o,a),l=!1},d(a){a&&_(e),o&&o.d(a),t=!1,n()}}}function $s(s){let e,l,t,n,r,o;const a=[vs,bs,hs,gs],i=[];function f(u,m){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 m=q(e);t.l(m),m.forEach(_),this.h()},h(){v(e,"class",n=Oe(s[0]?"":s[5])+" svelte-4ukgao"),v(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,m){k(u,e,m),i[l].m(e,null),o=!0},p(u,[m]){let c=l;l=f(u),l===c?i[l].p(u,m):(de(),g(i[c],1,1,()=>{i[c]=null}),_e(),t=i[l],t?t.p(u,m):(t=i[l]=a[l](u),t.c()),p(t,1),t.m(e,null)),(!o||m&1&&n!==(n=Oe(u[0]?"":u[5])+" svelte-4ukgao"))&&v(e,"class",n),(!o||m&64&&r!==(r=u[6]["data-testid"]))&&v(e,"data-testid",r),(!o||m&3)&&G(e,"noFilter",u[1]),(!o||m&5)&&G(e,"wrap",u[2]),(!o||m&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 ks(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,m=`nav-row ${e.class} ${o?"cloud":"local"}`;return s.$$set=c=>{l(6,e=we(we({},e),Se(c))),"link"in c&&l(0,r=c.link),"isCloud"in c&&l(7,o=c.isCloud),"noFilter"in c&&l(1,a=c.noFilter),"wrap"in c&&l(2,i=c.wrap),"externalLink"in c&&l(3,f=c.externalLink),"handleClick"in c&&l(4,u=c.handleClick),"$$scope"in c&&l(8,n=c.$$scope)},e=Se(e),[r,a,i,f,u,m,e,o,n,t]}class Re extends ue{constructor(e){super(),ce(this,e,ks,$s,me,{link:0,isCloud:7,noFilter:1,wrap:2,externalLink:3,handleClick:4})}}function ws(s){let e;const l=s[3].default,t=x(l,s,s[4],null);return{c(){t&&t.c()},l(n){t&&t.l(n)},m(n,r){t&&t.m(n,r),e=!0},p(n,r){t&&t.p&&(!e||r&16)&&ee(t,l,n,n[4],e?le(l,n[4],r,null):te(n[4]),null)},i(n){e||(p(t,n),e=!0)},o(n){g(t,n),e=!1},d(n){t&&t.d(n)}}}function Es(s){let e,l;const t=[{right:!0},{hide:s[2]},{text:s[1]},s[0]];let n={$$slots:{default:[ws]},$$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),Se(u)),l(5,n=Ae(e,t)),"props"in u&&l(0,i=u.props),"text"in u&&l(1,f=u.text),"$$scope"in u&&l(4,a=u.$$scope)},[i,f,r,o,a]}class Pe extends ue{constructor(e){super(),ce(this,e,Cs,Es,me,{props:0,text:1})}}const Ls=s=>({}),tl=s=>({}),Ts=s=>({}),ll=s=>({}),Is=s=>({}),nl=s=>({}),Vs=s=>({}),sl=s=>({}),Ns=s=>({}),rl=s=>({});function Ds(s){let e,l,t;return l=new Le({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(){v(e,"class","nav-icon svelte-1jb7rp7")},m(n,r){k(n,e,r),B(l,e,null),t=!0},p:ne,i(n){t||(p(l.$$.fragment,n),t=!0)},o(n){g(l.$$.fragment,n),t=!1},d(n){n&&_(e),z(l)}}}function Ss(s){let e,l,t,n=P("common.workflows")+"",r,o;return e=new Pe({props:{text:P("common.workflows"),$$slots:{default:[Ds]},$$scope:{ctx:s}}}),{c(){D(e.$$.fragment),l=H(),t=A("div"),r=Q(n),this.h()},l(a){S(e.$$.fragment,a),l=M(a),t=R(a,"DIV",{class:!0});var i=q(t);r=X(i,n),i.forEach(_),this.h()},h(){v(t,"class","nav-title svelte-1jb7rp7")},m(a,i){B(e,a,i),k(a,l,i),k(a,t,i),T(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 Bs(s){let e,l,t;return l=new Le({props:{name:"schedules",height:25,width:24}}),{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(){v(e,"class","nav-icon svelte-1jb7rp7")},m(n,r){k(n,e,r),B(l,e,null),t=!0},p:ne,i(n){t||(p(l.$$.fragment,n),t=!0)},o(n){g(l.$$.fragment,n),t=!1},d(n){n&&_(e),z(l)}}}function zs(s){let e,l,t,n=P("common.schedules")+"",r,o;return e=new Pe({props:{text:P("common.schedules"),$$slots:{default:[Bs]},$$scope:{ctx:s}}}),{c(){D(e.$$.fragment),l=H(),t=A("div"),r=Q(n),this.h()},l(a){S(e.$$.fragment,a),l=M(a),t=R(a,"DIV",{class:!0});var i=q(t);r=X(i,n),i.forEach(_),this.h()},h(){v(t,"class","nav-title svelte-1jb7rp7")},m(a,i){B(e,a,i),k(a,l,i),k(a,t,i),T(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 Os(s){let e,l;return e=new Re({props:{link:s[2].schedules,isCloud:s[0],"data-testid":"schedules-button",$$slots:{default:[zs]},$$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 As(s){var t,n;let e,l;return e=new Gn({props:{enabled:Boolean((n=(t=s[1])==null?void 0:t.namespaceInfo)==null?void 0:n.supportsSchedules),$$slots:{default:[Os]},$$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 Rs(s){let e,l,t;return l=new Le({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(){v(e,"class","nav-icon svelte-1jb7rp7")},m(n,r){k(n,e,r),B(l,e,null),t=!0},p:ne,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=P("common.archive")+"",r,o;return e=new Pe({props:{text:P("common.archive"),$$slots:{default:[Rs]},$$scope:{ctx:s}}}),{c(){D(e.$$.fragment),l=H(),t=A("div"),r=Q(n),this.h()},l(a){S(e.$$.fragment,a),l=M(a),t=R(a,"DIV",{class:!0});var i=q(t);r=X(i,n),i.forEach(_),this.h()},h(){v(t,"class","nav-title svelte-1jb7rp7")},m(a,i){B(e,a,i),k(a,l,i),k(a,t,i),T(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 Ps(s){let e,l;return e=new Re({props:{link:s[2].archive,isCloud:s[0],"data-testid":"archive-button",$$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].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 js(s){let e,l,t;return l=new Le({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(){v(e,"class","nav-icon svelte-1jb7rp7")},m(n,r){k(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 Fs(s){let e,l,t,n=P("batch.nav-title")+"",r,o;return e=new Pe({props:{text:P("batch.list-page-title"),$$slots:{default:[js]},$$scope:{ctx:s}}}),{c(){D(e.$$.fragment),l=H(),t=A("div"),r=Q(n),this.h()},l(a){S(e.$$.fragment,a),l=M(a),t=R(a,"DIV",{class:!0});var i=q(t);r=X(i,n),i.forEach(_),this.h()},h(){v(t,"class","nav-title svelte-1jb7rp7")},m(a,i){B(e,a,i),k(a,l,i),k(a,t,i),T(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 Hs(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:[Ss]},$$scope:{ctx:s}}}),t=new pt({props:{isCloud:s[0],$$slots:{default:[As]},$$scope:{ctx:s}}});const u=s[4].top,m=x(u,s,s[5],tl);return o=new pt({props:{isCloud:s[0],$$slots:{default:[Ps]},$$scope:{ctx:s}}}),i=new Re({props:{link:s[2].batchOperations,isCloud:s[0],$$slots:{default:[Fs]},$$scope:{ctx:s}}}),{c(){D(e.$$.fragment),l=H(),D(t.$$.fragment),n=H(),m&&m.c(),r=H(),D(o.$$.fragment),a=H(),D(i.$$.fragment)},l(c){S(e.$$.fragment,c),l=M(c),S(t.$$.fragment,c),n=M(c),m&&m.l(c),r=M(c),S(o.$$.fragment,c),a=M(c),S(i.$$.fragment,c)},m(c,d){B(e,c,d),k(c,l,d),B(t,c,d),k(c,n,d),m&&m.m(c,d),k(c,r,d),B(o,c,d),k(c,a,d),B(i,c,d),f=!0},p(c,d){const b={};d&4&&(b.link=c[2].workflows),d&1&&(b.isCloud=c[0]),d&32&&(b.$$scope={dirty:d,ctx:c}),e.$set(b);const E={};d&1&&(E.isCloud=c[0]),d&39&&(E.$$scope={dirty:d,ctx:c}),t.$set(E),m&&m.p&&(!f||d&32)&&ee(m,u,c,c[5],f?le(u,c[5],d,Ls):te(c[5]),tl);const h={};d&1&&(h.isCloud=c[0]),d&37&&(h.$$scope={dirty:d,ctx:c}),o.$set(h);const w={};d&4&&(w.link=c[2].batchOperations),d&1&&(w.isCloud=c[0]),d&40&&(w.$$scope={dirty:d,ctx:c}),i.$set(w)},i(c){f||(p(e.$$.fragment,c),p(t.$$.fragment,c),p(m,c),p(o.$$.fragment,c),p(i.$$.fragment,c),f=!0)},o(c){g(e.$$.fragment,c),g(t.$$.fragment,c),g(m,c),g(o.$$.fragment,c),g(i.$$.fragment,c),f=!1},d(c){z(e,c),c&&_(l),z(t,c),c&&_(n),m&&m.d(c),c&&_(r),z(o,c),c&&_(a),z(i,c)}}}function Ms(s){let e,l,t;return l=new Le({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(){v(e,"class","nav-icon svelte-1jb7rp7")},m(n,r){k(n,e,r),B(l,e,null),t=!0},p:ne,i(n){t||(p(l.$$.fragment,n),t=!0)},o(n){g(l.$$.fragment,n),t=!1},d(n){n&&_(e),z(l)}}}function Us(s){let e,l,t,n=P("common.namespaces")+"",r,o;return e=new Pe({props:{text:P("common.namespaces"),$$slots:{default:[Ms]},$$scope:{ctx:s}}}),{c(){D(e.$$.fragment),l=H(),t=A("div"),r=Q(n),this.h()},l(a){S(e.$$.fragment,a),l=M(a),t=R(a,"DIV",{class:!0});var i=q(t);r=X(i,n),i.forEach(_),this.h()},h(){v(t,"class","nav-title svelte-1jb7rp7")},m(a,i){B(e,a,i),k(a,l,i),k(a,t,i),T(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 Ks(s){let e,l;return e=new Re({props:{link:s[2].namespaces,isCloud:s[0],"data-testid":"namespaces-button",$$slots:{default:[Us]},$$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 Ws(s){let e,l,t;e=new rs({props:{isCloud:s[0],$$slots:{default:[Ks]},$$scope:{ctx:s}}});const n=s[4].middle,r=x(n,s,s[5],ll);return{c(){D(e.$$.fragment),l=H(),r&&r.c()},l(o){S(e.$$.fragment,o),l=M(o),r&&r.l(o)},m(o,a){B(e,o,a),k(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)&&ee(r,n,o,o[5],t?le(n,o[5],a,Ts):te(o[5]),ll)},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 Zs(s){let e,l,t;return l=new Le({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(){v(e,"class","nav-icon svelte-1jb7rp7")},m(n,r){k(n,e,r),B(l,e,null),t=!0},p:ne,i(n){t||(p(l.$$.fragment,n),t=!0)},o(n){g(l.$$.fragment,n),t=!1},d(n){n&&_(e),z(l)}}}function Gs(s){let e,l,t,n=P("common.import")+"",r,o;return e=new Pe({props:{text:P("common.import"),$$slots:{default:[Zs]},$$scope:{ctx:s}}}),{c(){D(e.$$.fragment),l=H(),t=A("div"),r=Q(n),this.h()},l(a){S(e.$$.fragment,a),l=M(a),t=R(a,"DIV",{class:!0});var i=q(t);r=X(i,n),i.forEach(_),this.h()},h(){v(t,"class","nav-title svelte-1jb7rp7")},m(a,i){B(e,a,i),k(a,l,i),k(a,t,i),T(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 Qs(s){let e,l;return e=new Re({props:{link:s[2].import,isCloud:s[0],"data-testid":"import-button",$$slots:{default:[Gs]},$$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 Xs(s){let e,l;return e=new pt({props:{isCloud:s[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&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 Js(s){let e,l,t;return l=new Le({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(){v(e,"class","nav-icon svelte-1jb7rp7")},m(n,r){k(n,e,r),B(l,e,null),t=!0},p:ne,i(n){t||(p(l.$$.fragment,n),t=!0)},o(n){g(l.$$.fragment,n),t=!1},d(n){n&&_(e),z(l)}}}function Ys(s){let e,l,t,n=P("common.feedback")+"",r,o;return e=new Pe({props:{text:P("common.feedback"),$$slots:{default:[Js]},$$scope:{ctx:s}}}),{c(){D(e.$$.fragment),l=H(),t=A("div"),r=Q(n),this.h()},l(a){S(e.$$.fragment,a),l=M(a),t=R(a,"DIV",{class:!0});var i=q(t);r=X(i,n),i.forEach(_),this.h()},h(){v(t,"class","nav-title svelte-1jb7rp7")},m(a,i){B(e,a,i),k(a,l,i),k(a,t,i),T(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 ys(s){let e,l;return e=new Re({props:{link:s[2].feedback,isCloud:s[0],externalLink:!0,$$slots:{default:[Ys]},$$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 xs(s){let e,l,t;const n=s[4].bottom,r=x(n,s,s[5],rl),o=s[4].import,a=x(o,s,s[5],sl),i=a||Xs(s),f=s[4].feedback,u=x(f,s,s[5],nl),m=u||ys(s);return{c(){r&&r.c(),e=H(),i&&i.c(),l=H(),m&&m.c()},l(c){r&&r.l(c),e=M(c),i&&i.l(c),l=M(c),m&&m.l(c)},m(c,d){r&&r.m(c,d),k(c,e,d),i&&i.m(c,d),k(c,l,d),m&&m.m(c,d),t=!0},p(c,d){r&&r.p&&(!t||d&32)&&ee(r,n,c,c[5],t?le(n,c[5],d,Ns):te(c[5]),rl),a?a.p&&(!t||d&32)&&ee(a,o,c,c[5],t?le(o,c[5],d,Vs):te(c[5]),sl):i&&i.p&&(!t||d&5)&&i.p(c,t?d:-1),u?u.p&&(!t||d&32)&&ee(u,f,c,c[5],t?le(f,c[5],d,Is):te(c[5]),nl):m&&m.p&&(!t||d&5)&&m.p(c,t?d:-1)},i(c){t||(p(r,c),p(i,c),p(m,c),t=!0)},o(c){g(r,c),g(i,c),g(m,c),t=!1},d(c){r&&r.d(c),c&&_(e),i&&i.d(c),c&&_(l),m&&m.d(c)}}}function er(s){let e,l;return e=new ps({props:{isCloud:s[0],linkList:s[2],"aria-label":P("common.primary"),$$slots:{bottom:[xs],middle:[Ws],top:[Hs]},$$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 tr(s,e,l){let t;ie(s,pn,m=>l(6,t=m));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 nn(()=>{clearInterval(u)}),s.$$set=m=>{"isCloud"in m&&l(0,o=m.isCloud),"activeNamespace"in m&&l(1,a=m.activeNamespace),"linkList"in m&&l(2,i=m.linkList),"$$scope"in m&&l(5,r=m.$$scope)},[o,a,i,f,n,r]}class lr extends ue{constructor(e){super(),ce(this,e,tr,er,me,{isCloud:0,activeNamespace:1,linkList:2})}}function nr(s){let e=P("common.skip-nav")+"",l;return{c(){l=Q(e)},l(t){l=X(t,e)},m(t,n){k(t,l,n)},p:ne,d(t){t&&_(l)}}}function sr(s){let e,l;return e=new Rl({props:{id:"skip-nav",href:"#content",class:"absolute left-1/2 z-100 -translate-y-full p-1 focus:translate-y-0",$$slots:{default:[nr]},$$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 rr extends ue{constructor(e){super(),ce(this,e,null,sr,me,{})}}const or=Ke("notRequested"),jl=dn([qe,mt,ct,un,or,Sl],([s,e,l,t,n,r])=>{var E,h,w,I,$,L,N,K,O;const o=s.params.namespace,a=(w=(h=(E=s==null?void 0:s.data)==null?void 0:E.settings)==null?void 0:h.codec)==null?void 0:w.endpoint,i=Boolean((L=($=(I=s==null?void 0:s.data)==null?void 0:I.settings)==null?void 0:$.codec)==null?void 0:L.passAccessToken),f=Boolean((O=(K=(N=s==null?void 0:s.data)==null?void 0:N.settings)==null?void 0:K.codec)==null?void 0:O.includeCredentials),u=l?e:a||e,m=r==null?void 0:r.accessToken;return{namespace:o,settingsEndpoint:a,settingsPassAccessToken:i,settingsIncludeCredentials:f,endpoint:u,accessToken:m,hasNotRequested:u?t==="notRequested":n==="notRequested",hasError:u?t==="error":n==="error",hasSuccess:u?t==="success":n==="success"}});function ir(s){let e,l;return e=new Ge({props:{bottomRight:!0,text:P("data-encoder.configure-codec-server"),$$slots:{default:[fr]},$$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,t,n;const r=[mr,cr,ur],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=ae()},l(i){l&&l.l(i),t=ae()},m(i,f){~e&&o[e].m(i,f),k(i,t,f),n=!0},p(i,f){let u=e;e=a(i),e===u?~e&&o[e].p(i,f):(l&&(de(),g(o[u],1,1,()=>{o[u]=null}),_e()),~e?(l=o[e],l?l.p(i,f):(l=o[e]=r[e](i),l.c()),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 fr(s){let e,l;return e=new We({props:{label:P("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:ne,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 Ge({props:{bottomRight:!0,text:P("data-encoder.codec-server-success"),$$slots:{default:[dr]},$$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 cr(s){let e,l;return e=new Ge({props:{bottomRight:!0,text:P("data-encoder.codec-server-error"),$$slots:{default:[_r]},$$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 mr(s){let e,l;return e=new Ge({props:{bottomRight:!0,text:P("data-encoder.codec-server-configured"),$$slots:{default:[pr]},$$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 dr(s){let e,l;return e=new We({props:{label:P("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:ne,i(t){l||(p(e.$$.fragment,t),l=!0)},o(t){g(e.$$.fragment,t),l=!1},d(t){z(e,t)}}}function _r(s){let e,l;return e=new We({props:{label:P("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:ne,i(t){l||(p(e.$$.fragment,t),l=!0)},o(t){g(e.$$.fragment,t),l=!1},d(t){z(e,t)}}}function pr(s){let e,l;return e=new We({props:{label:P("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:ne,i(t){l||(p(e.$$.fragment,t),l=!0)},o(t){g(e.$$.fragment,t),l=!1},d(t){z(e,t)}}}function gr(s){let e,l,t,n;const r=[ar,ir],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(){v(e,"class","mx-1 flex items-center")},m(i,f){k(i,e,f),o[l].m(e,null),n=!0},p(i,[f]){let u=l;l=a(i),l===u?o[l].p(i,f):(de(),g(o[u],1,1,()=>{o[u]=null}),_e(),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 hr(s,e,l){let t,n;return ie(s,He,o=>l(2,t=o)),ie(s,jl,o=>l(0,n=o)),[n,()=>{var o;pe(He,t=!t,t),t&&((o=document.getElementById("content-wrapper"))===null||o===void 0||o.scrollTo(0,0))}]}class br extends ue{constructor(e){super(),ce(this,e,hr,gr,me,{})}}function ol(s,e,l){const t=s.slice();return t[18]=e[l].value,t[19]=e[l].label,t[20]=e[l].offset,t[21]=e[l].abbr,t}function il(s,e,l){const t=s.slice();return t[18]=e[l].value,t[19]=e[l].label,t}function vr(s){let e;return{c(){e=Q(s[3])},l(l){e=X(l,s[3])},m(l,t){k(l,e,t)},p(l,t){t&8&&ge(e,l[3])},d(l){l&&_(e)}}}function $r(s){let e,l;return e=new Le({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:ne,i(t){l||(p(e.$$.fragment,t),l=!0)},o(t){g(e.$$.fragment,t),l=!1},d(t){z(e,t)}}}function al(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 m(d){s[16](d)}let c={label:P("common.relative"),id:"relative-toggle",labelPosition:"left","data-testid":"timezones-relative-toggle"};return s[5]!==void 0&&(c.checked=s[5]),t=new ut({props:c}),Ve.push(()=>Ne(t,"checked",m)),t.$on("change",s[9]),o=new Pl({}),{c(){for(let d=0;dn=!1)),t.$set(E)},i(d){if(!a){for(let b=0;bNe(e,"value",f)),n=new Pl({});let m=!s[1]&&al(s),c=s[4],d=[];for(let h=0;hg(d[h],1,1,()=>{d[h]=null});let E=null;return c.length||(E=ul(s)),{c(){D(e.$$.fragment),t=H(),D(n.$$.fragment),r=H(),m&&m.c(),o=H();for(let h=0;hl=!1)),e.$set(I),h[1]?m&&(de(),g(m,1,1,()=>{m=null}),_e()):m?(m.p(h,w),w&2&&p(m,1)):(m=al(h),m.c(),p(m,1),m.m(o.parentNode,o)),w&276){c=h[4];let $;for($=0;${E=null}),_e()):(E=ul(h),E.c(),p(E,1),E.m(a.parentNode,a))}},i(h){if(!i){p(e.$$.fragment,h),p(n.$$.fragment,h),p(m);for(let w=0;wl(5,r=N)),ie(s,tt,N=>l(2,o=N));var a,i,f,u;let{position:m="right"}=e;const c=hn(),d=[{label:P("common.utc"),value:"UTC"},{label:P("common.local"),value:"local"}];let b="";const E=N=>{r&&N!=="local"&&pe(et,r=!1,r),pe(tt,o=N,o),l(1,b="")},h=N=>{N.target.checked&&o!=="local"&&pe(tt,o="local",o)};sn(()=>{String(o)==="relative"&&(pe(tt,o="local",o),pe(et,r=!0,r))});function w(N){b=N,l(1,b)}const I=N=>E(N);function $(N){r=N,et.set(r)}const L=N=>E(N);return s.$$set=N=>{"position"in N&&l(0,m=N.position)},s.$$.update=()=>{s.$$.dirty&2&&l(4,t=b?Rt.filter(({abbr:N,value:K,zones:O})=>{const W=b.trim().toLowerCase();return K.toLowerCase().includes(W)||(N==null?void 0:N.toLowerCase().includes(W))||(O==null?void 0:O.some(F=>F.toLowerCase().includes(W)))}):Rt),s.$$.dirty&15364&&l(3,n=l(13,u=l(11,i=l(10,a=qt[o])===null||a===void 0?void 0:a.abbr)!==null&&i!==void 0?i:l(12,f=qt[o])===null||f===void 0?void 0:f.label)!==null&&u!==void 0?u:bn(o))},[m,b,o,n,t,r,c,d,E,h,a,i,f,u,w,I,$,L]}class Vr extends ue{constructor(e){super(),ce(this,e,Ir,Tr,me,{position:0})}}const Nr=s=>({}),ml=s=>({slot:"leading"}),Dr=s=>({}),dl=s=>({slot:"trailing"});function Sr(s){let e;const l=s[3].default,t=x(l,s,s[5],null);return{c(){t&&t.c()},l(n){t&&t.l(n)},m(n,r){t&&t.m(n,r),e=!0},p(n,r){t&&t.p&&(!e||r&32)&&ee(t,l,n,n[5],e?le(l,n[5],r,null):te(n[5]),null)},i(n){e||(p(t,n),e=!0)},o(n){g(t,n),e=!1},d(n){t&&t.d(n)}}}function Br(s){let e;const l=s[3].leading,t=x(l,s,s[5],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&32)&&ee(t,l,n,n[5],e?le(l,n[5],r,Nr):te(n[5]),ml)},i(n){e||(p(t,n),e=!0)},o(n){g(t,n),e=!1},d(n){t&&t.d(n)}}}function zr(s){let e;const l=s[3].trailing,t=x(l,s,s[5],dl);return{c(){t&&t.c()},l(n){t&&t.l(n)},m(n,r){t&&t.m(n,r),e=!0},p(n,r){t&&t.p&&(!e||r&32)&&ee(t,l,n,n[5],e?le(l,n[5],r,Dr):te(n[5]),dl)},i(n){e||(p(t,n),e=!0)},o(n){g(t,n),e=!1},d(n){t&&t.d(n)}}}function Or(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],theme:s[2],$$slots:{trailing:[zr],leading:[Br],default:[Sr]},$$scope:{ctx:s}}}),e.$on("click",s[4]),{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&4&&(r.theme=t[2]),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 Ar(s,e,l){let{$$slots:t={},$$scope:n}=e,{selected:r=!1}=e,{disabled:o=!1}=e,{theme:a="light"}=e;function i(f){Fe.call(this,s,f)}return s.$$set=f=>{"selected"in f&&l(0,r=f.selected),"disabled"in f&&l(1,o=f.disabled),"theme"in f&&l(2,a=f.theme),"$$scope"in f&&l(5,n=f.$$scope)},[r,o,a,t,i,n]}class Et extends ue{constructor(e){super(),ce(this,e,Ar,Or,me,{selected:0,disabled:1,theme:2})}}function _l(s,e,l){const t=s.slice();return t[50]=e[l],t}const Rr=s=>({option:s[0]&262144}),pl=s=>({option:s[23](s[50])});function gl(s){let e,l;return e=new Le({props:{width:20,height:20,class:"ml-2 shrink-0",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 hl(s){let e,l;return e=new Et({props:{disabled:!0,$$slots:{default:[qr]},$$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]&4096&&(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 qr(s){let e;return{c(){e=Q(s[5])},l(l){e=X(l,s[5])},m(l,t){k(l,e,t)},p(l,t){t[0]&32&&ge(e,l[5])},d(l){l&&_(e)}}}function Pr(s){let e,l,t,n,r;const o=[Hr,Fr],a=[];function i(f,u){return u[0]&262144&&(e=null),e==null&&(e=!!f[26](f[50])),e?0:1}return l=i(s,[-1,-1]),t=a[l]=o[l](s),{c(){t.c(),n=ae()},l(f){t.l(f),n=ae()},m(f,u){a[l].m(f,u),k(f,n,u),r=!0},p(f,u){let m=l;l=i(f,u),l===m?a[l].p(f,u):(de(),g(a[m],1,1,()=>{a[m]=null}),_e(),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 jr(s){let e,l;function t(){return s[40](s[50])}return e=new Et({props:{theme:s[14],selected:s[0]===s[50],$$slots:{default:[Ur]},$$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]&16384&&(o.theme=s[14]),r[0]&262145&&(o.selected=s[0]===s[50]),r[0]&262144|r[1]&4096&&(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 Fr(s){let e;const l=s[38].default,t=x(l,s,s[43],pl);return{c(){t&&t.c()},l(n){t&&t.l(n)},m(n,r){t&&t.m(n,r),e=!0},p(n,r){t&&t.p&&(!e||r[0]&262144|r[1]&4096)&&ee(t,l,n,n[43],e?le(l,n[43],r,Rr):te(n[43]),pl)},i(n){e||(p(t,n),e=!0)},o(n){g(t,n),e=!1},d(n){t&&t.d(n)}}}function Hr(s){let e,l;function t(){return s[41](s[50])}return e=new Et({props:{theme:s[14],selected:s[0]===s[50][s[12]],$$slots:{default:[Mr]},$$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]&16384&&(o.theme=s[14]),r[0]&266241&&(o.selected=s[0]===s[50][s[12]]),r[0]&270336|r[1]&4096&&(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 Mr(s){let e=s[50][s[13]]+"",l,t;return{c(){l=Q(e),t=H()},l(n){l=X(n,e),t=M(n)},m(n,r){k(n,l,r),k(n,t,r)},p(n,r){r[0]&270336&&e!==(e=n[50][n[13]]+"")&&ge(l,e)},d(n){n&&_(l),n&&_(t)}}}function Ur(s){let e=s[50]+"",l,t;return{c(){l=Q(e),t=H()},l(n){l=X(n,e),t=M(n)},m(n,r){k(n,l,r),k(n,t,r)},p(n,r){r[0]&262144&&e!==(e=n[50]+"")&&ge(l,e)},d(n){n&&_(l),n&&_(t)}}}function bl(s){let e,l,t,n,r,o;const a=[jr,Pr],i=[];function f(u,m){return m[0]&262144&&(e=null),m[0]&262144&&(l=null),e==null&&(e=!!u[24](u[50])),e?0:(l==null&&(l=!!u[25](u[50])),l?1:-1)}return~(t=f(s,[-1,-1]))&&(n=i[t]=a[t](s)),{c(){n&&n.c(),r=ae()},l(u){n&&n.l(u),r=ae()},m(u,m){~t&&i[t].m(u,m),k(u,r,m),o=!0},p(u,m){let c=t;t=f(u,m),t===c?~t&&i[t].p(u,m):(n&&(de(),g(i[c],1,1,()=>{i[c]=null}),_e()),~t?(n=i[t],n?n.p(u,m):(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 Kr(s){let e,l,t=s[18],n=[];for(let a=0;ag(n[a],1,1,()=>{n[a]=null});let o=null;return t.length||(o=hl(s)),{c(){for(let a=0;a{o=null}),_e()):(o=hl(a),o.c(),p(o,1),o.m(e.parentNode,e))}},i(a){if(!l){for(let i=0;iNe(w,"menuElement",F)),{c(){e=A("label"),l=Q(s[3]),n=H(),r=A("div"),K&&K.c(),o=H(),a=A("input"),m=H(),c=A("button"),D(d.$$.fragment),h=H(),D(w.$$.fragment),this.h()},l(V){e=R(V,"LABEL",{class:!0,for:!0});var j=q(e);l=X(j,s[3]),j.forEach(_),n=M(V),r=R(V,"DIV",{class:!0});var se=q(r);K&&K.l(se),o=M(se),a=R(se,"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}),m=M(se),c=R(se,"BUTTON",{"aria-label":!0,class:!0,tabindex:!0,"aria-controls":!0,"aria-expanded":!0,type:!0});var he=q(c);S(d.$$.fragment,he),he.forEach(_),se.forEach(_),h=M(V),S(w.$$.fragment,V),this.h()},h(){v(e,"class",t="combobox-label "+s[14]+" svelte-1t6mhiv"),v(e,"for",s[2]),G(e,"sr-only",s[7]),Me(a,W),G(a,"disabled",s[6]),G(a,"svelte-1t6mhiv",!0),v(c,"aria-label",s[4]),v(c,"class","combobox-button svelte-1t6mhiv"),v(c,"tabindex",-1),v(c,"aria-controls",b=s[2]+"-listbox"),v(c,"aria-expanded",s[19]),v(c,"type","button"),v(r,"class",E="combobox-wrapper "+s[14]+" svelte-1t6mhiv")},m(V,j){k(V,e,j),T(e,l),k(V,n,j),k(V,r,j),K&&K.m(r,null),T(r,o),T(r,a),a.value=W.value,a.autofocus&&a.focus(),s[39](a),T(r,m),T(r,c),B(d,c,null),k(V,h,j),B(w,V,j),$=!0,L||(N=[ke(a,"input",lt(s[29])),ke(a,"keydown",lt(s[28])),ke(a,"click",lt(s[30])),ke(c,"click",s[21])],L=!0)},p(V,j){(!$||j[0]&8)&&ge(l,V[3]),(!$||j[0]&16384&&t!==(t="combobox-label "+V[14]+" svelte-1t6mhiv"))&&v(e,"class",t),(!$||j[0]&4)&&v(e,"for",V[2]),(!$||j[0]&16512)&&G(e,"sr-only",V[7]),V[11]?K?(K.p(V,j),j[0]&2048&&p(K,1)):(K=gl(V),K.c(),p(K,1),K.m(r,o)):K&&(de(),g(K,1,1,()=>{K=null}),_e()),Me(a,W=rt(O,[(!$||j[0]&4)&&{id:V[2]},(!$||j[0]&256)&&{placeholder:V[8]},(!$||j[0]&1024)&&{required:V[10]},(!$||j[0]&512)&&{readOnly:V[9]},(!$||j[0]&64)&&{disabled:V[6]},{type:"text"},(!$||j[0]&32768&&a.value!==V[15])&&{value:V[15]},(!$||j[0]&2&&i!==(i="combobox-input "+V[1]))&&{class:i},{role:"combobox"},{autocomplete:"off"},{autocapitalize:"off"},{spellcheck:"false"},{"data-lpignore":"true"},(!$||j[0]&4&&f!==(f=V[2]+"-listbox"))&&{"aria-controls":f},(!$||j[0]&524288)&&{"aria-expanded":V[19]},(!$||j[0]&1024)&&{"aria-required":V[10]},{"aria-autocomplete":"list"},(!$||j[0]&4|j[1]&1&&u!==(u=V[31]["data-testid"]??V[2]))&&{"data-testid":u},j[1]&2&&V[32]])),"value"in W&&(a.value=W.value),G(a,"disabled",V[6]),G(a,"svelte-1t6mhiv",!0);const se={};j[0]&524288&&(se.name=V[19]?"chevron-up":"chevron-down"),d.$set(se),(!$||j[0]&16)&&v(c,"aria-label",V[4]),(!$||j[0]&4&&b!==(b=V[2]+"-listbox"))&&v(c,"aria-controls",b),(!$||j[0]&524288)&&v(c,"aria-expanded",V[19]),(!$||j[0]&16384&&E!==(E="combobox-wrapper "+V[14]+" svelte-1t6mhiv"))&&v(r,"class",E);const he={};j[0]&4&&(he.id=V[2]+"-listbox"),j[0]&16384&&(he.theme=V[14]),j[0]&290849|j[1]&4096&&(he.$$scope={dirty:j,ctx:V}),!I&&j[0]&131072&&(I=!0,he.menuElement=V[17],De(()=>I=!1)),w.$set(he)},i(V){$||(p(K),p(d.$$.fragment,V),p(w.$$.fragment,V),$=!0)},o(V){g(K),g(d.$$.fragment,V),g(w.$$.fragment,V),$=!1},d(V){V&&_(e),V&&_(n),V&&_(r),K&&K.d(),s[39](null),z(d),V&&_(h),z(w,V),L=!1,ht(N)}}}function Zr(s){let e,l;return e=new kt({props:{open:s[20],$$slots:{default:[Wr]},$$scope:{ctx:s}}}),e.$on("close",s[22]),{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]&1048575|n[1]&4099&&(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 Gr(s,e,l){let t;const n=["class","id","label","value","toggleLabel","noResultsText","disabled","labelHidden","options","placeholder","readonly","required","leadingIcon","optionValueKey","optionLabelKey","minSize","maxSize","theme","filterable"];let r=Ae(e,n),o,{$$slots:a={},$$scope:i}=e;const f=Ol();let{class:u=""}=e,{id:m}=e,{label:c}=e,{value:d=void 0}=e,{toggleLabel:b}=e,{noResultsText:E}=e,{disabled:h=!1}=e,{labelHidden:w=!1}=e,{options:I}=e,{placeholder:$=null}=e,{readonly:L=!1}=e,{required:N=!1}=e,{leadingIcon:K=null}=e,{optionValueKey:O=null}=e,{optionLabelKey:W=O}=e,{minSize:F=0}=e,{maxSize:fe=120}=e,{theme:V="light"}=e,{filterable:j=!0}=e,se,he,Te,re;const Ie=Ke(!1);ie(s,Ie,C=>l(19,o=C));const be=()=>{o?J():Z()},Z=()=>{pe(Ie,o=!0,o),re.focus(),re.select()},J=()=>{o&&(pe(Ie,o=!1,o),Y())},Y=()=>{l(15,se=U(he)),l(18,t=I)},Ee=C=>C,oe=C=>typeof C=="string",ve=C=>typeof C=="object",$e=C=>C===null||typeof C!="object"?!1:O!==null&&W!==null&&O in C&&W in C,U=C=>{if(!C)return d??"";if(oe(C))return C;if(ve(C)&&$e(C))return String(C[W])},y=C=>{oe(C)&&l(0,d=C),ve(C)&&$e(C)&&l(0,d=String(C[O]))},Ce=C=>{f("change",C),y(C),Y()},Be=()=>{const C=Te.querySelector('li[role="option"]:not([aria-disabled="true"])');C&&requestAnimationFrame(()=>C.focus())},Qe=C=>{switch(C.key){case"Escape":J();break;case"ArrowDown":Z(),Be();break;case"Enter":Z(),Be();break}},je=C=>{l(15,se=C.currentTarget.value),f("filter",se),o||Z(),l(18,t=I.filter(Ze=>{if(oe(Ze))return Ze.toLowerCase().includes(C.currentTarget.value.toLowerCase());if(ve(Ze)&&$e(Ze))return String(Ze[W]).toLowerCase().includes(C.currentTarget.value.toLowerCase())}))},ze=()=>{o||Z()};function Xe(C){Ve[C?"unshift":"push"](()=>{re=C,l(16,re),l(15,se),l(34,F),l(35,fe),l(33,I),l(0,d),l(12,O),l(37,he)})}const Je=C=>Ce(C),Ye=C=>Ce(C);function ye(C){Te=C,l(17,Te)}return s.$$set=C=>{l(31,e=we(we({},e),Se(C))),l(32,r=Ae(e,n)),"class"in C&&l(1,u=C.class),"id"in C&&l(2,m=C.id),"label"in C&&l(3,c=C.label),"value"in C&&l(0,d=C.value),"toggleLabel"in C&&l(4,b=C.toggleLabel),"noResultsText"in C&&l(5,E=C.noResultsText),"disabled"in C&&l(6,h=C.disabled),"labelHidden"in C&&l(7,w=C.labelHidden),"options"in C&&l(33,I=C.options),"placeholder"in C&&l(8,$=C.placeholder),"readonly"in C&&l(9,L=C.readonly),"required"in C&&l(10,N=C.required),"leadingIcon"in C&&l(11,K=C.leadingIcon),"optionValueKey"in C&&l(12,O=C.optionValueKey),"optionLabelKey"in C&&l(13,W=C.optionLabelKey),"minSize"in C&&l(34,F=C.minSize),"maxSize"in C&&l(35,fe=C.maxSize),"theme"in C&&l(14,V=C.theme),"filterable"in C&&l(36,j=C.filterable),"$$scope"in C&&l(43,i=C.$$scope)},s.$$.update=()=>{s.$$.dirty[1]&4&&l(18,t=I),s.$$.dirty[0]&4097|s.$$.dirty[1]&68&&(l(37,he=I.find(C=>{if(oe(C))return C===d;if(ve(C)&&$e(C))return C[O]===d})),l(15,se=U(he))),s.$$.dirty[0]&98304|s.$$.dirty[1]&24&&re&&se&&(se.lengthfe?l(16,re.size=fe,re):l(16,re.size=se.length,re))},e=Se(e),[d,u,m,c,b,E,h,w,$,L,N,K,O,W,V,se,re,Te,t,o,Ie,be,Y,Ee,oe,ve,$e,Ce,Qe,je,ze,e,r,I,F,fe,j,he,a,Xe,Je,Ye,ye,i]}class Qr extends ue{constructor(e){super(),ce(this,e,Gr,Zr,me,{class:1,id:2,label:3,value:0,toggleLabel:4,noResultsText:5,disabled:6,labelHidden:7,options:33,placeholder:8,readonly:9,required:10,leadingIcon:11,optionValueKey:12,optionLabelKey:13,minSize:34,maxSize:35,theme:14,filterable:36},null,[-1,-1])}}function vl(s){let e,l;return e=new Qr({props:{label:P("namespaces.namespace-label",{namespace:s[3]}),toggleLabel:P("common.namespaces"),noResultsText:P("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=P("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 br({}),{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 kl(s){let e,l;return e=new kt({props:{$$slots:{default:[xr]},$$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 wl(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(){v(e,"class","text-center text-sm text-black")},m(r,o){k(r,e,o),T(e,t)},p(r,o){var a;o&256&&l!==(l=((a=r[8])==null?void 0:a.name.trim().charAt(0))+"")&&ge(t,l)},d(r){r&&_(e)}}}function Xr(s){var f;let e,l,t,n,r,o,a,i=((f=s[8])==null?void 0:f.name)&&wl(s);return{c(){e=A("img"),n=H(),r=A("div"),i&&i.c(),this.h()},l(u){e=R(u,"IMG",{src:!0,alt:!0,class:!0}),n=M(u),r=R(u,"DIV",{class:!0});var m=q(r);i&&i.l(m),m.forEach(_),this.h()},h(){var u,m;Nt(e.src,l=(u=s[8])==null?void 0:u.picture)||v(e,"src",l),v(e,"alt",t=((m=s[8])==null?void 0:m.profile)??P("common.user-profile")),v(e,"class","h-[24px] w-[24px] cursor-pointer rounded-md"),G(e,"hidden",!s[5]),v(r,"class","aspect-square h-full w-[24px] rounded-md bg-blue-200 p-0.5"),G(r,"hidden",s[5])},m(u,m){k(u,e,m),k(u,n,m),k(u,r,m),i&&i.m(r,null),o||(a=ke(e,"error",s[9]),o=!0)},p(u,m){var c,d,b;m&256&&!Nt(e.src,l=(c=u[8])==null?void 0:c.picture)&&v(e,"src",l),m&256&&t!==(t=((d=u[8])==null?void 0:d.profile)??P("common.user-profile"))&&v(e,"alt",t),m&32&&G(e,"hidden",!u[5]),(b=u[8])!=null&&b.name?i?i.p(u,m):(i=wl(u),i.c(),i.m(r,null)):i&&(i.d(1),i=null),m&32&&G(r,"hidden",u[5])},d(u){u&&_(e),u&&_(n),u&&_(r),i&&i.d(),o=!1,a()}}}function Jr(s){let e=s[8].email+"",l;return{c(){l=Q(e)},l(t){l=X(t,e)},m(t,n){k(t,l,n)},p(t,n){n&256&&e!==(e=t[8].email+"")&&ge(l,e)},d(t){t&&_(l)}}}function Yr(s){let e=P("common.log-out")+"",l;return{c(){l=Q(e)},l(t){l=X(t,e)},m(t,n){k(t,l,n)},p:ne,d(t){t&&_(l)}}}function yr(s){let e,l,t,n;return e=new Ue({props:{href:s[2],disabled:!s[2],$$slots:{default:[Jr]},$$scope:{ctx:s}}}),t=new Ue({props:{$$slots:{default:[Yr]},$$scope:{ctx:s}}}),t.$on("click",function(){vt(s[0])&&s[0].apply(this,arguments)}),{c(){D(e.$$.fragment),l=H(),D(t.$$.fragment)},l(r){S(e.$$.fragment,r),l=M(r),S(t.$$.fragment,r)},m(r,o){B(e,r,o),k(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 xr(s){let e,l,t,n;return e=new Al({props:{variant:"ghost",hasIndicator:!0,controls:"user-menu",$$slots:{default:[Xr]},$$scope:{ctx:s}}}),t=new wt({props:{id:"user-menu",position:"right",$$slots:{default:[yr]},$$scope:{ctx:s}}}),{c(){D(e.$$.fragment),l=H(),D(t.$$.fragment)},l(r){S(e.$$.fragment,r),l=M(r),S(t.$$.fragment,r)},m(r,o){B(e,r,o),k(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 eo(s){let e,l,t,n,r,o,a,i,f,u;bt(s[13]);let m=s[6]&&vl(s);r=new Vr({props:{position:s[4]<768?"left":"right"}});let c=s[6]&&$l(),d=s[8].accessToken&&kl(s);return{c(){e=A("nav"),l=A("div"),m&&m.c(),t=H(),n=A("div"),D(r.$$.fragment),o=H(),c&&c.c(),a=H(),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);m&&m.l(h),h.forEach(_),t=M(E),n=R(E,"DIV",{class:!0});var w=q(n);S(r.$$.fragment,w),o=M(w),c&&c.l(w),a=M(w),d&&d.l(w),w.forEach(_),E.forEach(_),this.h()},h(){v(l,"class","flex grow items-center"),v(n,"class","flex items-center gap-2"),v(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"),v(e,"data-testid","top-nav"),v(e,"aria-label",P("common.main")),G(e,"bg-red-50",s[7].hasError&&s[6])},m(b,E){k(b,e,E),T(e,l),m&&m.m(l,null),T(e,t),T(e,n),B(r,n,null),T(n,o),c&&c.m(n,null),T(n,a),d&&d.m(n,null),i=!0,f||(u=ke(window,"resize",s[13]),f=!0)},p(b,[E]){b[6]?m?(m.p(b,E),E&64&&p(m,1)):(m=vl(b),m.c(),p(m,1),m.m(l,null)):m&&(de(),g(m,1,1,()=>{m=null}),_e());const h={};E&16&&(h.position=b[4]<768?"left":"right"),r.$set(h),b[6]?c?E&64&&p(c,1):(c=$l(),c.c(),p(c,1),c.m(n,a)):c&&(de(),g(c,1,1,()=>{c=null}),_e()),b[8].accessToken?d?(d.p(b,E),E&256&&p(d,1)):(d=kl(b),d.c(),p(d,1),d.m(n,null)):d&&(de(),g(d,1,1,()=>{d=null}),_e()),(!i||E&192)&&G(e,"bg-red-50",b[7].hasError&&b[6])},i(b){i||(p(m),p(r.$$.fragment,b),p(c),p(d),i=!0)},o(b){g(m),g(r.$$.fragment,b),g(c),g(d),i=!1},d(b){b&&_(e),m&&m.d(),z(r),c&&c.d(),d&&d.d(),f=!1,u()}}}function to(s,e,l){let t,n,r,o,a,i,f;ie(s,nt,I=>l(14,o=I)),ie(s,qe,I=>l(12,a=I)),ie(s,jl,I=>l(7,i=I)),ie(s,Sl,I=>l(8,f=I));let{logout:u}=e,{namespaceList:m=[]}=e,{userEmaiLink:c=""}=e,d,b=!0;function E(){l(5,b=!1)}const h=I=>{const $=I.detail;pe(nt,o=$.namespace,o),$==null||$.onClick($.namespace)};function w(){l(4,d=window.innerWidth)}return s.$$set=I=>{"logout"in I&&l(0,u=I.logout),"namespaceList"in I&&l(1,m=I.namespaceList),"userEmaiLink"in I&&l(2,c=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,m,c,t,d,b,r,i,f,E,h,n,a,w]}class lo extends ue{constructor(e){super(),ce(this,e,to,eo,me,{logout:0,namespaceList:1,userEmaiLink:2})}}function El(s){let e,l,t,n,r;n=new We({props:{"data-testid":"close-banner",class:"text-black-600 absolute top-0 right-0 mr-5 h-10 w-10",icon:"close",label:s[1]}}),n.$on("click",s[5]);let o=[{class:"banner"},s[4]],a={};for(let i=0;i{t=null}),_e())},i(n){l||(p(t),l=!0)},o(n){g(t),l=!1},d(n){t&&t.d(n),n&&_(e)}}}const Cl=ql("bannerClosed",!1);function so(s,e,l){let t;const n=["message","closeLabel"];let r=Ae(e,n),o,a=ne;ie(s,Cl,m=>l(2,o=m)),s.$$.on_destroy.push(()=>a());let{message:i}=e,{closeLabel:f}=e;const u=()=>pe(Cl,o=!0,o);return s.$$set=m=>{e=we(we({},e),Se(m)),l(4,r=Ae(e,n)),"message"in m&&l(0,i=m.message),"closeLabel"in m&&l(1,f=m.closeLabel)},s.$$.update=()=>{s.$$.dirty&5&&l(3,t=i&&!o)},[i,f,o,t,r,u]}class ro extends ue{constructor(e){super(),ce(this,e,so,no,me,{message:0,closeLabel:1})}}function oo(s){let e;const l=s[5].default,t=x(l,s,s[4],null);return{c(){t&&t.c()},l(n){t&&t.l(n)},m(n,r){t&&t.m(n,r),e=!0},p(n,r){t&&t.p&&(!e||r&16)&&ee(t,l,n,n[4],e?le(l,n[4],r,null):te(n[4]),null)},i(n){e||(p(t,n),e=!0)},o(n){g(t,n),e=!1},d(n){t&&t.d(n)}}}function io(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=H(),o=A("pre"),a=Q(" "),f=Q(i),u=Q(` `),this.h()},l(m){e=R(m,"DIV",{class:!0});var c=q(e);l=R(c,"B",{});var d=q(l);n=X(d,t),d.forEach(_),r=M(c),o=R(c,"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.f79398a5.js b/ui/assets/local/_app/immutable/nodes/20.1c60f6f9.js similarity index 97% rename from ui/assets/local/_app/immutable/nodes/20.f79398a5.js rename to ui/assets/local/_app/immutable/nodes/20.1c60f6f9.js index bd5f4537bc..1167bd531b 100644 --- a/ui/assets/local/_app/immutable/nodes/20.f79398a5.js +++ b/ui/assets/local/_app/immutable/nodes/20.1c60f6f9.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 L,n as D,K as Ie,C as X,D as Y,E as Z,j,z as lt,g as F,h as rt,F as x,N as nt,a5 as ct,v as ge,Q as xe,ar as it,e as et,as as ft}from"../chunks/index.0942deb7.js";import{p as pt}from"../chunks/stores.73c3690d.js";import{P as ut}from"../chunks/page-title.433b384d.js";import{t as V}from"../chunks/translate.135d909a.js";import{b as Ne,t as dt,r as mt}from"../chunks/time-format.7dc1f425.js";import{B as ht}from"../chunks/badge.5c29cec8.js";import{T as vt}from"../chunks/toggle-switch.cc141600.js";import{T as _t}from"../chunks/tooltip.ea285ef3.js";import{a as Ae,d as $t}from"../chunks/batch-operations.ac8cf9e3.js";import{C as tt}from"../chunks/card.eda89c85.js";import{L as bt}from"../chunks/link.f0cc0bf5.js";import{e as at}from"../chunks/route-for.ecd88549.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,M=o[0].identity+"",q,K,A,Q,de=V("common.reason")+"",me,G,J,ee=o[0].reason+"",fe,W,N,te,ae=V("common.start-time")+"",C,w,re,oe=Ne(o[0].startTime,o[1],{relative:o[2]})+"",ne,ve,H,ce,he=V("common.close-time")+"",pe,_e,ie,se=Ne(o[0].closeTime,o[1],{relative:o[2]})+"",Pe,Re,ue,$e,Be=V("batch.total-operations")+"",Fe,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(M),K=b(),A=p("div"),Q=p("p"),me=E(de),G=b(),J=p("p"),fe=E(ee),W=b(),N=p("div"),te=p("p"),C=E(ae),w=b(),re=p("p"),ne=E(oe),ve=b(),H=p("div"),ce=p("p"),pe=E(he),_e=b(),ie=p("p"),Pe=E(se),Re=b(),ue=p("div"),$e=p("p"),Fe=E(Be),ye=b(),be=p("p"),Ve=E(ke),this.h()},l(R){e=u(R,"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 He=d(r);m=k(He,c),He.forEach(f),v=g(ze),O=u(ze,"P",{class:!0});var Le=d(O);B=k(Le,z),Le.forEach(f),ze.forEach(f),U=g(I),_=u(I,"DIV",{class:!0});var Ce=d(_);$=u(Ce,"P",{class:!0});var Me=d($);S=k(Me,P),Me.forEach(f),y=g(Ce),T=u(Ce,"P",{class:!0});var qe=d(T);q=k(qe,M),qe.forEach(f),Ce.forEach(f),K=g(I),A=u(I,"DIV",{class:!0});var Te=d(A);Q=u(Te,"P",{class:!0});var Ke=d(Q);me=k(Ke,de),Ke.forEach(f),G=g(Te),J=u(Te,"P",{class:!0});var Qe=d(J);fe=k(Qe,ee),Qe.forEach(f),Te.forEach(f),W=g(I),N=u(I,"DIV",{class:!0});var je=d(N);te=u(je,"P",{class:!0});var Ge=d(te);C=k(Ge,ae),Ge.forEach(f),w=g(je),re=u(je,"P",{class:!0});var Je=d(re);ne=k(Je,oe),Je.forEach(f),je.forEach(f),ve=g(I),H=u(I,"DIV",{class:!0});var Oe=d(H);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),Re=g(I),ue=u(I,"DIV",{class:!0});var Se=d(ue);$e=u(Se,"P",{class:!0});var Ye=d($e);Fe=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(Q,"class","batch-operation-key svelte-z5po3c"),h(J,"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(N,"class","batch-operation-detail svelte-z5po3c"),h(ce,"class","batch-operation-key svelte-z5po3c"),h(ie,"class","batch-operation-value svelte-z5po3c"),h(H,"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(R,I){le(R,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,Q),s(Q,me),s(A,G),s(A,J),s(J,fe),s(e,W),s(e,N),s(N,te),s(te,C),s(N,w),s(N,re),s(re,ne),s(e,ve),s(e,H),s(H,ce),s(ce,pe),s(H,_e),s(H,ie),s(ie,Pe),s(e,Re),s(e,ue),s(ue,$e),s($e,Fe),s(ue,ye),s(ue,be),s(be,Ve)},p(R,[I]){I&1&&z!==(z=R[0].operationType+"")&&L(B,z),I&1&&M!==(M=R[0].identity+"")&&L(q,M),I&1&&ee!==(ee=R[0].reason+"")&&L(fe,ee),I&7&&oe!==(oe=Ne(R[0].startTime,R[1],{relative:R[2]})+"")&&L(ne,oe),I&7&&se!==(se=Ne(R[0].closeTime,R[1],{relative:R[2]})+"")&&L(Pe,se),I&1&&ke!==(ke=Intl.NumberFormat("en-US").format(R[0].totalOperationCount)+"")&&L(Ve,ke)},i:D,o:D,d(R){R&&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+"")&&L(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){F(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){F(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 M=d(v);z=k(M,O),M.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+"")&&L(z,O),$[0].state==="Running"?_?(_.p($,P),P&1&&j(_,1)):(_=ot($),_.c(),j(_,1),_.m(e,null)):_&&(lt(),F(_,1,1,()=>{_=null}),rt())},i($){U||(j(c.$$.fragment,$),j(_),U=!0)},o($){F(c.$$.fragment,$),F(_),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,M,q,K,A,Q=V("batch.operations-succeeded",{count:o[0].completeOperationCount})+"",de,me,G,J=V("batch.operations-failed",{count:o[0].failureOperationCount})+"",ee,fe,W,N,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"),M=b(),q=p("div"),K=p("div"),A=p("span"),de=E(Q),me=b(),G=p("span"),ee=E(J),fe=b(),W=p("div"),N=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 H=d(z);U=k(H,B),_=k(H," / "),P=k(H,$),H.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),M=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,Q),_e.forEach(f),me=g(pe),G=u(pe,"SPAN",{class:!0});var ie=d(G);ee=k(ie,J),ie.forEach(f),pe.forEach(f),fe=g(he),W=u(he,"DIV",{class:!0});var se=d(W);N=u(se,"DIV",{style:!0,class:!0}),d(N).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(G,"class","text-xs font-semibold"),xe(G,"text-red-700",o[2]>0),h(K,"class","flex justify-between"),ge(N,"width",o[1]+"%"),h(N,"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,M),s(e,q),s(q,K),s(K,A),s(A,de),s(K,me),s(K,G),s(G,ee),s(q,fe),s(q,W),s(W,N),s(W,te),s(W,ae)},p(C,[w]){w&8&&m!==(m=V("batch.operations-progress",{percent:C[3]})+"")&&L(v,m),w&1&&B!==(B=Intl.NumberFormat("en-US").format(C[0].completeOperationCount)+"")&&L(U,B),w&1&&$!==($=Intl.NumberFormat("en-US").format(C[0].totalOperationCount)+"")&&L(P,$),w&8&&ge(T,"width",C[3]+"%"),w&1&&Q!==(Q=V("batch.operations-succeeded",{count:C[0].completeOperationCount})+"")&&L(de,Q),w&1&&J!==(J=V("batch.operations-failed",{count:C[0].failureOperationCount})+"")&&L(ee,J),w&4&&xe(G,"text-red-700",C[2]>0),w&2&&ge(N,"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:[Nt]},$$scope:{ctx:o}}}),l=new tt({props:{$$slots:{default:[Rt]},$$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){F(e.$$.fragment,r),F(t.$$.fragment,r),F(l.$$.fragment,r),i=!1},d(r){x(e,r),r&&f(a),x(t,r),r&&f(n),x(l,r)}}}function Nt(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){F(e.$$.fragment,t),a=!1},d(t){x(e,t)}}}function Rt(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){F(e.$$.fragment,t),a=!1},d(t){x(e,t)}}}function Ft(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:Ft,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];F(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(),F(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){F(t.$$.fragment,c),F(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){F(e.$$.fragment,l),F(t.$$.fragment,l),n=!1},d(l){x(e,l),l&&f(a),x(t,l)}}}function Ht(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,Ht,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 L,n as D,K as Ie,C as X,D as Y,E as Z,j,z as lt,g as F,h as rt,F as x,N as nt,a5 as ct,v as ge,Q as xe,ar as it,e as et,as as ft}from"../chunks/index.0942deb7.js";import{p as pt}from"../chunks/stores.255470ec.js";import{P as ut}from"../chunks/page-title.433b384d.js";import{t as V}from"../chunks/translate.135d909a.js";import{b as Ne,t as dt,r as mt}from"../chunks/time-format.aa1f006c.js";import{B as ht}from"../chunks/badge.5c29cec8.js";import{T as vt}from"../chunks/toggle-switch.cc141600.js";import{T as _t}from"../chunks/tooltip.0f6d0305.js";import{a as Ae,d as $t}from"../chunks/batch-operations.b60f5f99.js";import{C as tt}from"../chunks/card.eda89c85.js";import{L as bt}from"../chunks/link.faba7c50.js";import{e as at}from"../chunks/route-for.18f9590b.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,M=o[0].identity+"",q,K,A,Q,de=V("common.reason")+"",me,G,J,ee=o[0].reason+"",fe,W,N,te,ae=V("common.start-time")+"",C,w,re,oe=Ne(o[0].startTime,o[1],{relative:o[2]})+"",ne,ve,H,ce,he=V("common.close-time")+"",pe,_e,ie,se=Ne(o[0].closeTime,o[1],{relative:o[2]})+"",Pe,Re,ue,$e,Be=V("batch.total-operations")+"",Fe,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(M),K=b(),A=p("div"),Q=p("p"),me=E(de),G=b(),J=p("p"),fe=E(ee),W=b(),N=p("div"),te=p("p"),C=E(ae),w=b(),re=p("p"),ne=E(oe),ve=b(),H=p("div"),ce=p("p"),pe=E(he),_e=b(),ie=p("p"),Pe=E(se),Re=b(),ue=p("div"),$e=p("p"),Fe=E(Be),ye=b(),be=p("p"),Ve=E(ke),this.h()},l(R){e=u(R,"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 He=d(r);m=k(He,c),He.forEach(f),v=g(ze),O=u(ze,"P",{class:!0});var Le=d(O);B=k(Le,z),Le.forEach(f),ze.forEach(f),U=g(I),_=u(I,"DIV",{class:!0});var Ce=d(_);$=u(Ce,"P",{class:!0});var Me=d($);S=k(Me,P),Me.forEach(f),y=g(Ce),T=u(Ce,"P",{class:!0});var qe=d(T);q=k(qe,M),qe.forEach(f),Ce.forEach(f),K=g(I),A=u(I,"DIV",{class:!0});var Te=d(A);Q=u(Te,"P",{class:!0});var Ke=d(Q);me=k(Ke,de),Ke.forEach(f),G=g(Te),J=u(Te,"P",{class:!0});var Qe=d(J);fe=k(Qe,ee),Qe.forEach(f),Te.forEach(f),W=g(I),N=u(I,"DIV",{class:!0});var je=d(N);te=u(je,"P",{class:!0});var Ge=d(te);C=k(Ge,ae),Ge.forEach(f),w=g(je),re=u(je,"P",{class:!0});var Je=d(re);ne=k(Je,oe),Je.forEach(f),je.forEach(f),ve=g(I),H=u(I,"DIV",{class:!0});var Oe=d(H);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),Re=g(I),ue=u(I,"DIV",{class:!0});var Se=d(ue);$e=u(Se,"P",{class:!0});var Ye=d($e);Fe=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(Q,"class","batch-operation-key svelte-z5po3c"),h(J,"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(N,"class","batch-operation-detail svelte-z5po3c"),h(ce,"class","batch-operation-key svelte-z5po3c"),h(ie,"class","batch-operation-value svelte-z5po3c"),h(H,"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(R,I){le(R,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,Q),s(Q,me),s(A,G),s(A,J),s(J,fe),s(e,W),s(e,N),s(N,te),s(te,C),s(N,w),s(N,re),s(re,ne),s(e,ve),s(e,H),s(H,ce),s(ce,pe),s(H,_e),s(H,ie),s(ie,Pe),s(e,Re),s(e,ue),s(ue,$e),s($e,Fe),s(ue,ye),s(ue,be),s(be,Ve)},p(R,[I]){I&1&&z!==(z=R[0].operationType+"")&&L(B,z),I&1&&M!==(M=R[0].identity+"")&&L(q,M),I&1&&ee!==(ee=R[0].reason+"")&&L(fe,ee),I&7&&oe!==(oe=Ne(R[0].startTime,R[1],{relative:R[2]})+"")&&L(ne,oe),I&7&&se!==(se=Ne(R[0].closeTime,R[1],{relative:R[2]})+"")&&L(Pe,se),I&1&&ke!==(ke=Intl.NumberFormat("en-US").format(R[0].totalOperationCount)+"")&&L(Ve,ke)},i:D,o:D,d(R){R&&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+"")&&L(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){F(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){F(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 M=d(v);z=k(M,O),M.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+"")&&L(z,O),$[0].state==="Running"?_?(_.p($,P),P&1&&j(_,1)):(_=ot($),_.c(),j(_,1),_.m(e,null)):_&&(lt(),F(_,1,1,()=>{_=null}),rt())},i($){U||(j(c.$$.fragment,$),j(_),U=!0)},o($){F(c.$$.fragment,$),F(_),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,M,q,K,A,Q=V("batch.operations-succeeded",{count:o[0].completeOperationCount})+"",de,me,G,J=V("batch.operations-failed",{count:o[0].failureOperationCount})+"",ee,fe,W,N,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"),M=b(),q=p("div"),K=p("div"),A=p("span"),de=E(Q),me=b(),G=p("span"),ee=E(J),fe=b(),W=p("div"),N=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 H=d(z);U=k(H,B),_=k(H," / "),P=k(H,$),H.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),M=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,Q),_e.forEach(f),me=g(pe),G=u(pe,"SPAN",{class:!0});var ie=d(G);ee=k(ie,J),ie.forEach(f),pe.forEach(f),fe=g(he),W=u(he,"DIV",{class:!0});var se=d(W);N=u(se,"DIV",{style:!0,class:!0}),d(N).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(G,"class","text-xs font-semibold"),xe(G,"text-red-700",o[2]>0),h(K,"class","flex justify-between"),ge(N,"width",o[1]+"%"),h(N,"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,M),s(e,q),s(q,K),s(K,A),s(A,de),s(K,me),s(K,G),s(G,ee),s(q,fe),s(q,W),s(W,N),s(W,te),s(W,ae)},p(C,[w]){w&8&&m!==(m=V("batch.operations-progress",{percent:C[3]})+"")&&L(v,m),w&1&&B!==(B=Intl.NumberFormat("en-US").format(C[0].completeOperationCount)+"")&&L(U,B),w&1&&$!==($=Intl.NumberFormat("en-US").format(C[0].totalOperationCount)+"")&&L(P,$),w&8&&ge(T,"width",C[3]+"%"),w&1&&Q!==(Q=V("batch.operations-succeeded",{count:C[0].completeOperationCount})+"")&&L(de,Q),w&1&&J!==(J=V("batch.operations-failed",{count:C[0].failureOperationCount})+"")&&L(ee,J),w&4&&xe(G,"text-red-700",C[2]>0),w&2&&ge(N,"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:[Nt]},$$scope:{ctx:o}}}),l=new tt({props:{$$slots:{default:[Rt]},$$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){F(e.$$.fragment,r),F(t.$$.fragment,r),F(l.$$.fragment,r),i=!1},d(r){x(e,r),r&&f(a),x(t,r),r&&f(n),x(l,r)}}}function Nt(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){F(e.$$.fragment,t),a=!1},d(t){x(e,t)}}}function Rt(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){F(e.$$.fragment,t),a=!1},d(t){x(e,t)}}}function Ft(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:Ft,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];F(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(),F(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){F(t.$$.fragment,c),F(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){F(e.$$.fragment,l),F(t.$$.fragment,l),n=!1},d(l){x(e,l),l&&f(a),x(t,l)}}}function Ht(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,Ht,Ut,Ee,{})}}export{ea as component}; diff --git a/ui/assets/local/_app/immutable/nodes/21.ebf7277c.js b/ui/assets/local/_app/immutable/nodes/21.5b630146.js similarity index 98% rename from ui/assets/local/_app/immutable/nodes/21.ebf7277c.js rename to ui/assets/local/_app/immutable/nodes/21.5b630146.js index 478ce62b61..d896664541 100644 --- a/ui/assets/local/_app/immutable/nodes/21.ebf7277c.js +++ b/ui/assets/local/_app/immutable/nodes/21.5b630146.js @@ -1 +1 @@ -import{S as ke,b as Ie,a as be,e as ue,f as S,n as ce,k as m,O as Be,U as Ke,m as z,w as J,p as L,q as B,x as G,u as T,L as P,y as me,C as q,c as U,D as H,d as W,E as y,j as g,g as $,F as C,K as we,z as re,h as ie,a7 as De,G as de,H as pe,I as he,J as ge,v as Me,Y as qe,M as Ne,T as He,ah as Vt,o as Kt,Q as $e,r as Nt,A as Mt,a0 as Ot,a1 as qt}from"../chunks/index.0942deb7.js";import{p as We}from"../chunks/stores.73c3690d.js";import{P as Ht}from"../chunks/page-title.433b384d.js";import{g as yt}from"../chunks/navigation.83f47780.js";import{W as Ct}from"../chunks/workflow-status.833cfe09.js";import{L as je}from"../chunks/link.f0cc0bf5.js";import{T as Fe}from"../chunks/table-row.9c997398.js";import{t as Q}from"../chunks/translate.135d909a.js";import{t as Jt,r as Gt,b as Re}from"../chunks/time-format.7dc1f425.js";import{q as Qt,g as ye,s as Oe}from"../chunks/route-for.ecd88549.js";import{s as Ce}from"../chunks/parse-with-big-int.0036a80a.js";import{T as zt,a as Lt}from"../chunks/table-header-row.b9d52458.js";import{A as Yt}from"../chunks/alert.c46cfdd9.js";import{a as Bt,p as Xt,o as jt,d as Ue,F as Ft}from"../chunks/pagination.a85cd038.js";import{S as Zt}from"../chunks/index.f0c1b3d6.js";import{j as Je,w as xt}from"../chunks/singletons.0a6e865f.js";import{k as el}from"../chunks/has.233e577a.js";import{B as Rt}from"../chunks/button.c09134bf.js";import{E as Ut}from"../chunks/empty-state.64fbab21.js";import{I as tl}from"../chunks/input.828c22e1.js";import{f as ll}from"../chunks/schedule-service.19174d51.js";import{c as sl}from"../chunks/core-user.20a8d8a5.js";import{w as Wt}from"../chunks/write-actions-are-allowed.7f76f8ee.js";function Ge(a){let t,s,e,l=Ce(a[0]||a[1])+"",n,r;return{c(){t=z("div"),s=z("code"),e=z("pre"),n=J(l),this.h()},l(i){t=L(i,"DIV",{class:!0});var o=B(t);s=L(o,"CODE",{});var u=B(s);e=L(u,"PRE",{});var _=B(e);n=G(_,l),_.forEach(m),u.forEach(m),o.forEach(m),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=Ce(i[0]||i[1])+"")&&me(n,l),o&4&&r!==(r="frequency "+i[2].class+" svelte-1f2qew1")&&T(t,"class",r)},d(i){i&&m(t)}}}function al(a){let t=[a[0],a[1]],s,e=Ge(a);return{c(){e.c(),s=ue()},l(l){e.l(l),s=ue()},m(l,n){e.m(l,n),S(l,s,n)},p(l,[n]){n&3&&be(t,t=[l[0],l[1]])?(e.d(1),e=Ge(l),e.c(),e.m(s.parentNode,s)):e.p(l,n)},i:ce,o:ce,d(l){l&&m(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,be,{calendar:0,interval:1})}}function Qe(a,t,s){const e=a.slice();return e[13]=t[s],e}function Ye(a,t,s){const e=a.slice();return e[13]=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+"")&&me(s,t)},d(e){e&&m(s)}}}function il(a){var e;let t=Re((e=a[13])==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[13])==null?void 0:r.actualTime,l[2],{relative:l[3]})+"")&&me(s,t)},d(l){l&&m(s)}}}function Xe(a){var n,r,i,o;let t,s,e,l;return s=new je({props:{href:ye({namespace:a[4],workflow:(r=(n=a[13])==null?void 0:n.startWorkflowResult)==null?void 0:r.workflowId,run:(o=(i=a[13])==null?void 0:i.startWorkflowResult)==null?void 0:o.runId}),$$slots:{default:[il]},$$scope:{ctx:a}}}),{c(){t=z("p"),q(s.$$.fragment),e=U()},l(u){t=L(u,"P",{});var _=B(t);H(s.$$.fragment,_),e=W(_),_.forEach(m)},m(u,_){S(u,t,_),y(s,t,null),P(t,e),l=!0},p(u,_){var D,N,F,c;const I={};_&1&&(I.href=ye({namespace:u[4],workflow:(N=(D=u[13])==null?void 0:D.startWorkflowResult)==null?void 0:N.workflowId,run:(c=(F=u[13])==null?void 0:F.startWorkflowResult)==null?void 0:c.runId})),_&262157&&(I.$$scope={dirty:_,ctx:u}),s.$set(I)},i(u){l||(g(s.$$.fragment,u),l=!0)},o(u){$(s.$$.fragment,u),l=!1},d(u){u&&m(t),C(s)}}}function Ze(a){let t,s=Re(a[13],a[2],{relative:a[3],relativeLabel:Q("common.from-now")})+"",e,l;return{c(){t=z("div"),e=J(s),l=U()},l(n){t=L(n,"DIV",{});var r=B(t);e=G(r,s),l=W(r),r.forEach(m)},m(n,r){S(n,t,r),P(t,e),P(t,l)},p(n,r){r&13&&s!==(s=Re(n[13],n[2],{relative:n[3],relativeLabel:Q("common.from-now")})+"")&&me(e,s)},d(n){n&&m(t)}}}function ol(a){var j,M,A,E,w,k,le,X,ee,ne;let t,s,e,l,n,r,i,o=(((A=(M=(j=a[0])==null?void 0:j.info)==null?void 0:M.workflowType)==null?void 0:A.name)??"")+"",u,_,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:{href:a[1],$$slots:{default:[rl]},$$scope:{ctx:a}}});let c=a[7]((le=(k=a[0])==null?void 0:k.info)==null?void 0:le.recentActions),f=[];for(let h=0;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))??[],b=[];for(let h=0;hs(11,l=f)),we(a,Jt,f=>s(2,n=f)),we(a,Gt,f=>s(3,r=f));var i,o,u;let{namespace:_}=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],c=f=>{var d;return(d=f==null?void 0:f.sort((R,b)=>new Date(b.actualTime).getTime()-new Date(R.actualTime).getTime()).slice(0,5))!==null&&d!==void 0?d:[]};return a.$$set=f=>{"schedule"in f&&s(0,I=f.schedule)},a.$$.update=()=>{a.$$.dirty&1&&s(1,e=Qt({namespace:_,scheduleId:I==null?void 0:I.scheduleId}))},[I,e,n,r,_,N,F,c]}class ml extends ke{constructor(t){super(),Ie(this,t,cl,ul,be,{schedule:0})}}function _l(a){let t;const s=a[0].default,e=de(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=z("caption"),e=J(s),this.h()},l(l){t=L(l,"CAPTION",{class:!0,slot:!0});var n=B(t);e=G(n,s),n.forEach(m),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&&m(t)}}}function pl(a){let t,s=Q("common.status")+"",e,l,n,r=Q("schedules.name")+"",i,o,u,_=Q("common.workflow-type")+"",I,D,N,F=Q("schedules.recent-runs")+"",c,f,d,R=Q("schedules.upcoming-runs")+"",b;return{c(){t=z("th"),e=J(s),l=U(),n=z("th"),i=J(r),o=U(),u=z("th"),I=J(_),D=U(),N=z("th"),c=J(F),f=U(),d=z("th"),b=J(R),this.h()},l(j){t=L(j,"TH",{class:!0});var M=B(t);e=G(M,s),M.forEach(m),l=W(j),n=L(j,"TH",{class:!0});var A=B(n);i=G(A,r),A.forEach(m),o=W(j),u=L(j,"TH",{class:!0});var E=B(u);I=G(E,_),E.forEach(m),D=W(j),N=L(j,"TH",{class:!0});var w=B(N);c=G(w,F),w.forEach(m),f=W(j),d=L(j,"TH",{class:!0});var k=B(d);b=G(k,R),k.forEach(m),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(d,"class","w-56 max-xl:hidden")},m(j,M){S(j,t,M),P(t,e),S(j,l,M),S(j,n,M),P(n,i),S(j,o,M),S(j,u,M),P(u,I),S(j,D,M),S(j,N,M),P(N,c),S(j,f,M),S(j,d,M),P(d,b)},p:ce,d(j){j&&m(t),j&&m(l),j&&m(n),j&&m(o),j&&m(u),j&&m(D),j&&m(N),j&&m(f),j&&m(d)}}}function hl(a){let t,s;return t=new Lt({props:{slot:"headers",$$slots:{default:[pl]},$$scope:{ctx:a}}}),{c(){q(t.$$.fragment)},l(e){H(t.$$.fragment,e)},m(e,l){y(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 zt({props:{class:"w-full table-fixed",$$slots:{headers:[hl],caption:[dl],default:[_l]},$$scope:{ctx:a}}}),{c(){q(t.$$.fragment)},l(e){H(t.$$.fragment,e)},m(e,l){y(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 bl(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,bl,gl,be,{})}}function xe(a,t,s){const e=a.slice();return e[8]=t[s],e}function et(a,t,s){const e=a.slice();return e[5]=t[s],e}function tt(a,t,s){const e=a.slice();return e[5]=t[s],e[7]=s,e}const $l=a=>({}),lt=a=>({});function st(a){let t,s,e;return s=new Zt({props:{class:"h-4 w-full"}}),{c(){t=z("td"),q(s.$$.fragment),this.h()},l(l){t=L(l,"TD",{style:!0});var n=B(t);H(s.$$.fragment,n),n.forEach(m),this.h()},h(){Me(t,"padding-right","0.5rem")},m(l,n){S(l,t,n),y(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&&m(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,be,{rows:0,columns:1,columnWidths:2})}}const rt={key:Bt,loading:!0,updating:!1,hasNext:!1,hasPrevious:!1,index:0,previousPageSize:Ue,pageSize:Ue,indexData:{},visibleItems:[],hasNextIndexData:!1,indexStart:0,indexEnd:0,activeIndex:0},it=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)?it(a):s}else return it(a)};function Nl(a=jt,t=void 0){const s=Tl(a,t),e=xt({...rt,previousPageSize:s,pageSize:s}),{set:l,update:n}=e,r=Je([We],([c])=>{const f=c.url.searchParams.get(Bt);return f?Xt(f):void 0}),{subscribe:i}=Je([e,r],([c,f])=>{var M,A,E;const d=((M=c.indexData[c.index])==null?void 0:M.items)??[],R=((A=c.indexData[c.index])==null?void 0:A.start)??0,b=((E=c.indexData[c.index])==null?void 0:E.end)??0,j=Boolean(c.indexData[c.index+1]);return{...c,visibleItems:d,indexStart:R,indexEnd:b,hasNextIndexData:j,pageSize:f??c.pageSize}}),o=(c,f,d)=>{const R=d.index,b={...d,indexData:{...d.indexData},hasNext:Boolean(c),updating:!1,loading:!1};return f.length?(b.indexData[R]?(b.index=R+1,b.indexData[b.index]={nextToken:c,start:b.indexData[R].end+1,end:b.indexData[R].end+f.length,items:f},b.hasPrevious=!0):(b.indexData[R]={nextToken:c,start:1,end:f.length,items:f},b.hasPrevious=!1),b):{...b,hasNext:!1}},u=c=>{var d;const f={...c,index:c.index+1,hasPrevious:!0,loading:!1,updating:!1};return(d=f.indexData[f.index])!=null&&d.nextToken||(f.hasNext=!1),f},_=c=>{const f={...c,hasNext:!0,updating:!1,loading:!1,index:c.index>0?c.index-1:0};return f.index===0&&(f.hasPrevious=!1),f},I=c=>{var R,b;const f={...c},d=((b=(R=f.indexData[f.index])==null?void 0:R.items)==null?void 0:b.length)??0;return f.activeIndex{const f={...c},d=f.activeIndex>=1?f.activeIndex-1:0;return f.activeIndex=d,f},N=(c,f)=>({...c,activeIndex:f}),F=(c,f)=>({...c,pageSize:f,previousPageSize:f,index:0,indexData:{},loading:!0,updating:!1});return{subscribe:i,nextPageWithItems:(c,f)=>n(d=>o(c,f,d)),nextPage:()=>n(c=>u(c)),previousPage:()=>n(c=>_(c)),setUpdating:()=>n(c=>({...c,updating:!0})),reset:()=>l(rt),resetPageSize:c=>n(f=>F(f,c)),nextRow:()=>n(c=>I(c)),previousRow:()=>n(c=>D(c)),setActiveIndex:c=>n(f=>N(f,c))}}const zl=a=>({updating:a&128,visibleItems:a&128,activeIndex:a&128}),ot=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}),ft=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}),ut=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}),ct=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}),_t=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}),dt=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}),pt=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}),ht=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 Yt({props:{bold:!0,intent:"error",class:"mb-10",title:((e=a[8])==null?void 0:e.message)??a[4]}}),{c(){q(t.$$.fragment)},l(l){H(t.$$.fragment,l)},m(l,n){y(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 Ml(a){let t;const s=a[24].error,e=de(s,a,a[23],ht);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]),ht)},i(l){t||(g(e,l),t=!0)},o(l){$(e,l),t=!1},d(l){e&&e.d(l)}}}function gt(a){let t,s,e,l,n,r,i,o,u=a[7].indexStart+"",_,I,D=a[7].indexEnd+"",N,F,c,f,d,R,b,j,M,A=a[0].length&&bt(a),E=a[1]&&vt(a);return{c(){A&&A.c(),t=U(),s=z("div"),e=z("button"),l=z("span"),r=U(),i=z("div"),o=z("p"),_=J(u),I=J("–"),N=J(D),F=U(),E&&E.c(),c=U(),f=z("button"),d=z("span"),this.h()},l(w){A&&A.l(w),t=W(w),s=L(w,"DIV",{class:!0});var k=B(s);e=L(k,"BUTTON",{class:!0,"aria-label":!0});var le=B(e);l=L(le,"SPAN",{class:!0}),B(l).forEach(m),le.forEach(m),r=W(k),i=L(k,"DIV",{class:!0});var X=B(i);o=L(X,"P",{});var ee=B(o);_=G(ee,u),I=G(ee,"–"),N=G(ee,D),ee.forEach(m),F=W(X),E&&E.l(X),X.forEach(m),c=W(k),f=L(k,"BUTTON",{class:!0,"aria-label":!0});var ne=B(f);d=L(ne,"SPAN",{class:!0}),B(d).forEach(m),ne.forEach(m),k.forEach(m),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(d,"class","arrow arrow-right svelte-1jw2xtb"),$e(d,"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,_),P(o,I),P(o,N),P(i,F),E&&E.m(i,null),P(s,c),P(s,f),P(f,d),b=!0,j||(M=[Ne(e,"click",a[10].previousPage),Ne(f,"click",a[11])],j=!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()),(!b||k&128)&&$e(l,"arrow-left-disabled",!w[7].hasPrevious),(!b||k&128&&n!==(n=!w[7].hasPrevious))&&(e.disabled=n),(!b||k&32)&&T(e,"aria-label",w[5]),(!b||k&128)&&u!==(u=w[7].indexStart+"")&&me(_,u),(!b||k&128)&&D!==(D=w[7].indexEnd+"")&&me(N,D),w[1]?E?E.p(w,k):(E=vt(w),E.c(),E.m(i,null)):E&&(E.d(1),E=null),(!b||k&128)&&$e(d,"arrow-right-disabled",!w[7].hasNext),(!b||k&128&&R!==(R=!w[7].hasNext))&&(f.disabled=R),(!b||k&64)&&T(f,"aria-label",w[6])},i(w){b||(g(A),b=!0)},o(w){$(A),b=!1},d(w){A&&A.d(w),w&&m(t),w&&m(s),E&&E.d(),j=!1,Nt(M)}}}function bt(a){let t,s;return t=new Ft({props:{label:a[2],parameter:a[7].key,value:String(a[7].pageSize),options:a[0]}}),{c(){q(t.$$.fragment)},l(e){H(t.$$.fragment,e)},m(e,l){y(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 vt(a){let t,s,e;return{c(){t=z("p"),s=J("of "),e=J(a[1])},l(l){t=L(l,"P",{});var n=B(t);s=G(n,"of "),e=G(n,a[1]),n.forEach(m)},m(l,n){S(l,t,n),P(t,s),P(t,e)},p(l,n){n&2&&me(e,l[1])},d(l){l&&m(t)}}}function Ol(a){let t;const s=a[24].default,e=de(s,a,a[23],ut);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]),ut)},i(l){t||(g(e,l),t=!0)},o(l){$(e,l),t=!1},d(l){e&&e.d(l)}}}function ql(a){let t;const s=a[24].empty,e=de(s,a,a[23],ct),l=e||yl(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]),ct):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 Hl(a){let t,s;return t=new Al({props:{rows:15}}),{c(){q(t.$$.fragment)},l(e){H(t.$$.fragment,e)},m(e,l){y(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 yl(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&&me(t,s[3])},d(s){s&&m(t)}}}function $t(a){let t,s,e,l,n,r,i,o,u=a[7].indexStart+"",_,I,D=a[7].indexEnd+"",N,F,c,f,d,R,b,j,M,A=a[0].length&&wt(a),E=a[1]&&kt(a);return{c(){A&&A.c(),t=U(),s=z("div"),e=z("button"),l=z("span"),r=U(),i=z("div"),o=z("p"),_=J(u),I=J("–"),N=J(D),F=U(),E&&E.c(),c=U(),f=z("button"),d=z("span"),this.h()},l(w){A&&A.l(w),t=W(w),s=L(w,"DIV",{class:!0});var k=B(s);e=L(k,"BUTTON",{class:!0,"aria-label":!0});var le=B(e);l=L(le,"SPAN",{class:!0}),B(l).forEach(m),le.forEach(m),r=W(k),i=L(k,"DIV",{class:!0});var X=B(i);o=L(X,"P",{});var ee=B(o);_=G(ee,u),I=G(ee,"–"),N=G(ee,D),ee.forEach(m),F=W(X),E&&E.l(X),X.forEach(m),c=W(k),f=L(k,"BUTTON",{class:!0,"aria-label":!0});var ne=B(f);d=L(ne,"SPAN",{class:!0}),B(d).forEach(m),ne.forEach(m),k.forEach(m),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(d,"class","arrow arrow-right svelte-1jw2xtb"),$e(d,"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,_),P(o,I),P(o,N),P(i,F),E&&E.m(i,null),P(s,c),P(s,f),P(f,d),b=!0,j||(M=[Ne(e,"click",a[10].previousPage),Ne(f,"click",a[11])],j=!0)},p(w,k){w[0].length?A?(A.p(w,k),k&1&&g(A,1)):(A=wt(w),A.c(),g(A,1),A.m(t.parentNode,t)):A&&(re(),$(A,1,1,()=>{A=null}),ie()),(!b||k&128)&&$e(l,"arrow-left-disabled",!w[7].hasPrevious),(!b||k&128&&n!==(n=!w[7].hasPrevious))&&(e.disabled=n),(!b||k&32)&&T(e,"aria-label",w[5]),(!b||k&128)&&u!==(u=w[7].indexStart+"")&&me(_,u),(!b||k&128)&&D!==(D=w[7].indexEnd+"")&&me(N,D),w[1]?E?E.p(w,k):(E=kt(w),E.c(),E.m(i,null)):E&&(E.d(1),E=null),(!b||k&128)&&$e(d,"arrow-right-disabled",!w[7].hasNext),(!b||k&128&&R!==(R=!w[7].hasNext))&&(f.disabled=R),(!b||k&64)&&T(f,"aria-label",w[6])},i(w){b||(g(A),b=!0)},o(w){$(A),b=!1},d(w){A&&A.d(w),w&&m(t),w&&m(s),E&&E.d(),j=!1,Nt(M)}}}function wt(a){let t,s;return t=new Ft({props:{label:a[2],parameter:a[7].key,value:String(a[7].pageSize),options:a[0]}}),{c(){q(t.$$.fragment)},l(e){H(t.$$.fragment,e)},m(e,l){y(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 kt(a){let t,s,e;return{c(){t=z("p"),s=J("of "),e=J(a[1])},l(l){t=L(l,"P",{});var n=B(t);s=G(n,"of "),e=G(n,a[1]),n.forEach(m)},m(l,n){S(l,t,n),P(t,s),P(t,e)},p(l,n){n&2&&me(e,l[1])},d(l){l&&m(t)}}}function Cl(a){let t,s,e,l,n,r,i,o,u,_,I,D,N,F,c,f,d,R,b,j,M,A,E,w,k;const le=[Ml,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=de(ne,a,a[23],pt),v=a[24]["action-top-left"],V=de(v,a,a[23],dt),oe=a[24]["action-top-center"],Z=de(oe,a,a[23],_t);let Y=a[7].visibleItems.length&>(a);const fe=a[24]["action-top-right"],se=de(fe,a,a[23],mt),Ae=[Hl,ql,Ol],_e=[];function Te(p,K){return p[7].loading?0:p[9]?1:2}F=Te(a),c=_e[F]=Ae[F](a);const Se=a[24]["action-bottom-left"],ae=de(Se,a,a[23],ft);let x=a[7].visibleItems.length&&$t(a);const O=a[24]["action-bottom-right"],te=de(O,a,a[23],ot);return{c(){s&&s.c(),e=U(),h&&h.c(),l=U(),n=z("div"),r=z("div"),i=z("div"),V&&V.c(),o=U(),u=z("nav"),Z&&Z.c(),_=U(),Y&&Y.c(),I=U(),se&&se.c(),N=U(),c.c(),f=U(),d=z("nav"),ae&&ae.c(),R=U(),b=z("div"),x&&x.c(),j=U(),te&&te.c(),this.h()},l(p){s&&s.l(p),e=W(p),h&&h.l(p),l=W(p),n=L(p,"DIV",{class:!0});var K=B(n);r=L(K,"DIV",{class:!0});var ve=B(r);i=L(ve,"DIV",{class:!0});var Ee=B(i);V&&V.l(Ee),Ee.forEach(m),o=W(ve),u=L(ve,"NAV",{class:!0,"aria-label":!0});var Pe=B(u);Z&&Z.l(Pe),_=W(Pe),Y&&Y.l(Pe),I=W(Pe),se&&se.l(Pe),Pe.forEach(m),ve.forEach(m),N=W(K),c.l(K),f=W(K),d=L(K,"NAV",{class:!0,"aria-label":!0});var ze=B(d);ae&&ae.l(ze),R=W(ze),b=L(ze,"DIV",{class:!0});var Le=B(b);x&&x.l(Le),j=W(Le),te&&te.l(Le),Le.forEach(m),ze.forEach(m),K.forEach(m),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(b,"class","flex gap-4"),T(d,"class",M=qe(`flex ${a[13]["action-bottom-left"]?"justify-between":"justify-end"}`)+" svelte-1jw2xtb"),T(d,"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),Z&&Z.m(u,null),P(u,_),Y&&Y.m(u,null),P(u,I),se&&se.m(u,null),P(n,N),_e[F].m(n,null),P(n,f),P(n,d),ae&&ae.m(d,null),P(d,R),P(d,b),x&&x.m(b,null),P(b,j),te&&te.m(b,null),E=!0,w||(k=Ne(window,"keydown",a[12]),w=!0)},p(p,[K]){let ve=t;t=ee(p),t===ve?~t&&X[t].p(p,K):(s&&(re(),$(X[ve],1,1,()=>{X[ve]=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]),pt),V&&V.p&&(!E||K&8388736)&&pe(V,v,p,p[23],E?ge(v,p[23],K,Ul):he(p[23]),dt),Z&&Z.p&&(!E||K&8388736)&&pe(Z,oe,p,p[23],E?ge(oe,p[23],K,Rl):he(p[23]),_t),p[7].visibleItems.length?Y?(Y.p(p,K),K&128&&g(Y,1)):(Y=gt(p),Y.c(),g(Y,1),Y.m(u,I)):Y&&(re(),$(Y,1,1,()=>{Y=null}),ie()),se&&se.p&&(!E||K&8388736)&&pe(se,fe,p,p[23],E?ge(fe,p[23],K,Fl):he(p[23]),mt),(!E||K&16384&&D!==(D=p[14]["aria-label"]+" 1"))&&T(u,"aria-label",D);let Ee=F;F=Te(p),F===Ee?_e[F].p(p,K):(re(),$(_e[Ee],1,1,()=>{_e[Ee]=null}),ie(),c=_e[F],c?c.p(p,K):(c=_e[F]=Ae[F](p),c.c()),g(c,1),c.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]),ft),p[7].visibleItems.length?x?(x.p(p,K),K&128&&g(x,1)):(x=$t(p),x.c(),g(x,1),x.m(b,j)):x&&(re(),$(x,1,1,()=>{x=null}),ie()),te&&te.p&&(!E||K&8388736)&&pe(te,O,p,p[23],E?ge(O,p[23],K,zl):he(p[23]),ot),(!E||K&8192&&M!==(M=qe(`flex ${p[13]["action-bottom-left"]?"justify-between":"justify-end"}`)+" svelte-1jw2xtb"))&&T(d,"class",M),(!E||K&16384&&A!==(A=p[14]["aria-label"]+" 2"))&&T(d,"aria-label",A)},i(p){E||(g(s),g(h,p),g(V,p),g(Z,p),g(Y),g(se,p),g(c),g(ae,p),g(x),g(te,p),E=!0)},o(p){$(s),$(h,p),$(V,p),$(Z,p),$(Y),$(se,p),$(c),$(ae,p),$(x),$(te,p),E=!1},d(p){~t&&X[t].d(p),p&&m(e),h&&h.d(p),p&&m(l),p&&m(n),V&&V.d(p),Z&&Z.d(p),Y&&Y.d(),se&&se.d(p),_e[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=He(t,n),i,{$$slots:o={},$$scope:u}=t;const _=Vt(o);let{onError:I=void 0}=t,{onFetch:D}=t,{onShiftUp:N=void 0}=t,{onShiftDown:F=void 0}=t,{onSpace:c=void 0}=t,{pageSizeOptions:f=jt}=t,{defaultPageSize:d=void 0}=t,{total:R=""}=t,{pageSizeSelectLabel:b}=t,{emptyStateMessage:j}=t,{fallbackErrorMessage:M}=t,{itemsKeyname:A="items"}=t,{previousButtonLabel:E}=t,{nextButtonLabel:w}=t,k=Nl(f,d);we(a,k,v=>s(7,i=v));let le;function X(){le&&s(8,le=void 0)}Kt(()=>{ee()});async function ee(){const v=await D();try{const V=await v(i.pageSize,""),{nextPageToken:oe}=V,Z=V[A]||[];k.nextPageWithItems(oe,Z)}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:oe}=V,Z=V[A]||[];k.nextPageWithItems(oe,Z)}catch(v){el(v)&&I&&I(v)}}async function h(v){const V=v.shiftKey;switch(v.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(v),k.reset(),ee()):k.previousRow();break;case"ArrowDown":case"KeyJ":V&&F?(F(v),k.reset(),ee()):k.nextRow();break;case"Space":c&&c(v);break}}return a.$$set=v=>{t=Be(Be({},t),Ke(v)),s(14,r=He(t,n)),"onError"in v&&s(15,I=v.onError),"onFetch"in v&&s(16,D=v.onFetch),"onShiftUp"in v&&s(17,N=v.onShiftUp),"onShiftDown"in v&&s(18,F=v.onShiftDown),"onSpace"in v&&s(19,c=v.onSpace),"pageSizeOptions"in v&&s(0,f=v.pageSizeOptions),"defaultPageSize"in v&&s(20,d=v.defaultPageSize),"total"in v&&s(1,R=v.total),"pageSizeSelectLabel"in v&&s(2,b=v.pageSizeSelectLabel),"emptyStateMessage"in v&&s(3,j=v.emptyStateMessage),"fallbackErrorMessage"in v&&s(4,M=v.fallbackErrorMessage),"itemsKeyname"in v&&s(21,A=v.itemsKeyname),"previousButtonLabel"in v&&s(5,E=v.previousButtonLabel),"nextButtonLabel"in v&&s(6,w=v.nextButtonLabel),"$$scope"in v&&s(23,u=v.$$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,b,j,M,E,w,i,le,e,k,ne,h,_,r,I,D,N,F,c,d,A,l,u,o]}class Gl extends ke{constructor(t){super(),Ie(this,t,Jl,Cl,be,{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 It(a,t,s){const e=a.slice();return e[13]=t[s],e}function St(a){let t,s;return t=new Fe({props:{$$slots:{default:[Ql]},$$scope:{ctx:a}}}),{c(){q(t.$$.fragment)},l(e){H(t.$$.fragment,e)},m(e,l){y(t,e,l),s=!0},p(e,l){const n={};l&65536&&(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 Ut({props:{title:Q("schedules.empty-state-title"),content:Q("schedules.empty-state-description")}}),{c(){t=z("td"),s=U(),e=z("td"),q(l.$$.fragment),n=U(),r=z("td"),i=U(),this.h()},l(u){t=L(u,"TD",{class:!0}),B(t).forEach(m),s=W(u),e=L(u,"TD",{colspan:!0});var _=B(e);H(l.$$.fragment,_),_.forEach(m),n=W(u),r=L(u,"TD",{class:!0}),B(r).forEach(m),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,_){S(u,t,_),S(u,s,_),S(u,e,_),y(l,e,null),S(u,n,_),S(u,r,_),S(u,i,_),o=!0},p:ce,i(u){o||(g(l.$$.fragment,u),o=!0)},o(u){$(l.$$.fragment,u),o=!1},d(u){u&&m(t),u&&m(s),u&&m(e),C(l),u&&m(n),u&&m(r),u&&m(i)}}}function Et(a){let t,s;return t=new ml({props:{schedule:a[13]}}),{c(){q(t.$$.fragment)},l(e){H(t.$$.fragment,e)},m(e,l){y(t,e,l),s=!0},p(e,l){const n={};l&4104&&(n.schedule=e[13]),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 Yl(a){let t,s,e=a[3](a[12]),l=[];for(let i=0;i$(l[i],1,1,()=>{l[i]=null});let r=null;return e.length||(r=St(a)),{c(){for(let i=0;i{r=null}),ie()):(r=St(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&&m(t),o&&o.d()}}}function Dt(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=z("div"),q(s.$$.fragment),this.h()},l(i){t=L(i,"DIV",{class:!0});var o=B(t);H(s.$$.fragment,o),o.forEach(m),this.h()},h(){T(t,"class","w-96")},m(i,o){S(i,t,o),y(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&&m(t),C(s)}}}function es(a){let t,s,e=a[12].length&&Dt(a);return{c(){e&&e.c(),t=ue()},l(l){e&&e.l(l),t=ue()},m(l,n){e&&e.m(l,n),S(l,t,n),s=!0},p(l,n){l[12].length?e?(e.p(l,n),n&4096&&g(e,1)):(e=Dt(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&&m(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&&m(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&&m(t)}}}function At(a){let t,s;return t=new Rt({props:{"data-testid":"create-schedule",disabled:!Wt(),$$slots:{default:[ss]},$$scope:{ctx:a}}}),t.$on("click",a[10]),{c(){q(t.$$.fragment)},l(e){H(t.$$.fragment,e)},m(e,l){y(t,e,l),s=!0},p(e,l){const n={};l&65536&&(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&&m(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,_,I,D,N,F;n=new je({props:{newTab:!0,href:"https://docs.temporal.io/workflows/#schedule",$$slots:{default:[ts]},$$scope:{ctx:a}}}),_=new je({props:{newTab:!0,href:"https://docs.temporal.io/cli/schedule",$$slots:{default:[ls]},$$scope:{ctx:a}}});let c=!a[2]&&!a[5]&&At(a);return{c(){t=z("p"),e=J(s),l=U(),q(n.$$.fragment),r=U(),o=J(i),u=U(),q(_.$$.fragment),I=J("."),D=U(),c&&c.c(),N=ue()},l(f){t=L(f,"P",{});var d=B(t);e=G(d,s),l=W(d),H(n.$$.fragment,d),r=W(d),o=G(d,i),u=W(d),H(_.$$.fragment,d),I=G(d,"."),d.forEach(m),D=W(f),c&&c.l(f),N=ue()},m(f,d){S(f,t,d),P(t,e),P(t,l),y(n,t,null),P(t,r),P(t,o),P(t,u),y(_,t,null),P(t,I),S(f,D,d),c&&c.m(f,d),S(f,N,d),F=!0},p(f,d){const R={};d&65536&&(R.$$scope={dirty:d,ctx:f}),n.$set(R);const b={};d&65536&&(b.$$scope={dirty:d,ctx:f}),_.$set(b),!f[2]&&!f[5]?c?(c.p(f,d),d&36&&g(c,1)):(c=At(f),c.c(),g(c,1),c.m(N.parentNode,N)):c&&(re(),$(c,1,1,()=>{c=null}),ie())},i(f){F||(g(n.$$.fragment,f),g(_.$$.fragment,f),g(c),F=!0)},o(f){$(n.$$.fragment,f),$(_.$$.fragment,f),$(c),F=!1},d(f){f&&m(t),C(n),C(_),f&&m(D),c&&c.d(f),f&&m(N)}}}function ns(a){let t,s,e;return s=new Ut({props:{title:Q("schedules.empty-state-title"),error:a[2],$$slots:{default:[as]},$$scope:{ctx:a}}}),{c(){t=z("div"),q(s.$$.fragment),this.h()},l(l){t=L(l,"DIV",{class:!0,slot:!0});var n=B(t);H(s.$$.fragment,n),n.forEach(m),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),y(s,t,null),e=!0},p(l,n){const r={};n&4&&(r.error=l[2]),n&65574&&(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&&m(t),C(s)}}}function Tt(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})=>({12:e}),({visibleItems:e})=>e?4096:0],"action-top-left":[es,({visibleItems:e})=>({12:e}),({visibleItems:e})=>e?4096:0],header:[xl,({visibleItems:e})=>({12:e}),({visibleItems:e})=>e?4096:0],default:[Xl,({visibleItems:e})=>({12:e}),({visibleItems:e})=>e?4096:0]},$$scope:{ctx:a}}}),{c(){q(t.$$.fragment)},l(e){H(t.$$.fragment,e)},m(e,l){y(t,e,l),s=!0},p(e,l){const n={};l&16&&(n.onFetch=e[4]),l&69679&&(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=Tt(a);return{c(){l.c(),s=ue()},l(n){l.l(n),s=ue()},m(n,r){l.m(n,r),S(n,s,r),e=!0},p(n,[r]){r&2&&be(t,t=n[1])?(re(),$(l,1,1,ce),ie(),l=Tt(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&&m(s),l.d(n)}}}function is(a,t,s){let e,l,n,r,i,o;we(a,We,c=>s(9,o=c));let u="";const _=c=>{var f,d;return s(2,u=(d=(f=c==null?void 0:c.body)===null||f===void 0?void 0:f.message)!==null&&d!==void 0?d:`${Q("schedules.error-message-fetching")}: ${c.status}: ${c.statusText}`)};let I=sl();we(a,I,c=>s(8,i=c));let D="";const N=()=>yt(Oe({namespace:e}));function F(c){D=c,s(0,D)}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=c=>D?c.filter(f=>f.scheduleId.toLowerCase().includes(D.toLowerCase())):c)},[D,e,u,r,n,l,_,I,i,o,N,F]}class os extends ke{constructor(t){super(),Ie(this,t,is,rs,be,{})}}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(){q(t.$$.fragment),s=U(),q(e.$$.fragment)},l(n){H(t.$$.fragment,n),s=W(n),H(e.$$.fragment,n)},m(n,r){y(t,n,r),S(n,s,r),y(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&&m(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,be,{})}}export{js as component}; +import{S as ke,b as Ie,a as be,e as ue,f as S,n as ce,k as m,O as Be,U as Ke,m as z,w as J,p as L,q as B,x as G,u as T,L as P,y as me,C as q,c as U,D as H,d as W,E as y,j as g,g as $,F as C,K as we,z as re,h as ie,a7 as De,G as de,H as pe,I as he,J as ge,v as Me,Y as qe,M as Ne,T as He,ah as Vt,o as Kt,Q as $e,r as Nt,A as Mt,a0 as Ot,a1 as qt}from"../chunks/index.0942deb7.js";import{p as We}from"../chunks/stores.255470ec.js";import{P as Ht}from"../chunks/page-title.433b384d.js";import{g as yt}from"../chunks/navigation.dde0d4fa.js";import{W as Ct}from"../chunks/workflow-status.391c4889.js";import{L as je}from"../chunks/link.faba7c50.js";import{T as Fe}from"../chunks/table-row.9c997398.js";import{t as Q}from"../chunks/translate.135d909a.js";import{t as Jt,r as Gt,b as Re}from"../chunks/time-format.aa1f006c.js";import{q as Qt,g as ye,s as Oe}from"../chunks/route-for.18f9590b.js";import{s as Ce}from"../chunks/parse-with-big-int.0036a80a.js";import{T as zt,a as Lt}from"../chunks/table-header-row.b9d52458.js";import{A as Yt}from"../chunks/alert.c46cfdd9.js";import{a as Bt,p as Xt,o as jt,d as Ue,F as Ft}from"../chunks/pagination.c124cb03.js";import{S as Zt}from"../chunks/index.f0c1b3d6.js";import{j as Je,w as xt}from"../chunks/singletons.d67f4e6b.js";import{k as el}from"../chunks/has.233e577a.js";import{B as Rt}from"../chunks/button.72eef818.js";import{E as Ut}from"../chunks/empty-state.64fbab21.js";import{I as tl}from"../chunks/input.1a8beba6.js";import{f as ll}from"../chunks/schedule-service.f7ec754b.js";import{c as sl}from"../chunks/core-user.1d8c4365.js";import{w as Wt}from"../chunks/write-actions-are-allowed.652105b1.js";function Ge(a){let t,s,e,l=Ce(a[0]||a[1])+"",n,r;return{c(){t=z("div"),s=z("code"),e=z("pre"),n=J(l),this.h()},l(i){t=L(i,"DIV",{class:!0});var o=B(t);s=L(o,"CODE",{});var u=B(s);e=L(u,"PRE",{});var _=B(e);n=G(_,l),_.forEach(m),u.forEach(m),o.forEach(m),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=Ce(i[0]||i[1])+"")&&me(n,l),o&4&&r!==(r="frequency "+i[2].class+" svelte-1f2qew1")&&T(t,"class",r)},d(i){i&&m(t)}}}function al(a){let t=[a[0],a[1]],s,e=Ge(a);return{c(){e.c(),s=ue()},l(l){e.l(l),s=ue()},m(l,n){e.m(l,n),S(l,s,n)},p(l,[n]){n&3&&be(t,t=[l[0],l[1]])?(e.d(1),e=Ge(l),e.c(),e.m(s.parentNode,s)):e.p(l,n)},i:ce,o:ce,d(l){l&&m(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,be,{calendar:0,interval:1})}}function Qe(a,t,s){const e=a.slice();return e[13]=t[s],e}function Ye(a,t,s){const e=a.slice();return e[13]=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+"")&&me(s,t)},d(e){e&&m(s)}}}function il(a){var e;let t=Re((e=a[13])==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[13])==null?void 0:r.actualTime,l[2],{relative:l[3]})+"")&&me(s,t)},d(l){l&&m(s)}}}function Xe(a){var n,r,i,o;let t,s,e,l;return s=new je({props:{href:ye({namespace:a[4],workflow:(r=(n=a[13])==null?void 0:n.startWorkflowResult)==null?void 0:r.workflowId,run:(o=(i=a[13])==null?void 0:i.startWorkflowResult)==null?void 0:o.runId}),$$slots:{default:[il]},$$scope:{ctx:a}}}),{c(){t=z("p"),q(s.$$.fragment),e=U()},l(u){t=L(u,"P",{});var _=B(t);H(s.$$.fragment,_),e=W(_),_.forEach(m)},m(u,_){S(u,t,_),y(s,t,null),P(t,e),l=!0},p(u,_){var D,N,F,c;const I={};_&1&&(I.href=ye({namespace:u[4],workflow:(N=(D=u[13])==null?void 0:D.startWorkflowResult)==null?void 0:N.workflowId,run:(c=(F=u[13])==null?void 0:F.startWorkflowResult)==null?void 0:c.runId})),_&262157&&(I.$$scope={dirty:_,ctx:u}),s.$set(I)},i(u){l||(g(s.$$.fragment,u),l=!0)},o(u){$(s.$$.fragment,u),l=!1},d(u){u&&m(t),C(s)}}}function Ze(a){let t,s=Re(a[13],a[2],{relative:a[3],relativeLabel:Q("common.from-now")})+"",e,l;return{c(){t=z("div"),e=J(s),l=U()},l(n){t=L(n,"DIV",{});var r=B(t);e=G(r,s),l=W(r),r.forEach(m)},m(n,r){S(n,t,r),P(t,e),P(t,l)},p(n,r){r&13&&s!==(s=Re(n[13],n[2],{relative:n[3],relativeLabel:Q("common.from-now")})+"")&&me(e,s)},d(n){n&&m(t)}}}function ol(a){var j,M,A,E,w,k,le,X,ee,ne;let t,s,e,l,n,r,i,o=(((A=(M=(j=a[0])==null?void 0:j.info)==null?void 0:M.workflowType)==null?void 0:A.name)??"")+"",u,_,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:{href:a[1],$$slots:{default:[rl]},$$scope:{ctx:a}}});let c=a[7]((le=(k=a[0])==null?void 0:k.info)==null?void 0:le.recentActions),f=[];for(let h=0;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))??[],b=[];for(let h=0;hs(11,l=f)),we(a,Jt,f=>s(2,n=f)),we(a,Gt,f=>s(3,r=f));var i,o,u;let{namespace:_}=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],c=f=>{var d;return(d=f==null?void 0:f.sort((R,b)=>new Date(b.actualTime).getTime()-new Date(R.actualTime).getTime()).slice(0,5))!==null&&d!==void 0?d:[]};return a.$$set=f=>{"schedule"in f&&s(0,I=f.schedule)},a.$$.update=()=>{a.$$.dirty&1&&s(1,e=Qt({namespace:_,scheduleId:I==null?void 0:I.scheduleId}))},[I,e,n,r,_,N,F,c]}class ml extends ke{constructor(t){super(),Ie(this,t,cl,ul,be,{schedule:0})}}function _l(a){let t;const s=a[0].default,e=de(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=z("caption"),e=J(s),this.h()},l(l){t=L(l,"CAPTION",{class:!0,slot:!0});var n=B(t);e=G(n,s),n.forEach(m),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&&m(t)}}}function pl(a){let t,s=Q("common.status")+"",e,l,n,r=Q("schedules.name")+"",i,o,u,_=Q("common.workflow-type")+"",I,D,N,F=Q("schedules.recent-runs")+"",c,f,d,R=Q("schedules.upcoming-runs")+"",b;return{c(){t=z("th"),e=J(s),l=U(),n=z("th"),i=J(r),o=U(),u=z("th"),I=J(_),D=U(),N=z("th"),c=J(F),f=U(),d=z("th"),b=J(R),this.h()},l(j){t=L(j,"TH",{class:!0});var M=B(t);e=G(M,s),M.forEach(m),l=W(j),n=L(j,"TH",{class:!0});var A=B(n);i=G(A,r),A.forEach(m),o=W(j),u=L(j,"TH",{class:!0});var E=B(u);I=G(E,_),E.forEach(m),D=W(j),N=L(j,"TH",{class:!0});var w=B(N);c=G(w,F),w.forEach(m),f=W(j),d=L(j,"TH",{class:!0});var k=B(d);b=G(k,R),k.forEach(m),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(d,"class","w-56 max-xl:hidden")},m(j,M){S(j,t,M),P(t,e),S(j,l,M),S(j,n,M),P(n,i),S(j,o,M),S(j,u,M),P(u,I),S(j,D,M),S(j,N,M),P(N,c),S(j,f,M),S(j,d,M),P(d,b)},p:ce,d(j){j&&m(t),j&&m(l),j&&m(n),j&&m(o),j&&m(u),j&&m(D),j&&m(N),j&&m(f),j&&m(d)}}}function hl(a){let t,s;return t=new Lt({props:{slot:"headers",$$slots:{default:[pl]},$$scope:{ctx:a}}}),{c(){q(t.$$.fragment)},l(e){H(t.$$.fragment,e)},m(e,l){y(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 zt({props:{class:"w-full table-fixed",$$slots:{headers:[hl],caption:[dl],default:[_l]},$$scope:{ctx:a}}}),{c(){q(t.$$.fragment)},l(e){H(t.$$.fragment,e)},m(e,l){y(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 bl(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,bl,gl,be,{})}}function xe(a,t,s){const e=a.slice();return e[8]=t[s],e}function et(a,t,s){const e=a.slice();return e[5]=t[s],e}function tt(a,t,s){const e=a.slice();return e[5]=t[s],e[7]=s,e}const $l=a=>({}),lt=a=>({});function st(a){let t,s,e;return s=new Zt({props:{class:"h-4 w-full"}}),{c(){t=z("td"),q(s.$$.fragment),this.h()},l(l){t=L(l,"TD",{style:!0});var n=B(t);H(s.$$.fragment,n),n.forEach(m),this.h()},h(){Me(t,"padding-right","0.5rem")},m(l,n){S(l,t,n),y(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&&m(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,be,{rows:0,columns:1,columnWidths:2})}}const rt={key:Bt,loading:!0,updating:!1,hasNext:!1,hasPrevious:!1,index:0,previousPageSize:Ue,pageSize:Ue,indexData:{},visibleItems:[],hasNextIndexData:!1,indexStart:0,indexEnd:0,activeIndex:0},it=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)?it(a):s}else return it(a)};function Nl(a=jt,t=void 0){const s=Tl(a,t),e=xt({...rt,previousPageSize:s,pageSize:s}),{set:l,update:n}=e,r=Je([We],([c])=>{const f=c.url.searchParams.get(Bt);return f?Xt(f):void 0}),{subscribe:i}=Je([e,r],([c,f])=>{var M,A,E;const d=((M=c.indexData[c.index])==null?void 0:M.items)??[],R=((A=c.indexData[c.index])==null?void 0:A.start)??0,b=((E=c.indexData[c.index])==null?void 0:E.end)??0,j=Boolean(c.indexData[c.index+1]);return{...c,visibleItems:d,indexStart:R,indexEnd:b,hasNextIndexData:j,pageSize:f??c.pageSize}}),o=(c,f,d)=>{const R=d.index,b={...d,indexData:{...d.indexData},hasNext:Boolean(c),updating:!1,loading:!1};return f.length?(b.indexData[R]?(b.index=R+1,b.indexData[b.index]={nextToken:c,start:b.indexData[R].end+1,end:b.indexData[R].end+f.length,items:f},b.hasPrevious=!0):(b.indexData[R]={nextToken:c,start:1,end:f.length,items:f},b.hasPrevious=!1),b):{...b,hasNext:!1}},u=c=>{var d;const f={...c,index:c.index+1,hasPrevious:!0,loading:!1,updating:!1};return(d=f.indexData[f.index])!=null&&d.nextToken||(f.hasNext=!1),f},_=c=>{const f={...c,hasNext:!0,updating:!1,loading:!1,index:c.index>0?c.index-1:0};return f.index===0&&(f.hasPrevious=!1),f},I=c=>{var R,b;const f={...c},d=((b=(R=f.indexData[f.index])==null?void 0:R.items)==null?void 0:b.length)??0;return f.activeIndex{const f={...c},d=f.activeIndex>=1?f.activeIndex-1:0;return f.activeIndex=d,f},N=(c,f)=>({...c,activeIndex:f}),F=(c,f)=>({...c,pageSize:f,previousPageSize:f,index:0,indexData:{},loading:!0,updating:!1});return{subscribe:i,nextPageWithItems:(c,f)=>n(d=>o(c,f,d)),nextPage:()=>n(c=>u(c)),previousPage:()=>n(c=>_(c)),setUpdating:()=>n(c=>({...c,updating:!0})),reset:()=>l(rt),resetPageSize:c=>n(f=>F(f,c)),nextRow:()=>n(c=>I(c)),previousRow:()=>n(c=>D(c)),setActiveIndex:c=>n(f=>N(f,c))}}const zl=a=>({updating:a&128,visibleItems:a&128,activeIndex:a&128}),ot=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}),ft=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}),ut=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}),ct=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}),_t=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}),dt=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}),pt=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}),ht=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 Yt({props:{bold:!0,intent:"error",class:"mb-10",title:((e=a[8])==null?void 0:e.message)??a[4]}}),{c(){q(t.$$.fragment)},l(l){H(t.$$.fragment,l)},m(l,n){y(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 Ml(a){let t;const s=a[24].error,e=de(s,a,a[23],ht);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]),ht)},i(l){t||(g(e,l),t=!0)},o(l){$(e,l),t=!1},d(l){e&&e.d(l)}}}function gt(a){let t,s,e,l,n,r,i,o,u=a[7].indexStart+"",_,I,D=a[7].indexEnd+"",N,F,c,f,d,R,b,j,M,A=a[0].length&&bt(a),E=a[1]&&vt(a);return{c(){A&&A.c(),t=U(),s=z("div"),e=z("button"),l=z("span"),r=U(),i=z("div"),o=z("p"),_=J(u),I=J("–"),N=J(D),F=U(),E&&E.c(),c=U(),f=z("button"),d=z("span"),this.h()},l(w){A&&A.l(w),t=W(w),s=L(w,"DIV",{class:!0});var k=B(s);e=L(k,"BUTTON",{class:!0,"aria-label":!0});var le=B(e);l=L(le,"SPAN",{class:!0}),B(l).forEach(m),le.forEach(m),r=W(k),i=L(k,"DIV",{class:!0});var X=B(i);o=L(X,"P",{});var ee=B(o);_=G(ee,u),I=G(ee,"–"),N=G(ee,D),ee.forEach(m),F=W(X),E&&E.l(X),X.forEach(m),c=W(k),f=L(k,"BUTTON",{class:!0,"aria-label":!0});var ne=B(f);d=L(ne,"SPAN",{class:!0}),B(d).forEach(m),ne.forEach(m),k.forEach(m),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(d,"class","arrow arrow-right svelte-1jw2xtb"),$e(d,"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,_),P(o,I),P(o,N),P(i,F),E&&E.m(i,null),P(s,c),P(s,f),P(f,d),b=!0,j||(M=[Ne(e,"click",a[10].previousPage),Ne(f,"click",a[11])],j=!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()),(!b||k&128)&&$e(l,"arrow-left-disabled",!w[7].hasPrevious),(!b||k&128&&n!==(n=!w[7].hasPrevious))&&(e.disabled=n),(!b||k&32)&&T(e,"aria-label",w[5]),(!b||k&128)&&u!==(u=w[7].indexStart+"")&&me(_,u),(!b||k&128)&&D!==(D=w[7].indexEnd+"")&&me(N,D),w[1]?E?E.p(w,k):(E=vt(w),E.c(),E.m(i,null)):E&&(E.d(1),E=null),(!b||k&128)&&$e(d,"arrow-right-disabled",!w[7].hasNext),(!b||k&128&&R!==(R=!w[7].hasNext))&&(f.disabled=R),(!b||k&64)&&T(f,"aria-label",w[6])},i(w){b||(g(A),b=!0)},o(w){$(A),b=!1},d(w){A&&A.d(w),w&&m(t),w&&m(s),E&&E.d(),j=!1,Nt(M)}}}function bt(a){let t,s;return t=new Ft({props:{label:a[2],parameter:a[7].key,value:String(a[7].pageSize),options:a[0]}}),{c(){q(t.$$.fragment)},l(e){H(t.$$.fragment,e)},m(e,l){y(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 vt(a){let t,s,e;return{c(){t=z("p"),s=J("of "),e=J(a[1])},l(l){t=L(l,"P",{});var n=B(t);s=G(n,"of "),e=G(n,a[1]),n.forEach(m)},m(l,n){S(l,t,n),P(t,s),P(t,e)},p(l,n){n&2&&me(e,l[1])},d(l){l&&m(t)}}}function Ol(a){let t;const s=a[24].default,e=de(s,a,a[23],ut);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]),ut)},i(l){t||(g(e,l),t=!0)},o(l){$(e,l),t=!1},d(l){e&&e.d(l)}}}function ql(a){let t;const s=a[24].empty,e=de(s,a,a[23],ct),l=e||yl(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]),ct):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 Hl(a){let t,s;return t=new Al({props:{rows:15}}),{c(){q(t.$$.fragment)},l(e){H(t.$$.fragment,e)},m(e,l){y(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 yl(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&&me(t,s[3])},d(s){s&&m(t)}}}function $t(a){let t,s,e,l,n,r,i,o,u=a[7].indexStart+"",_,I,D=a[7].indexEnd+"",N,F,c,f,d,R,b,j,M,A=a[0].length&&wt(a),E=a[1]&&kt(a);return{c(){A&&A.c(),t=U(),s=z("div"),e=z("button"),l=z("span"),r=U(),i=z("div"),o=z("p"),_=J(u),I=J("–"),N=J(D),F=U(),E&&E.c(),c=U(),f=z("button"),d=z("span"),this.h()},l(w){A&&A.l(w),t=W(w),s=L(w,"DIV",{class:!0});var k=B(s);e=L(k,"BUTTON",{class:!0,"aria-label":!0});var le=B(e);l=L(le,"SPAN",{class:!0}),B(l).forEach(m),le.forEach(m),r=W(k),i=L(k,"DIV",{class:!0});var X=B(i);o=L(X,"P",{});var ee=B(o);_=G(ee,u),I=G(ee,"–"),N=G(ee,D),ee.forEach(m),F=W(X),E&&E.l(X),X.forEach(m),c=W(k),f=L(k,"BUTTON",{class:!0,"aria-label":!0});var ne=B(f);d=L(ne,"SPAN",{class:!0}),B(d).forEach(m),ne.forEach(m),k.forEach(m),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(d,"class","arrow arrow-right svelte-1jw2xtb"),$e(d,"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,_),P(o,I),P(o,N),P(i,F),E&&E.m(i,null),P(s,c),P(s,f),P(f,d),b=!0,j||(M=[Ne(e,"click",a[10].previousPage),Ne(f,"click",a[11])],j=!0)},p(w,k){w[0].length?A?(A.p(w,k),k&1&&g(A,1)):(A=wt(w),A.c(),g(A,1),A.m(t.parentNode,t)):A&&(re(),$(A,1,1,()=>{A=null}),ie()),(!b||k&128)&&$e(l,"arrow-left-disabled",!w[7].hasPrevious),(!b||k&128&&n!==(n=!w[7].hasPrevious))&&(e.disabled=n),(!b||k&32)&&T(e,"aria-label",w[5]),(!b||k&128)&&u!==(u=w[7].indexStart+"")&&me(_,u),(!b||k&128)&&D!==(D=w[7].indexEnd+"")&&me(N,D),w[1]?E?E.p(w,k):(E=kt(w),E.c(),E.m(i,null)):E&&(E.d(1),E=null),(!b||k&128)&&$e(d,"arrow-right-disabled",!w[7].hasNext),(!b||k&128&&R!==(R=!w[7].hasNext))&&(f.disabled=R),(!b||k&64)&&T(f,"aria-label",w[6])},i(w){b||(g(A),b=!0)},o(w){$(A),b=!1},d(w){A&&A.d(w),w&&m(t),w&&m(s),E&&E.d(),j=!1,Nt(M)}}}function wt(a){let t,s;return t=new Ft({props:{label:a[2],parameter:a[7].key,value:String(a[7].pageSize),options:a[0]}}),{c(){q(t.$$.fragment)},l(e){H(t.$$.fragment,e)},m(e,l){y(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 kt(a){let t,s,e;return{c(){t=z("p"),s=J("of "),e=J(a[1])},l(l){t=L(l,"P",{});var n=B(t);s=G(n,"of "),e=G(n,a[1]),n.forEach(m)},m(l,n){S(l,t,n),P(t,s),P(t,e)},p(l,n){n&2&&me(e,l[1])},d(l){l&&m(t)}}}function Cl(a){let t,s,e,l,n,r,i,o,u,_,I,D,N,F,c,f,d,R,b,j,M,A,E,w,k;const le=[Ml,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=de(ne,a,a[23],pt),v=a[24]["action-top-left"],V=de(v,a,a[23],dt),oe=a[24]["action-top-center"],Z=de(oe,a,a[23],_t);let Y=a[7].visibleItems.length&>(a);const fe=a[24]["action-top-right"],se=de(fe,a,a[23],mt),Ae=[Hl,ql,Ol],_e=[];function Te(p,K){return p[7].loading?0:p[9]?1:2}F=Te(a),c=_e[F]=Ae[F](a);const Se=a[24]["action-bottom-left"],ae=de(Se,a,a[23],ft);let x=a[7].visibleItems.length&&$t(a);const O=a[24]["action-bottom-right"],te=de(O,a,a[23],ot);return{c(){s&&s.c(),e=U(),h&&h.c(),l=U(),n=z("div"),r=z("div"),i=z("div"),V&&V.c(),o=U(),u=z("nav"),Z&&Z.c(),_=U(),Y&&Y.c(),I=U(),se&&se.c(),N=U(),c.c(),f=U(),d=z("nav"),ae&&ae.c(),R=U(),b=z("div"),x&&x.c(),j=U(),te&&te.c(),this.h()},l(p){s&&s.l(p),e=W(p),h&&h.l(p),l=W(p),n=L(p,"DIV",{class:!0});var K=B(n);r=L(K,"DIV",{class:!0});var ve=B(r);i=L(ve,"DIV",{class:!0});var Ee=B(i);V&&V.l(Ee),Ee.forEach(m),o=W(ve),u=L(ve,"NAV",{class:!0,"aria-label":!0});var Pe=B(u);Z&&Z.l(Pe),_=W(Pe),Y&&Y.l(Pe),I=W(Pe),se&&se.l(Pe),Pe.forEach(m),ve.forEach(m),N=W(K),c.l(K),f=W(K),d=L(K,"NAV",{class:!0,"aria-label":!0});var ze=B(d);ae&&ae.l(ze),R=W(ze),b=L(ze,"DIV",{class:!0});var Le=B(b);x&&x.l(Le),j=W(Le),te&&te.l(Le),Le.forEach(m),ze.forEach(m),K.forEach(m),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(b,"class","flex gap-4"),T(d,"class",M=qe(`flex ${a[13]["action-bottom-left"]?"justify-between":"justify-end"}`)+" svelte-1jw2xtb"),T(d,"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),Z&&Z.m(u,null),P(u,_),Y&&Y.m(u,null),P(u,I),se&&se.m(u,null),P(n,N),_e[F].m(n,null),P(n,f),P(n,d),ae&&ae.m(d,null),P(d,R),P(d,b),x&&x.m(b,null),P(b,j),te&&te.m(b,null),E=!0,w||(k=Ne(window,"keydown",a[12]),w=!0)},p(p,[K]){let ve=t;t=ee(p),t===ve?~t&&X[t].p(p,K):(s&&(re(),$(X[ve],1,1,()=>{X[ve]=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]),pt),V&&V.p&&(!E||K&8388736)&&pe(V,v,p,p[23],E?ge(v,p[23],K,Ul):he(p[23]),dt),Z&&Z.p&&(!E||K&8388736)&&pe(Z,oe,p,p[23],E?ge(oe,p[23],K,Rl):he(p[23]),_t),p[7].visibleItems.length?Y?(Y.p(p,K),K&128&&g(Y,1)):(Y=gt(p),Y.c(),g(Y,1),Y.m(u,I)):Y&&(re(),$(Y,1,1,()=>{Y=null}),ie()),se&&se.p&&(!E||K&8388736)&&pe(se,fe,p,p[23],E?ge(fe,p[23],K,Fl):he(p[23]),mt),(!E||K&16384&&D!==(D=p[14]["aria-label"]+" 1"))&&T(u,"aria-label",D);let Ee=F;F=Te(p),F===Ee?_e[F].p(p,K):(re(),$(_e[Ee],1,1,()=>{_e[Ee]=null}),ie(),c=_e[F],c?c.p(p,K):(c=_e[F]=Ae[F](p),c.c()),g(c,1),c.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]),ft),p[7].visibleItems.length?x?(x.p(p,K),K&128&&g(x,1)):(x=$t(p),x.c(),g(x,1),x.m(b,j)):x&&(re(),$(x,1,1,()=>{x=null}),ie()),te&&te.p&&(!E||K&8388736)&&pe(te,O,p,p[23],E?ge(O,p[23],K,zl):he(p[23]),ot),(!E||K&8192&&M!==(M=qe(`flex ${p[13]["action-bottom-left"]?"justify-between":"justify-end"}`)+" svelte-1jw2xtb"))&&T(d,"class",M),(!E||K&16384&&A!==(A=p[14]["aria-label"]+" 2"))&&T(d,"aria-label",A)},i(p){E||(g(s),g(h,p),g(V,p),g(Z,p),g(Y),g(se,p),g(c),g(ae,p),g(x),g(te,p),E=!0)},o(p){$(s),$(h,p),$(V,p),$(Z,p),$(Y),$(se,p),$(c),$(ae,p),$(x),$(te,p),E=!1},d(p){~t&&X[t].d(p),p&&m(e),h&&h.d(p),p&&m(l),p&&m(n),V&&V.d(p),Z&&Z.d(p),Y&&Y.d(),se&&se.d(p),_e[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=He(t,n),i,{$$slots:o={},$$scope:u}=t;const _=Vt(o);let{onError:I=void 0}=t,{onFetch:D}=t,{onShiftUp:N=void 0}=t,{onShiftDown:F=void 0}=t,{onSpace:c=void 0}=t,{pageSizeOptions:f=jt}=t,{defaultPageSize:d=void 0}=t,{total:R=""}=t,{pageSizeSelectLabel:b}=t,{emptyStateMessage:j}=t,{fallbackErrorMessage:M}=t,{itemsKeyname:A="items"}=t,{previousButtonLabel:E}=t,{nextButtonLabel:w}=t,k=Nl(f,d);we(a,k,v=>s(7,i=v));let le;function X(){le&&s(8,le=void 0)}Kt(()=>{ee()});async function ee(){const v=await D();try{const V=await v(i.pageSize,""),{nextPageToken:oe}=V,Z=V[A]||[];k.nextPageWithItems(oe,Z)}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:oe}=V,Z=V[A]||[];k.nextPageWithItems(oe,Z)}catch(v){el(v)&&I&&I(v)}}async function h(v){const V=v.shiftKey;switch(v.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(v),k.reset(),ee()):k.previousRow();break;case"ArrowDown":case"KeyJ":V&&F?(F(v),k.reset(),ee()):k.nextRow();break;case"Space":c&&c(v);break}}return a.$$set=v=>{t=Be(Be({},t),Ke(v)),s(14,r=He(t,n)),"onError"in v&&s(15,I=v.onError),"onFetch"in v&&s(16,D=v.onFetch),"onShiftUp"in v&&s(17,N=v.onShiftUp),"onShiftDown"in v&&s(18,F=v.onShiftDown),"onSpace"in v&&s(19,c=v.onSpace),"pageSizeOptions"in v&&s(0,f=v.pageSizeOptions),"defaultPageSize"in v&&s(20,d=v.defaultPageSize),"total"in v&&s(1,R=v.total),"pageSizeSelectLabel"in v&&s(2,b=v.pageSizeSelectLabel),"emptyStateMessage"in v&&s(3,j=v.emptyStateMessage),"fallbackErrorMessage"in v&&s(4,M=v.fallbackErrorMessage),"itemsKeyname"in v&&s(21,A=v.itemsKeyname),"previousButtonLabel"in v&&s(5,E=v.previousButtonLabel),"nextButtonLabel"in v&&s(6,w=v.nextButtonLabel),"$$scope"in v&&s(23,u=v.$$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,b,j,M,E,w,i,le,e,k,ne,h,_,r,I,D,N,F,c,d,A,l,u,o]}class Gl extends ke{constructor(t){super(),Ie(this,t,Jl,Cl,be,{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 It(a,t,s){const e=a.slice();return e[13]=t[s],e}function St(a){let t,s;return t=new Fe({props:{$$slots:{default:[Ql]},$$scope:{ctx:a}}}),{c(){q(t.$$.fragment)},l(e){H(t.$$.fragment,e)},m(e,l){y(t,e,l),s=!0},p(e,l){const n={};l&65536&&(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 Ut({props:{title:Q("schedules.empty-state-title"),content:Q("schedules.empty-state-description")}}),{c(){t=z("td"),s=U(),e=z("td"),q(l.$$.fragment),n=U(),r=z("td"),i=U(),this.h()},l(u){t=L(u,"TD",{class:!0}),B(t).forEach(m),s=W(u),e=L(u,"TD",{colspan:!0});var _=B(e);H(l.$$.fragment,_),_.forEach(m),n=W(u),r=L(u,"TD",{class:!0}),B(r).forEach(m),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,_){S(u,t,_),S(u,s,_),S(u,e,_),y(l,e,null),S(u,n,_),S(u,r,_),S(u,i,_),o=!0},p:ce,i(u){o||(g(l.$$.fragment,u),o=!0)},o(u){$(l.$$.fragment,u),o=!1},d(u){u&&m(t),u&&m(s),u&&m(e),C(l),u&&m(n),u&&m(r),u&&m(i)}}}function Et(a){let t,s;return t=new ml({props:{schedule:a[13]}}),{c(){q(t.$$.fragment)},l(e){H(t.$$.fragment,e)},m(e,l){y(t,e,l),s=!0},p(e,l){const n={};l&4104&&(n.schedule=e[13]),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 Yl(a){let t,s,e=a[3](a[12]),l=[];for(let i=0;i$(l[i],1,1,()=>{l[i]=null});let r=null;return e.length||(r=St(a)),{c(){for(let i=0;i{r=null}),ie()):(r=St(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&&m(t),o&&o.d()}}}function Dt(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=z("div"),q(s.$$.fragment),this.h()},l(i){t=L(i,"DIV",{class:!0});var o=B(t);H(s.$$.fragment,o),o.forEach(m),this.h()},h(){T(t,"class","w-96")},m(i,o){S(i,t,o),y(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&&m(t),C(s)}}}function es(a){let t,s,e=a[12].length&&Dt(a);return{c(){e&&e.c(),t=ue()},l(l){e&&e.l(l),t=ue()},m(l,n){e&&e.m(l,n),S(l,t,n),s=!0},p(l,n){l[12].length?e?(e.p(l,n),n&4096&&g(e,1)):(e=Dt(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&&m(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&&m(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&&m(t)}}}function At(a){let t,s;return t=new Rt({props:{"data-testid":"create-schedule",disabled:!Wt(),$$slots:{default:[ss]},$$scope:{ctx:a}}}),t.$on("click",a[10]),{c(){q(t.$$.fragment)},l(e){H(t.$$.fragment,e)},m(e,l){y(t,e,l),s=!0},p(e,l){const n={};l&65536&&(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&&m(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,_,I,D,N,F;n=new je({props:{newTab:!0,href:"https://docs.temporal.io/workflows/#schedule",$$slots:{default:[ts]},$$scope:{ctx:a}}}),_=new je({props:{newTab:!0,href:"https://docs.temporal.io/cli/schedule",$$slots:{default:[ls]},$$scope:{ctx:a}}});let c=!a[2]&&!a[5]&&At(a);return{c(){t=z("p"),e=J(s),l=U(),q(n.$$.fragment),r=U(),o=J(i),u=U(),q(_.$$.fragment),I=J("."),D=U(),c&&c.c(),N=ue()},l(f){t=L(f,"P",{});var d=B(t);e=G(d,s),l=W(d),H(n.$$.fragment,d),r=W(d),o=G(d,i),u=W(d),H(_.$$.fragment,d),I=G(d,"."),d.forEach(m),D=W(f),c&&c.l(f),N=ue()},m(f,d){S(f,t,d),P(t,e),P(t,l),y(n,t,null),P(t,r),P(t,o),P(t,u),y(_,t,null),P(t,I),S(f,D,d),c&&c.m(f,d),S(f,N,d),F=!0},p(f,d){const R={};d&65536&&(R.$$scope={dirty:d,ctx:f}),n.$set(R);const b={};d&65536&&(b.$$scope={dirty:d,ctx:f}),_.$set(b),!f[2]&&!f[5]?c?(c.p(f,d),d&36&&g(c,1)):(c=At(f),c.c(),g(c,1),c.m(N.parentNode,N)):c&&(re(),$(c,1,1,()=>{c=null}),ie())},i(f){F||(g(n.$$.fragment,f),g(_.$$.fragment,f),g(c),F=!0)},o(f){$(n.$$.fragment,f),$(_.$$.fragment,f),$(c),F=!1},d(f){f&&m(t),C(n),C(_),f&&m(D),c&&c.d(f),f&&m(N)}}}function ns(a){let t,s,e;return s=new Ut({props:{title:Q("schedules.empty-state-title"),error:a[2],$$slots:{default:[as]},$$scope:{ctx:a}}}),{c(){t=z("div"),q(s.$$.fragment),this.h()},l(l){t=L(l,"DIV",{class:!0,slot:!0});var n=B(t);H(s.$$.fragment,n),n.forEach(m),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),y(s,t,null),e=!0},p(l,n){const r={};n&4&&(r.error=l[2]),n&65574&&(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&&m(t),C(s)}}}function Tt(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})=>({12:e}),({visibleItems:e})=>e?4096:0],"action-top-left":[es,({visibleItems:e})=>({12:e}),({visibleItems:e})=>e?4096:0],header:[xl,({visibleItems:e})=>({12:e}),({visibleItems:e})=>e?4096:0],default:[Xl,({visibleItems:e})=>({12:e}),({visibleItems:e})=>e?4096:0]},$$scope:{ctx:a}}}),{c(){q(t.$$.fragment)},l(e){H(t.$$.fragment,e)},m(e,l){y(t,e,l),s=!0},p(e,l){const n={};l&16&&(n.onFetch=e[4]),l&69679&&(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=Tt(a);return{c(){l.c(),s=ue()},l(n){l.l(n),s=ue()},m(n,r){l.m(n,r),S(n,s,r),e=!0},p(n,[r]){r&2&&be(t,t=n[1])?(re(),$(l,1,1,ce),ie(),l=Tt(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&&m(s),l.d(n)}}}function is(a,t,s){let e,l,n,r,i,o;we(a,We,c=>s(9,o=c));let u="";const _=c=>{var f,d;return s(2,u=(d=(f=c==null?void 0:c.body)===null||f===void 0?void 0:f.message)!==null&&d!==void 0?d:`${Q("schedules.error-message-fetching")}: ${c.status}: ${c.statusText}`)};let I=sl();we(a,I,c=>s(8,i=c));let D="";const N=()=>yt(Oe({namespace:e}));function F(c){D=c,s(0,D)}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=c=>D?c.filter(f=>f.scheduleId.toLowerCase().includes(D.toLowerCase())):c)},[D,e,u,r,n,l,_,I,i,o,N,F]}class os extends ke{constructor(t){super(),Ie(this,t,is,rs,be,{})}}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(){q(t.$$.fragment),s=U(),q(e.$$.fragment)},l(n){H(t.$$.fragment,n),s=W(n),H(e.$$.fragment,n)},m(n,r){y(t,n,r),S(n,s,r),y(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&&m(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,be,{})}}export{js as component}; diff --git a/ui/assets/local/_app/immutable/nodes/22.e33258a1.js b/ui/assets/local/_app/immutable/nodes/22.ab6406e9.js similarity index 96% rename from ui/assets/local/_app/immutable/nodes/22.e33258a1.js rename to ui/assets/local/_app/immutable/nodes/22.ab6406e9.js index 5f230c3453..8745c4a0c6 100644 --- a/ui/assets/local/_app/immutable/nodes/22.e33258a1.js +++ b/ui/assets/local/_app/immutable/nodes/22.ab6406e9.js @@ -1 +1 @@ -import{S as Ie,b as Te,a as De,m as k,w as q,c as C,p as b,q as E,x as H,k as i,d as M,u as P,f as w,L as p,y as O,n as j,C as F,D as N,E as Q,j as R,g as W,F as U,G as xl,Q as kl,H as es,I as ts,J as ls,O as bl,U as El,K as ne,e as te,z as Ce,aa as ss,ab as rs,h as Me,ar as ze,as as jl,a7 as Bl,a5 as Ne,$ as ns,A as Qe,a0 as Ue,a1 as je,Z as Il,M as Tl,_ as os,r as as}from"../chunks/index.0942deb7.js";import{p as Ol}from"../chunks/stores.73c3690d.js";import{P as us}from"../chunks/page-title.433b384d.js";import{w as is}from"../chunks/singletons.0a6e865f.js";import{g as fs}from"../chunks/navigation.83f47780.js";import{A as cs}from"../chunks/accordion.89b036f1.js";import{t as _}from"../chunks/translate.135d909a.js";import{S as ms,l as Be}from"../chunks/schedules.17e8498c.js";import{E as ds}from"../chunks/empty-state.64fbab21.js";import{L as Fe}from"../chunks/link.f0cc0bf5.js";import{h as Dl}from"../chunks/workflow-service.61e0ba9f.js";import{t as ye,r as xe,b as we}from"../chunks/time-format.7dc1f425.js";import{d as Ye}from"../chunks/encode-uri.dfce78e4.js";import{u as Rl,g as Pl,d as Ge,v as ps}from"../chunks/route-for.ecd88549.js";import{W as zl}from"../chunks/workflow-status.833cfe09.js";import{T as hs,W as _s}from"../chunks/translate.f1dc53e5.js";import{B as $s}from"../chunks/button.c09134bf.js";import{L as Gl}from"../chunks/loading.e7565465.js";import{d as Ze}from"../chunks/menu.55d17299.js";import{M as Xe}from"../chunks/modal.cb157ac8.js";import{R as gs,a as vs}from"../chunks/radio-input.cbaf2baa.js";import{S as ws}from"../chunks/split-button.5ab393f2.js";import{a as Oe,d as ks,u as bs,p as Es,t as Is}from"../chunks/schedule-service.19174d51.js";import{c as Ts}from"../chunks/core-user.20a8d8a5.js";import{g as Ds,a as Rs,r as Sl}from"../chunks/workflows.13c60c9c.js";import{w as Ps}from"../chunks/write-actions-are-allowed.7f76f8ee.js";function Ss(s){let e,l,t=_("common.notes")+"",r,n,o,a;return{c(){e=k("div"),l=k("h2"),r=q(t),n=C(),o=k("p"),a=q(s[0]),this.h()},l(u){e=b(u,"DIV",{});var f=E(e);l=b(f,"H2",{class:!0});var c=E(l);r=H(c,t),c.forEach(i),n=M(f),o=b(f,"P",{});var g=E(o);a=H(g,s[0]),g.forEach(i),f.forEach(i),this.h()},h(){P(l,"class","mb-4 text-2xl")},m(u,f){w(u,e,f),p(e,l),p(l,r),p(e,n),p(e,o),p(o,a)},p(u,[f]){f&1&&O(a,u[0])},i:j,o:j,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 Ie{constructor(e){super(),Te(this,e,Vs,Ss,De,{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=k("p"),t=q(l),n=q(r)},l(a){e=b(a,"P",{});var u=E(e);t=H(u,l),n=H(u,r),u.forEach(i)},m(a,u){w(a,e,u),p(e,t),p(e,n)},p(a,u){var f;u&2&&r!==(r=(((f=a[1])==null?void 0:f.remainingActions)??_("common.none"))+"")&&O(n,r)},d(a){a&&i(e)}}}function As(s){var ue,Re,$e,ie,ke,ee,Pe;let e,l=_("schedules.start-time")+"",t,r,n=(((ue=s[0])==null?void 0:ue.startTime)??_("common.none"))+"",o,a,u,f=_("schedules.end-time")+"",c,g=(((Re=s[0])==null?void 0:Re.endTime)??_("common.none"))+"",I,m,$,h=_("schedules.jitter")+"",d,v=((($e=s[0])==null?void 0:$e.jitter)??_("common.none"))+"",A,Z,z,me=_("schedules.exclusion-calendar")+"",y,oe=(((ke=(ie=s[0])==null?void 0:ie.excludeCalendar)==null?void 0:ke[0])??_("common.none"))+"",G,de,ae,Y,x=_("schedules.overlap-policy")+"",le,_e=(((ee=s[2])==null?void 0:ee.overlapPolicy)??_("common.none"))+"",se,B=((Pe=s[1])==null?void 0:Pe.limitedActions)&&Vl(s);return{c(){e=k("p"),t=q(l),r=C(),o=q(n),a=C(),u=k("p"),c=q(f),I=q(g),m=C(),$=k("p"),d=q(h),A=q(v),Z=C(),z=k("p"),y=q(me),G=q(oe),de=C(),B&&B.c(),ae=C(),Y=k("p"),le=q(x),se=q(_e)},l(S){e=b(S,"P",{});var L=E(e);t=H(L,l),r=M(L),o=H(L,n),L.forEach(i),a=M(S),u=b(S,"P",{});var pe=E(u);c=H(pe,f),I=H(pe,g),pe.forEach(i),m=M(S),$=b(S,"P",{});var fe=E($);d=H(fe,h),A=H(fe,v),fe.forEach(i),Z=M(S),z=b(S,"P",{});var D=E(z);y=H(D,me),G=H(D,oe),D.forEach(i),de=M(S),B&&B.l(S),ae=M(S),Y=b(S,"P",{});var re=E(Y);le=H(re,x),se=H(re,_e),re.forEach(i)},m(S,L){w(S,e,L),p(e,t),p(e,r),p(e,o),w(S,a,L),w(S,u,L),p(u,c),p(u,I),w(S,m,L),w(S,$,L),p($,d),p($,A),w(S,Z,L),w(S,z,L),p(z,y),p(z,G),w(S,de,L),B&&B.m(S,L),w(S,ae,L),w(S,Y,L),p(Y,le),p(Y,se)},p(S,L){var pe,fe,D,re,ve,be,X;L&1&&n!==(n=(((pe=S[0])==null?void 0:pe.startTime)??_("common.none"))+"")&&O(o,n),L&1&&g!==(g=(((fe=S[0])==null?void 0:fe.endTime)??_("common.none"))+"")&&O(I,g),L&1&&v!==(v=(((D=S[0])==null?void 0:D.jitter)??_("common.none"))+"")&&O(A,v),L&1&&oe!==(oe=(((ve=(re=S[0])==null?void 0:re.excludeCalendar)==null?void 0:ve[0])??_("common.none"))+"")&&O(G,oe),(be=S[1])!=null&&be.limitedActions?B?B.p(S,L):(B=Vl(S),B.c(),B.m(ae.parentNode,ae)):B&&(B.d(1),B=null),L&4&&_e!==(_e=(((X=S[2])==null?void 0:X.overlapPolicy)??_("common.none"))+"")&&O(se,_e)},d(S){S&&i(e),S&&i(a),S&&i(u),S&&i(m),S&&i($),S&&i(Z),S&&i(z),S&&i(de),B&&B.d(S),S&&i(ae),S&&i(Y)}}}function Cs(s){let e,l,t,r;return e=new Ws({props:{notes:s[3]}}),t=new cs({props:{title:_("schedules.advanced-settings"),$$slots:{default:[As]},$$scope:{ctx:s}}}),{c(){F(e.$$.fragment),l=C(),F(t.$$.fragment)},l(n){N(e.$$.fragment,n),l=M(n),N(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||(R(e.$$.fragment,n),R(t.$$.fragment,n),r=!0)},o(n){W(e.$$.fragment,n),W(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 Ie{constructor(e){super(),Te(this,e,Ms,Cs,De,{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=k("div"),n&&n.c(),this.h()},l(o){e=b(o,"DIV",{class:!0});var a=E(e);n&&n.l(a),a.forEach(i),this.h()},h(){P(e,"class",l="panel bg-white "+s[1].class+" svelte-11fqqfg"),kl(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"))&&P(e,"class",l),(!t||a&3)&&kl(e,"error",o[0])},i(o){t||(R(n,o),t=!0)},o(o){W(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=bl(bl({},e),El(o))),"error"in o&&l(0,n=o.error),"$$scope"in o&&l(2,r=o.$$scope)},e=El(e),[n,e,r,t]}class Je extends Ie{constructor(e){super(),Te(this,e,Ls,Hs,De,{error:0})}}function Fs(s){let e,l=_("schedules.error-title")+"",t,r,n,o;return{c(){e=k("p"),t=q(l),r=C(),n=k("p"),o=q(s[0]),this.h()},l(a){e=b(a,"P",{class:!0});var u=E(e);t=H(u,l),u.forEach(i),r=M(a),n=b(a,"P",{class:!0});var f=E(n);o=H(f,s[0]),f.forEach(i),this.h()},h(){P(e,"class","error-text svelte-1lke5yx"),P(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&&O(o,a[0])},d(a){a&&i(e),a&&i(r),a&&i(n)}}}function Ns(s){let e,l;return e=new Je({props:{error:!0,$$slots:{default:[Fs]},$$scope:{ctx:s}}}),{c(){F(e.$$.fragment)},l(t){N(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||(R(e.$$.fragment,t),l=!0)},o(t){W(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 Ie{constructor(e){super(),Te(this,e,Qs,Ns,De,{error:0})}}function Us(s){let e,l=_("schedules.schedule-spec")+"",t,r,n,o,a;return o=new ms({props:{calendar:s[0],interval:s[1],class:"text-base"}}),{c(){e=k("h2"),t=q(l),r=C(),n=k("div"),F(o.$$.fragment),this.h()},l(u){e=b(u,"H2",{class:!0});var f=E(e);t=H(f,l),f.forEach(i),r=M(u),n=b(u,"DIV",{class:!0});var c=E(n);N(o.$$.fragment,c),c.forEach(i),this.h()},h(){P(e,"class","mb-4 text-2xl"),P(n,"class","pr-2")},m(u,f){w(u,e,f),p(e,t),w(u,r,f),w(u,n,f),Q(o,n,null),a=!0},p(u,f){const c={};f&1&&(c.calendar=u[0]),f&2&&(c.interval=u[1]),o.$set(c)},i(u){a||(R(o.$$.fragment,u),a=!0)},o(u){W(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 Je({props:{$$slots:{default:[Us]},$$scope:{ctx:s}}}),{c(){F(e.$$.fragment)},l(t){N(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||(R(e.$$.fragment,t),l=!0)},o(t){W(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 Ie{constructor(e){super(),Te(this,e,Bs,js,De,{calendar:0,interval:1})}}function Wl(s,e,l){const t=s.slice();return t[6]=e[l],t}function zs(s){let e=_("common.view-all-runs")+"",l;return{c(){l=q(e)},l(t){l=H(t,e)},m(t,r){w(t,l,r)},p:j,d(t){t&&i(l)}}}function Gs(s){let e,l,t,r,n=s[6].startWorkflowResult.workflowId+"",o,a,u,f,c=we(s[6].actualTime,s[3],{relative:s[4]})+"",g;return{c(){e=k("div"),l=k("div"),t=C(),r=k("div"),o=q(n),a=C(),u=k("div"),f=k("p"),g=q(c),this.h()},l(I){e=b(I,"DIV",{class:!0});var m=E(e);l=b(m,"DIV",{class:!0}),E(l).forEach(i),t=M(m),r=b(m,"DIV",{class:!0});var $=E(r);o=H($,n),$.forEach(i),a=M(m),u=b(m,"DIV",{class:!0});var h=E(u);f=b(h,"P",{});var d=E(f);g=H(d,c),d.forEach(i),h.forEach(i),m.forEach(i),this.h()},h(){P(l,"class","w-28"),P(r,"class","w-96"),P(u,"class","ml-auto"),P(e,"class","row svelte-lqpjgu")},m(I,m){w(I,e,m),p(e,l),p(e,t),p(e,r),p(r,o),p(e,a),p(e,u),p(u,f),p(f,g)},p(I,m){m&1&&n!==(n=I[6].startWorkflowResult.workflowId+"")&&O(o,n),m&25&&c!==(c=we(I[6].actualTime,I[3],{relative:I[4]})+"")&&O(g,c)},i:j,o:j,d(I){I&&i(e)}}}function Js(s){let e,l,t,r,n,o,a,u,f,c=we(s[6].actualTime,s[3],{relative:s[4]})+"",g,I;return t=new zl({props:{status:s[9].status}}),o=new Fe({props:{href:Pl({workflow:s[6].startWorkflowResult.workflowId,run:s[6].startWorkflowResult.runId,namespace:s[1]}),$$slots:{default:[Ks]},$$scope:{ctx:s}}}),{c(){e=k("div"),l=k("div"),F(t.$$.fragment),r=C(),n=k("div"),F(o.$$.fragment),a=C(),u=k("div"),f=k("p"),g=q(c),this.h()},l(m){e=b(m,"DIV",{class:!0});var $=E(e);l=b($,"DIV",{class:!0});var h=E(l);N(t.$$.fragment,h),h.forEach(i),r=M($),n=b($,"DIV",{class:!0});var d=E(n);N(o.$$.fragment,d),d.forEach(i),a=M($),u=b($,"DIV",{class:!0});var v=E(u);f=b(v,"P",{});var A=E(f);g=H(A,c),A.forEach(i),v.forEach(i),$.forEach(i),this.h()},h(){P(l,"class","w-28"),P(n,"class","mx-2 w-auto break-words"),P(u,"class","ml-auto"),P(e,"class","row svelte-lqpjgu")},m(m,$){w(m,e,$),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,f),p(f,g),I=!0},p(m,$){const h={};$&3&&(h.status=m[9].status),t.$set(h);const d={};$&3&&(d.href=Pl({workflow:m[6].startWorkflowResult.workflowId,run:m[6].startWorkflowResult.runId,namespace:m[1]})),$&1025&&(d.$$scope={dirty:$,ctx:m}),o.$set(d),(!I||$&25)&&c!==(c=we(m[6].actualTime,m[3],{relative:m[4]})+"")&&O(g,c)},i(m){I||(R(t.$$.fragment,m),R(o.$$.fragment,m),I=!0)},o(m){W(t.$$.fragment,m),W(o.$$.fragment,m),I=!1},d(m){m&&i(e),U(t),U(o)}}}function Ks(s){let e=s[6].startWorkflowResult.workflowId+"",l;return{c(){l=q(e)},l(t){l=H(t,e)},m(t,r){w(t,l,r)},p(t,r){r&1&&e!==(e=t[6].startWorkflowResult.workflowId+"")&&O(l,e)},d(t){t&&i(l)}}}function Zs(s){return{c:j,l:j,m:j,p:j,i:j,o:j,d:j}}function Al(s,e){let l,t,r,n,o={ctx:e,current:null,token:null,hasCatch:!0,pending:Zs,then:Js,catch:Gs,value:9,blocks:[,,,]};return ze(r=Dl({namespace:e[1],workflowId:Ye(e[6].startWorkflowResult.workflowId),runId:e[6].startWorkflowResult.runId},fetch),o),{key:s,first:null,c(){l=te(),t=te(),o.block.c(),this.h()},l(a){l=te(),t=te(),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=Dl({namespace:e[1],workflowId:Ye(e[6].startWorkflowResult.workflowId),runId:e[6].startWorkflowResult.runId},fetch))&&ze(r,o)||jl(o,e,u)},i(a){n||(R(o.block),n=!0)},o(a){for(let u=0;u<3;u+=1){const f=o.blocks[u];W(f)}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 ds({props:{title:_("schedules.recent-runs-empty-state-title")}}),{c(){F(e.$$.fragment)},l(t){N(e.$$.fragment,t)},m(t,r){Q(e,t,r),l=!0},p:j,i(t){l||(R(e.$$.fragment,t),l=!0)},o(t){W(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=[],f=new Map,c,g,I;o=new Fe({props:{href:Rl({namespace:s[1],query:s[2]}),$$slots:{default:[zs]},$$scope:{ctx:s}}});let m=s[5](s[0]);const $=d=>{var v,A;return(A=(v=d[6])==null?void 0:v.startWorkflowResult)==null?void 0:A.workflowId};for(let d=0;d{h=null}),Me()):h?(h.p(d,v),v&1&&R(h,1)):(h=Cl(),h.c(),R(h,1),h.m(g.parentNode,g))},i(d){if(!I){R(o.$$.fragment,d);for(let v=0;vl(3,t=f)),ne(s,xe,f=>l(4,r=f));let{recentRuns:n=[]}=e,{namespace:o}=e,{workflowQuery:a}=e;const u=f=>{var c,g;return(g=(c=f==null?void 0:f.sort((I,m)=>new Date(m.actualTime).getTime()-new Date(I.actualTime).getTime()))===null||c===void 0?void 0:c.slice(0,5))!==null&&g!==void 0?g:[]};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]}class xs extends Ie{constructor(e){super(),Te(this,e,ys,Ys,De,{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=k("div"),l=k("p"),r=q(t),n=C(),this.h()},l(o){e=b(o,"DIV",{class:!0});var a=E(e);l=b(a,"P",{});var u=E(l);r=H(u,t),u.forEach(i),n=M(a),a.forEach(i),this.h()},h(){P(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")})+"")&&O(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,xe,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 Ie{constructor(e){super(),Te(this,e,lr,tr,De,{futureRuns:0})}}function Hl(s,e,l){const t=s.slice();return t[42]=e[l],t}function rr(s){var m;let e,l,t,r,n,o,a,u,f,c,g,I;return t=new Fe({props:{href:Ge({namespace:s[13]}),icon:"chevron-left",$$slots:{default:[nr]},$$scope:{ctx:s}}}),g=new Jl({props:{error:(m=s[12])==null?void 0:m.message}}),{c(){e=k("header"),l=k("div"),F(t.$$.fragment),r=C(),n=k("h1"),o=q(s[14]),a=C(),u=k("p"),f=q(s[13]),c=C(),F(g.$$.fragment),this.h()},l($){e=b($,"HEADER",{class:!0});var h=E(e);l=b(h,"DIV",{class:!0});var d=E(l);N(t.$$.fragment,d),r=M(d),n=b(d,"H1",{class:!0,"data-testid":!0});var v=E(n);o=H(v,s[14]),v.forEach(i),a=M(d),u=b(d,"P",{class:!0});var A=E(u);f=H(A,s[13]),A.forEach(i),d.forEach(i),h.forEach(i),c=M($),N(g.$$.fragment,$),this.h()},h(){P(n,"class","mt-8 select-all text-2xl font-medium"),P(n,"data-testid","schedule-name"),P(u,"class","text-sm"),P(l,"class","relative flex flex-col gap-1"),P(e,"class","mb-8")},m($,h){w($,e,h),p(e,l),Q(t,l,null),p(l,r),p(l,n),p(n,o),p(l,a),p(l,u),p(u,f),w($,c,h),Q(g,$,h),I=!0},p($,h){var A;const d={};h[1]&16384&&(d.$$scope={dirty:h,ctx:$}),t.$set(d);const v={};h[0]&1&&(v.error=(A=$[12])==null?void 0:A.message),g.$set(v)},i($){I||(R(t.$$.fragment,$),R(g.$$.fragment,$),I=!0)},o($){W(t.$$.fragment,$),W(g.$$.fragment,$),I=!1},d($){$&&i(e),U(t),$&&i(c),U(g,$)}}}function nr(s){let e=_("schedules.back-to-schedules")+"",l;return{c(){l=q(e)},l(t){l=H(t,e)},m(t,r){w(t,l,r)},p:j,d(t){t&&i(l)}}}function or(s){let e,l,t,r;const n=[ur,ar],o=[];function a(u,f){return u[6]?0:1}return e=a(s),l=o[e]=n[e](s),{c(){l.c(),t=te()},l(u){l.l(u),t=te()},m(u,f){o[e].m(u,f),w(u,t,f),r=!0},p(u,f){let c=e;e=a(u),e===c?o[e].p(u,f):(Ce(),W(o[c],1,1,()=>{o[c]=null}),Me(),l=o[e],l?l.p(u,f):(l=o[e]=n[e](u),l.c()),R(l,1),l.m(t.parentNode,t))},i(u){r||(R(l),r=!0)},o(u){W(l),r=!1},d(u){o[e].d(u),u&&i(t)}}}function ar(s){var lt,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,Ft;let e,l,t,r,n,o,a,u,f,c,g,I,m=((ot=(nt=(rt=(st=(lt=s[41])==null?void 0:lt.schedule)==null?void 0:st.action)==null?void 0:rt.startWorkflow)==null?void 0:nt.workflowType)==null?void 0:ot.name)+"",$,h,d,v,A=_("common.created",{created:we((ut=(at=s[41])==null?void 0:at.info)==null?void 0:ut.createTime,s[7],{relative:s[8]})})+"",Z,z,me,y,oe,G,de,ae,Y,x,le,_e,se,B,ue,Re,$e,ie,ke,ee,Pe,S,L,pe,fe,D,re,ve,be;t=new Fe({props:{href:Ge({namespace:s[13]}),icon:"chevron-left",$$slots:{default:[ir]},$$scope:{ctx:s}}}),c=new zl({props:{status:(it=s[41])!=null&&it.schedule.state.paused?"Paused":"Running"}});let X=((ct=(ft=s[41])==null?void 0:ft.info)==null?void 0:ct.updateTime)&&Ll(s);y=new ws({props:{position:"right",label:(pt=(dt=(mt=s[41])==null?void 0:mt.schedule)==null?void 0:dt.state)!=null&&pt.paused?_("schedules.unpause"):_("schedules.pause"),menuLabel:_("schedules.schedule-actions"),id:"schedule-actions",disabled:s[20],$$slots:{default:[dr]},$$scope:{ctx:s}}}),y.$on("click",s[28]);let J=((_t=(ht=s[41])==null?void 0:ht.info)==null?void 0:_t.invalidScheduleError)&&Fl(s),K=s[9]&&Nl(s);le=new xs({props:{namespace:s[13],recentRuns:(gt=($t=s[41])==null?void 0:$t.info)==null?void 0:gt.recentActions,workflowQuery:s[15]}}),se=new sr({props:{futureRuns:(wt=(vt=s[41])==null?void 0:vt.info)==null?void 0:wt.futureActionTimes}}),ue=new qs({props:{spec:(bt=(kt=s[41])==null?void 0:kt.schedule)==null?void 0:bt.spec,state:(It=(Et=s[41])==null?void 0:Et.schedule)==null?void 0:It.state,policies:(Dt=(Tt=s[41])==null?void 0:Tt.schedule)==null?void 0:Dt.policies,notes:(St=(Pt=(Rt=s[41])==null?void 0:Rt.schedule)==null?void 0:Pt.state)==null?void 0:St.notes}}),ie=new Os({props:{calendar:(Ct=(At=(Wt=(Vt=s[41])==null?void 0:Vt.schedule)==null?void 0:Wt.spec)==null?void 0:At.structuredCalendar)==null?void 0:Ct[0],interval:(Lt=(Ht=(qt=(Mt=s[41])==null?void 0:Mt.schedule)==null?void 0:qt.spec)==null?void 0:Ht.interval)==null?void 0:Lt[0]}});function Kl(T){s[31](T)}function Zl(){return s[32](s[41])}let et={id:"pause-schedule-modal",confirmType:"primary",confirmText:(Ft=s[41])!=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&&(et.open=s[1]),ee=new Xe({props:et}),Qe.push(()=>Ue(ee,"open",Kl)),ee.$on("confirmModal",Zl),ee.$on("cancelModal",s[24]);function Xl(T){s[33](T)}let tt={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&&(tt.open=s[2]),L=new Xe({props:tt}),Qe.push(()=>Ue(L,"open",Xl)),L.$on("confirmModal",s[34]),L.$on("cancelModal",s[35]);function Yl(T){s[36](T)}function yl(T){s[37](T)}let Ke={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&&(Ke.open=s[3]),s[12]!==void 0&&(Ke.error=s[12]),D=new Xe({props:Ke}),Qe.push(()=>Ue(D,"open",Yl)),Qe.push(()=>Ue(D,"error",yl)),D.$on("confirmModal",s[21]),D.$on("cancelModal",s[24]),{c(){e=k("header"),l=k("div"),F(t.$$.fragment),r=C(),n=k("h1"),o=k("span"),a=q(s[14]),u=C(),f=k("div"),F(c.$$.fragment),g=C(),I=k("p"),$=q(m),h=C(),d=k("div"),v=k("p"),Z=q(A),z=C(),X&&X.c(),me=C(),F(y.$$.fragment),oe=C(),G=k("div"),J&&J.c(),de=C(),K&&K.c(),ae=C(),Y=k("div"),x=k("div"),F(le.$$.fragment),_e=C(),F(se.$$.fragment),B=C(),F(ue.$$.fragment),Re=C(),$e=k("div"),F(ie.$$.fragment),ke=C(),F(ee.$$.fragment),S=C(),F(L.$$.fragment),fe=C(),F(D.$$.fragment),this.h()},l(T){e=b(T,"HEADER",{class:!0});var V=E(e);l=b(V,"DIV",{class:!0});var ce=E(l);N(t.$$.fragment,ce),r=M(ce),n=b(ce,"H1",{class:!0});var qe=E(n);o=b(qe,"SPAN",{class:!0,"data-testid":!0});var We=E(o);a=H(We,s[14]),We.forEach(i),qe.forEach(i),u=M(ce),f=b(ce,"DIV",{class:!0});var Ve=E(f);N(c.$$.fragment,Ve),g=M(Ve),I=b(Ve,"P",{});var He=E(I);$=H(He,m),He.forEach(i),Ve.forEach(i),h=M(ce),d=b(ce,"DIV",{class:!0});var Se=E(d);v=b(Se,"P",{});var Ae=E(v);Z=H(Ae,A),Ae.forEach(i),Se.forEach(i),z=M(ce),X&&X.l(ce),ce.forEach(i),me=M(V),N(y.$$.fragment,V),V.forEach(i),oe=M(T),G=b(T,"DIV",{class:!0});var he=E(G);J&&J.l(he),de=M(he),K&&K.l(he),ae=M(he),Y=b(he,"DIV",{class:!0});var Ee=E(Y);x=b(Ee,"DIV",{class:!0});var ge=E(x);N(le.$$.fragment,ge),_e=M(ge),N(se.$$.fragment,ge),B=M(ge),N(ue.$$.fragment,ge),ge.forEach(i),Re=M(Ee),$e=b(Ee,"DIV",{class:!0});var Le=E($e);N(ie.$$.fragment,Le),Le.forEach(i),Ee.forEach(i),he.forEach(i),ke=M(T),N(ee.$$.fragment,T),S=M(T),N(L.$$.fragment,T),fe=M(T),N(D.$$.fragment,T),this.h()},h(){P(o,"class","select-all font-medium"),P(o,"data-testid","schedule-name"),P(n,"class","relative flex items-center text-2xl"),P(f,"class","flex items-center gap-2 text-lg"),P(d,"class","flex items-center gap-2 text-sm"),P(l,"class","relative flex flex-col gap-4"),P(e,"class","mb-8 flex flex-row justify-between gap-4"),P(x,"class","flex w-full flex-col items-start gap-4 xl:w-2/3"),P($e,"class","w-full xl:w-1/3"),P(Y,"class","flex flex-col gap-4 xl:flex-row"),P(G,"class","flex flex-col gap-4 pb-24")},m(T,V){w(T,e,V),p(e,l),Q(t,l,null),p(l,r),p(l,n),p(n,o),p(o,a),p(l,u),p(l,f),Q(c,f,null),p(f,g),p(f,I),p(I,$),p(l,h),p(l,d),p(d,v),p(v,Z),p(l,z),X&&X.m(l,null),p(e,me),Q(y,e,null),w(T,oe,V),w(T,G,V),J&&J.m(G,null),p(G,de),K&&K.m(G,null),p(G,ae),p(G,Y),p(Y,x),Q(le,x,null),p(x,_e),Q(se,x,null),p(x,B),Q(ue,x,null),p(Y,Re),p(Y,$e),Q(ie,$e,null),w(T,ke,V),Q(ee,T,V),w(T,S,V),Q(L,T,V),w(T,fe,V),Q(D,T,V),be=!0},p(T,V){var Le,Nt,Qt,Ut,jt,Bt,Ot,zt,Gt,Jt,Kt,Zt,Xt,Yt,yt,xt,el,tl,ll,sl,rl,nl,ol,al,ul,il,fl,cl,ml,dl,pl,hl,_l,$l,gl,vl,wl;s=T;const ce={};V[1]&16384&&(ce.$$scope={dirty:V,ctx:s}),t.$set(ce);const qe={};V[0]&1&&(qe.status=(Le=s[41])!=null&&Le.schedule.state.paused?"Paused":"Running"),c.$set(qe),(!be||V[0]&1)&&m!==(m=((Bt=(jt=(Ut=(Qt=(Nt=s[41])==null?void 0:Nt.schedule)==null?void 0:Qt.action)==null?void 0:Ut.startWorkflow)==null?void 0:jt.workflowType)==null?void 0:Bt.name)+"")&&O($,m),(!be||V[0]&385)&&A!==(A=_("common.created",{created:we((zt=(Ot=s[41])==null?void 0:Ot.info)==null?void 0:zt.createTime,s[7],{relative:s[8]})})+"")&&O(Z,A),(Jt=(Gt=s[41])==null?void 0:Gt.info)!=null&&Jt.updateTime?X?X.p(s,V):(X=Ll(s),X.c(),X.m(l,null)):X&&(X.d(1),X=null);const We={};V[0]&1&&(We.label=(Xt=(Zt=(Kt=s[41])==null?void 0:Kt.schedule)==null?void 0:Zt.state)!=null&&Xt.paused?_("schedules.unpause"):_("schedules.pause")),V[0]&12|V[1]&16384&&(We.$$scope={dirty:V,ctx:s}),y.$set(We),(yt=(Yt=s[41])==null?void 0:Yt.info)!=null&&yt.invalidScheduleError?J?(J.p(s,V),V[0]&1&&R(J,1)):(J=Fl(s),J.c(),R(J,1),J.m(G,de)):J&&(Ce(),W(J,1,1,()=>{J=null}),Me()),s[9]?K?(K.p(s,V),V[0]&512&&R(K,1)):(K=Nl(s),K.c(),R(K,1),K.m(G,ae)):K&&(Ce(),W(K,1,1,()=>{K=null}),Me());const Ve={};V[0]&1&&(Ve.recentRuns=(el=(xt=s[41])==null?void 0:xt.info)==null?void 0:el.recentActions),le.$set(Ve);const He={};V[0]&1&&(He.futureRuns=(ll=(tl=s[41])==null?void 0:tl.info)==null?void 0:ll.futureActionTimes),se.$set(He);const Se={};V[0]&1&&(Se.spec=(rl=(sl=s[41])==null?void 0:sl.schedule)==null?void 0:rl.spec),V[0]&1&&(Se.state=(ol=(nl=s[41])==null?void 0:nl.schedule)==null?void 0:ol.state),V[0]&1&&(Se.policies=(ul=(al=s[41])==null?void 0:al.schedule)==null?void 0:ul.policies),V[0]&1&&(Se.notes=(cl=(fl=(il=s[41])==null?void 0:il.schedule)==null?void 0:fl.state)==null?void 0:cl.notes),ue.$set(Se);const Ae={};V[0]&1&&(Ae.calendar=(hl=(pl=(dl=(ml=s[41])==null?void 0:ml.schedule)==null?void 0:dl.spec)==null?void 0:pl.structuredCalendar)==null?void 0:hl[0]),V[0]&1&&(Ae.interval=(vl=(gl=($l=(_l=s[41])==null?void 0:_l.schedule)==null?void 0:$l.spec)==null?void 0:gl.interval)==null?void 0:vl[0]),ie.$set(Ae);const he={};V[0]&1&&(he.confirmText=(wl=s[41])!=null&&wl.schedule.state.paused?_("schedules.unpause"):_("schedules.pause")),V[0]&16&&(he.confirmDisabled=!s[4]),V[0]&17|V[1]&16384&&(he.$$scope={dirty:V,ctx:s}),!Pe&&V[0]&2&&(Pe=!0,he.open=s[1],je(()=>Pe=!1)),ee.$set(he);const Ee={};V[0]&32&&(Ee.loading=s[5]),V[1]&16384&&(Ee.$$scope={dirty:V,ctx:s}),!pe&&V[0]&4&&(pe=!0,Ee.open=s[2],je(()=>pe=!1)),L.$set(Ee);const ge={};V[1]&16384&&(ge.$$scope={dirty:V,ctx:s}),!re&&V[0]&8&&(re=!0,ge.open=s[3],je(()=>re=!1)),!ve&&V[0]&4096&&(ve=!0,ge.error=s[12],je(()=>ve=!1)),D.$set(ge)},i(T){be||(R(t.$$.fragment,T),R(c.$$.fragment,T),R(y.$$.fragment,T),R(J),R(K),R(le.$$.fragment,T),R(se.$$.fragment,T),R(ue.$$.fragment,T),R(ie.$$.fragment,T),R(ee.$$.fragment,T),R(L.$$.fragment,T),R(D.$$.fragment,T),be=!0)},o(T){W(t.$$.fragment,T),W(c.$$.fragment,T),W(y.$$.fragment,T),W(J),W(K),W(le.$$.fragment,T),W(se.$$.fragment,T),W(ue.$$.fragment,T),W(ie.$$.fragment,T),W(ee.$$.fragment,T),W(L.$$.fragment,T),W(D.$$.fragment,T),be=!1},d(T){T&&i(e),U(t),U(c),X&&X.d(),U(y),T&&i(oe),T&&i(G),J&&J.d(),K&&K.d(),U(le),U(se),U(ue),U(ie),T&&i(ke),U(ee,T),T&&i(S),U(L,T),T&&i(fe),U(D,T)}}}function ur(s){let e,l;return e=new Gl({props:{title:_("schedules.deleting"),class:"my-2"}}),{c(){F(e.$$.fragment)},l(t){N(e.$$.fragment,t)},m(t,r){Q(e,t,r),l=!0},p:j,i(t){l||(R(e.$$.fragment,t),l=!0)},o(t){W(e.$$.fragment,t),l=!1},d(t){U(e,t)}}}function ir(s){let e=_("schedules.back-to-schedules")+"",l;return{c(){l=q(e)},l(t){l=H(t,e)},m(t,r){w(t,l,r)},p:j,d(t){t&&i(l)}}}function Ll(s){var n,o;let e,l,t=_("common.last-updated",{updated:we((o=(n=s[41])==null?void 0:n.info)==null?void 0:o.updateTime,s[7],{relative:s[8]})})+"",r;return{c(){e=k("div"),l=k("p"),r=q(t),this.h()},l(a){e=b(a,"DIV",{class:!0});var u=E(e);l=b(u,"P",{});var f=E(l);r=H(f,t),f.forEach(i),u.forEach(i),this.h()},h(){P(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 f,c;u[0]&385&&t!==(t=_("common.last-updated",{updated:we((c=(f=a[41])==null?void 0:f.info)==null?void 0:c.updateTime,a[7],{relative:a[8]})})+"")&&O(r,t)},d(a){a&&i(e)}}}function fr(s){let e=_("schedules.trigger")+"",l;return{c(){l=q(e)},l(t){l=H(t,e)},m(t,r){w(t,l,r)},p:j,d(t){t&&i(l)}}}function cr(s){let e=_("common.edit")+"",l;return{c(){l=q(e)},l(t){l=H(t,e)},m(t,r){w(t,l,r)},p:j,d(t){t&&i(l)}}}function mr(s){let e=_("common.delete")+"",l;return{c(){l=q(e)},l(t){l=H(t,e)},m(t,r){w(t,l,r)},p:j,d(t){t&&i(l)}}}function dr(s){let e,l,t,r,n,o;return e=new Ze({props:{"data-testid":"trigger-schedule",$$slots:{default:[fr]},$$scope:{ctx:s}}}),e.$on("click",s[26]),t=new Ze({props:{"data-testid":"edit-schedule",href:ps({namespace:s[13],scheduleId:s[14]}),$$slots:{default:[cr]},$$scope:{ctx:s}}}),n=new Ze({props:{"data-testid":"delete-schedule",destructive:!0,$$slots:{default:[mr]},$$scope:{ctx:s}}}),n.$on("click",s[27]),{c(){F(e.$$.fragment),l=C(),F(t.$$.fragment),r=C(),F(n.$$.fragment)},l(a){N(e.$$.fragment,a),l=M(a),N(t.$$.fragment,a),r=M(a),N(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 f={};u[1]&16384&&(f.$$scope={dirty:u,ctx:a}),e.$set(f);const c={};u[1]&16384&&(c.$$scope={dirty:u,ctx:a}),t.$set(c);const g={};u[1]&16384&&(g.$$scope={dirty:u,ctx:a}),n.$set(g)},i(a){o||(R(e.$$.fragment,a),R(t.$$.fragment,a),R(n.$$.fragment,a),o=!0)},o(a){W(e.$$.fragment,a),W(t.$$.fragment,a),W(n.$$.fragment,a),o=!1},d(a){U(e,a),a&&i(l),U(t,a),a&&i(r),U(n,a)}}}function Fl(s){var r,n;let e,l,t;return l=new Jl({props:{error:(n=(r=s[41])==null?void 0:r.info)==null?void 0:n.invalidScheduleError}}),{c(){e=k("div"),F(l.$$.fragment),this.h()},l(o){e=b(o,"DIV",{class:!0});var a=E(e);N(l.$$.fragment,a),a.forEach(i),this.h()},h(){P(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 f,c;const u={};a[0]&1&&(u.error=(c=(f=o[41])==null?void 0:f.info)==null?void 0:c.invalidScheduleError),l.$set(u)},i(o){t||(R(l.$$.fragment,o),t=!0)},o(o){W(l.$$.fragment,o),t=!1},d(o){o&&i(e),U(l)}}}function Nl(s){let e,l,t,r=s[10].count.toLocaleString()+"",n,o,a,u,f,c,g,I;return a=new hs({props:{key:"common.workflows-plural",count:s[10].count}}),f=new $s({props:{size:"xs",variant:"ghost",leadingIcon:"retry",$$slots:{default:[pr]},$$scope:{ctx:s}}}),f.$on("click",s[29]),g=new _s({props:{staticQuery:s[15]}}),{c(){e=k("div"),l=k("div"),t=k("span"),n=q(r),o=C(),F(a.$$.fragment),u=C(),F(f.$$.fragment),c=C(),F(g.$$.fragment),this.h()},l(m){e=b(m,"DIV",{class:!0});var $=E(e);l=b($,"DIV",{class:!0});var h=E(l);t=b(h,"SPAN",{"data-testid":!0});var d=E(t);n=H(d,r),o=M(d),N(a.$$.fragment,d),d.forEach(i),u=M(h),N(f.$$.fragment,h),h.forEach(i),c=M($),N(g.$$.fragment,$),$.forEach(i),this.h()},h(){P(t,"data-testid","workflow-count"),P(l,"class","flex items-center gap-2"),P(e,"class","flex w-full flex-col gap-2 text-lg")},m(m,$){w(m,e,$),p(e,l),p(l,t),p(t,n),p(t,o),Q(a,t,null),p(l,u),Q(f,l,null),p(e,c),Q(g,e,null),I=!0},p(m,$){(!I||$[0]&1024)&&r!==(r=m[10].count.toLocaleString()+"")&&O(n,r);const h={};$[0]&1024&&(h.count=m[10].count),a.$set(h);const d={};$[0]&1024|$[1]&16384&&(d.$$scope={dirty:$,ctx:m}),f.$set(d)},i(m){I||(R(a.$$.fragment,m),R(f.$$.fragment,m),R(g.$$.fragment,m),I=!0)},o(m){W(a.$$.fragment,m),W(f.$$.fragment,m),W(g.$$.fragment,m),I=!1},d(m){m&&i(e),U(a),U(f),U(g)}}}function Ql(s){let e,l=s[10].newCount.toLocaleString()+"",t;return{c(){e=q("+"),t=q(l)},l(r){e=H(r,"+"),t=H(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()+"")&&O(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=te()},l(t){l&&l.l(t),e=te()},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[41])!=null&&r.schedule.state.paused?_("schedules.unpause-modal-title"):_("schedules.pause-modal-title"))+"",t;return{c(){e=k("h3"),t=q(l),this.h()},l(n){e=b(n,"H3",{slot:!0});var o=E(e);t=H(o,l),o.forEach(i),this.h()},h(){P(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[41])!=null&&a.schedule.state.paused?_("schedules.unpause-modal-title"):_("schedules.pause-modal-title"))+"")&&O(t,l)},d(n){n&&i(e)}}}function _r(s){var m,$;let e,l,t=((m=s[41])!=null&&m.schedule.state.paused?_("schedules.unpause-modal-confirmation",{schedule:s[14]}):_("schedules.pause-modal-confirmation",{schedule:s[14]}))+"",r,n,o,a=(($=s[41])!=null&&$.schedule.state.paused?_("schedules.unpause-reason"):_("schedules.pause-reason"))+"",u,f,c,g,I;return{c(){e=k("div"),l=k("p"),r=q(t),n=C(),o=k("p"),u=q(a),f=C(),c=k("input"),this.h()},l(h){e=b(h,"DIV",{slot:!0});var d=E(e);l=b(d,"P",{});var v=E(l);r=H(v,t),v.forEach(i),n=M(d),o=b(d,"P",{class:!0});var A=E(o);u=H(A,a),A.forEach(i),f=M(d),c=b(d,"INPUT",{class:!0,placeholder:!0}),d.forEach(i),this.h()},h(){P(o,"class","my-4"),P(c,"class","mt-4 block w-full rounded-md border border-gray-200 p-2"),P(c,"placeholder",_("common.reason")),P(e,"slot","content")},m(h,d){w(h,e,d),p(e,l),p(l,r),p(e,n),p(e,o),p(o,u),p(e,f),p(e,c),Il(c,s[4]),g||(I=[Tl(c,"input",s[30]),Tl(c,"keydown",os(s[25]))],g=!0)},p(h,d){var v,A;d[0]&1&&t!==(t=((v=h[41])!=null&&v.schedule.state.paused?_("schedules.unpause-modal-confirmation",{schedule:h[14]}):_("schedules.pause-modal-confirmation",{schedule:h[14]}))+"")&&O(r,t),d[0]&1&&a!==(a=((A=h[41])!=null&&A.schedule.state.paused?_("schedules.unpause-reason"):_("schedules.pause-reason"))+"")&&O(u,a),d[0]&16&&c.value!==h[4]&&Il(c,h[4])},d(h){h&&i(e),g=!1,as(I)}}}function $r(s){let e,l=_("schedules.trigger-modal-title")+"",t;return{c(){e=k("h3"),t=q(l),this.h()},l(r){e=b(r,"H3",{slot:!0});var n=E(e);t=H(n,l),n.forEach(i),this.h()},h(){P(e,"slot","title")},m(r,n){w(r,e,n),p(e,t)},p:j,d(r){r&&i(e)}}}function Ul(s){let e,l;return e=new vs({props:{id:s[42].value,value:s[42].value,label:s[42].label,description:s[42].description}}),{c(){F(e.$$.fragment)},l(t){N(e.$$.fragment,t)},m(t,r){Q(e,t,r),l=!0},p:j,i(t){l||(R(e.$$.fragment,t),l=!0)},o(t){W(e.$$.fragment,t),l=!1},d(t){U(e,t)}}}function gr(s){let e,l,t=s[18],r=[];for(let o=0;oW(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])&&ze(l,r)||jl(r,s,o)},i(n){t||(R(r.block),t=!0)},o(n){for(let o=0;o<3;o+=1){const a=r.blocks[o];W(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,f,c,g;ne(s,Be,D=>l(6,r=D)),ne(s,Ol,D=>l(40,o=D)),ne(s,ye,D=>l(7,a=D)),ne(s,xe,D=>l(8,u=D)),ne(s,Ds,D=>l(9,f=D)),ne(s,Rs,D=>l(10,c=D)),ne(s,Sl,D=>l(11,g=D));let I=o.params.namespace,m=o.params.schedule,$=`TemporalScheduledById="${m}"`;const h={namespace:I,scheduleId:Ye(m)};let d=Oe(h),v=!1,A=!1,Z=!1,z="",me="",y=!1,oe=is("Unspecified");ne(s,oe,D=>l(38,t=D));let G=[{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,D=>l(39,n=D));let ae=n.namespaceWriteDisabled(I)||!Ps();const Y=async()=>{l(12,me="");try{Ne(Be,r=!0,r),await ks({namespace:I,scheduleId:m}),l(3,Z=!1),setTimeout(()=>{Ne(Be,r=!1,r),fs(Ge({namespace:I}))},2e3),l(4,z="")}catch(D){l(12,me=_("schedules.delete-schedule-error",{error:D==null?void 0:D.message})),Ne(Be,r=!1,r)}},x=async D=>{var re,ve;!((ve=(re=D==null?void 0:D.schedule)===null||re===void 0?void 0:re.state)===null||ve===void 0)&&ve.paused?await bs({namespace:I,scheduleId:m,reason:z}):await Es({namespace:I,scheduleId:m,reason:z}),l(0,d=Oe(h)),l(4,z=""),l(1,v=!1)},le=async()=>{l(5,y=!0),await Is({namespace:I,scheduleId:m,overlapPolicy:t}),setTimeout(()=>{l(0,d=Oe(h)),l(2,A=!1),l(5,y=!1)},1e3)},_e=()=>{l(4,z="")};function se(D){ns.call(this,s,D)}const B=()=>l(2,A=!0),ue=()=>l(3,Z=!0),Re=()=>l(1,v=!0),$e=()=>{l(0,d=Oe(h)),Ne(Sl,g=Date.now(),g)};function ie(){z=this.value,l(4,z)}function ke(D){v=D,l(1,v)}const ee=D=>x(D);function Pe(D){A=D,l(2,A)}const S=()=>le(),L=()=>l(2,A=!1);function pe(D){Z=D,l(3,Z)}function fe(D){me=D,l(12,me)}return[d,v,A,Z,z,y,r,a,u,f,c,g,me,I,m,$,h,oe,G,de,ae,Y,x,le,_e,se,B,ue,Re,$e,ie,ke,ee,Pe,S,L,pe,fe]}class Dr extends Ie{constructor(e){super(),Te(this,e,Tr,Ir,De,{},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(){F(e.$$.fragment),l=C(),F(t.$$.fragment)},l(n){N(e.$$.fragment,n),l=M(n),N(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||(R(e.$$.fragment,n),R(t.$$.fragment,n),r=!0)},o(n){W(e.$$.fragment,n),W(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 Ie{constructor(e){super(),Te(this,e,Pr,Rr,De,{})}}export{tn as component}; +import{S as Ie,b as Te,a as De,m as k,w as q,c as C,p as b,q as E,x as H,k as i,d as M,u as P,f as w,L as p,y as O,n as j,C as F,D as N,E as Q,j as R,g as W,F as U,G as xl,Q as kl,H as es,I as ts,J as ls,O as bl,U as El,K as ne,e as te,z as Ce,aa as ss,ab as rs,h as Me,ar as ze,as as jl,a7 as Bl,a5 as Ne,$ as ns,A as Qe,a0 as Ue,a1 as je,Z as Il,M as Tl,_ as os,r as as}from"../chunks/index.0942deb7.js";import{p as Ol}from"../chunks/stores.255470ec.js";import{P as us}from"../chunks/page-title.433b384d.js";import{w as is}from"../chunks/singletons.d67f4e6b.js";import{g as fs}from"../chunks/navigation.dde0d4fa.js";import{A as cs}from"../chunks/accordion.6428cbfc.js";import{t as _}from"../chunks/translate.135d909a.js";import{S as ms,l as Be}from"../chunks/schedules.50ce05b5.js";import{E as ds}from"../chunks/empty-state.64fbab21.js";import{L as Fe}from"../chunks/link.faba7c50.js";import{h as Dl}from"../chunks/workflow-service.bd668cd0.js";import{t as ye,r as xe,b as we}from"../chunks/time-format.aa1f006c.js";import{d as Ye}from"../chunks/encode-uri.dfce78e4.js";import{u as Rl,g as Pl,d as Ge,v as ps}from"../chunks/route-for.18f9590b.js";import{W as zl}from"../chunks/workflow-status.391c4889.js";import{T as hs,W as _s}from"../chunks/translate.d58b2c80.js";import{B as $s}from"../chunks/button.72eef818.js";import{L as Gl}from"../chunks/loading.e7565465.js";import{d as Ze}from"../chunks/menu.1cf8fd74.js";import{M as Xe}from"../chunks/modal.2dc225aa.js";import{R as gs,a as vs}from"../chunks/radio-input.aefa279b.js";import{S as ws}from"../chunks/split-button.3aa0e7a5.js";import{a as Oe,d as ks,u as bs,p as Es,t as Is}from"../chunks/schedule-service.f7ec754b.js";import{c as Ts}from"../chunks/core-user.1d8c4365.js";import{g as Ds,a as Rs,r as Sl}from"../chunks/workflows.99ef2d92.js";import{w as Ps}from"../chunks/write-actions-are-allowed.652105b1.js";function Ss(s){let e,l,t=_("common.notes")+"",r,n,o,a;return{c(){e=k("div"),l=k("h2"),r=q(t),n=C(),o=k("p"),a=q(s[0]),this.h()},l(u){e=b(u,"DIV",{});var f=E(e);l=b(f,"H2",{class:!0});var c=E(l);r=H(c,t),c.forEach(i),n=M(f),o=b(f,"P",{});var g=E(o);a=H(g,s[0]),g.forEach(i),f.forEach(i),this.h()},h(){P(l,"class","mb-4 text-2xl")},m(u,f){w(u,e,f),p(e,l),p(l,r),p(e,n),p(e,o),p(o,a)},p(u,[f]){f&1&&O(a,u[0])},i:j,o:j,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 Ie{constructor(e){super(),Te(this,e,Vs,Ss,De,{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=k("p"),t=q(l),n=q(r)},l(a){e=b(a,"P",{});var u=E(e);t=H(u,l),n=H(u,r),u.forEach(i)},m(a,u){w(a,e,u),p(e,t),p(e,n)},p(a,u){var f;u&2&&r!==(r=(((f=a[1])==null?void 0:f.remainingActions)??_("common.none"))+"")&&O(n,r)},d(a){a&&i(e)}}}function As(s){var ue,Re,$e,ie,ke,ee,Pe;let e,l=_("schedules.start-time")+"",t,r,n=(((ue=s[0])==null?void 0:ue.startTime)??_("common.none"))+"",o,a,u,f=_("schedules.end-time")+"",c,g=(((Re=s[0])==null?void 0:Re.endTime)??_("common.none"))+"",I,m,$,h=_("schedules.jitter")+"",d,v=((($e=s[0])==null?void 0:$e.jitter)??_("common.none"))+"",A,Z,z,me=_("schedules.exclusion-calendar")+"",y,oe=(((ke=(ie=s[0])==null?void 0:ie.excludeCalendar)==null?void 0:ke[0])??_("common.none"))+"",G,de,ae,Y,x=_("schedules.overlap-policy")+"",le,_e=(((ee=s[2])==null?void 0:ee.overlapPolicy)??_("common.none"))+"",se,B=((Pe=s[1])==null?void 0:Pe.limitedActions)&&Vl(s);return{c(){e=k("p"),t=q(l),r=C(),o=q(n),a=C(),u=k("p"),c=q(f),I=q(g),m=C(),$=k("p"),d=q(h),A=q(v),Z=C(),z=k("p"),y=q(me),G=q(oe),de=C(),B&&B.c(),ae=C(),Y=k("p"),le=q(x),se=q(_e)},l(S){e=b(S,"P",{});var L=E(e);t=H(L,l),r=M(L),o=H(L,n),L.forEach(i),a=M(S),u=b(S,"P",{});var pe=E(u);c=H(pe,f),I=H(pe,g),pe.forEach(i),m=M(S),$=b(S,"P",{});var fe=E($);d=H(fe,h),A=H(fe,v),fe.forEach(i),Z=M(S),z=b(S,"P",{});var D=E(z);y=H(D,me),G=H(D,oe),D.forEach(i),de=M(S),B&&B.l(S),ae=M(S),Y=b(S,"P",{});var re=E(Y);le=H(re,x),se=H(re,_e),re.forEach(i)},m(S,L){w(S,e,L),p(e,t),p(e,r),p(e,o),w(S,a,L),w(S,u,L),p(u,c),p(u,I),w(S,m,L),w(S,$,L),p($,d),p($,A),w(S,Z,L),w(S,z,L),p(z,y),p(z,G),w(S,de,L),B&&B.m(S,L),w(S,ae,L),w(S,Y,L),p(Y,le),p(Y,se)},p(S,L){var pe,fe,D,re,ve,be,X;L&1&&n!==(n=(((pe=S[0])==null?void 0:pe.startTime)??_("common.none"))+"")&&O(o,n),L&1&&g!==(g=(((fe=S[0])==null?void 0:fe.endTime)??_("common.none"))+"")&&O(I,g),L&1&&v!==(v=(((D=S[0])==null?void 0:D.jitter)??_("common.none"))+"")&&O(A,v),L&1&&oe!==(oe=(((ve=(re=S[0])==null?void 0:re.excludeCalendar)==null?void 0:ve[0])??_("common.none"))+"")&&O(G,oe),(be=S[1])!=null&&be.limitedActions?B?B.p(S,L):(B=Vl(S),B.c(),B.m(ae.parentNode,ae)):B&&(B.d(1),B=null),L&4&&_e!==(_e=(((X=S[2])==null?void 0:X.overlapPolicy)??_("common.none"))+"")&&O(se,_e)},d(S){S&&i(e),S&&i(a),S&&i(u),S&&i(m),S&&i($),S&&i(Z),S&&i(z),S&&i(de),B&&B.d(S),S&&i(ae),S&&i(Y)}}}function Cs(s){let e,l,t,r;return e=new Ws({props:{notes:s[3]}}),t=new cs({props:{title:_("schedules.advanced-settings"),$$slots:{default:[As]},$$scope:{ctx:s}}}),{c(){F(e.$$.fragment),l=C(),F(t.$$.fragment)},l(n){N(e.$$.fragment,n),l=M(n),N(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||(R(e.$$.fragment,n),R(t.$$.fragment,n),r=!0)},o(n){W(e.$$.fragment,n),W(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 Ie{constructor(e){super(),Te(this,e,Ms,Cs,De,{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=k("div"),n&&n.c(),this.h()},l(o){e=b(o,"DIV",{class:!0});var a=E(e);n&&n.l(a),a.forEach(i),this.h()},h(){P(e,"class",l="panel bg-white "+s[1].class+" svelte-11fqqfg"),kl(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"))&&P(e,"class",l),(!t||a&3)&&kl(e,"error",o[0])},i(o){t||(R(n,o),t=!0)},o(o){W(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=bl(bl({},e),El(o))),"error"in o&&l(0,n=o.error),"$$scope"in o&&l(2,r=o.$$scope)},e=El(e),[n,e,r,t]}class Je extends Ie{constructor(e){super(),Te(this,e,Ls,Hs,De,{error:0})}}function Fs(s){let e,l=_("schedules.error-title")+"",t,r,n,o;return{c(){e=k("p"),t=q(l),r=C(),n=k("p"),o=q(s[0]),this.h()},l(a){e=b(a,"P",{class:!0});var u=E(e);t=H(u,l),u.forEach(i),r=M(a),n=b(a,"P",{class:!0});var f=E(n);o=H(f,s[0]),f.forEach(i),this.h()},h(){P(e,"class","error-text svelte-1lke5yx"),P(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&&O(o,a[0])},d(a){a&&i(e),a&&i(r),a&&i(n)}}}function Ns(s){let e,l;return e=new Je({props:{error:!0,$$slots:{default:[Fs]},$$scope:{ctx:s}}}),{c(){F(e.$$.fragment)},l(t){N(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||(R(e.$$.fragment,t),l=!0)},o(t){W(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 Ie{constructor(e){super(),Te(this,e,Qs,Ns,De,{error:0})}}function Us(s){let e,l=_("schedules.schedule-spec")+"",t,r,n,o,a;return o=new ms({props:{calendar:s[0],interval:s[1],class:"text-base"}}),{c(){e=k("h2"),t=q(l),r=C(),n=k("div"),F(o.$$.fragment),this.h()},l(u){e=b(u,"H2",{class:!0});var f=E(e);t=H(f,l),f.forEach(i),r=M(u),n=b(u,"DIV",{class:!0});var c=E(n);N(o.$$.fragment,c),c.forEach(i),this.h()},h(){P(e,"class","mb-4 text-2xl"),P(n,"class","pr-2")},m(u,f){w(u,e,f),p(e,t),w(u,r,f),w(u,n,f),Q(o,n,null),a=!0},p(u,f){const c={};f&1&&(c.calendar=u[0]),f&2&&(c.interval=u[1]),o.$set(c)},i(u){a||(R(o.$$.fragment,u),a=!0)},o(u){W(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 Je({props:{$$slots:{default:[Us]},$$scope:{ctx:s}}}),{c(){F(e.$$.fragment)},l(t){N(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||(R(e.$$.fragment,t),l=!0)},o(t){W(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 Ie{constructor(e){super(),Te(this,e,Bs,js,De,{calendar:0,interval:1})}}function Wl(s,e,l){const t=s.slice();return t[6]=e[l],t}function zs(s){let e=_("common.view-all-runs")+"",l;return{c(){l=q(e)},l(t){l=H(t,e)},m(t,r){w(t,l,r)},p:j,d(t){t&&i(l)}}}function Gs(s){let e,l,t,r,n=s[6].startWorkflowResult.workflowId+"",o,a,u,f,c=we(s[6].actualTime,s[3],{relative:s[4]})+"",g;return{c(){e=k("div"),l=k("div"),t=C(),r=k("div"),o=q(n),a=C(),u=k("div"),f=k("p"),g=q(c),this.h()},l(I){e=b(I,"DIV",{class:!0});var m=E(e);l=b(m,"DIV",{class:!0}),E(l).forEach(i),t=M(m),r=b(m,"DIV",{class:!0});var $=E(r);o=H($,n),$.forEach(i),a=M(m),u=b(m,"DIV",{class:!0});var h=E(u);f=b(h,"P",{});var d=E(f);g=H(d,c),d.forEach(i),h.forEach(i),m.forEach(i),this.h()},h(){P(l,"class","w-28"),P(r,"class","w-96"),P(u,"class","ml-auto"),P(e,"class","row svelte-lqpjgu")},m(I,m){w(I,e,m),p(e,l),p(e,t),p(e,r),p(r,o),p(e,a),p(e,u),p(u,f),p(f,g)},p(I,m){m&1&&n!==(n=I[6].startWorkflowResult.workflowId+"")&&O(o,n),m&25&&c!==(c=we(I[6].actualTime,I[3],{relative:I[4]})+"")&&O(g,c)},i:j,o:j,d(I){I&&i(e)}}}function Js(s){let e,l,t,r,n,o,a,u,f,c=we(s[6].actualTime,s[3],{relative:s[4]})+"",g,I;return t=new zl({props:{status:s[9].status}}),o=new Fe({props:{href:Pl({workflow:s[6].startWorkflowResult.workflowId,run:s[6].startWorkflowResult.runId,namespace:s[1]}),$$slots:{default:[Ks]},$$scope:{ctx:s}}}),{c(){e=k("div"),l=k("div"),F(t.$$.fragment),r=C(),n=k("div"),F(o.$$.fragment),a=C(),u=k("div"),f=k("p"),g=q(c),this.h()},l(m){e=b(m,"DIV",{class:!0});var $=E(e);l=b($,"DIV",{class:!0});var h=E(l);N(t.$$.fragment,h),h.forEach(i),r=M($),n=b($,"DIV",{class:!0});var d=E(n);N(o.$$.fragment,d),d.forEach(i),a=M($),u=b($,"DIV",{class:!0});var v=E(u);f=b(v,"P",{});var A=E(f);g=H(A,c),A.forEach(i),v.forEach(i),$.forEach(i),this.h()},h(){P(l,"class","w-28"),P(n,"class","mx-2 w-auto break-words"),P(u,"class","ml-auto"),P(e,"class","row svelte-lqpjgu")},m(m,$){w(m,e,$),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,f),p(f,g),I=!0},p(m,$){const h={};$&3&&(h.status=m[9].status),t.$set(h);const d={};$&3&&(d.href=Pl({workflow:m[6].startWorkflowResult.workflowId,run:m[6].startWorkflowResult.runId,namespace:m[1]})),$&1025&&(d.$$scope={dirty:$,ctx:m}),o.$set(d),(!I||$&25)&&c!==(c=we(m[6].actualTime,m[3],{relative:m[4]})+"")&&O(g,c)},i(m){I||(R(t.$$.fragment,m),R(o.$$.fragment,m),I=!0)},o(m){W(t.$$.fragment,m),W(o.$$.fragment,m),I=!1},d(m){m&&i(e),U(t),U(o)}}}function Ks(s){let e=s[6].startWorkflowResult.workflowId+"",l;return{c(){l=q(e)},l(t){l=H(t,e)},m(t,r){w(t,l,r)},p(t,r){r&1&&e!==(e=t[6].startWorkflowResult.workflowId+"")&&O(l,e)},d(t){t&&i(l)}}}function Zs(s){return{c:j,l:j,m:j,p:j,i:j,o:j,d:j}}function Al(s,e){let l,t,r,n,o={ctx:e,current:null,token:null,hasCatch:!0,pending:Zs,then:Js,catch:Gs,value:9,blocks:[,,,]};return ze(r=Dl({namespace:e[1],workflowId:Ye(e[6].startWorkflowResult.workflowId),runId:e[6].startWorkflowResult.runId},fetch),o),{key:s,first:null,c(){l=te(),t=te(),o.block.c(),this.h()},l(a){l=te(),t=te(),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=Dl({namespace:e[1],workflowId:Ye(e[6].startWorkflowResult.workflowId),runId:e[6].startWorkflowResult.runId},fetch))&&ze(r,o)||jl(o,e,u)},i(a){n||(R(o.block),n=!0)},o(a){for(let u=0;u<3;u+=1){const f=o.blocks[u];W(f)}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 ds({props:{title:_("schedules.recent-runs-empty-state-title")}}),{c(){F(e.$$.fragment)},l(t){N(e.$$.fragment,t)},m(t,r){Q(e,t,r),l=!0},p:j,i(t){l||(R(e.$$.fragment,t),l=!0)},o(t){W(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=[],f=new Map,c,g,I;o=new Fe({props:{href:Rl({namespace:s[1],query:s[2]}),$$slots:{default:[zs]},$$scope:{ctx:s}}});let m=s[5](s[0]);const $=d=>{var v,A;return(A=(v=d[6])==null?void 0:v.startWorkflowResult)==null?void 0:A.workflowId};for(let d=0;d{h=null}),Me()):h?(h.p(d,v),v&1&&R(h,1)):(h=Cl(),h.c(),R(h,1),h.m(g.parentNode,g))},i(d){if(!I){R(o.$$.fragment,d);for(let v=0;vl(3,t=f)),ne(s,xe,f=>l(4,r=f));let{recentRuns:n=[]}=e,{namespace:o}=e,{workflowQuery:a}=e;const u=f=>{var c,g;return(g=(c=f==null?void 0:f.sort((I,m)=>new Date(m.actualTime).getTime()-new Date(I.actualTime).getTime()))===null||c===void 0?void 0:c.slice(0,5))!==null&&g!==void 0?g:[]};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]}class xs extends Ie{constructor(e){super(),Te(this,e,ys,Ys,De,{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=k("div"),l=k("p"),r=q(t),n=C(),this.h()},l(o){e=b(o,"DIV",{class:!0});var a=E(e);l=b(a,"P",{});var u=E(l);r=H(u,t),u.forEach(i),n=M(a),a.forEach(i),this.h()},h(){P(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")})+"")&&O(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,xe,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 Ie{constructor(e){super(),Te(this,e,lr,tr,De,{futureRuns:0})}}function Hl(s,e,l){const t=s.slice();return t[42]=e[l],t}function rr(s){var m;let e,l,t,r,n,o,a,u,f,c,g,I;return t=new Fe({props:{href:Ge({namespace:s[13]}),icon:"chevron-left",$$slots:{default:[nr]},$$scope:{ctx:s}}}),g=new Jl({props:{error:(m=s[12])==null?void 0:m.message}}),{c(){e=k("header"),l=k("div"),F(t.$$.fragment),r=C(),n=k("h1"),o=q(s[14]),a=C(),u=k("p"),f=q(s[13]),c=C(),F(g.$$.fragment),this.h()},l($){e=b($,"HEADER",{class:!0});var h=E(e);l=b(h,"DIV",{class:!0});var d=E(l);N(t.$$.fragment,d),r=M(d),n=b(d,"H1",{class:!0,"data-testid":!0});var v=E(n);o=H(v,s[14]),v.forEach(i),a=M(d),u=b(d,"P",{class:!0});var A=E(u);f=H(A,s[13]),A.forEach(i),d.forEach(i),h.forEach(i),c=M($),N(g.$$.fragment,$),this.h()},h(){P(n,"class","mt-8 select-all text-2xl font-medium"),P(n,"data-testid","schedule-name"),P(u,"class","text-sm"),P(l,"class","relative flex flex-col gap-1"),P(e,"class","mb-8")},m($,h){w($,e,h),p(e,l),Q(t,l,null),p(l,r),p(l,n),p(n,o),p(l,a),p(l,u),p(u,f),w($,c,h),Q(g,$,h),I=!0},p($,h){var A;const d={};h[1]&16384&&(d.$$scope={dirty:h,ctx:$}),t.$set(d);const v={};h[0]&1&&(v.error=(A=$[12])==null?void 0:A.message),g.$set(v)},i($){I||(R(t.$$.fragment,$),R(g.$$.fragment,$),I=!0)},o($){W(t.$$.fragment,$),W(g.$$.fragment,$),I=!1},d($){$&&i(e),U(t),$&&i(c),U(g,$)}}}function nr(s){let e=_("schedules.back-to-schedules")+"",l;return{c(){l=q(e)},l(t){l=H(t,e)},m(t,r){w(t,l,r)},p:j,d(t){t&&i(l)}}}function or(s){let e,l,t,r;const n=[ur,ar],o=[];function a(u,f){return u[6]?0:1}return e=a(s),l=o[e]=n[e](s),{c(){l.c(),t=te()},l(u){l.l(u),t=te()},m(u,f){o[e].m(u,f),w(u,t,f),r=!0},p(u,f){let c=e;e=a(u),e===c?o[e].p(u,f):(Ce(),W(o[c],1,1,()=>{o[c]=null}),Me(),l=o[e],l?l.p(u,f):(l=o[e]=n[e](u),l.c()),R(l,1),l.m(t.parentNode,t))},i(u){r||(R(l),r=!0)},o(u){W(l),r=!1},d(u){o[e].d(u),u&&i(t)}}}function ar(s){var lt,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,Ft;let e,l,t,r,n,o,a,u,f,c,g,I,m=((ot=(nt=(rt=(st=(lt=s[41])==null?void 0:lt.schedule)==null?void 0:st.action)==null?void 0:rt.startWorkflow)==null?void 0:nt.workflowType)==null?void 0:ot.name)+"",$,h,d,v,A=_("common.created",{created:we((ut=(at=s[41])==null?void 0:at.info)==null?void 0:ut.createTime,s[7],{relative:s[8]})})+"",Z,z,me,y,oe,G,de,ae,Y,x,le,_e,se,B,ue,Re,$e,ie,ke,ee,Pe,S,L,pe,fe,D,re,ve,be;t=new Fe({props:{href:Ge({namespace:s[13]}),icon:"chevron-left",$$slots:{default:[ir]},$$scope:{ctx:s}}}),c=new zl({props:{status:(it=s[41])!=null&&it.schedule.state.paused?"Paused":"Running"}});let X=((ct=(ft=s[41])==null?void 0:ft.info)==null?void 0:ct.updateTime)&&Ll(s);y=new ws({props:{position:"right",label:(pt=(dt=(mt=s[41])==null?void 0:mt.schedule)==null?void 0:dt.state)!=null&&pt.paused?_("schedules.unpause"):_("schedules.pause"),menuLabel:_("schedules.schedule-actions"),id:"schedule-actions",disabled:s[20],$$slots:{default:[dr]},$$scope:{ctx:s}}}),y.$on("click",s[28]);let J=((_t=(ht=s[41])==null?void 0:ht.info)==null?void 0:_t.invalidScheduleError)&&Fl(s),K=s[9]&&Nl(s);le=new xs({props:{namespace:s[13],recentRuns:(gt=($t=s[41])==null?void 0:$t.info)==null?void 0:gt.recentActions,workflowQuery:s[15]}}),se=new sr({props:{futureRuns:(wt=(vt=s[41])==null?void 0:vt.info)==null?void 0:wt.futureActionTimes}}),ue=new qs({props:{spec:(bt=(kt=s[41])==null?void 0:kt.schedule)==null?void 0:bt.spec,state:(It=(Et=s[41])==null?void 0:Et.schedule)==null?void 0:It.state,policies:(Dt=(Tt=s[41])==null?void 0:Tt.schedule)==null?void 0:Dt.policies,notes:(St=(Pt=(Rt=s[41])==null?void 0:Rt.schedule)==null?void 0:Pt.state)==null?void 0:St.notes}}),ie=new Os({props:{calendar:(Ct=(At=(Wt=(Vt=s[41])==null?void 0:Vt.schedule)==null?void 0:Wt.spec)==null?void 0:At.structuredCalendar)==null?void 0:Ct[0],interval:(Lt=(Ht=(qt=(Mt=s[41])==null?void 0:Mt.schedule)==null?void 0:qt.spec)==null?void 0:Ht.interval)==null?void 0:Lt[0]}});function Kl(T){s[31](T)}function Zl(){return s[32](s[41])}let et={id:"pause-schedule-modal",confirmType:"primary",confirmText:(Ft=s[41])!=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&&(et.open=s[1]),ee=new Xe({props:et}),Qe.push(()=>Ue(ee,"open",Kl)),ee.$on("confirmModal",Zl),ee.$on("cancelModal",s[24]);function Xl(T){s[33](T)}let tt={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&&(tt.open=s[2]),L=new Xe({props:tt}),Qe.push(()=>Ue(L,"open",Xl)),L.$on("confirmModal",s[34]),L.$on("cancelModal",s[35]);function Yl(T){s[36](T)}function yl(T){s[37](T)}let Ke={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&&(Ke.open=s[3]),s[12]!==void 0&&(Ke.error=s[12]),D=new Xe({props:Ke}),Qe.push(()=>Ue(D,"open",Yl)),Qe.push(()=>Ue(D,"error",yl)),D.$on("confirmModal",s[21]),D.$on("cancelModal",s[24]),{c(){e=k("header"),l=k("div"),F(t.$$.fragment),r=C(),n=k("h1"),o=k("span"),a=q(s[14]),u=C(),f=k("div"),F(c.$$.fragment),g=C(),I=k("p"),$=q(m),h=C(),d=k("div"),v=k("p"),Z=q(A),z=C(),X&&X.c(),me=C(),F(y.$$.fragment),oe=C(),G=k("div"),J&&J.c(),de=C(),K&&K.c(),ae=C(),Y=k("div"),x=k("div"),F(le.$$.fragment),_e=C(),F(se.$$.fragment),B=C(),F(ue.$$.fragment),Re=C(),$e=k("div"),F(ie.$$.fragment),ke=C(),F(ee.$$.fragment),S=C(),F(L.$$.fragment),fe=C(),F(D.$$.fragment),this.h()},l(T){e=b(T,"HEADER",{class:!0});var V=E(e);l=b(V,"DIV",{class:!0});var ce=E(l);N(t.$$.fragment,ce),r=M(ce),n=b(ce,"H1",{class:!0});var qe=E(n);o=b(qe,"SPAN",{class:!0,"data-testid":!0});var We=E(o);a=H(We,s[14]),We.forEach(i),qe.forEach(i),u=M(ce),f=b(ce,"DIV",{class:!0});var Ve=E(f);N(c.$$.fragment,Ve),g=M(Ve),I=b(Ve,"P",{});var He=E(I);$=H(He,m),He.forEach(i),Ve.forEach(i),h=M(ce),d=b(ce,"DIV",{class:!0});var Se=E(d);v=b(Se,"P",{});var Ae=E(v);Z=H(Ae,A),Ae.forEach(i),Se.forEach(i),z=M(ce),X&&X.l(ce),ce.forEach(i),me=M(V),N(y.$$.fragment,V),V.forEach(i),oe=M(T),G=b(T,"DIV",{class:!0});var he=E(G);J&&J.l(he),de=M(he),K&&K.l(he),ae=M(he),Y=b(he,"DIV",{class:!0});var Ee=E(Y);x=b(Ee,"DIV",{class:!0});var ge=E(x);N(le.$$.fragment,ge),_e=M(ge),N(se.$$.fragment,ge),B=M(ge),N(ue.$$.fragment,ge),ge.forEach(i),Re=M(Ee),$e=b(Ee,"DIV",{class:!0});var Le=E($e);N(ie.$$.fragment,Le),Le.forEach(i),Ee.forEach(i),he.forEach(i),ke=M(T),N(ee.$$.fragment,T),S=M(T),N(L.$$.fragment,T),fe=M(T),N(D.$$.fragment,T),this.h()},h(){P(o,"class","select-all font-medium"),P(o,"data-testid","schedule-name"),P(n,"class","relative flex items-center text-2xl"),P(f,"class","flex items-center gap-2 text-lg"),P(d,"class","flex items-center gap-2 text-sm"),P(l,"class","relative flex flex-col gap-4"),P(e,"class","mb-8 flex flex-row justify-between gap-4"),P(x,"class","flex w-full flex-col items-start gap-4 xl:w-2/3"),P($e,"class","w-full xl:w-1/3"),P(Y,"class","flex flex-col gap-4 xl:flex-row"),P(G,"class","flex flex-col gap-4 pb-24")},m(T,V){w(T,e,V),p(e,l),Q(t,l,null),p(l,r),p(l,n),p(n,o),p(o,a),p(l,u),p(l,f),Q(c,f,null),p(f,g),p(f,I),p(I,$),p(l,h),p(l,d),p(d,v),p(v,Z),p(l,z),X&&X.m(l,null),p(e,me),Q(y,e,null),w(T,oe,V),w(T,G,V),J&&J.m(G,null),p(G,de),K&&K.m(G,null),p(G,ae),p(G,Y),p(Y,x),Q(le,x,null),p(x,_e),Q(se,x,null),p(x,B),Q(ue,x,null),p(Y,Re),p(Y,$e),Q(ie,$e,null),w(T,ke,V),Q(ee,T,V),w(T,S,V),Q(L,T,V),w(T,fe,V),Q(D,T,V),be=!0},p(T,V){var Le,Nt,Qt,Ut,jt,Bt,Ot,zt,Gt,Jt,Kt,Zt,Xt,Yt,yt,xt,el,tl,ll,sl,rl,nl,ol,al,ul,il,fl,cl,ml,dl,pl,hl,_l,$l,gl,vl,wl;s=T;const ce={};V[1]&16384&&(ce.$$scope={dirty:V,ctx:s}),t.$set(ce);const qe={};V[0]&1&&(qe.status=(Le=s[41])!=null&&Le.schedule.state.paused?"Paused":"Running"),c.$set(qe),(!be||V[0]&1)&&m!==(m=((Bt=(jt=(Ut=(Qt=(Nt=s[41])==null?void 0:Nt.schedule)==null?void 0:Qt.action)==null?void 0:Ut.startWorkflow)==null?void 0:jt.workflowType)==null?void 0:Bt.name)+"")&&O($,m),(!be||V[0]&385)&&A!==(A=_("common.created",{created:we((zt=(Ot=s[41])==null?void 0:Ot.info)==null?void 0:zt.createTime,s[7],{relative:s[8]})})+"")&&O(Z,A),(Jt=(Gt=s[41])==null?void 0:Gt.info)!=null&&Jt.updateTime?X?X.p(s,V):(X=Ll(s),X.c(),X.m(l,null)):X&&(X.d(1),X=null);const We={};V[0]&1&&(We.label=(Xt=(Zt=(Kt=s[41])==null?void 0:Kt.schedule)==null?void 0:Zt.state)!=null&&Xt.paused?_("schedules.unpause"):_("schedules.pause")),V[0]&12|V[1]&16384&&(We.$$scope={dirty:V,ctx:s}),y.$set(We),(yt=(Yt=s[41])==null?void 0:Yt.info)!=null&&yt.invalidScheduleError?J?(J.p(s,V),V[0]&1&&R(J,1)):(J=Fl(s),J.c(),R(J,1),J.m(G,de)):J&&(Ce(),W(J,1,1,()=>{J=null}),Me()),s[9]?K?(K.p(s,V),V[0]&512&&R(K,1)):(K=Nl(s),K.c(),R(K,1),K.m(G,ae)):K&&(Ce(),W(K,1,1,()=>{K=null}),Me());const Ve={};V[0]&1&&(Ve.recentRuns=(el=(xt=s[41])==null?void 0:xt.info)==null?void 0:el.recentActions),le.$set(Ve);const He={};V[0]&1&&(He.futureRuns=(ll=(tl=s[41])==null?void 0:tl.info)==null?void 0:ll.futureActionTimes),se.$set(He);const Se={};V[0]&1&&(Se.spec=(rl=(sl=s[41])==null?void 0:sl.schedule)==null?void 0:rl.spec),V[0]&1&&(Se.state=(ol=(nl=s[41])==null?void 0:nl.schedule)==null?void 0:ol.state),V[0]&1&&(Se.policies=(ul=(al=s[41])==null?void 0:al.schedule)==null?void 0:ul.policies),V[0]&1&&(Se.notes=(cl=(fl=(il=s[41])==null?void 0:il.schedule)==null?void 0:fl.state)==null?void 0:cl.notes),ue.$set(Se);const Ae={};V[0]&1&&(Ae.calendar=(hl=(pl=(dl=(ml=s[41])==null?void 0:ml.schedule)==null?void 0:dl.spec)==null?void 0:pl.structuredCalendar)==null?void 0:hl[0]),V[0]&1&&(Ae.interval=(vl=(gl=($l=(_l=s[41])==null?void 0:_l.schedule)==null?void 0:$l.spec)==null?void 0:gl.interval)==null?void 0:vl[0]),ie.$set(Ae);const he={};V[0]&1&&(he.confirmText=(wl=s[41])!=null&&wl.schedule.state.paused?_("schedules.unpause"):_("schedules.pause")),V[0]&16&&(he.confirmDisabled=!s[4]),V[0]&17|V[1]&16384&&(he.$$scope={dirty:V,ctx:s}),!Pe&&V[0]&2&&(Pe=!0,he.open=s[1],je(()=>Pe=!1)),ee.$set(he);const Ee={};V[0]&32&&(Ee.loading=s[5]),V[1]&16384&&(Ee.$$scope={dirty:V,ctx:s}),!pe&&V[0]&4&&(pe=!0,Ee.open=s[2],je(()=>pe=!1)),L.$set(Ee);const ge={};V[1]&16384&&(ge.$$scope={dirty:V,ctx:s}),!re&&V[0]&8&&(re=!0,ge.open=s[3],je(()=>re=!1)),!ve&&V[0]&4096&&(ve=!0,ge.error=s[12],je(()=>ve=!1)),D.$set(ge)},i(T){be||(R(t.$$.fragment,T),R(c.$$.fragment,T),R(y.$$.fragment,T),R(J),R(K),R(le.$$.fragment,T),R(se.$$.fragment,T),R(ue.$$.fragment,T),R(ie.$$.fragment,T),R(ee.$$.fragment,T),R(L.$$.fragment,T),R(D.$$.fragment,T),be=!0)},o(T){W(t.$$.fragment,T),W(c.$$.fragment,T),W(y.$$.fragment,T),W(J),W(K),W(le.$$.fragment,T),W(se.$$.fragment,T),W(ue.$$.fragment,T),W(ie.$$.fragment,T),W(ee.$$.fragment,T),W(L.$$.fragment,T),W(D.$$.fragment,T),be=!1},d(T){T&&i(e),U(t),U(c),X&&X.d(),U(y),T&&i(oe),T&&i(G),J&&J.d(),K&&K.d(),U(le),U(se),U(ue),U(ie),T&&i(ke),U(ee,T),T&&i(S),U(L,T),T&&i(fe),U(D,T)}}}function ur(s){let e,l;return e=new Gl({props:{title:_("schedules.deleting"),class:"my-2"}}),{c(){F(e.$$.fragment)},l(t){N(e.$$.fragment,t)},m(t,r){Q(e,t,r),l=!0},p:j,i(t){l||(R(e.$$.fragment,t),l=!0)},o(t){W(e.$$.fragment,t),l=!1},d(t){U(e,t)}}}function ir(s){let e=_("schedules.back-to-schedules")+"",l;return{c(){l=q(e)},l(t){l=H(t,e)},m(t,r){w(t,l,r)},p:j,d(t){t&&i(l)}}}function Ll(s){var n,o;let e,l,t=_("common.last-updated",{updated:we((o=(n=s[41])==null?void 0:n.info)==null?void 0:o.updateTime,s[7],{relative:s[8]})})+"",r;return{c(){e=k("div"),l=k("p"),r=q(t),this.h()},l(a){e=b(a,"DIV",{class:!0});var u=E(e);l=b(u,"P",{});var f=E(l);r=H(f,t),f.forEach(i),u.forEach(i),this.h()},h(){P(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 f,c;u[0]&385&&t!==(t=_("common.last-updated",{updated:we((c=(f=a[41])==null?void 0:f.info)==null?void 0:c.updateTime,a[7],{relative:a[8]})})+"")&&O(r,t)},d(a){a&&i(e)}}}function fr(s){let e=_("schedules.trigger")+"",l;return{c(){l=q(e)},l(t){l=H(t,e)},m(t,r){w(t,l,r)},p:j,d(t){t&&i(l)}}}function cr(s){let e=_("common.edit")+"",l;return{c(){l=q(e)},l(t){l=H(t,e)},m(t,r){w(t,l,r)},p:j,d(t){t&&i(l)}}}function mr(s){let e=_("common.delete")+"",l;return{c(){l=q(e)},l(t){l=H(t,e)},m(t,r){w(t,l,r)},p:j,d(t){t&&i(l)}}}function dr(s){let e,l,t,r,n,o;return e=new Ze({props:{"data-testid":"trigger-schedule",$$slots:{default:[fr]},$$scope:{ctx:s}}}),e.$on("click",s[26]),t=new Ze({props:{"data-testid":"edit-schedule",href:ps({namespace:s[13],scheduleId:s[14]}),$$slots:{default:[cr]},$$scope:{ctx:s}}}),n=new Ze({props:{"data-testid":"delete-schedule",destructive:!0,$$slots:{default:[mr]},$$scope:{ctx:s}}}),n.$on("click",s[27]),{c(){F(e.$$.fragment),l=C(),F(t.$$.fragment),r=C(),F(n.$$.fragment)},l(a){N(e.$$.fragment,a),l=M(a),N(t.$$.fragment,a),r=M(a),N(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 f={};u[1]&16384&&(f.$$scope={dirty:u,ctx:a}),e.$set(f);const c={};u[1]&16384&&(c.$$scope={dirty:u,ctx:a}),t.$set(c);const g={};u[1]&16384&&(g.$$scope={dirty:u,ctx:a}),n.$set(g)},i(a){o||(R(e.$$.fragment,a),R(t.$$.fragment,a),R(n.$$.fragment,a),o=!0)},o(a){W(e.$$.fragment,a),W(t.$$.fragment,a),W(n.$$.fragment,a),o=!1},d(a){U(e,a),a&&i(l),U(t,a),a&&i(r),U(n,a)}}}function Fl(s){var r,n;let e,l,t;return l=new Jl({props:{error:(n=(r=s[41])==null?void 0:r.info)==null?void 0:n.invalidScheduleError}}),{c(){e=k("div"),F(l.$$.fragment),this.h()},l(o){e=b(o,"DIV",{class:!0});var a=E(e);N(l.$$.fragment,a),a.forEach(i),this.h()},h(){P(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 f,c;const u={};a[0]&1&&(u.error=(c=(f=o[41])==null?void 0:f.info)==null?void 0:c.invalidScheduleError),l.$set(u)},i(o){t||(R(l.$$.fragment,o),t=!0)},o(o){W(l.$$.fragment,o),t=!1},d(o){o&&i(e),U(l)}}}function Nl(s){let e,l,t,r=s[10].count.toLocaleString()+"",n,o,a,u,f,c,g,I;return a=new hs({props:{key:"common.workflows-plural",count:s[10].count}}),f=new $s({props:{size:"xs",variant:"ghost",leadingIcon:"retry",$$slots:{default:[pr]},$$scope:{ctx:s}}}),f.$on("click",s[29]),g=new _s({props:{staticQuery:s[15]}}),{c(){e=k("div"),l=k("div"),t=k("span"),n=q(r),o=C(),F(a.$$.fragment),u=C(),F(f.$$.fragment),c=C(),F(g.$$.fragment),this.h()},l(m){e=b(m,"DIV",{class:!0});var $=E(e);l=b($,"DIV",{class:!0});var h=E(l);t=b(h,"SPAN",{"data-testid":!0});var d=E(t);n=H(d,r),o=M(d),N(a.$$.fragment,d),d.forEach(i),u=M(h),N(f.$$.fragment,h),h.forEach(i),c=M($),N(g.$$.fragment,$),$.forEach(i),this.h()},h(){P(t,"data-testid","workflow-count"),P(l,"class","flex items-center gap-2"),P(e,"class","flex w-full flex-col gap-2 text-lg")},m(m,$){w(m,e,$),p(e,l),p(l,t),p(t,n),p(t,o),Q(a,t,null),p(l,u),Q(f,l,null),p(e,c),Q(g,e,null),I=!0},p(m,$){(!I||$[0]&1024)&&r!==(r=m[10].count.toLocaleString()+"")&&O(n,r);const h={};$[0]&1024&&(h.count=m[10].count),a.$set(h);const d={};$[0]&1024|$[1]&16384&&(d.$$scope={dirty:$,ctx:m}),f.$set(d)},i(m){I||(R(a.$$.fragment,m),R(f.$$.fragment,m),R(g.$$.fragment,m),I=!0)},o(m){W(a.$$.fragment,m),W(f.$$.fragment,m),W(g.$$.fragment,m),I=!1},d(m){m&&i(e),U(a),U(f),U(g)}}}function Ql(s){let e,l=s[10].newCount.toLocaleString()+"",t;return{c(){e=q("+"),t=q(l)},l(r){e=H(r,"+"),t=H(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()+"")&&O(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=te()},l(t){l&&l.l(t),e=te()},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[41])!=null&&r.schedule.state.paused?_("schedules.unpause-modal-title"):_("schedules.pause-modal-title"))+"",t;return{c(){e=k("h3"),t=q(l),this.h()},l(n){e=b(n,"H3",{slot:!0});var o=E(e);t=H(o,l),o.forEach(i),this.h()},h(){P(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[41])!=null&&a.schedule.state.paused?_("schedules.unpause-modal-title"):_("schedules.pause-modal-title"))+"")&&O(t,l)},d(n){n&&i(e)}}}function _r(s){var m,$;let e,l,t=((m=s[41])!=null&&m.schedule.state.paused?_("schedules.unpause-modal-confirmation",{schedule:s[14]}):_("schedules.pause-modal-confirmation",{schedule:s[14]}))+"",r,n,o,a=(($=s[41])!=null&&$.schedule.state.paused?_("schedules.unpause-reason"):_("schedules.pause-reason"))+"",u,f,c,g,I;return{c(){e=k("div"),l=k("p"),r=q(t),n=C(),o=k("p"),u=q(a),f=C(),c=k("input"),this.h()},l(h){e=b(h,"DIV",{slot:!0});var d=E(e);l=b(d,"P",{});var v=E(l);r=H(v,t),v.forEach(i),n=M(d),o=b(d,"P",{class:!0});var A=E(o);u=H(A,a),A.forEach(i),f=M(d),c=b(d,"INPUT",{class:!0,placeholder:!0}),d.forEach(i),this.h()},h(){P(o,"class","my-4"),P(c,"class","mt-4 block w-full rounded-md border border-gray-200 p-2"),P(c,"placeholder",_("common.reason")),P(e,"slot","content")},m(h,d){w(h,e,d),p(e,l),p(l,r),p(e,n),p(e,o),p(o,u),p(e,f),p(e,c),Il(c,s[4]),g||(I=[Tl(c,"input",s[30]),Tl(c,"keydown",os(s[25]))],g=!0)},p(h,d){var v,A;d[0]&1&&t!==(t=((v=h[41])!=null&&v.schedule.state.paused?_("schedules.unpause-modal-confirmation",{schedule:h[14]}):_("schedules.pause-modal-confirmation",{schedule:h[14]}))+"")&&O(r,t),d[0]&1&&a!==(a=((A=h[41])!=null&&A.schedule.state.paused?_("schedules.unpause-reason"):_("schedules.pause-reason"))+"")&&O(u,a),d[0]&16&&c.value!==h[4]&&Il(c,h[4])},d(h){h&&i(e),g=!1,as(I)}}}function $r(s){let e,l=_("schedules.trigger-modal-title")+"",t;return{c(){e=k("h3"),t=q(l),this.h()},l(r){e=b(r,"H3",{slot:!0});var n=E(e);t=H(n,l),n.forEach(i),this.h()},h(){P(e,"slot","title")},m(r,n){w(r,e,n),p(e,t)},p:j,d(r){r&&i(e)}}}function Ul(s){let e,l;return e=new vs({props:{id:s[42].value,value:s[42].value,label:s[42].label,description:s[42].description}}),{c(){F(e.$$.fragment)},l(t){N(e.$$.fragment,t)},m(t,r){Q(e,t,r),l=!0},p:j,i(t){l||(R(e.$$.fragment,t),l=!0)},o(t){W(e.$$.fragment,t),l=!1},d(t){U(e,t)}}}function gr(s){let e,l,t=s[18],r=[];for(let o=0;oW(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])&&ze(l,r)||jl(r,s,o)},i(n){t||(R(r.block),t=!0)},o(n){for(let o=0;o<3;o+=1){const a=r.blocks[o];W(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,f,c,g;ne(s,Be,D=>l(6,r=D)),ne(s,Ol,D=>l(40,o=D)),ne(s,ye,D=>l(7,a=D)),ne(s,xe,D=>l(8,u=D)),ne(s,Ds,D=>l(9,f=D)),ne(s,Rs,D=>l(10,c=D)),ne(s,Sl,D=>l(11,g=D));let I=o.params.namespace,m=o.params.schedule,$=`TemporalScheduledById="${m}"`;const h={namespace:I,scheduleId:Ye(m)};let d=Oe(h),v=!1,A=!1,Z=!1,z="",me="",y=!1,oe=is("Unspecified");ne(s,oe,D=>l(38,t=D));let G=[{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,D=>l(39,n=D));let ae=n.namespaceWriteDisabled(I)||!Ps();const Y=async()=>{l(12,me="");try{Ne(Be,r=!0,r),await ks({namespace:I,scheduleId:m}),l(3,Z=!1),setTimeout(()=>{Ne(Be,r=!1,r),fs(Ge({namespace:I}))},2e3),l(4,z="")}catch(D){l(12,me=_("schedules.delete-schedule-error",{error:D==null?void 0:D.message})),Ne(Be,r=!1,r)}},x=async D=>{var re,ve;!((ve=(re=D==null?void 0:D.schedule)===null||re===void 0?void 0:re.state)===null||ve===void 0)&&ve.paused?await bs({namespace:I,scheduleId:m,reason:z}):await Es({namespace:I,scheduleId:m,reason:z}),l(0,d=Oe(h)),l(4,z=""),l(1,v=!1)},le=async()=>{l(5,y=!0),await Is({namespace:I,scheduleId:m,overlapPolicy:t}),setTimeout(()=>{l(0,d=Oe(h)),l(2,A=!1),l(5,y=!1)},1e3)},_e=()=>{l(4,z="")};function se(D){ns.call(this,s,D)}const B=()=>l(2,A=!0),ue=()=>l(3,Z=!0),Re=()=>l(1,v=!0),$e=()=>{l(0,d=Oe(h)),Ne(Sl,g=Date.now(),g)};function ie(){z=this.value,l(4,z)}function ke(D){v=D,l(1,v)}const ee=D=>x(D);function Pe(D){A=D,l(2,A)}const S=()=>le(),L=()=>l(2,A=!1);function pe(D){Z=D,l(3,Z)}function fe(D){me=D,l(12,me)}return[d,v,A,Z,z,y,r,a,u,f,c,g,me,I,m,$,h,oe,G,de,ae,Y,x,le,_e,se,B,ue,Re,$e,ie,ke,ee,Pe,S,L,pe,fe]}class Dr extends Ie{constructor(e){super(),Te(this,e,Tr,Ir,De,{},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(){F(e.$$.fragment),l=C(),F(t.$$.fragment)},l(n){N(e.$$.fragment,n),l=M(n),N(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||(R(e.$$.fragment,n),R(t.$$.fragment,n),r=!0)},o(n){W(e.$$.fragment,n),W(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 Ie{constructor(e){super(),Te(this,e,Pr,Rr,De,{})}}export{tn as component}; diff --git a/ui/assets/local/_app/immutable/nodes/23.8ac69c9e.js b/ui/assets/local/_app/immutable/nodes/23.b05e6ae3.js similarity index 88% rename from ui/assets/local/_app/immutable/nodes/23.8ac69c9e.js rename to ui/assets/local/_app/immutable/nodes/23.b05e6ae3.js index cbef8e73c4..9267562fa2 100644 --- a/ui/assets/local/_app/immutable/nodes/23.8ac69c9e.js +++ b/ui/assets/local/_app/immutable/nodes/23.b05e6ae3.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.0942deb7.js";import{p as E}from"../chunks/stores.73c3690d.js";import{P as A}from"../chunks/page-title.433b384d.js";import{S as B}from"../chunks/schedule-form-view.4e0824ec.js";import{L as G}from"../chunks/loading.e7565465.js";import{t as H}from"../chunks/translate.135d909a.js";import{a as J}from"../chunks/schedule-service.19174d51.js";import{s as V}from"../chunks/schedules.17e8498c.js";import{d as X}from"../chunks/encode-uri.dfce78e4.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.0942deb7.js";import{p as E}from"../chunks/stores.255470ec.js";import{P as A}from"../chunks/page-title.433b384d.js";import{S as B}from"../chunks/schedule-form-view.bfaa408e.js";import{L as G}from"../chunks/loading.e7565465.js";import{t as H}from"../chunks/translate.135d909a.js";import{a as J}from"../chunks/schedule-service.f7ec754b.js";import{s as V}from"../chunks/schedules.50ce05b5.js";import{d as X}from"../chunks/encode-uri.dfce78e4.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/24.9667780f.js b/ui/assets/local/_app/immutable/nodes/24.b4b27e0a.js similarity index 88% rename from ui/assets/local/_app/immutable/nodes/24.9667780f.js rename to ui/assets/local/_app/immutable/nodes/24.b4b27e0a.js index d07fbcdeb2..7f014e05b0 100644 --- a/ui/assets/local/_app/immutable/nodes/24.9667780f.js +++ b/ui/assets/local/_app/immutable/nodes/24.b4b27e0a.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.0942deb7.js";import{p as h}from"../chunks/stores.73c3690d.js";import{P as Q}from"../chunks/page-title.433b384d.js";import{S as T}from"../chunks/schedule-form-view.4e0824ec.js";import{a as W}from"../chunks/schedules.17e8498c.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.0942deb7.js";import{p as h}from"../chunks/stores.255470ec.js";import{P as Q}from"../chunks/page-title.433b384d.js";import{S as T}from"../chunks/schedule-form-view.bfaa408e.js";import{a as W}from"../chunks/schedules.50ce05b5.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/26.40584af9.js b/ui/assets/local/_app/immutable/nodes/26.584593eb.js similarity index 90% rename from ui/assets/local/_app/immutable/nodes/26.40584af9.js rename to ui/assets/local/_app/immutable/nodes/26.584593eb.js index 1708487cde..e326f4c102 100644 --- a/ui/assets/local/_app/immutable/nodes/26.40584af9.js +++ b/ui/assets/local/_app/immutable/nodes/26.584593eb.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.0942deb7.js";import{p as F}from"../chunks/stores.73c3690d.js";import{P as S}from"../chunks/page-title.433b384d.js";import{W as h}from"../chunks/workers-list.501e9be3.js";import{g as j,a as B,b as D}from"../chunks/pollers-service.b55a2a09.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.0942deb7.js";import{p as F}from"../chunks/stores.255470ec.js";import{P as S}from"../chunks/page-title.433b384d.js";import{W as h}from"../chunks/workers-list.3a8ea58e.js";import{g as j,a as B,b as D}from"../chunks/pollers-service.351badff.js";import{p as E,c as H}from"../chunks/task-queue-compatibility.8d922da0.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/27.0c430cd7.js b/ui/assets/local/_app/immutable/nodes/27.09bd7b79.js similarity index 85% rename from ui/assets/local/_app/immutable/nodes/27.0c430cd7.js rename to ui/assets/local/_app/immutable/nodes/27.09bd7b79.js index f1f0cf17f5..070995d239 100644 --- a/ui/assets/local/_app/immutable/nodes/27.0c430cd7.js +++ b/ui/assets/local/_app/immutable/nodes/27.09bd7b79.js @@ -1,3 +1,3 @@ -import{S as ie,b as ae,a as se,A as ce,a0 as _e,C as L,D as T,E as D,a1 as de,j as g,g as $,F as y,K as U,N as at,m as N,p as A,q as O,k as b,u as B,f as I,c as F,d as V,L as C,z as G,h as J,w as R,x as H,y as x,ac as xe,M as fe,ag as nt,a3 as je,a4 as ze,n as j,a5 as te,af as Ve,e as X,a7 as Te,aa as $t,at as Xn,Q as me,i as En,a2 as Zn,r as st,$ as Re,G as ke,H as we,I as ve,J as Ie,ab as Nt,Y as Kt,Z as Qt,aq as Ln,O as bt,U as gt,au as xn,ae as er,l as tr,aj as lr,a8 as Yt,v as Gt,s as Bt,_ as Tt,o as nr}from"../chunks/index.0942deb7.js";import{p as De}from"../chunks/stores.73c3690d.js";import{P as rr}from"../chunks/page-title.433b384d.js";import{w as Ue,j as Ye}from"../chunks/singletons.0a6e865f.js";import{I as ye}from"../chunks/input.828c22e1.js";import{M as or}from"../chunks/modal.cb157ac8.js";import{t as W}from"../chunks/translate.135d909a.js";import{T as Oe,i as ir,w as Jt,W as ar}from"../chunks/translate.f1dc53e5.js";import{A as Xe}from"../chunks/workflow-actions.6f88149c.js";import{a as sr}from"../chunks/auth-user.a1d7e47f.js";import{g as ur,f as fr,a as cr,w as mr}from"../chunks/workflow-terminate-enabled.abf4a597.js";import{v as _r,t as Xt}from"../chunks/toaster.60da8f1b.js";import{f as et,a as Tn}from"../chunks/index.2fa3ca4d.js";import{B as tt}from"../chunks/button.c09134bf.js";import{w as ge,s as Zt}from"../chunks/filters.6a09297f.js";import{r as Ze,b as rt,l as dr,u as At,c as pr,a as Dn,d as yn,w as xt,g as hr}from"../chunks/workflows.13c60c9c.js";import{t as br,j as gr,F as $r}from"../chunks/index.fdd410d4.js";import{a as kt,i as kr}from"../chunks/workflow-service.61e0ba9f.js";import{r as wt,t as wr,z as vt,l as vr,m as Ir,n as Ct,o as Er,A as dt,B as Lr,C as el}from"../chunks/format-time.5082c525.js";import{i as tl,t as Ot,c as Tr,d as Dr,e as ll,r as Bn,b as Ee}from"../chunks/time-format.7dc1f425.js";import{l as nl,f as yr,e as Br,m as Cr}from"../chunks/has.233e577a.js";import{u as He}from"../chunks/update-query-parameters.6de0b7d2.js";import{T as Sr}from"../chunks/toggle-switch.cc141600.js";import{s as lt,b as Nr,c as Cn,i as Ar,w as Or}from"../chunks/search-attributes.06872bde.js";import{M as ut,a as ft,b as ct,d as Pe,c as Pr}from"../chunks/menu.55d17299.js";import{I as Fe}from"../chunks/icon-button.cdadbc6c.js";import{w as rl,a as Fr,b as ol,S as Vr,O as Wr}from"../chunks/option.915b4554.js";import{I as We}from"../chunks/icon.33308831.js";import{M as It}from"../chunks/menu-divider.79623dfc.js";import{a as Sn}from"../chunks/radio-input.cbaf2baa.js";import{T as Mr,a as il}from"../chunks/toggle-buttons.01bd60a8.js";import{W as Pt}from"../chunks/workflow-status.833cfe09.js";import{C as Ft}from"../chunks/checkbox.7cf45921.js";import{D as Rr}from"../chunks/drawer.03af1b30.js";import{A as Hr}from"../chunks/alert.c46cfdd9.js";import{L as Vt}from"../chunks/link.f0cc0bf5.js";import{L as Ur}from"../chunks/loading.e7565465.js";import{P as qr}from"../chunks/progress-bar.91bfde03.js";import{a as ht,d as al,c as pt,b as jr,M as sl,o as Nn,F as zr}from"../chunks/pagination.a85cd038.js";import{n as Kr,l as ul}from"../chunks/namespaces.5c0c98b2.js";import{p as An}from"../chunks/persist-store.dd882958.js";import{B as Qr}from"../chunks/badge.5c29cec8.js";import{g as Yr}from"../chunks/route-for.ecd88549.js";import{i as Gr}from"../chunks/version-check.d006b302.js";import{s as Jr}from"../chunks/settings.424dea30.js";import{t as Xr}from"../chunks/versions.e238352a.js";import{c as Zr}from"../chunks/core-user.20a8d8a5.js";import{b as xr,c as eo}from"../chunks/batch-operations.ac8cf9e3.js";import{s as to}from"../chunks/parse-with-big-int.0036a80a.js";function Wt(r,e){wt(2,arguments);var l=wr(r).getTime(),t=vt(e);return new Date(l+t)}var lo=36e5;function no(r,e){wt(2,arguments);var l=vt(e);return Wt(r,l*lo)}var ro=6e4;function oo(r,e){wt(2,arguments);var l=vt(e);return Wt(r,l*ro)}function io(r,e){wt(2,arguments);var l=vt(e);return Wt(r,l*1e3)}const ao=!1,tc=Object.freeze(Object.defineProperty({__proto__:null,ssr:ao},Symbol.toStringTag,{value:"Module"}));function so(r){let e,l,t;return l=new Oe({props:{key:"workflows.batch-operation-modal-title",replace:{action:r[3]}}}),{c(){e=N("h3"),L(l.$$.fragment),this.h()},l(n){e=A(n,"H3",{slot:!0});var o=O(e);T(l.$$.fragment,o),o.forEach(b),this.h()},h(){B(e,"slot","title")},m(n,o){I(n,e,o),D(l,e,null),t=!0},p(n,o){const a={};o&8&&(a.replace={action:n[3]}),l.$set(a)},i(n){t||(g(l.$$.fragment,n),t=!0)},o(n){$(l.$$.fragment,n),t=!1},d(n){n&&b(e),y(l)}}}function uo(r){let e,l,t;return l=new Oe({props:{key:r[0]===Xe.Cancel?"workflows.batch-cancel-confirmation":"workflows.batch-terminate-confirmation",count:r[1]}}),{c(){e=N("p"),L(l.$$.fragment)},l(n){e=A(n,"P",{});var o=O(e);T(l.$$.fragment,o),o.forEach(b)},m(n,o){I(n,e,o),D(l,e,null),t=!0},p(n,o){const a={};o&1&&(a.key=n[0]===Xe.Cancel?"workflows.batch-cancel-confirmation":"workflows.batch-terminate-confirmation"),o&2&&(a.count=n[1]),l.$set(a)},i(n){t||(g(l.$$.fragment,n),t=!0)},o(n){$(l.$$.fragment,n),t=!1},d(n){n&&b(e),y(l)}}}function fo(r){let e,l,t,n,o,a,s,i,u,f;return l=new Oe({props:{key:"workflows.batch-operation-confirmation-all",replace:{action:r[3]}}}),u=new Oe({props:{key:"workflows.batch-operation-count-disclaimer",replace:{action:r[3]}}}),{c(){e=N("p"),L(l.$$.fragment),t=F(),n=N("div"),o=N("code"),a=R(r[2]),s=F(),i=N("span"),L(u.$$.fragment),this.h()},l(_){e=A(_,"P",{class:!0});var m=O(e);T(l.$$.fragment,m),m.forEach(b),t=V(_),n=A(_,"DIV",{class:!0});var c=O(n);o=A(c,"CODE",{"data-testid":!0});var d=O(o);a=H(d,r[2]),d.forEach(b),c.forEach(b),s=V(_),i=A(_,"SPAN",{class:!0});var p=O(i);T(u.$$.fragment,p),p.forEach(b),this.h()},h(){B(e,"class","mb-2"),B(o,"data-testid","batch-action-workflows-query"),B(n,"class","mb-2 overflow-scroll whitespace-nowrap rounded border border-primary bg-gray-100 p-2"),B(i,"class","text-xs")},m(_,m){I(_,e,m),D(l,e,null),I(_,t,m),I(_,n,m),C(n,o),C(o,a),I(_,s,m),I(_,i,m),D(u,i,null),f=!0},p(_,m){const c={};m&8&&(c.replace={action:_[3]}),l.$set(c),(!f||m&4)&&x(a,_[2]);const d={};m&8&&(d.replace={action:_[3]}),u.$set(d)},i(_){f||(g(l.$$.fragment,_),g(u.$$.fragment,_),f=!0)},o(_){$(l.$$.fragment,_),$(u.$$.fragment,_),f=!1},d(_){_&&b(e),y(l),_&&b(t),_&&b(n),_&&b(s),_&&b(i),y(u)}}}function co(r){let e,l,t,n,o,a,s,i,u,f;const _=[fo,uo],m=[];function c(w,v){return w[11]?0:1}l=c(r),t=m[l]=_[l](r);function d(w){r[19](w)}let p={id:`bulk-action-reason-${r[0]}`,label:W("common.reason"),hintText:W("workflows.batch-operation-confirmation-input-hint",{placeholder:r[9]}),placeholder:r[9]};r[4]!==void 0&&(p.value=r[4]),o=new ye({props:p}),ce.push(()=>_e(o,"value",d));function h(w){r[20](w)}let k={id:"batch-operation-job-id",label:W("common.job-id"),hintText:r[8]?W("batch.job-id-input-hint"):W("batch.job-id-input-error"),placeholder:r[12],valid:r[8]};return r[7]!==void 0&&(k.value=r[7]),i=new ye({props:k}),ce.push(()=>_e(i,"value",h)),i.$on("input",r[14]),{c(){e=N("div"),t.c(),n=F(),L(o.$$.fragment),s=F(),L(i.$$.fragment),this.h()},l(w){e=A(w,"DIV",{class:!0});var v=O(e);t.l(v),n=V(v),T(o.$$.fragment,v),s=V(v),T(i.$$.fragment,v),v.forEach(b),this.h()},h(){B(e,"class","mb-4 flex flex-col gap-2")},m(w,v){I(w,e,v),m[l].m(e,null),C(e,n),D(o,e,null),C(e,s),D(i,e,null),f=!0},p(w,v){let E=l;l=c(w),l===E?m[l].p(w,v):(G(),$(m[E],1,1,()=>{m[E]=null}),J(),t=m[l],t?t.p(w,v):(t=m[l]=_[l](w),t.c()),g(t,1),t.m(e,n));const P={};v&1&&(P.id=`bulk-action-reason-${w[0]}`),v&512&&(P.hintText=W("workflows.batch-operation-confirmation-input-hint",{placeholder:w[9]})),v&512&&(P.placeholder=w[9]),!a&&v&16&&(a=!0,P.value=w[4],de(()=>a=!1)),o.$set(P);const S={};v&256&&(S.hintText=w[8]?W("batch.job-id-input-hint"):W("batch.job-id-input-error")),v&256&&(S.valid=w[8]),!u&&v&128&&(u=!0,S.value=w[7],de(()=>u=!1)),i.$set(S)},i(w){f||(g(t),g(o.$$.fragment,w),g(i.$$.fragment,w),f=!0)},o(w){$(t),$(o.$$.fragment,w),$(i.$$.fragment,w),f=!1},d(w){w&&b(e),m[l].d(),y(o),y(i)}}}function mo(r){let e,l,t,n;function o(i){r[21](i)}function a(i){r[22](i)}let s={id:`batch-operation-confirmation-modal-${r[0]}`,"data-testid":"batch-"+r[3]+"-confirmation",confirmType:"destructive",cancelText:W("common.cancel"),confirmDisabled:!r[8],confirmText:r[10],$$slots:{content:[co],title:[so]},$$scope:{ctx:r}};return r[5]!==void 0&&(s.open=r[5]),r[6]!==void 0&&(s.error=r[6]),e=new or({props:s}),ce.push(()=>_e(e,"open",o)),ce.push(()=>_e(e,"error",a)),e.$on("confirmModal",r[13]),{c(){L(e.$$.fragment)},l(i){T(e.$$.fragment,i)},m(i,u){D(e,i,u),n=!0},p(i,[u]){const f={};u&1&&(f.id=`batch-operation-confirmation-modal-${i[0]}`),u&8&&(f["data-testid"]="batch-"+i[3]+"-confirmation"),u&256&&(f.confirmDisabled=!i[8]),u&1024&&(f.confirmText=i[10]),u&16780191&&(f.$$scope={dirty:u,ctx:i}),!l&&u&32&&(l=!0,f.open=i[5],de(()=>l=!1)),!t&&u&64&&(t=!0,f.error=i[6],de(()=>t=!1)),e.$set(f)},i(i){n||(g(e.$$.fragment,i),n=!0)},o(i){$(e.$$.fragment,i),n=!1},d(i){y(e,i)}}}function _o(r,e,l){let t,n,o,a,s;U(r,sr,q=>l(18,a=q)),U(r,Ke,q=>l(11,s=q));let{action:i}=e,{actionableWorkflowsLength:u}=e,{query:f}=e,_="",m=!1,c="",d="",p=_r(),h=!0;const k=()=>{l(4,_=""),l(5,m=!0)},w=()=>l(5,m=!1),v=q=>l(6,c=q),E=at(),P=()=>{l(6,c=""),E("confirm",{reason:fr({action:i,reason:_,email:a.email}),jobId:d||p})},S=q=>{/^[\w.~-]*$/.test(q.target.value)?l(8,h=!0):l(8,h=!1)};function M(q){_=q,l(4,_)}function Z(q){d=q,l(7,d)}function ee(q){m=q,l(5,m)}function Y(q){c=q,l(6,c)}return r.$$set=q=>{"action"in q&&l(0,i=q.action),"actionableWorkflowsLength"in q&&l(1,u=q.actionableWorkflowsLength),"query"in q&&l(2,f=q.query)},r.$$.update=()=>{r.$$.dirty&1&&l(3,t=i===Xe.Cancel?W("common.cancel"):W("workflows.terminate")),r.$$.dirty&9&&l(10,n=i===Xe.Cancel?W("common.confirm"):t),r.$$.dirty&262145&&l(9,o=ur(i,a.email))},[i,u,f,t,_,m,c,d,h,o,n,s,p,P,S,k,w,v,a,M,Z,ee,Y]}class fl extends ie{constructor(e){super(),ae(this,e,_o,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 po={workflowId:"WorkflowId",workflowType:"WorkflowType",timeRange:"StartTime",executionStatus:"ExecutionStatus",closeTime:"CloseTime",runId:"RunId"},ho=r=>!(r===null||r===void 0||r===""||typeof r=="string"&&r==="undefined"),bo=(r,e)=>e==="Bool"?r.toLowerCase()==="true":`"${r}"`,go=(r,e,l,t="=",n,o)=>{const a=po[r]??r;return l==="All"?"":o?`${a} ${l}`:vr(l)||Ir(l)?n||xe(kt)?`${a} ${t} "${Ct(l)}"`:`${a} BETWEEN "${Ct(l)}" AND "${Er()}"`:`${a}${t}${bo(l,e)}`},$o=(r,e)=>r.map(({attribute:l,type:t,value:n,conditional:o,operator:a,parenthesis:s,customDate:i})=>{if(ho(n)){let u=go(l,t,n,o,e,i);return s==="("?u=`(${u}`:s===")"&&(u=`${u})`),a&&(u=`${u} ${a} `),u}}).filter(Boolean),On=(r=[],e=!1)=>$o(r,e).join(""),Pn=r=>e=>e.toLowerCase()===r.toLowerCase(),cl=(r,e)=>r[e+2],ko=(r,e)=>r[e-2],wo=Pn("Datetime"),vo=Pn("Bool"),qe=()=>({attribute:"",type:"Keyword",value:"",operator:"",parenthesis:"",conditional:""}),Io={ExecutionStatus:"Keyword",StartTime:"Datetime",CloseTime:"Datetime",WorkflowId:"Keyword",WorkflowType:"Keyword",RunId:"Keyword"},Fn=(r,e=Io)=>{const l=br(r),t=[];let n=qe();if(!r)return[];try{return l.forEach((o,a)=>{if(e[o])if(n.attribute=o,n.type=e[o],wo(e[o])){const s=cl(l,a),i=tl(s);if(nl(l[a+1])){const u=l[a+4],f=tl(u);i&&f?(n.value=`BETWEEN "${s}" AND "${u}"`,n.customDate=!0):console.error("Error parsing Datetime field from query")}else i?n.value=s:console.error("Error parsing Datetime field from query")}else vo(n.type)?(n.value=l[a+1].replace("=",""),n.conditional="="):n.value=cl(l,a);yr(o)&&(n.conditional=o),Br(o)&&(n.parenthesis=o),Cr(o)&&!nl(ko(l,a))&&(n.operator=o,t.push(n),n=qe()),a===l.length-1&&(t.push(n),n=qe())}),t}catch(o){return console.error("Error setting filter parameters: ",o),[]}},Eo=r=>{const e=r.filter(s=>s.attribute==="ExecutionStatus"&&s.value),l=r.filter(s=>s.attribute==="WorkflowId"&&s.value),t=r.filter(s=>s.attribute==="WorkflowType"&&s.value),n=r.filter(s=>s.attribute==="RunId"&&s.value),o=r.filter(s=>(s.attribute==="StartTime"||s.attribute==="CloseTime")&&s.value),a=[e,l,n,t,o].filter(s=>s.length);return a.forEach((s,i)=>{var u,f;s.length&&((u=a[i+1])!=null&&u.length)?s[s.length-1].operator="AND":s.length&&!((f=a[i+1])!=null&&f.length)&&(s[s.length-1].operator="")}),[...e,...l,...n,...t,...o]},Vn=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),Mt=gr((r,e,l=!1)=>{const t=l?Eo(e):Vn(e),n=On(t);He({url:r,parameter:"query",value:n,allowEmpty:!1})},300);function Lo(r){let e=W("common.search")+"",l;return{c(){l=R(e)},l(t){l=H(t,e)},m(t,n){I(t,l,n)},p:j,d(t){t&&b(l)}}}function To(r){let e,l,t,n,o,a,s,i,u,f,_,m;function c(p){r[5](p)}let d={id:"manual-search",type:"search",label:W("workflows.search-placeholder"),labelHidden:!0,placeholder:W("workflows.search-placeholder"),icon:"search",class:"w-full lg:w-3/4",clearable:!0,clearButtonLabel:W("common.clear-input-button-label"),unroundRight:!0};return r[0]!==void 0&&(d.value=r[0]),n=new ye({props:d}),ce.push(()=>_e(n,"value",c)),n.$on("clear",r[2]),s=new tt({props:{"data-testid":"manual-search-button",variant:"primary",borderRadiusModifier:"square-left",type:"submit",$$slots:{default:[Lo]},$$scope:{ctx:r}}}),{c(){e=N("div"),l=N("div"),t=N("form"),L(n.$$.fragment),a=F(),L(s.$$.fragment),this.h()},l(p){e=A(p,"DIV",{class:!0});var h=O(e);l=A(h,"DIV",{class:!0});var k=O(l);t=A(k,"FORM",{class:!0,role:!0});var w=O(t);T(n.$$.fragment,w),a=V(w),T(s.$$.fragment,w),w.forEach(b),k.forEach(b),h.forEach(b),this.h()},h(){B(t,"class","relative flex w-full items-center gap-0"),B(t,"role","search"),B(l,"class","flex w-full items-center gap-0"),B(e,"class","flex grow gap-4")},m(p,h){I(p,e,h),C(e,l),C(l,t),D(n,t,null),C(t,a),D(s,t,null),f=!0,_||(m=fe(t,"submit",nt(r[1])),_=!0)},p(p,[h]){const k={};!o&&h&1&&(o=!0,k.value=p[0],de(()=>o=!1)),n.$set(k);const w={};h&1024&&(w.$$scope={dirty:h,ctx:p}),s.$set(w)},i(p){f||(g(n.$$.fragment,p),g(s.$$.fragment,p),i||je(()=>{i=ze(t,et,{x:-100,duration:150}),i.start()}),u||je(()=>{u=ze(l,Tn,{}),u.start()}),f=!0)},o(p){$(n.$$.fragment,p),$(s.$$.fragment,p),f=!1},d(p){p&&b(e),y(n),y(s),_=!1,m()}}}function Do(r,e,l){let t,n,o,a,s;U(r,De,c=>l(4,n=c)),U(r,Ze,c=>l(6,o=c)),U(r,ge,c=>l(7,a=c)),U(r,rt,c=>l(8,s=c));let i="";function u(c){l(0,i=c)}const f=()=>{if(!i)te(ge,a=[],a),te(rt,s="",s);else try{te(ge,a=Fn(i),a)}catch(c){console.error(c)}i&&i===t?te(Ze,o=Date.now(),o):He({url:n.url,parameter:"query",value:i,allowEmpty:!0})};function _(){f()}function m(c){i=c,l(0,i)}return r.$$.update=()=>{r.$$.dirty&16&&l(3,t=n.url.searchParams.get("query")),r.$$.dirty&8&&u(t)},[i,f,_,t,n,m]}class yo extends ie{constructor(e){super(),ae(this,e,Do,To,se,{})}}function Je(r){return r==="ExecutionStatus"}function ot({attribute:r,type:e},l=lt){if(Je(r))return!1;if(e==="Keyword")return!0;const t=xe(l)[r];return["Keyword","Text","String"].includes(t)}function Wn({attribute:r,type:e},l=lt){return e==="KeywordList"?!0:xe(l)[r]==="KeywordList"}function Mn({attribute:r,type:e},l=lt){if(e==="Int")return!0;const t=xe(l)[r];return["Int","Double"].includes(t)}function Bo(r){return["ExecutionDuration"].includes(r)}function Rt({attribute:r,type:e},l=lt){return e==="Datetime"?!0:xe(l)[r]==="Datetime"}function Rn({attribute:r,type:e},l=lt){return e==="Bool"?!0:xe(l)[r]==="Bool"}function Hn({attribute:r,type:e}){return Je(r)?"status-filter":ot({attribute:r,type:e})||Mn({attribute:r,type:e})||Rt({attribute:r,type:e})?"conditional-menu-button":Wn({attribute:r,type:e})?"list-filter-search":Rn({attribute:r,type:e})?"boolean-filter":""}function ml(r,e,l){const t=r.slice();return t[8]=e[l].value,t[9]=e[l].label,t}function Co(r){let e;return{c(){e=R(r[1])},l(l){e=H(l,r[1])},m(l,t){I(l,e,t)},p(l,t){t&2&&x(e,l[1])},d(l){l&&b(e)}}}function So(r){let e=r[9]+"",l,t;return{c(){l=R(e),t=F()},l(n){l=H(n,e),t=V(n)},m(n,o){I(n,l,o),I(n,t,o)},p:j,d(n){n&&b(l),n&&b(t)}}}function _l(r){let e,l;function t(){return r[7](r[8])}return e=new Pe({props:{$$slots:{default:[So]},$$scope:{ctx:r}}}),e.$on("click",t),{c(){L(e.$$.fragment)},l(n){T(e.$$.fragment,n)},m(n,o){D(e,n,o),l=!0},p(n,o){r=n;const a={};o&4096&&(a.$$scope={dirty:o,ctx:r}),e.$set(a)},i(n){l||(g(e.$$.fragment,n),l=!0)},o(n){$(e.$$.fragment,n),l=!1},d(n){y(e,n)}}}function No(r){let e,l,t=r[4],n=[];for(let a=0;a$(n[a],1,1,()=>{n[a]=null});return{c(){for(let a=0;al(0,o=_));const u=[{value:"true",label:W("common.true")},{value:"false",label:W("common.false")}],f=_=>{te(s,o.value=_,o),i()};return r.$$.update=()=>{r.$$.dirty&33&&l(6,t=l(5,a=u.find(_=>_.value===o.value))!==null&&a!==void 0?a:u[0]),r.$$.dirty&64&&l(1,n=t==null?void 0:t.label)},[o,n,s,i,u,a,t,f]}class Fo extends ie{constructor(e){super(),ae(this,e,Po,Oo,se,{})}}function Vo(r){let e,l;return e=new Fe({props:{label:W("common.close"),icon:"close",class:"ml-1"}}),e.$on("click",r[0]),{c(){L(e.$$.fragment)},l(t){T(e.$$.fragment,t)},m(t,n){D(e,t,n),l=!0},p:j,i(t){l||(g(e.$$.fragment,t),l=!0)},o(t){$(e.$$.fragment,t),l=!1},d(t){y(e,t)}}}function Wo(r){const{resetFilter:e}=Ve(Be);return[e]}class mt extends ie{constructor(e){super(),ae(this,e,Wo,Vo,se,{})}}function dl(r,e,l){const t=r.slice();return t[9]=e[l].allowed,t[10]=e[l].value,t[12]=l,t}function pl(r,e,l){const t=r.slice();return t[13]=e[l],t}function hl(r){let e,l=r[13].label.slice(0,2)+"",t;return{c(){e=N("p"),t=R(l),this.h()},l(n){e=A(n,"P",{class:!0});var o=O(e);t=H(o,l),o.forEach(b),this.h()},h(){B(e,"class","cell svelte-1we9vff")},m(n,o){I(n,e,o),C(e,t)},p:j,d(n){n&&b(e)}}}function bl(r,e){let l,t=(e[10]||"")+"",n,o,a,s;function i(){return e[6](e[10])}return{key:r,first:null,c(){l=N("button"),n=R(t),o=F(),this.h()},l(u){l=A(u,"BUTTON",{type:!0,class:!0});var f=O(l);n=H(f,t),o=V(f),f.forEach(b),this.h()},h(){B(l,"type","button"),B(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(u,f){I(u,l,f),C(l,n),C(l,o),a||(s=fe(l,"click",function(){En(e[9]&&e[10]?i:j)&&(e[9]&&e[10]?i:j).apply(this,arguments)}),a=!0)},p(u,f){e=u,f&8&&t!==(t=(e[10]||"")+"")&&x(n,t),f&8&&me(l,"highlight",e[9]&&e[10]),f&8&&me(l,"disabled",!e[9]),f&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(u){u&&b(l),a=!1,s()}}}function Mo(r){let e,l,t,n,o=[],a=new Map,s=rl,i=[];for(let _=0;__[12];for(let _=0;_!0}=e,i=[];const u=m=>{t("datechange",new Date(a,o,m))},f=(m,c,d)=>d?s(new Date(m,c,d)):!0,_=m=>u(m);return r.$$set=m=>{"date"in m&&l(0,n=m.date),"month"in m&&l(1,o=m.month),"year"in m&&l(2,a=m.year),"isAllowed"in m&&l(5,s=m.isAllowed)},r.$$.update=()=>{r.$$.dirty&6&&l(3,i=Fr(o,a).map(m=>({value:m,allowed:f(a,o,m)})))},[n,o,a,i,u,s,_]}class Ho extends ie{constructor(e){super(),ae(this,e,Ro,Mo,se,{date:0,month:1,year:2,isAllowed:5})}}function gl(r){var ne;let e,l,t,n,o,a,s,i=(((ne=ol(r[8]))==null?void 0:ne.label)??"")+"",u,f,_,m,c,d,p,h,k,w,v,E,P,S,M,Z,ee,Y,q;return o=new We({props:{name:"chevron-left"}}),p=new We({props:{name:"chevron-right"}}),k=new Ho({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"),L(o.$$.fragment),a=F(),s=N("div"),u=R(i),f=F(),_=R(r[9]),m=F(),c=N("div"),d=N("button"),L(p.$$.fragment),h=F(),L(k.$$.fragment),w=F(),v=N("div"),E=N("button"),P=R(r[4]),S=F(),M=N("button"),Z=R(r[5]),this.h()},l(oe){e=A(oe,"DIV",{class:!0});var z=O(e);l=A(z,"DIV",{class:!0});var pe=O(l);t=A(pe,"DIV",{class:!0});var ue=O(t);n=A(ue,"BUTTON",{type:!0});var K=O(n);T(o.$$.fragment,K),K.forEach(b),ue.forEach(b),a=V(pe),s=A(pe,"DIV",{class:!0});var re=O(s);u=H(re,i),f=V(re),_=H(re,r[9]),re.forEach(b),m=V(pe),c=A(pe,"DIV",{class:!0});var Q=O(c);d=A(Q,"BUTTON",{type:!0});var be=O(d);T(p.$$.fragment,be),be.forEach(b),Q.forEach(b),pe.forEach(b),h=V(z),T(k.$$.fragment,z),w=V(z),v=A(z,"DIV",{class:!0});var he=O(v);E=A(he,"BUTTON",{type:!0,class:!0});var $e=O(E);P=H($e,r[4]),$e.forEach(b),S=V(he),M=A(he,"BUTTON",{type:!0,class:!0});var Ce=O(M);Z=H(Ce,r[5]),Ce.forEach(b),he.forEach(b),z.forEach(b),this.h()},h(){B(n,"type","button"),B(t,"class","flex items-center justify-center"),B(s,"class","flex items-center justify-center"),B(d,"type","button"),B(c,"class","flex items-center justify-center"),B(l,"class","mx-3 my-2 flex items-center justify-around"),B(E,"type","button"),B(E,"class","cursor-pointer text-[12px]"),B(M,"type","button"),B(M,"class","cursor-pointer text-[12px]"),B(v,"class","my-1 flex justify-between px-2"),B(e,"class","absolute z-30 inline-block rounded border border-gray-900 bg-white shadow")},m(oe,z){I(oe,e,z),C(e,l),C(l,t),C(t,n),D(o,n,null),C(l,a),C(l,s),C(s,u),C(s,f),C(s,_),C(l,m),C(l,c),C(c,d),D(p,d,null),C(e,h),D(k,e,null),C(e,w),C(e,v),C(v,E),C(E,P),C(v,S),C(v,M),C(M,Z),ee=!0,Y||(q=[fe(n,"click",r[14]),fe(d,"click",r[13]),fe(E,"click",r[16]),fe(M,"click",r[17])],Y=!0)},p(oe,z){var ue;(!ee||z&256)&&i!==(i=(((ue=ol(oe[8]))==null?void 0:ue.label)??"")+"")&&x(u,i),(!ee||z&512)&&x(_,oe[9]);const pe={};z&256&&(pe.month=oe[8]),z&512&&(pe.year=oe[9]),z&1&&(pe.date=oe[0]),z&2&&(pe.isAllowed=oe[1]),k.$set(pe),(!ee||z&16)&&x(P,oe[4]),(!ee||z&32)&&x(Z,oe[5])},i(oe){ee||(g(o.$$.fragment,oe),g(p.$$.fragment,oe),g(k.$$.fragment,oe),ee=!0)},o(oe){$(o.$$.fragment,oe),$(p.$$.fragment,oe),$(k.$$.fragment,oe),ee=!1},d(oe){oe&&b(e),y(o),y(p),y(k),Y=!1,st(q)}}}function Uo(r){let e,l,t,n,o,a;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 s=r[10]&&gl(r);return{c(){e=N("div"),L(l.$$.fragment),t=F(),s&&s.c(),this.h()},l(i){e=A(i,"DIV",{class:!0});var u=O(e);T(l.$$.fragment,u),t=V(u),s&&s.l(u),u.forEach(b),this.h()},h(){B(e,"class","relative")},m(i,u){I(i,e,u),D(l,e,null),C(e,t),s&&s.m(e,null),n=!0,o||(a=[Zn(Pr.call(null,e)),fe(e,"click-outside",r[18])],o=!0)},p(i,[u]){const f={};u&4&&(f.label=i[2]),u&8&&(f.labelHidden=i[3]),u&1&&(f.value=i[0].toDateString()),u&64&&(f.clearButtonLabel=i[6]),u&128&&(f.disabled=i[7]),l.$set(f),i[10]?s?(s.p(i,u),u&1024&&g(s,1)):(s=gl(i),s.c(),g(s,1),s.m(e,null)):s&&(G(),$(s,1,1,()=>{s=null}),J())},i(i){n||(g(l.$$.fragment,i),g(s),n=!0)},o(i){$(l.$$.fragment,i),$(s),n=!1},d(i){i&&b(e),y(l),s&&s.d(),o=!1,st(a)}}}function qo(r,e,l){const t=at();let{isAllowed:n=()=>!0}=e,{selected:o=new Date}=e,{label:a}=e,{labelHidden:s=!1}=e,{todayLabel:i}=e,{closeLabel:u}=e,{clearLabel:f}=e,{disabled:_=!1}=e,m,c,d=!1;const p=()=>{l(10,d=!0)},h=M=>{const ee=M.target.value;if(ee.length===8){const Y=ee==null?void 0:ee.split("/"),ne=2e3+parseInt(Y[2]),oe=parseInt(Y[0])-1,z=parseInt(Y[1]),pe=new Date(ne,oe,z);t("datechange",pe)}},k=()=>{if(m===11){l(8,m=0),l(9,c=c+1);return}l(8,m=m+1)},w=()=>{if(m===0){l(8,m=11),l(9,c-=1);return}l(8,m-=1)},v=M=>{l(10,d=!1),t("datechange",M.detail)},E=()=>l(0,o=new Date),P=()=>l(10,d=!1),S=()=>l(10,d=!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,a=M.label),"labelHidden"in M&&l(3,s=M.labelHidden),"todayLabel"in M&&l(4,i=M.todayLabel),"closeLabel"in M&&l(5,u=M.closeLabel),"clearLabel"in M&&l(6,f=M.clearLabel),"disabled"in M&&l(7,_=M.disabled)},r.$$.update=()=>{r.$$.dirty&1&&(l(8,m=o.getMonth()),l(9,c=o.getFullYear()))},[o,n,a,s,i,u,f,_,m,c,d,p,h,k,w,v,E,P,S]}class Ht extends ie{constructor(e){super(),ae(this,e,qo,Uo,se,{isAllowed:1,selected:0,label:2,labelHidden:3,todayLabel:4,closeLabel:5,clearLabel:6,disabled:7})}}function $l(r){let e,l;return e=new Mr({props:{$$slots:{default:[Ko]},$$scope:{ctx:r}}}),{c(){L(e.$$.fragment)},l(t){T(e.$$.fragment,t)},m(t,n){D(e,t,n),l=!0},p(t,n){const o={};n&2056&&(o.$$scope={dirty:n,ctx:t}),e.$set(o)},i(t){l||(g(e.$$.fragment,t),l=!0)},o(t){$(e.$$.fragment,t),l=!1},d(t){y(e,t)}}}function jo(r){let e;return{c(){e=R("AM")},l(l){e=H(l,"AM")},m(l,t){I(l,e,t)},d(l){l&&b(e)}}}function zo(r){let e;return{c(){e=R("PM")},l(l){e=H(l,"PM")},m(l,t){I(l,e,t)},d(l){l&&b(e)}}}function Ko(r){let e,l,t,n;return e=new il({props:{active:r[3]==="AM",$$slots:{default:[jo]},$$scope:{ctx:r}}}),e.$on("click",r[9]),t=new il({props:{active:r[3]==="PM",$$slots:{default:[zo]},$$scope:{ctx:r}}}),t.$on("click",r[10]),{c(){L(e.$$.fragment),l=F(),L(t.$$.fragment)},l(o){T(e.$$.fragment,o),l=V(o),T(t.$$.fragment,o)},m(o,a){D(e,o,a),I(o,l,a),D(t,o,a),n=!0},p(o,a){const s={};a&8&&(s.active=o[3]==="AM"),a&2048&&(s.$$scope={dirty:a,ctx:o}),e.$set(s);const i={};a&8&&(i.active=o[3]==="PM"),a&2048&&(i.$$scope={dirty:a,ctx:o}),t.$set(i)},i(o){n||(g(e.$$.fragment,o),g(t.$$.fragment,o),n=!0)},o(o){$(e.$$.fragment,o),$(t.$$.fragment,o),n=!1},d(o){y(e,o),o&&b(l),y(t,o)}}}function Qo(r){let e,l,t,n,o,a,s,i,u,f,_;function m(v){r[6](v)}let c={id:"hour",label:"hrs",labelHidden:!0,placeholder:"00",suffix:"hrs",maxLength:2,hideCount:!0,error:r[4]?parseInt(r[0])>12:parseInt(r[0])>23,disabled:r[5]};r[0]!==void 0&&(c.value=r[0]),l=new ye({props:c}),ce.push(()=>_e(l,"value",m));function d(v){r[7](v)}let p={id:"minute",label:"min",labelHidden:!0,required:!0,placeholder:"00",suffix:"min",maxLength:2,hideCount:!0,error:Boolean(parseInt(r[0])>59),disabled:r[5]};r[1]!==void 0&&(p.value=r[1]),o=new ye({props:p}),ce.push(()=>_e(o,"value",d));function h(v){r[8](v)}let k={id:"second",label:"sec",labelHidden:!0,placeholder:"00",suffix:"sec",maxLength:2,hideCount:!0,error:Boolean(parseInt(r[0])>59),disabled:r[5]};r[2]!==void 0&&(k.value=r[2]),i=new ye({props:k}),ce.push(()=>_e(i,"value",h));let w=r[4]&&$l(r);return{c(){e=N("div"),L(l.$$.fragment),n=F(),L(o.$$.fragment),s=F(),L(i.$$.fragment),f=F(),w&&w.c(),this.h()},l(v){e=A(v,"DIV",{class:!0});var E=O(e);T(l.$$.fragment,E),n=V(E),T(o.$$.fragment,E),s=V(E),T(i.$$.fragment,E),f=V(E),w&&w.l(E),E.forEach(b),this.h()},h(){B(e,"class","flex gap-2")},m(v,E){I(v,e,E),D(l,e,null),C(e,n),D(o,e,null),C(e,s),D(i,e,null),C(e,f),w&&w.m(e,null),_=!0},p(v,[E]){const P={};E&17&&(P.error=v[4]?parseInt(v[0])>12:parseInt(v[0])>23),E&32&&(P.disabled=v[5]),!t&&E&1&&(t=!0,P.value=v[0],de(()=>t=!1)),l.$set(P);const S={};E&1&&(S.error=Boolean(parseInt(v[0])>59)),E&32&&(S.disabled=v[5]),!a&&E&2&&(a=!0,S.value=v[1],de(()=>a=!1)),o.$set(S);const M={};E&1&&(M.error=Boolean(parseInt(v[0])>59)),E&32&&(M.disabled=v[5]),!u&&E&4&&(u=!0,M.value=v[2],de(()=>u=!1)),i.$set(M),v[4]?w?(w.p(v,E),E&16&&g(w,1)):(w=$l(v),w.c(),g(w,1),w.m(e,null)):w&&(G(),$(w,1,1,()=>{w=null}),J())},i(v){_||(g(l.$$.fragment,v),g(o.$$.fragment,v),g(i.$$.fragment,v),g(w),_=!0)},o(v){$(l.$$.fragment,v),$(o.$$.fragment,v),$(i.$$.fragment,v),$(w),_=!1},d(v){v&&b(e),y(l),y(o),y(i),w&&w.d()}}}function Yo(r,e,l){let{hour:t=""}=e,{minute:n=""}=e,{second:o=""}=e,{half:a="AM"}=e,{twelveHourClock:s=!0}=e,{disabled:i=!1}=e;function u(d){t=d,l(0,t)}function f(d){n=d,l(1,n)}function _(d){o=d,l(2,o)}const m=()=>l(3,a="AM"),c=()=>l(3,a="PM");return r.$$set=d=>{"hour"in d&&l(0,t=d.hour),"minute"in d&&l(1,n=d.minute),"second"in d&&l(2,o=d.second),"half"in d&&l(3,a=d.half),"twelveHourClock"in d&&l(4,s=d.twelveHourClock),"disabled"in d&&l(5,i=d.disabled)},[t,n,o,a,s,i,u,f,_,m,c]}class Ut extends ie{constructor(e){super(),ae(this,e,Yo,Qo,se,{hour:0,minute:1,second:2,half:3,twelveHourClock:4,disabled:5})}}function kl(r,e,l){const t=r.slice();return t[16]=e[l].value,t[17]=e[l].label,t}function Go(r){let e;return{c(){e=R(r[6])},l(l){e=H(l,r[6])},m(l,t){I(l,e,t)},p(l,t){t&64&&x(e,l[6])},d(l){l&&b(e)}}}function Jo(r){let e=(r[17]??r[16])+"",l,t;return{c(){l=R(e),t=F()},l(n){l=H(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])+"")&&x(l,e)},d(n){n&&b(l),n&&b(t)}}}function wl(r){let e,l;function t(){return r[13](r[16])}return e=new Pe({props:{$$slots:{default:[Jo]},$$scope:{ctx:r}}}),e.$on("click",t),{c(){L(e.$$.fragment)},l(n){T(e.$$.fragment,n)},m(n,o){D(e,n,o),l=!0},p(n,o){r=n;const a={};o&1048577&&(a.$$scope={dirty:o,ctx:r}),e.$set(a)},i(n){l||(g(e.$$.fragment,n),l=!0)},o(n){$(e.$$.fragment,n),l=!1},d(n){y(e,n)}}}function Xo(r){let e,l,t=r[0],n=[];for(let a=0;a$(n[a],1,1,()=>{n[a]=null});return{c(){for(let a=0;al(5,a=v)),U(r,f,v=>l(7,s=v));const _=[{value:">"},{value:">="},{value:"="},{value:"<="},{value:"<"}];let{options:m=_}=e,{disabled:c=!1}=e,{inputId:d}=e,{noBorderLeft:p=!1}=e,{noBorderRight:h=!1}=e;function k(){t||te(u,a.conditional=m[0].value,a)}const w=v=>{te(u,a.conditional=v,a),te(f,s=d,s)};return r.$$set=v=>{"options"in v&&l(0,m=v.options),"disabled"in v&&l(1,c=v.disabled),"inputId"in v&&l(2,d=v.inputId),"noBorderLeft"in v&&l(3,p=v.noBorderLeft),"noBorderRight"in v&&l(4,h=v.noBorderRight)},r.$$.update=()=>{r.$$.dirty&33&&l(11,t=m.find(v=>v.value===a.conditional)),r.$$.dirty&1&&k(),r.$$.dirty&2049&&l(12,n=t??m[0]),r.$$.dirty&5120&&l(6,o=l(10,i=n==null?void 0:n.label)!==null&&i!==void 0?i:n==null?void 0:n.value)},[m,c,d,p,h,a,o,s,u,f,i,t,n,w]}class Et extends ie{constructor(e){super(),ae(this,e,ei,xo,se,{options:0,disabled:1,inputId:2,noBorderLeft:3,noBorderRight:4})}}function vl(r,e,l){const t=r.slice();return t[40]=e[l],t}function ti(r){let e=W("workflows.select-time")+"",l;return{c(){l=R(e)},l(t){l=H(t,e)},m(t,n){I(t,l,n)},p:j,d(t){t&&b(l)}}}function li(r){let e,l,t,n,o,a;return e=new Pe({props:{$$slots:{default:[ii]},$$scope:{ctx:r}}}),e.$on("click",r[33]),t=new It({}),o=new Pe({props:{$$slots:{default:[ai]},$$scope:{ctx:r}}}),o.$on("click",r[37]),{c(){L(e.$$.fragment),l=F(),L(t.$$.fragment),n=F(),L(o.$$.fragment)},l(s){T(e.$$.fragment,s),l=V(s),T(t.$$.fragment,s),n=V(s),T(o.$$.fragment,s)},m(s,i){D(e,s,i),I(s,l,i),D(t,s,i),I(s,n,i),D(o,s,i),a=!0},p(s,i){const u={};i[0]&2053|i[1]&4096&&(u.$$scope={dirty:i,ctx:s}),e.$set(u);const f={};i[0]&236|i[1]&4096&&(f.$$scope={dirty:i,ctx:s}),o.$set(f)},i(s){a||(g(e.$$.fragment,s),g(t.$$.fragment,s),g(o.$$.fragment,s),a=!0)},o(s){$(e.$$.fragment,s),$(t.$$.fragment,s),$(o.$$.fragment,s),a=!1},d(s){y(e,s),s&&b(l),y(t,s),s&&b(n),y(o,s)}}}function ni(r){let e,l,t,n,o,a;return e=new Pe({props:{$$slots:{default:[si]},$$scope:{ctx:r}}}),t=new It({}),o=new Pe({props:{$$slots:{default:[ui]},$$scope:{ctx:r}}}),{c(){L(e.$$.fragment),l=F(),L(t.$$.fragment),n=F(),L(o.$$.fragment)},l(s){T(e.$$.fragment,s),l=V(s),T(t.$$.fragment,s),n=V(s),T(o.$$.fragment,s)},m(s,i){D(e,s,i),I(s,l,i),D(t,s,i),I(s,n,i),D(o,s,i),a=!0},p(s,i){const u={};i[0]&232|i[1]&4096&&(u.$$scope={dirty:i,ctx:s}),e.$set(u);const f={};i[0]&1808|i[1]&4096&&(f.$$scope={dirty:i,ctx:s}),o.$set(f)},i(s){a||(g(e.$$.fragment,s),g(t.$$.fragment,s),g(o.$$.fragment,s),a=!0)},o(s){$(e.$$.fragment,s),$(t.$$.fragment,s),$(o.$$.fragment,s),a=!1},d(s){y(e,s),s&&b(l),y(t,s),s&&b(n),y(o,s)}}}function ri(r){let e=r[40]+"",l,t,n=W("common.ago")+"",o;return{c(){l=R(e),t=F(),o=R(n)},l(a){l=H(a,e),t=V(a),o=H(a,n)},m(a,s){I(a,l,s),I(a,t,s),I(a,o,s)},p:j,d(a){a&&b(l),a&&b(t),a&&b(o)}}}function Il(r){let e,l;return e=new Wr({props:{value:r[40],$$slots:{default:[ri]},$$scope:{ctx:r}}}),{c(){L(e.$$.fragment)},l(t){T(e.$$.fragment,t)},m(t,n){D(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||(g(e.$$.fragment,t),l=!0)},o(t){$(e.$$.fragment,t),l=!1},d(t){y(e,t)}}}function oi(r){let e,l,t=r[15],n=[];for(let a=0;a$(n[a],1,1,()=>{n[a]=null});return{c(){for(let a=0;a_e(o,"value",_));function c(p){r[32](p)}let d={unroundLeft:!0,id:"relative-datetime-unit-input",label:W("common.time-unit"),labelHidden:!0,disabled:r[2]!=="relative",$$slots:{default:[oi]},$$scope:{ctx:r}};return r[11]!==void 0&&(d.value=r[11]),i=new Vr({props:d}),ce.push(()=>_e(i,"value",c)),{c(){e=N("div"),L(l.$$.fragment),t=F(),n=N("div"),L(o.$$.fragment),s=F(),L(i.$$.fragment),this.h()},l(p){e=A(p,"DIV",{class:!0});var h=O(e);T(l.$$.fragment,h),t=V(h),n=A(h,"DIV",{class:!0});var k=O(n);T(o.$$.fragment,k),s=V(k),T(i.$$.fragment,k),k.forEach(b),h.forEach(b),this.h()},h(){B(n,"class","ml-6 flex gap-0 pt-2"),B(e,"class","flex flex-col")},m(p,h){I(p,e,h),D(l,e,null),C(e,t),C(e,n),D(o,n,null),C(n,s),D(i,n,null),f=!0},p(p,h){const k={};h[0]&1&&(k.error=p[20](p[0])),h[0]&4&&(k.disabled=p[2]!=="relative"),!a&&h[0]&1&&(a=!0,k.value=p[0],de(()=>a=!1)),o.$set(k);const w={};h[0]&4&&(w.disabled=p[2]!=="relative"),h[1]&4096&&(w.$$scope={dirty:h,ctx:p}),!u&&h[0]&2048&&(u=!0,w.value=p[11],de(()=>u=!1)),i.$set(w)},i(p){f||(g(l.$$.fragment,p),g(o.$$.fragment,p),g(i.$$.fragment,p),f=!0)},o(p){$(l.$$.fragment,p),$(o.$$.fragment,p),$(i.$$.fragment,p),f=!1},d(p){p&&b(e),y(l),y(o),y(i)}}}function ai(r){let e,l,t,n,o,a,s,i,u,f,_;l=new Sn({props:{label:W("common.absolute"),id:"absolute-time",value:"absolute",name:"time-filter-type",group:r[16]}}),o=new Ht({props:{label:"",labelHidden:!0,selected:r[3],todayLabel:W("common.today"),closeLabel:W("common.close"),clearLabel:W("common.clear-input-button-label"),disabled:r[2]!=="absolute"}}),o.$on("datechange",r[17]);function m(h){r[34](h)}function c(h){r[35](h)}function d(h){r[36](h)}let p={twelveHourClock:!1,disabled:r[2]!=="absolute"};return r[5]!==void 0&&(p.hour=r[5]),r[6]!==void 0&&(p.minute=r[6]),r[7]!==void 0&&(p.second=r[7]),s=new Ut({props:p}),ce.push(()=>_e(s,"hour",m)),ce.push(()=>_e(s,"minute",c)),ce.push(()=>_e(s,"second",d)),{c(){e=N("div"),L(l.$$.fragment),t=F(),n=N("div"),L(o.$$.fragment),a=F(),L(s.$$.fragment),this.h()},l(h){e=A(h,"DIV",{class:!0});var k=O(e);T(l.$$.fragment,k),t=V(k),n=A(k,"DIV",{class:!0});var w=O(n);T(o.$$.fragment,w),a=V(w),T(s.$$.fragment,w),w.forEach(b),k.forEach(b),this.h()},h(){B(n,"class","ml-6 flex flex-col gap-2"),B(e,"class","flex flex-col gap-2")},m(h,k){I(h,e,k),D(l,e,null),C(e,t),C(e,n),D(o,n,null),C(n,a),D(s,n,null),_=!0},p(h,k){const w={};k[0]&8&&(w.selected=h[3]),k[0]&4&&(w.disabled=h[2]!=="absolute"),o.$set(w);const v={};k[0]&4&&(v.disabled=h[2]!=="absolute"),!i&&k[0]&32&&(i=!0,v.hour=h[5],de(()=>i=!1)),!u&&k[0]&64&&(u=!0,v.minute=h[6],de(()=>u=!1)),!f&&k[0]&128&&(f=!0,v.second=h[7],de(()=>f=!1)),s.$set(v)},i(h){_||(g(l.$$.fragment,h),g(o.$$.fragment,h),g(s.$$.fragment,h),_=!0)},o(h){$(l.$$.fragment,h),$(o.$$.fragment,h),$(s.$$.fragment,h),_=!1},d(h){h&&b(e),y(l),y(o),y(s)}}}function si(r){let e,l,t,n,o,a,s,i;l=new Ht({props:{label:W("common.start"),selected:r[3],todayLabel:W("common.today"),closeLabel:W("common.close"),clearLabel:W("common.clear-input-button-label")}}),l.$on("datechange",r[17]);function u(c){r[25](c)}function f(c){r[26](c)}function _(c){r[27](c)}let m={twelveHourClock:!1};return r[5]!==void 0&&(m.hour=r[5]),r[6]!==void 0&&(m.minute=r[6]),r[7]!==void 0&&(m.second=r[7]),n=new Ut({props:m}),ce.push(()=>_e(n,"hour",u)),ce.push(()=>_e(n,"minute",f)),ce.push(()=>_e(n,"second",_)),{c(){e=N("div"),L(l.$$.fragment),t=F(),L(n.$$.fragment),this.h()},l(c){e=A(c,"DIV",{class:!0});var d=O(e);T(l.$$.fragment,d),t=V(d),T(n.$$.fragment,d),d.forEach(b),this.h()},h(){B(e,"class","flex flex-col gap-2")},m(c,d){I(c,e,d),D(l,e,null),C(e,t),D(n,e,null),i=!0},p(c,d){const p={};d[0]&8&&(p.selected=c[3]),l.$set(p);const h={};!o&&d[0]&32&&(o=!0,h.hour=c[5],de(()=>o=!1)),!a&&d[0]&64&&(a=!0,h.minute=c[6],de(()=>a=!1)),!s&&d[0]&128&&(s=!0,h.second=c[7],de(()=>s=!1)),n.$set(h)},i(c){i||(g(l.$$.fragment,c),g(n.$$.fragment,c),i=!0)},o(c){$(l.$$.fragment,c),$(n.$$.fragment,c),i=!1},d(c){c&&b(e),y(l),y(n)}}}function ui(r){let e,l,t,n,o,a,s,i;l=new Ht({props:{label:W("common.end"),selected:r[4],todayLabel:W("common.today"),closeLabel:W("common.close"),clearLabel:W("common.clear-input-button-label")}}),l.$on("datechange",r[18]);function u(c){r[28](c)}function f(c){r[29](c)}function _(c){r[30](c)}let m={twelveHourClock:!1};return r[8]!==void 0&&(m.hour=r[8]),r[9]!==void 0&&(m.minute=r[9]),r[10]!==void 0&&(m.second=r[10]),n=new Ut({props:m}),ce.push(()=>_e(n,"hour",u)),ce.push(()=>_e(n,"minute",f)),ce.push(()=>_e(n,"second",_)),{c(){e=N("div"),L(l.$$.fragment),t=F(),L(n.$$.fragment),this.h()},l(c){e=A(c,"DIV",{class:!0});var d=O(e);T(l.$$.fragment,d),t=V(d),T(n.$$.fragment,d),d.forEach(b),this.h()},h(){B(e,"class","flex flex-col gap-2")},m(c,d){I(c,e,d),D(l,e,null),C(e,t),D(n,e,null),i=!0},p(c,d){const p={};d[0]&16&&(p.selected=c[4]),l.$set(p);const h={};!o&&d[0]&256&&(o=!0,h.hour=c[8],de(()=>o=!1)),!a&&d[0]&512&&(a=!0,h.minute=c[9],de(()=>a=!1)),!s&&d[0]&1024&&(s=!0,h.second=c[10],de(()=>s=!1)),n.$set(h)},i(c){i||(g(l.$$.fragment,c),g(n.$$.fragment,c),i=!0)},o(c){$(l.$$.fragment,c),$(n.$$.fragment,c),i=!1},d(c){c&&b(e),y(l),y(n)}}}function fi(r){let e=W("common.apply")+"",l;return{c(){l=R(e)},l(t){l=H(t,e)},m(t,n){I(t,l,n)},p:j,d(t){t&&b(l)}}}function ci(r){let e,l,t=W("common.based-on-time-preface")+"",n,o,a,s;return e=new We({props:{name:"clock","aria-hidden":"true"}}),{c(){L(e.$$.fragment),l=F(),n=R(t),o=F(),a=R(r[13])},l(i){T(e.$$.fragment,i),l=V(i),n=H(i,t),o=V(i),a=H(i,r[13])},m(i,u){D(e,i,u),I(i,l,u),I(i,n,u),I(i,o,u),I(i,a,u),s=!0},p(i,u){(!s||u[0]&8192)&&x(a,i[13])},i(i){s||(g(e.$$.fragment,i),s=!0)},o(i){$(e.$$.fragment,i),s=!1},d(i){y(e,i),i&&b(l),i&&b(n),i&&b(o),i&&b(a)}}}function mi(r){let e,l,t,n,o,a,s,i,u,f;const _=[ni,li],m=[];function c(d,p){return d[1]?0:1}return e=c(r),l=m[e]=_[e](r),n=new It({}),s=new tt({props:{size:"xs",style:"width: 100%",disabled:r[12],$$slots:{default:[fi]},$$scope:{ctx:r}}}),s.$on("click",r[19]),u=new Pe({props:{centered:!0,disabled:!0,class:"!pt-0",$$slots:{default:[ci]},$$scope:{ctx:r}}}),{c(){l.c(),t=F(),L(n.$$.fragment),o=F(),a=N("div"),L(s.$$.fragment),i=F(),L(u.$$.fragment),this.h()},l(d){l.l(d),t=V(d),T(n.$$.fragment,d),o=V(d),a=A(d,"DIV",{class:!0});var p=O(a);T(s.$$.fragment,p),p.forEach(b),i=V(d),T(u.$$.fragment,d),this.h()},h(){B(a,"class","flex items-center p-2")},m(d,p){m[e].m(d,p),I(d,t,p),D(n,d,p),I(d,o,p),I(d,a,p),D(s,a,null),I(d,i,p),D(u,d,p),f=!0},p(d,p){let h=e;e=c(d),e===h?m[e].p(d,p):(G(),$(m[h],1,1,()=>{m[h]=null}),J(),l=m[e],l?l.p(d,p):(l=m[e]=_[e](d),l.c()),g(l,1),l.m(t.parentNode,t));const k={};p[0]&4096&&(k.disabled=d[12]),p[1]&4096&&(k.$$scope={dirty:p,ctx:d}),s.$set(k);const w={};p[0]&8192|p[1]&4096&&(w.$$scope={dirty:p,ctx:d}),u.$set(w)},i(d){f||(g(l),g(n.$$.fragment,d),g(s.$$.fragment,d),g(u.$$.fragment,d),f=!0)},o(d){$(l),$(n.$$.fragment,d),$(s.$$.fragment,d),$(u.$$.fragment,d),f=!1},d(d){m[e].d(d),d&&b(t),y(n,d),d&&b(o),d&&b(a),y(s),d&&b(i),y(u,d)}}}function _i(r){let e,l,t,n;return e=new ft({props:{unroundLeft:!0,id:"time-range-filter",controls:"time-range-filter-menu",class:"whitespace-nowrap",$$slots:{default:[ti]},$$scope:{ctx:r}}}),t=new ct({props:{keepOpen:!0,id:"time-range-filter-menu",class:"w-[27rem] !overflow-visible",$$slots:{default:[mi]},$$scope:{ctx:r}}}),{c(){L(e.$$.fragment),l=F(),L(t.$$.fragment)},l(o){T(e.$$.fragment,o),l=V(o),T(t.$$.fragment,o)},m(o,a){D(e,o,a),I(o,l,a),D(t,o,a),n=!0},p(o,a){const s={};a[1]&4096&&(s.$$scope={dirty:a,ctx:o}),e.$set(s);const i={};a[0]&16383|a[1]&4096&&(i.$$scope={dirty:a,ctx:o}),t.$set(i)},i(o){n||(g(e.$$.fragment,o),g(t.$$.fragment,o),n=!0)},o(o){$(e.$$.fragment,o),$(t.$$.fragment,o),n=!1},d(o){y(e,o),o&&b(l),y(t,o)}}}function di(r){let e,l,t,n,o;return l=new Et({props:{inputId:"time-range-filter",options:[{value:"<=",label:W("common.before")},{value:"BETWEEN",label:W("common.between")},{value:">=",label:W("common.after")}],noBorderLeft:!0,noBorderRight:!0}}),n=new ut({props:{$$slots:{default:[_i]},$$scope:{ctx:r}}}),{c(){e=N("div"),L(l.$$.fragment),t=F(),L(n.$$.fragment),this.h()},l(a){e=A(a,"DIV",{class:!0});var s=O(e);T(l.$$.fragment,s),t=V(s),T(n.$$.fragment,s),s.forEach(b),this.h()},h(){B(e,"class","flex items-center")},m(a,s){I(a,e,s),D(l,e,null),C(e,t),D(n,e,null),o=!0},p(a,s){const i={};s[0]&16383|s[1]&4096&&(i.$$scope={dirty:s,ctx:a}),n.$set(i)},i(a){o||(g(l.$$.fragment,a),g(n.$$.fragment,a),o=!0)},o(a){$(l.$$.fragment,a),$(n.$$.fragment,a),o=!1},d(a){a&&b(e),y(l),y(n)}}}function pi(r,e,l){let t,n,o,a,s,i,u,f;U(r,Ot,le=>l(23,i=le)),U(r,kt,le=>l(24,f=le));const{filter:_,handleSubmit:m}=Ve(Be);U(r,_,le=>l(22,s=le));let c=dt(new Date),d=dt(new Date),p="",h="",k="",w="",v="",E="";const P=["minutes","hours","days"];let S=P[0],M="";const Z=Ue("relative");U(r,Z,le=>l(2,u=le));const ee=le=>{l(3,c=dt(le.detail))},Y=le=>{l(4,d=dt(le.detail))},q=(le,Me)=>{let Se=new Date(le);return Me.hour&&(Se=no(Se,parseInt(Me.hour))),Me.minute&&(Se=oo(Se,parseInt(Me.minute))),Me.second&&(Se=io(Se,parseInt(Me.second))),Se},ne=()=>{if(u==="relative"&&!o){if(!M)return;te(_,s.value=Ct(`${M} ${S}`),s),te(_,s.customDate=!1,s)}else{let le=q(c,{hour:p,minute:h,second:k}),Me=q(d,{hour:w,minute:v,second:E});const Se=Dr(i),zt=ll.zonedTimeToUtc(le,Se).toISOString(),Gn=ll.zonedTimeToUtc(Me,Se).toISOString(),Jn=o?`BETWEEN "${zt}" AND "${Gn}"`:zt;te(_,s.value=Jn,s),t?(te(_,s.customDate=!0,s),te(_,s.conditional="",s)):te(_,s.customDate=!1,s)}m()},oe=le=>le?isNaN(Number(le))||isNaN(parseFloat(le)):!1;function z(le){p=le,l(5,p)}function pe(le){h=le,l(6,h)}function ue(le){k=le,l(7,k)}function K(le){w=le,l(8,w)}function re(le){v=le,l(9,v)}function Q(le){E=le,l(10,E)}function be(le){M=le,l(0,M)}function he(le){S=le,l(11,S)}const $e=()=>te(Z,u="relative",u);function Ce(le){p=le,l(5,p)}function _t(le){h=le,l(6,h)}function Qn(le){k=le,l(7,k)}const Yn=()=>te(Z,u="absolute",u);return r.$$.update=()=>{r.$$.dirty[0]&4194304&&l(1,t=s.conditional==="BETWEEN"),r.$$.dirty[0]&8388608&&l(13,n=Tr(i)),r.$$.dirty[0]&16777218&&l(21,o=t||!f),r.$$.dirty[0]&2097157&&l(12,a=u==="relative"&&!o&&(!M||oe(M)))},[M,t,u,c,d,p,h,k,w,v,E,S,a,n,_,P,Z,ee,Y,ne,oe,o,s,i,f,z,pe,ue,K,re,Q,be,he,$e,Ce,_t,Qn,Yn]}class hi extends ie{constructor(e){super(),ae(this,e,pi,di,se,{},null,[-1,-1])}}function bi(r){let e,l,t,n,o;e=new Et({props:{inputId:"duration-filter-search",noBorderLeft:!0}});function a(i){r[6](i)}let s={label:r[2].attribute,labelHidden:!0,id:"duration-filter-search",type:"search",placeholder:`${W("common.enter")} ${r[2].attribute} (${W("workflows.duration-filter-placeholder")})`,icon:"search",class:"w-full",unroundLeft:!0,valid:r[1]};return r[0]!==void 0&&(s.value=r[0]),t=new ye({props:s}),ce.push(()=>_e(t,"value",a)),t.$on("keydown",r[4]),t.$on("input",r[5]),{c(){L(e.$$.fragment),l=F(),L(t.$$.fragment)},l(i){T(e.$$.fragment,i),l=V(i),T(t.$$.fragment,i)},m(i,u){D(e,i,u),I(i,l,u),D(t,i,u),o=!0},p(i,[u]){const f={};u&4&&(f.label=i[2].attribute),u&4&&(f.placeholder=`${W("common.enter")} ${i[2].attribute} (${W("workflows.duration-filter-placeholder")})`),u&2&&(f.valid=i[1]),!n&&u&1&&(n=!0,f.value=i[0],de(()=>n=!1)),t.$set(f)},i(i){o||(g(e.$$.fragment,i),g(t.$$.fragment,i),o=!0)},o(i){$(e.$$.fragment,i),$(t.$$.fragment,i),o=!1},d(i){y(e,i),i&&b(l),y(t,i)}}}function gi(r,e,l){let t;const{filter:n,handleSubmit:o}=Ve(Be);U(r,n,_=>l(2,t=_));let a=t.value,s=!0;const i=_=>{const m=a.trim();s&&_.key==="Enter"&&m!==""&&(te(n,t.value=m,t),_.preventDefault(),o())},u=_=>{Lr(_.target.value.trim())?l(1,s=!0):l(1,s=!1)};function f(_){a=_,l(0,a)}return[a,s,t,n,i,u,f]}class $i extends ie{constructor(e){super(),ae(this,e,gi,bi,se,{})}}function ki(r){let e;const l=r[5].default,t=ke(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)&&we(t,l,n,n[4],e?Ie(l,n[4],o,null):ve(n[4]),null)},i(n){e||(g(t,n),e=!0)},o(n){$(t,n),e=!1},d(n){t&&t.d(n)}}}function wi(r){let e,l,t,n;const o=r[5].default,a=ke(o,r,r[4],null);return{c(){e=N("button"),a&&a.c(),this.h()},l(s){e=A(s,"BUTTON",{class:!0});var i=O(e);a&&a.l(i),i.forEach(b),this.h()},h(){B(e,"class","flex items-center gap-1")},m(s,i){I(s,e,i),a&&a.m(e,null),l=!0,t||(n=fe(e,"click",r[6]),t=!0)},p(s,i){a&&a.p&&(!l||i&16)&&we(a,o,s,s[4],l?Ie(o,s[4],i,null):ve(s[4]),null)},i(s){l||(g(a,s),l=!0)},o(s){$(a,s),l=!1},d(s){s&&b(e),a&&a.d(s),t=!1,n()}}}function vi(r){let e,l,t,n,o,a,s,i,u,f;const _=[wi,ki],m=[];function c(d,p){return d[1]?0:1}return l=c(r),t=m[l]=_[l](r),a=new We({props:{name:"close"}}),{c(){e=N("span"),t.c(),n=F(),o=N("button"),L(a.$$.fragment),this.h()},l(d){e=A(d,"SPAN",{class:!0});var p=O(e);t.l(p),n=V(p),o=A(p,"BUTTON",{"aria-label":!0});var h=O(o);T(a.$$.fragment,h),h.forEach(b),p.forEach(b),this.h()},h(){B(o,"aria-label",r[2]),B(e,"class",s="chip "+r[0]+" svelte-jjsz31")},m(d,p){I(d,e,p),m[l].m(e,null),C(e,n),C(e,o),D(a,o,null),i=!0,u||(f=fe(o,"click",r[3]),u=!0)},p(d,[p]){let h=l;l=c(d),l===h?m[l].p(d,p):(G(),$(m[h],1,1,()=>{m[h]=null}),J(),t=m[l],t?t.p(d,p):(t=m[l]=_[l](d),t.c()),g(t,1),t.m(e,n)),(!i||p&4)&&B(o,"aria-label",d[2]),(!i||p&1&&s!==(s="chip "+d[0]+" svelte-jjsz31"))&&B(e,"class",s)},i(d){i||(g(t),g(a.$$.fragment,d),i=!0)},o(d){$(t),$(a.$$.fragment,d),i=!1},d(d){d&&b(e),m[l].d(),y(a),u=!1,f()}}}function Ii(r,e,l){let{$$slots:t={},$$scope:n}=e,{intent:o="default"}=e,{button:a=!1}=e,{removeButtonLabel:s}=e;const i=at(),u=_=>{_.preventDefault(),i("remove")};function f(_){Re.call(this,r,_)}return r.$$set=_=>{"intent"in _&&l(0,o=_.intent),"button"in _&&l(1,a=_.button),"removeButtonLabel"in _&&l(2,s=_.removeButtonLabel),"$$scope"in _&&l(4,n=_.$$scope)},[o,a,s,u,n,t,f]}class Ei extends ie{constructor(e){super(),ae(this,e,Ii,vi,se,{intent:0,button:1,removeButtonLabel:2})}}function El(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 Ll(r){let e,l,t,n,o;function a(){return r[14](r[24])}function s(){return r[15](r[24],r[17])}return l=new Ei({props:{removeButtonLabel:W("workflows.remove-filter-label",{attribute:r[18]}),intent:"default",button:!0,$$slots:{default:[Si]},$$scope:{ctx:r}}}),l.$on("remove",a),l.$on("click",s),{c(){e=N("div"),L(l.$$.fragment),this.h()},l(i){e=A(i,"DIV",{"data-testid":!0});var u=O(e);T(l.$$.fragment,u),u.forEach(b),this.h()},h(){B(e,"data-testid",t=r[17].attribute+"-"+r[24])},m(i,u){I(i,e,u),D(l,e,null),o=!0},p(i,u){r=i;const f={};u&2&&(f.removeButtonLabel=W("workflows.remove-filter-label",{attribute:r[18]})),u&33554482&&(f.$$scope={dirty:u,ctx:r}),l.$set(f),(!o||u&2&&t!==(t=r[17].attribute+"-"+r[24]))&&B(e,"data-testid",t)},i(i){o||(g(l.$$.fragment,i),n||je(()=>{n=ze(e,Tn,{}),n.start()}),o=!0)},o(i){$(l.$$.fragment,i),o=!1},d(i){i&&b(e),y(l)}}}function Li(r){let e,l=r[18]+"",t,n,o;function a(u,f){return f&2&&(o=null),o==null&&(o=!!Rt({attribute:u[18],type:u[19]})),o?yi:Di}let s=a(r,-1),i=s(r);return{c(){e=N("span"),t=R(l),n=F(),i.c(),this.h()},l(u){e=A(u,"SPAN",{class:!0});var f=O(e);t=H(f,l),n=V(f),i.l(f),f.forEach(b),this.h()},h(){B(e,"class","max-w-xs truncate md:max-w-lg xl:max-w-2xl")},m(u,f){I(u,e,f),C(e,t),C(e,n),i.m(e,null)},p(u,f){f&2&&l!==(l=u[18]+"")&&x(t,l),s===(s=a(u,f))&&i?i.p(u,f):(i.d(1),i=s(u),i&&(i.c(),i.m(e,null)))},i:j,o:j,d(u){u&&b(e),i.d()}}}function Ti(r){let e,l=r[18]+"",t,n,o=r[21]+"",a,s,i,u,f;return u=new Pt({props:{status:r[20]}}),{c(){e=N("span"),t=R(l),n=F(),a=R(o),s=F(),i=N("span"),L(u.$$.fragment),this.h()},l(_){e=A(_,"SPAN",{class:!0});var m=O(e);t=H(m,l),n=V(m),a=H(m,o),s=V(m),i=A(m,"SPAN",{class:!0});var c=O(i);T(u.$$.fragment,c),c.forEach(b),m.forEach(b),this.h()},h(){B(i,"class","-py-1 ml-1"),B(e,"class","flex")},m(_,m){I(_,e,m),C(e,t),C(e,n),C(e,a),C(e,s),C(e,i),D(u,i,null),f=!0},p(_,m){(!f||m&2)&&l!==(l=_[18]+"")&&x(t,l),(!f||m&2)&&o!==(o=_[21]+"")&&x(a,o);const c={};m&2&&(c.status=_[20]),u.$set(c)},i(_){f||(g(u.$$.fragment,_),f=!0)},o(_){$(u.$$.fragment,_),f=!1},d(_){_&&b(e),y(u)}}}function Di(r){let e=r[21]+"",l,t,n=(ot({attribute:r[18],type:r[19]})?`"${r[20]}"`:r[20])+"",o;return{c(){l=R(e),t=F(),o=R(n)},l(a){l=H(a,e),t=V(a),o=H(a,n)},m(a,s){I(a,l,s),I(a,t,s),I(a,o,s)},p(a,s){s&2&&e!==(e=a[21]+"")&&x(l,e),s&2&&n!==(n=(ot({attribute:a[18],type:a[19]})?`"${a[20]}"`:a[20])+"")&&x(o,n)},d(a){a&&b(l),a&&b(t),a&&b(o)}}}function yi(r){let e;function l(o,a){return o[22]?Ci:Bi}let t=l(r),n=t(r);return{c(){n.c(),e=X()},l(o){n.l(o),e=X()},m(o,a){n.m(o,a),I(o,e,a)},p(o,a){t===(t=l(o))&&n?n.p(o,a):(n.d(1),n=t(o),n&&(n.c(),n.m(e.parentNode,e)))},d(o){n.d(o),o&&b(e)}}}function Bi(r){let e=r[10](r[21])+"",l,t,n=Ee(r[20],r[4],{relative:r[5],abbrFormat:!0})+"",o;return{c(){l=R(e),t=F(),o=R(n)},l(a){l=H(a,e),t=V(a),o=H(a,n)},m(a,s){I(a,l,s),I(a,t,s),I(a,o,s)},p(a,s){s&2&&e!==(e=a[10](a[21])+"")&&x(l,e),s&50&&n!==(n=Ee(a[20],a[4],{relative:a[5],abbrFormat:!0})+"")&&x(o,n)},d(a){a&&b(l),a&&b(t),a&&b(o)}}}function Ci(r){let e=r[11](r[20],r[4],r[5])+"",l;return{c(){l=R(e)},l(t){l=H(t,e)},m(t,n){I(t,l,n)},p(t,n){n&50&&e!==(e=t[11](t[20],t[4],t[5])+"")&&x(l,e)},d(t){t&&b(l)}}}function Si(r){let e,l,t,n,o;const a=[Ti,Li],s=[];function i(u,f){return f&2&&(e=null),e==null&&(e=!!(u[18]==="ExecutionStatus"&&ir(u[20]))),e?0:1}return l=i(r,-1),t=s[l]=a[l](r),{c(){t.c(),n=X()},l(u){t.l(u),n=X()},m(u,f){s[l].m(u,f),I(u,n,f),o=!0},p(u,f){let _=l;l=i(u,f),l===_?s[l].p(u,f):(G(),$(s[_],1,1,()=>{s[_]=null}),J(),t=s[l],t?t.p(u,f):(t=s[l]=a[l](u),t.c()),g(t,1),t.m(n.parentNode,n))},i(u){o||(g(t),o=!0)},o(u){$(t),o=!1},d(u){s[l].d(u),u&&b(n)}}}function Tl(r,e){let l,t,n,o=e[18]&&Ll(e);return{key:r,first:null,c(){l=X(),o&&o.c(),t=X(),this.h()},l(a){l=X(),o&&o.l(a),t=X(),this.h()},h(){this.first=l},m(a,s){I(a,l,s),o&&o.m(a,s),I(a,t,s),n=!0},p(a,s){e=a,e[18]?o?(o.p(e,s),s&2&&g(o,1)):(o=Ll(e),o.c(),g(o,1),o.m(t.parentNode,t)):o&&(G(),$(o,1,1,()=>{o=null}),J())},i(a){n||(g(o),n=!0)},o(a){$(o),n=!1},d(a){a&&b(l),o&&o.d(a),a&&b(t)}}}function Dl(r){let e,l;return e=new tt({props:{variant:"secondary",size:"xs",$$slots:{default:[Ni]},$$scope:{ctx:r}}}),e.$on("click",r[9]),{c(){L(e.$$.fragment)},l(t){T(e.$$.fragment,t)},m(t,n){D(e,t,n),l=!0},p(t,n){const o={};n&33554432&&(o.$$scope={dirty:n,ctx:t}),e.$set(o)},i(t){l||(g(e.$$.fragment,t),l=!0)},o(t){$(e.$$.fragment,t),l=!1},d(t){y(e,t)}}}function Ni(r){let e=W("common.view-more")+"",l;return{c(){l=R(e)},l(t){l=H(t,e)},m(t,n){I(t,l,n)},p:j,d(t){t&&b(l)}}}function Ai(r){let e,l=[],t=new Map,n,o,a=r[1];const s=u=>`${u[17].attribute}-${u[24]}`;for(let u=0;u{i=null}),J()),(!o||f&2)&&me(e,"pt-2",u[1].length)},i(u){if(!o){for(let f=0;fl(13,o=E)),U(r,De,E=>l(16,i=E)),U(r,Ot,E=>l(4,u=E)),U(r,Bn,E=>l(5,f=E));const{filter:_,activeQueryIndex:m}=Ve(Be);U(r,_,E=>l(3,s=E)),U(r,m,E=>l(2,a=E));const c=E=>{if(o.splice(E,1),ge.set(o),Mt(i.url,o),E===o.length){const P=o[o.length-1];P&&(P.operator="")}E===a?(te(m,a=null,a),te(_,s=qe(),s)):E{n&&l(12,d+=5)},h=E=>["<","<="].includes(E)?W("common.before").toLowerCase():[">",">="].includes(E)?W("common.after").toLowerCase():E,k=(E,P,S)=>{const[M,Z,ee,Y]=E.split(" ");return`${M.toLowerCase()} ${Ee(Z,P,{relative:S,abbrFormat:!0})} ${ee.toLowerCase()} ${Ee(Y,P,{relative:S,abbrFormat:!0})}`},w=E=>c(E),v=(E,P)=>{te(m,a=E,a),te(_,s={...P},s)};return r.$$.update=()=>{r.$$.dirty&12288&&l(1,t=o.slice(0,d)),r.$$.dirty&12288&&l(0,n=d{v=null}),J()),(!h||S&2048)&&B(i,"max",P[11]),(!h||S&4096)&&B(i,"min",P[12]),(!h||S&256)&&(i.disabled=P[8]),(!h||S&64)&&B(i,"placeholder",P[6]),(!h||S&4)&&B(i,"id",P[2]),(!h||S&128)&&B(i,"name",P[7]),S&1&&Ln(i.value)!==P[0]&&Qt(i,P[0]),(!h||S&256)&&me(i,"disabled",P[8]),(!h||S&512&&u!==(u="input-container "+P[9]+" svelte-1851tme"))&&B(a,"class",u),(!h||S&768)&&me(a,"disabled",P[8]),(!h||S&33280)&&me(a,"search",P[15]),(!h||S&8704)&&me(a,"unroundRight",P[13]),(!h||S&16896)&&me(a,"unroundLeft",P[14]),(!h||S&66048)&&me(a,"invalid",!P[16]),(!h||S&32)&&x(m,P[5]),(!h||S&131072&&c!==(c=Kt(P[17].class)+" svelte-1851tme"))&&B(e,"class",c),!P[16]&&P[10]?E?E.p(P,S):(E=Bl(P),E.c(),E.m(p.parentNode,p)):E&&(E.d(1),E=null)},i(P){h||(g(v),h=!0)},o(P){$(v),h=!1},d(P){P&&b(e),v&&v.d(),P&&b(d),E&&E.d(P),P&&b(p),k=!1,st(w)}}}function Vi(r,e,l){let{icon:t=null}=e,{id:n}=e,{value:o}=e,{label:a}=e,{labelHidden:s=!1}=e,{units:i=""}=e,{placeholder:u=""}=e,{name:f=n}=e,{disabled:_=!1}=e,{theme:m="light"}=e,{hintText:c=""}=e,{max:d=void 0}=e,{min:p=void 0}=e,{unroundRight:h=!1}=e,{unroundLeft:k=!1}=e,{search:w=!1}=e,v=!0;const E=q=>{p!==void 0&&qd?l(16,v=!1):l(16,v=!0)};function P(q){Re.call(this,r,q)}function S(q){Re.call(this,r,q)}function M(q){Re.call(this,r,q)}function Z(q){Re.call(this,r,q)}function ee(q){Re.call(this,r,q)}function Y(){o=Ln(this.value),l(0,o)}return r.$$set=q=>{l(17,e=bt(bt({},e),gt(q))),"icon"in q&&l(1,t=q.icon),"id"in q&&l(2,n=q.id),"value"in q&&l(0,o=q.value),"label"in q&&l(3,a=q.label),"labelHidden"in q&&l(4,s=q.labelHidden),"units"in q&&l(5,i=q.units),"placeholder"in q&&l(6,u=q.placeholder),"name"in q&&l(7,f=q.name),"disabled"in q&&l(8,_=q.disabled),"theme"in q&&l(9,m=q.theme),"hintText"in q&&l(10,c=q.hintText),"max"in q&&l(11,d=q.max),"min"in q&&l(12,p=q.min),"unroundRight"in q&&l(13,h=q.unroundRight),"unroundLeft"in q&&l(14,k=q.unroundLeft),"search"in q&&l(15,w=q.search)},r.$$.update=()=>{r.$$.dirty&1&&E(o)},e=gt(e),[o,t,n,a,s,i,u,f,_,m,c,d,p,h,k,w,v,e,P,S,M,Z,ee,Y]}class Wi extends ie{constructor(e){super(),ae(this,e,Vi,Fi,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 Mi(r){let e,l,t,n,o,a;l=new Et({props:{inputId:"number-filter-search",noBorderLeft:!0,noBorderRight:!0}});function s(u){r[4](u)}let i={label:W("common.number-input-placeholder"),labelHidden:!0,id:"number-filter-search",icon:"search",placeholder:W("common.number-input-placeholder"),min:Un,unroundLeft:!0,search:!0,class:"-mr-2"};return r[0]!==void 0&&(i.value=r[0]),n=new Wi({props:i}),ce.push(()=>_e(n,"value",s)),n.$on("keydown",r[3]),{c(){e=N("div"),L(l.$$.fragment),t=F(),L(n.$$.fragment),this.h()},l(u){e=A(u,"DIV",{class:!0});var f=O(e);T(l.$$.fragment,f),t=V(f),T(n.$$.fragment,f),f.forEach(b),this.h()},h(){B(e,"class","flex items-center")},m(u,f){I(u,e,f),D(l,e,null),C(e,t),D(n,e,null),a=!0},p(u,[f]){const _={};!o&&f&1&&(o=!0,_.value=u[0],de(()=>o=!1)),n.$set(_)},i(u){a||(g(l.$$.fragment,u),g(n.$$.fragment,u),a=!0)},o(u){$(l.$$.fragment,u),$(n.$$.fragment,u),a=!1},d(u){u&&b(e),y(l),y(n)}}}const Un=0;function Ri(r,e,l){let t,n;const{filter:o,focusedElementId:a,handleSubmit:s}=Ve(Be);U(r,o,_=>l(5,t=_)),U(r,a,_=>l(6,n=_));let i=t.value?Number(t.value):null;const u=_=>{te(a,n="",n),_.key==="Enter"&&i!==null&&i>=Un&&(te(o,t.value=String(i),t),_.preventDefault(),s())};function f(_){i=_,l(0,i)}return[i,o,a,u,f]}class Hi extends ie{constructor(e){super(),ae(this,e,Ri,Mi,se,{})}}const{Boolean:Ui}=xn;function Cl(r,e,l){const t=r.slice();t[15]=e[l].value,t[16]=e[l].label,t[17]=e[l].type;const n=Ji(t[15],t[4]);return t[18]=n,t}function qi(r){let e=(r[2].attribute||W("workflows.filter"))+"",l;return{c(){l=R(e)},l(t){l=H(t,e)},m(t,n){I(t,l,n)},p(t,n){n&4&&e!==(e=(t[2].attribute||W("workflows.filter"))+"")&&x(l,e)},d(t){t&&b(l)}}}function Sl(r){let e,l;return e=new We({props:{name:"filter"}}),{c(){L(e.$$.fragment)},l(t){T(e.$$.fragment,t)},m(t,n){D(e,t,n),l=!0},i(t){l||(g(e.$$.fragment,t),l=!0)},o(t){$(e.$$.fragment,t),l=!1},d(t){y(e,t)}}}function ji(r){let e,l,t=!r[2].attribute&&Sl();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&&g(t,1):(t=Sl(),t.c(),g(t,1),t.m(e.parentNode,e))},i(n){l||(g(t),l=!0)},o(n){$(t),l=!1},d(n){t&&t.d(n),n&&b(e)}}}function Nl(r){let e,l;return e=new Pe({props:{class:"whitespace-nowrap",disabled:!0,$$slots:{default:[zi]},$$scope:{ctx:r}}}),{c(){L(e.$$.fragment)},l(t){T(e.$$.fragment,t)},m(t,n){D(e,t,n),l=!0},p(t,n){const o={};n&2097152&&(o.$$scope={dirty:n,ctx:t}),e.$set(o)},i(t){l||(g(e.$$.fragment,t),l=!0)},o(t){$(e.$$.fragment,t),l=!1},d(t){y(e,t)}}}function zi(r){let e=W("common.no-results")+"",l;return{c(){l=R(e)},l(t){l=H(t,e)},m(t,n){I(t,l,n)},p:j,d(t){t&&b(l)}}}function Ki(r){let e=r[16]+"",l,t;return{c(){l=R(e),t=F()},l(n){l=H(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]+"")&&x(l,e)},d(n){n&&b(l),n&&b(t)}}}function Al(r){let e,l;function t(){return r[13](r[15],r[17])}return e=new Pe({props:{disabled:r[18],$$slots:{default:[Ki]},$$scope:{ctx:r}}}),e.$on("click",t),{c(){L(e.$$.fragment)},l(n){T(e.$$.fragment,n)},m(n,o){D(e,n,o),l=!0},p(n,o){r=n;const a={};o&18&&(a.disabled=r[18]),o&2097154&&(a.$$scope={dirty:o,ctx:r}),e.$set(a)},i(n){l||(g(e.$$.fragment,n),l=!0)},o(n){$(e.$$.fragment,n),l=!1},d(n){y(e,n)}}}function Qi(r){let e,l,t,n,o;function a(m){r[12](m)}let s={label:W("common.search"),labelHidden:!0,id:"filter-search",noBorder:!0,icon:"search",placeholder:W("common.search"),class:"mb-1"};r[0]!==void 0&&(s.value=r[0]),e=new ye({props:s}),ce.push(()=>_e(e,"value",a));let i=r[1],u=[];for(let m=0;m$(u[m],1,1,()=>{u[m]=null});let _=null;return i.length||(_=Nl(r)),{c(){L(e.$$.fragment),t=F();for(let m=0;ml=!1)),e.$set(d),c&274){i=m[1];let p;for(p=0;p{_=null}),J()):(_=Nl(m),_.c(),g(_,1),_.m(n.parentNode,n))}},i(m){if(!o){g(e.$$.fragment,m);for(let c=0;c(l.conditional==="="||l.conditional==="!=")&&l.attribute===r)}function Xi(r,e,l){let t,n,o,a,s,i,u;U(r,Nr,w=>l(10,o=w)),U(r,ge,w=>l(4,u=w));const{filter:f,activeQueryIndex:_,focusedElementId:m}=Ve(Be);U(r,f,w=>l(2,s=w)),U(r,_,w=>l(3,i=w)),U(r,m,w=>l(14,a=w));function c(w,v){l(0,d=""),f.set({...qe(),attribute:w,conditional:"=",type:v}),te(m,a=Hn({attribute:w,type:v}),a)}let d="";const p=()=>l(0,d="");function h(w){d=w,l(0,d)}const k=(w,v)=>{c(w,v)};return r.$$.update=()=>{r.$$.dirty&1024&&l(9,t=o.filter(({value:w,type:v})=>!Wn({attribute:w,type:v}))),r.$$.dirty&513&&l(1,n=d?t.filter(w=>w.value.toLowerCase().includes(d.toLowerCase())):t)},[d,n,s,i,u,f,_,m,c,t,o,p,h,k]}class Zi extends ie{constructor(e){super(),ae(this,e,Xi,Gi,se,{})}}function Ol(r,e,l){const t=r.slice();t[17]=e[l];const n=t[0].some(function(...a){return r[12](t[17],...a)})||!t[0].length&&t[17]==="All";return t[18]=n,t}function xi(r){let e=r[1].attribute+"",l;return{c(){l=R(e)},l(t){l=H(t,e)},m(t,n){I(t,l,n)},p(t,n){n&2&&e!==(e=t[1].attribute+"")&&x(l,e)},d(t){t&&b(l)}}}function ea(r){let e,l;return e=new Pt({props:{status:r[17]}}),{c(){L(e.$$.fragment)},l(t){T(e.$$.fragment,t)},m(t,n){D(e,t,n),l=!0},p:j,i(t){l||(g(e.$$.fragment,t),l=!0)},o(t){$(e.$$.fragment,t),l=!1},d(t){y(e,t)}}}function ta(r){let e,l;return e=new Oe({props:{key:"workflows.all-statuses"}}),{c(){L(e.$$.fragment)},l(t){T(e.$$.fragment,t)},m(t,n){D(e,t,n),l=!0},p:j,i(t){l||(g(e.$$.fragment,t),l=!0)},o(t){$(e.$$.fragment,t),l=!1},d(t){y(e,t)}}}function la(r){let e,l,t,n;const o=[ta,ea],a=[];function s(i,u){return i[17]==="All"?0:1}return e=s(r),l=a[e]=o[e](r),{c(){l.c(),t=X()},l(i){l.l(i),t=X()},m(i,u){a[e].m(i,u),I(i,t,u),n=!0},p(i,u){l.p(i,u)},i(i){n||(g(l),n=!0)},o(i){$(l),n=!1},d(i){a[e].d(i),i&&b(t)}}}function na(r){let e,l;function t(){return r[10](r[17])}return e=new Ft({props:{slot:"leading",checked:r[18],label:r[17],labelHidden:!0}}),e.$on("click",t),{c(){L(e.$$.fragment)},l(n){T(e.$$.fragment,n)},m(n,o){D(e,n,o),l=!0},p(n,o){r=n;const a={};o&1&&(a.checked=r[18]),e.$set(a)},i(n){l||(g(e.$$.fragment,n),l=!0)},o(n){$(e.$$.fragment,n),l=!1},d(n){y(e,n)}}}function Pl(r,e){let l,t,n;function o(){return e[11](e[17])}return t=new Pe({props:{"data-testid":e[17],$$slots:{leading:[na],default:[la]},$$scope:{ctx:e}}}),t.$on("click",o),{key:r,first:null,c(){l=X(),L(t.$$.fragment),this.h()},l(a){l=X(),T(t.$$.fragment,a),this.h()},h(){this.first=l},m(a,s){I(a,l,s),D(t,a,s),n=!0},p(a,s){e=a;const i={};s&2097153&&(i.$$scope={dirty:s,ctx:e}),t.$set(i)},i(a){n||(g(t.$$.fragment,a),n=!0)},o(a){$(t.$$.fragment,a),n=!1},d(a){a&&b(l),y(t,a)}}}function ra(r){let e=[],l=new Map,t,n,o,a=Jt;const s=i=>i[17];for(let i=0;il(8,o=E)),U(r,De,E=>l(13,s=E));const{filter:u,resetFilter:f}=Ve(Be);U(r,u,E=>l(1,a=E));const _=Ue(!0);U(r,_,E=>l(2,i=E));function m(){te(ge,o=t,o),Mt(s.url,o)}function c(E){return{...a,value:E}}function d(E){return E.length===1?[c(E[0].value)]:E.map((P,S)=>{const M=S===E.length-1?"":"OR";return{...P,operator:M}})}const p=E=>{if(E==="All")l(7,t=o.filter(P=>P.attribute!=="ExecutionStatus"));else if(n.find(P=>P.value===E)){const P=o.filter(S=>!Je(S.attribute));l(7,t=[...P,...d(n.filter(S=>S.value!==E))])}else if(!n.length)l(7,t=[...t,c(E)]);else{const P=t.filter(S=>!Je(S.attribute));l(7,t=[...P,...d([...n,c(E)])])}m()},h=()=>{i&&f()},k=E=>p(E),w=E=>{p(E)},v=(E,P)=>P.value===E;return r.$$.update=()=>{r.$$.dirty&256&&l(7,t=[...o]),r.$$.dirty&128&&l(0,n=t.filter(E=>Je(E.attribute)))},[n,a,i,u,f,_,p,t,o,h,k,w,v]}class sa extends ie{constructor(e){super(),ae(this,e,aa,ia,se,{})}}function ua(r){let e,l,t,n,o;e=new Et({props:{options:[{value:"=",label:W("common.equal-to")},{value:"!=",label:W("common.not-equal-to")}],inputId:"text-filter-search",noBorderLeft:!0}});function a(i){r[4](i)}let s={label:r[1].attribute,labelHidden:!0,id:"text-filter-search",type:"search",placeholder:`${W("common.enter")} ${r[1].attribute}`,icon:"search",class:"w-full",unroundLeft:!0};return r[0]!==void 0&&(s.value=r[0]),t=new ye({props:s}),ce.push(()=>_e(t,"value",a)),t.$on("keydown",r[3]),{c(){L(e.$$.fragment),l=F(),L(t.$$.fragment)},l(i){T(e.$$.fragment,i),l=V(i),T(t.$$.fragment,i)},m(i,u){D(e,i,u),I(i,l,u),D(t,i,u),o=!0},p(i,[u]){const f={};u&2&&(f.label=i[1].attribute),u&2&&(f.placeholder=`${W("common.enter")} ${i[1].attribute}`),!n&&u&1&&(n=!0,f.value=i[0],de(()=>n=!1)),t.$set(f)},i(i){o||(g(e.$$.fragment,i),g(t.$$.fragment,i),o=!0)},o(i){$(e.$$.fragment,i),$(t.$$.fragment,i),o=!1},d(i){y(e,i),i&&b(l),y(t,i)}}}function fa(r,e,l){let t;const{filter:n,handleSubmit:o}=Ve(Be);U(r,n,u=>l(1,t=u));let a=t.value;function s(u){u.key==="Enter"&&a!==""&&(u.preventDefault(),te(n,t.value=a,t),o())}function i(u){a=u,l(0,a)}return[a,t,n,s,i]}class ca extends ie{constructor(e){super(),ae(this,e,fa,ua,se,{})}}function ma(r){let e,l,t,n,o,a,s,i,u,f,_;const m=[pa,da],c=[];function d(k,w){return w&1&&(l=null),l==null&&(l=!!Je(k[0])),l?0:1}t=d(r,-1),n=c[t]=m[t](r);let p=r[0]&&Fl(r),h=r[2]&&Vl(r);return{c(){e=N("div"),n.c(),o=F(),p&&p.c(),a=F(),s=N("div"),h&&h.c(),this.h()},l(k){e=A(k,"DIV",{class:!0});var w=O(e);n.l(w),o=V(w),p&&p.l(w),w.forEach(b),a=V(k),s=A(k,"DIV",{class:!0});var v=O(s);h&&h.l(v),v.forEach(b),this.h()},h(){B(e,"class","flex items-center svelte-d4361j"),me(e,"filter",!r[2]),B(s,"class",i="flex flex-col sm:flex-row "+(r[2]?"w-full justify-between":"justify-end"))},m(k,w){I(k,e,w),c[t].m(e,null),C(e,o),p&&p.m(e,null),I(k,a,w),I(k,s,w),h&&h.m(s,null),u=!0,f||(_=fe(e,"keyup",r[9]),f=!0)},p(k,w){let v=t;t=d(k,w),t!==v&&(G(),$(c[v],1,1,()=>{c[v]=null}),J(),n=c[t],n||(n=c[t]=m[t](k),n.c()),g(n,1),n.m(e,o)),k[0]?p?(p.p(k,w),w&1&&g(p,1)):(p=Fl(k),p.c(),g(p,1),p.m(e,null)):p&&(G(),$(p,1,1,()=>{p=null}),J()),(!u||w&4)&&me(e,"filter",!k[2]),k[2]?h?(h.p(k,w),w&4&&g(h,1)):(h=Vl(k),h.c(),g(h,1),h.m(s,null)):h&&(G(),$(h,1,1,()=>{h=null}),J()),(!u||w&4&&i!==(i="flex flex-col sm:flex-row "+(k[2]?"w-full justify-between":"justify-end")))&&B(s,"class",i)},i(k){u||(g(n),g(p),g(h),u=!0)},o(k){$(n),$(p),$(h),u=!1},d(k){k&&b(e),c[t].d(),p&&p.d(),k&&b(a),k&&b(s),h&&h.d(),f=!1,_()}}}function _a(r){let e,l;return e=new yo({}),{c(){L(e.$$.fragment)},l(t){T(e.$$.fragment,t)},m(t,n){D(e,t,n),l=!0},p:j,i(t){l||(g(e.$$.fragment,t),l=!0)},o(t){$(e.$$.fragment,t),l=!1},d(t){y(e,t)}}}function da(r){let e,l;return e=new Zi({}),{c(){L(e.$$.fragment)},l(t){T(e.$$.fragment,t)},m(t,n){D(e,t,n),l=!0},i(t){l||(g(e.$$.fragment,t),l=!0)},o(t){$(e.$$.fragment,t),l=!1},d(t){y(e,t)}}}function pa(r){let e,l;return e=new sa({}),{c(){L(e.$$.fragment)},l(t){T(e.$$.fragment,t)},m(t,n){D(e,t,n),l=!0},i(t){l||(g(e.$$.fragment,t),l=!0)},o(t){$(e.$$.fragment,t),l=!1},d(t){y(e,t)}}}function Fl(r){let e,l,t,n,o,a,s,i,u;const f=[ka,$a,ga,ba,ha],_=[];function m(c,d){return d&3&&(e=null),d&1&&(l=null),d&3&&(t=null),d&3&&(n=null),d&3&&(o=null),e==null&&(e=!!ot({attribute:c[0],type:c[1]})),e?0:(l==null&&(l=!!Bo(c[0])),l?1:(t==null&&(t=!!Mn({attribute:c[0],type:c[1]})),t?2:(n==null&&(n=!!Rt({attribute:c[0],type:c[1]})),n?3:(o==null&&(o=!!Rn({attribute:c[0],type:c[1]})),o?4:-1))))}return~(a=m(r,-1))&&(s=_[a]=f[a](r)),{c(){s&&s.c(),i=X()},l(c){s&&s.l(c),i=X()},m(c,d){~a&&_[a].m(c,d),I(c,i,d),u=!0},p(c,d){let p=a;a=m(c,d),a!==p&&(s&&(G(),$(_[p],1,1,()=>{_[p]=null}),J()),~a?(s=_[a],s||(s=_[a]=f[a](c),s.c()),g(s,1),s.m(i.parentNode,i)):s=null)},i(c){u||(g(s),u=!0)},o(c){$(s),u=!1},d(c){~a&&_[a].d(c),c&&b(i)}}}function ha(r){let e,l,t,n,o,a;return l=new Fo({}),n=new mt({}),{c(){e=N("div"),L(l.$$.fragment),t=F(),L(n.$$.fragment),this.h()},l(s){e=A(s,"DIV",{class:!0});var i=O(e);T(l.$$.fragment,i),t=V(i),T(n.$$.fragment,i),i.forEach(b),this.h()},h(){B(e,"class","flex w-full items-center")},m(s,i){I(s,e,i),D(l,e,null),C(e,t),D(n,e,null),a=!0},i(s){a||(g(l.$$.fragment,s),g(n.$$.fragment,s),o||je(()=>{o=ze(e,et,{x:-100,duration:150}),o.start()}),a=!0)},o(s){$(l.$$.fragment,s),$(n.$$.fragment,s),a=!1},d(s){s&&b(e),y(l),y(n)}}}function ba(r){let e,l,t,n,o,a;return l=new hi({}),n=new mt({}),{c(){e=N("div"),L(l.$$.fragment),t=F(),L(n.$$.fragment),this.h()},l(s){e=A(s,"DIV",{class:!0});var i=O(e);T(l.$$.fragment,i),t=V(i),T(n.$$.fragment,i),i.forEach(b),this.h()},h(){B(e,"class","flex w-full items-center")},m(s,i){I(s,e,i),D(l,e,null),C(e,t),D(n,e,null),a=!0},i(s){a||(g(l.$$.fragment,s),g(n.$$.fragment,s),o||je(()=>{o=ze(e,et,{x:-100,duration:150}),o.start()}),a=!0)},o(s){$(l.$$.fragment,s),$(n.$$.fragment,s),a=!1},d(s){s&&b(e),y(l),y(n)}}}function ga(r){let e,l,t,n,o,a;return l=new Hi({}),n=new mt({}),{c(){e=N("div"),L(l.$$.fragment),t=F(),L(n.$$.fragment),this.h()},l(s){e=A(s,"DIV",{class:!0});var i=O(e);T(l.$$.fragment,i),t=V(i),T(n.$$.fragment,i),i.forEach(b),this.h()},h(){B(e,"class","flex w-full items-center")},m(s,i){I(s,e,i),D(l,e,null),C(e,t),D(n,e,null),a=!0},i(s){a||(g(l.$$.fragment,s),g(n.$$.fragment,s),o||je(()=>{o=ze(e,et,{x:-100,duration:150}),o.start()}),a=!0)},o(s){$(l.$$.fragment,s),$(n.$$.fragment,s),a=!1},d(s){s&&b(e),y(l),y(n)}}}function $a(r){let e,l,t,n,o,a;return l=new $i({}),n=new mt({}),{c(){e=N("div"),L(l.$$.fragment),t=F(),L(n.$$.fragment),this.h()},l(s){e=A(s,"DIV",{class:!0});var i=O(e);T(l.$$.fragment,i),t=V(i),T(n.$$.fragment,i),i.forEach(b),this.h()},h(){B(e,"class","flex w-full items-center")},m(s,i){I(s,e,i),D(l,e,null),C(e,t),D(n,e,null),a=!0},i(s){a||(g(l.$$.fragment,s),g(n.$$.fragment,s),o||je(()=>{o=ze(e,et,{x:-100,duration:150}),o.start()}),a=!0)},o(s){$(l.$$.fragment,s),$(n.$$.fragment,s),a=!1},d(s){s&&b(e),y(l),y(n)}}}function ka(r){let e,l,t,n,o,a;return l=new ca({}),n=new mt({}),{c(){e=N("div"),L(l.$$.fragment),t=F(),L(n.$$.fragment),this.h()},l(s){e=A(s,"DIV",{class:!0});var i=O(e);T(l.$$.fragment,i),t=V(i),T(n.$$.fragment,i),i.forEach(b),this.h()},h(){B(e,"class","flex w-full items-center")},m(s,i){I(s,e,i),D(l,e,null),C(e,t),D(n,e,null),a=!0},i(s){a||(g(l.$$.fragment,s),g(n.$$.fragment,s),o||je(()=>{o=ze(e,et,{x:-100,duration:150}),o.start()}),a=!0)},o(s){$(l.$$.fragment,s),$(n.$$.fragment,s),a=!1},d(s){s&&b(e),y(l),y(n)}}}function Vl(r){let e,l;return e=new tt({props:{variant:"ghost",$$slots:{default:[wa]},$$scope:{ctx:r}}}),e.$on("click",r[7]),{c(){L(e.$$.fragment)},l(t){T(e.$$.fragment,t)},m(t,n){D(e,t,n),l=!0},p(t,n){const o={};n&8388608&&(o.$$scope={dirty:n,ctx:t}),e.$set(o)},i(t){l||(g(e.$$.fragment,t),l=!0)},o(t){$(e.$$.fragment,t),l=!1},d(t){y(e,t)}}}function wa(r){let e=W("common.clear-all")+"",l;return{c(){l=R(e)},l(t){l=H(t,e)},m(t,n){I(t,l,n)},p:j,d(t){t&&b(l)}}}function va(r){let e,l,t,n,o,a,s,i,u,f;const _=[_a,ma],m=[];function c(h,k){return h[3]?0:1}t=c(r),n=m[t]=_[t](r);function d(h){r[14](h)}let p={"data-testid":"manual-search-toggle",label:W("workflows.view-search-input"),labelPosition:"left",id:"view-search-input"};return r[3]!==void 0&&(p.checked=r[3]),a=new Sr({props:p}),ce.push(()=>_e(a,"checked",d)),a.$on("change",r[15]),u=new Pi({}),{c(){e=N("div"),l=N("div"),n.c(),o=F(),L(a.$$.fragment),i=F(),L(u.$$.fragment),this.h()},l(h){e=A(h,"DIV",{class:!0});var k=O(e);l=A(k,"DIV",{class:!0});var w=O(l);n.l(w),o=V(w),T(a.$$.fragment,w),w.forEach(b),i=V(k),T(u.$$.fragment,k),k.forEach(b),this.h()},h(){B(l,"class","flex grow flex-col gap-4 sm:flex-row sm:items-center"),B(e,"class","flex grow flex-col")},m(h,k){I(h,e,k),C(e,l),m[t].m(l,null),C(l,o),D(a,l,null),C(e,i),D(u,e,null),f=!0},p(h,[k]){let w=t;t=c(h),t===w?m[t].p(h,k):(G(),$(m[w],1,1,()=>{m[w]=null}),J(),n=m[t],n?n.p(h,k):(n=m[t]=_[t](h),n.c()),g(n,1),n.m(l,o));const v={};!s&&k&8&&(s=!0,v.checked=h[3],de(()=>s=!1)),a.$set(v)},i(h){f||(g(n),g(a.$$.fragment,h),g(u.$$.fragment,h),f=!0)},o(h){$(n),$(a.$$.fragment,h),$(u.$$.fragment,h),f=!1},d(h){h&&b(e),m[t].d(),y(a),y(u)}}}const Be="filter-context";function Ia(r,e,l){let t,n,o,a,s,i,u,f,_,m,c;U(r,ge,Y=>l(11,u=Y)),U(r,De,Y=>l(13,_=Y)),U(r,Ze,Y=>l(18,m=Y)),U(r,Zt,Y=>l(3,c=Y));const d=Ue(qe());U(r,d,Y=>l(12,f=Y));const p=Ue(null);U(r,p,Y=>l(10,i=Y));const h=Ue("");U(r,h,Y=>l(17,s=Y)),er(Be,{filter:d,activeQueryIndex:p,handleSubmit:w,focusedElementId:h,resetFilter:S});function k(){const Y=On(Vn(u));Y&&Y===o?te(Ze,m=Date.now(),m):He({url:_.url,parameter:"query",value:Y,allowEmpty:!0})}function w(){i!==null?(te(ge,u[i]=f,u),te(p,i=null,i)):te(ge,u=[...u,f],u),d.set(qe()),k()}function v(){te(ge,u=[],u),k()}function E(){i!==null&&te(h,s=Hn({attribute:t,type:n}),s)}function P(){if(s){const Y=document.getElementById(s);Y&&(Y.focus(),Y instanceof HTMLButtonElement&&Y.click())}}tr(()=>{P()});function S(){p.set(null),d.set(qe())}function M(Y){Y.key==="Escape"&&!ot({attribute:t,type:n})&&S()}function Z(Y){c=Y,Zt.set(c)}const ee=()=>{S()};return r.$$.update=()=>{r.$$.dirty&4096&&l(0,{attribute:t,type:n}=f,t,(l(1,n),l(12,f))),r.$$.dirty&8192&&(o=_.url.searchParams.get("query")),r.$$.dirty&2049&&l(2,a=u.length&&!t),r.$$.dirty&1024&&E()},[t,n,a,c,d,p,h,v,S,M,i,u,f,_,Z,ee]}class Ea extends ie{constructor(e){super(),ae(this,e,Ia,va,se,{})}}function La(r){let e=r[0].toLocaleString()+"",l;return{c(){l=R(e)},l(t){l=H(t,e)},m(t,n){I(t,l,n)},p(t,n){n&1&&e!==(e=t[0].toLocaleString()+"")&&x(l,e)},d(t){t&&b(l)}}}function Ta(r){let e,l=r[0].toLocaleString()+"",t;return{c(){e=R("+"),t=R(l)},l(n){e=H(n,"+"),t=H(n,l)},m(n,o){I(n,e,o),I(n,t,o)},p(n,o){o&1&&l!==(l=n[0].toLocaleString()+"")&&x(t,l)},d(n){n&&b(e),n&&b(t)}}}function Da(r){let e;function l(o,a){if(o[0]>0)return Ta;if(o[0]<0)return La}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,a){n&&n.m(o,a),I(o,e,a)},p(o,a){t===(t=l(o))&&n?n.p(o,a):(n&&n.d(1),n=t&&t(o),n&&(n.c(),n.m(e.parentNode,e)))},d(o){n&&n.d(o),o&&b(e)}}}function ya(r){let e,l;return e=new tt({props:{size:"xs",variant:"ghost",leadingIcon:"retry",loading:r[1]||r[2],$$slots:{default:[Da]},$$scope:{ctx:r}}}),e.$on("click",r[4]),{c(){L(e.$$.fragment)},l(t){T(e.$$.fragment,t)},m(t,n){D(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||(g(e.$$.fragment,t),l=!0)},o(t){$(e.$$.fragment,t),l=!1},d(t){y(e,t)}}}function Ba(r,e,l){let t,n,o;U(r,dr,i=>l(1,t=i)),U(r,At,i=>l(2,n=i)),U(r,Ze,i=>l(3,o=i));let{count:a=0}=e;const s=()=>te(Ze,o=Date.now(),o);return r.$$set=i=>{"count"in i&&l(0,a=i.count)},[a,t,n,o,s]}class Ca extends ie{constructor(e){super(),ae(this,e,Ba,ya,se,{count:0})}}const Dt=""+new URL("../assets/empty-state-dark_2x.91ea3d8e.png",import.meta.url).href,Wl=""+new URL("../assets/empty-state-light_2x.212be1d9.png",import.meta.url).href;function Ml(r,e,l){const t=r.slice();return t[7]=e[l],t}const Sa=r=>({}),Rl=r=>({});function Na(r){let e,l,t,n,o,a;function s(c,d){return c[1]?Pa:Oa}let i=s(r),u=i(r);const f=[Wa,Va,Fa],_=[];function m(c,d){return c[2]?0:c[1]?1:2}return t=m(r),n=_[t]=f[t](r),{c(){e=N("h2"),u.c(),l=F(),n.c(),o=X(),this.h()},l(c){e=A(c,"H2",{class:!0});var d=O(e);u.l(d),d.forEach(b),l=V(c),n.l(c),o=X(),this.h()},h(){B(e,"class","text-lg font-medium")},m(c,d){I(c,e,d),u.m(e,null),I(c,l,d),_[t].m(c,d),I(c,o,d),a=!0},p(c,d){i===(i=s(c))&&u?u.p(c,d):(u.d(1),u=i(c),u&&(u.c(),u.m(e,null)));let p=t;t=m(c),t===p?_[t].p(c,d):(G(),$(_[p],1,1,()=>{_[p]=null}),J(),n=_[t],n?n.p(c,d):(n=_[t]=f[t](c),n.c()),g(n,1),n.m(o.parentNode,o))},i(c){a||(g(n),a=!0)},o(c){$(n),a=!1},d(c){c&&b(e),u.d(),c&&b(l),_[t].d(c),c&&b(o)}}}function Aa(r){let e,l;return e=new Ur({}),{c(){L(e.$$.fragment)},l(t){T(e.$$.fragment,t)},m(t,n){D(e,t,n),l=!0},p:j,i(t){l||(g(e.$$.fragment,t),l=!0)},o(t){$(e.$$.fragment,t),l=!1},d(t){y(e,t)}}}function Oa(r){let e=W("workflows.workflow-empty-state-title")+"",l;return{c(){l=R(e)},l(t){l=H(t,e)},m(t,n){I(t,l,n)},p:j,d(t){t&&b(l)}}}function Pa(r){let e=W("workflows.workflow-query-empty-state-title")+"",l;return{c(){l=R(e)},l(t){l=H(t,e)},m(t,n){I(t,l,n)},p:j,d(t){t&&b(l)}}}function Fa(r){let e,l,t=W("workflows.workflow-empty-state-description")+"",n,o,a,s,i,u,f;const _=r[5].cloud,m=ke(_,r,r[6],Rl);a=new Vt({props:{newTab:!0,href:"https://github.com/temporalio",$$slots:{default:[Ma]},$$scope:{ctx:r}}});let c=r[3],d=[];for(let h=0;h$(d[h],1,1,()=>{d[h]=null});return{c(){m&&m.c(),e=F(),l=N("p"),n=R(t),o=F(),L(a.$$.fragment),s=R("."),i=F(),u=N("ul");for(let h=0;h{c[k]=null}),J(),a=c[o],a?a.p(p,h):(a=c[o]=m[o](p),a.c()),g(a,1),a.m(n,null)),(!_||h&2&&!Yt(u.src,f=p[1]?Wl:Dt))&&B(u,"src",f)},i(p){_||(g(a),_=!0)},o(p){$(a),_=!1},d(p){b(e),p&&b(l),p&&b(t),c[o].d()}}}function qa(r,e,l){let t,n,o;U(r,De,f=>l(4,n=f)),U(r,pr,f=>l(2,o=f));let{$$slots:a={},$$scope:s}=e,{updating:i=!1}=e;const u=["samples-go","samples-java","samples-typescript","samples-python","samples-dotnet","samples-php"];return r.$$set=f=>{"updating"in f&&l(0,i=f.updating),"$$scope"in f&&l(6,s=f.$$scope)},r.$$.update=()=>{r.$$.dirty&16&&l(1,t=n.url.searchParams.get("query"))},[i,t,o,u,n,a,s]}class ja extends ie{constructor(e){super(),ae(this,e,qa,Ua,se,{updating:0})}}const za=r=>({visibleItems:r&256}),Ul=r=>({slot:"cloud",visibleItems:r[8].items});function ql(r,e,l){const t=r.slice();return t[23]=e[l],t}const Ka=r=>({visibleItems:r&256}),jl=r=>({visibleItems:r[8].items}),Qa=r=>({visibleItems:r&256}),zl=r=>({visibleItems:r[8].items}),Ya=r=>({visibleItems:r&256}),Kl=r=>({visibleItems:r[8].items});function Ql(r){let e,l;return e=new qr({}),{c(){L(e.$$.fragment)},l(t){T(e.$$.fragment,t)},m(t,n){D(e,t,n),l=!0},i(t){l||(g(e.$$.fragment,t),l=!0)},o(t){$(e.$$.fragment,t),l=!1},d(t){y(e,t)}}}function Ga(r){let e,l;return e=new ja({props:{updating:r[0],$$slots:{cloud:[Xa]},$$scope:{ctx:r}}}),{c(){L(e.$$.fragment)},l(t){T(e.$$.fragment,t)},m(t,n){D(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||(g(e.$$.fragment,t),l=!0)},o(t){$(e.$$.fragment,t),l=!1},d(t){y(e,t)}}}function Ja(r){let e,l,t,n,o,a,s,i,u,f,_;t=new zr({props:{label:r[1],parameter:ht,value:r[6],options:Nn}});let m=r[8].pageShortcuts,c=[];for(let p=0;p$(c[p],1,1,()=>{c[p]=null});return i=new Fe({props:{label:r[4],disabled:!r[8].hasPrevious,icon:"arrow-left"}}),i.$on("click",r[19]),f=new Fe({props:{label:r[3],disabled:!r[8].hasNext,icon:"arrow-right"}}),f.$on("click",r[20]),{c(){e=N("div"),l=N("div"),L(t.$$.fragment),n=F(),o=N("div");for(let p=0;p{s[_]=null}),J(),t=s[l],t?t.p(u,f):(t=s[l]=a[l](u),t.c()),g(t,1),t.m(n.parentNode,n))},i(u){o||(g(t),o=!0)},o(u){$(t),o=!1},d(u){s[l].d(u),u&&b(n)}}}function ts(r){let e,l,t,n,o,a,s,i,u,f,_;const m=r[17].caption,c=ke(m,r,r[22],Kl),d=r[17].headers,p=ke(d,r,r[22],zl);let h=r[0]&&Ql();const k=r[17].default,w=ke(k,r,r[22],jl),v=[Ja,Ga],E=[];function P(S,M){return S[8].items.length?0:1}return u=P(r),f=E[u]=v[u](r),{c(){e=N("div"),l=N("table"),c&&c.c(),t=F(),n=N("thead"),p&&p.c(),o=F(),h&&h.c(),a=F(),s=N("tbody"),w&&w.c(),i=F(),f.c(),this.h()},l(S){e=A(S,"DIV",{class:!0,style:!0});var M=O(e);l=A(M,"TABLE",{class:!0});var Z=O(l);c&&c.l(Z),t=V(Z),n=A(Z,"THEAD",{class:!0});var ee=O(n);p&&p.l(ee),o=V(ee),h&&h.l(ee),ee.forEach(b),a=V(Z),s=A(Z,"TBODY",{class:!0});var Y=O(s);w&&w.l(Y),Y.forEach(b),Z.forEach(b),i=V(M),f.l(M),M.forEach(b),this.h()},h(){B(n,"class","paginated-table-header svelte-5xhosh"),B(s,"class","paginated-table-body svelte-5xhosh"),B(l,"class","paginated-table svelte-5xhosh"),B(e,"class","paginated-table-wrapper svelte-5xhosh"),Gt(e,"max-height","calc(100vh - "+r[9]+"px)")},m(S,M){I(S,e,M),C(e,l),c&&c.m(l,null),C(l,t),C(l,n),p&&p.m(n,null),C(n,o),h&&h.m(n,null),C(l,a),C(l,s),w&&w.m(s,null),C(e,i),E[u].m(e,null),r[21](e),_=!0},p(S,[M]){c&&c.p&&(!_||M&4194560)&&we(c,m,S,S[22],_?Ie(m,S[22],M,Ya):ve(S[22]),Kl),p&&p.p&&(!_||M&4194560)&&we(p,d,S,S[22],_?Ie(d,S[22],M,Qa):ve(S[22]),zl),S[0]?h?M&1&&g(h,1):(h=Ql(),h.c(),g(h,1),h.m(n,null)):h&&(G(),$(h,1,1,()=>{h=null}),J()),w&&w.p&&(!_||M&4194560)&&we(w,k,S,S[22],_?Ie(k,S[22],M,Ka):ve(S[22]),jl);let Z=u;u=P(S),u===Z?E[u].p(S,M):(G(),$(E[Z],1,1,()=>{E[Z]=null}),J(),f=E[u],f?f.p(S,M):(f=E[u]=v[u](S),f.c()),g(f,1),f.m(e,null)),(!_||M&512)&&Gt(e,"max-height","calc(100vh - "+S[9]+"px)")},i(S){_||(g(c,S),g(p,S),g(h),g(w,S),g(f),_=!0)},o(S){$(c,S),$(p,S),$(h),$(w,S),$(f),_=!1},d(S){S&&b(e),c&&c.d(S),p&&p.d(S),h&&h.d(),w&&w.d(S),E[u].d(),r[21](null)}}}function ls(r,e,l){let t,n,o,a,s,i,u=j,f=()=>(u(),u=Bt(a,ne=>l(8,i=ne)),a),_;U(r,De,ne=>l(16,_=ne)),r.$$.on_destroy.push(()=>u());let{$$slots:m={},$$scope:c}=e;var d,p;let{items:h}=e,{updating:k=!1}=e,{perPageLabel:w}=e,{pageButtonLabel:v}=e,{nextPageButtonLabel:E}=e,{previousPageButtonLabel:P}=e,S;const M=ne=>{He({parameter:pt,value:ne,url:t})},Z=ne=>M(ne),ee=()=>M(i.currentPage-1),Y=()=>M(i.currentPage+1);function q(ne){ce[ne?"unshift":"push"](()=>{S=ne,l(5,S)})}return r.$$set=ne=>{"items"in ne&&l(11,h=ne.items),"updating"in ne&&l(0,k=ne.updating),"perPageLabel"in ne&&l(1,w=ne.perPageLabel),"pageButtonLabel"in ne&&l(2,v=ne.pageButtonLabel),"nextPageButtonLabel"in ne&&l(3,E=ne.nextPageButtonLabel),"previousPageButtonLabel"in ne&&l(4,P=ne.previousPageButtonLabel),"$$scope"in ne&&l(22,c=ne.$$scope)},r.$$.update=()=>{r.$$.dirty&65536&&l(15,t=_.url),r.$$.dirty&36864&&l(6,n=l(12,d=t.searchParams.get(ht))!==null&&d!==void 0?d:String(al)),r.$$.dirty&40960&&l(14,o=l(13,p=t.searchParams.get(pt))!==null&&p!==void 0?p:"1"),r.$$.dirty&18496&&f(l(7,a=jr(h,n,o))),r.$$.dirty&32832&&(parseInt(n,10)>parseInt(sl,10)?He({parameter:ht,value:sl,url:t}):Nn.includes(n)||He({parameter:ht,value:al,url:t})),r.$$.dirty&49408&&(i.totalPages&&parseInt(o,10)>i.totalPages?He({parameter:pt,value:i.totalPages,url:t}):(o===null||parseInt(o,10)<0)&&He({parameter:pt,value:"1",url:t})),r.$$.dirty&16576&&(o&&a.jumpToPage(o),n&&a.adjustPageSize(n)),r.$$.dirty&32&&l(9,s=S!=null&&S.offsetTop?(S==null?void 0:S.offsetTop)+32:0)},[k,w,v,E,P,S,n,a,i,s,M,h,d,p,o,t,_,m,Z,ee,Y,q,c]}class ns extends ie{constructor(e){super(),ae(this,e,ls,ts,se,{items:11,updating:0,perPageLabel:1,pageButtonLabel:2,nextPageButtonLabel:3,previousPageButtonLabel:4})}}const rs=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}],os=[{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}],qn=r=>r.label!=="Parent Workflow ID",is=()=>{let r;try{const e=window.localStorage.getItem("workflow-table-columns"),l=JSON.parse(e);e&&(l!=null&&l.length)?r=l.filter(qn):r=Qe}catch{r=Qe}return r},St=An("namespace-workflow-table-columns",{}),Lt=Ye([Kr,De,St],([r,e,l])=>{const t={},n=(s,i)=>{var f;if(!((f=s==null?void 0:s[i])!=null&&f.length))return s[i]=[...is()],s[i];const u=s[i].filter(qn);return u.length!==s[i].length&&(s[i]=u,St.set(s)),s[i]},o=(r==null?void 0:r.reduce((s,{namespaceInfo:{name:i}})=>({...s,[i]:n(l,i)}),t))??{},{namespace:a}=e.params;return o[a]?o:{...o,[a]:n(l,a)}});An("workflow-table-pinned-columns-width");const as=r=>Ye(Lt,e=>[...Qe,...os].filter(l=>{var t;return!((t=e[r])!=null&&t.some(n=>n.label===l.label))})),ss=r=>Ye([Cn,Lt],([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}))),us=(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:u})=>u===l),a=n[o].pinned;let s=-1;for(let u=n.length-1;u>=0;u--)if(n[u].pinned){s=u;break}const i=[...n];return i[o].pinned=!a,o>s&&!a?i.splice(s+1,0,i.splice(o,1)[0]):o=0;u--)if(o[u].pinned){s=u;break}const i=[...o];return t<=s&&!a?i[l].pinned=!0:t>s&&a&&(i[l].pinned=!1),i.splice(t,0,i.splice(l,1)[0]),{...e,[n]:i.map((u,f)=>f>rs-1?{...u,pinned:!1}:u)}}default:return e}},qt=r=>{St.update(e=>us(r,e))},Gl=(r,e)=>{qt({type:"WORKFLOW_COLUMN.ADD",payload:{label:r,namespace:e}})},fs=(r,e)=>{qt({type:"WORKFLOW_COLUMN.REMOVE",payload:{label:r,namespace:e}})},cs=(r,e,l)=>{qt({type:"WORKFLOW_COLUMN.MOVE",payload:{from:r,to:e,namespace:l}})};function Jl(r){let e,l,t,n,o;return l=new Fe({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 Fe({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"),L(l.$$.fragment),t=F(),L(n.$$.fragment),this.h()},l(a){e=A(a,"DIV",{class:!0});var s=O(e);T(l.$$.fragment,s),t=V(s),T(n.$$.fragment,s),s.forEach(b),this.h()},h(){B(e,"class","flex items-center")},m(a,s){I(a,e,s),D(l,e,null),C(e,t),D(n,e,null),o=!0},p(a,s){const i={};s&32&&(i.disabled=a[5]===0),s&2&&(i["data-testid"]="orderable-list-item-"+a[1]+"-move-up-button"),s&128&&(i.label=a[7]),l.$set(i);const u={};s&96&&(u.disabled=a[5]===a[6]-1),s&2&&(u["data-testid"]="orderable-list-item-"+a[1]+"-move-down-button"),s&256&&(u.label=a[8]),n.$set(u)},i(a){o||(g(l.$$.fragment,a),g(n.$$.fragment,a),o=!0)},o(a){$(l.$$.fragment,a),$(n.$$.fragment,a),o=!1},d(a){a&&b(e),y(l),y(n)}}}function Xl(r){let e,l,t,n;const o=[_s,ms],a=[];function s(i,u){return i[3]?0:1}return e=s(r),l=a[e]=o[e](r),{c(){l.c(),t=X()},l(i){l.l(i),t=X()},m(i,u){a[e].m(i,u),I(i,t,u),n=!0},p(i,u){let f=e;e=s(i),e===f?a[e].p(i,u):(G(),$(a[f],1,1,()=>{a[f]=null}),J(),l=a[e],l?l.p(i,u):(l=a[e]=o[e](i),l.c()),g(l,1),l.m(t.parentNode,t))},i(i){n||(g(l),n=!0)},o(i){$(l),n=!1},d(i){a[e].d(i),i&&b(t)}}}function ms(r){let e,l;return e=new Fe({props:{icon:"pin","data-testid":"orderable-list-item-"+r[1]+"-pin-button",label:r[9]}}),e.$on("click",r[22]),{c(){L(e.$$.fragment)},l(t){T(e.$$.fragment,t)},m(t,n){D(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||(g(e.$$.fragment,t),l=!0)},o(t){$(e.$$.fragment,t),l=!1},d(t){y(e,t)}}}function _s(r){let e,l;return e=new Fe({props:{icon:"pin-filled","data-testid":"orderable-list-item-"+r[1]+"-unpin-button",label:r[10]}}),e.$on("click",r[21]),{c(){L(e.$$.fragment)},l(t){T(e.$$.fragment,t)},m(t,n){D(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||(g(e.$$.fragment,t),l=!0)},o(t){$(e.$$.fragment,t),l=!1},d(t){y(e,t)}}}function Zl(r){let e,l,t,n;const o=[ps,ds],a=[];function s(i,u){return i[0]?0:1}return e=s(r),l=a[e]=o[e](r),{c(){l.c(),t=X()},l(i){l.l(i),t=X()},m(i,u){a[e].m(i,u),I(i,t,u),n=!0},p(i,u){let f=e;e=s(i),e===f?a[e].p(i,u):(G(),$(a[f],1,1,()=>{a[f]=null}),J(),l=a[e],l?l.p(i,u):(l=a[e]=o[e](i),l.c()),g(l,1),l.m(t.parentNode,t))},i(i){n||(g(l),n=!0)},o(i){$(l),n=!1},d(i){a[e].d(i),i&&b(t)}}}function ds(r){let e,l;return e=new Fe({props:{icon:"hyphen","data-testid":"orderable-list-item-"+r[1]+"-remove-button",label:r[12]}}),e.$on("click",r[24]),{c(){L(e.$$.fragment)},l(t){T(e.$$.fragment,t)},m(t,n){D(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||(g(e.$$.fragment,t),l=!0)},o(t){$(e.$$.fragment,t),l=!1},d(t){y(e,t)}}}function ps(r){let e,l;return e=new Fe({props:{icon:"add","data-testid":"orderable-list-item-"+r[1]+"-add-button",label:r[11]}}),e.$on("click",r[23]),{c(){L(e.$$.fragment)},l(t){T(e.$$.fragment,t)},m(t,n){D(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||(g(e.$$.fragment,t),l=!0)},o(t){$(e.$$.fragment,t),l=!1},d(t){y(e,t)}}}function hs(r){let e,l,t,n,o,a,s,i,u,f,_,m,c,d=!r[0]&&!r[4]&&Jl(r),p=!r[0]&&!r[4]&&r[5]<=r[2]-1&&Xl(r),h=!r[4]&&Zl(r);return{c(){e=N("li"),l=N("div"),d&&d.c(),t=F(),n=R(r[1]),o=F(),p&&p.c(),a=F(),h&&h.c(),u=F(),f=N("hr"),this.h()},l(k){e=A(k,"LI",{draggable:!0,class:!0,"data-testid":!0});var w=O(e);l=A(w,"DIV",{class:!0});var v=O(l);d&&d.l(v),t=V(v),n=H(v,r[1]),o=V(v),p&&p.l(v),v.forEach(b),a=V(w),h&&h.l(w),w.forEach(b),u=V(k),f=A(k,"HR",{class:!0}),this.h()},h(){B(l,"class","flex flex-row items-center gap-2"),B(e,"draggable",s=!r[0]&&!r[4]),B(e,"class","orderable-item group svelte-1btkzzb"),B(e,"data-testid",i="orderable-list-item-"+r[1]),me(e,"readonly",r[4]),B(f,"class","svelte-1btkzzb")},m(k,w){I(k,e,w),C(e,l),d&&d.m(l,null),C(l,t),C(l,n),C(l,o),p&&p.m(l,null),C(e,a),h&&h.m(e,null),I(k,u,w),I(k,f,w),_=!0,m||(c=[fe(e,"dragstart",r[25]),fe(e,"drop",nt(r[26])),fe(e,"dragenter",Tt(nt(r[16]))),fe(e,"dragleave",Tt(nt(r[17]))),fe(e,"dragover",Tt(nt(r[18])))],m=!0)},p(k,[w]){!k[0]&&!k[4]?d?(d.p(k,w),w&17&&g(d,1)):(d=Jl(k),d.c(),g(d,1),d.m(l,t)):d&&(G(),$(d,1,1,()=>{d=null}),J()),(!_||w&2)&&x(n,k[1]),!k[0]&&!k[4]&&k[5]<=k[2]-1?p?(p.p(k,w),w&53&&g(p,1)):(p=Xl(k),p.c(),g(p,1),p.m(l,null)):p&&(G(),$(p,1,1,()=>{p=null}),J()),k[4]?h&&(G(),$(h,1,1,()=>{h=null}),J()):h?(h.p(k,w),w&16&&g(h,1)):(h=Zl(k),h.c(),g(h,1),h.m(e,null)),(!_||w&17&&s!==(s=!k[0]&&!k[4]))&&B(e,"draggable",s),(!_||w&2&&i!==(i="orderable-list-item-"+k[1]))&&B(e,"data-testid",i),(!_||w&16)&&me(e,"readonly",k[4])},i(k){_||(g(d),g(p),g(h),_=!0)},o(k){$(d),$(p),$(h),_=!1},d(k){k&&b(e),d&&d.d(),p&&p.d(),h&&h.d(),k&&b(u),k&&b(f),m=!1,st(c)}}}function bs(r,e,l){const t=at();let{static:n=!1}=e,{label:o}=e,{maxPinnedItems:a=void 0}=e,{pinned:s=!1}=e,{readonly:i=!1}=e,{index:u=0}=e,{totalItems:f=0}=e,{moveUpButtonLabel:_=""}=e,{moveDownButtonLabel:m=""}=e,{pinButtonLabel:c=""}=e,{unpinButtonLabel:d=""}=e,{addButtonLabel:p=""}=e,{removeButtonLabel:h=""}=e;const k=(z,pe)=>{n||i||(z.dataTransfer.setData("text/plain",pe.toString()),z.dataTransfer.dropEffect="move")},w=(z,pe)=>{z.currentTarget.classList.remove("dragging-over");const ue=parseInt(z.dataTransfer.getData("text/plain"));t("moveItem",{from:ue,to:pe})},v=z=>z.currentTarget.classList.add("dragging-over"),E=z=>z.currentTarget.classList.remove("dragging-over");function P(z){Re.call(this,r,z)}const S=()=>t("moveItem",{from:u,to:u-1}),M=()=>t("moveItem",{from:u,to:u+1}),Z=()=>t("pinItem"),ee=()=>t("pinItem"),Y=()=>t("addItem"),q=()=>t("removeItem"),ne=z=>k(z,u),oe=z=>w(z,u);return r.$$set=z=>{"static"in z&&l(0,n=z.static),"label"in z&&l(1,o=z.label),"maxPinnedItems"in z&&l(2,a=z.maxPinnedItems),"pinned"in z&&l(3,s=z.pinned),"readonly"in z&&l(4,i=z.readonly),"index"in z&&l(5,u=z.index),"totalItems"in z&&l(6,f=z.totalItems),"moveUpButtonLabel"in z&&l(7,_=z.moveUpButtonLabel),"moveDownButtonLabel"in z&&l(8,m=z.moveDownButtonLabel),"pinButtonLabel"in z&&l(9,c=z.pinButtonLabel),"unpinButtonLabel"in z&&l(10,d=z.unpinButtonLabel),"addButtonLabel"in z&&l(11,p=z.addButtonLabel),"removeButtonLabel"in z&&l(12,h=z.removeButtonLabel)},[n,o,a,s,i,u,f,_,m,c,d,p,h,t,k,w,v,E,P,S,M,Z,ee,Y,q,ne,oe]}class Ge extends ie{constructor(e){super(),ae(this,e,bs,hs,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 gs=r=>({}),xl=r=>({});function $s(r){let e;return{c(){e=R("Items")},l(l){e=H(l,"Items")},m(l,t){I(l,e,t)},d(l){l&&b(e)}}}function ks(r){let e,l;return e=new Ge({props:{readonly:!0,label:"No Items",pinned:!1}}),{c(){L(e.$$.fragment)},l(t){T(e.$$.fragment,t)},m(t,n){D(e,t,n),l=!0},p:j,i(t){l||(g(e.$$.fragment,t),l=!0)},o(t){$(e.$$.fragment,t),l=!1},d(t){y(e,t)}}}function ws(r){let e,l,t,n,o;const a=r[1].heading,s=ke(a,r,r[0],xl),i=s||$s(),u=r[1].default,f=ke(u,r,r[0],null),_=f||ks();return{c(){e=N("div"),l=N("h4"),i&&i.c(),t=F(),n=N("ol"),_&&_.c(),this.h()},l(m){e=A(m,"DIV",{class:!0});var c=O(e);l=A(c,"H4",{class:!0});var d=O(l);i&&i.l(d),d.forEach(b),t=V(c),n=A(c,"OL",{class:!0});var p=O(n);_&&_.l(p),p.forEach(b),c.forEach(b),this.h()},h(){B(l,"class","orderable-heading svelte-cheqnz"),B(n,"class","orderable-list svelte-cheqnz"),B(e,"class","orderable-section svelte-cheqnz")},m(m,c){I(m,e,c),C(e,l),i&&i.m(l,null),C(e,t),C(e,n),_&&_.m(n,null),o=!0},p(m,[c]){s&&s.p&&(!o||c&1)&&we(s,a,m,m[0],o?Ie(a,m[0],c,gs):ve(m[0]),xl),f&&f.p&&(!o||c&1)&&we(f,u,m,m[0],o?Ie(u,m[0],c,null):ve(m[0]),null)},i(m){o||(g(i,m),g(_,m),o=!0)},o(m){$(i,m),$(_,m),o=!1},d(m){m&&b(e),i&&i.d(m),_&&_.d(m)}}}function vs(r,e,l){let{$$slots:t={},$$scope:n}=e;return r.$$set=o=>{"$$scope"in o&&l(0,n=o.$$scope)},[n,t]}let yt=class extends ie{constructor(e){super(),ae(this,e,vs,ws,se,{})}};function en(r,e,l){const t=r.slice();return t[12]=e[l].label,t}function tn(r,e,l){const t=r.slice();return t[12]=e[l].label,t}function ln(r,e,l){const t=r.slice();return t[12]=e[l].label,t[18]=l,t}function nn(r){let e,l;return e=new Ge({props:{readonly:!0,label:W("workflows.no-headings-in-view")}}),{c(){L(e.$$.fragment)},l(t){T(e.$$.fragment,t)},m(t,n){D(e,t,n),l=!0},p:j,i(t){l||(g(e.$$.fragment,t),l=!0)},o(t){$(e.$$.fragment,t),l=!1},d(t){y(e,t)}}}function rn(r,e){let l,t,n;function o(){return e[9](e[12])}return t=new Ge({props:{index:e[18],label:e[12],totalItems:e[3].length,addButtonLabel:W("workflows.add-column-label",{column:e[12]}),removeButtonLabel:W("workflows.remove-column-label",{column:e[12]}),moveUpButtonLabel:W("workflows.move-column-up-label",{column:e[12]}),moveDownButtonLabel:W("workflows.move-column-down-label",{column:e[12]}),pinButtonLabel:W("workflows.pin-column-label",{column:e[12]}),unpinButtonLabel:W("workflows.unpin-column-label",{column:e[12]})}}),t.$on("moveItem",e[8]),t.$on("removeItem",o),{key:r,first:null,c(){l=X(),L(t.$$.fragment),this.h()},l(a){l=X(),T(t.$$.fragment,a),this.h()},h(){this.first=l},m(a,s){I(a,l,s),D(t,a,s),n=!0},p(a,s){e=a;const i={};s&8&&(i.index=e[18]),s&8&&(i.label=e[12]),s&8&&(i.totalItems=e[3].length),s&8&&(i.addButtonLabel=W("workflows.add-column-label",{column:e[12]})),s&8&&(i.removeButtonLabel=W("workflows.remove-column-label",{column:e[12]})),s&8&&(i.moveUpButtonLabel=W("workflows.move-column-up-label",{column:e[12]})),s&8&&(i.moveDownButtonLabel=W("workflows.move-column-down-label",{column:e[12]})),s&8&&(i.pinButtonLabel=W("workflows.pin-column-label",{column:e[12]})),s&8&&(i.unpinButtonLabel=W("workflows.unpin-column-label",{column:e[12]})),t.$set(i)},i(a){n||(g(t.$$.fragment,a),n=!0)},o(a){$(t.$$.fragment,a),n=!1},d(a){a&&b(l),y(t,a)}}}function Is(r){let e=[],l=new Map,t,n,o=r[3];const a=i=>i[12];for(let i=0;i{s=null}),J()):(s=nn(),s.c(),g(s,1),s.m(t.parentNode,t)))},i(i){if(!n){for(let u=0;u$(n[s],1,1,()=>{n[s]=null});let a=null;return t.length||(a=on()),{c(){for(let s=0;s{a=null}),J()):(a=on(),a.c(),g(a,1),a.m(e.parentNode,e))}},i(s){if(!l){for(let i=0;i$(n[s],1,1,()=>{n[s]=null});let a=null;return t.length||(a=sn()),{c(){for(let s=0;s{a=null}),J()):(a=sn(),a.c(),g(a,1),a.m(e.parentNode,e))}},i(s){if(!l){for(let i=0;i(i(),i=Bt(n,v=>l(4,s=v)),n),f,_=j,m=()=>(_(),_=Bt(o,v=>l(5,f=v)),o);U(r,Lt,v=>l(7,a=v)),r.$$.on_destroy.push(()=>i()),r.$$.on_destroy.push(()=>_());var c;let{namespace:d}=e;const p=v=>cs(v.detail.from,v.detail.to,d),h=v=>fs(v,d),k=v=>Gl(v,d),w=v=>Gl(v,d);return r.$$set=v=>{"namespace"in v&&l(0,d=v.namespace)},r.$$.update=()=>{r.$$.dirty&193&&l(3,t=l(6,c=a==null?void 0:a[d])!==null&&c!==void 0?c:[]),r.$$.dirty&1&&u(l(2,n=as(d))),r.$$.dirty&1&&m(l(1,o=ss(d)))},[d,o,n,t,s,f,c,a,p,h,k,w]}class Ss extends ie{constructor(e){super(),ae(this,e,Cs,Bs,se,{namespace:0})}}const fn=(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]}`},Ns={WorkflowId:"id",WorkflowType:"name",RunId:"runId"};function As(r){let e;return{c(){e=R(r[2])},l(l){e=H(l,r[2])},m(l,t){I(l,e,t)},p(l,t){t&4&&x(e,l[2])},d(l){l&&b(e)}}}function Os(r){let e,l,t,n;return e=new Vt({props:{href:r[3],$$slots:{default:[As]},$$scope:{ctx:r}}}),t=new $r({props:{copyIconTitle:W("common.copy-icon-title"),copySuccessIconTitle:W("common.copy-success-icon-title"),filterIconTitle:W("common.filter-workflows"),show:r[1],content:r[2],onFilter:r[5],filtered:r[4].some(r[9])}}),{c(){L(e.$$.fragment),l=F(),L(t.$$.fragment)},l(o){T(e.$$.fragment,o),l=V(o),T(t.$$.fragment,o)},m(o,a){D(e,o,a),I(o,l,a),D(t,o,a),n=!0},p(o,[a]){const s={};a&8&&(s.href=o[3]),a&1028&&(s.$$scope={dirty:a,ctx:o}),e.$set(s);const i={};a&2&&(i.show=o[1]),a&4&&(i.content=o[2]),a&21&&(i.filtered=o[4].some(o[9])),t.$set(i)},i(o){n||(g(e.$$.fragment,o),g(t.$$.fragment,o),n=!0)},o(o){$(e.$$.fragment,o),$(t.$$.fragment,o),n=!1},d(o){y(e,o),o&&b(l),y(t,o)}}}function Ps(r,e,l){let t,n,o,a,s;U(r,ge,c=>l(4,a=c)),U(r,De,c=>l(8,s=c));let{attribute:i}=e,{workflow:u}=e,{filterOrCopyButtonsVisible:f=!1}=e;const _=()=>{const c=a.find(p=>p.attribute===i),d=()=>a.filter(p=>p.attribute!==i);if(c)te(ge,a=[...d()],a);else{const p={attribute:i,type:"Keyword",value:t,conditional:"=",operator:"",parenthesis:""};te(ge,a=[...d(),p],a)}Mt(s.url,a)},m=c=>c.attribute===i&&c.value===t;return r.$$set=c=>{"attribute"in c&&l(0,i=c.attribute),"workflow"in c&&l(6,u=c.workflow),"filterOrCopyButtonsVisible"in c&&l(1,f=c.filterOrCopyButtonsVisible)},r.$$.update=()=>{r.$$.dirty&65&&l(2,t=u[Ns[i]]),r.$$.dirty&256&&l(7,n=s.params.namespace),r.$$.dirty&192&&l(3,o=Yr({namespace:n,workflow:u.id,run:u.runId}))},[i,f,t,o,a,_,u,n,s,m]}class jt extends ie{constructor(e){super(),ae(this,e,Ps,Os,se,{attribute:0,workflow:6,filterOrCopyButtonsVisible:1})}}function Fs(r){const e=r.slice(),l=e[0].searchAttributes.indexedFields[e[2]];return e[10]=l,e}function Vs(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 Ws(r){let e,l,t,n,o;const a=[Zs,Xs,Js,Gs,Ys,Qs,Ks,zs,js,qs,Us,Hs,Rs],s=[];function i(f,_){return _&5&&(l=null),f[2]==="Status"?0:f[2]==="End"?1:f[2]==="Start"?2:f[2]==="Task Queue"?3:f[2]==="Parent Namespace"?4:f[2]==="History Size"?5:f[2]==="State Transitions"?6:f[2]==="Execution Time"?7:f[2]==="Execution Duration"?8:f[2]==="History Length"?9:f[2]==="Scheduled By ID"?10:f[2]==="Scheduled Start Time"?11:(l==null&&(l=!!(Ar(f[2])&&Or(f[0],f[2]))),l?12:-1)}function u(f,_){return _===11?Vs(f):_===12?Fs(f):f}return~(t=i(r,-1))&&(n=s[t]=a[t](u(r,t))),{c(){e=N("td"),n&&n.c(),this.h()},l(f){e=A(f,"TD",{class:!0,"data-testid":!0});var _=O(e);n&&n.l(_),_.forEach(b),this.h()},h(){B(e,"class","workflows-summary-table-body-cell svelte-qupenl"),B(e,"data-testid","workflows-summary-table-body-cell")},m(f,_){I(f,e,_),~t&&s[t].m(e,null),o=!0},p(f,_){let m=t;t=i(f,_),t===m?~t&&s[t].p(u(f,t),_):(n&&(G(),$(s[m],1,1,()=>{s[m]=null}),J()),~t?(n=s[t],n?n.p(u(f,t),_):(n=s[t]=a[t](u(f,t)),n.c()),g(n,1),n.m(e,null)):n=null)},i(f){o||(g(n),o=!0)},o(f){$(n),o=!1},d(f){f&&b(e),~t&&s[t].d()}}}function Ms(r){let e,l,t,n,o,a;const s=[ou,ru,nu],i=[];function u(f,_){return f[2]==="Type"?0:f[2]==="Workflow ID"?1:f[2]==="Run ID"?2:-1}return~(l=u(r))&&(t=i[l]=s[l](r)),{c(){e=N("td"),t&&t.c(),this.h()},l(f){e=A(f,"TD",{class:!0,"data-testid":!0});var _=O(e);t&&t.l(_),_.forEach(b),this.h()},h(){B(e,"class","workflows-summary-table-body-cell filterable svelte-qupenl"),B(e,"data-testid","workflows-summary-table-body-cell")},m(f,_){I(f,e,_),~l&&i[l].m(e,null),n=!0,o||(a=[fe(e,"mouseover",r[6]),fe(e,"focus",r[6]),fe(e,"focusin",r[6]),fe(e,"focusout",r[8]),fe(e,"mouseleave",r[7]),fe(e,"blur",r[7])],o=!0)},p(f,_){let m=l;l=u(f),l===m?~l&&i[l].p(f,_):(t&&(G(),$(i[m],1,1,()=>{i[m]=null}),J()),~l?(t=i[l],t?t.p(f,_):(t=i[l]=s[l](f),t.c()),g(t,1),t.m(e,null)):t=null)},i(f){n||(g(t),n=!0)},o(f){$(t),n=!1},d(f){f&&b(e),~l&&i[l].d(),o=!1,st(a)}}}function Rs(r){let e,l,t,n;const o=[tu,eu,xs],a=[];function s(i,u){return i[5][i[2]]==="Datetime"&&typeof i[10]=="string"?0:i[5][i[2]]==="Bool"?1:2}return e=s(r),l=a[e]=o[e](r),{c(){l.c(),t=X()},l(i){l.l(i),t=X()},m(i,u){a[e].m(i,u),I(i,t,u),n=!0},p(i,u){let f=e;e=s(i),e===f?a[e].p(i,u):(G(),$(a[f],1,1,()=>{a[f]=null}),J(),l=a[e],l?l.p(i,u):(l=a[e]=o[e](i),l.c()),g(l,1),l.m(t.parentNode,t))},i(i){n||(g(l),n=!0)},o(i){$(l),n=!1},d(i){a[e].d(i),i&&b(t)}}}function Hs(r){let e=(r[10]&&typeof r[10]=="string"?Ee(r[10],r[3],{relative:r[4]}):"")+"",l;return{c(){l=R(e)},l(t){l=H(t,e)},m(t,n){I(t,l,n)},p(t,n){n&25&&e!==(e=(t[10]&&typeof t[10]=="string"?Ee(t[10],t[3],{relative:t[4]}):"")+"")&&x(l,e)},i:j,o:j,d(t){t&&b(l)}}}function Us(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=R(e)},l(o){l=H(o,e)},m(o,a){I(o,l,a)},p(o,a){var s,i;a&1&&e!==(e=(((i=(s=o[0].searchAttributes)==null?void 0:s.indexedFields)==null?void 0:i.TemporalScheduledById)??"")+"")&&x(l,e)},i:j,o:j,d(o){o&&b(l)}}}function qs(r){let e=(parseInt(r[0].historyEvents,10)>0?r[0].historyEvents:"")+"",l;return{c(){l=R(e)},l(t){l=H(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:"")+"")&&x(l,e)},i:j,o:j,d(t){t&&b(l)}}}function js(r){let e=el({start:r[0].startTime,end:r[0].endTime,includeMillisecondsForUnderSecond:!0})+"",l;return{c(){l=R(e)},l(t){l=H(t,e)},m(t,n){I(t,l,n)},p(t,n){n&1&&e!==(e=el({start:t[0].startTime,end:t[0].endTime,includeMillisecondsForUnderSecond:!0})+"")&&x(l,e)},i:j,o:j,d(t){t&&b(l)}}}function zs(r){let e=Ee(r[0].executionTime,r[3],{relative:r[4]})+"",l;return{c(){l=R(e)},l(t){l=H(t,e)},m(t,n){I(t,l,n)},p(t,n){n&25&&e!==(e=Ee(t[0].executionTime,t[3],{relative:t[4]})+"")&&x(l,e)},i:j,o:j,d(t){t&&b(l)}}}function Ks(r){let e=(parseInt(r[0].stateTransitionCount,10)>0?r[0].stateTransitionCount:"")+"",l;return{c(){l=R(e)},l(t){l=H(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:"")+"")&&x(l,e)},i:j,o:j,d(t){t&&b(l)}}}function Qs(r){let e=fn(parseInt(r[0].historySizeBytes,10))+"",l;return{c(){l=R(e)},l(t){l=H(t,e)},m(t,n){I(t,l,n)},p(t,n){n&1&&e!==(e=fn(parseInt(t[0].historySizeBytes,10))+"")&&x(l,e)},i:j,o:j,d(t){t&&b(l)}}}function Ys(r){let e=r[0].parentNamespaceId+"",l;return{c(){l=R(e)},l(t){l=H(t,e)},m(t,n){I(t,l,n)},p(t,n){n&1&&e!==(e=t[0].parentNamespaceId+"")&&x(l,e)},i:j,o:j,d(t){t&&b(l)}}}function Gs(r){let e=r[0].taskQueue+"",l;return{c(){l=R(e)},l(t){l=H(t,e)},m(t,n){I(t,l,n)},p(t,n){n&1&&e!==(e=t[0].taskQueue+"")&&x(l,e)},i:j,o:j,d(t){t&&b(l)}}}function Js(r){let e=Ee(r[0].startTime,r[3],{relative:r[4]})+"",l;return{c(){l=R(e)},l(t){l=H(t,e)},m(t,n){I(t,l,n)},p(t,n){n&25&&e!==(e=Ee(t[0].startTime,t[3],{relative:t[4]})+"")&&x(l,e)},i:j,o:j,d(t){t&&b(l)}}}function Xs(r){let e=Ee(r[0].endTime,r[3],{relative:r[4]})+"",l;return{c(){l=R(e)},l(t){l=H(t,e)},m(t,n){I(t,l,n)},p(t,n){n&25&&e!==(e=Ee(t[0].endTime,t[3],{relative:t[4]})+"")&&x(l,e)},i:j,o:j,d(t){t&&b(l)}}}function Zs(r){let e,l;return e=new Pt({props:{status:r[0].status}}),{c(){L(e.$$.fragment)},l(t){T(e.$$.fragment,t)},m(t,n){D(e,t,n),l=!0},p(t,n){const o={};n&1&&(o.status=t[0].status),e.$set(o)},i(t){l||(g(e.$$.fragment,t),l=!0)},o(t){$(e.$$.fragment,t),l=!1},d(t){y(e,t)}}}function xs(r){let e=r[10]+"",l;return{c(){l=R(e)},l(t){l=H(t,e)},m(t,n){I(t,l,n)},p(t,n){n&5&&e!==(e=t[10]+"")&&x(l,e)},i:j,o:j,d(t){t&&b(l)}}}function eu(r){let e,l;return e=new Qr({props:{$$slots:{default:[lu]},$$scope:{ctx:r}}}),{c(){L(e.$$.fragment)},l(t){T(e.$$.fragment,t)},m(t,n){D(e,t,n),l=!0},p(t,n){const o={};n&2053&&(o.$$scope={dirty:n,ctx:t}),e.$set(o)},i(t){l||(g(e.$$.fragment,t),l=!0)},o(t){$(e.$$.fragment,t),l=!1},d(t){y(e,t)}}}function tu(r){let e=Ee(r[10],r[3],{relative:r[4]})+"",l;return{c(){l=R(e)},l(t){l=H(t,e)},m(t,n){I(t,l,n)},p(t,n){n&29&&e!==(e=Ee(t[10],t[3],{relative:t[4]})+"")&&x(l,e)},i:j,o:j,d(t){t&&b(l)}}}function lu(r){let e=r[10]+"",l;return{c(){l=R(e)},l(t){l=H(t,e)},m(t,n){I(t,l,n)},p(t,n){n&5&&e!==(e=t[10]+"")&&x(l,e)},d(t){t&&b(l)}}}function nu(r){let e,l;return e=new jt({props:{filterOrCopyButtonsVisible:r[1],attribute:"RunId",workflow:r[0]}}),{c(){L(e.$$.fragment)},l(t){T(e.$$.fragment,t)},m(t,n){D(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||(g(e.$$.fragment,t),l=!0)},o(t){$(e.$$.fragment,t),l=!1},d(t){y(e,t)}}}function ru(r){let e,l;return e=new jt({props:{filterOrCopyButtonsVisible:r[1],attribute:"WorkflowId",workflow:r[0]}}),{c(){L(e.$$.fragment)},l(t){T(e.$$.fragment,t)},m(t,n){D(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||(g(e.$$.fragment,t),l=!0)},o(t){$(e.$$.fragment,t),l=!1},d(t){y(e,t)}}}function ou(r){let e,l;return e=new jt({props:{filterOrCopyButtonsVisible:r[1],attribute:"WorkflowType",workflow:r[0]}}),{c(){L(e.$$.fragment)},l(t){T(e.$$.fragment,t)},m(t,n){D(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||(g(e.$$.fragment,t),l=!0)},o(t){$(e.$$.fragment,t),l=!1},d(t){y(e,t)}}}function iu(r){let e,l,t,n;const o=[Ms,Ws],a=[];function s(i,u){return i[2]==="Run ID"||i[2]==="Workflow ID"||i[2]==="Type"?0:1}return e=s(r),l=a[e]=o[e](r),{c(){l.c(),t=X()},l(i){l.l(i),t=X()},m(i,u){a[e].m(i,u),I(i,t,u),n=!0},p(i,[u]){let f=e;e=s(i),e===f?a[e].p(i,u):(G(),$(a[f],1,1,()=>{a[f]=null}),J(),l=a[e],l?l.p(i,u):(l=a[e]=o[e](i),l.c()),g(l,1),l.m(t.parentNode,t))},i(i){n||(g(l),n=!0)},o(i){$(l),n=!1},d(i){a[e].d(i),i&&b(t)}}}function au(r,e,l){let t,n,o,a;U(r,Ot,c=>l(3,n=c)),U(r,Bn,c=>l(4,o=c)),U(r,Cn,c=>l(5,a=c));let{column:s}=e,{workflow:i}=e,u=!1;const f=()=>l(1,u=!0),_=()=>l(1,u=!1),m=c=>{const d=c.relatedTarget;d&&!["filter-button","copy-button"].includes(d.id)&&_()};return r.$$set=c=>{"column"in c&&l(9,s=c.column),"workflow"in c&&l(0,i=c.workflow)},r.$$.update=()=>{r.$$.dirty&512&&l(2,{label:t}=s,t)},[i,u,t,n,o,a,f,_,m,s]}class su extends ie{constructor(e){super(),ae(this,e,au,iu,se,{column:9,workflow:0})}}function uu(r){let e,l,t;return{c(){e=N("th"),l=R(r[0]),this.h()},l(n){e=A(n,"TH",{class:!0,"data-testid":!0});var o=O(e);l=H(o,r[0]),o.forEach(b),this.h()},h(){B(e,"class","workflows-summary-table-header-cell svelte-x2wk3"),B(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&&x(l,n[0]),o&1&&t!==(t="workflows-summary-table-header-cell-"+n[0])&&B(e,"data-testid",t)},i:j,o:j,d(n){n&&b(e)}}}function fu(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 cu extends ie{constructor(e){super(),ae(this,e,fu,uu,se,{column:1})}}const mu=["workflowCancelDisabled","workflowTerminateDisabled"],_u=r=>r.disableWriteActions||r.batchActionsDisabled?!1:mu.some(e=>!r[e]),jn=Ye([Xr,kt,Jr,kr],([r,e,l,t])=>(t?!0:Gr(r,"1.18.0"))&&e&&_u(l));function du(r){let e,l,t,n,o;const a=r[5].default,s=ke(a,r,r[4],null);return{c(){e=N("button"),s&&s.c(),this.h()},l(i){e=A(i,"BUTTON",{"data-testid":!0,class:!0});var u=O(e);s&&s.l(u),u.forEach(b),this.h()},h(){B(e,"data-testid",r[0]),e.disabled=r[1],B(e,"class",l="bulk-action-button "+r[2]+" "+r[3].class+" svelte-19w6g7u")},m(i,u){I(i,e,u),s&&s.m(e,null),t=!0,n||(o=fe(e,"click",r[6]),n=!0)},p(i,[u]){s&&s.p&&(!t||u&16)&&we(s,a,i,i[4],t?Ie(a,i[4],u,null):ve(i[4]),null),(!t||u&1)&&B(e,"data-testid",i[0]),(!t||u&2)&&(e.disabled=i[1]),(!t||u&12&&l!==(l="bulk-action-button "+i[2]+" "+i[3].class+" svelte-19w6g7u"))&&B(e,"class",l)},i(i){t||(g(s,i),t=!0)},o(i){$(s,i),t=!1},d(i){i&&b(e),s&&s.d(i),n=!1,o()}}}function pu(r,e,l){let{$$slots:t={},$$scope:n}=e,{testId:o=null}=e,{disabled:a=!1}=e,{variant:s="primary"}=e;function i(u){Re.call(this,r,u)}return r.$$set=u=>{l(3,e=bt(bt({},e),gt(u))),"testId"in u&&l(0,o=u.testId),"disabled"in u&&l(1,a=u.disabled),"variant"in u&&l(2,s=u.variant),"$$scope"in u&&l(4,n=u.$$scope)},e=gt(e),[o,a,s,e,n,t,i]}class zn extends ie{constructor(e){super(),ae(this,e,pu,du,se,{testId:0,disabled:1,variant:2})}}function hu(r){let e,l,t,n,o,a,s,i,u,f,_;return l=new Oe({props:{key:"workflows.n-selected",count:r[1]}}),s=new Oe({props:{key:"workflows.select-all",count:r[6].count}}),{c(){e=N("span"),L(l.$$.fragment),t=F(),n=N("span"),o=R("(or "),a=N("button"),L(s.$$.fragment),i=R(")"),this.h()},l(m){e=A(m,"SPAN",{class:!0});var c=O(e);T(l.$$.fragment,c),c.forEach(b),t=V(m),n=A(m,"SPAN",{});var d=O(n);o=H(d,"(or "),a=A(d,"BUTTON",{"data-testid":!0,class:!0});var p=O(a);T(s.$$.fragment,p),p.forEach(b),i=H(d,")"),d.forEach(b),this.h()},h(){B(e,"class","font-semibold"),B(a,"data-testid","select-all-workflows"),B(a,"class","cursor-pointer underline")},m(m,c){I(m,e,c),D(l,e,null),I(m,t,c),I(m,n,c),C(n,o),C(n,a),D(s,a,null),C(n,i),u=!0,f||(_=fe(a,"click",r[13]),f=!0)},p(m,c){const d={};c&2&&(d.count=m[1]),l.$set(d);const p={};c&64&&(p.count=m[6].count),s.$set(p)},i(m){u||(g(l.$$.fragment,m),g(s.$$.fragment,m),u=!0)},o(m){$(l.$$.fragment,m),$(s.$$.fragment,m),u=!1},d(m){m&&b(e),y(l),m&&b(t),m&&b(n),y(s),f=!1,_()}}}function bu(r){let e,l,t;return l=new Oe({props:{key:"workflows.all-selected",count:r[6].count}}),{c(){e=N("span"),L(l.$$.fragment),this.h()},l(n){e=A(n,"SPAN",{class:!0});var o=O(e);T(l.$$.fragment,o),o.forEach(b),this.h()},h(){B(e,"class","font-semibold")},m(n,o){I(n,e,o),D(l,e,null),t=!0},p(n,o){const a={};o&64&&(a.count=n[6].count),l.$set(a)},i(n){t||(g(l.$$.fragment,n),t=!0)},o(n){$(l.$$.fragment,n),t=!1},d(n){n&&b(e),y(l)}}}function cn(r){let e,l;return e=new zn({props:{testId:"bulk-cancel-button",disabled:r[2]||!r[7].length,$$slots:{default:[gu]},$$scope:{ctx:r}}}),e.$on("click",Xu),{c(){L(e.$$.fragment)},l(t){T(e.$$.fragment,t)},m(t,n){D(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||(g(e.$$.fragment,t),l=!0)},o(t){$(e.$$.fragment,t),l=!1},d(t){y(e,t)}}}function gu(r){let e=W("workflows.request-cancellation")+"",l;return{c(){l=R(e)},l(t){l=H(t,e)},m(t,n){I(t,l,n)},p:j,d(t){t&&b(l)}}}function mn(r){let e,l;return e=new zn({props:{variant:"destructive",testId:"bulk-terminate-button",disabled:r[2],$$slots:{default:[$u]},$$scope:{ctx:r}}}),e.$on("click",Zu),{c(){L(e.$$.fragment)},l(t){T(e.$$.fragment,t)},m(t,n){D(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||(g(e.$$.fragment,t),l=!0)},o(t){$(e.$$.fragment,t),l=!1},d(t){y(e,t)}}}function $u(r){let e=W("workflows.terminate")+"",l;return{c(){l=R(e)},l(t){l=H(t,e)},m(t,n){I(t,l,n)},p:j,d(t){t&&b(l)}}}function ku(r){let e,l,t,n,o,a;const s=[bu,hu],i=[];function u(m,c){return m[5]?0:1}e=u(r),l=i[e]=s[e](r);let f=r[3]&&cn(r),_=r[4]&&mn(r);return{c(){l.c(),t=F(),n=N("div"),f&&f.c(),o=F(),_&&_.c(),this.h()},l(m){l.l(m),t=V(m),n=A(m,"DIV",{class:!0});var c=O(n);f&&f.l(c),o=V(c),_&&_.l(c),c.forEach(b),this.h()},h(){B(n,"class","ml-4 inline-flex gap-2")},m(m,c){i[e].m(m,c),I(m,t,c),I(m,n,c),f&&f.m(n,null),C(n,o),_&&_.m(n,null),a=!0},p(m,[c]){let d=e;e=u(m),e===d?i[e].p(m,c):(G(),$(i[d],1,1,()=>{i[d]=null}),J(),l=i[e],l?l.p(m,c):(l=i[e]=s[e](m),l.c()),g(l,1),l.m(t.parentNode,t)),m[3]?f?(f.p(m,c),c&8&&g(f,1)):(f=cn(m),f.c(),g(f,1),f.m(n,o)):f&&(G(),$(f,1,1,()=>{f=null}),J()),m[4]?_?(_.p(m,c),c&16&&g(_,1)):(_=mn(m),_.c(),g(_,1),_.m(n,null)):_&&(G(),$(_,1,1,()=>{_=null}),J())},i(m){a||(g(l),g(f),g(_),a=!0)},o(m){$(l),$(f),$(_),a=!1},d(m){i[e].d(m),m&&b(t),m&&b(n),f&&f.d(),_&&_.d()}}}function wu(r,e,l){let t,n,o,a,s,i,u,f,_;U(r,De,k=>l(10,a=k)),U(r,Le,k=>l(12,i=k)),U(r,Ke,k=>l(5,u=k)),U(r,Dn,k=>l(6,f=k)),U(r,Kn,k=>l(7,_=k));var m;let{workflows:c}=e,d=Zr();U(r,d,k=>l(11,s=k));let p;const h=()=>xu(c);return r.$$set=k=>{"workflows"in k&&l(0,c=k.workflows)},r.$$.update=()=>{r.$$.dirty&4608&&l(1,p=l(9,m=i==null?void 0:i.length)!==null&&m!==void 0?m:0),r.$$.dirty&1024&&l(4,t=cr(a.data.settings)),r.$$.dirty&1024&&l(3,n=mr(a.data.settings)),r.$$.dirty&3072&&l(2,o=s.namespaceWriteDisabled(a.params.namespace))},[c,p,o,n,t,u,f,_,d,m,a,s,i,h]}class vu extends ie{constructor(e){super(),ae(this,e,wu,ku,se,{workflows:0})}}function _n(r){let e,l,t,n;function o(s){r[13](s)}let a={label:r[4],labelHidden:!0,id:"select-visible-workflows","data-testid":"batch-actions-checkbox",theme:"dark",hoverable:!0,indeterminate:r[5]};return r[7]!==void 0&&(a.checked=r[7]),l=new Ft({props:a}),ce.push(()=>_e(l,"checked",o)),l.$on("change",r[9]),{c(){e=N("th"),L(l.$$.fragment),this.h()},l(s){e=A(s,"TH",{class:!0});var i=O(e);T(l.$$.fragment,i),i.forEach(b),this.h()},h(){B(e,"class","batch-actions-checkbox-table-cell svelte-1nquu83")},m(s,i){I(s,e,i),D(l,e,null),n=!0},p(s,i){const u={};i&16&&(u.label=s[4]),i&32&&(u.indeterminate=s[5]),!t&&i&128&&(t=!0,u.checked=s[7],de(()=>t=!1)),l.$set(u)},i(s){n||(g(l.$$.fragment,s),n=!0)},o(s){$(l.$$.fragment,s),n=!1},d(s){s&&b(e),y(l)}}}function Iu(r){let e;const l=r[12].default,t=ke(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)&&we(t,l,n,n[11],e?Ie(l,n[11],o,null):ve(n[11]),null)},i(n){e||(g(t,n),e=!0)},o(n){$(t,n),e=!1},d(n){t&&t.d(n)}}}function Eu(r){let e,l,t;return l=new vu({props:{workflows:r[0]}}),{c(){e=N("th"),L(l.$$.fragment),this.h()},l(n){e=A(n,"TH",{class:!0,colspan:!0});var o=O(e);T(l.$$.fragment,o),o.forEach(b),this.h()},h(){B(e,"class","batch-actions-table-cell svelte-1nquu83"),B(e,"colspan",r[3])},m(n,o){I(n,e,o),D(l,e,null),t=!0},p(n,o){const a={};o&1&&(a.workflows=n[0]),l.$set(a),(!t||o&8)&&B(e,"colspan",n[3])},i(n){t||(g(l.$$.fragment,n),t=!0)},o(n){$(l.$$.fragment,n),t=!1},d(n){n&&b(e),y(l)}}}function Lu(r){let e,l,t,n,o,a,s,i,u=!r[1]&&r[6]&&_n(r);const f=[Eu,Iu],_=[];function m(c,d){return c[6]&&c[8]?0:1}return t=m(r),n=_[t]=f[t](r),s=new Fe({props:{"data-testid":"workflows-summary-table-configuration-button",icon:"vertical-ellipsis",label:W("workflows.open-configure-workflows")}}),s.$on("click",function(){En(r[2])&&r[2].apply(this,arguments)}),{c(){e=N("tr"),u&&u.c(),l=F(),n.c(),o=F(),a=N("th"),L(s.$$.fragment),this.h()},l(c){e=A(c,"TR",{});var d=O(e);u&&u.l(d),l=V(d),n.l(d),o=V(d),a=A(d,"TH",{class:!0});var p=O(a);T(s.$$.fragment,p),p.forEach(b),d.forEach(b),this.h()},h(){B(a,"class","configuration-button-table-cell svelte-1nquu83")},m(c,d){I(c,e,d),u&&u.m(e,null),C(e,l),_[t].m(e,null),C(e,o),C(e,a),D(s,a,null),i=!0},p(c,[d]){r=c,!r[1]&&r[6]?u?(u.p(r,d),d&66&&g(u,1)):(u=_n(r),u.c(),g(u,1),u.m(e,l)):u&&(G(),$(u,1,1,()=>{u=null}),J());let p=t;t=m(r),t===p?_[t].p(r,d):(G(),$(_[p],1,1,()=>{_[p]=null}),J(),n=_[t],n?n.p(r,d):(n=_[t]=f[t](r),n.c()),g(n,1),n.m(e,o))},i(c){i||(g(u),g(n),g(s.$$.fragment,c),i=!0)},o(c){$(u),$(n),$(s.$$.fragment,c),i=!1},d(c){c&&b(e),u&&u.d(),_[t].d(),y(s)}}}function Tu(r,e,l){let t,n,o,a,s,i;U(r,Le,k=>l(10,o=k)),U(r,jn,k=>l(6,a=k)),U(r,it,k=>l(7,s=k)),U(r,Gu,k=>l(8,i=k));let{$$slots:u={},$$scope:f}=e,{workflows:_}=e,{empty:m}=e,{onClickConfigure:c=j}=e,{columnsCount:d}=e;const p=k=>{const{checked:w}=k.detail;ef(w,_)};function h(k){s=k,it.set(s)}return r.$$set=k=>{"workflows"in k&&l(0,_=k.workflows),"empty"in k&&l(1,m=k.empty),"onClickConfigure"in k&&l(2,c=k.onClickConfigure),"columnsCount"in k&&l(3,d=k.columnsCount),"$$scope"in k&&l(11,f=k.$$scope)},r.$$.update=()=>{r.$$.dirty&1025&&l(5,t=o.length>0&&o.length<_.length)},l(4,n=W("workflows.select-all-workflows")),[_,m,c,d,n,t,a,s,i,p,o,f,u,h]}class Du extends ie{constructor(e){super(),ae(this,e,Tu,Lu,se,{workflows:0,empty:1,onClickConfigure:2,columnsCount:3})}}function dn(r){let e,l,t,n;function o(s){r[8](s)}let a={label:r[2],labelHidden:!0,hoverable:!0,value:r[0],disabled:r[5],"aria-label":r[2]};return r[4]!==void 0&&(a.group=r[4]),l=new Ft({props:a}),ce.push(()=>_e(l,"group",o)),{c(){e=N("td"),L(l.$$.fragment),this.h()},l(s){e=A(s,"TD",{class:!0});var i=O(e);T(l.$$.fragment,i),i.forEach(b),this.h()},h(){B(e,"class","relative px-2")},m(s,i){I(s,e,i),D(l,e,null),n=!0},p(s,i){const u={};i&4&&(u.label=s[2]),i&1&&(u.value=s[0]),i&32&&(u.disabled=s[5]),i&4&&(u["aria-label"]=s[2]),!t&&i&16&&(t=!0,u.group=s[4],de(()=>t=!1)),l.$set(u)},i(s){n||(g(l.$$.fragment,s),n=!0)},o(s){$(l.$$.fragment,s),n=!1},d(s){s&&b(e),y(l)}}}function yu(r){let e,l,t,n,o,a=!r[1]&&r[3]&&dn(r);const s=r[7].default,i=ke(s,r,r[6],null);return{c(){e=N("tr"),a&&a.c(),l=F(),i&&i.c(),t=F(),n=N("td"),this.h()},l(u){e=A(u,"TR",{"data-testid":!0});var f=O(e);a&&a.l(f),l=V(f),i&&i.l(f),t=V(f),n=A(f,"TD",{}),O(n).forEach(b),f.forEach(b),this.h()},h(){B(e,"data-testid","workflows-summary-configurable-table-row"),me(e,"empty",r[1])},m(u,f){I(u,e,f),a&&a.m(e,null),C(e,l),i&&i.m(e,null),C(e,t),C(e,n),o=!0},p(u,[f]){!u[1]&&u[3]?a?(a.p(u,f),f&10&&g(a,1)):(a=dn(u),a.c(),g(a,1),a.m(e,l)):a&&(G(),$(a,1,1,()=>{a=null}),J()),i&&i.p&&(!o||f&64)&&we(i,s,u,u[6],o?Ie(s,u[6],f,null):ve(u[6]),null),(!o||f&2)&&me(e,"empty",u[1])},i(u){o||(g(a),g(i,u),o=!0)},o(u){$(a),$(i,u),o=!1},d(u){u&&b(e),a&&a.d(),i&&i.d(u)}}}function Bu(r,e,l){let t,n,o,a;U(r,jn,m=>l(3,n=m)),U(r,Le,m=>l(4,o=m)),U(r,Ke,m=>l(5,a=m));let{$$slots:s={},$$scope:i}=e,{workflow:u=void 0}=e,{empty:f=!1}=e;function _(m){o=m,Le.set(o)}return r.$$set=m=>{"workflow"in m&&l(0,u=m.workflow),"empty"in m&&l(1,f=m.empty),"$$scope"in m&&l(6,i=m.$$scope)},r.$$.update=()=>{r.$$.dirty&1&&l(2,t=W("workflows.select-workflow",{workflow:u==null?void 0:u.id}))},[u,f,t,n,o,a,i,s,_]}class Cu extends ie{constructor(e){super(),ae(this,e,Bu,yu,se,{workflow:0,empty:1})}}function pn(r,e,l){const t=r.slice();return t[18]=e[l],t}function hn(r,e,l){const t=r.slice();return t[15]=e[l],t}function bn(r,e,l){const t=r.slice();return t[15]=e[l],t}const Su=r=>({}),gn=r=>({slot:"cloud"});function $n(r){let e,l;return e=new su({props:{workflow:r[18],column:r[15]}}),{c(){L(e.$$.fragment)},l(t){T(e.$$.fragment,t)},m(t,n){D(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||(g(e.$$.fragment,t),l=!0)},o(t){$(e.$$.fragment,t),l=!1},d(t){y(e,t)}}}function Nu(r){let e,l,t=r[4],n=[];for(let a=0;a$(n[a],1,1,()=>{n[a]=null});return{c(){for(let a=0;a$(n[a],1,1,()=>{n[a]=null});return{c(){for(let a=0;a$(n[a],1,1,()=>{n[a]=null});return{c(){for(let a=0;a_e(o,"value",d));function h(w){r[20](w)}let k={id:"batch-operation-job-id",label:W("common.job-id"),hintText:r[8]?W("batch.job-id-input-hint"):W("batch.job-id-input-error"),placeholder:r[12],valid:r[8]};return r[7]!==void 0&&(k.value=r[7]),i=new ye({props:k}),ce.push(()=>_e(i,"value",h)),i.$on("input",r[14]),{c(){e=N("div"),t.c(),n=F(),L(o.$$.fragment),s=F(),L(i.$$.fragment),this.h()},l(w){e=A(w,"DIV",{class:!0});var v=O(e);t.l(v),n=V(v),T(o.$$.fragment,v),s=V(v),T(i.$$.fragment,v),v.forEach(b),this.h()},h(){B(e,"class","mb-4 flex flex-col gap-2")},m(w,v){I(w,e,v),m[l].m(e,null),C(e,n),D(o,e,null),C(e,s),D(i,e,null),f=!0},p(w,v){let E=l;l=c(w),l===E?m[l].p(w,v):(G(),$(m[E],1,1,()=>{m[E]=null}),J(),t=m[l],t?t.p(w,v):(t=m[l]=_[l](w),t.c()),g(t,1),t.m(e,n));const P={};v&1&&(P.id=`bulk-action-reason-${w[0]}`),v&512&&(P.hintText=W("workflows.batch-operation-confirmation-input-hint",{placeholder:w[9]})),v&512&&(P.placeholder=w[9]),!a&&v&16&&(a=!0,P.value=w[4],de(()=>a=!1)),o.$set(P);const S={};v&256&&(S.hintText=w[8]?W("batch.job-id-input-hint"):W("batch.job-id-input-error")),v&256&&(S.valid=w[8]),!u&&v&128&&(u=!0,S.value=w[7],de(()=>u=!1)),i.$set(S)},i(w){f||(g(t),g(o.$$.fragment,w),g(i.$$.fragment,w),f=!0)},o(w){$(t),$(o.$$.fragment,w),$(i.$$.fragment,w),f=!1},d(w){w&&b(e),m[l].d(),y(o),y(i)}}}function mo(r){let e,l,t,n;function o(i){r[21](i)}function a(i){r[22](i)}let s={id:`batch-operation-confirmation-modal-${r[0]}`,"data-testid":"batch-"+r[3]+"-confirmation",confirmType:"destructive",cancelText:W("common.cancel"),confirmDisabled:!r[8],confirmText:r[10],$$slots:{content:[co],title:[so]},$$scope:{ctx:r}};return r[5]!==void 0&&(s.open=r[5]),r[6]!==void 0&&(s.error=r[6]),e=new or({props:s}),ce.push(()=>_e(e,"open",o)),ce.push(()=>_e(e,"error",a)),e.$on("confirmModal",r[13]),{c(){L(e.$$.fragment)},l(i){T(e.$$.fragment,i)},m(i,u){D(e,i,u),n=!0},p(i,[u]){const f={};u&1&&(f.id=`batch-operation-confirmation-modal-${i[0]}`),u&8&&(f["data-testid"]="batch-"+i[3]+"-confirmation"),u&256&&(f.confirmDisabled=!i[8]),u&1024&&(f.confirmText=i[10]),u&16780191&&(f.$$scope={dirty:u,ctx:i}),!l&&u&32&&(l=!0,f.open=i[5],de(()=>l=!1)),!t&&u&64&&(t=!0,f.error=i[6],de(()=>t=!1)),e.$set(f)},i(i){n||(g(e.$$.fragment,i),n=!0)},o(i){$(e.$$.fragment,i),n=!1},d(i){y(e,i)}}}function _o(r,e,l){let t,n,o,a,s;U(r,sr,q=>l(18,a=q)),U(r,Ke,q=>l(11,s=q));let{action:i}=e,{actionableWorkflowsLength:u}=e,{query:f}=e,_="",m=!1,c="",d="",p=_r(),h=!0;const k=()=>{l(4,_=""),l(5,m=!0)},w=()=>l(5,m=!1),v=q=>l(6,c=q),E=at(),P=()=>{l(6,c=""),E("confirm",{reason:fr({action:i,reason:_,email:a.email}),jobId:d||p})},S=q=>{/^[\w.~-]*$/.test(q.target.value)?l(8,h=!0):l(8,h=!1)};function M(q){_=q,l(4,_)}function Z(q){d=q,l(7,d)}function ee(q){m=q,l(5,m)}function Y(q){c=q,l(6,c)}return r.$$set=q=>{"action"in q&&l(0,i=q.action),"actionableWorkflowsLength"in q&&l(1,u=q.actionableWorkflowsLength),"query"in q&&l(2,f=q.query)},r.$$.update=()=>{r.$$.dirty&1&&l(3,t=i===Xe.Cancel?W("common.cancel"):W("workflows.terminate")),r.$$.dirty&9&&l(10,n=i===Xe.Cancel?W("common.confirm"):t),r.$$.dirty&262145&&l(9,o=ur(i,a.email))},[i,u,f,t,_,m,c,d,h,o,n,s,p,P,S,k,w,v,a,M,Z,ee,Y]}class fl extends ie{constructor(e){super(),ae(this,e,_o,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 po={workflowId:"WorkflowId",workflowType:"WorkflowType",timeRange:"StartTime",executionStatus:"ExecutionStatus",closeTime:"CloseTime",runId:"RunId"},ho=r=>!(r===null||r===void 0||r===""||typeof r=="string"&&r==="undefined"),bo=(r,e)=>e==="Bool"?r.toLowerCase()==="true":`"${r}"`,go=(r,e,l,t="=",n,o)=>{const a=po[r]??r;return l==="All"?"":o?`${a} ${l}`:vr(l)||Ir(l)?n||xe(kt)?`${a} ${t} "${Ct(l)}"`:`${a} BETWEEN "${Ct(l)}" AND "${Er()}"`:`${a}${t}${bo(l,e)}`},$o=(r,e)=>r.map(({attribute:l,type:t,value:n,conditional:o,operator:a,parenthesis:s,customDate:i})=>{if(ho(n)){let u=go(l,t,n,o,e,i);return s==="("?u=`(${u}`:s===")"&&(u=`${u})`),a&&(u=`${u} ${a} `),u}}).filter(Boolean),On=(r=[],e=!1)=>$o(r,e).join(""),Pn=r=>e=>e.toLowerCase()===r.toLowerCase(),cl=(r,e)=>r[e+2],ko=(r,e)=>r[e-2],wo=Pn("Datetime"),vo=Pn("Bool"),qe=()=>({attribute:"",type:"Keyword",value:"",operator:"",parenthesis:"",conditional:""}),Io={ExecutionStatus:"Keyword",StartTime:"Datetime",CloseTime:"Datetime",WorkflowId:"Keyword",WorkflowType:"Keyword",RunId:"Keyword"},Fn=(r,e=Io)=>{const l=br(r),t=[];let n=qe();if(!r)return[];try{return l.forEach((o,a)=>{if(e[o])if(n.attribute=o,n.type=e[o],wo(e[o])){const s=cl(l,a),i=tl(s);if(nl(l[a+1])){const u=l[a+4],f=tl(u);i&&f?(n.value=`BETWEEN "${s}" AND "${u}"`,n.customDate=!0):console.error("Error parsing Datetime field from query")}else i?n.value=s:console.error("Error parsing Datetime field from query")}else vo(n.type)?(n.value=l[a+1].replace("=",""),n.conditional="="):n.value=cl(l,a);yr(o)&&(n.conditional=o),Br(o)&&(n.parenthesis=o),Cr(o)&&!nl(ko(l,a))&&(n.operator=o,t.push(n),n=qe()),a===l.length-1&&(t.push(n),n=qe())}),t}catch(o){return console.error("Error setting filter parameters: ",o),[]}},Eo=r=>{const e=r.filter(s=>s.attribute==="ExecutionStatus"&&s.value),l=r.filter(s=>s.attribute==="WorkflowId"&&s.value),t=r.filter(s=>s.attribute==="WorkflowType"&&s.value),n=r.filter(s=>s.attribute==="RunId"&&s.value),o=r.filter(s=>(s.attribute==="StartTime"||s.attribute==="CloseTime")&&s.value),a=[e,l,n,t,o].filter(s=>s.length);return a.forEach((s,i)=>{var u,f;s.length&&((u=a[i+1])!=null&&u.length)?s[s.length-1].operator="AND":s.length&&!((f=a[i+1])!=null&&f.length)&&(s[s.length-1].operator="")}),[...e,...l,...n,...t,...o]},Vn=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),Mt=gr((r,e,l=!1)=>{const t=l?Eo(e):Vn(e),n=On(t);He({url:r,parameter:"query",value:n,allowEmpty:!1})},300);function Lo(r){let e=W("common.search")+"",l;return{c(){l=R(e)},l(t){l=H(t,e)},m(t,n){I(t,l,n)},p:j,d(t){t&&b(l)}}}function To(r){let e,l,t,n,o,a,s,i,u,f,_,m;function c(p){r[5](p)}let d={id:"manual-search",type:"search",label:W("workflows.search-placeholder"),labelHidden:!0,placeholder:W("workflows.search-placeholder"),icon:"search",class:"w-full lg:w-3/4",clearable:!0,clearButtonLabel:W("common.clear-input-button-label"),unroundRight:!0};return r[0]!==void 0&&(d.value=r[0]),n=new ye({props:d}),ce.push(()=>_e(n,"value",c)),n.$on("clear",r[2]),s=new tt({props:{"data-testid":"manual-search-button",variant:"primary",borderRadiusModifier:"square-left",type:"submit",$$slots:{default:[Lo]},$$scope:{ctx:r}}}),{c(){e=N("div"),l=N("div"),t=N("form"),L(n.$$.fragment),a=F(),L(s.$$.fragment),this.h()},l(p){e=A(p,"DIV",{class:!0});var h=O(e);l=A(h,"DIV",{class:!0});var k=O(l);t=A(k,"FORM",{class:!0,role:!0});var w=O(t);T(n.$$.fragment,w),a=V(w),T(s.$$.fragment,w),w.forEach(b),k.forEach(b),h.forEach(b),this.h()},h(){B(t,"class","relative flex w-full items-center gap-0"),B(t,"role","search"),B(l,"class","flex w-full items-center gap-0"),B(e,"class","flex grow gap-4")},m(p,h){I(p,e,h),C(e,l),C(l,t),D(n,t,null),C(t,a),D(s,t,null),f=!0,_||(m=fe(t,"submit",nt(r[1])),_=!0)},p(p,[h]){const k={};!o&&h&1&&(o=!0,k.value=p[0],de(()=>o=!1)),n.$set(k);const w={};h&1024&&(w.$$scope={dirty:h,ctx:p}),s.$set(w)},i(p){f||(g(n.$$.fragment,p),g(s.$$.fragment,p),i||je(()=>{i=ze(t,et,{x:-100,duration:150}),i.start()}),u||je(()=>{u=ze(l,Tn,{}),u.start()}),f=!0)},o(p){$(n.$$.fragment,p),$(s.$$.fragment,p),f=!1},d(p){p&&b(e),y(n),y(s),_=!1,m()}}}function Do(r,e,l){let t,n,o,a,s;U(r,De,c=>l(4,n=c)),U(r,Ze,c=>l(6,o=c)),U(r,ge,c=>l(7,a=c)),U(r,rt,c=>l(8,s=c));let i="";function u(c){l(0,i=c)}const f=()=>{if(!i)te(ge,a=[],a),te(rt,s="",s);else try{te(ge,a=Fn(i),a)}catch(c){console.error(c)}i&&i===t?te(Ze,o=Date.now(),o):He({url:n.url,parameter:"query",value:i,allowEmpty:!0})};function _(){f()}function m(c){i=c,l(0,i)}return r.$$.update=()=>{r.$$.dirty&16&&l(3,t=n.url.searchParams.get("query")),r.$$.dirty&8&&u(t)},[i,f,_,t,n,m]}class yo extends ie{constructor(e){super(),ae(this,e,Do,To,se,{})}}function Je(r){return r==="ExecutionStatus"}function ot({attribute:r,type:e},l=lt){if(Je(r))return!1;if(e==="Keyword")return!0;const t=xe(l)[r];return["Keyword","Text","String"].includes(t)}function Wn({attribute:r,type:e},l=lt){return e==="KeywordList"?!0:xe(l)[r]==="KeywordList"}function Mn({attribute:r,type:e},l=lt){if(e==="Int")return!0;const t=xe(l)[r];return["Int","Double"].includes(t)}function Bo(r){return["ExecutionDuration"].includes(r)}function Rt({attribute:r,type:e},l=lt){return e==="Datetime"?!0:xe(l)[r]==="Datetime"}function Rn({attribute:r,type:e},l=lt){return e==="Bool"?!0:xe(l)[r]==="Bool"}function Hn({attribute:r,type:e}){return Je(r)?"status-filter":ot({attribute:r,type:e})||Mn({attribute:r,type:e})||Rt({attribute:r,type:e})?"conditional-menu-button":Wn({attribute:r,type:e})?"list-filter-search":Rn({attribute:r,type:e})?"boolean-filter":""}function ml(r,e,l){const t=r.slice();return t[8]=e[l].value,t[9]=e[l].label,t}function Co(r){let e;return{c(){e=R(r[1])},l(l){e=H(l,r[1])},m(l,t){I(l,e,t)},p(l,t){t&2&&x(e,l[1])},d(l){l&&b(e)}}}function So(r){let e=r[9]+"",l,t;return{c(){l=R(e),t=F()},l(n){l=H(n,e),t=V(n)},m(n,o){I(n,l,o),I(n,t,o)},p:j,d(n){n&&b(l),n&&b(t)}}}function _l(r){let e,l;function t(){return r[7](r[8])}return e=new Pe({props:{$$slots:{default:[So]},$$scope:{ctx:r}}}),e.$on("click",t),{c(){L(e.$$.fragment)},l(n){T(e.$$.fragment,n)},m(n,o){D(e,n,o),l=!0},p(n,o){r=n;const a={};o&4096&&(a.$$scope={dirty:o,ctx:r}),e.$set(a)},i(n){l||(g(e.$$.fragment,n),l=!0)},o(n){$(e.$$.fragment,n),l=!1},d(n){y(e,n)}}}function No(r){let e,l,t=r[4],n=[];for(let a=0;a$(n[a],1,1,()=>{n[a]=null});return{c(){for(let a=0;al(0,o=_));const u=[{value:"true",label:W("common.true")},{value:"false",label:W("common.false")}],f=_=>{te(s,o.value=_,o),i()};return r.$$.update=()=>{r.$$.dirty&33&&l(6,t=l(5,a=u.find(_=>_.value===o.value))!==null&&a!==void 0?a:u[0]),r.$$.dirty&64&&l(1,n=t==null?void 0:t.label)},[o,n,s,i,u,a,t,f]}class Fo extends ie{constructor(e){super(),ae(this,e,Po,Oo,se,{})}}function Vo(r){let e,l;return e=new Fe({props:{label:W("common.close"),icon:"close",class:"ml-1"}}),e.$on("click",r[0]),{c(){L(e.$$.fragment)},l(t){T(e.$$.fragment,t)},m(t,n){D(e,t,n),l=!0},p:j,i(t){l||(g(e.$$.fragment,t),l=!0)},o(t){$(e.$$.fragment,t),l=!1},d(t){y(e,t)}}}function Wo(r){const{resetFilter:e}=Ve(Be);return[e]}class mt extends ie{constructor(e){super(),ae(this,e,Wo,Vo,se,{})}}function dl(r,e,l){const t=r.slice();return t[9]=e[l].allowed,t[10]=e[l].value,t[12]=l,t}function pl(r,e,l){const t=r.slice();return t[13]=e[l],t}function hl(r){let e,l=r[13].label.slice(0,2)+"",t;return{c(){e=N("p"),t=R(l),this.h()},l(n){e=A(n,"P",{class:!0});var o=O(e);t=H(o,l),o.forEach(b),this.h()},h(){B(e,"class","cell svelte-1we9vff")},m(n,o){I(n,e,o),C(e,t)},p:j,d(n){n&&b(e)}}}function bl(r,e){let l,t=(e[10]||"")+"",n,o,a,s;function i(){return e[6](e[10])}return{key:r,first:null,c(){l=N("button"),n=R(t),o=F(),this.h()},l(u){l=A(u,"BUTTON",{type:!0,class:!0});var f=O(l);n=H(f,t),o=V(f),f.forEach(b),this.h()},h(){B(l,"type","button"),B(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(u,f){I(u,l,f),C(l,n),C(l,o),a||(s=fe(l,"click",function(){En(e[9]&&e[10]?i:j)&&(e[9]&&e[10]?i:j).apply(this,arguments)}),a=!0)},p(u,f){e=u,f&8&&t!==(t=(e[10]||"")+"")&&x(n,t),f&8&&me(l,"highlight",e[9]&&e[10]),f&8&&me(l,"disabled",!e[9]),f&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(u){u&&b(l),a=!1,s()}}}function Mo(r){let e,l,t,n,o=[],a=new Map,s=rl,i=[];for(let _=0;__[12];for(let _=0;_!0}=e,i=[];const u=m=>{t("datechange",new Date(a,o,m))},f=(m,c,d)=>d?s(new Date(m,c,d)):!0,_=m=>u(m);return r.$$set=m=>{"date"in m&&l(0,n=m.date),"month"in m&&l(1,o=m.month),"year"in m&&l(2,a=m.year),"isAllowed"in m&&l(5,s=m.isAllowed)},r.$$.update=()=>{r.$$.dirty&6&&l(3,i=Fr(o,a).map(m=>({value:m,allowed:f(a,o,m)})))},[n,o,a,i,u,s,_]}class Ho extends ie{constructor(e){super(),ae(this,e,Ro,Mo,se,{date:0,month:1,year:2,isAllowed:5})}}function gl(r){var ne;let e,l,t,n,o,a,s,i=(((ne=ol(r[8]))==null?void 0:ne.label)??"")+"",u,f,_,m,c,d,p,h,k,w,v,E,P,S,M,Z,ee,Y,q;return o=new We({props:{name:"chevron-left"}}),p=new We({props:{name:"chevron-right"}}),k=new Ho({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"),L(o.$$.fragment),a=F(),s=N("div"),u=R(i),f=F(),_=R(r[9]),m=F(),c=N("div"),d=N("button"),L(p.$$.fragment),h=F(),L(k.$$.fragment),w=F(),v=N("div"),E=N("button"),P=R(r[4]),S=F(),M=N("button"),Z=R(r[5]),this.h()},l(oe){e=A(oe,"DIV",{class:!0});var z=O(e);l=A(z,"DIV",{class:!0});var pe=O(l);t=A(pe,"DIV",{class:!0});var ue=O(t);n=A(ue,"BUTTON",{type:!0});var K=O(n);T(o.$$.fragment,K),K.forEach(b),ue.forEach(b),a=V(pe),s=A(pe,"DIV",{class:!0});var re=O(s);u=H(re,i),f=V(re),_=H(re,r[9]),re.forEach(b),m=V(pe),c=A(pe,"DIV",{class:!0});var Q=O(c);d=A(Q,"BUTTON",{type:!0});var be=O(d);T(p.$$.fragment,be),be.forEach(b),Q.forEach(b),pe.forEach(b),h=V(z),T(k.$$.fragment,z),w=V(z),v=A(z,"DIV",{class:!0});var he=O(v);E=A(he,"BUTTON",{type:!0,class:!0});var $e=O(E);P=H($e,r[4]),$e.forEach(b),S=V(he),M=A(he,"BUTTON",{type:!0,class:!0});var Ce=O(M);Z=H(Ce,r[5]),Ce.forEach(b),he.forEach(b),z.forEach(b),this.h()},h(){B(n,"type","button"),B(t,"class","flex items-center justify-center"),B(s,"class","flex items-center justify-center"),B(d,"type","button"),B(c,"class","flex items-center justify-center"),B(l,"class","mx-3 my-2 flex items-center justify-around"),B(E,"type","button"),B(E,"class","cursor-pointer text-[12px]"),B(M,"type","button"),B(M,"class","cursor-pointer text-[12px]"),B(v,"class","my-1 flex justify-between px-2"),B(e,"class","absolute z-30 inline-block rounded border border-gray-900 bg-white shadow")},m(oe,z){I(oe,e,z),C(e,l),C(l,t),C(t,n),D(o,n,null),C(l,a),C(l,s),C(s,u),C(s,f),C(s,_),C(l,m),C(l,c),C(c,d),D(p,d,null),C(e,h),D(k,e,null),C(e,w),C(e,v),C(v,E),C(E,P),C(v,S),C(v,M),C(M,Z),ee=!0,Y||(q=[fe(n,"click",r[14]),fe(d,"click",r[13]),fe(E,"click",r[16]),fe(M,"click",r[17])],Y=!0)},p(oe,z){var ue;(!ee||z&256)&&i!==(i=(((ue=ol(oe[8]))==null?void 0:ue.label)??"")+"")&&x(u,i),(!ee||z&512)&&x(_,oe[9]);const pe={};z&256&&(pe.month=oe[8]),z&512&&(pe.year=oe[9]),z&1&&(pe.date=oe[0]),z&2&&(pe.isAllowed=oe[1]),k.$set(pe),(!ee||z&16)&&x(P,oe[4]),(!ee||z&32)&&x(Z,oe[5])},i(oe){ee||(g(o.$$.fragment,oe),g(p.$$.fragment,oe),g(k.$$.fragment,oe),ee=!0)},o(oe){$(o.$$.fragment,oe),$(p.$$.fragment,oe),$(k.$$.fragment,oe),ee=!1},d(oe){oe&&b(e),y(o),y(p),y(k),Y=!1,st(q)}}}function Uo(r){let e,l,t,n,o,a;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 s=r[10]&&gl(r);return{c(){e=N("div"),L(l.$$.fragment),t=F(),s&&s.c(),this.h()},l(i){e=A(i,"DIV",{class:!0});var u=O(e);T(l.$$.fragment,u),t=V(u),s&&s.l(u),u.forEach(b),this.h()},h(){B(e,"class","relative")},m(i,u){I(i,e,u),D(l,e,null),C(e,t),s&&s.m(e,null),n=!0,o||(a=[Zn(Pr.call(null,e)),fe(e,"click-outside",r[18])],o=!0)},p(i,[u]){const f={};u&4&&(f.label=i[2]),u&8&&(f.labelHidden=i[3]),u&1&&(f.value=i[0].toDateString()),u&64&&(f.clearButtonLabel=i[6]),u&128&&(f.disabled=i[7]),l.$set(f),i[10]?s?(s.p(i,u),u&1024&&g(s,1)):(s=gl(i),s.c(),g(s,1),s.m(e,null)):s&&(G(),$(s,1,1,()=>{s=null}),J())},i(i){n||(g(l.$$.fragment,i),g(s),n=!0)},o(i){$(l.$$.fragment,i),$(s),n=!1},d(i){i&&b(e),y(l),s&&s.d(),o=!1,st(a)}}}function qo(r,e,l){const t=at();let{isAllowed:n=()=>!0}=e,{selected:o=new Date}=e,{label:a}=e,{labelHidden:s=!1}=e,{todayLabel:i}=e,{closeLabel:u}=e,{clearLabel:f}=e,{disabled:_=!1}=e,m,c,d=!1;const p=()=>{l(10,d=!0)},h=M=>{const ee=M.target.value;if(ee.length===8){const Y=ee==null?void 0:ee.split("/"),ne=2e3+parseInt(Y[2]),oe=parseInt(Y[0])-1,z=parseInt(Y[1]),pe=new Date(ne,oe,z);t("datechange",pe)}},k=()=>{if(m===11){l(8,m=0),l(9,c=c+1);return}l(8,m=m+1)},w=()=>{if(m===0){l(8,m=11),l(9,c-=1);return}l(8,m-=1)},v=M=>{l(10,d=!1),t("datechange",M.detail)},E=()=>l(0,o=new Date),P=()=>l(10,d=!1),S=()=>l(10,d=!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,a=M.label),"labelHidden"in M&&l(3,s=M.labelHidden),"todayLabel"in M&&l(4,i=M.todayLabel),"closeLabel"in M&&l(5,u=M.closeLabel),"clearLabel"in M&&l(6,f=M.clearLabel),"disabled"in M&&l(7,_=M.disabled)},r.$$.update=()=>{r.$$.dirty&1&&(l(8,m=o.getMonth()),l(9,c=o.getFullYear()))},[o,n,a,s,i,u,f,_,m,c,d,p,h,k,w,v,E,P,S]}class Ht extends ie{constructor(e){super(),ae(this,e,qo,Uo,se,{isAllowed:1,selected:0,label:2,labelHidden:3,todayLabel:4,closeLabel:5,clearLabel:6,disabled:7})}}function $l(r){let e,l;return e=new Mr({props:{$$slots:{default:[Ko]},$$scope:{ctx:r}}}),{c(){L(e.$$.fragment)},l(t){T(e.$$.fragment,t)},m(t,n){D(e,t,n),l=!0},p(t,n){const o={};n&2056&&(o.$$scope={dirty:n,ctx:t}),e.$set(o)},i(t){l||(g(e.$$.fragment,t),l=!0)},o(t){$(e.$$.fragment,t),l=!1},d(t){y(e,t)}}}function jo(r){let e;return{c(){e=R("AM")},l(l){e=H(l,"AM")},m(l,t){I(l,e,t)},d(l){l&&b(e)}}}function zo(r){let e;return{c(){e=R("PM")},l(l){e=H(l,"PM")},m(l,t){I(l,e,t)},d(l){l&&b(e)}}}function Ko(r){let e,l,t,n;return e=new il({props:{active:r[3]==="AM",$$slots:{default:[jo]},$$scope:{ctx:r}}}),e.$on("click",r[9]),t=new il({props:{active:r[3]==="PM",$$slots:{default:[zo]},$$scope:{ctx:r}}}),t.$on("click",r[10]),{c(){L(e.$$.fragment),l=F(),L(t.$$.fragment)},l(o){T(e.$$.fragment,o),l=V(o),T(t.$$.fragment,o)},m(o,a){D(e,o,a),I(o,l,a),D(t,o,a),n=!0},p(o,a){const s={};a&8&&(s.active=o[3]==="AM"),a&2048&&(s.$$scope={dirty:a,ctx:o}),e.$set(s);const i={};a&8&&(i.active=o[3]==="PM"),a&2048&&(i.$$scope={dirty:a,ctx:o}),t.$set(i)},i(o){n||(g(e.$$.fragment,o),g(t.$$.fragment,o),n=!0)},o(o){$(e.$$.fragment,o),$(t.$$.fragment,o),n=!1},d(o){y(e,o),o&&b(l),y(t,o)}}}function Qo(r){let e,l,t,n,o,a,s,i,u,f,_;function m(v){r[6](v)}let c={id:"hour",label:"hrs",labelHidden:!0,placeholder:"00",suffix:"hrs",maxLength:2,hideCount:!0,error:r[4]?parseInt(r[0])>12:parseInt(r[0])>23,disabled:r[5]};r[0]!==void 0&&(c.value=r[0]),l=new ye({props:c}),ce.push(()=>_e(l,"value",m));function d(v){r[7](v)}let p={id:"minute",label:"min",labelHidden:!0,required:!0,placeholder:"00",suffix:"min",maxLength:2,hideCount:!0,error:Boolean(parseInt(r[0])>59),disabled:r[5]};r[1]!==void 0&&(p.value=r[1]),o=new ye({props:p}),ce.push(()=>_e(o,"value",d));function h(v){r[8](v)}let k={id:"second",label:"sec",labelHidden:!0,placeholder:"00",suffix:"sec",maxLength:2,hideCount:!0,error:Boolean(parseInt(r[0])>59),disabled:r[5]};r[2]!==void 0&&(k.value=r[2]),i=new ye({props:k}),ce.push(()=>_e(i,"value",h));let w=r[4]&&$l(r);return{c(){e=N("div"),L(l.$$.fragment),n=F(),L(o.$$.fragment),s=F(),L(i.$$.fragment),f=F(),w&&w.c(),this.h()},l(v){e=A(v,"DIV",{class:!0});var E=O(e);T(l.$$.fragment,E),n=V(E),T(o.$$.fragment,E),s=V(E),T(i.$$.fragment,E),f=V(E),w&&w.l(E),E.forEach(b),this.h()},h(){B(e,"class","flex gap-2")},m(v,E){I(v,e,E),D(l,e,null),C(e,n),D(o,e,null),C(e,s),D(i,e,null),C(e,f),w&&w.m(e,null),_=!0},p(v,[E]){const P={};E&17&&(P.error=v[4]?parseInt(v[0])>12:parseInt(v[0])>23),E&32&&(P.disabled=v[5]),!t&&E&1&&(t=!0,P.value=v[0],de(()=>t=!1)),l.$set(P);const S={};E&1&&(S.error=Boolean(parseInt(v[0])>59)),E&32&&(S.disabled=v[5]),!a&&E&2&&(a=!0,S.value=v[1],de(()=>a=!1)),o.$set(S);const M={};E&1&&(M.error=Boolean(parseInt(v[0])>59)),E&32&&(M.disabled=v[5]),!u&&E&4&&(u=!0,M.value=v[2],de(()=>u=!1)),i.$set(M),v[4]?w?(w.p(v,E),E&16&&g(w,1)):(w=$l(v),w.c(),g(w,1),w.m(e,null)):w&&(G(),$(w,1,1,()=>{w=null}),J())},i(v){_||(g(l.$$.fragment,v),g(o.$$.fragment,v),g(i.$$.fragment,v),g(w),_=!0)},o(v){$(l.$$.fragment,v),$(o.$$.fragment,v),$(i.$$.fragment,v),$(w),_=!1},d(v){v&&b(e),y(l),y(o),y(i),w&&w.d()}}}function Yo(r,e,l){let{hour:t=""}=e,{minute:n=""}=e,{second:o=""}=e,{half:a="AM"}=e,{twelveHourClock:s=!0}=e,{disabled:i=!1}=e;function u(d){t=d,l(0,t)}function f(d){n=d,l(1,n)}function _(d){o=d,l(2,o)}const m=()=>l(3,a="AM"),c=()=>l(3,a="PM");return r.$$set=d=>{"hour"in d&&l(0,t=d.hour),"minute"in d&&l(1,n=d.minute),"second"in d&&l(2,o=d.second),"half"in d&&l(3,a=d.half),"twelveHourClock"in d&&l(4,s=d.twelveHourClock),"disabled"in d&&l(5,i=d.disabled)},[t,n,o,a,s,i,u,f,_,m,c]}class Ut extends ie{constructor(e){super(),ae(this,e,Yo,Qo,se,{hour:0,minute:1,second:2,half:3,twelveHourClock:4,disabled:5})}}function kl(r,e,l){const t=r.slice();return t[16]=e[l].value,t[17]=e[l].label,t}function Go(r){let e;return{c(){e=R(r[6])},l(l){e=H(l,r[6])},m(l,t){I(l,e,t)},p(l,t){t&64&&x(e,l[6])},d(l){l&&b(e)}}}function Jo(r){let e=(r[17]??r[16])+"",l,t;return{c(){l=R(e),t=F()},l(n){l=H(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])+"")&&x(l,e)},d(n){n&&b(l),n&&b(t)}}}function wl(r){let e,l;function t(){return r[13](r[16])}return e=new Pe({props:{$$slots:{default:[Jo]},$$scope:{ctx:r}}}),e.$on("click",t),{c(){L(e.$$.fragment)},l(n){T(e.$$.fragment,n)},m(n,o){D(e,n,o),l=!0},p(n,o){r=n;const a={};o&1048577&&(a.$$scope={dirty:o,ctx:r}),e.$set(a)},i(n){l||(g(e.$$.fragment,n),l=!0)},o(n){$(e.$$.fragment,n),l=!1},d(n){y(e,n)}}}function Xo(r){let e,l,t=r[0],n=[];for(let a=0;a$(n[a],1,1,()=>{n[a]=null});return{c(){for(let a=0;al(5,a=v)),U(r,f,v=>l(7,s=v));const _=[{value:">"},{value:">="},{value:"="},{value:"<="},{value:"<"}];let{options:m=_}=e,{disabled:c=!1}=e,{inputId:d}=e,{noBorderLeft:p=!1}=e,{noBorderRight:h=!1}=e;function k(){t||te(u,a.conditional=m[0].value,a)}const w=v=>{te(u,a.conditional=v,a),te(f,s=d,s)};return r.$$set=v=>{"options"in v&&l(0,m=v.options),"disabled"in v&&l(1,c=v.disabled),"inputId"in v&&l(2,d=v.inputId),"noBorderLeft"in v&&l(3,p=v.noBorderLeft),"noBorderRight"in v&&l(4,h=v.noBorderRight)},r.$$.update=()=>{r.$$.dirty&33&&l(11,t=m.find(v=>v.value===a.conditional)),r.$$.dirty&1&&k(),r.$$.dirty&2049&&l(12,n=t??m[0]),r.$$.dirty&5120&&l(6,o=l(10,i=n==null?void 0:n.label)!==null&&i!==void 0?i:n==null?void 0:n.value)},[m,c,d,p,h,a,o,s,u,f,i,t,n,w]}class Et extends ie{constructor(e){super(),ae(this,e,ei,xo,se,{options:0,disabled:1,inputId:2,noBorderLeft:3,noBorderRight:4})}}function vl(r,e,l){const t=r.slice();return t[40]=e[l],t}function ti(r){let e=W("workflows.select-time")+"",l;return{c(){l=R(e)},l(t){l=H(t,e)},m(t,n){I(t,l,n)},p:j,d(t){t&&b(l)}}}function li(r){let e,l,t,n,o,a;return e=new Pe({props:{$$slots:{default:[ii]},$$scope:{ctx:r}}}),e.$on("click",r[33]),t=new It({}),o=new Pe({props:{$$slots:{default:[ai]},$$scope:{ctx:r}}}),o.$on("click",r[37]),{c(){L(e.$$.fragment),l=F(),L(t.$$.fragment),n=F(),L(o.$$.fragment)},l(s){T(e.$$.fragment,s),l=V(s),T(t.$$.fragment,s),n=V(s),T(o.$$.fragment,s)},m(s,i){D(e,s,i),I(s,l,i),D(t,s,i),I(s,n,i),D(o,s,i),a=!0},p(s,i){const u={};i[0]&2053|i[1]&4096&&(u.$$scope={dirty:i,ctx:s}),e.$set(u);const f={};i[0]&236|i[1]&4096&&(f.$$scope={dirty:i,ctx:s}),o.$set(f)},i(s){a||(g(e.$$.fragment,s),g(t.$$.fragment,s),g(o.$$.fragment,s),a=!0)},o(s){$(e.$$.fragment,s),$(t.$$.fragment,s),$(o.$$.fragment,s),a=!1},d(s){y(e,s),s&&b(l),y(t,s),s&&b(n),y(o,s)}}}function ni(r){let e,l,t,n,o,a;return e=new Pe({props:{$$slots:{default:[si]},$$scope:{ctx:r}}}),t=new It({}),o=new Pe({props:{$$slots:{default:[ui]},$$scope:{ctx:r}}}),{c(){L(e.$$.fragment),l=F(),L(t.$$.fragment),n=F(),L(o.$$.fragment)},l(s){T(e.$$.fragment,s),l=V(s),T(t.$$.fragment,s),n=V(s),T(o.$$.fragment,s)},m(s,i){D(e,s,i),I(s,l,i),D(t,s,i),I(s,n,i),D(o,s,i),a=!0},p(s,i){const u={};i[0]&232|i[1]&4096&&(u.$$scope={dirty:i,ctx:s}),e.$set(u);const f={};i[0]&1808|i[1]&4096&&(f.$$scope={dirty:i,ctx:s}),o.$set(f)},i(s){a||(g(e.$$.fragment,s),g(t.$$.fragment,s),g(o.$$.fragment,s),a=!0)},o(s){$(e.$$.fragment,s),$(t.$$.fragment,s),$(o.$$.fragment,s),a=!1},d(s){y(e,s),s&&b(l),y(t,s),s&&b(n),y(o,s)}}}function ri(r){let e=r[40]+"",l,t,n=W("common.ago")+"",o;return{c(){l=R(e),t=F(),o=R(n)},l(a){l=H(a,e),t=V(a),o=H(a,n)},m(a,s){I(a,l,s),I(a,t,s),I(a,o,s)},p:j,d(a){a&&b(l),a&&b(t),a&&b(o)}}}function Il(r){let e,l;return e=new Wr({props:{value:r[40],$$slots:{default:[ri]},$$scope:{ctx:r}}}),{c(){L(e.$$.fragment)},l(t){T(e.$$.fragment,t)},m(t,n){D(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||(g(e.$$.fragment,t),l=!0)},o(t){$(e.$$.fragment,t),l=!1},d(t){y(e,t)}}}function oi(r){let e,l,t=r[15],n=[];for(let a=0;a$(n[a],1,1,()=>{n[a]=null});return{c(){for(let a=0;a_e(o,"value",_));function c(p){r[32](p)}let d={unroundLeft:!0,id:"relative-datetime-unit-input",label:W("common.time-unit"),labelHidden:!0,disabled:r[2]!=="relative",$$slots:{default:[oi]},$$scope:{ctx:r}};return r[11]!==void 0&&(d.value=r[11]),i=new Vr({props:d}),ce.push(()=>_e(i,"value",c)),{c(){e=N("div"),L(l.$$.fragment),t=F(),n=N("div"),L(o.$$.fragment),s=F(),L(i.$$.fragment),this.h()},l(p){e=A(p,"DIV",{class:!0});var h=O(e);T(l.$$.fragment,h),t=V(h),n=A(h,"DIV",{class:!0});var k=O(n);T(o.$$.fragment,k),s=V(k),T(i.$$.fragment,k),k.forEach(b),h.forEach(b),this.h()},h(){B(n,"class","ml-6 flex gap-0 pt-2"),B(e,"class","flex flex-col")},m(p,h){I(p,e,h),D(l,e,null),C(e,t),C(e,n),D(o,n,null),C(n,s),D(i,n,null),f=!0},p(p,h){const k={};h[0]&1&&(k.error=p[20](p[0])),h[0]&4&&(k.disabled=p[2]!=="relative"),!a&&h[0]&1&&(a=!0,k.value=p[0],de(()=>a=!1)),o.$set(k);const w={};h[0]&4&&(w.disabled=p[2]!=="relative"),h[1]&4096&&(w.$$scope={dirty:h,ctx:p}),!u&&h[0]&2048&&(u=!0,w.value=p[11],de(()=>u=!1)),i.$set(w)},i(p){f||(g(l.$$.fragment,p),g(o.$$.fragment,p),g(i.$$.fragment,p),f=!0)},o(p){$(l.$$.fragment,p),$(o.$$.fragment,p),$(i.$$.fragment,p),f=!1},d(p){p&&b(e),y(l),y(o),y(i)}}}function ai(r){let e,l,t,n,o,a,s,i,u,f,_;l=new Sn({props:{label:W("common.absolute"),id:"absolute-time",value:"absolute",name:"time-filter-type",group:r[16]}}),o=new Ht({props:{label:"",labelHidden:!0,selected:r[3],todayLabel:W("common.today"),closeLabel:W("common.close"),clearLabel:W("common.clear-input-button-label"),disabled:r[2]!=="absolute"}}),o.$on("datechange",r[17]);function m(h){r[34](h)}function c(h){r[35](h)}function d(h){r[36](h)}let p={twelveHourClock:!1,disabled:r[2]!=="absolute"};return r[5]!==void 0&&(p.hour=r[5]),r[6]!==void 0&&(p.minute=r[6]),r[7]!==void 0&&(p.second=r[7]),s=new Ut({props:p}),ce.push(()=>_e(s,"hour",m)),ce.push(()=>_e(s,"minute",c)),ce.push(()=>_e(s,"second",d)),{c(){e=N("div"),L(l.$$.fragment),t=F(),n=N("div"),L(o.$$.fragment),a=F(),L(s.$$.fragment),this.h()},l(h){e=A(h,"DIV",{class:!0});var k=O(e);T(l.$$.fragment,k),t=V(k),n=A(k,"DIV",{class:!0});var w=O(n);T(o.$$.fragment,w),a=V(w),T(s.$$.fragment,w),w.forEach(b),k.forEach(b),this.h()},h(){B(n,"class","ml-6 flex flex-col gap-2"),B(e,"class","flex flex-col gap-2")},m(h,k){I(h,e,k),D(l,e,null),C(e,t),C(e,n),D(o,n,null),C(n,a),D(s,n,null),_=!0},p(h,k){const w={};k[0]&8&&(w.selected=h[3]),k[0]&4&&(w.disabled=h[2]!=="absolute"),o.$set(w);const v={};k[0]&4&&(v.disabled=h[2]!=="absolute"),!i&&k[0]&32&&(i=!0,v.hour=h[5],de(()=>i=!1)),!u&&k[0]&64&&(u=!0,v.minute=h[6],de(()=>u=!1)),!f&&k[0]&128&&(f=!0,v.second=h[7],de(()=>f=!1)),s.$set(v)},i(h){_||(g(l.$$.fragment,h),g(o.$$.fragment,h),g(s.$$.fragment,h),_=!0)},o(h){$(l.$$.fragment,h),$(o.$$.fragment,h),$(s.$$.fragment,h),_=!1},d(h){h&&b(e),y(l),y(o),y(s)}}}function si(r){let e,l,t,n,o,a,s,i;l=new Ht({props:{label:W("common.start"),selected:r[3],todayLabel:W("common.today"),closeLabel:W("common.close"),clearLabel:W("common.clear-input-button-label")}}),l.$on("datechange",r[17]);function u(c){r[25](c)}function f(c){r[26](c)}function _(c){r[27](c)}let m={twelveHourClock:!1};return r[5]!==void 0&&(m.hour=r[5]),r[6]!==void 0&&(m.minute=r[6]),r[7]!==void 0&&(m.second=r[7]),n=new Ut({props:m}),ce.push(()=>_e(n,"hour",u)),ce.push(()=>_e(n,"minute",f)),ce.push(()=>_e(n,"second",_)),{c(){e=N("div"),L(l.$$.fragment),t=F(),L(n.$$.fragment),this.h()},l(c){e=A(c,"DIV",{class:!0});var d=O(e);T(l.$$.fragment,d),t=V(d),T(n.$$.fragment,d),d.forEach(b),this.h()},h(){B(e,"class","flex flex-col gap-2")},m(c,d){I(c,e,d),D(l,e,null),C(e,t),D(n,e,null),i=!0},p(c,d){const p={};d[0]&8&&(p.selected=c[3]),l.$set(p);const h={};!o&&d[0]&32&&(o=!0,h.hour=c[5],de(()=>o=!1)),!a&&d[0]&64&&(a=!0,h.minute=c[6],de(()=>a=!1)),!s&&d[0]&128&&(s=!0,h.second=c[7],de(()=>s=!1)),n.$set(h)},i(c){i||(g(l.$$.fragment,c),g(n.$$.fragment,c),i=!0)},o(c){$(l.$$.fragment,c),$(n.$$.fragment,c),i=!1},d(c){c&&b(e),y(l),y(n)}}}function ui(r){let e,l,t,n,o,a,s,i;l=new Ht({props:{label:W("common.end"),selected:r[4],todayLabel:W("common.today"),closeLabel:W("common.close"),clearLabel:W("common.clear-input-button-label")}}),l.$on("datechange",r[18]);function u(c){r[28](c)}function f(c){r[29](c)}function _(c){r[30](c)}let m={twelveHourClock:!1};return r[8]!==void 0&&(m.hour=r[8]),r[9]!==void 0&&(m.minute=r[9]),r[10]!==void 0&&(m.second=r[10]),n=new Ut({props:m}),ce.push(()=>_e(n,"hour",u)),ce.push(()=>_e(n,"minute",f)),ce.push(()=>_e(n,"second",_)),{c(){e=N("div"),L(l.$$.fragment),t=F(),L(n.$$.fragment),this.h()},l(c){e=A(c,"DIV",{class:!0});var d=O(e);T(l.$$.fragment,d),t=V(d),T(n.$$.fragment,d),d.forEach(b),this.h()},h(){B(e,"class","flex flex-col gap-2")},m(c,d){I(c,e,d),D(l,e,null),C(e,t),D(n,e,null),i=!0},p(c,d){const p={};d[0]&16&&(p.selected=c[4]),l.$set(p);const h={};!o&&d[0]&256&&(o=!0,h.hour=c[8],de(()=>o=!1)),!a&&d[0]&512&&(a=!0,h.minute=c[9],de(()=>a=!1)),!s&&d[0]&1024&&(s=!0,h.second=c[10],de(()=>s=!1)),n.$set(h)},i(c){i||(g(l.$$.fragment,c),g(n.$$.fragment,c),i=!0)},o(c){$(l.$$.fragment,c),$(n.$$.fragment,c),i=!1},d(c){c&&b(e),y(l),y(n)}}}function fi(r){let e=W("common.apply")+"",l;return{c(){l=R(e)},l(t){l=H(t,e)},m(t,n){I(t,l,n)},p:j,d(t){t&&b(l)}}}function ci(r){let e,l,t=W("common.based-on-time-preface")+"",n,o,a,s;return e=new We({props:{name:"clock","aria-hidden":"true"}}),{c(){L(e.$$.fragment),l=F(),n=R(t),o=F(),a=R(r[13])},l(i){T(e.$$.fragment,i),l=V(i),n=H(i,t),o=V(i),a=H(i,r[13])},m(i,u){D(e,i,u),I(i,l,u),I(i,n,u),I(i,o,u),I(i,a,u),s=!0},p(i,u){(!s||u[0]&8192)&&x(a,i[13])},i(i){s||(g(e.$$.fragment,i),s=!0)},o(i){$(e.$$.fragment,i),s=!1},d(i){y(e,i),i&&b(l),i&&b(n),i&&b(o),i&&b(a)}}}function mi(r){let e,l,t,n,o,a,s,i,u,f;const _=[ni,li],m=[];function c(d,p){return d[1]?0:1}return e=c(r),l=m[e]=_[e](r),n=new It({}),s=new tt({props:{size:"xs",style:"width: 100%",disabled:r[12],$$slots:{default:[fi]},$$scope:{ctx:r}}}),s.$on("click",r[19]),u=new Pe({props:{centered:!0,disabled:!0,class:"!pt-0",$$slots:{default:[ci]},$$scope:{ctx:r}}}),{c(){l.c(),t=F(),L(n.$$.fragment),o=F(),a=N("div"),L(s.$$.fragment),i=F(),L(u.$$.fragment),this.h()},l(d){l.l(d),t=V(d),T(n.$$.fragment,d),o=V(d),a=A(d,"DIV",{class:!0});var p=O(a);T(s.$$.fragment,p),p.forEach(b),i=V(d),T(u.$$.fragment,d),this.h()},h(){B(a,"class","flex items-center p-2")},m(d,p){m[e].m(d,p),I(d,t,p),D(n,d,p),I(d,o,p),I(d,a,p),D(s,a,null),I(d,i,p),D(u,d,p),f=!0},p(d,p){let h=e;e=c(d),e===h?m[e].p(d,p):(G(),$(m[h],1,1,()=>{m[h]=null}),J(),l=m[e],l?l.p(d,p):(l=m[e]=_[e](d),l.c()),g(l,1),l.m(t.parentNode,t));const k={};p[0]&4096&&(k.disabled=d[12]),p[1]&4096&&(k.$$scope={dirty:p,ctx:d}),s.$set(k);const w={};p[0]&8192|p[1]&4096&&(w.$$scope={dirty:p,ctx:d}),u.$set(w)},i(d){f||(g(l),g(n.$$.fragment,d),g(s.$$.fragment,d),g(u.$$.fragment,d),f=!0)},o(d){$(l),$(n.$$.fragment,d),$(s.$$.fragment,d),$(u.$$.fragment,d),f=!1},d(d){m[e].d(d),d&&b(t),y(n,d),d&&b(o),d&&b(a),y(s),d&&b(i),y(u,d)}}}function _i(r){let e,l,t,n;return e=new ft({props:{unroundLeft:!0,id:"time-range-filter",controls:"time-range-filter-menu",class:"whitespace-nowrap",$$slots:{default:[ti]},$$scope:{ctx:r}}}),t=new ct({props:{keepOpen:!0,id:"time-range-filter-menu",class:"w-[27rem] !overflow-visible",$$slots:{default:[mi]},$$scope:{ctx:r}}}),{c(){L(e.$$.fragment),l=F(),L(t.$$.fragment)},l(o){T(e.$$.fragment,o),l=V(o),T(t.$$.fragment,o)},m(o,a){D(e,o,a),I(o,l,a),D(t,o,a),n=!0},p(o,a){const s={};a[1]&4096&&(s.$$scope={dirty:a,ctx:o}),e.$set(s);const i={};a[0]&16383|a[1]&4096&&(i.$$scope={dirty:a,ctx:o}),t.$set(i)},i(o){n||(g(e.$$.fragment,o),g(t.$$.fragment,o),n=!0)},o(o){$(e.$$.fragment,o),$(t.$$.fragment,o),n=!1},d(o){y(e,o),o&&b(l),y(t,o)}}}function di(r){let e,l,t,n,o;return l=new Et({props:{inputId:"time-range-filter",options:[{value:"<=",label:W("common.before")},{value:"BETWEEN",label:W("common.between")},{value:">=",label:W("common.after")}],noBorderLeft:!0,noBorderRight:!0}}),n=new ut({props:{$$slots:{default:[_i]},$$scope:{ctx:r}}}),{c(){e=N("div"),L(l.$$.fragment),t=F(),L(n.$$.fragment),this.h()},l(a){e=A(a,"DIV",{class:!0});var s=O(e);T(l.$$.fragment,s),t=V(s),T(n.$$.fragment,s),s.forEach(b),this.h()},h(){B(e,"class","flex items-center")},m(a,s){I(a,e,s),D(l,e,null),C(e,t),D(n,e,null),o=!0},p(a,s){const i={};s[0]&16383|s[1]&4096&&(i.$$scope={dirty:s,ctx:a}),n.$set(i)},i(a){o||(g(l.$$.fragment,a),g(n.$$.fragment,a),o=!0)},o(a){$(l.$$.fragment,a),$(n.$$.fragment,a),o=!1},d(a){a&&b(e),y(l),y(n)}}}function pi(r,e,l){let t,n,o,a,s,i,u,f;U(r,Ot,le=>l(23,i=le)),U(r,kt,le=>l(24,f=le));const{filter:_,handleSubmit:m}=Ve(Be);U(r,_,le=>l(22,s=le));let c=dt(new Date),d=dt(new Date),p="",h="",k="",w="",v="",E="";const P=["minutes","hours","days"];let S=P[0],M="";const Z=Ue("relative");U(r,Z,le=>l(2,u=le));const ee=le=>{l(3,c=dt(le.detail))},Y=le=>{l(4,d=dt(le.detail))},q=(le,Me)=>{let Se=new Date(le);return Me.hour&&(Se=no(Se,parseInt(Me.hour))),Me.minute&&(Se=oo(Se,parseInt(Me.minute))),Me.second&&(Se=io(Se,parseInt(Me.second))),Se},ne=()=>{if(u==="relative"&&!o){if(!M)return;te(_,s.value=Ct(`${M} ${S}`),s),te(_,s.customDate=!1,s)}else{let le=q(c,{hour:p,minute:h,second:k}),Me=q(d,{hour:w,minute:v,second:E});const Se=Dr(i),zt=ll.zonedTimeToUtc(le,Se).toISOString(),Gn=ll.zonedTimeToUtc(Me,Se).toISOString(),Jn=o?`BETWEEN "${zt}" AND "${Gn}"`:zt;te(_,s.value=Jn,s),t?(te(_,s.customDate=!0,s),te(_,s.conditional="",s)):te(_,s.customDate=!1,s)}m()},oe=le=>le?isNaN(Number(le))||isNaN(parseFloat(le)):!1;function z(le){p=le,l(5,p)}function pe(le){h=le,l(6,h)}function ue(le){k=le,l(7,k)}function K(le){w=le,l(8,w)}function re(le){v=le,l(9,v)}function Q(le){E=le,l(10,E)}function be(le){M=le,l(0,M)}function he(le){S=le,l(11,S)}const $e=()=>te(Z,u="relative",u);function Ce(le){p=le,l(5,p)}function _t(le){h=le,l(6,h)}function Qn(le){k=le,l(7,k)}const Yn=()=>te(Z,u="absolute",u);return r.$$.update=()=>{r.$$.dirty[0]&4194304&&l(1,t=s.conditional==="BETWEEN"),r.$$.dirty[0]&8388608&&l(13,n=Tr(i)),r.$$.dirty[0]&16777218&&l(21,o=t||!f),r.$$.dirty[0]&2097157&&l(12,a=u==="relative"&&!o&&(!M||oe(M)))},[M,t,u,c,d,p,h,k,w,v,E,S,a,n,_,P,Z,ee,Y,ne,oe,o,s,i,f,z,pe,ue,K,re,Q,be,he,$e,Ce,_t,Qn,Yn]}class hi extends ie{constructor(e){super(),ae(this,e,pi,di,se,{},null,[-1,-1])}}function bi(r){let e,l,t,n,o;e=new Et({props:{inputId:"duration-filter-search",noBorderLeft:!0}});function a(i){r[6](i)}let s={label:r[2].attribute,labelHidden:!0,id:"duration-filter-search",type:"search",placeholder:`${W("common.enter")} ${r[2].attribute} (${W("workflows.duration-filter-placeholder")})`,icon:"search",class:"w-full",unroundLeft:!0,valid:r[1]};return r[0]!==void 0&&(s.value=r[0]),t=new ye({props:s}),ce.push(()=>_e(t,"value",a)),t.$on("keydown",r[4]),t.$on("input",r[5]),{c(){L(e.$$.fragment),l=F(),L(t.$$.fragment)},l(i){T(e.$$.fragment,i),l=V(i),T(t.$$.fragment,i)},m(i,u){D(e,i,u),I(i,l,u),D(t,i,u),o=!0},p(i,[u]){const f={};u&4&&(f.label=i[2].attribute),u&4&&(f.placeholder=`${W("common.enter")} ${i[2].attribute} (${W("workflows.duration-filter-placeholder")})`),u&2&&(f.valid=i[1]),!n&&u&1&&(n=!0,f.value=i[0],de(()=>n=!1)),t.$set(f)},i(i){o||(g(e.$$.fragment,i),g(t.$$.fragment,i),o=!0)},o(i){$(e.$$.fragment,i),$(t.$$.fragment,i),o=!1},d(i){y(e,i),i&&b(l),y(t,i)}}}function gi(r,e,l){let t;const{filter:n,handleSubmit:o}=Ve(Be);U(r,n,_=>l(2,t=_));let a=t.value,s=!0;const i=_=>{const m=a.trim();s&&_.key==="Enter"&&m!==""&&(te(n,t.value=m,t),_.preventDefault(),o())},u=_=>{Lr(_.target.value.trim())?l(1,s=!0):l(1,s=!1)};function f(_){a=_,l(0,a)}return[a,s,t,n,i,u,f]}class $i extends ie{constructor(e){super(),ae(this,e,gi,bi,se,{})}}function ki(r){let e;const l=r[5].default,t=ke(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)&&we(t,l,n,n[4],e?Ie(l,n[4],o,null):ve(n[4]),null)},i(n){e||(g(t,n),e=!0)},o(n){$(t,n),e=!1},d(n){t&&t.d(n)}}}function wi(r){let e,l,t,n;const o=r[5].default,a=ke(o,r,r[4],null);return{c(){e=N("button"),a&&a.c(),this.h()},l(s){e=A(s,"BUTTON",{class:!0});var i=O(e);a&&a.l(i),i.forEach(b),this.h()},h(){B(e,"class","flex items-center gap-1")},m(s,i){I(s,e,i),a&&a.m(e,null),l=!0,t||(n=fe(e,"click",r[6]),t=!0)},p(s,i){a&&a.p&&(!l||i&16)&&we(a,o,s,s[4],l?Ie(o,s[4],i,null):ve(s[4]),null)},i(s){l||(g(a,s),l=!0)},o(s){$(a,s),l=!1},d(s){s&&b(e),a&&a.d(s),t=!1,n()}}}function vi(r){let e,l,t,n,o,a,s,i,u,f;const _=[wi,ki],m=[];function c(d,p){return d[1]?0:1}return l=c(r),t=m[l]=_[l](r),a=new We({props:{name:"close"}}),{c(){e=N("span"),t.c(),n=F(),o=N("button"),L(a.$$.fragment),this.h()},l(d){e=A(d,"SPAN",{class:!0});var p=O(e);t.l(p),n=V(p),o=A(p,"BUTTON",{"aria-label":!0});var h=O(o);T(a.$$.fragment,h),h.forEach(b),p.forEach(b),this.h()},h(){B(o,"aria-label",r[2]),B(e,"class",s="chip "+r[0]+" svelte-jjsz31")},m(d,p){I(d,e,p),m[l].m(e,null),C(e,n),C(e,o),D(a,o,null),i=!0,u||(f=fe(o,"click",r[3]),u=!0)},p(d,[p]){let h=l;l=c(d),l===h?m[l].p(d,p):(G(),$(m[h],1,1,()=>{m[h]=null}),J(),t=m[l],t?t.p(d,p):(t=m[l]=_[l](d),t.c()),g(t,1),t.m(e,n)),(!i||p&4)&&B(o,"aria-label",d[2]),(!i||p&1&&s!==(s="chip "+d[0]+" svelte-jjsz31"))&&B(e,"class",s)},i(d){i||(g(t),g(a.$$.fragment,d),i=!0)},o(d){$(t),$(a.$$.fragment,d),i=!1},d(d){d&&b(e),m[l].d(),y(a),u=!1,f()}}}function Ii(r,e,l){let{$$slots:t={},$$scope:n}=e,{intent:o="default"}=e,{button:a=!1}=e,{removeButtonLabel:s}=e;const i=at(),u=_=>{_.preventDefault(),i("remove")};function f(_){Re.call(this,r,_)}return r.$$set=_=>{"intent"in _&&l(0,o=_.intent),"button"in _&&l(1,a=_.button),"removeButtonLabel"in _&&l(2,s=_.removeButtonLabel),"$$scope"in _&&l(4,n=_.$$scope)},[o,a,s,u,n,t,f]}class Ei extends ie{constructor(e){super(),ae(this,e,Ii,vi,se,{intent:0,button:1,removeButtonLabel:2})}}function El(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 Ll(r){let e,l,t,n,o;function a(){return r[14](r[24])}function s(){return r[15](r[24],r[17])}return l=new Ei({props:{removeButtonLabel:W("workflows.remove-filter-label",{attribute:r[18]}),intent:"default",button:!0,$$slots:{default:[Si]},$$scope:{ctx:r}}}),l.$on("remove",a),l.$on("click",s),{c(){e=N("div"),L(l.$$.fragment),this.h()},l(i){e=A(i,"DIV",{"data-testid":!0});var u=O(e);T(l.$$.fragment,u),u.forEach(b),this.h()},h(){B(e,"data-testid",t=r[17].attribute+"-"+r[24])},m(i,u){I(i,e,u),D(l,e,null),o=!0},p(i,u){r=i;const f={};u&2&&(f.removeButtonLabel=W("workflows.remove-filter-label",{attribute:r[18]})),u&33554482&&(f.$$scope={dirty:u,ctx:r}),l.$set(f),(!o||u&2&&t!==(t=r[17].attribute+"-"+r[24]))&&B(e,"data-testid",t)},i(i){o||(g(l.$$.fragment,i),n||je(()=>{n=ze(e,Tn,{}),n.start()}),o=!0)},o(i){$(l.$$.fragment,i),o=!1},d(i){i&&b(e),y(l)}}}function Li(r){let e,l=r[18]+"",t,n,o;function a(u,f){return f&2&&(o=null),o==null&&(o=!!Rt({attribute:u[18],type:u[19]})),o?yi:Di}let s=a(r,-1),i=s(r);return{c(){e=N("span"),t=R(l),n=F(),i.c(),this.h()},l(u){e=A(u,"SPAN",{class:!0});var f=O(e);t=H(f,l),n=V(f),i.l(f),f.forEach(b),this.h()},h(){B(e,"class","max-w-xs truncate md:max-w-lg xl:max-w-2xl")},m(u,f){I(u,e,f),C(e,t),C(e,n),i.m(e,null)},p(u,f){f&2&&l!==(l=u[18]+"")&&x(t,l),s===(s=a(u,f))&&i?i.p(u,f):(i.d(1),i=s(u),i&&(i.c(),i.m(e,null)))},i:j,o:j,d(u){u&&b(e),i.d()}}}function Ti(r){let e,l=r[18]+"",t,n,o=r[21]+"",a,s,i,u,f;return u=new Pt({props:{status:r[20]}}),{c(){e=N("span"),t=R(l),n=F(),a=R(o),s=F(),i=N("span"),L(u.$$.fragment),this.h()},l(_){e=A(_,"SPAN",{class:!0});var m=O(e);t=H(m,l),n=V(m),a=H(m,o),s=V(m),i=A(m,"SPAN",{class:!0});var c=O(i);T(u.$$.fragment,c),c.forEach(b),m.forEach(b),this.h()},h(){B(i,"class","-py-1 ml-1"),B(e,"class","flex")},m(_,m){I(_,e,m),C(e,t),C(e,n),C(e,a),C(e,s),C(e,i),D(u,i,null),f=!0},p(_,m){(!f||m&2)&&l!==(l=_[18]+"")&&x(t,l),(!f||m&2)&&o!==(o=_[21]+"")&&x(a,o);const c={};m&2&&(c.status=_[20]),u.$set(c)},i(_){f||(g(u.$$.fragment,_),f=!0)},o(_){$(u.$$.fragment,_),f=!1},d(_){_&&b(e),y(u)}}}function Di(r){let e=r[21]+"",l,t,n=(ot({attribute:r[18],type:r[19]})?`"${r[20]}"`:r[20])+"",o;return{c(){l=R(e),t=F(),o=R(n)},l(a){l=H(a,e),t=V(a),o=H(a,n)},m(a,s){I(a,l,s),I(a,t,s),I(a,o,s)},p(a,s){s&2&&e!==(e=a[21]+"")&&x(l,e),s&2&&n!==(n=(ot({attribute:a[18],type:a[19]})?`"${a[20]}"`:a[20])+"")&&x(o,n)},d(a){a&&b(l),a&&b(t),a&&b(o)}}}function yi(r){let e;function l(o,a){return o[22]?Ci:Bi}let t=l(r),n=t(r);return{c(){n.c(),e=X()},l(o){n.l(o),e=X()},m(o,a){n.m(o,a),I(o,e,a)},p(o,a){t===(t=l(o))&&n?n.p(o,a):(n.d(1),n=t(o),n&&(n.c(),n.m(e.parentNode,e)))},d(o){n.d(o),o&&b(e)}}}function Bi(r){let e=r[10](r[21])+"",l,t,n=Ee(r[20],r[4],{relative:r[5],abbrFormat:!0})+"",o;return{c(){l=R(e),t=F(),o=R(n)},l(a){l=H(a,e),t=V(a),o=H(a,n)},m(a,s){I(a,l,s),I(a,t,s),I(a,o,s)},p(a,s){s&2&&e!==(e=a[10](a[21])+"")&&x(l,e),s&50&&n!==(n=Ee(a[20],a[4],{relative:a[5],abbrFormat:!0})+"")&&x(o,n)},d(a){a&&b(l),a&&b(t),a&&b(o)}}}function Ci(r){let e=r[11](r[20],r[4],r[5])+"",l;return{c(){l=R(e)},l(t){l=H(t,e)},m(t,n){I(t,l,n)},p(t,n){n&50&&e!==(e=t[11](t[20],t[4],t[5])+"")&&x(l,e)},d(t){t&&b(l)}}}function Si(r){let e,l,t,n,o;const a=[Ti,Li],s=[];function i(u,f){return f&2&&(e=null),e==null&&(e=!!(u[18]==="ExecutionStatus"&&ir(u[20]))),e?0:1}return l=i(r,-1),t=s[l]=a[l](r),{c(){t.c(),n=X()},l(u){t.l(u),n=X()},m(u,f){s[l].m(u,f),I(u,n,f),o=!0},p(u,f){let _=l;l=i(u,f),l===_?s[l].p(u,f):(G(),$(s[_],1,1,()=>{s[_]=null}),J(),t=s[l],t?t.p(u,f):(t=s[l]=a[l](u),t.c()),g(t,1),t.m(n.parentNode,n))},i(u){o||(g(t),o=!0)},o(u){$(t),o=!1},d(u){s[l].d(u),u&&b(n)}}}function Tl(r,e){let l,t,n,o=e[18]&&Ll(e);return{key:r,first:null,c(){l=X(),o&&o.c(),t=X(),this.h()},l(a){l=X(),o&&o.l(a),t=X(),this.h()},h(){this.first=l},m(a,s){I(a,l,s),o&&o.m(a,s),I(a,t,s),n=!0},p(a,s){e=a,e[18]?o?(o.p(e,s),s&2&&g(o,1)):(o=Ll(e),o.c(),g(o,1),o.m(t.parentNode,t)):o&&(G(),$(o,1,1,()=>{o=null}),J())},i(a){n||(g(o),n=!0)},o(a){$(o),n=!1},d(a){a&&b(l),o&&o.d(a),a&&b(t)}}}function Dl(r){let e,l;return e=new tt({props:{variant:"secondary",size:"xs",$$slots:{default:[Ni]},$$scope:{ctx:r}}}),e.$on("click",r[9]),{c(){L(e.$$.fragment)},l(t){T(e.$$.fragment,t)},m(t,n){D(e,t,n),l=!0},p(t,n){const o={};n&33554432&&(o.$$scope={dirty:n,ctx:t}),e.$set(o)},i(t){l||(g(e.$$.fragment,t),l=!0)},o(t){$(e.$$.fragment,t),l=!1},d(t){y(e,t)}}}function Ni(r){let e=W("common.view-more")+"",l;return{c(){l=R(e)},l(t){l=H(t,e)},m(t,n){I(t,l,n)},p:j,d(t){t&&b(l)}}}function Ai(r){let e,l=[],t=new Map,n,o,a=r[1];const s=u=>`${u[17].attribute}-${u[24]}`;for(let u=0;u{i=null}),J()),(!o||f&2)&&me(e,"pt-2",u[1].length)},i(u){if(!o){for(let f=0;fl(13,o=E)),U(r,De,E=>l(16,i=E)),U(r,Ot,E=>l(4,u=E)),U(r,Bn,E=>l(5,f=E));const{filter:_,activeQueryIndex:m}=Ve(Be);U(r,_,E=>l(3,s=E)),U(r,m,E=>l(2,a=E));const c=E=>{if(o.splice(E,1),ge.set(o),Mt(i.url,o),E===o.length){const P=o[o.length-1];P&&(P.operator="")}E===a?(te(m,a=null,a),te(_,s=qe(),s)):E{n&&l(12,d+=5)},h=E=>["<","<="].includes(E)?W("common.before").toLowerCase():[">",">="].includes(E)?W("common.after").toLowerCase():E,k=(E,P,S)=>{const[M,Z,ee,Y]=E.split(" ");return`${M.toLowerCase()} ${Ee(Z,P,{relative:S,abbrFormat:!0})} ${ee.toLowerCase()} ${Ee(Y,P,{relative:S,abbrFormat:!0})}`},w=E=>c(E),v=(E,P)=>{te(m,a=E,a),te(_,s={...P},s)};return r.$$.update=()=>{r.$$.dirty&12288&&l(1,t=o.slice(0,d)),r.$$.dirty&12288&&l(0,n=d{v=null}),J()),(!h||S&2048)&&B(i,"max",P[11]),(!h||S&4096)&&B(i,"min",P[12]),(!h||S&256)&&(i.disabled=P[8]),(!h||S&64)&&B(i,"placeholder",P[6]),(!h||S&4)&&B(i,"id",P[2]),(!h||S&128)&&B(i,"name",P[7]),S&1&&Ln(i.value)!==P[0]&&Qt(i,P[0]),(!h||S&256)&&me(i,"disabled",P[8]),(!h||S&512&&u!==(u="input-container "+P[9]+" svelte-1851tme"))&&B(a,"class",u),(!h||S&768)&&me(a,"disabled",P[8]),(!h||S&33280)&&me(a,"search",P[15]),(!h||S&8704)&&me(a,"unroundRight",P[13]),(!h||S&16896)&&me(a,"unroundLeft",P[14]),(!h||S&66048)&&me(a,"invalid",!P[16]),(!h||S&32)&&x(m,P[5]),(!h||S&131072&&c!==(c=Kt(P[17].class)+" svelte-1851tme"))&&B(e,"class",c),!P[16]&&P[10]?E?E.p(P,S):(E=Bl(P),E.c(),E.m(p.parentNode,p)):E&&(E.d(1),E=null)},i(P){h||(g(v),h=!0)},o(P){$(v),h=!1},d(P){P&&b(e),v&&v.d(),P&&b(d),E&&E.d(P),P&&b(p),k=!1,st(w)}}}function Vi(r,e,l){let{icon:t=null}=e,{id:n}=e,{value:o}=e,{label:a}=e,{labelHidden:s=!1}=e,{units:i=""}=e,{placeholder:u=""}=e,{name:f=n}=e,{disabled:_=!1}=e,{theme:m="light"}=e,{hintText:c=""}=e,{max:d=void 0}=e,{min:p=void 0}=e,{unroundRight:h=!1}=e,{unroundLeft:k=!1}=e,{search:w=!1}=e,v=!0;const E=q=>{p!==void 0&&qd?l(16,v=!1):l(16,v=!0)};function P(q){Re.call(this,r,q)}function S(q){Re.call(this,r,q)}function M(q){Re.call(this,r,q)}function Z(q){Re.call(this,r,q)}function ee(q){Re.call(this,r,q)}function Y(){o=Ln(this.value),l(0,o)}return r.$$set=q=>{l(17,e=bt(bt({},e),gt(q))),"icon"in q&&l(1,t=q.icon),"id"in q&&l(2,n=q.id),"value"in q&&l(0,o=q.value),"label"in q&&l(3,a=q.label),"labelHidden"in q&&l(4,s=q.labelHidden),"units"in q&&l(5,i=q.units),"placeholder"in q&&l(6,u=q.placeholder),"name"in q&&l(7,f=q.name),"disabled"in q&&l(8,_=q.disabled),"theme"in q&&l(9,m=q.theme),"hintText"in q&&l(10,c=q.hintText),"max"in q&&l(11,d=q.max),"min"in q&&l(12,p=q.min),"unroundRight"in q&&l(13,h=q.unroundRight),"unroundLeft"in q&&l(14,k=q.unroundLeft),"search"in q&&l(15,w=q.search)},r.$$.update=()=>{r.$$.dirty&1&&E(o)},e=gt(e),[o,t,n,a,s,i,u,f,_,m,c,d,p,h,k,w,v,e,P,S,M,Z,ee,Y]}class Wi extends ie{constructor(e){super(),ae(this,e,Vi,Fi,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 Mi(r){let e,l,t,n,o,a;l=new Et({props:{inputId:"number-filter-search",noBorderLeft:!0,noBorderRight:!0}});function s(u){r[4](u)}let i={label:W("common.number-input-placeholder"),labelHidden:!0,id:"number-filter-search",icon:"search",placeholder:W("common.number-input-placeholder"),min:Un,unroundLeft:!0,search:!0,class:"-mr-2"};return r[0]!==void 0&&(i.value=r[0]),n=new Wi({props:i}),ce.push(()=>_e(n,"value",s)),n.$on("keydown",r[3]),{c(){e=N("div"),L(l.$$.fragment),t=F(),L(n.$$.fragment),this.h()},l(u){e=A(u,"DIV",{class:!0});var f=O(e);T(l.$$.fragment,f),t=V(f),T(n.$$.fragment,f),f.forEach(b),this.h()},h(){B(e,"class","flex items-center")},m(u,f){I(u,e,f),D(l,e,null),C(e,t),D(n,e,null),a=!0},p(u,[f]){const _={};!o&&f&1&&(o=!0,_.value=u[0],de(()=>o=!1)),n.$set(_)},i(u){a||(g(l.$$.fragment,u),g(n.$$.fragment,u),a=!0)},o(u){$(l.$$.fragment,u),$(n.$$.fragment,u),a=!1},d(u){u&&b(e),y(l),y(n)}}}const Un=0;function Ri(r,e,l){let t,n;const{filter:o,focusedElementId:a,handleSubmit:s}=Ve(Be);U(r,o,_=>l(5,t=_)),U(r,a,_=>l(6,n=_));let i=t.value?Number(t.value):null;const u=_=>{te(a,n="",n),_.key==="Enter"&&i!==null&&i>=Un&&(te(o,t.value=String(i),t),_.preventDefault(),s())};function f(_){i=_,l(0,i)}return[i,o,a,u,f]}class Hi extends ie{constructor(e){super(),ae(this,e,Ri,Mi,se,{})}}const{Boolean:Ui}=xn;function Cl(r,e,l){const t=r.slice();t[15]=e[l].value,t[16]=e[l].label,t[17]=e[l].type;const n=Ji(t[15],t[4]);return t[18]=n,t}function qi(r){let e=(r[2].attribute||W("workflows.filter"))+"",l;return{c(){l=R(e)},l(t){l=H(t,e)},m(t,n){I(t,l,n)},p(t,n){n&4&&e!==(e=(t[2].attribute||W("workflows.filter"))+"")&&x(l,e)},d(t){t&&b(l)}}}function Sl(r){let e,l;return e=new We({props:{name:"filter"}}),{c(){L(e.$$.fragment)},l(t){T(e.$$.fragment,t)},m(t,n){D(e,t,n),l=!0},i(t){l||(g(e.$$.fragment,t),l=!0)},o(t){$(e.$$.fragment,t),l=!1},d(t){y(e,t)}}}function ji(r){let e,l,t=!r[2].attribute&&Sl();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&&g(t,1):(t=Sl(),t.c(),g(t,1),t.m(e.parentNode,e))},i(n){l||(g(t),l=!0)},o(n){$(t),l=!1},d(n){t&&t.d(n),n&&b(e)}}}function Nl(r){let e,l;return e=new Pe({props:{class:"whitespace-nowrap",disabled:!0,$$slots:{default:[zi]},$$scope:{ctx:r}}}),{c(){L(e.$$.fragment)},l(t){T(e.$$.fragment,t)},m(t,n){D(e,t,n),l=!0},p(t,n){const o={};n&2097152&&(o.$$scope={dirty:n,ctx:t}),e.$set(o)},i(t){l||(g(e.$$.fragment,t),l=!0)},o(t){$(e.$$.fragment,t),l=!1},d(t){y(e,t)}}}function zi(r){let e=W("common.no-results")+"",l;return{c(){l=R(e)},l(t){l=H(t,e)},m(t,n){I(t,l,n)},p:j,d(t){t&&b(l)}}}function Ki(r){let e=r[16]+"",l,t;return{c(){l=R(e),t=F()},l(n){l=H(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]+"")&&x(l,e)},d(n){n&&b(l),n&&b(t)}}}function Al(r){let e,l;function t(){return r[13](r[15],r[17])}return e=new Pe({props:{disabled:r[18],$$slots:{default:[Ki]},$$scope:{ctx:r}}}),e.$on("click",t),{c(){L(e.$$.fragment)},l(n){T(e.$$.fragment,n)},m(n,o){D(e,n,o),l=!0},p(n,o){r=n;const a={};o&18&&(a.disabled=r[18]),o&2097154&&(a.$$scope={dirty:o,ctx:r}),e.$set(a)},i(n){l||(g(e.$$.fragment,n),l=!0)},o(n){$(e.$$.fragment,n),l=!1},d(n){y(e,n)}}}function Qi(r){let e,l,t,n,o;function a(m){r[12](m)}let s={label:W("common.search"),labelHidden:!0,id:"filter-search",noBorder:!0,icon:"search",placeholder:W("common.search"),class:"mb-1"};r[0]!==void 0&&(s.value=r[0]),e=new ye({props:s}),ce.push(()=>_e(e,"value",a));let i=r[1],u=[];for(let m=0;m$(u[m],1,1,()=>{u[m]=null});let _=null;return i.length||(_=Nl(r)),{c(){L(e.$$.fragment),t=F();for(let m=0;ml=!1)),e.$set(d),c&274){i=m[1];let p;for(p=0;p{_=null}),J()):(_=Nl(m),_.c(),g(_,1),_.m(n.parentNode,n))}},i(m){if(!o){g(e.$$.fragment,m);for(let c=0;c(l.conditional==="="||l.conditional==="!=")&&l.attribute===r)}function Xi(r,e,l){let t,n,o,a,s,i,u;U(r,Nr,w=>l(10,o=w)),U(r,ge,w=>l(4,u=w));const{filter:f,activeQueryIndex:_,focusedElementId:m}=Ve(Be);U(r,f,w=>l(2,s=w)),U(r,_,w=>l(3,i=w)),U(r,m,w=>l(14,a=w));function c(w,v){l(0,d=""),f.set({...qe(),attribute:w,conditional:"=",type:v}),te(m,a=Hn({attribute:w,type:v}),a)}let d="";const p=()=>l(0,d="");function h(w){d=w,l(0,d)}const k=(w,v)=>{c(w,v)};return r.$$.update=()=>{r.$$.dirty&1024&&l(9,t=o.filter(({value:w,type:v})=>!Wn({attribute:w,type:v}))),r.$$.dirty&513&&l(1,n=d?t.filter(w=>w.value.toLowerCase().includes(d.toLowerCase())):t)},[d,n,s,i,u,f,_,m,c,t,o,p,h,k]}class Zi extends ie{constructor(e){super(),ae(this,e,Xi,Gi,se,{})}}function Ol(r,e,l){const t=r.slice();t[17]=e[l];const n=t[0].some(function(...a){return r[12](t[17],...a)})||!t[0].length&&t[17]==="All";return t[18]=n,t}function xi(r){let e=r[1].attribute+"",l;return{c(){l=R(e)},l(t){l=H(t,e)},m(t,n){I(t,l,n)},p(t,n){n&2&&e!==(e=t[1].attribute+"")&&x(l,e)},d(t){t&&b(l)}}}function ea(r){let e,l;return e=new Pt({props:{status:r[17]}}),{c(){L(e.$$.fragment)},l(t){T(e.$$.fragment,t)},m(t,n){D(e,t,n),l=!0},p:j,i(t){l||(g(e.$$.fragment,t),l=!0)},o(t){$(e.$$.fragment,t),l=!1},d(t){y(e,t)}}}function ta(r){let e,l;return e=new Oe({props:{key:"workflows.all-statuses"}}),{c(){L(e.$$.fragment)},l(t){T(e.$$.fragment,t)},m(t,n){D(e,t,n),l=!0},p:j,i(t){l||(g(e.$$.fragment,t),l=!0)},o(t){$(e.$$.fragment,t),l=!1},d(t){y(e,t)}}}function la(r){let e,l,t,n;const o=[ta,ea],a=[];function s(i,u){return i[17]==="All"?0:1}return e=s(r),l=a[e]=o[e](r),{c(){l.c(),t=X()},l(i){l.l(i),t=X()},m(i,u){a[e].m(i,u),I(i,t,u),n=!0},p(i,u){l.p(i,u)},i(i){n||(g(l),n=!0)},o(i){$(l),n=!1},d(i){a[e].d(i),i&&b(t)}}}function na(r){let e,l;function t(){return r[10](r[17])}return e=new Ft({props:{slot:"leading",checked:r[18],label:r[17],labelHidden:!0}}),e.$on("click",t),{c(){L(e.$$.fragment)},l(n){T(e.$$.fragment,n)},m(n,o){D(e,n,o),l=!0},p(n,o){r=n;const a={};o&1&&(a.checked=r[18]),e.$set(a)},i(n){l||(g(e.$$.fragment,n),l=!0)},o(n){$(e.$$.fragment,n),l=!1},d(n){y(e,n)}}}function Pl(r,e){let l,t,n;function o(){return e[11](e[17])}return t=new Pe({props:{"data-testid":e[17],$$slots:{leading:[na],default:[la]},$$scope:{ctx:e}}}),t.$on("click",o),{key:r,first:null,c(){l=X(),L(t.$$.fragment),this.h()},l(a){l=X(),T(t.$$.fragment,a),this.h()},h(){this.first=l},m(a,s){I(a,l,s),D(t,a,s),n=!0},p(a,s){e=a;const i={};s&2097153&&(i.$$scope={dirty:s,ctx:e}),t.$set(i)},i(a){n||(g(t.$$.fragment,a),n=!0)},o(a){$(t.$$.fragment,a),n=!1},d(a){a&&b(l),y(t,a)}}}function ra(r){let e=[],l=new Map,t,n,o,a=Jt;const s=i=>i[17];for(let i=0;il(8,o=E)),U(r,De,E=>l(13,s=E));const{filter:u,resetFilter:f}=Ve(Be);U(r,u,E=>l(1,a=E));const _=Ue(!0);U(r,_,E=>l(2,i=E));function m(){te(ge,o=t,o),Mt(s.url,o)}function c(E){return{...a,value:E}}function d(E){return E.length===1?[c(E[0].value)]:E.map((P,S)=>{const M=S===E.length-1?"":"OR";return{...P,operator:M}})}const p=E=>{if(E==="All")l(7,t=o.filter(P=>P.attribute!=="ExecutionStatus"));else if(n.find(P=>P.value===E)){const P=o.filter(S=>!Je(S.attribute));l(7,t=[...P,...d(n.filter(S=>S.value!==E))])}else if(!n.length)l(7,t=[...t,c(E)]);else{const P=t.filter(S=>!Je(S.attribute));l(7,t=[...P,...d([...n,c(E)])])}m()},h=()=>{i&&f()},k=E=>p(E),w=E=>{p(E)},v=(E,P)=>P.value===E;return r.$$.update=()=>{r.$$.dirty&256&&l(7,t=[...o]),r.$$.dirty&128&&l(0,n=t.filter(E=>Je(E.attribute)))},[n,a,i,u,f,_,p,t,o,h,k,w,v]}class sa extends ie{constructor(e){super(),ae(this,e,aa,ia,se,{})}}function ua(r){let e,l,t,n,o;e=new Et({props:{options:[{value:"=",label:W("common.equal-to")},{value:"!=",label:W("common.not-equal-to")}],inputId:"text-filter-search",noBorderLeft:!0}});function a(i){r[4](i)}let s={label:r[1].attribute,labelHidden:!0,id:"text-filter-search",type:"search",placeholder:`${W("common.enter")} ${r[1].attribute}`,icon:"search",class:"w-full",unroundLeft:!0};return r[0]!==void 0&&(s.value=r[0]),t=new ye({props:s}),ce.push(()=>_e(t,"value",a)),t.$on("keydown",r[3]),{c(){L(e.$$.fragment),l=F(),L(t.$$.fragment)},l(i){T(e.$$.fragment,i),l=V(i),T(t.$$.fragment,i)},m(i,u){D(e,i,u),I(i,l,u),D(t,i,u),o=!0},p(i,[u]){const f={};u&2&&(f.label=i[1].attribute),u&2&&(f.placeholder=`${W("common.enter")} ${i[1].attribute}`),!n&&u&1&&(n=!0,f.value=i[0],de(()=>n=!1)),t.$set(f)},i(i){o||(g(e.$$.fragment,i),g(t.$$.fragment,i),o=!0)},o(i){$(e.$$.fragment,i),$(t.$$.fragment,i),o=!1},d(i){y(e,i),i&&b(l),y(t,i)}}}function fa(r,e,l){let t;const{filter:n,handleSubmit:o}=Ve(Be);U(r,n,u=>l(1,t=u));let a=t.value;function s(u){u.key==="Enter"&&a!==""&&(u.preventDefault(),te(n,t.value=a,t),o())}function i(u){a=u,l(0,a)}return[a,t,n,s,i]}class ca extends ie{constructor(e){super(),ae(this,e,fa,ua,se,{})}}function ma(r){let e,l,t,n,o,a,s,i,u,f,_;const m=[pa,da],c=[];function d(k,w){return w&1&&(l=null),l==null&&(l=!!Je(k[0])),l?0:1}t=d(r,-1),n=c[t]=m[t](r);let p=r[0]&&Fl(r),h=r[2]&&Vl(r);return{c(){e=N("div"),n.c(),o=F(),p&&p.c(),a=F(),s=N("div"),h&&h.c(),this.h()},l(k){e=A(k,"DIV",{class:!0});var w=O(e);n.l(w),o=V(w),p&&p.l(w),w.forEach(b),a=V(k),s=A(k,"DIV",{class:!0});var v=O(s);h&&h.l(v),v.forEach(b),this.h()},h(){B(e,"class","flex items-center svelte-d4361j"),me(e,"filter",!r[2]),B(s,"class",i="flex flex-col sm:flex-row "+(r[2]?"w-full justify-between":"justify-end"))},m(k,w){I(k,e,w),c[t].m(e,null),C(e,o),p&&p.m(e,null),I(k,a,w),I(k,s,w),h&&h.m(s,null),u=!0,f||(_=fe(e,"keyup",r[9]),f=!0)},p(k,w){let v=t;t=d(k,w),t!==v&&(G(),$(c[v],1,1,()=>{c[v]=null}),J(),n=c[t],n||(n=c[t]=m[t](k),n.c()),g(n,1),n.m(e,o)),k[0]?p?(p.p(k,w),w&1&&g(p,1)):(p=Fl(k),p.c(),g(p,1),p.m(e,null)):p&&(G(),$(p,1,1,()=>{p=null}),J()),(!u||w&4)&&me(e,"filter",!k[2]),k[2]?h?(h.p(k,w),w&4&&g(h,1)):(h=Vl(k),h.c(),g(h,1),h.m(s,null)):h&&(G(),$(h,1,1,()=>{h=null}),J()),(!u||w&4&&i!==(i="flex flex-col sm:flex-row "+(k[2]?"w-full justify-between":"justify-end")))&&B(s,"class",i)},i(k){u||(g(n),g(p),g(h),u=!0)},o(k){$(n),$(p),$(h),u=!1},d(k){k&&b(e),c[t].d(),p&&p.d(),k&&b(a),k&&b(s),h&&h.d(),f=!1,_()}}}function _a(r){let e,l;return e=new yo({}),{c(){L(e.$$.fragment)},l(t){T(e.$$.fragment,t)},m(t,n){D(e,t,n),l=!0},p:j,i(t){l||(g(e.$$.fragment,t),l=!0)},o(t){$(e.$$.fragment,t),l=!1},d(t){y(e,t)}}}function da(r){let e,l;return e=new Zi({}),{c(){L(e.$$.fragment)},l(t){T(e.$$.fragment,t)},m(t,n){D(e,t,n),l=!0},i(t){l||(g(e.$$.fragment,t),l=!0)},o(t){$(e.$$.fragment,t),l=!1},d(t){y(e,t)}}}function pa(r){let e,l;return e=new sa({}),{c(){L(e.$$.fragment)},l(t){T(e.$$.fragment,t)},m(t,n){D(e,t,n),l=!0},i(t){l||(g(e.$$.fragment,t),l=!0)},o(t){$(e.$$.fragment,t),l=!1},d(t){y(e,t)}}}function Fl(r){let e,l,t,n,o,a,s,i,u;const f=[ka,$a,ga,ba,ha],_=[];function m(c,d){return d&3&&(e=null),d&1&&(l=null),d&3&&(t=null),d&3&&(n=null),d&3&&(o=null),e==null&&(e=!!ot({attribute:c[0],type:c[1]})),e?0:(l==null&&(l=!!Bo(c[0])),l?1:(t==null&&(t=!!Mn({attribute:c[0],type:c[1]})),t?2:(n==null&&(n=!!Rt({attribute:c[0],type:c[1]})),n?3:(o==null&&(o=!!Rn({attribute:c[0],type:c[1]})),o?4:-1))))}return~(a=m(r,-1))&&(s=_[a]=f[a](r)),{c(){s&&s.c(),i=X()},l(c){s&&s.l(c),i=X()},m(c,d){~a&&_[a].m(c,d),I(c,i,d),u=!0},p(c,d){let p=a;a=m(c,d),a!==p&&(s&&(G(),$(_[p],1,1,()=>{_[p]=null}),J()),~a?(s=_[a],s||(s=_[a]=f[a](c),s.c()),g(s,1),s.m(i.parentNode,i)):s=null)},i(c){u||(g(s),u=!0)},o(c){$(s),u=!1},d(c){~a&&_[a].d(c),c&&b(i)}}}function ha(r){let e,l,t,n,o,a;return l=new Fo({}),n=new mt({}),{c(){e=N("div"),L(l.$$.fragment),t=F(),L(n.$$.fragment),this.h()},l(s){e=A(s,"DIV",{class:!0});var i=O(e);T(l.$$.fragment,i),t=V(i),T(n.$$.fragment,i),i.forEach(b),this.h()},h(){B(e,"class","flex w-full items-center")},m(s,i){I(s,e,i),D(l,e,null),C(e,t),D(n,e,null),a=!0},i(s){a||(g(l.$$.fragment,s),g(n.$$.fragment,s),o||je(()=>{o=ze(e,et,{x:-100,duration:150}),o.start()}),a=!0)},o(s){$(l.$$.fragment,s),$(n.$$.fragment,s),a=!1},d(s){s&&b(e),y(l),y(n)}}}function ba(r){let e,l,t,n,o,a;return l=new hi({}),n=new mt({}),{c(){e=N("div"),L(l.$$.fragment),t=F(),L(n.$$.fragment),this.h()},l(s){e=A(s,"DIV",{class:!0});var i=O(e);T(l.$$.fragment,i),t=V(i),T(n.$$.fragment,i),i.forEach(b),this.h()},h(){B(e,"class","flex w-full items-center")},m(s,i){I(s,e,i),D(l,e,null),C(e,t),D(n,e,null),a=!0},i(s){a||(g(l.$$.fragment,s),g(n.$$.fragment,s),o||je(()=>{o=ze(e,et,{x:-100,duration:150}),o.start()}),a=!0)},o(s){$(l.$$.fragment,s),$(n.$$.fragment,s),a=!1},d(s){s&&b(e),y(l),y(n)}}}function ga(r){let e,l,t,n,o,a;return l=new Hi({}),n=new mt({}),{c(){e=N("div"),L(l.$$.fragment),t=F(),L(n.$$.fragment),this.h()},l(s){e=A(s,"DIV",{class:!0});var i=O(e);T(l.$$.fragment,i),t=V(i),T(n.$$.fragment,i),i.forEach(b),this.h()},h(){B(e,"class","flex w-full items-center")},m(s,i){I(s,e,i),D(l,e,null),C(e,t),D(n,e,null),a=!0},i(s){a||(g(l.$$.fragment,s),g(n.$$.fragment,s),o||je(()=>{o=ze(e,et,{x:-100,duration:150}),o.start()}),a=!0)},o(s){$(l.$$.fragment,s),$(n.$$.fragment,s),a=!1},d(s){s&&b(e),y(l),y(n)}}}function $a(r){let e,l,t,n,o,a;return l=new $i({}),n=new mt({}),{c(){e=N("div"),L(l.$$.fragment),t=F(),L(n.$$.fragment),this.h()},l(s){e=A(s,"DIV",{class:!0});var i=O(e);T(l.$$.fragment,i),t=V(i),T(n.$$.fragment,i),i.forEach(b),this.h()},h(){B(e,"class","flex w-full items-center")},m(s,i){I(s,e,i),D(l,e,null),C(e,t),D(n,e,null),a=!0},i(s){a||(g(l.$$.fragment,s),g(n.$$.fragment,s),o||je(()=>{o=ze(e,et,{x:-100,duration:150}),o.start()}),a=!0)},o(s){$(l.$$.fragment,s),$(n.$$.fragment,s),a=!1},d(s){s&&b(e),y(l),y(n)}}}function ka(r){let e,l,t,n,o,a;return l=new ca({}),n=new mt({}),{c(){e=N("div"),L(l.$$.fragment),t=F(),L(n.$$.fragment),this.h()},l(s){e=A(s,"DIV",{class:!0});var i=O(e);T(l.$$.fragment,i),t=V(i),T(n.$$.fragment,i),i.forEach(b),this.h()},h(){B(e,"class","flex w-full items-center")},m(s,i){I(s,e,i),D(l,e,null),C(e,t),D(n,e,null),a=!0},i(s){a||(g(l.$$.fragment,s),g(n.$$.fragment,s),o||je(()=>{o=ze(e,et,{x:-100,duration:150}),o.start()}),a=!0)},o(s){$(l.$$.fragment,s),$(n.$$.fragment,s),a=!1},d(s){s&&b(e),y(l),y(n)}}}function Vl(r){let e,l;return e=new tt({props:{variant:"ghost",$$slots:{default:[wa]},$$scope:{ctx:r}}}),e.$on("click",r[7]),{c(){L(e.$$.fragment)},l(t){T(e.$$.fragment,t)},m(t,n){D(e,t,n),l=!0},p(t,n){const o={};n&8388608&&(o.$$scope={dirty:n,ctx:t}),e.$set(o)},i(t){l||(g(e.$$.fragment,t),l=!0)},o(t){$(e.$$.fragment,t),l=!1},d(t){y(e,t)}}}function wa(r){let e=W("common.clear-all")+"",l;return{c(){l=R(e)},l(t){l=H(t,e)},m(t,n){I(t,l,n)},p:j,d(t){t&&b(l)}}}function va(r){let e,l,t,n,o,a,s,i,u,f;const _=[_a,ma],m=[];function c(h,k){return h[3]?0:1}t=c(r),n=m[t]=_[t](r);function d(h){r[14](h)}let p={"data-testid":"manual-search-toggle",label:W("workflows.view-search-input"),labelPosition:"left",id:"view-search-input"};return r[3]!==void 0&&(p.checked=r[3]),a=new Sr({props:p}),ce.push(()=>_e(a,"checked",d)),a.$on("change",r[15]),u=new Pi({}),{c(){e=N("div"),l=N("div"),n.c(),o=F(),L(a.$$.fragment),i=F(),L(u.$$.fragment),this.h()},l(h){e=A(h,"DIV",{class:!0});var k=O(e);l=A(k,"DIV",{class:!0});var w=O(l);n.l(w),o=V(w),T(a.$$.fragment,w),w.forEach(b),i=V(k),T(u.$$.fragment,k),k.forEach(b),this.h()},h(){B(l,"class","flex grow flex-col gap-4 sm:flex-row sm:items-center"),B(e,"class","flex grow flex-col")},m(h,k){I(h,e,k),C(e,l),m[t].m(l,null),C(l,o),D(a,l,null),C(e,i),D(u,e,null),f=!0},p(h,[k]){let w=t;t=c(h),t===w?m[t].p(h,k):(G(),$(m[w],1,1,()=>{m[w]=null}),J(),n=m[t],n?n.p(h,k):(n=m[t]=_[t](h),n.c()),g(n,1),n.m(l,o));const v={};!s&&k&8&&(s=!0,v.checked=h[3],de(()=>s=!1)),a.$set(v)},i(h){f||(g(n),g(a.$$.fragment,h),g(u.$$.fragment,h),f=!0)},o(h){$(n),$(a.$$.fragment,h),$(u.$$.fragment,h),f=!1},d(h){h&&b(e),m[t].d(),y(a),y(u)}}}const Be="filter-context";function Ia(r,e,l){let t,n,o,a,s,i,u,f,_,m,c;U(r,ge,Y=>l(11,u=Y)),U(r,De,Y=>l(13,_=Y)),U(r,Ze,Y=>l(18,m=Y)),U(r,Zt,Y=>l(3,c=Y));const d=Ue(qe());U(r,d,Y=>l(12,f=Y));const p=Ue(null);U(r,p,Y=>l(10,i=Y));const h=Ue("");U(r,h,Y=>l(17,s=Y)),er(Be,{filter:d,activeQueryIndex:p,handleSubmit:w,focusedElementId:h,resetFilter:S});function k(){const Y=On(Vn(u));Y&&Y===o?te(Ze,m=Date.now(),m):He({url:_.url,parameter:"query",value:Y,allowEmpty:!0})}function w(){i!==null?(te(ge,u[i]=f,u),te(p,i=null,i)):te(ge,u=[...u,f],u),d.set(qe()),k()}function v(){te(ge,u=[],u),k()}function E(){i!==null&&te(h,s=Hn({attribute:t,type:n}),s)}function P(){if(s){const Y=document.getElementById(s);Y&&(Y.focus(),Y instanceof HTMLButtonElement&&Y.click())}}tr(()=>{P()});function S(){p.set(null),d.set(qe())}function M(Y){Y.key==="Escape"&&!ot({attribute:t,type:n})&&S()}function Z(Y){c=Y,Zt.set(c)}const ee=()=>{S()};return r.$$.update=()=>{r.$$.dirty&4096&&l(0,{attribute:t,type:n}=f,t,(l(1,n),l(12,f))),r.$$.dirty&8192&&(o=_.url.searchParams.get("query")),r.$$.dirty&2049&&l(2,a=u.length&&!t),r.$$.dirty&1024&&E()},[t,n,a,c,d,p,h,v,S,M,i,u,f,_,Z,ee]}class Ea extends ie{constructor(e){super(),ae(this,e,Ia,va,se,{})}}function La(r){let e=r[0].toLocaleString()+"",l;return{c(){l=R(e)},l(t){l=H(t,e)},m(t,n){I(t,l,n)},p(t,n){n&1&&e!==(e=t[0].toLocaleString()+"")&&x(l,e)},d(t){t&&b(l)}}}function Ta(r){let e,l=r[0].toLocaleString()+"",t;return{c(){e=R("+"),t=R(l)},l(n){e=H(n,"+"),t=H(n,l)},m(n,o){I(n,e,o),I(n,t,o)},p(n,o){o&1&&l!==(l=n[0].toLocaleString()+"")&&x(t,l)},d(n){n&&b(e),n&&b(t)}}}function Da(r){let e;function l(o,a){if(o[0]>0)return Ta;if(o[0]<0)return La}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,a){n&&n.m(o,a),I(o,e,a)},p(o,a){t===(t=l(o))&&n?n.p(o,a):(n&&n.d(1),n=t&&t(o),n&&(n.c(),n.m(e.parentNode,e)))},d(o){n&&n.d(o),o&&b(e)}}}function ya(r){let e,l;return e=new tt({props:{size:"xs",variant:"ghost",leadingIcon:"retry",loading:r[1]||r[2],$$slots:{default:[Da]},$$scope:{ctx:r}}}),e.$on("click",r[4]),{c(){L(e.$$.fragment)},l(t){T(e.$$.fragment,t)},m(t,n){D(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||(g(e.$$.fragment,t),l=!0)},o(t){$(e.$$.fragment,t),l=!1},d(t){y(e,t)}}}function Ba(r,e,l){let t,n,o;U(r,dr,i=>l(1,t=i)),U(r,At,i=>l(2,n=i)),U(r,Ze,i=>l(3,o=i));let{count:a=0}=e;const s=()=>te(Ze,o=Date.now(),o);return r.$$set=i=>{"count"in i&&l(0,a=i.count)},[a,t,n,o,s]}class Ca extends ie{constructor(e){super(),ae(this,e,Ba,ya,se,{count:0})}}const Dt=""+new URL("../assets/empty-state-dark_2x.91ea3d8e.png",import.meta.url).href,Wl=""+new URL("../assets/empty-state-light_2x.212be1d9.png",import.meta.url).href;function Ml(r,e,l){const t=r.slice();return t[7]=e[l],t}const Sa=r=>({}),Rl=r=>({});function Na(r){let e,l,t,n,o,a;function s(c,d){return c[1]?Pa:Oa}let i=s(r),u=i(r);const f=[Wa,Va,Fa],_=[];function m(c,d){return c[2]?0:c[1]?1:2}return t=m(r),n=_[t]=f[t](r),{c(){e=N("h2"),u.c(),l=F(),n.c(),o=X(),this.h()},l(c){e=A(c,"H2",{class:!0});var d=O(e);u.l(d),d.forEach(b),l=V(c),n.l(c),o=X(),this.h()},h(){B(e,"class","text-lg font-medium")},m(c,d){I(c,e,d),u.m(e,null),I(c,l,d),_[t].m(c,d),I(c,o,d),a=!0},p(c,d){i===(i=s(c))&&u?u.p(c,d):(u.d(1),u=i(c),u&&(u.c(),u.m(e,null)));let p=t;t=m(c),t===p?_[t].p(c,d):(G(),$(_[p],1,1,()=>{_[p]=null}),J(),n=_[t],n?n.p(c,d):(n=_[t]=f[t](c),n.c()),g(n,1),n.m(o.parentNode,o))},i(c){a||(g(n),a=!0)},o(c){$(n),a=!1},d(c){c&&b(e),u.d(),c&&b(l),_[t].d(c),c&&b(o)}}}function Aa(r){let e,l;return e=new Ur({}),{c(){L(e.$$.fragment)},l(t){T(e.$$.fragment,t)},m(t,n){D(e,t,n),l=!0},p:j,i(t){l||(g(e.$$.fragment,t),l=!0)},o(t){$(e.$$.fragment,t),l=!1},d(t){y(e,t)}}}function Oa(r){let e=W("workflows.workflow-empty-state-title")+"",l;return{c(){l=R(e)},l(t){l=H(t,e)},m(t,n){I(t,l,n)},p:j,d(t){t&&b(l)}}}function Pa(r){let e=W("workflows.workflow-query-empty-state-title")+"",l;return{c(){l=R(e)},l(t){l=H(t,e)},m(t,n){I(t,l,n)},p:j,d(t){t&&b(l)}}}function Fa(r){let e,l,t=W("workflows.workflow-empty-state-description")+"",n,o,a,s,i,u,f;const _=r[5].cloud,m=ke(_,r,r[6],Rl);a=new Vt({props:{newTab:!0,href:"https://github.com/temporalio",$$slots:{default:[Ma]},$$scope:{ctx:r}}});let c=r[3],d=[];for(let h=0;h$(d[h],1,1,()=>{d[h]=null});return{c(){m&&m.c(),e=F(),l=N("p"),n=R(t),o=F(),L(a.$$.fragment),s=R("."),i=F(),u=N("ul");for(let h=0;h{c[k]=null}),J(),a=c[o],a?a.p(p,h):(a=c[o]=m[o](p),a.c()),g(a,1),a.m(n,null)),(!_||h&2&&!Yt(u.src,f=p[1]?Wl:Dt))&&B(u,"src",f)},i(p){_||(g(a),_=!0)},o(p){$(a),_=!1},d(p){b(e),p&&b(l),p&&b(t),c[o].d()}}}function qa(r,e,l){let t,n,o;U(r,De,f=>l(4,n=f)),U(r,pr,f=>l(2,o=f));let{$$slots:a={},$$scope:s}=e,{updating:i=!1}=e;const u=["samples-go","samples-java","samples-typescript","samples-python","samples-dotnet","samples-php"];return r.$$set=f=>{"updating"in f&&l(0,i=f.updating),"$$scope"in f&&l(6,s=f.$$scope)},r.$$.update=()=>{r.$$.dirty&16&&l(1,t=n.url.searchParams.get("query"))},[i,t,o,u,n,a,s]}class ja extends ie{constructor(e){super(),ae(this,e,qa,Ua,se,{updating:0})}}const za=r=>({visibleItems:r&256}),Ul=r=>({slot:"cloud",visibleItems:r[8].items});function ql(r,e,l){const t=r.slice();return t[23]=e[l],t}const Ka=r=>({visibleItems:r&256}),jl=r=>({visibleItems:r[8].items}),Qa=r=>({visibleItems:r&256}),zl=r=>({visibleItems:r[8].items}),Ya=r=>({visibleItems:r&256}),Kl=r=>({visibleItems:r[8].items});function Ql(r){let e,l;return e=new qr({}),{c(){L(e.$$.fragment)},l(t){T(e.$$.fragment,t)},m(t,n){D(e,t,n),l=!0},i(t){l||(g(e.$$.fragment,t),l=!0)},o(t){$(e.$$.fragment,t),l=!1},d(t){y(e,t)}}}function Ga(r){let e,l;return e=new ja({props:{updating:r[0],$$slots:{cloud:[Xa]},$$scope:{ctx:r}}}),{c(){L(e.$$.fragment)},l(t){T(e.$$.fragment,t)},m(t,n){D(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||(g(e.$$.fragment,t),l=!0)},o(t){$(e.$$.fragment,t),l=!1},d(t){y(e,t)}}}function Ja(r){let e,l,t,n,o,a,s,i,u,f,_;t=new zr({props:{label:r[1],parameter:ht,value:r[6],options:Nn}});let m=r[8].pageShortcuts,c=[];for(let p=0;p$(c[p],1,1,()=>{c[p]=null});return i=new Fe({props:{label:r[4],disabled:!r[8].hasPrevious,icon:"arrow-left"}}),i.$on("click",r[19]),f=new Fe({props:{label:r[3],disabled:!r[8].hasNext,icon:"arrow-right"}}),f.$on("click",r[20]),{c(){e=N("div"),l=N("div"),L(t.$$.fragment),n=F(),o=N("div");for(let p=0;p{s[_]=null}),J(),t=s[l],t?t.p(u,f):(t=s[l]=a[l](u),t.c()),g(t,1),t.m(n.parentNode,n))},i(u){o||(g(t),o=!0)},o(u){$(t),o=!1},d(u){s[l].d(u),u&&b(n)}}}function ts(r){let e,l,t,n,o,a,s,i,u,f,_;const m=r[17].caption,c=ke(m,r,r[22],Kl),d=r[17].headers,p=ke(d,r,r[22],zl);let h=r[0]&&Ql();const k=r[17].default,w=ke(k,r,r[22],jl),v=[Ja,Ga],E=[];function P(S,M){return S[8].items.length?0:1}return u=P(r),f=E[u]=v[u](r),{c(){e=N("div"),l=N("table"),c&&c.c(),t=F(),n=N("thead"),p&&p.c(),o=F(),h&&h.c(),a=F(),s=N("tbody"),w&&w.c(),i=F(),f.c(),this.h()},l(S){e=A(S,"DIV",{class:!0,style:!0});var M=O(e);l=A(M,"TABLE",{class:!0});var Z=O(l);c&&c.l(Z),t=V(Z),n=A(Z,"THEAD",{class:!0});var ee=O(n);p&&p.l(ee),o=V(ee),h&&h.l(ee),ee.forEach(b),a=V(Z),s=A(Z,"TBODY",{class:!0});var Y=O(s);w&&w.l(Y),Y.forEach(b),Z.forEach(b),i=V(M),f.l(M),M.forEach(b),this.h()},h(){B(n,"class","paginated-table-header svelte-5xhosh"),B(s,"class","paginated-table-body svelte-5xhosh"),B(l,"class","paginated-table svelte-5xhosh"),B(e,"class","paginated-table-wrapper svelte-5xhosh"),Gt(e,"max-height","calc(100vh - "+r[9]+"px)")},m(S,M){I(S,e,M),C(e,l),c&&c.m(l,null),C(l,t),C(l,n),p&&p.m(n,null),C(n,o),h&&h.m(n,null),C(l,a),C(l,s),w&&w.m(s,null),C(e,i),E[u].m(e,null),r[21](e),_=!0},p(S,[M]){c&&c.p&&(!_||M&4194560)&&we(c,m,S,S[22],_?Ie(m,S[22],M,Ya):ve(S[22]),Kl),p&&p.p&&(!_||M&4194560)&&we(p,d,S,S[22],_?Ie(d,S[22],M,Qa):ve(S[22]),zl),S[0]?h?M&1&&g(h,1):(h=Ql(),h.c(),g(h,1),h.m(n,null)):h&&(G(),$(h,1,1,()=>{h=null}),J()),w&&w.p&&(!_||M&4194560)&&we(w,k,S,S[22],_?Ie(k,S[22],M,Ka):ve(S[22]),jl);let Z=u;u=P(S),u===Z?E[u].p(S,M):(G(),$(E[Z],1,1,()=>{E[Z]=null}),J(),f=E[u],f?f.p(S,M):(f=E[u]=v[u](S),f.c()),g(f,1),f.m(e,null)),(!_||M&512)&&Gt(e,"max-height","calc(100vh - "+S[9]+"px)")},i(S){_||(g(c,S),g(p,S),g(h),g(w,S),g(f),_=!0)},o(S){$(c,S),$(p,S),$(h),$(w,S),$(f),_=!1},d(S){S&&b(e),c&&c.d(S),p&&p.d(S),h&&h.d(),w&&w.d(S),E[u].d(),r[21](null)}}}function ls(r,e,l){let t,n,o,a,s,i,u=j,f=()=>(u(),u=Bt(a,ne=>l(8,i=ne)),a),_;U(r,De,ne=>l(16,_=ne)),r.$$.on_destroy.push(()=>u());let{$$slots:m={},$$scope:c}=e;var d,p;let{items:h}=e,{updating:k=!1}=e,{perPageLabel:w}=e,{pageButtonLabel:v}=e,{nextPageButtonLabel:E}=e,{previousPageButtonLabel:P}=e,S;const M=ne=>{He({parameter:pt,value:ne,url:t})},Z=ne=>M(ne),ee=()=>M(i.currentPage-1),Y=()=>M(i.currentPage+1);function q(ne){ce[ne?"unshift":"push"](()=>{S=ne,l(5,S)})}return r.$$set=ne=>{"items"in ne&&l(11,h=ne.items),"updating"in ne&&l(0,k=ne.updating),"perPageLabel"in ne&&l(1,w=ne.perPageLabel),"pageButtonLabel"in ne&&l(2,v=ne.pageButtonLabel),"nextPageButtonLabel"in ne&&l(3,E=ne.nextPageButtonLabel),"previousPageButtonLabel"in ne&&l(4,P=ne.previousPageButtonLabel),"$$scope"in ne&&l(22,c=ne.$$scope)},r.$$.update=()=>{r.$$.dirty&65536&&l(15,t=_.url),r.$$.dirty&36864&&l(6,n=l(12,d=t.searchParams.get(ht))!==null&&d!==void 0?d:String(al)),r.$$.dirty&40960&&l(14,o=l(13,p=t.searchParams.get(pt))!==null&&p!==void 0?p:"1"),r.$$.dirty&18496&&f(l(7,a=jr(h,n,o))),r.$$.dirty&32832&&(parseInt(n,10)>parseInt(sl,10)?He({parameter:ht,value:sl,url:t}):Nn.includes(n)||He({parameter:ht,value:al,url:t})),r.$$.dirty&49408&&(i.totalPages&&parseInt(o,10)>i.totalPages?He({parameter:pt,value:i.totalPages,url:t}):(o===null||parseInt(o,10)<0)&&He({parameter:pt,value:"1",url:t})),r.$$.dirty&16576&&(o&&a.jumpToPage(o),n&&a.adjustPageSize(n)),r.$$.dirty&32&&l(9,s=S!=null&&S.offsetTop?(S==null?void 0:S.offsetTop)+32:0)},[k,w,v,E,P,S,n,a,i,s,M,h,d,p,o,t,_,m,Z,ee,Y,q,c]}class ns extends ie{constructor(e){super(),ae(this,e,ls,ts,se,{items:11,updating:0,perPageLabel:1,pageButtonLabel:2,nextPageButtonLabel:3,previousPageButtonLabel:4})}}const rs=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}],os=[{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}],qn=r=>r.label!=="Parent Workflow ID",is=()=>{let r;try{const e=window.localStorage.getItem("workflow-table-columns"),l=JSON.parse(e);e&&(l!=null&&l.length)?r=l.filter(qn):r=Qe}catch{r=Qe}return r},St=An("namespace-workflow-table-columns",{}),Lt=Ye([Kr,De,St],([r,e,l])=>{const t={},n=(s,i)=>{var f;if(!((f=s==null?void 0:s[i])!=null&&f.length))return s[i]=[...is()],s[i];const u=s[i].filter(qn);return u.length!==s[i].length&&(s[i]=u,St.set(s)),s[i]},o=(r==null?void 0:r.reduce((s,{namespaceInfo:{name:i}})=>({...s,[i]:n(l,i)}),t))??{},{namespace:a}=e.params;return o[a]?o:{...o,[a]:n(l,a)}});An("workflow-table-pinned-columns-width");const as=r=>Ye(Lt,e=>[...Qe,...os].filter(l=>{var t;return!((t=e[r])!=null&&t.some(n=>n.label===l.label))})),ss=r=>Ye([Cn,Lt],([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}))),us=(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:u})=>u===l),a=n[o].pinned;let s=-1;for(let u=n.length-1;u>=0;u--)if(n[u].pinned){s=u;break}const i=[...n];return i[o].pinned=!a,o>s&&!a?i.splice(s+1,0,i.splice(o,1)[0]):o=0;u--)if(o[u].pinned){s=u;break}const i=[...o];return t<=s&&!a?i[l].pinned=!0:t>s&&a&&(i[l].pinned=!1),i.splice(t,0,i.splice(l,1)[0]),{...e,[n]:i.map((u,f)=>f>rs-1?{...u,pinned:!1}:u)}}default:return e}},qt=r=>{St.update(e=>us(r,e))},Gl=(r,e)=>{qt({type:"WORKFLOW_COLUMN.ADD",payload:{label:r,namespace:e}})},fs=(r,e)=>{qt({type:"WORKFLOW_COLUMN.REMOVE",payload:{label:r,namespace:e}})},cs=(r,e,l)=>{qt({type:"WORKFLOW_COLUMN.MOVE",payload:{from:r,to:e,namespace:l}})};function Jl(r){let e,l,t,n,o;return l=new Fe({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 Fe({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"),L(l.$$.fragment),t=F(),L(n.$$.fragment),this.h()},l(a){e=A(a,"DIV",{class:!0});var s=O(e);T(l.$$.fragment,s),t=V(s),T(n.$$.fragment,s),s.forEach(b),this.h()},h(){B(e,"class","flex items-center")},m(a,s){I(a,e,s),D(l,e,null),C(e,t),D(n,e,null),o=!0},p(a,s){const i={};s&32&&(i.disabled=a[5]===0),s&2&&(i["data-testid"]="orderable-list-item-"+a[1]+"-move-up-button"),s&128&&(i.label=a[7]),l.$set(i);const u={};s&96&&(u.disabled=a[5]===a[6]-1),s&2&&(u["data-testid"]="orderable-list-item-"+a[1]+"-move-down-button"),s&256&&(u.label=a[8]),n.$set(u)},i(a){o||(g(l.$$.fragment,a),g(n.$$.fragment,a),o=!0)},o(a){$(l.$$.fragment,a),$(n.$$.fragment,a),o=!1},d(a){a&&b(e),y(l),y(n)}}}function Xl(r){let e,l,t,n;const o=[_s,ms],a=[];function s(i,u){return i[3]?0:1}return e=s(r),l=a[e]=o[e](r),{c(){l.c(),t=X()},l(i){l.l(i),t=X()},m(i,u){a[e].m(i,u),I(i,t,u),n=!0},p(i,u){let f=e;e=s(i),e===f?a[e].p(i,u):(G(),$(a[f],1,1,()=>{a[f]=null}),J(),l=a[e],l?l.p(i,u):(l=a[e]=o[e](i),l.c()),g(l,1),l.m(t.parentNode,t))},i(i){n||(g(l),n=!0)},o(i){$(l),n=!1},d(i){a[e].d(i),i&&b(t)}}}function ms(r){let e,l;return e=new Fe({props:{icon:"pin","data-testid":"orderable-list-item-"+r[1]+"-pin-button",label:r[9]}}),e.$on("click",r[22]),{c(){L(e.$$.fragment)},l(t){T(e.$$.fragment,t)},m(t,n){D(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||(g(e.$$.fragment,t),l=!0)},o(t){$(e.$$.fragment,t),l=!1},d(t){y(e,t)}}}function _s(r){let e,l;return e=new Fe({props:{icon:"pin-filled","data-testid":"orderable-list-item-"+r[1]+"-unpin-button",label:r[10]}}),e.$on("click",r[21]),{c(){L(e.$$.fragment)},l(t){T(e.$$.fragment,t)},m(t,n){D(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||(g(e.$$.fragment,t),l=!0)},o(t){$(e.$$.fragment,t),l=!1},d(t){y(e,t)}}}function Zl(r){let e,l,t,n;const o=[ps,ds],a=[];function s(i,u){return i[0]?0:1}return e=s(r),l=a[e]=o[e](r),{c(){l.c(),t=X()},l(i){l.l(i),t=X()},m(i,u){a[e].m(i,u),I(i,t,u),n=!0},p(i,u){let f=e;e=s(i),e===f?a[e].p(i,u):(G(),$(a[f],1,1,()=>{a[f]=null}),J(),l=a[e],l?l.p(i,u):(l=a[e]=o[e](i),l.c()),g(l,1),l.m(t.parentNode,t))},i(i){n||(g(l),n=!0)},o(i){$(l),n=!1},d(i){a[e].d(i),i&&b(t)}}}function ds(r){let e,l;return e=new Fe({props:{icon:"hyphen","data-testid":"orderable-list-item-"+r[1]+"-remove-button",label:r[12]}}),e.$on("click",r[24]),{c(){L(e.$$.fragment)},l(t){T(e.$$.fragment,t)},m(t,n){D(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||(g(e.$$.fragment,t),l=!0)},o(t){$(e.$$.fragment,t),l=!1},d(t){y(e,t)}}}function ps(r){let e,l;return e=new Fe({props:{icon:"add","data-testid":"orderable-list-item-"+r[1]+"-add-button",label:r[11]}}),e.$on("click",r[23]),{c(){L(e.$$.fragment)},l(t){T(e.$$.fragment,t)},m(t,n){D(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||(g(e.$$.fragment,t),l=!0)},o(t){$(e.$$.fragment,t),l=!1},d(t){y(e,t)}}}function hs(r){let e,l,t,n,o,a,s,i,u,f,_,m,c,d=!r[0]&&!r[4]&&Jl(r),p=!r[0]&&!r[4]&&r[5]<=r[2]-1&&Xl(r),h=!r[4]&&Zl(r);return{c(){e=N("li"),l=N("div"),d&&d.c(),t=F(),n=R(r[1]),o=F(),p&&p.c(),a=F(),h&&h.c(),u=F(),f=N("hr"),this.h()},l(k){e=A(k,"LI",{draggable:!0,class:!0,"data-testid":!0});var w=O(e);l=A(w,"DIV",{class:!0});var v=O(l);d&&d.l(v),t=V(v),n=H(v,r[1]),o=V(v),p&&p.l(v),v.forEach(b),a=V(w),h&&h.l(w),w.forEach(b),u=V(k),f=A(k,"HR",{class:!0}),this.h()},h(){B(l,"class","flex flex-row items-center gap-2"),B(e,"draggable",s=!r[0]&&!r[4]),B(e,"class","orderable-item group svelte-1btkzzb"),B(e,"data-testid",i="orderable-list-item-"+r[1]),me(e,"readonly",r[4]),B(f,"class","svelte-1btkzzb")},m(k,w){I(k,e,w),C(e,l),d&&d.m(l,null),C(l,t),C(l,n),C(l,o),p&&p.m(l,null),C(e,a),h&&h.m(e,null),I(k,u,w),I(k,f,w),_=!0,m||(c=[fe(e,"dragstart",r[25]),fe(e,"drop",nt(r[26])),fe(e,"dragenter",Tt(nt(r[16]))),fe(e,"dragleave",Tt(nt(r[17]))),fe(e,"dragover",Tt(nt(r[18])))],m=!0)},p(k,[w]){!k[0]&&!k[4]?d?(d.p(k,w),w&17&&g(d,1)):(d=Jl(k),d.c(),g(d,1),d.m(l,t)):d&&(G(),$(d,1,1,()=>{d=null}),J()),(!_||w&2)&&x(n,k[1]),!k[0]&&!k[4]&&k[5]<=k[2]-1?p?(p.p(k,w),w&53&&g(p,1)):(p=Xl(k),p.c(),g(p,1),p.m(l,null)):p&&(G(),$(p,1,1,()=>{p=null}),J()),k[4]?h&&(G(),$(h,1,1,()=>{h=null}),J()):h?(h.p(k,w),w&16&&g(h,1)):(h=Zl(k),h.c(),g(h,1),h.m(e,null)),(!_||w&17&&s!==(s=!k[0]&&!k[4]))&&B(e,"draggable",s),(!_||w&2&&i!==(i="orderable-list-item-"+k[1]))&&B(e,"data-testid",i),(!_||w&16)&&me(e,"readonly",k[4])},i(k){_||(g(d),g(p),g(h),_=!0)},o(k){$(d),$(p),$(h),_=!1},d(k){k&&b(e),d&&d.d(),p&&p.d(),h&&h.d(),k&&b(u),k&&b(f),m=!1,st(c)}}}function bs(r,e,l){const t=at();let{static:n=!1}=e,{label:o}=e,{maxPinnedItems:a=void 0}=e,{pinned:s=!1}=e,{readonly:i=!1}=e,{index:u=0}=e,{totalItems:f=0}=e,{moveUpButtonLabel:_=""}=e,{moveDownButtonLabel:m=""}=e,{pinButtonLabel:c=""}=e,{unpinButtonLabel:d=""}=e,{addButtonLabel:p=""}=e,{removeButtonLabel:h=""}=e;const k=(z,pe)=>{n||i||(z.dataTransfer.setData("text/plain",pe.toString()),z.dataTransfer.dropEffect="move")},w=(z,pe)=>{z.currentTarget.classList.remove("dragging-over");const ue=parseInt(z.dataTransfer.getData("text/plain"));t("moveItem",{from:ue,to:pe})},v=z=>z.currentTarget.classList.add("dragging-over"),E=z=>z.currentTarget.classList.remove("dragging-over");function P(z){Re.call(this,r,z)}const S=()=>t("moveItem",{from:u,to:u-1}),M=()=>t("moveItem",{from:u,to:u+1}),Z=()=>t("pinItem"),ee=()=>t("pinItem"),Y=()=>t("addItem"),q=()=>t("removeItem"),ne=z=>k(z,u),oe=z=>w(z,u);return r.$$set=z=>{"static"in z&&l(0,n=z.static),"label"in z&&l(1,o=z.label),"maxPinnedItems"in z&&l(2,a=z.maxPinnedItems),"pinned"in z&&l(3,s=z.pinned),"readonly"in z&&l(4,i=z.readonly),"index"in z&&l(5,u=z.index),"totalItems"in z&&l(6,f=z.totalItems),"moveUpButtonLabel"in z&&l(7,_=z.moveUpButtonLabel),"moveDownButtonLabel"in z&&l(8,m=z.moveDownButtonLabel),"pinButtonLabel"in z&&l(9,c=z.pinButtonLabel),"unpinButtonLabel"in z&&l(10,d=z.unpinButtonLabel),"addButtonLabel"in z&&l(11,p=z.addButtonLabel),"removeButtonLabel"in z&&l(12,h=z.removeButtonLabel)},[n,o,a,s,i,u,f,_,m,c,d,p,h,t,k,w,v,E,P,S,M,Z,ee,Y,q,ne,oe]}class Ge extends ie{constructor(e){super(),ae(this,e,bs,hs,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 gs=r=>({}),xl=r=>({});function $s(r){let e;return{c(){e=R("Items")},l(l){e=H(l,"Items")},m(l,t){I(l,e,t)},d(l){l&&b(e)}}}function ks(r){let e,l;return e=new Ge({props:{readonly:!0,label:"No Items",pinned:!1}}),{c(){L(e.$$.fragment)},l(t){T(e.$$.fragment,t)},m(t,n){D(e,t,n),l=!0},p:j,i(t){l||(g(e.$$.fragment,t),l=!0)},o(t){$(e.$$.fragment,t),l=!1},d(t){y(e,t)}}}function ws(r){let e,l,t,n,o;const a=r[1].heading,s=ke(a,r,r[0],xl),i=s||$s(),u=r[1].default,f=ke(u,r,r[0],null),_=f||ks();return{c(){e=N("div"),l=N("h4"),i&&i.c(),t=F(),n=N("ol"),_&&_.c(),this.h()},l(m){e=A(m,"DIV",{class:!0});var c=O(e);l=A(c,"H4",{class:!0});var d=O(l);i&&i.l(d),d.forEach(b),t=V(c),n=A(c,"OL",{class:!0});var p=O(n);_&&_.l(p),p.forEach(b),c.forEach(b),this.h()},h(){B(l,"class","orderable-heading svelte-cheqnz"),B(n,"class","orderable-list svelte-cheqnz"),B(e,"class","orderable-section svelte-cheqnz")},m(m,c){I(m,e,c),C(e,l),i&&i.m(l,null),C(e,t),C(e,n),_&&_.m(n,null),o=!0},p(m,[c]){s&&s.p&&(!o||c&1)&&we(s,a,m,m[0],o?Ie(a,m[0],c,gs):ve(m[0]),xl),f&&f.p&&(!o||c&1)&&we(f,u,m,m[0],o?Ie(u,m[0],c,null):ve(m[0]),null)},i(m){o||(g(i,m),g(_,m),o=!0)},o(m){$(i,m),$(_,m),o=!1},d(m){m&&b(e),i&&i.d(m),_&&_.d(m)}}}function vs(r,e,l){let{$$slots:t={},$$scope:n}=e;return r.$$set=o=>{"$$scope"in o&&l(0,n=o.$$scope)},[n,t]}let yt=class extends ie{constructor(e){super(),ae(this,e,vs,ws,se,{})}};function en(r,e,l){const t=r.slice();return t[12]=e[l].label,t}function tn(r,e,l){const t=r.slice();return t[12]=e[l].label,t}function ln(r,e,l){const t=r.slice();return t[12]=e[l].label,t[18]=l,t}function nn(r){let e,l;return e=new Ge({props:{readonly:!0,label:W("workflows.no-headings-in-view")}}),{c(){L(e.$$.fragment)},l(t){T(e.$$.fragment,t)},m(t,n){D(e,t,n),l=!0},p:j,i(t){l||(g(e.$$.fragment,t),l=!0)},o(t){$(e.$$.fragment,t),l=!1},d(t){y(e,t)}}}function rn(r,e){let l,t,n;function o(){return e[9](e[12])}return t=new Ge({props:{index:e[18],label:e[12],totalItems:e[3].length,addButtonLabel:W("workflows.add-column-label",{column:e[12]}),removeButtonLabel:W("workflows.remove-column-label",{column:e[12]}),moveUpButtonLabel:W("workflows.move-column-up-label",{column:e[12]}),moveDownButtonLabel:W("workflows.move-column-down-label",{column:e[12]}),pinButtonLabel:W("workflows.pin-column-label",{column:e[12]}),unpinButtonLabel:W("workflows.unpin-column-label",{column:e[12]})}}),t.$on("moveItem",e[8]),t.$on("removeItem",o),{key:r,first:null,c(){l=X(),L(t.$$.fragment),this.h()},l(a){l=X(),T(t.$$.fragment,a),this.h()},h(){this.first=l},m(a,s){I(a,l,s),D(t,a,s),n=!0},p(a,s){e=a;const i={};s&8&&(i.index=e[18]),s&8&&(i.label=e[12]),s&8&&(i.totalItems=e[3].length),s&8&&(i.addButtonLabel=W("workflows.add-column-label",{column:e[12]})),s&8&&(i.removeButtonLabel=W("workflows.remove-column-label",{column:e[12]})),s&8&&(i.moveUpButtonLabel=W("workflows.move-column-up-label",{column:e[12]})),s&8&&(i.moveDownButtonLabel=W("workflows.move-column-down-label",{column:e[12]})),s&8&&(i.pinButtonLabel=W("workflows.pin-column-label",{column:e[12]})),s&8&&(i.unpinButtonLabel=W("workflows.unpin-column-label",{column:e[12]})),t.$set(i)},i(a){n||(g(t.$$.fragment,a),n=!0)},o(a){$(t.$$.fragment,a),n=!1},d(a){a&&b(l),y(t,a)}}}function Is(r){let e=[],l=new Map,t,n,o=r[3];const a=i=>i[12];for(let i=0;i{s=null}),J()):(s=nn(),s.c(),g(s,1),s.m(t.parentNode,t)))},i(i){if(!n){for(let u=0;u$(n[s],1,1,()=>{n[s]=null});let a=null;return t.length||(a=on()),{c(){for(let s=0;s{a=null}),J()):(a=on(),a.c(),g(a,1),a.m(e.parentNode,e))}},i(s){if(!l){for(let i=0;i$(n[s],1,1,()=>{n[s]=null});let a=null;return t.length||(a=sn()),{c(){for(let s=0;s{a=null}),J()):(a=sn(),a.c(),g(a,1),a.m(e.parentNode,e))}},i(s){if(!l){for(let i=0;i(i(),i=Bt(n,v=>l(4,s=v)),n),f,_=j,m=()=>(_(),_=Bt(o,v=>l(5,f=v)),o);U(r,Lt,v=>l(7,a=v)),r.$$.on_destroy.push(()=>i()),r.$$.on_destroy.push(()=>_());var c;let{namespace:d}=e;const p=v=>cs(v.detail.from,v.detail.to,d),h=v=>fs(v,d),k=v=>Gl(v,d),w=v=>Gl(v,d);return r.$$set=v=>{"namespace"in v&&l(0,d=v.namespace)},r.$$.update=()=>{r.$$.dirty&193&&l(3,t=l(6,c=a==null?void 0:a[d])!==null&&c!==void 0?c:[]),r.$$.dirty&1&&u(l(2,n=as(d))),r.$$.dirty&1&&m(l(1,o=ss(d)))},[d,o,n,t,s,f,c,a,p,h,k,w]}class Ss extends ie{constructor(e){super(),ae(this,e,Cs,Bs,se,{namespace:0})}}const fn=(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]}`},Ns={WorkflowId:"id",WorkflowType:"name",RunId:"runId"};function As(r){let e;return{c(){e=R(r[2])},l(l){e=H(l,r[2])},m(l,t){I(l,e,t)},p(l,t){t&4&&x(e,l[2])},d(l){l&&b(e)}}}function Os(r){let e,l,t,n;return e=new Vt({props:{href:r[3],$$slots:{default:[As]},$$scope:{ctx:r}}}),t=new $r({props:{copyIconTitle:W("common.copy-icon-title"),copySuccessIconTitle:W("common.copy-success-icon-title"),filterIconTitle:W("common.filter-workflows"),show:r[1],content:r[2],onFilter:r[5],filtered:r[4].some(r[9])}}),{c(){L(e.$$.fragment),l=F(),L(t.$$.fragment)},l(o){T(e.$$.fragment,o),l=V(o),T(t.$$.fragment,o)},m(o,a){D(e,o,a),I(o,l,a),D(t,o,a),n=!0},p(o,[a]){const s={};a&8&&(s.href=o[3]),a&1028&&(s.$$scope={dirty:a,ctx:o}),e.$set(s);const i={};a&2&&(i.show=o[1]),a&4&&(i.content=o[2]),a&21&&(i.filtered=o[4].some(o[9])),t.$set(i)},i(o){n||(g(e.$$.fragment,o),g(t.$$.fragment,o),n=!0)},o(o){$(e.$$.fragment,o),$(t.$$.fragment,o),n=!1},d(o){y(e,o),o&&b(l),y(t,o)}}}function Ps(r,e,l){let t,n,o,a,s;U(r,ge,c=>l(4,a=c)),U(r,De,c=>l(8,s=c));let{attribute:i}=e,{workflow:u}=e,{filterOrCopyButtonsVisible:f=!1}=e;const _=()=>{const c=a.find(p=>p.attribute===i),d=()=>a.filter(p=>p.attribute!==i);if(c)te(ge,a=[...d()],a);else{const p={attribute:i,type:"Keyword",value:t,conditional:"=",operator:"",parenthesis:""};te(ge,a=[...d(),p],a)}Mt(s.url,a)},m=c=>c.attribute===i&&c.value===t;return r.$$set=c=>{"attribute"in c&&l(0,i=c.attribute),"workflow"in c&&l(6,u=c.workflow),"filterOrCopyButtonsVisible"in c&&l(1,f=c.filterOrCopyButtonsVisible)},r.$$.update=()=>{r.$$.dirty&65&&l(2,t=u[Ns[i]]),r.$$.dirty&256&&l(7,n=s.params.namespace),r.$$.dirty&192&&l(3,o=Yr({namespace:n,workflow:u.id,run:u.runId}))},[i,f,t,o,a,_,u,n,s,m]}class jt extends ie{constructor(e){super(),ae(this,e,Ps,Os,se,{attribute:0,workflow:6,filterOrCopyButtonsVisible:1})}}function Fs(r){const e=r.slice(),l=e[0].searchAttributes.indexedFields[e[2]];return e[10]=l,e}function Vs(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 Ws(r){let e,l,t,n,o;const a=[Zs,Xs,Js,Gs,Ys,Qs,Ks,zs,js,qs,Us,Hs,Rs],s=[];function i(f,_){return _&5&&(l=null),f[2]==="Status"?0:f[2]==="End"?1:f[2]==="Start"?2:f[2]==="Task Queue"?3:f[2]==="Parent Namespace"?4:f[2]==="History Size"?5:f[2]==="State Transitions"?6:f[2]==="Execution Time"?7:f[2]==="Execution Duration"?8:f[2]==="History Length"?9:f[2]==="Scheduled By ID"?10:f[2]==="Scheduled Start Time"?11:(l==null&&(l=!!(Ar(f[2])&&Or(f[0],f[2]))),l?12:-1)}function u(f,_){return _===11?Vs(f):_===12?Fs(f):f}return~(t=i(r,-1))&&(n=s[t]=a[t](u(r,t))),{c(){e=N("td"),n&&n.c(),this.h()},l(f){e=A(f,"TD",{class:!0,"data-testid":!0});var _=O(e);n&&n.l(_),_.forEach(b),this.h()},h(){B(e,"class","workflows-summary-table-body-cell svelte-qupenl"),B(e,"data-testid","workflows-summary-table-body-cell")},m(f,_){I(f,e,_),~t&&s[t].m(e,null),o=!0},p(f,_){let m=t;t=i(f,_),t===m?~t&&s[t].p(u(f,t),_):(n&&(G(),$(s[m],1,1,()=>{s[m]=null}),J()),~t?(n=s[t],n?n.p(u(f,t),_):(n=s[t]=a[t](u(f,t)),n.c()),g(n,1),n.m(e,null)):n=null)},i(f){o||(g(n),o=!0)},o(f){$(n),o=!1},d(f){f&&b(e),~t&&s[t].d()}}}function Ms(r){let e,l,t,n,o,a;const s=[ou,ru,nu],i=[];function u(f,_){return f[2]==="Type"?0:f[2]==="Workflow ID"?1:f[2]==="Run ID"?2:-1}return~(l=u(r))&&(t=i[l]=s[l](r)),{c(){e=N("td"),t&&t.c(),this.h()},l(f){e=A(f,"TD",{class:!0,"data-testid":!0});var _=O(e);t&&t.l(_),_.forEach(b),this.h()},h(){B(e,"class","workflows-summary-table-body-cell filterable svelte-qupenl"),B(e,"data-testid","workflows-summary-table-body-cell")},m(f,_){I(f,e,_),~l&&i[l].m(e,null),n=!0,o||(a=[fe(e,"mouseover",r[6]),fe(e,"focus",r[6]),fe(e,"focusin",r[6]),fe(e,"focusout",r[8]),fe(e,"mouseleave",r[7]),fe(e,"blur",r[7])],o=!0)},p(f,_){let m=l;l=u(f),l===m?~l&&i[l].p(f,_):(t&&(G(),$(i[m],1,1,()=>{i[m]=null}),J()),~l?(t=i[l],t?t.p(f,_):(t=i[l]=s[l](f),t.c()),g(t,1),t.m(e,null)):t=null)},i(f){n||(g(t),n=!0)},o(f){$(t),n=!1},d(f){f&&b(e),~l&&i[l].d(),o=!1,st(a)}}}function Rs(r){let e,l,t,n;const o=[tu,eu,xs],a=[];function s(i,u){return i[5][i[2]]==="Datetime"&&typeof i[10]=="string"?0:i[5][i[2]]==="Bool"?1:2}return e=s(r),l=a[e]=o[e](r),{c(){l.c(),t=X()},l(i){l.l(i),t=X()},m(i,u){a[e].m(i,u),I(i,t,u),n=!0},p(i,u){let f=e;e=s(i),e===f?a[e].p(i,u):(G(),$(a[f],1,1,()=>{a[f]=null}),J(),l=a[e],l?l.p(i,u):(l=a[e]=o[e](i),l.c()),g(l,1),l.m(t.parentNode,t))},i(i){n||(g(l),n=!0)},o(i){$(l),n=!1},d(i){a[e].d(i),i&&b(t)}}}function Hs(r){let e=(r[10]&&typeof r[10]=="string"?Ee(r[10],r[3],{relative:r[4]}):"")+"",l;return{c(){l=R(e)},l(t){l=H(t,e)},m(t,n){I(t,l,n)},p(t,n){n&25&&e!==(e=(t[10]&&typeof t[10]=="string"?Ee(t[10],t[3],{relative:t[4]}):"")+"")&&x(l,e)},i:j,o:j,d(t){t&&b(l)}}}function Us(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=R(e)},l(o){l=H(o,e)},m(o,a){I(o,l,a)},p(o,a){var s,i;a&1&&e!==(e=(((i=(s=o[0].searchAttributes)==null?void 0:s.indexedFields)==null?void 0:i.TemporalScheduledById)??"")+"")&&x(l,e)},i:j,o:j,d(o){o&&b(l)}}}function qs(r){let e=(parseInt(r[0].historyEvents,10)>0?r[0].historyEvents:"")+"",l;return{c(){l=R(e)},l(t){l=H(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:"")+"")&&x(l,e)},i:j,o:j,d(t){t&&b(l)}}}function js(r){let e=el({start:r[0].startTime,end:r[0].endTime,includeMillisecondsForUnderSecond:!0})+"",l;return{c(){l=R(e)},l(t){l=H(t,e)},m(t,n){I(t,l,n)},p(t,n){n&1&&e!==(e=el({start:t[0].startTime,end:t[0].endTime,includeMillisecondsForUnderSecond:!0})+"")&&x(l,e)},i:j,o:j,d(t){t&&b(l)}}}function zs(r){let e=Ee(r[0].executionTime,r[3],{relative:r[4]})+"",l;return{c(){l=R(e)},l(t){l=H(t,e)},m(t,n){I(t,l,n)},p(t,n){n&25&&e!==(e=Ee(t[0].executionTime,t[3],{relative:t[4]})+"")&&x(l,e)},i:j,o:j,d(t){t&&b(l)}}}function Ks(r){let e=(parseInt(r[0].stateTransitionCount,10)>0?r[0].stateTransitionCount:"")+"",l;return{c(){l=R(e)},l(t){l=H(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:"")+"")&&x(l,e)},i:j,o:j,d(t){t&&b(l)}}}function Qs(r){let e=fn(parseInt(r[0].historySizeBytes,10))+"",l;return{c(){l=R(e)},l(t){l=H(t,e)},m(t,n){I(t,l,n)},p(t,n){n&1&&e!==(e=fn(parseInt(t[0].historySizeBytes,10))+"")&&x(l,e)},i:j,o:j,d(t){t&&b(l)}}}function Ys(r){var t;let e=(((t=r[0])==null?void 0:t.parentNamespaceId)??"")+"",l;return{c(){l=R(e)},l(n){l=H(n,e)},m(n,o){I(n,l,o)},p(n,o){var a;o&1&&e!==(e=(((a=n[0])==null?void 0:a.parentNamespaceId)??"")+"")&&x(l,e)},i:j,o:j,d(n){n&&b(l)}}}function Gs(r){let e=r[0].taskQueue+"",l;return{c(){l=R(e)},l(t){l=H(t,e)},m(t,n){I(t,l,n)},p(t,n){n&1&&e!==(e=t[0].taskQueue+"")&&x(l,e)},i:j,o:j,d(t){t&&b(l)}}}function Js(r){let e=Ee(r[0].startTime,r[3],{relative:r[4]})+"",l;return{c(){l=R(e)},l(t){l=H(t,e)},m(t,n){I(t,l,n)},p(t,n){n&25&&e!==(e=Ee(t[0].startTime,t[3],{relative:t[4]})+"")&&x(l,e)},i:j,o:j,d(t){t&&b(l)}}}function Xs(r){let e=Ee(r[0].endTime,r[3],{relative:r[4]})+"",l;return{c(){l=R(e)},l(t){l=H(t,e)},m(t,n){I(t,l,n)},p(t,n){n&25&&e!==(e=Ee(t[0].endTime,t[3],{relative:t[4]})+"")&&x(l,e)},i:j,o:j,d(t){t&&b(l)}}}function Zs(r){let e,l;return e=new Pt({props:{status:r[0].status}}),{c(){L(e.$$.fragment)},l(t){T(e.$$.fragment,t)},m(t,n){D(e,t,n),l=!0},p(t,n){const o={};n&1&&(o.status=t[0].status),e.$set(o)},i(t){l||(g(e.$$.fragment,t),l=!0)},o(t){$(e.$$.fragment,t),l=!1},d(t){y(e,t)}}}function xs(r){let e=r[10]+"",l;return{c(){l=R(e)},l(t){l=H(t,e)},m(t,n){I(t,l,n)},p(t,n){n&5&&e!==(e=t[10]+"")&&x(l,e)},i:j,o:j,d(t){t&&b(l)}}}function eu(r){let e,l;return e=new Qr({props:{$$slots:{default:[lu]},$$scope:{ctx:r}}}),{c(){L(e.$$.fragment)},l(t){T(e.$$.fragment,t)},m(t,n){D(e,t,n),l=!0},p(t,n){const o={};n&2053&&(o.$$scope={dirty:n,ctx:t}),e.$set(o)},i(t){l||(g(e.$$.fragment,t),l=!0)},o(t){$(e.$$.fragment,t),l=!1},d(t){y(e,t)}}}function tu(r){let e=Ee(r[10],r[3],{relative:r[4]})+"",l;return{c(){l=R(e)},l(t){l=H(t,e)},m(t,n){I(t,l,n)},p(t,n){n&29&&e!==(e=Ee(t[10],t[3],{relative:t[4]})+"")&&x(l,e)},i:j,o:j,d(t){t&&b(l)}}}function lu(r){let e=r[10]+"",l;return{c(){l=R(e)},l(t){l=H(t,e)},m(t,n){I(t,l,n)},p(t,n){n&5&&e!==(e=t[10]+"")&&x(l,e)},d(t){t&&b(l)}}}function nu(r){let e,l;return e=new jt({props:{filterOrCopyButtonsVisible:r[1],attribute:"RunId",workflow:r[0]}}),{c(){L(e.$$.fragment)},l(t){T(e.$$.fragment,t)},m(t,n){D(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||(g(e.$$.fragment,t),l=!0)},o(t){$(e.$$.fragment,t),l=!1},d(t){y(e,t)}}}function ru(r){let e,l;return e=new jt({props:{filterOrCopyButtonsVisible:r[1],attribute:"WorkflowId",workflow:r[0]}}),{c(){L(e.$$.fragment)},l(t){T(e.$$.fragment,t)},m(t,n){D(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||(g(e.$$.fragment,t),l=!0)},o(t){$(e.$$.fragment,t),l=!1},d(t){y(e,t)}}}function ou(r){let e,l;return e=new jt({props:{filterOrCopyButtonsVisible:r[1],attribute:"WorkflowType",workflow:r[0]}}),{c(){L(e.$$.fragment)},l(t){T(e.$$.fragment,t)},m(t,n){D(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||(g(e.$$.fragment,t),l=!0)},o(t){$(e.$$.fragment,t),l=!1},d(t){y(e,t)}}}function iu(r){let e,l,t,n;const o=[Ms,Ws],a=[];function s(i,u){return i[2]==="Run ID"||i[2]==="Workflow ID"||i[2]==="Type"?0:1}return e=s(r),l=a[e]=o[e](r),{c(){l.c(),t=X()},l(i){l.l(i),t=X()},m(i,u){a[e].m(i,u),I(i,t,u),n=!0},p(i,[u]){let f=e;e=s(i),e===f?a[e].p(i,u):(G(),$(a[f],1,1,()=>{a[f]=null}),J(),l=a[e],l?l.p(i,u):(l=a[e]=o[e](i),l.c()),g(l,1),l.m(t.parentNode,t))},i(i){n||(g(l),n=!0)},o(i){$(l),n=!1},d(i){a[e].d(i),i&&b(t)}}}function au(r,e,l){let t,n,o,a;U(r,Ot,c=>l(3,n=c)),U(r,Bn,c=>l(4,o=c)),U(r,Cn,c=>l(5,a=c));let{column:s}=e,{workflow:i}=e,u=!1;const f=()=>l(1,u=!0),_=()=>l(1,u=!1),m=c=>{const d=c.relatedTarget;d&&!["filter-button","copy-button"].includes(d.id)&&_()};return r.$$set=c=>{"column"in c&&l(9,s=c.column),"workflow"in c&&l(0,i=c.workflow)},r.$$.update=()=>{r.$$.dirty&512&&l(2,{label:t}=s,t)},[i,u,t,n,o,a,f,_,m,s]}class su extends ie{constructor(e){super(),ae(this,e,au,iu,se,{column:9,workflow:0})}}function uu(r){let e,l,t;return{c(){e=N("th"),l=R(r[0]),this.h()},l(n){e=A(n,"TH",{class:!0,"data-testid":!0});var o=O(e);l=H(o,r[0]),o.forEach(b),this.h()},h(){B(e,"class","workflows-summary-table-header-cell svelte-x2wk3"),B(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&&x(l,n[0]),o&1&&t!==(t="workflows-summary-table-header-cell-"+n[0])&&B(e,"data-testid",t)},i:j,o:j,d(n){n&&b(e)}}}function fu(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 cu extends ie{constructor(e){super(),ae(this,e,fu,uu,se,{column:1})}}const mu=["workflowCancelDisabled","workflowTerminateDisabled"],_u=r=>r.disableWriteActions||r.batchActionsDisabled?!1:mu.some(e=>!r[e]),jn=Ye([Xr,kt,Jr,kr],([r,e,l,t])=>(t?!0:Gr(r,"1.18.0"))&&e&&_u(l));function du(r){let e,l,t,n,o;const a=r[5].default,s=ke(a,r,r[4],null);return{c(){e=N("button"),s&&s.c(),this.h()},l(i){e=A(i,"BUTTON",{"data-testid":!0,class:!0});var u=O(e);s&&s.l(u),u.forEach(b),this.h()},h(){B(e,"data-testid",r[0]),e.disabled=r[1],B(e,"class",l="bulk-action-button "+r[2]+" "+r[3].class+" svelte-19w6g7u")},m(i,u){I(i,e,u),s&&s.m(e,null),t=!0,n||(o=fe(e,"click",r[6]),n=!0)},p(i,[u]){s&&s.p&&(!t||u&16)&&we(s,a,i,i[4],t?Ie(a,i[4],u,null):ve(i[4]),null),(!t||u&1)&&B(e,"data-testid",i[0]),(!t||u&2)&&(e.disabled=i[1]),(!t||u&12&&l!==(l="bulk-action-button "+i[2]+" "+i[3].class+" svelte-19w6g7u"))&&B(e,"class",l)},i(i){t||(g(s,i),t=!0)},o(i){$(s,i),t=!1},d(i){i&&b(e),s&&s.d(i),n=!1,o()}}}function pu(r,e,l){let{$$slots:t={},$$scope:n}=e,{testId:o=null}=e,{disabled:a=!1}=e,{variant:s="primary"}=e;function i(u){Re.call(this,r,u)}return r.$$set=u=>{l(3,e=bt(bt({},e),gt(u))),"testId"in u&&l(0,o=u.testId),"disabled"in u&&l(1,a=u.disabled),"variant"in u&&l(2,s=u.variant),"$$scope"in u&&l(4,n=u.$$scope)},e=gt(e),[o,a,s,e,n,t,i]}class zn extends ie{constructor(e){super(),ae(this,e,pu,du,se,{testId:0,disabled:1,variant:2})}}function hu(r){let e,l,t,n,o,a,s,i,u,f,_;return l=new Oe({props:{key:"workflows.n-selected",count:r[1]}}),s=new Oe({props:{key:"workflows.select-all",count:r[6].count}}),{c(){e=N("span"),L(l.$$.fragment),t=F(),n=N("span"),o=R("(or "),a=N("button"),L(s.$$.fragment),i=R(")"),this.h()},l(m){e=A(m,"SPAN",{class:!0});var c=O(e);T(l.$$.fragment,c),c.forEach(b),t=V(m),n=A(m,"SPAN",{});var d=O(n);o=H(d,"(or "),a=A(d,"BUTTON",{"data-testid":!0,class:!0});var p=O(a);T(s.$$.fragment,p),p.forEach(b),i=H(d,")"),d.forEach(b),this.h()},h(){B(e,"class","font-semibold"),B(a,"data-testid","select-all-workflows"),B(a,"class","cursor-pointer underline")},m(m,c){I(m,e,c),D(l,e,null),I(m,t,c),I(m,n,c),C(n,o),C(n,a),D(s,a,null),C(n,i),u=!0,f||(_=fe(a,"click",r[13]),f=!0)},p(m,c){const d={};c&2&&(d.count=m[1]),l.$set(d);const p={};c&64&&(p.count=m[6].count),s.$set(p)},i(m){u||(g(l.$$.fragment,m),g(s.$$.fragment,m),u=!0)},o(m){$(l.$$.fragment,m),$(s.$$.fragment,m),u=!1},d(m){m&&b(e),y(l),m&&b(t),m&&b(n),y(s),f=!1,_()}}}function bu(r){let e,l,t;return l=new Oe({props:{key:"workflows.all-selected",count:r[6].count}}),{c(){e=N("span"),L(l.$$.fragment),this.h()},l(n){e=A(n,"SPAN",{class:!0});var o=O(e);T(l.$$.fragment,o),o.forEach(b),this.h()},h(){B(e,"class","font-semibold")},m(n,o){I(n,e,o),D(l,e,null),t=!0},p(n,o){const a={};o&64&&(a.count=n[6].count),l.$set(a)},i(n){t||(g(l.$$.fragment,n),t=!0)},o(n){$(l.$$.fragment,n),t=!1},d(n){n&&b(e),y(l)}}}function cn(r){let e,l;return e=new zn({props:{testId:"bulk-cancel-button",disabled:r[2]||!r[7].length,$$slots:{default:[gu]},$$scope:{ctx:r}}}),e.$on("click",Xu),{c(){L(e.$$.fragment)},l(t){T(e.$$.fragment,t)},m(t,n){D(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||(g(e.$$.fragment,t),l=!0)},o(t){$(e.$$.fragment,t),l=!1},d(t){y(e,t)}}}function gu(r){let e=W("workflows.request-cancellation")+"",l;return{c(){l=R(e)},l(t){l=H(t,e)},m(t,n){I(t,l,n)},p:j,d(t){t&&b(l)}}}function mn(r){let e,l;return e=new zn({props:{variant:"destructive",testId:"bulk-terminate-button",disabled:r[2],$$slots:{default:[$u]},$$scope:{ctx:r}}}),e.$on("click",Zu),{c(){L(e.$$.fragment)},l(t){T(e.$$.fragment,t)},m(t,n){D(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||(g(e.$$.fragment,t),l=!0)},o(t){$(e.$$.fragment,t),l=!1},d(t){y(e,t)}}}function $u(r){let e=W("workflows.terminate")+"",l;return{c(){l=R(e)},l(t){l=H(t,e)},m(t,n){I(t,l,n)},p:j,d(t){t&&b(l)}}}function ku(r){let e,l,t,n,o,a;const s=[bu,hu],i=[];function u(m,c){return m[5]?0:1}e=u(r),l=i[e]=s[e](r);let f=r[3]&&cn(r),_=r[4]&&mn(r);return{c(){l.c(),t=F(),n=N("div"),f&&f.c(),o=F(),_&&_.c(),this.h()},l(m){l.l(m),t=V(m),n=A(m,"DIV",{class:!0});var c=O(n);f&&f.l(c),o=V(c),_&&_.l(c),c.forEach(b),this.h()},h(){B(n,"class","ml-4 inline-flex gap-2")},m(m,c){i[e].m(m,c),I(m,t,c),I(m,n,c),f&&f.m(n,null),C(n,o),_&&_.m(n,null),a=!0},p(m,[c]){let d=e;e=u(m),e===d?i[e].p(m,c):(G(),$(i[d],1,1,()=>{i[d]=null}),J(),l=i[e],l?l.p(m,c):(l=i[e]=s[e](m),l.c()),g(l,1),l.m(t.parentNode,t)),m[3]?f?(f.p(m,c),c&8&&g(f,1)):(f=cn(m),f.c(),g(f,1),f.m(n,o)):f&&(G(),$(f,1,1,()=>{f=null}),J()),m[4]?_?(_.p(m,c),c&16&&g(_,1)):(_=mn(m),_.c(),g(_,1),_.m(n,null)):_&&(G(),$(_,1,1,()=>{_=null}),J())},i(m){a||(g(l),g(f),g(_),a=!0)},o(m){$(l),$(f),$(_),a=!1},d(m){i[e].d(m),m&&b(t),m&&b(n),f&&f.d(),_&&_.d()}}}function wu(r,e,l){let t,n,o,a,s,i,u,f,_;U(r,De,k=>l(10,a=k)),U(r,Le,k=>l(12,i=k)),U(r,Ke,k=>l(5,u=k)),U(r,Dn,k=>l(6,f=k)),U(r,Kn,k=>l(7,_=k));var m;let{workflows:c}=e,d=Zr();U(r,d,k=>l(11,s=k));let p;const h=()=>xu(c);return r.$$set=k=>{"workflows"in k&&l(0,c=k.workflows)},r.$$.update=()=>{r.$$.dirty&4608&&l(1,p=l(9,m=i==null?void 0:i.length)!==null&&m!==void 0?m:0),r.$$.dirty&1024&&l(4,t=cr(a.data.settings)),r.$$.dirty&1024&&l(3,n=mr(a.data.settings)),r.$$.dirty&3072&&l(2,o=s.namespaceWriteDisabled(a.params.namespace))},[c,p,o,n,t,u,f,_,d,m,a,s,i,h]}class vu extends ie{constructor(e){super(),ae(this,e,wu,ku,se,{workflows:0})}}function _n(r){let e,l,t,n;function o(s){r[13](s)}let a={label:r[4],labelHidden:!0,id:"select-visible-workflows","data-testid":"batch-actions-checkbox",theme:"dark",hoverable:!0,indeterminate:r[5]};return r[7]!==void 0&&(a.checked=r[7]),l=new Ft({props:a}),ce.push(()=>_e(l,"checked",o)),l.$on("change",r[9]),{c(){e=N("th"),L(l.$$.fragment),this.h()},l(s){e=A(s,"TH",{class:!0});var i=O(e);T(l.$$.fragment,i),i.forEach(b),this.h()},h(){B(e,"class","batch-actions-checkbox-table-cell svelte-1nquu83")},m(s,i){I(s,e,i),D(l,e,null),n=!0},p(s,i){const u={};i&16&&(u.label=s[4]),i&32&&(u.indeterminate=s[5]),!t&&i&128&&(t=!0,u.checked=s[7],de(()=>t=!1)),l.$set(u)},i(s){n||(g(l.$$.fragment,s),n=!0)},o(s){$(l.$$.fragment,s),n=!1},d(s){s&&b(e),y(l)}}}function Iu(r){let e;const l=r[12].default,t=ke(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)&&we(t,l,n,n[11],e?Ie(l,n[11],o,null):ve(n[11]),null)},i(n){e||(g(t,n),e=!0)},o(n){$(t,n),e=!1},d(n){t&&t.d(n)}}}function Eu(r){let e,l,t;return l=new vu({props:{workflows:r[0]}}),{c(){e=N("th"),L(l.$$.fragment),this.h()},l(n){e=A(n,"TH",{class:!0,colspan:!0});var o=O(e);T(l.$$.fragment,o),o.forEach(b),this.h()},h(){B(e,"class","batch-actions-table-cell svelte-1nquu83"),B(e,"colspan",r[3])},m(n,o){I(n,e,o),D(l,e,null),t=!0},p(n,o){const a={};o&1&&(a.workflows=n[0]),l.$set(a),(!t||o&8)&&B(e,"colspan",n[3])},i(n){t||(g(l.$$.fragment,n),t=!0)},o(n){$(l.$$.fragment,n),t=!1},d(n){n&&b(e),y(l)}}}function Lu(r){let e,l,t,n,o,a,s,i,u=!r[1]&&r[6]&&_n(r);const f=[Eu,Iu],_=[];function m(c,d){return c[6]&&c[8]?0:1}return t=m(r),n=_[t]=f[t](r),s=new Fe({props:{"data-testid":"workflows-summary-table-configuration-button",icon:"vertical-ellipsis",label:W("workflows.open-configure-workflows")}}),s.$on("click",function(){En(r[2])&&r[2].apply(this,arguments)}),{c(){e=N("tr"),u&&u.c(),l=F(),n.c(),o=F(),a=N("th"),L(s.$$.fragment),this.h()},l(c){e=A(c,"TR",{});var d=O(e);u&&u.l(d),l=V(d),n.l(d),o=V(d),a=A(d,"TH",{class:!0});var p=O(a);T(s.$$.fragment,p),p.forEach(b),d.forEach(b),this.h()},h(){B(a,"class","configuration-button-table-cell svelte-1nquu83")},m(c,d){I(c,e,d),u&&u.m(e,null),C(e,l),_[t].m(e,null),C(e,o),C(e,a),D(s,a,null),i=!0},p(c,[d]){r=c,!r[1]&&r[6]?u?(u.p(r,d),d&66&&g(u,1)):(u=_n(r),u.c(),g(u,1),u.m(e,l)):u&&(G(),$(u,1,1,()=>{u=null}),J());let p=t;t=m(r),t===p?_[t].p(r,d):(G(),$(_[p],1,1,()=>{_[p]=null}),J(),n=_[t],n?n.p(r,d):(n=_[t]=f[t](r),n.c()),g(n,1),n.m(e,o))},i(c){i||(g(u),g(n),g(s.$$.fragment,c),i=!0)},o(c){$(u),$(n),$(s.$$.fragment,c),i=!1},d(c){c&&b(e),u&&u.d(),_[t].d(),y(s)}}}function Tu(r,e,l){let t,n,o,a,s,i;U(r,Le,k=>l(10,o=k)),U(r,jn,k=>l(6,a=k)),U(r,it,k=>l(7,s=k)),U(r,Gu,k=>l(8,i=k));let{$$slots:u={},$$scope:f}=e,{workflows:_}=e,{empty:m}=e,{onClickConfigure:c=j}=e,{columnsCount:d}=e;const p=k=>{const{checked:w}=k.detail;ef(w,_)};function h(k){s=k,it.set(s)}return r.$$set=k=>{"workflows"in k&&l(0,_=k.workflows),"empty"in k&&l(1,m=k.empty),"onClickConfigure"in k&&l(2,c=k.onClickConfigure),"columnsCount"in k&&l(3,d=k.columnsCount),"$$scope"in k&&l(11,f=k.$$scope)},r.$$.update=()=>{r.$$.dirty&1025&&l(5,t=o.length>0&&o.length<_.length)},l(4,n=W("workflows.select-all-workflows")),[_,m,c,d,n,t,a,s,i,p,o,f,u,h]}class Du extends ie{constructor(e){super(),ae(this,e,Tu,Lu,se,{workflows:0,empty:1,onClickConfigure:2,columnsCount:3})}}function dn(r){let e,l,t,n;function o(s){r[8](s)}let a={label:r[2],labelHidden:!0,hoverable:!0,value:r[0],disabled:r[5],"aria-label":r[2]};return r[4]!==void 0&&(a.group=r[4]),l=new Ft({props:a}),ce.push(()=>_e(l,"group",o)),{c(){e=N("td"),L(l.$$.fragment),this.h()},l(s){e=A(s,"TD",{class:!0});var i=O(e);T(l.$$.fragment,i),i.forEach(b),this.h()},h(){B(e,"class","relative px-2")},m(s,i){I(s,e,i),D(l,e,null),n=!0},p(s,i){const u={};i&4&&(u.label=s[2]),i&1&&(u.value=s[0]),i&32&&(u.disabled=s[5]),i&4&&(u["aria-label"]=s[2]),!t&&i&16&&(t=!0,u.group=s[4],de(()=>t=!1)),l.$set(u)},i(s){n||(g(l.$$.fragment,s),n=!0)},o(s){$(l.$$.fragment,s),n=!1},d(s){s&&b(e),y(l)}}}function yu(r){let e,l,t,n,o,a=!r[1]&&r[3]&&dn(r);const s=r[7].default,i=ke(s,r,r[6],null);return{c(){e=N("tr"),a&&a.c(),l=F(),i&&i.c(),t=F(),n=N("td"),this.h()},l(u){e=A(u,"TR",{"data-testid":!0});var f=O(e);a&&a.l(f),l=V(f),i&&i.l(f),t=V(f),n=A(f,"TD",{}),O(n).forEach(b),f.forEach(b),this.h()},h(){B(e,"data-testid","workflows-summary-configurable-table-row"),me(e,"empty",r[1])},m(u,f){I(u,e,f),a&&a.m(e,null),C(e,l),i&&i.m(e,null),C(e,t),C(e,n),o=!0},p(u,[f]){!u[1]&&u[3]?a?(a.p(u,f),f&10&&g(a,1)):(a=dn(u),a.c(),g(a,1),a.m(e,l)):a&&(G(),$(a,1,1,()=>{a=null}),J()),i&&i.p&&(!o||f&64)&&we(i,s,u,u[6],o?Ie(s,u[6],f,null):ve(u[6]),null),(!o||f&2)&&me(e,"empty",u[1])},i(u){o||(g(a),g(i,u),o=!0)},o(u){$(a),$(i,u),o=!1},d(u){u&&b(e),a&&a.d(),i&&i.d(u)}}}function Bu(r,e,l){let t,n,o,a;U(r,jn,m=>l(3,n=m)),U(r,Le,m=>l(4,o=m)),U(r,Ke,m=>l(5,a=m));let{$$slots:s={},$$scope:i}=e,{workflow:u=void 0}=e,{empty:f=!1}=e;function _(m){o=m,Le.set(o)}return r.$$set=m=>{"workflow"in m&&l(0,u=m.workflow),"empty"in m&&l(1,f=m.empty),"$$scope"in m&&l(6,i=m.$$scope)},r.$$.update=()=>{r.$$.dirty&1&&l(2,t=W("workflows.select-workflow",{workflow:u==null?void 0:u.id}))},[u,f,t,n,o,a,i,s,_]}class Cu extends ie{constructor(e){super(),ae(this,e,Bu,yu,se,{workflow:0,empty:1})}}function pn(r,e,l){const t=r.slice();return t[18]=e[l],t}function hn(r,e,l){const t=r.slice();return t[15]=e[l],t}function bn(r,e,l){const t=r.slice();return t[15]=e[l],t}const Su=r=>({}),gn=r=>({slot:"cloud"});function $n(r){let e,l;return e=new su({props:{workflow:r[18],column:r[15]}}),{c(){L(e.$$.fragment)},l(t){T(e.$$.fragment,t)},m(t,n){D(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||(g(e.$$.fragment,t),l=!0)},o(t){$(e.$$.fragment,t),l=!1},d(t){y(e,t)}}}function Nu(r){let e,l,t=r[4],n=[];for(let a=0;a$(n[a],1,1,()=>{n[a]=null});return{c(){for(let a=0;a$(n[a],1,1,()=>{n[a]=null});return{c(){for(let a=0;a$(n[a],1,1,()=>{n[a]=null});return{c(){for(let a=0;a({14:o}),({visibleItems:o})=>o?16384:0],headers:[Fu,({visibleItems:o})=>({14:o}),({visibleItems:o})=>o?16384:0],caption:[Ou,({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 Rr({props:{open:r[2],onClick:r[7],position:"right",id:"workflows-summary-table-configuration-drawer",dark:!1,title:W("workflows.configure-workflows"),closeButtonLabel:W("workflows.close-configure-workflows"),$$slots:{subtitle:[Mu],default:[Wu]},$$scope:{ctx:r}}}),{c(){L(e.$$.fragment),l=F(),L(t.$$.fragment)},l(o){T(e.$$.fragment,o),l=V(o),T(t.$$.fragment,o)},m(o,a){D(e,o,a),I(o,l,a),D(t,o,a),n=!0},p(o,[a]){const s={};a&32&&(s.updating=o[5]),a&2&&(s.items=o[1]),a&24600&&(s.$$scope={dirty:a,ctx:o}),e.$set(s);const i={};a&4&&(i.open=o[2]),a&8193&&(i.$$scope={dirty:a,ctx:o}),t.$set(i)},i(o){n||(g(e.$$.fragment,o),g(t.$$.fragment,o),n=!0)},o(o){$(e.$$.fragment,o),$(t.$$.fragment,o),n=!1},d(o){y(e,o),o&&b(l),y(t,o)}}}function Hu(r,e,l){let t,n,o,a,s,i,u;U(r,yn,k=>l(1,a=k)),U(r,Lt,k=>l(9,s=k)),U(r,De,k=>l(10,i=k)),U(r,At,k=>l(5,u=k));let{$$slots:f={},$$scope:_}=e;var m;let c=!1;const d=()=>{l(2,c=!0)},p=()=>{l(2,c=!1)},h=k=>W("common.go-to-page",{page:k});return r.$$set=k=>{"$$scope"in k&&l(13,_=k.$$scope)},r.$$.update=()=>{r.$$.dirty&1024&&l(0,{namespace:t}=i.params,t),r.$$.dirty&769&&l(4,n=l(8,m=s==null?void 0:s[t])!==null&&m!==void 0?m:[]),r.$$.dirty&2&&l(3,o=a.length===0)},[t,a,c,o,n,u,d,p,m,s,i,f,h,_]}class Uu extends ie{constructor(e){super(),ae(this,e,Hu,Ru,se,{})}}const qu=r=>{const e=to({workflows:r},null,2);l(e,`workflows-${r==null?void 0:r.length}-${Date.now()}.json`,"text/plain");function l(t,n,o){const a=document.createElement("a"),s=new Blob([t],{type:o});a.href=URL.createObjectURL(s),a.download=n,a.click()}},ju=r=>({}),vn=r=>({slot:"cloud"});function zu(r){let e,l;return e=new Oe({props:{key:"workflows.recent-workflows"}}),{c(){L(e.$$.fragment)},l(t){T(e.$$.fragment,t)},m(t,n){D(e,t,n),l=!0},p:j,i(t){l||(g(e.$$.fragment,t),l=!0)},o(t){$(e.$$.fragment,t),l=!1},d(t){y(e,t)}}}function Ku(r){let e,l=r[4].count.toLocaleString()+"",t,n,o,a;return o=new Oe({props:{key:"common.workflows-plural",count:r[4].count}}),{c(){e=N("span"),t=R(l),n=F(),L(o.$$.fragment),this.h()},l(s){e=A(s,"SPAN",{"data-testid":!0});var i=O(e);t=H(i,l),i.forEach(b),n=V(s),T(o.$$.fragment,s),this.h()},h(){B(e,"data-testid","workflow-count")},m(s,i){I(s,e,i),C(e,t),I(s,n,i),D(o,s,i),a=!0},p(s,i){(!a||i&16)&&l!==(l=s[4].count.toLocaleString()+"")&&x(t,l);const u={};i&16&&(u.count=s[4].count),o.$set(u)},i(s){a||(g(o.$$.fragment,s),a=!0)},o(s){$(o.$$.fragment,s),a=!1},d(s){s&&b(e),s&&b(n),y(o,s)}}}function In(r){let e,l;return e=new ar({}),{c(){L(e.$$.fragment)},l(t){T(e.$$.fragment,t)},m(t,n){D(e,t,n),l=!0},i(t){l||(g(e.$$.fragment,t),l=!0)},o(t){$(e.$$.fragment,t),l=!1},d(t){y(e,t)}}}function Qu(r){let e;const l=r[15].cloud,t=ke(l,r,r[19],vn);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)&&we(t,l,n,n[19],e?Ie(l,n[19],o,ju):ve(n[19]),vn)},i(n){e||(g(t,n),e=!0)},o(n){$(t,n),e=!1},d(n){t&&t.d(n)}}}function Yu(r){let e,l,t,n,o,a,s,i,u,f,_,m,c,d,p,h=W("common.download-json")+"",k,w,v,E,P,S,M,Z,ee,Y,q={action:Xe.Terminate,actionableWorkflowsLength:r[1].length,query:r[0]};e=new fl({props:q}),r[16](e),e.$on("confirm",r[7]);let ne={action:Xe.Cancel,actionableWorkflowsLength:r[2].length,query:r[0]};t=new fl({props:ne}),r[17](t),t.$on("confirm",r[8]);const oe=[Ku,zu],z=[];function pe(K,re){return K[3]?0:1}u=pe(r),f=z[u]=oe[u](r),m=new Ca({props:{count:r[4].newCount}});let ue=r[6]&&In();return P=new Ea({}),M=new Uu({props:{$$slots:{cloud:[Qu]},$$scope:{ctx:r}}}),{c(){L(e.$$.fragment),l=F(),L(t.$$.fragment),n=F(),o=N("header"),a=N("div"),s=N("div"),i=N("h1"),f.c(),_=F(),L(m.$$.fragment),c=F(),d=N("div"),p=N("button"),k=R(h),w=F(),ue&&ue.c(),v=F(),E=N("div"),L(P.$$.fragment),S=F(),L(M.$$.fragment),this.h()},l(K){T(e.$$.fragment,K),l=V(K),T(t.$$.fragment,K),n=V(K),o=A(K,"HEADER",{class:!0});var re=O(o);a=A(re,"DIV",{class:!0});var Q=O(a);s=A(Q,"DIV",{});var be=O(s);i=A(be,"H1",{class:!0,"data-cy":!0});var he=O(i);f.l(he),_=V(he),T(m.$$.fragment,he),he.forEach(b),be.forEach(b),c=V(Q),d=A(Q,"DIV",{class:!0});var $e=O(d);p=A($e,"BUTTON",{class:!0,tabindex:!0});var Ce=O(p);k=H(Ce,h),Ce.forEach(b),$e.forEach(b),Q.forEach(b),w=V(re),ue&&ue.l(re),re.forEach(b),v=V(K),E=A(K,"DIV",{class:!0});var _t=O(E);T(P.$$.fragment,_t),_t.forEach(b),S=V(K),T(M.$$.fragment,K),this.h()},h(){B(i,"class","flex items-center gap-2 text-2xl"),B(i,"data-cy","workflows-title"),B(p,"class","underline hover:text-blue-700"),B(p,"tabindex",0),B(d,"class","flex items-center gap-2 text-sm"),B(a,"class","flex items-center justify-between"),B(o,"class","flex flex-col gap-2"),B(E,"class","flex flex-col gap-2 md:flex-row")},m(K,re){D(e,K,re),I(K,l,re),D(t,K,re),I(K,n,re),I(K,o,re),C(o,a),C(a,s),C(s,i),z[u].m(i,null),C(i,_),D(m,i,null),C(a,c),C(a,d),C(d,p),C(p,k),C(o,w),ue&&ue.m(o,null),I(K,v,re),I(K,E,re),D(P,E,null),I(K,S,re),D(M,K,re),Z=!0,ee||(Y=fe(p,"click",r[18]),ee=!0)},p(K,[re]){const Q={};re&2&&(Q.actionableWorkflowsLength=K[1].length),re&1&&(Q.query=K[0]),e.$set(Q);const be={};re&4&&(be.actionableWorkflowsLength=K[2].length),re&1&&(be.query=K[0]),t.$set(be);let he=u;u=pe(K),u===he?z[u].p(K,re):(G(),$(z[he],1,1,()=>{z[he]=null}),J(),f=z[u],f?f.p(K,re):(f=z[u]=oe[u](K),f.c()),g(f,1),f.m(i,_));const $e={};re&16&&($e.count=K[4].newCount),m.$set($e),K[6]?ue?re&64&&g(ue,1):(ue=In(),ue.c(),g(ue,1),ue.m(o,null)):ue&&(G(),$(ue,1,1,()=>{ue=null}),J());const Ce={};re&524288&&(Ce.$$scope={dirty:re,ctx:K}),M.$set(Ce)},i(K){Z||(g(e.$$.fragment,K),g(t.$$.fragment,K),g(f),g(m.$$.fragment,K),g(ue),g(P.$$.fragment,K),g(M.$$.fragment,K),Z=!0)},o(K){$(e.$$.fragment,K),$(t.$$.fragment,K),$(f),$(m.$$.fragment,K),$(ue),$(P.$$.fragment,K),$(M.$$.fragment,K),Z=!1},d(K){r[16](null),y(e,K),K&&b(l),r[17](null),y(t,K),K&&b(n),K&&b(o),z[u].d(),y(m),ue&&ue.d(),K&&b(v),K&&b(E),y(P),K&&b(S),y(M,K),ee=!1,Y()}}}let Ne,Ae;const Ke=Ue(!1),it=Ue(!1),Le=Ue([]),Gu=Ye(Le,r=>r.length>0),Ju=Ye(Le,r=>r.filter(e=>e.canBeTerminated)),Kn=Ye(Le,r=>r.filter(e=>e.status==="Running")),Xu=()=>{Ae==null||Ae.open()},Zu=()=>{Ne==null||Ne.open()},xu=r=>{Ke.set(!0),Le.set([...r])},ef=(r,e)=>{it.set(r),Ke&&Ke.set(!1),r?Le.set([...e]):Le.set([])};function tf(r,e,l){let t,n,o,a,s,i,u=j,f,_=j,m,c,d=j,p,h=j,k,w,v,E,P,S=j,M,Z,ee,Y;U(r,At,Q=>l(11,a=Q)),U(r,rt,Q=>l(12,s=Q)),U(r,Ju,Q=>l(1,i=Q)),U(r,Ke,Q=>l(20,f=Q)),U(r,De,Q=>l(13,m=Q)),U(r,Le,Q=>l(21,c=Q)),U(r,it,Q=>l(22,p=Q)),U(r,lt,Q=>l(23,k=Q)),U(r,ge,Q=>l(14,w=Q)),U(r,ul,Q=>l(24,v=Q)),U(r,xt,Q=>l(25,E=Q)),U(r,Kn,Q=>l(2,P=Q)),U(r,kt,Q=>l(3,M=Q)),U(r,Dn,Q=>l(4,Z=Q)),U(r,yn,Q=>l(5,ee=Q)),U(r,hr,Q=>l(6,Y=Q)),r.$$.on_destroy.push(()=>u()),r.$$.on_destroy.push(()=>_()),r.$$.on_destroy.push(()=>d()),r.$$.on_destroy.push(()=>h()),r.$$.on_destroy.push(()=>S());let{$$slots:q={},$$scope:ne}=e;nr(()=>{te(ul,v=m.params.namespace,v),t&&te(ge,w=Fn(t,k),w)});const oe=()=>{te(Ke,f=!1,f),te(it,p=!1,p),te(Le,c=[],c)},z=async Q=>{var be;try{const he={namespace:m.params.namespace,reason:Q.detail.reason,jobId:Q.detail.jobId,...f?{query:o}:{workflows:i}};await xr(he),Ne==null||Ne.close(),Xt.push({message:W("workflows.batch-terminate-all-success"),id:"batch-terminate-success-toast"})}catch(he){Ne==null||Ne.setError((be=he==null?void 0:he.message)!==null&&be!==void 0?be:W("common.unknown-error"))}},pe=async Q=>{var be;const he={namespace:m.params.namespace,reason:Q.detail.reason,jobId:Q.detail.jobId,...f?{query:o}:{workflows:i}};try{await eo(he),Ae==null||Ae.close(),Xt.push({message:W("workflows.batch-cancel-all-success"),id:"batch-cancel-success-toast"})}catch($e){Ae==null||Ae.setError((be=$e==null?void 0:$e.message)!==null&&be!==void 0?be:W("common.unknown-error"))}};function ue(Q){ce[Q?"unshift":"push"](()=>{Ne=Q})}function K(Q){ce[Q?"unshift":"push"](()=>{Ae=Q})}const re=()=>qu(ee);return r.$$set=Q=>{"$$scope"in Q&&l(19,ne=Q.$$scope)},r.$$.update=()=>{r.$$.dirty&8192&&l(9,t=m.url.searchParams.get("query")),r.$$.dirty&512&&t&&te(rt,s=t,s),r.$$.dirty&8192&&l(10,n=m.url.searchParams.toString()),r.$$.dirty&1024&&te(xt,E=n,E),r.$$.dirty&16384&&(w.length||te(rt,s="",s)),r.$$.dirty&4096&&l(0,o=s||'ExecutionStatus="Running"'),r.$$.dirty&2048&&a&&oe()},[o,i,P,M,Z,ee,Y,z,pe,t,n,a,s,m,w,q,ue,K,re,ne]}class lf extends ie{constructor(e){super(),ae(this,e,tf,Yu,se,{})}}function nf(r){let e,l,t,n;return e=new rr({props:{title:`Workflows | ${r[0].params.namespace}`,url:r[0].url.href}}),t=new lf({}),{c(){L(e.$$.fragment),l=F(),L(t.$$.fragment)},l(o){T(e.$$.fragment,o),l=V(o),T(t.$$.fragment,o)},m(o,a){D(e,o,a),I(o,l,a),D(t,o,a),n=!0},p(o,[a]){const s={};a&1&&(s.title=`Workflows | ${o[0].params.namespace}`),a&1&&(s.url=o[0].url.href),e.$set(s)},i(o){n||(g(e.$$.fragment,o),g(t.$$.fragment,o),n=!0)},o(o){$(e.$$.fragment,o),$(t.$$.fragment,o),n=!1},d(o){y(e,o),o&&b(l),y(t,o)}}}function rf(r,e,l){let t;return U(r,De,n=>l(0,t=n)),[t]}class nc extends ie{constructor(e){super(),ae(this,e,rf,nf,se,{})}}export{nc as component,tc as universal}; diff --git a/ui/assets/local/_app/immutable/nodes/28.acd4d792.js b/ui/assets/local/_app/immutable/nodes/28.0c119124.js similarity index 84% rename from ui/assets/local/_app/immutable/nodes/28.acd4d792.js rename to ui/assets/local/_app/immutable/nodes/28.0c119124.js index a89ed564ae..564c74c03a 100644 --- a/ui/assets/local/_app/immutable/nodes/28.acd4d792.js +++ b/ui/assets/local/_app/immutable/nodes/28.0c119124.js @@ -1 +1 @@ -import{r as n,e as s}from"../chunks/index.3158323b.js";import{j as c}from"../chunks/workflow-service.61e0ba9f.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.bd668cd0.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.5e898323.js b/ui/assets/local/_app/immutable/nodes/3.29f53349.js similarity index 93% rename from ui/assets/local/_app/immutable/nodes/3.5e898323.js rename to ui/assets/local/_app/immutable/nodes/3.29f53349.js index 371aa28fc5..c1a928f582 100644 --- a/ui/assets/local/_app/immutable/nodes/3.5e898323.js +++ b/ui/assets/local/_app/immutable/nodes/3.29f53349.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.0942deb7.js";import{p as j}from"../chunks/stores.73c3690d.js";import{P as k}from"../chunks/page-title.433b384d.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.0942deb7.js";import{p as j}from"../chunks/stores.255470ec.js";import{P as k}from"../chunks/page-title.433b384d.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/30.a0cba945.js b/ui/assets/local/_app/immutable/nodes/30.038c359d.js similarity index 92% rename from ui/assets/local/_app/immutable/nodes/30.a0cba945.js rename to ui/assets/local/_app/immutable/nodes/30.038c359d.js index 3b476cbd00..6e228e6f51 100644 --- a/ui/assets/local/_app/immutable/nodes/30.a0cba945.js +++ b/ui/assets/local/_app/immutable/nodes/30.038c359d.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 as T,F as E,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.0942deb7.js";import{p as X}from"../chunks/stores.73c3690d.js";import{P as x}from"../chunks/page-title.433b384d.js";import{t as g}from"../chunks/translate.135d909a.js";import{A as ee}from"../chunks/alert.c46cfdd9.js";import{B as te}from"../chunks/button.c09134bf.js";import{C as re}from"../chunks/code-block.c6eabdb8.js";import{E as Y}from"../chunks/empty-state.64fbab21.js";import{L as le}from"../chunks/link.f0cc0bf5.js";import{L as oe}from"../chunks/loading.e7565465.js";import{g as z}from"../chunks/query-service.fd7152f2.js";import{a as ne}from"../chunks/auth-user.a1d7e47f.js";import{w as ae}from"../chunks/workflow-run.80b64688.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){T(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){E(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:{newTab:!0,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),T(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),E(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){T(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){E(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,_){T(t,u,_),h(u,r,_),h(u,e,_),T(l,e,null),b(e,o),b(e,n),b(n,c),b(n,f),b(n,$),h(u,d,_),h(u,m,_),T(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){E(t,u),u&&p(r),u&&p(e),E(l),u&&p(d),u&&p(m),E(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),T(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),E(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){T(t,o,n),h(o,r,n),T(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){E(t,o),o&&p(r),E(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 as T,F as E,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.0942deb7.js";import{p as X}from"../chunks/stores.255470ec.js";import{P as x}from"../chunks/page-title.433b384d.js";import{t as g}from"../chunks/translate.135d909a.js";import{A as ee}from"../chunks/alert.c46cfdd9.js";import{B as te}from"../chunks/button.72eef818.js";import{C as re}from"../chunks/code-block.a5088abe.js";import{E as Y}from"../chunks/empty-state.64fbab21.js";import{L as le}from"../chunks/link.faba7c50.js";import{L as oe}from"../chunks/loading.e7565465.js";import{g as z}from"../chunks/query-service.7b844b9a.js";import{a as ne}from"../chunks/auth-user.6dc931ea.js";import{w as ae}from"../chunks/workflow-run.27281c78.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){T(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){E(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:{newTab:!0,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),T(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),E(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){T(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){E(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,_){T(t,u,_),h(u,r,_),h(u,e,_),T(l,e,null),b(e,o),b(e,n),b(n,c),b(n,f),b(n,$),h(u,d,_),h(u,m,_),T(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){E(t,u),u&&p(r),u&&p(e),E(l),u&&p(d),u&&p(m),E(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),T(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),E(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){T(t,o,n),h(o,r,n),T(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){E(t,o),o&&p(r),E(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/31.3c2adc5b.js b/ui/assets/local/_app/immutable/nodes/31.3c2adc5b.js deleted file mode 100644 index b8a1d2758f..0000000000 --- a/ui/assets/local/_app/immutable/nodes/31.3c2adc5b.js +++ /dev/null @@ -1 +0,0 @@ -import{S as $e,b as pe,a as _e,V as Se,w as F,W as Ve,q as C,x as O,k as u,u as T,f as w,L as d,y as ee,n as X,C as b,D as I,E,j as $,g as _,F as y,m as N,p as S,z as G,h as J,G as Cl,H as Dl,I as Al,J as Nl,B as $t,e as se,i as Gl,c as H,d as W,O as pt,P as It,R as Sl,T as Tt,U as Jl,a7 as Vl,K as le,aa as Hl,ab as Wl,av as Xl,a3 as Pl,a4 as Fl,a5 as Ke,ac as Ct,A as wt,a0 as vt,X as Yl,a1 as kt}from"../chunks/index.0942deb7.js";import{p as Ge}from"../chunks/stores.73c3690d.js";import{P as Zl}from"../chunks/page-title.433b384d.js";import{t as v}from"../chunks/translate.135d909a.js";import{g as xl,E as er}from"../chunks/get-workflow-relationships.54c919d2.js";import{B as tr}from"../chunks/button.c09134bf.js";import{D as lr}from"../chunks/drawer.03af1b30.js";import{T as Ol}from"../chunks/tooltip.ea285ef3.js";import{B as Te}from"../chunks/badge.5c29cec8.js";import{C as Ze}from"../chunks/code-block.c6eabdb8.js";import{p as rt,s as Re}from"../chunks/parse-with-big-int.0036a80a.js";import{P as bt}from"../chunks/payload-decoder.31bd549e.js";import{A as ot}from"../chunks/accordion.89b036f1.js";import{I as st}from"../chunks/icon.33308831.js";import{L as He}from"../chunks/link.f0cc0bf5.js";import{t as Bl,r as Rl,b as Ye}from"../chunks/time-format.7dc1f425.js";import{w as at,a as Dt,r as rr,b as At}from"../chunks/workflow-run.80b64688.js";import{j as Nt,k as St}from"../chunks/format-event-attributes.1749c5f9.js";import{k as Vt,D as Ht,q as nr}from"../chunks/format-time.5082c525.js";import{i as or,g as Ce,q as Wt,h as Pt}from"../chunks/route-for.ecd88549.js";import{t as Ft}from"../chunks/to-time-difference.be87d1bf.js";import{f as jl}from"../chunks/index.2fa3ca4d.js";import{A as Et}from"../chunks/alert.c46cfdd9.js";import{w as sr}from"../chunks/task-queue-compatibility.cf5696f8.js";import{P as zl}from"../chunks/pagination.a81dd55b.js";import{T as ft,a as it}from"../chunks/table-header-row.b9d52458.js";import{T as dt}from"../chunks/table-row.9c997398.js";import{W as ar}from"../chunks/workflow-status.833cfe09.js";import{C as Je}from"../chunks/index.ad79a693.js";import{b as Ll,E as fr,a as ir}from"../chunks/event-summary-table.14d935eb.js";import{M as cr}from"../chunks/modal.cb157ac8.js";import{T as ur,a as mt}from"../chunks/toggle-buttons.01bd60a8.js";import{T as Ml}from"../chunks/toggle-switch.cc141600.js";import{a as mr,b as $r}from"../chunks/events-service.f9e1ef0b.js";import{d as ht,e as Ql,b as Ot}from"../chunks/event-view.33fc78e9.js";import{d as _t,f as nt,e as Ul}from"../chunks/events.edd90912.js";import{n as pr}from"../chunks/namespaces.5c0c98b2.js";import{d as gt}from"../chunks/encode-uri.dfce78e4.js";import{a as _r}from"../chunks/auth-user.a1d7e47f.js";import{g as dr,e as gr,f as hr,h as wr,d as vr}from"../chunks/decode-payload.3d6f13eb.js";import{H as ql,I as kr,C as br}from"../chunks/is-event-type.7aa6d0ba.js";import{g as Bt}from"../chunks/index.5fe2e895.js";import{C as Er}from"../chunks/get-event-categorization.75c83097.js";import{e as Rt}from"../chunks/filters.6a09297f.js";import{W as yr}from"../chunks/workflow-json-navigator.85eda75f.js";const ba=Object.freeze(Object.defineProperty({__proto__:null},Symbol.toStringTag,{value:"Module"}));function Ir(o){let e,l,t,r;return{c(){e=Se("svg"),l=Se("title"),t=F(o[0]),r=Se("path"),this.h()},l(n){e=Ve(n,"svg",{class:!0,fill:!0,xmlns:!0,viewBox:!0,role:!0});var s=C(e);l=Ve(s,"title",{});var a=C(l);t=O(a,o[0]),a.forEach(u),r=Ve(s,"path",{d:!0}),C(r).forEach(u),s.forEach(u),this.h()},h(){T(r,"d","M310.6 246.6l-127.1 128C176.4 380.9 168.2 384 160 384s-16.38-3.125-22.63-9.375l-127.1-128C.2244 237.5-2.516 223.7 2.438 211.8S19.07 192 32 192h255.1c12.94 0 24.62 7.781 29.58 19.75S319.8 237.5 310.6 246.6z"),T(e,"class","h-4 w-4"),T(e,"fill","currentColor"),T(e,"xmlns","http://www.w3.org/2000/svg"),T(e,"viewBox","0 0 320 512"),T(e,"role","img")},m(n,s){w(n,e,s),d(e,l),d(l,t),d(e,r)},p(n,[s]){s&1&&ee(t,n[0])},i:X,o:X,d(n){n&&u(e)}}}function Tr(o,e,l){let{title:t}=e;return o.$$set=r=>{"title"in r&&l(0,t=r.title)},[t]}class Cr extends $e{constructor(e){super(),pe(this,e,Tr,Ir,_e,{title:0})}}function Dr(o){let e,l,t,r;return{c(){e=Se("svg"),l=Se("title"),t=F(o[0]),r=Se("path"),this.h()},l(n){e=Ve(n,"svg",{class:!0,fill:!0,xmlns:!0,viewBox:!0,role:!0});var s=C(e);l=Ve(s,"title",{});var a=C(l);t=O(a,o[0]),a.forEach(u),r=Ve(s,"path",{d:!0}),C(r).forEach(u),s.forEach(u),this.h()},h(){T(r,"d","M137.4 406.6l-128-127.1C3.125 272.4 0 264.2 0 255.1s3.125-16.38 9.375-22.63l128-127.1c9.156-9.156 22.91-11.9 34.88-6.943S192 115.1 192 128v255.1c0 12.94-7.781 24.62-19.75 29.58S146.5 415.8 137.4 406.6z"),T(e,"class","h-4 w-4"),T(e,"fill","currentColor"),T(e,"xmlns","http://www.w3.org/2000/svg"),T(e,"viewBox","0 0 256 512"),T(e,"role","img")},m(n,s){w(n,e,s),d(e,l),d(l,t),d(e,r)},p(n,[s]){s&1&&ee(t,n[0])},i:X,o:X,d(n){n&&u(e)}}}function Ar(o,e,l){let{title:t}=e;return o.$$set=r=>{"title"in r&&l(0,t=r.title)},[t]}class Nr extends $e{constructor(e){super(),pe(this,e,Ar,Dr,_e,{title:0})}}function Sr(o){let e,l,t,r;return{c(){e=Se("svg"),l=Se("title"),t=F(o[0]),r=Se("path"),this.h()},l(n){e=Ve(n,"svg",{class:!0,fill:!0,xmlns:!0,viewBox:!0,role:!0});var s=C(e);l=Ve(s,"title",{});var a=C(l);t=O(a,o[0]),a.forEach(u),r=Ve(s,"path",{d:!0}),C(r).forEach(u),s.forEach(u),this.h()},h(){T(r,"d","M118.6 105.4l128 127.1C252.9 239.6 256 247.8 256 255.1s-3.125 16.38-9.375 22.63l-128 127.1c-9.156 9.156-22.91 11.9-34.88 6.943S64 396.9 64 383.1V128c0-12.94 7.781-24.62 19.75-29.58S109.5 96.23 118.6 105.4z"),T(e,"class","h-4 w-4"),T(e,"fill","currentColor"),T(e,"xmlns","http://www.w3.org/2000/svg"),T(e,"viewBox","0 0 256 512"),T(e,"role","img")},m(n,s){w(n,e,s),d(e,l),d(l,t),d(e,r)},p(n,[s]){s&1&&ee(t,n[0])},i:X,o:X,d(n){n&&u(e)}}}function Vr(o,e,l){let{title:t}=e;return o.$$set=r=>{"title"in r&&l(0,t=r.title)},[t]}class Hr extends $e{constructor(e){super(),pe(this,e,Vr,Sr,_e,{title:0})}}function Wr(o){let e,l,t,r;return{c(){e=Se("svg"),l=Se("title"),t=F(o[0]),r=Se("path"),this.h()},l(n){e=Ve(n,"svg",{class:!0,fill:!0,xmlns:!0,viewBox:!0,role:!0});var s=C(e);l=Ve(s,"title",{});var a=C(l);t=O(a,o[0]),a.forEach(u),r=Ve(s,"path",{d:!0}),C(r).forEach(u),s.forEach(u),this.h()},h(){T(r,"d","M9.39 265.4l127.1-128C143.6 131.1 151.8 128 160 128s16.38 3.125 22.63 9.375l127.1 128c9.156 9.156 11.9 22.91 6.943 34.88S300.9 320 287.1 320H32.01c-12.94 0-24.62-7.781-29.58-19.75S.2333 274.5 9.39 265.4z"),T(e,"class","h-4 w-4"),T(e,"fill","currentColor"),T(e,"xmlns","http://www.w3.org/2000/svg"),T(e,"viewBox","0 0 320 512"),T(e,"role","img")},m(n,s){w(n,e,s),d(e,l),d(l,t),d(e,r)},p(n,[s]){s&1&&ee(t,n[0])},i:X,o:X,d(n){n&&u(e)}}}function Pr(o,e,l){let{title:t}=e;return o.$$set=r=>{"title"in r&&l(0,t=r.title)},[t]}class Fr extends $e{constructor(e){super(),pe(this,e,Pr,Wr,_e,{title:0})}}function Or(o){let e;const l=o[4].default,t=Cl(l,o,o[5],null);return{c(){t&&t.c()},l(r){t&&t.l(r)},m(r,n){t&&t.m(r,n),e=!0},p(r,n){t&&t.p&&(!e||n&32)&&Dl(t,l,r,r[5],e?Nl(l,r[5],n,null):Al(r[5]),null)},i(r){e||($(t,r),e=!0)},o(r){_(t,r),e=!1},d(r){t&&t.d(r)}}}function Br(o){let e,l,t;var r=o[3][o[1]];function n(s){return{props:{title:s[2]}}}return r&&(e=$t(r,n(o))),{c(){e&&b(e.$$.fragment),l=se()},l(s){e&&I(e.$$.fragment,s),l=se()},m(s,a){e&&E(e,s,a),w(s,l,a),t=!0},p(s,a){const f={};if(a&4&&(f.title=s[2]),r!==(r=s[3][s[1]])){if(e){G();const i=e;_(i.$$.fragment,1,0,()=>{y(i,1)}),J()}r?(e=$t(r,n(s)),b(e.$$.fragment),$(e.$$.fragment,1),E(e,l.parentNode,l)):e=null}else r&&e.$set(f)},i(s){t||(e&&$(e.$$.fragment,s),t=!0)},o(s){e&&_(e.$$.fragment,s),t=!1},d(s){s&&u(l),e&&y(e,s)}}}function Rr(o){let e,l,t,r;const n=[Br,Or],s=[];function a(f,i){return f[1]?0:1}return l=a(o),t=s[l]=n[l](o),{c(){e=N("kbd"),t.c(),this.h()},l(f){e=S(f,"KBD",{class:!0});var i=C(e);t.l(i),i.forEach(u),this.h()},h(){T(e,"class","shortcut svelte-1q2pvbc")},m(f,i){w(f,e,i),s[l].m(e,null),r=!0},p(f,i){let c=l;l=a(f),l===c?s[l].p(f,i):(G(),_(s[c],1,1,()=>{s[c]=null}),J(),t=s[l],t?t.p(f,i):(t=s[l]=n[l](f),t.c()),$(t,1),t.m(e,null))},i(f){r||($(t),r=!0)},o(f){_(t),r=!1},d(f){f&&u(e),s[l].d()}}}function jr(o){let e,l;return e=new Ol({props:{text:o[0],hide:!o[0],top:!0,$$slots:{default:[Rr]},$$scope:{ctx:o}}}),{c(){b(e.$$.fragment)},l(t){I(e.$$.fragment,t)},m(t,r){E(e,t,r),l=!0},p(t,[r]){const n={};r&1&&(n.text=t[0]),r&1&&(n.hide=!t[0]),r&38&&(n.$$scope={dirty:r,ctx:t}),e.$set(n)},i(t){l||($(e.$$.fragment,t),l=!0)},o(t){_(e.$$.fragment,t),l=!1},d(t){y(e,t)}}}function zr(o,e,l){let{$$slots:t={},$$scope:r}=e,{tooltipText:n=""}=e,{arrow:s=void 0}=e,{title:a}=e;const f={up:Fr,down:Cr,left:Nr,right:Hr};return o.$$set=i=>{"tooltipText"in i&&l(0,n=i.tooltipText),"arrow"in i&&l(1,s=i.arrow),"title"in i&&l(2,a=i.title),"$$scope"in i&&l(5,r=i.$$scope)},[n,s,a,f,t,r]}class ze extends $e{constructor(e){super(),pe(this,e,zr,jr,_e,{tooltipText:0,arrow:1,title:2})}}function Lr(o){let e;return{c(){e=F("L")},l(l){e=O(l,"L")},m(l,t){w(l,e,t)},d(l){l&&u(e)}}}function Mr(o){let e;return{c(){e=F("H")},l(l){e=O(l,"H")},m(l,t){w(l,e,t)},d(l){l&&u(e)}}}function Qr(o){let e;return{c(){e=F("J")},l(l){e=O(l,"J")},m(l,t){w(l,e,t)},d(l){l&&u(e)}}}function Ur(o){let e;return{c(){e=F("K")},l(l){e=O(l,"K")},m(l,t){w(l,e,t)},d(l){l&&u(e)}}}function qr(o){let e,l,t=v("common.next-page")+"",r,n,s,a,f,i,c,m,p=v("common.previous-page")+"",D,P,h,g,k,R,q,Y,ae=v("common.next-row")+"",j,K,re,oe,Q,fe,ce,de,ue=v("common.previous-row")+"",Z,ge,ne,ve,te,ke,me;return a=new ze({props:{arrow:"right",title:v("common.arrow-key-right")}}),i=new ze({props:{title:"",$$slots:{default:[Lr]},$$scope:{ctx:o}}}),g=new ze({props:{arrow:"left",title:v("common.arrow-key-left")}}),R=new ze({props:{title:"",$$slots:{default:[Mr]},$$scope:{ctx:o}}}),oe=new ze({props:{arrow:"down",title:v("common.arrow-key-down")}}),fe=new ze({props:{title:"",$$slots:{default:[Qr]},$$scope:{ctx:o}}}),ve=new ze({props:{arrow:"up",title:v("common.arrow-key-up")}}),ke=new ze({props:{title:"",$$slots:{default:[Ur]},$$scope:{ctx:o}}}),{c(){e=N("div"),l=N("div"),r=F(t),n=H(),s=N("div"),b(a.$$.fragment),f=F("|"),b(i.$$.fragment),c=H(),m=N("div"),D=F(p),P=H(),h=N("div"),b(g.$$.fragment),k=F("|"),b(R.$$.fragment),q=H(),Y=N("div"),j=F(ae),K=H(),re=N("div"),b(oe.$$.fragment),Q=F("|"),b(fe.$$.fragment),ce=H(),de=N("div"),Z=F(ue),ge=H(),ne=N("div"),b(ve.$$.fragment),te=F("|"),b(ke.$$.fragment),this.h()},l(V){e=S(V,"DIV",{class:!0});var A=C(e);l=S(A,"DIV",{class:!0});var z=C(l);r=O(z,t),n=W(z),s=S(z,"DIV",{class:!0});var L=C(s);I(a.$$.fragment,L),f=O(L,"|"),I(i.$$.fragment,L),L.forEach(u),z.forEach(u),c=W(A),m=S(A,"DIV",{class:!0});var ie=C(m);D=O(ie,p),P=W(ie),h=S(ie,"DIV",{class:!0});var he=C(h);I(g.$$.fragment,he),k=O(he,"|"),I(R.$$.fragment,he),he.forEach(u),ie.forEach(u),q=W(A),Y=S(A,"DIV",{class:!0});var be=C(Y);j=O(be,ae),K=W(be),re=S(be,"DIV",{class:!0});var ye=C(re);I(oe.$$.fragment,ye),Q=O(ye,"|"),I(fe.$$.fragment,ye),ye.forEach(u),be.forEach(u),ce=W(A),de=S(A,"DIV",{class:!0});var Ae=C(de);Z=O(Ae,ue),ge=W(Ae),ne=S(Ae,"DIV",{class:!0});var We=C(ne);I(ve.$$.fragment,We),te=O(We,"|"),I(ke.$$.fragment,We),We.forEach(u),Ae.forEach(u),A.forEach(u),this.h()},h(){T(s,"class","shortcut svelte-1syr807"),T(l,"class","cell svelte-1syr807"),T(h,"class","shortcut svelte-1syr807"),T(m,"class","cell svelte-1syr807"),T(re,"class","shortcut svelte-1syr807"),T(Y,"class","cell svelte-1syr807"),T(ne,"class","shortcut svelte-1syr807"),T(de,"class","cell svelte-1syr807"),T(e,"class","grid grid-cols-1 gap-8 text-gray-500 dark:text-gray-400 md:grid-cols-2 xl:grid-cols-4")},m(V,A){w(V,e,A),d(e,l),d(l,r),d(l,n),d(l,s),E(a,s,null),d(s,f),E(i,s,null),d(e,c),d(e,m),d(m,D),d(m,P),d(m,h),E(g,h,null),d(h,k),E(R,h,null),d(e,q),d(e,Y),d(Y,j),d(Y,K),d(Y,re),E(oe,re,null),d(re,Q),E(fe,re,null),d(e,ce),d(e,de),d(de,Z),d(de,ge),d(de,ne),E(ve,ne,null),d(ne,te),E(ke,ne,null),me=!0},p(V,A){const z={};A&8&&(z.$$scope={dirty:A,ctx:V}),i.$set(z);const L={};A&8&&(L.$$scope={dirty:A,ctx:V}),R.$set(L);const ie={};A&8&&(ie.$$scope={dirty:A,ctx:V}),fe.$set(ie);const he={};A&8&&(he.$$scope={dirty:A,ctx:V}),ke.$set(he)},i(V){me||($(a.$$.fragment,V),$(i.$$.fragment,V),$(g.$$.fragment,V),$(R.$$.fragment,V),$(oe.$$.fragment,V),$(fe.$$.fragment,V),$(ve.$$.fragment,V),$(ke.$$.fragment,V),me=!0)},o(V){_(a.$$.fragment,V),_(i.$$.fragment,V),_(g.$$.fragment,V),_(R.$$.fragment,V),_(oe.$$.fragment,V),_(fe.$$.fragment,V),_(ve.$$.fragment,V),_(ke.$$.fragment,V),me=!1},d(V){V&&u(e),y(a),y(i),y(g),y(R),y(oe),y(fe),y(ve),y(ke)}}}function Kr(o){let e,l,t,r,n;return l=new tr({props:{size:"sm",variant:"secondary",leadingIcon:"keyboard"}}),l.$on("click",function(){Gl(o[1])&&o[1].apply(this,arguments)}),r=new lr({props:{open:o[0],onClick:o[2],title:v("common.keyboard-shortcuts"),closeButtonLabel:v("common.close-keyboard-shortcuts"),$$slots:{default:[qr]},$$scope:{ctx:o}}}),{c(){e=N("div"),b(l.$$.fragment),t=H(),b(r.$$.fragment),this.h()},l(s){e=S(s,"DIV",{class:!0});var a=C(e);I(l.$$.fragment,a),a.forEach(u),t=W(s),I(r.$$.fragment,s),this.h()},h(){T(e,"class","shortcut-key-button svelte-1syr807")},m(s,a){w(s,e,a),E(l,e,null),w(s,t,a),E(r,s,a),n=!0},p(s,[a]){o=s;const f={};a&1&&(f.open=o[0]),a&4&&(f.onClick=o[2]),a&8&&(f.$$scope={dirty:a,ctx:o}),r.$set(f)},i(s){n||($(l.$$.fragment,s),$(r.$$.fragment,s),n=!0)},o(s){_(l.$$.fragment,s),_(r.$$.fragment,s),n=!1},d(s){s&&u(e),y(l),s&&u(t),y(r,s)}}}function Gr(o,e,l){let{open:t=!1}=e,{onOpen:r}=e,{onClose:n}=e;return o.$$set=s=>{"open"in s&&l(0,t=s.open),"onOpen"in s&&l(1,r=s.onOpen),"onClose"in s&&l(2,n=s.onClose)},[t,r,n]}class Jr extends $e{constructor(e){super(),pe(this,e,Gr,Kr,_e,{open:0,onOpen:1,onClose:2})}}function jt(o,e,l){const t=o.slice();return t[11]=e[l],t}function zt(o){let e,l;return e=new Te({props:{type:"count",class:"rounded-sm",$$slots:{default:[Xr]},$$scope:{ctx:o}}}),{c(){b(e.$$.fragment)},l(t){I(e.$$.fragment,t)},m(t,r){E(e,t,r),l=!0},p(t,r){const n={};r&16388&&(n.$$scope={dirty:r,ctx:t}),e.$set(n)},i(t){l||($(e.$$.fragment,t),l=!0)},o(t){_(e.$$.fragment,t),l=!1},d(t){y(e,t)}}}function Xr(o){let e=o[2].length+"",l;return{c(){l=F(e)},l(t){l=O(t,e)},m(t,r){w(t,l,r)},p(t,r){r&4&&e!==(e=t[2].length+"")&&ee(l,e)},d(t){t&&u(l)}}}function Yr(o){let e,l;return e=new Ze({props:{content:"Results will appear upon completion.",language:"text",class:"mb-2 lg:max-h-[24rem]",copyable:!1}}),{c(){b(e.$$.fragment)},l(t){I(e.$$.fragment,t)},m(t,r){E(e,t,r),l=!0},p:X,i(t){l||($(e.$$.fragment,t),l=!0)},o(t){_(e.$$.fragment,t),l=!1},d(t){y(e,t)}}}function Zr(o){let e,l,t,r;const n=[en,xr],s=[];function a(f,i){return f[5]?0:1}return l=a(o),t=s[l]=n[l](o),{c(){e=N("div"),t.c(),this.h()},l(f){e=S(f,"DIV",{class:!0});var i=C(e);t.l(i),i.forEach(u),this.h()},h(){T(e,"class","flex h-full flex-col overflow-scroll lg:max-h-[24rem]")},m(f,i){w(f,e,i),s[l].m(e,null),r=!0},p(f,i){let c=l;l=a(f),l===c?s[l].p(f,i):(G(),_(s[c],1,1,()=>{s[c]=null}),J(),t=s[l],t?t.p(f,i):(t=s[l]=n[l](f),t.c()),$(t,1),t.m(e,null))},i(f){r||($(t),r=!0)},o(f){_(t),r=!1},d(f){f&&u(e),s[l].d()}}}function xr(o){let e,l;return e=new bt({props:{value:rt(o[0]),$$slots:{default:[tn,({decodedValue:t})=>({10:t}),({decodedValue:t})=>t?1024:0]},$$scope:{ctx:o}}}),{c(){b(e.$$.fragment)},l(t){I(e.$$.fragment,t)},m(t,r){E(e,t,r),l=!0},p(t,r){const n={};r&1&&(n.value=rt(t[0])),r&17408&&(n.$$scope={dirty:r,ctx:t}),e.$set(n)},i(t){l||($(e.$$.fragment,t),l=!0)},o(t){_(e.$$.fragment,t),l=!1},d(t){y(e,t)}}}function en(o){let e,l;return e=new bt({props:{value:o[3],key:"payloads",$$slots:{default:[ln,({decodedValue:t})=>({10:t}),({decodedValue:t})=>t?1024:0]},$$scope:{ctx:o}}}),{c(){b(e.$$.fragment)},l(t){I(e.$$.fragment,t)},m(t,r){E(e,t,r),l=!0},p(t,r){const n={};r&8&&(n.value=t[3]),r&17408&&(n.$$scope={dirty:r,ctx:t}),e.$set(n)},i(t){l||($(e.$$.fragment,t),l=!0)},o(t){_(e.$$.fragment,t),l=!1},d(t){y(e,t)}}}function tn(o){let e,l;return e=new Ze({props:{content:o[10],class:"mb-2 lg:max-h-[23.5rem]",copyIconTitle:v("common.copy-icon-title"),copySuccessIconTitle:v("common.copy-success-icon-title")}}),{c(){b(e.$$.fragment)},l(t){I(e.$$.fragment,t)},m(t,r){E(e,t,r),l=!0},p(t,r){const n={};r&1024&&(n.content=t[10]),e.$set(n)},i(t){l||($(e.$$.fragment,t),l=!0)},o(t){_(e.$$.fragment,t),l=!1},d(t){y(e,t)}}}function Lt(o){let e,l;return e=new Ze({props:{content:Re(o[11]),class:"mb-2",copyIconTitle:v("common.copy-icon-title"),copySuccessIconTitle:v("common.copy-success-icon-title")}}),{c(){b(e.$$.fragment)},l(t){I(e.$$.fragment,t)},m(t,r){E(e,t,r),l=!0},p(t,r){const n={};r&1024&&(n.content=Re(t[11])),e.$set(n)},i(t){l||($(e.$$.fragment,t),l=!0)},o(t){_(e.$$.fragment,t),l=!1},d(t){y(e,t)}}}function ln(o){let e,l,t=o[6](o[10]),r=[];for(let s=0;s_(r[s],1,1,()=>{r[s]=null});return{c(){for(let s=0;s{i=null}),J());let k=s;s=p(h),s===k?m[s].p(h,g):(G(),_(m[k],1,1,()=>{m[k]=null}),J(),a=m[s],a?a.p(h,g):(a=m[s]=c[s](h),a.c()),$(a,1),a.m(e,null)),It(e,P=Sl(D,[{class:"flex w-full flex-col lg:w-1/2"},g&128&&h[7]]))},i(h){f||($(i),$(a),f=!0)},o(h){_(i),_(a),f=!1},d(h){h&&u(e),i&&i.d(),m[s].d()}}}function nn(o,e,l){let t,r,n,s;const a=["content","title"];let f=Tt(e,a),{content:i}=e,{title:c}=e;const m=P=>{try{return rt(P)}catch{return}},p=P=>{try{const h=rt(P);return Array.isArray(h)?rt(P):[]}catch{return[]}},D=P=>{try{const h=P==null?void 0:P.payloads;return Array.isArray(h)?h:[]}catch{return[]}};return o.$$set=P=>{e=pt(pt({},e),Jl(P)),l(7,f=Tt(e,a)),"content"in P&&l(0,i=P.content),"title"in P&&l(1,c=P.title)},o.$$.update=()=>{o.$$.dirty&1&&l(3,t=m(i)),o.$$.dirty&8&&l(2,r=D(t)),o.$$.dirty&4&&l(5,n=r.length>0),o.$$.dirty&4&&l(4,s=r.length>1)},[i,c,r,t,s,n,p,f]}class Mt extends $e{constructor(e){super(),pe(this,e,nn,rn,_e,{content:0,title:1})}}function Qt(o,e,l){const t=o.slice();t[8]=e[l].id,t[9]=Xl(e[l],["id"]);const r=t[9].attempt>1;return t[10]=r,t}function Ut(o){let e,l,t;return l=new ot({props:{title:v("workflows.pending-activities"),"data-testid":"pending-activities",$$slots:{summary:[_n],default:[un]},$$scope:{ctx:o}}}),{c(){e=N("section"),b(l.$$.fragment)},l(r){e=S(r,"SECTION",{});var n=C(e);I(l.$$.fragment,n),n.forEach(u)},m(r,n){w(r,e,n),E(l,e,null),t=!0},p(r,n){const s={};n&8223&&(s.$$scope={dirty:n,ctx:r}),l.$set(s)},i(r){t||($(l.$$.fragment,r),t=!0)},o(r){_(l.$$.fragment,r),t=!1},d(r){r&&u(e),y(l)}}}function on(o){let e=o[9].activityType+"",l;return{c(){l=F(e)},l(t){l=O(t,e)},m(t,r){w(t,l,r)},p(t,r){r&4&&e!==(e=t[9].activityType+"")&&ee(l,e)},d(t){t&&u(l)}}}function qt(o){let e,l;return e=new st({props:{name:"retry"}}),{c(){b(e.$$.fragment)},l(t){I(e.$$.fragment,t)},m(t,r){E(e,t,r),l=!0},i(t){l||($(e.$$.fragment,t),l=!0)},o(t){_(e.$$.fragment,t),l=!1},d(t){y(e,t)}}}function sn(o){let e,l=o[9].attempt+"",t,r,n=o[10]&&qt();return{c(){n&&n.c(),e=H(),t=F(l)},l(s){n&&n.l(s),e=W(s),t=O(s,l)},m(s,a){n&&n.m(s,a),w(s,e,a),w(s,t,a),r=!0},p(s,a){s[10]?n?a&4&&$(n,1):(n=qt(),n.c(),$(n,1),n.m(e.parentNode,e)):n&&(G(),_(n,1,1,()=>{n=null}),J()),(!r||a&4)&&l!==(l=s[9].attempt+"")&&ee(t,l)},i(s){r||($(n),r=!0)},o(s){_(n),r=!1},d(s){n&&n.d(s),s&&u(e),s&&u(t)}}}function an(o){let e=St(o[9].maximumAttempts,o[9].attempt)+"",l;return{c(){l=F(e)},l(t){l=O(t,e)},m(t,r){w(t,l,r)},p(t,r){r&4&&e!==(e=St(t[9].maximumAttempts,t[9].attempt)+"")&&ee(l,e)},d(t){t&&u(l)}}}function Kt(o){let e,l,t=v("workflows.next-retry")+"",r,n,s,a;return s=new Te({props:{type:o[10]?"error":"default",$$slots:{default:[fn]},$$scope:{ctx:o}}}),{c(){e=N("div"),l=N("h4"),r=F(t),n=H(),b(s.$$.fragment),this.h()},l(f){e=S(f,"DIV",{class:!0});var i=C(e);l=S(i,"H4",{class:!0});var c=C(l);r=O(c,t),c.forEach(u),n=W(i),I(s.$$.fragment,i),i.forEach(u),this.h()},h(){T(l,"class","pending-activity-detail-header svelte-155uvlv"),T(e,"class","pending-activity-detail svelte-155uvlv")},m(f,i){w(f,e,i),d(e,l),d(l,r),d(e,n),E(s,e,null),a=!0},p(f,i){const c={};i&4&&(c.type=f[10]?"error":"default"),i&8196&&(c.$$scope={dirty:i,ctx:f}),s.$set(c)},i(f){a||($(s.$$.fragment,f),a=!0)},o(f){_(s.$$.fragment,f),a=!1},d(f){f&&u(e),y(s)}}}function fn(o){let e=Ft({date:o[9].scheduledTime,negativeDefault:"None"})+"",l;return{c(){l=F(e)},l(t){l=O(t,e)},m(t,r){w(t,l,r)},p(t,r){r&4&&e!==(e=Ft({date:t[9].scheduledTime,negativeDefault:"None"})+"")&&ee(l,e)},d(t){t&&u(l)}}}function Gt(o){let e,l,t=v("workflows.heartbeat-details")+"",r,n,s,a;return s=new Ze({props:{class:"max-h-32 overflow-y-scroll",content:Re(o[9].heartbeatDetails),copyIconTitle:v("common.copy-icon-title"),copySuccessIconTitle:v("common.copy-success-icon-title")}}),{c(){e=N("div"),l=N("h4"),r=F(t),n=H(),b(s.$$.fragment),this.h()},l(f){e=S(f,"DIV",{class:!0});var i=C(e);l=S(i,"H4",{class:!0});var c=C(l);r=O(c,t),c.forEach(u),n=W(i),I(s.$$.fragment,i),i.forEach(u),this.h()},h(){T(l,"class","pending-activity-detail-header svelte-155uvlv"),T(e,"class","w-1/2 grow")},m(f,i){w(f,e,i),d(e,l),d(l,r),d(e,n),E(s,e,null),a=!0},p(f,i){const c={};i&4&&(c.content=Re(f[9].heartbeatDetails)),s.$set(c)},i(f){a||($(s.$$.fragment,f),a=!0)},o(f){_(s.$$.fragment,f),a=!1},d(f){f&&u(e),y(s)}}}function Jt(o){let e,l,t=v("workflows.last-failure")+"",r,n,s,a;return s=new Ze({props:{class:"max-h-32 overflow-y-scroll",content:Re(o[9].lastFailure),copyIconTitle:v("common.copy-icon-title"),copySuccessIconTitle:v("common.copy-success-icon-title")}}),{c(){e=N("div"),l=N("h4"),r=F(t),n=H(),b(s.$$.fragment),this.h()},l(f){e=S(f,"DIV",{class:!0});var i=C(e);l=S(i,"H4",{class:!0});var c=C(l);r=O(c,t),c.forEach(u),n=W(i),I(s.$$.fragment,i),i.forEach(u),this.h()},h(){T(l,"class","pending-activity-detail-header svelte-155uvlv"),T(e,"class","w-1/2 grow")},m(f,i){w(f,e,i),d(e,l),d(l,r),d(e,n),E(s,e,null),a=!0},p(f,i){const c={};i&4&&(c.content=Re(f[9].lastFailure)),s.$set(c)},i(f){a||($(s.$$.fragment,f),a=!0)},o(f){_(s.$$.fragment,f),a=!1},d(f){f&&u(e),y(s)}}}function Xt(o,e){var je,Ie;let l,t,r=e[9].activityId+"",n,s,a,f,i,c,m,p=v("workflows.activity-type")+"",D,P,h,g,k,R,q=v("workflows.last-heartbeat")+"",Y,ae,j=Ye(e[9].lastHeartbeatTime,e[3],{relative:e[4]})+"",K,re,oe,Q,fe=v("workflows.attempt")+"",ce,de,ue,Z,ge,ne,ve=v("workflows.attempts-left")+"",te,ke,me,V,A,z,L,ie=v("workflows.expiration")+"",he,be,ye=Nt(e[9].maximumAttempts,Vt(Ht({start:Date.now(),end:e[9].expirationTime})))+"",Ae,We,De,Me,Xe,Fe;h=new Te({props:{type:e[10]?"error":"default",$$slots:{default:[on]},$$scope:{ctx:e}}}),ue=new Te({props:{type:e[10]?"error":"default",$$slots:{default:[sn]},$$scope:{ctx:e}}}),me=new Te({props:{type:e[10]?"error":"default",$$slots:{default:[an]},$$scope:{ctx:e}}});let B=e[10]&&e[9].scheduledTime&&Kt(e),M=((je=e[9])==null?void 0:je.heartbeatDetails)&&Gt(e),x=((Ie=e[9])==null?void 0:Ie.lastFailure)&&Jt(e);return{key:o,first:null,c(){l=N("div"),t=N("h3"),n=F(r),s=H(),a=N("div"),f=N("div"),i=N("div"),c=N("div"),m=N("h4"),D=F(p),P=H(),b(h.$$.fragment),g=H(),k=N("div"),R=N("h4"),Y=F(q),ae=H(),K=F(j),re=H(),oe=N("div"),Q=N("h4"),ce=F(fe),de=H(),b(ue.$$.fragment),Z=H(),ge=N("div"),ne=N("h4"),te=F(ve),ke=H(),b(me.$$.fragment),V=H(),B&&B.c(),A=H(),z=N("div"),L=N("h4"),he=F(ie),be=H(),Ae=F(ye),We=H(),De=N("div"),M&&M.c(),Me=H(),x&&x.c(),Xe=H(),this.h()},l(we){l=S(we,"DIV",{class:!0});var U=C(l);t=S(U,"H3",{class:!0});var Ne=C(t);n=O(Ne,r),Ne.forEach(u),s=W(U),a=S(U,"DIV",{class:!0});var Be=C(a);f=S(Be,"DIV",{class:!0});var Pe=C(f);i=S(Pe,"DIV",{class:!0});var Ee=C(i);c=S(Ee,"DIV",{class:!0});var Oe=C(c);m=S(Oe,"H4",{class:!0});var xe=C(m);D=O(xe,p),xe.forEach(u),P=W(Oe),I(h.$$.fragment,Oe),Oe.forEach(u),g=W(Ee),k=S(Ee,"DIV",{class:!0});var Qe=C(k);R=S(Qe,"H4",{class:!0});var et=C(R);Y=O(et,q),et.forEach(u),ae=W(Qe),K=O(Qe,j),Qe.forEach(u),re=W(Ee),oe=S(Ee,"DIV",{class:!0});var Ue=C(oe);Q=S(Ue,"H4",{class:!0});var tt=C(Q);ce=O(tt,fe),tt.forEach(u),de=W(Ue),I(ue.$$.fragment,Ue),Ue.forEach(u),Z=W(Ee),ge=S(Ee,"DIV",{class:!0});var qe=C(ge);ne=S(qe,"H4",{class:!0});var lt=C(ne);te=O(lt,ve),lt.forEach(u),ke=W(qe),I(me.$$.fragment,qe),qe.forEach(u),V=W(Ee),B&&B.l(Ee),A=W(Ee),z=S(Ee,"DIV",{class:!0});var ct=C(z);L=S(ct,"H4",{class:!0});var yt=C(L);he=O(yt,ie),yt.forEach(u),be=W(ct),Ae=O(ct,ye),ct.forEach(u),Ee.forEach(u),We=W(Pe),De=S(Pe,"DIV",{class:!0});var ut=C(De);M&&M.l(ut),Me=W(ut),x&&x.l(ut),ut.forEach(u),Pe.forEach(u),Be.forEach(u),Xe=W(U),U.forEach(u),this.h()},h(){T(t,"class","w-full self-start text-sm font-normal text-gray-500"),T(m,"class","pending-activity-detail-header svelte-155uvlv"),T(c,"class","pending-activity-detail svelte-155uvlv"),T(R,"class","pending-activity-detail-header svelte-155uvlv"),T(k,"class","pending-activity-detail svelte-155uvlv"),T(Q,"class","pending-activity-detail-header svelte-155uvlv"),T(oe,"class","pending-activity-detail svelte-155uvlv"),T(ne,"class","pending-activity-detail-header svelte-155uvlv"),T(ge,"class","pending-activity-detail svelte-155uvlv"),T(L,"class","pending-activity-detail-header svelte-155uvlv"),T(z,"class","pending-activity-detail svelte-155uvlv"),T(i,"class","pending-activity-inner-row svelte-155uvlv"),T(De,"class","pending-activity-failure-details svelte-155uvlv"),T(f,"class","pending-activity-summary svelte-155uvlv"),T(a,"class","pending-activity-row svelte-155uvlv"),T(l,"class","pending-activity-row-container svelte-155uvlv"),this.first=l},m(we,U){w(we,l,U),d(l,t),d(t,n),d(l,s),d(l,a),d(a,f),d(f,i),d(i,c),d(c,m),d(m,D),d(c,P),E(h,c,null),d(i,g),d(i,k),d(k,R),d(R,Y),d(k,ae),d(k,K),d(i,re),d(i,oe),d(oe,Q),d(Q,ce),d(oe,de),E(ue,oe,null),d(i,Z),d(i,ge),d(ge,ne),d(ne,te),d(ge,ke),E(me,ge,null),d(i,V),B&&B.m(i,null),d(i,A),d(i,z),d(z,L),d(L,he),d(z,be),d(z,Ae),d(f,We),d(f,De),M&&M.m(De,null),d(De,Me),x&&x.m(De,null),d(l,Xe),Fe=!0},p(we,U){var Ee,Oe;e=we,(!Fe||U&4)&&r!==(r=e[9].activityId+"")&&ee(n,r);const Ne={};U&4&&(Ne.type=e[10]?"error":"default"),U&8196&&(Ne.$$scope={dirty:U,ctx:e}),h.$set(Ne),(!Fe||U&28)&&j!==(j=Ye(e[9].lastHeartbeatTime,e[3],{relative:e[4]})+"")&&ee(K,j);const Be={};U&4&&(Be.type=e[10]?"error":"default"),U&8196&&(Be.$$scope={dirty:U,ctx:e}),ue.$set(Be);const Pe={};U&4&&(Pe.type=e[10]?"error":"default"),U&8196&&(Pe.$$scope={dirty:U,ctx:e}),me.$set(Pe),e[10]&&e[9].scheduledTime?B?(B.p(e,U),U&4&&$(B,1)):(B=Kt(e),B.c(),$(B,1),B.m(i,A)):B&&(G(),_(B,1,1,()=>{B=null}),J()),(!Fe||U&4)&&ye!==(ye=Nt(e[9].maximumAttempts,Vt(Ht({start:Date.now(),end:e[9].expirationTime})))+"")&&ee(Ae,ye),(Ee=e[9])!=null&&Ee.heartbeatDetails?M?(M.p(e,U),U&4&&$(M,1)):(M=Gt(e),M.c(),$(M,1),M.m(De,Me)):M&&(G(),_(M,1,1,()=>{M=null}),J()),(Oe=e[9])!=null&&Oe.lastFailure?x?(x.p(e,U),U&4&&$(x,1)):(x=Jt(e),x.c(),$(x,1),x.m(De,null)):x&&(G(),_(x,1,1,()=>{x=null}),J())},i(we){Fe||($(h.$$.fragment,we),$(ue.$$.fragment,we),$(me.$$.fragment,we),$(B),$(M),$(x),Fe=!0)},o(we){_(h.$$.fragment,we),_(ue.$$.fragment,we),_(me.$$.fragment,we),_(B),_(M),_(x),Fe=!1},d(we){we&&u(l),y(h),y(ue),y(me),B&&B.d(),M&&M.d(),x&&x.d()}}}function cn(o){let e=v("workflows.pending-activities-link")+"",l;return{c(){l=F(e)},l(t){l=O(t,e)},m(t,r){w(t,l,r)},p:X,d(t){t&&u(l)}}}function un(o){let e,l=[],t=new Map,r,n,s,a,f=o[2];const i=c=>c[8];for(let c=0;c{n=null}),J())},i(s){r||($(l.$$.fragment,s),$(n),r=!0)},o(s){_(l.$$.fragment,s),_(n),r=!1},d(s){s&&u(e),y(l),n&&n.d()}}}function dn(o){let e,l,t=o[2].length&&Ut(o);return{c(){t&&t.c(),e=se()},l(r){t&&t.l(r),e=se()},m(r,n){t&&t.m(r,n),w(r,e,n),l=!0},p(r,[n]){r[2].length?t?(t.p(r,n),n&4&&$(t,1)):(t=Ut(r),t.c(),$(t,1),t.m(e.parentNode,e)):t&&(G(),_(t,1,1,()=>{t=null}),J())},i(r){l||($(t),l=!0)},o(r){_(t),l=!1},d(r){t&&t.d(r),r&&u(e)}}}function gn(o,e,l){let t,r,n,s,a,f,i,c;return le(o,Ge,m=>l(6,a=m)),le(o,at,m=>l(7,f=m)),le(o,Bl,m=>l(3,i=m)),le(o,Rl,m=>l(4,c=m)),o.$$.update=()=>{o.$$.dirty&128&&l(5,{workflow:t}=f,t),o.$$.dirty&32&&l(2,r=t==null?void 0:t.pendingActivities),o.$$.dirty&64&&l(1,n=or({namespace:a.params.namespace,workflow:a.params.workflow,run:a.params.run})),o.$$.dirty&32&&l(0,s=["Terminated","TimedOut","Canceled"].includes(t==null?void 0:t.status))},[s,n,r,i,c,t,a,f]}class hn extends $e{constructor(e){super(),pe(this,e,gn,dn,_e,{})}}function Zt(o){let e,l,t,r;return l=new Et({props:{bold:!0,icon:"warning",intent:"warning",title:v("workflows.workflow-error-no-workers-title"),$$slots:{default:[wn]},$$scope:{ctx:o}}}),{c(){e=N("div"),b(l.$$.fragment),this.h()},l(n){e=S(n,"DIV",{class:!0});var s=C(e);I(l.$$.fragment,s),s.forEach(u),this.h()},h(){T(e,"class","mb-4")},m(n,s){w(n,e,s),E(l,e,null),r=!0},p(n,s){const a={};s&129&&(a.$$scope={dirty:s,ctx:n}),l.$set(a)},i(n){r||($(l.$$.fragment,n),t||Pl(()=>{t=Fl(e,jl,{duration:200,delay:100}),t.start()}),r=!0)},o(n){_(l.$$.fragment,n),r=!1},d(n){n&&u(e),y(l)}}}function wn(o){var t;let e=v("workflows.workflow-error-no-workers-description",{taskQueue:(t=o[0])==null?void 0:t.taskQueue})+"",l;return{c(){l=F(e)},l(r){l=O(r,e)},m(r,n){w(r,l,n)},p(r,n){var s;n&1&&e!==(e=v("workflows.workflow-error-no-workers-description",{taskQueue:(s=r[0])==null?void 0:s.taskQueue})+"")&&ee(l,e)},d(r){r&&u(l)}}}function xt(o){let e,l,t,r;return l=new Et({props:{bold:!0,icon:"warning",intent:"warning",title:v("workflows.workflow-error-no-compatible-workers-title"),$$slots:{default:[vn]},$$scope:{ctx:o}}}),{c(){e=N("div"),b(l.$$.fragment),this.h()},l(n){e=S(n,"DIV",{class:!0});var s=C(e);I(l.$$.fragment,s),s.forEach(u),this.h()},h(){T(e,"class","mb-4")},m(n,s){w(n,e,s),E(l,e,null),r=!0},p(n,s){const a={};s&129&&(a.$$scope={dirty:s,ctx:n}),l.$set(a)},i(n){r||($(l.$$.fragment,n),t||Pl(()=>{t=Fl(e,jl,{duration:200,delay:100}),t.start()}),r=!0)},o(n){_(l.$$.fragment,n),r=!1},d(n){n&&u(e),y(l)}}}function vn(o){var t;let e=v("workflows.workflow-error-no-compatible-workers-description",{taskQueue:(t=o[0])==null?void 0:t.taskQueue})+"",l;return{c(){l=F(e)},l(r){l=O(r,e)},m(r,n){w(r,l,n)},p(r,n){var s;n&1&&e!==(e=v("workflows.workflow-error-no-compatible-workers-description",{taskQueue:(s=r[0])==null?void 0:s.taskQueue})+"")&&ee(l,e)},d(r){r&&u(l)}}}function kn(o){let e,l,t,r=o[2]&&Zt(o),n=!o[2]&&o[1]&&xt(o);return{c(){r&&r.c(),e=H(),n&&n.c(),l=se()},l(s){r&&r.l(s),e=W(s),n&&n.l(s),l=se()},m(s,a){r&&r.m(s,a),w(s,e,a),n&&n.m(s,a),w(s,l,a),t=!0},p(s,[a]){s[2]?r?(r.p(s,a),a&4&&$(r,1)):(r=Zt(s),r.c(),$(r,1),r.m(e.parentNode,e)):r&&(G(),_(r,1,1,()=>{r=null}),J()),!s[2]&&s[1]?n?(n.p(s,a),a&6&&$(n,1)):(n=xt(s),n.c(),$(n,1),n.m(l.parentNode,l)):n&&(G(),_(n,1,1,()=>{n=null}),J())},i(s){t||($(r),$(n),t=!0)},o(s){_(r),_(n),t=!1},d(s){r&&r.d(s),s&&u(e),n&&n.d(s),s&&u(l)}}}function bn(o,e,l){let t,r,n,s,a,f;le(o,at,c=>l(6,f=c));var i;return o.$$.update=()=>{o.$$.dirty&64&&l(0,{workflow:t,workers:r,compatibility:n}=f,t,(l(5,r),l(6,f)),(l(4,n),l(6,f))),o.$$.dirty&41&&l(2,s=(t==null?void 0:t.isRunning)&&!(!(l(3,i=r==null?void 0:r.pollers)===null||i===void 0)&&i.length)),o.$$.dirty&49&&l(1,a=(t==null?void 0:t.isRunning)&&!sr(t,r.pollers,n))},[t,a,s,i,n,r,f]}class En extends $e{constructor(e){super(),pe(this,e,bn,kn,_e,{})}}function el(o,e,l){const t=o.slice();return t[7]=e[l],t}function yn(o){let e=o[7].workflowId+"",l;return{c(){l=F(e)},l(t){l=O(t,e)},m(t,r){w(t,l,r)},p(t,r){r&64&&e!==(e=t[7].workflowId+"")&&ee(l,e)},d(t){t&&u(l)}}}function In(o){let e=o[7].runId+"",l;return{c(){l=F(e)},l(t){l=O(t,e)},m(t,r){w(t,l,r)},p(t,r){r&64&&e!==(e=t[7].runId+"")&&ee(l,e)},d(t){t&&u(l)}}}function Tn(o){let e,l,t,r,n=o[7].type+"",s,a,f,i,c,m,p,D,P;return l=new ar({props:{status:o[7].status}}),i=new He({props:{href:Ce({namespace:o[7].namespace,workflow:o[7].workflowId,run:o[7].runId}),$$slots:{default:[yn]},$$scope:{ctx:o}}}),p=new He({props:{href:Ce({namespace:o[7].namespace,workflow:o[7].workflowId,run:o[7].runId}),$$slots:{default:[In]},$$scope:{ctx:o}}}),{c(){e=N("td"),b(l.$$.fragment),t=H(),r=N("td"),s=F(n),a=H(),f=N("td"),b(i.$$.fragment),c=H(),m=N("td"),b(p.$$.fragment),D=H(),this.h()},l(h){e=S(h,"TD",{class:!0});var g=C(e);I(l.$$.fragment,g),g.forEach(u),t=W(h),r=S(h,"TD",{class:!0});var k=C(r);s=O(k,n),k.forEach(u),a=W(h),f=S(h,"TD",{class:!0});var R=C(f);I(i.$$.fragment,R),R.forEach(u),c=W(h),m=S(h,"TD",{class:!0});var q=C(m);I(p.$$.fragment,q),q.forEach(u),D=W(h),this.h()},h(){T(e,"class","max-md:hidden"),T(r,"class","max-lg:hidden"),T(f,"class","hover:text-blue-700 hover:underline"),T(m,"class","hover:text-blue-700 hover:underline")},m(h,g){w(h,e,g),E(l,e,null),w(h,t,g),w(h,r,g),d(r,s),w(h,a,g),w(h,f,g),E(i,f,null),w(h,c,g),w(h,m,g),E(p,m,null),w(h,D,g),P=!0},p(h,g){const k={};g&64&&(k.status=h[7].status),l.$set(k),(!P||g&64)&&n!==(n=h[7].type+"")&&ee(s,n);const R={};g&64&&(R.href=Ce({namespace:h[7].namespace,workflow:h[7].workflowId,run:h[7].runId})),g&1088&&(R.$$scope={dirty:g,ctx:h}),i.$set(R);const q={};g&64&&(q.href=Ce({namespace:h[7].namespace,workflow:h[7].workflowId,run:h[7].runId})),g&1088&&(q.$$scope={dirty:g,ctx:h}),p.$set(q)},i(h){P||($(l.$$.fragment,h),$(i.$$.fragment,h),$(p.$$.fragment,h),P=!0)},o(h){_(l.$$.fragment,h),_(i.$$.fragment,h),_(p.$$.fragment,h),P=!1},d(h){h&&u(e),y(l),h&&u(t),h&&u(r),h&&u(a),h&&u(f),y(i),h&&u(c),h&&u(m),y(p),h&&u(D)}}}function tl(o){let e,l;return e=new dt({props:{$$slots:{default:[Tn]},$$scope:{ctx:o}}}),{c(){b(e.$$.fragment)},l(t){I(e.$$.fragment,t)},m(t,r){E(e,t,r),l=!0},p(t,r){const n={};r&1088&&(n.$$scope={dirty:r,ctx:t}),e.$set(n)},i(t){l||($(e.$$.fragment,t),l=!0)},o(t){_(e.$$.fragment,t),l=!1},d(t){y(e,t)}}}function Cn(o){let e,l,t=o[6],r=[];for(let s=0;s_(r[s],1,1,()=>{r[s]=null});return{c(){for(let s=0;s({6:t}),({visibleItems:t})=>t?64:0],default:[Sn,({visibleItems:t})=>({6:t}),({visibleItems:t})=>t?64:0]},$$scope:{ctx:o}}}),{c(){b(e.$$.fragment)},l(t){I(e.$$.fragment,t)},m(t,r){E(e,t,r),l=!0},p(t,[r]){const n={};r&1&&(n.items=t[0]),r&1088&&(n.$$scope={dirty:r,ctx:t}),e.$set(n)},i(t){l||($(e.$$.fragment,t),l=!0)},o(t){_(e.$$.fragment,t),l=!1},d(t){y(e,t)}}}function Wn(o,e,l){let t,r,n,{children:s=[]}=e,{pendingChildren:a=[]}=e,{namespace:f}=e;return o.$$set=i=>{"children"in i&&l(1,s=i.children),"pendingChildren"in i&&l(2,a=i.pendingChildren),"namespace"in i&&l(3,f=i.namespace)},o.$$.update=()=>{o.$$.dirty&12&&l(5,t=a.map(i=>({runId:i.runId,workflowId:i.workflowId,status:"Running",type:i.workflowTypeName,namespace:f}))),o.$$.dirty&10&&l(4,r=s.map(i=>{var c;return{runId:i.attributes.workflowExecution.runId,workflowId:i.attributes.workflowExecution.workflowId,type:i.attributes.workflowType,status:i.classification,namespace:((c=i.attributes)===null||c===void 0?void 0:c.namespace)||f}})),o.$$.dirty&48&&l(0,n=[...t,...r])},[n,s,a,f,r,t]}class Pn extends $e{constructor(e){super(),pe(this,e,Wn,Hn,_e,{children:1,pendingChildren:2,namespace:3})}}function ll(o){let e,l;return e=new He({props:{href:Ce({namespace:o[1],workflow:o[0],run:o[2]}),$$slots:{default:[Fn]},$$scope:{ctx:o}}}),{c(){b(e.$$.fragment)},l(t){I(e.$$.fragment,t)},m(t,r){E(e,t,r),l=!0},p(t,r){const n={};r&7&&(n.href=Ce({namespace:t[1],workflow:t[0],run:t[2]})),r&36&&(n.$$scope={dirty:r,ctx:t}),e.$set(n)},i(t){l||($(e.$$.fragment,t),l=!0)},o(t){_(e.$$.fragment,t),l=!1},d(t){y(e,t)}}}function Fn(o){let e,l;return e=new Je({props:{copyIconTitle:v("common.copy-icon-title"),copySuccessIconTitle:v("common.copy-success-icon-title"),content:o[2],visible:!0}}),{c(){b(e.$$.fragment)},l(t){I(e.$$.fragment,t)},m(t,r){E(e,t,r),l=!0},p(t,r){const n={};r&4&&(n.content=t[2]),e.$set(n)},i(t){l||($(e.$$.fragment,t),l=!0)},o(t){_(e.$$.fragment,t),l=!1},d(t){y(e,t)}}}function rl(o){let e,l;return e=new He({props:{href:Ce({namespace:o[1],workflow:o[0],run:o[4]}),$$slots:{default:[On]},$$scope:{ctx:o}}}),{c(){b(e.$$.fragment)},l(t){I(e.$$.fragment,t)},m(t,r){E(e,t,r),l=!0},p(t,r){const n={};r&19&&(n.href=Ce({namespace:t[1],workflow:t[0],run:t[4]})),r&48&&(n.$$scope={dirty:r,ctx:t}),e.$set(n)},i(t){l||($(e.$$.fragment,t),l=!0)},o(t){_(e.$$.fragment,t),l=!1},d(t){y(e,t)}}}function On(o){let e,l;return e=new Je({props:{copyIconTitle:v("common.copy-icon-title"),copySuccessIconTitle:v("common.copy-success-icon-title"),content:o[4],visible:!0}}),{c(){b(e.$$.fragment)},l(t){I(e.$$.fragment,t)},m(t,r){E(e,t,r),l=!0},p(t,r){const n={};r&16&&(n.content=t[4]),e.$set(n)},i(t){l||($(e.$$.fragment,t),l=!0)},o(t){_(e.$$.fragment,t),l=!1},d(t){y(e,t)}}}function nl(o){let e,l;return e=new He({props:{href:Ce({namespace:o[1],workflow:o[0],run:o[3]}),$$slots:{default:[Bn]},$$scope:{ctx:o}}}),{c(){b(e.$$.fragment)},l(t){I(e.$$.fragment,t)},m(t,r){E(e,t,r),l=!0},p(t,r){const n={};r&11&&(n.href=Ce({namespace:t[1],workflow:t[0],run:t[3]})),r&40&&(n.$$scope={dirty:r,ctx:t}),e.$set(n)},i(t){l||($(e.$$.fragment,t),l=!0)},o(t){_(e.$$.fragment,t),l=!1},d(t){y(e,t)}}}function Bn(o){let e,l;return e=new Je({props:{copyIconTitle:v("common.copy-icon-title"),copySuccessIconTitle:v("common.copy-success-icon-title"),content:o[3],visible:!0}}),{c(){b(e.$$.fragment)},l(t){I(e.$$.fragment,t)},m(t,r){E(e,t,r),l=!0},p(t,r){const n={};r&8&&(n.content=t[3]),e.$set(n)},i(t){l||($(e.$$.fragment,t),l=!0)},o(t){_(e.$$.fragment,t),l=!1},d(t){y(e,t)}}}function Rn(o){let e,l,t,r,n,s,a=o[2]&&ll(o),f=o[4]&&rl(o),i=o[3]&&nl(o);return{c(){e=N("td"),a&&a.c(),l=H(),t=N("td"),f&&f.c(),r=H(),n=N("td"),i&&i.c(),this.h()},l(c){e=S(c,"TD",{class:!0});var m=C(e);a&&a.l(m),m.forEach(u),l=W(c),t=S(c,"TD",{class:!0});var p=C(t);f&&f.l(p),p.forEach(u),r=W(c),n=S(c,"TD",{class:!0});var D=C(n);i&&i.l(D),D.forEach(u),this.h()},h(){T(e,"class","w-1/3 hover:text-blue-700 hover:underline"),T(t,"class","w-1/3 hover:text-blue-700 hover:underline"),T(n,"class","w-1/3 hover:text-blue-700 hover:underline")},m(c,m){w(c,e,m),a&&a.m(e,null),w(c,l,m),w(c,t,m),f&&f.m(t,null),w(c,r,m),w(c,n,m),i&&i.m(n,null),s=!0},p(c,m){c[2]?a?(a.p(c,m),m&4&&$(a,1)):(a=ll(c),a.c(),$(a,1),a.m(e,null)):a&&(G(),_(a,1,1,()=>{a=null}),J()),c[4]?f?(f.p(c,m),m&16&&$(f,1)):(f=rl(c),f.c(),$(f,1),f.m(t,null)):f&&(G(),_(f,1,1,()=>{f=null}),J()),c[3]?i?(i.p(c,m),m&8&&$(i,1)):(i=nl(c),i.c(),$(i,1),i.m(n,null)):i&&(G(),_(i,1,1,()=>{i=null}),J())},i(c){s||($(a),$(f),$(i),s=!0)},o(c){_(a),_(f),_(i),s=!1},d(c){c&&u(e),a&&a.d(),c&&u(l),c&&u(t),f&&f.d(),c&&u(r),c&&u(n),i&&i.d()}}}function jn(o){let e,l;return e=new dt({props:{$$slots:{default:[Rn]},$$scope:{ctx:o}}}),{c(){b(e.$$.fragment)},l(t){I(e.$$.fragment,t)},m(t,r){E(e,t,r),l=!0},p(t,r){const n={};r&63&&(n.$$scope={dirty:r,ctx:t}),e.$set(n)},i(t){l||($(e.$$.fragment,t),l=!0)},o(t){_(e.$$.fragment,t),l=!1},d(t){y(e,t)}}}function zn(o){let e,l=v("workflows.relationships")+"",t;return{c(){e=N("caption"),t=F(l),this.h()},l(r){e=S(r,"CAPTION",{class:!0,slot:!0});var n=C(e);t=O(n,l),n.forEach(u),this.h()},h(){T(e,"class","sr-only"),T(e,"slot","caption")},m(r,n){w(r,e,n),d(e,t)},p:X,d(r){r&&u(e)}}}function Ln(o){let e,l=v("workflows.first-execution")+"",t,r,n,s=v("workflows.previous-execution")+"",a,f,i,c=v("workflows.next-execution")+"",m;return{c(){e=N("th"),t=F(l),r=H(),n=N("th"),a=F(s),f=H(),i=N("th"),m=F(c)},l(p){e=S(p,"TH",{});var D=C(e);t=O(D,l),D.forEach(u),r=W(p),n=S(p,"TH",{});var P=C(n);a=O(P,s),P.forEach(u),f=W(p),i=S(p,"TH",{});var h=C(i);m=O(h,c),h.forEach(u)},m(p,D){w(p,e,D),d(e,t),w(p,r,D),w(p,n,D),d(n,a),w(p,f,D),w(p,i,D),d(i,m)},p:X,d(p){p&&u(e),p&&u(r),p&&u(n),p&&u(f),p&&u(i)}}}function Mn(o){let e,l;return e=new it({props:{slot:"headers",$$slots:{default:[Ln]},$$scope:{ctx:o}}}),{c(){b(e.$$.fragment)},l(t){I(e.$$.fragment,t)},m(t,r){E(e,t,r),l=!0},p(t,r){const n={};r&32&&(n.$$scope={dirty:r,ctx:t}),e.$set(n)},i(t){l||($(e.$$.fragment,t),l=!0)},o(t){_(e.$$.fragment,t),l=!1},d(t){y(e,t)}}}function Qn(o){let e,l;return e=new ft({props:{class:"w-full",$$slots:{headers:[Mn],caption:[zn],default:[jn]},$$scope:{ctx:o}}}),{c(){b(e.$$.fragment)},l(t){I(e.$$.fragment,t)},m(t,r){E(e,t,r),l=!0},p(t,[r]){const n={};r&63&&(n.$$scope={dirty:r,ctx:t}),e.$set(n)},i(t){l||($(e.$$.fragment,t),l=!0)},o(t){_(e.$$.fragment,t),l=!1},d(t){y(e,t)}}}function Un(o,e,l){let{workflow:t}=e,{namespace:r}=e,{first:n}=e,{next:s}=e,{previous:a}=e;return o.$$set=f=>{"workflow"in f&&l(0,t=f.workflow),"namespace"in f&&l(1,r=f.namespace),"first"in f&&l(2,n=f.first),"next"in f&&l(3,s=f.next),"previous"in f&&l(4,a=f.previous)},[t,r,n,s,a]}class qn extends $e{constructor(e){super(),pe(this,e,Un,Qn,_e,{workflow:0,namespace:1,first:2,next:3,previous:4})}}function Kn(o){let e,l;return e=new Je({props:{copyIconTitle:v("common.copy-icon-title"),copySuccessIconTitle:v("common.copy-success-icon-title"),content:o[0].workflowId,visible:!0}}),{c(){b(e.$$.fragment)},l(t){I(e.$$.fragment,t)},m(t,r){E(e,t,r),l=!0},p(t,r){const n={};r&1&&(n.content=t[0].workflowId),e.$set(n)},i(t){l||($(e.$$.fragment,t),l=!0)},o(t){_(e.$$.fragment,t),l=!1},d(t){y(e,t)}}}function Gn(o){let e,l;return e=new Je({props:{copyIconTitle:v("common.copy-icon-title"),copySuccessIconTitle:v("common.copy-success-icon-title"),content:o[0].runId,visible:!0}}),{c(){b(e.$$.fragment)},l(t){I(e.$$.fragment,t)},m(t,r){E(e,t,r),l=!0},p(t,r){const n={};r&1&&(n.content=t[0].runId),e.$set(n)},i(t){l||($(e.$$.fragment,t),l=!0)},o(t){_(e.$$.fragment,t),l=!1},d(t){y(e,t)}}}function Jn(o){let e,l,t,r,n,s;return l=new He({props:{href:Ce({namespace:o[1]??o[2],workflow:o[0].workflowId,run:o[0].runId}),$$slots:{default:[Kn]},$$scope:{ctx:o}}}),n=new He({props:{href:Ce({namespace:o[1]??o[2],workflow:o[0].workflowId,run:o[0].runId}),$$slots:{default:[Gn]},$$scope:{ctx:o}}}),{c(){e=N("td"),b(l.$$.fragment),t=H(),r=N("td"),b(n.$$.fragment)},l(a){e=S(a,"TD",{});var f=C(e);I(l.$$.fragment,f),f.forEach(u),t=W(a),r=S(a,"TD",{});var i=C(r);I(n.$$.fragment,i),i.forEach(u)},m(a,f){w(a,e,f),E(l,e,null),w(a,t,f),w(a,r,f),E(n,r,null),s=!0},p(a,f){const i={};f&7&&(i.href=Ce({namespace:a[1]??a[2],workflow:a[0].workflowId,run:a[0].runId})),f&9&&(i.$$scope={dirty:f,ctx:a}),l.$set(i);const c={};f&7&&(c.href=Ce({namespace:a[1]??a[2],workflow:a[0].workflowId,run:a[0].runId})),f&9&&(c.$$scope={dirty:f,ctx:a}),n.$set(c)},i(a){s||($(l.$$.fragment,a),$(n.$$.fragment,a),s=!0)},o(a){_(l.$$.fragment,a),_(n.$$.fragment,a),s=!1},d(a){a&&u(e),y(l),a&&u(t),a&&u(r),y(n)}}}function Xn(o){let e,l;return e=new dt({props:{class:"hover:text-blue-700 hover:underline",$$slots:{default:[Jn]},$$scope:{ctx:o}}}),{c(){b(e.$$.fragment)},l(t){I(e.$$.fragment,t)},m(t,r){E(e,t,r),l=!0},p(t,r){const n={};r&15&&(n.$$scope={dirty:r,ctx:t}),e.$set(n)},i(t){l||($(e.$$.fragment,t),l=!0)},o(t){_(e.$$.fragment,t),l=!1},d(t){y(e,t)}}}function Yn(o){let e,l=v("workflows.parent-workflow")+"",t;return{c(){e=N("caption"),t=F(l),this.h()},l(r){e=S(r,"CAPTION",{class:!0,slot:!0});var n=C(e);t=O(n,l),n.forEach(u),this.h()},h(){T(e,"class","sr-only"),T(e,"slot","caption")},m(r,n){w(r,e,n),d(e,t)},p:X,d(r){r&&u(e)}}}function Zn(o){let e,l=v("workflows.parent-id")+"",t,r,n,s=v("workflows.parent-run-id")+"",a;return{c(){e=N("th"),t=F(l),r=H(),n=N("th"),a=F(s)},l(f){e=S(f,"TH",{});var i=C(e);t=O(i,l),i.forEach(u),r=W(f),n=S(f,"TH",{});var c=C(n);a=O(c,s),c.forEach(u)},m(f,i){w(f,e,i),d(e,t),w(f,r,i),w(f,n,i),d(n,a)},p:X,d(f){f&&u(e),f&&u(r),f&&u(n)}}}function xn(o){let e,l;return e=new it({props:{slot:"headers",$$slots:{default:[Zn]},$$scope:{ctx:o}}}),{c(){b(e.$$.fragment)},l(t){I(e.$$.fragment,t)},m(t,r){E(e,t,r),l=!0},p(t,r){const n={};r&8&&(n.$$scope={dirty:r,ctx:t}),e.$set(n)},i(t){l||($(e.$$.fragment,t),l=!0)},o(t){_(e.$$.fragment,t),l=!1},d(t){y(e,t)}}}function eo(o){let e,l;return e=new ft({props:{class:"w-full",$$slots:{headers:[xn],caption:[Yn],default:[Xn]},$$scope:{ctx:o}}}),{c(){b(e.$$.fragment)},l(t){I(e.$$.fragment,t)},m(t,r){E(e,t,r),l=!0},p(t,[r]){const n={};r&15&&(n.$$scope={dirty:r,ctx:t}),e.$set(n)},i(t){l||($(e.$$.fragment,t),l=!0)},o(t){_(e.$$.fragment,t),l=!1},d(t){y(e,t)}}}function to(o,e,l){let{parent:t}=e,{parentNamespaceName:r}=e,{namespace:n}=e;return o.$$set=s=>{"parent"in s&&l(0,t=s.parent),"parentNamespaceName"in s&&l(1,r=s.parentNamespaceName),"namespace"in s&&l(2,n=s.namespace)},[t,r,n]}class lo extends $e{constructor(e){super(),pe(this,e,to,eo,_e,{parent:0,parentNamespaceName:1,namespace:2})}}function ro(o){let e,l;return e=new Je({props:{copyIconTitle:v("common.copy-icon-title"),copySuccessIconTitle:v("common.copy-success-icon-title"),content:o[0],visible:!0}}),{c(){b(e.$$.fragment)},l(t){I(e.$$.fragment,t)},m(t,r){E(e,t,r),l=!0},p(t,r){const n={};r&1&&(n.content=t[0]),e.$set(n)},i(t){l||($(e.$$.fragment,t),l=!0)},o(t){_(e.$$.fragment,t),l=!1},d(t){y(e,t)}}}function no(o){let e,l,t;return l=new He({props:{href:Wt({namespace:o[1],scheduleId:o[0]}),$$slots:{default:[ro]},$$scope:{ctx:o}}}),{c(){e=N("td"),b(l.$$.fragment)},l(r){e=S(r,"TD",{});var n=C(e);I(l.$$.fragment,n),n.forEach(u)},m(r,n){w(r,e,n),E(l,e,null),t=!0},p(r,n){const s={};n&3&&(s.href=Wt({namespace:r[1],scheduleId:r[0]})),n&5&&(s.$$scope={dirty:n,ctx:r}),l.$set(s)},i(r){t||($(l.$$.fragment,r),t=!0)},o(r){_(l.$$.fragment,r),t=!1},d(r){r&&u(e),y(l)}}}function oo(o){let e,l;return e=new dt({props:{class:"hover:text-blue-700 hover:underline",$$slots:{default:[no]},$$scope:{ctx:o}}}),{c(){b(e.$$.fragment)},l(t){I(e.$$.fragment,t)},m(t,r){E(e,t,r),l=!0},p(t,r){const n={};r&7&&(n.$$scope={dirty:r,ctx:t}),e.$set(n)},i(t){l||($(e.$$.fragment,t),l=!0)},o(t){_(e.$$.fragment,t),l=!1},d(t){y(e,t)}}}function so(o){let e,l=v("schedules.schedule")+"",t;return{c(){e=N("caption"),t=F(l),this.h()},l(r){e=S(r,"CAPTION",{class:!0,slot:!0});var n=C(e);t=O(n,l),n.forEach(u),this.h()},h(){T(e,"class","sr-only"),T(e,"slot","caption")},m(r,n){w(r,e,n),d(e,t)},p:X,d(r){r&&u(e)}}}function ao(o){let e,l=v("schedules.schedule")+"",t;return{c(){e=N("th"),t=F(l)},l(r){e=S(r,"TH",{});var n=C(e);t=O(n,l),n.forEach(u)},m(r,n){w(r,e,n),d(e,t)},p:X,d(r){r&&u(e)}}}function fo(o){let e,l;return e=new it({props:{slot:"headers",$$slots:{default:[ao]},$$scope:{ctx:o}}}),{c(){b(e.$$.fragment)},l(t){I(e.$$.fragment,t)},m(t,r){E(e,t,r),l=!0},p(t,r){const n={};r&4&&(n.$$scope={dirty:r,ctx:t}),e.$set(n)},i(t){l||($(e.$$.fragment,t),l=!0)},o(t){_(e.$$.fragment,t),l=!1},d(t){y(e,t)}}}function io(o){let e,l;return e=new ft({props:{class:"w-full",$$slots:{headers:[fo],caption:[so],default:[oo]},$$scope:{ctx:o}}}),{c(){b(e.$$.fragment)},l(t){I(e.$$.fragment,t)},m(t,r){E(e,t,r),l=!0},p(t,[r]){const n={};r&7&&(n.$$scope={dirty:r,ctx:t}),e.$set(n)},i(t){l||($(e.$$.fragment,t),l=!0)},o(t){_(e.$$.fragment,t),l=!1},d(t){y(e,t)}}}function co(o,e,l){let{scheduleId:t}=e,{namespace:r}=e;return o.$$set=n=>{"scheduleId"in n&&l(0,t=n.scheduleId),"namespace"in n&&l(1,r=n.namespace)},[t,r]}class uo extends $e{constructor(e){super(),pe(this,e,co,io,_e,{scheduleId:0,namespace:1})}}function mo(o){let e,l=v("workflows.no-relationships")+"",t;return{c(){e=N("p"),t=F(l)},l(r){e=S(r,"P",{});var n=C(e);t=O(n,l),n.forEach(u)},m(r,n){w(r,e,n),d(e,t)},p:X,i:X,o:X,d(r){r&&u(e)}}}function $o(o){let e,l,t,r,n,s,a=o[8]&&ol(o),f=o[3]&&sl(o),i=(o[2]||o[7]||o[6])&&al(o),c=o[0]&&fl(o);return{c(){e=N("div"),a&&a.c(),l=H(),f&&f.c(),t=H(),i&&i.c(),r=H(),c&&c.c(),n=se(),this.h()},l(m){e=S(m,"DIV",{class:!0});var p=C(e);a&&a.l(p),l=W(p),f&&f.l(p),t=W(p),i&&i.l(p),p.forEach(u),r=W(m),c&&c.l(m),n=se(),this.h()},h(){T(e,"class","flex w-full flex-wrap gap-4")},m(m,p){w(m,e,p),a&&a.m(e,null),d(e,l),f&&f.m(e,null),d(e,t),i&&i.m(e,null),w(m,r,p),c&&c.m(m,p),w(m,n,p),s=!0},p(m,p){m[8]?a?(a.p(m,p),p&256&&$(a,1)):(a=ol(m),a.c(),$(a,1),a.m(e,l)):a&&(G(),_(a,1,1,()=>{a=null}),J()),m[3]?f?(f.p(m,p),p&8&&$(f,1)):(f=sl(m),f.c(),$(f,1),f.m(e,t)):f&&(G(),_(f,1,1,()=>{f=null}),J()),m[2]||m[7]||m[6]?i?(i.p(m,p),p&196&&$(i,1)):(i=al(m),i.c(),$(i,1),i.m(e,null)):i&&(G(),_(i,1,1,()=>{i=null}),J()),m[0]?c?(c.p(m,p),p&1&&$(c,1)):(c=fl(m),c.c(),$(c,1),c.m(n.parentNode,n)):c&&(G(),_(c,1,1,()=>{c=null}),J())},i(m){s||($(a),$(f),$(i),$(c),s=!0)},o(m){_(a),_(f),_(i),_(c),s=!1},d(m){m&&u(e),a&&a.d(),f&&f.d(),i&&i.d(),m&&u(r),c&&c.d(m),m&&u(n)}}}function ol(o){let e,l;return e=new uo({props:{scheduleId:o[8],namespace:o[10]}}),{c(){b(e.$$.fragment)},l(t){I(e.$$.fragment,t)},m(t,r){E(e,t,r),l=!0},p(t,r){const n={};r&256&&(n.scheduleId=t[8]),r&1024&&(n.namespace=t[10]),e.$set(n)},i(t){l||($(e.$$.fragment,t),l=!0)},o(t){_(e.$$.fragment,t),l=!1},d(t){y(e,t)}}}function sl(o){let e,l;return e=new lo({props:{parent:o[3],parentNamespaceName:o[4],namespace:o[10]}}),{c(){b(e.$$.fragment)},l(t){I(e.$$.fragment,t)},m(t,r){E(e,t,r),l=!0},p(t,r){const n={};r&8&&(n.parent=t[3]),r&16&&(n.parentNamespaceName=t[4]),r&1024&&(n.namespace=t[10]),e.$set(n)},i(t){l||($(e.$$.fragment,t),l=!0)},o(t){_(e.$$.fragment,t),l=!1},d(t){y(e,t)}}}function al(o){let e,l;return e=new qn({props:{first:o[2],previous:o[7],next:o[6],workflow:o[11],namespace:o[10]}}),{c(){b(e.$$.fragment)},l(t){I(e.$$.fragment,t)},m(t,r){E(e,t,r),l=!0},p(t,r){const n={};r&4&&(n.first=t[2]),r&128&&(n.previous=t[7]),r&64&&(n.next=t[6]),r&2048&&(n.workflow=t[11]),r&1024&&(n.namespace=t[10]),e.$set(n)},i(t){l||($(e.$$.fragment,t),l=!0)},o(t){_(e.$$.fragment,t),l=!1},d(t){y(e,t)}}}function fl(o){let e,l;return e=new Pn({props:{children:o[5],pendingChildren:o[12].workflow.pendingChildren,namespace:o[9].params.namespace}}),{c(){b(e.$$.fragment)},l(t){I(e.$$.fragment,t)},m(t,r){E(e,t,r),l=!0},p(t,r){const n={};r&32&&(n.children=t[5]),r&4096&&(n.pendingChildren=t[12].workflow.pendingChildren),r&512&&(n.namespace=t[9].params.namespace),e.$set(n)},i(t){l||($(e.$$.fragment,t),l=!0)},o(t){_(e.$$.fragment,t),l=!1},d(t){y(e,t)}}}function po(o){let e,l,t,r;const n=[$o,mo],s=[];function a(f,i){return f[1]?0:1}return e=a(o),l=s[e]=n[e](o),{c(){l.c(),t=se()},l(f){l.l(f),t=se()},m(f,i){s[e].m(f,i),w(f,t,i),r=!0},p(f,i){let c=e;e=a(f),e===c?s[e].p(f,i):(G(),_(s[c],1,1,()=>{s[c]=null}),J(),l=s[e],l?l.p(f,i):(l=s[e]=n[e](f),l.c()),$(l,1),l.m(t.parentNode,t))},i(f){r||($(l),r=!0)},o(f){_(l),r=!1},d(f){s[e].d(f),f&&u(t)}}}function il(o){let e,l;return e=new Te({props:{type:"purple",$$slots:{default:[_o]},$$scope:{ctx:o}}}),{c(){b(e.$$.fragment)},l(t){I(e.$$.fragment,t)},m(t,r){E(e,t,r),l=!0},p(t,r){const n={};r&8192&&(n.$$scope={dirty:r,ctx:t}),e.$set(n)},i(t){l||($(e.$$.fragment,t),l=!0)},o(t){_(e.$$.fragment,t),l=!1},d(t){y(e,t)}}}function _o(o){let e=v("common.scheduled")+"",l;return{c(){l=F(e)},l(t){l=O(t,e)},m(t,r){w(t,l,r)},p:X,d(t){t&&u(l)}}}function go(o){let e=v("workflows.parents",{count:o[3]?1:0})+"",l;return{c(){l=F(e)},l(t){l=O(t,e)},m(t,r){w(t,l,r)},p(t,r){r&8&&e!==(e=v("workflows.parents",{count:t[3]?1:0})+"")&&ee(l,e)},d(t){t&&u(l)}}}function ho(o){let e=v("workflows.pending-children",{count:o[12].workflow.pendingChildren.length})+"",l;return{c(){l=F(e)},l(t){l=O(t,e)},m(t,r){w(t,l,r)},p(t,r){r&4096&&e!==(e=v("workflows.pending-children",{count:t[12].workflow.pendingChildren.length})+"")&&ee(l,e)},d(t){t&&u(l)}}}function wo(o){let e=v("workflows.children",{count:o[5].length})+"",l;return{c(){l=F(e)},l(t){l=O(t,e)},m(t,r){w(t,l,r)},p(t,r){r&32&&e!==(e=v("workflows.children",{count:t[5].length})+"")&&ee(l,e)},d(t){t&&u(l)}}}function vo(o){let e=v("workflows.first",{count:o[2]?1:0})+"",l;return{c(){l=F(e)},l(t){l=O(t,e)},m(t,r){w(t,l,r)},p(t,r){r&4&&e!==(e=v("workflows.first",{count:t[2]?1:0})+"")&&ee(l,e)},d(t){t&&u(l)}}}function ko(o){let e=v("workflows.previous",{count:o[7]?1:0})+"",l;return{c(){l=F(e)},l(t){l=O(t,e)},m(t,r){w(t,l,r)},p(t,r){r&128&&e!==(e=v("workflows.previous",{count:t[7]?1:0})+"")&&ee(l,e)},d(t){t&&u(l)}}}function bo(o){let e=v("workflows.next",{count:o[6]?1:0})+"",l;return{c(){l=F(e)},l(t){l=O(t,e)},m(t,r){w(t,l,r)},p(t,r){r&64&&e!==(e=v("workflows.next",{count:t[6]?1:0})+"")&&ee(l,e)},d(t){t&&u(l)}}}function Eo(o){let e,l,t,r,n,s,a,f,i,c,m,p,D,P,h=o[8]&&il(o);return t=new Te({props:{type:o[3]?"purple":"gray",$$slots:{default:[go]},$$scope:{ctx:o}}}),n=new Te({props:{type:o[12].workflow.pendingChildren.length?"purple":"gray",$$slots:{default:[ho]},$$scope:{ctx:o}}}),a=new Te({props:{type:o[5].length?"purple":"gray",$$slots:{default:[wo]},$$scope:{ctx:o}}}),i=new Te({props:{type:o[2]?"purple":"gray",$$slots:{default:[vo]},$$scope:{ctx:o}}}),m=new Te({props:{type:o[7]?"purple":"gray",$$slots:{default:[ko]},$$scope:{ctx:o}}}),D=new Te({props:{type:o[6]?"purple":"gray",$$slots:{default:[bo]},$$scope:{ctx:o}}}),{c(){e=N("div"),h&&h.c(),l=H(),b(t.$$.fragment),r=H(),b(n.$$.fragment),s=H(),b(a.$$.fragment),f=H(),b(i.$$.fragment),c=H(),b(m.$$.fragment),p=H(),b(D.$$.fragment),this.h()},l(g){e=S(g,"DIV",{slot:!0,class:!0});var k=C(e);h&&h.l(k),l=W(k),I(t.$$.fragment,k),r=W(k),I(n.$$.fragment,k),s=W(k),I(a.$$.fragment,k),f=W(k),I(i.$$.fragment,k),c=W(k),I(m.$$.fragment,k),p=W(k),I(D.$$.fragment,k),k.forEach(u),this.h()},h(){T(e,"slot","summary"),T(e,"class","hidden flex-row gap-2 lg:flex")},m(g,k){w(g,e,k),h&&h.m(e,null),d(e,l),E(t,e,null),d(e,r),E(n,e,null),d(e,s),E(a,e,null),d(e,f),E(i,e,null),d(e,c),E(m,e,null),d(e,p),E(D,e,null),P=!0},p(g,k){g[8]?h?(h.p(g,k),k&256&&$(h,1)):(h=il(g),h.c(),$(h,1),h.m(e,l)):h&&(G(),_(h,1,1,()=>{h=null}),J());const R={};k&8&&(R.type=g[3]?"purple":"gray"),k&8200&&(R.$$scope={dirty:k,ctx:g}),t.$set(R);const q={};k&4096&&(q.type=g[12].workflow.pendingChildren.length?"purple":"gray"),k&12288&&(q.$$scope={dirty:k,ctx:g}),n.$set(q);const Y={};k&32&&(Y.type=g[5].length?"purple":"gray"),k&8224&&(Y.$$scope={dirty:k,ctx:g}),a.$set(Y);const ae={};k&4&&(ae.type=g[2]?"purple":"gray"),k&8196&&(ae.$$scope={dirty:k,ctx:g}),i.$set(ae);const j={};k&128&&(j.type=g[7]?"purple":"gray"),k&8320&&(j.$$scope={dirty:k,ctx:g}),m.$set(j);const K={};k&64&&(K.type=g[6]?"purple":"gray"),k&8256&&(K.$$scope={dirty:k,ctx:g}),D.$set(K)},i(g){P||($(h),$(t.$$.fragment,g),$(n.$$.fragment,g),$(a.$$.fragment,g),$(i.$$.fragment,g),$(m.$$.fragment,g),$(D.$$.fragment,g),P=!0)},o(g){_(h),_(t.$$.fragment,g),_(n.$$.fragment,g),_(a.$$.fragment,g),_(i.$$.fragment,g),_(m.$$.fragment,g),_(D.$$.fragment,g),P=!1},d(g){g&&u(e),h&&h.d(),y(t),y(n),y(a),y(i),y(m),y(D)}}}function yo(o){let e,l,t;return l=new ot({props:{title:v("workflows.relationships"),"data-testid":"relationships-accordion",icon:"relationship",$$slots:{summary:[Eo],default:[po]},$$scope:{ctx:o}}}),{c(){e=N("section"),b(l.$$.fragment)},l(r){e=S(r,"SECTION",{});var n=C(e);I(l.$$.fragment,n),n.forEach(u)},m(r,n){w(r,e,n),E(l,e,null),t=!0},p(r,[n]){const s={};n&16383&&(s.$$scope={dirty:n,ctx:r}),l.$set(s)},i(r){t||($(l.$$.fragment,r),t=!0)},o(r){_(l.$$.fragment,r),t=!1},d(r){r&&u(e),y(l)}}}function Io(o,e,l){let t,r,n,s;le(o,Ge,g=>l(9,n=g)),le(o,at,g=>l(12,s=g));let{hasChildren:a}=e,{hasRelationships:f}=e,{first:i}=e,{parent:c}=e,{parentNamespaceName:m}=e,{children:p}=e,{next:D}=e,{previous:P}=e,{scheduleId:h}=e;return o.$$set=g=>{"hasChildren"in g&&l(0,a=g.hasChildren),"hasRelationships"in g&&l(1,f=g.hasRelationships),"first"in g&&l(2,i=g.first),"parent"in g&&l(3,c=g.parent),"parentNamespaceName"in g&&l(4,m=g.parentNamespaceName),"children"in g&&l(5,p=g.children),"next"in g&&l(6,D=g.next),"previous"in g&&l(7,P=g.previous),"scheduleId"in g&&l(8,h=g.scheduleId)},o.$$.update=()=>{o.$$.dirty&512&&l(11,{workflow:t,namespace:r}=n.params,t,(l(10,r),l(9,n)))},[a,f,i,c,m,p,D,P,h,n,r,t,s]}class To extends $e{constructor(e){super(),pe(this,e,Io,yo,_e,{hasChildren:0,hasRelationships:1,first:2,parent:3,parentNamespaceName:4,children:5,next:6,previous:7,scheduleId:8})}}function Co(o){let e,l,t,r,n,s,a=o[5]&&cl(o),f=o[0]&&ul(o);const i=[No,Ao],c=[];function m(p,D){return p[3]?0:1}return t=m(o),r=c[t]=i[t](o),{c(){a&&a.c(),e=H(),f&&f.c(),l=H(),r.c(),n=se()},l(p){a&&a.l(p),e=W(p),f&&f.l(p),l=W(p),r.l(p),n=se()},m(p,D){a&&a.m(p,D),w(p,e,D),f&&f.m(p,D),w(p,l,D),c[t].m(p,D),w(p,n,D),s=!0},p(p,D){p[5]?a?(a.p(p,D),D&32&&$(a,1)):(a=cl(p),a.c(),$(a,1),a.m(e.parentNode,e)):a&&(G(),_(a,1,1,()=>{a=null}),J()),p[0]?f?f.p(p,D):(f=ul(p),f.c(),f.m(l.parentNode,l)):f&&(f.d(1),f=null);let P=t;t=m(p),t===P?c[t].p(p,D):(G(),_(c[P],1,1,()=>{c[P]=null}),J(),r=c[t],r?r.p(p,D):(r=c[t]=i[t](p),r.c()),$(r,1),r.m(n.parentNode,n))},i(p){s||($(a),$(r),s=!0)},o(p){_(a),_(r),s=!1},d(p){a&&a.d(p),p&&u(e),f&&f.d(p),p&&u(l),c[t].d(p),p&&u(n)}}}function Do(o){let e,l;return e=new Je({props:{copyIconTitle:v("common.copy-icon-title"),copySuccessIconTitle:v("common.copy-success-icon-title"),content:o[1],visible:!0,"container-class":"gap-1 w-full",$$slots:{default:[Po]},$$scope:{ctx:o}}}),{c(){b(e.$$.fragment)},l(t){I(e.$$.fragment,t)},m(t,r){E(e,t,r),l=!0},p(t,r){const n={};r&2&&(n.content=t[1]),r&107&&(n.$$scope={dirty:r,ctx:t}),e.$set(n)},i(t){l||($(e.$$.fragment,t),l=!0)},o(t){_(e.$$.fragment,t),l=!1},d(t){y(e,t)}}}function cl(o){let e,l;return e=new st({props:{name:o[5]}}),{c(){b(e.$$.fragment)},l(t){I(e.$$.fragment,t)},m(t,r){E(e,t,r),l=!0},p(t,r){const n={};r&32&&(n.name=t[5]),e.$set(n)},i(t){l||($(e.$$.fragment,t),l=!0)},o(t){_(e.$$.fragment,t),l=!1},d(t){y(e,t)}}}function ul(o){let e;return{c(){e=F(o[0])},l(l){e=O(l,o[0])},m(l,t){w(l,e,t)},p(l,t){t&1&&ee(e,l[0])},d(l){l&&u(e)}}}function Ao(o){let e,l;return{c(){e=N("span"),l=F(o[1]),this.h()},l(t){e=S(t,"SPAN",{class:!0});var r=C(e);l=O(r,o[1]),r.forEach(u),this.h()},h(){T(e,"class","value select-all svelte-1wf2pbe")},m(t,r){w(t,e,r),d(e,l)},p(t,r){r&2&&ee(l,t[1])},i:X,o:X,d(t){t&&u(e)}}}function No(o){let e,l;return e=new He({props:{href:o[3],class:"value",$$slots:{default:[So]},$$scope:{ctx:o}}}),{c(){b(e.$$.fragment)},l(t){I(e.$$.fragment,t)},m(t,r){E(e,t,r),l=!0},p(t,r){const n={};r&8&&(n.href=t[3]),r&66&&(n.$$scope={dirty:r,ctx:t}),e.$set(n)},i(t){l||($(e.$$.fragment,t),l=!0)},o(t){_(e.$$.fragment,t),l=!1},d(t){y(e,t)}}}function So(o){let e;return{c(){e=F(o[1])},l(l){e=O(l,o[1])},m(l,t){w(l,e,t)},p(l,t){t&2&&ee(e,l[1])},d(l){l&&u(e)}}}function ml(o){let e,l;return e=new st({props:{name:o[5]}}),{c(){b(e.$$.fragment)},l(t){I(e.$$.fragment,t)},m(t,r){E(e,t,r),l=!0},p(t,r){const n={};r&32&&(n.name=t[5]),e.$set(n)},i(t){l||($(e.$$.fragment,t),l=!0)},o(t){_(e.$$.fragment,t),l=!1},d(t){y(e,t)}}}function $l(o){let e;return{c(){e=F(o[0])},l(l){e=O(l,o[0])},m(l,t){w(l,e,t)},p(l,t){t&1&&ee(e,l[0])},d(l){l&&u(e)}}}function Vo(o){let e,l;return{c(){e=N("span"),l=F(o[1]),this.h()},l(t){e=S(t,"SPAN",{class:!0});var r=C(e);l=O(r,o[1]),r.forEach(u),this.h()},h(){T(e,"class","value select-all svelte-1wf2pbe")},m(t,r){w(t,e,r),d(e,l)},p(t,r){r&2&&ee(l,t[1])},i:X,o:X,d(t){t&&u(e)}}}function Ho(o){let e,l;return e=new He({props:{href:o[3],class:"value",$$slots:{default:[Wo]},$$scope:{ctx:o}}}),{c(){b(e.$$.fragment)},l(t){I(e.$$.fragment,t)},m(t,r){E(e,t,r),l=!0},p(t,r){const n={};r&8&&(n.href=t[3]),r&66&&(n.$$scope={dirty:r,ctx:t}),e.$set(n)},i(t){l||($(e.$$.fragment,t),l=!0)},o(t){_(e.$$.fragment,t),l=!1},d(t){y(e,t)}}}function Wo(o){let e;return{c(){e=F(o[1])},l(l){e=O(l,o[1])},m(l,t){w(l,e,t)},p(l,t){t&2&&ee(e,l[1])},d(l){l&&u(e)}}}function Po(o){let e,l,t,r,n,s,a=o[5]&&ml(o),f=o[0]&&$l(o);const i=[Ho,Vo],c=[];function m(p,D){return p[3]?0:1}return t=m(o),r=c[t]=i[t](o),{c(){a&&a.c(),e=H(),f&&f.c(),l=H(),r.c(),n=se()},l(p){a&&a.l(p),e=W(p),f&&f.l(p),l=W(p),r.l(p),n=se()},m(p,D){a&&a.m(p,D),w(p,e,D),f&&f.m(p,D),w(p,l,D),c[t].m(p,D),w(p,n,D),s=!0},p(p,D){p[5]?a?(a.p(p,D),D&32&&$(a,1)):(a=ml(p),a.c(),$(a,1),a.m(e.parentNode,e)):a&&(G(),_(a,1,1,()=>{a=null}),J()),p[0]?f?f.p(p,D):(f=$l(p),f.c(),f.m(l.parentNode,l)):f&&(f.d(1),f=null);let P=t;t=m(p),t===P?c[t].p(p,D):(G(),_(c[P],1,1,()=>{c[P]=null}),J(),r=c[t],r?r.p(p,D):(r=c[t]=i[t](p),r.c()),$(r,1),r.m(n.parentNode,n))},i(p){s||($(a),$(r),s=!0)},o(p){_(a),_(r),s=!1},d(p){a&&a.d(p),p&&u(e),f&&f.d(p),p&&u(l),c[t].d(p),p&&u(n)}}}function Fo(o){let e,l,t,r,n;const s=[Do,Co],a=[];function f(i,c){return i[2]?0:1}return l=f(o),t=a[l]=s[l](o),{c(){e=N("p"),t.c(),this.h()},l(i){e=S(i,"P",{class:!0});var c=C(e);t.l(c),c.forEach(u),this.h()},h(){T(e,"class",r="flex items-center gap-2 text-"+o[4]+" whitespace-nowrap pt-2 svelte-1wf2pbe")},m(i,c){w(i,e,c),a[l].m(e,null),n=!0},p(i,[c]){let m=l;l=f(i),l===m?a[l].p(i,c):(G(),_(a[m],1,1,()=>{a[m]=null}),J(),t=a[l],t?t.p(i,c):(t=a[l]=s[l](i),t.c()),$(t,1),t.m(e,null)),(!n||c&16&&r!==(r="flex items-center gap-2 text-"+i[4]+" whitespace-nowrap pt-2 svelte-1wf2pbe"))&&T(e,"class",r)},i(i){n||($(t),n=!0)},o(i){_(t),n=!1},d(i){i&&u(e),a[l].d()}}}function Oo(o,e,l){let{title:t=""}=e,{content:r}=e,{copyable:n=!1}=e,{href:s=null}=e,{textSize:a="md"}=e,{icon:f=void 0}=e;return o.$$set=i=>{"title"in i&&l(0,t=i.title),"content"in i&&l(1,r=i.content),"copyable"in i&&l(2,n=i.copyable),"href"in i&&l(3,s=i.href),"textSize"in i&&l(4,a=i.textSize),"icon"in i&&l(5,f=i.icon)},[t,r,n,s,a,f]}class Le extends $e{constructor(e){super(),pe(this,e,Oo,Fo,_e,{title:0,content:1,copyable:2,href:3,textSize:4,icon:5})}}function pl(o){let e,l;return e=new Le({props:{icon:"clock",content:o[1],textSize:"sm"}}),{c(){b(e.$$.fragment)},l(t){I(e.$$.fragment,t)},m(t,r){E(e,t,r),l=!0},p(t,r){const n={};r&2&&(n.content=t[1]),e.$set(n)},i(t){l||($(e.$$.fragment,t),l=!0)},o(t){_(e.$$.fragment,t),l=!1},d(t){y(e,t)}}}function _l(o){let e,l,t=v("common.search-attributes")+"",r,n,s,a,f,i;return f=new bt({props:{value:{searchAttributes:o[0].searchAttributes},key:"searchAttributes",$$slots:{default:[Bo,({decodedValue:c})=>({8:c}),({decodedValue:c})=>c?256:0]},$$scope:{ctx:o}}}),{c(){e=N("div"),l=N("h3"),r=F(t),n=H(),s=N("div"),a=H(),b(f.$$.fragment),this.h()},l(c){e=S(c,"DIV",{class:!0});var m=C(e);l=S(m,"H3",{class:!0});var p=C(l);r=O(p,t),p.forEach(u),n=W(m),s=S(m,"DIV",{class:!0}),C(s).forEach(u),a=W(m),I(f.$$.fragment,m),m.forEach(u),this.h()},h(){T(l,"class","font-medium"),T(s,"class","h-0.5 rounded-full bg-gray-900"),T(e,"class","mt-4 flex flex-col gap-2")},m(c,m){w(c,e,m),d(e,l),d(l,r),d(e,n),d(e,s),d(e,a),E(f,e,null),i=!0},p(c,m){const p={};m&1&&(p.value={searchAttributes:c[0].searchAttributes}),m&768&&(p.$$scope={dirty:m,ctx:c}),f.$set(p)},i(c){i||($(f.$$.fragment,c),i=!0)},o(c){_(f.$$.fragment,c),i=!1},d(c){c&&u(e),y(f)}}}function Bo(o){let e,l;return e=new Ze({props:{content:o[8],copyIconTitle:v("common.copy-icon-title"),copySuccessIconTitle:v("common.copy-success-icon-title")}}),{c(){b(e.$$.fragment)},l(t){I(e.$$.fragment,t)},m(t,r){E(e,t,r),l=!0},p(t,r){const n={};r&256&&(n.content=t[8]),e.$set(n)},i(t){l||($(e.$$.fragment,t),l=!0)},o(t){_(e.$$.fragment,t),l=!1},d(t){y(e,t)}}}function Ro(o){var ie,he,be,ye,Ae,We,De,Me,Xe,Fe;let e,l,t,r=v("common.execution-details")+"",n,s,a,f,i,c,m,p,D,P,h,g,k=v("common.task-queue")+"",R,q,Y,ae,j,K,re,oe,Q,fe,ce=v("workflows.start-and-close-time")+"",de,ue,Z,ge,ne,ve,te,ke,me,V,A;i=new Le({props:{title:v("common.workflow-type"),content:(ie=o[0])==null?void 0:ie.name,copyable:!0,textSize:"sm"}}),m=new Le({props:{title:v("common.run-id"),content:(he=o[0])==null?void 0:he.runId,copyable:!0,textSize:"sm"}}),D=new Le({props:{title:v("common.history-size-bytes"),content:(be=o[0])==null?void 0:be.historySizeBytes,copyable:!0,textSize:"sm"}}),j=new Le({props:{content:(ye=o[0])==null?void 0:ye.taskQueue,href:Pt({namespace:o[3].params.namespace,workflow:(Ae=o[0])==null?void 0:Ae.id,run:(We=o[0])==null?void 0:We.runId}),copyable:!0,textSize:"sm"}}),re=new Le({props:{title:v("workflows.state-transitions"),content:(De=o[0])==null?void 0:De.stateTransitionCount,textSize:"sm"}}),ne=new Le({props:{title:v("common.start-time"),content:Ye((Me=o[0])==null?void 0:Me.startTime,o[4],{relative:o[5]}),textSize:"sm"}}),te=new Le({props:{title:v("common.close-time"),content:Ye((Xe=o[0])==null?void 0:Xe.endTime,o[4],{relative:o[5]}),textSize:"sm"}});let z=o[1]&&pl(o),L=((Fe=o[0])==null?void 0:Fe.searchAttributes)&&_l(o);return{c(){e=N("div"),l=N("div"),t=N("h3"),n=F(r),s=H(),a=N("div"),f=H(),b(i.$$.fragment),c=H(),b(m.$$.fragment),p=H(),b(D.$$.fragment),P=H(),h=N("div"),g=N("h3"),R=F(k),q=H(),Y=N("div"),ae=H(),b(j.$$.fragment),K=H(),b(re.$$.fragment),oe=H(),Q=N("div"),fe=N("h3"),de=F(ce),ue=H(),Z=N("div"),ge=H(),b(ne.$$.fragment),ve=H(),b(te.$$.fragment),ke=H(),z&&z.c(),me=H(),L&&L.c(),V=se(),this.h()},l(B){e=S(B,"DIV",{class:!0});var M=C(e);l=S(M,"DIV",{class:!0});var x=C(l);t=S(x,"H3",{class:!0});var je=C(t);n=O(je,r),je.forEach(u),s=W(x),a=S(x,"DIV",{class:!0}),C(a).forEach(u),f=W(x),I(i.$$.fragment,x),c=W(x),I(m.$$.fragment,x),p=W(x),I(D.$$.fragment,x),x.forEach(u),P=W(M),h=S(M,"DIV",{class:!0});var Ie=C(h);g=S(Ie,"H3",{class:!0});var we=C(g);R=O(we,k),we.forEach(u),q=W(Ie),Y=S(Ie,"DIV",{class:!0}),C(Y).forEach(u),ae=W(Ie),I(j.$$.fragment,Ie),K=W(Ie),I(re.$$.fragment,Ie),Ie.forEach(u),oe=W(M),Q=S(M,"DIV",{class:!0});var U=C(Q);fe=S(U,"H3",{class:!0});var Ne=C(fe);de=O(Ne,ce),Ne.forEach(u),ue=W(U),Z=S(U,"DIV",{class:!0}),C(Z).forEach(u),ge=W(U),I(ne.$$.fragment,U),ve=W(U),I(te.$$.fragment,U),ke=W(U),z&&z.l(U),U.forEach(u),M.forEach(u),me=W(B),L&&L.l(B),V=se(),this.h()},h(){T(t,"class","font-medium"),T(a,"class","h-0.5 rounded-full bg-gray-900"),T(l,"class","grow overflow-hidden"),T(g,"class","font-medium"),T(Y,"class","h-0.5 rounded-full bg-gray-900"),T(h,"class","grow overflow-hidden"),T(fe,"class","font-medium"),T(Z,"class","h-0.5 rounded-full bg-gray-900"),T(Q,"class","grow-0"),T(e,"class","flex flex-col gap-2 xl:flex-row")},m(B,M){w(B,e,M),d(e,l),d(l,t),d(t,n),d(l,s),d(l,a),d(l,f),E(i,l,null),d(l,c),E(m,l,null),d(l,p),E(D,l,null),d(e,P),d(e,h),d(h,g),d(g,R),d(h,q),d(h,Y),d(h,ae),E(j,h,null),d(h,K),E(re,h,null),d(e,oe),d(e,Q),d(Q,fe),d(fe,de),d(Q,ue),d(Q,Z),d(Q,ge),E(ne,Q,null),d(Q,ve),E(te,Q,null),d(Q,ke),z&&z.m(Q,null),w(B,me,M),L&&L.m(B,M),w(B,V,M),A=!0},p(B,M){var Pe,Ee,Oe,xe,Qe,et,Ue,tt,qe,lt;const x={};M&1&&(x.content=(Pe=B[0])==null?void 0:Pe.name),i.$set(x);const je={};M&1&&(je.content=(Ee=B[0])==null?void 0:Ee.runId),m.$set(je);const Ie={};M&1&&(Ie.content=(Oe=B[0])==null?void 0:Oe.historySizeBytes),D.$set(Ie);const we={};M&1&&(we.content=(xe=B[0])==null?void 0:xe.taskQueue),M&9&&(we.href=Pt({namespace:B[3].params.namespace,workflow:(Qe=B[0])==null?void 0:Qe.id,run:(et=B[0])==null?void 0:et.runId})),j.$set(we);const U={};M&1&&(U.content=(Ue=B[0])==null?void 0:Ue.stateTransitionCount),re.$set(U);const Ne={};M&49&&(Ne.content=Ye((tt=B[0])==null?void 0:tt.startTime,B[4],{relative:B[5]})),ne.$set(Ne);const Be={};M&49&&(Be.content=Ye((qe=B[0])==null?void 0:qe.endTime,B[4],{relative:B[5]})),te.$set(Be),B[1]?z?(z.p(B,M),M&2&&$(z,1)):(z=pl(B),z.c(),$(z,1),z.m(Q,null)):z&&(G(),_(z,1,1,()=>{z=null}),J()),(lt=B[0])!=null&<.searchAttributes?L?(L.p(B,M),M&1&&$(L,1)):(L=_l(B),L.c(),$(L,1),L.m(V.parentNode,V)):L&&(G(),_(L,1,1,()=>{L=null}),J())},i(B){A||($(i.$$.fragment,B),$(m.$$.fragment,B),$(D.$$.fragment,B),$(j.$$.fragment,B),$(re.$$.fragment,B),$(ne.$$.fragment,B),$(te.$$.fragment,B),$(z),$(L),A=!0)},o(B){_(i.$$.fragment,B),_(m.$$.fragment,B),_(D.$$.fragment,B),_(j.$$.fragment,B),_(re.$$.fragment,B),_(ne.$$.fragment,B),_(te.$$.fragment,B),_(z),_(L),A=!1},d(B){B&&u(e),y(i),y(m),y(D),y(j),y(re),y(ne),y(te),z&&z.d(),B&&u(me),L&&L.d(B),B&&u(V)}}}function jo(o){let e,l,t;return l=new ot({props:{title:v("common.summary"),icon:"summary","data-testid":"summary-accordion",open:o[2],onToggle:o[7],$$slots:{default:[Ro]},$$scope:{ctx:o}}}),{c(){e=N("section"),b(l.$$.fragment)},l(r){e=S(r,"SECTION",{});var n=C(e);I(l.$$.fragment,n),n.forEach(u)},m(r,n){w(r,e,n),E(l,e,null),t=!0},p(r,[n]){const s={};n&4&&(s.open=r[2]),n&4&&(s.onToggle=r[7]),n&571&&(s.$$scope={dirty:n,ctx:r}),l.$set(s)},i(r){t||($(l.$$.fragment,r),t=!0)},o(r){_(l.$$.fragment,r),t=!1},d(r){r&&u(e),y(l)}}}function zo(o,e,l){let t,r,n,s,a,f,i;le(o,at,m=>l(6,n=m)),le(o,Dt,m=>l(2,s=m)),le(o,Ge,m=>l(3,a=m)),le(o,Bl,m=>l(4,f=m)),le(o,Rl,m=>l(5,i=m));const c=()=>{Ke(Dt,s=!s,s)};return o.$$.update=()=>{o.$$.dirty&64&&l(0,{workflow:t}=n,t),o.$$.dirty&1&&l(1,r=nr({start:t==null?void 0:t.startTime,end:t==null?void 0:t.endTime,includeMilliseconds:!0}))},[t,r,s,a,f,i,n,c]}class Lo extends $e{constructor(e){super(),pe(this,e,zo,jo,_e,{})}}function dl(o){let e,l;return e=new Et({props:{bold:!0,icon:"warning",intent:"warning",title:v(`typed-errors.${o[1]}.title`),$$slots:{default:[Go]},$$scope:{ctx:o}}}),{c(){b(e.$$.fragment)},l(t){I(e.$$.fragment,t)},m(t,r){E(e,t,r),l=!0},p(t,r){const n={};r&2&&(n.title=v(`typed-errors.${t[1]}.title`)),r&7&&(n.$$scope={dirty:r,ctx:t}),e.$set(n)},i(t){l||($(e.$$.fragment,t),l=!0)},o(t){_(e.$$.fragment,t),l=!1},d(t){y(e,t)}}}function gl(o){let e,l=v("typed-errors.link-preface")+"",t,r,n,s;return r=new He({props:{newTab:!0,href:v(`typed-errors.${o[1]}.link`),$$slots:{default:[Mo]},$$scope:{ctx:o}}}),{c(){e=N("p"),t=F(l),b(r.$$.fragment),n=F(".")},l(a){e=S(a,"P",{});var f=C(e);t=O(f,l),I(r.$$.fragment,f),n=O(f,"."),f.forEach(u)},m(a,f){w(a,e,f),d(e,t),E(r,e,null),d(e,n),s=!0},p(a,f){const i={};f&2&&(i.href=v(`typed-errors.${a[1]}.link`)),f&6&&(i.$$scope={dirty:f,ctx:a}),r.$set(i)},i(a){s||($(r.$$.fragment,a),s=!0)},o(a){_(r.$$.fragment,a),s=!1},d(a){a&&u(e),y(r)}}}function Mo(o){let e=v(`typed-errors.${o[1]}.action`)+"",l;return{c(){l=F(e)},l(t){l=O(t,e)},m(t,r){w(t,l,r)},p(t,r){r&2&&e!==(e=v(`typed-errors.${t[1]}.action`)+"")&&ee(l,e)},d(t){t&&u(l)}}}function Qo(o){let e,l;return e=new Ll({props:{event:o[0],initialItem:o[0],typedError:!0}}),{c(){b(e.$$.fragment)},l(t){I(e.$$.fragment,t)},m(t,r){E(e,t,r),l=!0},p(t,r){const n={};r&1&&(n.event=t[0]),r&1&&(n.initialItem=t[0]),e.$set(n)},i(t){l||($(e.$$.fragment,t),l=!0)},o(t){_(e.$$.fragment,t),l=!1},d(t){y(e,t)}}}function Uo(o){let e,l=v("events.error-event")+"",t;return{c(){e=N("caption"),t=F(l),this.h()},l(r){e=S(r,"CAPTION",{class:!0,slot:!0});var n=C(e);t=O(n,l),n.forEach(u),this.h()},h(){T(e,"class","sr-only"),T(e,"slot","caption")},m(r,n){w(r,e,n),d(e,t)},p:X,d(r){r&&u(e)}}}function qo(o){let e,l,t,r,n=v("common.date-and-time")+"",s,a,f,i,c,m,p=v("common.event")+"",D,P,h,g;return i=new st({props:{name:"clock"}}),{c(){e=N("td"),l=H(),t=N("th"),r=N("span"),s=F(n),a=H(),f=N("span"),b(i.$$.fragment),c=H(),m=N("th"),D=F(p),P=H(),h=N("th"),this.h()},l(k){e=S(k,"TD",{class:!0}),C(e).forEach(u),l=W(k),t=S(k,"TH",{class:!0});var R=C(t);r=S(R,"SPAN",{class:!0});var q=C(r);s=O(q,n),q.forEach(u),a=W(R),f=S(R,"SPAN",{class:!0});var Y=C(f);I(i.$$.fragment,Y),Y.forEach(u),R.forEach(u),c=W(k),m=S(k,"TH",{class:!0});var ae=C(m);D=O(ae,p),ae.forEach(u),P=W(k),h=S(k,"TH",{class:!0}),C(h).forEach(u),this.h()},h(){T(e,"class","w-14 xl:w-10"),T(r,"class","max-md:hidden"),T(f,"class","md:hidden"),T(t,"class","w-16 md:w-32"),T(m,"class","w-44"),T(h,"class","w-auto xl:w-80")},m(k,R){w(k,e,R),w(k,l,R),w(k,t,R),d(t,r),d(r,s),d(t,a),d(t,f),E(i,f,null),w(k,c,R),w(k,m,R),d(m,D),w(k,P,R),w(k,h,R),g=!0},p:X,i(k){g||($(i.$$.fragment,k),g=!0)},o(k){_(i.$$.fragment,k),g=!1},d(k){k&&u(e),k&&u(l),k&&u(t),y(i),k&&u(c),k&&u(m),k&&u(P),k&&u(h)}}}function Ko(o){let e,l;return e=new it({props:{slot:"headers",$$slots:{default:[qo]},$$scope:{ctx:o}}}),{c(){b(e.$$.fragment)},l(t){I(e.$$.fragment,t)},m(t,r){E(e,t,r),l=!0},p(t,r){const n={};r&4&&(n.$$scope={dirty:r,ctx:t}),e.$set(n)},i(t){l||($(e.$$.fragment,t),l=!0)},o(t){_(e.$$.fragment,t),l=!1},d(t){y(e,t)}}}function Go(o){let e,l=v(`typed-errors.${o[1]}.description`)+"",t,r,n,s,a,f,i=(o[1]==="WorkflowWorkerUnhandledFailure"||o[1]==="BadSearchAttributes")&&gl(o);return a=new ft({props:{class:"dark w-full table-fixed",$$slots:{headers:[Ko],caption:[Uo],default:[Qo]},$$scope:{ctx:o}}}),{c(){e=N("p"),t=F(l),r=H(),i&&i.c(),n=H(),s=N("div"),b(a.$$.fragment),this.h()},l(c){e=S(c,"P",{});var m=C(e);t=O(m,l),m.forEach(u),r=W(c),i&&i.l(c),n=W(c),s=S(c,"DIV",{class:!0});var p=C(s);I(a.$$.fragment,p),p.forEach(u),this.h()},h(){T(s,"class","mt-2 bg-white")},m(c,m){w(c,e,m),d(e,t),w(c,r,m),i&&i.m(c,m),w(c,n,m),w(c,s,m),E(a,s,null),f=!0},p(c,m){(!f||m&2)&&l!==(l=v(`typed-errors.${c[1]}.description`)+"")&&ee(t,l),c[1]==="WorkflowWorkerUnhandledFailure"||c[1]==="BadSearchAttributes"?i?(i.p(c,m),m&2&&$(i,1)):(i=gl(c),i.c(),$(i,1),i.m(n.parentNode,n)):i&&(G(),_(i,1,1,()=>{i=null}),J());const p={};m&5&&(p.$$scope={dirty:m,ctx:c}),a.$set(p)},i(c){f||($(i),$(a.$$.fragment,c),f=!0)},o(c){_(i),_(a.$$.fragment,c),f=!1},d(c){c&&u(e),c&&u(r),i&&i.d(c),c&&u(n),c&&u(s),y(a)}}}function Jo(o){let e,l,t=o[1]&&dl(o);return{c(){t&&t.c(),e=se()},l(r){t&&t.l(r),e=se()},m(r,n){t&&t.m(r,n),w(r,e,n),l=!0},p(r,[n]){r[1]?t?(t.p(r,n),n&2&&$(t,1)):(t=dl(r),t.c(),$(t,1),t.m(e.parentNode,e)):t&&(G(),_(t,1,1,()=>{t=null}),J())},i(r){l||($(t),l=!0)},o(r){_(t),l=!1},d(r){t&&t.d(r),r&&u(e)}}}function Xo(o){var e;const{workflowTaskFailedEventAttributes:{failure:l,cause:t}}=o;return((e=l==null?void 0:l.applicationFailureInfo)===null||e===void 0?void 0:e.type)==="workflowTaskHeartbeatError"?"WorkflowTaskHeartbeatError":t}function Yo(o,e,l){let{error:t}=e,r;return o.$$set=n=>{"error"in n&&l(0,t=n.error)},o.$$.update=()=>{o.$$.dirty&1&&l(1,r=Xo(t))},[t,r]}class Zo extends $e{constructor(e){super(),pe(this,e,Yo,Jo,_e,{error:0})}}const xo=async(o,e)=>{const l=dr(e),t=gr(e),r=hr(e),n={...e,codec:{...e==null?void 0:e.codec,endpoint:l,passAccessToken:t,includeCredentials:r}},s=!1;try{const a=await wr(o,Ct(Ge).params.namespace,n,Ct(_r).accessToken,s);return vr(a,s)}catch{return o}};function hl(o,e,l){const t=Re({events:o},null,2),r=document.createElement("a"),n=new Blob([t],{type:l});r.href=URL.createObjectURL(n),r.download=e,r.click()}const es=async({namespace:o,workflowId:e,runId:l,settings:t,decodeEventHistory:r})=>{try{const n=await mr({namespace:o,workflowId:e,runId:l,sort:"ascending"});if(r){const s=[];for(const a of n){const f=await xo(a,t);s.push(f)}hl(s,`${l}/events.json`,"text/plain")}else hl(n,`${l}/events.json`,"text/plain")}catch{console.error("Could not download event history")}},ts=["WorkflowExecutionFailed","WorkflowExecutionCompleted","WorkflowExecutionContinuedAsNew","WorkflowExecutionTimedOut","WorkflowExecutionCanceled","WorkflowExecutionTerminated"],wl=o=>!!o.workflowExecutionStartedEventAttributes,vl=o=>{for(const e of ts)if(o.eventType===e)return!0;return!1},ls=o=>ql(o)?o.attributes.input:kr(o)?o.attributes.result===null?null:o.attributes.result:o.attributes,rs=o=>{var s;let e,l,t=!1,r,n;for(const a of o.start)if(wl(a)){r=a;continue}else if(vl(a)){n=a;continue}for(const a of o.end)if(wl(a)){r=a;continue}else if(vl(a)){n=a;continue}return r&&(e=Re(((s=r==null?void 0:r.workflowExecutionStartedEventAttributes)==null?void 0:s.input)??null)),n&&(t=ql(n),l=Re(ls(n))),{input:e,results:l,contAsNew:t}},kl=o=>o.eventType==="WorkflowTaskFailed",ns=(o,e)=>{if(e==="descending")return o.find(l=>kl(l));for(let l=o.length-1;l>=0;l--){const t=o[l];if(kl(t))return t}};function bl(o){let e,l;return e=new Zo({props:{error:o[4]}}),{c(){b(e.$$.fragment)},l(t){I(e.$$.fragment,t)},m(t,r){E(e,t,r),l=!0},p(t,r){const n={};r[0]&16&&(n.error=t[4]),e.$set(n)},i(t){l||($(e.$$.fragment,t),l=!0)},o(t){_(e.$$.fragment,t),l=!1},d(t){y(e,t)}}}function os(o){let e,l,t,r,n;return l=new Mt({props:{title:"Input",content:o[6].input,"data-testid":"workflow-input"}}),r=new Mt({props:{content:o[6].results,title:o[6].contAsNew?v("workflows.continued-as-new-with-input"):v("workflows.results"),"data-testid":"workflow-results"}}),{c(){e=N("div"),b(l.$$.fragment),t=H(),b(r.$$.fragment),this.h()},l(s){e=S(s,"DIV",{class:!0});var a=C(e);I(l.$$.fragment,a),t=W(a),I(r.$$.fragment,a),a.forEach(u),this.h()},h(){T(e,"class","flex w-full flex-col gap-2 lg:flex-row")},m(s,a){w(s,e,a),E(l,e,null),d(e,t),E(r,e,null),n=!0},p(s,a){const f={};a[0]&64&&(f.content=s[6].input),l.$set(f);const i={};a[0]&64&&(i.content=s[6].results),a[0]&64&&(i.title=s[6].contAsNew?v("workflows.continued-as-new-with-input"):v("workflows.results")),r.$set(i)},i(s){n||($(l.$$.fragment,s),$(r.$$.fragment,s),n=!0)},o(s){_(l.$$.fragment,s),_(r.$$.fragment,s),n=!1},d(s){s&&u(e),y(l),y(r)}}}function ss(o){let e,l;return e=new er({props:{history:o[1]}}),{c(){b(e.$$.fragment)},l(t){I(e.$$.fragment,t)},m(t,r){E(e,t,r),l=!0},p(t,r){const n={};r[0]&2&&(n.history=t[1]),e.$set(n)},i(t){l||($(e.$$.fragment,t),l=!0)},o(t){_(e.$$.fragment,t),l=!1},d(t){y(e,t)}}}function as(o){let e=v("workflows.history")+"",l;return{c(){l=F(e)},l(t){l=O(t,e)},m(t,r){w(t,l,r)},p:X,d(t){t&&u(l)}}}function fs(o){let e=v("workflows.compact")+"",l;return{c(){l=F(e)},l(t){l=O(t,e)},m(t,r){w(t,l,r)},p:X,d(t){t&&u(l)}}}function is(o){let e=v("workflows.json")+"",l;return{c(){l=F(e)},l(t){l=O(t,e)},m(t,r){w(t,l,r)},p:X,d(t){t&&u(l)}}}function cs(o){let e=v("workflows.download")+"",l;return{c(){l=F(e)},l(t){l=O(t,e)},m(t,r){w(t,l,r)},p:X,d(t){t&&u(l)}}}function us(o){let e,l,t,r,n,s,a,f;return e=new mt({props:{icon:"feed",active:o[0]==="feed","data-testid":"feed",$$slots:{default:[as]},$$scope:{ctx:o}}}),e.$on("click",o[23]),t=new mt({props:{icon:"compact",active:o[0]==="compact","data-testid":"compact",$$slots:{default:[fs]},$$scope:{ctx:o}}}),t.$on("click",o[24]),n=new mt({props:{icon:"json",active:o[0]==="json","data-testid":"json",$$slots:{default:[is]},$$scope:{ctx:o}}}),n.$on("click",o[25]),a=new mt({props:{icon:"download","data-testid":"download",$$slots:{default:[cs]},$$scope:{ctx:o}}}),a.$on("click",o[26]),{c(){b(e.$$.fragment),l=H(),b(t.$$.fragment),r=H(),b(n.$$.fragment),s=H(),b(a.$$.fragment)},l(i){I(e.$$.fragment,i),l=W(i),I(t.$$.fragment,i),r=W(i),I(n.$$.fragment,i),s=W(i),I(a.$$.fragment,i)},m(i,c){E(e,i,c),w(i,l,c),E(t,i,c),w(i,r,c),E(n,i,c),w(i,s,c),E(a,i,c),f=!0},p(i,c){const m={};c[0]&1&&(m.active=i[0]==="feed"),c[1]&4&&(m.$$scope={dirty:c,ctx:i}),e.$set(m);const p={};c[0]&1&&(p.active=i[0]==="compact"),c[1]&4&&(p.$$scope={dirty:c,ctx:i}),t.$set(p);const D={};c[0]&1&&(D.active=i[0]==="json"),c[1]&4&&(D.$$scope={dirty:c,ctx:i}),n.$set(D);const P={};c[1]&4&&(P.$$scope={dirty:c,ctx:i}),a.$set(P)},i(i){f||($(e.$$.fragment,i),$(t.$$.fragment,i),$(n.$$.fragment,i),$(a.$$.fragment,i),f=!0)},o(i){_(e.$$.fragment,i),_(t.$$.fragment,i),_(n.$$.fragment,i),_(a.$$.fragment,i),f=!1},d(i){y(e,i),i&&u(l),y(t,i),i&&u(r),y(n,i),i&&u(s),y(a,i)}}}function ms(o){let e,l=v("common.download-json")+"",t;return{c(){e=N("h3"),t=F(l),this.h()},l(r){e=S(r,"H3",{slot:!0});var n=C(e);t=O(n,l),n.forEach(u),this.h()},h(){T(e,"slot","title")},m(r,n){w(r,e,n),d(e,t)},p:X,d(r){r&&u(e)}}}function $s(o){let e,l,t,r;function n(a){o[29](a)}let s={label:v("events.decode-event-history"),id:"decode-event-history","data-testid":"decode-event-history-toggle"};return o[7]!==void 0&&(s.checked=o[7]),l=new Ml({props:s}),wt.push(()=>vt(l,"checked",n)),{c(){e=N("div"),b(l.$$.fragment),this.h()},l(a){e=S(a,"DIV",{slot:!0,class:!0});var f=C(e);I(l.$$.fragment,f),f.forEach(u),this.h()},h(){T(e,"slot","content"),T(e,"class","flex flex-col gap-4")},m(a,f){w(a,e,f),E(l,e,null),r=!0},p(a,f){const i={};!t&&f[0]&128&&(t=!0,i.checked=a[7],kt(()=>t=!1)),l.$set(i)},i(a){r||($(l.$$.fragment,a),r=!0)},o(a){_(l.$$.fragment,a),r=!1},d(a){a&&u(e),y(l)}}}function ps(o){let e,l,t,r,n,s,a,f,i,c,m,p,D,P,h,g,k,R,q=v("workflows.event-history")+"",Y,ae,j,K,re,oe,Q,fe,ce,de,ue;l=new En({});let Z=o[4]&&bl(o);n=new Lo({});const ge=[o[5]];let ne={};for(let V=0;Vvt(ce,"open",ke)),ce.$on("confirmModal",o[31]),ce.$on("cancelModal",o[32]),{c(){e=N("div"),b(l.$$.fragment),t=H(),Z&&Z.c(),r=H(),b(n.$$.fragment),s=H(),b(a.$$.fragment),f=H(),b(i.$$.fragment),c=H(),m=N("section"),b(p.$$.fragment),D=H(),b(P.$$.fragment),h=H(),g=N("section"),k=N("nav"),R=N("h2"),Y=F(q),ae=H(),j=N("div"),b(K.$$.fragment),re=H(),te&&te.c(),oe=H(),b(Q.$$.fragment),fe=H(),b(ce.$$.fragment),this.h()},l(V){e=S(V,"DIV",{class:!0});var A=C(e);I(l.$$.fragment,A),t=W(A),Z&&Z.l(A),r=W(A),I(n.$$.fragment,A),s=W(A),I(a.$$.fragment,A),f=W(A),I(i.$$.fragment,A),c=W(A),m=S(A,"SECTION",{});var z=C(m);I(p.$$.fragment,z),z.forEach(u),D=W(A),I(P.$$.fragment,A),h=W(A),g=S(A,"SECTION",{id:!0});var L=C(g);k=S(L,"NAV",{class:!0,"aria-label":!0});var ie=C(k);R=S(ie,"H2",{class:!0});var he=C(R);Y=O(he,q),he.forEach(u),ae=W(ie),j=S(ie,"DIV",{id:!0,class:!0});var be=C(j);I(K.$$.fragment,be),be.forEach(u),ie.forEach(u),re=W(L),te&&te.l(L),L.forEach(u),oe=W(A),I(Q.$$.fragment,A),A.forEach(u),fe=W(V),I(ce.$$.fragment,V),this.h()},h(){T(R,"class","text-2xl font-medium"),T(j,"id","event-view-toggle"),T(j,"class","mt-4 flex gap-4 bg-white"),T(k,"class","flex flex-col items-center justify-between gap-4 lg:flex-row lg:items-end"),T(k,"aria-label",v("workflows.event-history-view")),T(g,"id","event-history"),T(e,"class","flex flex-col gap-2")},m(V,A){w(V,e,A),E(l,e,null),d(e,t),Z&&Z.m(e,null),d(e,r),E(n,e,null),d(e,s),E(a,e,null),d(e,f),E(i,e,null),d(e,c),d(e,m),E(p,m,null),d(e,D),E(P,e,null),d(e,h),d(e,g),d(g,k),d(k,R),d(R,Y),d(k,ae),d(k,j),E(K,j,null),d(g,re),te&&te.m(g,null),d(e,oe),E(Q,e,null),w(V,fe,A),E(ce,V,A),ue=!0},p(V,A){V[4]?Z?(Z.p(V,A),A[0]&16&&$(Z,1)):(Z=bl(V),Z.c(),$(Z,1),Z.m(e,r)):Z&&(G(),_(Z,1,1,()=>{Z=null}),J());const z=A[0]&32?Sl(ge,[Yl(V[5])]):{};a.$set(z);const L={};A[0]&64&&(L.title=V[6].contAsNew?v("workflows.input"):v("workflows.input-and-results")),A[0]&64|A[1]&4&&(L.$$scope={dirty:A,ctx:V}),p.$set(L);const ie={};A[0]&256&&(ie.open=V[8]),A[0]&256&&(ie.onToggle=V[22]),A[0]&2|A[1]&4&&(ie.$$scope={dirty:A,ctx:V}),P.$set(ie);const he={};A[0]&9|A[1]&4&&(he.$$scope={dirty:A,ctx:V}),K.$set(he),te&&te.p&&(!ue||A[1]&4)&&Dl(te,ve,V,V[33],ue?Nl(ve,V[33],A,null):Al(V[33]),null);const be={};A[0]&4&&(be.open=V[2]),A[0]&4&&(be.onOpen=V[27]),A[0]&4&&(be.onClose=V[28]),Q.$set(be);const ye={};A[0]&128|A[1]&4&&(ye.$$scope={dirty:A,ctx:V}),!de&&A[0]&8&&(de=!0,ye.open=V[3],kt(()=>de=!1)),ce.$set(ye)},i(V){ue||($(l.$$.fragment,V),$(Z),$(n.$$.fragment,V),$(a.$$.fragment,V),$(i.$$.fragment,V),$(p.$$.fragment,V),$(P.$$.fragment,V),$(K.$$.fragment,V),$(te,V),$(Q.$$.fragment,V),$(ce.$$.fragment,V),ue=!0)},o(V){_(l.$$.fragment,V),_(Z),_(n.$$.fragment,V),_(a.$$.fragment,V),_(i.$$.fragment,V),_(p.$$.fragment,V),_(P.$$.fragment,V),_(K.$$.fragment,V),_(te,V),_(Q.$$.fragment,V),_(ce.$$.fragment,V),ue=!1},d(V){V&&u(e),y(l),Z&&Z.d(),y(n),y(a),y(i),y(p),y(P),y(K),te&&te.d(V),y(Q),V&&u(fe),y(ce,V)}}}function _s(o,e,l){let t,r,n,s,a,f,i,c,m,p,D,P,h,g,k,R,q;le(o,_t,A=>l(7,c=A)),le(o,Ge,A=>l(15,m=A)),le(o,at,A=>l(16,p=A)),le(o,ht,A=>l(0,D=A)),le(o,Ql,A=>l(17,P=A)),le(o,rr,A=>l(18,h=A)),le(o,nt,A=>l(1,g=A)),le(o,pr,A=>l(19,k=A)),le(o,Ul,A=>l(20,R=A)),le(o,At,A=>l(8,q=A));let{$$slots:Y={},$$scope:ae}=e,j=!1,K=!1;const re=()=>{Ke(nt,g=[],g)},oe=async(A,z,L,ie,he)=>{re(),Ke(nt,g=await $r({namespace:A,workflowId:z,runId:L,sort:ie==="feed"?he:"ascending"}),g)},Q=A=>{m.url.searchParams.get("page")&&m.url.searchParams.delete("page"),Ke(ht,D=A,D)},fe=()=>{var A,z;l(3,K=!1),es({namespace:gt(m.params.namespace),workflowId:gt((A=p.workflow)===null||A===void 0?void 0:A.id),runId:gt((z=p.workflow)===null||z===void 0?void 0:z.runId),settings:m.data.settings,decodeEventHistory:c})},ce=()=>{Ke(At,q=!q,q)},de=()=>Q("feed"),ue=()=>Q("compact"),Z=()=>Q("json"),ge=()=>l(3,K=!0),ne=()=>l(2,j=!0),ve=()=>l(2,j=!1);function te(A){c=A,_t.set(c)}function ke(A){K=A,l(3,K)}const me=()=>fe(),V=()=>l(3,K=!1);return o.$$set=A=>{"$$scope"in A&&l(33,ae=A.$$scope)},o.$$.update=()=>{o.$$.dirty[0]&32768&&l(13,{namespace:t,workflow:r,run:n}=m.params,t,(l(12,r),l(15,m)),(l(11,n),l(15,m))),o.$$.dirty[0]&1048576&&l(6,s=rs(R)),o.$$.dirty[0]&65536&&l(14,{workflow:a}=p,a),o.$$.dirty[0]&1589250&&l(5,f=xl(a,R,g,k)),o.$$.dirty[0]&131074&&l(4,i=ns(g,P)),o.$$.dirty[0]&407553&&oe(t,r,n,D,P)},[D,g,j,K,i,f,s,c,q,Q,fe,n,r,t,a,m,p,P,h,k,R,Y,ce,de,ue,Z,ge,ne,ve,te,ke,me,V,ae]}class ds extends $e{constructor(e){super(),pe(this,e,_s,ps,_e,{},null,[-1,-1])}}function El(o,e,l){const t=o.slice();return t[22]=e[l],t[24]=l,t}function yl(o){let e,l;return e=new ir({props:{loading:!o[1].length}}),{c(){b(e.$$.fragment)},l(t){I(e.$$.fragment,t)},m(t,r){E(e,t,r),l=!0},p(t,r){const n={};r&2&&(n.loading=!t[1].length),e.$set(n)},i(t){l||($(e.$$.fragment,t),l=!0)},o(t){_(e.$$.fragment,t),l=!1},d(t){y(e,t)}}}function Il(o,e){let l,t,r;function n(){return e[17](e[21],e[24])}return t=new Ll({props:{event:e[22],compact:e[0],expandAll:e[5]==="true",initialItem:e[4],active:e[20]===e[24],onRowClick:n}}),{key:o,first:null,c(){l=se(),b(t.$$.fragment),this.h()},l(s){l=se(),I(t.$$.fragment,s),this.h()},h(){this.first=l},m(s,a){w(s,l,a),E(t,s,a),r=!0},p(s,a){e=s;const f={};a&524288&&(f.event=e[22]),a&1&&(f.compact=e[0]),a&32&&(f.expandAll=e[5]==="true"),a&16&&(f.initialItem=e[4]),a&1572864&&(f.active=e[20]===e[24]),a&2621440&&(f.onRowClick=n),t.$set(f)},i(s){r||($(t.$$.fragment,s),r=!0)},o(s){_(t.$$.fragment,s),r=!1},d(s){s&&u(l),y(t,s)}}}function gs(o){let e=[],l=new Map,t,r,n=o[19];const s=f=>`${f[22].id}-${f[22].timestamp}`;for(let f=0;f{a=null}),J()):(a=yl(f),a.c(),$(a,1),a.m(t.parentNode,t)))},i(f){if(!r){for(let i=0;i({19:t,20:r,21:n}),({visibleItems:t,activeRowIndex:r,setActiveRowIndex:n})=>(t?524288:0)|(r?1048576:0)|(n?2097152:0)]},$$scope:{ctx:o}}}),{c(){b(e.$$.fragment)},l(t){I(e.$$.fragment,t)},m(t,r){E(e,t,r),l=!0},p(t,[r]){const n={};r&8&&(n.items=t[3]),r&4&&(n.updating=t[2]),r&37224503&&(n.$$scope={dirty:r,ctx:t}),e.$set(n)},i(t){l||($(e.$$.fragment,t),l=!0)},o(t){_(e.$$.fragment,t),l=!1},d(t){y(e,t)}}}function vs(o,e,l){let t,r,n,s,a,f,i,c,m,p,D;le(o,nt,j=>l(12,f=j)),le(o,Rt,j=>l(13,i=j)),le(o,Ul,j=>l(14,c=j)),le(o,Ql,j=>l(15,m=j)),le(o,Ge,j=>l(16,p=j)),le(o,Ot,j=>l(5,D=j));var P,h,g,k;let{compact:R=!1}=e;function q(j){Ke(Ot,D=j.detail.expanded,D)}const Y=(j,K)=>{if(K){const re=j.filter(oe=>br(oe)?K.includes(Er.LOCAL_ACTIVITY):K.includes(oe.category));return R?Bt(re,m):re}return R?Bt(j,m):j},ae=(j,K)=>j(K);return o.$$set=j=>{"compact"in j&&l(0,R=j.compact)},o.$$.update=()=>{o.$$.dirty&67456&&Ke(Rt,i=!(l(8,h=l(7,P=p.url)===null||P===void 0?void 0:P.searchParams)===null||h===void 0)&&h.get("category")?l(10,k=l(9,g=p.url)===null||g===void 0?void 0:g.searchParams)===null||k===void 0?void 0:k.get("category").split(","):void 0,i),o.$$.dirty&49153&&l(1,t=m==="descending"&&!R?c==null?void 0:c.end:c==null?void 0:c.start),o.$$.dirty&4098&&l(11,r=f.length?f:t),o.$$.dirty&2048&&l(4,n=r==null?void 0:r[0]),o.$$.dirty&10240&&l(3,s=Y(r,i)),o.$$.dirty&6144&&l(2,a=r.length&&!f.length)},[R,t,a,s,n,D,q,P,h,g,k,r,f,i,c,m,p,ae]}class Kl extends $e{constructor(e){super(),pe(this,e,vs,ws,_e,{compact:0})}}function ks(o){let e,l;return e=new Kl({props:{compact:!0}}),{c(){b(e.$$.fragment)},l(t){I(e.$$.fragment,t)},m(t,r){E(e,t,r),l=!0},p:X,i(t){l||($(e.$$.fragment,t),l=!0)},o(t){_(e.$$.fragment,t),l=!1},d(t){y(e,t)}}}class bs extends $e{constructor(e){super(),pe(this,e,null,ks,_e,{})}}function Es(o){let e,l;return e=new Kl({}),{c(){b(e.$$.fragment)},l(t){I(e.$$.fragment,t)},m(t,r){E(e,t,r),l=!0},p:X,i(t){l||($(e.$$.fragment,t),l=!0)},o(t){_(e.$$.fragment,t),l=!1},d(t){y(e,t)}}}class Tl extends $e{constructor(e){super(),pe(this,e,null,Es,_e,{})}}function ys(o){let e,l,t;function r(s){o[2](s)}let n={slot:"decode",label:v("events.decode-event-history"),id:"decode-event-history","data-testid":"decode-event-history-toggle"};return o[1]!==void 0&&(n.checked=o[1]),e=new Ml({props:n}),wt.push(()=>vt(e,"checked",r)),{c(){b(e.$$.fragment)},l(s){I(e.$$.fragment,s)},m(s,a){E(e,s,a),t=!0},p(s,a){const f={};!l&&a&2&&(l=!0,f.checked=s[1],kt(()=>l=!1)),e.$set(f)},i(s){t||($(e.$$.fragment,s),t=!0)},o(s){_(e.$$.fragment,s),t=!1},d(s){y(e,s)}}}function Is(o){let e,l;return e=new yr({props:{events:o[0],$$slots:{decode:[ys]},$$scope:{ctx:o}}}),{c(){b(e.$$.fragment)},l(t){I(e.$$.fragment,t)},m(t,r){E(e,t,r),l=!0},p(t,[r]){const n={};r&1&&(n.events=t[0]),r&10&&(n.$$scope={dirty:r,ctx:t}),e.$set(n)},i(t){l||($(e.$$.fragment,t),l=!0)},o(t){_(e.$$.fragment,t),l=!1},d(t){y(e,t)}}}function Ts(o,e,l){let t,r;le(o,nt,s=>l(0,t=s)),le(o,_t,s=>l(1,r=s));function n(s){r=s,_t.set(r)}return[t,r,n]}class Cs extends $e{constructor(e){super(),pe(this,e,Ts,Is,_e,{})}}function Ds(o){let e,l,t;var r=o[0];function n(s){return{}}return r&&(e=$t(r,n())),{c(){e&&b(e.$$.fragment),l=se()},l(s){e&&I(e.$$.fragment,s),l=se()},m(s,a){e&&E(e,s,a),w(s,l,a),t=!0},p(s,a){if(r!==(r=s[0])){if(e){G();const f=e;_(f.$$.fragment,1,0,()=>{y(f,1)}),J()}r?(e=$t(r,n()),b(e.$$.fragment),$(e.$$.fragment,1),E(e,l.parentNode,l)):e=null}},i(s){t||(e&&$(e.$$.fragment,s),t=!0)},o(s){e&&_(e.$$.fragment,s),t=!1},d(s){s&&u(l),e&&y(e,s)}}}function As(o){let e,l,t,r;return e=new Zl({props:{title:`${v("workflows.workflow-history")} | ${o[2]}`,url:o[1].url.href}}),t=new ds({props:{$$slots:{default:[Ds]},$$scope:{ctx:o}}}),{c(){b(e.$$.fragment),l=H(),b(t.$$.fragment)},l(n){I(e.$$.fragment,n),l=W(n),I(t.$$.fragment,n)},m(n,s){E(e,n,s),w(n,l,s),E(t,n,s),r=!0},p(n,[s]){const a={};s&2&&(a.url=n[1].url.href),e.$set(a);const f={};s&65&&(f.$$scope={dirty:s,ctx:n}),t.$set(f)},i(n){r||($(e.$$.fragment,n),$(t.$$.fragment,n),r=!0)},o(n){_(e.$$.fragment,n),_(t.$$.fragment,n),r=!1},d(n){y(e,n),n&&u(l),y(t,n)}}}function Ns(o,e,l){let t,r,n;le(o,ht,i=>l(4,r=i)),le(o,Ge,i=>l(1,n=i));var s;const a=n.params.workflow,f={feed:Tl,compact:bs,json:Cs};return o.$$.update=()=>{o.$$.dirty&24&&l(0,t=l(3,s=f[r])!==null&&s!==void 0?s:Tl)},[t,n,a,s,r]}class Ea extends $e{constructor(e){super(),pe(this,e,Ns,As,_e,{})}}export{Ea as component,ba as universal}; diff --git a/ui/assets/local/_app/immutable/nodes/31.b559a3ca.js b/ui/assets/local/_app/immutable/nodes/31.b559a3ca.js new file mode 100644 index 0000000000..3fb2a76b97 --- /dev/null +++ b/ui/assets/local/_app/immutable/nodes/31.b559a3ca.js @@ -0,0 +1 @@ +import{S as $e,b as pe,a as _e,V as Se,w as F,W as Ve,q as C,x as O,k as u,u as T,f as w,L as d,y as ee,n as X,C as b,D as I,E,j as $,g as _,F as y,m as N,p as S,z as G,h as J,G as Cl,H as Dl,I as Al,J as Nl,B as $t,e as se,i as Gl,c as H,d as W,O as pt,P as It,R as Sl,T as Tt,U as Jl,a7 as Vl,K as le,aa as Hl,ab as Wl,av as Xl,a3 as Pl,a4 as Fl,a5 as Ke,ac as Ct,A as wt,a0 as vt,X as Yl,a1 as kt}from"../chunks/index.0942deb7.js";import{p as Ge}from"../chunks/stores.255470ec.js";import{P as Zl}from"../chunks/page-title.433b384d.js";import{t as v}from"../chunks/translate.135d909a.js";import{g as xl,E as er}from"../chunks/get-workflow-relationships.fae6d6c6.js";import{B as tr}from"../chunks/button.72eef818.js";import{D as lr}from"../chunks/drawer.56956d31.js";import{T as Ol}from"../chunks/tooltip.0f6d0305.js";import{B as Te}from"../chunks/badge.5c29cec8.js";import{C as Ze}from"../chunks/code-block.a5088abe.js";import{p as rt,s as Re}from"../chunks/parse-with-big-int.0036a80a.js";import{P as bt}from"../chunks/payload-decoder.ec62e968.js";import{A as ot}from"../chunks/accordion.6428cbfc.js";import{I as st}from"../chunks/icon.33308831.js";import{L as He}from"../chunks/link.faba7c50.js";import{t as Bl,r as Rl,b as Ye}from"../chunks/time-format.aa1f006c.js";import{w as at,a as Dt,r as rr,b as At}from"../chunks/workflow-run.27281c78.js";import{j as Nt,k as St}from"../chunks/format-event-attributes.f47536f1.js";import{k as Vt,D as Ht,q as nr}from"../chunks/format-time.5082c525.js";import{i as or,g as Ce,q as Wt,h as Pt}from"../chunks/route-for.18f9590b.js";import{t as Ft}from"../chunks/to-time-difference.be87d1bf.js";import{f as jl}from"../chunks/index.2fa3ca4d.js";import{A as Et}from"../chunks/alert.c46cfdd9.js";import{w as sr}from"../chunks/task-queue-compatibility.8d922da0.js";import{P as zl}from"../chunks/pagination.057da68c.js";import{T as ft,a as it}from"../chunks/table-header-row.b9d52458.js";import{T as dt}from"../chunks/table-row.9c997398.js";import{W as ar}from"../chunks/workflow-status.391c4889.js";import{C as Je}from"../chunks/index.de7612af.js";import{b as Ll,E as fr,a as ir}from"../chunks/event-summary-table.e279c965.js";import{g as cr}from"../chunks/screaming-enums.7a4380bd.js";import{M as ur}from"../chunks/modal.2dc225aa.js";import{T as mr,a as mt}from"../chunks/toggle-buttons.e3375436.js";import{T as Ml}from"../chunks/toggle-switch.cc141600.js";import{a as $r,b as pr}from"../chunks/events-service.4b32e39d.js";import{d as ht,e as Ql,b as Ot}from"../chunks/event-view.f292d7b1.js";import{d as _t,f as nt,e as Ul}from"../chunks/events.a3eb82f4.js";import{n as _r}from"../chunks/namespaces.68caf21c.js";import{d as gt}from"../chunks/encode-uri.dfce78e4.js";import{a as dr}from"../chunks/auth-user.6dc931ea.js";import{g as gr,e as hr,f as wr,h as vr,d as kr}from"../chunks/decode-payload.19da7edc.js";import{H as ql,I as br,C as Er}from"../chunks/is-event-type.7aa6d0ba.js";import{g as Bt}from"../chunks/index.5fe2e895.js";import{C as yr}from"../chunks/get-event-categorization.75c83097.js";import{e as Rt}from"../chunks/filters.38f71e0d.js";import{W as Ir}from"../chunks/workflow-json-navigator.50ae8db9.js";const Ea=Object.freeze(Object.defineProperty({__proto__:null},Symbol.toStringTag,{value:"Module"}));function Tr(o){let e,l,t,r;return{c(){e=Se("svg"),l=Se("title"),t=F(o[0]),r=Se("path"),this.h()},l(n){e=Ve(n,"svg",{class:!0,fill:!0,xmlns:!0,viewBox:!0,role:!0});var s=C(e);l=Ve(s,"title",{});var a=C(l);t=O(a,o[0]),a.forEach(u),r=Ve(s,"path",{d:!0}),C(r).forEach(u),s.forEach(u),this.h()},h(){T(r,"d","M310.6 246.6l-127.1 128C176.4 380.9 168.2 384 160 384s-16.38-3.125-22.63-9.375l-127.1-128C.2244 237.5-2.516 223.7 2.438 211.8S19.07 192 32 192h255.1c12.94 0 24.62 7.781 29.58 19.75S319.8 237.5 310.6 246.6z"),T(e,"class","h-4 w-4"),T(e,"fill","currentColor"),T(e,"xmlns","http://www.w3.org/2000/svg"),T(e,"viewBox","0 0 320 512"),T(e,"role","img")},m(n,s){w(n,e,s),d(e,l),d(l,t),d(e,r)},p(n,[s]){s&1&&ee(t,n[0])},i:X,o:X,d(n){n&&u(e)}}}function Cr(o,e,l){let{title:t}=e;return o.$$set=r=>{"title"in r&&l(0,t=r.title)},[t]}class Dr extends $e{constructor(e){super(),pe(this,e,Cr,Tr,_e,{title:0})}}function Ar(o){let e,l,t,r;return{c(){e=Se("svg"),l=Se("title"),t=F(o[0]),r=Se("path"),this.h()},l(n){e=Ve(n,"svg",{class:!0,fill:!0,xmlns:!0,viewBox:!0,role:!0});var s=C(e);l=Ve(s,"title",{});var a=C(l);t=O(a,o[0]),a.forEach(u),r=Ve(s,"path",{d:!0}),C(r).forEach(u),s.forEach(u),this.h()},h(){T(r,"d","M137.4 406.6l-128-127.1C3.125 272.4 0 264.2 0 255.1s3.125-16.38 9.375-22.63l128-127.1c9.156-9.156 22.91-11.9 34.88-6.943S192 115.1 192 128v255.1c0 12.94-7.781 24.62-19.75 29.58S146.5 415.8 137.4 406.6z"),T(e,"class","h-4 w-4"),T(e,"fill","currentColor"),T(e,"xmlns","http://www.w3.org/2000/svg"),T(e,"viewBox","0 0 256 512"),T(e,"role","img")},m(n,s){w(n,e,s),d(e,l),d(l,t),d(e,r)},p(n,[s]){s&1&&ee(t,n[0])},i:X,o:X,d(n){n&&u(e)}}}function Nr(o,e,l){let{title:t}=e;return o.$$set=r=>{"title"in r&&l(0,t=r.title)},[t]}class Sr extends $e{constructor(e){super(),pe(this,e,Nr,Ar,_e,{title:0})}}function Vr(o){let e,l,t,r;return{c(){e=Se("svg"),l=Se("title"),t=F(o[0]),r=Se("path"),this.h()},l(n){e=Ve(n,"svg",{class:!0,fill:!0,xmlns:!0,viewBox:!0,role:!0});var s=C(e);l=Ve(s,"title",{});var a=C(l);t=O(a,o[0]),a.forEach(u),r=Ve(s,"path",{d:!0}),C(r).forEach(u),s.forEach(u),this.h()},h(){T(r,"d","M118.6 105.4l128 127.1C252.9 239.6 256 247.8 256 255.1s-3.125 16.38-9.375 22.63l-128 127.1c-9.156 9.156-22.91 11.9-34.88 6.943S64 396.9 64 383.1V128c0-12.94 7.781-24.62 19.75-29.58S109.5 96.23 118.6 105.4z"),T(e,"class","h-4 w-4"),T(e,"fill","currentColor"),T(e,"xmlns","http://www.w3.org/2000/svg"),T(e,"viewBox","0 0 256 512"),T(e,"role","img")},m(n,s){w(n,e,s),d(e,l),d(l,t),d(e,r)},p(n,[s]){s&1&&ee(t,n[0])},i:X,o:X,d(n){n&&u(e)}}}function Hr(o,e,l){let{title:t}=e;return o.$$set=r=>{"title"in r&&l(0,t=r.title)},[t]}class Wr extends $e{constructor(e){super(),pe(this,e,Hr,Vr,_e,{title:0})}}function Pr(o){let e,l,t,r;return{c(){e=Se("svg"),l=Se("title"),t=F(o[0]),r=Se("path"),this.h()},l(n){e=Ve(n,"svg",{class:!0,fill:!0,xmlns:!0,viewBox:!0,role:!0});var s=C(e);l=Ve(s,"title",{});var a=C(l);t=O(a,o[0]),a.forEach(u),r=Ve(s,"path",{d:!0}),C(r).forEach(u),s.forEach(u),this.h()},h(){T(r,"d","M9.39 265.4l127.1-128C143.6 131.1 151.8 128 160 128s16.38 3.125 22.63 9.375l127.1 128c9.156 9.156 11.9 22.91 6.943 34.88S300.9 320 287.1 320H32.01c-12.94 0-24.62-7.781-29.58-19.75S.2333 274.5 9.39 265.4z"),T(e,"class","h-4 w-4"),T(e,"fill","currentColor"),T(e,"xmlns","http://www.w3.org/2000/svg"),T(e,"viewBox","0 0 320 512"),T(e,"role","img")},m(n,s){w(n,e,s),d(e,l),d(l,t),d(e,r)},p(n,[s]){s&1&&ee(t,n[0])},i:X,o:X,d(n){n&&u(e)}}}function Fr(o,e,l){let{title:t}=e;return o.$$set=r=>{"title"in r&&l(0,t=r.title)},[t]}class Or extends $e{constructor(e){super(),pe(this,e,Fr,Pr,_e,{title:0})}}function Br(o){let e;const l=o[4].default,t=Cl(l,o,o[5],null);return{c(){t&&t.c()},l(r){t&&t.l(r)},m(r,n){t&&t.m(r,n),e=!0},p(r,n){t&&t.p&&(!e||n&32)&&Dl(t,l,r,r[5],e?Nl(l,r[5],n,null):Al(r[5]),null)},i(r){e||($(t,r),e=!0)},o(r){_(t,r),e=!1},d(r){t&&t.d(r)}}}function Rr(o){let e,l,t;var r=o[3][o[1]];function n(s){return{props:{title:s[2]}}}return r&&(e=$t(r,n(o))),{c(){e&&b(e.$$.fragment),l=se()},l(s){e&&I(e.$$.fragment,s),l=se()},m(s,a){e&&E(e,s,a),w(s,l,a),t=!0},p(s,a){const f={};if(a&4&&(f.title=s[2]),r!==(r=s[3][s[1]])){if(e){G();const i=e;_(i.$$.fragment,1,0,()=>{y(i,1)}),J()}r?(e=$t(r,n(s)),b(e.$$.fragment),$(e.$$.fragment,1),E(e,l.parentNode,l)):e=null}else r&&e.$set(f)},i(s){t||(e&&$(e.$$.fragment,s),t=!0)},o(s){e&&_(e.$$.fragment,s),t=!1},d(s){s&&u(l),e&&y(e,s)}}}function jr(o){let e,l,t,r;const n=[Rr,Br],s=[];function a(f,i){return f[1]?0:1}return l=a(o),t=s[l]=n[l](o),{c(){e=N("kbd"),t.c(),this.h()},l(f){e=S(f,"KBD",{class:!0});var i=C(e);t.l(i),i.forEach(u),this.h()},h(){T(e,"class","shortcut svelte-1q2pvbc")},m(f,i){w(f,e,i),s[l].m(e,null),r=!0},p(f,i){let c=l;l=a(f),l===c?s[l].p(f,i):(G(),_(s[c],1,1,()=>{s[c]=null}),J(),t=s[l],t?t.p(f,i):(t=s[l]=n[l](f),t.c()),$(t,1),t.m(e,null))},i(f){r||($(t),r=!0)},o(f){_(t),r=!1},d(f){f&&u(e),s[l].d()}}}function zr(o){let e,l;return e=new Ol({props:{text:o[0],hide:!o[0],top:!0,$$slots:{default:[jr]},$$scope:{ctx:o}}}),{c(){b(e.$$.fragment)},l(t){I(e.$$.fragment,t)},m(t,r){E(e,t,r),l=!0},p(t,[r]){const n={};r&1&&(n.text=t[0]),r&1&&(n.hide=!t[0]),r&38&&(n.$$scope={dirty:r,ctx:t}),e.$set(n)},i(t){l||($(e.$$.fragment,t),l=!0)},o(t){_(e.$$.fragment,t),l=!1},d(t){y(e,t)}}}function Lr(o,e,l){let{$$slots:t={},$$scope:r}=e,{tooltipText:n=""}=e,{arrow:s=void 0}=e,{title:a}=e;const f={up:Or,down:Dr,left:Sr,right:Wr};return o.$$set=i=>{"tooltipText"in i&&l(0,n=i.tooltipText),"arrow"in i&&l(1,s=i.arrow),"title"in i&&l(2,a=i.title),"$$scope"in i&&l(5,r=i.$$scope)},[n,s,a,f,t,r]}class ze extends $e{constructor(e){super(),pe(this,e,Lr,zr,_e,{tooltipText:0,arrow:1,title:2})}}function Mr(o){let e;return{c(){e=F("L")},l(l){e=O(l,"L")},m(l,t){w(l,e,t)},d(l){l&&u(e)}}}function Qr(o){let e;return{c(){e=F("H")},l(l){e=O(l,"H")},m(l,t){w(l,e,t)},d(l){l&&u(e)}}}function Ur(o){let e;return{c(){e=F("J")},l(l){e=O(l,"J")},m(l,t){w(l,e,t)},d(l){l&&u(e)}}}function qr(o){let e;return{c(){e=F("K")},l(l){e=O(l,"K")},m(l,t){w(l,e,t)},d(l){l&&u(e)}}}function Kr(o){let e,l,t=v("common.next-page")+"",r,n,s,a,f,i,c,m,p=v("common.previous-page")+"",D,P,h,g,k,R,q,Y,ae=v("common.next-row")+"",j,K,re,oe,Q,fe,ce,de,ue=v("common.previous-row")+"",Z,ge,ne,ve,te,ke,me;return a=new ze({props:{arrow:"right",title:v("common.arrow-key-right")}}),i=new ze({props:{title:"",$$slots:{default:[Mr]},$$scope:{ctx:o}}}),g=new ze({props:{arrow:"left",title:v("common.arrow-key-left")}}),R=new ze({props:{title:"",$$slots:{default:[Qr]},$$scope:{ctx:o}}}),oe=new ze({props:{arrow:"down",title:v("common.arrow-key-down")}}),fe=new ze({props:{title:"",$$slots:{default:[Ur]},$$scope:{ctx:o}}}),ve=new ze({props:{arrow:"up",title:v("common.arrow-key-up")}}),ke=new ze({props:{title:"",$$slots:{default:[qr]},$$scope:{ctx:o}}}),{c(){e=N("div"),l=N("div"),r=F(t),n=H(),s=N("div"),b(a.$$.fragment),f=F("|"),b(i.$$.fragment),c=H(),m=N("div"),D=F(p),P=H(),h=N("div"),b(g.$$.fragment),k=F("|"),b(R.$$.fragment),q=H(),Y=N("div"),j=F(ae),K=H(),re=N("div"),b(oe.$$.fragment),Q=F("|"),b(fe.$$.fragment),ce=H(),de=N("div"),Z=F(ue),ge=H(),ne=N("div"),b(ve.$$.fragment),te=F("|"),b(ke.$$.fragment),this.h()},l(V){e=S(V,"DIV",{class:!0});var A=C(e);l=S(A,"DIV",{class:!0});var z=C(l);r=O(z,t),n=W(z),s=S(z,"DIV",{class:!0});var L=C(s);I(a.$$.fragment,L),f=O(L,"|"),I(i.$$.fragment,L),L.forEach(u),z.forEach(u),c=W(A),m=S(A,"DIV",{class:!0});var ie=C(m);D=O(ie,p),P=W(ie),h=S(ie,"DIV",{class:!0});var he=C(h);I(g.$$.fragment,he),k=O(he,"|"),I(R.$$.fragment,he),he.forEach(u),ie.forEach(u),q=W(A),Y=S(A,"DIV",{class:!0});var be=C(Y);j=O(be,ae),K=W(be),re=S(be,"DIV",{class:!0});var ye=C(re);I(oe.$$.fragment,ye),Q=O(ye,"|"),I(fe.$$.fragment,ye),ye.forEach(u),be.forEach(u),ce=W(A),de=S(A,"DIV",{class:!0});var Ae=C(de);Z=O(Ae,ue),ge=W(Ae),ne=S(Ae,"DIV",{class:!0});var We=C(ne);I(ve.$$.fragment,We),te=O(We,"|"),I(ke.$$.fragment,We),We.forEach(u),Ae.forEach(u),A.forEach(u),this.h()},h(){T(s,"class","shortcut svelte-1syr807"),T(l,"class","cell svelte-1syr807"),T(h,"class","shortcut svelte-1syr807"),T(m,"class","cell svelte-1syr807"),T(re,"class","shortcut svelte-1syr807"),T(Y,"class","cell svelte-1syr807"),T(ne,"class","shortcut svelte-1syr807"),T(de,"class","cell svelte-1syr807"),T(e,"class","grid grid-cols-1 gap-8 text-gray-500 dark:text-gray-400 md:grid-cols-2 xl:grid-cols-4")},m(V,A){w(V,e,A),d(e,l),d(l,r),d(l,n),d(l,s),E(a,s,null),d(s,f),E(i,s,null),d(e,c),d(e,m),d(m,D),d(m,P),d(m,h),E(g,h,null),d(h,k),E(R,h,null),d(e,q),d(e,Y),d(Y,j),d(Y,K),d(Y,re),E(oe,re,null),d(re,Q),E(fe,re,null),d(e,ce),d(e,de),d(de,Z),d(de,ge),d(de,ne),E(ve,ne,null),d(ne,te),E(ke,ne,null),me=!0},p(V,A){const z={};A&8&&(z.$$scope={dirty:A,ctx:V}),i.$set(z);const L={};A&8&&(L.$$scope={dirty:A,ctx:V}),R.$set(L);const ie={};A&8&&(ie.$$scope={dirty:A,ctx:V}),fe.$set(ie);const he={};A&8&&(he.$$scope={dirty:A,ctx:V}),ke.$set(he)},i(V){me||($(a.$$.fragment,V),$(i.$$.fragment,V),$(g.$$.fragment,V),$(R.$$.fragment,V),$(oe.$$.fragment,V),$(fe.$$.fragment,V),$(ve.$$.fragment,V),$(ke.$$.fragment,V),me=!0)},o(V){_(a.$$.fragment,V),_(i.$$.fragment,V),_(g.$$.fragment,V),_(R.$$.fragment,V),_(oe.$$.fragment,V),_(fe.$$.fragment,V),_(ve.$$.fragment,V),_(ke.$$.fragment,V),me=!1},d(V){V&&u(e),y(a),y(i),y(g),y(R),y(oe),y(fe),y(ve),y(ke)}}}function Gr(o){let e,l,t,r,n;return l=new tr({props:{size:"sm",variant:"secondary",leadingIcon:"keyboard"}}),l.$on("click",function(){Gl(o[1])&&o[1].apply(this,arguments)}),r=new lr({props:{open:o[0],onClick:o[2],title:v("common.keyboard-shortcuts"),closeButtonLabel:v("common.close-keyboard-shortcuts"),$$slots:{default:[Kr]},$$scope:{ctx:o}}}),{c(){e=N("div"),b(l.$$.fragment),t=H(),b(r.$$.fragment),this.h()},l(s){e=S(s,"DIV",{class:!0});var a=C(e);I(l.$$.fragment,a),a.forEach(u),t=W(s),I(r.$$.fragment,s),this.h()},h(){T(e,"class","shortcut-key-button svelte-1syr807")},m(s,a){w(s,e,a),E(l,e,null),w(s,t,a),E(r,s,a),n=!0},p(s,[a]){o=s;const f={};a&1&&(f.open=o[0]),a&4&&(f.onClick=o[2]),a&8&&(f.$$scope={dirty:a,ctx:o}),r.$set(f)},i(s){n||($(l.$$.fragment,s),$(r.$$.fragment,s),n=!0)},o(s){_(l.$$.fragment,s),_(r.$$.fragment,s),n=!1},d(s){s&&u(e),y(l),s&&u(t),y(r,s)}}}function Jr(o,e,l){let{open:t=!1}=e,{onOpen:r}=e,{onClose:n}=e;return o.$$set=s=>{"open"in s&&l(0,t=s.open),"onOpen"in s&&l(1,r=s.onOpen),"onClose"in s&&l(2,n=s.onClose)},[t,r,n]}class Xr extends $e{constructor(e){super(),pe(this,e,Jr,Gr,_e,{open:0,onOpen:1,onClose:2})}}function jt(o,e,l){const t=o.slice();return t[11]=e[l],t}function zt(o){let e,l;return e=new Te({props:{type:"count",class:"rounded-sm",$$slots:{default:[Yr]},$$scope:{ctx:o}}}),{c(){b(e.$$.fragment)},l(t){I(e.$$.fragment,t)},m(t,r){E(e,t,r),l=!0},p(t,r){const n={};r&16388&&(n.$$scope={dirty:r,ctx:t}),e.$set(n)},i(t){l||($(e.$$.fragment,t),l=!0)},o(t){_(e.$$.fragment,t),l=!1},d(t){y(e,t)}}}function Yr(o){let e=o[2].length+"",l;return{c(){l=F(e)},l(t){l=O(t,e)},m(t,r){w(t,l,r)},p(t,r){r&4&&e!==(e=t[2].length+"")&&ee(l,e)},d(t){t&&u(l)}}}function Zr(o){let e,l;return e=new Ze({props:{content:"Results will appear upon completion.",language:"text",class:"mb-2 lg:max-h-[24rem]",copyable:!1}}),{c(){b(e.$$.fragment)},l(t){I(e.$$.fragment,t)},m(t,r){E(e,t,r),l=!0},p:X,i(t){l||($(e.$$.fragment,t),l=!0)},o(t){_(e.$$.fragment,t),l=!1},d(t){y(e,t)}}}function xr(o){let e,l,t,r;const n=[tn,en],s=[];function a(f,i){return f[5]?0:1}return l=a(o),t=s[l]=n[l](o),{c(){e=N("div"),t.c(),this.h()},l(f){e=S(f,"DIV",{class:!0});var i=C(e);t.l(i),i.forEach(u),this.h()},h(){T(e,"class","flex h-full flex-col overflow-scroll lg:max-h-[24rem]")},m(f,i){w(f,e,i),s[l].m(e,null),r=!0},p(f,i){let c=l;l=a(f),l===c?s[l].p(f,i):(G(),_(s[c],1,1,()=>{s[c]=null}),J(),t=s[l],t?t.p(f,i):(t=s[l]=n[l](f),t.c()),$(t,1),t.m(e,null))},i(f){r||($(t),r=!0)},o(f){_(t),r=!1},d(f){f&&u(e),s[l].d()}}}function en(o){let e,l;return e=new bt({props:{value:rt(o[0]),$$slots:{default:[ln,({decodedValue:t})=>({10:t}),({decodedValue:t})=>t?1024:0]},$$scope:{ctx:o}}}),{c(){b(e.$$.fragment)},l(t){I(e.$$.fragment,t)},m(t,r){E(e,t,r),l=!0},p(t,r){const n={};r&1&&(n.value=rt(t[0])),r&17408&&(n.$$scope={dirty:r,ctx:t}),e.$set(n)},i(t){l||($(e.$$.fragment,t),l=!0)},o(t){_(e.$$.fragment,t),l=!1},d(t){y(e,t)}}}function tn(o){let e,l;return e=new bt({props:{value:o[3],key:"payloads",$$slots:{default:[rn,({decodedValue:t})=>({10:t}),({decodedValue:t})=>t?1024:0]},$$scope:{ctx:o}}}),{c(){b(e.$$.fragment)},l(t){I(e.$$.fragment,t)},m(t,r){E(e,t,r),l=!0},p(t,r){const n={};r&8&&(n.value=t[3]),r&17408&&(n.$$scope={dirty:r,ctx:t}),e.$set(n)},i(t){l||($(e.$$.fragment,t),l=!0)},o(t){_(e.$$.fragment,t),l=!1},d(t){y(e,t)}}}function ln(o){let e,l;return e=new Ze({props:{content:o[10],class:"mb-2 lg:max-h-[23.5rem]",copyIconTitle:v("common.copy-icon-title"),copySuccessIconTitle:v("common.copy-success-icon-title")}}),{c(){b(e.$$.fragment)},l(t){I(e.$$.fragment,t)},m(t,r){E(e,t,r),l=!0},p(t,r){const n={};r&1024&&(n.content=t[10]),e.$set(n)},i(t){l||($(e.$$.fragment,t),l=!0)},o(t){_(e.$$.fragment,t),l=!1},d(t){y(e,t)}}}function Lt(o){let e,l;return e=new Ze({props:{content:Re(o[11]),class:"mb-2",copyIconTitle:v("common.copy-icon-title"),copySuccessIconTitle:v("common.copy-success-icon-title")}}),{c(){b(e.$$.fragment)},l(t){I(e.$$.fragment,t)},m(t,r){E(e,t,r),l=!0},p(t,r){const n={};r&1024&&(n.content=Re(t[11])),e.$set(n)},i(t){l||($(e.$$.fragment,t),l=!0)},o(t){_(e.$$.fragment,t),l=!1},d(t){y(e,t)}}}function rn(o){let e,l,t=o[6](o[10]),r=[];for(let s=0;s_(r[s],1,1,()=>{r[s]=null});return{c(){for(let s=0;s{i=null}),J());let k=s;s=p(h),s===k?m[s].p(h,g):(G(),_(m[k],1,1,()=>{m[k]=null}),J(),a=m[s],a?a.p(h,g):(a=m[s]=c[s](h),a.c()),$(a,1),a.m(e,null)),It(e,P=Sl(D,[{class:"flex w-full flex-col lg:w-1/2"},g&128&&h[7]]))},i(h){f||($(i),$(a),f=!0)},o(h){_(i),_(a),f=!1},d(h){h&&u(e),i&&i.d(),m[s].d()}}}function on(o,e,l){let t,r,n,s;const a=["content","title"];let f=Tt(e,a),{content:i}=e,{title:c}=e;const m=P=>{try{return rt(P)}catch{return}},p=P=>{try{const h=rt(P);return Array.isArray(h)?rt(P):[]}catch{return[]}},D=P=>{try{const h=P==null?void 0:P.payloads;return Array.isArray(h)?h:[]}catch{return[]}};return o.$$set=P=>{e=pt(pt({},e),Jl(P)),l(7,f=Tt(e,a)),"content"in P&&l(0,i=P.content),"title"in P&&l(1,c=P.title)},o.$$.update=()=>{o.$$.dirty&1&&l(3,t=m(i)),o.$$.dirty&8&&l(2,r=D(t)),o.$$.dirty&4&&l(5,n=r.length>0),o.$$.dirty&4&&l(4,s=r.length>1)},[i,c,r,t,s,n,p,f]}class Mt extends $e{constructor(e){super(),pe(this,e,on,nn,_e,{content:0,title:1})}}function Qt(o,e,l){const t=o.slice();t[8]=e[l].id,t[9]=Xl(e[l],["id"]);const r=t[9].attempt>1;return t[10]=r,t}function Ut(o){let e,l,t;return l=new ot({props:{title:v("workflows.pending-activities"),"data-testid":"pending-activities",$$slots:{summary:[dn],default:[mn]},$$scope:{ctx:o}}}),{c(){e=N("section"),b(l.$$.fragment)},l(r){e=S(r,"SECTION",{});var n=C(e);I(l.$$.fragment,n),n.forEach(u)},m(r,n){w(r,e,n),E(l,e,null),t=!0},p(r,n){const s={};n&8223&&(s.$$scope={dirty:n,ctx:r}),l.$set(s)},i(r){t||($(l.$$.fragment,r),t=!0)},o(r){_(l.$$.fragment,r),t=!1},d(r){r&&u(e),y(l)}}}function sn(o){let e=o[9].activityType+"",l;return{c(){l=F(e)},l(t){l=O(t,e)},m(t,r){w(t,l,r)},p(t,r){r&4&&e!==(e=t[9].activityType+"")&&ee(l,e)},d(t){t&&u(l)}}}function qt(o){let e,l;return e=new st({props:{name:"retry"}}),{c(){b(e.$$.fragment)},l(t){I(e.$$.fragment,t)},m(t,r){E(e,t,r),l=!0},i(t){l||($(e.$$.fragment,t),l=!0)},o(t){_(e.$$.fragment,t),l=!1},d(t){y(e,t)}}}function an(o){let e,l=o[9].attempt+"",t,r,n=o[10]&&qt();return{c(){n&&n.c(),e=H(),t=F(l)},l(s){n&&n.l(s),e=W(s),t=O(s,l)},m(s,a){n&&n.m(s,a),w(s,e,a),w(s,t,a),r=!0},p(s,a){s[10]?n?a&4&&$(n,1):(n=qt(),n.c(),$(n,1),n.m(e.parentNode,e)):n&&(G(),_(n,1,1,()=>{n=null}),J()),(!r||a&4)&&l!==(l=s[9].attempt+"")&&ee(t,l)},i(s){r||($(n),r=!0)},o(s){_(n),r=!1},d(s){n&&n.d(s),s&&u(e),s&&u(t)}}}function fn(o){let e=St(o[9].maximumAttempts,o[9].attempt)+"",l;return{c(){l=F(e)},l(t){l=O(t,e)},m(t,r){w(t,l,r)},p(t,r){r&4&&e!==(e=St(t[9].maximumAttempts,t[9].attempt)+"")&&ee(l,e)},d(t){t&&u(l)}}}function Kt(o){let e,l,t=v("workflows.next-retry")+"",r,n,s,a;return s=new Te({props:{type:o[10]?"error":"default",$$slots:{default:[cn]},$$scope:{ctx:o}}}),{c(){e=N("div"),l=N("h4"),r=F(t),n=H(),b(s.$$.fragment),this.h()},l(f){e=S(f,"DIV",{class:!0});var i=C(e);l=S(i,"H4",{class:!0});var c=C(l);r=O(c,t),c.forEach(u),n=W(i),I(s.$$.fragment,i),i.forEach(u),this.h()},h(){T(l,"class","pending-activity-detail-header svelte-155uvlv"),T(e,"class","pending-activity-detail svelte-155uvlv")},m(f,i){w(f,e,i),d(e,l),d(l,r),d(e,n),E(s,e,null),a=!0},p(f,i){const c={};i&4&&(c.type=f[10]?"error":"default"),i&8196&&(c.$$scope={dirty:i,ctx:f}),s.$set(c)},i(f){a||($(s.$$.fragment,f),a=!0)},o(f){_(s.$$.fragment,f),a=!1},d(f){f&&u(e),y(s)}}}function cn(o){let e=Ft({date:o[9].scheduledTime,negativeDefault:"None"})+"",l;return{c(){l=F(e)},l(t){l=O(t,e)},m(t,r){w(t,l,r)},p(t,r){r&4&&e!==(e=Ft({date:t[9].scheduledTime,negativeDefault:"None"})+"")&&ee(l,e)},d(t){t&&u(l)}}}function Gt(o){let e,l,t=v("workflows.heartbeat-details")+"",r,n,s,a;return s=new Ze({props:{class:"max-h-32 overflow-y-scroll",content:Re(o[9].heartbeatDetails),copyIconTitle:v("common.copy-icon-title"),copySuccessIconTitle:v("common.copy-success-icon-title")}}),{c(){e=N("div"),l=N("h4"),r=F(t),n=H(),b(s.$$.fragment),this.h()},l(f){e=S(f,"DIV",{class:!0});var i=C(e);l=S(i,"H4",{class:!0});var c=C(l);r=O(c,t),c.forEach(u),n=W(i),I(s.$$.fragment,i),i.forEach(u),this.h()},h(){T(l,"class","pending-activity-detail-header svelte-155uvlv"),T(e,"class","w-1/2 grow")},m(f,i){w(f,e,i),d(e,l),d(l,r),d(e,n),E(s,e,null),a=!0},p(f,i){const c={};i&4&&(c.content=Re(f[9].heartbeatDetails)),s.$set(c)},i(f){a||($(s.$$.fragment,f),a=!0)},o(f){_(s.$$.fragment,f),a=!1},d(f){f&&u(e),y(s)}}}function Jt(o){let e,l,t=v("workflows.last-failure")+"",r,n,s,a;return s=new Ze({props:{class:"max-h-32 overflow-y-scroll",content:Re(o[9].lastFailure),copyIconTitle:v("common.copy-icon-title"),copySuccessIconTitle:v("common.copy-success-icon-title")}}),{c(){e=N("div"),l=N("h4"),r=F(t),n=H(),b(s.$$.fragment),this.h()},l(f){e=S(f,"DIV",{class:!0});var i=C(e);l=S(i,"H4",{class:!0});var c=C(l);r=O(c,t),c.forEach(u),n=W(i),I(s.$$.fragment,i),i.forEach(u),this.h()},h(){T(l,"class","pending-activity-detail-header svelte-155uvlv"),T(e,"class","w-1/2 grow")},m(f,i){w(f,e,i),d(e,l),d(l,r),d(e,n),E(s,e,null),a=!0},p(f,i){const c={};i&4&&(c.content=Re(f[9].lastFailure)),s.$set(c)},i(f){a||($(s.$$.fragment,f),a=!0)},o(f){_(s.$$.fragment,f),a=!1},d(f){f&&u(e),y(s)}}}function Xt(o,e){var je,Ie;let l,t,r=e[9].activityId+"",n,s,a,f,i,c,m,p=v("workflows.activity-type")+"",D,P,h,g,k,R,q=v("workflows.last-heartbeat")+"",Y,ae,j=Ye(e[9].lastHeartbeatTime,e[3],{relative:e[4]})+"",K,re,oe,Q,fe=v("workflows.attempt")+"",ce,de,ue,Z,ge,ne,ve=v("workflows.attempts-left")+"",te,ke,me,V,A,z,L,ie=v("workflows.expiration")+"",he,be,ye=Nt(e[9].maximumAttempts,Vt(Ht({start:Date.now(),end:e[9].expirationTime})))+"",Ae,We,De,Me,Xe,Fe;h=new Te({props:{type:e[10]?"error":"default",$$slots:{default:[sn]},$$scope:{ctx:e}}}),ue=new Te({props:{type:e[10]?"error":"default",$$slots:{default:[an]},$$scope:{ctx:e}}}),me=new Te({props:{type:e[10]?"error":"default",$$slots:{default:[fn]},$$scope:{ctx:e}}});let B=e[10]&&e[9].scheduledTime&&Kt(e),M=((je=e[9])==null?void 0:je.heartbeatDetails)&&Gt(e),x=((Ie=e[9])==null?void 0:Ie.lastFailure)&&Jt(e);return{key:o,first:null,c(){l=N("div"),t=N("h3"),n=F(r),s=H(),a=N("div"),f=N("div"),i=N("div"),c=N("div"),m=N("h4"),D=F(p),P=H(),b(h.$$.fragment),g=H(),k=N("div"),R=N("h4"),Y=F(q),ae=H(),K=F(j),re=H(),oe=N("div"),Q=N("h4"),ce=F(fe),de=H(),b(ue.$$.fragment),Z=H(),ge=N("div"),ne=N("h4"),te=F(ve),ke=H(),b(me.$$.fragment),V=H(),B&&B.c(),A=H(),z=N("div"),L=N("h4"),he=F(ie),be=H(),Ae=F(ye),We=H(),De=N("div"),M&&M.c(),Me=H(),x&&x.c(),Xe=H(),this.h()},l(we){l=S(we,"DIV",{class:!0});var U=C(l);t=S(U,"H3",{class:!0});var Ne=C(t);n=O(Ne,r),Ne.forEach(u),s=W(U),a=S(U,"DIV",{class:!0});var Be=C(a);f=S(Be,"DIV",{class:!0});var Pe=C(f);i=S(Pe,"DIV",{class:!0});var Ee=C(i);c=S(Ee,"DIV",{class:!0});var Oe=C(c);m=S(Oe,"H4",{class:!0});var xe=C(m);D=O(xe,p),xe.forEach(u),P=W(Oe),I(h.$$.fragment,Oe),Oe.forEach(u),g=W(Ee),k=S(Ee,"DIV",{class:!0});var Qe=C(k);R=S(Qe,"H4",{class:!0});var et=C(R);Y=O(et,q),et.forEach(u),ae=W(Qe),K=O(Qe,j),Qe.forEach(u),re=W(Ee),oe=S(Ee,"DIV",{class:!0});var Ue=C(oe);Q=S(Ue,"H4",{class:!0});var tt=C(Q);ce=O(tt,fe),tt.forEach(u),de=W(Ue),I(ue.$$.fragment,Ue),Ue.forEach(u),Z=W(Ee),ge=S(Ee,"DIV",{class:!0});var qe=C(ge);ne=S(qe,"H4",{class:!0});var lt=C(ne);te=O(lt,ve),lt.forEach(u),ke=W(qe),I(me.$$.fragment,qe),qe.forEach(u),V=W(Ee),B&&B.l(Ee),A=W(Ee),z=S(Ee,"DIV",{class:!0});var ct=C(z);L=S(ct,"H4",{class:!0});var yt=C(L);he=O(yt,ie),yt.forEach(u),be=W(ct),Ae=O(ct,ye),ct.forEach(u),Ee.forEach(u),We=W(Pe),De=S(Pe,"DIV",{class:!0});var ut=C(De);M&&M.l(ut),Me=W(ut),x&&x.l(ut),ut.forEach(u),Pe.forEach(u),Be.forEach(u),Xe=W(U),U.forEach(u),this.h()},h(){T(t,"class","w-full self-start text-sm font-normal text-gray-500"),T(m,"class","pending-activity-detail-header svelte-155uvlv"),T(c,"class","pending-activity-detail svelte-155uvlv"),T(R,"class","pending-activity-detail-header svelte-155uvlv"),T(k,"class","pending-activity-detail svelte-155uvlv"),T(Q,"class","pending-activity-detail-header svelte-155uvlv"),T(oe,"class","pending-activity-detail svelte-155uvlv"),T(ne,"class","pending-activity-detail-header svelte-155uvlv"),T(ge,"class","pending-activity-detail svelte-155uvlv"),T(L,"class","pending-activity-detail-header svelte-155uvlv"),T(z,"class","pending-activity-detail svelte-155uvlv"),T(i,"class","pending-activity-inner-row svelte-155uvlv"),T(De,"class","pending-activity-failure-details svelte-155uvlv"),T(f,"class","pending-activity-summary svelte-155uvlv"),T(a,"class","pending-activity-row svelte-155uvlv"),T(l,"class","pending-activity-row-container svelte-155uvlv"),this.first=l},m(we,U){w(we,l,U),d(l,t),d(t,n),d(l,s),d(l,a),d(a,f),d(f,i),d(i,c),d(c,m),d(m,D),d(c,P),E(h,c,null),d(i,g),d(i,k),d(k,R),d(R,Y),d(k,ae),d(k,K),d(i,re),d(i,oe),d(oe,Q),d(Q,ce),d(oe,de),E(ue,oe,null),d(i,Z),d(i,ge),d(ge,ne),d(ne,te),d(ge,ke),E(me,ge,null),d(i,V),B&&B.m(i,null),d(i,A),d(i,z),d(z,L),d(L,he),d(z,be),d(z,Ae),d(f,We),d(f,De),M&&M.m(De,null),d(De,Me),x&&x.m(De,null),d(l,Xe),Fe=!0},p(we,U){var Ee,Oe;e=we,(!Fe||U&4)&&r!==(r=e[9].activityId+"")&&ee(n,r);const Ne={};U&4&&(Ne.type=e[10]?"error":"default"),U&8196&&(Ne.$$scope={dirty:U,ctx:e}),h.$set(Ne),(!Fe||U&28)&&j!==(j=Ye(e[9].lastHeartbeatTime,e[3],{relative:e[4]})+"")&&ee(K,j);const Be={};U&4&&(Be.type=e[10]?"error":"default"),U&8196&&(Be.$$scope={dirty:U,ctx:e}),ue.$set(Be);const Pe={};U&4&&(Pe.type=e[10]?"error":"default"),U&8196&&(Pe.$$scope={dirty:U,ctx:e}),me.$set(Pe),e[10]&&e[9].scheduledTime?B?(B.p(e,U),U&4&&$(B,1)):(B=Kt(e),B.c(),$(B,1),B.m(i,A)):B&&(G(),_(B,1,1,()=>{B=null}),J()),(!Fe||U&4)&&ye!==(ye=Nt(e[9].maximumAttempts,Vt(Ht({start:Date.now(),end:e[9].expirationTime})))+"")&&ee(Ae,ye),(Ee=e[9])!=null&&Ee.heartbeatDetails?M?(M.p(e,U),U&4&&$(M,1)):(M=Gt(e),M.c(),$(M,1),M.m(De,Me)):M&&(G(),_(M,1,1,()=>{M=null}),J()),(Oe=e[9])!=null&&Oe.lastFailure?x?(x.p(e,U),U&4&&$(x,1)):(x=Jt(e),x.c(),$(x,1),x.m(De,null)):x&&(G(),_(x,1,1,()=>{x=null}),J())},i(we){Fe||($(h.$$.fragment,we),$(ue.$$.fragment,we),$(me.$$.fragment,we),$(B),$(M),$(x),Fe=!0)},o(we){_(h.$$.fragment,we),_(ue.$$.fragment,we),_(me.$$.fragment,we),_(B),_(M),_(x),Fe=!1},d(we){we&&u(l),y(h),y(ue),y(me),B&&B.d(),M&&M.d(),x&&x.d()}}}function un(o){let e=v("workflows.pending-activities-link")+"",l;return{c(){l=F(e)},l(t){l=O(t,e)},m(t,r){w(t,l,r)},p:X,d(t){t&&u(l)}}}function mn(o){let e,l=[],t=new Map,r,n,s,a,f=o[2];const i=c=>c[8];for(let c=0;c{n=null}),J())},i(s){r||($(l.$$.fragment,s),$(n),r=!0)},o(s){_(l.$$.fragment,s),_(n),r=!1},d(s){s&&u(e),y(l),n&&n.d()}}}function gn(o){let e,l,t=o[2].length&&Ut(o);return{c(){t&&t.c(),e=se()},l(r){t&&t.l(r),e=se()},m(r,n){t&&t.m(r,n),w(r,e,n),l=!0},p(r,[n]){r[2].length?t?(t.p(r,n),n&4&&$(t,1)):(t=Ut(r),t.c(),$(t,1),t.m(e.parentNode,e)):t&&(G(),_(t,1,1,()=>{t=null}),J())},i(r){l||($(t),l=!0)},o(r){_(t),l=!1},d(r){t&&t.d(r),r&&u(e)}}}function hn(o,e,l){let t,r,n,s,a,f,i,c;return le(o,Ge,m=>l(6,a=m)),le(o,at,m=>l(7,f=m)),le(o,Bl,m=>l(3,i=m)),le(o,Rl,m=>l(4,c=m)),o.$$.update=()=>{o.$$.dirty&128&&l(5,{workflow:t}=f,t),o.$$.dirty&32&&l(2,r=t==null?void 0:t.pendingActivities),o.$$.dirty&64&&l(1,n=or({namespace:a.params.namespace,workflow:a.params.workflow,run:a.params.run})),o.$$.dirty&32&&l(0,s=["Terminated","TimedOut","Canceled"].includes(t==null?void 0:t.status))},[s,n,r,i,c,t,a,f]}class wn extends $e{constructor(e){super(),pe(this,e,hn,gn,_e,{})}}function Zt(o){let e,l,t,r;return l=new Et({props:{bold:!0,icon:"warning",intent:"warning",title:v("workflows.workflow-error-no-workers-title"),$$slots:{default:[vn]},$$scope:{ctx:o}}}),{c(){e=N("div"),b(l.$$.fragment),this.h()},l(n){e=S(n,"DIV",{class:!0});var s=C(e);I(l.$$.fragment,s),s.forEach(u),this.h()},h(){T(e,"class","mb-4")},m(n,s){w(n,e,s),E(l,e,null),r=!0},p(n,s){const a={};s&129&&(a.$$scope={dirty:s,ctx:n}),l.$set(a)},i(n){r||($(l.$$.fragment,n),t||Pl(()=>{t=Fl(e,jl,{duration:200,delay:100}),t.start()}),r=!0)},o(n){_(l.$$.fragment,n),r=!1},d(n){n&&u(e),y(l)}}}function vn(o){var t;let e=v("workflows.workflow-error-no-workers-description",{taskQueue:(t=o[0])==null?void 0:t.taskQueue})+"",l;return{c(){l=F(e)},l(r){l=O(r,e)},m(r,n){w(r,l,n)},p(r,n){var s;n&1&&e!==(e=v("workflows.workflow-error-no-workers-description",{taskQueue:(s=r[0])==null?void 0:s.taskQueue})+"")&&ee(l,e)},d(r){r&&u(l)}}}function xt(o){let e,l,t,r;return l=new Et({props:{bold:!0,icon:"warning",intent:"warning",title:v("workflows.workflow-error-no-compatible-workers-title"),$$slots:{default:[kn]},$$scope:{ctx:o}}}),{c(){e=N("div"),b(l.$$.fragment),this.h()},l(n){e=S(n,"DIV",{class:!0});var s=C(e);I(l.$$.fragment,s),s.forEach(u),this.h()},h(){T(e,"class","mb-4")},m(n,s){w(n,e,s),E(l,e,null),r=!0},p(n,s){const a={};s&129&&(a.$$scope={dirty:s,ctx:n}),l.$set(a)},i(n){r||($(l.$$.fragment,n),t||Pl(()=>{t=Fl(e,jl,{duration:200,delay:100}),t.start()}),r=!0)},o(n){_(l.$$.fragment,n),r=!1},d(n){n&&u(e),y(l)}}}function kn(o){var t;let e=v("workflows.workflow-error-no-compatible-workers-description",{taskQueue:(t=o[0])==null?void 0:t.taskQueue})+"",l;return{c(){l=F(e)},l(r){l=O(r,e)},m(r,n){w(r,l,n)},p(r,n){var s;n&1&&e!==(e=v("workflows.workflow-error-no-compatible-workers-description",{taskQueue:(s=r[0])==null?void 0:s.taskQueue})+"")&&ee(l,e)},d(r){r&&u(l)}}}function bn(o){let e,l,t,r=o[2]&&Zt(o),n=!o[2]&&o[1]&&xt(o);return{c(){r&&r.c(),e=H(),n&&n.c(),l=se()},l(s){r&&r.l(s),e=W(s),n&&n.l(s),l=se()},m(s,a){r&&r.m(s,a),w(s,e,a),n&&n.m(s,a),w(s,l,a),t=!0},p(s,[a]){s[2]?r?(r.p(s,a),a&4&&$(r,1)):(r=Zt(s),r.c(),$(r,1),r.m(e.parentNode,e)):r&&(G(),_(r,1,1,()=>{r=null}),J()),!s[2]&&s[1]?n?(n.p(s,a),a&6&&$(n,1)):(n=xt(s),n.c(),$(n,1),n.m(l.parentNode,l)):n&&(G(),_(n,1,1,()=>{n=null}),J())},i(s){t||($(r),$(n),t=!0)},o(s){_(r),_(n),t=!1},d(s){r&&r.d(s),s&&u(e),n&&n.d(s),s&&u(l)}}}function En(o,e,l){let t,r,n,s,a,f;le(o,at,c=>l(6,f=c));var i;return o.$$.update=()=>{o.$$.dirty&64&&l(0,{workflow:t,workers:r,compatibility:n}=f,t,(l(5,r),l(6,f)),(l(4,n),l(6,f))),o.$$.dirty&41&&l(2,s=(t==null?void 0:t.isRunning)&&!(!(l(3,i=r==null?void 0:r.pollers)===null||i===void 0)&&i.length)),o.$$.dirty&49&&l(1,a=(t==null?void 0:t.isRunning)&&!sr(t,r.pollers,n))},[t,a,s,i,n,r,f]}class yn extends $e{constructor(e){super(),pe(this,e,En,bn,_e,{})}}function el(o,e,l){const t=o.slice();return t[7]=e[l],t}function In(o){let e=o[7].workflowId+"",l;return{c(){l=F(e)},l(t){l=O(t,e)},m(t,r){w(t,l,r)},p(t,r){r&64&&e!==(e=t[7].workflowId+"")&&ee(l,e)},d(t){t&&u(l)}}}function Tn(o){let e=o[7].runId+"",l;return{c(){l=F(e)},l(t){l=O(t,e)},m(t,r){w(t,l,r)},p(t,r){r&64&&e!==(e=t[7].runId+"")&&ee(l,e)},d(t){t&&u(l)}}}function Cn(o){let e,l,t,r,n=o[7].type+"",s,a,f,i,c,m,p,D,P;return l=new ar({props:{status:o[7].status}}),i=new He({props:{href:Ce({namespace:o[7].namespace,workflow:o[7].workflowId,run:o[7].runId}),$$slots:{default:[In]},$$scope:{ctx:o}}}),p=new He({props:{href:Ce({namespace:o[7].namespace,workflow:o[7].workflowId,run:o[7].runId}),$$slots:{default:[Tn]},$$scope:{ctx:o}}}),{c(){e=N("td"),b(l.$$.fragment),t=H(),r=N("td"),s=F(n),a=H(),f=N("td"),b(i.$$.fragment),c=H(),m=N("td"),b(p.$$.fragment),D=H(),this.h()},l(h){e=S(h,"TD",{class:!0});var g=C(e);I(l.$$.fragment,g),g.forEach(u),t=W(h),r=S(h,"TD",{class:!0});var k=C(r);s=O(k,n),k.forEach(u),a=W(h),f=S(h,"TD",{class:!0});var R=C(f);I(i.$$.fragment,R),R.forEach(u),c=W(h),m=S(h,"TD",{class:!0});var q=C(m);I(p.$$.fragment,q),q.forEach(u),D=W(h),this.h()},h(){T(e,"class","max-md:hidden"),T(r,"class","max-lg:hidden"),T(f,"class","hover:text-blue-700 hover:underline"),T(m,"class","hover:text-blue-700 hover:underline")},m(h,g){w(h,e,g),E(l,e,null),w(h,t,g),w(h,r,g),d(r,s),w(h,a,g),w(h,f,g),E(i,f,null),w(h,c,g),w(h,m,g),E(p,m,null),w(h,D,g),P=!0},p(h,g){const k={};g&64&&(k.status=h[7].status),l.$set(k),(!P||g&64)&&n!==(n=h[7].type+"")&&ee(s,n);const R={};g&64&&(R.href=Ce({namespace:h[7].namespace,workflow:h[7].workflowId,run:h[7].runId})),g&1088&&(R.$$scope={dirty:g,ctx:h}),i.$set(R);const q={};g&64&&(q.href=Ce({namespace:h[7].namespace,workflow:h[7].workflowId,run:h[7].runId})),g&1088&&(q.$$scope={dirty:g,ctx:h}),p.$set(q)},i(h){P||($(l.$$.fragment,h),$(i.$$.fragment,h),$(p.$$.fragment,h),P=!0)},o(h){_(l.$$.fragment,h),_(i.$$.fragment,h),_(p.$$.fragment,h),P=!1},d(h){h&&u(e),y(l),h&&u(t),h&&u(r),h&&u(a),h&&u(f),y(i),h&&u(c),h&&u(m),y(p),h&&u(D)}}}function tl(o){let e,l;return e=new dt({props:{$$slots:{default:[Cn]},$$scope:{ctx:o}}}),{c(){b(e.$$.fragment)},l(t){I(e.$$.fragment,t)},m(t,r){E(e,t,r),l=!0},p(t,r){const n={};r&1088&&(n.$$scope={dirty:r,ctx:t}),e.$set(n)},i(t){l||($(e.$$.fragment,t),l=!0)},o(t){_(e.$$.fragment,t),l=!1},d(t){y(e,t)}}}function Dn(o){let e,l,t=o[6],r=[];for(let s=0;s_(r[s],1,1,()=>{r[s]=null});return{c(){for(let s=0;s({6:t}),({visibleItems:t})=>t?64:0],default:[Vn,({visibleItems:t})=>({6:t}),({visibleItems:t})=>t?64:0]},$$scope:{ctx:o}}}),{c(){b(e.$$.fragment)},l(t){I(e.$$.fragment,t)},m(t,r){E(e,t,r),l=!0},p(t,[r]){const n={};r&1&&(n.items=t[0]),r&1088&&(n.$$scope={dirty:r,ctx:t}),e.$set(n)},i(t){l||($(e.$$.fragment,t),l=!0)},o(t){_(e.$$.fragment,t),l=!1},d(t){y(e,t)}}}function Pn(o,e,l){let t,r,n,{children:s=[]}=e,{pendingChildren:a=[]}=e,{namespace:f}=e;return o.$$set=i=>{"children"in i&&l(1,s=i.children),"pendingChildren"in i&&l(2,a=i.pendingChildren),"namespace"in i&&l(3,f=i.namespace)},o.$$.update=()=>{o.$$.dirty&12&&l(5,t=a.map(i=>({runId:i.runId,workflowId:i.workflowId,status:"Running",type:i.workflowTypeName,namespace:f}))),o.$$.dirty&10&&l(4,r=s.map(i=>{var c;return{runId:i.attributes.workflowExecution.runId,workflowId:i.attributes.workflowExecution.workflowId,type:i.attributes.workflowType,status:i.classification,namespace:((c=i.attributes)===null||c===void 0?void 0:c.namespace)||f}})),o.$$.dirty&48&&l(0,n=[...t,...r])},[n,s,a,f,r,t]}class Fn extends $e{constructor(e){super(),pe(this,e,Pn,Wn,_e,{children:1,pendingChildren:2,namespace:3})}}function ll(o){let e,l;return e=new He({props:{href:Ce({namespace:o[1],workflow:o[0],run:o[2]}),$$slots:{default:[On]},$$scope:{ctx:o}}}),{c(){b(e.$$.fragment)},l(t){I(e.$$.fragment,t)},m(t,r){E(e,t,r),l=!0},p(t,r){const n={};r&7&&(n.href=Ce({namespace:t[1],workflow:t[0],run:t[2]})),r&36&&(n.$$scope={dirty:r,ctx:t}),e.$set(n)},i(t){l||($(e.$$.fragment,t),l=!0)},o(t){_(e.$$.fragment,t),l=!1},d(t){y(e,t)}}}function On(o){let e,l;return e=new Je({props:{copyIconTitle:v("common.copy-icon-title"),copySuccessIconTitle:v("common.copy-success-icon-title"),content:o[2],visible:!0}}),{c(){b(e.$$.fragment)},l(t){I(e.$$.fragment,t)},m(t,r){E(e,t,r),l=!0},p(t,r){const n={};r&4&&(n.content=t[2]),e.$set(n)},i(t){l||($(e.$$.fragment,t),l=!0)},o(t){_(e.$$.fragment,t),l=!1},d(t){y(e,t)}}}function rl(o){let e,l;return e=new He({props:{href:Ce({namespace:o[1],workflow:o[0],run:o[4]}),$$slots:{default:[Bn]},$$scope:{ctx:o}}}),{c(){b(e.$$.fragment)},l(t){I(e.$$.fragment,t)},m(t,r){E(e,t,r),l=!0},p(t,r){const n={};r&19&&(n.href=Ce({namespace:t[1],workflow:t[0],run:t[4]})),r&48&&(n.$$scope={dirty:r,ctx:t}),e.$set(n)},i(t){l||($(e.$$.fragment,t),l=!0)},o(t){_(e.$$.fragment,t),l=!1},d(t){y(e,t)}}}function Bn(o){let e,l;return e=new Je({props:{copyIconTitle:v("common.copy-icon-title"),copySuccessIconTitle:v("common.copy-success-icon-title"),content:o[4],visible:!0}}),{c(){b(e.$$.fragment)},l(t){I(e.$$.fragment,t)},m(t,r){E(e,t,r),l=!0},p(t,r){const n={};r&16&&(n.content=t[4]),e.$set(n)},i(t){l||($(e.$$.fragment,t),l=!0)},o(t){_(e.$$.fragment,t),l=!1},d(t){y(e,t)}}}function nl(o){let e,l;return e=new He({props:{href:Ce({namespace:o[1],workflow:o[0],run:o[3]}),$$slots:{default:[Rn]},$$scope:{ctx:o}}}),{c(){b(e.$$.fragment)},l(t){I(e.$$.fragment,t)},m(t,r){E(e,t,r),l=!0},p(t,r){const n={};r&11&&(n.href=Ce({namespace:t[1],workflow:t[0],run:t[3]})),r&40&&(n.$$scope={dirty:r,ctx:t}),e.$set(n)},i(t){l||($(e.$$.fragment,t),l=!0)},o(t){_(e.$$.fragment,t),l=!1},d(t){y(e,t)}}}function Rn(o){let e,l;return e=new Je({props:{copyIconTitle:v("common.copy-icon-title"),copySuccessIconTitle:v("common.copy-success-icon-title"),content:o[3],visible:!0}}),{c(){b(e.$$.fragment)},l(t){I(e.$$.fragment,t)},m(t,r){E(e,t,r),l=!0},p(t,r){const n={};r&8&&(n.content=t[3]),e.$set(n)},i(t){l||($(e.$$.fragment,t),l=!0)},o(t){_(e.$$.fragment,t),l=!1},d(t){y(e,t)}}}function jn(o){let e,l,t,r,n,s,a=o[2]&&ll(o),f=o[4]&&rl(o),i=o[3]&&nl(o);return{c(){e=N("td"),a&&a.c(),l=H(),t=N("td"),f&&f.c(),r=H(),n=N("td"),i&&i.c(),this.h()},l(c){e=S(c,"TD",{class:!0});var m=C(e);a&&a.l(m),m.forEach(u),l=W(c),t=S(c,"TD",{class:!0});var p=C(t);f&&f.l(p),p.forEach(u),r=W(c),n=S(c,"TD",{class:!0});var D=C(n);i&&i.l(D),D.forEach(u),this.h()},h(){T(e,"class","w-1/3 hover:text-blue-700 hover:underline"),T(t,"class","w-1/3 hover:text-blue-700 hover:underline"),T(n,"class","w-1/3 hover:text-blue-700 hover:underline")},m(c,m){w(c,e,m),a&&a.m(e,null),w(c,l,m),w(c,t,m),f&&f.m(t,null),w(c,r,m),w(c,n,m),i&&i.m(n,null),s=!0},p(c,m){c[2]?a?(a.p(c,m),m&4&&$(a,1)):(a=ll(c),a.c(),$(a,1),a.m(e,null)):a&&(G(),_(a,1,1,()=>{a=null}),J()),c[4]?f?(f.p(c,m),m&16&&$(f,1)):(f=rl(c),f.c(),$(f,1),f.m(t,null)):f&&(G(),_(f,1,1,()=>{f=null}),J()),c[3]?i?(i.p(c,m),m&8&&$(i,1)):(i=nl(c),i.c(),$(i,1),i.m(n,null)):i&&(G(),_(i,1,1,()=>{i=null}),J())},i(c){s||($(a),$(f),$(i),s=!0)},o(c){_(a),_(f),_(i),s=!1},d(c){c&&u(e),a&&a.d(),c&&u(l),c&&u(t),f&&f.d(),c&&u(r),c&&u(n),i&&i.d()}}}function zn(o){let e,l;return e=new dt({props:{$$slots:{default:[jn]},$$scope:{ctx:o}}}),{c(){b(e.$$.fragment)},l(t){I(e.$$.fragment,t)},m(t,r){E(e,t,r),l=!0},p(t,r){const n={};r&63&&(n.$$scope={dirty:r,ctx:t}),e.$set(n)},i(t){l||($(e.$$.fragment,t),l=!0)},o(t){_(e.$$.fragment,t),l=!1},d(t){y(e,t)}}}function Ln(o){let e,l=v("workflows.relationships")+"",t;return{c(){e=N("caption"),t=F(l),this.h()},l(r){e=S(r,"CAPTION",{class:!0,slot:!0});var n=C(e);t=O(n,l),n.forEach(u),this.h()},h(){T(e,"class","sr-only"),T(e,"slot","caption")},m(r,n){w(r,e,n),d(e,t)},p:X,d(r){r&&u(e)}}}function Mn(o){let e,l=v("workflows.first-execution")+"",t,r,n,s=v("workflows.previous-execution")+"",a,f,i,c=v("workflows.next-execution")+"",m;return{c(){e=N("th"),t=F(l),r=H(),n=N("th"),a=F(s),f=H(),i=N("th"),m=F(c)},l(p){e=S(p,"TH",{});var D=C(e);t=O(D,l),D.forEach(u),r=W(p),n=S(p,"TH",{});var P=C(n);a=O(P,s),P.forEach(u),f=W(p),i=S(p,"TH",{});var h=C(i);m=O(h,c),h.forEach(u)},m(p,D){w(p,e,D),d(e,t),w(p,r,D),w(p,n,D),d(n,a),w(p,f,D),w(p,i,D),d(i,m)},p:X,d(p){p&&u(e),p&&u(r),p&&u(n),p&&u(f),p&&u(i)}}}function Qn(o){let e,l;return e=new it({props:{slot:"headers",$$slots:{default:[Mn]},$$scope:{ctx:o}}}),{c(){b(e.$$.fragment)},l(t){I(e.$$.fragment,t)},m(t,r){E(e,t,r),l=!0},p(t,r){const n={};r&32&&(n.$$scope={dirty:r,ctx:t}),e.$set(n)},i(t){l||($(e.$$.fragment,t),l=!0)},o(t){_(e.$$.fragment,t),l=!1},d(t){y(e,t)}}}function Un(o){let e,l;return e=new ft({props:{class:"w-full",$$slots:{headers:[Qn],caption:[Ln],default:[zn]},$$scope:{ctx:o}}}),{c(){b(e.$$.fragment)},l(t){I(e.$$.fragment,t)},m(t,r){E(e,t,r),l=!0},p(t,[r]){const n={};r&63&&(n.$$scope={dirty:r,ctx:t}),e.$set(n)},i(t){l||($(e.$$.fragment,t),l=!0)},o(t){_(e.$$.fragment,t),l=!1},d(t){y(e,t)}}}function qn(o,e,l){let{workflow:t}=e,{namespace:r}=e,{first:n}=e,{next:s}=e,{previous:a}=e;return o.$$set=f=>{"workflow"in f&&l(0,t=f.workflow),"namespace"in f&&l(1,r=f.namespace),"first"in f&&l(2,n=f.first),"next"in f&&l(3,s=f.next),"previous"in f&&l(4,a=f.previous)},[t,r,n,s,a]}class Kn extends $e{constructor(e){super(),pe(this,e,qn,Un,_e,{workflow:0,namespace:1,first:2,next:3,previous:4})}}function Gn(o){let e,l;return e=new Je({props:{copyIconTitle:v("common.copy-icon-title"),copySuccessIconTitle:v("common.copy-success-icon-title"),content:o[0].workflowId,visible:!0}}),{c(){b(e.$$.fragment)},l(t){I(e.$$.fragment,t)},m(t,r){E(e,t,r),l=!0},p(t,r){const n={};r&1&&(n.content=t[0].workflowId),e.$set(n)},i(t){l||($(e.$$.fragment,t),l=!0)},o(t){_(e.$$.fragment,t),l=!1},d(t){y(e,t)}}}function Jn(o){let e,l;return e=new Je({props:{copyIconTitle:v("common.copy-icon-title"),copySuccessIconTitle:v("common.copy-success-icon-title"),content:o[0].runId,visible:!0}}),{c(){b(e.$$.fragment)},l(t){I(e.$$.fragment,t)},m(t,r){E(e,t,r),l=!0},p(t,r){const n={};r&1&&(n.content=t[0].runId),e.$set(n)},i(t){l||($(e.$$.fragment,t),l=!0)},o(t){_(e.$$.fragment,t),l=!1},d(t){y(e,t)}}}function Xn(o){let e,l,t,r,n,s;return l=new He({props:{href:Ce({namespace:o[1]??o[2],workflow:o[0].workflowId,run:o[0].runId}),$$slots:{default:[Gn]},$$scope:{ctx:o}}}),n=new He({props:{href:Ce({namespace:o[1]??o[2],workflow:o[0].workflowId,run:o[0].runId}),$$slots:{default:[Jn]},$$scope:{ctx:o}}}),{c(){e=N("td"),b(l.$$.fragment),t=H(),r=N("td"),b(n.$$.fragment)},l(a){e=S(a,"TD",{});var f=C(e);I(l.$$.fragment,f),f.forEach(u),t=W(a),r=S(a,"TD",{});var i=C(r);I(n.$$.fragment,i),i.forEach(u)},m(a,f){w(a,e,f),E(l,e,null),w(a,t,f),w(a,r,f),E(n,r,null),s=!0},p(a,f){const i={};f&7&&(i.href=Ce({namespace:a[1]??a[2],workflow:a[0].workflowId,run:a[0].runId})),f&9&&(i.$$scope={dirty:f,ctx:a}),l.$set(i);const c={};f&7&&(c.href=Ce({namespace:a[1]??a[2],workflow:a[0].workflowId,run:a[0].runId})),f&9&&(c.$$scope={dirty:f,ctx:a}),n.$set(c)},i(a){s||($(l.$$.fragment,a),$(n.$$.fragment,a),s=!0)},o(a){_(l.$$.fragment,a),_(n.$$.fragment,a),s=!1},d(a){a&&u(e),y(l),a&&u(t),a&&u(r),y(n)}}}function Yn(o){let e,l;return e=new dt({props:{class:"hover:text-blue-700 hover:underline",$$slots:{default:[Xn]},$$scope:{ctx:o}}}),{c(){b(e.$$.fragment)},l(t){I(e.$$.fragment,t)},m(t,r){E(e,t,r),l=!0},p(t,r){const n={};r&15&&(n.$$scope={dirty:r,ctx:t}),e.$set(n)},i(t){l||($(e.$$.fragment,t),l=!0)},o(t){_(e.$$.fragment,t),l=!1},d(t){y(e,t)}}}function Zn(o){let e,l=v("workflows.parent-workflow")+"",t;return{c(){e=N("caption"),t=F(l),this.h()},l(r){e=S(r,"CAPTION",{class:!0,slot:!0});var n=C(e);t=O(n,l),n.forEach(u),this.h()},h(){T(e,"class","sr-only"),T(e,"slot","caption")},m(r,n){w(r,e,n),d(e,t)},p:X,d(r){r&&u(e)}}}function xn(o){let e,l=v("workflows.parent-id")+"",t,r,n,s=v("workflows.parent-run-id")+"",a;return{c(){e=N("th"),t=F(l),r=H(),n=N("th"),a=F(s)},l(f){e=S(f,"TH",{});var i=C(e);t=O(i,l),i.forEach(u),r=W(f),n=S(f,"TH",{});var c=C(n);a=O(c,s),c.forEach(u)},m(f,i){w(f,e,i),d(e,t),w(f,r,i),w(f,n,i),d(n,a)},p:X,d(f){f&&u(e),f&&u(r),f&&u(n)}}}function eo(o){let e,l;return e=new it({props:{slot:"headers",$$slots:{default:[xn]},$$scope:{ctx:o}}}),{c(){b(e.$$.fragment)},l(t){I(e.$$.fragment,t)},m(t,r){E(e,t,r),l=!0},p(t,r){const n={};r&8&&(n.$$scope={dirty:r,ctx:t}),e.$set(n)},i(t){l||($(e.$$.fragment,t),l=!0)},o(t){_(e.$$.fragment,t),l=!1},d(t){y(e,t)}}}function to(o){let e,l;return e=new ft({props:{class:"w-full",$$slots:{headers:[eo],caption:[Zn],default:[Yn]},$$scope:{ctx:o}}}),{c(){b(e.$$.fragment)},l(t){I(e.$$.fragment,t)},m(t,r){E(e,t,r),l=!0},p(t,[r]){const n={};r&15&&(n.$$scope={dirty:r,ctx:t}),e.$set(n)},i(t){l||($(e.$$.fragment,t),l=!0)},o(t){_(e.$$.fragment,t),l=!1},d(t){y(e,t)}}}function lo(o,e,l){let{parent:t}=e,{parentNamespaceName:r}=e,{namespace:n}=e;return o.$$set=s=>{"parent"in s&&l(0,t=s.parent),"parentNamespaceName"in s&&l(1,r=s.parentNamespaceName),"namespace"in s&&l(2,n=s.namespace)},[t,r,n]}class ro extends $e{constructor(e){super(),pe(this,e,lo,to,_e,{parent:0,parentNamespaceName:1,namespace:2})}}function no(o){let e,l;return e=new Je({props:{copyIconTitle:v("common.copy-icon-title"),copySuccessIconTitle:v("common.copy-success-icon-title"),content:o[0],visible:!0}}),{c(){b(e.$$.fragment)},l(t){I(e.$$.fragment,t)},m(t,r){E(e,t,r),l=!0},p(t,r){const n={};r&1&&(n.content=t[0]),e.$set(n)},i(t){l||($(e.$$.fragment,t),l=!0)},o(t){_(e.$$.fragment,t),l=!1},d(t){y(e,t)}}}function oo(o){let e,l,t;return l=new He({props:{href:Wt({namespace:o[1],scheduleId:o[0]}),$$slots:{default:[no]},$$scope:{ctx:o}}}),{c(){e=N("td"),b(l.$$.fragment)},l(r){e=S(r,"TD",{});var n=C(e);I(l.$$.fragment,n),n.forEach(u)},m(r,n){w(r,e,n),E(l,e,null),t=!0},p(r,n){const s={};n&3&&(s.href=Wt({namespace:r[1],scheduleId:r[0]})),n&5&&(s.$$scope={dirty:n,ctx:r}),l.$set(s)},i(r){t||($(l.$$.fragment,r),t=!0)},o(r){_(l.$$.fragment,r),t=!1},d(r){r&&u(e),y(l)}}}function so(o){let e,l;return e=new dt({props:{class:"hover:text-blue-700 hover:underline",$$slots:{default:[oo]},$$scope:{ctx:o}}}),{c(){b(e.$$.fragment)},l(t){I(e.$$.fragment,t)},m(t,r){E(e,t,r),l=!0},p(t,r){const n={};r&7&&(n.$$scope={dirty:r,ctx:t}),e.$set(n)},i(t){l||($(e.$$.fragment,t),l=!0)},o(t){_(e.$$.fragment,t),l=!1},d(t){y(e,t)}}}function ao(o){let e,l=v("schedules.schedule")+"",t;return{c(){e=N("caption"),t=F(l),this.h()},l(r){e=S(r,"CAPTION",{class:!0,slot:!0});var n=C(e);t=O(n,l),n.forEach(u),this.h()},h(){T(e,"class","sr-only"),T(e,"slot","caption")},m(r,n){w(r,e,n),d(e,t)},p:X,d(r){r&&u(e)}}}function fo(o){let e,l=v("schedules.schedule")+"",t;return{c(){e=N("th"),t=F(l)},l(r){e=S(r,"TH",{});var n=C(e);t=O(n,l),n.forEach(u)},m(r,n){w(r,e,n),d(e,t)},p:X,d(r){r&&u(e)}}}function io(o){let e,l;return e=new it({props:{slot:"headers",$$slots:{default:[fo]},$$scope:{ctx:o}}}),{c(){b(e.$$.fragment)},l(t){I(e.$$.fragment,t)},m(t,r){E(e,t,r),l=!0},p(t,r){const n={};r&4&&(n.$$scope={dirty:r,ctx:t}),e.$set(n)},i(t){l||($(e.$$.fragment,t),l=!0)},o(t){_(e.$$.fragment,t),l=!1},d(t){y(e,t)}}}function co(o){let e,l;return e=new ft({props:{class:"w-full",$$slots:{headers:[io],caption:[ao],default:[so]},$$scope:{ctx:o}}}),{c(){b(e.$$.fragment)},l(t){I(e.$$.fragment,t)},m(t,r){E(e,t,r),l=!0},p(t,[r]){const n={};r&7&&(n.$$scope={dirty:r,ctx:t}),e.$set(n)},i(t){l||($(e.$$.fragment,t),l=!0)},o(t){_(e.$$.fragment,t),l=!1},d(t){y(e,t)}}}function uo(o,e,l){let{scheduleId:t}=e,{namespace:r}=e;return o.$$set=n=>{"scheduleId"in n&&l(0,t=n.scheduleId),"namespace"in n&&l(1,r=n.namespace)},[t,r]}class mo extends $e{constructor(e){super(),pe(this,e,uo,co,_e,{scheduleId:0,namespace:1})}}function $o(o){let e,l=v("workflows.no-relationships")+"",t;return{c(){e=N("p"),t=F(l)},l(r){e=S(r,"P",{});var n=C(e);t=O(n,l),n.forEach(u)},m(r,n){w(r,e,n),d(e,t)},p:X,i:X,o:X,d(r){r&&u(e)}}}function po(o){let e,l,t,r,n,s,a=o[8]&&ol(o),f=o[3]&&sl(o),i=(o[2]||o[7]||o[6])&&al(o),c=o[0]&&fl(o);return{c(){e=N("div"),a&&a.c(),l=H(),f&&f.c(),t=H(),i&&i.c(),r=H(),c&&c.c(),n=se(),this.h()},l(m){e=S(m,"DIV",{class:!0});var p=C(e);a&&a.l(p),l=W(p),f&&f.l(p),t=W(p),i&&i.l(p),p.forEach(u),r=W(m),c&&c.l(m),n=se(),this.h()},h(){T(e,"class","flex w-full flex-wrap gap-4")},m(m,p){w(m,e,p),a&&a.m(e,null),d(e,l),f&&f.m(e,null),d(e,t),i&&i.m(e,null),w(m,r,p),c&&c.m(m,p),w(m,n,p),s=!0},p(m,p){m[8]?a?(a.p(m,p),p&256&&$(a,1)):(a=ol(m),a.c(),$(a,1),a.m(e,l)):a&&(G(),_(a,1,1,()=>{a=null}),J()),m[3]?f?(f.p(m,p),p&8&&$(f,1)):(f=sl(m),f.c(),$(f,1),f.m(e,t)):f&&(G(),_(f,1,1,()=>{f=null}),J()),m[2]||m[7]||m[6]?i?(i.p(m,p),p&196&&$(i,1)):(i=al(m),i.c(),$(i,1),i.m(e,null)):i&&(G(),_(i,1,1,()=>{i=null}),J()),m[0]?c?(c.p(m,p),p&1&&$(c,1)):(c=fl(m),c.c(),$(c,1),c.m(n.parentNode,n)):c&&(G(),_(c,1,1,()=>{c=null}),J())},i(m){s||($(a),$(f),$(i),$(c),s=!0)},o(m){_(a),_(f),_(i),_(c),s=!1},d(m){m&&u(e),a&&a.d(),f&&f.d(),i&&i.d(),m&&u(r),c&&c.d(m),m&&u(n)}}}function ol(o){let e,l;return e=new mo({props:{scheduleId:o[8],namespace:o[10]}}),{c(){b(e.$$.fragment)},l(t){I(e.$$.fragment,t)},m(t,r){E(e,t,r),l=!0},p(t,r){const n={};r&256&&(n.scheduleId=t[8]),r&1024&&(n.namespace=t[10]),e.$set(n)},i(t){l||($(e.$$.fragment,t),l=!0)},o(t){_(e.$$.fragment,t),l=!1},d(t){y(e,t)}}}function sl(o){let e,l;return e=new ro({props:{parent:o[3],parentNamespaceName:o[4],namespace:o[10]}}),{c(){b(e.$$.fragment)},l(t){I(e.$$.fragment,t)},m(t,r){E(e,t,r),l=!0},p(t,r){const n={};r&8&&(n.parent=t[3]),r&16&&(n.parentNamespaceName=t[4]),r&1024&&(n.namespace=t[10]),e.$set(n)},i(t){l||($(e.$$.fragment,t),l=!0)},o(t){_(e.$$.fragment,t),l=!1},d(t){y(e,t)}}}function al(o){let e,l;return e=new Kn({props:{first:o[2],previous:o[7],next:o[6],workflow:o[11],namespace:o[10]}}),{c(){b(e.$$.fragment)},l(t){I(e.$$.fragment,t)},m(t,r){E(e,t,r),l=!0},p(t,r){const n={};r&4&&(n.first=t[2]),r&128&&(n.previous=t[7]),r&64&&(n.next=t[6]),r&2048&&(n.workflow=t[11]),r&1024&&(n.namespace=t[10]),e.$set(n)},i(t){l||($(e.$$.fragment,t),l=!0)},o(t){_(e.$$.fragment,t),l=!1},d(t){y(e,t)}}}function fl(o){let e,l;return e=new Fn({props:{children:o[5],pendingChildren:o[12].workflow.pendingChildren,namespace:o[9].params.namespace}}),{c(){b(e.$$.fragment)},l(t){I(e.$$.fragment,t)},m(t,r){E(e,t,r),l=!0},p(t,r){const n={};r&32&&(n.children=t[5]),r&4096&&(n.pendingChildren=t[12].workflow.pendingChildren),r&512&&(n.namespace=t[9].params.namespace),e.$set(n)},i(t){l||($(e.$$.fragment,t),l=!0)},o(t){_(e.$$.fragment,t),l=!1},d(t){y(e,t)}}}function _o(o){let e,l,t,r;const n=[po,$o],s=[];function a(f,i){return f[1]?0:1}return e=a(o),l=s[e]=n[e](o),{c(){l.c(),t=se()},l(f){l.l(f),t=se()},m(f,i){s[e].m(f,i),w(f,t,i),r=!0},p(f,i){let c=e;e=a(f),e===c?s[e].p(f,i):(G(),_(s[c],1,1,()=>{s[c]=null}),J(),l=s[e],l?l.p(f,i):(l=s[e]=n[e](f),l.c()),$(l,1),l.m(t.parentNode,t))},i(f){r||($(l),r=!0)},o(f){_(l),r=!1},d(f){s[e].d(f),f&&u(t)}}}function il(o){let e,l;return e=new Te({props:{type:"purple",$$slots:{default:[go]},$$scope:{ctx:o}}}),{c(){b(e.$$.fragment)},l(t){I(e.$$.fragment,t)},m(t,r){E(e,t,r),l=!0},p(t,r){const n={};r&8192&&(n.$$scope={dirty:r,ctx:t}),e.$set(n)},i(t){l||($(e.$$.fragment,t),l=!0)},o(t){_(e.$$.fragment,t),l=!1},d(t){y(e,t)}}}function go(o){let e=v("common.scheduled")+"",l;return{c(){l=F(e)},l(t){l=O(t,e)},m(t,r){w(t,l,r)},p:X,d(t){t&&u(l)}}}function ho(o){let e=v("workflows.parents",{count:o[3]?1:0})+"",l;return{c(){l=F(e)},l(t){l=O(t,e)},m(t,r){w(t,l,r)},p(t,r){r&8&&e!==(e=v("workflows.parents",{count:t[3]?1:0})+"")&&ee(l,e)},d(t){t&&u(l)}}}function wo(o){let e=v("workflows.pending-children",{count:o[12].workflow.pendingChildren.length})+"",l;return{c(){l=F(e)},l(t){l=O(t,e)},m(t,r){w(t,l,r)},p(t,r){r&4096&&e!==(e=v("workflows.pending-children",{count:t[12].workflow.pendingChildren.length})+"")&&ee(l,e)},d(t){t&&u(l)}}}function vo(o){let e=v("workflows.children",{count:o[5].length})+"",l;return{c(){l=F(e)},l(t){l=O(t,e)},m(t,r){w(t,l,r)},p(t,r){r&32&&e!==(e=v("workflows.children",{count:t[5].length})+"")&&ee(l,e)},d(t){t&&u(l)}}}function ko(o){let e=v("workflows.first",{count:o[2]?1:0})+"",l;return{c(){l=F(e)},l(t){l=O(t,e)},m(t,r){w(t,l,r)},p(t,r){r&4&&e!==(e=v("workflows.first",{count:t[2]?1:0})+"")&&ee(l,e)},d(t){t&&u(l)}}}function bo(o){let e=v("workflows.previous",{count:o[7]?1:0})+"",l;return{c(){l=F(e)},l(t){l=O(t,e)},m(t,r){w(t,l,r)},p(t,r){r&128&&e!==(e=v("workflows.previous",{count:t[7]?1:0})+"")&&ee(l,e)},d(t){t&&u(l)}}}function Eo(o){let e=v("workflows.next",{count:o[6]?1:0})+"",l;return{c(){l=F(e)},l(t){l=O(t,e)},m(t,r){w(t,l,r)},p(t,r){r&64&&e!==(e=v("workflows.next",{count:t[6]?1:0})+"")&&ee(l,e)},d(t){t&&u(l)}}}function yo(o){let e,l,t,r,n,s,a,f,i,c,m,p,D,P,h=o[8]&&il(o);return t=new Te({props:{type:o[3]?"purple":"gray",$$slots:{default:[ho]},$$scope:{ctx:o}}}),n=new Te({props:{type:o[12].workflow.pendingChildren.length?"purple":"gray",$$slots:{default:[wo]},$$scope:{ctx:o}}}),a=new Te({props:{type:o[5].length?"purple":"gray",$$slots:{default:[vo]},$$scope:{ctx:o}}}),i=new Te({props:{type:o[2]?"purple":"gray",$$slots:{default:[ko]},$$scope:{ctx:o}}}),m=new Te({props:{type:o[7]?"purple":"gray",$$slots:{default:[bo]},$$scope:{ctx:o}}}),D=new Te({props:{type:o[6]?"purple":"gray",$$slots:{default:[Eo]},$$scope:{ctx:o}}}),{c(){e=N("div"),h&&h.c(),l=H(),b(t.$$.fragment),r=H(),b(n.$$.fragment),s=H(),b(a.$$.fragment),f=H(),b(i.$$.fragment),c=H(),b(m.$$.fragment),p=H(),b(D.$$.fragment),this.h()},l(g){e=S(g,"DIV",{slot:!0,class:!0});var k=C(e);h&&h.l(k),l=W(k),I(t.$$.fragment,k),r=W(k),I(n.$$.fragment,k),s=W(k),I(a.$$.fragment,k),f=W(k),I(i.$$.fragment,k),c=W(k),I(m.$$.fragment,k),p=W(k),I(D.$$.fragment,k),k.forEach(u),this.h()},h(){T(e,"slot","summary"),T(e,"class","hidden flex-row gap-2 lg:flex")},m(g,k){w(g,e,k),h&&h.m(e,null),d(e,l),E(t,e,null),d(e,r),E(n,e,null),d(e,s),E(a,e,null),d(e,f),E(i,e,null),d(e,c),E(m,e,null),d(e,p),E(D,e,null),P=!0},p(g,k){g[8]?h?(h.p(g,k),k&256&&$(h,1)):(h=il(g),h.c(),$(h,1),h.m(e,l)):h&&(G(),_(h,1,1,()=>{h=null}),J());const R={};k&8&&(R.type=g[3]?"purple":"gray"),k&8200&&(R.$$scope={dirty:k,ctx:g}),t.$set(R);const q={};k&4096&&(q.type=g[12].workflow.pendingChildren.length?"purple":"gray"),k&12288&&(q.$$scope={dirty:k,ctx:g}),n.$set(q);const Y={};k&32&&(Y.type=g[5].length?"purple":"gray"),k&8224&&(Y.$$scope={dirty:k,ctx:g}),a.$set(Y);const ae={};k&4&&(ae.type=g[2]?"purple":"gray"),k&8196&&(ae.$$scope={dirty:k,ctx:g}),i.$set(ae);const j={};k&128&&(j.type=g[7]?"purple":"gray"),k&8320&&(j.$$scope={dirty:k,ctx:g}),m.$set(j);const K={};k&64&&(K.type=g[6]?"purple":"gray"),k&8256&&(K.$$scope={dirty:k,ctx:g}),D.$set(K)},i(g){P||($(h),$(t.$$.fragment,g),$(n.$$.fragment,g),$(a.$$.fragment,g),$(i.$$.fragment,g),$(m.$$.fragment,g),$(D.$$.fragment,g),P=!0)},o(g){_(h),_(t.$$.fragment,g),_(n.$$.fragment,g),_(a.$$.fragment,g),_(i.$$.fragment,g),_(m.$$.fragment,g),_(D.$$.fragment,g),P=!1},d(g){g&&u(e),h&&h.d(),y(t),y(n),y(a),y(i),y(m),y(D)}}}function Io(o){let e,l,t;return l=new ot({props:{title:v("workflows.relationships"),"data-testid":"relationships-accordion",icon:"relationship",$$slots:{summary:[yo],default:[_o]},$$scope:{ctx:o}}}),{c(){e=N("section"),b(l.$$.fragment)},l(r){e=S(r,"SECTION",{});var n=C(e);I(l.$$.fragment,n),n.forEach(u)},m(r,n){w(r,e,n),E(l,e,null),t=!0},p(r,[n]){const s={};n&16383&&(s.$$scope={dirty:n,ctx:r}),l.$set(s)},i(r){t||($(l.$$.fragment,r),t=!0)},o(r){_(l.$$.fragment,r),t=!1},d(r){r&&u(e),y(l)}}}function To(o,e,l){let t,r,n,s;le(o,Ge,g=>l(9,n=g)),le(o,at,g=>l(12,s=g));let{hasChildren:a}=e,{hasRelationships:f}=e,{first:i}=e,{parent:c}=e,{parentNamespaceName:m}=e,{children:p}=e,{next:D}=e,{previous:P}=e,{scheduleId:h}=e;return o.$$set=g=>{"hasChildren"in g&&l(0,a=g.hasChildren),"hasRelationships"in g&&l(1,f=g.hasRelationships),"first"in g&&l(2,i=g.first),"parent"in g&&l(3,c=g.parent),"parentNamespaceName"in g&&l(4,m=g.parentNamespaceName),"children"in g&&l(5,p=g.children),"next"in g&&l(6,D=g.next),"previous"in g&&l(7,P=g.previous),"scheduleId"in g&&l(8,h=g.scheduleId)},o.$$.update=()=>{o.$$.dirty&512&&l(11,{workflow:t,namespace:r}=n.params,t,(l(10,r),l(9,n)))},[a,f,i,c,m,p,D,P,h,n,r,t,s]}class Co extends $e{constructor(e){super(),pe(this,e,To,Io,_e,{hasChildren:0,hasRelationships:1,first:2,parent:3,parentNamespaceName:4,children:5,next:6,previous:7,scheduleId:8})}}function Do(o){let e,l,t,r,n,s,a=o[5]&&cl(o),f=o[0]&&ul(o);const i=[So,No],c=[];function m(p,D){return p[3]?0:1}return t=m(o),r=c[t]=i[t](o),{c(){a&&a.c(),e=H(),f&&f.c(),l=H(),r.c(),n=se()},l(p){a&&a.l(p),e=W(p),f&&f.l(p),l=W(p),r.l(p),n=se()},m(p,D){a&&a.m(p,D),w(p,e,D),f&&f.m(p,D),w(p,l,D),c[t].m(p,D),w(p,n,D),s=!0},p(p,D){p[5]?a?(a.p(p,D),D&32&&$(a,1)):(a=cl(p),a.c(),$(a,1),a.m(e.parentNode,e)):a&&(G(),_(a,1,1,()=>{a=null}),J()),p[0]?f?f.p(p,D):(f=ul(p),f.c(),f.m(l.parentNode,l)):f&&(f.d(1),f=null);let P=t;t=m(p),t===P?c[t].p(p,D):(G(),_(c[P],1,1,()=>{c[P]=null}),J(),r=c[t],r?r.p(p,D):(r=c[t]=i[t](p),r.c()),$(r,1),r.m(n.parentNode,n))},i(p){s||($(a),$(r),s=!0)},o(p){_(a),_(r),s=!1},d(p){a&&a.d(p),p&&u(e),f&&f.d(p),p&&u(l),c[t].d(p),p&&u(n)}}}function Ao(o){let e,l;return e=new Je({props:{copyIconTitle:v("common.copy-icon-title"),copySuccessIconTitle:v("common.copy-success-icon-title"),content:o[1],visible:!0,"container-class":"gap-1 w-full",$$slots:{default:[Fo]},$$scope:{ctx:o}}}),{c(){b(e.$$.fragment)},l(t){I(e.$$.fragment,t)},m(t,r){E(e,t,r),l=!0},p(t,r){const n={};r&2&&(n.content=t[1]),r&107&&(n.$$scope={dirty:r,ctx:t}),e.$set(n)},i(t){l||($(e.$$.fragment,t),l=!0)},o(t){_(e.$$.fragment,t),l=!1},d(t){y(e,t)}}}function cl(o){let e,l;return e=new st({props:{name:o[5]}}),{c(){b(e.$$.fragment)},l(t){I(e.$$.fragment,t)},m(t,r){E(e,t,r),l=!0},p(t,r){const n={};r&32&&(n.name=t[5]),e.$set(n)},i(t){l||($(e.$$.fragment,t),l=!0)},o(t){_(e.$$.fragment,t),l=!1},d(t){y(e,t)}}}function ul(o){let e;return{c(){e=F(o[0])},l(l){e=O(l,o[0])},m(l,t){w(l,e,t)},p(l,t){t&1&&ee(e,l[0])},d(l){l&&u(e)}}}function No(o){let e,l;return{c(){e=N("span"),l=F(o[1]),this.h()},l(t){e=S(t,"SPAN",{class:!0});var r=C(e);l=O(r,o[1]),r.forEach(u),this.h()},h(){T(e,"class","value select-all svelte-1wf2pbe")},m(t,r){w(t,e,r),d(e,l)},p(t,r){r&2&&ee(l,t[1])},i:X,o:X,d(t){t&&u(e)}}}function So(o){let e,l;return e=new He({props:{href:o[3],class:"value",$$slots:{default:[Vo]},$$scope:{ctx:o}}}),{c(){b(e.$$.fragment)},l(t){I(e.$$.fragment,t)},m(t,r){E(e,t,r),l=!0},p(t,r){const n={};r&8&&(n.href=t[3]),r&66&&(n.$$scope={dirty:r,ctx:t}),e.$set(n)},i(t){l||($(e.$$.fragment,t),l=!0)},o(t){_(e.$$.fragment,t),l=!1},d(t){y(e,t)}}}function Vo(o){let e;return{c(){e=F(o[1])},l(l){e=O(l,o[1])},m(l,t){w(l,e,t)},p(l,t){t&2&&ee(e,l[1])},d(l){l&&u(e)}}}function ml(o){let e,l;return e=new st({props:{name:o[5]}}),{c(){b(e.$$.fragment)},l(t){I(e.$$.fragment,t)},m(t,r){E(e,t,r),l=!0},p(t,r){const n={};r&32&&(n.name=t[5]),e.$set(n)},i(t){l||($(e.$$.fragment,t),l=!0)},o(t){_(e.$$.fragment,t),l=!1},d(t){y(e,t)}}}function $l(o){let e;return{c(){e=F(o[0])},l(l){e=O(l,o[0])},m(l,t){w(l,e,t)},p(l,t){t&1&&ee(e,l[0])},d(l){l&&u(e)}}}function Ho(o){let e,l;return{c(){e=N("span"),l=F(o[1]),this.h()},l(t){e=S(t,"SPAN",{class:!0});var r=C(e);l=O(r,o[1]),r.forEach(u),this.h()},h(){T(e,"class","value select-all svelte-1wf2pbe")},m(t,r){w(t,e,r),d(e,l)},p(t,r){r&2&&ee(l,t[1])},i:X,o:X,d(t){t&&u(e)}}}function Wo(o){let e,l;return e=new He({props:{href:o[3],class:"value",$$slots:{default:[Po]},$$scope:{ctx:o}}}),{c(){b(e.$$.fragment)},l(t){I(e.$$.fragment,t)},m(t,r){E(e,t,r),l=!0},p(t,r){const n={};r&8&&(n.href=t[3]),r&66&&(n.$$scope={dirty:r,ctx:t}),e.$set(n)},i(t){l||($(e.$$.fragment,t),l=!0)},o(t){_(e.$$.fragment,t),l=!1},d(t){y(e,t)}}}function Po(o){let e;return{c(){e=F(o[1])},l(l){e=O(l,o[1])},m(l,t){w(l,e,t)},p(l,t){t&2&&ee(e,l[1])},d(l){l&&u(e)}}}function Fo(o){let e,l,t,r,n,s,a=o[5]&&ml(o),f=o[0]&&$l(o);const i=[Wo,Ho],c=[];function m(p,D){return p[3]?0:1}return t=m(o),r=c[t]=i[t](o),{c(){a&&a.c(),e=H(),f&&f.c(),l=H(),r.c(),n=se()},l(p){a&&a.l(p),e=W(p),f&&f.l(p),l=W(p),r.l(p),n=se()},m(p,D){a&&a.m(p,D),w(p,e,D),f&&f.m(p,D),w(p,l,D),c[t].m(p,D),w(p,n,D),s=!0},p(p,D){p[5]?a?(a.p(p,D),D&32&&$(a,1)):(a=ml(p),a.c(),$(a,1),a.m(e.parentNode,e)):a&&(G(),_(a,1,1,()=>{a=null}),J()),p[0]?f?f.p(p,D):(f=$l(p),f.c(),f.m(l.parentNode,l)):f&&(f.d(1),f=null);let P=t;t=m(p),t===P?c[t].p(p,D):(G(),_(c[P],1,1,()=>{c[P]=null}),J(),r=c[t],r?r.p(p,D):(r=c[t]=i[t](p),r.c()),$(r,1),r.m(n.parentNode,n))},i(p){s||($(a),$(r),s=!0)},o(p){_(a),_(r),s=!1},d(p){a&&a.d(p),p&&u(e),f&&f.d(p),p&&u(l),c[t].d(p),p&&u(n)}}}function Oo(o){let e,l,t,r,n;const s=[Ao,Do],a=[];function f(i,c){return i[2]?0:1}return l=f(o),t=a[l]=s[l](o),{c(){e=N("p"),t.c(),this.h()},l(i){e=S(i,"P",{class:!0});var c=C(e);t.l(c),c.forEach(u),this.h()},h(){T(e,"class",r="flex items-center gap-2 text-"+o[4]+" whitespace-nowrap pt-2 svelte-1wf2pbe")},m(i,c){w(i,e,c),a[l].m(e,null),n=!0},p(i,[c]){let m=l;l=f(i),l===m?a[l].p(i,c):(G(),_(a[m],1,1,()=>{a[m]=null}),J(),t=a[l],t?t.p(i,c):(t=a[l]=s[l](i),t.c()),$(t,1),t.m(e,null)),(!n||c&16&&r!==(r="flex items-center gap-2 text-"+i[4]+" whitespace-nowrap pt-2 svelte-1wf2pbe"))&&T(e,"class",r)},i(i){n||($(t),n=!0)},o(i){_(t),n=!1},d(i){i&&u(e),a[l].d()}}}function Bo(o,e,l){let{title:t=""}=e,{content:r}=e,{copyable:n=!1}=e,{href:s=null}=e,{textSize:a="md"}=e,{icon:f=void 0}=e;return o.$$set=i=>{"title"in i&&l(0,t=i.title),"content"in i&&l(1,r=i.content),"copyable"in i&&l(2,n=i.copyable),"href"in i&&l(3,s=i.href),"textSize"in i&&l(4,a=i.textSize),"icon"in i&&l(5,f=i.icon)},[t,r,n,s,a,f]}class Le extends $e{constructor(e){super(),pe(this,e,Bo,Oo,_e,{title:0,content:1,copyable:2,href:3,textSize:4,icon:5})}}function pl(o){let e,l;return e=new Le({props:{icon:"clock",content:o[1],textSize:"sm"}}),{c(){b(e.$$.fragment)},l(t){I(e.$$.fragment,t)},m(t,r){E(e,t,r),l=!0},p(t,r){const n={};r&2&&(n.content=t[1]),e.$set(n)},i(t){l||($(e.$$.fragment,t),l=!0)},o(t){_(e.$$.fragment,t),l=!1},d(t){y(e,t)}}}function _l(o){let e,l,t=v("common.search-attributes")+"",r,n,s,a,f,i;return f=new bt({props:{value:{searchAttributes:o[0].searchAttributes},key:"searchAttributes",$$slots:{default:[Ro,({decodedValue:c})=>({8:c}),({decodedValue:c})=>c?256:0]},$$scope:{ctx:o}}}),{c(){e=N("div"),l=N("h3"),r=F(t),n=H(),s=N("div"),a=H(),b(f.$$.fragment),this.h()},l(c){e=S(c,"DIV",{class:!0});var m=C(e);l=S(m,"H3",{class:!0});var p=C(l);r=O(p,t),p.forEach(u),n=W(m),s=S(m,"DIV",{class:!0}),C(s).forEach(u),a=W(m),I(f.$$.fragment,m),m.forEach(u),this.h()},h(){T(l,"class","font-medium"),T(s,"class","h-0.5 rounded-full bg-gray-900"),T(e,"class","mt-4 flex flex-col gap-2")},m(c,m){w(c,e,m),d(e,l),d(l,r),d(e,n),d(e,s),d(e,a),E(f,e,null),i=!0},p(c,m){const p={};m&1&&(p.value={searchAttributes:c[0].searchAttributes}),m&768&&(p.$$scope={dirty:m,ctx:c}),f.$set(p)},i(c){i||($(f.$$.fragment,c),i=!0)},o(c){_(f.$$.fragment,c),i=!1},d(c){c&&u(e),y(f)}}}function Ro(o){let e,l;return e=new Ze({props:{content:o[8],copyIconTitle:v("common.copy-icon-title"),copySuccessIconTitle:v("common.copy-success-icon-title")}}),{c(){b(e.$$.fragment)},l(t){I(e.$$.fragment,t)},m(t,r){E(e,t,r),l=!0},p(t,r){const n={};r&256&&(n.content=t[8]),e.$set(n)},i(t){l||($(e.$$.fragment,t),l=!0)},o(t){_(e.$$.fragment,t),l=!1},d(t){y(e,t)}}}function jo(o){var ie,he,be,ye,Ae,We,De,Me,Xe,Fe;let e,l,t,r=v("common.execution-details")+"",n,s,a,f,i,c,m,p,D,P,h,g,k=v("common.task-queue")+"",R,q,Y,ae,j,K,re,oe,Q,fe,ce=v("workflows.start-and-close-time")+"",de,ue,Z,ge,ne,ve,te,ke,me,V,A;i=new Le({props:{title:v("common.workflow-type"),content:(ie=o[0])==null?void 0:ie.name,copyable:!0,textSize:"sm"}}),m=new Le({props:{title:v("common.run-id"),content:(he=o[0])==null?void 0:he.runId,copyable:!0,textSize:"sm"}}),D=new Le({props:{title:v("common.history-size-bytes"),content:(be=o[0])==null?void 0:be.historySizeBytes,copyable:!0,textSize:"sm"}}),j=new Le({props:{content:(ye=o[0])==null?void 0:ye.taskQueue,href:Pt({namespace:o[3].params.namespace,workflow:(Ae=o[0])==null?void 0:Ae.id,run:(We=o[0])==null?void 0:We.runId}),copyable:!0,textSize:"sm"}}),re=new Le({props:{title:v("workflows.state-transitions"),content:(De=o[0])==null?void 0:De.stateTransitionCount,textSize:"sm"}}),ne=new Le({props:{title:v("common.start-time"),content:Ye((Me=o[0])==null?void 0:Me.startTime,o[4],{relative:o[5]}),textSize:"sm"}}),te=new Le({props:{title:v("common.close-time"),content:Ye((Xe=o[0])==null?void 0:Xe.endTime,o[4],{relative:o[5]}),textSize:"sm"}});let z=o[1]&&pl(o),L=((Fe=o[0])==null?void 0:Fe.searchAttributes)&&_l(o);return{c(){e=N("div"),l=N("div"),t=N("h3"),n=F(r),s=H(),a=N("div"),f=H(),b(i.$$.fragment),c=H(),b(m.$$.fragment),p=H(),b(D.$$.fragment),P=H(),h=N("div"),g=N("h3"),R=F(k),q=H(),Y=N("div"),ae=H(),b(j.$$.fragment),K=H(),b(re.$$.fragment),oe=H(),Q=N("div"),fe=N("h3"),de=F(ce),ue=H(),Z=N("div"),ge=H(),b(ne.$$.fragment),ve=H(),b(te.$$.fragment),ke=H(),z&&z.c(),me=H(),L&&L.c(),V=se(),this.h()},l(B){e=S(B,"DIV",{class:!0});var M=C(e);l=S(M,"DIV",{class:!0});var x=C(l);t=S(x,"H3",{class:!0});var je=C(t);n=O(je,r),je.forEach(u),s=W(x),a=S(x,"DIV",{class:!0}),C(a).forEach(u),f=W(x),I(i.$$.fragment,x),c=W(x),I(m.$$.fragment,x),p=W(x),I(D.$$.fragment,x),x.forEach(u),P=W(M),h=S(M,"DIV",{class:!0});var Ie=C(h);g=S(Ie,"H3",{class:!0});var we=C(g);R=O(we,k),we.forEach(u),q=W(Ie),Y=S(Ie,"DIV",{class:!0}),C(Y).forEach(u),ae=W(Ie),I(j.$$.fragment,Ie),K=W(Ie),I(re.$$.fragment,Ie),Ie.forEach(u),oe=W(M),Q=S(M,"DIV",{class:!0});var U=C(Q);fe=S(U,"H3",{class:!0});var Ne=C(fe);de=O(Ne,ce),Ne.forEach(u),ue=W(U),Z=S(U,"DIV",{class:!0}),C(Z).forEach(u),ge=W(U),I(ne.$$.fragment,U),ve=W(U),I(te.$$.fragment,U),ke=W(U),z&&z.l(U),U.forEach(u),M.forEach(u),me=W(B),L&&L.l(B),V=se(),this.h()},h(){T(t,"class","font-medium"),T(a,"class","h-0.5 rounded-full bg-gray-900"),T(l,"class","grow overflow-hidden"),T(g,"class","font-medium"),T(Y,"class","h-0.5 rounded-full bg-gray-900"),T(h,"class","grow overflow-hidden"),T(fe,"class","font-medium"),T(Z,"class","h-0.5 rounded-full bg-gray-900"),T(Q,"class","grow-0"),T(e,"class","flex flex-col gap-2 xl:flex-row")},m(B,M){w(B,e,M),d(e,l),d(l,t),d(t,n),d(l,s),d(l,a),d(l,f),E(i,l,null),d(l,c),E(m,l,null),d(l,p),E(D,l,null),d(e,P),d(e,h),d(h,g),d(g,R),d(h,q),d(h,Y),d(h,ae),E(j,h,null),d(h,K),E(re,h,null),d(e,oe),d(e,Q),d(Q,fe),d(fe,de),d(Q,ue),d(Q,Z),d(Q,ge),E(ne,Q,null),d(Q,ve),E(te,Q,null),d(Q,ke),z&&z.m(Q,null),w(B,me,M),L&&L.m(B,M),w(B,V,M),A=!0},p(B,M){var Pe,Ee,Oe,xe,Qe,et,Ue,tt,qe,lt;const x={};M&1&&(x.content=(Pe=B[0])==null?void 0:Pe.name),i.$set(x);const je={};M&1&&(je.content=(Ee=B[0])==null?void 0:Ee.runId),m.$set(je);const Ie={};M&1&&(Ie.content=(Oe=B[0])==null?void 0:Oe.historySizeBytes),D.$set(Ie);const we={};M&1&&(we.content=(xe=B[0])==null?void 0:xe.taskQueue),M&9&&(we.href=Pt({namespace:B[3].params.namespace,workflow:(Qe=B[0])==null?void 0:Qe.id,run:(et=B[0])==null?void 0:et.runId})),j.$set(we);const U={};M&1&&(U.content=(Ue=B[0])==null?void 0:Ue.stateTransitionCount),re.$set(U);const Ne={};M&49&&(Ne.content=Ye((tt=B[0])==null?void 0:tt.startTime,B[4],{relative:B[5]})),ne.$set(Ne);const Be={};M&49&&(Be.content=Ye((qe=B[0])==null?void 0:qe.endTime,B[4],{relative:B[5]})),te.$set(Be),B[1]?z?(z.p(B,M),M&2&&$(z,1)):(z=pl(B),z.c(),$(z,1),z.m(Q,null)):z&&(G(),_(z,1,1,()=>{z=null}),J()),(lt=B[0])!=null&<.searchAttributes?L?(L.p(B,M),M&1&&$(L,1)):(L=_l(B),L.c(),$(L,1),L.m(V.parentNode,V)):L&&(G(),_(L,1,1,()=>{L=null}),J())},i(B){A||($(i.$$.fragment,B),$(m.$$.fragment,B),$(D.$$.fragment,B),$(j.$$.fragment,B),$(re.$$.fragment,B),$(ne.$$.fragment,B),$(te.$$.fragment,B),$(z),$(L),A=!0)},o(B){_(i.$$.fragment,B),_(m.$$.fragment,B),_(D.$$.fragment,B),_(j.$$.fragment,B),_(re.$$.fragment,B),_(ne.$$.fragment,B),_(te.$$.fragment,B),_(z),_(L),A=!1},d(B){B&&u(e),y(i),y(m),y(D),y(j),y(re),y(ne),y(te),z&&z.d(),B&&u(me),L&&L.d(B),B&&u(V)}}}function zo(o){let e,l,t;return l=new ot({props:{title:v("common.summary"),icon:"summary","data-testid":"summary-accordion",open:o[2],onToggle:o[7],$$slots:{default:[jo]},$$scope:{ctx:o}}}),{c(){e=N("section"),b(l.$$.fragment)},l(r){e=S(r,"SECTION",{});var n=C(e);I(l.$$.fragment,n),n.forEach(u)},m(r,n){w(r,e,n),E(l,e,null),t=!0},p(r,[n]){const s={};n&4&&(s.open=r[2]),n&4&&(s.onToggle=r[7]),n&571&&(s.$$scope={dirty:n,ctx:r}),l.$set(s)},i(r){t||($(l.$$.fragment,r),t=!0)},o(r){_(l.$$.fragment,r),t=!1},d(r){r&&u(e),y(l)}}}function Lo(o,e,l){let t,r,n,s,a,f,i;le(o,at,m=>l(6,n=m)),le(o,Dt,m=>l(2,s=m)),le(o,Ge,m=>l(3,a=m)),le(o,Bl,m=>l(4,f=m)),le(o,Rl,m=>l(5,i=m));const c=()=>{Ke(Dt,s=!s,s)};return o.$$.update=()=>{o.$$.dirty&64&&l(0,{workflow:t}=n,t),o.$$.dirty&1&&l(1,r=nr({start:t==null?void 0:t.startTime,end:t==null?void 0:t.endTime,includeMilliseconds:!0}))},[t,r,s,a,f,i,n,c]}class Mo extends $e{constructor(e){super(),pe(this,e,Lo,zo,_e,{})}}function dl(o){let e,l;return e=new Et({props:{bold:!0,icon:"warning",intent:"warning",title:v(`typed-errors.${o[1]}.title`),$$slots:{default:[Jo]},$$scope:{ctx:o}}}),{c(){b(e.$$.fragment)},l(t){I(e.$$.fragment,t)},m(t,r){E(e,t,r),l=!0},p(t,r){const n={};r&2&&(n.title=v(`typed-errors.${t[1]}.title`)),r&11&&(n.$$scope={dirty:r,ctx:t}),e.$set(n)},i(t){l||($(e.$$.fragment,t),l=!0)},o(t){_(e.$$.fragment,t),l=!1},d(t){y(e,t)}}}function gl(o){let e,l=v("typed-errors.link-preface")+"",t,r,n,s;return r=new He({props:{newTab:!0,href:v(`typed-errors.${o[1]}.link`),$$slots:{default:[Qo]},$$scope:{ctx:o}}}),{c(){e=N("p"),t=F(l),b(r.$$.fragment),n=F(".")},l(a){e=S(a,"P",{});var f=C(e);t=O(f,l),I(r.$$.fragment,f),n=O(f,"."),f.forEach(u)},m(a,f){w(a,e,f),d(e,t),E(r,e,null),d(e,n),s=!0},p(a,f){const i={};f&2&&(i.href=v(`typed-errors.${a[1]}.link`)),f&10&&(i.$$scope={dirty:f,ctx:a}),r.$set(i)},i(a){s||($(r.$$.fragment,a),s=!0)},o(a){_(r.$$.fragment,a),s=!1},d(a){a&&u(e),y(r)}}}function Qo(o){let e=v(`typed-errors.${o[1]}.action`)+"",l;return{c(){l=F(e)},l(t){l=O(t,e)},m(t,r){w(t,l,r)},p(t,r){r&2&&e!==(e=v(`typed-errors.${t[1]}.action`)+"")&&ee(l,e)},d(t){t&&u(l)}}}function Uo(o){let e,l;return e=new Ll({props:{event:o[0],initialItem:o[0],typedError:!0}}),{c(){b(e.$$.fragment)},l(t){I(e.$$.fragment,t)},m(t,r){E(e,t,r),l=!0},p(t,r){const n={};r&1&&(n.event=t[0]),r&1&&(n.initialItem=t[0]),e.$set(n)},i(t){l||($(e.$$.fragment,t),l=!0)},o(t){_(e.$$.fragment,t),l=!1},d(t){y(e,t)}}}function qo(o){let e,l=v("events.error-event")+"",t;return{c(){e=N("caption"),t=F(l),this.h()},l(r){e=S(r,"CAPTION",{class:!0,slot:!0});var n=C(e);t=O(n,l),n.forEach(u),this.h()},h(){T(e,"class","sr-only"),T(e,"slot","caption")},m(r,n){w(r,e,n),d(e,t)},p:X,d(r){r&&u(e)}}}function Ko(o){let e,l,t,r,n=v("common.date-and-time")+"",s,a,f,i,c,m,p=v("common.event")+"",D,P,h,g;return i=new st({props:{name:"clock"}}),{c(){e=N("td"),l=H(),t=N("th"),r=N("span"),s=F(n),a=H(),f=N("span"),b(i.$$.fragment),c=H(),m=N("th"),D=F(p),P=H(),h=N("th"),this.h()},l(k){e=S(k,"TD",{class:!0}),C(e).forEach(u),l=W(k),t=S(k,"TH",{class:!0});var R=C(t);r=S(R,"SPAN",{class:!0});var q=C(r);s=O(q,n),q.forEach(u),a=W(R),f=S(R,"SPAN",{class:!0});var Y=C(f);I(i.$$.fragment,Y),Y.forEach(u),R.forEach(u),c=W(k),m=S(k,"TH",{class:!0});var ae=C(m);D=O(ae,p),ae.forEach(u),P=W(k),h=S(k,"TH",{class:!0}),C(h).forEach(u),this.h()},h(){T(e,"class","w-14 xl:w-10"),T(r,"class","max-md:hidden"),T(f,"class","md:hidden"),T(t,"class","w-16 md:w-32"),T(m,"class","w-44"),T(h,"class","w-auto xl:w-80")},m(k,R){w(k,e,R),w(k,l,R),w(k,t,R),d(t,r),d(r,s),d(t,a),d(t,f),E(i,f,null),w(k,c,R),w(k,m,R),d(m,D),w(k,P,R),w(k,h,R),g=!0},p:X,i(k){g||($(i.$$.fragment,k),g=!0)},o(k){_(i.$$.fragment,k),g=!1},d(k){k&&u(e),k&&u(l),k&&u(t),y(i),k&&u(c),k&&u(m),k&&u(P),k&&u(h)}}}function Go(o){let e,l;return e=new it({props:{slot:"headers",$$slots:{default:[Ko]},$$scope:{ctx:o}}}),{c(){b(e.$$.fragment)},l(t){I(e.$$.fragment,t)},m(t,r){E(e,t,r),l=!0},p(t,r){const n={};r&8&&(n.$$scope={dirty:r,ctx:t}),e.$set(n)},i(t){l||($(e.$$.fragment,t),l=!0)},o(t){_(e.$$.fragment,t),l=!1},d(t){y(e,t)}}}function Jo(o){let e,l=v(`typed-errors.${o[1]}.description`)+"",t,r,n,s,a,f,i=(o[1]==="WorkflowWorkerUnhandledFailure"||o[1]==="BadSearchAttributes")&&gl(o);return a=new ft({props:{class:"dark w-full table-fixed",$$slots:{headers:[Go],caption:[qo],default:[Uo]},$$scope:{ctx:o}}}),{c(){e=N("p"),t=F(l),r=H(),i&&i.c(),n=H(),s=N("div"),b(a.$$.fragment),this.h()},l(c){e=S(c,"P",{});var m=C(e);t=O(m,l),m.forEach(u),r=W(c),i&&i.l(c),n=W(c),s=S(c,"DIV",{class:!0});var p=C(s);I(a.$$.fragment,p),p.forEach(u),this.h()},h(){T(s,"class","mt-2 bg-white")},m(c,m){w(c,e,m),d(e,t),w(c,r,m),i&&i.m(c,m),w(c,n,m),w(c,s,m),E(a,s,null),f=!0},p(c,m){(!f||m&2)&&l!==(l=v(`typed-errors.${c[1]}.description`)+"")&&ee(t,l),c[1]==="WorkflowWorkerUnhandledFailure"||c[1]==="BadSearchAttributes"?i?(i.p(c,m),m&2&&$(i,1)):(i=gl(c),i.c(),$(i,1),i.m(n.parentNode,n)):i&&(G(),_(i,1,1,()=>{i=null}),J());const p={};m&9&&(p.$$scope={dirty:m,ctx:c}),a.$set(p)},i(c){f||($(i),$(a.$$.fragment,c),f=!0)},o(c){_(i),_(a.$$.fragment,c),f=!1},d(c){c&&u(e),c&&u(r),i&&i.d(c),c&&u(n),c&&u(s),y(a)}}}function Xo(o){let e,l,t=o[1]&&dl(o);return{c(){t&&t.c(),e=se()},l(r){t&&t.l(r),e=se()},m(r,n){t&&t.m(r,n),w(r,e,n),l=!0},p(r,[n]){r[1]?t?(t.p(r,n),n&2&&$(t,1)):(t=dl(r),t.c(),$(t,1),t.m(e.parentNode,e)):t&&(G(),_(t,1,1,()=>{t=null}),J())},i(r){l||($(t),l=!0)},o(r){_(t),l=!1},d(r){t&&t.d(r),r&&u(e)}}}function Yo(o,e,l){function t(s){var a;const{workflowTaskFailedEventAttributes:{failure:f,cause:i}}=s;return((a=f==null?void 0:f.applicationFailureInfo)===null||a===void 0?void 0:a.type)==="workflowTaskHeartbeatError"?"WorkflowTaskHeartbeatError":cr(i)}let{error:r}=e,n;return o.$$set=s=>{"error"in s&&l(0,r=s.error)},o.$$.update=()=>{o.$$.dirty&1&&l(1,n=t(r))},[r,n]}class Zo extends $e{constructor(e){super(),pe(this,e,Yo,Xo,_e,{error:0})}}const xo=async(o,e)=>{const l=gr(e),t=hr(e),r=wr(e),n={...e,codec:{...e==null?void 0:e.codec,endpoint:l,passAccessToken:t,includeCredentials:r}},s=!1;try{const a=await vr(o,Ct(Ge).params.namespace,n,Ct(dr).accessToken,s);return kr(a,s)}catch{return o}};function hl(o,e,l){const t=Re({events:o},null,2),r=document.createElement("a"),n=new Blob([t],{type:l});r.href=URL.createObjectURL(n),r.download=e,r.click()}const es=async({namespace:o,workflowId:e,runId:l,settings:t,decodeEventHistory:r})=>{try{const n=await $r({namespace:o,workflowId:e,runId:l,sort:"ascending"});if(r){const s=[];for(const a of n){const f=await xo(a,t);s.push(f)}hl(s,`${l}/events.json`,"text/plain")}else hl(n,`${l}/events.json`,"text/plain")}catch{console.error("Could not download event history")}},ts=["WorkflowExecutionFailed","WorkflowExecutionCompleted","WorkflowExecutionContinuedAsNew","WorkflowExecutionTimedOut","WorkflowExecutionCanceled","WorkflowExecutionTerminated"],wl=o=>!!o.workflowExecutionStartedEventAttributes,vl=o=>{for(const e of ts)if(o.eventType===e)return!0;return!1},ls=o=>ql(o)?o.attributes.input:br(o)?o.attributes.result===null?null:o.attributes.result:o.attributes,rs=o=>{var s;let e,l,t=!1,r,n;for(const a of o.start)if(wl(a)){r=a;continue}else if(vl(a)){n=a;continue}for(const a of o.end)if(wl(a)){r=a;continue}else if(vl(a)){n=a;continue}return r&&(e=Re(((s=r==null?void 0:r.workflowExecutionStartedEventAttributes)==null?void 0:s.input)??null)),n&&(t=ql(n),l=Re(ls(n))),{input:e,results:l,contAsNew:t}},kl=o=>o.eventType==="WorkflowTaskFailed",ns=(o,e)=>{if(e==="descending")return o.find(l=>kl(l));for(let l=o.length-1;l>=0;l--){const t=o[l];if(kl(t))return t}};function bl(o){let e,l;return e=new Zo({props:{error:o[4]}}),{c(){b(e.$$.fragment)},l(t){I(e.$$.fragment,t)},m(t,r){E(e,t,r),l=!0},p(t,r){const n={};r[0]&16&&(n.error=t[4]),e.$set(n)},i(t){l||($(e.$$.fragment,t),l=!0)},o(t){_(e.$$.fragment,t),l=!1},d(t){y(e,t)}}}function os(o){let e,l,t,r,n;return l=new Mt({props:{title:"Input",content:o[6].input,"data-testid":"workflow-input"}}),r=new Mt({props:{content:o[6].results,title:o[6].contAsNew?v("workflows.continued-as-new-with-input"):v("workflows.results"),"data-testid":"workflow-results"}}),{c(){e=N("div"),b(l.$$.fragment),t=H(),b(r.$$.fragment),this.h()},l(s){e=S(s,"DIV",{class:!0});var a=C(e);I(l.$$.fragment,a),t=W(a),I(r.$$.fragment,a),a.forEach(u),this.h()},h(){T(e,"class","flex w-full flex-col gap-2 lg:flex-row")},m(s,a){w(s,e,a),E(l,e,null),d(e,t),E(r,e,null),n=!0},p(s,a){const f={};a[0]&64&&(f.content=s[6].input),l.$set(f);const i={};a[0]&64&&(i.content=s[6].results),a[0]&64&&(i.title=s[6].contAsNew?v("workflows.continued-as-new-with-input"):v("workflows.results")),r.$set(i)},i(s){n||($(l.$$.fragment,s),$(r.$$.fragment,s),n=!0)},o(s){_(l.$$.fragment,s),_(r.$$.fragment,s),n=!1},d(s){s&&u(e),y(l),y(r)}}}function ss(o){let e,l;return e=new er({props:{history:o[1]}}),{c(){b(e.$$.fragment)},l(t){I(e.$$.fragment,t)},m(t,r){E(e,t,r),l=!0},p(t,r){const n={};r[0]&2&&(n.history=t[1]),e.$set(n)},i(t){l||($(e.$$.fragment,t),l=!0)},o(t){_(e.$$.fragment,t),l=!1},d(t){y(e,t)}}}function as(o){let e=v("workflows.history")+"",l;return{c(){l=F(e)},l(t){l=O(t,e)},m(t,r){w(t,l,r)},p:X,d(t){t&&u(l)}}}function fs(o){let e=v("workflows.compact")+"",l;return{c(){l=F(e)},l(t){l=O(t,e)},m(t,r){w(t,l,r)},p:X,d(t){t&&u(l)}}}function is(o){let e=v("workflows.json")+"",l;return{c(){l=F(e)},l(t){l=O(t,e)},m(t,r){w(t,l,r)},p:X,d(t){t&&u(l)}}}function cs(o){let e=v("workflows.download")+"",l;return{c(){l=F(e)},l(t){l=O(t,e)},m(t,r){w(t,l,r)},p:X,d(t){t&&u(l)}}}function us(o){let e,l,t,r,n,s,a,f;return e=new mt({props:{icon:"feed",active:o[0]==="feed","data-testid":"feed",$$slots:{default:[as]},$$scope:{ctx:o}}}),e.$on("click",o[23]),t=new mt({props:{icon:"compact",active:o[0]==="compact","data-testid":"compact",$$slots:{default:[fs]},$$scope:{ctx:o}}}),t.$on("click",o[24]),n=new mt({props:{icon:"json",active:o[0]==="json","data-testid":"json",$$slots:{default:[is]},$$scope:{ctx:o}}}),n.$on("click",o[25]),a=new mt({props:{icon:"download","data-testid":"download",$$slots:{default:[cs]},$$scope:{ctx:o}}}),a.$on("click",o[26]),{c(){b(e.$$.fragment),l=H(),b(t.$$.fragment),r=H(),b(n.$$.fragment),s=H(),b(a.$$.fragment)},l(i){I(e.$$.fragment,i),l=W(i),I(t.$$.fragment,i),r=W(i),I(n.$$.fragment,i),s=W(i),I(a.$$.fragment,i)},m(i,c){E(e,i,c),w(i,l,c),E(t,i,c),w(i,r,c),E(n,i,c),w(i,s,c),E(a,i,c),f=!0},p(i,c){const m={};c[0]&1&&(m.active=i[0]==="feed"),c[1]&4&&(m.$$scope={dirty:c,ctx:i}),e.$set(m);const p={};c[0]&1&&(p.active=i[0]==="compact"),c[1]&4&&(p.$$scope={dirty:c,ctx:i}),t.$set(p);const D={};c[0]&1&&(D.active=i[0]==="json"),c[1]&4&&(D.$$scope={dirty:c,ctx:i}),n.$set(D);const P={};c[1]&4&&(P.$$scope={dirty:c,ctx:i}),a.$set(P)},i(i){f||($(e.$$.fragment,i),$(t.$$.fragment,i),$(n.$$.fragment,i),$(a.$$.fragment,i),f=!0)},o(i){_(e.$$.fragment,i),_(t.$$.fragment,i),_(n.$$.fragment,i),_(a.$$.fragment,i),f=!1},d(i){y(e,i),i&&u(l),y(t,i),i&&u(r),y(n,i),i&&u(s),y(a,i)}}}function ms(o){let e,l=v("common.download-json")+"",t;return{c(){e=N("h3"),t=F(l),this.h()},l(r){e=S(r,"H3",{slot:!0});var n=C(e);t=O(n,l),n.forEach(u),this.h()},h(){T(e,"slot","title")},m(r,n){w(r,e,n),d(e,t)},p:X,d(r){r&&u(e)}}}function $s(o){let e,l,t,r;function n(a){o[29](a)}let s={label:v("events.decode-event-history"),id:"decode-event-history","data-testid":"decode-event-history-toggle"};return o[7]!==void 0&&(s.checked=o[7]),l=new Ml({props:s}),wt.push(()=>vt(l,"checked",n)),{c(){e=N("div"),b(l.$$.fragment),this.h()},l(a){e=S(a,"DIV",{slot:!0,class:!0});var f=C(e);I(l.$$.fragment,f),f.forEach(u),this.h()},h(){T(e,"slot","content"),T(e,"class","flex flex-col gap-4")},m(a,f){w(a,e,f),E(l,e,null),r=!0},p(a,f){const i={};!t&&f[0]&128&&(t=!0,i.checked=a[7],kt(()=>t=!1)),l.$set(i)},i(a){r||($(l.$$.fragment,a),r=!0)},o(a){_(l.$$.fragment,a),r=!1},d(a){a&&u(e),y(l)}}}function ps(o){let e,l,t,r,n,s,a,f,i,c,m,p,D,P,h,g,k,R,q=v("workflows.event-history")+"",Y,ae,j,K,re,oe,Q,fe,ce,de,ue;l=new yn({});let Z=o[4]&&bl(o);n=new Mo({});const ge=[o[5]];let ne={};for(let V=0;Vvt(ce,"open",ke)),ce.$on("confirmModal",o[31]),ce.$on("cancelModal",o[32]),{c(){e=N("div"),b(l.$$.fragment),t=H(),Z&&Z.c(),r=H(),b(n.$$.fragment),s=H(),b(a.$$.fragment),f=H(),b(i.$$.fragment),c=H(),m=N("section"),b(p.$$.fragment),D=H(),b(P.$$.fragment),h=H(),g=N("section"),k=N("nav"),R=N("h2"),Y=F(q),ae=H(),j=N("div"),b(K.$$.fragment),re=H(),te&&te.c(),oe=H(),b(Q.$$.fragment),fe=H(),b(ce.$$.fragment),this.h()},l(V){e=S(V,"DIV",{class:!0});var A=C(e);I(l.$$.fragment,A),t=W(A),Z&&Z.l(A),r=W(A),I(n.$$.fragment,A),s=W(A),I(a.$$.fragment,A),f=W(A),I(i.$$.fragment,A),c=W(A),m=S(A,"SECTION",{});var z=C(m);I(p.$$.fragment,z),z.forEach(u),D=W(A),I(P.$$.fragment,A),h=W(A),g=S(A,"SECTION",{id:!0});var L=C(g);k=S(L,"NAV",{class:!0,"aria-label":!0});var ie=C(k);R=S(ie,"H2",{class:!0});var he=C(R);Y=O(he,q),he.forEach(u),ae=W(ie),j=S(ie,"DIV",{id:!0,class:!0});var be=C(j);I(K.$$.fragment,be),be.forEach(u),ie.forEach(u),re=W(L),te&&te.l(L),L.forEach(u),oe=W(A),I(Q.$$.fragment,A),A.forEach(u),fe=W(V),I(ce.$$.fragment,V),this.h()},h(){T(R,"class","text-2xl font-medium"),T(j,"id","event-view-toggle"),T(j,"class","mt-4 flex gap-4 bg-white"),T(k,"class","flex flex-col items-center justify-between gap-4 lg:flex-row lg:items-end"),T(k,"aria-label",v("workflows.event-history-view")),T(g,"id","event-history"),T(e,"class","flex flex-col gap-2")},m(V,A){w(V,e,A),E(l,e,null),d(e,t),Z&&Z.m(e,null),d(e,r),E(n,e,null),d(e,s),E(a,e,null),d(e,f),E(i,e,null),d(e,c),d(e,m),E(p,m,null),d(e,D),E(P,e,null),d(e,h),d(e,g),d(g,k),d(k,R),d(R,Y),d(k,ae),d(k,j),E(K,j,null),d(g,re),te&&te.m(g,null),d(e,oe),E(Q,e,null),w(V,fe,A),E(ce,V,A),ue=!0},p(V,A){V[4]?Z?(Z.p(V,A),A[0]&16&&$(Z,1)):(Z=bl(V),Z.c(),$(Z,1),Z.m(e,r)):Z&&(G(),_(Z,1,1,()=>{Z=null}),J());const z=A[0]&32?Sl(ge,[Yl(V[5])]):{};a.$set(z);const L={};A[0]&64&&(L.title=V[6].contAsNew?v("workflows.input"):v("workflows.input-and-results")),A[0]&64|A[1]&4&&(L.$$scope={dirty:A,ctx:V}),p.$set(L);const ie={};A[0]&256&&(ie.open=V[8]),A[0]&256&&(ie.onToggle=V[22]),A[0]&2|A[1]&4&&(ie.$$scope={dirty:A,ctx:V}),P.$set(ie);const he={};A[0]&9|A[1]&4&&(he.$$scope={dirty:A,ctx:V}),K.$set(he),te&&te.p&&(!ue||A[1]&4)&&Dl(te,ve,V,V[33],ue?Nl(ve,V[33],A,null):Al(V[33]),null);const be={};A[0]&4&&(be.open=V[2]),A[0]&4&&(be.onOpen=V[27]),A[0]&4&&(be.onClose=V[28]),Q.$set(be);const ye={};A[0]&128|A[1]&4&&(ye.$$scope={dirty:A,ctx:V}),!de&&A[0]&8&&(de=!0,ye.open=V[3],kt(()=>de=!1)),ce.$set(ye)},i(V){ue||($(l.$$.fragment,V),$(Z),$(n.$$.fragment,V),$(a.$$.fragment,V),$(i.$$.fragment,V),$(p.$$.fragment,V),$(P.$$.fragment,V),$(K.$$.fragment,V),$(te,V),$(Q.$$.fragment,V),$(ce.$$.fragment,V),ue=!0)},o(V){_(l.$$.fragment,V),_(Z),_(n.$$.fragment,V),_(a.$$.fragment,V),_(i.$$.fragment,V),_(p.$$.fragment,V),_(P.$$.fragment,V),_(K.$$.fragment,V),_(te,V),_(Q.$$.fragment,V),_(ce.$$.fragment,V),ue=!1},d(V){V&&u(e),y(l),Z&&Z.d(),y(n),y(a),y(i),y(p),y(P),y(K),te&&te.d(V),y(Q),V&&u(fe),y(ce,V)}}}function _s(o,e,l){let t,r,n,s,a,f,i,c,m,p,D,P,h,g,k,R,q;le(o,_t,A=>l(7,c=A)),le(o,Ge,A=>l(15,m=A)),le(o,at,A=>l(16,p=A)),le(o,ht,A=>l(0,D=A)),le(o,Ql,A=>l(17,P=A)),le(o,rr,A=>l(18,h=A)),le(o,nt,A=>l(1,g=A)),le(o,_r,A=>l(19,k=A)),le(o,Ul,A=>l(20,R=A)),le(o,At,A=>l(8,q=A));let{$$slots:Y={},$$scope:ae}=e,j=!1,K=!1;const re=()=>{Ke(nt,g=[],g)},oe=async(A,z,L,ie,he)=>{re(),Ke(nt,g=await pr({namespace:A,workflowId:z,runId:L,sort:ie==="feed"?he:"ascending"}),g)},Q=A=>{m.url.searchParams.get("page")&&m.url.searchParams.delete("page"),Ke(ht,D=A,D)},fe=()=>{var A,z;l(3,K=!1),es({namespace:gt(m.params.namespace),workflowId:gt((A=p.workflow)===null||A===void 0?void 0:A.id),runId:gt((z=p.workflow)===null||z===void 0?void 0:z.runId),settings:m.data.settings,decodeEventHistory:c})},ce=()=>{Ke(At,q=!q,q)},de=()=>Q("feed"),ue=()=>Q("compact"),Z=()=>Q("json"),ge=()=>l(3,K=!0),ne=()=>l(2,j=!0),ve=()=>l(2,j=!1);function te(A){c=A,_t.set(c)}function ke(A){K=A,l(3,K)}const me=()=>fe(),V=()=>l(3,K=!1);return o.$$set=A=>{"$$scope"in A&&l(33,ae=A.$$scope)},o.$$.update=()=>{o.$$.dirty[0]&32768&&l(13,{namespace:t,workflow:r,run:n}=m.params,t,(l(12,r),l(15,m)),(l(11,n),l(15,m))),o.$$.dirty[0]&1048576&&l(6,s=rs(R)),o.$$.dirty[0]&65536&&l(14,{workflow:a}=p,a),o.$$.dirty[0]&1589250&&l(5,f=xl(a,R,g,k)),o.$$.dirty[0]&131074&&l(4,i=ns(g,P)),o.$$.dirty[0]&407553&&oe(t,r,n,D,P)},[D,g,j,K,i,f,s,c,q,Q,fe,n,r,t,a,m,p,P,h,k,R,Y,ce,de,ue,Z,ge,ne,ve,te,ke,me,V,ae]}class ds extends $e{constructor(e){super(),pe(this,e,_s,ps,_e,{},null,[-1,-1])}}function El(o,e,l){const t=o.slice();return t[22]=e[l],t[24]=l,t}function yl(o){let e,l;return e=new ir({props:{loading:!o[1].length}}),{c(){b(e.$$.fragment)},l(t){I(e.$$.fragment,t)},m(t,r){E(e,t,r),l=!0},p(t,r){const n={};r&2&&(n.loading=!t[1].length),e.$set(n)},i(t){l||($(e.$$.fragment,t),l=!0)},o(t){_(e.$$.fragment,t),l=!1},d(t){y(e,t)}}}function Il(o,e){let l,t,r;function n(){return e[17](e[21],e[24])}return t=new Ll({props:{event:e[22],compact:e[0],expandAll:e[5]==="true",initialItem:e[4],active:e[20]===e[24],onRowClick:n}}),{key:o,first:null,c(){l=se(),b(t.$$.fragment),this.h()},l(s){l=se(),I(t.$$.fragment,s),this.h()},h(){this.first=l},m(s,a){w(s,l,a),E(t,s,a),r=!0},p(s,a){e=s;const f={};a&524288&&(f.event=e[22]),a&1&&(f.compact=e[0]),a&32&&(f.expandAll=e[5]==="true"),a&16&&(f.initialItem=e[4]),a&1572864&&(f.active=e[20]===e[24]),a&2621440&&(f.onRowClick=n),t.$set(f)},i(s){r||($(t.$$.fragment,s),r=!0)},o(s){_(t.$$.fragment,s),r=!1},d(s){s&&u(l),y(t,s)}}}function gs(o){let e=[],l=new Map,t,r,n=o[19];const s=f=>`${f[22].id}-${f[22].timestamp}`;for(let f=0;f{a=null}),J()):(a=yl(f),a.c(),$(a,1),a.m(t.parentNode,t)))},i(f){if(!r){for(let i=0;i({19:t,20:r,21:n}),({visibleItems:t,activeRowIndex:r,setActiveRowIndex:n})=>(t?524288:0)|(r?1048576:0)|(n?2097152:0)]},$$scope:{ctx:o}}}),{c(){b(e.$$.fragment)},l(t){I(e.$$.fragment,t)},m(t,r){E(e,t,r),l=!0},p(t,[r]){const n={};r&8&&(n.items=t[3]),r&4&&(n.updating=t[2]),r&37224503&&(n.$$scope={dirty:r,ctx:t}),e.$set(n)},i(t){l||($(e.$$.fragment,t),l=!0)},o(t){_(e.$$.fragment,t),l=!1},d(t){y(e,t)}}}function vs(o,e,l){let t,r,n,s,a,f,i,c,m,p,D;le(o,nt,j=>l(12,f=j)),le(o,Rt,j=>l(13,i=j)),le(o,Ul,j=>l(14,c=j)),le(o,Ql,j=>l(15,m=j)),le(o,Ge,j=>l(16,p=j)),le(o,Ot,j=>l(5,D=j));var P,h,g,k;let{compact:R=!1}=e;function q(j){Ke(Ot,D=j.detail.expanded,D)}const Y=(j,K)=>{if(K){const re=j.filter(oe=>Er(oe)?K.includes(yr.LOCAL_ACTIVITY):K.includes(oe.category));return R?Bt(re,m):re}return R?Bt(j,m):j},ae=(j,K)=>j(K);return o.$$set=j=>{"compact"in j&&l(0,R=j.compact)},o.$$.update=()=>{o.$$.dirty&67456&&Ke(Rt,i=!(l(8,h=l(7,P=p.url)===null||P===void 0?void 0:P.searchParams)===null||h===void 0)&&h.get("category")?l(10,k=l(9,g=p.url)===null||g===void 0?void 0:g.searchParams)===null||k===void 0?void 0:k.get("category").split(","):void 0,i),o.$$.dirty&49153&&l(1,t=m==="descending"&&!R?c==null?void 0:c.end:c==null?void 0:c.start),o.$$.dirty&4098&&l(11,r=f.length?f:t),o.$$.dirty&2048&&l(4,n=r==null?void 0:r[0]),o.$$.dirty&10240&&l(3,s=Y(r,i)),o.$$.dirty&6144&&l(2,a=r.length&&!f.length)},[R,t,a,s,n,D,q,P,h,g,k,r,f,i,c,m,p,ae]}class Kl extends $e{constructor(e){super(),pe(this,e,vs,ws,_e,{compact:0})}}function ks(o){let e,l;return e=new Kl({props:{compact:!0}}),{c(){b(e.$$.fragment)},l(t){I(e.$$.fragment,t)},m(t,r){E(e,t,r),l=!0},p:X,i(t){l||($(e.$$.fragment,t),l=!0)},o(t){_(e.$$.fragment,t),l=!1},d(t){y(e,t)}}}class bs extends $e{constructor(e){super(),pe(this,e,null,ks,_e,{})}}function Es(o){let e,l;return e=new Kl({}),{c(){b(e.$$.fragment)},l(t){I(e.$$.fragment,t)},m(t,r){E(e,t,r),l=!0},p:X,i(t){l||($(e.$$.fragment,t),l=!0)},o(t){_(e.$$.fragment,t),l=!1},d(t){y(e,t)}}}class Tl extends $e{constructor(e){super(),pe(this,e,null,Es,_e,{})}}function ys(o){let e,l,t;function r(s){o[2](s)}let n={slot:"decode",label:v("events.decode-event-history"),id:"decode-event-history","data-testid":"decode-event-history-toggle"};return o[1]!==void 0&&(n.checked=o[1]),e=new Ml({props:n}),wt.push(()=>vt(e,"checked",r)),{c(){b(e.$$.fragment)},l(s){I(e.$$.fragment,s)},m(s,a){E(e,s,a),t=!0},p(s,a){const f={};!l&&a&2&&(l=!0,f.checked=s[1],kt(()=>l=!1)),e.$set(f)},i(s){t||($(e.$$.fragment,s),t=!0)},o(s){_(e.$$.fragment,s),t=!1},d(s){y(e,s)}}}function Is(o){let e,l;return e=new Ir({props:{events:o[0],$$slots:{decode:[ys]},$$scope:{ctx:o}}}),{c(){b(e.$$.fragment)},l(t){I(e.$$.fragment,t)},m(t,r){E(e,t,r),l=!0},p(t,[r]){const n={};r&1&&(n.events=t[0]),r&10&&(n.$$scope={dirty:r,ctx:t}),e.$set(n)},i(t){l||($(e.$$.fragment,t),l=!0)},o(t){_(e.$$.fragment,t),l=!1},d(t){y(e,t)}}}function Ts(o,e,l){let t,r;le(o,nt,s=>l(0,t=s)),le(o,_t,s=>l(1,r=s));function n(s){r=s,_t.set(r)}return[t,r,n]}class Cs extends $e{constructor(e){super(),pe(this,e,Ts,Is,_e,{})}}function Ds(o){let e,l,t;var r=o[0];function n(s){return{}}return r&&(e=$t(r,n())),{c(){e&&b(e.$$.fragment),l=se()},l(s){e&&I(e.$$.fragment,s),l=se()},m(s,a){e&&E(e,s,a),w(s,l,a),t=!0},p(s,a){if(r!==(r=s[0])){if(e){G();const f=e;_(f.$$.fragment,1,0,()=>{y(f,1)}),J()}r?(e=$t(r,n()),b(e.$$.fragment),$(e.$$.fragment,1),E(e,l.parentNode,l)):e=null}},i(s){t||(e&&$(e.$$.fragment,s),t=!0)},o(s){e&&_(e.$$.fragment,s),t=!1},d(s){s&&u(l),e&&y(e,s)}}}function As(o){let e,l,t,r;return e=new Zl({props:{title:`${v("workflows.workflow-history")} | ${o[2]}`,url:o[1].url.href}}),t=new ds({props:{$$slots:{default:[Ds]},$$scope:{ctx:o}}}),{c(){b(e.$$.fragment),l=H(),b(t.$$.fragment)},l(n){I(e.$$.fragment,n),l=W(n),I(t.$$.fragment,n)},m(n,s){E(e,n,s),w(n,l,s),E(t,n,s),r=!0},p(n,[s]){const a={};s&2&&(a.url=n[1].url.href),e.$set(a);const f={};s&65&&(f.$$scope={dirty:s,ctx:n}),t.$set(f)},i(n){r||($(e.$$.fragment,n),$(t.$$.fragment,n),r=!0)},o(n){_(e.$$.fragment,n),_(t.$$.fragment,n),r=!1},d(n){y(e,n),n&&u(l),y(t,n)}}}function Ns(o,e,l){let t,r,n;le(o,ht,i=>l(4,r=i)),le(o,Ge,i=>l(1,n=i));var s;const a=n.params.workflow,f={feed:Tl,compact:bs,json:Cs};return o.$$.update=()=>{o.$$.dirty&24&&l(0,t=l(3,s=f[r])!==null&&s!==void 0?s:Tl)},[t,n,a,s,r]}class ya extends $e{constructor(e){super(),pe(this,e,Ns,As,_e,{})}}export{ya as component,Ea as universal}; diff --git a/ui/assets/local/_app/immutable/nodes/32.c60a48a6.js b/ui/assets/local/_app/immutable/nodes/32.3576e451.js similarity index 81% rename from ui/assets/local/_app/immutable/nodes/32.c60a48a6.js rename to ui/assets/local/_app/immutable/nodes/32.3576e451.js index d76b278fc9..bf978eaa1d 100644 --- a/ui/assets/local/_app/immutable/nodes/32.c60a48a6.js +++ b/ui/assets/local/_app/immutable/nodes/32.3576e451.js @@ -1 +1 @@ -import{r as a}from"../chunks/index.3158323b.js";import{g as s}from"../chunks/route-for.ecd88549.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.18f9590b.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/33.31f24430.js b/ui/assets/local/_app/immutable/nodes/33.53769e9f.js similarity index 92% rename from ui/assets/local/_app/immutable/nodes/33.31f24430.js rename to ui/assets/local/_app/immutable/nodes/33.53769e9f.js index 500a79c50c..cb9d4d28f1 100644 --- a/ui/assets/local/_app/immutable/nodes/33.31f24430.js +++ b/ui/assets/local/_app/immutable/nodes/33.53769e9f.js @@ -1 +1 @@ -import{S as M,b as P,a as B,c as S,C as d,d as W,D as y,f as h,E as $,j as c,z as I,g as p,h as N,k as g,F as v,K as H,m as Z,p as x,q as ee,u as te,e as L,aa as re,ab as ne,a5 as j,w as J,x as O,y as Q,n as F}from"../chunks/index.0942deb7.js";import{p as oe}from"../chunks/stores.73c3690d.js";import{E as le,a as se,b as ie}from"../chunks/event-summary-table.14d935eb.js";import{E as fe,i as ae}from"../chunks/get-workflow-relationships.54c919d2.js";import{L as ue}from"../chunks/link.f0cc0bf5.js";import{t as me}from"../chunks/translate.135d909a.js";import{g as ce}from"../chunks/index.5fe2e895.js";import{b as pe}from"../chunks/events-service.f9e1ef0b.js";import{f as C,e as _e}from"../chunks/events.edd90912.js";import{w as ge}from"../chunks/workflow-run.80b64688.js";import{g as he}from"../chunks/route-for.ecd88549.js";function z(i,t,r){const e=i.slice();return e[18]=t[r],e}function D(i){let t,r,e,l;const f=[ke,we],s=[];function n(o,a){return o[3]?0:1}return r=n(i),e=s[r]=f[r](i),{c(){t=Z("h2"),e.c(),this.h()},l(o){t=x(o,"H2",{class:!0});var a=ee(t);e.l(a),a.forEach(g),this.h()},h(){te(t,"class","flex w-full items-center text-lg font-medium")},m(o,a){h(o,t,a),s[r].m(t,null),l=!0},p(o,a){let u=r;r=n(o),r===u?s[r].p(o,a):(I(),p(s[u],1,1,()=>{s[u]=null}),N(),e=s[r],e?e.p(o,a):(e=s[r]=f[r](o),e.c()),c(e,1),e.m(t,null))},i(o){l||(c(e),l=!0)},o(o){p(e),l=!1},d(o){o&&g(t),s[r].d()}}}function we(i){let t=i[0].displayName+"",r;return{c(){r=J(t)},l(e){r=O(e,t)},m(e,l){h(e,r,l)},p(e,l){l&1&&t!==(t=e[0].displayName+"")&&Q(r,t)},i:F,o:F,d(e){e&&g(r)}}}function ke(i){let t,r;return t=new ue({props:{href:i[3],$$slots:{default:[de]},$$scope:{ctx:i}}}),{c(){d(t.$$.fragment)},l(e){y(t.$$.fragment,e)},m(e,l){$(t,e,l),r=!0},p(e,l){const f={};l&8&&(f.href=e[3]),l&2097153&&(f.$$scope={dirty:l,ctx:e}),t.$set(f)},i(e){r||(c(t.$$.fragment,e),r=!0)},o(e){p(t.$$.fragment,e),r=!1},d(e){v(t,e)}}}function de(i){let t=i[0].displayName+"",r;return{c(){r=J(t)},l(e){r=O(e,t)},m(e,l){h(e,r,l)},p(e,l){l&1&&t!==(t=e[0].displayName+"")&&Q(r,t)},d(e){e&&g(r)}}}function G(i){let t,r;return t=new se({props:{loading:i[2],title:me("events.group-empty-state-title"),content:""}}),{c(){d(t.$$.fragment)},l(e){y(t.$$.fragment,e)},m(e,l){$(t,e,l),r=!0},p(e,l){const f={};l&4&&(f.loading=e[2]),t.$set(f)},i(e){r||(c(t.$$.fragment,e),r=!0)},o(e){p(t.$$.fragment,e),r=!1},d(e){v(t,e)}}}function K(i,t){let r,e,l;return e=new ie({props:{event:t[18],compact:T,expandAll:!0,initialItem:t[6],active:!0}}),{key:i,first:null,c(){r=L(),d(e.$$.fragment),this.h()},l(f){r=L(),y(e.$$.fragment,f),this.h()},h(){this.first=r},m(f,s){h(f,r,s),$(e,f,s),l=!0},p(f,s){t=f;const n={};s&16&&(n.event=t[18]),s&64&&(n.initialItem=t[6]),e.$set(n)},i(f){l||(c(e.$$.fragment,f),l=!0)},o(f){p(e.$$.fragment,f),l=!1},d(f){f&&g(r),v(e,f)}}}function ye(i){let t=[],r=new Map,e,l,f=i[4];const s=o=>`${o[18].id}-${o[18].timestamp}`;for(let o=0;o{n=null}),N()):(n=G(o),n.c(),c(n,1),n.m(e.parentNode,e)))},i(o){if(!l){for(let a=0;a{s=null}),N());const a={};o&2&&(a.history=n[1]),r.$set(a);const u={};o&32&&(u.updating=n[5]),o&2097236&&(u.$$scope={dirty:o,ctx:n}),l.$set(u)},i(n){f||(c(s),c(r.$$.fragment,n),c(l.$$.fragment,n),f=!0)},o(n){p(s),p(r.$$.fragment,n),p(l.$$.fragment,n),f=!1},d(n){s&&s.d(n),n&&g(t),v(r,n),n&&g(e),v(l,n)}}}const T=!0;function ve(i,t,r){let e,l,f,s,n,o,a,u,q,A,_,b,R,w;H(i,C,m=>r(1,_=m)),H(i,_e,m=>r(12,b=m)),H(i,ge,m=>r(14,R=m)),H(i,oe,m=>r(13,w=m));let E=!1;const U=()=>{j(C,_=[],_),r(2,E=!0)},V=async(m,k,Y)=>{(R.workflow.id!==k||!_.length)&&(r(2,E=!0),U(),j(C,_=await pe({namespace:m,workflowId:k,runId:Y,sort:"ascending"}),_),r(2,E=!1))};function X(m){const k=m==null?void 0:m.eventList.find(ae);return k?he({namespace:e,workflow:k.attributes.workflowExecution.workflowId,run:k.attributes.workflowExecution.runId}):""}return i.$$.update=()=>{i.$$.dirty&8192&&r(7,{namespace:e,workflow:l,run:f,id:s}=w.params,e,(r(11,l),r(13,w)),(r(10,f),r(13,w)),(r(8,s),r(13,w))),i.$$.dirty&3200&&V(e,l,f),i.$$.dirty&4098&&r(9,n=_.length?_:b==null?void 0:b.start),i.$$.dirty&512&&r(6,o=n==null?void 0:n[0]),i.$$.dirty&514&&r(5,a=n.length&&!_.length),i.$$.dirty&258&&r(0,u=ce(_).find(m=>m.id===s)),i.$$.dirty&1&&r(4,q=u?[u]:[]),i.$$.dirty&1&&r(3,A=X(u))},[u,_,E,A,q,a,o,e,s,n,f,l,b,w]}class be extends M{constructor(t){super(),P(this,t,ve,$e,B,{})}}function Ee(i){let t,r;return t=new be({}),{c(){d(t.$$.fragment)},l(e){y(t.$$.fragment,e)},m(e,l){$(t,e,l),r=!0},p:F,i(e){r||(c(t.$$.fragment,e),r=!0)},o(e){p(t.$$.fragment,e),r=!1},d(e){v(t,e)}}}class je extends M{constructor(t){super(),P(this,t,null,Ee,B,{})}}export{je as component}; +import{S as M,b as P,a as B,c as S,C as d,d as W,D as y,f as h,E as $,j as c,z as I,g as p,h as N,k as g,F as v,K as H,m as Z,p as x,q as ee,u as te,e as L,aa as re,ab as ne,a5 as j,w as J,x as O,y as Q,n as F}from"../chunks/index.0942deb7.js";import{p as oe}from"../chunks/stores.255470ec.js";import{E as le,a as se,b as ie}from"../chunks/event-summary-table.e279c965.js";import{E as fe,i as ae}from"../chunks/get-workflow-relationships.fae6d6c6.js";import{L as ue}from"../chunks/link.faba7c50.js";import{t as me}from"../chunks/translate.135d909a.js";import{g as ce}from"../chunks/index.5fe2e895.js";import{b as pe}from"../chunks/events-service.4b32e39d.js";import{f as C,e as _e}from"../chunks/events.a3eb82f4.js";import{w as ge}from"../chunks/workflow-run.27281c78.js";import{g as he}from"../chunks/route-for.18f9590b.js";function z(i,t,r){const e=i.slice();return e[18]=t[r],e}function D(i){let t,r,e,l;const f=[ke,we],s=[];function n(o,a){return o[3]?0:1}return r=n(i),e=s[r]=f[r](i),{c(){t=Z("h2"),e.c(),this.h()},l(o){t=x(o,"H2",{class:!0});var a=ee(t);e.l(a),a.forEach(g),this.h()},h(){te(t,"class","flex w-full items-center text-lg font-medium")},m(o,a){h(o,t,a),s[r].m(t,null),l=!0},p(o,a){let u=r;r=n(o),r===u?s[r].p(o,a):(I(),p(s[u],1,1,()=>{s[u]=null}),N(),e=s[r],e?e.p(o,a):(e=s[r]=f[r](o),e.c()),c(e,1),e.m(t,null))},i(o){l||(c(e),l=!0)},o(o){p(e),l=!1},d(o){o&&g(t),s[r].d()}}}function we(i){let t=i[0].displayName+"",r;return{c(){r=J(t)},l(e){r=O(e,t)},m(e,l){h(e,r,l)},p(e,l){l&1&&t!==(t=e[0].displayName+"")&&Q(r,t)},i:F,o:F,d(e){e&&g(r)}}}function ke(i){let t,r;return t=new ue({props:{href:i[3],$$slots:{default:[de]},$$scope:{ctx:i}}}),{c(){d(t.$$.fragment)},l(e){y(t.$$.fragment,e)},m(e,l){$(t,e,l),r=!0},p(e,l){const f={};l&8&&(f.href=e[3]),l&2097153&&(f.$$scope={dirty:l,ctx:e}),t.$set(f)},i(e){r||(c(t.$$.fragment,e),r=!0)},o(e){p(t.$$.fragment,e),r=!1},d(e){v(t,e)}}}function de(i){let t=i[0].displayName+"",r;return{c(){r=J(t)},l(e){r=O(e,t)},m(e,l){h(e,r,l)},p(e,l){l&1&&t!==(t=e[0].displayName+"")&&Q(r,t)},d(e){e&&g(r)}}}function G(i){let t,r;return t=new se({props:{loading:i[2],title:me("events.group-empty-state-title"),content:""}}),{c(){d(t.$$.fragment)},l(e){y(t.$$.fragment,e)},m(e,l){$(t,e,l),r=!0},p(e,l){const f={};l&4&&(f.loading=e[2]),t.$set(f)},i(e){r||(c(t.$$.fragment,e),r=!0)},o(e){p(t.$$.fragment,e),r=!1},d(e){v(t,e)}}}function K(i,t){let r,e,l;return e=new ie({props:{event:t[18],compact:T,expandAll:!0,initialItem:t[6],active:!0}}),{key:i,first:null,c(){r=L(),d(e.$$.fragment),this.h()},l(f){r=L(),y(e.$$.fragment,f),this.h()},h(){this.first=r},m(f,s){h(f,r,s),$(e,f,s),l=!0},p(f,s){t=f;const n={};s&16&&(n.event=t[18]),s&64&&(n.initialItem=t[6]),e.$set(n)},i(f){l||(c(e.$$.fragment,f),l=!0)},o(f){p(e.$$.fragment,f),l=!1},d(f){f&&g(r),v(e,f)}}}function ye(i){let t=[],r=new Map,e,l,f=i[4];const s=o=>`${o[18].id}-${o[18].timestamp}`;for(let o=0;o{n=null}),N()):(n=G(o),n.c(),c(n,1),n.m(e.parentNode,e)))},i(o){if(!l){for(let a=0;a{s=null}),N());const a={};o&2&&(a.history=n[1]),r.$set(a);const u={};o&32&&(u.updating=n[5]),o&2097236&&(u.$$scope={dirty:o,ctx:n}),l.$set(u)},i(n){f||(c(s),c(r.$$.fragment,n),c(l.$$.fragment,n),f=!0)},o(n){p(s),p(r.$$.fragment,n),p(l.$$.fragment,n),f=!1},d(n){s&&s.d(n),n&&g(t),v(r,n),n&&g(e),v(l,n)}}}const T=!0;function ve(i,t,r){let e,l,f,s,n,o,a,u,q,A,_,b,R,w;H(i,C,m=>r(1,_=m)),H(i,_e,m=>r(12,b=m)),H(i,ge,m=>r(14,R=m)),H(i,oe,m=>r(13,w=m));let E=!1;const U=()=>{j(C,_=[],_),r(2,E=!0)},V=async(m,k,Y)=>{(R.workflow.id!==k||!_.length)&&(r(2,E=!0),U(),j(C,_=await pe({namespace:m,workflowId:k,runId:Y,sort:"ascending"}),_),r(2,E=!1))};function X(m){const k=m==null?void 0:m.eventList.find(ae);return k?he({namespace:e,workflow:k.attributes.workflowExecution.workflowId,run:k.attributes.workflowExecution.runId}):""}return i.$$.update=()=>{i.$$.dirty&8192&&r(7,{namespace:e,workflow:l,run:f,id:s}=w.params,e,(r(11,l),r(13,w)),(r(10,f),r(13,w)),(r(8,s),r(13,w))),i.$$.dirty&3200&&V(e,l,f),i.$$.dirty&4098&&r(9,n=_.length?_:b==null?void 0:b.start),i.$$.dirty&512&&r(6,o=n==null?void 0:n[0]),i.$$.dirty&514&&r(5,a=n.length&&!_.length),i.$$.dirty&258&&r(0,u=ce(_).find(m=>m.id===s)),i.$$.dirty&1&&r(4,q=u?[u]:[]),i.$$.dirty&1&&r(3,A=X(u))},[u,_,E,A,q,a,o,e,s,n,f,l,b,w]}class be extends M{constructor(t){super(),P(this,t,ve,$e,B,{})}}function Ee(i){let t,r;return t=new be({}),{c(){d(t.$$.fragment)},l(e){y(t.$$.fragment,e)},m(e,l){$(t,e,l),r=!0},p:F,i(e){r||(c(t.$$.fragment,e),r=!0)},o(e){p(t.$$.fragment,e),r=!1},d(e){v(t,e)}}}class je extends M{constructor(t){super(),P(this,t,null,Ee,B,{})}}export{je as component}; diff --git a/ui/assets/local/_app/immutable/nodes/34.0d4eb2b8.js b/ui/assets/local/_app/immutable/nodes/34.f9137d14.js similarity index 91% rename from ui/assets/local/_app/immutable/nodes/34.0d4eb2b8.js rename to ui/assets/local/_app/immutable/nodes/34.f9137d14.js index d726b817ab..55f57520a4 100644 --- a/ui/assets/local/_app/immutable/nodes/34.0d4eb2b8.js +++ b/ui/assets/local/_app/immutable/nodes/34.f9137d14.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.0942deb7.js";import{p as U}from"../chunks/stores.73c3690d.js";import{E as V,a as X,b as Y}from"../chunks/event-summary-table.14d935eb.js";import{b as Z}from"../chunks/events-service.f9e1ef0b.js";import{e as x,b as N}from"../chunks/event-view.33fc78e9.js";import{f as S,e as ee}from"../chunks/events.edd90912.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.0942deb7.js";import{p as U}from"../chunks/stores.255470ec.js";import{E as V,a as X,b as Y}from"../chunks/event-summary-table.e279c965.js";import{b as Z}from"../chunks/events-service.4b32e39d.js";import{e as x,b as N}from"../chunks/event-view.f292d7b1.js";import{f as S,e as ee}from"../chunks/events.a3eb82f4.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.c60a48a6.js b/ui/assets/local/_app/immutable/nodes/35.3576e451.js similarity index 81% rename from ui/assets/local/_app/immutable/nodes/35.c60a48a6.js rename to ui/assets/local/_app/immutable/nodes/35.3576e451.js index d76b278fc9..bf978eaa1d 100644 --- a/ui/assets/local/_app/immutable/nodes/35.c60a48a6.js +++ b/ui/assets/local/_app/immutable/nodes/35.3576e451.js @@ -1 +1 @@ -import{r as a}from"../chunks/index.3158323b.js";import{g as s}from"../chunks/route-for.ecd88549.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.18f9590b.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.c60a48a6.js b/ui/assets/local/_app/immutable/nodes/36.3576e451.js similarity index 81% rename from ui/assets/local/_app/immutable/nodes/36.c60a48a6.js rename to ui/assets/local/_app/immutable/nodes/36.3576e451.js index d76b278fc9..bf978eaa1d 100644 --- a/ui/assets/local/_app/immutable/nodes/36.c60a48a6.js +++ b/ui/assets/local/_app/immutable/nodes/36.3576e451.js @@ -1 +1 @@ -import{r as a}from"../chunks/index.3158323b.js";import{g as s}from"../chunks/route-for.ecd88549.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.18f9590b.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.a265d511.js b/ui/assets/local/_app/immutable/nodes/37.02539a70.js similarity index 97% rename from ui/assets/local/_app/immutable/nodes/37.a265d511.js rename to ui/assets/local/_app/immutable/nodes/37.02539a70.js index 5b7cfaee43..a4487af19c 100644 --- a/ui/assets/local/_app/immutable/nodes/37.a265d511.js +++ b/ui/assets/local/_app/immutable/nodes/37.02539a70.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.0942deb7.js";import{p as dt}from"../chunks/stores.73c3690d.js";import{P as vt}from"../chunks/page-title.433b384d.js";import{t as A}from"../chunks/translate.135d909a.js";import{B as ce}from"../chunks/badge.5c29cec8.js";import{C as pt}from"../chunks/code-block.c6eabdb8.js";import{E as wt}from"../chunks/empty-state.64fbab21.js";import{I as bt}from"../chunks/icon.33308831.js";import{L as kt}from"../chunks/link.f0cc0bf5.js";import{T as gt,a as Et}from"../chunks/table-header-row.b9d52458.js";import{T as Tt}from"../chunks/table-row.9c997398.js";import{t as It,r as yt,b as le}from"../chunks/time-format.7dc1f425.js";import{w as Lt}from"../chunks/workflow-run.80b64688.js";import{k as Ge,m as Je,j as Qe}from"../chunks/format-event-attributes.1749c5f9.js";import{k as Xe,D as Ye}from"../chunks/format-time.5082c525.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.0942deb7.js";import{p as dt}from"../chunks/stores.255470ec.js";import{P as vt}from"../chunks/page-title.433b384d.js";import{t as A}from"../chunks/translate.135d909a.js";import{B as ce}from"../chunks/badge.5c29cec8.js";import{C as pt}from"../chunks/code-block.a5088abe.js";import{E as wt}from"../chunks/empty-state.64fbab21.js";import{I as bt}from"../chunks/icon.33308831.js";import{L as kt}from"../chunks/link.faba7c50.js";import{T as gt,a as Et}from"../chunks/table-header-row.b9d52458.js";import{T as Tt}from"../chunks/table-row.9c997398.js";import{t as It,r as yt,b as le}from"../chunks/time-format.aa1f006c.js";import{w as Lt}from"../chunks/workflow-run.27281c78.js";import{k as Ge,m as Je,j as Qe}from"../chunks/format-event-attributes.f47536f1.js";import{k as Xe,D as Ye}from"../chunks/format-time.5082c525.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.263ede6d.js b/ui/assets/local/_app/immutable/nodes/38.dbcb492a.js similarity index 95% rename from ui/assets/local/_app/immutable/nodes/38.263ede6d.js rename to ui/assets/local/_app/immutable/nodes/38.dbcb492a.js index d07424dea1..ea8bbf9c65 100644 --- a/ui/assets/local/_app/immutable/nodes/38.263ede6d.js +++ b/ui/assets/local/_app/immutable/nodes/38.dbcb492a.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.0942deb7.js";import{p as Y}from"../chunks/stores.73c3690d.js";import{P as re}from"../chunks/page-title.433b384d.js";import{t as q}from"../chunks/translate.135d909a.js";import{B as le}from"../chunks/button.c09134bf.js";import{C as ae}from"../chunks/code-block.c6eabdb8.js";import{E as se}from"../chunks/empty-state.64fbab21.js";import{L as ce}from"../chunks/loading.e7565465.js";import{S as ie,a as ue}from"../chunks/simple-select.4e19902f.js";import{T as fe}from"../chunks/toggle-switch.cc141600.js";import{a as me,b as pe}from"../chunks/query-service.fd7152f2.js";import{a as $e}from"../chunks/auth-user.a1d7e47f.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.0942deb7.js";import{p as Y}from"../chunks/stores.255470ec.js";import{P as re}from"../chunks/page-title.433b384d.js";import{t as q}from"../chunks/translate.135d909a.js";import{B as le}from"../chunks/button.72eef818.js";import{C as ae}from"../chunks/code-block.a5088abe.js";import{E as se}from"../chunks/empty-state.64fbab21.js";import{L as ce}from"../chunks/loading.e7565465.js";import{S as ie,a as ue}from"../chunks/simple-select.4e19902f.js";import{T as fe}from"../chunks/toggle-switch.cc141600.js";import{a as me,b as pe}from"../chunks/query-service.7b844b9a.js";import{a as $e}from"../chunks/auth-user.6dc931ea.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.e247916e.js b/ui/assets/local/_app/immutable/nodes/39.676da7f7.js similarity index 76% rename from ui/assets/local/_app/immutable/nodes/39.e247916e.js rename to ui/assets/local/_app/immutable/nodes/39.676da7f7.js index b0bb4fe535..c313f3d171 100644 --- a/ui/assets/local/_app/immutable/nodes/39.e247916e.js +++ b/ui/assets/local/_app/immutable/nodes/39.676da7f7.js @@ -1 +1 @@ -import{r}from"../chunks/index.3158323b.js";import{j as e}from"../chunks/route-for.ecd88549.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.18f9590b.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.b9252058.js b/ui/assets/local/_app/immutable/nodes/4.cc1f7d32.js similarity index 95% rename from ui/assets/local/_app/immutable/nodes/4.b9252058.js rename to ui/assets/local/_app/immutable/nodes/4.cc1f7d32.js index 0323f17666..1d6d33da64 100644 --- a/ui/assets/local/_app/immutable/nodes/4.b9252058.js +++ b/ui/assets/local/_app/immutable/nodes/4.cc1f7d32.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.0942deb7.js";import{E as x}from"../chunks/event-history-file-import.d2dbee6f.js";import{T as ee,a as G}from"../chunks/toggle-buttons.01bd60a8.js";import{t as H}from"../chunks/translate.135d909a.js";import{l as te}from"../chunks/namespaces.5c0c98b2.js";import{f as k}from"../chunks/route-for.ecd88549.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.0942deb7.js";import{E as x}from"../chunks/event-history-file-import.de8c0286.js";import{T as ee,a as G}from"../chunks/toggle-buttons.e3375436.js";import{t as H}from"../chunks/translate.135d909a.js";import{l as te}from"../chunks/namespaces.68caf21c.js";import{f as k}from"../chunks/route-for.18f9590b.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.ac51d9c9.js b/ui/assets/local/_app/immutable/nodes/40.56367dab.js similarity index 89% rename from ui/assets/local/_app/immutable/nodes/40.ac51d9c9.js rename to ui/assets/local/_app/immutable/nodes/40.56367dab.js index 3c9c733617..446852f4a7 100644 --- a/ui/assets/local/_app/immutable/nodes/40.ac51d9c9.js +++ b/ui/assets/local/_app/immutable/nodes/40.56367dab.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.0942deb7.js";import{p as P}from"../chunks/stores.73c3690d.js";import{P as W}from"../chunks/page-title.433b384d.js";import{t as C}from"../chunks/translate.135d909a.js";import{W as R}from"../chunks/workers-list.501e9be3.js";import{w as S}from"../chunks/workflow-run.80b64688.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.0942deb7.js";import{p as P}from"../chunks/stores.255470ec.js";import{P as W}from"../chunks/page-title.433b384d.js";import{t as C}from"../chunks/translate.135d909a.js";import{W as R}from"../chunks/workers-list.3a8ea58e.js";import{w as S}from"../chunks/workflow-run.27281c78.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.fc743280.js b/ui/assets/local/_app/immutable/nodes/41.5c0af3ef.js similarity index 94% rename from ui/assets/local/_app/immutable/nodes/41.fc743280.js rename to ui/assets/local/_app/immutable/nodes/41.5c0af3ef.js index aa5aacd2e6..49a971c3c2 100644 --- a/ui/assets/local/_app/immutable/nodes/41.fc743280.js +++ b/ui/assets/local/_app/immutable/nodes/41.5c0af3ef.js @@ -1 +1 @@ -import{S as fe,b as me,a as he,m as N,p as z,q as M,k as b,v as P,aw as le,a3 as ve,f as C,L as E,am as be,M 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,Q as Y,y as Ne}from"../chunks/index.0942deb7.js";import{g as ze}from"../chunks/navigation.83f47780.js";import{p as Me}from"../chunks/stores.73c3690d.js";import{P as Re}from"../chunks/page-title.433b384d.js";import{E as de}from"../chunks/empty-state.64fbab21.js";import{I as Ue}from"../chunks/input.828c22e1.js";import{t as U}from"../chunks/translate.135d909a.js";import{d as Ae}from"../chunks/workflow-service.61e0ba9f.js";import{l as oe,n as Ce}from"../chunks/namespaces.5c0c98b2.js";import{t as Oe}from"../chunks/toaster.60da8f1b.js";import{a as Pe}from"../chunks/route-for.ecd88549.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=M(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,O=f.slice(n,o).map((r,h)=>({index:h+n,data:r}))),s.$$.dirty&7170&&T&&x(f,w,_)},[u,w,a,m,O,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=M(e);t=z(o,"BUTTON",{class:!0});var p=M(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,O,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),O=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=M(l);i=z(h,"H1",{class:!0});var d=M(i);u=$(d,f),d.forEach(b),_=W(h),n=z(h,"P",{class:!0});var y=M(n);p=$(y,o),y.forEach(b),c=W(h),a=z(h,"FORM",{class:!0,role:!0});var L=M(a);B(m.$$.fragment,L),L.forEach(b),O=W(h),T=z(h,"DIV",{class:!0,"aria-label":!0});var g=M(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,O),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,Me,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(Pe({namespace:m}))):Oe.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 M,k as b,v as P,aw as le,a3 as ve,f as C,L as E,am as be,M 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,Q as Y,y as Ne}from"../chunks/index.0942deb7.js";import{g as ze}from"../chunks/navigation.dde0d4fa.js";import{p as Me}from"../chunks/stores.255470ec.js";import{P as Re}from"../chunks/page-title.433b384d.js";import{E as de}from"../chunks/empty-state.64fbab21.js";import{I as Ue}from"../chunks/input.1a8beba6.js";import{t as U}from"../chunks/translate.135d909a.js";import{d as Ae}from"../chunks/workflow-service.bd668cd0.js";import{l as oe,n as Ce}from"../chunks/namespaces.68caf21c.js";import{t as Oe}from"../chunks/toaster.cfecd6c1.js";import{a as Pe}from"../chunks/route-for.18f9590b.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=M(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,O=f.slice(n,o).map((r,h)=>({index:h+n,data:r}))),s.$$.dirty&7170&&T&&x(f,w,_)},[u,w,a,m,O,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=M(e);t=z(o,"BUTTON",{class:!0});var p=M(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,O,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),O=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=M(l);i=z(h,"H1",{class:!0});var d=M(i);u=$(d,f),d.forEach(b),_=W(h),n=z(h,"P",{class:!0});var y=M(n);p=$(y,o),y.forEach(b),c=W(h),a=z(h,"FORM",{class:!0,role:!0});var L=M(a);B(m.$$.fragment,L),L.forEach(b),O=W(h),T=z(h,"DIV",{class:!0,"aria-label":!0});var g=M(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,O),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,Me,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(Pe({namespace:m}))):Oe.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.d5306497.js b/ui/assets/local/_app/immutable/nodes/42.9f0c68cf.js similarity index 92% rename from ui/assets/local/_app/immutable/nodes/42.d5306497.js rename to ui/assets/local/_app/immutable/nodes/42.9f0c68cf.js index 2cb714d763..3ff3faf03f 100644 --- a/ui/assets/local/_app/immutable/nodes/42.d5306497.js +++ b/ui/assets/local/_app/immutable/nodes/42.9f0c68cf.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 w,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.0942deb7.js";import{p as Q}from"../chunks/stores.73c3690d.js";import{F as X,L as Y}from"../chunks/logo.f647e2df.js";import{P as Z}from"../chunks/page-title.433b384d.js";import{B as tt}from"../chunks/button.c09134bf.js";import{x as et}from"../chunks/route-for.ecd88549.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,x,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(),x=$("div"),A(g.$$.fragment),O=y(),_&&_.c(),this.h()},l(t){B(e.$$.fragment,t),s=w(t),a=b(t,"HEADER",{class:!0});var n=k(a);r=b(n,"IMG",{src:!0,alt:!0,class:!0}),h=w(n),B(d.$$.fragment,n),n.forEach(i),p=w(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=w(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=w(u),x=b(u,"DIV",{class:!0});var M=k(x);B(g.$$.fragment,M),M.forEach(i),O=w(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(x,"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,x),H(g,x,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 w,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.0942deb7.js";import{p as Q}from"../chunks/stores.255470ec.js";import{F as X,L as Y}from"../chunks/logo.a9749c30.js";import{P as Z}from"../chunks/page-title.433b384d.js";import{B as tt}from"../chunks/button.72eef818.js";import{x as et}from"../chunks/route-for.18f9590b.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,x,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(),x=$("div"),A(g.$$.fragment),O=y(),_&&_.c(),this.h()},l(t){B(e.$$.fragment,t),s=w(t),a=b(t,"HEADER",{class:!0});var n=k(a);r=b(n,"IMG",{src:!0,alt:!0,class:!0}),h=w(n),B(d.$$.fragment,n),n.forEach(i),p=w(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=w(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=w(u),x=b(u,"DIV",{class:!0});var M=k(x);B(g.$$.fragment,M),M.forEach(i),O=w(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(x,"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,x),H(g,x,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.d5306497.js b/ui/assets/local/_app/immutable/nodes/43.9f0c68cf.js similarity index 92% rename from ui/assets/local/_app/immutable/nodes/43.d5306497.js rename to ui/assets/local/_app/immutable/nodes/43.9f0c68cf.js index 2cb714d763..3ff3faf03f 100644 --- a/ui/assets/local/_app/immutable/nodes/43.d5306497.js +++ b/ui/assets/local/_app/immutable/nodes/43.9f0c68cf.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 w,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.0942deb7.js";import{p as Q}from"../chunks/stores.73c3690d.js";import{F as X,L as Y}from"../chunks/logo.f647e2df.js";import{P as Z}from"../chunks/page-title.433b384d.js";import{B as tt}from"../chunks/button.c09134bf.js";import{x as et}from"../chunks/route-for.ecd88549.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,x,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(),x=$("div"),A(g.$$.fragment),O=y(),_&&_.c(),this.h()},l(t){B(e.$$.fragment,t),s=w(t),a=b(t,"HEADER",{class:!0});var n=k(a);r=b(n,"IMG",{src:!0,alt:!0,class:!0}),h=w(n),B(d.$$.fragment,n),n.forEach(i),p=w(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=w(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=w(u),x=b(u,"DIV",{class:!0});var M=k(x);B(g.$$.fragment,M),M.forEach(i),O=w(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(x,"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,x),H(g,x,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 w,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.0942deb7.js";import{p as Q}from"../chunks/stores.255470ec.js";import{F as X,L as Y}from"../chunks/logo.a9749c30.js";import{P as Z}from"../chunks/page-title.433b384d.js";import{B as tt}from"../chunks/button.72eef818.js";import{x as et}from"../chunks/route-for.18f9590b.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,x,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(),x=$("div"),A(g.$$.fragment),O=y(),_&&_.c(),this.h()},l(t){B(e.$$.fragment,t),s=w(t),a=b(t,"HEADER",{class:!0});var n=k(a);r=b(n,"IMG",{src:!0,alt:!0,class:!0}),h=w(n),B(d.$$.fragment,n),n.forEach(i),p=w(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=w(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=w(u),x=b(u,"DIV",{class:!0});var M=k(x);B(g.$$.fragment,M),M.forEach(i),O=w(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(x,"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,x),H(g,x,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.0e020872.js b/ui/assets/local/_app/immutable/nodes/5.0e020872.js deleted file mode 100644 index 145c1cf370..0000000000 --- a/ui/assets/local/_app/immutable/nodes/5.0e020872.js +++ /dev/null @@ -1 +0,0 @@ -import{r as o,a}from"../chunks/route-for-api.f2500de4.js";import{a as c}from"../chunks/search-attributes.06872bde.js";import{L as A}from"../chunks/layout.00d22cc5.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/5.b154ce54.js b/ui/assets/local/_app/immutable/nodes/5.b154ce54.js new file mode 100644 index 0000000000..d512e6d81a --- /dev/null +++ b/ui/assets/local/_app/immutable/nodes/5.b154ce54.js @@ -0,0 +1 @@ +import{r as n,a as b}from"../chunks/route-for-api.4c8e7aa5.js";import{e as u}from"../chunks/screaming-enums.7a4380bd.js";import{a as m}from"../chunks/search-attributes.ed984efc.js";import{L as d}from"../chunks/layout.00d22cc5.js";const p=async(e,s=fetch)=>{try{const t=n("search-attributes",{namespace:e}),r=await b(t,{request:s}),o={...r.customAttributes},a={...r.systemAttributes};return Object.entries(o).forEach(([c,i])=>{o[c]=u(i)}),Object.entries(a).forEach(([c,i])=>{a[c]=u(i)}),{customAttributes:o,systemAttributes:a}}catch(t){return console.error("Error fetching search attributes for namespace",e,t),{customAttributes:{},systemAttributes:{}}}},f=async({params:e,parent:s,fetch:t})=>{await s();const r=await p(e.namespace,t);m.set(r)},y=Object.freeze(Object.defineProperty({__proto__:null,load:f},Symbol.toStringTag,{value:"Module"}));export{d as component,y as universal}; diff --git a/ui/assets/local/_app/immutable/nodes/7.a95b78e0.js b/ui/assets/local/_app/immutable/nodes/7.940a302e.js similarity index 95% rename from ui/assets/local/_app/immutable/nodes/7.a95b78e0.js rename to ui/assets/local/_app/immutable/nodes/7.940a302e.js index 4f4e0252a7..aea77fa445 100644 --- a/ui/assets/local/_app/immutable/nodes/7.a95b78e0.js +++ b/ui/assets/local/_app/immutable/nodes/7.940a302e.js @@ -1 +1 @@ -import{S as ve,b as Ie,a as Ee,m as L,C as P,c as J,w as G,p as j,q as O,D as W,k as _,d as Y,x as K,u as z,f as y,L as q,E as V,y as he,j as w,g as $,F as M,K as X,n as ae,i as mt,A as se,a0 as ie,a1 as ue,e as ke,z as pe,h as de,a7 as pt,s as eo,a5 as le,o as dt,a6 as Fe,a3 as _t,a4 as gt,G as wt,H as ht,I as $t,J as kt}from"../chunks/index.0942deb7.js";import{p as Me}from"../chunks/stores.73c3690d.js";import{L as qe}from"../chunks/link.f0cc0bf5.js";import{t as k}from"../chunks/translate.135d909a.js";import{w as bt}from"../chunks/workflows.13c60c9c.js";import{a as Ve,g as $e,h as Re,i as Ce,j as Ae,k as ye}from"../chunks/route-for.ecd88549.js";import{L as to}from"../chunks/loading.e7565465.js";import{f as vt}from"../chunks/index.2fa3ca4d.js";import{T as oo}from"../chunks/toggle-switch.cc141600.js";import{T as Ne}from"../chunks/tooltip.ea285ef3.js";import{a as Se,e as Je}from"../chunks/event-view.33fc78e9.js";import{w as It}from"../chunks/singletons.0a6e865f.js";import{C as ro}from"../chunks/checkbox.7cf45921.js";import{I as Be}from"../chunks/input.828c22e1.js";import{R as no,a as lo}from"../chunks/radio-input.cbaf2baa.js";import{R as be,A as Ye}from"../chunks/workflow-actions.6f88149c.js";import{r as Et,e as Pe,t as ze,i as so}from"../chunks/events.edd90912.js";import{B as ao}from"../chunks/button.c09134bf.js";import{C as fo}from"../chunks/code-block.c6eabdb8.js";import{B as Ue}from"../chunks/badge.5c29cec8.js";import{I as io}from"../chunks/icon.33308831.js";import{d as uo}from"../chunks/menu.55d17299.js";import{M as co}from"../chunks/menu-divider.79623dfc.js";import{M as De}from"../chunks/modal.cb157ac8.js";import{S as mo}from"../chunks/split-button.5ab393f2.js";import{t as po,c as _o,s as go,r as wo,f as ho}from"../chunks/workflow-service.61e0ba9f.js";import{a as Tt}from"../chunks/auth-user.a1d7e47f.js";import{c as $o}from"../chunks/core-user.20a8d8a5.js";import{p as ko,i as bo,c as vo}from"../chunks/data-encoder-config.74f5c7e0.js";import{p as Io}from"../chunks/persist-store.dd882958.js";import{s as Eo}from"../chunks/settings.424dea30.js";import{t as He}from"../chunks/toaster.60da8f1b.js";import{r as ge,w as We,i as To}from"../chunks/workflow-run.80b64688.js";import{w as Ro,a as Co,f as Ge}from"../chunks/workflow-terminate-enabled.abf4a597.js";import{w as Ao}from"../chunks/write-actions-are-allowed.7f76f8ee.js";import{W as yo}from"../chunks/workflow-status.833cfe09.js";import{A as Rt}from"../chunks/alert.c46cfdd9.js";import{C as Ke,g as Do,a as So,b as Po}from"../chunks/pollers-service.b55a2a09.js";import{C as Wo}from"../chunks/index.ad79a693.js";import{T as Vo,a as Mo,b as Te}from"../chunks/tab.88eb698c.js";import{h as qo}from"../chunks/has.233e577a.js";import{g as Ho,a as Fo,b as No,p as Bo,c as Uo}from"../chunks/task-queue-compatibility.cf5696f8.js";import{c as Lo,d as jo}from"../chunks/decode-payload.3d6f13eb.js";import{f as Oo}from"../chunks/events-service.f9e1ef0b.js";function Qo(n){let o=k("workflows.back-to-workflows")+"",e;return{c(){e=G(o)},l(t){e=K(t,o)},m(t,r){y(t,e,r)},p:ae,d(t){t&&_(e)}}}function Jo(n){let o,e,t,r,l,s,i=n[0].statusCode+"",f,u,p,a,c,g,v=n[0].statusText+"",T,I;return t=new qe({props:{href:`${Ve({namespace:n[2]})}?${n[3]}`,"data-testid":"back-to-workflows",icon:"chevron-left",$$slots:{default:[Qo]},$$scope:{ctx:n}}}),{c(){o=L("header"),e=L("div"),P(t.$$.fragment),r=J(),l=L("div"),s=L("h1"),f=G(i),u=J(),p=L("p"),a=G(n[1]),c=J(),g=L("p"),T=G(v),this.h()},l(R){o=j(R,"HEADER",{class:!0});var N=O(o);e=j(N,"DIV",{class:!0});var d=O(e);W(t.$$.fragment,d),d.forEach(_),N.forEach(_),r=Y(R),l=j(R,"DIV",{class:!0});var S=O(l);s=j(S,"H1",{class:!0});var A=O(s);f=K(A,i),A.forEach(_),u=Y(S),p=j(S,"P",{class:!0});var Q=O(p);a=K(Q,n[1]),Q.forEach(_),c=Y(S),g=j(S,"P",{class:!0});var b=O(g);T=K(b,v),b.forEach(_),S.forEach(_),this.h()},h(){z(e,"class","mb-4 block"),z(o,"class","mb-4 flex flex-col gap-1"),z(s,"class","leading-0 text-[12rem] font-semibold"),z(p,"class","-mt-12 text-lg"),z(g,"class","text-2xl font-bold text-red-700"),z(l,"class","text-center align-middle")},m(R,N){y(R,o,N),q(o,e),V(t,e,null),y(R,r,N),y(R,l,N),q(l,s),q(s,f),q(l,u),q(l,p),q(p,a),q(l,c),q(l,g),q(g,T),I=!0},p(R,[N]){const d={};N&12&&(d.href=`${Ve({namespace:R[2]})}?${R[3]}`),N&32&&(d.$$scope={dirty:N,ctx:R}),t.$set(d),(!I||N&1)&&i!==(i=R[0].statusCode+"")&&he(f,i),(!I||N&2)&&he(a,R[1]),(!I||N&1)&&v!==(v=R[0].statusText+"")&&he(T,v)},i(R){I||(w(t.$$.fragment,R),I=!0)},o(R){$(t.$$.fragment,R),I=!1},d(R){R&&_(o),M(t),R&&_(r),R&&_(l)}}}function Yo(n,o,e){let t,r,l,s;X(n,Me,f=>e(4,l=f)),X(n,bt,f=>e(3,s=f));let{error:i}=o;return n.$$set=f=>{"error"in f&&e(0,i=f.error)},n.$$.update=()=>{n.$$.dirty&16&&e(2,{namespace:t}=l.params,t),n.$$.dirty&1&&e(1,r=i.statusCode===404?k("workflows.workflow-404-title"):k("workflows.workflow-error-title"))},[i,r,t,s,l]}class zo extends ve{constructor(o){super(),Ie(this,o,Yo,Jo,Ee,{error:0})}}function Go(n){let o,e;return o=new oo({props:{label:k("common.auto-refresh"),labelPosition:"left",id:"autorefresh",checked:n[1]}}),o.$on("change",function(){mt(n[0])&&n[0].apply(this,arguments)}),{c(){P(o.$$.fragment)},l(t){W(o.$$.fragment,t)},m(t,r){V(o,t,r),e=!0},p(t,r){n=t;const l={};r&2&&(l.checked=n[1]),o.$set(l)},i(t){e||(w(o.$$.fragment,t),e=!0)},o(t){$(o.$$.fragment,t),e=!1},d(t){M(o,t)}}}function Ko(n){let o,e;return o=new Ne({props:{bottomLeft:!0,text:k("common.auto-refresh-tooltip",{interval:"15"}),$$slots:{default:[Go]},$$scope:{ctx:n}}}),{c(){P(o.$$.fragment)},l(t){W(o.$$.fragment,t)},m(t,r){V(o,t,r),e=!0},p(t,[r]){const l={};r&11&&(l.$$scope={dirty:r,ctx:t}),o.$set(l)},i(t){e||(w(o.$$.fragment,t),e=!0)},o(t){$(o.$$.fragment,t),e=!1},d(t){M(o,t)}}}function Xo(n,o,e){let t,r;X(n,Se,s=>e(2,r=s));let{onChange:l}=o;return n.$$set=s=>{"onChange"in s&&e(0,l=s.onChange)},n.$$.update=()=>{n.$$.dirty&4&&e(1,t=r==="on")},[l,t,r]}class Zo extends ve{constructor(o){super(),Ie(this,o,Xo,Ko,Ee,{onChange:0})}}function Xe(n,o,e){const t=n.slice();return t[6]=o[e],t}function Ze(n){let o,e;return o=new lo({props:{id:"reset-event-"+n[6].id,value:n[6].id,label:n[6].id+" - "+n[6].eventType}}),{c(){P(o.$$.fragment)},l(t){W(o.$$.fragment,t)},m(t,r){V(o,t,r),e=!0},p(t,r){const l={};r&8&&(l.id="reset-event-"+t[6].id),r&8&&(l.value=t[6].id),r&8&&(l.label=t[6].id+" - "+t[6].eventType),o.$set(l)},i(t){e||(w(o.$$.fragment,t),e=!0)},o(t){$(o.$$.fragment,t),e=!1},d(t){M(o,t)}}}function xo(n){let o,e,t=n[3],r=[];for(let s=0;s$(r[s],1,1,()=>{r[s]=null});return{c(){for(let s=0;sie(s,"value",u)),{c(){o=L("div"),P(e.$$.fragment),t=J(),P(r.$$.fragment),l=J(),P(s.$$.fragment),this.h()},l(a){o=j(a,"DIV",{class:!0});var c=O(o);W(e.$$.fragment,c),t=Y(c),W(r.$$.fragment,c),l=Y(c),W(s.$$.fragment,c),c.forEach(_),this.h()},h(){z(o,"class","flex w-full flex-col gap-4")},m(a,c){y(a,o,c),V(e,o,null),q(o,t),V(r,o,null),q(o,l),V(s,o,null),f=!0},p(a,[c]){const g={};c&4&&(g.group=a[2]),c&520&&(g.$$scope={dirty:c,ctx:a}),e.$set(g);const v={};c&1&&(v.checked=a[0]===be.Signal),r.$set(v);const T={};!i&&c&2&&(i=!0,T.value=a[1],ue(()=>i=!1)),s.$set(T)},i(a){f||(w(e.$$.fragment,a),w(r.$$.fragment,a),w(s.$$.fragment,a),f=!0)},o(a){$(e.$$.fragment,a),$(r.$$.fragment,a),$(s.$$.fragment,a),f=!1},d(a){a&&_(o),M(e),M(r),M(s)}}}function tr(n,o,e){let t;X(n,Et,u=>e(3,t=u));let{resetReapplyType:r=be.Signal}=o,{reason:l=""}=o,{eventId:s}=o;const i=u=>{e(0,r=u.detail.checked?be.Signal:be.None)};function f(u){l=u,e(1,l)}return n.$$set=u=>{"resetReapplyType"in u&&e(0,r=u.resetReapplyType),"reason"in u&&e(1,l=u.reason),"eventId"in u&&e(2,s=u.eventId)},[r,l,s,t,i,f]}class or extends ve{constructor(o){super(),Ie(this,o,tr,er,Ee,{resetReapplyType:0,reason:1,eventId:2})}}const Ct=Io("resetWorkflows",{}),rr=n=>!n.disableWriteActions&&!n.workflowResetDisabled,nr=n=>!n.disableWriteActions&&!n.workflowSignalDisabled;function xe(n,o,e){const t=n.slice();return t[65]=o[e].onClick,t[66]=o[e].destructive,t[67]=o[e].label,t[68]=o[e].allowed,t[69]=o[e].testId,t[70]=o[e].tooltip,t}function lr(n){let o,e;return o=new Ne({props:{bottomRight:!0,width:200,text:n[2],hide:n[3],$$slots:{default:[fr]},$$scope:{ctx:n}}}),{c(){P(o.$$.fragment)},l(t){W(o.$$.fragment,t)},m(t,r){V(o,t,r),e=!0},p(t,r){const l={};r[0]&4&&(l.text=t[2]),r[0]&8&&(l.hide=t[3]),r[0]&520|r[2]&2048&&(l.$$scope={dirty:r,ctx:t}),o.$set(l)},i(t){e||(w(o.$$.fragment,t),e=!0)},o(t){$(o.$$.fragment,t),e=!1},d(t){M(o,t)}}}function sr(n){let o,e;return o=new mo({props:{id:"workflow-actions",position:"right",disabled:n[18],primaryActionDisabled:!n[19]||n[0],label:k("workflows.request-cancellation"),menuLabel:k("workflows.workflow-actions"),$$slots:{default:[cr]},$$scope:{ctx:n}}}),o.$on("click",n[41]),{c(){P(o.$$.fragment)},l(t){W(o.$$.fragment,t)},m(t,r){V(o,t,r),e=!0},p(t,r){const l={};r[0]&262144&&(l.disabled=t[18]),r[0]&524289&&(l.primaryActionDisabled=!t[19]||t[0]),r[0]&131072|r[2]&2048&&(l.$$scope={dirty:r,ctx:t}),o.$set(l)},i(t){e||(w(o.$$.fragment,t),e=!0)},o(t){$(o.$$.fragment,t),e=!1},d(t){M(o,t)}}}function ar(n){let o=k("workflows.reset")+"",e;return{c(){e=G(o)},l(t){e=K(t,o)},m(t,r){y(t,e,r)},p:ae,d(t){t&&_(e)}}}function fr(n){let o,e;return o=new ao({props:{"aria-label":k("workflows.reset"),disabled:!n[3],variant:"primary",$$slots:{default:[ar]},$$scope:{ctx:n}}}),o.$on("click",n[42]),{c(){P(o.$$.fragment)},l(t){W(o.$$.fragment,t)},m(t,r){V(o,t,r),e=!0},p(t,r){const l={};r[0]&8&&(l.disabled=!t[3]),r[2]&2048&&(l.$$scope={dirty:r,ctx:t}),o.$set(l)},i(t){e||(w(o.$$.fragment,t),e=!0)},o(t){$(o.$$.fragment,t),e=!1},d(t){M(o,t)}}}function et(n){let o,e;return o=new co({}),{c(){P(o.$$.fragment)},l(t){W(o.$$.fragment,t)},m(t,r){V(o,t,r),e=!0},i(t){e||(w(o.$$.fragment,t),e=!0)},o(t){$(o.$$.fragment,t),e=!1},d(t){M(o,t)}}}function ir(n){let o=n[67]+"",e;return{c(){e=G(o)},l(t){e=K(t,o)},m(t,r){y(t,e,r)},p(t,r){r[0]&131072&&o!==(o=t[67]+"")&&he(e,o)},d(t){t&&_(e)}}}function ur(n){let o,e,t;return o=new uo({props:{destructive:n[66],disabled:!n[68],"data-testid":n[69],$$slots:{default:[ir]},$$scope:{ctx:n}}}),o.$on("click",function(){mt(n[65])&&n[65].apply(this,arguments)}),{c(){P(o.$$.fragment),e=J()},l(r){W(o.$$.fragment,r),e=Y(r)},m(r,l){V(o,r,l),y(r,e,l),t=!0},p(r,l){n=r;const s={};l[0]&131072&&(s.destructive=n[66]),l[0]&131072&&(s.disabled=!n[68]),l[0]&131072&&(s["data-testid"]=n[69]),l[0]&131072|l[2]&2048&&(s.$$scope={dirty:l,ctx:n}),o.$set(s)},i(r){t||(w(o.$$.fragment,r),t=!0)},o(r){$(o.$$.fragment,r),t=!1},d(r){M(o,r),r&&_(e)}}}function tt(n){let o,e,t,r=n[66]&&et();return e=new Ne({props:{text:n[70],hide:!n[70],width:200,left:!0,$$slots:{default:[ur]},$$scope:{ctx:n}}}),{c(){r&&r.c(),o=J(),P(e.$$.fragment)},l(l){r&&r.l(l),o=Y(l),W(e.$$.fragment,l)},m(l,s){r&&r.m(l,s),y(l,o,s),V(e,l,s),t=!0},p(l,s){l[66]?r?s[0]&131072&&w(r,1):(r=et(),r.c(),w(r,1),r.m(o.parentNode,o)):r&&(pe(),$(r,1,1,()=>{r=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){t||(w(r),w(e.$$.fragment,l),t=!0)},o(l){$(r),$(e.$$.fragment,l),t=!1},d(l){r&&r.d(l),l&&_(o),M(e,l)}}}function cr(n){let o,e,t=n[17],r=[];for(let s=0;s$(r[s],1,1,()=>{r[s]=null});return{c(){for(let s=0;sie(o,"eventId",s)),se.push(()=>ie(o,"resetReapplyType",i)),se.push(()=>ie(o,"reason",f)),{c(){P(o.$$.fragment)},l(p){W(o.$$.fragment,p)},m(p,a){V(o,p,a),l=!0},p(p,a){const c={};!e&&a[0]&8192&&(e=!0,c.eventId=p[13],ue(()=>e=!1)),!t&&a[0]&4096&&(t=!0,c.resetReapplyType=p[12],ue(()=>t=!1)),!r&&a[0]&16384&&(r=!0,c.reason=p[14],ue(()=>r=!1)),o.$set(c)},i(p){l||(w(o.$$.fragment,p),l=!0)},o(p){$(o.$$.fragment,p),l=!1},d(p){M(o,p)}}}function dr(n){let o,e=k("workflows.cancel-modal-title")+"",t;return{c(){o=L("h3"),t=G(e),this.h()},l(r){o=j(r,"H3",{slot:!0});var l=O(o);t=K(l,e),l.forEach(_),this.h()},h(){z(o,"slot","title")},m(r,l){y(r,o,l),q(o,t)},p:ae,d(r){r&&_(o)}}}function _r(n){let o,e=k("workflows.cancel-modal-confirmation")+"",t;return{c(){o=L("p"),t=G(e)},l(r){o=j(r,"P",{});var l=O(o);t=K(l,e),l.forEach(_)},m(r,l){y(r,o,l),q(o,t)},p:ae,d(r){r&&_(o)}}}function gr(n){let o,e=k("workflows.terminate-modal-title")+"",t;return{c(){o=L("h3"),t=G(e),this.h()},l(r){o=j(r,"H3",{slot:!0});var l=O(o);t=K(l,e),l.forEach(_),this.h()},h(){z(o,"slot","title")},m(r,l){y(r,o,l),q(o,t)},p:ae,d(r){r&&_(o)}}}function wr(n){let o,e,t=k("workflows.terminate-modal-confirmation")+"",r,l,s,i,f;function u(a){n[50](a)}let p={id:"workflow-termination-reason",class:"mt-4",placeholder:k("common.reason-placeholder"),label:k("common.reason-placeholder"),labelHidden:!0};return n[4]!==void 0&&(p.value=n[4]),s=new Be({props:p}),se.push(()=>ie(s,"value",u)),{c(){o=L("div"),e=L("p"),r=G(t),l=J(),P(s.$$.fragment),this.h()},l(a){o=j(a,"DIV",{slot:!0});var c=O(o);e=j(c,"P",{});var g=O(e);r=K(g,t),g.forEach(_),l=Y(c),W(s.$$.fragment,c),c.forEach(_),this.h()},h(){z(o,"slot","content")},m(a,c){y(a,o,c),q(o,e),q(e,r),q(o,l),V(s,o,null),f=!0},p(a,c){const g={};!i&&c[0]&16&&(i=!0,g.value=a[4],ue(()=>i=!1)),s.$set(g)},i(a){f||(w(s.$$.fragment,a),f=!0)},o(a){$(s.$$.fragment,a),f=!1},d(a){a&&_(o),M(s)}}}function hr(n){let o,e=k("workflows.signal-modal-title")+"",t;return{c(){o=L("h3"),t=G(e),this.h()},l(r){o=j(r,"H3",{slot:!0});var l=O(o);t=K(l,e),l.forEach(_),this.h()},h(){z(o,"slot","title")},m(r,l){y(r,o,l),q(o,t)},p:ae,d(r){r&&_(o)}}}function $r(n){let o,e,t,r,l,s,i=k("workflows.signal-payload-input-label")+"",f,u,p,a=k("workflows.signal-payload-input-label-hint")+"",c,g,v,T;function I(d){n[53](d)}let R={id:"signal-name",label:k("workflows.signal-name-label"),required:!0};n[6]!==void 0&&(R.value=n[6]),e=new Be({props:R}),se.push(()=>ie(e,"value",I));let N={class:"max-h-80 overflow-y-scroll overscroll-contain",content:n[5],editable:!0,copyable:!1};return v=new fo({props:N}),n[54](v),v.$on("change",n[26]),{c(){o=L("div"),P(e.$$.fragment),r=J(),l=L("div"),s=L("span"),f=G(i),u=J(),p=L("span"),c=G(a),g=J(),P(v.$$.fragment),this.h()},l(d){o=j(d,"DIV",{slot:!0,class:!0});var S=O(o);W(e.$$.fragment,S),r=Y(S),l=j(S,"DIV",{});var A=O(l);s=j(A,"SPAN",{class:!0});var Q=O(s);f=K(Q,i),Q.forEach(_),u=Y(A),p=j(A,"SPAN",{class:!0});var b=O(p);c=K(b,a),b.forEach(_),g=Y(A),W(v.$$.fragment,A),A.forEach(_),S.forEach(_),this.h()},h(){z(s,"class","font-secondary text-sm font-medium"),z(p,"class","font-secondary text-xs font-light italic"),z(o,"slot","content"),z(o,"class","flex flex-col gap-4")},m(d,S){y(d,o,S),V(e,o,null),q(o,r),q(o,l),q(l,s),q(s,f),q(l,u),q(l,p),q(p,c),q(l,g),V(v,l,null),T=!0},p(d,S){const A={};!t&&S[0]&64&&(t=!0,A.value=d[6],ue(()=>t=!1)),e.$set(A);const Q={};S[0]&32&&(Q.content=d[5]),v.$set(Q)},i(d){T||(w(e.$$.fragment,d),w(v.$$.fragment,d),T=!0)},o(d){$(e.$$.fragment,d),$(v.$$.fragment,d),T=!1},d(d){d&&_(o),M(e),n[54](null),M(v)}}}function kr(n){let o,e,t,r,l,s,i,f,u,p,a,c,g,v,T,I,R,N,d;const S=[sr,lr],A=[];function Q(m,D){return m[1]?0:1}o=Q(n),e=A[o]=S[o](n);function b(m){n[46](m)}function H(m){n[47](m)}let F={id:"reset-confirmation-modal","data-testid":"reset-confirmation-modal",confirmText:k("common.confirm"),cancelText:k("common.cancel"),confirmDisabled:!n[20],$$slots:{content:[pr],title:[mr]},$$scope:{ctx:n}};n[11]!==void 0&&(F.error=n[11]),n[9]!==void 0&&(F.open=n[9]),r=new De({props:F}),se.push(()=>ie(r,"error",b)),se.push(()=>ie(r,"open",H)),r.$on("confirmModal",n[28]),r.$on("cancelModal",n[23]);function B(m){n[48](m)}function U(m){n[49](m)}let x={id:"cancel-confirmation-modal","data-testid":"cancel-confirmation-modal",confirmText:k("common.confirm"),cancelText:k("common.cancel"),loading:n[15],confirmType:"destructive",$$slots:{content:[_r],title:[dr]},$$scope:{ctx:n}};n[11]!==void 0&&(x.error=n[11]),n[7]!==void 0&&(x.open=n[7]),f=new De({props:x}),se.push(()=>ie(f,"error",B)),se.push(()=>ie(f,"open",U)),f.$on("confirmModal",n[25]);function Z(m){n[51](m)}function C(m){n[52](m)}let E={id:"terminate-confirmation-modal","data-testid":"terminate-confirmation-modal",confirmText:k("workflows.terminate"),cancelText:k("common.cancel"),confirmType:"destructive",$$slots:{content:[wr],title:[gr]},$$scope:{ctx:n}};n[11]!==void 0&&(E.error=n[11]),n[8]!==void 0&&(E.open=n[8]),c=new De({props:E}),se.push(()=>ie(c,"error",Z)),se.push(()=>ie(c,"open",C)),c.$on("cancelModal",n[21]),c.$on("confirmModal",n[24]);function re(m){n[55](m)}function ne(m){n[56](m)}let oe={id:"signal-confirmation-modal","data-testid":"signal-confirmation-modal",confirmText:k("common.submit"),cancelText:k("common.cancel"),confirmDisabled:!n[6],$$slots:{content:[$r],title:[hr]},$$scope:{ctx:n}};return n[11]!==void 0&&(oe.error=n[11]),n[10]!==void 0&&(oe.open=n[10]),I=new De({props:oe}),se.push(()=>ie(I,"error",re)),se.push(()=>ie(I,"open",ne)),I.$on("cancelModal",n[22]),I.$on("confirmModal",n[27]),{c(){e.c(),t=J(),P(r.$$.fragment),i=J(),P(f.$$.fragment),a=J(),P(c.$$.fragment),T=J(),P(I.$$.fragment)},l(m){e.l(m),t=Y(m),W(r.$$.fragment,m),i=Y(m),W(f.$$.fragment,m),a=Y(m),W(c.$$.fragment,m),T=Y(m),W(I.$$.fragment,m)},m(m,D){A[o].m(m,D),y(m,t,D),V(r,m,D),y(m,i,D),V(f,m,D),y(m,a,D),V(c,m,D),y(m,T,D),V(I,m,D),d=!0},p(m,D){let te=o;o=Q(m),o===te?A[o].p(m,D):(pe(),$(A[te],1,1,()=>{A[te]=null}),de(),e=A[o],e?e.p(m,D):(e=A[o]=S[o](m),e.c()),w(e,1),e.m(t.parentNode,t));const fe={};D[0]&1048576&&(fe.confirmDisabled=!m[20]),D[0]&28672|D[2]&2048&&(fe.$$scope={dirty:D,ctx:m}),!l&&D[0]&2048&&(l=!0,fe.error=m[11],ue(()=>l=!1)),!s&&D[0]&512&&(s=!0,fe.open=m[9],ue(()=>s=!1)),r.$set(fe);const we={};D[0]&32768&&(we.loading=m[15]),D[2]&2048&&(we.$$scope={dirty:D,ctx:m}),!u&&D[0]&2048&&(u=!0,we.error=m[11],ue(()=>u=!1)),!p&&D[0]&128&&(p=!0,we.open=m[7],ue(()=>p=!1)),f.$set(we);const ce={};D[0]&16|D[2]&2048&&(ce.$$scope={dirty:D,ctx:m}),!g&&D[0]&2048&&(g=!0,ce.error=m[11],ue(()=>g=!1)),!v&&D[0]&256&&(v=!0,ce.open=m[8],ue(()=>v=!1)),c.$set(ce);const me={};D[0]&64&&(me.confirmDisabled=!m[6]),D[0]&65632|D[2]&2048&&(me.$$scope={dirty:D,ctx:m}),!R&&D[0]&2048&&(R=!0,me.error=m[11],ue(()=>R=!1)),!N&&D[0]&1024&&(N=!0,me.open=m[10],ue(()=>N=!1)),I.$set(me)},i(m){d||(w(e),w(r.$$.fragment,m),w(f.$$.fragment,m),w(c.$$.fragment,m),w(I.$$.fragment,m),d=!0)},o(m){$(e),$(r.$$.fragment,m),$(f.$$.fragment,m),$(c.$$.fragment,m),$(I.$$.fragment,m),d=!1},d(m){A[o].d(m),m&&_(t),M(r,m),m&&_(i),M(f,m),m&&_(a),M(c,m),m&&_(T),M(I,m)}}}function br(n,o,e){let t,r,l,s,i,f,u,p,a,c,g,v=ae,T=()=>(v(),v=eo(te,h=>e(20,g=h)),te),I,R,N,d;X(n,Et,h=>e(39,p=h)),X(n,ge,h=>e(57,a=h)),X(n,Tt,h=>e(58,c=h)),X(n,ko,h=>e(59,I=h)),X(n,bo,h=>e(60,R=h)),X(n,vo,h=>e(61,N=h)),X(n,Me,h=>e(40,d=h)),n.$$.on_destroy.push(()=>v());var S,A,Q;let{workflow:b}=o,{namespace:H}=o,{cancelInProgress:F}=o,{isRunning:B}=o;const U=()=>N?'{"metadata": {"encoding": ""}, "data": ""}':"";let x="",Z=U(),C="",E=!1,re=!1,ne=!1,oe=!1,m="",D=be.Signal,te=It();T();let fe,we=!1,ce,me;const yt=()=>{e(4,x="")},Le=()=>{e(5,Z=U()),e(6,C=""),me==null||me.resetView(Z)},je=()=>{e(12,D=be.Signal),le(te,g=void 0,g),e(14,fe=void 0)},Dt=async()=>{e(8,re=!1),le(ge,a=Date.now(),a),He.push({id:"workflow-termination-success-toast",message:k("workflows.terminate-success")})},St=h=>{var ee;e(4,x=""),e(11,m=(ee=h==null?void 0:h.message)!==null&&ee!==void 0?ee:k("common.unknown-error"))},Pt=()=>{e(11,m=""),b.canBeTerminated&&po({workflow:b,namespace:H,reason:Ge({action:Ye.Terminate,reason:x,email:c.email}),identity:c.email}).then(Dt).catch(St)},Wt=async()=>{var h;e(15,we=!0),e(11,m="");try{await _o({namespace:H,workflowId:b.id,runId:b.runId}),e(7,E=!1),e(15,we=!1),le(ge,a=Date.now(),a),He.push({id:"workflow-cancelation-success-toast",message:k("workflows.cancel-success")})}catch(ee){e(11,m=(h=ee==null?void 0:ee.message)!==null&&h!==void 0?h:k("common.unknown-error"))}},Vt=h=>{e(5,Z=h.detail)},Mt=async()=>{var h;e(11,m="");try{await go({namespace:H,workflowId:b.id,runId:b.runId,signalInput:Z,signalName:C,settings:{...d.data.settings,codec:{endpoint:N,includeCredentials:R,passAccessToken:I}},accessToken:c.accessToken}),e(10,oe=!1),le(ge,a=Date.now(),a),He.push({message:k("workflows.signal-success"),id:"workflow-signal-success-toast"}),Le()}catch(ee){e(11,m=(h=ee==null?void 0:ee.message)!==null&&h!==void 0?h:k("common.unknown-error"))}},qt=async()=>{var h;e(11,m="");try{const ee=await wo({namespace:H,workflowId:b.id,runId:b.runId,eventId:g,reason:Ge({action:Ye.Reset,reason:fe,email:c.email}),resetReapplyType:D});ee&&ee.runId&&Ct.update(xt=>({...xt,[b.runId]:ee.runId})),e(9,ne=!1),le(ge,a=Date.now(),a)}catch(ee){e(11,m=(h=ee==null?void 0:ee.message)!==null&&h!==void 0?h:k("common.unknown-error"))}je()};let Oe,Qe=$o();X(n,Qe,h=>e(38,u=h));const Ht=()=>e(7,E=!0),Ft=()=>e(9,ne=!0);function Nt(h){te=h,T(e(13,te))}function Bt(h){D=h,e(12,D)}function Ut(h){fe=h,e(14,fe)}function Lt(h){m=h,e(11,m)}function jt(h){ne=h,e(9,ne),e(3,i),e(2,ce),e(36,r),e(35,l),e(37,s),e(30,b),e(34,Q),e(39,p),e(32,S),e(33,A),e(40,d)}function Ot(h){m=h,e(11,m)}function Qt(h){E=h,e(7,E)}function Jt(h){x=h,e(4,x)}function Yt(h){m=h,e(11,m)}function zt(h){re=h,e(8,re),e(3,i),e(2,ce),e(36,r),e(35,l),e(37,s),e(30,b),e(34,Q),e(39,p),e(32,S),e(33,A),e(40,d)}function Gt(h){C=h,e(6,C)}function Kt(h){se[h?"unshift":"push"](()=>{me=h,e(16,me)})}function Xt(h){m=h,e(11,m)}function Zt(h){oe=h,e(10,oe),e(3,i),e(2,ce),e(36,r),e(35,l),e(37,s),e(30,b),e(34,Q),e(39,p),e(32,S),e(33,A),e(40,d)}return n.$$set=h=>{"workflow"in h&&e(30,b=h.workflow),"namespace"in h&&e(31,H=h.namespace),"cancelInProgress"in h&&e(0,F=h.cancelInProgress),"isRunning"in h&&e(1,B=h.isRunning)},n.$$.update=()=>{n.$$.dirty[1]&512&&e(19,t=Ro(d.data.settings)),n.$$.dirty[1]&512&&e(36,r=nr(d.data.settings)),n.$$.dirty[1]&512&&e(35,l=Co(d.data.settings)),n.$$.dirty[1]&512&&e(37,s=rr(d.data.settings)),n.$$.dirty[0]&1073741824|n.$$.dirty[1]&326&&(s?s&&(e(32,S=b==null?void 0:b.pendingChildren)===null||S===void 0?void 0:S.length)>0?e(2,ce=k("workflows.reset-disabled-pending-children")):s&&(e(33,A=b==null?void 0:b.pendingChildren)===null||A===void 0?void 0:A.length)===0&&p.length===0&&e(2,ce=k("workflows.reset-disabled-no-events")):e(2,ce=k("workflows.reset-disabled"))),n.$$.dirty[0]&1073741824|n.$$.dirty[1]&328&&e(3,i=s&&(e(34,Q=b==null?void 0:b.pendingChildren)===null||Q===void 0?void 0:Q.length)===0&&p.length>0),n.$$.dirty[0]&12|n.$$.dirty[1]&48&&e(17,Oe=[{label:k("workflows.reset"),onClick:()=>e(9,ne=!0),testId:"reset-button",allowed:i,tooltip:i?"":ce},{label:k("workflows.signal"),onClick:()=>e(10,oe=!0),testId:"signal-button",allowed:r,tooltip:r?"":k("workflows.signal-disabled")},{label:k("workflows.terminate"),onClick:()=>e(8,re=!0),testId:"terminate-button",allowed:l,destructive:!0,tooltip:l?"":k("workflows.terminate-disabled")}]),n.$$.dirty[1]&129&&e(18,f=u.namespaceWriteDisabled(H)||!Ao(Eo))},[F,B,ce,i,x,Z,C,E,re,ne,oe,m,D,te,fe,we,me,Oe,f,t,g,yt,Le,je,Pt,Wt,Vt,Mt,qt,Qe,b,H,S,A,Q,l,r,s,u,p,d,Ht,Ft,Nt,Bt,Ut,Lt,jt,Ot,Qt,Jt,Yt,zt,Gt,Kt,Xt,Zt]}class vr extends ve{constructor(o){super(),Ie(this,o,br,kr,Ee,{workflow:30,namespace:31,cancelInProgress:0,isRunning:1},null,[-1,-1,-1])}}const Ir=(n,o)=>{var r;const e=n==="Running",t=(r=o==null?void 0:o.end)==null?void 0:r.some(l=>(l==null?void 0:l.eventType)==="WorkflowExecutionCancelRequested");return e&&t},ot=n=>{const o=n==null?void 0:n.indexOf("?");return o>-1?n.slice(0,o):n},_e=(n,o,e=!1)=>{const t=ot(n).split("/"),r=ot(o).split("/");if(e&&t.length!==r.length)return!1;for(let l=0;l{t=gt(o,vt,{duration:200,delay:100}),t.start()}),r=!0)},o(l){$(e.$$.fragment,l),r=!1},d(l){l&&_(o),M(e)}}}function Dr(n){let o=k("workflows.cancel-request-sent-description")+"",e;return{c(){e=G(o)},l(t){e=K(t,o)},m(t,r){y(t,e,r)},p:ae,d(t){t&&_(e)}}}function it(n){let o,e,t,r;return e=new Rt({props:{bold:!0,icon:"info",intent:"info","data-testid":"workflow-reset-alert",title:k("workflows.reset-success-alert-title"),$$slots:{default:[Pr]},$$scope:{ctx:n}}}),{c(){o=L("div"),P(e.$$.fragment),this.h()},l(l){o=j(l,"DIV",{class:!0});var s=O(o);W(e.$$.fragment,s),s.forEach(_),this.h()},h(){z(o,"class","mb-4")},m(l,s){y(l,o,s),V(e,o,null),r=!0},p(l,s){const i={};s&268435505&&(i.$$scope={dirty:s,ctx:l}),e.$set(i)},i(l){r||(w(e.$$.fragment,l),t||_t(()=>{t=gt(o,vt,{duration:200,delay:100}),t.start()}),r=!0)},o(l){$(e.$$.fragment,l),r=!1},d(l){l&&_(o),M(e)}}}function Sr(n){let o;return{c(){o=G("here")},l(e){o=K(e,"here")},m(e,t){y(e,o,t)},d(e){e&&_(o)}}}function Pr(n){var l,s,i,f;let o,e,t,r;return e=new qe({props:{href:$e({namespace:n[0],workflow:(s=(l=n[4])==null?void 0:l.workflow)==null?void 0:s.id,run:n[5][(f=(i=n[4])==null?void 0:i.workflow)==null?void 0:f.runId]}),$$slots:{default:[Sr]},$$scope:{ctx:n}}}),{c(){o=G("You can find the resulting Workflow Execution "),P(e.$$.fragment),t=G(".")},l(u){o=K(u,"You can find the resulting Workflow Execution "),W(e.$$.fragment,u),t=K(u,".")},m(u,p){y(u,o,p),V(e,u,p),y(u,t,p),r=!0},p(u,p){var c,g,v,T;const a={};p&49&&(a.href=$e({namespace:u[0],workflow:(g=(c=u[4])==null?void 0:c.workflow)==null?void 0:g.id,run:u[5][(T=(v=u[4])==null?void 0:v.workflow)==null?void 0:T.runId]})),p&268435456&&(a.$$scope={dirty:p,ctx:u}),e.$set(a)},i(u){r||(w(e.$$.fragment,u),r=!0)},o(u){$(e.$$.fragment,u),r=!1},d(u){u&&_(o),M(e,u),u&&_(t)}}}function Wr(n){var t;let o=((t=n[2])==null?void 0:t.historyEvents)+"",e;return{c(){e=G(o)},l(r){e=K(r,o)},m(r,l){y(r,e,l)},p(r,l){var s;l&4&&o!==(o=((s=r[2])==null?void 0:s.historyEvents)+"")&&he(e,o)},d(r){r&&_(e)}}}function Vr(n){let o,e;return o=new Ue({props:{type:"blue",class:"px-2 py-0",$$slots:{default:[Wr]},$$scope:{ctx:n}}}),{c(){P(o.$$.fragment)},l(t){W(o.$$.fragment,t)},m(t,r){V(o,t,r),e=!0},p(t,r){const l={};r&268435460&&(l.$$scope={dirty:r,ctx:t}),o.$set(l)},i(t){e||(w(o.$$.fragment,t),e=!0)},o(t){$(o.$$.fragment,t),e=!1},d(t){M(o,t)}}}function Mr(n){var t,r;let o=((r=(t=n[15])==null?void 0:t.pollers)==null?void 0:r.length)+"",e;return{c(){e=G(o)},l(l){e=K(l,o)},m(l,s){y(l,e,s)},p(l,s){var i,f;s&32768&&o!==(o=((f=(i=l[15])==null?void 0:i.pollers)==null?void 0:f.length)+"")&&he(e,o)},d(l){l&&_(e)}}}function qr(n){let o,e;return o=new Ue({props:{type:"blue",class:"px-2 py-0",$$slots:{default:[Mr]},$$scope:{ctx:n}}}),{c(){P(o.$$.fragment)},l(t){W(o.$$.fragment,t)},m(t,r){V(o,t,r),e=!0},p(t,r){const l={};r&268468224&&(l.$$scope={dirty:r,ctx:t}),o.$set(l)},i(t){e||(w(o.$$.fragment,t),e=!0)},o(t){$(o.$$.fragment,t),e=!1},d(t){M(o,t)}}}function ut(n){let o,e;return o=new io({props:{name:"canceled",width:20,height:20}}),{c(){P(o.$$.fragment)},l(t){W(o.$$.fragment,t)},m(t,r){V(o,t,r),e=!0},i(t){e||(w(o.$$.fragment,t),e=!0)},o(t){$(o.$$.fragment,t),e=!1},d(t){M(o,t)}}}function Hr(n){var s,i;let o,e=((i=(s=n[2])==null?void 0:s.pendingActivities)==null?void 0:i.length)+"",t,r,l=n[12]&&ut();return{c(){l&&l.c(),o=J(),t=G(e)},l(f){l&&l.l(f),o=Y(f),t=K(f,e)},m(f,u){l&&l.m(f,u),y(f,o,u),y(f,t,u),r=!0},p(f,u){var p,a;f[12]?l?u&4096&&w(l,1):(l=ut(),l.c(),w(l,1),l.m(o.parentNode,o)):l&&(pe(),$(l,1,1,()=>{l=null}),de()),(!r||u&4)&&e!==(e=((a=(p=f[2])==null?void 0:p.pendingActivities)==null?void 0:a.length)+"")&&he(t,e)},i(f){r||(w(l),r=!0)},o(f){$(l),r=!1},d(f){l&&l.d(f),f&&_(o),f&&_(t)}}}function Fr(n){let o,e;return o=new Ue({props:{type:n[12]?"warning":"blue",class:"px-2 py-0",$$slots:{default:[Hr]},$$scope:{ctx:n}}}),{c(){P(o.$$.fragment)},l(t){W(o.$$.fragment,t)},m(t,r){V(o,t,r),e=!0},p(t,r){const l={};r&4096&&(l.type=t[12]?"warning":"blue"),r&268439556&&(l.$$scope={dirty:r,ctx:t}),o.$set(l)},i(t){e||(w(o.$$.fragment,t),e=!0)},o(t){$(o.$$.fragment,t),e=!1},d(t){M(o,t)}}}function Nr(n){let o,e,t,r,l,s,i,f,u,p;return o=new Te({props:{label:k("workflows.history-tab"),id:"history-tab",href:$e({...n[13]}),active:_e(n[6].url.pathname,$e({...n[13]})),$$slots:{default:[Vr]},$$scope:{ctx:n}}}),t=new Te({props:{label:k("workflows.workers-tab"),id:"workers-tab",href:Re(n[13]),active:_e(n[6].url.pathname,Re(n[13])),$$slots:{default:[qr]},$$scope:{ctx:n}}}),l=new Te({props:{label:k("workflows.pending-activities-tab"),id:"pending-activities-tab",href:Ce(n[13]),active:_e(n[6].url.pathname,Ce(n[13])),$$slots:{default:[Fr]},$$scope:{ctx:n}}}),i=new Te({props:{label:k("workflows.call-stack-tab"),id:"call-stack-tab",href:Ae(n[13]),active:_e(n[6].url.pathname,Ae(n[13]))}}),u=new Te({props:{label:k("workflows.queries-tab"),id:"queries-tab",href:ye(n[13]),active:_e(n[6].url.pathname,ye(n[13]))}}),{c(){P(o.$$.fragment),e=J(),P(t.$$.fragment),r=J(),P(l.$$.fragment),s=J(),P(i.$$.fragment),f=J(),P(u.$$.fragment)},l(a){W(o.$$.fragment,a),e=Y(a),W(t.$$.fragment,a),r=Y(a),W(l.$$.fragment,a),s=Y(a),W(i.$$.fragment,a),f=Y(a),W(u.$$.fragment,a)},m(a,c){V(o,a,c),y(a,e,c),V(t,a,c),y(a,r,c),V(l,a,c),y(a,s,c),V(i,a,c),y(a,f,c),V(u,a,c),p=!0},p(a,c){const g={};c&8192&&(g.href=$e({...a[13]})),c&8256&&(g.active=_e(a[6].url.pathname,$e({...a[13]}))),c&268435460&&(g.$$scope={dirty:c,ctx:a}),o.$set(g);const v={};c&8192&&(v.href=Re(a[13])),c&8256&&(v.active=_e(a[6].url.pathname,Re(a[13]))),c&268468224&&(v.$$scope={dirty:c,ctx:a}),t.$set(v);const T={};c&8192&&(T.href=Ce(a[13])),c&8256&&(T.active=_e(a[6].url.pathname,Ce(a[13]))),c&268439556&&(T.$$scope={dirty:c,ctx:a}),l.$set(T);const I={};c&8192&&(I.href=Ae(a[13])),c&8256&&(I.active=_e(a[6].url.pathname,Ae(a[13]))),i.$set(I);const R={};c&8192&&(R.href=ye(a[13])),c&8256&&(R.active=_e(a[6].url.pathname,ye(a[13]))),u.$set(R)},i(a){p||(w(o.$$.fragment,a),w(t.$$.fragment,a),w(l.$$.fragment,a),w(i.$$.fragment,a),w(u.$$.fragment,a),p=!0)},o(a){$(o.$$.fragment,a),$(t.$$.fragment,a),$(l.$$.fragment,a),$(i.$$.fragment,a),$(u.$$.fragment,a),p=!1},d(a){M(o,a),a&&_(e),M(t,a),a&&_(r),M(l,a),a&&_(s),M(i,a),a&&_(f),M(u,a)}}}function Br(n){let o,e;return o=new Mo({props:{class:"flex flex-wrap gap-6",label:"workflow detail",$$slots:{default:[Nr]},$$scope:{ctx:n}}}),{c(){P(o.$$.fragment)},l(t){W(o.$$.fragment,t)},m(t,r){V(o,t,r),e=!0},p(t,r){const l={};r&268480580&&(l.$$scope={dirty:r,ctx:t}),o.$set(l)},i(t){e||(w(o.$$.fragment,t),e=!0)},o(t){$(o.$$.fragment,t),e=!1},d(t){M(o,t)}}}function Ur(n){var x,Z;let o,e,t,r,l,s,i,f,u,p,a,c,g,v,T,I,R,N,d,S,A,Q;t=new qe({props:{href:`${Ve({namespace:n[0]})}?${n[16]}`,"data-testid":"back-to-workflows",icon:"chevron-left",$$slots:{default:[Er]},$$scope:{ctx:n}}});let b=n[14]&&rt(n);u=new Wo({props:{copyIconTitle:k("common.copy-icon-title"),copySuccessIconTitle:k("common.copy-success-icon-title"),content:(x=n[2])==null?void 0:x.id,clickAllToCopy:!0,"container-class":"w-full",class:"overflow-hidden text-ellipsis"}}),c=new yo({props:{status:(Z=n[2])==null?void 0:Z.status}});let H=n[9]&&nt(n),F=n[3]&&at(n);R=new vr({props:{isRunning:n[3],cancelInProgress:n[11],workflow:n[2],namespace:n[0]}});let B=n[11]&&ft(n),U=n[10]&&it(n);return A=new Vo({props:{$$slots:{default:[Br]},$$scope:{ctx:n}}}),{c(){o=L("header"),e=L("div"),P(t.$$.fragment),r=J(),b&&b.c(),l=J(),s=L("div"),i=L("div"),f=L("h1"),P(u.$$.fragment),p=J(),a=L("div"),P(c.$$.fragment),g=J(),H&&H.c(),v=J(),T=L("div"),F&&F.c(),I=J(),P(R.$$.fragment),N=J(),B&&B.c(),d=J(),U&&U.c(),S=J(),P(A.$$.fragment),this.h()},l(C){o=j(C,"HEADER",{class:!0});var E=O(o);e=j(E,"DIV",{class:!0});var re=O(e);W(t.$$.fragment,re),r=Y(re),b&&b.l(re),re.forEach(_),l=Y(E),s=j(E,"DIV",{class:!0});var ne=O(s);i=j(ne,"DIV",{class:!0});var oe=O(i);f=j(oe,"H1",{"data-testid":!0,class:!0});var m=O(f);W(u.$$.fragment,m),m.forEach(_),p=Y(oe),a=j(oe,"DIV",{class:!0});var D=O(a);W(c.$$.fragment,D),g=Y(D),H&&H.l(D),D.forEach(_),oe.forEach(_),v=Y(ne),T=j(ne,"DIV",{class:!0});var te=O(T);F&&F.l(te),I=Y(te),W(R.$$.fragment,te),te.forEach(_),ne.forEach(_),N=Y(E),B&&B.l(E),d=Y(E),U&&U.l(E),S=Y(E),W(A.$$.fragment,E),E.forEach(_),this.h()},h(){z(e,"class","mb-4 block"),z(f,"data-testid","workflow-id-heading"),z(f,"class","overflow-hidden text-2xl font-medium"),z(a,"class","flex flex-wrap items-center gap-4"),z(i,"class","flex w-full flex-col justify-start gap-4 overflow-hidden whitespace-nowrap lg:w-auto"),z(T,"class","flex flex-col items-center justify-center gap-4 whitespace-nowrap sm:flex-row lg:justify-end"),z(s,"class","mb-8 flex w-full flex-col items-center justify-between gap-4 lg:flex-row"),z(o,"class","mb-4 flex flex-col gap-1")},m(C,E){y(C,o,E),q(o,e),V(t,e,null),q(e,r),b&&b.m(e,null),q(o,l),q(o,s),q(s,i),q(i,f),V(u,f,null),q(i,p),q(i,a),V(c,a,null),q(a,g),H&&H.m(a,null),q(s,v),q(s,T),F&&F.m(T,null),q(T,I),V(R,T,null),q(o,N),B&&B.m(o,null),q(o,d),U&&U.m(o,null),q(o,S),V(A,o,null),Q=!0},p(C,[E]){var te,fe;const re={};E&65537&&(re.href=`${Ve({namespace:C[0]})}?${C[16]}`),E&268451840&&(re.$$scope={dirty:E,ctx:C}),t.$set(re),C[14]?b?(b.p(C,E),E&16384&&w(b,1)):(b=rt(C),b.c(),w(b,1),b.m(e,null)):b&&(pe(),$(b,1,1,()=>{b=null}),de());const ne={};E&4&&(ne.content=(te=C[2])==null?void 0:te.id),u.$set(ne);const oe={};E&4&&(oe.status=(fe=C[2])==null?void 0:fe.status),c.$set(oe),C[9]?H?(H.p(C,E),E&512&&w(H,1)):(H=nt(C),H.c(),w(H,1),H.m(a,null)):H&&(pe(),$(H,1,1,()=>{H=null}),de()),C[3]?F?(F.p(C,E),E&8&&w(F,1)):(F=at(C),F.c(),w(F,1),F.m(T,I)):F&&(pe(),$(F,1,1,()=>{F=null}),de());const m={};E&8&&(m.isRunning=C[3]),E&2048&&(m.cancelInProgress=C[11]),E&4&&(m.workflow=C[2]),E&1&&(m.namespace=C[0]),R.$set(m),C[11]?B?(B.p(C,E),E&2048&&w(B,1)):(B=ft(C),B.c(),w(B,1),B.m(o,d)):B&&(pe(),$(B,1,1,()=>{B=null}),de()),C[10]?U?(U.p(C,E),E&1024&&w(U,1)):(U=it(C),U.c(),w(U,1),U.m(o,S)):U&&(pe(),$(U,1,1,()=>{U=null}),de());const D={};E&268480580&&(D.$$scope={dirty:E,ctx:C}),A.$set(D)},i(C){Q||(w(t.$$.fragment,C),w(b),w(u.$$.fragment,C),w(c.$$.fragment,C),w(H),w(F),w(R.$$.fragment,C),w(B),w(U),w(A.$$.fragment,C),Q=!0)},o(C){$(t.$$.fragment,C),$(b),$(u.$$.fragment,C),$(c.$$.fragment,C),$(H),$(F),$(R.$$.fragment,C),$(B),$(U),$(A.$$.fragment,C),Q=!1},d(C){C&&_(o),M(t),b&&b.d(),M(u),M(c),H&&H.d(),F&&F.d(),M(R),B&&B.d(),U&&U.d(),M(A)}}}const ct=15e3;function Lr(n,o,e){let t,r,l,s,i,f,u,p,a,c,g,v,T,I,R,N,d,S,A,Q;X(n,We,E=>e(4,I=E)),X(n,Ct,E=>e(5,R=E)),X(n,Pe,E=>e(25,N=E)),X(n,ge,E=>e(26,d=E)),X(n,Se,E=>e(27,S=E)),X(n,Me,E=>e(6,A=E)),X(n,bt,E=>e(16,Q=E));var b,H,F,B,U;let{namespace:x}=o,Z;dt(()=>{f&&S==="on"&&(clearInterval(Z),e(23,Z=setInterval(()=>le(ge,d=Date.now(),d),ct)))});const C=()=>{S==="on"?(le(Se,S="off",S),clearInterval(Z)):(le(ge,d=Date.now(),d),le(Se,S="on",S),clearInterval(Z),e(23,Z=setInterval(()=>le(ge,d=Date.now(),d),ct)))};return Fe(()=>{clearInterval(Z)}),n.$$set=E=>{"namespace"in E&&e(0,x=E.namespace)},n.$$.update=()=>{n.$$.dirty&16&&e(2,{workflow:t,workers:r,compatibility:l}=I,t,(e(15,r),e(4,I)),(e(24,l),e(4,I))),n.$$.dirty&64&&e(14,s=A.params.id),n.$$.dirty&5&&e(13,i={namespace:x,workflow:t==null?void 0:t.id,run:t==null?void 0:t.runId}),n.$$.dirty&262160&&e(3,f=e(18,b=I==null?void 0:I.workflow)===null||b===void 0?void 0:b.isRunning),n.$$.dirty&524304&&e(12,u=["Terminated","TimedOut","Canceled"].includes(e(19,H=I.workflow)===null||H===void 0?void 0:H.status)),n.$$.dirty&8388616&&(f||clearInterval(Z)),n.$$.dirty&34603024&&e(11,p=Ir(e(20,F=I==null?void 0:I.workflow)===null||F===void 0?void 0:F.status,N)),n.$$.dirty&2097200&&e(10,a=qo(R,e(21,B=I==null?void 0:I.workflow)===null||B===void 0?void 0:B.runId)),n.$$.dirty&4194308&&e(9,c=e(22,U=t==null?void 0:t.mostRecentWorkerVersionStamp)===null||U===void 0?void 0:U.useVersioning),n.$$.dirty&4&&e(1,g=Ho(t)),n.$$.dirty&16777216&&e(8,v=Fo(l)),n.$$.dirty&16777218&&e(7,T=No(l,g))},[x,g,t,f,I,R,A,T,v,c,a,p,u,i,s,r,Q,C,b,H,F,B,U,Z,l,N]}class jr extends ve{constructor(o){super(),Ie(this,o,Lr,Ur,Ee,{namespace:0})}}async function Or({activity:n,namespace:o,settings:e,accessToken:t},{convertWithCodec:r=Lo,decodeAttributes:l=jo}={}){const s=await r({attributes:n,namespace:o,settings:e,accessToken:t});return l(s)}const Qr=async({activity:n,namespace:o,settings:e,accessToken:t})=>await Or({activity:n,namespace:o,settings:e,accessToken:t}),Jr=async(n,o,e,t)=>{const r=(n==null?void 0:n.pendingActivities)??[],l=[];for(const s of r){const i=await Qr({activity:s,namespace:o,settings:e,accessToken:t});l.push(i)}return l};function Yr(n){let o,e,t;o=new jr({props:{namespace:n[0].params.namespace}});const r=n[8].default,l=wt(r,n,n[7],null);return{c(){P(o.$$.fragment),e=J(),l&&l.c()},l(s){W(o.$$.fragment,s),e=Y(s),l&&l.l(s)},m(s,i){V(o,s,i),y(s,e,i),l&&l.m(s,i),t=!0},p(s,i){const f={};i&1&&(f.namespace=s[0].params.namespace),o.$set(f),l&&l.p&&(!t||i&128)&&ht(l,r,s,s[7],t?kt(r,s[7],i,null):$t(s[7]),null)},i(s){t||(w(o.$$.fragment,s),w(l,s),t=!0)},o(s){$(o.$$.fragment,s),$(l,s),t=!1},d(s){M(o,s),s&&_(e),l&&l.d(s)}}}function zr(n){let o,e;return o=new to({}),{c(){P(o.$$.fragment)},l(t){W(o.$$.fragment,t)},m(t,r){V(o,t,r),e=!0},p:ae,i(t){e||(w(o.$$.fragment,t),e=!0)},o(t){$(o.$$.fragment,t),e=!1},d(t){M(o,t)}}}function Gr(n){let o,e;return o=new zo({props:{error:n[1]}}),{c(){P(o.$$.fragment)},l(t){W(o.$$.fragment,t)},m(t,r){V(o,t,r),e=!0},p(t,r){const l={};r&2&&(l.error=t[1]),o.$set(l)},i(t){e||(w(o.$$.fragment,t),e=!0)},o(t){$(o.$$.fragment,t),e=!1},d(t){M(o,t)}}}function Kr(n){let o,e,t,r;const l=[Gr,zr,Yr],s=[];function i(f,u){return f[1]?0:f[2].workflow?2:1}return e=i(n),t=s[e]=l[e](n),{c(){o=L("div"),t.c(),this.h()},l(f){o=j(f,"DIV",{class:!0});var u=O(o);t.l(u),u.forEach(_),this.h()},h(){z(o,"class","flex h-full flex-col gap-6")},m(f,u){y(f,o,u),s[e].m(o,null),r=!0},p(f,[u]){let p=e;e=i(f),e===p?s[e].p(f,u):(pe(),$(s[p],1,1,()=>{s[p]=null}),de(),t=s[e],t?t.p(f,u):(t=s[e]=l[e](f),t.c()),w(t,1),t.m(o,null))},i(f){r||(w(t),r=!0)},o(f){$(t),r=!1},d(f){f&&_(o),s[e].d()}}}function Xr(n,o,e){let t,r,l,s,i,f,u,p,a,c;X(n,Pe,d=>e(9,s=d)),X(n,We,d=>e(2,i=d)),X(n,ze,d=>e(10,f=d)),X(n,Je,d=>e(11,u=d)),X(n,Me,d=>e(0,p=d)),X(n,ge,d=>e(6,a=d)),X(n,Tt,d=>e(12,c=d));let{$$slots:g={},$$scope:v}=o,T;const I=async(d,S)=>{var A;if(!((A=d==null?void 0:d.mostRecentWorkerVersionStamp)===null||A===void 0)&&A.useVersioning)return await So({queue:S,namespace:t})},R=async({namespace:d,workers:S,taskQueue:A})=>{if(!Bo(S.pollers))return;const b=Uo(S.pollers);return await Po({namespace:d,buildIds:b,taskQueue:A})},N=async(d,S,A)=>{const{settings:Q}=p.data,{workflow:b,error:H}=await ho({namespace:d,workflowId:S,runId:A});if(H){e(1,T=H);return}const{taskQueue:F}=b,B=await Do({queue:F,namespace:d}),U=await I(b,F),x=await R({namespace:d,workers:B,taskQueue:F});b.pendingActivities=await Jr(b,d,Q,c==null?void 0:c.accessToken),le(We,i={workflow:b,workers:B,compatibility:U,reachability:x},i);const Z=await Oo({namespace:d,workflowId:S,runId:A});le(Pe,s=Z,s)};return dt(()=>{const d=p.url.searchParams.get("sort");d&&le(Je,u=d,u)}),Fe(()=>{le(ze,f=null,f),le(We,i=To,i),le(Pe,s=so,s),e(1,T=void 0)}),n.$$set=d=>{"$$scope"in d&&e(7,v=d.$$scope)},n.$$.update=()=>{n.$$.dirty&1&&e(5,{namespace:t,workflow:r,run:l}=p.params,t,(e(4,r),e(0,p)),(e(3,l),e(0,p))),n.$$.dirty&120&&N(t,r,l)},[p,T,i,l,r,t,a,v,g]}class Zr extends ve{constructor(o){super(),Ie(this,o,Xr,Kr,Ee,{})}}const At={namespace:null,workflowId:null,runId:null,rawPayloads:null,sort:null},xr=It(At),en=()=>{xr.set(At)};function tn(n){let o;const e=n[0].default,t=wt(e,n,n[1],null);return{c(){t&&t.c()},l(r){t&&t.l(r)},m(r,l){t&&t.m(r,l),o=!0},p(r,l){t&&t.p&&(!o||l&2)&&ht(t,e,r,r[1],o?kt(e,r[1],l,null):$t(r[1]),null)},i(r){o||(w(t,r),o=!0)},o(r){$(t,r),o=!1},d(r){t&&t.d(r)}}}function on(n){let o,e;return o=new Zr({props:{$$slots:{default:[tn]},$$scope:{ctx:n}}}),{c(){P(o.$$.fragment)},l(t){W(o.$$.fragment,t)},m(t,r){V(o,t,r),e=!0},p(t,[r]){const l={};r&2&&(l.$$scope={dirty:r,ctx:t}),o.$set(l)},i(t){e||(w(o.$$.fragment,t),e=!0)},o(t){$(o.$$.fragment,t),e=!1},d(t){M(o,t)}}}function rn(n,o,e){let{$$slots:t={},$$scope:r}=o;return Fe(()=>{en()}),n.$$set=l=>{"$$scope"in l&&e(1,r=l.$$scope)},[t,r]}class Gn extends ve{constructor(o){super(),Ie(this,o,rn,on,Ee,{})}}export{Gn as component}; +import{S as ve,b as Ie,a as Ee,m as L,C as P,c as J,w as G,p as j,q as O,D as W,k as _,d as Y,x as K,u as z,f as y,L as q,E as V,y as he,j as w,g as $,F as M,K as X,n as ae,i as mt,A as se,a0 as ie,a1 as ue,e as ke,z as pe,h as de,a7 as pt,s as eo,a5 as le,o as dt,a6 as Fe,a3 as _t,a4 as gt,G as wt,H as ht,I as $t,J as kt}from"../chunks/index.0942deb7.js";import{p as Me}from"../chunks/stores.255470ec.js";import{L as qe}from"../chunks/link.faba7c50.js";import{t as k}from"../chunks/translate.135d909a.js";import{w as bt}from"../chunks/workflows.99ef2d92.js";import{a as Ve,g as $e,h as Re,i as Ce,j as Ae,k as ye}from"../chunks/route-for.18f9590b.js";import{L as to}from"../chunks/loading.e7565465.js";import{f as vt}from"../chunks/index.2fa3ca4d.js";import{T as oo}from"../chunks/toggle-switch.cc141600.js";import{T as Ne}from"../chunks/tooltip.0f6d0305.js";import{a as Se,e as Je}from"../chunks/event-view.f292d7b1.js";import{w as It}from"../chunks/singletons.d67f4e6b.js";import{C as ro}from"../chunks/checkbox.7cf45921.js";import{I as Be}from"../chunks/input.1a8beba6.js";import{R as no,a as lo}from"../chunks/radio-input.aefa279b.js";import{R as be,A as Ye}from"../chunks/workflow-actions.6f88149c.js";import{r as Et,e as Pe,t as ze,i as so}from"../chunks/events.a3eb82f4.js";import{B as ao}from"../chunks/button.72eef818.js";import{C as fo}from"../chunks/code-block.a5088abe.js";import{B as Ue}from"../chunks/badge.5c29cec8.js";import{I as io}from"../chunks/icon.33308831.js";import{d as uo}from"../chunks/menu.1cf8fd74.js";import{M as co}from"../chunks/menu-divider.79623dfc.js";import{M as De}from"../chunks/modal.2dc225aa.js";import{S as mo}from"../chunks/split-button.3aa0e7a5.js";import{t as po,c as _o,s as go,r as wo,f as ho}from"../chunks/workflow-service.bd668cd0.js";import{a as Tt}from"../chunks/auth-user.6dc931ea.js";import{c as $o}from"../chunks/core-user.1d8c4365.js";import{p as ko,i as bo,c as vo}from"../chunks/data-encoder-config.e34150f0.js";import{p as Io}from"../chunks/persist-store.3ea3c364.js";import{s as Eo}from"../chunks/settings.23b6089e.js";import{t as He}from"../chunks/toaster.cfecd6c1.js";import{r as ge,w as We,i as To}from"../chunks/workflow-run.27281c78.js";import{w as Ro,a as Co,f as Ge}from"../chunks/workflow-terminate-enabled.abf4a597.js";import{w as Ao}from"../chunks/write-actions-are-allowed.652105b1.js";import{W as yo}from"../chunks/workflow-status.391c4889.js";import{A as Rt}from"../chunks/alert.c46cfdd9.js";import{C as Ke,g as Do,a as So,b as Po}from"../chunks/pollers-service.351badff.js";import{C as Wo}from"../chunks/index.de7612af.js";import{T as Vo,a as Mo,b as Te}from"../chunks/tab.f6368f6e.js";import{h as qo}from"../chunks/has.233e577a.js";import{g as Ho,a as Fo,b as No,p as Bo,c as Uo}from"../chunks/task-queue-compatibility.8d922da0.js";import{c as Lo,d as jo}from"../chunks/decode-payload.19da7edc.js";import{f as Oo}from"../chunks/events-service.4b32e39d.js";function Qo(n){let o=k("workflows.back-to-workflows")+"",e;return{c(){e=G(o)},l(t){e=K(t,o)},m(t,r){y(t,e,r)},p:ae,d(t){t&&_(e)}}}function Jo(n){let o,e,t,r,l,s,i=n[0].statusCode+"",f,u,p,a,c,g,v=n[0].statusText+"",T,I;return t=new qe({props:{href:`${Ve({namespace:n[2]})}?${n[3]}`,"data-testid":"back-to-workflows",icon:"chevron-left",$$slots:{default:[Qo]},$$scope:{ctx:n}}}),{c(){o=L("header"),e=L("div"),P(t.$$.fragment),r=J(),l=L("div"),s=L("h1"),f=G(i),u=J(),p=L("p"),a=G(n[1]),c=J(),g=L("p"),T=G(v),this.h()},l(R){o=j(R,"HEADER",{class:!0});var N=O(o);e=j(N,"DIV",{class:!0});var d=O(e);W(t.$$.fragment,d),d.forEach(_),N.forEach(_),r=Y(R),l=j(R,"DIV",{class:!0});var S=O(l);s=j(S,"H1",{class:!0});var A=O(s);f=K(A,i),A.forEach(_),u=Y(S),p=j(S,"P",{class:!0});var Q=O(p);a=K(Q,n[1]),Q.forEach(_),c=Y(S),g=j(S,"P",{class:!0});var b=O(g);T=K(b,v),b.forEach(_),S.forEach(_),this.h()},h(){z(e,"class","mb-4 block"),z(o,"class","mb-4 flex flex-col gap-1"),z(s,"class","leading-0 text-[12rem] font-semibold"),z(p,"class","-mt-12 text-lg"),z(g,"class","text-2xl font-bold text-red-700"),z(l,"class","text-center align-middle")},m(R,N){y(R,o,N),q(o,e),V(t,e,null),y(R,r,N),y(R,l,N),q(l,s),q(s,f),q(l,u),q(l,p),q(p,a),q(l,c),q(l,g),q(g,T),I=!0},p(R,[N]){const d={};N&12&&(d.href=`${Ve({namespace:R[2]})}?${R[3]}`),N&32&&(d.$$scope={dirty:N,ctx:R}),t.$set(d),(!I||N&1)&&i!==(i=R[0].statusCode+"")&&he(f,i),(!I||N&2)&&he(a,R[1]),(!I||N&1)&&v!==(v=R[0].statusText+"")&&he(T,v)},i(R){I||(w(t.$$.fragment,R),I=!0)},o(R){$(t.$$.fragment,R),I=!1},d(R){R&&_(o),M(t),R&&_(r),R&&_(l)}}}function Yo(n,o,e){let t,r,l,s;X(n,Me,f=>e(4,l=f)),X(n,bt,f=>e(3,s=f));let{error:i}=o;return n.$$set=f=>{"error"in f&&e(0,i=f.error)},n.$$.update=()=>{n.$$.dirty&16&&e(2,{namespace:t}=l.params,t),n.$$.dirty&1&&e(1,r=i.statusCode===404?k("workflows.workflow-404-title"):k("workflows.workflow-error-title"))},[i,r,t,s,l]}class zo extends ve{constructor(o){super(),Ie(this,o,Yo,Jo,Ee,{error:0})}}function Go(n){let o,e;return o=new oo({props:{label:k("common.auto-refresh"),labelPosition:"left",id:"autorefresh",checked:n[1]}}),o.$on("change",function(){mt(n[0])&&n[0].apply(this,arguments)}),{c(){P(o.$$.fragment)},l(t){W(o.$$.fragment,t)},m(t,r){V(o,t,r),e=!0},p(t,r){n=t;const l={};r&2&&(l.checked=n[1]),o.$set(l)},i(t){e||(w(o.$$.fragment,t),e=!0)},o(t){$(o.$$.fragment,t),e=!1},d(t){M(o,t)}}}function Ko(n){let o,e;return o=new Ne({props:{bottomLeft:!0,text:k("common.auto-refresh-tooltip",{interval:"15"}),$$slots:{default:[Go]},$$scope:{ctx:n}}}),{c(){P(o.$$.fragment)},l(t){W(o.$$.fragment,t)},m(t,r){V(o,t,r),e=!0},p(t,[r]){const l={};r&11&&(l.$$scope={dirty:r,ctx:t}),o.$set(l)},i(t){e||(w(o.$$.fragment,t),e=!0)},o(t){$(o.$$.fragment,t),e=!1},d(t){M(o,t)}}}function Xo(n,o,e){let t,r;X(n,Se,s=>e(2,r=s));let{onChange:l}=o;return n.$$set=s=>{"onChange"in s&&e(0,l=s.onChange)},n.$$.update=()=>{n.$$.dirty&4&&e(1,t=r==="on")},[l,t,r]}class Zo extends ve{constructor(o){super(),Ie(this,o,Xo,Ko,Ee,{onChange:0})}}function Xe(n,o,e){const t=n.slice();return t[6]=o[e],t}function Ze(n){let o,e;return o=new lo({props:{id:"reset-event-"+n[6].id,value:n[6].id,label:n[6].id+" - "+n[6].eventType}}),{c(){P(o.$$.fragment)},l(t){W(o.$$.fragment,t)},m(t,r){V(o,t,r),e=!0},p(t,r){const l={};r&8&&(l.id="reset-event-"+t[6].id),r&8&&(l.value=t[6].id),r&8&&(l.label=t[6].id+" - "+t[6].eventType),o.$set(l)},i(t){e||(w(o.$$.fragment,t),e=!0)},o(t){$(o.$$.fragment,t),e=!1},d(t){M(o,t)}}}function xo(n){let o,e,t=n[3],r=[];for(let s=0;s$(r[s],1,1,()=>{r[s]=null});return{c(){for(let s=0;sie(s,"value",u)),{c(){o=L("div"),P(e.$$.fragment),t=J(),P(r.$$.fragment),l=J(),P(s.$$.fragment),this.h()},l(a){o=j(a,"DIV",{class:!0});var c=O(o);W(e.$$.fragment,c),t=Y(c),W(r.$$.fragment,c),l=Y(c),W(s.$$.fragment,c),c.forEach(_),this.h()},h(){z(o,"class","flex w-full flex-col gap-4")},m(a,c){y(a,o,c),V(e,o,null),q(o,t),V(r,o,null),q(o,l),V(s,o,null),f=!0},p(a,[c]){const g={};c&4&&(g.group=a[2]),c&520&&(g.$$scope={dirty:c,ctx:a}),e.$set(g);const v={};c&1&&(v.checked=a[0]===be.Signal),r.$set(v);const T={};!i&&c&2&&(i=!0,T.value=a[1],ue(()=>i=!1)),s.$set(T)},i(a){f||(w(e.$$.fragment,a),w(r.$$.fragment,a),w(s.$$.fragment,a),f=!0)},o(a){$(e.$$.fragment,a),$(r.$$.fragment,a),$(s.$$.fragment,a),f=!1},d(a){a&&_(o),M(e),M(r),M(s)}}}function tr(n,o,e){let t;X(n,Et,u=>e(3,t=u));let{resetReapplyType:r=be.Signal}=o,{reason:l=""}=o,{eventId:s}=o;const i=u=>{e(0,r=u.detail.checked?be.Signal:be.None)};function f(u){l=u,e(1,l)}return n.$$set=u=>{"resetReapplyType"in u&&e(0,r=u.resetReapplyType),"reason"in u&&e(1,l=u.reason),"eventId"in u&&e(2,s=u.eventId)},[r,l,s,t,i,f]}class or extends ve{constructor(o){super(),Ie(this,o,tr,er,Ee,{resetReapplyType:0,reason:1,eventId:2})}}const Ct=Io("resetWorkflows",{}),rr=n=>!n.disableWriteActions&&!n.workflowResetDisabled,nr=n=>!n.disableWriteActions&&!n.workflowSignalDisabled;function xe(n,o,e){const t=n.slice();return t[65]=o[e].onClick,t[66]=o[e].destructive,t[67]=o[e].label,t[68]=o[e].allowed,t[69]=o[e].testId,t[70]=o[e].tooltip,t}function lr(n){let o,e;return o=new Ne({props:{bottomRight:!0,width:200,text:n[2],hide:n[3],$$slots:{default:[fr]},$$scope:{ctx:n}}}),{c(){P(o.$$.fragment)},l(t){W(o.$$.fragment,t)},m(t,r){V(o,t,r),e=!0},p(t,r){const l={};r[0]&4&&(l.text=t[2]),r[0]&8&&(l.hide=t[3]),r[0]&520|r[2]&2048&&(l.$$scope={dirty:r,ctx:t}),o.$set(l)},i(t){e||(w(o.$$.fragment,t),e=!0)},o(t){$(o.$$.fragment,t),e=!1},d(t){M(o,t)}}}function sr(n){let o,e;return o=new mo({props:{id:"workflow-actions",position:"right",disabled:n[18],primaryActionDisabled:!n[19]||n[0],label:k("workflows.request-cancellation"),menuLabel:k("workflows.workflow-actions"),$$slots:{default:[cr]},$$scope:{ctx:n}}}),o.$on("click",n[41]),{c(){P(o.$$.fragment)},l(t){W(o.$$.fragment,t)},m(t,r){V(o,t,r),e=!0},p(t,r){const l={};r[0]&262144&&(l.disabled=t[18]),r[0]&524289&&(l.primaryActionDisabled=!t[19]||t[0]),r[0]&131072|r[2]&2048&&(l.$$scope={dirty:r,ctx:t}),o.$set(l)},i(t){e||(w(o.$$.fragment,t),e=!0)},o(t){$(o.$$.fragment,t),e=!1},d(t){M(o,t)}}}function ar(n){let o=k("workflows.reset")+"",e;return{c(){e=G(o)},l(t){e=K(t,o)},m(t,r){y(t,e,r)},p:ae,d(t){t&&_(e)}}}function fr(n){let o,e;return o=new ao({props:{"aria-label":k("workflows.reset"),disabled:!n[3],variant:"primary",$$slots:{default:[ar]},$$scope:{ctx:n}}}),o.$on("click",n[42]),{c(){P(o.$$.fragment)},l(t){W(o.$$.fragment,t)},m(t,r){V(o,t,r),e=!0},p(t,r){const l={};r[0]&8&&(l.disabled=!t[3]),r[2]&2048&&(l.$$scope={dirty:r,ctx:t}),o.$set(l)},i(t){e||(w(o.$$.fragment,t),e=!0)},o(t){$(o.$$.fragment,t),e=!1},d(t){M(o,t)}}}function et(n){let o,e;return o=new co({}),{c(){P(o.$$.fragment)},l(t){W(o.$$.fragment,t)},m(t,r){V(o,t,r),e=!0},i(t){e||(w(o.$$.fragment,t),e=!0)},o(t){$(o.$$.fragment,t),e=!1},d(t){M(o,t)}}}function ir(n){let o=n[67]+"",e;return{c(){e=G(o)},l(t){e=K(t,o)},m(t,r){y(t,e,r)},p(t,r){r[0]&131072&&o!==(o=t[67]+"")&&he(e,o)},d(t){t&&_(e)}}}function ur(n){let o,e,t;return o=new uo({props:{destructive:n[66],disabled:!n[68],"data-testid":n[69],$$slots:{default:[ir]},$$scope:{ctx:n}}}),o.$on("click",function(){mt(n[65])&&n[65].apply(this,arguments)}),{c(){P(o.$$.fragment),e=J()},l(r){W(o.$$.fragment,r),e=Y(r)},m(r,l){V(o,r,l),y(r,e,l),t=!0},p(r,l){n=r;const s={};l[0]&131072&&(s.destructive=n[66]),l[0]&131072&&(s.disabled=!n[68]),l[0]&131072&&(s["data-testid"]=n[69]),l[0]&131072|l[2]&2048&&(s.$$scope={dirty:l,ctx:n}),o.$set(s)},i(r){t||(w(o.$$.fragment,r),t=!0)},o(r){$(o.$$.fragment,r),t=!1},d(r){M(o,r),r&&_(e)}}}function tt(n){let o,e,t,r=n[66]&&et();return e=new Ne({props:{text:n[70],hide:!n[70],width:200,left:!0,$$slots:{default:[ur]},$$scope:{ctx:n}}}),{c(){r&&r.c(),o=J(),P(e.$$.fragment)},l(l){r&&r.l(l),o=Y(l),W(e.$$.fragment,l)},m(l,s){r&&r.m(l,s),y(l,o,s),V(e,l,s),t=!0},p(l,s){l[66]?r?s[0]&131072&&w(r,1):(r=et(),r.c(),w(r,1),r.m(o.parentNode,o)):r&&(pe(),$(r,1,1,()=>{r=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){t||(w(r),w(e.$$.fragment,l),t=!0)},o(l){$(r),$(e.$$.fragment,l),t=!1},d(l){r&&r.d(l),l&&_(o),M(e,l)}}}function cr(n){let o,e,t=n[17],r=[];for(let s=0;s$(r[s],1,1,()=>{r[s]=null});return{c(){for(let s=0;sie(o,"eventId",s)),se.push(()=>ie(o,"resetReapplyType",i)),se.push(()=>ie(o,"reason",f)),{c(){P(o.$$.fragment)},l(p){W(o.$$.fragment,p)},m(p,a){V(o,p,a),l=!0},p(p,a){const c={};!e&&a[0]&8192&&(e=!0,c.eventId=p[13],ue(()=>e=!1)),!t&&a[0]&4096&&(t=!0,c.resetReapplyType=p[12],ue(()=>t=!1)),!r&&a[0]&16384&&(r=!0,c.reason=p[14],ue(()=>r=!1)),o.$set(c)},i(p){l||(w(o.$$.fragment,p),l=!0)},o(p){$(o.$$.fragment,p),l=!1},d(p){M(o,p)}}}function dr(n){let o,e=k("workflows.cancel-modal-title")+"",t;return{c(){o=L("h3"),t=G(e),this.h()},l(r){o=j(r,"H3",{slot:!0});var l=O(o);t=K(l,e),l.forEach(_),this.h()},h(){z(o,"slot","title")},m(r,l){y(r,o,l),q(o,t)},p:ae,d(r){r&&_(o)}}}function _r(n){let o,e=k("workflows.cancel-modal-confirmation")+"",t;return{c(){o=L("p"),t=G(e)},l(r){o=j(r,"P",{});var l=O(o);t=K(l,e),l.forEach(_)},m(r,l){y(r,o,l),q(o,t)},p:ae,d(r){r&&_(o)}}}function gr(n){let o,e=k("workflows.terminate-modal-title")+"",t;return{c(){o=L("h3"),t=G(e),this.h()},l(r){o=j(r,"H3",{slot:!0});var l=O(o);t=K(l,e),l.forEach(_),this.h()},h(){z(o,"slot","title")},m(r,l){y(r,o,l),q(o,t)},p:ae,d(r){r&&_(o)}}}function wr(n){let o,e,t=k("workflows.terminate-modal-confirmation")+"",r,l,s,i,f;function u(a){n[50](a)}let p={id:"workflow-termination-reason",class:"mt-4",placeholder:k("common.reason-placeholder"),label:k("common.reason-placeholder"),labelHidden:!0};return n[4]!==void 0&&(p.value=n[4]),s=new Be({props:p}),se.push(()=>ie(s,"value",u)),{c(){o=L("div"),e=L("p"),r=G(t),l=J(),P(s.$$.fragment),this.h()},l(a){o=j(a,"DIV",{slot:!0});var c=O(o);e=j(c,"P",{});var g=O(e);r=K(g,t),g.forEach(_),l=Y(c),W(s.$$.fragment,c),c.forEach(_),this.h()},h(){z(o,"slot","content")},m(a,c){y(a,o,c),q(o,e),q(e,r),q(o,l),V(s,o,null),f=!0},p(a,c){const g={};!i&&c[0]&16&&(i=!0,g.value=a[4],ue(()=>i=!1)),s.$set(g)},i(a){f||(w(s.$$.fragment,a),f=!0)},o(a){$(s.$$.fragment,a),f=!1},d(a){a&&_(o),M(s)}}}function hr(n){let o,e=k("workflows.signal-modal-title")+"",t;return{c(){o=L("h3"),t=G(e),this.h()},l(r){o=j(r,"H3",{slot:!0});var l=O(o);t=K(l,e),l.forEach(_),this.h()},h(){z(o,"slot","title")},m(r,l){y(r,o,l),q(o,t)},p:ae,d(r){r&&_(o)}}}function $r(n){let o,e,t,r,l,s,i=k("workflows.signal-payload-input-label")+"",f,u,p,a=k("workflows.signal-payload-input-label-hint")+"",c,g,v,T;function I(d){n[53](d)}let R={id:"signal-name",label:k("workflows.signal-name-label"),required:!0};n[6]!==void 0&&(R.value=n[6]),e=new Be({props:R}),se.push(()=>ie(e,"value",I));let N={class:"max-h-80 overflow-y-scroll overscroll-contain",content:n[5],editable:!0,copyable:!1};return v=new fo({props:N}),n[54](v),v.$on("change",n[26]),{c(){o=L("div"),P(e.$$.fragment),r=J(),l=L("div"),s=L("span"),f=G(i),u=J(),p=L("span"),c=G(a),g=J(),P(v.$$.fragment),this.h()},l(d){o=j(d,"DIV",{slot:!0,class:!0});var S=O(o);W(e.$$.fragment,S),r=Y(S),l=j(S,"DIV",{});var A=O(l);s=j(A,"SPAN",{class:!0});var Q=O(s);f=K(Q,i),Q.forEach(_),u=Y(A),p=j(A,"SPAN",{class:!0});var b=O(p);c=K(b,a),b.forEach(_),g=Y(A),W(v.$$.fragment,A),A.forEach(_),S.forEach(_),this.h()},h(){z(s,"class","font-secondary text-sm font-medium"),z(p,"class","font-secondary text-xs font-light italic"),z(o,"slot","content"),z(o,"class","flex flex-col gap-4")},m(d,S){y(d,o,S),V(e,o,null),q(o,r),q(o,l),q(l,s),q(s,f),q(l,u),q(l,p),q(p,c),q(l,g),V(v,l,null),T=!0},p(d,S){const A={};!t&&S[0]&64&&(t=!0,A.value=d[6],ue(()=>t=!1)),e.$set(A);const Q={};S[0]&32&&(Q.content=d[5]),v.$set(Q)},i(d){T||(w(e.$$.fragment,d),w(v.$$.fragment,d),T=!0)},o(d){$(e.$$.fragment,d),$(v.$$.fragment,d),T=!1},d(d){d&&_(o),M(e),n[54](null),M(v)}}}function kr(n){let o,e,t,r,l,s,i,f,u,p,a,c,g,v,T,I,R,N,d;const S=[sr,lr],A=[];function Q(m,D){return m[1]?0:1}o=Q(n),e=A[o]=S[o](n);function b(m){n[46](m)}function H(m){n[47](m)}let F={id:"reset-confirmation-modal","data-testid":"reset-confirmation-modal",confirmText:k("common.confirm"),cancelText:k("common.cancel"),confirmDisabled:!n[20],$$slots:{content:[pr],title:[mr]},$$scope:{ctx:n}};n[11]!==void 0&&(F.error=n[11]),n[9]!==void 0&&(F.open=n[9]),r=new De({props:F}),se.push(()=>ie(r,"error",b)),se.push(()=>ie(r,"open",H)),r.$on("confirmModal",n[28]),r.$on("cancelModal",n[23]);function B(m){n[48](m)}function U(m){n[49](m)}let x={id:"cancel-confirmation-modal","data-testid":"cancel-confirmation-modal",confirmText:k("common.confirm"),cancelText:k("common.cancel"),loading:n[15],confirmType:"destructive",$$slots:{content:[_r],title:[dr]},$$scope:{ctx:n}};n[11]!==void 0&&(x.error=n[11]),n[7]!==void 0&&(x.open=n[7]),f=new De({props:x}),se.push(()=>ie(f,"error",B)),se.push(()=>ie(f,"open",U)),f.$on("confirmModal",n[25]);function Z(m){n[51](m)}function C(m){n[52](m)}let E={id:"terminate-confirmation-modal","data-testid":"terminate-confirmation-modal",confirmText:k("workflows.terminate"),cancelText:k("common.cancel"),confirmType:"destructive",$$slots:{content:[wr],title:[gr]},$$scope:{ctx:n}};n[11]!==void 0&&(E.error=n[11]),n[8]!==void 0&&(E.open=n[8]),c=new De({props:E}),se.push(()=>ie(c,"error",Z)),se.push(()=>ie(c,"open",C)),c.$on("cancelModal",n[21]),c.$on("confirmModal",n[24]);function re(m){n[55](m)}function ne(m){n[56](m)}let oe={id:"signal-confirmation-modal","data-testid":"signal-confirmation-modal",confirmText:k("common.submit"),cancelText:k("common.cancel"),confirmDisabled:!n[6],$$slots:{content:[$r],title:[hr]},$$scope:{ctx:n}};return n[11]!==void 0&&(oe.error=n[11]),n[10]!==void 0&&(oe.open=n[10]),I=new De({props:oe}),se.push(()=>ie(I,"error",re)),se.push(()=>ie(I,"open",ne)),I.$on("cancelModal",n[22]),I.$on("confirmModal",n[27]),{c(){e.c(),t=J(),P(r.$$.fragment),i=J(),P(f.$$.fragment),a=J(),P(c.$$.fragment),T=J(),P(I.$$.fragment)},l(m){e.l(m),t=Y(m),W(r.$$.fragment,m),i=Y(m),W(f.$$.fragment,m),a=Y(m),W(c.$$.fragment,m),T=Y(m),W(I.$$.fragment,m)},m(m,D){A[o].m(m,D),y(m,t,D),V(r,m,D),y(m,i,D),V(f,m,D),y(m,a,D),V(c,m,D),y(m,T,D),V(I,m,D),d=!0},p(m,D){let te=o;o=Q(m),o===te?A[o].p(m,D):(pe(),$(A[te],1,1,()=>{A[te]=null}),de(),e=A[o],e?e.p(m,D):(e=A[o]=S[o](m),e.c()),w(e,1),e.m(t.parentNode,t));const fe={};D[0]&1048576&&(fe.confirmDisabled=!m[20]),D[0]&28672|D[2]&2048&&(fe.$$scope={dirty:D,ctx:m}),!l&&D[0]&2048&&(l=!0,fe.error=m[11],ue(()=>l=!1)),!s&&D[0]&512&&(s=!0,fe.open=m[9],ue(()=>s=!1)),r.$set(fe);const we={};D[0]&32768&&(we.loading=m[15]),D[2]&2048&&(we.$$scope={dirty:D,ctx:m}),!u&&D[0]&2048&&(u=!0,we.error=m[11],ue(()=>u=!1)),!p&&D[0]&128&&(p=!0,we.open=m[7],ue(()=>p=!1)),f.$set(we);const ce={};D[0]&16|D[2]&2048&&(ce.$$scope={dirty:D,ctx:m}),!g&&D[0]&2048&&(g=!0,ce.error=m[11],ue(()=>g=!1)),!v&&D[0]&256&&(v=!0,ce.open=m[8],ue(()=>v=!1)),c.$set(ce);const me={};D[0]&64&&(me.confirmDisabled=!m[6]),D[0]&65632|D[2]&2048&&(me.$$scope={dirty:D,ctx:m}),!R&&D[0]&2048&&(R=!0,me.error=m[11],ue(()=>R=!1)),!N&&D[0]&1024&&(N=!0,me.open=m[10],ue(()=>N=!1)),I.$set(me)},i(m){d||(w(e),w(r.$$.fragment,m),w(f.$$.fragment,m),w(c.$$.fragment,m),w(I.$$.fragment,m),d=!0)},o(m){$(e),$(r.$$.fragment,m),$(f.$$.fragment,m),$(c.$$.fragment,m),$(I.$$.fragment,m),d=!1},d(m){A[o].d(m),m&&_(t),M(r,m),m&&_(i),M(f,m),m&&_(a),M(c,m),m&&_(T),M(I,m)}}}function br(n,o,e){let t,r,l,s,i,f,u,p,a,c,g,v=ae,T=()=>(v(),v=eo(te,h=>e(20,g=h)),te),I,R,N,d;X(n,Et,h=>e(39,p=h)),X(n,ge,h=>e(57,a=h)),X(n,Tt,h=>e(58,c=h)),X(n,ko,h=>e(59,I=h)),X(n,bo,h=>e(60,R=h)),X(n,vo,h=>e(61,N=h)),X(n,Me,h=>e(40,d=h)),n.$$.on_destroy.push(()=>v());var S,A,Q;let{workflow:b}=o,{namespace:H}=o,{cancelInProgress:F}=o,{isRunning:B}=o;const U=()=>N?'{"metadata": {"encoding": ""}, "data": ""}':"";let x="",Z=U(),C="",E=!1,re=!1,ne=!1,oe=!1,m="",D=be.Signal,te=It();T();let fe,we=!1,ce,me;const yt=()=>{e(4,x="")},Le=()=>{e(5,Z=U()),e(6,C=""),me==null||me.resetView(Z)},je=()=>{e(12,D=be.Signal),le(te,g=void 0,g),e(14,fe=void 0)},Dt=async()=>{e(8,re=!1),le(ge,a=Date.now(),a),He.push({id:"workflow-termination-success-toast",message:k("workflows.terminate-success")})},St=h=>{var ee;e(4,x=""),e(11,m=(ee=h==null?void 0:h.message)!==null&&ee!==void 0?ee:k("common.unknown-error"))},Pt=()=>{e(11,m=""),b.canBeTerminated&&po({workflow:b,namespace:H,reason:Ge({action:Ye.Terminate,reason:x,email:c.email}),identity:c.email}).then(Dt).catch(St)},Wt=async()=>{var h;e(15,we=!0),e(11,m="");try{await _o({namespace:H,workflowId:b.id,runId:b.runId}),e(7,E=!1),e(15,we=!1),le(ge,a=Date.now(),a),He.push({id:"workflow-cancelation-success-toast",message:k("workflows.cancel-success")})}catch(ee){e(11,m=(h=ee==null?void 0:ee.message)!==null&&h!==void 0?h:k("common.unknown-error"))}},Vt=h=>{e(5,Z=h.detail)},Mt=async()=>{var h;e(11,m="");try{await go({namespace:H,workflowId:b.id,runId:b.runId,signalInput:Z,signalName:C,settings:{...d.data.settings,codec:{endpoint:N,includeCredentials:R,passAccessToken:I}},accessToken:c.accessToken}),e(10,oe=!1),le(ge,a=Date.now(),a),He.push({message:k("workflows.signal-success"),id:"workflow-signal-success-toast"}),Le()}catch(ee){e(11,m=(h=ee==null?void 0:ee.message)!==null&&h!==void 0?h:k("common.unknown-error"))}},qt=async()=>{var h;e(11,m="");try{const ee=await wo({namespace:H,workflowId:b.id,runId:b.runId,eventId:g,reason:Ge({action:Ye.Reset,reason:fe,email:c.email}),resetReapplyType:D});ee&&ee.runId&&Ct.update(xt=>({...xt,[b.runId]:ee.runId})),e(9,ne=!1),le(ge,a=Date.now(),a)}catch(ee){e(11,m=(h=ee==null?void 0:ee.message)!==null&&h!==void 0?h:k("common.unknown-error"))}je()};let Oe,Qe=$o();X(n,Qe,h=>e(38,u=h));const Ht=()=>e(7,E=!0),Ft=()=>e(9,ne=!0);function Nt(h){te=h,T(e(13,te))}function Bt(h){D=h,e(12,D)}function Ut(h){fe=h,e(14,fe)}function Lt(h){m=h,e(11,m)}function jt(h){ne=h,e(9,ne),e(3,i),e(2,ce),e(36,r),e(35,l),e(37,s),e(30,b),e(34,Q),e(39,p),e(32,S),e(33,A),e(40,d)}function Ot(h){m=h,e(11,m)}function Qt(h){E=h,e(7,E)}function Jt(h){x=h,e(4,x)}function Yt(h){m=h,e(11,m)}function zt(h){re=h,e(8,re),e(3,i),e(2,ce),e(36,r),e(35,l),e(37,s),e(30,b),e(34,Q),e(39,p),e(32,S),e(33,A),e(40,d)}function Gt(h){C=h,e(6,C)}function Kt(h){se[h?"unshift":"push"](()=>{me=h,e(16,me)})}function Xt(h){m=h,e(11,m)}function Zt(h){oe=h,e(10,oe),e(3,i),e(2,ce),e(36,r),e(35,l),e(37,s),e(30,b),e(34,Q),e(39,p),e(32,S),e(33,A),e(40,d)}return n.$$set=h=>{"workflow"in h&&e(30,b=h.workflow),"namespace"in h&&e(31,H=h.namespace),"cancelInProgress"in h&&e(0,F=h.cancelInProgress),"isRunning"in h&&e(1,B=h.isRunning)},n.$$.update=()=>{n.$$.dirty[1]&512&&e(19,t=Ro(d.data.settings)),n.$$.dirty[1]&512&&e(36,r=nr(d.data.settings)),n.$$.dirty[1]&512&&e(35,l=Co(d.data.settings)),n.$$.dirty[1]&512&&e(37,s=rr(d.data.settings)),n.$$.dirty[0]&1073741824|n.$$.dirty[1]&326&&(s?s&&(e(32,S=b==null?void 0:b.pendingChildren)===null||S===void 0?void 0:S.length)>0?e(2,ce=k("workflows.reset-disabled-pending-children")):s&&(e(33,A=b==null?void 0:b.pendingChildren)===null||A===void 0?void 0:A.length)===0&&p.length===0&&e(2,ce=k("workflows.reset-disabled-no-events")):e(2,ce=k("workflows.reset-disabled"))),n.$$.dirty[0]&1073741824|n.$$.dirty[1]&328&&e(3,i=s&&(e(34,Q=b==null?void 0:b.pendingChildren)===null||Q===void 0?void 0:Q.length)===0&&p.length>0),n.$$.dirty[0]&12|n.$$.dirty[1]&48&&e(17,Oe=[{label:k("workflows.reset"),onClick:()=>e(9,ne=!0),testId:"reset-button",allowed:i,tooltip:i?"":ce},{label:k("workflows.signal"),onClick:()=>e(10,oe=!0),testId:"signal-button",allowed:r,tooltip:r?"":k("workflows.signal-disabled")},{label:k("workflows.terminate"),onClick:()=>e(8,re=!0),testId:"terminate-button",allowed:l,destructive:!0,tooltip:l?"":k("workflows.terminate-disabled")}]),n.$$.dirty[1]&129&&e(18,f=u.namespaceWriteDisabled(H)||!Ao(Eo))},[F,B,ce,i,x,Z,C,E,re,ne,oe,m,D,te,fe,we,me,Oe,f,t,g,yt,Le,je,Pt,Wt,Vt,Mt,qt,Qe,b,H,S,A,Q,l,r,s,u,p,d,Ht,Ft,Nt,Bt,Ut,Lt,jt,Ot,Qt,Jt,Yt,zt,Gt,Kt,Xt,Zt]}class vr extends ve{constructor(o){super(),Ie(this,o,br,kr,Ee,{workflow:30,namespace:31,cancelInProgress:0,isRunning:1},null,[-1,-1,-1])}}const Ir=(n,o)=>{var r;const e=n==="Running",t=(r=o==null?void 0:o.end)==null?void 0:r.some(l=>(l==null?void 0:l.eventType)==="WorkflowExecutionCancelRequested");return e&&t},ot=n=>{const o=n==null?void 0:n.indexOf("?");return o>-1?n.slice(0,o):n},_e=(n,o,e=!1)=>{const t=ot(n).split("/"),r=ot(o).split("/");if(e&&t.length!==r.length)return!1;for(let l=0;l{t=gt(o,vt,{duration:200,delay:100}),t.start()}),r=!0)},o(l){$(e.$$.fragment,l),r=!1},d(l){l&&_(o),M(e)}}}function Dr(n){let o=k("workflows.cancel-request-sent-description")+"",e;return{c(){e=G(o)},l(t){e=K(t,o)},m(t,r){y(t,e,r)},p:ae,d(t){t&&_(e)}}}function it(n){let o,e,t,r;return e=new Rt({props:{bold:!0,icon:"info",intent:"info","data-testid":"workflow-reset-alert",title:k("workflows.reset-success-alert-title"),$$slots:{default:[Pr]},$$scope:{ctx:n}}}),{c(){o=L("div"),P(e.$$.fragment),this.h()},l(l){o=j(l,"DIV",{class:!0});var s=O(o);W(e.$$.fragment,s),s.forEach(_),this.h()},h(){z(o,"class","mb-4")},m(l,s){y(l,o,s),V(e,o,null),r=!0},p(l,s){const i={};s&268435505&&(i.$$scope={dirty:s,ctx:l}),e.$set(i)},i(l){r||(w(e.$$.fragment,l),t||_t(()=>{t=gt(o,vt,{duration:200,delay:100}),t.start()}),r=!0)},o(l){$(e.$$.fragment,l),r=!1},d(l){l&&_(o),M(e)}}}function Sr(n){let o;return{c(){o=G("here")},l(e){o=K(e,"here")},m(e,t){y(e,o,t)},d(e){e&&_(o)}}}function Pr(n){var l,s,i,f;let o,e,t,r;return e=new qe({props:{href:$e({namespace:n[0],workflow:(s=(l=n[4])==null?void 0:l.workflow)==null?void 0:s.id,run:n[5][(f=(i=n[4])==null?void 0:i.workflow)==null?void 0:f.runId]}),$$slots:{default:[Sr]},$$scope:{ctx:n}}}),{c(){o=G("You can find the resulting Workflow Execution "),P(e.$$.fragment),t=G(".")},l(u){o=K(u,"You can find the resulting Workflow Execution "),W(e.$$.fragment,u),t=K(u,".")},m(u,p){y(u,o,p),V(e,u,p),y(u,t,p),r=!0},p(u,p){var c,g,v,T;const a={};p&49&&(a.href=$e({namespace:u[0],workflow:(g=(c=u[4])==null?void 0:c.workflow)==null?void 0:g.id,run:u[5][(T=(v=u[4])==null?void 0:v.workflow)==null?void 0:T.runId]})),p&268435456&&(a.$$scope={dirty:p,ctx:u}),e.$set(a)},i(u){r||(w(e.$$.fragment,u),r=!0)},o(u){$(e.$$.fragment,u),r=!1},d(u){u&&_(o),M(e,u),u&&_(t)}}}function Wr(n){var t;let o=((t=n[2])==null?void 0:t.historyEvents)+"",e;return{c(){e=G(o)},l(r){e=K(r,o)},m(r,l){y(r,e,l)},p(r,l){var s;l&4&&o!==(o=((s=r[2])==null?void 0:s.historyEvents)+"")&&he(e,o)},d(r){r&&_(e)}}}function Vr(n){let o,e;return o=new Ue({props:{type:"blue",class:"px-2 py-0",$$slots:{default:[Wr]},$$scope:{ctx:n}}}),{c(){P(o.$$.fragment)},l(t){W(o.$$.fragment,t)},m(t,r){V(o,t,r),e=!0},p(t,r){const l={};r&268435460&&(l.$$scope={dirty:r,ctx:t}),o.$set(l)},i(t){e||(w(o.$$.fragment,t),e=!0)},o(t){$(o.$$.fragment,t),e=!1},d(t){M(o,t)}}}function Mr(n){var t,r;let o=((r=(t=n[15])==null?void 0:t.pollers)==null?void 0:r.length)+"",e;return{c(){e=G(o)},l(l){e=K(l,o)},m(l,s){y(l,e,s)},p(l,s){var i,f;s&32768&&o!==(o=((f=(i=l[15])==null?void 0:i.pollers)==null?void 0:f.length)+"")&&he(e,o)},d(l){l&&_(e)}}}function qr(n){let o,e;return o=new Ue({props:{type:"blue",class:"px-2 py-0",$$slots:{default:[Mr]},$$scope:{ctx:n}}}),{c(){P(o.$$.fragment)},l(t){W(o.$$.fragment,t)},m(t,r){V(o,t,r),e=!0},p(t,r){const l={};r&268468224&&(l.$$scope={dirty:r,ctx:t}),o.$set(l)},i(t){e||(w(o.$$.fragment,t),e=!0)},o(t){$(o.$$.fragment,t),e=!1},d(t){M(o,t)}}}function ut(n){let o,e;return o=new io({props:{name:"canceled",width:20,height:20}}),{c(){P(o.$$.fragment)},l(t){W(o.$$.fragment,t)},m(t,r){V(o,t,r),e=!0},i(t){e||(w(o.$$.fragment,t),e=!0)},o(t){$(o.$$.fragment,t),e=!1},d(t){M(o,t)}}}function Hr(n){var s,i;let o,e=((i=(s=n[2])==null?void 0:s.pendingActivities)==null?void 0:i.length)+"",t,r,l=n[12]&&ut();return{c(){l&&l.c(),o=J(),t=G(e)},l(f){l&&l.l(f),o=Y(f),t=K(f,e)},m(f,u){l&&l.m(f,u),y(f,o,u),y(f,t,u),r=!0},p(f,u){var p,a;f[12]?l?u&4096&&w(l,1):(l=ut(),l.c(),w(l,1),l.m(o.parentNode,o)):l&&(pe(),$(l,1,1,()=>{l=null}),de()),(!r||u&4)&&e!==(e=((a=(p=f[2])==null?void 0:p.pendingActivities)==null?void 0:a.length)+"")&&he(t,e)},i(f){r||(w(l),r=!0)},o(f){$(l),r=!1},d(f){l&&l.d(f),f&&_(o),f&&_(t)}}}function Fr(n){let o,e;return o=new Ue({props:{type:n[12]?"warning":"blue",class:"px-2 py-0",$$slots:{default:[Hr]},$$scope:{ctx:n}}}),{c(){P(o.$$.fragment)},l(t){W(o.$$.fragment,t)},m(t,r){V(o,t,r),e=!0},p(t,r){const l={};r&4096&&(l.type=t[12]?"warning":"blue"),r&268439556&&(l.$$scope={dirty:r,ctx:t}),o.$set(l)},i(t){e||(w(o.$$.fragment,t),e=!0)},o(t){$(o.$$.fragment,t),e=!1},d(t){M(o,t)}}}function Nr(n){let o,e,t,r,l,s,i,f,u,p;return o=new Te({props:{label:k("workflows.history-tab"),id:"history-tab",href:$e({...n[13]}),active:_e(n[6].url.pathname,$e({...n[13]})),$$slots:{default:[Vr]},$$scope:{ctx:n}}}),t=new Te({props:{label:k("workflows.workers-tab"),id:"workers-tab",href:Re(n[13]),active:_e(n[6].url.pathname,Re(n[13])),$$slots:{default:[qr]},$$scope:{ctx:n}}}),l=new Te({props:{label:k("workflows.pending-activities-tab"),id:"pending-activities-tab",href:Ce(n[13]),active:_e(n[6].url.pathname,Ce(n[13])),$$slots:{default:[Fr]},$$scope:{ctx:n}}}),i=new Te({props:{label:k("workflows.call-stack-tab"),id:"call-stack-tab",href:Ae(n[13]),active:_e(n[6].url.pathname,Ae(n[13]))}}),u=new Te({props:{label:k("workflows.queries-tab"),id:"queries-tab",href:ye(n[13]),active:_e(n[6].url.pathname,ye(n[13]))}}),{c(){P(o.$$.fragment),e=J(),P(t.$$.fragment),r=J(),P(l.$$.fragment),s=J(),P(i.$$.fragment),f=J(),P(u.$$.fragment)},l(a){W(o.$$.fragment,a),e=Y(a),W(t.$$.fragment,a),r=Y(a),W(l.$$.fragment,a),s=Y(a),W(i.$$.fragment,a),f=Y(a),W(u.$$.fragment,a)},m(a,c){V(o,a,c),y(a,e,c),V(t,a,c),y(a,r,c),V(l,a,c),y(a,s,c),V(i,a,c),y(a,f,c),V(u,a,c),p=!0},p(a,c){const g={};c&8192&&(g.href=$e({...a[13]})),c&8256&&(g.active=_e(a[6].url.pathname,$e({...a[13]}))),c&268435460&&(g.$$scope={dirty:c,ctx:a}),o.$set(g);const v={};c&8192&&(v.href=Re(a[13])),c&8256&&(v.active=_e(a[6].url.pathname,Re(a[13]))),c&268468224&&(v.$$scope={dirty:c,ctx:a}),t.$set(v);const T={};c&8192&&(T.href=Ce(a[13])),c&8256&&(T.active=_e(a[6].url.pathname,Ce(a[13]))),c&268439556&&(T.$$scope={dirty:c,ctx:a}),l.$set(T);const I={};c&8192&&(I.href=Ae(a[13])),c&8256&&(I.active=_e(a[6].url.pathname,Ae(a[13]))),i.$set(I);const R={};c&8192&&(R.href=ye(a[13])),c&8256&&(R.active=_e(a[6].url.pathname,ye(a[13]))),u.$set(R)},i(a){p||(w(o.$$.fragment,a),w(t.$$.fragment,a),w(l.$$.fragment,a),w(i.$$.fragment,a),w(u.$$.fragment,a),p=!0)},o(a){$(o.$$.fragment,a),$(t.$$.fragment,a),$(l.$$.fragment,a),$(i.$$.fragment,a),$(u.$$.fragment,a),p=!1},d(a){M(o,a),a&&_(e),M(t,a),a&&_(r),M(l,a),a&&_(s),M(i,a),a&&_(f),M(u,a)}}}function Br(n){let o,e;return o=new Mo({props:{class:"flex flex-wrap gap-6",label:"workflow detail",$$slots:{default:[Nr]},$$scope:{ctx:n}}}),{c(){P(o.$$.fragment)},l(t){W(o.$$.fragment,t)},m(t,r){V(o,t,r),e=!0},p(t,r){const l={};r&268480580&&(l.$$scope={dirty:r,ctx:t}),o.$set(l)},i(t){e||(w(o.$$.fragment,t),e=!0)},o(t){$(o.$$.fragment,t),e=!1},d(t){M(o,t)}}}function Ur(n){var x,Z;let o,e,t,r,l,s,i,f,u,p,a,c,g,v,T,I,R,N,d,S,A,Q;t=new qe({props:{href:`${Ve({namespace:n[0]})}?${n[16]}`,"data-testid":"back-to-workflows",icon:"chevron-left",$$slots:{default:[Er]},$$scope:{ctx:n}}});let b=n[14]&&rt(n);u=new Wo({props:{copyIconTitle:k("common.copy-icon-title"),copySuccessIconTitle:k("common.copy-success-icon-title"),content:(x=n[2])==null?void 0:x.id,clickAllToCopy:!0,"container-class":"w-full",class:"overflow-hidden text-ellipsis"}}),c=new yo({props:{status:(Z=n[2])==null?void 0:Z.status}});let H=n[9]&&nt(n),F=n[3]&&at(n);R=new vr({props:{isRunning:n[3],cancelInProgress:n[11],workflow:n[2],namespace:n[0]}});let B=n[11]&&ft(n),U=n[10]&&it(n);return A=new Vo({props:{$$slots:{default:[Br]},$$scope:{ctx:n}}}),{c(){o=L("header"),e=L("div"),P(t.$$.fragment),r=J(),b&&b.c(),l=J(),s=L("div"),i=L("div"),f=L("h1"),P(u.$$.fragment),p=J(),a=L("div"),P(c.$$.fragment),g=J(),H&&H.c(),v=J(),T=L("div"),F&&F.c(),I=J(),P(R.$$.fragment),N=J(),B&&B.c(),d=J(),U&&U.c(),S=J(),P(A.$$.fragment),this.h()},l(C){o=j(C,"HEADER",{class:!0});var E=O(o);e=j(E,"DIV",{class:!0});var re=O(e);W(t.$$.fragment,re),r=Y(re),b&&b.l(re),re.forEach(_),l=Y(E),s=j(E,"DIV",{class:!0});var ne=O(s);i=j(ne,"DIV",{class:!0});var oe=O(i);f=j(oe,"H1",{"data-testid":!0,class:!0});var m=O(f);W(u.$$.fragment,m),m.forEach(_),p=Y(oe),a=j(oe,"DIV",{class:!0});var D=O(a);W(c.$$.fragment,D),g=Y(D),H&&H.l(D),D.forEach(_),oe.forEach(_),v=Y(ne),T=j(ne,"DIV",{class:!0});var te=O(T);F&&F.l(te),I=Y(te),W(R.$$.fragment,te),te.forEach(_),ne.forEach(_),N=Y(E),B&&B.l(E),d=Y(E),U&&U.l(E),S=Y(E),W(A.$$.fragment,E),E.forEach(_),this.h()},h(){z(e,"class","mb-4 block"),z(f,"data-testid","workflow-id-heading"),z(f,"class","overflow-hidden text-2xl font-medium"),z(a,"class","flex flex-wrap items-center gap-4"),z(i,"class","flex w-full flex-col justify-start gap-4 overflow-hidden whitespace-nowrap lg:w-auto"),z(T,"class","flex flex-col items-center justify-center gap-4 whitespace-nowrap sm:flex-row lg:justify-end"),z(s,"class","mb-8 flex w-full flex-col items-center justify-between gap-4 lg:flex-row"),z(o,"class","mb-4 flex flex-col gap-1")},m(C,E){y(C,o,E),q(o,e),V(t,e,null),q(e,r),b&&b.m(e,null),q(o,l),q(o,s),q(s,i),q(i,f),V(u,f,null),q(i,p),q(i,a),V(c,a,null),q(a,g),H&&H.m(a,null),q(s,v),q(s,T),F&&F.m(T,null),q(T,I),V(R,T,null),q(o,N),B&&B.m(o,null),q(o,d),U&&U.m(o,null),q(o,S),V(A,o,null),Q=!0},p(C,[E]){var te,fe;const re={};E&65537&&(re.href=`${Ve({namespace:C[0]})}?${C[16]}`),E&268451840&&(re.$$scope={dirty:E,ctx:C}),t.$set(re),C[14]?b?(b.p(C,E),E&16384&&w(b,1)):(b=rt(C),b.c(),w(b,1),b.m(e,null)):b&&(pe(),$(b,1,1,()=>{b=null}),de());const ne={};E&4&&(ne.content=(te=C[2])==null?void 0:te.id),u.$set(ne);const oe={};E&4&&(oe.status=(fe=C[2])==null?void 0:fe.status),c.$set(oe),C[9]?H?(H.p(C,E),E&512&&w(H,1)):(H=nt(C),H.c(),w(H,1),H.m(a,null)):H&&(pe(),$(H,1,1,()=>{H=null}),de()),C[3]?F?(F.p(C,E),E&8&&w(F,1)):(F=at(C),F.c(),w(F,1),F.m(T,I)):F&&(pe(),$(F,1,1,()=>{F=null}),de());const m={};E&8&&(m.isRunning=C[3]),E&2048&&(m.cancelInProgress=C[11]),E&4&&(m.workflow=C[2]),E&1&&(m.namespace=C[0]),R.$set(m),C[11]?B?(B.p(C,E),E&2048&&w(B,1)):(B=ft(C),B.c(),w(B,1),B.m(o,d)):B&&(pe(),$(B,1,1,()=>{B=null}),de()),C[10]?U?(U.p(C,E),E&1024&&w(U,1)):(U=it(C),U.c(),w(U,1),U.m(o,S)):U&&(pe(),$(U,1,1,()=>{U=null}),de());const D={};E&268480580&&(D.$$scope={dirty:E,ctx:C}),A.$set(D)},i(C){Q||(w(t.$$.fragment,C),w(b),w(u.$$.fragment,C),w(c.$$.fragment,C),w(H),w(F),w(R.$$.fragment,C),w(B),w(U),w(A.$$.fragment,C),Q=!0)},o(C){$(t.$$.fragment,C),$(b),$(u.$$.fragment,C),$(c.$$.fragment,C),$(H),$(F),$(R.$$.fragment,C),$(B),$(U),$(A.$$.fragment,C),Q=!1},d(C){C&&_(o),M(t),b&&b.d(),M(u),M(c),H&&H.d(),F&&F.d(),M(R),B&&B.d(),U&&U.d(),M(A)}}}const ct=15e3;function Lr(n,o,e){let t,r,l,s,i,f,u,p,a,c,g,v,T,I,R,N,d,S,A,Q;X(n,We,E=>e(4,I=E)),X(n,Ct,E=>e(5,R=E)),X(n,Pe,E=>e(25,N=E)),X(n,ge,E=>e(26,d=E)),X(n,Se,E=>e(27,S=E)),X(n,Me,E=>e(6,A=E)),X(n,bt,E=>e(16,Q=E));var b,H,F,B,U;let{namespace:x}=o,Z;dt(()=>{f&&S==="on"&&(clearInterval(Z),e(23,Z=setInterval(()=>le(ge,d=Date.now(),d),ct)))});const C=()=>{S==="on"?(le(Se,S="off",S),clearInterval(Z)):(le(ge,d=Date.now(),d),le(Se,S="on",S),clearInterval(Z),e(23,Z=setInterval(()=>le(ge,d=Date.now(),d),ct)))};return Fe(()=>{clearInterval(Z)}),n.$$set=E=>{"namespace"in E&&e(0,x=E.namespace)},n.$$.update=()=>{n.$$.dirty&16&&e(2,{workflow:t,workers:r,compatibility:l}=I,t,(e(15,r),e(4,I)),(e(24,l),e(4,I))),n.$$.dirty&64&&e(14,s=A.params.id),n.$$.dirty&5&&e(13,i={namespace:x,workflow:t==null?void 0:t.id,run:t==null?void 0:t.runId}),n.$$.dirty&262160&&e(3,f=e(18,b=I==null?void 0:I.workflow)===null||b===void 0?void 0:b.isRunning),n.$$.dirty&524304&&e(12,u=["Terminated","TimedOut","Canceled"].includes(e(19,H=I.workflow)===null||H===void 0?void 0:H.status)),n.$$.dirty&8388616&&(f||clearInterval(Z)),n.$$.dirty&34603024&&e(11,p=Ir(e(20,F=I==null?void 0:I.workflow)===null||F===void 0?void 0:F.status,N)),n.$$.dirty&2097200&&e(10,a=qo(R,e(21,B=I==null?void 0:I.workflow)===null||B===void 0?void 0:B.runId)),n.$$.dirty&4194308&&e(9,c=e(22,U=t==null?void 0:t.mostRecentWorkerVersionStamp)===null||U===void 0?void 0:U.useVersioning),n.$$.dirty&4&&e(1,g=Ho(t)),n.$$.dirty&16777216&&e(8,v=Fo(l)),n.$$.dirty&16777218&&e(7,T=No(l,g))},[x,g,t,f,I,R,A,T,v,c,a,p,u,i,s,r,Q,C,b,H,F,B,U,Z,l,N]}class jr extends ve{constructor(o){super(),Ie(this,o,Lr,Ur,Ee,{namespace:0})}}async function Or({activity:n,namespace:o,settings:e,accessToken:t},{convertWithCodec:r=Lo,decodeAttributes:l=jo}={}){const s=await r({attributes:n,namespace:o,settings:e,accessToken:t});return l(s)}const Qr=async({activity:n,namespace:o,settings:e,accessToken:t})=>await Or({activity:n,namespace:o,settings:e,accessToken:t}),Jr=async(n,o,e,t)=>{const r=(n==null?void 0:n.pendingActivities)??[],l=[];for(const s of r){const i=await Qr({activity:s,namespace:o,settings:e,accessToken:t});l.push(i)}return l};function Yr(n){let o,e,t;o=new jr({props:{namespace:n[0].params.namespace}});const r=n[8].default,l=wt(r,n,n[7],null);return{c(){P(o.$$.fragment),e=J(),l&&l.c()},l(s){W(o.$$.fragment,s),e=Y(s),l&&l.l(s)},m(s,i){V(o,s,i),y(s,e,i),l&&l.m(s,i),t=!0},p(s,i){const f={};i&1&&(f.namespace=s[0].params.namespace),o.$set(f),l&&l.p&&(!t||i&128)&&ht(l,r,s,s[7],t?kt(r,s[7],i,null):$t(s[7]),null)},i(s){t||(w(o.$$.fragment,s),w(l,s),t=!0)},o(s){$(o.$$.fragment,s),$(l,s),t=!1},d(s){M(o,s),s&&_(e),l&&l.d(s)}}}function zr(n){let o,e;return o=new to({}),{c(){P(o.$$.fragment)},l(t){W(o.$$.fragment,t)},m(t,r){V(o,t,r),e=!0},p:ae,i(t){e||(w(o.$$.fragment,t),e=!0)},o(t){$(o.$$.fragment,t),e=!1},d(t){M(o,t)}}}function Gr(n){let o,e;return o=new zo({props:{error:n[1]}}),{c(){P(o.$$.fragment)},l(t){W(o.$$.fragment,t)},m(t,r){V(o,t,r),e=!0},p(t,r){const l={};r&2&&(l.error=t[1]),o.$set(l)},i(t){e||(w(o.$$.fragment,t),e=!0)},o(t){$(o.$$.fragment,t),e=!1},d(t){M(o,t)}}}function Kr(n){let o,e,t,r;const l=[Gr,zr,Yr],s=[];function i(f,u){return f[1]?0:f[2].workflow?2:1}return e=i(n),t=s[e]=l[e](n),{c(){o=L("div"),t.c(),this.h()},l(f){o=j(f,"DIV",{class:!0});var u=O(o);t.l(u),u.forEach(_),this.h()},h(){z(o,"class","flex h-full flex-col gap-6")},m(f,u){y(f,o,u),s[e].m(o,null),r=!0},p(f,[u]){let p=e;e=i(f),e===p?s[e].p(f,u):(pe(),$(s[p],1,1,()=>{s[p]=null}),de(),t=s[e],t?t.p(f,u):(t=s[e]=l[e](f),t.c()),w(t,1),t.m(o,null))},i(f){r||(w(t),r=!0)},o(f){$(t),r=!1},d(f){f&&_(o),s[e].d()}}}function Xr(n,o,e){let t,r,l,s,i,f,u,p,a,c;X(n,Pe,d=>e(9,s=d)),X(n,We,d=>e(2,i=d)),X(n,ze,d=>e(10,f=d)),X(n,Je,d=>e(11,u=d)),X(n,Me,d=>e(0,p=d)),X(n,ge,d=>e(6,a=d)),X(n,Tt,d=>e(12,c=d));let{$$slots:g={},$$scope:v}=o,T;const I=async(d,S)=>{var A;if(!((A=d==null?void 0:d.mostRecentWorkerVersionStamp)===null||A===void 0)&&A.useVersioning)return await So({queue:S,namespace:t})},R=async({namespace:d,workers:S,taskQueue:A})=>{if(!Bo(S.pollers))return;const b=Uo(S.pollers);return await Po({namespace:d,buildIds:b,taskQueue:A})},N=async(d,S,A)=>{const{settings:Q}=p.data,{workflow:b,error:H}=await ho({namespace:d,workflowId:S,runId:A});if(H){e(1,T=H);return}const{taskQueue:F}=b,B=await Do({queue:F,namespace:d}),U=await I(b,F),x=await R({namespace:d,workers:B,taskQueue:F});b.pendingActivities=await Jr(b,d,Q,c==null?void 0:c.accessToken),le(We,i={workflow:b,workers:B,compatibility:U,reachability:x},i);const Z=await Oo({namespace:d,workflowId:S,runId:A});le(Pe,s=Z,s)};return dt(()=>{const d=p.url.searchParams.get("sort");d&&le(Je,u=d,u)}),Fe(()=>{le(ze,f=null,f),le(We,i=To,i),le(Pe,s=so,s),e(1,T=void 0)}),n.$$set=d=>{"$$scope"in d&&e(7,v=d.$$scope)},n.$$.update=()=>{n.$$.dirty&1&&e(5,{namespace:t,workflow:r,run:l}=p.params,t,(e(4,r),e(0,p)),(e(3,l),e(0,p))),n.$$.dirty&120&&N(t,r,l)},[p,T,i,l,r,t,a,v,g]}class Zr extends ve{constructor(o){super(),Ie(this,o,Xr,Kr,Ee,{})}}const At={namespace:null,workflowId:null,runId:null,rawPayloads:null,sort:null},xr=It(At),en=()=>{xr.set(At)};function tn(n){let o;const e=n[0].default,t=wt(e,n,n[1],null);return{c(){t&&t.c()},l(r){t&&t.l(r)},m(r,l){t&&t.m(r,l),o=!0},p(r,l){t&&t.p&&(!o||l&2)&&ht(t,e,r,r[1],o?kt(e,r[1],l,null):$t(r[1]),null)},i(r){o||(w(t,r),o=!0)},o(r){$(t,r),o=!1},d(r){t&&t.d(r)}}}function on(n){let o,e;return o=new Zr({props:{$$slots:{default:[tn]},$$scope:{ctx:n}}}),{c(){P(o.$$.fragment)},l(t){W(o.$$.fragment,t)},m(t,r){V(o,t,r),e=!0},p(t,[r]){const l={};r&2&&(l.$$scope={dirty:r,ctx:t}),o.$set(l)},i(t){e||(w(o.$$.fragment,t),e=!0)},o(t){$(o.$$.fragment,t),e=!1},d(t){M(o,t)}}}function rn(n,o,e){let{$$slots:t={},$$scope:r}=o;return Fe(()=>{en()}),n.$$set=l=>{"$$scope"in l&&e(1,r=l.$$scope)},[t,r]}class Gn extends ve{constructor(o){super(),Ie(this,o,rn,on,Ee,{})}}export{Gn as component}; diff --git a/ui/assets/local/_app/immutable/nodes/8.2954be28.js b/ui/assets/local/_app/immutable/nodes/8.956a6de8.js similarity index 93% rename from ui/assets/local/_app/immutable/nodes/8.2954be28.js rename to ui/assets/local/_app/immutable/nodes/8.956a6de8.js index aeffe0224e..59cf03bba7 100644 --- a/ui/assets/local/_app/immutable/nodes/8.2954be28.js +++ b/ui/assets/local/_app/immutable/nodes/8.956a6de8.js @@ -1 +1 @@ -/* empty css */import{e as r}from"../chunks/index.3158323b.js";import{f as l}from"../chunks/settings-service.7bd36f05.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.0942deb7.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.d5aa336c.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.0942deb7.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/immutable/nodes/9.a414eb76.js b/ui/assets/local/_app/immutable/nodes/9.f04e4c83.js similarity index 80% rename from ui/assets/local/_app/immutable/nodes/9.a414eb76.js rename to ui/assets/local/_app/immutable/nodes/9.f04e4c83.js index 8554abe661..17fb5c5705 100644 --- a/ui/assets/local/_app/immutable/nodes/9.a414eb76.js +++ b/ui/assets/local/_app/immutable/nodes/9.f04e4c83.js @@ -1 +1 @@ -import{r as u}from"../chunks/index.3158323b.js";import{a as l,l as m}from"../chunks/route-for.ecd88549.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.0942deb7.js";import{g as c}from"../chunks/navigation.83f47780.js";import{L as $}from"../chunks/loading.e7565465.js";import{d as F}from"../chunks/workflow-service.61e0ba9f.js";import{l as j}from"../chunks/namespaces.5c0c98b2.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.18f9590b.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.0942deb7.js";import{g as c}from"../chunks/navigation.dde0d4fa.js";import{L as $}from"../chunks/loading.e7565465.js";import{d as F}from"../chunks/workflow-service.bd668cd0.js";import{l as j}from"../chunks/namespaces.68caf21c.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/version.json b/ui/assets/local/_app/version.json index f815c45dcc..a57c6907d3 100644 --- a/ui/assets/local/_app/version.json +++ b/ui/assets/local/_app/version.json @@ -1 +1 @@ -{"version":"1706287132895"} \ No newline at end of file +{"version":"1706552881847"} \ No newline at end of file diff --git a/ui/assets/local/index.html b/ui/assets/local/index.html index 6d0c985da6..4bd6796aed 100644 --- a/ui/assets/local/index.html +++ b/ui/assets/local/index.html @@ -4,19 +4,19 @@ - + - - + + - +