From 31d1cd1d4d2777d5ffa9357fb7daca03224e49c2 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" Date: Fri, 23 Jun 2023 09:12:39 +0000 Subject: [PATCH] chore(deps): bump kumahq/kuma-gui to 1fd1c1b91ba4a065ec5ece0d351e06896f22706f Bumps kumahq/kuma-gui to version [master@1fd1c1b91ba4a065ec5ece0d351e06896f22706f](https://github.com/kumahq/kuma-gui/tree/1fd1c1b91ba4a065ec5ece0d351e06896f22706f) Signed-off-by: GitHub --- ...265b0844.js => AddNewServices-b79c6b78.js} | 2 +- ...1ba7.js => AddNewServicesCode-ab5ad28e.js} | 2 +- .../{App-d80487f2.js => App-8ea103e0.js} | 2 +- ...a586afe.js => AppNotFoundView-91c459f7.js} | 2 +- ...e_vue_type_style_index_0_lang-15a6fd20.js} | 2 +- ...-260b6b34.js => CompletedView-ba3d8266.js} | 2 +- ...961f.js => ConfigurationTypes-2d6f3b24.js} | 2 +- ...6a8b0059.js => ContentWrapper-1933fc04.js} | 2 +- ...esh-f549366f.js => CreateMesh-33abdae5.js} | 2 +- ...w-5b210bb7.js => DataOverview-7c85e051.js} | 2 +- ...fca.js => DataPlaneDetailView-91b88c44.js} | 42 +++++++++---------- ...-5bcc6a6f.js => DataPlaneList-ea6c4e67.js} | 2 +- ...83b60.js => DataPlaneListView-cac088f6.js} | 2 +- ...671.js => DataplaneKubernetes-697adf36.js} | 2 +- ...ccd0.js => DataplaneUniversal-fbeb32fb.js} | 2 +- ...c9f8.js => DataplanesOverview-ce745e92.js} | 2 +- ...d6a2.js => DefinitionListItem-f18ea925.js} | 2 +- ...a80a523.js => DeploymentTypes-a50f731e.js} | 2 +- ...62a28a6.js => DiagnosticsView-b352af36.js} | 2 +- ...e_type_script_setup_true_lang-ddebee78.js} | 2 +- ...e_type_script_setup_true_lang-a5d1cc1c.js} | 2 +- ...b4b.js => EnvironmentSwitcher-f9b18d2b.js} | 2 +- ...Data-9e7e9f1e.js => EnvoyData-caab84d6.js} | 2 +- ...ock-eb438aeb.js => ErrorBlock-cc9ab0db.js} | 2 +- ...e_type_script_setup_true_lang-2c479ce1.js} | 2 +- ...Box-b09612df.js => LoadingBox-d716f607.js} | 2 +- ...cf7c3e.js => MainOverviewView-d2a5fb0c.js} | 2 +- ...w-3c513e41.js => MeshItemView-66f5d240.js} | 2 +- ...w-9eb63c69.js => MeshListView-0ef3bae9.js} | 2 +- ...b8db38.js => MeshOverviewView-44e253a3.js} | 2 +- ...-2049b27d.js => MeshResources-b34711e1.js} | 2 +- ...hView-cc69177c.js => MeshView-a9e78f52.js} | 2 +- ...ard-54876954.js => MeshWizard-da10975e.js} | 2 +- ...-538bb97d.js => MultiZoneView-38edbce4.js} | 2 +- ...e_type_script_setup_true_lang-cd891354.js} | 2 +- ...avTabs-1f291852.js => NavTabs-9a8866d1.js} | 2 +- ...392f5a8e.js => OnboardingPage-fd4cb9d4.js} | 2 +- ...ccceb63a.js => OnboardingView-3d4c14ac.js} | 2 +- .../data/assets/PolicyDetailView-16b5de61.js | 1 - .../data/assets/PolicyDetailView-c9246967.js | 1 + ...e_type_script_setup_true_lang-2a0ba52f.js} | 2 +- .../data/assets/PolicyListView-0ef1f381.css | 1 + .../data/assets/PolicyListView-1703e6b7.css | 1 - .../data/assets/PolicyListView-25092e07.js | 5 --- .../data/assets/PolicyListView-690a3779.js | 5 +++ ...e_type_script_setup_true_lang-6b64ed3d.js} | 2 +- ...e_type_script_setup_true_lang-f4fc2caf.js} | 2 +- ...e_type_script_setup_true_lang-8e6a23b5.js} | 2 +- .../data/assets/ServiceDetailView-7e4e08d0.js | 1 - .../data/assets/ServiceDetailView-9190c6d8.js | 1 + ...f737e10.js => ServiceListView-fdc72b6c.js} | 2 +- ...362ad6c4.js => ServiceSummary-568940dc.js} | 2 +- ...ge-9e322ea6.js => StatusBadge-6b87699d.js} | 2 +- ...e_type_script_setup_true_lang-8a43cc10.js} | 2 +- ...n-991a8da9.js => StepSkeleton-3ca715f8.js} | 2 +- ...e_type_script_setup_true_lang-6986223f.js} | 2 +- ...get-5826fd5b.js => TabsWidget-a42020cd.js} | 2 +- ...agList-a0e27239.js => TagList-76ef6044.js} | 2 +- ...5945.js => TextWithCopyButton-4f241d23.js} | 2 +- ...e_type_script_setup_true_lang-385921c7.js} | 2 +- ...ew-4aafe261.js => WelcomeView-9b449942.js} | 2 +- ...21900b7d.js => ZoneCreateView-f6bb42f9.js} | 2 +- .../data/assets/ZoneDetailView-6bef6f62.js | 1 + .../data/assets/ZoneDetailView-731aea0c.js | 1 - ...e_type_script_setup_true_lang-0689c124.js} | 2 +- .../assets/ZoneEgressDetailView-445e52fe.js | 1 - .../assets/ZoneEgressDetailView-ebac8068.js | 1 + ...e_type_script_setup_true_lang-147f44ee.js} | 2 +- ...b14f.js => ZoneEgressListView-d6988e61.js} | 2 +- ...-465b2744.js => ZoneIndexView-96a4a69f.js} | 2 +- .../assets/ZoneIngressDetailView-906da9f8.js | 1 + .../assets/ZoneIngressDetailView-d8ed0648.js | 1 - ...e_type_script_setup_true_lang-e6622a30.js} | 2 +- ...f09.js => ZoneIngressListView-0760de79.js} | 2 +- ...w-7b303aba.js => ZoneListView-a4bd0b20.js} | 2 +- .../{index-50754121.js => index-a4a530d1.js} | 6 +-- ...07c2d778.js => kongponents.es-f7b55123.js} | 2 +- app/kuma-ui/pkg/resources/data/index.html | 2 +- 78 files changed, 97 insertions(+), 97 deletions(-) rename app/kuma-ui/pkg/resources/data/assets/{AddNewServices-265b0844.js => AddNewServices-b79c6b78.js} (86%) rename app/kuma-ui/pkg/resources/data/assets/{AddNewServicesCode-fe7f1ba7.js => AddNewServicesCode-ab5ad28e.js} (86%) rename app/kuma-ui/pkg/resources/data/assets/{App-d80487f2.js => App-8ea103e0.js} (87%) rename app/kuma-ui/pkg/resources/data/assets/{AppNotFoundView-8a586afe.js => AppNotFoundView-91c459f7.js} (80%) rename app/kuma-ui/pkg/resources/data/assets/{CodeBlock.vue_vue_type_style_index_0_lang-559b3ab4.js => CodeBlock.vue_vue_type_style_index_0_lang-15a6fd20.js} (99%) rename app/kuma-ui/pkg/resources/data/assets/{CompletedView-260b6b34.js => CompletedView-ba3d8266.js} (76%) rename app/kuma-ui/pkg/resources/data/assets/{ConfigurationTypes-20eb961f.js => ConfigurationTypes-2d6f3b24.js} (84%) rename app/kuma-ui/pkg/resources/data/assets/{ContentWrapper-6a8b0059.js => ContentWrapper-1933fc04.js} (77%) rename app/kuma-ui/pkg/resources/data/assets/{CreateMesh-f549366f.js => CreateMesh-33abdae5.js} (81%) rename app/kuma-ui/pkg/resources/data/assets/{DataOverview-5b210bb7.js => DataOverview-7c85e051.js} (93%) rename app/kuma-ui/pkg/resources/data/assets/{DataPlaneDetailView-c432efca.js => DataPlaneDetailView-91b88c44.js} (60%) rename app/kuma-ui/pkg/resources/data/assets/{DataPlaneList-5bcc6a6f.js => DataPlaneList-ea6c4e67.js} (96%) rename app/kuma-ui/pkg/resources/data/assets/{DataPlaneListView-ce983b60.js => DataPlaneListView-cac088f6.js} (71%) rename app/kuma-ui/pkg/resources/data/assets/{DataplaneKubernetes-aa737671.js => DataplaneKubernetes-697adf36.js} (95%) rename app/kuma-ui/pkg/resources/data/assets/{DataplaneUniversal-46f8ccd0.js => DataplaneUniversal-fbeb32fb.js} (96%) rename app/kuma-ui/pkg/resources/data/assets/{DataplanesOverview-97eec9f8.js => DataplanesOverview-ce745e92.js} (81%) rename app/kuma-ui/pkg/resources/data/assets/{DefinitionListItem-b371d6a2.js => DefinitionListItem-f18ea925.js} (82%) rename app/kuma-ui/pkg/resources/data/assets/{DeploymentTypes-ca80a523.js => DeploymentTypes-a50f731e.js} (83%) rename app/kuma-ui/pkg/resources/data/assets/{DiagnosticsView-162a28a6.js => DiagnosticsView-b352af36.js} (60%) rename app/kuma-ui/pkg/resources/data/assets/{EmptyBlock.vue_vue_type_script_setup_true_lang-34eb656c.js => EmptyBlock.vue_vue_type_script_setup_true_lang-ddebee78.js} (78%) rename app/kuma-ui/pkg/resources/data/assets/{EntityScanner.vue_vue_type_script_setup_true_lang-e9ac5f5d.js => EntityScanner.vue_vue_type_script_setup_true_lang-a5d1cc1c.js} (91%) rename app/kuma-ui/pkg/resources/data/assets/{EnvironmentSwitcher-ad9d1b4b.js => EnvironmentSwitcher-f9b18d2b.js} (93%) rename app/kuma-ui/pkg/resources/data/assets/{EnvoyData-9e7e9f1e.js => EnvoyData-caab84d6.js} (83%) rename app/kuma-ui/pkg/resources/data/assets/{ErrorBlock-eb438aeb.js => ErrorBlock-cc9ab0db.js} (87%) rename app/kuma-ui/pkg/resources/data/assets/{LoadingBlock.vue_vue_type_script_setup_true_lang-95ccda4d.js => LoadingBlock.vue_vue_type_script_setup_true_lang-2c479ce1.js} (72%) rename app/kuma-ui/pkg/resources/data/assets/{LoadingBox-b09612df.js => LoadingBox-d716f607.js} (76%) rename app/kuma-ui/pkg/resources/data/assets/{MainOverviewView-8bcf7c3e.js => MainOverviewView-d2a5fb0c.js} (51%) rename app/kuma-ui/pkg/resources/data/assets/{MeshItemView-3c513e41.js => MeshItemView-66f5d240.js} (70%) rename app/kuma-ui/pkg/resources/data/assets/{MeshListView-9eb63c69.js => MeshListView-0ef3bae9.js} (73%) rename app/kuma-ui/pkg/resources/data/assets/{MeshOverviewView-8ab8db38.js => MeshOverviewView-44e253a3.js} (85%) rename app/kuma-ui/pkg/resources/data/assets/{MeshResources-2049b27d.js => MeshResources-b34711e1.js} (90%) rename app/kuma-ui/pkg/resources/data/assets/{MeshView-cc69177c.js => MeshView-a9e78f52.js} (71%) rename app/kuma-ui/pkg/resources/data/assets/{MeshWizard-54876954.js => MeshWizard-da10975e.js} (97%) rename app/kuma-ui/pkg/resources/data/assets/{MultiZoneView-538bb97d.js => MultiZoneView-38edbce4.js} (86%) rename app/kuma-ui/pkg/resources/data/assets/{MultizoneInfo.vue_vue_type_script_setup_true_lang-1754f4fb.js => MultizoneInfo.vue_vue_type_script_setup_true_lang-cd891354.js} (77%) rename app/kuma-ui/pkg/resources/data/assets/{NavTabs-1f291852.js => NavTabs-9a8866d1.js} (81%) rename app/kuma-ui/pkg/resources/data/assets/{OnboardingPage-392f5a8e.js => OnboardingPage-fd4cb9d4.js} (92%) rename app/kuma-ui/pkg/resources/data/assets/{OnboardingView-ccceb63a.js => OnboardingView-3d4c14ac.js} (70%) delete mode 100644 app/kuma-ui/pkg/resources/data/assets/PolicyDetailView-16b5de61.js create mode 100644 app/kuma-ui/pkg/resources/data/assets/PolicyDetailView-c9246967.js rename app/kuma-ui/pkg/resources/data/assets/{PolicyDetails.vue_vue_type_script_setup_true_lang-67e41c63.js => PolicyDetails.vue_vue_type_script_setup_true_lang-2a0ba52f.js} (89%) create mode 100644 app/kuma-ui/pkg/resources/data/assets/PolicyListView-0ef1f381.css delete mode 100644 app/kuma-ui/pkg/resources/data/assets/PolicyListView-1703e6b7.css delete mode 100644 app/kuma-ui/pkg/resources/data/assets/PolicyListView-25092e07.js create mode 100644 app/kuma-ui/pkg/resources/data/assets/PolicyListView-690a3779.js rename app/kuma-ui/pkg/resources/data/assets/{ResourceCodeBlock.vue_vue_type_script_setup_true_lang-d4356ea6.js => ResourceCodeBlock.vue_vue_type_script_setup_true_lang-6b64ed3d.js} (82%) rename app/kuma-ui/pkg/resources/data/assets/{RouteTitle.vue_vue_type_script_setup_true_lang-c74dc965.js => RouteTitle.vue_vue_type_script_setup_true_lang-f4fc2caf.js} (82%) rename app/kuma-ui/pkg/resources/data/assets/{RouteView.vue_vue_type_script_setup_true_lang-bc0afbf3.js => RouteView.vue_vue_type_script_setup_true_lang-8e6a23b5.js} (99%) delete mode 100644 app/kuma-ui/pkg/resources/data/assets/ServiceDetailView-7e4e08d0.js create mode 100644 app/kuma-ui/pkg/resources/data/assets/ServiceDetailView-9190c6d8.js rename app/kuma-ui/pkg/resources/data/assets/{ServiceListView-ff737e10.js => ServiceListView-fdc72b6c.js} (72%) rename app/kuma-ui/pkg/resources/data/assets/{ServiceSummary-362ad6c4.js => ServiceSummary-568940dc.js} (83%) rename app/kuma-ui/pkg/resources/data/assets/{StatusBadge-9e322ea6.js => StatusBadge-6b87699d.js} (74%) rename app/kuma-ui/pkg/resources/data/assets/{StatusInfo.vue_vue_type_script_setup_true_lang-eefb4f85.js => StatusInfo.vue_vue_type_script_setup_true_lang-8a43cc10.js} (73%) rename app/kuma-ui/pkg/resources/data/assets/{StepSkeleton-991a8da9.js => StepSkeleton-3ca715f8.js} (94%) rename app/kuma-ui/pkg/resources/data/assets/{SubscriptionHeader.vue_vue_type_script_setup_true_lang-21feaa9d.js => SubscriptionHeader.vue_vue_type_script_setup_true_lang-6986223f.js} (89%) rename app/kuma-ui/pkg/resources/data/assets/{TabsWidget-5826fd5b.js => TabsWidget-a42020cd.js} (85%) rename app/kuma-ui/pkg/resources/data/assets/{TagList-a0e27239.js => TagList-76ef6044.js} (79%) rename app/kuma-ui/pkg/resources/data/assets/{TextWithCopyButton-d85f5945.js => TextWithCopyButton-4f241d23.js} (87%) rename app/kuma-ui/pkg/resources/data/assets/{WarningsWidget.vue_vue_type_script_setup_true_lang-2f6eac43.js => WarningsWidget.vue_vue_type_script_setup_true_lang-385921c7.js} (90%) rename app/kuma-ui/pkg/resources/data/assets/{WelcomeView-4aafe261.js => WelcomeView-9b449942.js} (94%) rename app/kuma-ui/pkg/resources/data/assets/{ZoneCreateView-21900b7d.js => ZoneCreateView-f6bb42f9.js} (96%) create mode 100644 app/kuma-ui/pkg/resources/data/assets/ZoneDetailView-6bef6f62.js delete mode 100644 app/kuma-ui/pkg/resources/data/assets/ZoneDetailView-731aea0c.js rename app/kuma-ui/pkg/resources/data/assets/{ZoneDetails.vue_vue_type_script_setup_true_lang-131b956f.js => ZoneDetails.vue_vue_type_script_setup_true_lang-0689c124.js} (81%) delete mode 100644 app/kuma-ui/pkg/resources/data/assets/ZoneEgressDetailView-445e52fe.js create mode 100644 app/kuma-ui/pkg/resources/data/assets/ZoneEgressDetailView-ebac8068.js rename app/kuma-ui/pkg/resources/data/assets/{ZoneEgressDetails.vue_vue_type_script_setup_true_lang-f0286ba7.js => ZoneEgressDetails.vue_vue_type_script_setup_true_lang-147f44ee.js} (84%) rename app/kuma-ui/pkg/resources/data/assets/{ZoneEgressListView-29eeb14f.js => ZoneEgressListView-d6988e61.js} (69%) rename app/kuma-ui/pkg/resources/data/assets/{ZoneIndexView-465b2744.js => ZoneIndexView-96a4a69f.js} (77%) create mode 100644 app/kuma-ui/pkg/resources/data/assets/ZoneIngressDetailView-906da9f8.js delete mode 100644 app/kuma-ui/pkg/resources/data/assets/ZoneIngressDetailView-d8ed0648.js rename app/kuma-ui/pkg/resources/data/assets/{ZoneIngressDetails.vue_vue_type_script_setup_true_lang-07ba13c6.js => ZoneIngressDetails.vue_vue_type_script_setup_true_lang-e6622a30.js} (84%) rename app/kuma-ui/pkg/resources/data/assets/{ZoneIngressListView-5c318f09.js => ZoneIngressListView-0760de79.js} (70%) rename app/kuma-ui/pkg/resources/data/assets/{ZoneListView-7b303aba.js => ZoneListView-a4bd0b20.js} (82%) rename app/kuma-ui/pkg/resources/data/assets/{index-50754121.js => index-a4a530d1.js} (75%) rename app/kuma-ui/pkg/resources/data/assets/{kongponents.es-07c2d778.js => kongponents.es-f7b55123.js} (99%) diff --git a/app/kuma-ui/pkg/resources/data/assets/AddNewServices-265b0844.js b/app/kuma-ui/pkg/resources/data/assets/AddNewServices-b79c6b78.js similarity index 86% rename from app/kuma-ui/pkg/resources/data/assets/AddNewServices-265b0844.js rename to app/kuma-ui/pkg/resources/data/assets/AddNewServices-b79c6b78.js index b730c3c2201d..a84a8c0e52bb 100644 --- a/app/kuma-ui/pkg/resources/data/assets/AddNewServices-265b0844.js +++ b/app/kuma-ui/pkg/resources/data/assets/AddNewServices-b79c6b78.js @@ -1,4 +1,4 @@ -import{O as b,a as x,b as S}from"./OnboardingPage-392f5a8e.js";import{d as m,o as u,e as h,n as w,z as k,c as y,a as B,w as t,h as s,b as _,g as o,k as e,p as $,m as C}from"./index-50754121.js";import{h as v,f as N,k as I,g as A,_ as O}from"./RouteView.vue_vue_type_script_setup_true_lang-bc0afbf3.js";import{_ as z}from"./RouteTitle.vue_vue_type_script_setup_true_lang-c74dc965.js";import"./kongponents.es-07c2d778.js";const M=""+new URL("new-service-demo-bff0792e.svg",import.meta.url).href,V=""+new URL("new-service-manually-5bec5301.svg",import.meta.url).href,L=m({__name:"ServiceBox",props:{active:{type:Boolean,required:!1,default:!1}},emits:["clicked"],setup(a,{emit:n}){const c=a;return(r,i)=>(u(),h("div",{class:k(["box",{"box--active":c.active}]),"data-testid":"box",onClick:i[0]||(i[0]=l=>n("clicked"))},[w(r.$slots,"default",{},void 0,!0)],2))}});const p=v(L,[["__scopeId","data-v-93fc7d1a"]]),f=a=>($("data-v-8218f0d7"),a=a(),C(),a),R={class:"service-mode-list"},U=f(()=>e("div",{class:"service-box-content"},[e("img",{src:M}),o(),e("p",{class:"service-mode-title"},` +import{O as b,a as x,b as S}from"./OnboardingPage-fd4cb9d4.js";import{d as m,o as u,e as h,n as w,z as k,c as y,a as B,w as t,h as s,b as _,g as o,k as e,p as $,m as C}from"./index-a4a530d1.js";import{h as v,f as N,k as I,g as A,_ as O}from"./RouteView.vue_vue_type_script_setup_true_lang-8e6a23b5.js";import{_ as z}from"./RouteTitle.vue_vue_type_script_setup_true_lang-f4fc2caf.js";import"./kongponents.es-f7b55123.js";const M=""+new URL("new-service-demo-bff0792e.svg",import.meta.url).href,V=""+new URL("new-service-manually-5bec5301.svg",import.meta.url).href,L=m({__name:"ServiceBox",props:{active:{type:Boolean,required:!1,default:!1}},emits:["clicked"],setup(a,{emit:n}){const c=a;return(r,i)=>(u(),h("div",{class:k(["box",{"box--active":c.active}]),"data-testid":"box",onClick:i[0]||(i[0]=l=>n("clicked"))},[w(r.$slots,"default",{},void 0,!0)],2))}});const p=v(L,[["__scopeId","data-v-93fc7d1a"]]),f=a=>($("data-v-8218f0d7"),a=a(),C(),a),R={class:"service-mode-list"},U=f(()=>e("div",{class:"service-box-content"},[e("img",{src:M}),o(),e("p",{class:"service-mode-title"},` Demo app `),o(),e("p",null,"Counter application")],-1)),q=f(()=>e("div",{class:"service-box-content"},[e("img",{src:V}),o(),e("p",{class:"service-mode-title"},` Manually diff --git a/app/kuma-ui/pkg/resources/data/assets/AddNewServicesCode-fe7f1ba7.js b/app/kuma-ui/pkg/resources/data/assets/AddNewServicesCode-ab5ad28e.js similarity index 86% rename from app/kuma-ui/pkg/resources/data/assets/AddNewServicesCode-fe7f1ba7.js rename to app/kuma-ui/pkg/resources/data/assets/AddNewServicesCode-ab5ad28e.js index 81ed64c9504b..e1922bdde44c 100644 --- a/app/kuma-ui/pkg/resources/data/assets/AddNewServicesCode-fe7f1ba7.js +++ b/app/kuma-ui/pkg/resources/data/assets/AddNewServicesCode-ab5ad28e.js @@ -1,4 +1,4 @@ -import{L as k}from"./LoadingBox-b09612df.js";import{O as w,a as x,b as y}from"./OnboardingPage-392f5a8e.js";import{k as A,j as N,f as C,g as T,_ as I,h as P}from"./RouteView.vue_vue_type_script_setup_true_lang-bc0afbf3.js";import{_ as D}from"./RouteTitle.vue_vue_type_script_setup_true_lang-c74dc965.js";import{_ as m}from"./CodeBlock.vue_vue_type_style_index_0_lang-559b3ab4.js";import{d as E,q as p,c as L,C as O,o as n,a as S,w as s,h as t,b as R,g as e,e as c,F as B,k as o,f as V,p as $,m as q}from"./index-50754121.js";import"./kongponents.es-07c2d778.js";const h=i=>($("data-v-159bee77"),i=i(),q(),i),G=h(()=>o("p",{class:"mb-4 text-center"},` +import{L as k}from"./LoadingBox-d716f607.js";import{O as w,a as x,b as y}from"./OnboardingPage-fd4cb9d4.js";import{k as A,j as N,f as C,g as T,_ as I,h as P}from"./RouteView.vue_vue_type_script_setup_true_lang-8e6a23b5.js";import{_ as D}from"./RouteTitle.vue_vue_type_script_setup_true_lang-f4fc2caf.js";import{_ as m}from"./CodeBlock.vue_vue_type_style_index_0_lang-15a6fd20.js";import{d as E,q as p,c as L,C as O,o as n,a as S,w as s,h as t,b as R,g as e,e as c,F as B,k as o,f as V,p as $,m as q}from"./index-a4a530d1.js";import"./kongponents.es-f7b55123.js";const h=i=>($("data-v-159bee77"),i=i(),q(),i),G=h(()=>o("p",{class:"mb-4 text-center"},` The demo application includes two services: a Redis backend to store a counter value, and a frontend web UI to show and increment the counter. `,-1)),K=h(()=>o("p",null,"To run execute the following command:",-1)),F={key:1},H={class:"status-box mt-4"},M={key:0,class:"status--is-connected","data-testid":"dpps-connected"},U={key:1,class:"status--is-disconnected","data-testid":"dpps-disconnected"},j={key:0,class:"status-loading-box mt-4"},z=1e3,_="https://github.com/kumahq/kuma-counter-demo/",J="https://github.com/kumahq/kuma-counter-demo/blob/master/README.md",Q="kubectl apply -f https://bit.ly/3Kh2Try",W=E({__name:"AddNewServicesCode",setup(i){const{t:b}=A(),f=N(),g=C(),a=p(!1),l=p(null),v=L(()=>g.getters["config/getEnvironment"]==="kubernetes");r(),O(function(){u()});async function r(){try{const{total:d}=await f.getAllDataplanes();a.value=d>0}catch(d){console.error(d)}finally{a.value||(u(),l.value=window.setTimeout(()=>r(),z))}}function u(){l.value!==null&&window.clearTimeout(l.value)}return(d,X)=>(n(),S(I,null,{default:s(()=>[t(D,{title:R(b)("onboarding.routes.add-services-code.title")},null,8,["title"]),e(),t(T,null,{default:s(()=>[t(w,null,{header:s(()=>[t(x,null,{title:s(()=>[e(` Add services diff --git a/app/kuma-ui/pkg/resources/data/assets/App-d80487f2.js b/app/kuma-ui/pkg/resources/data/assets/App-8ea103e0.js similarity index 87% rename from app/kuma-ui/pkg/resources/data/assets/App-d80487f2.js rename to app/kuma-ui/pkg/resources/data/assets/App-8ea103e0.js index 831cea9b9066..b521743de0af 100644 --- a/app/kuma-ui/pkg/resources/data/assets/App-d80487f2.js +++ b/app/kuma-ui/pkg/resources/data/assets/App-8ea103e0.js @@ -1 +1 @@ -import{d as x,u as M,c as s,r as B,a as o,w as d,o as e,b as a,e as u,f as r,g as n,h as c,T as C,i as E,F as O}from"./index-50754121.js";import{u as L,a as T,b as V,c as z,d as F,e as H,f as W,_ as $,g as j,h as q}from"./RouteView.vue_vue_type_script_setup_true_lang-bc0afbf3.js";import"./kongponents.es-07c2d778.js";const D={key:1},I={key:2,class:"app-content-container"},K=x({__name:"App",props:{data:{type:Object,required:!1,default:void 0}},setup(_){const f=_,[m,g,v,h,y,A]=[L(),T(),V(),z(),F(),H()],i=W(),t=M(),k=s(()=>t.path),p=s(()=>t.meta.isWizard===!0),b=s(()=>i.getters.shouldShowAppError),N=s(()=>i.getters.shouldShowNotificationManager),w=s(()=>i.getters.shouldShowOnboardingNotification);return(P,R)=>{const l=B("router-view");return e(),o($,null,{default:d(()=>[a(i).state.globalLoading||a(t).name===void 0?(e(),o(a(v),{key:0})):(e(),u(O,{key:1},[p.value?r("",!0):(e(),o(a(g),{key:0})),n(),a(t).meta.onboardingProcess?(e(),u("div",D,[c(l)])):(e(),u("div",I,[p.value?r("",!0):(e(),o(a(m),{key:0})),n(),c(j,null,{default:d(()=>[b.value?(e(),o(a(h),{key:0,"data-testid":"app-error"})):r("",!0),n(),!p.value&&N.value?(e(),o(a(y),{key:1})):r("",!0),n(),!p.value&&w.value?(e(),o(a(A),{key:2})):r("",!0),n(),(e(),o(l,{key:k.value},{default:d(({Component:S})=>[c(C,{mode:"out-in",name:"fade"},{default:d(()=>[(e(),u("div",{key:a(t).name,class:"transition-root"},[(e(),o(E(S),{data:f.data},null,8,["data"]))]))]),_:2},1024)]),_:1}))]),_:1})]))],64))]),_:1})}}});const U=q(K,[["__scopeId","data-v-4112b7fe"]]);export{U as default}; +import{d as x,u as M,c as s,r as B,a as o,w as d,o as e,b as a,e as u,f as r,g as n,h as c,T as C,i as E,F as O}from"./index-a4a530d1.js";import{u as L,a as T,b as V,c as z,d as F,e as H,f as W,_ as $,g as j,h as q}from"./RouteView.vue_vue_type_script_setup_true_lang-8e6a23b5.js";import"./kongponents.es-f7b55123.js";const D={key:1},I={key:2,class:"app-content-container"},K=x({__name:"App",props:{data:{type:Object,required:!1,default:void 0}},setup(_){const f=_,[m,g,v,h,y,A]=[L(),T(),V(),z(),F(),H()],i=W(),t=M(),k=s(()=>t.path),p=s(()=>t.meta.isWizard===!0),b=s(()=>i.getters.shouldShowAppError),N=s(()=>i.getters.shouldShowNotificationManager),w=s(()=>i.getters.shouldShowOnboardingNotification);return(P,R)=>{const l=B("router-view");return e(),o($,null,{default:d(()=>[a(i).state.globalLoading||a(t).name===void 0?(e(),o(a(v),{key:0})):(e(),u(O,{key:1},[p.value?r("",!0):(e(),o(a(g),{key:0})),n(),a(t).meta.onboardingProcess?(e(),u("div",D,[c(l)])):(e(),u("div",I,[p.value?r("",!0):(e(),o(a(m),{key:0})),n(),c(j,null,{default:d(()=>[b.value?(e(),o(a(h),{key:0,"data-testid":"app-error"})):r("",!0),n(),!p.value&&N.value?(e(),o(a(y),{key:1})):r("",!0),n(),!p.value&&w.value?(e(),o(a(A),{key:2})):r("",!0),n(),(e(),o(l,{key:k.value},{default:d(({Component:S})=>[c(C,{mode:"out-in",name:"fade"},{default:d(()=>[(e(),u("div",{key:a(t).name,class:"transition-root"},[(e(),o(E(S),{data:f.data},null,8,["data"]))]))]),_:2},1024)]),_:1}))]),_:1})]))],64))]),_:1})}}});const U=q(K,[["__scopeId","data-v-4112b7fe"]]);export{U as default}; diff --git a/app/kuma-ui/pkg/resources/data/assets/AppNotFoundView-8a586afe.js b/app/kuma-ui/pkg/resources/data/assets/AppNotFoundView-91c459f7.js similarity index 80% rename from app/kuma-ui/pkg/resources/data/assets/AppNotFoundView-8a586afe.js rename to app/kuma-ui/pkg/resources/data/assets/AppNotFoundView-91c459f7.js index 3c26a29ba11e..9b7acd95e87f 100644 --- a/app/kuma-ui/pkg/resources/data/assets/AppNotFoundView-8a586afe.js +++ b/app/kuma-ui/pkg/resources/data/assets/AppNotFoundView-91c459f7.js @@ -1,4 +1,4 @@ -import{l as n,S as s,b as r}from"./kongponents.es-07c2d778.js";import{d as c,e as l,h as o,w as e,b as a,o as i,g as t,k as p}from"./index-50754121.js";const d={class:"overview"},m=p("p",null,"Page Not Found",-1),g=c({__name:"AppNotFoundView",setup(_){return(u,f)=>(i(),l("div",d,[o(a(r),null,{title:e(()=>[o(a(n),{class:"mb-3",icon:"warning",color:"var(--black-500)","secondary-color":"var(--yellow-300)",size:"64"}),t(),m]),message:e(()=>[t(` +import{l as n,S as s,b as r}from"./kongponents.es-f7b55123.js";import{d as c,e as l,h as o,w as e,b as a,o as i,g as t,k as p}from"./index-a4a530d1.js";const d={class:"overview"},m=p("p",null,"Page Not Found",-1),g=c({__name:"AppNotFoundView",setup(_){return(u,f)=>(i(),l("div",d,[o(a(r),null,{title:e(()=>[o(a(n),{class:"mb-3",icon:"warning",color:"var(--black-500)","secondary-color":"var(--yellow-300)",size:"64"}),t(),m]),message:e(()=>[t(` The page or entity you were looking for does not exist. `)]),cta:e(()=>[o(a(s),{appearance:"primary",to:{name:"home"}},{default:e(()=>[t(` Go Home diff --git a/app/kuma-ui/pkg/resources/data/assets/CodeBlock.vue_vue_type_style_index_0_lang-559b3ab4.js b/app/kuma-ui/pkg/resources/data/assets/CodeBlock.vue_vue_type_style_index_0_lang-15a6fd20.js similarity index 99% rename from app/kuma-ui/pkg/resources/data/assets/CodeBlock.vue_vue_type_style_index_0_lang-559b3ab4.js rename to app/kuma-ui/pkg/resources/data/assets/CodeBlock.vue_vue_type_style_index_0_lang-15a6fd20.js index 7a14d788d963..0b1ff2bca47d 100644 --- a/app/kuma-ui/pkg/resources/data/assets/CodeBlock.vue_vue_type_style_index_0_lang-559b3ab4.js +++ b/app/kuma-ui/pkg/resources/data/assets/CodeBlock.vue_vue_type_style_index_0_lang-15a6fd20.js @@ -1,4 +1,4 @@ -import{m as te}from"./kongponents.es-07c2d778.js";import{ao as Y,ap as ae,d as ne,q as re,L as U,o as ie,a as se,w as oe,n as le,a1 as ue,b as Z}from"./index-50754121.js";var W={exports:{}};(function(f){var b=typeof window<"u"?window:typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope?self:{};/** +import{m as te}from"./kongponents.es-f7b55123.js";import{ao as Y,ap as ae,d as ne,q as re,L as U,o as ie,a as se,w as oe,n as le,a1 as ue,b as Z}from"./index-a4a530d1.js";var W={exports:{}};(function(f){var b=typeof window<"u"?window:typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope?self:{};/** * Prism: Lightweight, robust, elegant syntax highlighting * * @license MIT diff --git a/app/kuma-ui/pkg/resources/data/assets/CompletedView-260b6b34.js b/app/kuma-ui/pkg/resources/data/assets/CompletedView-ba3d8266.js similarity index 76% rename from app/kuma-ui/pkg/resources/data/assets/CompletedView-260b6b34.js rename to app/kuma-ui/pkg/resources/data/assets/CompletedView-ba3d8266.js index 307e5eaf7f78..77f20ac7c4b3 100644 --- a/app/kuma-ui/pkg/resources/data/assets/CompletedView-260b6b34.js +++ b/app/kuma-ui/pkg/resources/data/assets/CompletedView-ba3d8266.js @@ -1,3 +1,3 @@ -import{O as i,a as _,b as p}from"./OnboardingPage-392f5a8e.js";import{k as r,g as c,_ as d,h as l}from"./RouteView.vue_vue_type_script_setup_true_lang-bc0afbf3.js";import{_ as m}from"./RouteTitle.vue_vue_type_script_setup_true_lang-c74dc965.js";import{d as f,o as u,a as g,w as e,h as t,b as h,g as o,p as b,m as w,k as s}from"./index-50754121.js";import"./kongponents.es-07c2d778.js";const v=""+new URL("kuma_gui-ecebdf10.png",import.meta.url).href,x=a=>(b("data-v-f50ef4b3"),a=a(),w(),a),k=x(()=>s("div",{class:"gui-preview-image"},[s("img",{src:v})],-1)),C=f({__name:"CompletedView",setup(a){const{t:n}=r();return(V,I)=>(u(),g(d,null,{default:e(()=>[t(m,{title:h(n)("onboarding.routes.completed.title")},null,8,["title"]),o(),t(c,null,{default:e(()=>[t(i,null,{header:e(()=>[t(_,null,{title:e(()=>[o(` +import{O as i,a as _,b as p}from"./OnboardingPage-fd4cb9d4.js";import{k as r,g as c,_ as d,h as l}from"./RouteView.vue_vue_type_script_setup_true_lang-8e6a23b5.js";import{_ as m}from"./RouteTitle.vue_vue_type_script_setup_true_lang-f4fc2caf.js";import{d as f,o as u,a as g,w as e,h as t,b as h,g as o,p as b,m as w,k as s}from"./index-a4a530d1.js";import"./kongponents.es-f7b55123.js";const v=""+new URL("kuma_gui-ecebdf10.png",import.meta.url).href,x=a=>(b("data-v-f50ef4b3"),a=a(),w(),a),k=x(()=>s("div",{class:"gui-preview-image"},[s("img",{src:v})],-1)),C=f({__name:"CompletedView",setup(a){const{t:n}=r();return(V,I)=>(u(),g(d,null,{default:e(()=>[t(m,{title:h(n)("onboarding.routes.completed.title")},null,8,["title"]),o(),t(c,null,{default:e(()=>[t(i,null,{header:e(()=>[t(_,null,{title:e(()=>[o(` Go to the dashboard `)]),_:1})]),content:e(()=>[k]),navigation:e(()=>[t(p,{"next-step":"home","next-step-title":"Complete","last-step":"","show-skip":!1})]),_:1})]),_:1})]),_:1}))}});const y=l(C,[["__scopeId","data-v-f50ef4b3"]]);export{y as default}; diff --git a/app/kuma-ui/pkg/resources/data/assets/ConfigurationTypes-20eb961f.js b/app/kuma-ui/pkg/resources/data/assets/ConfigurationTypes-2d6f3b24.js similarity index 84% rename from app/kuma-ui/pkg/resources/data/assets/ConfigurationTypes-20eb961f.js rename to app/kuma-ui/pkg/resources/data/assets/ConfigurationTypes-2d6f3b24.js index c2b15f0d4885..8d41dc91f30b 100644 --- a/app/kuma-ui/pkg/resources/data/assets/ConfigurationTypes-20eb961f.js +++ b/app/kuma-ui/pkg/resources/data/assets/ConfigurationTypes-2d6f3b24.js @@ -1,4 +1,4 @@ -import{s as l}from"./kongponents.es-07c2d778.js";import{O as b,a as h,b as V}from"./OnboardingPage-392f5a8e.js";import{v as x,w as C,x as G,f as k,k as M,g as P,_ as T,h as w}from"./RouteView.vue_vue_type_script_setup_true_lang-bc0afbf3.js";import{_ as N}from"./RouteTitle.vue_vue_type_script_setup_true_lang-c74dc965.js";import{d as O,q as B,y as K,c as i,o as d,a as p,w as e,h as o,b as r,g as a,k as m,i as S}from"./index-50754121.js";const U={class:"graph-list mb-6"},$={class:"radio-button-group"},I=O({__name:"ConfigurationTypes",setup(q){const c=x(),g=C(),_={postgres:G(),memory:g,kubernetes:c},u=k(),{t:f}=M(),t=B("kubernetes");K(function(){t.value=u.getters["config/getConfigurationType"]});const v=i(()=>u.getters["config/getMulticlusterStatus"]?"onboarding-multi-zone":"onboarding-create-mesh"),y=i(()=>_[t.value]);return(D,n)=>(d(),p(T,null,{default:e(()=>[o(N,{title:r(f)("onboarding.routes.configuration-types.title")},null,8,["title"]),a(),o(P,null,{default:e(()=>[o(b,{"with-image":""},{header:e(()=>[o(h,null,{title:e(()=>[a(` +import{s as l}from"./kongponents.es-f7b55123.js";import{O as b,a as h,b as V}from"./OnboardingPage-fd4cb9d4.js";import{v as x,w as C,x as G,f as k,k as M,g as P,_ as T,h as w}from"./RouteView.vue_vue_type_script_setup_true_lang-8e6a23b5.js";import{_ as N}from"./RouteTitle.vue_vue_type_script_setup_true_lang-f4fc2caf.js";import{d as O,q as B,y as K,c as i,o as d,a as p,w as e,h as o,b as r,g as a,k as m,i as S}from"./index-a4a530d1.js";const U={class:"graph-list mb-6"},$={class:"radio-button-group"},I=O({__name:"ConfigurationTypes",setup(q){const c=x(),g=C(),_={postgres:G(),memory:g,kubernetes:c},u=k(),{t:f}=M(),t=B("kubernetes");K(function(){t.value=u.getters["config/getConfigurationType"]});const v=i(()=>u.getters["config/getMulticlusterStatus"]?"onboarding-multi-zone":"onboarding-create-mesh"),y=i(()=>_[t.value]);return(D,n)=>(d(),p(T,null,{default:e(()=>[o(N,{title:r(f)("onboarding.routes.configuration-types.title")},null,8,["title"]),a(),o(P,null,{default:e(()=>[o(b,{"with-image":""},{header:e(()=>[o(h,null,{title:e(()=>[a(` Learn about configuration storage `)]),_:1})]),content:e(()=>[m("div",U,[(d(),p(S(y.value)))]),a(),m("div",$,[o(r(l),{modelValue:t.value,"onUpdate:modelValue":n[0]||(n[0]=s=>t.value=s),name:"deployment","selected-value":"kubernetes"},{default:e(()=>[a(` Kubernetes diff --git a/app/kuma-ui/pkg/resources/data/assets/ContentWrapper-6a8b0059.js b/app/kuma-ui/pkg/resources/data/assets/ContentWrapper-1933fc04.js similarity index 77% rename from app/kuma-ui/pkg/resources/data/assets/ContentWrapper-6a8b0059.js rename to app/kuma-ui/pkg/resources/data/assets/ContentWrapper-1933fc04.js index 95f4986fdff8..e95d16c5d827 100644 --- a/app/kuma-ui/pkg/resources/data/assets/ContentWrapper-6a8b0059.js +++ b/app/kuma-ui/pkg/resources/data/assets/ContentWrapper-1933fc04.js @@ -1 +1 @@ -import{d as n,E as a,o as t,e as s,k as _,n as o,g as c,b as p,f as d}from"./index-50754121.js";import{h as i}from"./RouteView.vue_vue_type_script_setup_true_lang-bc0afbf3.js";const l={class:"content-wrapper"},m={class:"content-wrapper__content kcard-border"},u={key:0,class:"content-wrapper__sidebar"},v=n({__name:"ContentWrapper",setup(f){const r=a();return(e,C)=>(t(),s("div",l,[_("div",m,[o(e.$slots,"content",{},void 0,!0)]),c(),p(r).sidebar?(t(),s("div",u,[o(e.$slots,"sidebar",{},void 0,!0)])):d("",!0)]))}});const k=i(v,[["__scopeId","data-v-22673661"]]);export{k as C}; +import{d as n,E as a,o as t,e as s,k as _,n as o,g as c,b as p,f as d}from"./index-a4a530d1.js";import{h as i}from"./RouteView.vue_vue_type_script_setup_true_lang-8e6a23b5.js";const l={class:"content-wrapper"},m={class:"content-wrapper__content kcard-border"},u={key:0,class:"content-wrapper__sidebar"},v=n({__name:"ContentWrapper",setup(f){const r=a();return(e,C)=>(t(),s("div",l,[_("div",m,[o(e.$slots,"content",{},void 0,!0)]),c(),p(r).sidebar?(t(),s("div",u,[o(e.$slots,"sidebar",{},void 0,!0)])):d("",!0)]))}});const k=i(v,[["__scopeId","data-v-22673661"]]);export{k as C}; diff --git a/app/kuma-ui/pkg/resources/data/assets/CreateMesh-f549366f.js b/app/kuma-ui/pkg/resources/data/assets/CreateMesh-33abdae5.js similarity index 81% rename from app/kuma-ui/pkg/resources/data/assets/CreateMesh-f549366f.js rename to app/kuma-ui/pkg/resources/data/assets/CreateMesh-33abdae5.js index c8a3a01205d1..91154b3d5037 100644 --- a/app/kuma-ui/pkg/resources/data/assets/CreateMesh-f549366f.js +++ b/app/kuma-ui/pkg/resources/data/assets/CreateMesh-33abdae5.js @@ -1,4 +1,4 @@ -import{r as p}from"./kongponents.es-07c2d778.js";import{O as _,a as m,b as f}from"./OnboardingPage-392f5a8e.js";import{f as h,k as g,g as b,_ as v,h as y}from"./RouteView.vue_vue_type_script_setup_true_lang-bc0afbf3.js";import{_ as x}from"./RouteTitle.vue_vue_type_script_setup_true_lang-c74dc965.js";import{d as S,q as k,c as A,o as C,a as N,w as e,h as t,b as n,g as a,k as o,t as B,B as D,p as I,m as M}from"./index-50754121.js";const r=s=>(I("data-v-594df836"),s=s(),M(),s),O={class:"mb-4 text-center"},E=r(()=>o("i",null,"default",-1)),P=r(()=>o("p",{class:"mt-4 text-center"},` +import{r as p}from"./kongponents.es-f7b55123.js";import{O as _,a as m,b as f}from"./OnboardingPage-fd4cb9d4.js";import{f as h,k as g,g as b,_ as v,h as y}from"./RouteView.vue_vue_type_script_setup_true_lang-8e6a23b5.js";import{_ as x}from"./RouteTitle.vue_vue_type_script_setup_true_lang-f4fc2caf.js";import{d as S,q as k,c as A,o as C,a as N,w as e,h as t,b as n,g as a,k as o,t as B,B as D,p as I,m as M}from"./index-a4a530d1.js";const r=s=>(I("data-v-594df836"),s=s(),M(),s),O={class:"mb-4 text-center"},E=r(()=>o("i",null,"default",-1)),P=r(()=>o("p",{class:"mt-4 text-center"},` This mesh is empty. Next, you add services and their data plane proxies. `,-1)),T=S({__name:"CreateMesh",setup(s){const i=[{label:"Name",key:"name"},{label:"Services",key:"servicesAmount"},{label:"DPPs",key:"dppsAmount"}],c=h(),{t:l}=g(),d=k({total:1,data:[{name:"default",servicesAmount:0,dppsAmount:0}]}),u=A(()=>c.getters["config/getMulticlusterStatus"]?"onboarding-multi-zone":"onboarding-configuration-types");return(w,V)=>(C(),N(v,null,{default:e(()=>[t(x,{title:n(l)("onboarding.routes.create-mesh.title")},null,8,["title"]),a(),t(b,null,{default:e(()=>[t(_,null,{header:e(()=>[t(m,null,{title:e(()=>[a(` Create the mesh diff --git a/app/kuma-ui/pkg/resources/data/assets/DataOverview-5b210bb7.js b/app/kuma-ui/pkg/resources/data/assets/DataOverview-7c85e051.js similarity index 93% rename from app/kuma-ui/pkg/resources/data/assets/DataOverview-5b210bb7.js rename to app/kuma-ui/pkg/resources/data/assets/DataOverview-7c85e051.js index 5a3e67f0802a..c253fb0b5ad9 100644 --- a/app/kuma-ui/pkg/resources/data/assets/DataOverview-5b210bb7.js +++ b/app/kuma-ui/pkg/resources/data/assets/DataOverview-7c85e051.js @@ -1,4 +1,4 @@ -import{l as k,S as D,Y as M,Q as O,r as Q}from"./kongponents.es-07c2d778.js";import{_ as I}from"./EmptyBlock.vue_vue_type_script_setup_true_lang-34eb656c.js";import{E as Y}from"./ErrorBlock-eb438aeb.js";import{_ as X}from"./LoadingBlock.vue_vue_type_script_setup_true_lang-95ccda4d.js";import{d as T,o as t,e as d,a as l,w as s,h as m,b as c,g as o,f as p,M as B,E as J,q as R,c as S,s as Z,r as ee,k as _,n as C,l as P,j as te,F as h,t as r,z as N,p as ae,m as se}from"./index-50754121.js";import{z,h as q}from"./RouteView.vue_vue_type_script_setup_true_lang-bc0afbf3.js";import{T as ne}from"./TagList-a0e27239.js";import{S as oe}from"./StatusBadge-9e322ea6.js";const ie=""+new URL("icon-empty-table-dbb0b754.svg",import.meta.url).href,le={class:"pagination"},re=T({__name:"PaginationWidget",props:{hasPrevious:{type:Boolean,default:!1},hasNext:{type:Boolean,default:!1}},emits:["next","previous"],setup(n,{emit:u}){const a=n,b=z();function w(){u("next"),b.info(B.PAGINATION_NEXT_BUTTON_CLICKED)}function v(){u("previous"),b.info(B.PAGINATION_PREVIOUS_BUTTON_CLICKED)}return(E,x)=>(t(),d("div",le,[a.hasPrevious?(t(),l(c(D),{key:0,appearance:"primary","data-testid":"pagination-previous-button",onClick:v},{default:s(()=>[m(c(k),{icon:"chevronLeft",color:"currentColor",size:"16","hide-title":"","aria-hidden":"true"}),o(` +import{l as k,S as D,Y as M,Q as O,r as Q}from"./kongponents.es-f7b55123.js";import{_ as I}from"./EmptyBlock.vue_vue_type_script_setup_true_lang-ddebee78.js";import{E as Y}from"./ErrorBlock-cc9ab0db.js";import{_ as X}from"./LoadingBlock.vue_vue_type_script_setup_true_lang-2c479ce1.js";import{d as T,o as t,e as d,a as l,w as s,h as m,b as c,g as o,f as p,M as B,E as J,q as R,c as S,s as Z,r as ee,k as _,n as C,l as P,j as te,F as h,t as r,z as N,p as ae,m as se}from"./index-a4a530d1.js";import{z,h as q}from"./RouteView.vue_vue_type_script_setup_true_lang-8e6a23b5.js";import{T as ne}from"./TagList-76ef6044.js";import{S as oe}from"./StatusBadge-6b87699d.js";const ie=""+new URL("icon-empty-table-dbb0b754.svg",import.meta.url).href,le={class:"pagination"},re=T({__name:"PaginationWidget",props:{hasPrevious:{type:Boolean,default:!1},hasNext:{type:Boolean,default:!1}},emits:["next","previous"],setup(n,{emit:u}){const a=n,b=z();function w(){u("next"),b.info(B.PAGINATION_NEXT_BUTTON_CLICKED)}function v(){u("previous"),b.info(B.PAGINATION_PREVIOUS_BUTTON_CLICKED)}return(E,x)=>(t(),d("div",le,[a.hasPrevious?(t(),l(c(D),{key:0,appearance:"primary","data-testid":"pagination-previous-button",onClick:v},{default:s(()=>[m(c(k),{icon:"chevronLeft",color:"currentColor",size:"16","hide-title":"","aria-hidden":"true"}),o(` Previous `)]),_:1})):p("",!0),o(),a.hasNext?(t(),l(c(D),{key:1,appearance:"primary","data-testid":"pagination-next-button",onClick:w},{default:s(()=>[o(` diff --git a/app/kuma-ui/pkg/resources/data/assets/DataPlaneDetailView-c432efca.js b/app/kuma-ui/pkg/resources/data/assets/DataPlaneDetailView-91b88c44.js similarity index 60% rename from app/kuma-ui/pkg/resources/data/assets/DataPlaneDetailView-c432efca.js rename to app/kuma-ui/pkg/resources/data/assets/DataPlaneDetailView-91b88c44.js index 5aae656c3ec6..c8ecd51e86c9 100644 --- a/app/kuma-ui/pkg/resources/data/assets/DataPlaneDetailView-c432efca.js +++ b/app/kuma-ui/pkg/resources/data/assets/DataPlaneDetailView-91b88c44.js @@ -1,25 +1,25 @@ -import{d as S,r as F,o as e,e as n,g as l,F as m,j as E,k as f,t as g,h as u,w as t,f as R,a as d,l as ke,b as I,p as ge,m as fe,c as z,n as Ee,q as M,s as ae,K as Oe,u as Ue}from"./index-50754121.js";import{P as Qe,l as Ge,r as ve,Z as Me}from"./kongponents.es-07c2d778.js";import{A as J,i as W,h as Y,f as V,j as se,k as Te,l as Ie,m as Re,n as le,o as Le,p as ze,q as xe,C as _e,I as Se,r as Ye,g as Ne,_ as He}from"./RouteView.vue_vue_type_script_setup_true_lang-bc0afbf3.js";import{_ as De}from"./CodeBlock.vue_vue_type_style_index_0_lang-559b3ab4.js";import{T as j}from"./TagList-a0e27239.js";import{_ as we}from"./EmptyBlock.vue_vue_type_script_setup_true_lang-34eb656c.js";import{E as Be}from"./ErrorBlock-eb438aeb.js";import{_ as be}from"./LoadingBlock.vue_vue_type_script_setup_true_lang-95ccda4d.js";import{t as ie}from"./toYaml-4e00099e.js";import{D as oe,a as K}from"./DefinitionListItem-b371d6a2.js";import{E as te}from"./EnvoyData-9e7e9f1e.js";import{_ as qe}from"./ResourceCodeBlock.vue_vue_type_script_setup_true_lang-d4356ea6.js";import{S as Ke}from"./StatusBadge-9e322ea6.js";import{_ as je}from"./StatusInfo.vue_vue_type_script_setup_true_lang-eefb4f85.js";import{_ as Fe,S as Je}from"./SubscriptionHeader.vue_vue_type_script_setup_true_lang-21feaa9d.js";import{T as We}from"./TabsWidget-5826fd5b.js";import{T as Ve}from"./TextWithCopyButton-d85f5945.js";import{_ as Xe}from"./WarningsWidget.vue_vue_type_script_setup_true_lang-2f6eac43.js";import{_ as Ze}from"./RouteTitle.vue_vue_type_script_setup_true_lang-c74dc965.js";import"./QueryParameter-70743f73.js";const q=c=>(ge("data-v-1a7d780a"),c=c(),fe(),c),$e={class:"mesh-gateway-policy-list"},et=q(()=>f("h3",null,"Gateway policies",-1)),tt={key:0,class:"policy-list"},at=q(()=>f("h3",{class:"mt-6"},` +import{d as _,r as F,o as e,e as n,g as l,F as h,j as E,k as f,t as g,h as u,w as t,f as R,a as d,l as ke,b as I,p as ge,m as fe,c as z,n as Ee,q as G,s as te,K as Oe,u as Ue}from"./index-a4a530d1.js";import{P as Qe,l as Ge,r as ve,Z as Me}from"./kongponents.es-f7b55123.js";import{A as J,i as W,h as S,f as ae,j as se,k as Te,l as Ie,m as Re,n as le,o as Le,p as ze,q as xe,C as _e,I as Se,r as Ye,g as Ne,_ as He}from"./RouteView.vue_vue_type_script_setup_true_lang-8e6a23b5.js";import{_ as De}from"./CodeBlock.vue_vue_type_style_index_0_lang-15a6fd20.js";import{T as j}from"./TagList-76ef6044.js";import{_ as we}from"./EmptyBlock.vue_vue_type_script_setup_true_lang-ddebee78.js";import{E as Be}from"./ErrorBlock-cc9ab0db.js";import{_ as be}from"./LoadingBlock.vue_vue_type_script_setup_true_lang-2c479ce1.js";import{t as ie}from"./toYaml-4e00099e.js";import{D as oe,a as K}from"./DefinitionListItem-f18ea925.js";import{E as ee}from"./EnvoyData-caab84d6.js";import{_ as qe}from"./ResourceCodeBlock.vue_vue_type_script_setup_true_lang-6b64ed3d.js";import{S as Ke}from"./StatusBadge-6b87699d.js";import{_ as je}from"./StatusInfo.vue_vue_type_script_setup_true_lang-8a43cc10.js";import{_ as Fe,S as Je}from"./SubscriptionHeader.vue_vue_type_script_setup_true_lang-6986223f.js";import{T as We}from"./TabsWidget-a42020cd.js";import{T as Ve}from"./TextWithCopyButton-4f241d23.js";import{_ as Xe}from"./WarningsWidget.vue_vue_type_script_setup_true_lang-385921c7.js";import{_ as Ze}from"./RouteTitle.vue_vue_type_script_setup_true_lang-f4fc2caf.js";import"./QueryParameter-70743f73.js";const H=c=>(ge("data-v-1a7d780a"),c=c(),fe(),c),$e={class:"mesh-gateway-policy-list"},et=H(()=>f("h3",null,"Gateway policies",-1)),tt={key:0,class:"policy-list"},at=H(()=>f("h3",{class:"mt-6"},` Listeners - `,-1)),st=q(()=>f("b",null,"Host",-1)),nt=q(()=>f("h4",{class:"mt-2"},` + `,-1)),st=H(()=>f("b",null,"Host",-1)),nt=H(()=>f("h4",{class:"mt-2"},` Routes - `,-1)),lt={class:"dataplane-policy-header"},it=q(()=>f("b",null,"Route",-1)),ot=q(()=>f("b",null,"Service",-1)),At={key:0,class:"badge-list"},ct={class:"policy-list mt-1"},rt=S({__name:"MeshGatewayDataplanePolicyList",props:{meshGatewayDataplane:{type:Object,required:!0},meshGatewayListenerEntries:{type:Array,required:!0},meshGatewayRoutePolicies:{type:Array,required:!0}},setup(c){const o=c;return(C,T)=>{const w=F("router-link");return e(),n("div",$e,[et,l(),c.meshGatewayRoutePolicies.length>0?(e(),n("ul",tt,[(e(!0),n(m,null,E(c.meshGatewayRoutePolicies,(v,h)=>(e(),n("li",{key:h},[f("span",null,g(v.type),1),l(`: + `,-1)),lt={class:"dataplane-policy-header"},it=H(()=>f("b",null,"Route",-1)),ot=H(()=>f("b",null,"Service",-1)),At={key:0,class:"badge-list"},ct={class:"policy-list mt-1"},rt=_({__name:"MeshGatewayDataplanePolicyList",props:{meshGatewayDataplane:{type:Object,required:!0},meshGatewayListenerEntries:{type:Array,required:!0},meshGatewayRoutePolicies:{type:Array,required:!0}},setup(c){const o=c;return(C,D)=>{const w=F("router-link");return e(),n("div",$e,[et,l(),c.meshGatewayRoutePolicies.length>0?(e(),n("ul",tt,[(e(!0),n(h,null,E(c.meshGatewayRoutePolicies,(m,v)=>(e(),n("li",{key:v},[f("span",null,g(m.type),1),l(`: - `),u(w,{to:v.route},{default:t(()=>[l(g(v.name),1)]),_:2},1032,["to"])]))),128))])):R("",!0),l(),at,l(),f("div",null,[(e(!0),n(m,null,E(o.meshGatewayListenerEntries,(v,h)=>(e(),n("div",{key:h},[f("div",null,[f("div",null,[st,l(": "+g(v.hostName)+":"+g(v.port)+" ("+g(v.protocol)+`) - `,1)]),l(),v.routeEntries.length>0?(e(),n(m,{key:0},[nt,l(),u(W,{"initially-open":[],"multiple-open":""},{default:t(()=>[(e(!0),n(m,null,E(v.routeEntries,(A,D)=>(e(),d(J,{key:D},ke({"accordion-header":t(()=>[f("div",lt,[f("div",null,[f("div",null,[it,l(": "),u(w,{to:A.route},{default:t(()=>[l(g(A.routeName),1)]),_:2},1032,["to"])]),l(),f("div",null,[ot,l(": "+g(A.service),1)])]),l(),A.policies.length>0?(e(),n("div",At,[(e(!0),n(m,null,E(A.policies,(a,y)=>(e(),d(I(Qe),{key:`${h}-${y}`},{default:t(()=>[l(g(a.type),1)]),_:2},1024))),128))])):R("",!0)])]),_:2},[A.policies.length>0?{name:"accordion-content",fn:t(()=>[f("ul",ct,[(e(!0),n(m,null,E(A.policies,(a,y)=>(e(),n("li",{key:`${h}-${y}`},[l(g(a.type)+`: + `),u(w,{to:m.route},{default:t(()=>[l(g(m.name),1)]),_:2},1032,["to"])]))),128))])):R("",!0),l(),at,l(),f("div",null,[(e(!0),n(h,null,E(o.meshGatewayListenerEntries,(m,v)=>(e(),n("div",{key:v},[f("div",null,[f("div",null,[st,l(": "+g(m.hostName)+":"+g(m.port)+" ("+g(m.protocol)+`) + `,1)]),l(),m.routeEntries.length>0?(e(),n(h,{key:0},[nt,l(),u(W,{"initially-open":[],"multiple-open":""},{default:t(()=>[(e(!0),n(h,null,E(m.routeEntries,(A,T)=>(e(),d(J,{key:T},ke({"accordion-header":t(()=>[f("div",lt,[f("div",null,[f("div",null,[it,l(": "),u(w,{to:A.route},{default:t(()=>[l(g(A.routeName),1)]),_:2},1032,["to"])]),l(),f("div",null,[ot,l(": "+g(A.service),1)])]),l(),A.policies.length>0?(e(),n("div",At,[(e(!0),n(h,null,E(A.policies,(a,y)=>(e(),d(I(Qe),{key:`${v}-${y}`},{default:t(()=>[l(g(a.type),1)]),_:2},1024))),128))])):R("",!0)])]),_:2},[A.policies.length>0?{name:"accordion-content",fn:t(()=>[f("ul",ct,[(e(!0),n(h,null,E(A.policies,(a,y)=>(e(),n("li",{key:`${v}-${y}`},[l(g(a.type)+`: - `,1),u(w,{to:a.route},{default:t(()=>[l(g(a.name),1)]),_:2},1032,["to"])]))),128))])]),key:"0"}:void 0]),1024))),128))]),_:2},1024)],64)):R("",!0)])]))),128))])])}}});const ut=Y(rt,[["__scopeId","data-v-1a7d780a"]]),Ae="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAHgAAAB4CAMAAAAOusbgAAAAVFBMVEXa2tra2tra2tra2tra2tra2tr////a2toAfd6izPLvzPnRfvDYteSKr86zas0Aar4AhODY6vr3+Prx8v2Kv+9aqOk3muUOj+N5t+211vXhqfW01fXvn55GAAAABnRSTlMC9s/Hbhsvz/I3AAABVklEQVRo3u3b3Y6CMBCG4SJYhnV/KD+K7v3f57bN7AFJTcDUmZB+74lH5EmMA5hmjK+pq1awqm5M6HxqxTudPSzssmxM06rUmDp8DFawIYi1qYRdlisTeCtcMAGnAgwYMGDAgJ8GGPDB4B8frepnl9cZH5d1374E7GmX1WVuA0xzTvixA+5zwpc0/OXrVgU5N/yx6tMHGDBgwIABvxmeiBZhmF3fPMjDFLuOSjDdnBJMvVOAb1G+y8PjlUKdOGyHOcpLJniiDfEVC/FYZYA3unxFx2OVAd7sTjZ073msRGB2Yy7KvcsC2z05Hitx2P6PVTEwf9W/h/5xvTBOB76ByN8ydzRRzofELln1schjVNCrTxyjsl5vtV7ol7L+tAEGDLhMWOAw5ADHPxIHXmpHfAWepgJOBBgwYMCAAT8NMGDAgJOw2hKO2tqR2qKV1mqZ3jKd2vrgH/W3idgykdWgAAAAAElFTkSuQmCC",pt="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAYAAABXAvmHAAAABGdBTUEAALGPC/xhBQAAADhlWElmTU0AKgAAAAgAAYdpAAQAAAABAAAAGgAAAAAAAqACAAQAAAABAAAAMKADAAQAAAABAAAAMAAAAAD4/042AAAH90lEQVRoBdVaC4xU1Rn+zr2zu8PyEBGoKMFVK0KLFXyiVKS2FFGIhhT7Smq1aQXbuMQHCwRQiBWVUl7CaiuxGoGosSQ0tJuU4qNrpQEfq0AReQisLKK7iCIsO3fO3+8/wx1mdgdmlp3srCdhz8y9597zff/7P4wBhxw50jfW2Pi4ERkhQB+91lGHAerEmFeLotHJprS01ij4oLGxRkR6dFTQmXAZYxoi0eilpqmhYQVEfpppUYe/ZsxKE6uv39fRzeZkglRzMk319cT/9R1eVuixAPazzyFBPG2p/fgA7M6PAd4v5MhKwB46DDnQAPvRPiCFhFiBNB5LXC8giawETPeuQHER0BRDnCRCTfjn9oLpVAJRDSm5ApHITiDiwy87J0lCwToSngfvvD4FJ5GVgLPvXEl8/mW7u0ProhB9QM1IzUnNyqNmDMkhbmEJ3uvWGSiKtCuJrBqQo3TUTw8C1gLNNCF79yfA+jSns85od/C6eVYC9uAXEBKwu+vSSDgHpuQLPbKakMRikI/qXLRR0Oq4oAO3GBpin6uC/Oc94H+7IWd0gbmoL3Db92GGXdJieb4uZCXgNjoeKjVkZiIhH9bCTF4KbK+FML+71M4ZnnHfzcir4M24E+jSKV+4k+/JjYAub06iHzVB22chCNw6FbKdWbmYDjzvdzBXfQs41gS89g7s4pcgX34FXPJN+IvvyzuJDLaQJJf+gdHFRR3OzrHDkGko6vn3AL27JzL1C2vpzIxM6tTjRsCsmAXDpIfNOxCUzwO+Opr+3jZ+y10D4UaqCQ2ZmqFTQ+YuJrhfzYHUHwKuGQRv4SSgpDjx1H6WIhMfha37DBh0ISIL7wU658ecWk8gJJJpVhK/fvQEifnlSRLySYKE7K8Hvn0BIgvyQyJ3E8oEuPm181ly/HkK0Ks75L+bIXOXJ1eYb/SAVzkFpk8vyJZdCO6dnxdzyi8BwjUkYZ6qcKHW/q0aONKYTmLpZJhzejLUksR9C9pMIu8EFK3pSYeO0v41QtFnUodqwn9iMnD2WRCSiD2wsE0k8k+AEreTaB4sQTCkP8CE1nyEJFQTsmUngj+eMLXma7N9zzsB2bQT+k+TGC5kJj7JML15CDLsUqqLitpVm1ilRWIry5O8E9Ak5s25m0mOWfjldbCVf81IIb6mGvblf5GAgTd2OOyGzTj2s6k4Nv5+2I1bMj6T6WJ+w2jKDvLKW4hPr3QFoLl9DPwJ41Lu8uPRRgQVi2CZ4FzU+oLZOqC/aPnBjF784ER4lzOjZxn+jIqKh7Ksye02VS/Tn3JZ2GinptHognMhr70N1HzILi6Ad8VA2GdWszxvgDfgfHgjLke8Zhuwh2W5WPjjWPhdXEbn3ol49Tvw+p/HiMUsfoqRHw1oQzNlKVTq6NkN/qrHAVauOuTVtxDMJDECNN+5iP6xA0Ip+9PugD9yqNNEfMmLQN/e8H9yI9cJmiY+DKu9RrdSRJfNBkpPnrXbTiAVPDf0lzwADCxz4MM/qoXgwSdpTjzJIHgtnxyJqXfC/8HV4TI3B4tWIKiqhkSLUDLzbniDL0673/xL25xYzYaSx7qNQNdO6eApSflgt9vPXH8Z/NkTYPr3Q2TWBHijrnHX44tXpuEJFi134DWH5AJeHz59Agq+YgmE4EUlzwyblDzBxx/5C+J3zYGtfteB9IZfhsjTM2A6RxF/hYR189HfdbP+CRYuR7zqDSbAIhTPJMkskg8fPD0C7L5kaiWsgu/aErwleGGY1LLadCkN93Jz8PzfXbTxaP+RCT9KXCN4ZzYlCp7RZ/CAtGdO9aX1BJoCyLQnIW+8D9ODDluZInnupOAtwUtpCfy55TCDmY1ThjegzHVs8Q2bYLfvTUj+H9UwNBsXOlsBXl/bOidubII8tAzy9lZIpyi8ub91dh3ik4efQXzNvxk1ovDnTWoB3q1jOI3N/hPsmzU85WAHx+gkKvlZ6rC5Sz7cM3cNaI0zaxmwdTcsy2VvwT1p4O3vFTzNhiHP/0NLyYcbKuiimb+Bdy3LCB7VtAW8vjM3DRxmG/jYctYs7HspXUy/Habf2UlM9rHnICydNYP68wh+yKlDn3tQNTH3Wfijh52W5MPNsxPQ0+n5LwD72A4yguD+n7PHZT1/fMSfeBGympJng+8/MjE38OHDeZhphKcY2rgvWQUcYp3CGt+UjwdYz4fDPr0aWMuQyP7Wn0at5CL58OE8zScnoM35sjX8H0x2VDxhMHfd4oqucF/7fBXA0kFYMvjlP4a5MnvhFT6bzzkzgQMHISvXwrCb8s7sytOGMQDncMhL64DX33Xp3v/lGJihg8Jb7T63JFBXD1n1OsMb20F2U/KLH7Ko6pIE5py1miGQp9Nm/CiY6wYn7xXiQxoBqf0U3j83uCNzq6dst91A8DwyD0fVesibmxJHJTdeDe/6IeGdgs1JAnqAa9ZvgejJG4/RzbjhaYdPWvNg41ZKPgLzvSEwN1xRMNCpGzsCsmMf8N52l1S01jVjr03E++MrRU2mZgeMauXKgTAj00vg1Be292cPH+xtMDxV1ipR7d7cel0aeKynyWza5Qoz4bGgGdVxwLOtqPPMtj2eZldhkWbGDqN9F50QIk1Gtu11ZoMytok3Jer4EwsK+0l/9OFFxNxhDh+NmdFD0w9rtY+lX+gBrvQ+E2YMyXWgoT/2cL9YUUzNf24j79Pe93zizmiEJYK5mT7RQYaaTerPbf4PGwFZsK8ONooAAAAASUVORK5CYII=",ce="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAYAAABXAvmHAAAABGdBTUEAALGPC/xhBQAAADhlWElmTU0AKgAAAAgAAYdpAAQAAAABAAAAGgAAAAAAAqACAAQAAAABAAAAMKADAAQAAAABAAAAMAAAAAD4/042AAAEj0lEQVRoBe1aS28TVxT+7ngydhwnPGISTBKHEB6iUtOWHTvWqCtKqQhISC2vBbCpRDf9BUgsgAWbdlGppWqlSl1UXfMLCmXRqgXUxmCclOCWxI4Tv4Zz7s00BntmLh4rTCSfxJ4755458333fHfuTTQCZFOHTo+ijCs2cAi2nWJfaE2InABuw8Lle7e/eCwYvL2CXwF7a2hBtwQm8iKKdwwe+Y0HnhnRgBN2Q8qmJcPwOxm7EXrNe40jzVfDq38j9HUJvOkqdSvQrUDAEeiIhGaPH8bsyfe1oWQuTuPxhePa8V6BplenTl85tQ2l9A7YMUsnHMsTIyjtm9CK1QkKXIHC3nEI2l3RgqhzPzw/sB/g+A5ZYAKlPTsVFMnCH1Xx3f26XP2TUUQgAuXhJKr9fQqQRgVYPpUtA7IANvQq5sciEIHi7jHKb5OE9DQh5SOvoGs6pKNABJYn06tAaDQ1SLB82DoFnnO1TaA8NIhqIo7IQkFLDI58zPx/WvEMTsfaJlAiPbPF789oiWHxPTX6A3f/kPGdmQEBKlCaGJUE+oiANJ9JvEAEeOL23/ldHvVmjUrt9d1WBSrJLaiRfMzCEqzcU8pPcDzmAMunSk8f699FxP7KqngvVK/R19ZKvDy+Qy5cvQ8z8la2xuhzII8+m9foF9+axOz0YRm3/dbP6PvtoWy7fZm1iIV6tAd1i4+W3BLUrR7Y1Jb+1T7eKqg41ccajj94JPPy4DskaoleZM8cRYmeUGyO1hm0Q6DRz5XMnj2KpV1jTcSYyOTnNzjc1Uw1eCwBpQIFhNWqfvhKCZDPZbCQoGK5eVhz82uJKYjBPDp/DFwhBswZnEcmT3YlnzV/jRbBzKVplFNDTeDXEnu3TLNeBpb44x3o20vksh8fQYU2d1GaF+nr3yBCc6SVOaQyl05gxYm/9rWMf1VCra5v9LU1BxoT/N+mCpSHB2HNzmP05neu4J14ltZKKqnIroLnPta8n2ycHHzsHAGqgPXPM4x8+QOBLzXeo6ntSMsiGaYbwDcFajg6QiA6k0M9EQM/NSJFb/CMqe/PDD0QTKrU976V8uMg3j74ifOg8IsNZX9bC1mYmHQJvOlqBJ7EcUPgw8EELFq5vn1WQKHmPaX6IwIXhzdJ3jfmnmPRJ95vgAJJqJfAf0Tgx3pMpGn7cW5oExIE0M0Y/GepzdgT65EfbrPvVZuKW7g6vlV+uO1lYurgWTtmGHIEo7QYxYhSlM6jlJf9UT6nNvtiBFj5+SjUNeRbrNWpLTBmRSiOc6h8bjfOlquya8TyEQDdN1+t4dOZvFsqXsjU3ob/rqVfMv5iGaijbdORO2ihUlshiqdu5RZ4Uqnix3wRBsWcSiawj/8/xAEqGSd8ye4vV8DS4e3EheEBWYmXAl7zJJTrAMvm1LaEpPLV0wLu8V7NxUJJwAVrS3egSdwy4zo7uwTWecCbbtetQNOQrLPDoOd1bp3v2bnbEXZaN+nFiQ1qjJ3WfFymZdN9rQ4tOcJM2CNzf/+ysH33gVuiLlIkpyTh7Q8tZgbGr9sI8RO9qfIBv27zAiEVYZQrGIvuAAAAAElFTkSuQmCC",re="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAYAAABXAvmHAAAABGdBTUEAALGPC/xhBQAAADhlWElmTU0AKgAAAAgAAYdpAAQAAAABAAAAGgAAAAAAAqACAAQAAAABAAAAMKADAAQAAAABAAAAMAAAAAD4/042AAAFt0lEQVRoBe1aa2xTVRz/3d7bBytdXddtbIN1sId7IG4yHhGICxluMohOAkGChhiMih/8IiSERImRaBD9YGIkGg0xypwo8YkajGyikxqemziyDbbhBoyN7kHLStfb6zm3u01v1zvaritrwn9Zz+Pec87v//j9z2lzGBBZYHpyttMt7IWAcgFCOu2brsKAuQoG9TqO2dFkO9zNjIE/JwiCabqCDoaLYRgbUeJB1qgu2E/ALw720jTvm8ELSOdo2EhAy6vKpKpiWf/zSdmzUMbIBgQ0IpnPN4ZgV033mA/QV9ak2Jk8wxOCrDfOGqo4wzsObtwrwMWahD4CjtlysuvHvQfukXgcq2LcEfchxPkbTIlQgcTzHzOV9VDwxL0HYkLiIn0qNqQVoyDBjMN9/+Kr3hZ4yF80ZEoVeNiYRYAXYb4+TcQ6KnigZlS44OjD25cb0eUcnLQOUVeAAlxlysH61PmYo0sUAbbeuoG63vM4MXwZm2YtwMa0B+Ahynx+rRm115rAkyNxpMI8t/6NoKMjIW4Cq8YnhY/DrNaLeKzDPfiytxnn7L0yfLkzkvCKZQVo2T4ygH1df5DSJnsnsKFE6KiSOJHViOA7SGhsbfkOuy7+Og48BUZBv3Thexy4ehYW4qX3C9ZgS3pJIOaQ2lELoXlJGWB5Hh/kVOH4UBf6k41ovdGNo5dOTQjEojNiZ/Yjojd2tB/F6ZtXJnw/8OGkPVCanovd5c9g76qtMOuN4vxqqGBzDuP5smq8Vv400vT3Ba7ra3c5h3Bs4JLY1rOybcn3zkSVSSmwMCMPu1ZsQq4pEz+2/Y2OQW+scwyL2uZj2Nd4CFnGVLxT+SJW5yl/7XZ5vClVzYSvgGyEElGCEZr8vAGDJkE0zusNn5Jw6YFWxYptTuW1y4nuFvxzvRPPllaS/ypkJprx0akj4wzqJhmJCsswsmeh4AnbA2pwWKbOx079Wrg9vLigATps1C0FJ3jtwZFUKondNYL3rN+IihSnZEvdspIXvPPQFByuyDwQzNKBE27Xr4ZJNRNnRzt9CrgYD7JYM+7nvL+JccQ7geLi3ZA8E/iMbnBU/BWn7VDwhK1ykkqPQ04rPnM2+hTwEAXedfyEi+7rsPOjyCb5vTI5h2LwCfUWq2BhXvBuRSzhTrgStgI8sZa080khxJHs4Sb76ZBwC3s6GnDT7cL2rOV4M6cCKWM8cXvcYMc44g/SwGlRYpgldmnGuOP//E51xe/ESu7jySGMI2mSytBth1hWzC1Fu60HDpcTS/hivNrWgOq0HKwx5+Pjghp8eOUkTl5pQx7JVpKka2diXUoRHkvOF8lPw6hjRPlspERodmHxyt3SpP5lZ3vwDaVcU4hOTx+6+BsYdNpBSVqZW4aKeQ/hmt2GW3YnEqDFFwNn0ESOEKWGdPFsZOQZ7G/5DSZWi22zF+HlOUtRSE6pThJa9IS6p+P3CY8T2bkZ/vB89bB34s26ZSjiMvDt7dOwjl4UJ0qbacK2RWtRnGLBn/+dx4HTv8AljIpK9Qz2YzGXhJqUAtBYl4h63eXA1wT4kf42jHhGfYDCrYStAM3/yzX5qNaUoJPvQ91tKzQkqCxsMpKyTNi8oIIA5UnGYaHjNOi+2Ye3jtfBTFLsC5llUBEiU+D1to5JnUIlRcNWQBqYTFLpBt0SzGVTCHwWAx4H6px/waZ1YkvJo9CrdWR3tpLYb5WGTEkpU0CJKEqEpohKOQv5ZHDO3UXoLeWn6GANBY9sI4tk2TME+N0UmQfuJpBI1w57I4t0oakaF/cKKO7EoVoskOBKxJPmC/d9aZxSGfceuEdiJdfGqj/uQ0i2kd2JgNSq0SZhJPP5j1GJdw9i5e8or0OxM/mJNQfJVYOnojx3TKYj9yVqVfTWB704EZMVo7jI2GWPHWzvSMtwpr7oIL04QVxiJmsYorhO1KcSw4ZhfiCGX0ev2/wPquz9nGykU2YAAAAASUVORK5CYII=",ue="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAHgAAAB5CAYAAADyOOV3AAAFOklEQVR4Ae2dP2tUQRTFp7S385MofgRFiGBhKr9GuqBiI9iktwosCAnRLo0g8Q+ojSaNBomumESTIAqSLiPTTc4k7+bmztudu3sCAztv7p137/nNebtuREMIIXz9eXBluLO/NNzZe8sxCRrsL23tHlxObMP33b3ZzeHO0edv25FjcjRITBPbsPXj12+CnRywOcvENtC9kwk3gU5sQ048vf7775DDsQbIswAc+eNaAQJ2jU8unoBljVxHELBrfHLxBCxr5DqCgF3jk4snYFkj1xEE7BqfXDwByxq5jiBg1/jk4glY1sh1BAG7xicXT8CyRq4jCNg1Prl4ApY1ch1BwK7xycUTsKyR6wgCdo1PLp6AZY1cRxCwa3xy8QQsa+Q6goBd45OLJ2BZI9cRBOwan1w8AcsauY4gYNf45OIJWNbIdQQBu8YnF0/AskauIwjYNT65eAKWNXIdUQD+c2sm5iPemY2mIcnD/bsVMuqTs0yvQ7wQYtXRXb79XtxfpSEB4wH3foCgHwIGQSS+5qeddAOsxzgPOwsLMR9xsBhNQ2qA+3crZNQnZ5le89/o6Jbb3WrxKRovuOuIBR9TAHnSwcfk8T8hYP8MOzsg4E55/C8SsH+GnR0QcKc8/hcJ2D/Dzg4IuFMe/4sE7J9hZwcE3CmP/8WpAzz7cCnm48bdQaw58r3T63H/TB3gcG0+jnIQ8IgVGCXcdK9x/9DBPTuagEesADr43uBFrDlwf217+B5unV+fX4z5mPjfJiGA95vbsebA/bWAMb/6HJ/Z2gJbj0fBasJNe+H+Wj0wv/qcgG2ORiAErFXAGI8AWnfwo5U30TLmHq/GfPA92PiejAdIex4x33oAl9c+xnwQMAFrz2Rb8bUdgg7D/bXdYz7ur53n7k2v6WA6WHsm24qv7RB0FO6v7R7zcX/tnA42OhYFR0AErFXAGI8AEJB1jvtry8V8az2Fg/PvLdNr63ehmK9tuHZ8bQERAO6vrR/zcX/tvACMN6g91zZcOx770QomxeP+2voxX7qftE7A0/YejCeo9lx7omvHYz+SA7TruL+2fszX3h/jCwfn31um15bvQVMuFqxtGN/DrXOsBwWxznF/bb+Yb62nAIwXrDfAgq0N437WubU/zMd6rP3i/to58gx4QbshxtduGPezzrFe6xzrIWBBARSs9twKFPOxPqG9YhnzcX/tHA3bvIOtnwkwXyuYFI+ACoLCBcyX7ietuwMsNTTudQQk8CyWMd/aDwFP25+Dkbj1BOGJLI6scAHzrfX0nY/1Cu0Vy5hvrRd5Nv8ebG2473wEVBAULmC+tV4C5iO6rb9Gaj3RfeejAwXDFsuYb62XDqaD6WCNi9CBhUWFC5ivufdJsXQwHUwHn+SM066hAwXDFsuYf9p9znqdDqaD6zpY+/vc2if6rCf/vHFY77j7HbmDUQDt/LzCjypP248Ub62bgHt+REsApXUCrgzIKqgETLturad3B+PvX61za8N951v7w3xrvb0DthbIfNuHXAJu7BFf+0ATMAHbHhG1TyT30/Ggg+lg3Ymhw9rSiw6mg9s6kXxC6HjQwXSw7sTQYW3pRQfTwW2dSD4hdDzoYDpYd2LosLb0ooPp4LZOJJ8QOh50MB2sOzF0WFt60cF0cFsnkk8IHQ86mA7WnRg6rC296OBpd/Dqu0+Rw68GhYNXXq4f4UXOj//fQ171SGzD8tr60GsDrFs6iOvDcPP+k5mnrzYOKZYklq/1xDSxDWHmwcWr84NLz15v3H7+4csch38NEsvENLH9DwLs1co+Fv2iAAAAAElFTkSuQmCC",pe=""+new URL("Retry-8b2ec896.png",import.meta.url).href,de=""+new URL("Timeout-dcabf0f7.jpg",import.meta.url).href,ye="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAYAAABXAvmHAAAABGdBTUEAALGPC/xhBQAAADhlWElmTU0AKgAAAAgAAYdpAAQAAAABAAAAGgAAAAAAAqACAAQAAAABAAAAMKADAAQAAAABAAAAMAAAAAD4/042AAABYklEQVRoBe2av0oDQRDGZxbRxhfwDRI0NhKtRAhWPkM6Ex9KTOczWElArBRsAuEeIS+QRpvJfJdcqkWRLWYH5or7s7N797v59j4Odph2m4hw//xywsT3JHQqJMddrIajcq2Jaalcs2bx+cTMAi7Grn9xfSI/388kMsJ19RvznA+Pxs3X+yoh867gkV1NNJjBzr3BcKpT5rH6rOcAmR5SO+dzQQdtYE/4YB2w5hGVPdXmNnnSfCvYUz7kpzVewFor9woc/DeDb/OXX4fcjO728b/67jsWnLhXgHtnw/anqCAJpkPdKxAvYDp/9OHhQtYKhAtZKxAuZK1AuJC1AuFC1gqEC1krEC5krUC4kLUC4ULWCoQLWSsQLmStQLhQKFCYAaxSrgvvYTYc7AnL92YEpQ9WdqxSzkrvYzUe7Lwt8rh6dVMn0WVL6yWaxcdtQtUHCidIG7pY9cddsUfL3sF6LbfZAN5wf/+tIkpkAAAAAElFTkSuQmCC",me="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAYAAABXAvmHAAAABGdBTUEAALGPC/xhBQAAADhlWElmTU0AKgAAAAgAAYdpAAQAAAABAAAAGgAAAAAAAqACAAQAAAABAAAAMKADAAQAAAABAAAAMAAAAAD4/042AAAGRklEQVRoBdVZ629URRQ/c2/b7e62Fii2FBqsSOQZpSEBQkJiSGtMfKFRv0gMSUU+mJj4xcTEhPDJxD9BbaIJflETUfETDZoQNYgiREtBHsHYF9At0H10n/d6frM73Xsvey+zW+22J7l7zsyZOa+ZOffcWUElsG1bTMfjr3NzgGzawrhF8RYJTpCgYbZlcEVr68dCCBt2Cfwkk8mudME6Sra9F+1FD0KcbDaN/dFodMJA5JeU8YguBxo2w3YRm5k5yFvmw0Uf9UoGCnrD4P6BSrwl0jcgYndn4mzsYjuwuvFLYAWWqvFwsqVB11W/cZZl0e9/XqKr10cplc74DavYH2kO0SM93dS7dQMZBmJZPczbARj/x8Wr1WvmGXBYzd3+2KaaZMzbAUQe0LdnB3V3dVRlxOjEDRo6dUauXq0O1LZuDjPVtqnWeIjo7uqUkpQMh1htct4OaGv6nwYueQe0zsDgF9/5xs/05VTHCNIx8PLTvsK0HECKQ7qsCmJ3iD47RmL4LznN3vIo0av7iNqXVSXmfulVy4GmBpPSWYv2P99PoaYmlwGffH7c1ZYNNl688z5RIjnHEz/+SnR+hOwP3q3ohDfKmWyWjn59gqA7CLTOQDQaljLiidkgWWUeR95p/BwDDoGnAUqX0u03RcuB9rY2OX/85pSfHFe/2jauzlIjiOccr3Qp3U6ek9ZyQOX4kWt/cykuP4ScMv5zGjqgC6B0+ynRcmAtv2Ej4RDvilk6N3LZT9Zcvzywcy03EcRTI6EDuqATuoNAywHTNGjXtq1Sztnhy3Ty57M0OnnLv3hDtmmJ3qsXfeBVALyNIROyoQMAndAdBPge0N4TF65cp9PnLpDl2EZmiT7wyjNuPZppVGWxgpCf51KGwfTObZtp8/oet8wKLa00quZB4OrOlQRHxidjvAKzZOXyiu3GyPdvHeCvVT1o5HQZaQ7T6lXt0vBlrS1aE6tyABIheHdvcTuhrSIIej7w2gtP1TQ9eIPVJHJhJ2mtQFCdEvye1HcmSIf3Le2UquVALbXQeOo2HfntS/pp4pLUt7trAx3e/hKtjix36r8vXZdaCMY/8c0RupMp10JfXfuFvh8bph+eO1zRCW+U61oLIfJO41WY0QeeDtStFsoUcnR67CKFbIOa+VFY0afHLlGu4JN6HZ7VpRZK5TI0NjNFhjDI5MeJQRcfQf/wmGyAE3WphRLZWZpMTvOLy6bejh6+5xHyrqeM2Snu6+14mEdYNJGIUTafc8S8TC54LZQRebqVust39Ww0R/rQpiepLRRlutguYiH7Dm3ql2NQjkzyYbdK7+q61UJ5ylHOKNCzfXvKIWTqVjpOH10covNTxbL48ZUP0cGNffRgc6tr3PETpyhsNZHNjitYsFoomU5RhiNpyMijGMOD6kdQZ7iN3ut90dHHpIOPFsYK/t7GCkaMMEUXqhbatW0LxWbjfBBz9O3QKTakuFWkTdLIIlU0GHS50vTSiDbY/f07qD3cSiGzUU3WwlpvYqekAt9OTKcTlLcKpaxSXHrs/VpAzcP5uZ1O0nI+O6EGfSeqcgD5+25mVn5WIk1isygMQ8obqLIrxc1V3GQYgfFqHuQAZjibPcBY1wntsMF4CId6lVVMXv5IKMROCIrFbst+0IrvxYoHjGeK5wBDhhoLp5CSsT11QGsF0pyv8ZLCMvPfmy65a9esoit8Q32G73xqAawAZKitpGQks6yvSVCjGWxiMJelpTkScMCrQCnavH6d5I2O3+TLr6zqrow9e6y5sYm613TQxnU99wQGAlKsN8I4yInAb2IYLl/57qBXNk6n13sIvHM8Dip2mDOTnxNYgQQ/rg9Q6EFRlretmv/6UcpdWAVCYRez1KjAy3DGE1yGNIh7Pp8SDbyth/lc7lSyYHyaDywuG/y2jRq7kDhb4MtlvmJpcJ5Bth0rMMiPdAD1CaKOIHgPK4zFIUaxBgxQNHBtADmYq8Ku6Mry8O4RhikzV0nfoMDf9dPxxBBfn+8tIOwMarpXfGlS3RFSrmkYJ1e0tvTxigh7aibzJoncp/wvwI66W6djgDDO5A16G7aLGwm7k89HN+YZVmofR5/v/ux1fP2GDHYfmO8aYa2VDKhSNLAHDJFiu65x7I9ZhnmsyG0c/xfNI5E629R1xgAAAABJRU5ErkJggg==",dt="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAYAAABXAvmHAAAABGdBTUEAALGPC/xhBQAAADhlWElmTU0AKgAAAAgAAYdpAAQAAAABAAAAGgAAAAAAAqACAAQAAAABAAAAMKADAAQAAAABAAAAMAAAAAD4/042AAAGKUlEQVRoBc2aX2xTVRzHv/fe/tnf7h+bG24y4yBZJAETTBhGQ5BKiMYXnoY8EEgw0RDBGYJvxAeNcyLEFyUGjaI88WIMREGsJmSgD0CiWXSDQFbWSV3XtVvXru29/n6n3HE7u97b3gv2JLc9vT33dz6/f+ece+6VQGUqoXWqanoQ0DZDQwefK1TajnrE6btvLhT6++GckxACpIAsuw+11EhBF8Nr2fR1gm82JZBU0yYPvIEwsNZPzNuIfZ3rnuXN4YlMYgUk6YEzWulAI4NrFDUuETZWrmAFZM1iy4fVTNssF4v5pRiSxApUQBjpYBROsl639E0hJCuV5YWSFJC4dSUkssHalAPWi8ThUxk5vAgtheMp05iQCbrWoyCSytE3ezXMLWShml652E/Rii7freQCIp1VLcs3VYCFN9a4IS8ZPlVNQzSRtq2EkF9N8rliKCpZJzpvLt80B9jyDP/jWAxPHftDHFznc/yf3SLkE/zc6Dnc+rBLHFxnhazIN/VAM1ufhDF8KJ4WvB31blw98CTYShHygp2iy2f4bCwoRCm+TnQPjCMTD+H20EpIbCc6+DuvThls6gE7cE5cS5FKU9X9scOYdvyfqQfqvQq8bkWE0FvfjQumoZe68HyPD7FUFgvprC3OOiWDquoaEULhb/cJWa0vn0Dt6u1Ikew49VGsmCrAuVUoiSNJFTvPxnD8uWq0VOUnYLEOjf+ps2HMfrULq147A6U2fznmWBLzUMmjDVuDhfLBlt95dgaXQmn0fz+HqaTRsUbE5etqPIzox36kRgO4/ekOJOcTi/K5LysjEEs39cByCBGC7v8hjtGoitUNMk5vq0ezRU8I+ON+ZMMjUFb2ovH185DrWpfrquj5spOYYU+/UI81TRLG4uSR8zGwUmaF4aeP+pGZJPh2e/DcV9kK8MWsxDd+UqJRwmgsg1cuzJASy69W1VgYkSGCD43AxfD7y7c898/FlgIsoLlKxtdbfeQJmTxBSlwsrATDTw3eg+ewecM+vCMKLCqxpUHkwg3yxMBwDB4aenmS4qNOzmDmk13ITIzA3dGLpoMEX19ezHN/xlJ2EhuF6HUOn4HLUXzpb0UTzR/GkolHaJmwA75XTzkGz/IdVYAFsuV9BH8hmMDB4Sk+hY/6WrC1swbJRAKzakkreHF9sQ/bObBUeJ07J5LhQ4msOHRFPFXVS5vb/u24AraJShTguAKp5LxA4LDpqFHEwXUus+nlh1jRoIwPR3MgG6VJamgXet45A5cvf20zTcuP3YEQPtiwAs1e5+zmmCSGv3vYj8T1AMaO0NqGEta4dtr98wQu/5PE7kuTdGtafIVZiiMc8QDD/32IJqngCDyP96L13fNQGvLHeYbeMzyJsVgaPXRDdHJTO3kif6gtBVxva9sDAn7Aj/QtmqS6CsNzZwx7sq8dPT4FY7MpUibkiCdsKcDwkwcI/jZZvrsXbe//1/K6pe4rsZKUcOHG3AL2XL5jW4myFchOhxHan7O86zGCHyT4xvywMcLrdfbE5xsfpTBy4SYpsffKHXCCl1ss5QDflfEOgb5vk5qfx839LyJxNQD3E73oOGYN3gg5TftKe38N4sbsAja21OCLTV2opVmci/P7QgX2bTIzEfw5sAMrjpyyZHkjvF5nJQ5fn8Bnz6xCkyd/iWF138nUA/pN/dS5c/hrX+6me82JE2jZvh3zcwnMafkd63BWv7209Kj3uhC4G8Xbv98Sl723thub2xqt3dT/JEGTiMG458J7MDIdfH7DtQl4HunAcFcXUsGg6MDb2Ym+8XExzju1L9R38Romk7k9pvYqN4a3rLckPy+JeZ+FC+8iclX/LU5W6IdrbSxVFE27N9lw2BhDiC/iZLNbWIaX3M1hYwwhq/JNc0DsCxVIYqv7NmYKLrfv5FgSM8DSYbSUYc5MAaP8mWxuPmhQFOe2160AONXm6V+uUQICvz273rJIe2Og5W6sNSznMW5lKSDGxNIGhopSoJwHiDLFHL17UBlFpgfpJT1MJ3ZymhSoDHyioEe44kmoZSB+6YPe+pAgRSxf8wAb8psAVj3AzMwu8ysrkuJeR+uH0/97OPGrDGYP0jnkiZWZmf1f1o7IN6awz1AAAAAASUVORK5CYII=",he="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAYAAABXAvmHAAAABGdBTUEAALGPC/xhBQAAADhlWElmTU0AKgAAAAgAAYdpAAQAAAABAAAAGgAAAAAAAqACAAQAAAABAAAAMKADAAQAAAABAAAAMAAAAAD4/042AAAEs0lEQVRoBe1azWtUVxQ/781HkslHzQwpDfkQUUpdaHZtaUtTuhACYtC/wI22FHd+bMSlFNSdIhjcddFNKW0pZlfS0BayEdSFqAjRJMbGfBgTZ+JM8p7nd27ezMvkvsy7yUucAS+898479+P8zj3n3nvembGIy8xMttOhwiVy6RuX3HbwqrVYZE2SRUM2Jc5lMqlxaxX8Hdd109UKWofLsqxZVqLHxszXGngoBMzAbsNtdBrWBI+x29Xu8xtNJLDbGzWohbr3CrxrK8W3A4BtW9SYqqdEQg1fKCzT6+wSOY4bubjIFQD41g+ayLZL3hmrS1KSlZmbX4xciZKUiOYGMw/wfz/M0ldXnsgFGjzURV2sfRceF+3KhwPxCYdDQslhml+ImVq54KKlVwv6v7Pd9GFzXIA/f7Ui/T5qidE/Z3bT1MIyfXn5qfRBhb9/ptGmvv11dOLzFCVi0i3ULe560mVEBr/6lN4igW/+Nr5hRU+u8/TlfdlXqychr9QO8tQUTGcd+ul2TmT98EVK31nDtaamX1aWqukYxGpuaqB69nm4zfk/Xkizi0faqPfjFC29ydPCIoPUlH9H83T61gKlUzbdOt6qaaFnRa6AbhFDtOM4FRfxpzdmxNgj32X0aDXcyHchbJXYbTa1jTIa0502cgXUbLuBrqKZxCJrhffEgP2i2Kac2BYFyoWEfmc0pguyqhRwePusaQu4cW9bDW0z2hYLbDYWcmOmDkTRK6DbRsPGQuJC4SdfWm5bLDQ4sURdv07KBbpSLDT8f55c9oc0hxQmxciFCg7RtUdZ+v1ZnqbfOBIz+WMn0HePdhFCtpMjczSe4w6r9NixdprnffLA4CxzAlwlZlF/d530CXszUuDq4yzdfLqkgh+eKMDwLzuhA+ImAEIc5LCfl3YaNFajtNXZ1N+epFN7w8dBGNNIgd+m8gJgoKeFvs4k0H9daeZEDcrAZ61iBY/GcxfX3T8UPkxAn0rFKBb6ZHhW3OZBbzAI3SIGiDCxUCWwunojCzichPHZXzeefHFtOhbSjrgx00gBHDRhCgK6oLA5TH+TNkYKYAFWWzFSgOSory4VjBRQFgjnRjulptGxJ8FWiA9u7ET4tEy3NssFGrytlO9fLNLMynoXNlOAW1daB942iu/iGKdScIFWuaLNK/FnNk/fTr4kPP3FSIG2es7Gs9P99brgH2MN7eWFBl/lqOv+hFygK8VCawYJeIEFYAm/NYwOsh/ncnR9PldMo3hhgHpCqkWjB7uoPRkX4OMFlRfq5ETP2P4Omswv0557Y3IYKoywiAolpDe/+tNQHi1pm7KpznDcdDHdaBZKnNnVwPGMS78s5mlqhUMGBDUiX7mGCFKkwld+R/PVSwDzrQSf3ZPfMaQKRvCCrBEz+Mm/jaHLumJkgXW9NQwvLwS3OTmByJPjoo409bU0bJgX0gy1htX5RI0F5uFUUmYfVjDaRteMGPCCLDQSuQA81tJRbIVYCHVbKZ7bQAGvRK7AlvJCHirN0z/r/urIXcg/+E7QZWt7J0RGK+O9AtHOp/loHKHwfw9qtAC7zefDUI3i5wOOhmr/zx74ywr+9cE5nZ9rwZ2AEViBGdjfAhPs4mowdpbkAAAAAElFTkSuQmCC",yt=""+new URL("VirtualOutbound-3bb05b70.png",import.meta.url).href,mt={class:"policy-type-tag"},ht=["src"],gt=S({__name:"PolicyTypeTag",props:{policyType:{type:String,required:!0}},setup(c){const o=c,C=V(),T={CircuitBreaker:{iconUrl:Ae},FaultInjection:{iconUrl:pt},HealthCheck:{iconUrl:ce},MeshAccessLog:{iconUrl:ye},MeshCircuitBreaker:{iconUrl:Ae},MeshGateway:{iconUrl:null},MeshGatewayRoute:{iconUrl:null},MeshHealthCheck:{iconUrl:ce},MeshProxyPatch:{iconUrl:re},MeshRateLimit:{iconUrl:ue},MeshRetry:{iconUrl:pe},MeshTimeout:{iconUrl:de},MeshTrace:{iconUrl:he},MeshTrafficPermission:{iconUrl:me},ProxyTemplate:{iconUrl:re},RateLimit:{iconUrl:ue},Retry:{iconUrl:pe},Timeout:{iconUrl:de},TrafficLog:{iconUrl:ye},TrafficPermission:{iconUrl:me},TrafficRoute:{iconUrl:dt},TrafficTrace:{iconUrl:he},VirtualOutbound:{iconUrl:yt}},w=z(()=>{const h=C.state.policyTypes.map(A=>{const D=T[A.name]??{iconUrl:null};return[A.name,D]});return Object.fromEntries(h)}),v=z(()=>w.value[o.policyType]);return(h,A)=>(e(),n("span",mt,[v.value.iconUrl!==null?(e(),n("img",{key:0,class:"policy-type-tag-icon",src:v.value.iconUrl,alt:""},null,8,ht)):(e(),d(I(Ge),{key:1,icon:"brain",size:"24"})),l(),Ee(h.$slots,"default",{},()=>[l(g(o.policyType),1)],!0)]))}});const Pe=Y(gt,[["__scopeId","data-v-0052ac03"]]),ft={class:"policy-type-heading"},vt={class:"policy-list"},Tt={key:0,class:"origin-list"},Dt=S({__name:"PolicyTypeEntryList",props:{id:{type:String,required:!1,default:"entry-list"},policyTypeEntries:{type:Object,required:!0}},setup(c){const o=c,C=[{label:"From",key:"sourceTags"},{label:"To",key:"destinationTags"},{label:"On",key:"name"},{label:"Conf",key:"config"},{label:"Origin policies",key:"origins"}];function T({headerKey:w}){return{class:`cell-${w}`}}return(w,v)=>{const h=F("router-link");return e(),d(W,{"initially-open":[],"multiple-open":""},{default:t(()=>[(e(!0),n(m,null,E(o.policyTypeEntries,(A,D)=>(e(),d(J,{key:D},{"accordion-header":t(()=>[f("h3",ft,[u(Pe,{"policy-type":A.type},{default:t(()=>[l(g(A.type)+" ("+g(A.connections.length)+`) - `,1)]),_:2},1032,["policy-type"])])]),"accordion-content":t(()=>[f("div",vt,[u(I(ve),{class:"policy-type-table",fetcher:()=>({data:A.connections,total:A.connections.length}),headers:C,"cell-attrs":T,"disable-pagination":"","is-clickable":""},{sourceTags:t(({rowValue:a})=>[a.length>0?(e(),d(j,{key:0,class:"tag-list",tags:a},null,8,["tags"])):(e(),n(m,{key:1},[l(` + `,1),u(w,{to:a.route},{default:t(()=>[l(g(a.name),1)]),_:2},1032,["to"])]))),128))])]),key:"0"}:void 0]),1024))),128))]),_:2},1024)],64)):R("",!0)])]))),128))])])}}});const ut=S(rt,[["__scopeId","data-v-1a7d780a"]]),Ae="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAHgAAAB4CAMAAAAOusbgAAAAVFBMVEXa2tra2tra2tra2tra2tra2tr////a2toAfd6izPLvzPnRfvDYteSKr86zas0Aar4AhODY6vr3+Prx8v2Kv+9aqOk3muUOj+N5t+211vXhqfW01fXvn55GAAAABnRSTlMC9s/Hbhsvz/I3AAABVklEQVRo3u3b3Y6CMBCG4SJYhnV/KD+K7v3f57bN7AFJTcDUmZB+74lH5EmMA5hmjK+pq1awqm5M6HxqxTudPSzssmxM06rUmDp8DFawIYi1qYRdlisTeCtcMAGnAgwYMGDAgJ8GGPDB4B8frepnl9cZH5d1374E7GmX1WVuA0xzTvixA+5zwpc0/OXrVgU5N/yx6tMHGDBgwIABvxmeiBZhmF3fPMjDFLuOSjDdnBJMvVOAb1G+y8PjlUKdOGyHOcpLJniiDfEVC/FYZYA3unxFx2OVAd7sTjZ073msRGB2Yy7KvcsC2z05Hitx2P6PVTEwf9W/h/5xvTBOB76ByN8ydzRRzofELln1schjVNCrTxyjsl5vtV7ol7L+tAEGDLhMWOAw5ADHPxIHXmpHfAWepgJOBBgwYMCAAT8NMGDAgJOw2hKO2tqR2qKV1mqZ3jKd2vrgH/W3idgykdWgAAAAAElFTkSuQmCC",pt="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAYAAABXAvmHAAAABGdBTUEAALGPC/xhBQAAADhlWElmTU0AKgAAAAgAAYdpAAQAAAABAAAAGgAAAAAAAqACAAQAAAABAAAAMKADAAQAAAABAAAAMAAAAAD4/042AAAH90lEQVRoBdVaC4xU1Rn+zr2zu8PyEBGoKMFVK0KLFXyiVKS2FFGIhhT7Smq1aQXbuMQHCwRQiBWVUl7CaiuxGoGosSQ0tJuU4qNrpQEfq0AReQisLKK7iCIsO3fO3+8/wx1mdgdmlp3srCdhz8y9597zff/7P4wBhxw50jfW2Pi4ERkhQB+91lGHAerEmFeLotHJprS01ij4oLGxRkR6dFTQmXAZYxoi0eilpqmhYQVEfpppUYe/ZsxKE6uv39fRzeZkglRzMk319cT/9R1eVuixAPazzyFBPG2p/fgA7M6PAd4v5MhKwB46DDnQAPvRPiCFhFiBNB5LXC8giawETPeuQHER0BRDnCRCTfjn9oLpVAJRDSm5ApHITiDiwy87J0lCwToSngfvvD4FJ5GVgLPvXEl8/mW7u0ProhB9QM1IzUnNyqNmDMkhbmEJ3uvWGSiKtCuJrBqQo3TUTw8C1gLNNCF79yfA+jSns85od/C6eVYC9uAXEBKwu+vSSDgHpuQLPbKakMRikI/qXLRR0Oq4oAO3GBpin6uC/Oc94H+7IWd0gbmoL3Db92GGXdJieb4uZCXgNjoeKjVkZiIhH9bCTF4KbK+FML+71M4ZnnHfzcir4M24E+jSKV+4k+/JjYAub06iHzVB22chCNw6FbKdWbmYDjzvdzBXfQs41gS89g7s4pcgX34FXPJN+IvvyzuJDLaQJJf+gdHFRR3OzrHDkGko6vn3AL27JzL1C2vpzIxM6tTjRsCsmAXDpIfNOxCUzwO+Opr+3jZ+y10D4UaqCQ2ZmqFTQ+YuJrhfzYHUHwKuGQRv4SSgpDjx1H6WIhMfha37DBh0ISIL7wU658ecWk8gJJJpVhK/fvQEifnlSRLySYKE7K8Hvn0BIgvyQyJ3E8oEuPm181ly/HkK0Ks75L+bIXOXJ1eYb/SAVzkFpk8vyJZdCO6dnxdzyi8BwjUkYZ6qcKHW/q0aONKYTmLpZJhzejLUksR9C9pMIu8EFK3pSYeO0v41QtFnUodqwn9iMnD2WRCSiD2wsE0k8k+AEreTaB4sQTCkP8CE1nyEJFQTsmUngj+eMLXma7N9zzsB2bQT+k+TGC5kJj7JML15CDLsUqqLitpVm1ilRWIry5O8E9Ak5s25m0mOWfjldbCVf81IIb6mGvblf5GAgTd2OOyGzTj2s6k4Nv5+2I1bMj6T6WJ+w2jKDvLKW4hPr3QFoLl9DPwJ41Lu8uPRRgQVi2CZ4FzU+oLZOqC/aPnBjF784ER4lzOjZxn+jIqKh7Ksye02VS/Tn3JZ2GinptHognMhr70N1HzILi6Ad8VA2GdWszxvgDfgfHgjLke8Zhuwh2W5WPjjWPhdXEbn3ol49Tvw+p/HiMUsfoqRHw1oQzNlKVTq6NkN/qrHAVauOuTVtxDMJDECNN+5iP6xA0Ip+9PugD9yqNNEfMmLQN/e8H9yI9cJmiY+DKu9RrdSRJfNBkpPnrXbTiAVPDf0lzwADCxz4MM/qoXgwSdpTjzJIHgtnxyJqXfC/8HV4TI3B4tWIKiqhkSLUDLzbniDL0673/xL25xYzYaSx7qNQNdO6eApSflgt9vPXH8Z/NkTYPr3Q2TWBHijrnHX44tXpuEJFi134DWH5AJeHz59Agq+YgmE4EUlzwyblDzBxx/5C+J3zYGtfteB9IZfhsjTM2A6RxF/hYR189HfdbP+CRYuR7zqDSbAIhTPJMkskg8fPD0C7L5kaiWsgu/aErwleGGY1LLadCkN93Jz8PzfXbTxaP+RCT9KXCN4ZzYlCp7RZ/CAtGdO9aX1BJoCyLQnIW+8D9ODDluZInnupOAtwUtpCfy55TCDmY1ThjegzHVs8Q2bYLfvTUj+H9UwNBsXOlsBXl/bOidubII8tAzy9lZIpyi8ub91dh3ik4efQXzNvxk1ovDnTWoB3q1jOI3N/hPsmzU85WAHx+gkKvlZ6rC5Sz7cM3cNaI0zaxmwdTcsy2VvwT1p4O3vFTzNhiHP/0NLyYcbKuiimb+Bdy3LCB7VtAW8vjM3DRxmG/jYctYs7HspXUy/Habf2UlM9rHnICydNYP68wh+yKlDn3tQNTH3Wfijh52W5MPNsxPQ0+n5LwD72A4yguD+n7PHZT1/fMSfeBGympJng+8/MjE38OHDeZhphKcY2rgvWQUcYp3CGt+UjwdYz4fDPr0aWMuQyP7Wn0at5CL58OE8zScnoM35sjX8H0x2VDxhMHfd4oqucF/7fBXA0kFYMvjlP4a5MnvhFT6bzzkzgQMHISvXwrCb8s7sytOGMQDncMhL64DX33Xp3v/lGJihg8Jb7T63JFBXD1n1OsMb20F2U/KLH7Ko6pIE5py1miGQp9Nm/CiY6wYn7xXiQxoBqf0U3j83uCNzq6dst91A8DwyD0fVesibmxJHJTdeDe/6IeGdgs1JAnqAa9ZvgejJG4/RzbjhaYdPWvNg41ZKPgLzvSEwN1xRMNCpGzsCsmMf8N52l1S01jVjr03E++MrRU2mZgeMauXKgTAj00vg1Be292cPH+xtMDxV1ipR7d7cel0aeKynyWza5Qoz4bGgGdVxwLOtqPPMtj2eZldhkWbGDqN9F50QIk1Gtu11ZoMytok3Jer4EwsK+0l/9OFFxNxhDh+NmdFD0w9rtY+lX+gBrvQ+E2YMyXWgoT/2cL9YUUzNf24j79Pe93zizmiEJYK5mT7RQYaaTerPbf4PGwFZsK8ONooAAAAASUVORK5CYII=",ce="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAYAAABXAvmHAAAABGdBTUEAALGPC/xhBQAAADhlWElmTU0AKgAAAAgAAYdpAAQAAAABAAAAGgAAAAAAAqACAAQAAAABAAAAMKADAAQAAAABAAAAMAAAAAD4/042AAAEj0lEQVRoBe1aS28TVxT+7ngydhwnPGISTBKHEB6iUtOWHTvWqCtKqQhISC2vBbCpRDf9BUgsgAWbdlGppWqlSl1UXfMLCmXRqgXUxmCclOCWxI4Tv4Zz7s00BntmLh4rTCSfxJ4755458333fHfuTTQCZFOHTo+ijCs2cAi2nWJfaE2InABuw8Lle7e/eCwYvL2CXwF7a2hBtwQm8iKKdwwe+Y0HnhnRgBN2Q8qmJcPwOxm7EXrNe40jzVfDq38j9HUJvOkqdSvQrUDAEeiIhGaPH8bsyfe1oWQuTuPxhePa8V6BplenTl85tQ2l9A7YMUsnHMsTIyjtm9CK1QkKXIHC3nEI2l3RgqhzPzw/sB/g+A5ZYAKlPTsVFMnCH1Xx3f26XP2TUUQgAuXhJKr9fQqQRgVYPpUtA7IANvQq5sciEIHi7jHKb5OE9DQh5SOvoGs6pKNABJYn06tAaDQ1SLB82DoFnnO1TaA8NIhqIo7IQkFLDI58zPx/WvEMTsfaJlAiPbPF789oiWHxPTX6A3f/kPGdmQEBKlCaGJUE+oiANJ9JvEAEeOL23/ldHvVmjUrt9d1WBSrJLaiRfMzCEqzcU8pPcDzmAMunSk8f699FxP7KqngvVK/R19ZKvDy+Qy5cvQ8z8la2xuhzII8+m9foF9+axOz0YRm3/dbP6PvtoWy7fZm1iIV6tAd1i4+W3BLUrR7Y1Jb+1T7eKqg41ccajj94JPPy4DskaoleZM8cRYmeUGyO1hm0Q6DRz5XMnj2KpV1jTcSYyOTnNzjc1Uw1eCwBpQIFhNWqfvhKCZDPZbCQoGK5eVhz82uJKYjBPDp/DFwhBswZnEcmT3YlnzV/jRbBzKVplFNDTeDXEnu3TLNeBpb44x3o20vksh8fQYU2d1GaF+nr3yBCc6SVOaQyl05gxYm/9rWMf1VCra5v9LU1BxoT/N+mCpSHB2HNzmP05neu4J14ltZKKqnIroLnPta8n2ycHHzsHAGqgPXPM4x8+QOBLzXeo6ntSMsiGaYbwDcFajg6QiA6k0M9EQM/NSJFb/CMqe/PDD0QTKrU976V8uMg3j74ifOg8IsNZX9bC1mYmHQJvOlqBJ7EcUPgw8EELFq5vn1WQKHmPaX6IwIXhzdJ3jfmnmPRJ95vgAJJqJfAf0Tgx3pMpGn7cW5oExIE0M0Y/GepzdgT65EfbrPvVZuKW7g6vlV+uO1lYurgWTtmGHIEo7QYxYhSlM6jlJf9UT6nNvtiBFj5+SjUNeRbrNWpLTBmRSiOc6h8bjfOlquya8TyEQDdN1+t4dOZvFsqXsjU3ob/rqVfMv5iGaijbdORO2ihUlshiqdu5RZ4Uqnix3wRBsWcSiawj/8/xAEqGSd8ye4vV8DS4e3EheEBWYmXAl7zJJTrAMvm1LaEpPLV0wLu8V7NxUJJwAVrS3egSdwy4zo7uwTWecCbbtetQNOQrLPDoOd1bp3v2bnbEXZaN+nFiQ1qjJ3WfFymZdN9rQ4tOcJM2CNzf/+ysH33gVuiLlIkpyTh7Q8tZgbGr9sI8RO9qfIBv27zAiEVYZQrGIvuAAAAAElFTkSuQmCC",re="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAYAAABXAvmHAAAABGdBTUEAALGPC/xhBQAAADhlWElmTU0AKgAAAAgAAYdpAAQAAAABAAAAGgAAAAAAAqACAAQAAAABAAAAMKADAAQAAAABAAAAMAAAAAD4/042AAAFt0lEQVRoBe1aa2xTVRz/3d7bBytdXddtbIN1sId7IG4yHhGICxluMohOAkGChhiMih/8IiSERImRaBD9YGIkGg0xypwo8YkajGyikxqemziyDbbhBoyN7kHLStfb6zm3u01v1zvaritrwn9Zz+Pec87v//j9z2lzGBBZYHpyttMt7IWAcgFCOu2brsKAuQoG9TqO2dFkO9zNjIE/JwiCabqCDoaLYRgbUeJB1qgu2E/ALw720jTvm8ELSOdo2EhAy6vKpKpiWf/zSdmzUMbIBgQ0IpnPN4ZgV033mA/QV9ak2Jk8wxOCrDfOGqo4wzsObtwrwMWahD4CjtlysuvHvQfukXgcq2LcEfchxPkbTIlQgcTzHzOV9VDwxL0HYkLiIn0qNqQVoyDBjMN9/+Kr3hZ4yF80ZEoVeNiYRYAXYb4+TcQ6KnigZlS44OjD25cb0eUcnLQOUVeAAlxlysH61PmYo0sUAbbeuoG63vM4MXwZm2YtwMa0B+Ahynx+rRm115rAkyNxpMI8t/6NoKMjIW4Cq8YnhY/DrNaLeKzDPfiytxnn7L0yfLkzkvCKZQVo2T4ygH1df5DSJnsnsKFE6KiSOJHViOA7SGhsbfkOuy7+Og48BUZBv3Thexy4ehYW4qX3C9ZgS3pJIOaQ2lELoXlJGWB5Hh/kVOH4UBf6k41ovdGNo5dOTQjEojNiZ/Yjojd2tB/F6ZtXJnw/8OGkPVCanovd5c9g76qtMOuN4vxqqGBzDuP5smq8Vv400vT3Ba7ra3c5h3Bs4JLY1rOybcn3zkSVSSmwMCMPu1ZsQq4pEz+2/Y2OQW+scwyL2uZj2Nd4CFnGVLxT+SJW5yl/7XZ5vClVzYSvgGyEElGCEZr8vAGDJkE0zusNn5Jw6YFWxYptTuW1y4nuFvxzvRPPllaS/ypkJprx0akj4wzqJhmJCsswsmeh4AnbA2pwWKbOx079Wrg9vLigATps1C0FJ3jtwZFUKondNYL3rN+IihSnZEvdspIXvPPQFByuyDwQzNKBE27Xr4ZJNRNnRzt9CrgYD7JYM+7nvL+JccQ7geLi3ZA8E/iMbnBU/BWn7VDwhK1ykkqPQ04rPnM2+hTwEAXedfyEi+7rsPOjyCb5vTI5h2LwCfUWq2BhXvBuRSzhTrgStgI8sZa080khxJHs4Sb76ZBwC3s6GnDT7cL2rOV4M6cCKWM8cXvcYMc44g/SwGlRYpgldmnGuOP//E51xe/ESu7jySGMI2mSytBth1hWzC1Fu60HDpcTS/hivNrWgOq0HKwx5+Pjghp8eOUkTl5pQx7JVpKka2diXUoRHkvOF8lPw6hjRPlspERodmHxyt3SpP5lZ3vwDaVcU4hOTx+6+BsYdNpBSVqZW4aKeQ/hmt2GW3YnEqDFFwNn0ESOEKWGdPFsZOQZ7G/5DSZWi22zF+HlOUtRSE6pThJa9IS6p+P3CY8T2bkZ/vB89bB34s26ZSjiMvDt7dOwjl4UJ0qbacK2RWtRnGLBn/+dx4HTv8AljIpK9Qz2YzGXhJqUAtBYl4h63eXA1wT4kf42jHhGfYDCrYStAM3/yzX5qNaUoJPvQ91tKzQkqCxsMpKyTNi8oIIA5UnGYaHjNOi+2Ye3jtfBTFLsC5llUBEiU+D1to5JnUIlRcNWQBqYTFLpBt0SzGVTCHwWAx4H6px/waZ1YkvJo9CrdWR3tpLYb5WGTEkpU0CJKEqEpohKOQv5ZHDO3UXoLeWn6GANBY9sI4tk2TME+N0UmQfuJpBI1w57I4t0oakaF/cKKO7EoVoskOBKxJPmC/d9aZxSGfceuEdiJdfGqj/uQ0i2kd2JgNSq0SZhJPP5j1GJdw9i5e8or0OxM/mJNQfJVYOnojx3TKYj9yVqVfTWB704EZMVo7jI2GWPHWzvSMtwpr7oIL04QVxiJmsYorhO1KcSw4ZhfiCGX0ev2/wPquz9nGykU2YAAAAASUVORK5CYII=",ue="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAHgAAAB5CAYAAADyOOV3AAAFOklEQVR4Ae2dP2tUQRTFp7S385MofgRFiGBhKr9GuqBiI9iktwosCAnRLo0g8Q+ojSaNBomumESTIAqSLiPTTc4k7+bmztudu3sCAztv7p137/nNebtuREMIIXz9eXBluLO/NNzZe8sxCRrsL23tHlxObMP33b3ZzeHO0edv25FjcjRITBPbsPXj12+CnRywOcvENtC9kwk3gU5sQ048vf7775DDsQbIswAc+eNaAQJ2jU8unoBljVxHELBrfHLxBCxr5DqCgF3jk4snYFkj1xEE7BqfXDwByxq5jiBg1/jk4glY1sh1BAG7xicXT8CyRq4jCNg1Prl4ApY1ch1BwK7xycUTsKyR6wgCdo1PLp6AZY1cRxCwa3xy8QQsa+Q6goBd45OLJ2BZI9cRBOwan1w8AcsauY4gYNf45OIJWNbIdQQBu8YnF0/AskauIwjYNT65eAKWNXIdUQD+c2sm5iPemY2mIcnD/bsVMuqTs0yvQ7wQYtXRXb79XtxfpSEB4wH3foCgHwIGQSS+5qeddAOsxzgPOwsLMR9xsBhNQ2qA+3crZNQnZ5le89/o6Jbb3WrxKRovuOuIBR9TAHnSwcfk8T8hYP8MOzsg4E55/C8SsH+GnR0QcKc8/hcJ2D/Dzg4IuFMe/4sE7J9hZwcE3CmP/8WpAzz7cCnm48bdQaw58r3T63H/TB3gcG0+jnIQ8IgVGCXcdK9x/9DBPTuagEesADr43uBFrDlwf217+B5unV+fX4z5mPjfJiGA95vbsebA/bWAMb/6HJ/Z2gJbj0fBasJNe+H+Wj0wv/qcgG2ORiAErFXAGI8AWnfwo5U30TLmHq/GfPA92PiejAdIex4x33oAl9c+xnwQMAFrz2Rb8bUdgg7D/bXdYz7ur53n7k2v6WA6WHsm24qv7RB0FO6v7R7zcX/tnA42OhYFR0AErFXAGI8AEJB1jvtry8V8az2Fg/PvLdNr63ehmK9tuHZ8bQERAO6vrR/zcX/tvACMN6g91zZcOx770QomxeP+2voxX7qftE7A0/YejCeo9lx7omvHYz+SA7TruL+2fszX3h/jCwfn31um15bvQVMuFqxtGN/DrXOsBwWxznF/bb+Yb62nAIwXrDfAgq0N437WubU/zMd6rP3i/to58gx4QbshxtduGPezzrFe6xzrIWBBARSs9twKFPOxPqG9YhnzcX/tHA3bvIOtnwkwXyuYFI+ACoLCBcyX7ietuwMsNTTudQQk8CyWMd/aDwFP25+Dkbj1BOGJLI6scAHzrfX0nY/1Cu0Vy5hvrRd5Nv8ebG2473wEVBAULmC+tV4C5iO6rb9Gaj3RfeejAwXDFsuYb62XDqaD6WCNi9CBhUWFC5ivufdJsXQwHUwHn+SM066hAwXDFsuYf9p9znqdDqaD6zpY+/vc2if6rCf/vHFY77j7HbmDUQDt/LzCjypP248Ub62bgHt+REsApXUCrgzIKqgETLturad3B+PvX61za8N951v7w3xrvb0DthbIfNuHXAJu7BFf+0ATMAHbHhG1TyT30/Ggg+lg3Ymhw9rSiw6mg9s6kXxC6HjQwXSw7sTQYW3pRQfTwW2dSD4hdDzoYDpYd2LosLb0ooPp4LZOJJ8QOh50MB2sOzF0WFt60cF0cFsnkk8IHQ86mA7WnRg6rC296OBpd/Dqu0+Rw68GhYNXXq4f4UXOj//fQ171SGzD8tr60GsDrFs6iOvDcPP+k5mnrzYOKZYklq/1xDSxDWHmwcWr84NLz15v3H7+4csch38NEsvENLH9DwLs1co+Fv2iAAAAAElFTkSuQmCC",pe=""+new URL("Retry-8b2ec896.png",import.meta.url).href,de=""+new URL("Timeout-dcabf0f7.jpg",import.meta.url).href,ye="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAYAAABXAvmHAAAABGdBTUEAALGPC/xhBQAAADhlWElmTU0AKgAAAAgAAYdpAAQAAAABAAAAGgAAAAAAAqACAAQAAAABAAAAMKADAAQAAAABAAAAMAAAAAD4/042AAABYklEQVRoBe2av0oDQRDGZxbRxhfwDRI0NhKtRAhWPkM6Ex9KTOczWElArBRsAuEeIS+QRpvJfJdcqkWRLWYH5or7s7N797v59j4Odph2m4hw//xywsT3JHQqJMddrIajcq2Jaalcs2bx+cTMAi7Grn9xfSI/388kMsJ19RvznA+Pxs3X+yoh867gkV1NNJjBzr3BcKpT5rH6rOcAmR5SO+dzQQdtYE/4YB2w5hGVPdXmNnnSfCvYUz7kpzVewFor9woc/DeDb/OXX4fcjO728b/67jsWnLhXgHtnw/anqCAJpkPdKxAvYDp/9OHhQtYKhAtZKxAuZK1AuJC1AuFC1gqEC1krEC5krUC4kLUC4ULWCoQLWSsQLmStQLhQKFCYAaxSrgvvYTYc7AnL92YEpQ9WdqxSzkrvYzUe7Lwt8rh6dVMn0WVL6yWaxcdtQtUHCidIG7pY9cddsUfL3sF6LbfZAN5wf/+tIkpkAAAAAElFTkSuQmCC",me="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAYAAABXAvmHAAAABGdBTUEAALGPC/xhBQAAADhlWElmTU0AKgAAAAgAAYdpAAQAAAABAAAAGgAAAAAAAqACAAQAAAABAAAAMKADAAQAAAABAAAAMAAAAAD4/042AAAGRklEQVRoBdVZ629URRQ/c2/b7e62Fii2FBqsSOQZpSEBQkJiSGtMfKFRv0gMSUU+mJj4xcTEhPDJxD9BbaIJflETUfETDZoQNYgiREtBHsHYF9At0H10n/d6frM73Xsvey+zW+22J7l7zsyZOa+ZOffcWUElsG1bTMfjr3NzgGzawrhF8RYJTpCgYbZlcEVr68dCCBt2Cfwkk8mudME6Sra9F+1FD0KcbDaN/dFodMJA5JeU8YguBxo2w3YRm5k5yFvmw0Uf9UoGCnrD4P6BSrwl0jcgYndn4mzsYjuwuvFLYAWWqvFwsqVB11W/cZZl0e9/XqKr10cplc74DavYH2kO0SM93dS7dQMZBmJZPczbARj/x8Wr1WvmGXBYzd3+2KaaZMzbAUQe0LdnB3V3dVRlxOjEDRo6dUauXq0O1LZuDjPVtqnWeIjo7uqUkpQMh1htct4OaGv6nwYueQe0zsDgF9/5xs/05VTHCNIx8PLTvsK0HECKQ7qsCmJ3iD47RmL4LznN3vIo0av7iNqXVSXmfulVy4GmBpPSWYv2P99PoaYmlwGffH7c1ZYNNl688z5RIjnHEz/+SnR+hOwP3q3ohDfKmWyWjn59gqA7CLTOQDQaljLiidkgWWUeR95p/BwDDoGnAUqX0u03RcuB9rY2OX/85pSfHFe/2jauzlIjiOccr3Qp3U6ek9ZyQOX4kWt/cykuP4ScMv5zGjqgC6B0+ynRcmAtv2Ej4RDvilk6N3LZT9Zcvzywcy03EcRTI6EDuqATuoNAywHTNGjXtq1Sztnhy3Ty57M0OnnLv3hDtmmJ3qsXfeBVALyNIROyoQMAndAdBPge0N4TF65cp9PnLpDl2EZmiT7wyjNuPZppVGWxgpCf51KGwfTObZtp8/oet8wKLa00quZB4OrOlQRHxidjvAKzZOXyiu3GyPdvHeCvVT1o5HQZaQ7T6lXt0vBlrS1aE6tyABIheHdvcTuhrSIIej7w2gtP1TQ9eIPVJHJhJ2mtQFCdEvye1HcmSIf3Le2UquVALbXQeOo2HfntS/pp4pLUt7trAx3e/hKtjix36r8vXZdaCMY/8c0RupMp10JfXfuFvh8bph+eO1zRCW+U61oLIfJO41WY0QeeDtStFsoUcnR67CKFbIOa+VFY0afHLlGu4JN6HZ7VpRZK5TI0NjNFhjDI5MeJQRcfQf/wmGyAE3WphRLZWZpMTvOLy6bejh6+5xHyrqeM2Snu6+14mEdYNJGIUTafc8S8TC54LZQRebqVust39Ww0R/rQpiepLRRlutguYiH7Dm3ql2NQjkzyYbdK7+q61UJ5ylHOKNCzfXvKIWTqVjpOH10covNTxbL48ZUP0cGNffRgc6tr3PETpyhsNZHNjitYsFoomU5RhiNpyMijGMOD6kdQZ7iN3ut90dHHpIOPFsYK/t7GCkaMMEUXqhbatW0LxWbjfBBz9O3QKTakuFWkTdLIIlU0GHS50vTSiDbY/f07qD3cSiGzUU3WwlpvYqekAt9OTKcTlLcKpaxSXHrs/VpAzcP5uZ1O0nI+O6EGfSeqcgD5+25mVn5WIk1isygMQ8obqLIrxc1V3GQYgfFqHuQAZjibPcBY1wntsMF4CId6lVVMXv5IKMROCIrFbst+0IrvxYoHjGeK5wBDhhoLp5CSsT11QGsF0pyv8ZLCMvPfmy65a9esoit8Q32G73xqAawAZKitpGQks6yvSVCjGWxiMJelpTkScMCrQCnavH6d5I2O3+TLr6zqrow9e6y5sYm613TQxnU99wQGAlKsN8I4yInAb2IYLl/57qBXNk6n13sIvHM8Dip2mDOTnxNYgQQ/rg9Q6EFRlretmv/6UcpdWAVCYRez1KjAy3DGE1yGNIh7Pp8SDbyth/lc7lSyYHyaDywuG/y2jRq7kDhb4MtlvmJpcJ5Bth0rMMiPdAD1CaKOIHgPK4zFIUaxBgxQNHBtADmYq8Ku6Mry8O4RhikzV0nfoMDf9dPxxBBfn+8tIOwMarpXfGlS3RFSrmkYJ1e0tvTxigh7aibzJoncp/wvwI66W6djgDDO5A16G7aLGwm7k89HN+YZVmofR5/v/ux1fP2GDHYfmO8aYa2VDKhSNLAHDJFiu65x7I9ZhnmsyG0c/xfNI5E629R1xgAAAABJRU5ErkJggg==",dt="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAYAAABXAvmHAAAABGdBTUEAALGPC/xhBQAAADhlWElmTU0AKgAAAAgAAYdpAAQAAAABAAAAGgAAAAAAAqACAAQAAAABAAAAMKADAAQAAAABAAAAMAAAAAD4/042AAAGKUlEQVRoBc2aX2xTVRzHv/fe/tnf7h+bG24y4yBZJAETTBhGQ5BKiMYXnoY8EEgw0RDBGYJvxAeNcyLEFyUGjaI88WIMREGsJmSgD0CiWXSDQFbWSV3XtVvXru29/n6n3HE7u97b3gv2JLc9vT33dz6/f+ece+6VQGUqoXWqanoQ0DZDQwefK1TajnrE6btvLhT6++GckxACpIAsuw+11EhBF8Nr2fR1gm82JZBU0yYPvIEwsNZPzNuIfZ3rnuXN4YlMYgUk6YEzWulAI4NrFDUuETZWrmAFZM1iy4fVTNssF4v5pRiSxApUQBjpYBROsl639E0hJCuV5YWSFJC4dSUkssHalAPWi8ThUxk5vAgtheMp05iQCbrWoyCSytE3ezXMLWShml652E/Rii7freQCIp1VLcs3VYCFN9a4IS8ZPlVNQzSRtq2EkF9N8rliKCpZJzpvLt80B9jyDP/jWAxPHftDHFznc/yf3SLkE/zc6Dnc+rBLHFxnhazIN/VAM1ufhDF8KJ4WvB31blw98CTYShHygp2iy2f4bCwoRCm+TnQPjCMTD+H20EpIbCc6+DuvThls6gE7cE5cS5FKU9X9scOYdvyfqQfqvQq8bkWE0FvfjQumoZe68HyPD7FUFgvprC3OOiWDquoaEULhb/cJWa0vn0Dt6u1Ikew49VGsmCrAuVUoiSNJFTvPxnD8uWq0VOUnYLEOjf+ps2HMfrULq147A6U2fznmWBLzUMmjDVuDhfLBlt95dgaXQmn0fz+HqaTRsUbE5etqPIzox36kRgO4/ekOJOcTi/K5LysjEEs39cByCBGC7v8hjtGoitUNMk5vq0ezRU8I+ON+ZMMjUFb2ovH185DrWpfrquj5spOYYU+/UI81TRLG4uSR8zGwUmaF4aeP+pGZJPh2e/DcV9kK8MWsxDd+UqJRwmgsg1cuzJASy69W1VgYkSGCD43AxfD7y7c898/FlgIsoLlKxtdbfeQJmTxBSlwsrATDTw3eg+ewecM+vCMKLCqxpUHkwg3yxMBwDB4aenmS4qNOzmDmk13ITIzA3dGLpoMEX19ezHN/xlJ2EhuF6HUOn4HLUXzpb0UTzR/GkolHaJmwA75XTzkGz/IdVYAFsuV9BH8hmMDB4Sk+hY/6WrC1swbJRAKzakkreHF9sQ/bObBUeJ07J5LhQ4msOHRFPFXVS5vb/u24AraJShTguAKp5LxA4LDpqFHEwXUus+nlh1jRoIwPR3MgG6VJamgXet45A5cvf20zTcuP3YEQPtiwAs1e5+zmmCSGv3vYj8T1AMaO0NqGEta4dtr98wQu/5PE7kuTdGtafIVZiiMc8QDD/32IJqngCDyP96L13fNQGvLHeYbeMzyJsVgaPXRDdHJTO3kif6gtBVxva9sDAn7Aj/QtmqS6CsNzZwx7sq8dPT4FY7MpUibkiCdsKcDwkwcI/jZZvrsXbe//1/K6pe4rsZKUcOHG3AL2XL5jW4myFchOhxHan7O86zGCHyT4xvywMcLrdfbE5xsfpTBy4SYpsffKHXCCl1ss5QDflfEOgb5vk5qfx839LyJxNQD3E73oOGYN3gg5TftKe38N4sbsAja21OCLTV2opVmci/P7QgX2bTIzEfw5sAMrjpyyZHkjvF5nJQ5fn8Bnz6xCkyd/iWF138nUA/pN/dS5c/hrX+6me82JE2jZvh3zcwnMafkd63BWv7209Kj3uhC4G8Xbv98Sl723thub2xqt3dT/JEGTiMG458J7MDIdfH7DtQl4HunAcFcXUsGg6MDb2Ym+8XExzju1L9R38Romk7k9pvYqN4a3rLckPy+JeZ+FC+8iclX/LU5W6IdrbSxVFE27N9lw2BhDiC/iZLNbWIaX3M1hYwwhq/JNc0DsCxVIYqv7NmYKLrfv5FgSM8DSYbSUYc5MAaP8mWxuPmhQFOe2160AONXm6V+uUQICvz273rJIe2Og5W6sNSznMW5lKSDGxNIGhopSoJwHiDLFHL17UBlFpgfpJT1MJ3ZymhSoDHyioEe44kmoZSB+6YPe+pAgRSxf8wAb8psAVj3AzMwu8ysrkuJeR+uH0/97OPGrDGYP0jnkiZWZmf1f1o7IN6awz1AAAAAASUVORK5CYII=",he="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAYAAABXAvmHAAAABGdBTUEAALGPC/xhBQAAADhlWElmTU0AKgAAAAgAAYdpAAQAAAABAAAAGgAAAAAAAqACAAQAAAABAAAAMKADAAQAAAABAAAAMAAAAAD4/042AAAEs0lEQVRoBe1azWtUVxQ/781HkslHzQwpDfkQUUpdaHZtaUtTuhACYtC/wI22FHd+bMSlFNSdIhjcddFNKW0pZlfS0BayEdSFqAjRJMbGfBgTZ+JM8p7nd27ezMvkvsy7yUucAS+898479+P8zj3n3nvembGIy8xMttOhwiVy6RuX3HbwqrVYZE2SRUM2Jc5lMqlxaxX8Hdd109UKWofLsqxZVqLHxszXGngoBMzAbsNtdBrWBI+x29Xu8xtNJLDbGzWohbr3CrxrK8W3A4BtW9SYqqdEQg1fKCzT6+wSOY4bubjIFQD41g+ayLZL3hmrS1KSlZmbX4xciZKUiOYGMw/wfz/M0ldXnsgFGjzURV2sfRceF+3KhwPxCYdDQslhml+ImVq54KKlVwv6v7Pd9GFzXIA/f7Ui/T5qidE/Z3bT1MIyfXn5qfRBhb9/ptGmvv11dOLzFCVi0i3ULe560mVEBr/6lN4igW/+Nr5hRU+u8/TlfdlXqychr9QO8tQUTGcd+ul2TmT98EVK31nDtaamX1aWqukYxGpuaqB69nm4zfk/Xkizi0faqPfjFC29ydPCIoPUlH9H83T61gKlUzbdOt6qaaFnRa6AbhFDtOM4FRfxpzdmxNgj32X0aDXcyHchbJXYbTa1jTIa0502cgXUbLuBrqKZxCJrhffEgP2i2Kac2BYFyoWEfmc0pguyqhRwePusaQu4cW9bDW0z2hYLbDYWcmOmDkTRK6DbRsPGQuJC4SdfWm5bLDQ4sURdv07KBbpSLDT8f55c9oc0hxQmxciFCg7RtUdZ+v1ZnqbfOBIz+WMn0HePdhFCtpMjczSe4w6r9NixdprnffLA4CxzAlwlZlF/d530CXszUuDq4yzdfLqkgh+eKMDwLzuhA+ImAEIc5LCfl3YaNFajtNXZ1N+epFN7w8dBGNNIgd+m8gJgoKeFvs4k0H9daeZEDcrAZ61iBY/GcxfX3T8UPkxAn0rFKBb6ZHhW3OZBbzAI3SIGiDCxUCWwunojCzichPHZXzeefHFtOhbSjrgx00gBHDRhCgK6oLA5TH+TNkYKYAFWWzFSgOSory4VjBRQFgjnRjulptGxJ8FWiA9u7ET4tEy3NssFGrytlO9fLNLMynoXNlOAW1daB942iu/iGKdScIFWuaLNK/FnNk/fTr4kPP3FSIG2es7Gs9P99brgH2MN7eWFBl/lqOv+hFygK8VCawYJeIEFYAm/NYwOsh/ncnR9PldMo3hhgHpCqkWjB7uoPRkX4OMFlRfq5ETP2P4Omswv0557Y3IYKoywiAolpDe/+tNQHi1pm7KpznDcdDHdaBZKnNnVwPGMS78s5mlqhUMGBDUiX7mGCFKkwld+R/PVSwDzrQSf3ZPfMaQKRvCCrBEz+Mm/jaHLumJkgXW9NQwvLwS3OTmByJPjoo409bU0bJgX0gy1htX5RI0F5uFUUmYfVjDaRteMGPCCLDQSuQA81tJRbIVYCHVbKZ7bQAGvRK7AlvJCHirN0z/r/urIXcg/+E7QZWt7J0RGK+O9AtHOp/loHKHwfw9qtAC7zefDUI3i5wOOhmr/zx74ywr+9cE5nZ9rwZ2AEViBGdjfAhPs4mowdpbkAAAAAElFTkSuQmCC",yt=""+new URL("VirtualOutbound-3bb05b70.png",import.meta.url).href,mt={class:"policy-type-tag"},ht=["src"],gt=_({__name:"PolicyTypeTag",props:{policyType:{type:String,required:!0}},setup(c){const o=c,C=ae(),D={CircuitBreaker:{iconUrl:Ae},FaultInjection:{iconUrl:pt},HealthCheck:{iconUrl:ce},MeshAccessLog:{iconUrl:ye},MeshCircuitBreaker:{iconUrl:Ae},MeshGateway:{iconUrl:null},MeshGatewayRoute:{iconUrl:null},MeshHealthCheck:{iconUrl:ce},MeshProxyPatch:{iconUrl:re},MeshRateLimit:{iconUrl:ue},MeshRetry:{iconUrl:pe},MeshTimeout:{iconUrl:de},MeshTrace:{iconUrl:he},MeshTrafficPermission:{iconUrl:me},ProxyTemplate:{iconUrl:re},RateLimit:{iconUrl:ue},Retry:{iconUrl:pe},Timeout:{iconUrl:de},TrafficLog:{iconUrl:ye},TrafficPermission:{iconUrl:me},TrafficRoute:{iconUrl:dt},TrafficTrace:{iconUrl:he},VirtualOutbound:{iconUrl:yt}},w=z(()=>{const v=C.state.policyTypes.map(A=>{const T=D[A.name]??{iconUrl:null};return[A.name,T]});return Object.fromEntries(v)}),m=z(()=>w.value[o.policyType]);return(v,A)=>(e(),n("span",mt,[m.value.iconUrl!==null?(e(),n("img",{key:0,class:"policy-type-tag-icon",src:m.value.iconUrl,alt:""},null,8,ht)):(e(),d(I(Ge),{key:1,icon:"brain",size:"24"})),l(),Ee(v.$slots,"default",{},()=>[l(g(o.policyType),1)],!0)]))}});const Pe=S(gt,[["__scopeId","data-v-0052ac03"]]),ft={class:"policy-type-heading"},vt={class:"policy-list"},Tt={key:0,class:"origin-list"},Dt=_({__name:"PolicyTypeEntryList",props:{id:{type:String,required:!1,default:"entry-list"},policyTypeEntries:{type:Object,required:!0}},setup(c){const o=c,C=[{label:"From",key:"sourceTags"},{label:"To",key:"destinationTags"},{label:"On",key:"name"},{label:"Conf",key:"config"},{label:"Origin policies",key:"origins"}];function D({headerKey:w}){return{class:`cell-${w}`}}return(w,m)=>{const v=F("router-link");return e(),d(W,{"initially-open":[],"multiple-open":""},{default:t(()=>[(e(!0),n(h,null,E(o.policyTypeEntries,(A,T)=>(e(),d(J,{key:T},{"accordion-header":t(()=>[f("h3",ft,[u(Pe,{"policy-type":A.type},{default:t(()=>[l(g(A.type)+" ("+g(A.connections.length)+`) + `,1)]),_:2},1032,["policy-type"])])]),"accordion-content":t(()=>[f("div",vt,[u(I(ve),{class:"policy-type-table",fetcher:()=>({data:A.connections,total:A.connections.length}),headers:C,"cell-attrs":D,"disable-pagination":"","is-clickable":""},{sourceTags:t(({rowValue:a})=>[a.length>0?(e(),d(j,{key:0,class:"tag-list",tags:a},null,8,["tags"])):(e(),n(h,{key:1},[l(` — - `)],64))]),destinationTags:t(({rowValue:a})=>[a.length>0?(e(),d(j,{key:0,class:"tag-list",tags:a},null,8,["tags"])):(e(),n(m,{key:1},[l(` + `)],64))]),destinationTags:t(({rowValue:a})=>[a.length>0?(e(),d(j,{key:0,class:"tag-list",tags:a},null,8,["tags"])):(e(),n(h,{key:1},[l(` — - `)],64))]),name:t(({rowValue:a})=>[a!==null?(e(),n(m,{key:0},[l(g(a),1)],64)):(e(),n(m,{key:1},[l(` + `)],64))]),name:t(({rowValue:a})=>[a!==null?(e(),n(h,{key:0},[l(g(a),1)],64)):(e(),n(h,{key:1},[l(` — - `)],64))]),origins:t(({rowValue:a})=>[a.length>0?(e(),n("ul",Tt,[(e(!0),n(m,null,E(a,(y,k)=>(e(),n("li",{key:`${D}-${k}`},[u(h,{to:y.route},{default:t(()=>[l(g(y.name),1)]),_:2},1032,["to"])]))),128))])):(e(),n(m,{key:1},[l(` + `)],64))]),origins:t(({rowValue:a})=>[a.length>0?(e(),n("ul",Tt,[(e(!0),n(h,null,E(a,(y,k)=>(e(),n("li",{key:`${T}-${k}`},[u(v,{to:y.route},{default:t(()=>[l(g(y.name),1)]),_:2},1032,["to"])]))),128))])):(e(),n(h,{key:1},[l(` — - `)],64))]),config:t(({rowValue:a,rowKey:y})=>[a!==null?(e(),d(De,{key:0,id:`${o.id}-${D}-${y}-code-block`,code:a,language:"yaml","show-copy-button":!1},null,8,["id","code"])):(e(),n(m,{key:1},[l(` + `)],64))]),config:t(({rowValue:a,rowKey:y})=>[a!==null?(e(),d(De,{key:0,id:`${o.id}-${T}-${y}-code-block`,code:a,language:"yaml","show-copy-button":!1},null,8,["id","code"])):(e(),n(h,{key:1},[l(` — - `)],64))]),_:2},1032,["fetcher"])])]),_:2},1024))),128))]),_:1})}}});const wt=Y(Dt,[["__scopeId","data-v-2a8add12"]]),Bt={class:"policy-type-heading"},bt={class:"policy-list"},Pt={key:1,class:"tag-list-wrapper"},Ct={key:0},kt={key:1},Et={key:0,class:"list"},Ot={key:0,class:"list"},Ut=S({__name:"RuleEntryList",props:{id:{type:String,required:!1,default:"entry-list"},ruleEntries:{type:Object,required:!0}},setup(c){const o=c,C=[{label:"Type",key:"type"},{label:"Addresses",key:"addresses"},{label:"Conf",key:"config"},{label:"Origin policies",key:"origins"}];function T({headerKey:w}){return{class:`cell-${w}`}}return(w,v)=>{const h=F("router-link");return e(),d(W,{"initially-open":[],"multiple-open":""},{default:t(()=>[(e(!0),n(m,null,E(o.ruleEntries,(A,D)=>(e(),d(J,{key:D},{"accordion-header":t(()=>[f("h3",Bt,[u(Pe,{"policy-type":A.type},{default:t(()=>[l(g(A.type)+" ("+g(A.connections.length)+`) - `,1)]),_:2},1032,["policy-type"])])]),"accordion-content":t(()=>[f("div",bt,[u(I(ve),{class:"policy-type-table",fetcher:()=>({data:A.connections,total:A.connections.length}),headers:C,"cell-attrs":T,"disable-pagination":"","is-clickable":""},{type:t(({rowValue:a})=>[a.sourceTags.length===0&&a.destinationTags.length===0?(e(),n(m,{key:0},[l(` + `)],64))]),_:2},1032,["fetcher"])])]),_:2},1024))),128))]),_:1})}}});const wt=S(Dt,[["__scopeId","data-v-2a8add12"]]),Bt={class:"policy-type-heading"},bt={class:"policy-list"},Pt={key:1,class:"tag-list-wrapper"},Ct={key:0},kt={key:1},Et={key:0,class:"list"},Ot={key:0,class:"list"},Ut=_({__name:"RuleEntryList",props:{id:{type:String,required:!1,default:"entry-list"},ruleEntries:{type:Object,required:!0}},setup(c){const o=c,C=[{label:"Type",key:"type"},{label:"Addresses",key:"addresses"},{label:"Conf",key:"config"},{label:"Origin policies",key:"origins"}];function D({headerKey:w}){return{class:`cell-${w}`}}return(w,m)=>{const v=F("router-link");return e(),d(W,{"initially-open":[],"multiple-open":""},{default:t(()=>[(e(!0),n(h,null,E(o.ruleEntries,(A,T)=>(e(),d(J,{key:T},{"accordion-header":t(()=>[f("h3",Bt,[u(Pe,{"policy-type":A.type},{default:t(()=>[l(g(A.type)+" ("+g(A.connections.length)+`) + `,1)]),_:2},1032,["policy-type"])])]),"accordion-content":t(()=>[f("div",bt,[u(I(ve),{class:"policy-type-table",fetcher:()=>({data:A.connections,total:A.connections.length}),headers:C,"cell-attrs":D,"disable-pagination":"","is-clickable":""},{type:t(({rowValue:a})=>[a.sourceTags.length===0&&a.destinationTags.length===0?(e(),n(h,{key:0},[l(` — `)],64)):(e(),n("div",Pt,[a.sourceTags.length>0?(e(),n("div",Ct,[l(` From @@ -27,18 +27,18 @@ import{d as S,r as F,o as e,e as n,g as l,F as m,j as E,k as f,t as g,h as u,w a `),u(j,{class:"tag-list",tags:a.sourceTags},null,8,["tags"])])):R("",!0),l(),a.destinationTags.length>0?(e(),n("div",kt,[l(` To - `),u(j,{class:"tag-list",tags:a.destinationTags},null,8,["tags"])])):R("",!0)]))]),addresses:t(({rowValue:a})=>[a.length>0?(e(),n("ul",Et,[(e(!0),n(m,null,E(a,(y,k)=>(e(),n("li",{key:`${D}-${k}`},g(y),1))),128))])):(e(),n(m,{key:1},[l(` + `),u(j,{class:"tag-list",tags:a.destinationTags},null,8,["tags"])])):R("",!0)]))]),addresses:t(({rowValue:a})=>[a.length>0?(e(),n("ul",Et,[(e(!0),n(h,null,E(a,(y,k)=>(e(),n("li",{key:`${T}-${k}`},g(y),1))),128))])):(e(),n(h,{key:1},[l(` — - `)],64))]),origins:t(({rowValue:a})=>[a.length>0?(e(),n("ul",Ot,[(e(!0),n(m,null,E(a,(y,k)=>(e(),n("li",{key:`${D}-${k}`},[u(h,{to:y.route},{default:t(()=>[l(g(y.name),1)]),_:2},1032,["to"])]))),128))])):(e(),n(m,{key:1},[l(` + `)],64))]),origins:t(({rowValue:a})=>[a.length>0?(e(),n("ul",Ot,[(e(!0),n(h,null,E(a,(y,k)=>(e(),n("li",{key:`${T}-${k}`},[u(v,{to:y.route},{default:t(()=>[l(g(y.name),1)]),_:2},1032,["to"])]))),128))])):(e(),n(h,{key:1},[l(` — - `)],64))]),config:t(({rowValue:a,rowKey:y})=>[a!==null?(e(),d(De,{key:0,id:`${o.id}-${D}-${y}-code-block`,code:a,language:"yaml","show-copy-button":!1},null,8,["id","code"])):(e(),n(m,{key:1},[l(` + `)],64))]),config:t(({rowValue:a,rowKey:y})=>[a!==null?(e(),d(De,{key:0,id:`${o.id}-${T}-${y}-code-block`,code:a,language:"yaml","show-copy-button":!1},null,8,["id","code"])):(e(),n(h,{key:1},[l(` — - `)],64))]),_:2},1032,["fetcher"])])]),_:2},1024))),128))]),_:1})}}});const Qt=Y(Ut,[["__scopeId","data-v-105d80e6"]]),Ce=c=>(ge("data-v-ed201f38"),c=c(),fe(),c),Gt=Ce(()=>f("h2",{class:"visually-hidden"},` + `)],64))]),_:2},1032,["fetcher"])])]),_:2},1024))),128))]),_:1})}}});const Qt=S(Ut,[["__scopeId","data-v-105d80e6"]]),Ce=c=>(ge("data-v-ed201f38"),c=c(),fe(),c),Gt=Ce(()=>f("h2",{class:"visually-hidden"},` Policies - `,-1)),Mt={key:0,class:"mt-2"},It=Ce(()=>f("h2",null,"Rules",-1)),Rt=S({__name:"SidecarDataplanePolicyList",props:{dppName:{type:String,required:!0},policyTypeEntries:{type:Object,required:!0},ruleEntries:{type:Array,required:!0}},setup(c){const o=c;return(C,T)=>(e(),n(m,null,[Gt,l(),u(wt,{id:"policies","policy-type-entries":o.policyTypeEntries},null,8,["policy-type-entries"]),l(),c.ruleEntries.length>0?(e(),n("div",Mt,[It,l(),u(Qt,{id:"rules","rule-entries":o.ruleEntries},null,8,["rule-entries"])])):R("",!0)],64))}});const Lt=Y(Rt,[["__scopeId","data-v-ed201f38"]]),zt={key:2,class:"policies-list"},xt={key:3,class:"policies-list"},_t=S({__name:"DataplanePolicies",props:{dataPlane:{type:Object,required:!0}},setup(c){const o=c,C=se(),T=V(),w=M(null),v=M([]),h=M([]),A=M([]),D=M([]),a=M(!0),y=M(null);ae(()=>o.dataPlane.name,function(){k()}),k();async function k(){var i,p;y.value=null,a.value=!0,v.value=[],h.value=[],A.value=[],D.value=[];try{if(((p=(i=o.dataPlane.networking.gateway)==null?void 0:i.type)==null?void 0:p.toUpperCase())==="BUILTIN")w.value=await C.getMeshGatewayDataplane({mesh:o.dataPlane.mesh,name:o.dataPlane.name}),A.value=x(w.value),D.value=U(w.value.policies);else{const{items:s}=await C.getSidecarDataplanePolicies({mesh:o.dataPlane.mesh,name:o.dataPlane.name});v.value=X(s??[]);const{items:B}=await C.getDataplaneRules({mesh:o.dataPlane.mesh,name:o.dataPlane.name});h.value=$(B??[])}}catch(r){r instanceof Error?y.value=r:console.error(r)}finally{a.value=!1}}function x(i){const p=[],r=i.listeners??[];for(const s of r)for(const B of s.hosts)for(const b of B.routes){const Q=[];for(const G of b.destinations){const P=U(G.policies),_={routeName:b.route,route:{name:"policy-detail-view",params:{mesh:i.gateway.mesh,policyPath:"meshgatewayroutes",policy:b.route}},service:G.tags["kuma.io/service"],policies:P};Q.push(_)}p.push({protocol:s.protocol,port:s.port,hostName:B.hostName,routeEntries:Q})}return p}function U(i){if(i===void 0)return[];const p=[];for(const r of Object.values(i)){const s=T.state.policyTypesByName[r.type];p.push({type:r.type,name:r.name,route:{name:"policy-detail-view",params:{mesh:r.mesh,policyPath:s.path,policy:r.name}}})}return p}function X(i){const p=new Map;for(const s of i){const{type:B,service:b}=s,Q=typeof b=="string"&&b!==""?[{label:"kuma.io/service",value:b}]:[],G=B==="inbound"||B==="outbound"?s.name:null;for(const[P,_]of Object.entries(s.matchedPolicies)){p.has(P)||p.set(P,{type:P,connections:[]});const N=p.get(P),H=T.state.policyTypesByName[P];for(const ne of _){const L=Z(ne,H,s,Q,G);N.connections.push(...L)}}}const r=Array.from(p.values());return r.sort((s,B)=>s.type.localeCompare(B.type)),r}function Z(i,p,r,s,B){const b=i.conf&&Object.keys(i.conf).length>0?ie(i.conf):null,G=[{name:i.name,route:{name:"policy-detail-view",params:{mesh:i.mesh,policyPath:p.path,policy:i.name}}}],P=[];if(r.type==="inbound"&&Array.isArray(i.sources))for(const{match:_}of i.sources){const H={sourceTags:[{label:"kuma.io/service",value:_["kuma.io/service"]}],destinationTags:s,name:B,config:b,origins:G};P.push(H)}else{const N={sourceTags:[],destinationTags:s,name:B,config:b,origins:G};P.push(N)}return P}function $(i){const p=new Map;for(const s of i){p.has(s.policyType)||p.set(s.policyType,{type:s.policyType,connections:[]});const B=p.get(s.policyType),b=T.state.policyTypesByName[s.policyType],Q=O(s,b);B.connections.push(...Q)}const r=Array.from(p.values());return r.sort((s,B)=>s.type.localeCompare(B.type)),r}function O(i,p){const{type:r,service:s,subset:B,conf:b}=i,Q=B?Object.entries(B):[];let G,P;r==="ClientSubset"?Q.length>0?G=Q.map(([L,ee])=>({label:L,value:ee})):G=[{label:"kuma.io/service",value:"*"}]:G=[],r==="DestinationSubset"?Q.length>0?P=Q.map(([L,ee])=>({label:L,value:ee})):typeof s=="string"&&s!==""?P=[{label:"kuma.io/service",value:s}]:P=[{label:"kuma.io/service",value:"*"}]:r==="ClientSubset"&&typeof s=="string"&&s!==""?P=[{label:"kuma.io/service",value:s}]:P=[];const _=i.addresses??[],N=b&&Object.keys(b).length>0?ie(b):null,H=[];for(const L of i.origins)H.push({name:L.name,route:{name:"policy-detail-view",params:{mesh:L.mesh,policyPath:p.path,policy:L.name}}});return[{type:{sourceTags:G,destinationTags:P},addresses:_,config:N,origins:H}]}return(i,p)=>a.value?(e(),d(be,{key:0})):y.value!==null?(e(),d(Be,{key:1,error:y.value},null,8,["error"])):v.value.length>0?(e(),n("div",zt,[u(Lt,{"dpp-name":c.dataPlane.name,"policy-type-entries":v.value,"rule-entries":h.value},null,8,["dpp-name","policy-type-entries","rule-entries"])])):A.value.length>0&&w.value!==null?(e(),n("div",xt,[u(ut,{"mesh-gateway-dataplane":w.value,"mesh-gateway-listener-entries":A.value,"mesh-gateway-route-policies":D.value},null,8,["mesh-gateway-dataplane","mesh-gateway-listener-entries","mesh-gateway-route-policies"])])):(e(),d(we,{key:4}))}});const St=Y(_t,[["__scopeId","data-v-bd1598bb"]]),Yt={class:"entity-heading"},Nt=["href"],Ht=S({__name:"DataPlaneDetails",props:{dataPlane:{type:Object,required:!0},dataPlaneOverview:{type:Object,required:!0}},setup(c){const o=c,{t:C}=Te(),T=Ie(),w=se(),v=V(),h=[{hash:"#overview",title:"Overview"},{hash:"#insights",title:"DPP Insights"},{hash:"#dpp-policies",title:"Policies"},{hash:"#xds-configuration",title:"XDS Configuration"},{hash:"#envoy-stats",title:"Stats"},{hash:"#envoy-clusters",title:"Clusters"},{hash:"#mtls",title:"Certificate Insights"},{hash:"#warnings",title:"Warnings"}],A=M([]),D=z(()=>({name:"data-plane-detail-view",params:{mesh:o.dataPlane.mesh,dataPlane:o.dataPlane.name}})),a=z(()=>Re(o.dataPlane,o.dataPlaneOverview.dataplaneInsight)),y=z(()=>le(o.dataPlane)),k=z(()=>Le(o.dataPlaneOverview.dataplaneInsight)),x=z(()=>ze(o.dataPlaneOverview)),U=z(()=>{var i;const O=Array.from(((i=o.dataPlaneOverview.dataplaneInsight)==null?void 0:i.subscriptions)??[]);return O.reverse(),O}),X=z(()=>A.value.length===0?h.filter(O=>O.hash!=="#warnings"):h);function Z(){var r;const O=((r=o.dataPlaneOverview.dataplaneInsight)==null?void 0:r.subscriptions)??[];if(O.length===0||!("version"in O[0]))return;const i=O[0].version;if(i&&i.kumaDp&&i.envoy){const s=xe(i);s.kind!==_e&&s.kind!==Se&&A.value.push(s)}v.getters["config/getMulticlusterStatus"]&&i&&le(o.dataPlane).find(b=>b.label===Oe)&&typeof i.kumaDp.kumaCpCompatible=="boolean"&&!i.kumaDp.kumaCpCompatible&&A.value.push({kind:Ye,payload:{kumaDp:i.kumaDp.version}})}Z();async function $(O){const{mesh:i,name:p}=o.dataPlane;return await w.getDataplaneFromMesh({mesh:i,name:p},O)}return(O,i)=>{const p=F("router-link");return e(),d(We,{tabs:X.value},{tabHeader:t(()=>[f("h1",Yt,[l(` + `,-1)),Mt={key:0,class:"mt-2"},It=Ce(()=>f("h2",null,"Rules",-1)),Rt=_({__name:"SidecarDataplanePolicyList",props:{dppName:{type:String,required:!0},policyTypeEntries:{type:Object,required:!0},ruleEntries:{type:Array,required:!0}},setup(c){const o=c;return(C,D)=>(e(),n(h,null,[Gt,l(),u(wt,{id:"policies","policy-type-entries":o.policyTypeEntries},null,8,["policy-type-entries"]),l(),c.ruleEntries.length>0?(e(),n("div",Mt,[It,l(),u(Qt,{id:"rules","rule-entries":o.ruleEntries},null,8,["rule-entries"])])):R("",!0)],64))}});const Lt=S(Rt,[["__scopeId","data-v-ed201f38"]]),zt={key:2,class:"policies-list"},xt={key:3,class:"policies-list"},_t=_({__name:"DataplanePolicies",props:{dataPlane:{type:Object,required:!0}},setup(c){const o=c,C=se(),D=ae(),w=G(null),m=G([]),v=G([]),A=G([]),T=G([]),a=G(!0),y=G(null);te(()=>o.dataPlane.name,function(){k()}),k();async function k(){var i,p;y.value=null,a.value=!0,m.value=[],v.value=[],A.value=[],T.value=[];try{if(((p=(i=o.dataPlane.networking.gateway)==null?void 0:i.type)==null?void 0:p.toUpperCase())==="BUILTIN")w.value=await C.getMeshGatewayDataplane({mesh:o.dataPlane.mesh,name:o.dataPlane.name}),A.value=M(w.value),T.value=q(w.value.policies);else{const{items:s}=await C.getSidecarDataplanePolicies({mesh:o.dataPlane.mesh,name:o.dataPlane.name});m.value=V(s??[]);const{items:B}=await C.getDataplaneRules({mesh:o.dataPlane.mesh,name:o.dataPlane.name});v.value=Z(B??[])}}catch(r){r instanceof Error?y.value=r:console.error(r)}finally{a.value=!1}}function M(i){const p=[],r=i.listeners??[];for(const s of r)for(const B of s.hosts)for(const b of B.routes){const U=[];for(const Q of b.destinations){const P=q(Q.policies),x={routeName:b.route,route:{name:"policy-detail-view",params:{mesh:i.gateway.mesh,policyPath:"meshgatewayroutes",policy:b.route}},service:Q.tags["kuma.io/service"],policies:P};U.push(x)}p.push({protocol:s.protocol,port:s.port,hostName:B.hostName,routeEntries:U})}return p}function q(i){if(i===void 0)return[];const p=[];for(const r of Object.values(i)){const s=D.state.policyTypesByName[r.type];p.push({type:r.type,name:r.name,route:{name:"policy-detail-view",params:{mesh:r.mesh,policyPath:s.path,policy:r.name}}})}return p}function V(i){const p=new Map;for(const s of i){const{type:B,service:b}=s,U=typeof b=="string"&&b!==""?[{label:"kuma.io/service",value:b}]:[],Q=B==="inbound"||B==="outbound"?s.name:null;for(const[P,x]of Object.entries(s.matchedPolicies)){p.has(P)||p.set(P,{type:P,connections:[]});const Y=p.get(P),N=D.state.policyTypesByName[P];for(const ne of x){const L=X(ne,N,s,U,Q);Y.connections.push(...L)}}}const r=Array.from(p.values());return r.sort((s,B)=>s.type.localeCompare(B.type)),r}function X(i,p,r,s,B){const b=i.conf&&Object.keys(i.conf).length>0?ie(i.conf):null,Q=[{name:i.name,route:{name:"policy-detail-view",params:{mesh:i.mesh,policyPath:p.path,policy:i.name}}}],P=[];if(r.type==="inbound"&&Array.isArray(i.sources))for(const{match:x}of i.sources){const N={sourceTags:[{label:"kuma.io/service",value:x["kuma.io/service"]}],destinationTags:s,name:B,config:b,origins:Q};P.push(N)}else{const Y={sourceTags:[],destinationTags:s,name:B,config:b,origins:Q};P.push(Y)}return P}function Z(i){const p=new Map;for(const s of i){p.has(s.policyType)||p.set(s.policyType,{type:s.policyType,connections:[]});const B=p.get(s.policyType),b=D.state.policyTypesByName[s.policyType],U=O(s,b);B.connections.push(...U)}const r=Array.from(p.values());return r.sort((s,B)=>s.type.localeCompare(B.type)),r}function O(i,p){const{type:r,service:s,subset:B,conf:b}=i,U=B?Object.entries(B):[];let Q,P;r==="ClientSubset"?U.length>0?Q=U.map(([L,$])=>({label:L,value:$})):Q=[{label:"kuma.io/service",value:"*"}]:Q=[],r==="DestinationSubset"?U.length>0?P=U.map(([L,$])=>({label:L,value:$})):typeof s=="string"&&s!==""?P=[{label:"kuma.io/service",value:s}]:P=[{label:"kuma.io/service",value:"*"}]:r==="ClientSubset"&&typeof s=="string"&&s!==""?P=[{label:"kuma.io/service",value:s}]:P=[];const x=i.addresses??[],Y=b&&Object.keys(b).length>0?ie(b):null,N=[];for(const L of i.origins)N.push({name:L.name,route:{name:"policy-detail-view",params:{mesh:L.mesh,policyPath:p.path,policy:L.name}}});return[{type:{sourceTags:Q,destinationTags:P},addresses:x,config:Y,origins:N}]}return(i,p)=>a.value?(e(),d(be,{key:0})):y.value!==null?(e(),d(Be,{key:1,error:y.value},null,8,["error"])):m.value.length>0?(e(),n("div",zt,[u(Lt,{"dpp-name":c.dataPlane.name,"policy-type-entries":m.value,"rule-entries":v.value},null,8,["dpp-name","policy-type-entries","rule-entries"])])):A.value.length>0&&w.value!==null?(e(),n("div",xt,[u(ut,{"mesh-gateway-dataplane":w.value,"mesh-gateway-listener-entries":A.value,"mesh-gateway-route-policies":T.value},null,8,["mesh-gateway-dataplane","mesh-gateway-listener-entries","mesh-gateway-route-policies"])])):(e(),d(we,{key:4}))}});const St=S(_t,[["__scopeId","data-v-bd1598bb"]]),Yt={class:"entity-heading"},Nt=["href"],Ht=_({__name:"DataPlaneDetails",props:{dataPlane:{type:Object,required:!0},dataPlaneOverview:{type:Object,required:!0}},setup(c){const o=c,{t:C}=Te(),D=Ie(),w=se(),m=ae(),v=[{hash:"#overview",title:"Overview"},{hash:"#insights",title:"DPP Insights"},{hash:"#dpp-policies",title:"Policies"},{hash:"#xds-configuration",title:"XDS Configuration"},{hash:"#envoy-stats",title:"Stats"},{hash:"#envoy-clusters",title:"Clusters"},{hash:"#mtls",title:"Certificate Insights"},{hash:"#warnings",title:"Warnings"}],A=G([]),T=z(()=>({name:"data-plane-detail-view",params:{mesh:o.dataPlane.mesh,dataPlane:o.dataPlane.name}})),a=z(()=>Re(o.dataPlane,o.dataPlaneOverview.dataplaneInsight)),y=z(()=>le(o.dataPlane)),k=z(()=>Le(o.dataPlaneOverview.dataplaneInsight)),M=z(()=>ze(o.dataPlaneOverview)),q=z(()=>{var i;const O=Array.from(((i=o.dataPlaneOverview.dataplaneInsight)==null?void 0:i.subscriptions)??[]);return O.reverse(),O}),V=z(()=>A.value.length===0?v.filter(O=>O.hash!=="#warnings"):v);function X(){var r;const O=((r=o.dataPlaneOverview.dataplaneInsight)==null?void 0:r.subscriptions)??[];if(O.length===0||!("version"in O[0]))return;const i=O[0].version;if(i&&i.kumaDp&&i.envoy){const s=xe(i);s.kind!==_e&&s.kind!==Se&&A.value.push(s)}m.getters["config/getMulticlusterStatus"]&&i&&le(o.dataPlane).find(b=>b.label===Oe)&&typeof i.kumaDp.kumaCpCompatible=="boolean"&&!i.kumaDp.kumaCpCompatible&&A.value.push({kind:Ye,payload:{kumaDp:i.kumaDp.version}})}X();async function Z(O){const{mesh:i,name:p}=o.dataPlane;return await w.getDataplaneFromMesh({mesh:i,name:p},O)}return(O,i)=>{const p=F("router-link");return e(),d(We,{tabs:V.value},{tabHeader:t(()=>[f("h1",Yt,[l(` DPP: - `),u(Ve,{text:c.dataPlane.name},{default:t(()=>[u(p,{to:D.value},{default:t(()=>[l(g(c.dataPlane.name),1)]),_:1},8,["to"])]),_:1},8,["text"])])]),overview:t(()=>[u(oe,null,{default:t(()=>[y.value.length>0?(e(),d(K,{key:0,term:"Tags"},{default:t(()=>[u(j,{tags:y.value},null,8,["tags"])]),_:1})):R("",!0),l(),a.value.status?(e(),d(K,{key:1,term:"Status"},{default:t(()=>[u(Ke,{status:a.value.status},null,8,["status"])]),_:1})):R("",!0),l(),a.value.reason.length>0?(e(),d(K,{key:2,term:"Reason"},{default:t(()=>[(e(!0),n(m,null,E(a.value.reason,(r,s)=>(e(),n("div",{key:s,class:"reason"},g(r),1))),128))]),_:1})):R("",!0),l(),k.value!==null?(e(),d(K,{key:3,term:"Dependencies"},{default:t(()=>[f("ul",null,[(e(!0),n(m,null,E(k.value,(r,s)=>(e(),n("li",{key:s,class:"tag-cols"},g(s)+": "+g(r),1))),128))])]),_:1})):R("",!0)]),_:1}),l(),u(qe,{id:"code-block-data-plane",class:"mt-4","resource-fetcher":$,"resource-fetcher-watch-key":o.dataPlane.name,"is-searchable":""},null,8,["resource-fetcher-watch-key"])]),insights:t(()=>[u(je,{"is-empty":U.value.length===0},{default:t(()=>[u(W,{"initially-open":0},{default:t(()=>[(e(!0),n(m,null,E(U.value,(r,s)=>(e(),d(J,{key:s},{"accordion-header":t(()=>[u(Fe,{details:r},null,8,["details"])]),"accordion-content":t(()=>[u(Je,{details:r,"is-discovery-subscription":""},null,8,["details"])]),_:2},1024))),128))]),_:1})]),_:1},8,["is-empty"])]),"dpp-policies":t(()=>[u(St,{"data-plane":c.dataPlane},null,8,["data-plane"])]),"xds-configuration":t(()=>[u(te,{"data-path":"xds",mesh:c.dataPlane.mesh,"dpp-name":c.dataPlane.name,"query-key":"envoy-data-data-plane"},null,8,["mesh","dpp-name"])]),"envoy-stats":t(()=>[u(te,{"data-path":"stats",mesh:c.dataPlane.mesh,"dpp-name":c.dataPlane.name,"query-key":"envoy-data-data-plane"},null,8,["mesh","dpp-name"])]),"envoy-clusters":t(()=>[u(te,{"data-path":"clusters",mesh:c.dataPlane.mesh,"dpp-name":c.dataPlane.name,"query-key":"envoy-data-data-plane"},null,8,["mesh","dpp-name"])]),mtls:t(()=>[x.value===null?(e(),d(I(Me),{key:0,appearance:"danger"},{alertMessage:t(()=>[l(` + `),u(Ve,{text:c.dataPlane.name},{default:t(()=>[u(p,{to:T.value},{default:t(()=>[l(g(c.dataPlane.name),1)]),_:1},8,["to"])]),_:1},8,["text"])])]),overview:t(()=>[u(oe,null,{default:t(()=>[y.value.length>0?(e(),d(K,{key:0,term:"Tags"},{default:t(()=>[u(j,{tags:y.value},null,8,["tags"])]),_:1})):R("",!0),l(),a.value.status?(e(),d(K,{key:1,term:"Status"},{default:t(()=>[u(Ke,{status:a.value.status},null,8,["status"])]),_:1})):R("",!0),l(),a.value.reason.length>0?(e(),d(K,{key:2,term:"Reason"},{default:t(()=>[(e(!0),n(h,null,E(a.value.reason,(r,s)=>(e(),n("div",{key:s,class:"reason"},g(r),1))),128))]),_:1})):R("",!0),l(),k.value!==null?(e(),d(K,{key:3,term:"Dependencies"},{default:t(()=>[f("ul",null,[(e(!0),n(h,null,E(k.value,(r,s)=>(e(),n("li",{key:s,class:"tag-cols"},g(s)+": "+g(r),1))),128))])]),_:1})):R("",!0)]),_:1}),l(),u(qe,{id:"code-block-data-plane",class:"mt-4","resource-fetcher":Z,"resource-fetcher-watch-key":o.dataPlane.name,"is-searchable":""},null,8,["resource-fetcher-watch-key"])]),insights:t(()=>[u(je,{"is-empty":q.value.length===0},{default:t(()=>[u(W,{"initially-open":0},{default:t(()=>[(e(!0),n(h,null,E(q.value,(r,s)=>(e(),d(J,{key:s},{"accordion-header":t(()=>[u(Fe,{details:r},null,8,["details"])]),"accordion-content":t(()=>[u(Je,{details:r,"is-discovery-subscription":""},null,8,["details"])]),_:2},1024))),128))]),_:1})]),_:1},8,["is-empty"])]),"dpp-policies":t(()=>[u(St,{"data-plane":c.dataPlane},null,8,["data-plane"])]),"xds-configuration":t(()=>[u(ee,{"data-path":"xds",mesh:c.dataPlane.mesh,"dpp-name":c.dataPlane.name,"query-key":"envoy-data-data-plane"},null,8,["mesh","dpp-name"])]),"envoy-stats":t(()=>[u(ee,{"data-path":"stats",mesh:c.dataPlane.mesh,"dpp-name":c.dataPlane.name,"query-key":"envoy-data-data-plane"},null,8,["mesh","dpp-name"])]),"envoy-clusters":t(()=>[u(ee,{"data-path":"clusters",mesh:c.dataPlane.mesh,"dpp-name":c.dataPlane.name,"query-key":"envoy-data-data-plane"},null,8,["mesh","dpp-name"])]),mtls:t(()=>[M.value===null?(e(),d(I(Me),{key:0,appearance:"danger"},{alertMessage:t(()=>[l(` This data plane proxy does not yet have mTLS configured — - `),f("a",{href:`${I(T)("KUMA_DOCS_URL")}/policies/mutual-tls/?${I(T)("KUMA_UTM_QUERY_PARAMS")}`,class:"external-link",target:"_blank"},` - Learn About Certificates in `+g(I(T)("KUMA_PRODUCT_NAME")),9,Nt)]),_:1})):(e(),d(oe,{key:1},{default:t(()=>[(e(!0),n(m,null,E(x.value,(r,s)=>(e(),d(K,{key:s,term:I(C)(`http.api.property.${s}`)},{default:t(()=>[l(g(r),1)]),_:2},1032,["term"]))),128))]),_:1}))]),warnings:t(()=>[u(Xe,{warnings:A.value},null,8,["warnings"])]),_:1},8,["tabs"])}}});const qt=Y(Ht,[["__scopeId","data-v-983eacd1"]]),Kt={class:"kcard-border"},pa=S({__name:"DataPlaneDetailView",props:{isGatewayView:{type:Boolean,required:!1,default:!1}},setup(c){const o=c,C=se(),T=Ue(),w=V(),{t:v}=Te(),h=M(null),A=M(null),D=M(!0),a=M(null);async function y(){a.value=null,D.value=!0;const k=T.params.mesh,x=T.params.dataPlane;try{h.value=await C.getDataplaneFromMesh({mesh:k,name:x}),A.value=await C.getDataplaneOverviewFromMesh({mesh:k,name:x})}catch(U){h.value=null,U instanceof Error?a.value=U:console.error(U)}finally{D.value=!1}}return ae(()=>T.params.mesh,function(){T.name==="data-plane-detail-view"&&y()}),ae(()=>T.params.dataPlane,function(){T.name==="data-plane-detail-view"&&y()}),y(),w.dispatch("updatePageTitle",T.params.dataPlane),(k,x)=>(e(),d(He,{module:o.isGatewayView?"gateways":"data-planes"},{default:t(({route:U})=>[u(Ze,{title:I(v)(`${o.isGatewayView?"gateways":"data-planes"}.routes.item.title`,{name:U.params.dataPlane})},null,8,["title"]),l(),u(Ne,{breadcrumbs:[{to:{name:`${o.isGatewayView?"gateways":"data-planes"}-list-view`,params:{mesh:U.params.mesh}},text:I(v)(`${o.isGatewayView?"gateways":"data-planes"}.routes.item.breadcrumbs`)}]},{default:t(()=>[f("div",Kt,[D.value?(e(),d(be,{key:0})):a.value!==null?(e(),d(Be,{key:1,error:a.value},null,8,["error"])):h.value===null||A.value===null?(e(),d(we,{key:2})):(e(),d(qt,{key:3,"data-plane":h.value,"data-plane-overview":A.value},null,8,["data-plane","data-plane-overview"]))])]),_:2},1032,["breadcrumbs"])]),_:1},8,["module"]))}});export{pa as default}; + `),f("a",{href:`${I(D)("KUMA_DOCS_URL")}/policies/mutual-tls/?${I(D)("KUMA_UTM_QUERY_PARAMS")}`,class:"external-link",target:"_blank"},` + Learn About Certificates in `+g(I(D)("KUMA_PRODUCT_NAME")),9,Nt)]),_:1})):(e(),d(oe,{key:1},{default:t(()=>[(e(!0),n(h,null,E(M.value,(r,s)=>(e(),d(K,{key:s,term:I(C)(`http.api.property.${s}`)},{default:t(()=>[l(g(r),1)]),_:2},1032,["term"]))),128))]),_:1}))]),warnings:t(()=>[u(Xe,{warnings:A.value},null,8,["warnings"])]),_:1},8,["tabs"])}}});const qt=S(Ht,[["__scopeId","data-v-983eacd1"]]),Kt={class:"kcard-border"},pa=_({__name:"DataPlaneDetailView",props:{isGatewayView:{type:Boolean,required:!1,default:!1}},setup(c){const o=c,C=se(),D=Ue(),{t:w}=Te(),m=G(null),v=G(null),A=G(!0),T=G(null);async function a(){T.value=null,A.value=!0;const y=D.params.mesh,k=D.params.dataPlane;try{m.value=await C.getDataplaneFromMesh({mesh:y,name:k}),v.value=await C.getDataplaneOverviewFromMesh({mesh:y,name:k})}catch(M){m.value=null,M instanceof Error?T.value=M:console.error(M)}finally{A.value=!1}}return te(()=>D.params.mesh,function(){D.name==="data-plane-detail-view"&&a()}),te(()=>D.params.dataPlane,function(){D.name==="data-plane-detail-view"&&a()}),a(),(y,k)=>(e(),d(He,{module:o.isGatewayView?"gateways":"data-planes"},{default:t(({route:M})=>[u(Ze,{title:I(w)(`${o.isGatewayView?"gateways":"data-planes"}.routes.item.title`,{name:M.params.dataPlane})},null,8,["title"]),l(),u(Ne,{breadcrumbs:[{to:{name:`${o.isGatewayView?"gateways":"data-planes"}-list-view`,params:{mesh:M.params.mesh}},text:I(w)(`${o.isGatewayView?"gateways":"data-planes"}.routes.item.breadcrumbs`)}]},{default:t(()=>[f("div",Kt,[A.value?(e(),d(be,{key:0})):T.value!==null?(e(),d(Be,{key:1,error:T.value},null,8,["error"])):m.value===null||v.value===null?(e(),d(we,{key:2})):(e(),d(qt,{key:3,"data-plane":m.value,"data-plane-overview":v.value},null,8,["data-plane","data-plane-overview"]))])]),_:2},1032,["breadcrumbs"])]),_:1},8,["module"]))}});export{pa as default}; diff --git a/app/kuma-ui/pkg/resources/data/assets/DataPlaneList-5bcc6a6f.js b/app/kuma-ui/pkg/resources/data/assets/DataPlaneList-ea6c4e67.js similarity index 96% rename from app/kuma-ui/pkg/resources/data/assets/DataPlaneList-5bcc6a6f.js rename to app/kuma-ui/pkg/resources/data/assets/DataPlaneList-ea6c4e67.js index 106f4b9f93ae..62fd67b6b9d3 100644 --- a/app/kuma-ui/pkg/resources/data/assets/DataPlaneList-5bcc6a6f.js +++ b/app/kuma-ui/pkg/resources/data/assets/DataPlaneList-ea6c4e67.js @@ -1,4 +1,4 @@ -var Ke=Object.defineProperty;var Me=(e,n,t)=>n in e?Ke(e,n,{enumerable:!0,configurable:!0,writable:!0,value:t}):e[n]=t;var ee=(e,n,t)=>(Me(e,typeof n!="symbol"?n+"":n,t),t);import{d as ue,q as I,c as A,s as Y,o as c,e as _,k as v,g as o,h as C,b as F,n as je,t as P,G as Ae,H as qe,z as Ce,F as M,j as q,f as K,y as ze,D as Re,p as de,m as ce,I as De,r as Be,a as j,w as D,x as Se,K as He,J as Qe,P as Ge,L as Pe,M as Ye}from"./index-50754121.js";import{l as te,U as Je,Y as Ze,Q as We,S as Xe}from"./kongponents.es-07c2d778.js";import{C as et}from"./ContentWrapper-6a8b0059.js";import{D as tt}from"./DataOverview-5b210bb7.js";import{_ as at}from"./EmptyBlock.vue_vue_type_script_setup_true_lang-34eb656c.js";import{h as pe,j as nt,k as st,n as Ee,m as xe,o as lt,z as ot,f as it,q as rt,C as ut,B as dt,E as ct,r as pt}from"./RouteView.vue_vue_type_script_setup_true_lang-bc0afbf3.js";import{a as R,D as re}from"./DefinitionListItem-b371d6a2.js";import{_ as ft}from"./ResourceCodeBlock.vue_vue_type_script_setup_true_lang-d4356ea6.js";import{S as mt}from"./StatusBadge-9e322ea6.js";import{T as vt}from"./TagList-a0e27239.js";import{T as gt}from"./TextWithCopyButton-d85f5945.js";import{Q as B}from"./QueryParameter-70743f73.js";const Ie=[{key:"status",label:"Status"},{key:"entity",label:"Name"},{key:"type",label:"Type"},{key:"service",label:"Service"},{key:"protocol",label:"Protocol"},{key:"zone",label:"Zone"},{key:"lastConnected",label:"Last Connected"},{key:"lastUpdated",label:"Last Updated"},{key:"totalUpdates",label:"Total Updates"},{key:"dpVersion",label:"Kuma DP version"},{key:"envoyVersion",label:"Envoy version"}],yt=["entity"],ht=Ie.filter(e=>!yt.includes(e.key)).map(e=>({tableHeaderKey:e.key,label:e.label,isChecked:!1})),Ue=["status","entity","type","service","protocol","zone","lastUpdated","dpVersion"];function _t(e,n=Ue){return Ie.filter(t=>n.includes(t.key)?e?!0:t.key!=="zone":!1)}function bt(e,n,t){return Math.max(n,Math.min(e,t))}const kt=["ControlLeft","ControlRight","ShiftLeft","ShiftRight","AltLeft"];class wt{constructor(n,t){ee(this,"commands");ee(this,"keyMap");ee(this,"boundTriggerShortcuts");this.commands=t,this.keyMap=Object.fromEntries(Object.entries(n).map(([w,r])=>[w.toLowerCase(),r])),this.boundTriggerShortcuts=this.triggerShortcuts.bind(this)}registerListener(){document.addEventListener("keydown",this.boundTriggerShortcuts)}unRegisterListener(){document.removeEventListener("keydown",this.boundTriggerShortcuts)}triggerShortcuts(n){Tt(n,this.keyMap,this.commands)}}function Tt(e,n,t){const w=Ct(e.code),r=[e.ctrlKey?"ctrl":"",e.shiftKey?"shift":"",e.altKey?"alt":"",w].filter(m=>m!=="").join("+"),u=n[r];if(!u)return;const h=t[u];h.isAllowedContext&&!h.isAllowedContext(e)||(h.shouldPreventDefaultAction&&e.preventDefault(),!(h.isDisabled&&h.isDisabled())&&h.trigger(e))}function Ct(e){return kt.includes(e)?"":e.replace(/^Key/,"").toLowerCase()}function Dt(e,n){const t=" "+e,w=t.matchAll(/ ([-\s\w]+):\s*/g),r=[];for(const u of Array.from(w)){if(u.index===void 0)continue;const h=St(u[1]);if(n.length>0&&!n.includes(h))throw new Error(`Unknown field “${h}”. Known fields: ${n.join(", ")}`);const m=u.index+u[0].length,T=t.substring(m);let S;if(/^\s*["']/.test(T)){const p=T.match(/['"](.*?)['"]/);if(p!==null)S=p[1];else throw new Error(`Quote mismatch for field “${h}”.`)}else{const p=T.indexOf(" "),g=p===-1?T.length:p;S=T.substring(0,g)}S!==""&&r.push([h,S])}return r}function St(e){return e.trim().replace(/\s+/g,"-").replace(/-[a-z]/g,(n,t)=>t===0?n:n.substring(1).toUpperCase())}const Oe=e=>(de("data-v-2fcde9ea"),e=e(),ce(),e),Pt=Oe(()=>v("span",{class:"visually-hidden"},"Focus filter",-1)),At=["for"],Et=["id","placeholder"],xt={key:0,class:"k-suggestion-box","data-testid":"k-filter-bar-suggestion-box"},It={class:"k-suggestion-list"},Ut={key:0,class:"k-filter-bar-error"},Ot={key:0},Vt=["title","data-filter-field"],Nt={class:"visually-hidden"},$t=Oe(()=>v("span",{class:"visually-hidden"},"Clear query",-1)),Ft=ue({__name:"KFilterBar",props:{id:{type:String,required:!0},fields:{type:Object,required:!0},placeholder:{type:String,required:!1,default:null},query:{type:String,required:!1,default:""}},emits:["fields-change"],setup(e,{emit:n}){const t=e,w=I(null),r=I(null),u=I(t.query),h=I([]),m=I(null),T=I(!1),S=I(-1),U=A(()=>Object.keys(t.fields)),p=A(()=>Object.entries(t.fields).slice(0,5).map(([a,l])=>({fieldName:a,...l}))),g=A(()=>U.value.length>0?`Filter by ${U.value.join(", ")}`:"Filter"),y=A(()=>t.placeholder??g.value);Y(()=>h.value,function(a,l){i(a,l)||(m.value=null,n("fields-change",{fields:a,query:u.value}))}),Y(()=>u.value,function(){u.value===""&&(m.value=null),T.value=!0});const b={Enter:"submitQuery",Escape:"closeSuggestionBox",ArrowDown:"jumpToNextSuggestion",ArrowUp:"jumpToPreviousSuggestion"},k={submitQuery:{trigger:E,isAllowedContext(a){return r.value!==null&&a.composedPath().includes(r.value)},shouldPreventDefaultAction:!0},jumpToNextSuggestion:{trigger:L,isAllowedContext(a){return r.value!==null&&a.composedPath().includes(r.value)},shouldPreventDefaultAction:!0},jumpToPreviousSuggestion:{trigger:H,isAllowedContext(a){return r.value!==null&&a.composedPath().includes(r.value)},shouldPreventDefaultAction:!0},closeSuggestionBox:{trigger:G,isAllowedContext(a){return w.value!==null&&a.composedPath().includes(w.value)}}};function N(){const a=new wt(b,k);ze(function(){a.registerListener()}),Re(function(){a.unRegisterListener()}),s(u.value)}N();function O(a){const l=a.target;s(l.value)}function E(){if(r.value instanceof HTMLInputElement)if(S.value===-1)s(r.value.value),T.value=!1;else{const a=p.value[S.value].fieldName;a&&Q(r.value,a)}}function L(){J(1)}function H(){J(-1)}function J(a){S.value=bt(S.value+a,-1,p.value.length-1)}function ae(){r.value instanceof HTMLInputElement&&r.value.focus()}function ne(a){const d=a.currentTarget.getAttribute("data-filter-field");d&&r.value instanceof HTMLInputElement&&Q(r.value,d)}function Q(a,l){const d=u.value===""||u.value.endsWith(" ")?"":" ";u.value+=d+l+":",a.focus(),S.value=-1}function Z(){u.value="",r.value instanceof HTMLInputElement&&(r.value.value="",r.value.focus(),s(""))}function se(a){a.relatedTarget===null&&G(),w.value instanceof HTMLElement&&a.relatedTarget instanceof Node&&!w.value.contains(a.relatedTarget)&&G()}function G(){T.value=!1}function s(a){m.value=null;try{const l=Dt(a,U.value);l.sort((d,V)=>d[0].localeCompare(V[0])),h.value=l}catch(l){if(l instanceof Error)m.value=l,T.value=!0;else throw l}}function i(a,l){return JSON.stringify(a)===JSON.stringify(l)}return(a,l)=>(c(),_("div",{ref_key:"filterBar",ref:w,class:"k-filter-bar","data-testid":"k-filter-bar"},[v("button",{class:"k-focus-filter-input-button",title:"Focus filter",type:"button","data-testid":"k-filter-bar-focus-filter-input-button",onClick:ae},[Pt,o(),C(F(te),{"aria-hidden":"true",class:"k-filter-icon",color:"var(--grey-400)","data-testid":"k-filter-bar-filter-icon","hide-title":"",icon:"filter",size:"20"})]),o(),v("label",{for:`${t.id}-filter-bar-input`,class:"visually-hidden"},[je(a.$slots,"default",{},()=>[o(P(g.value),1)],!0)],8,At),o(),Ae(v("input",{id:`${t.id}-filter-bar-input`,ref_key:"filterInput",ref:r,"onUpdate:modelValue":l[0]||(l[0]=d=>u.value=d),class:"k-filter-bar-input",type:"text",placeholder:y.value,"data-testid":"k-filter-bar-filter-input",onFocus:l[1]||(l[1]=d=>T.value=!0),onBlur:se,onChange:O},null,40,Et),[[qe,u.value]]),o(),T.value?(c(),_("div",xt,[v("div",It,[m.value!==null?(c(),_("p",Ut,P(m.value.message),1)):(c(),_("button",{key:1,class:Ce(["k-submit-query-button",{"k-submit-query-button-is-selected":S.value===-1}]),title:"Submit query",type:"button","data-testid":"k-filter-bar-submit-query-button",onClick:E},` +var Ke=Object.defineProperty;var Me=(e,n,t)=>n in e?Ke(e,n,{enumerable:!0,configurable:!0,writable:!0,value:t}):e[n]=t;var ee=(e,n,t)=>(Me(e,typeof n!="symbol"?n+"":n,t),t);import{d as ue,q as I,c as A,s as Y,o as c,e as _,k as v,g as o,h as C,b as F,n as je,t as P,G as Ae,H as qe,z as Ce,F as M,j as q,f as K,y as ze,D as Re,p as de,m as ce,I as De,r as Be,a as j,w as D,x as Se,K as He,J as Qe,P as Ge,L as Pe,M as Ye}from"./index-a4a530d1.js";import{l as te,U as Je,Y as Ze,Q as We,S as Xe}from"./kongponents.es-f7b55123.js";import{C as et}from"./ContentWrapper-1933fc04.js";import{D as tt}from"./DataOverview-7c85e051.js";import{_ as at}from"./EmptyBlock.vue_vue_type_script_setup_true_lang-ddebee78.js";import{h as pe,j as nt,k as st,n as Ee,m as xe,o as lt,z as ot,f as it,q as rt,C as ut,B as dt,E as ct,r as pt}from"./RouteView.vue_vue_type_script_setup_true_lang-8e6a23b5.js";import{a as R,D as re}from"./DefinitionListItem-f18ea925.js";import{_ as ft}from"./ResourceCodeBlock.vue_vue_type_script_setup_true_lang-6b64ed3d.js";import{S as mt}from"./StatusBadge-6b87699d.js";import{T as vt}from"./TagList-76ef6044.js";import{T as gt}from"./TextWithCopyButton-4f241d23.js";import{Q as B}from"./QueryParameter-70743f73.js";const Ie=[{key:"status",label:"Status"},{key:"entity",label:"Name"},{key:"type",label:"Type"},{key:"service",label:"Service"},{key:"protocol",label:"Protocol"},{key:"zone",label:"Zone"},{key:"lastConnected",label:"Last Connected"},{key:"lastUpdated",label:"Last Updated"},{key:"totalUpdates",label:"Total Updates"},{key:"dpVersion",label:"Kuma DP version"},{key:"envoyVersion",label:"Envoy version"}],yt=["entity"],ht=Ie.filter(e=>!yt.includes(e.key)).map(e=>({tableHeaderKey:e.key,label:e.label,isChecked:!1})),Ue=["status","entity","type","service","protocol","zone","lastUpdated","dpVersion"];function _t(e,n=Ue){return Ie.filter(t=>n.includes(t.key)?e?!0:t.key!=="zone":!1)}function bt(e,n,t){return Math.max(n,Math.min(e,t))}const kt=["ControlLeft","ControlRight","ShiftLeft","ShiftRight","AltLeft"];class wt{constructor(n,t){ee(this,"commands");ee(this,"keyMap");ee(this,"boundTriggerShortcuts");this.commands=t,this.keyMap=Object.fromEntries(Object.entries(n).map(([w,r])=>[w.toLowerCase(),r])),this.boundTriggerShortcuts=this.triggerShortcuts.bind(this)}registerListener(){document.addEventListener("keydown",this.boundTriggerShortcuts)}unRegisterListener(){document.removeEventListener("keydown",this.boundTriggerShortcuts)}triggerShortcuts(n){Tt(n,this.keyMap,this.commands)}}function Tt(e,n,t){const w=Ct(e.code),r=[e.ctrlKey?"ctrl":"",e.shiftKey?"shift":"",e.altKey?"alt":"",w].filter(m=>m!=="").join("+"),u=n[r];if(!u)return;const h=t[u];h.isAllowedContext&&!h.isAllowedContext(e)||(h.shouldPreventDefaultAction&&e.preventDefault(),!(h.isDisabled&&h.isDisabled())&&h.trigger(e))}function Ct(e){return kt.includes(e)?"":e.replace(/^Key/,"").toLowerCase()}function Dt(e,n){const t=" "+e,w=t.matchAll(/ ([-\s\w]+):\s*/g),r=[];for(const u of Array.from(w)){if(u.index===void 0)continue;const h=St(u[1]);if(n.length>0&&!n.includes(h))throw new Error(`Unknown field “${h}”. Known fields: ${n.join(", ")}`);const m=u.index+u[0].length,T=t.substring(m);let S;if(/^\s*["']/.test(T)){const p=T.match(/['"](.*?)['"]/);if(p!==null)S=p[1];else throw new Error(`Quote mismatch for field “${h}”.`)}else{const p=T.indexOf(" "),g=p===-1?T.length:p;S=T.substring(0,g)}S!==""&&r.push([h,S])}return r}function St(e){return e.trim().replace(/\s+/g,"-").replace(/-[a-z]/g,(n,t)=>t===0?n:n.substring(1).toUpperCase())}const Oe=e=>(de("data-v-2fcde9ea"),e=e(),ce(),e),Pt=Oe(()=>v("span",{class:"visually-hidden"},"Focus filter",-1)),At=["for"],Et=["id","placeholder"],xt={key:0,class:"k-suggestion-box","data-testid":"k-filter-bar-suggestion-box"},It={class:"k-suggestion-list"},Ut={key:0,class:"k-filter-bar-error"},Ot={key:0},Vt=["title","data-filter-field"],Nt={class:"visually-hidden"},$t=Oe(()=>v("span",{class:"visually-hidden"},"Clear query",-1)),Ft=ue({__name:"KFilterBar",props:{id:{type:String,required:!0},fields:{type:Object,required:!0},placeholder:{type:String,required:!1,default:null},query:{type:String,required:!1,default:""}},emits:["fields-change"],setup(e,{emit:n}){const t=e,w=I(null),r=I(null),u=I(t.query),h=I([]),m=I(null),T=I(!1),S=I(-1),U=A(()=>Object.keys(t.fields)),p=A(()=>Object.entries(t.fields).slice(0,5).map(([a,l])=>({fieldName:a,...l}))),g=A(()=>U.value.length>0?`Filter by ${U.value.join(", ")}`:"Filter"),y=A(()=>t.placeholder??g.value);Y(()=>h.value,function(a,l){i(a,l)||(m.value=null,n("fields-change",{fields:a,query:u.value}))}),Y(()=>u.value,function(){u.value===""&&(m.value=null),T.value=!0});const b={Enter:"submitQuery",Escape:"closeSuggestionBox",ArrowDown:"jumpToNextSuggestion",ArrowUp:"jumpToPreviousSuggestion"},k={submitQuery:{trigger:E,isAllowedContext(a){return r.value!==null&&a.composedPath().includes(r.value)},shouldPreventDefaultAction:!0},jumpToNextSuggestion:{trigger:L,isAllowedContext(a){return r.value!==null&&a.composedPath().includes(r.value)},shouldPreventDefaultAction:!0},jumpToPreviousSuggestion:{trigger:H,isAllowedContext(a){return r.value!==null&&a.composedPath().includes(r.value)},shouldPreventDefaultAction:!0},closeSuggestionBox:{trigger:G,isAllowedContext(a){return w.value!==null&&a.composedPath().includes(w.value)}}};function N(){const a=new wt(b,k);ze(function(){a.registerListener()}),Re(function(){a.unRegisterListener()}),s(u.value)}N();function O(a){const l=a.target;s(l.value)}function E(){if(r.value instanceof HTMLInputElement)if(S.value===-1)s(r.value.value),T.value=!1;else{const a=p.value[S.value].fieldName;a&&Q(r.value,a)}}function L(){J(1)}function H(){J(-1)}function J(a){S.value=bt(S.value+a,-1,p.value.length-1)}function ae(){r.value instanceof HTMLInputElement&&r.value.focus()}function ne(a){const d=a.currentTarget.getAttribute("data-filter-field");d&&r.value instanceof HTMLInputElement&&Q(r.value,d)}function Q(a,l){const d=u.value===""||u.value.endsWith(" ")?"":" ";u.value+=d+l+":",a.focus(),S.value=-1}function Z(){u.value="",r.value instanceof HTMLInputElement&&(r.value.value="",r.value.focus(),s(""))}function se(a){a.relatedTarget===null&&G(),w.value instanceof HTMLElement&&a.relatedTarget instanceof Node&&!w.value.contains(a.relatedTarget)&&G()}function G(){T.value=!1}function s(a){m.value=null;try{const l=Dt(a,U.value);l.sort((d,V)=>d[0].localeCompare(V[0])),h.value=l}catch(l){if(l instanceof Error)m.value=l,T.value=!0;else throw l}}function i(a,l){return JSON.stringify(a)===JSON.stringify(l)}return(a,l)=>(c(),_("div",{ref_key:"filterBar",ref:w,class:"k-filter-bar","data-testid":"k-filter-bar"},[v("button",{class:"k-focus-filter-input-button",title:"Focus filter",type:"button","data-testid":"k-filter-bar-focus-filter-input-button",onClick:ae},[Pt,o(),C(F(te),{"aria-hidden":"true",class:"k-filter-icon",color:"var(--grey-400)","data-testid":"k-filter-bar-filter-icon","hide-title":"",icon:"filter",size:"20"})]),o(),v("label",{for:`${t.id}-filter-bar-input`,class:"visually-hidden"},[je(a.$slots,"default",{},()=>[o(P(g.value),1)],!0)],8,At),o(),Ae(v("input",{id:`${t.id}-filter-bar-input`,ref_key:"filterInput",ref:r,"onUpdate:modelValue":l[0]||(l[0]=d=>u.value=d),class:"k-filter-bar-input",type:"text",placeholder:y.value,"data-testid":"k-filter-bar-filter-input",onFocus:l[1]||(l[1]=d=>T.value=!0),onBlur:se,onChange:O},null,40,Et),[[qe,u.value]]),o(),T.value?(c(),_("div",xt,[v("div",It,[m.value!==null?(c(),_("p",Ut,P(m.value.message),1)):(c(),_("button",{key:1,class:Ce(["k-submit-query-button",{"k-submit-query-button-is-selected":S.value===-1}]),title:"Submit query",type:"button","data-testid":"k-filter-bar-submit-query-button",onClick:E},` Submit `+P(u.value),3)),o(),(c(!0),_(M,null,q(p.value,(d,V)=>(c(),_("div",{key:`${t.id}-${V}`,class:Ce(["k-suggestion-list-item",{"k-suggestion-list-item-is-selected":S.value===V}])},[v("b",null,P(d.fieldName),1),d.description!==""?(c(),_("span",Ot,": "+P(d.description),1)):K("",!0),o(),v("button",{class:"k-apply-suggestion-button",title:`Add ${d.fieldName}:`,type:"button","data-filter-field":d.fieldName,"data-testid":"k-filter-bar-apply-suggestion-button",onClick:ne},[v("span",Nt,"Add "+P(d.fieldName)+":",1),o(),C(F(te),{"aria-hidden":"true",color:"currentColor","hide-title":"",icon:"chevronRight",size:"16"})],8,Vt)],2))),128))])])):K("",!0),o(),u.value!==""?(c(),_("button",{key:1,class:"k-clear-query-button",title:"Clear query",type:"button","data-testid":"k-filter-bar-clear-query-button",onClick:Z},[$t,o(),C(F(te),{"aria-hidden":"true",color:"currentColor",icon:"clear","hide-title":"",size:"20"})])):K("",!0)],512))}});const Lt=pe(Ft,[["__scopeId","data-v-2fcde9ea"]]),Ve=e=>(de("data-v-fc544ac8"),e=e(),ce(),e),Kt={class:"entity-section-list"},Mt={class:"entity-title","data-testid":"data-plane-proxy-title"},jt={class:"mt-2 heading-with-icon"},qt={key:0},zt=Ve(()=>v("h4",null,"Insights",-1)),Rt={class:"block-list"},Bt={key:0,class:"mt-2"},Ht=Ve(()=>v("summary",null,` Responses (acknowledged / sent) `,-1)),Qt=ue({__name:"DataPlaneEntitySummary",props:{dataPlaneOverview:{type:Object,required:!0}},setup(e){const n=e,t=nt(),{t:w}=st(),r=A(()=>({name:"data-plane-detail-view",params:{mesh:n.dataPlaneOverview.mesh,dataPlane:n.dataPlaneOverview.name}})),u=A(()=>Ee(n.dataPlaneOverview.dataplane)),h=A(()=>{var g;const p=Array.from(((g=n.dataPlaneOverview.dataplaneInsight)==null?void 0:g.subscriptions)??[]);return p.reverse(),p.map(y=>{const b=y.connectTime!==void 0?De(y.connectTime):"—",k=y.disconnectTime!==void 0?De(y.disconnectTime):"—",N=Object.entries(y.status).filter(([O])=>!["total","lastUpdateTime"].includes(O)).map(([O,E])=>{const L=`${E.responsesAcknowledged??0} / ${E.responsesSent??0}`;return{type:O.toUpperCase(),ratio:L,responsesSent:E.responsesSent??0,responsesAcknowledged:E.responsesAcknowledged??0,responsesRejected:E.responsesRejected??0}});return{subscription:y,formattedConnectDate:b,formattedDisconnectDate:k,statuses:N}})}),m=A(()=>{const{status:p}=xe(n.dataPlaneOverview.dataplane,n.dataPlaneOverview.dataplaneInsight);return p}),T=A(()=>{const p=lt(n.dataPlaneOverview.dataplaneInsight);return p!==null?Object.entries(p).map(([g,y])=>({name:g,version:y})):[]}),S=A(()=>{var E;const p=((E=n.dataPlaneOverview.dataplaneInsight)==null?void 0:E.subscriptions)??[];if(p.length===0)return[];const g=p[p.length-1];if(!g.version)return[];const y=[],b=g.version.envoy,k=g.version.kumaDp;if(!(b.kumaDpCompatible!==void 0?b.kumaDpCompatible:!0)){const L=`Envoy ${b.version} is not supported by Kuma DP ${k.version}.`;y.push(L)}if(!(k.kumaCpCompatible!==void 0?k.kumaCpCompatible:!0)){const L=`Kuma DP ${k.version} is not supported by this Kuma control plane.`;y.push(L)}return y});async function U(p){const{mesh:g,name:y}=n.dataPlaneOverview;return await t.getDataplaneFromMesh({mesh:g,name:y},p)}return(p,g)=>{const y=Be("router-link");return c(),j(F(Je),null,{body:D(()=>[v("div",Kt,[v("section",null,[v("h3",Mt,[v("span",null,[o(` diff --git a/app/kuma-ui/pkg/resources/data/assets/DataPlaneListView-ce983b60.js b/app/kuma-ui/pkg/resources/data/assets/DataPlaneListView-cac088f6.js similarity index 71% rename from app/kuma-ui/pkg/resources/data/assets/DataPlaneListView-ce983b60.js rename to app/kuma-ui/pkg/resources/data/assets/DataPlaneListView-cac088f6.js index 0bc4176107eb..86d2745548f2 100644 --- a/app/kuma-ui/pkg/resources/data/assets/DataPlaneListView-ce983b60.js +++ b/app/kuma-ui/pkg/resources/data/assets/DataPlaneListView-cac088f6.js @@ -1 +1 @@ -import{d as P,u as V,q as r,c as A,s as I,P as S,o as b,a as k,w,h as c,b as G,g as N}from"./index-50754121.js";import{D as q}from"./DataPlaneList-5bcc6a6f.js";import{j as O,k as B,g as R,_ as $}from"./RouteView.vue_vue_type_script_setup_true_lang-bc0afbf3.js";import{_ as z}from"./RouteTitle.vue_vue_type_script_setup_true_lang-c74dc965.js";import{Q as f}from"./QueryParameter-70743f73.js";import"./kongponents.es-07c2d778.js";import"./ContentWrapper-6a8b0059.js";import"./DataOverview-5b210bb7.js";import"./EmptyBlock.vue_vue_type_script_setup_true_lang-34eb656c.js";import"./ErrorBlock-eb438aeb.js";import"./LoadingBlock.vue_vue_type_script_setup_true_lang-95ccda4d.js";import"./TagList-a0e27239.js";import"./StatusBadge-9e322ea6.js";import"./DefinitionListItem-b371d6a2.js";import"./ResourceCodeBlock.vue_vue_type_script_setup_true_lang-d4356ea6.js";import"./CodeBlock.vue_vue_type_style_index_0_lang-559b3ab4.js";import"./TextWithCopyButton-d85f5945.js";import"./StatusInfo.vue_vue_type_script_setup_true_lang-eefb4f85.js";import"./toYaml-4e00099e.js";const oe=P({__name:"DataPlaneListView",props:{selectedDppName:{type:String,required:!1,default:null},gatewayType:{type:String,required:!1,default:"true"},offset:{type:Number,required:!1,default:0},isGatewayView:{type:Boolean,required:!1,default:!1}},setup(g){const a=g,v=O(),{t:_}=B(),D={name:{description:"filter by name or parts of a name"},service:{description:"filter by “kuma.io/service” value"},tag:{description:"filter by tags (e.g. “tag: version:2”)"},zone:{description:"filter by “kuma.io/zone” value"}},E={protocol:{description:"filter by “kuma.io/protocol” value"}},F={},i=V(),o=r([]),n=r(!0),d=r(null),p=r(null),y=r(a.offset),L=A(()=>({...D,...a.isGatewayView?F:E}));I(()=>i.params.mesh,function(){i.name!=="data-planes-list-view"&&i.name!=="gateways-list-view"||u(0)});function T(){const t=f.get("filterFields"),s=t!==null?JSON.parse(t):{};u(a.offset,{...s,gateway:a.gatewayType})}T();async function u(t,s={}){y.value=t,f.set("offset",t>0?t:null),f.set("gatewayType",s.gateway==="true"?"all":s.gateway),n.value=!0;const m=i.params.mesh,l=h(s,S,t,a.isGatewayView);try{const{items:e,next:x}=await v.getAllDataplaneOverviewsFromMesh({mesh:m},l);p.value=x,o.value=e??[]}catch(e){e instanceof Error?d.value=e:console.error(e),o.value=[],p.value=null}finally{n.value=!1}}function h(t,s,m,l){const e={...t,size:s,offset:m};return l&&(!("gateway"in e)||e.gateway==="false")?e.gateway="true":l||(e.gateway="false"),e}return(t,s)=>(b(),k($,{module:a.isGatewayView?"gateways":"data-planes"},{default:w(()=>[c(z,{title:G(_)(`${a.isGatewayView?"gateways":"data-planes"}.routes.items.title`)},null,8,["title"]),N(),c(R,null,{default:w(()=>[c(q,{"data-plane-overviews":o.value,"is-loading":n.value,error:d.value,"next-url":p.value,"page-offset":y.value,"selected-dpp-name":a.selectedDppName,"is-gateway-view":a.isGatewayView,"gateway-type":a.gatewayType,"dpp-filter-fields":L.value,onLoadData:u},null,8,["data-plane-overviews","is-loading","error","next-url","page-offset","selected-dpp-name","is-gateway-view","gateway-type","dpp-filter-fields"])]),_:1})]),_:1},8,["module"]))}});export{oe as default}; +import{d as P,u as V,q as r,c as A,s as I,P as S,o as b,a as k,w,h as c,b as G,g as N}from"./index-a4a530d1.js";import{D as q}from"./DataPlaneList-ea6c4e67.js";import{j as O,k as B,g as R,_ as $}from"./RouteView.vue_vue_type_script_setup_true_lang-8e6a23b5.js";import{_ as z}from"./RouteTitle.vue_vue_type_script_setup_true_lang-f4fc2caf.js";import{Q as f}from"./QueryParameter-70743f73.js";import"./kongponents.es-f7b55123.js";import"./ContentWrapper-1933fc04.js";import"./DataOverview-7c85e051.js";import"./EmptyBlock.vue_vue_type_script_setup_true_lang-ddebee78.js";import"./ErrorBlock-cc9ab0db.js";import"./LoadingBlock.vue_vue_type_script_setup_true_lang-2c479ce1.js";import"./TagList-76ef6044.js";import"./StatusBadge-6b87699d.js";import"./DefinitionListItem-f18ea925.js";import"./ResourceCodeBlock.vue_vue_type_script_setup_true_lang-6b64ed3d.js";import"./CodeBlock.vue_vue_type_style_index_0_lang-15a6fd20.js";import"./TextWithCopyButton-4f241d23.js";import"./StatusInfo.vue_vue_type_script_setup_true_lang-8a43cc10.js";import"./toYaml-4e00099e.js";const oe=P({__name:"DataPlaneListView",props:{selectedDppName:{type:String,required:!1,default:null},gatewayType:{type:String,required:!1,default:"true"},offset:{type:Number,required:!1,default:0},isGatewayView:{type:Boolean,required:!1,default:!1}},setup(g){const a=g,v=O(),{t:_}=B(),D={name:{description:"filter by name or parts of a name"},service:{description:"filter by “kuma.io/service” value"},tag:{description:"filter by tags (e.g. “tag: version:2”)"},zone:{description:"filter by “kuma.io/zone” value"}},E={protocol:{description:"filter by “kuma.io/protocol” value"}},F={},i=V(),o=r([]),n=r(!0),d=r(null),p=r(null),y=r(a.offset),L=A(()=>({...D,...a.isGatewayView?F:E}));I(()=>i.params.mesh,function(){i.name!=="data-planes-list-view"&&i.name!=="gateways-list-view"||u(0)});function T(){const t=f.get("filterFields"),s=t!==null?JSON.parse(t):{};u(a.offset,{...s,gateway:a.gatewayType})}T();async function u(t,s={}){y.value=t,f.set("offset",t>0?t:null),f.set("gatewayType",s.gateway==="true"?"all":s.gateway),n.value=!0;const m=i.params.mesh,l=h(s,S,t,a.isGatewayView);try{const{items:e,next:x}=await v.getAllDataplaneOverviewsFromMesh({mesh:m},l);p.value=x,o.value=e??[]}catch(e){e instanceof Error?d.value=e:console.error(e),o.value=[],p.value=null}finally{n.value=!1}}function h(t,s,m,l){const e={...t,size:s,offset:m};return l&&(!("gateway"in e)||e.gateway==="false")?e.gateway="true":l||(e.gateway="false"),e}return(t,s)=>(b(),k($,{module:a.isGatewayView?"gateways":"data-planes"},{default:w(()=>[c(z,{title:G(_)(`${a.isGatewayView?"gateways":"data-planes"}.routes.items.title`)},null,8,["title"]),N(),c(R,null,{default:w(()=>[c(q,{"data-plane-overviews":o.value,"is-loading":n.value,error:d.value,"next-url":p.value,"page-offset":y.value,"selected-dpp-name":a.selectedDppName,"is-gateway-view":a.isGatewayView,"gateway-type":a.gatewayType,"dpp-filter-fields":L.value,onLoadData:u},null,8,["data-plane-overviews","is-loading","error","next-url","page-offset","selected-dpp-name","is-gateway-view","gateway-type","dpp-filter-fields"])]),_:1})]),_:1},8,["module"]))}});export{oe as default}; diff --git a/app/kuma-ui/pkg/resources/data/assets/DataplaneKubernetes-aa737671.js b/app/kuma-ui/pkg/resources/data/assets/DataplaneKubernetes-697adf36.js similarity index 95% rename from app/kuma-ui/pkg/resources/data/assets/DataplaneKubernetes-aa737671.js rename to app/kuma-ui/pkg/resources/data/assets/DataplaneKubernetes-697adf36.js index 32457d78ad4a..324c18f0b389 100644 --- a/app/kuma-ui/pkg/resources/data/assets/DataplaneKubernetes-aa737671.js +++ b/app/kuma-ui/pkg/resources/data/assets/DataplaneKubernetes-697adf36.js @@ -1,4 +1,4 @@ -import{d as R,v as Y,q as p,c as x,s as H,N as Q,o as u,a as S,w as n,h as i,b as r,g as a,k as e,t as m,B as Z,G as c,J,e as h,j as X,F as ee,O as k,H as M,f as y,p as ae,m as se}from"./index-50754121.js";import{U as v,S as B,Z as C}from"./kongponents.es-07c2d778.js";import{_ as ne}from"./EntityScanner.vue_vue_type_script_setup_true_lang-e9ac5f5d.js";import{E as te}from"./EnvironmentSwitcher-ad9d1b4b.js";import{S as le,F as _}from"./StepSkeleton-991a8da9.js";import{f as oe}from"./formatForCLI-931cd5c6.js";import{j as ie,k as re,f as de,g as ue,_ as ce,h as pe}from"./RouteView.vue_vue_type_script_setup_true_lang-bc0afbf3.js";import{_ as me}from"./RouteTitle.vue_vue_type_script_setup_true_lang-c74dc965.js";import{_ as E}from"./CodeBlock.vue_vue_type_style_index_0_lang-559b3ab4.js";import{Q as he}from"./QueryParameter-70743f73.js";import"./toYaml-4e00099e.js";const ve={apiVersion:"v1",kind:"Namespace",metadata:{name:null,namespace:null,labels:{"kuma.io/sidecar-injection":"enabled"},annotations:{"kuma.io/mesh":null}}},l=f=>(ae("data-v-8d55aae9"),f=f(),se(),f),_e={class:"wizard"},ke={class:"wizard__content"},ye=l(()=>e("h3",null,` +import{d as R,v as Y,q as p,c as x,s as H,N as Q,o as u,a as S,w as n,h as i,b as r,g as a,k as e,t as m,B as Z,G as c,J,e as h,j as X,F as ee,O as k,H as M,f as y,p as ae,m as se}from"./index-a4a530d1.js";import{U as v,S as B,Z as C}from"./kongponents.es-f7b55123.js";import{_ as ne}from"./EntityScanner.vue_vue_type_script_setup_true_lang-a5d1cc1c.js";import{E as te}from"./EnvironmentSwitcher-f9b18d2b.js";import{S as le,F as _}from"./StepSkeleton-3ca715f8.js";import{f as oe}from"./formatForCLI-931cd5c6.js";import{j as ie,k as re,f as de,g as ue,_ as ce,h as pe}from"./RouteView.vue_vue_type_script_setup_true_lang-8e6a23b5.js";import{_ as me}from"./RouteTitle.vue_vue_type_script_setup_true_lang-f4fc2caf.js";import{_ as E}from"./CodeBlock.vue_vue_type_style_index_0_lang-15a6fd20.js";import{Q as he}from"./QueryParameter-70743f73.js";import"./toYaml-4e00099e.js";const ve={apiVersion:"v1",kind:"Namespace",metadata:{name:null,namespace:null,labels:{"kuma.io/sidecar-injection":"enabled"},annotations:{"kuma.io/mesh":null}}},l=f=>(ae("data-v-8d55aae9"),f=f(),se(),f),_e={class:"wizard"},ke={class:"wizard__content"},ye=l(()=>e("h3",null,` Create Kubernetes Dataplane `,-1)),ge=l(()=>e("h3",null,` To get started, please select on what Mesh you would like to add the Dataplane: diff --git a/app/kuma-ui/pkg/resources/data/assets/DataplaneUniversal-46f8ccd0.js b/app/kuma-ui/pkg/resources/data/assets/DataplaneUniversal-fbeb32fb.js similarity index 96% rename from app/kuma-ui/pkg/resources/data/assets/DataplaneUniversal-46f8ccd0.js rename to app/kuma-ui/pkg/resources/data/assets/DataplaneUniversal-fbeb32fb.js index bbf8ce88e744..415980baf4d9 100644 --- a/app/kuma-ui/pkg/resources/data/assets/DataplaneUniversal-46f8ccd0.js +++ b/app/kuma-ui/pkg/resources/data/assets/DataplaneUniversal-fbeb32fb.js @@ -1,4 +1,4 @@ -import{d as q,o as u,a as $,w as l,k as a,n as de,h as r,b as d,g as e,v as pe,q as _,c as D,s as G,N as U,t as v,B as ce,G as m,J as B,e as f,j as O,F as R,O as W,H as N,f as j,p as ve,m as me}from"./index-50754121.js";import{l as he,a as _e,U as fe,S as M,Z as we}from"./kongponents.es-07c2d778.js";import{_ as De}from"./EntityScanner.vue_vue_type_script_setup_true_lang-e9ac5f5d.js";import{E as ke}from"./EnvironmentSwitcher-ad9d1b4b.js";import{S as ge,F as c}from"./StepSkeleton-991a8da9.js";import{h as H,j as ye,k as Se,f as Ne,g as be,_ as Pe}from"./RouteView.vue_vue_type_script_setup_true_lang-bc0afbf3.js";import{_ as Ie}from"./RouteTitle.vue_vue_type_script_setup_true_lang-c74dc965.js";import{_ as C}from"./CodeBlock.vue_vue_type_style_index_0_lang-559b3ab4.js";import{Q as xe}from"./QueryParameter-70743f73.js";import{t as Te}from"./toYaml-4e00099e.js";const Ae={type:"Dataplane",mesh:null,name:null,networking:{}},Ue=q({__name:"HelperTooltip",props:{placement:{type:String,required:!1,default:void 0}},setup(h){const b=h;return(P,E)=>(u(),$(d(_e),{class:"help-icon",trigger:"click",width:"100%","max-width":"300",placement:b.placement},{content:l(()=>[a("div",null,[de(P.$slots,"default",{},void 0,!0)])]),default:l(()=>[r(d(he),{icon:"info",color:"var(--grey-500)",size:"16","hide-title":""}),e()]),_:3},8,["placement"]))}});const w=H(Ue,[["__scopeId","data-v-8cf92c6f"]]);function Me(){return"https://localhost:5678/".replace("localhost",window.location.hostname)}const i=h=>(ve("data-v-9f023d47"),h=h(),me(),h),Ce={class:"wizard"},$e={class:"wizard__content"},Ee=i(()=>a("h3",null,` +import{d as q,o as u,a as $,w as l,k as a,n as de,h as r,b as d,g as e,v as pe,q as _,c as D,s as G,N as U,t as v,B as ce,G as m,J as B,e as f,j as O,F as R,O as W,H as N,f as j,p as ve,m as me}from"./index-a4a530d1.js";import{l as he,a as _e,U as fe,S as M,Z as we}from"./kongponents.es-f7b55123.js";import{_ as De}from"./EntityScanner.vue_vue_type_script_setup_true_lang-a5d1cc1c.js";import{E as ke}from"./EnvironmentSwitcher-f9b18d2b.js";import{S as ge,F as c}from"./StepSkeleton-3ca715f8.js";import{h as H,j as ye,k as Se,f as Ne,g as be,_ as Pe}from"./RouteView.vue_vue_type_script_setup_true_lang-8e6a23b5.js";import{_ as Ie}from"./RouteTitle.vue_vue_type_script_setup_true_lang-f4fc2caf.js";import{_ as C}from"./CodeBlock.vue_vue_type_style_index_0_lang-15a6fd20.js";import{Q as xe}from"./QueryParameter-70743f73.js";import{t as Te}from"./toYaml-4e00099e.js";const Ae={type:"Dataplane",mesh:null,name:null,networking:{}},Ue=q({__name:"HelperTooltip",props:{placement:{type:String,required:!1,default:void 0}},setup(h){const b=h;return(P,E)=>(u(),$(d(_e),{class:"help-icon",trigger:"click",width:"100%","max-width":"300",placement:b.placement},{content:l(()=>[a("div",null,[de(P.$slots,"default",{},void 0,!0)])]),default:l(()=>[r(d(he),{icon:"info",color:"var(--grey-500)",size:"16","hide-title":""}),e()]),_:3},8,["placement"]))}});const w=H(Ue,[["__scopeId","data-v-8cf92c6f"]]);function Me(){return"https://localhost:5678/".replace("localhost",window.location.hostname)}const i=h=>(ve("data-v-9f023d47"),h=h(),me(),h),Ce={class:"wizard"},$e={class:"wizard__content"},Ee=i(()=>a("h3",null,` Create Universal Dataplane `,-1)),Ve=i(()=>a("h3",null,` To get started, please select on what Mesh you would like to add the Dataplane: diff --git a/app/kuma-ui/pkg/resources/data/assets/DataplanesOverview-97eec9f8.js b/app/kuma-ui/pkg/resources/data/assets/DataplanesOverview-ce745e92.js similarity index 81% rename from app/kuma-ui/pkg/resources/data/assets/DataplanesOverview-97eec9f8.js rename to app/kuma-ui/pkg/resources/data/assets/DataplanesOverview-ce745e92.js index b1bafa4bfa2f..6fab53d4816f 100644 --- a/app/kuma-ui/pkg/resources/data/assets/DataplanesOverview-97eec9f8.js +++ b/app/kuma-ui/pkg/resources/data/assets/DataplanesOverview-ce745e92.js @@ -1,3 +1,3 @@ -import{r as A}from"./kongponents.es-07c2d778.js";import{L as S}from"./LoadingBox-b09612df.js";import{O as T,a as F,b as I}from"./OnboardingPage-392f5a8e.js";import{j as N,k as E,y as L,g as $,_ as C,h as H}from"./RouteView.vue_vue_type_script_setup_true_lang-bc0afbf3.js";import{_ as M}from"./RouteTitle.vue_vue_type_script_setup_true_lang-c74dc965.js";import{S as R}from"./StatusBadge-9e322ea6.js";import{d as V,q as b,c as w,D as j,o as n,a as y,w as a,h as s,b as k,g as u,l as q,k as o,t as c,e as d,F as z}from"./index-50754121.js";const K={key:0,class:"status-loading-box mb-4"},U={key:1},W={class:"mb-4"},G=V({__name:"DataplanesOverview",setup(J){const m=N(),{t:D}=E(),x=[{label:"Mesh",key:"mesh"},{label:"Name",key:"name"},{label:"Status",key:"status"}],e=b({total:0,data:[]}),l=b(null),B=w(()=>e.value.data.length>0?"Success":"Waiting for DPPs"),p=w(()=>e.value.data.length>0?"The following data plane proxies (DPPs) are connected to the control plane:":null);j(function(){_()}),f();function _(){l.value!==null&&window.clearTimeout(l.value)}async function f(){let i=!1;const r=[];try{const{items:t}=await m.getAllDataplanes({size:10});if(Array.isArray(t))for(const O of t){const{name:v,mesh:g}=O,P=await m.getDataplaneOverviewFromMesh({mesh:g,name:v}),h=L(P.dataplaneInsight);h==="offline"&&(i=!0),r.push({status:h,name:v,mesh:g})}}catch(t){console.error(t)}e.value.data=r,e.value.total=e.value.data.length,i&&(_(),l.value=window.setTimeout(f,1e3))}return(i,r)=>(n(),y(C,null,{default:a(()=>[s(M,{title:k(D)("onboarding.routes.dataplanes-overview.title")},null,8,["title"]),u(),s($,null,{default:a(()=>[s(T,null,{header:a(()=>[s(F,null,q({title:a(()=>[o("p",null,c(B.value),1)]),_:2},[p.value!==null?{name:"description",fn:a(()=>[o("p",null,c(p.value),1)]),key:"0"}:void 0]),1024)]),content:a(()=>[e.value.data.length===0?(n(),d("div",K,[s(S)])):(n(),d("div",U,[o("p",W,[o("b",null,"Found "+c(e.value.data.length)+" DPPs:",1)]),u(),s(k(A),{class:"mb-4",fetcher:()=>e.value,headers:x,"disable-pagination":""},{status:a(({rowValue:t})=>[t?(n(),y(R,{key:0,status:t},null,8,["status"])):(n(),d(z,{key:1},[u(` +import{r as A}from"./kongponents.es-f7b55123.js";import{L as S}from"./LoadingBox-d716f607.js";import{O as T,a as F,b as I}from"./OnboardingPage-fd4cb9d4.js";import{j as N,k as E,y as L,g as $,_ as C,h as H}from"./RouteView.vue_vue_type_script_setup_true_lang-8e6a23b5.js";import{_ as M}from"./RouteTitle.vue_vue_type_script_setup_true_lang-f4fc2caf.js";import{S as R}from"./StatusBadge-6b87699d.js";import{d as V,q as b,c as w,D as j,o as n,a as y,w as a,h as s,b as k,g as u,l as q,k as o,t as c,e as d,F as z}from"./index-a4a530d1.js";const K={key:0,class:"status-loading-box mb-4"},U={key:1},W={class:"mb-4"},G=V({__name:"DataplanesOverview",setup(J){const m=N(),{t:D}=E(),x=[{label:"Mesh",key:"mesh"},{label:"Name",key:"name"},{label:"Status",key:"status"}],e=b({total:0,data:[]}),l=b(null),B=w(()=>e.value.data.length>0?"Success":"Waiting for DPPs"),p=w(()=>e.value.data.length>0?"The following data plane proxies (DPPs) are connected to the control plane:":null);j(function(){_()}),f();function _(){l.value!==null&&window.clearTimeout(l.value)}async function f(){let i=!1;const r=[];try{const{items:t}=await m.getAllDataplanes({size:10});if(Array.isArray(t))for(const O of t){const{name:v,mesh:g}=O,P=await m.getDataplaneOverviewFromMesh({mesh:g,name:v}),h=L(P.dataplaneInsight);h==="offline"&&(i=!0),r.push({status:h,name:v,mesh:g})}}catch(t){console.error(t)}e.value.data=r,e.value.total=e.value.data.length,i&&(_(),l.value=window.setTimeout(f,1e3))}return(i,r)=>(n(),y(C,null,{default:a(()=>[s(M,{title:k(D)("onboarding.routes.dataplanes-overview.title")},null,8,["title"]),u(),s($,null,{default:a(()=>[s(T,null,{header:a(()=>[s(F,null,q({title:a(()=>[o("p",null,c(B.value),1)]),_:2},[p.value!==null?{name:"description",fn:a(()=>[o("p",null,c(p.value),1)]),key:"0"}:void 0]),1024)]),content:a(()=>[e.value.data.length===0?(n(),d("div",K,[s(S)])):(n(),d("div",U,[o("p",W,[o("b",null,"Found "+c(e.value.data.length)+" DPPs:",1)]),u(),s(k(A),{class:"mb-4",fetcher:()=>e.value,headers:x,"disable-pagination":""},{status:a(({rowValue:t})=>[t?(n(),y(R,{key:0,status:t},null,8,["status"])):(n(),d(z,{key:1},[u(` — `)],64))]),_:1},8,["fetcher"])]))]),navigation:a(()=>[s(I,{"next-step":"onboarding-completed","previous-step":"onboarding-add-services-code","should-allow-next":e.value.data.length>0},null,8,["should-allow-next"])]),_:1})]),_:1})]),_:1}))}});const se=H(G,[["__scopeId","data-v-4588fbe4"]]);export{se as default}; diff --git a/app/kuma-ui/pkg/resources/data/assets/DefinitionListItem-b371d6a2.js b/app/kuma-ui/pkg/resources/data/assets/DefinitionListItem-f18ea925.js similarity index 82% rename from app/kuma-ui/pkg/resources/data/assets/DefinitionListItem-b371d6a2.js rename to app/kuma-ui/pkg/resources/data/assets/DefinitionListItem-f18ea925.js index 511f21b5fda2..0bffe8a5d09c 100644 --- a/app/kuma-ui/pkg/resources/data/assets/DefinitionListItem-b371d6a2.js +++ b/app/kuma-ui/pkg/resources/data/assets/DefinitionListItem-f18ea925.js @@ -1 +1 @@ -import{h as i}from"./RouteView.vue_vue_type_script_setup_true_lang-bc0afbf3.js";import{o as n,e as o,n as _,d,k as s,t as a,g as r}from"./index-50754121.js";const l={},f={class:"definition-list"};function p(e,t){return n(),o("dl",f,[_(e.$slots,"default",{},void 0,!0)])}const x=i(l,[["render",p],["__scopeId","data-v-48665ce3"]]),m={class:"definition-list-item"},u={class:"definition-list-item__term"},v={class:"definition-list-item__details"},h=d({__name:"DefinitionListItem",props:{term:{type:String,required:!0}},setup(e){const t=e;return(c,D)=>(n(),o("div",m,[s("dt",u,a(t.term),1),r(),s("dd",v,[_(c.$slots,"default",{},void 0,!0)])]))}});const I=i(h,[["__scopeId","data-v-74f2c619"]]);export{x as D,I as a}; +import{h as i}from"./RouteView.vue_vue_type_script_setup_true_lang-8e6a23b5.js";import{o as n,e as o,n as _,d,k as s,t as a,g as r}from"./index-a4a530d1.js";const l={},f={class:"definition-list"};function p(e,t){return n(),o("dl",f,[_(e.$slots,"default",{},void 0,!0)])}const x=i(l,[["render",p],["__scopeId","data-v-48665ce3"]]),m={class:"definition-list-item"},u={class:"definition-list-item__term"},v={class:"definition-list-item__details"},h=d({__name:"DefinitionListItem",props:{term:{type:String,required:!0}},setup(e){const t=e;return(c,D)=>(n(),o("div",m,[s("dt",u,a(t.term),1),r(),s("dd",v,[_(c.$slots,"default",{},void 0,!0)])]))}});const I=i(h,[["__scopeId","data-v-74f2c619"]]);export{x as D,I as a}; diff --git a/app/kuma-ui/pkg/resources/data/assets/DeploymentTypes-ca80a523.js b/app/kuma-ui/pkg/resources/data/assets/DeploymentTypes-a50f731e.js similarity index 83% rename from app/kuma-ui/pkg/resources/data/assets/DeploymentTypes-ca80a523.js rename to app/kuma-ui/pkg/resources/data/assets/DeploymentTypes-a50f731e.js index ba1a4afce07a..906f479e5f69 100644 --- a/app/kuma-ui/pkg/resources/data/assets/DeploymentTypes-ca80a523.js +++ b/app/kuma-ui/pkg/resources/data/assets/DeploymentTypes-a50f731e.js @@ -1,4 +1,4 @@ -import{s as i}from"./kongponents.es-07c2d778.js";import{O as f,a as b,b as v}from"./OnboardingPage-392f5a8e.js";import{s as y,t as h,f as V,k as z,g as x,_ as M,h as S}from"./RouteView.vue_vue_type_script_setup_true_lang-bc0afbf3.js";import{_ as D}from"./RouteTitle.vue_vue_type_script_setup_true_lang-c74dc965.js";import{d as G,q as C,c as N,y as O,o as u,a as r,w as e,h as a,b as s,g as n,k as d,t as T,B as k,i as w}from"./index-50754121.js";const B={class:"graph-list mb-6"},P={class:"radio-button-group"},U=G({__name:"DeploymentTypes",setup($){const p=y(),m={standalone:h(),"multi-zone":p},c=V(),{t:_}=z(),t=C("standalone"),g=N(()=>m[t.value]);return O(function(){t.value=c.getters["config/getMulticlusterStatus"]?"multi-zone":"standalone"}),(q,o)=>(u(),r(M,null,{default:e(()=>[a(D,{title:s(_)("onboarding.routes.deployment-types.title")},null,8,["title"]),n(),a(x,null,{default:e(()=>[a(f,{"with-image":""},{header:e(()=>[a(b,null,{title:e(()=>[n(` +import{s as i}from"./kongponents.es-f7b55123.js";import{O as f,a as b,b as v}from"./OnboardingPage-fd4cb9d4.js";import{s as y,t as h,f as V,k as z,g as x,_ as M,h as S}from"./RouteView.vue_vue_type_script_setup_true_lang-8e6a23b5.js";import{_ as D}from"./RouteTitle.vue_vue_type_script_setup_true_lang-f4fc2caf.js";import{d as G,q as C,c as N,y as O,o as u,a as r,w as e,h as a,b as s,g as n,k as d,t as T,B as k,i as w}from"./index-a4a530d1.js";const B={class:"graph-list mb-6"},P={class:"radio-button-group"},U=G({__name:"DeploymentTypes",setup($){const p=y(),m={standalone:h(),"multi-zone":p},c=V(),{t:_}=z(),t=C("standalone"),g=N(()=>m[t.value]);return O(function(){t.value=c.getters["config/getMulticlusterStatus"]?"multi-zone":"standalone"}),(q,o)=>(u(),r(M,null,{default:e(()=>[a(D,{title:s(_)("onboarding.routes.deployment-types.title")},null,8,["title"]),n(),a(x,null,{default:e(()=>[a(f,{"with-image":""},{header:e(()=>[a(b,null,{title:e(()=>[n(` Learn about deployments `)]),description:e(()=>[d("p",null,T(s(k))+" can be deployed in standalone or multi-zone mode.",1)]),_:1})]),content:e(()=>[d("div",B,[(u(),r(w(g.value)))]),n(),d("div",P,[a(s(i),{modelValue:t.value,"onUpdate:modelValue":o[0]||(o[0]=l=>t.value=l),name:"mode","selected-value":"standalone","data-testid":"onboarding-standalone-radio-button"},{default:e(()=>[n(` Standalone deployment diff --git a/app/kuma-ui/pkg/resources/data/assets/DiagnosticsView-162a28a6.js b/app/kuma-ui/pkg/resources/data/assets/DiagnosticsView-b352af36.js similarity index 60% rename from app/kuma-ui/pkg/resources/data/assets/DiagnosticsView-162a28a6.js rename to app/kuma-ui/pkg/resources/data/assets/DiagnosticsView-b352af36.js index 138f877ac82d..3583df98c450 100644 --- a/app/kuma-ui/pkg/resources/data/assets/DiagnosticsView-162a28a6.js +++ b/app/kuma-ui/pkg/resources/data/assets/DiagnosticsView-b352af36.js @@ -1 +1 @@ -import{U as l}from"./kongponents.es-07c2d778.js";import{f as u,k as m,g as _,_ as f}from"./RouteView.vue_vue_type_script_setup_true_lang-bc0afbf3.js";import{_ as d}from"./RouteTitle.vue_vue_type_script_setup_true_lang-c74dc965.js";import{_ as g}from"./CodeBlock.vue_vue_type_style_index_0_lang-559b3ab4.js";import{_ as p}from"./LoadingBlock.vue_vue_type_script_setup_true_lang-95ccda4d.js";import{d as b,c as k,o as s,a as t,w as o,h as a,b as n,g as y}from"./index-50754121.js";const B=b({__name:"DiagnosticsView",setup(x){const c=u(),{t:i}=m(),r=k(()=>{const e=c.getters["config/getConfig"];return e?JSON.stringify(e,null,2):null});return(e,$)=>(s(),t(f,null,{default:o(()=>[a(d,{title:n(i)("diagnostics.routes.item.title")},null,8,["title"]),y(),a(_,{breadcrumbs:[{to:{name:"diagnostics"},text:n(i)("diagnostics.routes.item.breadcrumbs")}]},{default:o(()=>[a(n(l),null,{body:o(()=>[r.value===null?(s(),t(p,{key:0})):(s(),t(g,{key:1,id:"code-block-diagnostics",language:"json",code:r.value,"is-searchable":"","query-key":"diagnostics"},null,8,["code"]))]),_:1})]),_:1},8,["breadcrumbs"])]),_:1}))}});export{B as default}; +import{U as l}from"./kongponents.es-f7b55123.js";import{f as u,k as m,g as _,_ as f}from"./RouteView.vue_vue_type_script_setup_true_lang-8e6a23b5.js";import{_ as d}from"./RouteTitle.vue_vue_type_script_setup_true_lang-f4fc2caf.js";import{_ as g}from"./CodeBlock.vue_vue_type_style_index_0_lang-15a6fd20.js";import{_ as p}from"./LoadingBlock.vue_vue_type_script_setup_true_lang-2c479ce1.js";import{d as b,c as k,o as s,a as t,w as o,h as a,b as n,g as y}from"./index-a4a530d1.js";const B=b({__name:"DiagnosticsView",setup(x){const c=u(),{t:i}=m(),r=k(()=>{const e=c.getters["config/getConfig"];return e?JSON.stringify(e,null,2):null});return(e,$)=>(s(),t(f,null,{default:o(()=>[a(d,{title:n(i)("diagnostics.routes.item.title")},null,8,["title"]),y(),a(_,{breadcrumbs:[{to:{name:"diagnostics"},text:n(i)("diagnostics.routes.item.breadcrumbs")}]},{default:o(()=>[a(n(l),null,{body:o(()=>[r.value===null?(s(),t(p,{key:0})):(s(),t(g,{key:1,id:"code-block-diagnostics",language:"json",code:r.value,"is-searchable":"","query-key":"diagnostics"},null,8,["code"]))]),_:1})]),_:1},8,["breadcrumbs"])]),_:1}))}});export{B as default}; diff --git a/app/kuma-ui/pkg/resources/data/assets/EmptyBlock.vue_vue_type_script_setup_true_lang-34eb656c.js b/app/kuma-ui/pkg/resources/data/assets/EmptyBlock.vue_vue_type_script_setup_true_lang-ddebee78.js similarity index 78% rename from app/kuma-ui/pkg/resources/data/assets/EmptyBlock.vue_vue_type_script_setup_true_lang-34eb656c.js rename to app/kuma-ui/pkg/resources/data/assets/EmptyBlock.vue_vue_type_script_setup_true_lang-ddebee78.js index f1c1584958b3..948e0c83daf3 100644 --- a/app/kuma-ui/pkg/resources/data/assets/EmptyBlock.vue_vue_type_script_setup_true_lang-34eb656c.js +++ b/app/kuma-ui/pkg/resources/data/assets/EmptyBlock.vue_vue_type_script_setup_true_lang-ddebee78.js @@ -1 +1 @@ -import{l as t,b as r}from"./kongponents.es-07c2d778.js";import{d as l,o as n,a as c,l as i,w as a,n as s,h as d,b as o,g as m,k as p}from"./index-50754121.js";const _=p("p",null,"There is no data to display.",-1),g=l({__name:"EmptyBlock",setup(f){return(e,h)=>(n(),c(o(r),{"cta-is-hidden":""},i({title:a(()=>[s(e.$slots,"title",{},()=>[d(o(t),{class:"mb-3",icon:"warning",color:"var(--black-500)","secondary-color":"var(--yellow-300)",size:"42"}),m(),s(e.$slots,"default",{},()=>[_])])]),_:2},[e.$slots.message?{name:"message",fn:a(()=>[s(e.$slots,"message")]),key:"0"}:void 0]),1024))}});export{g as _}; +import{l as t,b as r}from"./kongponents.es-f7b55123.js";import{d as l,o as n,a as c,l as i,w as a,n as s,h as d,b as o,g as m,k as p}from"./index-a4a530d1.js";const _=p("p",null,"There is no data to display.",-1),g=l({__name:"EmptyBlock",setup(f){return(e,h)=>(n(),c(o(r),{"cta-is-hidden":""},i({title:a(()=>[s(e.$slots,"title",{},()=>[d(o(t),{class:"mb-3",icon:"warning",color:"var(--black-500)","secondary-color":"var(--yellow-300)",size:"42"}),m(),s(e.$slots,"default",{},()=>[_])])]),_:2},[e.$slots.message?{name:"message",fn:a(()=>[s(e.$slots,"message")]),key:"0"}:void 0]),1024))}});export{g as _}; diff --git a/app/kuma-ui/pkg/resources/data/assets/EntityScanner.vue_vue_type_script_setup_true_lang-e9ac5f5d.js b/app/kuma-ui/pkg/resources/data/assets/EntityScanner.vue_vue_type_script_setup_true_lang-a5d1cc1c.js similarity index 91% rename from app/kuma-ui/pkg/resources/data/assets/EntityScanner.vue_vue_type_script_setup_true_lang-e9ac5f5d.js rename to app/kuma-ui/pkg/resources/data/assets/EntityScanner.vue_vue_type_script_setup_true_lang-a5d1cc1c.js index bdd64d5324da..8123398626fb 100644 --- a/app/kuma-ui/pkg/resources/data/assets/EntityScanner.vue_vue_type_script_setup_true_lang-e9ac5f5d.js +++ b/app/kuma-ui/pkg/resources/data/assets/EntityScanner.vue_vue_type_script_setup_true_lang-a5d1cc1c.js @@ -1 +1 @@ -import{l as u,b as k}from"./kongponents.es-07c2d778.js";import{d as g,q as s,y as b,D as w,o,e as B,k as m,h as C,w as y,a as d,b as l,g as E,n}from"./index-50754121.js";const $={class:"scanner"},N={class:"scanner-content"},q={class:"mb-2"},z=g({__name:"EntityScanner",props:{interval:{type:Number,required:!1,default:1e3},retries:{type:Number,required:!1,default:3600},hasError:{type:Boolean,default:!1},loaderFunction:{type:Function,required:!0},canComplete:{type:Boolean,default:!1}},emits:["hide-siblings"],setup(a,{emit:p}){const r=a,f=s(0),t=s(!1),v=s(!1),i=s(null);b(function(){h()}),w(function(){c()});function h(){t.value=!0,v.value=!1,c(),i.value=window.setInterval(async()=>{f.value++,await r.loaderFunction(),(f.value===r.retries||r.canComplete===!0)&&(c(),t.value=!1,v.value=!0,p("hide-siblings",!0))},r.interval)}function c(){i.value!==null&&window.clearInterval(i.value)}return(e,F)=>(o(),B("div",$,[m("div",N,[C(l(k),{"cta-is-hidden":""},{title:y(()=>[m("div",q,[t.value?(o(),d(l(u),{key:0,icon:"spinner",color:"var(--grey-300)",size:"42"})):a.hasError?(o(),d(l(u),{key:1,icon:"errorFilled",color:"var(--red-500)",size:"42"})):(o(),d(l(u),{key:2,icon:"circleCheck",color:"var(--green-500)",size:"42"}))]),E(),t.value?n(e.$slots,"loading-title",{key:0}):a.hasError?n(e.$slots,"error-title",{key:1}):n(e.$slots,"complete-title",{key:2})]),message:y(()=>[t.value?n(e.$slots,"loading-content",{key:0}):a.hasError?n(e.$slots,"error-content",{key:1}):n(e.$slots,"complete-content",{key:2})]),_:3})])]))}});export{z as _}; +import{l as u,b as k}from"./kongponents.es-f7b55123.js";import{d as g,q as s,y as b,D as w,o,e as B,k as m,h as C,w as y,a as d,b as l,g as E,n}from"./index-a4a530d1.js";const $={class:"scanner"},N={class:"scanner-content"},q={class:"mb-2"},z=g({__name:"EntityScanner",props:{interval:{type:Number,required:!1,default:1e3},retries:{type:Number,required:!1,default:3600},hasError:{type:Boolean,default:!1},loaderFunction:{type:Function,required:!0},canComplete:{type:Boolean,default:!1}},emits:["hide-siblings"],setup(a,{emit:p}){const r=a,f=s(0),t=s(!1),v=s(!1),i=s(null);b(function(){h()}),w(function(){c()});function h(){t.value=!0,v.value=!1,c(),i.value=window.setInterval(async()=>{f.value++,await r.loaderFunction(),(f.value===r.retries||r.canComplete===!0)&&(c(),t.value=!1,v.value=!0,p("hide-siblings",!0))},r.interval)}function c(){i.value!==null&&window.clearInterval(i.value)}return(e,F)=>(o(),B("div",$,[m("div",N,[C(l(k),{"cta-is-hidden":""},{title:y(()=>[m("div",q,[t.value?(o(),d(l(u),{key:0,icon:"spinner",color:"var(--grey-300)",size:"42"})):a.hasError?(o(),d(l(u),{key:1,icon:"errorFilled",color:"var(--red-500)",size:"42"})):(o(),d(l(u),{key:2,icon:"circleCheck",color:"var(--green-500)",size:"42"}))]),E(),t.value?n(e.$slots,"loading-title",{key:0}):a.hasError?n(e.$slots,"error-title",{key:1}):n(e.$slots,"complete-title",{key:2})]),message:y(()=>[t.value?n(e.$slots,"loading-content",{key:0}):a.hasError?n(e.$slots,"error-content",{key:1}):n(e.$slots,"complete-content",{key:2})]),_:3})])]))}});export{z as _}; diff --git a/app/kuma-ui/pkg/resources/data/assets/EnvironmentSwitcher-ad9d1b4b.js b/app/kuma-ui/pkg/resources/data/assets/EnvironmentSwitcher-f9b18d2b.js similarity index 93% rename from app/kuma-ui/pkg/resources/data/assets/EnvironmentSwitcher-ad9d1b4b.js rename to app/kuma-ui/pkg/resources/data/assets/EnvironmentSwitcher-f9b18d2b.js index 67d640e2a3be..797f44d89eed 100644 --- a/app/kuma-ui/pkg/resources/data/assets/EnvironmentSwitcher-ad9d1b4b.js +++ b/app/kuma-ui/pkg/resources/data/assets/EnvironmentSwitcher-f9b18d2b.js @@ -1,4 +1,4 @@ -import{S as _,U as p}from"./kongponents.es-07c2d778.js";import{d as m,u as b,c as y,o,e as a,h as c,l as f,w as i,g as e,k as n,t as g,b as t,f as v,p as k,m as w}from"./index-50754121.js";import{f as S,h as x}from"./RouteView.vue_vue_type_script_setup_true_lang-bc0afbf3.js";const u=d=>(k("data-v-f74b1174"),d=d(),w(),d),U={class:"wizard-switcher"},K={class:"capitalize"},E={key:0},z={key:0},I=u(()=>n("p",null,[e(` +import{S as _,U as p}from"./kongponents.es-f7b55123.js";import{d as m,u as b,c as y,o,e as a,h as c,l as f,w as i,g as e,k as n,t as g,b as t,f as v,p as k,m as w}from"./index-a4a530d1.js";import{f as S,h as x}from"./RouteView.vue_vue_type_script_setup_true_lang-8e6a23b5.js";const u=d=>(k("data-v-f74b1174"),d=d(),w(),d),U={class:"wizard-switcher"},K={class:"capitalize"},E={key:0},z={key:0},I=u(()=>n("p",null,[e(` We have detected that you are running on a `),n("strong",null,"Kubernetes environment"),e(`, and we are going to be showing you instructions for Kubernetes unless you decide to visualize the instructions for Universal. diff --git a/app/kuma-ui/pkg/resources/data/assets/EnvoyData-9e7e9f1e.js b/app/kuma-ui/pkg/resources/data/assets/EnvoyData-caab84d6.js similarity index 83% rename from app/kuma-ui/pkg/resources/data/assets/EnvoyData-9e7e9f1e.js rename to app/kuma-ui/pkg/resources/data/assets/EnvoyData-caab84d6.js index f8c9f8966236..68f4708d4c21 100644 --- a/app/kuma-ui/pkg/resources/data/assets/EnvoyData-9e7e9f1e.js +++ b/app/kuma-ui/pkg/resources/data/assets/EnvoyData-caab84d6.js @@ -1,3 +1,3 @@ -import{S as p}from"./kongponents.es-07c2d778.js";import{_ as m}from"./CodeBlock.vue_vue_type_style_index_0_lang-559b3ab4.js";import{_ as g}from"./StatusInfo.vue_vue_type_script_setup_true_lang-eefb4f85.js";import{j as _,h as y}from"./RouteView.vue_vue_type_script_setup_true_lang-bc0afbf3.js";import{d as h,q as o,s as d,y as v,o as N,e as E,k as q,h as i,w as c,g as u,b as z}from"./index-50754121.js";const k={class:"envoy-data-actions"},P=h({__name:"EnvoyData",props:{dataPath:{type:String,required:!0},queryKey:{type:String,required:!1,default:null},mesh:{type:String,required:!1,default:""},dppName:{type:String,required:!1,default:""},zoneIngressName:{type:String,required:!1,default:""},zoneEgressName:{type:String,required:!1,default:""}},setup(f){const e=f,n=_(),s=o(!0),r=o(null),l=o("");d(()=>e.dppName,function(){t()}),d(()=>e.zoneIngressName,function(){t()}),d(()=>e.zoneEgressName,function(){t()}),v(function(){t()});async function t(){r.value=null,s.value=!0;try{let a="";e.mesh!==""&&e.dppName!==""?a=await n.getDataplaneData({dataPath:e.dataPath,mesh:e.mesh,dppName:e.dppName}):e.zoneIngressName!==""?a=await n.getZoneIngressData({dataPath:e.dataPath,zoneIngressName:e.zoneIngressName}):e.zoneEgressName!==""&&(a=await n.getZoneEgressData({dataPath:e.dataPath,zoneEgressName:e.zoneEgressName})),l.value=typeof a=="string"?a:JSON.stringify(a,null,2)}catch(a){a instanceof Error?r.value=a:console.error(a)}finally{s.value=!1}}return(a,S)=>(N(),E("div",null,[q("div",k,[i(z(p),{disabled:s.value,appearance:"primary",icon:"redo","data-testid":"envoy-data-refresh-button",onClick:t},{default:c(()=>[u(` +import{S as p}from"./kongponents.es-f7b55123.js";import{_ as m}from"./CodeBlock.vue_vue_type_style_index_0_lang-15a6fd20.js";import{_ as g}from"./StatusInfo.vue_vue_type_script_setup_true_lang-8a43cc10.js";import{j as _,h as y}from"./RouteView.vue_vue_type_script_setup_true_lang-8e6a23b5.js";import{d as h,q as o,s as d,y as v,o as N,e as E,k as q,h as i,w as c,g as u,b as z}from"./index-a4a530d1.js";const k={class:"envoy-data-actions"},P=h({__name:"EnvoyData",props:{dataPath:{type:String,required:!0},queryKey:{type:String,required:!1,default:null},mesh:{type:String,required:!1,default:""},dppName:{type:String,required:!1,default:""},zoneIngressName:{type:String,required:!1,default:""},zoneEgressName:{type:String,required:!1,default:""}},setup(f){const e=f,n=_(),s=o(!0),r=o(null),l=o("");d(()=>e.dppName,function(){t()}),d(()=>e.zoneIngressName,function(){t()}),d(()=>e.zoneEgressName,function(){t()}),v(function(){t()});async function t(){r.value=null,s.value=!0;try{let a="";e.mesh!==""&&e.dppName!==""?a=await n.getDataplaneData({dataPath:e.dataPath,mesh:e.mesh,dppName:e.dppName}):e.zoneIngressName!==""?a=await n.getZoneIngressData({dataPath:e.dataPath,zoneIngressName:e.zoneIngressName}):e.zoneEgressName!==""&&(a=await n.getZoneEgressData({dataPath:e.dataPath,zoneEgressName:e.zoneEgressName})),l.value=typeof a=="string"?a:JSON.stringify(a,null,2)}catch(a){a instanceof Error?r.value=a:console.error(a)}finally{s.value=!1}}return(a,S)=>(N(),E("div",null,[q("div",k,[i(z(p),{disabled:s.value,appearance:"primary",icon:"redo","data-testid":"envoy-data-refresh-button",onClick:t},{default:c(()=>[u(` Refresh `)]),_:1},8,["disabled"])]),u(),i(g,{"is-loading":s.value,error:r.value},{default:c(()=>[i(m,{id:`code-block-${e.dataPath}`,language:"json",code:l.value,"is-searchable":"","query-key":e.queryKey??`code-block-${e.dataPath}`},null,8,["id","code","query-key"])]),_:1},8,["is-loading","error"])]))}});const C=y(P,[["__scopeId","data-v-afa8dc47"]]);export{C as E}; diff --git a/app/kuma-ui/pkg/resources/data/assets/ErrorBlock-eb438aeb.js b/app/kuma-ui/pkg/resources/data/assets/ErrorBlock-cc9ab0db.js similarity index 87% rename from app/kuma-ui/pkg/resources/data/assets/ErrorBlock-eb438aeb.js rename to app/kuma-ui/pkg/resources/data/assets/ErrorBlock-cc9ab0db.js index bc2dcb5806e0..2fbfc57f0532 100644 --- a/app/kuma-ui/pkg/resources/data/assets/ErrorBlock-eb438aeb.js +++ b/app/kuma-ui/pkg/resources/data/assets/ErrorBlock-cc9ab0db.js @@ -1 +1 @@ -import{l as b,b as g,P as _}from"./kongponents.es-07c2d778.js";import{d as y,c as v,an as p,o as a,e as s,h as c,l as w,w as n,k as o,g as r,t,f as d,F as B,j as E,b as l,n as S,a as x,p as C,m as I}from"./index-50754121.js";import{h as N}from"./RouteView.vue_vue_type_script_setup_true_lang-bc0afbf3.js";const f=e=>(C("data-v-176c6beb"),e=e(),I(),e),V={class:"error-block"},A=f(()=>o("p",null,"An error has occurred while trying to load this data.",-1)),D={class:"error-block-details"},F=f(()=>o("summary",null,"Details",-1)),P={key:0},j={key:0,class:"badge-list"},q=y({__name:"ErrorBlock",props:{error:{type:[Error,null],required:!1,default:null}},setup(e){const i=e,u=v(()=>i.error instanceof p?i.error.causes:[]);return(h,z)=>(a(),s("div",V,[c(l(g),{"cta-is-hidden":""},w({title:n(()=>[c(l(b),{class:"mb-3",icon:"warning",color:"var(--black-500)","secondary-color":"var(--yellow-300)",size:"42"}),r(),S(h.$slots,"default",{},()=>[A],!0)]),_:2},[e.error!==null||u.value.length>0?{name:"message",fn:n(()=>[o("details",D,[F,r(),e.error!==null?(a(),s("p",P,t(e.error.message),1)):d("",!0),r(),o("ul",null,[(a(!0),s(B,null,E(u.value,(m,k)=>(a(),s("li",{key:k},[o("b",null,[o("code",null,t(m.field),1)]),r(": "+t(m.message),1)]))),128))])])]),key:"0"}:void 0]),1024),r(),e.error instanceof l(p)?(a(),s("div",j,[e.error.code?(a(),x(l(_),{key:0,appearance:"warning"},{default:n(()=>[r(t(e.error.code),1)]),_:1})):d("",!0),r(),c(l(_),{appearance:"warning"},{default:n(()=>[r(t(e.error.statusCode),1)]),_:1})])):d("",!0)]))}});const $=N(q,[["__scopeId","data-v-176c6beb"]]);export{$ as E}; +import{l as b,b as g,P as _}from"./kongponents.es-f7b55123.js";import{d as y,c as v,an as p,o as a,e as s,h as c,l as w,w as n,k as o,g as r,t,f as d,F as B,j as E,b as l,n as S,a as x,p as C,m as I}from"./index-a4a530d1.js";import{h as N}from"./RouteView.vue_vue_type_script_setup_true_lang-8e6a23b5.js";const f=e=>(C("data-v-176c6beb"),e=e(),I(),e),V={class:"error-block"},A=f(()=>o("p",null,"An error has occurred while trying to load this data.",-1)),D={class:"error-block-details"},F=f(()=>o("summary",null,"Details",-1)),P={key:0},j={key:0,class:"badge-list"},q=y({__name:"ErrorBlock",props:{error:{type:[Error,null],required:!1,default:null}},setup(e){const i=e,u=v(()=>i.error instanceof p?i.error.causes:[]);return(h,z)=>(a(),s("div",V,[c(l(g),{"cta-is-hidden":""},w({title:n(()=>[c(l(b),{class:"mb-3",icon:"warning",color:"var(--black-500)","secondary-color":"var(--yellow-300)",size:"42"}),r(),S(h.$slots,"default",{},()=>[A],!0)]),_:2},[e.error!==null||u.value.length>0?{name:"message",fn:n(()=>[o("details",D,[F,r(),e.error!==null?(a(),s("p",P,t(e.error.message),1)):d("",!0),r(),o("ul",null,[(a(!0),s(B,null,E(u.value,(m,k)=>(a(),s("li",{key:k},[o("b",null,[o("code",null,t(m.field),1)]),r(": "+t(m.message),1)]))),128))])])]),key:"0"}:void 0]),1024),r(),e.error instanceof l(p)?(a(),s("div",j,[e.error.code?(a(),x(l(_),{key:0,appearance:"warning"},{default:n(()=>[r(t(e.error.code),1)]),_:1})):d("",!0),r(),c(l(_),{appearance:"warning"},{default:n(()=>[r(t(e.error.statusCode),1)]),_:1})])):d("",!0)]))}});const $=N(q,[["__scopeId","data-v-176c6beb"]]);export{$ as E}; diff --git a/app/kuma-ui/pkg/resources/data/assets/LoadingBlock.vue_vue_type_script_setup_true_lang-95ccda4d.js b/app/kuma-ui/pkg/resources/data/assets/LoadingBlock.vue_vue_type_script_setup_true_lang-2c479ce1.js similarity index 72% rename from app/kuma-ui/pkg/resources/data/assets/LoadingBlock.vue_vue_type_script_setup_true_lang-95ccda4d.js rename to app/kuma-ui/pkg/resources/data/assets/LoadingBlock.vue_vue_type_script_setup_true_lang-2c479ce1.js index cd531cec03de..65f87bc0ca61 100644 --- a/app/kuma-ui/pkg/resources/data/assets/LoadingBlock.vue_vue_type_script_setup_true_lang-95ccda4d.js +++ b/app/kuma-ui/pkg/resources/data/assets/LoadingBlock.vue_vue_type_script_setup_true_lang-2c479ce1.js @@ -1 +1 @@ -import{l as o,b as s}from"./kongponents.es-07c2d778.js";import{d as t,o as n,a as r,w as c,h as d,b as e,g as i,n as l,k as _}from"./index-50754121.js";const p=_("p",null,"Loading data …",-1),g=t({__name:"LoadingBlock",setup(m){return(a,f)=>(n(),r(e(s),{"cta-is-hidden":"","data-testid":"loading-block"},{title:c(()=>[d(e(o),{class:"mb-3",icon:"spinner",color:"rgba(0, 0, 0, 0.1)",size:"42"}),i(),l(a.$slots,"default",{},()=>[p])]),_:3}))}});export{g as _}; +import{l as o,b as s}from"./kongponents.es-f7b55123.js";import{d as t,o as n,a as r,w as c,h as d,b as e,g as i,n as l,k as _}from"./index-a4a530d1.js";const p=_("p",null,"Loading data …",-1),g=t({__name:"LoadingBlock",setup(m){return(a,f)=>(n(),r(e(s),{"cta-is-hidden":"","data-testid":"loading-block"},{title:c(()=>[d(e(o),{class:"mb-3",icon:"spinner",color:"rgba(0, 0, 0, 0.1)",size:"42"}),i(),l(a.$slots,"default",{},()=>[p])]),_:3}))}});export{g as _}; diff --git a/app/kuma-ui/pkg/resources/data/assets/LoadingBox-b09612df.js b/app/kuma-ui/pkg/resources/data/assets/LoadingBox-d716f607.js similarity index 76% rename from app/kuma-ui/pkg/resources/data/assets/LoadingBox-b09612df.js rename to app/kuma-ui/pkg/resources/data/assets/LoadingBox-d716f607.js index 115818d42a6f..4fa3f2302035 100644 --- a/app/kuma-ui/pkg/resources/data/assets/LoadingBox-b09612df.js +++ b/app/kuma-ui/pkg/resources/data/assets/LoadingBox-d716f607.js @@ -1 +1 @@ -import{h as d}from"./RouteView.vue_vue_type_script_setup_true_lang-bc0afbf3.js";import{o as n,e as _,g as s,p as c,m as l,k as o}from"./index-50754121.js";const a={},e=t=>(c("data-v-67594d24"),t=t(),l(),t),i={class:"loading","data-testid":"loading"},p=e(()=>o("div",null,null,-1)),r=e(()=>o("div",null,null,-1)),u=e(()=>o("div",null,null,-1)),h=e(()=>o("div",null,null,-1)),v=e(()=>o("div",null,null,-1));function m(t,x){return n(),_("div",i,[p,s(),r,s(),u,s(),h,s(),v])}const B=d(a,[["render",m],["__scopeId","data-v-67594d24"]]);export{B as L}; +import{h as d}from"./RouteView.vue_vue_type_script_setup_true_lang-8e6a23b5.js";import{o as n,e as _,g as s,p as c,m as l,k as o}from"./index-a4a530d1.js";const a={},e=t=>(c("data-v-67594d24"),t=t(),l(),t),i={class:"loading","data-testid":"loading"},p=e(()=>o("div",null,null,-1)),r=e(()=>o("div",null,null,-1)),u=e(()=>o("div",null,null,-1)),h=e(()=>o("div",null,null,-1)),v=e(()=>o("div",null,null,-1));function m(t,x){return n(),_("div",i,[p,s(),r,s(),u,s(),h,s(),v])}const B=d(a,[["render",m],["__scopeId","data-v-67594d24"]]);export{B as L}; diff --git a/app/kuma-ui/pkg/resources/data/assets/MainOverviewView-8bcf7c3e.js b/app/kuma-ui/pkg/resources/data/assets/MainOverviewView-d2a5fb0c.js similarity index 51% rename from app/kuma-ui/pkg/resources/data/assets/MainOverviewView-8bcf7c3e.js rename to app/kuma-ui/pkg/resources/data/assets/MainOverviewView-d2a5fb0c.js index 3667d88ffadb..4abc43d0596e 100644 --- a/app/kuma-ui/pkg/resources/data/assets/MainOverviewView-8bcf7c3e.js +++ b/app/kuma-ui/pkg/resources/data/assets/MainOverviewView-d2a5fb0c.js @@ -1 +1 @@ -import{G as i,k as n,_ as c,g as _}from"./RouteView.vue_vue_type_script_setup_true_lang-bc0afbf3.js";import{_ as m}from"./RouteTitle.vue_vue_type_script_setup_true_lang-c74dc965.js";import{M as l}from"./MeshResources-2049b27d.js";import{d as u,a as f,w as s,o as d,h as e,b as t,g as a,k as p}from"./index-50754121.js";import"./kongponents.es-07c2d778.js";const v={class:"kcard-stack"},N=u({__name:"MainOverviewView",setup(h){const r=i(),{t:o}=n();return(w,k)=>(d(),f(c,null,{default:s(()=>[e(m,{title:t(o)("main-overview.routes.item.title")},null,8,["title"]),a(),e(_,null,{default:s(()=>[p("div",v,[e(t(r)),a(),e(l)])]),_:1})]),_:1}))}});export{N as default}; +import{G as i,k as n,_ as c,g as _}from"./RouteView.vue_vue_type_script_setup_true_lang-8e6a23b5.js";import{_ as m}from"./RouteTitle.vue_vue_type_script_setup_true_lang-f4fc2caf.js";import{M as l}from"./MeshResources-b34711e1.js";import{d as u,a as f,w as s,o as d,h as e,b as t,g as a,k as p}from"./index-a4a530d1.js";import"./kongponents.es-f7b55123.js";const v={class:"kcard-stack"},N=u({__name:"MainOverviewView",setup(h){const r=i(),{t:o}=n();return(w,k)=>(d(),f(c,null,{default:s(()=>[e(m,{title:t(o)("main-overview.routes.item.title")},null,8,["title"]),a(),e(_,null,{default:s(()=>[p("div",v,[e(t(r)),a(),e(l)])]),_:1})]),_:1}))}});export{N as default}; diff --git a/app/kuma-ui/pkg/resources/data/assets/MeshItemView-3c513e41.js b/app/kuma-ui/pkg/resources/data/assets/MeshItemView-66f5d240.js similarity index 70% rename from app/kuma-ui/pkg/resources/data/assets/MeshItemView-3c513e41.js rename to app/kuma-ui/pkg/resources/data/assets/MeshItemView-66f5d240.js index 49895b84024d..e45b23c77c8d 100644 --- a/app/kuma-ui/pkg/resources/data/assets/MeshItemView-3c513e41.js +++ b/app/kuma-ui/pkg/resources/data/assets/MeshItemView-66f5d240.js @@ -1 +1 @@ -import{k as _,g as c,_ as p}from"./RouteView.vue_vue_type_script_setup_true_lang-bc0afbf3.js";import{_ as l}from"./RouteTitle.vue_vue_type_script_setup_true_lang-c74dc965.js";import{d as u,r as f,o,a as r,w as t,h as s,b as n,g as h,i as d}from"./index-50754121.js";import"./kongponents.es-07c2d778.js";const $=u({__name:"MeshItemView",setup(b){const{t:a}=_();return(w,x)=>{const i=f("RouterView");return o(),r(p,null,{default:t(({route:e})=>[s(l,{title:n(a)("meshes.routes.item.title",{name:e.params.mesh})},null,8,["title"]),h(),s(c,{breadcrumbs:[{to:{name:"mesh-list-view"},text:n(a)("meshes.routes.item.breadcrumbs")},{to:{name:"mesh-detail-view",params:{mesh:e.params.mesh}},text:e.params.mesh}]},{default:t(()=>[s(i,null,{default:t(m=>[(o(),r(d(m.Component),{key:m.route.path}))]),_:2},1024)]),_:2},1032,["breadcrumbs"])]),_:1})}}});export{$ as default}; +import{k as _,g as c,_ as p}from"./RouteView.vue_vue_type_script_setup_true_lang-8e6a23b5.js";import{_ as l}from"./RouteTitle.vue_vue_type_script_setup_true_lang-f4fc2caf.js";import{d as u,r as f,o,a as r,w as t,h as s,b as n,g as h,i as d}from"./index-a4a530d1.js";import"./kongponents.es-f7b55123.js";const $=u({__name:"MeshItemView",setup(b){const{t:a}=_();return(w,x)=>{const i=f("RouterView");return o(),r(p,null,{default:t(({route:e})=>[s(l,{title:n(a)("meshes.routes.item.title",{name:e.params.mesh})},null,8,["title"]),h(),s(c,{breadcrumbs:[{to:{name:"mesh-list-view"},text:n(a)("meshes.routes.item.breadcrumbs")},{to:{name:"mesh-detail-view",params:{mesh:e.params.mesh}},text:e.params.mesh}]},{default:t(()=>[s(i,null,{default:t(m=>[(o(),r(d(m.Component),{key:m.route.path}))]),_:2},1024)]),_:2},1032,["breadcrumbs"])]),_:1})}}});export{$ as default}; diff --git a/app/kuma-ui/pkg/resources/data/assets/MeshListView-9eb63c69.js b/app/kuma-ui/pkg/resources/data/assets/MeshListView-0ef3bae9.js similarity index 73% rename from app/kuma-ui/pkg/resources/data/assets/MeshListView-9eb63c69.js rename to app/kuma-ui/pkg/resources/data/assets/MeshListView-0ef3bae9.js index c9a7039323ea..651302db613e 100644 --- a/app/kuma-ui/pkg/resources/data/assets/MeshListView-9eb63c69.js +++ b/app/kuma-ui/pkg/resources/data/assets/MeshListView-0ef3bae9.js @@ -1 +1 @@ -import{d as D,u as T,q as s,s as A,o as E,a as N,w as v,h as m,b as u,g as V,k as h,P as b}from"./index-50754121.js";import{k as M,j as S,g as L,_ as P}from"./RouteView.vue_vue_type_script_setup_true_lang-bc0afbf3.js";import{_ as q}from"./RouteTitle.vue_vue_type_script_setup_true_lang-c74dc965.js";import{D as z}from"./DataOverview-5b210bb7.js";import{Q as B}from"./QueryParameter-70743f73.js";import"./kongponents.es-07c2d778.js";import"./EmptyBlock.vue_vue_type_script_setup_true_lang-34eb656c.js";import"./ErrorBlock-eb438aeb.js";import"./LoadingBlock.vue_vue_type_script_setup_true_lang-95ccda4d.js";import"./TagList-a0e27239.js";import"./StatusBadge-9e322ea6.js";const R={class:"kcard-stack"},$={class:"kcard-border"},H=D({__name:"MeshListView",props:{selectedMeshName:{type:[String,null],required:!1,default:null},offset:{type:Number,required:!1,default:0}},setup(g){const c=g,{t:r}=M(),y=S(),w={title:r("common.emptyState.title"),message:r("common.emptyState.message",{type:"Meshes"})},d=T(),l=s(!0),n=s(null),o=s({headers:[{label:"Name",key:"entity"}],data:[]}),f=s(null),p=s(c.offset);A(()=>d.params.mesh,function(){d.name==="mesh-list-view"&&i(0)}),k();function k(){i(c.offset)}async function i(e){p.value=e,B.set("offset",e>0?e:null),l.value=!0,n.value=null;const a=b;try{const{items:t,next:_}=await y.getAllMeshes({size:a,offset:e});f.value=_,o.value.data=x(t??[])}catch(t){o.value.data=[],t instanceof Error?n.value=t:console.error(t)}finally{l.value=!1}}function x(e){return e.map(a=>{const{name:t}=a;return{entity:a,detailViewRoute:{name:"mesh-detail-view",params:{mesh:t}}}})}return(e,a)=>(E(),N(P,null,{default:v(()=>[m(q,{title:u(r)("meshes.routes.items.title")},null,8,["title"]),V(),m(L,{breadcrumbs:[{to:{name:"mesh-list-view"},text:u(r)("meshes.routes.items.breadcrumbs")}]},{default:v(()=>[h("div",R,[h("div",$,[m(z,{"page-size":u(b),"is-loading":l.value,error:n.value,"empty-state":w,"table-data":o.value,"table-data-is-empty":o.value.data.length===0,next:f.value,"page-offset":p.value,onLoadData:i},null,8,["page-size","is-loading","error","table-data","table-data-is-empty","next","page-offset"])])])]),_:1},8,["breadcrumbs"])]),_:1}))}});export{H as default}; +import{d as D,u as T,q as s,s as A,o as E,a as N,w as v,h as m,b as u,g as V,k as h,P as b}from"./index-a4a530d1.js";import{k as M,j as S,g as L,_ as P}from"./RouteView.vue_vue_type_script_setup_true_lang-8e6a23b5.js";import{_ as q}from"./RouteTitle.vue_vue_type_script_setup_true_lang-f4fc2caf.js";import{D as z}from"./DataOverview-7c85e051.js";import{Q as B}from"./QueryParameter-70743f73.js";import"./kongponents.es-f7b55123.js";import"./EmptyBlock.vue_vue_type_script_setup_true_lang-ddebee78.js";import"./ErrorBlock-cc9ab0db.js";import"./LoadingBlock.vue_vue_type_script_setup_true_lang-2c479ce1.js";import"./TagList-76ef6044.js";import"./StatusBadge-6b87699d.js";const R={class:"kcard-stack"},$={class:"kcard-border"},H=D({__name:"MeshListView",props:{selectedMeshName:{type:[String,null],required:!1,default:null},offset:{type:Number,required:!1,default:0}},setup(g){const c=g,{t:r}=M(),y=S(),w={title:r("common.emptyState.title"),message:r("common.emptyState.message",{type:"Meshes"})},d=T(),l=s(!0),n=s(null),o=s({headers:[{label:"Name",key:"entity"}],data:[]}),f=s(null),p=s(c.offset);A(()=>d.params.mesh,function(){d.name==="mesh-list-view"&&i(0)}),k();function k(){i(c.offset)}async function i(e){p.value=e,B.set("offset",e>0?e:null),l.value=!0,n.value=null;const a=b;try{const{items:t,next:_}=await y.getAllMeshes({size:a,offset:e});f.value=_,o.value.data=x(t??[])}catch(t){o.value.data=[],t instanceof Error?n.value=t:console.error(t)}finally{l.value=!1}}function x(e){return e.map(a=>{const{name:t}=a;return{entity:a,detailViewRoute:{name:"mesh-detail-view",params:{mesh:t}}}})}return(e,a)=>(E(),N(P,null,{default:v(()=>[m(q,{title:u(r)("meshes.routes.items.title")},null,8,["title"]),V(),m(L,{breadcrumbs:[{to:{name:"mesh-list-view"},text:u(r)("meshes.routes.items.breadcrumbs")}]},{default:v(()=>[h("div",R,[h("div",$,[m(z,{"page-size":u(b),"is-loading":l.value,error:n.value,"empty-state":w,"table-data":o.value,"table-data-is-empty":o.value.data.length===0,next:f.value,"page-offset":p.value,onLoadData:i},null,8,["page-size","is-loading","error","table-data","table-data-is-empty","next","page-offset"])])])]),_:1},8,["breadcrumbs"])]),_:1}))}});export{H as default}; diff --git a/app/kuma-ui/pkg/resources/data/assets/MeshOverviewView-8ab8db38.js b/app/kuma-ui/pkg/resources/data/assets/MeshOverviewView-44e253a3.js similarity index 85% rename from app/kuma-ui/pkg/resources/data/assets/MeshOverviewView-8ab8db38.js rename to app/kuma-ui/pkg/resources/data/assets/MeshOverviewView-44e253a3.js index d29922412530..0bc4bb84a5f9 100644 --- a/app/kuma-ui/pkg/resources/data/assets/MeshOverviewView-8ab8db38.js +++ b/app/kuma-ui/pkg/resources/data/assets/MeshOverviewView-44e253a3.js @@ -1 +1 @@ -import{U as M,P as E}from"./kongponents.es-07c2d778.js";import{d as A,u as O,c as _,s as R,o as r,e as m,h as s,g as l,q as D,x as N,r as G,a as p,w as o,b as d,k as B,j as P,t as g,F as y,f as S}from"./index-50754121.js";import{f as j,D as x,h as F,k as H,j as J,g as Q,_ as X}from"./RouteView.vue_vue_type_script_setup_true_lang-bc0afbf3.js";import{_ as Y}from"./RouteTitle.vue_vue_type_script_setup_true_lang-c74dc965.js";import{D as $,a as V}from"./DefinitionListItem-b371d6a2.js";import{M as Z}from"./MeshResources-2049b27d.js";import{_ as ee}from"./ResourceCodeBlock.vue_vue_type_script_setup_true_lang-d4356ea6.js";import{_ as te}from"./StatusInfo.vue_vue_type_script_setup_true_lang-eefb4f85.js";import{T as ae}from"./TextWithCopyButton-d85f5945.js";import"./CodeBlock.vue_vue_type_style_index_0_lang-559b3ab4.js";import"./toYaml-4e00099e.js";import"./EmptyBlock.vue_vue_type_script_setup_true_lang-34eb656c.js";import"./ErrorBlock-eb438aeb.js";import"./LoadingBlock.vue_vue_type_script_setup_true_lang-95ccda4d.js";const se={class:"chart-box-list"},ne=A({__name:"MeshCharts",setup(K){const k=O(),c=j(),f=_(()=>c.getters.getChart("services",{title:"Services",showTotal:!0})),v=_(()=>c.getters.getChart("dataplanes",{title:"DP Proxies",showTotal:!0,isStatusChart:!0})),b=_(()=>c.getters.getChart("kumaDPVersions",{title:"Kuma DP",subtitle:"versions"})),w=_(()=>c.getters.getChart("envoyVersions",{title:"Envoy",subtitle:"versions"}));R(()=>k.params.mesh,function(u){typeof u=="string"&&n(u)},{immediate:!0});function n(u){c.dispatch("fetchMeshInsights",u),c.dispatch("fetchServices",u)}return(u,I)=>(r(),m("div",se,[s(x,{data:f.value},null,8,["data"]),l(),s(x,{data:v.value},null,8,["data"]),l(),s(x,{data:b.value},null,8,["data"]),l(),s(x,{data:w.value},null,8,["data"])]))}});const oe=F(ne,[["__scopeId","data-v-5ab6d374"]]),re={class:"kcard-stack"},le={class:"columns"},ie={key:0},ce=A({__name:"MeshOverviewView",setup(K){const{t:k}=H(),c=J(),f=O(),v=j(),b=D(!0),w=D(!1),n=D(null),u=D(null),I=_(()=>{if(n.value===null)return null;const{name:t,creationTime:a,modificationTime:h}=n.value;return{name:t,created:N(a),modified:N(h),"Data Plane Proxies":v.state.meshInsight.dataplanes.total}}),U=_(()=>{var L;if(n.value===null)return null;const t=C(n.value,"mtls"),a=C(n.value,"logging"),h=C(n.value,"metrics"),e=C(n.value,"tracing"),i=!!((L=n.value.routing)!=null&&L.localityAwareLoadBalancing);return{mtls:t,logging:a,metrics:h,tracing:e,localityAwareLoadBalancing:i}}),q=_(()=>v.state.sidebar.insights.mesh.policies.total),W=_(()=>v.state.policyTypes.map(t=>{var a;return{...t,length:((a=v.state.meshInsight.policies[t.name])==null?void 0:a.total)??0}}));R(()=>f.params.mesh,function(){f.name==="single-mesh-overview"&&T()}),T();async function T(){b.value=!0,w.value=!1;const t=f.params.mesh;try{n.value=await c.getMesh({name:t}),u.value=await c.getMeshInsights({name:t})}catch(a){w.value=!0,n.value=null,u.value=null,console.error(a)}finally{b.value=!1}}function C(t,a){if(t===null||t[a]===void 0)return!1;const h=t[a].enabledBackend??t[a].defaultBackend??t[a].backends[0].name,e=t[a].backends.find(i=>i.name===h);return`${e.type} / ${e.name}`}async function z(t){const a=f.params.mesh;return await c.getMesh({name:a},t)}return(t,a)=>{const h=G("router-link");return r(),p(X,{module:"meshes"},{default:o(()=>[s(Y,{title:d(k)("meshes.routes.overview.title")},null,8,["title"]),l(),s(Q,null,{default:o(()=>[B("div",re,[s(d(M),null,{body:o(()=>[s(oe)]),_:1}),l(),n.value!==null?(r(),p(d(M),{key:0},{body:o(()=>[B("div",le,[s(te,{"is-loading":b.value,"has-error":w.value,"is-empty":n.value===null||u.value===null},{default:o(()=>[s($,null,{default:o(()=>[(r(!0),m(y,null,P(I.value,(e,i)=>(r(),p(V,{key:i,term:d(k)(`http.api.property.${i}`)},{default:o(()=>[typeof e=="boolean"?(r(),p(d(E),{key:0,appearance:e?"success":"danger"},{default:o(()=>[l(g(e?"Enabled":"Disabled"),1)]),_:2},1032,["appearance"])):i==="name"&&typeof e=="string"?(r(),p(ae,{key:1,text:e},null,8,["text"])):(r(),m(y,{key:2},[l(g(e),1)],64))]),_:2},1032,["term"]))),128))]),_:1})]),_:1},8,["is-loading","has-error","is-empty"]),l(),s($,null,{default:o(()=>[(r(!0),m(y,null,P(U.value,(e,i)=>(r(),p(V,{key:i,term:d(k)(`http.api.property.${i}`)},{default:o(()=>[typeof e=="boolean"?(r(),p(d(E),{key:0,appearance:e?"success":"danger"},{default:o(()=>[l(g(e?"Enabled":"Disabled"),1)]),_:2},1032,["appearance"])):(r(),m(y,{key:1},[l(g(e),1)],64))]),_:2},1032,["term"]))),128))]),_:1}),l(),s($,null,{default:o(()=>[s(V,{term:`Policies (${q.value})`},{default:o(()=>[B("ul",null,[(r(!0),m(y,null,P(W.value,(e,i)=>(r(),m(y,{key:i},[e.length!==0?(r(),m("li",ie,[s(h,{to:{name:"policies-list-view",params:{policyPath:e.path}}},{default:o(()=>[l(g(e.name)+": "+g(e.length),1)]),_:2},1032,["to"])])):S("",!0)],64))),128))])]),_:1},8,["term"])]),_:1})])]),_:1})):S("",!0),l(),s(d(M),null,{body:o(()=>{var e;return[s(ee,{id:"code-block-mesh","resource-fetcher":z,"resource-fetcher-watch-key":((e=n.value)==null?void 0:e.name)||null},null,8,["resource-fetcher-watch-key"])]}),_:1}),l(),s(Z)])]),_:1})]),_:1})}}});const De=F(ce,[["__scopeId","data-v-6325d95c"]]);export{De as default}; +import{U as M,P as E}from"./kongponents.es-f7b55123.js";import{d as A,u as O,c as _,s as R,o as r,e as m,h as s,g as l,q as D,x as N,r as G,a as p,w as o,b as d,k as B,j as P,t as g,F as y,f as S}from"./index-a4a530d1.js";import{f as j,D as x,h as F,k as H,j as J,g as Q,_ as X}from"./RouteView.vue_vue_type_script_setup_true_lang-8e6a23b5.js";import{_ as Y}from"./RouteTitle.vue_vue_type_script_setup_true_lang-f4fc2caf.js";import{D as $,a as V}from"./DefinitionListItem-f18ea925.js";import{M as Z}from"./MeshResources-b34711e1.js";import{_ as ee}from"./ResourceCodeBlock.vue_vue_type_script_setup_true_lang-6b64ed3d.js";import{_ as te}from"./StatusInfo.vue_vue_type_script_setup_true_lang-8a43cc10.js";import{T as ae}from"./TextWithCopyButton-4f241d23.js";import"./CodeBlock.vue_vue_type_style_index_0_lang-15a6fd20.js";import"./toYaml-4e00099e.js";import"./EmptyBlock.vue_vue_type_script_setup_true_lang-ddebee78.js";import"./ErrorBlock-cc9ab0db.js";import"./LoadingBlock.vue_vue_type_script_setup_true_lang-2c479ce1.js";const se={class:"chart-box-list"},ne=A({__name:"MeshCharts",setup(K){const k=O(),c=j(),f=_(()=>c.getters.getChart("services",{title:"Services",showTotal:!0})),v=_(()=>c.getters.getChart("dataplanes",{title:"DP Proxies",showTotal:!0,isStatusChart:!0})),b=_(()=>c.getters.getChart("kumaDPVersions",{title:"Kuma DP",subtitle:"versions"})),w=_(()=>c.getters.getChart("envoyVersions",{title:"Envoy",subtitle:"versions"}));R(()=>k.params.mesh,function(u){typeof u=="string"&&n(u)},{immediate:!0});function n(u){c.dispatch("fetchMeshInsights",u),c.dispatch("fetchServices",u)}return(u,I)=>(r(),m("div",se,[s(x,{data:f.value},null,8,["data"]),l(),s(x,{data:v.value},null,8,["data"]),l(),s(x,{data:b.value},null,8,["data"]),l(),s(x,{data:w.value},null,8,["data"])]))}});const oe=F(ne,[["__scopeId","data-v-5ab6d374"]]),re={class:"kcard-stack"},le={class:"columns"},ie={key:0},ce=A({__name:"MeshOverviewView",setup(K){const{t:k}=H(),c=J(),f=O(),v=j(),b=D(!0),w=D(!1),n=D(null),u=D(null),I=_(()=>{if(n.value===null)return null;const{name:t,creationTime:a,modificationTime:h}=n.value;return{name:t,created:N(a),modified:N(h),"Data Plane Proxies":v.state.meshInsight.dataplanes.total}}),U=_(()=>{var L;if(n.value===null)return null;const t=C(n.value,"mtls"),a=C(n.value,"logging"),h=C(n.value,"metrics"),e=C(n.value,"tracing"),i=!!((L=n.value.routing)!=null&&L.localityAwareLoadBalancing);return{mtls:t,logging:a,metrics:h,tracing:e,localityAwareLoadBalancing:i}}),q=_(()=>v.state.sidebar.insights.mesh.policies.total),W=_(()=>v.state.policyTypes.map(t=>{var a;return{...t,length:((a=v.state.meshInsight.policies[t.name])==null?void 0:a.total)??0}}));R(()=>f.params.mesh,function(){f.name==="single-mesh-overview"&&T()}),T();async function T(){b.value=!0,w.value=!1;const t=f.params.mesh;try{n.value=await c.getMesh({name:t}),u.value=await c.getMeshInsights({name:t})}catch(a){w.value=!0,n.value=null,u.value=null,console.error(a)}finally{b.value=!1}}function C(t,a){if(t===null||t[a]===void 0)return!1;const h=t[a].enabledBackend??t[a].defaultBackend??t[a].backends[0].name,e=t[a].backends.find(i=>i.name===h);return`${e.type} / ${e.name}`}async function z(t){const a=f.params.mesh;return await c.getMesh({name:a},t)}return(t,a)=>{const h=G("router-link");return r(),p(X,{module:"meshes"},{default:o(()=>[s(Y,{title:d(k)("meshes.routes.overview.title")},null,8,["title"]),l(),s(Q,null,{default:o(()=>[B("div",re,[s(d(M),null,{body:o(()=>[s(oe)]),_:1}),l(),n.value!==null?(r(),p(d(M),{key:0},{body:o(()=>[B("div",le,[s(te,{"is-loading":b.value,"has-error":w.value,"is-empty":n.value===null||u.value===null},{default:o(()=>[s($,null,{default:o(()=>[(r(!0),m(y,null,P(I.value,(e,i)=>(r(),p(V,{key:i,term:d(k)(`http.api.property.${i}`)},{default:o(()=>[typeof e=="boolean"?(r(),p(d(E),{key:0,appearance:e?"success":"danger"},{default:o(()=>[l(g(e?"Enabled":"Disabled"),1)]),_:2},1032,["appearance"])):i==="name"&&typeof e=="string"?(r(),p(ae,{key:1,text:e},null,8,["text"])):(r(),m(y,{key:2},[l(g(e),1)],64))]),_:2},1032,["term"]))),128))]),_:1})]),_:1},8,["is-loading","has-error","is-empty"]),l(),s($,null,{default:o(()=>[(r(!0),m(y,null,P(U.value,(e,i)=>(r(),p(V,{key:i,term:d(k)(`http.api.property.${i}`)},{default:o(()=>[typeof e=="boolean"?(r(),p(d(E),{key:0,appearance:e?"success":"danger"},{default:o(()=>[l(g(e?"Enabled":"Disabled"),1)]),_:2},1032,["appearance"])):(r(),m(y,{key:1},[l(g(e),1)],64))]),_:2},1032,["term"]))),128))]),_:1}),l(),s($,null,{default:o(()=>[s(V,{term:`Policies (${q.value})`},{default:o(()=>[B("ul",null,[(r(!0),m(y,null,P(W.value,(e,i)=>(r(),m(y,{key:i},[e.length!==0?(r(),m("li",ie,[s(h,{to:{name:"policies-list-view",params:{policyPath:e.path}}},{default:o(()=>[l(g(e.name)+": "+g(e.length),1)]),_:2},1032,["to"])])):S("",!0)],64))),128))])]),_:1},8,["term"])]),_:1})])]),_:1})):S("",!0),l(),s(d(M),null,{body:o(()=>{var e;return[s(ee,{id:"code-block-mesh","resource-fetcher":z,"resource-fetcher-watch-key":((e=n.value)==null?void 0:e.name)||null},null,8,["resource-fetcher-watch-key"])]}),_:1}),l(),s(Z)])]),_:1})]),_:1})}}});const De=F(ce,[["__scopeId","data-v-6325d95c"]]);export{De as default}; diff --git a/app/kuma-ui/pkg/resources/data/assets/MeshResources-2049b27d.js b/app/kuma-ui/pkg/resources/data/assets/MeshResources-b34711e1.js similarity index 90% rename from app/kuma-ui/pkg/resources/data/assets/MeshResources-2049b27d.js rename to app/kuma-ui/pkg/resources/data/assets/MeshResources-b34711e1.js index c4377a6c9b2b..407e61ec6973 100644 --- a/app/kuma-ui/pkg/resources/data/assets/MeshResources-2049b27d.js +++ b/app/kuma-ui/pkg/resources/data/assets/MeshResources-b34711e1.js @@ -1,4 +1,4 @@ -import{S as i,U as c}from"./kongponents.es-07c2d778.js";import{l as h,f as m,h as M}from"./RouteView.vue_vue_type_script_setup_true_lang-bc0afbf3.js";import{d as U,c as A,o as R,e as f,h as o,w as n,g as s,k as t,b as e,t as r,p as b,m as v}from"./index-50754121.js";const l=_=>(b("data-v-88c956eb"),_=_(),v(),_),C={class:"kcard-switcher"},y=l(()=>t("p",null,[s(` +import{S as i,U as c}from"./kongponents.es-f7b55123.js";import{l as h,f as m,h as M}from"./RouteView.vue_vue_type_script_setup_true_lang-8e6a23b5.js";import{d as U,c as A,o as R,e as f,h as o,w as n,g as s,k as t,b as e,t as r,p as b,m as v}from"./index-a4a530d1.js";const l=_=>(b("data-v-88c956eb"),_=_(),v(),_),C={class:"kcard-switcher"},y=l(()=>t("p",null,[s(` We can create multiple isolated Mesh resources (i.e. per application/`),t("wbr"),s("team/"),t("wbr"),s(`business unit). `)],-1)),E={class:"resource-list-actions mt-4"},K=l(()=>t("p",null,` We need a data plane proxy for each replica of our services within a Mesh resource. diff --git a/app/kuma-ui/pkg/resources/data/assets/MeshView-cc69177c.js b/app/kuma-ui/pkg/resources/data/assets/MeshView-a9e78f52.js similarity index 71% rename from app/kuma-ui/pkg/resources/data/assets/MeshView-cc69177c.js rename to app/kuma-ui/pkg/resources/data/assets/MeshView-a9e78f52.js index f04762d04226..dc6aaf80ddef 100644 --- a/app/kuma-ui/pkg/resources/data/assets/MeshView-cc69177c.js +++ b/app/kuma-ui/pkg/resources/data/assets/MeshView-a9e78f52.js @@ -1 +1 @@ -import{d as p,v as f,r as d,o as c,a as i,w as n,h as a,b as h,g as v,i as w}from"./index-50754121.js";import{k as R,g as b,_ as C}from"./RouteView.vue_vue_type_script_setup_true_lang-bc0afbf3.js";import{N}from"./NavTabs-1f291852.js";import"./kongponents.es-07c2d778.js";const D=p({__name:"MeshView",setup(V){var r;const l=R(),_=(((r=f().getRoutes().find(e=>e.name==="mesh-detail-view"))==null?void 0:r.children)??[]).map(e=>{var m,u;const s=typeof e.name>"u"?(m=e.children)==null?void 0:m[0]:e,t=s.name,o=((u=s.meta)==null?void 0:u.module)??"";return{title:l.t(`meshes.routes.item.navigation.${t}`),routeName:t,module:o}});return(e,s)=>{const t=d("RouterView");return c(),i(C,null,{default:n(()=>[a(b,null,{default:n(()=>[a(N,{class:"route-mesh-view-tabs",tabs:h(_)},null,8,["tabs"]),v(),a(t,null,{default:n(o=>[(c(),i(w(o.Component),{key:o.route.path}))]),_:1})]),_:1})]),_:1})}}});export{D as default}; +import{d as p,v as f,r as d,o as c,a as i,w as n,h as a,b as h,g as v,i as w}from"./index-a4a530d1.js";import{k as R,g as b,_ as C}from"./RouteView.vue_vue_type_script_setup_true_lang-8e6a23b5.js";import{N}from"./NavTabs-9a8866d1.js";import"./kongponents.es-f7b55123.js";const D=p({__name:"MeshView",setup(V){var r;const l=R(),_=(((r=f().getRoutes().find(e=>e.name==="mesh-detail-view"))==null?void 0:r.children)??[]).map(e=>{var m,u;const s=typeof e.name>"u"?(m=e.children)==null?void 0:m[0]:e,t=s.name,o=((u=s.meta)==null?void 0:u.module)??"";return{title:l.t(`meshes.routes.item.navigation.${t}`),routeName:t,module:o}});return(e,s)=>{const t=d("RouterView");return c(),i(C,null,{default:n(()=>[a(b,null,{default:n(()=>[a(N,{class:"route-mesh-view-tabs",tabs:h(_)},null,8,["tabs"]),v(),a(t,null,{default:n(o=>[(c(),i(w(o.Component),{key:o.route.path}))]),_:1})]),_:1})]),_:1})}}});export{D as default}; diff --git a/app/kuma-ui/pkg/resources/data/assets/MeshWizard-54876954.js b/app/kuma-ui/pkg/resources/data/assets/MeshWizard-da10975e.js similarity index 97% rename from app/kuma-ui/pkg/resources/data/assets/MeshWizard-54876954.js rename to app/kuma-ui/pkg/resources/data/assets/MeshWizard-da10975e.js index f84001dee23c..fc21543df520 100644 --- a/app/kuma-ui/pkg/resources/data/assets/MeshWizard-54876954.js +++ b/app/kuma-ui/pkg/resources/data/assets/MeshWizard-da10975e.js @@ -1,4 +1,4 @@ -import{d as be,q as f,c as Y,s as A,N,L as j,o as u,a as g,w as s,h as c,b as h,g as l,k as t,t as y,f as p,G as r,H as b,O as v,J as x,e as O,p as fe,m as ve}from"./index-50754121.js";import{U as P,Z as W,S as J}from"./kongponents.es-07c2d778.js";import{_ as _e}from"./EntityScanner.vue_vue_type_script_setup_true_lang-e9ac5f5d.js";import{S as ke,F as m}from"./StepSkeleton-991a8da9.js";import{f as ye}from"./formatForCLI-931cd5c6.js";import{j as Te,k as Ee,l as Me,f as we,g as Se,_ as Ue,h as Ae}from"./RouteView.vue_vue_type_script_setup_true_lang-bc0afbf3.js";import{_ as Ne}from"./RouteTitle.vue_vue_type_script_setup_true_lang-c74dc965.js";import{_ as X}from"./CodeBlock.vue_vue_type_style_index_0_lang-559b3ab4.js";import{T as Ce}from"./TabsWidget-5826fd5b.js";import{Q as De}from"./QueryParameter-70743f73.js";import"./toYaml-4e00099e.js";import"./ErrorBlock-eb438aeb.js";import"./LoadingBlock.vue_vue_type_script_setup_true_lang-95ccda4d.js";const Le={mtls:{enabledBackend:null,backends:[]},tracing:{defaultBackend:null,backends:[{name:null,type:null}]},logging:{backends:[{name:null,format:'{ "destination": "%KUMA_DESTINATION_SERVICE%", "destinationAddress": "%UPSTREAM_LOCAL_ADDRESS%", "source": "%KUMA_SOURCE_SERVICE%", "sourceAddress": "%KUMA_SOURCE_ADDRESS%", "bytesReceived": "%BYTES_RECEIVED%", "bytesSent": "%BYTES_SENT%"}',type:null}]},metrics:{enabledBackend:null,backends:[{name:null,type:null}]}},i=C=>(fe("data-v-570b9a33"),C=C(),ve(),C),Be={class:"wizard"},Re={class:"wizard__content"},Ie=i(()=>t("code",null,"kubectl",-1)),Ve=i(()=>t("code",null,"kumactl",-1)),xe=i(()=>t("h3",null,` +import{d as be,q as f,c as Y,s as A,N,L as j,o as u,a as g,w as s,h as c,b as h,g as l,k as t,t as y,f as p,G as r,H as b,O as v,J as x,e as O,p as fe,m as ve}from"./index-a4a530d1.js";import{U as P,Z as W,S as J}from"./kongponents.es-f7b55123.js";import{_ as _e}from"./EntityScanner.vue_vue_type_script_setup_true_lang-a5d1cc1c.js";import{S as ke,F as m}from"./StepSkeleton-3ca715f8.js";import{f as ye}from"./formatForCLI-931cd5c6.js";import{j as Te,k as Ee,l as Me,f as we,g as Se,_ as Ue,h as Ae}from"./RouteView.vue_vue_type_script_setup_true_lang-8e6a23b5.js";import{_ as Ne}from"./RouteTitle.vue_vue_type_script_setup_true_lang-f4fc2caf.js";import{_ as X}from"./CodeBlock.vue_vue_type_style_index_0_lang-15a6fd20.js";import{T as Ce}from"./TabsWidget-a42020cd.js";import{Q as De}from"./QueryParameter-70743f73.js";import"./toYaml-4e00099e.js";import"./ErrorBlock-cc9ab0db.js";import"./LoadingBlock.vue_vue_type_script_setup_true_lang-2c479ce1.js";const Le={mtls:{enabledBackend:null,backends:[]},tracing:{defaultBackend:null,backends:[{name:null,type:null}]},logging:{backends:[{name:null,format:'{ "destination": "%KUMA_DESTINATION_SERVICE%", "destinationAddress": "%UPSTREAM_LOCAL_ADDRESS%", "source": "%KUMA_SOURCE_SERVICE%", "sourceAddress": "%KUMA_SOURCE_ADDRESS%", "bytesReceived": "%BYTES_RECEIVED%", "bytesSent": "%BYTES_SENT%"}',type:null}]},metrics:{enabledBackend:null,backends:[{name:null,type:null}]}},i=C=>(fe("data-v-570b9a33"),C=C(),ve(),C),Be={class:"wizard"},Re={class:"wizard__content"},Ie=i(()=>t("code",null,"kubectl",-1)),Ve=i(()=>t("code",null,"kumactl",-1)),xe=i(()=>t("h3",null,` To get started, please fill in the following information: `,-1)),Oe={class:"k-input-label mx-2"},Pe=i(()=>t("span",null,"Disabled",-1)),Ke={class:"k-input-label mx-2"},ze=i(()=>t("span",null,"Enabled",-1)),Fe=i(()=>t("option",{value:"builtin"},` builtin diff --git a/app/kuma-ui/pkg/resources/data/assets/MultiZoneView-538bb97d.js b/app/kuma-ui/pkg/resources/data/assets/MultiZoneView-38edbce4.js similarity index 86% rename from app/kuma-ui/pkg/resources/data/assets/MultiZoneView-538bb97d.js rename to app/kuma-ui/pkg/resources/data/assets/MultiZoneView-38edbce4.js index 1aea7cdf6fc0..b3b9f8c26fdb 100644 --- a/app/kuma-ui/pkg/resources/data/assets/MultiZoneView-538bb97d.js +++ b/app/kuma-ui/pkg/resources/data/assets/MultiZoneView-38edbce4.js @@ -1,4 +1,4 @@ -import{L as x}from"./LoadingBox-b09612df.js";import{O as z,a as Z,b as k}from"./OnboardingPage-392f5a8e.js";import{j as I,l as T,k as A,g as O,_ as N,h as V}from"./RouteView.vue_vue_type_script_setup_true_lang-bc0afbf3.js";import{_ as C}from"./RouteTitle.vue_vue_type_script_setup_true_lang-c74dc965.js";import{d as L,q as r,C as M,o as a,a as U,w as c,h as i,b as m,g as e,k as n,e as l,f as S,p as B,m as $}from"./index-50754121.js";import"./kongponents.es-07c2d778.js";const E=u=>(B("data-v-40900992"),u=u(),$(),u),K=E(()=>n("p",{class:"mb-4 text-center"},` +import{L as x}from"./LoadingBox-d716f607.js";import{O as z,a as Z,b as k}from"./OnboardingPage-fd4cb9d4.js";import{j as I,l as T,k as A,g as O,_ as N,h as V}from"./RouteView.vue_vue_type_script_setup_true_lang-8e6a23b5.js";import{_ as C}from"./RouteTitle.vue_vue_type_script_setup_true_lang-f4fc2caf.js";import{d as L,q as r,C as M,o as a,a as U,w as c,h as i,b as m,g as e,k as n,e as l,f as S,p as B,m as $}from"./index-a4a530d1.js";import"./kongponents.es-f7b55123.js";const E=u=>(B("data-v-40900992"),u=u(),$(),u),K=E(()=>n("p",{class:"mb-4 text-center"},` A zone requires both the zone control plane and zone ingress. On Kubernetes, you run a single command to create both resources. On Universal, you must create them separately. `,-1)),R={class:"mb-4 text-center"},D=["href"],P={class:"status-box mt-4"},q={key:0,class:"status--is-connected","data-testid":"zone-connected"},G={key:1,class:"status--is-disconnected","data-testid":"zone-disconnected"},j={class:"status-box mt-4"},H={key:0,class:"status--is-connected","data-testid":"zone-ingress-connected"},Q={key:1,class:"status--is-disconnected","data-testid":"zone-ingress-disconnected"},Y={key:0,class:"status-loading-box mt-4"},b=1e3,F=L({__name:"MultiZoneView",setup(u){const p=I(),f=T(),{t:y}=A(),s=r(!1),o=r(!1),d=r(null),_=r(null);M(function(){h(),w()}),v(),g();async function v(){try{const{total:t}=await p.getZones();s.value=t>0}catch(t){s.value=!1,console.error(t)}finally{s.value||(h(),d.value=window.setTimeout(v,b))}}async function g(){try{const{total:t}=await p.getAllZoneIngressOverviews();o.value=t>0}catch(t){o.value=!1,console.error(t)}finally{o.value||(w(),_.value=window.setTimeout(g,b))}}function h(){d.value!==null&&window.clearTimeout(d.value)}function w(){_.value!==null&&window.clearTimeout(_.value)}return(t,J)=>(a(),U(N,null,{default:c(()=>[i(C,{title:m(y)("onboarding.routes.multizone.title")},null,8,["title"]),e(),i(O,null,{default:c(()=>[i(z,null,{header:c(()=>[i(Z,null,{title:c(()=>[e(` Add zones diff --git a/app/kuma-ui/pkg/resources/data/assets/MultizoneInfo.vue_vue_type_script_setup_true_lang-1754f4fb.js b/app/kuma-ui/pkg/resources/data/assets/MultizoneInfo.vue_vue_type_script_setup_true_lang-cd891354.js similarity index 77% rename from app/kuma-ui/pkg/resources/data/assets/MultizoneInfo.vue_vue_type_script_setup_true_lang-1754f4fb.js rename to app/kuma-ui/pkg/resources/data/assets/MultizoneInfo.vue_vue_type_script_setup_true_lang-cd891354.js index 3404a45b1059..aae9abdc6b23 100644 --- a/app/kuma-ui/pkg/resources/data/assets/MultizoneInfo.vue_vue_type_script_setup_true_lang-1754f4fb.js +++ b/app/kuma-ui/pkg/resources/data/assets/MultizoneInfo.vue_vue_type_script_setup_true_lang-cd891354.js @@ -1,4 +1,4 @@ -import{l as r,S as i,b as l}from"./kongponents.es-07c2d778.js";import{d as c,o as _,a as u,w as n,h as s,b as e,g as a,k as t,t as m,B as p}from"./index-50754121.js";import{l as d}from"./RouteView.vue_vue_type_script_setup_true_lang-bc0afbf3.js";const g=t("p",null,[a(` +import{l as r,S as i,b as l}from"./kongponents.es-f7b55123.js";import{d as c,o as _,a as u,w as n,h as s,b as e,g as a,k as t,t as m,B as p}from"./index-a4a530d1.js";import{l as d}from"./RouteView.vue_vue_type_script_setup_true_lang-8e6a23b5.js";const g=t("p",null,[a(` To access this page, you must be running in `),t("strong",null,"Multi-Zone"),a(` mode. `)],-1),A=c({__name:"MultizoneInfo",setup(f){const o=d();return(M,S)=>(_(),u(e(l),null,{title:n(()=>[s(e(r),{class:"mb-3",icon:"dangerCircleOutline",size:"42"}),a(),t("p",null,m(e(p))+" is running in Standalone mode.",1)]),message:n(()=>[g]),cta:n(()=>[s(e(i),{to:`${e(o)("KUMA_DOCS_URL")}/documentation/deployments/?${e(o)("KUMA_UTM_QUERY_PARAMS")}`,target:"_blank",appearance:"primary"},{default:n(()=>[a(` Learn More diff --git a/app/kuma-ui/pkg/resources/data/assets/NavTabs-1f291852.js b/app/kuma-ui/pkg/resources/data/assets/NavTabs-9a8866d1.js similarity index 81% rename from app/kuma-ui/pkg/resources/data/assets/NavTabs-1f291852.js rename to app/kuma-ui/pkg/resources/data/assets/NavTabs-9a8866d1.js index a95b40cb2d12..d2a081e655c5 100644 --- a/app/kuma-ui/pkg/resources/data/assets/NavTabs-1f291852.js +++ b/app/kuma-ui/pkg/resources/data/assets/NavTabs-9a8866d1.js @@ -1 +1 @@ -import{d}from"./kongponents.es-07c2d778.js";import{d as _,u as p,c as n,r as i,o as f,a as N,l as v,j as b,w as u,h,g as x,t as k,b as y}from"./index-50754121.js";import{h as T}from"./RouteView.vue_vue_type_script_setup_true_lang-bc0afbf3.js";const g=_({__name:"NavTabs",props:{tabs:{type:Array,required:!0}},setup(c){const a=c,r=p(),m=n(()=>a.tabs.map(t=>({title:t.title,hash:"#"+t.routeName}))),l=n(()=>{const t=r.matched.map(e=>e.meta.module??"").filter(e=>e!=="");t.reverse();const s=a.tabs.find(e=>!!(e.routeName===r.name||t.includes(e.module)));return"#"+((s==null?void 0:s.routeName)??a.tabs[0].routeName)});return(t,s)=>{const o=i("router-link");return f(),N(y(d),{tabs:m.value,"model-value":l.value,"has-panels":!1,class:"nav-tabs","data-testid":"nav-tabs"},v({_:2},[b(a.tabs,e=>({name:`${e.routeName}-anchor`,fn:u(()=>[h(o,{to:{name:e.routeName}},{default:u(()=>[x(k(e.title),1)]),_:2},1032,["to"])])}))]),1032,["tabs","model-value"])}}});const S=T(g,[["__scopeId","data-v-1c3c46ad"]]);export{S as N}; +import{d}from"./kongponents.es-f7b55123.js";import{d as _,u as p,c as n,r as i,o as f,a as N,l as v,j as b,w as u,h,g as x,t as k,b as y}from"./index-a4a530d1.js";import{h as T}from"./RouteView.vue_vue_type_script_setup_true_lang-8e6a23b5.js";const g=_({__name:"NavTabs",props:{tabs:{type:Array,required:!0}},setup(c){const a=c,r=p(),m=n(()=>a.tabs.map(t=>({title:t.title,hash:"#"+t.routeName}))),l=n(()=>{const t=r.matched.map(e=>e.meta.module??"").filter(e=>e!=="");t.reverse();const s=a.tabs.find(e=>!!(e.routeName===r.name||t.includes(e.module)));return"#"+((s==null?void 0:s.routeName)??a.tabs[0].routeName)});return(t,s)=>{const o=i("router-link");return f(),N(y(d),{tabs:m.value,"model-value":l.value,"has-panels":!1,class:"nav-tabs","data-testid":"nav-tabs"},v({_:2},[b(a.tabs,e=>({name:`${e.routeName}-anchor`,fn:u(()=>[h(o,{to:{name:e.routeName}},{default:u(()=>[x(k(e.title),1)]),_:2},1032,["to"])])}))]),1032,["tabs","model-value"])}}});const S=T(g,[["__scopeId","data-v-1c3c46ad"]]);export{S as N}; diff --git a/app/kuma-ui/pkg/resources/data/assets/OnboardingPage-392f5a8e.js b/app/kuma-ui/pkg/resources/data/assets/OnboardingPage-fd4cb9d4.js similarity index 92% rename from app/kuma-ui/pkg/resources/data/assets/OnboardingPage-392f5a8e.js rename to app/kuma-ui/pkg/resources/data/assets/OnboardingPage-fd4cb9d4.js index 73174303df7f..7375bda2f6f4 100644 --- a/app/kuma-ui/pkg/resources/data/assets/OnboardingPage-392f5a8e.js +++ b/app/kuma-ui/pkg/resources/data/assets/OnboardingPage-fd4cb9d4.js @@ -1,4 +1,4 @@ -import{d as g,E as S,o as s,e as p,k as a,n as i,g as o,b as c,f as u,a as f,w as l,h as y,t as k,z as x,p as $,m as O}from"./index-50754121.js";import{h as v,f as w}from"./RouteView.vue_vue_type_script_setup_true_lang-bc0afbf3.js";import{S as _}from"./kongponents.es-07c2d778.js";const N={class:"onboarding-heading"},B={class:"onboarding-title"},I={key:0,class:"onboarding-description"},q=g({__name:"OnboardingHeading",setup(n){const e=S();return(t,d)=>(s(),p("div",N,[a("h1",B,[i(t.$slots,"title",{},void 0,!0)]),o(),c(e).description?(s(),p("div",I,[i(t.$slots,"description",{},void 0,!0)])):u("",!0)]))}});const K=v(q,[["__scopeId","data-v-166d4213"]]),C={class:"onboarding-actions"},V={class:"button-list"},H=g({__name:"OnboardingNavigation",props:{shouldAllowNext:{type:Boolean,required:!1,default:!0},showSkip:{type:Boolean,required:!1,default:!0},nextStep:{type:String,required:!0},previousStep:{type:String,required:!1,default:""},nextStepTitle:{type:String,required:!1,default:"Next"},lastStep:{type:Boolean,required:!1,default:!1}},setup(n){const e=n,t=w();function d(){t.dispatch("onboarding/completeOnboarding")}function b(h){t.dispatch("onboarding/changeStep",h)}return(h,r)=>(s(),p("div",C,[e.previousStep?(s(),f(c(_),{key:0,appearance:"secondary",to:{name:e.previousStep},"data-testid":"onboarding-previous-button",onClick:r[0]||(r[0]=m=>b(e.previousStep))},{default:l(()=>[o(` +import{d as g,E as S,o as s,e as p,k as a,n as i,g as o,b as c,f as u,a as f,w as l,h as y,t as k,z as x,p as $,m as O}from"./index-a4a530d1.js";import{h as v,f as w}from"./RouteView.vue_vue_type_script_setup_true_lang-8e6a23b5.js";import{S as _}from"./kongponents.es-f7b55123.js";const N={class:"onboarding-heading"},B={class:"onboarding-title"},I={key:0,class:"onboarding-description"},q=g({__name:"OnboardingHeading",setup(n){const e=S();return(t,d)=>(s(),p("div",N,[a("h1",B,[i(t.$slots,"title",{},void 0,!0)]),o(),c(e).description?(s(),p("div",I,[i(t.$slots,"description",{},void 0,!0)])):u("",!0)]))}});const K=v(q,[["__scopeId","data-v-166d4213"]]),C={class:"onboarding-actions"},V={class:"button-list"},H=g({__name:"OnboardingNavigation",props:{shouldAllowNext:{type:Boolean,required:!1,default:!0},showSkip:{type:Boolean,required:!1,default:!0},nextStep:{type:String,required:!0},previousStep:{type:String,required:!1,default:""},nextStepTitle:{type:String,required:!1,default:"Next"},lastStep:{type:Boolean,required:!1,default:!1}},setup(n){const e=n,t=w();function d(){t.dispatch("onboarding/completeOnboarding")}function b(h){t.dispatch("onboarding/changeStep",h)}return(h,r)=>(s(),p("div",C,[e.previousStep?(s(),f(c(_),{key:0,appearance:"secondary",to:{name:e.previousStep},"data-testid":"onboarding-previous-button",onClick:r[0]||(r[0]=m=>b(e.previousStep))},{default:l(()=>[o(` Back `)]),_:1},8,["to"])):u("",!0),o(),a("div",V,[e.showSkip?(s(),f(c(_),{key:0,appearance:"outline","data-testid":"onboarding-skip-button",to:{name:"home"},onClick:d},{default:l(()=>[o(` Skip setup diff --git a/app/kuma-ui/pkg/resources/data/assets/OnboardingView-ccceb63a.js b/app/kuma-ui/pkg/resources/data/assets/OnboardingView-3d4c14ac.js similarity index 70% rename from app/kuma-ui/pkg/resources/data/assets/OnboardingView-ccceb63a.js rename to app/kuma-ui/pkg/resources/data/assets/OnboardingView-3d4c14ac.js index fac7528a127d..87cc05c2c1cf 100644 --- a/app/kuma-ui/pkg/resources/data/assets/OnboardingView-ccceb63a.js +++ b/app/kuma-ui/pkg/resources/data/assets/OnboardingView-3d4c14ac.js @@ -1 +1 @@ -import{g as s,_}from"./RouteView.vue_vue_type_script_setup_true_lang-bc0afbf3.js";import{d as c,r as i,o,a,w as e,h as n,i as l}from"./index-50754121.js";import"./kongponents.es-07c2d778.js";const v=c({__name:"OnboardingView",setup(m){return(p,u)=>{const t=i("router-view");return o(),a(_,null,{default:e(()=>[n(s,null,{default:e(()=>[n(t,null,{default:e(({Component:r})=>[(o(),a(l(r)))]),_:1})]),_:1})]),_:1})}}});export{v as default}; +import{g as s,_}from"./RouteView.vue_vue_type_script_setup_true_lang-8e6a23b5.js";import{d as c,r as i,o,a,w as e,h as n,i as l}from"./index-a4a530d1.js";import"./kongponents.es-f7b55123.js";const v=c({__name:"OnboardingView",setup(m){return(p,u)=>{const t=i("router-view");return o(),a(_,null,{default:e(()=>[n(s,null,{default:e(()=>[n(t,null,{default:e(({Component:r})=>[(o(),a(l(r)))]),_:1})]),_:1})]),_:1})}}});export{v as default}; diff --git a/app/kuma-ui/pkg/resources/data/assets/PolicyDetailView-16b5de61.js b/app/kuma-ui/pkg/resources/data/assets/PolicyDetailView-16b5de61.js deleted file mode 100644 index 57127f51db8b..000000000000 --- a/app/kuma-ui/pkg/resources/data/assets/PolicyDetailView-16b5de61.js +++ /dev/null @@ -1 +0,0 @@ -import{d as h,u as _,c as f,o as i,a as m,w as p,h as r,b as c,g as y,f as d}from"./index-50754121.js";import{_ as P}from"./PolicyDetails.vue_vue_type_script_setup_true_lang-67e41c63.js";import{f as b,k as x,g as N,_ as k}from"./RouteView.vue_vue_type_script_setup_true_lang-bc0afbf3.js";import{_ as w}from"./RouteTitle.vue_vue_type_script_setup_true_lang-c74dc965.js";import"./StatusInfo.vue_vue_type_script_setup_true_lang-eefb4f85.js";import"./EmptyBlock.vue_vue_type_script_setup_true_lang-34eb656c.js";import"./kongponents.es-07c2d778.js";import"./ErrorBlock-eb438aeb.js";import"./LoadingBlock.vue_vue_type_script_setup_true_lang-95ccda4d.js";import"./ResourceCodeBlock.vue_vue_type_script_setup_true_lang-d4356ea6.js";import"./CodeBlock.vue_vue_type_style_index_0_lang-559b3ab4.js";import"./TextWithCopyButton-d85f5945.js";import"./toYaml-4e00099e.js";import"./TabsWidget-5826fd5b.js";import"./QueryParameter-70743f73.js";const G=h({__name:"PolicyDetailView",props:{mesh:{},policyPath:{},policyName:{}},setup(l){const e=l,n=_(),t=b(),{t:a}=x(),o=f(()=>t.state.policyTypesByPath[e.policyPath]);u();function u(){t.dispatch("updatePageTitle",n.params.policy)}return(T,V)=>(i(),m(k,{module:"policies"},{default:p(({route:s})=>[r(w,{title:c(a)("policies.routes.item.title")},null,8,["title"]),y(),r(N,{breadcrumbs:[{to:{name:"policies-list-view",params:{mesh:s.params.mesh,policyPath:s.params.policyPath}},text:c(a)("policies.routes.item.breadcrumbs")}]},{default:p(()=>[o.value?(i(),m(P,{key:0,name:e.policyName,mesh:e.mesh,path:e.policyPath,type:o.value.name},null,8,["name","mesh","path","type"])):d("",!0)]),_:2},1032,["breadcrumbs"])]),_:1}))}});export{G as default}; diff --git a/app/kuma-ui/pkg/resources/data/assets/PolicyDetailView-c9246967.js b/app/kuma-ui/pkg/resources/data/assets/PolicyDetailView-c9246967.js new file mode 100644 index 000000000000..2b8b9ae65bf2 --- /dev/null +++ b/app/kuma-ui/pkg/resources/data/assets/PolicyDetailView-c9246967.js @@ -0,0 +1 @@ +import{_ as n}from"./PolicyDetails.vue_vue_type_script_setup_true_lang-2a0ba52f.js";import{f as u,k as _,g as h,_ as y}from"./RouteView.vue_vue_type_script_setup_true_lang-8e6a23b5.js";import{_ as f}from"./RouteTitle.vue_vue_type_script_setup_true_lang-f4fc2caf.js";import{d,c as b,o as s,a as m,w as i,h as p,b as r,g as P,f as x}from"./index-a4a530d1.js";import"./StatusInfo.vue_vue_type_script_setup_true_lang-8a43cc10.js";import"./EmptyBlock.vue_vue_type_script_setup_true_lang-ddebee78.js";import"./kongponents.es-f7b55123.js";import"./ErrorBlock-cc9ab0db.js";import"./LoadingBlock.vue_vue_type_script_setup_true_lang-2c479ce1.js";import"./ResourceCodeBlock.vue_vue_type_script_setup_true_lang-6b64ed3d.js";import"./CodeBlock.vue_vue_type_style_index_0_lang-15a6fd20.js";import"./TextWithCopyButton-4f241d23.js";import"./toYaml-4e00099e.js";import"./TabsWidget-a42020cd.js";import"./QueryParameter-70743f73.js";const E=d({__name:"PolicyDetailView",props:{mesh:{},policyPath:{},policyName:{}},setup(c){const e=c,l=u(),{t:a}=_(),o=b(()=>l.state.policyTypesByPath[e.policyPath]);return(N,k)=>(s(),m(y,{module:"policies"},{default:i(({route:t})=>[p(f,{title:r(a)("policies.routes.item.title",{name:t.params.policy})},null,8,["title"]),P(),p(h,{breadcrumbs:[{to:{name:"policies-list-view",params:{mesh:t.params.mesh,policyPath:t.params.policyPath}},text:r(a)("policies.routes.item.breadcrumbs")}]},{default:i(()=>[o.value?(s(),m(n,{key:0,name:e.policyName,mesh:e.mesh,path:e.policyPath,type:o.value.name},null,8,["name","mesh","path","type"])):x("",!0)]),_:2},1032,["breadcrumbs"])]),_:1}))}});export{E as default}; diff --git a/app/kuma-ui/pkg/resources/data/assets/PolicyDetails.vue_vue_type_script_setup_true_lang-67e41c63.js b/app/kuma-ui/pkg/resources/data/assets/PolicyDetails.vue_vue_type_script_setup_true_lang-2a0ba52f.js similarity index 89% rename from app/kuma-ui/pkg/resources/data/assets/PolicyDetails.vue_vue_type_script_setup_true_lang-67e41c63.js rename to app/kuma-ui/pkg/resources/data/assets/PolicyDetails.vue_vue_type_script_setup_true_lang-2a0ba52f.js index 82b55bf0b575..e31f38a857a0 100644 --- a/app/kuma-ui/pkg/resources/data/assets/PolicyDetails.vue_vue_type_script_setup_true_lang-67e41c63.js +++ b/app/kuma-ui/pkg/resources/data/assets/PolicyDetails.vue_vue_type_script_setup_true_lang-2a0ba52f.js @@ -1,3 +1,3 @@ -import{d as k,q as p,c as P,s as b,y as D,r as x,o as y,a as N,w as t,g as u,G as T,H as B,k as w,e as v,j as V,h as n,t as g,F as A}from"./index-50754121.js";import{_ as L}from"./StatusInfo.vue_vue_type_script_setup_true_lang-eefb4f85.js";import{j as C}from"./RouteView.vue_vue_type_script_setup_true_lang-bc0afbf3.js";import{_ as $}from"./ResourceCodeBlock.vue_vue_type_script_setup_true_lang-d4356ea6.js";import{T as E}from"./TabsWidget-5826fd5b.js";import{T as F}from"./TextWithCopyButton-d85f5945.js";const j=w("h2",null,"Dataplanes",-1),H=k({__name:"PolicyConnections",props:{mesh:{type:String,required:!0},policyPath:{type:String,required:!0},policyName:{type:String,required:!0}},setup(f){const e=f,_=C(),m=p(!1),o=p(!0),r=p(!1),i=p([]),a=p(""),l=P(()=>{const h=a.value.toLowerCase();return i.value.filter(({dataplane:s})=>s.name.toLowerCase().includes(h))});b(()=>e.policyName,function(){d()}),D(function(){d()});async function d(){r.value=!1,o.value=!0;try{const{items:h,total:s}=await _.getPolicyConnections({mesh:e.mesh,policyPath:e.policyPath,policyName:e.policyName});m.value=s>0,i.value=h??[]}catch{r.value=!0}finally{o.value=!1}}return(h,s)=>{const q=x("router-link");return y(),N(L,{"has-error":r.value,"is-loading":o.value,"is-empty":!m.value},{default:t(()=>[j,u(),T(w("input",{id:"dataplane-search","onUpdate:modelValue":s[0]||(s[0]=c=>a.value=c),type:"text",class:"k-input mt-4",placeholder:"Filter by name",required:"","data-testid":"dataplane-search-input"},null,512),[[B,a.value]]),u(),(y(!0),v(A,null,V(l.value,(c,S)=>(y(),v("p",{key:S,class:"mt-2","data-testid":"dataplane-name"},[n(q,{to:{name:"data-plane-detail-view",params:{mesh:c.dataplane.mesh,dataPlane:c.dataplane.name}}},{default:t(()=>[u(g(c.dataplane.name),1)]),_:2},1032,["to"])]))),128))]),_:1},8,["has-error","is-loading","is-empty"])}}}),I={class:"policy-details kcard-border"},M={class:"entity-heading","data-testid":"policy-single-entity"},z=k({__name:"PolicyDetails",props:{mesh:{type:String,required:!0},path:{type:String,required:!0},name:{type:String,required:!0},type:{type:String,required:!0}},setup(f){const e=f,_=C(),m=[{hash:"#overview",title:"Overview"},{hash:"#affected-dpps",title:"Affected DPPs"}],o=P(()=>({name:"policy-detail-view",params:{mesh:e.mesh,policy:e.name,policyPath:e.path}}));async function r(i){const{name:a,mesh:l,path:d}=e;return await _.getSinglePolicyEntity({name:a,mesh:l,path:d},i)}return(i,a)=>{const l=x("router-link");return y(),v("div",I,[n(E,{tabs:m},{tabHeader:t(()=>[w("h1",M,[u(g(e.type)+`: +import{d as k,q as p,c as P,s as b,y as D,r as x,o as y,a as N,w as t,g as u,G as T,H as B,k as w,e as v,j as V,h as n,t as g,F as A}from"./index-a4a530d1.js";import{_ as L}from"./StatusInfo.vue_vue_type_script_setup_true_lang-8a43cc10.js";import{j as C}from"./RouteView.vue_vue_type_script_setup_true_lang-8e6a23b5.js";import{_ as $}from"./ResourceCodeBlock.vue_vue_type_script_setup_true_lang-6b64ed3d.js";import{T as E}from"./TabsWidget-a42020cd.js";import{T as F}from"./TextWithCopyButton-4f241d23.js";const j=w("h2",null,"Dataplanes",-1),H=k({__name:"PolicyConnections",props:{mesh:{type:String,required:!0},policyPath:{type:String,required:!0},policyName:{type:String,required:!0}},setup(f){const e=f,_=C(),m=p(!1),o=p(!0),r=p(!1),i=p([]),a=p(""),l=P(()=>{const h=a.value.toLowerCase();return i.value.filter(({dataplane:s})=>s.name.toLowerCase().includes(h))});b(()=>e.policyName,function(){d()}),D(function(){d()});async function d(){r.value=!1,o.value=!0;try{const{items:h,total:s}=await _.getPolicyConnections({mesh:e.mesh,policyPath:e.policyPath,policyName:e.policyName});m.value=s>0,i.value=h??[]}catch{r.value=!0}finally{o.value=!1}}return(h,s)=>{const q=x("router-link");return y(),N(L,{"has-error":r.value,"is-loading":o.value,"is-empty":!m.value},{default:t(()=>[j,u(),T(w("input",{id:"dataplane-search","onUpdate:modelValue":s[0]||(s[0]=c=>a.value=c),type:"text",class:"k-input mt-4",placeholder:"Filter by name",required:"","data-testid":"dataplane-search-input"},null,512),[[B,a.value]]),u(),(y(!0),v(A,null,V(l.value,(c,S)=>(y(),v("p",{key:S,class:"mt-2","data-testid":"dataplane-name"},[n(q,{to:{name:"data-plane-detail-view",params:{mesh:c.dataplane.mesh,dataPlane:c.dataplane.name}}},{default:t(()=>[u(g(c.dataplane.name),1)]),_:2},1032,["to"])]))),128))]),_:1},8,["has-error","is-loading","is-empty"])}}}),I={class:"policy-details kcard-border"},M={class:"entity-heading","data-testid":"policy-single-entity"},z=k({__name:"PolicyDetails",props:{mesh:{type:String,required:!0},path:{type:String,required:!0},name:{type:String,required:!0},type:{type:String,required:!0}},setup(f){const e=f,_=C(),m=[{hash:"#overview",title:"Overview"},{hash:"#affected-dpps",title:"Affected DPPs"}],o=P(()=>({name:"policy-detail-view",params:{mesh:e.mesh,policy:e.name,policyPath:e.path}}));async function r(i){const{name:a,mesh:l,path:d}=e;return await _.getSinglePolicyEntity({name:a,mesh:l,path:d},i)}return(i,a)=>{const l=x("router-link");return y(),v("div",I,[n(E,{tabs:m},{tabHeader:t(()=>[w("h1",M,[u(g(e.type)+`: `,1),n(F,{text:e.name},{default:t(()=>[n(l,{to:o.value},{default:t(()=>[u(g(e.name),1)]),_:1},8,["to"])]),_:1},8,["text"])])]),overview:t(()=>[n($,{id:"code-block-policy","resource-fetcher":r,"resource-fetcher-watch-key":e.name,"is-searchable":""},null,8,["resource-fetcher-watch-key"])]),"affected-dpps":t(()=>[n(H,{mesh:e.mesh,"policy-name":e.name,"policy-path":e.path},null,8,["mesh","policy-name","policy-path"])]),_:1})])}}});export{z as _}; diff --git a/app/kuma-ui/pkg/resources/data/assets/PolicyListView-0ef1f381.css b/app/kuma-ui/pkg/resources/data/assets/PolicyListView-0ef1f381.css new file mode 100644 index 000000000000..132bf06653e8 --- /dev/null +++ b/app/kuma-ui/pkg/resources/data/assets/PolicyListView-0ef1f381.css @@ -0,0 +1 @@ +.policy-type-empty[data-v-ed39ec55]{color:var(--grey-400)}.entity-heading[data-v-ed39ec55]{font-size:inherit;font-weight:var(--font-weight-regular)} diff --git a/app/kuma-ui/pkg/resources/data/assets/PolicyListView-1703e6b7.css b/app/kuma-ui/pkg/resources/data/assets/PolicyListView-1703e6b7.css deleted file mode 100644 index 0cb68c591582..000000000000 --- a/app/kuma-ui/pkg/resources/data/assets/PolicyListView-1703e6b7.css +++ /dev/null @@ -1 +0,0 @@ -.policy-type-empty[data-v-290f5505]{color:var(--grey-400)}.entity-heading[data-v-290f5505]{font-size:inherit;font-weight:var(--font-weight-regular)} diff --git a/app/kuma-ui/pkg/resources/data/assets/PolicyListView-25092e07.js b/app/kuma-ui/pkg/resources/data/assets/PolicyListView-25092e07.js deleted file mode 100644 index dda80540e62b..000000000000 --- a/app/kuma-ui/pkg/resources/data/assets/PolicyListView-25092e07.js +++ /dev/null @@ -1,5 +0,0 @@ -import{l as Z,S as F,U as W,Z as j,h as G}from"./kongponents.es-07c2d778.js";import{d as I,o as _,a as P,w as i,h as r,b as t,g as d,u as Y,v as H,q as m,c as b,s as J,e as X,k as y,f as x,P as L,z as U,t as ee,p as ae,m as te}from"./index-50754121.js";import{_ as se}from"./PolicyDetails.vue_vue_type_script_setup_true_lang-67e41c63.js";import{l as le,j as oe,f as ne,k as ie,g as re,_ as ce,h as pe}from"./RouteView.vue_vue_type_script_setup_true_lang-bc0afbf3.js";import{_ as ue}from"./RouteTitle.vue_vue_type_script_setup_true_lang-c74dc965.js";import{D as me}from"./DataOverview-5b210bb7.js";import{Q as $}from"./QueryParameter-70743f73.js";import"./StatusInfo.vue_vue_type_script_setup_true_lang-eefb4f85.js";import"./EmptyBlock.vue_vue_type_script_setup_true_lang-34eb656c.js";import"./ErrorBlock-eb438aeb.js";import"./LoadingBlock.vue_vue_type_script_setup_true_lang-95ccda4d.js";import"./ResourceCodeBlock.vue_vue_type_script_setup_true_lang-d4356ea6.js";import"./CodeBlock.vue_vue_type_style_index_0_lang-559b3ab4.js";import"./TextWithCopyButton-d85f5945.js";import"./toYaml-4e00099e.js";import"./TabsWidget-5826fd5b.js";import"./TagList-a0e27239.js";import"./StatusBadge-9e322ea6.js";const de=I({__name:"DocumentationLink",props:{href:{type:String,required:!0}},setup(l){const a=l;return(k,N)=>(_(),P(t(F),{class:"docs-link",appearance:"outline",target:"_blank",to:a.href},{default:i(()=>[r(t(Z),{icon:"externalLink",color:"currentColor",size:"16","hide-title":""}),d(` - - Documentation - `)]),_:1},8,["to"]))}}),ye=l=>(ae("data-v-290f5505"),l=l(),te(),l),he={class:"kcard-stack"},fe={class:"kcard-border"},_e=ye(()=>y("p",null,[y("strong",null,"Warning"),d(` This policy is experimental. If you encountered any problem please open an - `),y("a",{href:"https://github.com/kumahq/kuma/issues/new/choose",target:"_blank",rel:"noopener noreferrer"},"issue")],-1)),ve=I({__name:"PolicyListView",props:{selectedPolicyName:{type:[String,null],required:!1,default:null},policyPath:{type:String,required:!0},offset:{type:Number,required:!1,default:0}},setup(l){const a=l,k=le(),N=oe(),o=Y(),V=H(),n=ne(),{t:B}=ie(),T=m(!0),w=m(null),D=m(null),A=m(a.offset),v=m(a.selectedPolicyName),h=m({headers:[{label:"Name",key:"entity"},{label:"Type",key:"type"}],data:[]}),C=b(()=>o.params.mesh),s=b(()=>n.state.policyTypesByPath[a.policyPath]),M=b(()=>n.state.policyTypes.map(e=>({label:e.name,value:e.path,selected:e.path===a.policyPath}))),q=b(()=>n.state.policyTypes.filter(e=>(n.state.sidebar.insights.mesh.policies[e.name]??0)===0).map(e=>e.name));J(()=>o.params.mesh,function(){o.name===a.policyPath&&S(0)}),z();async function z(){const e=n.state.policyTypesByPath[a.policyPath];e!==void 0&&(await n.dispatch("updatePageTitle",""),await n.dispatch("updatePageTitle",e.name)),S(a.offset)}async function S(e){var g;A.value=e,$.set("offset",e>0?e:null),T.value=!0,w.value=null;const c=o.params.mesh,p=o.params.policyPath,u=L;try{const{items:f,next:Q}=await N.getAllPolicyEntitiesFromMesh({mesh:c,path:p},{size:u,offset:e});D.value=Q,h.value.data=R(f??[]),E({name:a.selectedPolicyName??((g=h.value.data[0])==null?void 0:g.entity.name)})}catch(f){h.value.data=[],f instanceof Error?w.value=f:console.error(f)}finally{T.value=!1}}function R(e){return e.map(c=>{const{type:p,name:u}=c,g={name:"policy-detail-view",params:{mesh:c.mesh,policyPath:o.params.policyPath,policy:u}};return{entity:c,detailViewRoute:g,type:p}})}function K(e){E({name:e.name})}function E({name:e}){v.value=e??null,$.set("policy",e??null)}function O(e){V.push({name:"policies-list-view",params:{...o.params,policyPath:e.value}})}return(e,c)=>(_(),P(ce,{module:"policies"},{default:i(()=>{var p;return[r(ue,{title:t(B)("policies.routes.items.title",{name:(p=s.value)==null?void 0:p.name})},null,8,["title"]),d(),r(re,null,{default:i(()=>[s.value?(_(),X("div",{key:0,class:U(["relative",s.value.path])},[y("div",he,[y("div",fe,[s.value.isExperimental?(_(),P(t(W),{key:0,"border-variant":"noBorder",class:"mb-4"},{body:i(()=>[r(t(j),{appearance:"warning"},{alertMessage:i(()=>[_e]),_:1})]),_:1})):x("",!0),d(),r(me,{"selected-entity-name":v.value??void 0,"page-size":t(L),error:w.value,"is-loading":T.value,"empty-state":{title:"No Data",message:`There are no ${s.value.name} policies present.`},"table-data":h.value,"table-data-is-empty":h.value.data.length===0,next:D.value,"page-offset":A.value,onTableAction:K,onLoadData:S},{additionalControls:i(()=>[r(t(G),{label:"Policies",items:M.value,"label-attributes":{class:"visually-hidden"},appearance:"select","enable-filtering":!0,onSelected:O},{"item-template":i(({item:u})=>[y("span",{class:U({"policy-type-empty":q.value.includes(u.label)})},ee(u.label),3)]),_:1},8,["items"]),d(),r(de,{href:`${t(k)("KUMA_DOCS_URL")}/policies/${s.value.path}/?${t(k)("KUMA_UTM_QUERY_PARAMS")}`,"data-testid":"policy-documentation-link"},null,8,["href"])]),_:1},8,["selected-entity-name","page-size","error","is-loading","empty-state","table-data","table-data-is-empty","next","page-offset"])]),d(),v.value!==null?(_(),P(se,{key:0,name:v.value,mesh:C.value,path:s.value.path,type:s.value.name},null,8,["name","mesh","path","type"])):x("",!0)])],2)):x("",!0)]),_:1})]}),_:1}))}});const Ce=pe(ve,[["__scopeId","data-v-290f5505"]]);export{Ce as default}; diff --git a/app/kuma-ui/pkg/resources/data/assets/PolicyListView-690a3779.js b/app/kuma-ui/pkg/resources/data/assets/PolicyListView-690a3779.js new file mode 100644 index 000000000000..ac90d1f699cb --- /dev/null +++ b/app/kuma-ui/pkg/resources/data/assets/PolicyListView-690a3779.js @@ -0,0 +1,5 @@ +import{l as Z,S as F,U as W,Z as j,h as G}from"./kongponents.es-f7b55123.js";import{d as I,o as _,a as P,w as n,h as i,b as t,g as m,u as Y,v as H,q as u,c as g,s as J,e as X,k as d,f as N,P as L,z as U,t as ee,p as ae,m as te}from"./index-a4a530d1.js";import{_ as se}from"./PolicyDetails.vue_vue_type_script_setup_true_lang-2a0ba52f.js";import{l as le,j as oe,f as ne,k as ie,g as re,_ as ce,h as pe}from"./RouteView.vue_vue_type_script_setup_true_lang-8e6a23b5.js";import{_ as ue}from"./RouteTitle.vue_vue_type_script_setup_true_lang-f4fc2caf.js";import{D as me}from"./DataOverview-7c85e051.js";import{Q as $}from"./QueryParameter-70743f73.js";import"./StatusInfo.vue_vue_type_script_setup_true_lang-8a43cc10.js";import"./EmptyBlock.vue_vue_type_script_setup_true_lang-ddebee78.js";import"./ErrorBlock-cc9ab0db.js";import"./LoadingBlock.vue_vue_type_script_setup_true_lang-2c479ce1.js";import"./ResourceCodeBlock.vue_vue_type_script_setup_true_lang-6b64ed3d.js";import"./CodeBlock.vue_vue_type_style_index_0_lang-15a6fd20.js";import"./TextWithCopyButton-4f241d23.js";import"./toYaml-4e00099e.js";import"./TabsWidget-a42020cd.js";import"./TagList-76ef6044.js";import"./StatusBadge-6b87699d.js";const de=I({__name:"DocumentationLink",props:{href:{type:String,required:!0}},setup(l){const a=l;return(k,T)=>(_(),P(t(F),{class:"docs-link",appearance:"outline",target:"_blank",to:a.href},{default:n(()=>[i(t(Z),{icon:"externalLink",color:"currentColor",size:"16","hide-title":""}),m(` + + Documentation + `)]),_:1},8,["to"]))}}),ye=l=>(ae("data-v-ed39ec55"),l=l(),te(),l),he={class:"kcard-stack"},_e={class:"kcard-border"},fe=ye(()=>d("p",null,[d("strong",null,"Warning"),m(` This policy is experimental. If you encountered any problem please open an + `),d("a",{href:"https://github.com/kumahq/kuma/issues/new/choose",target:"_blank",rel:"noopener noreferrer"},"issue")],-1)),ve=I({__name:"PolicyListView",props:{selectedPolicyName:{type:[String,null],required:!1,default:null},policyPath:{type:String,required:!0},offset:{type:Number,required:!1,default:0}},setup(l){const a=l,k=le(),T=oe(),o=Y(),V=H(),f=ne(),{t:C}=ie(),S=u(!0),w=u(null),D=u(null),A=u(a.offset),v=u(a.selectedPolicyName),y=u({headers:[{label:"Name",key:"entity"},{label:"Type",key:"type"}],data:[]}),M=g(()=>o.params.mesh),s=g(()=>f.state.policyTypesByPath[a.policyPath]),q=g(()=>f.state.policyTypes.map(e=>({label:e.name,value:e.path,selected:e.path===a.policyPath}))),z=g(()=>f.state.policyTypes.filter(e=>(f.state.sidebar.insights.mesh.policies[e.name]??0)===0).map(e=>e.name));J(()=>o.params.mesh,function(){o.name===a.policyPath&&x(0)}),B();async function B(){x(a.offset)}async function x(e){var b;A.value=e,$.set("offset",e>0?e:null),S.value=!0,w.value=null;const r=o.params.mesh,c=o.params.policyPath,p=L;try{const{items:h,next:Q}=await T.getAllPolicyEntitiesFromMesh({mesh:r,path:c},{size:p,offset:e});D.value=Q,y.value.data=R(h??[]),E({name:a.selectedPolicyName??((b=y.value.data[0])==null?void 0:b.entity.name)})}catch(h){y.value.data=[],h instanceof Error?w.value=h:console.error(h)}finally{S.value=!1}}function R(e){return e.map(r=>{const{type:c,name:p}=r,b={name:"policy-detail-view",params:{mesh:r.mesh,policyPath:o.params.policyPath,policy:p}};return{entity:r,detailViewRoute:b,type:c}})}function K(e){E({name:e.name})}function E({name:e}){v.value=e??null,$.set("policy",e??null)}function O(e){V.push({name:"policies-list-view",params:{...o.params,policyPath:e.value}})}return(e,r)=>(_(),P(ce,{module:"policies"},{default:n(()=>{var c;return[i(ue,{title:t(C)("policies.routes.items.title",{name:(c=s.value)==null?void 0:c.name})},null,8,["title"]),m(),i(re,null,{default:n(()=>[s.value?(_(),X("div",{key:0,class:U(["relative",s.value.path])},[d("div",he,[d("div",_e,[s.value.isExperimental?(_(),P(t(W),{key:0,"border-variant":"noBorder",class:"mb-4"},{body:n(()=>[i(t(j),{appearance:"warning"},{alertMessage:n(()=>[fe]),_:1})]),_:1})):N("",!0),m(),i(me,{"selected-entity-name":v.value??void 0,"page-size":t(L),error:w.value,"is-loading":S.value,"empty-state":{title:"No Data",message:`There are no ${s.value.name} policies present.`},"table-data":y.value,"table-data-is-empty":y.value.data.length===0,next:D.value,"page-offset":A.value,onTableAction:K,onLoadData:x},{additionalControls:n(()=>[i(t(G),{label:"Policies",items:q.value,"label-attributes":{class:"visually-hidden"},appearance:"select","enable-filtering":!0,onSelected:O},{"item-template":n(({item:p})=>[d("span",{class:U({"policy-type-empty":z.value.includes(p.label)})},ee(p.label),3)]),_:1},8,["items"]),m(),i(de,{href:`${t(k)("KUMA_DOCS_URL")}/policies/${s.value.path}/?${t(k)("KUMA_UTM_QUERY_PARAMS")}`,"data-testid":"policy-documentation-link"},null,8,["href"])]),_:1},8,["selected-entity-name","page-size","error","is-loading","empty-state","table-data","table-data-is-empty","next","page-offset"])]),m(),v.value!==null?(_(),P(se,{key:0,name:v.value,mesh:M.value,path:s.value.path,type:s.value.name},null,8,["name","mesh","path","type"])):N("",!0)])],2)):N("",!0)]),_:1})]}),_:1}))}});const Me=pe(ve,[["__scopeId","data-v-ed39ec55"]]);export{Me as default}; diff --git a/app/kuma-ui/pkg/resources/data/assets/ResourceCodeBlock.vue_vue_type_script_setup_true_lang-d4356ea6.js b/app/kuma-ui/pkg/resources/data/assets/ResourceCodeBlock.vue_vue_type_script_setup_true_lang-6b64ed3d.js similarity index 82% rename from app/kuma-ui/pkg/resources/data/assets/ResourceCodeBlock.vue_vue_type_script_setup_true_lang-d4356ea6.js rename to app/kuma-ui/pkg/resources/data/assets/ResourceCodeBlock.vue_vue_type_script_setup_true_lang-6b64ed3d.js index 6564833bde43..80ad03d8dd0d 100644 --- a/app/kuma-ui/pkg/resources/data/assets/ResourceCodeBlock.vue_vue_type_script_setup_true_lang-d4356ea6.js +++ b/app/kuma-ui/pkg/resources/data/assets/ResourceCodeBlock.vue_vue_type_script_setup_true_lang-6b64ed3d.js @@ -1 +1 @@ -import{_ as g}from"./CodeBlock.vue_vue_type_style_index_0_lang-559b3ab4.js";import{C as b}from"./TextWithCopyButton-d85f5945.js";import{_ as x}from"./StatusInfo.vue_vue_type_script_setup_true_lang-eefb4f85.js";import{k as _}from"./RouteView.vue_vue_type_script_setup_true_lang-bc0afbf3.js";import{t as v}from"./toYaml-4e00099e.js";import{d as q,q as n,s as m,o as k,a as B,w as c,h as d,l as S,b as h,g as C,t as F}from"./index-50754121.js";const Y=q({__name:"ResourceCodeBlock",props:{id:{type:String,required:!0},resourceFetcher:{type:Function,required:!0},resourceFetcherWatchKey:{type:[String,Number],required:!1,default:null},codeMaxHeight:{type:String,required:!1,default:null},isSearchable:{type:Boolean,required:!1,default:!1},showCopyAsKubernetesButton:{type:Boolean,required:!1,default:!0}},setup(r){const t=r,i=_(),u=n(""),o=n(!1),a=n(null);m(()=>t.resourceFetcherWatchKey,function(e,s){e!==s&&e!==null&&l()}),m(()=>t.resourceFetcher,function(){l()},{immediate:!0});async function l(){o.value=!0,a.value=null;try{const e=await t.resourceFetcher();u.value=f(e)}catch(e){e instanceof Error?a.value=e:console.error(e)}finally{o.value=!1}}async function y(){const e=await t.resourceFetcher({format:"kubernetes"});return f(e)}function f(e){const{creationTime:s,modificationTime:K,...p}=e;return v(p)}return(e,s)=>(k(),B(x,{"is-loading":o.value,error:a.value},{default:c(()=>[d(g,{id:r.id,language:"yaml",code:u.value,"is-searchable":t.isSearchable,"query-key":t.id,"code-max-height":t.codeMaxHeight},S({_:2},[r.showCopyAsKubernetesButton?{name:"secondary-actions",fn:c(()=>[d(b,{"get-text":y,"copy-text":h(i).t("common.copyKubernetesText")},{default:c(()=>[C(F(h(i).t("common.copyKubernetesShortText")),1)]),_:1},8,["copy-text"])]),key:"0"}:void 0]),1032,["id","code","is-searchable","query-key","code-max-height"])]),_:1},8,["is-loading","error"]))}});export{Y as _}; +import{_ as g}from"./CodeBlock.vue_vue_type_style_index_0_lang-15a6fd20.js";import{C as b}from"./TextWithCopyButton-4f241d23.js";import{_ as x}from"./StatusInfo.vue_vue_type_script_setup_true_lang-8a43cc10.js";import{k as _}from"./RouteView.vue_vue_type_script_setup_true_lang-8e6a23b5.js";import{t as v}from"./toYaml-4e00099e.js";import{d as q,q as n,s as m,o as k,a as B,w as c,h as d,l as S,b as h,g as C,t as F}from"./index-a4a530d1.js";const Y=q({__name:"ResourceCodeBlock",props:{id:{type:String,required:!0},resourceFetcher:{type:Function,required:!0},resourceFetcherWatchKey:{type:[String,Number],required:!1,default:null},codeMaxHeight:{type:String,required:!1,default:null},isSearchable:{type:Boolean,required:!1,default:!1},showCopyAsKubernetesButton:{type:Boolean,required:!1,default:!0}},setup(r){const t=r,i=_(),u=n(""),o=n(!1),a=n(null);m(()=>t.resourceFetcherWatchKey,function(e,s){e!==s&&e!==null&&l()}),m(()=>t.resourceFetcher,function(){l()},{immediate:!0});async function l(){o.value=!0,a.value=null;try{const e=await t.resourceFetcher();u.value=f(e)}catch(e){e instanceof Error?a.value=e:console.error(e)}finally{o.value=!1}}async function y(){const e=await t.resourceFetcher({format:"kubernetes"});return f(e)}function f(e){const{creationTime:s,modificationTime:K,...p}=e;return v(p)}return(e,s)=>(k(),B(x,{"is-loading":o.value,error:a.value},{default:c(()=>[d(g,{id:r.id,language:"yaml",code:u.value,"is-searchable":t.isSearchable,"query-key":t.id,"code-max-height":t.codeMaxHeight},S({_:2},[r.showCopyAsKubernetesButton?{name:"secondary-actions",fn:c(()=>[d(b,{"get-text":y,"copy-text":h(i).t("common.copyKubernetesText")},{default:c(()=>[C(F(h(i).t("common.copyKubernetesShortText")),1)]),_:1},8,["copy-text"])]),key:"0"}:void 0]),1032,["id","code","is-searchable","query-key","code-max-height"])]),_:1},8,["is-loading","error"]))}});export{Y as _}; diff --git a/app/kuma-ui/pkg/resources/data/assets/RouteTitle.vue_vue_type_script_setup_true_lang-c74dc965.js b/app/kuma-ui/pkg/resources/data/assets/RouteTitle.vue_vue_type_script_setup_true_lang-f4fc2caf.js similarity index 82% rename from app/kuma-ui/pkg/resources/data/assets/RouteTitle.vue_vue_type_script_setup_true_lang-c74dc965.js rename to app/kuma-ui/pkg/resources/data/assets/RouteTitle.vue_vue_type_script_setup_true_lang-f4fc2caf.js index da04e02d03db..e090883cfa54 100644 --- a/app/kuma-ui/pkg/resources/data/assets/RouteTitle.vue_vue_type_script_setup_true_lang-c74dc965.js +++ b/app/kuma-ui/pkg/resources/data/assets/RouteTitle.vue_vue_type_script_setup_true_lang-f4fc2caf.js @@ -1 +1 @@ -import{d as i,U as s,s as a,D as m,f as u}from"./index-50754121.js";const p=i({__name:"RouteTitle",props:{title:{type:String,required:!1,default:""}},setup(n){const r=n,o=Symbol("route-title"),e=s("route-view-parent");return typeof e<"u"&&(a(()=>r.title,t=>{t.length>0&&e.addTitle(t,o)},{immediate:!0}),m(()=>{e.removeTitle(o)})),(t,c)=>u("",!0)}});export{p as _}; +import{d as i,U as s,s as a,D as m,f as u}from"./index-a4a530d1.js";const p=i({__name:"RouteTitle",props:{title:{type:String,required:!1,default:""}},setup(n){const r=n,o=Symbol("route-title"),e=s("route-view-parent");return typeof e<"u"&&(a(()=>r.title,t=>{t.length>0&&e.addTitle(t,o)},{immediate:!0}),m(()=>{e.removeTitle(o)})),(t,c)=>u("",!0)}});export{p as _}; diff --git a/app/kuma-ui/pkg/resources/data/assets/RouteView.vue_vue_type_script_setup_true_lang-bc0afbf3.js b/app/kuma-ui/pkg/resources/data/assets/RouteView.vue_vue_type_script_setup_true_lang-8e6a23b5.js similarity index 99% rename from app/kuma-ui/pkg/resources/data/assets/RouteView.vue_vue_type_script_setup_true_lang-bc0afbf3.js rename to app/kuma-ui/pkg/resources/data/assets/RouteView.vue_vue_type_script_setup_true_lang-8e6a23b5.js index ceda83c61519..857f9b4dfbc6 100644 --- a/app/kuma-ui/pkg/resources/data/assets/RouteView.vue_vue_type_script_setup_true_lang-bc0afbf3.js +++ b/app/kuma-ui/pkg/resources/data/assets/RouteView.vue_vue_type_script_setup_true_lang-8e6a23b5.js @@ -1,4 +1,4 @@ -var ne=Object.defineProperty;var oe=(i,t,e)=>t in i?ne(i,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):i[t]=e;var B=(i,t,e)=>(oe(i,typeof t!="symbol"?t+"":t,e),e);import{l as y2,b as re,S as b2,Z as d7,a as a1,Q as tt,Y as ae,U as f7,e as le,f as ce}from"./kongponents.es-07c2d778.js";import{d as $,U as X2,q as t1,c as q,o as k,e as I,k as f,n as E1,g as C,h as D,w as S,f as p1,T as he,z as V6,V as q2,W as de,X as L1,Y as u7,x as fe,Z as ue,_ as p2,$ as Ce,a0 as pe,a as h1,b as y,t as F,r as C7,p as p7,m as g7,y as I6,C as _7,a1 as m7,B as s1,u as F6,M as ge,s as v2,F as T6,j as R6,a2 as M7,a3 as _e,D as E6,a4 as w6,a5 as x7,v as me,a6 as g6,R as et,a7 as Me,i as xe,A as k2,a8 as o1}from"./index-50754121.js";const ye=["aria-expanded"],be={key:0,class:"accordion-item-content","data-testid":"accordion-item-content"},ve=$({__name:"AccordionItem",setup(i){const t=X2("parentAccordion"),e=t1(null),s=q(()=>t===void 0?!1:t.multipleOpen&&Array.isArray(t.active.value)&&e.value!==null?t.active.value.includes(e.value):e.value===t.active.value);t!==void 0&&(e.value=t.count.value++);function n(){s.value?o():r()}function o(){t!==void 0&&(t.multipleOpen&&Array.isArray(t.active.value)&&e.value!==null?t.active.value.splice(t.active.value.indexOf(e.value),1):t.active.value=null)}function r(){t!==void 0&&(t.multipleOpen&&Array.isArray(t.active.value)&&e.value!==null?t.active.value.push(e.value):t.active.value=e.value)}function a(c){c instanceof HTMLElement&&(c.style.height=`${c.scrollHeight}px`)}function l(c){c instanceof HTMLElement&&(c.style.height="auto")}return(c,h)=>(k(),I("li",{class:V6(["accordion-item",{active:s.value}])},[f("button",{class:"accordion-item-header",type:"button","aria-expanded":s.value?"true":"false","data-testid":"accordion-item-button",onClick:n},[E1(c.$slots,"accordion-header",{},void 0,!0)],8,ye),C(),D(he,{name:"accordion",onEnter:a,onAfterEnter:l,onBeforeLeave:a},{default:S(()=>[s.value?(k(),I("div",be,[E1(c.$slots,"accordion-content",{},void 0,!0)])):p1("",!0)]),_:3})],2))}});const f1=(i,t)=>{const e=i.__vccOpts||i;for(const[s,n]of t)e[s]=n;return e},Le=f1(ve,[["__scopeId","data-v-dfd99690"]]),He={class:"accordion-list"},Ve=$({__name:"AccordionList",props:{initiallyOpen:{type:[Number,Array],required:!1,default:null},multipleOpen:{type:Boolean,required:!1,default:!1}},setup(i){const t=i,e=t1(0),s=t1(t.initiallyOpen!==null?t.initiallyOpen:t.multipleOpen?[]:null);return q2("parentAccordion",{multipleOpen:t.multipleOpen,active:s,count:e}),(n,o)=>(k(),I("ul",He,[E1(n.$slots,"default",{},void 0,!0)]))}});const we=f1(Ve,[["__scopeId","data-v-53d92d22"]]);function J1(){return de(L1.store)}const[z1,Se,$6,Hs,Vs,ws,y7,ke]=u7(L1.env,L1.nav,L1.api,L1.store,L1.router,L1.bootstrap,L1.i18n,L1.logger);function Ss(i){let t=[];i.networking.inbound&&(t=i.networking.inbound.filter(s=>"tags"in s).flatMap(s=>Object.entries(s.tags)).map(([s,n])=>`${s}=${n}`)),i.networking.gateway&&(t=Object.entries(i.networking.gateway.tags).map(([s,n])=>`${s}=${n}`));const e=Array.from(new Set(t));return e.sort((s,n)=>s.localeCompare(n)),e.map(s=>s.split("=")).map(([s,n])=>({label:s,value:n}))}function b7(i={subscriptions:[]}){return(i.subscriptions??[]).some(e=>{var s;return((s=e.connectTime)==null?void 0:s.length)&&!e.disconnectTime})?"online":"offline"}function ks(i,t={subscriptions:[]}){const e=i.networking.inbound??[],s=e.filter(o=>o.health&&!o.health.ready).map(o=>`Inbound on port ${o.port} is not ready (kuma.io/service: ${o.tags["kuma.io/service"]})`);let n;switch(!0){case e.length===0:n="online";break;case s.length===e.length:n="offline";break;case s.length>0:n="partially_degraded";break;default:n=b7(t)}return{status:n,reason:s}}function As(i){if(i===void 0||i.subscriptions.length===0)return null;const t={},e=i.subscriptions[i.subscriptions.length-1];return e.version===void 0?null:(e.version.envoy&&(t.envoy=e.version.envoy.version),e.version.kumaDp&&(t.kumaDp=e.version.kumaDp.version),e.version.dependencies&&Object.entries(e.version.dependencies).forEach(([s,n])=>{t[s]=n}),t)}function Os(i){if(i.dataplaneInsight===void 0||i.dataplaneInsight.mTLS===void 0)return null;const{mTLS:t}=i.dataplaneInsight,e=new Date(t.certificateExpirationTime),s=new Date(e.getTime()+e.getTimezoneOffset()*6e4);return{certificateExpirationTime:`${s.toLocaleDateString("en-US")} ${s.getHours()}:${s.getMinutes()}:${s.getSeconds()}`,lastCertificateRegeneration:fe(t.lastCertificateRegeneration),certificateRegenerations:t.certificateRegenerations}}function Bs(i){var s,n;return((s=i.kumaDp)==null?void 0:s.kumaCpCompatible)??!0?((n=i.envoy)==null?void 0:n.kumaDpCompatible)??!0?{kind:Ae}:{kind:Be,payload:{envoy:i.envoy.version,kumaDp:i.kumaDp.version}}:{kind:Oe,payload:{kumaDp:i.kumaDp.version}}}const Ae="COMPATIBLE",Zs="INCOMPATIBLE_ZONE_CP_AND_KUMA_DP_VERSIONS",Ds="INCOMPATIBLE_ZONE_AND_GLOBAL_CPS_VERSIONS",Oe="INCOMPATIBLE_UNSUPPORTED_KUMA_DP",Be="INCOMPATIBLE_UNSUPPORTED_ENVOY",Ps="INCOMPATIBLE_WRONG_FORMAT",Ze=$({name:"github-button",props:{href:String,ariaLabel:String,title:String,dataIcon:String,dataColorScheme:String,dataSize:String,dataShowCount:String,dataText:String},render:function(){const i={ref:"_"};for(const t in this.$props)i[ue(t)]=this.$props[t];return p2("span",[Ce(this.$slots,"default")?p2("a",i,this.$slots.default()):p2("a",i)])},mounted:function(){this.paint()},beforeUpdate:function(){this.reset()},updated:function(){this.paint()},beforeUnmount:function(){this.reset()},methods:{paint:function(){const i=this.$el.appendChild(document.createElement("span")),t=this;pe(()=>import("./buttons.esm-1047f35f.js"),[],import.meta.url).then(function(e){e.render(i.appendChild(t.$refs._),function(s){try{i.parentNode.replaceChild(s,i)}catch{}})})},reset:function(){this.$el.replaceChild(this.$refs._,this.$el.lastChild)}}}),De=f("p",null,"Unable to reach the API",-1),Pe={key:0},Ie=$({__name:"AppErrorMessage",setup(i){const t=$6();return(e,s)=>(k(),h1(y(re),{class:"global-api-status empty-state--wide-content empty-state--compact","cta-is-hidden":""},{title:S(()=>[D(y(y2),{class:"mb-3",icon:"warning",color:"var(--black-500)","secondary-color":"var(--yellow-300)",size:"64"}),C(),De]),message:S(()=>[f("p",null,[C(` +var ne=Object.defineProperty;var oe=(i,t,e)=>t in i?ne(i,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):i[t]=e;var B=(i,t,e)=>(oe(i,typeof t!="symbol"?t+"":t,e),e);import{l as y2,b as re,S as b2,Z as d7,a as a1,Q as tt,Y as ae,U as f7,e as le,f as ce}from"./kongponents.es-f7b55123.js";import{d as $,U as X2,q as t1,c as q,o as k,e as I,k as f,n as E1,g as C,h as D,w as S,f as p1,T as he,z as V6,V as q2,W as de,X as L1,Y as u7,x as fe,Z as ue,_ as p2,$ as Ce,a0 as pe,a as h1,b as y,t as F,r as C7,p as p7,m as g7,y as I6,C as _7,a1 as m7,B as s1,u as F6,M as ge,s as v2,F as T6,j as R6,a2 as M7,a3 as _e,D as E6,a4 as w6,a5 as x7,v as me,a6 as g6,R as et,a7 as Me,i as xe,A as k2,a8 as o1}from"./index-a4a530d1.js";const ye=["aria-expanded"],be={key:0,class:"accordion-item-content","data-testid":"accordion-item-content"},ve=$({__name:"AccordionItem",setup(i){const t=X2("parentAccordion"),e=t1(null),s=q(()=>t===void 0?!1:t.multipleOpen&&Array.isArray(t.active.value)&&e.value!==null?t.active.value.includes(e.value):e.value===t.active.value);t!==void 0&&(e.value=t.count.value++);function n(){s.value?o():r()}function o(){t!==void 0&&(t.multipleOpen&&Array.isArray(t.active.value)&&e.value!==null?t.active.value.splice(t.active.value.indexOf(e.value),1):t.active.value=null)}function r(){t!==void 0&&(t.multipleOpen&&Array.isArray(t.active.value)&&e.value!==null?t.active.value.push(e.value):t.active.value=e.value)}function a(c){c instanceof HTMLElement&&(c.style.height=`${c.scrollHeight}px`)}function l(c){c instanceof HTMLElement&&(c.style.height="auto")}return(c,h)=>(k(),I("li",{class:V6(["accordion-item",{active:s.value}])},[f("button",{class:"accordion-item-header",type:"button","aria-expanded":s.value?"true":"false","data-testid":"accordion-item-button",onClick:n},[E1(c.$slots,"accordion-header",{},void 0,!0)],8,ye),C(),D(he,{name:"accordion",onEnter:a,onAfterEnter:l,onBeforeLeave:a},{default:S(()=>[s.value?(k(),I("div",be,[E1(c.$slots,"accordion-content",{},void 0,!0)])):p1("",!0)]),_:3})],2))}});const f1=(i,t)=>{const e=i.__vccOpts||i;for(const[s,n]of t)e[s]=n;return e},Le=f1(ve,[["__scopeId","data-v-dfd99690"]]),He={class:"accordion-list"},Ve=$({__name:"AccordionList",props:{initiallyOpen:{type:[Number,Array],required:!1,default:null},multipleOpen:{type:Boolean,required:!1,default:!1}},setup(i){const t=i,e=t1(0),s=t1(t.initiallyOpen!==null?t.initiallyOpen:t.multipleOpen?[]:null);return q2("parentAccordion",{multipleOpen:t.multipleOpen,active:s,count:e}),(n,o)=>(k(),I("ul",He,[E1(n.$slots,"default",{},void 0,!0)]))}});const we=f1(Ve,[["__scopeId","data-v-53d92d22"]]);function J1(){return de(L1.store)}const[z1,Se,$6,Hs,Vs,ws,y7,ke]=u7(L1.env,L1.nav,L1.api,L1.store,L1.router,L1.bootstrap,L1.i18n,L1.logger);function Ss(i){let t=[];i.networking.inbound&&(t=i.networking.inbound.filter(s=>"tags"in s).flatMap(s=>Object.entries(s.tags)).map(([s,n])=>`${s}=${n}`)),i.networking.gateway&&(t=Object.entries(i.networking.gateway.tags).map(([s,n])=>`${s}=${n}`));const e=Array.from(new Set(t));return e.sort((s,n)=>s.localeCompare(n)),e.map(s=>s.split("=")).map(([s,n])=>({label:s,value:n}))}function b7(i={subscriptions:[]}){return(i.subscriptions??[]).some(e=>{var s;return((s=e.connectTime)==null?void 0:s.length)&&!e.disconnectTime})?"online":"offline"}function ks(i,t={subscriptions:[]}){const e=i.networking.inbound??[],s=e.filter(o=>o.health&&!o.health.ready).map(o=>`Inbound on port ${o.port} is not ready (kuma.io/service: ${o.tags["kuma.io/service"]})`);let n;switch(!0){case e.length===0:n="online";break;case s.length===e.length:n="offline";break;case s.length>0:n="partially_degraded";break;default:n=b7(t)}return{status:n,reason:s}}function As(i){if(i===void 0||i.subscriptions.length===0)return null;const t={},e=i.subscriptions[i.subscriptions.length-1];return e.version===void 0?null:(e.version.envoy&&(t.envoy=e.version.envoy.version),e.version.kumaDp&&(t.kumaDp=e.version.kumaDp.version),e.version.dependencies&&Object.entries(e.version.dependencies).forEach(([s,n])=>{t[s]=n}),t)}function Os(i){if(i.dataplaneInsight===void 0||i.dataplaneInsight.mTLS===void 0)return null;const{mTLS:t}=i.dataplaneInsight,e=new Date(t.certificateExpirationTime),s=new Date(e.getTime()+e.getTimezoneOffset()*6e4);return{certificateExpirationTime:`${s.toLocaleDateString("en-US")} ${s.getHours()}:${s.getMinutes()}:${s.getSeconds()}`,lastCertificateRegeneration:fe(t.lastCertificateRegeneration),certificateRegenerations:t.certificateRegenerations}}function Bs(i){var s,n;return((s=i.kumaDp)==null?void 0:s.kumaCpCompatible)??!0?((n=i.envoy)==null?void 0:n.kumaDpCompatible)??!0?{kind:Ae}:{kind:Be,payload:{envoy:i.envoy.version,kumaDp:i.kumaDp.version}}:{kind:Oe,payload:{kumaDp:i.kumaDp.version}}}const Ae="COMPATIBLE",Zs="INCOMPATIBLE_ZONE_CP_AND_KUMA_DP_VERSIONS",Ds="INCOMPATIBLE_ZONE_AND_GLOBAL_CPS_VERSIONS",Oe="INCOMPATIBLE_UNSUPPORTED_KUMA_DP",Be="INCOMPATIBLE_UNSUPPORTED_ENVOY",Ps="INCOMPATIBLE_WRONG_FORMAT",Ze=$({name:"github-button",props:{href:String,ariaLabel:String,title:String,dataIcon:String,dataColorScheme:String,dataSize:String,dataShowCount:String,dataText:String},render:function(){const i={ref:"_"};for(const t in this.$props)i[ue(t)]=this.$props[t];return p2("span",[Ce(this.$slots,"default")?p2("a",i,this.$slots.default()):p2("a",i)])},mounted:function(){this.paint()},beforeUpdate:function(){this.reset()},updated:function(){this.paint()},beforeUnmount:function(){this.reset()},methods:{paint:function(){const i=this.$el.appendChild(document.createElement("span")),t=this;pe(()=>import("./buttons.esm-1047f35f.js"),[],import.meta.url).then(function(e){e.render(i.appendChild(t.$refs._),function(s){try{i.parentNode.replaceChild(s,i)}catch{}})})},reset:function(){this.$el.replaceChild(this.$refs._,this.$el.lastChild)}}}),De=f("p",null,"Unable to reach the API",-1),Pe={key:0},Ie=$({__name:"AppErrorMessage",setup(i){const t=$6();return(e,s)=>(k(),h1(y(re),{class:"global-api-status empty-state--wide-content empty-state--compact","cta-is-hidden":""},{title:S(()=>[D(y(y2),{class:"mb-3",icon:"warning",color:"var(--black-500)","secondary-color":"var(--yellow-300)",size:"64"}),C(),De]),message:S(()=>[f("p",null,[C(` Please double check to make sure it is up and running `),y(t).baseUrl?(k(),I("span",Pe,[C(", and it is reachable at "),f("code",null,F(y(t).baseUrl),1)])):p1("",!0)])]),_:1}))}}),Fe={key:0,"data-testid":"notification-amount",class:"notification-icon__amount"},Te=$({__name:"NotificationIcon",setup(i){const t=J1(),e=q(()=>t.getters["notifications/amountOfActions"]);function s(){t.dispatch("notifications/openModal")}return(n,o)=>(k(),I("button",{class:"notification-icon cursor-pointer",type:"button",onClick:s},[D(y(y2),{icon:"notificationBell",color:"var(--yellow-300)"}),C(),e.value>0?(k(),I("span",Fe,F(e.value),1)):p1("",!0)]))}});const Re=f1(Te,[["__scopeId","data-v-8303fa85"]]),Ee={class:"upgrade-check"},$e={class:"alert-content"},ze=$({__name:"UpgradeCheck",setup(i){const t=$6(),e=z1(),s=t1(""),n=t1(!1);r(e("KUMA_VERSION"));const o=(a,l)=>{const c=a.split("."),h=l.split(".");for(let d=0;d<3;d++){const u=Number(c[d]),p=Number(h[d]);if(u>p)return 1;if(p>u)return-1}return 0};async function r(a){if(a.match("^[0-9]+.[0-9]+.[0-9]+$")){try{s.value=await t.getLatestVersion()}catch(l){console.error(l);return}if(s.value!==""){const l=o(s.value,a);n.value=l===1}else{const c=new Date,h=new Date("2020-06-03 12:00:00"),d=new Date(h.getFullYear(),h.getMonth()+3,h.getDate());n.value=c.getTime()>=d.getTime()}}}return(a,l)=>(k(),I("div",Ee,[n.value?(k(),h1(y(d7),{key:0,class:"upgrade-check-alert",appearance:"warning",size:"small"},{alertMessage:S(()=>[f("div",$e,[f("div",null,F(y(e)("KUMA_PRODUCT_NAME"))+` update available `,1),C(),f("div",null,[D(y(b2),{class:"warning-button",appearance:"primary",size:"small",to:y(e)("KUMA_INSTALL_URL")},{default:S(()=>[C(` Update diff --git a/app/kuma-ui/pkg/resources/data/assets/ServiceDetailView-7e4e08d0.js b/app/kuma-ui/pkg/resources/data/assets/ServiceDetailView-7e4e08d0.js deleted file mode 100644 index d9c435f1344a..000000000000 --- a/app/kuma-ui/pkg/resources/data/assets/ServiceDetailView-7e4e08d0.js +++ /dev/null @@ -1 +0,0 @@ -import{d as q,o,e as B,h as b,g as E,a as p,f as I,F as L,u as V,q as d,s as P,w as F,b as N,k as j}from"./index-50754121.js";import{S as z}from"./ServiceSummary-362ad6c4.js";import{D as C}from"./DataPlaneList-5bcc6a6f.js";import{j as R,f as G,k as Q,g as W,_ as J}from"./RouteView.vue_vue_type_script_setup_true_lang-bc0afbf3.js";import{_ as K}from"./RouteTitle.vue_vue_type_script_setup_true_lang-c74dc965.js";import{_ as M}from"./EmptyBlock.vue_vue_type_script_setup_true_lang-34eb656c.js";import{E as H}from"./ErrorBlock-eb438aeb.js";import{_ as U}from"./LoadingBlock.vue_vue_type_script_setup_true_lang-95ccda4d.js";import{Q as X}from"./QueryParameter-70743f73.js";import"./kongponents.es-07c2d778.js";import"./DefinitionListItem-b371d6a2.js";import"./ResourceCodeBlock.vue_vue_type_script_setup_true_lang-d4356ea6.js";import"./CodeBlock.vue_vue_type_style_index_0_lang-559b3ab4.js";import"./TextWithCopyButton-d85f5945.js";import"./StatusInfo.vue_vue_type_script_setup_true_lang-eefb4f85.js";import"./toYaml-4e00099e.js";import"./StatusBadge-9e322ea6.js";import"./TagList-a0e27239.js";import"./ContentWrapper-6a8b0059.js";import"./DataOverview-5b210bb7.js";const Y=q({__name:"ServiceDetails",props:{service:{type:Object,required:!0},externalService:{type:Object,required:!1,default:null},dataPlaneOverviews:{type:Array,required:!1,default:null},dppFilterFields:{type:Object,required:!0},selectedDppName:{type:String,required:!1,default:null}},emits:["load-dataplane-overviews"],setup(f,{emit:_}){const e=f;function a(w,c){var l;(((l=e.service.serviceType)==null?void 0:l.startsWith("gateway"))??!1)||delete c.gateway,_("load-dataplane-overviews",w,c)}return(w,c)=>{var u;return o(),B(L,null,[b(z,{service:e.service,"external-service":f.externalService},null,8,["service","external-service"]),E(),e.dataPlaneOverviews!==null?(o(),p(C,{key:0,class:"mt-4","data-plane-overviews":e.dataPlaneOverviews,"dpp-filter-fields":e.dppFilterFields,"selected-dpp-name":e.selectedDppName,"is-gateway-view":((u=e.dataPlaneOverviews[0])==null?void 0:u.dataplane.networking.gateway)!==void 0,onLoadData:a},null,8,["data-plane-overviews","dpp-filter-fields","selected-dpp-name","is-gateway-view"])):I("",!0)],64)}}}),Z={class:"service-details"},he=q({__name:"ServiceDetailView",props:{selectedDppName:{type:String,required:!1,default:null}},setup(f){const _=f,e=R(),a=V(),w=G(),{t:c}=Q(),u={name:{description:"filter by name or parts of a name"},protocol:{description:"filter by “kuma.io/protocol” value"},tag:{description:"filter by tags (e.g. “tag: version:2”)"},zone:{description:"filter by “kuma.io/zone” value"}},l=d(null),h=d(null),g=d(null),S=d(!0),y=d(null);P(()=>a.params.mesh,function(){a.name==="service-detail-view"&&k(0)}),P(()=>a.params.name,function(){a.name==="service-detail-view"&&k(0)});function T(){w.dispatch("updatePageTitle",a.params.service);const t=X.get("filterFields"),n=t!==null?JSON.parse(t):{};k(0,n)}T();async function k(t,n={}){S.value=!0,y.value=null,l.value=null,h.value=null,g.value=null;const r=a.params.mesh,m=a.params.service;try{l.value=await e.getServiceInsight({mesh:r,name:m}),l.value.serviceType==="external"?h.value=await e.getExternalServiceByServiceInsightName(r,m):await O(t,n)}catch(s){s instanceof Error?y.value=s:console.error(s)}finally{S.value=!1}}async function O(t,n){const r=a.params.mesh,m=a.params.service;try{const s=$(m,t,n),i=await e.getAllDataplaneOverviewsFromMesh({mesh:r},s);g.value=i.items??[]}catch{g.value=null}}function $(t,n,r){const s=`kuma.io/service:${t}`,i={...r,offset:n,size:50};if(i.tag){const x=Array.isArray(i.tag)?i.tag:[i.tag],D=[];for(const[v,A]of x.entries())A.startsWith("kuma.io/service:")&&D.push(v);for(let v=D.length-1;v===0;v--)x.splice(D[v],1);i.tag=x.concat(s)}else i.tag=s;return i}return(t,n)=>(o(),p(J,{module:"services"},{default:F(({route:r})=>[b(K,{title:N(c)("services.routes.item.title",{name:r.params.service})},null,8,["title"]),E(),b(W,{breadcrumbs:[{to:{name:"services-list-view",params:{mesh:r.params.mesh}},text:N(c)("services.routes.item.breadcrumbs")}]},{default:F(()=>[j("div",Z,[S.value?(o(),p(U,{key:0})):y.value!==null?(o(),p(H,{key:1,error:y.value},null,8,["error"])):l.value===null?(o(),p(M,{key:2})):(o(),p(Y,{key:3,service:l.value,"data-plane-overviews":g.value,"external-service":h.value,"dpp-filter-fields":u,"selected-dpp-name":_.selectedDppName,onLoadDataplaneOverviews:O},null,8,["service","data-plane-overviews","external-service","selected-dpp-name"]))])]),_:2},1032,["breadcrumbs"])]),_:1}))}});export{he as default}; diff --git a/app/kuma-ui/pkg/resources/data/assets/ServiceDetailView-9190c6d8.js b/app/kuma-ui/pkg/resources/data/assets/ServiceDetailView-9190c6d8.js new file mode 100644 index 000000000000..dd44e5a76bbd --- /dev/null +++ b/app/kuma-ui/pkg/resources/data/assets/ServiceDetailView-9190c6d8.js @@ -0,0 +1 @@ +import{d as N,o,e as B,h as S,g as q,a as m,f as I,F as L,u as T,q as f,s as O,w as P,b as F,k as V}from"./index-a4a530d1.js";import{S as j}from"./ServiceSummary-568940dc.js";import{D as z}from"./DataPlaneList-ea6c4e67.js";import{j as C,k as R,g as G,_ as Q}from"./RouteView.vue_vue_type_script_setup_true_lang-8e6a23b5.js";import{_ as W}from"./RouteTitle.vue_vue_type_script_setup_true_lang-f4fc2caf.js";import{_ as J}from"./EmptyBlock.vue_vue_type_script_setup_true_lang-ddebee78.js";import{E as K}from"./ErrorBlock-cc9ab0db.js";import{_ as M}from"./LoadingBlock.vue_vue_type_script_setup_true_lang-2c479ce1.js";import{Q as H}from"./QueryParameter-70743f73.js";import"./kongponents.es-f7b55123.js";import"./DefinitionListItem-f18ea925.js";import"./ResourceCodeBlock.vue_vue_type_script_setup_true_lang-6b64ed3d.js";import"./CodeBlock.vue_vue_type_style_index_0_lang-15a6fd20.js";import"./TextWithCopyButton-4f241d23.js";import"./StatusInfo.vue_vue_type_script_setup_true_lang-8a43cc10.js";import"./toYaml-4e00099e.js";import"./StatusBadge-6b87699d.js";import"./TagList-76ef6044.js";import"./ContentWrapper-1933fc04.js";import"./DataOverview-7c85e051.js";const U=N({__name:"ServiceDetails",props:{service:{type:Object,required:!0},externalService:{type:Object,required:!1,default:null},dataPlaneOverviews:{type:Array,required:!1,default:null},dppFilterFields:{type:Object,required:!0},selectedDppName:{type:String,required:!1,default:null}},emits:["load-dataplane-overviews"],setup(w,{emit:_}){const e=w;function a(p,u){var c;(((c=e.service.serviceType)==null?void 0:c.startsWith("gateway"))??!1)||delete u.gateway,_("load-dataplane-overviews",p,u)}return(p,u)=>{var t;return o(),B(L,null,[S(j,{service:e.service,"external-service":w.externalService},null,8,["service","external-service"]),q(),e.dataPlaneOverviews!==null?(o(),m(z,{key:0,class:"mt-4","data-plane-overviews":e.dataPlaneOverviews,"dpp-filter-fields":e.dppFilterFields,"selected-dpp-name":e.selectedDppName,"is-gateway-view":((t=e.dataPlaneOverviews[0])==null?void 0:t.dataplane.networking.gateway)!==void 0,onLoadData:a},null,8,["data-plane-overviews","dpp-filter-fields","selected-dpp-name","is-gateway-view"])):I("",!0)],64)}}}),X={class:"service-details"},ge=N({__name:"ServiceDetailView",props:{selectedDppName:{type:String,required:!1,default:null}},setup(w){const _=w,e=C(),a=T(),{t:p}=R(),u={name:{description:"filter by name or parts of a name"},protocol:{description:"filter by “kuma.io/protocol” value"},tag:{description:"filter by tags (e.g. “tag: version:2”)"},zone:{description:"filter by “kuma.io/zone” value"}},t=f(null),c=f(null),y=f(null),h=f(!0),g=f(null);O(()=>a.params.mesh,function(){a.name==="service-detail-view"&&k(0)}),O(()=>a.params.name,function(){a.name==="service-detail-view"&&k(0)});function E(){const r=H.get("filterFields"),n=r!==null?JSON.parse(r):{};k(0,n)}E();async function k(r,n={}){h.value=!0,g.value=null,t.value=null,c.value=null,y.value=null;const s=a.params.mesh,v=a.params.service;try{t.value=await e.getServiceInsight({mesh:s,name:v}),t.value.serviceType==="external"?c.value=await e.getExternalServiceByServiceInsightName(s,v):await b(r,n)}catch(i){i instanceof Error?g.value=i:console.error(i)}finally{h.value=!1}}async function b(r,n){const s=a.params.mesh,v=a.params.service;try{const i=$(v,r,n),l=await e.getAllDataplaneOverviewsFromMesh({mesh:s},i);y.value=l.items??[]}catch{y.value=null}}function $(r,n,s){const i=`kuma.io/service:${r}`,l={...s,offset:n,size:50};if(l.tag){const x=Array.isArray(l.tag)?l.tag:[l.tag],D=[];for(const[d,A]of x.entries())A.startsWith("kuma.io/service:")&&D.push(d);for(let d=D.length-1;d===0;d--)x.splice(D[d],1);l.tag=x.concat(i)}else l.tag=i;return l}return(r,n)=>(o(),m(Q,{module:"services"},{default:P(({route:s})=>[S(W,{title:F(p)("services.routes.item.title",{name:s.params.service})},null,8,["title"]),q(),S(G,{breadcrumbs:[{to:{name:"services-list-view",params:{mesh:s.params.mesh}},text:F(p)("services.routes.item.breadcrumbs")}]},{default:P(()=>[V("div",X,[h.value?(o(),m(M,{key:0})):g.value!==null?(o(),m(K,{key:1,error:g.value},null,8,["error"])):t.value===null?(o(),m(J,{key:2})):(o(),m(U,{key:3,service:t.value,"data-plane-overviews":y.value,"external-service":c.value,"dpp-filter-fields":u,"selected-dpp-name":_.selectedDppName,onLoadDataplaneOverviews:b},null,8,["service","data-plane-overviews","external-service","selected-dpp-name"]))])]),_:2},1032,["breadcrumbs"])]),_:1}))}});export{ge as default}; diff --git a/app/kuma-ui/pkg/resources/data/assets/ServiceListView-ff737e10.js b/app/kuma-ui/pkg/resources/data/assets/ServiceListView-fdc72b6c.js similarity index 72% rename from app/kuma-ui/pkg/resources/data/assets/ServiceListView-ff737e10.js rename to app/kuma-ui/pkg/resources/data/assets/ServiceListView-fdc72b6c.js index f98ae2ec4c22..47c63fc2d4dc 100644 --- a/app/kuma-ui/pkg/resources/data/assets/ServiceListView-ff737e10.js +++ b/app/kuma-ui/pkg/resources/data/assets/ServiceListView-fdc72b6c.js @@ -1 +1 @@ -import{d as L,u as q,q as l,s as z,o as h,a as w,w as u,h as c,b as k,g as B,P as D,f as F}from"./index-50754121.js";import{S as M}from"./ServiceSummary-362ad6c4.js";import{j as O,k as Q,g as R,_ as U}from"./RouteView.vue_vue_type_script_setup_true_lang-bc0afbf3.js";import{_ as j}from"./RouteTitle.vue_vue_type_script_setup_true_lang-c74dc965.js";import{C as G}from"./ContentWrapper-6a8b0059.js";import{D as K}from"./DataOverview-5b210bb7.js";import{Q as S}from"./QueryParameter-70743f73.js";import"./kongponents.es-07c2d778.js";import"./DefinitionListItem-b371d6a2.js";import"./ResourceCodeBlock.vue_vue_type_script_setup_true_lang-d4356ea6.js";import"./CodeBlock.vue_vue_type_style_index_0_lang-559b3ab4.js";import"./TextWithCopyButton-d85f5945.js";import"./StatusInfo.vue_vue_type_script_setup_true_lang-eefb4f85.js";import"./EmptyBlock.vue_vue_type_script_setup_true_lang-34eb656c.js";import"./ErrorBlock-eb438aeb.js";import"./LoadingBlock.vue_vue_type_script_setup_true_lang-95ccda4d.js";import"./toYaml-4e00099e.js";import"./StatusBadge-9e322ea6.js";import"./TagList-a0e27239.js";const pe=L({__name:"ServiceListView",props:{selectedServiceName:{type:String,required:!1,default:null},offset:{type:Number,required:!1,default:0}},setup(N){const m=N,p=O(),{t:P}=Q(),A=[{label:"Name",key:"entity"},{label:"Type",key:"serviceType"},{label:"Address",key:"addressPort"},{label:"Status",key:"status"},{label:"DP proxies (online / total)",key:"dpProxiesStatus"}],E={title:"No Data",message:"There are no service insights present."},v=q(),d=l(!0),f=l(null),b=l(null),x=l(m.offset),t=l(null),i=l(null),n=l({headers:A,data:[]});z(()=>v.params.mesh,function(){v.name==="services-list-view"&&y(0)}),y(m.offset);async function y(a){var o;x.value=a,S.set("offset",a>0?a:null),d.value=!0,f.value=null;const e=v.params.mesh,r=D;try{const{items:s,next:_}=await p.getAllServiceInsightsFromMesh({mesh:e},{size:r,offset:a});b.value=_,n.value.data=C(s??[]),await g({name:m.selectedServiceName??((o=n.value.data[0])==null?void 0:o.entity.name),mesh:e})}catch(s){n.value.data=[],t.value=null,i.value=null,s instanceof Error?f.value=s:console.error(s)}finally{d.value=!1}}function C(a){return a.map(e=>{const{serviceType:r="internal",addressPort:o="",status:s="not_available"}=e,_={name:"service-detail-view",params:{mesh:e.mesh,service:e.name}};let T="—";if(e.dataplanes){const{online:V=0,total:$=0}=e.dataplanes;T=`${V} / ${$}`}return{entity:e,detailViewRoute:_,status:s,serviceType:r,dpProxiesStatus:T,addressPort:o}})}async function g({name:a,mesh:e}){a!==void 0?(t.value=await p.getServiceInsight({mesh:e,name:a}),t.value.serviceType==="external"&&(i.value=await p.getExternalServiceByServiceInsightName(e,a)),S.set("service",a)):(t.value=null,i.value=null,S.set("service",null))}return(a,e)=>(h(),w(U,{module:"services"},{default:u(()=>[c(j,{title:k(P)("services.routes.items.title")},null,8,["title"]),B(),c(R,null,{default:u(()=>[c(G,null,{content:u(()=>{var r;return[c(K,{"selected-entity-name":(r=t.value)==null?void 0:r.name,"page-size":k(D),error:f.value,"is-loading":d.value,"empty-state":E,"table-data":n.value,"table-data-is-empty":n.value.data.length===0,next:b.value,"page-offset":x.value,onTableAction:g,onLoadData:y},null,8,["selected-entity-name","page-size","error","is-loading","table-data","table-data-is-empty","next","page-offset"])]}),sidebar:u(()=>[t.value!==null?(h(),w(M,{key:0,service:t.value,"external-service":i.value},null,8,["service","external-service"])):F("",!0)]),_:1})]),_:1})]),_:1}))}});export{pe as default}; +import{d as L,u as q,q as l,s as z,o as h,a as w,w as u,h as c,b as k,g as B,P as D,f as F}from"./index-a4a530d1.js";import{S as M}from"./ServiceSummary-568940dc.js";import{j as O,k as Q,g as R,_ as U}from"./RouteView.vue_vue_type_script_setup_true_lang-8e6a23b5.js";import{_ as j}from"./RouteTitle.vue_vue_type_script_setup_true_lang-f4fc2caf.js";import{C as G}from"./ContentWrapper-1933fc04.js";import{D as K}from"./DataOverview-7c85e051.js";import{Q as S}from"./QueryParameter-70743f73.js";import"./kongponents.es-f7b55123.js";import"./DefinitionListItem-f18ea925.js";import"./ResourceCodeBlock.vue_vue_type_script_setup_true_lang-6b64ed3d.js";import"./CodeBlock.vue_vue_type_style_index_0_lang-15a6fd20.js";import"./TextWithCopyButton-4f241d23.js";import"./StatusInfo.vue_vue_type_script_setup_true_lang-8a43cc10.js";import"./EmptyBlock.vue_vue_type_script_setup_true_lang-ddebee78.js";import"./ErrorBlock-cc9ab0db.js";import"./LoadingBlock.vue_vue_type_script_setup_true_lang-2c479ce1.js";import"./toYaml-4e00099e.js";import"./StatusBadge-6b87699d.js";import"./TagList-76ef6044.js";const pe=L({__name:"ServiceListView",props:{selectedServiceName:{type:String,required:!1,default:null},offset:{type:Number,required:!1,default:0}},setup(N){const m=N,p=O(),{t:P}=Q(),A=[{label:"Name",key:"entity"},{label:"Type",key:"serviceType"},{label:"Address",key:"addressPort"},{label:"Status",key:"status"},{label:"DP proxies (online / total)",key:"dpProxiesStatus"}],E={title:"No Data",message:"There are no service insights present."},v=q(),d=l(!0),f=l(null),b=l(null),x=l(m.offset),t=l(null),i=l(null),n=l({headers:A,data:[]});z(()=>v.params.mesh,function(){v.name==="services-list-view"&&y(0)}),y(m.offset);async function y(a){var o;x.value=a,S.set("offset",a>0?a:null),d.value=!0,f.value=null;const e=v.params.mesh,r=D;try{const{items:s,next:_}=await p.getAllServiceInsightsFromMesh({mesh:e},{size:r,offset:a});b.value=_,n.value.data=C(s??[]),await g({name:m.selectedServiceName??((o=n.value.data[0])==null?void 0:o.entity.name),mesh:e})}catch(s){n.value.data=[],t.value=null,i.value=null,s instanceof Error?f.value=s:console.error(s)}finally{d.value=!1}}function C(a){return a.map(e=>{const{serviceType:r="internal",addressPort:o="",status:s="not_available"}=e,_={name:"service-detail-view",params:{mesh:e.mesh,service:e.name}};let T="—";if(e.dataplanes){const{online:V=0,total:$=0}=e.dataplanes;T=`${V} / ${$}`}return{entity:e,detailViewRoute:_,status:s,serviceType:r,dpProxiesStatus:T,addressPort:o}})}async function g({name:a,mesh:e}){a!==void 0?(t.value=await p.getServiceInsight({mesh:e,name:a}),t.value.serviceType==="external"&&(i.value=await p.getExternalServiceByServiceInsightName(e,a)),S.set("service",a)):(t.value=null,i.value=null,S.set("service",null))}return(a,e)=>(h(),w(U,{module:"services"},{default:u(()=>[c(j,{title:k(P)("services.routes.items.title")},null,8,["title"]),B(),c(R,null,{default:u(()=>[c(G,null,{content:u(()=>{var r;return[c(K,{"selected-entity-name":(r=t.value)==null?void 0:r.name,"page-size":k(D),error:f.value,"is-loading":d.value,"empty-state":E,"table-data":n.value,"table-data-is-empty":n.value.data.length===0,next:b.value,"page-offset":x.value,onTableAction:g,onLoadData:y},null,8,["selected-entity-name","page-size","error","is-loading","table-data","table-data-is-empty","next","page-offset"])]}),sidebar:u(()=>[t.value!==null?(h(),w(M,{key:0,service:t.value,"external-service":i.value},null,8,["service","external-service"])):F("",!0)]),_:1})]),_:1})]),_:1}))}});export{pe as default}; diff --git a/app/kuma-ui/pkg/resources/data/assets/ServiceSummary-362ad6c4.js b/app/kuma-ui/pkg/resources/data/assets/ServiceSummary-568940dc.js similarity index 83% rename from app/kuma-ui/pkg/resources/data/assets/ServiceSummary-362ad6c4.js rename to app/kuma-ui/pkg/resources/data/assets/ServiceSummary-568940dc.js index ac39b7fd442f..38dcdefddaf9 100644 --- a/app/kuma-ui/pkg/resources/data/assets/ServiceSummary-362ad6c4.js +++ b/app/kuma-ui/pkg/resources/data/assets/ServiceSummary-568940dc.js @@ -1,4 +1,4 @@ -import{U as D}from"./kongponents.es-07c2d778.js";import{a as u,D as B}from"./DefinitionListItem-b371d6a2.js";import{_ as C}from"./ResourceCodeBlock.vue_vue_type_script_setup_true_lang-d4356ea6.js";import{S as P}from"./StatusBadge-9e322ea6.js";import{T as V}from"./TagList-a0e27239.js";import{T as L}from"./TextWithCopyButton-d85f5945.js";import{j as N,h as j}from"./RouteView.vue_vue_type_script_setup_true_lang-bc0afbf3.js";import{d as A,c as i,r as E,o as l,a as o,w as s,k as v,g as t,h as c,t as m,f as d,e as h,F as k,b as I}from"./index-50754121.js";const O={class:"entity-section-list"},$={class:"entity-title"},q=A({__name:"ServiceSummary",props:{service:{type:Object,required:!0},externalService:{type:Object,required:!1,default:null}},setup(g){const e=g,p=N(),b=i(()=>({name:"service-detail-view",params:{service:e.service.name,mesh:e.service.mesh}})),f=i(()=>e.service.serviceType==="external"&&e.externalService!==null?e.externalService.networking.address:e.service.addressPort??null),_=i(()=>{var r;return e.service.serviceType==="external"&&e.externalService!==null?(r=e.externalService.networking.tls)!=null&&r.enabled?"Enabled":"Disabled":null}),x=i(()=>{var r,a;if(e.service.serviceType==="external")return null;{const n=((r=e.service.dataplanes)==null?void 0:r.online)??0,w=((a=e.service.dataplanes)==null?void 0:a.total)??0;return`${n} online / ${w} total`}}),y=i(()=>e.service.serviceType==="external"?null:e.service.status??null),S=i(()=>e.service.serviceType==="external"&&e.externalService!==null?e.externalService.tags:null);async function T(r){if(e.service.serviceType==="external"&&e.externalService!==null){const{mesh:a,name:n}=e.externalService;return await p.getExternalService({mesh:a,name:n},r)}else{const{mesh:a,name:n}=e.service;return await p.getServiceInsight({mesh:a,name:n},r)}}return(r,a)=>{const n=E("router-link");return l(),o(I(D),null,{body:s(()=>[v("div",O,[v("section",null,[v("h1",$,[v("span",null,[t(` +import{U as D}from"./kongponents.es-f7b55123.js";import{a as u,D as B}from"./DefinitionListItem-f18ea925.js";import{_ as C}from"./ResourceCodeBlock.vue_vue_type_script_setup_true_lang-6b64ed3d.js";import{S as P}from"./StatusBadge-6b87699d.js";import{T as V}from"./TagList-76ef6044.js";import{T as L}from"./TextWithCopyButton-4f241d23.js";import{j as N,h as j}from"./RouteView.vue_vue_type_script_setup_true_lang-8e6a23b5.js";import{d as A,c as i,r as E,o as l,a as o,w as s,k as v,g as t,h as c,t as m,f as d,e as h,F as k,b as I}from"./index-a4a530d1.js";const O={class:"entity-section-list"},$={class:"entity-title"},q=A({__name:"ServiceSummary",props:{service:{type:Object,required:!0},externalService:{type:Object,required:!1,default:null}},setup(g){const e=g,p=N(),b=i(()=>({name:"service-detail-view",params:{service:e.service.name,mesh:e.service.mesh}})),f=i(()=>e.service.serviceType==="external"&&e.externalService!==null?e.externalService.networking.address:e.service.addressPort??null),_=i(()=>{var r;return e.service.serviceType==="external"&&e.externalService!==null?(r=e.externalService.networking.tls)!=null&&r.enabled?"Enabled":"Disabled":null}),x=i(()=>{var r,a;if(e.service.serviceType==="external")return null;{const n=((r=e.service.dataplanes)==null?void 0:r.online)??0,w=((a=e.service.dataplanes)==null?void 0:a.total)??0;return`${n} online / ${w} total`}}),y=i(()=>e.service.serviceType==="external"?null:e.service.status??null),S=i(()=>e.service.serviceType==="external"&&e.externalService!==null?e.externalService.tags:null);async function T(r){if(e.service.serviceType==="external"&&e.externalService!==null){const{mesh:a,name:n}=e.externalService;return await p.getExternalService({mesh:a,name:n},r)}else{const{mesh:a,name:n}=e.service;return await p.getServiceInsight({mesh:a,name:n},r)}}return(r,a)=>{const n=E("router-link");return l(),o(I(D),null,{body:s(()=>[v("div",O,[v("section",null,[v("h1",$,[v("span",null,[t(` Service: `),c(L,{text:e.service.name},{default:s(()=>[c(n,{to:b.value},{default:s(()=>[t(m(e.service.name),1)]),_:1},8,["to"])]),_:1},8,["text"])]),t(),y.value?(l(),o(P,{key:0,status:y.value},null,8,["status"])):d("",!0)]),t(),c(B,{class:"mt-4"},{default:s(()=>[c(u,{term:"Address"},{default:s(()=>[f.value!==null?(l(),h(k,{key:0},[t(m(f.value),1)],64)):(l(),h(k,{key:1},[t(` diff --git a/app/kuma-ui/pkg/resources/data/assets/StatusBadge-9e322ea6.js b/app/kuma-ui/pkg/resources/data/assets/StatusBadge-6b87699d.js similarity index 74% rename from app/kuma-ui/pkg/resources/data/assets/StatusBadge-9e322ea6.js rename to app/kuma-ui/pkg/resources/data/assets/StatusBadge-6b87699d.js index 641315f228f3..f1262b29179a 100644 --- a/app/kuma-ui/pkg/resources/data/assets/StatusBadge-9e322ea6.js +++ b/app/kuma-ui/pkg/resources/data/assets/StatusBadge-6b87699d.js @@ -1 +1 @@ -import{k as e,h as n}from"./RouteView.vue_vue_type_script_setup_true_lang-bc0afbf3.js";import{d as o,o as r,e as u,k as p,t as _,b as c,z as d}from"./index-50754121.js";const i=o({__name:"StatusBadge",props:{status:{type:String,required:!0}},setup(s){const t=s,a=e();return(l,m)=>(r(),u("span",{class:d(["status",{[`status--${t.status}`]:!0}]),"data-testid":"status-badge"},[p("span",null,_(c(a).t(`http.api.value.${t.status}`)),1)],2))}});const B=n(i,[["__scopeId","data-v-28156661"]]);export{B as S}; +import{k as e,h as n}from"./RouteView.vue_vue_type_script_setup_true_lang-8e6a23b5.js";import{d as o,o as r,e as u,k as p,t as _,b as c,z as d}from"./index-a4a530d1.js";const i=o({__name:"StatusBadge",props:{status:{type:String,required:!0}},setup(s){const t=s,a=e();return(l,m)=>(r(),u("span",{class:d(["status",{[`status--${t.status}`]:!0}]),"data-testid":"status-badge"},[p("span",null,_(c(a).t(`http.api.value.${t.status}`)),1)],2))}});const B=n(i,[["__scopeId","data-v-28156661"]]);export{B as S}; diff --git a/app/kuma-ui/pkg/resources/data/assets/StatusInfo.vue_vue_type_script_setup_true_lang-eefb4f85.js b/app/kuma-ui/pkg/resources/data/assets/StatusInfo.vue_vue_type_script_setup_true_lang-8a43cc10.js similarity index 73% rename from app/kuma-ui/pkg/resources/data/assets/StatusInfo.vue_vue_type_script_setup_true_lang-eefb4f85.js rename to app/kuma-ui/pkg/resources/data/assets/StatusInfo.vue_vue_type_script_setup_true_lang-8a43cc10.js index 468b7f66840c..f3e57a490941 100644 --- a/app/kuma-ui/pkg/resources/data/assets/StatusInfo.vue_vue_type_script_setup_true_lang-eefb4f85.js +++ b/app/kuma-ui/pkg/resources/data/assets/StatusInfo.vue_vue_type_script_setup_true_lang-8a43cc10.js @@ -1 +1 @@ -import{_ as l}from"./EmptyBlock.vue_vue_type_script_setup_true_lang-34eb656c.js";import{E as n}from"./ErrorBlock-eb438aeb.js";import{_ as s}from"./LoadingBlock.vue_vue_type_script_setup_true_lang-95ccda4d.js";import{d as f,o as r,e as a,a as o,n as i}from"./index-50754121.js";const m={key:3},p=f({__name:"StatusInfo",props:{isLoading:{type:Boolean,default:!1},hasError:{type:Boolean,default:!1},isEmpty:{type:Boolean,default:!1},error:{type:[Error,null],required:!1,default:null}},setup(e){return(t,u)=>(r(),a("div",null,[e.isLoading?(r(),o(s,{key:0})):e.hasError||e.error!==null?(r(),o(n,{key:1,error:e.error},null,8,["error"])):e.isEmpty?(r(),o(l,{key:2})):(r(),a("div",m,[i(t.$slots,"default")]))]))}});export{p as _}; +import{_ as l}from"./EmptyBlock.vue_vue_type_script_setup_true_lang-ddebee78.js";import{E as n}from"./ErrorBlock-cc9ab0db.js";import{_ as s}from"./LoadingBlock.vue_vue_type_script_setup_true_lang-2c479ce1.js";import{d as f,o as r,e as a,a as o,n as i}from"./index-a4a530d1.js";const m={key:3},p=f({__name:"StatusInfo",props:{isLoading:{type:Boolean,default:!1},hasError:{type:Boolean,default:!1},isEmpty:{type:Boolean,default:!1},error:{type:[Error,null],required:!1,default:null}},setup(e){return(t,u)=>(r(),a("div",null,[e.isLoading?(r(),o(s,{key:0})):e.hasError||e.error!==null?(r(),o(n,{key:1,error:e.error},null,8,["error"])):e.isEmpty?(r(),o(l,{key:2})):(r(),a("div",m,[i(t.$slots,"default")]))]))}});export{p as _}; diff --git a/app/kuma-ui/pkg/resources/data/assets/StepSkeleton-991a8da9.js b/app/kuma-ui/pkg/resources/data/assets/StepSkeleton-3ca715f8.js similarity index 94% rename from app/kuma-ui/pkg/resources/data/assets/StepSkeleton-991a8da9.js rename to app/kuma-ui/pkg/resources/data/assets/StepSkeleton-3ca715f8.js index 2ae130b0aa01..6a4b4110710d 100644 --- a/app/kuma-ui/pkg/resources/data/assets/StepSkeleton-991a8da9.js +++ b/app/kuma-ui/pkg/resources/data/assets/StepSkeleton-3ca715f8.js @@ -1,4 +1,4 @@ -import{d as F,o as a,e as o,k as t,t as B,f as h,g as _,z as f,n as b,q as y,c as w,y as L,F as m,j as v,G as S,Q as z,h as u,w as k,b as p}from"./index-50754121.js";import{h as q}from"./RouteView.vue_vue_type_script_setup_true_lang-bc0afbf3.js";import{l as C,S as x}from"./kongponents.es-07c2d778.js";import{Q as $}from"./QueryParameter-70743f73.js";const P={class:"form-line-wrapper"},R={key:0,class:"form-line__col"},V=["for"],E=F({__name:"FormFragment",props:{title:{type:String,required:!1,default:null},forAttr:{type:String,required:!1,default:null},allInline:{type:Boolean,default:!1},hideLabelCol:{type:Boolean,default:!1},equalCols:{type:Boolean,default:!1},shiftRight:{type:Boolean,default:!1}},setup(d){const r=d;return(l,e)=>(a(),o("div",P,[t("div",{class:f(["form-line",{"has-equal-cols":r.equalCols}])},[r.hideLabelCol?h("",!0):(a(),o("div",R,[t("label",{for:r.forAttr,class:"k-input-label"},B(r.title)+`: +import{d as F,o as a,e as o,k as t,t as B,f as h,g as _,z as f,n as b,q as y,c as w,y as L,F as m,j as v,G as S,Q as z,h as u,w as k,b as p}from"./index-a4a530d1.js";import{h as q}from"./RouteView.vue_vue_type_script_setup_true_lang-8e6a23b5.js";import{l as C,S as x}from"./kongponents.es-f7b55123.js";import{Q as $}from"./QueryParameter-70743f73.js";const P={class:"form-line-wrapper"},R={key:0,class:"form-line__col"},V=["for"],E=F({__name:"FormFragment",props:{title:{type:String,required:!1,default:null},forAttr:{type:String,required:!1,default:null},allInline:{type:Boolean,default:!1},hideLabelCol:{type:Boolean,default:!1},equalCols:{type:Boolean,default:!1},shiftRight:{type:Boolean,default:!1}},setup(d){const r=d;return(l,e)=>(a(),o("div",P,[t("div",{class:f(["form-line",{"has-equal-cols":r.equalCols}])},[r.hideLabelCol?h("",!0):(a(),o("div",R,[t("label",{for:r.forAttr,class:"k-input-label"},B(r.title)+`: `,9,V)])),_(),t("div",{class:f(["form-line__col",{"is-inline":r.allInline,"is-shifted-right":r.shiftRight}])},[b(l.$slots,"default")],2)],2)]))}});const ae=q(E,[["__scopeId","data-v-aa1ca9d8"]]),Q={class:"wizard-steps"},T={class:"wizard-steps__content-wrapper"},j={class:"wizard-steps__indicator"},G={class:"wizard-steps__indicator__controls",role:"tablist","aria-label":"steptabs"},M=["aria-selected","aria-controls"],H={class:"wizard-steps__content"},J={ref:"wizardForm",autocomplete:"off"},K=["id","aria-labelledby"],O={key:0,class:"wizard-steps__footer"},U={class:"wizard-steps__sidebar"},W={class:"wizard-steps__sidebar__content"},X=F({__name:"StepSkeleton",props:{steps:{type:Array,required:!0},sidebarContent:{type:Array,required:!0},footerEnabled:{type:Boolean,default:!0},nextDisabled:{type:Boolean,default:!0}},emits:["go-to-step"],setup(d,{emit:r}){const l=d,e=y(0),c=y(null),N=w(()=>e.value>=l.steps.length-1),A=w(()=>e.value<=0);L(function(){const n=$.get("step");e.value=n?parseInt(n):0,e.value in l.steps&&(c.value=l.steps[e.value].slug)});function D(){e.value++,g(e.value)}function I(){e.value--,g(e.value)}function g(n){c.value=l.steps[n].slug,$.set("step",n),r("go-to-step",n)}return(n,Y)=>(a(),o("div",Q,[t("div",T,[t("header",j,[t("ul",G,[(a(!0),o(m,null,v(d.steps,(s,i)=>(a(),o("li",{key:s.slug,"aria-selected":c.value===s.slug?"true":"false","aria-controls":`wizard-steps__content__item--${i}`,class:f([{"is-complete":i<=e.value},"wizard-steps__indicator__item"])},[t("span",null,B(s.label),1)],10,M))),128))])]),_(),t("div",H,[t("form",J,[(a(!0),o(m,null,v(d.steps,(s,i)=>(a(),o("div",{id:`wizard-steps__content__item--${i}`,key:s.slug,"aria-labelledby":`wizard-steps__content__item--${i}`,role:"tabpanel",tabindex:"0",class:"wizard-steps__content__item"},[c.value===s.slug?b(n.$slots,s.slug,{key:0},void 0,!0):h("",!0)],8,K))),128))],512)]),_(),l.footerEnabled?(a(),o("footer",O,[S(u(p(x),{appearance:"outline","data-testid":"next-previous-button",onClick:I},{default:k(()=>[u(p(C),{icon:"chevronLeft",color:"currentColor",size:"16","hide-title":""}),_(` Previous diff --git a/app/kuma-ui/pkg/resources/data/assets/SubscriptionHeader.vue_vue_type_script_setup_true_lang-21feaa9d.js b/app/kuma-ui/pkg/resources/data/assets/SubscriptionHeader.vue_vue_type_script_setup_true_lang-6986223f.js similarity index 89% rename from app/kuma-ui/pkg/resources/data/assets/SubscriptionHeader.vue_vue_type_script_setup_true_lang-21feaa9d.js rename to app/kuma-ui/pkg/resources/data/assets/SubscriptionHeader.vue_vue_type_script_setup_true_lang-6986223f.js index 777a8be5a2fc..78420c27eb9f 100644 --- a/app/kuma-ui/pkg/resources/data/assets/SubscriptionHeader.vue_vue_type_script_setup_true_lang-21feaa9d.js +++ b/app/kuma-ui/pkg/resources/data/assets/SubscriptionHeader.vue_vue_type_script_setup_true_lang-6986223f.js @@ -1,4 +1,4 @@ -import{l as B,Z as V}from"./kongponents.es-07c2d778.js";import{a as p,D as v}from"./DefinitionListItem-b371d6a2.js";import{k as j,h as C}from"./RouteView.vue_vue_type_script_setup_true_lang-bc0afbf3.js";import{d as x,c as L,o as e,e as o,g as a,h as k,w as i,a as u,t as c,b as s,f as d,x as T,F as b,j as D,k as y,p as N,m as P,I as S}from"./index-50754121.js";const O=t=>(N("data-v-321555ca"),t=t(),P(),t),q={key:0},E=O(()=>y("h5",{class:"overview-tertiary-title"},` +import{l as B,Z as V}from"./kongponents.es-f7b55123.js";import{a as p,D as v}from"./DefinitionListItem-f18ea925.js";import{k as j,h as C}from"./RouteView.vue_vue_type_script_setup_true_lang-8e6a23b5.js";import{d as x,c as L,o as e,e as o,g as a,h as k,w as i,a as u,t as c,b as s,f as d,x as T,F as b,j as D,k as y,p as N,m as P,I as S}from"./index-a4a530d1.js";const O=t=>(N("data-v-321555ca"),t=t(),P(),t),q={key:0},E=O(()=>y("h5",{class:"overview-tertiary-title"},` General Information: `,-1)),F={key:1,class:"columns mt-4",style:{"--columns":"4"}},R={key:0},Z={class:"overview-tertiary-title"},G=x({__name:"SubscriptionDetails",props:{details:{type:Object,required:!0},isDiscoverySubscription:{type:Boolean,default:!1}},setup(t){const r=t,{t:l}=j(),h=L(()=>{var I,m;let n;if(r.isDiscoverySubscription){const{lastUpdateTime:_,total:g,...f}=r.details.status;n=f}return(I=r.details.status)!=null&&I.stat&&(n=(m=r.details.status)==null?void 0:m.stat),n});function w(n){return n?parseInt(n,10).toLocaleString("en").toString():"0"}function $(n){return n==="--"?"error calculating":n}return(n,I)=>(e(),o("div",null,[t.details.globalInstanceId||t.details.controlPlaneInstanceId||t.details.connectTime||t.details.disconnectTime?(e(),o("div",q,[E,a(),k(v,null,{default:i(()=>[t.details.globalInstanceId?(e(),u(p,{key:0,term:s(l)("http.api.property.globalInstanceId")},{default:i(()=>[a(c(t.details.globalInstanceId),1)]),_:1},8,["term"])):d("",!0),a(),t.details.controlPlaneInstanceId?(e(),u(p,{key:1,term:s(l)("http.api.property.controlPlaneInstanceId")},{default:i(()=>[a(c(t.details.controlPlaneInstanceId),1)]),_:1},8,["term"])):d("",!0),a(),t.details.connectTime?(e(),u(p,{key:2,term:s(l)("http.api.property.connectTime")},{default:i(()=>[a(c(s(T)(t.details.connectTime)),1)]),_:1},8,["term"])):d("",!0),a(),t.details.disconnectTime?(e(),u(p,{key:3,term:s(l)("http.api.property.disconnectTime")},{default:i(()=>[a(c(s(T)(t.details.disconnectTime)),1)]),_:1},8,["term"])):d("",!0)]),_:1})])):d("",!0),a(),h.value?(e(),o("div",F,[(e(!0),o(b,null,D(h.value,(m,_)=>(e(),o(b,{key:_},[Object.keys(m).length>0?(e(),o("div",R,[y("h6",Z,c(s(l)(`http.api.property.${_}`))+`: `,1),a(),k(v,null,{default:i(()=>[(e(!0),o(b,null,D(m,(g,f)=>(e(),u(p,{key:f,term:s(l)(`http.api.property.${f}`)},{default:i(()=>[a(c($(w(g))),1)]),_:2},1032,["term"]))),128))]),_:2},1024)])):d("",!0)],64))),128))])):(e(),u(s(V),{key:2,appearance:"info",class:"mt-4"},{alertIcon:i(()=>[k(s(B),{icon:"portal"})]),alertMessage:i(()=>[a(` diff --git a/app/kuma-ui/pkg/resources/data/assets/TabsWidget-5826fd5b.js b/app/kuma-ui/pkg/resources/data/assets/TabsWidget-a42020cd.js similarity index 85% rename from app/kuma-ui/pkg/resources/data/assets/TabsWidget-5826fd5b.js rename to app/kuma-ui/pkg/resources/data/assets/TabsWidget-a42020cd.js index b821fb8dc5fd..9769fd886b0a 100644 --- a/app/kuma-ui/pkg/resources/data/assets/TabsWidget-5826fd5b.js +++ b/app/kuma-ui/pkg/resources/data/assets/TabsWidget-a42020cd.js @@ -1 +1 @@ -import{U as B,l as k,d as T}from"./kongponents.es-07c2d778.js";import{E as q}from"./ErrorBlock-eb438aeb.js";import{_ as E}from"./LoadingBlock.vue_vue_type_script_setup_true_lang-95ccda4d.js";import{d as S,q as w,c as V,o as t,e as n,a as f,F as $,n as m,f as x,g as p,k as c,h as l,l as C,j as N,w as i,b as d,M as I,p as L,m as W}from"./index-50754121.js";import{z as O,h as U}from"./RouteView.vue_vue_type_script_setup_true_lang-bc0afbf3.js";import{Q as _}from"./QueryParameter-70743f73.js";const z=a=>(L("data-v-4cf998d3"),a=a(),W(),a),A={class:"tab-container","data-testid":"tab-container"},F={key:0,class:"tab__header"},H={class:"tab__content-container"},Q={class:"flex items-center with-warnings"},j=z(()=>c("span",null,"Warnings",-1)),G=S({__name:"TabsWidget",props:{tabs:{type:Array,required:!0},isLoading:{type:Boolean,required:!1,default:!1},isEmpty:{type:Boolean,required:!1,default:!1},hasError:{type:Boolean,required:!1,default:!1},error:{type:[Error,null],required:!1,default:null},hasBorder:{type:Boolean,required:!1,default:!1},initialTabOverride:{type:String,required:!1,default:null}},emits:["on-tab-change"],setup(a,{emit:b}){const o=a,g=O(),r=w(""),h=V(()=>o.tabs.map(e=>e.hash.replace("#","")));function v(){const e=_.get("tab");e!==null?r.value=`#${e}`:o.initialTabOverride!==null&&(r.value=`#${o.initialTabOverride}`)}v();function y(e){_.set("tab",e.substring(1)),g.info(I.TABS_TAB_CHANGE,{data:{newActiveTabHash:e}}),b("on-tab-change",e)}return(e,u)=>(t(),n("div",A,[a.isLoading?(t(),f(E,{key:0})):a.error!==null?(t(),f(q,{key:1,error:a.error},null,8,["error"])):(t(),n($,{key:2},[e.$slots.tabHeader?(t(),n("header",F,[m(e.$slots,"tabHeader",{},void 0,!0)])):x("",!0),p(),c("div",H,[l(d(T),{modelValue:r.value,"onUpdate:modelValue":u[0]||(u[0]=s=>r.value=s),tabs:a.tabs,onChanged:y},C({"warnings-anchor":i(()=>[c("span",Q,[l(d(k),{class:"mr-1",icon:"warning",color:"var(--black-500)","secondary-color":"var(--yellow-300)",size:"16"}),p(),j])]),_:2},[N(h.value,(s,M)=>({name:s,fn:i(()=>[l(d(B),{"border-variant":"noBorder"},{body:i(()=>[m(e.$slots,s,{},void 0,!0)]),_:2},1024)])}))]),1032,["modelValue","tabs"])])],64))]))}});const Y=U(G,[["__scopeId","data-v-4cf998d3"]]);export{Y as T}; +import{U as B,l as k,d as T}from"./kongponents.es-f7b55123.js";import{E as q}from"./ErrorBlock-cc9ab0db.js";import{_ as E}from"./LoadingBlock.vue_vue_type_script_setup_true_lang-2c479ce1.js";import{d as S,q as w,c as V,o as t,e as n,a as f,F as $,n as m,f as x,g as p,k as c,h as l,l as C,j as N,w as i,b as d,M as I,p as L,m as W}from"./index-a4a530d1.js";import{z as O,h as U}from"./RouteView.vue_vue_type_script_setup_true_lang-8e6a23b5.js";import{Q as _}from"./QueryParameter-70743f73.js";const z=a=>(L("data-v-4cf998d3"),a=a(),W(),a),A={class:"tab-container","data-testid":"tab-container"},F={key:0,class:"tab__header"},H={class:"tab__content-container"},Q={class:"flex items-center with-warnings"},j=z(()=>c("span",null,"Warnings",-1)),G=S({__name:"TabsWidget",props:{tabs:{type:Array,required:!0},isLoading:{type:Boolean,required:!1,default:!1},isEmpty:{type:Boolean,required:!1,default:!1},hasError:{type:Boolean,required:!1,default:!1},error:{type:[Error,null],required:!1,default:null},hasBorder:{type:Boolean,required:!1,default:!1},initialTabOverride:{type:String,required:!1,default:null}},emits:["on-tab-change"],setup(a,{emit:b}){const o=a,g=O(),r=w(""),h=V(()=>o.tabs.map(e=>e.hash.replace("#","")));function v(){const e=_.get("tab");e!==null?r.value=`#${e}`:o.initialTabOverride!==null&&(r.value=`#${o.initialTabOverride}`)}v();function y(e){_.set("tab",e.substring(1)),g.info(I.TABS_TAB_CHANGE,{data:{newActiveTabHash:e}}),b("on-tab-change",e)}return(e,u)=>(t(),n("div",A,[a.isLoading?(t(),f(E,{key:0})):a.error!==null?(t(),f(q,{key:1,error:a.error},null,8,["error"])):(t(),n($,{key:2},[e.$slots.tabHeader?(t(),n("header",F,[m(e.$slots,"tabHeader",{},void 0,!0)])):x("",!0),p(),c("div",H,[l(d(T),{modelValue:r.value,"onUpdate:modelValue":u[0]||(u[0]=s=>r.value=s),tabs:a.tabs,onChanged:y},C({"warnings-anchor":i(()=>[c("span",Q,[l(d(k),{class:"mr-1",icon:"warning",color:"var(--black-500)","secondary-color":"var(--yellow-300)",size:"16"}),p(),j])]),_:2},[N(h.value,(s,M)=>({name:s,fn:i(()=>[l(d(B),{"border-variant":"noBorder"},{body:i(()=>[m(e.$slots,s,{},void 0,!0)]),_:2},1024)])}))]),1032,["modelValue","tabs"])])],64))]))}});const Y=U(G,[["__scopeId","data-v-4cf998d3"]]);export{Y as T}; diff --git a/app/kuma-ui/pkg/resources/data/assets/TagList-a0e27239.js b/app/kuma-ui/pkg/resources/data/assets/TagList-76ef6044.js similarity index 79% rename from app/kuma-ui/pkg/resources/data/assets/TagList-a0e27239.js rename to app/kuma-ui/pkg/resources/data/assets/TagList-76ef6044.js index 5810c2fc8635..2b851e21efde 100644 --- a/app/kuma-ui/pkg/resources/data/assets/TagList-a0e27239.js +++ b/app/kuma-ui/pkg/resources/data/assets/TagList-76ef6044.js @@ -1 +1 @@ -import{P as f}from"./kongponents.es-07c2d778.js";import{d as b,u as g,v as h,c as y,o as r,e as i,F as k,j as x,a as l,w as p,i as L,g as w,t as m,k as T,b as B}from"./index-50754121.js";import{h as j}from"./RouteView.vue_vue_type_script_setup_true_lang-bc0afbf3.js";function z(o){return Object.entries(o??{}).map(([s,a])=>({label:s,value:a}))}const C={class:"tag-list"},R=b({__name:"TagList",props:{tags:{type:Object,required:!0}},setup(o){const s=o,a=g(),c=h(),_=y(()=>(Array.isArray(s.tags)?s.tags:z(s.tags)).map(n=>{const{label:t,value:u}=n,v=d(n);return{label:t,value:u,route:v}}));function d(e){if(e.value!=="*")try{switch(e.label){case"kuma.io/zone":return c.resolve({name:"zone-cp-detail-view",params:{zone:e.value}});case"kuma.io/service":return"mesh"in a.params?c.resolve({name:"service-detail-view",params:{mesh:a.params.mesh,service:e.value}}):void 0;default:return}}catch{return}}return(e,n)=>(r(),i("span",C,[(r(!0),i(k,null,x(_.value,(t,u)=>(r(),l(B(f),{key:u,class:"tag-badge"},{default:p(()=>[(r(),l(L(t.route?"router-link":"span"),{to:t.route},{default:p(()=>[w(m(t.label)+":",1),T("b",null,m(t.value),1)]),_:2},1032,["to"]))]),_:2},1024))),128))]))}});const N=j(R,[["__scopeId","data-v-2e356c8b"]]);export{N as T}; +import{P as f}from"./kongponents.es-f7b55123.js";import{d as b,u as g,v as h,c as y,o as r,e as i,F as k,j as x,a as l,w as p,i as L,g as w,t as m,k as T,b as B}from"./index-a4a530d1.js";import{h as j}from"./RouteView.vue_vue_type_script_setup_true_lang-8e6a23b5.js";function z(o){return Object.entries(o??{}).map(([s,a])=>({label:s,value:a}))}const C={class:"tag-list"},R=b({__name:"TagList",props:{tags:{type:Object,required:!0}},setup(o){const s=o,a=g(),c=h(),_=y(()=>(Array.isArray(s.tags)?s.tags:z(s.tags)).map(n=>{const{label:t,value:u}=n,v=d(n);return{label:t,value:u,route:v}}));function d(e){if(e.value!=="*")try{switch(e.label){case"kuma.io/zone":return c.resolve({name:"zone-cp-detail-view",params:{zone:e.value}});case"kuma.io/service":return"mesh"in a.params?c.resolve({name:"service-detail-view",params:{mesh:a.params.mesh,service:e.value}}):void 0;default:return}}catch{return}}return(e,n)=>(r(),i("span",C,[(r(!0),i(k,null,x(_.value,(t,u)=>(r(),l(B(f),{key:u,class:"tag-badge"},{default:p(()=>[(r(),l(L(t.route?"router-link":"span"),{to:t.route},{default:p(()=>[w(m(t.label)+":",1),T("b",null,m(t.value),1)]),_:2},1032,["to"]))]),_:2},1024))),128))]))}});const N=j(R,[["__scopeId","data-v-2e356c8b"]]);export{N as T}; diff --git a/app/kuma-ui/pkg/resources/data/assets/TextWithCopyButton-d85f5945.js b/app/kuma-ui/pkg/resources/data/assets/TextWithCopyButton-4f241d23.js similarity index 87% rename from app/kuma-ui/pkg/resources/data/assets/TextWithCopyButton-d85f5945.js rename to app/kuma-ui/pkg/resources/data/assets/TextWithCopyButton-4f241d23.js index 173700ed81bf..4f3b4188d4d2 100644 --- a/app/kuma-ui/pkg/resources/data/assets/TextWithCopyButton-d85f5945.js +++ b/app/kuma-ui/pkg/resources/data/assets/TextWithCopyButton-4f241d23.js @@ -1 +1 @@ -import{l as T,S as g,L as C}from"./kongponents.es-07c2d778.js";import{d as y,o as r,a as _,w as u,h as p,b as n,g as d,n as f,k as S,t as x,e as h,i as b}from"./index-50754121.js";import{h as m,k as B}from"./RouteView.vue_vue_type_script_setup_true_lang-bc0afbf3.js";const v={class:"visually-hidden"},k=y({__name:"CopyButton",props:{text:{type:String,required:!1,default:""},getText:{type:Function,required:!1,default:null},copyText:{type:String,required:!1,default:"Copy"},tooltipSuccessText:{type:String,required:!1,default:"Copied code!"},tooltipFailText:{type:String,required:!1,default:"Failed to copy!"}},setup(l){const t=l;async function c(s,i){const e=s.currentTarget;let o=!1;try{const a=t.getText?await t.getText():t.text;o=await i(a)}catch(a){o=!1,console.error(a)}finally{const a=o?t.tooltipSuccessText:t.tooltipFailText;e instanceof HTMLButtonElement&&(e.setAttribute("data-tooltip-copy-success",String(o)),e.setAttribute("data-tooltip-text",a),window.setTimeout(function(){e instanceof HTMLButtonElement&&e.removeAttribute("data-tooltip-text")},1500))}}return(s,i)=>(r(),_(n(C),null,{default:u(({copyToClipboard:e})=>[p(n(g),{appearance:"outline",class:"copy-button non-visual-button","data-testid":"copy-button","is-rounded":!1,size:"small",title:t.copyText,type:"button",onClick:o=>c(o,e)},{default:u(()=>[p(n(T),{color:"currentColor",icon:"copy",size:"18",title:t.copyText},null,8,["title"]),d(),f(s.$slots,"default",{},()=>[S("span",v,x(t.copyText),1)],!0)]),_:2},1032,["title","onClick"])]),_:3}))}});const q=m(k,[["__scopeId","data-v-ed92fcab"]]),w={class:"copy-button-wrapper"},F=y({__name:"TextWithCopyButton",props:{text:{type:String,required:!0},tag:{type:String,required:!1,default:"span"}},setup(l){const t=l,c=B();return(s,i)=>(r(),h("div",w,[f(s.$slots,"default",{},()=>[(r(),_(b(t.tag),null,{default:u(()=>[d(x(t.text),1)]),_:1}))],!0),d(),p(q,{text:t.text,"copy-text":n(c).t("common.copyText"),"tooltip-success-text":n(c).t("common.copySuccessText")},null,8,["text","copy-text","tooltip-success-text"])]))}});const E=m(F,[["__scopeId","data-v-069e891c"]]);export{q as C,E as T}; +import{l as T,S as g,L as C}from"./kongponents.es-f7b55123.js";import{d as y,o as r,a as _,w as u,h as p,b as n,g as d,n as f,k as S,t as x,e as h,i as b}from"./index-a4a530d1.js";import{h as m,k as B}from"./RouteView.vue_vue_type_script_setup_true_lang-8e6a23b5.js";const v={class:"visually-hidden"},k=y({__name:"CopyButton",props:{text:{type:String,required:!1,default:""},getText:{type:Function,required:!1,default:null},copyText:{type:String,required:!1,default:"Copy"},tooltipSuccessText:{type:String,required:!1,default:"Copied code!"},tooltipFailText:{type:String,required:!1,default:"Failed to copy!"}},setup(l){const t=l;async function c(s,i){const e=s.currentTarget;let o=!1;try{const a=t.getText?await t.getText():t.text;o=await i(a)}catch(a){o=!1,console.error(a)}finally{const a=o?t.tooltipSuccessText:t.tooltipFailText;e instanceof HTMLButtonElement&&(e.setAttribute("data-tooltip-copy-success",String(o)),e.setAttribute("data-tooltip-text",a),window.setTimeout(function(){e instanceof HTMLButtonElement&&e.removeAttribute("data-tooltip-text")},1500))}}return(s,i)=>(r(),_(n(C),null,{default:u(({copyToClipboard:e})=>[p(n(g),{appearance:"outline",class:"copy-button non-visual-button","data-testid":"copy-button","is-rounded":!1,size:"small",title:t.copyText,type:"button",onClick:o=>c(o,e)},{default:u(()=>[p(n(T),{color:"currentColor",icon:"copy",size:"18",title:t.copyText},null,8,["title"]),d(),f(s.$slots,"default",{},()=>[S("span",v,x(t.copyText),1)],!0)]),_:2},1032,["title","onClick"])]),_:3}))}});const q=m(k,[["__scopeId","data-v-ed92fcab"]]),w={class:"copy-button-wrapper"},F=y({__name:"TextWithCopyButton",props:{text:{type:String,required:!0},tag:{type:String,required:!1,default:"span"}},setup(l){const t=l,c=B();return(s,i)=>(r(),h("div",w,[f(s.$slots,"default",{},()=>[(r(),_(b(t.tag),null,{default:u(()=>[d(x(t.text),1)]),_:1}))],!0),d(),p(q,{text:t.text,"copy-text":n(c).t("common.copyText"),"tooltip-success-text":n(c).t("common.copySuccessText")},null,8,["text","copy-text","tooltip-success-text"])]))}});const E=m(F,[["__scopeId","data-v-069e891c"]]);export{q as C,E as T}; diff --git a/app/kuma-ui/pkg/resources/data/assets/WarningsWidget.vue_vue_type_script_setup_true_lang-2f6eac43.js b/app/kuma-ui/pkg/resources/data/assets/WarningsWidget.vue_vue_type_script_setup_true_lang-385921c7.js similarity index 90% rename from app/kuma-ui/pkg/resources/data/assets/WarningsWidget.vue_vue_type_script_setup_true_lang-2f6eac43.js rename to app/kuma-ui/pkg/resources/data/assets/WarningsWidget.vue_vue_type_script_setup_true_lang-385921c7.js index 2c0015242d04..c3a498a4b8ac 100644 --- a/app/kuma-ui/pkg/resources/data/assets/WarningsWidget.vue_vue_type_script_setup_true_lang-2f6eac43.js +++ b/app/kuma-ui/pkg/resources/data/assets/WarningsWidget.vue_vue_type_script_setup_true_lang-385921c7.js @@ -1,4 +1,4 @@ -import{Z as _}from"./kongponents.es-07c2d778.js";import{d as l,o as a,e as r,t,g as n,k as s,F as m,j as d,h as y,w as g,a as P,i as f,b as D}from"./index-50754121.js";import{F as O,r as b,B as h,E as C}from"./RouteView.vue_vue_type_script_setup_true_lang-bc0afbf3.js";const N=l({__name:"WarningDefault",props:{payload:{type:[String,Object],required:!0}},setup(e){return(o,u)=>(a(),r("span",null,t(e.payload),1))}}),E=l({__name:"WarningEnvoyIncompatible",props:{payload:{type:Object,required:!0}},setup(e){return(o,u)=>(a(),r("span",null,[n(` +import{Z as _}from"./kongponents.es-f7b55123.js";import{d as l,o as a,e as r,t,g as n,k as s,F as m,j as d,h as y,w as g,a as P,i as f,b as D}from"./index-a4a530d1.js";import{F as O,r as b,B as h,E as C}from"./RouteView.vue_vue_type_script_setup_true_lang-8e6a23b5.js";const N=l({__name:"WarningDefault",props:{payload:{type:[String,Object],required:!0}},setup(e){return(o,u)=>(a(),r("span",null,t(e.payload),1))}}),E=l({__name:"WarningEnvoyIncompatible",props:{payload:{type:Object,required:!0}},setup(e){return(o,u)=>(a(),r("span",null,[n(` Envoy (`),s("strong",null,t(e.payload.envoy),1),n(") is unsupported by the current version of Kuma DP ("),s("strong",null,t(e.payload.kumaDp),1),n(") [Requirements: "),s("strong",null,t(e.payload.requirements),1),n(`]. `)]))}}),I=l({__name:"WarningUnsupportedKumaDPVersion",props:{payload:{type:Object,required:!0}},setup(e){return(o,u)=>(a(),r("span",null,[n(` Unsupported version of Kuma DP (`),s("strong",null,t(e.payload.kumaDp),1),n(`) diff --git a/app/kuma-ui/pkg/resources/data/assets/WelcomeView-4aafe261.js b/app/kuma-ui/pkg/resources/data/assets/WelcomeView-9b449942.js similarity index 94% rename from app/kuma-ui/pkg/resources/data/assets/WelcomeView-4aafe261.js rename to app/kuma-ui/pkg/resources/data/assets/WelcomeView-9b449942.js index d5798ac945bc..f0573310b3bc 100644 --- a/app/kuma-ui/pkg/resources/data/assets/WelcomeView-4aafe261.js +++ b/app/kuma-ui/pkg/resources/data/assets/WelcomeView-9b449942.js @@ -1,4 +1,4 @@ -import{l as V}from"./kongponents.es-07c2d778.js";import{O as S,a as C,b as L}from"./OnboardingPage-392f5a8e.js";import{d as f,q as $,y as A,o as i,e as h,g as a,z as W,A as g,p as M,m as y,k as t,c as p,B as u,a as m,w as d,h as o,b as n,t as v,j as H,f as I,F as N}from"./index-50754121.js";import{h as w,f as O,k as B,g as G,_ as j}from"./RouteView.vue_vue_type_script_setup_true_lang-bc0afbf3.js";import{_ as z}from"./RouteTitle.vue_vue_type_script_setup_true_lang-c74dc965.js";const E=e=>(M("data-v-4b67edd8"),e=e(),y(),e),F=E(()=>t("defs",null,null,-1)),T=g(' ',1),D=g('
',1),P=f({__name:"WelcomeAnimationSvg",setup(e){const s=$(!1);return A(function(){window.setTimeout(()=>{s.value=!0},30)}),(r,b)=>(i(),h("svg",{class:W(["background svg",{active:s.value}]),xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1920 1080"},[F,a(),T,a(),D],2))}});const R=w(P,[["__scopeId","data-v-4b67edd8"]]),k=e=>(M("data-v-feaef025"),e=e(),y(),e),U=k(()=>t("strong",null,"few minutes",-1)),q=k(()=>t("h2",{class:"text-center"},` +import{l as V}from"./kongponents.es-f7b55123.js";import{O as S,a as C,b as L}from"./OnboardingPage-fd4cb9d4.js";import{d as f,q as $,y as A,o as i,e as h,g as a,z as W,A as g,p as M,m as y,k as t,c as p,B as u,a as m,w as d,h as o,b as n,t as v,j as H,f as I,F as N}from"./index-a4a530d1.js";import{h as w,f as O,k as B,g as G,_ as j}from"./RouteView.vue_vue_type_script_setup_true_lang-8e6a23b5.js";import{_ as z}from"./RouteTitle.vue_vue_type_script_setup_true_lang-f4fc2caf.js";const E=e=>(M("data-v-4b67edd8"),e=e(),y(),e),F=E(()=>t("defs",null,null,-1)),T=g(' ',1),D=g('
',1),P=f({__name:"WelcomeAnimationSvg",setup(e){const s=$(!1);return A(function(){window.setTimeout(()=>{s.value=!0},30)}),(r,b)=>(i(),h("svg",{class:W(["background svg",{active:s.value}]),xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1920 1080"},[F,a(),T,a(),D],2))}});const R=w(P,[["__scopeId","data-v-4b67edd8"]]),k=e=>(M("data-v-feaef025"),e=e(),y(),e),U=k(()=>t("strong",null,"few minutes",-1)),q=k(()=>t("h2",{class:"text-center"},` Let’s get started: `,-1)),Y={class:"item-status-list-wrapper"},J={class:"item-status-list"},K={class:"circle mr-2"},Q=f({__name:"WelcomeView",setup(e){const s=O(),{t:r}=B(),b=p(()=>{const l=s.getters["config/getEnvironment"];return l.charAt(0).toUpperCase()+l.slice(1)}),_=p(()=>s.getters["config/getMulticlusterStatus"]),x=p(()=>[{name:`Run ${u} control plane`,status:!0},{name:"Learn about deployments",status:!1},{name:"Learn about configuration storage",status:!1},..._.value?[{name:"Add zones",status:!1}]:[],{name:"Create the mesh",status:!1},{name:"Add services",status:!1},{name:"Go to the dashboard",status:!1}]);return(l,X)=>(i(),m(j,null,{default:d(()=>[o(z,{title:n(r)("onboarding.routes.welcome.title",{name:n(r)("common.product.name")})},null,8,["title"]),a(),o(G,null,{default:d(()=>[t("div",null,[o(S,null,{header:d(()=>[o(C,null,{title:d(()=>[a(` Welcome to `+v(n(u)),1)]),description:d(()=>[t("p",null,[a(` diff --git a/app/kuma-ui/pkg/resources/data/assets/ZoneCreateView-21900b7d.js b/app/kuma-ui/pkg/resources/data/assets/ZoneCreateView-f6bb42f9.js similarity index 96% rename from app/kuma-ui/pkg/resources/data/assets/ZoneCreateView-21900b7d.js rename to app/kuma-ui/pkg/resources/data/assets/ZoneCreateView-f6bb42f9.js index cd4447e93b1a..2874103f9361 100644 --- a/app/kuma-ui/pkg/resources/data/assets/ZoneCreateView-21900b7d.js +++ b/app/kuma-ui/pkg/resources/data/assets/ZoneCreateView-f6bb42f9.js @@ -1,4 +1,4 @@ -import{l as F,S as T,c as O,u as W,s as D,o as L}from"./kongponents.es-07c2d778.js";import{d as Z,u as B,c as y,o as f,e as C,k as t,t as o,b as n,g as e,h as l,p as M,m as R,n as N,q as b,a as I,w as r,f as $,F as j}from"./index-50754121.js";import{_ as z}from"./CodeBlock.vue_vue_type_style_index_0_lang-559b3ab4.js";import{l as H,k as q,f as x,h as V,j as G,g as J,_ as Q,y as X}from"./RouteView.vue_vue_type_script_setup_true_lang-bc0afbf3.js";import{_ as Y}from"./RouteTitle.vue_vue_type_script_setup_true_lang-c74dc965.js";import{E as ee}from"./ErrorBlock-eb438aeb.js";import{_ as ne}from"./EntityScanner.vue_vue_type_script_setup_true_lang-e9ac5f5d.js";const te=m=>(M("data-v-293c555d"),m=m(),R(),m),oe={href:"https://helm.sh/docs/intro/install/"},se=te(()=>t("p",null,"On your local machine, create a namespace in your Kubernetes cluster and pull down the kong Helm repo.",-1)),ae={class:"k-input-label mt-4"},le={class:"mt-4"},re=Z({__name:"ZoneCreateKubernetesInstructions",props:{zoneName:{type:String,required:!0},zoneIngressEnabled:{type:Boolean,required:!0},zoneEgressEnabled:{type:Boolean,required:!0},token:{type:String,required:!0},base64EncodedToken:{type:String,required:!0}},setup(m){const a=m,u=H(),s=q(),p=B(),k=x(),g=y(()=>s.t("zones.form.kubernetes.secret.createSecretCommand",{token:a.base64EncodedToken}).trim()),_=y(()=>{const c={zoneName:a.zoneName,globalKdsAddress:k.state.globalKdsAddress,zoneIngressEnabled:String(a.zoneIngressEnabled),zoneEgressEnabled:String(a.zoneEgressEnabled)};return typeof p.params.virtualControlPlaneId=="string"&&(c.controlPlaneId=p.params.virtualControlPlaneId),s.t("zones.form.kubernetes.connectZone.config",c).trim()});return(c,h)=>(f(),C("div",null,[t("h3",null,"1. "+o(n(s).t("zones.form.kubernetes.prerequisites.title")),1),e(),t("ul",null,[t("li",null,[t("b",null,o(n(s).t("zones.form.kubernetes.prerequisites.step1Label"))+o(a.zoneIngressEnabled?" "+n(s).t("zones.form.kubernetes.prerequisites.step1LabelAddendum"):""),1),e(`: +import{l as F,S as T,c as O,u as W,s as D,o as L}from"./kongponents.es-f7b55123.js";import{d as Z,u as B,c as y,o as f,e as C,k as t,t as o,b as n,g as e,h as l,p as M,m as R,n as N,q as b,a as I,w as r,f as $,F as j}from"./index-a4a530d1.js";import{_ as z}from"./CodeBlock.vue_vue_type_style_index_0_lang-15a6fd20.js";import{l as H,k as q,f as x,h as V,j as G,g as J,_ as Q,y as X}from"./RouteView.vue_vue_type_script_setup_true_lang-8e6a23b5.js";import{_ as Y}from"./RouteTitle.vue_vue_type_script_setup_true_lang-f4fc2caf.js";import{E as ee}from"./ErrorBlock-cc9ab0db.js";import{_ as ne}from"./EntityScanner.vue_vue_type_script_setup_true_lang-a5d1cc1c.js";const te=m=>(M("data-v-293c555d"),m=m(),R(),m),oe={href:"https://helm.sh/docs/intro/install/"},se=te(()=>t("p",null,"On your local machine, create a namespace in your Kubernetes cluster and pull down the kong Helm repo.",-1)),ae={class:"k-input-label mt-4"},le={class:"mt-4"},re=Z({__name:"ZoneCreateKubernetesInstructions",props:{zoneName:{type:String,required:!0},zoneIngressEnabled:{type:Boolean,required:!0},zoneEgressEnabled:{type:Boolean,required:!0},token:{type:String,required:!0},base64EncodedToken:{type:String,required:!0}},setup(m){const a=m,u=H(),s=q(),p=B(),k=x(),g=y(()=>s.t("zones.form.kubernetes.secret.createSecretCommand",{token:a.base64EncodedToken}).trim()),_=y(()=>{const c={zoneName:a.zoneName,globalKdsAddress:k.state.globalKdsAddress,zoneIngressEnabled:String(a.zoneIngressEnabled),zoneEgressEnabled:String(a.zoneEgressEnabled)};return typeof p.params.virtualControlPlaneId=="string"&&(c.controlPlaneId=p.params.virtualControlPlaneId),s.t("zones.form.kubernetes.connectZone.config",c).trim()});return(c,h)=>(f(),C("div",null,[t("h3",null,"1. "+o(n(s).t("zones.form.kubernetes.prerequisites.title")),1),e(),t("ul",null,[t("li",null,[t("b",null,o(n(s).t("zones.form.kubernetes.prerequisites.step1Label"))+o(a.zoneIngressEnabled?" "+n(s).t("zones.form.kubernetes.prerequisites.step1LabelAddendum"):""),1),e(`: `+o(n(s).t("zones.form.kubernetes.prerequisites.step1Description",{productName:n(u)("KUMA_PRODUCT_NAME")})),1)]),e(),t("li",null,[t("b",null,o(n(s).t("zones.form.kubernetes.prerequisites.step2Label")),1),e(`: `+o(n(s).t("zones.form.kubernetes.prerequisites.step2Description")),1)]),e(),t("li",null,[t("a",oe,o(n(s).t("zones.form.kubernetes.prerequisites.step3LinkTitle")),1),e(" "+o(n(s).t("zones.form.kubernetes.prerequisites.step3Tail")),1)])]),e(),t("h3",null,"2. "+o(n(s).t("zones.form.kubernetes.helm.title")),1),e(),se,e(),t("ol",null,[t("li",null,[e(o(n(s).t("zones.form.kubernetes.helm.step1Description"))+" ",1),l(z,{id:"zone-kubernetes-create-namespace",class:"mt-4",code:n(s).t("zones.form.kubernetes.helm.step1Command"),language:"bash"},null,8,["code"])]),e(),t("li",null,[e(o(n(s).t("zones.form.kubernetes.helm.step2Description"))+" ",1),l(z,{id:"zone-kubernetes-add-charts-repo",class:"mt-4",code:n(s).t("zones.form.kubernetes.helm.step2Command"),language:"bash"},null,8,["code"])]),e(),t("li",null,[e(o(n(s).t("zones.form.kubernetes.helm.step3Description"))+" ",1),l(z,{id:"zone-kubernetes-repo-update",class:"mt-4",code:n(s).t("zones.form.kubernetes.helm.step3Command"),language:"bash"},null,8,["code"])])]),e(),t("h3",null,"3. "+o(n(s).t("zones.form.kubernetes.secret.title")),1),e(),t("p",null,o(n(s).t("zones.form.kubernetes.secret.createSecretDescription")),1),e(),l(z,{id:"zone-kubernetes-create-secret",class:"mt-4",code:g.value,language:"bash"},null,8,["code"]),e(),t("h3",null,"4. "+o(n(s).t("zones.form.kubernetes.connectZone.title")),1),e(),t("p",null,o(n(s).t("zones.form.kubernetes.connectZone.configDescription")),1),e(),t("span",ae,o(n(s).t("zones.form.kubernetes.connectZone.configFileName")),1),e(),l(z,{id:"zone-kubernetes-config-code-block",code:_.value,language:"yaml"},null,8,["code"]),e(),t("p",le,o(n(s).t("zones.form.kubernetes.connectZone.connectDescription")),1),e(),l(z,{id:"zone-kubernetes-command-code-block",class:"mt-4",code:n(s).t("zones.form.kubernetes.connectZone.connectCommand").trim(),language:"bash"},null,8,["code"])]))}});const ue=V(re,[["__scopeId","data-v-293c555d"]]),ce={class:"k-input-label mt-4"},ie={class:"mt-4"},de=Z({__name:"ZoneCreateUniversalInstructions",props:{zoneName:{type:String,required:!0},token:{type:String,required:!0}},setup(m){const a=m,u=q(),s=B(),p=x(),k=y(()=>u.t("zones.form.universal.saveToken.saveTokenCommand",{token:a.token}).trim()),g=y(()=>{const _={zoneName:a.zoneName,globalKdsAddress:p.state.globalKdsAddress};return typeof s.params.virtualControlPlaneId=="string"&&(_.controlPlaneId=s.params.virtualControlPlaneId),u.t("zones.form.universal.connectZone.config",_).trim()});return(_,c)=>(f(),C("div",null,[t("h3",null,"1. "+o(n(u).t("zones.form.universal.saveToken.title")),1),e(),t("p",null,o(n(u).t("zones.form.universal.saveToken.saveTokenDescription")),1),e(),l(z,{id:"zone-kubernetes-token",class:"mt-4",code:k.value,language:"bash"},null,8,["code"]),e(),t("h3",null,"2. "+o(n(u).t("zones.form.universal.connectZone.title")),1),e(),t("p",null,o(n(u).t("zones.form.universal.connectZone.configDescription")),1),e(),t("span",ce,o(n(u).t("zones.form.universal.connectZone.configFileName")),1),e(),l(z,{id:"zone-universal-config-code-block",class:"mt-4",code:g.value,language:"yaml"},null,8,["code"]),e(),t("p",ie,o(n(u).t("zones.form.universal.connectZone.connectDescription")),1),e(),l(z,{id:"zone-universal-connect-command-code-block",class:"mt-4",code:n(u).t("zones.form.universal.connectZone.connectCommand").trim(),language:"bash"},null,8,["code"])]))}});const me=V(de,[["__scopeId","data-v-ea760a7e"]]),pe={class:"app-title-bar"},_e={class:"title-wrapper"},ve={class:"title"},be={class:"action-list"},fe=Z({__name:"WizardTitleBar",setup(m){return(a,u)=>(f(),C("div",pe,[t("div",_e,[l(n(F),{icon:"kong"}),e(),t("span",ve,[N(a.$slots,"title",{},void 0,!0)])]),e(),t("div",be,[N(a.$slots,"actions",{},void 0,!0)])]))}});const ze=V(fe,[["__scopeId","data-v-f0a75c34"]]),ke={class:"form-content"},ge={class:"form-wrapper mt-4"},he={key:1,class:"form-wrapper mt-4"},ye={class:"k-input-label"},Ce={class:"radio-button-group"},Ee={class:"k-input-label"},Ie={class:"radio-button-group"},Ze={class:"k-input-label"},Ve={class:"radio-button-group"},we={class:"mt-6"},Se={class:"mt-2"},Te=Z({__name:"ZoneCreateView",setup(m){const{t:a}=q(),u=G(),s=b(null),p=b(!1),k=b(null),g=b(!1),_=b(null),c=b(""),h=b("kubernetes"),w=b(!0),S=b(!0),E=y(()=>s.value!==null&&s.value.token?s.value.token:""),K=y(()=>E.value!==""?window.btoa(E.value):""),U=y(()=>c.value!=="");async function A(){p.value=!0,k.value=null;try{s.value=await u.createZone({name:c.value})}catch(d){d instanceof Error?k.value=d:console.error(d)}finally{p.value=!1}}async function P(){g.value=!1,_.value=null;try{const d=await u.getZoneOverview({name:c.value}),i=X(d.zoneInsight);g.value=i==="online"}catch(d){d instanceof Error?_.value=d:console.error(d)}}return(d,i)=>(f(),I(Q,{attrs:{class:"is-fullscreen"}},{default:r(()=>[l(Y,{title:n(a)("zones.routes.create.title")},null,8,["title"]),e(),l(J,{breadcrumbs:[]},{default:r(()=>[l(ze,{class:"mb-6"},{title:r(()=>[e(o(n(a)("zones.routes.create.title")),1)]),actions:r(()=>[l(n(T),{appearance:"outline",to:{name:"zone-cp-list-view"}},{default:r(()=>[e(o(n(a)("zones.form.exit")),1)]),_:1})]),_:1}),e(),t("div",ke,[t("h1",null,o(n(a)("zones.routes.create.title")),1),e(),t("div",ge,[t("div",null,[l(n(O),{for:"zone-name"},{default:r(()=>[e(o(n(a)("zones.form.nameLabel"))+` * `,1)]),_:1}),e(),l(n(W),{id:"zone-name",modelValue:c.value,"onUpdate:modelValue":i[0]||(i[0]=v=>c.value=v),type:"text",name:"zone-name","data-testid":"name-input",disabled:s.value!==null},null,8,["modelValue","disabled"])]),e(),l(n(T),{appearance:"creation",icon:p.value?"spinner":"plus",disabled:!U.value||p.value||s.value!==null,"data-testid":"create-zone-button",onClick:A},{default:r(()=>[e(o(n(a)("zones.form.createZoneButtonLabel")),1)]),_:1},8,["icon","disabled"])]),e(),k.value!==null?(f(),I(ee,{key:0,class:"mt-4",error:k.value},{default:r(()=>[e(o(n(a)("zones.create.errorTitle")),1)]),_:1},8,["error"])):$("",!0),e(),s.value!==null?(f(),C("div",he,[t("div",null,[t("span",ye,o(n(a)("zones.form.environmentLabel"))+` * diff --git a/app/kuma-ui/pkg/resources/data/assets/ZoneDetailView-6bef6f62.js b/app/kuma-ui/pkg/resources/data/assets/ZoneDetailView-6bef6f62.js new file mode 100644 index 000000000000..942510c58092 --- /dev/null +++ b/app/kuma-ui/pkg/resources/data/assets/ZoneDetailView-6bef6f62.js @@ -0,0 +1 @@ +import{d as k,u as z,q as l,s as p,o as a,a as s,w as _,h as c,b as f,g as b,k as h,e as y}from"./index-a4a530d1.js";import{_ as $}from"./ZoneDetails.vue_vue_type_script_setup_true_lang-0689c124.js";import{j as x,k as B,g,_ as E}from"./RouteView.vue_vue_type_script_setup_true_lang-8e6a23b5.js";import{_ as V}from"./RouteTitle.vue_vue_type_script_setup_true_lang-f4fc2caf.js";import{_ as N}from"./EmptyBlock.vue_vue_type_script_setup_true_lang-ddebee78.js";import{E as A}from"./ErrorBlock-cc9ab0db.js";import{_ as C}from"./LoadingBlock.vue_vue_type_script_setup_true_lang-2c479ce1.js";import"./kongponents.es-f7b55123.js";import"./CodeBlock.vue_vue_type_style_index_0_lang-15a6fd20.js";import"./DefinitionListItem-f18ea925.js";import"./SubscriptionHeader.vue_vue_type_script_setup_true_lang-6986223f.js";import"./TabsWidget-a42020cd.js";import"./QueryParameter-70743f73.js";import"./TextWithCopyButton-4f241d23.js";import"./WarningsWidget.vue_vue_type_script_setup_true_lang-385921c7.js";const D={class:"zone-details"},O={key:3,class:"kcard-border","data-testid":"detail-view-details"},U=k({__name:"ZoneDetailView",setup(Z){const d=x(),e=z(),{t:m}=B(),t=l(null),n=l(!0),o=l(null);p(()=>e.params.mesh,function(){e.name==="zone-cp-detail-view"&&i()}),p(()=>e.params.name,function(){e.name==="zone-cp-detail-view"&&i()}),v();function v(){i()}async function i(){n.value=!0,o.value=null;const u=e.params.zone;try{t.value=await d.getZoneOverview({name:u})}catch(r){t.value=null,r instanceof Error?o.value=r:console.error(r)}finally{n.value=!1}}return(u,r)=>(a(),s(E,null,{default:_(({route:w})=>[c(V,{title:f(m)("zone-cps.routes.item.title",{name:w.params.zone})},null,8,["title"]),b(),c(g,{breadcrumbs:[{to:{name:"zone-cp-list-view"},text:f(m)("zone-cps.routes.item.breadcrumbs")}]},{default:_(()=>[h("div",D,[n.value?(a(),s(C,{key:0})):o.value!==null?(a(),s(A,{key:1,error:o.value},null,8,["error"])):t.value===null?(a(),s(N,{key:2})):(a(),y("div",O,[c($,{"zone-overview":t.value},null,8,["zone-overview"])]))])]),_:1},8,["breadcrumbs"])]),_:1}))}});export{U as default}; diff --git a/app/kuma-ui/pkg/resources/data/assets/ZoneDetailView-731aea0c.js b/app/kuma-ui/pkg/resources/data/assets/ZoneDetailView-731aea0c.js deleted file mode 100644 index 2a9daefa62f0..000000000000 --- a/app/kuma-ui/pkg/resources/data/assets/ZoneDetailView-731aea0c.js +++ /dev/null @@ -1 +0,0 @@ -import{d as k,u as z,q as l,s as p,o as a,a as s,w as f,h as c,b as _,g as h,k as b,e as y}from"./index-50754121.js";import{_ as $}from"./ZoneDetails.vue_vue_type_script_setup_true_lang-131b956f.js";import{j as g,f as x,k as B,g as E,_ as V}from"./RouteView.vue_vue_type_script_setup_true_lang-bc0afbf3.js";import{_ as N}from"./RouteTitle.vue_vue_type_script_setup_true_lang-c74dc965.js";import{_ as A}from"./EmptyBlock.vue_vue_type_script_setup_true_lang-34eb656c.js";import{E as C}from"./ErrorBlock-eb438aeb.js";import{_ as D}from"./LoadingBlock.vue_vue_type_script_setup_true_lang-95ccda4d.js";import"./kongponents.es-07c2d778.js";import"./CodeBlock.vue_vue_type_style_index_0_lang-559b3ab4.js";import"./DefinitionListItem-b371d6a2.js";import"./SubscriptionHeader.vue_vue_type_script_setup_true_lang-21feaa9d.js";import"./TabsWidget-5826fd5b.js";import"./QueryParameter-70743f73.js";import"./TextWithCopyButton-d85f5945.js";import"./WarningsWidget.vue_vue_type_script_setup_true_lang-2f6eac43.js";const O={class:"zone-details"},T={key:3,class:"kcard-border","data-testid":"detail-view-details"},W=k({__name:"ZoneDetailView",setup(Z){const d=g(),e=z(),v=x(),{t:m}=B(),t=l(null),n=l(!0),o=l(null);p(()=>e.params.mesh,function(){e.name==="zone-cp-detail-view"&&i()}),p(()=>e.params.name,function(){e.name==="zone-cp-detail-view"&&i()}),w();function w(){v.dispatch("updatePageTitle",e.params.zone),i()}async function i(){n.value=!0,o.value=null;const u=e.params.zone;try{t.value=await d.getZoneOverview({name:u})}catch(r){t.value=null,r instanceof Error?o.value=r:console.error(r)}finally{n.value=!1}}return(u,r)=>(a(),s(V,null,{default:f(()=>[c(N,{title:_(m)("zone-cps.routes.item.title")},null,8,["title"]),h(),c(E,{breadcrumbs:[{to:{name:"zone-cp-list-view"},text:_(m)("zone-cps.routes.item.breadcrumbs")}]},{default:f(()=>[b("div",O,[n.value?(a(),s(D,{key:0})):o.value!==null?(a(),s(C,{key:1,error:o.value},null,8,["error"])):t.value===null?(a(),s(A,{key:2})):(a(),y("div",T,[c($,{"zone-overview":t.value},null,8,["zone-overview"])]))])]),_:1},8,["breadcrumbs"])]),_:1}))}});export{W as default}; diff --git a/app/kuma-ui/pkg/resources/data/assets/ZoneDetails.vue_vue_type_script_setup_true_lang-131b956f.js b/app/kuma-ui/pkg/resources/data/assets/ZoneDetails.vue_vue_type_script_setup_true_lang-0689c124.js similarity index 81% rename from app/kuma-ui/pkg/resources/data/assets/ZoneDetails.vue_vue_type_script_setup_true_lang-131b956f.js rename to app/kuma-ui/pkg/resources/data/assets/ZoneDetails.vue_vue_type_script_setup_true_lang-0689c124.js index 4e34782b5865..c65d2298111b 100644 --- a/app/kuma-ui/pkg/resources/data/assets/ZoneDetails.vue_vue_type_script_setup_true_lang-131b956f.js +++ b/app/kuma-ui/pkg/resources/data/assets/ZoneDetails.vue_vue_type_script_setup_true_lang-0689c124.js @@ -1,4 +1,4 @@ -import{P as N}from"./kongponents.es-07c2d778.js";import{k as T,f as V,y as x,F as B,A as D,i as L}from"./RouteView.vue_vue_type_script_setup_true_lang-bc0afbf3.js";import{_ as Z}from"./CodeBlock.vue_vue_type_style_index_0_lang-559b3ab4.js";import{a as P,D as E}from"./DefinitionListItem-b371d6a2.js";import{_ as F,S as $}from"./SubscriptionHeader.vue_vue_type_script_setup_true_lang-21feaa9d.js";import{T as j}from"./TabsWidget-5826fd5b.js";import{T as w}from"./TextWithCopyButton-d85f5945.js";import{_ as R}from"./WarningsWidget.vue_vue_type_script_setup_true_lang-2f6eac43.js";import{d as W,c as l,S as q,r as G,o as i,a as u,w as e,k as J,g as p,h as c,t as f,e as g,j as b,b as k,F as d,f as H}from"./index-50754121.js";const M={class:"entity-heading"},oe=W({__name:"ZoneDetails",props:{zoneOverview:{type:Object,required:!0}},setup(O){const r=O,{t:y}=T(),z=V(),v=[{hash:"#overview",title:"Overview"},{hash:"#insights",title:"Zone Insights"},{hash:"#config",title:"Config"},{hash:"#warnings",title:"Warnings"}],C=l(()=>({name:"zone-cp-detail-view",params:{zone:r.zoneOverview.name}})),m=l(()=>{const{type:t,name:n}=r.zoneOverview,o=x(r.zoneOverview.zoneInsight);return{type:t,name:n,status:o,"Authentication Type":q(r.zoneOverview)}}),S=l(()=>{var n;const t=((n=r.zoneOverview.zoneInsight)==null?void 0:n.subscriptions)??[];return Array.from(t).reverse()}),h=l(()=>{var o;const t=[],n=((o=r.zoneOverview.zoneInsight)==null?void 0:o.subscriptions)??[];if(n.length>0){const s=n[n.length-1],a=s.version.kumaCp.version||"-",{kumaCpGlobalCompatible:A=!0}=s.version.kumaCp;A||t.push({kind:B,payload:{zoneCpVersion:a,globalCpVersion:z.getters["config/getVersion"]}})}return t}),_=l(()=>{var o;const t=((o=r.zoneOverview.zoneInsight)==null?void 0:o.subscriptions)??[],n=t[t.length-1];return n.config?JSON.stringify(JSON.parse(n.config),null,2):null}),I=l(()=>h.value.length===0?v.filter(t=>t.hash!=="#warnings"):v);return(t,n)=>{const o=G("router-link");return i(),u(j,{tabs:I.value},{tabHeader:e(()=>[J("h1",M,[p(` +import{P as N}from"./kongponents.es-f7b55123.js";import{k as T,f as V,y as x,F as B,A as D,i as L}from"./RouteView.vue_vue_type_script_setup_true_lang-8e6a23b5.js";import{_ as Z}from"./CodeBlock.vue_vue_type_style_index_0_lang-15a6fd20.js";import{a as P,D as E}from"./DefinitionListItem-f18ea925.js";import{_ as F,S as $}from"./SubscriptionHeader.vue_vue_type_script_setup_true_lang-6986223f.js";import{T as j}from"./TabsWidget-a42020cd.js";import{T as w}from"./TextWithCopyButton-4f241d23.js";import{_ as R}from"./WarningsWidget.vue_vue_type_script_setup_true_lang-385921c7.js";import{d as W,c as l,S as q,r as G,o as i,a as u,w as e,k as J,g as p,h as c,t as f,e as g,j as b,b as k,F as d,f as H}from"./index-a4a530d1.js";const M={class:"entity-heading"},oe=W({__name:"ZoneDetails",props:{zoneOverview:{type:Object,required:!0}},setup(O){const r=O,{t:y}=T(),z=V(),v=[{hash:"#overview",title:"Overview"},{hash:"#insights",title:"Zone Insights"},{hash:"#config",title:"Config"},{hash:"#warnings",title:"Warnings"}],C=l(()=>({name:"zone-cp-detail-view",params:{zone:r.zoneOverview.name}})),m=l(()=>{const{type:t,name:n}=r.zoneOverview,o=x(r.zoneOverview.zoneInsight);return{type:t,name:n,status:o,"Authentication Type":q(r.zoneOverview)}}),S=l(()=>{var n;const t=((n=r.zoneOverview.zoneInsight)==null?void 0:n.subscriptions)??[];return Array.from(t).reverse()}),h=l(()=>{var o;const t=[],n=((o=r.zoneOverview.zoneInsight)==null?void 0:o.subscriptions)??[];if(n.length>0){const s=n[n.length-1],a=s.version.kumaCp.version||"-",{kumaCpGlobalCompatible:A=!0}=s.version.kumaCp;A||t.push({kind:B,payload:{zoneCpVersion:a,globalCpVersion:z.getters["config/getVersion"]}})}return t}),_=l(()=>{var o;const t=((o=r.zoneOverview.zoneInsight)==null?void 0:o.subscriptions)??[],n=t[t.length-1];return n.config?JSON.stringify(JSON.parse(n.config),null,2):null}),I=l(()=>h.value.length===0?v.filter(t=>t.hash!=="#warnings"):v);return(t,n)=>{const o=G("router-link");return i(),u(j,{tabs:I.value},{tabHeader:e(()=>[J("h1",M,[p(` Zone CP: `),c(w,{text:m.value.name},{default:e(()=>[c(o,{to:C.value},{default:e(()=>[p(f(m.value.name),1)]),_:1},8,["to"])]),_:1},8,["text"])])]),overview:e(()=>[c(E,null,{default:e(()=>[(i(!0),g(d,null,b(m.value,(s,a)=>(i(),u(P,{key:a,term:k(y)(`http.api.property.${a}`)},{default:e(()=>[a==="status"?(i(),u(k(N),{key:0,appearance:s==="offline"?"danger":"success"},{default:e(()=>[p(f(s),1)]),_:2},1032,["appearance"])):a==="name"?(i(),u(w,{key:1,text:s},null,8,["text"])):(i(),g(d,{key:2},[p(f(s),1)],64))]),_:2},1032,["term"]))),128))]),_:1})]),insights:e(()=>[c(L,{"initially-open":0},{default:e(()=>[(i(!0),g(d,null,b(S.value,(s,a)=>(i(),u(D,{key:a},{"accordion-header":e(()=>[c(F,{details:s},null,8,["details"])]),"accordion-content":e(()=>[c($,{details:s},null,8,["details"])]),_:2},1024))),128))]),_:1})]),config:e(()=>[_.value!==null?(i(),u(Z,{key:0,id:"code-block-zone-config",language:"json",code:_.value,"is-searchable":"","query-key":"zone-config"},null,8,["code"])):H("",!0)]),warnings:e(()=>[c(R,{warnings:h.value},null,8,["warnings"])]),_:1},8,["tabs"])}}});export{oe as _}; diff --git a/app/kuma-ui/pkg/resources/data/assets/ZoneEgressDetailView-445e52fe.js b/app/kuma-ui/pkg/resources/data/assets/ZoneEgressDetailView-445e52fe.js deleted file mode 100644 index f3087bc5b3b3..000000000000 --- a/app/kuma-ui/pkg/resources/data/assets/ZoneEgressDetailView-445e52fe.js +++ /dev/null @@ -1 +0,0 @@ -import{d as w,u as k,q as l,s as f,o as s,a as o,w as _,h as m,b as p,g as z,k as h,e as E}from"./index-50754121.js";import{_ as b}from"./ZoneEgressDetails.vue_vue_type_script_setup_true_lang-f0286ba7.js";import{j as y,f as $,k as x,g as B,_ as V}from"./RouteView.vue_vue_type_script_setup_true_lang-bc0afbf3.js";import{_ as N}from"./RouteTitle.vue_vue_type_script_setup_true_lang-c74dc965.js";import{_ as A}from"./EmptyBlock.vue_vue_type_script_setup_true_lang-34eb656c.js";import{E as C}from"./ErrorBlock-eb438aeb.js";import{_ as D}from"./LoadingBlock.vue_vue_type_script_setup_true_lang-95ccda4d.js";import"./DefinitionListItem-b371d6a2.js";import"./EnvoyData-9e7e9f1e.js";import"./kongponents.es-07c2d778.js";import"./CodeBlock.vue_vue_type_style_index_0_lang-559b3ab4.js";import"./StatusInfo.vue_vue_type_script_setup_true_lang-eefb4f85.js";import"./SubscriptionHeader.vue_vue_type_script_setup_true_lang-21feaa9d.js";import"./TabsWidget-5826fd5b.js";import"./QueryParameter-70743f73.js";import"./TextWithCopyButton-d85f5945.js";const O={class:"zone-details"},T={key:3,class:"kcard-border","data-testid":"detail-view-details"},X=w({__name:"ZoneEgressDetailView",setup(Z){const d=y(),e=k(),v=$(),{t:u}=x(),a=l(null),n=l(!0),r=l(null);f(()=>e.params.mesh,function(){e.name==="zone-egress-detail-view"&&i()}),f(()=>e.params.name,function(){e.name==="zone-egress-detail-view"&&i()}),g();function g(){v.dispatch("updatePageTitle",e.params.zoneEgress),i()}async function i(){n.value=!0,r.value=null;const c=e.params.zoneEgress;try{a.value=await d.getZoneEgressOverview({name:c})}catch(t){a.value=null,t instanceof Error?r.value=t:console.error(t)}finally{n.value=!1}}return(c,t)=>(s(),o(V,null,{default:_(()=>[m(N,{title:p(u)("zone-egresses.routes.item.title")},null,8,["title"]),z(),m(B,{breadcrumbs:[{to:{name:"zone-egress-list-view"},text:p(u)("zone-egresses.routes.item.breadcrumbs")}]},{default:_(()=>[h("div",O,[n.value?(s(),o(D,{key:0})):r.value!==null?(s(),o(C,{key:1,error:r.value},null,8,["error"])):a.value===null?(s(),o(A,{key:2})):(s(),E("div",T,[m(b,{"zone-egress-overview":a.value},null,8,["zone-egress-overview"])]))])]),_:1},8,["breadcrumbs"])]),_:1}))}});export{X as default}; diff --git a/app/kuma-ui/pkg/resources/data/assets/ZoneEgressDetailView-ebac8068.js b/app/kuma-ui/pkg/resources/data/assets/ZoneEgressDetailView-ebac8068.js new file mode 100644 index 000000000000..87a70fc4618c --- /dev/null +++ b/app/kuma-ui/pkg/resources/data/assets/ZoneEgressDetailView-ebac8068.js @@ -0,0 +1 @@ +import{d as w,u as k,q as l,s as _,o as s,a as o,w as f,h as m,b as p,g as z,k as E,e as b}from"./index-a4a530d1.js";import{_ as h}from"./ZoneEgressDetails.vue_vue_type_script_setup_true_lang-147f44ee.js";import{j as y,k as $,g as x,_ as B}from"./RouteView.vue_vue_type_script_setup_true_lang-8e6a23b5.js";import{_ as V}from"./RouteTitle.vue_vue_type_script_setup_true_lang-f4fc2caf.js";import{_ as N}from"./EmptyBlock.vue_vue_type_script_setup_true_lang-ddebee78.js";import{E as A}from"./ErrorBlock-cc9ab0db.js";import{_ as C}from"./LoadingBlock.vue_vue_type_script_setup_true_lang-2c479ce1.js";import"./DefinitionListItem-f18ea925.js";import"./EnvoyData-caab84d6.js";import"./kongponents.es-f7b55123.js";import"./CodeBlock.vue_vue_type_style_index_0_lang-15a6fd20.js";import"./StatusInfo.vue_vue_type_script_setup_true_lang-8a43cc10.js";import"./SubscriptionHeader.vue_vue_type_script_setup_true_lang-6986223f.js";import"./TabsWidget-a42020cd.js";import"./QueryParameter-70743f73.js";import"./TextWithCopyButton-4f241d23.js";const D={class:"zone-details"},O={key:3,class:"kcard-border","data-testid":"detail-view-details"},W=w({__name:"ZoneEgressDetailView",setup(Z){const d=y(),e=k(),{t:u}=$(),a=l(null),n=l(!0),r=l(null);_(()=>e.params.mesh,function(){e.name==="zone-egress-detail-view"&&i()}),_(()=>e.params.name,function(){e.name==="zone-egress-detail-view"&&i()}),v();function v(){i()}async function i(){n.value=!0,r.value=null;const c=e.params.zoneEgress;try{a.value=await d.getZoneEgressOverview({name:c})}catch(t){a.value=null,t instanceof Error?r.value=t:console.error(t)}finally{n.value=!1}}return(c,t)=>(s(),o(B,null,{default:f(({route:g})=>[m(V,{title:p(u)("zone-egresses.routes.item.title",{name:g.params.zoneEgress})},null,8,["title"]),z(),m(x,{breadcrumbs:[{to:{name:"zone-egress-list-view"},text:p(u)("zone-egresses.routes.item.breadcrumbs")}]},{default:f(()=>[E("div",D,[n.value?(s(),o(C,{key:0})):r.value!==null?(s(),o(A,{key:1,error:r.value},null,8,["error"])):a.value===null?(s(),o(N,{key:2})):(s(),b("div",O,[m(h,{"zone-egress-overview":a.value},null,8,["zone-egress-overview"])]))])]),_:1},8,["breadcrumbs"])]),_:1}))}});export{W as default}; diff --git a/app/kuma-ui/pkg/resources/data/assets/ZoneEgressDetails.vue_vue_type_script_setup_true_lang-f0286ba7.js b/app/kuma-ui/pkg/resources/data/assets/ZoneEgressDetails.vue_vue_type_script_setup_true_lang-147f44ee.js similarity index 84% rename from app/kuma-ui/pkg/resources/data/assets/ZoneEgressDetails.vue_vue_type_script_setup_true_lang-f0286ba7.js rename to app/kuma-ui/pkg/resources/data/assets/ZoneEgressDetails.vue_vue_type_script_setup_true_lang-147f44ee.js index 33149af68b97..6f13fd5a9b5d 100644 --- a/app/kuma-ui/pkg/resources/data/assets/ZoneEgressDetails.vue_vue_type_script_setup_true_lang-f0286ba7.js +++ b/app/kuma-ui/pkg/resources/data/assets/ZoneEgressDetails.vue_vue_type_script_setup_true_lang-147f44ee.js @@ -1,4 +1,4 @@ -import{k as x,A as b,i as D}from"./RouteView.vue_vue_type_script_setup_true_lang-bc0afbf3.js";import{a as O,D as B}from"./DefinitionListItem-b371d6a2.js";import{E as c}from"./EnvoyData-9e7e9f1e.js";import{_ as C,S}from"./SubscriptionHeader.vue_vue_type_script_setup_true_lang-21feaa9d.js";import{T}from"./TabsWidget-5826fd5b.js";import{T as g}from"./TextWithCopyButton-d85f5945.js";import{d as A,c as m,r as I,o as t,a as l,w as e,k as q,g as d,h as s,t as h,e as v,j as y,b as L,F as p}from"./index-50754121.js";const V={class:"entity-heading"},H=A({__name:"ZoneEgressDetails",props:{zoneEgressOverview:{type:Object,required:!0}},setup(f){const u=f,{t:_}=x(),z=[{hash:"#overview",title:"Overview"},{hash:"#insights",title:"Zone Egress Insights"},{hash:"#xds-configuration",title:"XDS Configuration"},{hash:"#envoy-stats",title:"Stats"},{hash:"#envoy-clusters",title:"Clusters"}],k=m(()=>({name:"zone-egress-detail-view",params:{zoneEgress:u.zoneEgressOverview.name}})),n=m(()=>{const{type:i,name:a}=u.zoneEgressOverview;return{type:i,name:a}}),E=m(()=>{var a;const i=((a=u.zoneEgressOverview.zoneEgressInsight)==null?void 0:a.subscriptions)??[];return Array.from(i).reverse()});return(i,a)=>{const w=I("router-link");return t(),l(T,{tabs:z},{tabHeader:e(()=>[q("h1",V,[d(` +import{k as x,A as b,i as D}from"./RouteView.vue_vue_type_script_setup_true_lang-8e6a23b5.js";import{a as O,D as B}from"./DefinitionListItem-f18ea925.js";import{E as c}from"./EnvoyData-caab84d6.js";import{_ as C,S}from"./SubscriptionHeader.vue_vue_type_script_setup_true_lang-6986223f.js";import{T}from"./TabsWidget-a42020cd.js";import{T as g}from"./TextWithCopyButton-4f241d23.js";import{d as A,c as m,r as I,o as t,a as l,w as e,k as q,g as d,h as s,t as h,e as v,j as y,b as L,F as p}from"./index-a4a530d1.js";const V={class:"entity-heading"},H=A({__name:"ZoneEgressDetails",props:{zoneEgressOverview:{type:Object,required:!0}},setup(f){const u=f,{t:_}=x(),z=[{hash:"#overview",title:"Overview"},{hash:"#insights",title:"Zone Egress Insights"},{hash:"#xds-configuration",title:"XDS Configuration"},{hash:"#envoy-stats",title:"Stats"},{hash:"#envoy-clusters",title:"Clusters"}],k=m(()=>({name:"zone-egress-detail-view",params:{zoneEgress:u.zoneEgressOverview.name}})),n=m(()=>{const{type:i,name:a}=u.zoneEgressOverview;return{type:i,name:a}}),E=m(()=>{var a;const i=((a=u.zoneEgressOverview.zoneEgressInsight)==null?void 0:a.subscriptions)??[];return Array.from(i).reverse()});return(i,a)=>{const w=I("router-link");return t(),l(T,{tabs:z},{tabHeader:e(()=>[q("h1",V,[d(` Zone Egress: `),s(g,{text:n.value.name},{default:e(()=>[s(w,{to:k.value},{default:e(()=>[d(h(n.value.name),1)]),_:1},8,["to"])]),_:1},8,["text"])])]),overview:e(()=>[s(B,null,{default:e(()=>[(t(!0),v(p,null,y(n.value,(o,r)=>(t(),l(O,{key:r,term:L(_)(`http.api.property.${r}`)},{default:e(()=>[r==="name"?(t(),l(g,{key:0,text:o},null,8,["text"])):(t(),v(p,{key:1},[d(h(o),1)],64))]),_:2},1032,["term"]))),128))]),_:1})]),insights:e(()=>[s(D,{"initially-open":0},{default:e(()=>[(t(!0),v(p,null,y(E.value,(o,r)=>(t(),l(b,{key:r},{"accordion-header":e(()=>[s(C,{details:o},null,8,["details"])]),"accordion-content":e(()=>[s(S,{details:o,"is-discovery-subscription":""},null,8,["details"])]),_:2},1024))),128))]),_:1})]),"xds-configuration":e(()=>[s(c,{"data-path":"xds","zone-egress-name":n.value.name,"query-key":"envoy-data-zone-egress"},null,8,["zone-egress-name"])]),"envoy-stats":e(()=>[s(c,{"data-path":"stats","zone-egress-name":n.value.name,"query-key":"envoy-data-zone-egress"},null,8,["zone-egress-name"])]),"envoy-clusters":e(()=>[s(c,{"data-path":"clusters","zone-egress-name":n.value.name,"query-key":"envoy-data-zone-egress"},null,8,["zone-egress-name"])]),_:1})}}});export{H as _}; diff --git a/app/kuma-ui/pkg/resources/data/assets/ZoneEgressListView-29eeb14f.js b/app/kuma-ui/pkg/resources/data/assets/ZoneEgressListView-d6988e61.js similarity index 69% rename from app/kuma-ui/pkg/resources/data/assets/ZoneEgressListView-29eeb14f.js rename to app/kuma-ui/pkg/resources/data/assets/ZoneEgressListView-d6988e61.js index 9bd10482a6ab..cf5a9f8cbe77 100644 --- a/app/kuma-ui/pkg/resources/data/assets/ZoneEgressListView-29eeb14f.js +++ b/app/kuma-ui/pkg/resources/data/assets/ZoneEgressListView-d6988e61.js @@ -1 +1 @@ -import{d as A,u as Z,q as o,s as V,o as h,a as I,w as z,h as l,b as p,g as k,k as f,P as x,e as S,f as B}from"./index-50754121.js";import{_ as L}from"./ZoneEgressDetails.vue_vue_type_script_setup_true_lang-f0286ba7.js";import{j as O,k as P,y as $,g as q,_ as C}from"./RouteView.vue_vue_type_script_setup_true_lang-bc0afbf3.js";import{_ as F}from"./RouteTitle.vue_vue_type_script_setup_true_lang-c74dc965.js";import{D as Q}from"./DataOverview-5b210bb7.js";import{Q as v}from"./QueryParameter-70743f73.js";import"./DefinitionListItem-b371d6a2.js";import"./EnvoyData-9e7e9f1e.js";import"./kongponents.es-07c2d778.js";import"./CodeBlock.vue_vue_type_style_index_0_lang-559b3ab4.js";import"./StatusInfo.vue_vue_type_script_setup_true_lang-eefb4f85.js";import"./EmptyBlock.vue_vue_type_script_setup_true_lang-34eb656c.js";import"./ErrorBlock-eb438aeb.js";import"./LoadingBlock.vue_vue_type_script_setup_true_lang-95ccda4d.js";import"./SubscriptionHeader.vue_vue_type_script_setup_true_lang-21feaa9d.js";import"./TabsWidget-5826fd5b.js";import"./TextWithCopyButton-d85f5945.js";import"./TagList-a0e27239.js";import"./StatusBadge-9e322ea6.js";const R={class:"zoneegresses"},U={class:"kcard-stack"},j={class:"kcard-border"},G={key:0,class:"kcard-border","data-testid":"list-view-summary"},de=A({__name:"ZoneEgressListView",props:{selectedZoneEgressName:{type:[String,null],required:!1,default:null},offset:{type:Number,required:!1,default:0}},setup(N){const i=N,g=O(),{t:_}=P(),T={title:"No Data",message:"There are no Zone Egresses present."},y=Z(),u=o(!0),c=o(null),n=o({headers:[{label:"Status",key:"status"},{label:"Name",key:"entity"}],data:[]}),r=o(null),b=o(null),E=o(i.offset);V(()=>y.params.mesh,function(){y.name==="zone-egress-list-view"&&m(0)}),m(i.offset);async function m(e){var a;E.value=e,v.set("offset",e>0?e:null),u.value=!0,c.value=null;const t=x;try{const{items:s,next:d}=await g.getAllZoneEgressOverviews({size:t,offset:e});b.value=d,n.value.data=D(s??[]),await w({name:i.selectedZoneEgressName??((a=n.value.data[0])==null?void 0:a.entity.name)})}catch(s){n.value.data=[],r.value=null,s instanceof Error?c.value=s:console.error(s)}finally{u.value=!1}}function D(e){return e.map(t=>{const{name:a}=t,s={name:"zone-egress-detail-view",params:{zoneEgress:a}},d=$(t.zoneEgressInsight??{});return{entity:t,detailViewRoute:s,status:d}})}async function w({name:e}){if(e===void 0){r.value=null,v.set("zoneEgress",null);return}try{r.value=await g.getZoneEgressOverview({name:e}),v.set("zoneEgress",e)}catch(t){console.error(t)}}return(e,t)=>(h(),I(C,null,{default:z(()=>[l(F,{title:p(_)("zone-egresses.routes.items.title")},null,8,["title"]),k(),l(q,{breadcrumbs:[{to:{name:"zone-egress-list-view"},text:p(_)("zone-egresses.routes.items.breadcrumbs")}]},{default:z(()=>{var a;return[f("div",R,[f("div",U,[f("div",j,[l(Q,{"selected-entity-name":(a=r.value)==null?void 0:a.name,"page-size":p(x),"is-loading":u.value,error:c.value,"empty-state":T,"table-data":n.value,"table-data-is-empty":n.value.data.length===0,next:b.value,"page-offset":E.value,onTableAction:w,onLoadData:m},null,8,["selected-entity-name","page-size","is-loading","error","table-data","table-data-is-empty","next","page-offset"])]),k(),r.value!==null?(h(),S("div",G,[l(L,{"zone-egress-overview":r.value},null,8,["zone-egress-overview"])])):B("",!0)])])]}),_:1},8,["breadcrumbs"])]),_:1}))}});export{de as default}; +import{d as A,u as Z,q as o,s as V,o as h,a as I,w as z,h as l,b as p,g as k,k as f,P as x,e as S,f as B}from"./index-a4a530d1.js";import{_ as L}from"./ZoneEgressDetails.vue_vue_type_script_setup_true_lang-147f44ee.js";import{j as O,k as P,y as $,g as q,_ as C}from"./RouteView.vue_vue_type_script_setup_true_lang-8e6a23b5.js";import{_ as F}from"./RouteTitle.vue_vue_type_script_setup_true_lang-f4fc2caf.js";import{D as Q}from"./DataOverview-7c85e051.js";import{Q as v}from"./QueryParameter-70743f73.js";import"./DefinitionListItem-f18ea925.js";import"./EnvoyData-caab84d6.js";import"./kongponents.es-f7b55123.js";import"./CodeBlock.vue_vue_type_style_index_0_lang-15a6fd20.js";import"./StatusInfo.vue_vue_type_script_setup_true_lang-8a43cc10.js";import"./EmptyBlock.vue_vue_type_script_setup_true_lang-ddebee78.js";import"./ErrorBlock-cc9ab0db.js";import"./LoadingBlock.vue_vue_type_script_setup_true_lang-2c479ce1.js";import"./SubscriptionHeader.vue_vue_type_script_setup_true_lang-6986223f.js";import"./TabsWidget-a42020cd.js";import"./TextWithCopyButton-4f241d23.js";import"./TagList-76ef6044.js";import"./StatusBadge-6b87699d.js";const R={class:"zoneegresses"},U={class:"kcard-stack"},j={class:"kcard-border"},G={key:0,class:"kcard-border","data-testid":"list-view-summary"},de=A({__name:"ZoneEgressListView",props:{selectedZoneEgressName:{type:[String,null],required:!1,default:null},offset:{type:Number,required:!1,default:0}},setup(N){const i=N,g=O(),{t:_}=P(),T={title:"No Data",message:"There are no Zone Egresses present."},y=Z(),u=o(!0),c=o(null),n=o({headers:[{label:"Status",key:"status"},{label:"Name",key:"entity"}],data:[]}),r=o(null),b=o(null),E=o(i.offset);V(()=>y.params.mesh,function(){y.name==="zone-egress-list-view"&&m(0)}),m(i.offset);async function m(e){var a;E.value=e,v.set("offset",e>0?e:null),u.value=!0,c.value=null;const t=x;try{const{items:s,next:d}=await g.getAllZoneEgressOverviews({size:t,offset:e});b.value=d,n.value.data=D(s??[]),await w({name:i.selectedZoneEgressName??((a=n.value.data[0])==null?void 0:a.entity.name)})}catch(s){n.value.data=[],r.value=null,s instanceof Error?c.value=s:console.error(s)}finally{u.value=!1}}function D(e){return e.map(t=>{const{name:a}=t,s={name:"zone-egress-detail-view",params:{zoneEgress:a}},d=$(t.zoneEgressInsight??{});return{entity:t,detailViewRoute:s,status:d}})}async function w({name:e}){if(e===void 0){r.value=null,v.set("zoneEgress",null);return}try{r.value=await g.getZoneEgressOverview({name:e}),v.set("zoneEgress",e)}catch(t){console.error(t)}}return(e,t)=>(h(),I(C,null,{default:z(()=>[l(F,{title:p(_)("zone-egresses.routes.items.title")},null,8,["title"]),k(),l(q,{breadcrumbs:[{to:{name:"zone-egress-list-view"},text:p(_)("zone-egresses.routes.items.breadcrumbs")}]},{default:z(()=>{var a;return[f("div",R,[f("div",U,[f("div",j,[l(Q,{"selected-entity-name":(a=r.value)==null?void 0:a.name,"page-size":p(x),"is-loading":u.value,error:c.value,"empty-state":T,"table-data":n.value,"table-data-is-empty":n.value.data.length===0,next:b.value,"page-offset":E.value,onTableAction:w,onLoadData:m},null,8,["selected-entity-name","page-size","is-loading","error","table-data","table-data-is-empty","next","page-offset"])]),k(),r.value!==null?(h(),S("div",G,[l(L,{"zone-egress-overview":r.value},null,8,["zone-egress-overview"])])):B("",!0)])])]}),_:1},8,["breadcrumbs"])]),_:1}))}});export{de as default}; diff --git a/app/kuma-ui/pkg/resources/data/assets/ZoneIndexView-465b2744.js b/app/kuma-ui/pkg/resources/data/assets/ZoneIndexView-96a4a69f.js similarity index 77% rename from app/kuma-ui/pkg/resources/data/assets/ZoneIndexView-465b2744.js rename to app/kuma-ui/pkg/resources/data/assets/ZoneIndexView-96a4a69f.js index ffcdd7fe85fd..dcb3c71860d7 100644 --- a/app/kuma-ui/pkg/resources/data/assets/ZoneIndexView-465b2744.js +++ b/app/kuma-ui/pkg/resources/data/assets/ZoneIndexView-96a4a69f.js @@ -1 +1 @@ -import{k as l,f as _,g as d,_ as p}from"./RouteView.vue_vue_type_script_setup_true_lang-bc0afbf3.js";import{N as f}from"./NavTabs-1f291852.js";import{d as g,r as z,o as t,a as s,w as o,h as n,b as a,f as v,g as w,i as b}from"./index-50754121.js";import"./kongponents.es-07c2d778.js";const B=g({__name:"ZoneIndexView",setup(N){const e=l(),i=_(),r=[{title:e.t("zones.routes.items.navigation.zone-cp-list-view"),routeName:"zone-cp-list-view",module:"zone-cps"},{title:e.t("zones.routes.items.navigation.zone-ingress-list-view"),routeName:"zone-ingress-list-view",module:"zone-ingresses"},{title:e.t("zones.routes.items.navigation.zone-egress-list-view"),routeName:"zone-egress-list-view",module:"zone-egresses"}];return(x,V)=>{const m=z("RouterView");return t(),s(p,null,{default:o(()=>[n(d,{breadcrumbs:[{to:{name:"zone-index-view"},text:a(e).t("zones.routes.items.breadcrumbs")}]},{default:o(()=>[a(i).getters["config/getMulticlusterStatus"]?(t(),s(f,{key:0,tabs:r})):v("",!0),w(),n(m,null,{default:o(({Component:u,route:c})=>[(t(),s(b(u),{key:c.path}))]),_:1})]),_:1},8,["breadcrumbs"])]),_:1})}}});export{B as default}; +import{k as l,f as _,g as d,_ as p}from"./RouteView.vue_vue_type_script_setup_true_lang-8e6a23b5.js";import{N as f}from"./NavTabs-9a8866d1.js";import{d as g,r as z,o as t,a as s,w as o,h as n,b as a,f as v,g as w,i as b}from"./index-a4a530d1.js";import"./kongponents.es-f7b55123.js";const B=g({__name:"ZoneIndexView",setup(N){const e=l(),i=_(),r=[{title:e.t("zones.routes.items.navigation.zone-cp-list-view"),routeName:"zone-cp-list-view",module:"zone-cps"},{title:e.t("zones.routes.items.navigation.zone-ingress-list-view"),routeName:"zone-ingress-list-view",module:"zone-ingresses"},{title:e.t("zones.routes.items.navigation.zone-egress-list-view"),routeName:"zone-egress-list-view",module:"zone-egresses"}];return(x,V)=>{const m=z("RouterView");return t(),s(p,null,{default:o(()=>[n(d,{breadcrumbs:[{to:{name:"zone-index-view"},text:a(e).t("zones.routes.items.breadcrumbs")}]},{default:o(()=>[a(i).getters["config/getMulticlusterStatus"]?(t(),s(f,{key:0,tabs:r})):v("",!0),w(),n(m,null,{default:o(({Component:u,route:c})=>[(t(),s(b(u),{key:c.path}))]),_:1})]),_:1},8,["breadcrumbs"])]),_:1})}}});export{B as default}; diff --git a/app/kuma-ui/pkg/resources/data/assets/ZoneIngressDetailView-906da9f8.js b/app/kuma-ui/pkg/resources/data/assets/ZoneIngressDetailView-906da9f8.js new file mode 100644 index 000000000000..ef43228dd211 --- /dev/null +++ b/app/kuma-ui/pkg/resources/data/assets/ZoneIngressDetailView-906da9f8.js @@ -0,0 +1 @@ +import{d as w,u as k,q as l,s as _,o as s,a as o,w as f,h as m,b as p,g as z,k as b,e as h}from"./index-a4a530d1.js";import{_ as y}from"./ZoneIngressDetails.vue_vue_type_script_setup_true_lang-e6622a30.js";import{j as I,k as $,g as x,_ as B}from"./RouteView.vue_vue_type_script_setup_true_lang-8e6a23b5.js";import{_ as E}from"./RouteTitle.vue_vue_type_script_setup_true_lang-f4fc2caf.js";import{_ as V}from"./EmptyBlock.vue_vue_type_script_setup_true_lang-ddebee78.js";import{E as N}from"./ErrorBlock-cc9ab0db.js";import{_ as A}from"./LoadingBlock.vue_vue_type_script_setup_true_lang-2c479ce1.js";import"./DefinitionListItem-f18ea925.js";import"./EnvoyData-caab84d6.js";import"./kongponents.es-f7b55123.js";import"./CodeBlock.vue_vue_type_style_index_0_lang-15a6fd20.js";import"./StatusInfo.vue_vue_type_script_setup_true_lang-8a43cc10.js";import"./SubscriptionHeader.vue_vue_type_script_setup_true_lang-6986223f.js";import"./TabsWidget-a42020cd.js";import"./QueryParameter-70743f73.js";import"./TextWithCopyButton-4f241d23.js";const C={class:"zone-details"},D={key:3,class:"kcard-border","data-testid":"detail-view-details"},W=w({__name:"ZoneIngressDetailView",setup(O){const d=I(),e=k(),{t:u}=$(),a=l(null),n=l(!0),r=l(null);_(()=>e.params.mesh,function(){e.name==="zone-ingress-detail-view"&&i()}),_(()=>e.params.name,function(){e.name==="zone-ingress-detail-view"&&i()}),v();function v(){i()}async function i(){n.value=!0,r.value=null;const c=e.params.zoneIngress;try{a.value=await d.getZoneIngressOverview({name:c})}catch(t){a.value=null,t instanceof Error?r.value=t:console.error(t)}finally{n.value=!1}}return(c,t)=>(s(),o(B,null,{default:f(({route:g})=>[m(E,{title:p(u)("zone-ingresses.routes.item.title",{name:g.params.zoneIngress})},null,8,["title"]),z(),m(x,{breadcrumbs:[{to:{name:"zone-ingress-list-view"},text:p(u)("zone-ingresses.routes.item.breadcrumbs")}]},{default:f(()=>[b("div",C,[n.value?(s(),o(A,{key:0})):r.value!==null?(s(),o(N,{key:1,error:r.value},null,8,["error"])):a.value===null?(s(),o(V,{key:2})):(s(),h("div",D,[m(y,{"zone-ingress-overview":a.value},null,8,["zone-ingress-overview"])]))])]),_:1},8,["breadcrumbs"])]),_:1}))}});export{W as default}; diff --git a/app/kuma-ui/pkg/resources/data/assets/ZoneIngressDetailView-d8ed0648.js b/app/kuma-ui/pkg/resources/data/assets/ZoneIngressDetailView-d8ed0648.js deleted file mode 100644 index e01abba202d1..000000000000 --- a/app/kuma-ui/pkg/resources/data/assets/ZoneIngressDetailView-d8ed0648.js +++ /dev/null @@ -1 +0,0 @@ -import{d as w,u as k,q as l,s as f,o as s,a as o,w as _,h as m,b as p,g as z,k as h,e as b}from"./index-50754121.js";import{_ as y}from"./ZoneIngressDetails.vue_vue_type_script_setup_true_lang-07ba13c6.js";import{j as I,f as $,k as x,g as B,_ as E}from"./RouteView.vue_vue_type_script_setup_true_lang-bc0afbf3.js";import{_ as V}from"./RouteTitle.vue_vue_type_script_setup_true_lang-c74dc965.js";import{_ as N}from"./EmptyBlock.vue_vue_type_script_setup_true_lang-34eb656c.js";import{E as A}from"./ErrorBlock-eb438aeb.js";import{_ as C}from"./LoadingBlock.vue_vue_type_script_setup_true_lang-95ccda4d.js";import"./DefinitionListItem-b371d6a2.js";import"./EnvoyData-9e7e9f1e.js";import"./kongponents.es-07c2d778.js";import"./CodeBlock.vue_vue_type_style_index_0_lang-559b3ab4.js";import"./StatusInfo.vue_vue_type_script_setup_true_lang-eefb4f85.js";import"./SubscriptionHeader.vue_vue_type_script_setup_true_lang-21feaa9d.js";import"./TabsWidget-5826fd5b.js";import"./QueryParameter-70743f73.js";import"./TextWithCopyButton-d85f5945.js";const D={class:"zone-details"},O={key:3,class:"kcard-border","data-testid":"detail-view-details"},X=w({__name:"ZoneIngressDetailView",setup(T){const d=I(),e=k(),v=$(),{t:u}=x(),a=l(null),n=l(!0),r=l(null);f(()=>e.params.mesh,function(){e.name==="zone-ingress-detail-view"&&i()}),f(()=>e.params.name,function(){e.name==="zone-ingress-detail-view"&&i()}),g();function g(){v.dispatch("updatePageTitle",e.params.zoneIngress),i()}async function i(){n.value=!0,r.value=null;const c=e.params.zoneIngress;try{a.value=await d.getZoneIngressOverview({name:c})}catch(t){a.value=null,t instanceof Error?r.value=t:console.error(t)}finally{n.value=!1}}return(c,t)=>(s(),o(E,null,{default:_(()=>[m(V,{title:p(u)("zone-ingresses.routes.item.title")},null,8,["title"]),z(),m(B,{breadcrumbs:[{to:{name:"zone-ingress-list-view"},text:p(u)("zone-ingresses.routes.item.breadcrumbs")}]},{default:_(()=>[h("div",D,[n.value?(s(),o(C,{key:0})):r.value!==null?(s(),o(A,{key:1,error:r.value},null,8,["error"])):a.value===null?(s(),o(N,{key:2})):(s(),b("div",O,[m(y,{"zone-ingress-overview":a.value},null,8,["zone-ingress-overview"])]))])]),_:1},8,["breadcrumbs"])]),_:1}))}});export{X as default}; diff --git a/app/kuma-ui/pkg/resources/data/assets/ZoneIngressDetails.vue_vue_type_script_setup_true_lang-07ba13c6.js b/app/kuma-ui/pkg/resources/data/assets/ZoneIngressDetails.vue_vue_type_script_setup_true_lang-e6622a30.js similarity index 84% rename from app/kuma-ui/pkg/resources/data/assets/ZoneIngressDetails.vue_vue_type_script_setup_true_lang-07ba13c6.js rename to app/kuma-ui/pkg/resources/data/assets/ZoneIngressDetails.vue_vue_type_script_setup_true_lang-e6622a30.js index 512c7b01780c..ff9b8ec16ae8 100644 --- a/app/kuma-ui/pkg/resources/data/assets/ZoneIngressDetails.vue_vue_type_script_setup_true_lang-07ba13c6.js +++ b/app/kuma-ui/pkg/resources/data/assets/ZoneIngressDetails.vue_vue_type_script_setup_true_lang-e6622a30.js @@ -1,4 +1,4 @@ -import{k as x,A as b,i as D}from"./RouteView.vue_vue_type_script_setup_true_lang-bc0afbf3.js";import{a as O,D as B}from"./DefinitionListItem-b371d6a2.js";import{E as c}from"./EnvoyData-9e7e9f1e.js";import{_ as C,S}from"./SubscriptionHeader.vue_vue_type_script_setup_true_lang-21feaa9d.js";import{T}from"./TabsWidget-5826fd5b.js";import{T as g}from"./TextWithCopyButton-d85f5945.js";import{d as A,c as m,r as q,o as t,a as l,w as e,k as L,g as d,h as s,t as h,e as v,j as y,b as V,F as p}from"./index-50754121.js";const Z={class:"entity-heading"},H=A({__name:"ZoneIngressDetails",props:{zoneIngressOverview:{type:Object,required:!0}},setup(f){const u=f,{t:_}=x(),z=[{hash:"#overview",title:"Overview"},{hash:"#insights",title:"Zone Ingress Insights"},{hash:"#xds-configuration",title:"XDS Configuration"},{hash:"#envoy-stats",title:"Stats"},{hash:"#envoy-clusters",title:"Clusters"}],I=m(()=>({name:"zone-ingress-detail-view",params:{zoneIngress:u.zoneIngressOverview.name}})),n=m(()=>{const{type:i,name:a}=u.zoneIngressOverview;return{type:i,name:a}}),k=m(()=>{var a;const i=((a=u.zoneIngressOverview.zoneIngressInsight)==null?void 0:a.subscriptions)??[];return Array.from(i).reverse()});return(i,a)=>{const w=q("router-link");return t(),l(T,{tabs:z},{tabHeader:e(()=>[L("h1",Z,[d(` +import{k as x,A as b,i as D}from"./RouteView.vue_vue_type_script_setup_true_lang-8e6a23b5.js";import{a as O,D as B}from"./DefinitionListItem-f18ea925.js";import{E as c}from"./EnvoyData-caab84d6.js";import{_ as C,S}from"./SubscriptionHeader.vue_vue_type_script_setup_true_lang-6986223f.js";import{T}from"./TabsWidget-a42020cd.js";import{T as g}from"./TextWithCopyButton-4f241d23.js";import{d as A,c as m,r as q,o as t,a as l,w as e,k as L,g as d,h as s,t as h,e as v,j as y,b as V,F as p}from"./index-a4a530d1.js";const Z={class:"entity-heading"},H=A({__name:"ZoneIngressDetails",props:{zoneIngressOverview:{type:Object,required:!0}},setup(f){const u=f,{t:_}=x(),z=[{hash:"#overview",title:"Overview"},{hash:"#insights",title:"Zone Ingress Insights"},{hash:"#xds-configuration",title:"XDS Configuration"},{hash:"#envoy-stats",title:"Stats"},{hash:"#envoy-clusters",title:"Clusters"}],I=m(()=>({name:"zone-ingress-detail-view",params:{zoneIngress:u.zoneIngressOverview.name}})),n=m(()=>{const{type:i,name:a}=u.zoneIngressOverview;return{type:i,name:a}}),k=m(()=>{var a;const i=((a=u.zoneIngressOverview.zoneIngressInsight)==null?void 0:a.subscriptions)??[];return Array.from(i).reverse()});return(i,a)=>{const w=q("router-link");return t(),l(T,{tabs:z},{tabHeader:e(()=>[L("h1",Z,[d(` Zone Ingress: `),s(g,{text:n.value.name},{default:e(()=>[s(w,{to:I.value},{default:e(()=>[d(h(n.value.name),1)]),_:1},8,["to"])]),_:1},8,["text"])])]),overview:e(()=>[s(B,null,{default:e(()=>[(t(!0),v(p,null,y(n.value,(o,r)=>(t(),l(O,{key:r,term:V(_)(`http.api.property.${r}`)},{default:e(()=>[r==="name"?(t(),l(g,{key:0,text:o},null,8,["text"])):(t(),v(p,{key:1},[d(h(o),1)],64))]),_:2},1032,["term"]))),128))]),_:1})]),insights:e(()=>[s(D,{"initially-open":0},{default:e(()=>[(t(!0),v(p,null,y(k.value,(o,r)=>(t(),l(b,{key:r},{"accordion-header":e(()=>[s(C,{details:o},null,8,["details"])]),"accordion-content":e(()=>[s(S,{details:o,"is-discovery-subscription":""},null,8,["details"])]),_:2},1024))),128))]),_:1})]),"xds-configuration":e(()=>[s(c,{"data-path":"xds","zone-ingress-name":n.value.name,"query-key":"envoy-data-zone-ingress"},null,8,["zone-ingress-name"])]),"envoy-stats":e(()=>[s(c,{"data-path":"stats","zone-ingress-name":n.value.name,"query-key":"envoy-data-zone-ingress"},null,8,["zone-ingress-name"])]),"envoy-clusters":e(()=>[s(c,{"data-path":"clusters","zone-ingress-name":n.value.name,"query-key":"envoy-data-zone-ingress"},null,8,["zone-ingress-name"])]),_:1})}}});export{H as _}; diff --git a/app/kuma-ui/pkg/resources/data/assets/ZoneIngressListView-5c318f09.js b/app/kuma-ui/pkg/resources/data/assets/ZoneIngressListView-0760de79.js similarity index 70% rename from app/kuma-ui/pkg/resources/data/assets/ZoneIngressListView-5c318f09.js rename to app/kuma-ui/pkg/resources/data/assets/ZoneIngressListView-0760de79.js index e7a0a93e195c..5671e963f37b 100644 --- a/app/kuma-ui/pkg/resources/data/assets/ZoneIngressListView-5c318f09.js +++ b/app/kuma-ui/pkg/resources/data/assets/ZoneIngressListView-0760de79.js @@ -1 +1 @@ -import{d as V,u as $,q as r,s as z,o as i,a as I,w as x,h as l,b as u,g as N,k as T,e as D,P as E,f as B}from"./index-50754121.js";import{_ as L}from"./MultizoneInfo.vue_vue_type_script_setup_true_lang-1754f4fb.js";import{_ as O}from"./ZoneIngressDetails.vue_vue_type_script_setup_true_lang-07ba13c6.js";import{j as P,k as q,f as C,y as M,g as F,_ as Q}from"./RouteView.vue_vue_type_script_setup_true_lang-bc0afbf3.js";import{_ as R}from"./RouteTitle.vue_vue_type_script_setup_true_lang-c74dc965.js";import{D as U}from"./DataOverview-5b210bb7.js";import{Q as g}from"./QueryParameter-70743f73.js";import"./kongponents.es-07c2d778.js";import"./DefinitionListItem-b371d6a2.js";import"./EnvoyData-9e7e9f1e.js";import"./CodeBlock.vue_vue_type_style_index_0_lang-559b3ab4.js";import"./StatusInfo.vue_vue_type_script_setup_true_lang-eefb4f85.js";import"./EmptyBlock.vue_vue_type_script_setup_true_lang-34eb656c.js";import"./ErrorBlock-eb438aeb.js";import"./LoadingBlock.vue_vue_type_script_setup_true_lang-95ccda4d.js";import"./SubscriptionHeader.vue_vue_type_script_setup_true_lang-21feaa9d.js";import"./TabsWidget-5826fd5b.js";import"./TextWithCopyButton-d85f5945.js";import"./TagList-a0e27239.js";import"./StatusBadge-9e322ea6.js";const j={class:"zoneingresses"},G={key:1,class:"kcard-stack"},K={class:"kcard-border"},Y={key:0,class:"kcard-border","data-testid":"list-view-summary"},ve=V({__name:"ZoneIngressListView",props:{selectedZoneIngressName:{type:[String,null],required:!1,default:null},offset:{type:Number,required:!1,default:0}},setup(S){const c=S,v=P(),{t:_}=q(),A={title:"No Data",message:"There are no Zone Ingresses present."},y=$(),b=C(),m=r(!0),d=r(null),o=r({headers:[{label:"Status",key:"status"},{label:"Name",key:"entity"}],data:[]}),n=r(null),w=r(null),h=r(c.offset);z(()=>y.params.mesh,function(){y.name==="zone-ingress-list-view"&&f(0)}),z(()=>b.getters["config/getMulticlusterStatus"],function(e){e&&f(c.offset)},{immediate:!0});async function f(e){var s;h.value=e,g.set("offset",e>0?e:null),m.value=!0,d.value=null;const t=E;try{const{items:a,next:p}=await v.getAllZoneIngressOverviews({size:t,offset:e});w.value=p,o.value.data=Z(a??[]),await k({name:c.selectedZoneIngressName??((s=o.value.data[0])==null?void 0:s.entity.name)})}catch(a){o.value.data=[],n.value=null,a instanceof Error?d.value=a:console.error(a)}finally{m.value=!1}}function Z(e){return e.map(t=>{const{name:s}=t,a={name:"zone-ingress-detail-view",params:{zoneIngress:s}},p=M(t.zoneIngressInsight??{});return{entity:t,detailViewRoute:a,status:p}})}async function k({name:e}){if(e===void 0){n.value=null,g.set("zoneIngress",null);return}try{n.value=await v.getZoneIngressOverview({name:e}),g.set("zoneIngress",e)}catch(t){console.error(t)}}return(e,t)=>(i(),I(Q,null,{default:x(()=>[l(R,{title:u(_)("zone-ingresses.routes.items.title")},null,8,["title"]),N(),l(F,{breadcrumbs:[{to:{name:"zone-ingress-list-view"},text:u(_)("zone-ingresses.routes.items.breadcrumbs")}]},{default:x(()=>{var s;return[T("div",j,[u(b).getters["config/getMulticlusterStatus"]===!1?(i(),I(L,{key:0})):(i(),D("div",G,[T("div",K,[l(U,{"selected-entity-name":(s=n.value)==null?void 0:s.name,"page-size":u(E),"is-loading":m.value,error:d.value,"empty-state":A,"table-data":o.value,"table-data-is-empty":o.value.data.length===0,next:w.value,"page-offset":h.value,onTableAction:k,onLoadData:f},null,8,["selected-entity-name","page-size","is-loading","error","table-data","table-data-is-empty","next","page-offset"])]),N(),n.value!==null?(i(),D("div",Y,[l(O,{"zone-ingress-overview":n.value},null,8,["zone-ingress-overview"])])):B("",!0)]))])]}),_:1},8,["breadcrumbs"])]),_:1}))}});export{ve as default}; +import{d as V,u as $,q as r,s as z,o as i,a as I,w as x,h as l,b as u,g as N,k as T,e as D,P as E,f as B}from"./index-a4a530d1.js";import{_ as L}from"./MultizoneInfo.vue_vue_type_script_setup_true_lang-cd891354.js";import{_ as O}from"./ZoneIngressDetails.vue_vue_type_script_setup_true_lang-e6622a30.js";import{j as P,k as q,f as C,y as M,g as F,_ as Q}from"./RouteView.vue_vue_type_script_setup_true_lang-8e6a23b5.js";import{_ as R}from"./RouteTitle.vue_vue_type_script_setup_true_lang-f4fc2caf.js";import{D as U}from"./DataOverview-7c85e051.js";import{Q as g}from"./QueryParameter-70743f73.js";import"./kongponents.es-f7b55123.js";import"./DefinitionListItem-f18ea925.js";import"./EnvoyData-caab84d6.js";import"./CodeBlock.vue_vue_type_style_index_0_lang-15a6fd20.js";import"./StatusInfo.vue_vue_type_script_setup_true_lang-8a43cc10.js";import"./EmptyBlock.vue_vue_type_script_setup_true_lang-ddebee78.js";import"./ErrorBlock-cc9ab0db.js";import"./LoadingBlock.vue_vue_type_script_setup_true_lang-2c479ce1.js";import"./SubscriptionHeader.vue_vue_type_script_setup_true_lang-6986223f.js";import"./TabsWidget-a42020cd.js";import"./TextWithCopyButton-4f241d23.js";import"./TagList-76ef6044.js";import"./StatusBadge-6b87699d.js";const j={class:"zoneingresses"},G={key:1,class:"kcard-stack"},K={class:"kcard-border"},Y={key:0,class:"kcard-border","data-testid":"list-view-summary"},ve=V({__name:"ZoneIngressListView",props:{selectedZoneIngressName:{type:[String,null],required:!1,default:null},offset:{type:Number,required:!1,default:0}},setup(S){const c=S,v=P(),{t:_}=q(),A={title:"No Data",message:"There are no Zone Ingresses present."},y=$(),b=C(),m=r(!0),d=r(null),o=r({headers:[{label:"Status",key:"status"},{label:"Name",key:"entity"}],data:[]}),n=r(null),w=r(null),h=r(c.offset);z(()=>y.params.mesh,function(){y.name==="zone-ingress-list-view"&&f(0)}),z(()=>b.getters["config/getMulticlusterStatus"],function(e){e&&f(c.offset)},{immediate:!0});async function f(e){var s;h.value=e,g.set("offset",e>0?e:null),m.value=!0,d.value=null;const t=E;try{const{items:a,next:p}=await v.getAllZoneIngressOverviews({size:t,offset:e});w.value=p,o.value.data=Z(a??[]),await k({name:c.selectedZoneIngressName??((s=o.value.data[0])==null?void 0:s.entity.name)})}catch(a){o.value.data=[],n.value=null,a instanceof Error?d.value=a:console.error(a)}finally{m.value=!1}}function Z(e){return e.map(t=>{const{name:s}=t,a={name:"zone-ingress-detail-view",params:{zoneIngress:s}},p=M(t.zoneIngressInsight??{});return{entity:t,detailViewRoute:a,status:p}})}async function k({name:e}){if(e===void 0){n.value=null,g.set("zoneIngress",null);return}try{n.value=await v.getZoneIngressOverview({name:e}),g.set("zoneIngress",e)}catch(t){console.error(t)}}return(e,t)=>(i(),I(Q,null,{default:x(()=>[l(R,{title:u(_)("zone-ingresses.routes.items.title")},null,8,["title"]),N(),l(F,{breadcrumbs:[{to:{name:"zone-ingress-list-view"},text:u(_)("zone-ingresses.routes.items.breadcrumbs")}]},{default:x(()=>{var s;return[T("div",j,[u(b).getters["config/getMulticlusterStatus"]===!1?(i(),I(L,{key:0})):(i(),D("div",G,[T("div",K,[l(U,{"selected-entity-name":(s=n.value)==null?void 0:s.name,"page-size":u(E),"is-loading":m.value,error:d.value,"empty-state":A,"table-data":o.value,"table-data-is-empty":o.value.data.length===0,next:w.value,"page-offset":h.value,onTableAction:k,onLoadData:f},null,8,["selected-entity-name","page-size","is-loading","error","table-data","table-data-is-empty","next","page-offset"])]),N(),n.value!==null?(i(),D("div",Y,[l(O,{"zone-ingress-overview":n.value},null,8,["zone-ingress-overview"])])):B("",!0)]))])]}),_:1},8,["breadcrumbs"])]),_:1}))}});export{ve as default}; diff --git a/app/kuma-ui/pkg/resources/data/assets/ZoneListView-7b303aba.js b/app/kuma-ui/pkg/resources/data/assets/ZoneListView-a4bd0b20.js similarity index 82% rename from app/kuma-ui/pkg/resources/data/assets/ZoneListView-7b303aba.js rename to app/kuma-ui/pkg/resources/data/assets/ZoneListView-a4bd0b20.js index 8e6382c5a176..77a5a18763e7 100644 --- a/app/kuma-ui/pkg/resources/data/assets/ZoneListView-7b303aba.js +++ b/app/kuma-ui/pkg/resources/data/assets/ZoneListView-a4bd0b20.js @@ -1,3 +1,3 @@ -import{Z as ee,t as te,S as ae}from"./kongponents.es-07c2d778.js";import{d as K,q as i,o as m,a as h,w as u,n as B,g as d,b as t,f as O,u as se,s as F,R as W,h as _,k as x,e as U,P as Y,l as ne,t as D}from"./index-50754121.js";import{_ as oe}from"./MultizoneInfo.vue_vue_type_script_setup_true_lang-1754f4fb.js";import{_ as re}from"./ZoneDetails.vue_vue_type_script_setup_true_lang-131b956f.js";import{l as le,k as ie,j as ce,f as ue,y as de,g as me,_ as pe}from"./RouteView.vue_vue_type_script_setup_true_lang-bc0afbf3.js";import{_ as fe}from"./RouteTitle.vue_vue_type_script_setup_true_lang-c74dc965.js";import{D as ve}from"./DataOverview-5b210bb7.js";import{Q as A}from"./QueryParameter-70743f73.js";import"./CodeBlock.vue_vue_type_style_index_0_lang-559b3ab4.js";import"./DefinitionListItem-b371d6a2.js";import"./SubscriptionHeader.vue_vue_type_script_setup_true_lang-21feaa9d.js";import"./TabsWidget-5826fd5b.js";import"./ErrorBlock-eb438aeb.js";import"./LoadingBlock.vue_vue_type_script_setup_true_lang-95ccda4d.js";import"./TextWithCopyButton-d85f5945.js";import"./WarningsWidget.vue_vue_type_script_setup_true_lang-2f6eac43.js";import"./EmptyBlock.vue_vue_type_script_setup_true_lang-34eb656c.js";import"./TagList-a0e27239.js";import"./StatusBadge-9e322ea6.js";const ge=K({__name:"DeleteResourceModal",props:{actionButtonText:{type:String,required:!1,default:"Yes, delete"},confirmationText:{type:String,required:!1,default:""},deleteFunction:{type:Function,required:!0},isVisible:{type:Boolean,required:!0},modalId:{type:String,required:!0},title:{type:String,required:!1,default:"Delete"}},emits:["cancel","delete"],setup(E,{emit:p}){const o=E,s=i(!1);async function r(){s.value=!1;try{await o.deleteFunction(),p("delete")}catch(f){console.error(f),s.value=!0}}return(f,y)=>(m(),h(t(te),{"action-button-text":o.actionButtonText,"confirmation-text":o.confirmationText,"is-visible":o.isVisible,"modal-id":o.modalId,title:o.title,type:"danger","data-testid":"delete-resource-modal",onCanceled:y[0]||(y[0]=S=>p("cancel")),onProceed:r},{"body-content":u(()=>[B(f.$slots,"body-content"),d(),s.value?(m(),h(t(ee),{key:0,class:"mt-4",appearance:"danger","is-dismissible":""},{alertMessage:u(()=>[B(f.$slots,"error")]),_:3})):O("",!0)]),_:3},8,["action-button-text","confirmation-text","is-visible","modal-id","title"]))}}),be={class:"zones"},ye={key:1,class:"kcard-stack"},_e={class:"kcard-border"},he={key:0,class:"kcard-border","data-testid":"list-view-summary"},Pe=K({__name:"ZoneListView",props:{selectedZoneName:{type:[String,null],required:!1,default:null},offset:{type:Number,required:!1,default:0}},setup(E){const p=E,o=le(),{t:s}=ie(),r=ce(),f={title:"No Data",message:"There are no Zones present."},y=se(),S=ue(),N=i(!0),z=i(!1),k=i(""),T=i(null),v=i({headers:[{label:"Status",key:"status"},{label:"Name",key:"entity"},{label:"Zone CP Version",key:"zoneCpVersion"},{label:"Storage type",key:"storeType"},{label:"Ingress",key:"hasIngress"},{label:"Egress",key:"hasEgress"},{label:"Warnings",key:"warnings",hideLabel:!0},{label:"Actions",key:"actions",hideLabel:!0}],data:[]}),g=i(null),M=i(null),V=i(p.offset);F(()=>y.params.mesh,function(){y.name==="zone-cp-list-view"&&w(0)}),F(()=>S.getters["config/getMulticlusterStatus"],function(e){e&&w(p.offset)},{immediate:!0});async function w(e){var n;V.value=e,A.set("offset",e>0?e:null),N.value=!0,T.value=null;const c=Y;try{const[{items:l,next:Z},{items:a},{items:I}]=await Promise.all([r.getAllZoneOverviews({size:c,offset:e}),W(r.getAllZoneIngressOverviews.bind(r)),W(r.getAllZoneEgressOverviews.bind(r))]);M.value=Z,v.value.data=G(l??[],a??[],I??[]),await q({name:p.selectedZoneName??((n=v.value.data[0])==null?void 0:n.entity.name)})}catch(l){g.value=null,v.value.data=[],l instanceof Error?T.value=l:console.error(l)}finally{N.value=!1}}function G(e,c,n){const l=new Set(c.map(a=>a.zoneIngress.zone)),Z=new Set(n.map(a=>a.zoneEgress.zone));return e.map(a=>{var P;const{name:I}=a,J={name:"zone-cp-detail-view",params:{zone:I}};let R="-",$="",L=!0;(((P=a.zoneInsight)==null?void 0:P.subscriptions)??[]).forEach(b=>{if(b.version&&b.version.kumaCp){R=b.version.kumaCp.version;const{kumaCpGlobalCompatible:X=!0}=b.version.kumaCp;L=X,b.config&&($=JSON.parse(b.config).store.type)}});const H=de(a.zoneInsight);return{entity:a,detailViewRoute:J,status:H,zoneCpVersion:R,storeType:$,hasIngress:l.has(a.name)?"Yes":"No",hasEgress:Z.has(a.name)?"Yes":"No",withWarnings:!L}})}async function q({name:e}){if(e===void 0){g.value=null,A.set("zone",null);return}try{g.value=await r.getZoneOverview({name:e}),A.set("zone",e)}catch(c){console.error(c)}}async function Q(){await r.deleteZone({name:k.value})}function C(e){var n;const c=((n=e==null?void 0:e.entity)==null?void 0:n.name)??(e==null?void 0:e.name)??"";z.value=!z.value,k.value=c}function j(){C(),w(0)}return(e,c)=>(m(),h(pe,null,{default:u(()=>[_(fe,{title:t(s)("zone-cps.routes.items.title")},null,8,["title"]),d(),_(me,{breadcrumbs:[{to:{name:"zone-cp-list-view"},text:t(s)("zone-cps.routes.items.breadcrumbs")}]},{default:u(()=>{var n;return[x("div",be,[t(S).getters["config/getMulticlusterStatus"]===!1?(m(),h(oe,{key:0})):(m(),U("div",ye,[x("div",_e,[_(ve,{"selected-entity-name":(n=g.value)==null?void 0:n.name,"page-size":t(Y),"is-loading":N.value,error:T.value,"empty-state":f,"table-data":v.value,"table-data-is-empty":v.value.data.length===0,"show-warnings":v.value.data.some(l=>l.withWarnings),next:M.value,"page-offset":V.value,"show-delete-action":t(o)("KUMA_ZONE_CREATION_FLOW")==="enabled",onDeleteResource:C,onTableAction:q,onLoadData:w},ne({_:2},[t(o)("KUMA_ZONE_CREATION_FLOW")==="enabled"?{name:"additionalControls",fn:u(()=>[_(t(ae),{appearance:"creation",icon:"plus",to:{name:"zone-create-view"}},{default:u(()=>[d(` +import{Z as ee,t as te,S as ae}from"./kongponents.es-f7b55123.js";import{d as K,q as i,o as m,a as h,w as u,n as B,g as d,b as t,f as O,u as se,s as F,R as W,h as _,k as x,e as U,P as Y,l as ne,t as D}from"./index-a4a530d1.js";import{_ as oe}from"./MultizoneInfo.vue_vue_type_script_setup_true_lang-cd891354.js";import{_ as re}from"./ZoneDetails.vue_vue_type_script_setup_true_lang-0689c124.js";import{l as le,k as ie,j as ce,f as ue,y as de,g as me,_ as pe}from"./RouteView.vue_vue_type_script_setup_true_lang-8e6a23b5.js";import{_ as fe}from"./RouteTitle.vue_vue_type_script_setup_true_lang-f4fc2caf.js";import{D as ve}from"./DataOverview-7c85e051.js";import{Q as A}from"./QueryParameter-70743f73.js";import"./CodeBlock.vue_vue_type_style_index_0_lang-15a6fd20.js";import"./DefinitionListItem-f18ea925.js";import"./SubscriptionHeader.vue_vue_type_script_setup_true_lang-6986223f.js";import"./TabsWidget-a42020cd.js";import"./ErrorBlock-cc9ab0db.js";import"./LoadingBlock.vue_vue_type_script_setup_true_lang-2c479ce1.js";import"./TextWithCopyButton-4f241d23.js";import"./WarningsWidget.vue_vue_type_script_setup_true_lang-385921c7.js";import"./EmptyBlock.vue_vue_type_script_setup_true_lang-ddebee78.js";import"./TagList-76ef6044.js";import"./StatusBadge-6b87699d.js";const ge=K({__name:"DeleteResourceModal",props:{actionButtonText:{type:String,required:!1,default:"Yes, delete"},confirmationText:{type:String,required:!1,default:""},deleteFunction:{type:Function,required:!0},isVisible:{type:Boolean,required:!0},modalId:{type:String,required:!0},title:{type:String,required:!1,default:"Delete"}},emits:["cancel","delete"],setup(E,{emit:p}){const o=E,s=i(!1);async function r(){s.value=!1;try{await o.deleteFunction(),p("delete")}catch(f){console.error(f),s.value=!0}}return(f,y)=>(m(),h(t(te),{"action-button-text":o.actionButtonText,"confirmation-text":o.confirmationText,"is-visible":o.isVisible,"modal-id":o.modalId,title:o.title,type:"danger","data-testid":"delete-resource-modal",onCanceled:y[0]||(y[0]=S=>p("cancel")),onProceed:r},{"body-content":u(()=>[B(f.$slots,"body-content"),d(),s.value?(m(),h(t(ee),{key:0,class:"mt-4",appearance:"danger","is-dismissible":""},{alertMessage:u(()=>[B(f.$slots,"error")]),_:3})):O("",!0)]),_:3},8,["action-button-text","confirmation-text","is-visible","modal-id","title"]))}}),be={class:"zones"},ye={key:1,class:"kcard-stack"},_e={class:"kcard-border"},he={key:0,class:"kcard-border","data-testid":"list-view-summary"},Pe=K({__name:"ZoneListView",props:{selectedZoneName:{type:[String,null],required:!1,default:null},offset:{type:Number,required:!1,default:0}},setup(E){const p=E,o=le(),{t:s}=ie(),r=ce(),f={title:"No Data",message:"There are no Zones present."},y=se(),S=ue(),N=i(!0),z=i(!1),k=i(""),T=i(null),v=i({headers:[{label:"Status",key:"status"},{label:"Name",key:"entity"},{label:"Zone CP Version",key:"zoneCpVersion"},{label:"Storage type",key:"storeType"},{label:"Ingress",key:"hasIngress"},{label:"Egress",key:"hasEgress"},{label:"Warnings",key:"warnings",hideLabel:!0},{label:"Actions",key:"actions",hideLabel:!0}],data:[]}),g=i(null),M=i(null),V=i(p.offset);F(()=>y.params.mesh,function(){y.name==="zone-cp-list-view"&&w(0)}),F(()=>S.getters["config/getMulticlusterStatus"],function(e){e&&w(p.offset)},{immediate:!0});async function w(e){var n;V.value=e,A.set("offset",e>0?e:null),N.value=!0,T.value=null;const c=Y;try{const[{items:l,next:Z},{items:a},{items:I}]=await Promise.all([r.getAllZoneOverviews({size:c,offset:e}),W(r.getAllZoneIngressOverviews.bind(r)),W(r.getAllZoneEgressOverviews.bind(r))]);M.value=Z,v.value.data=G(l??[],a??[],I??[]),await q({name:p.selectedZoneName??((n=v.value.data[0])==null?void 0:n.entity.name)})}catch(l){g.value=null,v.value.data=[],l instanceof Error?T.value=l:console.error(l)}finally{N.value=!1}}function G(e,c,n){const l=new Set(c.map(a=>a.zoneIngress.zone)),Z=new Set(n.map(a=>a.zoneEgress.zone));return e.map(a=>{var P;const{name:I}=a,J={name:"zone-cp-detail-view",params:{zone:I}};let R="-",$="",L=!0;(((P=a.zoneInsight)==null?void 0:P.subscriptions)??[]).forEach(b=>{if(b.version&&b.version.kumaCp){R=b.version.kumaCp.version;const{kumaCpGlobalCompatible:X=!0}=b.version.kumaCp;L=X,b.config&&($=JSON.parse(b.config).store.type)}});const H=de(a.zoneInsight);return{entity:a,detailViewRoute:J,status:H,zoneCpVersion:R,storeType:$,hasIngress:l.has(a.name)?"Yes":"No",hasEgress:Z.has(a.name)?"Yes":"No",withWarnings:!L}})}async function q({name:e}){if(e===void 0){g.value=null,A.set("zone",null);return}try{g.value=await r.getZoneOverview({name:e}),A.set("zone",e)}catch(c){console.error(c)}}async function Q(){await r.deleteZone({name:k.value})}function C(e){var n;const c=((n=e==null?void 0:e.entity)==null?void 0:n.name)??(e==null?void 0:e.name)??"";z.value=!z.value,k.value=c}function j(){C(),w(0)}return(e,c)=>(m(),h(pe,null,{default:u(()=>[_(fe,{title:t(s)("zone-cps.routes.items.title")},null,8,["title"]),d(),_(me,{breadcrumbs:[{to:{name:"zone-cp-list-view"},text:t(s)("zone-cps.routes.items.breadcrumbs")}]},{default:u(()=>{var n;return[x("div",be,[t(S).getters["config/getMulticlusterStatus"]===!1?(m(),h(oe,{key:0})):(m(),U("div",ye,[x("div",_e,[_(ve,{"selected-entity-name":(n=g.value)==null?void 0:n.name,"page-size":t(Y),"is-loading":N.value,error:T.value,"empty-state":f,"table-data":v.value,"table-data-is-empty":v.value.data.length===0,"show-warnings":v.value.data.some(l=>l.withWarnings),next:M.value,"page-offset":V.value,"show-delete-action":t(o)("KUMA_ZONE_CREATION_FLOW")==="enabled",onDeleteResource:C,onTableAction:q,onLoadData:w},ne({_:2},[t(o)("KUMA_ZONE_CREATION_FLOW")==="enabled"?{name:"additionalControls",fn:u(()=>[_(t(ae),{appearance:"creation",icon:"plus",to:{name:"zone-create-view"}},{default:u(()=>[d(` Create Zone `)]),_:1})]),key:"0"}:void 0]),1032,["selected-entity-name","page-size","is-loading","error","table-data","table-data-is-empty","show-warnings","next","page-offset","show-delete-action"])]),d(),g.value!==null?(m(),U("div",he,[_(re,{"zone-overview":g.value},null,8,["zone-overview"])])):O("",!0)])),d(),z.value?(m(),h(ge,{key:2,"confirmation-text":k.value,"delete-function":Q,"is-visible":z.value,"modal-id":"delete-zone-modal","action-button-text":t(s)("zones.delete.confirmModal.proceedText"),title:t(s)("zones.delete.confirmModal.title"),onCancel:C,onDelete:j},{"body-content":u(()=>[x("p",null,D(t(s)("zones.delete.confirmModal.text1",{zoneName:k.value})),1),d(),x("p",null,D(t(s)("zones.delete.confirmModal.text2")),1)]),error:u(()=>[d(D(t(s)("zones.delete.confirmModal.errorText")),1)]),_:1},8,["confirmation-text","is-visible","action-button-text","title"])):O("",!0)])]}),_:1},8,["breadcrumbs"])]),_:1}))}});export{Pe as default}; diff --git a/app/kuma-ui/pkg/resources/data/assets/index-50754121.js b/app/kuma-ui/pkg/resources/data/assets/index-a4a530d1.js similarity index 75% rename from app/kuma-ui/pkg/resources/data/assets/index-50754121.js rename to app/kuma-ui/pkg/resources/data/assets/index-a4a530d1.js index 2d39c409afbc..1b90d779d346 100644 --- a/app/kuma-ui/pkg/resources/data/assets/index-50754121.js +++ b/app/kuma-ui/pkg/resources/data/assets/index-a4a530d1.js @@ -6,7 +6,7 @@ var ql=Object.defineProperty;var Yl=(e,t,n)=>t in e?ql(e,t,{enumerable:!0,config * vue-router v4.2.2 * (c) 2023 Eduardo San Martin Morote * @license MIT - */const Xt=typeof window<"u";function uh(e){return e.__esModule||e[Symbol.toStringTag]==="Module"}const ee=Object.assign;function Vr(e,t){const n={};for(const r in t){const s=t[r];n[r]=je(s)?s.map(e):e(s)}return n}const wn=()=>{},je=Array.isArray,fh=/\/$/,hh=e=>e.replace(fh,"");function Kr(e,t,n="/"){let r,s={},i="",o="";const a=t.indexOf("#");let l=t.indexOf("?");return a=0&&(l=-1),l>-1&&(r=t.slice(0,l),i=t.slice(l+1,a>-1?a:t.length),s=e(i)),a>-1&&(r=r||t.slice(0,a),o=t.slice(a,t.length)),r=gh(r??t,n),{fullPath:r+(i&&"?")+i+o,path:r,query:s,hash:o}}function ph(e,t){const n=t.query?e(t.query):"";return t.path+(n&&"?")+n+(t.hash||"")}function Qi(e,t){return!t||!e.toLowerCase().startsWith(t.toLowerCase())?e:e.slice(t.length)||"/"}function dh(e,t,n){const r=t.matched.length-1,s=n.matched.length-1;return r>-1&&r===s&&an(t.matched[r],n.matched[s])&&nl(t.params,n.params)&&e(t.query)===e(n.query)&&t.hash===n.hash}function an(e,t){return(e.aliasOf||e)===(t.aliasOf||t)}function nl(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(const n in e)if(!mh(e[n],t[n]))return!1;return!0}function mh(e,t){return je(e)?Ji(e,t):je(t)?Ji(t,e):e===t}function Ji(e,t){return je(t)?e.length===t.length&&e.every((n,r)=>n===t[r]):e.length===1&&e[0]===t}function gh(e,t){if(e.startsWith("/"))return e;if(!e)return t;const n=t.split("/"),r=e.split("/"),s=r[r.length-1];(s===".."||s===".")&&r.push("");let i=n.length-1,o,a;for(o=0;o1&&i--;else break;return n.slice(0,i).join("/")+"/"+r.slice(o-(o===r.length?1:0)).join("/")}var Bn;(function(e){e.pop="pop",e.push="push"})(Bn||(Bn={}));var On;(function(e){e.back="back",e.forward="forward",e.unknown=""})(On||(On={}));function Eh(e){if(!e)if(Xt){const t=document.querySelector("base");e=t&&t.getAttribute("href")||"/",e=e.replace(/^\w+:\/\/[^\/]+/,"")}else e="/";return e[0]!=="/"&&e[0]!=="#"&&(e="/"+e),hh(e)}const vh=/^[^#]+#/;function _h(e,t){return e.replace(vh,"#")+t}function yh(e,t){const n=document.documentElement.getBoundingClientRect(),r=e.getBoundingClientRect();return{behavior:t.behavior,left:r.left-n.left-(t.left||0),top:r.top-n.top-(t.top||0)}}const Mr=()=>({left:window.pageXOffset,top:window.pageYOffset});function bh(e){let t;if("el"in e){const n=e.el,r=typeof n=="string"&&n.startsWith("#"),s=typeof n=="string"?r?document.getElementById(n.slice(1)):document.querySelector(n):n;if(!s)return;t=yh(s,e)}else t=e;"scrollBehavior"in document.documentElement.style?window.scrollTo(t):window.scrollTo(t.left!=null?t.left:window.pageXOffset,t.top!=null?t.top:window.pageYOffset)}function eo(e,t){return(history.state?history.state.position-t:-1)+e}const ds=new Map;function Th(e,t){ds.set(e,t)}function Ih(e){const t=ds.get(e);return ds.delete(e),t}let Sh=()=>location.protocol+"//"+location.host;function rl(e,t){const{pathname:n,search:r,hash:s}=t,i=e.indexOf("#");if(i>-1){let a=s.includes(e.slice(i))?e.slice(i).length:1,l=s.slice(a);return l[0]!=="/"&&(l="/"+l),Qi(l,"")}return Qi(n,e)+r+s}function Ah(e,t,n,r){let s=[],i=[],o=null;const a=({state:h})=>{const g=rl(e,location),y=n.value,T=t.value;let C=0;if(h){if(n.value=g,t.value=h,o&&o===y){o=null;return}C=T?h.position-T.position:0}else r(g);s.forEach(A=>{A(n.value,y,{delta:C,type:Bn.pop,direction:C?C>0?On.forward:On.back:On.unknown})})};function l(){o=n.value}function c(h){s.push(h);const g=()=>{const y=s.indexOf(h);y>-1&&s.splice(y,1)};return i.push(g),g}function u(){const{history:h}=window;h.state&&h.replaceState(ee({},h.state,{scroll:Mr()}),"")}function f(){for(const h of i)h();i=[],window.removeEventListener("popstate",a),window.removeEventListener("beforeunload",u)}return window.addEventListener("popstate",a),window.addEventListener("beforeunload",u,{passive:!0}),{pauseListeners:l,listen:c,destroy:f}}function to(e,t,n,r=!1,s=!1){return{back:e,current:t,forward:n,replaced:r,position:window.history.length,scroll:s?Mr():null}}function wh(e){const{history:t,location:n}=window,r={value:rl(e,n)},s={value:t.state};s.value||i(r.value,{back:null,current:r.value,forward:null,position:t.length-1,replaced:!0,scroll:null},!0);function i(l,c,u){const f=e.indexOf("#"),h=f>-1?(n.host&&document.querySelector("base")?e:e.slice(f))+l:Sh()+e+l;try{t[u?"replaceState":"pushState"](c,"",h),s.value=c}catch(g){console.error(g),n[u?"replace":"assign"](h)}}function o(l,c){const u=ee({},t.state,to(s.value.back,l,s.value.forward,!0),c,{position:s.value.position});i(l,u,!0),r.value=l}function a(l,c){const u=ee({},s.value,t.state,{forward:l,scroll:Mr()});i(u.current,u,!0);const f=ee({},to(r.value,l,null),{position:u.position+1},c);i(l,f,!1),r.value=l}return{location:r,state:s,push:a,replace:o}}function Oh(e){e=Eh(e);const t=wh(e),n=Ah(e,t.state,t.location,t.replace);function r(i,o=!0){o||n.pauseListeners(),history.go(i)}const s=ee({location:"",base:e,go:r,createHref:_h.bind(null,e)},t,n);return Object.defineProperty(s,"location",{enumerable:!0,get:()=>t.location.value}),Object.defineProperty(s,"state",{enumerable:!0,get:()=>t.state.value}),s}function Rh(e){return typeof e=="string"||e&&typeof e=="object"}function sl(e){return typeof e=="string"||typeof e=="symbol"}const gt={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0},il=Symbol("");var no;(function(e){e[e.aborted=4]="aborted",e[e.cancelled=8]="cancelled",e[e.duplicated=16]="duplicated"})(no||(no={}));function ln(e,t){return ee(new Error,{type:e,[il]:!0},t)}function st(e,t){return e instanceof Error&&il in e&&(t==null||!!(e.type&t))}const ro="[^/]+?",Ch={sensitive:!1,strict:!1,start:!0,end:!0},Ph=/[.+*?^${}()[\]/\\]/g;function Nh(e,t){const n=ee({},Ch,t),r=[];let s=n.start?"^":"";const i=[];for(const c of e){const u=c.length?[]:[90];n.strict&&!c.length&&(s+="/");for(let f=0;ft.length?t.length===1&&t[0]===40+40?1:-1:0}function Mh(e,t){let n=0;const r=e.score,s=t.score;for(;n0&&t[t.length-1]<0}const Dh={type:0,value:""},Hh=/[a-zA-Z0-9_]/;function Bh(e){if(!e)return[[]];if(e==="/")return[[Dh]];if(!e.startsWith("/"))throw new Error(`Invalid path "${e}"`);function t(g){throw new Error(`ERR (${n})/"${c}": ${g}`)}let n=0,r=n;const s=[];let i;function o(){i&&s.push(i),i=[]}let a=0,l,c="",u="";function f(){c&&(n===0?i.push({type:0,value:c}):n===1||n===2||n===3?(i.length>1&&(l==="*"||l==="+")&&t(`A repeatable param (${c}) must be alone in its segment. eg: '/:ids+.`),i.push({type:1,value:c,regexp:u,repeatable:l==="*"||l==="+",optional:l==="*"||l==="?"})):t("Invalid state to consume buffer"),c="")}function h(){c+=l}for(;a{o(P)}:wn}function o(u){if(sl(u)){const f=r.get(u);f&&(r.delete(u),n.splice(n.indexOf(f),1),f.children.forEach(o),f.alias.forEach(o))}else{const f=n.indexOf(u);f>-1&&(n.splice(f,1),u.record.name&&r.delete(u.record.name),u.children.forEach(o),u.alias.forEach(o))}}function a(){return n}function l(u){let f=0;for(;f=0&&(u.record.path!==n[f].record.path||!ol(u,n[f]));)f++;n.splice(f,0,u),u.record.name&&!oo(u)&&r.set(u.record.name,u)}function c(u,f){let h,g={},y,T;if("name"in u&&u.name){if(h=r.get(u.name),!h)throw ln(1,{location:u});T=h.record.name,g=ee(io(f.params,h.keys.filter(P=>!P.optional).map(P=>P.name)),u.params&&io(u.params,h.keys.map(P=>P.name))),y=h.stringify(g)}else if("path"in u)y=u.path,h=n.find(P=>P.re.test(y)),h&&(g=h.parse(y),T=h.record.name);else{if(h=f.name?r.get(f.name):n.find(P=>P.re.test(f.path)),!h)throw ln(1,{location:u,currentLocation:f});T=h.record.name,g=ee({},f.params,u.params),y=h.stringify(g)}const C=[];let A=h;for(;A;)C.unshift(A.record),A=A.parent;return{name:T,path:y,params:g,matched:C,meta:$h(C)}}return e.forEach(u=>i(u)),{addRoute:i,resolve:c,removeRoute:o,getRoutes:a,getRecordMatcher:s}}function io(e,t){const n={};for(const r of t)r in e&&(n[r]=e[r]);return n}function Fh(e){return{path:e.path,redirect:e.redirect,name:e.name,meta:e.meta||{},aliasOf:void 0,beforeEnter:e.beforeEnter,props:kh(e),children:e.children||[],instances:{},leaveGuards:new Set,updateGuards:new Set,enterCallbacks:{},components:"components"in e?e.components||null:e.component&&{default:e.component}}}function kh(e){const t={},n=e.props||!1;if("component"in e)t.default=n;else for(const r in e.components)t[r]=typeof n=="boolean"?n:n[r];return t}function oo(e){for(;e;){if(e.record.aliasOf)return!0;e=e.parent}return!1}function $h(e){return e.reduce((t,n)=>ee(t,n.meta),{})}function ao(e,t){const n={};for(const r in e)n[r]=r in t?t[r]:e[r];return n}function ol(e,t){return t.children.some(n=>n===e||ol(e,n))}const al=/#/g,Gh=/&/g,jh=/\//g,Vh=/=/g,Kh=/\?/g,ll=/\+/g,zh=/%5B/g,Zh=/%5D/g,cl=/%5E/g,Wh=/%60/g,ul=/%7B/g,Xh=/%7C/g,fl=/%7D/g,qh=/%20/g;function ei(e){return encodeURI(""+e).replace(Xh,"|").replace(zh,"[").replace(Zh,"]")}function Yh(e){return ei(e).replace(ul,"{").replace(fl,"}").replace(cl,"^")}function ms(e){return ei(e).replace(ll,"%2B").replace(qh,"+").replace(al,"%23").replace(Gh,"%26").replace(Wh,"`").replace(ul,"{").replace(fl,"}").replace(cl,"^")}function Qh(e){return ms(e).replace(Vh,"%3D")}function Jh(e){return ei(e).replace(al,"%23").replace(Kh,"%3F")}function ep(e){return e==null?"":Jh(e).replace(jh,"%2F")}function Er(e){try{return decodeURIComponent(""+e)}catch{}return""+e}function tp(e){const t={};if(e===""||e==="?")return t;const r=(e[0]==="?"?e.slice(1):e).split("&");for(let s=0;si&&ms(i)):[r&&ms(r)]).forEach(i=>{i!==void 0&&(t+=(t.length?"&":"")+n,i!=null&&(t+="="+i))})}return t}function np(e){const t={};for(const n in e){const r=e[n];r!==void 0&&(t[n]=je(r)?r.map(s=>s==null?null:""+s):r==null?r:""+r)}return t}const rp=Symbol(""),co=Symbol(""),Dr=Symbol(""),ti=Symbol(""),gs=Symbol("");function vn(){let e=[];function t(r){return e.push(r),()=>{const s=e.indexOf(r);s>-1&&e.splice(s,1)}}function n(){e=[]}return{add:t,list:()=>e,reset:n}}function vt(e,t,n,r,s){const i=r&&(r.enterCallbacks[s]=r.enterCallbacks[s]||[]);return()=>new Promise((o,a)=>{const l=f=>{f===!1?a(ln(4,{from:n,to:t})):f instanceof Error?a(f):Rh(f)?a(ln(2,{from:t,to:f})):(i&&r.enterCallbacks[s]===i&&typeof f=="function"&&i.push(f),o())},c=e.call(r&&r.instances[s],t,n,l);let u=Promise.resolve(c);e.length<3&&(u=u.then(l)),u.catch(f=>a(f))})}function zr(e,t,n,r){const s=[];for(const i of e)for(const o in i.components){let a=i.components[o];if(!(t!=="beforeRouteEnter"&&!i.instances[o]))if(sp(a)){const c=(a.__vccOpts||a)[t];c&&s.push(vt(c,n,r,i,o))}else{let l=a();s.push(()=>l.then(c=>{if(!c)return Promise.reject(new Error(`Couldn't resolve component "${o}" at "${i.path}"`));const u=uh(c)?c.default:c;i.components[o]=u;const h=(u.__vccOpts||u)[t];return h&&vt(h,n,r,i,o)()}))}}return s}function sp(e){return typeof e=="object"||"displayName"in e||"props"in e||"__vccOpts"in e}function uo(e){const t=Ge(Dr),n=Ge(ti),r=Le(()=>t.resolve(Jt(e.to))),s=Le(()=>{const{matched:l}=r.value,{length:c}=l,u=l[c-1],f=n.matched;if(!u||!f.length)return-1;const h=f.findIndex(an.bind(null,u));if(h>-1)return h;const g=fo(l[c-2]);return c>1&&fo(u)===g&&f[f.length-1].path!==g?f.findIndex(an.bind(null,l[c-2])):h}),i=Le(()=>s.value>-1&&lp(n.params,r.value.params)),o=Le(()=>s.value>-1&&s.value===n.matched.length-1&&nl(n.params,r.value.params));function a(l={}){return ap(l)?t[Jt(e.replace)?"replace":"push"](Jt(e.to)).catch(wn):Promise.resolve()}return{route:r,href:Le(()=>r.value.href),isActive:i,isExactActive:o,navigate:a}}const ip=ya({name:"RouterLink",compatConfig:{MODE:3},props:{to:{type:[String,Object],required:!0},replace:Boolean,activeClass:String,exactActiveClass:String,custom:Boolean,ariaCurrentValue:{type:String,default:"page"}},useLink:uo,setup(e,{slots:t}){const n=pn(uo(e)),{options:r}=Ge(Dr),s=Le(()=>({[ho(e.activeClass,r.linkActiveClass,"router-link-active")]:n.isActive,[ho(e.exactActiveClass,r.linkExactActiveClass,"router-link-exact-active")]:n.isExactActive}));return()=>{const i=t.default&&t.default(n);return e.custom?i:qs("a",{"aria-current":n.isExactActive?e.ariaCurrentValue:null,href:n.href,onClick:n.navigate,class:s.value},i)}}}),op=ip;function ap(e){if(!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)&&!e.defaultPrevented&&!(e.button!==void 0&&e.button!==0)){if(e.currentTarget&&e.currentTarget.getAttribute){const t=e.currentTarget.getAttribute("target");if(/\b_blank\b/i.test(t))return}return e.preventDefault&&e.preventDefault(),!0}}function lp(e,t){for(const n in t){const r=t[n],s=e[n];if(typeof r=="string"){if(r!==s)return!1}else if(!je(s)||s.length!==r.length||r.some((i,o)=>i!==s[o]))return!1}return!0}function fo(e){return e?e.aliasOf?e.aliasOf.path:e.path:""}const ho=(e,t,n)=>e??t??n,cp=ya({name:"RouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object},compatConfig:{MODE:3},setup(e,{attrs:t,slots:n}){const r=Ge(gs),s=Le(()=>e.route||r.value),i=Ge(co,0),o=Le(()=>{let c=Jt(i);const{matched:u}=s.value;let f;for(;(f=u[c])&&!f.components;)c++;return c}),a=Le(()=>s.value.matched[o.value]);sr(co,Le(()=>o.value+1)),sr(rp,a),sr(gs,s);const l=zc();return tn(()=>[l.value,a.value,e.name],([c,u,f],[h,g,y])=>{u&&(u.instances[f]=c,g&&g!==u&&c&&c===h&&(u.leaveGuards.size||(u.leaveGuards=g.leaveGuards),u.updateGuards.size||(u.updateGuards=g.updateGuards))),c&&u&&(!g||!an(u,g)||!h)&&(u.enterCallbacks[f]||[]).forEach(T=>T(c))},{flush:"post"}),()=>{const c=s.value,u=e.name,f=a.value,h=f&&f.components[u];if(!h)return po(n.default,{Component:h,route:c});const g=f.props[u],y=g?g===!0?c.params:typeof g=="function"?g(c):g:null,C=qs(h,ee({},y,t,{onVnodeUnmounted:A=>{A.component.isUnmounted&&(f.instances[u]=null)},ref:l}));return po(n.default,{Component:C,route:c})||C}}});function po(e,t){if(!e)return null;const n=e(t);return n.length===1?n[0]:n}const up=cp;function fp(e){const t=Uh(e.routes,e),n=e.parseQuery||tp,r=e.stringifyQuery||lo,s=e.history,i=vn(),o=vn(),a=vn(),l=Zc(gt);let c=gt;Xt&&e.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const u=Vr.bind(null,v=>""+v),f=Vr.bind(null,ep),h=Vr.bind(null,Er);function g(v,N){let O,B;return sl(v)?(O=t.getRecordMatcher(v),B=N):B=v,t.addRoute(B,O)}function y(v){const N=t.getRecordMatcher(v);N&&t.removeRoute(N)}function T(){return t.getRoutes().map(v=>v.record)}function C(v){return!!t.getRecordMatcher(v)}function A(v,N){if(N=ee({},N||l.value),typeof v=="string"){const m=Kr(n,v,N.path),E=t.resolve({path:m.path},N),_=s.createHref(m.fullPath);return ee(m,E,{params:h(E.params),hash:Er(m.hash),redirectedFrom:void 0,href:_})}let O;if("path"in v)O=ee({},v,{path:Kr(n,v.path,N.path).path});else{const m=ee({},v.params);for(const E in m)m[E]==null&&delete m[E];O=ee({},v,{params:f(m)}),N.params=f(N.params)}const B=t.resolve(O,N),Q=v.hash||"";B.params=u(h(B.params));const p=ph(r,ee({},v,{hash:Yh(Q),path:B.path})),d=s.createHref(p);return ee({fullPath:p,hash:Q,query:r===lo?np(v.query):v.query||{}},B,{redirectedFrom:void 0,href:d})}function P(v){return typeof v=="string"?Kr(n,v,l.value.path):ee({},v)}function H(v,N){if(c!==v)return ln(8,{from:N,to:v})}function L(v){return me(v)}function Z(v){return L(ee(P(v),{replace:!0}))}function ae(v){const N=v.matched[v.matched.length-1];if(N&&N.redirect){const{redirect:O}=N;let B=typeof O=="function"?O(v):O;return typeof B=="string"&&(B=B.includes("?")||B.includes("#")?B=P(B):{path:B},B.params={}),ee({query:v.query,hash:v.hash,params:"path"in B?{}:v.params},B)}}function me(v,N){const O=c=A(v),B=l.value,Q=v.state,p=v.force,d=v.replace===!0,m=ae(O);if(m)return me(ee(P(m),{state:typeof m=="object"?ee({},Q,m.state):Q,force:p,replace:d}),N||O);const E=O;E.redirectedFrom=N;let _;return!p&&dh(r,B,O)&&(_=ln(16,{to:E,from:B}),ze(B,B,!0,!1)),(_?Promise.resolve(_):te(E,B)).catch(b=>st(b)?st(b,2)?b:ft(b):Y(b,E,B)).then(b=>{if(b){if(st(b,2))return me(ee({replace:d},P(b.to),{state:typeof b.to=="object"?ee({},Q,b.to.state):Q,force:p}),N||E)}else b=D(E,B,!0,d,Q);return ge(E,B,b),b})}function j(v,N){const O=H(v,N);return O?Promise.reject(O):Promise.resolve()}function le(v){const N=jt.values().next().value;return N&&typeof N.runWithContext=="function"?N.runWithContext(v):v()}function te(v,N){let O;const[B,Q,p]=hp(v,N);O=zr(B.reverse(),"beforeRouteLeave",v,N);for(const m of B)m.leaveGuards.forEach(E=>{O.push(vt(E,v,N))});const d=j.bind(null,v,N);return O.push(d),ye(O).then(()=>{O=[];for(const m of i.list())O.push(vt(m,v,N));return O.push(d),ye(O)}).then(()=>{O=zr(Q,"beforeRouteUpdate",v,N);for(const m of Q)m.updateGuards.forEach(E=>{O.push(vt(E,v,N))});return O.push(d),ye(O)}).then(()=>{O=[];for(const m of v.matched)if(m.beforeEnter&&!N.matched.includes(m))if(je(m.beforeEnter))for(const E of m.beforeEnter)O.push(vt(E,v,N));else O.push(vt(m.beforeEnter,v,N));return O.push(d),ye(O)}).then(()=>(v.matched.forEach(m=>m.enterCallbacks={}),O=zr(p,"beforeRouteEnter",v,N),O.push(d),ye(O))).then(()=>{O=[];for(const m of o.list())O.push(vt(m,v,N));return O.push(d),ye(O)}).catch(m=>st(m,8)?m:Promise.reject(m))}function ge(v,N,O){for(const B of a.list())le(()=>B(v,N,O))}function D(v,N,O,B,Q){const p=H(v,N);if(p)return p;const d=N===gt,m=Xt?history.state:{};O&&(B||d?s.replace(v.fullPath,ee({scroll:d&&m&&m.scroll},Q)):s.push(v.fullPath,Q)),l.value=v,ze(v,N,O,d),ft()}let J;function Te(){J||(J=s.listen((v,N,O)=>{if(!Gn.listening)return;const B=A(v),Q=ae(B);if(Q){me(ee(Q,{replace:!0}),B).catch(wn);return}c=B;const p=l.value;Xt&&Th(eo(p.fullPath,O.delta),Mr()),te(B,p).catch(d=>st(d,12)?d:st(d,2)?(me(d.to,B).then(m=>{st(m,20)&&!O.delta&&O.type===Bn.pop&&s.go(-1,!1)}).catch(wn),Promise.reject()):(O.delta&&s.go(-O.delta,!1),Y(d,B,p))).then(d=>{d=d||D(B,p,!1),d&&(O.delta&&!st(d,8)?s.go(-O.delta,!1):O.type===Bn.pop&&st(d,20)&&s.go(-1,!1)),ge(B,p,d)}).catch(wn)}))}let nt=vn(),fe=vn(),se;function Y(v,N,O){ft(v);const B=fe.list();return B.length?B.forEach(Q=>Q(v,N,O)):console.error(v),Promise.reject(v)}function rt(){return se&&l.value!==gt?Promise.resolve():new Promise((v,N)=>{nt.add([v,N])})}function ft(v){return se||(se=!v,Te(),nt.list().forEach(([N,O])=>v?O(v):N()),nt.reset()),v}function ze(v,N,O,B){const{scrollBehavior:Q}=e;if(!Xt||!Q)return Promise.resolve();const p=!O&&Ih(eo(v.fullPath,0))||(B||!O)&&history.state&&history.state.scroll||null;return fa().then(()=>Q(v,N,p)).then(d=>d&&bh(d)).catch(d=>Y(d,v,N))}const we=v=>s.go(v);let Gt;const jt=new Set,Gn={currentRoute:l,listening:!0,addRoute:g,removeRoute:y,hasRoute:C,getRoutes:T,resolve:A,options:e,push:L,replace:Z,go:we,back:()=>we(-1),forward:()=>we(1),beforeEach:i.add,beforeResolve:o.add,afterEach:a.add,onError:fe.add,isReady:rt,install(v){const N=this;v.component("RouterLink",op),v.component("RouterView",up),v.config.globalProperties.$router=N,Object.defineProperty(v.config.globalProperties,"$route",{enumerable:!0,get:()=>Jt(l)}),Xt&&!Gt&&l.value===gt&&(Gt=!0,L(s.location).catch(Q=>{}));const O={};for(const Q in gt)O[Q]=Le(()=>l.value[Q]);v.provide(Dr,N),v.provide(ti,pn(O)),v.provide(gs,l);const B=v.unmount;jt.add(v),v.unmount=function(){jt.delete(v),jt.size<1&&(c=gt,J&&J(),J=null,l.value=gt,Gt=!1,se=!1),B()}}};function ye(v){return v.reduce((N,O)=>N.then(()=>le(O)),Promise.resolve())}return Gn}function hp(e,t){const n=[],r=[],s=[],i=Math.max(t.matched.length,e.matched.length);for(let o=0;oan(c,a))?r.push(a):n.push(a));const l=e.matched[o];l&&(t.matched.find(c=>an(c,l))||s.push(l))}return[n,r,s]}function HE(){return Ge(Dr)}function BE(){return Ge(ti)}class pp{constructor(t){ht(this,"storageAdapter");this.storageAdapter=t}get(t){let n;try{n=this.storageAdapter.getItem(t)}catch{return null}if(n===null||!(n.startsWith("[")||n.startsWith("{")))return n;try{return JSON.parse(n)}catch{return n}}set(t,n){try{const r=typeof n=="string"?n:JSON.stringify(n);this.storageAdapter.setItem(t,r)}catch{}}has(t){try{return this.storageAdapter.getItem(t)!==null}catch{return!1}}remove(t){try{this.storageAdapter.removeItem(t)}catch{}}}const at=new pp(window.localStorage);function hl(e,t,n="/"){const r=fp({history:Oh(n),routes:e});return r.beforeEach(dp()),r.beforeEach(mp(t)),r.beforeEach(gp(t)),r}const dp=()=>(e,t,n)=>{e.fullPath.startsWith("/#/")?n(e.fullPath.substring(2)):n()},mp=e=>(t,n,r)=>{t.params.mesh&&t.params.mesh!==e.state.selectedMesh&&e.dispatch("updateSelectedMesh",t.params.mesh),r()},gp=e=>(t,n,r)=>{const s=e.state.onboarding.isCompleted,i=t.meta.onboardingProcess,o=e.getters.shouldShowOnboardingNotification;s&&i&&!o?r({name:"home"}):!s&&!i&&o?r({name:at.get("onboardingStep")??"onboarding-welcome"}):r()};function Ep(e,t,n){return async r=>{const s=Hf(r),i=await hl(t,n,e("KUMA_BASE_PATH"));return s.use(n,za),s.use(i),s}}function vp(e){return async(t=!0)=>{t?await Promise.all([e.dispatch("bootstrap"),e.dispatch("fetchPolicyTypes")]):e.state.defaultVisibility.appError=!1}}function Tt(e,t=0){const n=_p(e);return n!==void 0?parseInt(n):t}function _p(e){const t=Array.isArray(e)?e:[e];return t[t.length-1]??void 0}const yp=()=>({items:(t="data-planes")=>[{path:`${t}`,name:`${t}-abstract-view`,meta:{module:"data-planes"},redirect:()=>({name:"data-planes-list-view"}),children:[{path:"",name:`${t}-list-view`,props:n=>({selectedDppName:n.query.dpp,offset:Tt(n.query.offset)}),component:()=>V(()=>import("./DataPlaneListView-ce983b60.js"),["./RouteView-a4ddf9f0.css","./ContentWrapper-bdb64c5c.css","./ErrorBlock-20da7d1b.css","./TagList-d344db8e.css","./StatusBadge-5ec121ec.css","./DataOverview-9f4484cf.css","./DefinitionListItem-6e5e5d2b.css","./CodeBlock-7d9027b4.css","./TextWithCopyButton-b78c7a80.css","./DataPlaneList-28426d93.css","./DataPlaneListView-c9bf2e34.css"],import.meta.url)}]}],item:(t="data-plane")=>[{path:`${t}`,name:`${t}-abstract-view`,meta:{module:"data-planes"},redirect:()=>({name:"data-planes-list-view"}),children:[{path:":dataPlane",name:`${t}-detail-view`,component:()=>V(()=>import("./DataPlaneDetailView-c432efca.js"),["./RouteView-a4ddf9f0.css","./CodeBlock-7d9027b4.css","./TagList-d344db8e.css","./ErrorBlock-20da7d1b.css","./DefinitionListItem-6e5e5d2b.css","./EnvoyData-5367f20b.css","./TextWithCopyButton-b78c7a80.css","./StatusBadge-5ec121ec.css","./SubscriptionHeader-2fff9bdf.css","./TabsWidget-85bac09e.css","./DataPlaneDetailView-2ac9efea.css"],import.meta.url)}]}]}),bp=()=>[{path:"/diagnostics",name:"diagnostics",component:()=>V(()=>import("./DiagnosticsView-162a28a6.js"),["./RouteView-a4ddf9f0.css","./CodeBlock-7d9027b4.css"],import.meta.url)}],Tp=()=>({items:(t="gateways")=>[{path:`${t}`,name:`${t}-abstract-view`,meta:{module:"gateways"},redirect:()=>({name:"gateways-list-view"}),children:[{path:"",name:`${t}-list-view`,props:n=>({selectedDppName:n.query.gateway,gatewayType:n.query.gatewayType==="all"?"true":n.query.gatewayType,offset:Tt(n.query.offset),isGatewayView:!0}),component:()=>V(()=>import("./DataPlaneListView-ce983b60.js"),["./RouteView-a4ddf9f0.css","./ContentWrapper-bdb64c5c.css","./ErrorBlock-20da7d1b.css","./TagList-d344db8e.css","./StatusBadge-5ec121ec.css","./DataOverview-9f4484cf.css","./DefinitionListItem-6e5e5d2b.css","./CodeBlock-7d9027b4.css","./TextWithCopyButton-b78c7a80.css","./DataPlaneList-28426d93.css","./DataPlaneListView-c9bf2e34.css"],import.meta.url)}]}],item:(t="gateway")=>[{path:`${t}`,name:`${t}-abstract-view`,meta:{module:"gateways"},redirect:()=>({name:"gateways-list-view"}),children:[{path:":dataPlane",name:`${t}-detail-view`,props:()=>({isGatewayView:!0}),component:()=>V(()=>import("./DataPlaneDetailView-c432efca.js"),["./RouteView-a4ddf9f0.css","./CodeBlock-7d9027b4.css","./TagList-d344db8e.css","./ErrorBlock-20da7d1b.css","./DefinitionListItem-6e5e5d2b.css","./EnvoyData-5367f20b.css","./TextWithCopyButton-b78c7a80.css","./StatusBadge-5ec121ec.css","./SubscriptionHeader-2fff9bdf.css","./TabsWidget-85bac09e.css","./DataPlaneDetailView-2ac9efea.css"],import.meta.url)}]}]});function Ip(e){return[{name:"Home",routeName:"home"},...e?[{name:"Zones",routeName:"zone-cp-list-view",anchorRouteName:"zone-index-view"}]:[{name:"Zone Egresses",routeName:"zone-egress-list-view",anchorRouteName:"zone-index-view"}],{name:"Meshes",routeName:"mesh-list-view",anchorRouteName:"mesh-index-view"}]}const Sp=(e,t,n,r)=>[{path:"/meshes",name:"mesh-list-view",props:s=>({page:Tt(s.query.page),selectedMeshName:s.query.mesh}),component:()=>V(()=>import("./MeshListView-9eb63c69.js"),["./RouteView-a4ddf9f0.css","./ErrorBlock-20da7d1b.css","./TagList-d344db8e.css","./StatusBadge-5ec121ec.css","./DataOverview-9f4484cf.css"],import.meta.url)},{path:"/mesh",name:"mesh-index-view",component:()=>V(()=>import("./MeshView-cc69177c.js"),["./RouteView-a4ddf9f0.css","./NavTabs-423b9d69.css"],import.meta.url),redirect:()=>({name:"mesh-list-view"}),children:[{path:":mesh",name:"mesh-abstract-view",redirect:()=>({name:"mesh-detail-view"}),component:()=>V(()=>import("./MeshItemView-3c513e41.js"),["./RouteView-a4ddf9f0.css"],import.meta.url),children:[{path:"",name:"mesh-detail-view",redirect:()=>({name:"mesh-overview-view"}),children:[{path:"overview",meta:{module:"meshes"},name:"mesh-overview-view",component:()=>V(()=>import("./MeshOverviewView-8ab8db38.js"),["./RouteView-a4ddf9f0.css","./DefinitionListItem-6e5e5d2b.css","./MeshResources-e8681616.css","./CodeBlock-7d9027b4.css","./TextWithCopyButton-b78c7a80.css","./ErrorBlock-20da7d1b.css","./MeshOverviewView-9b45c9e6.css"],import.meta.url)},...e.items("services"),...t.items("gateways"),...n.items("data-planes"),...r.items("policies")]},...e.item("service"),...t.item("gateway"),...n.item("data-plane"),...r.item("policy")]}]}],Ap=()=>[{path:"/onboarding",redirect:{name:"onboarding-welcome"},component:()=>V(()=>import("./OnboardingView-ccceb63a.js"),["./RouteView-a4ddf9f0.css"],import.meta.url),children:[{path:"welcome",name:"onboarding-welcome",meta:{onboardingProcess:!0},component:()=>V(()=>import("./WelcomeView-4aafe261.js"),["./RouteView-a4ddf9f0.css","./OnboardingPage-0e794a51.css","./WelcomeView-cf973e31.css"],import.meta.url)},{path:"deployment-types",name:"onboarding-deployment-types",meta:{onboardingProcess:!0},component:()=>V(()=>import("./DeploymentTypes-ca80a523.js"),["./RouteView-a4ddf9f0.css","./OnboardingPage-0e794a51.css","./DeploymentTypes-6867b00d.css"],import.meta.url)},{path:"configuration-types",name:"onboarding-configuration-types",meta:{onboardingProcess:!0},component:()=>V(()=>import("./ConfigurationTypes-20eb961f.js"),["./RouteView-a4ddf9f0.css","./OnboardingPage-0e794a51.css","./ConfigurationTypes-0562ce30.css"],import.meta.url)},{path:"multi-zone",name:"onboarding-multi-zone",meta:{onboardingProcess:!0},component:()=>V(()=>import("./MultiZoneView-538bb97d.js"),["./RouteView-a4ddf9f0.css","./LoadingBox-0bc10551.css","./OnboardingPage-0e794a51.css","./MultiZoneView-15591d17.css"],import.meta.url)},{path:"create-mesh",name:"onboarding-create-mesh",meta:{onboardingProcess:!0},component:()=>V(()=>import("./CreateMesh-f549366f.js"),["./RouteView-a4ddf9f0.css","./OnboardingPage-0e794a51.css","./CreateMesh-f600c80c.css"],import.meta.url)},{path:"add-services",name:"onboarding-add-services",meta:{onboardingProcess:!0},component:()=>V(()=>import("./AddNewServices-265b0844.js"),["./RouteView-a4ddf9f0.css","./OnboardingPage-0e794a51.css","./AddNewServices-18cc19e5.css"],import.meta.url)},{path:"add-services-code",name:"onboarding-add-services-code",meta:{onboardingProcess:!0},component:()=>V(()=>import("./AddNewServicesCode-fe7f1ba7.js"),["./RouteView-a4ddf9f0.css","./LoadingBox-0bc10551.css","./OnboardingPage-0e794a51.css","./CodeBlock-7d9027b4.css","./AddNewServicesCode-a8a2e964.css"],import.meta.url)},{path:"dataplanes-overview",name:"onboarding-dataplanes-overview",meta:{onboardingProcess:!0},component:()=>V(()=>import("./DataplanesOverview-97eec9f8.js"),["./RouteView-a4ddf9f0.css","./LoadingBox-0bc10551.css","./OnboardingPage-0e794a51.css","./StatusBadge-5ec121ec.css","./DataplanesOverview-c522ab1f.css"],import.meta.url)},{path:"completed",name:"onboarding-completed",meta:{onboardingProcess:!0},component:()=>V(()=>import("./CompletedView-260b6b34.js"),["./RouteView-a4ddf9f0.css","./OnboardingPage-0e794a51.css","./CompletedView-b2f4845a.css"],import.meta.url)}]}],wp=e=>({items:(n="policies")=>[{path:`${n}`,name:`${n}-abstract-view`,meta:{module:"policies"},redirect:()=>({name:"policies"}),children:[{path:"",name:`${n}`,redirect:r=>{let s=e.state.policyTypes.find(i=>i.name in e.state.sidebar.insights.mesh.policies?e.state.sidebar.insights.mesh.policies[i.name]!==0:!1);return s===void 0&&(s=e.state.policyTypes[0]),s===void 0?{name:"home"}:{...r,params:{...r.params,policyPath:s.path},name:"policies-list-view"}},children:[{path:":policyPath",name:`${n}-list-view`,component:()=>V(()=>import("./PolicyListView-25092e07.js"),["./RouteView-a4ddf9f0.css","./ErrorBlock-20da7d1b.css","./CodeBlock-7d9027b4.css","./TextWithCopyButton-b78c7a80.css","./TabsWidget-85bac09e.css","./TagList-d344db8e.css","./StatusBadge-5ec121ec.css","./DataOverview-9f4484cf.css","./PolicyListView-1703e6b7.css"],import.meta.url),props:r=>({policyPath:r.params.policyPath,selectedPolicyName:r.query.policy,offset:Tt(r.query.offset)})}]}]}],item:(n="policy")=>[{path:`${n}`,name:`${n}-abstract-view`,meta:{module:"policies"},redirect:()=>({name:"policies"}),children:[{path:`${n==="policy"?":policyPath/":""}:policy`,name:`${n}-detail-view`,props:r=>({mesh:r.params.mesh,policyPath:r.params.policyPath,policyName:r.params.policy}),component:()=>V(()=>import("./PolicyDetailView-16b5de61.js"),["./RouteView-a4ddf9f0.css","./ErrorBlock-20da7d1b.css","./CodeBlock-7d9027b4.css","./TextWithCopyButton-b78c7a80.css","./TabsWidget-85bac09e.css"],import.meta.url)}]}]}),Op=()=>({items:(t="services")=>[{path:`${t}`,name:`${t}-abstract-view`,meta:{module:"services"},redirect:()=>({name:"services-list-view"}),children:[{path:"",name:`${t}-list-view`,props:n=>({selectedServiceName:n.query.service,offset:Tt(n.query.offset)}),component:()=>V(()=>import("./ServiceListView-ff737e10.js"),["./RouteView-a4ddf9f0.css","./DefinitionListItem-6e5e5d2b.css","./CodeBlock-7d9027b4.css","./TextWithCopyButton-b78c7a80.css","./ErrorBlock-20da7d1b.css","./StatusBadge-5ec121ec.css","./TagList-d344db8e.css","./ServiceSummary-c00b423e.css","./ContentWrapper-bdb64c5c.css","./DataOverview-9f4484cf.css"],import.meta.url)}]}],item:(t="")=>[{path:`${t}`,name:`${t}-abstract-view`,meta:{module:"services"},redirect:()=>({name:"services-list-view"}),children:[{path:":service",name:`${t}-detail-view`,component:()=>V(()=>import("./ServiceDetailView-7e4e08d0.js"),["./RouteView-a4ddf9f0.css","./DefinitionListItem-6e5e5d2b.css","./CodeBlock-7d9027b4.css","./TextWithCopyButton-b78c7a80.css","./ErrorBlock-20da7d1b.css","./StatusBadge-5ec121ec.css","./TagList-d344db8e.css","./ServiceSummary-c00b423e.css","./ContentWrapper-bdb64c5c.css","./DataOverview-9f4484cf.css","./DataPlaneList-28426d93.css"],import.meta.url)}]}]}),Rp=()=>[{path:"/wizard",name:"wizard",children:[{path:"mesh",name:"create-mesh",component:()=>V(()=>import("./MeshWizard-54876954.js"),["./RouteView-a4ddf9f0.css","./StepSkeleton-53636aa6.css","./CodeBlock-7d9027b4.css","./ErrorBlock-20da7d1b.css","./TabsWidget-85bac09e.css","./MeshWizard-97c77108.css"],import.meta.url)},{path:"kubernetes-dataplane",name:"kubernetes-dataplane",component:()=>V(()=>import("./DataplaneKubernetes-aa737671.js"),["./RouteView-a4ddf9f0.css","./EnvironmentSwitcher-c3d33458.css","./StepSkeleton-53636aa6.css","./CodeBlock-7d9027b4.css","./DataplaneKubernetes-3cc5ca78.css"],import.meta.url)},{path:"universal-dataplane",name:"universal-dataplane",component:()=>V(()=>import("./DataplaneUniversal-46f8ccd0.js"),["./RouteView-a4ddf9f0.css","./EnvironmentSwitcher-c3d33458.css","./StepSkeleton-53636aa6.css","./CodeBlock-7d9027b4.css","./DataplaneUniversal-9bff3173.css"],import.meta.url)}]}],Cp=()=>[{path:"/zones/create",name:"zone-create-view",meta:{isWizard:!0},component:()=>V(()=>import("./ZoneCreateView-21900b7d.js"),["./CodeBlock-7d9027b4.css","./RouteView-a4ddf9f0.css","./ErrorBlock-20da7d1b.css","./ZoneCreateView-3e1a25f1.css"],import.meta.url)}],Pp=e=>[...e,{path:"/zones",name:"zone-index-view",component:()=>V(()=>import("./ZoneIndexView-465b2744.js"),["./RouteView-a4ddf9f0.css","./NavTabs-423b9d69.css"],import.meta.url),redirect:()=>({name:"zone-cp-list-view"}),children:[{path:"zone-cps",name:"zone-cp-abstract-view",meta:{module:"zone-cps"},children:[{path:"",name:"zone-cp-list-view",props:t=>({selectedZoneName:t.query.zone,offset:Tt(t.query.offset)}),component:()=>V(()=>import("./ZoneListView-7b303aba.js"),["./RouteView-a4ddf9f0.css","./CodeBlock-7d9027b4.css","./DefinitionListItem-6e5e5d2b.css","./SubscriptionHeader-2fff9bdf.css","./ErrorBlock-20da7d1b.css","./TabsWidget-85bac09e.css","./TextWithCopyButton-b78c7a80.css","./TagList-d344db8e.css","./StatusBadge-5ec121ec.css","./DataOverview-9f4484cf.css"],import.meta.url)},{path:":zone",name:"zone-cp-detail-view",component:()=>V(()=>import("./ZoneDetailView-731aea0c.js"),["./RouteView-a4ddf9f0.css","./CodeBlock-7d9027b4.css","./DefinitionListItem-6e5e5d2b.css","./SubscriptionHeader-2fff9bdf.css","./ErrorBlock-20da7d1b.css","./TabsWidget-85bac09e.css","./TextWithCopyButton-b78c7a80.css"],import.meta.url)}]},{path:"zone-ingresses",name:"zone-ingress-abstract-view",meta:{module:"zone-ingresses"},children:[{path:"",name:"zone-ingress-list-view",props:t=>({selectedZoneIngressName:t.query.zoneIngress,offset:Tt(t.query.offset)}),component:()=>V(()=>import("./ZoneIngressListView-5c318f09.js"),["./RouteView-a4ddf9f0.css","./DefinitionListItem-6e5e5d2b.css","./CodeBlock-7d9027b4.css","./ErrorBlock-20da7d1b.css","./EnvoyData-5367f20b.css","./SubscriptionHeader-2fff9bdf.css","./TabsWidget-85bac09e.css","./TextWithCopyButton-b78c7a80.css","./TagList-d344db8e.css","./StatusBadge-5ec121ec.css","./DataOverview-9f4484cf.css"],import.meta.url)},{path:":zoneIngress",name:"zone-ingress-detail-view",component:()=>V(()=>import("./ZoneIngressDetailView-d8ed0648.js"),["./RouteView-a4ddf9f0.css","./DefinitionListItem-6e5e5d2b.css","./CodeBlock-7d9027b4.css","./ErrorBlock-20da7d1b.css","./EnvoyData-5367f20b.css","./SubscriptionHeader-2fff9bdf.css","./TabsWidget-85bac09e.css","./TextWithCopyButton-b78c7a80.css"],import.meta.url)}]},{path:"zone-egresses",name:"zone-egress-abstract-view",meta:{module:"zone-egresses"},children:[{path:"",name:"zone-egress-list-view",props:t=>({selectedZoneEgressName:t.query.zoneEgress,offset:Tt(t.query.offset)}),component:()=>V(()=>import("./ZoneEgressListView-29eeb14f.js"),["./RouteView-a4ddf9f0.css","./DefinitionListItem-6e5e5d2b.css","./CodeBlock-7d9027b4.css","./ErrorBlock-20da7d1b.css","./EnvoyData-5367f20b.css","./SubscriptionHeader-2fff9bdf.css","./TabsWidget-85bac09e.css","./TextWithCopyButton-b78c7a80.css","./TagList-d344db8e.css","./StatusBadge-5ec121ec.css","./DataOverview-9f4484cf.css"],import.meta.url)},{path:":zoneEgress",name:"zone-egress-detail-view",component:()=>V(()=>import("./ZoneEgressDetailView-445e52fe.js"),["./RouteView-a4ddf9f0.css","./DefinitionListItem-6e5e5d2b.css","./CodeBlock-7d9027b4.css","./ErrorBlock-20da7d1b.css","./EnvoyData-5367f20b.css","./SubscriptionHeader-2fff9bdf.css","./TabsWidget-85bac09e.css","./TextWithCopyButton-b78c7a80.css"],import.meta.url)}]}]}],Np={common:{product:{name:"Kuma"},copyText:"Copy",copySuccessText:"Copied!",copyKubernetesText:"Copy as Kubernetes",copyKubernetesShortText:"as k8s",emptyState:{title:"No data",message:"There are no {type} present."},charts:{dataPlaneProxies:{title:"DP Proxies"},envoy:{title:"Envoy",subtitle:"versions"},kumaDp:{title:"Kuma DP",subtitle:"versions"},meshes:{title:"Meshes",meshLabel:"Mesh"},services:{title:"Services",internalLabel:"Internal",externalLabel:"External"},zoneCps:{title:"Zone CP",subtitle:"versions"},zones:{title:"Zones"}}}},Lp={components:{"route-view":{title:"{name} Manager","route-announcer":"Navigated to {title}"}}},Mp={http:{api:{property:{mtls:"mTLS",mTLS:"mTLS",globalInstanceId:"Global instance ID",controlPlaneInstanceId:"CP instance ID",connectTime:"Last connected",disconnectTime:"Disconnect time",cds:"CDS",eds:"EDS",lds:"LDS",rds:"RDS",responsesSent:"Responses sent",responsesAcknowledged:"Responses acknowledged",responsesRejected:"Responses rejected",certificateExpirationTime:"Expiration time",lastCertificateRegeneration:"Last generated",certificateRegenerations:"Regenerations"},value:{online:"online",offline:"offline",partiallyDegraded:"partially degraded",partially_degraded:"partially degraded",notAvailable:"information not available",not_available:"information not available"}}}},Dp={"data-planes":{routes:{item:{title:"Data plane proxy",breadcrumbs:"Data plane proxies"},items:{title:"Data plane proxies"}}}},Hp={diagnostics:{routes:{item:{title:"Diagnostics",breadcrumbs:"Diagnostics"}}}},Bp={gateways:{routes:{item:{title:"Gateway",breadcrumbs:"Gateways"},items:{title:"Gateways"}}}},xp={"main-overview":{routes:{item:{title:"Overview"}}}},Up={meshes:{routes:{item:{title:"{name}",breadcrumbs:"Meshes",navigation:{"mesh-overview-view":"Overview","services-abstract-view":"Services","data-planes-abstract-view":"Data Plane Proxies","gateways-abstract-view":"Gateways","policies-abstract-view":"Policies"}},items:{title:"Meshes",breadcrumbs:"Meshes"},overview:{title:"Mesh overview"}}}},Fp={onboarding:{routes:{welcome:{title:"Welcome to {name}!"},"deployment-types":{title:"Deployment Types"},"configuration-types":{title:"Configuration Types"},multizone:{title:"Multizone"},"create-mesh":{title:"Create the Mesh"},"add-services":{title:"Add new services"},"add-services-code":{title:"Add new services"},"dataplanes-overview":{title:"Data plane overview"},completed:{title:"Completed"}}}},kp={policies:{routes:{item:{title:"Policy",breadcrumbs:"Policies"},items:{title:"{name}"}}}},$p={services:{routes:{item:{title:"Service",breadcrumbs:"Services"},items:{title:"Services"}}}},Gp={"wizard-mesh":{routes:{item:{title:"Create a new mesh"}}},"wizard-universal":{routes:{item:{title:"Create a new data plane proxy on Universal"}}},"wizard-kubernetes":{routes:{item:{title:"Create a new data plane proxy on Kubernetes"}}}},jp={"zone-ingresses":{routes:{item:{title:"Zone Ingress",breadcrumbs:"Zone Ingresses"},items:{title:"Zone Ingresses",breadcrumbs:"Zone Ingresses"}}},"zone-egresses":{routes:{item:{title:"Zone Egress",breadcrumbs:"Zone Egresses"},items:{title:"Zone Egresses",breadcrumbs:"Zone Egresses"}}},zones:{routes:{create:{title:"Create & connect Zone"},items:{breadcrumbs:"Zones",navigation:{"zone-cp-list-view":"Zone CPs","zone-ingress-list-view":"Zone Ingresses","zone-egress-list-view":"Zone Egresses"}}},form:{exit:"Exit",nameLabel:"Name",createZoneButtonLabel:"Create Zone & generate token",environmentLabel:"Environment",universalLabel:"Universal",kubernetesLabel:"Kubernetes",zoneIngressLabel:"Zone Ingress",zoneIngressEnabledLabel:"Enabled",zoneEgressLabel:"Zone Egress",zoneEgressEnabledLabel:"Enabled",connectZone:"Connect Zone",scan:{waitTitle:"Waiting for Zone to be connected …",completeTitle:"Done!",completeDescription:"The Zone “{name}” is now connected.",completeButtonLabel:"Go to Zone “{name}”",errorTitle:"Could not connect Zone",errorDescription:"We were unable to connect Zone."},universal:{saveToken:{title:"Save token",saveTokenDescription:"Save the token to a file.",saveTokenCommand:`mkdir -p ~/kuma-cp \\ + */const Xt=typeof window<"u";function uh(e){return e.__esModule||e[Symbol.toStringTag]==="Module"}const ee=Object.assign;function Vr(e,t){const n={};for(const r in t){const s=t[r];n[r]=je(s)?s.map(e):e(s)}return n}const wn=()=>{},je=Array.isArray,fh=/\/$/,hh=e=>e.replace(fh,"");function Kr(e,t,n="/"){let r,s={},i="",o="";const a=t.indexOf("#");let l=t.indexOf("?");return a=0&&(l=-1),l>-1&&(r=t.slice(0,l),i=t.slice(l+1,a>-1?a:t.length),s=e(i)),a>-1&&(r=r||t.slice(0,a),o=t.slice(a,t.length)),r=gh(r??t,n),{fullPath:r+(i&&"?")+i+o,path:r,query:s,hash:o}}function ph(e,t){const n=t.query?e(t.query):"";return t.path+(n&&"?")+n+(t.hash||"")}function Qi(e,t){return!t||!e.toLowerCase().startsWith(t.toLowerCase())?e:e.slice(t.length)||"/"}function dh(e,t,n){const r=t.matched.length-1,s=n.matched.length-1;return r>-1&&r===s&&an(t.matched[r],n.matched[s])&&nl(t.params,n.params)&&e(t.query)===e(n.query)&&t.hash===n.hash}function an(e,t){return(e.aliasOf||e)===(t.aliasOf||t)}function nl(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(const n in e)if(!mh(e[n],t[n]))return!1;return!0}function mh(e,t){return je(e)?Ji(e,t):je(t)?Ji(t,e):e===t}function Ji(e,t){return je(t)?e.length===t.length&&e.every((n,r)=>n===t[r]):e.length===1&&e[0]===t}function gh(e,t){if(e.startsWith("/"))return e;if(!e)return t;const n=t.split("/"),r=e.split("/"),s=r[r.length-1];(s===".."||s===".")&&r.push("");let i=n.length-1,o,a;for(o=0;o1&&i--;else break;return n.slice(0,i).join("/")+"/"+r.slice(o-(o===r.length?1:0)).join("/")}var Bn;(function(e){e.pop="pop",e.push="push"})(Bn||(Bn={}));var On;(function(e){e.back="back",e.forward="forward",e.unknown=""})(On||(On={}));function Eh(e){if(!e)if(Xt){const t=document.querySelector("base");e=t&&t.getAttribute("href")||"/",e=e.replace(/^\w+:\/\/[^\/]+/,"")}else e="/";return e[0]!=="/"&&e[0]!=="#"&&(e="/"+e),hh(e)}const vh=/^[^#]+#/;function _h(e,t){return e.replace(vh,"#")+t}function yh(e,t){const n=document.documentElement.getBoundingClientRect(),r=e.getBoundingClientRect();return{behavior:t.behavior,left:r.left-n.left-(t.left||0),top:r.top-n.top-(t.top||0)}}const Mr=()=>({left:window.pageXOffset,top:window.pageYOffset});function bh(e){let t;if("el"in e){const n=e.el,r=typeof n=="string"&&n.startsWith("#"),s=typeof n=="string"?r?document.getElementById(n.slice(1)):document.querySelector(n):n;if(!s)return;t=yh(s,e)}else t=e;"scrollBehavior"in document.documentElement.style?window.scrollTo(t):window.scrollTo(t.left!=null?t.left:window.pageXOffset,t.top!=null?t.top:window.pageYOffset)}function eo(e,t){return(history.state?history.state.position-t:-1)+e}const ds=new Map;function Th(e,t){ds.set(e,t)}function Ih(e){const t=ds.get(e);return ds.delete(e),t}let Sh=()=>location.protocol+"//"+location.host;function rl(e,t){const{pathname:n,search:r,hash:s}=t,i=e.indexOf("#");if(i>-1){let a=s.includes(e.slice(i))?e.slice(i).length:1,l=s.slice(a);return l[0]!=="/"&&(l="/"+l),Qi(l,"")}return Qi(n,e)+r+s}function Ah(e,t,n,r){let s=[],i=[],o=null;const a=({state:h})=>{const g=rl(e,location),y=n.value,T=t.value;let C=0;if(h){if(n.value=g,t.value=h,o&&o===y){o=null;return}C=T?h.position-T.position:0}else r(g);s.forEach(A=>{A(n.value,y,{delta:C,type:Bn.pop,direction:C?C>0?On.forward:On.back:On.unknown})})};function l(){o=n.value}function c(h){s.push(h);const g=()=>{const y=s.indexOf(h);y>-1&&s.splice(y,1)};return i.push(g),g}function u(){const{history:h}=window;h.state&&h.replaceState(ee({},h.state,{scroll:Mr()}),"")}function f(){for(const h of i)h();i=[],window.removeEventListener("popstate",a),window.removeEventListener("beforeunload",u)}return window.addEventListener("popstate",a),window.addEventListener("beforeunload",u,{passive:!0}),{pauseListeners:l,listen:c,destroy:f}}function to(e,t,n,r=!1,s=!1){return{back:e,current:t,forward:n,replaced:r,position:window.history.length,scroll:s?Mr():null}}function wh(e){const{history:t,location:n}=window,r={value:rl(e,n)},s={value:t.state};s.value||i(r.value,{back:null,current:r.value,forward:null,position:t.length-1,replaced:!0,scroll:null},!0);function i(l,c,u){const f=e.indexOf("#"),h=f>-1?(n.host&&document.querySelector("base")?e:e.slice(f))+l:Sh()+e+l;try{t[u?"replaceState":"pushState"](c,"",h),s.value=c}catch(g){console.error(g),n[u?"replace":"assign"](h)}}function o(l,c){const u=ee({},t.state,to(s.value.back,l,s.value.forward,!0),c,{position:s.value.position});i(l,u,!0),r.value=l}function a(l,c){const u=ee({},s.value,t.state,{forward:l,scroll:Mr()});i(u.current,u,!0);const f=ee({},to(r.value,l,null),{position:u.position+1},c);i(l,f,!1),r.value=l}return{location:r,state:s,push:a,replace:o}}function Oh(e){e=Eh(e);const t=wh(e),n=Ah(e,t.state,t.location,t.replace);function r(i,o=!0){o||n.pauseListeners(),history.go(i)}const s=ee({location:"",base:e,go:r,createHref:_h.bind(null,e)},t,n);return Object.defineProperty(s,"location",{enumerable:!0,get:()=>t.location.value}),Object.defineProperty(s,"state",{enumerable:!0,get:()=>t.state.value}),s}function Rh(e){return typeof e=="string"||e&&typeof e=="object"}function sl(e){return typeof e=="string"||typeof e=="symbol"}const gt={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0},il=Symbol("");var no;(function(e){e[e.aborted=4]="aborted",e[e.cancelled=8]="cancelled",e[e.duplicated=16]="duplicated"})(no||(no={}));function ln(e,t){return ee(new Error,{type:e,[il]:!0},t)}function st(e,t){return e instanceof Error&&il in e&&(t==null||!!(e.type&t))}const ro="[^/]+?",Ch={sensitive:!1,strict:!1,start:!0,end:!0},Ph=/[.+*?^${}()[\]/\\]/g;function Nh(e,t){const n=ee({},Ch,t),r=[];let s=n.start?"^":"";const i=[];for(const c of e){const u=c.length?[]:[90];n.strict&&!c.length&&(s+="/");for(let f=0;ft.length?t.length===1&&t[0]===40+40?1:-1:0}function Mh(e,t){let n=0;const r=e.score,s=t.score;for(;n0&&t[t.length-1]<0}const Dh={type:0,value:""},Hh=/[a-zA-Z0-9_]/;function Bh(e){if(!e)return[[]];if(e==="/")return[[Dh]];if(!e.startsWith("/"))throw new Error(`Invalid path "${e}"`);function t(g){throw new Error(`ERR (${n})/"${c}": ${g}`)}let n=0,r=n;const s=[];let i;function o(){i&&s.push(i),i=[]}let a=0,l,c="",u="";function f(){c&&(n===0?i.push({type:0,value:c}):n===1||n===2||n===3?(i.length>1&&(l==="*"||l==="+")&&t(`A repeatable param (${c}) must be alone in its segment. eg: '/:ids+.`),i.push({type:1,value:c,regexp:u,repeatable:l==="*"||l==="+",optional:l==="*"||l==="?"})):t("Invalid state to consume buffer"),c="")}function h(){c+=l}for(;a{o(P)}:wn}function o(u){if(sl(u)){const f=r.get(u);f&&(r.delete(u),n.splice(n.indexOf(f),1),f.children.forEach(o),f.alias.forEach(o))}else{const f=n.indexOf(u);f>-1&&(n.splice(f,1),u.record.name&&r.delete(u.record.name),u.children.forEach(o),u.alias.forEach(o))}}function a(){return n}function l(u){let f=0;for(;f=0&&(u.record.path!==n[f].record.path||!ol(u,n[f]));)f++;n.splice(f,0,u),u.record.name&&!oo(u)&&r.set(u.record.name,u)}function c(u,f){let h,g={},y,T;if("name"in u&&u.name){if(h=r.get(u.name),!h)throw ln(1,{location:u});T=h.record.name,g=ee(io(f.params,h.keys.filter(P=>!P.optional).map(P=>P.name)),u.params&&io(u.params,h.keys.map(P=>P.name))),y=h.stringify(g)}else if("path"in u)y=u.path,h=n.find(P=>P.re.test(y)),h&&(g=h.parse(y),T=h.record.name);else{if(h=f.name?r.get(f.name):n.find(P=>P.re.test(f.path)),!h)throw ln(1,{location:u,currentLocation:f});T=h.record.name,g=ee({},f.params,u.params),y=h.stringify(g)}const C=[];let A=h;for(;A;)C.unshift(A.record),A=A.parent;return{name:T,path:y,params:g,matched:C,meta:$h(C)}}return e.forEach(u=>i(u)),{addRoute:i,resolve:c,removeRoute:o,getRoutes:a,getRecordMatcher:s}}function io(e,t){const n={};for(const r of t)r in e&&(n[r]=e[r]);return n}function Fh(e){return{path:e.path,redirect:e.redirect,name:e.name,meta:e.meta||{},aliasOf:void 0,beforeEnter:e.beforeEnter,props:kh(e),children:e.children||[],instances:{},leaveGuards:new Set,updateGuards:new Set,enterCallbacks:{},components:"components"in e?e.components||null:e.component&&{default:e.component}}}function kh(e){const t={},n=e.props||!1;if("component"in e)t.default=n;else for(const r in e.components)t[r]=typeof n=="boolean"?n:n[r];return t}function oo(e){for(;e;){if(e.record.aliasOf)return!0;e=e.parent}return!1}function $h(e){return e.reduce((t,n)=>ee(t,n.meta),{})}function ao(e,t){const n={};for(const r in e)n[r]=r in t?t[r]:e[r];return n}function ol(e,t){return t.children.some(n=>n===e||ol(e,n))}const al=/#/g,Gh=/&/g,jh=/\//g,Vh=/=/g,Kh=/\?/g,ll=/\+/g,zh=/%5B/g,Zh=/%5D/g,cl=/%5E/g,Wh=/%60/g,ul=/%7B/g,Xh=/%7C/g,fl=/%7D/g,qh=/%20/g;function ei(e){return encodeURI(""+e).replace(Xh,"|").replace(zh,"[").replace(Zh,"]")}function Yh(e){return ei(e).replace(ul,"{").replace(fl,"}").replace(cl,"^")}function ms(e){return ei(e).replace(ll,"%2B").replace(qh,"+").replace(al,"%23").replace(Gh,"%26").replace(Wh,"`").replace(ul,"{").replace(fl,"}").replace(cl,"^")}function Qh(e){return ms(e).replace(Vh,"%3D")}function Jh(e){return ei(e).replace(al,"%23").replace(Kh,"%3F")}function ep(e){return e==null?"":Jh(e).replace(jh,"%2F")}function Er(e){try{return decodeURIComponent(""+e)}catch{}return""+e}function tp(e){const t={};if(e===""||e==="?")return t;const r=(e[0]==="?"?e.slice(1):e).split("&");for(let s=0;si&&ms(i)):[r&&ms(r)]).forEach(i=>{i!==void 0&&(t+=(t.length?"&":"")+n,i!=null&&(t+="="+i))})}return t}function np(e){const t={};for(const n in e){const r=e[n];r!==void 0&&(t[n]=je(r)?r.map(s=>s==null?null:""+s):r==null?r:""+r)}return t}const rp=Symbol(""),co=Symbol(""),Dr=Symbol(""),ti=Symbol(""),gs=Symbol("");function vn(){let e=[];function t(r){return e.push(r),()=>{const s=e.indexOf(r);s>-1&&e.splice(s,1)}}function n(){e=[]}return{add:t,list:()=>e,reset:n}}function vt(e,t,n,r,s){const i=r&&(r.enterCallbacks[s]=r.enterCallbacks[s]||[]);return()=>new Promise((o,a)=>{const l=f=>{f===!1?a(ln(4,{from:n,to:t})):f instanceof Error?a(f):Rh(f)?a(ln(2,{from:t,to:f})):(i&&r.enterCallbacks[s]===i&&typeof f=="function"&&i.push(f),o())},c=e.call(r&&r.instances[s],t,n,l);let u=Promise.resolve(c);e.length<3&&(u=u.then(l)),u.catch(f=>a(f))})}function zr(e,t,n,r){const s=[];for(const i of e)for(const o in i.components){let a=i.components[o];if(!(t!=="beforeRouteEnter"&&!i.instances[o]))if(sp(a)){const c=(a.__vccOpts||a)[t];c&&s.push(vt(c,n,r,i,o))}else{let l=a();s.push(()=>l.then(c=>{if(!c)return Promise.reject(new Error(`Couldn't resolve component "${o}" at "${i.path}"`));const u=uh(c)?c.default:c;i.components[o]=u;const h=(u.__vccOpts||u)[t];return h&&vt(h,n,r,i,o)()}))}}return s}function sp(e){return typeof e=="object"||"displayName"in e||"props"in e||"__vccOpts"in e}function uo(e){const t=Ge(Dr),n=Ge(ti),r=Le(()=>t.resolve(Jt(e.to))),s=Le(()=>{const{matched:l}=r.value,{length:c}=l,u=l[c-1],f=n.matched;if(!u||!f.length)return-1;const h=f.findIndex(an.bind(null,u));if(h>-1)return h;const g=fo(l[c-2]);return c>1&&fo(u)===g&&f[f.length-1].path!==g?f.findIndex(an.bind(null,l[c-2])):h}),i=Le(()=>s.value>-1&&lp(n.params,r.value.params)),o=Le(()=>s.value>-1&&s.value===n.matched.length-1&&nl(n.params,r.value.params));function a(l={}){return ap(l)?t[Jt(e.replace)?"replace":"push"](Jt(e.to)).catch(wn):Promise.resolve()}return{route:r,href:Le(()=>r.value.href),isActive:i,isExactActive:o,navigate:a}}const ip=ya({name:"RouterLink",compatConfig:{MODE:3},props:{to:{type:[String,Object],required:!0},replace:Boolean,activeClass:String,exactActiveClass:String,custom:Boolean,ariaCurrentValue:{type:String,default:"page"}},useLink:uo,setup(e,{slots:t}){const n=pn(uo(e)),{options:r}=Ge(Dr),s=Le(()=>({[ho(e.activeClass,r.linkActiveClass,"router-link-active")]:n.isActive,[ho(e.exactActiveClass,r.linkExactActiveClass,"router-link-exact-active")]:n.isExactActive}));return()=>{const i=t.default&&t.default(n);return e.custom?i:qs("a",{"aria-current":n.isExactActive?e.ariaCurrentValue:null,href:n.href,onClick:n.navigate,class:s.value},i)}}}),op=ip;function ap(e){if(!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)&&!e.defaultPrevented&&!(e.button!==void 0&&e.button!==0)){if(e.currentTarget&&e.currentTarget.getAttribute){const t=e.currentTarget.getAttribute("target");if(/\b_blank\b/i.test(t))return}return e.preventDefault&&e.preventDefault(),!0}}function lp(e,t){for(const n in t){const r=t[n],s=e[n];if(typeof r=="string"){if(r!==s)return!1}else if(!je(s)||s.length!==r.length||r.some((i,o)=>i!==s[o]))return!1}return!0}function fo(e){return e?e.aliasOf?e.aliasOf.path:e.path:""}const ho=(e,t,n)=>e??t??n,cp=ya({name:"RouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object},compatConfig:{MODE:3},setup(e,{attrs:t,slots:n}){const r=Ge(gs),s=Le(()=>e.route||r.value),i=Ge(co,0),o=Le(()=>{let c=Jt(i);const{matched:u}=s.value;let f;for(;(f=u[c])&&!f.components;)c++;return c}),a=Le(()=>s.value.matched[o.value]);sr(co,Le(()=>o.value+1)),sr(rp,a),sr(gs,s);const l=zc();return tn(()=>[l.value,a.value,e.name],([c,u,f],[h,g,y])=>{u&&(u.instances[f]=c,g&&g!==u&&c&&c===h&&(u.leaveGuards.size||(u.leaveGuards=g.leaveGuards),u.updateGuards.size||(u.updateGuards=g.updateGuards))),c&&u&&(!g||!an(u,g)||!h)&&(u.enterCallbacks[f]||[]).forEach(T=>T(c))},{flush:"post"}),()=>{const c=s.value,u=e.name,f=a.value,h=f&&f.components[u];if(!h)return po(n.default,{Component:h,route:c});const g=f.props[u],y=g?g===!0?c.params:typeof g=="function"?g(c):g:null,C=qs(h,ee({},y,t,{onVnodeUnmounted:A=>{A.component.isUnmounted&&(f.instances[u]=null)},ref:l}));return po(n.default,{Component:C,route:c})||C}}});function po(e,t){if(!e)return null;const n=e(t);return n.length===1?n[0]:n}const up=cp;function fp(e){const t=Uh(e.routes,e),n=e.parseQuery||tp,r=e.stringifyQuery||lo,s=e.history,i=vn(),o=vn(),a=vn(),l=Zc(gt);let c=gt;Xt&&e.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const u=Vr.bind(null,v=>""+v),f=Vr.bind(null,ep),h=Vr.bind(null,Er);function g(v,N){let O,B;return sl(v)?(O=t.getRecordMatcher(v),B=N):B=v,t.addRoute(B,O)}function y(v){const N=t.getRecordMatcher(v);N&&t.removeRoute(N)}function T(){return t.getRoutes().map(v=>v.record)}function C(v){return!!t.getRecordMatcher(v)}function A(v,N){if(N=ee({},N||l.value),typeof v=="string"){const m=Kr(n,v,N.path),E=t.resolve({path:m.path},N),_=s.createHref(m.fullPath);return ee(m,E,{params:h(E.params),hash:Er(m.hash),redirectedFrom:void 0,href:_})}let O;if("path"in v)O=ee({},v,{path:Kr(n,v.path,N.path).path});else{const m=ee({},v.params);for(const E in m)m[E]==null&&delete m[E];O=ee({},v,{params:f(m)}),N.params=f(N.params)}const B=t.resolve(O,N),Q=v.hash||"";B.params=u(h(B.params));const p=ph(r,ee({},v,{hash:Yh(Q),path:B.path})),d=s.createHref(p);return ee({fullPath:p,hash:Q,query:r===lo?np(v.query):v.query||{}},B,{redirectedFrom:void 0,href:d})}function P(v){return typeof v=="string"?Kr(n,v,l.value.path):ee({},v)}function H(v,N){if(c!==v)return ln(8,{from:N,to:v})}function L(v){return me(v)}function Z(v){return L(ee(P(v),{replace:!0}))}function ae(v){const N=v.matched[v.matched.length-1];if(N&&N.redirect){const{redirect:O}=N;let B=typeof O=="function"?O(v):O;return typeof B=="string"&&(B=B.includes("?")||B.includes("#")?B=P(B):{path:B},B.params={}),ee({query:v.query,hash:v.hash,params:"path"in B?{}:v.params},B)}}function me(v,N){const O=c=A(v),B=l.value,Q=v.state,p=v.force,d=v.replace===!0,m=ae(O);if(m)return me(ee(P(m),{state:typeof m=="object"?ee({},Q,m.state):Q,force:p,replace:d}),N||O);const E=O;E.redirectedFrom=N;let _;return!p&&dh(r,B,O)&&(_=ln(16,{to:E,from:B}),ze(B,B,!0,!1)),(_?Promise.resolve(_):te(E,B)).catch(b=>st(b)?st(b,2)?b:ft(b):Y(b,E,B)).then(b=>{if(b){if(st(b,2))return me(ee({replace:d},P(b.to),{state:typeof b.to=="object"?ee({},Q,b.to.state):Q,force:p}),N||E)}else b=D(E,B,!0,d,Q);return ge(E,B,b),b})}function j(v,N){const O=H(v,N);return O?Promise.reject(O):Promise.resolve()}function le(v){const N=jt.values().next().value;return N&&typeof N.runWithContext=="function"?N.runWithContext(v):v()}function te(v,N){let O;const[B,Q,p]=hp(v,N);O=zr(B.reverse(),"beforeRouteLeave",v,N);for(const m of B)m.leaveGuards.forEach(E=>{O.push(vt(E,v,N))});const d=j.bind(null,v,N);return O.push(d),ye(O).then(()=>{O=[];for(const m of i.list())O.push(vt(m,v,N));return O.push(d),ye(O)}).then(()=>{O=zr(Q,"beforeRouteUpdate",v,N);for(const m of Q)m.updateGuards.forEach(E=>{O.push(vt(E,v,N))});return O.push(d),ye(O)}).then(()=>{O=[];for(const m of v.matched)if(m.beforeEnter&&!N.matched.includes(m))if(je(m.beforeEnter))for(const E of m.beforeEnter)O.push(vt(E,v,N));else O.push(vt(m.beforeEnter,v,N));return O.push(d),ye(O)}).then(()=>(v.matched.forEach(m=>m.enterCallbacks={}),O=zr(p,"beforeRouteEnter",v,N),O.push(d),ye(O))).then(()=>{O=[];for(const m of o.list())O.push(vt(m,v,N));return O.push(d),ye(O)}).catch(m=>st(m,8)?m:Promise.reject(m))}function ge(v,N,O){for(const B of a.list())le(()=>B(v,N,O))}function D(v,N,O,B,Q){const p=H(v,N);if(p)return p;const d=N===gt,m=Xt?history.state:{};O&&(B||d?s.replace(v.fullPath,ee({scroll:d&&m&&m.scroll},Q)):s.push(v.fullPath,Q)),l.value=v,ze(v,N,O,d),ft()}let J;function Te(){J||(J=s.listen((v,N,O)=>{if(!Gn.listening)return;const B=A(v),Q=ae(B);if(Q){me(ee(Q,{replace:!0}),B).catch(wn);return}c=B;const p=l.value;Xt&&Th(eo(p.fullPath,O.delta),Mr()),te(B,p).catch(d=>st(d,12)?d:st(d,2)?(me(d.to,B).then(m=>{st(m,20)&&!O.delta&&O.type===Bn.pop&&s.go(-1,!1)}).catch(wn),Promise.reject()):(O.delta&&s.go(-O.delta,!1),Y(d,B,p))).then(d=>{d=d||D(B,p,!1),d&&(O.delta&&!st(d,8)?s.go(-O.delta,!1):O.type===Bn.pop&&st(d,20)&&s.go(-1,!1)),ge(B,p,d)}).catch(wn)}))}let nt=vn(),fe=vn(),se;function Y(v,N,O){ft(v);const B=fe.list();return B.length?B.forEach(Q=>Q(v,N,O)):console.error(v),Promise.reject(v)}function rt(){return se&&l.value!==gt?Promise.resolve():new Promise((v,N)=>{nt.add([v,N])})}function ft(v){return se||(se=!v,Te(),nt.list().forEach(([N,O])=>v?O(v):N()),nt.reset()),v}function ze(v,N,O,B){const{scrollBehavior:Q}=e;if(!Xt||!Q)return Promise.resolve();const p=!O&&Ih(eo(v.fullPath,0))||(B||!O)&&history.state&&history.state.scroll||null;return fa().then(()=>Q(v,N,p)).then(d=>d&&bh(d)).catch(d=>Y(d,v,N))}const we=v=>s.go(v);let Gt;const jt=new Set,Gn={currentRoute:l,listening:!0,addRoute:g,removeRoute:y,hasRoute:C,getRoutes:T,resolve:A,options:e,push:L,replace:Z,go:we,back:()=>we(-1),forward:()=>we(1),beforeEach:i.add,beforeResolve:o.add,afterEach:a.add,onError:fe.add,isReady:rt,install(v){const N=this;v.component("RouterLink",op),v.component("RouterView",up),v.config.globalProperties.$router=N,Object.defineProperty(v.config.globalProperties,"$route",{enumerable:!0,get:()=>Jt(l)}),Xt&&!Gt&&l.value===gt&&(Gt=!0,L(s.location).catch(Q=>{}));const O={};for(const Q in gt)O[Q]=Le(()=>l.value[Q]);v.provide(Dr,N),v.provide(ti,pn(O)),v.provide(gs,l);const B=v.unmount;jt.add(v),v.unmount=function(){jt.delete(v),jt.size<1&&(c=gt,J&&J(),J=null,l.value=gt,Gt=!1,se=!1),B()}}};function ye(v){return v.reduce((N,O)=>N.then(()=>le(O)),Promise.resolve())}return Gn}function hp(e,t){const n=[],r=[],s=[],i=Math.max(t.matched.length,e.matched.length);for(let o=0;oan(c,a))?r.push(a):n.push(a));const l=e.matched[o];l&&(t.matched.find(c=>an(c,l))||s.push(l))}return[n,r,s]}function HE(){return Ge(Dr)}function BE(){return Ge(ti)}class pp{constructor(t){ht(this,"storageAdapter");this.storageAdapter=t}get(t){let n;try{n=this.storageAdapter.getItem(t)}catch{return null}if(n===null||!(n.startsWith("[")||n.startsWith("{")))return n;try{return JSON.parse(n)}catch{return n}}set(t,n){try{const r=typeof n=="string"?n:JSON.stringify(n);this.storageAdapter.setItem(t,r)}catch{}}has(t){try{return this.storageAdapter.getItem(t)!==null}catch{return!1}}remove(t){try{this.storageAdapter.removeItem(t)}catch{}}}const at=new pp(window.localStorage);function hl(e,t,n="/"){const r=fp({history:Oh(n),routes:e});return r.beforeEach(dp()),r.beforeEach(mp(t)),r.beforeEach(gp(t)),r}const dp=()=>(e,t,n)=>{e.fullPath.startsWith("/#/")?n(e.fullPath.substring(2)):n()},mp=e=>(t,n,r)=>{t.params.mesh&&t.params.mesh!==e.state.selectedMesh&&e.dispatch("updateSelectedMesh",t.params.mesh),r()},gp=e=>(t,n,r)=>{const s=e.state.onboarding.isCompleted,i=t.meta.onboardingProcess,o=e.getters.shouldShowOnboardingNotification;s&&i&&!o?r({name:"home"}):!s&&!i&&o?r({name:at.get("onboardingStep")??"onboarding-welcome"}):r()};function Ep(e,t,n){return async r=>{const s=Hf(r),i=await hl(t,n,e("KUMA_BASE_PATH"));return s.use(n,za),s.use(i),s}}function vp(e){return async(t=!0)=>{t?await Promise.all([e.dispatch("bootstrap"),e.dispatch("fetchPolicyTypes")]):e.state.defaultVisibility.appError=!1}}function Tt(e,t=0){const n=_p(e);return n!==void 0?parseInt(n):t}function _p(e){const t=Array.isArray(e)?e:[e];return t[t.length-1]??void 0}const yp=()=>({items:(t="data-planes")=>[{path:`${t}`,name:`${t}-abstract-view`,meta:{module:"data-planes"},redirect:()=>({name:"data-planes-list-view"}),children:[{path:"",name:`${t}-list-view`,props:n=>({selectedDppName:n.query.dpp,offset:Tt(n.query.offset)}),component:()=>V(()=>import("./DataPlaneListView-cac088f6.js"),["./RouteView-a4ddf9f0.css","./ContentWrapper-bdb64c5c.css","./ErrorBlock-20da7d1b.css","./TagList-d344db8e.css","./StatusBadge-5ec121ec.css","./DataOverview-9f4484cf.css","./DefinitionListItem-6e5e5d2b.css","./CodeBlock-7d9027b4.css","./TextWithCopyButton-b78c7a80.css","./DataPlaneList-28426d93.css","./DataPlaneListView-c9bf2e34.css"],import.meta.url)}]}],item:(t="data-plane")=>[{path:`${t}`,name:`${t}-abstract-view`,meta:{module:"data-planes"},redirect:()=>({name:"data-planes-list-view"}),children:[{path:":dataPlane",name:`${t}-detail-view`,component:()=>V(()=>import("./DataPlaneDetailView-91b88c44.js"),["./RouteView-a4ddf9f0.css","./CodeBlock-7d9027b4.css","./TagList-d344db8e.css","./ErrorBlock-20da7d1b.css","./DefinitionListItem-6e5e5d2b.css","./EnvoyData-5367f20b.css","./TextWithCopyButton-b78c7a80.css","./StatusBadge-5ec121ec.css","./SubscriptionHeader-2fff9bdf.css","./TabsWidget-85bac09e.css","./DataPlaneDetailView-2ac9efea.css"],import.meta.url)}]}]}),bp=()=>[{path:"/diagnostics",name:"diagnostics",component:()=>V(()=>import("./DiagnosticsView-b352af36.js"),["./RouteView-a4ddf9f0.css","./CodeBlock-7d9027b4.css"],import.meta.url)}],Tp=()=>({items:(t="gateways")=>[{path:`${t}`,name:`${t}-abstract-view`,meta:{module:"gateways"},redirect:()=>({name:"gateways-list-view"}),children:[{path:"",name:`${t}-list-view`,props:n=>({selectedDppName:n.query.gateway,gatewayType:n.query.gatewayType==="all"?"true":n.query.gatewayType,offset:Tt(n.query.offset),isGatewayView:!0}),component:()=>V(()=>import("./DataPlaneListView-cac088f6.js"),["./RouteView-a4ddf9f0.css","./ContentWrapper-bdb64c5c.css","./ErrorBlock-20da7d1b.css","./TagList-d344db8e.css","./StatusBadge-5ec121ec.css","./DataOverview-9f4484cf.css","./DefinitionListItem-6e5e5d2b.css","./CodeBlock-7d9027b4.css","./TextWithCopyButton-b78c7a80.css","./DataPlaneList-28426d93.css","./DataPlaneListView-c9bf2e34.css"],import.meta.url)}]}],item:(t="gateway")=>[{path:`${t}`,name:`${t}-abstract-view`,meta:{module:"gateways"},redirect:()=>({name:"gateways-list-view"}),children:[{path:":dataPlane",name:`${t}-detail-view`,props:()=>({isGatewayView:!0}),component:()=>V(()=>import("./DataPlaneDetailView-91b88c44.js"),["./RouteView-a4ddf9f0.css","./CodeBlock-7d9027b4.css","./TagList-d344db8e.css","./ErrorBlock-20da7d1b.css","./DefinitionListItem-6e5e5d2b.css","./EnvoyData-5367f20b.css","./TextWithCopyButton-b78c7a80.css","./StatusBadge-5ec121ec.css","./SubscriptionHeader-2fff9bdf.css","./TabsWidget-85bac09e.css","./DataPlaneDetailView-2ac9efea.css"],import.meta.url)}]}]});function Ip(e){return[{name:"Home",routeName:"home"},...e?[{name:"Zones",routeName:"zone-cp-list-view",anchorRouteName:"zone-index-view"}]:[{name:"Zone Egresses",routeName:"zone-egress-list-view",anchorRouteName:"zone-index-view"}],{name:"Meshes",routeName:"mesh-list-view",anchorRouteName:"mesh-index-view"}]}const Sp=(e,t,n,r)=>[{path:"/meshes",name:"mesh-list-view",props:s=>({page:Tt(s.query.page),selectedMeshName:s.query.mesh}),component:()=>V(()=>import("./MeshListView-0ef3bae9.js"),["./RouteView-a4ddf9f0.css","./ErrorBlock-20da7d1b.css","./TagList-d344db8e.css","./StatusBadge-5ec121ec.css","./DataOverview-9f4484cf.css"],import.meta.url)},{path:"/mesh",name:"mesh-index-view",component:()=>V(()=>import("./MeshView-a9e78f52.js"),["./RouteView-a4ddf9f0.css","./NavTabs-423b9d69.css"],import.meta.url),redirect:()=>({name:"mesh-list-view"}),children:[{path:":mesh",name:"mesh-abstract-view",redirect:()=>({name:"mesh-detail-view"}),component:()=>V(()=>import("./MeshItemView-66f5d240.js"),["./RouteView-a4ddf9f0.css"],import.meta.url),children:[{path:"",name:"mesh-detail-view",redirect:()=>({name:"mesh-overview-view"}),children:[{path:"overview",meta:{module:"meshes"},name:"mesh-overview-view",component:()=>V(()=>import("./MeshOverviewView-44e253a3.js"),["./RouteView-a4ddf9f0.css","./DefinitionListItem-6e5e5d2b.css","./MeshResources-e8681616.css","./CodeBlock-7d9027b4.css","./TextWithCopyButton-b78c7a80.css","./ErrorBlock-20da7d1b.css","./MeshOverviewView-9b45c9e6.css"],import.meta.url)},...e.items("services"),...t.items("gateways"),...n.items("data-planes"),...r.items("policies")]},...e.item("service"),...t.item("gateway"),...n.item("data-plane"),...r.item("policy")]}]}],Ap=()=>[{path:"/onboarding",redirect:{name:"onboarding-welcome"},component:()=>V(()=>import("./OnboardingView-3d4c14ac.js"),["./RouteView-a4ddf9f0.css"],import.meta.url),children:[{path:"welcome",name:"onboarding-welcome",meta:{onboardingProcess:!0},component:()=>V(()=>import("./WelcomeView-9b449942.js"),["./RouteView-a4ddf9f0.css","./OnboardingPage-0e794a51.css","./WelcomeView-cf973e31.css"],import.meta.url)},{path:"deployment-types",name:"onboarding-deployment-types",meta:{onboardingProcess:!0},component:()=>V(()=>import("./DeploymentTypes-a50f731e.js"),["./RouteView-a4ddf9f0.css","./OnboardingPage-0e794a51.css","./DeploymentTypes-6867b00d.css"],import.meta.url)},{path:"configuration-types",name:"onboarding-configuration-types",meta:{onboardingProcess:!0},component:()=>V(()=>import("./ConfigurationTypes-2d6f3b24.js"),["./RouteView-a4ddf9f0.css","./OnboardingPage-0e794a51.css","./ConfigurationTypes-0562ce30.css"],import.meta.url)},{path:"multi-zone",name:"onboarding-multi-zone",meta:{onboardingProcess:!0},component:()=>V(()=>import("./MultiZoneView-38edbce4.js"),["./RouteView-a4ddf9f0.css","./LoadingBox-0bc10551.css","./OnboardingPage-0e794a51.css","./MultiZoneView-15591d17.css"],import.meta.url)},{path:"create-mesh",name:"onboarding-create-mesh",meta:{onboardingProcess:!0},component:()=>V(()=>import("./CreateMesh-33abdae5.js"),["./RouteView-a4ddf9f0.css","./OnboardingPage-0e794a51.css","./CreateMesh-f600c80c.css"],import.meta.url)},{path:"add-services",name:"onboarding-add-services",meta:{onboardingProcess:!0},component:()=>V(()=>import("./AddNewServices-b79c6b78.js"),["./RouteView-a4ddf9f0.css","./OnboardingPage-0e794a51.css","./AddNewServices-18cc19e5.css"],import.meta.url)},{path:"add-services-code",name:"onboarding-add-services-code",meta:{onboardingProcess:!0},component:()=>V(()=>import("./AddNewServicesCode-ab5ad28e.js"),["./RouteView-a4ddf9f0.css","./LoadingBox-0bc10551.css","./OnboardingPage-0e794a51.css","./CodeBlock-7d9027b4.css","./AddNewServicesCode-a8a2e964.css"],import.meta.url)},{path:"dataplanes-overview",name:"onboarding-dataplanes-overview",meta:{onboardingProcess:!0},component:()=>V(()=>import("./DataplanesOverview-ce745e92.js"),["./RouteView-a4ddf9f0.css","./LoadingBox-0bc10551.css","./OnboardingPage-0e794a51.css","./StatusBadge-5ec121ec.css","./DataplanesOverview-c522ab1f.css"],import.meta.url)},{path:"completed",name:"onboarding-completed",meta:{onboardingProcess:!0},component:()=>V(()=>import("./CompletedView-ba3d8266.js"),["./RouteView-a4ddf9f0.css","./OnboardingPage-0e794a51.css","./CompletedView-b2f4845a.css"],import.meta.url)}]}],wp=e=>({items:(n="policies")=>[{path:`${n}`,name:`${n}-abstract-view`,meta:{module:"policies"},redirect:()=>({name:"policies"}),children:[{path:"",name:`${n}`,redirect:r=>{let s=e.state.policyTypes.find(i=>i.name in e.state.sidebar.insights.mesh.policies?e.state.sidebar.insights.mesh.policies[i.name]!==0:!1);return s===void 0&&(s=e.state.policyTypes[0]),s===void 0?{name:"home"}:{...r,params:{...r.params,policyPath:s.path},name:"policies-list-view"}},children:[{path:":policyPath",name:`${n}-list-view`,component:()=>V(()=>import("./PolicyListView-690a3779.js"),["./RouteView-a4ddf9f0.css","./ErrorBlock-20da7d1b.css","./CodeBlock-7d9027b4.css","./TextWithCopyButton-b78c7a80.css","./TabsWidget-85bac09e.css","./TagList-d344db8e.css","./StatusBadge-5ec121ec.css","./DataOverview-9f4484cf.css","./PolicyListView-0ef1f381.css"],import.meta.url),props:r=>({policyPath:r.params.policyPath,selectedPolicyName:r.query.policy,offset:Tt(r.query.offset)})}]}]}],item:(n="policy")=>[{path:`${n}`,name:`${n}-abstract-view`,meta:{module:"policies"},redirect:()=>({name:"policies"}),children:[{path:`${n==="policy"?":policyPath/":""}:policy`,name:`${n}-detail-view`,props:r=>({mesh:r.params.mesh,policyPath:r.params.policyPath,policyName:r.params.policy}),component:()=>V(()=>import("./PolicyDetailView-c9246967.js"),["./RouteView-a4ddf9f0.css","./ErrorBlock-20da7d1b.css","./CodeBlock-7d9027b4.css","./TextWithCopyButton-b78c7a80.css","./TabsWidget-85bac09e.css"],import.meta.url)}]}]}),Op=()=>({items:(t="services")=>[{path:`${t}`,name:`${t}-abstract-view`,meta:{module:"services"},redirect:()=>({name:"services-list-view"}),children:[{path:"",name:`${t}-list-view`,props:n=>({selectedServiceName:n.query.service,offset:Tt(n.query.offset)}),component:()=>V(()=>import("./ServiceListView-fdc72b6c.js"),["./RouteView-a4ddf9f0.css","./DefinitionListItem-6e5e5d2b.css","./CodeBlock-7d9027b4.css","./TextWithCopyButton-b78c7a80.css","./ErrorBlock-20da7d1b.css","./StatusBadge-5ec121ec.css","./TagList-d344db8e.css","./ServiceSummary-c00b423e.css","./ContentWrapper-bdb64c5c.css","./DataOverview-9f4484cf.css"],import.meta.url)}]}],item:(t="")=>[{path:`${t}`,name:`${t}-abstract-view`,meta:{module:"services"},redirect:()=>({name:"services-list-view"}),children:[{path:":service",name:`${t}-detail-view`,component:()=>V(()=>import("./ServiceDetailView-9190c6d8.js"),["./RouteView-a4ddf9f0.css","./DefinitionListItem-6e5e5d2b.css","./CodeBlock-7d9027b4.css","./TextWithCopyButton-b78c7a80.css","./ErrorBlock-20da7d1b.css","./StatusBadge-5ec121ec.css","./TagList-d344db8e.css","./ServiceSummary-c00b423e.css","./ContentWrapper-bdb64c5c.css","./DataOverview-9f4484cf.css","./DataPlaneList-28426d93.css"],import.meta.url)}]}]}),Rp=()=>[{path:"/wizard",name:"wizard",children:[{path:"mesh",name:"create-mesh",component:()=>V(()=>import("./MeshWizard-da10975e.js"),["./RouteView-a4ddf9f0.css","./StepSkeleton-53636aa6.css","./CodeBlock-7d9027b4.css","./ErrorBlock-20da7d1b.css","./TabsWidget-85bac09e.css","./MeshWizard-97c77108.css"],import.meta.url)},{path:"kubernetes-dataplane",name:"kubernetes-dataplane",component:()=>V(()=>import("./DataplaneKubernetes-697adf36.js"),["./RouteView-a4ddf9f0.css","./EnvironmentSwitcher-c3d33458.css","./StepSkeleton-53636aa6.css","./CodeBlock-7d9027b4.css","./DataplaneKubernetes-3cc5ca78.css"],import.meta.url)},{path:"universal-dataplane",name:"universal-dataplane",component:()=>V(()=>import("./DataplaneUniversal-fbeb32fb.js"),["./RouteView-a4ddf9f0.css","./EnvironmentSwitcher-c3d33458.css","./StepSkeleton-53636aa6.css","./CodeBlock-7d9027b4.css","./DataplaneUniversal-9bff3173.css"],import.meta.url)}]}],Cp=()=>[{path:"/zones/create",name:"zone-create-view",meta:{isWizard:!0},component:()=>V(()=>import("./ZoneCreateView-f6bb42f9.js"),["./CodeBlock-7d9027b4.css","./RouteView-a4ddf9f0.css","./ErrorBlock-20da7d1b.css","./ZoneCreateView-3e1a25f1.css"],import.meta.url)}],Pp=e=>[...e,{path:"/zones",name:"zone-index-view",component:()=>V(()=>import("./ZoneIndexView-96a4a69f.js"),["./RouteView-a4ddf9f0.css","./NavTabs-423b9d69.css"],import.meta.url),redirect:()=>({name:"zone-cp-list-view"}),children:[{path:"zone-cps",name:"zone-cp-abstract-view",meta:{module:"zone-cps"},children:[{path:"",name:"zone-cp-list-view",props:t=>({selectedZoneName:t.query.zone,offset:Tt(t.query.offset)}),component:()=>V(()=>import("./ZoneListView-a4bd0b20.js"),["./RouteView-a4ddf9f0.css","./CodeBlock-7d9027b4.css","./DefinitionListItem-6e5e5d2b.css","./SubscriptionHeader-2fff9bdf.css","./ErrorBlock-20da7d1b.css","./TabsWidget-85bac09e.css","./TextWithCopyButton-b78c7a80.css","./TagList-d344db8e.css","./StatusBadge-5ec121ec.css","./DataOverview-9f4484cf.css"],import.meta.url)},{path:":zone",name:"zone-cp-detail-view",component:()=>V(()=>import("./ZoneDetailView-6bef6f62.js"),["./RouteView-a4ddf9f0.css","./CodeBlock-7d9027b4.css","./DefinitionListItem-6e5e5d2b.css","./SubscriptionHeader-2fff9bdf.css","./ErrorBlock-20da7d1b.css","./TabsWidget-85bac09e.css","./TextWithCopyButton-b78c7a80.css"],import.meta.url)}]},{path:"zone-ingresses",name:"zone-ingress-abstract-view",meta:{module:"zone-ingresses"},children:[{path:"",name:"zone-ingress-list-view",props:t=>({selectedZoneIngressName:t.query.zoneIngress,offset:Tt(t.query.offset)}),component:()=>V(()=>import("./ZoneIngressListView-0760de79.js"),["./RouteView-a4ddf9f0.css","./DefinitionListItem-6e5e5d2b.css","./CodeBlock-7d9027b4.css","./ErrorBlock-20da7d1b.css","./EnvoyData-5367f20b.css","./SubscriptionHeader-2fff9bdf.css","./TabsWidget-85bac09e.css","./TextWithCopyButton-b78c7a80.css","./TagList-d344db8e.css","./StatusBadge-5ec121ec.css","./DataOverview-9f4484cf.css"],import.meta.url)},{path:":zoneIngress",name:"zone-ingress-detail-view",component:()=>V(()=>import("./ZoneIngressDetailView-906da9f8.js"),["./RouteView-a4ddf9f0.css","./DefinitionListItem-6e5e5d2b.css","./CodeBlock-7d9027b4.css","./ErrorBlock-20da7d1b.css","./EnvoyData-5367f20b.css","./SubscriptionHeader-2fff9bdf.css","./TabsWidget-85bac09e.css","./TextWithCopyButton-b78c7a80.css"],import.meta.url)}]},{path:"zone-egresses",name:"zone-egress-abstract-view",meta:{module:"zone-egresses"},children:[{path:"",name:"zone-egress-list-view",props:t=>({selectedZoneEgressName:t.query.zoneEgress,offset:Tt(t.query.offset)}),component:()=>V(()=>import("./ZoneEgressListView-d6988e61.js"),["./RouteView-a4ddf9f0.css","./DefinitionListItem-6e5e5d2b.css","./CodeBlock-7d9027b4.css","./ErrorBlock-20da7d1b.css","./EnvoyData-5367f20b.css","./SubscriptionHeader-2fff9bdf.css","./TabsWidget-85bac09e.css","./TextWithCopyButton-b78c7a80.css","./TagList-d344db8e.css","./StatusBadge-5ec121ec.css","./DataOverview-9f4484cf.css"],import.meta.url)},{path:":zoneEgress",name:"zone-egress-detail-view",component:()=>V(()=>import("./ZoneEgressDetailView-ebac8068.js"),["./RouteView-a4ddf9f0.css","./DefinitionListItem-6e5e5d2b.css","./CodeBlock-7d9027b4.css","./ErrorBlock-20da7d1b.css","./EnvoyData-5367f20b.css","./SubscriptionHeader-2fff9bdf.css","./TabsWidget-85bac09e.css","./TextWithCopyButton-b78c7a80.css"],import.meta.url)}]}]}],Np={common:{product:{name:"Kuma"},copyText:"Copy",copySuccessText:"Copied!",copyKubernetesText:"Copy as Kubernetes",copyKubernetesShortText:"as k8s",emptyState:{title:"No data",message:"There are no {type} present."},charts:{dataPlaneProxies:{title:"DP Proxies"},envoy:{title:"Envoy",subtitle:"versions"},kumaDp:{title:"Kuma DP",subtitle:"versions"},meshes:{title:"Meshes",meshLabel:"Mesh"},services:{title:"Services",internalLabel:"Internal",externalLabel:"External"},zoneCps:{title:"Zone CP",subtitle:"versions"},zones:{title:"Zones"}}}},Lp={components:{"route-view":{title:"{name} Manager","route-announcer":"Navigated to {title}"}}},Mp={http:{api:{property:{mtls:"mTLS",mTLS:"mTLS",globalInstanceId:"Global instance ID",controlPlaneInstanceId:"CP instance ID",connectTime:"Last connected",disconnectTime:"Disconnect time",cds:"CDS",eds:"EDS",lds:"LDS",rds:"RDS",responsesSent:"Responses sent",responsesAcknowledged:"Responses acknowledged",responsesRejected:"Responses rejected",certificateExpirationTime:"Expiration time",lastCertificateRegeneration:"Last generated",certificateRegenerations:"Regenerations"},value:{online:"online",offline:"offline",partiallyDegraded:"partially degraded",partially_degraded:"partially degraded",notAvailable:"information not available",not_available:"information not available"}}}},Dp={"data-planes":{routes:{item:{title:"{name} Data plane proxy",breadcrumbs:"Data plane proxies"},items:{title:"Data plane proxies"}}}},Hp={diagnostics:{routes:{item:{title:"Diagnostics",breadcrumbs:"Diagnostics"}}}},Bp={gateways:{routes:{item:{title:"{name} Gateway",breadcrumbs:"Gateways"},items:{title:"Gateways"}}}},xp={"main-overview":{routes:{item:{title:"Overview"}}}},Up={meshes:{routes:{item:{title:"{name} Mesh",breadcrumbs:"Meshes",navigation:{"mesh-overview-view":"Overview","services-abstract-view":"Services","data-planes-abstract-view":"Data Plane Proxies","gateways-abstract-view":"Gateways","policies-abstract-view":"Policies"}},items:{title:"Meshes",breadcrumbs:"Meshes"},overview:{title:"Mesh overview"}}}},Fp={onboarding:{routes:{welcome:{title:"Welcome to {name}!"},"deployment-types":{title:"Deployment Types"},"configuration-types":{title:"Configuration Types"},multizone:{title:"Multizone"},"create-mesh":{title:"Create the Mesh"},"add-services":{title:"Add new services"},"add-services-code":{title:"Add new services"},"dataplanes-overview":{title:"Data plane overview"},completed:{title:"Completed"}}}},kp={policies:{routes:{item:{title:"{name} Policy",breadcrumbs:"Policies"},items:{title:"{name}"}}}},$p={services:{routes:{item:{title:"{name} Service",breadcrumbs:"Services"},items:{title:"Services"}}}},Gp={"wizard-mesh":{routes:{item:{title:"Create a new mesh"}}},"wizard-universal":{routes:{item:{title:"Create a new data plane proxy on Universal"}}},"wizard-kubernetes":{routes:{item:{title:"Create a new data plane proxy on Kubernetes"}}}},jp={"zone-cps":{routes:{item:{title:"{name} Zone CP",breadcrumbs:"Zone CPs"},items:{title:"Zone CPs",breadcrumbs:"Zone CPs"}}},"zone-ingresses":{routes:{item:{title:"{name} Zone Ingress",breadcrumbs:"Zone Ingresses"},items:{title:"Zone Ingresses",breadcrumbs:"Zone Ingresses"}}},"zone-egresses":{routes:{item:{title:"{name} Zone Egress",breadcrumbs:"Zone Egresses"},items:{title:"Zone Egresses",breadcrumbs:"Zone Egresses"}}},zones:{routes:{create:{title:"Create & connect Zone"},items:{breadcrumbs:"Zones",navigation:{"zone-cp-list-view":"Zone CPs","zone-ingress-list-view":"Zone Ingresses","zone-egress-list-view":"Zone Egresses"}}},form:{exit:"Exit",nameLabel:"Name",createZoneButtonLabel:"Create Zone & generate token",environmentLabel:"Environment",universalLabel:"Universal",kubernetesLabel:"Kubernetes",zoneIngressLabel:"Zone Ingress",zoneIngressEnabledLabel:"Enabled",zoneEgressLabel:"Zone Egress",zoneEgressEnabledLabel:"Enabled",connectZone:"Connect Zone",scan:{waitTitle:"Waiting for Zone to be connected …",completeTitle:"Done!",completeDescription:"The Zone “{name}” is now connected.",completeButtonLabel:"Go to Zone “{name}”",errorTitle:"Could not connect Zone",errorDescription:"We were unable to connect Zone."},universal:{saveToken:{title:"Save token",saveTokenDescription:"Save the token to a file.",saveTokenCommand:`mkdir -p ~/kuma-cp \\ && echo {token} > ~/kuma-cp/cpTokenFile \\ && chmod 600 ~/kuma-cp/cpTokenFile `},connectZone:{title:"Connect Zone",configDescription:"Copy and paste the following configuration into the config.yaml on your local machine.",configFileName:"config.yaml",config:`environment: universal @@ -43,7 +43,7 @@ egress: enabled: {zoneEgressEnabled} experimental: deltaKds: true -`,connectDescription:"Next, run the following command to connect the Zone.",connectCommand:"helm install -n kuma-system -f values.yaml kuma kuma/kuma"}}},create:{errorTitle:"Could not create the Zone"},delete:{confirmModal:{text1:"Are you sure you want to delete the Zone {zoneName}?",text2:"This action cannot be reversed.",proceedText:"Yes, delete",title:"Delete Zone",errorText:"An unexpected error occurred"}}},"zone-cps":{routes:{item:{title:"Zone CP",breadcrumbs:"Zone CPs"},items:{title:"Zone CPs",breadcrumbs:"Zone CPs"}}}},Vp={...Np,...Mp,...Lp,...xp,...Fp,...Hp,...Gp,...Up,...$p,...kp,...Dp,...Bp,...jp},Kp=(e,t,n,r,s)=>[{path:"/404",name:"not-found",alias:"/:pathMatch(.*)*",meta:{title:"Item not found"},component:()=>V(()=>import("./AppNotFoundView-8a586afe.js"),[],import.meta.url)},{path:"/",name:"home",component:()=>V(()=>import("./MainOverviewView-8bcf7c3e.js"),["./RouteView-a4ddf9f0.css","./MeshResources-e8681616.css"],import.meta.url)},...e,...t,...r,...n,...s];function zp(e=""){return{baseGuiPath:"/gui",apiUrl:e,version:"1.7.0"}}class Zp{constructor(t){ht(this,"env");let n=t;const r=(a,l="")=>this.var(a,(n==null?void 0:n[a])??l),s=this.getConfig(),i=Xp(r("KUMA_VERSION",s.version)),o=encodeURIComponent(r("KUMA_PRODUCT_NAME"));n={...n,KUMA_UTM_QUERY_PARAMS:`utm_source=${o}&utm_medium=${o}`},this.env={...n,KUMA_INSTALL_URL:`${r("KUMA_INSTALL_URL")}?${r("KUMA_UTM_QUERY_PARAMS")}`,KUMA_DOCS_URL:`${r("KUMA_DOCS_URL")}/${i.patch==="0.0.0"?"dev":i.patch.replace(/\.\d+$/,".x")}`,KUMA_VERSION:i.pre,KUMA_API_URL:r("KUMA_API_URL")||s.apiUrl,KUMA_BASE_PATH:r("KUMA_BASE_PATH")||s.baseGuiPath}}var(t,n=""){var r;return((r=this.env)==null?void 0:r[t])??n}getConfig(){const t=document.querySelector("#kuma-config");let n;if(t instanceof HTMLScriptElement&&t.textContent)try{n=JSON.parse(t.textContent.trim())}catch(r){console.error(r)}return n||(n=zp(),console.error("Unable to parse kuma config. Falling back to defaults")),n.apiUrl=Wp(n.apiUrl),n}}function pl(e){return e.endsWith("/")?pl(e.slice(0,-1)):e}function Wp(e){return e=!e.includes("://")&&!e.startsWith("/")?`/${e}`:e,pl(e)}function Xp(e){const[t,n,...r]=e.split(".");if(isNaN(parseInt(t)))return{major:t,minor:t,patch:t,pre:t};const[s,i]=r.join(".").split("-");return{major:t,minor:`${t}.${n}`,patch:`${t}.${n}.${s}`,pre:`${t}.${n}.${s}${i!==void 0?`-${i}`:""}`}}var Es=function(e,t){return Es=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var s in r)Object.prototype.hasOwnProperty.call(r,s)&&(n[s]=r[s])},Es(e,t)};function Ke(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");Es(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}var U=function(){return U=Object.assign||function(e){for(var t,n=1,r=arguments.length;n0}),n=[],r=0,s=t;r1)throw new RangeError("integer-width stems only accept a single optional option");s.options[0].replace(sd,function(l,c,u,f,h,g){if(c)t.minimumIntegerDigits=u.length;else{if(f&&h)throw new Error("We currently do not support maximum integer digits");if(g)throw new Error("We currently do not support exact integer digits")}return""});continue}if(Il.test(s.stem)){t.minimumIntegerDigits=s.stem.length;continue}if(go.test(s.stem)){if(s.options.length>1)throw new RangeError("Fraction-precision stems only accept a single optional option");s.stem.replace(go,function(l,c,u,f,h,g){return u==="*"?t.minimumFractionDigits=c.length:f&&f[0]==="#"?t.maximumFractionDigits=f.length:h&&g?(t.minimumFractionDigits=h.length,t.maximumFractionDigits=h.length+g.length):(t.minimumFractionDigits=c.length,t.maximumFractionDigits=c.length),""});var i=s.options[0];i==="w"?t=U(U({},t),{trailingZeroDisplay:"stripIfInteger"}):i&&(t=U(U({},t),Eo(i)));continue}if(Tl.test(s.stem)){t=U(U({},t),Eo(s.stem));continue}var o=Sl(s.stem);o&&(t=U(U({},t),o));var a=id(s.stem);a&&(t=U(U({},t),a))}return t}var Xn={"001":["H","h"],AC:["H","h","hb","hB"],AD:["H","hB"],AE:["h","hB","hb","H"],AF:["H","hb","hB","h"],AG:["h","hb","H","hB"],AI:["H","h","hb","hB"],AL:["h","H","hB"],AM:["H","hB"],AO:["H","hB"],AR:["H","h","hB","hb"],AS:["h","H"],AT:["H","hB"],AU:["h","hb","H","hB"],AW:["H","hB"],AX:["H"],AZ:["H","hB","h"],BA:["H","hB","h"],BB:["h","hb","H","hB"],BD:["h","hB","H"],BE:["H","hB"],BF:["H","hB"],BG:["H","hB","h"],BH:["h","hB","hb","H"],BJ:["H","hB"],BL:["H","hB"],BM:["h","hb","H","hB"],BN:["hb","hB","h","H"],BO:["H","hB","h","hb"],BQ:["H"],BR:["H","hB"],BS:["h","hb","H","hB"],BT:["h","H"],BW:["H","h","hb","hB"],BZ:["H","h","hb","hB"],CA:["h","hb","H","hB"],CC:["H","h","hb","hB"],CD:["hB","H"],CF:["H","h","hB"],CG:["H","hB"],CH:["H","hB","h"],CI:["H","hB"],CK:["H","h","hb","hB"],CL:["H","h","hB","hb"],CM:["H","h","hB"],CN:["H","hB","hb","h"],CO:["h","H","hB","hb"],CP:["H"],CR:["H","h","hB","hb"],CU:["H","h","hB","hb"],CV:["H","hB"],CX:["H","h","hb","hB"],CY:["h","H","hb","hB"],CZ:["H"],DE:["H","hB"],DG:["H","h","hb","hB"],DJ:["h","H"],DK:["H"],DM:["h","hb","H","hB"],DO:["h","H","hB","hb"],DZ:["h","hB","hb","H"],EA:["H","h","hB","hb"],EC:["H","hB","h","hb"],EE:["H","hB"],EG:["h","hB","hb","H"],EH:["h","hB","hb","H"],ER:["h","H"],ES:["H","hB","h","hb"],ET:["hB","hb","h","H"],FI:["H"],FJ:["h","hb","H","hB"],FK:["H","h","hb","hB"],FM:["h","hb","H","hB"],FR:["H","hB"],GA:["H","hB"],GB:["H","h","hb","hB"],GD:["h","hb","H","hB"],GE:["H","hB","h"],GF:["H","hB"],GG:["H","h","hb","hB"],GH:["h","H"],GI:["H","h","hb","hB"],GM:["h","hb","H","hB"],GN:["H","hB"],GP:["H","hB"],GQ:["H","hB","h","hb"],GR:["h","H","hb","hB"],GT:["H","h","hB","hb"],GU:["h","hb","H","hB"],GW:["H","hB"],GY:["h","hb","H","hB"],HK:["h","hB","hb","H"],HN:["H","h","hB","hb"],HR:["H","hB"],IC:["H","h","hB","hb"],ID:["H"],IE:["H","h","hb","hB"],IL:["H","hB"],IM:["H","h","hb","hB"],IN:["h","H"],IO:["H","h","hb","hB"],IQ:["h","hB","hb","H"],IR:["hB","H"],IS:["H"],IT:["H","hB"],JE:["H","h","hb","hB"],JM:["h","hb","H","hB"],JO:["h","hB","hb","H"],JP:["H","h","K"],KE:["hB","hb","H","h"],KG:["H","h","hB","hb"],KH:["hB","h","H","hb"],KI:["h","hb","H","hB"],KM:["H","h","hB","hb"],KN:["h","hb","H","hB"],KP:["h","H","hB","hb"],KR:["h","H","hB","hb"],KW:["h","hB","hb","H"],KY:["h","hb","H","hB"],KZ:["H","hB"],LA:["H","hb","hB","h"],LB:["h","hB","hb","H"],LC:["h","hb","H","hB"],LI:["H","hB","h"],LK:["H","h","hB","hb"],LR:["h","hb","H","hB"],LS:["h","H"],LT:["H","h","hb","hB"],LU:["H","h","hB"],LV:["H","hB","hb","h"],LY:["h","hB","hb","H"],MA:["H","h","hB","hb"],MC:["H","hB"],MD:["H","hB"],ME:["H","hB","h"],MF:["H","hB"],MH:["h","hb","H","hB"],MK:["H","h","hb","hB"],ML:["H"],MM:["hB","hb","H","h"],MN:["H","h","hb","hB"],MO:["h","hB","hb","H"],MP:["h","hb","H","hB"],MQ:["H","hB"],MR:["h","hB","hb","H"],MS:["H","h","hb","hB"],MW:["h","hb","H","hB"],MX:["H","h","hB","hb"],MY:["hb","hB","h","H"],MZ:["H","hB"],NA:["h","H","hB","hb"],NC:["H","hB"],NE:["H"],NF:["H","h","hb","hB"],NG:["H","h","hb","hB"],NI:["H","h","hB","hb"],NL:["H","hB"],NP:["H","h","hB"],NR:["H","h","hb","hB"],NU:["H","h","hb","hB"],NZ:["h","hb","H","hB"],OM:["h","hB","hb","H"],PA:["h","H","hB","hb"],PE:["H","hB","h","hb"],PF:["H","h","hB"],PG:["h","H"],PH:["h","hB","hb","H"],PK:["h","hB","H"],PM:["H","hB"],PN:["H","h","hb","hB"],PR:["h","H","hB","hb"],PS:["h","hB","hb","H"],PT:["H","hB"],PW:["h","H"],PY:["H","h","hB","hb"],QA:["h","hB","hb","H"],RE:["H","hB"],RO:["H","hB"],RS:["H","hB","h"],RU:["H"],SA:["h","hB","hb","H"],SB:["h","hb","H","hB"],SC:["H","h","hB"],SD:["h","hB","hb","H"],SE:["H"],SG:["h","hb","H","hB"],SH:["H","h","hb","hB"],SI:["H","hB"],SJ:["H"],SK:["H"],SL:["h","hb","H","hB"],SM:["H","h","hB"],SN:["H","h","hB"],SO:["h","H"],SR:["H","hB"],SS:["h","hb","H","hB"],ST:["H","hB"],SV:["H","h","hB","hb"],SX:["H","h","hb","hB"],SY:["h","hB","hb","H"],SZ:["h","hb","H","hB"],TA:["H","h","hb","hB"],TC:["h","hb","H","hB"],TD:["h","H","hB"],TF:["H","h","hB"],TG:["H","hB"],TL:["H","hB","hb","h"],TN:["h","hB","hb","H"],TO:["h","H"],TR:["H","hB"],TT:["h","hb","H","hB"],TW:["hB","hb","h","H"],TZ:["hB","hb","H","h"],UA:["H","hB","h"],UG:["hB","hb","H","h"],UM:["h","hb","H","hB"],US:["h","hb","H","hB"],UY:["H","h","hB","hb"],UZ:["H","hB","h"],VA:["H","h","hB"],VC:["h","hb","H","hB"],VE:["h","H","hB","hb"],VG:["h","hb","H","hB"],VI:["h","hb","H","hB"],VU:["h","H"],WF:["H","hB"],WS:["h","H"],XK:["H","hB","h"],YE:["h","hB","hb","H"],YT:["H","hB"],ZA:["H","h","hb","hB"],ZM:["h","hb","H","hB"],"af-ZA":["H","h","hB","hb"],"ar-001":["h","hB","hb","H"],"ca-ES":["H","h","hB"],"en-001":["h","hb","H","hB"],"es-BO":["H","h","hB","hb"],"es-BR":["H","h","hB","hb"],"es-EC":["H","h","hB","hb"],"es-ES":["H","h","hB","hb"],"es-GQ":["H","h","hB","hb"],"es-PE":["H","h","hB","hb"],"fr-CA":["H","h","hB"],"gl-ES":["H","h","hB"],"gu-IN":["hB","hb","h","H"],"hi-IN":["hB","h","H"],"it-CH":["H","h","hB"],"it-IT":["H","h","hB"],"kn-IN":["hB","h","H"],"ml-IN":["hB","h","H"],"mr-IN":["hB","hb","h","H"],"pa-IN":["hB","hb","h","H"],"ta-IN":["hB","h","hb","H"],"te-IN":["hB","h","H"],"zu-ZA":["H","hB","hb","h"]};function ad(e,t){for(var n="",r=0;r>1),l="a",c=ld(t);for((c=="H"||c=="k")&&(a=0);a-- >0;)n+=l;for(;o-- >0;)n=c+n}else s==="J"?n+="H":n+=s}return n}function ld(e){var t=e.hourCycle;if(t===void 0&&e.hourCycles&&e.hourCycles.length&&(t=e.hourCycles[0]),t)switch(t){case"h24":return"k";case"h23":return"H";case"h12":return"h";case"h11":return"K";default:throw new Error("Invalid hourCycle")}var n=e.language,r;n!=="root"&&(r=e.maximize().region);var s=Xn[r||""]||Xn[n||""]||Xn["".concat(n,"-001")]||Xn["001"];return s[0]}var Zr,cd=new RegExp("^".concat(bl.source,"*")),ud=new RegExp("".concat(bl.source,"*$"));function W(e,t){return{start:e,end:t}}var fd=!!String.prototype.startsWith,hd=!!String.fromCodePoint,pd=!!Object.fromEntries,dd=!!String.prototype.codePointAt,md=!!String.prototype.trimStart,gd=!!String.prototype.trimEnd,Ed=!!Number.isSafeInteger,vd=Ed?Number.isSafeInteger:function(e){return typeof e=="number"&&isFinite(e)&&Math.floor(e)===e&&Math.abs(e)<=9007199254740991},_s=!0;try{var _d=wl("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu");_s=((Zr=_d.exec("a"))===null||Zr===void 0?void 0:Zr[0])==="a"}catch{_s=!1}var _o=fd?function(e,t,n){return e.startsWith(t,n)}:function(e,t,n){return e.slice(n,n+t.length)===t},ys=hd?String.fromCodePoint:function(){for(var e=[],t=0;ts;){if(i=e[s++],i>1114111)throw RangeError(i+" is not a valid code point");n+=i<65536?String.fromCharCode(i):String.fromCharCode(((i-=65536)>>10)+55296,i%1024+56320)}return n},yo=pd?Object.fromEntries:function(e){for(var t={},n=0,r=e;n=n)){var r=e.charCodeAt(t),s;return r<55296||r>56319||t+1===n||(s=e.charCodeAt(t+1))<56320||s>57343?r:(r-55296<<10)+(s-56320)+65536}},yd=md?function(e){return e.trimStart()}:function(e){return e.replace(cd,"")},bd=gd?function(e){return e.trimEnd()}:function(e){return e.replace(ud,"")};function wl(e,t){return new RegExp(e,t)}var bs;if(_s){var bo=wl("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu");bs=function(e,t){var n;bo.lastIndex=t;var r=bo.exec(e);return(n=r[1])!==null&&n!==void 0?n:""}}else bs=function(e,t){for(var n=[];;){var r=Al(e,t);if(r===void 0||Ol(r)||Ad(r))break;n.push(r),t+=r>=65536?2:1}return ys.apply(void 0,n)};var Td=function(){function e(t,n){n===void 0&&(n={}),this.message=t,this.position={offset:0,line:1,column:1},this.ignoreTag=!!n.ignoreTag,this.locale=n.locale,this.requiresOtherClause=!!n.requiresOtherClause,this.shouldParseSkeletons=!!n.shouldParseSkeletons}return e.prototype.parse=function(){if(this.offset()!==0)throw Error("parser can only be used once");return this.parseMessage(0,"",!1)},e.prototype.parseMessage=function(t,n,r){for(var s=[];!this.isEOF();){var i=this.char();if(i===123){var o=this.parseArgument(t,r);if(o.err)return o;s.push(o.val)}else{if(i===125&&t>0)break;if(i===35&&(n==="plural"||n==="selectordinal")){var a=this.clonePosition();this.bump(),s.push({type:ce.pound,location:W(a,this.clonePosition())})}else if(i===60&&!this.ignoreTag&&this.peek()===47){if(r)break;return this.error(z.UNMATCHED_CLOSING_TAG,W(this.clonePosition(),this.clonePosition()))}else if(i===60&&!this.ignoreTag&&Ts(this.peek()||0)){var o=this.parseTag(t,n);if(o.err)return o;s.push(o.val)}else{var o=this.parseLiteral(t,n);if(o.err)return o;s.push(o.val)}}}return{val:s,err:null}},e.prototype.parseTag=function(t,n){var r=this.clonePosition();this.bump();var s=this.parseTagName();if(this.bumpSpace(),this.bumpIf("/>"))return{val:{type:ce.literal,value:"<".concat(s,"/>"),location:W(r,this.clonePosition())},err:null};if(this.bumpIf(">")){var i=this.parseMessage(t+1,n,!0);if(i.err)return i;var o=i.val,a=this.clonePosition();if(this.bumpIf("")?{val:{type:ce.tag,value:s,children:o,location:W(r,this.clonePosition())},err:null}:this.error(z.INVALID_TAG,W(a,this.clonePosition())))}else return this.error(z.UNCLOSED_TAG,W(r,this.clonePosition()))}else return this.error(z.INVALID_TAG,W(r,this.clonePosition()))},e.prototype.parseTagName=function(){var t=this.offset();for(this.bump();!this.isEOF()&&Sd(this.char());)this.bump();return this.message.slice(t,this.offset())},e.prototype.parseLiteral=function(t,n){for(var r=this.clonePosition(),s="";;){var i=this.tryParseQuote(n);if(i){s+=i;continue}var o=this.tryParseUnquoted(t,n);if(o){s+=o;continue}var a=this.tryParseLeftAngleBracket();if(a){s+=a;continue}break}var l=W(r,this.clonePosition());return{val:{type:ce.literal,value:s,location:l},err:null}},e.prototype.tryParseLeftAngleBracket=function(){return!this.isEOF()&&this.char()===60&&(this.ignoreTag||!Id(this.peek()||0))?(this.bump(),"<"):null},e.prototype.tryParseQuote=function(t){if(this.isEOF()||this.char()!==39)return null;switch(this.peek()){case 39:return this.bump(),this.bump(),"'";case 123:case 60:case 62:case 125:break;case 35:if(t==="plural"||t==="selectordinal")break;return null;default:return null}this.bump();var n=[this.char()];for(this.bump();!this.isEOF();){var r=this.char();if(r===39)if(this.peek()===39)n.push(39),this.bump();else{this.bump();break}else n.push(r);this.bump()}return ys.apply(void 0,n)},e.prototype.tryParseUnquoted=function(t,n){if(this.isEOF())return null;var r=this.char();return r===60||r===123||r===35&&(n==="plural"||n==="selectordinal")||r===125&&t>0?null:(this.bump(),ys(r))},e.prototype.parseArgument=function(t,n){var r=this.clonePosition();if(this.bump(),this.bumpSpace(),this.isEOF())return this.error(z.EXPECT_ARGUMENT_CLOSING_BRACE,W(r,this.clonePosition()));if(this.char()===125)return this.bump(),this.error(z.EMPTY_ARGUMENT,W(r,this.clonePosition()));var s=this.parseIdentifierIfPossible().value;if(!s)return this.error(z.MALFORMED_ARGUMENT,W(r,this.clonePosition()));if(this.bumpSpace(),this.isEOF())return this.error(z.EXPECT_ARGUMENT_CLOSING_BRACE,W(r,this.clonePosition()));switch(this.char()){case 125:return this.bump(),{val:{type:ce.argument,value:s,location:W(r,this.clonePosition())},err:null};case 44:return this.bump(),this.bumpSpace(),this.isEOF()?this.error(z.EXPECT_ARGUMENT_CLOSING_BRACE,W(r,this.clonePosition())):this.parseArgumentOptions(t,n,s,r);default:return this.error(z.MALFORMED_ARGUMENT,W(r,this.clonePosition()))}},e.prototype.parseIdentifierIfPossible=function(){var t=this.clonePosition(),n=this.offset(),r=bs(this.message,n),s=n+r.length;this.bumpTo(s);var i=this.clonePosition(),o=W(t,i);return{value:r,location:o}},e.prototype.parseArgumentOptions=function(t,n,r,s){var i,o=this.clonePosition(),a=this.parseIdentifierIfPossible().value,l=this.clonePosition();switch(a){case"":return this.error(z.EXPECT_ARGUMENT_TYPE,W(o,l));case"number":case"date":case"time":{this.bumpSpace();var c=null;if(this.bumpIf(",")){this.bumpSpace();var u=this.clonePosition(),f=this.parseSimpleArgStyleIfPossible();if(f.err)return f;var h=bd(f.val);if(h.length===0)return this.error(z.EXPECT_ARGUMENT_STYLE,W(this.clonePosition(),this.clonePosition()));var g=W(u,this.clonePosition());c={style:h,styleLocation:g}}var y=this.tryParseArgumentClose(s);if(y.err)return y;var T=W(s,this.clonePosition());if(c&&_o(c==null?void 0:c.style,"::",0)){var C=yd(c.style.slice(2));if(a==="number"){var f=this.parseNumberSkeletonFromString(C,c.styleLocation);return f.err?f:{val:{type:ce.number,value:r,location:T,style:f.val},err:null}}else{if(C.length===0)return this.error(z.EXPECT_DATE_TIME_SKELETON,T);var A=C;this.locale&&(A=ad(C,this.locale));var h={type:cn.dateTime,pattern:A,location:c.styleLocation,parsedOptions:this.shouldParseSkeletons?ed(A):{}},P=a==="date"?ce.date:ce.time;return{val:{type:P,value:r,location:T,style:h},err:null}}}return{val:{type:a==="number"?ce.number:a==="date"?ce.date:ce.time,value:r,location:T,style:(i=c==null?void 0:c.style)!==null&&i!==void 0?i:null},err:null}}case"plural":case"selectordinal":case"select":{var H=this.clonePosition();if(this.bumpSpace(),!this.bumpIf(","))return this.error(z.EXPECT_SELECT_ARGUMENT_OPTIONS,W(H,U({},H)));this.bumpSpace();var L=this.parseIdentifierIfPossible(),Z=0;if(a!=="select"&&L.value==="offset"){if(!this.bumpIf(":"))return this.error(z.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,W(this.clonePosition(),this.clonePosition()));this.bumpSpace();var f=this.tryParseDecimalInteger(z.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,z.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);if(f.err)return f;this.bumpSpace(),L=this.parseIdentifierIfPossible(),Z=f.val}var ae=this.tryParsePluralOrSelectOptions(t,a,n,L);if(ae.err)return ae;var y=this.tryParseArgumentClose(s);if(y.err)return y;var me=W(s,this.clonePosition());return a==="select"?{val:{type:ce.select,value:r,options:yo(ae.val),location:me},err:null}:{val:{type:ce.plural,value:r,options:yo(ae.val),offset:Z,pluralType:a==="plural"?"cardinal":"ordinal",location:me},err:null}}default:return this.error(z.INVALID_ARGUMENT_TYPE,W(o,l))}},e.prototype.tryParseArgumentClose=function(t){return this.isEOF()||this.char()!==125?this.error(z.EXPECT_ARGUMENT_CLOSING_BRACE,W(t,this.clonePosition())):(this.bump(),{val:!0,err:null})},e.prototype.parseSimpleArgStyleIfPossible=function(){for(var t=0,n=this.clonePosition();!this.isEOF();){var r=this.char();switch(r){case 39:{this.bump();var s=this.clonePosition();if(!this.bumpUntil("'"))return this.error(z.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE,W(s,this.clonePosition()));this.bump();break}case 123:{t+=1,this.bump();break}case 125:{if(t>0)t-=1;else return{val:this.message.slice(n.offset,this.offset()),err:null};break}default:this.bump();break}}return{val:this.message.slice(n.offset,this.offset()),err:null}},e.prototype.parseNumberSkeletonFromString=function(t,n){var r=[];try{r=nd(t)}catch{return this.error(z.INVALID_NUMBER_SKELETON,n)}return{val:{type:cn.number,tokens:r,location:n,parsedOptions:this.shouldParseSkeletons?od(r):{}},err:null}},e.prototype.tryParsePluralOrSelectOptions=function(t,n,r,s){for(var i,o=!1,a=[],l=new Set,c=s.value,u=s.location;;){if(c.length===0){var f=this.clonePosition();if(n!=="select"&&this.bumpIf("=")){var h=this.tryParseDecimalInteger(z.EXPECT_PLURAL_ARGUMENT_SELECTOR,z.INVALID_PLURAL_ARGUMENT_SELECTOR);if(h.err)return h;u=W(f,this.clonePosition()),c=this.message.slice(f.offset,this.offset())}else break}if(l.has(c))return this.error(n==="select"?z.DUPLICATE_SELECT_ARGUMENT_SELECTOR:z.DUPLICATE_PLURAL_ARGUMENT_SELECTOR,u);c==="other"&&(o=!0),this.bumpSpace();var g=this.clonePosition();if(!this.bumpIf("{"))return this.error(n==="select"?z.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT:z.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT,W(this.clonePosition(),this.clonePosition()));var y=this.parseMessage(t+1,n,r);if(y.err)return y;var T=this.tryParseArgumentClose(g);if(T.err)return T;a.push([c,{value:y.val,location:W(g,this.clonePosition())}]),l.add(c),this.bumpSpace(),i=this.parseIdentifierIfPossible(),c=i.value,u=i.location}return a.length===0?this.error(n==="select"?z.EXPECT_SELECT_ARGUMENT_SELECTOR:z.EXPECT_PLURAL_ARGUMENT_SELECTOR,W(this.clonePosition(),this.clonePosition())):this.requiresOtherClause&&!o?this.error(z.MISSING_OTHER_CLAUSE,W(this.clonePosition(),this.clonePosition())):{val:a,err:null}},e.prototype.tryParseDecimalInteger=function(t,n){var r=1,s=this.clonePosition();this.bumpIf("+")||this.bumpIf("-")&&(r=-1);for(var i=!1,o=0;!this.isEOF();){var a=this.char();if(a>=48&&a<=57)i=!0,o=o*10+(a-48),this.bump();else break}var l=W(s,this.clonePosition());return i?(o*=r,vd(o)?{val:o,err:null}:this.error(n,l)):this.error(t,l)},e.prototype.offset=function(){return this.position.offset},e.prototype.isEOF=function(){return this.offset()===this.message.length},e.prototype.clonePosition=function(){return{offset:this.position.offset,line:this.position.line,column:this.position.column}},e.prototype.char=function(){var t=this.position.offset;if(t>=this.message.length)throw Error("out of bound");var n=Al(this.message,t);if(n===void 0)throw Error("Offset ".concat(t," is at invalid UTF-16 code unit boundary"));return n},e.prototype.error=function(t,n){return{val:null,err:{kind:t,message:this.message,location:n}}},e.prototype.bump=function(){if(!this.isEOF()){var t=this.char();t===10?(this.position.line+=1,this.position.column=1,this.position.offset+=1):(this.position.column+=1,this.position.offset+=t<65536?1:2)}},e.prototype.bumpIf=function(t){if(_o(this.message,t,this.offset())){for(var n=0;n=0?(this.bumpTo(r),!0):(this.bumpTo(this.message.length),!1)},e.prototype.bumpTo=function(t){if(this.offset()>t)throw Error("targetOffset ".concat(t," must be greater than or equal to the current offset ").concat(this.offset()));for(t=Math.min(t,this.message.length);;){var n=this.offset();if(n===t)break;if(n>t)throw Error("targetOffset ".concat(t," is at invalid UTF-16 code unit boundary"));if(this.bump(),this.isEOF())break}},e.prototype.bumpSpace=function(){for(;!this.isEOF()&&Ol(this.char());)this.bump()},e.prototype.peek=function(){if(this.isEOF())return null;var t=this.char(),n=this.offset(),r=this.message.charCodeAt(n+(t>=65536?2:1));return r??null},e}();function Ts(e){return e>=97&&e<=122||e>=65&&e<=90}function Id(e){return Ts(e)||e===47}function Sd(e){return e===45||e===46||e>=48&&e<=57||e===95||e>=97&&e<=122||e>=65&&e<=90||e==183||e>=192&&e<=214||e>=216&&e<=246||e>=248&&e<=893||e>=895&&e<=8191||e>=8204&&e<=8205||e>=8255&&e<=8256||e>=8304&&e<=8591||e>=11264&&e<=12271||e>=12289&&e<=55295||e>=63744&&e<=64975||e>=65008&&e<=65533||e>=65536&&e<=983039}function Ol(e){return e>=9&&e<=13||e===32||e===133||e>=8206&&e<=8207||e===8232||e===8233}function Ad(e){return e>=33&&e<=35||e===36||e>=37&&e<=39||e===40||e===41||e===42||e===43||e===44||e===45||e>=46&&e<=47||e>=58&&e<=59||e>=60&&e<=62||e>=63&&e<=64||e===91||e===92||e===93||e===94||e===96||e===123||e===124||e===125||e===126||e===161||e>=162&&e<=165||e===166||e===167||e===169||e===171||e===172||e===174||e===176||e===177||e===182||e===187||e===191||e===215||e===247||e>=8208&&e<=8213||e>=8214&&e<=8215||e===8216||e===8217||e===8218||e>=8219&&e<=8220||e===8221||e===8222||e===8223||e>=8224&&e<=8231||e>=8240&&e<=8248||e===8249||e===8250||e>=8251&&e<=8254||e>=8257&&e<=8259||e===8260||e===8261||e===8262||e>=8263&&e<=8273||e===8274||e===8275||e>=8277&&e<=8286||e>=8592&&e<=8596||e>=8597&&e<=8601||e>=8602&&e<=8603||e>=8604&&e<=8607||e===8608||e>=8609&&e<=8610||e===8611||e>=8612&&e<=8613||e===8614||e>=8615&&e<=8621||e===8622||e>=8623&&e<=8653||e>=8654&&e<=8655||e>=8656&&e<=8657||e===8658||e===8659||e===8660||e>=8661&&e<=8691||e>=8692&&e<=8959||e>=8960&&e<=8967||e===8968||e===8969||e===8970||e===8971||e>=8972&&e<=8991||e>=8992&&e<=8993||e>=8994&&e<=9e3||e===9001||e===9002||e>=9003&&e<=9083||e===9084||e>=9085&&e<=9114||e>=9115&&e<=9139||e>=9140&&e<=9179||e>=9180&&e<=9185||e>=9186&&e<=9254||e>=9255&&e<=9279||e>=9280&&e<=9290||e>=9291&&e<=9311||e>=9472&&e<=9654||e===9655||e>=9656&&e<=9664||e===9665||e>=9666&&e<=9719||e>=9720&&e<=9727||e>=9728&&e<=9838||e===9839||e>=9840&&e<=10087||e===10088||e===10089||e===10090||e===10091||e===10092||e===10093||e===10094||e===10095||e===10096||e===10097||e===10098||e===10099||e===10100||e===10101||e>=10132&&e<=10175||e>=10176&&e<=10180||e===10181||e===10182||e>=10183&&e<=10213||e===10214||e===10215||e===10216||e===10217||e===10218||e===10219||e===10220||e===10221||e===10222||e===10223||e>=10224&&e<=10239||e>=10240&&e<=10495||e>=10496&&e<=10626||e===10627||e===10628||e===10629||e===10630||e===10631||e===10632||e===10633||e===10634||e===10635||e===10636||e===10637||e===10638||e===10639||e===10640||e===10641||e===10642||e===10643||e===10644||e===10645||e===10646||e===10647||e===10648||e>=10649&&e<=10711||e===10712||e===10713||e===10714||e===10715||e>=10716&&e<=10747||e===10748||e===10749||e>=10750&&e<=11007||e>=11008&&e<=11055||e>=11056&&e<=11076||e>=11077&&e<=11078||e>=11079&&e<=11084||e>=11085&&e<=11123||e>=11124&&e<=11125||e>=11126&&e<=11157||e===11158||e>=11159&&e<=11263||e>=11776&&e<=11777||e===11778||e===11779||e===11780||e===11781||e>=11782&&e<=11784||e===11785||e===11786||e===11787||e===11788||e===11789||e>=11790&&e<=11798||e===11799||e>=11800&&e<=11801||e===11802||e===11803||e===11804||e===11805||e>=11806&&e<=11807||e===11808||e===11809||e===11810||e===11811||e===11812||e===11813||e===11814||e===11815||e===11816||e===11817||e>=11818&&e<=11822||e===11823||e>=11824&&e<=11833||e>=11834&&e<=11835||e>=11836&&e<=11839||e===11840||e===11841||e===11842||e>=11843&&e<=11855||e>=11856&&e<=11857||e===11858||e>=11859&&e<=11903||e>=12289&&e<=12291||e===12296||e===12297||e===12298||e===12299||e===12300||e===12301||e===12302||e===12303||e===12304||e===12305||e>=12306&&e<=12307||e===12308||e===12309||e===12310||e===12311||e===12312||e===12313||e===12314||e===12315||e===12316||e===12317||e>=12318&&e<=12319||e===12320||e===12336||e===64830||e===64831||e>=65093&&e<=65094}function Is(e){e.forEach(function(t){if(delete t.location,El(t)||vl(t))for(var n in t.options)delete t.options[n].location,Is(t.options[n].value);else dl(t)&&yl(t.style)||(ml(t)||gl(t))&&vs(t.style)?delete t.style.location:_l(t)&&Is(t.children)})}function wd(e,t){t===void 0&&(t={}),t=U({shouldParseSkeletons:!0,requiresOtherClause:!0},t);var n=new Td(e,t).parse();if(n.err){var r=SyntaxError(z[n.err.kind]);throw r.location=n.err.location,r.originalMessage=n.err.message,r}return t!=null&&t.captureLocation||Is(n.val),n.val}function qe(e,t){var n=t&&t.cache?t.cache:Ld,r=t&&t.serializer?t.serializer:Nd,s=t&&t.strategy?t.strategy:Rd;return s(e,{cache:n,serializer:r})}function Od(e){return e==null||typeof e=="number"||typeof e=="boolean"}function Rl(e,t,n,r){var s=Od(r)?r:n(r),i=t.get(s);return typeof i>"u"&&(i=e.call(this,r),t.set(s,i)),i}function Cl(e,t,n){var r=Array.prototype.slice.call(arguments,3),s=n(r),i=t.get(s);return typeof i>"u"&&(i=e.apply(this,r),t.set(s,i)),i}function ni(e,t,n,r,s){return n.bind(t,e,r,s)}function Rd(e,t){var n=e.length===1?Rl:Cl;return ni(e,this,n,t.cache.create(),t.serializer)}function Cd(e,t){return ni(e,this,Cl,t.cache.create(),t.serializer)}function Pd(e,t){return ni(e,this,Rl,t.cache.create(),t.serializer)}var Nd=function(){return JSON.stringify(arguments)};function ri(){this.cache=Object.create(null)}ri.prototype.get=function(e){return this.cache[e]};ri.prototype.set=function(e,t){this.cache[e]=t};var Ld={create:function(){return new ri}},Ye={variadic:Cd,monadic:Pd},tt;(function(e){e.MISSING_VALUE="MISSING_VALUE",e.INVALID_VALUE="INVALID_VALUE",e.MISSING_INTL_API="MISSING_INTL_API"})(tt||(tt={}));var At=function(e){Ke(t,e);function t(n,r,s){var i=e.call(this,n)||this;return i.code=r,i.originalMessage=s,i}return t.prototype.toString=function(){return"[formatjs Error: ".concat(this.code,"] ").concat(this.message)},t}(Error),To=function(e){Ke(t,e);function t(n,r,s,i){return e.call(this,'Invalid values for "'.concat(n,'": "').concat(r,'". Options are "').concat(Object.keys(s).join('", "'),'"'),tt.INVALID_VALUE,i)||this}return t}(At),Md=function(e){Ke(t,e);function t(n,r,s){return e.call(this,'Value for "'.concat(n,'" must be of type ').concat(r),tt.INVALID_VALUE,s)||this}return t}(At),Dd=function(e){Ke(t,e);function t(n,r){return e.call(this,'The intl string context variable "'.concat(n,'" was not provided to the string "').concat(r,'"'),tt.MISSING_VALUE,r)||this}return t}(At),Se;(function(e){e[e.literal=0]="literal",e[e.object=1]="object"})(Se||(Se={}));function Hd(e){return e.length<2?e:e.reduce(function(t,n){var r=t[t.length-1];return!r||r.type!==Se.literal||n.type!==Se.literal?t.push(n):r.value+=n.value,t},[])}function Bd(e){return typeof e=="function"}function or(e,t,n,r,s,i,o){if(e.length===1&&mo(e[0]))return[{type:Se.literal,value:e[0].value}];for(var a=[],l=0,c=e;l[{path:"/404",name:"not-found",alias:"/:pathMatch(.*)*",meta:{title:"Item not found"},component:()=>V(()=>import("./AppNotFoundView-91c459f7.js"),[],import.meta.url)},{path:"/",name:"home",component:()=>V(()=>import("./MainOverviewView-d2a5fb0c.js"),["./RouteView-a4ddf9f0.css","./MeshResources-e8681616.css"],import.meta.url)},...e,...t,...r,...n,...s];function zp(e=""){return{baseGuiPath:"/gui",apiUrl:e,version:"1.7.0"}}class Zp{constructor(t){ht(this,"env");let n=t;const r=(a,l="")=>this.var(a,(n==null?void 0:n[a])??l),s=this.getConfig(),i=Xp(r("KUMA_VERSION",s.version)),o=encodeURIComponent(r("KUMA_PRODUCT_NAME"));n={...n,KUMA_UTM_QUERY_PARAMS:`utm_source=${o}&utm_medium=${o}`},this.env={...n,KUMA_INSTALL_URL:`${r("KUMA_INSTALL_URL")}?${r("KUMA_UTM_QUERY_PARAMS")}`,KUMA_DOCS_URL:`${r("KUMA_DOCS_URL")}/${i.patch==="0.0.0"?"dev":i.patch.replace(/\.\d+$/,".x")}`,KUMA_VERSION:i.pre,KUMA_API_URL:r("KUMA_API_URL")||s.apiUrl,KUMA_BASE_PATH:r("KUMA_BASE_PATH")||s.baseGuiPath}}var(t,n=""){var r;return((r=this.env)==null?void 0:r[t])??n}getConfig(){const t=document.querySelector("#kuma-config");let n;if(t instanceof HTMLScriptElement&&t.textContent)try{n=JSON.parse(t.textContent.trim())}catch(r){console.error(r)}return n||(n=zp(),console.error("Unable to parse kuma config. Falling back to defaults")),n.apiUrl=Wp(n.apiUrl),n}}function pl(e){return e.endsWith("/")?pl(e.slice(0,-1)):e}function Wp(e){return e=!e.includes("://")&&!e.startsWith("/")?`/${e}`:e,pl(e)}function Xp(e){const[t,n,...r]=e.split(".");if(isNaN(parseInt(t)))return{major:t,minor:t,patch:t,pre:t};const[s,i]=r.join(".").split("-");return{major:t,minor:`${t}.${n}`,patch:`${t}.${n}.${s}`,pre:`${t}.${n}.${s}${i!==void 0?`-${i}`:""}`}}var Es=function(e,t){return Es=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var s in r)Object.prototype.hasOwnProperty.call(r,s)&&(n[s]=r[s])},Es(e,t)};function Ke(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");Es(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}var U=function(){return U=Object.assign||function(e){for(var t,n=1,r=arguments.length;n0}),n=[],r=0,s=t;r1)throw new RangeError("integer-width stems only accept a single optional option");s.options[0].replace(sd,function(l,c,u,f,h,g){if(c)t.minimumIntegerDigits=u.length;else{if(f&&h)throw new Error("We currently do not support maximum integer digits");if(g)throw new Error("We currently do not support exact integer digits")}return""});continue}if(Il.test(s.stem)){t.minimumIntegerDigits=s.stem.length;continue}if(go.test(s.stem)){if(s.options.length>1)throw new RangeError("Fraction-precision stems only accept a single optional option");s.stem.replace(go,function(l,c,u,f,h,g){return u==="*"?t.minimumFractionDigits=c.length:f&&f[0]==="#"?t.maximumFractionDigits=f.length:h&&g?(t.minimumFractionDigits=h.length,t.maximumFractionDigits=h.length+g.length):(t.minimumFractionDigits=c.length,t.maximumFractionDigits=c.length),""});var i=s.options[0];i==="w"?t=U(U({},t),{trailingZeroDisplay:"stripIfInteger"}):i&&(t=U(U({},t),Eo(i)));continue}if(Tl.test(s.stem)){t=U(U({},t),Eo(s.stem));continue}var o=Sl(s.stem);o&&(t=U(U({},t),o));var a=id(s.stem);a&&(t=U(U({},t),a))}return t}var Xn={"001":["H","h"],AC:["H","h","hb","hB"],AD:["H","hB"],AE:["h","hB","hb","H"],AF:["H","hb","hB","h"],AG:["h","hb","H","hB"],AI:["H","h","hb","hB"],AL:["h","H","hB"],AM:["H","hB"],AO:["H","hB"],AR:["H","h","hB","hb"],AS:["h","H"],AT:["H","hB"],AU:["h","hb","H","hB"],AW:["H","hB"],AX:["H"],AZ:["H","hB","h"],BA:["H","hB","h"],BB:["h","hb","H","hB"],BD:["h","hB","H"],BE:["H","hB"],BF:["H","hB"],BG:["H","hB","h"],BH:["h","hB","hb","H"],BJ:["H","hB"],BL:["H","hB"],BM:["h","hb","H","hB"],BN:["hb","hB","h","H"],BO:["H","hB","h","hb"],BQ:["H"],BR:["H","hB"],BS:["h","hb","H","hB"],BT:["h","H"],BW:["H","h","hb","hB"],BZ:["H","h","hb","hB"],CA:["h","hb","H","hB"],CC:["H","h","hb","hB"],CD:["hB","H"],CF:["H","h","hB"],CG:["H","hB"],CH:["H","hB","h"],CI:["H","hB"],CK:["H","h","hb","hB"],CL:["H","h","hB","hb"],CM:["H","h","hB"],CN:["H","hB","hb","h"],CO:["h","H","hB","hb"],CP:["H"],CR:["H","h","hB","hb"],CU:["H","h","hB","hb"],CV:["H","hB"],CX:["H","h","hb","hB"],CY:["h","H","hb","hB"],CZ:["H"],DE:["H","hB"],DG:["H","h","hb","hB"],DJ:["h","H"],DK:["H"],DM:["h","hb","H","hB"],DO:["h","H","hB","hb"],DZ:["h","hB","hb","H"],EA:["H","h","hB","hb"],EC:["H","hB","h","hb"],EE:["H","hB"],EG:["h","hB","hb","H"],EH:["h","hB","hb","H"],ER:["h","H"],ES:["H","hB","h","hb"],ET:["hB","hb","h","H"],FI:["H"],FJ:["h","hb","H","hB"],FK:["H","h","hb","hB"],FM:["h","hb","H","hB"],FR:["H","hB"],GA:["H","hB"],GB:["H","h","hb","hB"],GD:["h","hb","H","hB"],GE:["H","hB","h"],GF:["H","hB"],GG:["H","h","hb","hB"],GH:["h","H"],GI:["H","h","hb","hB"],GM:["h","hb","H","hB"],GN:["H","hB"],GP:["H","hB"],GQ:["H","hB","h","hb"],GR:["h","H","hb","hB"],GT:["H","h","hB","hb"],GU:["h","hb","H","hB"],GW:["H","hB"],GY:["h","hb","H","hB"],HK:["h","hB","hb","H"],HN:["H","h","hB","hb"],HR:["H","hB"],IC:["H","h","hB","hb"],ID:["H"],IE:["H","h","hb","hB"],IL:["H","hB"],IM:["H","h","hb","hB"],IN:["h","H"],IO:["H","h","hb","hB"],IQ:["h","hB","hb","H"],IR:["hB","H"],IS:["H"],IT:["H","hB"],JE:["H","h","hb","hB"],JM:["h","hb","H","hB"],JO:["h","hB","hb","H"],JP:["H","h","K"],KE:["hB","hb","H","h"],KG:["H","h","hB","hb"],KH:["hB","h","H","hb"],KI:["h","hb","H","hB"],KM:["H","h","hB","hb"],KN:["h","hb","H","hB"],KP:["h","H","hB","hb"],KR:["h","H","hB","hb"],KW:["h","hB","hb","H"],KY:["h","hb","H","hB"],KZ:["H","hB"],LA:["H","hb","hB","h"],LB:["h","hB","hb","H"],LC:["h","hb","H","hB"],LI:["H","hB","h"],LK:["H","h","hB","hb"],LR:["h","hb","H","hB"],LS:["h","H"],LT:["H","h","hb","hB"],LU:["H","h","hB"],LV:["H","hB","hb","h"],LY:["h","hB","hb","H"],MA:["H","h","hB","hb"],MC:["H","hB"],MD:["H","hB"],ME:["H","hB","h"],MF:["H","hB"],MH:["h","hb","H","hB"],MK:["H","h","hb","hB"],ML:["H"],MM:["hB","hb","H","h"],MN:["H","h","hb","hB"],MO:["h","hB","hb","H"],MP:["h","hb","H","hB"],MQ:["H","hB"],MR:["h","hB","hb","H"],MS:["H","h","hb","hB"],MW:["h","hb","H","hB"],MX:["H","h","hB","hb"],MY:["hb","hB","h","H"],MZ:["H","hB"],NA:["h","H","hB","hb"],NC:["H","hB"],NE:["H"],NF:["H","h","hb","hB"],NG:["H","h","hb","hB"],NI:["H","h","hB","hb"],NL:["H","hB"],NP:["H","h","hB"],NR:["H","h","hb","hB"],NU:["H","h","hb","hB"],NZ:["h","hb","H","hB"],OM:["h","hB","hb","H"],PA:["h","H","hB","hb"],PE:["H","hB","h","hb"],PF:["H","h","hB"],PG:["h","H"],PH:["h","hB","hb","H"],PK:["h","hB","H"],PM:["H","hB"],PN:["H","h","hb","hB"],PR:["h","H","hB","hb"],PS:["h","hB","hb","H"],PT:["H","hB"],PW:["h","H"],PY:["H","h","hB","hb"],QA:["h","hB","hb","H"],RE:["H","hB"],RO:["H","hB"],RS:["H","hB","h"],RU:["H"],SA:["h","hB","hb","H"],SB:["h","hb","H","hB"],SC:["H","h","hB"],SD:["h","hB","hb","H"],SE:["H"],SG:["h","hb","H","hB"],SH:["H","h","hb","hB"],SI:["H","hB"],SJ:["H"],SK:["H"],SL:["h","hb","H","hB"],SM:["H","h","hB"],SN:["H","h","hB"],SO:["h","H"],SR:["H","hB"],SS:["h","hb","H","hB"],ST:["H","hB"],SV:["H","h","hB","hb"],SX:["H","h","hb","hB"],SY:["h","hB","hb","H"],SZ:["h","hb","H","hB"],TA:["H","h","hb","hB"],TC:["h","hb","H","hB"],TD:["h","H","hB"],TF:["H","h","hB"],TG:["H","hB"],TL:["H","hB","hb","h"],TN:["h","hB","hb","H"],TO:["h","H"],TR:["H","hB"],TT:["h","hb","H","hB"],TW:["hB","hb","h","H"],TZ:["hB","hb","H","h"],UA:["H","hB","h"],UG:["hB","hb","H","h"],UM:["h","hb","H","hB"],US:["h","hb","H","hB"],UY:["H","h","hB","hb"],UZ:["H","hB","h"],VA:["H","h","hB"],VC:["h","hb","H","hB"],VE:["h","H","hB","hb"],VG:["h","hb","H","hB"],VI:["h","hb","H","hB"],VU:["h","H"],WF:["H","hB"],WS:["h","H"],XK:["H","hB","h"],YE:["h","hB","hb","H"],YT:["H","hB"],ZA:["H","h","hb","hB"],ZM:["h","hb","H","hB"],"af-ZA":["H","h","hB","hb"],"ar-001":["h","hB","hb","H"],"ca-ES":["H","h","hB"],"en-001":["h","hb","H","hB"],"es-BO":["H","h","hB","hb"],"es-BR":["H","h","hB","hb"],"es-EC":["H","h","hB","hb"],"es-ES":["H","h","hB","hb"],"es-GQ":["H","h","hB","hb"],"es-PE":["H","h","hB","hb"],"fr-CA":["H","h","hB"],"gl-ES":["H","h","hB"],"gu-IN":["hB","hb","h","H"],"hi-IN":["hB","h","H"],"it-CH":["H","h","hB"],"it-IT":["H","h","hB"],"kn-IN":["hB","h","H"],"ml-IN":["hB","h","H"],"mr-IN":["hB","hb","h","H"],"pa-IN":["hB","hb","h","H"],"ta-IN":["hB","h","hb","H"],"te-IN":["hB","h","H"],"zu-ZA":["H","hB","hb","h"]};function ad(e,t){for(var n="",r=0;r>1),l="a",c=ld(t);for((c=="H"||c=="k")&&(a=0);a-- >0;)n+=l;for(;o-- >0;)n=c+n}else s==="J"?n+="H":n+=s}return n}function ld(e){var t=e.hourCycle;if(t===void 0&&e.hourCycles&&e.hourCycles.length&&(t=e.hourCycles[0]),t)switch(t){case"h24":return"k";case"h23":return"H";case"h12":return"h";case"h11":return"K";default:throw new Error("Invalid hourCycle")}var n=e.language,r;n!=="root"&&(r=e.maximize().region);var s=Xn[r||""]||Xn[n||""]||Xn["".concat(n,"-001")]||Xn["001"];return s[0]}var Zr,cd=new RegExp("^".concat(bl.source,"*")),ud=new RegExp("".concat(bl.source,"*$"));function W(e,t){return{start:e,end:t}}var fd=!!String.prototype.startsWith,hd=!!String.fromCodePoint,pd=!!Object.fromEntries,dd=!!String.prototype.codePointAt,md=!!String.prototype.trimStart,gd=!!String.prototype.trimEnd,Ed=!!Number.isSafeInteger,vd=Ed?Number.isSafeInteger:function(e){return typeof e=="number"&&isFinite(e)&&Math.floor(e)===e&&Math.abs(e)<=9007199254740991},_s=!0;try{var _d=wl("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu");_s=((Zr=_d.exec("a"))===null||Zr===void 0?void 0:Zr[0])==="a"}catch{_s=!1}var _o=fd?function(e,t,n){return e.startsWith(t,n)}:function(e,t,n){return e.slice(n,n+t.length)===t},ys=hd?String.fromCodePoint:function(){for(var e=[],t=0;ts;){if(i=e[s++],i>1114111)throw RangeError(i+" is not a valid code point");n+=i<65536?String.fromCharCode(i):String.fromCharCode(((i-=65536)>>10)+55296,i%1024+56320)}return n},yo=pd?Object.fromEntries:function(e){for(var t={},n=0,r=e;n=n)){var r=e.charCodeAt(t),s;return r<55296||r>56319||t+1===n||(s=e.charCodeAt(t+1))<56320||s>57343?r:(r-55296<<10)+(s-56320)+65536}},yd=md?function(e){return e.trimStart()}:function(e){return e.replace(cd,"")},bd=gd?function(e){return e.trimEnd()}:function(e){return e.replace(ud,"")};function wl(e,t){return new RegExp(e,t)}var bs;if(_s){var bo=wl("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu");bs=function(e,t){var n;bo.lastIndex=t;var r=bo.exec(e);return(n=r[1])!==null&&n!==void 0?n:""}}else bs=function(e,t){for(var n=[];;){var r=Al(e,t);if(r===void 0||Ol(r)||Ad(r))break;n.push(r),t+=r>=65536?2:1}return ys.apply(void 0,n)};var Td=function(){function e(t,n){n===void 0&&(n={}),this.message=t,this.position={offset:0,line:1,column:1},this.ignoreTag=!!n.ignoreTag,this.locale=n.locale,this.requiresOtherClause=!!n.requiresOtherClause,this.shouldParseSkeletons=!!n.shouldParseSkeletons}return e.prototype.parse=function(){if(this.offset()!==0)throw Error("parser can only be used once");return this.parseMessage(0,"",!1)},e.prototype.parseMessage=function(t,n,r){for(var s=[];!this.isEOF();){var i=this.char();if(i===123){var o=this.parseArgument(t,r);if(o.err)return o;s.push(o.val)}else{if(i===125&&t>0)break;if(i===35&&(n==="plural"||n==="selectordinal")){var a=this.clonePosition();this.bump(),s.push({type:ce.pound,location:W(a,this.clonePosition())})}else if(i===60&&!this.ignoreTag&&this.peek()===47){if(r)break;return this.error(z.UNMATCHED_CLOSING_TAG,W(this.clonePosition(),this.clonePosition()))}else if(i===60&&!this.ignoreTag&&Ts(this.peek()||0)){var o=this.parseTag(t,n);if(o.err)return o;s.push(o.val)}else{var o=this.parseLiteral(t,n);if(o.err)return o;s.push(o.val)}}}return{val:s,err:null}},e.prototype.parseTag=function(t,n){var r=this.clonePosition();this.bump();var s=this.parseTagName();if(this.bumpSpace(),this.bumpIf("/>"))return{val:{type:ce.literal,value:"<".concat(s,"/>"),location:W(r,this.clonePosition())},err:null};if(this.bumpIf(">")){var i=this.parseMessage(t+1,n,!0);if(i.err)return i;var o=i.val,a=this.clonePosition();if(this.bumpIf("")?{val:{type:ce.tag,value:s,children:o,location:W(r,this.clonePosition())},err:null}:this.error(z.INVALID_TAG,W(a,this.clonePosition())))}else return this.error(z.UNCLOSED_TAG,W(r,this.clonePosition()))}else return this.error(z.INVALID_TAG,W(r,this.clonePosition()))},e.prototype.parseTagName=function(){var t=this.offset();for(this.bump();!this.isEOF()&&Sd(this.char());)this.bump();return this.message.slice(t,this.offset())},e.prototype.parseLiteral=function(t,n){for(var r=this.clonePosition(),s="";;){var i=this.tryParseQuote(n);if(i){s+=i;continue}var o=this.tryParseUnquoted(t,n);if(o){s+=o;continue}var a=this.tryParseLeftAngleBracket();if(a){s+=a;continue}break}var l=W(r,this.clonePosition());return{val:{type:ce.literal,value:s,location:l},err:null}},e.prototype.tryParseLeftAngleBracket=function(){return!this.isEOF()&&this.char()===60&&(this.ignoreTag||!Id(this.peek()||0))?(this.bump(),"<"):null},e.prototype.tryParseQuote=function(t){if(this.isEOF()||this.char()!==39)return null;switch(this.peek()){case 39:return this.bump(),this.bump(),"'";case 123:case 60:case 62:case 125:break;case 35:if(t==="plural"||t==="selectordinal")break;return null;default:return null}this.bump();var n=[this.char()];for(this.bump();!this.isEOF();){var r=this.char();if(r===39)if(this.peek()===39)n.push(39),this.bump();else{this.bump();break}else n.push(r);this.bump()}return ys.apply(void 0,n)},e.prototype.tryParseUnquoted=function(t,n){if(this.isEOF())return null;var r=this.char();return r===60||r===123||r===35&&(n==="plural"||n==="selectordinal")||r===125&&t>0?null:(this.bump(),ys(r))},e.prototype.parseArgument=function(t,n){var r=this.clonePosition();if(this.bump(),this.bumpSpace(),this.isEOF())return this.error(z.EXPECT_ARGUMENT_CLOSING_BRACE,W(r,this.clonePosition()));if(this.char()===125)return this.bump(),this.error(z.EMPTY_ARGUMENT,W(r,this.clonePosition()));var s=this.parseIdentifierIfPossible().value;if(!s)return this.error(z.MALFORMED_ARGUMENT,W(r,this.clonePosition()));if(this.bumpSpace(),this.isEOF())return this.error(z.EXPECT_ARGUMENT_CLOSING_BRACE,W(r,this.clonePosition()));switch(this.char()){case 125:return this.bump(),{val:{type:ce.argument,value:s,location:W(r,this.clonePosition())},err:null};case 44:return this.bump(),this.bumpSpace(),this.isEOF()?this.error(z.EXPECT_ARGUMENT_CLOSING_BRACE,W(r,this.clonePosition())):this.parseArgumentOptions(t,n,s,r);default:return this.error(z.MALFORMED_ARGUMENT,W(r,this.clonePosition()))}},e.prototype.parseIdentifierIfPossible=function(){var t=this.clonePosition(),n=this.offset(),r=bs(this.message,n),s=n+r.length;this.bumpTo(s);var i=this.clonePosition(),o=W(t,i);return{value:r,location:o}},e.prototype.parseArgumentOptions=function(t,n,r,s){var i,o=this.clonePosition(),a=this.parseIdentifierIfPossible().value,l=this.clonePosition();switch(a){case"":return this.error(z.EXPECT_ARGUMENT_TYPE,W(o,l));case"number":case"date":case"time":{this.bumpSpace();var c=null;if(this.bumpIf(",")){this.bumpSpace();var u=this.clonePosition(),f=this.parseSimpleArgStyleIfPossible();if(f.err)return f;var h=bd(f.val);if(h.length===0)return this.error(z.EXPECT_ARGUMENT_STYLE,W(this.clonePosition(),this.clonePosition()));var g=W(u,this.clonePosition());c={style:h,styleLocation:g}}var y=this.tryParseArgumentClose(s);if(y.err)return y;var T=W(s,this.clonePosition());if(c&&_o(c==null?void 0:c.style,"::",0)){var C=yd(c.style.slice(2));if(a==="number"){var f=this.parseNumberSkeletonFromString(C,c.styleLocation);return f.err?f:{val:{type:ce.number,value:r,location:T,style:f.val},err:null}}else{if(C.length===0)return this.error(z.EXPECT_DATE_TIME_SKELETON,T);var A=C;this.locale&&(A=ad(C,this.locale));var h={type:cn.dateTime,pattern:A,location:c.styleLocation,parsedOptions:this.shouldParseSkeletons?ed(A):{}},P=a==="date"?ce.date:ce.time;return{val:{type:P,value:r,location:T,style:h},err:null}}}return{val:{type:a==="number"?ce.number:a==="date"?ce.date:ce.time,value:r,location:T,style:(i=c==null?void 0:c.style)!==null&&i!==void 0?i:null},err:null}}case"plural":case"selectordinal":case"select":{var H=this.clonePosition();if(this.bumpSpace(),!this.bumpIf(","))return this.error(z.EXPECT_SELECT_ARGUMENT_OPTIONS,W(H,U({},H)));this.bumpSpace();var L=this.parseIdentifierIfPossible(),Z=0;if(a!=="select"&&L.value==="offset"){if(!this.bumpIf(":"))return this.error(z.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,W(this.clonePosition(),this.clonePosition()));this.bumpSpace();var f=this.tryParseDecimalInteger(z.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,z.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);if(f.err)return f;this.bumpSpace(),L=this.parseIdentifierIfPossible(),Z=f.val}var ae=this.tryParsePluralOrSelectOptions(t,a,n,L);if(ae.err)return ae;var y=this.tryParseArgumentClose(s);if(y.err)return y;var me=W(s,this.clonePosition());return a==="select"?{val:{type:ce.select,value:r,options:yo(ae.val),location:me},err:null}:{val:{type:ce.plural,value:r,options:yo(ae.val),offset:Z,pluralType:a==="plural"?"cardinal":"ordinal",location:me},err:null}}default:return this.error(z.INVALID_ARGUMENT_TYPE,W(o,l))}},e.prototype.tryParseArgumentClose=function(t){return this.isEOF()||this.char()!==125?this.error(z.EXPECT_ARGUMENT_CLOSING_BRACE,W(t,this.clonePosition())):(this.bump(),{val:!0,err:null})},e.prototype.parseSimpleArgStyleIfPossible=function(){for(var t=0,n=this.clonePosition();!this.isEOF();){var r=this.char();switch(r){case 39:{this.bump();var s=this.clonePosition();if(!this.bumpUntil("'"))return this.error(z.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE,W(s,this.clonePosition()));this.bump();break}case 123:{t+=1,this.bump();break}case 125:{if(t>0)t-=1;else return{val:this.message.slice(n.offset,this.offset()),err:null};break}default:this.bump();break}}return{val:this.message.slice(n.offset,this.offset()),err:null}},e.prototype.parseNumberSkeletonFromString=function(t,n){var r=[];try{r=nd(t)}catch{return this.error(z.INVALID_NUMBER_SKELETON,n)}return{val:{type:cn.number,tokens:r,location:n,parsedOptions:this.shouldParseSkeletons?od(r):{}},err:null}},e.prototype.tryParsePluralOrSelectOptions=function(t,n,r,s){for(var i,o=!1,a=[],l=new Set,c=s.value,u=s.location;;){if(c.length===0){var f=this.clonePosition();if(n!=="select"&&this.bumpIf("=")){var h=this.tryParseDecimalInteger(z.EXPECT_PLURAL_ARGUMENT_SELECTOR,z.INVALID_PLURAL_ARGUMENT_SELECTOR);if(h.err)return h;u=W(f,this.clonePosition()),c=this.message.slice(f.offset,this.offset())}else break}if(l.has(c))return this.error(n==="select"?z.DUPLICATE_SELECT_ARGUMENT_SELECTOR:z.DUPLICATE_PLURAL_ARGUMENT_SELECTOR,u);c==="other"&&(o=!0),this.bumpSpace();var g=this.clonePosition();if(!this.bumpIf("{"))return this.error(n==="select"?z.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT:z.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT,W(this.clonePosition(),this.clonePosition()));var y=this.parseMessage(t+1,n,r);if(y.err)return y;var T=this.tryParseArgumentClose(g);if(T.err)return T;a.push([c,{value:y.val,location:W(g,this.clonePosition())}]),l.add(c),this.bumpSpace(),i=this.parseIdentifierIfPossible(),c=i.value,u=i.location}return a.length===0?this.error(n==="select"?z.EXPECT_SELECT_ARGUMENT_SELECTOR:z.EXPECT_PLURAL_ARGUMENT_SELECTOR,W(this.clonePosition(),this.clonePosition())):this.requiresOtherClause&&!o?this.error(z.MISSING_OTHER_CLAUSE,W(this.clonePosition(),this.clonePosition())):{val:a,err:null}},e.prototype.tryParseDecimalInteger=function(t,n){var r=1,s=this.clonePosition();this.bumpIf("+")||this.bumpIf("-")&&(r=-1);for(var i=!1,o=0;!this.isEOF();){var a=this.char();if(a>=48&&a<=57)i=!0,o=o*10+(a-48),this.bump();else break}var l=W(s,this.clonePosition());return i?(o*=r,vd(o)?{val:o,err:null}:this.error(n,l)):this.error(t,l)},e.prototype.offset=function(){return this.position.offset},e.prototype.isEOF=function(){return this.offset()===this.message.length},e.prototype.clonePosition=function(){return{offset:this.position.offset,line:this.position.line,column:this.position.column}},e.prototype.char=function(){var t=this.position.offset;if(t>=this.message.length)throw Error("out of bound");var n=Al(this.message,t);if(n===void 0)throw Error("Offset ".concat(t," is at invalid UTF-16 code unit boundary"));return n},e.prototype.error=function(t,n){return{val:null,err:{kind:t,message:this.message,location:n}}},e.prototype.bump=function(){if(!this.isEOF()){var t=this.char();t===10?(this.position.line+=1,this.position.column=1,this.position.offset+=1):(this.position.column+=1,this.position.offset+=t<65536?1:2)}},e.prototype.bumpIf=function(t){if(_o(this.message,t,this.offset())){for(var n=0;n=0?(this.bumpTo(r),!0):(this.bumpTo(this.message.length),!1)},e.prototype.bumpTo=function(t){if(this.offset()>t)throw Error("targetOffset ".concat(t," must be greater than or equal to the current offset ").concat(this.offset()));for(t=Math.min(t,this.message.length);;){var n=this.offset();if(n===t)break;if(n>t)throw Error("targetOffset ".concat(t," is at invalid UTF-16 code unit boundary"));if(this.bump(),this.isEOF())break}},e.prototype.bumpSpace=function(){for(;!this.isEOF()&&Ol(this.char());)this.bump()},e.prototype.peek=function(){if(this.isEOF())return null;var t=this.char(),n=this.offset(),r=this.message.charCodeAt(n+(t>=65536?2:1));return r??null},e}();function Ts(e){return e>=97&&e<=122||e>=65&&e<=90}function Id(e){return Ts(e)||e===47}function Sd(e){return e===45||e===46||e>=48&&e<=57||e===95||e>=97&&e<=122||e>=65&&e<=90||e==183||e>=192&&e<=214||e>=216&&e<=246||e>=248&&e<=893||e>=895&&e<=8191||e>=8204&&e<=8205||e>=8255&&e<=8256||e>=8304&&e<=8591||e>=11264&&e<=12271||e>=12289&&e<=55295||e>=63744&&e<=64975||e>=65008&&e<=65533||e>=65536&&e<=983039}function Ol(e){return e>=9&&e<=13||e===32||e===133||e>=8206&&e<=8207||e===8232||e===8233}function Ad(e){return e>=33&&e<=35||e===36||e>=37&&e<=39||e===40||e===41||e===42||e===43||e===44||e===45||e>=46&&e<=47||e>=58&&e<=59||e>=60&&e<=62||e>=63&&e<=64||e===91||e===92||e===93||e===94||e===96||e===123||e===124||e===125||e===126||e===161||e>=162&&e<=165||e===166||e===167||e===169||e===171||e===172||e===174||e===176||e===177||e===182||e===187||e===191||e===215||e===247||e>=8208&&e<=8213||e>=8214&&e<=8215||e===8216||e===8217||e===8218||e>=8219&&e<=8220||e===8221||e===8222||e===8223||e>=8224&&e<=8231||e>=8240&&e<=8248||e===8249||e===8250||e>=8251&&e<=8254||e>=8257&&e<=8259||e===8260||e===8261||e===8262||e>=8263&&e<=8273||e===8274||e===8275||e>=8277&&e<=8286||e>=8592&&e<=8596||e>=8597&&e<=8601||e>=8602&&e<=8603||e>=8604&&e<=8607||e===8608||e>=8609&&e<=8610||e===8611||e>=8612&&e<=8613||e===8614||e>=8615&&e<=8621||e===8622||e>=8623&&e<=8653||e>=8654&&e<=8655||e>=8656&&e<=8657||e===8658||e===8659||e===8660||e>=8661&&e<=8691||e>=8692&&e<=8959||e>=8960&&e<=8967||e===8968||e===8969||e===8970||e===8971||e>=8972&&e<=8991||e>=8992&&e<=8993||e>=8994&&e<=9e3||e===9001||e===9002||e>=9003&&e<=9083||e===9084||e>=9085&&e<=9114||e>=9115&&e<=9139||e>=9140&&e<=9179||e>=9180&&e<=9185||e>=9186&&e<=9254||e>=9255&&e<=9279||e>=9280&&e<=9290||e>=9291&&e<=9311||e>=9472&&e<=9654||e===9655||e>=9656&&e<=9664||e===9665||e>=9666&&e<=9719||e>=9720&&e<=9727||e>=9728&&e<=9838||e===9839||e>=9840&&e<=10087||e===10088||e===10089||e===10090||e===10091||e===10092||e===10093||e===10094||e===10095||e===10096||e===10097||e===10098||e===10099||e===10100||e===10101||e>=10132&&e<=10175||e>=10176&&e<=10180||e===10181||e===10182||e>=10183&&e<=10213||e===10214||e===10215||e===10216||e===10217||e===10218||e===10219||e===10220||e===10221||e===10222||e===10223||e>=10224&&e<=10239||e>=10240&&e<=10495||e>=10496&&e<=10626||e===10627||e===10628||e===10629||e===10630||e===10631||e===10632||e===10633||e===10634||e===10635||e===10636||e===10637||e===10638||e===10639||e===10640||e===10641||e===10642||e===10643||e===10644||e===10645||e===10646||e===10647||e===10648||e>=10649&&e<=10711||e===10712||e===10713||e===10714||e===10715||e>=10716&&e<=10747||e===10748||e===10749||e>=10750&&e<=11007||e>=11008&&e<=11055||e>=11056&&e<=11076||e>=11077&&e<=11078||e>=11079&&e<=11084||e>=11085&&e<=11123||e>=11124&&e<=11125||e>=11126&&e<=11157||e===11158||e>=11159&&e<=11263||e>=11776&&e<=11777||e===11778||e===11779||e===11780||e===11781||e>=11782&&e<=11784||e===11785||e===11786||e===11787||e===11788||e===11789||e>=11790&&e<=11798||e===11799||e>=11800&&e<=11801||e===11802||e===11803||e===11804||e===11805||e>=11806&&e<=11807||e===11808||e===11809||e===11810||e===11811||e===11812||e===11813||e===11814||e===11815||e===11816||e===11817||e>=11818&&e<=11822||e===11823||e>=11824&&e<=11833||e>=11834&&e<=11835||e>=11836&&e<=11839||e===11840||e===11841||e===11842||e>=11843&&e<=11855||e>=11856&&e<=11857||e===11858||e>=11859&&e<=11903||e>=12289&&e<=12291||e===12296||e===12297||e===12298||e===12299||e===12300||e===12301||e===12302||e===12303||e===12304||e===12305||e>=12306&&e<=12307||e===12308||e===12309||e===12310||e===12311||e===12312||e===12313||e===12314||e===12315||e===12316||e===12317||e>=12318&&e<=12319||e===12320||e===12336||e===64830||e===64831||e>=65093&&e<=65094}function Is(e){e.forEach(function(t){if(delete t.location,El(t)||vl(t))for(var n in t.options)delete t.options[n].location,Is(t.options[n].value);else dl(t)&&yl(t.style)||(ml(t)||gl(t))&&vs(t.style)?delete t.style.location:_l(t)&&Is(t.children)})}function wd(e,t){t===void 0&&(t={}),t=U({shouldParseSkeletons:!0,requiresOtherClause:!0},t);var n=new Td(e,t).parse();if(n.err){var r=SyntaxError(z[n.err.kind]);throw r.location=n.err.location,r.originalMessage=n.err.message,r}return t!=null&&t.captureLocation||Is(n.val),n.val}function qe(e,t){var n=t&&t.cache?t.cache:Ld,r=t&&t.serializer?t.serializer:Nd,s=t&&t.strategy?t.strategy:Rd;return s(e,{cache:n,serializer:r})}function Od(e){return e==null||typeof e=="number"||typeof e=="boolean"}function Rl(e,t,n,r){var s=Od(r)?r:n(r),i=t.get(s);return typeof i>"u"&&(i=e.call(this,r),t.set(s,i)),i}function Cl(e,t,n){var r=Array.prototype.slice.call(arguments,3),s=n(r),i=t.get(s);return typeof i>"u"&&(i=e.apply(this,r),t.set(s,i)),i}function ni(e,t,n,r,s){return n.bind(t,e,r,s)}function Rd(e,t){var n=e.length===1?Rl:Cl;return ni(e,this,n,t.cache.create(),t.serializer)}function Cd(e,t){return ni(e,this,Cl,t.cache.create(),t.serializer)}function Pd(e,t){return ni(e,this,Rl,t.cache.create(),t.serializer)}var Nd=function(){return JSON.stringify(arguments)};function ri(){this.cache=Object.create(null)}ri.prototype.get=function(e){return this.cache[e]};ri.prototype.set=function(e,t){this.cache[e]=t};var Ld={create:function(){return new ri}},Ye={variadic:Cd,monadic:Pd},tt;(function(e){e.MISSING_VALUE="MISSING_VALUE",e.INVALID_VALUE="INVALID_VALUE",e.MISSING_INTL_API="MISSING_INTL_API"})(tt||(tt={}));var At=function(e){Ke(t,e);function t(n,r,s){var i=e.call(this,n)||this;return i.code=r,i.originalMessage=s,i}return t.prototype.toString=function(){return"[formatjs Error: ".concat(this.code,"] ").concat(this.message)},t}(Error),To=function(e){Ke(t,e);function t(n,r,s,i){return e.call(this,'Invalid values for "'.concat(n,'": "').concat(r,'". Options are "').concat(Object.keys(s).join('", "'),'"'),tt.INVALID_VALUE,i)||this}return t}(At),Md=function(e){Ke(t,e);function t(n,r,s){return e.call(this,'Value for "'.concat(n,'" must be of type ').concat(r),tt.INVALID_VALUE,s)||this}return t}(At),Dd=function(e){Ke(t,e);function t(n,r){return e.call(this,'The intl string context variable "'.concat(n,'" was not provided to the string "').concat(r,'"'),tt.MISSING_VALUE,r)||this}return t}(At),Se;(function(e){e[e.literal=0]="literal",e[e.object=1]="object"})(Se||(Se={}));function Hd(e){return e.length<2?e:e.reduce(function(t,n){var r=t[t.length-1];return!r||r.type!==Se.literal||n.type!==Se.literal?t.push(n):r.value+=n.value,t},[])}function Bd(e){return typeof e=="function"}function or(e,t,n,r,s,i,o){if(e.length===1&&mo(e[0]))return[{type:Se.literal,value:e[0].value}];for(var a=[],l=0,c=e;l"u")){var n=Intl.NumberFormat.supportedLocalesOf(t);return n.length>0?new Intl.Locale(n[0]):new Intl.Locale(typeof t=="string"?t:t[0])}},e.__parse=wd,e.formats={number:{integer:{maximumFractionDigits:0},currency:{style:"currency"},percent:{style:"percent"}},date:{short:{month:"numeric",day:"numeric",year:"2-digit"},medium:{month:"short",day:"numeric",year:"numeric"},long:{month:"long",day:"numeric",year:"numeric"},full:{weekday:"long",month:"long",day:"numeric",year:"numeric"}},time:{short:{hour:"numeric",minute:"numeric"},medium:{hour:"numeric",minute:"numeric",second:"numeric"},long:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"},full:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"}}},e}(),xt;(function(e){e.FORMAT_ERROR="FORMAT_ERROR",e.UNSUPPORTED_FORMATTER="UNSUPPORTED_FORMATTER",e.INVALID_CONFIG="INVALID_CONFIG",e.MISSING_DATA="MISSING_DATA",e.MISSING_TRANSLATION="MISSING_TRANSLATION"})(xt||(xt={}));var kn=function(e){Ke(t,e);function t(n,r,s){var i=this,o=s?s instanceof Error?s:new Error(String(s)):void 0;return i=e.call(this,"[@formatjs/intl Error ".concat(n,"] ").concat(r,` `).concat(o?` @@ -64,4 +64,4 @@ Try polyfilling it using "@formatjs/intl-pluralrules" Try polyfilling it using "@formatjs/intl-relativetimeformat" `,tt.MISSING_INTL_API));try{return am(e,t,s).format(n,r)}catch(o){e.onError(new Be("Error formatting relative time.",e.locale,o))}return String(n)}var cm=["style","currency","currencyDisplay","unit","unitDisplay","useGrouping","minimumIntegerDigits","minimumFractionDigits","maximumFractionDigits","minimumSignificantDigits","maximumSignificantDigits","compactDisplay","currencyDisplay","currencySign","notation","signDisplay","unit","unitDisplay","numberingSystem"];function Dl(e,t,n){var r=e.locale,s=e.formats,i=e.onError;n===void 0&&(n={});var o=n.format,a=o&&si(s,"number",o,i)||{},l=$t(n,cm,a);return t(r,l)}function um(e,t,n,r){r===void 0&&(r={});try{return Dl(e,t,r).format(n)}catch(s){e.onError(new Be("Error formatting number.",e.locale,s))}return String(n)}function fm(e,t,n,r){r===void 0&&(r={});try{return Dl(e,t,r).formatToParts(n)}catch(s){e.onError(new Be("Error formatting number.",e.locale,s))}return[]}function hm(e){var t=e?e[Object.keys(e)[0]]:void 0;return typeof t=="string"}function pm(e){e.onWarn&&e.defaultRichTextElements&&hm(e.messages||{})&&e.onWarn(`[@formatjs/intl] "defaultRichTextElements" was specified but "message" was not pre-compiled. Please consider using "@formatjs/cli" to pre-compile your messages for performance. -For more details see https://formatjs.io/docs/getting-started/message-distribution`)}function dm(e,t){var n=zd(t),r=U(U({},Kd),e),s=r.locale,i=r.defaultLocale,o=r.onError;return s?!Intl.NumberFormat.supportedLocalesOf(s).length&&o?o(new Io('Missing locale data for locale: "'.concat(s,'" in Intl.NumberFormat. Using default locale: "').concat(i,'" as fallback. See https://formatjs.io/docs/react-intl#runtime-requirements for more details'))):!Intl.DateTimeFormat.supportedLocalesOf(s).length&&o&&o(new Io('Missing locale data for locale: "'.concat(s,'" in Intl.DateTimeFormat. Using default locale: "').concat(i,'" as fallback. See https://formatjs.io/docs/react-intl#runtime-requirements for more details'))):(o&&o(new $d('"locale" was not configured, using "'.concat(i,'" as fallback. See https://formatjs.io/docs/react-intl/api#intlshape for more details'))),r.locale=r.defaultLocale||"en"),pm(r),U(U({},r),{formatters:n,formatNumber:um.bind(null,r,n.getNumberFormat),formatNumberToParts:fm.bind(null,r,n.getNumberFormat),formatRelativeTime:lm.bind(null,r,n.getRelativeTimeFormat),formatDate:Wd.bind(null,r,n.getDateTimeFormat),formatDateToParts:Yd.bind(null,r,n.getDateTimeFormat),formatTime:Xd.bind(null,r,n.getDateTimeFormat),formatDateTimeRange:qd.bind(null,r,n.getDateTimeFormat),formatTimeToParts:Qd.bind(null,r,n.getDateTimeFormat),formatPlural:im.bind(null,r,n.getPluralRules),formatMessage:wo.bind(null,r,n),$t:wo.bind(null,r,n),formatList:rm.bind(null,r,n.getListFormat),formatListToParts:Ml.bind(null,r,n.getListFormat),formatDisplayName:em.bind(null,r,n.getDisplayNames)})}var mm=xn;xn.flatten=xn;xn.unflatten=xl;function Hl(e){return e&&e.constructor&&typeof e.constructor.isBuffer=="function"&&e.constructor.isBuffer(e)}function Bl(e){return e}function xn(e,t){t=t||{};const n=t.delimiter||".",r=t.maxDepth,s=t.transformKey||Bl,i={};function o(a,l,c){c=c||1,Object.keys(a).forEach(function(u){const f=a[u],h=t.safe&&Array.isArray(f),g=Object.prototype.toString.call(f),y=Hl(f),T=g==="[object Object]"||g==="[object Array]",C=l?l+n+s(u):s(u);if(!h&&!y&&T&&Object.keys(f).length&&(!t.maxDepth||c0&&(f=o(u.shift()),h=o(u[0]))}g[f]=xl(e[c],t)}),i}const gm=Nl(),Em=(e,t,n=!1)=>{const r=dm({...typeof n=="boolean"?null:n,locale:e,messages:mm.flatten(t,{safe:!0})},gm),{$t:s,...i}=r,o=i,a={t:(l,c,u)=>o.formatMessage({id:l},c,u),te:l=>!!o.messages[l],tm:l=>o.messages[l]||[],...o,source:t};return typeof n=="boolean"&&n===!0||typeof n!="boolean"&&n.isGlobal,a};function vm(e){const t=e.split(/([A-Z][a-z]+)/).join(" ").replace(/\s+/g," ").trim();return t.charAt(0).toUpperCase()+t.substring(1)}function ii(e,t,n=void 0){if(typeof e!="object"||Array.isArray(e)||Array.isArray(t)&&t.length===0)return n;const r=Array.isArray(t)?t:t.split(".");if(r.length===1){const s=e[r[0]];return s===void 0?n:s}return ii(e[r[0]],r.slice(1),n)}class Ro extends Error{get key(){return this.message}}const _m=e=>{const t=Em("en-us",e,!0);return{...t,t:function(...n){const r=n[0];try{if(typeof ii(e,r)>"u")throw r.startsWith("http.api.")?new Ro(r):new Error(`Missing message: "${r}" for locale "en-us", using id as fallback`);return t.t(...n)}catch(s){switch(!0){case s instanceof Ro:return vm(s.key.split(".").pop());default:throw s}}}}};class ym{constructor(t,n){this.client=t,this.env=n}get baseUrl(){return this.client.baseUrl}setBaseUrl(t){this.client.baseUrl=t}}class bm extends ym{getInfo(){return this.client.get("/")}async getStatus(){try{const{response:t}=await this.client.raw("/");return t.status===200?"OK":null}catch{return null}}async getLatestVersion(){return this.client.get(this.env("KUMA_VERSION_URL"))}getConfig(){return this.client.get("/config")}getPolicyTypes(){return this.client.get("/policies")}getGlobalInsights(){return this.client.get("/global-insights")}getZones(t){return this.client.get("/zones",{params:t})}getZone({name:t},n){return this.client.get(`/zones/${t}`,{params:n})}createZone(t){return this.client.post("/provision-zone",t)}updateZone(t){return this.client.put(`/zones/${t.name}`,t)}deleteZone({name:t}){return this.client.delete(`/zones/${t}`)}getAllZoneOverviews(t){return this.client.get("/zones+insights",{params:t})}getZoneOverview({name:t},n){return this.client.get(`/zones+insights/${t}`,{params:n})}getZoneIngressData({zoneIngressName:t,dataPath:n},r){return this.client.get(`/zoneingresses/${t}/${n}`,{params:r})}getAllZoneIngressOverviews(t){return this.client.get("/zoneingresses+insights",{params:t})}getZoneIngressOverview({name:t},n){return this.client.get(`/zoneingresses+insights/${t}`,{params:n})}getZoneEgressData({zoneEgressName:t,dataPath:n},r){return this.client.get(`/zoneegresses/${t}/${n}`,{params:r})}getAllZoneEgressOverviews(t){return this.client.get("/zoneegressoverviews",{params:t})}getZoneEgressOverview({name:t},n){return this.client.get(`/zoneegressoverviews/${t}`,{params:n})}getAllMeshes(t){return this.client.get("/meshes",{params:t})}getMesh({name:t},n){return this.client.get(`/meshes/${t}`,{params:n})}getAllMeshInsights(t){return this.client.get("/mesh-insights",{params:t})}getMeshInsights({name:t},n){return this.client.get(`/mesh-insights/${t}`,{params:n})}getAllDataplanes(t){return this.client.get("/dataplanes",{params:t})}getDataplaneFromMesh({mesh:t,name:n},r){return this.client.get(`/meshes/${t}/dataplanes/${n}`,{params:r})}getAllDataplaneOverviews(t){return this.client.get("/dataplanes+insights",{params:t})}getAllDataplaneOverviewsFromMesh({mesh:t},n){return this.client.get(`/meshes/${t}/dataplanes+insights`,{params:n})}getDataplaneOverviewFromMesh({mesh:t,name:n},r){return this.client.get(`/meshes/${t}/dataplanes+insights/${n}`,{params:r})}getSidecarDataplanePolicies({mesh:t,name:n},r){return this.client.get(`/meshes/${t}/dataplanes/${n}/policies`,{params:r})}getMeshGatewayDataplane({mesh:t,name:n},r){return this.client.get(`/meshes/${t}/dataplanes/${n}/policies`,{params:r})}getDataplaneRules({mesh:t,name:n},r){return this.client.get(`/meshes/${t}/dataplanes/${n}/rules`,{params:r})}getDataplaneData({mesh:t,dppName:n,dataPath:r},s){return this.client.get(`/meshes/${t}/dataplanes/${n}/${r}`,{params:s})}getAllServiceInsights(t){return this.client.get("/service-insights",{params:t})}getAllServiceInsightsFromMesh({mesh:t},n){return this.client.get(`/meshes/${t}/service-insights`,{params:n})}getServiceInsight({mesh:t,name:n},r){return this.client.get(`/meshes/${t}/service-insights/${n}`,{params:r})}getAllExternalServices(t){return this.client.get("/external-services",{params:t})}getAllExternalServicesFromMesh({mesh:t},n){return this.client.get(`/meshes/${t}/external-services`,{params:n})}getExternalService({mesh:t,name:n},r){return this.client.get(`/meshes/${t}/external-services/${n}`,{params:r})}async getExternalServiceByServiceInsightName(t,n){const{items:r}=await this.getAllExternalServicesFromMesh({mesh:t});return Array.isArray(r)?r.find(i=>i.tags["kuma.io/service"]===n)??null:null}getPolicyConnections({mesh:t,policyPath:n,policyName:r},s){return this.client.get(`/meshes/${t}/${n}/${r}/dataplanes`,{params:s})}getAllPolicyEntitiesFromMesh({mesh:t,path:n},r){return this.client.get(`/meshes/${t}/${n}`,{params:r})}getSinglePolicyEntity({mesh:t,path:n,name:r},s){return this.client.get(`/meshes/${t}/${n}/${r}`,{params:s})}}class Tm extends Error{constructor({title:n=null,message:r,code:s=null,statusCode:i,causes:o=[]}){super(r);ht(this,"title");ht(this,"code");ht(this,"causes");ht(this,"statusCode");this.name="ApiError",this.title=n,this.code=s,this.statusCode=i,this.causes=o}toJSON(){return{name:this.name,title:this.title,message:this.message,code:this.code,statusCode:this.statusCode,causes:this.causes}}}async function Im(e,t={},n){var u;const r=t,s=r.method??"GET";r.headers=r.headers instanceof Headers?r.headers:new Headers(r.headers),!r.headers.has("content-type")&&["POST","PUT","PATCH"].includes(s)&&r.headers.set("content-type","application/json");let i=e;"params"in t&&t.params!==void 0&&s==="GET"&&(i+=`?${new URLSearchParams(t.params).toString()}`),n!==void 0&&((u=r.headers.get("content-type"))!=null&&u.startsWith("application/json")?r.body=JSON.stringify(n):r.body=n);let o;try{o=await fetch(i,r)}catch(f){throw Sm(f)}const a=o.headers.get("content-type"),c=(a!==null?a.startsWith("application/json")||a.startsWith("application/problem+json"):!1)?await o.json():await o.text();if(o.ok)return{response:o,data:c};throw Am(o,c)}function Sm(e){const t=e instanceof Error?e.message:"An unknown network error occurred.";return new Error(t)}function Am(e,t){let n=null,r="An error has occurred while trying to load this data.",s=null,i=[];return typeof t=="string"&&t.length>0?r=t:t&&(Object.prototype.hasOwnProperty.call(t,"title")&&(n=t.title),Object.prototype.hasOwnProperty.call(t,"details")&&(r=t.details),Object.prototype.hasOwnProperty.call(t,"code")&&(s=t.code),Object.prototype.hasOwnProperty.call(t,"causes")&&Array.isArray(t.causes)&&(i=t.causes)),e.status===403&&(r="You currently don’t have access to this data."),new Tm({title:n,message:r,code:s,causes:i,statusCode:e.status})}class wm{constructor(t){ht(this,"_baseUrl");this.env=t,this._baseUrl=t("KUMA_API_URL")}get baseUrl(){return this._baseUrl}set baseUrl(t){this._baseUrl=t}async get(t,n){const{data:r}=await this.raw(t,void 0,n,"GET");return r}async delete(t,n){await this.raw(t,void 0,n,"DELETE")}async post(t,n,r){const{data:s}=await this.raw(t,n,r,"POST");return s}async put(t,n,r){const{data:s}=await this.raw(t,n,r,"PUT");return s}async patch(t,n,r){const{data:s}=await this.raw(t,n,r,"PATCH");return s}async raw(t,n,r={},s="GET"){const i=Co(r);i.method=s;const o=new Headers;if("headers"in i){const l=i.headers instanceof Headers?i.headers:new Headers(i.headers);for(const[c,u]of l)o.set(c,u)}Object.keys(o).length>0&&(i.headers=o);const a=Co(i);return Im(`${t.startsWith("http")?"":this.baseUrl}${t}`,a,n)}}function Co(e){const t=e??{};if(t.params&&!Array.isArray(t.params)){const n=[];for(const[r,s]of Object.entries(t.params))if(s!==void 0)if(Array.isArray(s))for(const i of s)n.push([r,i]);else n.push([r,s]);t.params=n}return t}var qr=new WeakMap,Ul=new Map,Om=new Map,Ut;(function(e){e[e.Constant=0]="Constant",e[e.Instance=1]="Instance",e[e.Factory=2]="Factory"})(Ut||(Ut={}));var ct;(function(e){e[e.Container=0]="Container",e[e.Resolution=1]="Resolution",e[e.Singleton=2]="Singleton",e[e.Transient=3]="Transient"})(ct||(ct={}));var Rm=class{constructor(e){this.impl=e,this.type=Ut.Constant}},Cm=class{constructor(e){this.impl=e,this.type=Ut.Factory}},Pm=e=>e.type===Ut.Factory,Br=class{constructor(e){this.impl=e,this.type=Ut.Instance}},Nm=class extends Br{constructor(){super(...arguments),this.scope=ct.Container,this.cache=new WeakMap}},Lm=class extends Br{constructor(){super(...arguments),this.scope=ct.Resolution}},Mm=class extends Br{constructor(e){super(e),this.impl=e,this.scope=ct.Singleton}},Dm=class extends Br{constructor(){super(...arguments),this.scope=ct.Transient}},Hm=e=>e.type===Ut.Instance,Bm=e=>e.scope===ct.Container,xm=e=>e.scope===ct.Resolution,Um=e=>e.scope===ct.Singleton,Fm=e=>Symbol(e),re=e=>{const t=Symbol(e);return{__t:null,__d:e,__s:t,__o:!1,optional:{__t:null,__d:e,__s:t,__o:!0}}},bn=class{constructor(){this.parent=null,this.map=new Map}set(e,t,n=bn.notag){const r=this.map.get(t.__s);r?r.set(n,e):this.map.set(t.__s,new Map().set(n,e))}find(e,t,n){const r=this.map.get(e.__s);if(r!==void 0){if(n){const s=r.get(n);if(s)return s}if(t)for(let s=0,i=t.length;s{t.map.set(r,e(n))}),t}clone(){return this.from(e=>new Map(e))}},Fl=bn;Fl.notag=Fm("NO_TAG");var km=class{constructor(e,t,n,r){this.vault=e,this.tokens=t,this.getVault=n,this.condition=r}from(e){const{tokens:t}=this;for(let n=0,r=t.length;nthis.resolveToken(s,n,r,t.split()))}resolveToken(e,t,n,r=new kl){const s=this.vault.get(e,r,t,n);if(s)return this.resolveBinding(s,r);if(!e.__o)throw new Error(`No matching bindings found for '${e.__d}' token.`)}resolveBinding(e,t){return Hm(e)?Um(e)?this.resolveCache(e,t,()=>e.cache,n=>{e.cache=n}):Bm(e)?this.resolveCache(e,t,()=>e.cache.get(this.vault),n=>{e.cache.set(this.vault,n)}):xm(e)?this.resolveCache(e,t,()=>t.instances.get(e),n=>{t.instances.set(e,n)}):this.createInstance(e.impl,t):Pm(e)?(...n)=>{const r=this.createInstance(e.impl.creator,t);return r instanceof Promise?r.then(s=>ar.resolveInitialization(s,n,e.impl.initializer)):ar.resolveInitialization(r,n,e.impl.initializer)}:e.impl}resolveCache(e,t,n,r){const s=n();if(s!==void 0)return s;const i=this.createInstance(e.impl,t);return r(i),i}createInstance(e,t){const n=this.getParameters(e,t),r=qr.get(e);if(r!==void 0)return r?e(...n):new e(...n);try{const s=e(...n);return qr.set(e,!0),s}catch{const i=new e(...n);return qr.set(e,!1),i}}getParameters(e,t){const n=Ul.get(e);if(n)return this.resolveTokens(n,t,Om.get(e),e);if(e.length===0)return[];throw new Error(`Missing required 'injected' registration of '${e.name}'`)}static resolveInitialization(e,t,n){const r=n==null?void 0:n(e,...t);return r instanceof Promise?r.then(()=>e):e}},Km=()=>new ar,zm=(e,...t)=>(Ul.set(e,t),e),xE=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function $l(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Zm=function(t){return Wm(t)&&!Xm(t)};function Wm(e){return!!e&&typeof e=="object"}function Xm(e){var t=Object.prototype.toString.call(e);return t==="[object RegExp]"||t==="[object Date]"||Qm(e)}var qm=typeof Symbol=="function"&&Symbol.for,Ym=qm?Symbol.for("react.element"):60103;function Qm(e){return e.$$typeof===Ym}function Jm(e){return Array.isArray(e)?[]:{}}function Un(e,t){return t.clone!==!1&&t.isMergeableObject(e)?un(Jm(e),e,t):e}function eg(e,t,n){return e.concat(t).map(function(r){return Un(r,n)})}function tg(e,t){if(!t.customMerge)return un;var n=t.customMerge(e);return typeof n=="function"?n:un}function ng(e){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(e).filter(function(t){return Object.propertyIsEnumerable.call(e,t)}):[]}function Po(e){return Object.keys(e).concat(ng(e))}function Gl(e,t){try{return t in e}catch{return!1}}function rg(e,t){return Gl(e,t)&&!(Object.hasOwnProperty.call(e,t)&&Object.propertyIsEnumerable.call(e,t))}function sg(e,t,n){var r={};return n.isMergeableObject(e)&&Po(e).forEach(function(s){r[s]=Un(e[s],n)}),Po(t).forEach(function(s){rg(e,s)||(Gl(e,s)&&n.isMergeableObject(t[s])?r[s]=tg(s,n)(e[s],t[s],n):r[s]=Un(t[s],n))}),r}function un(e,t,n){n=n||{},n.arrayMerge=n.arrayMerge||eg,n.isMergeableObject=n.isMergeableObject||Zm,n.cloneUnlessOtherwiseSpecified=Un;var r=Array.isArray(t),s=Array.isArray(e),i=r===s;return i?r?n.arrayMerge(e,t,n):sg(e,t,n):Un(t,n)}un.all=function(t,n){if(!Array.isArray(t))throw new Error("first argument should be an array");return t.reduce(function(r,s){return un(r,s,n)},{})};var ig=un,og=ig;const ag=$l(og),oi=Km(),lg=(...e)=>[...new Map([...e.flat()]).entries()],cg=e=>{const t=new Map(e);return e.forEach(([n,r])=>{if(typeof r.decorates<"u"){const s=r.decorates,i=t.get(s);if(typeof i<"u"){const{labels:o,...a}=i,l=re("inner"),c=re("inner.wrapper");t.set(l,{...a}),t.set(c,{service:()=>()=>$n(l)}),t.set(s,{...r,arguments:[c],labels:o})}r.decorates=void 0}}),[...t.entries()]},$n=e=>oi.get(e),ug=(...e)=>(cg(lg(...e)).forEach(n=>jl(...n)),$n),UE=(...e)=>e.map(t=>()=>$n(t)),Yn=new WeakMap,jl=(e,t)=>{const n=oi.bind(e);switch(!0){case"constant"in t:n.toConstant(t.constant);break;case"service"in t:{const r=n.toInstance(t.service);(typeof t.shared>"u"||t.shared===!0)&&r.inSingletonScope();break}}typeof t.labels<"u"&&t.labels.forEach(r=>{Yn.has(r)||(Yn.set(r,[]),jl(r,{service:()=>Yn.get(r).reduce((i,o)=>{const a=$n(o);return Array.isArray(a)?i.concat(a):a instanceof Object?ag(i,a):i},[])})),Yn.get(r).push(e)}),typeof t.arguments<"u"&&typeof t.service<"u"&&(t.arguments.forEach((r,s)=>{if(typeof r>"u")throw new Error(`Unable to find token for argument[${s}]`)}),zm(t.service,...t.arguments))},fg=(e,t)=>{const n=re(t.description);return oi.bind(n).toConstant(e),n},hg=typeof process=="object"&&process.env&&{}.NODE_DEBUG&&/\bsemver\b/i.test({}.NODE_DEBUG)?(...e)=>console.error("SEMVER",...e):()=>{};var Vl=hg;const pg="2.0.0",dg=256,mg=Number.MAX_SAFE_INTEGER||9007199254740991,gg=16,Eg=["major","premajor","minor","preminor","patch","prepatch","prerelease"];var Kl={MAX_LENGTH:dg,MAX_SAFE_COMPONENT_LENGTH:gg,MAX_SAFE_INTEGER:mg,RELEASE_TYPES:Eg,SEMVER_SPEC_VERSION:pg,FLAG_INCLUDE_PRERELEASE:1,FLAG_LOOSE:2},As={exports:{}};(function(e,t){const{MAX_SAFE_COMPONENT_LENGTH:n}=Kl,r=Vl;t=e.exports={};const s=t.re=[],i=t.safeRe=[],o=t.src=[],a=t.t={};let l=0;const c=(u,f,h)=>{const g=f.split("\\s*").join("\\s{0,1}").split("\\s+").join("\\s"),y=l++;r(u,y,f),a[u]=y,o[y]=f,s[y]=new RegExp(f,h?"g":void 0),i[y]=new RegExp(g,h?"g":void 0)};c("NUMERICIDENTIFIER","0|[1-9]\\d*"),c("NUMERICIDENTIFIERLOOSE","[0-9]+"),c("NONNUMERICIDENTIFIER","\\d*[a-zA-Z-][a-zA-Z0-9-]*"),c("MAINVERSION",`(${o[a.NUMERICIDENTIFIER]})\\.(${o[a.NUMERICIDENTIFIER]})\\.(${o[a.NUMERICIDENTIFIER]})`),c("MAINVERSIONLOOSE",`(${o[a.NUMERICIDENTIFIERLOOSE]})\\.(${o[a.NUMERICIDENTIFIERLOOSE]})\\.(${o[a.NUMERICIDENTIFIERLOOSE]})`),c("PRERELEASEIDENTIFIER",`(?:${o[a.NUMERICIDENTIFIER]}|${o[a.NONNUMERICIDENTIFIER]})`),c("PRERELEASEIDENTIFIERLOOSE",`(?:${o[a.NUMERICIDENTIFIERLOOSE]}|${o[a.NONNUMERICIDENTIFIER]})`),c("PRERELEASE",`(?:-(${o[a.PRERELEASEIDENTIFIER]}(?:\\.${o[a.PRERELEASEIDENTIFIER]})*))`),c("PRERELEASELOOSE",`(?:-?(${o[a.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${o[a.PRERELEASEIDENTIFIERLOOSE]})*))`),c("BUILDIDENTIFIER","[0-9A-Za-z-]+"),c("BUILD",`(?:\\+(${o[a.BUILDIDENTIFIER]}(?:\\.${o[a.BUILDIDENTIFIER]})*))`),c("FULLPLAIN",`v?${o[a.MAINVERSION]}${o[a.PRERELEASE]}?${o[a.BUILD]}?`),c("FULL",`^${o[a.FULLPLAIN]}$`),c("LOOSEPLAIN",`[v=\\s]*${o[a.MAINVERSIONLOOSE]}${o[a.PRERELEASELOOSE]}?${o[a.BUILD]}?`),c("LOOSE",`^${o[a.LOOSEPLAIN]}$`),c("GTLT","((?:<|>)?=?)"),c("XRANGEIDENTIFIERLOOSE",`${o[a.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`),c("XRANGEIDENTIFIER",`${o[a.NUMERICIDENTIFIER]}|x|X|\\*`),c("XRANGEPLAIN",`[v=\\s]*(${o[a.XRANGEIDENTIFIER]})(?:\\.(${o[a.XRANGEIDENTIFIER]})(?:\\.(${o[a.XRANGEIDENTIFIER]})(?:${o[a.PRERELEASE]})?${o[a.BUILD]}?)?)?`),c("XRANGEPLAINLOOSE",`[v=\\s]*(${o[a.XRANGEIDENTIFIERLOOSE]})(?:\\.(${o[a.XRANGEIDENTIFIERLOOSE]})(?:\\.(${o[a.XRANGEIDENTIFIERLOOSE]})(?:${o[a.PRERELEASELOOSE]})?${o[a.BUILD]}?)?)?`),c("XRANGE",`^${o[a.GTLT]}\\s*${o[a.XRANGEPLAIN]}$`),c("XRANGELOOSE",`^${o[a.GTLT]}\\s*${o[a.XRANGEPLAINLOOSE]}$`),c("COERCE",`(^|[^\\d])(\\d{1,${n}})(?:\\.(\\d{1,${n}}))?(?:\\.(\\d{1,${n}}))?(?:$|[^\\d])`),c("COERCERTL",o[a.COERCE],!0),c("LONETILDE","(?:~>?)"),c("TILDETRIM",`(\\s*)${o[a.LONETILDE]}\\s+`,!0),t.tildeTrimReplace="$1~",c("TILDE",`^${o[a.LONETILDE]}${o[a.XRANGEPLAIN]}$`),c("TILDELOOSE",`^${o[a.LONETILDE]}${o[a.XRANGEPLAINLOOSE]}$`),c("LONECARET","(?:\\^)"),c("CARETTRIM",`(\\s*)${o[a.LONECARET]}\\s+`,!0),t.caretTrimReplace="$1^",c("CARET",`^${o[a.LONECARET]}${o[a.XRANGEPLAIN]}$`),c("CARETLOOSE",`^${o[a.LONECARET]}${o[a.XRANGEPLAINLOOSE]}$`),c("COMPARATORLOOSE",`^${o[a.GTLT]}\\s*(${o[a.LOOSEPLAIN]})$|^$`),c("COMPARATOR",`^${o[a.GTLT]}\\s*(${o[a.FULLPLAIN]})$|^$`),c("COMPARATORTRIM",`(\\s*)${o[a.GTLT]}\\s*(${o[a.LOOSEPLAIN]}|${o[a.XRANGEPLAIN]})`,!0),t.comparatorTrimReplace="$1$2$3",c("HYPHENRANGE",`^\\s*(${o[a.XRANGEPLAIN]})\\s+-\\s+(${o[a.XRANGEPLAIN]})\\s*$`),c("HYPHENRANGELOOSE",`^\\s*(${o[a.XRANGEPLAINLOOSE]})\\s+-\\s+(${o[a.XRANGEPLAINLOOSE]})\\s*$`),c("STAR","(<|>)?=?\\s*\\*"),c("GTE0","^\\s*>=\\s*0\\.0\\.0\\s*$"),c("GTE0PRE","^\\s*>=\\s*0\\.0\\.0-0\\s*$")})(As,As.exports);var vg=As.exports;const _g=Object.freeze({loose:!0}),yg=Object.freeze({}),bg=e=>e?typeof e!="object"?_g:e:yg;var Tg=bg;const No=/^[0-9]+$/,zl=(e,t)=>{const n=No.test(e),r=No.test(t);return n&&r&&(e=+e,t=+t),e===t?0:n&&!r?-1:r&&!n?1:ezl(t,e);var Sg={compareIdentifiers:zl,rcompareIdentifiers:Ig};const Qn=Vl,{MAX_LENGTH:Lo,MAX_SAFE_INTEGER:Jn}=Kl,{safeRe:Mo,t:Do}=vg,Ag=Tg,{compareIdentifiers:Wt}=Sg;let wg=class Xe{constructor(t,n){if(n=Ag(n),t instanceof Xe){if(t.loose===!!n.loose&&t.includePrerelease===!!n.includePrerelease)return t;t=t.version}else if(typeof t!="string")throw new TypeError(`Invalid version. Must be a string. Got type "${typeof t}".`);if(t.length>Lo)throw new TypeError(`version is longer than ${Lo} characters`);Qn("SemVer",t,n),this.options=n,this.loose=!!n.loose,this.includePrerelease=!!n.includePrerelease;const r=t.trim().match(n.loose?Mo[Do.LOOSE]:Mo[Do.FULL]);if(!r)throw new TypeError(`Invalid Version: ${t}`);if(this.raw=t,this.major=+r[1],this.minor=+r[2],this.patch=+r[3],this.major>Jn||this.major<0)throw new TypeError("Invalid major version");if(this.minor>Jn||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>Jn||this.patch<0)throw new TypeError("Invalid patch version");r[4]?this.prerelease=r[4].split(".").map(s=>{if(/^[0-9]+$/.test(s)){const i=+s;if(i>=0&&i=0;)typeof this.prerelease[i]=="number"&&(this.prerelease[i]++,i=-2);if(i===-1){if(n===this.prerelease.join(".")&&r===!1)throw new Error("invalid increment argument: identifier already exists");this.prerelease.push(s)}}if(n){let i=[n,s];r===!1&&(i=[n]),Wt(this.prerelease[0],n)===0?isNaN(this.prerelease[1])&&(this.prerelease=i):this.prerelease=i}break}default:throw new Error(`invalid increment argument: ${t}`)}return this.raw=this.format(),this.build.length&&(this.raw+=`+${this.build.join(".")}`),this}};var Og=wg;const Ho=Og,Rg=(e,t,n)=>new Ho(e,n).compare(new Ho(t,n));var Cg=Rg;const Bo=$l(Cg),FE="Kuma",kE=50,ws=500,xo="Disabled",$E="kuma.io/zone",Pg={status:null,tagline:null,version:null,kumaDocsVersion:"latest",clientConfig:null},Ng={SET_CONFIG_DATA:(e,t)=>e.clientConfig=t,SET_STATUS:(e,t)=>e.status=t,SET_TAGLINE:(e,t)=>e.tagline=t,SET_VERSION:(e,t)=>e.version=t,SET_KUMA_DOCS_VERSION:(e,t)=>e.kumaDocsVersion=t},Lg={getStatus:e=>e.status,getConfig:e=>e.clientConfig,getEnvironment:e=>{var t;return(t=e.clientConfig)==null?void 0:t.environment},getMode:e=>{var t;return(t=e.clientConfig)==null?void 0:t.mode},getTagline:e=>e.tagline,getVersion:e=>e.version,getKumaDocsVersion:e=>e.kumaDocsVersion,getConfigurationType:e=>{var t,n;return(n=(t=e.clientConfig)==null?void 0:t.store)==null?void 0:n.type},getMulticlusterStatus:(e,t)=>t.getMode==="global"},Mg=e=>({bootstrapConfig({dispatch:t}){const n=t("getInfo"),r=t("getConfig");return Promise.all([n,r])},getConfig({commit:t}){return e.getConfig().then(n=>{t("SET_CONFIG_DATA",n)})},getStatus({commit:t}){return e.getStatus().then(n=>{t("SET_STATUS",n)})},getInfo({commit:t}){return e.getInfo().then(n=>{t("SET_TAGLINE",n.tagline),t("SET_VERSION",n.version);let r;const s=n.basedOnKuma??n.version,i=s.indexOf("-preview.");if(i!==-1){const o=s.substring(0,i);r=o==="0.0.0"?"dev":o.replace(/\.\d+$/,".x")}else r=s.replace(/\.\d+$/,".x");t("SET_KUMA_DOCS_VERSION",r)}).catch(n=>{console.error(n)})}}),Dg=e=>({namespaced:!0,state:()=>Pg,getters:Lg,mutations:Ng,actions:Mg(e)}),Hg={isOpen:!1},Bg={OPEN_MODAL:e=>e.isOpen=!0,CLOSE_MODAL:e=>e.isOpen=!1},xg={meshNotificationItemMap(e,t,n){var i;return(((i=n.meshes)==null?void 0:i.items)||[]).reduce((o,a)=>(o[a.name]={hasLogging:!!a.logging,hasMtls:!!a.mtls,hasMetrics:!!a.metrics,hasTracing:!!a.tracing},o),{})},meshNotificationItemMapWithAction(e,t){const n=t.meshNotificationItemMap;return Object.entries(n).reduce((r,[s,i])=>(Object.values(i).some(a=>!a)&&(r[s]=i),r),{})},singleMeshNotificationItems(e,t,n,r){if(n.selectedMesh===null||!(n.selectedMesh in t.meshNotificationItemMap))return[];const s=t.meshNotificationItemMap[n.selectedMesh],i=Object.entries(r.getMeshInsight.policies).filter(([a,l])=>["MeshAccessLog","MeshTrace"].includes(a)).some(([a,l])=>l.total>0),o=[{name:"Observability, Metrics & Service Map",component:"MetricsNotification",isCompleted:s.hasMetrics},{name:"Logging",component:"LoggingNotification",isCompleted:s.hasLogging||i},{name:"Zero-trust security",component:"MtlsNotification",isCompleted:s.hasMtls},{name:"Tracing",component:"TracingNotification",isCompleted:s.hasTracing}];return o.sort((a,l)=>+a.isCompleted-+l.isCompleted),o},amountOfActions(e,t){return Object.keys(t.meshNotificationItemMapWithAction).length}},Ug={openModal({commit:e}){e("OPEN_MODAL")},closeModal({commit:e}){e("CLOSE_MODAL")}},Fg={namespaced:!0,state:()=>Hg,getters:xg,mutations:Bg,actions:Ug},kg={isCompleted:at.get("onboardingIsCompleted")==="true",step:at.get("onboardingStep")||"onboarding-welcome",mode:"demo"},$g={SET_STEP:(e,t)=>e.step=t,SET_IS_COMPLETED:(e,t)=>e.isCompleted=t,UPDATE_MODE:(e,t)=>e.mode=t},Gg={completeOnboarding({commit:e,dispatch:t}){t("fetchDataplaneTotalCount",null,{root:!0}),t("sidebar/getInsights",null,{root:!0}),e("SET_IS_COMPLETED",!0),at.set("onboardingIsCompleted","true"),at.remove("onboardingStep")},changeStep({commit:e},t){e("SET_STEP",t),at.set("onboardingStep",t)},changeMode({commit:e},t){e("UPDATE_MODE",t)}},jg={namespaced:!0,state:()=>kg,mutations:$g,actions:Gg};function Uo(e){const t=e.items.reduce((n,{dataplanes:r,dataplanesByType:s,policies:i,services:o})=>{var a,l;n.services.internal+=o.internal||0,n.services.external+=o.external||0,n.services.total+=o.total||0,n.dataplanes.total+=r.total||0,n.dataplanes.standard+=((a=s.standard)==null?void 0:a.total)||0,n.dataplanes.gateway+=((l=s.gateway)==null?void 0:l.total)||0;for(const[c,u]of Object.entries(i))n.policies[c]||(n.policies[c]=0),n.policies[c]+=u.total||0;return n},{services:{total:0,internal:0,external:0},dataplanes:{total:0,standard:0,gateway:0},policies:{}});return t.policies.total=Object.values(t.policies).reduce((n,r)=>n+r,0),t}function Vg(e){return Object.entries(e.resources).reduce((t,[n,r])=>(t[n]||(t[n]=0),t[n]+=r.total||0,t),{})}const Kg={insights:{global:{},mesh:{services:{total:0,internal:0,external:0},dataplanes:{total:0,standard:0,gateway:0},policies:{}}}},zg={SET_GLOBAL_INSIGHTS:(e,t)=>e.insights.global=t,SET_MESH_INSIGHTS:(e,t)=>e.insights.mesh=t},Zg=e=>({getInsights({dispatch:t}){return Promise.all([t("getGlobalInsights"),t("getMeshInsights")])},async getMeshInsights({commit:t,rootState:n}){if(n.selectedMesh===null)return;let r;try{const s=await e.getMeshInsights({name:n.selectedMesh});r=Uo({items:[s]})}catch{r=Uo({items:[]})}t("SET_MESH_INSIGHTS",r)},async getGlobalInsights({commit:t}){const n=await e.getGlobalInsights(),r=Vg(n);t("SET_GLOBAL_INSIGHTS",r)}}),Wg=e=>({namespaced:!0,state:()=>Kg,mutations:zg,actions:Zg(e)}),Zl=(e={},t={})=>{const n=e.online||0,r=t.online||0,s=e.partiallyDegraded||0,i=t.partiallyDegraded||0,o=e.total||0,a=t.total||0;return{online:n+r,partiallyDegraded:s+i,total:o+a}},Xg=(e={},t={})=>{const n=e.total??0,r=t.total??0,s=n+r,i=e.internal??0,o=t.internal??0,a=i+o,l=e.external??0,c=t.external??0,u=l+c;return{total:s,internal:a,external:u}},qg=(e={},t={})=>Object.entries(t).reduce((n,[r,s])=>{const i=n[r]?n[r].total:0;return{...n,[r]:{total:i+s.total}}},e),Fo=(e={},t={})=>Object.entries(t).reduce((n,[r,s])=>({...n,[r]:Zl(n[r],s)}),e),Yg=(e={kumaDp:{},envoy:{}},t={kumaDp:{},envoy:{}})=>({kumaDp:Fo(e.kumaDp,t.kumaDp),envoy:Fo(e.envoy,t.envoy)});function Wl(){return{meshesTotal:0,dataplanes:{online:0,partiallyDegraded:0,total:0},policies:{},dpVersions:{kumaDp:{},envoy:{}},services:{total:0,internal:0,external:0}}}function Qg(e){return Xl(e?[e]:[])}function Xl(e){return e.reduce((t,n)=>({meshesTotal:e.length,dataplanes:Zl(t.dataplanes,n.dataplanes),policies:qg(t.policies,n.policies),dpVersions:Yg(t.dpVersions,n.dpVersions),services:Xg(t.services,n.services)}),{meshesTotal:0,dataplanes:{online:0,partiallyDegraded:0,total:0},policies:{},dpVersions:{kumaDp:{},envoy:{}},services:{total:0,internal:0,external:0}})}const Jg=new Intl.DateTimeFormat("en-US",{dateStyle:"long"}),eE=new Intl.DateTimeFormat("en-US",{dateStyle:"long",timeStyle:"medium"});function GE(e){const t=new Date(Date.parse(e)),n=Math.floor((Date.now()-t.getTime())/1e3);return n<=1?"just now":n<20?`${n} seconds ago`:n<40?"half a minute ago":n<60?"less than a minute ago":n<=90?"one minute ago":n<=3540?`${Math.round(n/60)} minutes ago`:n<=5400?"1 hour ago":n<=86400?`${Math.round(n/3600)} hours ago`:n<=129600?"1 day ago":n<604800?`${Math.round(n/86400)} days ago`:n<=777600?"1 week ago":Jg.format(t)}function jE(e){const t=new Date(Date.parse(e));return eE.format(t)}function VE(e){const t=e.replace(/[^a-zA-Z0-9 -]/g,"").replace(/\s+/g,"-").replace(/-+/g,"-").trim();return e?t:""}async function ko(e){try{let t=null,n=0,r=[],s=null;for(;;){const i={size:ws,offset:n},{total:o,items:a,next:l}=await e(i);if(Array.isArray(a)&&(r=r.concat(a)),t===null&&(t=o),!l||s===l)break;s=l,n+=ws}return{total:t,items:r}}catch(t){throw new Error(`Resource fetching failed: ${t}`)}}function KE(e){var n;const t=((n=e.zoneInsight)==null?void 0:n.subscriptions)??[];if(t.length>0){const r=t[t.length-1];if(r.config){const s=JSON.parse(r.config);return ii(s,"dpServer.auth.type",xo)}}return xo}const tE="Online",nE="Offline",rE="Partially degraded",sE={menu:null,globalLoading:!0,defaultVisibility:{appError:!0,notificationManager:!0,onboardingNotification:!0},pageTitle:"",meshes:{total:0,items:[],next:null},selectedMesh:"default",totalDataplaneCount:0,version:"",itemQueryNamespace:"item",serviceSummary:{total:0,internal:{total:0,online:0,offline:0,partiallyDegraded:0},external:{total:0}},overviewCharts:{dataplanes:{data:[]},meshes:{data:[]},services:{data:[]},policies:{data:[]},zones:{data:[]},zonesCPVersions:{data:[]},kumaDPVersions:{data:[]},envoyVersions:{data:[]}},meshInsight:Wl(),policyTypes:[],policyTypesByPath:{},policyTypesByName:{},globalKdsAddress:"grpcs://:5685"},iE=e=>({modules:{sidebar:Wg(e),config:Dg(e),notifications:Fg,onboarding:jg},state:()=>sE,getters:{globalLoading:t=>t.globalLoading,shouldShowAppError:t=>t.defaultVisibility.appError&&t.config.status!=="OK",shouldShowNotificationManager:(t,n)=>t.defaultVisibility.notificationManager&&n["notifications/amountOfActions"]>0,shouldShowOnboardingNotification:t=>{const n=t.meshes.items.length===1&&t.meshes.items[0].name==="default";return t.defaultVisibility.onboardingNotification&&t.totalDataplaneCount===0&&n},getMeshList:t=>t.meshes,getItemQueryNamespace:t=>t.itemQueryNamespace,getMeshInsight:t=>t.meshInsight,getChart:t=>(n,{title:r,subtitle:s=void 0,showTotal:i=!1,isStatusChart:o=!1})=>({title:r,subtitle:s,showTotal:i,isStatusChart:o,dataPoints:t.overviewCharts[n].data})},mutations:{SET_GLOBAL_LOADING:(t,n)=>t.globalLoading=n,SET_PAGE_TITLE:(t,n)=>t.pageTitle=n,SET_MESHES:(t,n)=>t.meshes=n,SET_SELECTED_MESH:(t,n)=>t.selectedMesh=n,SET_TOTAL_DATAPLANE_COUNT:(t,n)=>t.totalDataplaneCount=n,SET_INTERNAL_SERVICE_SUMMARY:(t,{items:n=[]})=>{const r={online:0,partially_degraded:0,offline:0,not_available:0},{online:s,offline:i,partially_degraded:o}=n.reduce((l,{status:c="offline"})=>({...l,[c]:l[c]+1}),r),a=s+i+o;t.serviceSummary.internal={...t.serviceSummary.internal,total:a,online:s,partiallyDegraded:o,offline:i},t.serviceSummary.total=t.serviceSummary.external.total+a},SET_EXTERNAL_SERVICE_SUMMARY:(t,{total:n=0})=>{t.serviceSummary.external.total=n,t.serviceSummary.total=t.serviceSummary.internal.total+n},SET_MESH_INSIGHT:(t,n)=>t.meshInsight=Qg(n),SET_MESH_INSIGHT_FROM_ALL_MESHES:(t,n)=>t.meshInsight=Xl(n.items),SET_OVERVIEW_CHART_DATA:(t,{chartName:n,data:r})=>{t.overviewCharts[n].data=r},SET_POLICY_TYPES:(t,n)=>{n.sort((r,s)=>r.name.localeCompare(s.name)),t.policyTypes=n},SET_POLICY_TYPES_BY_PATH:(t,n)=>t.policyTypesByPath=n,SET_POLICY_TYPES_BY_NAME:(t,n)=>t.policyTypesByName=n,SET_GLOBAL_KDS_ADDRESS:(t,n)=>t.globalKdsAddress=n},actions:{updateGlobalLoading({commit:t},n){t("SET_GLOBAL_LOADING",n)},async bootstrap({dispatch:t,getters:n,state:r}){if(await t("config/getStatus"),n["config/getStatus"]==="OK")if(await Promise.all([t("fetchMeshList"),t("fetchDataplaneTotalCount"),t("config/bootstrapConfig")]),r.meshes.items.length>0){const s=at.get("selectedMesh");let i;if(s!==null){const o=r.meshes.items.find(a=>a.name===s);o!==void 0&&(i=o)}i===void 0&&(i=r.meshes.items[0]),await t("updateSelectedMesh",i.name),await t("sidebar/getInsights")}else await t("updateSelectedMesh",null)},updatePageTitle({commit:t},n){t("SET_PAGE_TITLE",n)},async fetchMeshList({commit:t,state:n}){const r={size:ws};try{const{total:s,items:i,next:o}=await e.getAllMeshes(r),a={items:i??[],total:s,next:o};a.items.sort((l,c)=>l.name==="default"?-1:c.name==="default"?1:l.name.localeCompare(c.name)),t("SET_MESHES",a)}catch(s){console.error(s)}},updateSelectedMesh({commit:t},n){n!==null?at.set("selectedMesh",n):at.remove("selectedMesh"),t("SET_SELECTED_MESH",n)},async fetchDataplaneTotalCount({commit:t}){try{const n=await e.getAllDataplanes({size:1});t("SET_TOTAL_DATAPLANE_COUNT",n.total)}catch(n){console.error(n)}},async fetchMeshInsights({commit:t,dispatch:n},r){try{t("SET_MESH_INSIGHT",await e.getMeshInsights({name:r}))}catch{t("SET_MESH_INSIGHT",Wl())}finally{n("setChartsFromMeshInsights")}},async fetchServiceInsights({commit:t},n){try{t("SET_INTERNAL_SERVICE_SUMMARY",await ko(e.getAllServiceInsightsFromMesh.bind(e,{mesh:n})))}catch{t("SET_INTERNAL_SERVICE_SUMMARY",{})}},async fetchExternalServices({commit:t},n){try{t("SET_EXTERNAL_SERVICE_SUMMARY",await ko(e.getAllExternalServicesFromMesh.bind(e,{mesh:n})))}catch{t("SET_EXTERNAL_SERVICE_SUMMARY",{})}},async fetchServices({dispatch:t},n){const r=t("fetchExternalServices",n),s=t("fetchServiceInsights",n);await Promise.all([s,r]),await t("setOverviewServicesChartData")},async fetchPolicyTypes({commit:t}){const{policies:n}=await e.getPolicyTypes(),r=n.reduce((i,o)=>Object.assign(i,{[o.path]:o}),{}),s=n.reduce((i,o)=>Object.assign(i,{[o.name]:o}),{});t("SET_POLICY_TYPES",n),t("SET_POLICY_TYPES_BY_PATH",r),t("SET_POLICY_TYPES_BY_NAME",s)},setChartsFromMeshInsights({dispatch:t}){t("setOverviewDataplanesChartData"),t("setOverviewKumaDPVersionsChartData"),t("setOverviewEnvoyVersionsChartData")},setOverviewServicesChartData({state:t,commit:n}){const{internal:r,external:s}=t.serviceSummary,i=[];r.total&&t.selectedMesh!==null&&i.push({title:"Internal",data:r.total,route:{name:"services-list-view",params:{mesh:t.selectedMesh}}}),s.total&&t.selectedMesh!==null&&i.push({title:"External",data:s.total,route:{name:"services-list-view",params:{mesh:t.selectedMesh}}}),n("SET_OVERVIEW_CHART_DATA",{chartName:"services",data:i})},setOverviewDataplanesChartData({state:t,commit:n}){const r=t.meshInsight.dataplanes.total,s=[];if(r>0){const i=t.meshInsight.dataplanes.online??0;s.push({title:tE,data:i});const o=t.meshInsight.dataplanes.partiallyDegraded??0;o>0&&s.push({title:rE,data:o});const a=r-o-i;a>0&&s.push({title:nE,data:a})}n("SET_OVERVIEW_CHART_DATA",{chartName:"dataplanes",data:s})},setOverviewEnvoyVersionsChartData({state:t,commit:n}){const{envoy:r}=t.meshInsight.dpVersions,s=Object.entries(r).map(([i,o])=>({title:i,data:o.total??0}));s.sort((i,o)=>i.title==="unknown"?1:o.title==="unknown"?-1:Bo(i.title,o.title)),n("SET_OVERVIEW_CHART_DATA",{chartName:"envoyVersions",data:s})},setOverviewKumaDPVersionsChartData({state:t,commit:n}){const{kumaDp:r}=t.meshInsight.dpVersions,s=Object.entries(r).map(([i,o])=>({title:i,data:o.total??0}));s.sort((i,o)=>i.title==="unknown"?1:o.title==="unknown"?-1:Bo(i.title,o.title)),n("SET_OVERVIEW_CHART_DATA",{chartName:"kumaDPVersions",data:s})},updateGlobalKdsAddress({commit:t},n){t("SET_GLOBAL_KDS_ADDRESS",n)}}}),oE={EnvVars:re("EnvVars"),Env:re("Env"),env:re("env"),i18n:re("i18n"),enUs:re("i18n.locale.enUs"),kumaEnUs:re("kuma.locale.enUs"),httpClient:re("httpClient"),api:re("KumaApi"),storeConfig:re("storeOptions"),store:re("store"),router:re("router"),routes:re("vue.routes"),meshRoutes:re("kuma.mesh.routes"),dataplaneRoutes:re("kuma.dataplane.routes"),gatewayRoutes:re("kuma.gateway.routes"),serviceRoutes:re("kuma.service.routes"),policyRoutes:re("kuma.policy.routes"),zoneRoutes:re("kuma.zone.routes"),diagnosticsRoutes:re("kuma.diagnostics.routes"),onboardingRoutes:re("kuma.onboarding.routes"),wizardRoutes:re("kuma.wizard.routes"),nav:re("nav"),logger:re("logger"),app:re("app"),bootstrap:re("bootstrap")},aE=e=>[[e.EnvVars,{constant:{KUMA_PRODUCT_NAME:"Kuma",KUMA_FEEDBACK_URL:"https://github.com/kumahq/kuma/issues/new/choose",KUMA_CHAT_URL:"https://kuma-mesh.slack.com",KUMA_INSTALL_URL:"https://kuma.io/install/latest/",KUMA_VERSION_URL:"https://kuma.io/latest_version",KUMA_DOCS_URL:"https://kuma.io/docs",KUMA_MOCK_API_ENABLED:{}.VITE_MOCK_API_ENABLED,KUMA_ZONE_CREATION_FLOW:{}.VITE_ZONE_CREATION_FLOW}}],[e.Env,{service:Zp,arguments:[e.EnvVars]}],[e.env,{service:()=>(...t)=>$n(e.Env).var(...t)}],[e.i18n,{service:_m,arguments:[e.enUs]}],[e.kumaEnUs,{constant:Vp,labels:[e.enUs]}],[e.httpClient,{service:wm,arguments:[e.env]}],[e.api,{service:bm,arguments:[e.httpClient,e.env]}],[e.logger,{service:ch}],[e.storeConfig,{service:iE,arguments:[e.api]}],[e.store,{service:ah,arguments:[e.storeConfig]}],[e.router,{service:hl,arguments:[e.routes,e.store]}],[e.routes,{service:Kp,arguments:[e.zoneRoutes,e.meshRoutes,e.wizardRoutes,e.onboardingRoutes,e.diagnosticsRoutes]}],[e.meshRoutes,{service:Sp,arguments:[e.serviceRoutes,e.gatewayRoutes,e.dataplaneRoutes,e.policyRoutes]}],[e.dataplaneRoutes,{service:yp}],[e.gatewayRoutes,{service:Tp}],[e.serviceRoutes,{service:Op}],[e.policyRoutes,{service:wp,arguments:[e.store,e.Env]}],[e.zoneRoutes,{service:Pp,arguments:[fg([...{}.VITE_ZONE_CREATION_FLOW==="enabled"?Cp():[]],{description:"kuma.zone.action.routes"})]}],[e.wizardRoutes,{service:Rp}],[e.onboardingRoutes,{service:Ap}],[e.diagnosticsRoutes,{service:bp}],[e.nav,{service:()=>t=>Ip(t)}],[e.app,{service:Ep,arguments:[e.env,e.routes,e.store]}],[e.bootstrap,{service:vp,arguments:[e.store]}]],er=oE;async function lE(){const e=ug(aE(er),[]);(await e(er.app)((await V(()=>import("./App-d80487f2.js"),["./RouteView-a4ddf9f0.css","./App-dbf5302b.css"],import.meta.url)).default)).mount("#app");const n=e(er.store);await n.dispatch("updateGlobalLoading",!0),await e(er.bootstrap)(),await n.dispatch("updateGlobalLoading",!1)}lE();export{X as $,AE as A,FE as B,js as C,Ta as D,TE as E,Ne as F,mE as G,RE as H,jE as I,PE as J,$E as K,at as L,DE as M,VE as N,CE as O,kE as P,ME as Q,ko as R,KE as S,ja as T,Ge as U,sr as V,$n as W,er as X,UE as Y,Ft as Z,qs as _,xa as a,V as a0,Ns as a1,Zc as a2,af as a3,q as a4,sa as a5,Bo as a6,Xl as a7,fg as a8,pn as a9,He as aa,St as ab,Xu as ac,IE as ad,fa as ae,LE as af,NE as ag,OE as ah,dE as ai,bE as aj,rn as ak,fE as al,Ws as am,Tm as an,xE as ao,$l as ap,Jt as b,Le as c,ya as d,SE as e,wE as f,Wu as g,Ae as h,EE as i,vE as j,Fa as k,_E as l,pE as m,yE as n,Ha as o,hE as p,zc as q,gE as r,tn as s,uE as t,BE as u,HE as v,ou as w,GE as x,Gs as y,Ls as z}; +For more details see https://formatjs.io/docs/getting-started/message-distribution`)}function dm(e,t){var n=zd(t),r=U(U({},Kd),e),s=r.locale,i=r.defaultLocale,o=r.onError;return s?!Intl.NumberFormat.supportedLocalesOf(s).length&&o?o(new Io('Missing locale data for locale: "'.concat(s,'" in Intl.NumberFormat. Using default locale: "').concat(i,'" as fallback. See https://formatjs.io/docs/react-intl#runtime-requirements for more details'))):!Intl.DateTimeFormat.supportedLocalesOf(s).length&&o&&o(new Io('Missing locale data for locale: "'.concat(s,'" in Intl.DateTimeFormat. Using default locale: "').concat(i,'" as fallback. See https://formatjs.io/docs/react-intl#runtime-requirements for more details'))):(o&&o(new $d('"locale" was not configured, using "'.concat(i,'" as fallback. See https://formatjs.io/docs/react-intl/api#intlshape for more details'))),r.locale=r.defaultLocale||"en"),pm(r),U(U({},r),{formatters:n,formatNumber:um.bind(null,r,n.getNumberFormat),formatNumberToParts:fm.bind(null,r,n.getNumberFormat),formatRelativeTime:lm.bind(null,r,n.getRelativeTimeFormat),formatDate:Wd.bind(null,r,n.getDateTimeFormat),formatDateToParts:Yd.bind(null,r,n.getDateTimeFormat),formatTime:Xd.bind(null,r,n.getDateTimeFormat),formatDateTimeRange:qd.bind(null,r,n.getDateTimeFormat),formatTimeToParts:Qd.bind(null,r,n.getDateTimeFormat),formatPlural:im.bind(null,r,n.getPluralRules),formatMessage:wo.bind(null,r,n),$t:wo.bind(null,r,n),formatList:rm.bind(null,r,n.getListFormat),formatListToParts:Ml.bind(null,r,n.getListFormat),formatDisplayName:em.bind(null,r,n.getDisplayNames)})}var mm=xn;xn.flatten=xn;xn.unflatten=xl;function Hl(e){return e&&e.constructor&&typeof e.constructor.isBuffer=="function"&&e.constructor.isBuffer(e)}function Bl(e){return e}function xn(e,t){t=t||{};const n=t.delimiter||".",r=t.maxDepth,s=t.transformKey||Bl,i={};function o(a,l,c){c=c||1,Object.keys(a).forEach(function(u){const f=a[u],h=t.safe&&Array.isArray(f),g=Object.prototype.toString.call(f),y=Hl(f),T=g==="[object Object]"||g==="[object Array]",C=l?l+n+s(u):s(u);if(!h&&!y&&T&&Object.keys(f).length&&(!t.maxDepth||c0&&(f=o(u.shift()),h=o(u[0]))}g[f]=xl(e[c],t)}),i}const gm=Nl(),Em=(e,t,n=!1)=>{const r=dm({...typeof n=="boolean"?null:n,locale:e,messages:mm.flatten(t,{safe:!0})},gm),{$t:s,...i}=r,o=i,a={t:(l,c,u)=>o.formatMessage({id:l},c,u),te:l=>!!o.messages[l],tm:l=>o.messages[l]||[],...o,source:t};return typeof n=="boolean"&&n===!0||typeof n!="boolean"&&n.isGlobal,a};function vm(e){const t=e.split(/([A-Z][a-z]+)/).join(" ").replace(/\s+/g," ").trim();return t.charAt(0).toUpperCase()+t.substring(1)}function ii(e,t,n=void 0){if(typeof e!="object"||Array.isArray(e)||Array.isArray(t)&&t.length===0)return n;const r=Array.isArray(t)?t:t.split(".");if(r.length===1){const s=e[r[0]];return s===void 0?n:s}return ii(e[r[0]],r.slice(1),n)}class Ro extends Error{get key(){return this.message}}const _m=e=>{const t=Em("en-us",e,!0);return{...t,t:function(...n){const r=n[0];try{if(typeof ii(e,r)>"u")throw r.startsWith("http.api.")?new Ro(r):new Error(`Missing message: "${r}" for locale "en-us", using id as fallback`);return t.t(...n)}catch(s){switch(!0){case s instanceof Ro:return vm(s.key.split(".").pop());default:throw s}}}}};class ym{constructor(t,n){this.client=t,this.env=n}get baseUrl(){return this.client.baseUrl}setBaseUrl(t){this.client.baseUrl=t}}class bm extends ym{getInfo(){return this.client.get("/")}async getStatus(){try{const{response:t}=await this.client.raw("/");return t.status===200?"OK":null}catch{return null}}async getLatestVersion(){return this.client.get(this.env("KUMA_VERSION_URL"))}getConfig(){return this.client.get("/config")}getPolicyTypes(){return this.client.get("/policies")}getGlobalInsights(){return this.client.get("/global-insights")}getZones(t){return this.client.get("/zones",{params:t})}getZone({name:t},n){return this.client.get(`/zones/${t}`,{params:n})}createZone(t){return this.client.post("/provision-zone",t)}updateZone(t){return this.client.put(`/zones/${t.name}`,t)}deleteZone({name:t}){return this.client.delete(`/zones/${t}`)}getAllZoneOverviews(t){return this.client.get("/zones+insights",{params:t})}getZoneOverview({name:t},n){return this.client.get(`/zones+insights/${t}`,{params:n})}getZoneIngressData({zoneIngressName:t,dataPath:n},r){return this.client.get(`/zoneingresses/${t}/${n}`,{params:r})}getAllZoneIngressOverviews(t){return this.client.get("/zoneingresses+insights",{params:t})}getZoneIngressOverview({name:t},n){return this.client.get(`/zoneingresses+insights/${t}`,{params:n})}getZoneEgressData({zoneEgressName:t,dataPath:n},r){return this.client.get(`/zoneegresses/${t}/${n}`,{params:r})}getAllZoneEgressOverviews(t){return this.client.get("/zoneegressoverviews",{params:t})}getZoneEgressOverview({name:t},n){return this.client.get(`/zoneegressoverviews/${t}`,{params:n})}getAllMeshes(t){return this.client.get("/meshes",{params:t})}getMesh({name:t},n){return this.client.get(`/meshes/${t}`,{params:n})}getAllMeshInsights(t){return this.client.get("/mesh-insights",{params:t})}getMeshInsights({name:t},n){return this.client.get(`/mesh-insights/${t}`,{params:n})}getAllDataplanes(t){return this.client.get("/dataplanes",{params:t})}getDataplaneFromMesh({mesh:t,name:n},r){return this.client.get(`/meshes/${t}/dataplanes/${n}`,{params:r})}getAllDataplaneOverviews(t){return this.client.get("/dataplanes+insights",{params:t})}getAllDataplaneOverviewsFromMesh({mesh:t},n){return this.client.get(`/meshes/${t}/dataplanes+insights`,{params:n})}getDataplaneOverviewFromMesh({mesh:t,name:n},r){return this.client.get(`/meshes/${t}/dataplanes+insights/${n}`,{params:r})}getSidecarDataplanePolicies({mesh:t,name:n},r){return this.client.get(`/meshes/${t}/dataplanes/${n}/policies`,{params:r})}getMeshGatewayDataplane({mesh:t,name:n},r){return this.client.get(`/meshes/${t}/dataplanes/${n}/policies`,{params:r})}getDataplaneRules({mesh:t,name:n},r){return this.client.get(`/meshes/${t}/dataplanes/${n}/rules`,{params:r})}getDataplaneData({mesh:t,dppName:n,dataPath:r},s){return this.client.get(`/meshes/${t}/dataplanes/${n}/${r}`,{params:s})}getAllServiceInsights(t){return this.client.get("/service-insights",{params:t})}getAllServiceInsightsFromMesh({mesh:t},n){return this.client.get(`/meshes/${t}/service-insights`,{params:n})}getServiceInsight({mesh:t,name:n},r){return this.client.get(`/meshes/${t}/service-insights/${n}`,{params:r})}getAllExternalServices(t){return this.client.get("/external-services",{params:t})}getAllExternalServicesFromMesh({mesh:t},n){return this.client.get(`/meshes/${t}/external-services`,{params:n})}getExternalService({mesh:t,name:n},r){return this.client.get(`/meshes/${t}/external-services/${n}`,{params:r})}async getExternalServiceByServiceInsightName(t,n){const{items:r}=await this.getAllExternalServicesFromMesh({mesh:t});return Array.isArray(r)?r.find(i=>i.tags["kuma.io/service"]===n)??null:null}getPolicyConnections({mesh:t,policyPath:n,policyName:r},s){return this.client.get(`/meshes/${t}/${n}/${r}/dataplanes`,{params:s})}getAllPolicyEntitiesFromMesh({mesh:t,path:n},r){return this.client.get(`/meshes/${t}/${n}`,{params:r})}getSinglePolicyEntity({mesh:t,path:n,name:r},s){return this.client.get(`/meshes/${t}/${n}/${r}`,{params:s})}}class Tm extends Error{constructor({title:n=null,message:r,code:s=null,statusCode:i,causes:o=[]}){super(r);ht(this,"title");ht(this,"code");ht(this,"causes");ht(this,"statusCode");this.name="ApiError",this.title=n,this.code=s,this.statusCode=i,this.causes=o}toJSON(){return{name:this.name,title:this.title,message:this.message,code:this.code,statusCode:this.statusCode,causes:this.causes}}}async function Im(e,t={},n){var u;const r=t,s=r.method??"GET";r.headers=r.headers instanceof Headers?r.headers:new Headers(r.headers),!r.headers.has("content-type")&&["POST","PUT","PATCH"].includes(s)&&r.headers.set("content-type","application/json");let i=e;"params"in t&&t.params!==void 0&&s==="GET"&&(i+=`?${new URLSearchParams(t.params).toString()}`),n!==void 0&&((u=r.headers.get("content-type"))!=null&&u.startsWith("application/json")?r.body=JSON.stringify(n):r.body=n);let o;try{o=await fetch(i,r)}catch(f){throw Sm(f)}const a=o.headers.get("content-type"),c=(a!==null?a.startsWith("application/json")||a.startsWith("application/problem+json"):!1)?await o.json():await o.text();if(o.ok)return{response:o,data:c};throw Am(o,c)}function Sm(e){const t=e instanceof Error?e.message:"An unknown network error occurred.";return new Error(t)}function Am(e,t){let n=null,r="An error has occurred while trying to load this data.",s=null,i=[];return typeof t=="string"&&t.length>0?r=t:t&&(Object.prototype.hasOwnProperty.call(t,"title")&&(n=t.title),Object.prototype.hasOwnProperty.call(t,"details")&&(r=t.details),Object.prototype.hasOwnProperty.call(t,"code")&&(s=t.code),Object.prototype.hasOwnProperty.call(t,"causes")&&Array.isArray(t.causes)&&(i=t.causes)),e.status===403&&(r="You currently don’t have access to this data."),new Tm({title:n,message:r,code:s,causes:i,statusCode:e.status})}class wm{constructor(t){ht(this,"_baseUrl");this.env=t,this._baseUrl=t("KUMA_API_URL")}get baseUrl(){return this._baseUrl}set baseUrl(t){this._baseUrl=t}async get(t,n){const{data:r}=await this.raw(t,void 0,n,"GET");return r}async delete(t,n){await this.raw(t,void 0,n,"DELETE")}async post(t,n,r){const{data:s}=await this.raw(t,n,r,"POST");return s}async put(t,n,r){const{data:s}=await this.raw(t,n,r,"PUT");return s}async patch(t,n,r){const{data:s}=await this.raw(t,n,r,"PATCH");return s}async raw(t,n,r={},s="GET"){const i=Co(r);i.method=s;const o=new Headers;if("headers"in i){const l=i.headers instanceof Headers?i.headers:new Headers(i.headers);for(const[c,u]of l)o.set(c,u)}Object.keys(o).length>0&&(i.headers=o);const a=Co(i);return Im(`${t.startsWith("http")?"":this.baseUrl}${t}`,a,n)}}function Co(e){const t=e??{};if(t.params&&!Array.isArray(t.params)){const n=[];for(const[r,s]of Object.entries(t.params))if(s!==void 0)if(Array.isArray(s))for(const i of s)n.push([r,i]);else n.push([r,s]);t.params=n}return t}var qr=new WeakMap,Ul=new Map,Om=new Map,Ut;(function(e){e[e.Constant=0]="Constant",e[e.Instance=1]="Instance",e[e.Factory=2]="Factory"})(Ut||(Ut={}));var ct;(function(e){e[e.Container=0]="Container",e[e.Resolution=1]="Resolution",e[e.Singleton=2]="Singleton",e[e.Transient=3]="Transient"})(ct||(ct={}));var Rm=class{constructor(e){this.impl=e,this.type=Ut.Constant}},Cm=class{constructor(e){this.impl=e,this.type=Ut.Factory}},Pm=e=>e.type===Ut.Factory,Br=class{constructor(e){this.impl=e,this.type=Ut.Instance}},Nm=class extends Br{constructor(){super(...arguments),this.scope=ct.Container,this.cache=new WeakMap}},Lm=class extends Br{constructor(){super(...arguments),this.scope=ct.Resolution}},Mm=class extends Br{constructor(e){super(e),this.impl=e,this.scope=ct.Singleton}},Dm=class extends Br{constructor(){super(...arguments),this.scope=ct.Transient}},Hm=e=>e.type===Ut.Instance,Bm=e=>e.scope===ct.Container,xm=e=>e.scope===ct.Resolution,Um=e=>e.scope===ct.Singleton,Fm=e=>Symbol(e),re=e=>{const t=Symbol(e);return{__t:null,__d:e,__s:t,__o:!1,optional:{__t:null,__d:e,__s:t,__o:!0}}},bn=class{constructor(){this.parent=null,this.map=new Map}set(e,t,n=bn.notag){const r=this.map.get(t.__s);r?r.set(n,e):this.map.set(t.__s,new Map().set(n,e))}find(e,t,n){const r=this.map.get(e.__s);if(r!==void 0){if(n){const s=r.get(n);if(s)return s}if(t)for(let s=0,i=t.length;s{t.map.set(r,e(n))}),t}clone(){return this.from(e=>new Map(e))}},Fl=bn;Fl.notag=Fm("NO_TAG");var km=class{constructor(e,t,n,r){this.vault=e,this.tokens=t,this.getVault=n,this.condition=r}from(e){const{tokens:t}=this;for(let n=0,r=t.length;nthis.resolveToken(s,n,r,t.split()))}resolveToken(e,t,n,r=new kl){const s=this.vault.get(e,r,t,n);if(s)return this.resolveBinding(s,r);if(!e.__o)throw new Error(`No matching bindings found for '${e.__d}' token.`)}resolveBinding(e,t){return Hm(e)?Um(e)?this.resolveCache(e,t,()=>e.cache,n=>{e.cache=n}):Bm(e)?this.resolveCache(e,t,()=>e.cache.get(this.vault),n=>{e.cache.set(this.vault,n)}):xm(e)?this.resolveCache(e,t,()=>t.instances.get(e),n=>{t.instances.set(e,n)}):this.createInstance(e.impl,t):Pm(e)?(...n)=>{const r=this.createInstance(e.impl.creator,t);return r instanceof Promise?r.then(s=>ar.resolveInitialization(s,n,e.impl.initializer)):ar.resolveInitialization(r,n,e.impl.initializer)}:e.impl}resolveCache(e,t,n,r){const s=n();if(s!==void 0)return s;const i=this.createInstance(e.impl,t);return r(i),i}createInstance(e,t){const n=this.getParameters(e,t),r=qr.get(e);if(r!==void 0)return r?e(...n):new e(...n);try{const s=e(...n);return qr.set(e,!0),s}catch{const i=new e(...n);return qr.set(e,!1),i}}getParameters(e,t){const n=Ul.get(e);if(n)return this.resolveTokens(n,t,Om.get(e),e);if(e.length===0)return[];throw new Error(`Missing required 'injected' registration of '${e.name}'`)}static resolveInitialization(e,t,n){const r=n==null?void 0:n(e,...t);return r instanceof Promise?r.then(()=>e):e}},Km=()=>new ar,zm=(e,...t)=>(Ul.set(e,t),e),xE=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function $l(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Zm=function(t){return Wm(t)&&!Xm(t)};function Wm(e){return!!e&&typeof e=="object"}function Xm(e){var t=Object.prototype.toString.call(e);return t==="[object RegExp]"||t==="[object Date]"||Qm(e)}var qm=typeof Symbol=="function"&&Symbol.for,Ym=qm?Symbol.for("react.element"):60103;function Qm(e){return e.$$typeof===Ym}function Jm(e){return Array.isArray(e)?[]:{}}function Un(e,t){return t.clone!==!1&&t.isMergeableObject(e)?un(Jm(e),e,t):e}function eg(e,t,n){return e.concat(t).map(function(r){return Un(r,n)})}function tg(e,t){if(!t.customMerge)return un;var n=t.customMerge(e);return typeof n=="function"?n:un}function ng(e){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(e).filter(function(t){return Object.propertyIsEnumerable.call(e,t)}):[]}function Po(e){return Object.keys(e).concat(ng(e))}function Gl(e,t){try{return t in e}catch{return!1}}function rg(e,t){return Gl(e,t)&&!(Object.hasOwnProperty.call(e,t)&&Object.propertyIsEnumerable.call(e,t))}function sg(e,t,n){var r={};return n.isMergeableObject(e)&&Po(e).forEach(function(s){r[s]=Un(e[s],n)}),Po(t).forEach(function(s){rg(e,s)||(Gl(e,s)&&n.isMergeableObject(t[s])?r[s]=tg(s,n)(e[s],t[s],n):r[s]=Un(t[s],n))}),r}function un(e,t,n){n=n||{},n.arrayMerge=n.arrayMerge||eg,n.isMergeableObject=n.isMergeableObject||Zm,n.cloneUnlessOtherwiseSpecified=Un;var r=Array.isArray(t),s=Array.isArray(e),i=r===s;return i?r?n.arrayMerge(e,t,n):sg(e,t,n):Un(t,n)}un.all=function(t,n){if(!Array.isArray(t))throw new Error("first argument should be an array");return t.reduce(function(r,s){return un(r,s,n)},{})};var ig=un,og=ig;const ag=$l(og),oi=Km(),lg=(...e)=>[...new Map([...e.flat()]).entries()],cg=e=>{const t=new Map(e);return e.forEach(([n,r])=>{if(typeof r.decorates<"u"){const s=r.decorates,i=t.get(s);if(typeof i<"u"){const{labels:o,...a}=i,l=re("inner"),c=re("inner.wrapper");t.set(l,{...a}),t.set(c,{service:()=>()=>$n(l)}),t.set(s,{...r,arguments:[c],labels:o})}r.decorates=void 0}}),[...t.entries()]},$n=e=>oi.get(e),ug=(...e)=>(cg(lg(...e)).forEach(n=>jl(...n)),$n),UE=(...e)=>e.map(t=>()=>$n(t)),Yn=new WeakMap,jl=(e,t)=>{const n=oi.bind(e);switch(!0){case"constant"in t:n.toConstant(t.constant);break;case"service"in t:{const r=n.toInstance(t.service);(typeof t.shared>"u"||t.shared===!0)&&r.inSingletonScope();break}}typeof t.labels<"u"&&t.labels.forEach(r=>{Yn.has(r)||(Yn.set(r,[]),jl(r,{service:()=>Yn.get(r).reduce((i,o)=>{const a=$n(o);return Array.isArray(a)?i.concat(a):a instanceof Object?ag(i,a):i},[])})),Yn.get(r).push(e)}),typeof t.arguments<"u"&&typeof t.service<"u"&&(t.arguments.forEach((r,s)=>{if(typeof r>"u")throw new Error(`Unable to find token for argument[${s}]`)}),zm(t.service,...t.arguments))},fg=(e,t)=>{const n=re(t.description);return oi.bind(n).toConstant(e),n},hg=typeof process=="object"&&process.env&&{}.NODE_DEBUG&&/\bsemver\b/i.test({}.NODE_DEBUG)?(...e)=>console.error("SEMVER",...e):()=>{};var Vl=hg;const pg="2.0.0",dg=256,mg=Number.MAX_SAFE_INTEGER||9007199254740991,gg=16,Eg=["major","premajor","minor","preminor","patch","prepatch","prerelease"];var Kl={MAX_LENGTH:dg,MAX_SAFE_COMPONENT_LENGTH:gg,MAX_SAFE_INTEGER:mg,RELEASE_TYPES:Eg,SEMVER_SPEC_VERSION:pg,FLAG_INCLUDE_PRERELEASE:1,FLAG_LOOSE:2},As={exports:{}};(function(e,t){const{MAX_SAFE_COMPONENT_LENGTH:n}=Kl,r=Vl;t=e.exports={};const s=t.re=[],i=t.safeRe=[],o=t.src=[],a=t.t={};let l=0;const c=(u,f,h)=>{const g=f.split("\\s*").join("\\s{0,1}").split("\\s+").join("\\s"),y=l++;r(u,y,f),a[u]=y,o[y]=f,s[y]=new RegExp(f,h?"g":void 0),i[y]=new RegExp(g,h?"g":void 0)};c("NUMERICIDENTIFIER","0|[1-9]\\d*"),c("NUMERICIDENTIFIERLOOSE","[0-9]+"),c("NONNUMERICIDENTIFIER","\\d*[a-zA-Z-][a-zA-Z0-9-]*"),c("MAINVERSION",`(${o[a.NUMERICIDENTIFIER]})\\.(${o[a.NUMERICIDENTIFIER]})\\.(${o[a.NUMERICIDENTIFIER]})`),c("MAINVERSIONLOOSE",`(${o[a.NUMERICIDENTIFIERLOOSE]})\\.(${o[a.NUMERICIDENTIFIERLOOSE]})\\.(${o[a.NUMERICIDENTIFIERLOOSE]})`),c("PRERELEASEIDENTIFIER",`(?:${o[a.NUMERICIDENTIFIER]}|${o[a.NONNUMERICIDENTIFIER]})`),c("PRERELEASEIDENTIFIERLOOSE",`(?:${o[a.NUMERICIDENTIFIERLOOSE]}|${o[a.NONNUMERICIDENTIFIER]})`),c("PRERELEASE",`(?:-(${o[a.PRERELEASEIDENTIFIER]}(?:\\.${o[a.PRERELEASEIDENTIFIER]})*))`),c("PRERELEASELOOSE",`(?:-?(${o[a.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${o[a.PRERELEASEIDENTIFIERLOOSE]})*))`),c("BUILDIDENTIFIER","[0-9A-Za-z-]+"),c("BUILD",`(?:\\+(${o[a.BUILDIDENTIFIER]}(?:\\.${o[a.BUILDIDENTIFIER]})*))`),c("FULLPLAIN",`v?${o[a.MAINVERSION]}${o[a.PRERELEASE]}?${o[a.BUILD]}?`),c("FULL",`^${o[a.FULLPLAIN]}$`),c("LOOSEPLAIN",`[v=\\s]*${o[a.MAINVERSIONLOOSE]}${o[a.PRERELEASELOOSE]}?${o[a.BUILD]}?`),c("LOOSE",`^${o[a.LOOSEPLAIN]}$`),c("GTLT","((?:<|>)?=?)"),c("XRANGEIDENTIFIERLOOSE",`${o[a.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`),c("XRANGEIDENTIFIER",`${o[a.NUMERICIDENTIFIER]}|x|X|\\*`),c("XRANGEPLAIN",`[v=\\s]*(${o[a.XRANGEIDENTIFIER]})(?:\\.(${o[a.XRANGEIDENTIFIER]})(?:\\.(${o[a.XRANGEIDENTIFIER]})(?:${o[a.PRERELEASE]})?${o[a.BUILD]}?)?)?`),c("XRANGEPLAINLOOSE",`[v=\\s]*(${o[a.XRANGEIDENTIFIERLOOSE]})(?:\\.(${o[a.XRANGEIDENTIFIERLOOSE]})(?:\\.(${o[a.XRANGEIDENTIFIERLOOSE]})(?:${o[a.PRERELEASELOOSE]})?${o[a.BUILD]}?)?)?`),c("XRANGE",`^${o[a.GTLT]}\\s*${o[a.XRANGEPLAIN]}$`),c("XRANGELOOSE",`^${o[a.GTLT]}\\s*${o[a.XRANGEPLAINLOOSE]}$`),c("COERCE",`(^|[^\\d])(\\d{1,${n}})(?:\\.(\\d{1,${n}}))?(?:\\.(\\d{1,${n}}))?(?:$|[^\\d])`),c("COERCERTL",o[a.COERCE],!0),c("LONETILDE","(?:~>?)"),c("TILDETRIM",`(\\s*)${o[a.LONETILDE]}\\s+`,!0),t.tildeTrimReplace="$1~",c("TILDE",`^${o[a.LONETILDE]}${o[a.XRANGEPLAIN]}$`),c("TILDELOOSE",`^${o[a.LONETILDE]}${o[a.XRANGEPLAINLOOSE]}$`),c("LONECARET","(?:\\^)"),c("CARETTRIM",`(\\s*)${o[a.LONECARET]}\\s+`,!0),t.caretTrimReplace="$1^",c("CARET",`^${o[a.LONECARET]}${o[a.XRANGEPLAIN]}$`),c("CARETLOOSE",`^${o[a.LONECARET]}${o[a.XRANGEPLAINLOOSE]}$`),c("COMPARATORLOOSE",`^${o[a.GTLT]}\\s*(${o[a.LOOSEPLAIN]})$|^$`),c("COMPARATOR",`^${o[a.GTLT]}\\s*(${o[a.FULLPLAIN]})$|^$`),c("COMPARATORTRIM",`(\\s*)${o[a.GTLT]}\\s*(${o[a.LOOSEPLAIN]}|${o[a.XRANGEPLAIN]})`,!0),t.comparatorTrimReplace="$1$2$3",c("HYPHENRANGE",`^\\s*(${o[a.XRANGEPLAIN]})\\s+-\\s+(${o[a.XRANGEPLAIN]})\\s*$`),c("HYPHENRANGELOOSE",`^\\s*(${o[a.XRANGEPLAINLOOSE]})\\s+-\\s+(${o[a.XRANGEPLAINLOOSE]})\\s*$`),c("STAR","(<|>)?=?\\s*\\*"),c("GTE0","^\\s*>=\\s*0\\.0\\.0\\s*$"),c("GTE0PRE","^\\s*>=\\s*0\\.0\\.0-0\\s*$")})(As,As.exports);var vg=As.exports;const _g=Object.freeze({loose:!0}),yg=Object.freeze({}),bg=e=>e?typeof e!="object"?_g:e:yg;var Tg=bg;const No=/^[0-9]+$/,zl=(e,t)=>{const n=No.test(e),r=No.test(t);return n&&r&&(e=+e,t=+t),e===t?0:n&&!r?-1:r&&!n?1:ezl(t,e);var Sg={compareIdentifiers:zl,rcompareIdentifiers:Ig};const Qn=Vl,{MAX_LENGTH:Lo,MAX_SAFE_INTEGER:Jn}=Kl,{safeRe:Mo,t:Do}=vg,Ag=Tg,{compareIdentifiers:Wt}=Sg;let wg=class Xe{constructor(t,n){if(n=Ag(n),t instanceof Xe){if(t.loose===!!n.loose&&t.includePrerelease===!!n.includePrerelease)return t;t=t.version}else if(typeof t!="string")throw new TypeError(`Invalid version. Must be a string. Got type "${typeof t}".`);if(t.length>Lo)throw new TypeError(`version is longer than ${Lo} characters`);Qn("SemVer",t,n),this.options=n,this.loose=!!n.loose,this.includePrerelease=!!n.includePrerelease;const r=t.trim().match(n.loose?Mo[Do.LOOSE]:Mo[Do.FULL]);if(!r)throw new TypeError(`Invalid Version: ${t}`);if(this.raw=t,this.major=+r[1],this.minor=+r[2],this.patch=+r[3],this.major>Jn||this.major<0)throw new TypeError("Invalid major version");if(this.minor>Jn||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>Jn||this.patch<0)throw new TypeError("Invalid patch version");r[4]?this.prerelease=r[4].split(".").map(s=>{if(/^[0-9]+$/.test(s)){const i=+s;if(i>=0&&i=0;)typeof this.prerelease[i]=="number"&&(this.prerelease[i]++,i=-2);if(i===-1){if(n===this.prerelease.join(".")&&r===!1)throw new Error("invalid increment argument: identifier already exists");this.prerelease.push(s)}}if(n){let i=[n,s];r===!1&&(i=[n]),Wt(this.prerelease[0],n)===0?isNaN(this.prerelease[1])&&(this.prerelease=i):this.prerelease=i}break}default:throw new Error(`invalid increment argument: ${t}`)}return this.raw=this.format(),this.build.length&&(this.raw+=`+${this.build.join(".")}`),this}};var Og=wg;const Ho=Og,Rg=(e,t,n)=>new Ho(e,n).compare(new Ho(t,n));var Cg=Rg;const Bo=$l(Cg),FE="Kuma",kE=50,ws=500,xo="Disabled",$E="kuma.io/zone",Pg={status:null,tagline:null,version:null,kumaDocsVersion:"latest",clientConfig:null},Ng={SET_CONFIG_DATA:(e,t)=>e.clientConfig=t,SET_STATUS:(e,t)=>e.status=t,SET_TAGLINE:(e,t)=>e.tagline=t,SET_VERSION:(e,t)=>e.version=t,SET_KUMA_DOCS_VERSION:(e,t)=>e.kumaDocsVersion=t},Lg={getStatus:e=>e.status,getConfig:e=>e.clientConfig,getEnvironment:e=>{var t;return(t=e.clientConfig)==null?void 0:t.environment},getMode:e=>{var t;return(t=e.clientConfig)==null?void 0:t.mode},getTagline:e=>e.tagline,getVersion:e=>e.version,getKumaDocsVersion:e=>e.kumaDocsVersion,getConfigurationType:e=>{var t,n;return(n=(t=e.clientConfig)==null?void 0:t.store)==null?void 0:n.type},getMulticlusterStatus:(e,t)=>t.getMode==="global"},Mg=e=>({bootstrapConfig({dispatch:t}){const n=t("getInfo"),r=t("getConfig");return Promise.all([n,r])},getConfig({commit:t}){return e.getConfig().then(n=>{t("SET_CONFIG_DATA",n)})},getStatus({commit:t}){return e.getStatus().then(n=>{t("SET_STATUS",n)})},getInfo({commit:t}){return e.getInfo().then(n=>{t("SET_TAGLINE",n.tagline),t("SET_VERSION",n.version);let r;const s=n.basedOnKuma??n.version,i=s.indexOf("-preview.");if(i!==-1){const o=s.substring(0,i);r=o==="0.0.0"?"dev":o.replace(/\.\d+$/,".x")}else r=s.replace(/\.\d+$/,".x");t("SET_KUMA_DOCS_VERSION",r)}).catch(n=>{console.error(n)})}}),Dg=e=>({namespaced:!0,state:()=>Pg,getters:Lg,mutations:Ng,actions:Mg(e)}),Hg={isOpen:!1},Bg={OPEN_MODAL:e=>e.isOpen=!0,CLOSE_MODAL:e=>e.isOpen=!1},xg={meshNotificationItemMap(e,t,n){var i;return(((i=n.meshes)==null?void 0:i.items)||[]).reduce((o,a)=>(o[a.name]={hasLogging:!!a.logging,hasMtls:!!a.mtls,hasMetrics:!!a.metrics,hasTracing:!!a.tracing},o),{})},meshNotificationItemMapWithAction(e,t){const n=t.meshNotificationItemMap;return Object.entries(n).reduce((r,[s,i])=>(Object.values(i).some(a=>!a)&&(r[s]=i),r),{})},singleMeshNotificationItems(e,t,n,r){if(n.selectedMesh===null||!(n.selectedMesh in t.meshNotificationItemMap))return[];const s=t.meshNotificationItemMap[n.selectedMesh],i=Object.entries(r.getMeshInsight.policies).filter(([a,l])=>["MeshAccessLog","MeshTrace"].includes(a)).some(([a,l])=>l.total>0),o=[{name:"Observability, Metrics & Service Map",component:"MetricsNotification",isCompleted:s.hasMetrics},{name:"Logging",component:"LoggingNotification",isCompleted:s.hasLogging||i},{name:"Zero-trust security",component:"MtlsNotification",isCompleted:s.hasMtls},{name:"Tracing",component:"TracingNotification",isCompleted:s.hasTracing}];return o.sort((a,l)=>+a.isCompleted-+l.isCompleted),o},amountOfActions(e,t){return Object.keys(t.meshNotificationItemMapWithAction).length}},Ug={openModal({commit:e}){e("OPEN_MODAL")},closeModal({commit:e}){e("CLOSE_MODAL")}},Fg={namespaced:!0,state:()=>Hg,getters:xg,mutations:Bg,actions:Ug},kg={isCompleted:at.get("onboardingIsCompleted")==="true",step:at.get("onboardingStep")||"onboarding-welcome",mode:"demo"},$g={SET_STEP:(e,t)=>e.step=t,SET_IS_COMPLETED:(e,t)=>e.isCompleted=t,UPDATE_MODE:(e,t)=>e.mode=t},Gg={completeOnboarding({commit:e,dispatch:t}){t("fetchDataplaneTotalCount",null,{root:!0}),t("sidebar/getInsights",null,{root:!0}),e("SET_IS_COMPLETED",!0),at.set("onboardingIsCompleted","true"),at.remove("onboardingStep")},changeStep({commit:e},t){e("SET_STEP",t),at.set("onboardingStep",t)},changeMode({commit:e},t){e("UPDATE_MODE",t)}},jg={namespaced:!0,state:()=>kg,mutations:$g,actions:Gg};function Uo(e){const t=e.items.reduce((n,{dataplanes:r,dataplanesByType:s,policies:i,services:o})=>{var a,l;n.services.internal+=o.internal||0,n.services.external+=o.external||0,n.services.total+=o.total||0,n.dataplanes.total+=r.total||0,n.dataplanes.standard+=((a=s.standard)==null?void 0:a.total)||0,n.dataplanes.gateway+=((l=s.gateway)==null?void 0:l.total)||0;for(const[c,u]of Object.entries(i))n.policies[c]||(n.policies[c]=0),n.policies[c]+=u.total||0;return n},{services:{total:0,internal:0,external:0},dataplanes:{total:0,standard:0,gateway:0},policies:{}});return t.policies.total=Object.values(t.policies).reduce((n,r)=>n+r,0),t}function Vg(e){return Object.entries(e.resources).reduce((t,[n,r])=>(t[n]||(t[n]=0),t[n]+=r.total||0,t),{})}const Kg={insights:{global:{},mesh:{services:{total:0,internal:0,external:0},dataplanes:{total:0,standard:0,gateway:0},policies:{}}}},zg={SET_GLOBAL_INSIGHTS:(e,t)=>e.insights.global=t,SET_MESH_INSIGHTS:(e,t)=>e.insights.mesh=t},Zg=e=>({getInsights({dispatch:t}){return Promise.all([t("getGlobalInsights"),t("getMeshInsights")])},async getMeshInsights({commit:t,rootState:n}){if(n.selectedMesh===null)return;let r;try{const s=await e.getMeshInsights({name:n.selectedMesh});r=Uo({items:[s]})}catch{r=Uo({items:[]})}t("SET_MESH_INSIGHTS",r)},async getGlobalInsights({commit:t}){const n=await e.getGlobalInsights(),r=Vg(n);t("SET_GLOBAL_INSIGHTS",r)}}),Wg=e=>({namespaced:!0,state:()=>Kg,mutations:zg,actions:Zg(e)}),Zl=(e={},t={})=>{const n=e.online||0,r=t.online||0,s=e.partiallyDegraded||0,i=t.partiallyDegraded||0,o=e.total||0,a=t.total||0;return{online:n+r,partiallyDegraded:s+i,total:o+a}},Xg=(e={},t={})=>{const n=e.total??0,r=t.total??0,s=n+r,i=e.internal??0,o=t.internal??0,a=i+o,l=e.external??0,c=t.external??0,u=l+c;return{total:s,internal:a,external:u}},qg=(e={},t={})=>Object.entries(t).reduce((n,[r,s])=>{const i=n[r]?n[r].total:0;return{...n,[r]:{total:i+s.total}}},e),Fo=(e={},t={})=>Object.entries(t).reduce((n,[r,s])=>({...n,[r]:Zl(n[r],s)}),e),Yg=(e={kumaDp:{},envoy:{}},t={kumaDp:{},envoy:{}})=>({kumaDp:Fo(e.kumaDp,t.kumaDp),envoy:Fo(e.envoy,t.envoy)});function Wl(){return{meshesTotal:0,dataplanes:{online:0,partiallyDegraded:0,total:0},policies:{},dpVersions:{kumaDp:{},envoy:{}},services:{total:0,internal:0,external:0}}}function Qg(e){return Xl(e?[e]:[])}function Xl(e){return e.reduce((t,n)=>({meshesTotal:e.length,dataplanes:Zl(t.dataplanes,n.dataplanes),policies:qg(t.policies,n.policies),dpVersions:Yg(t.dpVersions,n.dpVersions),services:Xg(t.services,n.services)}),{meshesTotal:0,dataplanes:{online:0,partiallyDegraded:0,total:0},policies:{},dpVersions:{kumaDp:{},envoy:{}},services:{total:0,internal:0,external:0}})}const Jg=new Intl.DateTimeFormat("en-US",{dateStyle:"long"}),eE=new Intl.DateTimeFormat("en-US",{dateStyle:"long",timeStyle:"medium"});function GE(e){const t=new Date(Date.parse(e)),n=Math.floor((Date.now()-t.getTime())/1e3);return n<=1?"just now":n<20?`${n} seconds ago`:n<40?"half a minute ago":n<60?"less than a minute ago":n<=90?"one minute ago":n<=3540?`${Math.round(n/60)} minutes ago`:n<=5400?"1 hour ago":n<=86400?`${Math.round(n/3600)} hours ago`:n<=129600?"1 day ago":n<604800?`${Math.round(n/86400)} days ago`:n<=777600?"1 week ago":Jg.format(t)}function jE(e){const t=new Date(Date.parse(e));return eE.format(t)}function VE(e){const t=e.replace(/[^a-zA-Z0-9 -]/g,"").replace(/\s+/g,"-").replace(/-+/g,"-").trim();return e?t:""}async function ko(e){try{let t=null,n=0,r=[],s=null;for(;;){const i={size:ws,offset:n},{total:o,items:a,next:l}=await e(i);if(Array.isArray(a)&&(r=r.concat(a)),t===null&&(t=o),!l||s===l)break;s=l,n+=ws}return{total:t,items:r}}catch(t){throw new Error(`Resource fetching failed: ${t}`)}}function KE(e){var n;const t=((n=e.zoneInsight)==null?void 0:n.subscriptions)??[];if(t.length>0){const r=t[t.length-1];if(r.config){const s=JSON.parse(r.config);return ii(s,"dpServer.auth.type",xo)}}return xo}const tE="Online",nE="Offline",rE="Partially degraded",sE={menu:null,globalLoading:!0,defaultVisibility:{appError:!0,notificationManager:!0,onboardingNotification:!0},meshes:{total:0,items:[],next:null},selectedMesh:"default",totalDataplaneCount:0,version:"",itemQueryNamespace:"item",serviceSummary:{total:0,internal:{total:0,online:0,offline:0,partiallyDegraded:0},external:{total:0}},overviewCharts:{dataplanes:{data:[]},meshes:{data:[]},services:{data:[]},policies:{data:[]},zones:{data:[]},zonesCPVersions:{data:[]},kumaDPVersions:{data:[]},envoyVersions:{data:[]}},meshInsight:Wl(),policyTypes:[],policyTypesByPath:{},policyTypesByName:{},globalKdsAddress:"grpcs://:5685"},iE=e=>({modules:{sidebar:Wg(e),config:Dg(e),notifications:Fg,onboarding:jg},state:()=>sE,getters:{globalLoading:t=>t.globalLoading,shouldShowAppError:t=>t.defaultVisibility.appError&&t.config.status!=="OK",shouldShowNotificationManager:(t,n)=>t.defaultVisibility.notificationManager&&n["notifications/amountOfActions"]>0,shouldShowOnboardingNotification:t=>{const n=t.meshes.items.length===1&&t.meshes.items[0].name==="default";return t.defaultVisibility.onboardingNotification&&t.totalDataplaneCount===0&&n},getMeshList:t=>t.meshes,getItemQueryNamespace:t=>t.itemQueryNamespace,getMeshInsight:t=>t.meshInsight,getChart:t=>(n,{title:r,subtitle:s=void 0,showTotal:i=!1,isStatusChart:o=!1})=>({title:r,subtitle:s,showTotal:i,isStatusChart:o,dataPoints:t.overviewCharts[n].data})},mutations:{SET_GLOBAL_LOADING:(t,n)=>t.globalLoading=n,SET_MESHES:(t,n)=>t.meshes=n,SET_SELECTED_MESH:(t,n)=>t.selectedMesh=n,SET_TOTAL_DATAPLANE_COUNT:(t,n)=>t.totalDataplaneCount=n,SET_INTERNAL_SERVICE_SUMMARY:(t,{items:n=[]})=>{const r={online:0,partially_degraded:0,offline:0,not_available:0},{online:s,offline:i,partially_degraded:o}=n.reduce((l,{status:c="offline"})=>({...l,[c]:l[c]+1}),r),a=s+i+o;t.serviceSummary.internal={...t.serviceSummary.internal,total:a,online:s,partiallyDegraded:o,offline:i},t.serviceSummary.total=t.serviceSummary.external.total+a},SET_EXTERNAL_SERVICE_SUMMARY:(t,{total:n=0})=>{t.serviceSummary.external.total=n,t.serviceSummary.total=t.serviceSummary.internal.total+n},SET_MESH_INSIGHT:(t,n)=>t.meshInsight=Qg(n),SET_MESH_INSIGHT_FROM_ALL_MESHES:(t,n)=>t.meshInsight=Xl(n.items),SET_OVERVIEW_CHART_DATA:(t,{chartName:n,data:r})=>{t.overviewCharts[n].data=r},SET_POLICY_TYPES:(t,n)=>{n.sort((r,s)=>r.name.localeCompare(s.name)),t.policyTypes=n},SET_POLICY_TYPES_BY_PATH:(t,n)=>t.policyTypesByPath=n,SET_POLICY_TYPES_BY_NAME:(t,n)=>t.policyTypesByName=n,SET_GLOBAL_KDS_ADDRESS:(t,n)=>t.globalKdsAddress=n},actions:{updateGlobalLoading({commit:t},n){t("SET_GLOBAL_LOADING",n)},async bootstrap({dispatch:t,getters:n,state:r}){if(await t("config/getStatus"),n["config/getStatus"]==="OK")if(await Promise.all([t("fetchMeshList"),t("fetchDataplaneTotalCount"),t("config/bootstrapConfig")]),r.meshes.items.length>0){const s=at.get("selectedMesh");let i;if(s!==null){const o=r.meshes.items.find(a=>a.name===s);o!==void 0&&(i=o)}i===void 0&&(i=r.meshes.items[0]),await t("updateSelectedMesh",i.name),await t("sidebar/getInsights")}else await t("updateSelectedMesh",null)},async fetchMeshList({commit:t,state:n}){const r={size:ws};try{const{total:s,items:i,next:o}=await e.getAllMeshes(r),a={items:i??[],total:s,next:o};a.items.sort((l,c)=>l.name==="default"?-1:c.name==="default"?1:l.name.localeCompare(c.name)),t("SET_MESHES",a)}catch(s){console.error(s)}},updateSelectedMesh({commit:t},n){n!==null?at.set("selectedMesh",n):at.remove("selectedMesh"),t("SET_SELECTED_MESH",n)},async fetchDataplaneTotalCount({commit:t}){try{const n=await e.getAllDataplanes({size:1});t("SET_TOTAL_DATAPLANE_COUNT",n.total)}catch(n){console.error(n)}},async fetchMeshInsights({commit:t,dispatch:n},r){try{t("SET_MESH_INSIGHT",await e.getMeshInsights({name:r}))}catch{t("SET_MESH_INSIGHT",Wl())}finally{n("setChartsFromMeshInsights")}},async fetchServiceInsights({commit:t},n){try{t("SET_INTERNAL_SERVICE_SUMMARY",await ko(e.getAllServiceInsightsFromMesh.bind(e,{mesh:n})))}catch{t("SET_INTERNAL_SERVICE_SUMMARY",{})}},async fetchExternalServices({commit:t},n){try{t("SET_EXTERNAL_SERVICE_SUMMARY",await ko(e.getAllExternalServicesFromMesh.bind(e,{mesh:n})))}catch{t("SET_EXTERNAL_SERVICE_SUMMARY",{})}},async fetchServices({dispatch:t},n){const r=t("fetchExternalServices",n),s=t("fetchServiceInsights",n);await Promise.all([s,r]),await t("setOverviewServicesChartData")},async fetchPolicyTypes({commit:t}){const{policies:n}=await e.getPolicyTypes(),r=n.reduce((i,o)=>Object.assign(i,{[o.path]:o}),{}),s=n.reduce((i,o)=>Object.assign(i,{[o.name]:o}),{});t("SET_POLICY_TYPES",n),t("SET_POLICY_TYPES_BY_PATH",r),t("SET_POLICY_TYPES_BY_NAME",s)},setChartsFromMeshInsights({dispatch:t}){t("setOverviewDataplanesChartData"),t("setOverviewKumaDPVersionsChartData"),t("setOverviewEnvoyVersionsChartData")},setOverviewServicesChartData({state:t,commit:n}){const{internal:r,external:s}=t.serviceSummary,i=[];r.total&&t.selectedMesh!==null&&i.push({title:"Internal",data:r.total,route:{name:"services-list-view",params:{mesh:t.selectedMesh}}}),s.total&&t.selectedMesh!==null&&i.push({title:"External",data:s.total,route:{name:"services-list-view",params:{mesh:t.selectedMesh}}}),n("SET_OVERVIEW_CHART_DATA",{chartName:"services",data:i})},setOverviewDataplanesChartData({state:t,commit:n}){const r=t.meshInsight.dataplanes.total,s=[];if(r>0){const i=t.meshInsight.dataplanes.online??0;s.push({title:tE,data:i});const o=t.meshInsight.dataplanes.partiallyDegraded??0;o>0&&s.push({title:rE,data:o});const a=r-o-i;a>0&&s.push({title:nE,data:a})}n("SET_OVERVIEW_CHART_DATA",{chartName:"dataplanes",data:s})},setOverviewEnvoyVersionsChartData({state:t,commit:n}){const{envoy:r}=t.meshInsight.dpVersions,s=Object.entries(r).map(([i,o])=>({title:i,data:o.total??0}));s.sort((i,o)=>i.title==="unknown"?1:o.title==="unknown"?-1:Bo(i.title,o.title)),n("SET_OVERVIEW_CHART_DATA",{chartName:"envoyVersions",data:s})},setOverviewKumaDPVersionsChartData({state:t,commit:n}){const{kumaDp:r}=t.meshInsight.dpVersions,s=Object.entries(r).map(([i,o])=>({title:i,data:o.total??0}));s.sort((i,o)=>i.title==="unknown"?1:o.title==="unknown"?-1:Bo(i.title,o.title)),n("SET_OVERVIEW_CHART_DATA",{chartName:"kumaDPVersions",data:s})},updateGlobalKdsAddress({commit:t},n){t("SET_GLOBAL_KDS_ADDRESS",n)}}}),oE={EnvVars:re("EnvVars"),Env:re("Env"),env:re("env"),i18n:re("i18n"),enUs:re("i18n.locale.enUs"),kumaEnUs:re("kuma.locale.enUs"),httpClient:re("httpClient"),api:re("KumaApi"),storeConfig:re("storeOptions"),store:re("store"),router:re("router"),routes:re("vue.routes"),meshRoutes:re("kuma.mesh.routes"),dataplaneRoutes:re("kuma.dataplane.routes"),gatewayRoutes:re("kuma.gateway.routes"),serviceRoutes:re("kuma.service.routes"),policyRoutes:re("kuma.policy.routes"),zoneRoutes:re("kuma.zone.routes"),diagnosticsRoutes:re("kuma.diagnostics.routes"),onboardingRoutes:re("kuma.onboarding.routes"),wizardRoutes:re("kuma.wizard.routes"),nav:re("nav"),logger:re("logger"),app:re("app"),bootstrap:re("bootstrap")},aE=e=>[[e.EnvVars,{constant:{KUMA_PRODUCT_NAME:"Kuma",KUMA_FEEDBACK_URL:"https://github.com/kumahq/kuma/issues/new/choose",KUMA_CHAT_URL:"https://kuma-mesh.slack.com",KUMA_INSTALL_URL:"https://kuma.io/install/latest/",KUMA_VERSION_URL:"https://kuma.io/latest_version",KUMA_DOCS_URL:"https://kuma.io/docs",KUMA_MOCK_API_ENABLED:{}.VITE_MOCK_API_ENABLED,KUMA_ZONE_CREATION_FLOW:{}.VITE_ZONE_CREATION_FLOW}}],[e.Env,{service:Zp,arguments:[e.EnvVars]}],[e.env,{service:()=>(...t)=>$n(e.Env).var(...t)}],[e.i18n,{service:_m,arguments:[e.enUs]}],[e.kumaEnUs,{constant:Vp,labels:[e.enUs]}],[e.httpClient,{service:wm,arguments:[e.env]}],[e.api,{service:bm,arguments:[e.httpClient,e.env]}],[e.logger,{service:ch}],[e.storeConfig,{service:iE,arguments:[e.api]}],[e.store,{service:ah,arguments:[e.storeConfig]}],[e.router,{service:hl,arguments:[e.routes,e.store]}],[e.routes,{service:Kp,arguments:[e.zoneRoutes,e.meshRoutes,e.wizardRoutes,e.onboardingRoutes,e.diagnosticsRoutes]}],[e.meshRoutes,{service:Sp,arguments:[e.serviceRoutes,e.gatewayRoutes,e.dataplaneRoutes,e.policyRoutes]}],[e.dataplaneRoutes,{service:yp}],[e.gatewayRoutes,{service:Tp}],[e.serviceRoutes,{service:Op}],[e.policyRoutes,{service:wp,arguments:[e.store,e.Env]}],[e.zoneRoutes,{service:Pp,arguments:[fg([...{}.VITE_ZONE_CREATION_FLOW==="enabled"?Cp():[]],{description:"kuma.zone.action.routes"})]}],[e.wizardRoutes,{service:Rp}],[e.onboardingRoutes,{service:Ap}],[e.diagnosticsRoutes,{service:bp}],[e.nav,{service:()=>t=>Ip(t)}],[e.app,{service:Ep,arguments:[e.env,e.routes,e.store]}],[e.bootstrap,{service:vp,arguments:[e.store]}]],er=oE;async function lE(){const e=ug(aE(er),[]);(await e(er.app)((await V(()=>import("./App-8ea103e0.js"),["./RouteView-a4ddf9f0.css","./App-dbf5302b.css"],import.meta.url)).default)).mount("#app");const n=e(er.store);await n.dispatch("updateGlobalLoading",!0),await e(er.bootstrap)(),await n.dispatch("updateGlobalLoading",!1)}lE();export{X as $,AE as A,FE as B,js as C,Ta as D,TE as E,Ne as F,mE as G,RE as H,jE as I,PE as J,$E as K,at as L,DE as M,VE as N,CE as O,kE as P,ME as Q,ko as R,KE as S,ja as T,Ge as U,sr as V,$n as W,er as X,UE as Y,Ft as Z,qs as _,xa as a,V as a0,Ns as a1,Zc as a2,af as a3,q as a4,sa as a5,Bo as a6,Xl as a7,fg as a8,pn as a9,He as aa,St as ab,Xu as ac,IE as ad,fa as ae,LE as af,NE as ag,OE as ah,dE as ai,bE as aj,rn as ak,fE as al,Ws as am,Tm as an,xE as ao,$l as ap,Jt as b,Le as c,ya as d,SE as e,wE as f,Wu as g,Ae as h,EE as i,vE as j,Fa as k,_E as l,pE as m,yE as n,Ha as o,hE as p,zc as q,gE as r,tn as s,uE as t,BE as u,HE as v,ou as w,GE as x,Gs as y,Ls as z}; diff --git a/app/kuma-ui/pkg/resources/data/assets/kongponents.es-07c2d778.js b/app/kuma-ui/pkg/resources/data/assets/kongponents.es-f7b55123.js similarity index 99% rename from app/kuma-ui/pkg/resources/data/assets/kongponents.es-07c2d778.js rename to app/kuma-ui/pkg/resources/data/assets/kongponents.es-f7b55123.js index 0a8af92a759d..def0273fe3da 100644 --- a/app/kuma-ui/pkg/resources/data/assets/kongponents.es-07c2d778.js +++ b/app/kuma-ui/pkg/resources/data/assets/kongponents.es-f7b55123.js @@ -1,4 +1,4 @@ -import{a9 as Bl,c as T,d as re,q as z,y as qe,s as Me,C as Tn,aa as Bs,ab as Ms,_ as Qa,r as br,u as Ss,o as w,e as A,a as q,w as F,n as L,g as V,t as Q,b as k,ac as ge,i as On,z as G,E as tt,ad as Mt,k as E,l as ca,f as Z,ae as Ot,h as U,af as ct,ag as Ue,G as Ua,a1 as mt,Q as Ga,T as Ml,ah as Sl,F as xe,j as Ie,D as Al,ai as Dl,aj as $a,p as Zn,m as In,ak as As,al as Ds,am as Es}from"./index-50754121.js";var Ts=Object.defineProperty,Os=(e,t,n)=>t in e?Ts(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Zr=(e,t,n)=>(Os(e,typeof t!="symbol"?t+"":t,n),n);async function El(e){if(navigator.clipboard)try{return await navigator.clipboard.writeText(e),!0}catch{}const t=document.createElement("textarea");t.style.position="fixed",t.style.top="0",t.style.left="0",t.style.width="32px",t.style.height="32px",t.style.padding="0",t.style.border="none",t.style.outline="none",t.style.boxShadow="none",t.style.background="transparent",t.value=e,document.body.appendChild(t),t.focus(),t.select();let n;try{n=document.execCommand("copy")}catch{n=!1}finally{document.body.removeChild(t)}return n}const jx=re({name:"KClipboardProvider",setup(e,{slots:t}){return()=>(t==null?void 0:t.default)&&t.default({copyToClipboard:El})}}),Tl=re({name:"KToggle",props:{toggled:{type:Boolean,default:!1}},emits:["toggled"],setup(e,{slots:t,emit:n}){const r=z(e.toggled),o=()=>{r.value=!r.value,n("toggled",r.value)};try{if(!t.default)throw new Error("KToggle expects slot content");return()=>(t==null?void 0:t.default)&&t.default({isToggled:r,toggle:o})}catch{return console.error(`KToggle expects to have slot content. +import{a9 as Bl,c as T,d as re,q as z,y as qe,s as Me,C as Tn,aa as Bs,ab as Ms,_ as Qa,r as br,u as Ss,o as w,e as A,a as q,w as F,n as L,g as V,t as Q,b as k,ac as ge,i as On,z as G,E as tt,ad as Mt,k as E,l as ca,f as Z,ae as Ot,h as U,af as ct,ag as Ue,G as Ua,a1 as mt,Q as Ga,T as Ml,ah as Sl,F as xe,j as Ie,D as Al,ai as Dl,aj as $a,p as Zn,m as In,ak as As,al as Ds,am as Es}from"./index-a4a530d1.js";var Ts=Object.defineProperty,Os=(e,t,n)=>t in e?Ts(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Zr=(e,t,n)=>(Os(e,typeof t!="symbol"?t+"":t,n),n);async function El(e){if(navigator.clipboard)try{return await navigator.clipboard.writeText(e),!0}catch{}const t=document.createElement("textarea");t.style.position="fixed",t.style.top="0",t.style.left="0",t.style.width="32px",t.style.height="32px",t.style.padding="0",t.style.border="none",t.style.outline="none",t.style.boxShadow="none",t.style.background="transparent",t.value=e,document.body.appendChild(t),t.focus(),t.select();let n;try{n=document.execCommand("copy")}catch{n=!1}finally{document.body.removeChild(t)}return n}const jx=re({name:"KClipboardProvider",setup(e,{slots:t}){return()=>(t==null?void 0:t.default)&&t.default({copyToClipboard:El})}}),Tl=re({name:"KToggle",props:{toggled:{type:Boolean,default:!1}},emits:["toggled"],setup(e,{slots:t,emit:n}){const r=z(e.toggled),o=()=>{r.value=!r.value,n("toggled",r.value)};try{if(!t.default)throw new Error("KToggle expects slot content");return()=>(t==null?void 0:t.default)&&t.default({isToggled:r,toggle:o})}catch{return console.error(`KToggle expects to have slot content. Example usage: diff --git a/app/kuma-ui/pkg/resources/data/index.html b/app/kuma-ui/pkg/resources/data/index.html index ffbe697f6c4f..fa94d36f97e6 100644 --- a/app/kuma-ui/pkg/resources/data/index.html +++ b/app/kuma-ui/pkg/resources/data/index.html @@ -1 +1 @@ -Manager
\ No newline at end of file +Manager
\ No newline at end of file