@kong-ui-public/entities-routes 3.12.0 → 3.13.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,6 +1,6 @@
1
1
  import { defineComponent as T, mergeModels as m, useModel as k, ref as P, computed as a, resolveComponent as _, openBlock as s, createElementBlock as c, Fragment as b, createBlock as f, unref as v, createCommentVNode as i, createVNode as B, withCtx as w, normalizeClass as N, renderSlot as R } from "vue";
2
2
  import { PROTOCOL_TO_SCHEMA as S, HTTP_BASED_PROTOCOLS as y, ExpressionsEditor as H, RouterPlaygroundModal as A } from "@kong-ui-public/expressions";
3
- import { c as F } from "./index-DtDQBp_p.js";
3
+ import { c as F } from "./index-BVfmpswP.js";
4
4
  const j = /* @__PURE__ */ T({
5
5
  __name: "RouteFormExpressionsEditor",
6
6
  props: /* @__PURE__ */ m({
@@ -1,4 +1,4 @@
1
- import { E as R, H as o, f as E, e as _, I as t, M as T, d as e, P as I, _ as L, g as S, R as r, a as O, b as i, h as A, i as U, s as u } from "./index-DtDQBp_p.js";
1
+ import { E as R, H as o, f as E, e as _, I as t, M as T, d as e, P as I, _ as L, g as S, R as r, a as O, b as i, h as A, i as U, s as u } from "./index-BVfmpswP.js";
2
2
  export {
3
3
  R as ExpressionsEditorState,
4
4
  o as HTTP_REDIRECT_STATUS_CODES,
@@ -1 +1 @@
1
- (function(w,e){typeof exports=="object"&&typeof module<"u"?e(exports,require("vue"),require("@kong-ui-public/entities-shared"),require("lodash.isequal"),require("vue-router"),require("@kong/icons"),require("@kong/kongponents"),require("@kong-ui-public/expressions"),require("@kong-ui-public/i18n")):typeof define=="function"&&define.amd?define(["exports","vue","@kong-ui-public/entities-shared","lodash.isequal","vue-router","@kong/icons","@kong/kongponents","@kong-ui-public/expressions","@kong-ui-public/i18n"],e):(w=typeof globalThis<"u"?globalThis:w||self,e(w["kong-ui-public-entities-routes"]={},w.Vue,w["kong-ui-public-entities-shared"],w.isEqual,w.VueRouter,w.KongIcons,w.Kongponents,w["kong-ui-public-expressions"],w["kong-ui-public-i18n"]))})(this,function(w,e,N,_e,Ce,X,Ie,ne,Ee){"use strict";const F="/v2/control-planes/{controlPlaneId}/core-entities",L="/{workspace}",ee={list:{konnect:{all:`${F}/routes`,forGatewayService:`${F}/services/{serviceId}/routes`},kongManager:{all:`${L}/routes`,forGatewayService:`${L}/services/{serviceId}/routes`}},form:{konnect:{services:`${F}/services`,create:{all:`${F}/routes`,forGatewayService:`${F}/services/{serviceId}/routes`},fetch:{all:`${F}/routes/{id}`,forGatewayService:`${F}/services/{serviceId}/routes/{id}`},edit:{all:`${F}/routes/{id}`,forGatewayService:`${F}/services/{serviceId}/routes/{id}`}},kongManager:{services:`${L}/services`,create:{all:`${L}/routes`,forGatewayService:`${L}/services/{serviceId}/routes`},fetch:{all:`${L}/routes/{id}`,forGatewayService:`${L}/services/{serviceId}/routes/{id}`},edit:{all:`${L}/routes/{id}`,forGatewayService:`${L}/services/{serviceId}/routes/{id}`}}},item:{konnect:{getService:`${F}/services/{serviceId}`,all:`${F}/routes/{id}`,forGatewayService:`${F}/services/{serviceId}/routes/{id}`},kongManager:{getService:`${L}/services/{serviceId}`,all:`${L}/routes/{id}`,forGatewayService:`${L}/services/{serviceId}/routes/{id}`}}},we={actions:{create:"New route",copy_id:"Copy ID",copy_json:"Copy JSON",edit:"Edit",delete:"Delete",clear:"Clear",view:"View Details",loading:"Loading..."},search:{placeholder:{konnect:"Filter by name",exact:"Filter by exact name or ID",kongManager:"Filter by exact name or ID"},no_results:"No results found"},routes:{title:"Routes",list:{toolbar_actions:{new_route:"New route"},table_headers:{name:"Name",protocols:"Protocols",hosts:"Hosts",methods:"Methods",paths:"Paths",expression:"Expression",id:"ID",tags:"Tags",created_at:"Created At",updated_at:"Last Modified"},empty_state:{title:"Configure a New Route",description:"Routes proxy requests to an associated Service."},empty_state_v2:{title:"Configure your first route",group:"Routes created in gateways within this group will automatically appear here.",description:"Routes direct incoming API requests to the appropriate gateway service based on paths, methods, and headers, ensuring efficient traffic flow."}}},delete:{title:"Delete a Route",description:"Deleting this route will also remove any associated plugins. This action cannot be reversed."},errors:{general:"Routes could not be retrieved",delete:"The route could not be deleted at this time.",copy:"Failed to copy to clipboard",services:{fetch:"Could not fetch available services"}},copy:{success:"Copied {val} to clipboard",success_brief:"Successfully copied to clipboard"},form:{config_flavor:{label:"Define by"},config_types:{basic:{description:"Quickly set up a route with HTTP & HTTPS protocol with the essentials: path, method, and host.",label:"Basic"},advanced:{description:"Define complex route logic with other protocols or additional paths or attributes such as headers.",label:"Advanced"}},protocols:{grpc:"GRPC",grpcs:"GRPCS","grpc,grpcs":"GRPC, GRPCS",http:"HTTP",https:"HTTPS","http,https":"HTTP, HTTPS",tls:"TLS",tcp:"TCP",udp:"UDP","tls,udp":"TLS, UDP","tcp,udp":"TCP, UDP","tcp,tls":"TCP, TLS","tcp,tls,udp":"TCP, TLS, UDP",ws:"WS",wss:"WSS","ws,wss":"WS, WSS",tls_passthrough:"TLS_PASSTHROUGH"},sections:{general:{title:"General Information",description:"General information will help you identify and manage this route"},config:{title:"Route Configuration",description:"Route configuration determines how this route will handle incoming requests"},routingRules:{title:"Routing Rules"},routingExpression:{title:"Routing Expression"}},fields:{service_id:{label:"Service",placeholder:"Select a service"},name:{label:"Name",placeholder:"Enter a unique name",tooltip:"The name of the Route. Route names must be unique, and they are case sensitive. For example, there can be two different Routes named 'test' and 'Test'."},service:{label:"Gateway Service",tooltip:"The Service this Route is associated to. This is where the Route proxies traffic to."},tags:{label:"Tags",tooltip:"An optional set of strings associated with the Route for grouping and filtering.",placeholder:"Enter a list of tags separated by commas",help:"e.g. tag1, tag2, tag3"},protocols:{label:"Protocols",tooltip:"The protocols this route supports.",tooltipConfig:"An array of the protocols this Route should allow. See the {code1} section for a list of accepted protocols. When set to only {code2}, HTTP requests are answered with an upgrade error. When it is set to only {code3}, this is essentially the same as {code4} in that both HTTP and HTTPS requests are allowed. Default: {code5}.",code1:"Route Object",code2:"https",code3:"http",code4:"['http', 'https']",code5:"['http', 'https']"},path_handling:{label:"Path Handling",tooltip:"Controls how Kong modifies the request path before proxying to the upstream service. Use v1 for standardized, predictable path behavior. Use v0 for legacy compatibility."},https_redirect_status_code:{label:"HTTPS Redirect Status Code",tooltip:"Specifies the HTTP status code for redirecting requests from HTTP to HTTPS. Use 301 or 308 for permanent redirects, 302 or 307 for temporary redirects.",tooltipConfig:"The status code Kong responds with when all properties of a Route match except the protocol i.e. if the protocol of the request is {code1} instead of {code2}. {code3} header is injected by Kong if the field is set to 301, 302, 307 or 308. Note: This config applies only if the Route is configured to only accept the {code4} protocol.",code1:"HTTP",code2:"HTTPS",code3:"Location",code4:"https"},regex_priority:{label:"Regex Priority",tooltip:"Regex priority is determined by length first (longer patterns win), and when lengths are the same, more specific regexes are preferred. When two routes match the path and have the same regex_priority, the older one (lowest created_at) is used. Note that the priority for non-regex routes is different (longer non-regex routes are matched before shorter ones).",tooltipConfig:"A number used to choose which route resolves a given request when several routes match it using regexes simultaneously. When two routes match the path and have the same {code1}, the older one (lowest {code2}) is used. Note that the priority for non-regex routes is different (longer non-regex routes are matched before shorter ones).",code1:"regex_priority",code2:"created_at"},strip_path:{label:"Strip Path",tooltip:"When enabled, Kong removes the portion of the request path that matches the route's path before forwarding the request to the upstream. If the request exactly matches the route, the result is /. Disable if that's not desired.",tooltipConfig:"When matching a Route via one of the {code1}, strip the matching prefix from the upstream request URL.",code1:"paths"},preserve_host:{label:"Preserve Host",tooltip:"Keeps the original Host header when proxying requests. Enable this if the upstream service requires the client's Host value. Disable if the service expects its own hostname.",tooltipConfig:"When matching a Route via one of the {code1} domain names, use the request {code2} header in the upstream request headers. If set to {code3}, the upstream {code4} header will be that of the Service's {code5}.",code1:"hosts",code2:"Host",code3:"false",code4:"Host",code5:"host"},paths:{add:"Add a path",label:"Paths",label_singular:"Path",placeholder:"e.g. /api/v1",singular:"path",tooltip:"Match specific URL paths, such as /api/v1. Prefix with ~ to enable regex-based matching."},snis:{add:"Add an SNI",label:"SNIs",placeholder:"e.g. api.example.com",singular:"SNI",tooltip:"SNIs (Server Name Indications) that match the route when using stream routing."},hosts:{add:"Add a host",label:"Hosts",label_singular:"Host",placeholder:"e.g. example.com",singular:"host",tooltip:"Match specific domain names (e.g., api.example.com). Prefix with ~ to enable regex-based matching.",tooltipConfig:"A list of domain names that match this Route. Note that the hosts value is case sensitive."},methods:{label:"Methods",placeholder:"Select methods",search_placeholder:"Search for a method or enter a custom method",singular:"method",tooltip:"Match certain HTTP methods, such as GET or POST. If no method is selected, all methods are included.",custom:{label:"Custom",placeholder:"Enter a custom method",tooltip:"Custom methods can be used with default selections. Uppercase characters are required."}},headers:{add:"Add a header",label:"Headers",singular:"header",tooltip:"Match specific headers, such as x-api-version or x-region.",name:{placeholder:"e.g. x-api-version"},values:{placeholder:"e.g. v1"},tooltipConfig:"One or more lists of values indexed by header name that will cause this Route to match if present in the request. The {code1} header cannot be used with this attribute: hosts should be specified using the {code2} attribute. When {code3} contains only one value and that value starts with the special prefix {code4}, the value is interpreted as a regular expression.",code1:"Host",code2:"hosts",code3:"headers",code4:"*"},sources:{add:"Add a source",label:"Sources",singular:"source",tooltip:"A list of IP sources of incoming connections that match this Route when using stream routing.",ip:{placeholder:"Enter a source IP"},port:{placeholder:"Enter a source port"}},destinations:{add:"Add a destination",label:"Destinations",singular:"destination",tooltip:"A list of IP destinations of incoming connections that match this Route when using stream routing.",ip:{placeholder:"Enter a destination IP"},port:{placeholder:"Enter a destination port"}},response_buffering:{label:"Response buffering",tooltip:"Reads and buffers the full response from the upstream service before sending it to the client. Enable buffering if the client expects the complete response at once. Disable for faster streaming of large or chunked responses."},request_buffering:{label:"Request buffering",tooltip:"Reads and buffers the full request body before proxying. Enable buffering if the upstream service requires the complete request before processing. Disable for faster streaming of large or chunked requests."},expression:{label:"Expression",tooltip:"The route expression."},priority:{label:"Priority",tooltip:"A number used to choose which route resolves a given request when several routes match it using expression simultaneously."}},flavors:{traditional:"Traditional Form",expressions:"Expressions Editor"},show_more:"Show more",hint:{rules_message:"Choose at least one {routingRules} option.",single_rule:"{routingRules}",multiple_rules:"{routingRules} or {lastRoutingRule}",advanced:"To add more than one, use the Advanced options."},warning:{cannotChangeFlavor:{create:"The format of the route cannot be changed once created.",edit:"This route was configured in the {format} format, and cannot be changed after creation. You can switch to the {format} tab to edit, or create a new route in a different format instead."}},expressions_editor:{loading:"Loading the Expressions editor…",error:"Error occurred while loading the Expressions editor. Please view the console for more details."},expression_playground:{test_link:"Test with Router Playground",supported_protocols_hint:"Currently only supports the following protocols: {protocols}"}}};function Re(){const r=Ee.createI18n("en-us",we);return{i18n:r,i18nT:Ee.i18nTComponent(r)}}const H={useI18n:Re},xe={class:"kong-ui-entities-route-entity-config-card"},Be={key:2},Ae=e.defineComponent({__name:"RouteConfigCard",props:{config:{type:Object,required:!0,validator:r=>!(!r||!["konnect","kongManager"].includes(r==null?void 0:r.app)||r.app==="konnect"&&!r.controlPlaneId||r.app==="kongManager"&&typeof r.workspace!="string"||!r.entityId)},configCardDoc:{type:String,default:"",required:!1},hideTitle:{type:Boolean,default:!1},serviceId:{type:String,required:!1,default:""}},emits:["loading","fetch:error","fetch:success","navigation-click"],setup(r,{emit:V}){var n;const u=V,t=r,{axiosInstance:a}=N.useAxios((n=t.config)==null?void 0:n.axiosRequestConfig),{i18n:{t:d},i18nT:s}=H.useI18n(),E=e.ref(""),m=e.ref(""),h=e.ref(!1),p=e.computed(()=>{var c,g;return(g=ee.item[(c=t.config)==null?void 0:c.app])==null?void 0:g[t.serviceId?"forGatewayService":"all"].replace(/{serviceId}/gi,t.serviceId)}),y=e.computed(()=>{var c;return(c=ee.item[t.config.app])==null?void 0:c.getService}),I=async c=>{var P,B,q;if(E.value=t.serviceId||((P=c==null?void 0:c.service)==null?void 0:P.id),u("fetch:success",c),!E.value)return;let g=`${t.config.apiBaseUrl}${y.value}`;t.config.app==="konnect"?g=g.replace(/{controlPlaneId}/gi,((B=t.config)==null?void 0:B.controlPlaneId)||"").replace(/{serviceId}/gi,E.value||""):t.config.app==="kongManager"&&(g=g.replace(/\/{workspace}/gi,(q=t.config)!=null&&q.workspace?`/${t.config.workspace}`:"").replace(/{serviceId}/gi,E.value||""));try{h.value=!0;const{data:f}=await a.get(g);m.value=(f==null?void 0:f.name)||(f==null?void 0:f.id)}catch(f){u("fetch:error",f)}finally{h.value=!1}},R=e.ref({id:{},name:{tooltip:d("form.fields.name.tooltip")},created_at:{},updated_at:{},service:{label:d("form.fields.service.label"),section:N.ConfigurationSchemaSection.Basic,tooltip:d("form.fields.service.tooltip"),order:5},tags:{tooltip:d("form.fields.tags.tooltip"),order:6},protocols:{section:N.ConfigurationSchemaSection.Basic,type:N.ConfigurationSchemaType.BadgeTag,order:7},paths:{section:N.ConfigurationSchemaSection.Basic,tooltip:d("form.fields.paths.tooltip"),type:N.ConfigurationSchemaType.CopyBadge,order:8},hosts:{section:N.ConfigurationSchemaSection.Basic,tooltip:d("form.fields.hosts.tooltipConfig"),type:N.ConfigurationSchemaType.CopyBadge,order:9},snis:{label:d("form.fields.snis.label"),tooltip:d("form.fields.snis.tooltip"),order:10},headers:{section:N.ConfigurationSchemaSection.Basic,order:11},methods:{section:N.ConfigurationSchemaSection.Basic,tooltip:d("form.fields.methods.tooltip"),type:N.ConfigurationSchemaType.BadgeMethod,order:12},sources:{section:N.ConfigurationSchemaSection.Basic,tooltip:d("form.fields.sources.tooltip"),type:N.ConfigurationSchemaType.JsonArray,order:13},destinations:{section:N.ConfigurationSchemaSection.Basic,tooltip:d("form.fields.destinations.tooltip"),type:N.ConfigurationSchemaType.JsonArray,order:14},https_redirect_status_code:{order:1},regex_priority:{tooltip:d("form.fields.regex_priority.tooltipConfig"),order:2},strip_path:{order:3},preserve_host:{order:4},request_buffering:{tooltip:d("form.fields.request_buffering.tooltip"),order:5},response_buffering:{tooltip:d("form.fields.response_buffering.tooltip"),order:6},path_handling:{tooltip:d("form.fields.path_handling.tooltip"),order:7}});return(c,g)=>{const P=e.resolveComponent("KSkeleton");return e.openBlock(),e.createElementBlock("div",xe,[e.createVNode(e.unref(N.EntityBaseConfigCard),{config:r.config,"config-card-doc":r.configCardDoc,"config-schema":R.value,"entity-type":e.unref(N.SupportedEntityType).Route,"fetch-url":p.value,"hide-title":r.hideTitle,"onFetch:error":g[0]||(g[0]=B=>c.$emit("fetch:error",B)),"onFetch:success":I,onLoading:g[1]||(g[1]=B=>c.$emit("loading",B))},{"https_redirect_status_code-label-tooltip":e.withCtx(()=>[e.createVNode(e.unref(s),{keypath:"form.fields.https_redirect_status_code.tooltipConfig",scope:"global"},{code1:e.withCtx(()=>[e.createElementVNode("code",null,e.toDisplayString(e.unref(d)("form.fields.https_redirect_status_code.code1")),1)]),code2:e.withCtx(()=>[e.createElementVNode("code",null,e.toDisplayString(e.unref(d)("form.fields.https_redirect_status_code.code2")),1)]),code3:e.withCtx(()=>[e.createElementVNode("code",null,e.toDisplayString(e.unref(d)("form.fields.https_redirect_status_code.code3")),1)]),code4:e.withCtx(()=>[e.createElementVNode("code",null,e.toDisplayString(e.unref(d)("form.fields.https_redirect_status_code.code4")),1)]),_:1})]),"regex_priority-label-tooltip":e.withCtx(()=>[e.createVNode(e.unref(s),{keypath:"form.fields.regex_priority.tooltipConfig",scope:"global"},{code1:e.withCtx(()=>[e.createElementVNode("code",null,e.toDisplayString(e.unref(d)("form.fields.regex_priority.code1")),1)]),code2:e.withCtx(()=>[e.createElementVNode("code",null,e.toDisplayString(e.unref(d)("form.fields.regex_priority.code2")),1)]),_:1})]),"protocols-label-tooltip":e.withCtx(()=>[e.createVNode(e.unref(s),{keypath:"form.fields.protocols.tooltipConfig",scope:"global"},{code1:e.withCtx(()=>[e.createElementVNode("code",null,e.toDisplayString(e.unref(d)("form.fields.protocols.code1")),1)]),code2:e.withCtx(()=>[e.createElementVNode("code",null,e.toDisplayString(e.unref(d)("form.fields.protocols.code2")),1)]),code3:e.withCtx(()=>[e.createElementVNode("code",null,e.toDisplayString(e.unref(d)("form.fields.protocols.code3")),1)]),code4:e.withCtx(()=>[e.createElementVNode("code",null,e.toDisplayString(e.unref(d)("form.fields.protocols.code4")),1)]),code5:e.withCtx(()=>[e.createElementVNode("code",null,e.toDisplayString(e.unref(d)("form.fields.protocols.code5")),1)]),_:1})]),"headers-label-tooltip":e.withCtx(()=>[e.createVNode(e.unref(s),{keypath:"form.fields.headers.tooltipConfig",scope:"global"},{code1:e.withCtx(()=>[e.createElementVNode("code",null,e.toDisplayString(e.unref(d)("form.fields.headers.code1")),1)]),code2:e.withCtx(()=>[e.createElementVNode("code",null,e.toDisplayString(e.unref(d)("form.fields.headers.code2")),1)]),code3:e.withCtx(()=>[e.createElementVNode("code",null,e.toDisplayString(e.unref(d)("form.fields.headers.code3")),1)]),code4:e.withCtx(()=>[e.createElementVNode("code",null,e.toDisplayString(e.unref(d)("form.fields.headers.code4")),1)]),_:1})]),"strip_path-label-tooltip":e.withCtx(()=>[e.createVNode(e.unref(s),{keypath:"form.fields.strip_path.tooltipConfig",scope:"global"},{code1:e.withCtx(()=>[e.createElementVNode("code",null,e.toDisplayString(e.unref(d)("form.fields.headers.code1")),1)]),_:1})]),"preserve_host-label-tooltip":e.withCtx(()=>[e.createVNode(e.unref(s),{keypath:"form.fields.preserve_host.tooltipConfig",scope:"global"},{code1:e.withCtx(()=>[e.createElementVNode("code",null,e.toDisplayString(e.unref(d)("form.fields.preserve_host.code1")),1)]),code2:e.withCtx(()=>[e.createElementVNode("code",null,e.toDisplayString(e.unref(d)("form.fields.preserve_host.code2")),1)]),code3:e.withCtx(()=>[e.createElementVNode("code",null,e.toDisplayString(e.unref(d)("form.fields.preserve_host.code3")),1)]),code4:e.withCtx(()=>[e.createElementVNode("code",null,e.toDisplayString(e.unref(d)("form.fields.preserve_host.code4")),1)]),code5:e.withCtx(()=>[e.createElementVNode("code",null,e.toDisplayString(e.unref(d)("form.fields.preserve_host.code5")),1)]),_:1})]),service:e.withCtx(({row:B})=>[h.value?(e.openBlock(),e.createBlock(P,{key:0,"data-testid":"service-name-loader",type:"spinner"})):B.value&&B.value.id===E.value&&m.value?(e.openBlock(),e.createBlock(e.unref(N.InternalLinkItem),{key:1,item:{key:B.value.id,value:m.value,type:e.unref(N.ConfigurationSchemaType).LinkInternal},onNavigationClick:()=>c.$emit("navigation-click",B.value.id,"services")},null,8,["item","onNavigationClick"])):(e.openBlock(),e.createElementBlock("div",Be,e.toDisplayString("-")))]),_:1},8,["config","config-card-doc","config-schema","entity-type","fetch-url","hide-title"])])}}});var D=(r=>(r.TRADITIONAL="traditional",r.EXPRESSIONS="expressions",r))(D||{}),o=(r=>(r.PATHS="paths",r.SNIS="snis",r.HOSTS="hosts",r.METHODS="methods",r.HEADERS="headers",r.SOURCES="sources",r.DESTINATIONS="destinations",r))(o||{}),Q=(r=>(r.LOADING="loading",r.ERROR="error",r.READY="ready",r))(Q||{}),Y=(r=>(r.GET="GET",r.PUT="PUT",r.POST="POST",r.PATCH="PATCH",r.DELETE="DELETE",r.OPTIONS="OPTIONS",r.HEAD="HEAD",r.CONNECT="CONNECT",r.TRACE="TRACE",r))(Y||{});const fe=r=>r.routeFlavors.traditional===!0,ue=r=>r.routeFlavors.expressions===!0,M={[o.PATHS]:[""],[o.SNIS]:[""],[o.HOSTS]:[""],[o.METHODS]:[],[o.HEADERS]:[{header:"",values:""}],[o.SOURCES]:[{ip:"",port:null}],[o.DESTINATIONS]:[{ip:"",port:null}]},ce={http:[o.PATHS,o.METHODS,o.HOSTS,o.HEADERS],https:[o.PATHS,o.METHODS,o.HOSTS,o.HEADERS,o.SNIS],"http,https":[o.PATHS,o.METHODS,o.HOSTS,o.HEADERS,o.SNIS],"https,http":[o.PATHS,o.METHODS,o.HOSTS,o.HEADERS,o.SNIS],grpc:[o.PATHS,o.HOSTS,o.HEADERS],grpcs:[o.PATHS,o.HOSTS,o.HEADERS,o.SNIS],"grpc,grpcs":[o.PATHS,o.HOSTS,o.HEADERS,o.SNIS],"grpcs,grpc":[o.PATHS,o.HOSTS,o.HEADERS,o.SNIS],udp:[o.SOURCES,o.DESTINATIONS],tls:[o.SOURCES,o.DESTINATIONS,o.SNIS],tcp:[o.SOURCES,o.DESTINATIONS],"tls,udp":[o.SOURCES,o.DESTINATIONS,o.SNIS],"udp,tls":[o.SOURCES,o.DESTINATIONS,o.SNIS],"tcp,udp":[o.SOURCES,o.DESTINATIONS],"udp,tcp":[o.SOURCES,o.DESTINATIONS],"tcp,tls":[o.SOURCES,o.DESTINATIONS,o.SNIS],"tls,tcp":[o.SOURCES,o.DESTINATIONS,o.SNIS],"tcp,tls,udp":[o.SOURCES,o.DESTINATIONS,o.SNIS],"tls,udp,tcp":[o.SOURCES,o.DESTINATIONS,o.SNIS],"udp,tcp,tls":[o.SOURCES,o.DESTINATIONS,o.SNIS],tls_passthrough:[o.SNIS],ws:[o.PATHS,o.HOSTS,o.HEADERS],wss:[o.PATHS,o.HOSTS,o.HEADERS,o.SNIS],"ws,wss":[o.PATHS,o.HOSTS,o.HEADERS,o.SNIS],"wss,ws":[o.PATHS,o.HOSTS,o.HEADERS,o.SNIS]},me=[{label:"426",value:426},{label:"301",value:301},{label:"302",value:302},{label:"307",value:307},{label:"308",value:308}],Te=[{label:"v0",value:"v0"},{label:"v1",value:"v1"}],ae={https_redirect_status_code:426,strip_path:!0,preserve_host:!1,request_buffering:!0,response_buffering:!0},ke={...ae,paths:[""],regex_priority:0,path_handling:"v0",expression:"",priority:0},De=e.defineComponent({__name:"RuleControlsAdd",props:{routingRulesEntity:{}},emits:["add"],setup(r,{emit:V}){const u=r,t=V,a=e.inject("configType","basic"),{i18n:{t:d}}=H.useI18n(),s=e.computed(()=>d(`form.fields.${u.routingRulesEntity}.add`));return(E,m)=>{const h=e.resolveComponent("KButton");return e.unref(a)!=="basic"?(e.openBlock(),e.createBlock(h,{key:0,appearance:"tertiary",class:"routing-rule-add-item-button","data-testid":`add-${E.routingRulesEntity}`,onClick:m[0]||(m[0]=p=>t("add"))},{default:e.withCtx(()=>[e.createVNode(e.unref(X.AddIcon)),e.createElementVNode("span",null,e.toDisplayString(s.value),1)]),_:1},8,["data-testid"])):e.createCommentVNode("",!0)}}}),U=(r,V)=>{const u=r.__vccOpts||r;for(const[t,a]of V)u[t]=a;return u},te=U(De,[["__scopeId","data-v-f1f4cfc9"]]),Oe="#00abd2",Me="#afb7c5",He="#0044f4",Pe="16px",$e="24px",oe=e.defineComponent({__name:"RuleControlsRemove",props:{disabled:{type:Boolean},routingRulesEntity:{}},emits:["remove"],setup(r,{emit:V}){const u=V,t=e.inject("configType","basic");return(a,d)=>{const s=e.resolveComponent("KButton");return e.unref(t)!=="basic"?(e.openBlock(),e.createBlock(s,{key:0,appearance:"tertiary","data-testid":`remove-${a.routingRulesEntity}`,disabled:a.disabled,icon:"",onClick:d[0]||(d[0]=E=>u("remove"))},{default:e.withCtx(()=>[e.createVNode(e.unref(X.CloseIcon),{color:a.disabled?e.unref(Me):e.unref(He)},null,8,["color"])]),_:1},8,["data-testid","disabled"])):e.createCommentVNode("",!0)}}}),Ue={class:"routing-rule-container"},Fe=U(e.defineComponent({__name:"DestinationRules",props:{modelValue:{required:!0},modelModifiers:{}},emits:e.mergeModels(["add","remove"],["update:modelValue"]),setup(r,{emit:V}){const{i18n:{t:u}}=H.useI18n(),t=e.useModel(r,"modelValue"),a=V;return(d,s)=>{const E=e.resolveComponent("KLabel"),m=e.resolveComponent("KInput");return e.openBlock(),e.createElementBlock("div",Ue,[e.createVNode(E,{info:e.unref(u)("form.fields.destinations.tooltip")},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(u)("form.fields.destinations.label")),1)]),_:1},8,["info"]),e.createVNode(e.TransitionGroup,{name:"appear"},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.value,(h,p)=>(e.openBlock(),e.createElementBlock("div",{key:p,class:"routing-rule-input"},[e.createVNode(m,{modelValue:t.value[p].ip,"onUpdate:modelValue":y=>t.value[p].ip=y,modelModifiers:{trim:!0},"data-testid":`route-form-destinations-ip-input-${p+1}`,placeholder:e.unref(u)("form.fields.destinations.ip.placeholder")},null,8,["modelValue","onUpdate:modelValue","data-testid","placeholder"]),e.createVNode(m,{modelValue:t.value[p].port,"onUpdate:modelValue":y=>t.value[p].port=y,modelModifiers:{number:!0},"data-testid":`route-form-destinations-port-input-${p+1}`,max:"65535",min:"0",placeholder:e.unref(u)("form.fields.destinations.port.placeholder"),type:"number"},null,8,["modelValue","onUpdate:modelValue","data-testid","placeholder"]),e.createVNode(oe,{disabled:t.value.length===1,"routing-rules-entity":e.unref(o).DESTINATIONS,onRemove:y=>a("remove",p)},null,8,["disabled","routing-rules-entity","onRemove"])]))),128))]),_:1}),e.createVNode(te,{"routing-rules-entity":e.unref(o).DESTINATIONS,onAdd:s[0]||(s[0]=h=>a("add"))},null,8,["routing-rules-entity"])])}}}),[["__scopeId","data-v-7ce8d4bc"]]),Le={class:"routing-rule-container"},Ke=U(e.defineComponent({__name:"HeaderRules",props:{modelValue:{required:!0},modelModifiers:{}},emits:e.mergeModels(["add","remove"],["update:modelValue"]),setup(r,{emit:V}){const{i18n:{t:u}}=H.useI18n(),t=e.useModel(r,"modelValue"),a=V;return(d,s)=>{const E=e.resolveComponent("KLabel"),m=e.resolveComponent("KInput");return e.openBlock(),e.createElementBlock("div",Le,[e.createVNode(E,{info:e.unref(u)("form.fields.headers.tooltip")},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(u)("form.fields.headers.label")),1)]),_:1},8,["info"]),e.createVNode(e.TransitionGroup,{name:"appear"},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.value,(h,p)=>(e.openBlock(),e.createElementBlock("div",{key:p,class:"routing-rule-input"},[e.createVNode(m,{modelValue:t.value[p].header,"onUpdate:modelValue":y=>t.value[p].header=y,modelModifiers:{trim:!0},"data-testid":`route-form-headers-name-input-${p+1}`,placeholder:e.unref(u)("form.fields.headers.name.placeholder")},null,8,["modelValue","onUpdate:modelValue","data-testid","placeholder"]),e.createVNode(m,{modelValue:t.value[p].values,"onUpdate:modelValue":y=>t.value[p].values=y,modelModifiers:{trim:!0},"data-testid":`route-form-headers-values-input-${p+1}`,placeholder:e.unref(u)("form.fields.headers.values.placeholder")},null,8,["modelValue","onUpdate:modelValue","data-testid","placeholder"]),e.createVNode(oe,{disabled:t.value.length===1,"routing-rules-entity":e.unref(o).HEADERS,onRemove:y=>a("remove",p)},null,8,["disabled","routing-rules-entity","onRemove"])]))),128))]),_:1}),e.createVNode(te,{"routing-rules-entity":e.unref(o).HEADERS,onAdd:s[0]||(s[0]=h=>a("add"))},null,8,["routing-rules-entity"])])}}}),[["__scopeId","data-v-cff322c5"]]),qe={class:"routing-rule-container"},Ge=U(e.defineComponent({__name:"HostRules",props:{modelValue:{required:!0},modelModifiers:{}},emits:e.mergeModels(["add","remove"],["update:modelValue"]),setup(r,{emit:V}){const{i18n:{t:u}}=H.useI18n(),t=e.useModel(r,"modelValue"),a=V,d=e.inject("configType","basic");return(s,E)=>{const m=e.resolveComponent("KLabel"),h=e.resolveComponent("KInput");return e.openBlock(),e.createElementBlock("div",qe,[e.createVNode(m,{info:e.unref(u)("form.fields.hosts.tooltip"),"tooltip-attributes":{maxWidth:"320"}},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(d)==="basic"?e.unref(u)("form.fields.hosts.label_singular"):e.unref(u)("form.fields.hosts.label")),1)]),_:1},8,["info"]),e.createVNode(e.TransitionGroup,{name:"appear"},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(d)==="basic"?t.value.slice(0,1):t.value,(p,y)=>(e.openBlock(),e.createElementBlock("div",{key:y,class:"routing-rule-input"},[e.createVNode(h,{modelValue:t.value[y],"onUpdate:modelValue":I=>t.value[y]=I,modelModifiers:{trim:!0},"data-testid":`route-form-hosts-input-${y+1}`,placeholder:e.unref(u)("form.fields.hosts.placeholder")},null,8,["modelValue","onUpdate:modelValue","data-testid","placeholder"]),e.createVNode(oe,{disabled:t.value.length===1,"routing-rules-entity":e.unref(o).HOSTS,onRemove:I=>a("remove",y)},null,8,["disabled","routing-rules-entity","onRemove"])]))),128))]),_:1}),e.createVNode(te,{"routing-rules-entity":e.unref(o).HOSTS,onAdd:E[0]||(E[0]=p=>a("add"))},null,8,["routing-rules-entity"])])}}}),[["__scopeId","data-v-7cc12b60"]]),We={class:"routing-rule-container","data-testid":"route-form-methods"},je={class:"routing-rule-input"},Xe=U(e.defineComponent({__name:"MethodRules",props:{methods:{required:!0},methodsModifiers:{},customMethods:{required:!0},customMethodsModifiers:{}},emits:["update:methods","update:customMethods"],setup(r){const{i18n:{t:V}}=H.useI18n(),u=e.useModel(r,"methods"),t=e.useModel(r,"customMethods"),a=e.computed(()=>u.value.filter(h=>Object.keys(Y).includes(h)).concat(t.value.map(h=>h.value))),d=e.computed(()=>Object.keys(Y).map(h=>({label:h,value:h})).concat(t.value.map(h=>({label:h.label,value:h.value,custom:!0})))),s=h=>!d.value.map(p=>p.value.toLowerCase()).includes(h.toLowerCase()),E=(h,p)=>{p?t.value.push(h):t.value=t.value.filter(y=>y.value!==h.value)},m=h=>{u.value=h};return(h,p)=>{const y=e.resolveComponent("KLabel"),I=e.resolveComponent("KMultiselect");return e.openBlock(),e.createElementBlock("div",We,[e.createVNode(y,{info:e.unref(V)("form.fields.methods.tooltip"),"tooltip-attributes":{maxWidth:"320"}},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(V)("form.fields.methods.label")),1)]),_:1},8,["info"]),e.createElementVNode("div",je,[e.createVNode(I,{"enable-item-creation":"","item-creation-validator":s,items:d.value,"model-value":a.value,placeholder:e.unref(V)("form.fields.methods.placeholder"),"search-placeholder":e.unref(V)("form.fields.methods.search_placeholder"),onItemAdded:p[0]||(p[0]=R=>E(R,!0)),onItemRemoved:p[1]||(p[1]=R=>E(R,!1)),"onUpdate:modelValue":m},null,8,["items","model-value","placeholder","search-placeholder"])])])}}}),[["__scopeId","data-v-47795008"]]),ze={class:"routing-rule-container"},Je=U(e.defineComponent({__name:"PathRules",props:{modelValue:{required:!0},modelModifiers:{}},emits:e.mergeModels(["add","remove"],["update:modelValue"]),setup(r,{emit:V}){const{i18n:{t:u}}=H.useI18n(),t=e.useModel(r,"modelValue"),a=V,d=e.inject("configType","basic");return(s,E)=>{const m=e.resolveComponent("KLabel"),h=e.resolveComponent("KInput");return e.openBlock(),e.createElementBlock("div",ze,[e.createVNode(m,{info:e.unref(u)("form.fields.paths.tooltip"),"tooltip-attributes":{maxWidth:"320"}},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(d)==="basic"?e.unref(u)("form.fields.paths.label_singular"):e.unref(u)("form.fields.paths.label")),1)]),_:1},8,["info"]),e.createVNode(e.TransitionGroup,{name:"appear"},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(d)==="basic"?t.value.slice(0,1):t.value,(p,y)=>(e.openBlock(),e.createElementBlock("div",{key:y,class:"routing-rule-input"},[e.createVNode(h,{modelValue:t.value[y],"onUpdate:modelValue":I=>t.value[y]=I,modelModifiers:{trim:!0},"data-testid":`route-form-paths-input-${y+1}`,placeholder:e.unref(u)("form.fields.paths.placeholder")},null,8,["modelValue","onUpdate:modelValue","data-testid","placeholder"]),e.createVNode(oe,{disabled:t.value.length===1,"routing-rules-entity":e.unref(o).PATHS,onRemove:I=>a("remove",y)},null,8,["disabled","routing-rules-entity","onRemove"])]))),128))]),_:1}),e.createVNode(te,{"routing-rules-entity":e.unref(o).PATHS,onAdd:E[0]||(E[0]=p=>a("add"))},null,8,["routing-rules-entity"])])}}}),[["__scopeId","data-v-f672a51a"]]),Qe={class:"routing-rule-container"},Ye=U(e.defineComponent({__name:"SniRules",props:{modelValue:{required:!0},modelModifiers:{}},emits:e.mergeModels(["add","remove"],["update:modelValue"]),setup(r,{emit:V}){const{i18n:{t:u}}=H.useI18n(),t=e.useModel(r,"modelValue"),a=V;return(d,s)=>{const E=e.resolveComponent("KLabel"),m=e.resolveComponent("KInput");return e.openBlock(),e.createElementBlock("div",Qe,[e.createVNode(E,{info:e.unref(u)("form.fields.snis.tooltip"),"tooltip-attributes":{maxWidth:"320"}},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(u)("form.fields.snis.label")),1)]),_:1},8,["info"]),e.createVNode(e.TransitionGroup,{name:"appear"},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.value,(h,p)=>(e.openBlock(),e.createElementBlock("div",{key:p,class:"routing-rule-input"},[e.createVNode(m,{modelValue:t.value[p],"onUpdate:modelValue":y=>t.value[p]=y,modelModifiers:{trim:!0},"data-testid":`route-form-snis-input-${p+1}`,placeholder:e.unref(u)("form.fields.snis.placeholder")},null,8,["modelValue","onUpdate:modelValue","data-testid","placeholder"]),e.createVNode(oe,{disabled:t.value.length===1,"routing-rules-entity":e.unref(o).SNIS,onRemove:y=>a("remove",p)},null,8,["disabled","routing-rules-entity","onRemove"])]))),128))]),_:1}),e.createVNode(te,{"routing-rules-entity":e.unref(o).SNIS,onAdd:s[0]||(s[0]=h=>a("add"))},null,8,["routing-rules-entity"])])}}}),[["__scopeId","data-v-e52adc95"]]),Ze={class:"routing-rule-container"},ve=U(e.defineComponent({__name:"SourceRules",props:{modelValue:{required:!0},modelModifiers:{}},emits:e.mergeModels(["add","remove"],["update:modelValue"]),setup(r,{emit:V}){const{i18n:{t:u}}=H.useI18n(),t=e.useModel(r,"modelValue"),a=V;return(d,s)=>{const E=e.resolveComponent("KLabel"),m=e.resolveComponent("KInput");return e.openBlock(),e.createElementBlock("div",Ze,[e.createVNode(E,{info:e.unref(u)("form.fields.sources.tooltip")},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(u)("form.fields.sources.label")),1)]),_:1},8,["info"]),e.createVNode(e.TransitionGroup,{name:"appear"},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.value,(h,p)=>(e.openBlock(),e.createElementBlock("div",{key:p,class:"routing-rule-input"},[e.createVNode(m,{modelValue:t.value[p].ip,"onUpdate:modelValue":y=>t.value[p].ip=y,modelModifiers:{trim:!0},"data-testid":`route-form-sources-ip-input-${p+1}`,placeholder:e.unref(u)("form.fields.sources.ip.placeholder")},null,8,["modelValue","onUpdate:modelValue","data-testid","placeholder"]),e.createVNode(m,{modelValue:t.value[p].port,"onUpdate:modelValue":y=>t.value[p].port=y,modelModifiers:{number:!0},"data-testid":`route-form-sources-port-input-${p+1}`,max:"65535",min:"0",placeholder:e.unref(u)("form.fields.sources.port.placeholder"),type:"number"},null,8,["modelValue","onUpdate:modelValue","data-testid","placeholder"]),e.createVNode(oe,{disabled:t.value.length===1,"routing-rules-entity":e.unref(o).SOURCES,onRemove:y=>a("remove",p)},null,8,["disabled","routing-rules-entity","onRemove"])]))),128))]),_:1}),e.createVNode(te,{"routing-rules-entity":e.unref(o).SOURCES,onAdd:s[0]||(s[0]=h=>a("add"))},null,8,["routing-rules-entity"])])}}}),[["__scopeId","data-v-4d7f0cbb"]]),et={class:"traditional-rules-hint"},tt={key:0},ot={key:0,class:"route-form-fields-container route-form-advanced-fields-container"},Ne=U(e.defineComponent({__name:"TraditionalRules",props:e.mergeModels({protocols:{},hideAdvanced:{type:Boolean},readonly:{type:Boolean},configType:{}},{fields:{required:!0},fieldsModifiers:{},customMethods:{required:!0},customMethodsModifiers:{}}),emits:["update:fields","update:customMethods"],setup(r){const{i18nT:V,i18n:u,i18n:{t}}=H.useI18n(),a=u.source.form.protocols,d=r,s=e.useModel(r,"fields"),E=e.useModel(r,"customMethods"),m=n=>{switch(n){case o.PATHS:Array.isArray(s.value.paths)?s.value.paths.push([...M[o.PATHS]][0]):s.value.paths=[...M[o.PATHS]];break;case o.SNIS:Array.isArray(s.value.snis)?s.value.snis.push([...M[o.SNIS]][0]):s.value.snis=[...M[o.SNIS]];break;case o.HOSTS:Array.isArray(s.value.hosts)?s.value.hosts.push([...M[o.HOSTS]][0]):s.value.hosts=[...M[o.HOSTS]];break;case o.METHODS:s.value.methods||(s.value.methods={...M[o.METHODS]});break;case o.HEADERS:Array.isArray(s.value.headers)?s.value.headers.push({...M[o.HEADERS][0]}):s.value.headers=[{...M[o.HEADERS][0]}];break;case o.SOURCES:Array.isArray(s.value.sources)?s.value.sources.push({...M[o.SOURCES][0]}):s.value.sources=[{...M[o.SOURCES][0]}];break;case o.DESTINATIONS:Array.isArray(s.value.destinations)?s.value.destinations.push({...M[o.DESTINATIONS][0]}):s.value.destinations=[{...M[o.DESTINATIONS][0]}];break}},h=async(n,c)=>{if(typeof c<"u"){const g=s.value[n];if(Array.isArray(g)&&(g.splice(c,1),g.length>0))return}await e.nextTick(()=>{delete s.value[n]})},p=n=>n.some(c=>d.protocols.includes(c)),y=e.computed(()=>new Set(ce[d.protocols])),I=e.computed(()=>{if(p(["tls_passthrough"]))return[R(o.SNIS)];const n=(d.configType==="basic"?[o.PATHS,o.METHODS,o.HOSTS]:ce[d.protocols]).map(c=>R(c));return[[...n].splice(0,n.length-1).join(", "),n[n.length-1]]}),R=n=>{var g;return((g=u.source.form.fields[n])==null?void 0:g.singular)||""};return(n,c)=>{const g=e.resolveComponent("KCheckbox"),P=e.resolveComponent("KSelect"),B=e.resolveComponent("KInput"),q=e.resolveComponent("KCard");return e.openBlock(),e.createBlock(q,null,{default:e.withCtx(()=>{var f;return[e.createElementVNode("span",et,[e.createVNode(e.unref(V),{keypath:"form.hint.rules_message"},{protocol:e.withCtx(()=>[e.createElementVNode("b",null,e.toDisplayString(e.unref(a)[n.protocols]),1)]),routingRules:e.withCtx(()=>[e.createVNode(e.unref(V),{keypath:I.value[1]?"form.hint.multiple_rules":"form.hint.single_rule"},{routingRules:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(I.value[0]),1)]),lastRoutingRule:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(I.value[1]),1)]),_:1},8,["keypath"])]),_:1}),n.configType==="basic"?(e.openBlock(),e.createElementBlock("span",tt,e.toDisplayString(e.unref(t)("form.hint.advanced")),1)):e.createCommentVNode("",!0)]),e.createVNode(e.TransitionGroup,{name:"appear"},{default:e.withCtx(()=>{var _;return[s.value.paths&&y.value.has(e.unref(o).PATHS)?(e.openBlock(),e.createBlock(Je,{key:"paths-container",modelValue:s.value.paths,"onUpdate:modelValue":c[0]||(c[0]=b=>s.value.paths=b),onAdd:c[1]||(c[1]=b=>m(e.unref(o).PATHS)),onRemove:c[2]||(c[2]=b=>h(e.unref(o).PATHS,b))},null,8,["modelValue"])):e.createCommentVNode("",!0),p(["http","https","ws","wss"])?(e.openBlock(),e.createBlock(g,{key:1,modelValue:s.value.strip_path,"onUpdate:modelValue":c[3]||(c[3]=b=>s.value.strip_path=b),class:"route-form-strip-path","data-testid":"route-form-strip-path",disabled:!((_=s.value.paths)!=null&&_.some(Boolean)),label:e.unref(t)("form.fields.strip_path.label"),"label-attributes":{info:e.unref(t)("form.fields.strip_path.tooltip"),tooltipAttributes:{maxWidth:"320"}}},null,8,["modelValue","disabled","label","label-attributes"])):e.createCommentVNode("",!0),s.value.methods&&y.value.has(e.unref(o).METHODS)?(e.openBlock(),e.createBlock(Xe,{key:"methods-container","custom-methods":E.value,"onUpdate:customMethods":c[4]||(c[4]=b=>E.value=b),methods:s.value.methods,"onUpdate:methods":c[5]||(c[5]=b=>s.value.methods=b)},null,8,["custom-methods","methods"])):e.createCommentVNode("",!0),s.value.hosts&&y.value.has(e.unref(o).HOSTS)?(e.openBlock(),e.createBlock(Ge,{key:"hosts-container",modelValue:s.value.hosts,"onUpdate:modelValue":c[6]||(c[6]=b=>s.value.hosts=b),onAdd:c[7]||(c[7]=b=>m(e.unref(o).HOSTS)),onRemove:c[8]||(c[8]=b=>h(e.unref(o).HOSTS,b))},null,8,["modelValue"])):e.createCommentVNode("",!0),s.value.headers&&n.configType==="advanced"&&y.value.has(e.unref(o).HEADERS)?(e.openBlock(),e.createBlock(Ke,{key:"headers-container",modelValue:s.value.headers,"onUpdate:modelValue":c[9]||(c[9]=b=>s.value.headers=b),onAdd:c[10]||(c[10]=b=>m(e.unref(o).HEADERS)),onRemove:c[11]||(c[11]=b=>h(e.unref(o).HEADERS,b))},null,8,["modelValue"])):e.createCommentVNode("",!0),s.value.sources&&y.value.has(e.unref(o).SOURCES)?(e.openBlock(),e.createBlock(ve,{key:"sources-container",modelValue:s.value.sources,"onUpdate:modelValue":c[12]||(c[12]=b=>s.value.sources=b),onAdd:c[13]||(c[13]=b=>m(e.unref(o).SOURCES)),onRemove:c[14]||(c[14]=b=>h(e.unref(o).SOURCES,b))},null,8,["modelValue"])):e.createCommentVNode("",!0),s.value.destinations&&y.value.has(e.unref(o).DESTINATIONS)?(e.openBlock(),e.createBlock(Fe,{key:"destinations-container",modelValue:s.value.destinations,"onUpdate:modelValue":c[15]||(c[15]=b=>s.value.destinations=b),onAdd:c[16]||(c[16]=b=>m(e.unref(o).DESTINATIONS)),onRemove:c[17]||(c[17]=b=>h(e.unref(o).DESTINATIONS,b))},null,8,["modelValue"])):e.createCommentVNode("",!0),s.value.snis&&n.configType==="advanced"&&y.value.has(e.unref(o).SNIS)?(e.openBlock(),e.createBlock(Ye,{key:"snis-container",modelValue:s.value.snis,"onUpdate:modelValue":c[18]||(c[18]=b=>s.value.snis=b),onAdd:c[19]||(c[19]=b=>m(e.unref(o).SNIS)),onRemove:c[20]||(c[20]=b=>h(e.unref(o).SNIS,b))},null,8,["modelValue"])):e.createCommentVNode("",!0)]}),_:1}),n.hideAdvanced?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",ot,[(f=s.value.paths)!=null&&f.some(Boolean)?(e.openBlock(),e.createBlock(P,{key:0,modelValue:s.value.path_handling,"onUpdate:modelValue":c[21]||(c[21]=_=>s.value.path_handling=_),"data-testid":"route-form-path-handling",items:e.unref(Te),label:e.unref(t)("form.fields.path_handling.label"),"label-attributes":{info:e.unref(t)("form.fields.path_handling.tooltip"),tooltipAttributes:{maxWidth:"320"}},readonly:n.readonly,width:"100%"},null,8,["modelValue","items","label","label-attributes","readonly"])):e.createCommentVNode("",!0),e.createVNode(P,{modelValue:s.value.https_redirect_status_code,"onUpdate:modelValue":c[22]||(c[22]=_=>s.value.https_redirect_status_code=_),"data-testid":"route-form-http-redirect-status-code",items:e.unref(me),label:e.unref(t)("form.fields.https_redirect_status_code.label"),"label-attributes":{info:e.unref(t)("form.fields.https_redirect_status_code.tooltip"),tooltipAttributes:{maxWidth:"320"}},readonly:n.readonly,width:"100%"},null,8,["modelValue","items","label","label-attributes","readonly"]),e.createVNode(B,{modelValue:s.value.regex_priority,"onUpdate:modelValue":c[23]||(c[23]=_=>s.value.regex_priority=_),autocomplete:"off","data-testid":"route-form-regex-priority",label:e.unref(t)("form.fields.regex_priority.label"),"label-attributes":{info:e.unref(t)("form.fields.regex_priority.tooltip"),tooltipAttributes:{maxWidth:"320"}},readonly:n.readonly,type:"number"},null,8,["modelValue","label","label-attributes","readonly"]),e.createVNode(g,{modelValue:s.value.preserve_host,"onUpdate:modelValue":c[24]||(c[24]=_=>s.value.preserve_host=_),"data-testid":"route-form-preserve-host",label:e.unref(t)("form.fields.preserve_host.label"),"label-attributes":{info:e.unref(t)("form.fields.preserve_host.tooltip"),tooltipAttributes:{maxWidth:"320"}}},null,8,["modelValue","label","label-attributes"]),e.createVNode(g,{modelValue:s.value.request_buffering,"onUpdate:modelValue":c[25]||(c[25]=_=>s.value.request_buffering=_),"data-testid":"route-form-request-buffering",label:e.unref(t)("form.fields.request_buffering.label"),"label-attributes":{info:e.unref(t)("form.fields.request_buffering.tooltip"),tooltipAttributes:{maxWidth:"320"}}},null,8,["modelValue","label","label-attributes"]),e.createVNode(g,{modelValue:s.value.response_buffering,"onUpdate:modelValue":c[26]||(c[26]=_=>s.value.response_buffering=_),"data-testid":"route-form-response-buffering",label:e.unref(t)("form.fields.response_buffering.label"),"label-attributes":{info:e.unref(t)("form.fields.response_buffering.tooltip"),tooltipAttributes:{maxWidth:"320"}}},null,8,["modelValue","label","label-attributes"])]))]}),_:1})}}}),[["__scopeId","data-v-8bcc8a9f"]]),rt=e.defineComponent({__name:"RouteFormExpressionsEditorLoader",props:e.mergeModels({protocol:{},showExpressionsModalEntry:{type:Boolean}},{modelValue:{required:!0},modelModifiers:{}}),emits:e.mergeModels(["notify"],["update:modelValue"]),setup(r,{emit:V}){const{i18n:{t:u}}=H.useI18n(),t={render:()=>e.h("div",u("form.expressions_editor.loading"))},a={render:()=>e.h("div",u("form.expressions_editor.error"))},d=e.defineAsyncComponent({loader:async()=>Promise.resolve().then(()=>Vt),loadingComponent:t,errorComponent:a}),s=r,E=V,m=e.ref(Q.LOADING),h=e.useModel(r,"modelValue"),p=y=>{h.value=y};return e.onMounted(async()=>{try{await(await import("@kong-ui-public/expressions")).asyncInit,m.value=Q.READY}catch(y){m.value=Q.ERROR,console.error(y)}}),(y,I)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[m.value===e.unref(Q).ERROR?(e.openBlock(),e.createBlock(e.resolveDynamicComponent(a),{key:0,"data-testid":"route-form-expressions-editor-loader-error"})):m.value===e.unref(Q).LOADING?(e.openBlock(),e.createBlock(e.resolveDynamicComponent(t),{key:1,"data-testid":"route-form-expressions-editor-loader-loading"})):(e.openBlock(),e.createBlock(e.unref(d),{key:2,modelValue:h.value,"onUpdate:modelValue":I[0]||(I[0]=R=>h.value=R),protocol:s.protocol,"show-expressions-modal-entry":y.showExpressionsModalEntry,onNotify:I[1]||(I[1]=R=>E("notify",R))},{default:e.withCtx(()=>[e.createVNode(e.unref(X.RocketIcon),{size:e.unref(Pe)},null,8,["size"]),e.createElementVNode("span",null,e.toDisplayString(e.unref(u)("form.expression_playground.test_link")),1)]),_:1},8,["modelValue","protocol","show-expressions-modal-entry"])),e.renderSlot(y.$slots,"after-editor",{expression:{value:h.value,update:p},state:m.value})],64))}}),lt={class:"route-form-routing-rules-title-container"},st={class:"routing-rules-title"},nt={class:"route-form-fields-container route-form-advanced-fields-container"},at=U(e.defineComponent({__name:"ExpressionsRules",props:e.mergeModels({protocols:{},hideAdvanced:{type:Boolean},readonly:{type:Boolean},showExpressionsModalEntry:{type:Boolean}},{fields:{required:!0},fieldsModifiers:{}}),emits:e.mergeModels(["notify"],["update:fields"]),setup(r,{emit:V}){const{i18n:{t:u}}=H.useI18n(),t=r,a=e.useModel(r,"fields"),d=V,s=e.ref(!0),E=e.computed(()=>t.protocols.split(",")||[]),m=h=>h.some(p=>t.protocols.includes(p));return(h,p)=>{const y=e.resolveComponent("KCard"),I=e.resolveComponent("KSelect"),R=e.resolveComponent("KInput"),n=e.resolveComponent("KCheckbox"),c=e.resolveComponent("KCollapse");return e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createVNode(y,null,{title:e.withCtx(()=>[e.createElementVNode("div",lt,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(E.value,g=>(e.openBlock(),e.createElementBlock("span",{key:g,class:"protocol-title"},e.toDisplayString(g.toUpperCase()),1))),128)),e.createElementVNode("span",st,e.toDisplayString(e.unref(u)("form.sections.routingExpression.title")),1)])]),default:e.withCtx(()=>[e.createVNode(rt,{modelValue:a.value.expression,"onUpdate:modelValue":p[0]||(p[0]=g=>a.value.expression=g),protocol:E.value[0],"show-expressions-modal-entry":h.showExpressionsModalEntry,onNotify:p[1]||(p[1]=g=>d("notify",g))},{"after-editor":e.withCtx(g=>[e.renderSlot(h.$slots,"after-expressions-editor",{expression:g.expression,state:g.state},void 0,!0)]),_:3},8,["modelValue","protocol","show-expressions-modal-entry"])]),_:3}),e.createVNode(c,{modelValue:s.value,"onUpdate:modelValue":p[8]||(p[8]=g=>s.value=g),class:"route-form-advanced-fields-collapse","trigger-alignment":"leading","trigger-label":e.unref(u)("form.show_more")},{default:e.withCtx(()=>[e.createVNode(y,null,{default:e.withCtx(()=>[e.createElementVNode("div",nt,[e.createVNode(I,{modelValue:a.value.https_redirect_status_code,"onUpdate:modelValue":p[2]||(p[2]=g=>a.value.https_redirect_status_code=g),"data-testid":"route-form-http-redirect-status-code",items:e.unref(me),label:e.unref(u)("form.fields.https_redirect_status_code.label"),readonly:h.readonly,width:"100%"},null,8,["modelValue","items","label","readonly"]),e.createVNode(R,{modelValue:a.value.priority,"onUpdate:modelValue":p[3]||(p[3]=g=>a.value.priority=g),autocomplete:"off","data-testid":"route-form-priority",label:e.unref(u)("form.fields.priority.label"),"label-attributes":{info:e.unref(u)("form.fields.priority.tooltip"),tooltipAttributes:{maxWidth:"400"}},readonly:h.readonly,type:"number"},null,8,["modelValue","label","label-attributes","readonly"]),m(["http","https","ws","wss","tls","tcp","udp","tls_passthrough"])?(e.openBlock(),e.createBlock(n,{key:0,modelValue:a.value.strip_path,"onUpdate:modelValue":p[4]||(p[4]=g=>a.value.strip_path=g),"data-testid":"route-form-strip-path",label:e.unref(u)("form.fields.strip_path.label")},null,8,["modelValue","label"])):e.createCommentVNode("",!0),e.createVNode(n,{modelValue:a.value.preserve_host,"onUpdate:modelValue":p[5]||(p[5]=g=>a.value.preserve_host=g),"data-testid":"route-form-preserve-host",label:e.unref(u)("form.fields.preserve_host.label")},null,8,["modelValue","label"]),e.createVNode(n,{modelValue:a.value.request_buffering,"onUpdate:modelValue":p[6]||(p[6]=g=>a.value.request_buffering=g),"data-testid":"route-form-request-buffering",label:e.unref(u)("form.fields.request_buffering.label")},null,8,["modelValue","label"]),e.createVNode(n,{modelValue:a.value.response_buffering,"onUpdate:modelValue":p[7]||(p[7]=g=>a.value.response_buffering=g),"data-testid":"route-form-response-buffering",label:e.unref(u)("form.fields.response_buffering.label")},null,8,["modelValue","label"])])]),_:1})]),_:1},8,["modelValue","trigger-label"])],64)}}}),[["__scopeId","data-v-e7571a47"]]),it={class:"config-type-container"},dt={key:0,class:"config-flavor"},Ve=U(e.defineComponent({__name:"RouteFormRulesComposer",props:e.mergeModels({protocols:{},routeFlavors:{},readonly:{type:Boolean},recordFlavor:{},showExpressionsModalEntry:{type:Boolean},tooltips:{},isWsSupported:{type:Boolean}},{configType:{required:!0},configTypeModifiers:{},configFlavor:{required:!0},configFlavorModifiers:{},fields:{default:()=>e.reactive({...ae,paths:[""],regex_priority:0,path_handling:"v0",expression:"",priority:0})},fieldsModifiers:{},customMethods:{default:()=>e.reactive([])},customMethodsModifiers:{}}),emits:e.mergeModels(["notify","update:payload","update:protocols"],["update:configType","update:configFlavor","update:fields","update:customMethods"]),setup(r,{emit:V}){const u=r,t=e.useModel(r,"configType"),a=e.useModel(r,"configFlavor"),d=e.useModel(r,"fields"),s=e.useModel(r,"customMethods"),E=V,{i18n:{t:m}}=H.useI18n(),h=[{value:D.TRADITIONAL,label:m("form.flavors.traditional")},{value:D.EXPRESSIONS,label:m("form.flavors.expressions")}],p=e.computed(()=>[{label:m("form.protocols.grpc"),value:"grpc"},{label:m("form.protocols.grpcs"),value:"grpcs"},{label:m("form.protocols.grpc,grpcs"),value:"grpc,grpcs"},{label:m("form.protocols.http"),value:"http"},{label:m("form.protocols.https"),value:"https"},{label:m("form.protocols.http,https"),value:"http,https"},{label:m("form.protocols.tcp"),value:"tcp"},{label:m("form.protocols.tls"),value:"tls"},{label:m("form.protocols.tls,udp"),value:"tls,udp"},{label:m("form.protocols.tcp,udp"),value:"tcp,udp"},{label:m("form.protocols.tcp,tls"),value:"tcp,tls"},{label:m("form.protocols.tcp,tls,udp"),value:"tcp,tls,udp"},{label:m("form.protocols.tls_passthrough"),value:"tls_passthrough"},{label:m("form.protocols.udp"),value:"udp"},...u.isWsSupported?[{label:m("form.protocols.ws"),value:"ws"},{label:m("form.protocols.wss"),value:"wss"},{label:m("form.protocols.ws,wss"),value:"ws,wss"}]:[]]),y=e.computed(()=>u.recordFlavor?u.recordFlavor:a.value),I=(f,_)=>{if(!new Set(ce[u.protocols]).has(f))return[];if([o.PATHS,o.HOSTS,o.METHODS,o.SNIS].includes(f))return[..._].filter(O=>!!O);if(f===o.SOURCES||f===o.DESTINATIONS)return[..._].filter(O=>!!O.ip).map(O=>({...O,port:!O.port&&O.port!==0?null:O.port}));if(f===o.HEADERS)return[..._].filter(O=>!!O.header)},R=f=>f.some(_=>u.protocols.includes(_)),n=()=>{if(y.value!==D.TRADITIONAL)return null;const f=d.value,_=I(o.HEADERS,f.headers||[])||M[o.HEADERS];return _.length===0?null:_.reduce((b,O)=>(b[O.header]=O.values.split(","),b),{})},c=e.computed(()=>(d.value.methods||[]).filter(b=>Object.keys(Y).includes(b)).concat(s.value.map(b=>b.label.toUpperCase()))),g=f=>f!=null&&f.length?f:null,P=e.computed(()=>({https_redirect_status_code:d.value.https_redirect_status_code,strip_path:R(["http","https","ws","wss"])?d.value.strip_path:!1,preserve_host:d.value.preserve_host,request_buffering:d.value.request_buffering,response_buffering:d.value.response_buffering})),B=e.computed(()=>{switch(y.value){case D.TRADITIONAL:{const f=d.value,_=g(I(o.PATHS,f.paths||[])),b=g(I(o.HOSTS,f.hosts||[])),O={...P.value,methods:g(I(o.METHODS,c.value)),hosts:t.value==="basic"&&b?b.slice(0,1):b,paths:t.value==="basic"&&_?_.slice(0,1):_,headers:t.value==="basic"?null:n(),regex_priority:Number(f.regex_priority),path_handling:f.path_handling,sources:g(I(o.SOURCES,f.sources||[])),destinations:g(I(o.DESTINATIONS,f.destinations||[])),snis:t.value==="basic"?null:g(I(o.SNIS,f.snis||[]))};return{type:y.value,payload:O}}case D.EXPRESSIONS:{const f=d.value;return{type:y.value,payload:{...P.value,expression:f.expression,priority:Number(f.priority)}}}default:return}}),q=f=>{f&&E("update:protocols",f)};return e.watch([()=>u.recordFlavor,()=>u.routeFlavors],([f,_])=>{if(f){a.value=f;return}a.value=!_.traditional&&_.expressions?D.EXPRESSIONS:D.TRADITIONAL},{immediate:!0,deep:!0}),e.watch(t,f=>{f==="basic"&&(a.value=D.TRADITIONAL,E("update:protocols","http,https"))}),e.watch(B,f=>{E("update:payload",f)},{deep:!0,immediate:!0}),(f,_)=>{const b=e.resolveComponent("KRadio"),O=e.resolveComponent("KLabel"),ie=e.resolveComponent("KTooltip"),de=e.resolveComponent("KSegmentedControl"),$=e.resolveComponent("KAlert"),re=e.resolveComponent("KSelect");return e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createElementVNode("div",it,[e.createVNode(b,{modelValue:t.value,"onUpdate:modelValue":_[0]||(_[0]=x=>t.value=x),card:"","card-orientation":"horizontal","data-testid":"route-form-config-type-basic",description:e.unref(m)("form.config_types.basic.description"),disabled:!f.routeFlavors.traditional||f.recordFlavor===e.unref(D).EXPRESSIONS,label:e.unref(m)("form.config_types.basic.label"),"selected-value":"basic"},null,8,["modelValue","description","disabled","label"]),e.createVNode(b,{modelValue:t.value,"onUpdate:modelValue":_[1]||(_[1]=x=>t.value=x),card:"","card-orientation":"horizontal","data-testid":"route-form-config-type-advanced",description:e.unref(m)("form.config_types.advanced.description"),label:e.unref(m)("form.config_types.advanced.label"),"selected-value":"advanced"},null,8,["modelValue","description","label"])]),t.value==="basic"?(e.openBlock(),e.createBlock(Ne,{key:0,"custom-methods":s.value,"onUpdate:customMethods":_[2]||(_[2]=x=>s.value=x),fields:d.value,"onUpdate:fields":_[3]||(_[3]=x=>d.value=x),"config-type":"basic","hide-advanced":"",protocols:f.protocols,readonly:f.readonly},null,8,["custom-methods","fields","protocols","readonly"])):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[f.routeFlavors.traditional&&f.routeFlavors.expressions?(e.openBlock(),e.createElementBlock("div",dt,[e.createVNode(O,{class:"config-flavor-label"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(m)("form.config_flavor.label")),1)]),_:1}),e.createVNode(de,{modelValue:a.value,"onUpdate:modelValue":_[4]||(_[4]=x=>a.value=x),class:"config-flavor-control","data-testid":"route-form-config-flavor",options:h},{"option-label":e.withCtx(({option:x})=>{var Z,z;return[e.createElementVNode("span",null,e.toDisplayString(x.label),1),(Z=f.tooltips)!=null&&Z[x.value]?(e.openBlock(),e.createBlock(ie,{key:0,class:"route-form-config-tabs-tooltip",text:(z=f.tooltips)==null?void 0:z[x.value],"tooltip-id":`route-form-config-tabs-tooltip-${x.value}`},{default:e.withCtx(()=>[e.createVNode(e.unref(X.InfoIcon))]),_:2},1032,["text","tooltip-id"])):e.createCommentVNode("",!0)]}),_:1},8,["modelValue"])])):e.createCommentVNode("",!0),f.routeFlavors.traditional&&f.routeFlavors.expressions&&(!f.recordFlavor||f.recordFlavor!==a.value)?(e.openBlock(),e.createBlock($,{key:1,appearance:f.recordFlavor?"warning":"info",class:"route-form-config-type-immutable-alert","data-testid":"route-config-type-immutable-alert"},{default:e.withCtx(()=>[f.recordFlavor?f.recordFlavor!==a.value?(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createTextVNode(e.toDisplayString(e.unref(m)("form.warning.cannotChangeFlavor.edit",{format:e.unref(m)(`form.flavors.${f.recordFlavor}`)})),1)],64)):e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createTextVNode(e.toDisplayString(e.unref(m)("form.warning.cannotChangeFlavor.create")),1)],64))]),_:1},8,["appearance"])):e.createCommentVNode("",!0),!f.recordFlavor||!(f.routeFlavors.traditional&&f.routeFlavors.expressions&&f.recordFlavor!==a.value)?(e.openBlock(),e.createElementBlock(e.Fragment,{key:2},[e.createVNode(re,{"data-testid":"route-form-protocols",items:p.value,label:e.unref(m)("form.fields.protocols.label"),"label-attributes":{info:e.unref(m)("form.fields.protocols.tooltip"),tooltipAttributes:{maxWidth:"400"}},"model-value":f.protocols,readonly:f.readonly,required:"",width:"100%","onUpdate:modelValue":q},null,8,["items","label","label-attributes","model-value","readonly"]),a.value===e.unref(D).TRADITIONAL?(e.openBlock(),e.createBlock(Ne,{key:0,"custom-methods":s.value,"onUpdate:customMethods":_[5]||(_[5]=x=>s.value=x),fields:d.value,"onUpdate:fields":_[6]||(_[6]=x=>d.value=x),"config-type":"advanced",protocols:f.protocols,readonly:f.readonly},null,8,["custom-methods","fields","protocols","readonly"])):(e.openBlock(),e.createBlock(at,{key:1,fields:d.value,"onUpdate:fields":_[7]||(_[7]=x=>d.value=x),protocols:f.protocols,readonly:f.readonly,"show-expressions-modal-entry":f.showExpressionsModalEntry,onNotify:_[8]||(_[8]=x=>E("notify",x))},null,8,["fields","protocols","readonly","show-expressions-modal-entry"]))],64)):e.createCommentVNode("",!0)],64))],64)}}}),[["__scopeId","data-v-e1425b7c"]]),ct=r=>{var u,t,a,d,s,E;return!(typeof r.expression=="string"&&r.expression.length>0||(r.protocols||[]).sort().join(",")!=="http,https"||((u=r[o.PATHS])==null?void 0:u.length)>1||((t=r[o.HOSTS])==null?void 0:t.length)>1||((a=r[o.HEADERS])==null?void 0:a.length)>0||((d=r[o.SNIS])==null?void 0:d.length)>0||((s=r[o.SOURCES])==null?void 0:s.length)>0||((E=r[o.DESTINATIONS])==null?void 0:E.length)>0||["path_handling","regex_priority","https_redirect_status_code","preserve_host","request_buffering","response_buffering"].some(m=>r[m]!==ke[m]))},pt={class:"kong-ui-entities-route-form"},ft={key:1},ut={"data-testid":"no-search-results"},mt={class:"route-form-service-dropdown-item"},ht={class:"select-item-label"},gt={class:"select-item-description"},yt=U(e.defineComponent({__name:"RouteForm",props:{config:{type:Object,required:!0,validator:r=>!(!r||!["konnect","kongManager"].includes(r==null?void 0:r.app)||(r==null?void 0:r.app)==="konnect"&&!(r!=null&&r.controlPlaneId)||(r==null?void 0:r.app)==="kongManager"&&typeof(r==null?void 0:r.workspace)!="string"||!(r!=null&&r.cancelRoute))},routeId:{type:String,required:!1,default:""},serviceId:{type:String,required:!1,default:""},hideSectionsInfo:{type:Boolean,required:!1,default:!1},hideNameField:{type:Boolean,required:!1,default:!1},hideServiceField:{type:Boolean,required:!1,default:!1},routeFlavors:{type:Object,required:!1,default:()=>({traditional:!0})},configTabTooltips:{type:Object,required:!1,default:()=>{}},showExpressionsModalEntry:{type:Boolean,required:!1,default:!1}},emits:["update","error","loading","model-updated","notify"],setup(r,{expose:V,emit:u}){var se;const t=r,a=u,d=e.ref("basic"),s=e.ref(!t.routeFlavors.traditional&&t.routeFlavors.expressions?D.EXPRESSIONS:D.TRADITIONAL),E=e.ref(void 0),m=e.computed(()=>{if(E.value)return E.value;if(s.value)return s.value;if(t.routeFlavors.traditional)return D.TRADITIONAL;if(t.routeFlavors.expressions)return D.EXPRESSIONS}),{i18n:{t:h}}=H.useI18n(),p=Ce.useRouter(),{axiosInstance:y}=N.useAxios((se=t.config)==null?void 0:se.axiosRequestConfig),{getMessageFromError:I}=N.useErrors(),R=l=>l.name?`${l.name} - ${l.value}`:l.value,n=e.reactive({routeFlavors:t.routeFlavors,fields:{name:"",protocols:"http,https",tags:"",service_id:"",...ae,paths:[""],snis:[""],hosts:[""],methods:[],headers:[{...M[o.HEADERS][0]}],sources:[{...M[o.SOURCES][0]}],destinations:[{...M[o.DESTINATIONS][0]}],regex_priority:0,path_handling:"v0",expression:"",priority:0},isReadonly:!1,errorMessage:""});e.watch(()=>t.routeFlavors,l=>{n.routeFlavors=l,l.traditional||(d.value="advanced")},{immediate:!0,deep:!0});const c=e.ref(),g=e.ref([]),P=e.ref([]),B=e.reactive({name:"",protocols:"http,https",tags:"",service_id:"",...ae,path_handling:"v0",regex_priority:0,expression:"",priority:0}),q=t.config.app==="konnect"||N.useGatewayFeatureSupported({gatewayInfo:t.config.gatewayInfo,supportedRange:{enterprise:["3.0"]}}),f=e.computed(()=>t.routeId?N.EntityBaseFormType.Edit:N.EntityBaseFormType.Create),_=e.computed(()=>{var l,i,S;return(S=(i=ee.form[(l=t.config)==null?void 0:l.app])==null?void 0:i.fetch)==null?void 0:S[t.serviceId?"forGatewayService":"all"].replace(/{serviceId}/gi,t.serviceId||"")}),b=()=>{var l;p.push((l=t.config)==null?void 0:l.cancelRoute)},O=l=>{a("loading",l)},ie=l=>{a("error",l)},de=l=>Object.entries(l).map(i=>{var S;return{header:i[0],values:(S=i[1])==null?void 0:S.join()}}),$=l=>l.some(i=>n.fields.protocols.includes(i)),re=l=>{var S,T;if(t.routeId){const C=typeof l.expression=="string"&&l.expression.length>0?D.EXPRESSIONS:D.TRADITIONAL;E.value=C,ct(l)||(d.value="advanced")}(S=l==null?void 0:l.service)!=null&&S.id&&(n.fields.service_id=l.service.id),n.fields.name=(l==null?void 0:l.name)||"";const i=(l==null?void 0:l.tags)||[];n.fields.tags=(i==null?void 0:i.join(", "))||"",n.fields.preserve_host=typeof(l==null?void 0:l.preserve_host)>"u"?!1:l==null?void 0:l.preserve_host,n.fields.https_redirect_status_code=(l==null?void 0:l.https_redirect_status_code)||426,(T=l==null?void 0:l.protocols)!=null&&T.length&&(l.protocols.length>1?n.fields.protocols=l.protocols.join():n.fields.protocols=l.protocols[0]),n.fields.request_buffering=typeof(l==null?void 0:l.request_buffering)>"u"?!0:l==null?void 0:l.request_buffering,n.fields.response_buffering=typeof(l==null?void 0:l.response_buffering)>"u"?!0:l==null?void 0:l.response_buffering,n.fields.strip_path=typeof(l==null?void 0:l.strip_path)>"u"?!0:l==null?void 0:l.strip_path,fe(n)&&(n.fields.regex_priority=(l==null?void 0:l.regex_priority)||0,n.fields.path_handling=(l==null?void 0:l.path_handling)||"v0",l!=null&&l.paths&&(n.fields.paths=l.paths),l!=null&&l.snis&&(n.fields.snis=l.snis),l!=null&&l.hosts&&(n.fields.hosts=l.hosts),l!=null&&l.methods&&(n.fields.methods=l.methods.filter(C=>Object.keys(Y).includes(C)),g.value=l.methods.filter(C=>!Object.keys(Y).includes(C)).map(C=>({label:C,value:C})),P.value=[...g.value]),l!=null&&l.headers&&(n.fields.headers=de(l.headers)),l!=null&&l.sources&&(n.fields.sources=l.sources),l!=null&&l.destinations&&(n.fields.destinations=l.destinations)),ue(n)&&(n.fields.expression=(l==null?void 0:l.expression)||"",n.fields.priority=(l==null?void 0:l.priority)||0),Object.assign(B,JSON.parse(JSON.stringify(n.fields)))},x=e.computed(()=>{switch(m.value){case D.TRADITIONAL:{if(fe(n)){const l=n.fields.hosts?!!n.fields.hosts.filter(Boolean).length:null,i=n.fields.paths?!!n.fields.paths.filter(Boolean).length:null,S=n.fields.headers?n.fields.headers.some(({header:W})=>!!W):null,T=n.fields.snis?!!n.fields.snis.filter(Boolean).length:null,C=n.fields.destinations?n.fields.destinations.some(({ip:W})=>!!W):null,K=n.fields.sources?n.fields.sources.some(({ip:W})=>!!W):null,G=n.fields.methods?!!n.fields.methods.filter(Boolean).length:null;return!!n.fields.protocols&&($(["http"])&&!!(l||G||i||S)||$(["https"])&&!!(l||G||i||S||T)||$(["grpc"])&&!!(l||i||S)||$(["grpcs","wss"])&&!!(l||i||S||T)||$(["udp","tls"])&&!!(C||K||T)||$(["tcp"])&&!!(C||K)||$(["tls_passthrough"])&&!!T||$(["ws"])&&!!(l||i||S))}break}case D.EXPRESSIONS:{if(ue(n))return n.fields.expression.length>0;break}}return!0}),Z=e.computed(()=>!_e(n.fields,B)||!_e(g.value,P.value)),z=e.computed(()=>{var i,S;let l=`${t.config.apiBaseUrl}${ee.form[t.config.app][f.value][t.serviceId?"forGatewayService":"all"]}`;return t.config.app==="konnect"?l=l.replace(/{controlPlaneId}/gi,((i=t.config)==null?void 0:i.controlPlaneId)||"").replace(/{serviceId}/gi,t.serviceId||""):t.config.app==="kongManager"&&(l=l.replace(/\/{workspace}/gi,(S=t.config)!=null&&S.workspace?`/${t.config.workspace}`:"").replace(/{serviceId}/gi,t.serviceId||"")),l=l.replace(/{id}/gi,t.routeId),l});e.watch(()=>n.fields,()=>{a("model-updated",v.value)},{deep:!0});const v=e.computed(()=>{var l,i,S;return{...!t.hideNameField&&{name:n.fields.name||null},protocols:n.fields.protocols.split(","),tags:(i=(l=n.fields.tags.split(","))==null?void 0:l.map(T=>String(T||"").trim()))==null?void 0:i.filter(T=>T!==""),service:n.fields.service_id?{id:n.fields.service_id}:null,...(S=c.value)==null?void 0:S.payload}}),j=l=>{switch(m.value){case D.TRADITIONAL:{if(!("regex_priority"in l&&"path_handling"in l))return!1;break}case D.EXPRESSIONS:{if(!("priority"in l))return!1;break}}return"service"in l&&"tags"in l&&"protocols"in l},J=async l=>{var S;const i=l&&j(l)?l:v.value;try{n.isReadonly=!0;let T;f.value==="create"?T=await y.post(z.value,i):f.value==="edit"&&(T=((S=t.config)==null?void 0:S.app)==="konnect"?await y.put(z.value,i):await y.patch(z.value,i)),re(T==null?void 0:T.data),a("update",T==null?void 0:T.data)}catch(T){n.errorMessage=I(T),a("error",T)}finally{n.isReadonly=!1}},{debouncedQueryChange:le,loading:pe,error:he,loadItems:ge,results:ye}=N.useDebouncedFilter(t.config,ee.form[t.config.app].services,void 0,{fetchedItemsKey:"data",searchKeys:["id","name"]}),Se=e.computed(()=>he.value?h("errors.services.fetch"):""),be=e.computed(()=>{var l;return(l=ye.value)==null?void 0:l.map(i=>({label:i.id,name:i.name,value:i.id}))});return e.onBeforeMount(async()=>{!t.hideServiceField&&!t.serviceId?await ge():n.fields.service_id=t.serviceId}),e.onMounted(()=>{a("model-updated",v.value)}),V({saveFormData:J,payload:v}),e.provide("configType",d),(l,i)=>{const S=e.resolveComponent("KInput"),T=e.resolveComponent("KSelect");return e.openBlock(),e.createElementBlock("div",pt,[e.createVNode(e.unref(N.EntityBaseForm),{"can-submit":x.value&&Z.value,config:r.config,"edit-id":r.routeId,"entity-type":e.unref(N.SupportedEntityType).Route,"error-message":n.errorMessage||Se.value,"fetch-url":_.value,"form-fields":v.value,"is-readonly":n.isReadonly,onCancel:b,"onFetch:error":ie,"onFetch:success":re,onLoading:O,onSubmit:J},{"form-actions":e.withCtx(()=>[e.renderSlot(l.$slots,"form-actions",{canSubmit:x.value&&Z.value,cancel:b,submit:J},void 0,!0)]),default:e.withCtx(()=>[e.createVNode(e.unref(N.EntityFormSection),{description:e.unref(h)("form.sections.general.description"),"hide-info-header":r.hideSectionsInfo,title:e.unref(h)("form.sections.general.title")},{default:e.withCtx(()=>[r.hideNameField?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(S,{key:0,modelValue:n.fields.name,"onUpdate:modelValue":i[0]||(i[0]=C=>n.fields.name=C),modelModifiers:{trim:!0},autocomplete:"off","data-testid":"route-form-name",label:e.unref(h)("form.fields.name.label"),placeholder:e.unref(h)("form.fields.name.placeholder"),readonly:n.isReadonly,type:"text"},null,8,["modelValue","label","placeholder","readonly"])),!r.hideServiceField&&!r.serviceId?(e.openBlock(),e.createElementBlock("div",ft,[e.createVNode(T,{modelValue:n.fields.service_id,"onUpdate:modelValue":i[1]||(i[1]=C=>n.fields.service_id=C),clearable:"","data-testid":"route-form-service-id","enable-filtering":"","filter-function":()=>!0,items:be.value,label:e.unref(h)("form.fields.service_id.label"),loading:e.unref(pe),placeholder:e.unref(h)("form.fields.service_id.placeholder"),readonly:n.isReadonly,"reuse-item-template":"",width:"100%",onQueryChange:e.unref(le)},{loading:e.withCtx(()=>[e.createElementVNode("div",null,e.toDisplayString(e.unref(h)("actions.loading")),1)]),empty:e.withCtx(()=>[e.createElementVNode("div",ut,e.toDisplayString(e.unref(h)("search.no_results")),1)]),"selected-item-template":e.withCtx(({item:C})=>[e.createTextVNode(e.toDisplayString(R(C)),1)]),"item-template":e.withCtx(({item:C})=>[e.createElementVNode("div",mt,[e.createElementVNode("span",ht,e.toDisplayString(C.name),1),e.createElementVNode("span",gt,e.toDisplayString(C.value),1)])]),_:1},8,["modelValue","items","label","loading","placeholder","readonly","onQueryChange"])])):e.createCommentVNode("",!0),e.createVNode(S,{modelValue:n.fields.tags,"onUpdate:modelValue":i[2]||(i[2]=C=>n.fields.tags=C),modelModifiers:{trim:!0},autocomplete:"off","data-testid":"route-form-tags",help:e.unref(h)("form.fields.tags.help"),label:e.unref(h)("form.fields.tags.label"),placeholder:e.unref(h)("form.fields.tags.placeholder"),readonly:n.isReadonly,type:"text"},null,8,["modelValue","help","label","placeholder","readonly"])]),_:1},8,["description","hide-info-header","title"]),e.createVNode(e.unref(N.EntityFormSection),{description:e.unref(h)("form.sections.config.description"),"hide-info-header":r.hideSectionsInfo,title:e.unref(h)("form.sections.config.title")},{default:e.withCtx(()=>[e.createVNode(Ve,{"config-flavor":s.value,"onUpdate:configFlavor":i[3]||(i[3]=C=>s.value=C),"config-type":d.value,"onUpdate:configType":i[4]||(i[4]=C=>d.value=C),"custom-methods":g.value,"onUpdate:customMethods":i[5]||(i[5]=C=>g.value=C),fields:n.fields,"onUpdate:fields":i[6]||(i[6]=C=>n.fields=C),"is-ws-supported":e.unref(q),protocols:n.fields.protocols,readonly:n.isReadonly,"record-flavor":E.value,"route-flavors":r.routeFlavors,"show-expressions-modal-entry":r.showExpressionsModalEntry,tooltips:r.configTabTooltips,onNotify:i[7]||(i[7]=C=>a("notify",C)),"onUpdate:payload":i[8]||(i[8]=C=>c.value=C),"onUpdate:protocols":i[9]||(i[9]=C=>n.fields.protocols=C)},null,8,["config-flavor","config-type","custom-methods","fields","is-ws-supported","protocols","readonly","record-flavor","route-flavors","show-expressions-modal-entry","tooltips"])]),_:1},8,["description","hide-info-header","title"])]),_:3},8,["can-submit","config","edit-id","entity-type","error-message","fetch-url","form-fields","is-readonly"])])}}}),[["__scopeId","data-v-ba92a78f"]]),St={class:"kong-ui-entities-routes-list"},bt={class:"button-row"},_t={class:"empty-state-icon-gateway"},Ct={key:1},Et={key:1},Tt={key:1},kt={class:"route-list-cell-expression"},Nt=U(e.defineComponent({__name:"RouteList",props:{config:{type:Object,required:!0,validator:r=>!(!r||!["konnect","kongManager"].includes(r==null?void 0:r.app)||!r.createRoute||!r.getViewRoute||!r.getEditRoute||r.app==="kongManager"&&!r.isExactMatch&&!r.filterSchema)},cacheIdentifier:{type:String,default:""},canCreate:{type:Function,required:!1,default:async()=>!0},canDelete:{type:Function,required:!1,default:async()=>!0},canEdit:{type:Function,required:!1,default:async()=>!0},canRetrieve:{type:Function,required:!1,default:async()=>!0},title:{type:String,default:""},titleTag:{type:String,default:"h2"},useActionOutside:{type:Boolean,default:!1},hideTraditionalColumns:{type:Boolean,default:!1},hasExpressionColumn:{type:Boolean,default:!1},enableV2EmptyStates:{type:Boolean,default:!1}},emits:["error","click:learn-more","copy:success","copy:error","delete:success"],setup(r,{emit:V}){var l;const u=V,t=r,{i18n:{t:a,formatUnixTimeStamp:d}}=H.useI18n(),s=Ce.useRouter(),{axiosInstance:E}=N.useAxios((l=t.config)==null?void 0:l.axiosRequestConfig),{handleStateChange:m,hasRecords:h}=N.useTableState(()=>B.value),p=e.computed(()=>h.value&&t.config.app==="konnect"),y=e.computed(()=>!t.enableV2EmptyStates&&t.config.app==="konnect"),I=e.computed(()=>!!t.config.serviceId),R=e.computed(()=>t.config.app!=="kongManager"||!!t.config.disableSorting),n={name:{label:a("routes.list.table_headers.name"),searchable:!0,sortable:!0,hidable:!1},protocols:{label:a("routes.list.table_headers.protocols"),searchable:!0},...!t.hideTraditionalColumns&&{hosts:{label:a("routes.list.table_headers.hosts"),searchable:!0},methods:{label:a("routes.list.table_headers.methods"),searchable:!0},paths:{label:a("routes.list.table_headers.paths"),searchable:!0}},...t.hasExpressionColumn&&{expression:{label:a("routes.list.table_headers.expression"),tooltip:!0}},tags:{label:a("routes.list.table_headers.tags"),sortable:!1},updated_at:{label:a("routes.list.table_headers.updated_at"),sortable:!0},created_at:{label:a("routes.list.table_headers.created_at"),sortable:!0}},c={columnVisibility:{created_at:!1}},g=n,P=e.computed(()=>{var S,T,C,K;let i=`${t.config.apiBaseUrl}${ee.list[t.config.app][t.config.serviceId?"forGatewayService":"all"]}`;return t.config.app==="konnect"?i=i.replace(/{controlPlaneId}/gi,((S=t.config)==null?void 0:S.controlPlaneId)||"").replace(/{serviceId}/gi,((T=t.config)==null?void 0:T.serviceId)||""):t.config.app==="kongManager"&&(i=i.replace(/\/{workspace}/gi,(C=t.config)!=null&&C.workspace?`/${t.config.workspace}`:"").replace(/{serviceId}/gi,((K=t.config)==null?void 0:K.serviceId)||"")),i}),B=e.ref(""),q=e.computed(()=>{const i=t.config.app==="konnect"||t.config.isExactMatch;if(i)return{isExactMatch:i,placeholder:a(`search.placeholder.${t.config.isExactMatch?"exact":t.config.app}`)};const{name:S,protocols:T,hosts:C,methods:K,paths:G,expression:W}=n,k={name:S,protocols:T,hosts:C,methods:K,paths:G,...t.hasExpressionColumn&&{expression:W}};return{isExactMatch:i,fields:k,schema:t.config.filterSchema}}),{fetcher:f,fetcherState:_,fetcherCacheKey:b}=N.useFetcher({...t.config,cacheIdentifier:t.cacheIdentifier},P.value),O=i=>i.headerKey==="expression"?{style:{maxWidth:"250px",overflowX:"hidden",textOverflow:"ellipsis"}}:{},ie=()=>{B.value=""},de=()=>{b.value++},$=e.ref(null),re=async(i,S)=>{const T=i.id;if(!await S(T)){u("copy:error",{entity:i,field:"id",message:a("errors.copy")});return}u("copy:success",{entity:i,field:"id",message:a("copy.success",{val:T})})},x=async(i,S)=>{const T=JSON.stringify(i);if(!await S(T)){u("copy:error",{entity:i,message:a("errors.copy")});return}u("copy:success",{entity:i,message:a("copy.success_brief")})},Z=async i=>{var T;await((T=t.canRetrieve)==null?void 0:T.call(t,i))&&s.push(t.config.getViewRoute(i.id))},z=i=>({label:a("actions.view"),to:t.config.getViewRoute(i)}),v=i=>({label:a("actions.edit"),to:t.config.getEditRoute(i)}),j=e.ref(void 0),J=e.ref(!1),le=e.ref(!1),pe=e.ref(""),he=N.useDeleteUrlBuilder(t.config,P.value),ge=i=>{j.value=i,J.value=!0},ye=()=>{J.value=!1},Se=async()=>{var i,S,T;if((i=j.value)!=null&&i.id){le.value=!0;try{await E.delete(he(j.value.id)),le.value=!1,J.value=!1,b.value++,u("delete:success",j.value)}catch(C){pe.value=((T=(S=C.response)==null?void 0:S.data)==null?void 0:T.message)||C.message||a("errors.delete"),u("error",C)}finally{le.value=!1}}},be=()=>{s.push(t.config.createRoute)};e.watch(_,i=>{var S,T,C;if(i.status===N.FetcherStatus.Error){$.value={title:a("errors.general")},(C=(T=(S=i.error)==null?void 0:S.response)==null?void 0:T.data)!=null&&C.message&&($.value.message=i.error.response.data.message),u("error",i.error);return}$.value=null});const se=e.ref({ctaPath:t.config.createRoute,ctaText:void 0,message:`${a("routes.list.empty_state.description")}${t.config.additionMessageForEmptyState?` ${t.config.additionMessageForEmptyState}`:""}`,title:a("routes.title")});return e.onBeforeMount(async()=>{await t.canCreate()&&(se.value.title=a("routes.list.empty_state.title"),se.value.ctaText=a("actions.create"))}),(i,S)=>{const T=e.resolveComponent("KButton"),C=e.resolveComponent("KBadge"),K=e.resolveComponent("KTruncate"),G=e.resolveComponent("KDropdownItem"),W=e.resolveComponent("KClipboardProvider");return e.openBlock(),e.createElementBlock("div",St,[e.createVNode(e.unref(N.EntityBaseTable),{"cache-identifier":r.cacheIdentifier,"cell-attributes":O,"default-table-preferences":c,"disable-sorting":R.value,"empty-state-options":se.value,"enable-entity-actions":"","error-message":$.value,fetcher:e.unref(f),"fetcher-cache-key":e.unref(b),"pagination-type":"offset","preferences-storage-key":"kong-ui-entities-routes-list",query:B.value,"table-headers":e.unref(g),title:r.title,"title-tag":r.titleTag,onClearSearchInput:ie,"onClick:row":S[8]||(S[8]=k=>Z(k)),onSort:de,onState:e.unref(m)},e.createSlots({"toolbar-filter":e.withCtx(()=>[e.createVNode(e.unref(N.EntityFilter),{modelValue:B.value,"onUpdate:modelValue":S[0]||(S[0]=k=>B.value=k),config:q.value},null,8,["modelValue","config"])]),"toolbar-button":e.withCtx(()=>[(e.openBlock(),e.createBlock(e.Teleport,{disabled:!r.useActionOutside,to:"#kong-ui-app-page-header-action-button"},[e.createElementVNode("div",bt,[!I.value&&p.value?(e.openBlock(),e.createBlock(T,{key:0,appearance:"secondary",class:"open-learning-hub","data-testid":"routes-learn-more-button",icon:"",onClick:S[1]||(S[1]=k=>i.$emit("click:learn-more"))},{default:e.withCtx(()=>[e.createVNode(e.unref(X.BookIcon),{decorative:""})]),_:1})):e.createCommentVNode("",!0),e.createVNode(e.unref(N.PermissionsWrapper),{"auth-function":()=>r.canCreate()},{default:e.withCtx(()=>[e.createVNode(T,{appearance:"primary","data-testid":"toolbar-add-route",size:r.useActionOutside?"medium":"large",to:r.config.createRoute},{default:e.withCtx(()=>[e.createVNode(e.unref(X.AddIcon)),e.createTextVNode(" "+e.toDisplayString(e.unref(a)("routes.list.toolbar_actions.new_route")),1)]),_:1},8,["size","to"])]),_:1},8,["auth-function"])])],8,["disabled"]))]),name:e.withCtx(({rowValue:k})=>[e.createElementVNode("b",null,e.toDisplayString(k??"-"),1)]),protocols:e.withCtx(({rowValue:k})=>[e.createVNode(K,null,{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(k,A=>(e.openBlock(),e.createBlock(C,{key:A,appearance:"neutral",onClick:S[4]||(S[4]=e.withModifiers(()=>{},["stop"]))},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(A),1)]),_:2},1024))),128))]),_:2},1024)]),hosts:e.withCtx(({rowValue:k})=>[(k==null?void 0:k.length)>0?(e.openBlock(),e.createBlock(K,{key:0},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(k,A=>(e.openBlock(),e.createBlock(C,{key:A,appearance:"neutral",tooltip:A,"truncation-tooltip":"",onClick:S[5]||(S[5]=e.withModifiers(()=>{},["stop"]))},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(A),1)]),_:2},1032,["tooltip"]))),128))]),_:2},1024)):(e.openBlock(),e.createElementBlock("span",Ct,"-"))]),methods:e.withCtx(({rowValue:k})=>[(k==null?void 0:k.length)>0?(e.openBlock(),e.createBlock(K,{key:0},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(k,A=>(e.openBlock(),e.createBlock(C,{key:A,appearance:Object.values(e.unref(Ie.BadgeMethodAppearances)).includes(A.toLowerCase())?A.toLowerCase():"custom",onClick:S[6]||(S[6]=e.withModifiers(()=>{},["stop"]))},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(A),1)]),_:2},1032,["appearance"]))),128))]),_:2},1024)):(e.openBlock(),e.createElementBlock("span",Et,"-"))]),paths:e.withCtx(({rowValue:k})=>[(k==null?void 0:k.length)>0?(e.openBlock(),e.createBlock(K,{key:0},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(k,A=>(e.openBlock(),e.createBlock(C,{key:A,appearance:"neutral",tooltip:A,"truncation-tooltip":"",onClick:S[7]||(S[7]=e.withModifiers(()=>{},["stop"]))},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(A),1)]),_:2},1032,["tooltip"]))),128))]),_:2},1024)):(e.openBlock(),e.createElementBlock("span",Tt,"-"))]),tags:e.withCtx(({rowValue:k})=>[e.createVNode(e.unref(N.TableTags),{tags:k},null,8,["tags"])]),expression:e.withCtx(({rowValue:k})=>[e.createElementVNode("span",kt,e.toDisplayString(k||"-"),1)]),created_at:e.withCtx(({rowValue:k})=>[e.createTextVNode(e.toDisplayString(e.unref(d)(k)),1)]),updated_at:e.withCtx(({row:k,rowValue:A})=>[e.createTextVNode(e.toDisplayString(e.unref(d)(A??k.created_at)),1)]),actions:e.withCtx(({row:k})=>[e.createVNode(W,null,{default:e.withCtx(({copyToClipboard:A})=>[e.createVNode(G,{"data-testid":"action-entity-copy-id",onClick:It=>re(k,A)},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(a)("actions.copy_id")),1)]),_:2},1032,["onClick"])]),_:2},1024),e.createVNode(W,null,{default:e.withCtx(({copyToClipboard:A})=>[e.createVNode(G,{"data-testid":"action-entity-copy-json",onClick:It=>x(k,A)},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(a)("actions.copy_json")),1)]),_:2},1032,["onClick"])]),_:2},1024),e.createVNode(e.unref(N.PermissionsWrapper),{"auth-function":()=>r.canRetrieve(k)},{default:e.withCtx(()=>[e.createVNode(G,{"data-testid":"action-entity-view","has-divider":"",item:z(k.id)},null,8,["item"])]),_:2},1032,["auth-function"]),e.createVNode(e.unref(N.PermissionsWrapper),{"auth-function":()=>r.canEdit(k)},{default:e.withCtx(()=>[e.createVNode(G,{"data-testid":"action-entity-edit",item:v(k.id)},null,8,["item"])]),_:2},1032,["auth-function"]),e.createVNode(e.unref(N.PermissionsWrapper),{"auth-function":()=>r.canDelete(k)},{default:e.withCtx(()=>[e.createVNode(G,{danger:"","data-testid":"action-entity-delete","has-divider":"",onClick:A=>ge(k)},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(a)("actions.delete")),1)]),_:2},1032,["onClick"])]),_:2},1032,["auth-function"])]),_:2},[!e.unref(h)&&y.value?{name:"outside-actions",fn:e.withCtx(()=>[(e.openBlock(),e.createBlock(e.Teleport,{disabled:!r.useActionOutside,to:"#kong-ui-app-page-header-action-button"},[e.createVNode(T,{appearance:"secondary",class:"open-learning-hub","data-testid":"routes-learn-more-button",icon:"",onClick:S[2]||(S[2]=k=>i.$emit("click:learn-more"))},{default:e.withCtx(()=>[e.createVNode(e.unref(X.BookIcon),{decorative:""})]),_:1})],8,["disabled"]))]),key:"0"}:void 0,!B.value&&r.enableV2EmptyStates&&r.config.app==="konnect"?{name:"empty-state",fn:e.withCtx(()=>{var k;return[e.createVNode(e.unref(N.EntityEmptyState),{"action-button-text":e.unref(a)("routes.list.toolbar_actions.new_route"),appearance:"secondary","can-create":()=>r.canCreate(),"data-testid":r.config.serviceId?"nested-routes-entity-empty-state":"routes-entity-empty-state",description:e.unref(a)("routes.list.empty_state_v2.description"),"learn-more":r.config.app==="konnect",title:e.unref(a)("routes.list.empty_state_v2.title"),"onClick:create":be,"onClick:learnMore":S[3]||(S[3]=A=>i.$emit("click:learn-more"))},e.createSlots({image:e.withCtx(()=>[e.createElementVNode("div",_t,[e.createVNode(e.unref(X.ForwardIcon),{color:e.unref(Oe),size:e.unref($e)},null,8,["color","size"])])]),_:2},[(k=r.config)!=null&&k.isControlPlaneGroup?{name:"message",fn:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(a)("routes.list.empty_state_v2.group")),1)]),key:"0"}:void 0]),1032,["action-button-text","can-create","data-testid","description","learn-more","title"])]}),key:"1"}:void 0]),1032,["cache-identifier","disable-sorting","empty-state-options","error-message","fetcher","fetcher-cache-key","query","table-headers","title","title-tag","onState"]),e.createVNode(e.unref(N.EntityDeleteModal),{"action-pending":le.value,description:e.unref(a)("delete.description"),"entity-name":j.value&&(j.value.name||j.value.id),"entity-type":e.unref(N.EntityTypes).Route,error:pe.value,title:e.unref(a)("delete.title"),visible:J.value,onCancel:ye,onProceed:Se},null,8,["action-pending","description","entity-name","entity-type","error","title","visible"])])}}}),[["__scopeId","data-v-e949a937"]]),Vt=Object.freeze(Object.defineProperty({__proto__:null,default:e.defineComponent({__name:"RouteFormExpressionsEditor",props:e.mergeModels({protocol:{},showExpressionsModalEntry:{type:Boolean}},{modelValue:{required:!0},modelModifiers:{}}),emits:e.mergeModels(["notify"],["update:modelValue"]),setup(r,{emit:V}){const{i18n:{t:u}}=H.useI18n(),t=r,a=e.useModel(r,"modelValue"),d=V,s=e.ref(!1),E=e.computed(()=>ne.PROTOCOL_TO_SCHEMA[t.protocol]),m=e.computed(()=>ne.HTTP_BASED_PROTOCOLS.includes(t.protocol??"")),h=e.computed(()=>{if(!(!t.showExpressionsModalEntry||m.value))return u("form.expression_playground.supported_protocols_hint",{protocols:ne.HTTP_BASED_PROTOCOLS.join(", ")})}),p=R=>{a.value=R,s.value=!1},y=R=>{d("notify",R)},I=()=>{m.value&&(s.value=!0)};return(R,n)=>{const c=e.resolveComponent("KTooltip");return e.openBlock(),e.createElementBlock(e.Fragment,null,[E.value!==void 0?(e.openBlock(),e.createBlock(e.unref(ne.ExpressionsEditor),{key:0,modelValue:a.value,"onUpdate:modelValue":n[0]||(n[0]=g=>a.value=g),schema:E.value},null,8,["modelValue","schema"])):e.createCommentVNode("",!0),e.createVNode(c,{placement:"bottom-start",text:h.value},{default:e.withCtx(()=>[R.showExpressionsModalEntry?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass({disabled:!m.value,"route-form-open-in-playground":!0}),"data-testid":"open-router-playground",onClick:I},[e.renderSlot(R.$slots,"default")],2)):e.createCommentVNode("",!0)]),_:3},8,["text"]),R.showExpressionsModalEntry&&m.value?(e.openBlock(),e.createBlock(e.unref(ne.RouterPlaygroundModal),{key:1,"initial-expression":a.value,"is-visible":s.value,onCancel:n[1]||(n[1]=g=>s.value=!1),onCommit:p,onNotify:y},null,8,["initial-expression","is-visible"])):e.createCommentVNode("",!0)],64)}}})},Symbol.toStringTag,{value:"Module"}));w.ExpressionsEditorState=Q,w.HTTP_REDIRECT_STATUS_CODES=me,w.INITIAL_ROUTE_RULES_FIELDS=ke,w.INITIAL_SHARED_ROUTE_RULES_FIELDS=ae,w.INITIAL_TRADITIONAL_ROUTE_RULES_VALUES=M,w.Methods=Y,w.PATH_HANDLING_OPTIONS=Te,w.PROTOCOLS_TO_ROUTE_RULES=ce,w.RouteConfigCard=Ae,w.RouteFlavor=D,w.RouteForm=yt,w.RouteFormRulesComposer=Ve,w.RouteList=Nt,w.RoutingRulesEntities=o,w.stateHasExpressionsFlavor=ue,w.stateHasTraditionalFlavor=fe,Object.defineProperty(w,Symbol.toStringTag,{value:"Module"})});
1
+ (function(w,e){typeof exports=="object"&&typeof module<"u"?e(exports,require("vue"),require("@kong-ui-public/entities-shared"),require("lodash.isequal"),require("vue-router"),require("@kong/icons"),require("@kong/kongponents"),require("@kong-ui-public/expressions"),require("@kong-ui-public/i18n")):typeof define=="function"&&define.amd?define(["exports","vue","@kong-ui-public/entities-shared","lodash.isequal","vue-router","@kong/icons","@kong/kongponents","@kong-ui-public/expressions","@kong-ui-public/i18n"],e):(w=typeof globalThis<"u"?globalThis:w||self,e(w["kong-ui-public-entities-routes"]={},w.Vue,w["kong-ui-public-entities-shared"],w.isEqual,w.VueRouter,w.KongIcons,w.Kongponents,w["kong-ui-public-expressions"],w["kong-ui-public-i18n"]))})(this,function(w,e,N,_e,Ce,X,Ie,ne,Ee){"use strict";const F="/v2/control-planes/{controlPlaneId}/core-entities",L="/{workspace}",ee={list:{konnect:{all:`${F}/routes`,forGatewayService:`${F}/services/{serviceId}/routes`},kongManager:{all:`${L}/routes`,forGatewayService:`${L}/services/{serviceId}/routes`}},form:{konnect:{services:`${F}/services`,create:{all:`${F}/routes`,forGatewayService:`${F}/services/{serviceId}/routes`},fetch:{all:`${F}/routes/{id}`,forGatewayService:`${F}/services/{serviceId}/routes/{id}`},edit:{all:`${F}/routes/{id}`,forGatewayService:`${F}/services/{serviceId}/routes/{id}`}},kongManager:{services:`${L}/services`,create:{all:`${L}/routes`,forGatewayService:`${L}/services/{serviceId}/routes`},fetch:{all:`${L}/routes/{id}`,forGatewayService:`${L}/services/{serviceId}/routes/{id}`},edit:{all:`${L}/routes/{id}`,forGatewayService:`${L}/services/{serviceId}/routes/{id}`}}},item:{konnect:{getService:`${F}/services/{serviceId}`,all:`${F}/routes/{id}`,forGatewayService:`${F}/services/{serviceId}/routes/{id}`},kongManager:{getService:`${L}/services/{serviceId}`,all:`${L}/routes/{id}`,forGatewayService:`${L}/services/{serviceId}/routes/{id}`}}},we={actions:{create:"New route",copy_id:"Copy ID",copy_json:"Copy JSON",edit:"Edit",delete:"Delete",clear:"Clear",view:"View Details",loading:"Loading..."},search:{placeholder:{konnect:"Filter by name",exact:"Filter by exact name or ID",kongManager:"Filter by exact name or ID"},no_results:"No results found"},routes:{title:"Routes",list:{toolbar_actions:{new_route:"New route"},table_headers:{name:"Name",protocols:"Protocols",hosts:"Hosts",methods:"Methods",paths:"Paths",expression:"Expression",id:"ID",tags:"Tags",created_at:"Created At",updated_at:"Last Modified"},empty_state:{title:"Configure a New Route",description:"Routes proxy requests to an associated Service."},empty_state_v2:{title:"Configure your first route",group:"Routes created in gateways within this group will automatically appear here.",description:"Routes direct incoming API requests to the appropriate gateway service based on paths, methods, and headers, ensuring efficient traffic flow."}}},delete:{title:"Delete a Route",description:"Deleting this route will also remove any associated plugins. This action cannot be reversed."},errors:{general:"Routes could not be retrieved",delete:"The route could not be deleted at this time.",copy:"Failed to copy to clipboard",services:{fetch:"Could not fetch available services"}},copy:{success:"Copied {val} to clipboard",success_brief:"Successfully copied to clipboard"},form:{config_flavor:{label:"Define by"},config_types:{basic:{description:"Quickly set up a route with HTTP & HTTPS protocol with the essentials: path, method, and host.",label:"Basic"},advanced:{description:"Define complex route logic with other protocols or additional paths or attributes such as headers.",label:"Advanced"}},protocols:{grpc:"GRPC",grpcs:"GRPCS","grpc,grpcs":"GRPC, GRPCS",http:"HTTP",https:"HTTPS","http,https":"HTTP, HTTPS",tls:"TLS",tcp:"TCP",udp:"UDP","tls,udp":"TLS, UDP","tcp,udp":"TCP, UDP","tcp,tls":"TCP, TLS","tcp,tls,udp":"TCP, TLS, UDP",ws:"WS",wss:"WSS","ws,wss":"WS, WSS",tls_passthrough:"TLS_PASSTHROUGH"},sections:{general:{title:"General Information",description:"General information will help you identify and manage this route"},config:{title:"Route Configuration",description:"Route configuration determines how this route will handle incoming requests"},routingRules:{title:"Routing Rules"},routingExpression:{title:"Routing Expression"}},fields:{service_id:{label:"Service",placeholder:"Select a service"},name:{label:"Name",placeholder:"Enter a unique name",tooltip:"The name of the Route. Route names must be unique, and they are case sensitive. For example, there can be two different Routes named 'test' and 'Test'."},service:{label:"Gateway Service",tooltip:"The Service this Route is associated to. This is where the Route proxies traffic to."},tags:{label:"Tags",tooltip:"An optional set of strings associated with the Route for grouping and filtering.",placeholder:"Enter a list of tags separated by commas",help:"e.g. tag1, tag2, tag3"},protocols:{label:"Protocols",tooltip:"The protocols this route supports.",tooltipConfig:"An array of the protocols this Route should allow. See the {code1} section for a list of accepted protocols. When set to only {code2}, HTTP requests are answered with an upgrade error. When it is set to only {code3}, this is essentially the same as {code4} in that both HTTP and HTTPS requests are allowed. Default: {code5}.",code1:"Route Object",code2:"https",code3:"http",code4:"['http', 'https']",code5:"['http', 'https']"},path_handling:{label:"Path Handling",tooltip:"Controls how Kong modifies the request path before proxying to the upstream service. Use v1 for standardized, predictable path behavior. Use v0 for legacy compatibility."},https_redirect_status_code:{label:"HTTPS Redirect Status Code",tooltip:"Specifies the HTTP status code for redirecting requests from HTTP to HTTPS. Use 301 or 308 for permanent redirects, 302 or 307 for temporary redirects.",tooltipConfig:"The status code Kong responds with when all properties of a Route match except the protocol i.e. if the protocol of the request is {code1} instead of {code2}. {code3} header is injected by Kong if the field is set to 301, 302, 307 or 308. Note: This config applies only if the Route is configured to only accept the {code4} protocol.",code1:"HTTP",code2:"HTTPS",code3:"Location",code4:"https"},regex_priority:{label:"Regex Priority",tooltip:"Regex priority is determined by length first (longer patterns win), and when lengths are the same, more specific regexes are preferred. When two routes match the path and have the same regex_priority, the older one (lowest created_at) is used. Note that the priority for non-regex routes is different (longer non-regex routes are matched before shorter ones).",tooltipConfig:"A number used to choose which route resolves a given request when several routes match it using regexes simultaneously. When two routes match the path and have the same {code1}, the older one (lowest {code2}) is used. Note that the priority for non-regex routes is different (longer non-regex routes are matched before shorter ones).",code1:"regex_priority",code2:"created_at"},strip_path:{label:"Strip Path",tooltip:"When enabled, Kong removes the portion of the request path that matches the route's path before forwarding the request to the upstream. If the request exactly matches the route, the result is /. Disable if that's not desired.",tooltipConfig:"When matching a Route via one of the {code1}, strip the matching prefix from the upstream request URL.",code1:"paths"},preserve_host:{label:"Preserve Host",tooltip:"Keeps the original Host header when proxying requests. Enable this if the upstream service requires the client's Host value. Disable if the service expects its own hostname.",tooltipConfig:"When matching a Route via one of the {code1} domain names, use the request {code2} header in the upstream request headers. If set to {code3}, the upstream {code4} header will be that of the Service's {code5}.",code1:"hosts",code2:"Host",code3:"false",code4:"Host",code5:"host"},paths:{add:"Add a path",label:"Paths",label_singular:"Path",placeholder:"e.g. /api/v1",singular:"path",tooltip:"Match specific URL paths, such as /api/v1. Prefix with ~ to enable regex-based matching."},snis:{add:"Add an SNI",label:"SNIs",placeholder:"e.g. api.example.com",singular:"SNI",tooltip:"SNIs (Server Name Indications) that match the route when using stream routing."},hosts:{add:"Add a host",label:"Hosts",label_singular:"Host",placeholder:"e.g. example.com",singular:"host",tooltip:"Match specific domain names (e.g., api.example.com). Prefix with ~ to enable regex-based matching.",tooltipConfig:"A list of domain names that match this Route. Note that the hosts value is case sensitive."},methods:{label:"Methods",placeholder:"Select methods",search_placeholder:"Search for a method or enter a custom method",singular:"method",tooltip:"Match certain HTTP methods, such as GET or POST. If no method is selected, all methods are included.",custom:{label:"Custom",placeholder:"Enter a custom method",tooltip:"Custom methods can be used with default selections. Uppercase characters are required."}},headers:{add:"Add a header",label:"Headers",singular:"header",tooltip:"Match specific headers, such as x-api-version or x-region.",name:{placeholder:"e.g. x-api-version"},values:{placeholder:"e.g. v1"},tooltipConfig:"One or more lists of values indexed by header name that will cause this Route to match if present in the request. The {code1} header cannot be used with this attribute: hosts should be specified using the {code2} attribute. When {code3} contains only one value and that value starts with the special prefix {code4}, the value is interpreted as a regular expression.",code1:"Host",code2:"hosts",code3:"headers",code4:"*"},sources:{add:"Add a source",label:"Sources",singular:"source",tooltip:"A list of IP sources of incoming connections that match this Route when using stream routing.",ip:{placeholder:"Enter a source IP"},port:{placeholder:"Enter a source port"}},destinations:{add:"Add a destination",label:"Destinations",singular:"destination",tooltip:"A list of IP destinations of incoming connections that match this Route when using stream routing.",ip:{placeholder:"Enter a destination IP"},port:{placeholder:"Enter a destination port"}},response_buffering:{label:"Response buffering",tooltip:"Reads and buffers the full response from the upstream service before sending it to the client. Enable buffering if the client expects the complete response at once. Disable for faster streaming of large or chunked responses."},request_buffering:{label:"Request buffering",tooltip:"Reads and buffers the full request body before proxying. Enable buffering if the upstream service requires the complete request before processing. Disable for faster streaming of large or chunked requests."},expression:{label:"Expression",tooltip:"The route expression."},priority:{label:"Priority",tooltip:"A number used to choose which route resolves a given request when several routes match it using expression simultaneously."}},flavors:{traditional:"Traditional Form",expressions:"Expressions Editor"},show_more:"Show more",hint:{rules_message:"Choose at least one {routingRules} option.",single_rule:"{routingRules}",multiple_rules:"{routingRules} or {lastRoutingRule}",advanced:"To add more than one, use the Advanced options."},warning:{cannotChangeFlavor:{create:"The format of the route cannot be changed once created.",edit:"This route was configured in the {format} format, and cannot be changed after creation. You can switch to the {format} tab to edit, or create a new route in a different format instead."}},expressions_editor:{loading:"Loading the Expressions editor…",error:"Error occurred while loading the Expressions editor. Please view the console for more details."},expression_playground:{test_link:"Test with Router Playground",supported_protocols_hint:"Currently only supports the following protocols: {protocols}"}}};function Re(){const r=Ee.createI18n("en-us",we);return{i18n:r,i18nT:Ee.i18nTComponent(r)}}const H={useI18n:Re},xe={class:"kong-ui-entities-route-entity-config-card"},Be={key:2},Ae=e.defineComponent({__name:"RouteConfigCard",props:{config:{type:Object,required:!0,validator:r=>!(!r||!["konnect","kongManager"].includes(r==null?void 0:r.app)||r.app==="konnect"&&!r.controlPlaneId||r.app==="kongManager"&&typeof r.workspace!="string"||!r.entityId)},configCardDoc:{type:String,default:"",required:!1},hideTitle:{type:Boolean,default:!1},serviceId:{type:String,required:!1,default:""}},emits:["loading","fetch:error","fetch:success","navigation-click"],setup(r,{emit:V}){var n;const u=V,t=r,{axiosInstance:a}=N.useAxios((n=t.config)==null?void 0:n.axiosRequestConfig),{i18n:{t:d},i18nT:s}=H.useI18n(),E=e.ref(""),m=e.ref(""),h=e.ref(!1),f=e.computed(()=>{var c,g;return(g=ee.item[(c=t.config)==null?void 0:c.app])==null?void 0:g[t.serviceId?"forGatewayService":"all"].replace(/{serviceId}/gi,t.serviceId)}),y=e.computed(()=>{var c;return(c=ee.item[t.config.app])==null?void 0:c.getService}),I=async c=>{var P,B,q;if(E.value=t.serviceId||((P=c==null?void 0:c.service)==null?void 0:P.id),u("fetch:success",c),!E.value)return;let g=`${t.config.apiBaseUrl}${y.value}`;t.config.app==="konnect"?g=g.replace(/{controlPlaneId}/gi,((B=t.config)==null?void 0:B.controlPlaneId)||"").replace(/{serviceId}/gi,E.value||""):t.config.app==="kongManager"&&(g=g.replace(/\/{workspace}/gi,(q=t.config)!=null&&q.workspace?`/${t.config.workspace}`:"").replace(/{serviceId}/gi,E.value||""));try{h.value=!0;const{data:p}=await a.get(g);m.value=(p==null?void 0:p.name)||(p==null?void 0:p.id)}catch(p){u("fetch:error",p)}finally{h.value=!1}},R=e.ref({id:{},name:{tooltip:d("form.fields.name.tooltip")},created_at:{},updated_at:{},service:{label:d("form.fields.service.label"),section:N.ConfigurationSchemaSection.Basic,tooltip:d("form.fields.service.tooltip"),order:5},tags:{tooltip:d("form.fields.tags.tooltip"),order:6},protocols:{section:N.ConfigurationSchemaSection.Basic,type:N.ConfigurationSchemaType.BadgeTag,order:7},paths:{section:N.ConfigurationSchemaSection.Basic,tooltip:d("form.fields.paths.tooltip"),type:N.ConfigurationSchemaType.CopyBadge,order:8},hosts:{section:N.ConfigurationSchemaSection.Basic,tooltip:d("form.fields.hosts.tooltipConfig"),type:N.ConfigurationSchemaType.CopyBadge,order:9},snis:{label:d("form.fields.snis.label"),tooltip:d("form.fields.snis.tooltip"),order:10},headers:{section:N.ConfigurationSchemaSection.Basic,order:11},methods:{section:N.ConfigurationSchemaSection.Basic,tooltip:d("form.fields.methods.tooltip"),type:N.ConfigurationSchemaType.BadgeMethod,order:12},sources:{section:N.ConfigurationSchemaSection.Basic,tooltip:d("form.fields.sources.tooltip"),type:N.ConfigurationSchemaType.JsonArray,order:13},destinations:{section:N.ConfigurationSchemaSection.Basic,tooltip:d("form.fields.destinations.tooltip"),type:N.ConfigurationSchemaType.JsonArray,order:14},https_redirect_status_code:{order:1},regex_priority:{tooltip:d("form.fields.regex_priority.tooltipConfig"),order:2},strip_path:{order:3},preserve_host:{order:4},request_buffering:{tooltip:d("form.fields.request_buffering.tooltip"),order:5},response_buffering:{tooltip:d("form.fields.response_buffering.tooltip"),order:6},path_handling:{tooltip:d("form.fields.path_handling.tooltip"),order:7}});return(c,g)=>{const P=e.resolveComponent("KSkeleton");return e.openBlock(),e.createElementBlock("div",xe,[e.createVNode(e.unref(N.EntityBaseConfigCard),{config:r.config,"config-card-doc":r.configCardDoc,"config-schema":R.value,"entity-type":e.unref(N.SupportedEntityType).Route,"fetch-url":f.value,"hide-title":r.hideTitle,"onFetch:error":g[0]||(g[0]=B=>c.$emit("fetch:error",B)),"onFetch:success":I,onLoading:g[1]||(g[1]=B=>c.$emit("loading",B))},{"https_redirect_status_code-label-tooltip":e.withCtx(()=>[e.createVNode(e.unref(s),{keypath:"form.fields.https_redirect_status_code.tooltipConfig",scope:"global"},{code1:e.withCtx(()=>[e.createElementVNode("code",null,e.toDisplayString(e.unref(d)("form.fields.https_redirect_status_code.code1")),1)]),code2:e.withCtx(()=>[e.createElementVNode("code",null,e.toDisplayString(e.unref(d)("form.fields.https_redirect_status_code.code2")),1)]),code3:e.withCtx(()=>[e.createElementVNode("code",null,e.toDisplayString(e.unref(d)("form.fields.https_redirect_status_code.code3")),1)]),code4:e.withCtx(()=>[e.createElementVNode("code",null,e.toDisplayString(e.unref(d)("form.fields.https_redirect_status_code.code4")),1)]),_:1})]),"regex_priority-label-tooltip":e.withCtx(()=>[e.createVNode(e.unref(s),{keypath:"form.fields.regex_priority.tooltipConfig",scope:"global"},{code1:e.withCtx(()=>[e.createElementVNode("code",null,e.toDisplayString(e.unref(d)("form.fields.regex_priority.code1")),1)]),code2:e.withCtx(()=>[e.createElementVNode("code",null,e.toDisplayString(e.unref(d)("form.fields.regex_priority.code2")),1)]),_:1})]),"protocols-label-tooltip":e.withCtx(()=>[e.createVNode(e.unref(s),{keypath:"form.fields.protocols.tooltipConfig",scope:"global"},{code1:e.withCtx(()=>[e.createElementVNode("code",null,e.toDisplayString(e.unref(d)("form.fields.protocols.code1")),1)]),code2:e.withCtx(()=>[e.createElementVNode("code",null,e.toDisplayString(e.unref(d)("form.fields.protocols.code2")),1)]),code3:e.withCtx(()=>[e.createElementVNode("code",null,e.toDisplayString(e.unref(d)("form.fields.protocols.code3")),1)]),code4:e.withCtx(()=>[e.createElementVNode("code",null,e.toDisplayString(e.unref(d)("form.fields.protocols.code4")),1)]),code5:e.withCtx(()=>[e.createElementVNode("code",null,e.toDisplayString(e.unref(d)("form.fields.protocols.code5")),1)]),_:1})]),"headers-label-tooltip":e.withCtx(()=>[e.createVNode(e.unref(s),{keypath:"form.fields.headers.tooltipConfig",scope:"global"},{code1:e.withCtx(()=>[e.createElementVNode("code",null,e.toDisplayString(e.unref(d)("form.fields.headers.code1")),1)]),code2:e.withCtx(()=>[e.createElementVNode("code",null,e.toDisplayString(e.unref(d)("form.fields.headers.code2")),1)]),code3:e.withCtx(()=>[e.createElementVNode("code",null,e.toDisplayString(e.unref(d)("form.fields.headers.code3")),1)]),code4:e.withCtx(()=>[e.createElementVNode("code",null,e.toDisplayString(e.unref(d)("form.fields.headers.code4")),1)]),_:1})]),"strip_path-label-tooltip":e.withCtx(()=>[e.createVNode(e.unref(s),{keypath:"form.fields.strip_path.tooltipConfig",scope:"global"},{code1:e.withCtx(()=>[e.createElementVNode("code",null,e.toDisplayString(e.unref(d)("form.fields.headers.code1")),1)]),_:1})]),"preserve_host-label-tooltip":e.withCtx(()=>[e.createVNode(e.unref(s),{keypath:"form.fields.preserve_host.tooltipConfig",scope:"global"},{code1:e.withCtx(()=>[e.createElementVNode("code",null,e.toDisplayString(e.unref(d)("form.fields.preserve_host.code1")),1)]),code2:e.withCtx(()=>[e.createElementVNode("code",null,e.toDisplayString(e.unref(d)("form.fields.preserve_host.code2")),1)]),code3:e.withCtx(()=>[e.createElementVNode("code",null,e.toDisplayString(e.unref(d)("form.fields.preserve_host.code3")),1)]),code4:e.withCtx(()=>[e.createElementVNode("code",null,e.toDisplayString(e.unref(d)("form.fields.preserve_host.code4")),1)]),code5:e.withCtx(()=>[e.createElementVNode("code",null,e.toDisplayString(e.unref(d)("form.fields.preserve_host.code5")),1)]),_:1})]),service:e.withCtx(({row:B})=>[h.value?(e.openBlock(),e.createBlock(P,{key:0,"data-testid":"service-name-loader",type:"spinner"})):B.value&&B.value.id===E.value&&m.value?(e.openBlock(),e.createBlock(e.unref(N.InternalLinkItem),{key:1,item:{key:B.value.id,value:m.value,type:e.unref(N.ConfigurationSchemaType).LinkInternal},onNavigationClick:()=>c.$emit("navigation-click",B.value.id,"services")},null,8,["item","onNavigationClick"])):(e.openBlock(),e.createElementBlock("div",Be,e.toDisplayString("-")))]),_:1},8,["config","config-card-doc","config-schema","entity-type","fetch-url","hide-title"])])}}});var D=(r=>(r.TRADITIONAL="traditional",r.EXPRESSIONS="expressions",r))(D||{}),o=(r=>(r.PATHS="paths",r.SNIS="snis",r.HOSTS="hosts",r.METHODS="methods",r.HEADERS="headers",r.SOURCES="sources",r.DESTINATIONS="destinations",r))(o||{}),Q=(r=>(r.LOADING="loading",r.ERROR="error",r.READY="ready",r))(Q||{}),Y=(r=>(r.GET="GET",r.PUT="PUT",r.POST="POST",r.PATCH="PATCH",r.DELETE="DELETE",r.OPTIONS="OPTIONS",r.HEAD="HEAD",r.CONNECT="CONNECT",r.TRACE="TRACE",r))(Y||{});const fe=r=>r.routeFlavors.traditional===!0,ue=r=>r.routeFlavors.expressions===!0,M={[o.PATHS]:[""],[o.SNIS]:[""],[o.HOSTS]:[""],[o.METHODS]:[],[o.HEADERS]:[{header:"",values:""}],[o.SOURCES]:[{ip:"",port:null}],[o.DESTINATIONS]:[{ip:"",port:null}]},ce={http:[o.PATHS,o.METHODS,o.HOSTS,o.HEADERS],https:[o.PATHS,o.METHODS,o.HOSTS,o.HEADERS,o.SNIS],"http,https":[o.PATHS,o.METHODS,o.HOSTS,o.HEADERS,o.SNIS],"https,http":[o.PATHS,o.METHODS,o.HOSTS,o.HEADERS,o.SNIS],grpc:[o.PATHS,o.HOSTS,o.HEADERS],grpcs:[o.PATHS,o.HOSTS,o.HEADERS,o.SNIS],"grpc,grpcs":[o.PATHS,o.HOSTS,o.HEADERS,o.SNIS],"grpcs,grpc":[o.PATHS,o.HOSTS,o.HEADERS,o.SNIS],udp:[o.SOURCES,o.DESTINATIONS],tls:[o.SOURCES,o.DESTINATIONS,o.SNIS],tcp:[o.SOURCES,o.DESTINATIONS],"tls,udp":[o.SOURCES,o.DESTINATIONS,o.SNIS],"udp,tls":[o.SOURCES,o.DESTINATIONS,o.SNIS],"tcp,udp":[o.SOURCES,o.DESTINATIONS],"udp,tcp":[o.SOURCES,o.DESTINATIONS],"tcp,tls":[o.SOURCES,o.DESTINATIONS,o.SNIS],"tls,tcp":[o.SOURCES,o.DESTINATIONS,o.SNIS],"tcp,tls,udp":[o.SOURCES,o.DESTINATIONS,o.SNIS],"tls,udp,tcp":[o.SOURCES,o.DESTINATIONS,o.SNIS],"udp,tcp,tls":[o.SOURCES,o.DESTINATIONS,o.SNIS],tls_passthrough:[o.SNIS],ws:[o.PATHS,o.HOSTS,o.HEADERS],wss:[o.PATHS,o.HOSTS,o.HEADERS,o.SNIS],"ws,wss":[o.PATHS,o.HOSTS,o.HEADERS,o.SNIS],"wss,ws":[o.PATHS,o.HOSTS,o.HEADERS,o.SNIS]},me=[{label:"426",value:426},{label:"301",value:301},{label:"302",value:302},{label:"307",value:307},{label:"308",value:308}],Te=[{label:"v0",value:"v0"},{label:"v1",value:"v1"}],ae={https_redirect_status_code:426,strip_path:!0,preserve_host:!1,request_buffering:!0,response_buffering:!0},ke={...ae,paths:[""],regex_priority:0,path_handling:"v0",expression:"",priority:0},De=e.defineComponent({__name:"RuleControlsAdd",props:{routingRulesEntity:{}},emits:["add"],setup(r,{emit:V}){const u=r,t=V,a=e.inject("configType","basic"),{i18n:{t:d}}=H.useI18n(),s=e.computed(()=>d(`form.fields.${u.routingRulesEntity}.add`));return(E,m)=>{const h=e.resolveComponent("KButton");return e.unref(a)!=="basic"?(e.openBlock(),e.createBlock(h,{key:0,appearance:"tertiary",class:"routing-rule-add-item-button","data-testid":`add-${E.routingRulesEntity}`,onClick:m[0]||(m[0]=f=>t("add"))},{default:e.withCtx(()=>[e.createVNode(e.unref(X.AddIcon)),e.createElementVNode("span",null,e.toDisplayString(s.value),1)]),_:1},8,["data-testid"])):e.createCommentVNode("",!0)}}}),U=(r,V)=>{const u=r.__vccOpts||r;for(const[t,a]of V)u[t]=a;return u},te=U(De,[["__scopeId","data-v-f1f4cfc9"]]),Oe="#00abd2",Me="#afb7c5",He="#0044f4",Pe="16px",$e="24px",oe=e.defineComponent({__name:"RuleControlsRemove",props:{disabled:{type:Boolean},routingRulesEntity:{}},emits:["remove"],setup(r,{emit:V}){const u=V,t=e.inject("configType","basic");return(a,d)=>{const s=e.resolveComponent("KButton");return e.unref(t)!=="basic"?(e.openBlock(),e.createBlock(s,{key:0,appearance:"tertiary","data-testid":`remove-${a.routingRulesEntity}`,disabled:a.disabled,icon:"",onClick:d[0]||(d[0]=E=>u("remove"))},{default:e.withCtx(()=>[e.createVNode(e.unref(X.CloseIcon),{color:a.disabled?e.unref(Me):e.unref(He)},null,8,["color"])]),_:1},8,["data-testid","disabled"])):e.createCommentVNode("",!0)}}}),Ue={class:"routing-rule-container"},Fe=U(e.defineComponent({__name:"DestinationRules",props:{modelValue:{required:!0},modelModifiers:{}},emits:e.mergeModels(["add","remove"],["update:modelValue"]),setup(r,{emit:V}){const{i18n:{t:u}}=H.useI18n(),t=e.useModel(r,"modelValue"),a=V;return(d,s)=>{const E=e.resolveComponent("KLabel"),m=e.resolveComponent("KInput");return e.openBlock(),e.createElementBlock("div",Ue,[e.createVNode(E,{info:e.unref(u)("form.fields.destinations.tooltip")},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(u)("form.fields.destinations.label")),1)]),_:1},8,["info"]),e.createVNode(e.TransitionGroup,{name:"appear"},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.value,(h,f)=>(e.openBlock(),e.createElementBlock("div",{key:f,class:"routing-rule-input"},[e.createVNode(m,{modelValue:t.value[f].ip,"onUpdate:modelValue":y=>t.value[f].ip=y,modelModifiers:{trim:!0},"data-testid":`route-form-destinations-ip-input-${f+1}`,placeholder:e.unref(u)("form.fields.destinations.ip.placeholder")},null,8,["modelValue","onUpdate:modelValue","data-testid","placeholder"]),e.createVNode(m,{modelValue:t.value[f].port,"onUpdate:modelValue":y=>t.value[f].port=y,modelModifiers:{number:!0},"data-testid":`route-form-destinations-port-input-${f+1}`,max:"65535",min:"0",placeholder:e.unref(u)("form.fields.destinations.port.placeholder"),type:"number"},null,8,["modelValue","onUpdate:modelValue","data-testid","placeholder"]),e.createVNode(oe,{disabled:t.value.length===1,"routing-rules-entity":e.unref(o).DESTINATIONS,onRemove:y=>a("remove",f)},null,8,["disabled","routing-rules-entity","onRemove"])]))),128))]),_:1}),e.createVNode(te,{"routing-rules-entity":e.unref(o).DESTINATIONS,onAdd:s[0]||(s[0]=h=>a("add"))},null,8,["routing-rules-entity"])])}}}),[["__scopeId","data-v-7ce8d4bc"]]),Le={class:"routing-rule-container"},Ke=U(e.defineComponent({__name:"HeaderRules",props:{modelValue:{required:!0},modelModifiers:{}},emits:e.mergeModels(["add","remove"],["update:modelValue"]),setup(r,{emit:V}){const{i18n:{t:u}}=H.useI18n(),t=e.useModel(r,"modelValue"),a=V;return(d,s)=>{const E=e.resolveComponent("KLabel"),m=e.resolveComponent("KInput");return e.openBlock(),e.createElementBlock("div",Le,[e.createVNode(E,{info:e.unref(u)("form.fields.headers.tooltip")},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(u)("form.fields.headers.label")),1)]),_:1},8,["info"]),e.createVNode(e.TransitionGroup,{name:"appear"},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.value,(h,f)=>(e.openBlock(),e.createElementBlock("div",{key:f,class:"routing-rule-input"},[e.createVNode(m,{modelValue:t.value[f].header,"onUpdate:modelValue":y=>t.value[f].header=y,modelModifiers:{trim:!0},"data-testid":`route-form-headers-name-input-${f+1}`,placeholder:e.unref(u)("form.fields.headers.name.placeholder")},null,8,["modelValue","onUpdate:modelValue","data-testid","placeholder"]),e.createVNode(m,{modelValue:t.value[f].values,"onUpdate:modelValue":y=>t.value[f].values=y,modelModifiers:{trim:!0},"data-testid":`route-form-headers-values-input-${f+1}`,placeholder:e.unref(u)("form.fields.headers.values.placeholder")},null,8,["modelValue","onUpdate:modelValue","data-testid","placeholder"]),e.createVNode(oe,{disabled:t.value.length===1,"routing-rules-entity":e.unref(o).HEADERS,onRemove:y=>a("remove",f)},null,8,["disabled","routing-rules-entity","onRemove"])]))),128))]),_:1}),e.createVNode(te,{"routing-rules-entity":e.unref(o).HEADERS,onAdd:s[0]||(s[0]=h=>a("add"))},null,8,["routing-rules-entity"])])}}}),[["__scopeId","data-v-cff322c5"]]),qe={class:"routing-rule-container"},Ge=U(e.defineComponent({__name:"HostRules",props:{modelValue:{required:!0},modelModifiers:{}},emits:e.mergeModels(["add","remove"],["update:modelValue"]),setup(r,{emit:V}){const{i18n:{t:u}}=H.useI18n(),t=e.useModel(r,"modelValue"),a=V,d=e.inject("configType","basic");return(s,E)=>{const m=e.resolveComponent("KLabel"),h=e.resolveComponent("KInput");return e.openBlock(),e.createElementBlock("div",qe,[e.createVNode(m,{info:e.unref(u)("form.fields.hosts.tooltip"),"tooltip-attributes":{maxWidth:"320"}},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(d)==="basic"?e.unref(u)("form.fields.hosts.label_singular"):e.unref(u)("form.fields.hosts.label")),1)]),_:1},8,["info"]),e.createVNode(e.TransitionGroup,{name:"appear"},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(d)==="basic"?t.value.slice(0,1):t.value,(f,y)=>(e.openBlock(),e.createElementBlock("div",{key:y,class:"routing-rule-input"},[e.createVNode(h,{modelValue:t.value[y],"onUpdate:modelValue":I=>t.value[y]=I,modelModifiers:{trim:!0},"data-testid":`route-form-hosts-input-${y+1}`,placeholder:e.unref(u)("form.fields.hosts.placeholder")},null,8,["modelValue","onUpdate:modelValue","data-testid","placeholder"]),e.createVNode(oe,{disabled:t.value.length===1,"routing-rules-entity":e.unref(o).HOSTS,onRemove:I=>a("remove",y)},null,8,["disabled","routing-rules-entity","onRemove"])]))),128))]),_:1}),e.createVNode(te,{"routing-rules-entity":e.unref(o).HOSTS,onAdd:E[0]||(E[0]=f=>a("add"))},null,8,["routing-rules-entity"])])}}}),[["__scopeId","data-v-7cc12b60"]]),We={class:"routing-rule-container","data-testid":"route-form-methods"},je={class:"routing-rule-input"},Xe=U(e.defineComponent({__name:"MethodRules",props:{methods:{required:!0},methodsModifiers:{},customMethods:{required:!0},customMethodsModifiers:{}},emits:["update:methods","update:customMethods"],setup(r){const{i18n:{t:V}}=H.useI18n(),u=e.useModel(r,"methods"),t=e.useModel(r,"customMethods"),a=e.computed(()=>u.value.filter(h=>Object.keys(Y).includes(h)).concat(t.value.map(h=>h.value))),d=e.computed(()=>Object.keys(Y).map(h=>({label:h,value:h})).concat(t.value.map(h=>({label:h.label,value:h.value,custom:!0})))),s=h=>!d.value.map(f=>f.value.toLowerCase()).includes(h.toLowerCase()),E=(h,f)=>{f?t.value.push(h):t.value=t.value.filter(y=>y.value!==h.value)},m=h=>{u.value=h};return(h,f)=>{const y=e.resolveComponent("KLabel"),I=e.resolveComponent("KMultiselect");return e.openBlock(),e.createElementBlock("div",We,[e.createVNode(y,{info:e.unref(V)("form.fields.methods.tooltip"),"tooltip-attributes":{maxWidth:"320"}},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(V)("form.fields.methods.label")),1)]),_:1},8,["info"]),e.createElementVNode("div",je,[e.createVNode(I,{"enable-item-creation":"","item-creation-validator":s,items:d.value,"model-value":a.value,placeholder:e.unref(V)("form.fields.methods.placeholder"),"search-placeholder":e.unref(V)("form.fields.methods.search_placeholder"),onItemAdded:f[0]||(f[0]=R=>E(R,!0)),onItemRemoved:f[1]||(f[1]=R=>E(R,!1)),"onUpdate:modelValue":m},null,8,["items","model-value","placeholder","search-placeholder"])])])}}}),[["__scopeId","data-v-47795008"]]),ze={class:"routing-rule-container"},Je=U(e.defineComponent({__name:"PathRules",props:{modelValue:{required:!0},modelModifiers:{}},emits:e.mergeModels(["add","remove"],["update:modelValue"]),setup(r,{emit:V}){const{i18n:{t:u}}=H.useI18n(),t=e.useModel(r,"modelValue"),a=V,d=e.inject("configType","basic");return(s,E)=>{const m=e.resolveComponent("KLabel"),h=e.resolveComponent("KInput");return e.openBlock(),e.createElementBlock("div",ze,[e.createVNode(m,{info:e.unref(u)("form.fields.paths.tooltip"),"tooltip-attributes":{maxWidth:"320"}},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(d)==="basic"?e.unref(u)("form.fields.paths.label_singular"):e.unref(u)("form.fields.paths.label")),1)]),_:1},8,["info"]),e.createVNode(e.TransitionGroup,{name:"appear"},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(d)==="basic"?t.value.slice(0,1):t.value,(f,y)=>(e.openBlock(),e.createElementBlock("div",{key:y,class:"routing-rule-input"},[e.createVNode(h,{modelValue:t.value[y],"onUpdate:modelValue":I=>t.value[y]=I,modelModifiers:{trim:!0},"data-testid":`route-form-paths-input-${y+1}`,placeholder:e.unref(u)("form.fields.paths.placeholder")},null,8,["modelValue","onUpdate:modelValue","data-testid","placeholder"]),e.createVNode(oe,{disabled:t.value.length===1,"routing-rules-entity":e.unref(o).PATHS,onRemove:I=>a("remove",y)},null,8,["disabled","routing-rules-entity","onRemove"])]))),128))]),_:1}),e.createVNode(te,{"routing-rules-entity":e.unref(o).PATHS,onAdd:E[0]||(E[0]=f=>a("add"))},null,8,["routing-rules-entity"])])}}}),[["__scopeId","data-v-f672a51a"]]),Qe={class:"routing-rule-container"},Ye=U(e.defineComponent({__name:"SniRules",props:{modelValue:{required:!0},modelModifiers:{}},emits:e.mergeModels(["add","remove"],["update:modelValue"]),setup(r,{emit:V}){const{i18n:{t:u}}=H.useI18n(),t=e.useModel(r,"modelValue"),a=V;return(d,s)=>{const E=e.resolveComponent("KLabel"),m=e.resolveComponent("KInput");return e.openBlock(),e.createElementBlock("div",Qe,[e.createVNode(E,{info:e.unref(u)("form.fields.snis.tooltip"),"tooltip-attributes":{maxWidth:"320"}},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(u)("form.fields.snis.label")),1)]),_:1},8,["info"]),e.createVNode(e.TransitionGroup,{name:"appear"},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.value,(h,f)=>(e.openBlock(),e.createElementBlock("div",{key:f,class:"routing-rule-input"},[e.createVNode(m,{modelValue:t.value[f],"onUpdate:modelValue":y=>t.value[f]=y,modelModifiers:{trim:!0},"data-testid":`route-form-snis-input-${f+1}`,placeholder:e.unref(u)("form.fields.snis.placeholder")},null,8,["modelValue","onUpdate:modelValue","data-testid","placeholder"]),e.createVNode(oe,{disabled:t.value.length===1,"routing-rules-entity":e.unref(o).SNIS,onRemove:y=>a("remove",f)},null,8,["disabled","routing-rules-entity","onRemove"])]))),128))]),_:1}),e.createVNode(te,{"routing-rules-entity":e.unref(o).SNIS,onAdd:s[0]||(s[0]=h=>a("add"))},null,8,["routing-rules-entity"])])}}}),[["__scopeId","data-v-e52adc95"]]),Ze={class:"routing-rule-container"},ve=U(e.defineComponent({__name:"SourceRules",props:{modelValue:{required:!0},modelModifiers:{}},emits:e.mergeModels(["add","remove"],["update:modelValue"]),setup(r,{emit:V}){const{i18n:{t:u}}=H.useI18n(),t=e.useModel(r,"modelValue"),a=V;return(d,s)=>{const E=e.resolveComponent("KLabel"),m=e.resolveComponent("KInput");return e.openBlock(),e.createElementBlock("div",Ze,[e.createVNode(E,{info:e.unref(u)("form.fields.sources.tooltip")},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(u)("form.fields.sources.label")),1)]),_:1},8,["info"]),e.createVNode(e.TransitionGroup,{name:"appear"},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.value,(h,f)=>(e.openBlock(),e.createElementBlock("div",{key:f,class:"routing-rule-input"},[e.createVNode(m,{modelValue:t.value[f].ip,"onUpdate:modelValue":y=>t.value[f].ip=y,modelModifiers:{trim:!0},"data-testid":`route-form-sources-ip-input-${f+1}`,placeholder:e.unref(u)("form.fields.sources.ip.placeholder")},null,8,["modelValue","onUpdate:modelValue","data-testid","placeholder"]),e.createVNode(m,{modelValue:t.value[f].port,"onUpdate:modelValue":y=>t.value[f].port=y,modelModifiers:{number:!0},"data-testid":`route-form-sources-port-input-${f+1}`,max:"65535",min:"0",placeholder:e.unref(u)("form.fields.sources.port.placeholder"),type:"number"},null,8,["modelValue","onUpdate:modelValue","data-testid","placeholder"]),e.createVNode(oe,{disabled:t.value.length===1,"routing-rules-entity":e.unref(o).SOURCES,onRemove:y=>a("remove",f)},null,8,["disabled","routing-rules-entity","onRemove"])]))),128))]),_:1}),e.createVNode(te,{"routing-rules-entity":e.unref(o).SOURCES,onAdd:s[0]||(s[0]=h=>a("add"))},null,8,["routing-rules-entity"])])}}}),[["__scopeId","data-v-4d7f0cbb"]]),et={class:"traditional-rules-hint"},tt={key:0},ot={key:0,class:"route-form-fields-container route-form-advanced-fields-container"},Ne=U(e.defineComponent({__name:"TraditionalRules",props:e.mergeModels({protocols:{},hideAdvanced:{type:Boolean},readonly:{type:Boolean},configType:{}},{fields:{required:!0},fieldsModifiers:{},customMethods:{required:!0},customMethodsModifiers:{}}),emits:["update:fields","update:customMethods"],setup(r){const{i18nT:V,i18n:u,i18n:{t}}=H.useI18n(),a=u.source.form.protocols,d=r,s=e.useModel(r,"fields"),E=e.useModel(r,"customMethods"),m=n=>{switch(n){case o.PATHS:Array.isArray(s.value.paths)?s.value.paths.push([...M[o.PATHS]][0]):s.value.paths=[...M[o.PATHS]];break;case o.SNIS:Array.isArray(s.value.snis)?s.value.snis.push([...M[o.SNIS]][0]):s.value.snis=[...M[o.SNIS]];break;case o.HOSTS:Array.isArray(s.value.hosts)?s.value.hosts.push([...M[o.HOSTS]][0]):s.value.hosts=[...M[o.HOSTS]];break;case o.METHODS:s.value.methods||(s.value.methods={...M[o.METHODS]});break;case o.HEADERS:Array.isArray(s.value.headers)?s.value.headers.push({...M[o.HEADERS][0]}):s.value.headers=[{...M[o.HEADERS][0]}];break;case o.SOURCES:Array.isArray(s.value.sources)?s.value.sources.push({...M[o.SOURCES][0]}):s.value.sources=[{...M[o.SOURCES][0]}];break;case o.DESTINATIONS:Array.isArray(s.value.destinations)?s.value.destinations.push({...M[o.DESTINATIONS][0]}):s.value.destinations=[{...M[o.DESTINATIONS][0]}];break}},h=async(n,c)=>{if(typeof c<"u"){const g=s.value[n];if(Array.isArray(g)&&(g.splice(c,1),g.length>0))return}await e.nextTick(()=>{delete s.value[n]})},f=n=>n.some(c=>d.protocols.includes(c)),y=e.computed(()=>new Set(ce[d.protocols])),I=e.computed(()=>{if(f(["tls_passthrough"]))return[R(o.SNIS)];const n=(d.configType==="basic"?[o.PATHS,o.METHODS,o.HOSTS]:ce[d.protocols]).map(c=>R(c));return[[...n].splice(0,n.length-1).join(", "),n[n.length-1]]}),R=n=>{var g;return((g=u.source.form.fields[n])==null?void 0:g.singular)||""};return(n,c)=>{const g=e.resolveComponent("KCheckbox"),P=e.resolveComponent("KSelect"),B=e.resolveComponent("KInput"),q=e.resolveComponent("KCard");return e.openBlock(),e.createBlock(q,null,{default:e.withCtx(()=>{var p;return[e.createElementVNode("span",et,[e.createVNode(e.unref(V),{keypath:"form.hint.rules_message"},{protocol:e.withCtx(()=>[e.createElementVNode("b",null,e.toDisplayString(e.unref(a)[n.protocols]),1)]),routingRules:e.withCtx(()=>[e.createVNode(e.unref(V),{keypath:I.value[1]?"form.hint.multiple_rules":"form.hint.single_rule"},{routingRules:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(I.value[0]),1)]),lastRoutingRule:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(I.value[1]),1)]),_:1},8,["keypath"])]),_:1}),n.configType==="basic"?(e.openBlock(),e.createElementBlock("span",tt,e.toDisplayString(e.unref(t)("form.hint.advanced")),1)):e.createCommentVNode("",!0)]),e.createVNode(e.TransitionGroup,{name:"appear"},{default:e.withCtx(()=>{var _;return[s.value.paths&&y.value.has(e.unref(o).PATHS)?(e.openBlock(),e.createBlock(Je,{key:"paths-container",modelValue:s.value.paths,"onUpdate:modelValue":c[0]||(c[0]=b=>s.value.paths=b),onAdd:c[1]||(c[1]=b=>m(e.unref(o).PATHS)),onRemove:c[2]||(c[2]=b=>h(e.unref(o).PATHS,b))},null,8,["modelValue"])):e.createCommentVNode("",!0),f(["http","https","ws","wss"])?(e.openBlock(),e.createBlock(g,{key:1,modelValue:s.value.strip_path,"onUpdate:modelValue":c[3]||(c[3]=b=>s.value.strip_path=b),class:"route-form-strip-path","data-testid":"route-form-strip-path",disabled:!((_=s.value.paths)!=null&&_.some(Boolean)),label:e.unref(t)("form.fields.strip_path.label"),"label-attributes":{info:e.unref(t)("form.fields.strip_path.tooltip"),tooltipAttributes:{maxWidth:"320"}}},null,8,["modelValue","disabled","label","label-attributes"])):e.createCommentVNode("",!0),s.value.methods&&y.value.has(e.unref(o).METHODS)?(e.openBlock(),e.createBlock(Xe,{key:"methods-container","custom-methods":E.value,"onUpdate:customMethods":c[4]||(c[4]=b=>E.value=b),methods:s.value.methods,"onUpdate:methods":c[5]||(c[5]=b=>s.value.methods=b)},null,8,["custom-methods","methods"])):e.createCommentVNode("",!0),s.value.hosts&&y.value.has(e.unref(o).HOSTS)?(e.openBlock(),e.createBlock(Ge,{key:"hosts-container",modelValue:s.value.hosts,"onUpdate:modelValue":c[6]||(c[6]=b=>s.value.hosts=b),onAdd:c[7]||(c[7]=b=>m(e.unref(o).HOSTS)),onRemove:c[8]||(c[8]=b=>h(e.unref(o).HOSTS,b))},null,8,["modelValue"])):e.createCommentVNode("",!0),s.value.headers&&n.configType==="advanced"&&y.value.has(e.unref(o).HEADERS)?(e.openBlock(),e.createBlock(Ke,{key:"headers-container",modelValue:s.value.headers,"onUpdate:modelValue":c[9]||(c[9]=b=>s.value.headers=b),onAdd:c[10]||(c[10]=b=>m(e.unref(o).HEADERS)),onRemove:c[11]||(c[11]=b=>h(e.unref(o).HEADERS,b))},null,8,["modelValue"])):e.createCommentVNode("",!0),s.value.sources&&y.value.has(e.unref(o).SOURCES)?(e.openBlock(),e.createBlock(ve,{key:"sources-container",modelValue:s.value.sources,"onUpdate:modelValue":c[12]||(c[12]=b=>s.value.sources=b),onAdd:c[13]||(c[13]=b=>m(e.unref(o).SOURCES)),onRemove:c[14]||(c[14]=b=>h(e.unref(o).SOURCES,b))},null,8,["modelValue"])):e.createCommentVNode("",!0),s.value.destinations&&y.value.has(e.unref(o).DESTINATIONS)?(e.openBlock(),e.createBlock(Fe,{key:"destinations-container",modelValue:s.value.destinations,"onUpdate:modelValue":c[15]||(c[15]=b=>s.value.destinations=b),onAdd:c[16]||(c[16]=b=>m(e.unref(o).DESTINATIONS)),onRemove:c[17]||(c[17]=b=>h(e.unref(o).DESTINATIONS,b))},null,8,["modelValue"])):e.createCommentVNode("",!0),s.value.snis&&n.configType==="advanced"&&y.value.has(e.unref(o).SNIS)?(e.openBlock(),e.createBlock(Ye,{key:"snis-container",modelValue:s.value.snis,"onUpdate:modelValue":c[18]||(c[18]=b=>s.value.snis=b),onAdd:c[19]||(c[19]=b=>m(e.unref(o).SNIS)),onRemove:c[20]||(c[20]=b=>h(e.unref(o).SNIS,b))},null,8,["modelValue"])):e.createCommentVNode("",!0)]}),_:1}),n.hideAdvanced?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",ot,[(p=s.value.paths)!=null&&p.some(Boolean)?(e.openBlock(),e.createBlock(P,{key:0,modelValue:s.value.path_handling,"onUpdate:modelValue":c[21]||(c[21]=_=>s.value.path_handling=_),"data-testid":"route-form-path-handling",items:e.unref(Te),label:e.unref(t)("form.fields.path_handling.label"),"label-attributes":{info:e.unref(t)("form.fields.path_handling.tooltip"),tooltipAttributes:{maxWidth:"320"}},readonly:n.readonly,width:"100%"},null,8,["modelValue","items","label","label-attributes","readonly"])):e.createCommentVNode("",!0),e.createVNode(P,{modelValue:s.value.https_redirect_status_code,"onUpdate:modelValue":c[22]||(c[22]=_=>s.value.https_redirect_status_code=_),"data-testid":"route-form-http-redirect-status-code",items:e.unref(me),label:e.unref(t)("form.fields.https_redirect_status_code.label"),"label-attributes":{info:e.unref(t)("form.fields.https_redirect_status_code.tooltip"),tooltipAttributes:{maxWidth:"320"}},readonly:n.readonly,width:"100%"},null,8,["modelValue","items","label","label-attributes","readonly"]),e.createVNode(B,{modelValue:s.value.regex_priority,"onUpdate:modelValue":c[23]||(c[23]=_=>s.value.regex_priority=_),autocomplete:"off","data-testid":"route-form-regex-priority",label:e.unref(t)("form.fields.regex_priority.label"),"label-attributes":{info:e.unref(t)("form.fields.regex_priority.tooltip"),tooltipAttributes:{maxWidth:"320"}},readonly:n.readonly,type:"number"},null,8,["modelValue","label","label-attributes","readonly"]),e.createVNode(g,{modelValue:s.value.preserve_host,"onUpdate:modelValue":c[24]||(c[24]=_=>s.value.preserve_host=_),"data-testid":"route-form-preserve-host",label:e.unref(t)("form.fields.preserve_host.label"),"label-attributes":{info:e.unref(t)("form.fields.preserve_host.tooltip"),tooltipAttributes:{maxWidth:"320"}}},null,8,["modelValue","label","label-attributes"]),e.createVNode(g,{modelValue:s.value.request_buffering,"onUpdate:modelValue":c[25]||(c[25]=_=>s.value.request_buffering=_),"data-testid":"route-form-request-buffering",label:e.unref(t)("form.fields.request_buffering.label"),"label-attributes":{info:e.unref(t)("form.fields.request_buffering.tooltip"),tooltipAttributes:{maxWidth:"320"}}},null,8,["modelValue","label","label-attributes"]),e.createVNode(g,{modelValue:s.value.response_buffering,"onUpdate:modelValue":c[26]||(c[26]=_=>s.value.response_buffering=_),"data-testid":"route-form-response-buffering",label:e.unref(t)("form.fields.response_buffering.label"),"label-attributes":{info:e.unref(t)("form.fields.response_buffering.tooltip"),tooltipAttributes:{maxWidth:"320"}}},null,8,["modelValue","label","label-attributes"])]))]}),_:1})}}}),[["__scopeId","data-v-8bcc8a9f"]]),rt=e.defineComponent({__name:"RouteFormExpressionsEditorLoader",props:e.mergeModels({protocol:{},showExpressionsModalEntry:{type:Boolean}},{modelValue:{required:!0},modelModifiers:{}}),emits:e.mergeModels(["notify"],["update:modelValue"]),setup(r,{emit:V}){const{i18n:{t:u}}=H.useI18n(),t={render:()=>e.h("div",u("form.expressions_editor.loading"))},a={render:()=>e.h("div",u("form.expressions_editor.error"))},d=e.defineAsyncComponent({loader:async()=>Promise.resolve().then(()=>Vt),loadingComponent:t,errorComponent:a}),s=r,E=V,m=e.ref(Q.LOADING),h=e.useModel(r,"modelValue"),f=y=>{h.value=y};return e.onMounted(async()=>{try{await(await import("@kong-ui-public/expressions")).asyncInit,m.value=Q.READY}catch(y){m.value=Q.ERROR,console.error(y)}}),(y,I)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[m.value===e.unref(Q).ERROR?(e.openBlock(),e.createBlock(e.resolveDynamicComponent(a),{key:0,"data-testid":"route-form-expressions-editor-loader-error"})):m.value===e.unref(Q).LOADING?(e.openBlock(),e.createBlock(e.resolveDynamicComponent(t),{key:1,"data-testid":"route-form-expressions-editor-loader-loading"})):(e.openBlock(),e.createBlock(e.unref(d),{key:2,modelValue:h.value,"onUpdate:modelValue":I[0]||(I[0]=R=>h.value=R),protocol:s.protocol,"show-expressions-modal-entry":y.showExpressionsModalEntry,onNotify:I[1]||(I[1]=R=>E("notify",R))},{default:e.withCtx(()=>[e.createVNode(e.unref(X.RocketIcon),{size:e.unref(Pe)},null,8,["size"]),e.createElementVNode("span",null,e.toDisplayString(e.unref(u)("form.expression_playground.test_link")),1)]),_:1},8,["modelValue","protocol","show-expressions-modal-entry"])),e.renderSlot(y.$slots,"after-editor",{expression:{value:h.value,update:f},state:m.value})],64))}}),lt={class:"route-form-routing-rules-title-container"},st={class:"routing-rules-title"},nt={class:"route-form-fields-container route-form-advanced-fields-container"},at=U(e.defineComponent({__name:"ExpressionsRules",props:e.mergeModels({protocols:{},hideAdvanced:{type:Boolean},readonly:{type:Boolean},showExpressionsModalEntry:{type:Boolean}},{fields:{required:!0},fieldsModifiers:{}}),emits:e.mergeModels(["notify"],["update:fields"]),setup(r,{emit:V}){const{i18n:{t:u}}=H.useI18n(),t=r,a=e.useModel(r,"fields"),d=V,s=e.ref(!0),E=e.computed(()=>t.protocols.split(",")||[]),m=h=>h.some(f=>t.protocols.includes(f));return(h,f)=>{const y=e.resolveComponent("KCard"),I=e.resolveComponent("KSelect"),R=e.resolveComponent("KInput"),n=e.resolveComponent("KCheckbox"),c=e.resolveComponent("KCollapse");return e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createVNode(y,null,{title:e.withCtx(()=>[e.createElementVNode("div",lt,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(E.value,g=>(e.openBlock(),e.createElementBlock("span",{key:g,class:"protocol-title"},e.toDisplayString(g.toUpperCase()),1))),128)),e.createElementVNode("span",st,e.toDisplayString(e.unref(u)("form.sections.routingExpression.title")),1)])]),default:e.withCtx(()=>[e.createVNode(rt,{modelValue:a.value.expression,"onUpdate:modelValue":f[0]||(f[0]=g=>a.value.expression=g),protocol:E.value[0],"show-expressions-modal-entry":h.showExpressionsModalEntry,onNotify:f[1]||(f[1]=g=>d("notify",g))},{"after-editor":e.withCtx(g=>[e.renderSlot(h.$slots,"after-expressions-editor",{expression:g.expression,state:g.state},void 0,!0)]),_:3},8,["modelValue","protocol","show-expressions-modal-entry"])]),_:3}),e.createVNode(c,{modelValue:s.value,"onUpdate:modelValue":f[8]||(f[8]=g=>s.value=g),class:"route-form-advanced-fields-collapse","trigger-alignment":"leading","trigger-label":e.unref(u)("form.show_more")},{default:e.withCtx(()=>[e.createVNode(y,null,{default:e.withCtx(()=>[e.createElementVNode("div",nt,[e.createVNode(I,{modelValue:a.value.https_redirect_status_code,"onUpdate:modelValue":f[2]||(f[2]=g=>a.value.https_redirect_status_code=g),"data-testid":"route-form-http-redirect-status-code",items:e.unref(me),label:e.unref(u)("form.fields.https_redirect_status_code.label"),readonly:h.readonly,width:"100%"},null,8,["modelValue","items","label","readonly"]),e.createVNode(R,{modelValue:a.value.priority,"onUpdate:modelValue":f[3]||(f[3]=g=>a.value.priority=g),autocomplete:"off","data-testid":"route-form-priority",label:e.unref(u)("form.fields.priority.label"),"label-attributes":{info:e.unref(u)("form.fields.priority.tooltip"),tooltipAttributes:{maxWidth:"400"}},readonly:h.readonly,type:"number"},null,8,["modelValue","label","label-attributes","readonly"]),m(["http","https","ws","wss","tls","tcp","udp","tls_passthrough"])?(e.openBlock(),e.createBlock(n,{key:0,modelValue:a.value.strip_path,"onUpdate:modelValue":f[4]||(f[4]=g=>a.value.strip_path=g),"data-testid":"route-form-strip-path",label:e.unref(u)("form.fields.strip_path.label")},null,8,["modelValue","label"])):e.createCommentVNode("",!0),e.createVNode(n,{modelValue:a.value.preserve_host,"onUpdate:modelValue":f[5]||(f[5]=g=>a.value.preserve_host=g),"data-testid":"route-form-preserve-host",label:e.unref(u)("form.fields.preserve_host.label")},null,8,["modelValue","label"]),e.createVNode(n,{modelValue:a.value.request_buffering,"onUpdate:modelValue":f[6]||(f[6]=g=>a.value.request_buffering=g),"data-testid":"route-form-request-buffering",label:e.unref(u)("form.fields.request_buffering.label")},null,8,["modelValue","label"]),e.createVNode(n,{modelValue:a.value.response_buffering,"onUpdate:modelValue":f[7]||(f[7]=g=>a.value.response_buffering=g),"data-testid":"route-form-response-buffering",label:e.unref(u)("form.fields.response_buffering.label")},null,8,["modelValue","label"])])]),_:1})]),_:1},8,["modelValue","trigger-label"])],64)}}}),[["__scopeId","data-v-e7571a47"]]),it={class:"config-type-container"},dt={key:0,class:"config-flavor"},Ve=U(e.defineComponent({__name:"RouteFormRulesComposer",props:e.mergeModels({protocols:{},routeFlavors:{},readonly:{type:Boolean},recordFlavor:{},showExpressionsModalEntry:{type:Boolean},tooltips:{},isWsSupported:{type:Boolean},hideProtocols:{type:Boolean}},{configType:{required:!0},configTypeModifiers:{},configFlavor:{required:!0},configFlavorModifiers:{},fields:{default:()=>e.reactive({...ae,paths:[""],regex_priority:0,path_handling:"v0",expression:"",priority:0})},fieldsModifiers:{},customMethods:{default:()=>e.reactive([])},customMethodsModifiers:{}}),emits:e.mergeModels(["notify","update:payload","update:protocols"],["update:configType","update:configFlavor","update:fields","update:customMethods"]),setup(r,{emit:V}){const u=r,t=e.useModel(r,"configType"),a=e.useModel(r,"configFlavor"),d=e.useModel(r,"fields"),s=e.useModel(r,"customMethods"),E=V,{i18n:{t:m}}=H.useI18n(),h=[{value:D.TRADITIONAL,label:m("form.flavors.traditional")},{value:D.EXPRESSIONS,label:m("form.flavors.expressions")}],f=e.computed(()=>[{label:m("form.protocols.grpc"),value:"grpc"},{label:m("form.protocols.grpcs"),value:"grpcs"},{label:m("form.protocols.grpc,grpcs"),value:"grpc,grpcs"},{label:m("form.protocols.http"),value:"http"},{label:m("form.protocols.https"),value:"https"},{label:m("form.protocols.http,https"),value:"http,https"},{label:m("form.protocols.tcp"),value:"tcp"},{label:m("form.protocols.tls"),value:"tls"},{label:m("form.protocols.tls,udp"),value:"tls,udp"},{label:m("form.protocols.tcp,udp"),value:"tcp,udp"},{label:m("form.protocols.tcp,tls"),value:"tcp,tls"},{label:m("form.protocols.tcp,tls,udp"),value:"tcp,tls,udp"},{label:m("form.protocols.tls_passthrough"),value:"tls_passthrough"},{label:m("form.protocols.udp"),value:"udp"},...u.isWsSupported?[{label:m("form.protocols.ws"),value:"ws"},{label:m("form.protocols.wss"),value:"wss"},{label:m("form.protocols.ws,wss"),value:"ws,wss"}]:[]]),y=e.computed(()=>u.recordFlavor?u.recordFlavor:a.value),I=(p,_)=>{if(!new Set(ce[u.protocols]).has(p))return[];if([o.PATHS,o.HOSTS,o.METHODS,o.SNIS].includes(p))return[..._].filter(O=>!!O);if(p===o.SOURCES||p===o.DESTINATIONS)return[..._].filter(O=>!!O.ip).map(O=>({...O,port:!O.port&&O.port!==0?null:O.port}));if(p===o.HEADERS)return[..._].filter(O=>!!O.header)},R=p=>p.some(_=>u.protocols.includes(_)),n=()=>{if(y.value!==D.TRADITIONAL)return null;const p=d.value,_=I(o.HEADERS,p.headers||[])||M[o.HEADERS];return _.length===0?null:_.reduce((b,O)=>(b[O.header]=O.values.split(","),b),{})},c=e.computed(()=>(d.value.methods||[]).filter(b=>Object.keys(Y).includes(b)).concat(s.value.map(b=>b.label.toUpperCase()))),g=p=>p!=null&&p.length?p:null,P=e.computed(()=>({https_redirect_status_code:d.value.https_redirect_status_code,strip_path:R(["http","https","ws","wss"])?d.value.strip_path:!1,preserve_host:d.value.preserve_host,request_buffering:d.value.request_buffering,response_buffering:d.value.response_buffering})),B=e.computed(()=>{switch(y.value){case D.TRADITIONAL:{const p=d.value,_=g(I(o.PATHS,p.paths||[])),b=g(I(o.HOSTS,p.hosts||[])),O={...P.value,methods:g(I(o.METHODS,c.value)),hosts:t.value==="basic"&&b?b.slice(0,1):b,paths:t.value==="basic"&&_?_.slice(0,1):_,headers:t.value==="basic"?null:n(),regex_priority:Number(p.regex_priority),path_handling:p.path_handling,sources:g(I(o.SOURCES,p.sources||[])),destinations:g(I(o.DESTINATIONS,p.destinations||[])),snis:t.value==="basic"?null:g(I(o.SNIS,p.snis||[]))};return{type:y.value,payload:O}}case D.EXPRESSIONS:{const p=d.value;return{type:y.value,payload:{...P.value,expression:p.expression,priority:Number(p.priority)}}}default:return}}),q=p=>{p&&E("update:protocols",p)};return e.watch([()=>u.recordFlavor,()=>u.routeFlavors],([p,_])=>{if(p){a.value=p;return}a.value=!_.traditional&&_.expressions?D.EXPRESSIONS:D.TRADITIONAL},{immediate:!0,deep:!0}),e.watch(t,p=>{p==="basic"&&(a.value=D.TRADITIONAL,E("update:protocols","http,https"))}),e.watch(B,p=>{E("update:payload",p)},{deep:!0,immediate:!0}),(p,_)=>{const b=e.resolveComponent("KRadio"),O=e.resolveComponent("KLabel"),ie=e.resolveComponent("KTooltip"),de=e.resolveComponent("KSegmentedControl"),$=e.resolveComponent("KAlert"),re=e.resolveComponent("KSelect");return e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createElementVNode("div",it,[e.createVNode(b,{modelValue:t.value,"onUpdate:modelValue":_[0]||(_[0]=x=>t.value=x),card:"","card-orientation":"horizontal","data-testid":"route-form-config-type-basic",description:e.unref(m)("form.config_types.basic.description"),disabled:!p.routeFlavors.traditional||p.recordFlavor===e.unref(D).EXPRESSIONS,label:e.unref(m)("form.config_types.basic.label"),"selected-value":"basic"},null,8,["modelValue","description","disabled","label"]),e.createVNode(b,{modelValue:t.value,"onUpdate:modelValue":_[1]||(_[1]=x=>t.value=x),card:"","card-orientation":"horizontal","data-testid":"route-form-config-type-advanced",description:e.unref(m)("form.config_types.advanced.description"),label:e.unref(m)("form.config_types.advanced.label"),"selected-value":"advanced"},null,8,["modelValue","description","label"])]),t.value==="basic"?(e.openBlock(),e.createBlock(Ne,{key:0,"custom-methods":s.value,"onUpdate:customMethods":_[2]||(_[2]=x=>s.value=x),fields:d.value,"onUpdate:fields":_[3]||(_[3]=x=>d.value=x),"config-type":"basic","hide-advanced":"",protocols:p.protocols,readonly:p.readonly},null,8,["custom-methods","fields","protocols","readonly"])):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[p.routeFlavors.traditional&&p.routeFlavors.expressions?(e.openBlock(),e.createElementBlock("div",dt,[e.createVNode(O,{class:"config-flavor-label"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(m)("form.config_flavor.label")),1)]),_:1}),e.createVNode(de,{modelValue:a.value,"onUpdate:modelValue":_[4]||(_[4]=x=>a.value=x),class:"config-flavor-control","data-testid":"route-form-config-flavor",options:h},{"option-label":e.withCtx(({option:x})=>{var Z,z;return[e.createElementVNode("span",null,e.toDisplayString(x.label),1),(Z=p.tooltips)!=null&&Z[x.value]?(e.openBlock(),e.createBlock(ie,{key:0,class:"route-form-config-tabs-tooltip",text:(z=p.tooltips)==null?void 0:z[x.value],"tooltip-id":`route-form-config-tabs-tooltip-${x.value}`},{default:e.withCtx(()=>[e.createVNode(e.unref(X.InfoIcon))]),_:2},1032,["text","tooltip-id"])):e.createCommentVNode("",!0)]}),_:1},8,["modelValue"])])):e.createCommentVNode("",!0),p.routeFlavors.traditional&&p.routeFlavors.expressions&&(!p.recordFlavor||p.recordFlavor!==a.value)?(e.openBlock(),e.createBlock($,{key:1,appearance:p.recordFlavor?"warning":"info",class:"route-form-config-type-immutable-alert","data-testid":"route-config-type-immutable-alert"},{default:e.withCtx(()=>[p.recordFlavor?p.recordFlavor!==a.value?(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createTextVNode(e.toDisplayString(e.unref(m)("form.warning.cannotChangeFlavor.edit",{format:e.unref(m)(`form.flavors.${p.recordFlavor}`)})),1)],64)):e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createTextVNode(e.toDisplayString(e.unref(m)("form.warning.cannotChangeFlavor.create")),1)],64))]),_:1},8,["appearance"])):e.createCommentVNode("",!0),!p.recordFlavor||!(p.routeFlavors.traditional&&p.routeFlavors.expressions&&p.recordFlavor!==a.value)?(e.openBlock(),e.createElementBlock(e.Fragment,{key:2},[p.hideProtocols?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(re,{key:0,"data-testid":"route-form-protocols",items:f.value,label:e.unref(m)("form.fields.protocols.label"),"label-attributes":{info:e.unref(m)("form.fields.protocols.tooltip"),tooltipAttributes:{maxWidth:"400"}},"model-value":p.protocols,readonly:p.readonly,required:"",width:"100%","onUpdate:modelValue":q},null,8,["items","label","label-attributes","model-value","readonly"])),a.value===e.unref(D).TRADITIONAL?(e.openBlock(),e.createBlock(Ne,{key:1,"custom-methods":s.value,"onUpdate:customMethods":_[5]||(_[5]=x=>s.value=x),fields:d.value,"onUpdate:fields":_[6]||(_[6]=x=>d.value=x),"config-type":"advanced",protocols:p.protocols,readonly:p.readonly},null,8,["custom-methods","fields","protocols","readonly"])):(e.openBlock(),e.createBlock(at,{key:2,fields:d.value,"onUpdate:fields":_[7]||(_[7]=x=>d.value=x),protocols:p.protocols,readonly:p.readonly,"show-expressions-modal-entry":p.showExpressionsModalEntry,onNotify:_[8]||(_[8]=x=>E("notify",x))},null,8,["fields","protocols","readonly","show-expressions-modal-entry"]))],64)):e.createCommentVNode("",!0)],64))],64)}}}),[["__scopeId","data-v-893fc5e4"]]),ct=r=>{var u,t,a,d,s,E;return!(typeof r.expression=="string"&&r.expression.length>0||(r.protocols||[]).sort().join(",")!=="http,https"||((u=r[o.PATHS])==null?void 0:u.length)>1||((t=r[o.HOSTS])==null?void 0:t.length)>1||((a=r[o.HEADERS])==null?void 0:a.length)>0||((d=r[o.SNIS])==null?void 0:d.length)>0||((s=r[o.SOURCES])==null?void 0:s.length)>0||((E=r[o.DESTINATIONS])==null?void 0:E.length)>0||["path_handling","regex_priority","https_redirect_status_code","preserve_host","request_buffering","response_buffering"].some(m=>r[m]!==ke[m]))},pt={class:"kong-ui-entities-route-form"},ft={key:1},ut={"data-testid":"no-search-results"},mt={class:"route-form-service-dropdown-item"},ht={class:"select-item-label"},gt={class:"select-item-description"},yt=U(e.defineComponent({__name:"RouteForm",props:{config:{type:Object,required:!0,validator:r=>!(!r||!["konnect","kongManager"].includes(r==null?void 0:r.app)||(r==null?void 0:r.app)==="konnect"&&!(r!=null&&r.controlPlaneId)||(r==null?void 0:r.app)==="kongManager"&&typeof(r==null?void 0:r.workspace)!="string"||!(r!=null&&r.cancelRoute))},routeId:{type:String,required:!1,default:""},serviceId:{type:String,required:!1,default:""},hideSectionsInfo:{type:Boolean,required:!1,default:!1},hideNameField:{type:Boolean,required:!1,default:!1},hideServiceField:{type:Boolean,required:!1,default:!1},routeFlavors:{type:Object,required:!1,default:()=>({traditional:!0})},configTabTooltips:{type:Object,required:!1,default:()=>{}},showExpressionsModalEntry:{type:Boolean,required:!1,default:!1}},emits:["update","error","loading","model-updated","notify"],setup(r,{expose:V,emit:u}){var se;const t=r,a=u,d=e.ref("basic"),s=e.ref(!t.routeFlavors.traditional&&t.routeFlavors.expressions?D.EXPRESSIONS:D.TRADITIONAL),E=e.ref(void 0),m=e.computed(()=>{if(E.value)return E.value;if(s.value)return s.value;if(t.routeFlavors.traditional)return D.TRADITIONAL;if(t.routeFlavors.expressions)return D.EXPRESSIONS}),{i18n:{t:h}}=H.useI18n(),f=Ce.useRouter(),{axiosInstance:y}=N.useAxios((se=t.config)==null?void 0:se.axiosRequestConfig),{getMessageFromError:I}=N.useErrors(),R=l=>l.name?`${l.name} - ${l.value}`:l.value,n=e.reactive({routeFlavors:t.routeFlavors,fields:{name:"",protocols:"http,https",tags:"",service_id:"",...ae,paths:[""],snis:[""],hosts:[""],methods:[],headers:[{...M[o.HEADERS][0]}],sources:[{...M[o.SOURCES][0]}],destinations:[{...M[o.DESTINATIONS][0]}],regex_priority:0,path_handling:"v0",expression:"",priority:0},isReadonly:!1,errorMessage:""});e.watch(()=>t.routeFlavors,l=>{n.routeFlavors=l,l.traditional||(d.value="advanced")},{immediate:!0,deep:!0});const c=e.ref(),g=e.ref([]),P=e.ref([]),B=e.reactive({name:"",protocols:"http,https",tags:"",service_id:"",...ae,path_handling:"v0",regex_priority:0,expression:"",priority:0}),q=t.config.app==="konnect"||N.useGatewayFeatureSupported({gatewayInfo:t.config.gatewayInfo,supportedRange:{enterprise:["3.0"]}}),p=e.computed(()=>t.routeId?N.EntityBaseFormType.Edit:N.EntityBaseFormType.Create),_=e.computed(()=>{var l,i,S;return(S=(i=ee.form[(l=t.config)==null?void 0:l.app])==null?void 0:i.fetch)==null?void 0:S[t.serviceId?"forGatewayService":"all"].replace(/{serviceId}/gi,t.serviceId||"")}),b=()=>{var l;f.push((l=t.config)==null?void 0:l.cancelRoute)},O=l=>{a("loading",l)},ie=l=>{a("error",l)},de=l=>Object.entries(l).map(i=>{var S;return{header:i[0],values:(S=i[1])==null?void 0:S.join()}}),$=l=>l.some(i=>n.fields.protocols.includes(i)),re=l=>{var S,T;if(t.routeId){const C=typeof l.expression=="string"&&l.expression.length>0?D.EXPRESSIONS:D.TRADITIONAL;E.value=C,ct(l)||(d.value="advanced")}(S=l==null?void 0:l.service)!=null&&S.id&&(n.fields.service_id=l.service.id),n.fields.name=(l==null?void 0:l.name)||"";const i=(l==null?void 0:l.tags)||[];n.fields.tags=(i==null?void 0:i.join(", "))||"",n.fields.preserve_host=typeof(l==null?void 0:l.preserve_host)>"u"?!1:l==null?void 0:l.preserve_host,n.fields.https_redirect_status_code=(l==null?void 0:l.https_redirect_status_code)||426,(T=l==null?void 0:l.protocols)!=null&&T.length&&(l.protocols.length>1?n.fields.protocols=l.protocols.join():n.fields.protocols=l.protocols[0]),n.fields.request_buffering=typeof(l==null?void 0:l.request_buffering)>"u"?!0:l==null?void 0:l.request_buffering,n.fields.response_buffering=typeof(l==null?void 0:l.response_buffering)>"u"?!0:l==null?void 0:l.response_buffering,n.fields.strip_path=typeof(l==null?void 0:l.strip_path)>"u"?!0:l==null?void 0:l.strip_path,fe(n)&&(n.fields.regex_priority=(l==null?void 0:l.regex_priority)||0,n.fields.path_handling=(l==null?void 0:l.path_handling)||"v0",l!=null&&l.paths&&(n.fields.paths=l.paths),l!=null&&l.snis&&(n.fields.snis=l.snis),l!=null&&l.hosts&&(n.fields.hosts=l.hosts),l!=null&&l.methods&&(n.fields.methods=l.methods.filter(C=>Object.keys(Y).includes(C)),g.value=l.methods.filter(C=>!Object.keys(Y).includes(C)).map(C=>({label:C,value:C})),P.value=[...g.value]),l!=null&&l.headers&&(n.fields.headers=de(l.headers)),l!=null&&l.sources&&(n.fields.sources=l.sources),l!=null&&l.destinations&&(n.fields.destinations=l.destinations)),ue(n)&&(n.fields.expression=(l==null?void 0:l.expression)||"",n.fields.priority=(l==null?void 0:l.priority)||0),Object.assign(B,JSON.parse(JSON.stringify(n.fields)))},x=e.computed(()=>{switch(m.value){case D.TRADITIONAL:{if(fe(n)){const l=n.fields.hosts?!!n.fields.hosts.filter(Boolean).length:null,i=n.fields.paths?!!n.fields.paths.filter(Boolean).length:null,S=n.fields.headers?n.fields.headers.some(({header:W})=>!!W):null,T=n.fields.snis?!!n.fields.snis.filter(Boolean).length:null,C=n.fields.destinations?n.fields.destinations.some(({ip:W})=>!!W):null,K=n.fields.sources?n.fields.sources.some(({ip:W})=>!!W):null,G=n.fields.methods?!!n.fields.methods.filter(Boolean).length:null;return!!n.fields.protocols&&($(["http"])&&!!(l||G||i||S)||$(["https"])&&!!(l||G||i||S||T)||$(["grpc"])&&!!(l||i||S)||$(["grpcs","wss"])&&!!(l||i||S||T)||$(["udp","tls"])&&!!(C||K||T)||$(["tcp"])&&!!(C||K)||$(["tls_passthrough"])&&!!T||$(["ws"])&&!!(l||i||S))}break}case D.EXPRESSIONS:{if(ue(n))return n.fields.expression.length>0;break}}return!0}),Z=e.computed(()=>!_e(n.fields,B)||!_e(g.value,P.value)),z=e.computed(()=>{var i,S;let l=`${t.config.apiBaseUrl}${ee.form[t.config.app][p.value][t.serviceId?"forGatewayService":"all"]}`;return t.config.app==="konnect"?l=l.replace(/{controlPlaneId}/gi,((i=t.config)==null?void 0:i.controlPlaneId)||"").replace(/{serviceId}/gi,t.serviceId||""):t.config.app==="kongManager"&&(l=l.replace(/\/{workspace}/gi,(S=t.config)!=null&&S.workspace?`/${t.config.workspace}`:"").replace(/{serviceId}/gi,t.serviceId||"")),l=l.replace(/{id}/gi,t.routeId),l});e.watch(()=>n.fields,()=>{a("model-updated",v.value)},{deep:!0});const v=e.computed(()=>{var l,i,S;return{...!t.hideNameField&&{name:n.fields.name||null},protocols:n.fields.protocols.split(","),tags:(i=(l=n.fields.tags.split(","))==null?void 0:l.map(T=>String(T||"").trim()))==null?void 0:i.filter(T=>T!==""),service:n.fields.service_id?{id:n.fields.service_id}:null,...(S=c.value)==null?void 0:S.payload}}),j=l=>{switch(m.value){case D.TRADITIONAL:{if(!("regex_priority"in l&&"path_handling"in l))return!1;break}case D.EXPRESSIONS:{if(!("priority"in l))return!1;break}}return"service"in l&&"tags"in l&&"protocols"in l},J=async l=>{var S;const i=l&&j(l)?l:v.value;try{n.isReadonly=!0;let T;p.value==="create"?T=await y.post(z.value,i):p.value==="edit"&&(T=((S=t.config)==null?void 0:S.app)==="konnect"?await y.put(z.value,i):await y.patch(z.value,i)),re(T==null?void 0:T.data),a("update",T==null?void 0:T.data)}catch(T){n.errorMessage=I(T),a("error",T)}finally{n.isReadonly=!1}},{debouncedQueryChange:le,loading:pe,error:he,loadItems:ge,results:ye}=N.useDebouncedFilter(t.config,ee.form[t.config.app].services,void 0,{fetchedItemsKey:"data",searchKeys:["id","name"]}),Se=e.computed(()=>he.value?h("errors.services.fetch"):""),be=e.computed(()=>{var l;return(l=ye.value)==null?void 0:l.map(i=>({label:i.id,name:i.name,value:i.id}))});return e.onBeforeMount(async()=>{!t.hideServiceField&&!t.serviceId?await ge():n.fields.service_id=t.serviceId}),e.onMounted(()=>{a("model-updated",v.value)}),V({saveFormData:J,payload:v}),e.provide("configType",d),(l,i)=>{const S=e.resolveComponent("KInput"),T=e.resolveComponent("KSelect");return e.openBlock(),e.createElementBlock("div",pt,[e.createVNode(e.unref(N.EntityBaseForm),{"can-submit":x.value&&Z.value,config:r.config,"edit-id":r.routeId,"entity-type":e.unref(N.SupportedEntityType).Route,"error-message":n.errorMessage||Se.value,"fetch-url":_.value,"form-fields":v.value,"is-readonly":n.isReadonly,onCancel:b,"onFetch:error":ie,"onFetch:success":re,onLoading:O,onSubmit:J},{"form-actions":e.withCtx(()=>[e.renderSlot(l.$slots,"form-actions",{canSubmit:x.value&&Z.value,cancel:b,submit:J},void 0,!0)]),default:e.withCtx(()=>[e.createVNode(e.unref(N.EntityFormSection),{description:e.unref(h)("form.sections.general.description"),"hide-info-header":r.hideSectionsInfo,title:e.unref(h)("form.sections.general.title")},{default:e.withCtx(()=>[r.hideNameField?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(S,{key:0,modelValue:n.fields.name,"onUpdate:modelValue":i[0]||(i[0]=C=>n.fields.name=C),modelModifiers:{trim:!0},autocomplete:"off","data-testid":"route-form-name",label:e.unref(h)("form.fields.name.label"),placeholder:e.unref(h)("form.fields.name.placeholder"),readonly:n.isReadonly,type:"text"},null,8,["modelValue","label","placeholder","readonly"])),!r.hideServiceField&&!r.serviceId?(e.openBlock(),e.createElementBlock("div",ft,[e.createVNode(T,{modelValue:n.fields.service_id,"onUpdate:modelValue":i[1]||(i[1]=C=>n.fields.service_id=C),clearable:"","data-testid":"route-form-service-id","enable-filtering":"","filter-function":()=>!0,items:be.value,label:e.unref(h)("form.fields.service_id.label"),loading:e.unref(pe),placeholder:e.unref(h)("form.fields.service_id.placeholder"),readonly:n.isReadonly,"reuse-item-template":"",width:"100%",onQueryChange:e.unref(le)},{loading:e.withCtx(()=>[e.createElementVNode("div",null,e.toDisplayString(e.unref(h)("actions.loading")),1)]),empty:e.withCtx(()=>[e.createElementVNode("div",ut,e.toDisplayString(e.unref(h)("search.no_results")),1)]),"selected-item-template":e.withCtx(({item:C})=>[e.createTextVNode(e.toDisplayString(R(C)),1)]),"item-template":e.withCtx(({item:C})=>[e.createElementVNode("div",mt,[e.createElementVNode("span",ht,e.toDisplayString(C.name),1),e.createElementVNode("span",gt,e.toDisplayString(C.value),1)])]),_:1},8,["modelValue","items","label","loading","placeholder","readonly","onQueryChange"])])):e.createCommentVNode("",!0),e.createVNode(S,{modelValue:n.fields.tags,"onUpdate:modelValue":i[2]||(i[2]=C=>n.fields.tags=C),modelModifiers:{trim:!0},autocomplete:"off","data-testid":"route-form-tags",help:e.unref(h)("form.fields.tags.help"),label:e.unref(h)("form.fields.tags.label"),placeholder:e.unref(h)("form.fields.tags.placeholder"),readonly:n.isReadonly,type:"text"},null,8,["modelValue","help","label","placeholder","readonly"])]),_:1},8,["description","hide-info-header","title"]),e.createVNode(e.unref(N.EntityFormSection),{description:e.unref(h)("form.sections.config.description"),"hide-info-header":r.hideSectionsInfo,title:e.unref(h)("form.sections.config.title")},{default:e.withCtx(()=>[e.createVNode(Ve,{"config-flavor":s.value,"onUpdate:configFlavor":i[3]||(i[3]=C=>s.value=C),"config-type":d.value,"onUpdate:configType":i[4]||(i[4]=C=>d.value=C),"custom-methods":g.value,"onUpdate:customMethods":i[5]||(i[5]=C=>g.value=C),fields:n.fields,"onUpdate:fields":i[6]||(i[6]=C=>n.fields=C),"is-ws-supported":e.unref(q),protocols:n.fields.protocols,readonly:n.isReadonly,"record-flavor":E.value,"route-flavors":r.routeFlavors,"show-expressions-modal-entry":r.showExpressionsModalEntry,tooltips:r.configTabTooltips,onNotify:i[7]||(i[7]=C=>a("notify",C)),"onUpdate:payload":i[8]||(i[8]=C=>c.value=C),"onUpdate:protocols":i[9]||(i[9]=C=>n.fields.protocols=C)},null,8,["config-flavor","config-type","custom-methods","fields","is-ws-supported","protocols","readonly","record-flavor","route-flavors","show-expressions-modal-entry","tooltips"])]),_:1},8,["description","hide-info-header","title"])]),_:3},8,["can-submit","config","edit-id","entity-type","error-message","fetch-url","form-fields","is-readonly"])])}}}),[["__scopeId","data-v-ba92a78f"]]),St={class:"kong-ui-entities-routes-list"},bt={class:"button-row"},_t={class:"empty-state-icon-gateway"},Ct={key:1},Et={key:1},Tt={key:1},kt={class:"route-list-cell-expression"},Nt=U(e.defineComponent({__name:"RouteList",props:{config:{type:Object,required:!0,validator:r=>!(!r||!["konnect","kongManager"].includes(r==null?void 0:r.app)||!r.createRoute||!r.getViewRoute||!r.getEditRoute||r.app==="kongManager"&&!r.isExactMatch&&!r.filterSchema)},cacheIdentifier:{type:String,default:""},canCreate:{type:Function,required:!1,default:async()=>!0},canDelete:{type:Function,required:!1,default:async()=>!0},canEdit:{type:Function,required:!1,default:async()=>!0},canRetrieve:{type:Function,required:!1,default:async()=>!0},title:{type:String,default:""},titleTag:{type:String,default:"h2"},useActionOutside:{type:Boolean,default:!1},hideTraditionalColumns:{type:Boolean,default:!1},hasExpressionColumn:{type:Boolean,default:!1},enableV2EmptyStates:{type:Boolean,default:!1}},emits:["error","click:learn-more","copy:success","copy:error","delete:success"],setup(r,{emit:V}){var l;const u=V,t=r,{i18n:{t:a,formatUnixTimeStamp:d}}=H.useI18n(),s=Ce.useRouter(),{axiosInstance:E}=N.useAxios((l=t.config)==null?void 0:l.axiosRequestConfig),{handleStateChange:m,hasRecords:h}=N.useTableState(()=>B.value),f=e.computed(()=>h.value&&t.config.app==="konnect"),y=e.computed(()=>!t.enableV2EmptyStates&&t.config.app==="konnect"),I=e.computed(()=>!!t.config.serviceId),R=e.computed(()=>t.config.app!=="kongManager"||!!t.config.disableSorting),n={name:{label:a("routes.list.table_headers.name"),searchable:!0,sortable:!0,hidable:!1},protocols:{label:a("routes.list.table_headers.protocols"),searchable:!0},...!t.hideTraditionalColumns&&{hosts:{label:a("routes.list.table_headers.hosts"),searchable:!0},methods:{label:a("routes.list.table_headers.methods"),searchable:!0},paths:{label:a("routes.list.table_headers.paths"),searchable:!0}},...t.hasExpressionColumn&&{expression:{label:a("routes.list.table_headers.expression"),tooltip:!0}},tags:{label:a("routes.list.table_headers.tags"),sortable:!1},updated_at:{label:a("routes.list.table_headers.updated_at"),sortable:!0},created_at:{label:a("routes.list.table_headers.created_at"),sortable:!0}},c={columnVisibility:{created_at:!1}},g=n,P=e.computed(()=>{var S,T,C,K;let i=`${t.config.apiBaseUrl}${ee.list[t.config.app][t.config.serviceId?"forGatewayService":"all"]}`;return t.config.app==="konnect"?i=i.replace(/{controlPlaneId}/gi,((S=t.config)==null?void 0:S.controlPlaneId)||"").replace(/{serviceId}/gi,((T=t.config)==null?void 0:T.serviceId)||""):t.config.app==="kongManager"&&(i=i.replace(/\/{workspace}/gi,(C=t.config)!=null&&C.workspace?`/${t.config.workspace}`:"").replace(/{serviceId}/gi,((K=t.config)==null?void 0:K.serviceId)||"")),i}),B=e.ref(""),q=e.computed(()=>{const i=t.config.app==="konnect"||t.config.isExactMatch;if(i)return{isExactMatch:i,placeholder:a(`search.placeholder.${t.config.isExactMatch?"exact":t.config.app}`)};const{name:S,protocols:T,hosts:C,methods:K,paths:G,expression:W}=n,k={name:S,protocols:T,hosts:C,methods:K,paths:G,...t.hasExpressionColumn&&{expression:W}};return{isExactMatch:i,fields:k,schema:t.config.filterSchema}}),{fetcher:p,fetcherState:_,fetcherCacheKey:b}=N.useFetcher({...t.config,cacheIdentifier:t.cacheIdentifier},P.value),O=i=>i.headerKey==="expression"?{style:{maxWidth:"250px",overflowX:"hidden",textOverflow:"ellipsis"}}:{},ie=()=>{B.value=""},de=()=>{b.value++},$=e.ref(null),re=async(i,S)=>{const T=i.id;if(!await S(T)){u("copy:error",{entity:i,field:"id",message:a("errors.copy")});return}u("copy:success",{entity:i,field:"id",message:a("copy.success",{val:T})})},x=async(i,S)=>{const T=JSON.stringify(i);if(!await S(T)){u("copy:error",{entity:i,message:a("errors.copy")});return}u("copy:success",{entity:i,message:a("copy.success_brief")})},Z=async i=>{var T;await((T=t.canRetrieve)==null?void 0:T.call(t,i))&&s.push(t.config.getViewRoute(i.id))},z=i=>({label:a("actions.view"),to:t.config.getViewRoute(i)}),v=i=>({label:a("actions.edit"),to:t.config.getEditRoute(i)}),j=e.ref(void 0),J=e.ref(!1),le=e.ref(!1),pe=e.ref(""),he=N.useDeleteUrlBuilder(t.config,P.value),ge=i=>{j.value=i,J.value=!0},ye=()=>{J.value=!1},Se=async()=>{var i,S,T;if((i=j.value)!=null&&i.id){le.value=!0;try{await E.delete(he(j.value.id)),le.value=!1,J.value=!1,b.value++,u("delete:success",j.value)}catch(C){pe.value=((T=(S=C.response)==null?void 0:S.data)==null?void 0:T.message)||C.message||a("errors.delete"),u("error",C)}finally{le.value=!1}}},be=()=>{s.push(t.config.createRoute)};e.watch(_,i=>{var S,T,C;if(i.status===N.FetcherStatus.Error){$.value={title:a("errors.general")},(C=(T=(S=i.error)==null?void 0:S.response)==null?void 0:T.data)!=null&&C.message&&($.value.message=i.error.response.data.message),u("error",i.error);return}$.value=null});const se=e.ref({ctaPath:t.config.createRoute,ctaText:void 0,message:`${a("routes.list.empty_state.description")}${t.config.additionMessageForEmptyState?` ${t.config.additionMessageForEmptyState}`:""}`,title:a("routes.title")});return e.onBeforeMount(async()=>{await t.canCreate()&&(se.value.title=a("routes.list.empty_state.title"),se.value.ctaText=a("actions.create"))}),(i,S)=>{const T=e.resolveComponent("KButton"),C=e.resolveComponent("KBadge"),K=e.resolveComponent("KTruncate"),G=e.resolveComponent("KDropdownItem"),W=e.resolveComponent("KClipboardProvider");return e.openBlock(),e.createElementBlock("div",St,[e.createVNode(e.unref(N.EntityBaseTable),{"cache-identifier":r.cacheIdentifier,"cell-attributes":O,"default-table-preferences":c,"disable-sorting":R.value,"empty-state-options":se.value,"enable-entity-actions":"","error-message":$.value,fetcher:e.unref(p),"fetcher-cache-key":e.unref(b),"pagination-type":"offset","preferences-storage-key":"kong-ui-entities-routes-list",query:B.value,"table-headers":e.unref(g),title:r.title,"title-tag":r.titleTag,onClearSearchInput:ie,"onClick:row":S[8]||(S[8]=k=>Z(k)),onSort:de,onState:e.unref(m)},e.createSlots({"toolbar-filter":e.withCtx(()=>[e.createVNode(e.unref(N.EntityFilter),{modelValue:B.value,"onUpdate:modelValue":S[0]||(S[0]=k=>B.value=k),config:q.value},null,8,["modelValue","config"])]),"toolbar-button":e.withCtx(()=>[(e.openBlock(),e.createBlock(e.Teleport,{disabled:!r.useActionOutside,to:"#kong-ui-app-page-header-action-button"},[e.createElementVNode("div",bt,[!I.value&&f.value?(e.openBlock(),e.createBlock(T,{key:0,appearance:"secondary",class:"open-learning-hub","data-testid":"routes-learn-more-button",icon:"",onClick:S[1]||(S[1]=k=>i.$emit("click:learn-more"))},{default:e.withCtx(()=>[e.createVNode(e.unref(X.BookIcon),{decorative:""})]),_:1})):e.createCommentVNode("",!0),e.createVNode(e.unref(N.PermissionsWrapper),{"auth-function":()=>r.canCreate()},{default:e.withCtx(()=>[e.createVNode(T,{appearance:"primary","data-testid":"toolbar-add-route",size:r.useActionOutside?"medium":"large",to:r.config.createRoute},{default:e.withCtx(()=>[e.createVNode(e.unref(X.AddIcon)),e.createTextVNode(" "+e.toDisplayString(e.unref(a)("routes.list.toolbar_actions.new_route")),1)]),_:1},8,["size","to"])]),_:1},8,["auth-function"])])],8,["disabled"]))]),name:e.withCtx(({rowValue:k})=>[e.createElementVNode("b",null,e.toDisplayString(k??"-"),1)]),protocols:e.withCtx(({rowValue:k})=>[e.createVNode(K,null,{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(k,A=>(e.openBlock(),e.createBlock(C,{key:A,appearance:"neutral",onClick:S[4]||(S[4]=e.withModifiers(()=>{},["stop"]))},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(A),1)]),_:2},1024))),128))]),_:2},1024)]),hosts:e.withCtx(({rowValue:k})=>[(k==null?void 0:k.length)>0?(e.openBlock(),e.createBlock(K,{key:0},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(k,A=>(e.openBlock(),e.createBlock(C,{key:A,appearance:"neutral",tooltip:A,"truncation-tooltip":"",onClick:S[5]||(S[5]=e.withModifiers(()=>{},["stop"]))},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(A),1)]),_:2},1032,["tooltip"]))),128))]),_:2},1024)):(e.openBlock(),e.createElementBlock("span",Ct,"-"))]),methods:e.withCtx(({rowValue:k})=>[(k==null?void 0:k.length)>0?(e.openBlock(),e.createBlock(K,{key:0},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(k,A=>(e.openBlock(),e.createBlock(C,{key:A,appearance:Object.values(e.unref(Ie.BadgeMethodAppearances)).includes(A.toLowerCase())?A.toLowerCase():"custom",onClick:S[6]||(S[6]=e.withModifiers(()=>{},["stop"]))},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(A),1)]),_:2},1032,["appearance"]))),128))]),_:2},1024)):(e.openBlock(),e.createElementBlock("span",Et,"-"))]),paths:e.withCtx(({rowValue:k})=>[(k==null?void 0:k.length)>0?(e.openBlock(),e.createBlock(K,{key:0},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(k,A=>(e.openBlock(),e.createBlock(C,{key:A,appearance:"neutral",tooltip:A,"truncation-tooltip":"",onClick:S[7]||(S[7]=e.withModifiers(()=>{},["stop"]))},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(A),1)]),_:2},1032,["tooltip"]))),128))]),_:2},1024)):(e.openBlock(),e.createElementBlock("span",Tt,"-"))]),tags:e.withCtx(({rowValue:k})=>[e.createVNode(e.unref(N.TableTags),{tags:k},null,8,["tags"])]),expression:e.withCtx(({rowValue:k})=>[e.createElementVNode("span",kt,e.toDisplayString(k||"-"),1)]),created_at:e.withCtx(({rowValue:k})=>[e.createTextVNode(e.toDisplayString(e.unref(d)(k)),1)]),updated_at:e.withCtx(({row:k,rowValue:A})=>[e.createTextVNode(e.toDisplayString(e.unref(d)(A??k.created_at)),1)]),actions:e.withCtx(({row:k})=>[e.createVNode(W,null,{default:e.withCtx(({copyToClipboard:A})=>[e.createVNode(G,{"data-testid":"action-entity-copy-id",onClick:It=>re(k,A)},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(a)("actions.copy_id")),1)]),_:2},1032,["onClick"])]),_:2},1024),e.createVNode(W,null,{default:e.withCtx(({copyToClipboard:A})=>[e.createVNode(G,{"data-testid":"action-entity-copy-json",onClick:It=>x(k,A)},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(a)("actions.copy_json")),1)]),_:2},1032,["onClick"])]),_:2},1024),e.createVNode(e.unref(N.PermissionsWrapper),{"auth-function":()=>r.canRetrieve(k)},{default:e.withCtx(()=>[e.createVNode(G,{"data-testid":"action-entity-view","has-divider":"",item:z(k.id)},null,8,["item"])]),_:2},1032,["auth-function"]),e.createVNode(e.unref(N.PermissionsWrapper),{"auth-function":()=>r.canEdit(k)},{default:e.withCtx(()=>[e.createVNode(G,{"data-testid":"action-entity-edit",item:v(k.id)},null,8,["item"])]),_:2},1032,["auth-function"]),e.createVNode(e.unref(N.PermissionsWrapper),{"auth-function":()=>r.canDelete(k)},{default:e.withCtx(()=>[e.createVNode(G,{danger:"","data-testid":"action-entity-delete","has-divider":"",onClick:A=>ge(k)},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(a)("actions.delete")),1)]),_:2},1032,["onClick"])]),_:2},1032,["auth-function"])]),_:2},[!e.unref(h)&&y.value?{name:"outside-actions",fn:e.withCtx(()=>[(e.openBlock(),e.createBlock(e.Teleport,{disabled:!r.useActionOutside,to:"#kong-ui-app-page-header-action-button"},[e.createVNode(T,{appearance:"secondary",class:"open-learning-hub","data-testid":"routes-learn-more-button",icon:"",onClick:S[2]||(S[2]=k=>i.$emit("click:learn-more"))},{default:e.withCtx(()=>[e.createVNode(e.unref(X.BookIcon),{decorative:""})]),_:1})],8,["disabled"]))]),key:"0"}:void 0,!B.value&&r.enableV2EmptyStates&&r.config.app==="konnect"?{name:"empty-state",fn:e.withCtx(()=>{var k;return[e.createVNode(e.unref(N.EntityEmptyState),{"action-button-text":e.unref(a)("routes.list.toolbar_actions.new_route"),appearance:"secondary","can-create":()=>r.canCreate(),"data-testid":r.config.serviceId?"nested-routes-entity-empty-state":"routes-entity-empty-state",description:e.unref(a)("routes.list.empty_state_v2.description"),"learn-more":r.config.app==="konnect",title:e.unref(a)("routes.list.empty_state_v2.title"),"onClick:create":be,"onClick:learnMore":S[3]||(S[3]=A=>i.$emit("click:learn-more"))},e.createSlots({image:e.withCtx(()=>[e.createElementVNode("div",_t,[e.createVNode(e.unref(X.ForwardIcon),{color:e.unref(Oe),size:e.unref($e)},null,8,["color","size"])])]),_:2},[(k=r.config)!=null&&k.isControlPlaneGroup?{name:"message",fn:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(a)("routes.list.empty_state_v2.group")),1)]),key:"0"}:void 0]),1032,["action-button-text","can-create","data-testid","description","learn-more","title"])]}),key:"1"}:void 0]),1032,["cache-identifier","disable-sorting","empty-state-options","error-message","fetcher","fetcher-cache-key","query","table-headers","title","title-tag","onState"]),e.createVNode(e.unref(N.EntityDeleteModal),{"action-pending":le.value,description:e.unref(a)("delete.description"),"entity-name":j.value&&(j.value.name||j.value.id),"entity-type":e.unref(N.EntityTypes).Route,error:pe.value,title:e.unref(a)("delete.title"),visible:J.value,onCancel:ye,onProceed:Se},null,8,["action-pending","description","entity-name","entity-type","error","title","visible"])])}}}),[["__scopeId","data-v-e949a937"]]),Vt=Object.freeze(Object.defineProperty({__proto__:null,default:e.defineComponent({__name:"RouteFormExpressionsEditor",props:e.mergeModels({protocol:{},showExpressionsModalEntry:{type:Boolean}},{modelValue:{required:!0},modelModifiers:{}}),emits:e.mergeModels(["notify"],["update:modelValue"]),setup(r,{emit:V}){const{i18n:{t:u}}=H.useI18n(),t=r,a=e.useModel(r,"modelValue"),d=V,s=e.ref(!1),E=e.computed(()=>ne.PROTOCOL_TO_SCHEMA[t.protocol]),m=e.computed(()=>ne.HTTP_BASED_PROTOCOLS.includes(t.protocol??"")),h=e.computed(()=>{if(!(!t.showExpressionsModalEntry||m.value))return u("form.expression_playground.supported_protocols_hint",{protocols:ne.HTTP_BASED_PROTOCOLS.join(", ")})}),f=R=>{a.value=R,s.value=!1},y=R=>{d("notify",R)},I=()=>{m.value&&(s.value=!0)};return(R,n)=>{const c=e.resolveComponent("KTooltip");return e.openBlock(),e.createElementBlock(e.Fragment,null,[E.value!==void 0?(e.openBlock(),e.createBlock(e.unref(ne.ExpressionsEditor),{key:0,modelValue:a.value,"onUpdate:modelValue":n[0]||(n[0]=g=>a.value=g),schema:E.value},null,8,["modelValue","schema"])):e.createCommentVNode("",!0),e.createVNode(c,{placement:"bottom-start",text:h.value},{default:e.withCtx(()=>[R.showExpressionsModalEntry?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass({disabled:!m.value,"route-form-open-in-playground":!0}),"data-testid":"open-router-playground",onClick:I},[e.renderSlot(R.$slots,"default")],2)):e.createCommentVNode("",!0)]),_:3},8,["text"]),R.showExpressionsModalEntry&&m.value?(e.openBlock(),e.createBlock(e.unref(ne.RouterPlaygroundModal),{key:1,"initial-expression":a.value,"is-visible":s.value,onCancel:n[1]||(n[1]=g=>s.value=!1),onCommit:f,onNotify:y},null,8,["initial-expression","is-visible"])):e.createCommentVNode("",!0)],64)}}})},Symbol.toStringTag,{value:"Module"}));w.ExpressionsEditorState=Q,w.HTTP_REDIRECT_STATUS_CODES=me,w.INITIAL_ROUTE_RULES_FIELDS=ke,w.INITIAL_SHARED_ROUTE_RULES_FIELDS=ae,w.INITIAL_TRADITIONAL_ROUTE_RULES_VALUES=M,w.Methods=Y,w.PATH_HANDLING_OPTIONS=Te,w.PROTOCOLS_TO_ROUTE_RULES=ce,w.RouteConfigCard=Ae,w.RouteFlavor=D,w.RouteForm=yt,w.RouteFormRulesComposer=Ve,w.RouteList=Nt,w.RoutingRulesEntities=o,w.stateHasExpressionsFlavor=ue,w.stateHasTraditionalFlavor=fe,Object.defineProperty(w,Symbol.toStringTag,{value:"Module"})});
@@ -1,4 +1,4 @@
1
- import { defineComponent as z, ref as B, computed as U, resolveComponent as w, openBlock as v, createElementBlock as O, createVNode as d, unref as e, withCtx as n, createElementVNode as N, toDisplayString as I, createBlock as H, inject as we, createCommentVNode as F, mergeModels as Y, useModel as X, createTextVNode as x, TransitionGroup as me, Fragment as G, renderList as se, nextTick as lt, defineAsyncComponent as rt, onMounted as Qe, resolveDynamicComponent as Fe, renderSlot as xe, h as Ke, reactive as Oe, watch as be, onBeforeMount as Ye, provide as at, createSlots as qe, Teleport as Le, withModifiers as Ce } from "vue";
1
+ import { defineComponent as z, ref as B, computed as P, resolveComponent as w, openBlock as v, createElementBlock as O, createVNode as d, unref as e, withCtx as n, createElementVNode as N, toDisplayString as I, createBlock as H, inject as we, createCommentVNode as F, mergeModels as Y, useModel as X, createTextVNode as x, TransitionGroup as me, Fragment as G, renderList as se, nextTick as lt, defineAsyncComponent as rt, onMounted as Qe, resolveDynamicComponent as Fe, renderSlot as xe, h as Ke, reactive as Oe, watch as be, onBeforeMount as Ye, provide as at, createSlots as qe, Teleport as Le, withModifiers as Ce } from "vue";
2
2
  import { useAxios as Me, ConfigurationSchemaSection as ue, ConfigurationSchemaType as fe, EntityBaseConfigCard as it, SupportedEntityType as Ze, InternalLinkItem as nt, useErrors as dt, useGatewayFeatureSupported as ut, EntityBaseFormType as Be, useDebouncedFilter as ct, EntityBaseForm as pt, EntityFormSection as Ge, useTableState as ft, useFetcher as mt, useDeleteUrlBuilder as ht, FetcherStatus as vt, EntityBaseTable as gt, EntityFilter as yt, PermissionsWrapper as ke, TableTags as bt, EntityEmptyState as St, EntityDeleteModal as _t, EntityTypes as It } from "@kong-ui-public/entities-shared";
3
3
  import { createI18n as Tt, i18nTComponent as Et } from "@kong-ui-public/i18n";
4
4
  import We from "lodash.isequal";
@@ -114,7 +114,7 @@ const te = "/v2/control-planes/{controlPlaneId}/core-entities", oe = "/{workspac
114
114
  }, Dt = {
115
115
  success: "Copied {val} to clipboard",
116
116
  success_brief: "Successfully copied to clipboard"
117
- }, Ut = {
117
+ }, Pt = {
118
118
  config_flavor: {
119
119
  label: "Define by"
120
120
  },
@@ -348,7 +348,7 @@ const te = "/v2/control-planes/{controlPlaneId}/core-entities", oe = "/{workspac
348
348
  test_link: "Test with Router Playground",
349
349
  supported_protocols_hint: "Currently only supports the following protocols: {protocols}"
350
350
  }
351
- }, Pt = {
351
+ }, Ut = {
352
352
  actions: Nt,
353
353
  search: wt,
354
354
  routes: Vt,
@@ -358,10 +358,10 @@ const te = "/v2/control-planes/{controlPlaneId}/core-entities", oe = "/{workspac
358
358
  },
359
359
  errors: Ht,
360
360
  copy: Dt,
361
- form: Ut
361
+ form: Pt
362
362
  };
363
363
  function $t() {
364
- const s = Tt("en-us", Pt);
364
+ const s = Tt("en-us", Ut);
365
365
  return {
366
366
  i18n: s,
367
367
  i18nT: Et(s)
@@ -404,12 +404,12 @@ const Q = {
404
404
  emits: ["loading", "fetch:error", "fetch:success", "navigation-click"],
405
405
  setup(s, { emit: V }) {
406
406
  var a;
407
- const h = V, t = s, { axiosInstance: i } = Me((a = t.config) == null ? void 0 : a.axiosRequestConfig), { i18n: { t: c }, i18nT: r } = Q.useI18n(), A = B(""), g = B(""), y = B(!1), m = U(
407
+ const h = V, t = s, { axiosInstance: i } = Me((a = t.config) == null ? void 0 : a.axiosRequestConfig), { i18n: { t: c }, i18nT: r } = Q.useI18n(), A = B(""), g = B(""), y = B(!1), m = P(
408
408
  () => {
409
409
  var p, S;
410
410
  return (S = Se.item[(p = t.config) == null ? void 0 : p.app]) == null ? void 0 : S[t.serviceId ? "forGatewayService" : "all"].replace(/{serviceId}/gi, t.serviceId);
411
411
  }
412
- ), b = U(() => {
412
+ ), b = P(() => {
413
413
  var p;
414
414
  return (p = Se.item[t.config.app]) == null ? void 0 : p.getService;
415
415
  }), D = async (p) => {
@@ -725,7 +725,7 @@ const Xe = (s) => s.routeFlavors.traditional === !0, ze = (s) => s.routeFlavors.
725
725
  },
726
726
  emits: ["add"],
727
727
  setup(s, { emit: V }) {
728
- const h = s, t = V, i = we("configType", "basic"), { i18n: { t: c } } = Q.useI18n(), r = U(() => c(`form.fields.${h.routingRulesEntity}.add`));
728
+ const h = s, t = V, i = we("configType", "basic"), { i18n: { t: c } } = Q.useI18n(), r = P(() => c(`form.fields.${h.routingRulesEntity}.add`));
729
729
  return (A, g) => {
730
730
  const y = w("KButton");
731
731
  return e(i) !== "basic" ? (v(), H(y, {
@@ -954,7 +954,7 @@ const Xe = (s) => s.routeFlavors.traditional === !0, ze = (s) => s.routeFlavors.
954
954
  },
955
955
  emits: ["update:methods", "update:customMethods"],
956
956
  setup(s) {
957
- const { i18n: { t: V } } = Q.useI18n(), h = X(s, "methods"), t = X(s, "customMethods"), i = U(() => h.value.filter((y) => Object.keys(_e).includes(y)).concat(t.value.map((y) => y.value))), c = U(() => Object.keys(_e).map((y) => ({
957
+ const { i18n: { t: V } } = Q.useI18n(), h = X(s, "methods"), t = X(s, "customMethods"), i = P(() => h.value.filter((y) => Object.keys(_e).includes(y)).concat(t.value.map((y) => y.value))), c = P(() => Object.keys(_e).map((y) => ({
958
958
  label: y,
959
959
  value: y
960
960
  })).concat(t.value.map((y) => ({
@@ -1204,7 +1204,7 @@ const Xe = (s) => s.routeFlavors.traditional === !0, ze = (s) => s.routeFlavors.
1204
1204
  await lt(() => {
1205
1205
  delete r.value[a];
1206
1206
  });
1207
- }, m = (a) => a.some((p) => c.protocols.includes(p)), b = U(() => new Set($e[c.protocols])), D = U(() => {
1207
+ }, m = (a) => a.some((p) => c.protocols.includes(p)), b = P(() => new Set($e[c.protocols])), D = P(() => {
1208
1208
  if (m(["tls_passthrough"]))
1209
1209
  return [L(o.SNIS)];
1210
1210
  const a = (c.configType === "basic" ? [o.PATHS, o.METHODS, o.HOSTS] : $e[c.protocols]).map((p) => L(p));
@@ -1405,7 +1405,7 @@ const Xe = (s) => s.routeFlavors.traditional === !0, ze = (s) => s.routeFlavors.
1405
1405
  }, i = {
1406
1406
  render: () => Ke("div", h("form.expressions_editor.error"))
1407
1407
  }, c = rt({
1408
- loader: async () => import("./RouteFormExpressionsEditor-B4EPIvu1.js"),
1408
+ loader: async () => import("./RouteFormExpressionsEditor-dQ2uD6wI.js"),
1409
1409
  loadingComponent: t,
1410
1410
  errorComponent: i
1411
1411
  }), r = s, A = V, g = B(ye.LOADING), y = X(s, "modelValue"), m = (b) => {
@@ -1457,7 +1457,7 @@ const Xe = (s) => s.routeFlavors.traditional === !0, ze = (s) => s.routeFlavors.
1457
1457
  }),
1458
1458
  emits: /* @__PURE__ */ Y(["notify"], ["update:fields"]),
1459
1459
  setup(s, { emit: V }) {
1460
- const { i18n: { t: h } } = Q.useI18n(), t = s, i = X(s, "fields"), c = V, r = B(!0), A = U(() => t.protocols.split(",") || []), g = (y) => y.some((m) => t.protocols.includes(m));
1460
+ const { i18n: { t: h } } = Q.useI18n(), t = s, i = X(s, "fields"), c = V, r = B(!0), A = P(() => t.protocols.split(",") || []), g = (y) => y.some((m) => t.protocols.includes(m));
1461
1461
  return (y, m) => {
1462
1462
  const b = w("KCard"), D = w("KSelect"), L = w("KInput"), a = w("KCheckbox"), p = w("KCollapse");
1463
1463
  return v(), O(G, null, [
@@ -1570,7 +1570,8 @@ const Xe = (s) => s.routeFlavors.traditional === !0, ze = (s) => s.routeFlavors.
1570
1570
  recordFlavor: {},
1571
1571
  showExpressionsModalEntry: { type: Boolean },
1572
1572
  tooltips: {},
1573
- isWsSupported: { type: Boolean }
1573
+ isWsSupported: { type: Boolean },
1574
+ hideProtocols: { type: Boolean }
1574
1575
  }, {
1575
1576
  configType: { required: !0 },
1576
1577
  configTypeModifiers: {},
@@ -1601,7 +1602,7 @@ const Xe = (s) => s.routeFlavors.traditional === !0, ze = (s) => s.routeFlavors.
1601
1602
  value: q.EXPRESSIONS,
1602
1603
  label: g("form.flavors.expressions")
1603
1604
  }
1604
- ], m = U(() => [
1605
+ ], m = P(() => [
1605
1606
  { label: g("form.protocols.grpc"), value: "grpc" },
1606
1607
  { label: g("form.protocols.grpcs"), value: "grpcs" },
1607
1608
  { label: g("form.protocols.grpc,grpcs"), value: "grpc,grpcs" },
@@ -1621,7 +1622,7 @@ const Xe = (s) => s.routeFlavors.traditional === !0, ze = (s) => s.routeFlavors.
1621
1622
  { label: g("form.protocols.wss"), value: "wss" },
1622
1623
  { label: g("form.protocols.ws,wss"), value: "ws,wss" }
1623
1624
  ] : []
1624
- ]), b = U(() => h.recordFlavor ? h.recordFlavor : i.value), D = (f, E) => {
1625
+ ]), b = P(() => h.recordFlavor ? h.recordFlavor : i.value), D = (f, E) => {
1625
1626
  if (!new Set($e[h.protocols]).has(f))
1626
1627
  return [];
1627
1628
  if ([o.PATHS, o.HOSTS, o.METHODS, o.SNIS].includes(f))
@@ -1638,13 +1639,13 @@ const Xe = (s) => s.routeFlavors.traditional === !0, ze = (s) => s.routeFlavors.
1638
1639
  return null;
1639
1640
  const f = c.value, E = D(o.HEADERS, f.headers || []) || W[o.HEADERS];
1640
1641
  return E.length === 0 ? null : E.reduce((T, K) => (T[K.header] = K.values.split(","), T), {});
1641
- }, p = U(() => (c.value.methods || []).filter((T) => Object.keys(_e).includes(T)).concat(r.value.map((T) => T.label.toUpperCase()))), S = (f) => f != null && f.length ? f : null, j = U(() => ({
1642
+ }, p = P(() => (c.value.methods || []).filter((T) => Object.keys(_e).includes(T)).concat(r.value.map((T) => T.label.toUpperCase()))), S = (f) => f != null && f.length ? f : null, j = P(() => ({
1642
1643
  https_redirect_status_code: c.value.https_redirect_status_code,
1643
1644
  strip_path: L(["http", "https", "ws", "wss"]) ? c.value.strip_path : !1,
1644
1645
  preserve_host: c.value.preserve_host,
1645
1646
  request_buffering: c.value.request_buffering,
1646
1647
  response_buffering: c.value.response_buffering
1647
- })), $ = U(() => {
1648
+ })), $ = P(() => {
1648
1649
  switch (b.value) {
1649
1650
  case q.TRADITIONAL: {
1650
1651
  const f = c.value, E = S(D(o.PATHS, f.paths || [])), T = S(D(o.HOSTS, f.hosts || [])), K = {
@@ -1697,7 +1698,7 @@ const Xe = (s) => s.routeFlavors.traditional === !0, ze = (s) => s.routeFlavors.
1697
1698
  N("div", Co, [
1698
1699
  d(T, {
1699
1700
  modelValue: t.value,
1700
- "onUpdate:modelValue": E[0] || (E[0] = (P) => t.value = P),
1701
+ "onUpdate:modelValue": E[0] || (E[0] = (U) => t.value = U),
1701
1702
  card: "",
1702
1703
  "card-orientation": "horizontal",
1703
1704
  "data-testid": "route-form-config-type-basic",
@@ -1708,7 +1709,7 @@ const Xe = (s) => s.routeFlavors.traditional === !0, ze = (s) => s.routeFlavors.
1708
1709
  }, null, 8, ["modelValue", "description", "disabled", "label"]),
1709
1710
  d(T, {
1710
1711
  modelValue: t.value,
1711
- "onUpdate:modelValue": E[1] || (E[1] = (P) => t.value = P),
1712
+ "onUpdate:modelValue": E[1] || (E[1] = (U) => t.value = U),
1712
1713
  card: "",
1713
1714
  "card-orientation": "horizontal",
1714
1715
  "data-testid": "route-form-config-type-advanced",
@@ -1720,9 +1721,9 @@ const Xe = (s) => s.routeFlavors.traditional === !0, ze = (s) => s.routeFlavors.
1720
1721
  t.value === "basic" ? (v(), H(Je, {
1721
1722
  key: 0,
1722
1723
  "custom-methods": r.value,
1723
- "onUpdate:customMethods": E[2] || (E[2] = (P) => r.value = P),
1724
+ "onUpdate:customMethods": E[2] || (E[2] = (U) => r.value = U),
1724
1725
  fields: c.value,
1725
- "onUpdate:fields": E[3] || (E[3] = (P) => c.value = P),
1726
+ "onUpdate:fields": E[3] || (E[3] = (U) => c.value = U),
1726
1727
  "config-type": "basic",
1727
1728
  "hide-advanced": "",
1728
1729
  protocols: f.protocols,
@@ -1737,20 +1738,20 @@ const Xe = (s) => s.routeFlavors.traditional === !0, ze = (s) => s.routeFlavors.
1737
1738
  }),
1738
1739
  d(Re, {
1739
1740
  modelValue: i.value,
1740
- "onUpdate:modelValue": E[4] || (E[4] = (P) => i.value = P),
1741
+ "onUpdate:modelValue": E[4] || (E[4] = (U) => i.value = U),
1741
1742
  class: "config-flavor-control",
1742
1743
  "data-testid": "route-form-config-flavor",
1743
1744
  options: y
1744
1745
  }, {
1745
- "option-label": n(({ option: P }) => {
1746
+ "option-label": n(({ option: U }) => {
1746
1747
  var ce, ne;
1747
1748
  return [
1748
- N("span", null, I(P.label), 1),
1749
- (ce = f.tooltips) != null && ce[P.value] ? (v(), H(Ee, {
1749
+ N("span", null, I(U.label), 1),
1750
+ (ce = f.tooltips) != null && ce[U.value] ? (v(), H(Ee, {
1750
1751
  key: 0,
1751
1752
  class: "route-form-config-tabs-tooltip",
1752
- text: (ne = f.tooltips) == null ? void 0 : ne[P.value],
1753
- "tooltip-id": `route-form-config-tabs-tooltip-${P.value}`
1753
+ text: (ne = f.tooltips) == null ? void 0 : ne[U.value],
1754
+ "tooltip-id": `route-form-config-tabs-tooltip-${U.value}`
1754
1755
  }, {
1755
1756
  default: n(() => [
1756
1757
  d(e(Ct))
@@ -1778,7 +1779,8 @@ const Xe = (s) => s.routeFlavors.traditional === !0, ze = (s) => s.routeFlavors.
1778
1779
  _: 1
1779
1780
  }, 8, ["appearance"])) : F("", !0),
1780
1781
  !f.recordFlavor || !(f.routeFlavors.traditional && f.routeFlavors.expressions && f.recordFlavor !== i.value) ? (v(), O(G, { key: 2 }, [
1781
- d(he, {
1782
+ f.hideProtocols ? F("", !0) : (v(), H(he, {
1783
+ key: 0,
1782
1784
  "data-testid": "route-form-protocols",
1783
1785
  items: m.value,
1784
1786
  label: e(g)("form.fields.protocols.label"),
@@ -1791,31 +1793,31 @@ const Xe = (s) => s.routeFlavors.traditional === !0, ze = (s) => s.routeFlavors.
1791
1793
  required: "",
1792
1794
  width: "100%",
1793
1795
  "onUpdate:modelValue": le
1794
- }, null, 8, ["items", "label", "label-attributes", "model-value", "readonly"]),
1796
+ }, null, 8, ["items", "label", "label-attributes", "model-value", "readonly"])),
1795
1797
  i.value === e(q).TRADITIONAL ? (v(), H(Je, {
1796
- key: 0,
1798
+ key: 1,
1797
1799
  "custom-methods": r.value,
1798
- "onUpdate:customMethods": E[5] || (E[5] = (P) => r.value = P),
1800
+ "onUpdate:customMethods": E[5] || (E[5] = (U) => r.value = U),
1799
1801
  fields: c.value,
1800
- "onUpdate:fields": E[6] || (E[6] = (P) => c.value = P),
1802
+ "onUpdate:fields": E[6] || (E[6] = (U) => c.value = U),
1801
1803
  "config-type": "advanced",
1802
1804
  protocols: f.protocols,
1803
1805
  readonly: f.readonly
1804
1806
  }, null, 8, ["custom-methods", "fields", "protocols", "readonly"])) : (v(), H(Ao, {
1805
- key: 1,
1807
+ key: 2,
1806
1808
  fields: c.value,
1807
- "onUpdate:fields": E[7] || (E[7] = (P) => c.value = P),
1809
+ "onUpdate:fields": E[7] || (E[7] = (U) => c.value = U),
1808
1810
  protocols: f.protocols,
1809
1811
  readonly: f.readonly,
1810
1812
  "show-expressions-modal-entry": f.showExpressionsModalEntry,
1811
- onNotify: E[8] || (E[8] = (P) => A("notify", P))
1813
+ onNotify: E[8] || (E[8] = (U) => A("notify", U))
1812
1814
  }, null, 8, ["fields", "protocols", "readonly", "show-expressions-modal-entry"]))
1813
1815
  ], 64)) : F("", !0)
1814
1816
  ], 64))
1815
1817
  ], 64);
1816
1818
  };
1817
1819
  }
1818
- }), No = /* @__PURE__ */ Z(Oo, [["__scopeId", "data-v-e1425b7c"]]), wo = (s) => {
1820
+ }), No = /* @__PURE__ */ Z(Oo, [["__scopeId", "data-v-893fc5e4"]]), wo = (s) => {
1819
1821
  var h, t, i, c, r, A;
1820
1822
  return !(typeof s.expression == "string" && s.expression.length > 0 || (s.protocols || []).sort().join(",") !== "http,https" || ((h = s[o.PATHS]) == null ? void 0 : h.length) > 1 || ((t = s[o.HOSTS]) == null ? void 0 : t.length) > 1 || ((i = s[o.HEADERS]) == null ? void 0 : i.length) > 0 || ((c = s[o.SNIS]) == null ? void 0 : c.length) > 0 || ((r = s[o.SOURCES]) == null ? void 0 : r.length) > 0 || ((A = s[o.DESTINATIONS]) == null ? void 0 : A.length) > 0 || [
1821
1823
  "path_handling",
@@ -1825,7 +1827,7 @@ const Xe = (s) => s.routeFlavors.traditional === !0, ze = (s) => s.routeFlavors.
1825
1827
  "request_buffering",
1826
1828
  "response_buffering"
1827
1829
  ].some((g) => s[g] !== Kt[g]));
1828
- }, Vo = { class: "kong-ui-entities-route-form" }, Ho = { key: 1 }, Do = { "data-testid": "no-search-results" }, Uo = { class: "route-form-service-dropdown-item" }, Po = { class: "select-item-label" }, $o = { class: "select-item-description" }, xo = /* @__PURE__ */ z({
1830
+ }, Vo = { class: "kong-ui-entities-route-form" }, Ho = { key: 1 }, Do = { "data-testid": "no-search-results" }, Po = { class: "route-form-service-dropdown-item" }, Uo = { class: "select-item-label" }, $o = { class: "select-item-description" }, xo = /* @__PURE__ */ z({
1829
1831
  __name: "RouteForm",
1830
1832
  props: {
1831
1833
  /** The base konnect or kongManger config. Pass additional config props in the shared entity component as needed. */
@@ -1891,7 +1893,7 @@ const Xe = (s) => s.routeFlavors.traditional === !0, ze = (s) => s.routeFlavors.
1891
1893
  var ge;
1892
1894
  const t = s, i = h, c = B("basic"), r = B(
1893
1895
  !t.routeFlavors.traditional && t.routeFlavors.expressions ? q.EXPRESSIONS : q.TRADITIONAL
1894
- ), A = B(void 0), g = U(() => {
1896
+ ), A = B(void 0), g = P(() => {
1895
1897
  if (A.value)
1896
1898
  return A.value;
1897
1899
  if (r.value)
@@ -1942,7 +1944,7 @@ const Xe = (s) => s.routeFlavors.traditional === !0, ze = (s) => s.routeFlavors.
1942
1944
  supportedRange: {
1943
1945
  enterprise: ["3.0"]
1944
1946
  }
1945
- }), f = U(() => t.routeId ? Be.Edit : Be.Create), E = U(() => {
1947
+ }), f = P(() => t.routeId ? Be.Edit : Be.Create), E = P(() => {
1946
1948
  var l, u, _;
1947
1949
  return (_ = (u = Se.form[(l = t.config) == null ? void 0 : l.app]) == null ? void 0 : u.fetch) == null ? void 0 : _[t.serviceId ? "forGatewayService" : "all"].replace(/{serviceId}/gi, t.serviceId || "");
1948
1950
  }), T = () => {
@@ -1964,7 +1966,7 @@ const Xe = (s) => s.routeFlavors.traditional === !0, ze = (s) => s.routeFlavors.
1964
1966
  (_ = l == null ? void 0 : l.service) != null && _.id && (a.fields.service_id = l.service.id), a.fields.name = (l == null ? void 0 : l.name) || "";
1965
1967
  const u = (l == null ? void 0 : l.tags) || [];
1966
1968
  a.fields.tags = (u == null ? void 0 : u.join(", ")) || "", a.fields.preserve_host = typeof (l == null ? void 0 : l.preserve_host) > "u" ? !1 : l == null ? void 0 : l.preserve_host, a.fields.https_redirect_status_code = (l == null ? void 0 : l.https_redirect_status_code) || 426, (C = l == null ? void 0 : l.protocols) != null && C.length && (l.protocols.length > 1 ? a.fields.protocols = l.protocols.join() : a.fields.protocols = l.protocols[0]), a.fields.request_buffering = typeof (l == null ? void 0 : l.request_buffering) > "u" ? !0 : l == null ? void 0 : l.request_buffering, a.fields.response_buffering = typeof (l == null ? void 0 : l.response_buffering) > "u" ? !0 : l == null ? void 0 : l.response_buffering, a.fields.strip_path = typeof (l == null ? void 0 : l.strip_path) > "u" ? !0 : l == null ? void 0 : l.strip_path, Xe(a) && (a.fields.regex_priority = (l == null ? void 0 : l.regex_priority) || 0, a.fields.path_handling = (l == null ? void 0 : l.path_handling) || "v0", l != null && l.paths && (a.fields.paths = l.paths), l != null && l.snis && (a.fields.snis = l.snis), l != null && l.hosts && (a.fields.hosts = l.hosts), l != null && l.methods && (a.fields.methods = l.methods.filter((R) => Object.keys(_e).includes(R)), S.value = l.methods.filter((R) => !Object.keys(_e).includes(R)).map((R) => ({ label: R, value: R })), j.value = [...S.value]), l != null && l.headers && (a.fields.headers = Re(l.headers)), l != null && l.sources && (a.fields.sources = l.sources), l != null && l.destinations && (a.fields.destinations = l.destinations)), ze(a) && (a.fields.expression = (l == null ? void 0 : l.expression) || "", a.fields.priority = (l == null ? void 0 : l.priority) || 0), Object.assign($, JSON.parse(JSON.stringify(a.fields)));
1967
- }, P = U(() => {
1969
+ }, U = P(() => {
1968
1970
  switch (g.value) {
1969
1971
  case q.TRADITIONAL: {
1970
1972
  if (Xe(a)) {
@@ -1980,7 +1982,7 @@ const Xe = (s) => s.routeFlavors.traditional === !0, ze = (s) => s.routeFlavors.
1980
1982
  }
1981
1983
  }
1982
1984
  return !0;
1983
- }), ce = U(() => !We(a.fields, $) || !We(S.value, j.value)), ne = U(() => {
1985
+ }), ce = P(() => !We(a.fields, $) || !We(S.value, j.value)), ne = P(() => {
1984
1986
  var u, _;
1985
1987
  let l = `${t.config.apiBaseUrl}${Se.form[t.config.app][f.value][t.serviceId ? "forGatewayService" : "all"]}`;
1986
1988
  return t.config.app === "konnect" ? l = l.replace(/{controlPlaneId}/gi, ((u = t.config) == null ? void 0 : u.controlPlaneId) || "").replace(/{serviceId}/gi, t.serviceId || "") : t.config.app === "kongManager" && (l = l.replace(/\/{workspace}/gi, (_ = t.config) != null && _.workspace ? `/${t.config.workspace}` : "").replace(/{serviceId}/gi, t.serviceId || "")), l = l.replace(/{id}/gi, t.routeId), l;
@@ -1988,7 +1990,7 @@ const Xe = (s) => s.routeFlavors.traditional === !0, ze = (s) => s.routeFlavors.
1988
1990
  be(() => a.fields, () => {
1989
1991
  i("model-updated", pe.value);
1990
1992
  }, { deep: !0 });
1991
- const pe = U(() => {
1993
+ const pe = P(() => {
1992
1994
  var l, u, _;
1993
1995
  return {
1994
1996
  ...!t.hideNameField && { name: a.fields.name || null },
@@ -2032,7 +2034,7 @@ const Xe = (s) => s.routeFlavors.traditional === !0, ze = (s) => s.routeFlavors.
2032
2034
  } = ct(t.config, Se.form[t.config.app].services, void 0, {
2033
2035
  fetchedItemsKey: "data",
2034
2036
  searchKeys: ["id", "name"]
2035
- }), Ue = U(() => Ve.value ? y("errors.services.fetch") : ""), Pe = U(() => {
2037
+ }), Pe = P(() => Ve.value ? y("errors.services.fetch") : ""), Ue = P(() => {
2036
2038
  var l;
2037
2039
  return (l = De.value) == null ? void 0 : l.map((u) => ({ label: u.id, name: u.name, value: u.id }));
2038
2040
  });
@@ -2044,11 +2046,11 @@ const Xe = (s) => s.routeFlavors.traditional === !0, ze = (s) => s.routeFlavors.
2044
2046
  const _ = w("KInput"), C = w("KSelect");
2045
2047
  return v(), O("div", Vo, [
2046
2048
  d(e(pt), {
2047
- "can-submit": P.value && ce.value,
2049
+ "can-submit": U.value && ce.value,
2048
2050
  config: s.config,
2049
2051
  "edit-id": s.routeId,
2050
2052
  "entity-type": e(Ze).Route,
2051
- "error-message": a.errorMessage || Ue.value,
2053
+ "error-message": a.errorMessage || Pe.value,
2052
2054
  "fetch-url": E.value,
2053
2055
  "form-fields": pe.value,
2054
2056
  "is-readonly": a.isReadonly,
@@ -2060,7 +2062,7 @@ const Xe = (s) => s.routeFlavors.traditional === !0, ze = (s) => s.routeFlavors.
2060
2062
  }, {
2061
2063
  "form-actions": n(() => [
2062
2064
  xe(l.$slots, "form-actions", {
2063
- canSubmit: P.value && ce.value,
2065
+ canSubmit: U.value && ce.value,
2064
2066
  cancel: T,
2065
2067
  submit: de
2066
2068
  }, void 0, !0)
@@ -2092,7 +2094,7 @@ const Xe = (s) => s.routeFlavors.traditional === !0, ze = (s) => s.routeFlavors.
2092
2094
  "data-testid": "route-form-service-id",
2093
2095
  "enable-filtering": "",
2094
2096
  "filter-function": () => !0,
2095
- items: Pe.value,
2097
+ items: Ue.value,
2096
2098
  label: e(y)("form.fields.service_id.label"),
2097
2099
  loading: e(Ae),
2098
2100
  placeholder: e(y)("form.fields.service_id.placeholder"),
@@ -2111,8 +2113,8 @@ const Xe = (s) => s.routeFlavors.traditional === !0, ze = (s) => s.routeFlavors.
2111
2113
  x(I(L(R)), 1)
2112
2114
  ]),
2113
2115
  "item-template": n(({ item: R }) => [
2114
- N("div", Uo, [
2115
- N("span", Po, I(R.name), 1),
2116
+ N("div", Po, [
2117
+ N("span", Uo, I(R.name), 1),
2116
2118
  N("span", $o, I(R.value), 1)
2117
2119
  ])
2118
2120
  ]),
@@ -2240,7 +2242,7 @@ const Xe = (s) => s.routeFlavors.traditional === !0, ze = (s) => s.routeFlavors.
2240
2242
  emits: ["error", "click:learn-more", "copy:success", "copy:error", "delete:success"],
2241
2243
  setup(s, { emit: V }) {
2242
2244
  var l;
2243
- const h = V, t = s, { i18n: { t: i, formatUnixTimeStamp: c } } = Q.useI18n(), r = et(), { axiosInstance: A } = Me((l = t.config) == null ? void 0 : l.axiosRequestConfig), { handleStateChange: g, hasRecords: y } = ft(() => $.value), m = U(() => y.value && t.config.app === "konnect"), b = U(() => !t.enableV2EmptyStates && t.config.app === "konnect"), D = U(() => !!t.config.serviceId), L = U(() => t.config.app !== "kongManager" || !!t.config.disableSorting), a = {
2245
+ const h = V, t = s, { i18n: { t: i, formatUnixTimeStamp: c } } = Q.useI18n(), r = et(), { axiosInstance: A } = Me((l = t.config) == null ? void 0 : l.axiosRequestConfig), { handleStateChange: g, hasRecords: y } = ft(() => $.value), m = P(() => y.value && t.config.app === "konnect"), b = P(() => !t.enableV2EmptyStates && t.config.app === "konnect"), D = P(() => !!t.config.serviceId), L = P(() => t.config.app !== "kongManager" || !!t.config.disableSorting), a = {
2244
2246
  // the Name column is non-hidable
2245
2247
  name: { label: i("routes.list.table_headers.name"), searchable: !0, sortable: !0, hidable: !1 },
2246
2248
  protocols: { label: i("routes.list.table_headers.protocols"), searchable: !0 },
@@ -2259,11 +2261,11 @@ const Xe = (s) => s.routeFlavors.traditional === !0, ze = (s) => s.routeFlavors.
2259
2261
  columnVisibility: {
2260
2262
  created_at: !1
2261
2263
  }
2262
- }, S = a, j = U(() => {
2264
+ }, S = a, j = P(() => {
2263
2265
  var _, C, R, ee;
2264
2266
  let u = `${t.config.apiBaseUrl}${Se.list[t.config.app][t.config.serviceId ? "forGatewayService" : "all"]}`;
2265
2267
  return t.config.app === "konnect" ? u = u.replace(/{controlPlaneId}/gi, ((_ = t.config) == null ? void 0 : _.controlPlaneId) || "").replace(/{serviceId}/gi, ((C = t.config) == null ? void 0 : C.serviceId) || "") : t.config.app === "kongManager" && (u = u.replace(/\/{workspace}/gi, (R = t.config) != null && R.workspace ? `/${t.config.workspace}` : "").replace(/{serviceId}/gi, ((ee = t.config) == null ? void 0 : ee.serviceId) || "")), u;
2266
- }), $ = B(""), le = U(() => {
2268
+ }), $ = B(""), le = P(() => {
2267
2269
  const u = t.config.app === "konnect" || t.config.isExactMatch;
2268
2270
  if (u)
2269
2271
  return {
@@ -2313,7 +2315,7 @@ const Xe = (s) => s.routeFlavors.traditional === !0, ze = (s) => s.routeFlavors.
2313
2315
  field: "id",
2314
2316
  message: i("copy.success", { val: C })
2315
2317
  });
2316
- }, P = async (u, _) => {
2318
+ }, U = async (u, _) => {
2317
2319
  const C = JSON.stringify(u);
2318
2320
  if (!await _(C)) {
2319
2321
  h("copy:error", {
@@ -2339,7 +2341,7 @@ const Xe = (s) => s.routeFlavors.traditional === !0, ze = (s) => s.routeFlavors.
2339
2341
  ie.value = u, de.value = !0;
2340
2342
  }, De = () => {
2341
2343
  de.value = !1;
2342
- }, Ue = async () => {
2344
+ }, Pe = async () => {
2343
2345
  var u, _, C;
2344
2346
  if ((u = ie.value) != null && u.id) {
2345
2347
  ve.value = !0;
@@ -2351,7 +2353,7 @@ const Xe = (s) => s.routeFlavors.traditional === !0, ze = (s) => s.routeFlavors.
2351
2353
  ve.value = !1;
2352
2354
  }
2353
2355
  }
2354
- }, Pe = () => {
2356
+ }, Ue = () => {
2355
2357
  r.push(t.config.createRoute);
2356
2358
  };
2357
2359
  be(E, (u) => {
@@ -2554,7 +2556,7 @@ const Xe = (s) => s.routeFlavors.traditional === !0, ze = (s) => s.routeFlavors.
2554
2556
  default: n(({ copyToClipboard: M }) => [
2555
2557
  d(re, {
2556
2558
  "data-testid": "action-entity-copy-json",
2557
- onClick: (st) => P(k, M)
2559
+ onClick: (st) => U(k, M)
2558
2560
  }, {
2559
2561
  default: n(() => [
2560
2562
  x(I(e(i)("actions.copy_json")), 1)
@@ -2644,7 +2646,7 @@ const Xe = (s) => s.routeFlavors.traditional === !0, ze = (s) => s.routeFlavors.
2644
2646
  description: e(i)("routes.list.empty_state_v2.description"),
2645
2647
  "learn-more": s.config.app === "konnect",
2646
2648
  title: e(i)("routes.list.empty_state_v2.title"),
2647
- "onClick:create": Pe,
2649
+ "onClick:create": Ue,
2648
2650
  "onClick:learnMore": _[3] || (_[3] = (M) => u.$emit("click:learn-more"))
2649
2651
  }, qe({
2650
2652
  image: n(() => [
@@ -2679,7 +2681,7 @@ const Xe = (s) => s.routeFlavors.traditional === !0, ze = (s) => s.routeFlavors.
2679
2681
  title: e(i)("delete.title"),
2680
2682
  visible: de.value,
2681
2683
  onCancel: De,
2682
- onProceed: Ue
2684
+ onProceed: Pe
2683
2685
  }, null, 8, ["action-pending", "description", "entity-name", "entity-type", "error", "title", "visible"])
2684
2686
  ]);
2685
2687
  };
package/dist/style.css CHANGED
@@ -1 +1 @@
1
- .config-card-fieldset[data-v-f7096c33]{border:solid 1px #e0e4ea;border-radius:4px;margin-bottom:8px;margin-top:4px}.config-card-fieldset-title[data-v-f7096c33]{font-size:14px;padding:0 8px;width:auto}fieldset.config-card-fieldset .config-card-details-row{width:unset}.config-card-json-item .config-card-details-row,fieldset.config-card-fieldset .config-card-details-row{margin:0 16px}.config-card-json-item .config-card-details-row:last-of-type,fieldset.config-card-fieldset .config-card-details-row:last-of-type{border-bottom:none}[data-v-2feb8c2e] .k-button.navigation-button{font-size:14px;font-weight:400}.config-card-details-row[data-v-5f9aa0e8]{align-items:center;border-bottom:var(--2f90d7f7);box-sizing:border-box;display:var(--668a792a);padding:16px 16px 16px 0;width:100%}.config-card-details-row .config-card-details-label[data-v-5f9aa0e8]{box-sizing:border-box;padding-right:16px;width:var(--5bc9ad14)}.config-card-details-row .config-card-details-label label[data-v-5f9aa0e8]{color:#3a3f51;display:inline-flex;max-width:100%}.config-card-details-row .config-card-details-label label .label-content[data-v-5f9aa0e8]{line-height:initial;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.config-card-details-row .config-card-details-label label .k-popover[data-v-5f9aa0e8]{min-width:0}.config-card-details-row .config-card-details-value[data-v-5f9aa0e8]{box-sizing:border-box;width:var(--5bc5215e)}.config-card-details-row .config-card-details-value .truncated[data-v-5f9aa0e8]{display:inline-block;line-height:initial;max-width:20ch;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.config-card-details-row .config-card-details-value span.attrs-data-text[data-v-5f9aa0e8]{overflow-wrap:anywhere}.config-card-details-row .config-card-details-value .copy-uuid-array[data-v-5f9aa0e8] .k-copy:not(:last-of-type){margin-bottom:8px}.config-card-details-row .config-card-details-value .method-badge-array[data-v-5f9aa0e8]{display:flex;flex-wrap:wrap;row-gap:10px}.config-card-details-row .config-badge[data-v-5f9aa0e8]{margin-right:4px}.config-card-details-row[data-v-5f9aa0e8] .k-label{margin-bottom:0}.config-card-details-row[data-v-5f9aa0e8] .k-label .kong-icon-infoFilled{display:flex}.config-card-details-row[data-v-5f9aa0e8] .config-card-details-row{width:auto}.json-content.k-code-block{border-top-left-radius:0;border-top-right-radius:0}.json-endpoint{align-items:baseline;background-color:#000933;border-bottom:1px solid rgba(255,255,255,.2);border-top-left-radius:8px;border-top-right-radius:8px;display:flex;padding:8px 0 8px 12px}.json-endpoint .k-code-block{flex:auto;z-index:2}.json-endpoint .k-code-block .code-block-content{padding-bottom:0;padding-top:0}.json-endpoint .k-code-block .code-block-secondary-actions{margin-top:0!important}.json-endpoint code{direction:rtl;max-width:var(--54aebfa2);overflow:hidden!important;text-align:left;text-overflow:ellipsis;white-space:nowrap}.config-card-prop-section-title[data-v-d67757a9]{color:#000933;font-size:16px;font-weight:600;margin-bottom:16px;margin-top:48px}.kong-ui-entity-base-config-card .config-card-actions[data-v-69a1e1d7]{align-items:center;display:flex}.kong-ui-entity-base-config-card .config-card-actions .config-format-select-label[data-v-69a1e1d7]{margin-bottom:0;margin-right:8px}.kong-ui-entity-base-config-card .config-card-prop-section-title[data-v-69a1e1d7]{color:#000933;font-size:16px;font-weight:600;margin-bottom:16px;margin-top:48px}.kong-ui-entity-base-config-card[data-v-69a1e1d7] .config-card-details-row:last-of-type{border-bottom:none}.kong-ui-entity-base-config-card .book-icon[data-v-69a1e1d7]{margin-left:8px;padding:0}.kong-ui-entity-base-form[data-v-b073d014]{box-sizing:border-box;max-width:1536px;width:100%}.kong-ui-entity-base-form[data-v-b073d014] .k-slideout-title{color:#000933!important;font-size:24px!important;font-weight:700!important;line-height:32px!important;margin-bottom:16px!important}.kong-ui-entity-base-form[data-v-b073d014] .k-card.content-card{padding:0 16px!important}.kong-ui-entity-base-form[data-v-b073d014] .tab-item>div.tab-link.has-panels{color:#6c7489!important;font-size:14px!important;font-weight:700!important;line-height:24px!important}.kong-ui-entity-base-form[data-v-b073d014] .tab-item.active>div.tab-link.has-panels{color:#000933!important;font-weight:600!important}.form-actions[data-v-b073d014]{align-items:center;display:flex;justify-content:flex-end;margin-top:24px}.form-actions[data-v-b073d014] .k-button:last-of-type,.form-actions[data-v-b073d014] .k-button:nth-last-of-type(2){margin-left:16px}.content-wrapper[data-v-a3a65cac] .k-tooltip{word-break:break-all}.kong-ui-entity-base-table .toolbar-container[data-v-1cdbe476]{align-items:center;display:flex;width:100%}.kong-ui-entity-base-table .toolbar-button-container[data-v-1cdbe476]{margin-left:auto}.kong-ui-entity-base-table .hidden[data-v-1cdbe476]{display:none}.kong-ui-entity-base-table[data-v-1cdbe476] .empty-state-icon-gateway{background-color:#ecfcff;border-radius:4px;padding:8px}.kong-ui-entity-base-table :deep(.k-table){table-layout:fixed}.kong-ui-entity-delete-modal .message[data-v-4361d622],.kong-ui-entity-delete-modal .description[data-v-4361d622]{line-height:24px;margin:0}.kong-ui-entity-delete-modal .message strong[data-v-4361d622]{font-weight:600}.kong-ui-entity-delete-modal .description[data-v-4361d622]{margin-top:32px}.kong-ui-entity-delete-error[data-v-4361d622]{margin-bottom:16px}.kong-ui-entity-filter-input[data-v-d1bb74d1]{width:100%}.kong-ui-entity-filter-clear[data-v-d1bb74d1]{cursor:pointer}.kong-ui-entity-filter[data-v-d1bb74d1]{display:flex;position:relative}.kong-ui-entity-filter[data-v-d1bb74d1] .menu-content{flex-direction:column}.kong-ui-entity-filter[data-v-d1bb74d1] .k-menu-item-divider hr{margin:12px 0}.kong-ui-entity-filter-backdrop[data-v-d1bb74d1]{bottom:0;left:0;position:fixed;right:0;top:0;z-index:1050}.kong-ui-entity-filter-menu[data-v-d1bb74d1]{background-color:#fff;border:1px solid #afb7c5;border-radius:4px;box-shadow:0 4px 20px #e0e4ea;left:0;margin-top:16px;padding:8px 0 12px;position:absolute;top:100%;width:300px;z-index:1060}.kong-ui-entity-filter-menu-item[data-v-d1bb74d1]{border-bottom:1px solid #e0e4ea;color:#6c7489;font-size:12px;font-weight:400;line-height:16px;list-style:none;margin:0 20px;padding:16px 0;position:relative;white-space:nowrap}.menu-item-title[data-v-d1bb74d1]{align-items:center;cursor:pointer;display:flex;line-height:24px}.menu-item-title.expanded[data-v-d1bb74d1]{color:#232633}.menu-item-expand-icon[data-v-d1bb74d1]{margin-left:auto}.menu-item-expand-icon.expanded[data-v-d1bb74d1]{transform:rotate(180deg)}.menu-item-indicator[data-v-d1bb74d1]{background-color:#0044f4;border-radius:50%;height:4px;margin-left:4px;width:4px}.menu-item-body[data-v-d1bb74d1]{align-items:center;display:flex;justify-content:space-between;margin-top:16px}.menu-item-body[data-v-d1bb74d1] .input{padding-bottom:4px!important;padding-top:4px!important}.menu-item-body[data-v-d1bb74d1] .k-input{width:100%}.menu-item-body[data-v-d1bb74d1] .k-select-input .input{font-size:12px}.menu-item-body[data-v-d1bb74d1] .k-select-input .input::placeholder{color:#00000073!important;font-size:12px}.menu-item-label[data-v-d1bb74d1]{margin-bottom:0;margin-right:12px}.menu-item-buttons[data-v-d1bb74d1]{display:flex;justify-content:space-between;margin:10px 0 6px}.filter-clear-button-container[data-v-d1bb74d1]{padding:12px 20px 0}fieldset[data-v-b1f74200]{margin:0;min-width:0;padding:0}.kong-ui-entity-form-section[data-v-b1f74200]{border:0}.kong-ui-entity-form-section .form-section-wrapper[data-v-b1f74200]{column-gap:16px;display:flex;flex-direction:column;padding-bottom:64px;row-gap:12px;width:100%}@media (min-width: 1024px){.kong-ui-entity-form-section .form-section-wrapper[data-v-b1f74200]{flex-direction:row}}.kong-ui-entity-form-section .form-section-wrapper .form-section-info[data-v-b1f74200]{flex:1}@media (min-width: 1024px){.kong-ui-entity-form-section .form-section-wrapper .form-section-info[data-v-b1f74200]{max-width:350px}.kong-ui-entity-form-section .form-section-wrapper .form-section-info.sticky[data-v-b1f74200]{height:fit-content;margin-bottom:16px;position:sticky;top:16px}}.kong-ui-entity-form-section .form-section-wrapper .form-section-info .form-section-title[data-v-b1f74200]{color:#000933;font-size:16px;font-weight:700;line-height:20px;margin-bottom:8px;margin-top:0}.kong-ui-entity-form-section .form-section-wrapper .form-section-info .form-section-description[data-v-b1f74200],.kong-ui-entity-form-section .form-section-wrapper .form-section-info .form-section-description p[data-v-b1f74200],.kong-ui-entity-form-section .form-section-wrapper .form-section-info .form-section-description[data-v-b1f74200] p{color:#000933;font-size:14px;font-weight:400;line-height:20px;margin:0}.kong-ui-entity-form-section .form-section-wrapper .form-section-info .form-section-footer[data-v-b1f74200]{margin-top:32px}.kong-ui-entity-form-section .form-section-wrapper .form-section-content[data-v-b1f74200]{flex:1}.kong-ui-entity-form-section .form-section-wrapper .form-section-content[data-v-b1f74200]>*:not(:first-child){margin-top:24px}.kong-ui-entity-form-section.has-divider .form-section-wrapper[data-v-b1f74200]{border-bottom:1px solid #e0e4ea}.kong-ui-public-entity-link[data-v-96efdfa5]{align-items:center;display:flex}.kong-ui-public-entity-link .deleted-entity[data-v-96efdfa5]{font-style:italic}.kong-ui-public-entity-link .entity-link[data-v-96efdfa5]{display:flex;flex:1}.kong-ui-public-entity-link .entity-link[data-v-96efdfa5] .external-link-icon{color:#0044f4;margin-left:4px;padding:2px}.kong-ui-public-entity-link .entity-link-label[data-v-96efdfa5]{display:inline-block;font-weight:400;max-width:90%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.kong-ui-public-entity-link .copy-uuid-tooltip[data-v-96efdfa5]{align-items:center;cursor:pointer;display:flex}.kong-ui-public-entity-link .copy-uuid-tooltip .entity-link-copy-id[data-v-96efdfa5]{margin-left:2px}.kong-ui-public-entity-empty-state[data-v-b6376b66]{align-items:center;background-color:#fff;box-sizing:border-box;display:flex;flex-direction:column;font-family:Inter,Roboto,Helvetica,sans-serif;gap:24px;padding:64px 0;width:100%}@media (min-width: 640px){.kong-ui-public-entity-empty-state[data-v-b6376b66]{padding:64px 96px}}.kong-ui-public-entity-empty-state .empty-state-image[data-v-b6376b66]{margin-bottom:8px}.kong-ui-public-entity-empty-state .entity-empty-state-content[data-v-b6376b66]{align-items:center;display:flex;flex-direction:column;gap:8px;text-align:center;width:100%}.kong-ui-public-entity-empty-state .entity-empty-state-content .entity-empty-state-title h1[data-v-b6376b66]{align-items:center;color:#000933;display:flex;font-size:24px;font-weight:700;gap:8px;line-height:32px;margin:0}.kong-ui-public-entity-empty-state .entity-empty-state-content .entity-empty-state-title h1.secondary[data-v-b6376b66]{font-size:18px}.kong-ui-public-entity-empty-state .entity-empty-state-description[data-v-b6376b66],.kong-ui-public-entity-empty-state .entity-empty-state-pricing[data-v-b6376b66]{color:#52596e;font-size:14px;font-weight:400;line-height:20px;max-width:640px}.kong-ui-public-entity-empty-state .entity-empty-state-description p[data-v-b6376b66],.kong-ui-public-entity-empty-state .entity-empty-state-pricing p[data-v-b6376b66]{margin:0}.kong-ui-public-entity-empty-state .entity-empty-state-pricing[data-v-b6376b66]{margin-top:16px}.kong-ui-public-entity-empty-state .entity-empty-state-message[data-v-b6376b66]{color:#52596e}.kong-ui-public-entity-empty-state .entity-empty-state-action[data-v-b6376b66]{align-items:center;display:flex;gap:12px}.kong-ui-public-entity-empty-state .entity-empty-state-card-container[data-v-b6376b66]{display:flex;flex-wrap:wrap;gap:16px;justify-content:space-around;margin-top:8px;width:312px}@media (min-width: 640px){.kong-ui-public-entity-empty-state .entity-empty-state-card-container[data-v-b6376b66]{width:640px}}.kong-ui-public-entity-empty-state .entity-empty-state-card-container .entity-empty-state-card[data-v-b6376b66]{background-color:#f9fafb;border:1px solid #e0e4ea;border-radius:6px;color:#afb7c5;gap:8px;height:160px;padding:20px;width:312px}.kong-ui-public-entity-empty-state .entity-empty-state-card-container .entity-empty-state-card .feature-icon[data-v-b6376b66]{color:#3a3f51;display:flex;margin-bottom:12px}.kong-ui-public-entity-empty-state .entity-empty-state-card-container .entity-empty-state-card .feature-icon[data-v-b6376b66] .kui-icon{height:20px!important;width:20px!important}.kong-ui-public-entity-empty-state .entity-empty-state-card-container .entity-empty-state-card[data-v-b6376b66] .card-title{font-size:14px;font-weight:600}.kong-ui-public-entity-empty-state .entity-empty-state-card-container .entity-empty-state-card[data-v-b6376b66] .card-content{-webkit-box-orient:vertical;color:#6c7489;display:-webkit-box;-webkit-line-clamp:3;line-clamp:3;overflow:hidden}.kong-ui-public-entity-empty-state .entity-empty-state-bottom-container[data-v-b6376b66]{border-top:1px solid #e0e4ea;display:flex;flex-direction:column;gap:16px;padding-top:48px;width:100%}@media (min-width: 640px){.kong-ui-public-entity-empty-state .entity-empty-state-bottom-container[data-v-b6376b66]{width:640px}}.routing-rule-add-item-button[data-v-f1f4cfc9]{display:flex}.routing-rule-container[data-v-7ce8d4bc]:not(:first-of-type){margin-top:24px}.routing-rule-container hr[data-v-7ce8d4bc]{border:0;border-top:1px solid rgba(0,0,0,.1);margin-bottom:16px}.routing-rule-input[data-v-7ce8d4bc]{align-items:center;column-gap:16px;display:flex}.routing-rule-input .k-input[data-v-7ce8d4bc]{width:100%}.routing-rule-input[data-v-7ce8d4bc]:not(:first-of-type){margin-top:16px}.routing-rule-input .methods-input-container[data-v-7ce8d4bc]{display:flex;flex-wrap:wrap;gap:12px}.routing-rule-input .methods-input[data-v-7ce8d4bc]{display:flex;flex-wrap:wrap;gap:4px}.routing-rule-input .methods-input[data-v-7ce8d4bc] label.k-switch{margin:0!important}.routing-rule-add-item-button[data-v-7ce8d4bc]{margin-top:16px}.routing-rule-container[data-v-cff322c5]:not(:first-of-type){margin-top:24px}.routing-rule-container hr[data-v-cff322c5]{border:0;border-top:1px solid rgba(0,0,0,.1);margin-bottom:16px}.routing-rule-input[data-v-cff322c5]{align-items:center;column-gap:16px;display:flex}.routing-rule-input .k-input[data-v-cff322c5]{width:100%}.routing-rule-input[data-v-cff322c5]:not(:first-of-type){margin-top:16px}.routing-rule-input .methods-input-container[data-v-cff322c5]{display:flex;flex-wrap:wrap;gap:12px}.routing-rule-input .methods-input[data-v-cff322c5]{display:flex;flex-wrap:wrap;gap:4px}.routing-rule-input .methods-input[data-v-cff322c5] label.k-switch{margin:0!important}.routing-rule-add-item-button[data-v-cff322c5]{margin-top:16px}.routing-rule-container[data-v-7cc12b60]:not(:first-of-type){margin-top:24px}.routing-rule-container hr[data-v-7cc12b60]{border:0;border-top:1px solid rgba(0,0,0,.1);margin-bottom:16px}.routing-rule-input[data-v-7cc12b60]{align-items:center;column-gap:16px;display:flex}.routing-rule-input .k-input[data-v-7cc12b60]{width:100%}.routing-rule-input[data-v-7cc12b60]:not(:first-of-type){margin-top:16px}.routing-rule-input .methods-input-container[data-v-7cc12b60]{display:flex;flex-wrap:wrap;gap:12px}.routing-rule-input .methods-input[data-v-7cc12b60]{display:flex;flex-wrap:wrap;gap:4px}.routing-rule-input .methods-input[data-v-7cc12b60] label.k-switch{margin:0!important}.routing-rule-add-item-button[data-v-7cc12b60]{margin-top:16px}.routing-rule-container[data-v-47795008]:not(:first-of-type){margin-top:24px}.routing-rule-container hr[data-v-47795008]{border:0;border-top:1px solid rgba(0,0,0,.1);margin-bottom:16px}.routing-rule-input[data-v-47795008]{align-items:center;column-gap:16px;display:flex}.routing-rule-input .k-input[data-v-47795008]{width:100%}.routing-rule-input[data-v-47795008]:not(:first-of-type){margin-top:16px}.routing-rule-input .methods-input-container[data-v-47795008]{display:flex;flex-wrap:wrap;gap:12px}.routing-rule-input .methods-input[data-v-47795008]{display:flex;flex-wrap:wrap;gap:4px}.routing-rule-input .methods-input[data-v-47795008] label.k-switch{margin:0!important}.routing-rule-add-item-button[data-v-47795008]{margin-top:16px}.routing-rule-container[data-v-f672a51a]:not(:first-of-type){margin-top:24px}.routing-rule-container hr[data-v-f672a51a]{border:0;border-top:1px solid rgba(0,0,0,.1);margin-bottom:16px}.routing-rule-input[data-v-f672a51a]{align-items:center;column-gap:16px;display:flex}.routing-rule-input .k-input[data-v-f672a51a]{width:100%}.routing-rule-input[data-v-f672a51a]:not(:first-of-type){margin-top:16px}.routing-rule-input .methods-input-container[data-v-f672a51a]{display:flex;flex-wrap:wrap;gap:12px}.routing-rule-input .methods-input[data-v-f672a51a]{display:flex;flex-wrap:wrap;gap:4px}.routing-rule-input .methods-input[data-v-f672a51a] label.k-switch{margin:0!important}.routing-rule-add-item-button[data-v-f672a51a]{margin-top:16px}.routing-rule-container[data-v-e52adc95]:not(:first-of-type){margin-top:24px}.routing-rule-container hr[data-v-e52adc95]{border:0;border-top:1px solid rgba(0,0,0,.1);margin-bottom:16px}.routing-rule-input[data-v-e52adc95]{align-items:center;column-gap:16px;display:flex}.routing-rule-input .k-input[data-v-e52adc95]{width:100%}.routing-rule-input[data-v-e52adc95]:not(:first-of-type){margin-top:16px}.routing-rule-input .methods-input-container[data-v-e52adc95]{display:flex;flex-wrap:wrap;gap:12px}.routing-rule-input .methods-input[data-v-e52adc95]{display:flex;flex-wrap:wrap;gap:4px}.routing-rule-input .methods-input[data-v-e52adc95] label.k-switch{margin:0!important}.routing-rule-add-item-button[data-v-e52adc95]{margin-top:16px}.routing-rule-container[data-v-4d7f0cbb]:not(:first-of-type){margin-top:24px}.routing-rule-container hr[data-v-4d7f0cbb]{border:0;border-top:1px solid rgba(0,0,0,.1);margin-bottom:16px}.routing-rule-input[data-v-4d7f0cbb]{align-items:center;column-gap:16px;display:flex}.routing-rule-input .k-input[data-v-4d7f0cbb]{width:100%}.routing-rule-input[data-v-4d7f0cbb]:not(:first-of-type){margin-top:16px}.routing-rule-input .methods-input-container[data-v-4d7f0cbb]{display:flex;flex-wrap:wrap;gap:12px}.routing-rule-input .methods-input[data-v-4d7f0cbb]{display:flex;flex-wrap:wrap;gap:4px}.routing-rule-input .methods-input[data-v-4d7f0cbb] label.k-switch{margin:0!important}.routing-rule-add-item-button[data-v-4d7f0cbb]{margin-top:16px}.route-form-routing-rules-title-container[data-v-8bcc8a9f]{display:flex;justify-content:center}.route-form-routing-rules-title-container .protocol-title[data-v-8bcc8a9f]{font-size:16px}.route-form-routing-rules-title-container .protocol-title[data-v-8bcc8a9f]:not(:first-child):before{content:"/";margin-right:8px;padding-left:8px}.route-form-routing-rules-title-container .routing-rules-title[data-v-8bcc8a9f]{font-size:16px;margin-left:8px}.route-form-advanced-fields-container[data-v-8bcc8a9f]{display:flex;flex-direction:column;margin-top:24px}.route-form-fields-container[data-v-8bcc8a9f]>*:not(:first-child){margin-top:24px}.traditional-rules-hint[data-v-8bcc8a9f]{color:#52596e;margin-bottom:24px}.traditional-rules-hint span[data-v-8bcc8a9f]:not(:first-child){margin-left:4px}.route-form-strip-path[data-v-8bcc8a9f]{margin-top:24px}.route-form-open-in-playground{align-items:center;color:#0030cc;cursor:pointer;display:flex;flex-direction:row;font-size:14px;font-weight:700;gap:8px;justify-content:flex-start;margin-top:12px}.route-form-open-in-playground.disabled{cursor:not-allowed;opacity:.5}.route-form-routing-rules-title-container[data-v-e7571a47]{display:flex;justify-content:center}.route-form-routing-rules-title-container .protocol-title[data-v-e7571a47]{font-size:16px}.route-form-routing-rules-title-container .protocol-title[data-v-e7571a47]:not(:first-child):before{content:"/";margin-right:8px;padding-left:8px}.route-form-routing-rules-title-container .routing-rules-title[data-v-e7571a47]{font-size:16px;margin-left:8px}.route-form-advanced-fields-container[data-v-e7571a47]{display:flex;flex-direction:column;margin-top:24px}.route-form-fields-container[data-v-e7571a47]>*:not(:first-child){margin-top:24px}.config-type-container[data-v-e1425b7c]{display:flex;gap:16px}.config-type-container[data-v-e1425b7c] .radio-card-wrapper{box-sizing:border-box}.config-flavor .config-flavor-label[data-v-e1425b7c]{display:flex}.config-flavor .config-flavor-control[data-v-e1425b7c]{display:inline-flex;width:auto}.appear-enter-active{transition:all .5s ease}.appear-enter-from,.appear-leave-to{opacity:0;transform:translate(30px)}.kong-ui-entities-route-form[data-v-ba92a78f]{width:100%}.kong-ui-entities-route-form .route-form-service-dropdown-item[data-v-ba92a78f]{display:flex;flex-direction:column}.kong-ui-entities-route-form .route-form-service-dropdown-item .select-item-label[data-v-ba92a78f]{font-weight:600}.kong-ui-entities-route-form .route-form-service-dropdown-item .select-item-description[data-v-ba92a78f]{color:#6c7489;font-size:12px}.kong-ui-entities-route-form .route-form-routing-rules-title-container[data-v-ba92a78f]{display:flex;justify-content:center}.kong-ui-entities-route-form .route-form-routing-rules-title-container .protocol-title[data-v-ba92a78f]{font-size:16px}.kong-ui-entities-route-form .route-form-routing-rules-title-container .protocol-title[data-v-ba92a78f]:not(:first-child):before{content:"/";margin-right:8px;padding-left:8px}.kong-ui-entities-route-form .route-form-routing-rules-title-container .routing-rules-title[data-v-ba92a78f]{font-size:16px;margin-left:8px}.kong-ui-entities-route-form .route-form-fields-container[data-v-ba92a78f]>*:not(:first-child){margin-top:24px}.kong-ui-entities-route-form .k-checkbox[data-v-ba92a78f]{display:flex}.kong-ui-entities-route-form[data-v-ba92a78f] .form-section-content{min-width:0}.kong-ui-entities-route-form .expression-editor[data-v-ba92a78f]{min-height:200px}.button-row[data-v-e949a937]{align-items:center;display:flex;gap:12px}.kong-ui-entities-routes-list[data-v-e949a937]{width:100%}.kong-ui-entities-routes-list .kong-ui-entity-filter-input[data-v-e949a937]{margin-right:12px}.kong-ui-entities-routes-list .route-list-cell-expression[data-v-e949a937]{font-family:JetBrains Mono,Consolas,monospace}.expression-editor[data-v-f4a16b4b]{border:1px solid #e0e4ea;border-radius:3px;min-height:200px;overflow:hidden;transition:border-color linear .15s;width:100%}.expression-editor.invalid[data-v-f4a16b4b]{border-color:#d60027}.page-header h1[data-v-30fc351e],h2[data-v-30fc351e],h3[data-v-30fc351e],h4[data-v-30fc351e],h5[data-v-30fc351e],h6[data-v-30fc351e]{color:#000933;font-size:24px;font-weight:700}.page-header h1 .title[data-v-30fc351e],h2 .title[data-v-30fc351e],h3 .title[data-v-30fc351e],h4 .title[data-v-30fc351e],h5 .title[data-v-30fc351e],h6 .title[data-v-30fc351e]{word-break:break-all}.row[data-v-30fc351e]{display:flex;flex-wrap:wrap;justify-content:space-between;margin-left:-16px;margin-right:-16px;padding:0 16px}.col[data-v-30fc351e]{line-height:36px}h1[data-v-30fc351e],h2[data-v-30fc351e],h3[data-v-30fc351e],h4[data-v-30fc351e],h5[data-v-30fc351e],h6[data-v-30fc351e],nav[data-v-30fc351e]{margin-bottom:20px;margin-top:0}.title-no-margin[data-v-30fc351e]{margin:0!important}.operations[data-v-30fc351e]{align-items:center;display:inline-flex;flex-grow:0;justify-content:flex-end;margin-left:auto;text-align:right;white-space:nowrap}.request-card[data-v-48794e33]{align-items:flex-start;background-color:#fff;border-radius:6px;display:flex;flex-direction:column;gap:8px;justify-content:flex-start;min-width:0;padding:12px;position:relative}.request-card[data-v-48794e33]:before{border:1px solid #e0e4ea;border-radius:6px;content:" ";height:100%;left:0;position:absolute;top:0;width:100%}.request-card.active[data-v-48794e33]:before{border:2px solid #5f9aff}.request-card .close-btn[data-v-48794e33]{cursor:pointer;display:none!important;position:absolute;right:12px;top:12px}.request-card:hover .close-btn[data-v-48794e33]{display:block!important}.request-card .badges[data-v-48794e33]{align-items:center;display:flex;flex-direction:row;gap:8px;margin-bottom:6px}.request-card .url[data-v-48794e33]{color:#000933;font-family:JetBrains Mono,Consolas,monospace;font-size:14px;word-break:break-all}.request-card .headers .header[data-v-48794e33]{font-family:JetBrains Mono,Consolas,monospace;list-style:none}.request-card .headers .header[data-v-48794e33],.request-card .headers .header ul[data-v-48794e33]{margin:0;padding:0}.request-card .headers .header li[data-v-48794e33]{list-style:none;margin-left:16px;padding-left:6px;position:relative;word-break:break-all}.request-card .headers .header li[data-v-48794e33]:before{background-color:#000;bottom:-12px;content:" ";left:-10px;position:absolute;top:5px;width:1px}.request-card .headers .header li[data-v-48794e33]:not(:first-child):last-child:before{display:none}.request-card .headers .header li[data-v-48794e33]:only-child:before{background-color:#000;bottom:7px;content:" ";display:list-item;height:7px;left:-10px;position:absolute;top:5px;width:1px}.request-card .headers .header li[data-v-48794e33]:after{background-color:#000;content:" ";height:1px;left:-10px;position:absolute;top:12px;width:10px}.request-card .headers .header-key[data-v-48794e33]{font-size:14px;font-weight:700;margin-left:8px;word-break:break-all}.request-card .headers .header-value[data-v-48794e33]{font-size:14px;font-weight:400;margin-left:16px;word-break:break-all}.request-card .sni .sni-content[data-v-48794e33]{font-family:JetBrains Mono,Consolas,monospace;font-size:14px;word-break:break-all}.request-card .section-title[data-v-48794e33]{font-weight:700}.import-requests-modal .import-requests-alert[data-v-3ec313b9]{margin-bottom:16px}.import-requests-modal .import-requests-error[data-v-3ec313b9]{margin-top:16px}.import-requests-modal .json-editor[data-v-3ec313b9]{border:1px solid #e0e4ea;border-radius:4px;height:500px;overflow:hidden;width:100%}.import-requests-modal .warning[data-v-3ec313b9]{color:#fabe5f}.url-input[data-v-ccaa94c1]{margin-bottom:32px;width:100%}.request-form[data-v-ccaa94c1] fieldset{border:0;padding:0}.support-text[data-v-11a8483b]{color:#000933;display:flex;flex-direction:row;flex-wrap:wrap;padding-bottom:32px}.support-text[data-v-11a8483b] p{font-size:14px;margin-bottom:0}.router-playground-wrapper .page-header[data-v-37fd1d58]{color:#000933;font-size:24px;font-weight:700}.router-playground-wrapper .editor-actions[data-v-37fd1d58]{display:flex;flex-direction:row;justify-content:flex-end;margin-top:16px;width:100%}.router-playground-wrapper .router-playground[data-v-37fd1d58]{margin:auto}.router-playground-wrapper .router-playground .navigate-back[data-v-37fd1d58]{align-items:center;color:#0030cc;cursor:pointer;display:flex;flex-direction:row;font-size:16px;font-weight:700;gap:8px;justify-content:flex-start;margin-bottom:48px;margin-top:10px}.router-playground-wrapper .router-playground .navigate-back .material-icons[data-v-37fd1d58]{font-size:14px}.router-playground-wrapper .router-playground .expression-inspirations[data-v-37fd1d58]{margin-top:16px}.router-playground-wrapper .router-playground .expression-inspirations .title[data-v-37fd1d58]{align-items:center;color:#6c7489;display:flex;flex-direction:row;font-size:14px;font-weight:700;gap:8px;justify-content:flex-start;margin-top:10px}.router-playground-wrapper .router-playground .expression-inspirations .title .material-icons[data-v-37fd1d58]{font-size:14px}.router-playground-wrapper .router-playground .expression-inspirations .buttons[data-v-37fd1d58]{align-items:center;display:flex;flex-direction:row;gap:8px;margin-top:12px}.router-playground-wrapper .router-playground .expression-inspirations .buttons button.expression-inspiration-item[data-v-37fd1d58]{border-style:solid;font-family:JetBrains Mono,Consolas,monospace}.router-playground-wrapper .router-playground .expression-editor-caption[data-v-37fd1d58]{align-items:center;display:flex;flex-direction:row;font-size:14px;justify-content:flex-start;margin:8px 0;opacity:.7}.router-playground-wrapper .router-playground .expression-list tbody tr[data-v-37fd1d58]{font-family:JetBrains Mono,Consolas,monospace}.router-playground-wrapper .router-playground .routes[data-v-37fd1d58]{margin-top:32px}.router-playground-wrapper .router-playground .routes .actions[data-v-37fd1d58]{align-items:center;display:flex;flex-direction:row;gap:8px}.router-playground-wrapper .router-playground .import-button[data-v-37fd1d58],.router-playground-wrapper .router-playground .export-button[data-v-37fd1d58]{margin-right:12px}.router-playground-wrapper .router-playground .route-cards[data-v-37fd1d58]{display:grid;gap:16px;grid-template-columns:1fr 1fr 1fr}.router-playground-wrapper .router-playground .route-cards-footer[data-v-37fd1d58]{align-items:center;display:flex;flex-direction:row;font-size:14px;justify-content:center;margin:16px 0 8px;opacity:.7}.router-playground-wrapper .link[data-v-37fd1d58]{cursor:pointer;margin:0 2px;text-decoration:underline}.router-playground-modal .k-modal-backdrop{overflow-y:scroll}.router-playground-modal .modal-container{max-width:1280px!important;width:100%!important}.router-playground-modal .k-modal-header{margin-bottom:0!important}.router-playground-modal .k-prompt-header hr{margin-bottom:0;margin-top:12px}.router-playground-modal .k-prompt-body hr{margin-bottom:0;margin-top:0}.router-playground-modal .k-prompt-body-content{max-height:800px!important;padding:24px 0}
1
+ .config-card-fieldset[data-v-f7096c33]{border:solid 1px #e0e4ea;border-radius:4px;margin-bottom:8px;margin-top:4px}.config-card-fieldset-title[data-v-f7096c33]{font-size:14px;padding:0 8px;width:auto}fieldset.config-card-fieldset .config-card-details-row{width:unset}.config-card-json-item .config-card-details-row,fieldset.config-card-fieldset .config-card-details-row{margin:0 16px}.config-card-json-item .config-card-details-row:last-of-type,fieldset.config-card-fieldset .config-card-details-row:last-of-type{border-bottom:none}[data-v-2feb8c2e] .k-button.navigation-button{font-size:14px;font-weight:400}.config-card-details-row[data-v-5f9aa0e8]{align-items:center;border-bottom:var(--2f90d7f7);box-sizing:border-box;display:var(--668a792a);padding:16px 16px 16px 0;width:100%}.config-card-details-row .config-card-details-label[data-v-5f9aa0e8]{box-sizing:border-box;padding-right:16px;width:var(--5bc9ad14)}.config-card-details-row .config-card-details-label label[data-v-5f9aa0e8]{color:#3a3f51;display:inline-flex;max-width:100%}.config-card-details-row .config-card-details-label label .label-content[data-v-5f9aa0e8]{line-height:initial;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.config-card-details-row .config-card-details-label label .k-popover[data-v-5f9aa0e8]{min-width:0}.config-card-details-row .config-card-details-value[data-v-5f9aa0e8]{box-sizing:border-box;width:var(--5bc5215e)}.config-card-details-row .config-card-details-value .truncated[data-v-5f9aa0e8]{display:inline-block;line-height:initial;max-width:20ch;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.config-card-details-row .config-card-details-value span.attrs-data-text[data-v-5f9aa0e8]{overflow-wrap:anywhere}.config-card-details-row .config-card-details-value .copy-uuid-array[data-v-5f9aa0e8] .k-copy:not(:last-of-type){margin-bottom:8px}.config-card-details-row .config-card-details-value .method-badge-array[data-v-5f9aa0e8]{display:flex;flex-wrap:wrap;row-gap:10px}.config-card-details-row .config-badge[data-v-5f9aa0e8]{margin-right:4px}.config-card-details-row[data-v-5f9aa0e8] .k-label{margin-bottom:0}.config-card-details-row[data-v-5f9aa0e8] .k-label .kong-icon-infoFilled{display:flex}.config-card-details-row[data-v-5f9aa0e8] .config-card-details-row{width:auto}.json-content.k-code-block{border-top-left-radius:0;border-top-right-radius:0}.json-endpoint{align-items:baseline;background-color:#000933;border-bottom:1px solid rgba(255,255,255,.2);border-top-left-radius:8px;border-top-right-radius:8px;display:flex;padding:8px 0 8px 12px}.json-endpoint .k-code-block{flex:auto;z-index:2}.json-endpoint .k-code-block .code-block-content{padding-bottom:0;padding-top:0}.json-endpoint .k-code-block .code-block-secondary-actions{margin-top:0!important}.json-endpoint code{direction:rtl;max-width:var(--54aebfa2);overflow:hidden!important;text-align:left;text-overflow:ellipsis;white-space:nowrap}.config-card-prop-section-title[data-v-d67757a9]{color:#000933;font-size:16px;font-weight:600;margin-bottom:16px;margin-top:48px}.kong-ui-entity-base-config-card .config-card-actions[data-v-69a1e1d7]{align-items:center;display:flex}.kong-ui-entity-base-config-card .config-card-actions .config-format-select-label[data-v-69a1e1d7]{margin-bottom:0;margin-right:8px}.kong-ui-entity-base-config-card .config-card-prop-section-title[data-v-69a1e1d7]{color:#000933;font-size:16px;font-weight:600;margin-bottom:16px;margin-top:48px}.kong-ui-entity-base-config-card[data-v-69a1e1d7] .config-card-details-row:last-of-type{border-bottom:none}.kong-ui-entity-base-config-card .book-icon[data-v-69a1e1d7]{margin-left:8px;padding:0}.kong-ui-entity-base-form[data-v-b073d014]{box-sizing:border-box;max-width:1536px;width:100%}.kong-ui-entity-base-form[data-v-b073d014] .k-slideout-title{color:#000933!important;font-size:24px!important;font-weight:700!important;line-height:32px!important;margin-bottom:16px!important}.kong-ui-entity-base-form[data-v-b073d014] .k-card.content-card{padding:0 16px!important}.kong-ui-entity-base-form[data-v-b073d014] .tab-item>div.tab-link.has-panels{color:#6c7489!important;font-size:14px!important;font-weight:700!important;line-height:24px!important}.kong-ui-entity-base-form[data-v-b073d014] .tab-item.active>div.tab-link.has-panels{color:#000933!important;font-weight:600!important}.form-actions[data-v-b073d014]{align-items:center;display:flex;justify-content:flex-end;margin-top:24px}.form-actions[data-v-b073d014] .k-button:last-of-type,.form-actions[data-v-b073d014] .k-button:nth-last-of-type(2){margin-left:16px}.content-wrapper[data-v-a3a65cac] .k-tooltip{word-break:break-all}.kong-ui-entity-base-table .toolbar-container[data-v-1cdbe476]{align-items:center;display:flex;width:100%}.kong-ui-entity-base-table .toolbar-button-container[data-v-1cdbe476]{margin-left:auto}.kong-ui-entity-base-table .hidden[data-v-1cdbe476]{display:none}.kong-ui-entity-base-table[data-v-1cdbe476] .empty-state-icon-gateway{background-color:#ecfcff;border-radius:4px;padding:8px}.kong-ui-entity-base-table :deep(.k-table){table-layout:fixed}.kong-ui-entity-delete-modal .message[data-v-4361d622],.kong-ui-entity-delete-modal .description[data-v-4361d622]{line-height:24px;margin:0}.kong-ui-entity-delete-modal .message strong[data-v-4361d622]{font-weight:600}.kong-ui-entity-delete-modal .description[data-v-4361d622]{margin-top:32px}.kong-ui-entity-delete-error[data-v-4361d622]{margin-bottom:16px}.kong-ui-entity-filter-input[data-v-d1bb74d1]{width:100%}.kong-ui-entity-filter-clear[data-v-d1bb74d1]{cursor:pointer}.kong-ui-entity-filter[data-v-d1bb74d1]{display:flex;position:relative}.kong-ui-entity-filter[data-v-d1bb74d1] .menu-content{flex-direction:column}.kong-ui-entity-filter[data-v-d1bb74d1] .k-menu-item-divider hr{margin:12px 0}.kong-ui-entity-filter-backdrop[data-v-d1bb74d1]{bottom:0;left:0;position:fixed;right:0;top:0;z-index:1050}.kong-ui-entity-filter-menu[data-v-d1bb74d1]{background-color:#fff;border:1px solid #afb7c5;border-radius:4px;box-shadow:0 4px 20px #e0e4ea;left:0;margin-top:16px;padding:8px 0 12px;position:absolute;top:100%;width:300px;z-index:1060}.kong-ui-entity-filter-menu-item[data-v-d1bb74d1]{border-bottom:1px solid #e0e4ea;color:#6c7489;font-size:12px;font-weight:400;line-height:16px;list-style:none;margin:0 20px;padding:16px 0;position:relative;white-space:nowrap}.menu-item-title[data-v-d1bb74d1]{align-items:center;cursor:pointer;display:flex;line-height:24px}.menu-item-title.expanded[data-v-d1bb74d1]{color:#232633}.menu-item-expand-icon[data-v-d1bb74d1]{margin-left:auto}.menu-item-expand-icon.expanded[data-v-d1bb74d1]{transform:rotate(180deg)}.menu-item-indicator[data-v-d1bb74d1]{background-color:#0044f4;border-radius:50%;height:4px;margin-left:4px;width:4px}.menu-item-body[data-v-d1bb74d1]{align-items:center;display:flex;justify-content:space-between;margin-top:16px}.menu-item-body[data-v-d1bb74d1] .input{padding-bottom:4px!important;padding-top:4px!important}.menu-item-body[data-v-d1bb74d1] .k-input{width:100%}.menu-item-body[data-v-d1bb74d1] .k-select-input .input{font-size:12px}.menu-item-body[data-v-d1bb74d1] .k-select-input .input::placeholder{color:#00000073!important;font-size:12px}.menu-item-label[data-v-d1bb74d1]{margin-bottom:0;margin-right:12px}.menu-item-buttons[data-v-d1bb74d1]{display:flex;justify-content:space-between;margin:10px 0 6px}.filter-clear-button-container[data-v-d1bb74d1]{padding:12px 20px 0}fieldset[data-v-b1f74200]{margin:0;min-width:0;padding:0}.kong-ui-entity-form-section[data-v-b1f74200]{border:0}.kong-ui-entity-form-section .form-section-wrapper[data-v-b1f74200]{column-gap:16px;display:flex;flex-direction:column;padding-bottom:64px;row-gap:12px;width:100%}@media (min-width: 1024px){.kong-ui-entity-form-section .form-section-wrapper[data-v-b1f74200]{flex-direction:row}}.kong-ui-entity-form-section .form-section-wrapper .form-section-info[data-v-b1f74200]{flex:1}@media (min-width: 1024px){.kong-ui-entity-form-section .form-section-wrapper .form-section-info[data-v-b1f74200]{max-width:350px}.kong-ui-entity-form-section .form-section-wrapper .form-section-info.sticky[data-v-b1f74200]{height:fit-content;margin-bottom:16px;position:sticky;top:16px}}.kong-ui-entity-form-section .form-section-wrapper .form-section-info .form-section-title[data-v-b1f74200]{color:#000933;font-size:16px;font-weight:700;line-height:20px;margin-bottom:8px;margin-top:0}.kong-ui-entity-form-section .form-section-wrapper .form-section-info .form-section-description[data-v-b1f74200],.kong-ui-entity-form-section .form-section-wrapper .form-section-info .form-section-description p[data-v-b1f74200],.kong-ui-entity-form-section .form-section-wrapper .form-section-info .form-section-description[data-v-b1f74200] p{color:#000933;font-size:14px;font-weight:400;line-height:20px;margin:0}.kong-ui-entity-form-section .form-section-wrapper .form-section-info .form-section-footer[data-v-b1f74200]{margin-top:32px}.kong-ui-entity-form-section .form-section-wrapper .form-section-content[data-v-b1f74200]{flex:1}.kong-ui-entity-form-section .form-section-wrapper .form-section-content[data-v-b1f74200]>*:not(:first-child){margin-top:24px}.kong-ui-entity-form-section.has-divider .form-section-wrapper[data-v-b1f74200]{border-bottom:1px solid #e0e4ea}.kong-ui-public-entity-link[data-v-96efdfa5]{align-items:center;display:flex}.kong-ui-public-entity-link .deleted-entity[data-v-96efdfa5]{font-style:italic}.kong-ui-public-entity-link .entity-link[data-v-96efdfa5]{display:flex;flex:1}.kong-ui-public-entity-link .entity-link[data-v-96efdfa5] .external-link-icon{color:#0044f4;margin-left:4px;padding:2px}.kong-ui-public-entity-link .entity-link-label[data-v-96efdfa5]{display:inline-block;font-weight:400;max-width:90%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.kong-ui-public-entity-link .copy-uuid-tooltip[data-v-96efdfa5]{align-items:center;cursor:pointer;display:flex}.kong-ui-public-entity-link .copy-uuid-tooltip .entity-link-copy-id[data-v-96efdfa5]{margin-left:2px}.kong-ui-public-entity-empty-state[data-v-b6376b66]{align-items:center;background-color:#fff;box-sizing:border-box;display:flex;flex-direction:column;font-family:Inter,Roboto,Helvetica,sans-serif;gap:24px;padding:64px 0;width:100%}@media (min-width: 640px){.kong-ui-public-entity-empty-state[data-v-b6376b66]{padding:64px 96px}}.kong-ui-public-entity-empty-state .empty-state-image[data-v-b6376b66]{margin-bottom:8px}.kong-ui-public-entity-empty-state .entity-empty-state-content[data-v-b6376b66]{align-items:center;display:flex;flex-direction:column;gap:8px;text-align:center;width:100%}.kong-ui-public-entity-empty-state .entity-empty-state-content .entity-empty-state-title h1[data-v-b6376b66]{align-items:center;color:#000933;display:flex;font-size:24px;font-weight:700;gap:8px;line-height:32px;margin:0}.kong-ui-public-entity-empty-state .entity-empty-state-content .entity-empty-state-title h1.secondary[data-v-b6376b66]{font-size:18px}.kong-ui-public-entity-empty-state .entity-empty-state-description[data-v-b6376b66],.kong-ui-public-entity-empty-state .entity-empty-state-pricing[data-v-b6376b66]{color:#52596e;font-size:14px;font-weight:400;line-height:20px;max-width:640px}.kong-ui-public-entity-empty-state .entity-empty-state-description p[data-v-b6376b66],.kong-ui-public-entity-empty-state .entity-empty-state-pricing p[data-v-b6376b66]{margin:0}.kong-ui-public-entity-empty-state .entity-empty-state-pricing[data-v-b6376b66]{margin-top:16px}.kong-ui-public-entity-empty-state .entity-empty-state-message[data-v-b6376b66]{color:#52596e}.kong-ui-public-entity-empty-state .entity-empty-state-action[data-v-b6376b66]{align-items:center;display:flex;gap:12px}.kong-ui-public-entity-empty-state .entity-empty-state-card-container[data-v-b6376b66]{display:flex;flex-wrap:wrap;gap:16px;justify-content:space-around;margin-top:8px;width:312px}@media (min-width: 640px){.kong-ui-public-entity-empty-state .entity-empty-state-card-container[data-v-b6376b66]{width:640px}}.kong-ui-public-entity-empty-state .entity-empty-state-card-container .entity-empty-state-card[data-v-b6376b66]{background-color:#f9fafb;border:1px solid #e0e4ea;border-radius:6px;color:#afb7c5;gap:8px;height:160px;padding:20px;width:312px}.kong-ui-public-entity-empty-state .entity-empty-state-card-container .entity-empty-state-card .feature-icon[data-v-b6376b66]{color:#3a3f51;display:flex;margin-bottom:12px}.kong-ui-public-entity-empty-state .entity-empty-state-card-container .entity-empty-state-card .feature-icon[data-v-b6376b66] .kui-icon{height:20px!important;width:20px!important}.kong-ui-public-entity-empty-state .entity-empty-state-card-container .entity-empty-state-card[data-v-b6376b66] .card-title{font-size:14px;font-weight:600}.kong-ui-public-entity-empty-state .entity-empty-state-card-container .entity-empty-state-card[data-v-b6376b66] .card-content{-webkit-box-orient:vertical;color:#6c7489;display:-webkit-box;-webkit-line-clamp:3;line-clamp:3;overflow:hidden}.kong-ui-public-entity-empty-state .entity-empty-state-bottom-container[data-v-b6376b66]{border-top:1px solid #e0e4ea;display:flex;flex-direction:column;gap:16px;padding-top:48px;width:100%}@media (min-width: 640px){.kong-ui-public-entity-empty-state .entity-empty-state-bottom-container[data-v-b6376b66]{width:640px}}.routing-rule-add-item-button[data-v-f1f4cfc9]{display:flex}.routing-rule-container[data-v-7ce8d4bc]:not(:first-of-type){margin-top:24px}.routing-rule-container hr[data-v-7ce8d4bc]{border:0;border-top:1px solid rgba(0,0,0,.1);margin-bottom:16px}.routing-rule-input[data-v-7ce8d4bc]{align-items:center;column-gap:16px;display:flex}.routing-rule-input .k-input[data-v-7ce8d4bc]{width:100%}.routing-rule-input[data-v-7ce8d4bc]:not(:first-of-type){margin-top:16px}.routing-rule-input .methods-input-container[data-v-7ce8d4bc]{display:flex;flex-wrap:wrap;gap:12px}.routing-rule-input .methods-input[data-v-7ce8d4bc]{display:flex;flex-wrap:wrap;gap:4px}.routing-rule-input .methods-input[data-v-7ce8d4bc] label.k-switch{margin:0!important}.routing-rule-add-item-button[data-v-7ce8d4bc]{margin-top:16px}.routing-rule-container[data-v-cff322c5]:not(:first-of-type){margin-top:24px}.routing-rule-container hr[data-v-cff322c5]{border:0;border-top:1px solid rgba(0,0,0,.1);margin-bottom:16px}.routing-rule-input[data-v-cff322c5]{align-items:center;column-gap:16px;display:flex}.routing-rule-input .k-input[data-v-cff322c5]{width:100%}.routing-rule-input[data-v-cff322c5]:not(:first-of-type){margin-top:16px}.routing-rule-input .methods-input-container[data-v-cff322c5]{display:flex;flex-wrap:wrap;gap:12px}.routing-rule-input .methods-input[data-v-cff322c5]{display:flex;flex-wrap:wrap;gap:4px}.routing-rule-input .methods-input[data-v-cff322c5] label.k-switch{margin:0!important}.routing-rule-add-item-button[data-v-cff322c5]{margin-top:16px}.routing-rule-container[data-v-7cc12b60]:not(:first-of-type){margin-top:24px}.routing-rule-container hr[data-v-7cc12b60]{border:0;border-top:1px solid rgba(0,0,0,.1);margin-bottom:16px}.routing-rule-input[data-v-7cc12b60]{align-items:center;column-gap:16px;display:flex}.routing-rule-input .k-input[data-v-7cc12b60]{width:100%}.routing-rule-input[data-v-7cc12b60]:not(:first-of-type){margin-top:16px}.routing-rule-input .methods-input-container[data-v-7cc12b60]{display:flex;flex-wrap:wrap;gap:12px}.routing-rule-input .methods-input[data-v-7cc12b60]{display:flex;flex-wrap:wrap;gap:4px}.routing-rule-input .methods-input[data-v-7cc12b60] label.k-switch{margin:0!important}.routing-rule-add-item-button[data-v-7cc12b60]{margin-top:16px}.routing-rule-container[data-v-47795008]:not(:first-of-type){margin-top:24px}.routing-rule-container hr[data-v-47795008]{border:0;border-top:1px solid rgba(0,0,0,.1);margin-bottom:16px}.routing-rule-input[data-v-47795008]{align-items:center;column-gap:16px;display:flex}.routing-rule-input .k-input[data-v-47795008]{width:100%}.routing-rule-input[data-v-47795008]:not(:first-of-type){margin-top:16px}.routing-rule-input .methods-input-container[data-v-47795008]{display:flex;flex-wrap:wrap;gap:12px}.routing-rule-input .methods-input[data-v-47795008]{display:flex;flex-wrap:wrap;gap:4px}.routing-rule-input .methods-input[data-v-47795008] label.k-switch{margin:0!important}.routing-rule-add-item-button[data-v-47795008]{margin-top:16px}.routing-rule-container[data-v-f672a51a]:not(:first-of-type){margin-top:24px}.routing-rule-container hr[data-v-f672a51a]{border:0;border-top:1px solid rgba(0,0,0,.1);margin-bottom:16px}.routing-rule-input[data-v-f672a51a]{align-items:center;column-gap:16px;display:flex}.routing-rule-input .k-input[data-v-f672a51a]{width:100%}.routing-rule-input[data-v-f672a51a]:not(:first-of-type){margin-top:16px}.routing-rule-input .methods-input-container[data-v-f672a51a]{display:flex;flex-wrap:wrap;gap:12px}.routing-rule-input .methods-input[data-v-f672a51a]{display:flex;flex-wrap:wrap;gap:4px}.routing-rule-input .methods-input[data-v-f672a51a] label.k-switch{margin:0!important}.routing-rule-add-item-button[data-v-f672a51a]{margin-top:16px}.routing-rule-container[data-v-e52adc95]:not(:first-of-type){margin-top:24px}.routing-rule-container hr[data-v-e52adc95]{border:0;border-top:1px solid rgba(0,0,0,.1);margin-bottom:16px}.routing-rule-input[data-v-e52adc95]{align-items:center;column-gap:16px;display:flex}.routing-rule-input .k-input[data-v-e52adc95]{width:100%}.routing-rule-input[data-v-e52adc95]:not(:first-of-type){margin-top:16px}.routing-rule-input .methods-input-container[data-v-e52adc95]{display:flex;flex-wrap:wrap;gap:12px}.routing-rule-input .methods-input[data-v-e52adc95]{display:flex;flex-wrap:wrap;gap:4px}.routing-rule-input .methods-input[data-v-e52adc95] label.k-switch{margin:0!important}.routing-rule-add-item-button[data-v-e52adc95]{margin-top:16px}.routing-rule-container[data-v-4d7f0cbb]:not(:first-of-type){margin-top:24px}.routing-rule-container hr[data-v-4d7f0cbb]{border:0;border-top:1px solid rgba(0,0,0,.1);margin-bottom:16px}.routing-rule-input[data-v-4d7f0cbb]{align-items:center;column-gap:16px;display:flex}.routing-rule-input .k-input[data-v-4d7f0cbb]{width:100%}.routing-rule-input[data-v-4d7f0cbb]:not(:first-of-type){margin-top:16px}.routing-rule-input .methods-input-container[data-v-4d7f0cbb]{display:flex;flex-wrap:wrap;gap:12px}.routing-rule-input .methods-input[data-v-4d7f0cbb]{display:flex;flex-wrap:wrap;gap:4px}.routing-rule-input .methods-input[data-v-4d7f0cbb] label.k-switch{margin:0!important}.routing-rule-add-item-button[data-v-4d7f0cbb]{margin-top:16px}.route-form-routing-rules-title-container[data-v-8bcc8a9f]{display:flex;justify-content:center}.route-form-routing-rules-title-container .protocol-title[data-v-8bcc8a9f]{font-size:16px}.route-form-routing-rules-title-container .protocol-title[data-v-8bcc8a9f]:not(:first-child):before{content:"/";margin-right:8px;padding-left:8px}.route-form-routing-rules-title-container .routing-rules-title[data-v-8bcc8a9f]{font-size:16px;margin-left:8px}.route-form-advanced-fields-container[data-v-8bcc8a9f]{display:flex;flex-direction:column;margin-top:24px}.route-form-fields-container[data-v-8bcc8a9f]>*:not(:first-child){margin-top:24px}.traditional-rules-hint[data-v-8bcc8a9f]{color:#52596e;margin-bottom:24px}.traditional-rules-hint span[data-v-8bcc8a9f]:not(:first-child){margin-left:4px}.route-form-strip-path[data-v-8bcc8a9f]{margin-top:24px}.route-form-open-in-playground{align-items:center;color:#0030cc;cursor:pointer;display:flex;flex-direction:row;font-size:14px;font-weight:700;gap:8px;justify-content:flex-start;margin-top:12px}.route-form-open-in-playground.disabled{cursor:not-allowed;opacity:.5}.route-form-routing-rules-title-container[data-v-e7571a47]{display:flex;justify-content:center}.route-form-routing-rules-title-container .protocol-title[data-v-e7571a47]{font-size:16px}.route-form-routing-rules-title-container .protocol-title[data-v-e7571a47]:not(:first-child):before{content:"/";margin-right:8px;padding-left:8px}.route-form-routing-rules-title-container .routing-rules-title[data-v-e7571a47]{font-size:16px;margin-left:8px}.route-form-advanced-fields-container[data-v-e7571a47]{display:flex;flex-direction:column;margin-top:24px}.route-form-fields-container[data-v-e7571a47]>*:not(:first-child){margin-top:24px}.config-type-container[data-v-893fc5e4]{display:flex;gap:16px}.config-type-container[data-v-893fc5e4] .radio-card-wrapper{box-sizing:border-box}.config-flavor .config-flavor-label[data-v-893fc5e4]{display:flex}.config-flavor .config-flavor-control[data-v-893fc5e4]{display:inline-flex;width:auto}.appear-enter-active{transition:all .5s ease}.appear-enter-from,.appear-leave-to{opacity:0;transform:translate(30px)}.kong-ui-entities-route-form[data-v-ba92a78f]{width:100%}.kong-ui-entities-route-form .route-form-service-dropdown-item[data-v-ba92a78f]{display:flex;flex-direction:column}.kong-ui-entities-route-form .route-form-service-dropdown-item .select-item-label[data-v-ba92a78f]{font-weight:600}.kong-ui-entities-route-form .route-form-service-dropdown-item .select-item-description[data-v-ba92a78f]{color:#6c7489;font-size:12px}.kong-ui-entities-route-form .route-form-routing-rules-title-container[data-v-ba92a78f]{display:flex;justify-content:center}.kong-ui-entities-route-form .route-form-routing-rules-title-container .protocol-title[data-v-ba92a78f]{font-size:16px}.kong-ui-entities-route-form .route-form-routing-rules-title-container .protocol-title[data-v-ba92a78f]:not(:first-child):before{content:"/";margin-right:8px;padding-left:8px}.kong-ui-entities-route-form .route-form-routing-rules-title-container .routing-rules-title[data-v-ba92a78f]{font-size:16px;margin-left:8px}.kong-ui-entities-route-form .route-form-fields-container[data-v-ba92a78f]>*:not(:first-child){margin-top:24px}.kong-ui-entities-route-form .k-checkbox[data-v-ba92a78f]{display:flex}.kong-ui-entities-route-form[data-v-ba92a78f] .form-section-content{min-width:0}.kong-ui-entities-route-form .expression-editor[data-v-ba92a78f]{min-height:200px}.button-row[data-v-e949a937]{align-items:center;display:flex;gap:12px}.kong-ui-entities-routes-list[data-v-e949a937]{width:100%}.kong-ui-entities-routes-list .kong-ui-entity-filter-input[data-v-e949a937]{margin-right:12px}.kong-ui-entities-routes-list .route-list-cell-expression[data-v-e949a937]{font-family:JetBrains Mono,Consolas,monospace}.expression-editor[data-v-f4a16b4b]{border:1px solid #e0e4ea;border-radius:3px;min-height:200px;overflow:hidden;transition:border-color linear .15s;width:100%}.expression-editor.invalid[data-v-f4a16b4b]{border-color:#d60027}.page-header h1[data-v-30fc351e],h2[data-v-30fc351e],h3[data-v-30fc351e],h4[data-v-30fc351e],h5[data-v-30fc351e],h6[data-v-30fc351e]{color:#000933;font-size:24px;font-weight:700}.page-header h1 .title[data-v-30fc351e],h2 .title[data-v-30fc351e],h3 .title[data-v-30fc351e],h4 .title[data-v-30fc351e],h5 .title[data-v-30fc351e],h6 .title[data-v-30fc351e]{word-break:break-all}.row[data-v-30fc351e]{display:flex;flex-wrap:wrap;justify-content:space-between;margin-left:-16px;margin-right:-16px;padding:0 16px}.col[data-v-30fc351e]{line-height:36px}h1[data-v-30fc351e],h2[data-v-30fc351e],h3[data-v-30fc351e],h4[data-v-30fc351e],h5[data-v-30fc351e],h6[data-v-30fc351e],nav[data-v-30fc351e]{margin-bottom:20px;margin-top:0}.title-no-margin[data-v-30fc351e]{margin:0!important}.operations[data-v-30fc351e]{align-items:center;display:inline-flex;flex-grow:0;justify-content:flex-end;margin-left:auto;text-align:right;white-space:nowrap}.request-card[data-v-48794e33]{align-items:flex-start;background-color:#fff;border-radius:6px;display:flex;flex-direction:column;gap:8px;justify-content:flex-start;min-width:0;padding:12px;position:relative}.request-card[data-v-48794e33]:before{border:1px solid #e0e4ea;border-radius:6px;content:" ";height:100%;left:0;position:absolute;top:0;width:100%}.request-card.active[data-v-48794e33]:before{border:2px solid #5f9aff}.request-card .close-btn[data-v-48794e33]{cursor:pointer;display:none!important;position:absolute;right:12px;top:12px}.request-card:hover .close-btn[data-v-48794e33]{display:block!important}.request-card .badges[data-v-48794e33]{align-items:center;display:flex;flex-direction:row;gap:8px;margin-bottom:6px}.request-card .url[data-v-48794e33]{color:#000933;font-family:JetBrains Mono,Consolas,monospace;font-size:14px;word-break:break-all}.request-card .headers .header[data-v-48794e33]{font-family:JetBrains Mono,Consolas,monospace;list-style:none}.request-card .headers .header[data-v-48794e33],.request-card .headers .header ul[data-v-48794e33]{margin:0;padding:0}.request-card .headers .header li[data-v-48794e33]{list-style:none;margin-left:16px;padding-left:6px;position:relative;word-break:break-all}.request-card .headers .header li[data-v-48794e33]:before{background-color:#000;bottom:-12px;content:" ";left:-10px;position:absolute;top:5px;width:1px}.request-card .headers .header li[data-v-48794e33]:not(:first-child):last-child:before{display:none}.request-card .headers .header li[data-v-48794e33]:only-child:before{background-color:#000;bottom:7px;content:" ";display:list-item;height:7px;left:-10px;position:absolute;top:5px;width:1px}.request-card .headers .header li[data-v-48794e33]:after{background-color:#000;content:" ";height:1px;left:-10px;position:absolute;top:12px;width:10px}.request-card .headers .header-key[data-v-48794e33]{font-size:14px;font-weight:700;margin-left:8px;word-break:break-all}.request-card .headers .header-value[data-v-48794e33]{font-size:14px;font-weight:400;margin-left:16px;word-break:break-all}.request-card .sni .sni-content[data-v-48794e33]{font-family:JetBrains Mono,Consolas,monospace;font-size:14px;word-break:break-all}.request-card .section-title[data-v-48794e33]{font-weight:700}.import-requests-modal .import-requests-alert[data-v-3ec313b9]{margin-bottom:16px}.import-requests-modal .import-requests-error[data-v-3ec313b9]{margin-top:16px}.import-requests-modal .json-editor[data-v-3ec313b9]{border:1px solid #e0e4ea;border-radius:4px;height:500px;overflow:hidden;width:100%}.import-requests-modal .warning[data-v-3ec313b9]{color:#fabe5f}.url-input[data-v-ccaa94c1]{margin-bottom:32px;width:100%}.request-form[data-v-ccaa94c1] fieldset{border:0;padding:0}.support-text[data-v-11a8483b]{color:#000933;display:flex;flex-direction:row;flex-wrap:wrap;padding-bottom:32px}.support-text[data-v-11a8483b] p{font-size:14px;margin-bottom:0}.router-playground-wrapper .page-header[data-v-37fd1d58]{color:#000933;font-size:24px;font-weight:700}.router-playground-wrapper .editor-actions[data-v-37fd1d58]{display:flex;flex-direction:row;justify-content:flex-end;margin-top:16px;width:100%}.router-playground-wrapper .router-playground[data-v-37fd1d58]{margin:auto}.router-playground-wrapper .router-playground .navigate-back[data-v-37fd1d58]{align-items:center;color:#0030cc;cursor:pointer;display:flex;flex-direction:row;font-size:16px;font-weight:700;gap:8px;justify-content:flex-start;margin-bottom:48px;margin-top:10px}.router-playground-wrapper .router-playground .navigate-back .material-icons[data-v-37fd1d58]{font-size:14px}.router-playground-wrapper .router-playground .expression-inspirations[data-v-37fd1d58]{margin-top:16px}.router-playground-wrapper .router-playground .expression-inspirations .title[data-v-37fd1d58]{align-items:center;color:#6c7489;display:flex;flex-direction:row;font-size:14px;font-weight:700;gap:8px;justify-content:flex-start;margin-top:10px}.router-playground-wrapper .router-playground .expression-inspirations .title .material-icons[data-v-37fd1d58]{font-size:14px}.router-playground-wrapper .router-playground .expression-inspirations .buttons[data-v-37fd1d58]{align-items:center;display:flex;flex-direction:row;gap:8px;margin-top:12px}.router-playground-wrapper .router-playground .expression-inspirations .buttons button.expression-inspiration-item[data-v-37fd1d58]{border-style:solid;font-family:JetBrains Mono,Consolas,monospace}.router-playground-wrapper .router-playground .expression-editor-caption[data-v-37fd1d58]{align-items:center;display:flex;flex-direction:row;font-size:14px;justify-content:flex-start;margin:8px 0;opacity:.7}.router-playground-wrapper .router-playground .expression-list tbody tr[data-v-37fd1d58]{font-family:JetBrains Mono,Consolas,monospace}.router-playground-wrapper .router-playground .routes[data-v-37fd1d58]{margin-top:32px}.router-playground-wrapper .router-playground .routes .actions[data-v-37fd1d58]{align-items:center;display:flex;flex-direction:row;gap:8px}.router-playground-wrapper .router-playground .import-button[data-v-37fd1d58],.router-playground-wrapper .router-playground .export-button[data-v-37fd1d58]{margin-right:12px}.router-playground-wrapper .router-playground .route-cards[data-v-37fd1d58]{display:grid;gap:16px;grid-template-columns:1fr 1fr 1fr}.router-playground-wrapper .router-playground .route-cards-footer[data-v-37fd1d58]{align-items:center;display:flex;flex-direction:row;font-size:14px;justify-content:center;margin:16px 0 8px;opacity:.7}.router-playground-wrapper .link[data-v-37fd1d58]{cursor:pointer;margin:0 2px;text-decoration:underline}.router-playground-modal .k-modal-backdrop{overflow-y:scroll}.router-playground-modal .modal-container{max-width:1280px!important;width:100%!important}.router-playground-modal .k-modal-header{margin-bottom:0!important}.router-playground-modal .k-prompt-header hr{margin-bottom:0;margin-top:12px}.router-playground-modal .k-prompt-body hr{margin-bottom:0;margin-top:0}.router-playground-modal .k-prompt-body-content{max-height:800px!important;padding:24px 0}
@@ -11,6 +11,7 @@ declare let __VLS_typeProps: {
11
11
  [RouteFlavor.EXPRESSIONS]?: string;
12
12
  };
13
13
  isWsSupported?: boolean;
14
+ hideProtocols?: boolean;
14
15
  };
15
16
  type __VLS_PublicProps = {
16
17
  'configType': 'basic' | 'advanced';
@@ -1 +1 @@
1
- {"version":3,"file":"RouteFormRulesComposer.vue.d.ts","sourceRoot":"","sources":["../../../src/components/RouteFormRulesComposer.vue"],"names":[],"mappings":"AA0XA,OAAO,EAA6E,wBAAwB,EAAE,MAAM,cAAc,CAAA;AAClI,OAAO,EACL,WAAW,EAQX,KAAK,YAAY,EACjB,KAAK,sBAAsB,EAI3B,KAAK,sBAAsB,EAC5B,MAAM,UAAU,CAAA;AAMjB,QAAA,IAAI,eAAe,EAAG;IACpB,SAAS,EAAE,MAAM,OAAO,wBAAwB,CAAA;IAChD,YAAY,EAAE,YAAY,CAAA;IAC1B,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,YAAY,CAAC,EAAE,WAAW,CAAA;IAC1B,yBAAyB,CAAC,EAAE,OAAO,CAAA;IACnC,QAAQ,CAAC,EAAE;QACT,CAAC,WAAW,CAAC,WAAW,CAAC,CAAC,EAAE,MAAM,CAAA;QAClC,CAAC,WAAW,CAAC,WAAW,CAAC,CAAC,EAAE,MAAM,CAAA;KACnC,CAAA;IACD,aAAa,CAAC,EAAE,OAAO,CAAA;CACxB,CAAC;AAiOF,KAAK,iBAAiB,GAAG;IACzB,YAAY,EAAE,OAAO,GAAG,UAAU,CAAC;IACnC,cAAc,EAAE,WAAW,CAAC;IAC5B,QAAQ,CAAC,EAAE,sBAAsB,CAAC;IAClC,eAAe,CAAC,EAAE,KAAK,CAAC;QAAE,KAAK,EAAE,MAAM,CAAC;QAAC,KAAK,EAAE,MAAM,CAAA;KAAE,CAAC,CAAC;CACzD,GAAG,OAAO,eAAe,CAAC;;;eAK2B,MAAM;eAAS,MAAM;;;;iBAwOvC,MAAM;cAAQ,MAAM;;;;;;;;eAxOF,MAAM;eAAS,MAAM;;;;iBAwOvC,MAAM;cAAQ,MAAM;;;;;;;AANxD,wBAWG"}
1
+ {"version":3,"file":"RouteFormRulesComposer.vue.d.ts","sourceRoot":"","sources":["../../../src/components/RouteFormRulesComposer.vue"],"names":[],"mappings":"AA4XA,OAAO,EAA6E,wBAAwB,EAAE,MAAM,cAAc,CAAA;AAClI,OAAO,EACL,WAAW,EAQX,KAAK,YAAY,EACjB,KAAK,sBAAsB,EAI3B,KAAK,sBAAsB,EAC5B,MAAM,UAAU,CAAA;AAMjB,QAAA,IAAI,eAAe,EAAG;IACpB,SAAS,EAAE,MAAM,OAAO,wBAAwB,CAAA;IAChD,YAAY,EAAE,YAAY,CAAA;IAC1B,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,YAAY,CAAC,EAAE,WAAW,CAAA;IAC1B,yBAAyB,CAAC,EAAE,OAAO,CAAA;IACnC,QAAQ,CAAC,EAAE;QACT,CAAC,WAAW,CAAC,WAAW,CAAC,CAAC,EAAE,MAAM,CAAA;QAClC,CAAC,WAAW,CAAC,WAAW,CAAC,CAAC,EAAE,MAAM,CAAA;KACnC,CAAA;IACD,aAAa,CAAC,EAAE,OAAO,CAAA;IACvB,aAAa,CAAC,EAAE,OAAO,CAAA;CACxB,CAAC;AAiOF,KAAK,iBAAiB,GAAG;IACzB,YAAY,EAAE,OAAO,GAAG,UAAU,CAAC;IACnC,cAAc,EAAE,WAAW,CAAC;IAC5B,QAAQ,CAAC,EAAE,sBAAsB,CAAC;IAClC,eAAe,CAAC,EAAE,KAAK,CAAC;QAAE,KAAK,EAAE,MAAM,CAAC;QAAC,KAAK,EAAE,MAAM,CAAA;KAAE,CAAC,CAAC;CACzD,GAAG,OAAO,eAAe,CAAC;;;eAK2B,MAAM;eAAS,MAAM;;;;iBA0OvC,MAAM;cAAQ,MAAM;;;;;;;;eA1OF,MAAM;eAAS,MAAM;;;;iBA0OvC,MAAM;cAAQ,MAAM;;;;;;;AANxD,wBAWG"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kong-ui-public/entities-routes",
3
- "version": "3.12.0",
3
+ "version": "3.13.0",
4
4
  "type": "module",
5
5
  "main": "./dist/entities-routes.umd.js",
6
6
  "module": "./dist/entities-routes.es.js",
@@ -38,8 +38,8 @@
38
38
  "vite-plugin-monaco-editor": "^1.1.0",
39
39
  "vue": "^3.5.13",
40
40
  "vue-router": "^4.4.5",
41
- "@kong-ui-public/i18n": "^2.3.0",
42
- "@kong-ui-public/entities-shared": "^3.22.8"
41
+ "@kong-ui-public/entities-shared": "^3.22.8",
42
+ "@kong-ui-public/i18n": "^2.3.0"
43
43
  },
44
44
  "repository": {
45
45
  "type": "git",