diff --git a/app/kuma-ui/pkg/resources/data/assets/AccordionList-5331d528.js b/app/kuma-ui/pkg/resources/data/assets/AccordionList-a4be0b78.js similarity index 96% rename from app/kuma-ui/pkg/resources/data/assets/AccordionList-5331d528.js rename to app/kuma-ui/pkg/resources/data/assets/AccordionList-a4be0b78.js index 2bae89b74b72..148877d560f7 100644 --- a/app/kuma-ui/pkg/resources/data/assets/AccordionList-5331d528.js +++ b/app/kuma-ui/pkg/resources/data/assets/AccordionList-a4be0b78.js @@ -1 +1 @@ -import{d as v,ak as m,B as i,H as y,o as c,c as l,m as A,r as s,f as h,e as b,w as x,p as O,al as I,n as L,_ as p,am as g}from"./index-5f4feb06.js";const B=["aria-expanded"],$={key:0,class:"accordion-item-content","data-testid":"accordion-item-content"},k=v({__name:"AccordionItem",setup(r){const e=m("parentAccordion"),t=i(null),n=y(()=>e===void 0?!1:e.multipleOpen&&Array.isArray(e.active.value)&&t.value!==null?e.active.value.includes(t.value):t.value===e.active.value);e!==void 0&&(t.value=e.count.value++);function o(){n.value?u():_()}function u(){e!==void 0&&(e.multipleOpen&&Array.isArray(e.active.value)&&t.value!==null?e.active.value.splice(e.active.value.indexOf(t.value),1):e.active.value=null)}function _(){e!==void 0&&(e.multipleOpen&&Array.isArray(e.active.value)&&t.value!==null?e.active.value.push(t.value):e.active.value=t.value)}function d(a){a instanceof HTMLElement&&(a.style.height=`${a.scrollHeight}px`)}function f(a){a instanceof HTMLElement&&(a.style.height="auto")}return(a,N)=>(c(),l("li",{class:L(["accordion-item",{active:n.value}])},[A("button",{class:"accordion-item-header",type:"button","aria-expanded":n.value?"true":"false","data-testid":"accordion-item-button",onClick:o},[s(a.$slots,"accordion-header",{},void 0,!0)],8,B),h(),b(I,{name:"accordion",onEnter:d,onAfterEnter:f,onBeforeLeave:d},{default:x(()=>[n.value?(c(),l("div",$,[s(a.$slots,"accordion-content",{},void 0,!0)])):O("",!0)]),_:3})],2))}});const T=p(k,[["__scopeId","data-v-53a0b6ce"]]),C={class:"accordion-list"},E=v({__name:"AccordionList",props:{initiallyOpen:{type:[Number,Array],required:!1,default:null},multipleOpen:{type:Boolean,required:!1,default:!1}},setup(r){const e=r,t=i(0),n=i(e.initiallyOpen!==null?e.initiallyOpen:e.multipleOpen?[]:null);return g("parentAccordion",{multipleOpen:e.multipleOpen,active:n,count:t}),(o,u)=>(c(),l("ul",C,[s(o.$slots,"default",{},void 0,!0)]))}});const V=p(E,[["__scopeId","data-v-bdbadd5e"]]);export{T as A,V as a}; +import{d as v,ak as m,B as i,H as y,o as c,c as l,m as A,r as s,f as h,e as b,w as x,p as O,al as I,n as L,_ as p,am as g}from"./index-0dcf85b4.js";const B=["aria-expanded"],$={key:0,class:"accordion-item-content","data-testid":"accordion-item-content"},k=v({__name:"AccordionItem",setup(r){const e=m("parentAccordion"),t=i(null),n=y(()=>e===void 0?!1:e.multipleOpen&&Array.isArray(e.active.value)&&t.value!==null?e.active.value.includes(t.value):t.value===e.active.value);e!==void 0&&(t.value=e.count.value++);function o(){n.value?u():_()}function u(){e!==void 0&&(e.multipleOpen&&Array.isArray(e.active.value)&&t.value!==null?e.active.value.splice(e.active.value.indexOf(t.value),1):e.active.value=null)}function _(){e!==void 0&&(e.multipleOpen&&Array.isArray(e.active.value)&&t.value!==null?e.active.value.push(t.value):e.active.value=t.value)}function d(a){a instanceof HTMLElement&&(a.style.height=`${a.scrollHeight}px`)}function f(a){a instanceof HTMLElement&&(a.style.height="auto")}return(a,N)=>(c(),l("li",{class:L(["accordion-item",{active:n.value}])},[A("button",{class:"accordion-item-header",type:"button","aria-expanded":n.value?"true":"false","data-testid":"accordion-item-button",onClick:o},[s(a.$slots,"accordion-header",{},void 0,!0)],8,B),h(),b(I,{name:"accordion",onEnter:d,onAfterEnter:f,onBeforeLeave:d},{default:x(()=>[n.value?(c(),l("div",$,[s(a.$slots,"accordion-content",{},void 0,!0)])):O("",!0)]),_:3})],2))}});const T=p(k,[["__scopeId","data-v-53a0b6ce"]]),C={class:"accordion-list"},E=v({__name:"AccordionList",props:{initiallyOpen:{type:[Number,Array],required:!1,default:null},multipleOpen:{type:Boolean,required:!1,default:!1}},setup(r){const e=r,t=i(0),n=i(e.initiallyOpen!==null?e.initiallyOpen:e.multipleOpen?[]:null);return g("parentAccordion",{multipleOpen:e.multipleOpen,active:n,count:t}),(o,u)=>(c(),l("ul",C,[s(o.$slots,"default",{},void 0,!0)]))}});const V=p(E,[["__scopeId","data-v-bdbadd5e"]]);export{T as A,V as a}; diff --git a/app/kuma-ui/pkg/resources/data/assets/App-71342d2b.js b/app/kuma-ui/pkg/resources/data/assets/App-239bdbf5.js similarity index 99% rename from app/kuma-ui/pkg/resources/data/assets/App-71342d2b.js rename to app/kuma-ui/pkg/resources/data/assets/App-239bdbf5.js index 933a79cdbbfb..5c5a74e60abe 100644 --- a/app/kuma-ui/pkg/resources/data/assets/App-71342d2b.js +++ b/app/kuma-ui/pkg/resources/data/assets/App-239bdbf5.js @@ -1,4 +1,4 @@ -import{_ as S,o as l,c as A,r as m,d as h,a as _,b as d,w as t,e as c,f as e,n as w,h as C,g as R,i as V,j as O,u as K,k as M,l as a,m as s,t as u,p as b,q as z,V as U,s as D,v as B,x as T}from"./index-5f4feb06.js";import{K as E}from"./index-fce48c05.js";const P=""+new URL("product-logo-7a2ca341.png",import.meta.url).href,H={},Z={class:"app-navigator"};function x(r,o){return l(),A("li",Z,[m(r.$slots,"default")])}const y=S(H,[["render",x]]),G=h({__name:"ControlPlaneNavigator",setup(r){return(o,p)=>{const i=_("RouterLink");return l(),d(y,{"data-testid":"control-planes-navigator"},{default:t(()=>[c(i,{class:w({"is-active":[o.$route.name].concat(o.$route.matched.map(n=>n.name)).some(n=>n==="home")}),to:{name:"home"}},{default:t(()=>[e(` +import{_ as S,o as l,c as A,r as m,d as h,a as _,b as d,w as t,e as c,f as e,n as w,h as C,g as R,i as V,j as O,u as K,k as M,l as a,m as s,t as u,p as b,q as z,V as U,s as D,v as B,x as T}from"./index-0dcf85b4.js";import{K as E}from"./index-fce48c05.js";const P=""+new URL("product-logo-7a2ca341.png",import.meta.url).href,H={},Z={class:"app-navigator"};function x(r,o){return l(),A("li",Z,[m(r.$slots,"default")])}const y=S(H,[["render",x]]),G=h({__name:"ControlPlaneNavigator",setup(r){return(o,p)=>{const i=_("RouterLink");return l(),d(y,{"data-testid":"control-planes-navigator"},{default:t(()=>[c(i,{class:w({"is-active":[o.$route.name].concat(o.$route.matched.map(n=>n.name)).some(n=>n==="home")}),to:{name:"home"}},{default:t(()=>[e(` Home `)]),_:1},8,["class"])]),_:1})}}}),Y=h({name:"github-button",props:{href:String,ariaLabel:String,title:String,dataIcon:String,dataColorScheme:String,dataSize:String,dataShowCount:String,dataText:String},render:function(){const r={ref:"_"};for(const o in this.$props)r[C(o)]=this.$props[o];return R("span",[V(this.$slots,"default")?R("a",r,this.$slots.default()):R("a",r)])},mounted:function(){this.paint()},beforeUpdate:function(){this.reset()},updated:function(){this.paint()},beforeUnmount:function(){this.reset()},methods:{paint:function(){const r=this.$el.appendChild(document.createElement("span")),o=this;O(()=>import("./buttons.esm-48f94bc9.js"),[],import.meta.url).then(function(p){p.render(r.appendChild(o.$refs._),function(i){try{r.parentNode.replaceChild(i,r)}catch{}})})},reset:function(){this.$el.replaceChild(this.$refs._,this.$el.lastChild)}}}),q={class:"alert-content"},j=h({__name:"UpgradeCheck",setup(r){const o=K(),{t:p}=M();return(i,n)=>{const k=_("KButton"),g=_("KAlert"),f=_("DataSource");return l(),d(f,{src:"/control-plane/version/latest"},{default:t(({data:v})=>[a(o)("KUMA_VERSION")!==(v==null?void 0:v.version)?(l(),d(g,{key:0,"data-testid":"upgrade-check",class:"upgrade-check-alert",appearance:"info",size:"small"},{alertMessage:t(()=>[s("div",q,[s("div",null,u(a(p)("common.product.name"))+` update available `,1),e(),s("div",null,[c(k,{appearance:"primary",to:a(p)("common.product.href.install")},{default:t(()=>[e(` diff --git a/app/kuma-ui/pkg/resources/data/assets/AppCollection-4b66f394.js b/app/kuma-ui/pkg/resources/data/assets/AppCollection-a7a0983f.js similarity index 94% rename from app/kuma-ui/pkg/resources/data/assets/AppCollection-4b66f394.js rename to app/kuma-ui/pkg/resources/data/assets/AppCollection-a7a0983f.js index de711bd1f101..eaa648c01751 100644 --- a/app/kuma-ui/pkg/resources/data/assets/AppCollection-4b66f394.js +++ b/app/kuma-ui/pkg/resources/data/assets/AppCollection-a7a0983f.js @@ -1 +1 @@ -import{K as z}from"./index-fce48c05.js";import{d as I,k as A,o as u,c as D,e as g,l as o,a6 as K,f as c,m as V,r as v,t as m,_ as L,N as q,B as r,H as E,a7 as w,b as h,W as N,w as l,O as P,z as W,D as j,a8 as H,a9 as U}from"./index-5f4feb06.js";import{_ as F}from"./EmptyBlock.vue_vue_type_script_setup_true_lang-7f79002a.js";const Z=["href"],G=I({__name:"DocumentationLink",props:{href:{}},setup(_){const{t:p}=A(),f=_;return(e,S)=>(u(),D("a",{class:"docs-link",href:f.href,target:"_blank"},[g(o(K),{size:o(z),title:o(p)("common.documentation")},null,8,["size","title"]),c(),V("span",null,[v(e.$slots,"default",{},()=>[c(m(o(p)("common.documentation")),1)],!0)])],8,Z))}});const J=L(G,[["__scopeId","data-v-1e7645ce"]]),Q={key:0,class:"app-collection-toolbar"},x=5,X=I({__name:"AppCollection",props:{isSelectedRow:{type:[Function,null],default:null},total:{default:0},pageNumber:{default:1},pageSize:{default:30},items:{},headers:{},error:{default:void 0},emptyStateTitle:{default:void 0},emptyStateMessage:{default:void 0},emptyStateCtaTo:{default:void 0},emptyStateCtaText:{default:void 0}},emits:["change"],setup(_,{emit:p}){const{t:f}=A(),e=_,S=p,O=q(),k=r(e.items),C=r(0),b=r(0),y=r(e.pageNumber),T=r(e.pageSize),B=E(()=>{const t=e.headers.filter(a=>["details","warnings","actions"].includes(a.key));if(t.length>4)return"initial";const s=100-t.length*x,n=e.headers.length-t.length;return`calc(${s}% / ${n})`});w(()=>e.items,(t,s)=>{t!==s&&(C.value++,k.value=e.items)}),w(()=>e.pageNumber,function(){e.pageNumber!==y.value&&b.value++});function M(t){if(!t)return{};const s={};return e.isSelectedRow!==null&&e.isSelectedRow(t)&&(s.class="is-selected"),s}const R=t=>{const s=t.target.closest("tr");if(s){const n=s.querySelector("a");n!==null&&n.click()}};return(t,s)=>{var n;return u(),h(o(U),{key:b.value,class:"app-collection",style:H(`--column-width: ${B.value}; --special-column-width: ${x}%;`),"has-error":typeof e.error<"u","pagination-total-items":e.total,"initial-fetcher-params":{page:e.pageNumber,pageSize:e.pageSize},headers:e.headers,"fetcher-cache-key":String(C.value),fetcher:({page:a,pageSize:i,query:$})=>{const d={};return y.value!==a&&(d.page=a),T.value!==i&&(d.size=i),y.value=a,T.value=i,Object.keys(d).length>0&&S("change",d),{data:k.value}},"cell-attrs":({headerKey:a})=>({class:`${a}-column`}),"row-attrs":M,"disable-sorting":"","hide-pagination-when-optional":"","onRow:click":R},N({_:2},[((n=e.items)==null?void 0:n.length)===0?{name:"empty-state",fn:l(()=>[g(F,null,N({default:l(()=>[c(m(e.emptyStateTitle??o(f)("common.emptyState.title"))+" ",1),c()]),_:2},[e.emptyStateMessage?{name:"message",fn:l(()=>[c(m(e.emptyStateMessage),1)]),key:"0"}:void 0,e.emptyStateCtaTo?{name:"cta",fn:l(()=>[typeof e.emptyStateCtaTo=="string"?(u(),h(J,{key:0,href:e.emptyStateCtaTo},{default:l(()=>[c(m(e.emptyStateCtaText),1)]),_:1},8,["href"])):(u(),h(o(P),{key:1,appearance:"primary",to:e.emptyStateCtaTo},{default:l(()=>[g(o(W),{size:o(z)},null,8,["size"]),c(" "+m(e.emptyStateCtaText),1)]),_:1},8,["to"]))]),key:"1"}:void 0]),1024)]),key:"0"}:void 0,j(Object.keys(o(O)),a=>({name:a,fn:l(({row:i,rowValue:$})=>[a==="toolbar"?(u(),D("div",Q,[v(t.$slots,"toolbar",{},void 0,!0)])):v(t.$slots,a,{key:1,row:i,rowValue:$},void 0,!0)])}))]),1032,["style","has-error","pagination-total-items","initial-fetcher-params","headers","fetcher-cache-key","fetcher","cell-attrs"])}}});const ae=L(X,[["__scopeId","data-v-06f2a961"]]);export{ae as A,J as D}; +import{K as z}from"./index-fce48c05.js";import{d as I,k as A,o as u,c as D,e as g,l as o,a6 as K,f as c,m as V,r as v,t as m,_ as L,N as q,B as r,H as E,a7 as w,b as h,W as N,w as l,O as P,z as W,D as j,a8 as H,a9 as U}from"./index-0dcf85b4.js";import{_ as F}from"./EmptyBlock.vue_vue_type_script_setup_true_lang-6ff90078.js";const Z=["href"],G=I({__name:"DocumentationLink",props:{href:{}},setup(_){const{t:p}=A(),f=_;return(e,S)=>(u(),D("a",{class:"docs-link",href:f.href,target:"_blank"},[g(o(K),{size:o(z),title:o(p)("common.documentation")},null,8,["size","title"]),c(),V("span",null,[v(e.$slots,"default",{},()=>[c(m(o(p)("common.documentation")),1)],!0)])],8,Z))}});const J=L(G,[["__scopeId","data-v-1e7645ce"]]),Q={key:0,class:"app-collection-toolbar"},x=5,X=I({__name:"AppCollection",props:{isSelectedRow:{type:[Function,null],default:null},total:{default:0},pageNumber:{default:1},pageSize:{default:30},items:{},headers:{},error:{default:void 0},emptyStateTitle:{default:void 0},emptyStateMessage:{default:void 0},emptyStateCtaTo:{default:void 0},emptyStateCtaText:{default:void 0}},emits:["change"],setup(_,{emit:p}){const{t:f}=A(),e=_,S=p,O=q(),k=r(e.items),C=r(0),b=r(0),y=r(e.pageNumber),T=r(e.pageSize),B=E(()=>{const t=e.headers.filter(a=>["details","warnings","actions"].includes(a.key));if(t.length>4)return"initial";const s=100-t.length*x,n=e.headers.length-t.length;return`calc(${s}% / ${n})`});w(()=>e.items,(t,s)=>{t!==s&&(C.value++,k.value=e.items)}),w(()=>e.pageNumber,function(){e.pageNumber!==y.value&&b.value++});function M(t){if(!t)return{};const s={};return e.isSelectedRow!==null&&e.isSelectedRow(t)&&(s.class="is-selected"),s}const R=t=>{const s=t.target.closest("tr");if(s){const n=s.querySelector("a");n!==null&&n.click()}};return(t,s)=>{var n;return u(),h(o(U),{key:b.value,class:"app-collection",style:H(`--column-width: ${B.value}; --special-column-width: ${x}%;`),"has-error":typeof e.error<"u","pagination-total-items":e.total,"initial-fetcher-params":{page:e.pageNumber,pageSize:e.pageSize},headers:e.headers,"fetcher-cache-key":String(C.value),fetcher:({page:a,pageSize:i,query:$})=>{const d={};return y.value!==a&&(d.page=a),T.value!==i&&(d.size=i),y.value=a,T.value=i,Object.keys(d).length>0&&S("change",d),{data:k.value}},"cell-attrs":({headerKey:a})=>({class:`${a}-column`}),"row-attrs":M,"disable-sorting":"","hide-pagination-when-optional":"","onRow:click":R},N({_:2},[((n=e.items)==null?void 0:n.length)===0?{name:"empty-state",fn:l(()=>[g(F,null,N({default:l(()=>[c(m(e.emptyStateTitle??o(f)("common.emptyState.title"))+" ",1),c()]),_:2},[e.emptyStateMessage?{name:"message",fn:l(()=>[c(m(e.emptyStateMessage),1)]),key:"0"}:void 0,e.emptyStateCtaTo?{name:"cta",fn:l(()=>[typeof e.emptyStateCtaTo=="string"?(u(),h(J,{key:0,href:e.emptyStateCtaTo},{default:l(()=>[c(m(e.emptyStateCtaText),1)]),_:1},8,["href"])):(u(),h(o(P),{key:1,appearance:"primary",to:e.emptyStateCtaTo},{default:l(()=>[g(o(W),{size:o(z)},null,8,["size"]),c(" "+m(e.emptyStateCtaText),1)]),_:1},8,["to"]))]),key:"1"}:void 0]),1024)]),key:"0"}:void 0,j(Object.keys(o(O)),a=>({name:a,fn:l(({row:i,rowValue:$})=>[a==="toolbar"?(u(),D("div",Q,[v(t.$slots,"toolbar",{},void 0,!0)])):v(t.$slots,a,{key:1,row:i,rowValue:$},void 0,!0)])}))]),1032,["style","has-error","pagination-total-items","initial-fetcher-params","headers","fetcher-cache-key","fetcher","cell-attrs"])}}});const ae=L(X,[["__scopeId","data-v-06f2a961"]]);export{ae as A,J as D}; diff --git a/app/kuma-ui/pkg/resources/data/assets/CodeBlock.vue_vue_type_style_index_0_lang-6de3c828.js b/app/kuma-ui/pkg/resources/data/assets/CodeBlock.vue_vue_type_style_index_0_lang-95cf08c2.js similarity index 99% rename from app/kuma-ui/pkg/resources/data/assets/CodeBlock.vue_vue_type_style_index_0_lang-6de3c828.js rename to app/kuma-ui/pkg/resources/data/assets/CodeBlock.vue_vue_type_style_index_0_lang-95cf08c2.js index 0e74e84b9f09..e627c487222d 100644 --- a/app/kuma-ui/pkg/resources/data/assets/CodeBlock.vue_vue_type_style_index_0_lang-6de3c828.js +++ b/app/kuma-ui/pkg/resources/data/assets/CodeBlock.vue_vue_type_style_index_0_lang-95cf08c2.js @@ -1,4 +1,4 @@ -import{ae as Y,af as Q,d as ee,B as ae,o as te,b as ne,W as re,w as ie,r as se,l as oe,ag as le}from"./index-5f4feb06.js";import{u as ue}from"./uniqueId-90cc9b93.js";var Z={exports:{}};(function(m){var E=typeof window<"u"?window:typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope?self:{};/** +import{ae as Y,af as Q,d as ee,B as ae,o as te,b as ne,W as re,w as ie,r as se,l as oe,ag as le}from"./index-0dcf85b4.js";import{u as ue}from"./uniqueId-90cc9b93.js";var Z={exports:{}};(function(m){var E=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/ControlPlaneDetailView-b9f70821.js b/app/kuma-ui/pkg/resources/data/assets/ControlPlaneDetailView-28d5ccda.js similarity index 89% rename from app/kuma-ui/pkg/resources/data/assets/ControlPlaneDetailView-b9f70821.js rename to app/kuma-ui/pkg/resources/data/assets/ControlPlaneDetailView-28d5ccda.js index a7870eedf95d..898931bec04a 100644 --- a/app/kuma-ui/pkg/resources/data/assets/ControlPlaneDetailView-b9f70821.js +++ b/app/kuma-ui/pkg/resources/data/assets/ControlPlaneDetailView-28d5ccda.js @@ -1 +1 @@ -import{K as N}from"./index-fce48c05.js";import{d as C,k as b,a as c,o as i,b as p,w as e,e as o,f as a,t as m,l as t,q as T,y as A,m as r,c as z,F as S,z as I,p as L,_ as E}from"./index-5f4feb06.js";import{E as x}from"./ErrorBlock-558c0398.js";import{_ as Z}from"./LoadingBlock.vue_vue_type_script_setup_true_lang-e7fd5a8b.js";import{A as D}from"./AppCollection-4b66f394.js";import{S as $}from"./StatusBadge-2db39c5c.js";import"./TextWithCopyButton-1098d691.js";import"./CopyButton-2ffc661c.js";import"./WarningIcon.vue_vue_type_script_setup_true_lang-cab7af3a.js";import"./EmptyBlock.vue_vue_type_script_setup_true_lang-7f79002a.js";const F=C({__name:"MeshInsightsList",props:{items:{}},setup(f){const{t:s}=b(),u=f;return(w,k)=>{var d;const y=c("RouterLink");return i(),p(D,{headers:[{label:t(s)("meshes.components.mesh-insights-list.name"),key:"name"},{label:t(s)("meshes.components.mesh-insights-list.services"),key:"services"},{label:t(s)("meshes.components.mesh-insights-list.dataplanes"),key:"dataplanes"}],items:u.items,total:(d=u.items)==null?void 0:d.length,"empty-state-message":t(s)("common.emptyState.message",{type:t(s)("meshes.common.type",{count:2})}),"empty-state-cta-to":t(s)("meshes.href.docs"),"empty-state-cta-text":t(s)("common.documentation")},{name:e(({row:n})=>[o(y,{to:{name:"mesh-detail-view",params:{mesh:n.name}}},{default:e(()=>[a(m(n.name),1)]),_:2},1032,["to"])]),services:e(({row:n})=>[a(m(n.services.internal),1)]),dataplanes:e(({row:n})=>[a(m(n.dataplanesByType.standard.online)+" / "+m(n.dataplanesByType.standard.total),1)]),_:1},8,["headers","items","total","empty-state-message","empty-state-cta-to","empty-state-cta-text"])}}}),q=C({__name:"ZoneControlPlanesList",props:{items:{}},setup(f){const{t:s}=b(),u=T(),w=f;return(k,y)=>{var n;const d=c("RouterLink");return i(),p(D,{headers:[{label:t(s)("zone-cps.components.zone-control-planes-list.name"),key:"name"},{label:t(s)("zone-cps.components.zone-control-planes-list.status"),key:"status"}],items:w.items,total:(n=w.items)==null?void 0:n.length,"empty-state-title":t(s)("zone-cps.empty_state.title"),"empty-state-message":t(u)("create zones")?t(s)("zone-cps.empty_state.message"):t(s)("common.emptyState.message",{type:"Zones"}),"empty-state-cta-to":t(u)("create zones")?{name:"zone-create-view"}:void 0,"empty-state-cta-text":t(s)("zones.index.create")},{name:e(({row:_})=>[o(d,{to:{name:"zone-cp-detail-view",params:{zone:_.name}}},{default:e(()=>[a(m(_.name),1)]),_:2},1032,["to"])]),status:e(({row:_})=>[o($,{status:_.state},null,8,["status"])]),_:1},8,["headers","items","total","empty-state-title","empty-state-message","empty-state-cta-to","empty-state-cta-text"])}}}),M={key:2,class:"stack","data-testid":"detail-view-details"},O={class:"columns"},U={class:"card-header"},j={class:"card-title"},G={key:0,class:"card-actions"},H={class:"card-header"},J={class:"card-title"},Q=C({__name:"ControlPlaneDetailView",setup(f){const s=A();return(u,w)=>{const k=c("RouteTitle"),y=c("RouterLink"),d=c("KButton"),n=c("DataSource"),_=c("KCard"),K=c("AppView"),P=c("RouteView");return i(),p(P,{name:"home"},{default:e(({can:g,t:h})=>[o(K,null,{title:e(()=>[r("h1",null,[o(k,{title:h("main-overview.routes.item.title")},null,8,["title"])])]),default:e(()=>[a(),o(n,{src:"/global-insight"},{default:e(({data:V,error:B})=>[B?(i(),p(x,{key:0,error:B},null,8,["error"])):V===void 0?(i(),p(Z,{key:1})):(i(),z("div",M,[o(t(s),{"can-use-zones":g("use zones"),"global-insight":V},null,8,["can-use-zones","global-insight"]),a(),r("div",O,[g("use zones")?(i(),p(_,{key:0},{default:e(()=>[o(n,{src:"/zone-cps?page=1&size=10"},{default:e(({data:l,error:v})=>{var R;return[v?(i(),p(x,{key:0,error:v},null,8,["error"])):(i(),z(S,{key:1},[r("div",U,[r("div",j,[r("h2",null,m(h("main-overview.detail.zone_control_planes.title")),1),a(),o(y,{to:{name:"zone-cp-list-view"}},{default:e(()=>[a(m(h("main-overview.detail.health.view_all")),1)]),_:2},1024)]),a(),g("create zones")&&(((R=l==null?void 0:l.items)==null?void 0:R.length)??0>0)?(i(),z("div",G,[o(d,{appearance:"primary",to:{name:"zone-create-view"}},{default:e(()=>[o(t(I),{size:t(N)},null,8,["size"]),a(" "+m(h("zones.index.create")),1)]),_:2},1024)])):L("",!0)]),a(),o(q,{"data-testid":"zone-control-planes-details",items:l==null?void 0:l.items},null,8,["items"])],64))]}),_:2},1024)]),_:2},1024)):L("",!0),a(),o(_,null,{default:e(()=>[o(n,{src:"/mesh-insights?page=1&size=10"},{default:e(({data:l,error:v})=>[v?(i(),p(x,{key:0,error:v},null,8,["error"])):(i(),z(S,{key:1},[r("div",H,[r("div",J,[r("h2",null,m(h("main-overview.detail.meshes.title")),1),a(),o(y,{to:{name:"mesh-list-view"}},{default:e(()=>[a(m(h("main-overview.detail.health.view_all")),1)]),_:2},1024)])]),a(),o(F,{"data-testid":"meshes-details",items:l==null?void 0:l.items},null,8,["items"])],64))]),_:2},1024)]),_:2},1024)])]))]),_:2},1024)]),_:2},1024)]),_:1})}}});const le=E(Q,[["__scopeId","data-v-a360c612"]]);export{le as default}; +import{K as N}from"./index-fce48c05.js";import{d as C,k as b,a as c,o as i,b as p,w as e,e as o,f as a,t as m,l as t,q as T,y as A,m as r,c as z,F as S,z as I,p as L,_ as E}from"./index-0dcf85b4.js";import{E as x}from"./ErrorBlock-70a14ad9.js";import{_ as Z}from"./LoadingBlock.vue_vue_type_script_setup_true_lang-2e81faa2.js";import{A as D}from"./AppCollection-a7a0983f.js";import{S as $}from"./StatusBadge-e7326f60.js";import"./TextWithCopyButton-da18080b.js";import"./CopyButton-dcdce1f2.js";import"./WarningIcon.vue_vue_type_script_setup_true_lang-d54f4898.js";import"./EmptyBlock.vue_vue_type_script_setup_true_lang-6ff90078.js";const F=C({__name:"MeshInsightsList",props:{items:{}},setup(f){const{t:s}=b(),u=f;return(w,k)=>{var d;const y=c("RouterLink");return i(),p(D,{headers:[{label:t(s)("meshes.components.mesh-insights-list.name"),key:"name"},{label:t(s)("meshes.components.mesh-insights-list.services"),key:"services"},{label:t(s)("meshes.components.mesh-insights-list.dataplanes"),key:"dataplanes"}],items:u.items,total:(d=u.items)==null?void 0:d.length,"empty-state-message":t(s)("common.emptyState.message",{type:t(s)("meshes.common.type",{count:2})}),"empty-state-cta-to":t(s)("meshes.href.docs"),"empty-state-cta-text":t(s)("common.documentation")},{name:e(({row:n})=>[o(y,{to:{name:"mesh-detail-view",params:{mesh:n.name}}},{default:e(()=>[a(m(n.name),1)]),_:2},1032,["to"])]),services:e(({row:n})=>[a(m(n.services.internal),1)]),dataplanes:e(({row:n})=>[a(m(n.dataplanesByType.standard.online)+" / "+m(n.dataplanesByType.standard.total),1)]),_:1},8,["headers","items","total","empty-state-message","empty-state-cta-to","empty-state-cta-text"])}}}),q=C({__name:"ZoneControlPlanesList",props:{items:{}},setup(f){const{t:s}=b(),u=T(),w=f;return(k,y)=>{var n;const d=c("RouterLink");return i(),p(D,{headers:[{label:t(s)("zone-cps.components.zone-control-planes-list.name"),key:"name"},{label:t(s)("zone-cps.components.zone-control-planes-list.status"),key:"status"}],items:w.items,total:(n=w.items)==null?void 0:n.length,"empty-state-title":t(s)("zone-cps.empty_state.title"),"empty-state-message":t(u)("create zones")?t(s)("zone-cps.empty_state.message"):t(s)("common.emptyState.message",{type:"Zones"}),"empty-state-cta-to":t(u)("create zones")?{name:"zone-create-view"}:void 0,"empty-state-cta-text":t(s)("zones.index.create")},{name:e(({row:_})=>[o(d,{to:{name:"zone-cp-detail-view",params:{zone:_.name}}},{default:e(()=>[a(m(_.name),1)]),_:2},1032,["to"])]),status:e(({row:_})=>[o($,{status:_.state},null,8,["status"])]),_:1},8,["headers","items","total","empty-state-title","empty-state-message","empty-state-cta-to","empty-state-cta-text"])}}}),M={key:2,class:"stack","data-testid":"detail-view-details"},O={class:"columns"},U={class:"card-header"},j={class:"card-title"},G={key:0,class:"card-actions"},H={class:"card-header"},J={class:"card-title"},Q=C({__name:"ControlPlaneDetailView",setup(f){const s=A();return(u,w)=>{const k=c("RouteTitle"),y=c("RouterLink"),d=c("KButton"),n=c("DataSource"),_=c("KCard"),K=c("AppView"),P=c("RouteView");return i(),p(P,{name:"home"},{default:e(({can:g,t:h})=>[o(K,null,{title:e(()=>[r("h1",null,[o(k,{title:h("main-overview.routes.item.title")},null,8,["title"])])]),default:e(()=>[a(),o(n,{src:"/global-insight"},{default:e(({data:V,error:B})=>[B?(i(),p(x,{key:0,error:B},null,8,["error"])):V===void 0?(i(),p(Z,{key:1})):(i(),z("div",M,[o(t(s),{"can-use-zones":g("use zones"),"global-insight":V},null,8,["can-use-zones","global-insight"]),a(),r("div",O,[g("use zones")?(i(),p(_,{key:0},{default:e(()=>[o(n,{src:"/zone-cps?page=1&size=10"},{default:e(({data:l,error:v})=>{var R;return[v?(i(),p(x,{key:0,error:v},null,8,["error"])):(i(),z(S,{key:1},[r("div",U,[r("div",j,[r("h2",null,m(h("main-overview.detail.zone_control_planes.title")),1),a(),o(y,{to:{name:"zone-cp-list-view"}},{default:e(()=>[a(m(h("main-overview.detail.health.view_all")),1)]),_:2},1024)]),a(),g("create zones")&&(((R=l==null?void 0:l.items)==null?void 0:R.length)??0>0)?(i(),z("div",G,[o(d,{appearance:"primary",to:{name:"zone-create-view"}},{default:e(()=>[o(t(I),{size:t(N)},null,8,["size"]),a(" "+m(h("zones.index.create")),1)]),_:2},1024)])):L("",!0)]),a(),o(q,{"data-testid":"zone-control-planes-details",items:l==null?void 0:l.items},null,8,["items"])],64))]}),_:2},1024)]),_:2},1024)):L("",!0),a(),o(_,null,{default:e(()=>[o(n,{src:"/mesh-insights?page=1&size=10"},{default:e(({data:l,error:v})=>[v?(i(),p(x,{key:0,error:v},null,8,["error"])):(i(),z(S,{key:1},[r("div",H,[r("div",J,[r("h2",null,m(h("main-overview.detail.meshes.title")),1),a(),o(y,{to:{name:"mesh-list-view"}},{default:e(()=>[a(m(h("main-overview.detail.health.view_all")),1)]),_:2},1024)])]),a(),o(F,{"data-testid":"meshes-details",items:l==null?void 0:l.items},null,8,["items"])],64))]),_:2},1024)]),_:2},1024)])]))]),_:2},1024)]),_:2},1024)]),_:1})}}});const le=E(Q,[["__scopeId","data-v-a360c612"]]);export{le as default}; diff --git a/app/kuma-ui/pkg/resources/data/assets/CopyButton-2ffc661c.js b/app/kuma-ui/pkg/resources/data/assets/CopyButton-dcdce1f2.js similarity index 95% rename from app/kuma-ui/pkg/resources/data/assets/CopyButton-2ffc661c.js rename to app/kuma-ui/pkg/resources/data/assets/CopyButton-dcdce1f2.js index 5848c508afe8..2c8a1b0e8823 100644 --- a/app/kuma-ui/pkg/resources/data/assets/CopyButton-2ffc661c.js +++ b/app/kuma-ui/pkg/resources/data/assets/CopyButton-dcdce1f2.js @@ -1 +1 @@ -import{e as _}from"./index-fce48c05.js";import{d as f,a as n,o as y,b as T,w as i,e as c,l as d,ac as x,f as m,r as C,ad as h,m as B,t as b,_ as v}from"./index-5f4feb06.js";const g={class:"visually-hidden"},w={inheritAttrs:!1},S=f({...w,__name:"CopyButton",props:{text:{default:""},getText:{type:[Function,null],default:null},copyText:{default:"Copy"},tooltipSuccessText:{default:"Copied code!"},tooltipFailText:{default:"Failed to copy!"},hasBorder:{type:Boolean,default:!1},hideTitle:{type:Boolean,default:!1}},setup(r){const t=r;async function p(s,l){const e=s.currentTarget;let o=!1;try{const a=t.getText?await t.getText():t.text;o=await l(a)}catch{o=!1}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,l)=>{const e=n("KButton"),o=n("KClipboardProvider");return y(),T(o,null,{default:i(({copyToClipboard:a})=>[c(e,h(s.$attrs,{appearance:"tertiary",class:["copy-button",{"non-visual-button":!t.hasBorder}],"data-testid":"copy-button",title:t.hideTitle?void 0:t.copyText,type:"button",onClick:u=>p(u,a)}),{default:i(()=>[c(d(x),{color:d(_),title:t.hideTitle?void 0:t.copyText,"hide-title":t.hideTitle},null,8,["color","title","hide-title"]),m(),C(s.$slots,"default",{},()=>[B("span",g,b(t.copyText),1)],!0)]),_:2},1040,["class","title","onClick"])]),_:3})}}});const k=v(S,[["__scopeId","data-v-dede433d"]]);export{k as C}; +import{e as _}from"./index-fce48c05.js";import{d as f,a as n,o as y,b as T,w as i,e as c,l as d,ac as x,f as m,r as C,ad as h,m as B,t as b,_ as v}from"./index-0dcf85b4.js";const g={class:"visually-hidden"},w={inheritAttrs:!1},S=f({...w,__name:"CopyButton",props:{text:{default:""},getText:{type:[Function,null],default:null},copyText:{default:"Copy"},tooltipSuccessText:{default:"Copied code!"},tooltipFailText:{default:"Failed to copy!"},hasBorder:{type:Boolean,default:!1},hideTitle:{type:Boolean,default:!1}},setup(r){const t=r;async function p(s,l){const e=s.currentTarget;let o=!1;try{const a=t.getText?await t.getText():t.text;o=await l(a)}catch{o=!1}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,l)=>{const e=n("KButton"),o=n("KClipboardProvider");return y(),T(o,null,{default:i(({copyToClipboard:a})=>[c(e,h(s.$attrs,{appearance:"tertiary",class:["copy-button",{"non-visual-button":!t.hasBorder}],"data-testid":"copy-button",title:t.hideTitle?void 0:t.copyText,type:"button",onClick:u=>p(u,a)}),{default:i(()=>[c(d(x),{color:d(_),title:t.hideTitle?void 0:t.copyText,"hide-title":t.hideTitle},null,8,["color","title","hide-title"]),m(),C(s.$slots,"default",{},()=>[B("span",g,b(t.copyText),1)],!0)]),_:2},1040,["class","title","onClick"])]),_:3})}}});const k=v(S,[["__scopeId","data-v-dede433d"]]);export{k as C}; diff --git a/app/kuma-ui/pkg/resources/data/assets/DataPlaneClustersView-086753d9.js b/app/kuma-ui/pkg/resources/data/assets/DataPlaneClustersView-c56274ba.js similarity index 67% rename from app/kuma-ui/pkg/resources/data/assets/DataPlaneClustersView-086753d9.js rename to app/kuma-ui/pkg/resources/data/assets/DataPlaneClustersView-c56274ba.js index 63bb84142b50..a68826d65420 100644 --- a/app/kuma-ui/pkg/resources/data/assets/DataPlaneClustersView-086753d9.js +++ b/app/kuma-ui/pkg/resources/data/assets/DataPlaneClustersView-c56274ba.js @@ -1 +1 @@ -import{E as d}from"./EnvoyData-b31c947e.js";import{d as c,a as t,o as m,b as u,w as o,e as n,m as _,f as h}from"./index-5f4feb06.js";import"./index-fce48c05.js";import"./CodeBlock.vue_vue_type_style_index_0_lang-6de3c828.js";import"./uniqueId-90cc9b93.js";import"./EmptyBlock.vue_vue_type_script_setup_true_lang-7f79002a.js";import"./ErrorBlock-558c0398.js";import"./TextWithCopyButton-1098d691.js";import"./CopyButton-2ffc661c.js";import"./WarningIcon.vue_vue_type_script_setup_true_lang-cab7af3a.js";import"./LoadingBlock.vue_vue_type_script_setup_true_lang-e7fd5a8b.js";const D=c({__name:"DataPlaneClustersView",setup(g){return(f,x)=>{const r=t("RouteTitle"),s=t("KCard"),p=t("AppView"),l=t("RouteView");return m(),u(l,{name:"data-plane-clusters-view",params:{mesh:"",dataPlane:"",codeSearch:"",codeFilter:!1,codeRegExp:!1}},{default:o(({route:e,t:i})=>[n(p,null,{title:o(()=>[_("h2",null,[n(r,{title:i("data-planes.routes.item.navigation.data-plane-clusters-view")},null,8,["title"])])]),default:o(()=>[h(),n(s,null,{default:o(()=>[n(d,{resource:"Data Plane Proxy",src:`/meshes/${e.params.mesh}/dataplanes/${e.params.dataPlane}/data-path/clusters`,query:e.params.codeSearch,"is-filter-mode":e.params.codeFilter,"is-reg-exp-mode":e.params.codeRegExp,onQueryChange:a=>e.update({codeSearch:a}),onFilterModeChange:a=>e.update({codeFilter:a}),onRegExpModeChange:a=>e.update({codeRegExp:a})},null,8,["src","query","is-filter-mode","is-reg-exp-mode","onQueryChange","onFilterModeChange","onRegExpModeChange"])]),_:2},1024)]),_:2},1024)]),_:1})}}});export{D as default}; +import{E as d}from"./EnvoyData-9a9e9257.js";import{d as c,a as t,o as m,b as u,w as o,e as n,m as _,f as h}from"./index-0dcf85b4.js";import"./index-fce48c05.js";import"./CodeBlock.vue_vue_type_style_index_0_lang-95cf08c2.js";import"./uniqueId-90cc9b93.js";import"./EmptyBlock.vue_vue_type_script_setup_true_lang-6ff90078.js";import"./ErrorBlock-70a14ad9.js";import"./TextWithCopyButton-da18080b.js";import"./CopyButton-dcdce1f2.js";import"./WarningIcon.vue_vue_type_script_setup_true_lang-d54f4898.js";import"./LoadingBlock.vue_vue_type_script_setup_true_lang-2e81faa2.js";const D=c({__name:"DataPlaneClustersView",setup(g){return(f,x)=>{const r=t("RouteTitle"),s=t("KCard"),p=t("AppView"),l=t("RouteView");return m(),u(l,{name:"data-plane-clusters-view",params:{mesh:"",dataPlane:"",codeSearch:"",codeFilter:!1,codeRegExp:!1}},{default:o(({route:e,t:i})=>[n(p,null,{title:o(()=>[_("h2",null,[n(r,{title:i("data-planes.routes.item.navigation.data-plane-clusters-view")},null,8,["title"])])]),default:o(()=>[h(),n(s,null,{default:o(()=>[n(d,{resource:"Data Plane Proxy",src:`/meshes/${e.params.mesh}/dataplanes/${e.params.dataPlane}/data-path/clusters`,query:e.params.codeSearch,"is-filter-mode":e.params.codeFilter,"is-reg-exp-mode":e.params.codeRegExp,onQueryChange:a=>e.update({codeSearch:a}),onFilterModeChange:a=>e.update({codeFilter:a}),onRegExpModeChange:a=>e.update({codeRegExp:a})},null,8,["src","query","is-filter-mode","is-reg-exp-mode","onQueryChange","onFilterModeChange","onRegExpModeChange"])]),_:2},1024)]),_:2},1024)]),_:1})}}});export{D as default}; diff --git a/app/kuma-ui/pkg/resources/data/assets/DataPlaneConfigView-5397f8c6.js b/app/kuma-ui/pkg/resources/data/assets/DataPlaneConfigView-d5028869.js similarity index 74% rename from app/kuma-ui/pkg/resources/data/assets/DataPlaneConfigView-5397f8c6.js rename to app/kuma-ui/pkg/resources/data/assets/DataPlaneConfigView-d5028869.js index a64116bc9607..2e7b6febe08e 100644 --- a/app/kuma-ui/pkg/resources/data/assets/DataPlaneConfigView-5397f8c6.js +++ b/app/kuma-ui/pkg/resources/data/assets/DataPlaneConfigView-d5028869.js @@ -1 +1 @@ -import{E as x}from"./ErrorBlock-558c0398.js";import{_ as w}from"./LoadingBlock.vue_vue_type_script_setup_true_lang-e7fd5a8b.js";import{_ as E}from"./ResourceCodeBlock.vue_vue_type_style_index_0_lang-8c675a57.js";import{d as R,a as t,o as n,b as r,w as o,e as s,m as V,f as k,p as y}from"./index-5f4feb06.js";import"./index-fce48c05.js";import"./TextWithCopyButton-1098d691.js";import"./CopyButton-2ffc661c.js";import"./WarningIcon.vue_vue_type_script_setup_true_lang-cab7af3a.js";import"./CodeBlock.vue_vue_type_style_index_0_lang-6de3c828.js";import"./uniqueId-90cc9b93.js";import"./toYaml-4e00099e.js";const Q=R({__name:"DataPlaneConfigView",setup(v){return($,F)=>{const d=t("RouteTitle"),c=t("DataSource"),_=t("KCard"),u=t("AppView"),f=t("RouteView");return n(),r(f,{name:"data-plane-config-view",params:{mesh:"",dataPlane:"",codeSearch:"",codeFilter:!1,codeRegExp:!1}},{default:o(({route:e,t:g})=>[s(u,null,{title:o(()=>[V("h2",null,[s(d,{title:g("data-planes.routes.item.navigation.data-plane-config-view")},null,8,["title"])])]),default:o(()=>[k(),s(_,null,{default:o(()=>[s(c,{src:`/meshes/${e.params.mesh}/dataplanes/${e.params.dataPlane}`},{default:o(({data:i,error:m})=>[m?(n(),r(x,{key:0,error:m},null,8,["error"])):i===void 0?(n(),r(w,{key:1})):(n(),r(E,{key:2,resource:i.config,"is-searchable":"",query:e.params.codeSearch,"is-filter-mode":e.params.codeFilter,"is-reg-exp-mode":e.params.codeRegExp,onQueryChange:a=>e.update({codeSearch:a}),onFilterModeChange:a=>e.update({codeFilter:a}),onRegExpModeChange:a=>e.update({codeRegExp:a})},{default:o(({copy:a,copying:h})=>[h?(n(),r(c,{key:0,src:`/meshes/${e.params.mesh}/dataplanes/${e.params.dataPlane}/as/kubernetes?no-store`,onChange:p=>{a(l=>l(p))},onError:p=>{a((l,C)=>C(p))}},null,8,["src","onChange","onError"])):y("",!0)]),_:2},1032,["resource","query","is-filter-mode","is-reg-exp-mode","onQueryChange","onFilterModeChange","onRegExpModeChange"]))]),_:2},1032,["src"])]),_:2},1024)]),_:2},1024)]),_:1})}}});export{Q as default}; +import{E as x}from"./ErrorBlock-70a14ad9.js";import{_ as w}from"./LoadingBlock.vue_vue_type_script_setup_true_lang-2e81faa2.js";import{_ as E}from"./ResourceCodeBlock.vue_vue_type_style_index_0_lang-c72a10ad.js";import{d as R,a as t,o as n,b as r,w as o,e as s,m as V,f as k,p as y}from"./index-0dcf85b4.js";import"./index-fce48c05.js";import"./TextWithCopyButton-da18080b.js";import"./CopyButton-dcdce1f2.js";import"./WarningIcon.vue_vue_type_script_setup_true_lang-d54f4898.js";import"./CodeBlock.vue_vue_type_style_index_0_lang-95cf08c2.js";import"./uniqueId-90cc9b93.js";import"./toYaml-4e00099e.js";const Q=R({__name:"DataPlaneConfigView",setup(v){return($,F)=>{const d=t("RouteTitle"),c=t("DataSource"),_=t("KCard"),u=t("AppView"),f=t("RouteView");return n(),r(f,{name:"data-plane-config-view",params:{mesh:"",dataPlane:"",codeSearch:"",codeFilter:!1,codeRegExp:!1}},{default:o(({route:e,t:g})=>[s(u,null,{title:o(()=>[V("h2",null,[s(d,{title:g("data-planes.routes.item.navigation.data-plane-config-view")},null,8,["title"])])]),default:o(()=>[k(),s(_,null,{default:o(()=>[s(c,{src:`/meshes/${e.params.mesh}/dataplanes/${e.params.dataPlane}`},{default:o(({data:i,error:m})=>[m?(n(),r(x,{key:0,error:m},null,8,["error"])):i===void 0?(n(),r(w,{key:1})):(n(),r(E,{key:2,resource:i.config,"is-searchable":"",query:e.params.codeSearch,"is-filter-mode":e.params.codeFilter,"is-reg-exp-mode":e.params.codeRegExp,onQueryChange:a=>e.update({codeSearch:a}),onFilterModeChange:a=>e.update({codeFilter:a}),onRegExpModeChange:a=>e.update({codeRegExp:a})},{default:o(({copy:a,copying:h})=>[h?(n(),r(c,{key:0,src:`/meshes/${e.params.mesh}/dataplanes/${e.params.dataPlane}/as/kubernetes?no-store`,onChange:p=>{a(l=>l(p))},onError:p=>{a((l,C)=>C(p))}},null,8,["src","onChange","onError"])):y("",!0)]),_:2},1032,["resource","query","is-filter-mode","is-reg-exp-mode","onQueryChange","onFilterModeChange","onRegExpModeChange"]))]),_:2},1032,["src"])]),_:2},1024)]),_:2},1024)]),_:1})}}});export{Q as default}; diff --git a/app/kuma-ui/pkg/resources/data/assets/DataPlaneDetailTabsView-1551f19e.js b/app/kuma-ui/pkg/resources/data/assets/DataPlaneDetailTabsView-027ef371.js similarity index 79% rename from app/kuma-ui/pkg/resources/data/assets/DataPlaneDetailTabsView-1551f19e.js rename to app/kuma-ui/pkg/resources/data/assets/DataPlaneDetailTabsView-027ef371.js index f0a8c2151880..3698c0419649 100644 --- a/app/kuma-ui/pkg/resources/data/assets/DataPlaneDetailTabsView-1551f19e.js +++ b/app/kuma-ui/pkg/resources/data/assets/DataPlaneDetailTabsView-027ef371.js @@ -1 +1 @@ -import{d as $,k as g,S as k,a as n,o as m,b as p,w as t,e as s,l as w,m as B,f as b,c as C,F as T,C as G}from"./index-5f4feb06.js";import{E as N}from"./ErrorBlock-558c0398.js";import{_ as D}from"./LoadingBlock.vue_vue_type_script_setup_true_lang-e7fd5a8b.js";import{N as P}from"./NavTabs-d4a6578a.js";import{T as E}from"./TextWithCopyButton-1098d691.js";import"./index-fce48c05.js";import"./WarningIcon.vue_vue_type_script_setup_true_lang-cab7af3a.js";import"./CopyButton-2ffc661c.js";const J=$({__name:"DataPlaneDetailTabsView",props:{isGatewayView:{type:Boolean,required:!1,default:!1}},setup(h){var _;const{t:c}=g(),v=k(),o=h,x=(((_=v.getRoutes().find(a=>a.name===`${o.isGatewayView?"gateway":"data-plane"}-detail-tabs-view`))==null?void 0:_.children)??[]).map(a=>{var i,l;const d=typeof a.name>"u"?(i=a.children)==null?void 0:i[0]:a,r=d.name,u=((l=d.meta)==null?void 0:l.module)??"";return{title:c(`${o.isGatewayView?"gateways":"data-planes"}.routes.item.navigation.${r}`),routeName:r,module:u}});return(a,d)=>{const r=n("RouteTitle"),u=n("RouterView"),f=n("DataSource"),i=n("AppView"),l=n("RouteView");return m(),p(l,{name:"data-plane-detail-tabs-view",params:{mesh:"",dataPlane:""}},{default:t(({route:e})=>[s(i,{breadcrumbs:[{to:{name:"mesh-detail-view",params:{mesh:e.params.mesh}},text:e.params.mesh},{to:{name:`${o.isGatewayView?"gateway":"data-plane"}-list-view`,params:{mesh:e.params.mesh}},text:w(c)(`${o.isGatewayView?"gateways":"data-planes"}.routes.item.breadcrumbs`)}]},{title:t(()=>[B("h1",null,[s(E,{text:e.params.dataPlane},{default:t(()=>[s(r,{title:w(c)(`${o.isGatewayView?"gateways":"data-planes"}.routes.item.title`,{name:e.params.dataPlane})},null,8,["title"])]),_:2},1032,["text"])])]),default:t(()=>[b(),s(f,{src:`/meshes/${e.params.mesh}/dataplane-overviews/${e.params.dataPlane}`},{default:t(({data:y,error:V})=>[V?(m(),p(N,{key:0,error:V},null,8,["error"])):y===void 0?(m(),p(D,{key:1})):(m(),C(T,{key:2},[s(P,{class:"route-data-plane-view-tabs",tabs:w(x)},null,8,["tabs"]),b(),s(u,null,{default:t(R=>[(m(),p(G(R.Component),{data:y},null,8,["data"]))]),_:2},1024)],64))]),_:2},1032,["src"])]),_:2},1032,["breadcrumbs"])]),_:1})}}});export{J as default}; +import{d as $,k as g,S as k,a as n,o as m,b as p,w as t,e as s,l as w,m as B,f as b,c as C,F as T,C as G}from"./index-0dcf85b4.js";import{E as N}from"./ErrorBlock-70a14ad9.js";import{_ as D}from"./LoadingBlock.vue_vue_type_script_setup_true_lang-2e81faa2.js";import{N as P}from"./NavTabs-e7b14354.js";import{T as E}from"./TextWithCopyButton-da18080b.js";import"./index-fce48c05.js";import"./WarningIcon.vue_vue_type_script_setup_true_lang-d54f4898.js";import"./CopyButton-dcdce1f2.js";const J=$({__name:"DataPlaneDetailTabsView",props:{isGatewayView:{type:Boolean,required:!1,default:!1}},setup(h){var _;const{t:c}=g(),v=k(),o=h,x=(((_=v.getRoutes().find(a=>a.name===`${o.isGatewayView?"gateway":"data-plane"}-detail-tabs-view`))==null?void 0:_.children)??[]).map(a=>{var i,l;const d=typeof a.name>"u"?(i=a.children)==null?void 0:i[0]:a,r=d.name,u=((l=d.meta)==null?void 0:l.module)??"";return{title:c(`${o.isGatewayView?"gateways":"data-planes"}.routes.item.navigation.${r}`),routeName:r,module:u}});return(a,d)=>{const r=n("RouteTitle"),u=n("RouterView"),f=n("DataSource"),i=n("AppView"),l=n("RouteView");return m(),p(l,{name:"data-plane-detail-tabs-view",params:{mesh:"",dataPlane:""}},{default:t(({route:e})=>[s(i,{breadcrumbs:[{to:{name:"mesh-detail-view",params:{mesh:e.params.mesh}},text:e.params.mesh},{to:{name:`${o.isGatewayView?"gateway":"data-plane"}-list-view`,params:{mesh:e.params.mesh}},text:w(c)(`${o.isGatewayView?"gateways":"data-planes"}.routes.item.breadcrumbs`)}]},{title:t(()=>[B("h1",null,[s(E,{text:e.params.dataPlane},{default:t(()=>[s(r,{title:w(c)(`${o.isGatewayView?"gateways":"data-planes"}.routes.item.title`,{name:e.params.dataPlane})},null,8,["title"])]),_:2},1032,["text"])])]),default:t(()=>[b(),s(f,{src:`/meshes/${e.params.mesh}/dataplane-overviews/${e.params.dataPlane}`},{default:t(({data:y,error:V})=>[V?(m(),p(N,{key:0,error:V},null,8,["error"])):y===void 0?(m(),p(D,{key:1})):(m(),C(T,{key:2},[s(P,{class:"route-data-plane-view-tabs",tabs:w(x)},null,8,["tabs"]),b(),s(u,null,{default:t(R=>[(m(),p(G(R.Component),{data:y},null,8,["data"]))]),_:2},1024)],64))]),_:2},1032,["src"])]),_:2},1032,["breadcrumbs"])]),_:1})}}});export{J as default}; diff --git a/app/kuma-ui/pkg/resources/data/assets/DataPlaneDetailView-5a38333e.js b/app/kuma-ui/pkg/resources/data/assets/DataPlaneDetailView-5a38333e.js new file mode 100644 index 000000000000..247056277dfe --- /dev/null +++ b/app/kuma-ui/pkg/resources/data/assets/DataPlaneDetailView-5a38333e.js @@ -0,0 +1,11 @@ +import{a as Y,K as L}from"./index-fce48c05.js";import{_ as R,a as h,o as l,b as f,w as a,m as e,r as I,f as t,d as O,c as i,e as r,k as X,t as o,l as s,F as u,D as b,n as J,H as Q,W as tt,X as k,Y as et,p as C,Z as at,$ as st,a0 as nt,C as ot,v as lt,x as rt}from"./index-0dcf85b4.js";import{E as dt}from"./ErrorBlock-70a14ad9.js";import{_ as it}from"./LoadingBlock.vue_vue_type_script_setup_true_lang-2e81faa2.js";import{S as ct}from"./StatusBadge-e7326f60.js";import{S as ut}from"./SummaryView-8d0a7896.js";import{T as U}from"./TagList-5868dd55.js";import{T as H}from"./TextWithCopyButton-da18080b.js";import{_ as _t}from"./SubscriptionList.vue_vue_type_script_setup_true_lang-83336cd8.js";import"./WarningIcon.vue_vue_type_script_setup_true_lang-d54f4898.js";import"./CopyButton-dcdce1f2.js";import"./AccordionList-a4be0b78.js";const pt={},mt={class:"card"},ft={class:"title"},vt={class:"body"};function yt(g,n){const c=h("KCard");return l(),f(c,{class:"data-card"},{default:a(()=>[e("dl",null,[e("div",mt,[e("dt",ft,[I(g.$slots,"title",{},void 0,!0)]),t(),e("dd",vt,[I(g.$slots,"default",{},void 0,!0)])])])]),_:3})}const Z=R(pt,[["render",yt],["__scopeId","data-v-6e083223"]]),ht={class:"service-traffic"},gt={class:"actions"},kt=O({__name:"DataPlaneTraffic",setup(g){return(n,c)=>(l(),i("div",ht,[e("div",gt,[I(n.$slots,"actions",{},void 0,!0)]),t(),r(Z,{class:"header"},{title:a(()=>[I(n.$slots,"title",{},void 0,!0)]),_:3}),t(),I(n.$slots,"default",{},void 0,!0)]))}});const W=R(kt,[["__scopeId","data-v-5bd1dbf9"]]),bt={class:"title"},xt=O({__name:"ServiceTrafficCard",props:{protocol:{},traffic:{}},setup(g){const{t:n}=X(),c=g,_=$=>{if(!$.isTrusted)return;const B=$.target.closest(".service-traffic-card");if(B){const K=B.querySelector("a");K!==null&&window.requestAnimationFrame(()=>{K.click()})}};return($,B)=>{const K=h("KBadge");return l(),f(Z,{class:"service-traffic-card",onClick:_},{title:a(()=>[r(K,{appearance:c.protocol==="passthrough"?"success":"info"},{default:a(()=>[t(o(s(n)(`data-planes.components.service_traffic_card.protocol.${c.protocol}`,{},{defaultMessage:s(n)(`http.api.value.${c.protocol}`)})),1)]),_:1},8,["appearance"]),t(),e("div",bt,[I($.$slots,"default",{},void 0,!0)])]),default:a(()=>{var q,T,D,P,M,E,z,S,A;return[t(),e("dl",null,[c.protocol==="passthrough"?(l(!0),i(u,{key:0},b([["http","tcp"].reduce((v,V)=>{const N="downstream";return Object.entries(c.traffic[V]||{}).reduce((m,[d,y])=>[`${N}_cx_tx_bytes_total`,`${N}_cx_rx_bytes_total`].includes(d)?{...m,[d]:y+(m[d]??0)}:m,v)},{})],(v,V)=>(l(),i(u,{key:V},[e("div",null,[e("dt",null,o(s(n)("data-planes.components.service_traffic_card.tx")),1),t(),e("dd",null,o(s(n)("common.formats.bytes",{value:v.downstream_cx_rx_bytes_total??0})),1)]),t(),e("div",null,[e("dt",null,o(s(n)("data-planes.components.service_traffic_card.rx")),1),t(),e("dd",null,o(s(n)("common.formats.bytes",{value:v.downstream_cx_tx_bytes_total??0})),1)])],64))),128)):c.protocol==="grpc"?(l(),i(u,{key:1},[e("div",null,[e("dt",null,o(s(n)("data-planes.components.service_traffic_card.grpc_success")),1),t(),e("dd",null,o(s(n)("common.formats.integer",{value:((q=c.traffic.grpc)==null?void 0:q.success)??0})),1)]),t(),e("div",null,[e("dt",null,o(s(n)("data-planes.components.service_traffic_card.grpc_failure")),1),t(),e("dd",null,o(s(n)("common.formats.integer",{value:((T=c.traffic.grpc)==null?void 0:T.failure)??0})),1)])],64)):c.protocol==="http"?(l(),i(u,{key:2},[(l(!0),i(u,null,b([((D=c.traffic.http)==null?void 0:D.downstream_rq_1xx)??0].filter(v=>v!==0),v=>(l(),i("div",{key:v},[e("dt",null,o(s(n)("data-planes.components.service_traffic_card.1xx")),1),t(),e("dd",null,o(s(n)("common.formats.integer",{value:v})),1)]))),128)),t(),e("div",null,[e("dt",null,o(s(n)("data-planes.components.service_traffic_card.2xx")),1),t(),e("dd",null,o(s(n)("common.formats.integer",{value:((P=c.traffic.http)==null?void 0:P.downstream_rq_2xx)??0})),1)]),t(),(l(!0),i(u,null,b([((M=c.traffic.http)==null?void 0:M.downstream_rq_3xx)??0].filter(v=>v!==0),v=>(l(),i("div",{key:v},[e("dt",null,o(s(n)("data-planes.components.service_traffic_card.3xx")),1),t(),e("dd",null,o(s(n)("common.formats.integer",{value:v})),1)]))),128)),t(),e("div",null,[e("dt",null,o(s(n)("data-planes.components.service_traffic_card.4xx")),1),t(),e("dd",null,o(s(n)("common.formats.integer",{value:((E=c.traffic.http)==null?void 0:E.downstream_rq_4xx)??0})),1)]),t(),e("div",null,[e("dt",null,o(s(n)("data-planes.components.service_traffic_card.5xx")),1),t(),e("dd",null,o(s(n)("common.formats.integer",{value:((z=c.traffic.http)==null?void 0:z.downstream_rq_5xx)??0})),1)])],64)):(l(),i(u,{key:3},[e("div",null,[e("dt",null,o(s(n)("data-planes.components.service_traffic_card.tx")),1),t(),e("dd",null,o(s(n)("common.formats.bytes",{value:((S=c.traffic.tcp)==null?void 0:S.downstream_cx_rx_bytes_total)??0})),1)]),t(),e("div",null,[e("dt",null,o(s(n)("data-planes.components.service_traffic_card.rx")),1),t(),e("dd",null,o(s(n)("common.formats.bytes",{value:((A=c.traffic.tcp)==null?void 0:A.downstream_cx_tx_bytes_total)??0})),1)])],64))])]}),_:3})}}});const G=R(xt,[["__scopeId","data-v-6044d92c"]]),wt={class:"body"},$t=O({__name:"ServiceTrafficGroup",props:{type:{}},setup(g){const n=g;return(c,_)=>{const $=h("KCard");return l(),f($,{class:J(["service-traffic-group",`type-${n.type}`])},{default:a(()=>[e("div",wt,[I(c.$slots,"default",{},void 0,!0)])]),_:3},8,["class"])}}});const F=R($t,[["__scopeId","data-v-baf4abf7"]]),Ct=g=>(lt("data-v-1aa8d39b"),g=g(),rt(),g),Tt={"data-testid":"dataplane-warnings"},It=["data-testid","innerHTML"],Kt={class:"stack","data-testid":"dataplane-details"},Dt={class:"columns"},St={class:"status-with-reason"},Vt={class:"columns"},Rt=Ct(()=>e("span",null,"Outbounds",-1)),Bt={class:"passthrough"},qt={class:"outbounds"},Pt={key:1,"data-testid":"dataplane-inbounds"},Mt={class:"inbound-list"},Et={class:"mt-4 columns"},zt={"data-testid":"dataplane-mtls"},At={class:"columns"},Nt=["innerHTML"],Lt={key:2,"data-testid":"dataplane-subscriptions"},Ht=O({__name:"DataPlaneDetailView",props:{data:{}},setup(g){const{t:n,formatIsoDate:c}=X(),_=g,$=Q(()=>_.data.warnings.concat(..._.data.isCertExpired?[{kind:"CERT_EXPIRED"}]:[]));return(B,K)=>{const q=h("KTooltip"),T=h("KCard"),D=h("RouterLink"),P=h("KInputSwitch"),M=h("KButton"),E=h("RouterView"),z=h("DataSource"),S=h("KBadge"),A=h("KAlert"),v=h("AppView"),V=h("RouteView");return l(),f(V,{params:{mesh:"",dataPlane:"",service:"",inactive:!1},name:"data-plane-detail-view"},{default:a(({can:N,route:m})=>[r(v,null,tt({default:a(()=>[t(),e("div",Kt,[r(T,null,{default:a(()=>[e("div",Dt,[r(k,null,{title:a(()=>[t(o(s(n)("http.api.property.status")),1)]),body:a(()=>[e("div",St,[r(ct,{status:_.data.status},null,8,["status"]),t(),(l(!0),i(u,null,b([_.data.dataplane.networking.inbounds.filter(d=>!d.health.ready)],d=>(l(),i(u,{key:d},[d.length>0?(l(),f(q,{key:0,class:"reason-tooltip","position-fixed":""},{content:a(()=>[e("ul",null,[(l(!0),i(u,null,b(d,y=>(l(),i("li",{key:`${y.service}:${y.port}`},o(s(n)("data-planes.routes.item.unhealthy_inbound",{service:y.service,port:y.port})),1))),128))])]),default:a(()=>[r(s(et),{color:s(Y),size:s(L),"hide-title":""},null,8,["color","size"]),t()]),_:2},1024)):C("",!0)],64))),128))])]),_:1}),t(),r(k,null,{title:a(()=>[t(o(s(n)("data-planes.routes.item.last_updated")),1)]),body:a(()=>[t(o(s(c)(_.data.modificationTime)),1)]),_:1}),t(),_.data.dataplane.networking.gateway?(l(),i(u,{key:0},[r(k,null,{title:a(()=>[t(o(s(n)("http.api.property.tags")),1)]),body:a(()=>[r(U,{tags:_.data.dataplane.networking.gateway.tags},null,8,["tags"])]),_:1}),t(),r(k,null,{title:a(()=>[t(o(s(n)("http.api.property.address")),1)]),body:a(()=>[r(H,{text:`${_.data.dataplane.networking.address}`},null,8,["text"])]),_:1})],64)):C("",!0)])]),_:1}),t(),N("read traffic")&&_.data.dataplaneType==="standard"?(l(),f(z,{key:0,src:`/meshes/${m.params.mesh}/dataplanes/${m.params.dataPlane}/traffic`},{default:a(({data:d,error:y,refresh:j})=>[y?(l(),f(dt,{key:0,error:y},null,8,["error"])):d===void 0?(l(),f(it,{key:1})):(l(),f(T,{key:2,class:"traffic"},{default:a(()=>[e("div",Vt,[r(W,null,{title:a(()=>[r(s(at),{display:"inline-block",decorative:"",size:s(L)},null,8,["size"]),t(` + Inbounds + `)]),data:a(()=>[e("dl",null,[e("div",null,[e("dt",null,o(s(n)("services.components.service_traffic.inbound",{},{defaultMessage:"Requests"})),1),t(),e("dd",null,o(s(n)("common.formats.integer",{value:1e3})),1)])])]),default:a(()=>[t(),t(),r(F,{type:"inbound"},{default:a(()=>[(l(!0),i(u,null,b(d.inbounds,p=>(l(),i(u,{key:`${p.name}`},[(l(!0),i(u,null,b([p.name.split("_").at(-1)],x=>(l(),i(u,{key:x},[(l(!0),i(u,null,b([_.data.dataplane.networking.inbounds.find(w=>`${w.port}`==`${x}`)],w=>(l(),i(u,{key:w},[w?(l(),f(G,{key:0,protocol:p.protocol,traffic:p},{default:a(()=>[r(D,{to:{name:"data-plane-inbound-summary-overview-view",params:{service:w.port},query:{inactive:m.params.inactive?null:void 0}}},{default:a(()=>[t(` + :`+o(w.port),1)]),_:2},1032,["to"]),t(),r(U,{tags:[{label:"kuma.io/service",value:w.tags["kuma.io/service"]}]},null,8,["tags"])]),_:2},1032,["protocol","traffic"])):C("",!0)],64))),128))],64))),128))],64))),128))]),_:2},1024)]),_:2},1024),t(),r(W,null,{actions:a(()=>[r(P,{modelValue:m.params.inactive,"onUpdate:modelValue":p=>m.params.inactive=p},{label:a(()=>[t(` + Show inactive + `)]),_:2},1032,["modelValue","onUpdate:modelValue"]),t(),r(M,{appearance:"primary",onClick:j},{default:a(()=>[r(s(st),{size:s(L)},null,8,["size"]),t(` + + Refresh + `)]),_:2},1032,["onClick"])]),title:a(()=>[r(s(nt),{display:"inline-block",decorative:"",size:s(L)},null,8,["size"]),t(),Rt]),data:a(()=>[e("dl",null,[e("div",null,[e("dt",Bt,o(s(n)("services.components.service_traffic.passthrough",{},{defaultMessage:"Passthrough Requests"})),1),t(),e("dd",null,o(s(n)("common.formats.integer",{value:1e3})),1)]),t(),e("div",null,[e("dt",qt,o(s(n)("services.components.service_traffic.mesh",{},{defaultMessage:"Mesh Requests"})),1),t(),e("dd",null,o(s(n)("common.formats.integer",{value:1e3})),1)])])]),default:a(()=>[t(),t(),t(),r(F,{type:"passthrough"},{default:a(()=>[r(G,{protocol:"passthrough",traffic:d.passthrough},{default:a(()=>[t(` + Non mesh traffic + `)]),_:2},1032,["traffic"])]),_:2},1024),t(),d.outbounds.length>0?(l(),f(F,{key:0,type:"outbound"},{default:a(()=>[(l(!0),i(u,null,b(d.outbounds,p=>{var x,w;return l(),i(u,{key:`${p.name}`},[m.params.inactive||((p.protocol==="tcp"?(x=p.tcp)==null?void 0:x.downstream_cx_rx_bytes_total:(w=p.http)==null?void 0:w.downstream_rq_total)??0>0)?(l(),f(G,{key:0,protocol:p.protocol,traffic:p},{default:a(()=>[r(D,{to:{name:"data-plane-outbound-summary-overview-view",params:{service:p.name},query:{inactive:m.params.inactive?null:void 0}}},{default:a(()=>[t(o(p.name),1)]),_:2},1032,["to"])]),_:2},1032,["protocol","traffic"])):C("",!0)],64)}),128))]),_:2},1024)):C("",!0)]),_:2},1024)])]),_:2},1024)),t(),m.params.service&&[d==null?void 0:d.outbounds,_.data.dataplane.networking.inbounds].every(p=>typeof p<"u")?(l(),f(E,{key:3},{default:a(p=>[r(ut,{onClose:function(x){m.replace({name:"data-plane-detail-view",params:{mesh:m.params.mesh,dataPlane:m.params.dataPlane},query:{inactive:m.params.inactive?null:void 0}})}},{default:a(()=>[(l(),f(ot(p.Component),{data:p.route.name==="data-plane-inbound-summary-overview-view"?_.data.dataplane.networking.inbounds.find(x=>`${x.port}`===m.params.service):d.outbounds.find(x=>x.name===m.params.service)},null,8,["data"]))]),_:2},1032,["onClose"])]),_:2},1024)):C("",!0)]),_:2},1032,["src"])):C("",!0),t(),_.data.dataplane.networking.inbounds.length>0?(l(),i("div",Pt,[e("h2",null,o(s(n)("data-planes.routes.item.inbounds")),1),t(),r(T,{class:"mt-4"},{default:a(()=>[e("div",Mt,[(l(!0),i(u,null,b(_.data.dataplane.networking.inbounds,(d,y)=>(l(),i("div",{key:y,class:"inbound"},[e("h4",null,[r(H,{text:d.tags["kuma.io/service"]},{default:a(()=>[t(o(s(n)("data-planes.routes.item.inbound_name",{service:d.tags["kuma.io/service"]})),1)]),_:2},1032,["text"])]),t(),e("div",Et,[r(k,null,{title:a(()=>[t(o(s(n)("http.api.property.status")),1)]),body:a(()=>[d.health.ready?(l(),f(S,{key:0,appearance:"success"},{default:a(()=>[t(o(s(n)("data-planes.routes.item.health.ready")),1)]),_:1})):(l(),f(S,{key:1,appearance:"danger"},{default:a(()=>[t(o(s(n)("data-planes.routes.item.health.not_ready")),1)]),_:1}))]),_:2},1024),t(),r(k,null,{title:a(()=>[t(o(s(n)("http.api.property.tags")),1)]),body:a(()=>[r(U,{tags:d.tags},null,8,["tags"])]),_:2},1024),t(),r(k,null,{title:a(()=>[t(o(s(n)("http.api.property.address")),1)]),body:a(()=>[r(H,{text:d.addressPort},null,8,["text"])]),_:2},1024),t(),r(k,null,{title:a(()=>[t(o(s(n)("http.api.property.serviceAddress")),1)]),body:a(()=>[r(H,{text:d.serviceAddressPort},null,8,["text"])]),_:2},1024)])]))),128))])]),_:1})])):C("",!0),t(),e("div",zt,[e("h2",null,o(s(n)("data-planes.routes.item.mtls.title")),1),t(),_.data.dataplaneInsight.mTLS?(l(!0),i(u,{key:0},b([_.data.dataplaneInsight.mTLS],d=>(l(),f(T,{key:d,class:"mt-4"},{default:a(()=>[e("div",At,[r(k,null,{title:a(()=>[t(o(s(n)("data-planes.routes.item.mtls.expiration_time.title")),1)]),body:a(()=>[t(o(s(c)(d.certificateExpirationTime)),1)]),_:2},1024),t(),r(k,null,{title:a(()=>[t(o(s(n)("data-planes.routes.item.mtls.generation_time.title")),1)]),body:a(()=>[t(o(s(c)(d.lastCertificateRegeneration)),1)]),_:2},1024),t(),r(k,null,{title:a(()=>[t(o(s(n)("data-planes.routes.item.mtls.regenerations.title")),1)]),body:a(()=>[t(o(s(n)("common.formats.integer",{value:d.certificateRegenerations})),1)]),_:2},1024),t(),r(k,null,{title:a(()=>[t(o(s(n)("data-planes.routes.item.mtls.issued_backend.title")),1)]),body:a(()=>[t(o(d.issuedBackend),1)]),_:2},1024),t(),r(k,null,{title:a(()=>[t(o(s(n)("data-planes.routes.item.mtls.supported_backends.title")),1)]),body:a(()=>[e("ul",null,[(l(!0),i(u,null,b(d.supportedBackends,y=>(l(),i("li",{key:y},o(y),1))),128))])]),_:2},1024)])]),_:2},1024))),128)):(l(),f(A,{key:1,class:"mt-4",appearance:"warning"},{alertMessage:a(()=>[e("div",{innerHTML:s(n)("data-planes.routes.item.mtls.disabled")},null,8,Nt)]),_:1}))]),t(),_.data.dataplaneInsight.subscriptions.length>0?(l(),i("div",Lt,[e("h2",null,o(s(n)("data-planes.routes.item.subscriptions.title")),1),t(),r(T,{class:"mt-4"},{default:a(()=>[r(_t,{subscriptions:_.data.dataplaneInsight.subscriptions},null,8,["subscriptions"])]),_:1})])):C("",!0)])]),_:2},[$.value.length>0?{name:"notifications",fn:a(()=>[e("ul",Tt,[(l(!0),i(u,null,b($.value,d=>(l(),i("li",{key:d.kind,"data-testid":`warning-${d.kind}`,innerHTML:s(n)(`common.warnings.${d.kind}`,d.payload)},null,8,It))),128)),t()])]),key:"0"}:void 0]),1024)]),_:1})}}});const ee=R(Ht,[["__scopeId","data-v-1aa8d39b"]]);export{ee as default}; diff --git a/app/kuma-ui/pkg/resources/data/assets/DataPlaneDetailView-ae637482.js b/app/kuma-ui/pkg/resources/data/assets/DataPlaneDetailView-ae637482.js deleted file mode 100644 index b77abe438075..000000000000 --- a/app/kuma-ui/pkg/resources/data/assets/DataPlaneDetailView-ae637482.js +++ /dev/null @@ -1,11 +0,0 @@ -import{a as Y,K as L}from"./index-fce48c05.js";import{_ as B,a as y,o as l,b as f,w as e,m as s,r as I,f as t,d as O,c as i,e as r,k as X,t as o,l as a,F as u,D as k,n as J,H as Q,W as tt,X as g,Y as et,p as T,Z as at,$ as st,a0 as nt,C as ot,v as lt,x as rt}from"./index-5f4feb06.js";import{E as dt}from"./ErrorBlock-558c0398.js";import{_ as it}from"./LoadingBlock.vue_vue_type_script_setup_true_lang-e7fd5a8b.js";import{S as ct}from"./StatusBadge-2db39c5c.js";import{S as ut}from"./SummaryView-46a73d2c.js";import{T as U}from"./TagList-679e2f0e.js";import{T as H}from"./TextWithCopyButton-1098d691.js";import{_ as _t}from"./SubscriptionList.vue_vue_type_script_setup_true_lang-cd9cb397.js";import"./WarningIcon.vue_vue_type_script_setup_true_lang-cab7af3a.js";import"./CopyButton-2ffc661c.js";import"./AccordionList-5331d528.js";const pt={},mt={class:"card"},ft={class:"title"},vt={class:"body"};function yt(h,n){const c=y("KCard");return l(),f(c,{class:"data-card"},{default:e(()=>[s("dl",null,[s("div",mt,[s("dt",ft,[I(h.$slots,"title",{},void 0,!0)]),t(),s("dd",vt,[I(h.$slots,"default",{},void 0,!0)])])])]),_:3})}const Z=B(pt,[["render",yt],["__scopeId","data-v-6e083223"]]),ht={class:"service-traffic"},gt={class:"actions"},kt=O({__name:"DataPlaneTraffic",setup(h){return(n,c)=>(l(),i("div",ht,[s("div",gt,[I(n.$slots,"actions",{},void 0,!0)]),t(),r(Z,{class:"header"},{title:e(()=>[I(n.$slots,"title",{},void 0,!0)]),_:3}),t(),I(n.$slots,"default",{},void 0,!0)]))}});const W=B(kt,[["__scopeId","data-v-5bd1dbf9"]]),bt={class:"title"},xt=O({__name:"ServiceTrafficCard",props:{protocol:{},traffic:{}},setup(h){const{t:n}=X(),c=h,_=$=>{if(!$.isTrusted)return;const q=$.target.closest(".service-traffic-card");if(q){const K=q.querySelector("a");K!==null&&window.requestAnimationFrame(()=>{K.click()})}};return($,q)=>{const K=y("KBadge");return l(),f(Z,{class:"service-traffic-card",onClick:_},{title:e(()=>[r(K,{appearance:c.protocol==="passthrough"?"success":"info"},{default:e(()=>[t(o(a(n)(`data-planes.components.service_traffic_card.protocol.${c.protocol}`,{},{defaultMessage:a(n)(`http.api.value.${c.protocol}`)})),1)]),_:1},8,["appearance"]),t(),s("div",bt,[I($.$slots,"default",{},void 0,!0)])]),default:e(()=>{var P,C,D,M,E,z,A;return[t(),s("dl",null,[c.protocol==="passthrough"?(l(!0),i(u,{key:0},k([["http","tcp"].reduce((m,S)=>{const N="downstream";return Object.entries(c.traffic[S]||{}).reduce((V,[R,v])=>[`${N}_cx_tx_bytes_total`,`${N}_cx_rx_bytes_total`].includes(R)?{...V,[R]:v+(V[R]??0)}:V,m)},{})],(m,S)=>(l(),i(u,{key:S},[s("div",null,[s("dt",null,o(a(n)("data-planes.components.service_traffic_card.tx")),1),t(),s("dd",null,o(a(n)("common.formats.bytes",{value:m.downstream_cx_rx_bytes_total??0})),1)]),t(),s("div",null,[s("dt",null,o(a(n)("data-planes.components.service_traffic_card.rx")),1),t(),s("dd",null,o(a(n)("common.formats.bytes",{value:m.downstream_cx_tx_bytes_total??0})),1)])],64))),128)):c.protocol==="http"?(l(),i(u,{key:1},[(l(!0),i(u,null,k([((P=c.traffic.http)==null?void 0:P.downstream_rq_1xx)??0].filter(m=>m!==0),m=>(l(),i("div",{key:m},[s("dt",null,o(a(n)("data-planes.components.service_traffic_card.1xx")),1),t(),s("dd",null,o(a(n)("common.formats.integer",{value:m})),1)]))),128)),t(),s("div",null,[s("dt",null,o(a(n)("data-planes.components.service_traffic_card.2xx")),1),t(),s("dd",null,o(a(n)("common.formats.integer",{value:((C=c.traffic.http)==null?void 0:C.downstream_rq_2xx)??0})),1)]),t(),(l(!0),i(u,null,k([((D=c.traffic.http)==null?void 0:D.downstream_rq_3xx)??0].filter(m=>m!==0),m=>(l(),i("div",{key:m},[s("dt",null,o(a(n)("data-planes.components.service_traffic_card.3xx")),1),t(),s("dd",null,o(a(n)("common.formats.integer",{value:m})),1)]))),128)),t(),s("div",null,[s("dt",null,o(a(n)("data-planes.components.service_traffic_card.4xx")),1),t(),s("dd",null,o(a(n)("common.formats.integer",{value:((M=c.traffic.http)==null?void 0:M.downstream_rq_4xx)??0})),1)]),t(),s("div",null,[s("dt",null,o(a(n)("data-planes.components.service_traffic_card.5xx")),1),t(),s("dd",null,o(a(n)("common.formats.integer",{value:((E=c.traffic.http)==null?void 0:E.downstream_rq_5xx)??0})),1)])],64)):(l(),i(u,{key:2},[s("div",null,[s("dt",null,o(a(n)("data-planes.components.service_traffic_card.tx")),1),t(),s("dd",null,o(a(n)("common.formats.bytes",{value:((z=c.traffic.tcp)==null?void 0:z.downstream_cx_rx_bytes_total)??0})),1)]),t(),s("div",null,[s("dt",null,o(a(n)("data-planes.components.service_traffic_card.rx")),1),t(),s("dd",null,o(a(n)("common.formats.bytes",{value:((A=c.traffic.tcp)==null?void 0:A.downstream_cx_tx_bytes_total)??0})),1)])],64))])]}),_:3})}}});const G=B(xt,[["__scopeId","data-v-a9db5dc7"]]),wt={class:"body"},$t=O({__name:"ServiceTrafficGroup",props:{type:{}},setup(h){const n=h;return(c,_)=>{const $=y("KCard");return l(),f($,{class:J(["service-traffic-group",`type-${n.type}`])},{default:e(()=>[s("div",wt,[I(c.$slots,"default",{},void 0,!0)])]),_:3},8,["class"])}}});const F=B($t,[["__scopeId","data-v-baf4abf7"]]),Ct=h=>(lt("data-v-079733d9"),h=h(),rt(),h),Tt={"data-testid":"dataplane-warnings"},It=["data-testid","innerHTML"],Kt={class:"stack","data-testid":"dataplane-details"},Dt={class:"columns"},St={class:"status-with-reason"},Vt={class:"columns"},Rt=Ct(()=>s("span",null,"Outbounds",-1)),Bt={class:"passthrough"},qt={class:"outbounds"},Pt={key:1,"data-testid":"dataplane-inbounds"},Mt={class:"inbound-list"},Et={class:"mt-4 columns"},zt={"data-testid":"dataplane-mtls"},At={class:"columns"},Nt=["innerHTML"],Lt={key:2,"data-testid":"dataplane-subscriptions"},Ht=O({__name:"DataPlaneDetailView",props:{data:{}},setup(h){const{t:n,formatIsoDate:c}=X(),_=h,$=Q(()=>_.data.warnings.concat(..._.data.isCertExpired?[{kind:"CERT_EXPIRED"}]:[]));return(q,K)=>{const P=y("KTooltip"),C=y("KCard"),D=y("RouterLink"),M=y("KInputSwitch"),E=y("KButton"),z=y("RouterView"),A=y("DataSource"),m=y("KBadge"),S=y("KAlert"),N=y("AppView"),V=y("RouteView");return l(),f(V,{params:{mesh:"",dataPlane:"",service:"",inactive:!1},name:"data-plane-detail-view"},{default:e(({can:R,route:v})=>[r(N,null,tt({default:e(()=>[t(),s("div",Kt,[r(C,null,{default:e(()=>[s("div",Dt,[r(g,null,{title:e(()=>[t(o(a(n)("http.api.property.status")),1)]),body:e(()=>[s("div",St,[r(ct,{status:_.data.status},null,8,["status"]),t(),(l(!0),i(u,null,k([_.data.dataplane.networking.inbounds.filter(d=>!d.health.ready)],d=>(l(),i(u,{key:d},[d.length>0?(l(),f(P,{key:0,class:"reason-tooltip","position-fixed":""},{content:e(()=>[s("ul",null,[(l(!0),i(u,null,k(d,b=>(l(),i("li",{key:`${b.service}:${b.port}`},o(a(n)("data-planes.routes.item.unhealthy_inbound",{service:b.service,port:b.port})),1))),128))])]),default:e(()=>[r(a(et),{color:a(Y),size:a(L),"hide-title":""},null,8,["color","size"]),t()]),_:2},1024)):T("",!0)],64))),128))])]),_:1}),t(),r(g,null,{title:e(()=>[t(o(a(n)("data-planes.routes.item.last_updated")),1)]),body:e(()=>[t(o(a(c)(_.data.modificationTime)),1)]),_:1}),t(),_.data.dataplane.networking.gateway?(l(),i(u,{key:0},[r(g,null,{title:e(()=>[t(o(a(n)("http.api.property.tags")),1)]),body:e(()=>[r(U,{tags:_.data.dataplane.networking.gateway.tags},null,8,["tags"])]),_:1}),t(),r(g,null,{title:e(()=>[t(o(a(n)("http.api.property.address")),1)]),body:e(()=>[r(H,{text:`${_.data.dataplane.networking.address}`},null,8,["text"])]),_:1})],64)):T("",!0)])]),_:1}),t(),R("read traffic")&&_.data.dataplaneType==="standard"?(l(),f(A,{key:0,src:`/meshes/${v.params.mesh}/dataplanes/${v.params.dataPlane}/traffic`},{default:e(({data:d,error:b,refresh:j})=>[b?(l(),f(dt,{key:0,error:b},null,8,["error"])):d===void 0?(l(),f(it,{key:1})):(l(),f(C,{key:2,class:"traffic"},{default:e(()=>[s("div",Vt,[r(W,null,{title:e(()=>[r(a(at),{display:"inline-block",decorative:"",size:a(L)},null,8,["size"]),t(` - Inbounds - `)]),data:e(()=>[s("dl",null,[s("div",null,[s("dt",null,o(a(n)("services.components.service_traffic.inbound",{},{defaultMessage:"Requests"})),1),t(),s("dd",null,o(a(n)("common.formats.integer",{value:1e3})),1)])])]),default:e(()=>[t(),t(),r(F,{type:"inbound"},{default:e(()=>[(l(!0),i(u,null,k(d.inbounds,p=>(l(),i(u,{key:`${p.name}`},[(l(!0),i(u,null,k([p.name.split("_").at(-1)],x=>(l(),i(u,{key:x},[(l(!0),i(u,null,k([_.data.dataplane.networking.inbounds.find(w=>`${w.port}`==`${x}`)],w=>(l(),i(u,{key:w},[w?(l(),f(G,{key:0,protocol:p.protocol,traffic:p},{default:e(()=>[r(D,{to:{name:"data-plane-inbound-summary-overview-view",params:{service:w.port},query:{inactive:v.params.inactive?null:void 0}}},{default:e(()=>[t(` - :`+o(w.port),1)]),_:2},1032,["to"]),t(),r(U,{tags:[{label:"kuma.io/service",value:w.tags["kuma.io/service"]}]},null,8,["tags"])]),_:2},1032,["protocol","traffic"])):T("",!0)],64))),128))],64))),128))],64))),128))]),_:2},1024)]),_:2},1024),t(),r(W,null,{actions:e(()=>[r(M,{modelValue:v.params.inactive,"onUpdate:modelValue":p=>v.params.inactive=p},{label:e(()=>[t(` - Show inactive - `)]),_:2},1032,["modelValue","onUpdate:modelValue"]),t(),r(E,{appearance:"primary",onClick:j},{default:e(()=>[r(a(st),{size:a(L)},null,8,["size"]),t(` - - Refresh - `)]),_:2},1032,["onClick"])]),title:e(()=>[r(a(nt),{display:"inline-block",decorative:"",size:a(L)},null,8,["size"]),t(),Rt]),data:e(()=>[s("dl",null,[s("div",null,[s("dt",Bt,o(a(n)("services.components.service_traffic.passthrough",{},{defaultMessage:"Passthrough Requests"})),1),t(),s("dd",null,o(a(n)("common.formats.integer",{value:1e3})),1)]),t(),s("div",null,[s("dt",qt,o(a(n)("services.components.service_traffic.mesh",{},{defaultMessage:"Mesh Requests"})),1),t(),s("dd",null,o(a(n)("common.formats.integer",{value:1e3})),1)])])]),default:e(()=>[t(),t(),t(),r(F,{type:"passthrough"},{default:e(()=>[r(G,{protocol:"passthrough",traffic:d.passthrough},{default:e(()=>[t(` - Non mesh traffic - `)]),_:2},1032,["traffic"])]),_:2},1024),t(),r(F,{type:"outbound"},{default:e(()=>[(l(!0),i(u,null,k(d.outbounds,p=>{var x,w;return l(),i(u,{key:`${p.name}`},[v.params.inactive||((p.protocol!=="http"?(x=p.tcp)==null?void 0:x.downstream_cx_rx_bytes_total:(w=p.http)==null?void 0:w.downstream_rq_total)??0>0)?(l(),f(G,{key:0,protocol:p.protocol,traffic:p},{default:e(()=>[r(D,{to:{name:"data-plane-outbound-summary-overview-view",params:{service:p.name},query:{inactive:v.params.inactive?null:void 0}}},{default:e(()=>[t(o(p.name),1)]),_:2},1032,["to"])]),_:2},1032,["protocol","traffic"])):T("",!0)],64)}),128))]),_:2},1024)]),_:2},1024)])]),_:2},1024)),t(),v.params.service&&[d==null?void 0:d.outbounds,_.data.dataplane.networking.inbounds].every(p=>typeof p<"u")?(l(),f(z,{key:3},{default:e(p=>[r(ut,{onClose:function(x){v.replace({name:"data-plane-detail-view",params:{mesh:v.params.mesh,dataPlane:v.params.dataPlane},query:{inactive:v.params.inactive?null:void 0}})}},{default:e(()=>[(l(),f(ot(p.Component),{data:p.route.name==="data-plane-inbound-summary-overview-view"?_.data.dataplane.networking.inbounds.find(x=>`${x.port}`===v.params.service):d.outbounds.find(x=>x.name===v.params.service)},null,8,["data"]))]),_:2},1032,["onClose"])]),_:2},1024)):T("",!0)]),_:2},1032,["src"])):T("",!0),t(),_.data.dataplane.networking.inbounds.length>0?(l(),i("div",Pt,[s("h2",null,o(a(n)("data-planes.routes.item.inbounds")),1),t(),r(C,{class:"mt-4"},{default:e(()=>[s("div",Mt,[(l(!0),i(u,null,k(_.data.dataplane.networking.inbounds,(d,b)=>(l(),i("div",{key:b,class:"inbound"},[s("h4",null,[r(H,{text:d.tags["kuma.io/service"]},{default:e(()=>[t(o(a(n)("data-planes.routes.item.inbound_name",{service:d.tags["kuma.io/service"]})),1)]),_:2},1032,["text"])]),t(),s("div",Et,[r(g,null,{title:e(()=>[t(o(a(n)("http.api.property.status")),1)]),body:e(()=>[d.health.ready?(l(),f(m,{key:0,appearance:"success"},{default:e(()=>[t(o(a(n)("data-planes.routes.item.health.ready")),1)]),_:1})):(l(),f(m,{key:1,appearance:"danger"},{default:e(()=>[t(o(a(n)("data-planes.routes.item.health.not_ready")),1)]),_:1}))]),_:2},1024),t(),r(g,null,{title:e(()=>[t(o(a(n)("http.api.property.tags")),1)]),body:e(()=>[r(U,{tags:d.tags},null,8,["tags"])]),_:2},1024),t(),r(g,null,{title:e(()=>[t(o(a(n)("http.api.property.address")),1)]),body:e(()=>[r(H,{text:d.addressPort},null,8,["text"])]),_:2},1024),t(),r(g,null,{title:e(()=>[t(o(a(n)("http.api.property.serviceAddress")),1)]),body:e(()=>[r(H,{text:d.serviceAddressPort},null,8,["text"])]),_:2},1024)])]))),128))])]),_:1})])):T("",!0),t(),s("div",zt,[s("h2",null,o(a(n)("data-planes.routes.item.mtls.title")),1),t(),_.data.dataplaneInsight.mTLS?(l(!0),i(u,{key:0},k([_.data.dataplaneInsight.mTLS],d=>(l(),f(C,{key:d,class:"mt-4"},{default:e(()=>[s("div",At,[r(g,null,{title:e(()=>[t(o(a(n)("data-planes.routes.item.mtls.expiration_time.title")),1)]),body:e(()=>[t(o(a(c)(d.certificateExpirationTime)),1)]),_:2},1024),t(),r(g,null,{title:e(()=>[t(o(a(n)("data-planes.routes.item.mtls.generation_time.title")),1)]),body:e(()=>[t(o(a(c)(d.lastCertificateRegeneration)),1)]),_:2},1024),t(),r(g,null,{title:e(()=>[t(o(a(n)("data-planes.routes.item.mtls.regenerations.title")),1)]),body:e(()=>[t(o(a(n)("common.formats.integer",{value:d.certificateRegenerations})),1)]),_:2},1024),t(),r(g,null,{title:e(()=>[t(o(a(n)("data-planes.routes.item.mtls.issued_backend.title")),1)]),body:e(()=>[t(o(d.issuedBackend),1)]),_:2},1024),t(),r(g,null,{title:e(()=>[t(o(a(n)("data-planes.routes.item.mtls.supported_backends.title")),1)]),body:e(()=>[s("ul",null,[(l(!0),i(u,null,k(d.supportedBackends,b=>(l(),i("li",{key:b},o(b),1))),128))])]),_:2},1024)])]),_:2},1024))),128)):(l(),f(S,{key:1,class:"mt-4",appearance:"warning"},{alertMessage:e(()=>[s("div",{innerHTML:a(n)("data-planes.routes.item.mtls.disabled")},null,8,Nt)]),_:1}))]),t(),_.data.dataplaneInsight.subscriptions.length>0?(l(),i("div",Lt,[s("h2",null,o(a(n)("data-planes.routes.item.subscriptions.title")),1),t(),r(C,{class:"mt-4"},{default:e(()=>[r(_t,{subscriptions:_.data.dataplaneInsight.subscriptions},null,8,["subscriptions"])]),_:1})])):T("",!0)])]),_:2},[$.value.length>0?{name:"notifications",fn:e(()=>[s("ul",Tt,[(l(!0),i(u,null,k($.value,d=>(l(),i("li",{key:d.kind,"data-testid":`warning-${d.kind}`,innerHTML:a(n)(`common.warnings.${d.kind}`,d.payload)},null,8,It))),128)),t()])]),key:"0"}:void 0]),1024)]),_:1})}}});const ee=B(Ht,[["__scopeId","data-v-079733d9"]]);export{ee as default}; diff --git a/app/kuma-ui/pkg/resources/data/assets/DataPlaneDetailView-d6c7ac6b.css b/app/kuma-ui/pkg/resources/data/assets/DataPlaneDetailView-d984fa3b.css similarity index 73% rename from app/kuma-ui/pkg/resources/data/assets/DataPlaneDetailView-d6c7ac6b.css rename to app/kuma-ui/pkg/resources/data/assets/DataPlaneDetailView-d984fa3b.css index ce71c2bb824c..e1dea6931f3f 100644 --- a/app/kuma-ui/pkg/resources/data/assets/DataPlaneDetailView-d6c7ac6b.css +++ b/app/kuma-ui/pkg/resources/data/assets/DataPlaneDetailView-d984fa3b.css @@ -1 +1 @@ -.data-card[data-v-6e083223]{padding:12px}.data-card[data-v-6e083223] .card-content{font-size:12px}.card[data-v-6e083223],.title[data-v-6e083223],.body[data-v-6e083223],.body[data-v-6e083223]>dl,.body[data-v-6e083223]>dl>div{display:flex;flex-wrap:wrap;gap:8px;align-items:flex-start}.body[data-v-6e083223]>dl{column-gap:24px}.body[data-v-6e083223],.card[data-v-6e083223]{flex-direction:column}.title[data-v-6e083223]{font-weight:600;font-size:20px;width:100%}.body[data-v-6e083223]>dl>div{column-gap:4px}.body[data-v-6e083223]>dl>div>dt{color:#828a9e}.body[data-v-6e083223]>dl>div>dd{color:#000933}.body[data-v-6e083223]>dl>div>dt:after{display:inline;content:": "}.service-traffic[data-v-5bd1dbf9]{position:relative;display:flex;flex-direction:column;gap:8px}.actions[data-v-5bd1dbf9]{display:flex;gap:8px;position:absolute;right:0}.data-card.header[data-v-5bd1dbf9]{border:0}.header[data-v-5bd1dbf9] .title{font-size:12px}.header[data-v-5bd1dbf9]>dt{display:flex;align-items:center}.header[data-v-5bd1dbf9] .body dt:before{display:inline-block;margin-right:4px;border:4px solid;border-radius:50%}.header[data-v-5bd1dbf9] .body dt.passthrough:before{content:"";border-color:#00d6a4}.header[data-v-5bd1dbf9] .body dt.outbounds:before{content:"";border-color:#5f9aff}.title[data-v-a9db5dc7]{font-size:16px;display:flex;flex:1 1 auto}.title[data-v-a9db5dc7]>a{text-decoration:none;color:inherit}.service-traffic-group .body[data-v-baf4abf7]{display:flex;flex-direction:column;gap:8px}.type-passthrough[data-v-baf4abf7],.type-outbound[data-v-baf4abf7]{padding:8px;border-radius:8px}.service-traffic-group.type-passthrough[data-v-baf4abf7]{border-color:#00d6a4;background-color:#ecfffb}.service-traffic-group.type-outbound[data-v-baf4abf7]{border-color:#5f9aff;background-color:#eefaff}.service-traffic-group.type-inbound[data-v-baf4abf7]{padding:0;border-radius:0;border:0}.service-traffic-group:not(.type-passthrough) .service-traffic-card[data-v-079733d9]{cursor:pointer}.traffic[data-v-079733d9]{padding:0;container-type:inline-size;container-name:traffic}.traffic .columns[data-v-079733d9]{padding:8px;background:linear-gradient(90deg,rgba(0,0,0,.1) 1px,transparent 1px);background-position:100% 0;background-repeat:repeat-y;background-size:50%}.traffic .tag-list[data-v-079733d9]{margin-left:auto}@container traffic (max-width: 40.95rem){.traffic .columns[data-v-079733d9]{background:none}}.status-with-reason[data-v-079733d9]{display:flex;align-items:center;gap:12px}.reason-tooltip[data-v-079733d9] .kong-icon{display:flex;align-items:center}.inbound-list>*+*[data-v-079733d9]{margin-block-start:16px;border-top:1px solid #e0e4ea;padding-block-start:16px} +.data-card[data-v-6e083223]{padding:12px}.data-card[data-v-6e083223] .card-content{font-size:12px}.card[data-v-6e083223],.title[data-v-6e083223],.body[data-v-6e083223],.body[data-v-6e083223]>dl,.body[data-v-6e083223]>dl>div{display:flex;flex-wrap:wrap;gap:8px;align-items:flex-start}.body[data-v-6e083223]>dl{column-gap:24px}.body[data-v-6e083223],.card[data-v-6e083223]{flex-direction:column}.title[data-v-6e083223]{font-weight:600;font-size:20px;width:100%}.body[data-v-6e083223]>dl>div{column-gap:4px}.body[data-v-6e083223]>dl>div>dt{color:#828a9e}.body[data-v-6e083223]>dl>div>dd{color:#000933}.body[data-v-6e083223]>dl>div>dt:after{display:inline;content:": "}.service-traffic[data-v-5bd1dbf9]{position:relative;display:flex;flex-direction:column;gap:8px}.actions[data-v-5bd1dbf9]{display:flex;gap:8px;position:absolute;right:0}.data-card.header[data-v-5bd1dbf9]{border:0}.header[data-v-5bd1dbf9] .title{font-size:12px}.header[data-v-5bd1dbf9]>dt{display:flex;align-items:center}.header[data-v-5bd1dbf9] .body dt:before{display:inline-block;margin-right:4px;border:4px solid;border-radius:50%}.header[data-v-5bd1dbf9] .body dt.passthrough:before{content:"";border-color:#00d6a4}.header[data-v-5bd1dbf9] .body dt.outbounds:before{content:"";border-color:#5f9aff}.title[data-v-6044d92c]{font-size:16px;display:flex;flex:1 1 auto}.title[data-v-6044d92c]>a{text-decoration:none;color:inherit}.service-traffic-group .body[data-v-baf4abf7]{display:flex;flex-direction:column;gap:8px}.type-passthrough[data-v-baf4abf7],.type-outbound[data-v-baf4abf7]{padding:8px;border-radius:8px}.service-traffic-group.type-passthrough[data-v-baf4abf7]{border-color:#00d6a4;background-color:#ecfffb}.service-traffic-group.type-outbound[data-v-baf4abf7]{border-color:#5f9aff;background-color:#eefaff}.service-traffic-group.type-inbound[data-v-baf4abf7]{padding:0;border-radius:0;border:0}.service-traffic-group:not(.type-passthrough) .service-traffic-card[data-v-1aa8d39b]{cursor:pointer}.traffic[data-v-1aa8d39b]{padding:0;container-type:inline-size;container-name:traffic}.traffic .columns[data-v-1aa8d39b]{padding:8px;background:linear-gradient(90deg,rgba(0,0,0,.1) 1px,transparent 1px);background-position:100% 0;background-repeat:repeat-y;background-size:50%}.traffic .tag-list[data-v-1aa8d39b]{margin-left:auto}@container traffic (max-width: 40.95rem){.traffic .columns[data-v-1aa8d39b]{background:none}}.status-with-reason[data-v-1aa8d39b]{display:flex;align-items:center;gap:12px}.reason-tooltip[data-v-1aa8d39b] .kong-icon{display:flex;align-items:center}.inbound-list>*+*[data-v-1aa8d39b]{margin-block-start:16px;border-top:1px solid #e0e4ea;padding-block-start:16px} diff --git a/app/kuma-ui/pkg/resources/data/assets/DataPlaneInboundSummaryOverviewView-dd0689ab.js b/app/kuma-ui/pkg/resources/data/assets/DataPlaneInboundSummaryOverviewView-7d45627f.js similarity index 93% rename from app/kuma-ui/pkg/resources/data/assets/DataPlaneInboundSummaryOverviewView-dd0689ab.js rename to app/kuma-ui/pkg/resources/data/assets/DataPlaneInboundSummaryOverviewView-7d45627f.js index e9d0b4589656..bc4b42908c07 100644 --- a/app/kuma-ui/pkg/resources/data/assets/DataPlaneInboundSummaryOverviewView-dd0689ab.js +++ b/app/kuma-ui/pkg/resources/data/assets/DataPlaneInboundSummaryOverviewView-7d45627f.js @@ -1,4 +1,4 @@ -import{d as u,a as n,o as _,b as m,w as e,e as a,m as h,X as r,f as t,t as c}from"./index-5f4feb06.js";const f={class:"stack-with-borders"},V=u({__name:"DataPlaneInboundSummaryOverviewView",props:{data:{}},setup(d){const o=d;return(w,y)=>{const s=n("KBadge"),p=n("AppView"),i=n("RouteView");return _(),m(i,{name:"data-plane-inbound-summary-overview-view"},{default:e(({t:l})=>[a(p,null,{default:e(()=>[h("div",f,[a(r,{layout:"horizontal"},{title:e(()=>[t(` +import{d as u,a as n,o as _,b as m,w as e,e as a,m as h,X as r,f as t,t as c}from"./index-0dcf85b4.js";const f={class:"stack-with-borders"},V=u({__name:"DataPlaneInboundSummaryOverviewView",props:{data:{}},setup(d){const o=d;return(w,y)=>{const s=n("KBadge"),p=n("AppView"),i=n("RouteView");return _(),m(i,{name:"data-plane-inbound-summary-overview-view"},{default:e(({t:l})=>[a(p,null,{default:e(()=>[h("div",f,[a(r,{layout:"horizontal"},{title:e(()=>[t(` Status `)]),body:e(()=>[a(s,{appearance:o.data.health.ready?"success":"danger"},{default:e(()=>[t(c(o.data.health.ready?"Healthy":"Unhealthy"),1)]),_:1},8,["appearance"])]),_:1}),t(),a(r,{layout:"horizontal"},{title:e(()=>[t(` Protocol diff --git a/app/kuma-ui/pkg/resources/data/assets/DataPlaneInboundSummaryView-fe413652.js b/app/kuma-ui/pkg/resources/data/assets/DataPlaneInboundSummaryView-52474722.js similarity index 88% rename from app/kuma-ui/pkg/resources/data/assets/DataPlaneInboundSummaryView-fe413652.js rename to app/kuma-ui/pkg/resources/data/assets/DataPlaneInboundSummaryView-52474722.js index 9e75a87213a4..c3e8c4396526 100644 --- a/app/kuma-ui/pkg/resources/data/assets/DataPlaneInboundSummaryView-fe413652.js +++ b/app/kuma-ui/pkg/resources/data/assets/DataPlaneInboundSummaryView-52474722.js @@ -1,2 +1,2 @@ -import{d as I,k as S,S as g,a as l,o as c,b as p,w as t,e as _,m as r,f as m,t as f,l as y,c as k,C as x,v as R,x as C,a1 as N,_ as D}from"./index-5f4feb06.js";import{_ as B}from"./EmptyBlock.vue_vue_type_script_setup_true_lang-7f79002a.js";import{N as P}from"./NavTabs-d4a6578a.js";const A=a=>(R("data-v-1fc90608"),a=a(),C(),a),T={class:"summary-title-wrapper"},$=A(()=>r("img",{"aria-hidden":"true",src:N},null,-1)),E={class:"summary-title"},j={key:1,class:"stack"},q=I({__name:"DataPlaneInboundSummaryView",props:{data:{}},setup(a){var w;const{t:i}=S(),h=g(),v=a,V=(((w=h.getRoutes().find(e=>e.name==="data-plane-inbound-summary-view"))==null?void 0:w.children)??[]).map(e=>{var n,s;const u=typeof e.name>"u"?(n=e.children)==null?void 0:n[0]:e,o=u.name,d=((s=u.meta)==null?void 0:s.module)??"";return{title:i(`data-planes.routes.item.navigation.${o}`),routeName:o,module:d}});return(e,u)=>{const o=l("RouterView"),d=l("AppView"),b=l("RouteView");return c(),p(b,{name:"data-plane-inbound-summary-view",params:{service:""}},{default:t(({route:n})=>[_(d,null,{title:t(()=>[r("div",T,[$,m(),r("h2",E,` +import{d as I,k as S,S as g,a as l,o as c,b as p,w as t,e as _,m as r,f as m,t as f,l as y,c as k,C as x,v as R,x as C,a1 as N,_ as D}from"./index-0dcf85b4.js";import{_ as B}from"./EmptyBlock.vue_vue_type_script_setup_true_lang-6ff90078.js";import{N as P}from"./NavTabs-e7b14354.js";const A=a=>(R("data-v-1fc90608"),a=a(),C(),a),T={class:"summary-title-wrapper"},$=A(()=>r("img",{"aria-hidden":"true",src:N},null,-1)),E={class:"summary-title"},j={key:1,class:"stack"},q=I({__name:"DataPlaneInboundSummaryView",props:{data:{}},setup(a){var w;const{t:i}=S(),h=g(),v=a,V=(((w=h.getRoutes().find(e=>e.name==="data-plane-inbound-summary-view"))==null?void 0:w.children)??[]).map(e=>{var n,s;const u=typeof e.name>"u"?(n=e.children)==null?void 0:n[0]:e,o=u.name,d=((s=u.meta)==null?void 0:s.module)??"";return{title:i(`data-planes.routes.item.navigation.${o}`),routeName:o,module:d}});return(e,u)=>{const o=l("RouterView"),d=l("AppView"),b=l("RouteView");return c(),p(b,{name:"data-plane-inbound-summary-view",params:{service:""}},{default:t(({route:n})=>[_(d,null,{title:t(()=>[r("div",T,[$,m(),r("h2",E,` Inbound :`+f(n.params.service),1)])]),default:t(()=>[m(),typeof v.data>"u"?(c(),p(B,{key:0},{message:t(()=>[r("p",null,f(y(i)("common.collection.summary.empty_message",{type:"Inbound"})),1)]),default:t(()=>[m(f(y(i)("common.collection.summary.empty_title",{type:"Inbound"}))+" ",1)]),_:1})):(c(),k("div",j,[_(P,{tabs:y(V)},null,8,["tabs"]),m(),_(o,null,{default:t(s=>[(c(),p(x(s.Component),{data:v.data},null,8,["data"]))]),_:1})]))]),_:2},1024)]),_:1})}}});const J=D(q,[["__scopeId","data-v-1fc90608"]]);export{J as default}; diff --git a/app/kuma-ui/pkg/resources/data/assets/DataPlaneListView-ec3929eb.js b/app/kuma-ui/pkg/resources/data/assets/DataPlaneListView-d9b2df19.js similarity index 82% rename from app/kuma-ui/pkg/resources/data/assets/DataPlaneListView-ec3929eb.js rename to app/kuma-ui/pkg/resources/data/assets/DataPlaneListView-d9b2df19.js index ed64d034c75a..a148d3d3ee9f 100644 --- a/app/kuma-ui/pkg/resources/data/assets/DataPlaneListView-ec3929eb.js +++ b/app/kuma-ui/pkg/resources/data/assets/DataPlaneListView-d9b2df19.js @@ -1 +1 @@ -import{D as C,F as V}from"./FilterBar-a4902129.js";import{E as k}from"./ErrorBlock-558c0398.js";import{S as z}from"./SummaryView-46a73d2c.js";import{d as S,a as l,o,b as i,w as t,e as n,m as D,f as p,t as P,C as q,p as u,_ as T}from"./index-5f4feb06.js";import"./index-fce48c05.js";import"./AppCollection-4b66f394.js";import"./EmptyBlock.vue_vue_type_script_setup_true_lang-7f79002a.js";import"./StatusBadge-2db39c5c.js";import"./TextWithCopyButton-1098d691.js";import"./CopyButton-2ffc661c.js";import"./WarningIcon.vue_vue_type_script_setup_true_lang-cab7af3a.js";import"./uniqueId-90cc9b93.js";const x=S({__name:"DataPlaneListView",setup(R){return(B,N)=>{const f=l("RouteTitle"),y=l("KSelect"),g=l("KCard"),w=l("RouterView"),v=l("AppView"),m=l("DataSource"),b=l("RouteView");return o(),i(m,{src:"/me"},{default:t(({data:c})=>[c?(o(),i(b,{key:0,name:"data-plane-list-view",params:{page:1,size:c.pageSize,query:"",dataplaneType:"all",s:"",mesh:"",dataPlane:""}},{default:t(({can:h,route:e,t:d})=>[n(m,{src:`/meshes/${e.params.mesh}/dataplanes/of/${e.params.dataplaneType}?page=${e.params.page}&size=${e.params.size}&search=${e.params.s}`},{default:t(({data:s,error:r})=>[n(v,null,{title:t(()=>[D("h2",null,[n(f,{title:d("data-planes.routes.items.title")},null,8,["title"])])]),default:t(()=>[p(),n(g,null,{default:t(()=>[r!==void 0?(o(),i(k,{key:0,error:r},null,8,["error"])):(o(),i(C,{key:1,"data-testid":"data-plane-collection","page-number":e.params.page,"page-size":e.params.size,total:s==null?void 0:s.total,items:s==null?void 0:s.items,error:r,"is-selected-row":a=>a.name===e.params.dataPlane,"summary-route-name":"data-plane-summary-view","is-global-mode":h("use zones"),onChange:e.update},{toolbar:t(()=>[n(V,{class:"data-plane-proxy-filter",placeholder:"tag: 'kuma.io/service: backend'",query:e.params.query,fields:{name:{description:"filter by name or parts of a name"},protocol:{description:"filter by “kuma.io/protocol” value"},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"}},onFieldsChange:a=>e.update({query:a.query,s:a.query.length>0?JSON.stringify(a.fields):""})},null,8,["placeholder","query","fields","onFieldsChange"]),p(),n(y,{class:"filter-select",label:"Type",items:["all","standard","builtin","delegated"].map(a=>({value:a,label:d(`data-planes.type.${a}`),selected:a===e.params.dataplaneType})),appearance:"select",onSelected:a=>e.update({dataplaneType:String(a.value)})},{"item-template":t(({item:a})=>[p(P(a.label),1)]),_:2},1032,["items","onSelected"])]),_:2},1032,["page-number","page-size","total","items","error","is-selected-row","is-global-mode","onChange"]))]),_:2},1024),p(),e.params.dataPlane?(o(),i(w,{key:0},{default:t(a=>[n(z,{onClose:_=>e.replace({name:"data-plane-list-view",params:{mesh:e.params.mesh},query:{page:e.params.page,size:e.params.size}})},{default:t(()=>[(o(),i(q(a.Component),{name:e.params.dataPlane,"dataplane-overview":s==null?void 0:s.items.find(_=>_.name===e.params.dataPlane)},null,8,["name","dataplane-overview"]))]),_:2},1032,["onClose"])]),_:2},1024)):u("",!0)]),_:2},1024)]),_:2},1032,["src"])]),_:2},1032,["params"])):u("",!0)]),_:1})}}});const M=T(x,[["__scopeId","data-v-5252830f"]]);export{M as default}; +import{D as C,F as V}from"./FilterBar-79da2c55.js";import{E as k}from"./ErrorBlock-70a14ad9.js";import{S as z}from"./SummaryView-8d0a7896.js";import{d as S,a as l,o,b as i,w as t,e as n,m as D,f as p,t as P,C as q,p as u,_ as T}from"./index-0dcf85b4.js";import"./index-fce48c05.js";import"./AppCollection-a7a0983f.js";import"./EmptyBlock.vue_vue_type_script_setup_true_lang-6ff90078.js";import"./StatusBadge-e7326f60.js";import"./TextWithCopyButton-da18080b.js";import"./CopyButton-dcdce1f2.js";import"./WarningIcon.vue_vue_type_script_setup_true_lang-d54f4898.js";import"./uniqueId-90cc9b93.js";const x=S({__name:"DataPlaneListView",setup(R){return(B,N)=>{const f=l("RouteTitle"),y=l("KSelect"),g=l("KCard"),w=l("RouterView"),v=l("AppView"),m=l("DataSource"),b=l("RouteView");return o(),i(m,{src:"/me"},{default:t(({data:c})=>[c?(o(),i(b,{key:0,name:"data-plane-list-view",params:{page:1,size:c.pageSize,query:"",dataplaneType:"all",s:"",mesh:"",dataPlane:""}},{default:t(({can:h,route:e,t:d})=>[n(m,{src:`/meshes/${e.params.mesh}/dataplanes/of/${e.params.dataplaneType}?page=${e.params.page}&size=${e.params.size}&search=${e.params.s}`},{default:t(({data:s,error:r})=>[n(v,null,{title:t(()=>[D("h2",null,[n(f,{title:d("data-planes.routes.items.title")},null,8,["title"])])]),default:t(()=>[p(),n(g,null,{default:t(()=>[r!==void 0?(o(),i(k,{key:0,error:r},null,8,["error"])):(o(),i(C,{key:1,"data-testid":"data-plane-collection","page-number":e.params.page,"page-size":e.params.size,total:s==null?void 0:s.total,items:s==null?void 0:s.items,error:r,"is-selected-row":a=>a.name===e.params.dataPlane,"summary-route-name":"data-plane-summary-view","is-global-mode":h("use zones"),onChange:e.update},{toolbar:t(()=>[n(V,{class:"data-plane-proxy-filter",placeholder:"tag: 'kuma.io/service: backend'",query:e.params.query,fields:{name:{description:"filter by name or parts of a name"},protocol:{description:"filter by “kuma.io/protocol” value"},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"}},onFieldsChange:a=>e.update({query:a.query,s:a.query.length>0?JSON.stringify(a.fields):""})},null,8,["placeholder","query","fields","onFieldsChange"]),p(),n(y,{class:"filter-select",label:"Type",items:["all","standard","builtin","delegated"].map(a=>({value:a,label:d(`data-planes.type.${a}`),selected:a===e.params.dataplaneType})),appearance:"select",onSelected:a=>e.update({dataplaneType:String(a.value)})},{"item-template":t(({item:a})=>[p(P(a.label),1)]),_:2},1032,["items","onSelected"])]),_:2},1032,["page-number","page-size","total","items","error","is-selected-row","is-global-mode","onChange"]))]),_:2},1024),p(),e.params.dataPlane?(o(),i(w,{key:0},{default:t(a=>[n(z,{onClose:_=>e.replace({name:"data-plane-list-view",params:{mesh:e.params.mesh},query:{page:e.params.page,size:e.params.size}})},{default:t(()=>[(o(),i(q(a.Component),{name:e.params.dataPlane,"dataplane-overview":s==null?void 0:s.items.find(_=>_.name===e.params.dataPlane)},null,8,["name","dataplane-overview"]))]),_:2},1032,["onClose"])]),_:2},1024)):u("",!0)]),_:2},1024)]),_:2},1032,["src"])]),_:2},1032,["params"])):u("",!0)]),_:1})}}});const M=T(x,[["__scopeId","data-v-5252830f"]]);export{M as default}; diff --git a/app/kuma-ui/pkg/resources/data/assets/DataPlaneOutboundSummaryOverviewView-70cf7111.js b/app/kuma-ui/pkg/resources/data/assets/DataPlaneOutboundSummaryOverviewView-92944bb5.js similarity index 90% rename from app/kuma-ui/pkg/resources/data/assets/DataPlaneOutboundSummaryOverviewView-70cf7111.js rename to app/kuma-ui/pkg/resources/data/assets/DataPlaneOutboundSummaryOverviewView-92944bb5.js index 18f9c5b21c5b..b3ac6c75371d 100644 --- a/app/kuma-ui/pkg/resources/data/assets/DataPlaneOutboundSummaryOverviewView-70cf7111.js +++ b/app/kuma-ui/pkg/resources/data/assets/DataPlaneOutboundSummaryOverviewView-92944bb5.js @@ -1,3 +1,3 @@ -import{d,a as t,o as l,b as u,w as e,e as a,m as _,X as m,f as o,t as w}from"./index-5f4feb06.js";const f={class:"stack-with-borders"},b=d({__name:"DataPlaneOutboundSummaryOverviewView",props:{data:{}},setup(n){const s=n;return(v,V)=>{const r=t("KBadge"),c=t("AppView"),i=t("RouteView");return l(),u(i,{name:"data-plane-outbound-summary-overview-view"},{default:e(({t:p})=>[a(c,null,{default:e(()=>[_("div",f,[a(m,{layout:"horizontal"},{title:e(()=>[o(` +import{d,a as t,o as l,b as u,w as e,e as a,m as _,X as m,f as o,t as w}from"./index-0dcf85b4.js";const f={class:"stack-with-borders"},b=d({__name:"DataPlaneOutboundSummaryOverviewView",props:{data:{}},setup(n){const s=n;return(v,V)=>{const r=t("KBadge"),c=t("AppView"),i=t("RouteView");return l(),u(i,{name:"data-plane-outbound-summary-overview-view"},{default:e(({t:p})=>[a(c,null,{default:e(()=>[_("div",f,[a(m,{layout:"horizontal"},{title:e(()=>[o(` Protocol `)]),body:e(()=>[a(r,{appearance:"info"},{default:e(()=>[o(w(p(`http.api.value.${s.data.protocol}`)),1)]),_:2},1024)]),_:2},1024)])]),_:2},1024)]),_:1})}}});export{b as default}; diff --git a/app/kuma-ui/pkg/resources/data/assets/DataPlaneOutboundSummaryView-e3805943.js b/app/kuma-ui/pkg/resources/data/assets/DataPlaneOutboundSummaryView-94e545b9.js similarity index 88% rename from app/kuma-ui/pkg/resources/data/assets/DataPlaneOutboundSummaryView-e3805943.js rename to app/kuma-ui/pkg/resources/data/assets/DataPlaneOutboundSummaryView-94e545b9.js index 12ac509810a4..76a866d4dfe2 100644 --- a/app/kuma-ui/pkg/resources/data/assets/DataPlaneOutboundSummaryView-e3805943.js +++ b/app/kuma-ui/pkg/resources/data/assets/DataPlaneOutboundSummaryView-94e545b9.js @@ -1 +1 @@ -import{d as x,k as S,S as g,a as i,o as c,b as p,w as t,e as _,m as r,f as m,t as y,l as f,c as k,C as D,v as P,x as R,a1 as C,_ as N}from"./index-5f4feb06.js";import{_ as I}from"./EmptyBlock.vue_vue_type_script_setup_true_lang-7f79002a.js";import{N as B}from"./NavTabs-d4a6578a.js";const O=a=>(P("data-v-93ed9056"),a=a(),R(),a),A={class:"summary-title-wrapper"},T=O(()=>r("img",{"aria-hidden":"true",src:C},null,-1)),$={class:"summary-title"},E={key:1,class:"stack"},j=x({__name:"DataPlaneOutboundSummaryView",props:{data:{}},setup(a){var w;const{t:u}=S(),V=g(),v=a,b=(((w=V.getRoutes().find(e=>e.name==="data-plane-outbound-summary-view"))==null?void 0:w.children)??[]).map(e=>{var s,n;const l=typeof e.name>"u"?(s=e.children)==null?void 0:s[0]:e,o=l.name,d=((n=l.meta)==null?void 0:n.module)??"";return{title:u(`data-planes.routes.item.navigation.${o}`),routeName:o,module:d}});return(e,l)=>{const o=i("RouterView"),d=i("AppView"),h=i("RouteView");return c(),p(h,{name:"data-plane-outbound-summary-view",params:{service:""}},{default:t(({route:s})=>[_(d,null,{title:t(()=>[r("div",A,[T,m(),r("h2",$,y(s.params.service),1)])]),default:t(()=>[m(),typeof v.data>"u"?(c(),p(I,{key:0},{message:t(()=>[r("p",null,y(f(u)("common.collection.summary.empty_message",{type:"Data Plane Proxy"})),1)]),default:t(()=>[m(y(f(u)("common.collection.summary.empty_title",{type:"Data Plane Proxy"}))+" ",1)]),_:1})):(c(),k("div",E,[_(B,{tabs:f(b)},null,8,["tabs"]),m(),_(o,null,{default:t(n=>[(c(),p(D(n.Component),{data:v.data},null,8,["data"]))]),_:1})]))]),_:2},1024)]),_:1})}}});const H=N(j,[["__scopeId","data-v-93ed9056"]]);export{H as default}; +import{d as x,k as S,S as g,a as i,o as c,b as p,w as t,e as _,m as r,f as m,t as y,l as f,c as k,C as D,v as P,x as R,a1 as C,_ as N}from"./index-0dcf85b4.js";import{_ as I}from"./EmptyBlock.vue_vue_type_script_setup_true_lang-6ff90078.js";import{N as B}from"./NavTabs-e7b14354.js";const O=a=>(P("data-v-93ed9056"),a=a(),R(),a),A={class:"summary-title-wrapper"},T=O(()=>r("img",{"aria-hidden":"true",src:C},null,-1)),$={class:"summary-title"},E={key:1,class:"stack"},j=x({__name:"DataPlaneOutboundSummaryView",props:{data:{}},setup(a){var w;const{t:u}=S(),V=g(),v=a,b=(((w=V.getRoutes().find(e=>e.name==="data-plane-outbound-summary-view"))==null?void 0:w.children)??[]).map(e=>{var s,n;const l=typeof e.name>"u"?(s=e.children)==null?void 0:s[0]:e,o=l.name,d=((n=l.meta)==null?void 0:n.module)??"";return{title:u(`data-planes.routes.item.navigation.${o}`),routeName:o,module:d}});return(e,l)=>{const o=i("RouterView"),d=i("AppView"),h=i("RouteView");return c(),p(h,{name:"data-plane-outbound-summary-view",params:{service:""}},{default:t(({route:s})=>[_(d,null,{title:t(()=>[r("div",A,[T,m(),r("h2",$,y(s.params.service),1)])]),default:t(()=>[m(),typeof v.data>"u"?(c(),p(I,{key:0},{message:t(()=>[r("p",null,y(f(u)("common.collection.summary.empty_message",{type:"Data Plane Proxy"})),1)]),default:t(()=>[m(y(f(u)("common.collection.summary.empty_title",{type:"Data Plane Proxy"}))+" ",1)]),_:1})):(c(),k("div",E,[_(B,{tabs:f(b)},null,8,["tabs"]),m(),_(o,null,{default:t(n=>[(c(),p(D(n.Component),{data:v.data},null,8,["data"]))]),_:1})]))]),_:2},1024)]),_:1})}}});const H=N(j,[["__scopeId","data-v-93ed9056"]]);export{H as default}; diff --git a/app/kuma-ui/pkg/resources/data/assets/DataPlanePoliciesView-28c76a90.js b/app/kuma-ui/pkg/resources/data/assets/DataPlanePoliciesView-e6d65844.js similarity index 94% rename from app/kuma-ui/pkg/resources/data/assets/DataPlanePoliciesView-28c76a90.js rename to app/kuma-ui/pkg/resources/data/assets/DataPlanePoliciesView-e6d65844.js index ab6c4ffbaea0..fb0127b6d2a8 100644 --- a/app/kuma-ui/pkg/resources/data/assets/DataPlanePoliciesView-28c76a90.js +++ b/app/kuma-ui/pkg/resources/data/assets/DataPlanePoliciesView-e6d65844.js @@ -1,4 +1,4 @@ -import{A as V,a as x}from"./AccordionList-5331d528.js";import{d as I,a as k,o as e,c as t,m as n,f as a,F as u,D as b,t as c,e as y,w as s,p as R,b as i,W as z,v as D,x as j,_ as A,l as T,k as H,n as J}from"./index-5f4feb06.js";import{_ as W}from"./CodeBlock.vue_vue_type_style_index_0_lang-6de3c828.js";import{P as Y}from"./PolicyTypeTag-e459baad.js";import{T as M}from"./TagList-679e2f0e.js";import{t as q}from"./toYaml-4e00099e.js";import{_ as Q}from"./EmptyBlock.vue_vue_type_script_setup_true_lang-7f79002a.js";import{E as F}from"./ErrorBlock-558c0398.js";import{_ as O}from"./LoadingBlock.vue_vue_type_script_setup_true_lang-e7fd5a8b.js";import"./uniqueId-90cc9b93.js";import"./index-fce48c05.js";import"./TextWithCopyButton-1098d691.js";import"./CopyButton-2ffc661c.js";import"./WarningIcon.vue_vue_type_script_setup_true_lang-cab7af3a.js";const L=h=>(D("data-v-ab96b2ac"),h=h(),j(),h),U={class:"policies-list","data-testid":"builtin-gateway-dataplane-policies"},X={class:"mesh-gateway-policy-list"},Z=L(()=>n("h3",{class:"mb-2"},` +import{A as V,a as x}from"./AccordionList-a4be0b78.js";import{d as I,a as k,o as e,c as t,m as n,f as a,F as u,D as b,t as c,e as y,w as s,p as R,b as i,W as z,v as D,x as j,_ as A,l as T,k as H,n as J}from"./index-0dcf85b4.js";import{_ as W}from"./CodeBlock.vue_vue_type_style_index_0_lang-95cf08c2.js";import{P as Y}from"./PolicyTypeTag-cb9c8f52.js";import{T as M}from"./TagList-5868dd55.js";import{t as q}from"./toYaml-4e00099e.js";import{_ as Q}from"./EmptyBlock.vue_vue_type_script_setup_true_lang-6ff90078.js";import{E as F}from"./ErrorBlock-70a14ad9.js";import{_ as O}from"./LoadingBlock.vue_vue_type_script_setup_true_lang-2e81faa2.js";import"./uniqueId-90cc9b93.js";import"./index-fce48c05.js";import"./TextWithCopyButton-da18080b.js";import"./CopyButton-dcdce1f2.js";import"./WarningIcon.vue_vue_type_script_setup_true_lang-d54f4898.js";const L=h=>(D("data-v-ab96b2ac"),h=h(),j(),h),U={class:"policies-list","data-testid":"builtin-gateway-dataplane-policies"},X={class:"mesh-gateway-policy-list"},Z=L(()=>n("h3",{class:"mb-2"},` Gateway policies `,-1)),ee={key:0},te=L(()=>n("h3",{class:"mt-6 mb-2"},` Listeners diff --git a/app/kuma-ui/pkg/resources/data/assets/DataPlaneStatsView-4e3cab6c.js b/app/kuma-ui/pkg/resources/data/assets/DataPlaneStatsView-bc8a3e82.js similarity index 67% rename from app/kuma-ui/pkg/resources/data/assets/DataPlaneStatsView-4e3cab6c.js rename to app/kuma-ui/pkg/resources/data/assets/DataPlaneStatsView-bc8a3e82.js index 7f76c1431124..01c8d598db8e 100644 --- a/app/kuma-ui/pkg/resources/data/assets/DataPlaneStatsView-4e3cab6c.js +++ b/app/kuma-ui/pkg/resources/data/assets/DataPlaneStatsView-bc8a3e82.js @@ -1 +1 @@ -import{E as d}from"./EnvoyData-b31c947e.js";import{d as m,a as t,o as c,b as _,w as o,e as n,m as u,f as h}from"./index-5f4feb06.js";import"./index-fce48c05.js";import"./CodeBlock.vue_vue_type_style_index_0_lang-6de3c828.js";import"./uniqueId-90cc9b93.js";import"./EmptyBlock.vue_vue_type_script_setup_true_lang-7f79002a.js";import"./ErrorBlock-558c0398.js";import"./TextWithCopyButton-1098d691.js";import"./CopyButton-2ffc661c.js";import"./WarningIcon.vue_vue_type_script_setup_true_lang-cab7af3a.js";import"./LoadingBlock.vue_vue_type_script_setup_true_lang-e7fd5a8b.js";const B=m({__name:"DataPlaneStatsView",setup(g){return(f,x)=>{const s=t("RouteTitle"),p=t("KCard"),r=t("AppView"),i=t("RouteView");return c(),_(i,{name:"data-plane-stats-view",params:{mesh:"",dataPlane:"",codeSearch:"",codeFilter:!1,codeRegExp:!1}},{default:o(({route:e,t:l})=>[n(r,null,{title:o(()=>[u("h2",null,[n(s,{title:l("data-planes.routes.item.navigation.data-plane-stats-view")},null,8,["title"])])]),default:o(()=>[h(),n(p,null,{default:o(()=>[n(d,{resource:"Data Plane Proxy",src:`/meshes/${e.params.mesh}/dataplanes/${e.params.dataPlane}/data-path/stats`,query:e.params.codeSearch,"is-filter-mode":e.params.codeFilter,"is-reg-exp-mode":e.params.codeRegExp,onQueryChange:a=>e.update({codeSearch:a}),onFilterModeChange:a=>e.update({codeFilter:a}),onRegExpModeChange:a=>e.update({codeRegExp:a})},null,8,["src","query","is-filter-mode","is-reg-exp-mode","onQueryChange","onFilterModeChange","onRegExpModeChange"])]),_:2},1024)]),_:2},1024)]),_:1})}}});export{B as default}; +import{E as d}from"./EnvoyData-9a9e9257.js";import{d as m,a as t,o as c,b as _,w as o,e as n,m as u,f as h}from"./index-0dcf85b4.js";import"./index-fce48c05.js";import"./CodeBlock.vue_vue_type_style_index_0_lang-95cf08c2.js";import"./uniqueId-90cc9b93.js";import"./EmptyBlock.vue_vue_type_script_setup_true_lang-6ff90078.js";import"./ErrorBlock-70a14ad9.js";import"./TextWithCopyButton-da18080b.js";import"./CopyButton-dcdce1f2.js";import"./WarningIcon.vue_vue_type_script_setup_true_lang-d54f4898.js";import"./LoadingBlock.vue_vue_type_script_setup_true_lang-2e81faa2.js";const B=m({__name:"DataPlaneStatsView",setup(g){return(f,x)=>{const s=t("RouteTitle"),p=t("KCard"),r=t("AppView"),i=t("RouteView");return c(),_(i,{name:"data-plane-stats-view",params:{mesh:"",dataPlane:"",codeSearch:"",codeFilter:!1,codeRegExp:!1}},{default:o(({route:e,t:l})=>[n(r,null,{title:o(()=>[u("h2",null,[n(s,{title:l("data-planes.routes.item.navigation.data-plane-stats-view")},null,8,["title"])])]),default:o(()=>[h(),n(p,null,{default:o(()=>[n(d,{resource:"Data Plane Proxy",src:`/meshes/${e.params.mesh}/dataplanes/${e.params.dataPlane}/data-path/stats`,query:e.params.codeSearch,"is-filter-mode":e.params.codeFilter,"is-reg-exp-mode":e.params.codeRegExp,onQueryChange:a=>e.update({codeSearch:a}),onFilterModeChange:a=>e.update({codeFilter:a}),onRegExpModeChange:a=>e.update({codeRegExp:a})},null,8,["src","query","is-filter-mode","is-reg-exp-mode","onQueryChange","onFilterModeChange","onRegExpModeChange"])]),_:2},1024)]),_:2},1024)]),_:1})}}});export{B as default}; diff --git a/app/kuma-ui/pkg/resources/data/assets/DataPlaneSummaryView-14967fee.js b/app/kuma-ui/pkg/resources/data/assets/DataPlaneSummaryView-fa41cae2.js similarity index 93% rename from app/kuma-ui/pkg/resources/data/assets/DataPlaneSummaryView-14967fee.js rename to app/kuma-ui/pkg/resources/data/assets/DataPlaneSummaryView-fa41cae2.js index 9eae1cb5b650..96f644dbbcb3 100644 --- a/app/kuma-ui/pkg/resources/data/assets/DataPlaneSummaryView-14967fee.js +++ b/app/kuma-ui/pkg/resources/data/assets/DataPlaneSummaryView-fa41cae2.js @@ -1 +1 @@ -import{d as D,k as S,a as m,o as l,c as p,m as i,e as s,w as e,f as t,t as n,l as a,F as h,D as f,b as y,Y as T,p as k,X as u,_ as P,A as V,v as R,x as z,a1 as B}from"./index-5f4feb06.js";import{_ as C}from"./EmptyBlock.vue_vue_type_script_setup_true_lang-7f79002a.js";import{a as $,K}from"./index-fce48c05.js";import{S as N}from"./StatusBadge-2db39c5c.js";import{T as O}from"./TagList-679e2f0e.js";import{T as x}from"./TextWithCopyButton-1098d691.js";import"./CopyButton-2ffc661c.js";const L={class:"stack"},A={class:"stack-with-borders"},U={class:"status-with-reason"},E={key:0},F={class:"mt-4"},G={class:"stack-with-borders"},W={key:1},X={class:"mt-4"},Y={class:"stack"},Z={class:"mt-2 stack-with-borders"},j=D({__name:"DataPlaneSummary",props:{dataplaneOverview:{}},setup(c){const{t:o,formatIsoDate:w}=S(),r=c;return(b,I)=>{const g=m("KTooltip"),v=m("KBadge");return l(),p("div",L,[i("div",A,[s(u,{layout:"horizontal"},{title:e(()=>[t(n(a(o)("http.api.property.status")),1)]),body:e(()=>[i("div",U,[s(N,{status:r.dataplaneOverview.status},null,8,["status"]),t(),(l(!0),p(h,null,f([r.dataplaneOverview.dataplane.networking.inbounds.filter(d=>!d.health.ready)],d=>(l(),p(h,{key:d},[d.length>0?(l(),y(g,{key:0,class:"reason-tooltip","position-fixed":""},{content:e(()=>[i("ul",null,[(l(!0),p(h,null,f(d,_=>(l(),p("li",{key:`${_.service}:${_.port}`},n(a(o)("data-planes.routes.item.unhealthy_inbound",{service:_.service,port:_.port})),1))),128))])]),default:e(()=>[s(a(T),{color:a($),size:a(K),"hide-title":""},null,8,["color","size"]),t()]),_:2},1024)):k("",!0)],64))),128))])]),_:1}),t(),s(u,{layout:"horizontal"},{title:e(()=>[t(n(a(o)("data-planes.routes.item.last_updated")),1)]),body:e(()=>[t(n(a(w)(r.dataplaneOverview.modificationTime)),1)]),_:1})]),t(),r.dataplaneOverview.dataplane.networking.gateway?(l(),p("div",E,[i("h3",null,n(a(o)("data-planes.routes.item.gateway")),1),t(),i("div",F,[i("div",G,[s(u,{layout:"horizontal"},{title:e(()=>[t(n(a(o)("http.api.property.tags")),1)]),body:e(()=>[s(O,{alignment:"right",tags:r.dataplaneOverview.dataplane.networking.gateway.tags},null,8,["tags"])]),_:1}),t(),s(u,{layout:"horizontal"},{title:e(()=>[t(n(a(o)("http.api.property.address")),1)]),body:e(()=>[s(x,{text:`${r.dataplaneOverview.dataplane.networking.address}`},null,8,["text"])]),_:1})])])])):k("",!0),t(),r.dataplaneOverview.dataplane.networking.inbounds.length>0?(l(),p("div",W,[i("h3",null,n(a(o)("data-planes.routes.item.inbounds")),1),t(),i("div",X,[i("div",Y,[(l(!0),p(h,null,f(r.dataplaneOverview.dataplane.networking.inbounds,(d,_)=>(l(),p("div",{key:_,class:"inbound"},[i("h4",null,[s(x,{text:d.tags["kuma.io/service"]},{default:e(()=>[t(n(a(o)("data-planes.routes.item.inbound_name",{service:d.tags["kuma.io/service"]})),1)]),_:2},1032,["text"])]),t(),i("div",Z,[s(u,{layout:"horizontal"},{title:e(()=>[t(n(a(o)("http.api.property.status")),1)]),body:e(()=>[d.health.ready?(l(),y(v,{key:0,appearance:"success"},{default:e(()=>[t(n(a(o)("data-planes.routes.item.health.ready")),1)]),_:1})):(l(),y(v,{key:1,appearance:"danger"},{default:e(()=>[t(n(a(o)("data-planes.routes.item.health.not_ready")),1)]),_:1}))]),_:2},1024),t(),s(u,{layout:"horizontal"},{title:e(()=>[t(n(a(o)("http.api.property.tags")),1)]),body:e(()=>[s(O,{alignment:"right",tags:d.tags},null,8,["tags"])]),_:2},1024),t(),s(u,{layout:"horizontal"},{title:e(()=>[t(n(a(o)("http.api.property.address")),1)]),body:e(()=>[s(x,{text:d.addressPort},null,8,["text"])]),_:2},1024)])]))),128))])])])):k("",!0)])}}});const q=P(j,[["__scopeId","data-v-53b633ce"]]),H=c=>(R("data-v-21ad478f"),c=c(),z(),c),J={class:"summary-title-wrapper"},M=H(()=>i("img",{"aria-hidden":"true",src:B},null,-1)),Q={class:"summary-title"},tt={key:1,class:"stack"},et=D({__name:"DataPlaneSummaryView",props:{name:{},dataplaneOverview:{default:void 0}},setup(c){const{t:o}=S(),w=V(),r=c;return(b,I)=>{const g=m("RouteTitle"),v=m("RouterLink"),d=m("AppView"),_=m("RouteView");return l(),y(_,{name:a(w).name},{default:e(()=>[s(d,null,{title:e(()=>[i("div",J,[M,t(),i("h2",Q,[s(v,{to:{name:"data-plane-detail-view",params:{dataPlane:r.name}}},{default:e(()=>[s(g,{title:a(o)("data-planes.routes.item.title",{name:r.name})},null,8,["title"])]),_:1},8,["to"])])])]),default:e(()=>[t(),r.dataplaneOverview===void 0?(l(),y(C,{key:0},{message:e(()=>[i("p",null,n(a(o)("common.collection.summary.empty_message",{type:"Data Plane Proxy"})),1)]),default:e(()=>[t(n(a(o)("common.collection.summary.empty_title",{type:"Data Plane Proxy"}))+" ",1)]),_:1})):(l(),p("div",tt,[s(q,{class:"mt-4","dataplane-overview":r.dataplaneOverview},null,8,["dataplane-overview"])]))]),_:1})]),_:1},8,["name"])}}});const dt=P(et,[["__scopeId","data-v-21ad478f"]]);export{dt as default}; +import{d as D,k as S,a as m,o as l,c as p,m as i,e as s,w as e,f as t,t as n,l as a,F as h,D as f,b as y,Y as T,p as k,X as u,_ as P,A as V,v as R,x as z,a1 as B}from"./index-0dcf85b4.js";import{_ as C}from"./EmptyBlock.vue_vue_type_script_setup_true_lang-6ff90078.js";import{a as $,K}from"./index-fce48c05.js";import{S as N}from"./StatusBadge-e7326f60.js";import{T as O}from"./TagList-5868dd55.js";import{T as x}from"./TextWithCopyButton-da18080b.js";import"./CopyButton-dcdce1f2.js";const L={class:"stack"},A={class:"stack-with-borders"},U={class:"status-with-reason"},E={key:0},F={class:"mt-4"},G={class:"stack-with-borders"},W={key:1},X={class:"mt-4"},Y={class:"stack"},Z={class:"mt-2 stack-with-borders"},j=D({__name:"DataPlaneSummary",props:{dataplaneOverview:{}},setup(c){const{t:o,formatIsoDate:w}=S(),r=c;return(b,I)=>{const g=m("KTooltip"),v=m("KBadge");return l(),p("div",L,[i("div",A,[s(u,{layout:"horizontal"},{title:e(()=>[t(n(a(o)("http.api.property.status")),1)]),body:e(()=>[i("div",U,[s(N,{status:r.dataplaneOverview.status},null,8,["status"]),t(),(l(!0),p(h,null,f([r.dataplaneOverview.dataplane.networking.inbounds.filter(d=>!d.health.ready)],d=>(l(),p(h,{key:d},[d.length>0?(l(),y(g,{key:0,class:"reason-tooltip","position-fixed":""},{content:e(()=>[i("ul",null,[(l(!0),p(h,null,f(d,_=>(l(),p("li",{key:`${_.service}:${_.port}`},n(a(o)("data-planes.routes.item.unhealthy_inbound",{service:_.service,port:_.port})),1))),128))])]),default:e(()=>[s(a(T),{color:a($),size:a(K),"hide-title":""},null,8,["color","size"]),t()]),_:2},1024)):k("",!0)],64))),128))])]),_:1}),t(),s(u,{layout:"horizontal"},{title:e(()=>[t(n(a(o)("data-planes.routes.item.last_updated")),1)]),body:e(()=>[t(n(a(w)(r.dataplaneOverview.modificationTime)),1)]),_:1})]),t(),r.dataplaneOverview.dataplane.networking.gateway?(l(),p("div",E,[i("h3",null,n(a(o)("data-planes.routes.item.gateway")),1),t(),i("div",F,[i("div",G,[s(u,{layout:"horizontal"},{title:e(()=>[t(n(a(o)("http.api.property.tags")),1)]),body:e(()=>[s(O,{alignment:"right",tags:r.dataplaneOverview.dataplane.networking.gateway.tags},null,8,["tags"])]),_:1}),t(),s(u,{layout:"horizontal"},{title:e(()=>[t(n(a(o)("http.api.property.address")),1)]),body:e(()=>[s(x,{text:`${r.dataplaneOverview.dataplane.networking.address}`},null,8,["text"])]),_:1})])])])):k("",!0),t(),r.dataplaneOverview.dataplane.networking.inbounds.length>0?(l(),p("div",W,[i("h3",null,n(a(o)("data-planes.routes.item.inbounds")),1),t(),i("div",X,[i("div",Y,[(l(!0),p(h,null,f(r.dataplaneOverview.dataplane.networking.inbounds,(d,_)=>(l(),p("div",{key:_,class:"inbound"},[i("h4",null,[s(x,{text:d.tags["kuma.io/service"]},{default:e(()=>[t(n(a(o)("data-planes.routes.item.inbound_name",{service:d.tags["kuma.io/service"]})),1)]),_:2},1032,["text"])]),t(),i("div",Z,[s(u,{layout:"horizontal"},{title:e(()=>[t(n(a(o)("http.api.property.status")),1)]),body:e(()=>[d.health.ready?(l(),y(v,{key:0,appearance:"success"},{default:e(()=>[t(n(a(o)("data-planes.routes.item.health.ready")),1)]),_:1})):(l(),y(v,{key:1,appearance:"danger"},{default:e(()=>[t(n(a(o)("data-planes.routes.item.health.not_ready")),1)]),_:1}))]),_:2},1024),t(),s(u,{layout:"horizontal"},{title:e(()=>[t(n(a(o)("http.api.property.tags")),1)]),body:e(()=>[s(O,{alignment:"right",tags:d.tags},null,8,["tags"])]),_:2},1024),t(),s(u,{layout:"horizontal"},{title:e(()=>[t(n(a(o)("http.api.property.address")),1)]),body:e(()=>[s(x,{text:d.addressPort},null,8,["text"])]),_:2},1024)])]))),128))])])])):k("",!0)])}}});const q=P(j,[["__scopeId","data-v-53b633ce"]]),H=c=>(R("data-v-21ad478f"),c=c(),z(),c),J={class:"summary-title-wrapper"},M=H(()=>i("img",{"aria-hidden":"true",src:B},null,-1)),Q={class:"summary-title"},tt={key:1,class:"stack"},et=D({__name:"DataPlaneSummaryView",props:{name:{},dataplaneOverview:{default:void 0}},setup(c){const{t:o}=S(),w=V(),r=c;return(b,I)=>{const g=m("RouteTitle"),v=m("RouterLink"),d=m("AppView"),_=m("RouteView");return l(),y(_,{name:a(w).name},{default:e(()=>[s(d,null,{title:e(()=>[i("div",J,[M,t(),i("h2",Q,[s(v,{to:{name:"data-plane-detail-view",params:{dataPlane:r.name}}},{default:e(()=>[s(g,{title:a(o)("data-planes.routes.item.title",{name:r.name})},null,8,["title"])]),_:1},8,["to"])])])]),default:e(()=>[t(),r.dataplaneOverview===void 0?(l(),y(C,{key:0},{message:e(()=>[i("p",null,n(a(o)("common.collection.summary.empty_message",{type:"Data Plane Proxy"})),1)]),default:e(()=>[t(n(a(o)("common.collection.summary.empty_title",{type:"Data Plane Proxy"}))+" ",1)]),_:1})):(l(),p("div",tt,[s(q,{class:"mt-4","dataplane-overview":r.dataplaneOverview},null,8,["dataplane-overview"])]))]),_:1})]),_:1},8,["name"])}}});const dt=P(et,[["__scopeId","data-v-21ad478f"]]);export{dt as default}; diff --git a/app/kuma-ui/pkg/resources/data/assets/DataPlaneXdsConfigView-db31c9f3.js b/app/kuma-ui/pkg/resources/data/assets/DataPlaneXdsConfigView-606e95b4.js similarity index 67% rename from app/kuma-ui/pkg/resources/data/assets/DataPlaneXdsConfigView-db31c9f3.js rename to app/kuma-ui/pkg/resources/data/assets/DataPlaneXdsConfigView-606e95b4.js index 43922c4fe536..c2cec7f0227f 100644 --- a/app/kuma-ui/pkg/resources/data/assets/DataPlaneXdsConfigView-db31c9f3.js +++ b/app/kuma-ui/pkg/resources/data/assets/DataPlaneXdsConfigView-606e95b4.js @@ -1 +1 @@ -import{E as l}from"./EnvoyData-b31c947e.js";import{d as m,a as o,o as c,b as _,w as t,e as n,m as u,f as g}from"./index-5f4feb06.js";import"./index-fce48c05.js";import"./CodeBlock.vue_vue_type_style_index_0_lang-6de3c828.js";import"./uniqueId-90cc9b93.js";import"./EmptyBlock.vue_vue_type_script_setup_true_lang-7f79002a.js";import"./ErrorBlock-558c0398.js";import"./TextWithCopyButton-1098d691.js";import"./CopyButton-2ffc661c.js";import"./WarningIcon.vue_vue_type_script_setup_true_lang-cab7af3a.js";import"./LoadingBlock.vue_vue_type_script_setup_true_lang-e7fd5a8b.js";const D=m({__name:"DataPlaneXdsConfigView",setup(f){return(h,x)=>{const p=o("RouteTitle"),r=o("KCard"),s=o("AppView"),i=o("RouteView");return c(),_(i,{name:"data-plane-xds-config-view",params:{mesh:"",dataPlane:"",codeSearch:"",codeFilter:!1,codeRegExp:!1}},{default:t(({route:e,t:d})=>[n(s,null,{title:t(()=>[u("h2",null,[n(p,{title:d("data-planes.routes.item.navigation.data-plane-xds-config-view")},null,8,["title"])])]),default:t(()=>[g(),n(r,null,{default:t(()=>[n(l,{resource:"Data Plane Proxy",src:`/meshes/${e.params.mesh}/dataplanes/${e.params.dataPlane}/data-path/xds`,query:e.params.codeSearch,"is-filter-mode":e.params.codeFilter,"is-reg-exp-mode":e.params.codeRegExp,onQueryChange:a=>e.update({codeSearch:a}),onFilterModeChange:a=>e.update({codeFilter:a}),onRegExpModeChange:a=>e.update({codeRegExp:a})},null,8,["src","query","is-filter-mode","is-reg-exp-mode","onQueryChange","onFilterModeChange","onRegExpModeChange"])]),_:2},1024)]),_:2},1024)]),_:1})}}});export{D as default}; +import{E as l}from"./EnvoyData-9a9e9257.js";import{d as m,a as o,o as c,b as _,w as t,e as n,m as u,f as g}from"./index-0dcf85b4.js";import"./index-fce48c05.js";import"./CodeBlock.vue_vue_type_style_index_0_lang-95cf08c2.js";import"./uniqueId-90cc9b93.js";import"./EmptyBlock.vue_vue_type_script_setup_true_lang-6ff90078.js";import"./ErrorBlock-70a14ad9.js";import"./TextWithCopyButton-da18080b.js";import"./CopyButton-dcdce1f2.js";import"./WarningIcon.vue_vue_type_script_setup_true_lang-d54f4898.js";import"./LoadingBlock.vue_vue_type_script_setup_true_lang-2e81faa2.js";const D=m({__name:"DataPlaneXdsConfigView",setup(f){return(h,x)=>{const p=o("RouteTitle"),r=o("KCard"),s=o("AppView"),i=o("RouteView");return c(),_(i,{name:"data-plane-xds-config-view",params:{mesh:"",dataPlane:"",codeSearch:"",codeFilter:!1,codeRegExp:!1}},{default:t(({route:e,t:d})=>[n(s,null,{title:t(()=>[u("h2",null,[n(p,{title:d("data-planes.routes.item.navigation.data-plane-xds-config-view")},null,8,["title"])])]),default:t(()=>[g(),n(r,null,{default:t(()=>[n(l,{resource:"Data Plane Proxy",src:`/meshes/${e.params.mesh}/dataplanes/${e.params.dataPlane}/data-path/xds`,query:e.params.codeSearch,"is-filter-mode":e.params.codeFilter,"is-reg-exp-mode":e.params.codeRegExp,onQueryChange:a=>e.update({codeSearch:a}),onFilterModeChange:a=>e.update({codeFilter:a}),onRegExpModeChange:a=>e.update({codeRegExp:a})},null,8,["src","query","is-filter-mode","is-reg-exp-mode","onQueryChange","onFilterModeChange","onRegExpModeChange"])]),_:2},1024)]),_:2},1024)]),_:1})}}});export{D as default}; diff --git a/app/kuma-ui/pkg/resources/data/assets/DeleteResourceModal.vue_vue_type_script_setup_true_lang-99683839.js b/app/kuma-ui/pkg/resources/data/assets/DeleteResourceModal.vue_vue_type_script_setup_true_lang-d3185d11.js similarity index 96% rename from app/kuma-ui/pkg/resources/data/assets/DeleteResourceModal.vue_vue_type_script_setup_true_lang-99683839.js rename to app/kuma-ui/pkg/resources/data/assets/DeleteResourceModal.vue_vue_type_script_setup_true_lang-d3185d11.js index d62d09817ec7..c6ca9b41a5e2 100644 --- a/app/kuma-ui/pkg/resources/data/assets/DeleteResourceModal.vue_vue_type_script_setup_true_lang-99683839.js +++ b/app/kuma-ui/pkg/resources/data/assets/DeleteResourceModal.vue_vue_type_script_setup_true_lang-d3185d11.js @@ -1 +1 @@ -import{d as k,k as B,B as q,o as t,b as f,w as p,r as F,f as l,l as n,aj as S,a2 as T,c as o,F as y,m as u,t as s,D as V,p as v,aA as h}from"./index-5f4feb06.js";const C=["data-testid"],D={key:1},E=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},title:{type:String,required:!1,default:"Delete"}},emits:["cancel","delete"],setup(_,{emit:b}){const{t:c}=B(),a=_,d=b,e=q(null);async function x(){e.value=null;try{await a.deleteFunction(),d("delete")}catch(r){r instanceof Error?e.value=r:console.error(r)}}return(r,m)=>(t(),f(n(h),{"action-button-text":a.actionButtonText,"confirmation-text":a.confirmationText,"is-visible":a.isVisible,title:a.title,type:"danger",onCanceled:m[0]||(m[0]=i=>d("cancel")),onProceed:x},{"body-content":p(()=>[F(r.$slots,"body-content"),l(),e.value!==null?(t(),f(n(S),{key:0,class:"mt-4",appearance:"danger","is-dismissible":""},{alertMessage:p(()=>[e.value instanceof n(T)?(t(),o(y,{key:0},[u("p",null,s(n(c)("common.error_state.api_error",{status:e.value.status,title:e.value.detail})),1),l(),e.value.invalidParameters.length>0?(t(),o("ul",{key:0,"data-testid":`error-${e.value.status}`},[(t(!0),o(y,null,V(e.value.invalidParameters,(i,g)=>(t(),o("li",{key:g},[u("b",null,[u("code",null,s(i.field),1)]),l(": "+s(i.reason),1)]))),128))],8,C)):v("",!0)],64)):(t(),o("p",D,s(n(c)("common.error_state.default_error")),1))]),_:1})):v("",!0)]),_:3},8,["action-button-text","confirmation-text","is-visible","title"]))}});export{E as _}; +import{d as k,k as B,B as q,o as t,b as f,w as p,r as F,f as l,l as n,aj as S,a2 as T,c as o,F as y,m as u,t as s,D as V,p as v,aA as h}from"./index-0dcf85b4.js";const C=["data-testid"],D={key:1},E=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},title:{type:String,required:!1,default:"Delete"}},emits:["cancel","delete"],setup(_,{emit:b}){const{t:c}=B(),a=_,d=b,e=q(null);async function x(){e.value=null;try{await a.deleteFunction(),d("delete")}catch(r){r instanceof Error?e.value=r:console.error(r)}}return(r,m)=>(t(),f(n(h),{"action-button-text":a.actionButtonText,"confirmation-text":a.confirmationText,"is-visible":a.isVisible,title:a.title,type:"danger",onCanceled:m[0]||(m[0]=i=>d("cancel")),onProceed:x},{"body-content":p(()=>[F(r.$slots,"body-content"),l(),e.value!==null?(t(),f(n(S),{key:0,class:"mt-4",appearance:"danger","is-dismissible":""},{alertMessage:p(()=>[e.value instanceof n(T)?(t(),o(y,{key:0},[u("p",null,s(n(c)("common.error_state.api_error",{status:e.value.status,title:e.value.detail})),1),l(),e.value.invalidParameters.length>0?(t(),o("ul",{key:0,"data-testid":`error-${e.value.status}`},[(t(!0),o(y,null,V(e.value.invalidParameters,(i,g)=>(t(),o("li",{key:g},[u("b",null,[u("code",null,s(i.field),1)]),l(": "+s(i.reason),1)]))),128))],8,C)):v("",!0)],64)):(t(),o("p",D,s(n(c)("common.error_state.default_error")),1))]),_:1})):v("",!0)]),_:3},8,["action-button-text","confirmation-text","is-visible","title"]))}});export{E as _}; diff --git a/app/kuma-ui/pkg/resources/data/assets/DiagnosticsDetailView-5ca9a20e.js b/app/kuma-ui/pkg/resources/data/assets/DiagnosticsDetailView-0fd943f4.js similarity index 70% rename from app/kuma-ui/pkg/resources/data/assets/DiagnosticsDetailView-5ca9a20e.js rename to app/kuma-ui/pkg/resources/data/assets/DiagnosticsDetailView-0fd943f4.js index d2c924d22098..504da8da3208 100644 --- a/app/kuma-ui/pkg/resources/data/assets/DiagnosticsDetailView-5ca9a20e.js +++ b/app/kuma-ui/pkg/resources/data/assets/DiagnosticsDetailView-0fd943f4.js @@ -1 +1 @@ -import{_ as g}from"./CodeBlock.vue_vue_type_style_index_0_lang-6de3c828.js";import{E as f}from"./ErrorBlock-558c0398.js";import{_ as h}from"./LoadingBlock.vue_vue_type_script_setup_true_lang-e7fd5a8b.js";import{d as x,a as t,o as i,b as s,w as a,e as n,m as C,f as b}from"./index-5f4feb06.js";import"./uniqueId-90cc9b93.js";import"./index-fce48c05.js";import"./TextWithCopyButton-1098d691.js";import"./CopyButton-2ffc661c.js";import"./WarningIcon.vue_vue_type_script_setup_true_lang-cab7af3a.js";const T=x({__name:"DiagnosticsDetailView",setup(R){return(k,y)=>{const l=t("RouteTitle"),m=t("KCard"),p=t("AppView"),u=t("DataSource"),_=t("RouteView");return i(),s(_,{name:"diagnostics",params:{codeSearch:"",codeFilter:!1,codeRegExp:!1}},{default:a(({route:e,t:c})=>[n(u,{src:"/config"},{default:a(({data:r,error:d})=>[n(p,{breadcrumbs:[{to:{name:"diagnostics"},text:c("diagnostics.routes.item.breadcrumbs")}]},{title:a(()=>[C("h1",null,[n(l,{title:c("diagnostics.routes.item.title")},null,8,["title"])])]),default:a(()=>[b(),n(m,null,{default:a(()=>[d?(i(),s(f,{key:0,error:d},null,8,["error"])):r===void 0?(i(),s(h,{key:1})):(i(),s(g,{key:2,id:"code-block-diagnostics","data-testid":"code-block-diagnostics",language:"json",code:JSON.stringify(r,null,2),"is-searchable":"",query:e.params.codeSearch,"is-filter-mode":e.params.codeFilter,"is-reg-exp-mode":e.params.codeRegExp,onQueryChange:o=>e.update({codeSearch:o}),onFilterModeChange:o=>e.update({codeFilter:o}),onRegExpModeChange:o=>e.update({codeRegExp:o})},null,8,["code","query","is-filter-mode","is-reg-exp-mode","onQueryChange","onFilterModeChange","onRegExpModeChange"]))]),_:2},1024)]),_:2},1032,["breadcrumbs"])]),_:2},1024)]),_:1})}}});export{T as default}; +import{_ as g}from"./CodeBlock.vue_vue_type_style_index_0_lang-95cf08c2.js";import{E as f}from"./ErrorBlock-70a14ad9.js";import{_ as h}from"./LoadingBlock.vue_vue_type_script_setup_true_lang-2e81faa2.js";import{d as x,a as t,o as i,b as s,w as a,e as n,m as C,f as b}from"./index-0dcf85b4.js";import"./uniqueId-90cc9b93.js";import"./index-fce48c05.js";import"./TextWithCopyButton-da18080b.js";import"./CopyButton-dcdce1f2.js";import"./WarningIcon.vue_vue_type_script_setup_true_lang-d54f4898.js";const T=x({__name:"DiagnosticsDetailView",setup(R){return(k,y)=>{const l=t("RouteTitle"),m=t("KCard"),p=t("AppView"),u=t("DataSource"),_=t("RouteView");return i(),s(_,{name:"diagnostics",params:{codeSearch:"",codeFilter:!1,codeRegExp:!1}},{default:a(({route:e,t:c})=>[n(u,{src:"/config"},{default:a(({data:r,error:d})=>[n(p,{breadcrumbs:[{to:{name:"diagnostics"},text:c("diagnostics.routes.item.breadcrumbs")}]},{title:a(()=>[C("h1",null,[n(l,{title:c("diagnostics.routes.item.title")},null,8,["title"])])]),default:a(()=>[b(),n(m,null,{default:a(()=>[d?(i(),s(f,{key:0,error:d},null,8,["error"])):r===void 0?(i(),s(h,{key:1})):(i(),s(g,{key:2,id:"code-block-diagnostics","data-testid":"code-block-diagnostics",language:"json",code:JSON.stringify(r,null,2),"is-searchable":"",query:e.params.codeSearch,"is-filter-mode":e.params.codeFilter,"is-reg-exp-mode":e.params.codeRegExp,onQueryChange:o=>e.update({codeSearch:o}),onFilterModeChange:o=>e.update({codeFilter:o}),onRegExpModeChange:o=>e.update({codeRegExp:o})},null,8,["code","query","is-filter-mode","is-reg-exp-mode","onQueryChange","onFilterModeChange","onRegExpModeChange"]))]),_:2},1024)]),_:2},1032,["breadcrumbs"])]),_:2},1024)]),_:1})}}});export{T as default}; diff --git a/app/kuma-ui/pkg/resources/data/assets/EmptyBlock.vue_vue_type_script_setup_true_lang-7f79002a.js b/app/kuma-ui/pkg/resources/data/assets/EmptyBlock.vue_vue_type_script_setup_true_lang-6ff90078.js similarity index 89% rename from app/kuma-ui/pkg/resources/data/assets/EmptyBlock.vue_vue_type_script_setup_true_lang-7f79002a.js rename to app/kuma-ui/pkg/resources/data/assets/EmptyBlock.vue_vue_type_script_setup_true_lang-6ff90078.js index 9194db6f23b3..87589b161a4a 100644 --- a/app/kuma-ui/pkg/resources/data/assets/EmptyBlock.vue_vue_type_script_setup_true_lang-7f79002a.js +++ b/app/kuma-ui/pkg/resources/data/assets/EmptyBlock.vue_vue_type_script_setup_true_lang-6ff90078.js @@ -1 +1 @@ -import{d as n,k as i,o as l,b as m,W as r,w as s,r as t,l as a,a4 as c,m as p,f as d,t as f}from"./index-5f4feb06.js";const $=n({__name:"EmptyBlock",setup(u){const{t:o}=i();return(e,y)=>(l(),m(a(c),{"data-testid":"empty-state","cta-is-hidden":"",icon:a(o)("common.emptyState.icon"),"icon-size":"96"},r({title:s(()=>[t(e.$slots,"title",{},()=>[p("p",null,[t(e.$slots,"default",{},()=>[d(f(a(o)("common.emptyState.title")),1)])])])]),_:2},[e.$slots.message?{name:"message",fn:s(()=>[t(e.$slots,"message")]),key:"0"}:void 0,e.$slots.cta?{name:"cta",fn:s(()=>[t(e.$slots,"cta")]),key:"1"}:void 0]),1032,["icon"]))}});export{$ as _}; +import{d as n,k as i,o as l,b as m,W as r,w as s,r as t,l as a,a4 as c,m as p,f as d,t as f}from"./index-0dcf85b4.js";const $=n({__name:"EmptyBlock",setup(u){const{t:o}=i();return(e,y)=>(l(),m(a(c),{"data-testid":"empty-state","cta-is-hidden":"",icon:a(o)("common.emptyState.icon"),"icon-size":"96"},r({title:s(()=>[t(e.$slots,"title",{},()=>[p("p",null,[t(e.$slots,"default",{},()=>[d(f(a(o)("common.emptyState.title")),1)])])])]),_:2},[e.$slots.message?{name:"message",fn:s(()=>[t(e.$slots,"message")]),key:"0"}:void 0,e.$slots.cta?{name:"cta",fn:s(()=>[t(e.$slots,"cta")]),key:"1"}:void 0]),1032,["icon"]))}});export{$ as _}; diff --git a/app/kuma-ui/pkg/resources/data/assets/EnvoyData-b31c947e.js b/app/kuma-ui/pkg/resources/data/assets/EnvoyData-9a9e9257.js similarity index 81% rename from app/kuma-ui/pkg/resources/data/assets/EnvoyData-b31c947e.js rename to app/kuma-ui/pkg/resources/data/assets/EnvoyData-9a9e9257.js index 43d5c412c1a8..2a68188c5b33 100644 --- a/app/kuma-ui/pkg/resources/data/assets/EnvoyData-b31c947e.js +++ b/app/kuma-ui/pkg/resources/data/assets/EnvoyData-9a9e9257.js @@ -1,4 +1,4 @@ -import{K as g}from"./index-fce48c05.js";import{d as v,a as x,o as t,c,e as n,w as d,b as i,F as k,m as E,l as m,$ as C,f as _,ao as h,_ as B}from"./index-5f4feb06.js";import{_ as q}from"./CodeBlock.vue_vue_type_style_index_0_lang-6de3c828.js";import{_ as M}from"./EmptyBlock.vue_vue_type_script_setup_true_lang-7f79002a.js";import{E as F}from"./ErrorBlock-558c0398.js";import{_ as N}from"./LoadingBlock.vue_vue_type_script_setup_true_lang-e7fd5a8b.js";const $={class:"envoy-data-actions"},b=v({__name:"EnvoyData",props:{resource:{},src:{},query:{default:""},isFilterMode:{type:Boolean,default:!1},isRegExpMode:{type:Boolean,default:!1}},emits:["query-change","filter-mode-change","reg-exp-mode-change"],setup(p,{emit:f}){const a=p,r=f;return(I,e)=>{const u=x("KButton");return t(),c("div",null,[n(h,{src:a.src},{default:d(({data:o,error:l,refresh:y})=>[l?(t(),i(F,{key:0,error:l},null,8,["error"])):o===void 0?(t(),i(N,{key:1})):o===""?(t(),i(M,{key:2})):(t(),c(k,{key:3},[E("div",$,[n(u,{appearance:"primary","data-testid":"envoy-data-refresh-button",onClick:y},{default:d(()=>[n(m(C),{size:m(g)},null,8,["size"]),_(` +import{K as g}from"./index-fce48c05.js";import{d as v,a as x,o as t,c,e as n,w as d,b as i,F as k,m as E,l as m,$ as C,f as _,ao as h,_ as B}from"./index-0dcf85b4.js";import{_ as q}from"./CodeBlock.vue_vue_type_style_index_0_lang-95cf08c2.js";import{_ as M}from"./EmptyBlock.vue_vue_type_script_setup_true_lang-6ff90078.js";import{E as F}from"./ErrorBlock-70a14ad9.js";import{_ as N}from"./LoadingBlock.vue_vue_type_script_setup_true_lang-2e81faa2.js";const $={class:"envoy-data-actions"},b=v({__name:"EnvoyData",props:{resource:{},src:{},query:{default:""},isFilterMode:{type:Boolean,default:!1},isRegExpMode:{type:Boolean,default:!1}},emits:["query-change","filter-mode-change","reg-exp-mode-change"],setup(p,{emit:f}){const a=p,r=f;return(I,e)=>{const u=x("KButton");return t(),c("div",null,[n(h,{src:a.src},{default:d(({data:o,error:l,refresh:y})=>[l?(t(),i(F,{key:0,error:l},null,8,["error"])):o===void 0?(t(),i(N,{key:1})):o===""?(t(),i(M,{key:2})):(t(),c(k,{key:3},[E("div",$,[n(u,{appearance:"primary","data-testid":"envoy-data-refresh-button",onClick:y},{default:d(()=>[n(m(C),{size:m(g)},null,8,["size"]),_(` Refresh `)]),_:2},1032,["onClick"])]),_(),n(q,{id:"code-block-envoy-data",language:"json",code:typeof o=="string"?o:JSON.stringify(o,null,2),"is-searchable":"",query:a.query,"is-filter-mode":a.isFilterMode,"is-reg-exp-mode":a.isRegExpMode,onQueryChange:e[0]||(e[0]=s=>r("query-change",s)),onFilterModeChange:e[1]||(e[1]=s=>r("filter-mode-change",s)),onRegExpModeChange:e[2]||(e[2]=s=>r("reg-exp-mode-change",s))},null,8,["code","query","is-filter-mode","is-reg-exp-mode"])],64))]),_:1},8,["src"])])}}});const O=B(b,[["__scopeId","data-v-7104992e"]]);export{O as E}; diff --git a/app/kuma-ui/pkg/resources/data/assets/ErrorBlock-558c0398.js b/app/kuma-ui/pkg/resources/data/assets/ErrorBlock-70a14ad9.js similarity index 90% rename from app/kuma-ui/pkg/resources/data/assets/ErrorBlock-558c0398.js rename to app/kuma-ui/pkg/resources/data/assets/ErrorBlock-70a14ad9.js index f0b4aff52da9..c55fd7adfbb6 100644 --- a/app/kuma-ui/pkg/resources/data/assets/ErrorBlock-558c0398.js +++ b/app/kuma-ui/pkg/resources/data/assets/ErrorBlock-70a14ad9.js @@ -1,3 +1,3 @@ -import{b as v}from"./index-fce48c05.js";import{d as b,k as x,H as B,a2 as _,o as a,c as o,e as i,w as l,m as n,l as t,f as r,r as y,a3 as m,t as s,b as g,p as c,F as E,D as w,a4 as C,_ as I}from"./index-5f4feb06.js";import{T as N}from"./TextWithCopyButton-1098d691.js";import{_ as S}from"./WarningIcon.vue_vue_type_script_setup_true_lang-cab7af3a.js";const V={"data-testid":"error-state",class:"error-block"},$={class:"error-block-header"},A={class:"error-block-title"},T={key:0,class:"badge-list"},q={class:"error-block-message"},z={key:1},D={key:2,"data-testid":"error-invalid-parameters"},F=b({__name:"ErrorBlock",props:{error:{type:Error,required:!0},badgeAppearance:{type:String,required:!1,default:"warning"}},setup(e){const{t:p}=x(),d=e,f=B(()=>d.error instanceof _?d.error.invalidParameters:[]);return(u,P)=>(a(),o("div",V,[i(t(C),{"cta-is-hidden":""},{title:l(()=>[n("div",$,[n("div",A,[i(S,{display:"inline-block",size:t(v)},null,8,["size"]),r(),y(u.$slots,"default",{},()=>[n("p",null,s(e.error instanceof t(_)?e.error.detail:t(p)("common.error_state.title")),1)],!0)]),r(),e.error instanceof t(_)?(a(),o("span",T,[i(t(m),{appearance:d.badgeAppearance,"data-testid":"error-status"},{default:l(()=>[r(s(e.error.status),1)]),_:1},8,["appearance"]),r(),e.error.type?(a(),g(t(m),{key:0,appearance:"neutral","data-testid":"error-type","max-width":"auto"},{default:l(()=>[r(` +import{b as v}from"./index-fce48c05.js";import{d as b,k as x,H as B,a2 as _,o as a,c as o,e as i,w as l,m as n,l as t,f as r,r as y,a3 as m,t as s,b as g,p as c,F as E,D as w,a4 as C,_ as I}from"./index-0dcf85b4.js";import{T as N}from"./TextWithCopyButton-da18080b.js";import{_ as S}from"./WarningIcon.vue_vue_type_script_setup_true_lang-d54f4898.js";const V={"data-testid":"error-state",class:"error-block"},$={class:"error-block-header"},A={class:"error-block-title"},T={key:0,class:"badge-list"},q={class:"error-block-message"},z={key:1},D={key:2,"data-testid":"error-invalid-parameters"},F=b({__name:"ErrorBlock",props:{error:{type:Error,required:!0},badgeAppearance:{type:String,required:!1,default:"warning"}},setup(e){const{t:p}=x(),d=e,f=B(()=>d.error instanceof _?d.error.invalidParameters:[]);return(u,P)=>(a(),o("div",V,[i(t(C),{"cta-is-hidden":""},{title:l(()=>[n("div",$,[n("div",A,[i(S,{display:"inline-block",size:t(v)},null,8,["size"]),r(),y(u.$slots,"default",{},()=>[n("p",null,s(e.error instanceof t(_)?e.error.detail:t(p)("common.error_state.title")),1)],!0)]),r(),e.error instanceof t(_)?(a(),o("span",T,[i(t(m),{appearance:d.badgeAppearance,"data-testid":"error-status"},{default:l(()=>[r(s(e.error.status),1)]),_:1},8,["appearance"]),r(),e.error.type?(a(),g(t(m),{key:0,appearance:"neutral","data-testid":"error-type","max-width":"auto"},{default:l(()=>[r(` type: `+s(e.error.type),1)]),_:1})):c("",!0),r(),e.error.instance?(a(),g(t(m),{key:1,appearance:"neutral","data-testid":"error-trace","max-width":"auto"},{default:l(()=>[r(` trace: `),i(N,{text:e.error.instance},null,8,["text"])]),_:1})):c("",!0)])):c("",!0)])]),message:l(()=>[n("div",q,[u.$slots.message?y(u.$slots,"message",{key:0},void 0,!0):(a(),o("p",z,s(e.error.message),1)),r(),f.value.length>0?(a(),o("ul",D,[(a(!0),o(E,null,w(f.value,(k,h)=>(a(),o("li",{key:h},[r(s(t(p)("common.error_state.field"))+" ",1),n("b",null,[n("code",null,s(k.field),1)]),r(": "+s(k.reason),1)]))),128))])):c("",!0)])]),_:3})]))}});const U=I(F,[["__scopeId","data-v-e0829cfe"]]);export{U as E}; diff --git a/app/kuma-ui/pkg/resources/data/assets/FilterBar-a4902129.js b/app/kuma-ui/pkg/resources/data/assets/FilterBar-79da2c55.js similarity index 97% rename from app/kuma-ui/pkg/resources/data/assets/FilterBar-a4902129.js rename to app/kuma-ui/pkg/resources/data/assets/FilterBar-79da2c55.js index d1ce9d9fae77..943b3892616f 100644 --- a/app/kuma-ui/pkg/resources/data/assets/FilterBar-a4902129.js +++ b/app/kuma-ui/pkg/resources/data/assets/FilterBar-79da2c55.js @@ -1,2 +1,2 @@ -var se=Object.defineProperty;var oe=(n,i,t)=>i in n?se(n,i,{enumerable:!0,configurable:!0,writable:!0,value:t}):n[i]=t;var N=(n,i,t)=>(oe(n,typeof i!="symbol"?i+"":i,t),t);import{K as w}from"./index-fce48c05.js";import{d as K,k as ie,a as E,o as d,b as P,W as le,w as m,r as O,e as S,f as u,t as f,l as c,c as g,F as T,D as Q,m as b,p as I,P as re,_ as R,B as C,H as A,a7 as $,ap as ue,aq as ce,ar as de,n as j,as as fe,at as pe,au as me,av as ge,v as ve,x as he}from"./index-5f4feb06.js";import{A as ye}from"./AppCollection-4b66f394.js";import{S as be}from"./StatusBadge-2db39c5c.js";import{T as _e}from"./TextWithCopyButton-1098d691.js";import{_ as ke}from"./WarningIcon.vue_vue_type_script_setup_true_lang-cab7af3a.js";import{u as Se}from"./uniqueId-90cc9b93.js";const xe={key:0},Ce={key:1},Te=K({__name:"DataPlaneList",props:{total:{default:0},pageNumber:{},pageSize:{},items:{},error:{},isSelectedRow:{type:[Function,null],default:null},summaryRouteName:{},isGlobalMode:{type:Boolean}},emits:["change"],setup(n,{emit:i}){const{t,formatIsoDate:x}=ie(),l=n,s=i;return(o,_)=>{const p=E("RouterLink"),h=E("KTruncate"),k=E("KTooltip");return d(),P(ye,{class:"data-plane-collection","empty-state-message":c(t)("common.emptyState.message",{type:"Data Plane Proxies"}),"empty-state-cta-to":c(t)("data-planes.href.docs.data_plane_proxy"),"empty-state-cta-text":c(t)("common.documentation"),headers:[{label:"Name",key:"name"},{label:"Type",key:"type"},{label:"Services",key:"services"},...l.isGlobalMode?[{label:"Zone",key:"zone"}]:[],{label:"Certificate Info",key:"certificate"},{label:"Status",key:"status"},{label:"Warnings",key:"warnings",hideLabel:!0},{label:"Details",key:"details",hideLabel:!0}],"page-number":l.pageNumber,"page-size":l.pageSize,total:l.total,items:l.items,error:l.error,"is-selected-row":l.isSelectedRow,onChange:_[0]||(_[0]=e=>s("change",e))},le({name:m(({row:e})=>[S(p,{class:"name-link",title:e.name,to:{name:l.summaryRouteName,params:{mesh:e.mesh,dataPlane:e.name},query:{page:l.pageNumber,size:l.pageSize}}},{default:m(()=>[u(f(e.name),1)]),_:2},1032,["title","to"])]),type:m(({row:e})=>[u(f(c(t)(`data-planes.type.${e.dataplaneType}`)),1)]),services:m(({row:e})=>[e.services.length>0?(d(),P(h,{key:0,width:"auto"},{default:m(()=>[(d(!0),g(T,null,Q(e.services,(y,z)=>(d(),g("div",{key:z},[S(_e,{text:y},{default:m(()=>[S(p,{to:{name:"service-detail-view",params:{service:y}}},{default:m(()=>[u(f(y),1)]),_:2},1032,["to"])]),_:2},1032,["text"])]))),128))]),_:2},1024)):(d(),g(T,{key:1},[u(f(c(t)("common.collection.none")),1)],64))]),zone:m(({row:e})=>[e.zone?(d(),P(p,{key:0,to:{name:"zone-cp-detail-view",params:{zone:e.zone}}},{default:m(()=>[u(f(e.zone),1)]),_:2},1032,["to"])):(d(),g(T,{key:1},[u(f(c(t)("common.collection.none")),1)],64))]),certificate:m(({row:e})=>{var y;return[(y=e.dataplaneInsight.mTLS)!=null&&y.certificateExpirationTime?(d(),g(T,{key:0},[u(f(c(x)(e.dataplaneInsight.mTLS.certificateExpirationTime)),1)],64)):(d(),g(T,{key:1},[u(f(c(t)("data-planes.components.data-plane-list.certificate.none")),1)],64))]}),status:m(({row:e})=>[S(be,{status:e.status},null,8,["status"])]),warnings:m(({row:e})=>[e.isCertExpired||e.warnings.length>0?(d(),P(k,{key:0},{content:m(()=>[b("ul",null,[e.warnings.length>0?(d(),g("li",xe,f(c(t)("data-planes.components.data-plane-list.version_mismatch")),1)):I("",!0),u(),e.isCertExpired?(d(),g("li",Ce,f(c(t)("data-planes.components.data-plane-list.cert_expired")),1)):I("",!0)])]),default:m(()=>[u(),S(ke,{class:"mr-1",size:c(w),"hide-title":""},null,8,["size"])]),_:2},1024)):(d(),g(T,{key:1},[u(f(c(t)("common.collection.none")),1)],64))]),details:m(({row:e})=>[S(p,{class:"details-link","data-testid":"details-link",to:{name:"data-plane-detail-view",params:{dataPlane:e.name}}},{default:m(()=>[u(f(c(t)("common.collection.details_link"))+" ",1),S(c(re),{display:"inline-block",decorative:"",size:c(w)},null,8,["size"])]),_:2},1032,["to"])]),_:2},[o.$slots.toolbar?{name:"toolbar",fn:m(()=>[O(o.$slots,"toolbar",{},void 0,!0)]),key:"0"}:void 0]),1032,["empty-state-message","empty-state-cta-to","empty-state-cta-text","headers","page-number","page-size","total","items","error","is-selected-row"])}}});const Xe=R(Te,[["__scopeId","data-v-4ee5ee9a"]]);function we(n,i,t){return Math.max(i,Math.min(n,t))}const Ie=["ControlLeft","ControlRight","ShiftLeft","ShiftRight","AltLeft"];class ze{constructor(i,t){N(this,"commands");N(this,"keyMap");N(this,"boundTriggerShortcuts");this.commands=t,this.keyMap=Object.fromEntries(Object.entries(i).map(([x,l])=>[x.toLowerCase(),l])),this.boundTriggerShortcuts=this.triggerShortcuts.bind(this)}registerListener(){document.addEventListener("keydown",this.boundTriggerShortcuts)}unRegisterListener(){document.removeEventListener("keydown",this.boundTriggerShortcuts)}triggerShortcuts(i){Le(i,this.keyMap,this.commands)}}function Le(n,i,t){const x=Fe(n.code),l=[n.ctrlKey?"ctrl":"",n.shiftKey?"shift":"",n.altKey?"alt":"",x].filter(_=>_!=="").join("+"),s=i[l];if(!s)return;const o=t[s];o.isAllowedContext&&!o.isAllowedContext(n)||(o.shouldPreventDefaultAction&&n.preventDefault(),!(o.isDisabled&&o.isDisabled())&&o.trigger(n))}function Fe(n){return Ie.includes(n)?"":n.replace(/^Key/,"").toLowerCase()}function Ne(n,i){const t=" "+n,x=t.matchAll(/ ([-\s\w]+):\s*/g),l=[];for(const s of Array.from(x)){if(s.index===void 0)continue;const o=Pe(s[1]);if(i.length>0&&!i.includes(o))throw new Error(`Unknown field “${o}”. Known fields: ${i.join(", ")}`);const _=s.index+s[0].length,p=t.substring(_);let h;if(/^\s*["']/.test(p)){const e=p.match(/['"](.*?)['"]/);if(e!==null)h=e[1];else throw new Error(`Quote mismatch for field “${o}”.`)}else{const e=p.indexOf(" "),y=e===-1?p.length:e;h=p.substring(0,y)}h!==""&&l.push([o,h])}return l}function Pe(n){return n.trim().replace(/\s+/g,"-").replace(/-[a-z]/g,(i,t)=>t===0?i:i.substring(1).toUpperCase())}const V=n=>(ve("data-v-349996e3"),n=n(),he(),n),Ae=V(()=>b("span",{class:"visually-hidden"},"Focus filter",-1)),Be={class:"k-filter-icon"},Ee=["for"],De=["id","placeholder"],Me={key:0,class:"k-suggestion-box","data-testid":"k-filter-bar-suggestion-box"},qe={class:"k-suggestion-list"},$e={key:0,class:"k-filter-bar-error"},je={key:0},Ke=["title","data-filter-field"],Oe={class:"visually-hidden"},Qe=V(()=>b("span",{class:"visually-hidden"},"Clear query",-1)),Re=K({__name:"FilterBar",props:{id:{type:String,required:!1,default:()=>Se("k-filter-bar")},fields:{type:Object,required:!0},placeholder:{type:String,required:!1,default:null},query:{type:String,required:!1,default:""}},emits:["fields-change"],setup(n,{emit:i}){const t=n,x=i,l=C(null),s=C(null),o=C(t.query),_=C([]),p=C(null),h=C(!1),k=C(-1),e=A(()=>Object.keys(t.fields)),y=A(()=>Object.entries(t.fields).slice(0,5).map(([a,r])=>({fieldName:a,...r}))),z=A(()=>e.value.length>0?`Filter by ${e.value.join(", ")}`:"Filter"),H=A(()=>t.placeholder??z.value);$(()=>_.value,function(a,r){ne(a,r)||(p.value=null,x("fields-change",{fields:a,query:o.value}))}),$(()=>o.value,function(){o.value===""&&(p.value=null),h.value=!0});const U={Enter:"submitQuery",Escape:"closeSuggestionBox",ArrowDown:"jumpToNextSuggestion",ArrowUp:"jumpToPreviousSuggestion"},W={submitQuery:{trigger:D,isAllowedContext(a){return s.value!==null&&a.composedPath().includes(s.value)},shouldPreventDefaultAction:!0},jumpToNextSuggestion:{trigger:Z,isAllowedContext(a){return s.value!==null&&a.composedPath().includes(s.value)},shouldPreventDefaultAction:!0},jumpToPreviousSuggestion:{trigger:Y,isAllowedContext(a){return s.value!==null&&a.composedPath().includes(s.value)},shouldPreventDefaultAction:!0},closeSuggestionBox:{trigger:B,isAllowedContext(a){return l.value!==null&&a.composedPath().includes(l.value)}}};function J(){const a=new ze(U,W);me(function(){a.registerListener()}),ge(function(){a.unRegisterListener()}),L(o.value)}J();function G(a){const r=a.target;L(r.value)}function D(){if(s.value instanceof HTMLInputElement)if(k.value===-1)L(s.value.value),h.value=!1;else{const a=y.value[k.value].fieldName;a&&q(s.value,a)}}function Z(){M(1)}function Y(){M(-1)}function M(a){k.value=we(k.value+a,-1,y.value.length-1)}function X(){s.value instanceof HTMLInputElement&&s.value.focus()}function ee(a){const v=a.currentTarget.getAttribute("data-filter-field");v&&s.value instanceof HTMLInputElement&&q(s.value,v)}function q(a,r){const v=o.value===""||o.value.endsWith(" ")?"":" ";o.value+=v+r+":",a.focus(),k.value=-1}function te(){o.value="",s.value instanceof HTMLInputElement&&(s.value.value="",s.value.focus(),L(""))}function ae(a){a.relatedTarget===null&&B(),l.value instanceof HTMLElement&&a.relatedTarget instanceof Node&&!l.value.contains(a.relatedTarget)&&B()}function B(){h.value=!1}function L(a){p.value=null;try{const r=Ne(a,e.value);r.sort((v,F)=>v[0].localeCompare(F[0])),_.value=r}catch(r){if(r instanceof Error)p.value=r,h.value=!0;else throw r}}function ne(a,r){return JSON.stringify(a)===JSON.stringify(r)}return(a,r)=>(d(),g("div",{ref_key:"filterBar",ref:l,class:"k-filter-bar","data-testid":"k-filter-bar"},[b("button",{class:"k-focus-filter-input-button",title:"Focus filter",type:"button","data-testid":"k-filter-bar-focus-filter-input-button",onClick:X},[Ae,u(),b("span",Be,[S(c(ue),{decorative:"","data-testid":"k-filter-bar-filter-icon","hide-title":"",size:c(w)},null,8,["size"])])]),u(),b("label",{for:`${t.id}-filter-bar-input`,class:"visually-hidden"},[O(a.$slots,"default",{},()=>[u(f(z.value),1)],!0)],8,Ee),u(),ce(b("input",{id:`${t.id}-filter-bar-input`,ref_key:"filterInput",ref:s,"onUpdate:modelValue":r[0]||(r[0]=v=>o.value=v),class:"k-filter-bar-input",type:"text",placeholder:H.value,"data-testid":"k-filter-bar-filter-input",onFocus:r[1]||(r[1]=v=>h.value=!0),onBlur:ae,onChange:G},null,40,De),[[de,o.value]]),u(),h.value?(d(),g("div",Me,[b("div",qe,[p.value!==null?(d(),g("p",$e,f(p.value.message),1)):(d(),g("button",{key:1,class:j(["k-submit-query-button",{"k-submit-query-button-is-selected":k.value===-1}]),title:"Submit query",type:"button","data-testid":"k-filter-bar-submit-query-button",onClick:D},` +var se=Object.defineProperty;var oe=(n,i,t)=>i in n?se(n,i,{enumerable:!0,configurable:!0,writable:!0,value:t}):n[i]=t;var N=(n,i,t)=>(oe(n,typeof i!="symbol"?i+"":i,t),t);import{K as w}from"./index-fce48c05.js";import{d as K,k as ie,a as E,o as d,b as P,W as le,w as m,r as O,e as S,f as u,t as f,l as c,c as g,F as T,D as Q,m as b,p as I,P as re,_ as R,B as C,H as A,a7 as $,ap as ue,aq as ce,ar as de,n as j,as as fe,at as pe,au as me,av as ge,v as ve,x as he}from"./index-0dcf85b4.js";import{A as ye}from"./AppCollection-a7a0983f.js";import{S as be}from"./StatusBadge-e7326f60.js";import{T as _e}from"./TextWithCopyButton-da18080b.js";import{_ as ke}from"./WarningIcon.vue_vue_type_script_setup_true_lang-d54f4898.js";import{u as Se}from"./uniqueId-90cc9b93.js";const xe={key:0},Ce={key:1},Te=K({__name:"DataPlaneList",props:{total:{default:0},pageNumber:{},pageSize:{},items:{},error:{},isSelectedRow:{type:[Function,null],default:null},summaryRouteName:{},isGlobalMode:{type:Boolean}},emits:["change"],setup(n,{emit:i}){const{t,formatIsoDate:x}=ie(),l=n,s=i;return(o,_)=>{const p=E("RouterLink"),h=E("KTruncate"),k=E("KTooltip");return d(),P(ye,{class:"data-plane-collection","empty-state-message":c(t)("common.emptyState.message",{type:"Data Plane Proxies"}),"empty-state-cta-to":c(t)("data-planes.href.docs.data_plane_proxy"),"empty-state-cta-text":c(t)("common.documentation"),headers:[{label:"Name",key:"name"},{label:"Type",key:"type"},{label:"Services",key:"services"},...l.isGlobalMode?[{label:"Zone",key:"zone"}]:[],{label:"Certificate Info",key:"certificate"},{label:"Status",key:"status"},{label:"Warnings",key:"warnings",hideLabel:!0},{label:"Details",key:"details",hideLabel:!0}],"page-number":l.pageNumber,"page-size":l.pageSize,total:l.total,items:l.items,error:l.error,"is-selected-row":l.isSelectedRow,onChange:_[0]||(_[0]=e=>s("change",e))},le({name:m(({row:e})=>[S(p,{class:"name-link",title:e.name,to:{name:l.summaryRouteName,params:{mesh:e.mesh,dataPlane:e.name},query:{page:l.pageNumber,size:l.pageSize}}},{default:m(()=>[u(f(e.name),1)]),_:2},1032,["title","to"])]),type:m(({row:e})=>[u(f(c(t)(`data-planes.type.${e.dataplaneType}`)),1)]),services:m(({row:e})=>[e.services.length>0?(d(),P(h,{key:0,width:"auto"},{default:m(()=>[(d(!0),g(T,null,Q(e.services,(y,z)=>(d(),g("div",{key:z},[S(_e,{text:y},{default:m(()=>[S(p,{to:{name:"service-detail-view",params:{service:y}}},{default:m(()=>[u(f(y),1)]),_:2},1032,["to"])]),_:2},1032,["text"])]))),128))]),_:2},1024)):(d(),g(T,{key:1},[u(f(c(t)("common.collection.none")),1)],64))]),zone:m(({row:e})=>[e.zone?(d(),P(p,{key:0,to:{name:"zone-cp-detail-view",params:{zone:e.zone}}},{default:m(()=>[u(f(e.zone),1)]),_:2},1032,["to"])):(d(),g(T,{key:1},[u(f(c(t)("common.collection.none")),1)],64))]),certificate:m(({row:e})=>{var y;return[(y=e.dataplaneInsight.mTLS)!=null&&y.certificateExpirationTime?(d(),g(T,{key:0},[u(f(c(x)(e.dataplaneInsight.mTLS.certificateExpirationTime)),1)],64)):(d(),g(T,{key:1},[u(f(c(t)("data-planes.components.data-plane-list.certificate.none")),1)],64))]}),status:m(({row:e})=>[S(be,{status:e.status},null,8,["status"])]),warnings:m(({row:e})=>[e.isCertExpired||e.warnings.length>0?(d(),P(k,{key:0},{content:m(()=>[b("ul",null,[e.warnings.length>0?(d(),g("li",xe,f(c(t)("data-planes.components.data-plane-list.version_mismatch")),1)):I("",!0),u(),e.isCertExpired?(d(),g("li",Ce,f(c(t)("data-planes.components.data-plane-list.cert_expired")),1)):I("",!0)])]),default:m(()=>[u(),S(ke,{class:"mr-1",size:c(w),"hide-title":""},null,8,["size"])]),_:2},1024)):(d(),g(T,{key:1},[u(f(c(t)("common.collection.none")),1)],64))]),details:m(({row:e})=>[S(p,{class:"details-link","data-testid":"details-link",to:{name:"data-plane-detail-view",params:{dataPlane:e.name}}},{default:m(()=>[u(f(c(t)("common.collection.details_link"))+" ",1),S(c(re),{display:"inline-block",decorative:"",size:c(w)},null,8,["size"])]),_:2},1032,["to"])]),_:2},[o.$slots.toolbar?{name:"toolbar",fn:m(()=>[O(o.$slots,"toolbar",{},void 0,!0)]),key:"0"}:void 0]),1032,["empty-state-message","empty-state-cta-to","empty-state-cta-text","headers","page-number","page-size","total","items","error","is-selected-row"])}}});const Xe=R(Te,[["__scopeId","data-v-4ee5ee9a"]]);function we(n,i,t){return Math.max(i,Math.min(n,t))}const Ie=["ControlLeft","ControlRight","ShiftLeft","ShiftRight","AltLeft"];class ze{constructor(i,t){N(this,"commands");N(this,"keyMap");N(this,"boundTriggerShortcuts");this.commands=t,this.keyMap=Object.fromEntries(Object.entries(i).map(([x,l])=>[x.toLowerCase(),l])),this.boundTriggerShortcuts=this.triggerShortcuts.bind(this)}registerListener(){document.addEventListener("keydown",this.boundTriggerShortcuts)}unRegisterListener(){document.removeEventListener("keydown",this.boundTriggerShortcuts)}triggerShortcuts(i){Le(i,this.keyMap,this.commands)}}function Le(n,i,t){const x=Fe(n.code),l=[n.ctrlKey?"ctrl":"",n.shiftKey?"shift":"",n.altKey?"alt":"",x].filter(_=>_!=="").join("+"),s=i[l];if(!s)return;const o=t[s];o.isAllowedContext&&!o.isAllowedContext(n)||(o.shouldPreventDefaultAction&&n.preventDefault(),!(o.isDisabled&&o.isDisabled())&&o.trigger(n))}function Fe(n){return Ie.includes(n)?"":n.replace(/^Key/,"").toLowerCase()}function Ne(n,i){const t=" "+n,x=t.matchAll(/ ([-\s\w]+):\s*/g),l=[];for(const s of Array.from(x)){if(s.index===void 0)continue;const o=Pe(s[1]);if(i.length>0&&!i.includes(o))throw new Error(`Unknown field “${o}”. Known fields: ${i.join(", ")}`);const _=s.index+s[0].length,p=t.substring(_);let h;if(/^\s*["']/.test(p)){const e=p.match(/['"](.*?)['"]/);if(e!==null)h=e[1];else throw new Error(`Quote mismatch for field “${o}”.`)}else{const e=p.indexOf(" "),y=e===-1?p.length:e;h=p.substring(0,y)}h!==""&&l.push([o,h])}return l}function Pe(n){return n.trim().replace(/\s+/g,"-").replace(/-[a-z]/g,(i,t)=>t===0?i:i.substring(1).toUpperCase())}const V=n=>(ve("data-v-349996e3"),n=n(),he(),n),Ae=V(()=>b("span",{class:"visually-hidden"},"Focus filter",-1)),Be={class:"k-filter-icon"},Ee=["for"],De=["id","placeholder"],Me={key:0,class:"k-suggestion-box","data-testid":"k-filter-bar-suggestion-box"},qe={class:"k-suggestion-list"},$e={key:0,class:"k-filter-bar-error"},je={key:0},Ke=["title","data-filter-field"],Oe={class:"visually-hidden"},Qe=V(()=>b("span",{class:"visually-hidden"},"Clear query",-1)),Re=K({__name:"FilterBar",props:{id:{type:String,required:!1,default:()=>Se("k-filter-bar")},fields:{type:Object,required:!0},placeholder:{type:String,required:!1,default:null},query:{type:String,required:!1,default:""}},emits:["fields-change"],setup(n,{emit:i}){const t=n,x=i,l=C(null),s=C(null),o=C(t.query),_=C([]),p=C(null),h=C(!1),k=C(-1),e=A(()=>Object.keys(t.fields)),y=A(()=>Object.entries(t.fields).slice(0,5).map(([a,r])=>({fieldName:a,...r}))),z=A(()=>e.value.length>0?`Filter by ${e.value.join(", ")}`:"Filter"),H=A(()=>t.placeholder??z.value);$(()=>_.value,function(a,r){ne(a,r)||(p.value=null,x("fields-change",{fields:a,query:o.value}))}),$(()=>o.value,function(){o.value===""&&(p.value=null),h.value=!0});const U={Enter:"submitQuery",Escape:"closeSuggestionBox",ArrowDown:"jumpToNextSuggestion",ArrowUp:"jumpToPreviousSuggestion"},W={submitQuery:{trigger:D,isAllowedContext(a){return s.value!==null&&a.composedPath().includes(s.value)},shouldPreventDefaultAction:!0},jumpToNextSuggestion:{trigger:Z,isAllowedContext(a){return s.value!==null&&a.composedPath().includes(s.value)},shouldPreventDefaultAction:!0},jumpToPreviousSuggestion:{trigger:Y,isAllowedContext(a){return s.value!==null&&a.composedPath().includes(s.value)},shouldPreventDefaultAction:!0},closeSuggestionBox:{trigger:B,isAllowedContext(a){return l.value!==null&&a.composedPath().includes(l.value)}}};function J(){const a=new ze(U,W);me(function(){a.registerListener()}),ge(function(){a.unRegisterListener()}),L(o.value)}J();function G(a){const r=a.target;L(r.value)}function D(){if(s.value instanceof HTMLInputElement)if(k.value===-1)L(s.value.value),h.value=!1;else{const a=y.value[k.value].fieldName;a&&q(s.value,a)}}function Z(){M(1)}function Y(){M(-1)}function M(a){k.value=we(k.value+a,-1,y.value.length-1)}function X(){s.value instanceof HTMLInputElement&&s.value.focus()}function ee(a){const v=a.currentTarget.getAttribute("data-filter-field");v&&s.value instanceof HTMLInputElement&&q(s.value,v)}function q(a,r){const v=o.value===""||o.value.endsWith(" ")?"":" ";o.value+=v+r+":",a.focus(),k.value=-1}function te(){o.value="",s.value instanceof HTMLInputElement&&(s.value.value="",s.value.focus(),L(""))}function ae(a){a.relatedTarget===null&&B(),l.value instanceof HTMLElement&&a.relatedTarget instanceof Node&&!l.value.contains(a.relatedTarget)&&B()}function B(){h.value=!1}function L(a){p.value=null;try{const r=Ne(a,e.value);r.sort((v,F)=>v[0].localeCompare(F[0])),_.value=r}catch(r){if(r instanceof Error)p.value=r,h.value=!0;else throw r}}function ne(a,r){return JSON.stringify(a)===JSON.stringify(r)}return(a,r)=>(d(),g("div",{ref_key:"filterBar",ref:l,class:"k-filter-bar","data-testid":"k-filter-bar"},[b("button",{class:"k-focus-filter-input-button",title:"Focus filter",type:"button","data-testid":"k-filter-bar-focus-filter-input-button",onClick:X},[Ae,u(),b("span",Be,[S(c(ue),{decorative:"","data-testid":"k-filter-bar-filter-icon","hide-title":"",size:c(w)},null,8,["size"])])]),u(),b("label",{for:`${t.id}-filter-bar-input`,class:"visually-hidden"},[O(a.$slots,"default",{},()=>[u(f(z.value),1)],!0)],8,Ee),u(),ce(b("input",{id:`${t.id}-filter-bar-input`,ref_key:"filterInput",ref:s,"onUpdate:modelValue":r[0]||(r[0]=v=>o.value=v),class:"k-filter-bar-input",type:"text",placeholder:H.value,"data-testid":"k-filter-bar-filter-input",onFocus:r[1]||(r[1]=v=>h.value=!0),onBlur:ae,onChange:G},null,40,De),[[de,o.value]]),u(),h.value?(d(),g("div",Me,[b("div",qe,[p.value!==null?(d(),g("p",$e,f(p.value.message),1)):(d(),g("button",{key:1,class:j(["k-submit-query-button",{"k-submit-query-button-is-selected":k.value===-1}]),title:"Submit query",type:"button","data-testid":"k-filter-bar-submit-query-button",onClick:D},` Submit `+f(o.value),3)),u(),(d(!0),g(T,null,Q(y.value,(v,F)=>(d(),g("div",{key:`${t.id}-${F}`,class:j(["k-suggestion-list-item",{"k-suggestion-list-item-is-selected":k.value===F}])},[b("b",null,f(v.fieldName),1),v.description!==""?(d(),g("span",je,": "+f(v.description),1)):I("",!0),u(),b("button",{class:"k-apply-suggestion-button",title:`Add ${v.fieldName}:`,type:"button","data-filter-field":v.fieldName,"data-testid":"k-filter-bar-apply-suggestion-button",onClick:ee},[b("span",Oe,"Add "+f(v.fieldName)+":",1),u(),S(c(fe),{decorative:"","hide-title":"",size:c(w)},null,8,["size"])],8,Ke)],2))),128))])])):I("",!0),u(),o.value!==""?(d(),g("button",{key:1,class:"k-clear-query-button",title:"Clear query",type:"button","data-testid":"k-filter-bar-clear-query-button",onClick:te},[Qe,u(),S(c(pe),{decorative:"","hide-title":"",size:c(w)},null,8,["size"])])):I("",!0)],512))}});const et=R(Re,[["__scopeId","data-v-349996e3"]]);export{Xe as D,et as F}; diff --git a/app/kuma-ui/pkg/resources/data/assets/KumaNotFoundView-d6b5e8d7.js b/app/kuma-ui/pkg/resources/data/assets/KumaNotFoundView-d56ea082.js similarity index 84% rename from app/kuma-ui/pkg/resources/data/assets/KumaNotFoundView-d6b5e8d7.js rename to app/kuma-ui/pkg/resources/data/assets/KumaNotFoundView-d56ea082.js index 6e298cf0860e..ff237764a8eb 100644 --- a/app/kuma-ui/pkg/resources/data/assets/KumaNotFoundView-d6b5e8d7.js +++ b/app/kuma-ui/pkg/resources/data/assets/KumaNotFoundView-d56ea082.js @@ -1,3 +1,3 @@ -import{_ as i}from"./WarningIcon.vue_vue_type_script_setup_true_lang-cab7af3a.js";import{d as r,a as t,o as u,b as l,w as e,e as o,m as n,f as a}from"./index-5f4feb06.js";import"./index-fce48c05.js";const d={class:"overview"},f=n("p",null,"The page or entity you were looking for does not exist.",-1),B=r({__name:"KumaNotFoundView",setup(w){return(V,h)=>{const s=t("RouteTitle"),_=t("KButton"),c=t("KEmptyState"),m=t("AppView"),p=t("RouteView");return u(),l(p,{name:"kuma-not-found-view"},{default:e(()=>[o(m,null,{default:e(()=>[n("div",d,[o(c,null,{title:e(()=>[o(i,{class:"mb-3"}),a(),n("h1",null,[o(s,{title:"Page Not Found"})])]),message:e(()=>[f]),cta:e(()=>[o(_,{appearance:"primary",to:{name:"home"}},{default:e(()=>[a(` +import{_ as i}from"./WarningIcon.vue_vue_type_script_setup_true_lang-d54f4898.js";import{d as r,a as t,o as u,b as l,w as e,e as o,m as n,f as a}from"./index-0dcf85b4.js";import"./index-fce48c05.js";const d={class:"overview"},f=n("p",null,"The page or entity you were looking for does not exist.",-1),B=r({__name:"KumaNotFoundView",setup(w){return(V,h)=>{const s=t("RouteTitle"),_=t("KButton"),c=t("KEmptyState"),m=t("AppView"),p=t("RouteView");return u(),l(p,{name:"kuma-not-found-view"},{default:e(()=>[o(m,null,{default:e(()=>[n("div",d,[o(c,null,{title:e(()=>[o(i,{class:"mb-3"}),a(),n("h1",null,[o(s,{title:"Page Not Found"})])]),message:e(()=>[f]),cta:e(()=>[o(_,{appearance:"primary",to:{name:"home"}},{default:e(()=>[a(` Go Home `)]),_:1})]),_:1})])]),_:1})]),_:1})}}});export{B as default}; diff --git a/app/kuma-ui/pkg/resources/data/assets/LoadingBlock.vue_vue_type_script_setup_true_lang-e7fd5a8b.js b/app/kuma-ui/pkg/resources/data/assets/LoadingBlock.vue_vue_type_script_setup_true_lang-2e81faa2.js similarity index 86% rename from app/kuma-ui/pkg/resources/data/assets/LoadingBlock.vue_vue_type_script_setup_true_lang-e7fd5a8b.js rename to app/kuma-ui/pkg/resources/data/assets/LoadingBlock.vue_vue_type_script_setup_true_lang-2e81faa2.js index c080c0d5fa40..8f0fe3b9354b 100644 --- a/app/kuma-ui/pkg/resources/data/assets/LoadingBlock.vue_vue_type_script_setup_true_lang-e7fd5a8b.js +++ b/app/kuma-ui/pkg/resources/data/assets/LoadingBlock.vue_vue_type_script_setup_true_lang-2e81faa2.js @@ -1 +1 @@ -import{c as o}from"./index-fce48c05.js";import{d as s,o as t,b as r,w as l,e as n,l as a,a5 as c,f as d,r as i,a4 as _,m as p}from"./index-5f4feb06.js";const m=p("p",null,"Loading data …",-1),g=s({__name:"LoadingBlock",setup(f){return(e,u)=>(t(),r(a(_),{"cta-is-hidden":"","data-testid":"loading-block"},{title:l(()=>[n(a(c),{class:"mb-3",display:"inline-block",color:a(o)},null,8,["color"]),d(),i(e.$slots,"default",{},()=>[m])]),_:3}))}});export{g as _}; +import{c as o}from"./index-fce48c05.js";import{d as s,o as t,b as r,w as l,e as n,l as a,a5 as c,f as d,r as i,a4 as _,m as p}from"./index-0dcf85b4.js";const m=p("p",null,"Loading data …",-1),g=s({__name:"LoadingBlock",setup(f){return(e,u)=>(t(),r(a(_),{"cta-is-hidden":"","data-testid":"loading-block"},{title:l(()=>[n(a(c),{class:"mb-3",display:"inline-block",color:a(o)},null,8,["color"]),d(),i(e.$slots,"default",{},()=>[m])]),_:3}))}});export{g as _}; diff --git a/app/kuma-ui/pkg/resources/data/assets/LoadingBox-5f654149.js b/app/kuma-ui/pkg/resources/data/assets/LoadingBox-3a4b2933.js similarity index 86% rename from app/kuma-ui/pkg/resources/data/assets/LoadingBox-5f654149.js rename to app/kuma-ui/pkg/resources/data/assets/LoadingBox-3a4b2933.js index 78bfd9bcc1aa..02e2a457b330 100644 --- a/app/kuma-ui/pkg/resources/data/assets/LoadingBox-5f654149.js +++ b/app/kuma-ui/pkg/resources/data/assets/LoadingBox-3a4b2933.js @@ -1 +1 @@ -import{_ as d,o as _,c as n,f as t,v as c,x as l,m as o}from"./index-5f4feb06.js";const a={},e=s=>(c("data-v-67594d24"),s=s(),l(),s),i={class:"loading","data-testid":"loading"},u=e(()=>o("div",null,null,-1)),p=e(()=>o("div",null,null,-1)),r=e(()=>o("div",null,null,-1)),v=e(()=>o("div",null,null,-1)),h=e(()=>o("div",null,null,-1));function x(s,f){return _(),n("div",i,[u,t(),p,t(),r,t(),v,t(),h])}const m=d(a,[["render",x],["__scopeId","data-v-67594d24"]]);export{m as L}; +import{_ as d,o as _,c as n,f as t,v as c,x as l,m as o}from"./index-0dcf85b4.js";const a={},e=s=>(c("data-v-67594d24"),s=s(),l(),s),i={class:"loading","data-testid":"loading"},u=e(()=>o("div",null,null,-1)),p=e(()=>o("div",null,null,-1)),r=e(()=>o("div",null,null,-1)),v=e(()=>o("div",null,null,-1)),h=e(()=>o("div",null,null,-1));function x(s,f){return _(),n("div",i,[u,t(),p,t(),r,t(),v,t(),h])}const m=d(a,[["render",x],["__scopeId","data-v-67594d24"]]);export{m as L}; diff --git a/app/kuma-ui/pkg/resources/data/assets/MeshConfigView-b2680d73.js b/app/kuma-ui/pkg/resources/data/assets/MeshConfigView-e050c0d0.js similarity index 66% rename from app/kuma-ui/pkg/resources/data/assets/MeshConfigView-b2680d73.js rename to app/kuma-ui/pkg/resources/data/assets/MeshConfigView-e050c0d0.js index bed7be5a8be2..f95ae1d516b7 100644 --- a/app/kuma-ui/pkg/resources/data/assets/MeshConfigView-b2680d73.js +++ b/app/kuma-ui/pkg/resources/data/assets/MeshConfigView-e050c0d0.js @@ -1 +1 @@ -import{E as V}from"./ErrorBlock-558c0398.js";import{_ as g}from"./LoadingBlock.vue_vue_type_script_setup_true_lang-e7fd5a8b.js";import{_ as k}from"./ResourceCodeBlock.vue_vue_type_style_index_0_lang-8c675a57.js";import{d as v,a as o,o as t,b as r,w as e,e as s,m as x,f as B,p as E}from"./index-5f4feb06.js";import"./index-fce48c05.js";import"./TextWithCopyButton-1098d691.js";import"./CopyButton-2ffc661c.js";import"./WarningIcon.vue_vue_type_script_setup_true_lang-cab7af3a.js";import"./CodeBlock.vue_vue_type_style_index_0_lang-6de3c828.js";import"./uniqueId-90cc9b93.js";import"./toYaml-4e00099e.js";const F=v({__name:"MeshConfigView",setup(N){return(R,$)=>{const l=o("RouteTitle"),a=o("DataSource"),u=o("KCard"),f=o("AppView"),d=o("RouteView");return t(),r(d,{name:"mesh-config-view","data-testid":"mesh-config-view",params:{mesh:""}},{default:e(({route:m,t:h})=>[s(f,null,{title:e(()=>[x("h2",null,[s(l,{title:h("meshes.routes.item.navigation.mesh-config-view")},null,8,["title"])])]),default:e(()=>[B(),s(u,null,{default:e(()=>[s(a,{src:`/meshes/${m.params.mesh}`},{default:e(({data:i,error:c})=>[c!==void 0?(t(),r(V,{key:0,error:c},null,8,["error"])):i===void 0?(t(),r(g,{key:1})):(t(),r(k,{key:2,resource:i.config},{default:e(({copy:p,copying:w})=>[w?(t(),r(a,{key:0,src:`/meshes/${m.params.mesh}/as/kubernetes?no-store`,onChange:n=>{p(_=>_(n))},onError:n=>{p((_,C)=>C(n))}},null,8,["src","onChange","onError"])):E("",!0)]),_:2},1032,["resource"]))]),_:2},1032,["src"])]),_:2},1024)]),_:2},1024)]),_:1})}}});export{F as default}; +import{E as V}from"./ErrorBlock-70a14ad9.js";import{_ as g}from"./LoadingBlock.vue_vue_type_script_setup_true_lang-2e81faa2.js";import{_ as k}from"./ResourceCodeBlock.vue_vue_type_style_index_0_lang-c72a10ad.js";import{d as v,a as o,o as t,b as r,w as e,e as s,m as x,f as B,p as E}from"./index-0dcf85b4.js";import"./index-fce48c05.js";import"./TextWithCopyButton-da18080b.js";import"./CopyButton-dcdce1f2.js";import"./WarningIcon.vue_vue_type_script_setup_true_lang-d54f4898.js";import"./CodeBlock.vue_vue_type_style_index_0_lang-95cf08c2.js";import"./uniqueId-90cc9b93.js";import"./toYaml-4e00099e.js";const F=v({__name:"MeshConfigView",setup(N){return(R,$)=>{const l=o("RouteTitle"),a=o("DataSource"),u=o("KCard"),f=o("AppView"),d=o("RouteView");return t(),r(d,{name:"mesh-config-view","data-testid":"mesh-config-view",params:{mesh:""}},{default:e(({route:m,t:h})=>[s(f,null,{title:e(()=>[x("h2",null,[s(l,{title:h("meshes.routes.item.navigation.mesh-config-view")},null,8,["title"])])]),default:e(()=>[B(),s(u,null,{default:e(()=>[s(a,{src:`/meshes/${m.params.mesh}`},{default:e(({data:i,error:c})=>[c!==void 0?(t(),r(V,{key:0,error:c},null,8,["error"])):i===void 0?(t(),r(g,{key:1})):(t(),r(k,{key:2,resource:i.config},{default:e(({copy:p,copying:w})=>[w?(t(),r(a,{key:0,src:`/meshes/${m.params.mesh}/as/kubernetes?no-store`,onChange:n=>{p(_=>_(n))},onError:n=>{p((_,C)=>C(n))}},null,8,["src","onChange","onError"])):E("",!0)]),_:2},1032,["resource"]))]),_:2},1032,["src"])]),_:2},1024)]),_:2},1024)]),_:1})}}});export{F as default}; diff --git a/app/kuma-ui/pkg/resources/data/assets/MeshDetailTabsView-52380a8b.js b/app/kuma-ui/pkg/resources/data/assets/MeshDetailTabsView-e52b050a.js similarity index 83% rename from app/kuma-ui/pkg/resources/data/assets/MeshDetailTabsView-52380a8b.js rename to app/kuma-ui/pkg/resources/data/assets/MeshDetailTabsView-e52b050a.js index 078176972f03..864740f14c6d 100644 --- a/app/kuma-ui/pkg/resources/data/assets/MeshDetailTabsView-52380a8b.js +++ b/app/kuma-ui/pkg/resources/data/assets/MeshDetailTabsView-e52b050a.js @@ -1 +1 @@ -import{d as h,k as f,S as w,a as n,o as R,b as V,w as m,e as s,m as b,l as p,f as _}from"./index-5f4feb06.js";import{N as x}from"./NavTabs-d4a6578a.js";import{T}from"./TextWithCopyButton-1098d691.js";import"./CopyButton-2ffc661c.js";import"./index-fce48c05.js";const D=h({__name:"MeshDetailTabsView",setup(v){var l;const{t:u}=f(),d=(((l=w().getRoutes().find(e=>e.name==="mesh-detail-tabs-view"))==null?void 0:l.children)??[]).map(e=>{var a,t;const i=typeof e.name>"u"?(a=e.children)==null?void 0:a[0]:e,o=i.name,r=((t=i.meta)==null?void 0:t.module)??"";return{title:u(`meshes.routes.item.navigation.${o}`),routeName:o,module:r}});return(e,i)=>{const o=n("RouteTitle"),r=n("RouterView"),c=n("AppView"),a=n("RouteView");return R(),V(a,{name:"mesh-detail-tabs-view",params:{mesh:""}},{default:m(({route:t})=>[s(c,null,{title:m(()=>[b("h1",null,[s(T,{text:t.params.mesh},{default:m(()=>[s(o,{title:p(u)("meshes.routes.item.title",{name:t.params.mesh})},null,8,["title"])]),_:2},1032,["text"])])]),default:m(()=>[_(),s(x,{class:"route-mesh-view-tabs",tabs:p(d)},null,8,["tabs"]),_(),s(r)]),_:2},1024)]),_:1})}}});export{D as default}; +import{d as h,k as f,S as w,a as n,o as R,b as V,w as m,e as s,m as b,l as p,f as _}from"./index-0dcf85b4.js";import{N as x}from"./NavTabs-e7b14354.js";import{T}from"./TextWithCopyButton-da18080b.js";import"./CopyButton-dcdce1f2.js";import"./index-fce48c05.js";const D=h({__name:"MeshDetailTabsView",setup(v){var l;const{t:u}=f(),d=(((l=w().getRoutes().find(e=>e.name==="mesh-detail-tabs-view"))==null?void 0:l.children)??[]).map(e=>{var a,t;const i=typeof e.name>"u"?(a=e.children)==null?void 0:a[0]:e,o=i.name,r=((t=i.meta)==null?void 0:t.module)??"";return{title:u(`meshes.routes.item.navigation.${o}`),routeName:o,module:r}});return(e,i)=>{const o=n("RouteTitle"),r=n("RouterView"),c=n("AppView"),a=n("RouteView");return R(),V(a,{name:"mesh-detail-tabs-view",params:{mesh:""}},{default:m(({route:t})=>[s(c,null,{title:m(()=>[b("h1",null,[s(T,{text:t.params.mesh},{default:m(()=>[s(o,{title:p(u)("meshes.routes.item.title",{name:t.params.mesh})},null,8,["title"])]),_:2},1032,["text"])])]),default:m(()=>[_(),s(x,{class:"route-mesh-view-tabs",tabs:p(d)},null,8,["tabs"]),_(),s(r)]),_:2},1024)]),_:1})}}});export{D as default}; diff --git a/app/kuma-ui/pkg/resources/data/assets/MeshDetailView-34a15167.js b/app/kuma-ui/pkg/resources/data/assets/MeshDetailView-bd72954f.js similarity index 79% rename from app/kuma-ui/pkg/resources/data/assets/MeshDetailView-34a15167.js rename to app/kuma-ui/pkg/resources/data/assets/MeshDetailView-bd72954f.js index 733c196ee81c..f57bf6c1b913 100644 --- a/app/kuma-ui/pkg/resources/data/assets/MeshDetailView-34a15167.js +++ b/app/kuma-ui/pkg/resources/data/assets/MeshDetailView-bd72954f.js @@ -1 +1 @@ -import{E as R}from"./ErrorBlock-558c0398.js";import{_ as g}from"./LoadingBlock.vue_vue_type_script_setup_true_lang-e7fd5a8b.js";import{d as k,k as S,H as w,o as t,c as V,f as _,t as i,l as r,e,P as b,_ as T,U as B,a as c,b as p,w as n,m as M}from"./index-5f4feb06.js";import"./index-fce48c05.js";import"./TextWithCopyButton-1098d691.js";import"./CopyButton-2ffc661c.js";import"./WarningIcon.vue_vue_type_script_setup_true_lang-cab7af3a.js";const $={class:"date-status"},I=k({__name:"ResourceDateStatus",props:{creationTime:{},modificationTime:{}},setup(u){const{t:a,formatIsoDate:m}=S(),d=u,l=w(()=>m(d.creationTime)),s=w(()=>m(d.modificationTime));return(f,h)=>(t(),V("span",$,[_(i(r(a)("common.detail.created"))+": "+i(l.value)+" ",1),e(r(b)),_(" "+i(r(a)("common.detail.modified"))+": "+i(s.value),1)]))}});const C=T(I,[["__scopeId","data-v-fa366713"]]),N={key:2,class:"stack","data-testid":"detail-view-details"},A={class:"date-status-wrapper"},E=k({__name:"MeshDetailView",setup(u){const a=B();return(m,d)=>{const l=c("RouteTitle"),s=c("DataSource"),f=c("AppView"),h=c("RouteView");return t(),p(h,{name:"mesh-detail-view",params:{mesh:""}},{default:n(({route:v,t:x})=>[e(l,{title:x("meshes.routes.overview.title"),render:!1},null,8,["title"]),_(),e(f,null,{default:n(()=>[e(s,{src:`/meshes/${v.params.mesh}`},{default:n(({data:o,error:D})=>[e(s,{src:`/mesh-insights/${v.params.mesh}`},{default:n(({data:y})=>[D?(t(),p(R,{key:0,error:D},null,8,["error"])):o===void 0?(t(),p(g,{key:1})):(t(),V("div",N,[e(r(a),{mesh:o,"mesh-insight":y},null,8,["mesh","mesh-insight"]),_(),M("div",A,[e(C,{"creation-time":o.creationTime,"modification-time":o.modificationTime},null,8,["creation-time","modification-time"])])]))]),_:2},1032,["src"])]),_:2},1032,["src"])]),_:2},1024)]),_:1})}}});const G=T(E,[["__scopeId","data-v-e3befb82"]]);export{G as default}; +import{E as R}from"./ErrorBlock-70a14ad9.js";import{_ as g}from"./LoadingBlock.vue_vue_type_script_setup_true_lang-2e81faa2.js";import{d as k,k as S,H as w,o as t,c as V,f as _,t as i,l as r,e,P as b,_ as T,U as B,a as c,b as p,w as n,m as M}from"./index-0dcf85b4.js";import"./index-fce48c05.js";import"./TextWithCopyButton-da18080b.js";import"./CopyButton-dcdce1f2.js";import"./WarningIcon.vue_vue_type_script_setup_true_lang-d54f4898.js";const $={class:"date-status"},I=k({__name:"ResourceDateStatus",props:{creationTime:{},modificationTime:{}},setup(u){const{t:a,formatIsoDate:m}=S(),d=u,l=w(()=>m(d.creationTime)),s=w(()=>m(d.modificationTime));return(f,h)=>(t(),V("span",$,[_(i(r(a)("common.detail.created"))+": "+i(l.value)+" ",1),e(r(b)),_(" "+i(r(a)("common.detail.modified"))+": "+i(s.value),1)]))}});const C=T(I,[["__scopeId","data-v-fa366713"]]),N={key:2,class:"stack","data-testid":"detail-view-details"},A={class:"date-status-wrapper"},E=k({__name:"MeshDetailView",setup(u){const a=B();return(m,d)=>{const l=c("RouteTitle"),s=c("DataSource"),f=c("AppView"),h=c("RouteView");return t(),p(h,{name:"mesh-detail-view",params:{mesh:""}},{default:n(({route:v,t:x})=>[e(l,{title:x("meshes.routes.overview.title"),render:!1},null,8,["title"]),_(),e(f,null,{default:n(()=>[e(s,{src:`/meshes/${v.params.mesh}`},{default:n(({data:o,error:D})=>[e(s,{src:`/mesh-insights/${v.params.mesh}`},{default:n(({data:y})=>[D?(t(),p(R,{key:0,error:D},null,8,["error"])):o===void 0?(t(),p(g,{key:1})):(t(),V("div",N,[e(r(a),{mesh:o,"mesh-insight":y},null,8,["mesh","mesh-insight"]),_(),M("div",A,[e(C,{"creation-time":o.creationTime,"modification-time":o.modificationTime},null,8,["creation-time","modification-time"])])]))]),_:2},1032,["src"])]),_:2},1032,["src"])]),_:2},1024)]),_:1})}}});const G=T(E,[["__scopeId","data-v-e3befb82"]]);export{G as default}; diff --git a/app/kuma-ui/pkg/resources/data/assets/MeshListView-ff37e3ae.js b/app/kuma-ui/pkg/resources/data/assets/MeshListView-1e95fe7a.js similarity index 85% rename from app/kuma-ui/pkg/resources/data/assets/MeshListView-ff37e3ae.js rename to app/kuma-ui/pkg/resources/data/assets/MeshListView-1e95fe7a.js index 4101ca4a9423..93c3fb68f3e0 100644 --- a/app/kuma-ui/pkg/resources/data/assets/MeshListView-ff37e3ae.js +++ b/app/kuma-ui/pkg/resources/data/assets/MeshListView-1e95fe7a.js @@ -1 +1 @@ -import{K as z}from"./index-fce48c05.js";import{d as b,a as n,o as i,b as l,w as s,e as o,m as y,f as p,t as r,l as g,P as x,C as R,p as f,_ as S}from"./index-5f4feb06.js";import{A as B}from"./AppCollection-4b66f394.js";import{E as L}from"./ErrorBlock-558c0398.js";import{S as D}from"./SummaryView-46a73d2c.js";import"./EmptyBlock.vue_vue_type_script_setup_true_lang-7f79002a.js";import"./TextWithCopyButton-1098d691.js";import"./CopyButton-2ffc661c.js";import"./WarningIcon.vue_vue_type_script_setup_true_lang-cab7af3a.js";const N={class:"stack"},T=b({__name:"MeshListView",setup(A){return(I,K)=>{const w=n("RouteTitle"),_=n("RouterLink"),k=n("KCard"),v=n("RouterView"),C=n("AppView"),d=n("DataSource"),V=n("RouteView");return i(),l(d,{src:"/me"},{default:s(({data:h})=>[h?(i(),l(V,{key:0,name:"mesh-list-view",params:{page:1,size:h.pageSize,mesh:""}},{default:s(({route:e,t:m})=>[o(d,{src:`/mesh-insights?page=${e.params.page}&size=${e.params.size}`},{default:s(({data:t,error:c})=>[o(C,null,{title:s(()=>[y("h1",null,[o(w,{title:m("meshes.routes.items.title")},null,8,["title"])])]),default:s(()=>[p(),y("div",N,[o(k,null,{default:s(()=>[c!==void 0?(i(),l(L,{key:0,error:c},null,8,["error"])):(i(),l(B,{key:1,class:"mesh-collection","data-testid":"mesh-collection",headers:[{label:m("meshes.common.name"),key:"name"},{label:m("meshes.routes.items.collection.services"),key:"services"},{label:m("meshes.routes.items.collection.dataplanes"),key:"dataplanes"},{label:"Details",key:"details",hideLabel:!0}],"page-number":e.params.page,"page-size":e.params.size,total:t==null?void 0:t.total,items:t==null?void 0:t.items,error:c,"empty-state-message":m("common.emptyState.message",{type:"Meshes"}),"empty-state-cta-to":m("meshes.href.docs"),"empty-state-cta-text":m("common.documentation"),"is-selected-row":a=>a.name===e.params.mesh,onChange:e.update},{name:s(({row:a})=>[o(_,{to:{name:"mesh-detail-view",params:{mesh:a.name},query:{page:e.params.page,size:e.params.size}}},{default:s(()=>[p(r(a.name),1)]),_:2},1032,["to"])]),services:s(({row:a})=>[p(r(a.services.internal),1)]),dataplanes:s(({row:a})=>[p(r(a.dataplanesByType.standard.online)+" / "+r(a.dataplanesByType.standard.total),1)]),details:s(({row:a})=>[o(_,{class:"details-link","data-testid":"details-link",to:{name:"mesh-detail-view",params:{mesh:a.name}}},{default:s(()=>[p(r(m("common.collection.details_link"))+" ",1),o(g(x),{display:"inline-block",decorative:"",size:g(z)},null,8,["size"])]),_:2},1032,["to"])]),_:2},1032,["headers","page-number","page-size","total","items","error","empty-state-message","empty-state-cta-to","empty-state-cta-text","is-selected-row","onChange"]))]),_:2},1024),p(),e.params.mesh?(i(),l(v,{key:0},{default:s(a=>[o(D,{onClose:u=>e.replace({name:"mesh-list-view",params:{mesh:e.params.mesh},query:{page:e.params.page,size:e.params.size}})},{default:s(()=>[(i(),l(R(a.Component),{name:e.params.mesh,"mesh-insight":t==null?void 0:t.items.find(u=>u.name===e.params.mesh)},null,8,["name","mesh-insight"]))]),_:2},1032,["onClose"])]),_:2},1024)):f("",!0)])]),_:2},1024)]),_:2},1032,["src"])]),_:2},1032,["params"])):f("",!0)]),_:1})}}});const F=S(T,[["__scopeId","data-v-a8e593e7"]]);export{F as default}; +import{K as z}from"./index-fce48c05.js";import{d as b,a as n,o as i,b as l,w as s,e as o,m as y,f as p,t as r,l as g,P as x,C as R,p as f,_ as S}from"./index-0dcf85b4.js";import{A as B}from"./AppCollection-a7a0983f.js";import{E as L}from"./ErrorBlock-70a14ad9.js";import{S as D}from"./SummaryView-8d0a7896.js";import"./EmptyBlock.vue_vue_type_script_setup_true_lang-6ff90078.js";import"./TextWithCopyButton-da18080b.js";import"./CopyButton-dcdce1f2.js";import"./WarningIcon.vue_vue_type_script_setup_true_lang-d54f4898.js";const N={class:"stack"},T=b({__name:"MeshListView",setup(A){return(I,K)=>{const w=n("RouteTitle"),_=n("RouterLink"),k=n("KCard"),v=n("RouterView"),C=n("AppView"),d=n("DataSource"),V=n("RouteView");return i(),l(d,{src:"/me"},{default:s(({data:h})=>[h?(i(),l(V,{key:0,name:"mesh-list-view",params:{page:1,size:h.pageSize,mesh:""}},{default:s(({route:e,t:m})=>[o(d,{src:`/mesh-insights?page=${e.params.page}&size=${e.params.size}`},{default:s(({data:t,error:c})=>[o(C,null,{title:s(()=>[y("h1",null,[o(w,{title:m("meshes.routes.items.title")},null,8,["title"])])]),default:s(()=>[p(),y("div",N,[o(k,null,{default:s(()=>[c!==void 0?(i(),l(L,{key:0,error:c},null,8,["error"])):(i(),l(B,{key:1,class:"mesh-collection","data-testid":"mesh-collection",headers:[{label:m("meshes.common.name"),key:"name"},{label:m("meshes.routes.items.collection.services"),key:"services"},{label:m("meshes.routes.items.collection.dataplanes"),key:"dataplanes"},{label:"Details",key:"details",hideLabel:!0}],"page-number":e.params.page,"page-size":e.params.size,total:t==null?void 0:t.total,items:t==null?void 0:t.items,error:c,"empty-state-message":m("common.emptyState.message",{type:"Meshes"}),"empty-state-cta-to":m("meshes.href.docs"),"empty-state-cta-text":m("common.documentation"),"is-selected-row":a=>a.name===e.params.mesh,onChange:e.update},{name:s(({row:a})=>[o(_,{to:{name:"mesh-detail-view",params:{mesh:a.name},query:{page:e.params.page,size:e.params.size}}},{default:s(()=>[p(r(a.name),1)]),_:2},1032,["to"])]),services:s(({row:a})=>[p(r(a.services.internal),1)]),dataplanes:s(({row:a})=>[p(r(a.dataplanesByType.standard.online)+" / "+r(a.dataplanesByType.standard.total),1)]),details:s(({row:a})=>[o(_,{class:"details-link","data-testid":"details-link",to:{name:"mesh-detail-view",params:{mesh:a.name}}},{default:s(()=>[p(r(m("common.collection.details_link"))+" ",1),o(g(x),{display:"inline-block",decorative:"",size:g(z)},null,8,["size"])]),_:2},1032,["to"])]),_:2},1032,["headers","page-number","page-size","total","items","error","empty-state-message","empty-state-cta-to","empty-state-cta-text","is-selected-row","onChange"]))]),_:2},1024),p(),e.params.mesh?(i(),l(v,{key:0},{default:s(a=>[o(D,{onClose:u=>e.replace({name:"mesh-list-view",params:{mesh:e.params.mesh},query:{page:e.params.page,size:e.params.size}})},{default:s(()=>[(i(),l(R(a.Component),{name:e.params.mesh,"mesh-insight":t==null?void 0:t.items.find(u=>u.name===e.params.mesh)},null,8,["name","mesh-insight"]))]),_:2},1032,["onClose"])]),_:2},1024)):f("",!0)])]),_:2},1024)]),_:2},1032,["src"])]),_:2},1032,["params"])):f("",!0)]),_:1})}}});const F=S(T,[["__scopeId","data-v-a8e593e7"]]);export{F as default}; diff --git a/app/kuma-ui/pkg/resources/data/assets/MeshRootView-0a30e636.js b/app/kuma-ui/pkg/resources/data/assets/MeshRootView-7ef59b97.js similarity index 69% rename from app/kuma-ui/pkg/resources/data/assets/MeshRootView-0a30e636.js rename to app/kuma-ui/pkg/resources/data/assets/MeshRootView-7ef59b97.js index 48500d37975f..1190f271a24a 100644 --- a/app/kuma-ui/pkg/resources/data/assets/MeshRootView-0a30e636.js +++ b/app/kuma-ui/pkg/resources/data/assets/MeshRootView-7ef59b97.js @@ -1 +1 @@ -import{_ as a,a as e,o as _,b as i,w as t,e as o}from"./index-5f4feb06.js";const m={};function u(p,w){const s=e("RouterView"),n=e("AppView"),c=e("RouteView");return _(),i(c,{name:"mesh-index-view"},{default:t(({t:r})=>[o(n,{breadcrumbs:[{to:{name:"mesh-list-view"},text:r("meshes.routes.item.breadcrumbs")}]},{default:t(()=>[o(s)]),_:2},1032,["breadcrumbs"])]),_:1})}const f=a(m,[["render",u]]);export{f as default}; +import{_ as a,a as e,o as _,b as i,w as t,e as o}from"./index-0dcf85b4.js";const m={};function u(p,w){const s=e("RouterView"),n=e("AppView"),c=e("RouteView");return _(),i(c,{name:"mesh-index-view"},{default:t(({t:r})=>[o(n,{breadcrumbs:[{to:{name:"mesh-list-view"},text:r("meshes.routes.item.breadcrumbs")}]},{default:t(()=>[o(s)]),_:2},1032,["breadcrumbs"])]),_:1})}const f=a(m,[["render",u]]);export{f as default}; diff --git a/app/kuma-ui/pkg/resources/data/assets/MeshSummaryView-207f123e.js b/app/kuma-ui/pkg/resources/data/assets/MeshSummaryView-55bb59f6.js similarity index 92% rename from app/kuma-ui/pkg/resources/data/assets/MeshSummaryView-207f123e.js rename to app/kuma-ui/pkg/resources/data/assets/MeshSummaryView-55bb59f6.js index 3ff708ae37ef..94de24278b7d 100644 --- a/app/kuma-ui/pkg/resources/data/assets/MeshSummaryView-207f123e.js +++ b/app/kuma-ui/pkg/resources/data/assets/MeshSummaryView-55bb59f6.js @@ -1 +1 @@ -import{d as v,k as f,a as c,o as _,b as r,w as e,e as m,m as s,f as t,l as n,t as l,c as w,R as d,v as g,x as k,Q as I,_ as V}from"./index-5f4feb06.js";import{_ as x}from"./EmptyBlock.vue_vue_type_script_setup_true_lang-7f79002a.js";const R=i=>(g("data-v-5ee23800"),i=i(),k(),i),S={class:"summary-title-wrapper"},B=R(()=>s("img",{"aria-hidden":"true",src:I},null,-1)),M={class:"summary-title"},T={key:1,class:"stack"},C={class:"mt-4 stack"},N=v({__name:"MeshSummaryView",props:{name:{},meshInsight:{default:void 0}},setup(i){const{t:a}=f(),o=i;return(A,L)=>{const p=c("RouteTitle"),u=c("RouterLink"),h=c("AppView"),y=c("RouteView");return _(),r(y,{name:"mesh-summary-view"},{default:e(()=>[m(h,null,{title:e(()=>[s("div",S,[B,t(),s("h2",M,[m(u,{to:{name:"mesh-detail-view",params:{mesh:o.name}}},{default:e(()=>[m(p,{title:n(a)("meshes.routes.item.title",{name:o.name})},null,8,["title"])]),_:1},8,["to"])])])]),default:e(()=>[t(),o.meshInsight===void 0?(_(),r(x,{key:0},{message:e(()=>[s("p",null,l(n(a)("common.collection.summary.empty_message",{type:"Mesh"})),1)]),default:e(()=>[t(l(n(a)("common.collection.summary.empty_title",{type:"Mesh"}))+" ",1)]),_:1})):(_(),w("div",T,[s("div",null,[s("h3",null,l(n(a)("meshes.routes.item.overview")),1),t(),s("div",C,[m(d,{total:o.meshInsight.services.total,"data-testid":"services-status"},{title:e(()=>[t(l(n(a)("meshes.detail.services")),1)]),_:1},8,["total"]),t(),m(d,{online:o.meshInsight.dataplanesByType.standard.online,total:o.meshInsight.dataplanesByType.standard.total,"data-testid":"data-plane-proxies-status"},{title:e(()=>[t(l(n(a)("meshes.detail.data_plane_proxies")),1)]),_:1},8,["online","total"])])])]))]),_:1})]),_:1})}}});const E=V(N,[["__scopeId","data-v-5ee23800"]]);export{E as default}; +import{d as v,k as f,a as c,o as _,b as r,w as e,e as m,m as s,f as t,l as n,t as l,c as w,R as d,v as g,x as k,Q as I,_ as V}from"./index-0dcf85b4.js";import{_ as x}from"./EmptyBlock.vue_vue_type_script_setup_true_lang-6ff90078.js";const R=i=>(g("data-v-5ee23800"),i=i(),k(),i),S={class:"summary-title-wrapper"},B=R(()=>s("img",{"aria-hidden":"true",src:I},null,-1)),M={class:"summary-title"},T={key:1,class:"stack"},C={class:"mt-4 stack"},N=v({__name:"MeshSummaryView",props:{name:{},meshInsight:{default:void 0}},setup(i){const{t:a}=f(),o=i;return(A,L)=>{const p=c("RouteTitle"),u=c("RouterLink"),h=c("AppView"),y=c("RouteView");return _(),r(y,{name:"mesh-summary-view"},{default:e(()=>[m(h,null,{title:e(()=>[s("div",S,[B,t(),s("h2",M,[m(u,{to:{name:"mesh-detail-view",params:{mesh:o.name}}},{default:e(()=>[m(p,{title:n(a)("meshes.routes.item.title",{name:o.name})},null,8,["title"])]),_:1},8,["to"])])])]),default:e(()=>[t(),o.meshInsight===void 0?(_(),r(x,{key:0},{message:e(()=>[s("p",null,l(n(a)("common.collection.summary.empty_message",{type:"Mesh"})),1)]),default:e(()=>[t(l(n(a)("common.collection.summary.empty_title",{type:"Mesh"}))+" ",1)]),_:1})):(_(),w("div",T,[s("div",null,[s("h3",null,l(n(a)("meshes.routes.item.overview")),1),t(),s("div",C,[m(d,{total:o.meshInsight.services.total,"data-testid":"services-status"},{title:e(()=>[t(l(n(a)("meshes.detail.services")),1)]),_:1},8,["total"]),t(),m(d,{online:o.meshInsight.dataplanesByType.standard.online,total:o.meshInsight.dataplanesByType.standard.total,"data-testid":"data-plane-proxies-status"},{title:e(()=>[t(l(n(a)("meshes.detail.data_plane_proxies")),1)]),_:1},8,["online","total"])])])]))]),_:1})]),_:1})}}});const E=V(N,[["__scopeId","data-v-5ee23800"]]);export{E as default}; diff --git a/app/kuma-ui/pkg/resources/data/assets/NavTabs-d4a6578a.js b/app/kuma-ui/pkg/resources/data/assets/NavTabs-e7b14354.js similarity index 86% rename from app/kuma-ui/pkg/resources/data/assets/NavTabs-d4a6578a.js rename to app/kuma-ui/pkg/resources/data/assets/NavTabs-e7b14354.js index 886c66140a9c..83468a659c11 100644 --- a/app/kuma-ui/pkg/resources/data/assets/NavTabs-d4a6578a.js +++ b/app/kuma-ui/pkg/resources/data/assets/NavTabs-e7b14354.js @@ -1 +1 @@ -import{d as l,A as m,H as n,a as i,o as p,b as v,W as N,D as f,w as u,e as b,f as h,t as x,l as y,ah as T,_ as k}from"./index-5f4feb06.js";const g=l({__name:"NavTabs",props:{tabs:{type:Array,required:!0}},setup(_){const o=m(),a=_,c=n(()=>a.tabs.map(t=>({title:t.title,hash:"#"+t.routeName}))),d=n(()=>{const t=o.matched.map(e=>e.meta.module??"").filter(e=>e!=="");t.reverse();const s=a.tabs.find(e=>!!(e.routeName===o.name||t.includes(e.module)));return"#"+((s==null?void 0:s.routeName)??a.tabs[0].routeName)});return(t,s)=>{const r=i("RouterLink");return p(),v(y(T),{tabs:c.value,"model-value":d.value,"has-panels":!1,class:"nav-tabs","data-testid":"nav-tabs"},N({_:2},[f(a.tabs,e=>({name:`${e.routeName}-anchor`,fn:u(()=>[b(r,{"data-testid":`${e.routeName}-tab`,to:{name:e.routeName}},{default:u(()=>[h(x(e.title),1)]),_:2},1032,["data-testid","to"])])}))]),1032,["tabs","model-value"])}}});const L=k(g,[["__scopeId","data-v-d59352a2"]]);export{L as N}; +import{d as l,A as m,H as n,a as i,o as p,b as v,W as N,D as f,w as u,e as b,f as h,t as x,l as y,ah as T,_ as k}from"./index-0dcf85b4.js";const g=l({__name:"NavTabs",props:{tabs:{type:Array,required:!0}},setup(_){const o=m(),a=_,c=n(()=>a.tabs.map(t=>({title:t.title,hash:"#"+t.routeName}))),d=n(()=>{const t=o.matched.map(e=>e.meta.module??"").filter(e=>e!=="");t.reverse();const s=a.tabs.find(e=>!!(e.routeName===o.name||t.includes(e.module)));return"#"+((s==null?void 0:s.routeName)??a.tabs[0].routeName)});return(t,s)=>{const r=i("RouterLink");return p(),v(y(T),{tabs:c.value,"model-value":d.value,"has-panels":!1,class:"nav-tabs","data-testid":"nav-tabs"},N({_:2},[f(a.tabs,e=>({name:`${e.routeName}-anchor`,fn:u(()=>[b(r,{"data-testid":`${e.routeName}-tab`,to:{name:e.routeName}},{default:u(()=>[h(x(e.title),1)]),_:2},1032,["data-testid","to"])])}))]),1032,["tabs","model-value"])}}});const L=k(g,[["__scopeId","data-v-d59352a2"]]);export{L as N}; diff --git a/app/kuma-ui/pkg/resources/data/assets/OnboardingAddNewServicesCodeView-d343172b.js b/app/kuma-ui/pkg/resources/data/assets/OnboardingAddNewServicesCodeView-0e207ac7.js similarity index 88% rename from app/kuma-ui/pkg/resources/data/assets/OnboardingAddNewServicesCodeView-d343172b.js rename to app/kuma-ui/pkg/resources/data/assets/OnboardingAddNewServicesCodeView-0e207ac7.js index ed1b45639163..09732ef75978 100644 --- a/app/kuma-ui/pkg/resources/data/assets/OnboardingAddNewServicesCodeView-d343172b.js +++ b/app/kuma-ui/pkg/resources/data/assets/OnboardingAddNewServicesCodeView-0e207ac7.js @@ -1,4 +1,4 @@ -import{L as y}from"./LoadingBox-5f654149.js";import{O as A,a as V,b as N}from"./OnboardingPage-c82bd551.js";import{_ as m}from"./CodeBlock.vue_vue_type_style_index_0_lang-6de3c828.js";import{d as T,L as C,B as _,M as O,a as r,o,b as R,w as a,e as t,f as e,c,F as L,m as n,p as P,v as D,x as I,_ as B}from"./index-5f4feb06.js";import"./uniqueId-90cc9b93.js";const b=d=>(D("data-v-ad84ed8e"),d=d(),I(),d),E=b(()=>n("p",{class:"mb-4 text-center"},` +import{L as y}from"./LoadingBox-3a4b2933.js";import{O as A,a as V,b as N}from"./OnboardingPage-b2243b4b.js";import{_ as m}from"./CodeBlock.vue_vue_type_style_index_0_lang-95cf08c2.js";import{d as T,L as C,B as _,M as O,a as r,o,b as R,w as a,e as t,f as e,c,F as L,m as n,p as P,v as D,x as I,_ as B}from"./index-0dcf85b4.js";import"./uniqueId-90cc9b93.js";const b=d=>(D("data-v-ad84ed8e"),d=d(),I(),d),E=b(()=>n("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)),S=b(()=>n("p",null,"To run execute the following command:",-1)),G={key:1},M={class:"status-box mt-4"},q={key:0,class:"status--is-connected","data-testid":"dpps-connected"},F={key:1,class:"status--is-disconnected","data-testid":"dpps-disconnected"},H={key:0,class:"status-loading-box mt-4"},K=1e3,h="https://github.com/kumahq/kuma-counter-demo/",U="https://github.com/kumahq/kuma-counter-demo/blob/master/README.md",$="kubectl apply -f https://bit.ly/3Kh2Try",j=T({__name:"OnboardingAddNewServicesCodeView",setup(d){const g=C(),s=_(!1),l=_(null);u(),O(function(){p()});async function u(){try{const{total:i}=await g.getAllDataplanes();s.value=i>0}catch(i){console.error(i)}finally{s.value||(p(),l.value=window.setTimeout(()=>u(),K))}}function p(){l.value!==null&&window.clearTimeout(l.value)}return(i,z)=>{const v=r("RouteTitle"),w=r("AppView"),f=r("RouteView");return o(),R(f,{name:"onboarding-add-new-services"},{default:a(({can:k,t:x})=>[t(v,{title:x("onboarding.routes.add-services-code.title"),render:!1},null,8,["title"]),e(),t(w,null,{default:a(()=>[t(A,null,{header:a(()=>[t(V,null,{title:a(()=>[e(` Add services diff --git a/app/kuma-ui/pkg/resources/data/assets/OnboardingAddNewServicesView-f0ddf096.js b/app/kuma-ui/pkg/resources/data/assets/OnboardingAddNewServicesView-8261e3da.js similarity index 94% rename from app/kuma-ui/pkg/resources/data/assets/OnboardingAddNewServicesView-f0ddf096.js rename to app/kuma-ui/pkg/resources/data/assets/OnboardingAddNewServicesView-8261e3da.js index b589860c5657..63cb74c0405c 100644 --- a/app/kuma-ui/pkg/resources/data/assets/OnboardingAddNewServicesView-f0ddf096.js +++ b/app/kuma-ui/pkg/resources/data/assets/OnboardingAddNewServicesView-8261e3da.js @@ -1,4 +1,4 @@ -import{O as y,a as h,b as S}from"./OnboardingPage-c82bd551.js";import{d as m,o as v,c as V,r as k,n as B,_ as u,a as r,b as C,w as t,e as s,f as a,m as e,v as A,x as N}from"./index-5f4feb06.js";const O=""+new URL("new-service-demo-bff0792e.svg",import.meta.url).href,R=""+new URL("new-service-manually-5bec5301.svg",import.meta.url).href,I=m({__name:"ServiceBox",props:{active:{type:Boolean,required:!1,default:!1}},emits:["clicked"],setup(o,{emit:c}){const i=o,d=c;return(l,n)=>(v(),V("div",{class:B(["box",{"box--active":i.active}]),"data-testid":"box",onClick:n[0]||(n[0]=p=>d("clicked"))},[k(l.$slots,"default",{},void 0,!0)],2))}});const _=u(I,[["__scopeId","data-v-506b07cb"]]),b=o=>(A("data-v-6d468986"),o=o(),N(),o),$={class:"service-mode-list"},T=b(()=>e("div",{class:"service-box-content"},[e("img",{src:O}),a(),e("p",{class:"service-mode-title"},` +import{O as y,a as h,b as S}from"./OnboardingPage-b2243b4b.js";import{d as m,o as v,c as V,r as k,n as B,_ as u,a as r,b as C,w as t,e as s,f as a,m as e,v as A,x as N}from"./index-0dcf85b4.js";const O=""+new URL("new-service-demo-bff0792e.svg",import.meta.url).href,R=""+new URL("new-service-manually-5bec5301.svg",import.meta.url).href,I=m({__name:"ServiceBox",props:{active:{type:Boolean,required:!1,default:!1}},emits:["clicked"],setup(o,{emit:c}){const i=o,d=c;return(l,n)=>(v(),V("div",{class:B(["box",{"box--active":i.active}]),"data-testid":"box",onClick:n[0]||(n[0]=p=>d("clicked"))},[k(l.$slots,"default",{},void 0,!0)],2))}});const _=u(I,[["__scopeId","data-v-506b07cb"]]),b=o=>(A("data-v-6d468986"),o=o(),N(),o),$={class:"service-mode-list"},T=b(()=>e("div",{class:"service-box-content"},[e("img",{src:O}),a(),e("p",{class:"service-mode-title"},` Demo app `),a(),e("p",null,"Counter application")],-1)),z=b(()=>e("div",{class:"service-box-content"},[e("img",{src:R}),a(),e("p",{class:"service-mode-title"},` Manually diff --git a/app/kuma-ui/pkg/resources/data/assets/OnboardingCompletedView-1c942bdc.js b/app/kuma-ui/pkg/resources/data/assets/OnboardingCompletedView-9da974db.js similarity index 86% rename from app/kuma-ui/pkg/resources/data/assets/OnboardingCompletedView-1c942bdc.js rename to app/kuma-ui/pkg/resources/data/assets/OnboardingCompletedView-9da974db.js index 3e464c26bdd2..55f9fae1ece4 100644 --- a/app/kuma-ui/pkg/resources/data/assets/OnboardingCompletedView-1c942bdc.js +++ b/app/kuma-ui/pkg/resources/data/assets/OnboardingCompletedView-9da974db.js @@ -1,3 +1,3 @@ -import{O as r,a as c,b as l}from"./OnboardingPage-c82bd551.js";import{d as m,a as n,o as u,b as f,w as e,e as t,f as a,v as g,x as b,m as s,_ as w}from"./index-5f4feb06.js";const h=""+new URL("kuma_gui-ecebdf10.png",import.meta.url).href,v=o=>(g("data-v-b9ff6689"),o=o(),b(),o),V=v(()=>s("div",{class:"gui-preview-image"},[s("img",{src:h})],-1)),x=m({__name:"OnboardingCompletedView",setup(o){return(C,O)=>{const i=n("RouteTitle"),p=n("AppView"),_=n("RouteView");return u(),f(_,{name:"onboarding-completed-view"},{default:e(({t:d})=>[t(i,{title:d("onboarding.routes.completed.title"),render:!1},null,8,["title"]),a(),t(p,null,{default:e(()=>[t(r,null,{header:e(()=>[t(c,null,{title:e(()=>[a(` +import{O as r,a as c,b as l}from"./OnboardingPage-b2243b4b.js";import{d as m,a as n,o as u,b as f,w as e,e as t,f as a,v as g,x as b,m as s,_ as w}from"./index-0dcf85b4.js";const h=""+new URL("kuma_gui-ecebdf10.png",import.meta.url).href,v=o=>(g("data-v-b9ff6689"),o=o(),b(),o),V=v(()=>s("div",{class:"gui-preview-image"},[s("img",{src:h})],-1)),x=m({__name:"OnboardingCompletedView",setup(o){return(C,O)=>{const i=n("RouteTitle"),p=n("AppView"),_=n("RouteView");return u(),f(_,{name:"onboarding-completed-view"},{default:e(({t:d})=>[t(i,{title:d("onboarding.routes.completed.title"),render:!1},null,8,["title"]),a(),t(p,null,{default:e(()=>[t(r,null,{header:e(()=>[t(c,null,{title:e(()=>[a(` Go to the dashboard `)]),_:1})]),content:e(()=>[V]),navigation:e(()=>[t(l,{"next-step":"home","next-step-title":"Complete","last-step":"","show-skip":!1})]),_:1})]),_:1})]),_:1})}}});const I=w(x,[["__scopeId","data-v-b9ff6689"]]);export{I as default}; diff --git a/app/kuma-ui/pkg/resources/data/assets/OnboardingConfigurationTypesView-480875d7.js b/app/kuma-ui/pkg/resources/data/assets/OnboardingConfigurationTypesView-6535437b.js similarity index 89% rename from app/kuma-ui/pkg/resources/data/assets/OnboardingConfigurationTypesView-480875d7.js rename to app/kuma-ui/pkg/resources/data/assets/OnboardingConfigurationTypesView-6535437b.js index fa37e7b083ce..a1cf1a299c4e 100644 --- a/app/kuma-ui/pkg/resources/data/assets/OnboardingConfigurationTypesView-480875d7.js +++ b/app/kuma-ui/pkg/resources/data/assets/OnboardingConfigurationTypesView-6535437b.js @@ -1,4 +1,4 @@ -import{O as w,a as h,b as C}from"./OnboardingPage-c82bd551.js";import{d as x,u as G,I as O,J as T,K,B as R,H as P,a as r,o as i,b as u,w as e,e as o,f as n,m as d,C as M,_ as k}from"./index-5f4feb06.js";const B={class:"graph-list mb-6"},N={class:"radio-button-group"},U=x({__name:"OnboardingConfigurationTypesView",setup(A){const p=G(),m=O(),_=T(),c={postgres:K(),memory:_,kubernetes:m},t=R(p("KUMA_STORE_TYPE")),g=P(()=>c[t.value]);return(z,a)=>{const v=r("RouteTitle"),l=r("KRadio"),b=r("AppView"),f=r("RouteView");return i(),u(f,{name:"onboarding-configuration-types-view"},{default:e(({can:V,t:y})=>[o(v,{title:y("onboarding.routes.configuration-types.title"),render:!1},null,8,["title"]),n(),o(b,null,{default:e(()=>[o(w,{"with-image":""},{header:e(()=>[o(h,null,{title:e(()=>[n(` +import{O as w,a as h,b as C}from"./OnboardingPage-b2243b4b.js";import{d as x,u as G,I as O,J as T,K,B as R,H as P,a as r,o as i,b as u,w as e,e as o,f as n,m as d,C as M,_ as k}from"./index-0dcf85b4.js";const B={class:"graph-list mb-6"},N={class:"radio-button-group"},U=x({__name:"OnboardingConfigurationTypesView",setup(A){const p=G(),m=O(),_=T(),c={postgres:K(),memory:_,kubernetes:m},t=R(p("KUMA_STORE_TYPE")),g=P(()=>c[t.value]);return(z,a)=>{const v=r("RouteTitle"),l=r("KRadio"),b=r("AppView"),f=r("RouteView");return i(),u(f,{name:"onboarding-configuration-types-view"},{default:e(({can:V,t:y})=>[o(v,{title:y("onboarding.routes.configuration-types.title"),render:!1},null,8,["title"]),n(),o(b,null,{default:e(()=>[o(w,{"with-image":""},{header:e(()=>[o(h,null,{title:e(()=>[n(` Learn about configuration storage `)]),_:1})]),content:e(()=>[d("div",B,[(i(),u(M(g.value)))]),n(),d("div",N,[o(l,{modelValue:t.value,"onUpdate:modelValue":a[0]||(a[0]=s=>t.value=s),name:"deployment","selected-value":"kubernetes"},{default:e(()=>[n(` Kubernetes diff --git a/app/kuma-ui/pkg/resources/data/assets/OnboardingCreateMeshView-b202539f.js b/app/kuma-ui/pkg/resources/data/assets/OnboardingCreateMeshView-f19547a4.js similarity index 92% rename from app/kuma-ui/pkg/resources/data/assets/OnboardingCreateMeshView-b202539f.js rename to app/kuma-ui/pkg/resources/data/assets/OnboardingCreateMeshView-f19547a4.js index 3fbcd351f1c9..dbf91f15e6f6 100644 --- a/app/kuma-ui/pkg/resources/data/assets/OnboardingCreateMeshView-b202539f.js +++ b/app/kuma-ui/pkg/resources/data/assets/OnboardingCreateMeshView-f19547a4.js @@ -1,4 +1,4 @@ -import{O as b,a as h,b as v}from"./OnboardingPage-c82bd551.js";import{d as g,B as f,a as o,o as w,b as y,w as e,e as t,f as a,m as s,t as x,v as V,x as A,_ as C}from"./index-5f4feb06.js";const r=n=>(V("data-v-707bb706"),n=n(),A(),n),O={class:"mb-4 text-center"},T=r(()=>s("i",null,"default",-1)),N=r(()=>s("p",{class:"mt-4 text-center"},` +import{O as b,a as h,b as v}from"./OnboardingPage-b2243b4b.js";import{d as g,B as f,a as o,o as w,b as y,w as e,e as t,f as a,m as s,t as x,v as V,x as A,_ as C}from"./index-0dcf85b4.js";const r=n=>(V("data-v-707bb706"),n=n(),A(),n),O={class:"mb-4 text-center"},T=r(()=>s("i",null,"default",-1)),N=r(()=>s("p",{class:"mt-4 text-center"},` This mesh is empty. Next, you add services and their data plane proxies. `,-1)),S=g({__name:"OnboardingCreateMeshView",setup(n){const c=[{label:"Name",key:"name"},{label:"Services",key:"servicesAmount"},{label:"DPPs",key:"dppsAmount"}],l=f({total:1,data:[{name:"default",servicesAmount:0,dppsAmount:0}]});return(k,B)=>{const d=o("RouteTitle"),p=o("KTable"),_=o("AppView"),u=o("RouteView");return w(),y(u,{name:"onboarding-create-mesh-view"},{default:e(({can:m,t:i})=>[t(d,{title:i("onboarding.routes.create-mesh.title"),render:!1},null,8,["title"]),a(),t(_,null,{default:e(()=>[t(b,null,{header:e(()=>[t(h,null,{title:e(()=>[a(` Create the mesh diff --git a/app/kuma-ui/pkg/resources/data/assets/OnboardingDataplanesView-2536d5bc.js b/app/kuma-ui/pkg/resources/data/assets/OnboardingDataplanesView-1881feca.js similarity index 77% rename from app/kuma-ui/pkg/resources/data/assets/OnboardingDataplanesView-2536d5bc.js rename to app/kuma-ui/pkg/resources/data/assets/OnboardingDataplanesView-1881feca.js index 1d185b813299..fd3c4be80f86 100644 --- a/app/kuma-ui/pkg/resources/data/assets/OnboardingDataplanesView-2536d5bc.js +++ b/app/kuma-ui/pkg/resources/data/assets/OnboardingDataplanesView-1881feca.js @@ -1 +1 @@ -import{L as x}from"./LoadingBox-5f654149.js";import{O as D,a as V,b as B}from"./OnboardingPage-c82bd551.js";import{E as O}from"./ErrorBlock-558c0398.js";import{_ as S}from"./LoadingBlock.vue_vue_type_script_setup_true_lang-e7fd5a8b.js";import{S as N}from"./StatusBadge-2db39c5c.js";import{d as T,B as g,H as A,a as l,o,b as r,w as t,e as n,f as d,c,F as C,D as R,t as u,m as p,_ as $}from"./index-5f4feb06.js";import"./index-fce48c05.js";import"./TextWithCopyButton-1098d691.js";import"./CopyButton-2ffc661c.js";import"./WarningIcon.vue_vue_type_script_setup_true_lang-cab7af3a.js";const E={key:0,class:"status-loading-box mb-4"},F={key:1},K={class:"mb-4"},L=T({__name:"OnboardingDataplanesView",setup(P){const e=g(),_=g(0),m=A(()=>Array.isArray(e.value)?e.value.some(s=>s.status==="offline"):!0);function f(s){s&&(e.value=s.items,_.value++)}return(s,H)=>{const b=l("RouteTitle"),h=l("KTable"),w=l("DataSource"),y=l("AppView"),k=l("RouteView");return o(),r(k,{name:"onboarding-dataplanes-view"},{default:t(({t:i})=>[n(b,{title:i("onboarding.routes.dataplanes-overview.title"),render:!1},null,8,["title"]),d(),n(y,null,{default:t(()=>[n(w,{src:m.value?"/dataplanes/poll?page=1&size=10":"",onChange:f},{default:t(({error:v})=>[v!==void 0?(o(),r(O,{key:0,error:v},null,8,["error"])):e.value===void 0?(o(),r(S,{key:1})):(o(),r(D,{key:2},{header:t(()=>[(o(!0),c(C,null,R([m.value?"waiting":"success"],a=>(o(),r(V,{key:a,"data-testid":`state-${a}`},{title:t(()=>[d(u(i(`onboarding.routes.dataplanes-overview.header.${a}.title`)),1)]),description:t(()=>[p("p",null,u(i(`onboarding.routes.dataplanes-overview.header.${a}.description`)),1)]),_:2},1032,["data-testid"]))),128))]),content:t(()=>[e.value.length===0?(o(),c("div",E,[n(x)])):(o(),c("div",F,[p("p",K,[p("b",null,"Found "+u(e.value.length)+" DPPs:",1)]),d(),n(h,{class:"mb-4","data-testid":"dataplanes-table","fetcher-cache-key":String(_.value),fetcher:()=>{var a;return{data:e.value,total:(a=e.value)==null?void 0:a.length}},headers:[{label:"Mesh",key:"mesh"},{label:"Name",key:"name"},{label:"Status",key:"status"}],"disable-pagination":""},{status:t(({row:a})=>[n(N,{status:a.status},null,8,["status"])]),_:1},8,["fetcher-cache-key","fetcher"])]))]),navigation:t(()=>[n(B,{"next-step":"onboarding-completed-view","previous-step":"onboarding-add-new-services-code-view","should-allow-next":e.value.length>0},null,8,["should-allow-next"])]),_:2},1024))]),_:2},1032,["src"])]),_:2},1024)]),_:1})}}});const X=$(L,[["__scopeId","data-v-f140547b"]]);export{X as default}; +import{L as x}from"./LoadingBox-3a4b2933.js";import{O as D,a as V,b as B}from"./OnboardingPage-b2243b4b.js";import{E as O}from"./ErrorBlock-70a14ad9.js";import{_ as S}from"./LoadingBlock.vue_vue_type_script_setup_true_lang-2e81faa2.js";import{S as N}from"./StatusBadge-e7326f60.js";import{d as T,B as g,H as A,a as l,o,b as r,w as t,e as n,f as d,c,F as C,D as R,t as u,m as p,_ as $}from"./index-0dcf85b4.js";import"./index-fce48c05.js";import"./TextWithCopyButton-da18080b.js";import"./CopyButton-dcdce1f2.js";import"./WarningIcon.vue_vue_type_script_setup_true_lang-d54f4898.js";const E={key:0,class:"status-loading-box mb-4"},F={key:1},K={class:"mb-4"},L=T({__name:"OnboardingDataplanesView",setup(P){const e=g(),_=g(0),m=A(()=>Array.isArray(e.value)?e.value.some(s=>s.status==="offline"):!0);function f(s){s&&(e.value=s.items,_.value++)}return(s,H)=>{const b=l("RouteTitle"),h=l("KTable"),w=l("DataSource"),y=l("AppView"),k=l("RouteView");return o(),r(k,{name:"onboarding-dataplanes-view"},{default:t(({t:i})=>[n(b,{title:i("onboarding.routes.dataplanes-overview.title"),render:!1},null,8,["title"]),d(),n(y,null,{default:t(()=>[n(w,{src:m.value?"/dataplanes/poll?page=1&size=10":"",onChange:f},{default:t(({error:v})=>[v!==void 0?(o(),r(O,{key:0,error:v},null,8,["error"])):e.value===void 0?(o(),r(S,{key:1})):(o(),r(D,{key:2},{header:t(()=>[(o(!0),c(C,null,R([m.value?"waiting":"success"],a=>(o(),r(V,{key:a,"data-testid":`state-${a}`},{title:t(()=>[d(u(i(`onboarding.routes.dataplanes-overview.header.${a}.title`)),1)]),description:t(()=>[p("p",null,u(i(`onboarding.routes.dataplanes-overview.header.${a}.description`)),1)]),_:2},1032,["data-testid"]))),128))]),content:t(()=>[e.value.length===0?(o(),c("div",E,[n(x)])):(o(),c("div",F,[p("p",K,[p("b",null,"Found "+u(e.value.length)+" DPPs:",1)]),d(),n(h,{class:"mb-4","data-testid":"dataplanes-table","fetcher-cache-key":String(_.value),fetcher:()=>{var a;return{data:e.value,total:(a=e.value)==null?void 0:a.length}},headers:[{label:"Mesh",key:"mesh"},{label:"Name",key:"name"},{label:"Status",key:"status"}],"disable-pagination":""},{status:t(({row:a})=>[n(N,{status:a.status},null,8,["status"])]),_:1},8,["fetcher-cache-key","fetcher"])]))]),navigation:t(()=>[n(B,{"next-step":"onboarding-completed-view","previous-step":"onboarding-add-new-services-code-view","should-allow-next":e.value.length>0},null,8,["should-allow-next"])]),_:2},1024))]),_:2},1032,["src"])]),_:2},1024)]),_:1})}}});const X=$(L,[["__scopeId","data-v-f140547b"]]);export{X as default}; diff --git a/app/kuma-ui/pkg/resources/data/assets/OnboardingDeploymentTypesView-afd3a502.js b/app/kuma-ui/pkg/resources/data/assets/OnboardingDeploymentTypesView-216e3a0f.js similarity index 92% rename from app/kuma-ui/pkg/resources/data/assets/OnboardingDeploymentTypesView-afd3a502.js rename to app/kuma-ui/pkg/resources/data/assets/OnboardingDeploymentTypesView-216e3a0f.js index 640db96f76d5..5b8718d2dcb8 100644 --- a/app/kuma-ui/pkg/resources/data/assets/OnboardingDeploymentTypesView-afd3a502.js +++ b/app/kuma-ui/pkg/resources/data/assets/OnboardingDeploymentTypesView-216e3a0f.js @@ -1,4 +1,4 @@ -import{O as f,a as V,b as w}from"./OnboardingPage-c82bd551.js";import{d as h,E as z,G as x,q as C,B as G,H as O,a as s,o as u,b as r,w as e,e as n,f as o,m as d,t as R,C as T,_ as D}from"./index-5f4feb06.js";const S={class:"graph-list mb-6"},B={class:"radio-button-group"},M=h({__name:"OnboardingDeploymentTypesView",setup(N){const m=z(),c={standalone:x(),"multi-zone":m},_=C(),t=G(_("use zones")?"multi-zone":"standalone"),b=O(()=>c[t.value]);return(A,a)=>{const g=s("RouteTitle"),i=s("KRadio"),v=s("AppView"),y=s("RouteView");return u(),r(y,{name:"onboarding-deployment-types-view"},{default:e(({t:p})=>[n(g,{title:p("onboarding.routes.deployment-types.title"),render:!1},null,8,["title"]),o(),n(v,null,{default:e(()=>[n(f,{"with-image":""},{header:e(()=>[n(V,null,{title:e(()=>[o(` +import{O as f,a as V,b as w}from"./OnboardingPage-b2243b4b.js";import{d as h,E as z,G as x,q as C,B as G,H as O,a as s,o as u,b as r,w as e,e as n,f as o,m as d,t as R,C as T,_ as D}from"./index-0dcf85b4.js";const S={class:"graph-list mb-6"},B={class:"radio-button-group"},M=h({__name:"OnboardingDeploymentTypesView",setup(N){const m=z(),c={standalone:x(),"multi-zone":m},_=C(),t=G(_("use zones")?"multi-zone":"standalone"),b=O(()=>c[t.value]);return(A,a)=>{const g=s("RouteTitle"),i=s("KRadio"),v=s("AppView"),y=s("RouteView");return u(),r(y,{name:"onboarding-deployment-types-view"},{default:e(({t:p})=>[n(g,{title:p("onboarding.routes.deployment-types.title"),render:!1},null,8,["title"]),o(),n(v,null,{default:e(()=>[n(f,{"with-image":""},{header:e(()=>[n(V,null,{title:e(()=>[o(` Learn about deployments `)]),description:e(()=>[d("p",null,R(p("common.product.name"))+" can be deployed in standalone or multi-zone mode.",1)]),_:2},1024)]),content:e(()=>[d("div",S,[(u(),r(T(b.value)))]),o(),d("div",B,[n(i,{modelValue:t.value,"onUpdate:modelValue":a[0]||(a[0]=l=>t.value=l),name:"mode","selected-value":"standalone","data-testid":"onboarding-standalone-radio-button"},{default:e(()=>[o(` Standalone deployment diff --git a/app/kuma-ui/pkg/resources/data/assets/OnboardingMultiZoneView-dfe22d04.js b/app/kuma-ui/pkg/resources/data/assets/OnboardingMultiZoneView-f42c53e4.js similarity index 93% rename from app/kuma-ui/pkg/resources/data/assets/OnboardingMultiZoneView-dfe22d04.js rename to app/kuma-ui/pkg/resources/data/assets/OnboardingMultiZoneView-f42c53e4.js index 009c573b2f95..372d45338afb 100644 --- a/app/kuma-ui/pkg/resources/data/assets/OnboardingMultiZoneView-dfe22d04.js +++ b/app/kuma-ui/pkg/resources/data/assets/OnboardingMultiZoneView-f42c53e4.js @@ -1,4 +1,4 @@ -import{L as z}from"./LoadingBox-5f654149.js";import{O,a as T,b as V}from"./OnboardingPage-c82bd551.js";import{d as I,L as k,B as r,M as A,a as p,o as a,b as N,w as i,e as c,f as e,m as t,c as l,p as L,v as B,x as C,_ as R}from"./index-5f4feb06.js";const M=u=>(B("data-v-6c023d87"),u=u(),C(),u),S=M(()=>t("p",{class:"mb-4 text-center"},` +import{L as z}from"./LoadingBox-3a4b2933.js";import{O,a as T,b as V}from"./OnboardingPage-b2243b4b.js";import{d as I,L as k,B as r,M as A,a as p,o as a,b as N,w as i,e as c,f as e,m as t,c as l,p as L,v as B,x as C,_ as R}from"./index-0dcf85b4.js";const M=u=>(B("data-v-6c023d87"),u=u(),C(),u),S=M(()=>t("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)),D={class:"mb-4 text-center"},E=["href"],G={class:"status-box mt-4"},K={key:0,class:"status--is-connected","data-testid":"zone-connected"},P={key:1,class:"status--is-disconnected","data-testid":"zone-disconnected"},U={class:"status-box mt-4"},q={key:0,class:"status--is-connected","data-testid":"zone-ingress-connected"},H={key:1,class:"status--is-disconnected","data-testid":"zone-ingress-disconnected"},j={key:0,class:"status-loading-box mt-4"},b=1e3,F=I({__name:"OnboardingMultiZoneView",setup(u){const m=k(),o=r(!1),s=r(!1),d=r(null),_=r(null);A(function(){f(),h()}),v(),g();async function v(){try{const{total:n}=await m.getZones();o.value=n>0}catch(n){o.value=!1,console.error(n)}finally{o.value||(f(),d.value=window.setTimeout(v,b))}}async function g(){try{const{total:n}=await m.getAllZoneIngressOverviews();s.value=n>0}catch(n){s.value=!1,console.error(n)}finally{s.value||(h(),_.value=window.setTimeout(g,b))}}function f(){d.value!==null&&window.clearTimeout(d.value)}function h(){_.value!==null&&window.clearTimeout(_.value)}return(n,J)=>{const y=p("RouteTitle"),x=p("AppView"),Z=p("RouteView");return a(),N(Z,{name:"onboarding-multi-zone-view"},{default:i(({t:w})=>[c(y,{title:w("onboarding.routes.multizone.title"),render:!1},null,8,["title"]),e(),c(x,null,{default:i(()=>[c(O,null,{header:i(()=>[c(T,null,{title:i(()=>[e(` Add zones diff --git a/app/kuma-ui/pkg/resources/data/assets/OnboardingPage-c82bd551.js b/app/kuma-ui/pkg/resources/data/assets/OnboardingPage-b2243b4b.js similarity index 97% rename from app/kuma-ui/pkg/resources/data/assets/OnboardingPage-c82bd551.js rename to app/kuma-ui/pkg/resources/data/assets/OnboardingPage-b2243b4b.js index ef8a4040a16b..52a0e105eee9 100644 --- a/app/kuma-ui/pkg/resources/data/assets/OnboardingPage-c82bd551.js +++ b/app/kuma-ui/pkg/resources/data/assets/OnboardingPage-b2243b4b.js @@ -1,4 +1,4 @@ -import{d as p,N as b,o as s,c as r,m as o,r as i,f as t,l as d,p as l,_ as u,b as v,w as _,O as c,e as f,t as h,n as m,v as S,x as y}from"./index-5f4feb06.js";const x={class:"onboarding-heading"},k={class:"onboarding-title","data-testid":"onboarding-header"},$={key:0,class:"onboarding-description"},N=p({__name:"OnboardingHeading",setup(a){const e=b();return(n,g)=>(s(),r("div",x,[o("h1",k,[i(n.$slots,"title",{},void 0,!0)]),t(),d(e).description?(s(),r("div",$,[i(n.$slots,"description",{},void 0,!0)])):l("",!0)]))}});const z=u(N,[["__scopeId","data-v-505a1a6e"]]),O={class:"onboarding-actions"},w={class:"button-list"},B=p({__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(a){const e=a;return(n,g)=>(s(),r("div",O,[e.previousStep?(s(),v(d(c),{key:0,appearance:"secondary",to:{name:e.previousStep},"data-testid":"onboarding-previous-button"},{default:_(()=>[t(` +import{d as p,N as b,o as s,c as r,m as o,r as i,f as t,l as d,p as l,_ as u,b as v,w as _,O as c,e as f,t as h,n as m,v as S,x as y}from"./index-0dcf85b4.js";const x={class:"onboarding-heading"},k={class:"onboarding-title","data-testid":"onboarding-header"},$={key:0,class:"onboarding-description"},N=p({__name:"OnboardingHeading",setup(a){const e=b();return(n,g)=>(s(),r("div",x,[o("h1",k,[i(n.$slots,"title",{},void 0,!0)]),t(),d(e).description?(s(),r("div",$,[i(n.$slots,"description",{},void 0,!0)])):l("",!0)]))}});const z=u(N,[["__scopeId","data-v-505a1a6e"]]),O={class:"onboarding-actions"},w={class:"button-list"},B=p({__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(a){const e=a;return(n,g)=>(s(),r("div",O,[e.previousStep?(s(),v(d(c),{key:0,appearance:"secondary",to:{name:e.previousStep},"data-testid":"onboarding-previous-button"},{default:_(()=>[t(` Back `)]),_:1},8,["to"])):l("",!0),t(),o("div",w,[e.showSkip?(s(),v(d(c),{key:0,appearance:"tertiary","data-testid":"onboarding-skip-button",to:{name:"home"}},{default:_(()=>[t(` Skip setup diff --git a/app/kuma-ui/pkg/resources/data/assets/OnboardingRootView-fad5c5c5.js b/app/kuma-ui/pkg/resources/data/assets/OnboardingRootView-5fc87179.js similarity index 89% rename from app/kuma-ui/pkg/resources/data/assets/OnboardingRootView-fad5c5c5.js rename to app/kuma-ui/pkg/resources/data/assets/OnboardingRootView-5fc87179.js index 68b45222170d..ce305d8eb212 100644 --- a/app/kuma-ui/pkg/resources/data/assets/OnboardingRootView-fad5c5c5.js +++ b/app/kuma-ui/pkg/resources/data/assets/OnboardingRootView-5fc87179.js @@ -1 +1 @@ -import{d as _,A as w,B as f,a as e,o,b as n,w as t,e as u,l as V,C as i}from"./index-5f4feb06.js";const C=_({__name:"OnboardingRootView",setup(v){const l=w(),a=f("demo");return(R,s)=>{const c=e("RouterView"),d=e("AppView"),m=e("RouteView");return o(),n(m,{name:"onboarding",attrs:{class:"no-navigation"}},{default:t(()=>[u(d,null,{default:t(()=>[u(c,null,{default:t(({Component:r})=>[V(l).name==="onboarding-add-new-services-view"?(o(),n(i(r),{key:0,mode:a.value,onChange:s[0]||(s[0]=p=>{a.value=p})},null,40,["mode"])):(o(),n(i(r),{key:1}))]),_:1})]),_:1})]),_:1})}}});export{C as default}; +import{d as _,A as w,B as f,a as e,o,b as n,w as t,e as u,l as V,C as i}from"./index-0dcf85b4.js";const C=_({__name:"OnboardingRootView",setup(v){const l=w(),a=f("demo");return(R,s)=>{const c=e("RouterView"),d=e("AppView"),m=e("RouteView");return o(),n(m,{name:"onboarding",attrs:{class:"no-navigation"}},{default:t(()=>[u(d,null,{default:t(()=>[u(c,null,{default:t(({Component:r})=>[V(l).name==="onboarding-add-new-services-view"?(o(),n(i(r),{key:0,mode:a.value,onChange:s[0]||(s[0]=p=>{a.value=p})},null,40,["mode"])):(o(),n(i(r),{key:1}))]),_:1})]),_:1})]),_:1})}}});export{C as default}; diff --git a/app/kuma-ui/pkg/resources/data/assets/OnboardingWelcomeView-a42d8027.js b/app/kuma-ui/pkg/resources/data/assets/OnboardingWelcomeView-7b80460d.js similarity index 91% rename from app/kuma-ui/pkg/resources/data/assets/OnboardingWelcomeView-a42d8027.js rename to app/kuma-ui/pkg/resources/data/assets/OnboardingWelcomeView-7b80460d.js index 92e3c81a682c..f420ce5e1779 100644 --- a/app/kuma-ui/pkg/resources/data/assets/OnboardingWelcomeView-a42d8027.js +++ b/app/kuma-ui/pkg/resources/data/assets/OnboardingWelcomeView-7b80460d.js @@ -1,4 +1,4 @@ -import{K as v}from"./index-fce48c05.js";import{d as b,a as c,o as r,b as d,w as n,e as a,f as e,m as t,t as l,c as m,F as y,D as V,l as u,T as x,p as N,v as O,x as I,_ as C}from"./index-5f4feb06.js";import{O as k,a as R,b as T}from"./OnboardingPage-c82bd551.js";const _=s=>(O("data-v-6d3e602f"),s=s(),I(),s),A=_(()=>t("strong",null,"few minutes",-1)),S={"data-testid":"kuma-environment"},W=_(()=>t("h2",{class:"text-center"},` +import{K as v}from"./index-fce48c05.js";import{d as b,a as c,o as r,b as d,w as n,e as a,f as e,m as t,t as l,c as m,F as y,D as V,l as u,T as x,p as N,v as O,x as I,_ as C}from"./index-0dcf85b4.js";import{O as k,a as R,b as T}from"./OnboardingPage-b2243b4b.js";const _=s=>(O("data-v-6d3e602f"),s=s(),I(),s),A=_(()=>t("strong",null,"few minutes",-1)),S={"data-testid":"kuma-environment"},W=_(()=>t("h2",{class:"text-center"},` Let’s get started: `,-1)),z={class:"item-status-list-wrapper"},B={class:"item-status-list"},E={class:"circle mr-2"},L=b({__name:"OnboardingWelcomeView",setup(s){return(K,D)=>{const p=c("RouteTitle"),g=c("AppView"),f=c("RouteView");return r(),d(f,{name:"onboarding-welcome-view"},{default:n(({env:h,t:o,can:w})=>[a(p,{title:o("onboarding.routes.welcome.title",{name:o("common.product.name")}),render:!1},null,8,["title"]),e(),a(g,null,{default:n(()=>[t("div",null,[a(k,null,{header:n(()=>[a(R,null,{title:n(()=>[e(` Welcome to `+l(o("common.product.name")),1)]),description:n(()=>[t("p",null,[e(` diff --git a/app/kuma-ui/pkg/resources/data/assets/PolicyDetailView-8eb301f1.js b/app/kuma-ui/pkg/resources/data/assets/PolicyDetailView-ecb519ac.js similarity index 85% rename from app/kuma-ui/pkg/resources/data/assets/PolicyDetailView-8eb301f1.js rename to app/kuma-ui/pkg/resources/data/assets/PolicyDetailView-ecb519ac.js index e16af292f313..7ec3512f5e7f 100644 --- a/app/kuma-ui/pkg/resources/data/assets/PolicyDetailView-8eb301f1.js +++ b/app/kuma-ui/pkg/resources/data/assets/PolicyDetailView-ecb519ac.js @@ -1 +1 @@ -import{d as v,k as b,B,a as i,o as a,c as m,e as t,l as F,f as d,w as s,b as p,F as N,D as S,t as w,ao as L,m as $,p as T}from"./index-5f4feb06.js";import{_ as I}from"./EmptyBlock.vue_vue_type_script_setup_true_lang-7f79002a.js";import{E as V}from"./ErrorBlock-558c0398.js";import{_ as P}from"./LoadingBlock.vue_vue_type_script_setup_true_lang-e7fd5a8b.js";import{_ as K}from"./ResourceCodeBlock.vue_vue_type_style_index_0_lang-8c675a57.js";import{T as M}from"./TextWithCopyButton-1098d691.js";import"./index-fce48c05.js";import"./WarningIcon.vue_vue_type_script_setup_true_lang-cab7af3a.js";import"./CodeBlock.vue_vue_type_style_index_0_lang-6de3c828.js";import"./uniqueId-90cc9b93.js";import"./CopyButton-2ffc661c.js";import"./toYaml-4e00099e.js";const q={key:3,"data-testid":"affected-data-plane-proxies"},D=v({__name:"PolicyConnections",props:{mesh:{},policyPath:{},policyName:{}},setup(g){const{t:x}=b(),h=g,r=B("");return(C,c)=>{const u=i("KInput"),y=i("RouterLink");return a(),m("div",null,[t(u,{id:"dataplane-search",modelValue:r.value,"onUpdate:modelValue":c[0]||(c[0]=e=>r.value=e),type:"text",placeholder:F(x)("policies.detail.dataplane_input_placeholder"),required:"","data-testid":"dataplane-search-input"},null,8,["modelValue","placeholder"]),d(),t(L,{src:`/meshes/${h.mesh}/policy-path/${h.policyPath}/policy/${h.policyName}/dataplanes`},{default:s(({data:e,error:n})=>[n?(a(),p(V,{key:0,error:n},null,8,["error"])):e===void 0?(a(),p(P,{key:1})):e.items.length===0?(a(),p(I,{key:2})):(a(),m("ul",q,[(a(!0),m(N,null,S(e.items.filter(o=>o.name.toLowerCase().includes(r.value.toLowerCase())),(o,_)=>(a(),m("li",{key:_,"data-testid":"dataplane-name"},[t(y,{to:{name:"data-plane-detail-view",params:{mesh:o.mesh,dataPlane:o.name}}},{default:s(()=>[d(w(o.name),1)]),_:2},1032,["to"])]))),128))]))]),_:1},8,["src"])])}}}),A={key:2,class:"stack","data-testid":"detail-view-details"},ee=v({__name:"PolicyDetailView",setup(g){return(x,h)=>{const r=i("RouteTitle"),C=i("KCard"),c=i("DataSource"),u=i("AppView"),y=i("RouteView");return a(),p(y,{name:"policy-detail-view",params:{mesh:"",policy:"",policyPath:"",codeSearch:"",codeFilter:!1,codeRegExp:!1}},{default:s(({route:e,t:n})=>[t(u,{breadcrumbs:[{to:{name:"mesh-detail-view",params:{mesh:e.params.mesh}},text:e.params.mesh},{to:{name:"policy-list-view",params:{mesh:e.params.mesh,policyPath:e.params.policyPath}},text:n("policies.routes.item.breadcrumbs")}]},{title:s(()=>[$("h1",null,[t(M,{text:e.params.policy},{default:s(()=>[t(r,{title:n("policies.routes.item.title",{name:e.params.policy})},null,8,["title"])]),_:2},1032,["text"])])]),default:s(()=>[d(),t(c,{src:`/meshes/${e.params.mesh}/policy-path/${e.params.policyPath}/policy/${e.params.policy}`},{default:s(({data:o,error:_})=>[_?(a(),p(V,{key:0,error:_},null,8,["error"])):o===void 0?(a(),p(P,{key:1})):(a(),m("div",A,[t(C,null,{default:s(()=>[$("h2",null,w(n("policies.detail.affected_dpps")),1),d(),t(D,{class:"mt-4",mesh:e.params.mesh,"policy-name":e.params.policy,"policy-path":e.params.policyPath},null,8,["mesh","policy-name","policy-path"])]),_:2},1024),d(),t(K,{resource:o.config,"is-searchable":"",query:e.params.codeSearch,"is-filter-mode":e.params.codeFilter,"is-reg-exp-mode":e.params.codeRegExp,onQueryChange:l=>e.update({codeSearch:l}),onFilterModeChange:l=>e.update({codeFilter:l}),onRegExpModeChange:l=>e.update({codeRegExp:l})},{default:s(({copy:l,copying:R})=>[R?(a(),p(c,{key:0,src:`/meshes/${e.params.mesh}/policy-path/${e.params.policyPath}/policy/${e.params.policy}/as/kubernetes?no-store`,onChange:f=>{l(k=>k(f))},onError:f=>{l((k,E)=>E(f))}},null,8,["src","onChange","onError"])):T("",!0)]),_:2},1032,["resource","query","is-filter-mode","is-reg-exp-mode","onQueryChange","onFilterModeChange","onRegExpModeChange"])]))]),_:2},1032,["src"])]),_:2},1032,["breadcrumbs"])]),_:1})}}});export{ee as default}; +import{d as v,k as b,B,a as i,o as a,c as m,e as t,l as F,f as d,w as s,b as p,F as N,D as S,t as w,ao as L,m as $,p as T}from"./index-0dcf85b4.js";import{_ as I}from"./EmptyBlock.vue_vue_type_script_setup_true_lang-6ff90078.js";import{E as V}from"./ErrorBlock-70a14ad9.js";import{_ as P}from"./LoadingBlock.vue_vue_type_script_setup_true_lang-2e81faa2.js";import{_ as K}from"./ResourceCodeBlock.vue_vue_type_style_index_0_lang-c72a10ad.js";import{T as M}from"./TextWithCopyButton-da18080b.js";import"./index-fce48c05.js";import"./WarningIcon.vue_vue_type_script_setup_true_lang-d54f4898.js";import"./CodeBlock.vue_vue_type_style_index_0_lang-95cf08c2.js";import"./uniqueId-90cc9b93.js";import"./CopyButton-dcdce1f2.js";import"./toYaml-4e00099e.js";const q={key:3,"data-testid":"affected-data-plane-proxies"},D=v({__name:"PolicyConnections",props:{mesh:{},policyPath:{},policyName:{}},setup(g){const{t:x}=b(),h=g,r=B("");return(C,c)=>{const u=i("KInput"),y=i("RouterLink");return a(),m("div",null,[t(u,{id:"dataplane-search",modelValue:r.value,"onUpdate:modelValue":c[0]||(c[0]=e=>r.value=e),type:"text",placeholder:F(x)("policies.detail.dataplane_input_placeholder"),required:"","data-testid":"dataplane-search-input"},null,8,["modelValue","placeholder"]),d(),t(L,{src:`/meshes/${h.mesh}/policy-path/${h.policyPath}/policy/${h.policyName}/dataplanes`},{default:s(({data:e,error:n})=>[n?(a(),p(V,{key:0,error:n},null,8,["error"])):e===void 0?(a(),p(P,{key:1})):e.items.length===0?(a(),p(I,{key:2})):(a(),m("ul",q,[(a(!0),m(N,null,S(e.items.filter(o=>o.name.toLowerCase().includes(r.value.toLowerCase())),(o,_)=>(a(),m("li",{key:_,"data-testid":"dataplane-name"},[t(y,{to:{name:"data-plane-detail-view",params:{mesh:o.mesh,dataPlane:o.name}}},{default:s(()=>[d(w(o.name),1)]),_:2},1032,["to"])]))),128))]))]),_:1},8,["src"])])}}}),A={key:2,class:"stack","data-testid":"detail-view-details"},ee=v({__name:"PolicyDetailView",setup(g){return(x,h)=>{const r=i("RouteTitle"),C=i("KCard"),c=i("DataSource"),u=i("AppView"),y=i("RouteView");return a(),p(y,{name:"policy-detail-view",params:{mesh:"",policy:"",policyPath:"",codeSearch:"",codeFilter:!1,codeRegExp:!1}},{default:s(({route:e,t:n})=>[t(u,{breadcrumbs:[{to:{name:"mesh-detail-view",params:{mesh:e.params.mesh}},text:e.params.mesh},{to:{name:"policy-list-view",params:{mesh:e.params.mesh,policyPath:e.params.policyPath}},text:n("policies.routes.item.breadcrumbs")}]},{title:s(()=>[$("h1",null,[t(M,{text:e.params.policy},{default:s(()=>[t(r,{title:n("policies.routes.item.title",{name:e.params.policy})},null,8,["title"])]),_:2},1032,["text"])])]),default:s(()=>[d(),t(c,{src:`/meshes/${e.params.mesh}/policy-path/${e.params.policyPath}/policy/${e.params.policy}`},{default:s(({data:o,error:_})=>[_?(a(),p(V,{key:0,error:_},null,8,["error"])):o===void 0?(a(),p(P,{key:1})):(a(),m("div",A,[t(C,null,{default:s(()=>[$("h2",null,w(n("policies.detail.affected_dpps")),1),d(),t(D,{class:"mt-4",mesh:e.params.mesh,"policy-name":e.params.policy,"policy-path":e.params.policyPath},null,8,["mesh","policy-name","policy-path"])]),_:2},1024),d(),t(K,{resource:o.config,"is-searchable":"",query:e.params.codeSearch,"is-filter-mode":e.params.codeFilter,"is-reg-exp-mode":e.params.codeRegExp,onQueryChange:l=>e.update({codeSearch:l}),onFilterModeChange:l=>e.update({codeFilter:l}),onRegExpModeChange:l=>e.update({codeRegExp:l})},{default:s(({copy:l,copying:R})=>[R?(a(),p(c,{key:0,src:`/meshes/${e.params.mesh}/policy-path/${e.params.policyPath}/policy/${e.params.policy}/as/kubernetes?no-store`,onChange:f=>{l(k=>k(f))},onError:f=>{l((k,E)=>E(f))}},null,8,["src","onChange","onError"])):T("",!0)]),_:2},1032,["resource","query","is-filter-mode","is-reg-exp-mode","onQueryChange","onFilterModeChange","onRegExpModeChange"])]))]),_:2},1032,["src"])]),_:2},1032,["breadcrumbs"])]),_:1})}}});export{ee as default}; diff --git a/app/kuma-ui/pkg/resources/data/assets/PolicyListView-d9582940.js b/app/kuma-ui/pkg/resources/data/assets/PolicyListView-e9778f32.js similarity index 91% rename from app/kuma-ui/pkg/resources/data/assets/PolicyListView-d9582940.js rename to app/kuma-ui/pkg/resources/data/assets/PolicyListView-e9778f32.js index ef13480f1ae4..9c5ea3440496 100644 --- a/app/kuma-ui/pkg/resources/data/assets/PolicyListView-d9582940.js +++ b/app/kuma-ui/pkg/resources/data/assets/PolicyListView-e9778f32.js @@ -1 +1 @@ -import{K as B}from"./index-fce48c05.js";import{d as $,k as L,A as N,a as d,o as s,c as v,e as r,w as t,F as V,D as E,n as I,l,f as o,t as m,m as y,b as n,p as k,P as K,_ as A,C as D}from"./index-5f4feb06.js";import{D as F,A as q}from"./AppCollection-4b66f394.js";import{E as x}from"./ErrorBlock-558c0398.js";import{P as O}from"./PolicyTypeTag-e459baad.js";import{_ as M}from"./EmptyBlock.vue_vue_type_script_setup_true_lang-7f79002a.js";import{_ as U}from"./LoadingBlock.vue_vue_type_script_setup_true_lang-e7fd5a8b.js";import{S as Z}from"./SummaryView-46a73d2c.js";import"./TextWithCopyButton-1098d691.js";import"./CopyButton-2ffc661c.js";import"./WarningIcon.vue_vue_type_script_setup_true_lang-cab7af3a.js";const j={class:"policy-list-content"},G={class:"policy-count"},H={class:"policy-list"},J={class:"stack"},Q={class:"description"},W={class:"description-content"},X={class:"description-actions"},Y={class:"visually-hidden"},ee={key:0},te=$({__name:"PolicyList",props:{pageNumber:{},pageSize:{},policyTypes:{},currentPolicyType:{},policyCollection:{},policyError:{},meshInsight:{},isSelectedRow:{type:[Function,null],default:null}},emits:["change"],setup(z,{emit:T}){const{t:p}=L(),w=N(),e=z,h=T;return(S,b)=>{const f=d("RouterLink"),a=d("KCard"),g=d("KBadge");return s(),v("div",j,[r(a,{class:"policy-type-list","data-testid":"policy-type-list"},{default:t(()=>[(s(!0),v(V,null,E(e.policyTypes,(c,u)=>{var i,_,C;return s(),v("div",{key:u,class:I(["policy-type-link-wrapper",{"policy-type-link-wrapper--is-active":c.path===e.currentPolicyType.path}])},[r(f,{class:"policy-type-link",to:{name:"policy-list-view",params:{mesh:l(w).params.mesh,policyPath:c.path}},"data-testid":`policy-type-link-${c.name}`},{default:t(()=>[o(m(c.name),1)]),_:2},1032,["to","data-testid"]),o(),y("div",G,m(((C=(_=(i=e.meshInsight)==null?void 0:i.policies)==null?void 0:_[c.name])==null?void 0:C.total)??0),1)],2)}),128))]),_:1}),o(),y("div",H,[y("div",J,[r(a,null,{default:t(()=>[y("div",Q,[y("div",W,[y("h3",null,[r(O,{"policy-type":e.currentPolicyType.name},{default:t(()=>[o(m(l(p)("policies.collection.title",{name:e.currentPolicyType.name})),1)]),_:1},8,["policy-type"])]),o(),y("p",null,m(l(p)(`policies.type.${e.currentPolicyType.name}.description`,void 0,{defaultMessage:l(p)("policies.collection.description")})),1)]),o(),y("div",X,[e.currentPolicyType.isExperimental?(s(),n(g,{key:0,appearance:"warning"},{default:t(()=>[o(m(l(p)("policies.collection.beta")),1)]),_:1})):k("",!0),o(),e.currentPolicyType.isInbound?(s(),n(g,{key:1,appearance:"neutral"},{default:t(()=>[o(m(l(p)("policies.collection.inbound")),1)]),_:1})):k("",!0),o(),e.currentPolicyType.isOutbound?(s(),n(g,{key:2,appearance:"neutral"},{default:t(()=>[o(m(l(p)("policies.collection.outbound")),1)]),_:1})):k("",!0),o(),r(F,{href:l(p)("policies.href.docs",{name:e.currentPolicyType.name}),"data-testid":"policy-documentation-link"},{default:t(()=>[y("span",Y,m(l(p)("common.documentation")),1)]),_:1},8,["href"])])])]),_:1}),o(),r(a,null,{default:t(()=>{var c,u;return[e.policyError!==void 0?(s(),n(x,{key:0,error:e.policyError},null,8,["error"])):(s(),n(q,{key:1,class:"policy-collection","data-testid":"policy-collection","empty-state-message":l(p)("common.emptyState.message",{type:`${e.currentPolicyType.name} policies`}),"empty-state-cta-to":l(p)("policies.href.docs",{name:e.currentPolicyType.name}),"empty-state-cta-text":l(p)("common.documentation"),headers:[{label:"Name",key:"name"},...e.currentPolicyType.isTargetRefBased?[{label:"Target ref",key:"targetRef"}]:[],{label:"Details",key:"details",hideLabel:!0}],"page-number":e.pageNumber,"page-size":e.pageSize,total:(c=e.policyCollection)==null?void 0:c.total,items:(u=e.policyCollection)==null?void 0:u.items,error:e.policyError,"is-selected-row":e.isSelectedRow,onChange:b[0]||(b[0]=i=>h("change",i))},{name:t(({row:i})=>[r(f,{to:{name:"policy-summary-view",params:{mesh:i.mesh,policyPath:e.currentPolicyType.path,policy:i.name},query:{page:e.pageNumber,size:e.pageSize}}},{default:t(()=>[o(m(i.name),1)]),_:2},1032,["to"])]),targetRef:t(({row:i})=>{var _;return[e.currentPolicyType.isTargetRefBased&&typeof((_=i.spec)==null?void 0:_.targetRef)<"u"?(s(),n(g,{key:0,appearance:"neutral"},{default:t(()=>[o(m(i.spec.targetRef.kind),1),i.spec.targetRef.name?(s(),v("span",ee,[o(":"),y("b",null,m(i.spec.targetRef.name),1)])):k("",!0)]),_:2},1024)):(s(),v(V,{key:1},[o(m(l(p)("common.detail.none")),1)],64))]}),details:t(({row:i})=>[r(f,{class:"details-link","data-testid":"details-link",to:{name:"policy-detail-view",params:{mesh:i.mesh,policyPath:e.currentPolicyType.path,policy:i.name}}},{default:t(()=>[o(m(l(p)("common.collection.details_link"))+" ",1),r(l(K),{display:"inline-block",decorative:"",size:l(B)},null,8,["size"])]),_:2},1032,["to"])]),_:1},8,["empty-state-message","empty-state-cta-to","empty-state-cta-text","headers","page-number","page-size","total","items","error","is-selected-row"]))]}),_:1})])])])}}});const ae=A(te,[["__scopeId","data-v-097a281b"]]),ue=$({__name:"PolicyListView",setup(z){return(T,p)=>{const w=d("RouteTitle"),e=d("RouterView"),h=d("DataSource"),S=d("AppView"),b=d("RouteView");return s(),n(h,{src:"/me"},{default:t(({data:f})=>[f?(s(),n(b,{key:0,name:"policy-list-view",params:{page:1,size:f.pageSize,mesh:"",policyPath:"",policy:""}},{default:t(({route:a,t:g})=>[r(S,null,{title:t(()=>[y("h2",null,[r(w,{title:g("policies.routes.items.title")},null,8,["title"])])]),default:t(()=>[o(),r(h,{src:"/*/policy-types"},{default:t(({data:c,error:u})=>[u?(s(),n(x,{key:0,error:u},null,8,["error"])):c===void 0?(s(),n(U,{key:1})):c.policies.length===0?(s(),n(M,{key:2})):(s(),n(h,{key:3,src:`/meshes/${a.params.mesh}/policy-path/${a.params.policyPath}?page=${a.params.page}&size=${a.params.size}`},{default:t(({data:i,error:_})=>[r(h,{src:`/mesh-insights/${a.params.mesh}`},{default:t(({data:C})=>[(s(),n(ae,{key:a.params.policyPath,"page-number":a.params.page,"page-size":a.params.size,"current-policy-type":c.policies.find(P=>P.path===a.params.policyPath)??c.policies[0],"policy-types":c.policies,"mesh-insight":C,"policy-collection":i,"policy-error":_,"is-selected-row":P=>P.name===a.params.policy,onChange:a.update},null,8,["page-number","page-size","current-policy-type","policy-types","mesh-insight","policy-collection","policy-error","is-selected-row","onChange"])),o(),a.params.policy?(s(),n(e,{key:0},{default:t(P=>[r(Z,{onClose:R=>a.replace({name:"policy-list-view",params:{mesh:a.params.mesh,policyPath:a.params.policyPath},query:{page:a.params.page,size:a.params.size}})},{default:t(()=>[(s(),n(D(P.Component),{policy:i==null?void 0:i.items.find(R=>R.name===a.params.policy),"policy-type":c.policies.find(R=>R.path===a.params.policyPath)},null,8,["policy","policy-type"]))]),_:2},1032,["onClose"])]),_:2},1024)):k("",!0)]),_:2},1032,["src"])]),_:2},1032,["src"]))]),_:2},1024)]),_:2},1024)]),_:2},1032,["params"])):k("",!0)]),_:1})}}});export{ue as default}; +import{K as B}from"./index-fce48c05.js";import{d as $,k as L,A as N,a as d,o as s,c as v,e as r,w as t,F as V,D as E,n as I,l,f as o,t as m,m as y,b as n,p as k,P as K,_ as A,C as D}from"./index-0dcf85b4.js";import{D as F,A as q}from"./AppCollection-a7a0983f.js";import{E as x}from"./ErrorBlock-70a14ad9.js";import{P as O}from"./PolicyTypeTag-cb9c8f52.js";import{_ as M}from"./EmptyBlock.vue_vue_type_script_setup_true_lang-6ff90078.js";import{_ as U}from"./LoadingBlock.vue_vue_type_script_setup_true_lang-2e81faa2.js";import{S as Z}from"./SummaryView-8d0a7896.js";import"./TextWithCopyButton-da18080b.js";import"./CopyButton-dcdce1f2.js";import"./WarningIcon.vue_vue_type_script_setup_true_lang-d54f4898.js";const j={class:"policy-list-content"},G={class:"policy-count"},H={class:"policy-list"},J={class:"stack"},Q={class:"description"},W={class:"description-content"},X={class:"description-actions"},Y={class:"visually-hidden"},ee={key:0},te=$({__name:"PolicyList",props:{pageNumber:{},pageSize:{},policyTypes:{},currentPolicyType:{},policyCollection:{},policyError:{},meshInsight:{},isSelectedRow:{type:[Function,null],default:null}},emits:["change"],setup(z,{emit:T}){const{t:p}=L(),w=N(),e=z,h=T;return(S,b)=>{const f=d("RouterLink"),a=d("KCard"),g=d("KBadge");return s(),v("div",j,[r(a,{class:"policy-type-list","data-testid":"policy-type-list"},{default:t(()=>[(s(!0),v(V,null,E(e.policyTypes,(c,u)=>{var i,_,C;return s(),v("div",{key:u,class:I(["policy-type-link-wrapper",{"policy-type-link-wrapper--is-active":c.path===e.currentPolicyType.path}])},[r(f,{class:"policy-type-link",to:{name:"policy-list-view",params:{mesh:l(w).params.mesh,policyPath:c.path}},"data-testid":`policy-type-link-${c.name}`},{default:t(()=>[o(m(c.name),1)]),_:2},1032,["to","data-testid"]),o(),y("div",G,m(((C=(_=(i=e.meshInsight)==null?void 0:i.policies)==null?void 0:_[c.name])==null?void 0:C.total)??0),1)],2)}),128))]),_:1}),o(),y("div",H,[y("div",J,[r(a,null,{default:t(()=>[y("div",Q,[y("div",W,[y("h3",null,[r(O,{"policy-type":e.currentPolicyType.name},{default:t(()=>[o(m(l(p)("policies.collection.title",{name:e.currentPolicyType.name})),1)]),_:1},8,["policy-type"])]),o(),y("p",null,m(l(p)(`policies.type.${e.currentPolicyType.name}.description`,void 0,{defaultMessage:l(p)("policies.collection.description")})),1)]),o(),y("div",X,[e.currentPolicyType.isExperimental?(s(),n(g,{key:0,appearance:"warning"},{default:t(()=>[o(m(l(p)("policies.collection.beta")),1)]),_:1})):k("",!0),o(),e.currentPolicyType.isInbound?(s(),n(g,{key:1,appearance:"neutral"},{default:t(()=>[o(m(l(p)("policies.collection.inbound")),1)]),_:1})):k("",!0),o(),e.currentPolicyType.isOutbound?(s(),n(g,{key:2,appearance:"neutral"},{default:t(()=>[o(m(l(p)("policies.collection.outbound")),1)]),_:1})):k("",!0),o(),r(F,{href:l(p)("policies.href.docs",{name:e.currentPolicyType.name}),"data-testid":"policy-documentation-link"},{default:t(()=>[y("span",Y,m(l(p)("common.documentation")),1)]),_:1},8,["href"])])])]),_:1}),o(),r(a,null,{default:t(()=>{var c,u;return[e.policyError!==void 0?(s(),n(x,{key:0,error:e.policyError},null,8,["error"])):(s(),n(q,{key:1,class:"policy-collection","data-testid":"policy-collection","empty-state-message":l(p)("common.emptyState.message",{type:`${e.currentPolicyType.name} policies`}),"empty-state-cta-to":l(p)("policies.href.docs",{name:e.currentPolicyType.name}),"empty-state-cta-text":l(p)("common.documentation"),headers:[{label:"Name",key:"name"},...e.currentPolicyType.isTargetRefBased?[{label:"Target ref",key:"targetRef"}]:[],{label:"Details",key:"details",hideLabel:!0}],"page-number":e.pageNumber,"page-size":e.pageSize,total:(c=e.policyCollection)==null?void 0:c.total,items:(u=e.policyCollection)==null?void 0:u.items,error:e.policyError,"is-selected-row":e.isSelectedRow,onChange:b[0]||(b[0]=i=>h("change",i))},{name:t(({row:i})=>[r(f,{to:{name:"policy-summary-view",params:{mesh:i.mesh,policyPath:e.currentPolicyType.path,policy:i.name},query:{page:e.pageNumber,size:e.pageSize}}},{default:t(()=>[o(m(i.name),1)]),_:2},1032,["to"])]),targetRef:t(({row:i})=>{var _;return[e.currentPolicyType.isTargetRefBased&&typeof((_=i.spec)==null?void 0:_.targetRef)<"u"?(s(),n(g,{key:0,appearance:"neutral"},{default:t(()=>[o(m(i.spec.targetRef.kind),1),i.spec.targetRef.name?(s(),v("span",ee,[o(":"),y("b",null,m(i.spec.targetRef.name),1)])):k("",!0)]),_:2},1024)):(s(),v(V,{key:1},[o(m(l(p)("common.detail.none")),1)],64))]}),details:t(({row:i})=>[r(f,{class:"details-link","data-testid":"details-link",to:{name:"policy-detail-view",params:{mesh:i.mesh,policyPath:e.currentPolicyType.path,policy:i.name}}},{default:t(()=>[o(m(l(p)("common.collection.details_link"))+" ",1),r(l(K),{display:"inline-block",decorative:"",size:l(B)},null,8,["size"])]),_:2},1032,["to"])]),_:1},8,["empty-state-message","empty-state-cta-to","empty-state-cta-text","headers","page-number","page-size","total","items","error","is-selected-row"]))]}),_:1})])])])}}});const ae=A(te,[["__scopeId","data-v-097a281b"]]),ue=$({__name:"PolicyListView",setup(z){return(T,p)=>{const w=d("RouteTitle"),e=d("RouterView"),h=d("DataSource"),S=d("AppView"),b=d("RouteView");return s(),n(h,{src:"/me"},{default:t(({data:f})=>[f?(s(),n(b,{key:0,name:"policy-list-view",params:{page:1,size:f.pageSize,mesh:"",policyPath:"",policy:""}},{default:t(({route:a,t:g})=>[r(S,null,{title:t(()=>[y("h2",null,[r(w,{title:g("policies.routes.items.title")},null,8,["title"])])]),default:t(()=>[o(),r(h,{src:"/*/policy-types"},{default:t(({data:c,error:u})=>[u?(s(),n(x,{key:0,error:u},null,8,["error"])):c===void 0?(s(),n(U,{key:1})):c.policies.length===0?(s(),n(M,{key:2})):(s(),n(h,{key:3,src:`/meshes/${a.params.mesh}/policy-path/${a.params.policyPath}?page=${a.params.page}&size=${a.params.size}`},{default:t(({data:i,error:_})=>[r(h,{src:`/mesh-insights/${a.params.mesh}`},{default:t(({data:C})=>[(s(),n(ae,{key:a.params.policyPath,"page-number":a.params.page,"page-size":a.params.size,"current-policy-type":c.policies.find(P=>P.path===a.params.policyPath)??c.policies[0],"policy-types":c.policies,"mesh-insight":C,"policy-collection":i,"policy-error":_,"is-selected-row":P=>P.name===a.params.policy,onChange:a.update},null,8,["page-number","page-size","current-policy-type","policy-types","mesh-insight","policy-collection","policy-error","is-selected-row","onChange"])),o(),a.params.policy?(s(),n(e,{key:0},{default:t(P=>[r(Z,{onClose:R=>a.replace({name:"policy-list-view",params:{mesh:a.params.mesh,policyPath:a.params.policyPath},query:{page:a.params.page,size:a.params.size}})},{default:t(()=>[(s(),n(D(P.Component),{policy:i==null?void 0:i.items.find(R=>R.name===a.params.policy),"policy-type":c.policies.find(R=>R.path===a.params.policyPath)},null,8,["policy","policy-type"]))]),_:2},1032,["onClose"])]),_:2},1024)):k("",!0)]),_:2},1032,["src"])]),_:2},1032,["src"]))]),_:2},1024)]),_:2},1024)]),_:2},1032,["params"])):k("",!0)]),_:1})}}});export{ue as default}; diff --git a/app/kuma-ui/pkg/resources/data/assets/PolicySummaryView-4bf5efaa.js b/app/kuma-ui/pkg/resources/data/assets/PolicySummaryView-d39875de.js similarity index 89% rename from app/kuma-ui/pkg/resources/data/assets/PolicySummaryView-4bf5efaa.js rename to app/kuma-ui/pkg/resources/data/assets/PolicySummaryView-d39875de.js index 5910b0434af4..6702f315c5a4 100644 --- a/app/kuma-ui/pkg/resources/data/assets/PolicySummaryView-4bf5efaa.js +++ b/app/kuma-ui/pkg/resources/data/assets/PolicySummaryView-d39875de.js @@ -1 +1 @@ -import{d as V,a as l,o as i,b as d,w as a,e as m,m as s,f as t,t as p,c as _,X as b,p as u,F as E,v as F,x as P,Q as B,_ as T}from"./index-5f4feb06.js";import{_ as $}from"./EmptyBlock.vue_vue_type_script_setup_true_lang-7f79002a.js";import{_ as D}from"./ResourceCodeBlock.vue_vue_type_style_index_0_lang-8c675a57.js";import"./CodeBlock.vue_vue_type_style_index_0_lang-6de3c828.js";import"./uniqueId-90cc9b93.js";import"./CopyButton-2ffc661c.js";import"./index-fce48c05.js";import"./toYaml-4e00099e.js";const I=r=>(F("data-v-e6c20b15"),r=r(),P(),r),M={class:"summary-title-wrapper"},N=I(()=>s("img",{"aria-hidden":"true",src:B},null,-1)),Q={class:"summary-title"},q={key:1,class:"stack"},A={key:0},K={class:"mt-4 stack"},L={key:0},X={class:"mt-4"},j=V({__name:"PolicySummaryView",props:{policy:{default:void 0},policyType:{}},setup(r){const c=r;return(z,G)=>{const f=l("RouteTitle"),v=l("RouterLink"),R=l("KBadge"),k=l("DataSource"),w=l("AppView"),x=l("RouteView");return i(),d(x,{name:"policy-summary-view",params:{mesh:"",policyPath:"",policy:"",codeSearch:"",codeFilter:!1,codeRegExp:!1}},{default:a(({route:e,t:n})=>[m(w,null,{title:a(()=>[s("div",M,[N,t(),s("h2",Q,[m(v,{to:{name:"policy-detail-view",params:{mesh:e.params.mesh,policyPath:e.params.policyPath,policy:e.params.policy}}},{default:a(()=>[m(f,{title:n("policies.routes.item.title",{name:e.params.policy})},null,8,["title"])]),_:2},1032,["to"])])])]),default:a(()=>{var h;return[t(),c.policy===void 0?(i(),d($,{key:0},{message:a(()=>[s("p",null,p(n("common.collection.summary.empty_message",{type:c.policyType.name})),1)]),default:a(()=>[t(p(n("common.collection.summary.empty_title",{type:c.policyType.name}))+" ",1)]),_:2},1024)):(i(),_("div",q,[(h=c.policy.spec)!=null&&h.targetRef?(i(),_("div",A,[s("h3",null,p(n("policies.routes.item.overview")),1),t(),s("div",K,[m(b,null,{title:a(()=>[t(p(n("http.api.property.targetRef")),1)]),body:a(()=>{var o;return[(o=c.policy.spec)!=null&&o.targetRef?(i(),d(R,{key:0,appearance:"neutral"},{default:a(()=>[t(p(c.policy.spec.targetRef.kind),1),c.policy.spec.targetRef.name?(i(),_("span",L,[t(":"),s("b",null,p(c.policy.spec.targetRef.name),1)])):u("",!0)]),_:1})):(i(),_(E,{key:1},[t(p(n("common.detail.none")),1)],64))]}),_:2},1024)])])):u("",!0),t(),s("div",null,[s("h3",null,p(n("policies.routes.item.config")),1),t(),s("div",X,[m(D,{resource:c.policy.config,"is-searchable":"",query:e.params.codeSearch,"is-filter-mode":e.params.codeFilter,"is-reg-exp-mode":e.params.codeRegExp,onQueryChange:o=>e.update({codeSearch:o}),onFilterModeChange:o=>e.update({codeFilter:o}),onRegExpModeChange:o=>e.update({codeRegExp:o})},{default:a(({copy:o,copying:C})=>[C?(i(),d(k,{key:0,src:`/meshes/${e.params.mesh}/policy-path/${e.params.policyPath}/policy/${e.params.policy}/as/kubernetes?no-store`,onChange:y=>{o(g=>g(y))},onError:y=>{o((g,S)=>S(y))}},null,8,["src","onChange","onError"])):u("",!0)]),_:2},1032,["resource","query","is-filter-mode","is-reg-exp-mode","onQueryChange","onFilterModeChange","onRegExpModeChange"])])])]))]}),_:2},1024)]),_:1})}}});const oe=T(j,[["__scopeId","data-v-e6c20b15"]]);export{oe as default}; +import{d as V,a as l,o as i,b as d,w as a,e as m,m as s,f as t,t as p,c as _,X as b,p as u,F as E,v as F,x as P,Q as B,_ as T}from"./index-0dcf85b4.js";import{_ as $}from"./EmptyBlock.vue_vue_type_script_setup_true_lang-6ff90078.js";import{_ as D}from"./ResourceCodeBlock.vue_vue_type_style_index_0_lang-c72a10ad.js";import"./CodeBlock.vue_vue_type_style_index_0_lang-95cf08c2.js";import"./uniqueId-90cc9b93.js";import"./CopyButton-dcdce1f2.js";import"./index-fce48c05.js";import"./toYaml-4e00099e.js";const I=r=>(F("data-v-e6c20b15"),r=r(),P(),r),M={class:"summary-title-wrapper"},N=I(()=>s("img",{"aria-hidden":"true",src:B},null,-1)),Q={class:"summary-title"},q={key:1,class:"stack"},A={key:0},K={class:"mt-4 stack"},L={key:0},X={class:"mt-4"},j=V({__name:"PolicySummaryView",props:{policy:{default:void 0},policyType:{}},setup(r){const c=r;return(z,G)=>{const f=l("RouteTitle"),v=l("RouterLink"),R=l("KBadge"),k=l("DataSource"),w=l("AppView"),x=l("RouteView");return i(),d(x,{name:"policy-summary-view",params:{mesh:"",policyPath:"",policy:"",codeSearch:"",codeFilter:!1,codeRegExp:!1}},{default:a(({route:e,t:n})=>[m(w,null,{title:a(()=>[s("div",M,[N,t(),s("h2",Q,[m(v,{to:{name:"policy-detail-view",params:{mesh:e.params.mesh,policyPath:e.params.policyPath,policy:e.params.policy}}},{default:a(()=>[m(f,{title:n("policies.routes.item.title",{name:e.params.policy})},null,8,["title"])]),_:2},1032,["to"])])])]),default:a(()=>{var h;return[t(),c.policy===void 0?(i(),d($,{key:0},{message:a(()=>[s("p",null,p(n("common.collection.summary.empty_message",{type:c.policyType.name})),1)]),default:a(()=>[t(p(n("common.collection.summary.empty_title",{type:c.policyType.name}))+" ",1)]),_:2},1024)):(i(),_("div",q,[(h=c.policy.spec)!=null&&h.targetRef?(i(),_("div",A,[s("h3",null,p(n("policies.routes.item.overview")),1),t(),s("div",K,[m(b,null,{title:a(()=>[t(p(n("http.api.property.targetRef")),1)]),body:a(()=>{var o;return[(o=c.policy.spec)!=null&&o.targetRef?(i(),d(R,{key:0,appearance:"neutral"},{default:a(()=>[t(p(c.policy.spec.targetRef.kind),1),c.policy.spec.targetRef.name?(i(),_("span",L,[t(":"),s("b",null,p(c.policy.spec.targetRef.name),1)])):u("",!0)]),_:1})):(i(),_(E,{key:1},[t(p(n("common.detail.none")),1)],64))]}),_:2},1024)])])):u("",!0),t(),s("div",null,[s("h3",null,p(n("policies.routes.item.config")),1),t(),s("div",X,[m(D,{resource:c.policy.config,"is-searchable":"",query:e.params.codeSearch,"is-filter-mode":e.params.codeFilter,"is-reg-exp-mode":e.params.codeRegExp,onQueryChange:o=>e.update({codeSearch:o}),onFilterModeChange:o=>e.update({codeFilter:o}),onRegExpModeChange:o=>e.update({codeRegExp:o})},{default:a(({copy:o,copying:C})=>[C?(i(),d(k,{key:0,src:`/meshes/${e.params.mesh}/policy-path/${e.params.policyPath}/policy/${e.params.policy}/as/kubernetes?no-store`,onChange:y=>{o(g=>g(y))},onError:y=>{o((g,S)=>S(y))}},null,8,["src","onChange","onError"])):u("",!0)]),_:2},1032,["resource","query","is-filter-mode","is-reg-exp-mode","onQueryChange","onFilterModeChange","onRegExpModeChange"])])])]))]}),_:2},1024)]),_:1})}}});const oe=T(j,[["__scopeId","data-v-e6c20b15"]]);export{oe as default}; diff --git a/app/kuma-ui/pkg/resources/data/assets/PolicyTypeTag-e459baad.js b/app/kuma-ui/pkg/resources/data/assets/PolicyTypeTag-cb9c8f52.js similarity index 99% rename from app/kuma-ui/pkg/resources/data/assets/PolicyTypeTag-e459baad.js rename to app/kuma-ui/pkg/resources/data/assets/PolicyTypeTag-cb9c8f52.js index 81309919e424..9b7f6f24051b 100644 --- a/app/kuma-ui/pkg/resources/data/assets/PolicyTypeTag-e459baad.js +++ b/app/kuma-ui/pkg/resources/data/assets/PolicyTypeTag-cb9c8f52.js @@ -1 +1 @@ -import{d as Q,o as e,c as t,b as l,l as m,an as p,f as n,r as d,t as z,_ as w}from"./index-5f4feb06.js";const B="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",a="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=",c="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",r="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=",i="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",g=""+new URL("Retry-8b2ec896.png",import.meta.url).href,C=""+new URL("Timeout-dcabf0f7.jpg",import.meta.url).href,D="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAYAAABXAvmHAAAABGdBTUEAALGPC/xhBQAAADhlWElmTU0AKgAAAAgAAYdpAAQAAAABAAAAGgAAAAAAAqACAAQAAAABAAAAMKADAAQAAAABAAAAMAAAAAD4/042AAABYklEQVRoBe2av0oDQRDGZxbRxhfwDRI0NhKtRAhWPkM6Ex9KTOczWElArBRsAuEeIS+QRpvJfJdcqkWRLWYH5or7s7N797v59j4Odph2m4hw//xywsT3JHQqJMddrIajcq2Jaalcs2bx+cTMAi7Grn9xfSI/388kMsJ19RvznA+Pxs3X+yoh867gkV1NNJjBzr3BcKpT5rH6rOcAmR5SO+dzQQdtYE/4YB2w5hGVPdXmNnnSfCvYUz7kpzVewFor9woc/DeDb/OXX4fcjO728b/67jsWnLhXgHtnw/anqCAJpkPdKxAvYDp/9OHhQtYKhAtZKxAuZK1AuJC1AuFC1gqEC1krEC5krUC4kLUC4ULWCoQLWSsQLmStQLhQKFCYAaxSrgvvYTYc7AnL92YEpQ9WdqxSzkrvYzUe7Lwt8rh6dVMn0WVL6yWaxcdtQtUHCidIG7pY9cddsUfL3sF6LbfZAN5wf/+tIkpkAAAAAElFTkSuQmCC",f="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==",v="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=",o="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",Y=""+new URL("VirtualOutbound-3bb05b70.png",import.meta.url).href,u={class:"policy-type-tag"},G=["src"],E=Q({__name:"PolicyTypeTag",props:{policyType:{type:String,required:!0}},setup(T){const s={CircuitBreaker:B,FaultInjection:a,HealthCheck:c,MeshAccessLog:D,MeshCircuitBreaker:B,MeshFaultInjection:a,MeshHealthCheck:c,MeshProxyPatch:r,MeshRateLimit:i,MeshRetry:g,MeshTimeout:C,MeshTrace:o,MeshTrafficPermission:f,ProxyTemplate:r,RateLimit:i,Retry:g,Timeout:C,TrafficLog:D,TrafficPermission:f,TrafficRoute:v,TrafficTrace:o,VirtualOutbound:Y},A=T;return(h,O)=>(e(),t("span",u,[s[A.policyType]?(e(),t("img",{key:0,class:"policy-type-tag-icon",src:s[A.policyType],alt:""},null,8,G)):(e(),l(m(p),{key:1})),n(),d(h.$slots,"default",{},()=>[n(z(A.policyType),1)],!0)]))}});const x=w(E,[["__scopeId","data-v-9604a2cd"]]);export{x as P}; +import{d as Q,o as e,c as t,b as l,l as m,an as p,f as n,r as d,t as z,_ as w}from"./index-0dcf85b4.js";const B="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",a="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=",c="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",r="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=",i="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",g=""+new URL("Retry-8b2ec896.png",import.meta.url).href,C=""+new URL("Timeout-dcabf0f7.jpg",import.meta.url).href,D="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAYAAABXAvmHAAAABGdBTUEAALGPC/xhBQAAADhlWElmTU0AKgAAAAgAAYdpAAQAAAABAAAAGgAAAAAAAqACAAQAAAABAAAAMKADAAQAAAABAAAAMAAAAAD4/042AAABYklEQVRoBe2av0oDQRDGZxbRxhfwDRI0NhKtRAhWPkM6Ex9KTOczWElArBRsAuEeIS+QRpvJfJdcqkWRLWYH5or7s7N797v59j4Odph2m4hw//xywsT3JHQqJMddrIajcq2Jaalcs2bx+cTMAi7Grn9xfSI/388kMsJ19RvznA+Pxs3X+yoh867gkV1NNJjBzr3BcKpT5rH6rOcAmR5SO+dzQQdtYE/4YB2w5hGVPdXmNnnSfCvYUz7kpzVewFor9woc/DeDb/OXX4fcjO728b/67jsWnLhXgHtnw/anqCAJpkPdKxAvYDp/9OHhQtYKhAtZKxAuZK1AuJC1AuFC1gqEC1krEC5krUC4kLUC4ULWCoQLWSsQLmStQLhQKFCYAaxSrgvvYTYc7AnL92YEpQ9WdqxSzkrvYzUe7Lwt8rh6dVMn0WVL6yWaxcdtQtUHCidIG7pY9cddsUfL3sF6LbfZAN5wf/+tIkpkAAAAAElFTkSuQmCC",f="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==",v="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=",o="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",Y=""+new URL("VirtualOutbound-3bb05b70.png",import.meta.url).href,u={class:"policy-type-tag"},G=["src"],E=Q({__name:"PolicyTypeTag",props:{policyType:{type:String,required:!0}},setup(T){const s={CircuitBreaker:B,FaultInjection:a,HealthCheck:c,MeshAccessLog:D,MeshCircuitBreaker:B,MeshFaultInjection:a,MeshHealthCheck:c,MeshProxyPatch:r,MeshRateLimit:i,MeshRetry:g,MeshTimeout:C,MeshTrace:o,MeshTrafficPermission:f,ProxyTemplate:r,RateLimit:i,Retry:g,Timeout:C,TrafficLog:D,TrafficPermission:f,TrafficRoute:v,TrafficTrace:o,VirtualOutbound:Y},A=T;return(h,O)=>(e(),t("span",u,[s[A.policyType]?(e(),t("img",{key:0,class:"policy-type-tag-icon",src:s[A.policyType],alt:""},null,8,G)):(e(),l(m(p),{key:1})),n(),d(h.$slots,"default",{},()=>[n(z(A.policyType),1)],!0)]))}});const x=w(E,[["__scopeId","data-v-9604a2cd"]]);export{x as P}; diff --git a/app/kuma-ui/pkg/resources/data/assets/ResourceCodeBlock.vue_vue_type_style_index_0_lang-8c675a57.js b/app/kuma-ui/pkg/resources/data/assets/ResourceCodeBlock.vue_vue_type_style_index_0_lang-c72a10ad.js similarity index 90% rename from app/kuma-ui/pkg/resources/data/assets/ResourceCodeBlock.vue_vue_type_style_index_0_lang-8c675a57.js rename to app/kuma-ui/pkg/resources/data/assets/ResourceCodeBlock.vue_vue_type_style_index_0_lang-c72a10ad.js index 38eb4704655d..6c41e501ba5b 100644 --- a/app/kuma-ui/pkg/resources/data/assets/ResourceCodeBlock.vue_vue_type_style_index_0_lang-8c675a57.js +++ b/app/kuma-ui/pkg/resources/data/assets/ResourceCodeBlock.vue_vue_type_style_index_0_lang-c72a10ad.js @@ -1 +1 @@ -import{_ as k}from"./CodeBlock.vue_vue_type_style_index_0_lang-6de3c828.js";import{C as B}from"./CopyButton-2ffc661c.js";import{d as T,k as K,H as M,B as w,a as g,o as q,b as R,w as l,e as m,l as p,f as x,t as S,r as E}from"./index-5f4feb06.js";import{t as F}from"./toYaml-4e00099e.js";const $=T({__name:"ResourceCodeBlock",props:{resource:{},codeMaxHeight:{default:void 0},isSearchable:{type:Boolean,default:!1},query:{default:""},isFilterMode:{type:Boolean,default:!1},isRegExpMode:{type:Boolean,default:!1}},emits:["query-change","filter-mode-change","reg-exp-mode-change"],setup(h,{emit:_}){const{t:i}=K(),t=h,c=_,b=M(()=>f(t.resource)),u=w(()=>{});let d=new Promise((a,e)=>{u.value=n=>n(a,e)});const v=async a=>{let e;try{e=await d}finally{d=new Promise((n,s)=>{u.value=r=>r(n,s)})}return e};async function C(){return f(await v())}function f(a){const{creationTime:e,modificationTime:n,...s}=a;return F(s)}return(a,e)=>{const n=g("KTooltip"),s=g("KToggle");return q(),R(s,{toggled:!1},{default:l(({isToggled:r,toggle:y})=>[m(k,{language:"yaml",code:b.value,"is-searchable":t.isSearchable,"code-max-height":t.codeMaxHeight,query:t.query,"is-filter-mode":t.isFilterMode,"is-reg-exp-mode":t.isRegExpMode,onQueryChange:e[0]||(e[0]=o=>c("query-change",o)),onFilterModeChange:e[1]||(e[1]=o=>c("filter-mode-change",o)),onRegExpModeChange:e[2]||(e[2]=o=>c("reg-exp-mode-change",o))},{"secondary-actions":l(()=>[m(n,{class:"kubernetes-copy-button-tooltip",label:p(i)("common.copyKubernetesText"),placement:"bottomEnd","max-width":"200","position-fixed":""},{default:l(()=>[m(B,{class:"kubernetes-copy-button","get-text":C,"copy-text":p(i)("common.copyKubernetesText"),"has-border":"","hide-title":"",onClick:()=>{r.value===!1&&y()}},{default:l(()=>[x(S(p(i)("common.copyKubernetesShortText")),1)]),_:2},1032,["copy-text","onClick"])]),_:2},1032,["label"])]),_:2},1032,["code","is-searchable","code-max-height","query","is-filter-mode","is-reg-exp-mode"]),x(),E(a.$slots,"default",{copy:o=>{r.value!==!1&&y(),u.value(o)},copying:r.value})]),_:3})}}});export{$ as _}; +import{_ as k}from"./CodeBlock.vue_vue_type_style_index_0_lang-95cf08c2.js";import{C as B}from"./CopyButton-dcdce1f2.js";import{d as T,k as K,H as M,B as w,a as g,o as q,b as R,w as l,e as m,l as p,f as x,t as S,r as E}from"./index-0dcf85b4.js";import{t as F}from"./toYaml-4e00099e.js";const $=T({__name:"ResourceCodeBlock",props:{resource:{},codeMaxHeight:{default:void 0},isSearchable:{type:Boolean,default:!1},query:{default:""},isFilterMode:{type:Boolean,default:!1},isRegExpMode:{type:Boolean,default:!1}},emits:["query-change","filter-mode-change","reg-exp-mode-change"],setup(h,{emit:_}){const{t:i}=K(),t=h,c=_,b=M(()=>f(t.resource)),u=w(()=>{});let d=new Promise((a,e)=>{u.value=n=>n(a,e)});const v=async a=>{let e;try{e=await d}finally{d=new Promise((n,s)=>{u.value=r=>r(n,s)})}return e};async function C(){return f(await v())}function f(a){const{creationTime:e,modificationTime:n,...s}=a;return F(s)}return(a,e)=>{const n=g("KTooltip"),s=g("KToggle");return q(),R(s,{toggled:!1},{default:l(({isToggled:r,toggle:y})=>[m(k,{language:"yaml",code:b.value,"is-searchable":t.isSearchable,"code-max-height":t.codeMaxHeight,query:t.query,"is-filter-mode":t.isFilterMode,"is-reg-exp-mode":t.isRegExpMode,onQueryChange:e[0]||(e[0]=o=>c("query-change",o)),onFilterModeChange:e[1]||(e[1]=o=>c("filter-mode-change",o)),onRegExpModeChange:e[2]||(e[2]=o=>c("reg-exp-mode-change",o))},{"secondary-actions":l(()=>[m(n,{class:"kubernetes-copy-button-tooltip",label:p(i)("common.copyKubernetesText"),placement:"bottomEnd","max-width":"200","position-fixed":""},{default:l(()=>[m(B,{class:"kubernetes-copy-button","get-text":C,"copy-text":p(i)("common.copyKubernetesText"),"has-border":"","hide-title":"",onClick:()=>{r.value===!1&&y()}},{default:l(()=>[x(S(p(i)("common.copyKubernetesShortText")),1)]),_:2},1032,["copy-text","onClick"])]),_:2},1032,["label"])]),_:2},1032,["code","is-searchable","code-max-height","query","is-filter-mode","is-reg-exp-mode"]),x(),E(a.$slots,"default",{copy:o=>{r.value!==!1&&y(),u.value(o)},copying:r.value})]),_:3})}}});export{$ as _}; diff --git a/app/kuma-ui/pkg/resources/data/assets/ServiceConfigView-304ccffa.js b/app/kuma-ui/pkg/resources/data/assets/ServiceConfigView-4a049b5a.js similarity index 77% rename from app/kuma-ui/pkg/resources/data/assets/ServiceConfigView-304ccffa.js rename to app/kuma-ui/pkg/resources/data/assets/ServiceConfigView-4a049b5a.js index 295080216e0f..9848052361f1 100644 --- a/app/kuma-ui/pkg/resources/data/assets/ServiceConfigView-304ccffa.js +++ b/app/kuma-ui/pkg/resources/data/assets/ServiceConfigView-4a049b5a.js @@ -1 +1 @@ -import{_ as x}from"./EmptyBlock.vue_vue_type_script_setup_true_lang-7f79002a.js";import{E as k}from"./ErrorBlock-558c0398.js";import{_ as w}from"./LoadingBlock.vue_vue_type_script_setup_true_lang-e7fd5a8b.js";import{_ as y}from"./ResourceCodeBlock.vue_vue_type_style_index_0_lang-8c675a57.js";import{d as R,a as n,o as r,b as s,w as a,e as i,m,f as V,t as E,p as $}from"./index-5f4feb06.js";import"./index-fce48c05.js";import"./TextWithCopyButton-1098d691.js";import"./CopyButton-2ffc661c.js";import"./WarningIcon.vue_vue_type_script_setup_true_lang-cab7af3a.js";import"./CodeBlock.vue_vue_type_style_index_0_lang-6de3c828.js";import"./uniqueId-90cc9b93.js";import"./toYaml-4e00099e.js";const H=R({__name:"ServiceConfigView",setup(F){return(B,M)=>{const u=n("RouteTitle"),p=n("DataSource"),f=n("KCard"),g=n("AppView"),h=n("RouteView");return r(),s(h,{name:"service-config-view",params:{mesh:"",service:"",codeSearch:"",codeFilter:!1,codeRegExp:!1}},{default:a(({route:e,t:l})=>[i(g,null,{title:a(()=>[m("h2",null,[i(u,{title:l("services.routes.item.navigation.service-config-view")},null,8,["title"])])]),default:a(()=>[V(),i(f,null,{default:a(()=>[m("div",null,[i(p,{src:`/meshes/${e.params.mesh}/external-services/for/${e.params.service}`},{default:a(({data:t,error:d})=>[d?(r(),s(k,{key:0,error:d},null,8,["error"])):t===void 0?(r(),s(w,{key:1})):t===null?(r(),s(x,{key:2,"data-testid":"no-matching-external-service"},{title:a(()=>[m("p",null,E(l("services.detail.no_matching_external_service",{name:e.params.service})),1)]),_:2},1024)):(r(),s(y,{key:3,resource:t.config,"is-searchable":"",query:e.params.codeSearch,"is-filter-mode":e.params.codeFilter,"is-reg-exp-mode":e.params.codeRegExp,onQueryChange:o=>e.update({codeSearch:o}),onFilterModeChange:o=>e.update({codeFilter:o}),onRegExpModeChange:o=>e.update({codeRegExp:o})},{default:a(({copy:o,copying:C})=>[C?(r(),s(p,{key:0,src:`/meshes/${t.mesh}/external-service/${t.name}/as/kubernetes?no-store`,onChange:c=>{o(_=>_(c))},onError:c=>{o((_,v)=>v(c))}},null,8,["src","onChange","onError"])):$("",!0)]),_:2},1032,["resource","query","is-filter-mode","is-reg-exp-mode","onQueryChange","onFilterModeChange","onRegExpModeChange"]))]),_:2},1032,["src"])])]),_:2},1024)]),_:2},1024)]),_:1})}}});export{H as default}; +import{_ as x}from"./EmptyBlock.vue_vue_type_script_setup_true_lang-6ff90078.js";import{E as k}from"./ErrorBlock-70a14ad9.js";import{_ as w}from"./LoadingBlock.vue_vue_type_script_setup_true_lang-2e81faa2.js";import{_ as y}from"./ResourceCodeBlock.vue_vue_type_style_index_0_lang-c72a10ad.js";import{d as R,a as n,o as r,b as s,w as a,e as i,m,f as V,t as E,p as $}from"./index-0dcf85b4.js";import"./index-fce48c05.js";import"./TextWithCopyButton-da18080b.js";import"./CopyButton-dcdce1f2.js";import"./WarningIcon.vue_vue_type_script_setup_true_lang-d54f4898.js";import"./CodeBlock.vue_vue_type_style_index_0_lang-95cf08c2.js";import"./uniqueId-90cc9b93.js";import"./toYaml-4e00099e.js";const H=R({__name:"ServiceConfigView",setup(F){return(B,M)=>{const u=n("RouteTitle"),p=n("DataSource"),f=n("KCard"),g=n("AppView"),h=n("RouteView");return r(),s(h,{name:"service-config-view",params:{mesh:"",service:"",codeSearch:"",codeFilter:!1,codeRegExp:!1}},{default:a(({route:e,t:l})=>[i(g,null,{title:a(()=>[m("h2",null,[i(u,{title:l("services.routes.item.navigation.service-config-view")},null,8,["title"])])]),default:a(()=>[V(),i(f,null,{default:a(()=>[m("div",null,[i(p,{src:`/meshes/${e.params.mesh}/external-services/for/${e.params.service}`},{default:a(({data:t,error:d})=>[d?(r(),s(k,{key:0,error:d},null,8,["error"])):t===void 0?(r(),s(w,{key:1})):t===null?(r(),s(x,{key:2,"data-testid":"no-matching-external-service"},{title:a(()=>[m("p",null,E(l("services.detail.no_matching_external_service",{name:e.params.service})),1)]),_:2},1024)):(r(),s(y,{key:3,resource:t.config,"is-searchable":"",query:e.params.codeSearch,"is-filter-mode":e.params.codeFilter,"is-reg-exp-mode":e.params.codeRegExp,onQueryChange:o=>e.update({codeSearch:o}),onFilterModeChange:o=>e.update({codeFilter:o}),onRegExpModeChange:o=>e.update({codeRegExp:o})},{default:a(({copy:o,copying:C})=>[C?(r(),s(p,{key:0,src:`/meshes/${t.mesh}/external-service/${t.name}/as/kubernetes?no-store`,onChange:c=>{o(_=>_(c))},onError:c=>{o((_,v)=>v(c))}},null,8,["src","onChange","onError"])):$("",!0)]),_:2},1032,["resource","query","is-filter-mode","is-reg-exp-mode","onQueryChange","onFilterModeChange","onRegExpModeChange"]))]),_:2},1032,["src"])])]),_:2},1024)]),_:2},1024)]),_:1})}}});export{H as default}; diff --git a/app/kuma-ui/pkg/resources/data/assets/ServiceDataPlaneProxiesView-eeeeacdb.js b/app/kuma-ui/pkg/resources/data/assets/ServiceDataPlaneProxiesView-acbe5ebe.js similarity index 82% rename from app/kuma-ui/pkg/resources/data/assets/ServiceDataPlaneProxiesView-eeeeacdb.js rename to app/kuma-ui/pkg/resources/data/assets/ServiceDataPlaneProxiesView-acbe5ebe.js index 2a2bdaee15f9..2d886adfc9c6 100644 --- a/app/kuma-ui/pkg/resources/data/assets/ServiceDataPlaneProxiesView-eeeeacdb.js +++ b/app/kuma-ui/pkg/resources/data/assets/ServiceDataPlaneProxiesView-acbe5ebe.js @@ -1 +1 @@ -import{E as C}from"./ErrorBlock-558c0398.js";import{D as S,F as V}from"./FilterBar-a4902129.js";import{S as x}from"./SummaryView-46a73d2c.js";import{d as z,a as t,o as i,b as l,w as s,e as r,m as P,f as n,t as k,C as q,p as u,_ as T}from"./index-5f4feb06.js";import"./index-fce48c05.js";import"./TextWithCopyButton-1098d691.js";import"./CopyButton-2ffc661c.js";import"./WarningIcon.vue_vue_type_script_setup_true_lang-cab7af3a.js";import"./AppCollection-4b66f394.js";import"./EmptyBlock.vue_vue_type_script_setup_true_lang-7f79002a.js";import"./StatusBadge-2db39c5c.js";import"./uniqueId-90cc9b93.js";const R=z({__name:"ServiceDataPlaneProxiesView",setup($){return(B,N)=>{const y=t("RouteTitle"),f=t("KSelect"),g=t("KCard"),v=t("RouterView"),m=t("DataSource"),w=t("AppView"),h=t("RouteView");return i(),l(m,{src:"/me"},{default:s(({data:c})=>[c?(i(),l(h,{key:0,name:"service-data-plane-proxies-view",params:{page:1,size:c.pageSize,query:"",dataplaneType:"all",s:"",mesh:"",service:"",dataPlane:""}},{default:s(({can:b,route:e,t:d})=>[r(w,null,{title:s(()=>[P("h2",null,[r(y,{title:d("services.routes.item.navigation.service-data-plane-proxies-view")},null,8,["title"])])]),default:s(()=>[n(),r(m,{src:`/meshes/${e.params.mesh}/dataplanes/for/${e.params.service}/of/${e.params.dataplaneType}?page=${e.params.page}&size=${e.params.size}&search=${e.params.s}`},{default:s(({data:o,error:p})=>[r(g,null,{default:s(()=>[p!==void 0?(i(),l(C,{key:0,error:p},null,8,["error"])):(i(),l(S,{key:1,"data-testid":"data-plane-collection","page-number":e.params.page,"page-size":e.params.size,total:o==null?void 0:o.total,items:o==null?void 0:o.items,error:p,"is-selected-row":a=>a.name===e.params.dataPlane,"summary-route-name":"service-data-plane-summary-view","is-global-mode":b("use zones"),onChange:e.update},{toolbar:s(()=>[r(V,{class:"data-plane-proxy-filter",placeholder:"tag: 'kuma.io/protocol: http'",query:e.params.query,fields:{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"}},onFieldsChange:a=>e.update({query:a.query,s:a.query.length>0?JSON.stringify(a.fields):""})},null,8,["placeholder","query","fields","onFieldsChange"]),n(),r(f,{class:"filter-select",label:"Type",items:["all","standard","builtin","delegated"].map(a=>({value:a,label:d(`data-planes.type.${a}`),selected:a===e.params.dataplaneType})),appearance:"select",onSelected:a=>e.update({dataplaneType:String(a.value)})},{"item-template":s(({item:a})=>[n(k(a.label),1)]),_:2},1032,["items","onSelected"])]),_:2},1032,["page-number","page-size","total","items","error","is-selected-row","is-global-mode","onChange"]))]),_:2},1024),n(),e.params.dataPlane?(i(),l(v,{key:0},{default:s(a=>[r(x,{onClose:_=>e.replace({name:"service-data-plane-proxies-view",params:{mesh:e.params.mesh},query:{page:e.params.page,size:e.params.size}})},{default:s(()=>[(i(),l(q(a.Component),{name:e.params.dataPlane,"dataplane-overview":o==null?void 0:o.items.find(_=>_.name===e.params.dataPlane)},null,8,["name","dataplane-overview"]))]),_:2},1032,["onClose"])]),_:2},1024)):u("",!0)]),_:2},1032,["src"])]),_:2},1024)]),_:2},1032,["params"])):u("",!0)]),_:1})}}});const Q=T(R,[["__scopeId","data-v-8964be0e"]]);export{Q as default}; +import{E as C}from"./ErrorBlock-70a14ad9.js";import{D as S,F as V}from"./FilterBar-79da2c55.js";import{S as x}from"./SummaryView-8d0a7896.js";import{d as z,a as t,o as i,b as l,w as s,e as r,m as P,f as n,t as k,C as q,p as u,_ as T}from"./index-0dcf85b4.js";import"./index-fce48c05.js";import"./TextWithCopyButton-da18080b.js";import"./CopyButton-dcdce1f2.js";import"./WarningIcon.vue_vue_type_script_setup_true_lang-d54f4898.js";import"./AppCollection-a7a0983f.js";import"./EmptyBlock.vue_vue_type_script_setup_true_lang-6ff90078.js";import"./StatusBadge-e7326f60.js";import"./uniqueId-90cc9b93.js";const R=z({__name:"ServiceDataPlaneProxiesView",setup($){return(B,N)=>{const y=t("RouteTitle"),f=t("KSelect"),g=t("KCard"),v=t("RouterView"),m=t("DataSource"),w=t("AppView"),h=t("RouteView");return i(),l(m,{src:"/me"},{default:s(({data:c})=>[c?(i(),l(h,{key:0,name:"service-data-plane-proxies-view",params:{page:1,size:c.pageSize,query:"",dataplaneType:"all",s:"",mesh:"",service:"",dataPlane:""}},{default:s(({can:b,route:e,t:d})=>[r(w,null,{title:s(()=>[P("h2",null,[r(y,{title:d("services.routes.item.navigation.service-data-plane-proxies-view")},null,8,["title"])])]),default:s(()=>[n(),r(m,{src:`/meshes/${e.params.mesh}/dataplanes/for/${e.params.service}/of/${e.params.dataplaneType}?page=${e.params.page}&size=${e.params.size}&search=${e.params.s}`},{default:s(({data:o,error:p})=>[r(g,null,{default:s(()=>[p!==void 0?(i(),l(C,{key:0,error:p},null,8,["error"])):(i(),l(S,{key:1,"data-testid":"data-plane-collection","page-number":e.params.page,"page-size":e.params.size,total:o==null?void 0:o.total,items:o==null?void 0:o.items,error:p,"is-selected-row":a=>a.name===e.params.dataPlane,"summary-route-name":"service-data-plane-summary-view","is-global-mode":b("use zones"),onChange:e.update},{toolbar:s(()=>[r(V,{class:"data-plane-proxy-filter",placeholder:"tag: 'kuma.io/protocol: http'",query:e.params.query,fields:{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"}},onFieldsChange:a=>e.update({query:a.query,s:a.query.length>0?JSON.stringify(a.fields):""})},null,8,["placeholder","query","fields","onFieldsChange"]),n(),r(f,{class:"filter-select",label:"Type",items:["all","standard","builtin","delegated"].map(a=>({value:a,label:d(`data-planes.type.${a}`),selected:a===e.params.dataplaneType})),appearance:"select",onSelected:a=>e.update({dataplaneType:String(a.value)})},{"item-template":s(({item:a})=>[n(k(a.label),1)]),_:2},1032,["items","onSelected"])]),_:2},1032,["page-number","page-size","total","items","error","is-selected-row","is-global-mode","onChange"]))]),_:2},1024),n(),e.params.dataPlane?(i(),l(v,{key:0},{default:s(a=>[r(x,{onClose:_=>e.replace({name:"service-data-plane-proxies-view",params:{mesh:e.params.mesh},query:{page:e.params.page,size:e.params.size}})},{default:s(()=>[(i(),l(q(a.Component),{name:e.params.dataPlane,"dataplane-overview":o==null?void 0:o.items.find(_=>_.name===e.params.dataPlane)},null,8,["name","dataplane-overview"]))]),_:2},1032,["onClose"])]),_:2},1024)):u("",!0)]),_:2},1032,["src"])]),_:2},1024)]),_:2},1032,["params"])):u("",!0)]),_:1})}}});const Q=T(R,[["__scopeId","data-v-8964be0e"]]);export{Q as default}; diff --git a/app/kuma-ui/pkg/resources/data/assets/ServiceDetailTabsView-56afd022.js b/app/kuma-ui/pkg/resources/data/assets/ServiceDetailTabsView-65997048.js similarity index 78% rename from app/kuma-ui/pkg/resources/data/assets/ServiceDetailTabsView-56afd022.js rename to app/kuma-ui/pkg/resources/data/assets/ServiceDetailTabsView-65997048.js index 1d6f227936bf..7d03d6db80c9 100644 --- a/app/kuma-ui/pkg/resources/data/assets/ServiceDetailTabsView-56afd022.js +++ b/app/kuma-ui/pkg/resources/data/assets/ServiceDetailTabsView-65997048.js @@ -1 +1 @@ -import{d as T,k as V,S as R,a as n,o as i,b as p,w as a,e as r,l as d,m as k,f as _,c as y,F as C,C as N}from"./index-5f4feb06.js";import{E as B}from"./ErrorBlock-558c0398.js";import{_ as g}from"./LoadingBlock.vue_vue_type_script_setup_true_lang-e7fd5a8b.js";import{N as D}from"./NavTabs-d4a6578a.js";import{T as S}from"./TextWithCopyButton-1098d691.js";import"./index-fce48c05.js";import"./WarningIcon.vue_vue_type_script_setup_true_lang-cab7af3a.js";import"./CopyButton-2ffc661c.js";const H=T({__name:"ServiceDetailTabsView",setup($){const{t:u}=V(),w=R();function b(v){var m;return(((m=w.getRoutes().find(e=>e.name==="service-detail-tabs-view"))==null?void 0:m.children)??[]).filter(e=>!(v.serviceType!=="external"&&e.name==="service-config-view"||v.serviceType==="external"&&e.name==="service-data-plane-proxies-view")).map(e=>{var s,o;const c=typeof e.name>"u"?(s=e.children)==null?void 0:s[0]:e,l=c.name,f=((o=c.meta)==null?void 0:o.module)??"";return{title:u(`services.routes.item.navigation.${l}`),routeName:l,module:f}})}return(v,h)=>{const m=n("RouteTitle"),e=n("RouterView"),c=n("DataSource"),l=n("AppView"),f=n("RouteView");return i(),p(f,{name:"service-detail-tabs-view",params:{mesh:"",service:""}},{default:a(({route:t})=>[r(l,{breadcrumbs:[{to:{name:"mesh-detail-view",params:{mesh:t.params.mesh}},text:t.params.mesh},{to:{name:"service-list-view",params:{mesh:t.params.mesh}},text:d(u)("services.routes.item.breadcrumbs")}]},{title:a(()=>[k("h1",null,[r(S,{text:t.params.service},{default:a(()=>[r(m,{title:d(u)("services.routes.item.title",{name:t.params.service})},null,8,["title"])]),_:2},1032,["text"])])]),default:a(()=>[_(),r(c,{src:`/meshes/${t.params.mesh}/service-insights/${t.params.service}`},{default:a(({data:s,error:o})=>[o?(i(),p(B,{key:0,error:o},null,8,["error"])):s===void 0?(i(),p(g,{key:1})):(i(),y(C,{key:2},[r(D,{class:"route-service-detail-view-tabs",tabs:b(s)},null,8,["tabs"]),_(),r(e,null,{default:a(x=>[(i(),p(N(x.Component),{data:s},null,8,["data"]))]),_:2},1024)],64))]),_:2},1032,["src"])]),_:2},1032,["breadcrumbs"])]),_:1})}}});export{H as default}; +import{d as T,k as V,S as R,a as n,o as i,b as p,w as a,e as r,l as d,m as k,f as _,c as y,F as C,C as N}from"./index-0dcf85b4.js";import{E as B}from"./ErrorBlock-70a14ad9.js";import{_ as g}from"./LoadingBlock.vue_vue_type_script_setup_true_lang-2e81faa2.js";import{N as D}from"./NavTabs-e7b14354.js";import{T as S}from"./TextWithCopyButton-da18080b.js";import"./index-fce48c05.js";import"./WarningIcon.vue_vue_type_script_setup_true_lang-d54f4898.js";import"./CopyButton-dcdce1f2.js";const H=T({__name:"ServiceDetailTabsView",setup($){const{t:u}=V(),w=R();function b(v){var m;return(((m=w.getRoutes().find(e=>e.name==="service-detail-tabs-view"))==null?void 0:m.children)??[]).filter(e=>!(v.serviceType!=="external"&&e.name==="service-config-view"||v.serviceType==="external"&&e.name==="service-data-plane-proxies-view")).map(e=>{var s,o;const c=typeof e.name>"u"?(s=e.children)==null?void 0:s[0]:e,l=c.name,f=((o=c.meta)==null?void 0:o.module)??"";return{title:u(`services.routes.item.navigation.${l}`),routeName:l,module:f}})}return(v,h)=>{const m=n("RouteTitle"),e=n("RouterView"),c=n("DataSource"),l=n("AppView"),f=n("RouteView");return i(),p(f,{name:"service-detail-tabs-view",params:{mesh:"",service:""}},{default:a(({route:t})=>[r(l,{breadcrumbs:[{to:{name:"mesh-detail-view",params:{mesh:t.params.mesh}},text:t.params.mesh},{to:{name:"service-list-view",params:{mesh:t.params.mesh}},text:d(u)("services.routes.item.breadcrumbs")}]},{title:a(()=>[k("h1",null,[r(S,{text:t.params.service},{default:a(()=>[r(m,{title:d(u)("services.routes.item.title",{name:t.params.service})},null,8,["title"])]),_:2},1032,["text"])])]),default:a(()=>[_(),r(c,{src:`/meshes/${t.params.mesh}/service-insights/${t.params.service}`},{default:a(({data:s,error:o})=>[o?(i(),p(B,{key:0,error:o},null,8,["error"])):s===void 0?(i(),p(g,{key:1})):(i(),y(C,{key:2},[r(D,{class:"route-service-detail-view-tabs",tabs:b(s)},null,8,["tabs"]),_(),r(e,null,{default:a(x=>[(i(),p(N(x.Component),{data:s},null,8,["data"]))]),_:2},1024)],64))]),_:2},1032,["src"])]),_:2},1032,["breadcrumbs"])]),_:1})}}});export{H as default}; diff --git a/app/kuma-ui/pkg/resources/data/assets/ServiceDetailView-bcb015a3.js b/app/kuma-ui/pkg/resources/data/assets/ServiceDetailView-1fa0bfad.js similarity index 79% rename from app/kuma-ui/pkg/resources/data/assets/ServiceDetailView-bcb015a3.js rename to app/kuma-ui/pkg/resources/data/assets/ServiceDetailView-1fa0bfad.js index d5760e6c7462..bf479a66ee86 100644 --- a/app/kuma-ui/pkg/resources/data/assets/ServiceDetailView-bcb015a3.js +++ b/app/kuma-ui/pkg/resources/data/assets/ServiceDetailView-1fa0bfad.js @@ -1 +1 @@ -import{d as f,k as y,a as d,o as t,c as u,e as r,w as e,b as i,m as k,t as c,l,X as h,f as n,p as w,F as V,R as C}from"./index-5f4feb06.js";import{_ as I}from"./EmptyBlock.vue_vue_type_script_setup_true_lang-7f79002a.js";import{E as $}from"./ErrorBlock-558c0398.js";import{_ as B}from"./LoadingBlock.vue_vue_type_script_setup_true_lang-e7fd5a8b.js";import{T as D}from"./TagList-679e2f0e.js";import{T as x}from"./TextWithCopyButton-1098d691.js";import{S as T}from"./StatusBadge-2db39c5c.js";import"./index-fce48c05.js";import"./WarningIcon.vue_vue_type_script_setup_true_lang-cab7af3a.js";import"./CopyButton-2ffc661c.js";const b={key:3,class:"columns"},S=f({__name:"ExternalServiceDetails",props:{mesh:{},service:{}},setup(m){const{t:a}=y(),s=m;return(g,v)=>{const p=d("DataSource");return t(),u("div",null,[r(p,{src:`/meshes/${s.mesh}/external-services/for/${s.service}`},{default:e(({data:o,error:_})=>[_?(t(),i($,{key:0,error:_},null,8,["error"])):o===void 0?(t(),i(B,{key:1})):o===null?(t(),i(I,{key:2,"data-testid":"no-matching-external-service"},{title:e(()=>[k("p",null,c(l(a)("services.detail.no_matching_external_service",{name:s.service})),1)]),_:1})):(t(),u("div",b,[r(h,null,{title:e(()=>[n(c(l(a)("http.api.property.address")),1)]),body:e(()=>[r(x,{text:o.networking.address},null,8,["text"])]),_:2},1024),n(),o.tags!==null?(t(),i(h,{key:0},{title:e(()=>[n(c(l(a)("http.api.property.tags")),1)]),body:e(()=>[r(D,{tags:o.tags},null,8,["tags"])]),_:2},1024)):w("",!0)]))]),_:1},8,["src"])])}}}),E={class:"columns"},N=f({__name:"ServiceInsightDetails",props:{serviceInsight:{}},setup(m){const{t:a}=y(),s=m;return(g,v)=>{var p,o;return t(),u("div",E,[r(h,null,{title:e(()=>[n(c(l(a)("http.api.property.status")),1)]),body:e(()=>[r(T,{status:s.serviceInsight.status},null,8,["status"])]),_:1}),n(),r(h,null,{title:e(()=>[n(c(l(a)("http.api.property.address")),1)]),body:e(()=>[s.serviceInsight.addressPort?(t(),i(x,{key:0,text:s.serviceInsight.addressPort},null,8,["text"])):(t(),u(V,{key:1},[n(c(l(a)("common.detail.none")),1)],64))]),_:1}),n(),r(C,{online:((p=s.serviceInsight.dataplanes)==null?void 0:p.online)??0,total:((o=s.serviceInsight.dataplanes)==null?void 0:o.total)??0},{title:e(()=>[n(c(l(a)("http.api.property.dataPlaneProxies")),1)]),_:1},8,["online","total"])])}}}),P={class:"stack"},G=f({__name:"ServiceDetailView",props:{data:{}},setup(m){const a=m;return(s,g)=>{const v=d("KCard"),p=d("AppView"),o=d("RouteView");return t(),i(o,{name:"service-detail-view",params:{mesh:"",service:""}},{default:e(({route:_})=>[r(p,null,{default:e(()=>[k("div",P,[r(v,null,{default:e(()=>[a.data.serviceType==="external"?(t(),i(S,{key:0,mesh:_.params.mesh,service:_.params.service},null,8,["mesh","service"])):(t(),i(N,{key:1,"service-insight":s.data},null,8,["service-insight"]))]),_:2},1024)])]),_:2},1024)]),_:1})}}});export{G as default}; +import{d as f,k as y,a as d,o as t,c as u,e as r,w as e,b as i,m as k,t as c,l,X as h,f as n,p as w,F as V,R as C}from"./index-0dcf85b4.js";import{_ as I}from"./EmptyBlock.vue_vue_type_script_setup_true_lang-6ff90078.js";import{E as $}from"./ErrorBlock-70a14ad9.js";import{_ as B}from"./LoadingBlock.vue_vue_type_script_setup_true_lang-2e81faa2.js";import{T as D}from"./TagList-5868dd55.js";import{T as x}from"./TextWithCopyButton-da18080b.js";import{S as T}from"./StatusBadge-e7326f60.js";import"./index-fce48c05.js";import"./WarningIcon.vue_vue_type_script_setup_true_lang-d54f4898.js";import"./CopyButton-dcdce1f2.js";const b={key:3,class:"columns"},S=f({__name:"ExternalServiceDetails",props:{mesh:{},service:{}},setup(m){const{t:a}=y(),s=m;return(g,v)=>{const p=d("DataSource");return t(),u("div",null,[r(p,{src:`/meshes/${s.mesh}/external-services/for/${s.service}`},{default:e(({data:o,error:_})=>[_?(t(),i($,{key:0,error:_},null,8,["error"])):o===void 0?(t(),i(B,{key:1})):o===null?(t(),i(I,{key:2,"data-testid":"no-matching-external-service"},{title:e(()=>[k("p",null,c(l(a)("services.detail.no_matching_external_service",{name:s.service})),1)]),_:1})):(t(),u("div",b,[r(h,null,{title:e(()=>[n(c(l(a)("http.api.property.address")),1)]),body:e(()=>[r(x,{text:o.networking.address},null,8,["text"])]),_:2},1024),n(),o.tags!==null?(t(),i(h,{key:0},{title:e(()=>[n(c(l(a)("http.api.property.tags")),1)]),body:e(()=>[r(D,{tags:o.tags},null,8,["tags"])]),_:2},1024)):w("",!0)]))]),_:1},8,["src"])])}}}),E={class:"columns"},N=f({__name:"ServiceInsightDetails",props:{serviceInsight:{}},setup(m){const{t:a}=y(),s=m;return(g,v)=>{var p,o;return t(),u("div",E,[r(h,null,{title:e(()=>[n(c(l(a)("http.api.property.status")),1)]),body:e(()=>[r(T,{status:s.serviceInsight.status},null,8,["status"])]),_:1}),n(),r(h,null,{title:e(()=>[n(c(l(a)("http.api.property.address")),1)]),body:e(()=>[s.serviceInsight.addressPort?(t(),i(x,{key:0,text:s.serviceInsight.addressPort},null,8,["text"])):(t(),u(V,{key:1},[n(c(l(a)("common.detail.none")),1)],64))]),_:1}),n(),r(C,{online:((p=s.serviceInsight.dataplanes)==null?void 0:p.online)??0,total:((o=s.serviceInsight.dataplanes)==null?void 0:o.total)??0},{title:e(()=>[n(c(l(a)("http.api.property.dataPlaneProxies")),1)]),_:1},8,["online","total"])])}}}),P={class:"stack"},G=f({__name:"ServiceDetailView",props:{data:{}},setup(m){const a=m;return(s,g)=>{const v=d("KCard"),p=d("AppView"),o=d("RouteView");return t(),i(o,{name:"service-detail-view",params:{mesh:"",service:""}},{default:e(({route:_})=>[r(p,null,{default:e(()=>[k("div",P,[r(v,null,{default:e(()=>[a.data.serviceType==="external"?(t(),i(S,{key:0,mesh:_.params.mesh,service:_.params.service},null,8,["mesh","service"])):(t(),i(N,{key:1,"service-insight":s.data},null,8,["service-insight"]))]),_:2},1024)])]),_:2},1024)]),_:1})}}});export{G as default}; diff --git a/app/kuma-ui/pkg/resources/data/assets/ServiceListView-6443af23.js b/app/kuma-ui/pkg/resources/data/assets/ServiceListView-3095ed55.js similarity index 85% rename from app/kuma-ui/pkg/resources/data/assets/ServiceListView-6443af23.js rename to app/kuma-ui/pkg/resources/data/assets/ServiceListView-3095ed55.js index 3002f8092488..d65926491b87 100644 --- a/app/kuma-ui/pkg/resources/data/assets/ServiceListView-6443af23.js +++ b/app/kuma-ui/pkg/resources/data/assets/ServiceListView-3095ed55.js @@ -1 +1 @@ -import{K as z}from"./index-fce48c05.js";import{d as x,a as l,o as t,b as r,w as s,e as o,m as T,f as n,t as m,c as _,F as d,l as f,P as R,C as B,p as g,_ as D}from"./index-5f4feb06.js";import{A as L}from"./AppCollection-4b66f394.js";import{E as N}from"./ErrorBlock-558c0398.js";import{S as P}from"./StatusBadge-2db39c5c.js";import{S as A}from"./SummaryView-46a73d2c.js";import{T as h}from"./TextWithCopyButton-1098d691.js";import"./EmptyBlock.vue_vue_type_script_setup_true_lang-7f79002a.js";import"./WarningIcon.vue_vue_type_script_setup_true_lang-cab7af3a.js";import"./CopyButton-2ffc661c.js";const E=x({__name:"ServiceListView",setup(I){return(K,$)=>{const w=l("RouteTitle"),u=l("RouterLink"),C=l("KCard"),S=l("RouterView"),V=l("AppView"),v=l("DataSource"),b=l("RouteView");return t(),r(v,{src:"/me"},{default:s(({data:y})=>[y?(t(),r(b,{key:0,name:"service-list-view",params:{page:1,size:y.pageSize,mesh:"",service:""}},{default:s(({route:a,t:c})=>[o(v,{src:`/meshes/${a.params.mesh}/service-insights?page=${a.params.page}&size=${a.params.size}`},{default:s(({data:i,error:p})=>[o(V,null,{title:s(()=>[T("h2",null,[o(w,{title:c("services.routes.items.title")},null,8,["title"])])]),default:s(()=>[n(),o(C,null,{default:s(()=>[p!==void 0?(t(),r(N,{key:0,error:p},null,8,["error"])):(t(),r(L,{key:1,class:"service-collection","data-testid":"service-collection","empty-state-message":c("common.emptyState.message",{type:"Services"}),headers:[{label:"Name",key:"name"},{label:"Type",key:"serviceType"},{label:"Address",key:"addressPort"},{label:"DP proxies (online / total)",key:"online"},{label:"Status",key:"status"},{label:"Details",key:"details",hideLabel:!0}],"page-number":a.params.page,"page-size":a.params.size,total:i==null?void 0:i.total,items:i==null?void 0:i.items,error:p,"is-selected-row":e=>e.name===a.params.service,onChange:a.update},{name:s(({row:e})=>[o(h,{text:e.name},{default:s(()=>[o(u,{to:{name:"service-detail-view",params:{mesh:e.mesh,service:e.name},query:{page:a.params.page,size:a.params.size}}},{default:s(()=>[n(m(e.name),1)]),_:2},1032,["to"])]),_:2},1032,["text"])]),serviceType:s(({row:e})=>[n(m(e.serviceType),1)]),addressPort:s(({row:e})=>[e.addressPort?(t(),r(h,{key:0,text:e.addressPort},null,8,["text"])):(t(),_(d,{key:1},[n(m(c("common.collection.none")),1)],64))]),online:s(({row:e})=>[e.dataplanes?(t(),_(d,{key:0},[n(m(e.dataplanes.online||0)+" / "+m(e.dataplanes.total||0),1)],64)):(t(),_(d,{key:1},[n(m(c("common.collection.none")),1)],64))]),status:s(({row:e})=>[o(P,{status:e.status},null,8,["status"])]),details:s(({row:e})=>[o(u,{class:"details-link","data-testid":"details-link",to:{name:"service-detail-view",params:{mesh:e.mesh,service:e.name}}},{default:s(()=>[n(m(c("common.collection.details_link"))+" ",1),o(f(R),{display:"inline-block",decorative:"",size:f(z)},null,8,["size"])]),_:2},1032,["to"])]),_:2},1032,["empty-state-message","headers","page-number","page-size","total","items","error","is-selected-row","onChange"]))]),_:2},1024),n(),a.params.service?(t(),r(S,{key:0},{default:s(e=>[o(A,{onClose:k=>a.replace({name:"service-list-view",params:{mesh:a.params.mesh},query:{page:a.params.page,size:a.params.size}})},{default:s(()=>[(t(),r(B(e.Component),{name:a.params.service,service:i==null?void 0:i.items.find(k=>k.name===a.params.service)},null,8,["name","service"]))]),_:2},1032,["onClose"])]),_:2},1024)):g("",!0)]),_:2},1024)]),_:2},1032,["src"])]),_:2},1032,["params"])):g("",!0)]),_:1})}}});const M=D(E,[["__scopeId","data-v-5c8b9732"]]);export{M as default}; +import{K as z}from"./index-fce48c05.js";import{d as x,a as l,o as t,b as r,w as s,e as o,m as T,f as n,t as m,c as _,F as d,l as f,P as R,C as B,p as g,_ as D}from"./index-0dcf85b4.js";import{A as L}from"./AppCollection-a7a0983f.js";import{E as N}from"./ErrorBlock-70a14ad9.js";import{S as P}from"./StatusBadge-e7326f60.js";import{S as A}from"./SummaryView-8d0a7896.js";import{T as h}from"./TextWithCopyButton-da18080b.js";import"./EmptyBlock.vue_vue_type_script_setup_true_lang-6ff90078.js";import"./WarningIcon.vue_vue_type_script_setup_true_lang-d54f4898.js";import"./CopyButton-dcdce1f2.js";const E=x({__name:"ServiceListView",setup(I){return(K,$)=>{const w=l("RouteTitle"),u=l("RouterLink"),C=l("KCard"),S=l("RouterView"),V=l("AppView"),v=l("DataSource"),b=l("RouteView");return t(),r(v,{src:"/me"},{default:s(({data:y})=>[y?(t(),r(b,{key:0,name:"service-list-view",params:{page:1,size:y.pageSize,mesh:"",service:""}},{default:s(({route:a,t:c})=>[o(v,{src:`/meshes/${a.params.mesh}/service-insights?page=${a.params.page}&size=${a.params.size}`},{default:s(({data:i,error:p})=>[o(V,null,{title:s(()=>[T("h2",null,[o(w,{title:c("services.routes.items.title")},null,8,["title"])])]),default:s(()=>[n(),o(C,null,{default:s(()=>[p!==void 0?(t(),r(N,{key:0,error:p},null,8,["error"])):(t(),r(L,{key:1,class:"service-collection","data-testid":"service-collection","empty-state-message":c("common.emptyState.message",{type:"Services"}),headers:[{label:"Name",key:"name"},{label:"Type",key:"serviceType"},{label:"Address",key:"addressPort"},{label:"DP proxies (online / total)",key:"online"},{label:"Status",key:"status"},{label:"Details",key:"details",hideLabel:!0}],"page-number":a.params.page,"page-size":a.params.size,total:i==null?void 0:i.total,items:i==null?void 0:i.items,error:p,"is-selected-row":e=>e.name===a.params.service,onChange:a.update},{name:s(({row:e})=>[o(h,{text:e.name},{default:s(()=>[o(u,{to:{name:"service-detail-view",params:{mesh:e.mesh,service:e.name},query:{page:a.params.page,size:a.params.size}}},{default:s(()=>[n(m(e.name),1)]),_:2},1032,["to"])]),_:2},1032,["text"])]),serviceType:s(({row:e})=>[n(m(e.serviceType),1)]),addressPort:s(({row:e})=>[e.addressPort?(t(),r(h,{key:0,text:e.addressPort},null,8,["text"])):(t(),_(d,{key:1},[n(m(c("common.collection.none")),1)],64))]),online:s(({row:e})=>[e.dataplanes?(t(),_(d,{key:0},[n(m(e.dataplanes.online||0)+" / "+m(e.dataplanes.total||0),1)],64)):(t(),_(d,{key:1},[n(m(c("common.collection.none")),1)],64))]),status:s(({row:e})=>[o(P,{status:e.status},null,8,["status"])]),details:s(({row:e})=>[o(u,{class:"details-link","data-testid":"details-link",to:{name:"service-detail-view",params:{mesh:e.mesh,service:e.name}}},{default:s(()=>[n(m(c("common.collection.details_link"))+" ",1),o(f(R),{display:"inline-block",decorative:"",size:f(z)},null,8,["size"])]),_:2},1032,["to"])]),_:2},1032,["empty-state-message","headers","page-number","page-size","total","items","error","is-selected-row","onChange"]))]),_:2},1024),n(),a.params.service?(t(),r(S,{key:0},{default:s(e=>[o(A,{onClose:k=>a.replace({name:"service-list-view",params:{mesh:a.params.mesh},query:{page:a.params.page,size:a.params.size}})},{default:s(()=>[(t(),r(B(e.Component),{name:a.params.service,service:i==null?void 0:i.items.find(k=>k.name===a.params.service)},null,8,["name","service"]))]),_:2},1032,["onClose"])]),_:2},1024)):g("",!0)]),_:2},1024)]),_:2},1032,["src"])]),_:2},1032,["params"])):g("",!0)]),_:1})}}});const M=D(E,[["__scopeId","data-v-5c8b9732"]]);export{M as default}; diff --git a/app/kuma-ui/pkg/resources/data/assets/StatusBadge-2db39c5c.js b/app/kuma-ui/pkg/resources/data/assets/StatusBadge-e7326f60.js similarity index 85% rename from app/kuma-ui/pkg/resources/data/assets/StatusBadge-2db39c5c.js rename to app/kuma-ui/pkg/resources/data/assets/StatusBadge-e7326f60.js index eb14805ec81d..8fc5a76f6829 100644 --- a/app/kuma-ui/pkg/resources/data/assets/StatusBadge-2db39c5c.js +++ b/app/kuma-ui/pkg/resources/data/assets/StatusBadge-e7326f60.js @@ -1 +1 @@ -import{_ as r,r as l,d as u,k as p,a as i,o as f,b as m,W as b,w as s,f as n,t as c,l as o,e as g,C as v,aa as B}from"./index-5f4feb06.js";const x={};function y(t,e){return l(t.$slots,"default")}const C=r(x,[["render",y]]),S=u({__name:"StatusBadge",props:{status:{}},setup(t){const{t:e}=p(),_={online:"success",offline:"danger",partially_degraded:"warning",not_available:"neutral",disabled:"neutral"},a=t;return(h,A)=>{const d=i("KBadge");return f(),m(v(a.status==="not_available"?o(B):C),null,b({default:s(()=>[g(d,{class:"status-badge",appearance:_[a.status],"max-width":"auto","data-testid":"status-badge"},{default:s(()=>[n(c(o(e)(`http.api.value.${a.status}`)),1)]),_:1},8,["appearance"]),n()]),_:2},[a.status==="not_available"?{name:"content",fn:s(()=>[n(c(o(e)("components.status-badge.tooltip.not_available")),1)]),key:"0"}:void 0]),1024)}}});const w=r(S,[["__scopeId","data-v-681bdb4a"]]);export{w as S}; +import{_ as r,r as l,d as u,k as p,a as i,o as f,b as m,W as b,w as s,f as n,t as c,l as o,e as g,C as v,aa as B}from"./index-0dcf85b4.js";const x={};function y(t,e){return l(t.$slots,"default")}const C=r(x,[["render",y]]),S=u({__name:"StatusBadge",props:{status:{}},setup(t){const{t:e}=p(),_={online:"success",offline:"danger",partially_degraded:"warning",not_available:"neutral",disabled:"neutral"},a=t;return(h,A)=>{const d=i("KBadge");return f(),m(v(a.status==="not_available"?o(B):C),null,b({default:s(()=>[g(d,{class:"status-badge",appearance:_[a.status],"max-width":"auto","data-testid":"status-badge"},{default:s(()=>[n(c(o(e)(`http.api.value.${a.status}`)),1)]),_:1},8,["appearance"]),n()]),_:2},[a.status==="not_available"?{name:"content",fn:s(()=>[n(c(o(e)("components.status-badge.tooltip.not_available")),1)]),key:"0"}:void 0]),1024)}}});const w=r(S,[["__scopeId","data-v-681bdb4a"]]);export{w as S}; diff --git a/app/kuma-ui/pkg/resources/data/assets/SubscriptionList.vue_vue_type_script_setup_true_lang-cd9cb397.js b/app/kuma-ui/pkg/resources/data/assets/SubscriptionList.vue_vue_type_script_setup_true_lang-83336cd8.js similarity index 96% rename from app/kuma-ui/pkg/resources/data/assets/SubscriptionList.vue_vue_type_script_setup_true_lang-cd9cb397.js rename to app/kuma-ui/pkg/resources/data/assets/SubscriptionList.vue_vue_type_script_setup_true_lang-83336cd8.js index fc1630a6589b..e2b5539703df 100644 --- a/app/kuma-ui/pkg/resources/data/assets/SubscriptionList.vue_vue_type_script_setup_true_lang-cd9cb397.js +++ b/app/kuma-ui/pkg/resources/data/assets/SubscriptionList.vue_vue_type_script_setup_true_lang-83336cd8.js @@ -1,3 +1,3 @@ -import{d as S,k as A,H as b,o,c as l,b as g,w as v,e as k,l as a,ai as L,f as t,t as e,aj as B,r as T,p as I,m as n,F as f,D,_ as j,v as P,x as R}from"./index-5f4feb06.js";import{A as H,a as N}from"./AccordionList-5331d528.js";const U={class:"stack"},V={key:1},C={key:0,class:"intro"},O={class:"row"},q={class:"header"},F={class:"header"},M=["data-testid"],E={class:"type"},z=S({__name:"SubscriptionDetails",props:{subscription:{type:Object,required:!0},isDiscoverySubscription:{type:Boolean,default:!1}},setup(d){const{t:c}=A(),p=d,s=b(()=>{var u;let i;if("controlPlaneInstanceId"in p.subscription){const{lastUpdateTime:r,total:_,...m}=p.subscription.status;i=m}else i=((u=p.subscription.status)==null?void 0:u.stat)??{};return i?Object.entries(i).map(([r,_])=>{const{responsesSent:m="0",responsesAcknowledged:h="0",responsesRejected:y="0"}=_;return{type:r,responsesSent:m,responsesAcknowledged:h,responsesRejected:y}}):[]});return(i,u)=>(o(),l("div",U,[s.value.length===0?(o(),g(a(B),{key:0,appearance:"info"},{alertIcon:v(()=>[k(a(L))]),alertMessage:v(()=>[t(e(a(c)("common.detail.subscriptions.no_stats",{id:p.subscription.id})),1)]),_:1})):(o(),l("div",V,[i.$slots.default?(o(),l("div",C,[T(i.$slots,"default",{},void 0,!0)])):I("",!0),t(),n("div",O,[n("div",q,e(a(c)("common.detail.subscriptions.type")),1),t(),n("div",F,e(a(c)("common.detail.subscriptions.responses_sent_acknowledged")),1)]),t(),(o(!0),l(f,null,D(s.value,(r,_)=>(o(),l("div",{key:_,class:"row","data-testid":`subscription-status-${r.type}`},[n("div",E,e(a(c)(`http.api.property.${r.type}`)),1),t(),n("div",null,e(r.responsesSent)+"/"+e(r.responsesAcknowledged),1)],8,M))),128))]))]))}});const G=j(z,[["__scopeId","data-v-c3ee36ce"]]),J=""+new URL("icon-deployed-code-e3c999ba.svg",import.meta.url).href,K=""+new URL("icon-connected-037e001a.svg",import.meta.url).href,Q=""+new URL("icon-disconnected-ba3c2624.svg",import.meta.url).href,$=d=>(P("data-v-991b71e7"),d=d(),R(),d),W={class:"subscription-header"},X={class:"instance-id"},Y=$(()=>n("img",{src:J},null,-1)),Z=$(()=>n("img",{src:K},null,-1)),ss={key:0},es=$(()=>n("img",{src:Q},null,-1)),ts={class:"responses-sent-acknowledged"},ns=S({__name:"SubscriptionHeader",props:{subscription:{type:Object,required:!0}},setup(d){const{t:c,formatIsoDate:p}=A(),s=d,i=b(()=>"globalInstanceId"in s.subscription?s.subscription.globalInstanceId:null),u=b(()=>"controlPlaneInstanceId"in s.subscription?s.subscription.controlPlaneInstanceId:null),r=b(()=>s.subscription.connectTime?p(s.subscription.connectTime):null),_=b(()=>s.subscription.disconnectTime?p(s.subscription.disconnectTime):null),m=b(()=>{var w;const{responsesSent:h=0,responsesAcknowledged:y=0,responsesRejected:x=0}=((w=s.subscription.status)==null?void 0:w.total)??{};return{responsesSent:h,responsesAcknowledged:y,responsesRejected:x}});return(h,y)=>(o(),l("header",W,[n("span",X,[Y,t(),i.value?(o(),l(f,{key:0},[n("b",null,e(a(c)("http.api.property.globalInstanceId")),1),t(": "+e(i.value),1)],64)):u.value?(o(),l(f,{key:1},[n("b",null,e(a(c)("http.api.property.controlPlaneInstanceId")),1),t(": "+e(u.value),1)],64)):I("",!0)]),t(),n("span",null,[Z,t(),n("b",null,e(a(c)("common.detail.subscriptions.connect_time")),1),t(": "+e(r.value),1)]),t(),_.value?(o(),l("span",ss,[es,t(),n("b",null,e(a(c)("common.detail.subscriptions.disconnect_time")),1),t(": "+e(_.value),1)])):I("",!0),t(),n("span",ts,e(a(c)("common.detail.subscriptions.responses_sent_acknowledged"))+`: +import{d as S,k as A,H as b,o,c as l,b as g,w as v,e as k,l as a,ai as L,f as t,t as e,aj as B,r as T,p as I,m as n,F as f,D,_ as j,v as P,x as R}from"./index-0dcf85b4.js";import{A as H,a as N}from"./AccordionList-a4be0b78.js";const U={class:"stack"},V={key:1},C={key:0,class:"intro"},O={class:"row"},q={class:"header"},F={class:"header"},M=["data-testid"],E={class:"type"},z=S({__name:"SubscriptionDetails",props:{subscription:{type:Object,required:!0},isDiscoverySubscription:{type:Boolean,default:!1}},setup(d){const{t:c}=A(),p=d,s=b(()=>{var u;let i;if("controlPlaneInstanceId"in p.subscription){const{lastUpdateTime:r,total:_,...m}=p.subscription.status;i=m}else i=((u=p.subscription.status)==null?void 0:u.stat)??{};return i?Object.entries(i).map(([r,_])=>{const{responsesSent:m="0",responsesAcknowledged:h="0",responsesRejected:y="0"}=_;return{type:r,responsesSent:m,responsesAcknowledged:h,responsesRejected:y}}):[]});return(i,u)=>(o(),l("div",U,[s.value.length===0?(o(),g(a(B),{key:0,appearance:"info"},{alertIcon:v(()=>[k(a(L))]),alertMessage:v(()=>[t(e(a(c)("common.detail.subscriptions.no_stats",{id:p.subscription.id})),1)]),_:1})):(o(),l("div",V,[i.$slots.default?(o(),l("div",C,[T(i.$slots,"default",{},void 0,!0)])):I("",!0),t(),n("div",O,[n("div",q,e(a(c)("common.detail.subscriptions.type")),1),t(),n("div",F,e(a(c)("common.detail.subscriptions.responses_sent_acknowledged")),1)]),t(),(o(!0),l(f,null,D(s.value,(r,_)=>(o(),l("div",{key:_,class:"row","data-testid":`subscription-status-${r.type}`},[n("div",E,e(a(c)(`http.api.property.${r.type}`)),1),t(),n("div",null,e(r.responsesSent)+"/"+e(r.responsesAcknowledged),1)],8,M))),128))]))]))}});const G=j(z,[["__scopeId","data-v-c3ee36ce"]]),J=""+new URL("icon-deployed-code-e3c999ba.svg",import.meta.url).href,K=""+new URL("icon-connected-037e001a.svg",import.meta.url).href,Q=""+new URL("icon-disconnected-ba3c2624.svg",import.meta.url).href,$=d=>(P("data-v-991b71e7"),d=d(),R(),d),W={class:"subscription-header"},X={class:"instance-id"},Y=$(()=>n("img",{src:J},null,-1)),Z=$(()=>n("img",{src:K},null,-1)),ss={key:0},es=$(()=>n("img",{src:Q},null,-1)),ts={class:"responses-sent-acknowledged"},ns=S({__name:"SubscriptionHeader",props:{subscription:{type:Object,required:!0}},setup(d){const{t:c,formatIsoDate:p}=A(),s=d,i=b(()=>"globalInstanceId"in s.subscription?s.subscription.globalInstanceId:null),u=b(()=>"controlPlaneInstanceId"in s.subscription?s.subscription.controlPlaneInstanceId:null),r=b(()=>s.subscription.connectTime?p(s.subscription.connectTime):null),_=b(()=>s.subscription.disconnectTime?p(s.subscription.disconnectTime):null),m=b(()=>{var w;const{responsesSent:h=0,responsesAcknowledged:y=0,responsesRejected:x=0}=((w=s.subscription.status)==null?void 0:w.total)??{};return{responsesSent:h,responsesAcknowledged:y,responsesRejected:x}});return(h,y)=>(o(),l("header",W,[n("span",X,[Y,t(),i.value?(o(),l(f,{key:0},[n("b",null,e(a(c)("http.api.property.globalInstanceId")),1),t(": "+e(i.value),1)],64)):u.value?(o(),l(f,{key:1},[n("b",null,e(a(c)("http.api.property.controlPlaneInstanceId")),1),t(": "+e(u.value),1)],64)):I("",!0)]),t(),n("span",null,[Z,t(),n("b",null,e(a(c)("common.detail.subscriptions.connect_time")),1),t(": "+e(r.value),1)]),t(),_.value?(o(),l("span",ss,[es,t(),n("b",null,e(a(c)("common.detail.subscriptions.disconnect_time")),1),t(": "+e(_.value),1)])):I("",!0),t(),n("span",ts,e(a(c)("common.detail.subscriptions.responses_sent_acknowledged"))+`: `+e(m.value.responsesSent)+"/"+e(m.value.responsesAcknowledged),1)]))}});const os=j(ns,[["__scopeId","data-v-991b71e7"]]),rs=S({__name:"SubscriptionList",props:{subscriptions:{}},setup(d){const c=d,p=b(()=>{const s=Array.from(c.subscriptions);return s.reverse(),s});return(s,i)=>(o(),g(N,null,{default:v(()=>[(o(!0),l(f,null,D(p.value,(u,r)=>(o(),g(H,{key:r},{"accordion-header":v(()=>[k(os,{subscription:u},null,8,["subscription"])]),"accordion-content":v(()=>[k(G,{subscription:u},{default:v(()=>[s.$slots.default?T(s.$slots,"default",{key:0}):I("",!0)]),_:2},1032,["subscription"])]),_:2},1024))),128))]),_:3}))}});export{rs as _}; diff --git a/app/kuma-ui/pkg/resources/data/assets/SummaryView-46a73d2c.js b/app/kuma-ui/pkg/resources/data/assets/SummaryView-8d0a7896.js similarity index 88% rename from app/kuma-ui/pkg/resources/data/assets/SummaryView-46a73d2c.js rename to app/kuma-ui/pkg/resources/data/assets/SummaryView-8d0a7896.js index 529ae732e829..122c088960a9 100644 --- a/app/kuma-ui/pkg/resources/data/assets/SummaryView-46a73d2c.js +++ b/app/kuma-ui/pkg/resources/data/assets/SummaryView-8d0a7896.js @@ -1 +1 @@ -import{d as n,a as i,o as l,b as m,w as r,r as _,_ as d}from"./index-5f4feb06.js";const p=n({__name:"SummaryView",emits:["close"],setup(u,{emit:t}){const o=t;return(s,e)=>{const a=i("KSlideout");return l(),m(a,{class:"summary-slideout","close-button-alignment":"end","has-overlay":!1,"is-visible":"","max-width":"560px","offset-top":"var(--app-slideout-offset-top, 0)","data-testid":"summary",onClose:e[0]||(e[0]=c=>o("close"))},{default:r(()=>[_(s.$slots,"default",{},void 0,!0)]),_:3})}}});const v=d(p,[["__scopeId","data-v-600c0a73"]]);export{v as S}; +import{d as n,a as i,o as l,b as m,w as r,r as _,_ as d}from"./index-0dcf85b4.js";const p=n({__name:"SummaryView",emits:["close"],setup(u,{emit:t}){const o=t;return(s,e)=>{const a=i("KSlideout");return l(),m(a,{class:"summary-slideout","close-button-alignment":"end","has-overlay":!1,"is-visible":"","max-width":"560px","offset-top":"var(--app-slideout-offset-top, 0)","data-testid":"summary",onClose:e[0]||(e[0]=c=>o("close"))},{default:r(()=>[_(s.$slots,"default",{},void 0,!0)]),_:3})}}});const v=d(p,[["__scopeId","data-v-600c0a73"]]);export{v as S}; diff --git a/app/kuma-ui/pkg/resources/data/assets/TagList-679e2f0e.js b/app/kuma-ui/pkg/resources/data/assets/TagList-5868dd55.js similarity index 95% rename from app/kuma-ui/pkg/resources/data/assets/TagList-679e2f0e.js rename to app/kuma-ui/pkg/resources/data/assets/TagList-5868dd55.js index 8f230c2a39d2..fe34a444bdbe 100644 --- a/app/kuma-ui/pkg/resources/data/assets/TagList-679e2f0e.js +++ b/app/kuma-ui/pkg/resources/data/assets/TagList-5868dd55.js @@ -1 +1 @@ -import{d as h,H as d,a as g,o,b as c,w as m,c as k,F as b,D as y,C as p,f as w,t as v,m as T,n as x,_ as B}from"./index-5f4feb06.js";function L(r){return Object.entries(r??{}).map(([e,n])=>({label:e,value:n}))}const C=h({__name:"TagList",props:{tags:{},shouldTruncate:{type:Boolean,default:!1},alignment:{default:"left"}},setup(r){const e=r,n=d(()=>(Array.isArray(e.tags)?e.tags:L(e.tags)).map(u=>{const{label:s,value:t}=u,i=_(u),f=s.includes(".kuma.io/")||s.startsWith("kuma.io/");return{label:s,value:t,route:i,isKuma:f}})),l=d(()=>e.shouldTruncate||Object.keys(n.value).length>10);function _(a){if(a.value!=="*")try{switch(a.label){case"kuma.io/zone":return{name:"zone-cp-detail-view",params:{zone:a.value}};case"kuma.io/service":return{name:"service-detail-view",params:{service:a.value}};case"kuma.io/mesh":return{name:"mesh-detail-view",params:{mesh:a.value}};default:return}}catch{return}}return(a,u)=>{const s=g("KBadge");return o(),c(p(l.value?"KTruncate":"div"),{width:l.value?"auto":void 0,class:x({"tag-list":!l.value,"tag-list--align-right":e.alignment==="right"})},{default:m(()=>[(o(!0),k(b,null,y(n.value,(t,i)=>(o(),c(s,{key:i,"max-width":"auto",class:"tag",appearance:t.isKuma?"info":"neutral"},{default:m(()=>[(o(),c(p(t.route?"RouterLink":"span"),{to:t.route},{default:m(()=>[w(v(t.label)+":",1),T("b",null,v(t.value),1)]),_:2},1032,["to"]))]),_:2},1032,["appearance"]))),128))]),_:1},8,["width","class"])}}});const z=B(C,[["__scopeId","data-v-625f3123"]]);export{z as T}; +import{d as h,H as d,a as g,o,b as c,w as m,c as k,F as b,D as y,C as p,f as w,t as v,m as T,n as x,_ as B}from"./index-0dcf85b4.js";function L(r){return Object.entries(r??{}).map(([e,n])=>({label:e,value:n}))}const C=h({__name:"TagList",props:{tags:{},shouldTruncate:{type:Boolean,default:!1},alignment:{default:"left"}},setup(r){const e=r,n=d(()=>(Array.isArray(e.tags)?e.tags:L(e.tags)).map(u=>{const{label:s,value:t}=u,i=_(u),f=s.includes(".kuma.io/")||s.startsWith("kuma.io/");return{label:s,value:t,route:i,isKuma:f}})),l=d(()=>e.shouldTruncate||Object.keys(n.value).length>10);function _(a){if(a.value!=="*")try{switch(a.label){case"kuma.io/zone":return{name:"zone-cp-detail-view",params:{zone:a.value}};case"kuma.io/service":return{name:"service-detail-view",params:{service:a.value}};case"kuma.io/mesh":return{name:"mesh-detail-view",params:{mesh:a.value}};default:return}}catch{return}}return(a,u)=>{const s=g("KBadge");return o(),c(p(l.value?"KTruncate":"div"),{width:l.value?"auto":void 0,class:x({"tag-list":!l.value,"tag-list--align-right":e.alignment==="right"})},{default:m(()=>[(o(!0),k(b,null,y(n.value,(t,i)=>(o(),c(s,{key:i,"max-width":"auto",class:"tag",appearance:t.isKuma?"info":"neutral"},{default:m(()=>[(o(),c(p(t.route?"RouterLink":"span"),{to:t.route},{default:m(()=>[w(v(t.label)+":",1),T("b",null,v(t.value),1)]),_:2},1032,["to"]))]),_:2},1032,["appearance"]))),128))]),_:1},8,["width","class"])}}});const z=B(C,[["__scopeId","data-v-625f3123"]]);export{z as T}; diff --git a/app/kuma-ui/pkg/resources/data/assets/TextWithCopyButton-1098d691.js b/app/kuma-ui/pkg/resources/data/assets/TextWithCopyButton-da18080b.js similarity index 79% rename from app/kuma-ui/pkg/resources/data/assets/TextWithCopyButton-1098d691.js rename to app/kuma-ui/pkg/resources/data/assets/TextWithCopyButton-da18080b.js index 55d650fddd80..01d4249eeb50 100644 --- a/app/kuma-ui/pkg/resources/data/assets/TextWithCopyButton-1098d691.js +++ b/app/kuma-ui/pkg/resources/data/assets/TextWithCopyButton-da18080b.js @@ -1 +1 @@ -import{C as a}from"./CopyButton-2ffc661c.js";import{d as p,k as r,o as _,c as x,m as u,r as i,f as o,e as l,l as s,t as d,_ as m}from"./index-5f4feb06.js";const f={class:"copy-button-wrapper"},y={class:"text"},B=p({__name:"TextWithCopyButton",props:{text:{}},setup(c){const t=r(),e=c;return(n,T)=>(_(),x("div",f,[u("span",y,[i(n.$slots,"default",{},()=>[o(d(e.text),1)],!0)]),o(),l(a,{text:e.text,"copy-text":s(t).t("common.copyText"),"tooltip-success-text":s(t).t("common.copySuccessText")},null,8,["text","copy-text","tooltip-success-text"])]))}});const b=m(B,[["__scopeId","data-v-f4b5cfb7"]]);export{b as T}; +import{C as a}from"./CopyButton-dcdce1f2.js";import{d as p,k as r,o as _,c as x,m as u,r as i,f as o,e as l,l as s,t as d,_ as m}from"./index-0dcf85b4.js";const f={class:"copy-button-wrapper"},y={class:"text"},B=p({__name:"TextWithCopyButton",props:{text:{}},setup(c){const t=r(),e=c;return(n,T)=>(_(),x("div",f,[u("span",y,[i(n.$slots,"default",{},()=>[o(d(e.text),1)],!0)]),o(),l(a,{text:e.text,"copy-text":s(t).t("common.copyText"),"tooltip-success-text":s(t).t("common.copySuccessText")},null,8,["text","copy-text","tooltip-success-text"])]))}});const b=m(B,[["__scopeId","data-v-f4b5cfb7"]]);export{b as T}; diff --git a/app/kuma-ui/pkg/resources/data/assets/WarningIcon.vue_vue_type_script_setup_true_lang-cab7af3a.js b/app/kuma-ui/pkg/resources/data/assets/WarningIcon.vue_vue_type_script_setup_true_lang-d54f4898.js similarity index 84% rename from app/kuma-ui/pkg/resources/data/assets/WarningIcon.vue_vue_type_script_setup_true_lang-cab7af3a.js rename to app/kuma-ui/pkg/resources/data/assets/WarningIcon.vue_vue_type_script_setup_true_lang-d54f4898.js index c1966b7f5555..b5edfb088369 100644 --- a/app/kuma-ui/pkg/resources/data/assets/WarningIcon.vue_vue_type_script_setup_true_lang-cab7af3a.js +++ b/app/kuma-ui/pkg/resources/data/assets/WarningIcon.vue_vue_type_script_setup_true_lang-d54f4898.js @@ -1 +1 @@ -import{d as a}from"./index-fce48c05.js";import{d as i,o as r,b as t,l as o,ab as s}from"./index-5f4feb06.js";const _=i({__name:"WarningIcon",props:{size:{default:""},hideTitle:{type:Boolean,default:!1}},setup(n){const e=n;return(l,c)=>(r(),t(o(s),{color:"var(--WarningIconBackground, currentColor)",display:"inline-block",size:e.size||o(a),"hide-title":e.hideTitle},null,8,["size","hide-title"]))}});export{_}; +import{d as a}from"./index-fce48c05.js";import{d as i,o as r,b as t,l as o,ab as s}from"./index-0dcf85b4.js";const _=i({__name:"WarningIcon",props:{size:{default:""},hideTitle:{type:Boolean,default:!1}},setup(n){const e=n;return(l,c)=>(r(),t(o(s),{color:"var(--WarningIconBackground, currentColor)",display:"inline-block",size:e.size||o(a),"hide-title":e.hideTitle},null,8,["size","hide-title"]))}});export{_}; diff --git a/app/kuma-ui/pkg/resources/data/assets/ZoneConfigView-a3c1955b.js b/app/kuma-ui/pkg/resources/data/assets/ZoneConfigView-aa3dac38.js similarity index 85% rename from app/kuma-ui/pkg/resources/data/assets/ZoneConfigView-a3c1955b.js rename to app/kuma-ui/pkg/resources/data/assets/ZoneConfigView-aa3dac38.js index a25d55a3578f..9fd5a41d83a5 100644 --- a/app/kuma-ui/pkg/resources/data/assets/ZoneConfigView-a3c1955b.js +++ b/app/kuma-ui/pkg/resources/data/assets/ZoneConfigView-aa3dac38.js @@ -1 +1 @@ -import{_ as k}from"./CodeBlock.vue_vue_type_style_index_0_lang-6de3c828.js";import{d as y,a as t,o as a,b as l,w as o,e as r,W as C,m as d,f as s,t as x,c as p,F as w,D as R}from"./index-5f4feb06.js";import"./uniqueId-90cc9b93.js";const z=["data-testid","innerHTML"],S=y({__name:"ZoneConfigView",props:{data:{},notifications:{default:()=>[]}},setup(m){const i=m;return(V,F)=>{const g=t("RouteTitle"),u=t("KAlert"),f=t("KCard"),_=t("AppView"),h=t("RouteView");return a(),l(h,{name:"zone-cp-config-view",params:{zone:"",codeSearch:"",codeFilter:!1,codeRegExp:!1}},{default:o(({route:n,t:c})=>[r(_,null,C({title:o(()=>[d("h2",null,[r(g,{title:c("zone-cps.routes.item.navigation.zone-cp-config-view")},null,8,["title"])])]),default:o(()=>[s(),s(),r(f,null,{default:o(()=>[Object.keys(i.data.zoneInsight.config).length>0?(a(),l(k,{key:0,id:"code-block-zone-config",language:"json",code:JSON.stringify(i.data.zoneInsight.config,null,2),"is-searchable":"",query:n.params.codeSearch,"is-filter-mode":n.params.codeFilter,"is-reg-exp-mode":n.params.codeRegExp,onQueryChange:e=>n.update({codeSearch:e}),onFilterModeChange:e=>n.update({codeFilter:e}),onRegExpModeChange:e=>n.update({codeRegExp:e})},null,8,["code","query","is-filter-mode","is-reg-exp-mode","onQueryChange","onFilterModeChange","onRegExpModeChange"])):(a(),l(u,{key:1,class:"mt-4","data-testid":"warning-no-subscriptions",appearance:"warning"},{alertMessage:o(()=>[s(x(c("zone-cps.detail.no_subscriptions")),1)]),_:2},1024))]),_:2},1024)]),_:2},[i.notifications.length>0?{name:"notifications",fn:o(()=>[d("ul",null,[(a(!0),p(w,null,R(i.notifications,e=>(a(),p("li",{key:e.kind,"data-testid":`warning-${e.kind}`,innerHTML:c(`common.warnings.${e.kind}`,e.payload)},null,8,z))),128)),s()])]),key:"0"}:void 0]),1024)]),_:1})}}});export{S as default}; +import{_ as k}from"./CodeBlock.vue_vue_type_style_index_0_lang-95cf08c2.js";import{d as y,a as t,o as a,b as l,w as o,e as r,W as C,m as d,f as s,t as x,c as p,F as w,D as R}from"./index-0dcf85b4.js";import"./uniqueId-90cc9b93.js";const z=["data-testid","innerHTML"],S=y({__name:"ZoneConfigView",props:{data:{},notifications:{default:()=>[]}},setup(m){const i=m;return(V,F)=>{const g=t("RouteTitle"),u=t("KAlert"),f=t("KCard"),_=t("AppView"),h=t("RouteView");return a(),l(h,{name:"zone-cp-config-view",params:{zone:"",codeSearch:"",codeFilter:!1,codeRegExp:!1}},{default:o(({route:n,t:c})=>[r(_,null,C({title:o(()=>[d("h2",null,[r(g,{title:c("zone-cps.routes.item.navigation.zone-cp-config-view")},null,8,["title"])])]),default:o(()=>[s(),s(),r(f,null,{default:o(()=>[Object.keys(i.data.zoneInsight.config).length>0?(a(),l(k,{key:0,id:"code-block-zone-config",language:"json",code:JSON.stringify(i.data.zoneInsight.config,null,2),"is-searchable":"",query:n.params.codeSearch,"is-filter-mode":n.params.codeFilter,"is-reg-exp-mode":n.params.codeRegExp,onQueryChange:e=>n.update({codeSearch:e}),onFilterModeChange:e=>n.update({codeFilter:e}),onRegExpModeChange:e=>n.update({codeRegExp:e})},null,8,["code","query","is-filter-mode","is-reg-exp-mode","onQueryChange","onFilterModeChange","onRegExpModeChange"])):(a(),l(u,{key:1,class:"mt-4","data-testid":"warning-no-subscriptions",appearance:"warning"},{alertMessage:o(()=>[s(x(c("zone-cps.detail.no_subscriptions")),1)]),_:2},1024))]),_:2},1024)]),_:2},[i.notifications.length>0?{name:"notifications",fn:o(()=>[d("ul",null,[(a(!0),p(w,null,R(i.notifications,e=>(a(),p("li",{key:e.kind,"data-testid":`warning-${e.kind}`,innerHTML:c(`common.warnings.${e.kind}`,e.payload)},null,8,z))),128)),s()])]),key:"0"}:void 0]),1024)]),_:1})}}});export{S as default}; diff --git a/app/kuma-ui/pkg/resources/data/assets/ZoneCreateView-5598be4a.js b/app/kuma-ui/pkg/resources/data/assets/ZoneCreateView-65788609.js similarity index 99% rename from app/kuma-ui/pkg/resources/data/assets/ZoneCreateView-5598be4a.js rename to app/kuma-ui/pkg/resources/data/assets/ZoneCreateView-65788609.js index a4e16b091edd..be73280b612b 100644 --- a/app/kuma-ui/pkg/resources/data/assets/ZoneCreateView-5598be4a.js +++ b/app/kuma-ui/pkg/resources/data/assets/ZoneCreateView-65788609.js @@ -1,4 +1,4 @@ -import{f as G,c as H,K as W,g as me}from"./index-fce48c05.js";import{d as x,k as B,A as J,H as C,o as l,c,m as o,f as n,t as s,l as e,e as a,L as _e,B as v,a2 as q,a as m,b as K,w as r,F as k,p as y,D as pe,T as fe,a5 as j,z as ve,aw as be,ax as ze,_ as ke}from"./index-5f4feb06.js";import{_ as g}from"./CodeBlock.vue_vue_type_style_index_0_lang-6de3c828.js";import"./uniqueId-90cc9b93.js";const ge={class:"form-step-title"},he=o("span",{class:"form-step-number"},"1",-1),ye={class:"instruction-list"},Ce={href:"https://helm.sh/docs/intro/install/"},Ee={class:"form-step-title"},Ke=o("span",{class:"form-step-number"},"2",-1),Ve=o("p",null,"On your local machine, create a namespace in your Kubernetes cluster and pull down the kong Helm repo.",-1),$e={class:"instruction-list"},we={class:"form-step-title"},Ie=o("span",{class:"form-step-number"},"3",-1),Te={class:"form-step-title"},Ne=o("span",{class:"form-step-number"},"4",-1),Se={class:"field-group-label mt-4"},Ze={class:"mt-4"},Le=x({__name:"ZoneCreateKubernetesInstructions",props:{zoneName:{type:String,required:!0},globalKdsAddress:{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(T){const{t}=B(),h=J(),_=T,V=C(()=>t("zones.form.kubernetes.secret.createSecretCommand",{token:_.base64EncodedToken}).trim()),b=C(()=>{const p={zoneName:_.zoneName,globalKdsAddress:_.globalKdsAddress,zoneIngressEnabled:String(_.zoneIngressEnabled),zoneEgressEnabled:String(_.zoneEgressEnabled)};return typeof h.params.virtualControlPlaneId=="string"&&(p.controlPlaneId=h.params.virtualControlPlaneId),t("zones.form.kubernetes.connectZone.config",p).trim()});return(p,$)=>(l(),c("div",null,[o("h3",ge,[he,n(" "+s(e(t)("zones.form.kubernetes.prerequisites.title")),1)]),n(),o("ul",ye,[o("li",null,[o("b",null,s(e(t)("zones.form.kubernetes.prerequisites.step1Label"))+s(_.zoneIngressEnabled?" "+e(t)("zones.form.kubernetes.prerequisites.step1LabelAddendum"):""),1),n(`: +import{f as G,c as H,K as W,g as me}from"./index-fce48c05.js";import{d as x,k as B,A as J,H as C,o as l,c,m as o,f as n,t as s,l as e,e as a,L as _e,B as v,a2 as q,a as m,b as K,w as r,F as k,p as y,D as pe,T as fe,a5 as j,z as ve,aw as be,ax as ze,_ as ke}from"./index-0dcf85b4.js";import{_ as g}from"./CodeBlock.vue_vue_type_style_index_0_lang-95cf08c2.js";import"./uniqueId-90cc9b93.js";const ge={class:"form-step-title"},he=o("span",{class:"form-step-number"},"1",-1),ye={class:"instruction-list"},Ce={href:"https://helm.sh/docs/intro/install/"},Ee={class:"form-step-title"},Ke=o("span",{class:"form-step-number"},"2",-1),Ve=o("p",null,"On your local machine, create a namespace in your Kubernetes cluster and pull down the kong Helm repo.",-1),$e={class:"instruction-list"},we={class:"form-step-title"},Ie=o("span",{class:"form-step-number"},"3",-1),Te={class:"form-step-title"},Ne=o("span",{class:"form-step-number"},"4",-1),Se={class:"field-group-label mt-4"},Ze={class:"mt-4"},Le=x({__name:"ZoneCreateKubernetesInstructions",props:{zoneName:{type:String,required:!0},globalKdsAddress:{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(T){const{t}=B(),h=J(),_=T,V=C(()=>t("zones.form.kubernetes.secret.createSecretCommand",{token:_.base64EncodedToken}).trim()),b=C(()=>{const p={zoneName:_.zoneName,globalKdsAddress:_.globalKdsAddress,zoneIngressEnabled:String(_.zoneIngressEnabled),zoneEgressEnabled:String(_.zoneEgressEnabled)};return typeof h.params.virtualControlPlaneId=="string"&&(p.controlPlaneId=h.params.virtualControlPlaneId),t("zones.form.kubernetes.connectZone.config",p).trim()});return(p,$)=>(l(),c("div",null,[o("h3",ge,[he,n(" "+s(e(t)("zones.form.kubernetes.prerequisites.title")),1)]),n(),o("ul",ye,[o("li",null,[o("b",null,s(e(t)("zones.form.kubernetes.prerequisites.step1Label"))+s(_.zoneIngressEnabled?" "+e(t)("zones.form.kubernetes.prerequisites.step1LabelAddendum"):""),1),n(`: `+s(e(t)("zones.form.kubernetes.prerequisites.step1Description",{productName:e(t)("common.product.name")})),1)]),n(),o("li",null,[o("b",null,s(e(t)("zones.form.kubernetes.prerequisites.step2Label")),1),n(`: `+s(e(t)("zones.form.kubernetes.prerequisites.step2Description")),1)]),n(),o("li",null,[o("a",Ce,s(e(t)("zones.form.kubernetes.prerequisites.step3LinkTitle")),1),n(" "+s(e(t)("zones.form.kubernetes.prerequisites.step3Tail")),1)])]),n(),o("h3",Ee,[Ke,n(" "+s(e(t)("zones.form.kubernetes.helm.title")),1)]),n(),Ve,n(),o("ol",$e,[o("li",null,[o("b",null,s(e(t)("zones.form.kubernetes.helm.step1Description")),1),n(),a(g,{id:"zone-kubernetes-create-namespace",class:"mt-2",code:e(t)("zones.form.kubernetes.helm.step1Command"),language:"bash"},null,8,["code"])]),n(),o("li",null,[o("b",null,s(e(t)("zones.form.kubernetes.helm.step2Description")),1),n(),a(g,{id:"zone-kubernetes-add-charts-repo",class:"mt-2",code:e(t)("zones.form.kubernetes.helm.step2Command"),language:"bash"},null,8,["code"])]),n(),o("li",null,[o("b",null,s(e(t)("zones.form.kubernetes.helm.step3Description")),1),n(),a(g,{id:"zone-kubernetes-repo-update",class:"mt-2",code:e(t)("zones.form.kubernetes.helm.step3Command"),language:"bash"},null,8,["code"])])]),n(),o("h3",we,[Ie,n(" "+s(e(t)("zones.form.kubernetes.secret.title")),1)]),n(),o("p",null,s(e(t)("zones.form.kubernetes.secret.createSecretDescription")),1),n(),a(g,{id:"zone-kubernetes-create-secret",class:"mt-4",code:V.value,language:"bash"},null,8,["code"]),n(),o("h3",Te,[Ne,n(" "+s(e(t)("zones.form.kubernetes.connectZone.title")),1)]),n(),o("p",null,s(e(t)("zones.form.kubernetes.connectZone.configDescription")),1),n(),o("span",Se,s(e(t)("zones.form.kubernetes.connectZone.configFileName")),1),n(),a(g,{id:"zone-kubernetes-config-code-block","data-testid":"zone-kubernetes-config",code:b.value,language:"yaml"},null,8,["code"]),n(),o("p",Ze,s(e(t)("zones.form.kubernetes.connectZone.connectDescription")),1),n(),a(g,{id:"zone-kubernetes-command-code-block",class:"mt-4",code:e(t)("zones.form.kubernetes.connectZone.connectCommand").trim(),language:"bash"},null,8,["code"])]))}}),De={class:"form-step-title"},Ae=o("span",{class:"form-step-number"},"1",-1),qe={class:"form-step-title"},xe=o("span",{class:"form-step-number"},"2",-1),Be={class:"field-group-label mt-4"},Re={class:"mt-4"},Ue=x({__name:"ZoneCreateUniversalInstructions",props:{zoneName:{type:String,required:!0},globalKdsAddress:{type:String,required:!0},token:{type:String,required:!0}},setup(T){const{t}=B(),h=J(),_=T,V=C(()=>t("zones.form.universal.saveToken.saveTokenCommand",{token:_.token}).trim()),b=C(()=>{const p={zoneName:_.zoneName,globalKdsAddress:_.globalKdsAddress};return typeof h.params.virtualControlPlaneId=="string"&&(p.controlPlaneId=h.params.virtualControlPlaneId),t("zones.form.universal.connectZone.config",p).trim()});return(p,$)=>(l(),c("div",null,[o("h3",De,[Ae,n(" "+s(e(t)("zones.form.universal.saveToken.title")),1)]),n(),o("p",null,s(e(t)("zones.form.universal.saveToken.saveTokenDescription")),1),n(),a(g,{id:"zone-kubernetes-token",class:"mt-4",code:V.value,language:"bash"},null,8,["code"]),n(),o("h3",qe,[xe,n(" "+s(e(t)("zones.form.universal.connectZone.title")),1)]),n(),o("p",null,s(e(t)("zones.form.universal.connectZone.configDescription")),1),n(),o("span",Be,s(e(t)("zones.form.universal.connectZone.configFileName")),1),n(),a(g,{id:"zone-universal-config-code-block","data-testid":"zone-universal-config",class:"mt-4",code:b.value,language:"yaml"},null,8,["code"]),n(),o("p",Re,s(e(t)("zones.form.universal.connectZone.connectDescription")),1),n(),a(g,{id:"zone-universal-connect-command-code-block",class:"mt-4",code:e(t)("zones.form.universal.connectZone.connectCommand").trim(),language:"bash"},null,8,["code"])]))}}),Pe={class:"form-wrapper"},Oe={key:1},Me={key:2},Fe={class:"form"},Xe={class:"form-header"},Ge={class:"form-title"},He={class:"text-gradient"},We={key:0},je={key:0},Je={class:"fact-list"},Qe={class:"form-section"},Ye={class:"form-section__header"},en={class:"form-section-title"},nn={class:"form-section__content"},on={class:"form-section","data-testid":"connect-zone-instructions"},tn={class:"form-section__header"},sn={class:"form-section-title"},an={class:"form-section__content"},ln={class:"field-group-list"},rn={class:"field-group"},cn={class:"field-group-label"},un={class:"radio-button-group"},dn={class:"field-group"},mn={class:"field-group-label"},_n={class:"radio-button-group"},pn={class:"field-group"},fn={class:"field-group-label"},vn={class:"radio-button-group"},bn={class:"form-section"},zn={class:"form-section__header"},kn={class:"form-section-title"},gn={class:"form-section__content"},hn={class:"form-section"},yn={key:0,class:"form-section__header"},Cn={class:"form-section-title"},En={class:"form-section__content"},Kn={key:0},Vn={class:"mt-2"},$n=x({__name:"ZoneCreateView",setup(T){const{t,tm:h}=B(),_=_e(),V=/^(?![-0-9])[a-z0-9-]{1,63}$/,b=v(null),p=v(!1),$=v(!1),f=v(null),N=v(null),Z=v(""),R=v(!1),Q=v(new Date),d=v(""),E=v("kubernetes"),L=v(!0),D=v(!0),w=C(()=>b.value!==null&&b.value.token?b.value.token:""),Y=C(()=>w.value!==""?window.btoa(w.value):""),ee=C(()=>d.value===""||p.value||b.value!==null),A=C(()=>{if(N.value!==null)return N.value;if(f.value instanceof q){const z=f.value.invalidParameters.find(u=>u.field==="name");if(z!==void 0)return z.reason}return null});async function ne(){p.value=!0,f.value=null,Z.value="";try{if(!U(d.value))return;b.value=await _.createZone({name:d.value})}catch(z){z instanceof Error?(Z.value=d.value,f.value=z):console.error(z)}finally{p.value=!1}}function U(z){const u=V.test(z);return u?N.value=null:N.value=t("zones.create.invalidNameError"),u}function P(){$.value=!$.value}function oe(){R.value=!0}return(z,u)=>{const te=m("RouteTitle"),S=m("KButton"),se=m("KAlert"),ae=m("KLabel"),le=m("KInput"),O=m("KRadio"),M=m("KInputSwitch"),F=m("DataSource"),re=m("KEmptyState"),ie=m("KCard"),ce=m("KModal"),ue=m("AppView"),de=m("RouteView");return l(),K(de,{name:"zone-create-view",attrs:{class:"is-fullscreen"}},{default:r(({route:X})=>[a(ue,{fullscreen:!0,breadcrumbs:[]},{title:r(()=>[o("h1",null,[a(te,{title:e(t)("zones.routes.create.title")},null,8,["title"])])]),actions:r(()=>[a(S,{appearance:"tertiary","data-testid":"exit-button",onClick:()=>{w.value===""||R.value?X.back({name:"zone-cp-list-view"}):P()}},{default:r(()=>[n(s(e(t)("zones.form.exit")),1)]),_:2},1032,["onClick"])]),default:r(()=>[n(),n(),o("div",Pe,[f.value!==null?(l(),K(se,{key:0,appearance:"danger",class:"mb-4","dismiss-type":"icon","data-testid":"create-zone-error"},{alertMessage:r(()=>[f.value instanceof e(q)&&[409,500].includes(f.value.status)?(l(),c(k,{key:0},[o("p",null,s(e(t)(`zones.create.status_error.${f.value.status}.title`,{name:Z.value})),1),n(),o("p",null,s(e(t)(`zones.create.status_error.${f.value.status}.description`)),1)],64)):f.value instanceof e(q)?(l(),c("p",Oe,s(e(t)("common.error_state.api_error",{status:f.value.status,title:f.value.detail})),1)):(l(),c("p",Me,s(e(t)("common.error_state.default_error")),1))]),_:1})):y("",!0),n(),a(ie,{class:"form-card"},{default:r(()=>[o("div",Fe,[o("div",Xe,[o("div",null,[o("h1",Ge,[o("span",He,s(e(t)("zones.form.title")),1)]),n(),e(t)("zones.form.description")!==" "?(l(),c("p",We,s(e(t)("zones.form.description")),1)):y("",!0)]),n(),e(h)("zones.form.facts").length>0?(l(),c("div",je,[o("ul",Je,[(l(!0),c(k,null,pe(e(h)("zones.form.facts"),(i,I)=>(l(),c("li",{key:I,class:"fact-list__item"},[a(e(fe),{color:e(G)},null,8,["color"]),n(" "+s(i),1)]))),128))])])):y("",!0)]),n(),o("div",Qe,[o("div",Ye,[o("h2",en,s(e(t)("zones.form.section.name.title")),1),n(),o("p",null,s(e(t)("zones.form.section.name.description")),1)]),n(),o("div",nn,[o("div",null,[a(ae,{for:"zone-name",required:"","tooltip-attributes":{placement:"right"}},{tooltip:r(()=>[n(s(e(t)("zones.form.name_tooltip")),1)]),default:r(()=>[n(s(e(t)("zones.form.nameLabel"))+" ",1)]),_:1}),n(),a(le,{id:"zone-name",modelValue:d.value,"onUpdate:modelValue":u[0]||(u[0]=i=>d.value=i),type:"text",name:"zone-name","data-testid":"name-input","data-test-error-type":A.value!==null?"invalid-dns-name":void 0,error:A.value!==null,"error-message":A.value??void 0,disabled:b.value!==null,onBlur:u[1]||(u[1]=i=>U(d.value))},null,8,["modelValue","data-test-error-type","error","error-message","disabled"])]),n(),a(S,{appearance:"primary",class:"mt-4",disabled:ee.value,"data-testid":"create-zone-button",onClick:ne},{default:r(()=>[p.value?(l(),K(e(j),{key:0,color:e(H),size:e(W)},null,8,["color","size"])):(l(),K(e(ve),{key:1,size:e(W)},null,8,["size"])),n(" "+s(e(t)("zones.form.createZoneButtonLabel")),1)]),_:1},8,["disabled"])])]),n(),b.value!==null?(l(),c(k,{key:0},[o("div",on,[o("div",tn,[o("h2",sn,s(e(t)("zones.form.section.configuration.title")),1),n(),o("p",null,s(e(t)("zones.form.section.configuration.description")),1)]),n(),o("div",an,[o("div",ln,[o("div",rn,[o("span",cn,s(e(t)("zones.form.environmentLabel"))+` * `,1),n(),o("div",un,[a(O,{id:"zone-environment-universal",modelValue:E.value,"onUpdate:modelValue":u[2]||(u[2]=i=>E.value=i),"selected-value":"universal",name:"zone-environment","data-testid":"environment-universal-radio-button"},{default:r(()=>[n(s(e(t)("zones.form.universalLabel")),1)]),_:1},8,["modelValue"]),n(),a(O,{id:"zone-environment-kubernetes",modelValue:E.value,"onUpdate:modelValue":u[3]||(u[3]=i=>E.value=i),"selected-value":"kubernetes",name:"zone-environment","data-testid":"environment-kubernetes-radio-button"},{default:r(()=>[n(s(e(t)("zones.form.kubernetesLabel")),1)]),_:1},8,["modelValue"])])]),n(),E.value==="kubernetes"?(l(),c(k,{key:0},[o("div",dn,[o("span",mn,s(e(t)("zones.form.zoneIngressLabel"))+` * diff --git a/app/kuma-ui/pkg/resources/data/assets/ZoneDetailTabsView-b678de7f.js b/app/kuma-ui/pkg/resources/data/assets/ZoneDetailTabsView-5397b023.js similarity index 86% rename from app/kuma-ui/pkg/resources/data/assets/ZoneDetailTabsView-b678de7f.js rename to app/kuma-ui/pkg/resources/data/assets/ZoneDetailTabsView-5397b023.js index 3380a3e5cd40..f455f6272a99 100644 --- a/app/kuma-ui/pkg/resources/data/assets/ZoneDetailTabsView-b678de7f.js +++ b/app/kuma-ui/pkg/resources/data/assets/ZoneDetailTabsView-5397b023.js @@ -1 +1 @@ -import{d as D,k as N,L as B,S as R,B as E,a as i,o as r,c as I,e as s,w as o,aB as S,f as u,t as g,l as n,b as m,m as y,p as Z,W as M,C as K,ay as V}from"./index-5f4feb06.js";import{_ as L}from"./DeleteResourceModal.vue_vue_type_script_setup_true_lang-99683839.js";import{E as $}from"./ErrorBlock-558c0398.js";import{_ as P}from"./LoadingBlock.vue_vue_type_script_setup_true_lang-e7fd5a8b.js";import{N as j}from"./NavTabs-d4a6578a.js";import{T as G}from"./TextWithCopyButton-1098d691.js";import"./index-fce48c05.js";import"./WarningIcon.vue_vue_type_script_setup_true_lang-cab7af3a.js";import"./CopyButton-2ffc661c.js";const W=D({__name:"ZoneActionMenu",props:{zoneOverview:{type:Object,required:!0},kpopAttributes:{type:Object,default:()=>({placement:"bottomEnd"})}},setup(h){const{t}=N(),C=B(),x=R(),c=h,l=E(!1);function _(){l.value=!l.value}async function f(){await C.deleteZone({name:c.zoneOverview.name})}function e(){x.push({name:"zone-cp-list-view"})}return(a,p)=>{const d=i("KDropdownItem"),v=i("KDropdown");return r(),I("div",null,[s(v,{"kpop-attributes":c.kpopAttributes,"trigger-text":n(t)("zones.action_menu.toggle_button"),"show-caret":"",width:"280"},{items:o(()=>[s(d,{danger:"","data-testid":"delete-button",onClick:S(_,["prevent"])},{default:o(()=>[u(g(n(t)("zones.action_menu.delete_button")),1)]),_:1})]),_:1},8,["kpop-attributes","trigger-text"]),u(),l.value?(r(),m(L,{key:0,"confirmation-text":c.zoneOverview.name,"delete-function":f,"is-visible":"","action-button-text":n(t)("common.delete_modal.proceed_button"),title:n(t)("common.delete_modal.title",{type:"Zone"}),"data-testid":"delete-zone-modal",onCancel:_,onDelete:e},{"body-content":o(()=>[y("p",null,g(n(t)("common.delete_modal.text1",{type:"Zone",name:c.zoneOverview.name})),1),u(),y("p",null,g(n(t)("common.delete_modal.text2")),1)]),_:1},8,["confirmation-text","action-button-text","title"])):Z("",!0)])}}}),te=D({__name:"ZoneDetailTabsView",setup(h){var f;const{t}=N(),c=(((f=R().getRoutes().find(e=>e.name==="zone-cp-detail-tabs-view"))==null?void 0:f.children)??[]).map(e=>{var b,w;const a=typeof e.name>"u"?(b=e.children)==null?void 0:b[0]:e,p=a.name,d=((w=a.meta)==null?void 0:w.module)??"";return{title:t(`zone-cps.routes.item.navigation.${p}`),routeName:p,module:d}}),l=E([]),_=e=>{const a=[];e.zoneInsight.store==="memory"&&a.push({kind:"ZONE_STORE_TYPE_MEMORY",payload:{}}),V(e.zoneInsight,"version.kumaCp.kumaCpGlobalCompatible","true")||a.push({kind:"INCOMPATIBLE_ZONE_AND_GLOBAL_CPS_VERSIONS",payload:{zoneCpVersion:V(e.zoneInsight,"version.kumaCp.version",t("common.collection.none"))}}),l.value=a};return(e,a)=>{const p=i("RouteTitle"),d=i("RouterView"),v=i("AppView"),b=i("DataSource"),w=i("RouteView");return r(),m(w,{name:"zone-cp-detail-tabs-view",params:{zone:""}},{default:o(({can:T,route:z})=>[s(b,{src:`/zone-cps/${z.params.zone}`,onChange:_},{default:o(({data:k,error:O})=>[O!==void 0?(r(),m($,{key:0,error:O},null,8,["error"])):k===void 0?(r(),m(P,{key:1})):(r(),m(v,{key:2,breadcrumbs:[{to:{name:"zone-cp-list-view"},text:n(t)("zone-cps.routes.item.breadcrumbs")}]},M({title:o(()=>[y("h1",null,[s(G,{text:z.params.zone},{default:o(()=>[s(p,{title:n(t)("zone-cps.routes.item.title",{name:z.params.zone})},null,8,["title"])]),_:2},1032,["text"])])]),default:o(()=>[u(),u(),s(j,{class:"route-zone-detail-view-tabs",tabs:n(c)},null,8,["tabs"]),u(),s(d,null,{default:o(A=>[(r(),m(K(A.Component),{data:k,notifications:l.value},null,8,["data","notifications"]))]),_:2},1024)]),_:2},[T("create zones")?{name:"actions",fn:o(()=>[s(W,{"zone-overview":k},null,8,["zone-overview"])]),key:"0"}:void 0]),1032,["breadcrumbs"]))]),_:2},1032,["src"])]),_:1})}}});export{te as default}; +import{d as D,k as N,L as B,S as R,B as E,a as i,o as r,c as I,e as s,w as o,aB as S,f as u,t as g,l as n,b as m,m as y,p as Z,W as M,C as K,ay as V}from"./index-0dcf85b4.js";import{_ as L}from"./DeleteResourceModal.vue_vue_type_script_setup_true_lang-d3185d11.js";import{E as $}from"./ErrorBlock-70a14ad9.js";import{_ as P}from"./LoadingBlock.vue_vue_type_script_setup_true_lang-2e81faa2.js";import{N as j}from"./NavTabs-e7b14354.js";import{T as G}from"./TextWithCopyButton-da18080b.js";import"./index-fce48c05.js";import"./WarningIcon.vue_vue_type_script_setup_true_lang-d54f4898.js";import"./CopyButton-dcdce1f2.js";const W=D({__name:"ZoneActionMenu",props:{zoneOverview:{type:Object,required:!0},kpopAttributes:{type:Object,default:()=>({placement:"bottomEnd"})}},setup(h){const{t}=N(),C=B(),x=R(),c=h,l=E(!1);function _(){l.value=!l.value}async function f(){await C.deleteZone({name:c.zoneOverview.name})}function e(){x.push({name:"zone-cp-list-view"})}return(a,p)=>{const d=i("KDropdownItem"),v=i("KDropdown");return r(),I("div",null,[s(v,{"kpop-attributes":c.kpopAttributes,"trigger-text":n(t)("zones.action_menu.toggle_button"),"show-caret":"",width:"280"},{items:o(()=>[s(d,{danger:"","data-testid":"delete-button",onClick:S(_,["prevent"])},{default:o(()=>[u(g(n(t)("zones.action_menu.delete_button")),1)]),_:1})]),_:1},8,["kpop-attributes","trigger-text"]),u(),l.value?(r(),m(L,{key:0,"confirmation-text":c.zoneOverview.name,"delete-function":f,"is-visible":"","action-button-text":n(t)("common.delete_modal.proceed_button"),title:n(t)("common.delete_modal.title",{type:"Zone"}),"data-testid":"delete-zone-modal",onCancel:_,onDelete:e},{"body-content":o(()=>[y("p",null,g(n(t)("common.delete_modal.text1",{type:"Zone",name:c.zoneOverview.name})),1),u(),y("p",null,g(n(t)("common.delete_modal.text2")),1)]),_:1},8,["confirmation-text","action-button-text","title"])):Z("",!0)])}}}),te=D({__name:"ZoneDetailTabsView",setup(h){var f;const{t}=N(),c=(((f=R().getRoutes().find(e=>e.name==="zone-cp-detail-tabs-view"))==null?void 0:f.children)??[]).map(e=>{var b,w;const a=typeof e.name>"u"?(b=e.children)==null?void 0:b[0]:e,p=a.name,d=((w=a.meta)==null?void 0:w.module)??"";return{title:t(`zone-cps.routes.item.navigation.${p}`),routeName:p,module:d}}),l=E([]),_=e=>{const a=[];e.zoneInsight.store==="memory"&&a.push({kind:"ZONE_STORE_TYPE_MEMORY",payload:{}}),V(e.zoneInsight,"version.kumaCp.kumaCpGlobalCompatible","true")||a.push({kind:"INCOMPATIBLE_ZONE_AND_GLOBAL_CPS_VERSIONS",payload:{zoneCpVersion:V(e.zoneInsight,"version.kumaCp.version",t("common.collection.none"))}}),l.value=a};return(e,a)=>{const p=i("RouteTitle"),d=i("RouterView"),v=i("AppView"),b=i("DataSource"),w=i("RouteView");return r(),m(w,{name:"zone-cp-detail-tabs-view",params:{zone:""}},{default:o(({can:T,route:z})=>[s(b,{src:`/zone-cps/${z.params.zone}`,onChange:_},{default:o(({data:k,error:O})=>[O!==void 0?(r(),m($,{key:0,error:O},null,8,["error"])):k===void 0?(r(),m(P,{key:1})):(r(),m(v,{key:2,breadcrumbs:[{to:{name:"zone-cp-list-view"},text:n(t)("zone-cps.routes.item.breadcrumbs")}]},M({title:o(()=>[y("h1",null,[s(G,{text:z.params.zone},{default:o(()=>[s(p,{title:n(t)("zone-cps.routes.item.title",{name:z.params.zone})},null,8,["title"])]),_:2},1032,["text"])])]),default:o(()=>[u(),u(),s(j,{class:"route-zone-detail-view-tabs",tabs:n(c)},null,8,["tabs"]),u(),s(d,null,{default:o(A=>[(r(),m(K(A.Component),{data:k,notifications:l.value},null,8,["data","notifications"]))]),_:2},1024)]),_:2},[T("create zones")?{name:"actions",fn:o(()=>[s(W,{"zone-overview":k},null,8,["zone-overview"])]),key:"0"}:void 0]),1032,["breadcrumbs"]))]),_:2},1032,["src"])]),_:1})}}});export{te as default}; diff --git a/app/kuma-ui/pkg/resources/data/assets/ZoneDetailView-dbc90aa9.js b/app/kuma-ui/pkg/resources/data/assets/ZoneDetailView-e0913944.js similarity index 89% rename from app/kuma-ui/pkg/resources/data/assets/ZoneDetailView-dbc90aa9.js rename to app/kuma-ui/pkg/resources/data/assets/ZoneDetailView-e0913944.js index 0b8839c42bcd..e1f22dd9cc8e 100644 --- a/app/kuma-ui/pkg/resources/data/assets/ZoneDetailView-dbc90aa9.js +++ b/app/kuma-ui/pkg/resources/data/assets/ZoneDetailView-e0913944.js @@ -1 +1 @@ -import{d as h,a as d,o as c,b as y,w as t,e as o,W as b,f as e,m as i,X as r,t as a,c as p,p as k,F as v,D as w}from"./index-5f4feb06.js";import{S as V}from"./StatusBadge-2db39c5c.js";import{_ as g}from"./SubscriptionList.vue_vue_type_script_setup_true_lang-cd9cb397.js";import"./AccordionList-5331d528.js";const z=["data-testid","innerHTML"],C={"data-testid":"detail-view-details",class:"stack"},B={class:"columns"},x={key:0},L=h({__name:"ZoneDetailView",props:{data:{},notifications:{default:()=>[]}},setup(m){const s=m;return(D,I)=>{const u=d("KCard"),_=d("AppView"),f=d("RouteView");return c(),y(f,{name:"zone-cp-detail-view"},{default:t(({t:n})=>[o(_,null,b({default:t(()=>[e(),i("div",C,[o(u,null,{default:t(()=>[i("div",B,[o(r,null,{title:t(()=>[e(a(n("http.api.property.status")),1)]),body:t(()=>[o(V,{status:s.data.state},null,8,["status"])]),_:2},1024),e(),o(r,null,{title:t(()=>[e(a(n("http.api.property.type")),1)]),body:t(()=>[e(a(n(`common.product.environment.${s.data.zoneInsight.environment||"unknown"}`)),1)]),_:2},1024),e(),o(r,null,{title:t(()=>[e(a(n("zone-cps.routes.item.authentication_type")),1)]),body:t(()=>[e(a(s.data.zoneInsight.authenticationType||n("common.not_applicable")),1)]),_:2},1024)])]),_:2},1024),e(),s.data.zoneInsight.subscriptions.length>0?(c(),p("div",x,[i("h2",null,a(n("zone-cps.detail.subscriptions")),1),e(),o(u,{class:"mt-4"},{default:t(()=>[o(g,{subscriptions:s.data.zoneInsight.subscriptions},{default:t(()=>[i("p",null,a(n("zone-cps.routes.item.subscription_intro")),1)]),_:2},1032,["subscriptions"])]),_:2},1024)])):k("",!0)])]),_:2},[s.notifications.length>0?{name:"notifications",fn:t(()=>[i("ul",null,[(c(!0),p(v,null,w(s.notifications,l=>(c(),p("li",{key:l.kind,"data-testid":`warning-${l.kind}`,innerHTML:n(`common.warnings.${l.kind}`,l.payload)},null,8,z))),128)),e()])]),key:"0"}:void 0]),1024)]),_:1})}}});export{L as default}; +import{d as h,a as d,o as c,b as y,w as t,e as o,W as b,f as e,m as i,X as r,t as a,c as p,p as k,F as v,D as w}from"./index-0dcf85b4.js";import{S as V}from"./StatusBadge-e7326f60.js";import{_ as g}from"./SubscriptionList.vue_vue_type_script_setup_true_lang-83336cd8.js";import"./AccordionList-a4be0b78.js";const z=["data-testid","innerHTML"],C={"data-testid":"detail-view-details",class:"stack"},B={class:"columns"},x={key:0},L=h({__name:"ZoneDetailView",props:{data:{},notifications:{default:()=>[]}},setup(m){const s=m;return(D,I)=>{const u=d("KCard"),_=d("AppView"),f=d("RouteView");return c(),y(f,{name:"zone-cp-detail-view"},{default:t(({t:n})=>[o(_,null,b({default:t(()=>[e(),i("div",C,[o(u,null,{default:t(()=>[i("div",B,[o(r,null,{title:t(()=>[e(a(n("http.api.property.status")),1)]),body:t(()=>[o(V,{status:s.data.state},null,8,["status"])]),_:2},1024),e(),o(r,null,{title:t(()=>[e(a(n("http.api.property.type")),1)]),body:t(()=>[e(a(n(`common.product.environment.${s.data.zoneInsight.environment||"unknown"}`)),1)]),_:2},1024),e(),o(r,null,{title:t(()=>[e(a(n("zone-cps.routes.item.authentication_type")),1)]),body:t(()=>[e(a(s.data.zoneInsight.authenticationType||n("common.not_applicable")),1)]),_:2},1024)])]),_:2},1024),e(),s.data.zoneInsight.subscriptions.length>0?(c(),p("div",x,[i("h2",null,a(n("zone-cps.detail.subscriptions")),1),e(),o(u,{class:"mt-4"},{default:t(()=>[o(g,{subscriptions:s.data.zoneInsight.subscriptions},{default:t(()=>[i("p",null,a(n("zone-cps.routes.item.subscription_intro")),1)]),_:2},1032,["subscriptions"])]),_:2},1024)])):k("",!0)])]),_:2},[s.notifications.length>0?{name:"notifications",fn:t(()=>[i("ul",null,[(c(!0),p(v,null,w(s.notifications,l=>(c(),p("li",{key:l.kind,"data-testid":`warning-${l.kind}`,innerHTML:n(`common.warnings.${l.kind}`,l.payload)},null,8,z))),128)),e()])]),key:"0"}:void 0]),1024)]),_:1})}}});export{L as default}; diff --git a/app/kuma-ui/pkg/resources/data/assets/ZoneEgressClustersView-e20b1b75.js b/app/kuma-ui/pkg/resources/data/assets/ZoneEgressClustersView-70255ef6.js similarity index 66% rename from app/kuma-ui/pkg/resources/data/assets/ZoneEgressClustersView-e20b1b75.js rename to app/kuma-ui/pkg/resources/data/assets/ZoneEgressClustersView-70255ef6.js index 36ad9fbe0ebf..98f6fb4a562f 100644 --- a/app/kuma-ui/pkg/resources/data/assets/ZoneEgressClustersView-e20b1b75.js +++ b/app/kuma-ui/pkg/resources/data/assets/ZoneEgressClustersView-70255ef6.js @@ -1 +1 @@ -import{E as l}from"./EnvoyData-b31c947e.js";import{d as m,a as t,o as d,b as u,w as s,e as a,m as g,f as _}from"./index-5f4feb06.js";import"./index-fce48c05.js";import"./CodeBlock.vue_vue_type_style_index_0_lang-6de3c828.js";import"./uniqueId-90cc9b93.js";import"./EmptyBlock.vue_vue_type_script_setup_true_lang-7f79002a.js";import"./ErrorBlock-558c0398.js";import"./TextWithCopyButton-1098d691.js";import"./CopyButton-2ffc661c.js";import"./WarningIcon.vue_vue_type_script_setup_true_lang-cab7af3a.js";import"./LoadingBlock.vue_vue_type_script_setup_true_lang-e7fd5a8b.js";const N=m({__name:"ZoneEgressClustersView",setup(f){return(h,C)=>{const r=t("RouteTitle"),n=t("KCard"),p=t("AppView"),i=t("RouteView");return d(),u(i,{name:"zone-egress-clusters-view",params:{zoneEgress:"",codeSearch:"",codeFilter:!1,codeRegExp:!1}},{default:s(({route:e,t:c})=>[a(p,null,{title:s(()=>[g("h2",null,[a(r,{title:c("zone-egresses.routes.item.navigation.zone-egress-clusters-view")},null,8,["title"])])]),default:s(()=>[_(),a(n,null,{default:s(()=>[a(l,{resource:"Zone",src:`/zone-egresses/${e.params.zoneEgress}/data-path/clusters`,query:e.params.codeSearch,"is-filter-mode":e.params.codeFilter,"is-reg-exp-mode":e.params.codeRegExp,onQueryChange:o=>e.update({codeSearch:o}),onFilterModeChange:o=>e.update({codeFilter:o}),onRegExpModeChange:o=>e.update({codeRegExp:o})},null,8,["src","query","is-filter-mode","is-reg-exp-mode","onQueryChange","onFilterModeChange","onRegExpModeChange"])]),_:2},1024)]),_:2},1024)]),_:1})}}});export{N as default}; +import{E as l}from"./EnvoyData-9a9e9257.js";import{d as m,a as t,o as d,b as u,w as s,e as a,m as g,f as _}from"./index-0dcf85b4.js";import"./index-fce48c05.js";import"./CodeBlock.vue_vue_type_style_index_0_lang-95cf08c2.js";import"./uniqueId-90cc9b93.js";import"./EmptyBlock.vue_vue_type_script_setup_true_lang-6ff90078.js";import"./ErrorBlock-70a14ad9.js";import"./TextWithCopyButton-da18080b.js";import"./CopyButton-dcdce1f2.js";import"./WarningIcon.vue_vue_type_script_setup_true_lang-d54f4898.js";import"./LoadingBlock.vue_vue_type_script_setup_true_lang-2e81faa2.js";const N=m({__name:"ZoneEgressClustersView",setup(f){return(h,C)=>{const r=t("RouteTitle"),n=t("KCard"),p=t("AppView"),i=t("RouteView");return d(),u(i,{name:"zone-egress-clusters-view",params:{zoneEgress:"",codeSearch:"",codeFilter:!1,codeRegExp:!1}},{default:s(({route:e,t:c})=>[a(p,null,{title:s(()=>[g("h2",null,[a(r,{title:c("zone-egresses.routes.item.navigation.zone-egress-clusters-view")},null,8,["title"])])]),default:s(()=>[_(),a(n,null,{default:s(()=>[a(l,{resource:"Zone",src:`/zone-egresses/${e.params.zoneEgress}/data-path/clusters`,query:e.params.codeSearch,"is-filter-mode":e.params.codeFilter,"is-reg-exp-mode":e.params.codeRegExp,onQueryChange:o=>e.update({codeSearch:o}),onFilterModeChange:o=>e.update({codeFilter:o}),onRegExpModeChange:o=>e.update({codeRegExp:o})},null,8,["src","query","is-filter-mode","is-reg-exp-mode","onQueryChange","onFilterModeChange","onRegExpModeChange"])]),_:2},1024)]),_:2},1024)]),_:1})}}});export{N as default}; diff --git a/app/kuma-ui/pkg/resources/data/assets/ZoneEgressConfigView-15ded3eb.js b/app/kuma-ui/pkg/resources/data/assets/ZoneEgressConfigView-c41dbaca.js similarity index 73% rename from app/kuma-ui/pkg/resources/data/assets/ZoneEgressConfigView-15ded3eb.js rename to app/kuma-ui/pkg/resources/data/assets/ZoneEgressConfigView-c41dbaca.js index b88f3f8c7d86..72ff8cb10380 100644 --- a/app/kuma-ui/pkg/resources/data/assets/ZoneEgressConfigView-15ded3eb.js +++ b/app/kuma-ui/pkg/resources/data/assets/ZoneEgressConfigView-c41dbaca.js @@ -1 +1 @@ -import{E}from"./ErrorBlock-558c0398.js";import{_ as x}from"./LoadingBlock.vue_vue_type_script_setup_true_lang-e7fd5a8b.js";import{_ as w}from"./ResourceCodeBlock.vue_vue_type_style_index_0_lang-8c675a57.js";import{d as R,a as s,o as n,b as a,w as r,e as t,m as V,f as k,p as z}from"./index-5f4feb06.js";import"./index-fce48c05.js";import"./TextWithCopyButton-1098d691.js";import"./CopyButton-2ffc661c.js";import"./WarningIcon.vue_vue_type_script_setup_true_lang-cab7af3a.js";import"./CodeBlock.vue_vue_type_style_index_0_lang-6de3c828.js";import"./uniqueId-90cc9b93.js";import"./toYaml-4e00099e.js";const Q=R({__name:"ZoneEgressConfigView",setup(v){return(y,F)=>{const d=s("RouteTitle"),c=s("DataSource"),_=s("KCard"),g=s("AppView"),u=s("RouteView");return n(),a(u,{name:"zone-egress-config-view",params:{zoneEgress:"",codeSearch:"",codeFilter:!1,codeRegExp:!1}},{default:r(({route:e,t:f})=>[t(g,null,{title:r(()=>[V("h2",null,[t(d,{title:f("zone-egresses.routes.item.navigation.zone-egress-config-view")},null,8,["title"])])]),default:r(()=>[k(),t(_,null,{default:r(()=>[t(c,{src:`/zone-egresses/${e.params.zoneEgress}`},{default:r(({data:p,error:m})=>[m!==void 0?(n(),a(E,{key:0,error:m},null,8,["error"])):p===void 0?(n(),a(x,{key:1})):(n(),a(w,{key:2,resource:p.config,"is-searchable":"",query:e.params.codeSearch,"is-filter-mode":e.params.codeFilter,"is-reg-exp-mode":e.params.codeRegExp,onQueryChange:o=>e.update({codeSearch:o}),onFilterModeChange:o=>e.update({codeFilter:o}),onRegExpModeChange:o=>e.update({codeRegExp:o})},{default:r(({copy:o,copying:h})=>[h?(n(),a(c,{key:0,src:`/zone-egresses/${e.params.zoneEgress}/as/kubernetes?no-store`,onChange:i=>{o(l=>l(i))},onError:i=>{o((l,C)=>C(i))}},null,8,["src","onChange","onError"])):z("",!0)]),_:2},1032,["resource","query","is-filter-mode","is-reg-exp-mode","onQueryChange","onFilterModeChange","onRegExpModeChange"]))]),_:2},1032,["src"])]),_:2},1024)]),_:2},1024)]),_:1})}}});export{Q as default}; +import{E}from"./ErrorBlock-70a14ad9.js";import{_ as x}from"./LoadingBlock.vue_vue_type_script_setup_true_lang-2e81faa2.js";import{_ as w}from"./ResourceCodeBlock.vue_vue_type_style_index_0_lang-c72a10ad.js";import{d as R,a as s,o as n,b as a,w as r,e as t,m as V,f as k,p as z}from"./index-0dcf85b4.js";import"./index-fce48c05.js";import"./TextWithCopyButton-da18080b.js";import"./CopyButton-dcdce1f2.js";import"./WarningIcon.vue_vue_type_script_setup_true_lang-d54f4898.js";import"./CodeBlock.vue_vue_type_style_index_0_lang-95cf08c2.js";import"./uniqueId-90cc9b93.js";import"./toYaml-4e00099e.js";const Q=R({__name:"ZoneEgressConfigView",setup(v){return(y,F)=>{const d=s("RouteTitle"),c=s("DataSource"),_=s("KCard"),g=s("AppView"),u=s("RouteView");return n(),a(u,{name:"zone-egress-config-view",params:{zoneEgress:"",codeSearch:"",codeFilter:!1,codeRegExp:!1}},{default:r(({route:e,t:f})=>[t(g,null,{title:r(()=>[V("h2",null,[t(d,{title:f("zone-egresses.routes.item.navigation.zone-egress-config-view")},null,8,["title"])])]),default:r(()=>[k(),t(_,null,{default:r(()=>[t(c,{src:`/zone-egresses/${e.params.zoneEgress}`},{default:r(({data:p,error:m})=>[m!==void 0?(n(),a(E,{key:0,error:m},null,8,["error"])):p===void 0?(n(),a(x,{key:1})):(n(),a(w,{key:2,resource:p.config,"is-searchable":"",query:e.params.codeSearch,"is-filter-mode":e.params.codeFilter,"is-reg-exp-mode":e.params.codeRegExp,onQueryChange:o=>e.update({codeSearch:o}),onFilterModeChange:o=>e.update({codeFilter:o}),onRegExpModeChange:o=>e.update({codeRegExp:o})},{default:r(({copy:o,copying:h})=>[h?(n(),a(c,{key:0,src:`/zone-egresses/${e.params.zoneEgress}/as/kubernetes?no-store`,onChange:i=>{o(l=>l(i))},onError:i=>{o((l,C)=>C(i))}},null,8,["src","onChange","onError"])):z("",!0)]),_:2},1032,["resource","query","is-filter-mode","is-reg-exp-mode","onQueryChange","onFilterModeChange","onRegExpModeChange"]))]),_:2},1032,["src"])]),_:2},1024)]),_:2},1024)]),_:1})}}});export{Q as default}; diff --git a/app/kuma-ui/pkg/resources/data/assets/ZoneEgressDetailTabsView-6bc4f674.js b/app/kuma-ui/pkg/resources/data/assets/ZoneEgressDetailTabsView-136d2364.js similarity index 77% rename from app/kuma-ui/pkg/resources/data/assets/ZoneEgressDetailTabsView-6bc4f674.js rename to app/kuma-ui/pkg/resources/data/assets/ZoneEgressDetailTabsView-136d2364.js index bbeadeffec66..f1ee08fbc3b6 100644 --- a/app/kuma-ui/pkg/resources/data/assets/ZoneEgressDetailTabsView-6bc4f674.js +++ b/app/kuma-ui/pkg/resources/data/assets/ZoneEgressDetailTabsView-136d2364.js @@ -1 +1 @@ -import{d as x,k as R,S as k,a as o,o as n,b as l,w as t,e as s,l as u,m as E,f as g,c as C,F as T,C as h}from"./index-5f4feb06.js";import{E as y}from"./ErrorBlock-558c0398.js";import{_ as B}from"./LoadingBlock.vue_vue_type_script_setup_true_lang-e7fd5a8b.js";import{N}from"./NavTabs-d4a6578a.js";import{T as D}from"./TextWithCopyButton-1098d691.js";import"./index-fce48c05.js";import"./WarningIcon.vue_vue_type_script_setup_true_lang-cab7af3a.js";import"./CopyButton-2ffc661c.js";const J=x({__name:"ZoneEgressDetailTabsView",setup(S){var _;const{t:a}=R(),w=(((_=k().getRoutes().find(e=>e.name==="zone-egress-detail-tabs-view"))==null?void 0:_.children)??[]).map(e=>{var m,i;const p=typeof e.name>"u"?(m=e.children)==null?void 0:m[0]:e,r=p.name,d=((i=p.meta)==null?void 0:i.module)??"";return{title:a(`zone-egresses.routes.item.navigation.${r}`),routeName:r,module:d}});return(e,p)=>{const r=o("RouteTitle"),d=o("RouterView"),f=o("DataSource"),m=o("AppView"),i=o("RouteView");return n(),l(i,{name:"zone-egress-detail-tabs-view",params:{zone:"",zoneEgress:""}},{default:t(({route:c,can:v})=>[s(m,{breadcrumbs:[...v("use zones")?[{to:{name:"zone-cp-list-view"},text:u(a)("zone-cps.routes.item.breadcrumbs")}]:[],{to:{name:"zone-egress-list-view",params:{zone:c.params.zone}},text:u(a)("zone-egresses.routes.item.breadcrumbs")}]},{title:t(()=>[E("h1",null,[s(D,{text:c.params.zoneEgress},{default:t(()=>[s(r,{title:u(a)("zone-egresses.routes.item.title",{name:c.params.zoneEgress})},null,8,["title"])]),_:2},1032,["text"])])]),default:t(()=>[g(),s(f,{src:`/zone-egress-overviews/${c.params.zoneEgress}`},{default:t(({data:z,error:b})=>[b!==void 0?(n(),l(y,{key:0,error:b},null,8,["error"])):z===void 0?(n(),l(B,{key:1})):(n(),C(T,{key:2},[s(N,{class:"route-zone-egress-detail-view-tabs",tabs:u(w)},null,8,["tabs"]),g(),s(d,null,{default:t(V=>[(n(),l(h(V.Component),{data:z},null,8,["data"]))]),_:2},1024)],64))]),_:2},1032,["src"])]),_:2},1032,["breadcrumbs"])]),_:1})}}});export{J as default}; +import{d as x,k as R,S as k,a as o,o as n,b as l,w as t,e as s,l as u,m as E,f as g,c as C,F as T,C as h}from"./index-0dcf85b4.js";import{E as y}from"./ErrorBlock-70a14ad9.js";import{_ as B}from"./LoadingBlock.vue_vue_type_script_setup_true_lang-2e81faa2.js";import{N}from"./NavTabs-e7b14354.js";import{T as D}from"./TextWithCopyButton-da18080b.js";import"./index-fce48c05.js";import"./WarningIcon.vue_vue_type_script_setup_true_lang-d54f4898.js";import"./CopyButton-dcdce1f2.js";const J=x({__name:"ZoneEgressDetailTabsView",setup(S){var _;const{t:a}=R(),w=(((_=k().getRoutes().find(e=>e.name==="zone-egress-detail-tabs-view"))==null?void 0:_.children)??[]).map(e=>{var m,i;const p=typeof e.name>"u"?(m=e.children)==null?void 0:m[0]:e,r=p.name,d=((i=p.meta)==null?void 0:i.module)??"";return{title:a(`zone-egresses.routes.item.navigation.${r}`),routeName:r,module:d}});return(e,p)=>{const r=o("RouteTitle"),d=o("RouterView"),f=o("DataSource"),m=o("AppView"),i=o("RouteView");return n(),l(i,{name:"zone-egress-detail-tabs-view",params:{zone:"",zoneEgress:""}},{default:t(({route:c,can:v})=>[s(m,{breadcrumbs:[...v("use zones")?[{to:{name:"zone-cp-list-view"},text:u(a)("zone-cps.routes.item.breadcrumbs")}]:[],{to:{name:"zone-egress-list-view",params:{zone:c.params.zone}},text:u(a)("zone-egresses.routes.item.breadcrumbs")}]},{title:t(()=>[E("h1",null,[s(D,{text:c.params.zoneEgress},{default:t(()=>[s(r,{title:u(a)("zone-egresses.routes.item.title",{name:c.params.zoneEgress})},null,8,["title"])]),_:2},1032,["text"])])]),default:t(()=>[g(),s(f,{src:`/zone-egress-overviews/${c.params.zoneEgress}`},{default:t(({data:z,error:b})=>[b!==void 0?(n(),l(y,{key:0,error:b},null,8,["error"])):z===void 0?(n(),l(B,{key:1})):(n(),C(T,{key:2},[s(N,{class:"route-zone-egress-detail-view-tabs",tabs:u(w)},null,8,["tabs"]),g(),s(d,null,{default:t(V=>[(n(),l(h(V.Component),{data:z},null,8,["data"]))]),_:2},1024)],64))]),_:2},1032,["src"])]),_:2},1032,["breadcrumbs"])]),_:1})}}});export{J as default}; diff --git a/app/kuma-ui/pkg/resources/data/assets/ZoneEgressDetailView-1d10e68d.js b/app/kuma-ui/pkg/resources/data/assets/ZoneEgressDetailView-53dd3641.js similarity index 75% rename from app/kuma-ui/pkg/resources/data/assets/ZoneEgressDetailView-1d10e68d.js rename to app/kuma-ui/pkg/resources/data/assets/ZoneEgressDetailView-53dd3641.js index 5ec782b61405..a6aa14580898 100644 --- a/app/kuma-ui/pkg/resources/data/assets/ZoneEgressDetailView-1d10e68d.js +++ b/app/kuma-ui/pkg/resources/data/assets/ZoneEgressDetailView-53dd3641.js @@ -1 +1 @@ -import{d as y,a as d,o as s,b as _,w as e,e as t,m as c,X as f,f as a,t as r,c as i,F as p,D as w,p as V}from"./index-5f4feb06.js";import{S as C}from"./StatusBadge-2db39c5c.js";import{T as x}from"./TextWithCopyButton-1098d691.js";import{_ as v}from"./SubscriptionList.vue_vue_type_script_setup_true_lang-cd9cb397.js";import"./CopyButton-2ffc661c.js";import"./index-fce48c05.js";import"./AccordionList-5331d528.js";const B={class:"stack","data-testid":"detail-view-details"},z={class:"columns"},E={key:0},I=y({__name:"ZoneEgressDetailView",props:{data:{}},setup(g){const o=g;return(b,A)=>{const m=d("KCard"),h=d("AppView"),k=d("RouteView");return s(),_(k,{name:"zone-egress-detail-view"},{default:e(({t:n})=>[t(h,null,{default:e(()=>{var u;return[c("div",B,[t(m,null,{default:e(()=>[c("div",z,[t(f,null,{title:e(()=>[a(r(n("http.api.property.status")),1)]),body:e(()=>[t(C,{status:o.data.state},null,8,["status"])]),_:2},1024),a(),t(f,null,{title:e(()=>[a(r(n("http.api.property.address")),1)]),body:e(()=>[o.data.zoneEgress.socketAddress.length>0?(s(),_(x,{key:0,text:o.data.zoneEgress.socketAddress},null,8,["text"])):(s(),i(p,{key:1},[a(r(n("common.detail.none")),1)],64))]),_:2},1024)])]),_:2},1024),a(),(s(!0),i(p,null,w([((u=o.data.zoneEgressInsight)==null?void 0:u.subscriptions)??[]],l=>(s(),i(p,{key:l},[l.length>0?(s(),i("div",E,[c("h2",null,r(n("zone-egresses.routes.item.subscriptions.title")),1),a(),t(m,{class:"mt-4"},{default:e(()=>[t(v,{subscriptions:l},null,8,["subscriptions"])]),_:2},1024)])):V("",!0)],64))),128))])]}),_:2},1024)]),_:1})}}});export{I as default}; +import{d as y,a as d,o as s,b as _,w as e,e as t,m as c,X as f,f as a,t as r,c as i,F as p,D as w,p as V}from"./index-0dcf85b4.js";import{S as C}from"./StatusBadge-e7326f60.js";import{T as x}from"./TextWithCopyButton-da18080b.js";import{_ as v}from"./SubscriptionList.vue_vue_type_script_setup_true_lang-83336cd8.js";import"./CopyButton-dcdce1f2.js";import"./index-fce48c05.js";import"./AccordionList-a4be0b78.js";const B={class:"stack","data-testid":"detail-view-details"},z={class:"columns"},E={key:0},I=y({__name:"ZoneEgressDetailView",props:{data:{}},setup(g){const o=g;return(b,A)=>{const m=d("KCard"),h=d("AppView"),k=d("RouteView");return s(),_(k,{name:"zone-egress-detail-view"},{default:e(({t:n})=>[t(h,null,{default:e(()=>{var u;return[c("div",B,[t(m,null,{default:e(()=>[c("div",z,[t(f,null,{title:e(()=>[a(r(n("http.api.property.status")),1)]),body:e(()=>[t(C,{status:o.data.state},null,8,["status"])]),_:2},1024),a(),t(f,null,{title:e(()=>[a(r(n("http.api.property.address")),1)]),body:e(()=>[o.data.zoneEgress.socketAddress.length>0?(s(),_(x,{key:0,text:o.data.zoneEgress.socketAddress},null,8,["text"])):(s(),i(p,{key:1},[a(r(n("common.detail.none")),1)],64))]),_:2},1024)])]),_:2},1024),a(),(s(!0),i(p,null,w([((u=o.data.zoneEgressInsight)==null?void 0:u.subscriptions)??[]],l=>(s(),i(p,{key:l},[l.length>0?(s(),i("div",E,[c("h2",null,r(n("zone-egresses.routes.item.subscriptions.title")),1),a(),t(m,{class:"mt-4"},{default:e(()=>[t(v,{subscriptions:l},null,8,["subscriptions"])]),_:2},1024)])):V("",!0)],64))),128))])]}),_:2},1024)]),_:1})}}});export{I as default}; diff --git a/app/kuma-ui/pkg/resources/data/assets/ZoneEgressListView-54524b01.js b/app/kuma-ui/pkg/resources/data/assets/ZoneEgressListView-17f0acb9.js similarity index 84% rename from app/kuma-ui/pkg/resources/data/assets/ZoneEgressListView-54524b01.js rename to app/kuma-ui/pkg/resources/data/assets/ZoneEgressListView-17f0acb9.js index ab63065bb64e..c77e3a3f95cd 100644 --- a/app/kuma-ui/pkg/resources/data/assets/ZoneEgressListView-54524b01.js +++ b/app/kuma-ui/pkg/resources/data/assets/ZoneEgressListView-17f0acb9.js @@ -1 +1 @@ -import{K as E}from"./index-fce48c05.js";import{d as V,a as r,o as a,b as l,w as e,e as o,m as x,f as i,t as p,c as h,F as S,l as g,P as A,C as b,p as z,_ as R}from"./index-5f4feb06.js";import{A as B}from"./AppCollection-4b66f394.js";import{E as L}from"./ErrorBlock-558c0398.js";import{S as N}from"./StatusBadge-2db39c5c.js";import{S as D}from"./SummaryView-46a73d2c.js";import{T}from"./TextWithCopyButton-1098d691.js";import"./EmptyBlock.vue_vue_type_script_setup_true_lang-7f79002a.js";import"./WarningIcon.vue_vue_type_script_setup_true_lang-cab7af3a.js";import"./CopyButton-2ffc661c.js";const Z=V({__name:"ZoneEgressListView",setup(I){return(K,$)=>{const y=r("RouteTitle"),_=r("RouterLink"),f=r("KCard"),k=r("RouterView"),u=r("DataSource"),w=r("AppView"),v=r("RouteView");return a(),l(u,{src:"/me"},{default:e(({data:C})=>[C?(a(),l(v,{key:0,name:"zone-egress-list-view",params:{zone:"",zoneEgress:""}},{default:e(({route:n,t:m})=>[o(w,null,{title:e(()=>[x("h2",null,[o(y,{title:m("zone-egresses.routes.items.title")},null,8,["title"])])]),default:e(()=>[i(),o(u,{src:`/zone-cps/${n.params.zone||"*"}/egresses?page=1&size=100`},{default:e(({data:t,error:c})=>[o(f,null,{default:e(()=>[c!==void 0?(a(),l(L,{key:0,error:c},null,8,["error"])):(a(),l(B,{key:1,class:"zone-egress-collection","data-testid":"zone-egress-collection",headers:[{label:"Name",key:"name"},{label:"Address",key:"socketAddress"},{label:"Status",key:"status"},{label:"Details",key:"details",hideLabel:!0}],"page-number":1,"page-size":100,total:t==null?void 0:t.total,items:t==null?void 0:t.items,error:c,"empty-state-message":m("common.emptyState.message",{type:"Zone Egresses"}),"empty-state-cta-to":m("zone-egresses.href.docs"),"empty-state-cta-text":m("common.documentation"),"is-selected-row":s=>s.name===n.params.zoneEgress,onChange:n.update},{name:e(({row:s})=>[o(_,{to:{name:"zone-egress-summary-view",params:{zone:n.params.zone,zoneEgress:s.name},query:{page:1,size:100}}},{default:e(()=>[i(p(s.name),1)]),_:2},1032,["to"])]),socketAddress:e(({row:s})=>[s.zoneEgress.socketAddress.length>0?(a(),l(T,{key:0,text:s.zoneEgress.socketAddress},null,8,["text"])):(a(),h(S,{key:1},[i(p(m("common.collection.none")),1)],64))]),status:e(({row:s})=>[o(N,{status:s.state},null,8,["status"])]),details:e(({row:s})=>[o(_,{class:"details-link","data-testid":"details-link",to:{name:"zone-egress-detail-view",params:{zoneEgress:s.name}}},{default:e(()=>[i(p(m("common.collection.details_link"))+" ",1),o(g(A),{display:"inline-block",decorative:"",size:g(E)},null,8,["size"])]),_:2},1032,["to"])]),_:2},1032,["total","items","error","empty-state-message","empty-state-cta-to","empty-state-cta-text","is-selected-row","onChange"]))]),_:2},1024),i(),n.params.zoneEgress?(a(),l(k,{key:0},{default:e(s=>[o(D,{onClose:d=>n.replace({name:"zone-egress-list-view",params:{zone:n.params.zone},query:{page:1,size:100}})},{default:e(()=>[(a(),l(b(s.Component),{"zone-egress-overview":t==null?void 0:t.items.find(d=>d.name===n.params.zoneEgress)},null,8,["zone-egress-overview"]))]),_:2},1032,["onClose"])]),_:2},1024)):z("",!0)]),_:2},1032,["src"])]),_:2},1024)]),_:1},8,["params"])):z("",!0)]),_:1})}}});const M=R(Z,[["__scopeId","data-v-ecf2c484"]]);export{M as default}; +import{K as E}from"./index-fce48c05.js";import{d as V,a as r,o as a,b as l,w as e,e as o,m as x,f as i,t as p,c as h,F as S,l as g,P as A,C as b,p as z,_ as R}from"./index-0dcf85b4.js";import{A as B}from"./AppCollection-a7a0983f.js";import{E as L}from"./ErrorBlock-70a14ad9.js";import{S as N}from"./StatusBadge-e7326f60.js";import{S as D}from"./SummaryView-8d0a7896.js";import{T}from"./TextWithCopyButton-da18080b.js";import"./EmptyBlock.vue_vue_type_script_setup_true_lang-6ff90078.js";import"./WarningIcon.vue_vue_type_script_setup_true_lang-d54f4898.js";import"./CopyButton-dcdce1f2.js";const Z=V({__name:"ZoneEgressListView",setup(I){return(K,$)=>{const y=r("RouteTitle"),_=r("RouterLink"),f=r("KCard"),k=r("RouterView"),u=r("DataSource"),w=r("AppView"),v=r("RouteView");return a(),l(u,{src:"/me"},{default:e(({data:C})=>[C?(a(),l(v,{key:0,name:"zone-egress-list-view",params:{zone:"",zoneEgress:""}},{default:e(({route:n,t:m})=>[o(w,null,{title:e(()=>[x("h2",null,[o(y,{title:m("zone-egresses.routes.items.title")},null,8,["title"])])]),default:e(()=>[i(),o(u,{src:`/zone-cps/${n.params.zone||"*"}/egresses?page=1&size=100`},{default:e(({data:t,error:c})=>[o(f,null,{default:e(()=>[c!==void 0?(a(),l(L,{key:0,error:c},null,8,["error"])):(a(),l(B,{key:1,class:"zone-egress-collection","data-testid":"zone-egress-collection",headers:[{label:"Name",key:"name"},{label:"Address",key:"socketAddress"},{label:"Status",key:"status"},{label:"Details",key:"details",hideLabel:!0}],"page-number":1,"page-size":100,total:t==null?void 0:t.total,items:t==null?void 0:t.items,error:c,"empty-state-message":m("common.emptyState.message",{type:"Zone Egresses"}),"empty-state-cta-to":m("zone-egresses.href.docs"),"empty-state-cta-text":m("common.documentation"),"is-selected-row":s=>s.name===n.params.zoneEgress,onChange:n.update},{name:e(({row:s})=>[o(_,{to:{name:"zone-egress-summary-view",params:{zone:n.params.zone,zoneEgress:s.name},query:{page:1,size:100}}},{default:e(()=>[i(p(s.name),1)]),_:2},1032,["to"])]),socketAddress:e(({row:s})=>[s.zoneEgress.socketAddress.length>0?(a(),l(T,{key:0,text:s.zoneEgress.socketAddress},null,8,["text"])):(a(),h(S,{key:1},[i(p(m("common.collection.none")),1)],64))]),status:e(({row:s})=>[o(N,{status:s.state},null,8,["status"])]),details:e(({row:s})=>[o(_,{class:"details-link","data-testid":"details-link",to:{name:"zone-egress-detail-view",params:{zoneEgress:s.name}}},{default:e(()=>[i(p(m("common.collection.details_link"))+" ",1),o(g(A),{display:"inline-block",decorative:"",size:g(E)},null,8,["size"])]),_:2},1032,["to"])]),_:2},1032,["total","items","error","empty-state-message","empty-state-cta-to","empty-state-cta-text","is-selected-row","onChange"]))]),_:2},1024),i(),n.params.zoneEgress?(a(),l(k,{key:0},{default:e(s=>[o(D,{onClose:d=>n.replace({name:"zone-egress-list-view",params:{zone:n.params.zone},query:{page:1,size:100}})},{default:e(()=>[(a(),l(b(s.Component),{"zone-egress-overview":t==null?void 0:t.items.find(d=>d.name===n.params.zoneEgress)},null,8,["zone-egress-overview"]))]),_:2},1032,["onClose"])]),_:2},1024)):z("",!0)]),_:2},1032,["src"])]),_:2},1024)]),_:1},8,["params"])):z("",!0)]),_:1})}}});const M=R(Z,[["__scopeId","data-v-ecf2c484"]]);export{M as default}; diff --git a/app/kuma-ui/pkg/resources/data/assets/ZoneEgressStatsView-02171b8f.js b/app/kuma-ui/pkg/resources/data/assets/ZoneEgressStatsView-ab144f59.js similarity index 66% rename from app/kuma-ui/pkg/resources/data/assets/ZoneEgressStatsView-02171b8f.js rename to app/kuma-ui/pkg/resources/data/assets/ZoneEgressStatsView-ab144f59.js index 684640bfa5a1..f1c791da00a6 100644 --- a/app/kuma-ui/pkg/resources/data/assets/ZoneEgressStatsView-02171b8f.js +++ b/app/kuma-ui/pkg/resources/data/assets/ZoneEgressStatsView-ab144f59.js @@ -1 +1 @@ -import{E as m}from"./EnvoyData-b31c947e.js";import{d,a as t,o as l,b as g,w as a,e as s,m as u,f as _}from"./index-5f4feb06.js";import"./index-fce48c05.js";import"./CodeBlock.vue_vue_type_style_index_0_lang-6de3c828.js";import"./uniqueId-90cc9b93.js";import"./EmptyBlock.vue_vue_type_script_setup_true_lang-7f79002a.js";import"./ErrorBlock-558c0398.js";import"./TextWithCopyButton-1098d691.js";import"./CopyButton-2ffc661c.js";import"./WarningIcon.vue_vue_type_script_setup_true_lang-cab7af3a.js";import"./LoadingBlock.vue_vue_type_script_setup_true_lang-e7fd5a8b.js";const B=d({__name:"ZoneEgressStatsView",setup(f){return(h,x)=>{const r=t("RouteTitle"),n=t("KCard"),p=t("AppView"),i=t("RouteView");return l(),g(i,{name:"zone-egress-stats-view",params:{zoneEgress:"",codeSearch:"",codeFilter:!1,codeRegExp:!1}},{default:a(({route:e,t:c})=>[s(p,null,{title:a(()=>[u("h2",null,[s(r,{title:c("zone-egresses.routes.item.navigation.zone-egress-stats-view")},null,8,["title"])])]),default:a(()=>[_(),s(n,null,{default:a(()=>[s(m,{resource:"Zone",src:`/zone-egresses/${e.params.zoneEgress}/data-path/stats`,query:e.params.codeSearch,"is-filter-mode":e.params.codeFilter,"is-reg-exp-mode":e.params.codeRegExp,onQueryChange:o=>e.update({codeSearch:o}),onFilterModeChange:o=>e.update({codeFilter:o}),onRegExpModeChange:o=>e.update({codeRegExp:o})},null,8,["src","query","is-filter-mode","is-reg-exp-mode","onQueryChange","onFilterModeChange","onRegExpModeChange"])]),_:2},1024)]),_:2},1024)]),_:1})}}});export{B as default}; +import{E as m}from"./EnvoyData-9a9e9257.js";import{d,a as t,o as l,b as g,w as a,e as s,m as u,f as _}from"./index-0dcf85b4.js";import"./index-fce48c05.js";import"./CodeBlock.vue_vue_type_style_index_0_lang-95cf08c2.js";import"./uniqueId-90cc9b93.js";import"./EmptyBlock.vue_vue_type_script_setup_true_lang-6ff90078.js";import"./ErrorBlock-70a14ad9.js";import"./TextWithCopyButton-da18080b.js";import"./CopyButton-dcdce1f2.js";import"./WarningIcon.vue_vue_type_script_setup_true_lang-d54f4898.js";import"./LoadingBlock.vue_vue_type_script_setup_true_lang-2e81faa2.js";const B=d({__name:"ZoneEgressStatsView",setup(f){return(h,x)=>{const r=t("RouteTitle"),n=t("KCard"),p=t("AppView"),i=t("RouteView");return l(),g(i,{name:"zone-egress-stats-view",params:{zoneEgress:"",codeSearch:"",codeFilter:!1,codeRegExp:!1}},{default:a(({route:e,t:c})=>[s(p,null,{title:a(()=>[u("h2",null,[s(r,{title:c("zone-egresses.routes.item.navigation.zone-egress-stats-view")},null,8,["title"])])]),default:a(()=>[_(),s(n,null,{default:a(()=>[s(m,{resource:"Zone",src:`/zone-egresses/${e.params.zoneEgress}/data-path/stats`,query:e.params.codeSearch,"is-filter-mode":e.params.codeFilter,"is-reg-exp-mode":e.params.codeRegExp,onQueryChange:o=>e.update({codeSearch:o}),onFilterModeChange:o=>e.update({codeFilter:o}),onRegExpModeChange:o=>e.update({codeRegExp:o})},null,8,["src","query","is-filter-mode","is-reg-exp-mode","onQueryChange","onFilterModeChange","onRegExpModeChange"])]),_:2},1024)]),_:2},1024)]),_:1})}}});export{B as default}; diff --git a/app/kuma-ui/pkg/resources/data/assets/ZoneEgressSummaryView-176e9639.js b/app/kuma-ui/pkg/resources/data/assets/ZoneEgressSummaryView-1fa54aad.js similarity index 91% rename from app/kuma-ui/pkg/resources/data/assets/ZoneEgressSummaryView-176e9639.js rename to app/kuma-ui/pkg/resources/data/assets/ZoneEgressSummaryView-1fa54aad.js index ee979ec7643e..ecc44088da31 100644 --- a/app/kuma-ui/pkg/resources/data/assets/ZoneEgressSummaryView-176e9639.js +++ b/app/kuma-ui/pkg/resources/data/assets/ZoneEgressSummaryView-1fa54aad.js @@ -1 +1 @@ -import{d as v,k as g,o as c,c as _,e as n,w as e,f as t,t as m,l as r,X as u,b as d,F as k,a as p,m as i,v as x,x as S,aC as V,_ as O}from"./index-5f4feb06.js";import{S as B}from"./StatusBadge-2db39c5c.js";import{T as C}from"./TextWithCopyButton-1098d691.js";import{_ as R}from"./EmptyBlock.vue_vue_type_script_setup_true_lang-7f79002a.js";import"./CopyButton-2ffc661c.js";import"./index-fce48c05.js";const Z={class:"stack"},I=v({__name:"ZoneEgressSummary",props:{zoneEgressOverview:{}},setup(o){const{t:s}=g(),a=o;return(y,w)=>(c(),_("div",Z,[n(u,null,{title:e(()=>[t(m(r(s)("http.api.property.status")),1)]),body:e(()=>[n(B,{status:a.zoneEgressOverview.state},null,8,["status"])]),_:1}),t(),n(u,null,{title:e(()=>[t(m(r(s)("http.api.property.address")),1)]),body:e(()=>[a.zoneEgressOverview.zoneEgress.socketAddress.length>0?(c(),d(C,{key:0,text:a.zoneEgressOverview.zoneEgress.socketAddress},null,8,["text"])):(c(),_(k,{key:1},[t(m(r(s)("common.detail.none")),1)],64))]),_:1})]))}}),T=o=>(x("data-v-01cd37d3"),o=o(),S(),o),A={class:"summary-title-wrapper"},b=T(()=>i("img",{"aria-hidden":"true",src:V},null,-1)),N={class:"summary-title"},$={key:1,class:"stack"},D=v({__name:"ZoneEgressSummaryView",props:{zoneEgressOverview:{default:void 0}},setup(o){const{t:s}=g(),a=o;return(y,w)=>{const z=p("RouteTitle"),E=p("RouterLink"),f=p("AppView"),h=p("RouteView");return c(),d(h,{name:"zone-egress-summary-view",params:{zone:"",zoneEgress:""}},{default:e(({route:l})=>[n(f,null,{title:e(()=>[i("div",A,[b,t(),i("h2",N,[n(E,{to:{name:"zone-egress-detail-view",params:{zone:l.params.zone,zoneEgress:l.params.zoneEgress}}},{default:e(()=>[n(z,{title:r(s)("zone-egresses.routes.item.title",{name:l.params.zoneEgress})},null,8,["title"])]),_:2},1032,["to"])])])]),default:e(()=>[t(),a.zoneEgressOverview===void 0?(c(),d(R,{key:0},{message:e(()=>[i("p",null,m(r(s)("common.collection.summary.empty_message",{type:"ZoneEgress"})),1)]),default:e(()=>[t(m(r(s)("common.collection.summary.empty_title",{type:"ZoneEgress"}))+" ",1)]),_:1})):(c(),_("div",$,[i("div",null,[i("h3",null,m(r(s)("zone-egresses.routes.item.overview")),1),t(),n(I,{class:"mt-4","zone-egress-overview":a.zoneEgressOverview},null,8,["zone-egress-overview"])])]))]),_:2},1024)]),_:1})}}});const G=O(D,[["__scopeId","data-v-01cd37d3"]]);export{G as default}; +import{d as v,k as g,o as c,c as _,e as n,w as e,f as t,t as m,l as r,X as u,b as d,F as k,a as p,m as i,v as x,x as S,aC as V,_ as O}from"./index-0dcf85b4.js";import{S as B}from"./StatusBadge-e7326f60.js";import{T as C}from"./TextWithCopyButton-da18080b.js";import{_ as R}from"./EmptyBlock.vue_vue_type_script_setup_true_lang-6ff90078.js";import"./CopyButton-dcdce1f2.js";import"./index-fce48c05.js";const Z={class:"stack"},I=v({__name:"ZoneEgressSummary",props:{zoneEgressOverview:{}},setup(o){const{t:s}=g(),a=o;return(y,w)=>(c(),_("div",Z,[n(u,null,{title:e(()=>[t(m(r(s)("http.api.property.status")),1)]),body:e(()=>[n(B,{status:a.zoneEgressOverview.state},null,8,["status"])]),_:1}),t(),n(u,null,{title:e(()=>[t(m(r(s)("http.api.property.address")),1)]),body:e(()=>[a.zoneEgressOverview.zoneEgress.socketAddress.length>0?(c(),d(C,{key:0,text:a.zoneEgressOverview.zoneEgress.socketAddress},null,8,["text"])):(c(),_(k,{key:1},[t(m(r(s)("common.detail.none")),1)],64))]),_:1})]))}}),T=o=>(x("data-v-01cd37d3"),o=o(),S(),o),A={class:"summary-title-wrapper"},b=T(()=>i("img",{"aria-hidden":"true",src:V},null,-1)),N={class:"summary-title"},$={key:1,class:"stack"},D=v({__name:"ZoneEgressSummaryView",props:{zoneEgressOverview:{default:void 0}},setup(o){const{t:s}=g(),a=o;return(y,w)=>{const z=p("RouteTitle"),E=p("RouterLink"),f=p("AppView"),h=p("RouteView");return c(),d(h,{name:"zone-egress-summary-view",params:{zone:"",zoneEgress:""}},{default:e(({route:l})=>[n(f,null,{title:e(()=>[i("div",A,[b,t(),i("h2",N,[n(E,{to:{name:"zone-egress-detail-view",params:{zone:l.params.zone,zoneEgress:l.params.zoneEgress}}},{default:e(()=>[n(z,{title:r(s)("zone-egresses.routes.item.title",{name:l.params.zoneEgress})},null,8,["title"])]),_:2},1032,["to"])])])]),default:e(()=>[t(),a.zoneEgressOverview===void 0?(c(),d(R,{key:0},{message:e(()=>[i("p",null,m(r(s)("common.collection.summary.empty_message",{type:"ZoneEgress"})),1)]),default:e(()=>[t(m(r(s)("common.collection.summary.empty_title",{type:"ZoneEgress"}))+" ",1)]),_:1})):(c(),_("div",$,[i("div",null,[i("h3",null,m(r(s)("zone-egresses.routes.item.overview")),1),t(),n(I,{class:"mt-4","zone-egress-overview":a.zoneEgressOverview},null,8,["zone-egress-overview"])])]))]),_:2},1024)]),_:1})}}});const G=O(D,[["__scopeId","data-v-01cd37d3"]]);export{G as default}; diff --git a/app/kuma-ui/pkg/resources/data/assets/ZoneEgressXdsConfigView-f0eb2391.js b/app/kuma-ui/pkg/resources/data/assets/ZoneEgressXdsConfigView-b17e128c.js similarity index 66% rename from app/kuma-ui/pkg/resources/data/assets/ZoneEgressXdsConfigView-f0eb2391.js rename to app/kuma-ui/pkg/resources/data/assets/ZoneEgressXdsConfigView-b17e128c.js index f145f62f8454..5344eb0aec75 100644 --- a/app/kuma-ui/pkg/resources/data/assets/ZoneEgressXdsConfigView-f0eb2391.js +++ b/app/kuma-ui/pkg/resources/data/assets/ZoneEgressXdsConfigView-b17e128c.js @@ -1 +1 @@ -import{E as d}from"./EnvoyData-b31c947e.js";import{d as m,a as t,o as l,b as g,w as a,e as n,m as u,f as _}from"./index-5f4feb06.js";import"./index-fce48c05.js";import"./CodeBlock.vue_vue_type_style_index_0_lang-6de3c828.js";import"./uniqueId-90cc9b93.js";import"./EmptyBlock.vue_vue_type_script_setup_true_lang-7f79002a.js";import"./ErrorBlock-558c0398.js";import"./TextWithCopyButton-1098d691.js";import"./CopyButton-2ffc661c.js";import"./WarningIcon.vue_vue_type_script_setup_true_lang-cab7af3a.js";import"./LoadingBlock.vue_vue_type_script_setup_true_lang-e7fd5a8b.js";const N=m({__name:"ZoneEgressXdsConfigView",setup(f){return(x,h)=>{const s=t("RouteTitle"),r=t("KCard"),i=t("AppView"),p=t("RouteView");return l(),g(p,{name:"zone-egress-xds-config-view",params:{zoneEgress:"",codeSearch:"",codeFilter:!1,codeRegExp:!1}},{default:a(({route:e,t:c})=>[n(i,null,{title:a(()=>[u("h2",null,[n(s,{title:c("zone-egresses.routes.item.navigation.zone-egress-xds-config-view")},null,8,["title"])])]),default:a(()=>[_(),n(r,null,{default:a(()=>[n(d,{resource:"Zone",src:`/zone-egresses/${e.params.zoneEgress}/data-path/xds`,query:e.params.codeSearch,"is-filter-mode":e.params.codeFilter,"is-reg-exp-mode":e.params.codeRegExp,onQueryChange:o=>e.update({codeSearch:o}),onFilterModeChange:o=>e.update({codeFilter:o}),onRegExpModeChange:o=>e.update({codeRegExp:o})},null,8,["src","query","is-filter-mode","is-reg-exp-mode","onQueryChange","onFilterModeChange","onRegExpModeChange"])]),_:2},1024)]),_:2},1024)]),_:1})}}});export{N as default}; +import{E as d}from"./EnvoyData-9a9e9257.js";import{d as m,a as t,o as l,b as g,w as a,e as n,m as u,f as _}from"./index-0dcf85b4.js";import"./index-fce48c05.js";import"./CodeBlock.vue_vue_type_style_index_0_lang-95cf08c2.js";import"./uniqueId-90cc9b93.js";import"./EmptyBlock.vue_vue_type_script_setup_true_lang-6ff90078.js";import"./ErrorBlock-70a14ad9.js";import"./TextWithCopyButton-da18080b.js";import"./CopyButton-dcdce1f2.js";import"./WarningIcon.vue_vue_type_script_setup_true_lang-d54f4898.js";import"./LoadingBlock.vue_vue_type_script_setup_true_lang-2e81faa2.js";const N=m({__name:"ZoneEgressXdsConfigView",setup(f){return(x,h)=>{const s=t("RouteTitle"),r=t("KCard"),i=t("AppView"),p=t("RouteView");return l(),g(p,{name:"zone-egress-xds-config-view",params:{zoneEgress:"",codeSearch:"",codeFilter:!1,codeRegExp:!1}},{default:a(({route:e,t:c})=>[n(i,null,{title:a(()=>[u("h2",null,[n(s,{title:c("zone-egresses.routes.item.navigation.zone-egress-xds-config-view")},null,8,["title"])])]),default:a(()=>[_(),n(r,null,{default:a(()=>[n(d,{resource:"Zone",src:`/zone-egresses/${e.params.zoneEgress}/data-path/xds`,query:e.params.codeSearch,"is-filter-mode":e.params.codeFilter,"is-reg-exp-mode":e.params.codeRegExp,onQueryChange:o=>e.update({codeSearch:o}),onFilterModeChange:o=>e.update({codeFilter:o}),onRegExpModeChange:o=>e.update({codeRegExp:o})},null,8,["src","query","is-filter-mode","is-reg-exp-mode","onQueryChange","onFilterModeChange","onRegExpModeChange"])]),_:2},1024)]),_:2},1024)]),_:1})}}});export{N as default}; diff --git a/app/kuma-ui/pkg/resources/data/assets/ZoneIngressClustersView-aadc04b0.js b/app/kuma-ui/pkg/resources/data/assets/ZoneIngressClustersView-42b407ef.js similarity index 66% rename from app/kuma-ui/pkg/resources/data/assets/ZoneIngressClustersView-aadc04b0.js rename to app/kuma-ui/pkg/resources/data/assets/ZoneIngressClustersView-42b407ef.js index 51e98beb798b..522ddd38fe12 100644 --- a/app/kuma-ui/pkg/resources/data/assets/ZoneIngressClustersView-aadc04b0.js +++ b/app/kuma-ui/pkg/resources/data/assets/ZoneIngressClustersView-42b407ef.js @@ -1 +1 @@ -import{E as l}from"./EnvoyData-b31c947e.js";import{d as m,a as t,o as d,b as u,w as n,e as s,m as g,f as _}from"./index-5f4feb06.js";import"./index-fce48c05.js";import"./CodeBlock.vue_vue_type_style_index_0_lang-6de3c828.js";import"./uniqueId-90cc9b93.js";import"./EmptyBlock.vue_vue_type_script_setup_true_lang-7f79002a.js";import"./ErrorBlock-558c0398.js";import"./TextWithCopyButton-1098d691.js";import"./CopyButton-2ffc661c.js";import"./WarningIcon.vue_vue_type_script_setup_true_lang-cab7af3a.js";import"./LoadingBlock.vue_vue_type_script_setup_true_lang-e7fd5a8b.js";const I=m({__name:"ZoneIngressClustersView",setup(f){return(h,C)=>{const a=t("RouteTitle"),r=t("KCard"),i=t("AppView"),p=t("RouteView");return d(),u(p,{name:"zone-ingress-clusters-view",params:{zoneIngress:"",codeSearch:"",codeFilter:!1,codeRegExp:!1}},{default:n(({route:e,t:c})=>[s(i,null,{title:n(()=>[g("h2",null,[s(a,{title:c("zone-ingresses.routes.item.navigation.zone-ingress-clusters-view")},null,8,["title"])])]),default:n(()=>[_(),s(r,null,{default:n(()=>[s(l,{resource:"Zone",src:`/zone-ingresses/${e.params.zoneIngress}/data-path/clusters`,query:e.params.codeSearch,"is-filter-mode":e.params.codeFilter,"is-reg-exp-mode":e.params.codeRegExp,onQueryChange:o=>e.update({codeSearch:o}),onFilterModeChange:o=>e.update({codeFilter:o}),onRegExpModeChange:o=>e.update({codeRegExp:o})},null,8,["src","query","is-filter-mode","is-reg-exp-mode","onQueryChange","onFilterModeChange","onRegExpModeChange"])]),_:2},1024)]),_:2},1024)]),_:1})}}});export{I as default}; +import{E as l}from"./EnvoyData-9a9e9257.js";import{d as m,a as t,o as d,b as u,w as n,e as s,m as g,f as _}from"./index-0dcf85b4.js";import"./index-fce48c05.js";import"./CodeBlock.vue_vue_type_style_index_0_lang-95cf08c2.js";import"./uniqueId-90cc9b93.js";import"./EmptyBlock.vue_vue_type_script_setup_true_lang-6ff90078.js";import"./ErrorBlock-70a14ad9.js";import"./TextWithCopyButton-da18080b.js";import"./CopyButton-dcdce1f2.js";import"./WarningIcon.vue_vue_type_script_setup_true_lang-d54f4898.js";import"./LoadingBlock.vue_vue_type_script_setup_true_lang-2e81faa2.js";const I=m({__name:"ZoneIngressClustersView",setup(f){return(h,C)=>{const a=t("RouteTitle"),r=t("KCard"),i=t("AppView"),p=t("RouteView");return d(),u(p,{name:"zone-ingress-clusters-view",params:{zoneIngress:"",codeSearch:"",codeFilter:!1,codeRegExp:!1}},{default:n(({route:e,t:c})=>[s(i,null,{title:n(()=>[g("h2",null,[s(a,{title:c("zone-ingresses.routes.item.navigation.zone-ingress-clusters-view")},null,8,["title"])])]),default:n(()=>[_(),s(r,null,{default:n(()=>[s(l,{resource:"Zone",src:`/zone-ingresses/${e.params.zoneIngress}/data-path/clusters`,query:e.params.codeSearch,"is-filter-mode":e.params.codeFilter,"is-reg-exp-mode":e.params.codeRegExp,onQueryChange:o=>e.update({codeSearch:o}),onFilterModeChange:o=>e.update({codeFilter:o}),onRegExpModeChange:o=>e.update({codeRegExp:o})},null,8,["src","query","is-filter-mode","is-reg-exp-mode","onQueryChange","onFilterModeChange","onRegExpModeChange"])]),_:2},1024)]),_:2},1024)]),_:1})}}});export{I as default}; diff --git a/app/kuma-ui/pkg/resources/data/assets/ZoneIngressConfigView-2664fd3b.js b/app/kuma-ui/pkg/resources/data/assets/ZoneIngressConfigView-477c2c32.js similarity index 74% rename from app/kuma-ui/pkg/resources/data/assets/ZoneIngressConfigView-2664fd3b.js rename to app/kuma-ui/pkg/resources/data/assets/ZoneIngressConfigView-477c2c32.js index 795d222cb758..3ffac09eb312 100644 --- a/app/kuma-ui/pkg/resources/data/assets/ZoneIngressConfigView-2664fd3b.js +++ b/app/kuma-ui/pkg/resources/data/assets/ZoneIngressConfigView-477c2c32.js @@ -1 +1 @@ -import{E as x}from"./ErrorBlock-558c0398.js";import{_ as w}from"./LoadingBlock.vue_vue_type_script_setup_true_lang-e7fd5a8b.js";import{_ as E}from"./ResourceCodeBlock.vue_vue_type_style_index_0_lang-8c675a57.js";import{d as R,a as r,o as s,b as a,w as n,e as t,m as V,f as k,p as z}from"./index-5f4feb06.js";import"./index-fce48c05.js";import"./TextWithCopyButton-1098d691.js";import"./CopyButton-2ffc661c.js";import"./WarningIcon.vue_vue_type_script_setup_true_lang-cab7af3a.js";import"./CodeBlock.vue_vue_type_style_index_0_lang-6de3c828.js";import"./uniqueId-90cc9b93.js";import"./toYaml-4e00099e.js";const K=R({__name:"ZoneIngressConfigView",setup(v){return(y,F)=>{const d=r("RouteTitle"),c=r("DataSource"),_=r("KCard"),g=r("AppView"),u=r("RouteView");return s(),a(u,{name:"zone-ingress-config-view",params:{zoneIngress:"",codeSearch:"",codeFilter:!1,codeRegExp:!1}},{default:n(({route:e,t:f})=>[t(g,null,{title:n(()=>[V("h2",null,[t(d,{title:f("zone-ingresses.routes.item.navigation.zone-ingress-config-view")},null,8,["title"])])]),default:n(()=>[k(),t(_,null,{default:n(()=>[t(c,{src:`/zone-ingresses/${e.params.zoneIngress}`},{default:n(({data:p,error:m})=>[m!==void 0?(s(),a(x,{key:0,error:m},null,8,["error"])):p===void 0?(s(),a(w,{key:1})):(s(),a(E,{key:2,resource:p.config,"is-searchable":"",query:e.params.codeSearch,"is-filter-mode":e.params.codeFilter,"is-reg-exp-mode":e.params.codeRegExp,onQueryChange:o=>e.update({codeSearch:o}),onFilterModeChange:o=>e.update({codeFilter:o}),onRegExpModeChange:o=>e.update({codeRegExp:o})},{default:n(({copy:o,copying:h})=>[h?(s(),a(c,{key:0,src:`/zone-ingresses/${e.params.zoneIngress}/as/kubernetes?no-store`,onChange:i=>{o(l=>l(i))},onError:i=>{o((l,C)=>C(i))}},null,8,["src","onChange","onError"])):z("",!0)]),_:2},1032,["resource","query","is-filter-mode","is-reg-exp-mode","onQueryChange","onFilterModeChange","onRegExpModeChange"]))]),_:2},1032,["src"])]),_:2},1024)]),_:2},1024)]),_:1})}}});export{K as default}; +import{E as x}from"./ErrorBlock-70a14ad9.js";import{_ as w}from"./LoadingBlock.vue_vue_type_script_setup_true_lang-2e81faa2.js";import{_ as E}from"./ResourceCodeBlock.vue_vue_type_style_index_0_lang-c72a10ad.js";import{d as R,a as r,o as s,b as a,w as n,e as t,m as V,f as k,p as z}from"./index-0dcf85b4.js";import"./index-fce48c05.js";import"./TextWithCopyButton-da18080b.js";import"./CopyButton-dcdce1f2.js";import"./WarningIcon.vue_vue_type_script_setup_true_lang-d54f4898.js";import"./CodeBlock.vue_vue_type_style_index_0_lang-95cf08c2.js";import"./uniqueId-90cc9b93.js";import"./toYaml-4e00099e.js";const K=R({__name:"ZoneIngressConfigView",setup(v){return(y,F)=>{const d=r("RouteTitle"),c=r("DataSource"),_=r("KCard"),g=r("AppView"),u=r("RouteView");return s(),a(u,{name:"zone-ingress-config-view",params:{zoneIngress:"",codeSearch:"",codeFilter:!1,codeRegExp:!1}},{default:n(({route:e,t:f})=>[t(g,null,{title:n(()=>[V("h2",null,[t(d,{title:f("zone-ingresses.routes.item.navigation.zone-ingress-config-view")},null,8,["title"])])]),default:n(()=>[k(),t(_,null,{default:n(()=>[t(c,{src:`/zone-ingresses/${e.params.zoneIngress}`},{default:n(({data:p,error:m})=>[m!==void 0?(s(),a(x,{key:0,error:m},null,8,["error"])):p===void 0?(s(),a(w,{key:1})):(s(),a(E,{key:2,resource:p.config,"is-searchable":"",query:e.params.codeSearch,"is-filter-mode":e.params.codeFilter,"is-reg-exp-mode":e.params.codeRegExp,onQueryChange:o=>e.update({codeSearch:o}),onFilterModeChange:o=>e.update({codeFilter:o}),onRegExpModeChange:o=>e.update({codeRegExp:o})},{default:n(({copy:o,copying:h})=>[h?(s(),a(c,{key:0,src:`/zone-ingresses/${e.params.zoneIngress}/as/kubernetes?no-store`,onChange:i=>{o(l=>l(i))},onError:i=>{o((l,C)=>C(i))}},null,8,["src","onChange","onError"])):z("",!0)]),_:2},1032,["resource","query","is-filter-mode","is-reg-exp-mode","onQueryChange","onFilterModeChange","onRegExpModeChange"]))]),_:2},1032,["src"])]),_:2},1024)]),_:2},1024)]),_:1})}}});export{K as default}; diff --git a/app/kuma-ui/pkg/resources/data/assets/ZoneIngressDetailTabsView-63763fea.js b/app/kuma-ui/pkg/resources/data/assets/ZoneIngressDetailTabsView-9648e888.js similarity index 77% rename from app/kuma-ui/pkg/resources/data/assets/ZoneIngressDetailTabsView-63763fea.js rename to app/kuma-ui/pkg/resources/data/assets/ZoneIngressDetailTabsView-9648e888.js index 9b66611b27d6..bffa50691fd5 100644 --- a/app/kuma-ui/pkg/resources/data/assets/ZoneIngressDetailTabsView-63763fea.js +++ b/app/kuma-ui/pkg/resources/data/assets/ZoneIngressDetailTabsView-9648e888.js @@ -1 +1 @@ -import{d as V,k as x,S as R,a as s,o as n,b as l,w as t,e as o,l as u,m as k,f as g,c as C,F as T,C as h}from"./index-5f4feb06.js";import{E as y}from"./ErrorBlock-558c0398.js";import{_ as B}from"./LoadingBlock.vue_vue_type_script_setup_true_lang-e7fd5a8b.js";import{N as I}from"./NavTabs-d4a6578a.js";import{T as N}from"./TextWithCopyButton-1098d691.js";import"./index-fce48c05.js";import"./WarningIcon.vue_vue_type_script_setup_true_lang-cab7af3a.js";import"./CopyButton-2ffc661c.js";const H=V({__name:"ZoneIngressDetailTabsView",setup(D){var _;const{t:a}=x(),w=(((_=R().getRoutes().find(e=>e.name==="zone-ingress-detail-tabs-view"))==null?void 0:_.children)??[]).map(e=>{var i,m;const p=typeof e.name>"u"?(i=e.children)==null?void 0:i[0]:e,r=p.name,d=((m=p.meta)==null?void 0:m.module)??"";return{title:a(`zone-ingresses.routes.item.navigation.${r}`),routeName:r,module:d}});return(e,p)=>{const r=s("RouteTitle"),d=s("RouterView"),f=s("DataSource"),i=s("AppView"),m=s("RouteView");return n(),l(m,{name:"zone-ingress-detail-tabs-view",params:{zone:"",zoneIngress:""}},{default:t(({route:c})=>[o(i,{breadcrumbs:[{to:{name:"zone-cp-list-view"},text:u(a)("zone-cps.routes.item.breadcrumbs")},{to:{name:"zone-ingress-list-view",params:{zone:c.params.zone}},text:u(a)("zone-ingresses.routes.item.breadcrumbs")}]},{title:t(()=>[k("h1",null,[o(N,{text:c.params.zoneIngress},{default:t(()=>[o(r,{title:u(a)("zone-ingresses.routes.item.title",{name:c.params.zoneIngress})},null,8,["title"])]),_:2},1032,["text"])])]),default:t(()=>[g(),o(f,{src:`/zone-ingress-overviews/${c.params.zoneIngress}`},{default:t(({data:b,error:z})=>[z!==void 0?(n(),l(y,{key:0,error:z},null,8,["error"])):b===void 0?(n(),l(B,{key:1})):(n(),C(T,{key:2},[o(I,{class:"route-zone-ingress-detail-view-tabs",tabs:u(w)},null,8,["tabs"]),g(),o(d,null,{default:t(v=>[(n(),l(h(v.Component),{data:b},null,8,["data"]))]),_:2},1024)],64))]),_:2},1032,["src"])]),_:2},1032,["breadcrumbs"])]),_:1})}}});export{H as default}; +import{d as V,k as x,S as R,a as s,o as n,b as l,w as t,e as o,l as u,m as k,f as g,c as C,F as T,C as h}from"./index-0dcf85b4.js";import{E as y}from"./ErrorBlock-70a14ad9.js";import{_ as B}from"./LoadingBlock.vue_vue_type_script_setup_true_lang-2e81faa2.js";import{N as I}from"./NavTabs-e7b14354.js";import{T as N}from"./TextWithCopyButton-da18080b.js";import"./index-fce48c05.js";import"./WarningIcon.vue_vue_type_script_setup_true_lang-d54f4898.js";import"./CopyButton-dcdce1f2.js";const H=V({__name:"ZoneIngressDetailTabsView",setup(D){var _;const{t:a}=x(),w=(((_=R().getRoutes().find(e=>e.name==="zone-ingress-detail-tabs-view"))==null?void 0:_.children)??[]).map(e=>{var i,m;const p=typeof e.name>"u"?(i=e.children)==null?void 0:i[0]:e,r=p.name,d=((m=p.meta)==null?void 0:m.module)??"";return{title:a(`zone-ingresses.routes.item.navigation.${r}`),routeName:r,module:d}});return(e,p)=>{const r=s("RouteTitle"),d=s("RouterView"),f=s("DataSource"),i=s("AppView"),m=s("RouteView");return n(),l(m,{name:"zone-ingress-detail-tabs-view",params:{zone:"",zoneIngress:""}},{default:t(({route:c})=>[o(i,{breadcrumbs:[{to:{name:"zone-cp-list-view"},text:u(a)("zone-cps.routes.item.breadcrumbs")},{to:{name:"zone-ingress-list-view",params:{zone:c.params.zone}},text:u(a)("zone-ingresses.routes.item.breadcrumbs")}]},{title:t(()=>[k("h1",null,[o(N,{text:c.params.zoneIngress},{default:t(()=>[o(r,{title:u(a)("zone-ingresses.routes.item.title",{name:c.params.zoneIngress})},null,8,["title"])]),_:2},1032,["text"])])]),default:t(()=>[g(),o(f,{src:`/zone-ingress-overviews/${c.params.zoneIngress}`},{default:t(({data:b,error:z})=>[z!==void 0?(n(),l(y,{key:0,error:z},null,8,["error"])):b===void 0?(n(),l(B,{key:1})):(n(),C(T,{key:2},[o(I,{class:"route-zone-ingress-detail-view-tabs",tabs:u(w)},null,8,["tabs"]),g(),o(d,null,{default:t(v=>[(n(),l(h(v.Component),{data:b},null,8,["data"]))]),_:2},1024)],64))]),_:2},1032,["src"])]),_:2},1032,["breadcrumbs"])]),_:1})}}});export{H as default}; diff --git a/app/kuma-ui/pkg/resources/data/assets/ZoneIngressDetailView-6d0b9e08.js b/app/kuma-ui/pkg/resources/data/assets/ZoneIngressDetailView-2ded9a8b.js similarity index 79% rename from app/kuma-ui/pkg/resources/data/assets/ZoneIngressDetailView-6d0b9e08.js rename to app/kuma-ui/pkg/resources/data/assets/ZoneIngressDetailView-2ded9a8b.js index 173c799bd499..d525e6e0988c 100644 --- a/app/kuma-ui/pkg/resources/data/assets/ZoneIngressDetailView-6d0b9e08.js +++ b/app/kuma-ui/pkg/resources/data/assets/ZoneIngressDetailView-2ded9a8b.js @@ -1 +1 @@ -import{d as v,a as p,o as s,b as c,w as e,e as a,m,X as u,f as t,t as r,c as d,F as i,D as w,p as x}from"./index-5f4feb06.js";import{S as V}from"./StatusBadge-2db39c5c.js";import{T as f}from"./TextWithCopyButton-1098d691.js";import{_ as C}from"./SubscriptionList.vue_vue_type_script_setup_true_lang-cd9cb397.js";import"./CopyButton-2ffc661c.js";import"./index-fce48c05.js";import"./AccordionList-5331d528.js";const z={class:"stack","data-testid":"detail-view-details"},A={class:"columns"},I={key:0},E=v({__name:"ZoneIngressDetailView",props:{data:{}},setup(h){const o=h;return(B,b)=>{const _=p("KCard"),k=p("AppView"),y=p("RouteView");return s(),c(y,{name:"zone-ingress-detail-view"},{default:e(({t:n})=>[a(k,null,{default:e(()=>{var g;return[m("div",z,[a(_,null,{default:e(()=>[m("div",A,[a(u,null,{title:e(()=>[t(r(n("http.api.property.status")),1)]),body:e(()=>[a(V,{status:o.data.state},null,8,["status"])]),_:2},1024),t(),a(u,null,{title:e(()=>[t(r(n("http.api.property.address")),1)]),body:e(()=>[o.data.zoneIngress.socketAddress.length>0?(s(),c(f,{key:0,text:o.data.zoneIngress.socketAddress},null,8,["text"])):(s(),d(i,{key:1},[t(r(n("common.detail.none")),1)],64))]),_:2},1024),t(),a(u,null,{title:e(()=>[t(r(n("http.api.property.advertisedAddress")),1)]),body:e(()=>[o.data.zoneIngress.advertisedSocketAddress.length>0?(s(),c(f,{key:0,text:o.data.zoneIngress.advertisedSocketAddress},null,8,["text"])):(s(),d(i,{key:1},[t(r(n("common.detail.none")),1)],64))]),_:2},1024)])]),_:2},1024),t(),(s(!0),d(i,null,w([((g=o.data.zoneIngressInsight)==null?void 0:g.subscriptions)??[]],l=>(s(),d(i,{key:l},[l.length>0?(s(),d("div",I,[m("h2",null,r(n("zone-ingresses.routes.item.subscriptions.title")),1),t(),a(_,{class:"mt-4"},{default:e(()=>[a(C,{subscriptions:l},null,8,["subscriptions"])]),_:2},1024)])):x("",!0)],64))),128))])]}),_:2},1024)]),_:1})}}});export{E as default}; +import{d as v,a as p,o as s,b as c,w as e,e as a,m,X as u,f as t,t as r,c as d,F as i,D as w,p as x}from"./index-0dcf85b4.js";import{S as V}from"./StatusBadge-e7326f60.js";import{T as f}from"./TextWithCopyButton-da18080b.js";import{_ as C}from"./SubscriptionList.vue_vue_type_script_setup_true_lang-83336cd8.js";import"./CopyButton-dcdce1f2.js";import"./index-fce48c05.js";import"./AccordionList-a4be0b78.js";const z={class:"stack","data-testid":"detail-view-details"},A={class:"columns"},I={key:0},E=v({__name:"ZoneIngressDetailView",props:{data:{}},setup(h){const o=h;return(B,b)=>{const _=p("KCard"),k=p("AppView"),y=p("RouteView");return s(),c(y,{name:"zone-ingress-detail-view"},{default:e(({t:n})=>[a(k,null,{default:e(()=>{var g;return[m("div",z,[a(_,null,{default:e(()=>[m("div",A,[a(u,null,{title:e(()=>[t(r(n("http.api.property.status")),1)]),body:e(()=>[a(V,{status:o.data.state},null,8,["status"])]),_:2},1024),t(),a(u,null,{title:e(()=>[t(r(n("http.api.property.address")),1)]),body:e(()=>[o.data.zoneIngress.socketAddress.length>0?(s(),c(f,{key:0,text:o.data.zoneIngress.socketAddress},null,8,["text"])):(s(),d(i,{key:1},[t(r(n("common.detail.none")),1)],64))]),_:2},1024),t(),a(u,null,{title:e(()=>[t(r(n("http.api.property.advertisedAddress")),1)]),body:e(()=>[o.data.zoneIngress.advertisedSocketAddress.length>0?(s(),c(f,{key:0,text:o.data.zoneIngress.advertisedSocketAddress},null,8,["text"])):(s(),d(i,{key:1},[t(r(n("common.detail.none")),1)],64))]),_:2},1024)])]),_:2},1024),t(),(s(!0),d(i,null,w([((g=o.data.zoneIngressInsight)==null?void 0:g.subscriptions)??[]],l=>(s(),d(i,{key:l},[l.length>0?(s(),d("div",I,[m("h2",null,r(n("zone-ingresses.routes.item.subscriptions.title")),1),t(),a(_,{class:"mt-4"},{default:e(()=>[a(C,{subscriptions:l},null,8,["subscriptions"])]),_:2},1024)])):x("",!0)],64))),128))])]}),_:2},1024)]),_:1})}}});export{E as default}; diff --git a/app/kuma-ui/pkg/resources/data/assets/ZoneIngressListView-1ea87262.js b/app/kuma-ui/pkg/resources/data/assets/ZoneIngressListView-6fd869fe.js similarity index 85% rename from app/kuma-ui/pkg/resources/data/assets/ZoneIngressListView-1ea87262.js rename to app/kuma-ui/pkg/resources/data/assets/ZoneIngressListView-6fd869fe.js index 08665b1c6f9d..ea17d2d494af 100644 --- a/app/kuma-ui/pkg/resources/data/assets/ZoneIngressListView-1ea87262.js +++ b/app/kuma-ui/pkg/resources/data/assets/ZoneIngressListView-6fd869fe.js @@ -1 +1 @@ -import{K as V}from"./index-fce48c05.js";import{d as x,a as l,o as t,b as r,w as s,e as n,m as h,f as m,t as c,c as g,F as z,l as k,P as b,C as R,p as y,_ as B}from"./index-5f4feb06.js";import{A as L}from"./AppCollection-4b66f394.js";import{E as N}from"./ErrorBlock-558c0398.js";import{S as D}from"./StatusBadge-2db39c5c.js";import{S as T}from"./SummaryView-46a73d2c.js";import{T as w}from"./TextWithCopyButton-1098d691.js";import"./EmptyBlock.vue_vue_type_script_setup_true_lang-7f79002a.js";import"./WarningIcon.vue_vue_type_script_setup_true_lang-cab7af3a.js";import"./CopyButton-2ffc661c.js";const Z=x({__name:"ZoneIngressListView",setup(E){return(K,$)=>{const f=l("RouteTitle"),d=l("RouterLink"),v=l("KCard"),I=l("RouterView"),_=l("DataSource"),C=l("AppView"),A=l("RouteView");return t(),r(_,{src:"/me"},{default:s(({data:S})=>[S?(t(),r(A,{key:0,name:"zone-ingress-list-view",params:{zone:"",zoneIngress:""}},{default:s(({route:a,t:i})=>[n(C,null,{title:s(()=>[h("h2",null,[n(f,{title:i("zone-ingresses.routes.items.title")},null,8,["title"])])]),default:s(()=>[m(),n(_,{src:`/zone-cps/${a.params.zone}/ingresses?page=1&size=100`},{default:s(({data:o,error:p})=>[n(v,null,{default:s(()=>[p!==void 0?(t(),r(N,{key:0,error:p},null,8,["error"])):(t(),r(L,{key:1,class:"zone-ingress-collection","data-testid":"zone-ingress-collection",headers:[{label:"Name",key:"name"},{label:"Address",key:"socketAddress"},{label:"Advertised address",key:"advertisedSocketAddress"},{label:"Status",key:"status"},{label:"Details",key:"details",hideLabel:!0}],"page-number":1,"page-size":100,total:o==null?void 0:o.total,items:o==null?void 0:o.items,error:p,"empty-state-message":i("common.emptyState.message",{type:"Zone Ingresses"}),"empty-state-cta-to":i("zone-ingresses.href.docs"),"empty-state-cta-text":i("common.documentation"),"is-selected-row":e=>e.name===a.params.zoneIngress,onChange:a.update},{name:s(({row:e})=>[n(d,{to:{name:"zone-ingress-summary-view",params:{zone:a.params.zone,zoneIngress:e.name},query:{page:1,size:100}}},{default:s(()=>[m(c(e.name),1)]),_:2},1032,["to"])]),socketAddress:s(({row:e})=>[e.zoneIngress.socketAddress.length>0?(t(),r(w,{key:0,text:e.zoneIngress.socketAddress},null,8,["text"])):(t(),g(z,{key:1},[m(c(i("common.collection.none")),1)],64))]),advertisedSocketAddress:s(({row:e})=>[e.zoneIngress.advertisedSocketAddress.length>0?(t(),r(w,{key:0,text:e.zoneIngress.advertisedSocketAddress},null,8,["text"])):(t(),g(z,{key:1},[m(c(i("common.collection.none")),1)],64))]),status:s(({row:e})=>[n(D,{status:e.state},null,8,["status"])]),details:s(({row:e})=>[n(d,{class:"details-link","data-testid":"details-link",to:{name:"zone-ingress-detail-view",params:{zoneIngress:e.name}}},{default:s(()=>[m(c(i("common.collection.details_link"))+" ",1),n(k(b),{display:"inline-block",decorative:"",size:k(V)},null,8,["size"])]),_:2},1032,["to"])]),_:2},1032,["total","items","error","empty-state-message","empty-state-cta-to","empty-state-cta-text","is-selected-row","onChange"]))]),_:2},1024),m(),a.params.zoneIngress?(t(),r(I,{key:0},{default:s(e=>[n(T,{onClose:u=>a.replace({name:"zone-ingress-list-view",params:{zone:a.params.zone},query:{page:1,size:100}})},{default:s(()=>[(t(),r(R(e.Component),{"zone-ingress-overview":o==null?void 0:o.items.find(u=>u.name===a.params.zoneIngress)},null,8,["zone-ingress-overview"]))]),_:2},1032,["onClose"])]),_:2},1024)):y("",!0)]),_:2},1032,["src"])]),_:2},1024)]),_:1},8,["params"])):y("",!0)]),_:1})}}});const M=B(Z,[["__scopeId","data-v-a834c201"]]);export{M as default}; +import{K as V}from"./index-fce48c05.js";import{d as x,a as l,o as t,b as r,w as s,e as n,m as h,f as m,t as c,c as g,F as z,l as k,P as b,C as R,p as y,_ as B}from"./index-0dcf85b4.js";import{A as L}from"./AppCollection-a7a0983f.js";import{E as N}from"./ErrorBlock-70a14ad9.js";import{S as D}from"./StatusBadge-e7326f60.js";import{S as T}from"./SummaryView-8d0a7896.js";import{T as w}from"./TextWithCopyButton-da18080b.js";import"./EmptyBlock.vue_vue_type_script_setup_true_lang-6ff90078.js";import"./WarningIcon.vue_vue_type_script_setup_true_lang-d54f4898.js";import"./CopyButton-dcdce1f2.js";const Z=x({__name:"ZoneIngressListView",setup(E){return(K,$)=>{const f=l("RouteTitle"),d=l("RouterLink"),v=l("KCard"),I=l("RouterView"),_=l("DataSource"),C=l("AppView"),A=l("RouteView");return t(),r(_,{src:"/me"},{default:s(({data:S})=>[S?(t(),r(A,{key:0,name:"zone-ingress-list-view",params:{zone:"",zoneIngress:""}},{default:s(({route:a,t:i})=>[n(C,null,{title:s(()=>[h("h2",null,[n(f,{title:i("zone-ingresses.routes.items.title")},null,8,["title"])])]),default:s(()=>[m(),n(_,{src:`/zone-cps/${a.params.zone}/ingresses?page=1&size=100`},{default:s(({data:o,error:p})=>[n(v,null,{default:s(()=>[p!==void 0?(t(),r(N,{key:0,error:p},null,8,["error"])):(t(),r(L,{key:1,class:"zone-ingress-collection","data-testid":"zone-ingress-collection",headers:[{label:"Name",key:"name"},{label:"Address",key:"socketAddress"},{label:"Advertised address",key:"advertisedSocketAddress"},{label:"Status",key:"status"},{label:"Details",key:"details",hideLabel:!0}],"page-number":1,"page-size":100,total:o==null?void 0:o.total,items:o==null?void 0:o.items,error:p,"empty-state-message":i("common.emptyState.message",{type:"Zone Ingresses"}),"empty-state-cta-to":i("zone-ingresses.href.docs"),"empty-state-cta-text":i("common.documentation"),"is-selected-row":e=>e.name===a.params.zoneIngress,onChange:a.update},{name:s(({row:e})=>[n(d,{to:{name:"zone-ingress-summary-view",params:{zone:a.params.zone,zoneIngress:e.name},query:{page:1,size:100}}},{default:s(()=>[m(c(e.name),1)]),_:2},1032,["to"])]),socketAddress:s(({row:e})=>[e.zoneIngress.socketAddress.length>0?(t(),r(w,{key:0,text:e.zoneIngress.socketAddress},null,8,["text"])):(t(),g(z,{key:1},[m(c(i("common.collection.none")),1)],64))]),advertisedSocketAddress:s(({row:e})=>[e.zoneIngress.advertisedSocketAddress.length>0?(t(),r(w,{key:0,text:e.zoneIngress.advertisedSocketAddress},null,8,["text"])):(t(),g(z,{key:1},[m(c(i("common.collection.none")),1)],64))]),status:s(({row:e})=>[n(D,{status:e.state},null,8,["status"])]),details:s(({row:e})=>[n(d,{class:"details-link","data-testid":"details-link",to:{name:"zone-ingress-detail-view",params:{zoneIngress:e.name}}},{default:s(()=>[m(c(i("common.collection.details_link"))+" ",1),n(k(b),{display:"inline-block",decorative:"",size:k(V)},null,8,["size"])]),_:2},1032,["to"])]),_:2},1032,["total","items","error","empty-state-message","empty-state-cta-to","empty-state-cta-text","is-selected-row","onChange"]))]),_:2},1024),m(),a.params.zoneIngress?(t(),r(I,{key:0},{default:s(e=>[n(T,{onClose:u=>a.replace({name:"zone-ingress-list-view",params:{zone:a.params.zone},query:{page:1,size:100}})},{default:s(()=>[(t(),r(R(e.Component),{"zone-ingress-overview":o==null?void 0:o.items.find(u=>u.name===a.params.zoneIngress)},null,8,["zone-ingress-overview"]))]),_:2},1032,["onClose"])]),_:2},1024)):y("",!0)]),_:2},1032,["src"])]),_:2},1024)]),_:1},8,["params"])):y("",!0)]),_:1})}}});const M=B(Z,[["__scopeId","data-v-a834c201"]]);export{M as default}; diff --git a/app/kuma-ui/pkg/resources/data/assets/ZoneIngressServicesView-bff5628e.js b/app/kuma-ui/pkg/resources/data/assets/ZoneIngressServicesView-7023bc83.js similarity index 90% rename from app/kuma-ui/pkg/resources/data/assets/ZoneIngressServicesView-bff5628e.js rename to app/kuma-ui/pkg/resources/data/assets/ZoneIngressServicesView-7023bc83.js index e8d93017ebf2..030a770c80a8 100644 --- a/app/kuma-ui/pkg/resources/data/assets/ZoneIngressServicesView-bff5628e.js +++ b/app/kuma-ui/pkg/resources/data/assets/ZoneIngressServicesView-7023bc83.js @@ -1 +1 @@ -import{d as h,a as s,o as f,b as g,w as e,e as t,m as k,f as a,t as i,l as b,az as y}from"./index-5f4feb06.js";import{A as K}from"./AppCollection-4b66f394.js";import"./index-fce48c05.js";import"./EmptyBlock.vue_vue_type_script_setup_true_lang-7f79002a.js";const D=h({__name:"ZoneIngressServicesView",props:{data:{}},setup(r){const l=r;return(V,C)=>{const m=s("RouteTitle"),c=s("RouterLink"),p=s("KButton"),d=s("KDropdownItem"),u=s("KDropdown"),_=s("KCard"),v=s("AppView"),w=s("RouteView");return f(),g(w,{name:"zone-ingress-services-view"},{default:e(({t:n})=>[t(v,null,{title:e(()=>[k("h2",null,[t(m,{title:n("zone-ingresses.routes.item.navigation.zone-ingress-services-view")},null,8,["title"])])]),default:e(()=>[a(),t(_,null,{default:e(()=>[t(K,{"data-testid":"available-services-collection","empty-state-message":n("common.emptyState.message",{type:"Services"}),headers:[{label:"Name",key:"name"},{label:"Mesh",key:"mesh"},{label:"Protocol",key:"protocol"},{label:"No. Instances",key:"instances"},{label:"Actions",key:"actions",hideLabel:!0}],items:l.data.zoneIngress.availableServices},{name:e(({row:o})=>[t(c,{to:{name:"service-detail-view",params:{mesh:o.mesh,service:o.tags["kuma.io/service"]}}},{default:e(()=>[a(i(o.tags["kuma.io/service"]),1)]),_:2},1032,["to"])]),mesh:e(({row:o})=>[t(c,{to:{name:"mesh-detail-view",params:{mesh:o.mesh}}},{default:e(()=>[a(i(o.mesh),1)]),_:2},1032,["to"])]),protocol:e(({row:o})=>[a(i(o.tags["kuma.io/protocol"]??n("common.collection.none")),1)]),instances:e(({row:o})=>[a(i(o.instances),1)]),actions:e(({row:o})=>[t(u,{class:"actions-dropdown","kpop-attributes":{placement:"bottomEnd",popoverClasses:"mt-5 more-actions-popover"},width:"150"},{default:e(()=>[t(p,{class:"non-visual-button",appearance:"secondary","icon-only":""},{default:e(()=>[t(b(y))]),_:1})]),items:e(()=>[t(d,{item:{to:{name:"service-detail-view",params:{mesh:o.mesh,service:o.tags["kuma.io/service"]}},label:n("common.collection.actions.view")}},null,8,["item"])]),_:2},1024)]),_:2},1032,["empty-state-message","headers","items"])]),_:2},1024)]),_:2},1024)]),_:1})}}});export{D as default}; +import{d as h,a as s,o as f,b as g,w as e,e as t,m as k,f as a,t as i,l as b,az as y}from"./index-0dcf85b4.js";import{A as K}from"./AppCollection-a7a0983f.js";import"./index-fce48c05.js";import"./EmptyBlock.vue_vue_type_script_setup_true_lang-6ff90078.js";const D=h({__name:"ZoneIngressServicesView",props:{data:{}},setup(r){const l=r;return(V,C)=>{const m=s("RouteTitle"),c=s("RouterLink"),p=s("KButton"),d=s("KDropdownItem"),u=s("KDropdown"),_=s("KCard"),v=s("AppView"),w=s("RouteView");return f(),g(w,{name:"zone-ingress-services-view"},{default:e(({t:n})=>[t(v,null,{title:e(()=>[k("h2",null,[t(m,{title:n("zone-ingresses.routes.item.navigation.zone-ingress-services-view")},null,8,["title"])])]),default:e(()=>[a(),t(_,null,{default:e(()=>[t(K,{"data-testid":"available-services-collection","empty-state-message":n("common.emptyState.message",{type:"Services"}),headers:[{label:"Name",key:"name"},{label:"Mesh",key:"mesh"},{label:"Protocol",key:"protocol"},{label:"No. Instances",key:"instances"},{label:"Actions",key:"actions",hideLabel:!0}],items:l.data.zoneIngress.availableServices},{name:e(({row:o})=>[t(c,{to:{name:"service-detail-view",params:{mesh:o.mesh,service:o.tags["kuma.io/service"]}}},{default:e(()=>[a(i(o.tags["kuma.io/service"]),1)]),_:2},1032,["to"])]),mesh:e(({row:o})=>[t(c,{to:{name:"mesh-detail-view",params:{mesh:o.mesh}}},{default:e(()=>[a(i(o.mesh),1)]),_:2},1032,["to"])]),protocol:e(({row:o})=>[a(i(o.tags["kuma.io/protocol"]??n("common.collection.none")),1)]),instances:e(({row:o})=>[a(i(o.instances),1)]),actions:e(({row:o})=>[t(u,{class:"actions-dropdown","kpop-attributes":{placement:"bottomEnd",popoverClasses:"mt-5 more-actions-popover"},width:"150"},{default:e(()=>[t(p,{class:"non-visual-button",appearance:"secondary","icon-only":""},{default:e(()=>[t(b(y))]),_:1})]),items:e(()=>[t(d,{item:{to:{name:"service-detail-view",params:{mesh:o.mesh,service:o.tags["kuma.io/service"]}},label:n("common.collection.actions.view")}},null,8,["item"])]),_:2},1024)]),_:2},1032,["empty-state-message","headers","items"])]),_:2},1024)]),_:2},1024)]),_:1})}}});export{D as default}; diff --git a/app/kuma-ui/pkg/resources/data/assets/ZoneIngressStatsView-3b725386.js b/app/kuma-ui/pkg/resources/data/assets/ZoneIngressStatsView-e3701af2.js similarity index 66% rename from app/kuma-ui/pkg/resources/data/assets/ZoneIngressStatsView-3b725386.js rename to app/kuma-ui/pkg/resources/data/assets/ZoneIngressStatsView-e3701af2.js index fb0f2dc8c697..f73063c57c1b 100644 --- a/app/kuma-ui/pkg/resources/data/assets/ZoneIngressStatsView-3b725386.js +++ b/app/kuma-ui/pkg/resources/data/assets/ZoneIngressStatsView-e3701af2.js @@ -1 +1 @@ -import{E as m}from"./EnvoyData-b31c947e.js";import{d,a as t,o as l,b as g,w as a,e as n,m as u,f as _}from"./index-5f4feb06.js";import"./index-fce48c05.js";import"./CodeBlock.vue_vue_type_style_index_0_lang-6de3c828.js";import"./uniqueId-90cc9b93.js";import"./EmptyBlock.vue_vue_type_script_setup_true_lang-7f79002a.js";import"./ErrorBlock-558c0398.js";import"./TextWithCopyButton-1098d691.js";import"./CopyButton-2ffc661c.js";import"./WarningIcon.vue_vue_type_script_setup_true_lang-cab7af3a.js";import"./LoadingBlock.vue_vue_type_script_setup_true_lang-e7fd5a8b.js";const B=d({__name:"ZoneIngressStatsView",setup(f){return(h,x)=>{const s=t("RouteTitle"),r=t("KCard"),i=t("AppView"),p=t("RouteView");return l(),g(p,{name:"zone-ingress-stats-view",params:{zoneIngress:"",codeSearch:"",codeFilter:!1,codeRegExp:!1}},{default:a(({route:e,t:c})=>[n(i,null,{title:a(()=>[u("h2",null,[n(s,{title:c("zone-ingresses.routes.item.navigation.zone-ingress-stats-view")},null,8,["title"])])]),default:a(()=>[_(),n(r,null,{default:a(()=>[n(m,{resource:"Zone",src:`/zone-ingresses/${e.params.zoneIngress}/data-path/stats`,query:e.params.codeSearch,"is-filter-mode":e.params.codeFilter,"is-reg-exp-mode":e.params.codeRegExp,onQueryChange:o=>e.update({codeSearch:o}),onFilterModeChange:o=>e.update({codeFilter:o}),onRegExpModeChange:o=>e.update({codeRegExp:o})},null,8,["src","query","is-filter-mode","is-reg-exp-mode","onQueryChange","onFilterModeChange","onRegExpModeChange"])]),_:2},1024)]),_:2},1024)]),_:1})}}});export{B as default}; +import{E as m}from"./EnvoyData-9a9e9257.js";import{d,a as t,o as l,b as g,w as a,e as n,m as u,f as _}from"./index-0dcf85b4.js";import"./index-fce48c05.js";import"./CodeBlock.vue_vue_type_style_index_0_lang-95cf08c2.js";import"./uniqueId-90cc9b93.js";import"./EmptyBlock.vue_vue_type_script_setup_true_lang-6ff90078.js";import"./ErrorBlock-70a14ad9.js";import"./TextWithCopyButton-da18080b.js";import"./CopyButton-dcdce1f2.js";import"./WarningIcon.vue_vue_type_script_setup_true_lang-d54f4898.js";import"./LoadingBlock.vue_vue_type_script_setup_true_lang-2e81faa2.js";const B=d({__name:"ZoneIngressStatsView",setup(f){return(h,x)=>{const s=t("RouteTitle"),r=t("KCard"),i=t("AppView"),p=t("RouteView");return l(),g(p,{name:"zone-ingress-stats-view",params:{zoneIngress:"",codeSearch:"",codeFilter:!1,codeRegExp:!1}},{default:a(({route:e,t:c})=>[n(i,null,{title:a(()=>[u("h2",null,[n(s,{title:c("zone-ingresses.routes.item.navigation.zone-ingress-stats-view")},null,8,["title"])])]),default:a(()=>[_(),n(r,null,{default:a(()=>[n(m,{resource:"Zone",src:`/zone-ingresses/${e.params.zoneIngress}/data-path/stats`,query:e.params.codeSearch,"is-filter-mode":e.params.codeFilter,"is-reg-exp-mode":e.params.codeRegExp,onQueryChange:o=>e.update({codeSearch:o}),onFilterModeChange:o=>e.update({codeFilter:o}),onRegExpModeChange:o=>e.update({codeRegExp:o})},null,8,["src","query","is-filter-mode","is-reg-exp-mode","onQueryChange","onFilterModeChange","onRegExpModeChange"])]),_:2},1024)]),_:2},1024)]),_:1})}}});export{B as default}; diff --git a/app/kuma-ui/pkg/resources/data/assets/ZoneIngressSummaryView-e8e97990.js b/app/kuma-ui/pkg/resources/data/assets/ZoneIngressSummaryView-714aa7d1.js similarity index 92% rename from app/kuma-ui/pkg/resources/data/assets/ZoneIngressSummaryView-e8e97990.js rename to app/kuma-ui/pkg/resources/data/assets/ZoneIngressSummaryView-714aa7d1.js index 160ec23df89a..4d66bd66d23c 100644 --- a/app/kuma-ui/pkg/resources/data/assets/ZoneIngressSummaryView-e8e97990.js +++ b/app/kuma-ui/pkg/resources/data/assets/ZoneIngressSummaryView-714aa7d1.js @@ -1 +1 @@ -import{d as y,k as I,o as r,c as p,e as i,w as e,f as s,t as a,l as n,X as u,b as d,F as v,a as c,m,v as S,x as V,aC as O,_ as b}from"./index-5f4feb06.js";import{S as A}from"./StatusBadge-2db39c5c.js";import{T as g}from"./TextWithCopyButton-1098d691.js";import{_ as B}from"./EmptyBlock.vue_vue_type_script_setup_true_lang-7f79002a.js";import"./CopyButton-2ffc661c.js";import"./index-fce48c05.js";const C={class:"stack"},R=y({__name:"ZoneIngressSummary",props:{zoneIngressOverview:{}},setup(l){const{t}=I(),o=l;return(z,w)=>(r(),p("div",C,[i(u,null,{title:e(()=>[s(a(n(t)("http.api.property.status")),1)]),body:e(()=>[i(A,{status:o.zoneIngressOverview.state},null,8,["status"])]),_:1}),s(),i(u,null,{title:e(()=>[s(a(n(t)("http.api.property.address")),1)]),body:e(()=>[o.zoneIngressOverview.zoneIngress.socketAddress.length>0?(r(),d(g,{key:0,text:o.zoneIngressOverview.zoneIngress.socketAddress},null,8,["text"])):(r(),p(v,{key:1},[s(a(n(t)("common.detail.none")),1)],64))]),_:1}),s(),i(u,null,{title:e(()=>[s(a(n(t)("http.api.property.advertisedAddress")),1)]),body:e(()=>[o.zoneIngressOverview.zoneIngress.advertisedSocketAddress.length>0?(r(),d(g,{key:0,text:o.zoneIngressOverview.zoneIngress.advertisedSocketAddress},null,8,["text"])):(r(),p(v,{key:1},[s(a(n(t)("common.detail.none")),1)],64))]),_:1})]))}}),Z=l=>(S("data-v-b0f6778d"),l=l(),V(),l),T={class:"summary-title-wrapper"},N=Z(()=>m("img",{"aria-hidden":"true",src:O},null,-1)),$={class:"summary-title"},D={key:1,class:"stack"},F=y({__name:"ZoneIngressSummaryView",props:{zoneIngressOverview:{default:void 0}},setup(l){const{t}=I(),o=l;return(z,w)=>{const f=c("RouteTitle"),h=c("RouterLink"),k=c("AppView"),x=c("RouteView");return r(),d(x,{name:"zone-ingress-summary-view",params:{zone:"",zoneIngress:""}},{default:e(({route:_})=>[i(k,null,{title:e(()=>[m("div",T,[N,s(),m("h2",$,[i(h,{to:{name:"zone-ingress-detail-view",params:{zone:_.params.zone,zoneIngress:_.params.zoneIngress}}},{default:e(()=>[i(f,{title:n(t)("zone-ingresses.routes.item.title",{name:_.params.zoneIngress})},null,8,["title"])]),_:2},1032,["to"])])])]),default:e(()=>[s(),o.zoneIngressOverview===void 0?(r(),d(B,{key:0},{message:e(()=>[m("p",null,a(n(t)("common.collection.summary.empty_message",{type:"ZoneIngress"})),1)]),default:e(()=>[s(a(n(t)("common.collection.summary.empty_title",{type:"ZoneIngress"}))+" ",1)]),_:1})):(r(),p("div",D,[m("div",null,[m("h3",null,a(n(t)("zone-ingresses.routes.item.overview")),1),s(),i(R,{class:"mt-4","zone-ingress-overview":o.zoneIngressOverview},null,8,["zone-ingress-overview"])])]))]),_:2},1024)]),_:1})}}});const G=b(F,[["__scopeId","data-v-b0f6778d"]]);export{G as default}; +import{d as y,k as I,o as r,c as p,e as i,w as e,f as s,t as a,l as n,X as u,b as d,F as v,a as c,m,v as S,x as V,aC as O,_ as b}from"./index-0dcf85b4.js";import{S as A}from"./StatusBadge-e7326f60.js";import{T as g}from"./TextWithCopyButton-da18080b.js";import{_ as B}from"./EmptyBlock.vue_vue_type_script_setup_true_lang-6ff90078.js";import"./CopyButton-dcdce1f2.js";import"./index-fce48c05.js";const C={class:"stack"},R=y({__name:"ZoneIngressSummary",props:{zoneIngressOverview:{}},setup(l){const{t}=I(),o=l;return(z,w)=>(r(),p("div",C,[i(u,null,{title:e(()=>[s(a(n(t)("http.api.property.status")),1)]),body:e(()=>[i(A,{status:o.zoneIngressOverview.state},null,8,["status"])]),_:1}),s(),i(u,null,{title:e(()=>[s(a(n(t)("http.api.property.address")),1)]),body:e(()=>[o.zoneIngressOverview.zoneIngress.socketAddress.length>0?(r(),d(g,{key:0,text:o.zoneIngressOverview.zoneIngress.socketAddress},null,8,["text"])):(r(),p(v,{key:1},[s(a(n(t)("common.detail.none")),1)],64))]),_:1}),s(),i(u,null,{title:e(()=>[s(a(n(t)("http.api.property.advertisedAddress")),1)]),body:e(()=>[o.zoneIngressOverview.zoneIngress.advertisedSocketAddress.length>0?(r(),d(g,{key:0,text:o.zoneIngressOverview.zoneIngress.advertisedSocketAddress},null,8,["text"])):(r(),p(v,{key:1},[s(a(n(t)("common.detail.none")),1)],64))]),_:1})]))}}),Z=l=>(S("data-v-b0f6778d"),l=l(),V(),l),T={class:"summary-title-wrapper"},N=Z(()=>m("img",{"aria-hidden":"true",src:O},null,-1)),$={class:"summary-title"},D={key:1,class:"stack"},F=y({__name:"ZoneIngressSummaryView",props:{zoneIngressOverview:{default:void 0}},setup(l){const{t}=I(),o=l;return(z,w)=>{const f=c("RouteTitle"),h=c("RouterLink"),k=c("AppView"),x=c("RouteView");return r(),d(x,{name:"zone-ingress-summary-view",params:{zone:"",zoneIngress:""}},{default:e(({route:_})=>[i(k,null,{title:e(()=>[m("div",T,[N,s(),m("h2",$,[i(h,{to:{name:"zone-ingress-detail-view",params:{zone:_.params.zone,zoneIngress:_.params.zoneIngress}}},{default:e(()=>[i(f,{title:n(t)("zone-ingresses.routes.item.title",{name:_.params.zoneIngress})},null,8,["title"])]),_:2},1032,["to"])])])]),default:e(()=>[s(),o.zoneIngressOverview===void 0?(r(),d(B,{key:0},{message:e(()=>[m("p",null,a(n(t)("common.collection.summary.empty_message",{type:"ZoneIngress"})),1)]),default:e(()=>[s(a(n(t)("common.collection.summary.empty_title",{type:"ZoneIngress"}))+" ",1)]),_:1})):(r(),p("div",D,[m("div",null,[m("h3",null,a(n(t)("zone-ingresses.routes.item.overview")),1),s(),i(R,{class:"mt-4","zone-ingress-overview":o.zoneIngressOverview},null,8,["zone-ingress-overview"])])]))]),_:2},1024)]),_:1})}}});const G=b(F,[["__scopeId","data-v-b0f6778d"]]);export{G as default}; diff --git a/app/kuma-ui/pkg/resources/data/assets/ZoneIngressXdsConfigView-b6422335.js b/app/kuma-ui/pkg/resources/data/assets/ZoneIngressXdsConfigView-930d3258.js similarity index 66% rename from app/kuma-ui/pkg/resources/data/assets/ZoneIngressXdsConfigView-b6422335.js rename to app/kuma-ui/pkg/resources/data/assets/ZoneIngressXdsConfigView-930d3258.js index 0b108d21c18a..f50a1a646c0a 100644 --- a/app/kuma-ui/pkg/resources/data/assets/ZoneIngressXdsConfigView-b6422335.js +++ b/app/kuma-ui/pkg/resources/data/assets/ZoneIngressXdsConfigView-930d3258.js @@ -1 +1 @@ -import{E as d}from"./EnvoyData-b31c947e.js";import{d as m,a as n,o as l,b as g,w as t,e as a,m as u,f as _}from"./index-5f4feb06.js";import"./index-fce48c05.js";import"./CodeBlock.vue_vue_type_style_index_0_lang-6de3c828.js";import"./uniqueId-90cc9b93.js";import"./EmptyBlock.vue_vue_type_script_setup_true_lang-7f79002a.js";import"./ErrorBlock-558c0398.js";import"./TextWithCopyButton-1098d691.js";import"./CopyButton-2ffc661c.js";import"./WarningIcon.vue_vue_type_script_setup_true_lang-cab7af3a.js";import"./LoadingBlock.vue_vue_type_script_setup_true_lang-e7fd5a8b.js";const I=m({__name:"ZoneIngressXdsConfigView",setup(f){return(x,h)=>{const s=n("RouteTitle"),r=n("KCard"),i=n("AppView"),p=n("RouteView");return l(),g(p,{name:"zone-ingress-xds-config-view",params:{zoneIngress:"",codeSearch:"",codeFilter:!1,codeRegExp:!1}},{default:t(({route:e,t:c})=>[a(i,null,{title:t(()=>[u("h2",null,[a(s,{title:c("zone-ingresses.routes.item.navigation.zone-ingress-xds-config-view")},null,8,["title"])])]),default:t(()=>[_(),a(r,null,{default:t(()=>[a(d,{resource:"Zone",src:`/zone-ingresses/${e.params.zoneIngress}/data-path/xds`,query:e.params.codeSearch,"is-filter-mode":e.params.codeFilter,"is-reg-exp-mode":e.params.codeRegExp,onQueryChange:o=>e.update({codeSearch:o}),onFilterModeChange:o=>e.update({codeFilter:o}),onRegExpModeChange:o=>e.update({codeRegExp:o})},null,8,["src","query","is-filter-mode","is-reg-exp-mode","onQueryChange","onFilterModeChange","onRegExpModeChange"])]),_:2},1024)]),_:2},1024)]),_:1})}}});export{I as default}; +import{E as d}from"./EnvoyData-9a9e9257.js";import{d as m,a as n,o as l,b as g,w as t,e as a,m as u,f as _}from"./index-0dcf85b4.js";import"./index-fce48c05.js";import"./CodeBlock.vue_vue_type_style_index_0_lang-95cf08c2.js";import"./uniqueId-90cc9b93.js";import"./EmptyBlock.vue_vue_type_script_setup_true_lang-6ff90078.js";import"./ErrorBlock-70a14ad9.js";import"./TextWithCopyButton-da18080b.js";import"./CopyButton-dcdce1f2.js";import"./WarningIcon.vue_vue_type_script_setup_true_lang-d54f4898.js";import"./LoadingBlock.vue_vue_type_script_setup_true_lang-2e81faa2.js";const I=m({__name:"ZoneIngressXdsConfigView",setup(f){return(x,h)=>{const s=n("RouteTitle"),r=n("KCard"),i=n("AppView"),p=n("RouteView");return l(),g(p,{name:"zone-ingress-xds-config-view",params:{zoneIngress:"",codeSearch:"",codeFilter:!1,codeRegExp:!1}},{default:t(({route:e,t:c})=>[a(i,null,{title:t(()=>[u("h2",null,[a(s,{title:c("zone-ingresses.routes.item.navigation.zone-ingress-xds-config-view")},null,8,["title"])])]),default:t(()=>[_(),a(r,null,{default:t(()=>[a(d,{resource:"Zone",src:`/zone-ingresses/${e.params.zoneIngress}/data-path/xds`,query:e.params.codeSearch,"is-filter-mode":e.params.codeFilter,"is-reg-exp-mode":e.params.codeRegExp,onQueryChange:o=>e.update({codeSearch:o}),onFilterModeChange:o=>e.update({codeFilter:o}),onRegExpModeChange:o=>e.update({codeRegExp:o})},null,8,["src","query","is-filter-mode","is-reg-exp-mode","onQueryChange","onFilterModeChange","onRegExpModeChange"])]),_:2},1024)]),_:2},1024)]),_:1})}}});export{I as default}; diff --git a/app/kuma-ui/pkg/resources/data/assets/ZoneListView-b6807748.js b/app/kuma-ui/pkg/resources/data/assets/ZoneListView-e4a49ebe.js similarity index 92% rename from app/kuma-ui/pkg/resources/data/assets/ZoneListView-b6807748.js rename to app/kuma-ui/pkg/resources/data/assets/ZoneListView-e4a49ebe.js index 866aab4b92cd..2727c22d2ce2 100644 --- a/app/kuma-ui/pkg/resources/data/assets/ZoneListView-b6807748.js +++ b/app/kuma-ui/pkg/resources/data/assets/ZoneListView-e4a49ebe.js @@ -1 +1 @@ -import{K as E}from"./index-fce48c05.js";import{d as ee,L as te,B as V,a as u,o as n,b as v,w as e,e as o,W as F,m as D,f as s,t as m,l as k,ay as M,c as f,F as z,D as S,p as x,P as ne,az as oe,C as se,z as ae,_ as ie}from"./index-5f4feb06.js";import{A as le}from"./AppCollection-4b66f394.js";import{_ as re}from"./DeleteResourceModal.vue_vue_type_script_setup_true_lang-99683839.js";import{E as ce}from"./ErrorBlock-558c0398.js";import{S as me}from"./StatusBadge-2db39c5c.js";import{S as pe}from"./SummaryView-46a73d2c.js";import{_ as ue}from"./WarningIcon.vue_vue_type_script_setup_true_lang-cab7af3a.js";import"./EmptyBlock.vue_vue_type_script_setup_true_lang-7f79002a.js";import"./TextWithCopyButton-1098d691.js";import"./CopyButton-2ffc661c.js";const de=["data-testid"],_e=ee({__name:"ZoneListView",setup(fe){const O=te(),K=V(!1),N=V(!1),I=V(""),R=V({}),A=V({}),T=i=>{let d="offline";return i.length>0&&(d="online",typeof i[i.length-1].disconnectTime<"u"&&(d="offline")),d},P=i=>{const d="zoneIngress";R.value=i.items.reduce((p,_)=>{var y,w;const l=(y=_[d])==null?void 0:y.zone;if(typeof l<"u"){typeof p[l]>"u"&&(p[l]={online:[],offline:[]});const b=((w=_[`${d}Insight`])==null?void 0:w.subscriptions)||[],C=T(b);p[l][C].push(_)}return p},{})},W=i=>{const d="zoneEgress";A.value=i.items.reduce((p,_)=>{var y,w;const l=(y=_[d])==null?void 0:y.zone;if(typeof l<"u"){typeof p[l]>"u"&&(p[l]={online:[],offline:[]});const b=((w=_[`${d}Insight`])==null?void 0:w.subscriptions)||[],C=T(b);p[l][C].push(_)}return p},{})};async function j(){await O.deleteZone({name:I.value})}function Z(){K.value=!K.value}function G(i){Z(),I.value=i}function U(i){N.value=(i==null?void 0:i.items.length)>0}return(i,d)=>{const p=u("RouteTitle"),_=u("KButton"),l=u("DataSource"),y=u("RouterLink"),w=u("KTooltip"),b=u("KDropdownItem"),C=u("KDropdown"),H=u("KCard"),J=u("RouterView"),Q=u("AppView"),X=u("RouteView");return n(),v(l,{src:"/me"},{default:e(({data:q})=>[q?(n(),v(X,{key:0,name:"zone-cp-list-view",params:{page:1,size:q.pageSize,zone:""}},{default:e(({route:r,t:c,can:h})=>[o(Q,null,F({title:e(()=>[D("h1",null,[o(p,{title:c("zone-cps.routes.items.title")},null,8,["title"])])]),default:e(()=>[s(),s(),o(l,{src:`/zone-cps?page=${r.params.page}&size=${r.params.size}`,onChange:U},{default:e(({data:g,error:$,refresh:Y})=>[o(l,{src:"/zone-ingress-overviews?page=1&size=100",onChange:P}),s(),o(l,{src:"/zone-egress-overviews?page=1&size=100",onChange:W}),s(),o(H,null,{default:e(()=>[$!==void 0?(n(),v(ce,{key:0,error:$},null,8,["error"])):(n(),v(le,{key:1,class:"zone-cp-collection","data-testid":"zone-cp-collection",headers:[{label:"Name",key:"name"},{label:"Zone CP Version",key:"zoneCpVersion"},{label:"Type",key:"type"},{label:"Ingresses (online / total)",key:"ingress"},{label:"Egresses (online / total)",key:"egress"},{label:"Status",key:"state"},{label:"Warnings",key:"warnings",hideLabel:!0},{label:"Details",key:"details",hideLabel:!0},{label:"Actions",key:"actions",hideLabel:!0}],"page-number":r.params.page,"page-size":r.params.size,total:g==null?void 0:g.total,items:g==null?void 0:g.items,error:$,"empty-state-title":h("create zones")?c("zone-cps.empty_state.title"):void 0,"empty-state-message":h("create zones")?c("zone-cps.empty_state.message"):void 0,"empty-state-cta-to":h("create zones")?{name:"zone-create-view"}:void 0,"empty-state-cta-text":h("create zones")?c("zones.index.create"):void 0,"is-selected-row":t=>t.name===r.params.zone,onChange:r.update},F({name:e(({row:t})=>[o(y,{to:{name:"zone-cp-detail-view",params:{zone:t.name},query:{page:r.params.page,size:r.params.size}}},{default:e(()=>[s(m(t.name),1)]),_:2},1032,["to"])]),zoneCpVersion:e(({row:t})=>[s(m(k(M)(t.zoneInsight,"version.kumaCp.version",c("common.collection.none"))),1)]),type:e(({row:t})=>[s(m(t.zoneInsight.environment.length>0?t.zoneInsight.environment:"kubernetes"),1)]),ingress:e(({row:t})=>[(n(!0),f(z,null,S([R.value[t.name]||{online:[],offline:[]}],a=>(n(),f(z,null,[s(m(a.online.length)+" / "+m(a.online.length+a.offline.length),1)],64))),256))]),egress:e(({row:t})=>[(n(!0),f(z,null,S([A.value[t.name]||{online:[],offline:[]}],a=>(n(),f(z,null,[s(m(a.online.length)+" / "+m(a.online.length+a.offline.length),1)],64))),256))]),state:e(({row:t})=>[o(me,{status:t.state},null,8,["status"])]),warnings:e(({row:t})=>[(n(!0),f(z,null,S([{version_mismatch:!k(M)(t.zoneInsight,"version.kumaCp.kumaCpGlobalCompatible","true"),store_memory:t.zoneInsight.store==="memory"}],a=>(n(),f(z,{key:`${a.version_mismatch}-${a.store_memory}`},[Object.values(a).some(B=>B)?(n(),v(w,{key:0},{content:e(()=>[D("ul",null,[(n(!0),f(z,null,S(a,(B,L)=>(n(),f(z,{key:L},[B?(n(),f("li",{key:0,"data-testid":`warning-${L}`},m(c(`zone-cps.list.${L}`)),9,de)):x("",!0)],64))),128))])]),default:e(()=>[s(),o(ue,{"data-testid":"warning",class:"mr-1",size:k(E),"hide-title":""},null,8,["size"])]),_:2},1024)):(n(),f(z,{key:1},[s(m(c("common.collection.none")),1)],64))],64))),128))]),details:e(({row:t})=>[o(y,{class:"details-link","data-testid":"details-link",to:{name:"zone-cp-detail-view",params:{zone:t.name}}},{default:e(()=>[s(m(c("common.collection.details_link"))+" ",1),o(k(ne),{display:"inline-block",decorative:"",size:k(E)},null,8,["size"])]),_:2},1032,["to"])]),_:2},[h("create zones")?{name:"actions",fn:e(({row:t})=>[o(C,{class:"actions-dropdown","kpop-attributes":{placement:"bottomEnd",popoverClasses:"mt-5 more-actions-popover"},width:"150"},{default:e(()=>[o(_,{class:"non-visual-button",appearance:"secondary","icon-only":""},{default:e(()=>[o(k(oe))]),_:1})]),items:e(()=>[o(b,{"has-divider":"",danger:"","data-testid":"dropdown-delete-item",onClick:a=>G(t.name)},{default:e(()=>[s(m(c("common.collection.actions.delete")),1)]),_:2},1032,["onClick"])]),_:2},1024)]),key:"0"}:void 0]),1032,["headers","page-number","page-size","total","items","error","empty-state-title","empty-state-message","empty-state-cta-to","empty-state-cta-text","is-selected-row","onChange"]))]),_:2},1024),s(),r.params.zone?(n(),v(J,{key:0},{default:e(t=>[o(pe,{onClose:a=>r.replace({name:"zone-cp-list-view",query:{page:r.params.page,size:r.params.size}})},{default:e(()=>[(n(),v(se(t.Component),{name:r.params.zone,"zone-overview":g==null?void 0:g.items.find(a=>a.name===r.params.zone)},null,8,["name","zone-overview"]))]),_:2},1032,["onClose"])]),_:2},1024)):x("",!0),s(),K.value?(n(),v(re,{key:1,"confirmation-text":I.value,"delete-function":j,"is-visible":"","action-button-text":c("common.delete_modal.proceed_button"),title:c("common.delete_modal.title",{type:"Zone"}),"data-testid":"delete-zone-modal",onCancel:Z,onDelete:()=>{Z(),Y()}},{"body-content":e(()=>[D("p",null,m(c("common.delete_modal.text1",{type:"Zone",name:I.value})),1),s(),D("p",null,m(c("common.delete_modal.text2")),1)]),_:2},1032,["confirmation-text","action-button-text","title","onDelete"])):x("",!0)]),_:2},1032,["src"])]),_:2},[h("create zones")&&N.value?{name:"actions",fn:e(()=>[o(_,{appearance:"primary",to:{name:"zone-create-view"},"data-testid":"create-zone-link"},{default:e(()=>[o(k(ae),{size:k(E)},null,8,["size"]),s(" "+m(c("zones.index.create")),1)]),_:2},1024)]),key:"0"}:void 0]),1024)]),_:2},1032,["params"])):x("",!0)]),_:1})}}});const De=ie(_e,[["__scopeId","data-v-97ded327"]]);export{De as default}; +import{K as E}from"./index-fce48c05.js";import{d as ee,L as te,B as V,a as u,o as n,b as v,w as e,e as o,W as F,m as D,f as s,t as m,l as k,ay as M,c as f,F as z,D as S,p as x,P as ne,az as oe,C as se,z as ae,_ as ie}from"./index-0dcf85b4.js";import{A as le}from"./AppCollection-a7a0983f.js";import{_ as re}from"./DeleteResourceModal.vue_vue_type_script_setup_true_lang-d3185d11.js";import{E as ce}from"./ErrorBlock-70a14ad9.js";import{S as me}from"./StatusBadge-e7326f60.js";import{S as pe}from"./SummaryView-8d0a7896.js";import{_ as ue}from"./WarningIcon.vue_vue_type_script_setup_true_lang-d54f4898.js";import"./EmptyBlock.vue_vue_type_script_setup_true_lang-6ff90078.js";import"./TextWithCopyButton-da18080b.js";import"./CopyButton-dcdce1f2.js";const de=["data-testid"],_e=ee({__name:"ZoneListView",setup(fe){const O=te(),K=V(!1),N=V(!1),I=V(""),R=V({}),A=V({}),T=i=>{let d="offline";return i.length>0&&(d="online",typeof i[i.length-1].disconnectTime<"u"&&(d="offline")),d},P=i=>{const d="zoneIngress";R.value=i.items.reduce((p,_)=>{var y,w;const l=(y=_[d])==null?void 0:y.zone;if(typeof l<"u"){typeof p[l]>"u"&&(p[l]={online:[],offline:[]});const b=((w=_[`${d}Insight`])==null?void 0:w.subscriptions)||[],C=T(b);p[l][C].push(_)}return p},{})},W=i=>{const d="zoneEgress";A.value=i.items.reduce((p,_)=>{var y,w;const l=(y=_[d])==null?void 0:y.zone;if(typeof l<"u"){typeof p[l]>"u"&&(p[l]={online:[],offline:[]});const b=((w=_[`${d}Insight`])==null?void 0:w.subscriptions)||[],C=T(b);p[l][C].push(_)}return p},{})};async function j(){await O.deleteZone({name:I.value})}function Z(){K.value=!K.value}function G(i){Z(),I.value=i}function U(i){N.value=(i==null?void 0:i.items.length)>0}return(i,d)=>{const p=u("RouteTitle"),_=u("KButton"),l=u("DataSource"),y=u("RouterLink"),w=u("KTooltip"),b=u("KDropdownItem"),C=u("KDropdown"),H=u("KCard"),J=u("RouterView"),Q=u("AppView"),X=u("RouteView");return n(),v(l,{src:"/me"},{default:e(({data:q})=>[q?(n(),v(X,{key:0,name:"zone-cp-list-view",params:{page:1,size:q.pageSize,zone:""}},{default:e(({route:r,t:c,can:h})=>[o(Q,null,F({title:e(()=>[D("h1",null,[o(p,{title:c("zone-cps.routes.items.title")},null,8,["title"])])]),default:e(()=>[s(),s(),o(l,{src:`/zone-cps?page=${r.params.page}&size=${r.params.size}`,onChange:U},{default:e(({data:g,error:$,refresh:Y})=>[o(l,{src:"/zone-ingress-overviews?page=1&size=100",onChange:P}),s(),o(l,{src:"/zone-egress-overviews?page=1&size=100",onChange:W}),s(),o(H,null,{default:e(()=>[$!==void 0?(n(),v(ce,{key:0,error:$},null,8,["error"])):(n(),v(le,{key:1,class:"zone-cp-collection","data-testid":"zone-cp-collection",headers:[{label:"Name",key:"name"},{label:"Zone CP Version",key:"zoneCpVersion"},{label:"Type",key:"type"},{label:"Ingresses (online / total)",key:"ingress"},{label:"Egresses (online / total)",key:"egress"},{label:"Status",key:"state"},{label:"Warnings",key:"warnings",hideLabel:!0},{label:"Details",key:"details",hideLabel:!0},{label:"Actions",key:"actions",hideLabel:!0}],"page-number":r.params.page,"page-size":r.params.size,total:g==null?void 0:g.total,items:g==null?void 0:g.items,error:$,"empty-state-title":h("create zones")?c("zone-cps.empty_state.title"):void 0,"empty-state-message":h("create zones")?c("zone-cps.empty_state.message"):void 0,"empty-state-cta-to":h("create zones")?{name:"zone-create-view"}:void 0,"empty-state-cta-text":h("create zones")?c("zones.index.create"):void 0,"is-selected-row":t=>t.name===r.params.zone,onChange:r.update},F({name:e(({row:t})=>[o(y,{to:{name:"zone-cp-detail-view",params:{zone:t.name},query:{page:r.params.page,size:r.params.size}}},{default:e(()=>[s(m(t.name),1)]),_:2},1032,["to"])]),zoneCpVersion:e(({row:t})=>[s(m(k(M)(t.zoneInsight,"version.kumaCp.version",c("common.collection.none"))),1)]),type:e(({row:t})=>[s(m(t.zoneInsight.environment.length>0?t.zoneInsight.environment:"kubernetes"),1)]),ingress:e(({row:t})=>[(n(!0),f(z,null,S([R.value[t.name]||{online:[],offline:[]}],a=>(n(),f(z,null,[s(m(a.online.length)+" / "+m(a.online.length+a.offline.length),1)],64))),256))]),egress:e(({row:t})=>[(n(!0),f(z,null,S([A.value[t.name]||{online:[],offline:[]}],a=>(n(),f(z,null,[s(m(a.online.length)+" / "+m(a.online.length+a.offline.length),1)],64))),256))]),state:e(({row:t})=>[o(me,{status:t.state},null,8,["status"])]),warnings:e(({row:t})=>[(n(!0),f(z,null,S([{version_mismatch:!k(M)(t.zoneInsight,"version.kumaCp.kumaCpGlobalCompatible","true"),store_memory:t.zoneInsight.store==="memory"}],a=>(n(),f(z,{key:`${a.version_mismatch}-${a.store_memory}`},[Object.values(a).some(B=>B)?(n(),v(w,{key:0},{content:e(()=>[D("ul",null,[(n(!0),f(z,null,S(a,(B,L)=>(n(),f(z,{key:L},[B?(n(),f("li",{key:0,"data-testid":`warning-${L}`},m(c(`zone-cps.list.${L}`)),9,de)):x("",!0)],64))),128))])]),default:e(()=>[s(),o(ue,{"data-testid":"warning",class:"mr-1",size:k(E),"hide-title":""},null,8,["size"])]),_:2},1024)):(n(),f(z,{key:1},[s(m(c("common.collection.none")),1)],64))],64))),128))]),details:e(({row:t})=>[o(y,{class:"details-link","data-testid":"details-link",to:{name:"zone-cp-detail-view",params:{zone:t.name}}},{default:e(()=>[s(m(c("common.collection.details_link"))+" ",1),o(k(ne),{display:"inline-block",decorative:"",size:k(E)},null,8,["size"])]),_:2},1032,["to"])]),_:2},[h("create zones")?{name:"actions",fn:e(({row:t})=>[o(C,{class:"actions-dropdown","kpop-attributes":{placement:"bottomEnd",popoverClasses:"mt-5 more-actions-popover"},width:"150"},{default:e(()=>[o(_,{class:"non-visual-button",appearance:"secondary","icon-only":""},{default:e(()=>[o(k(oe))]),_:1})]),items:e(()=>[o(b,{"has-divider":"",danger:"","data-testid":"dropdown-delete-item",onClick:a=>G(t.name)},{default:e(()=>[s(m(c("common.collection.actions.delete")),1)]),_:2},1032,["onClick"])]),_:2},1024)]),key:"0"}:void 0]),1032,["headers","page-number","page-size","total","items","error","empty-state-title","empty-state-message","empty-state-cta-to","empty-state-cta-text","is-selected-row","onChange"]))]),_:2},1024),s(),r.params.zone?(n(),v(J,{key:0},{default:e(t=>[o(pe,{onClose:a=>r.replace({name:"zone-cp-list-view",query:{page:r.params.page,size:r.params.size}})},{default:e(()=>[(n(),v(se(t.Component),{name:r.params.zone,"zone-overview":g==null?void 0:g.items.find(a=>a.name===r.params.zone)},null,8,["name","zone-overview"]))]),_:2},1032,["onClose"])]),_:2},1024)):x("",!0),s(),K.value?(n(),v(re,{key:1,"confirmation-text":I.value,"delete-function":j,"is-visible":"","action-button-text":c("common.delete_modal.proceed_button"),title:c("common.delete_modal.title",{type:"Zone"}),"data-testid":"delete-zone-modal",onCancel:Z,onDelete:()=>{Z(),Y()}},{"body-content":e(()=>[D("p",null,m(c("common.delete_modal.text1",{type:"Zone",name:I.value})),1),s(),D("p",null,m(c("common.delete_modal.text2")),1)]),_:2},1032,["confirmation-text","action-button-text","title","onDelete"])):x("",!0)]),_:2},1032,["src"])]),_:2},[h("create zones")&&N.value?{name:"actions",fn:e(()=>[o(_,{appearance:"primary",to:{name:"zone-create-view"},"data-testid":"create-zone-link"},{default:e(()=>[o(k(ae),{size:k(E)},null,8,["size"]),s(" "+m(c("zones.index.create")),1)]),_:2},1024)]),key:"0"}:void 0]),1024)]),_:2},1032,["params"])):x("",!0)]),_:1})}}});const De=ie(_e,[["__scopeId","data-v-97ded327"]]);export{De as default}; diff --git a/app/kuma-ui/pkg/resources/data/assets/index-5f4feb06.js b/app/kuma-ui/pkg/resources/data/assets/index-0dcf85b4.js similarity index 97% rename from app/kuma-ui/pkg/resources/data/assets/index-5f4feb06.js rename to app/kuma-ui/pkg/resources/data/assets/index-0dcf85b4.js index 635d7c051e6c..1e577e2547b5 100644 --- a/app/kuma-ui/pkg/resources/data/assets/index-5f4feb06.js +++ b/app/kuma-ui/pkg/resources/data/assets/index-0dcf85b4.js @@ -1,4 +1,4 @@ -var hh=Object.defineProperty;var vh=(e,t,r)=>t in e?hh(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r;var mt=(e,t,r)=>(vh(e,typeof t!="symbol"?t+"":t,r),r),D2=(e,t,r)=>{if(!t.has(e))throw TypeError("Cannot "+r)};var he=(e,t,r)=>(D2(e,t,"read from private field"),r?r.call(e):t.get(e)),ut=(e,t,r)=>{if(t.has(e))throw TypeError("Cannot add the same private member more than once");t instanceof WeakSet?t.add(e):t.set(e,r)},Wt=(e,t,r,n)=>(D2(e,t,"write to private field"),n?n.call(e,r):t.set(e,r),r);var Me=(e,t,r)=>(D2(e,t,"access private method"),r);(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const o of document.querySelectorAll('link[rel="modulepreload"]'))n(o);new MutationObserver(o=>{for(const a of o)if(a.type==="childList")for(const i of a.addedNodes)i.tagName==="LINK"&&i.rel==="modulepreload"&&n(i)}).observe(document,{childList:!0,subtree:!0});function r(o){const a={};return o.integrity&&(a.integrity=o.integrity),o.referrerPolicy&&(a.referrerPolicy=o.referrerPolicy),o.crossOrigin==="use-credentials"?a.credentials="include":o.crossOrigin==="anonymous"?a.credentials="omit":a.credentials="same-origin",a}function n(o){if(o.ep)return;o.ep=!0;const a=r(o);fetch(o.href,a)}})();const mh="modulepreload",gh=function(e,t){return e[0]==="."?new URL(e,t).href:e},Q5={},Ve=function(t,r,n){if(!r||r.length===0)return t();const o=document.getElementsByTagName("link");return Promise.all(r.map(a=>{if(a=gh(a,n),a in Q5)return;Q5[a]=!0;const i=a.endsWith(".css"),s=i?'[rel="stylesheet"]':"";if(!!n)for(let c=o.length-1;c>=0;c--){const d=o[c];if(d.href===a&&(!i||d.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${a}"]${s}`))return;const u=document.createElement("link");if(u.rel=i?"stylesheet":mh,i||(u.as="script",u.crossOrigin=""),u.href=a,document.head.appendChild(u),i)return new Promise((c,d)=>{u.addEventListener("load",c),u.addEventListener("error",()=>d(new Error(`Unable to preload CSS for ${a}`)))})})).then(()=>t()).catch(a=>{const i=new Event("vite:preloadError",{cancelable:!0});if(i.payload=a,window.dispatchEvent(i),!i.defaultPrevented)throw a})};const Ch=e=>({"use kubernetes":t=>e("KUMA_ENVIRONMENT")==="kubernetes","use state":t=>e("KUMA_STORE_TYPE")!=="memory"}),yh=()=>[{path:"/",name:"home",component:()=>Ve(()=>import("./ControlPlaneDetailView-b9f70821.js"),["./CopyButton-2be0e14d.css","./TextWithCopyButton-f7225b54.css","./ErrorBlock-bcc21522.css","./AppCollection-6359d3b1.css","./StatusBadge-8194fcb8.css","./ControlPlaneDetailView-d2b77b9d.css"],import.meta.url)}],bh={fromObject(e){return e}},wh={fromObject(e){return e}},_h=(e,t)=>{const r=e.split("."),n=t.split(".");for(let o=0;o<3;o++){const a=Number(r[o]),i=Number(n[o]);if(a>i)return 1;if(i>a)return-1}return 0},kh=(e,t)=>({"/control-plane/addresses":async()=>({http:e("KUMA_API_URL"),kds:e("KUMA_KDS_URL")}),"/control-plane/version/latest":async()=>{const r=e("KUMA_VERSION");if(!r.match("^[0-9]+.[0-9]+.[0-9]+$"))return{version:r};const n=await(async()=>{try{return t.getLatestVersion()}catch(o){return console.error(o),""}})();return{version:n!==""&&_h(n,r)===1?n:r}},"/config":async()=>bh.fromObject(await t.getConfig()),"/global-insight":async()=>wh.fromObject(await t.getGlobalInsight())});function x7(e,t){const r=Object.create(null),n=e.split(",");for(let o=0;o!!r[o.toLowerCase()]:o=>!!r[o]}const Et={},Uo=[],J1=()=>{},xh=()=>!1,ql=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),M7=e=>e.startsWith("onUpdate:"),jt=Object.assign,S7=(e,t)=>{const r=e.indexOf(t);r>-1&&e.splice(r,1)},Mh=Object.prototype.hasOwnProperty,ht=(e,t)=>Mh.call(e,t),Ye=Array.isArray,jo=e=>Wl(e)==="[object Map]",z8=e=>Wl(e)==="[object Set]",tt=e=>typeof e=="function",Nt=e=>typeof e=="string",Ma=e=>typeof e=="symbol",kt=e=>e!==null&&typeof e=="object",F8=e=>(kt(e)||tt(e))&&tt(e.then)&&tt(e.catch),U8=Object.prototype.toString,Wl=e=>U8.call(e),Sh=e=>Wl(e).slice(8,-1),j8=e=>Wl(e)==="[object Object]",E7=e=>Nt(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,As=x7(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),Ql=e=>{const t=Object.create(null);return r=>t[r]||(t[r]=e(r))},Eh=/-(\w)/g,wr=Ql(e=>e.replace(Eh,(t,r)=>r?r.toUpperCase():"")),Lh=/\B([A-Z])/g,ho=Ql(e=>e.replace(Lh,"-$1").toLowerCase()),Xl=Ql(e=>e.charAt(0).toUpperCase()+e.slice(1)),Hs=Ql(e=>e?`on${Xl(e)}`:""),ro=(e,t)=>!Object.is(e,t),Bs=(e,t)=>{for(let r=0;r{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,value:r})},N0=e=>{const t=parseFloat(e);return isNaN(t)?e:t},Ah=e=>{const t=Nt(e)?Number(e):NaN;return isNaN(t)?e:t};let X5;const Z0=()=>X5||(X5=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function Fe(e){if(Ye(e)){const t={};for(let r=0;r{if(r){const n=r.split(Bh);n.length>1&&(t[n[0].trim()]=n[1].trim())}}),t}function ie(e){let t="";if(Nt(e))t=e;else if(Ye(e))for(let r=0;rNt(e)?e:e==null?"":Ye(e)||kt(e)&&(e.toString===U8||!tt(e.toString))?JSON.stringify(e,G8,2):String(e),G8=(e,t)=>t&&t.__v_isRef?G8(e,t.value):jo(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((r,[n,o],a)=>(r[O2(n,a)+" =>"]=o,r),{})}:z8(t)?{[`Set(${t.size})`]:[...t.values()].map(r=>O2(r))}:Ma(t)?O2(t):kt(t)&&!Ye(t)&&!j8(t)?String(t):t,O2=(e,t="")=>{var r;return Ma(e)?`Symbol(${(r=e.description)!=null?r:t})`:e};let B1;class Ih{constructor(t=!1){this.detached=t,this._active=!0,this.effects=[],this.cleanups=[],this.parent=B1,!t&&B1&&(this.index=(B1.scopes||(B1.scopes=[])).push(this)-1)}get active(){return this._active}run(t){if(this._active){const r=B1;try{return B1=this,t()}finally{B1=r}}}on(){B1=this}off(){B1=this.parent}stop(t){if(this._active){let r,n;for(r=0,n=this.effects.length;r{const t=new Set(e);return t.w=0,t.n=0,t},q8=e=>(e.w&xn)>0,W8=e=>(e.n&xn)>0,Zh=({deps:e})=>{if(e.length)for(let t=0;t{const{deps:t}=e;if(t.length){let r=0;for(let n=0;n{(c==="length"||!Ma(c)&&c>=l)&&s.push(u)})}else switch(r!==void 0&&s.push(i.get(r)),t){case"add":Ye(e)?E7(r)&&s.push(i.get("length")):(s.push(i.get(Jn)),jo(e)&&s.push(i.get(R0)));break;case"delete":Ye(e)||(s.push(i.get(Jn)),jo(e)&&s.push(i.get(R0)));break;case"set":jo(e)&&s.push(i.get(Jn));break}if(s.length===1)s[0]&&z0(s[0]);else{const l=[];for(const u of s)u&&l.push(...u);z0(L7(l))}}function z0(e,t){const r=Ye(e)?e:[...e];for(const n of r)n.computed&&e3(n);for(const n of r)n.computed||e3(n)}function e3(e,t){(e!==Q1||e.allowRecurse)&&(e.scheduler?e.scheduler():e.run())}function Rh(e,t){var r;return(r=tl.get(e))==null?void 0:r.get(t)}const zh=x7("__proto__,__v_isRef,__isVue"),J8=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(Ma)),t3=Fh();function Fh(){const e={};return["includes","indexOf","lastIndexOf"].forEach(t=>{e[t]=function(...r){const n=ft(this);for(let a=0,i=this.length;a{e[t]=function(...r){Sa();const n=ft(this)[t].apply(this,r);return Ea(),n}}),e}function Uh(e){const t=ft(this);return S1(t,"has",e),t.hasOwnProperty(e)}class ec{constructor(t=!1,r=!1){this._isReadonly=t,this._shallow=r}get(t,r,n){const o=this._isReadonly,a=this._shallow;if(r==="__v_isReactive")return!o;if(r==="__v_isReadonly")return o;if(r==="__v_isShallow")return a;if(r==="__v_raw")return n===(o?a?nv:oc:a?nc:rc).get(t)||Object.getPrototypeOf(t)===Object.getPrototypeOf(n)?t:void 0;const i=Ye(t);if(!o){if(i&&ht(t3,r))return Reflect.get(t3,r,n);if(r==="hasOwnProperty")return Uh}const s=Reflect.get(t,r,n);return(Ma(r)?J8.has(r):zh(r))||(o||S1(t,"get",r),a)?s:Pt(s)?i&&E7(r)?s:s.value:kt(s)?o?ic(s):nr(s):s}}class tc extends ec{constructor(t=!1){super(!1,t)}set(t,r,n,o){let a=t[r];if(!this._shallow){const l=no(a);if(!rl(n)&&!no(n)&&(a=ft(a),n=ft(n)),!Ye(t)&&Pt(a)&&!Pt(n))return l?!1:(a.value=n,!0)}const i=Ye(t)&&E7(r)?Number(r)e,Jl=e=>Reflect.getPrototypeOf(e);function ss(e,t,r=!1,n=!1){e=e.__v_raw;const o=ft(e),a=ft(t);r||(ro(t,a)&&S1(o,"get",t),S1(o,"get",a));const{has:i}=Jl(o),s=n?H7:r?D7:Li;if(i.call(o,t))return s(e.get(t));if(i.call(o,a))return s(e.get(a));e!==o&&e.get(t)}function ls(e,t=!1){const r=this.__v_raw,n=ft(r),o=ft(e);return t||(ro(e,o)&&S1(n,"has",e),S1(n,"has",o)),e===o?r.has(e):r.has(e)||r.has(o)}function us(e,t=!1){return e=e.__v_raw,!t&&S1(ft(e),"iterate",Jn),Reflect.get(e,"size",e)}function r3(e){e=ft(e);const t=ft(this);return Jl(t).has.call(t,e)||(t.add(e),zr(t,"add",e,e)),this}function n3(e,t){t=ft(t);const r=ft(this),{has:n,get:o}=Jl(r);let a=n.call(r,e);a||(e=ft(e),a=n.call(r,e));const i=o.call(r,e);return r.set(e,t),a?ro(t,i)&&zr(r,"set",e,t):zr(r,"add",e,t),this}function o3(e){const t=ft(this),{has:r,get:n}=Jl(t);let o=r.call(t,e);o||(e=ft(e),o=r.call(t,e)),n&&n.call(t,e);const a=t.delete(e);return o&&zr(t,"delete",e,void 0),a}function a3(){const e=ft(this),t=e.size!==0,r=e.clear();return t&&zr(e,"clear",void 0,void 0),r}function cs(e,t){return function(n,o){const a=this,i=a.__v_raw,s=ft(i),l=t?H7:e?D7:Li;return!e&&S1(s,"iterate",Jn),i.forEach((u,c)=>n.call(o,l(u),l(c),a))}}function ds(e,t,r){return function(...n){const o=this.__v_raw,a=ft(o),i=jo(a),s=e==="entries"||e===Symbol.iterator&&i,l=e==="keys"&&i,u=o[e](...n),c=r?H7:t?D7:Li;return!t&&S1(a,"iterate",l?R0:Jn),{next(){const{value:d,done:f}=u.next();return f?{value:d,done:f}:{value:s?[c(d[0]),c(d[1])]:c(d),done:f}},[Symbol.iterator](){return this}}}}function rn(e){return function(...t){return e==="delete"?!1:e==="clear"?void 0:this}}function qh(){const e={get(a){return ss(this,a)},get size(){return us(this)},has:ls,add:r3,set:n3,delete:o3,clear:a3,forEach:cs(!1,!1)},t={get(a){return ss(this,a,!1,!0)},get size(){return us(this)},has:ls,add:r3,set:n3,delete:o3,clear:a3,forEach:cs(!1,!0)},r={get(a){return ss(this,a,!0)},get size(){return us(this,!0)},has(a){return ls.call(this,a,!0)},add:rn("add"),set:rn("set"),delete:rn("delete"),clear:rn("clear"),forEach:cs(!0,!1)},n={get(a){return ss(this,a,!0,!0)},get size(){return us(this,!0)},has(a){return ls.call(this,a,!0)},add:rn("add"),set:rn("set"),delete:rn("delete"),clear:rn("clear"),forEach:cs(!0,!0)};return["keys","values","entries",Symbol.iterator].forEach(a=>{e[a]=ds(a,!1,!1),r[a]=ds(a,!0,!1),t[a]=ds(a,!1,!0),n[a]=ds(a,!0,!0)}),[e,r,t,n]}const[Wh,Qh,Xh,Jh]=qh();function B7(e,t){const r=t?e?Jh:Xh:e?Qh:Wh;return(n,o,a)=>o==="__v_isReactive"?!e:o==="__v_isReadonly"?e:o==="__v_raw"?n:Reflect.get(ht(r,o)&&o in n?r:n,o,a)}const ev={get:B7(!1,!1)},tv={get:B7(!1,!0)},rv={get:B7(!0,!1)},rc=new WeakMap,nc=new WeakMap,oc=new WeakMap,nv=new WeakMap;function ov(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function av(e){return e.__v_skip||!Object.isExtensible(e)?0:ov(Sh(e))}function nr(e){return no(e)?e:T7(e,!1,Yh,ev,rc)}function ac(e){return T7(e,!1,Kh,tv,nc)}function ic(e){return T7(e,!0,Gh,rv,oc)}function T7(e,t,r,n,o){if(!kt(e)||e.__v_raw&&!(t&&e.__v_isReactive))return e;const a=o.get(e);if(a)return a;const i=av(e);if(i===0)return e;const s=new Proxy(e,i===2?n:r);return o.set(e,s),s}function Yo(e){return no(e)?Yo(e.__v_raw):!!(e&&e.__v_isReactive)}function no(e){return!!(e&&e.__v_isReadonly)}function rl(e){return!!(e&&e.__v_isShallow)}function sc(e){return Yo(e)||no(e)}function ft(e){const t=e&&e.__v_raw;return t?ft(t):e}function lc(e){return el(e,"__v_skip",!0),e}const Li=e=>kt(e)?nr(e):e,D7=e=>kt(e)?ic(e):e;function uc(e){_n&&Q1&&(e=ft(e),X8(e.dep||(e.dep=L7())))}function cc(e,t){e=ft(e);const r=e.dep;r&&z0(r)}function Pt(e){return!!(e&&e.__v_isRef===!0)}function Y(e){return dc(e,!1)}function iv(e){return dc(e,!0)}function dc(e,t){return Pt(e)?e:new sv(e,t)}class sv{constructor(t,r){this.__v_isShallow=r,this.dep=void 0,this.__v_isRef=!0,this._rawValue=r?t:ft(t),this._value=r?t:Li(t)}get value(){return uc(this),this._value}set value(t){const r=this.__v_isShallow||rl(t)||no(t);t=r?t:ft(t),ro(t,this._rawValue)&&(this._rawValue=t,this._value=r?t:Li(t),cc(this))}}function B(e){return Pt(e)?e.value:e}const lv={get:(e,t,r)=>B(Reflect.get(e,t,r)),set:(e,t,r,n)=>{const o=e[t];return Pt(o)&&!Pt(r)?(o.value=r,!0):Reflect.set(e,t,r,n)}};function fc(e){return Yo(e)?e:new Proxy(e,lv)}function pc(e){const t=Ye(e)?new Array(e.length):{};for(const r in e)t[r]=hc(e,r);return t}class uv{constructor(t,r,n){this._object=t,this._key=r,this._defaultValue=n,this.__v_isRef=!0}get value(){const t=this._object[this._key];return t===void 0?this._defaultValue:t}set value(t){this._object[this._key]=t}get dep(){return Rh(ft(this._object),this._key)}}class cv{constructor(t){this._getter=t,this.__v_isRef=!0,this.__v_isReadonly=!0}get value(){return this._getter()}}function Ts(e,t,r){return Pt(e)?e:tt(e)?new cv(e):kt(e)&&arguments.length>1?hc(e,t,r):Y(e)}function hc(e,t,r){const n=e[t];return Pt(n)?n:new uv(e,t,r)}class dv{constructor(t,r,n,o){this._setter=r,this.dep=void 0,this.__v_isRef=!0,this.__v_isReadonly=!1,this._dirty=!0,this.effect=new A7(t,()=>{this._dirty||(this._dirty=!0,cc(this))}),this.effect.computed=this,this.effect.active=this._cacheable=!o,this.__v_isReadonly=n}get value(){const t=ft(this);return uc(t),(t._dirty||!t._cacheable)&&(t._dirty=!1,t._value=t.effect.run()),t._value}set value(t){this._setter(t)}}function fv(e,t,r=!1){let n,o;const a=tt(e);return a?(n=e,o=J1):(n=e.get,o=e.set),new dv(n,o,a||!o,r)}function kn(e,t,r,n){let o;try{o=n?e(...n):e()}catch(a){e2(a,t,r)}return o}function U1(e,t,r,n){if(tt(e)){const a=kn(e,t,r,n);return a&&F8(a)&&a.catch(i=>{e2(i,t,r)}),a}const o=[];for(let a=0;a>>1,o=i1[n],a=Hi(o);amr&&i1.splice(t,1)}function mv(e){Ye(e)?Go.push(...e):(!Vr||!Vr.includes(e,e.allowRecurse?Fn+1:Fn))&&Go.push(e),mc()}function i3(e,t,r=Ai?mr+1:0){for(;rHi(r)-Hi(n)),Fn=0;Fne.id==null?1/0:e.id,gv=(e,t)=>{const r=Hi(e)-Hi(t);if(r===0){if(e.pre&&!t.pre)return-1;if(t.pre&&!e.pre)return 1}return r};function Cc(e){F0=!1,Ai=!0,i1.sort(gv);const t=J1;try{for(mr=0;mrNt(p)?p.trim():p)),d&&(o=r.map(N0))}let s,l=n[s=Hs(t)]||n[s=Hs(wr(t))];!l&&a&&(l=n[s=Hs(ho(t))]),l&&U1(l,e,6,o);const u=n[s+"Once"];if(u){if(!e.emitted)e.emitted={};else if(e.emitted[s])return;e.emitted[s]=!0,U1(u,e,6,o)}}function yc(e,t,r=!1){const n=t.emitsCache,o=n.get(e);if(o!==void 0)return o;const a=e.emits;let i={},s=!1;if(!tt(e)){const l=u=>{const c=yc(u,t,!0);c&&(s=!0,jt(i,c))};!r&&t.mixins.length&&t.mixins.forEach(l),e.extends&&l(e.extends),e.mixins&&e.mixins.forEach(l)}return!a&&!s?(kt(e)&&n.set(e,null),null):(Ye(a)?a.forEach(l=>i[l]=null):jt(i,a),kt(e)&&n.set(e,i),i)}function t2(e,t){return!e||!ql(t)?!1:(t=t.slice(2).replace(/Once$/,""),ht(e,t[0].toLowerCase()+t.slice(1))||ht(e,ho(t))||ht(e,t))}let r1=null,r2=null;function nl(e){const t=r1;return r1=e,r2=e&&e.type.__scopeId||null,t}function Je(e){r2=e}function et(){r2=null}function A(e,t=r1,r){if(!t||e._n)return e;const n=(...o)=>{n._d&&C3(-1);const a=nl(t);let i;try{i=e(...o)}finally{nl(a),n._d&&C3(1)}return i};return n._n=!0,n._c=!0,n._d=!0,n}function V2(e){const{type:t,vnode:r,proxy:n,withProxy:o,props:a,propsOptions:[i],slots:s,attrs:l,emit:u,render:c,renderCache:d,data:f,setupState:p,ctx:v,inheritAttrs:y}=e;let b,g;const C=nl(e);try{if(r.shapeFlag&4){const x=o||n,E=x;b=vr(c.call(E,x,d,a,p,f,v)),g=l}else{const x=t;b=vr(x.length>1?x(a,{attrs:l,slots:s,emit:u}):x(a,null)),g=t.props?l:yv(l)}}catch(x){vi.length=0,e2(x,e,1),b=R(O1)}let w=b;if(g&&y!==!1){const x=Object.keys(g),{shapeFlag:E}=w;x.length&&E&7&&(i&&x.some(M7)&&(g=bv(g,i)),w=Ur(w,g))}return r.dirs&&(w=Ur(w),w.dirs=w.dirs?w.dirs.concat(r.dirs):r.dirs),r.transition&&(w.transition=r.transition),b=w,nl(C),b}const yv=e=>{let t;for(const r in e)(r==="class"||r==="style"||ql(r))&&((t||(t={}))[r]=e[r]);return t},bv=(e,t)=>{const r={};for(const n in e)(!M7(n)||!(n.slice(9)in t))&&(r[n]=e[n]);return r};function wv(e,t,r){const{props:n,children:o,component:a}=e,{props:i,children:s,patchFlag:l}=t,u=a.emitsOptions;if(t.dirs||t.transition)return!0;if(r&&l>=0){if(l&1024)return!0;if(l&16)return n?s3(n,i,u):!!i;if(l&8){const c=t.dynamicProps;for(let d=0;de.__isSuspense;function Sv(e,t){t&&t.pendingBranch?Ye(e)?t.effects.push(...e):t.effects.push(e):mv(e)}function n2(e,t){return o2(e,null,t)}function Ev(e,t){return o2(e,null,{flush:"post"})}const fs={};function Ae(e,t,r){return o2(e,t,r)}function o2(e,t,{immediate:r,deep:n,flush:o,onTrack:a,onTrigger:i}=Et){var s;const l=K8()===((s=Xt)==null?void 0:s.scope)?Xt:null;let u,c=!1,d=!1;if(Pt(e)?(u=()=>e.value,c=rl(e)):Yo(e)?(u=()=>e,n=!0):Ye(e)?(d=!0,c=e.some(x=>Yo(x)||rl(x)),u=()=>e.map(x=>{if(Pt(x))return x.value;if(Yo(x))return Gn(x);if(tt(x))return kn(x,l,2)})):tt(e)?t?u=()=>kn(e,l,2):u=()=>{if(!(l&&l.isUnmounted))return f&&f(),U1(e,l,3,[p])}:u=J1,t&&n){const x=u;u=()=>Gn(x())}let f,p=x=>{f=C.onStop=()=>{kn(x,l,4),f=C.onStop=void 0}},v;if(Oi)if(p=J1,t?r&&U1(t,l,3,[u(),d?[]:void 0,p]):u(),o==="sync"){const x=vm();v=x.__watcherHandles||(x.__watcherHandles=[])}else return J1;let y=d?new Array(e.length).fill(fs):fs;const b=()=>{if(C.active)if(t){const x=C.run();(n||c||(d?x.some((E,I)=>ro(E,y[I])):ro(x,y)))&&(f&&f(),U1(t,l,3,[x,y===fs?void 0:d&&y[0]===fs?[]:y,p]),y=x)}else C.run()};b.allowRecurse=!!t;let g;o==="sync"?g=b:o==="post"?g=()=>_1(b,l&&l.suspense):(b.pre=!0,l&&(b.id=l.uid),g=()=>V7(b));const C=new A7(u,g);t?r?b():y=C.run():o==="post"?_1(C.run.bind(C),l&&l.suspense):C.run();const w=()=>{C.stop(),l&&l.scope&&S7(l.scope.effects,C)};return v&&v.push(w),w}function Lv(e,t,r){const n=this.proxy,o=Nt(e)?e.includes(".")?wc(n,e):()=>n[e]:e.bind(n,n);let a;tt(t)?a=t:(a=t.handler,r=t);const i=Xt;sa(this);const s=o2(o,a.bind(n),r);return i?sa(i):eo(),s}function wc(e,t){const r=t.split(".");return()=>{let n=e;for(let o=0;o{Gn(r,t)});else if(j8(e))for(const r in e)Gn(e[r],t);return e}function ia(e,t){const r=r1;if(r===null)return e;const n=u2(r)||r.proxy,o=e.dirs||(e.dirs=[]);for(let a=0;a{e.isMounted=!0}),Sr(()=>{e.isUnmounting=!0}),e}const I1=[Function,Array],kc={mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:I1,onEnter:I1,onAfterEnter:I1,onEnterCancelled:I1,onBeforeLeave:I1,onLeave:I1,onAfterLeave:I1,onLeaveCancelled:I1,onBeforeAppear:I1,onAppear:I1,onAfterAppear:I1,onAppearCancelled:I1},Av={name:"BaseTransition",props:kc,setup(e,{slots:t}){const r=Gi(),n=_c();let o;return()=>{const a=t.default&&N7(t.default(),!0);if(!a||!a.length)return;let i=a[0];if(a.length>1){for(const y of a)if(y.type!==O1){i=y;break}}const s=ft(e),{mode:l}=s;if(n.isLeaving)return I2(i);const u=u3(i);if(!u)return I2(i);const c=Bi(u,s,n,r);Ti(u,c);const d=r.subTree,f=d&&u3(d);let p=!1;const{getTransitionKey:v}=u.type;if(v){const y=v();o===void 0?o=y:y!==o&&(o=y,p=!0)}if(f&&f.type!==O1&&(!Un(u,f)||p)){const y=Bi(f,s,n,r);if(Ti(f,y),l==="out-in")return n.isLeaving=!0,y.afterLeave=()=>{n.isLeaving=!1,r.update.active!==!1&&r.update()},I2(i);l==="in-out"&&u.type!==O1&&(y.delayLeave=(b,g,C)=>{const w=xc(n,f);w[String(f.key)]=f,b[pn]=()=>{g(),b[pn]=void 0,delete c.delayedLeave},c.delayedLeave=C})}return i}}},Hv=Av;function xc(e,t){const{leavingVNodes:r}=e;let n=r.get(t.type);return n||(n=Object.create(null),r.set(t.type,n)),n}function Bi(e,t,r,n){const{appear:o,mode:a,persisted:i=!1,onBeforeEnter:s,onEnter:l,onAfterEnter:u,onEnterCancelled:c,onBeforeLeave:d,onLeave:f,onAfterLeave:p,onLeaveCancelled:v,onBeforeAppear:y,onAppear:b,onAfterAppear:g,onAppearCancelled:C}=t,w=String(e.key),x=xc(r,e),E=(N,U)=>{N&&U1(N,n,9,U)},I=(N,U)=>{const O=U[1];E(N,U),Ye(N)?N.every(V=>V.length<=1)&&O():N.length<=1&&O()},T={mode:a,persisted:i,beforeEnter(N){let U=s;if(!r.isMounted)if(o)U=y||s;else return;N[pn]&&N[pn](!0);const O=x[w];O&&Un(e,O)&&O.el[pn]&&O.el[pn](),E(U,[N])},enter(N){let U=l,O=u,V=c;if(!r.isMounted)if(o)U=b||l,O=g||u,V=C||c;else return;let D=!1;const F=N[ps]=ee=>{D||(D=!0,ee?E(V,[N]):E(O,[N]),T.delayedLeave&&T.delayedLeave(),N[ps]=void 0)};U?I(U,[N,F]):F()},leave(N,U){const O=String(e.key);if(N[ps]&&N[ps](!0),r.isUnmounting)return U();E(d,[N]);let V=!1;const D=N[pn]=F=>{V||(V=!0,U(),F?E(v,[N]):E(p,[N]),N[pn]=void 0,x[O]===e&&delete x[O])};x[O]=e,f?I(f,[N,D]):D()},clone(N){return Bi(N,t,r,n)}};return T}function I2(e){if(a2(e))return e=Ur(e),e.children=null,e}function u3(e){return a2(e)?e.children?e.children[0]:void 0:e}function Ti(e,t){e.shapeFlag&6&&e.component?Ti(e.component.subTree,t):e.shapeFlag&128?(e.ssContent.transition=t.clone(e.ssContent),e.ssFallback.transition=t.clone(e.ssFallback)):e.transition=t}function N7(e,t=!1,r){let n=[],o=0;for(let a=0;a1)for(let a=0;ajt({name:e.name},t,{setup:e}))():e}const fi=e=>!!e.type.__asyncLoader,a2=e=>e.type.__isKeepAlive;function Bv(e,t){Mc(e,"a",t)}function Tv(e,t){Mc(e,"da",t)}function Mc(e,t,r=Xt){const n=e.__wdc||(e.__wdc=()=>{let o=r;for(;o;){if(o.isDeactivated)return;o=o.parent}return e()});if(i2(t,n,r),r){let o=r.parent;for(;o&&o.parent;)a2(o.parent.vnode)&&Dv(n,t,r,o),o=o.parent}}function Dv(e,t,r,n){const o=i2(t,e,n,!0);g1(()=>{S7(n[t],o)},r)}function i2(e,t,r=Xt,n=!1){if(r){const o=r[e]||(r[e]=[]),a=t.__weh||(t.__weh=(...i)=>{if(r.isUnmounted)return;Sa(),sa(r);const s=U1(t,r,e,i);return eo(),Ea(),s});return n?o.unshift(a):o.push(a),a}}const Wr=e=>(t,r=Xt)=>(!Oi||e==="sp")&&i2(e,(...n)=>t(...n),r),Ov=Wr("bm"),wt=Wr("m"),Vv=Wr("bu"),Sc=Wr("u"),Sr=Wr("bum"),g1=Wr("um"),Iv=Wr("sp"),Pv=Wr("rtg"),Nv=Wr("rtc");function Zv(e,t=Xt){i2("ec",e,t)}function rt(e,t,r,n){let o;const a=r&&r[n];if(Ye(e)||Nt(e)){o=new Array(e.length);for(let i=0,s=e.length;it(i,s,void 0,a&&a[s]));else{const i=Object.keys(e);o=new Array(i.length);for(let s=0,l=i.length;s{const a=n.fn(...o);return a&&(a.key=n.key),a}:n.fn)}return e}function Q(e,t,r={},n,o){if(r1.isCE||r1.parent&&fi(r1.parent)&&r1.parent.isCE)return t!=="default"&&(r.name=t),R("slot",r,n&&n());let a=e[t];a&&a._c&&(a._d=!1),h();const i=a&&Ec(a(r)),s=J(Ee,{key:r.key||i&&i.key||`_${t}`},i||(n?n():[]),i&&e._===1?64:-2);return!o&&s.scopeId&&(s.slotScopeIds=[s.scopeId+"-s"]),a&&a._c&&(a._d=!0),s}function Ec(e){return e.some(t=>il(t)?!(t.type===O1||t.type===Ee&&!Ec(t.children)):!0)?e:null}function U0(e,t){const r={};for(const n in e)r[t&&/[A-Z]/.test(n)?`on:${n}`:Hs(n)]=e[n];return r}const j0=e=>e?Zc(e)?u2(e)||e.proxy:j0(e.parent):null,pi=jt(Object.create(null),{$:e=>e,$el:e=>e.vnode.el,$data:e=>e.data,$props:e=>e.props,$attrs:e=>e.attrs,$slots:e=>e.slots,$refs:e=>e.refs,$parent:e=>j0(e.parent),$root:e=>j0(e.root),$emit:e=>e.emit,$options:e=>Z7(e),$forceUpdate:e=>e.f||(e.f=()=>V7(e.update)),$nextTick:e=>e.n||(e.n=Ft.bind(e.proxy)),$watch:e=>Lv.bind(e)}),P2=(e,t)=>e!==Et&&!e.__isScriptSetup&&ht(e,t),$v={get({_:e},t){const{ctx:r,setupState:n,data:o,props:a,accessCache:i,type:s,appContext:l}=e;let u;if(t[0]!=="$"){const p=i[t];if(p!==void 0)switch(p){case 1:return n[t];case 2:return o[t];case 4:return r[t];case 3:return a[t]}else{if(P2(n,t))return i[t]=1,n[t];if(o!==Et&&ht(o,t))return i[t]=2,o[t];if((u=e.propsOptions[0])&&ht(u,t))return i[t]=3,a[t];if(r!==Et&&ht(r,t))return i[t]=4,r[t];Y0&&(i[t]=0)}}const c=pi[t];let d,f;if(c)return t==="$attrs"&&S1(e,"get",t),c(e);if((d=s.__cssModules)&&(d=d[t]))return d;if(r!==Et&&ht(r,t))return i[t]=4,r[t];if(f=l.config.globalProperties,ht(f,t))return f[t]},set({_:e},t,r){const{data:n,setupState:o,ctx:a}=e;return P2(o,t)?(o[t]=r,!0):n!==Et&&ht(n,t)?(n[t]=r,!0):ht(e.props,t)||t[0]==="$"&&t.slice(1)in e?!1:(a[t]=r,!0)},has({_:{data:e,setupState:t,accessCache:r,ctx:n,appContext:o,propsOptions:a}},i){let s;return!!r[i]||e!==Et&&ht(e,i)||P2(t,i)||(s=a[0])&&ht(s,i)||ht(n,i)||ht(pi,i)||ht(o.config.globalProperties,i)},defineProperty(e,t,r){return r.get!=null?e._.accessCache[t]=0:ht(r,"value")&&this.set(e,t,r.value,null),Reflect.defineProperty(e,t,r)}};function Zt(){return Lc().slots}function or(){return Lc().attrs}function Lc(){const e=Gi();return e.setupContext||(e.setupContext=Rc(e))}function c3(e){return Ye(e)?e.reduce((t,r)=>(t[r]=null,t),{}):e}let Y0=!0;function Rv(e){const t=Z7(e),r=e.proxy,n=e.ctx;Y0=!1,t.beforeCreate&&d3(t.beforeCreate,e,"bc");const{data:o,computed:a,methods:i,watch:s,provide:l,inject:u,created:c,beforeMount:d,mounted:f,beforeUpdate:p,updated:v,activated:y,deactivated:b,beforeDestroy:g,beforeUnmount:C,destroyed:w,unmounted:x,render:E,renderTracked:I,renderTriggered:T,errorCaptured:N,serverPrefetch:U,expose:O,inheritAttrs:V,components:D,directives:F,filters:ee}=t;if(u&&zv(u,n,null),i)for(const te in i){const ue=i[te];tt(ue)&&(n[te]=ue.bind(r))}if(o){const te=o.call(r,r);kt(te)&&(e.data=nr(te))}if(Y0=!0,a)for(const te in a){const ue=a[te],ke=tt(ue)?ue.bind(r,r):tt(ue.get)?ue.get.bind(r,r):J1,ae=!tt(ue)&&tt(ue.set)?ue.set.bind(r):J1,xe=_({get:ke,set:ae});Object.defineProperty(n,te,{enumerable:!0,configurable:!0,get:()=>xe.value,set:ge=>xe.value=ge})}if(s)for(const te in s)Ac(s[te],n,r,te);if(l){const te=tt(l)?l.call(r):l;Reflect.ownKeys(te).forEach(ue=>{er(ue,te[ue])})}c&&d3(c,e,"c");function q(te,ue){Ye(ue)?ue.forEach(ke=>te(ke.bind(r))):ue&&te(ue.bind(r))}if(q(Ov,d),q(wt,f),q(Vv,p),q(Sc,v),q(Bv,y),q(Tv,b),q(Zv,N),q(Nv,I),q(Pv,T),q(Sr,C),q(g1,x),q(Iv,U),Ye(O))if(O.length){const te=e.exposed||(e.exposed={});O.forEach(ue=>{Object.defineProperty(te,ue,{get:()=>r[ue],set:ke=>r[ue]=ke})})}else e.exposed||(e.exposed={});E&&e.render===J1&&(e.render=E),V!=null&&(e.inheritAttrs=V),D&&(e.components=D),F&&(e.directives=F)}function zv(e,t,r=J1){Ye(e)&&(e=G0(e));for(const n in e){const o=e[n];let a;kt(o)?"default"in o?a=qt(o.from||n,o.default,!0):a=qt(o.from||n):a=qt(o),Pt(a)?Object.defineProperty(t,n,{enumerable:!0,configurable:!0,get:()=>a.value,set:i=>a.value=i}):t[n]=a}}function d3(e,t,r){U1(Ye(e)?e.map(n=>n.bind(t.proxy)):e.bind(t.proxy),t,r)}function Ac(e,t,r,n){const o=n.includes(".")?wc(r,n):()=>r[n];if(Nt(e)){const a=t[e];tt(a)&&Ae(o,a)}else if(tt(e))Ae(o,e.bind(r));else if(kt(e))if(Ye(e))e.forEach(a=>Ac(a,t,r,n));else{const a=tt(e.handler)?e.handler.bind(r):t[e.handler];tt(a)&&Ae(o,a,e)}}function Z7(e){const t=e.type,{mixins:r,extends:n}=t,{mixins:o,optionsCache:a,config:{optionMergeStrategies:i}}=e.appContext,s=a.get(t);let l;return s?l=s:!o.length&&!r&&!n?l=t:(l={},o.length&&o.forEach(u=>ol(l,u,i,!0)),ol(l,t,i)),kt(t)&&a.set(t,l),l}function ol(e,t,r,n=!1){const{mixins:o,extends:a}=t;a&&ol(e,a,r,!0),o&&o.forEach(i=>ol(e,i,r,!0));for(const i in t)if(!(n&&i==="expose")){const s=Fv[i]||r&&r[i];e[i]=s?s(e[i],t[i]):t[i]}return e}const Fv={data:f3,props:p3,emits:p3,methods:Ja,computed:Ja,beforeCreate:c1,created:c1,beforeMount:c1,mounted:c1,beforeUpdate:c1,updated:c1,beforeDestroy:c1,beforeUnmount:c1,destroyed:c1,unmounted:c1,activated:c1,deactivated:c1,errorCaptured:c1,serverPrefetch:c1,components:Ja,directives:Ja,watch:jv,provide:f3,inject:Uv};function f3(e,t){return t?e?function(){return jt(tt(e)?e.call(this,this):e,tt(t)?t.call(this,this):t)}:t:e}function Uv(e,t){return Ja(G0(e),G0(t))}function G0(e){if(Ye(e)){const t={};for(let r=0;r1)return r&&tt(t)?t.call(n&&n.proxy):t}}function Kv(e,t,r,n=!1){const o={},a={};el(a,l2,1),e.propsDefaults=Object.create(null),Bc(e,t,o,a);for(const i in e.propsOptions[0])i in o||(o[i]=void 0);r?e.props=n?o:ac(o):e.type.props?e.props=o:e.props=a,e.attrs=a}function qv(e,t,r,n){const{props:o,attrs:a,vnode:{patchFlag:i}}=e,s=ft(o),[l]=e.propsOptions;let u=!1;if((n||i>0)&&!(i&16)){if(i&8){const c=e.vnode.dynamicProps;for(let d=0;d{l=!0;const[f,p]=Tc(d,t,!0);jt(i,f),p&&s.push(...p)};!r&&t.mixins.length&&t.mixins.forEach(c),e.extends&&c(e.extends),e.mixins&&e.mixins.forEach(c)}if(!a&&!l)return kt(e)&&n.set(e,Uo),Uo;if(Ye(a))for(let c=0;c-1,p[1]=y<0||v-1||ht(p,"default"))&&s.push(d)}}}const u=[i,s];return kt(e)&&n.set(e,u),u}function h3(e){return e[0]!=="$"}function v3(e){const t=e&&e.toString().match(/^\s*(function|class) (\w+)/);return t?t[2]:e===null?"null":""}function m3(e,t){return v3(e)===v3(t)}function g3(e,t){return Ye(t)?t.findIndex(r=>m3(r,e)):tt(t)&&m3(t,e)?0:-1}const Dc=e=>e[0]==="_"||e==="$stable",$7=e=>Ye(e)?e.map(vr):[vr(e)],Wv=(e,t,r)=>{if(t._n)return t;const n=A((...o)=>$7(t(...o)),r);return n._c=!1,n},Oc=(e,t,r)=>{const n=e._ctx;for(const o in e){if(Dc(o))continue;const a=e[o];if(tt(a))t[o]=Wv(o,a,n);else if(a!=null){const i=$7(a);t[o]=()=>i}}},Vc=(e,t)=>{const r=$7(t);e.slots.default=()=>r},Qv=(e,t)=>{if(e.vnode.shapeFlag&32){const r=t._;r?(e.slots=ft(t),el(t,"_",r)):Oc(t,e.slots={})}else e.slots={},t&&Vc(e,t);el(e.slots,l2,1)},Xv=(e,t,r)=>{const{vnode:n,slots:o}=e;let a=!0,i=Et;if(n.shapeFlag&32){const s=t._;s?r&&s===1?a=!1:(jt(o,t),!r&&s===1&&delete o._):(a=!t.$stable,Oc(t,o)),i=t}else t&&(Vc(e,t),i={default:1});if(a)for(const s in o)!Dc(s)&&i[s]==null&&delete o[s]};function q0(e,t,r,n,o=!1){if(Ye(e)){e.forEach((f,p)=>q0(f,t&&(Ye(t)?t[p]:t),r,n,o));return}if(fi(n)&&!o)return;const a=n.shapeFlag&4?u2(n.component)||n.component.proxy:n.el,i=o?null:a,{i:s,r:l}=e,u=t&&t.r,c=s.refs===Et?s.refs={}:s.refs,d=s.setupState;if(u!=null&&u!==l&&(Nt(u)?(c[u]=null,ht(d,u)&&(d[u]=null)):Pt(u)&&(u.value=null)),tt(l))kn(l,s,12,[i,c]);else{const f=Nt(l),p=Pt(l);if(f||p){const v=()=>{if(e.f){const y=f?ht(d,l)?d[l]:c[l]:l.value;o?Ye(y)&&S7(y,a):Ye(y)?y.includes(a)||y.push(a):f?(c[l]=[a],ht(d,l)&&(d[l]=c[l])):(l.value=[a],e.k&&(c[e.k]=l.value))}else f?(c[l]=i,ht(d,l)&&(d[l]=i)):p&&(l.value=i,e.k&&(c[e.k]=i))};i?(v.id=-1,_1(v,r)):v()}}}const _1=Sv;function Jv(e){return em(e)}function em(e,t){const r=Z0();r.__VUE__=!0;const{insert:n,remove:o,patchProp:a,createElement:i,createText:s,createComment:l,setText:u,setElementText:c,parentNode:d,nextSibling:f,setScopeId:p=J1,insertStaticContent:v}=e,y=(S,L,$,K=null,re=null,le=null,ye=!1,me=null,Ce=!!L.dynamicChildren)=>{if(S===L)return;S&&!Un(S,L)&&(K=W(S),ge(S,re,le,!0),S=null),L.patchFlag===-2&&(Ce=!1,L.dynamicChildren=null);const{type:ce,ref:Be,shapeFlag:Se}=L;switch(ce){case s2:b(S,L,$,K);break;case O1:g(S,L,$,K);break;case hi:S==null&&C(L,$,K,ye);break;case Ee:D(S,L,$,K,re,le,ye,me,Ce);break;default:Se&1?E(S,L,$,K,re,le,ye,me,Ce):Se&6?F(S,L,$,K,re,le,ye,me,Ce):(Se&64||Se&128)&&ce.process(S,L,$,K,re,le,ye,me,Ce,j)}Be!=null&&re&&q0(Be,S&&S.ref,le,L||S,!L)},b=(S,L,$,K)=>{if(S==null)n(L.el=s(L.children),$,K);else{const re=L.el=S.el;L.children!==S.children&&u(re,L.children)}},g=(S,L,$,K)=>{S==null?n(L.el=l(L.children||""),$,K):L.el=S.el},C=(S,L,$,K)=>{[S.el,S.anchor]=v(S.children,L,$,K,S.el,S.anchor)},w=({el:S,anchor:L},$,K)=>{let re;for(;S&&S!==L;)re=f(S),n(S,$,K),S=re;n(L,$,K)},x=({el:S,anchor:L})=>{let $;for(;S&&S!==L;)$=f(S),o(S),S=$;o(L)},E=(S,L,$,K,re,le,ye,me,Ce)=>{ye=ye||L.type==="svg",S==null?I(L,$,K,re,le,ye,me,Ce):U(S,L,re,le,ye,me,Ce)},I=(S,L,$,K,re,le,ye,me)=>{let Ce,ce;const{type:Be,props:Se,shapeFlag:Te,transition:Ne,dirs:Ge}=S;if(Ce=S.el=i(S.type,le,Se&&Se.is,Se),Te&8?c(Ce,S.children):Te&16&&N(S.children,Ce,null,K,re,le&&Be!=="foreignObject",ye,me),Ge&&Tn(S,null,K,"created"),T(Ce,S,S.scopeId,ye,K),Se){for(const pe in Se)pe!=="value"&&!As(pe)&&a(Ce,pe,null,Se[pe],le,S.children,K,re,De);"value"in Se&&a(Ce,"value",null,Se.value),(ce=Se.onVnodeBeforeMount)&&lr(ce,K,S)}Ge&&Tn(S,null,K,"beforeMount");const nt=tm(re,Ne);nt&&Ne.beforeEnter(Ce),n(Ce,L,$),((ce=Se&&Se.onVnodeMounted)||nt||Ge)&&_1(()=>{ce&&lr(ce,K,S),nt&&Ne.enter(Ce),Ge&&Tn(S,null,K,"mounted")},re)},T=(S,L,$,K,re)=>{if($&&p(S,$),K)for(let le=0;le{for(let ce=Ce;ce{const me=L.el=S.el;let{patchFlag:Ce,dynamicChildren:ce,dirs:Be}=L;Ce|=S.patchFlag&16;const Se=S.props||Et,Te=L.props||Et;let Ne;$&&Dn($,!1),(Ne=Te.onVnodeBeforeUpdate)&&lr(Ne,$,L,S),Be&&Tn(L,S,$,"beforeUpdate"),$&&Dn($,!0);const Ge=re&&L.type!=="foreignObject";if(ce?O(S.dynamicChildren,ce,me,$,K,Ge,le):ye||ue(S,L,me,null,$,K,Ge,le,!1),Ce>0){if(Ce&16)V(me,L,Se,Te,$,K,re);else if(Ce&2&&Se.class!==Te.class&&a(me,"class",null,Te.class,re),Ce&4&&a(me,"style",Se.style,Te.style,re),Ce&8){const nt=L.dynamicProps;for(let pe=0;pe{Ne&&lr(Ne,$,L,S),Be&&Tn(L,S,$,"updated")},K)},O=(S,L,$,K,re,le,ye)=>{for(let me=0;me{if($!==K){if($!==Et)for(const me in $)!As(me)&&!(me in K)&&a(S,me,$[me],null,ye,L.children,re,le,De);for(const me in K){if(As(me))continue;const Ce=K[me],ce=$[me];Ce!==ce&&me!=="value"&&a(S,me,ce,Ce,ye,L.children,re,le,De)}"value"in K&&a(S,"value",$.value,K.value)}},D=(S,L,$,K,re,le,ye,me,Ce)=>{const ce=L.el=S?S.el:s(""),Be=L.anchor=S?S.anchor:s("");let{patchFlag:Se,dynamicChildren:Te,slotScopeIds:Ne}=L;Ne&&(me=me?me.concat(Ne):Ne),S==null?(n(ce,$,K),n(Be,$,K),N(L.children,$,Be,re,le,ye,me,Ce)):Se>0&&Se&64&&Te&&S.dynamicChildren?(O(S.dynamicChildren,Te,$,re,le,ye,me),(L.key!=null||re&&L===re.subTree)&&Ic(S,L,!0)):ue(S,L,$,Be,re,le,ye,me,Ce)},F=(S,L,$,K,re,le,ye,me,Ce)=>{L.slotScopeIds=me,S==null?L.shapeFlag&512?re.ctx.activate(L,$,K,ye,Ce):ee(L,$,K,re,le,ye,Ce):z(S,L,Ce)},ee=(S,L,$,K,re,le,ye)=>{const me=S.component=lm(S,K,re);if(a2(S)&&(me.ctx.renderer=j),um(me),me.asyncDep){if(re&&re.registerDep(me,q),!S.el){const Ce=me.subTree=R(O1);g(null,Ce,L,$)}return}q(me,S,L,$,re,le,ye)},z=(S,L,$)=>{const K=L.component=S.component;if(wv(S,L,$))if(K.asyncDep&&!K.asyncResolved){te(K,L,$);return}else K.next=L,vv(K.update),K.update();else L.el=S.el,K.vnode=L},q=(S,L,$,K,re,le,ye)=>{const me=()=>{if(S.isMounted){let{next:Be,bu:Se,u:Te,parent:Ne,vnode:Ge}=S,nt=Be,pe;Dn(S,!1),Be?(Be.el=Ge.el,te(S,Be,ye)):Be=Ge,Se&&Bs(Se),(pe=Be.props&&Be.props.onVnodeBeforeUpdate)&&lr(pe,Ne,Be,Ge),Dn(S,!0);const Ze=V2(S),Oe=S.subTree;S.subTree=Ze,y(Oe,Ze,d(Oe.el),W(Oe),S,re,le),Be.el=Ze.el,nt===null&&_v(S,Ze.el),Te&&_1(Te,re),(pe=Be.props&&Be.props.onVnodeUpdated)&&_1(()=>lr(pe,Ne,Be,Ge),re)}else{let Be;const{el:Se,props:Te}=L,{bm:Ne,m:Ge,parent:nt}=S,pe=fi(L);if(Dn(S,!1),Ne&&Bs(Ne),!pe&&(Be=Te&&Te.onVnodeBeforeMount)&&lr(Be,nt,L),Dn(S,!0),Se&&se){const Ze=()=>{S.subTree=V2(S),se(Se,S.subTree,S,re,null)};pe?L.type.__asyncLoader().then(()=>!S.isUnmounted&&Ze()):Ze()}else{const Ze=S.subTree=V2(S);y(null,Ze,$,K,S,re,le),L.el=Ze.el}if(Ge&&_1(Ge,re),!pe&&(Be=Te&&Te.onVnodeMounted)){const Ze=L;_1(()=>lr(Be,nt,Ze),re)}(L.shapeFlag&256||nt&&fi(nt.vnode)&&nt.vnode.shapeFlag&256)&&S.a&&_1(S.a,re),S.isMounted=!0,L=$=K=null}},Ce=S.effect=new A7(me,()=>V7(ce),S.scope),ce=S.update=()=>Ce.run();ce.id=S.uid,Dn(S,!0),ce()},te=(S,L,$)=>{L.component=S;const K=S.vnode.props;S.vnode=L,S.next=null,qv(S,L.props,K,$),Xv(S,L.children,$),Sa(),i3(S),Ea()},ue=(S,L,$,K,re,le,ye,me,Ce=!1)=>{const ce=S&&S.children,Be=S?S.shapeFlag:0,Se=L.children,{patchFlag:Te,shapeFlag:Ne}=L;if(Te>0){if(Te&128){ae(ce,Se,$,K,re,le,ye,me,Ce);return}else if(Te&256){ke(ce,Se,$,K,re,le,ye,me,Ce);return}}Ne&8?(Be&16&&De(ce,re,le),Se!==ce&&c($,Se)):Be&16?Ne&16?ae(ce,Se,$,K,re,le,ye,me,Ce):De(ce,re,le,!0):(Be&8&&c($,""),Ne&16&&N(Se,$,K,re,le,ye,me,Ce))},ke=(S,L,$,K,re,le,ye,me,Ce)=>{S=S||Uo,L=L||Uo;const ce=S.length,Be=L.length,Se=Math.min(ce,Be);let Te;for(Te=0;TeBe?De(S,re,le,!0,!1,Se):N(L,$,K,re,le,ye,me,Ce,Se)},ae=(S,L,$,K,re,le,ye,me,Ce)=>{let ce=0;const Be=L.length;let Se=S.length-1,Te=Be-1;for(;ce<=Se&&ce<=Te;){const Ne=S[ce],Ge=L[ce]=Ce?hn(L[ce]):vr(L[ce]);if(Un(Ne,Ge))y(Ne,Ge,$,null,re,le,ye,me,Ce);else break;ce++}for(;ce<=Se&&ce<=Te;){const Ne=S[Se],Ge=L[Te]=Ce?hn(L[Te]):vr(L[Te]);if(Un(Ne,Ge))y(Ne,Ge,$,null,re,le,ye,me,Ce);else break;Se--,Te--}if(ce>Se){if(ce<=Te){const Ne=Te+1,Ge=NeTe)for(;ce<=Se;)ge(S[ce],re,le,!0),ce++;else{const Ne=ce,Ge=ce,nt=new Map;for(ce=Ge;ce<=Te;ce++){const Pe=L[ce]=Ce?hn(L[ce]):vr(L[ce]);Pe.key!=null&&nt.set(Pe.key,ce)}let pe,Ze=0;const Oe=Te-Ge+1;let Qe=!1,de=0;const be=new Array(Oe);for(ce=0;ce=Oe){ge(Pe,re,le,!0);continue}let He;if(Pe.key!=null)He=nt.get(Pe.key);else for(pe=Ge;pe<=Te;pe++)if(be[pe-Ge]===0&&Un(Pe,L[pe])){He=pe;break}He===void 0?ge(Pe,re,le,!0):(be[He-Ge]=ce+1,He>=de?de=He:Qe=!0,y(Pe,L[He],$,null,re,le,ye,me,Ce),Ze++)}const Le=Qe?rm(be):Uo;for(pe=Le.length-1,ce=Oe-1;ce>=0;ce--){const Pe=Ge+ce,He=L[Pe],X=Pe+1{const{el:le,type:ye,transition:me,children:Ce,shapeFlag:ce}=S;if(ce&6){xe(S.component.subTree,L,$,K);return}if(ce&128){S.suspense.move(L,$,K);return}if(ce&64){ye.move(S,L,$,j);return}if(ye===Ee){n(le,L,$);for(let Se=0;Seme.enter(le),re);else{const{leave:Se,delayLeave:Te,afterLeave:Ne}=me,Ge=()=>n(le,L,$),nt=()=>{Se(le,()=>{Ge(),Ne&&Ne()})};Te?Te(le,Ge,nt):nt()}else n(le,L,$)},ge=(S,L,$,K=!1,re=!1)=>{const{type:le,props:ye,ref:me,children:Ce,dynamicChildren:ce,shapeFlag:Be,patchFlag:Se,dirs:Te}=S;if(me!=null&&q0(me,null,$,S,!0),Be&256){L.ctx.deactivate(S);return}const Ne=Be&1&&Te,Ge=!fi(S);let nt;if(Ge&&(nt=ye&&ye.onVnodeBeforeUnmount)&&lr(nt,L,S),Be&6)$e(S.component,$,K);else{if(Be&128){S.suspense.unmount($,K);return}Ne&&Tn(S,null,L,"beforeUnmount"),Be&64?S.type.remove(S,L,$,re,j,K):ce&&(le!==Ee||Se>0&&Se&64)?De(ce,L,$,!1,!0):(le===Ee&&Se&384||!re&&Be&16)&&De(Ce,L,$),K&&Ke(S)}(Ge&&(nt=ye&&ye.onVnodeUnmounted)||Ne)&&_1(()=>{nt&&lr(nt,L,S),Ne&&Tn(S,null,L,"unmounted")},$)},Ke=S=>{const{type:L,el:$,anchor:K,transition:re}=S;if(L===Ee){fe($,K);return}if(L===hi){x(S);return}const le=()=>{o($),re&&!re.persisted&&re.afterLeave&&re.afterLeave()};if(S.shapeFlag&1&&re&&!re.persisted){const{leave:ye,delayLeave:me}=re,Ce=()=>ye($,le);me?me(S.el,le,Ce):Ce()}else le()},fe=(S,L)=>{let $;for(;S!==L;)$=f(S),o(S),S=$;o(L)},$e=(S,L,$)=>{const{bum:K,scope:re,update:le,subTree:ye,um:me}=S;K&&Bs(K),re.stop(),le&&(le.active=!1,ge(ye,S,L,$)),me&&_1(me,L),_1(()=>{S.isUnmounted=!0},L),L&&L.pendingBranch&&!L.isUnmounted&&S.asyncDep&&!S.asyncResolved&&S.suspenseId===L.pendingId&&(L.deps--,L.deps===0&&L.resolve())},De=(S,L,$,K=!1,re=!1,le=0)=>{for(let ye=le;yeS.shapeFlag&6?W(S.component.subTree):S.shapeFlag&128?S.suspense.next():f(S.anchor||S.el),ve=(S,L,$)=>{S==null?L._vnode&&ge(L._vnode,null,null,!0):y(L._vnode||null,S,L,null,null,null,$),i3(),gc(),L._vnode=S},j={p:y,um:ge,m:xe,r:Ke,mt:ee,mc:N,pc:ue,pbc:O,n:W,o:e};let G,se;return t&&([G,se]=t(j)),{render:ve,hydrate:G,createApp:Gv(ve,G)}}function Dn({effect:e,update:t},r){e.allowRecurse=t.allowRecurse=r}function tm(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}function Ic(e,t,r=!1){const n=e.children,o=t.children;if(Ye(n)&&Ye(o))for(let a=0;a>1,e[r[s]]0&&(t[n]=r[a-1]),r[a]=n)}}for(a=r.length,i=r[a-1];a-- >0;)r[a]=i,i=t[i];return r}const nm=e=>e.__isTeleport,Ee=Symbol.for("v-fgt"),s2=Symbol.for("v-txt"),O1=Symbol.for("v-cmt"),hi=Symbol.for("v-stc"),vi=[];let X1=null;function h(e=!1){vi.push(X1=e?null:[])}function om(){vi.pop(),X1=vi[vi.length-1]||null}let Di=1;function C3(e){Di+=e}function Pc(e){return e.dynamicChildren=Di>0?X1||Uo:null,om(),Di>0&&X1&&X1.push(e),e}function k(e,t,r,n,o,a){return Pc(m(e,t,r,n,o,a,!0))}function J(e,t,r,n,o){return Pc(R(e,t,r,n,o,!0))}function il(e){return e?e.__v_isVNode===!0:!1}function Un(e,t){return e.type===t.type&&e.key===t.key}const l2="__vInternal",Nc=({key:e})=>e??null,Ds=({ref:e,ref_key:t,ref_for:r})=>(typeof e=="number"&&(e=""+e),e!=null?Nt(e)||Pt(e)||tt(e)?{i:r1,r:e,k:t,f:!!r}:e:null);function m(e,t=null,r=null,n=0,o=null,a=e===Ee?0:1,i=!1,s=!1){const l={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&Nc(t),ref:t&&Ds(t),scopeId:r2,slotScopeIds:null,children:r,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetAnchor:null,staticCount:0,shapeFlag:a,patchFlag:n,dynamicProps:o,dynamicChildren:null,appContext:null,ctx:r1};return s?(R7(l,r),a&128&&e.normalize(l)):r&&(l.shapeFlag|=Nt(r)?8:16),Di>0&&!i&&X1&&(l.patchFlag>0||a&6)&&l.patchFlag!==32&&X1.push(l),l}const R=am;function am(e,t=null,r=null,n=0,o=null,a=!1){if((!e||e===bc)&&(e=O1),il(e)){const s=Ur(e,t,!0);return r&&R7(s,r),Di>0&&!a&&X1&&(s.shapeFlag&6?X1[X1.indexOf(e)]=s:X1.push(s)),s.patchFlag|=-2,s}if(pm(e)&&(e=e.__vccOpts),t){t=sl(t);let{class:s,style:l}=t;s&&!Nt(s)&&(t.class=ie(s)),kt(l)&&(sc(l)&&!Ye(l)&&(l=jt({},l)),t.style=Fe(l))}const i=Nt(e)?1:Mv(e)?128:nm(e)?64:kt(e)?4:tt(e)?2:0;return m(e,t,r,n,o,i,a,!0)}function sl(e){return e?sc(e)||l2 in e?jt({},e):e:null}function Ur(e,t,r=!1){const{props:n,ref:o,patchFlag:a,children:i}=e,s=t?lt(n||{},t):n;return{__v_isVNode:!0,__v_skip:!0,type:e.type,props:s,key:s&&Nc(s),ref:t&&t.ref?r&&o?Ye(o)?o.concat(Ds(t)):[o,Ds(t)]:Ds(t):o,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:i,target:e.target,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==Ee?a===-1?16:a|16:a,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:e.transition,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&Ur(e.ssContent),ssFallback:e.ssFallback&&Ur(e.ssFallback),el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce}}function M(e=" ",t=0){return R(s2,null,e,t)}function Yi(e,t){const r=R(hi,null,e);return r.staticCount=t,r}function P(e="",t=!1){return t?(h(),J(O1,null,e)):R(O1,null,e)}function vr(e){return e==null||typeof e=="boolean"?R(O1):Ye(e)?R(Ee,null,e.slice()):typeof e=="object"?hn(e):R(s2,null,String(e))}function hn(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:Ur(e)}function R7(e,t){let r=0;const{shapeFlag:n}=e;if(t==null)t=null;else if(Ye(t))r=16;else if(typeof t=="object")if(n&65){const o=t.default;o&&(o._c&&(o._d=!1),R7(e,o()),o._c&&(o._d=!0));return}else{r=32;const o=t._;!o&&!(l2 in t)?t._ctx=r1:o===3&&r1&&(r1.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else tt(t)?(t={default:t,_ctx:r1},r=32):(t=String(t),n&64?(r=16,t=[M(t)]):r=8);e.children=t,e.shapeFlag|=r}function lt(...e){const t={};for(let r=0;rXt||r1;let z7,So,y3="__VUE_INSTANCE_SETTERS__";(So=Z0()[y3])||(So=Z0()[y3]=[]),So.push(e=>Xt=e),z7=e=>{So.length>1?So.forEach(t=>t(e)):So[0](e)};const sa=e=>{z7(e),e.scope.on()},eo=()=>{Xt&&Xt.scope.off(),z7(null)};function Zc(e){return e.vnode.shapeFlag&4}let Oi=!1;function um(e,t=!1){Oi=t;const{props:r,children:n}=e.vnode,o=Zc(e);Kv(e,r,o,t),Qv(e,n);const a=o?cm(e,t):void 0;return Oi=!1,a}function cm(e,t){const r=e.type;e.accessCache=Object.create(null),e.proxy=lc(new Proxy(e.ctx,$v));const{setup:n}=r;if(n){const o=e.setupContext=n.length>1?Rc(e):null;sa(e),Sa();const a=kn(n,e,0,[e.props,o]);if(Ea(),eo(),F8(a)){if(a.then(eo,eo),t)return a.then(i=>{b3(e,i,t)}).catch(i=>{e2(i,e,0)});e.asyncDep=a}else b3(e,a,t)}else $c(e,t)}function b3(e,t,r){tt(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:kt(t)&&(e.setupState=fc(t)),$c(e,r)}let w3;function $c(e,t,r){const n=e.type;if(!e.render){if(!t&&w3&&!n.render){const o=n.template||Z7(e).template;if(o){const{isCustomElement:a,compilerOptions:i}=e.appContext.config,{delimiters:s,compilerOptions:l}=n,u=jt(jt({isCustomElement:a,delimiters:s},i),l);n.render=w3(o,u)}}e.render=n.render||J1}{sa(e),Sa();try{Rv(e)}finally{Ea(),eo()}}}function dm(e){return e.attrsProxy||(e.attrsProxy=new Proxy(e.attrs,{get(t,r){return S1(e,"get","$attrs"),t[r]}}))}function Rc(e){const t=r=>{e.exposed=r||{}};return{get attrs(){return dm(e)},slots:e.slots,emit:e.emit,expose:t}}function u2(e){if(e.exposed)return e.exposeProxy||(e.exposeProxy=new Proxy(fc(lc(e.exposed)),{get(t,r){if(r in t)return t[r];if(r in pi)return pi[r](e)},has(t,r){return r in t||r in pi}}))}function fm(e,t=!0){return tt(e)?e.displayName||e.name:e.name||t&&e.__name}function pm(e){return tt(e)&&"__vccOpts"in e}const _=(e,t)=>fv(e,t,Oi);function oo(e,t,r){const n=arguments.length;return n===2?kt(t)&&!Ye(t)?il(t)?R(e,null,[t]):R(e,t):R(e,null,t):(n>3?r=Array.prototype.slice.call(arguments,2):n===3&&il(r)&&(r=[r]),R(e,t,r))}const hm=Symbol.for("v-scx"),vm=()=>qt(hm),mm="3.3.12",gm="http://www.w3.org/2000/svg",jn=typeof document<"u"?document:null,_3=jn&&jn.createElement("template"),Cm={insert:(e,t,r)=>{t.insertBefore(e,r||null)},remove:e=>{const t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,r,n)=>{const o=t?jn.createElementNS(gm,e):jn.createElement(e,r?{is:r}:void 0);return e==="select"&&n&&n.multiple!=null&&o.setAttribute("multiple",n.multiple),o},createText:e=>jn.createTextNode(e),createComment:e=>jn.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>jn.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,r,n,o,a){const i=r?r.previousSibling:t.lastChild;if(o&&(o===a||o.nextSibling))for(;t.insertBefore(o.cloneNode(!0),r),!(o===a||!(o=o.nextSibling)););else{_3.innerHTML=n?`${e}`:e;const s=_3.content;if(n){const l=s.firstChild;for(;l.firstChild;)s.appendChild(l.firstChild);s.removeChild(l)}t.insertBefore(s,r)}return[i?i.nextSibling:t.firstChild,r?r.previousSibling:t.lastChild]}},nn="transition",$a="animation",la=Symbol("_vtc"),_r=(e,{slots:t})=>oo(Hv,Fc(e),t);_r.displayName="Transition";const zc={name:String,type:String,css:{type:Boolean,default:!0},duration:[String,Number,Object],enterFromClass:String,enterActiveClass:String,enterToClass:String,appearFromClass:String,appearActiveClass:String,appearToClass:String,leaveFromClass:String,leaveActiveClass:String,leaveToClass:String},ym=_r.props=jt({},kc,zc),On=(e,t=[])=>{Ye(e)?e.forEach(r=>r(...t)):e&&e(...t)},k3=e=>e?Ye(e)?e.some(t=>t.length>1):e.length>1:!1;function Fc(e){const t={};for(const D in e)D in zc||(t[D]=e[D]);if(e.css===!1)return t;const{name:r="v",type:n,duration:o,enterFromClass:a=`${r}-enter-from`,enterActiveClass:i=`${r}-enter-active`,enterToClass:s=`${r}-enter-to`,appearFromClass:l=a,appearActiveClass:u=i,appearToClass:c=s,leaveFromClass:d=`${r}-leave-from`,leaveActiveClass:f=`${r}-leave-active`,leaveToClass:p=`${r}-leave-to`}=e,v=bm(o),y=v&&v[0],b=v&&v[1],{onBeforeEnter:g,onEnter:C,onEnterCancelled:w,onLeave:x,onLeaveCancelled:E,onBeforeAppear:I=g,onAppear:T=C,onAppearCancelled:N=w}=t,U=(D,F,ee)=>{cn(D,F?c:s),cn(D,F?u:i),ee&&ee()},O=(D,F)=>{D._isLeaving=!1,cn(D,d),cn(D,p),cn(D,f),F&&F()},V=D=>(F,ee)=>{const z=D?T:C,q=()=>U(F,D,ee);On(z,[F,q]),x3(()=>{cn(F,D?l:a),Or(F,D?c:s),k3(z)||M3(F,n,y,q)})};return jt(t,{onBeforeEnter(D){On(g,[D]),Or(D,a),Or(D,i)},onBeforeAppear(D){On(I,[D]),Or(D,l),Or(D,u)},onEnter:V(!1),onAppear:V(!0),onLeave(D,F){D._isLeaving=!0;const ee=()=>O(D,F);Or(D,d),jc(),Or(D,f),x3(()=>{D._isLeaving&&(cn(D,d),Or(D,p),k3(x)||M3(D,n,b,ee))}),On(x,[D,ee])},onEnterCancelled(D){U(D,!1),On(w,[D])},onAppearCancelled(D){U(D,!0),On(N,[D])},onLeaveCancelled(D){O(D),On(E,[D])}})}function bm(e){if(e==null)return null;if(kt(e))return[N2(e.enter),N2(e.leave)];{const t=N2(e);return[t,t]}}function N2(e){return Ah(e)}function Or(e,t){t.split(/\s+/).forEach(r=>r&&e.classList.add(r)),(e[la]||(e[la]=new Set)).add(t)}function cn(e,t){t.split(/\s+/).forEach(n=>n&&e.classList.remove(n));const r=e[la];r&&(r.delete(t),r.size||(e[la]=void 0))}function x3(e){requestAnimationFrame(()=>{requestAnimationFrame(e)})}let wm=0;function M3(e,t,r,n){const o=e._endId=++wm,a=()=>{o===e._endId&&n()};if(r)return setTimeout(a,r);const{type:i,timeout:s,propCount:l}=Uc(e,t);if(!i)return n();const u=i+"end";let c=0;const d=()=>{e.removeEventListener(u,f),a()},f=p=>{p.target===e&&++c>=l&&d()};setTimeout(()=>{c(r[v]||"").split(", "),o=n(`${nn}Delay`),a=n(`${nn}Duration`),i=S3(o,a),s=n(`${$a}Delay`),l=n(`${$a}Duration`),u=S3(s,l);let c=null,d=0,f=0;t===nn?i>0&&(c=nn,d=i,f=a.length):t===$a?u>0&&(c=$a,d=u,f=l.length):(d=Math.max(i,u),c=d>0?i>u?nn:$a:null,f=c?c===nn?a.length:l.length:0);const p=c===nn&&/\b(transform|all)(,|$)/.test(n(`${nn}Property`).toString());return{type:c,timeout:d,propCount:f,hasTransform:p}}function S3(e,t){for(;e.lengthE3(r)+E3(e[n])))}function E3(e){return e==="auto"?0:Number(e.slice(0,-1).replace(",","."))*1e3}function jc(){return document.body.offsetHeight}function _m(e,t,r){const n=e[la];n&&(t=(t?[t,...n]:[...n]).join(" ")),t==null?e.removeAttribute("class"):r?e.setAttribute("class",t):e.className=t}const F7=Symbol("_vod"),W0={beforeMount(e,{value:t},{transition:r}){e[F7]=e.style.display==="none"?"":e.style.display,r&&t?r.beforeEnter(e):Ra(e,t)},mounted(e,{value:t},{transition:r}){r&&t&&r.enter(e)},updated(e,{value:t,oldValue:r},{transition:n}){!t!=!r&&(n?t?(n.beforeEnter(e),Ra(e,!0),n.enter(e)):n.leave(e,()=>{Ra(e,!1)}):Ra(e,t))},beforeUnmount(e,{value:t}){Ra(e,t)}};function Ra(e,t){e.style.display=t?e[F7]:"none"}const Yc=Symbol("");function En(e){const t=Gi();if(!t)return;const r=t.ut=(o=e(t.proxy))=>{Array.from(document.querySelectorAll(`[data-v-owner="${t.uid}"]`)).forEach(a=>X0(a,o))},n=()=>{const o=e(t.proxy);Q0(t.subTree,o),r(o)};Ev(n),wt(()=>{const o=new MutationObserver(n);o.observe(t.subTree.el.parentNode,{childList:!0}),g1(()=>o.disconnect())})}function Q0(e,t){if(e.shapeFlag&128){const r=e.suspense;e=r.activeBranch,r.pendingBranch&&!r.isHydrating&&r.effects.push(()=>{Q0(r.activeBranch,t)})}for(;e.component;)e=e.component.subTree;if(e.shapeFlag&1&&e.el)X0(e.el,t);else if(e.type===Ee)e.children.forEach(r=>Q0(r,t));else if(e.type===hi){let{el:r,anchor:n}=e;for(;r&&(X0(r,t),r!==n);)r=r.nextSibling}}function X0(e,t){if(e.nodeType===1){const r=e.style;let n="";for(const o in t)r.setProperty(`--${o}`,t[o]),n+=`--${o}: ${t[o]};`;r[Yc]=n}}function km(e,t,r){const n=e.style,o=Nt(r);if(r&&!o){if(t&&!Nt(t))for(const a in t)r[a]==null&&J0(n,a,"");for(const a in r)J0(n,a,r[a])}else{const a=n.display;if(o){if(t!==r){const i=n[Yc];i&&(r+=";"+i),n.cssText=r}}else t&&e.removeAttribute("style");F7 in e&&(n.display=a)}}const L3=/\s*!important$/;function J0(e,t,r){if(Ye(r))r.forEach(n=>J0(e,t,n));else if(r==null&&(r=""),t.startsWith("--"))e.setProperty(t,r);else{const n=xm(e,t);L3.test(r)?e.setProperty(ho(n),r.replace(L3,""),"important"):e[n]=r}}const A3=["Webkit","Moz","ms"],Z2={};function xm(e,t){const r=Z2[t];if(r)return r;let n=wr(t);if(n!=="filter"&&n in e)return Z2[t]=n;n=Xl(n);for(let o=0;o$2||(Hm.then(()=>$2=0),$2=Date.now());function Tm(e,t){const r=n=>{if(!n._vts)n._vts=Date.now();else if(n._vts<=r.attached)return;U1(Dm(n,r.value),t,5,[n])};return r.value=e,r.attached=Bm(),r}function Dm(e,t){if(Ye(t)){const r=e.stopImmediatePropagation;return e.stopImmediatePropagation=()=>{r.call(e),e._stopped=!0},t.map(n=>o=>!o._stopped&&n&&n(o))}else return t}const D3=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123,Om=(e,t,r,n,o=!1,a,i,s,l)=>{t==="class"?_m(e,n,o):t==="style"?km(e,r,n):ql(t)?M7(t)||Lm(e,t,r,n,i):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):Vm(e,t,n,o))?Sm(e,t,n,a,i,s,l):(t==="true-value"?e._trueValue=n:t==="false-value"&&(e._falseValue=n),Mm(e,t,n,o))};function Vm(e,t,r,n){if(n)return!!(t==="innerHTML"||t==="textContent"||t in e&&D3(t)&&tt(r));if(t==="spellcheck"||t==="draggable"||t==="translate"||t==="form"||t==="list"&&e.tagName==="INPUT"||t==="type"&&e.tagName==="TEXTAREA")return!1;if(t==="width"||t==="height"){const o=e.tagName;if(o==="IMG"||o==="VIDEO"||o==="CANVAS"||o==="SOURCE")return!1}return D3(t)&&Nt(r)?!1:t in e}const Gc=new WeakMap,Kc=new WeakMap,ll=Symbol("_moveCb"),O3=Symbol("_enterCb"),qc={name:"TransitionGroup",props:jt({},ym,{tag:String,moveClass:String}),setup(e,{slots:t}){const r=Gi(),n=_c();let o,a;return Sc(()=>{if(!o.length)return;const i=e.moveClass||`${e.name||"v"}-move`;if(!Rm(o[0].el,r.vnode.el,i))return;o.forEach(Nm),o.forEach(Zm);const s=o.filter($m);jc(),s.forEach(l=>{const u=l.el,c=u.style;Or(u,i),c.transform=c.webkitTransform=c.transitionDuration="";const d=u[ll]=f=>{f&&f.target!==u||(!f||/transform$/.test(f.propertyName))&&(u.removeEventListener("transitionend",d),u[ll]=null,cn(u,i))};u.addEventListener("transitionend",d)})}),()=>{const i=ft(e),s=Fc(i);let l=i.tag||Ee;o=a,a=t.default?N7(t.default()):[];for(let u=0;udelete e.mode;qc.props;const Pm=qc;function Nm(e){const t=e.el;t[ll]&&t[ll](),t[O3]&&t[O3]()}function Zm(e){Kc.set(e,e.el.getBoundingClientRect())}function $m(e){const t=Gc.get(e),r=Kc.get(e),n=t.left-r.left,o=t.top-r.top;if(n||o){const a=e.el.style;return a.transform=a.webkitTransform=`translate(${n}px,${o}px)`,a.transitionDuration="0s",e}}function Rm(e,t,r){const n=e.cloneNode(),o=e[la];o&&o.forEach(s=>{s.split(/\s+/).forEach(l=>l&&n.classList.remove(l))}),r.split(/\s+/).forEach(s=>s&&n.classList.add(s)),n.style.display="none";const a=t.nodeType===1?t:t.parentNode;a.appendChild(n);const{hasTransform:i}=Uc(n);return a.removeChild(n),i}const V3=e=>{const t=e.props["onUpdate:modelValue"]||!1;return Ye(t)?r=>Bs(t,r):t};function zm(e){e.target.composing=!0}function I3(e){const t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event("input")))}const R2=Symbol("_assign"),Fm={created(e,{modifiers:{lazy:t,trim:r,number:n}},o){e[R2]=V3(o);const a=n||o.props&&o.props.type==="number";Do(e,t?"change":"input",i=>{if(i.target.composing)return;let s=e.value;r&&(s=s.trim()),a&&(s=N0(s)),e[R2](s)}),r&&Do(e,"change",()=>{e.value=e.value.trim()}),t||(Do(e,"compositionstart",zm),Do(e,"compositionend",I3),Do(e,"change",I3))},mounted(e,{value:t}){e.value=t??""},beforeUpdate(e,{value:t,modifiers:{lazy:r,trim:n,number:o}},a){if(e[R2]=V3(a),e.composing)return;const i=o||e.type==="number"?N0(e.value):e.value,s=t??"";i!==s&&(document.activeElement===e&&e.type!=="range"&&(r||n&&e.value.trim()===s)||(e.value=s))}},Um=["ctrl","shift","alt","meta"],jm={stop:e=>e.stopPropagation(),prevent:e=>e.preventDefault(),self:e=>e.target!==e.currentTarget,ctrl:e=>!e.ctrlKey,shift:e=>!e.shiftKey,alt:e=>!e.altKey,meta:e=>!e.metaKey,left:e=>"button"in e&&e.button!==0,middle:e=>"button"in e&&e.button!==1,right:e=>"button"in e&&e.button!==2,exact:(e,t)=>Um.some(r=>e[`${r}Key`]&&!t.includes(r))},bt=(e,t)=>e._withMods||(e._withMods=(r,...n)=>{for(let o=0;oe._withKeys||(e._withKeys=r=>{if(!("key"in r))return;const n=ho(r.key);if(t.some(o=>o===n||Ym[o]===n))return e(r)}),Gm=jt({patchProp:Om},Cm);let P3;function Km(){return P3||(P3=Jv(Gm))}const Wc=(...e)=>{const t=Km().createApp(...e),{mount:r}=t;return t.mount=n=>{const o=qm(n);if(!o)return;const a=t._component;!tt(a)&&!a.render&&!a.template&&(a.template=o.innerHTML),o.innerHTML="";const i=r(o,!1,o instanceof SVGElement);return o instanceof Element&&(o.removeAttribute("v-cloak"),o.setAttribute("data-v-app","")),i},t};function qm(e){return Nt(e)?document.querySelector(e):e}const Wm=""+new URL("icon-location-on-642f061f.svg",import.meta.url).href,Qm=""+new URL("icon-circles-ext-6b19ab51.svg",import.meta.url).href,Qc=""+new URL("icon-wifi-tethering-02725ea9.svg",import.meta.url).href;var e6=function(e,t){return e6=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,n){r.__proto__=n}||function(r,n){for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(r[o]=n[o])},e6(e,t)};function ar(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");e6(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}var je=function(){return je=Object.assign||function(e){for(var t,r=1,n=arguments.length;r0}),r=[],n=0,o=t;n1)throw new RangeError("integer-width stems only accept a single optional option");o.options[0].replace(ig,function(l,u,c,d,f,p){if(u)t.minimumIntegerDigits=c.length;else{if(d&&f)throw new Error("We currently do not support maximum integer digits");if(p)throw new Error("We currently do not support exact integer digits")}return""});continue}if(s9.test(o.stem)){t.minimumIntegerDigits=o.stem.length;continue}if(Z3.test(o.stem)){if(o.options.length>1)throw new RangeError("Fraction-precision stems only accept a single optional option");o.stem.replace(Z3,function(l,u,c,d,f,p){return c==="*"?t.minimumFractionDigits=u.length:d&&d[0]==="#"?t.maximumFractionDigits=d.length:f&&p?(t.minimumFractionDigits=f.length,t.maximumFractionDigits=f.length+p.length):(t.minimumFractionDigits=u.length,t.maximumFractionDigits=u.length),""});var a=o.options[0];a==="w"?t=je(je({},t),{trailingZeroDisplay:"stripIfInteger"}):a&&(t=je(je({},t),$3(a)));continue}if(i9.test(o.stem)){t=je(je({},t),$3(o.stem));continue}var i=l9(o.stem);i&&(t=je(je({},t),i));var s=sg(o.stem);s&&(t=je(je({},t),s))}return t}var hs={"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"],BI:["H","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"],BY:["H","h"],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"],CW:["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"],FO:["H","h"],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"],GL:["H","h"],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"],HU:["H","h"],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","K","h"],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"],MG:["H","h"],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"],MT:["H","h"],MU:["H","h"],MV:["H","h"],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"],NO:["H","h"],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"],PL:["H","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"],RW:["H","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"],TH:["H","h"],TJ:["H","h"],TL:["H","hB","hb","h"],TM:["H","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"],VN:["H","h"],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"],ZW:["H","h"],"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 ug(e,t){for(var r="",n=0;n>1),l="a",u=cg(t);for((u=="H"||u=="k")&&(s=0);s-- >0;)r+=l;for(;i-- >0;)r=u+r}else o==="J"?r+="H":r+=o}return r}function cg(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 r=e.language,n;r!=="root"&&(n=e.maximize().region);var o=hs[n||""]||hs[r||""]||hs["".concat(r,"-001")]||hs["001"];return o[0]}var z2,dg=new RegExp("^".concat(a9.source,"*")),fg=new RegExp("".concat(a9.source,"*$"));function dt(e,t){return{start:e,end:t}}var pg=!!String.prototype.startsWith&&"_a".startsWith("a",1),hg=!!String.fromCodePoint,vg=!!Object.fromEntries,mg=!!String.prototype.codePointAt,gg=!!String.prototype.trimStart,Cg=!!String.prototype.trimEnd,yg=!!Number.isSafeInteger,bg=yg?Number.isSafeInteger:function(e){return typeof e=="number"&&isFinite(e)&&Math.floor(e)===e&&Math.abs(e)<=9007199254740991},r6=!0;try{var wg=c9("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu");r6=((z2=wg.exec("a"))===null||z2===void 0?void 0:z2[0])==="a"}catch{r6=!1}var z3=pg?function(e,t,r){return e.startsWith(t,r)}:function(e,t,r){return e.slice(r,r+t.length)===t},n6=hg?String.fromCodePoint:function(){for(var e=[],t=0;to;){if(a=e[o++],a>1114111)throw RangeError(a+" is not a valid code point");r+=a<65536?String.fromCharCode(a):String.fromCharCode(((a-=65536)>>10)+55296,a%1024+56320)}return r},F3=vg?Object.fromEntries:function(e){for(var t={},r=0,n=e;r=r)){var n=e.charCodeAt(t),o;return n<55296||n>56319||t+1===r||(o=e.charCodeAt(t+1))<56320||o>57343?n:(n-55296<<10)+(o-56320)+65536}},_g=gg?function(e){return e.trimStart()}:function(e){return e.replace(dg,"")},kg=Cg?function(e){return e.trimEnd()}:function(e){return e.replace(fg,"")};function c9(e,t){return new RegExp(e,t)}var o6;if(r6){var U3=c9("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu");o6=function(e,t){var r;U3.lastIndex=t;var n=U3.exec(e);return(r=n[1])!==null&&r!==void 0?r:""}}else o6=function(e,t){for(var r=[];;){var n=u9(e,t);if(n===void 0||d9(n)||Eg(n))break;r.push(n),t+=n>=65536?2:1}return n6.apply(void 0,r)};var xg=function(){function e(t,r){r===void 0&&(r={}),this.message=t,this.position={offset:0,line:1,column:1},this.ignoreTag=!!r.ignoreTag,this.locale=r.locale,this.requiresOtherClause=!!r.requiresOtherClause,this.shouldParseSkeletons=!!r.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,r,n){for(var o=[];!this.isEOF();){var a=this.char();if(a===123){var i=this.parseArgument(t,n);if(i.err)return i;o.push(i.val)}else{if(a===125&&t>0)break;if(a===35&&(r==="plural"||r==="selectordinal")){var s=this.clonePosition();this.bump(),o.push({type:St.pound,location:dt(s,this.clonePosition())})}else if(a===60&&!this.ignoreTag&&this.peek()===47){if(n)break;return this.error(ct.UNMATCHED_CLOSING_TAG,dt(this.clonePosition(),this.clonePosition()))}else if(a===60&&!this.ignoreTag&&a6(this.peek()||0)){var i=this.parseTag(t,r);if(i.err)return i;o.push(i.val)}else{var i=this.parseLiteral(t,r);if(i.err)return i;o.push(i.val)}}}return{val:o,err:null}},e.prototype.parseTag=function(t,r){var n=this.clonePosition();this.bump();var o=this.parseTagName();if(this.bumpSpace(),this.bumpIf("/>"))return{val:{type:St.literal,value:"<".concat(o,"/>"),location:dt(n,this.clonePosition())},err:null};if(this.bumpIf(">")){var a=this.parseMessage(t+1,r,!0);if(a.err)return a;var i=a.val,s=this.clonePosition();if(this.bumpIf("")?{val:{type:St.tag,value:o,children:i,location:dt(n,this.clonePosition())},err:null}:this.error(ct.INVALID_TAG,dt(s,this.clonePosition())))}else return this.error(ct.UNCLOSED_TAG,dt(n,this.clonePosition()))}else return this.error(ct.INVALID_TAG,dt(n,this.clonePosition()))},e.prototype.parseTagName=function(){var t=this.offset();for(this.bump();!this.isEOF()&&Sg(this.char());)this.bump();return this.message.slice(t,this.offset())},e.prototype.parseLiteral=function(t,r){for(var n=this.clonePosition(),o="";;){var a=this.tryParseQuote(r);if(a){o+=a;continue}var i=this.tryParseUnquoted(t,r);if(i){o+=i;continue}var s=this.tryParseLeftAngleBracket();if(s){o+=s;continue}break}var l=dt(n,this.clonePosition());return{val:{type:St.literal,value:o,location:l},err:null}},e.prototype.tryParseLeftAngleBracket=function(){return!this.isEOF()&&this.char()===60&&(this.ignoreTag||!Mg(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 r=[this.char()];for(this.bump();!this.isEOF();){var n=this.char();if(n===39)if(this.peek()===39)r.push(39),this.bump();else{this.bump();break}else r.push(n);this.bump()}return n6.apply(void 0,r)},e.prototype.tryParseUnquoted=function(t,r){if(this.isEOF())return null;var n=this.char();return n===60||n===123||n===35&&(r==="plural"||r==="selectordinal")||n===125&&t>0?null:(this.bump(),n6(n))},e.prototype.parseArgument=function(t,r){var n=this.clonePosition();if(this.bump(),this.bumpSpace(),this.isEOF())return this.error(ct.EXPECT_ARGUMENT_CLOSING_BRACE,dt(n,this.clonePosition()));if(this.char()===125)return this.bump(),this.error(ct.EMPTY_ARGUMENT,dt(n,this.clonePosition()));var o=this.parseIdentifierIfPossible().value;if(!o)return this.error(ct.MALFORMED_ARGUMENT,dt(n,this.clonePosition()));if(this.bumpSpace(),this.isEOF())return this.error(ct.EXPECT_ARGUMENT_CLOSING_BRACE,dt(n,this.clonePosition()));switch(this.char()){case 125:return this.bump(),{val:{type:St.argument,value:o,location:dt(n,this.clonePosition())},err:null};case 44:return this.bump(),this.bumpSpace(),this.isEOF()?this.error(ct.EXPECT_ARGUMENT_CLOSING_BRACE,dt(n,this.clonePosition())):this.parseArgumentOptions(t,r,o,n);default:return this.error(ct.MALFORMED_ARGUMENT,dt(n,this.clonePosition()))}},e.prototype.parseIdentifierIfPossible=function(){var t=this.clonePosition(),r=this.offset(),n=o6(this.message,r),o=r+n.length;this.bumpTo(o);var a=this.clonePosition(),i=dt(t,a);return{value:n,location:i}},e.prototype.parseArgumentOptions=function(t,r,n,o){var a,i=this.clonePosition(),s=this.parseIdentifierIfPossible().value,l=this.clonePosition();switch(s){case"":return this.error(ct.EXPECT_ARGUMENT_TYPE,dt(i,l));case"number":case"date":case"time":{this.bumpSpace();var u=null;if(this.bumpIf(",")){this.bumpSpace();var c=this.clonePosition(),d=this.parseSimpleArgStyleIfPossible();if(d.err)return d;var f=kg(d.val);if(f.length===0)return this.error(ct.EXPECT_ARGUMENT_STYLE,dt(this.clonePosition(),this.clonePosition()));var p=dt(c,this.clonePosition());u={style:f,styleLocation:p}}var v=this.tryParseArgumentClose(o);if(v.err)return v;var y=dt(o,this.clonePosition());if(u&&z3(u==null?void 0:u.style,"::",0)){var b=_g(u.style.slice(2));if(s==="number"){var d=this.parseNumberSkeletonFromString(b,u.styleLocation);return d.err?d:{val:{type:St.number,value:n,location:y,style:d.val},err:null}}else{if(b.length===0)return this.error(ct.EXPECT_DATE_TIME_SKELETON,y);var g=b;this.locale&&(g=ug(b,this.locale));var f={type:ua.dateTime,pattern:g,location:u.styleLocation,parsedOptions:this.shouldParseSkeletons?rg(g):{}},C=s==="date"?St.date:St.time;return{val:{type:C,value:n,location:y,style:f},err:null}}}return{val:{type:s==="number"?St.number:s==="date"?St.date:St.time,value:n,location:y,style:(a=u==null?void 0:u.style)!==null&&a!==void 0?a:null},err:null}}case"plural":case"selectordinal":case"select":{var w=this.clonePosition();if(this.bumpSpace(),!this.bumpIf(","))return this.error(ct.EXPECT_SELECT_ARGUMENT_OPTIONS,dt(w,je({},w)));this.bumpSpace();var x=this.parseIdentifierIfPossible(),E=0;if(s!=="select"&&x.value==="offset"){if(!this.bumpIf(":"))return this.error(ct.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,dt(this.clonePosition(),this.clonePosition()));this.bumpSpace();var d=this.tryParseDecimalInteger(ct.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,ct.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);if(d.err)return d;this.bumpSpace(),x=this.parseIdentifierIfPossible(),E=d.val}var I=this.tryParsePluralOrSelectOptions(t,s,r,x);if(I.err)return I;var v=this.tryParseArgumentClose(o);if(v.err)return v;var T=dt(o,this.clonePosition());return s==="select"?{val:{type:St.select,value:n,options:F3(I.val),location:T},err:null}:{val:{type:St.plural,value:n,options:F3(I.val),offset:E,pluralType:s==="plural"?"cardinal":"ordinal",location:T},err:null}}default:return this.error(ct.INVALID_ARGUMENT_TYPE,dt(i,l))}},e.prototype.tryParseArgumentClose=function(t){return this.isEOF()||this.char()!==125?this.error(ct.EXPECT_ARGUMENT_CLOSING_BRACE,dt(t,this.clonePosition())):(this.bump(),{val:!0,err:null})},e.prototype.parseSimpleArgStyleIfPossible=function(){for(var t=0,r=this.clonePosition();!this.isEOF();){var n=this.char();switch(n){case 39:{this.bump();var o=this.clonePosition();if(!this.bumpUntil("'"))return this.error(ct.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE,dt(o,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(r.offset,this.offset()),err:null};break}default:this.bump();break}}return{val:this.message.slice(r.offset,this.offset()),err:null}},e.prototype.parseNumberSkeletonFromString=function(t,r){var n=[];try{n=og(t)}catch{return this.error(ct.INVALID_NUMBER_SKELETON,r)}return{val:{type:ua.number,tokens:n,location:r,parsedOptions:this.shouldParseSkeletons?lg(n):{}},err:null}},e.prototype.tryParsePluralOrSelectOptions=function(t,r,n,o){for(var a,i=!1,s=[],l=new Set,u=o.value,c=o.location;;){if(u.length===0){var d=this.clonePosition();if(r!=="select"&&this.bumpIf("=")){var f=this.tryParseDecimalInteger(ct.EXPECT_PLURAL_ARGUMENT_SELECTOR,ct.INVALID_PLURAL_ARGUMENT_SELECTOR);if(f.err)return f;c=dt(d,this.clonePosition()),u=this.message.slice(d.offset,this.offset())}else break}if(l.has(u))return this.error(r==="select"?ct.DUPLICATE_SELECT_ARGUMENT_SELECTOR:ct.DUPLICATE_PLURAL_ARGUMENT_SELECTOR,c);u==="other"&&(i=!0),this.bumpSpace();var p=this.clonePosition();if(!this.bumpIf("{"))return this.error(r==="select"?ct.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT:ct.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT,dt(this.clonePosition(),this.clonePosition()));var v=this.parseMessage(t+1,r,n);if(v.err)return v;var y=this.tryParseArgumentClose(p);if(y.err)return y;s.push([u,{value:v.val,location:dt(p,this.clonePosition())}]),l.add(u),this.bumpSpace(),a=this.parseIdentifierIfPossible(),u=a.value,c=a.location}return s.length===0?this.error(r==="select"?ct.EXPECT_SELECT_ARGUMENT_SELECTOR:ct.EXPECT_PLURAL_ARGUMENT_SELECTOR,dt(this.clonePosition(),this.clonePosition())):this.requiresOtherClause&&!i?this.error(ct.MISSING_OTHER_CLAUSE,dt(this.clonePosition(),this.clonePosition())):{val:s,err:null}},e.prototype.tryParseDecimalInteger=function(t,r){var n=1,o=this.clonePosition();this.bumpIf("+")||this.bumpIf("-")&&(n=-1);for(var a=!1,i=0;!this.isEOF();){var s=this.char();if(s>=48&&s<=57)a=!0,i=i*10+(s-48),this.bump();else break}var l=dt(o,this.clonePosition());return a?(i*=n,bg(i)?{val:i,err:null}:this.error(r,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 r=u9(this.message,t);if(r===void 0)throw Error("Offset ".concat(t," is at invalid UTF-16 code unit boundary"));return r},e.prototype.error=function(t,r){return{val:null,err:{kind:t,message:this.message,location:r}}},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(z3(this.message,t,this.offset())){for(var r=0;r=0?(this.bumpTo(n),!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 r=this.offset();if(r===t)break;if(r>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()&&d9(this.char());)this.bump()},e.prototype.peek=function(){if(this.isEOF())return null;var t=this.char(),r=this.offset(),n=this.message.charCodeAt(r+(t>=65536?2:1));return n??null},e}();function a6(e){return e>=97&&e<=122||e>=65&&e<=90}function Mg(e){return a6(e)||e===47}function Sg(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 d9(e){return e>=9&&e<=13||e===32||e===133||e>=8206&&e<=8207||e===8232||e===8233}function Eg(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 i6(e){e.forEach(function(t){if(delete t.location,t9(t)||r9(t))for(var r in t.options)delete t.options[r].location,i6(t.options[r].value);else Xc(t)&&o9(t.style)||(Jc(t)||e9(t))&&t6(t.style)?delete t.style.location:n9(t)&&i6(t.children)})}function Lg(e,t){t===void 0&&(t={}),t=je({shouldParseSkeletons:!0,requiresOtherClause:!0},t);var r=new xg(e,t).parse();if(r.err){var n=SyntaxError(ct[r.err.kind]);throw n.location=r.err.location,n.originalMessage=r.err.message,n}return t!=null&&t.captureLocation||i6(r.val),r.val}function cr(e,t){var r=t&&t.cache?t.cache:Og,n=t&&t.serializer?t.serializer:Dg,o=t&&t.strategy?t.strategy:Hg;return o(e,{cache:r,serializer:n})}function Ag(e){return e==null||typeof e=="number"||typeof e=="boolean"}function f9(e,t,r,n){var o=Ag(n)?n:r(n),a=t.get(o);return typeof a>"u"&&(a=e.call(this,n),t.set(o,a)),a}function p9(e,t,r){var n=Array.prototype.slice.call(arguments,3),o=r(n),a=t.get(o);return typeof a>"u"&&(a=e.apply(this,n),t.set(o,a)),a}function U7(e,t,r,n,o){return r.bind(t,e,n,o)}function Hg(e,t){var r=e.length===1?f9:p9;return U7(e,this,r,t.cache.create(),t.serializer)}function Bg(e,t){return U7(e,this,p9,t.cache.create(),t.serializer)}function Tg(e,t){return U7(e,this,f9,t.cache.create(),t.serializer)}var Dg=function(){return JSON.stringify(arguments)};function j7(){this.cache=Object.create(null)}j7.prototype.get=function(e){return this.cache[e]};j7.prototype.set=function(e,t){this.cache[e]=t};var Og={create:function(){return new j7}},dr={variadic:Bg,monadic:Tg},kr;(function(e){e.MISSING_VALUE="MISSING_VALUE",e.INVALID_VALUE="INVALID_VALUE",e.MISSING_INTL_API="MISSING_INTL_API"})(kr||(kr={}));var Ln=function(e){ar(t,e);function t(r,n,o){var a=e.call(this,r)||this;return a.code=n,a.originalMessage=o,a}return t.prototype.toString=function(){return"[formatjs Error: ".concat(this.code,"] ").concat(this.message)},t}(Error),j3=function(e){ar(t,e);function t(r,n,o,a){return e.call(this,'Invalid values for "'.concat(r,'": "').concat(n,'". Options are "').concat(Object.keys(o).join('", "'),'"'),kr.INVALID_VALUE,a)||this}return t}(Ln),Vg=function(e){ar(t,e);function t(r,n,o){return e.call(this,'Value for "'.concat(r,'" must be of type ').concat(n),kr.INVALID_VALUE,o)||this}return t}(Ln),Ig=function(e){ar(t,e);function t(r,n){return e.call(this,'The intl string context variable "'.concat(r,'" was not provided to the string "').concat(n,'"'),kr.MISSING_VALUE,n)||this}return t}(Ln),p1;(function(e){e[e.literal=0]="literal",e[e.object=1]="object"})(p1||(p1={}));function Pg(e){return e.length<2?e:e.reduce(function(t,r){var n=t[t.length-1];return!n||n.type!==p1.literal||r.type!==p1.literal?t.push(r):n.value+=r.value,t},[])}function Ng(e){return typeof e=="function"}function Os(e,t,r,n,o,a,i){if(e.length===1&&N3(e[0]))return[{type:p1.literal,value:e[0].value}];for(var s=[],l=0,u=e;lt in e?hh(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r;var mt=(e,t,r)=>(vh(e,typeof t!="symbol"?t+"":t,r),r),D2=(e,t,r)=>{if(!t.has(e))throw TypeError("Cannot "+r)};var he=(e,t,r)=>(D2(e,t,"read from private field"),r?r.call(e):t.get(e)),ut=(e,t,r)=>{if(t.has(e))throw TypeError("Cannot add the same private member more than once");t instanceof WeakSet?t.add(e):t.set(e,r)},Wt=(e,t,r,n)=>(D2(e,t,"write to private field"),n?n.call(e,r):t.set(e,r),r);var Me=(e,t,r)=>(D2(e,t,"access private method"),r);(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const o of document.querySelectorAll('link[rel="modulepreload"]'))n(o);new MutationObserver(o=>{for(const a of o)if(a.type==="childList")for(const i of a.addedNodes)i.tagName==="LINK"&&i.rel==="modulepreload"&&n(i)}).observe(document,{childList:!0,subtree:!0});function r(o){const a={};return o.integrity&&(a.integrity=o.integrity),o.referrerPolicy&&(a.referrerPolicy=o.referrerPolicy),o.crossOrigin==="use-credentials"?a.credentials="include":o.crossOrigin==="anonymous"?a.credentials="omit":a.credentials="same-origin",a}function n(o){if(o.ep)return;o.ep=!0;const a=r(o);fetch(o.href,a)}})();const mh="modulepreload",gh=function(e,t){return e[0]==="."?new URL(e,t).href:e},Q5={},Ve=function(t,r,n){if(!r||r.length===0)return t();const o=document.getElementsByTagName("link");return Promise.all(r.map(a=>{if(a=gh(a,n),a in Q5)return;Q5[a]=!0;const i=a.endsWith(".css"),s=i?'[rel="stylesheet"]':"";if(!!n)for(let c=o.length-1;c>=0;c--){const d=o[c];if(d.href===a&&(!i||d.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${a}"]${s}`))return;const u=document.createElement("link");if(u.rel=i?"stylesheet":mh,i||(u.as="script",u.crossOrigin=""),u.href=a,document.head.appendChild(u),i)return new Promise((c,d)=>{u.addEventListener("load",c),u.addEventListener("error",()=>d(new Error(`Unable to preload CSS for ${a}`)))})})).then(()=>t()).catch(a=>{const i=new Event("vite:preloadError",{cancelable:!0});if(i.payload=a,window.dispatchEvent(i),!i.defaultPrevented)throw a})};const Ch=e=>({"use kubernetes":t=>e("KUMA_ENVIRONMENT")==="kubernetes","use state":t=>e("KUMA_STORE_TYPE")!=="memory"}),yh=()=>[{path:"/",name:"home",component:()=>Ve(()=>import("./ControlPlaneDetailView-28d5ccda.js"),["./CopyButton-2be0e14d.css","./TextWithCopyButton-f7225b54.css","./ErrorBlock-bcc21522.css","./AppCollection-6359d3b1.css","./StatusBadge-8194fcb8.css","./ControlPlaneDetailView-d2b77b9d.css"],import.meta.url)}],bh={fromObject(e){return e}},wh={fromObject(e){return e}},_h=(e,t)=>{const r=e.split("."),n=t.split(".");for(let o=0;o<3;o++){const a=Number(r[o]),i=Number(n[o]);if(a>i)return 1;if(i>a)return-1}return 0},kh=(e,t)=>({"/control-plane/addresses":async()=>({http:e("KUMA_API_URL"),kds:e("KUMA_KDS_URL")}),"/control-plane/version/latest":async()=>{const r=e("KUMA_VERSION");if(!r.match("^[0-9]+.[0-9]+.[0-9]+$"))return{version:r};const n=await(async()=>{try{return t.getLatestVersion()}catch(o){return console.error(o),""}})();return{version:n!==""&&_h(n,r)===1?n:r}},"/config":async()=>bh.fromObject(await t.getConfig()),"/global-insight":async()=>wh.fromObject(await t.getGlobalInsight())});function x7(e,t){const r=Object.create(null),n=e.split(",");for(let o=0;o!!r[o.toLowerCase()]:o=>!!r[o]}const Et={},Uo=[],J1=()=>{},xh=()=>!1,ql=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),M7=e=>e.startsWith("onUpdate:"),jt=Object.assign,S7=(e,t)=>{const r=e.indexOf(t);r>-1&&e.splice(r,1)},Mh=Object.prototype.hasOwnProperty,ht=(e,t)=>Mh.call(e,t),Ye=Array.isArray,jo=e=>Wl(e)==="[object Map]",z8=e=>Wl(e)==="[object Set]",tt=e=>typeof e=="function",Nt=e=>typeof e=="string",Ma=e=>typeof e=="symbol",kt=e=>e!==null&&typeof e=="object",F8=e=>(kt(e)||tt(e))&&tt(e.then)&&tt(e.catch),U8=Object.prototype.toString,Wl=e=>U8.call(e),Sh=e=>Wl(e).slice(8,-1),j8=e=>Wl(e)==="[object Object]",E7=e=>Nt(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,As=x7(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),Ql=e=>{const t=Object.create(null);return r=>t[r]||(t[r]=e(r))},Eh=/-(\w)/g,wr=Ql(e=>e.replace(Eh,(t,r)=>r?r.toUpperCase():"")),Lh=/\B([A-Z])/g,ho=Ql(e=>e.replace(Lh,"-$1").toLowerCase()),Xl=Ql(e=>e.charAt(0).toUpperCase()+e.slice(1)),Hs=Ql(e=>e?`on${Xl(e)}`:""),ro=(e,t)=>!Object.is(e,t),Bs=(e,t)=>{for(let r=0;r{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,value:r})},N0=e=>{const t=parseFloat(e);return isNaN(t)?e:t},Ah=e=>{const t=Nt(e)?Number(e):NaN;return isNaN(t)?e:t};let X5;const Z0=()=>X5||(X5=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function Fe(e){if(Ye(e)){const t={};for(let r=0;r{if(r){const n=r.split(Bh);n.length>1&&(t[n[0].trim()]=n[1].trim())}}),t}function ie(e){let t="";if(Nt(e))t=e;else if(Ye(e))for(let r=0;rNt(e)?e:e==null?"":Ye(e)||kt(e)&&(e.toString===U8||!tt(e.toString))?JSON.stringify(e,G8,2):String(e),G8=(e,t)=>t&&t.__v_isRef?G8(e,t.value):jo(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((r,[n,o],a)=>(r[O2(n,a)+" =>"]=o,r),{})}:z8(t)?{[`Set(${t.size})`]:[...t.values()].map(r=>O2(r))}:Ma(t)?O2(t):kt(t)&&!Ye(t)&&!j8(t)?String(t):t,O2=(e,t="")=>{var r;return Ma(e)?`Symbol(${(r=e.description)!=null?r:t})`:e};let B1;class Ih{constructor(t=!1){this.detached=t,this._active=!0,this.effects=[],this.cleanups=[],this.parent=B1,!t&&B1&&(this.index=(B1.scopes||(B1.scopes=[])).push(this)-1)}get active(){return this._active}run(t){if(this._active){const r=B1;try{return B1=this,t()}finally{B1=r}}}on(){B1=this}off(){B1=this.parent}stop(t){if(this._active){let r,n;for(r=0,n=this.effects.length;r{const t=new Set(e);return t.w=0,t.n=0,t},q8=e=>(e.w&xn)>0,W8=e=>(e.n&xn)>0,Zh=({deps:e})=>{if(e.length)for(let t=0;t{const{deps:t}=e;if(t.length){let r=0;for(let n=0;n{(c==="length"||!Ma(c)&&c>=l)&&s.push(u)})}else switch(r!==void 0&&s.push(i.get(r)),t){case"add":Ye(e)?E7(r)&&s.push(i.get("length")):(s.push(i.get(Jn)),jo(e)&&s.push(i.get(R0)));break;case"delete":Ye(e)||(s.push(i.get(Jn)),jo(e)&&s.push(i.get(R0)));break;case"set":jo(e)&&s.push(i.get(Jn));break}if(s.length===1)s[0]&&z0(s[0]);else{const l=[];for(const u of s)u&&l.push(...u);z0(L7(l))}}function z0(e,t){const r=Ye(e)?e:[...e];for(const n of r)n.computed&&e3(n);for(const n of r)n.computed||e3(n)}function e3(e,t){(e!==Q1||e.allowRecurse)&&(e.scheduler?e.scheduler():e.run())}function Rh(e,t){var r;return(r=tl.get(e))==null?void 0:r.get(t)}const zh=x7("__proto__,__v_isRef,__isVue"),J8=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(Ma)),t3=Fh();function Fh(){const e={};return["includes","indexOf","lastIndexOf"].forEach(t=>{e[t]=function(...r){const n=ft(this);for(let a=0,i=this.length;a{e[t]=function(...r){Sa();const n=ft(this)[t].apply(this,r);return Ea(),n}}),e}function Uh(e){const t=ft(this);return S1(t,"has",e),t.hasOwnProperty(e)}class ec{constructor(t=!1,r=!1){this._isReadonly=t,this._shallow=r}get(t,r,n){const o=this._isReadonly,a=this._shallow;if(r==="__v_isReactive")return!o;if(r==="__v_isReadonly")return o;if(r==="__v_isShallow")return a;if(r==="__v_raw")return n===(o?a?nv:oc:a?nc:rc).get(t)||Object.getPrototypeOf(t)===Object.getPrototypeOf(n)?t:void 0;const i=Ye(t);if(!o){if(i&&ht(t3,r))return Reflect.get(t3,r,n);if(r==="hasOwnProperty")return Uh}const s=Reflect.get(t,r,n);return(Ma(r)?J8.has(r):zh(r))||(o||S1(t,"get",r),a)?s:Pt(s)?i&&E7(r)?s:s.value:kt(s)?o?ic(s):nr(s):s}}class tc extends ec{constructor(t=!1){super(!1,t)}set(t,r,n,o){let a=t[r];if(!this._shallow){const l=no(a);if(!rl(n)&&!no(n)&&(a=ft(a),n=ft(n)),!Ye(t)&&Pt(a)&&!Pt(n))return l?!1:(a.value=n,!0)}const i=Ye(t)&&E7(r)?Number(r)e,Jl=e=>Reflect.getPrototypeOf(e);function ss(e,t,r=!1,n=!1){e=e.__v_raw;const o=ft(e),a=ft(t);r||(ro(t,a)&&S1(o,"get",t),S1(o,"get",a));const{has:i}=Jl(o),s=n?H7:r?D7:Li;if(i.call(o,t))return s(e.get(t));if(i.call(o,a))return s(e.get(a));e!==o&&e.get(t)}function ls(e,t=!1){const r=this.__v_raw,n=ft(r),o=ft(e);return t||(ro(e,o)&&S1(n,"has",e),S1(n,"has",o)),e===o?r.has(e):r.has(e)||r.has(o)}function us(e,t=!1){return e=e.__v_raw,!t&&S1(ft(e),"iterate",Jn),Reflect.get(e,"size",e)}function r3(e){e=ft(e);const t=ft(this);return Jl(t).has.call(t,e)||(t.add(e),zr(t,"add",e,e)),this}function n3(e,t){t=ft(t);const r=ft(this),{has:n,get:o}=Jl(r);let a=n.call(r,e);a||(e=ft(e),a=n.call(r,e));const i=o.call(r,e);return r.set(e,t),a?ro(t,i)&&zr(r,"set",e,t):zr(r,"add",e,t),this}function o3(e){const t=ft(this),{has:r,get:n}=Jl(t);let o=r.call(t,e);o||(e=ft(e),o=r.call(t,e)),n&&n.call(t,e);const a=t.delete(e);return o&&zr(t,"delete",e,void 0),a}function a3(){const e=ft(this),t=e.size!==0,r=e.clear();return t&&zr(e,"clear",void 0,void 0),r}function cs(e,t){return function(n,o){const a=this,i=a.__v_raw,s=ft(i),l=t?H7:e?D7:Li;return!e&&S1(s,"iterate",Jn),i.forEach((u,c)=>n.call(o,l(u),l(c),a))}}function ds(e,t,r){return function(...n){const o=this.__v_raw,a=ft(o),i=jo(a),s=e==="entries"||e===Symbol.iterator&&i,l=e==="keys"&&i,u=o[e](...n),c=r?H7:t?D7:Li;return!t&&S1(a,"iterate",l?R0:Jn),{next(){const{value:d,done:f}=u.next();return f?{value:d,done:f}:{value:s?[c(d[0]),c(d[1])]:c(d),done:f}},[Symbol.iterator](){return this}}}}function rn(e){return function(...t){return e==="delete"?!1:e==="clear"?void 0:this}}function qh(){const e={get(a){return ss(this,a)},get size(){return us(this)},has:ls,add:r3,set:n3,delete:o3,clear:a3,forEach:cs(!1,!1)},t={get(a){return ss(this,a,!1,!0)},get size(){return us(this)},has:ls,add:r3,set:n3,delete:o3,clear:a3,forEach:cs(!1,!0)},r={get(a){return ss(this,a,!0)},get size(){return us(this,!0)},has(a){return ls.call(this,a,!0)},add:rn("add"),set:rn("set"),delete:rn("delete"),clear:rn("clear"),forEach:cs(!0,!1)},n={get(a){return ss(this,a,!0,!0)},get size(){return us(this,!0)},has(a){return ls.call(this,a,!0)},add:rn("add"),set:rn("set"),delete:rn("delete"),clear:rn("clear"),forEach:cs(!0,!0)};return["keys","values","entries",Symbol.iterator].forEach(a=>{e[a]=ds(a,!1,!1),r[a]=ds(a,!0,!1),t[a]=ds(a,!1,!0),n[a]=ds(a,!0,!0)}),[e,r,t,n]}const[Wh,Qh,Xh,Jh]=qh();function B7(e,t){const r=t?e?Jh:Xh:e?Qh:Wh;return(n,o,a)=>o==="__v_isReactive"?!e:o==="__v_isReadonly"?e:o==="__v_raw"?n:Reflect.get(ht(r,o)&&o in n?r:n,o,a)}const ev={get:B7(!1,!1)},tv={get:B7(!1,!0)},rv={get:B7(!0,!1)},rc=new WeakMap,nc=new WeakMap,oc=new WeakMap,nv=new WeakMap;function ov(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function av(e){return e.__v_skip||!Object.isExtensible(e)?0:ov(Sh(e))}function nr(e){return no(e)?e:T7(e,!1,Yh,ev,rc)}function ac(e){return T7(e,!1,Kh,tv,nc)}function ic(e){return T7(e,!0,Gh,rv,oc)}function T7(e,t,r,n,o){if(!kt(e)||e.__v_raw&&!(t&&e.__v_isReactive))return e;const a=o.get(e);if(a)return a;const i=av(e);if(i===0)return e;const s=new Proxy(e,i===2?n:r);return o.set(e,s),s}function Yo(e){return no(e)?Yo(e.__v_raw):!!(e&&e.__v_isReactive)}function no(e){return!!(e&&e.__v_isReadonly)}function rl(e){return!!(e&&e.__v_isShallow)}function sc(e){return Yo(e)||no(e)}function ft(e){const t=e&&e.__v_raw;return t?ft(t):e}function lc(e){return el(e,"__v_skip",!0),e}const Li=e=>kt(e)?nr(e):e,D7=e=>kt(e)?ic(e):e;function uc(e){_n&&Q1&&(e=ft(e),X8(e.dep||(e.dep=L7())))}function cc(e,t){e=ft(e);const r=e.dep;r&&z0(r)}function Pt(e){return!!(e&&e.__v_isRef===!0)}function Y(e){return dc(e,!1)}function iv(e){return dc(e,!0)}function dc(e,t){return Pt(e)?e:new sv(e,t)}class sv{constructor(t,r){this.__v_isShallow=r,this.dep=void 0,this.__v_isRef=!0,this._rawValue=r?t:ft(t),this._value=r?t:Li(t)}get value(){return uc(this),this._value}set value(t){const r=this.__v_isShallow||rl(t)||no(t);t=r?t:ft(t),ro(t,this._rawValue)&&(this._rawValue=t,this._value=r?t:Li(t),cc(this))}}function B(e){return Pt(e)?e.value:e}const lv={get:(e,t,r)=>B(Reflect.get(e,t,r)),set:(e,t,r,n)=>{const o=e[t];return Pt(o)&&!Pt(r)?(o.value=r,!0):Reflect.set(e,t,r,n)}};function fc(e){return Yo(e)?e:new Proxy(e,lv)}function pc(e){const t=Ye(e)?new Array(e.length):{};for(const r in e)t[r]=hc(e,r);return t}class uv{constructor(t,r,n){this._object=t,this._key=r,this._defaultValue=n,this.__v_isRef=!0}get value(){const t=this._object[this._key];return t===void 0?this._defaultValue:t}set value(t){this._object[this._key]=t}get dep(){return Rh(ft(this._object),this._key)}}class cv{constructor(t){this._getter=t,this.__v_isRef=!0,this.__v_isReadonly=!0}get value(){return this._getter()}}function Ts(e,t,r){return Pt(e)?e:tt(e)?new cv(e):kt(e)&&arguments.length>1?hc(e,t,r):Y(e)}function hc(e,t,r){const n=e[t];return Pt(n)?n:new uv(e,t,r)}class dv{constructor(t,r,n,o){this._setter=r,this.dep=void 0,this.__v_isRef=!0,this.__v_isReadonly=!1,this._dirty=!0,this.effect=new A7(t,()=>{this._dirty||(this._dirty=!0,cc(this))}),this.effect.computed=this,this.effect.active=this._cacheable=!o,this.__v_isReadonly=n}get value(){const t=ft(this);return uc(t),(t._dirty||!t._cacheable)&&(t._dirty=!1,t._value=t.effect.run()),t._value}set value(t){this._setter(t)}}function fv(e,t,r=!1){let n,o;const a=tt(e);return a?(n=e,o=J1):(n=e.get,o=e.set),new dv(n,o,a||!o,r)}function kn(e,t,r,n){let o;try{o=n?e(...n):e()}catch(a){e2(a,t,r)}return o}function U1(e,t,r,n){if(tt(e)){const a=kn(e,t,r,n);return a&&F8(a)&&a.catch(i=>{e2(i,t,r)}),a}const o=[];for(let a=0;a>>1,o=i1[n],a=Hi(o);amr&&i1.splice(t,1)}function mv(e){Ye(e)?Go.push(...e):(!Vr||!Vr.includes(e,e.allowRecurse?Fn+1:Fn))&&Go.push(e),mc()}function i3(e,t,r=Ai?mr+1:0){for(;rHi(r)-Hi(n)),Fn=0;Fne.id==null?1/0:e.id,gv=(e,t)=>{const r=Hi(e)-Hi(t);if(r===0){if(e.pre&&!t.pre)return-1;if(t.pre&&!e.pre)return 1}return r};function Cc(e){F0=!1,Ai=!0,i1.sort(gv);const t=J1;try{for(mr=0;mrNt(p)?p.trim():p)),d&&(o=r.map(N0))}let s,l=n[s=Hs(t)]||n[s=Hs(wr(t))];!l&&a&&(l=n[s=Hs(ho(t))]),l&&U1(l,e,6,o);const u=n[s+"Once"];if(u){if(!e.emitted)e.emitted={};else if(e.emitted[s])return;e.emitted[s]=!0,U1(u,e,6,o)}}function yc(e,t,r=!1){const n=t.emitsCache,o=n.get(e);if(o!==void 0)return o;const a=e.emits;let i={},s=!1;if(!tt(e)){const l=u=>{const c=yc(u,t,!0);c&&(s=!0,jt(i,c))};!r&&t.mixins.length&&t.mixins.forEach(l),e.extends&&l(e.extends),e.mixins&&e.mixins.forEach(l)}return!a&&!s?(kt(e)&&n.set(e,null),null):(Ye(a)?a.forEach(l=>i[l]=null):jt(i,a),kt(e)&&n.set(e,i),i)}function t2(e,t){return!e||!ql(t)?!1:(t=t.slice(2).replace(/Once$/,""),ht(e,t[0].toLowerCase()+t.slice(1))||ht(e,ho(t))||ht(e,t))}let r1=null,r2=null;function nl(e){const t=r1;return r1=e,r2=e&&e.type.__scopeId||null,t}function Je(e){r2=e}function et(){r2=null}function A(e,t=r1,r){if(!t||e._n)return e;const n=(...o)=>{n._d&&C3(-1);const a=nl(t);let i;try{i=e(...o)}finally{nl(a),n._d&&C3(1)}return i};return n._n=!0,n._c=!0,n._d=!0,n}function V2(e){const{type:t,vnode:r,proxy:n,withProxy:o,props:a,propsOptions:[i],slots:s,attrs:l,emit:u,render:c,renderCache:d,data:f,setupState:p,ctx:v,inheritAttrs:y}=e;let b,g;const C=nl(e);try{if(r.shapeFlag&4){const x=o||n,E=x;b=vr(c.call(E,x,d,a,p,f,v)),g=l}else{const x=t;b=vr(x.length>1?x(a,{attrs:l,slots:s,emit:u}):x(a,null)),g=t.props?l:yv(l)}}catch(x){vi.length=0,e2(x,e,1),b=R(O1)}let w=b;if(g&&y!==!1){const x=Object.keys(g),{shapeFlag:E}=w;x.length&&E&7&&(i&&x.some(M7)&&(g=bv(g,i)),w=Ur(w,g))}return r.dirs&&(w=Ur(w),w.dirs=w.dirs?w.dirs.concat(r.dirs):r.dirs),r.transition&&(w.transition=r.transition),b=w,nl(C),b}const yv=e=>{let t;for(const r in e)(r==="class"||r==="style"||ql(r))&&((t||(t={}))[r]=e[r]);return t},bv=(e,t)=>{const r={};for(const n in e)(!M7(n)||!(n.slice(9)in t))&&(r[n]=e[n]);return r};function wv(e,t,r){const{props:n,children:o,component:a}=e,{props:i,children:s,patchFlag:l}=t,u=a.emitsOptions;if(t.dirs||t.transition)return!0;if(r&&l>=0){if(l&1024)return!0;if(l&16)return n?s3(n,i,u):!!i;if(l&8){const c=t.dynamicProps;for(let d=0;de.__isSuspense;function Sv(e,t){t&&t.pendingBranch?Ye(e)?t.effects.push(...e):t.effects.push(e):mv(e)}function n2(e,t){return o2(e,null,t)}function Ev(e,t){return o2(e,null,{flush:"post"})}const fs={};function Ae(e,t,r){return o2(e,t,r)}function o2(e,t,{immediate:r,deep:n,flush:o,onTrack:a,onTrigger:i}=Et){var s;const l=K8()===((s=Xt)==null?void 0:s.scope)?Xt:null;let u,c=!1,d=!1;if(Pt(e)?(u=()=>e.value,c=rl(e)):Yo(e)?(u=()=>e,n=!0):Ye(e)?(d=!0,c=e.some(x=>Yo(x)||rl(x)),u=()=>e.map(x=>{if(Pt(x))return x.value;if(Yo(x))return Gn(x);if(tt(x))return kn(x,l,2)})):tt(e)?t?u=()=>kn(e,l,2):u=()=>{if(!(l&&l.isUnmounted))return f&&f(),U1(e,l,3,[p])}:u=J1,t&&n){const x=u;u=()=>Gn(x())}let f,p=x=>{f=C.onStop=()=>{kn(x,l,4),f=C.onStop=void 0}},v;if(Oi)if(p=J1,t?r&&U1(t,l,3,[u(),d?[]:void 0,p]):u(),o==="sync"){const x=vm();v=x.__watcherHandles||(x.__watcherHandles=[])}else return J1;let y=d?new Array(e.length).fill(fs):fs;const b=()=>{if(C.active)if(t){const x=C.run();(n||c||(d?x.some((E,I)=>ro(E,y[I])):ro(x,y)))&&(f&&f(),U1(t,l,3,[x,y===fs?void 0:d&&y[0]===fs?[]:y,p]),y=x)}else C.run()};b.allowRecurse=!!t;let g;o==="sync"?g=b:o==="post"?g=()=>_1(b,l&&l.suspense):(b.pre=!0,l&&(b.id=l.uid),g=()=>V7(b));const C=new A7(u,g);t?r?b():y=C.run():o==="post"?_1(C.run.bind(C),l&&l.suspense):C.run();const w=()=>{C.stop(),l&&l.scope&&S7(l.scope.effects,C)};return v&&v.push(w),w}function Lv(e,t,r){const n=this.proxy,o=Nt(e)?e.includes(".")?wc(n,e):()=>n[e]:e.bind(n,n);let a;tt(t)?a=t:(a=t.handler,r=t);const i=Xt;sa(this);const s=o2(o,a.bind(n),r);return i?sa(i):eo(),s}function wc(e,t){const r=t.split(".");return()=>{let n=e;for(let o=0;o{Gn(r,t)});else if(j8(e))for(const r in e)Gn(e[r],t);return e}function ia(e,t){const r=r1;if(r===null)return e;const n=u2(r)||r.proxy,o=e.dirs||(e.dirs=[]);for(let a=0;a{e.isMounted=!0}),Sr(()=>{e.isUnmounting=!0}),e}const I1=[Function,Array],kc={mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:I1,onEnter:I1,onAfterEnter:I1,onEnterCancelled:I1,onBeforeLeave:I1,onLeave:I1,onAfterLeave:I1,onLeaveCancelled:I1,onBeforeAppear:I1,onAppear:I1,onAfterAppear:I1,onAppearCancelled:I1},Av={name:"BaseTransition",props:kc,setup(e,{slots:t}){const r=Gi(),n=_c();let o;return()=>{const a=t.default&&N7(t.default(),!0);if(!a||!a.length)return;let i=a[0];if(a.length>1){for(const y of a)if(y.type!==O1){i=y;break}}const s=ft(e),{mode:l}=s;if(n.isLeaving)return I2(i);const u=u3(i);if(!u)return I2(i);const c=Bi(u,s,n,r);Ti(u,c);const d=r.subTree,f=d&&u3(d);let p=!1;const{getTransitionKey:v}=u.type;if(v){const y=v();o===void 0?o=y:y!==o&&(o=y,p=!0)}if(f&&f.type!==O1&&(!Un(u,f)||p)){const y=Bi(f,s,n,r);if(Ti(f,y),l==="out-in")return n.isLeaving=!0,y.afterLeave=()=>{n.isLeaving=!1,r.update.active!==!1&&r.update()},I2(i);l==="in-out"&&u.type!==O1&&(y.delayLeave=(b,g,C)=>{const w=xc(n,f);w[String(f.key)]=f,b[pn]=()=>{g(),b[pn]=void 0,delete c.delayedLeave},c.delayedLeave=C})}return i}}},Hv=Av;function xc(e,t){const{leavingVNodes:r}=e;let n=r.get(t.type);return n||(n=Object.create(null),r.set(t.type,n)),n}function Bi(e,t,r,n){const{appear:o,mode:a,persisted:i=!1,onBeforeEnter:s,onEnter:l,onAfterEnter:u,onEnterCancelled:c,onBeforeLeave:d,onLeave:f,onAfterLeave:p,onLeaveCancelled:v,onBeforeAppear:y,onAppear:b,onAfterAppear:g,onAppearCancelled:C}=t,w=String(e.key),x=xc(r,e),E=(N,U)=>{N&&U1(N,n,9,U)},I=(N,U)=>{const O=U[1];E(N,U),Ye(N)?N.every(V=>V.length<=1)&&O():N.length<=1&&O()},T={mode:a,persisted:i,beforeEnter(N){let U=s;if(!r.isMounted)if(o)U=y||s;else return;N[pn]&&N[pn](!0);const O=x[w];O&&Un(e,O)&&O.el[pn]&&O.el[pn](),E(U,[N])},enter(N){let U=l,O=u,V=c;if(!r.isMounted)if(o)U=b||l,O=g||u,V=C||c;else return;let D=!1;const F=N[ps]=ee=>{D||(D=!0,ee?E(V,[N]):E(O,[N]),T.delayedLeave&&T.delayedLeave(),N[ps]=void 0)};U?I(U,[N,F]):F()},leave(N,U){const O=String(e.key);if(N[ps]&&N[ps](!0),r.isUnmounting)return U();E(d,[N]);let V=!1;const D=N[pn]=F=>{V||(V=!0,U(),F?E(v,[N]):E(p,[N]),N[pn]=void 0,x[O]===e&&delete x[O])};x[O]=e,f?I(f,[N,D]):D()},clone(N){return Bi(N,t,r,n)}};return T}function I2(e){if(a2(e))return e=Ur(e),e.children=null,e}function u3(e){return a2(e)?e.children?e.children[0]:void 0:e}function Ti(e,t){e.shapeFlag&6&&e.component?Ti(e.component.subTree,t):e.shapeFlag&128?(e.ssContent.transition=t.clone(e.ssContent),e.ssFallback.transition=t.clone(e.ssFallback)):e.transition=t}function N7(e,t=!1,r){let n=[],o=0;for(let a=0;a1)for(let a=0;ajt({name:e.name},t,{setup:e}))():e}const fi=e=>!!e.type.__asyncLoader,a2=e=>e.type.__isKeepAlive;function Bv(e,t){Mc(e,"a",t)}function Tv(e,t){Mc(e,"da",t)}function Mc(e,t,r=Xt){const n=e.__wdc||(e.__wdc=()=>{let o=r;for(;o;){if(o.isDeactivated)return;o=o.parent}return e()});if(i2(t,n,r),r){let o=r.parent;for(;o&&o.parent;)a2(o.parent.vnode)&&Dv(n,t,r,o),o=o.parent}}function Dv(e,t,r,n){const o=i2(t,e,n,!0);g1(()=>{S7(n[t],o)},r)}function i2(e,t,r=Xt,n=!1){if(r){const o=r[e]||(r[e]=[]),a=t.__weh||(t.__weh=(...i)=>{if(r.isUnmounted)return;Sa(),sa(r);const s=U1(t,r,e,i);return eo(),Ea(),s});return n?o.unshift(a):o.push(a),a}}const Wr=e=>(t,r=Xt)=>(!Oi||e==="sp")&&i2(e,(...n)=>t(...n),r),Ov=Wr("bm"),wt=Wr("m"),Vv=Wr("bu"),Sc=Wr("u"),Sr=Wr("bum"),g1=Wr("um"),Iv=Wr("sp"),Pv=Wr("rtg"),Nv=Wr("rtc");function Zv(e,t=Xt){i2("ec",e,t)}function rt(e,t,r,n){let o;const a=r&&r[n];if(Ye(e)||Nt(e)){o=new Array(e.length);for(let i=0,s=e.length;it(i,s,void 0,a&&a[s]));else{const i=Object.keys(e);o=new Array(i.length);for(let s=0,l=i.length;s{const a=n.fn(...o);return a&&(a.key=n.key),a}:n.fn)}return e}function Q(e,t,r={},n,o){if(r1.isCE||r1.parent&&fi(r1.parent)&&r1.parent.isCE)return t!=="default"&&(r.name=t),R("slot",r,n&&n());let a=e[t];a&&a._c&&(a._d=!1),h();const i=a&&Ec(a(r)),s=J(Ee,{key:r.key||i&&i.key||`_${t}`},i||(n?n():[]),i&&e._===1?64:-2);return!o&&s.scopeId&&(s.slotScopeIds=[s.scopeId+"-s"]),a&&a._c&&(a._d=!0),s}function Ec(e){return e.some(t=>il(t)?!(t.type===O1||t.type===Ee&&!Ec(t.children)):!0)?e:null}function U0(e,t){const r={};for(const n in e)r[t&&/[A-Z]/.test(n)?`on:${n}`:Hs(n)]=e[n];return r}const j0=e=>e?Zc(e)?u2(e)||e.proxy:j0(e.parent):null,pi=jt(Object.create(null),{$:e=>e,$el:e=>e.vnode.el,$data:e=>e.data,$props:e=>e.props,$attrs:e=>e.attrs,$slots:e=>e.slots,$refs:e=>e.refs,$parent:e=>j0(e.parent),$root:e=>j0(e.root),$emit:e=>e.emit,$options:e=>Z7(e),$forceUpdate:e=>e.f||(e.f=()=>V7(e.update)),$nextTick:e=>e.n||(e.n=Ft.bind(e.proxy)),$watch:e=>Lv.bind(e)}),P2=(e,t)=>e!==Et&&!e.__isScriptSetup&&ht(e,t),$v={get({_:e},t){const{ctx:r,setupState:n,data:o,props:a,accessCache:i,type:s,appContext:l}=e;let u;if(t[0]!=="$"){const p=i[t];if(p!==void 0)switch(p){case 1:return n[t];case 2:return o[t];case 4:return r[t];case 3:return a[t]}else{if(P2(n,t))return i[t]=1,n[t];if(o!==Et&&ht(o,t))return i[t]=2,o[t];if((u=e.propsOptions[0])&&ht(u,t))return i[t]=3,a[t];if(r!==Et&&ht(r,t))return i[t]=4,r[t];Y0&&(i[t]=0)}}const c=pi[t];let d,f;if(c)return t==="$attrs"&&S1(e,"get",t),c(e);if((d=s.__cssModules)&&(d=d[t]))return d;if(r!==Et&&ht(r,t))return i[t]=4,r[t];if(f=l.config.globalProperties,ht(f,t))return f[t]},set({_:e},t,r){const{data:n,setupState:o,ctx:a}=e;return P2(o,t)?(o[t]=r,!0):n!==Et&&ht(n,t)?(n[t]=r,!0):ht(e.props,t)||t[0]==="$"&&t.slice(1)in e?!1:(a[t]=r,!0)},has({_:{data:e,setupState:t,accessCache:r,ctx:n,appContext:o,propsOptions:a}},i){let s;return!!r[i]||e!==Et&&ht(e,i)||P2(t,i)||(s=a[0])&&ht(s,i)||ht(n,i)||ht(pi,i)||ht(o.config.globalProperties,i)},defineProperty(e,t,r){return r.get!=null?e._.accessCache[t]=0:ht(r,"value")&&this.set(e,t,r.value,null),Reflect.defineProperty(e,t,r)}};function Zt(){return Lc().slots}function or(){return Lc().attrs}function Lc(){const e=Gi();return e.setupContext||(e.setupContext=Rc(e))}function c3(e){return Ye(e)?e.reduce((t,r)=>(t[r]=null,t),{}):e}let Y0=!0;function Rv(e){const t=Z7(e),r=e.proxy,n=e.ctx;Y0=!1,t.beforeCreate&&d3(t.beforeCreate,e,"bc");const{data:o,computed:a,methods:i,watch:s,provide:l,inject:u,created:c,beforeMount:d,mounted:f,beforeUpdate:p,updated:v,activated:y,deactivated:b,beforeDestroy:g,beforeUnmount:C,destroyed:w,unmounted:x,render:E,renderTracked:I,renderTriggered:T,errorCaptured:N,serverPrefetch:U,expose:O,inheritAttrs:V,components:D,directives:F,filters:ee}=t;if(u&&zv(u,n,null),i)for(const te in i){const ue=i[te];tt(ue)&&(n[te]=ue.bind(r))}if(o){const te=o.call(r,r);kt(te)&&(e.data=nr(te))}if(Y0=!0,a)for(const te in a){const ue=a[te],ke=tt(ue)?ue.bind(r,r):tt(ue.get)?ue.get.bind(r,r):J1,ae=!tt(ue)&&tt(ue.set)?ue.set.bind(r):J1,xe=_({get:ke,set:ae});Object.defineProperty(n,te,{enumerable:!0,configurable:!0,get:()=>xe.value,set:ge=>xe.value=ge})}if(s)for(const te in s)Ac(s[te],n,r,te);if(l){const te=tt(l)?l.call(r):l;Reflect.ownKeys(te).forEach(ue=>{er(ue,te[ue])})}c&&d3(c,e,"c");function q(te,ue){Ye(ue)?ue.forEach(ke=>te(ke.bind(r))):ue&&te(ue.bind(r))}if(q(Ov,d),q(wt,f),q(Vv,p),q(Sc,v),q(Bv,y),q(Tv,b),q(Zv,N),q(Nv,I),q(Pv,T),q(Sr,C),q(g1,x),q(Iv,U),Ye(O))if(O.length){const te=e.exposed||(e.exposed={});O.forEach(ue=>{Object.defineProperty(te,ue,{get:()=>r[ue],set:ke=>r[ue]=ke})})}else e.exposed||(e.exposed={});E&&e.render===J1&&(e.render=E),V!=null&&(e.inheritAttrs=V),D&&(e.components=D),F&&(e.directives=F)}function zv(e,t,r=J1){Ye(e)&&(e=G0(e));for(const n in e){const o=e[n];let a;kt(o)?"default"in o?a=qt(o.from||n,o.default,!0):a=qt(o.from||n):a=qt(o),Pt(a)?Object.defineProperty(t,n,{enumerable:!0,configurable:!0,get:()=>a.value,set:i=>a.value=i}):t[n]=a}}function d3(e,t,r){U1(Ye(e)?e.map(n=>n.bind(t.proxy)):e.bind(t.proxy),t,r)}function Ac(e,t,r,n){const o=n.includes(".")?wc(r,n):()=>r[n];if(Nt(e)){const a=t[e];tt(a)&&Ae(o,a)}else if(tt(e))Ae(o,e.bind(r));else if(kt(e))if(Ye(e))e.forEach(a=>Ac(a,t,r,n));else{const a=tt(e.handler)?e.handler.bind(r):t[e.handler];tt(a)&&Ae(o,a,e)}}function Z7(e){const t=e.type,{mixins:r,extends:n}=t,{mixins:o,optionsCache:a,config:{optionMergeStrategies:i}}=e.appContext,s=a.get(t);let l;return s?l=s:!o.length&&!r&&!n?l=t:(l={},o.length&&o.forEach(u=>ol(l,u,i,!0)),ol(l,t,i)),kt(t)&&a.set(t,l),l}function ol(e,t,r,n=!1){const{mixins:o,extends:a}=t;a&&ol(e,a,r,!0),o&&o.forEach(i=>ol(e,i,r,!0));for(const i in t)if(!(n&&i==="expose")){const s=Fv[i]||r&&r[i];e[i]=s?s(e[i],t[i]):t[i]}return e}const Fv={data:f3,props:p3,emits:p3,methods:Ja,computed:Ja,beforeCreate:c1,created:c1,beforeMount:c1,mounted:c1,beforeUpdate:c1,updated:c1,beforeDestroy:c1,beforeUnmount:c1,destroyed:c1,unmounted:c1,activated:c1,deactivated:c1,errorCaptured:c1,serverPrefetch:c1,components:Ja,directives:Ja,watch:jv,provide:f3,inject:Uv};function f3(e,t){return t?e?function(){return jt(tt(e)?e.call(this,this):e,tt(t)?t.call(this,this):t)}:t:e}function Uv(e,t){return Ja(G0(e),G0(t))}function G0(e){if(Ye(e)){const t={};for(let r=0;r1)return r&&tt(t)?t.call(n&&n.proxy):t}}function Kv(e,t,r,n=!1){const o={},a={};el(a,l2,1),e.propsDefaults=Object.create(null),Bc(e,t,o,a);for(const i in e.propsOptions[0])i in o||(o[i]=void 0);r?e.props=n?o:ac(o):e.type.props?e.props=o:e.props=a,e.attrs=a}function qv(e,t,r,n){const{props:o,attrs:a,vnode:{patchFlag:i}}=e,s=ft(o),[l]=e.propsOptions;let u=!1;if((n||i>0)&&!(i&16)){if(i&8){const c=e.vnode.dynamicProps;for(let d=0;d{l=!0;const[f,p]=Tc(d,t,!0);jt(i,f),p&&s.push(...p)};!r&&t.mixins.length&&t.mixins.forEach(c),e.extends&&c(e.extends),e.mixins&&e.mixins.forEach(c)}if(!a&&!l)return kt(e)&&n.set(e,Uo),Uo;if(Ye(a))for(let c=0;c-1,p[1]=y<0||v-1||ht(p,"default"))&&s.push(d)}}}const u=[i,s];return kt(e)&&n.set(e,u),u}function h3(e){return e[0]!=="$"}function v3(e){const t=e&&e.toString().match(/^\s*(function|class) (\w+)/);return t?t[2]:e===null?"null":""}function m3(e,t){return v3(e)===v3(t)}function g3(e,t){return Ye(t)?t.findIndex(r=>m3(r,e)):tt(t)&&m3(t,e)?0:-1}const Dc=e=>e[0]==="_"||e==="$stable",$7=e=>Ye(e)?e.map(vr):[vr(e)],Wv=(e,t,r)=>{if(t._n)return t;const n=A((...o)=>$7(t(...o)),r);return n._c=!1,n},Oc=(e,t,r)=>{const n=e._ctx;for(const o in e){if(Dc(o))continue;const a=e[o];if(tt(a))t[o]=Wv(o,a,n);else if(a!=null){const i=$7(a);t[o]=()=>i}}},Vc=(e,t)=>{const r=$7(t);e.slots.default=()=>r},Qv=(e,t)=>{if(e.vnode.shapeFlag&32){const r=t._;r?(e.slots=ft(t),el(t,"_",r)):Oc(t,e.slots={})}else e.slots={},t&&Vc(e,t);el(e.slots,l2,1)},Xv=(e,t,r)=>{const{vnode:n,slots:o}=e;let a=!0,i=Et;if(n.shapeFlag&32){const s=t._;s?r&&s===1?a=!1:(jt(o,t),!r&&s===1&&delete o._):(a=!t.$stable,Oc(t,o)),i=t}else t&&(Vc(e,t),i={default:1});if(a)for(const s in o)!Dc(s)&&i[s]==null&&delete o[s]};function q0(e,t,r,n,o=!1){if(Ye(e)){e.forEach((f,p)=>q0(f,t&&(Ye(t)?t[p]:t),r,n,o));return}if(fi(n)&&!o)return;const a=n.shapeFlag&4?u2(n.component)||n.component.proxy:n.el,i=o?null:a,{i:s,r:l}=e,u=t&&t.r,c=s.refs===Et?s.refs={}:s.refs,d=s.setupState;if(u!=null&&u!==l&&(Nt(u)?(c[u]=null,ht(d,u)&&(d[u]=null)):Pt(u)&&(u.value=null)),tt(l))kn(l,s,12,[i,c]);else{const f=Nt(l),p=Pt(l);if(f||p){const v=()=>{if(e.f){const y=f?ht(d,l)?d[l]:c[l]:l.value;o?Ye(y)&&S7(y,a):Ye(y)?y.includes(a)||y.push(a):f?(c[l]=[a],ht(d,l)&&(d[l]=c[l])):(l.value=[a],e.k&&(c[e.k]=l.value))}else f?(c[l]=i,ht(d,l)&&(d[l]=i)):p&&(l.value=i,e.k&&(c[e.k]=i))};i?(v.id=-1,_1(v,r)):v()}}}const _1=Sv;function Jv(e){return em(e)}function em(e,t){const r=Z0();r.__VUE__=!0;const{insert:n,remove:o,patchProp:a,createElement:i,createText:s,createComment:l,setText:u,setElementText:c,parentNode:d,nextSibling:f,setScopeId:p=J1,insertStaticContent:v}=e,y=(S,L,$,K=null,re=null,le=null,ye=!1,me=null,Ce=!!L.dynamicChildren)=>{if(S===L)return;S&&!Un(S,L)&&(K=W(S),ge(S,re,le,!0),S=null),L.patchFlag===-2&&(Ce=!1,L.dynamicChildren=null);const{type:ce,ref:Be,shapeFlag:Se}=L;switch(ce){case s2:b(S,L,$,K);break;case O1:g(S,L,$,K);break;case hi:S==null&&C(L,$,K,ye);break;case Ee:D(S,L,$,K,re,le,ye,me,Ce);break;default:Se&1?E(S,L,$,K,re,le,ye,me,Ce):Se&6?F(S,L,$,K,re,le,ye,me,Ce):(Se&64||Se&128)&&ce.process(S,L,$,K,re,le,ye,me,Ce,j)}Be!=null&&re&&q0(Be,S&&S.ref,le,L||S,!L)},b=(S,L,$,K)=>{if(S==null)n(L.el=s(L.children),$,K);else{const re=L.el=S.el;L.children!==S.children&&u(re,L.children)}},g=(S,L,$,K)=>{S==null?n(L.el=l(L.children||""),$,K):L.el=S.el},C=(S,L,$,K)=>{[S.el,S.anchor]=v(S.children,L,$,K,S.el,S.anchor)},w=({el:S,anchor:L},$,K)=>{let re;for(;S&&S!==L;)re=f(S),n(S,$,K),S=re;n(L,$,K)},x=({el:S,anchor:L})=>{let $;for(;S&&S!==L;)$=f(S),o(S),S=$;o(L)},E=(S,L,$,K,re,le,ye,me,Ce)=>{ye=ye||L.type==="svg",S==null?I(L,$,K,re,le,ye,me,Ce):U(S,L,re,le,ye,me,Ce)},I=(S,L,$,K,re,le,ye,me)=>{let Ce,ce;const{type:Be,props:Se,shapeFlag:Te,transition:Ne,dirs:Ge}=S;if(Ce=S.el=i(S.type,le,Se&&Se.is,Se),Te&8?c(Ce,S.children):Te&16&&N(S.children,Ce,null,K,re,le&&Be!=="foreignObject",ye,me),Ge&&Tn(S,null,K,"created"),T(Ce,S,S.scopeId,ye,K),Se){for(const pe in Se)pe!=="value"&&!As(pe)&&a(Ce,pe,null,Se[pe],le,S.children,K,re,De);"value"in Se&&a(Ce,"value",null,Se.value),(ce=Se.onVnodeBeforeMount)&&lr(ce,K,S)}Ge&&Tn(S,null,K,"beforeMount");const nt=tm(re,Ne);nt&&Ne.beforeEnter(Ce),n(Ce,L,$),((ce=Se&&Se.onVnodeMounted)||nt||Ge)&&_1(()=>{ce&&lr(ce,K,S),nt&&Ne.enter(Ce),Ge&&Tn(S,null,K,"mounted")},re)},T=(S,L,$,K,re)=>{if($&&p(S,$),K)for(let le=0;le{for(let ce=Ce;ce{const me=L.el=S.el;let{patchFlag:Ce,dynamicChildren:ce,dirs:Be}=L;Ce|=S.patchFlag&16;const Se=S.props||Et,Te=L.props||Et;let Ne;$&&Dn($,!1),(Ne=Te.onVnodeBeforeUpdate)&&lr(Ne,$,L,S),Be&&Tn(L,S,$,"beforeUpdate"),$&&Dn($,!0);const Ge=re&&L.type!=="foreignObject";if(ce?O(S.dynamicChildren,ce,me,$,K,Ge,le):ye||ue(S,L,me,null,$,K,Ge,le,!1),Ce>0){if(Ce&16)V(me,L,Se,Te,$,K,re);else if(Ce&2&&Se.class!==Te.class&&a(me,"class",null,Te.class,re),Ce&4&&a(me,"style",Se.style,Te.style,re),Ce&8){const nt=L.dynamicProps;for(let pe=0;pe{Ne&&lr(Ne,$,L,S),Be&&Tn(L,S,$,"updated")},K)},O=(S,L,$,K,re,le,ye)=>{for(let me=0;me{if($!==K){if($!==Et)for(const me in $)!As(me)&&!(me in K)&&a(S,me,$[me],null,ye,L.children,re,le,De);for(const me in K){if(As(me))continue;const Ce=K[me],ce=$[me];Ce!==ce&&me!=="value"&&a(S,me,ce,Ce,ye,L.children,re,le,De)}"value"in K&&a(S,"value",$.value,K.value)}},D=(S,L,$,K,re,le,ye,me,Ce)=>{const ce=L.el=S?S.el:s(""),Be=L.anchor=S?S.anchor:s("");let{patchFlag:Se,dynamicChildren:Te,slotScopeIds:Ne}=L;Ne&&(me=me?me.concat(Ne):Ne),S==null?(n(ce,$,K),n(Be,$,K),N(L.children,$,Be,re,le,ye,me,Ce)):Se>0&&Se&64&&Te&&S.dynamicChildren?(O(S.dynamicChildren,Te,$,re,le,ye,me),(L.key!=null||re&&L===re.subTree)&&Ic(S,L,!0)):ue(S,L,$,Be,re,le,ye,me,Ce)},F=(S,L,$,K,re,le,ye,me,Ce)=>{L.slotScopeIds=me,S==null?L.shapeFlag&512?re.ctx.activate(L,$,K,ye,Ce):ee(L,$,K,re,le,ye,Ce):z(S,L,Ce)},ee=(S,L,$,K,re,le,ye)=>{const me=S.component=lm(S,K,re);if(a2(S)&&(me.ctx.renderer=j),um(me),me.asyncDep){if(re&&re.registerDep(me,q),!S.el){const Ce=me.subTree=R(O1);g(null,Ce,L,$)}return}q(me,S,L,$,re,le,ye)},z=(S,L,$)=>{const K=L.component=S.component;if(wv(S,L,$))if(K.asyncDep&&!K.asyncResolved){te(K,L,$);return}else K.next=L,vv(K.update),K.update();else L.el=S.el,K.vnode=L},q=(S,L,$,K,re,le,ye)=>{const me=()=>{if(S.isMounted){let{next:Be,bu:Se,u:Te,parent:Ne,vnode:Ge}=S,nt=Be,pe;Dn(S,!1),Be?(Be.el=Ge.el,te(S,Be,ye)):Be=Ge,Se&&Bs(Se),(pe=Be.props&&Be.props.onVnodeBeforeUpdate)&&lr(pe,Ne,Be,Ge),Dn(S,!0);const Ze=V2(S),Oe=S.subTree;S.subTree=Ze,y(Oe,Ze,d(Oe.el),W(Oe),S,re,le),Be.el=Ze.el,nt===null&&_v(S,Ze.el),Te&&_1(Te,re),(pe=Be.props&&Be.props.onVnodeUpdated)&&_1(()=>lr(pe,Ne,Be,Ge),re)}else{let Be;const{el:Se,props:Te}=L,{bm:Ne,m:Ge,parent:nt}=S,pe=fi(L);if(Dn(S,!1),Ne&&Bs(Ne),!pe&&(Be=Te&&Te.onVnodeBeforeMount)&&lr(Be,nt,L),Dn(S,!0),Se&&se){const Ze=()=>{S.subTree=V2(S),se(Se,S.subTree,S,re,null)};pe?L.type.__asyncLoader().then(()=>!S.isUnmounted&&Ze()):Ze()}else{const Ze=S.subTree=V2(S);y(null,Ze,$,K,S,re,le),L.el=Ze.el}if(Ge&&_1(Ge,re),!pe&&(Be=Te&&Te.onVnodeMounted)){const Ze=L;_1(()=>lr(Be,nt,Ze),re)}(L.shapeFlag&256||nt&&fi(nt.vnode)&&nt.vnode.shapeFlag&256)&&S.a&&_1(S.a,re),S.isMounted=!0,L=$=K=null}},Ce=S.effect=new A7(me,()=>V7(ce),S.scope),ce=S.update=()=>Ce.run();ce.id=S.uid,Dn(S,!0),ce()},te=(S,L,$)=>{L.component=S;const K=S.vnode.props;S.vnode=L,S.next=null,qv(S,L.props,K,$),Xv(S,L.children,$),Sa(),i3(S),Ea()},ue=(S,L,$,K,re,le,ye,me,Ce=!1)=>{const ce=S&&S.children,Be=S?S.shapeFlag:0,Se=L.children,{patchFlag:Te,shapeFlag:Ne}=L;if(Te>0){if(Te&128){ae(ce,Se,$,K,re,le,ye,me,Ce);return}else if(Te&256){ke(ce,Se,$,K,re,le,ye,me,Ce);return}}Ne&8?(Be&16&&De(ce,re,le),Se!==ce&&c($,Se)):Be&16?Ne&16?ae(ce,Se,$,K,re,le,ye,me,Ce):De(ce,re,le,!0):(Be&8&&c($,""),Ne&16&&N(Se,$,K,re,le,ye,me,Ce))},ke=(S,L,$,K,re,le,ye,me,Ce)=>{S=S||Uo,L=L||Uo;const ce=S.length,Be=L.length,Se=Math.min(ce,Be);let Te;for(Te=0;TeBe?De(S,re,le,!0,!1,Se):N(L,$,K,re,le,ye,me,Ce,Se)},ae=(S,L,$,K,re,le,ye,me,Ce)=>{let ce=0;const Be=L.length;let Se=S.length-1,Te=Be-1;for(;ce<=Se&&ce<=Te;){const Ne=S[ce],Ge=L[ce]=Ce?hn(L[ce]):vr(L[ce]);if(Un(Ne,Ge))y(Ne,Ge,$,null,re,le,ye,me,Ce);else break;ce++}for(;ce<=Se&&ce<=Te;){const Ne=S[Se],Ge=L[Te]=Ce?hn(L[Te]):vr(L[Te]);if(Un(Ne,Ge))y(Ne,Ge,$,null,re,le,ye,me,Ce);else break;Se--,Te--}if(ce>Se){if(ce<=Te){const Ne=Te+1,Ge=NeTe)for(;ce<=Se;)ge(S[ce],re,le,!0),ce++;else{const Ne=ce,Ge=ce,nt=new Map;for(ce=Ge;ce<=Te;ce++){const Pe=L[ce]=Ce?hn(L[ce]):vr(L[ce]);Pe.key!=null&&nt.set(Pe.key,ce)}let pe,Ze=0;const Oe=Te-Ge+1;let Qe=!1,de=0;const be=new Array(Oe);for(ce=0;ce=Oe){ge(Pe,re,le,!0);continue}let He;if(Pe.key!=null)He=nt.get(Pe.key);else for(pe=Ge;pe<=Te;pe++)if(be[pe-Ge]===0&&Un(Pe,L[pe])){He=pe;break}He===void 0?ge(Pe,re,le,!0):(be[He-Ge]=ce+1,He>=de?de=He:Qe=!0,y(Pe,L[He],$,null,re,le,ye,me,Ce),Ze++)}const Le=Qe?rm(be):Uo;for(pe=Le.length-1,ce=Oe-1;ce>=0;ce--){const Pe=Ge+ce,He=L[Pe],X=Pe+1{const{el:le,type:ye,transition:me,children:Ce,shapeFlag:ce}=S;if(ce&6){xe(S.component.subTree,L,$,K);return}if(ce&128){S.suspense.move(L,$,K);return}if(ce&64){ye.move(S,L,$,j);return}if(ye===Ee){n(le,L,$);for(let Se=0;Seme.enter(le),re);else{const{leave:Se,delayLeave:Te,afterLeave:Ne}=me,Ge=()=>n(le,L,$),nt=()=>{Se(le,()=>{Ge(),Ne&&Ne()})};Te?Te(le,Ge,nt):nt()}else n(le,L,$)},ge=(S,L,$,K=!1,re=!1)=>{const{type:le,props:ye,ref:me,children:Ce,dynamicChildren:ce,shapeFlag:Be,patchFlag:Se,dirs:Te}=S;if(me!=null&&q0(me,null,$,S,!0),Be&256){L.ctx.deactivate(S);return}const Ne=Be&1&&Te,Ge=!fi(S);let nt;if(Ge&&(nt=ye&&ye.onVnodeBeforeUnmount)&&lr(nt,L,S),Be&6)$e(S.component,$,K);else{if(Be&128){S.suspense.unmount($,K);return}Ne&&Tn(S,null,L,"beforeUnmount"),Be&64?S.type.remove(S,L,$,re,j,K):ce&&(le!==Ee||Se>0&&Se&64)?De(ce,L,$,!1,!0):(le===Ee&&Se&384||!re&&Be&16)&&De(Ce,L,$),K&&Ke(S)}(Ge&&(nt=ye&&ye.onVnodeUnmounted)||Ne)&&_1(()=>{nt&&lr(nt,L,S),Ne&&Tn(S,null,L,"unmounted")},$)},Ke=S=>{const{type:L,el:$,anchor:K,transition:re}=S;if(L===Ee){fe($,K);return}if(L===hi){x(S);return}const le=()=>{o($),re&&!re.persisted&&re.afterLeave&&re.afterLeave()};if(S.shapeFlag&1&&re&&!re.persisted){const{leave:ye,delayLeave:me}=re,Ce=()=>ye($,le);me?me(S.el,le,Ce):Ce()}else le()},fe=(S,L)=>{let $;for(;S!==L;)$=f(S),o(S),S=$;o(L)},$e=(S,L,$)=>{const{bum:K,scope:re,update:le,subTree:ye,um:me}=S;K&&Bs(K),re.stop(),le&&(le.active=!1,ge(ye,S,L,$)),me&&_1(me,L),_1(()=>{S.isUnmounted=!0},L),L&&L.pendingBranch&&!L.isUnmounted&&S.asyncDep&&!S.asyncResolved&&S.suspenseId===L.pendingId&&(L.deps--,L.deps===0&&L.resolve())},De=(S,L,$,K=!1,re=!1,le=0)=>{for(let ye=le;yeS.shapeFlag&6?W(S.component.subTree):S.shapeFlag&128?S.suspense.next():f(S.anchor||S.el),ve=(S,L,$)=>{S==null?L._vnode&&ge(L._vnode,null,null,!0):y(L._vnode||null,S,L,null,null,null,$),i3(),gc(),L._vnode=S},j={p:y,um:ge,m:xe,r:Ke,mt:ee,mc:N,pc:ue,pbc:O,n:W,o:e};let G,se;return t&&([G,se]=t(j)),{render:ve,hydrate:G,createApp:Gv(ve,G)}}function Dn({effect:e,update:t},r){e.allowRecurse=t.allowRecurse=r}function tm(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}function Ic(e,t,r=!1){const n=e.children,o=t.children;if(Ye(n)&&Ye(o))for(let a=0;a>1,e[r[s]]0&&(t[n]=r[a-1]),r[a]=n)}}for(a=r.length,i=r[a-1];a-- >0;)r[a]=i,i=t[i];return r}const nm=e=>e.__isTeleport,Ee=Symbol.for("v-fgt"),s2=Symbol.for("v-txt"),O1=Symbol.for("v-cmt"),hi=Symbol.for("v-stc"),vi=[];let X1=null;function h(e=!1){vi.push(X1=e?null:[])}function om(){vi.pop(),X1=vi[vi.length-1]||null}let Di=1;function C3(e){Di+=e}function Pc(e){return e.dynamicChildren=Di>0?X1||Uo:null,om(),Di>0&&X1&&X1.push(e),e}function k(e,t,r,n,o,a){return Pc(m(e,t,r,n,o,a,!0))}function J(e,t,r,n,o){return Pc(R(e,t,r,n,o,!0))}function il(e){return e?e.__v_isVNode===!0:!1}function Un(e,t){return e.type===t.type&&e.key===t.key}const l2="__vInternal",Nc=({key:e})=>e??null,Ds=({ref:e,ref_key:t,ref_for:r})=>(typeof e=="number"&&(e=""+e),e!=null?Nt(e)||Pt(e)||tt(e)?{i:r1,r:e,k:t,f:!!r}:e:null);function m(e,t=null,r=null,n=0,o=null,a=e===Ee?0:1,i=!1,s=!1){const l={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&Nc(t),ref:t&&Ds(t),scopeId:r2,slotScopeIds:null,children:r,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetAnchor:null,staticCount:0,shapeFlag:a,patchFlag:n,dynamicProps:o,dynamicChildren:null,appContext:null,ctx:r1};return s?(R7(l,r),a&128&&e.normalize(l)):r&&(l.shapeFlag|=Nt(r)?8:16),Di>0&&!i&&X1&&(l.patchFlag>0||a&6)&&l.patchFlag!==32&&X1.push(l),l}const R=am;function am(e,t=null,r=null,n=0,o=null,a=!1){if((!e||e===bc)&&(e=O1),il(e)){const s=Ur(e,t,!0);return r&&R7(s,r),Di>0&&!a&&X1&&(s.shapeFlag&6?X1[X1.indexOf(e)]=s:X1.push(s)),s.patchFlag|=-2,s}if(pm(e)&&(e=e.__vccOpts),t){t=sl(t);let{class:s,style:l}=t;s&&!Nt(s)&&(t.class=ie(s)),kt(l)&&(sc(l)&&!Ye(l)&&(l=jt({},l)),t.style=Fe(l))}const i=Nt(e)?1:Mv(e)?128:nm(e)?64:kt(e)?4:tt(e)?2:0;return m(e,t,r,n,o,i,a,!0)}function sl(e){return e?sc(e)||l2 in e?jt({},e):e:null}function Ur(e,t,r=!1){const{props:n,ref:o,patchFlag:a,children:i}=e,s=t?lt(n||{},t):n;return{__v_isVNode:!0,__v_skip:!0,type:e.type,props:s,key:s&&Nc(s),ref:t&&t.ref?r&&o?Ye(o)?o.concat(Ds(t)):[o,Ds(t)]:Ds(t):o,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:i,target:e.target,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==Ee?a===-1?16:a|16:a,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:e.transition,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&Ur(e.ssContent),ssFallback:e.ssFallback&&Ur(e.ssFallback),el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce}}function M(e=" ",t=0){return R(s2,null,e,t)}function Yi(e,t){const r=R(hi,null,e);return r.staticCount=t,r}function P(e="",t=!1){return t?(h(),J(O1,null,e)):R(O1,null,e)}function vr(e){return e==null||typeof e=="boolean"?R(O1):Ye(e)?R(Ee,null,e.slice()):typeof e=="object"?hn(e):R(s2,null,String(e))}function hn(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:Ur(e)}function R7(e,t){let r=0;const{shapeFlag:n}=e;if(t==null)t=null;else if(Ye(t))r=16;else if(typeof t=="object")if(n&65){const o=t.default;o&&(o._c&&(o._d=!1),R7(e,o()),o._c&&(o._d=!0));return}else{r=32;const o=t._;!o&&!(l2 in t)?t._ctx=r1:o===3&&r1&&(r1.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else tt(t)?(t={default:t,_ctx:r1},r=32):(t=String(t),n&64?(r=16,t=[M(t)]):r=8);e.children=t,e.shapeFlag|=r}function lt(...e){const t={};for(let r=0;rXt||r1;let z7,So,y3="__VUE_INSTANCE_SETTERS__";(So=Z0()[y3])||(So=Z0()[y3]=[]),So.push(e=>Xt=e),z7=e=>{So.length>1?So.forEach(t=>t(e)):So[0](e)};const sa=e=>{z7(e),e.scope.on()},eo=()=>{Xt&&Xt.scope.off(),z7(null)};function Zc(e){return e.vnode.shapeFlag&4}let Oi=!1;function um(e,t=!1){Oi=t;const{props:r,children:n}=e.vnode,o=Zc(e);Kv(e,r,o,t),Qv(e,n);const a=o?cm(e,t):void 0;return Oi=!1,a}function cm(e,t){const r=e.type;e.accessCache=Object.create(null),e.proxy=lc(new Proxy(e.ctx,$v));const{setup:n}=r;if(n){const o=e.setupContext=n.length>1?Rc(e):null;sa(e),Sa();const a=kn(n,e,0,[e.props,o]);if(Ea(),eo(),F8(a)){if(a.then(eo,eo),t)return a.then(i=>{b3(e,i,t)}).catch(i=>{e2(i,e,0)});e.asyncDep=a}else b3(e,a,t)}else $c(e,t)}function b3(e,t,r){tt(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:kt(t)&&(e.setupState=fc(t)),$c(e,r)}let w3;function $c(e,t,r){const n=e.type;if(!e.render){if(!t&&w3&&!n.render){const o=n.template||Z7(e).template;if(o){const{isCustomElement:a,compilerOptions:i}=e.appContext.config,{delimiters:s,compilerOptions:l}=n,u=jt(jt({isCustomElement:a,delimiters:s},i),l);n.render=w3(o,u)}}e.render=n.render||J1}{sa(e),Sa();try{Rv(e)}finally{Ea(),eo()}}}function dm(e){return e.attrsProxy||(e.attrsProxy=new Proxy(e.attrs,{get(t,r){return S1(e,"get","$attrs"),t[r]}}))}function Rc(e){const t=r=>{e.exposed=r||{}};return{get attrs(){return dm(e)},slots:e.slots,emit:e.emit,expose:t}}function u2(e){if(e.exposed)return e.exposeProxy||(e.exposeProxy=new Proxy(fc(lc(e.exposed)),{get(t,r){if(r in t)return t[r];if(r in pi)return pi[r](e)},has(t,r){return r in t||r in pi}}))}function fm(e,t=!0){return tt(e)?e.displayName||e.name:e.name||t&&e.__name}function pm(e){return tt(e)&&"__vccOpts"in e}const _=(e,t)=>fv(e,t,Oi);function oo(e,t,r){const n=arguments.length;return n===2?kt(t)&&!Ye(t)?il(t)?R(e,null,[t]):R(e,t):R(e,null,t):(n>3?r=Array.prototype.slice.call(arguments,2):n===3&&il(r)&&(r=[r]),R(e,t,r))}const hm=Symbol.for("v-scx"),vm=()=>qt(hm),mm="3.3.12",gm="http://www.w3.org/2000/svg",jn=typeof document<"u"?document:null,_3=jn&&jn.createElement("template"),Cm={insert:(e,t,r)=>{t.insertBefore(e,r||null)},remove:e=>{const t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,r,n)=>{const o=t?jn.createElementNS(gm,e):jn.createElement(e,r?{is:r}:void 0);return e==="select"&&n&&n.multiple!=null&&o.setAttribute("multiple",n.multiple),o},createText:e=>jn.createTextNode(e),createComment:e=>jn.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>jn.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,r,n,o,a){const i=r?r.previousSibling:t.lastChild;if(o&&(o===a||o.nextSibling))for(;t.insertBefore(o.cloneNode(!0),r),!(o===a||!(o=o.nextSibling)););else{_3.innerHTML=n?`${e}`:e;const s=_3.content;if(n){const l=s.firstChild;for(;l.firstChild;)s.appendChild(l.firstChild);s.removeChild(l)}t.insertBefore(s,r)}return[i?i.nextSibling:t.firstChild,r?r.previousSibling:t.lastChild]}},nn="transition",$a="animation",la=Symbol("_vtc"),_r=(e,{slots:t})=>oo(Hv,Fc(e),t);_r.displayName="Transition";const zc={name:String,type:String,css:{type:Boolean,default:!0},duration:[String,Number,Object],enterFromClass:String,enterActiveClass:String,enterToClass:String,appearFromClass:String,appearActiveClass:String,appearToClass:String,leaveFromClass:String,leaveActiveClass:String,leaveToClass:String},ym=_r.props=jt({},kc,zc),On=(e,t=[])=>{Ye(e)?e.forEach(r=>r(...t)):e&&e(...t)},k3=e=>e?Ye(e)?e.some(t=>t.length>1):e.length>1:!1;function Fc(e){const t={};for(const D in e)D in zc||(t[D]=e[D]);if(e.css===!1)return t;const{name:r="v",type:n,duration:o,enterFromClass:a=`${r}-enter-from`,enterActiveClass:i=`${r}-enter-active`,enterToClass:s=`${r}-enter-to`,appearFromClass:l=a,appearActiveClass:u=i,appearToClass:c=s,leaveFromClass:d=`${r}-leave-from`,leaveActiveClass:f=`${r}-leave-active`,leaveToClass:p=`${r}-leave-to`}=e,v=bm(o),y=v&&v[0],b=v&&v[1],{onBeforeEnter:g,onEnter:C,onEnterCancelled:w,onLeave:x,onLeaveCancelled:E,onBeforeAppear:I=g,onAppear:T=C,onAppearCancelled:N=w}=t,U=(D,F,ee)=>{cn(D,F?c:s),cn(D,F?u:i),ee&&ee()},O=(D,F)=>{D._isLeaving=!1,cn(D,d),cn(D,p),cn(D,f),F&&F()},V=D=>(F,ee)=>{const z=D?T:C,q=()=>U(F,D,ee);On(z,[F,q]),x3(()=>{cn(F,D?l:a),Or(F,D?c:s),k3(z)||M3(F,n,y,q)})};return jt(t,{onBeforeEnter(D){On(g,[D]),Or(D,a),Or(D,i)},onBeforeAppear(D){On(I,[D]),Or(D,l),Or(D,u)},onEnter:V(!1),onAppear:V(!0),onLeave(D,F){D._isLeaving=!0;const ee=()=>O(D,F);Or(D,d),jc(),Or(D,f),x3(()=>{D._isLeaving&&(cn(D,d),Or(D,p),k3(x)||M3(D,n,b,ee))}),On(x,[D,ee])},onEnterCancelled(D){U(D,!1),On(w,[D])},onAppearCancelled(D){U(D,!0),On(N,[D])},onLeaveCancelled(D){O(D),On(E,[D])}})}function bm(e){if(e==null)return null;if(kt(e))return[N2(e.enter),N2(e.leave)];{const t=N2(e);return[t,t]}}function N2(e){return Ah(e)}function Or(e,t){t.split(/\s+/).forEach(r=>r&&e.classList.add(r)),(e[la]||(e[la]=new Set)).add(t)}function cn(e,t){t.split(/\s+/).forEach(n=>n&&e.classList.remove(n));const r=e[la];r&&(r.delete(t),r.size||(e[la]=void 0))}function x3(e){requestAnimationFrame(()=>{requestAnimationFrame(e)})}let wm=0;function M3(e,t,r,n){const o=e._endId=++wm,a=()=>{o===e._endId&&n()};if(r)return setTimeout(a,r);const{type:i,timeout:s,propCount:l}=Uc(e,t);if(!i)return n();const u=i+"end";let c=0;const d=()=>{e.removeEventListener(u,f),a()},f=p=>{p.target===e&&++c>=l&&d()};setTimeout(()=>{c(r[v]||"").split(", "),o=n(`${nn}Delay`),a=n(`${nn}Duration`),i=S3(o,a),s=n(`${$a}Delay`),l=n(`${$a}Duration`),u=S3(s,l);let c=null,d=0,f=0;t===nn?i>0&&(c=nn,d=i,f=a.length):t===$a?u>0&&(c=$a,d=u,f=l.length):(d=Math.max(i,u),c=d>0?i>u?nn:$a:null,f=c?c===nn?a.length:l.length:0);const p=c===nn&&/\b(transform|all)(,|$)/.test(n(`${nn}Property`).toString());return{type:c,timeout:d,propCount:f,hasTransform:p}}function S3(e,t){for(;e.lengthE3(r)+E3(e[n])))}function E3(e){return e==="auto"?0:Number(e.slice(0,-1).replace(",","."))*1e3}function jc(){return document.body.offsetHeight}function _m(e,t,r){const n=e[la];n&&(t=(t?[t,...n]:[...n]).join(" ")),t==null?e.removeAttribute("class"):r?e.setAttribute("class",t):e.className=t}const F7=Symbol("_vod"),W0={beforeMount(e,{value:t},{transition:r}){e[F7]=e.style.display==="none"?"":e.style.display,r&&t?r.beforeEnter(e):Ra(e,t)},mounted(e,{value:t},{transition:r}){r&&t&&r.enter(e)},updated(e,{value:t,oldValue:r},{transition:n}){!t!=!r&&(n?t?(n.beforeEnter(e),Ra(e,!0),n.enter(e)):n.leave(e,()=>{Ra(e,!1)}):Ra(e,t))},beforeUnmount(e,{value:t}){Ra(e,t)}};function Ra(e,t){e.style.display=t?e[F7]:"none"}const Yc=Symbol("");function En(e){const t=Gi();if(!t)return;const r=t.ut=(o=e(t.proxy))=>{Array.from(document.querySelectorAll(`[data-v-owner="${t.uid}"]`)).forEach(a=>X0(a,o))},n=()=>{const o=e(t.proxy);Q0(t.subTree,o),r(o)};Ev(n),wt(()=>{const o=new MutationObserver(n);o.observe(t.subTree.el.parentNode,{childList:!0}),g1(()=>o.disconnect())})}function Q0(e,t){if(e.shapeFlag&128){const r=e.suspense;e=r.activeBranch,r.pendingBranch&&!r.isHydrating&&r.effects.push(()=>{Q0(r.activeBranch,t)})}for(;e.component;)e=e.component.subTree;if(e.shapeFlag&1&&e.el)X0(e.el,t);else if(e.type===Ee)e.children.forEach(r=>Q0(r,t));else if(e.type===hi){let{el:r,anchor:n}=e;for(;r&&(X0(r,t),r!==n);)r=r.nextSibling}}function X0(e,t){if(e.nodeType===1){const r=e.style;let n="";for(const o in t)r.setProperty(`--${o}`,t[o]),n+=`--${o}: ${t[o]};`;r[Yc]=n}}function km(e,t,r){const n=e.style,o=Nt(r);if(r&&!o){if(t&&!Nt(t))for(const a in t)r[a]==null&&J0(n,a,"");for(const a in r)J0(n,a,r[a])}else{const a=n.display;if(o){if(t!==r){const i=n[Yc];i&&(r+=";"+i),n.cssText=r}}else t&&e.removeAttribute("style");F7 in e&&(n.display=a)}}const L3=/\s*!important$/;function J0(e,t,r){if(Ye(r))r.forEach(n=>J0(e,t,n));else if(r==null&&(r=""),t.startsWith("--"))e.setProperty(t,r);else{const n=xm(e,t);L3.test(r)?e.setProperty(ho(n),r.replace(L3,""),"important"):e[n]=r}}const A3=["Webkit","Moz","ms"],Z2={};function xm(e,t){const r=Z2[t];if(r)return r;let n=wr(t);if(n!=="filter"&&n in e)return Z2[t]=n;n=Xl(n);for(let o=0;o$2||(Hm.then(()=>$2=0),$2=Date.now());function Tm(e,t){const r=n=>{if(!n._vts)n._vts=Date.now();else if(n._vts<=r.attached)return;U1(Dm(n,r.value),t,5,[n])};return r.value=e,r.attached=Bm(),r}function Dm(e,t){if(Ye(t)){const r=e.stopImmediatePropagation;return e.stopImmediatePropagation=()=>{r.call(e),e._stopped=!0},t.map(n=>o=>!o._stopped&&n&&n(o))}else return t}const D3=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123,Om=(e,t,r,n,o=!1,a,i,s,l)=>{t==="class"?_m(e,n,o):t==="style"?km(e,r,n):ql(t)?M7(t)||Lm(e,t,r,n,i):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):Vm(e,t,n,o))?Sm(e,t,n,a,i,s,l):(t==="true-value"?e._trueValue=n:t==="false-value"&&(e._falseValue=n),Mm(e,t,n,o))};function Vm(e,t,r,n){if(n)return!!(t==="innerHTML"||t==="textContent"||t in e&&D3(t)&&tt(r));if(t==="spellcheck"||t==="draggable"||t==="translate"||t==="form"||t==="list"&&e.tagName==="INPUT"||t==="type"&&e.tagName==="TEXTAREA")return!1;if(t==="width"||t==="height"){const o=e.tagName;if(o==="IMG"||o==="VIDEO"||o==="CANVAS"||o==="SOURCE")return!1}return D3(t)&&Nt(r)?!1:t in e}const Gc=new WeakMap,Kc=new WeakMap,ll=Symbol("_moveCb"),O3=Symbol("_enterCb"),qc={name:"TransitionGroup",props:jt({},ym,{tag:String,moveClass:String}),setup(e,{slots:t}){const r=Gi(),n=_c();let o,a;return Sc(()=>{if(!o.length)return;const i=e.moveClass||`${e.name||"v"}-move`;if(!Rm(o[0].el,r.vnode.el,i))return;o.forEach(Nm),o.forEach(Zm);const s=o.filter($m);jc(),s.forEach(l=>{const u=l.el,c=u.style;Or(u,i),c.transform=c.webkitTransform=c.transitionDuration="";const d=u[ll]=f=>{f&&f.target!==u||(!f||/transform$/.test(f.propertyName))&&(u.removeEventListener("transitionend",d),u[ll]=null,cn(u,i))};u.addEventListener("transitionend",d)})}),()=>{const i=ft(e),s=Fc(i);let l=i.tag||Ee;o=a,a=t.default?N7(t.default()):[];for(let u=0;udelete e.mode;qc.props;const Pm=qc;function Nm(e){const t=e.el;t[ll]&&t[ll](),t[O3]&&t[O3]()}function Zm(e){Kc.set(e,e.el.getBoundingClientRect())}function $m(e){const t=Gc.get(e),r=Kc.get(e),n=t.left-r.left,o=t.top-r.top;if(n||o){const a=e.el.style;return a.transform=a.webkitTransform=`translate(${n}px,${o}px)`,a.transitionDuration="0s",e}}function Rm(e,t,r){const n=e.cloneNode(),o=e[la];o&&o.forEach(s=>{s.split(/\s+/).forEach(l=>l&&n.classList.remove(l))}),r.split(/\s+/).forEach(s=>s&&n.classList.add(s)),n.style.display="none";const a=t.nodeType===1?t:t.parentNode;a.appendChild(n);const{hasTransform:i}=Uc(n);return a.removeChild(n),i}const V3=e=>{const t=e.props["onUpdate:modelValue"]||!1;return Ye(t)?r=>Bs(t,r):t};function zm(e){e.target.composing=!0}function I3(e){const t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event("input")))}const R2=Symbol("_assign"),Fm={created(e,{modifiers:{lazy:t,trim:r,number:n}},o){e[R2]=V3(o);const a=n||o.props&&o.props.type==="number";Do(e,t?"change":"input",i=>{if(i.target.composing)return;let s=e.value;r&&(s=s.trim()),a&&(s=N0(s)),e[R2](s)}),r&&Do(e,"change",()=>{e.value=e.value.trim()}),t||(Do(e,"compositionstart",zm),Do(e,"compositionend",I3),Do(e,"change",I3))},mounted(e,{value:t}){e.value=t??""},beforeUpdate(e,{value:t,modifiers:{lazy:r,trim:n,number:o}},a){if(e[R2]=V3(a),e.composing)return;const i=o||e.type==="number"?N0(e.value):e.value,s=t??"";i!==s&&(document.activeElement===e&&e.type!=="range"&&(r||n&&e.value.trim()===s)||(e.value=s))}},Um=["ctrl","shift","alt","meta"],jm={stop:e=>e.stopPropagation(),prevent:e=>e.preventDefault(),self:e=>e.target!==e.currentTarget,ctrl:e=>!e.ctrlKey,shift:e=>!e.shiftKey,alt:e=>!e.altKey,meta:e=>!e.metaKey,left:e=>"button"in e&&e.button!==0,middle:e=>"button"in e&&e.button!==1,right:e=>"button"in e&&e.button!==2,exact:(e,t)=>Um.some(r=>e[`${r}Key`]&&!t.includes(r))},bt=(e,t)=>e._withMods||(e._withMods=(r,...n)=>{for(let o=0;oe._withKeys||(e._withKeys=r=>{if(!("key"in r))return;const n=ho(r.key);if(t.some(o=>o===n||Ym[o]===n))return e(r)}),Gm=jt({patchProp:Om},Cm);let P3;function Km(){return P3||(P3=Jv(Gm))}const Wc=(...e)=>{const t=Km().createApp(...e),{mount:r}=t;return t.mount=n=>{const o=qm(n);if(!o)return;const a=t._component;!tt(a)&&!a.render&&!a.template&&(a.template=o.innerHTML),o.innerHTML="";const i=r(o,!1,o instanceof SVGElement);return o instanceof Element&&(o.removeAttribute("v-cloak"),o.setAttribute("data-v-app","")),i},t};function qm(e){return Nt(e)?document.querySelector(e):e}const Wm=""+new URL("icon-location-on-642f061f.svg",import.meta.url).href,Qm=""+new URL("icon-circles-ext-6b19ab51.svg",import.meta.url).href,Qc=""+new URL("icon-wifi-tethering-02725ea9.svg",import.meta.url).href;var e6=function(e,t){return e6=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,n){r.__proto__=n}||function(r,n){for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(r[o]=n[o])},e6(e,t)};function ar(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");e6(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}var je=function(){return je=Object.assign||function(e){for(var t,r=1,n=arguments.length;r0}),r=[],n=0,o=t;n1)throw new RangeError("integer-width stems only accept a single optional option");o.options[0].replace(ig,function(l,u,c,d,f,p){if(u)t.minimumIntegerDigits=c.length;else{if(d&&f)throw new Error("We currently do not support maximum integer digits");if(p)throw new Error("We currently do not support exact integer digits")}return""});continue}if(s9.test(o.stem)){t.minimumIntegerDigits=o.stem.length;continue}if(Z3.test(o.stem)){if(o.options.length>1)throw new RangeError("Fraction-precision stems only accept a single optional option");o.stem.replace(Z3,function(l,u,c,d,f,p){return c==="*"?t.minimumFractionDigits=u.length:d&&d[0]==="#"?t.maximumFractionDigits=d.length:f&&p?(t.minimumFractionDigits=f.length,t.maximumFractionDigits=f.length+p.length):(t.minimumFractionDigits=u.length,t.maximumFractionDigits=u.length),""});var a=o.options[0];a==="w"?t=je(je({},t),{trailingZeroDisplay:"stripIfInteger"}):a&&(t=je(je({},t),$3(a)));continue}if(i9.test(o.stem)){t=je(je({},t),$3(o.stem));continue}var i=l9(o.stem);i&&(t=je(je({},t),i));var s=sg(o.stem);s&&(t=je(je({},t),s))}return t}var hs={"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"],BI:["H","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"],BY:["H","h"],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"],CW:["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"],FO:["H","h"],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"],GL:["H","h"],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"],HU:["H","h"],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","K","h"],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"],MG:["H","h"],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"],MT:["H","h"],MU:["H","h"],MV:["H","h"],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"],NO:["H","h"],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"],PL:["H","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"],RW:["H","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"],TH:["H","h"],TJ:["H","h"],TL:["H","hB","hb","h"],TM:["H","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"],VN:["H","h"],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"],ZW:["H","h"],"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 ug(e,t){for(var r="",n=0;n>1),l="a",u=cg(t);for((u=="H"||u=="k")&&(s=0);s-- >0;)r+=l;for(;i-- >0;)r=u+r}else o==="J"?r+="H":r+=o}return r}function cg(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 r=e.language,n;r!=="root"&&(n=e.maximize().region);var o=hs[n||""]||hs[r||""]||hs["".concat(r,"-001")]||hs["001"];return o[0]}var z2,dg=new RegExp("^".concat(a9.source,"*")),fg=new RegExp("".concat(a9.source,"*$"));function dt(e,t){return{start:e,end:t}}var pg=!!String.prototype.startsWith&&"_a".startsWith("a",1),hg=!!String.fromCodePoint,vg=!!Object.fromEntries,mg=!!String.prototype.codePointAt,gg=!!String.prototype.trimStart,Cg=!!String.prototype.trimEnd,yg=!!Number.isSafeInteger,bg=yg?Number.isSafeInteger:function(e){return typeof e=="number"&&isFinite(e)&&Math.floor(e)===e&&Math.abs(e)<=9007199254740991},r6=!0;try{var wg=c9("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu");r6=((z2=wg.exec("a"))===null||z2===void 0?void 0:z2[0])==="a"}catch{r6=!1}var z3=pg?function(e,t,r){return e.startsWith(t,r)}:function(e,t,r){return e.slice(r,r+t.length)===t},n6=hg?String.fromCodePoint:function(){for(var e=[],t=0;to;){if(a=e[o++],a>1114111)throw RangeError(a+" is not a valid code point");r+=a<65536?String.fromCharCode(a):String.fromCharCode(((a-=65536)>>10)+55296,a%1024+56320)}return r},F3=vg?Object.fromEntries:function(e){for(var t={},r=0,n=e;r=r)){var n=e.charCodeAt(t),o;return n<55296||n>56319||t+1===r||(o=e.charCodeAt(t+1))<56320||o>57343?n:(n-55296<<10)+(o-56320)+65536}},_g=gg?function(e){return e.trimStart()}:function(e){return e.replace(dg,"")},kg=Cg?function(e){return e.trimEnd()}:function(e){return e.replace(fg,"")};function c9(e,t){return new RegExp(e,t)}var o6;if(r6){var U3=c9("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu");o6=function(e,t){var r;U3.lastIndex=t;var n=U3.exec(e);return(r=n[1])!==null&&r!==void 0?r:""}}else o6=function(e,t){for(var r=[];;){var n=u9(e,t);if(n===void 0||d9(n)||Eg(n))break;r.push(n),t+=n>=65536?2:1}return n6.apply(void 0,r)};var xg=function(){function e(t,r){r===void 0&&(r={}),this.message=t,this.position={offset:0,line:1,column:1},this.ignoreTag=!!r.ignoreTag,this.locale=r.locale,this.requiresOtherClause=!!r.requiresOtherClause,this.shouldParseSkeletons=!!r.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,r,n){for(var o=[];!this.isEOF();){var a=this.char();if(a===123){var i=this.parseArgument(t,n);if(i.err)return i;o.push(i.val)}else{if(a===125&&t>0)break;if(a===35&&(r==="plural"||r==="selectordinal")){var s=this.clonePosition();this.bump(),o.push({type:St.pound,location:dt(s,this.clonePosition())})}else if(a===60&&!this.ignoreTag&&this.peek()===47){if(n)break;return this.error(ct.UNMATCHED_CLOSING_TAG,dt(this.clonePosition(),this.clonePosition()))}else if(a===60&&!this.ignoreTag&&a6(this.peek()||0)){var i=this.parseTag(t,r);if(i.err)return i;o.push(i.val)}else{var i=this.parseLiteral(t,r);if(i.err)return i;o.push(i.val)}}}return{val:o,err:null}},e.prototype.parseTag=function(t,r){var n=this.clonePosition();this.bump();var o=this.parseTagName();if(this.bumpSpace(),this.bumpIf("/>"))return{val:{type:St.literal,value:"<".concat(o,"/>"),location:dt(n,this.clonePosition())},err:null};if(this.bumpIf(">")){var a=this.parseMessage(t+1,r,!0);if(a.err)return a;var i=a.val,s=this.clonePosition();if(this.bumpIf("")?{val:{type:St.tag,value:o,children:i,location:dt(n,this.clonePosition())},err:null}:this.error(ct.INVALID_TAG,dt(s,this.clonePosition())))}else return this.error(ct.UNCLOSED_TAG,dt(n,this.clonePosition()))}else return this.error(ct.INVALID_TAG,dt(n,this.clonePosition()))},e.prototype.parseTagName=function(){var t=this.offset();for(this.bump();!this.isEOF()&&Sg(this.char());)this.bump();return this.message.slice(t,this.offset())},e.prototype.parseLiteral=function(t,r){for(var n=this.clonePosition(),o="";;){var a=this.tryParseQuote(r);if(a){o+=a;continue}var i=this.tryParseUnquoted(t,r);if(i){o+=i;continue}var s=this.tryParseLeftAngleBracket();if(s){o+=s;continue}break}var l=dt(n,this.clonePosition());return{val:{type:St.literal,value:o,location:l},err:null}},e.prototype.tryParseLeftAngleBracket=function(){return!this.isEOF()&&this.char()===60&&(this.ignoreTag||!Mg(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 r=[this.char()];for(this.bump();!this.isEOF();){var n=this.char();if(n===39)if(this.peek()===39)r.push(39),this.bump();else{this.bump();break}else r.push(n);this.bump()}return n6.apply(void 0,r)},e.prototype.tryParseUnquoted=function(t,r){if(this.isEOF())return null;var n=this.char();return n===60||n===123||n===35&&(r==="plural"||r==="selectordinal")||n===125&&t>0?null:(this.bump(),n6(n))},e.prototype.parseArgument=function(t,r){var n=this.clonePosition();if(this.bump(),this.bumpSpace(),this.isEOF())return this.error(ct.EXPECT_ARGUMENT_CLOSING_BRACE,dt(n,this.clonePosition()));if(this.char()===125)return this.bump(),this.error(ct.EMPTY_ARGUMENT,dt(n,this.clonePosition()));var o=this.parseIdentifierIfPossible().value;if(!o)return this.error(ct.MALFORMED_ARGUMENT,dt(n,this.clonePosition()));if(this.bumpSpace(),this.isEOF())return this.error(ct.EXPECT_ARGUMENT_CLOSING_BRACE,dt(n,this.clonePosition()));switch(this.char()){case 125:return this.bump(),{val:{type:St.argument,value:o,location:dt(n,this.clonePosition())},err:null};case 44:return this.bump(),this.bumpSpace(),this.isEOF()?this.error(ct.EXPECT_ARGUMENT_CLOSING_BRACE,dt(n,this.clonePosition())):this.parseArgumentOptions(t,r,o,n);default:return this.error(ct.MALFORMED_ARGUMENT,dt(n,this.clonePosition()))}},e.prototype.parseIdentifierIfPossible=function(){var t=this.clonePosition(),r=this.offset(),n=o6(this.message,r),o=r+n.length;this.bumpTo(o);var a=this.clonePosition(),i=dt(t,a);return{value:n,location:i}},e.prototype.parseArgumentOptions=function(t,r,n,o){var a,i=this.clonePosition(),s=this.parseIdentifierIfPossible().value,l=this.clonePosition();switch(s){case"":return this.error(ct.EXPECT_ARGUMENT_TYPE,dt(i,l));case"number":case"date":case"time":{this.bumpSpace();var u=null;if(this.bumpIf(",")){this.bumpSpace();var c=this.clonePosition(),d=this.parseSimpleArgStyleIfPossible();if(d.err)return d;var f=kg(d.val);if(f.length===0)return this.error(ct.EXPECT_ARGUMENT_STYLE,dt(this.clonePosition(),this.clonePosition()));var p=dt(c,this.clonePosition());u={style:f,styleLocation:p}}var v=this.tryParseArgumentClose(o);if(v.err)return v;var y=dt(o,this.clonePosition());if(u&&z3(u==null?void 0:u.style,"::",0)){var b=_g(u.style.slice(2));if(s==="number"){var d=this.parseNumberSkeletonFromString(b,u.styleLocation);return d.err?d:{val:{type:St.number,value:n,location:y,style:d.val},err:null}}else{if(b.length===0)return this.error(ct.EXPECT_DATE_TIME_SKELETON,y);var g=b;this.locale&&(g=ug(b,this.locale));var f={type:ua.dateTime,pattern:g,location:u.styleLocation,parsedOptions:this.shouldParseSkeletons?rg(g):{}},C=s==="date"?St.date:St.time;return{val:{type:C,value:n,location:y,style:f},err:null}}}return{val:{type:s==="number"?St.number:s==="date"?St.date:St.time,value:n,location:y,style:(a=u==null?void 0:u.style)!==null&&a!==void 0?a:null},err:null}}case"plural":case"selectordinal":case"select":{var w=this.clonePosition();if(this.bumpSpace(),!this.bumpIf(","))return this.error(ct.EXPECT_SELECT_ARGUMENT_OPTIONS,dt(w,je({},w)));this.bumpSpace();var x=this.parseIdentifierIfPossible(),E=0;if(s!=="select"&&x.value==="offset"){if(!this.bumpIf(":"))return this.error(ct.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,dt(this.clonePosition(),this.clonePosition()));this.bumpSpace();var d=this.tryParseDecimalInteger(ct.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,ct.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);if(d.err)return d;this.bumpSpace(),x=this.parseIdentifierIfPossible(),E=d.val}var I=this.tryParsePluralOrSelectOptions(t,s,r,x);if(I.err)return I;var v=this.tryParseArgumentClose(o);if(v.err)return v;var T=dt(o,this.clonePosition());return s==="select"?{val:{type:St.select,value:n,options:F3(I.val),location:T},err:null}:{val:{type:St.plural,value:n,options:F3(I.val),offset:E,pluralType:s==="plural"?"cardinal":"ordinal",location:T},err:null}}default:return this.error(ct.INVALID_ARGUMENT_TYPE,dt(i,l))}},e.prototype.tryParseArgumentClose=function(t){return this.isEOF()||this.char()!==125?this.error(ct.EXPECT_ARGUMENT_CLOSING_BRACE,dt(t,this.clonePosition())):(this.bump(),{val:!0,err:null})},e.prototype.parseSimpleArgStyleIfPossible=function(){for(var t=0,r=this.clonePosition();!this.isEOF();){var n=this.char();switch(n){case 39:{this.bump();var o=this.clonePosition();if(!this.bumpUntil("'"))return this.error(ct.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE,dt(o,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(r.offset,this.offset()),err:null};break}default:this.bump();break}}return{val:this.message.slice(r.offset,this.offset()),err:null}},e.prototype.parseNumberSkeletonFromString=function(t,r){var n=[];try{n=og(t)}catch{return this.error(ct.INVALID_NUMBER_SKELETON,r)}return{val:{type:ua.number,tokens:n,location:r,parsedOptions:this.shouldParseSkeletons?lg(n):{}},err:null}},e.prototype.tryParsePluralOrSelectOptions=function(t,r,n,o){for(var a,i=!1,s=[],l=new Set,u=o.value,c=o.location;;){if(u.length===0){var d=this.clonePosition();if(r!=="select"&&this.bumpIf("=")){var f=this.tryParseDecimalInteger(ct.EXPECT_PLURAL_ARGUMENT_SELECTOR,ct.INVALID_PLURAL_ARGUMENT_SELECTOR);if(f.err)return f;c=dt(d,this.clonePosition()),u=this.message.slice(d.offset,this.offset())}else break}if(l.has(u))return this.error(r==="select"?ct.DUPLICATE_SELECT_ARGUMENT_SELECTOR:ct.DUPLICATE_PLURAL_ARGUMENT_SELECTOR,c);u==="other"&&(i=!0),this.bumpSpace();var p=this.clonePosition();if(!this.bumpIf("{"))return this.error(r==="select"?ct.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT:ct.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT,dt(this.clonePosition(),this.clonePosition()));var v=this.parseMessage(t+1,r,n);if(v.err)return v;var y=this.tryParseArgumentClose(p);if(y.err)return y;s.push([u,{value:v.val,location:dt(p,this.clonePosition())}]),l.add(u),this.bumpSpace(),a=this.parseIdentifierIfPossible(),u=a.value,c=a.location}return s.length===0?this.error(r==="select"?ct.EXPECT_SELECT_ARGUMENT_SELECTOR:ct.EXPECT_PLURAL_ARGUMENT_SELECTOR,dt(this.clonePosition(),this.clonePosition())):this.requiresOtherClause&&!i?this.error(ct.MISSING_OTHER_CLAUSE,dt(this.clonePosition(),this.clonePosition())):{val:s,err:null}},e.prototype.tryParseDecimalInteger=function(t,r){var n=1,o=this.clonePosition();this.bumpIf("+")||this.bumpIf("-")&&(n=-1);for(var a=!1,i=0;!this.isEOF();){var s=this.char();if(s>=48&&s<=57)a=!0,i=i*10+(s-48),this.bump();else break}var l=dt(o,this.clonePosition());return a?(i*=n,bg(i)?{val:i,err:null}:this.error(r,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 r=u9(this.message,t);if(r===void 0)throw Error("Offset ".concat(t," is at invalid UTF-16 code unit boundary"));return r},e.prototype.error=function(t,r){return{val:null,err:{kind:t,message:this.message,location:r}}},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(z3(this.message,t,this.offset())){for(var r=0;r=0?(this.bumpTo(n),!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 r=this.offset();if(r===t)break;if(r>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()&&d9(this.char());)this.bump()},e.prototype.peek=function(){if(this.isEOF())return null;var t=this.char(),r=this.offset(),n=this.message.charCodeAt(r+(t>=65536?2:1));return n??null},e}();function a6(e){return e>=97&&e<=122||e>=65&&e<=90}function Mg(e){return a6(e)||e===47}function Sg(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 d9(e){return e>=9&&e<=13||e===32||e===133||e>=8206&&e<=8207||e===8232||e===8233}function Eg(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 i6(e){e.forEach(function(t){if(delete t.location,t9(t)||r9(t))for(var r in t.options)delete t.options[r].location,i6(t.options[r].value);else Xc(t)&&o9(t.style)||(Jc(t)||e9(t))&&t6(t.style)?delete t.style.location:n9(t)&&i6(t.children)})}function Lg(e,t){t===void 0&&(t={}),t=je({shouldParseSkeletons:!0,requiresOtherClause:!0},t);var r=new xg(e,t).parse();if(r.err){var n=SyntaxError(ct[r.err.kind]);throw n.location=r.err.location,n.originalMessage=r.err.message,n}return t!=null&&t.captureLocation||i6(r.val),r.val}function cr(e,t){var r=t&&t.cache?t.cache:Og,n=t&&t.serializer?t.serializer:Dg,o=t&&t.strategy?t.strategy:Hg;return o(e,{cache:r,serializer:n})}function Ag(e){return e==null||typeof e=="number"||typeof e=="boolean"}function f9(e,t,r,n){var o=Ag(n)?n:r(n),a=t.get(o);return typeof a>"u"&&(a=e.call(this,n),t.set(o,a)),a}function p9(e,t,r){var n=Array.prototype.slice.call(arguments,3),o=r(n),a=t.get(o);return typeof a>"u"&&(a=e.apply(this,n),t.set(o,a)),a}function U7(e,t,r,n,o){return r.bind(t,e,n,o)}function Hg(e,t){var r=e.length===1?f9:p9;return U7(e,this,r,t.cache.create(),t.serializer)}function Bg(e,t){return U7(e,this,p9,t.cache.create(),t.serializer)}function Tg(e,t){return U7(e,this,f9,t.cache.create(),t.serializer)}var Dg=function(){return JSON.stringify(arguments)};function j7(){this.cache=Object.create(null)}j7.prototype.get=function(e){return this.cache[e]};j7.prototype.set=function(e,t){this.cache[e]=t};var Og={create:function(){return new j7}},dr={variadic:Bg,monadic:Tg},kr;(function(e){e.MISSING_VALUE="MISSING_VALUE",e.INVALID_VALUE="INVALID_VALUE",e.MISSING_INTL_API="MISSING_INTL_API"})(kr||(kr={}));var Ln=function(e){ar(t,e);function t(r,n,o){var a=e.call(this,r)||this;return a.code=n,a.originalMessage=o,a}return t.prototype.toString=function(){return"[formatjs Error: ".concat(this.code,"] ").concat(this.message)},t}(Error),j3=function(e){ar(t,e);function t(r,n,o,a){return e.call(this,'Invalid values for "'.concat(r,'": "').concat(n,'". Options are "').concat(Object.keys(o).join('", "'),'"'),kr.INVALID_VALUE,a)||this}return t}(Ln),Vg=function(e){ar(t,e);function t(r,n,o){return e.call(this,'Value for "'.concat(r,'" must be of type ').concat(n),kr.INVALID_VALUE,o)||this}return t}(Ln),Ig=function(e){ar(t,e);function t(r,n){return e.call(this,'The intl string context variable "'.concat(r,'" was not provided to the string "').concat(n,'"'),kr.MISSING_VALUE,n)||this}return t}(Ln),p1;(function(e){e[e.literal=0]="literal",e[e.object=1]="object"})(p1||(p1={}));function Pg(e){return e.length<2?e:e.reduce(function(t,r){var n=t[t.length-1];return!n||n.type!==p1.literal||r.type!==p1.literal?t.push(r):n.value+=r.value,t},[])}function Ng(e){return typeof e=="function"}function Os(e,t,r,n,o,a,i){if(e.length===1&&N3(e[0]))return[{type:p1.literal,value:e[0].value}];for(var s=[],l=0,u=e;l"u")){var r=Intl.NumberFormat.supportedLocalesOf(t);return r.length>0?new Intl.Locale(r[0]):new Intl.Locale(typeof t=="string"?t:t[0])}},e.__parse=Lg,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}(),ao;(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"})(ao||(ao={}));var Ki=function(e){ar(t,e);function t(r,n,o){var a=this,i=o?o instanceof Error?o:new Error(String(o)):void 0;return a=e.call(this,"[@formatjs/intl Error ".concat(r,"] ").concat(n,` `).concat(i?` @@ -562,8 +562,8 @@ For more details see https://formatjs.io/docs/getting-started/message-distributi The control plane provides the config for all services in the mesh. `)]),default:A(()=>[Q1e,M()]),_:1},8,["title"]),M(),R(B(Ut),{trigger:"hover",title:"Data Plane Proxy (DPP)","is-svg":!0,tag:"g",placement:"rightEnd","popover-timeout":5},{content:A(()=>[M(Z(B(t)("common.product.name"))+` attaches a data plane proxy sidecar to each service in your mesh. This sidecar handles the mesh configuration for the service. - `,1)]),default:A(()=>[X1e,M()]),_:1}),M(),J1e,M(),ere,M(),tre]))}}),Nn={KubernetesGraph:dn(dte,{description:"KubernetesGraph"}),PostgresGraph:dn(D1e,{description:"PostgresGraph"}),MemoryGraph:dn(Ste,{description:"MemoryGraph"}),MultizoneGraph:dn(c1e,{description:"MultizoneGraph"}),StandaloneGraph:dn(rre,{description:"StandaloneGraph"}),MainView:dn($X,{description:"MainView"}),MeshDetails:dn(zee,{description:"MeshDetails"})},[Dae,Oae,Vae,Iae,Pae,nre,Nae]=Na(Nn.KubernetesGraph,Nn.PostgresGraph,Nn.MemoryGraph,Nn.MultizoneGraph,Nn.StandaloneGraph,Nn.MainView,Nn.MeshDetails),ore={key:0,"aria-label":"Breadcrumb"},are={key:0,class:"app-view-title-bar"},ire={class:"actions"},sre={key:1},lre=ne({__name:"AppView",props:{breadcrumbs:{default:null},fullscreen:{type:Boolean,default:!1}},setup(e){const t=nre(),r=e,n=new Map,o=Y([]),a=Symbol("app-view"),i=c=>{const d=[...c.values()];d.some(f=>f.length===0)?o.value=[]:o.value=d.flat()},s={addBreadcrumbs:(c,d)=>{if(typeof c<"u"){if(n.has(d)){const f=n.get(d);if(JSON.stringify(f)===JSON.stringify(c))return}n.set(d,c),i(n)}},removeBreadcrumbs:c=>{n.has(c)&&(n.delete(c),i(n))}},l=qt("app-view-parent",void 0);l||er("app-view-parent",s);const u=l||s;return Ae(()=>r.breadcrumbs,c=>{c!==null&&u.addBreadcrumbs(c,a)},{immediate:!0}),Sr(()=>{u.removeBreadcrumbs(a)}),(c,d)=>{const f=Bt("KAlert");return h(),J(it(B(l)?"div":B(t)),null,{default:A(()=>[!B(l)&&o.value.length>0?(h(),k("nav",ore,[R(B(Q9),{items:o.value},null,8,["items"])])):P("",!0),M(),m("section",{class:ie({"is-fullscreen":r.fullscreen})},[c.$slots.title?(h(),k("header",are,[r.fullscreen?(h(),J(B(eb),{key:0})):P("",!0),M(),Q(c.$slots,"title",{},void 0,!0),M(),m("div",ire,[Q(c.$slots,"actions",{},void 0,!0)])])):P("",!0),M(),c.$slots.notifications?(h(),k("aside",sre,[R(f,{class:"mb-4",appearance:"warning"},{alertMessage:A(()=>[Q(c.$slots,"notifications",{},void 0,!0)]),_:3})])):P("",!0),M(),Q(c.$slots,"default",{},void 0,!0)],2)]),_:3})}}});const ure=Pa(lre,[["__scopeId","data-v-b6f25794"]]),cre=m("span",{class:"visually-hidden"},null,-1),dre=ne({__name:"DataSource",props:{src:{type:String,required:!0}},emits:["change","error"],setup(e,{emit:t}){const r=une(),n=e,o=Y(void 0),a=Y(void 0),i=t;let s={};const l=Symbol(""),u=async f=>{if(o.value=void 0,s=c(s),s.src=f,f==="")return;s.controller=new AbortController;const p=r.source(f,l);p.addEventListener("message",v=>{o.value=v.data,a.value=void 0,i("change",o.value)},{signal:s.controller.signal}),p.addEventListener("error",v=>{a.value=v.error,i("error",a.value)},{signal:s.controller.signal})},c=f=>(typeof f.controller<"u"&&f.controller.abort(),typeof f.src<"u"&&r.close(f.src,l),{});Ae(()=>n.src,function(f){u(f)},{immediate:!0}),Sr(()=>{s=c(s)});const d=()=>{u(n.src)};return(f,p)=>(h(),k(Ee,null,[Q(f.$slots,"default",{data:o.value,error:a.value,refresh:d}),M(),cre],64))}}),g7=Symbol("route-view-parent"),fre=ne({__name:"RouteTitle",props:{title:{type:String,required:!1,default:""},render:{type:Boolean,required:!1,default:!0}},setup(e){const t=e,r=Symbol("route-title"),n=qt(g7);return typeof n<"u"&&(Ae(()=>t.title,o=>{o.length>0&&n.addTitle(o,r)},{immediate:!0}),Sr(()=>{n.removeTitle(r)})),(o,a)=>t.render?(h(),k(Ee,{key:0},[M(Z(t.title),1)],64)):P("",!0)}}),G5=function(e){let t;return(...r)=>{t&&window.cancelAnimationFrame(t),t=window.requestAnimationFrame(e.bind(e,...r))}},pre=(e=document.documentElement)=>{if(!e)return()=>{};const t=[...e.classList];return G5(r=>{const n=r.reduce((o,a)=>Object.entries(a).reduce((i,[s,l])=>(typeof i[s]>"u"&&(i[s]=[]),i[s].push(l),i),o),{});e.classList.remove(...[...e.classList].filter(o=>!t.includes(o))),e.classList.add(...n.class||[])})},hre=function(e){return Array.isArray(e)?e[0]:e},vre=(e,t)=>{switch(!0){case typeof t=="boolean":return e===null?!0:t;case typeof t=="number":{const r=e===null||e.length===0?t:Number(decodeURIComponent(e));return isNaN(r)?Number(t):r}case typeof t=="string":return e===null||e.length===0?t:decodeURIComponent(e)}throw new TypeError("URL parameters can only be string | number | boolean")},mre=(e=document)=>G5(t=>{e.title=t}),L8=(e,t)=>{const r={...t},n=Object.entries(e).reduce((o,[a,i])=>{switch(!0){case i===!0:o[a]=null;break;case(i!==!1&&String(i).length>0):o[a]=encodeURIComponent(String(i));break;default:o[a]=void 0}return o},r);return{...r,...n}},gre=["data-testid"],Cre=ne({__name:"RouteView",props:{name:{},attrs:{default:()=>({})},params:{default:()=>({})}},setup(e){const t=window,r=sne(),n=lne(),{t:o}=tn(),a=Pee(),i=Iee(),s=Symbol("route-view"),l=e,u=_(()=>l.name),c=Y(null),d=new Map,f=new Map,p=mre(document),v=pre(document.documentElement),y=U=>U.reverse().concat(o("components.route-view.title",{name:o("common.product.name")})).join(" | "),b={addTitle:(U,O)=>{const V=c.value;V&&(V.innerHTML=o("components.route-view.route-announcer",{title:U})),d.set(O,U),p(y([...d.values()]))},removeTitle:U=>{d.delete(U),p(y([...d.values()]))},addAttrs:(U,O)=>{f.set(O,U),v([...f.values()])},removeAttrs:U=>{f.delete(U),v([...f.values()])}},g=nr(structuredClone(l.params));Ae(g,U=>{if(a.name===l.name){const O=Object.fromEntries(Object.entries(U).filter(([V,D])=>typeof l.params[V]=="boolean"));Object.keys(O).length>0&&x(O)}}),Ae(()=>Object.keys(l.params).map(U=>a.params[U]||a.query[U]),()=>{const U={...a.query,...a.params};Object.entries({...l.params}).reduce((O,[V,D])=>{const F=hre(typeof U[V]>"u"?"":U[V]);return O[V]=vre(F,D),O},g)},{immediate:!0}),Ae(()=>l.name,()=>{const U=Object.entries(g||{}).reduce((O,[V,D])=>(typeof a.params[V]>"u"&&(O[V]=D),O),{});Object.keys(U).length>0&&i.replace({query:L8(U,a.query)})},{immediate:!0});let C={};const w=G5(U=>{i.push({name:l.name,query:L8(U,a.query)}),C={}}),x=U=>{C={...C,...U},w(C)},E=(...U)=>{i.push(...U)},I=(...U)=>{try{if(t.history.state.back!==null){i.back();return}}catch{}E(...U)},T=qt(g7,void 0);T||(p(o("components.route-view.title",{name:o("common.product.name")})),er(g7,b));const N=T||b;return Ae(()=>l.attrs,U=>{Object.keys(U).length>0&&N.addAttrs(U,s)},{immediate:!0}),Sr(()=>{N.removeAttrs(s)}),(U,O)=>(h(),k("div",{class:"route-view","data-testid":u.value},[B(T)?P("",!0):(h(),k("div",{key:0,id:"application-route-announcer",ref_key:"title",ref:c,class:"route-view-title visually-hidden","aria-live":"assertive","aria-atomic":"true"},null,512)),M(),Q(U.$slots,"default",{t:B(o),env:B(r),can:B(n),route:{update:x,replace:E,params:g,back:I}})],8,gre))}}),yre=e=>[{path:"/404",name:"kuma-not-found-view",alias:"/:pathMatch(.*)*",meta:{title:"Item not found"},component:()=>e[e.length-1]()}],bre=e=>{const t=(r,n)=>typeof e[r]<"u"?e[r](t,n):!1;return t};function wre(e){const t=e.split(/([A-Z][a-z]+)/).join(" ").replace(/\s+/g," ").trim();return t.charAt(0).toUpperCase()+t.substring(1)}function Fi(e,t,r=void 0){if(typeof e!="object"||Array.isArray(e)||Array.isArray(t)&&t.length===0)return r;const n=Array.isArray(t)?t:t.split(".");if(n.length===1){const o=e[n[0]];return o===void 0?r:o}return Fi(e[n[0]],n.slice(1),r)}class A8 extends Error{get key(){return this.message}}const _re=(e,t)=>{const r=wC("en-us",e,{isGlobal:!0,onError:o=>{throw o}}),n={KUMA_VERSION:t("KUMA_VERSION"),KUMA_DOCS_URL:t("KUMA_DOCS_URL"),KUMA_UTM_QUERY_PARAMS:t("KUMA_UTM_QUERY_PARAMS"),KUMA_PRODUCT_NAME:r.t("common.product.name")};return{...r,t:function(...o){var i;const a=o[0];try{if(typeof Fi(e,a)>"u")throw a.startsWith("http.api.")?new A8(a):new Error(`Missing message: "${a}" for locale "en-us", using id as fallback`);return Fi(e,a).length===0?"":(o[1]={...n,...o[1]},r.t(...o))}catch(s){switch(!0){case s instanceof A8:return wre(s.key.split(".").pop());default:if((i=o[2])!=null&&i.defaultMessage)return o[2].defaultMessage;throw s}}}}},H8=0,B8=1,Bo=2;class Np extends EventTarget{constructor(r,n){super();mt(this,"url","");mt(this,"withCredentials",!1);mt(this,"CONNECTING",H8);mt(this,"OPEN",B8);mt(this,"CLOSED",Bo);mt(this,"onerror",null);mt(this,"onmessage",null);mt(this,"onopen",null);mt(this,"readyState",Bo);this.source=r,this.configuration=n,this._open()}_open(){(async function(r){try{r.readyState=H8;const n=r.source();r.readyState=B8;for await(const o of n)if(r.dispatchEvent(new MessageEvent("message",{data:o})),r.readyState===Bo)break;r.readyState=Bo}catch(n){r.close(),r.dispatchEvent(new ErrorEvent("error",{error:n}))}})(this)}open(){this.readyState!==Bo&&this._open()}close(){this.readyState=Bo}}const kre=e=>e,Zp=e=>(t,r={})=>{let n=0,o=0;return new Np(async function*(){var i,s;const a=this;for(;;){o>0&&await new Promise(u=>setTimeout(u,a.configuration.interval??1e3)),(n>0||o>0)&&e.hidden&&await new Promise(u=>{e.addEventListener("visibilitychange",u,{once:!0})});let l;try{l=await t(a),typeof a.configuration.interval>"u"&&a.close(),o++,yield l}catch(u){const c=(s=(i=a.configuration)==null?void 0:i.retry)==null?void 0:s.call(i,u);if(typeof(c==null?void 0:c.then)=="function")await Promise.all([c,new Promise(d=>setTimeout(d,1e3))]),n++;else throw u}}},r)},T8=Zp(new class extends EventTarget{constructor(){super(...arguments);mt(this,"hidden",!1)}}),xre=(e,t)=>{const[r,n]=e.split("?"),o=new URLSearchParams(n),a=t.match(r),i={offset:parseInt(o.get("offset")||"0"),size:parseInt(o.get("size")||"0"),page:parseInt(o.get("page")||"0"),search:o.get("search")||"",cacheControl:o.has("no-store")?"no-store":void 0,...a.params};try{const s=a.route(i,{close:()=>{}}),l=s instanceof Np?s:T8(()=>Promise.resolve(s),{cacheControl:i.cacheControl});return l.url=e,l}catch(s){return T8(()=>Promise.reject(s))}},Mre=(e,t)=>{t&&t.close()},Sre={create:xre,destroy:Mre};var Ei=class{constructor(e,t,r,n,o,a){mt(this,"type",3);mt(this,"name","");mt(this,"prefix","");mt(this,"value","");mt(this,"suffix","");mt(this,"modifier",3);this.type=e,this.name=t,this.prefix=r,this.value=n,this.suffix=o,this.modifier=a}hasCustomName(){return this.name!==""&&typeof this.name!="number"}},Ere=/[$_\p{ID_Start}]/u,Lre=/[$_\u200C\u200D\p{ID_Continue}]/u,C7=".*";function Are(e,t){return(t?/^[\x00-\xFF]*$/:/^[\x00-\x7F]*$/).test(e)}function $p(e,t=!1){let r=[],n=0;for(;n{if(il("OTHER_MODIFIER")??l("ASTERISK"),c=C=>{let w=l(C);if(w!==void 0)return w;let{type:x,index:E}=r[i];throw new TypeError(`Unexpected ${x} at ${E}, expected ${C}`)},d=()=>{let C="",w;for(;w=l("CHAR")??l("ESCAPED_CHAR");)C+=w;return C},f=C=>C,p=t.encodePart||f,v="",y=C=>{v+=C},b=()=>{v.length&&(o.push(new Ei(3,"","",p(v),"",3)),v="")},g=(C,w,x,E,I)=>{let T=3;switch(I){case"?":T=1;break;case"*":T=0;break;case"+":T=2;break}if(!w&&!x&&T===3){y(C);return}if(b(),!w&&!x){if(!C)return;o.push(new Ei(3,"","",p(C),"",T));return}let N;x?x==="*"?N=C7:N=x:N=n;let U=2;N===n?(U=1,N=""):N===C7&&(U=0,N="");let O;if(w?O=w:x&&(O=a++),s.has(O))throw new TypeError(`Duplicate name '${O}'.`);s.add(O),o.push(new Ei(U,O,p(C),N,p(E),T))};for(;i-1)}return i||(n+=`(?=${a}|${o})`),new RegExp(n,D8(r))}var fn={delimiter:"",prefixes:"",sensitive:!0,strict:!0},Bre={delimiter:".",prefixes:"",sensitive:!0,strict:!0},Tre={delimiter:"/",prefixes:"/",sensitive:!0,strict:!0};function Dre(e,t){return e.length?e[0]==="/"?!0:!t||e.length<2?!1:(e[0]=="\\"||e[0]=="{")&&e[1]=="/":!1}function Fp(e,t){return e.startsWith(t)?e.substring(t.length,e.length):e}function Ore(e,t){return e.endsWith(t)?e.substr(0,e.length-t.length):e}function Up(e){return!e||e.length<2?!1:e[0]==="["||(e[0]==="\\"||e[0]==="{")&&e[1]==="["}var jp=["ftp","file","http","https","ws","wss"];function Yp(e){if(!e)return!0;for(let t of jp)if(e.test(t))return!0;return!1}function Vre(e,t){if(e=Fp(e,"#"),t||e==="")return e;let r=new URL("https://example.com");return r.hash=e,r.hash?r.hash.substring(1,r.hash.length):""}function Ire(e,t){if(e=Fp(e,"?"),t||e==="")return e;let r=new URL("https://example.com");return r.search=e,r.search?r.search.substring(1,r.search.length):""}function Pre(e,t){return t||e===""?e:Up(e)?qp(e):Kp(e)}function Nre(e,t){if(t||e==="")return e;let r=new URL("https://example.com");return r.password=e,r.password}function Zre(e,t){if(t||e==="")return e;let r=new URL("https://example.com");return r.username=e,r.username}function $re(e,t,r){if(r||e==="")return e;if(t&&!jp.includes(t))return new URL(`${t}:${e}`).pathname;let n=e[0]=="/";return e=new URL(n?e:"/-"+e,"https://example.com").pathname,n||(e=e.substring(2,e.length)),e}function Rre(e,t,r){return Gp(t)===e&&(e=""),r||e===""?e:Wp(e)}function zre(e,t){return e=Ore(e,":"),t||e===""?e:K5(e)}function Gp(e){switch(e){case"ws":case"http":return"80";case"wws":case"https":return"443";case"ftp":return"21";default:return""}}function K5(e){if(e==="")return e;if(/^[-+.A-Za-z0-9]*$/.test(e))return e.toLowerCase();throw new TypeError(`Invalid protocol '${e}'.`)}function Fre(e){if(e==="")return e;let t=new URL("https://example.com");return t.username=e,t.username}function Ure(e){if(e==="")return e;let t=new URL("https://example.com");return t.password=e,t.password}function Kp(e){if(e==="")return e;if(/[\t\n\r #%/:<>?@[\]^\\|]/g.test(e))throw new TypeError(`Invalid hostname '${e}'`);let t=new URL("https://example.com");return t.hostname=e,t.hostname}function qp(e){if(e==="")return e;if(/[^0-9a-fA-F[\]:]/g.test(e))throw new TypeError(`Invalid IPv6 hostname '${e}'`);return e.toLowerCase()}function Wp(e){if(e===""||/^[0-9]*$/.test(e)&&parseInt(e)<=65535)return e;throw new TypeError(`Invalid port '${e}'.`)}function jre(e){if(e==="")return e;let t=new URL("https://example.com");return t.pathname=e[0]!=="/"?"/-"+e:e,e[0]!=="/"?t.pathname.substring(2,t.pathname.length):t.pathname}function Yre(e){return e===""?e:new URL(`data:${e}`).pathname}function Gre(e){if(e==="")return e;let t=new URL("https://example.com");return t.search=e,t.search.substring(1,t.search.length)}function Kre(e){if(e==="")return e;let t=new URL("https://example.com");return t.hash=e,t.hash.substring(1,t.hash.length)}var Qo,f1,Ht,xt,Wn,Xo,Nr,Jo,ea,ta,Rt,Yt,$l,Qp,Ui,y7,Qn,li,ra,Ks,k1,Z1,ji,b7,Rl,Xp,na,qs,zl,Jp,Fl,eh,oa,Ws,bn,$o,Zr,zn,Ul,th,jl,rh,Yl,nh,Gl,oh,R1,ur,Kl,ah,$8,qre=($8=class{constructor(e){ut(this,Rt);ut(this,$l);ut(this,Ui);ut(this,Qn);ut(this,ra);ut(this,k1);ut(this,ji);ut(this,Rl);ut(this,na);ut(this,zl);ut(this,Fl);ut(this,oa);ut(this,bn);ut(this,Zr);ut(this,Ul);ut(this,jl);ut(this,Yl);ut(this,Gl);ut(this,R1);ut(this,Kl);ut(this,Qo,void 0);ut(this,f1,[]);ut(this,Ht,{});ut(this,xt,0);ut(this,Wn,1);ut(this,Xo,0);ut(this,Nr,0);ut(this,Jo,0);ut(this,ea,0);ut(this,ta,!1);Wt(this,Qo,e)}get result(){return he(this,Ht)}parse(){for(Wt(this,f1,$p(he(this,Qo),!0));he(this,xt)0)if(Me(this,jl,rh).call(this))Wt(this,Jo,he(this,Jo)-1);else continue;if(Me(this,Ul,th).call(this)){Wt(this,Jo,he(this,Jo)+1);continue}switch(he(this,Nr)){case 0:Me(this,ji,b7).call(this)&&(he(this,Ht).username="",he(this,Ht).password="",he(this,Ht).hostname="",he(this,Ht).port="",he(this,Ht).pathname="",he(this,Ht).search="",he(this,Ht).hash="",Me(this,Qn,li).call(this,1));break;case 1:if(Me(this,ji,b7).call(this)){Me(this,Kl,ah).call(this);let e=7,t=1;he(this,ta)&&(he(this,Ht).pathname="/"),Me(this,Rl,Xp).call(this)?(e=2,t=3):he(this,ta)&&(e=2),Me(this,Rt,Yt).call(this,e,t)}break;case 2:Me(this,na,qs).call(this)?Me(this,Qn,li).call(this,3):(Me(this,oa,Ws).call(this)||Me(this,bn,$o).call(this)||Me(this,Zr,zn).call(this))&&Me(this,Qn,li).call(this,5);break;case 3:Me(this,zl,Jp).call(this)?Me(this,Rt,Yt).call(this,4,1):Me(this,na,qs).call(this)&&Me(this,Rt,Yt).call(this,5,1);break;case 4:Me(this,na,qs).call(this)&&Me(this,Rt,Yt).call(this,5,1);break;case 5:Me(this,Yl,nh).call(this)?Wt(this,ea,he(this,ea)+1):Me(this,Gl,oh).call(this)&&Wt(this,ea,he(this,ea)-1),Me(this,Fl,eh).call(this)&&!he(this,ea)?Me(this,Rt,Yt).call(this,6,1):Me(this,oa,Ws).call(this)?Me(this,Rt,Yt).call(this,7,0):Me(this,bn,$o).call(this)?Me(this,Rt,Yt).call(this,8,1):Me(this,Zr,zn).call(this)&&Me(this,Rt,Yt).call(this,9,1);break;case 6:Me(this,oa,Ws).call(this)?Me(this,Rt,Yt).call(this,7,0):Me(this,bn,$o).call(this)?Me(this,Rt,Yt).call(this,8,1):Me(this,Zr,zn).call(this)&&Me(this,Rt,Yt).call(this,9,1);break;case 7:Me(this,bn,$o).call(this)?Me(this,Rt,Yt).call(this,8,1):Me(this,Zr,zn).call(this)&&Me(this,Rt,Yt).call(this,9,1);break;case 8:Me(this,Zr,zn).call(this)&&Me(this,Rt,Yt).call(this,9,1);break}}}},Qo=new WeakMap,f1=new WeakMap,Ht=new WeakMap,xt=new WeakMap,Wn=new WeakMap,Xo=new WeakMap,Nr=new WeakMap,Jo=new WeakMap,ea=new WeakMap,ta=new WeakMap,Rt=new WeakSet,Yt=function(e,t){switch(he(this,Nr)){case 0:break;case 1:he(this,Ht).protocol=Me(this,R1,ur).call(this);break;case 2:break;case 3:he(this,Ht).username=Me(this,R1,ur).call(this);break;case 4:he(this,Ht).password=Me(this,R1,ur).call(this);break;case 5:he(this,Ht).hostname=Me(this,R1,ur).call(this);break;case 6:he(this,Ht).port=Me(this,R1,ur).call(this);break;case 7:he(this,Ht).pathname=Me(this,R1,ur).call(this);break;case 8:he(this,Ht).search=Me(this,R1,ur).call(this);break;case 9:he(this,Ht).hash=Me(this,R1,ur).call(this);break}Me(this,$l,Qp).call(this,e,t)},$l=new WeakSet,Qp=function(e,t){Wt(this,Nr,e),Wt(this,Xo,he(this,xt)+t),Wt(this,xt,he(this,xt)+t),Wt(this,Wn,0)},Ui=new WeakSet,y7=function(){Wt(this,xt,he(this,Xo)),Wt(this,Wn,0)},Qn=new WeakSet,li=function(e){Me(this,Ui,y7).call(this),Wt(this,Nr,e)},ra=new WeakSet,Ks=function(e){return e<0&&(e=he(this,f1).length-e),e=0&&(e.pathname=Dr(n.pathname.substring(0,o+1),r)+e.pathname)}e.pathname=$re(e.pathname,e.protocol,r)}return typeof t.search=="string"&&(e.search=Ire(t.search,r)),typeof t.hash=="string"&&(e.hash=Vre(t.hash,r)),e}function ui(e){return e.replace(/([+*?:{}()\\])/g,"\\$1")}function Wre(e){return e.replace(/([.+*?^${}()[\]|/\\])/g,"\\$1")}function Qre(e,t){t.delimiter??(t.delimiter="/#?"),t.prefixes??(t.prefixes="./"),t.sensitive??(t.sensitive=!1),t.strict??(t.strict=!1),t.end??(t.end=!0),t.start??(t.start=!0),t.endsWith="";let r=".*",n=`[^${Wre(t.delimiter)}]+?`,o=/[$_\u200C\u200D\p{ID_Continue}]/u,a="";for(let i=0;i0?e[i-1]:null,d=i0?d.value[0]:"";u=o.test(f)}else u=!d.hasCustomName();if(!u&&!s.prefix.length&&c&&c.type===3){let f=c.value[c.value.length-1];u=t.prefixes.includes(f)}u&&(a+="{"),a+=ui(s.prefix),l&&(a+=`:${s.name}`),s.type===2?a+=`(${s.value})`:s.type===1?l||(a+=`(${n})`):s.type===0&&(!l&&(!c||c.type===3||c.modifier!==3||u||s.prefix!=="")?a+="*":a+=`(${r})`),s.type===1&&l&&s.suffix.length&&o.test(s.suffix[0])&&(a+="\\"),a+=ui(s.suffix),u&&(a+="}"),s.modifier!==3&&(a+=Fo(s.modifier))}return a}var pr,Xn,aa,Qt,hr,R8,ih=(R8=class{constructor(e={},t,r){ut(this,pr,void 0);ut(this,Xn,{});ut(this,aa,{});ut(this,Qt,{});ut(this,hr,{});try{let n;if(typeof t=="string"?n=t:r=t,typeof e=="string"){let s=new qre(e);if(s.parse(),e=s.result,n===void 0&&typeof e.protocol!="string")throw new TypeError("A base URL must be provided for a relative constructor string.");e.baseURL=n}else{if(!e||typeof e!="object")throw new TypeError("parameter 1 is not of type 'string' and cannot convert to dictionary.");if(n)throw new TypeError("parameter 1 is not of type 'string'.")}typeof r>"u"&&(r={ignoreCase:!1});let o={ignoreCase:r.ignoreCase===!0};Wt(this,pr,Wa({pathname:ln,protocol:ln,username:ln,password:ln,hostname:ln,port:ln,search:ln,hash:ln},e,!0)),Gp(he(this,pr).protocol)===he(this,pr).port&&(he(this,pr).port="");let i;for(i of V0){if(!(i in he(this,pr)))continue;let s={},l=he(this,pr)[i];switch(he(this,aa)[i]=[],i){case"protocol":Object.assign(s,fn),s.encodePart=K5;break;case"username":Object.assign(s,fn),s.encodePart=Fre;break;case"password":Object.assign(s,fn),s.encodePart=Ure;break;case"hostname":Object.assign(s,Bre),Up(l)?s.encodePart=qp:s.encodePart=Kp;break;case"port":Object.assign(s,fn),s.encodePart=Wp;break;case"pathname":Yp(he(this,Xn).protocol)?(Object.assign(s,Tre,o),s.encodePart=jre):(Object.assign(s,fn,o),s.encodePart=Yre);break;case"search":Object.assign(s,fn,o),s.encodePart=Gre;break;case"hash":Object.assign(s,fn,o),s.encodePart=Kre;break}try{he(this,hr)[i]=Rp(l,s),he(this,Xn)[i]=zp(he(this,hr)[i],he(this,aa)[i],s),he(this,Qt)[i]=Qre(he(this,hr)[i],s)}catch{throw new TypeError(`invalid ${i} pattern '${he(this,pr)[i]}'.`)}}}catch(n){throw new TypeError(`Failed to construct 'URLPattern': ${n.message}`)}}test(e={},t){let r={pathname:"",protocol:"",username:"",password:"",hostname:"",port:"",search:"",hash:""};if(typeof e!="string"&&t)throw new TypeError("parameter 1 is not of type 'string'.");if(typeof e>"u")return!1;try{typeof e=="object"?r=Wa(r,e,!1):r=Wa(r,O8(e,t),!1)}catch{return!1}let n;for(n of V0)if(!he(this,Xn)[n].exec(r[n]))return!1;return!0}exec(e={},t){let r={pathname:"",protocol:"",username:"",password:"",hostname:"",port:"",search:"",hash:""};if(typeof e!="string"&&t)throw new TypeError("parameter 1 is not of type 'string'.");if(typeof e>"u")return;try{typeof e=="object"?r=Wa(r,e,!1):r=Wa(r,O8(e,t),!1)}catch{return null}let n={};t?n.inputs=[e,t]:n.inputs=[e];let o;for(o of V0){let a=he(this,Xn)[o].exec(r[o]);if(!a)return null;let i={};for(let[s,l]of he(this,aa)[o].entries())if(typeof l=="string"||typeof l=="number"){let u=a[s+1];i[l]=u}n[o]={input:r[o]??"",groups:i}}return n}static compareComponent(e,t,r){let n=(s,l)=>{for(let u of["type","modifier","prefix","value","suffix"]){if(s[u]{let u=0;for(;u{this.routes.set(new ih({pathname:r}),n)})}match(t){for(const[r,n]of this.routes){const o=`data:${t}`;if(r.test(o)){const a=r.exec(o);return{route:n,params:(a==null?void 0:a.pathname.groups)||{}}}}throw new Error(`Matching route for '${t}' not found`)}}class Jre{constructor(t,r){mt(this,"pool",new Map);this.create=t,this.destroy=r}acquire(t,r){if(!this.pool.has(t)){const o={value:this.create(t),references:new Set};this.pool.set(t,o)}const n=this.pool.get(t);return n.references.add(r),n.value}release(t,r){if(this.pool.has(t)){const n=this.pool.get(t);n.references.delete(r),n.references.size===0&&(this.pool.delete(t),this.destroy(t,n.value))}}}class ene{constructor(t,{create:r,destroy:n},o){mt(this,"cache",new Map);mt(this,"pool");mt(this,"getCacheKeyPrefix");const a=new Xre(t);this.pool=new Jre(i=>r(i,a),(i,s)=>{n(i,s)}),this.getCacheKeyPrefix=o}source(t,r){const n=this.getCacheKeyPrefix()+t,o=this.pool.acquire(t,r);return o.addEventListener("message",a=>{const i=a.target;(i==null?void 0:i.configuration.cacheControl)!=="no-store"&&this.cache.set(n,a.data)}),this.cache.has(n)&&Promise.resolve().then(()=>{o==null||o.dispatchEvent(new MessageEvent("message",{data:this.cache.get(n)}))}),o}close(t,r){return this.pool.release(t,r)}}class tne{constructor(t){mt(this,"env");let r=t;const n=(l,u="")=>this.var(l,(r==null?void 0:r[l])??u),o=this.getConfig(),a=n("KUMA_MODE")||o.mode,i=one(n("KUMA_VERSION",o.version)),s=encodeURIComponent(n("KUMA_PRODUCT_NAME"));r={...r,KUMA_UTM_QUERY_PARAMS:`utm_source=${s}&utm_medium=${s}`},this.env={...r,KUMA_DOCS_URL:`${n("KUMA_DOCS_URL")}/${i.patch==="0.0.0"?"dev":i.patch.replace(/\.\d+$/,".x")}`,KUMA_VERSION:i.pre,KUMA_API_URL:n("KUMA_API_URL")||o.apiUrl,KUMA_BASE_PATH:n("KUMA_BASE_PATH")||o.baseGuiPath,KUMA_MODE:a,KUMA_ENVIRONMENT:n("KUMA_ENVIRONMENT")||o.environment,KUMA_STORE_TYPE:n("KUMA_STORE_TYPE")||o.storeType,KUMA_KDS_URL:"grpcs://:5685"}}var(t,r=""){var n;return((n=this.env)==null?void 0:n[t])??r}getConfig(){const t=document.querySelector("#kuma-config");let r;if(t instanceof HTMLScriptElement&&t.textContent)try{r=JSON.parse(t.textContent.trim())}catch(n){console.error(n)}return r||(r=rne(),console.error("Unable to parse kuma config. Falling back to defaults")),r.apiUrl=nne(r.apiUrl),r}}function rne(e=""){return{baseGuiPath:"/gui",apiUrl:e,version:"2.4.0",product:"Kuma",mode:"zone",zone:"default",environment:"universal",storeType:"postgres",apiReadOnly:!1}}function sh(e){return e.endsWith("/")?sh(e.slice(0,-1)):e}function nne(e){return e=!e.includes("://")&&!e.startsWith("/")?`/${e}`:e,sh(e)}function one(e){const[t,r,...n]=e.split(".");if(isNaN(parseInt(t)))return{major:t,minor:t,patch:t,pre:t};const[o,a]=n.join(".").split("-");return{major:t,minor:`${t}.${r}`,patch:`${t}.${r}.${o}`,pre:`${t}.${r}.${o}${a!==void 0?`-${a}`:""}`}}const Gt={Env:Ue("application.Env"),env:Ue("application.env"),EnvVars:Ue("EnvVars"),can:Ue("application.can"),features:Ue("application.can.features"),notFoundView:Ue("application.not-found"),applicationComponents:Ue("application.components"),source:Ue("data.source"),sources:Ue("data.sources"),dataSourcePool:Ue("data.DataSourcePool"),dataSourceLifecycle:Ue("data.DataSourceLifecycle"),getDataSourceCacheKeyPrefix:Ue("data.getDataSourceCacheKeyPrefix"),i18n:Ue("i18n"),enUs:Ue("i18n.locale.enUs")},ane=e=>[[Ue("application.components"),{service:t=>[["AppView",ure],["DataSource",dre],["RouteView",Cre],["RouteTitle",fre],["I18nT",_C(t)]],arguments:[e.i18n],labels:[e.components]}],[Ue("application.routes"),{service:yre,arguments:[Gt.notFoundView],labels:[e.routes]}],[Gt.i18n,{service:_re,arguments:[Gt.enUs,e.env]}],[Gt.can,{service:bre,arguments:[Gt.features]}],[Gt.Env,{service:tne,arguments:[e.EnvVars]}],[Gt.env,{service:t=>(...r)=>t.var(...r),arguments:[Gt.Env]}],[Gt.dataSourceLifecycle,{constant:Sre}],[Gt.source,{service:Zp,arguments:[dn(document,{description:"dom.document"})]}],[Gt.getDataSourceCacheKeyPrefix,{service:()=>()=>"",arguments:[e.router]}],[Gt.dataSourcePool,{service:ene,arguments:[e.sources,Gt.dataSourceLifecycle,Gt.getDataSourceCacheKeyPrefix]}]],ine=Gt,[sne,lne,tn,une]=Na(Gt.env,Gt.can,Gt.i18n,Gt.dataSourcePool),H2=e=>(Je("data-v-350f9448"),e=e(),et(),e),cne={class:"card-header"},dne={class:"card-title"},fne={class:"columns"},pne=H2(()=>m("img",{src:Wm},null,-1)),hne=H2(()=>m("img",{src:Qm},null,-1)),vne=H2(()=>m("img",{src:Qc},null,-1)),mne=H2(()=>m("img",{src:Qc},null,-1)),gne=ne({__name:"ControlPlaneStatus",props:{globalInsight:{},canUseZones:{type:Boolean}},setup(e){const{t}=tn(),r=e;return(n,o)=>{const a=Bt("KCard");return h(),J(a,null,{default:A(()=>[m("div",cne,[m("div",dne,[m("h2",null,Z(B(t)("main-overview.detail.health.title")),1)])]),M(),m("div",fne,[r.canUseZones?(h(),J(qn,{key:0,total:r.globalInsight.zones.controlPlanes.total,online:r.globalInsight.zones.controlPlanes.online,"data-testid":"zone-control-planes-status"},{icon:A(()=>[pne]),title:A(()=>[M(Z(B(t)("main-overview.detail.health.zone_control_planes")),1)]),_:1},8,["total","online"])):P("",!0),M(),R(qn,{total:r.globalInsight.meshes.total,"data-testid":"meshes-status"},{icon:A(()=>[hne]),title:A(()=>[M(Z(B(t)("main-overview.detail.health.meshes")),1)]),_:1},8,["total"]),M(),R(qn,{total:r.globalInsight.services.internal.total,online:r.globalInsight.services.internal.online,"data-testid":"services-status"},{icon:A(()=>[vne]),title:A(()=>[M(Z(B(t)("main-overview.detail.health.services")),1)]),_:1},8,["total","online"]),M(),R(qn,{total:r.globalInsight.dataplanes.standard.total,online:r.globalInsight.dataplanes.standard.online,"data-testid":"data-plane-proxies-status"},{icon:A(()=>[mne]),title:A(()=>[M(Z(B(t)("main-overview.detail.health.data_plane_proxies")),1)]),_:1},8,["total","online"])])]),_:1})}}});const Cne=Pa(gne,[["__scopeId","data-v-350f9448"]]),Zl={sources:Ue("control-planes.sources"),ControlPlaneStatus:Ue("control-planes.components.ControlPlaneStatus")},yne=e=>[[Zl.sources,{service:kh,arguments:[e.env,e.api],labels:[e.sources]}],[Zl.ControlPlaneStatus,{service:()=>Cne}],[Ue("control-planes.routes"),{service:yh,labels:[e.routes]}],[Ue("control-planes.features"),{service:Ch,arguments:[e.env],labels:[e.features]}]],bne=Zl,[Zae]=Na(Zl.ControlPlaneStatus),wne=()=>[{path:"/diagnostics",name:"diagnostics",component:()=>Ve(()=>import("./DiagnosticsDetailView-5ca9a20e.js"),["./CodeBlock-aa591f34.css","./CopyButton-2be0e14d.css","./TextWithCopyButton-f7225b54.css","./ErrorBlock-bcc21522.css"],import.meta.url)}],_ne=e=>[[Ue("diagnostics.routes"),{service:wne,labels:[e.routes]}]];class kne{constructor(t){mt(this,"storageAdapter");this.storageAdapter=t}get(t){let r;try{r=this.storageAdapter.getItem(t)}catch{return null}if(r===null||!(r.startsWith("[")||r.startsWith("{")))return r;try{return JSON.parse(r)}catch{return r}}set(t,r){try{const n=typeof r=="string"?r:JSON.stringify(r);this.storageAdapter.setItem(t,n)}catch{}}has(t){try{return this.storageAdapter.getItem(t)!==null}catch{return!1}}remove(t){try{this.storageAdapter.removeItem(t)}catch{}}}const V8=new kne(window.localStorage),xne={class:"onboarding-alert-content"},Mne=["innerHTML"],Sne=ne({__name:"OnboardingAlert",setup(e){const{t}=tn(),r=Y(V8.get("hasDismissedOnboardingAlert")!=="true");function n(){r.value=!1,V8.set("hasDismissedOnboardingAlert","true")}return(o,a)=>{const i=Bt("KButton"),s=Bt("KAlert");return r.value?(h(),J(s,{key:0,appearance:"success","dismiss-type":"icon","data-testid":"onboarding-notification",onClosed:n},{alertMessage:A(()=>[m("div",xne,[m("div",{innerHTML:B(t)("main-overview.detail.onboarding.message",{name:B(t)("common.product.name")})},null,8,Mne),M(),R(i,{appearance:"primary",size:"small",class:"action-button",to:{name:"onboarding-welcome-view"}},{default:A(()=>[M(Z(B(t)("main-overview.detail.onboarding.get_started_link")),1)]),_:1})])]),_:1})):P("",!0)}}});const Ene=Pa(Sne,[["__scopeId","data-v-bdbc77dd"]]),Lne={class:"stack"},Ane=ne({__name:"ControlPlaneStatusWithOnboarding",props:{globalInsight:{},canUseZones:{type:Boolean}},setup(e){const t=Tne(),r=e;return(n,o)=>(h(),k("div",Lne,[n.globalInsight.meshes.total===1?(h(),J(Ene,{key:0})):P("",!0),M(),R(B(t),{"can-use-zones":r.canUseZones,"global-insight":n.globalInsight},null,8,["can-use-zones","global-insight"])]))}}),Hne=()=>[{path:"/onboarding",redirect:{name:"onboarding-welcome-view"},component:()=>Ve(()=>import("./OnboardingRootView-fad5c5c5.js"),[],import.meta.url),children:[{path:"welcome",name:"onboarding-welcome-view",component:()=>Ve(()=>import("./OnboardingWelcomeView-a42d8027.js"),["./OnboardingPage-b708a949.css","./OnboardingWelcomeView-ba0c5c64.css"],import.meta.url)},{path:"deployment-types",name:"onboarding-deployment-types-view",component:()=>Ve(()=>import("./OnboardingDeploymentTypesView-afd3a502.js"),["./OnboardingPage-b708a949.css","./OnboardingDeploymentTypesView-2f052c8a.css"],import.meta.url)},{path:"configuration-types",name:"onboarding-configuration-types-view",component:()=>Ve(()=>import("./OnboardingConfigurationTypesView-480875d7.js"),["./OnboardingPage-b708a949.css","./OnboardingConfigurationTypesView-7c8a5017.css"],import.meta.url)},{path:"multi-zone",name:"onboarding-multi-zone-view",component:()=>Ve(()=>import("./OnboardingMultiZoneView-dfe22d04.js"),["./LoadingBox-0bc10551.css","./OnboardingPage-b708a949.css","./OnboardingMultiZoneView-abcc5530.css"],import.meta.url)},{path:"create-mesh",name:"onboarding-create-mesh-view",component:()=>Ve(()=>import("./OnboardingCreateMeshView-b202539f.js"),["./OnboardingPage-b708a949.css","./OnboardingCreateMeshView-fb39b91f.css"],import.meta.url)},{path:"add-services",name:"onboarding-add-new-services-view",component:()=>Ve(()=>import("./OnboardingAddNewServicesView-f0ddf096.js"),["./OnboardingPage-b708a949.css","./OnboardingAddNewServicesView-23f21aef.css"],import.meta.url)},{path:"add-services-code",name:"onboarding-add-new-services-code-view",component:()=>Ve(()=>import("./OnboardingAddNewServicesCodeView-d343172b.js"),["./LoadingBox-0bc10551.css","./OnboardingPage-b708a949.css","./CodeBlock-aa591f34.css","./OnboardingAddNewServicesCodeView-c1d9425b.css"],import.meta.url)},{path:"dataplanes-overview",name:"onboarding-dataplanes-view",component:()=>Ve(()=>import("./OnboardingDataplanesView-2536d5bc.js"),["./LoadingBox-0bc10551.css","./OnboardingPage-b708a949.css","./CopyButton-2be0e14d.css","./TextWithCopyButton-f7225b54.css","./ErrorBlock-bcc21522.css","./StatusBadge-8194fcb8.css","./OnboardingDataplanesView-a63b1ad7.css"],import.meta.url)},{path:"completed",name:"onboarding-completed-view",component:()=>Ve(()=>import("./OnboardingCompletedView-1c942bdc.js"),["./OnboardingPage-b708a949.css","./OnboardingCompletedView-a7cfb1d4.css"],import.meta.url)}]}],lh=Ue("onboarding.components.ControlPlaneStatus"),Bne=e=>[[Ue("onboarding.routes"),{service:Hne,labels:[e.routes]}],[Ue("onboarding.components.ControlPlaneStatusWithOnboarding"),{service:t=>(U5(lh,{service:t}),Ane),decorates:e.ControlPlaneStatus}]],[Tne]=Na(lh);class Dne{info(...t){this._log("info",...t)}warn(...t){this._log("warn",...t)}error(...t){this._log("error",...t)}_log(t,...r){console[t](...r)}}const One=()=>{class e extends Dne{setup(){console.warn("Logging is disabled")}_log(){}}return new e},Vne=e=>[[Ue("kuma.components.not-found"),{service:()=>[()=>Ve(()=>import("./KumaNotFoundView-d6b5e8d7.js"),[],import.meta.url)],labels:[e.notFoundView]}]],Ine=()=>({"/me":async(e={},t)=>(t.close(),Promise.resolve({pageSize:50}))}),Pne={sources:Ue("me.sources")},Nne=e=>[[Pne.sources,{service:Ine,arguments:[e.api],labels:[e.sources]}]],Zne=(e,t,r)=>[{path:"/meshes",name:"mesh-index-view",redirect:{name:"mesh-list-view"},component:()=>Ve(()=>import("./MeshRootView-0a30e636.js"),[],import.meta.url),children:[{path:"",name:"mesh-list-view",component:()=>Ve(()=>import("./MeshListView-ff37e3ae.js"),["./AppCollection-6359d3b1.css","./CopyButton-2be0e14d.css","./TextWithCopyButton-f7225b54.css","./ErrorBlock-bcc21522.css","./SummaryView-969145bb.css","./MeshListView-04acf3fa.css"],import.meta.url),children:[{path:":mesh",name:"mesh-summary-view",component:()=>Ve(()=>import("./MeshSummaryView-207f123e.js"),["./MeshSummaryView-fb53424c.css"],import.meta.url)}]},{path:":mesh",name:"mesh",redirect:{name:"mesh-detail-view"},children:[{path:"",name:"mesh-detail-tabs-view",redirect:{name:"mesh-detail-view"},component:()=>Ve(()=>import("./MeshDetailTabsView-52380a8b.js"),["./NavTabs-3b34e815.css","./CopyButton-2be0e14d.css","./TextWithCopyButton-f7225b54.css"],import.meta.url),children:[{path:"overview",meta:{module:"meshes"},name:"mesh-detail-view",component:()=>Ve(()=>import("./MeshDetailView-34a15167.js"),["./CopyButton-2be0e14d.css","./TextWithCopyButton-f7225b54.css","./ErrorBlock-bcc21522.css","./MeshDetailView-33fe715e.css"],import.meta.url)},{path:"config",name:"mesh-config-view",component:()=>Ve(()=>import("./MeshConfigView-b2680d73.js"),["./CopyButton-2be0e14d.css","./TextWithCopyButton-f7225b54.css","./ErrorBlock-bcc21522.css","./CodeBlock-aa591f34.css","./ResourceCodeBlock-dd906c25.css"],import.meta.url)},...e.items(),...t.items(),...r.items()]},...e.item(),...t.item(),...r.item()]}]}],uh={fromArray:e=>{const t=Array.isArray(e)?e:[],r=t.slice();r.sort((a,i)=>Date.parse(i.status.lastUpdateTime)-Date.parse(a.status.lastUpdateTime));const n=r.find(a=>typeof a.version<"u"),o=r.find(a=>!a.disconnectTime);return{subscriptions:t,connectedSubscription:o,version:n==null?void 0:n.version}}},ch={fromObject(e){const{inbound:t,outbound:r,...n}=e,o=Array.isArray(t)?t:[],a=Array.isArray(r)?r:[];return{...n,inbounds:o.map(i=>({...i,health:{ready:q5(i.health)?i.health.ready:!0},service:i.tags["kuma.io/service"],protocol:i.tags["kuma.io/protocol"]??"tcp",addressPort:`${i.address??e.advertisedAddress??e.address}:${i.port}`,serviceAddressPort:`${i.serviceAddress??i.address??e.address}:${i.servicePort??i.port}`})),outbounds:a.map(i=>({...i,service:i.tags["kuma.io/service"],protocol:i.tags["kuma.io/protocol"]??"tcp"}))}}},$ne={fromObject(e){return{...e,config:e,networking:ch.fromObject(e.networking)}}},Rne={fromArray:e=>uh.fromArray(e)},zne={fromObject(e){return{...e,...Rne.fromArray(e==null?void 0:e.subscriptions)}}},ci={fromObject(e,t){var d;const r=zne.fromObject(e.dataplaneInsight),n=ch.fromObject(e.dataplane.networking),o=qne(n),a=Yne(n),i=Kne(r,a,t),s=Gne(r),l=q5(r.connectedSubscription)?"online":"offline",u=a.filter(f=>f.label==="kuma.io/service").map(({value:f})=>f),c=(d=a.find(f=>f.label==="kuma.io/zone"))==null?void 0:d.value;return{...e,dataplane:{networking:n},dataplaneInsight:r,dataplaneType:o,status:n.gateway?l:(()=>{const f=n.inbounds.filter(p=>!p.health.ready);switch(!0){case f.length===n.inbounds.length:return"offline";case f.length>0:return"partially_degraded";default:return l}})(),warnings:i,isCertExpired:s,services:u,zone:c}},fromCollection(e,t){return{...e,items:Array.isArray(e.items)?e.items.map(r=>ci.fromObject(r,t)):[]}}},Fne={fromCollection(e){const t=Array.isArray(e.items)?e.items:[],r=Wne(t);return{...e,items:t,policyTypeEntries:r}}},Une={fromCollection(e){const t=Array.isArray(e.rules)?e.rules:[],r=Xne(t),n=Jne(t),o=eoe(t);return{...e,rules:t,proxyRule:r,toRules:n,fromRuleInbounds:o}}},jne={fromObject(e){const t=toe(e),r=Object.values(e.policies??{}).map(({mesh:n,name:o,type:a})=>({mesh:n,name:o,type:a}));return{...e,listenerEntries:t,routePolicies:r}}};function Yne({gateway:e,inbounds:t}){let r=[];const n="=";t.length>0&&(r=t.flatMap(a=>Object.entries(a.tags)).map(([a,i])=>`${a}${n}${i}`)),e&&(r=Object.entries(e.tags).map(([a,i])=>`${a}${n}${i}`));const o=Array.from(new Set(r));return o.sort((a,i)=>a.localeCompare(i)),o.map(a=>{const[i,s]=a.split(n);return{label:i,value:s}})}function Gne({mTLS:e}){return e?Date.now()>new Date(e.certificateExpirationTime).getTime():!1}function Kne({version:e},t,r){var o,a;if(!q5(e))return[];const n=[];return e.kumaDp&&e.envoy&&((((o=e.kumaDp)==null?void 0:o.kumaCpCompatible)??!0)||n.push({kind:"INCOMPATIBLE_UNSUPPORTED_KUMA_DP",payload:{kumaDp:e.kumaDp.version}}),(((a=e.envoy)==null?void 0:a.kumaDpCompatible)??!0)||n.push({kind:"INCOMPATIBLE_UNSUPPORTED_ENVOY",payload:{envoy:e.envoy.version,kumaDp:e.kumaDp.version}})),r&&t.find(s=>s.label==="kuma.io/zone")&&typeof e.kumaDp.kumaCpCompatible=="boolean"&&!e.kumaDp.kumaCpCompatible&&n.push({kind:"INCOMPATIBLE_ZONE_CP_AND_KUMA_DP_VERSIONS",payload:{kumaDp:e.kumaDp.version}}),n}function qne({gateway:e}){return e?e.type?e.type.toLowerCase():"delegated":"standard"}function Wne(e){const t=new Map;for(const n of e){const{type:o,service:a}=n,i=typeof a=="string"&&a!==""?[{label:"kuma.io/service",value:a}]:[],s=o==="inbound"||o==="outbound"?n.name:null;for(const[l,u]of Object.entries(n.matchedPolicies)){t.has(l)||t.set(l,{type:l,connections:[]});const c=t.get(l);for(const d of u){const f=Qne(d,n,i,s);c.connections.push(...f)}}}const r=Array.from(t.values());return r.sort((n,o)=>n.type.localeCompare(o.type)),r}function Qne(e,t,r,n){const o=e.conf&&Object.keys(e.conf).length>0?e.conf:void 0,a=[{name:e.name,mesh:e.mesh,type:e.type}],i=[];if(t.type==="inbound"&&Array.isArray(e.sources))for(const{match:s}of e.sources){const u={sourceTags:[{label:"kuma.io/service",value:s["kuma.io/service"]}],destinationTags:r,name:n,config:o,origins:a};i.push(u)}else{const l={sourceTags:[],destinationTags:r,name:n,config:o,origins:a};i.push(l)}return i}function Xne(e){const t=e.find(i=>i.proxyRule);if(!t||!t.proxyRule)return;const{type:r,proxyRule:n}=t,o=n.conf&&Object.keys(n.conf).length>0?n.conf:void 0,a=n.origin;return{type:r,rules:[{config:o,origins:a}]}}function Jne(e){const t=[];for(const r of e){const n=r.toRules??[];n.length>0&&t.push({type:r.type,rules:dh(n)})}return t.sort((r,n)=>r.type.localeCompare(n.type)),t}function eoe(e){const t=new Map;for(const n of e){const o=n.fromRules??[];if(o.length!==0)for(const a of o)t.has(a.inbound.port)||t.set(a.inbound.port,[]),t.get(a.inbound.port).push({type:n.type,rules:dh(a.rules)})}for(const[,n]of t)n.sort((o,a)=>o.type.localeCompare(a.type));const r=Array.from(t);return r.sort(([n],[o])=>o-n),r.map(([n,o])=>({port:n,ruleEntries:o}))}function dh(e){return e.map(({conf:t,matchers:r,origin:n})=>({config:t&&Object.keys(t).length>0?t:void 0,matchers:r,origins:n}))}function toe(e){const t=[],r=e.listeners??[];for(const n of r)for(const o of n.hosts)for(const a of o.routes){const i=[];for(const s of a.destinations){const l=Object.values(s.policies??{}).map(({mesh:u,name:c,type:d})=>({mesh:u,name:c,type:d}));i.push({route:{mesh:e.gateway.mesh,name:a.route,type:"MeshGatewayRoute"},service:s.tags["kuma.io/service"],origins:l})}t.push({protocol:n.protocol,port:n.port,hostName:o.hostName,routeEntries:i})}return t}function Qa({total:e=0,online:t=0,partiallyDegraded:r=0,offline:n=0}){return{total:e,online:t,partiallyDegraded:r,offline:n}}function q5(e){return e!==null&&typeof e<"u"}const roe={fromObject(e){return{...e,config:e}}},w7={fromObject(e){const t=e.serviceType??"internal",r=e.status??"not_available";return{...e,serviceType:t,status:r}},fromCollection(e){return{...e,items:Array.isArray(e.items)?e.items.map(t=>w7.fromObject(t)):[]}}};function noe({total:e=0,internal:t=0,external:r=0}){return{total:e,internal:t,external:r}}const ooe={fromObject(e){const t=I8(e.mtls),r=I8(e.metrics);return{...e,config:e,mtlsBackend:t,metricsBackend:r}}},_7={fromObject(e){const t=Qa(e.dataplanes),r={standard:Qa(e.dataplanesByType.standard),gateway:Qa(e.dataplanesByType.gateway),gatewayBuiltin:Qa(e.dataplanesByType.gatewayBuiltin),gatewayDelegated:Qa(e.dataplanesByType.gatewayDelegated)},n=noe(e.services),o=Object.values(e.policies??{}).reduce((a,i)=>a+i.total,0);return{...e,dataplanes:t,dataplanesByType:r,services:n,totalPolicyCount:o}},fromCollection(e){return{...e,items:Array.isArray(e.items)?e.items.map(t=>_7.fromObject(t)):[]}}};function I8(e){if(e!=null&&e.enabledBackend&&Array.isArray(e.backends))return e.backends.find(t=>t.name===e.enabledBackend)}const aoe=e=>({"/meshes/:name":async t=>{const{name:r}=t;return ooe.fromObject(await e.getMesh({name:r}))},"/meshes/:name/as/kubernetes":t=>{const{name:r}=t;return e.getMesh({name:r},{format:"kubernetes"})},"/mesh-insights":async t=>{const{size:r}=t,n=t.size*(t.page-1);return _7.fromCollection(await e.getAllMeshInsights({size:r,offset:n}))},"/mesh-insights/:name":async t=>{const{name:r}=t;return _7.fromObject(await e.getMeshInsights({name:r}))}}),ioe=e=>({"read traffic":()=>{try{return!!JSON.parse(e("KUMA_TRAFFIC_ENABLED","false"))}catch{return!1}}}),soe=["protocol","service","zone"];function P8(e){const t=new Map;for(const[r,n]of e){const o=soe.includes(r),a=o?"tag":r;t.has(a)||t.set(a,[]);const i=t.get(a);let s;a==="tag"?s=(o?`kuma.io/${r}:${n}`:n).replace(/\s+/g,""):s=n,i.push(s.trim())}return t}const loe=e=>e.trim().split(` -`).filter(t=>["http.","tcp."].some(r=>t.startsWith(r))).reduce((t,r)=>{const[n,...o]=r.trim().split(":"),a=(i=>{try{return JSON.parse(i)}catch{return i}})(o.join(":").trim());return n.split(".").reduce((i,s,l,u)=>{if(l===u.length-1)return i[s]=a,i;if(typeof i[s]>"u"){const c={};return i[s]=c,c}else return i[s]},t),t},{}),I0=(e,t)=>{const r=["http","tcp"],n={};return r.map(o=>Object.entries(e[o]).filter(([a,i])=>t(a)).forEach(([a,i])=>{typeof n[a]>"u"&&(n[a]={name:a,protocol:o}),n[a][o]=i})),Object.values(n)},P0=(e,t)=>e.includes(t),uoe=(e,t,r)=>kre({"/dataplanes/poll":n=>{const{size:o,page:a}=n,i=o*(a-1),s=r("use zones");return e(async()=>ci.fromCollection(await t.getAllDataplaneOverviews({size:o,offset:i}),s),{interval:1e3})},"/meshes/:mesh/dataplanes/:name":async n=>$ne.fromObject(await t.getDataplaneFromMesh(n)),"/meshes/:mesh/dataplanes/:name/as/kubernetes":async n=>t.getDataplaneFromMesh(n,{format:"kubernetes"}),"/meshes/:mesh/dataplanes/:name/traffic":async n=>{const{mesh:o,name:a}=n,i=await t.getDataplaneData({mesh:o,dppName:a,dataPath:"stats"}),s=loe(i),l=I0(s,d=>d.startsWith("localhost_")),u=I0(s,d=>!["admin","async-client","kuma_envoy_admin","probe_listener","localhost_","inbound_passthrough","outbound_passthrough","access_log_sink","ads_cluster","meshtrace_zipkin"].some(f=>d.startsWith(f)));return{passthrough:I0(s,d=>["outbound_passthrough_"].some(f=>d.startsWith(f))).reduce((d,f)=>({...d,...["http","tcp"].reduce((p,v)=>(p[v]=Object.entries(f[v]||{}).reduce((y,[b,g])=>({...y,[b]:g+(y[b]??0)}),p[v]||{}),p),d)}),{name:"outbound_passthrough"}),inbounds:l,outbounds:u,$raw:i,config:i}},"/meshes/:mesh/dataplanes/:name/data-path/:dataPath":async n=>{const{mesh:o,name:a}=n,i=P0(["xds","clusters","stats"],n.dataPath)?n.dataPath:"xds";return t.getDataplaneData({mesh:o,dppName:a,dataPath:i})},"/meshes/:mesh/dataplanes/:name/sidecar-dataplane-policies":async n=>Fne.fromCollection(await t.getSidecarDataplanePolicies(n)),"/meshes/:mesh/dataplanes/:name/rules":async n=>Une.fromCollection(await t.getDataplaneRules(n)),"/meshes/:mesh/dataplanes/:name/gateway-dataplane-policies":async n=>jne.fromObject(await t.getMeshGatewayDataplane(n)),"/meshes/:mesh/dataplane-overviews/:name":async n=>ci.fromObject(await t.getDataplaneOverviewFromMesh(n),r("use zones")),"/meshes/:mesh/dataplanes/of/:type":async n=>{const{mesh:o,size:a}=n,i=a*(n.page-1),s=Object.fromEntries(P8(JSON.parse(n.search||"[]"))),l=n.type==="standard"?"false":n.type,u=P0(["delegated","builtin","false"],l)?{gateway:l}:{};return ci.fromCollection(await t.getAllDataplaneOverviewsFromMesh({mesh:o},{...s,...u,offset:i,size:a}),r("use zones"))},"/meshes/:mesh/dataplanes/for/:service/of/:type":async n=>{const{mesh:o,size:a}=n,i=a*(n.page-1),s=Object.fromEntries(P8(JSON.parse(n.search||"[]")));typeof s.tag>"u"&&(s.tag=[]),s.tag=s.tag.filter(c=>!c.startsWith("kuma.io/service:")),s.tag.push(`kuma.io/service:${n.service}`);const l=n.type==="standard"?"false":n.type,u=P0(["delegated","builtin","false"],l)?{gateway:l}:{};return ci.fromCollection(await t.getAllDataplaneOverviewsFromMesh({mesh:o},{...s,...u,offset:i,size:a}),r("use zones"))}}),coe=()=>({items:()=>[{path:"data-planes",name:"data-plane-list-view",meta:{module:"data-planes"},component:()=>Ve(()=>import("./DataPlaneListView-ec3929eb.js"),["./AppCollection-6359d3b1.css","./StatusBadge-8194fcb8.css","./CopyButton-2be0e14d.css","./TextWithCopyButton-f7225b54.css","./FilterBar-c6fa64d4.css","./ErrorBlock-bcc21522.css","./SummaryView-969145bb.css","./DataPlaneListView-4853aabd.css"],import.meta.url),children:[{path:":dataPlane",name:"data-plane-summary-view",component:()=>Ve(()=>import("./DataPlaneSummaryView-14967fee.js"),["./StatusBadge-8194fcb8.css","./TagList-e2c71478.css","./CopyButton-2be0e14d.css","./TextWithCopyButton-f7225b54.css","./DataPlaneSummaryView-67703463.css"],import.meta.url)}]}],item:()=>[{path:"data-planes/:dataPlane",name:"data-plane-detail-tabs-view",component:()=>Ve(()=>import("./DataPlaneDetailTabsView-1551f19e.js"),["./CopyButton-2be0e14d.css","./TextWithCopyButton-f7225b54.css","./ErrorBlock-bcc21522.css","./NavTabs-3b34e815.css"],import.meta.url),children:[{path:"overview",name:"data-plane-detail-view",component:()=>Ve(()=>import("./DataPlaneDetailView-ae637482.js"),["./CopyButton-2be0e14d.css","./TextWithCopyButton-f7225b54.css","./ErrorBlock-bcc21522.css","./StatusBadge-8194fcb8.css","./SummaryView-969145bb.css","./TagList-e2c71478.css","./AccordionList-8bab9627.css","./SubscriptionList-408b08ab.css","./DataPlaneDetailView-d6c7ac6b.css"],import.meta.url),children:[{path:"inbound/:service",name:"data-plane-inbound-summary-view",component:()=>Ve(()=>import("./DataPlaneInboundSummaryView-fe413652.js"),["./NavTabs-3b34e815.css","./DataPlaneInboundSummaryView-c5422be8.css"],import.meta.url),children:[{path:"overview",name:"data-plane-inbound-summary-overview-view",component:()=>Ve(()=>import("./DataPlaneInboundSummaryOverviewView-dd0689ab.js"),[],import.meta.url)}]},{path:"outbound/:service",name:"data-plane-outbound-summary-view",component:()=>Ve(()=>import("./DataPlaneOutboundSummaryView-e3805943.js"),["./NavTabs-3b34e815.css","./DataPlaneOutboundSummaryView-7ea40d01.css"],import.meta.url),children:[{path:"overview",name:"data-plane-outbound-summary-overview-view",component:()=>Ve(()=>import("./DataPlaneOutboundSummaryOverviewView-70cf7111.js"),[],import.meta.url)}]}]},{path:"policies",name:"data-plane-policies-view",component:()=>Ve(()=>import("./DataPlanePoliciesView-28c76a90.js"),["./AccordionList-8bab9627.css","./CodeBlock-aa591f34.css","./PolicyTypeTag-f5c09fb0.css","./TagList-e2c71478.css","./CopyButton-2be0e14d.css","./TextWithCopyButton-f7225b54.css","./ErrorBlock-bcc21522.css","./DataPlanePoliciesView-45a9800a.css"],import.meta.url)},{path:"xds-config",name:"data-plane-xds-config-view",component:()=>Ve(()=>import("./DataPlaneXdsConfigView-db31c9f3.js"),["./CodeBlock-aa591f34.css","./CopyButton-2be0e14d.css","./TextWithCopyButton-f7225b54.css","./ErrorBlock-bcc21522.css","./EnvoyData-6b62105a.css"],import.meta.url)},{path:"stats",name:"data-plane-stats-view",component:()=>Ve(()=>import("./DataPlaneStatsView-4e3cab6c.js"),["./CodeBlock-aa591f34.css","./CopyButton-2be0e14d.css","./TextWithCopyButton-f7225b54.css","./ErrorBlock-bcc21522.css","./EnvoyData-6b62105a.css"],import.meta.url)},{path:"clusters",name:"data-plane-clusters-view",component:()=>Ve(()=>import("./DataPlaneClustersView-086753d9.js"),["./CodeBlock-aa591f34.css","./CopyButton-2be0e14d.css","./TextWithCopyButton-f7225b54.css","./ErrorBlock-bcc21522.css","./EnvoyData-6b62105a.css"],import.meta.url)},{path:"config",name:"data-plane-config-view",component:()=>Ve(()=>import("./DataPlaneConfigView-5397f8c6.js"),["./CopyButton-2be0e14d.css","./TextWithCopyButton-f7225b54.css","./ErrorBlock-bcc21522.css","./CodeBlock-aa591f34.css","./ResourceCodeBlock-dd906c25.css"],import.meta.url)}]}]}),doe=e=>[[Ue("data-planes.sources"),{service:uoe,arguments:[e.source,e.api,e.can],labels:[e.sources]}],[Ue("data-planes.features"),{service:ioe,arguments:[e.env],labels:[e.features]}]],fh={fromObject(e){return e},fromCollection(e){return{...e,items:Array.isArray(e.items)?e.items.map(t=>fh.fromObject(t)):[]}}},k7={fromObject(e){return{...e,config:e}},fromCollection(e){return{...e,items:Array.isArray(e.items)?e.items.map(t=>k7.fromObject(t)):[]}}},foe=e=>({"/*/policy-types":(t,r)=>(r.close(),e.getPolicyTypes()),"/meshes/:mesh/policy-path/:path":async(t,r)=>{r.close();const{mesh:n,path:o,size:a}=t,i=t.size*(t.page-1);return k7.fromCollection(await e.getAllPolicyEntitiesFromMesh({mesh:n,path:o},{offset:i,size:a}))},"/meshes/:mesh/policy-path/:path/policy/:name":async(t,r)=>{r.close();const{mesh:n,path:o,name:a}=t;return k7.fromObject(await e.getSinglePolicyEntity({mesh:n,path:o,name:a}))},"/meshes/:mesh/policy-path/:path/policy/:name/dataplanes":async(t,r)=>{r.close();const{mesh:n,path:o,name:a}=t;return fh.fromCollection(await e.getPolicyConnections({mesh:n,path:o,name:a}))},"/meshes/:mesh/policy-path/:path/policy/:name/as/kubernetes":(t,r)=>{r.close();const{mesh:n,path:o,name:a}=t;return e.getSinglePolicyEntity({mesh:n,path:o,name:a},{format:"kubernetes"})}}),poe=()=>({items:()=>[{path:"policies",name:"policy-list-index-view",meta:{module:"policies"},redirect:t=>({...t,params:{...t.params,policyPath:"circuit-breakers"},name:"policy-list-view"}),children:[{path:":policyPath",name:"policy-list-view",component:()=>Ve(()=>import("./PolicyListView-d9582940.js"),["./AppCollection-6359d3b1.css","./CopyButton-2be0e14d.css","./TextWithCopyButton-f7225b54.css","./ErrorBlock-bcc21522.css","./PolicyTypeTag-f5c09fb0.css","./SummaryView-969145bb.css","./PolicyListView-1ee6cd98.css"],import.meta.url),children:[{path:":policy",name:"policy-summary-view",component:()=>Ve(()=>import("./PolicySummaryView-4bf5efaa.js"),["./CodeBlock-aa591f34.css","./CopyButton-2be0e14d.css","./ResourceCodeBlock-dd906c25.css","./PolicySummaryView-50f3ee30.css"],import.meta.url)}]}]}],item:()=>[{path:"policies/:policyPath/:policy/overview",name:"policy-detail-view",component:()=>Ve(()=>import("./PolicyDetailView-8eb301f1.js"),["./CopyButton-2be0e14d.css","./TextWithCopyButton-f7225b54.css","./ErrorBlock-bcc21522.css","./CodeBlock-aa591f34.css","./ResourceCodeBlock-dd906c25.css"],import.meta.url)}]}),hoe=e=>[[Ue("policies.sources"),{service:foe,arguments:[e.api],labels:[e.sources]}]],voe=e=>({"/meshes/:mesh/service-insights":async(t,r)=>{r.close();const{mesh:n,size:o}=t,a=t.size*(t.page-1);return w7.fromCollection(await e.getAllServiceInsightsFromMesh({mesh:n},{size:o,offset:a}))},"/meshes/:mesh/service-insights/:name":async(t,r)=>{r.close();const{mesh:n,name:o}=t;return w7.fromObject(await e.getServiceInsight({mesh:n,name:o}))},"/meshes/:mesh/external-services/for/:service":async(t,r)=>{r.close();const{mesh:n,service:o}=t,{items:a}=await e.getAllExternalServicesFromMesh({mesh:n},{tag:[`kuma.io/service:${o}`]});return a.length>0?roe.fromObject(a[0]):null},"/meshes/:mesh/external-service/:name/as/kubernetes":async t=>{const{mesh:r,name:n}=t;return e.getExternalService({mesh:r,name:n},{format:"kubernetes"})}}),moe=()=>({items:()=>[{path:"services",name:"service-list-view",meta:{module:"services"},component:()=>Ve(()=>import("./ServiceListView-6443af23.js"),["./AppCollection-6359d3b1.css","./CopyButton-2be0e14d.css","./TextWithCopyButton-f7225b54.css","./ErrorBlock-bcc21522.css","./StatusBadge-8194fcb8.css","./SummaryView-969145bb.css","./ServiceListView-88682616.css"],import.meta.url)}],item:()=>[{path:"services/:service",name:"service-detail-tabs-view",component:()=>Ve(()=>import("./ServiceDetailTabsView-56afd022.js"),["./CopyButton-2be0e14d.css","./TextWithCopyButton-f7225b54.css","./ErrorBlock-bcc21522.css","./NavTabs-3b34e815.css"],import.meta.url),children:[{path:"overview",name:"service-detail-view",component:()=>Ve(()=>import("./ServiceDetailView-bcb015a3.js"),["./CopyButton-2be0e14d.css","./TextWithCopyButton-f7225b54.css","./ErrorBlock-bcc21522.css","./TagList-e2c71478.css","./StatusBadge-8194fcb8.css"],import.meta.url)},{path:"config",name:"service-config-view",component:()=>Ve(()=>import("./ServiceConfigView-304ccffa.js"),["./CopyButton-2be0e14d.css","./TextWithCopyButton-f7225b54.css","./ErrorBlock-bcc21522.css","./CodeBlock-aa591f34.css","./ResourceCodeBlock-dd906c25.css"],import.meta.url)},{path:"data-plane-proxies",name:"service-data-plane-proxies-view",meta:{module:"service-data-planes"},component:()=>Ve(()=>import("./ServiceDataPlaneProxiesView-eeeeacdb.js"),["./CopyButton-2be0e14d.css","./TextWithCopyButton-f7225b54.css","./ErrorBlock-bcc21522.css","./AppCollection-6359d3b1.css","./StatusBadge-8194fcb8.css","./FilterBar-c6fa64d4.css","./SummaryView-969145bb.css","./ServiceDataPlaneProxiesView-67a900b3.css"],import.meta.url),children:[{path:":dataPlane",name:"service-data-plane-summary-view",component:()=>Ve(()=>import("./DataPlaneSummaryView-14967fee.js"),["./StatusBadge-8194fcb8.css","./TagList-e2c71478.css","./CopyButton-2be0e14d.css","./TextWithCopyButton-f7225b54.css","./DataPlaneSummaryView-67703463.css"],import.meta.url)}]}]}]}),goe=e=>[[Ue("service.sources"),{service:voe,arguments:[e.api],labels:[e.sources]}]],To={dataplaneRoutes:Ue("kuma.dataplane.routes"),serviceRoutes:Ue("kuma.service.routes"),policyRoutes:Ue("kuma.policy.routes")},Coe=e=>[[Ue("meshes.routes"),{service:Zne,arguments:[To.serviceRoutes,To.dataplaneRoutes,To.policyRoutes],labels:[e.routes]}],[To.dataplaneRoutes,{service:coe}],[To.serviceRoutes,{service:moe}],[To.policyRoutes,{service:poe}],[Ue("meshes.sources"),{service:aoe,arguments:[e.api],labels:[e.sources]}],...goe(e),...doe(e),...hoe(e)],yoe=e=>({"use zones":()=>e("KUMA_MODE")==="global","create zones":t=>t("use zones")&&e("KUMA_ZONE_CREATION_FLOW")==="enabled"}),Ls=(e="egresses")=>({items:()=>[{path:`${e}`,name:"zone-egress-list-view",meta:{module:"zone-egresses"},component:()=>Ve(()=>import("./ZoneEgressListView-54524b01.js"),["./AppCollection-6359d3b1.css","./CopyButton-2be0e14d.css","./TextWithCopyButton-f7225b54.css","./ErrorBlock-bcc21522.css","./StatusBadge-8194fcb8.css","./SummaryView-969145bb.css","./ZoneEgressListView-be180964.css"],import.meta.url),children:[{path:":zoneEgress",name:"zone-egress-summary-view",component:()=>Ve(()=>import("./ZoneEgressSummaryView-176e9639.js"),["./StatusBadge-8194fcb8.css","./CopyButton-2be0e14d.css","./TextWithCopyButton-f7225b54.css","./ZoneEgressSummaryView-95797250.css"],import.meta.url)}]}],item:()=>[{path:`${e}/:zoneEgress`,name:"zone-egress-detail-tabs-view",component:()=>Ve(()=>import("./ZoneEgressDetailTabsView-6bc4f674.js"),["./CopyButton-2be0e14d.css","./TextWithCopyButton-f7225b54.css","./ErrorBlock-bcc21522.css","./NavTabs-3b34e815.css"],import.meta.url),redirect:{name:"zone-egress-detail-view"},children:[{path:"overview",name:"zone-egress-detail-view",component:()=>Ve(()=>import("./ZoneEgressDetailView-1d10e68d.js"),["./StatusBadge-8194fcb8.css","./CopyButton-2be0e14d.css","./TextWithCopyButton-f7225b54.css","./AccordionList-8bab9627.css","./SubscriptionList-408b08ab.css"],import.meta.url)},{path:"xds-config",name:"zone-egress-xds-config-view",component:()=>Ve(()=>import("./ZoneEgressXdsConfigView-f0eb2391.js"),["./CodeBlock-aa591f34.css","./CopyButton-2be0e14d.css","./TextWithCopyButton-f7225b54.css","./ErrorBlock-bcc21522.css","./EnvoyData-6b62105a.css"],import.meta.url)},{path:"stats",name:"zone-egress-stats-view",component:()=>Ve(()=>import("./ZoneEgressStatsView-02171b8f.js"),["./CodeBlock-aa591f34.css","./CopyButton-2be0e14d.css","./TextWithCopyButton-f7225b54.css","./ErrorBlock-bcc21522.css","./EnvoyData-6b62105a.css"],import.meta.url)},{path:"clusters",name:"zone-egress-clusters-view",component:()=>Ve(()=>import("./ZoneEgressClustersView-e20b1b75.js"),["./CodeBlock-aa591f34.css","./CopyButton-2be0e14d.css","./TextWithCopyButton-f7225b54.css","./ErrorBlock-bcc21522.css","./EnvoyData-6b62105a.css"],import.meta.url)},{path:"config",name:"zone-egress-config-view",component:()=>Ve(()=>import("./ZoneEgressConfigView-15ded3eb.js"),["./CopyButton-2be0e14d.css","./TextWithCopyButton-f7225b54.css","./ErrorBlock-bcc21522.css","./CodeBlock-aa591f34.css","./ResourceCodeBlock-dd906c25.css"],import.meta.url)}]}]}),N8=(e="ingresses")=>({items:()=>[{path:`${e}`,name:"zone-ingress-list-view",meta:{module:"zone-ingresses"},component:()=>Ve(()=>import("./ZoneIngressListView-1ea87262.js"),["./AppCollection-6359d3b1.css","./CopyButton-2be0e14d.css","./TextWithCopyButton-f7225b54.css","./ErrorBlock-bcc21522.css","./StatusBadge-8194fcb8.css","./SummaryView-969145bb.css","./ZoneIngressListView-b6d243fe.css"],import.meta.url),children:[{path:":zoneIngress",name:"zone-ingress-summary-view",component:()=>Ve(()=>import("./ZoneIngressSummaryView-e8e97990.js"),["./StatusBadge-8194fcb8.css","./CopyButton-2be0e14d.css","./TextWithCopyButton-f7225b54.css","./ZoneIngressSummaryView-48249baa.css"],import.meta.url)}]}],item:()=>[{path:`${e}/:zoneIngress`,name:"zone-ingress-detail-tabs-view",component:()=>Ve(()=>import("./ZoneIngressDetailTabsView-63763fea.js"),["./CopyButton-2be0e14d.css","./TextWithCopyButton-f7225b54.css","./ErrorBlock-bcc21522.css","./NavTabs-3b34e815.css"],import.meta.url),redirect:{name:"zone-ingress-detail-view"},children:[{path:"overview",name:"zone-ingress-detail-view",component:()=>Ve(()=>import("./ZoneIngressDetailView-6d0b9e08.js"),["./StatusBadge-8194fcb8.css","./CopyButton-2be0e14d.css","./TextWithCopyButton-f7225b54.css","./AccordionList-8bab9627.css","./SubscriptionList-408b08ab.css"],import.meta.url)},{path:"services",name:"zone-ingress-services-view",component:()=>Ve(()=>import("./ZoneIngressServicesView-bff5628e.js"),["./AppCollection-6359d3b1.css"],import.meta.url)},{path:"xds-config",name:"zone-ingress-xds-config-view",component:()=>Ve(()=>import("./ZoneIngressXdsConfigView-b6422335.js"),["./CodeBlock-aa591f34.css","./CopyButton-2be0e14d.css","./TextWithCopyButton-f7225b54.css","./ErrorBlock-bcc21522.css","./EnvoyData-6b62105a.css"],import.meta.url)},{path:"stats",name:"zone-ingress-stats-view",component:()=>Ve(()=>import("./ZoneIngressStatsView-3b725386.js"),["./CodeBlock-aa591f34.css","./CopyButton-2be0e14d.css","./TextWithCopyButton-f7225b54.css","./ErrorBlock-bcc21522.css","./EnvoyData-6b62105a.css"],import.meta.url)},{path:"clusters",name:"zone-ingress-clusters-view",component:()=>Ve(()=>import("./ZoneIngressClustersView-aadc04b0.js"),["./CodeBlock-aa591f34.css","./CopyButton-2be0e14d.css","./TextWithCopyButton-f7225b54.css","./ErrorBlock-bcc21522.css","./EnvoyData-6b62105a.css"],import.meta.url)},{path:"config",name:"zone-ingress-config-view",component:()=>Ve(()=>import("./ZoneIngressConfigView-2664fd3b.js"),["./CopyButton-2be0e14d.css","./TextWithCopyButton-f7225b54.css","./ErrorBlock-bcc21522.css","./CodeBlock-aa591f34.css","./ResourceCodeBlock-dd906c25.css"],import.meta.url)}]}]}),boe=()=>[{path:"/zones/-create",name:"zone-create-view",meta:{isWizard:!0},component:()=>Ve(()=>import("./ZoneCreateView-5598be4a.js"),["./CodeBlock-aa591f34.css","./ZoneCreateView-ee734ba7.css"],import.meta.url)}],woe=(e,t)=>{const r="/zones";return[...e,...t("use zones")?[{path:`${r}`,name:"zone-index-view",redirect:{name:"zone-cp-list-view"},children:[{path:"",name:"zone-cp-list-view",meta:{module:"zone-cps"},component:()=>Ve(()=>import("./ZoneListView-b6807748.js"),["./AppCollection-6359d3b1.css","./CopyButton-2be0e14d.css","./TextWithCopyButton-f7225b54.css","./ErrorBlock-bcc21522.css","./StatusBadge-8194fcb8.css","./SummaryView-969145bb.css","./ZoneListView-890bbc0d.css"],import.meta.url)},{path:":zone",name:"zone-cp-detail-abstract-view",children:[{path:"",name:"zone-cp-detail-tabs-view",component:()=>Ve(()=>import("./ZoneDetailTabsView-b678de7f.js"),["./CopyButton-2be0e14d.css","./TextWithCopyButton-f7225b54.css","./ErrorBlock-bcc21522.css","./NavTabs-3b34e815.css"],import.meta.url),redirect:{name:"zone-cp-detail-view"},children:[{path:"overview",name:"zone-cp-detail-view",component:()=>Ve(()=>import("./ZoneDetailView-dbc90aa9.js"),["./StatusBadge-8194fcb8.css","./AccordionList-8bab9627.css","./SubscriptionList-408b08ab.css"],import.meta.url)},{path:"config",name:"zone-cp-config-view",component:()=>Ve(()=>import("./ZoneConfigView-a3c1955b.js"),["./CodeBlock-aa591f34.css"],import.meta.url)},...N8().items(),...Ls().items()]},...N8().item(),...Ls().item()]}]}]:[{path:`${r}`,redirect:{name:"zone-egress-list-view"},children:[...Ls().items(),...Ls().item()]}]]},_oe={fromObject:e=>({...e,enabled:e.enabled!==!1})},koe={fromArray:e=>{const t=uh.fromArray(e),r=(()=>{const n=t.subscriptions.find(a=>typeof a.config<"u"),o=Moe(n==null?void 0:n.config)?n.config:"{}";try{return JSON.parse(o)}catch(a){console.error(a)}return{}})();return{...t,config:r}}},xoe={fromObject:e=>{const t=koe.fromArray(e==null?void 0:e.subscriptions);return{...e,...t,authenticationType:Fi(t.config,"dpServer.auth.type",""),environment:String(t.config.environment??""),store:Fi(t.config,"store.type","")}}},Qs={fromObject:e=>{const t=xoe.fromObject(e.zoneInsight),r=_oe.fromObject(e.zone);return{...e,zoneInsight:t,zone:r,state:r.enabled?typeof(t==null?void 0:t.connectedSubscription)<"u"?"online":"offline":"disabled"}},fromCollection:e=>({...e,items:Array.isArray(e.items)?e.items.map(Qs.fromObject):[]})};function Moe(e){return e!==null&&typeof e<"u"}const Soe={fromObject:e=>{var t,r;return{...e,socketAddress:(t=e.networking)!=null&&t.address&&((r=e.networking)!=null&&r.port)?`${e.networking.address}:${e.networking.port}`:""}}},Eoe={fromObject:e=>{var t,r;return{...e,config:e,socketAddress:(t=e.networking)!=null&&t.address&&((r=e.networking)!=null&&r.port)?`${e.networking.address}:${e.networking.port}`:""}}},Loe={fromObject:e=>Aoe(e)?(t=>{const r=Array.isArray(t.subscriptions)?t.subscriptions:[],n=r.slice(-1).find(o=>{var a;return((a=o.connectTime)==null?void 0:a.length)&&!o.disconnectTime});return{...t,subscriptions:r,connectedSubscription:n}})(e):void 0},Xs={fromObject:e=>{const t=Loe.fromObject(e.zoneEgressInsight),r=Soe.fromObject(e.zoneEgress);return{...e,zoneEgressInsight:t,zoneEgress:r,state:typeof(t==null?void 0:t.connectedSubscription)<"u"?"online":"offline"}},fromCollection:e=>({...e,items:Array.isArray(e.items)?e.items.map(Xs.fromObject):[]})};function Aoe(e){return e!==null&&typeof e<"u"}const Hoe=e=>({"/zone-cps/:name/egresses":async(t,r)=>{r.close();const{name:n,size:o,page:a}=t,i=o*(a-1),s=await e.getAllZoneEgressOverviews({size:o,offset:i});return n!=="*"&&(s.items=s.items.filter(l=>l.zoneEgress.zone===n),s.total=s.items.length),Xs.fromCollection(s)},"/zone-egresses/:name":async(t,r)=>{r.close();const{name:n}=t;return Eoe.fromObject(await e.getZoneEgress({name:n}))},"/zone-egresses/:name/as/kubernetes":async(t,r)=>{r.close();const{name:n}=t;return await e.getZoneEgress({name:n},{format:"kubernetes"})},"/zone-egresses/:name/data-path/:dataPath":(t,r)=>{r.close();const{name:n,dataPath:o}=t;return e.getZoneEgressData({zoneEgressName:n,dataPath:o})},"/zone-egress-overviews":async(t,r)=>{r.close();const{size:n}=t,o=t.size*(t.page-1);return Xs.fromCollection(await e.getAllZoneEgressOverviews({size:n,offset:o}))},"/zone-egress-overviews/:name":async(t,r)=>{r.close();const{name:n}=t;return Xs.fromObject(await e.getZoneEgressOverview({name:n}))}}),Boe={fromObject:e=>{var t,r,n,o;return{...e,availableServices:Array.isArray(e.availableServices)?e.availableServices:[],socketAddress:(t=e.networking)!=null&&t.address&&((r=e.networking)!=null&&r.port)?`${e.networking.address}:${e.networking.port}`:"",advertisedSocketAddress:(n=e.networking)!=null&&n.advertisedAddress&&((o=e.networking)!=null&&o.advertisedPort)?`${e.networking.advertisedAddress}:${e.networking.advertisedPort}`:""}}},Toe={fromObject:e=>{var t,r,n,o;return{...e,config:e,availableServices:Array.isArray(e.availableServices)?e.availableServices:[],socketAddress:(t=e.networking)!=null&&t.address&&((r=e.networking)!=null&&r.port)?`${e.networking.address}:${e.networking.port}`:"",advertisedSocketAddress:(n=e.networking)!=null&&n.advertisedAddress&&((o=e.networking)!=null&&o.advertisedPort)?`${e.networking.advertisedAddress}:${e.networking.advertisedPort}`:""}}},Doe={fromObject:e=>Ooe(e)?(t=>{const r=Array.isArray(t.subscriptions)?t.subscriptions:[],n=r.slice(-1).find(o=>{var a;return((a=o.connectTime)==null?void 0:a.length)&&!o.disconnectTime});return{...t,subscriptions:r,connectedSubscription:n}})(e):void 0},Js={fromObject:e=>{const t=Doe.fromObject(e.zoneIngressInsight),r=Boe.fromObject(e.zoneIngress);return{...e,zoneIngressInsight:t,zoneIngress:r,state:typeof(t==null?void 0:t.connectedSubscription)<"u"?"online":"offline"}},fromCollection:e=>({...e,items:Array.isArray(e.items)?e.items.map(Js.fromObject):[]})};function Ooe(e){return e!==null&&typeof e<"u"}const Voe=e=>({"/zone-cps/:name/ingresses":async t=>{const{name:r,size:n,page:o}=t,a=n*(o-1),i=await e.getAllZoneIngressOverviews({size:n,offset:a});return i.items=i.items.filter(s=>s.zoneIngress.zone===r),Js.fromCollection(i)},"/zone-ingresses/:name":async t=>{const{name:r}=t;return Toe.fromObject(await e.getZoneIngress({name:r}))},"/zone-ingresses/:name/data-path/:dataPath":t=>{const{name:r,dataPath:n}=t;return e.getZoneIngressData({zoneIngressName:r,dataPath:n})},"/zone-ingresses/:name/as/kubernetes":async t=>{const{name:r}=t;return await e.getZoneIngress({name:r},{format:"kubernetes"})},"/zone-ingress-overviews":async t=>{const{size:r}=t,n=t.size*(t.page-1);return Js.fromCollection(await e.getAllZoneIngressOverviews({size:r,offset:n}))},"/zone-ingress-overviews/:name":async t=>{const{name:r}=t;return Js.fromObject(await e.getZoneIngressOverview({name:r}))}}),Ioe=(e,t)=>({...Voe(t),...Hoe(t),"/zone-cps":async r=>{const{size:n}=r,o=n*(r.page-1);return Qs.fromCollection(await t.getAllZoneOverviews({size:n,offset:o}))},"/zone-cps/:name":async r=>{const{name:n}=r;return Qs.fromObject(await t.getZoneOverview({name:n}))},"/zone-cps/online/:name":r=>{const n=class extends Error{},{name:o}=r;return e(async()=>{const a=Qs.fromObject(await t.getZoneOverview({name:o}));if(a.state==="online")return a;throw new n},{retry:a=>{if(a instanceof n)return new Promise(i=>setTimeout(i,2e3))}})}}),Poe=e=>[[Ue("zones.routes"),{service:t=>woe(t("create zones")?boe():[],t),arguments:[e.can],labels:[e.routes]}],[Ue("zone.sources"),{service:Ioe,arguments:[e.source,e.api],labels:[e.sources]}],[Ue("zone.features"),{service:yoe,arguments:[e.env],labels:[e.features]}]],Noe={common:{not_applicable:"N/A",formats:{integer:"{value, number, integer}",bytes:"{value, number, integer}"},product:{name:"Kuma",href:{docs:{index:"{KUMA_DOCS_URL}/"},feedback:"https://github.com/kumahq/kuma/issues/new/choose",install:"https://kuma.io/install/latest/?{KUMA_UTM_QUERY_PARAMS}"},environment:{universal:"Universal",kubernetes:"Kubernetes",unknown:"—"},mode:{standalone:"Standalone",global:"Multi-Zone",zone:"Zone"}},warnings:{CERT_EXPIRED:`'<'p>The certificate for this dataplane has expired'<'/p> + `,1)]),default:A(()=>[X1e,M()]),_:1}),M(),J1e,M(),ere,M(),tre]))}}),Nn={KubernetesGraph:dn(dte,{description:"KubernetesGraph"}),PostgresGraph:dn(D1e,{description:"PostgresGraph"}),MemoryGraph:dn(Ste,{description:"MemoryGraph"}),MultizoneGraph:dn(c1e,{description:"MultizoneGraph"}),StandaloneGraph:dn(rre,{description:"StandaloneGraph"}),MainView:dn($X,{description:"MainView"}),MeshDetails:dn(zee,{description:"MeshDetails"})},[Dae,Oae,Vae,Iae,Pae,nre,Nae]=Na(Nn.KubernetesGraph,Nn.PostgresGraph,Nn.MemoryGraph,Nn.MultizoneGraph,Nn.StandaloneGraph,Nn.MainView,Nn.MeshDetails),ore={key:0,"aria-label":"Breadcrumb"},are={key:0,class:"app-view-title-bar"},ire={class:"actions"},sre={key:1},lre=ne({__name:"AppView",props:{breadcrumbs:{default:null},fullscreen:{type:Boolean,default:!1}},setup(e){const t=nre(),r=e,n=new Map,o=Y([]),a=Symbol("app-view"),i=c=>{const d=[...c.values()];d.some(f=>f.length===0)?o.value=[]:o.value=d.flat()},s={addBreadcrumbs:(c,d)=>{if(typeof c<"u"){if(n.has(d)){const f=n.get(d);if(JSON.stringify(f)===JSON.stringify(c))return}n.set(d,c),i(n)}},removeBreadcrumbs:c=>{n.has(c)&&(n.delete(c),i(n))}},l=qt("app-view-parent",void 0);l||er("app-view-parent",s);const u=l||s;return Ae(()=>r.breadcrumbs,c=>{c!==null&&u.addBreadcrumbs(c,a)},{immediate:!0}),Sr(()=>{u.removeBreadcrumbs(a)}),(c,d)=>{const f=Bt("KAlert");return h(),J(it(B(l)?"div":B(t)),null,{default:A(()=>[!B(l)&&o.value.length>0?(h(),k("nav",ore,[R(B(Q9),{items:o.value},null,8,["items"])])):P("",!0),M(),m("section",{class:ie({"is-fullscreen":r.fullscreen})},[c.$slots.title?(h(),k("header",are,[r.fullscreen?(h(),J(B(eb),{key:0})):P("",!0),M(),Q(c.$slots,"title",{},void 0,!0),M(),m("div",ire,[Q(c.$slots,"actions",{},void 0,!0)])])):P("",!0),M(),c.$slots.notifications?(h(),k("aside",sre,[R(f,{class:"mb-4",appearance:"warning"},{alertMessage:A(()=>[Q(c.$slots,"notifications",{},void 0,!0)]),_:3})])):P("",!0),M(),Q(c.$slots,"default",{},void 0,!0)],2)]),_:3})}}});const ure=Pa(lre,[["__scopeId","data-v-b6f25794"]]),cre=m("span",{class:"visually-hidden"},null,-1),dre=ne({__name:"DataSource",props:{src:{type:String,required:!0}},emits:["change","error"],setup(e,{emit:t}){const r=une(),n=e,o=Y(void 0),a=Y(void 0),i=t;let s={};const l=Symbol(""),u=async f=>{if(o.value=void 0,s=c(s),s.src=f,f==="")return;s.controller=new AbortController;const p=r.source(f,l);p.addEventListener("message",v=>{o.value=v.data,a.value=void 0,i("change",o.value)},{signal:s.controller.signal}),p.addEventListener("error",v=>{a.value=v.error,i("error",a.value)},{signal:s.controller.signal})},c=f=>(typeof f.controller<"u"&&f.controller.abort(),typeof f.src<"u"&&r.close(f.src,l),{});Ae(()=>n.src,function(f){u(f)},{immediate:!0}),Sr(()=>{s=c(s)});const d=()=>{u(n.src)};return(f,p)=>(h(),k(Ee,null,[Q(f.$slots,"default",{data:o.value,error:a.value,refresh:d}),M(),cre],64))}}),g7=Symbol("route-view-parent"),fre=ne({__name:"RouteTitle",props:{title:{type:String,required:!1,default:""},render:{type:Boolean,required:!1,default:!0}},setup(e){const t=e,r=Symbol("route-title"),n=qt(g7);return typeof n<"u"&&(Ae(()=>t.title,o=>{o.length>0&&n.addTitle(o,r)},{immediate:!0}),Sr(()=>{n.removeTitle(r)})),(o,a)=>t.render?(h(),k(Ee,{key:0},[M(Z(t.title),1)],64)):P("",!0)}}),G5=function(e){let t;return(...r)=>{t&&window.cancelAnimationFrame(t),t=window.requestAnimationFrame(e.bind(e,...r))}},pre=(e=document.documentElement)=>{if(!e)return()=>{};const t=[...e.classList];return G5(r=>{const n=r.reduce((o,a)=>Object.entries(a).reduce((i,[s,l])=>(typeof i[s]>"u"&&(i[s]=[]),i[s].push(l),i),o),{});e.classList.remove(...[...e.classList].filter(o=>!t.includes(o))),e.classList.add(...n.class||[])})},hre=function(e){return Array.isArray(e)?e[0]:e},vre=(e,t)=>{switch(!0){case typeof t=="boolean":return e===null?!0:t;case typeof t=="number":{const r=e===null||e.length===0?t:Number(decodeURIComponent(e));return isNaN(r)?Number(t):r}case typeof t=="string":return e===null||e.length===0?t:decodeURIComponent(e)}throw new TypeError("URL parameters can only be string | number | boolean")},mre=(e=document)=>G5(t=>{e.title=t}),L8=(e,t)=>{const r={...t},n=Object.entries(e).reduce((o,[a,i])=>{switch(!0){case i===!0:o[a]=null;break;case(i!==!1&&String(i).length>0):o[a]=encodeURIComponent(String(i));break;default:o[a]=void 0}return o},r);return{...r,...n}},gre=["data-testid"],Cre=ne({__name:"RouteView",props:{name:{},attrs:{default:()=>({})},params:{default:()=>({})}},setup(e){const t=window,r=sne(),n=lne(),{t:o}=tn(),a=Pee(),i=Iee(),s=Symbol("route-view"),l=e,u=_(()=>l.name),c=Y(null),d=new Map,f=new Map,p=mre(document),v=pre(document.documentElement),y=U=>U.reverse().concat(o("components.route-view.title",{name:o("common.product.name")})).join(" | "),b={addTitle:(U,O)=>{const V=c.value;V&&(V.innerHTML=o("components.route-view.route-announcer",{title:U})),d.set(O,U),p(y([...d.values()]))},removeTitle:U=>{d.delete(U),p(y([...d.values()]))},addAttrs:(U,O)=>{f.set(O,U),v([...f.values()])},removeAttrs:U=>{f.delete(U),v([...f.values()])}},g=nr(structuredClone(l.params));Ae(g,U=>{if(a.name===l.name){const O=Object.fromEntries(Object.entries(U).filter(([V,D])=>typeof l.params[V]=="boolean"));Object.keys(O).length>0&&x(O)}}),Ae(()=>Object.keys(l.params).map(U=>a.params[U]||a.query[U]),()=>{const U={...a.query,...a.params};Object.entries({...l.params}).reduce((O,[V,D])=>{const F=hre(typeof U[V]>"u"?"":U[V]);return O[V]=vre(F,D),O},g)},{immediate:!0}),Ae(()=>l.name,()=>{const U=Object.entries(g||{}).reduce((O,[V,D])=>(typeof a.params[V]>"u"&&(O[V]=D),O),{});Object.keys(U).length>0&&i.replace({query:L8(U,a.query)})},{immediate:!0});let C={};const w=G5(U=>{i.push({name:l.name,query:L8(U,a.query)}),C={}}),x=U=>{C={...C,...U},w(C)},E=(...U)=>{i.push(...U)},I=(...U)=>{try{if(t.history.state.back!==null){i.back();return}}catch{}E(...U)},T=qt(g7,void 0);T||(p(o("components.route-view.title",{name:o("common.product.name")})),er(g7,b));const N=T||b;return Ae(()=>l.attrs,U=>{Object.keys(U).length>0&&N.addAttrs(U,s)},{immediate:!0}),Sr(()=>{N.removeAttrs(s)}),(U,O)=>(h(),k("div",{class:"route-view","data-testid":u.value},[B(T)?P("",!0):(h(),k("div",{key:0,id:"application-route-announcer",ref_key:"title",ref:c,class:"route-view-title visually-hidden","aria-live":"assertive","aria-atomic":"true"},null,512)),M(),Q(U.$slots,"default",{t:B(o),env:B(r),can:B(n),route:{update:x,replace:E,params:g,back:I}})],8,gre))}}),yre=e=>[{path:"/404",name:"kuma-not-found-view",alias:"/:pathMatch(.*)*",meta:{title:"Item not found"},component:()=>e[e.length-1]()}],bre=e=>{const t=(r,n)=>typeof e[r]<"u"?e[r](t,n):!1;return t};function wre(e){const t=e.split(/([A-Z][a-z]+)/).join(" ").replace(/\s+/g," ").trim();return t.charAt(0).toUpperCase()+t.substring(1)}function Fi(e,t,r=void 0){if(typeof e!="object"||Array.isArray(e)||Array.isArray(t)&&t.length===0)return r;const n=Array.isArray(t)?t:t.split(".");if(n.length===1){const o=e[n[0]];return o===void 0?r:o}return Fi(e[n[0]],n.slice(1),r)}class A8 extends Error{get key(){return this.message}}const _re=(e,t)=>{const r=wC("en-us",e,{isGlobal:!0,onError:o=>{throw o}}),n={KUMA_VERSION:t("KUMA_VERSION"),KUMA_DOCS_URL:t("KUMA_DOCS_URL"),KUMA_UTM_QUERY_PARAMS:t("KUMA_UTM_QUERY_PARAMS"),KUMA_PRODUCT_NAME:r.t("common.product.name")};return{...r,t:function(...o){var i;const a=o[0];try{if(typeof Fi(e,a)>"u")throw a.startsWith("http.api.")?new A8(a):new Error(`Missing message: "${a}" for locale "en-us", using id as fallback`);return Fi(e,a).length===0?"":(o[1]={...n,...o[1]},r.t(...o))}catch(s){switch(!0){case s instanceof A8:return wre(s.key.split(".").pop());default:if((i=o[2])!=null&&i.defaultMessage)return o[2].defaultMessage;throw s}}}}},H8=0,B8=1,Bo=2;class Np extends EventTarget{constructor(r,n){super();mt(this,"url","");mt(this,"withCredentials",!1);mt(this,"CONNECTING",H8);mt(this,"OPEN",B8);mt(this,"CLOSED",Bo);mt(this,"onerror",null);mt(this,"onmessage",null);mt(this,"onopen",null);mt(this,"readyState",Bo);this.source=r,this.configuration=n,this._open()}_open(){(async function(r){try{r.readyState=H8;const n=r.source();r.readyState=B8;for await(const o of n)if(r.dispatchEvent(new MessageEvent("message",{data:o})),r.readyState===Bo)break;r.readyState=Bo}catch(n){r.close(),r.dispatchEvent(new ErrorEvent("error",{error:n}))}})(this)}open(){this.readyState!==Bo&&this._open()}close(){this.readyState=Bo}}const kre=e=>e,Zp=e=>(t,r={})=>{let n=0,o=0;return new Np(async function*(){var i,s;const a=this;for(;;){o>0&&await new Promise(u=>setTimeout(u,a.configuration.interval??1e3)),(n>0||o>0)&&e.hidden&&await new Promise(u=>{e.addEventListener("visibilitychange",u,{once:!0})});let l;try{l=await t(a),typeof a.configuration.interval>"u"&&a.close(),o++,yield l}catch(u){const c=(s=(i=a.configuration)==null?void 0:i.retry)==null?void 0:s.call(i,u);if(typeof(c==null?void 0:c.then)=="function")await Promise.all([c,new Promise(d=>setTimeout(d,1e3))]),n++;else throw u}}},r)},T8=Zp(new class extends EventTarget{constructor(){super(...arguments);mt(this,"hidden",!1)}}),xre=(e,t)=>{const[r,n]=e.split("?"),o=new URLSearchParams(n),a=t.match(r),i={offset:parseInt(o.get("offset")||"0"),size:parseInt(o.get("size")||"0"),page:parseInt(o.get("page")||"0"),search:o.get("search")||"",cacheControl:o.has("no-store")?"no-store":void 0,...a.params};try{const s=a.route(i,{close:()=>{}}),l=s instanceof Np?s:T8(()=>Promise.resolve(s),{cacheControl:i.cacheControl});return l.url=e,l}catch(s){return T8(()=>Promise.reject(s))}},Mre=(e,t)=>{t&&t.close()},Sre={create:xre,destroy:Mre};var Ei=class{constructor(e,t,r,n,o,a){mt(this,"type",3);mt(this,"name","");mt(this,"prefix","");mt(this,"value","");mt(this,"suffix","");mt(this,"modifier",3);this.type=e,this.name=t,this.prefix=r,this.value=n,this.suffix=o,this.modifier=a}hasCustomName(){return this.name!==""&&typeof this.name!="number"}},Ere=/[$_\p{ID_Start}]/u,Lre=/[$_\u200C\u200D\p{ID_Continue}]/u,C7=".*";function Are(e,t){return(t?/^[\x00-\xFF]*$/:/^[\x00-\x7F]*$/).test(e)}function $p(e,t=!1){let r=[],n=0;for(;n{if(il("OTHER_MODIFIER")??l("ASTERISK"),c=C=>{let w=l(C);if(w!==void 0)return w;let{type:x,index:E}=r[i];throw new TypeError(`Unexpected ${x} at ${E}, expected ${C}`)},d=()=>{let C="",w;for(;w=l("CHAR")??l("ESCAPED_CHAR");)C+=w;return C},f=C=>C,p=t.encodePart||f,v="",y=C=>{v+=C},b=()=>{v.length&&(o.push(new Ei(3,"","",p(v),"",3)),v="")},g=(C,w,x,E,I)=>{let T=3;switch(I){case"?":T=1;break;case"*":T=0;break;case"+":T=2;break}if(!w&&!x&&T===3){y(C);return}if(b(),!w&&!x){if(!C)return;o.push(new Ei(3,"","",p(C),"",T));return}let N;x?x==="*"?N=C7:N=x:N=n;let U=2;N===n?(U=1,N=""):N===C7&&(U=0,N="");let O;if(w?O=w:x&&(O=a++),s.has(O))throw new TypeError(`Duplicate name '${O}'.`);s.add(O),o.push(new Ei(U,O,p(C),N,p(E),T))};for(;i-1)}return i||(n+=`(?=${a}|${o})`),new RegExp(n,D8(r))}var fn={delimiter:"",prefixes:"",sensitive:!0,strict:!0},Bre={delimiter:".",prefixes:"",sensitive:!0,strict:!0},Tre={delimiter:"/",prefixes:"/",sensitive:!0,strict:!0};function Dre(e,t){return e.length?e[0]==="/"?!0:!t||e.length<2?!1:(e[0]=="\\"||e[0]=="{")&&e[1]=="/":!1}function Fp(e,t){return e.startsWith(t)?e.substring(t.length,e.length):e}function Ore(e,t){return e.endsWith(t)?e.substr(0,e.length-t.length):e}function Up(e){return!e||e.length<2?!1:e[0]==="["||(e[0]==="\\"||e[0]==="{")&&e[1]==="["}var jp=["ftp","file","http","https","ws","wss"];function Yp(e){if(!e)return!0;for(let t of jp)if(e.test(t))return!0;return!1}function Vre(e,t){if(e=Fp(e,"#"),t||e==="")return e;let r=new URL("https://example.com");return r.hash=e,r.hash?r.hash.substring(1,r.hash.length):""}function Ire(e,t){if(e=Fp(e,"?"),t||e==="")return e;let r=new URL("https://example.com");return r.search=e,r.search?r.search.substring(1,r.search.length):""}function Pre(e,t){return t||e===""?e:Up(e)?qp(e):Kp(e)}function Nre(e,t){if(t||e==="")return e;let r=new URL("https://example.com");return r.password=e,r.password}function Zre(e,t){if(t||e==="")return e;let r=new URL("https://example.com");return r.username=e,r.username}function $re(e,t,r){if(r||e==="")return e;if(t&&!jp.includes(t))return new URL(`${t}:${e}`).pathname;let n=e[0]=="/";return e=new URL(n?e:"/-"+e,"https://example.com").pathname,n||(e=e.substring(2,e.length)),e}function Rre(e,t,r){return Gp(t)===e&&(e=""),r||e===""?e:Wp(e)}function zre(e,t){return e=Ore(e,":"),t||e===""?e:K5(e)}function Gp(e){switch(e){case"ws":case"http":return"80";case"wws":case"https":return"443";case"ftp":return"21";default:return""}}function K5(e){if(e==="")return e;if(/^[-+.A-Za-z0-9]*$/.test(e))return e.toLowerCase();throw new TypeError(`Invalid protocol '${e}'.`)}function Fre(e){if(e==="")return e;let t=new URL("https://example.com");return t.username=e,t.username}function Ure(e){if(e==="")return e;let t=new URL("https://example.com");return t.password=e,t.password}function Kp(e){if(e==="")return e;if(/[\t\n\r #%/:<>?@[\]^\\|]/g.test(e))throw new TypeError(`Invalid hostname '${e}'`);let t=new URL("https://example.com");return t.hostname=e,t.hostname}function qp(e){if(e==="")return e;if(/[^0-9a-fA-F[\]:]/g.test(e))throw new TypeError(`Invalid IPv6 hostname '${e}'`);return e.toLowerCase()}function Wp(e){if(e===""||/^[0-9]*$/.test(e)&&parseInt(e)<=65535)return e;throw new TypeError(`Invalid port '${e}'.`)}function jre(e){if(e==="")return e;let t=new URL("https://example.com");return t.pathname=e[0]!=="/"?"/-"+e:e,e[0]!=="/"?t.pathname.substring(2,t.pathname.length):t.pathname}function Yre(e){return e===""?e:new URL(`data:${e}`).pathname}function Gre(e){if(e==="")return e;let t=new URL("https://example.com");return t.search=e,t.search.substring(1,t.search.length)}function Kre(e){if(e==="")return e;let t=new URL("https://example.com");return t.hash=e,t.hash.substring(1,t.hash.length)}var Qo,f1,Ht,xt,Wn,Xo,Nr,Jo,ea,ta,Rt,Yt,$l,Qp,Ui,y7,Qn,li,ra,Ks,k1,Z1,ji,b7,Rl,Xp,na,qs,zl,Jp,Fl,eh,oa,Ws,bn,$o,Zr,zn,Ul,th,jl,rh,Yl,nh,Gl,oh,R1,ur,Kl,ah,$8,qre=($8=class{constructor(e){ut(this,Rt);ut(this,$l);ut(this,Ui);ut(this,Qn);ut(this,ra);ut(this,k1);ut(this,ji);ut(this,Rl);ut(this,na);ut(this,zl);ut(this,Fl);ut(this,oa);ut(this,bn);ut(this,Zr);ut(this,Ul);ut(this,jl);ut(this,Yl);ut(this,Gl);ut(this,R1);ut(this,Kl);ut(this,Qo,void 0);ut(this,f1,[]);ut(this,Ht,{});ut(this,xt,0);ut(this,Wn,1);ut(this,Xo,0);ut(this,Nr,0);ut(this,Jo,0);ut(this,ea,0);ut(this,ta,!1);Wt(this,Qo,e)}get result(){return he(this,Ht)}parse(){for(Wt(this,f1,$p(he(this,Qo),!0));he(this,xt)0)if(Me(this,jl,rh).call(this))Wt(this,Jo,he(this,Jo)-1);else continue;if(Me(this,Ul,th).call(this)){Wt(this,Jo,he(this,Jo)+1);continue}switch(he(this,Nr)){case 0:Me(this,ji,b7).call(this)&&(he(this,Ht).username="",he(this,Ht).password="",he(this,Ht).hostname="",he(this,Ht).port="",he(this,Ht).pathname="",he(this,Ht).search="",he(this,Ht).hash="",Me(this,Qn,li).call(this,1));break;case 1:if(Me(this,ji,b7).call(this)){Me(this,Kl,ah).call(this);let e=7,t=1;he(this,ta)&&(he(this,Ht).pathname="/"),Me(this,Rl,Xp).call(this)?(e=2,t=3):he(this,ta)&&(e=2),Me(this,Rt,Yt).call(this,e,t)}break;case 2:Me(this,na,qs).call(this)?Me(this,Qn,li).call(this,3):(Me(this,oa,Ws).call(this)||Me(this,bn,$o).call(this)||Me(this,Zr,zn).call(this))&&Me(this,Qn,li).call(this,5);break;case 3:Me(this,zl,Jp).call(this)?Me(this,Rt,Yt).call(this,4,1):Me(this,na,qs).call(this)&&Me(this,Rt,Yt).call(this,5,1);break;case 4:Me(this,na,qs).call(this)&&Me(this,Rt,Yt).call(this,5,1);break;case 5:Me(this,Yl,nh).call(this)?Wt(this,ea,he(this,ea)+1):Me(this,Gl,oh).call(this)&&Wt(this,ea,he(this,ea)-1),Me(this,Fl,eh).call(this)&&!he(this,ea)?Me(this,Rt,Yt).call(this,6,1):Me(this,oa,Ws).call(this)?Me(this,Rt,Yt).call(this,7,0):Me(this,bn,$o).call(this)?Me(this,Rt,Yt).call(this,8,1):Me(this,Zr,zn).call(this)&&Me(this,Rt,Yt).call(this,9,1);break;case 6:Me(this,oa,Ws).call(this)?Me(this,Rt,Yt).call(this,7,0):Me(this,bn,$o).call(this)?Me(this,Rt,Yt).call(this,8,1):Me(this,Zr,zn).call(this)&&Me(this,Rt,Yt).call(this,9,1);break;case 7:Me(this,bn,$o).call(this)?Me(this,Rt,Yt).call(this,8,1):Me(this,Zr,zn).call(this)&&Me(this,Rt,Yt).call(this,9,1);break;case 8:Me(this,Zr,zn).call(this)&&Me(this,Rt,Yt).call(this,9,1);break}}}},Qo=new WeakMap,f1=new WeakMap,Ht=new WeakMap,xt=new WeakMap,Wn=new WeakMap,Xo=new WeakMap,Nr=new WeakMap,Jo=new WeakMap,ea=new WeakMap,ta=new WeakMap,Rt=new WeakSet,Yt=function(e,t){switch(he(this,Nr)){case 0:break;case 1:he(this,Ht).protocol=Me(this,R1,ur).call(this);break;case 2:break;case 3:he(this,Ht).username=Me(this,R1,ur).call(this);break;case 4:he(this,Ht).password=Me(this,R1,ur).call(this);break;case 5:he(this,Ht).hostname=Me(this,R1,ur).call(this);break;case 6:he(this,Ht).port=Me(this,R1,ur).call(this);break;case 7:he(this,Ht).pathname=Me(this,R1,ur).call(this);break;case 8:he(this,Ht).search=Me(this,R1,ur).call(this);break;case 9:he(this,Ht).hash=Me(this,R1,ur).call(this);break}Me(this,$l,Qp).call(this,e,t)},$l=new WeakSet,Qp=function(e,t){Wt(this,Nr,e),Wt(this,Xo,he(this,xt)+t),Wt(this,xt,he(this,xt)+t),Wt(this,Wn,0)},Ui=new WeakSet,y7=function(){Wt(this,xt,he(this,Xo)),Wt(this,Wn,0)},Qn=new WeakSet,li=function(e){Me(this,Ui,y7).call(this),Wt(this,Nr,e)},ra=new WeakSet,Ks=function(e){return e<0&&(e=he(this,f1).length-e),e=0&&(e.pathname=Dr(n.pathname.substring(0,o+1),r)+e.pathname)}e.pathname=$re(e.pathname,e.protocol,r)}return typeof t.search=="string"&&(e.search=Ire(t.search,r)),typeof t.hash=="string"&&(e.hash=Vre(t.hash,r)),e}function ui(e){return e.replace(/([+*?:{}()\\])/g,"\\$1")}function Wre(e){return e.replace(/([.+*?^${}()[\]|/\\])/g,"\\$1")}function Qre(e,t){t.delimiter??(t.delimiter="/#?"),t.prefixes??(t.prefixes="./"),t.sensitive??(t.sensitive=!1),t.strict??(t.strict=!1),t.end??(t.end=!0),t.start??(t.start=!0),t.endsWith="";let r=".*",n=`[^${Wre(t.delimiter)}]+?`,o=/[$_\u200C\u200D\p{ID_Continue}]/u,a="";for(let i=0;i0?e[i-1]:null,d=i0?d.value[0]:"";u=o.test(f)}else u=!d.hasCustomName();if(!u&&!s.prefix.length&&c&&c.type===3){let f=c.value[c.value.length-1];u=t.prefixes.includes(f)}u&&(a+="{"),a+=ui(s.prefix),l&&(a+=`:${s.name}`),s.type===2?a+=`(${s.value})`:s.type===1?l||(a+=`(${n})`):s.type===0&&(!l&&(!c||c.type===3||c.modifier!==3||u||s.prefix!=="")?a+="*":a+=`(${r})`),s.type===1&&l&&s.suffix.length&&o.test(s.suffix[0])&&(a+="\\"),a+=ui(s.suffix),u&&(a+="}"),s.modifier!==3&&(a+=Fo(s.modifier))}return a}var pr,Xn,aa,Qt,hr,R8,ih=(R8=class{constructor(e={},t,r){ut(this,pr,void 0);ut(this,Xn,{});ut(this,aa,{});ut(this,Qt,{});ut(this,hr,{});try{let n;if(typeof t=="string"?n=t:r=t,typeof e=="string"){let s=new qre(e);if(s.parse(),e=s.result,n===void 0&&typeof e.protocol!="string")throw new TypeError("A base URL must be provided for a relative constructor string.");e.baseURL=n}else{if(!e||typeof e!="object")throw new TypeError("parameter 1 is not of type 'string' and cannot convert to dictionary.");if(n)throw new TypeError("parameter 1 is not of type 'string'.")}typeof r>"u"&&(r={ignoreCase:!1});let o={ignoreCase:r.ignoreCase===!0};Wt(this,pr,Wa({pathname:ln,protocol:ln,username:ln,password:ln,hostname:ln,port:ln,search:ln,hash:ln},e,!0)),Gp(he(this,pr).protocol)===he(this,pr).port&&(he(this,pr).port="");let i;for(i of V0){if(!(i in he(this,pr)))continue;let s={},l=he(this,pr)[i];switch(he(this,aa)[i]=[],i){case"protocol":Object.assign(s,fn),s.encodePart=K5;break;case"username":Object.assign(s,fn),s.encodePart=Fre;break;case"password":Object.assign(s,fn),s.encodePart=Ure;break;case"hostname":Object.assign(s,Bre),Up(l)?s.encodePart=qp:s.encodePart=Kp;break;case"port":Object.assign(s,fn),s.encodePart=Wp;break;case"pathname":Yp(he(this,Xn).protocol)?(Object.assign(s,Tre,o),s.encodePart=jre):(Object.assign(s,fn,o),s.encodePart=Yre);break;case"search":Object.assign(s,fn,o),s.encodePart=Gre;break;case"hash":Object.assign(s,fn,o),s.encodePart=Kre;break}try{he(this,hr)[i]=Rp(l,s),he(this,Xn)[i]=zp(he(this,hr)[i],he(this,aa)[i],s),he(this,Qt)[i]=Qre(he(this,hr)[i],s)}catch{throw new TypeError(`invalid ${i} pattern '${he(this,pr)[i]}'.`)}}}catch(n){throw new TypeError(`Failed to construct 'URLPattern': ${n.message}`)}}test(e={},t){let r={pathname:"",protocol:"",username:"",password:"",hostname:"",port:"",search:"",hash:""};if(typeof e!="string"&&t)throw new TypeError("parameter 1 is not of type 'string'.");if(typeof e>"u")return!1;try{typeof e=="object"?r=Wa(r,e,!1):r=Wa(r,O8(e,t),!1)}catch{return!1}let n;for(n of V0)if(!he(this,Xn)[n].exec(r[n]))return!1;return!0}exec(e={},t){let r={pathname:"",protocol:"",username:"",password:"",hostname:"",port:"",search:"",hash:""};if(typeof e!="string"&&t)throw new TypeError("parameter 1 is not of type 'string'.");if(typeof e>"u")return;try{typeof e=="object"?r=Wa(r,e,!1):r=Wa(r,O8(e,t),!1)}catch{return null}let n={};t?n.inputs=[e,t]:n.inputs=[e];let o;for(o of V0){let a=he(this,Xn)[o].exec(r[o]);if(!a)return null;let i={};for(let[s,l]of he(this,aa)[o].entries())if(typeof l=="string"||typeof l=="number"){let u=a[s+1];i[l]=u}n[o]={input:r[o]??"",groups:i}}return n}static compareComponent(e,t,r){let n=(s,l)=>{for(let u of["type","modifier","prefix","value","suffix"]){if(s[u]{let u=0;for(;u{this.routes.set(new ih({pathname:r}),n)})}match(t){for(const[r,n]of this.routes){const o=`data:${t}`;if(r.test(o)){const a=r.exec(o);return{route:n,params:(a==null?void 0:a.pathname.groups)||{}}}}throw new Error(`Matching route for '${t}' not found`)}}class Jre{constructor(t,r){mt(this,"pool",new Map);this.create=t,this.destroy=r}acquire(t,r){if(!this.pool.has(t)){const o={value:this.create(t),references:new Set};this.pool.set(t,o)}const n=this.pool.get(t);return n.references.add(r),n.value}release(t,r){if(this.pool.has(t)){const n=this.pool.get(t);n.references.delete(r),n.references.size===0&&(this.pool.delete(t),this.destroy(t,n.value))}}}class ene{constructor(t,{create:r,destroy:n},o){mt(this,"cache",new Map);mt(this,"pool");mt(this,"getCacheKeyPrefix");const a=new Xre(t);this.pool=new Jre(i=>r(i,a),(i,s)=>{n(i,s)}),this.getCacheKeyPrefix=o}source(t,r){const n=this.getCacheKeyPrefix()+t,o=this.pool.acquire(t,r);return o.addEventListener("message",a=>{const i=a.target;(i==null?void 0:i.configuration.cacheControl)!=="no-store"&&this.cache.set(n,a.data)}),this.cache.has(n)&&Promise.resolve().then(()=>{o==null||o.dispatchEvent(new MessageEvent("message",{data:this.cache.get(n)}))}),o}close(t,r){return this.pool.release(t,r)}}class tne{constructor(t){mt(this,"env");let r=t;const n=(l,u="")=>this.var(l,(r==null?void 0:r[l])??u),o=this.getConfig(),a=n("KUMA_MODE")||o.mode,i=one(n("KUMA_VERSION",o.version)),s=encodeURIComponent(n("KUMA_PRODUCT_NAME"));r={...r,KUMA_UTM_QUERY_PARAMS:`utm_source=${s}&utm_medium=${s}`},this.env={...r,KUMA_DOCS_URL:`${n("KUMA_DOCS_URL")}/${i.patch==="0.0.0"?"dev":i.patch.replace(/\.\d+$/,".x")}`,KUMA_VERSION:i.pre,KUMA_API_URL:n("KUMA_API_URL")||o.apiUrl,KUMA_BASE_PATH:n("KUMA_BASE_PATH")||o.baseGuiPath,KUMA_MODE:a,KUMA_ENVIRONMENT:n("KUMA_ENVIRONMENT")||o.environment,KUMA_STORE_TYPE:n("KUMA_STORE_TYPE")||o.storeType,KUMA_KDS_URL:"grpcs://:5685"}}var(t,r=""){var n;return((n=this.env)==null?void 0:n[t])??r}getConfig(){const t=document.querySelector("#kuma-config");let r;if(t instanceof HTMLScriptElement&&t.textContent)try{r=JSON.parse(t.textContent.trim())}catch(n){console.error(n)}return r||(r=rne(),console.error("Unable to parse kuma config. Falling back to defaults")),r.apiUrl=nne(r.apiUrl),r}}function rne(e=""){return{baseGuiPath:"/gui",apiUrl:e,version:"2.4.0",product:"Kuma",mode:"zone",zone:"default",environment:"universal",storeType:"postgres",apiReadOnly:!1}}function sh(e){return e.endsWith("/")?sh(e.slice(0,-1)):e}function nne(e){return e=!e.includes("://")&&!e.startsWith("/")?`/${e}`:e,sh(e)}function one(e){const[t,r,...n]=e.split(".");if(isNaN(parseInt(t)))return{major:t,minor:t,patch:t,pre:t};const[o,a]=n.join(".").split("-");return{major:t,minor:`${t}.${r}`,patch:`${t}.${r}.${o}`,pre:`${t}.${r}.${o}${a!==void 0?`-${a}`:""}`}}const Gt={Env:Ue("application.Env"),env:Ue("application.env"),EnvVars:Ue("EnvVars"),can:Ue("application.can"),features:Ue("application.can.features"),notFoundView:Ue("application.not-found"),applicationComponents:Ue("application.components"),source:Ue("data.source"),sources:Ue("data.sources"),dataSourcePool:Ue("data.DataSourcePool"),dataSourceLifecycle:Ue("data.DataSourceLifecycle"),getDataSourceCacheKeyPrefix:Ue("data.getDataSourceCacheKeyPrefix"),i18n:Ue("i18n"),enUs:Ue("i18n.locale.enUs")},ane=e=>[[Ue("application.components"),{service:t=>[["AppView",ure],["DataSource",dre],["RouteView",Cre],["RouteTitle",fre],["I18nT",_C(t)]],arguments:[e.i18n],labels:[e.components]}],[Ue("application.routes"),{service:yre,arguments:[Gt.notFoundView],labels:[e.routes]}],[Gt.i18n,{service:_re,arguments:[Gt.enUs,e.env]}],[Gt.can,{service:bre,arguments:[Gt.features]}],[Gt.Env,{service:tne,arguments:[e.EnvVars]}],[Gt.env,{service:t=>(...r)=>t.var(...r),arguments:[Gt.Env]}],[Gt.dataSourceLifecycle,{constant:Sre}],[Gt.source,{service:Zp,arguments:[dn(document,{description:"dom.document"})]}],[Gt.getDataSourceCacheKeyPrefix,{service:()=>()=>"",arguments:[e.router]}],[Gt.dataSourcePool,{service:ene,arguments:[e.sources,Gt.dataSourceLifecycle,Gt.getDataSourceCacheKeyPrefix]}]],ine=Gt,[sne,lne,tn,une]=Na(Gt.env,Gt.can,Gt.i18n,Gt.dataSourcePool),H2=e=>(Je("data-v-350f9448"),e=e(),et(),e),cne={class:"card-header"},dne={class:"card-title"},fne={class:"columns"},pne=H2(()=>m("img",{src:Wm},null,-1)),hne=H2(()=>m("img",{src:Qm},null,-1)),vne=H2(()=>m("img",{src:Qc},null,-1)),mne=H2(()=>m("img",{src:Qc},null,-1)),gne=ne({__name:"ControlPlaneStatus",props:{globalInsight:{},canUseZones:{type:Boolean}},setup(e){const{t}=tn(),r=e;return(n,o)=>{const a=Bt("KCard");return h(),J(a,null,{default:A(()=>[m("div",cne,[m("div",dne,[m("h2",null,Z(B(t)("main-overview.detail.health.title")),1)])]),M(),m("div",fne,[r.canUseZones?(h(),J(qn,{key:0,total:r.globalInsight.zones.controlPlanes.total,online:r.globalInsight.zones.controlPlanes.online,"data-testid":"zone-control-planes-status"},{icon:A(()=>[pne]),title:A(()=>[M(Z(B(t)("main-overview.detail.health.zone_control_planes")),1)]),_:1},8,["total","online"])):P("",!0),M(),R(qn,{total:r.globalInsight.meshes.total,"data-testid":"meshes-status"},{icon:A(()=>[hne]),title:A(()=>[M(Z(B(t)("main-overview.detail.health.meshes")),1)]),_:1},8,["total"]),M(),R(qn,{total:r.globalInsight.services.internal.total,online:r.globalInsight.services.internal.online,"data-testid":"services-status"},{icon:A(()=>[vne]),title:A(()=>[M(Z(B(t)("main-overview.detail.health.services")),1)]),_:1},8,["total","online"]),M(),R(qn,{total:r.globalInsight.dataplanes.standard.total,online:r.globalInsight.dataplanes.standard.online,"data-testid":"data-plane-proxies-status"},{icon:A(()=>[mne]),title:A(()=>[M(Z(B(t)("main-overview.detail.health.data_plane_proxies")),1)]),_:1},8,["total","online"])])]),_:1})}}});const Cne=Pa(gne,[["__scopeId","data-v-350f9448"]]),Zl={sources:Ue("control-planes.sources"),ControlPlaneStatus:Ue("control-planes.components.ControlPlaneStatus")},yne=e=>[[Zl.sources,{service:kh,arguments:[e.env,e.api],labels:[e.sources]}],[Zl.ControlPlaneStatus,{service:()=>Cne}],[Ue("control-planes.routes"),{service:yh,labels:[e.routes]}],[Ue("control-planes.features"),{service:Ch,arguments:[e.env],labels:[e.features]}]],bne=Zl,[Zae]=Na(Zl.ControlPlaneStatus),wne=()=>[{path:"/diagnostics",name:"diagnostics",component:()=>Ve(()=>import("./DiagnosticsDetailView-0fd943f4.js"),["./CodeBlock-aa591f34.css","./CopyButton-2be0e14d.css","./TextWithCopyButton-f7225b54.css","./ErrorBlock-bcc21522.css"],import.meta.url)}],_ne=e=>[[Ue("diagnostics.routes"),{service:wne,labels:[e.routes]}]];class kne{constructor(t){mt(this,"storageAdapter");this.storageAdapter=t}get(t){let r;try{r=this.storageAdapter.getItem(t)}catch{return null}if(r===null||!(r.startsWith("[")||r.startsWith("{")))return r;try{return JSON.parse(r)}catch{return r}}set(t,r){try{const n=typeof r=="string"?r:JSON.stringify(r);this.storageAdapter.setItem(t,n)}catch{}}has(t){try{return this.storageAdapter.getItem(t)!==null}catch{return!1}}remove(t){try{this.storageAdapter.removeItem(t)}catch{}}}const V8=new kne(window.localStorage),xne={class:"onboarding-alert-content"},Mne=["innerHTML"],Sne=ne({__name:"OnboardingAlert",setup(e){const{t}=tn(),r=Y(V8.get("hasDismissedOnboardingAlert")!=="true");function n(){r.value=!1,V8.set("hasDismissedOnboardingAlert","true")}return(o,a)=>{const i=Bt("KButton"),s=Bt("KAlert");return r.value?(h(),J(s,{key:0,appearance:"success","dismiss-type":"icon","data-testid":"onboarding-notification",onClosed:n},{alertMessage:A(()=>[m("div",xne,[m("div",{innerHTML:B(t)("main-overview.detail.onboarding.message",{name:B(t)("common.product.name")})},null,8,Mne),M(),R(i,{appearance:"primary",size:"small",class:"action-button",to:{name:"onboarding-welcome-view"}},{default:A(()=>[M(Z(B(t)("main-overview.detail.onboarding.get_started_link")),1)]),_:1})])]),_:1})):P("",!0)}}});const Ene=Pa(Sne,[["__scopeId","data-v-bdbc77dd"]]),Lne={class:"stack"},Ane=ne({__name:"ControlPlaneStatusWithOnboarding",props:{globalInsight:{},canUseZones:{type:Boolean}},setup(e){const t=Tne(),r=e;return(n,o)=>(h(),k("div",Lne,[n.globalInsight.meshes.total===1?(h(),J(Ene,{key:0})):P("",!0),M(),R(B(t),{"can-use-zones":r.canUseZones,"global-insight":n.globalInsight},null,8,["can-use-zones","global-insight"])]))}}),Hne=()=>[{path:"/onboarding",redirect:{name:"onboarding-welcome-view"},component:()=>Ve(()=>import("./OnboardingRootView-5fc87179.js"),[],import.meta.url),children:[{path:"welcome",name:"onboarding-welcome-view",component:()=>Ve(()=>import("./OnboardingWelcomeView-7b80460d.js"),["./OnboardingPage-b708a949.css","./OnboardingWelcomeView-ba0c5c64.css"],import.meta.url)},{path:"deployment-types",name:"onboarding-deployment-types-view",component:()=>Ve(()=>import("./OnboardingDeploymentTypesView-216e3a0f.js"),["./OnboardingPage-b708a949.css","./OnboardingDeploymentTypesView-2f052c8a.css"],import.meta.url)},{path:"configuration-types",name:"onboarding-configuration-types-view",component:()=>Ve(()=>import("./OnboardingConfigurationTypesView-6535437b.js"),["./OnboardingPage-b708a949.css","./OnboardingConfigurationTypesView-7c8a5017.css"],import.meta.url)},{path:"multi-zone",name:"onboarding-multi-zone-view",component:()=>Ve(()=>import("./OnboardingMultiZoneView-f42c53e4.js"),["./LoadingBox-0bc10551.css","./OnboardingPage-b708a949.css","./OnboardingMultiZoneView-abcc5530.css"],import.meta.url)},{path:"create-mesh",name:"onboarding-create-mesh-view",component:()=>Ve(()=>import("./OnboardingCreateMeshView-f19547a4.js"),["./OnboardingPage-b708a949.css","./OnboardingCreateMeshView-fb39b91f.css"],import.meta.url)},{path:"add-services",name:"onboarding-add-new-services-view",component:()=>Ve(()=>import("./OnboardingAddNewServicesView-8261e3da.js"),["./OnboardingPage-b708a949.css","./OnboardingAddNewServicesView-23f21aef.css"],import.meta.url)},{path:"add-services-code",name:"onboarding-add-new-services-code-view",component:()=>Ve(()=>import("./OnboardingAddNewServicesCodeView-0e207ac7.js"),["./LoadingBox-0bc10551.css","./OnboardingPage-b708a949.css","./CodeBlock-aa591f34.css","./OnboardingAddNewServicesCodeView-c1d9425b.css"],import.meta.url)},{path:"dataplanes-overview",name:"onboarding-dataplanes-view",component:()=>Ve(()=>import("./OnboardingDataplanesView-1881feca.js"),["./LoadingBox-0bc10551.css","./OnboardingPage-b708a949.css","./CopyButton-2be0e14d.css","./TextWithCopyButton-f7225b54.css","./ErrorBlock-bcc21522.css","./StatusBadge-8194fcb8.css","./OnboardingDataplanesView-a63b1ad7.css"],import.meta.url)},{path:"completed",name:"onboarding-completed-view",component:()=>Ve(()=>import("./OnboardingCompletedView-9da974db.js"),["./OnboardingPage-b708a949.css","./OnboardingCompletedView-a7cfb1d4.css"],import.meta.url)}]}],lh=Ue("onboarding.components.ControlPlaneStatus"),Bne=e=>[[Ue("onboarding.routes"),{service:Hne,labels:[e.routes]}],[Ue("onboarding.components.ControlPlaneStatusWithOnboarding"),{service:t=>(U5(lh,{service:t}),Ane),decorates:e.ControlPlaneStatus}]],[Tne]=Na(lh);class Dne{info(...t){this._log("info",...t)}warn(...t){this._log("warn",...t)}error(...t){this._log("error",...t)}_log(t,...r){console[t](...r)}}const One=()=>{class e extends Dne{setup(){console.warn("Logging is disabled")}_log(){}}return new e},Vne=e=>[[Ue("kuma.components.not-found"),{service:()=>[()=>Ve(()=>import("./KumaNotFoundView-d56ea082.js"),[],import.meta.url)],labels:[e.notFoundView]}]],Ine=()=>({"/me":async(e={},t)=>(t.close(),Promise.resolve({pageSize:50}))}),Pne={sources:Ue("me.sources")},Nne=e=>[[Pne.sources,{service:Ine,arguments:[e.api],labels:[e.sources]}]],Zne=(e,t,r)=>[{path:"/meshes",name:"mesh-index-view",redirect:{name:"mesh-list-view"},component:()=>Ve(()=>import("./MeshRootView-7ef59b97.js"),[],import.meta.url),children:[{path:"",name:"mesh-list-view",component:()=>Ve(()=>import("./MeshListView-1e95fe7a.js"),["./AppCollection-6359d3b1.css","./CopyButton-2be0e14d.css","./TextWithCopyButton-f7225b54.css","./ErrorBlock-bcc21522.css","./SummaryView-969145bb.css","./MeshListView-04acf3fa.css"],import.meta.url),children:[{path:":mesh",name:"mesh-summary-view",component:()=>Ve(()=>import("./MeshSummaryView-55bb59f6.js"),["./MeshSummaryView-fb53424c.css"],import.meta.url)}]},{path:":mesh",name:"mesh",redirect:{name:"mesh-detail-view"},children:[{path:"",name:"mesh-detail-tabs-view",redirect:{name:"mesh-detail-view"},component:()=>Ve(()=>import("./MeshDetailTabsView-e52b050a.js"),["./NavTabs-3b34e815.css","./CopyButton-2be0e14d.css","./TextWithCopyButton-f7225b54.css"],import.meta.url),children:[{path:"overview",meta:{module:"meshes"},name:"mesh-detail-view",component:()=>Ve(()=>import("./MeshDetailView-bd72954f.js"),["./CopyButton-2be0e14d.css","./TextWithCopyButton-f7225b54.css","./ErrorBlock-bcc21522.css","./MeshDetailView-33fe715e.css"],import.meta.url)},{path:"config",name:"mesh-config-view",component:()=>Ve(()=>import("./MeshConfigView-e050c0d0.js"),["./CopyButton-2be0e14d.css","./TextWithCopyButton-f7225b54.css","./ErrorBlock-bcc21522.css","./CodeBlock-aa591f34.css","./ResourceCodeBlock-dd906c25.css"],import.meta.url)},...e.items(),...t.items(),...r.items()]},...e.item(),...t.item(),...r.item()]}]}],uh={fromArray:e=>{const t=Array.isArray(e)?e:[],r=t.slice();r.sort((a,i)=>Date.parse(i.status.lastUpdateTime)-Date.parse(a.status.lastUpdateTime));const n=r.find(a=>typeof a.version<"u"),o=r.find(a=>!a.disconnectTime);return{subscriptions:t,connectedSubscription:o,version:n==null?void 0:n.version}}},ch={fromObject(e){const{inbound:t,outbound:r,...n}=e,o=Array.isArray(t)?t:[],a=Array.isArray(r)?r:[];return{...n,inbounds:o.map(i=>({...i,health:{ready:q5(i.health)?i.health.ready:!0},service:i.tags["kuma.io/service"],protocol:i.tags["kuma.io/protocol"]??"tcp",addressPort:`${i.address??e.advertisedAddress??e.address}:${i.port}`,serviceAddressPort:`${i.serviceAddress??i.address??e.address}:${i.servicePort??i.port}`})),outbounds:a.map(i=>({...i,service:i.tags["kuma.io/service"],protocol:i.tags["kuma.io/protocol"]??"tcp"}))}}},$ne={fromObject(e){return{...e,config:e,networking:ch.fromObject(e.networking)}}},Rne={fromArray:e=>uh.fromArray(e)},zne={fromObject(e){return{...e,...Rne.fromArray(e==null?void 0:e.subscriptions)}}},ci={fromObject(e,t){var d;const r=zne.fromObject(e.dataplaneInsight),n=ch.fromObject(e.dataplane.networking),o=qne(n),a=Yne(n),i=Kne(r,a,t),s=Gne(r),l=q5(r.connectedSubscription)?"online":"offline",u=a.filter(f=>f.label==="kuma.io/service").map(({value:f})=>f),c=(d=a.find(f=>f.label==="kuma.io/zone"))==null?void 0:d.value;return{...e,dataplane:{networking:n},dataplaneInsight:r,dataplaneType:o,status:n.gateway?l:(()=>{const f=n.inbounds.filter(p=>!p.health.ready);switch(!0){case f.length===n.inbounds.length:return"offline";case f.length>0:return"partially_degraded";default:return l}})(),warnings:i,isCertExpired:s,services:u,zone:c}},fromCollection(e,t){return{...e,items:Array.isArray(e.items)?e.items.map(r=>ci.fromObject(r,t)):[]}}},Fne={fromCollection(e){const t=Array.isArray(e.items)?e.items:[],r=Wne(t);return{...e,items:t,policyTypeEntries:r}}},Une={fromCollection(e){const t=Array.isArray(e.rules)?e.rules:[],r=Xne(t),n=Jne(t),o=eoe(t);return{...e,rules:t,proxyRule:r,toRules:n,fromRuleInbounds:o}}},jne={fromObject(e){const t=toe(e),r=Object.values(e.policies??{}).map(({mesh:n,name:o,type:a})=>({mesh:n,name:o,type:a}));return{...e,listenerEntries:t,routePolicies:r}}};function Yne({gateway:e,inbounds:t}){let r=[];const n="=";t.length>0&&(r=t.flatMap(a=>Object.entries(a.tags)).map(([a,i])=>`${a}${n}${i}`)),e&&(r=Object.entries(e.tags).map(([a,i])=>`${a}${n}${i}`));const o=Array.from(new Set(r));return o.sort((a,i)=>a.localeCompare(i)),o.map(a=>{const[i,s]=a.split(n);return{label:i,value:s}})}function Gne({mTLS:e}){return e?Date.now()>new Date(e.certificateExpirationTime).getTime():!1}function Kne({version:e},t,r){var o,a;if(!q5(e))return[];const n=[];return e.kumaDp&&e.envoy&&((((o=e.kumaDp)==null?void 0:o.kumaCpCompatible)??!0)||n.push({kind:"INCOMPATIBLE_UNSUPPORTED_KUMA_DP",payload:{kumaDp:e.kumaDp.version}}),(((a=e.envoy)==null?void 0:a.kumaDpCompatible)??!0)||n.push({kind:"INCOMPATIBLE_UNSUPPORTED_ENVOY",payload:{envoy:e.envoy.version,kumaDp:e.kumaDp.version}})),r&&t.find(s=>s.label==="kuma.io/zone")&&typeof e.kumaDp.kumaCpCompatible=="boolean"&&!e.kumaDp.kumaCpCompatible&&n.push({kind:"INCOMPATIBLE_ZONE_CP_AND_KUMA_DP_VERSIONS",payload:{kumaDp:e.kumaDp.version}}),n}function qne({gateway:e}){return e?e.type?e.type.toLowerCase():"delegated":"standard"}function Wne(e){const t=new Map;for(const n of e){const{type:o,service:a}=n,i=typeof a=="string"&&a!==""?[{label:"kuma.io/service",value:a}]:[],s=o==="inbound"||o==="outbound"?n.name:null;for(const[l,u]of Object.entries(n.matchedPolicies)){t.has(l)||t.set(l,{type:l,connections:[]});const c=t.get(l);for(const d of u){const f=Qne(d,n,i,s);c.connections.push(...f)}}}const r=Array.from(t.values());return r.sort((n,o)=>n.type.localeCompare(o.type)),r}function Qne(e,t,r,n){const o=e.conf&&Object.keys(e.conf).length>0?e.conf:void 0,a=[{name:e.name,mesh:e.mesh,type:e.type}],i=[];if(t.type==="inbound"&&Array.isArray(e.sources))for(const{match:s}of e.sources){const u={sourceTags:[{label:"kuma.io/service",value:s["kuma.io/service"]}],destinationTags:r,name:n,config:o,origins:a};i.push(u)}else{const l={sourceTags:[],destinationTags:r,name:n,config:o,origins:a};i.push(l)}return i}function Xne(e){const t=e.find(i=>i.proxyRule);if(!t||!t.proxyRule)return;const{type:r,proxyRule:n}=t,o=n.conf&&Object.keys(n.conf).length>0?n.conf:void 0,a=n.origin;return{type:r,rules:[{config:o,origins:a}]}}function Jne(e){const t=[];for(const r of e){const n=r.toRules??[];n.length>0&&t.push({type:r.type,rules:dh(n)})}return t.sort((r,n)=>r.type.localeCompare(n.type)),t}function eoe(e){const t=new Map;for(const n of e){const o=n.fromRules??[];if(o.length!==0)for(const a of o)t.has(a.inbound.port)||t.set(a.inbound.port,[]),t.get(a.inbound.port).push({type:n.type,rules:dh(a.rules)})}for(const[,n]of t)n.sort((o,a)=>o.type.localeCompare(a.type));const r=Array.from(t);return r.sort(([n],[o])=>o-n),r.map(([n,o])=>({port:n,ruleEntries:o}))}function dh(e){return e.map(({conf:t,matchers:r,origin:n})=>({config:t&&Object.keys(t).length>0?t:void 0,matchers:r,origins:n}))}function toe(e){const t=[],r=e.listeners??[];for(const n of r)for(const o of n.hosts)for(const a of o.routes){const i=[];for(const s of a.destinations){const l=Object.values(s.policies??{}).map(({mesh:u,name:c,type:d})=>({mesh:u,name:c,type:d}));i.push({route:{mesh:e.gateway.mesh,name:a.route,type:"MeshGatewayRoute"},service:s.tags["kuma.io/service"],origins:l})}t.push({protocol:n.protocol,port:n.port,hostName:o.hostName,routeEntries:i})}return t}function Qa({total:e=0,online:t=0,partiallyDegraded:r=0,offline:n=0}){return{total:e,online:t,partiallyDegraded:r,offline:n}}function q5(e){return e!==null&&typeof e<"u"}const roe={fromObject(e){return{...e,config:e}}},w7={fromObject(e){const t=e.serviceType??"internal",r=e.status??"not_available";return{...e,serviceType:t,status:r}},fromCollection(e){return{...e,items:Array.isArray(e.items)?e.items.map(t=>w7.fromObject(t)):[]}}};function noe({total:e=0,internal:t=0,external:r=0}){return{total:e,internal:t,external:r}}const ooe={fromObject(e){const t=I8(e.mtls),r=I8(e.metrics);return{...e,config:e,mtlsBackend:t,metricsBackend:r}}},_7={fromObject(e){const t=Qa(e.dataplanes),r={standard:Qa(e.dataplanesByType.standard),gateway:Qa(e.dataplanesByType.gateway),gatewayBuiltin:Qa(e.dataplanesByType.gatewayBuiltin),gatewayDelegated:Qa(e.dataplanesByType.gatewayDelegated)},n=noe(e.services),o=Object.values(e.policies??{}).reduce((a,i)=>a+i.total,0);return{...e,dataplanes:t,dataplanesByType:r,services:n,totalPolicyCount:o}},fromCollection(e){return{...e,items:Array.isArray(e.items)?e.items.map(t=>_7.fromObject(t)):[]}}};function I8(e){if(e!=null&&e.enabledBackend&&Array.isArray(e.backends))return e.backends.find(t=>t.name===e.enabledBackend)}const aoe=e=>({"/meshes/:name":async t=>{const{name:r}=t;return ooe.fromObject(await e.getMesh({name:r}))},"/meshes/:name/as/kubernetes":t=>{const{name:r}=t;return e.getMesh({name:r},{format:"kubernetes"})},"/mesh-insights":async t=>{const{size:r}=t,n=t.size*(t.page-1);return _7.fromCollection(await e.getAllMeshInsights({size:r,offset:n}))},"/mesh-insights/:name":async t=>{const{name:r}=t;return _7.fromObject(await e.getMeshInsights({name:r}))}}),ioe=e=>({"read traffic":()=>{try{return!!JSON.parse(e("KUMA_TRAFFIC_ENABLED","false"))}catch{return!1}}}),soe=["protocol","service","zone"];function P8(e){const t=new Map;for(const[r,n]of e){const o=soe.includes(r),a=o?"tag":r;t.has(a)||t.set(a,[]);const i=t.get(a);let s;a==="tag"?s=(o?`kuma.io/${r}:${n}`:n).replace(/\s+/g,""):s=n,i.push(s.trim())}return t}const loe=e=>e.trim().split(` +`).filter(t=>["http.","tcp.","cluster."].some(r=>t.startsWith(r))).reduce((t,r)=>{const[n,...o]=r.trim().split(":"),a=(i=>{try{return JSON.parse(i)}catch{return i}})(o.join(":").trim());return n.split(".").reduce((i,s,l,u)=>{if(l===u.length-1)return i[s]=a,i;if(typeof i[s]>"u"){const c={};return i[s]=c,c}else return i[s]},t),t},{}),I0=(e,t)=>{const r=["http","tcp","cluster"],n={};return r.map(o=>Object.entries(e[o]||{}).filter(([a,i])=>t(a)).forEach(([a,i])=>{if(typeof n[a]>"u"&&(n[a]={name:a,protocol:o}),o==="cluster"){typeof i.grpc<"u"&&(n[a].protocol="grpc",n[a].grpc=i);return}n[a][o]=i})),Object.values(n)},P0=(e,t)=>e.includes(t),uoe=(e,t,r)=>kre({"/dataplanes/poll":n=>{const{size:o,page:a}=n,i=o*(a-1),s=r("use zones");return e(async()=>ci.fromCollection(await t.getAllDataplaneOverviews({size:o,offset:i}),s),{interval:1e3})},"/meshes/:mesh/dataplanes/:name":async n=>$ne.fromObject(await t.getDataplaneFromMesh(n)),"/meshes/:mesh/dataplanes/:name/as/kubernetes":async n=>t.getDataplaneFromMesh(n,{format:"kubernetes"}),"/meshes/:mesh/dataplanes/:name/traffic":async n=>{const{mesh:o,name:a}=n,i=await t.getDataplaneData({mesh:o,dppName:a,dataPath:"stats"}),s=loe(i),l=I0(s,d=>d.startsWith("localhost_")),u=I0(s,d=>!["_","admin","async-client","kuma_envoy_admin","probe_listener","localhost_","inbound_passthrough","outbound_passthrough","access_log_sink","ads_cluster","meshtrace_zipkin"].some(f=>d.startsWith(f)));return{passthrough:I0(s,d=>["outbound_passthrough_"].some(f=>d.startsWith(f))).reduce((d,f)=>({...d,...["http","tcp"].reduce((p,v)=>(p[v]=Object.entries(f[v]||{}).reduce((y,[b,g])=>({...y,[b]:g+(y[b]??0)}),p[v]||{}),p),d)}),{name:"outbound_passthrough"}),inbounds:l,outbounds:u,$raw:i,config:i}},"/meshes/:mesh/dataplanes/:name/data-path/:dataPath":async n=>{const{mesh:o,name:a}=n,i=P0(["xds","clusters","stats"],n.dataPath)?n.dataPath:"xds";return t.getDataplaneData({mesh:o,dppName:a,dataPath:i})},"/meshes/:mesh/dataplanes/:name/sidecar-dataplane-policies":async n=>Fne.fromCollection(await t.getSidecarDataplanePolicies(n)),"/meshes/:mesh/dataplanes/:name/rules":async n=>Une.fromCollection(await t.getDataplaneRules(n)),"/meshes/:mesh/dataplanes/:name/gateway-dataplane-policies":async n=>jne.fromObject(await t.getMeshGatewayDataplane(n)),"/meshes/:mesh/dataplane-overviews/:name":async n=>ci.fromObject(await t.getDataplaneOverviewFromMesh(n),r("use zones")),"/meshes/:mesh/dataplanes/of/:type":async n=>{const{mesh:o,size:a}=n,i=a*(n.page-1),s=Object.fromEntries(P8(JSON.parse(n.search||"[]"))),l=n.type==="standard"?"false":n.type,u=P0(["delegated","builtin","false"],l)?{gateway:l}:{};return ci.fromCollection(await t.getAllDataplaneOverviewsFromMesh({mesh:o},{...s,...u,offset:i,size:a}),r("use zones"))},"/meshes/:mesh/dataplanes/for/:service/of/:type":async n=>{const{mesh:o,size:a}=n,i=a*(n.page-1),s=Object.fromEntries(P8(JSON.parse(n.search||"[]")));typeof s.tag>"u"&&(s.tag=[]),s.tag=s.tag.filter(c=>!c.startsWith("kuma.io/service:")),s.tag.push(`kuma.io/service:${n.service}`);const l=n.type==="standard"?"false":n.type,u=P0(["delegated","builtin","false"],l)?{gateway:l}:{};return ci.fromCollection(await t.getAllDataplaneOverviewsFromMesh({mesh:o},{...s,...u,offset:i,size:a}),r("use zones"))}}),coe=()=>({items:()=>[{path:"data-planes",name:"data-plane-list-view",meta:{module:"data-planes"},component:()=>Ve(()=>import("./DataPlaneListView-d9b2df19.js"),["./AppCollection-6359d3b1.css","./StatusBadge-8194fcb8.css","./CopyButton-2be0e14d.css","./TextWithCopyButton-f7225b54.css","./FilterBar-c6fa64d4.css","./ErrorBlock-bcc21522.css","./SummaryView-969145bb.css","./DataPlaneListView-4853aabd.css"],import.meta.url),children:[{path:":dataPlane",name:"data-plane-summary-view",component:()=>Ve(()=>import("./DataPlaneSummaryView-fa41cae2.js"),["./StatusBadge-8194fcb8.css","./TagList-e2c71478.css","./CopyButton-2be0e14d.css","./TextWithCopyButton-f7225b54.css","./DataPlaneSummaryView-67703463.css"],import.meta.url)}]}],item:()=>[{path:"data-planes/:dataPlane",name:"data-plane-detail-tabs-view",component:()=>Ve(()=>import("./DataPlaneDetailTabsView-027ef371.js"),["./CopyButton-2be0e14d.css","./TextWithCopyButton-f7225b54.css","./ErrorBlock-bcc21522.css","./NavTabs-3b34e815.css"],import.meta.url),children:[{path:"overview",name:"data-plane-detail-view",component:()=>Ve(()=>import("./DataPlaneDetailView-5a38333e.js"),["./CopyButton-2be0e14d.css","./TextWithCopyButton-f7225b54.css","./ErrorBlock-bcc21522.css","./StatusBadge-8194fcb8.css","./SummaryView-969145bb.css","./TagList-e2c71478.css","./AccordionList-8bab9627.css","./SubscriptionList-408b08ab.css","./DataPlaneDetailView-d984fa3b.css"],import.meta.url),children:[{path:"inbound/:service",name:"data-plane-inbound-summary-view",component:()=>Ve(()=>import("./DataPlaneInboundSummaryView-52474722.js"),["./NavTabs-3b34e815.css","./DataPlaneInboundSummaryView-c5422be8.css"],import.meta.url),children:[{path:"overview",name:"data-plane-inbound-summary-overview-view",component:()=>Ve(()=>import("./DataPlaneInboundSummaryOverviewView-7d45627f.js"),[],import.meta.url)}]},{path:"outbound/:service",name:"data-plane-outbound-summary-view",component:()=>Ve(()=>import("./DataPlaneOutboundSummaryView-94e545b9.js"),["./NavTabs-3b34e815.css","./DataPlaneOutboundSummaryView-7ea40d01.css"],import.meta.url),children:[{path:"overview",name:"data-plane-outbound-summary-overview-view",component:()=>Ve(()=>import("./DataPlaneOutboundSummaryOverviewView-92944bb5.js"),[],import.meta.url)}]}]},{path:"policies",name:"data-plane-policies-view",component:()=>Ve(()=>import("./DataPlanePoliciesView-e6d65844.js"),["./AccordionList-8bab9627.css","./CodeBlock-aa591f34.css","./PolicyTypeTag-f5c09fb0.css","./TagList-e2c71478.css","./CopyButton-2be0e14d.css","./TextWithCopyButton-f7225b54.css","./ErrorBlock-bcc21522.css","./DataPlanePoliciesView-45a9800a.css"],import.meta.url)},{path:"xds-config",name:"data-plane-xds-config-view",component:()=>Ve(()=>import("./DataPlaneXdsConfigView-606e95b4.js"),["./CodeBlock-aa591f34.css","./CopyButton-2be0e14d.css","./TextWithCopyButton-f7225b54.css","./ErrorBlock-bcc21522.css","./EnvoyData-6b62105a.css"],import.meta.url)},{path:"stats",name:"data-plane-stats-view",component:()=>Ve(()=>import("./DataPlaneStatsView-bc8a3e82.js"),["./CodeBlock-aa591f34.css","./CopyButton-2be0e14d.css","./TextWithCopyButton-f7225b54.css","./ErrorBlock-bcc21522.css","./EnvoyData-6b62105a.css"],import.meta.url)},{path:"clusters",name:"data-plane-clusters-view",component:()=>Ve(()=>import("./DataPlaneClustersView-c56274ba.js"),["./CodeBlock-aa591f34.css","./CopyButton-2be0e14d.css","./TextWithCopyButton-f7225b54.css","./ErrorBlock-bcc21522.css","./EnvoyData-6b62105a.css"],import.meta.url)},{path:"config",name:"data-plane-config-view",component:()=>Ve(()=>import("./DataPlaneConfigView-d5028869.js"),["./CopyButton-2be0e14d.css","./TextWithCopyButton-f7225b54.css","./ErrorBlock-bcc21522.css","./CodeBlock-aa591f34.css","./ResourceCodeBlock-dd906c25.css"],import.meta.url)}]}]}),doe=e=>[[Ue("data-planes.sources"),{service:uoe,arguments:[e.source,e.api,e.can],labels:[e.sources]}],[Ue("data-planes.features"),{service:ioe,arguments:[e.env],labels:[e.features]}]],fh={fromObject(e){return e},fromCollection(e){return{...e,items:Array.isArray(e.items)?e.items.map(t=>fh.fromObject(t)):[]}}},k7={fromObject(e){return{...e,config:e}},fromCollection(e){return{...e,items:Array.isArray(e.items)?e.items.map(t=>k7.fromObject(t)):[]}}},foe=e=>({"/*/policy-types":(t,r)=>(r.close(),e.getPolicyTypes()),"/meshes/:mesh/policy-path/:path":async(t,r)=>{r.close();const{mesh:n,path:o,size:a}=t,i=t.size*(t.page-1);return k7.fromCollection(await e.getAllPolicyEntitiesFromMesh({mesh:n,path:o},{offset:i,size:a}))},"/meshes/:mesh/policy-path/:path/policy/:name":async(t,r)=>{r.close();const{mesh:n,path:o,name:a}=t;return k7.fromObject(await e.getSinglePolicyEntity({mesh:n,path:o,name:a}))},"/meshes/:mesh/policy-path/:path/policy/:name/dataplanes":async(t,r)=>{r.close();const{mesh:n,path:o,name:a}=t;return fh.fromCollection(await e.getPolicyConnections({mesh:n,path:o,name:a}))},"/meshes/:mesh/policy-path/:path/policy/:name/as/kubernetes":(t,r)=>{r.close();const{mesh:n,path:o,name:a}=t;return e.getSinglePolicyEntity({mesh:n,path:o,name:a},{format:"kubernetes"})}}),poe=()=>({items:()=>[{path:"policies",name:"policy-list-index-view",meta:{module:"policies"},redirect:t=>({...t,params:{...t.params,policyPath:"circuit-breakers"},name:"policy-list-view"}),children:[{path:":policyPath",name:"policy-list-view",component:()=>Ve(()=>import("./PolicyListView-e9778f32.js"),["./AppCollection-6359d3b1.css","./CopyButton-2be0e14d.css","./TextWithCopyButton-f7225b54.css","./ErrorBlock-bcc21522.css","./PolicyTypeTag-f5c09fb0.css","./SummaryView-969145bb.css","./PolicyListView-1ee6cd98.css"],import.meta.url),children:[{path:":policy",name:"policy-summary-view",component:()=>Ve(()=>import("./PolicySummaryView-d39875de.js"),["./CodeBlock-aa591f34.css","./CopyButton-2be0e14d.css","./ResourceCodeBlock-dd906c25.css","./PolicySummaryView-50f3ee30.css"],import.meta.url)}]}]}],item:()=>[{path:"policies/:policyPath/:policy/overview",name:"policy-detail-view",component:()=>Ve(()=>import("./PolicyDetailView-ecb519ac.js"),["./CopyButton-2be0e14d.css","./TextWithCopyButton-f7225b54.css","./ErrorBlock-bcc21522.css","./CodeBlock-aa591f34.css","./ResourceCodeBlock-dd906c25.css"],import.meta.url)}]}),hoe=e=>[[Ue("policies.sources"),{service:foe,arguments:[e.api],labels:[e.sources]}]],voe=e=>({"/meshes/:mesh/service-insights":async(t,r)=>{r.close();const{mesh:n,size:o}=t,a=t.size*(t.page-1);return w7.fromCollection(await e.getAllServiceInsightsFromMesh({mesh:n},{size:o,offset:a}))},"/meshes/:mesh/service-insights/:name":async(t,r)=>{r.close();const{mesh:n,name:o}=t;return w7.fromObject(await e.getServiceInsight({mesh:n,name:o}))},"/meshes/:mesh/external-services/for/:service":async(t,r)=>{r.close();const{mesh:n,service:o}=t,{items:a}=await e.getAllExternalServicesFromMesh({mesh:n},{tag:[`kuma.io/service:${o}`]});return a.length>0?roe.fromObject(a[0]):null},"/meshes/:mesh/external-service/:name/as/kubernetes":async t=>{const{mesh:r,name:n}=t;return e.getExternalService({mesh:r,name:n},{format:"kubernetes"})}}),moe=()=>({items:()=>[{path:"services",name:"service-list-view",meta:{module:"services"},component:()=>Ve(()=>import("./ServiceListView-3095ed55.js"),["./AppCollection-6359d3b1.css","./CopyButton-2be0e14d.css","./TextWithCopyButton-f7225b54.css","./ErrorBlock-bcc21522.css","./StatusBadge-8194fcb8.css","./SummaryView-969145bb.css","./ServiceListView-88682616.css"],import.meta.url)}],item:()=>[{path:"services/:service",name:"service-detail-tabs-view",component:()=>Ve(()=>import("./ServiceDetailTabsView-65997048.js"),["./CopyButton-2be0e14d.css","./TextWithCopyButton-f7225b54.css","./ErrorBlock-bcc21522.css","./NavTabs-3b34e815.css"],import.meta.url),children:[{path:"overview",name:"service-detail-view",component:()=>Ve(()=>import("./ServiceDetailView-1fa0bfad.js"),["./CopyButton-2be0e14d.css","./TextWithCopyButton-f7225b54.css","./ErrorBlock-bcc21522.css","./TagList-e2c71478.css","./StatusBadge-8194fcb8.css"],import.meta.url)},{path:"config",name:"service-config-view",component:()=>Ve(()=>import("./ServiceConfigView-4a049b5a.js"),["./CopyButton-2be0e14d.css","./TextWithCopyButton-f7225b54.css","./ErrorBlock-bcc21522.css","./CodeBlock-aa591f34.css","./ResourceCodeBlock-dd906c25.css"],import.meta.url)},{path:"data-plane-proxies",name:"service-data-plane-proxies-view",meta:{module:"service-data-planes"},component:()=>Ve(()=>import("./ServiceDataPlaneProxiesView-acbe5ebe.js"),["./CopyButton-2be0e14d.css","./TextWithCopyButton-f7225b54.css","./ErrorBlock-bcc21522.css","./AppCollection-6359d3b1.css","./StatusBadge-8194fcb8.css","./FilterBar-c6fa64d4.css","./SummaryView-969145bb.css","./ServiceDataPlaneProxiesView-67a900b3.css"],import.meta.url),children:[{path:":dataPlane",name:"service-data-plane-summary-view",component:()=>Ve(()=>import("./DataPlaneSummaryView-fa41cae2.js"),["./StatusBadge-8194fcb8.css","./TagList-e2c71478.css","./CopyButton-2be0e14d.css","./TextWithCopyButton-f7225b54.css","./DataPlaneSummaryView-67703463.css"],import.meta.url)}]}]}]}),goe=e=>[[Ue("service.sources"),{service:voe,arguments:[e.api],labels:[e.sources]}]],To={dataplaneRoutes:Ue("kuma.dataplane.routes"),serviceRoutes:Ue("kuma.service.routes"),policyRoutes:Ue("kuma.policy.routes")},Coe=e=>[[Ue("meshes.routes"),{service:Zne,arguments:[To.serviceRoutes,To.dataplaneRoutes,To.policyRoutes],labels:[e.routes]}],[To.dataplaneRoutes,{service:coe}],[To.serviceRoutes,{service:moe}],[To.policyRoutes,{service:poe}],[Ue("meshes.sources"),{service:aoe,arguments:[e.api],labels:[e.sources]}],...goe(e),...doe(e),...hoe(e)],yoe=e=>({"use zones":()=>e("KUMA_MODE")==="global","create zones":t=>t("use zones")&&e("KUMA_ZONE_CREATION_FLOW")==="enabled"}),Ls=(e="egresses")=>({items:()=>[{path:`${e}`,name:"zone-egress-list-view",meta:{module:"zone-egresses"},component:()=>Ve(()=>import("./ZoneEgressListView-17f0acb9.js"),["./AppCollection-6359d3b1.css","./CopyButton-2be0e14d.css","./TextWithCopyButton-f7225b54.css","./ErrorBlock-bcc21522.css","./StatusBadge-8194fcb8.css","./SummaryView-969145bb.css","./ZoneEgressListView-be180964.css"],import.meta.url),children:[{path:":zoneEgress",name:"zone-egress-summary-view",component:()=>Ve(()=>import("./ZoneEgressSummaryView-1fa54aad.js"),["./StatusBadge-8194fcb8.css","./CopyButton-2be0e14d.css","./TextWithCopyButton-f7225b54.css","./ZoneEgressSummaryView-95797250.css"],import.meta.url)}]}],item:()=>[{path:`${e}/:zoneEgress`,name:"zone-egress-detail-tabs-view",component:()=>Ve(()=>import("./ZoneEgressDetailTabsView-136d2364.js"),["./CopyButton-2be0e14d.css","./TextWithCopyButton-f7225b54.css","./ErrorBlock-bcc21522.css","./NavTabs-3b34e815.css"],import.meta.url),redirect:{name:"zone-egress-detail-view"},children:[{path:"overview",name:"zone-egress-detail-view",component:()=>Ve(()=>import("./ZoneEgressDetailView-53dd3641.js"),["./StatusBadge-8194fcb8.css","./CopyButton-2be0e14d.css","./TextWithCopyButton-f7225b54.css","./AccordionList-8bab9627.css","./SubscriptionList-408b08ab.css"],import.meta.url)},{path:"xds-config",name:"zone-egress-xds-config-view",component:()=>Ve(()=>import("./ZoneEgressXdsConfigView-b17e128c.js"),["./CodeBlock-aa591f34.css","./CopyButton-2be0e14d.css","./TextWithCopyButton-f7225b54.css","./ErrorBlock-bcc21522.css","./EnvoyData-6b62105a.css"],import.meta.url)},{path:"stats",name:"zone-egress-stats-view",component:()=>Ve(()=>import("./ZoneEgressStatsView-ab144f59.js"),["./CodeBlock-aa591f34.css","./CopyButton-2be0e14d.css","./TextWithCopyButton-f7225b54.css","./ErrorBlock-bcc21522.css","./EnvoyData-6b62105a.css"],import.meta.url)},{path:"clusters",name:"zone-egress-clusters-view",component:()=>Ve(()=>import("./ZoneEgressClustersView-70255ef6.js"),["./CodeBlock-aa591f34.css","./CopyButton-2be0e14d.css","./TextWithCopyButton-f7225b54.css","./ErrorBlock-bcc21522.css","./EnvoyData-6b62105a.css"],import.meta.url)},{path:"config",name:"zone-egress-config-view",component:()=>Ve(()=>import("./ZoneEgressConfigView-c41dbaca.js"),["./CopyButton-2be0e14d.css","./TextWithCopyButton-f7225b54.css","./ErrorBlock-bcc21522.css","./CodeBlock-aa591f34.css","./ResourceCodeBlock-dd906c25.css"],import.meta.url)}]}]}),N8=(e="ingresses")=>({items:()=>[{path:`${e}`,name:"zone-ingress-list-view",meta:{module:"zone-ingresses"},component:()=>Ve(()=>import("./ZoneIngressListView-6fd869fe.js"),["./AppCollection-6359d3b1.css","./CopyButton-2be0e14d.css","./TextWithCopyButton-f7225b54.css","./ErrorBlock-bcc21522.css","./StatusBadge-8194fcb8.css","./SummaryView-969145bb.css","./ZoneIngressListView-b6d243fe.css"],import.meta.url),children:[{path:":zoneIngress",name:"zone-ingress-summary-view",component:()=>Ve(()=>import("./ZoneIngressSummaryView-714aa7d1.js"),["./StatusBadge-8194fcb8.css","./CopyButton-2be0e14d.css","./TextWithCopyButton-f7225b54.css","./ZoneIngressSummaryView-48249baa.css"],import.meta.url)}]}],item:()=>[{path:`${e}/:zoneIngress`,name:"zone-ingress-detail-tabs-view",component:()=>Ve(()=>import("./ZoneIngressDetailTabsView-9648e888.js"),["./CopyButton-2be0e14d.css","./TextWithCopyButton-f7225b54.css","./ErrorBlock-bcc21522.css","./NavTabs-3b34e815.css"],import.meta.url),redirect:{name:"zone-ingress-detail-view"},children:[{path:"overview",name:"zone-ingress-detail-view",component:()=>Ve(()=>import("./ZoneIngressDetailView-2ded9a8b.js"),["./StatusBadge-8194fcb8.css","./CopyButton-2be0e14d.css","./TextWithCopyButton-f7225b54.css","./AccordionList-8bab9627.css","./SubscriptionList-408b08ab.css"],import.meta.url)},{path:"services",name:"zone-ingress-services-view",component:()=>Ve(()=>import("./ZoneIngressServicesView-7023bc83.js"),["./AppCollection-6359d3b1.css"],import.meta.url)},{path:"xds-config",name:"zone-ingress-xds-config-view",component:()=>Ve(()=>import("./ZoneIngressXdsConfigView-930d3258.js"),["./CodeBlock-aa591f34.css","./CopyButton-2be0e14d.css","./TextWithCopyButton-f7225b54.css","./ErrorBlock-bcc21522.css","./EnvoyData-6b62105a.css"],import.meta.url)},{path:"stats",name:"zone-ingress-stats-view",component:()=>Ve(()=>import("./ZoneIngressStatsView-e3701af2.js"),["./CodeBlock-aa591f34.css","./CopyButton-2be0e14d.css","./TextWithCopyButton-f7225b54.css","./ErrorBlock-bcc21522.css","./EnvoyData-6b62105a.css"],import.meta.url)},{path:"clusters",name:"zone-ingress-clusters-view",component:()=>Ve(()=>import("./ZoneIngressClustersView-42b407ef.js"),["./CodeBlock-aa591f34.css","./CopyButton-2be0e14d.css","./TextWithCopyButton-f7225b54.css","./ErrorBlock-bcc21522.css","./EnvoyData-6b62105a.css"],import.meta.url)},{path:"config",name:"zone-ingress-config-view",component:()=>Ve(()=>import("./ZoneIngressConfigView-477c2c32.js"),["./CopyButton-2be0e14d.css","./TextWithCopyButton-f7225b54.css","./ErrorBlock-bcc21522.css","./CodeBlock-aa591f34.css","./ResourceCodeBlock-dd906c25.css"],import.meta.url)}]}]}),boe=()=>[{path:"/zones/-create",name:"zone-create-view",meta:{isWizard:!0},component:()=>Ve(()=>import("./ZoneCreateView-65788609.js"),["./CodeBlock-aa591f34.css","./ZoneCreateView-ee734ba7.css"],import.meta.url)}],woe=(e,t)=>{const r="/zones";return[...e,...t("use zones")?[{path:`${r}`,name:"zone-index-view",redirect:{name:"zone-cp-list-view"},children:[{path:"",name:"zone-cp-list-view",meta:{module:"zone-cps"},component:()=>Ve(()=>import("./ZoneListView-e4a49ebe.js"),["./AppCollection-6359d3b1.css","./CopyButton-2be0e14d.css","./TextWithCopyButton-f7225b54.css","./ErrorBlock-bcc21522.css","./StatusBadge-8194fcb8.css","./SummaryView-969145bb.css","./ZoneListView-890bbc0d.css"],import.meta.url)},{path:":zone",name:"zone-cp-detail-abstract-view",children:[{path:"",name:"zone-cp-detail-tabs-view",component:()=>Ve(()=>import("./ZoneDetailTabsView-5397b023.js"),["./CopyButton-2be0e14d.css","./TextWithCopyButton-f7225b54.css","./ErrorBlock-bcc21522.css","./NavTabs-3b34e815.css"],import.meta.url),redirect:{name:"zone-cp-detail-view"},children:[{path:"overview",name:"zone-cp-detail-view",component:()=>Ve(()=>import("./ZoneDetailView-e0913944.js"),["./StatusBadge-8194fcb8.css","./AccordionList-8bab9627.css","./SubscriptionList-408b08ab.css"],import.meta.url)},{path:"config",name:"zone-cp-config-view",component:()=>Ve(()=>import("./ZoneConfigView-aa3dac38.js"),["./CodeBlock-aa591f34.css"],import.meta.url)},...N8().items(),...Ls().items()]},...N8().item(),...Ls().item()]}]}]:[{path:`${r}`,redirect:{name:"zone-egress-list-view"},children:[...Ls().items(),...Ls().item()]}]]},_oe={fromObject:e=>({...e,enabled:e.enabled!==!1})},koe={fromArray:e=>{const t=uh.fromArray(e),r=(()=>{const n=t.subscriptions.find(a=>typeof a.config<"u"),o=Moe(n==null?void 0:n.config)?n.config:"{}";try{return JSON.parse(o)}catch(a){console.error(a)}return{}})();return{...t,config:r}}},xoe={fromObject:e=>{const t=koe.fromArray(e==null?void 0:e.subscriptions);return{...e,...t,authenticationType:Fi(t.config,"dpServer.auth.type",""),environment:String(t.config.environment??""),store:Fi(t.config,"store.type","")}}},Qs={fromObject:e=>{const t=xoe.fromObject(e.zoneInsight),r=_oe.fromObject(e.zone);return{...e,zoneInsight:t,zone:r,state:r.enabled?typeof(t==null?void 0:t.connectedSubscription)<"u"?"online":"offline":"disabled"}},fromCollection:e=>({...e,items:Array.isArray(e.items)?e.items.map(Qs.fromObject):[]})};function Moe(e){return e!==null&&typeof e<"u"}const Soe={fromObject:e=>{var t,r;return{...e,socketAddress:(t=e.networking)!=null&&t.address&&((r=e.networking)!=null&&r.port)?`${e.networking.address}:${e.networking.port}`:""}}},Eoe={fromObject:e=>{var t,r;return{...e,config:e,socketAddress:(t=e.networking)!=null&&t.address&&((r=e.networking)!=null&&r.port)?`${e.networking.address}:${e.networking.port}`:""}}},Loe={fromObject:e=>Aoe(e)?(t=>{const r=Array.isArray(t.subscriptions)?t.subscriptions:[],n=r.slice(-1).find(o=>{var a;return((a=o.connectTime)==null?void 0:a.length)&&!o.disconnectTime});return{...t,subscriptions:r,connectedSubscription:n}})(e):void 0},Xs={fromObject:e=>{const t=Loe.fromObject(e.zoneEgressInsight),r=Soe.fromObject(e.zoneEgress);return{...e,zoneEgressInsight:t,zoneEgress:r,state:typeof(t==null?void 0:t.connectedSubscription)<"u"?"online":"offline"}},fromCollection:e=>({...e,items:Array.isArray(e.items)?e.items.map(Xs.fromObject):[]})};function Aoe(e){return e!==null&&typeof e<"u"}const Hoe=e=>({"/zone-cps/:name/egresses":async(t,r)=>{r.close();const{name:n,size:o,page:a}=t,i=o*(a-1),s=await e.getAllZoneEgressOverviews({size:o,offset:i});return n!=="*"&&(s.items=s.items.filter(l=>l.zoneEgress.zone===n),s.total=s.items.length),Xs.fromCollection(s)},"/zone-egresses/:name":async(t,r)=>{r.close();const{name:n}=t;return Eoe.fromObject(await e.getZoneEgress({name:n}))},"/zone-egresses/:name/as/kubernetes":async(t,r)=>{r.close();const{name:n}=t;return await e.getZoneEgress({name:n},{format:"kubernetes"})},"/zone-egresses/:name/data-path/:dataPath":(t,r)=>{r.close();const{name:n,dataPath:o}=t;return e.getZoneEgressData({zoneEgressName:n,dataPath:o})},"/zone-egress-overviews":async(t,r)=>{r.close();const{size:n}=t,o=t.size*(t.page-1);return Xs.fromCollection(await e.getAllZoneEgressOverviews({size:n,offset:o}))},"/zone-egress-overviews/:name":async(t,r)=>{r.close();const{name:n}=t;return Xs.fromObject(await e.getZoneEgressOverview({name:n}))}}),Boe={fromObject:e=>{var t,r,n,o;return{...e,availableServices:Array.isArray(e.availableServices)?e.availableServices:[],socketAddress:(t=e.networking)!=null&&t.address&&((r=e.networking)!=null&&r.port)?`${e.networking.address}:${e.networking.port}`:"",advertisedSocketAddress:(n=e.networking)!=null&&n.advertisedAddress&&((o=e.networking)!=null&&o.advertisedPort)?`${e.networking.advertisedAddress}:${e.networking.advertisedPort}`:""}}},Toe={fromObject:e=>{var t,r,n,o;return{...e,config:e,availableServices:Array.isArray(e.availableServices)?e.availableServices:[],socketAddress:(t=e.networking)!=null&&t.address&&((r=e.networking)!=null&&r.port)?`${e.networking.address}:${e.networking.port}`:"",advertisedSocketAddress:(n=e.networking)!=null&&n.advertisedAddress&&((o=e.networking)!=null&&o.advertisedPort)?`${e.networking.advertisedAddress}:${e.networking.advertisedPort}`:""}}},Doe={fromObject:e=>Ooe(e)?(t=>{const r=Array.isArray(t.subscriptions)?t.subscriptions:[],n=r.slice(-1).find(o=>{var a;return((a=o.connectTime)==null?void 0:a.length)&&!o.disconnectTime});return{...t,subscriptions:r,connectedSubscription:n}})(e):void 0},Js={fromObject:e=>{const t=Doe.fromObject(e.zoneIngressInsight),r=Boe.fromObject(e.zoneIngress);return{...e,zoneIngressInsight:t,zoneIngress:r,state:typeof(t==null?void 0:t.connectedSubscription)<"u"?"online":"offline"}},fromCollection:e=>({...e,items:Array.isArray(e.items)?e.items.map(Js.fromObject):[]})};function Ooe(e){return e!==null&&typeof e<"u"}const Voe=e=>({"/zone-cps/:name/ingresses":async t=>{const{name:r,size:n,page:o}=t,a=n*(o-1),i=await e.getAllZoneIngressOverviews({size:n,offset:a});return i.items=i.items.filter(s=>s.zoneIngress.zone===r),Js.fromCollection(i)},"/zone-ingresses/:name":async t=>{const{name:r}=t;return Toe.fromObject(await e.getZoneIngress({name:r}))},"/zone-ingresses/:name/data-path/:dataPath":t=>{const{name:r,dataPath:n}=t;return e.getZoneIngressData({zoneIngressName:r,dataPath:n})},"/zone-ingresses/:name/as/kubernetes":async t=>{const{name:r}=t;return await e.getZoneIngress({name:r},{format:"kubernetes"})},"/zone-ingress-overviews":async t=>{const{size:r}=t,n=t.size*(t.page-1);return Js.fromCollection(await e.getAllZoneIngressOverviews({size:r,offset:n}))},"/zone-ingress-overviews/:name":async t=>{const{name:r}=t;return Js.fromObject(await e.getZoneIngressOverview({name:r}))}}),Ioe=(e,t)=>({...Voe(t),...Hoe(t),"/zone-cps":async r=>{const{size:n}=r,o=n*(r.page-1);return Qs.fromCollection(await t.getAllZoneOverviews({size:n,offset:o}))},"/zone-cps/:name":async r=>{const{name:n}=r;return Qs.fromObject(await t.getZoneOverview({name:n}))},"/zone-cps/online/:name":r=>{const n=class extends Error{},{name:o}=r;return e(async()=>{const a=Qs.fromObject(await t.getZoneOverview({name:o}));if(a.state==="online")return a;throw new n},{retry:a=>{if(a instanceof n)return new Promise(i=>setTimeout(i,2e3))}})}}),Poe=e=>[[Ue("zones.routes"),{service:t=>woe(t("create zones")?boe():[],t),arguments:[e.can],labels:[e.routes]}],[Ue("zone.sources"),{service:Ioe,arguments:[e.source,e.api],labels:[e.sources]}],[Ue("zone.features"),{service:yoe,arguments:[e.env],labels:[e.features]}]],Noe={common:{not_applicable:"N/A",formats:{integer:"{value, number, integer}",bytes:"{value, number, integer}"},product:{name:"Kuma",href:{docs:{index:"{KUMA_DOCS_URL}/"},feedback:"https://github.com/kumahq/kuma/issues/new/choose",install:"https://kuma.io/install/latest/?{KUMA_UTM_QUERY_PARAMS}"},environment:{universal:"Universal",kubernetes:"Kubernetes",unknown:"—"},mode:{standalone:"Standalone",global:"Multi-Zone",zone:"Zone"}},warnings:{CERT_EXPIRED:`'<'p>The certificate for this dataplane has expired'<'/p> `,ZONE_STORE_TYPE_MEMORY:`'<'p>This zone is using the '<'code>memory'<'/code> store type. '<'strong>Don't'<'/strong> use this store in production because the state isn't persisted. '<'a target="_blank" href="{KUMA_DOCS_URL}/documentation/configuration/#store">Read more about store types'<'/a>'<'/p> `,GLOBAL_STORE_TYPE_MEMORY:`'<'p>This control plane is using the '<'code>memory'<'/code> store type. '<'strong>Don't'<'/strong> use this store in production because the state isn't persisted. '<'a target="_blank" href="{KUMA_DOCS_URL}/documentation/configuration/#store">Read more about store types'<'/a>'<'/p> `,INCOMPATIBLE_UNSUPPORTED_ENVOY:`'<'p>Envoy ('<'strong>{ envoy }'<'/strong>) is unsupported by the current version of Kuma DP ('<'strong>{ kumaDp }'<'/strong>)'<'/p> @@ -572,7 +572,7 @@ For more details see https://formatjs.io/docs/getting-started/message-distributi `,INCOMPATIBLE_ZONE_AND_GLOBAL_CPS_VERSIONS:`'<'p>There is mismatch between versions of Zone Control Plane ('<'strong>{ zoneCpVersion }'<'/strong>) and the Global Control Plane ('<'strong>{ KUMA_VERSION }'<'/strong>)'<'/p> `},copyText:"Copy",copySuccessText:"Copied!",copyKubernetesText:"Copy as Kubernetes",copyKubernetesShortText:"as k8s",documentation:"Documentation",error_state:{api_error:"Error {status}: {title}",default_error:"An unexpected error occurred",title:"An error has occurred while trying to load this data.",details:"Details",field:"Field"},delete_modal:{proceed_button:"Yes, delete",text1:"Are you sure you want to delete the {type} {name}?",text2:"This action cannot be reversed.",title:"Delete {type}"},emptyState:{title:"No data",message:"There are no {type} present",icon:"stateNoData"},collection:{none:"",details_link:"Go to details",summary:{empty_title:"Couldn’t find the selected {type}",empty_message:"The selected {type} either doesn’t exist or isn’t on the current page."},actions:{delete:"Delete",edit:"Edit",view:"View details"}},detail:{subscriptions:{no_stats:"There are no statistics for subscription “{id}”",connect_time:"Connected",disconnect_time:"Disconnected",type:"Type",responses_sent_acknowledged:"Responses sent/ack’ed"},none:"—",created:"Created",modified:"Modified"}}},Zoe={components:{"route-view":{title:"{name} Manager","route-announcer":"Navigated to {title}"},"status-badge":{tooltip:{not_available:`The online or offline status of this entity is unknown `}}}},$oe={http:{api:{property:{tls:"TLS",mtls:"mTLS",mTLS:"mTLS",globalInstanceId:"Global instance ID",controlPlaneInstanceId:"CP instance ID",connectTime:"Connected",disconnectTime:"Disconnected",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",authenticationType:"Authentication type"},value:{online:"online",offline:"offline",partiallyDegraded:"partially degraded",partially_degraded:"partially degraded",notAvailable:"information not available",not_available:"information not available",disabled:"disabled",grpc:"gRPC",http2:"HTTP2",http:"HTTP",tcp:"TCP"}}}},Roe={"main-overview":{routes:{item:{title:"Overview"}},detail:{onboarding:{message:`'<'p>'<'strong>Welcome to {name}!'<'/strong> We've detected that you don't have any data plane proxies running yet. We've created an onboarding process to help you!'<'/p> -`,get_started_link:"Get started"},health:{title:"Global Control Plane health",view_all:"(view all)",zone_control_planes:"Zones",meshes:"Meshes",services:"Services",data_plane_proxies:"Data Plane Proxies"},zone_control_planes:{title:"Zones"},meshes:{title:"Meshes"}}}},zoe={"data-planes":{components:{service_traffic_card:{"1xx":"1xx","2xx":"2xx","3xx":"3xx","4xx":"4xx","5xx":"5xx",tx:"Bytes sent",rx:"Bytes received",protocol:{passthrough:"Passthrough"}},"data-plane-list":{version_mismatch:"Version mismatch",cert_expired:"Certificate expired",certificate:{none:"No certificate"}}},routes:{item:{title:"{name}",breadcrumbs:"Data Plane Proxies",navigation:{"data-plane-detail-view":"Overview","data-plane-policies-view":"Policies","data-plane-xds-config-view":"XDS Configuration","data-plane-stats-view":"Stats","data-plane-clusters-view":"Clusters","data-plane-config-view":"YAML","data-plane-inbound-summary-overview-view":"Overview","data-plane-outbound-summary-overview-view":"Overview"},gateway:"Gateway",inbounds:"Inbounds",inbound_name:"{service}",port:":{port}",last_updated:"Last updated",certificate_info:"Certificate info",no_certificate:"No certificate",health:{ready:"healthy",not_ready:"unhealthy"},unhealthy_inbound:"Inbound on port {port} is not ready (kuma.io/service: {service})",mtls:{title:"TLS",expiration_time:{title:"Certificate expiration time"},generation_time:{title:"Certificate generation time"},regenerations:{title:"Generation"},issued_backend:{title:"Certificate issued by"},supported_backends:{title:"Supported CAs"},disabled:`'<'p>This Data Plane Proxy does not have mTLS configured, yet — '<'a href="{KUMA_DOCS_URL}/policies/mutual-tls?{KUMA_UTM_QUERY_PARAMS}">Learn about certificates in {KUMA_PRODUCT_NAME}'<'/a>'<'/p> +`,get_started_link:"Get started"},health:{title:"Global Control Plane health",view_all:"(view all)",zone_control_planes:"Zones",meshes:"Meshes",services:"Services",data_plane_proxies:"Data Plane Proxies"},zone_control_planes:{title:"Zones"},meshes:{title:"Meshes"}}}},zoe={"data-planes":{components:{service_traffic_card:{"1xx":"1xx","2xx":"2xx","3xx":"3xx","4xx":"4xx","5xx":"5xx",tx:"Bytes sent",rx:"Bytes received",grpc_success:"Successful",grpc_failure:"Failed",protocol:{passthrough:"Passthrough"}},"data-plane-list":{version_mismatch:"Version mismatch",cert_expired:"Certificate expired",certificate:{none:"No certificate"}}},routes:{item:{title:"{name}",breadcrumbs:"Data Plane Proxies",navigation:{"data-plane-detail-view":"Overview","data-plane-policies-view":"Policies","data-plane-xds-config-view":"XDS Configuration","data-plane-stats-view":"Stats","data-plane-clusters-view":"Clusters","data-plane-config-view":"YAML","data-plane-inbound-summary-overview-view":"Overview","data-plane-outbound-summary-overview-view":"Overview"},gateway:"Gateway",inbounds:"Inbounds",inbound_name:"{service}",port:":{port}",last_updated:"Last updated",certificate_info:"Certificate info",no_certificate:"No certificate",health:{ready:"healthy",not_ready:"unhealthy"},unhealthy_inbound:"Inbound on port {port} is not ready (kuma.io/service: {service})",mtls:{title:"TLS",expiration_time:{title:"Certificate expiration time"},generation_time:{title:"Certificate generation time"},regenerations:{title:"Generation"},issued_backend:{title:"Certificate issued by"},supported_backends:{title:"Supported CAs"},disabled:`'<'p>This Data Plane Proxy does not have mTLS configured, yet — '<'a href="{KUMA_DOCS_URL}/policies/mutual-tls?{KUMA_UTM_QUERY_PARAMS}">Learn about certificates in {KUMA_PRODUCT_NAME}'<'/a>'<'/p> `},subscriptions:{title:"XDS Configurations"},proxy_rule:"Proxy rule",to_rules:"To rules",from_rules:"From rules",legacy_policies:"Legacy policies",matches_everything:"Matches everything"},items:{title:"Data Plane Proxies"}},href:{docs:{data_plane_proxy:"{KUMA_DOCS_URL}/production/dp-config/dpp?{KUMA_UTM_QUERY_PARAMS}",gateway:"{KUMA_DOCS_URL}/explore/gateway?{KUMA_UTM_QUERY_PARAMS}"}},type:{all:"All",standard:"Standard proxy",builtin:"Built-in gateway",delegated:"Delegated gateway"}}},Foe={diagnostics:{routes:{item:{title:"Diagnostics",breadcrumbs:"Diagnostics"}}}},Uoe={meshes:{common:{name:"Name",type:`{ count, plural, =0 { Meshes } =1 { Mesh } @@ -621,4 +621,4 @@ egress: enabled: {zoneEgressEnabled} experimental: deltaKds: true -`,connectDescription:"Next, run the following command to connect the Zone.",connectCommand:"helm upgrade --install -n kuma-system -f values.yaml kuma kuma/kuma"}}},create:{generalError:{title:"Could not create the Zone"},invalidNameError:"The name must be a valid RFC 1035 DNS name, which means it must start with a letter, be less than 64 characters long, and only contain lowercase letters, numbers, and '-'.",status_error:{409:{title:"Error 409: A Zone with the name {name} already exists",description:"If you want to connect a Zone with this name, you can delete the existing one and create a new one."},500:{title:"Error 500: An error occurred while creating the Zone {name}",description:"You may retry this operation."}}}}},Qoe={...Noe,...$oe,...Zoe,...Roe,...joe,...Foe,...Uoe,...Goe,...Yoe,...zoe,...Woe,...qoe,...Koe};class Xoe{constructor(t,r){this.client=t,this.env=r}get baseUrl(){return this.client.baseUrl}}class Joe extends Xoe{async getLatestVersion(){return this.client.get(this.env("KUMA_VERSION_URL"))}getConfig(){return this.client.get("/config")}getPolicyTypes(){return this.client.get("/policies")}getGlobalInsight(){return this.client.get("/global-insight")}getZones(t){return this.client.get("/zones",{params:t})}getZone({name:t},r){return this.client.get(`/zones/${t}`,{params:r})}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/_overview",{params:t})}getZoneOverview({name:t},r){return this.client.get(`/zones/${t}/_overview`,{params:r})}getZoneIngress({name:t},r){return this.client.get(`/zone-ingresses/${t}`,{params:r})}getZoneIngressData({zoneIngressName:t,dataPath:r},n){return this.client.get(`/zoneingresses/${t}/${r}`,{params:n})}getAllZoneIngressOverviews(t){return this.client.get("/zone-ingresses/_overview",{params:t})}getZoneIngressOverview({name:t},r){return this.client.get(`/zone-ingresses/${t}/_overview`,{params:r})}getZoneEgress({name:t},r){return this.client.get(`/zoneegresses/${t}`,{params:r})}getZoneEgressData({zoneEgressName:t,dataPath:r},n){return this.client.get(`/zoneegresses/${t}/${r}`,{params:n})}getAllZoneEgressOverviews(t){return this.client.get("/zoneegresses/_overview",{params:t})}getZoneEgressOverview({name:t},r){return this.client.get(`/zoneegresses/${t}/_overview`,{params:r})}getAllMeshes(t){return this.client.get("/meshes",{params:t})}getMesh({name:t},r){return this.client.get(`/meshes/${t}`,{params:r})}getAllMeshInsights(t){return this.client.get("/mesh-insights",{params:t})}getMeshInsights({name:t},r){return this.client.get(`/mesh-insights/${t}`,{params:r})}getAllDataplanes(t){return this.client.get("/dataplanes",{params:t})}getDataplaneFromMesh({mesh:t,name:r},n){return this.client.get(`/meshes/${t}/dataplanes/${r}`,{params:n})}getAllDataplaneOverviews(t){return this.client.get("/dataplanes/_overview",{params:t})}getAllDataplaneOverviewsFromMesh({mesh:t},r){return this.client.get(`/meshes/${t}/dataplanes/_overview`,{params:r})}getDataplaneOverviewFromMesh({mesh:t,name:r},n){return this.client.get(`/meshes/${t}/dataplanes/${r}/_overview`,{params:n})}getSidecarDataplanePolicies({mesh:t,name:r},n){return this.client.get(`/meshes/${t}/dataplanes/${r}/policies`,{params:n})}getMeshGatewayDataplane({mesh:t,name:r},n){return this.client.get(`/meshes/${t}/dataplanes/${r}/policies`,{params:n})}getDataplaneRules({mesh:t,name:r},n){return this.client.get(`/meshes/${t}/dataplanes/${r}/_rules`,{params:n})}getDataplaneData({mesh:t,dppName:r,dataPath:n},o){return this.client.get(`/meshes/${t}/dataplanes/${r}/${n}`,{params:o})}getAllServiceInsights(t){return this.client.get("/service-insights",{params:t})}getAllServiceInsightsFromMesh({mesh:t},r){return this.client.get(`/meshes/${t}/service-insights`,{params:r})}getServiceInsight({mesh:t,name:r},n){return this.client.get(`/meshes/${t}/service-insights/${r}`,{params:n})}getAllExternalServices(t){return this.client.get("/external-services",{params:t})}getAllExternalServicesFromMesh({mesh:t},r){return this.client.get(`/meshes/${t}/external-services`,{params:r})}getExternalService({mesh:t,name:r},n){return this.client.get(`/meshes/${t}/external-services/${r}`,{params:n})}getPolicyConnections({mesh:t,path:r,name:n},o){return this.client.get(`/meshes/${t}/${r}/${n}/_resources/dataplanes`,{params:o})}getAllPolicyEntitiesFromMesh({mesh:t,path:r},n){return this.client.get(`/meshes/${t}/${r}`,{params:n})}getSinglePolicyEntity({mesh:t,path:r,name:n},o){return this.client.get(`/meshes/${t}/${r}/${n}`,{params:o})}}class eae extends Error{constructor({status:r,type:n=null,title:o,detail:a=null,instance:i=null,invalidParameters:s=[]}){super(o);mt(this,"status");mt(this,"type");mt(this,"title");mt(this,"detail");mt(this,"instance");mt(this,"invalidParameters");this.name="ApiError",this.status=r,this.type=n,this.title=o,this.detail=a,this.instance=i,this.invalidParameters=s}toJSON(){return{status:this.status,type:this.type,title:this.title,detail:this.detail,instance:this.instance,invalidParameters:this.invalidParameters}}}async function tae(e,t={},r){var c;const n=t,o=n.method??"GET";n.headers=n.headers instanceof Headers?n.headers:new Headers(n.headers),!n.headers.has("content-type")&&["POST","PUT","PATCH"].includes(o)&&n.headers.set("content-type","application/json");let a=e;"params"in t&&t.params!==void 0&&o==="GET"&&(a+=`?${new URLSearchParams(t.params).toString()}`),r!==void 0&&((c=n.headers.get("content-type"))!=null&&c.startsWith("application/json")?n.body=JSON.stringify(r):n.body=r);let i;try{i=await fetch(a,n)}catch(d){throw rae(d)}const s=i.headers.get("content-type"),u=(s!==null?s.startsWith("application/json")||s.startsWith("application/problem+json"):!1)?await i.json():await i.text();if(i.ok)return{response:i,data:u};throw nae(i,u)}function rae(e){const t=e instanceof Error?e.message:"An unknown network error occurred.";return new Error(t)}function nae(e,t){const r=e.status;let n,o,a,i,s;return typeof t=="string"&&t.length>0?o=t:t!==null&&typeof t=="object"&&("type"in t&&typeof t.type=="string"&&(n=t.type),"title"in t&&typeof t.title=="string"&&(o=t.title),"detail"in t&&typeof t.detail=="string"&&(a=t.detail),"instance"in t&&typeof t.instance=="string"&&(i=t.instance),"invalid_parameters"in t&&Array.isArray(t.invalid_parameters)&&(s=t.invalid_parameters)),r===403&&(o="You currently don’t have access to this data."),o===void 0&&(o="An error has occurred while trying to load this data."),i&&(o+=` (trace: ${i})`),new eae({status:r,type:n,title:o,detail:a,instance:i,invalidParameters:s})}class oae{constructor(t){this.env=t}get baseUrl(){return this.env("KUMA_API_URL")}async get(t,r){const{data:n}=await this.raw(t,void 0,r,"GET");return n}async delete(t,r){await this.raw(t,void 0,r,"DELETE")}async post(t,r,n){const{data:o}=await this.raw(t,r,n,"POST");return o}async put(t,r,n){const{data:o}=await this.raw(t,r,n,"PUT");return o}async patch(t,r,n){const{data:o}=await this.raw(t,r,n,"PATCH");return o}async raw(t,r,n={},o="GET"){const a=Z8(n);a.method=o;const i=new Headers;if("headers"in a){const l=a.headers instanceof Headers?a.headers:new Headers(a.headers);for(const[u,c]of l)i.set(u,c)}Object.keys(i).length>0&&(a.headers=i);const s=Z8(a);return tae(`${t.startsWith("http")?"":this.baseUrl}${t}`,s,r)}}function Z8(e){const t=e??{};if(t.params&&!Array.isArray(t.params)){const r=[];for(const[n,o]of Object.entries(t.params))if(o!==void 0)if(Array.isArray(o))for(const a of o)r.push([n,a]);else r.push([n,o]);t.params=r}return t}const aae={...Pp,...ine,...p7},iae=e=>[[e.EnvVars,{constant:{KUMA_PRODUCT_NAME:"Kuma",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.httpClient,{service:oae,arguments:[e.env]}],[e.api,{service:Joe,arguments:[e.httpClient,e.env]}],[e.logger,{service:One}],[Ue("kong.plugins"),{service:()=>[[PX]],labels:[e.plugins]}],[Ue("kuma.i18n.en-us"),{constant:Qoe,labels:[e.enUs]}],...Nee(e),...ane({...e,routes:e.routesLabel}),...Nne(e),...Vne(e),...Poe({...e,routes:e.routesLabel}),...Coe({...e,routes:e.routesLabel})],un=aae;async function sae(){(await TJ(iae(un),yne({...un,routes:un.routesLabel}),Bne({...un,ControlPlaneStatus:bne.ControlPlaneStatus,routes:un.routesLabel}),_ne({...un,routes:un.routesLabel}),[])(un.app)((await Ve(()=>import("./App-71342d2b.js"),["./App-59e26e0a.css"],import.meta.url)).default)).mount("#app")}sae();export{Lae as $,Pee as A,Y as B,it as C,rt as D,Iae as E,Ee as F,Pae as G,_ as H,Dae as I,Vae as J,Oae as K,Bae as L,g1 as M,Zt as N,st as O,cae as P,Qm as Q,qn as R,Iee as S,hae as T,Nae as U,kae as V,D1 as W,Ys as X,xae as Y,wae as Z,Pa as _,Bt as a,_ae as a0,Qc as a1,eae as a2,ei as a3,Vi as a4,Eae as a5,dae as a6,Ae as a7,Fe as a8,sQ as a9,Fq as aA,bt as aB,Wm as aC,ha as aa,Aae as ab,Cae as ac,lt as ad,Hae as ae,hJ as af,WE as ag,pQ as ah,Sae as ai,B9 as aj,qt as ak,_r as al,er as am,fae as an,dre as ao,bae as ap,ia as aq,Fm as ar,vae as as,mae as at,wt as au,Sr as av,yae as aw,pae as ax,Fi as ay,Mae as az,J as b,k as c,ne as d,R as e,M as f,oo as g,ho as h,ht as i,Ve as j,tn as k,B as l,m,ie as n,h as o,P as p,lne as q,Q as r,gae as s,Z as t,sne as u,Je as v,A as w,et as x,Zae as y,uae as z}; +`,connectDescription:"Next, run the following command to connect the Zone.",connectCommand:"helm upgrade --install -n kuma-system -f values.yaml kuma kuma/kuma"}}},create:{generalError:{title:"Could not create the Zone"},invalidNameError:"The name must be a valid RFC 1035 DNS name, which means it must start with a letter, be less than 64 characters long, and only contain lowercase letters, numbers, and '-'.",status_error:{409:{title:"Error 409: A Zone with the name {name} already exists",description:"If you want to connect a Zone with this name, you can delete the existing one and create a new one."},500:{title:"Error 500: An error occurred while creating the Zone {name}",description:"You may retry this operation."}}}}},Qoe={...Noe,...$oe,...Zoe,...Roe,...joe,...Foe,...Uoe,...Goe,...Yoe,...zoe,...Woe,...qoe,...Koe};class Xoe{constructor(t,r){this.client=t,this.env=r}get baseUrl(){return this.client.baseUrl}}class Joe extends Xoe{async getLatestVersion(){return this.client.get(this.env("KUMA_VERSION_URL"))}getConfig(){return this.client.get("/config")}getPolicyTypes(){return this.client.get("/policies")}getGlobalInsight(){return this.client.get("/global-insight")}getZones(t){return this.client.get("/zones",{params:t})}getZone({name:t},r){return this.client.get(`/zones/${t}`,{params:r})}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/_overview",{params:t})}getZoneOverview({name:t},r){return this.client.get(`/zones/${t}/_overview`,{params:r})}getZoneIngress({name:t},r){return this.client.get(`/zone-ingresses/${t}`,{params:r})}getZoneIngressData({zoneIngressName:t,dataPath:r},n){return this.client.get(`/zoneingresses/${t}/${r}`,{params:n})}getAllZoneIngressOverviews(t){return this.client.get("/zone-ingresses/_overview",{params:t})}getZoneIngressOverview({name:t},r){return this.client.get(`/zone-ingresses/${t}/_overview`,{params:r})}getZoneEgress({name:t},r){return this.client.get(`/zoneegresses/${t}`,{params:r})}getZoneEgressData({zoneEgressName:t,dataPath:r},n){return this.client.get(`/zoneegresses/${t}/${r}`,{params:n})}getAllZoneEgressOverviews(t){return this.client.get("/zoneegresses/_overview",{params:t})}getZoneEgressOverview({name:t},r){return this.client.get(`/zoneegresses/${t}/_overview`,{params:r})}getAllMeshes(t){return this.client.get("/meshes",{params:t})}getMesh({name:t},r){return this.client.get(`/meshes/${t}`,{params:r})}getAllMeshInsights(t){return this.client.get("/mesh-insights",{params:t})}getMeshInsights({name:t},r){return this.client.get(`/mesh-insights/${t}`,{params:r})}getAllDataplanes(t){return this.client.get("/dataplanes",{params:t})}getDataplaneFromMesh({mesh:t,name:r},n){return this.client.get(`/meshes/${t}/dataplanes/${r}`,{params:n})}getAllDataplaneOverviews(t){return this.client.get("/dataplanes/_overview",{params:t})}getAllDataplaneOverviewsFromMesh({mesh:t},r){return this.client.get(`/meshes/${t}/dataplanes/_overview`,{params:r})}getDataplaneOverviewFromMesh({mesh:t,name:r},n){return this.client.get(`/meshes/${t}/dataplanes/${r}/_overview`,{params:n})}getSidecarDataplanePolicies({mesh:t,name:r},n){return this.client.get(`/meshes/${t}/dataplanes/${r}/policies`,{params:n})}getMeshGatewayDataplane({mesh:t,name:r},n){return this.client.get(`/meshes/${t}/dataplanes/${r}/policies`,{params:n})}getDataplaneRules({mesh:t,name:r},n){return this.client.get(`/meshes/${t}/dataplanes/${r}/_rules`,{params:n})}getDataplaneData({mesh:t,dppName:r,dataPath:n},o){return this.client.get(`/meshes/${t}/dataplanes/${r}/${n}`,{params:o})}getAllServiceInsights(t){return this.client.get("/service-insights",{params:t})}getAllServiceInsightsFromMesh({mesh:t},r){return this.client.get(`/meshes/${t}/service-insights`,{params:r})}getServiceInsight({mesh:t,name:r},n){return this.client.get(`/meshes/${t}/service-insights/${r}`,{params:n})}getAllExternalServices(t){return this.client.get("/external-services",{params:t})}getAllExternalServicesFromMesh({mesh:t},r){return this.client.get(`/meshes/${t}/external-services`,{params:r})}getExternalService({mesh:t,name:r},n){return this.client.get(`/meshes/${t}/external-services/${r}`,{params:n})}getPolicyConnections({mesh:t,path:r,name:n},o){return this.client.get(`/meshes/${t}/${r}/${n}/_resources/dataplanes`,{params:o})}getAllPolicyEntitiesFromMesh({mesh:t,path:r},n){return this.client.get(`/meshes/${t}/${r}`,{params:n})}getSinglePolicyEntity({mesh:t,path:r,name:n},o){return this.client.get(`/meshes/${t}/${r}/${n}`,{params:o})}}class eae extends Error{constructor({status:r,type:n=null,title:o,detail:a=null,instance:i=null,invalidParameters:s=[]}){super(o);mt(this,"status");mt(this,"type");mt(this,"title");mt(this,"detail");mt(this,"instance");mt(this,"invalidParameters");this.name="ApiError",this.status=r,this.type=n,this.title=o,this.detail=a,this.instance=i,this.invalidParameters=s}toJSON(){return{status:this.status,type:this.type,title:this.title,detail:this.detail,instance:this.instance,invalidParameters:this.invalidParameters}}}async function tae(e,t={},r){var c;const n=t,o=n.method??"GET";n.headers=n.headers instanceof Headers?n.headers:new Headers(n.headers),!n.headers.has("content-type")&&["POST","PUT","PATCH"].includes(o)&&n.headers.set("content-type","application/json");let a=e;"params"in t&&t.params!==void 0&&o==="GET"&&(a+=`?${new URLSearchParams(t.params).toString()}`),r!==void 0&&((c=n.headers.get("content-type"))!=null&&c.startsWith("application/json")?n.body=JSON.stringify(r):n.body=r);let i;try{i=await fetch(a,n)}catch(d){throw rae(d)}const s=i.headers.get("content-type"),u=(s!==null?s.startsWith("application/json")||s.startsWith("application/problem+json"):!1)?await i.json():await i.text();if(i.ok)return{response:i,data:u};throw nae(i,u)}function rae(e){const t=e instanceof Error?e.message:"An unknown network error occurred.";return new Error(t)}function nae(e,t){const r=e.status;let n,o,a,i,s;return typeof t=="string"&&t.length>0?o=t:t!==null&&typeof t=="object"&&("type"in t&&typeof t.type=="string"&&(n=t.type),"title"in t&&typeof t.title=="string"&&(o=t.title),"detail"in t&&typeof t.detail=="string"&&(a=t.detail),"instance"in t&&typeof t.instance=="string"&&(i=t.instance),"invalid_parameters"in t&&Array.isArray(t.invalid_parameters)&&(s=t.invalid_parameters)),r===403&&(o="You currently don’t have access to this data."),o===void 0&&(o="An error has occurred while trying to load this data."),i&&(o+=` (trace: ${i})`),new eae({status:r,type:n,title:o,detail:a,instance:i,invalidParameters:s})}class oae{constructor(t){this.env=t}get baseUrl(){return this.env("KUMA_API_URL")}async get(t,r){const{data:n}=await this.raw(t,void 0,r,"GET");return n}async delete(t,r){await this.raw(t,void 0,r,"DELETE")}async post(t,r,n){const{data:o}=await this.raw(t,r,n,"POST");return o}async put(t,r,n){const{data:o}=await this.raw(t,r,n,"PUT");return o}async patch(t,r,n){const{data:o}=await this.raw(t,r,n,"PATCH");return o}async raw(t,r,n={},o="GET"){const a=Z8(n);a.method=o;const i=new Headers;if("headers"in a){const l=a.headers instanceof Headers?a.headers:new Headers(a.headers);for(const[u,c]of l)i.set(u,c)}Object.keys(i).length>0&&(a.headers=i);const s=Z8(a);return tae(`${t.startsWith("http")?"":this.baseUrl}${t}`,s,r)}}function Z8(e){const t=e??{};if(t.params&&!Array.isArray(t.params)){const r=[];for(const[n,o]of Object.entries(t.params))if(o!==void 0)if(Array.isArray(o))for(const a of o)r.push([n,a]);else r.push([n,o]);t.params=r}return t}const aae={...Pp,...ine,...p7},iae=e=>[[e.EnvVars,{constant:{KUMA_PRODUCT_NAME:"Kuma",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.httpClient,{service:oae,arguments:[e.env]}],[e.api,{service:Joe,arguments:[e.httpClient,e.env]}],[e.logger,{service:One}],[Ue("kong.plugins"),{service:()=>[[PX]],labels:[e.plugins]}],[Ue("kuma.i18n.en-us"),{constant:Qoe,labels:[e.enUs]}],...Nee(e),...ane({...e,routes:e.routesLabel}),...Nne(e),...Vne(e),...Poe({...e,routes:e.routesLabel}),...Coe({...e,routes:e.routesLabel})],un=aae;async function sae(){(await TJ(iae(un),yne({...un,routes:un.routesLabel}),Bne({...un,ControlPlaneStatus:bne.ControlPlaneStatus,routes:un.routesLabel}),_ne({...un,routes:un.routesLabel}),[])(un.app)((await Ve(()=>import("./App-239bdbf5.js"),["./App-59e26e0a.css"],import.meta.url)).default)).mount("#app")}sae();export{Lae as $,Pee as A,Y as B,it as C,rt as D,Iae as E,Ee as F,Pae as G,_ as H,Dae as I,Vae as J,Oae as K,Bae as L,g1 as M,Zt as N,st as O,cae as P,Qm as Q,qn as R,Iee as S,hae as T,Nae as U,kae as V,D1 as W,Ys as X,xae as Y,wae as Z,Pa as _,Bt as a,_ae as a0,Qc as a1,eae as a2,ei as a3,Vi as a4,Eae as a5,dae as a6,Ae as a7,Fe as a8,sQ as a9,Fq as aA,bt as aB,Wm as aC,ha as aa,Aae as ab,Cae as ac,lt as ad,Hae as ae,hJ as af,WE as ag,pQ as ah,Sae as ai,B9 as aj,qt as ak,_r as al,er as am,fae as an,dre as ao,bae as ap,ia as aq,Fm as ar,vae as as,mae as at,wt as au,Sr as av,yae as aw,pae as ax,Fi as ay,Mae as az,J as b,k as c,ne as d,R as e,M as f,oo as g,ho as h,ht as i,Ve as j,tn as k,B as l,m,ie as n,h as o,P as p,lne as q,Q as r,gae as s,Z as t,sne as u,Je as v,A as w,et as x,Zae as y,uae as z}; diff --git a/app/kuma-ui/pkg/resources/data/index.html b/app/kuma-ui/pkg/resources/data/index.html index 293ea51c1aec..cf209dce849f 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