@kong-ui-public/entities-routes 3.13.1 → 3.13.2
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.
package/dist/{RouteFormExpressionsEditor-CrVGN6mO.js → RouteFormExpressionsEditor-C9V2xFxS.js}
RENAMED
|
@@ -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-
|
|
3
|
+
import { c as F } from "./index-DfgIM30M.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-
|
|
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-DfgIM30M.js";
|
|
2
2
|
export {
|
|
3
3
|
R as ExpressionsEditorState,
|
|
4
4
|
o as HTTP_REDIRECT_STATUS_CODES,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(R,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):(R=typeof globalThis<"u"?globalThis:R||self,e(R["kong-ui-public-entities-routes"]={},R.Vue,R["kong-ui-public-entities-shared"],R.isEqual,R.VueRouter,R.KongIcons,R.Kongponents,R["kong-ui-public-expressions"],R["kong-ui-public-i18n"]))})(this,function(R,e,N,_e,Te,X,Ve,ne,Ee){"use strict";const L="/v2/control-planes/{controlPlaneId}/core-entities",K="/{workspace}",ee={list:{konnect:{all:`${L}/routes`,forGatewayService:`${L}/services/{serviceId}/routes`},kongManager:{all:`${K}/routes`,forGatewayService:`${K}/services/{serviceId}/routes`}},form:{konnect:{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}`}},kongManager:{services:`${K}/services`,create:{all:`${K}/routes`,forGatewayService:`${K}/services/{serviceId}/routes`},fetch:{all:`${K}/routes/{id}`,forGatewayService:`${K}/services/{serviceId}/routes/{id}`},edit:{all:`${K}/routes/{id}`,forGatewayService:`${K}/services/{serviceId}/routes/{id}`}}},item:{konnect:{getService:`${L}/services/{serviceId}`,all:`${L}/routes/{id}`,forGatewayService:`${L}/services/{serviceId}/routes/{id}`},kongManager:{getService:`${K}/services/{serviceId}`,all:`${K}/routes/{id}`,forGatewayService:`${K}/services/{serviceId}/routes/{id}`}}},Re={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."},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."},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."},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."},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."},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, such as `api.example.com`. Prefix with `~` to enable regex-based matching."},methods:{label:"Methods",placeholder:"Select methods",search_placeholder:"Search for a method or enter a custom method",singular:"method",tooltip:"Match specific 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`. Doesn't accept the `Host` header. Provide only one entry and prefix with `~` to enable regex-based matching.",name:{placeholder:"e.g. x-api-version"},values:{placeholder:"e.g. v1"}},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 we(){const r=Ee.createI18n("en-us",Re);return{i18n:r,i18nT:Ee.i18nTComponent(r)}}const H={useI18n:we},Be={class:"kong-ui-entities-route-entity-config-card"},Ae={key:2},xe=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:I}){var w;const p=I,t=r,{axiosInstance:a}=N.useAxios((w=t.config)==null?void 0:w.axiosRequestConfig),{i18n:{t:f}}=H.useI18n(),n=e.ref(""),E=e.ref(""),u=e.ref(!1),m=e.computed(()=>{var s,d;return(d=ee.item[(s=t.config)==null?void 0:s.app])==null?void 0:d[t.serviceId?"forGatewayService":"all"].replace(/{serviceId}/gi,t.serviceId)}),c=e.computed(()=>{var s;return(s=ee.item[t.config.app])==null?void 0:s.getService}),g=async s=>{var S,A,P;if(n.value=t.serviceId||((S=s==null?void 0:s.service)==null?void 0:S.id),p("fetch:success",s),!n.value)return;let d=`${t.config.apiBaseUrl}${c.value}`;t.config.app==="konnect"?d=d.replace(/{controlPlaneId}/gi,((A=t.config)==null?void 0:A.controlPlaneId)||"").replace(/{serviceId}/gi,n.value||""):t.config.app==="kongManager"&&(d=d.replace(/\/{workspace}/gi,(P=t.config)!=null&&P.workspace?`/${t.config.workspace}`:"").replace(/{serviceId}/gi,n.value||""));try{u.value=!0;const{data:$}=await a.get(d);E.value=($==null?void 0:$.name)||($==null?void 0:$.id)}catch($){p("fetch:error",$)}finally{u.value=!1}},V=e.ref({id:{},name:{tooltip:f("form.fields.name.tooltip")},created_at:{},updated_at:{},service:{label:f("form.fields.service.label"),section:N.ConfigurationSchemaSection.Basic,tooltip:f("form.fields.service.tooltip"),order:5},tags:{tooltip:f("form.fields.tags.tooltip"),order:6},protocols:{section:N.ConfigurationSchemaSection.Basic,tooltip:f("form.fields.protocols.tooltip"),type:N.ConfigurationSchemaType.BadgeTag,order:7},paths:{section:N.ConfigurationSchemaSection.Basic,tooltip:f("form.fields.paths.tooltip"),type:N.ConfigurationSchemaType.CopyBadge,order:8},hosts:{section:N.ConfigurationSchemaSection.Basic,tooltip:f("form.fields.hosts.tooltip"),type:N.ConfigurationSchemaType.CopyBadge,order:9},snis:{label:f("form.fields.snis.label"),tooltip:f("form.fields.snis.tooltip"),order:10},headers:{section:N.ConfigurationSchemaSection.Basic,tooltip:f("form.fields.headers.tooltip"),order:11},methods:{section:N.ConfigurationSchemaSection.Basic,tooltip:f("form.fields.methods.tooltip"),type:N.ConfigurationSchemaType.BadgeMethod,order:12},sources:{section:N.ConfigurationSchemaSection.Basic,tooltip:f("form.fields.sources.tooltip"),type:N.ConfigurationSchemaType.JsonArray,order:13},destinations:{section:N.ConfigurationSchemaSection.Basic,tooltip:f("form.fields.destinations.tooltip"),type:N.ConfigurationSchemaType.JsonArray,order:14},https_redirect_status_code:{tooltip:f("form.fields.https_redirect_status_code.tooltip"),order:1},regex_priority:{tooltip:f("form.fields.regex_priority.tooltip"),order:2},strip_path:{tooltip:f("form.fields.strip_path.tooltip"),order:3},preserve_host:{tooltip:f("form.fields.preserve_host.tooltip"),order:4},request_buffering:{tooltip:f("form.fields.request_buffering.tooltip"),order:5},response_buffering:{tooltip:f("form.fields.response_buffering.tooltip"),order:6},path_handling:{tooltip:f("form.fields.path_handling.tooltip"),order:7}});return(s,d)=>{const S=e.resolveComponent("KSkeleton");return e.openBlock(),e.createElementBlock("div",Be,[e.createVNode(e.unref(N.EntityBaseConfigCard),{config:r.config,"config-card-doc":r.configCardDoc,"config-schema":V.value,"entity-type":e.unref(N.SupportedEntityType).Route,"fetch-url":m.value,"hide-title":r.hideTitle,"onFetch:error":d[0]||(d[0]=A=>s.$emit("fetch:error",A)),"onFetch:success":g,onLoading:d[1]||(d[1]=A=>s.$emit("loading",A))},{service:e.withCtx(({row:A})=>[u.value?(e.openBlock(),e.createBlock(S,{key:0,"data-testid":"service-name-loader",type:"spinner"})):A.value&&A.value.id===n.value&&E.value?(e.openBlock(),e.createBlock(e.unref(N.InternalLinkItem),{key:1,item:{key:A.value.id,value:E.value,type:e.unref(N.ConfigurationSchemaType).LinkInternal},onNavigationClick:()=>s.$emit("navigation-click",A.value.id,"services")},null,8,["item","onNavigationClick"])):(e.openBlock(),e.createElementBlock("div",Ae,e.toDisplayString("-")))]),_:1},8,["config","config-card-doc","config-schema","entity-type","fetch-url","hide-title"])])}}});var O=(r=>(r.TRADITIONAL="traditional",r.EXPRESSIONS="expressions",r))(O||{}),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||{}),J=(r=>(r.LOADING="loading",r.ERROR="error",r.READY="ready",r))(J||{}),Q=(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))(Q||{});const ue=r=>r.routeFlavors.traditional===!0,fe=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}],ke=[{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},Ce={...ae,paths:[""],regex_priority:0,path_handling:"v0",expression:"",priority:0},Oe=e.defineComponent({__name:"RuleControlsAdd",props:{routingRulesEntity:{}},emits:["add"],setup(r,{emit:I}){const p=r,t=I,a=e.inject("configType","basic"),{i18n:{t:f}}=H.useI18n(),n=e.computed(()=>f(`form.fields.${p.routingRulesEntity}.add`));return(E,u)=>{const m=e.resolveComponent("KButton");return e.unref(a)!=="basic"?(e.openBlock(),e.createBlock(m,{key:0,appearance:"tertiary",class:"routing-rule-add-item-button","data-testid":`add-${E.routingRulesEntity}`,onClick:u[0]||(u[0]=c=>t("add"))},{default:e.withCtx(()=>[e.createVNode(e.unref(X.AddIcon)),e.createElementVNode("span",null,e.toDisplayString(n.value),1)]),_:1},8,["data-testid"])):e.createCommentVNode("",!0)}}}),F=(r,I)=>{const p=r.__vccOpts||r;for(const[t,a]of I)p[t]=a;return p},te=F(Oe,[["__scopeId","data-v-f1f4cfc9"]]),De="#00abd2",Me="#afb7c5",He="#0044f4",Pe="16px",$e="24px",oe=e.defineComponent({__name:"RuleControlsRemove",props:{disabled:{type:Boolean},routingRulesEntity:{}},emits:["remove"],setup(r,{emit:I}){const p=I,t=e.inject("configType","basic");return(a,f)=>{const n=e.resolveComponent("KButton");return e.unref(t)!=="basic"?(e.openBlock(),e.createBlock(n,{key:0,appearance:"tertiary","data-testid":`remove-${a.routingRulesEntity}`,disabled:a.disabled,icon:"",onClick:f[0]||(f[0]=E=>p("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=F(e.defineComponent({__name:"DestinationRules",props:{modelValue:{required:!0},modelModifiers:{}},emits:e.mergeModels(["add","remove"],["update:modelValue"]),setup(r,{emit:I}){const{i18n:{t:p}}=H.useI18n(),t=e.useModel(r,"modelValue"),a=I;return(f,n)=>{const E=e.resolveComponent("KLabel"),u=e.resolveComponent("KInput");return e.openBlock(),e.createElementBlock("div",Ue,[e.createVNode(E,{info:e.unref(p)("form.fields.destinations.tooltip")},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(p)("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,(m,c)=>(e.openBlock(),e.createElementBlock("div",{key:c,class:"routing-rule-input"},[e.createVNode(u,{modelValue:t.value[c].ip,"onUpdate:modelValue":g=>t.value[c].ip=g,modelModifiers:{trim:!0},"data-testid":`route-form-destinations-ip-input-${c+1}`,placeholder:e.unref(p)("form.fields.destinations.ip.placeholder")},null,8,["modelValue","onUpdate:modelValue","data-testid","placeholder"]),e.createVNode(u,{modelValue:t.value[c].port,"onUpdate:modelValue":g=>t.value[c].port=g,modelModifiers:{number:!0},"data-testid":`route-form-destinations-port-input-${c+1}`,max:"65535",min:"0",placeholder:e.unref(p)("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:g=>a("remove",c)},null,8,["disabled","routing-rules-entity","onRemove"])]))),128))]),_:1}),e.createVNode(te,{"routing-rules-entity":e.unref(o).DESTINATIONS,onAdd:n[0]||(n[0]=m=>a("add"))},null,8,["routing-rules-entity"])])}}}),[["__scopeId","data-v-7ce8d4bc"]]),Le={class:"routing-rule-container"},Ke=F(e.defineComponent({__name:"HeaderRules",props:{modelValue:{required:!0},modelModifiers:{}},emits:e.mergeModels(["add","remove"],["update:modelValue"]),setup(r,{emit:I}){const{i18n:{t:p}}=H.useI18n(),t=e.useModel(r,"modelValue"),a=I;return(f,n)=>{const E=e.resolveComponent("KLabel"),u=e.resolveComponent("KInput");return e.openBlock(),e.createElementBlock("div",Le,[e.createVNode(E,{info:e.unref(p)("form.fields.headers.tooltip")},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(p)("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,(m,c)=>(e.openBlock(),e.createElementBlock("div",{key:c,class:"routing-rule-input"},[e.createVNode(u,{modelValue:t.value[c].header,"onUpdate:modelValue":g=>t.value[c].header=g,modelModifiers:{trim:!0},"data-testid":`route-form-headers-name-input-${c+1}`,placeholder:e.unref(p)("form.fields.headers.name.placeholder")},null,8,["modelValue","onUpdate:modelValue","data-testid","placeholder"]),e.createVNode(u,{modelValue:t.value[c].values,"onUpdate:modelValue":g=>t.value[c].values=g,modelModifiers:{trim:!0},"data-testid":`route-form-headers-values-input-${c+1}`,placeholder:e.unref(p)("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:g=>a("remove",c)},null,8,["disabled","routing-rules-entity","onRemove"])]))),128))]),_:1}),e.createVNode(te,{"routing-rules-entity":e.unref(o).HEADERS,onAdd:n[0]||(n[0]=m=>a("add"))},null,8,["routing-rules-entity"])])}}}),[["__scopeId","data-v-cff322c5"]]),qe={class:"routing-rule-container"},Ge=F(e.defineComponent({__name:"HostRules",props:{modelValue:{required:!0},modelModifiers:{}},emits:e.mergeModels(["add","remove"],["update:modelValue"]),setup(r,{emit:I}){const{i18n:{t:p}}=H.useI18n(),t=e.useModel(r,"modelValue"),a=I,f=e.inject("configType","basic");return(n,E)=>{const u=e.resolveComponent("KLabel"),m=e.resolveComponent("KInput");return e.openBlock(),e.createElementBlock("div",qe,[e.createVNode(u,{info:e.unref(p)("form.fields.hosts.tooltip"),"tooltip-attributes":{maxWidth:"320"}},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(f)==="basic"?e.unref(p)("form.fields.hosts.label_singular"):e.unref(p)("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(f)==="basic"?t.value.slice(0,1):t.value,(c,g)=>(e.openBlock(),e.createElementBlock("div",{key:g,class:"routing-rule-input"},[e.createVNode(m,{modelValue:t.value[g],"onUpdate:modelValue":V=>t.value[g]=V,modelModifiers:{trim:!0},"data-testid":`route-form-hosts-input-${g+1}`,placeholder:e.unref(p)("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:V=>a("remove",g)},null,8,["disabled","routing-rules-entity","onRemove"])]))),128))]),_:1}),e.createVNode(te,{"routing-rules-entity":e.unref(o).HOSTS,onAdd:E[0]||(E[0]=c=>a("add"))},null,8,["routing-rules-entity"])])}}}),[["__scopeId","data-v-7cc12b60"]]),je={class:"routing-rule-container","data-testid":"route-form-methods"},We={class:"routing-rule-input"},Xe=F(e.defineComponent({__name:"MethodRules",props:{methods:{required:!0},methodsModifiers:{},customMethods:{required:!0},customMethodsModifiers:{}},emits:["update:methods","update:customMethods"],setup(r){const{i18n:{t:I}}=H.useI18n(),p=e.useModel(r,"methods"),t=e.useModel(r,"customMethods"),a=e.computed(()=>p.value.filter(m=>Object.keys(Q).includes(m)).concat(t.value.map(m=>m.value))),f=e.computed(()=>Object.keys(Q).map(m=>({label:m,value:m})).concat(t.value.map(m=>({label:m.label,value:m.value,custom:!0})))),n=m=>!f.value.map(c=>c.value.toLowerCase()).includes(m.toLowerCase()),E=(m,c)=>{c?t.value.push(m):t.value=t.value.filter(g=>g.value!==m.value)},u=m=>{p.value=m};return(m,c)=>{const g=e.resolveComponent("KLabel"),V=e.resolveComponent("KMultiselect");return e.openBlock(),e.createElementBlock("div",je,[e.createVNode(g,{info:e.unref(I)("form.fields.methods.tooltip"),"tooltip-attributes":{maxWidth:"320"}},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(I)("form.fields.methods.label")),1)]),_:1},8,["info"]),e.createElementVNode("div",We,[e.createVNode(V,{"enable-item-creation":"","item-creation-validator":n,items:f.value,"model-value":a.value,placeholder:e.unref(I)("form.fields.methods.placeholder"),"search-placeholder":e.unref(I)("form.fields.methods.search_placeholder"),onItemAdded:c[0]||(c[0]=w=>E(w,!0)),onItemRemoved:c[1]||(c[1]=w=>E(w,!1)),"onUpdate:modelValue":u},null,8,["items","model-value","placeholder","search-placeholder"])])])}}}),[["__scopeId","data-v-47795008"]]),ze={class:"routing-rule-container"},ve=F(e.defineComponent({__name:"PathRules",props:{modelValue:{required:!0},modelModifiers:{}},emits:e.mergeModels(["add","remove"],["update:modelValue"]),setup(r,{emit:I}){const{i18n:{t:p}}=H.useI18n(),t=e.useModel(r,"modelValue"),a=I,f=e.inject("configType","basic");return(n,E)=>{const u=e.resolveComponent("KLabel"),m=e.resolveComponent("KInput");return e.openBlock(),e.createElementBlock("div",ze,[e.createVNode(u,{info:e.unref(p)("form.fields.paths.tooltip"),"tooltip-attributes":{maxWidth:"320"}},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(f)==="basic"?e.unref(p)("form.fields.paths.label_singular"):e.unref(p)("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(f)==="basic"?t.value.slice(0,1):t.value,(c,g)=>(e.openBlock(),e.createElementBlock("div",{key:g,class:"routing-rule-input"},[e.createVNode(m,{modelValue:t.value[g],"onUpdate:modelValue":V=>t.value[g]=V,modelModifiers:{trim:!0},"data-testid":`route-form-paths-input-${g+1}`,placeholder:e.unref(p)("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:V=>a("remove",g)},null,8,["disabled","routing-rules-entity","onRemove"])]))),128))]),_:1}),e.createVNode(te,{"routing-rules-entity":e.unref(o).PATHS,onAdd:E[0]||(E[0]=c=>a("add"))},null,8,["routing-rules-entity"])])}}}),[["__scopeId","data-v-f672a51a"]]),Je={class:"routing-rule-container"},Qe=F(e.defineComponent({__name:"SniRules",props:{modelValue:{required:!0},modelModifiers:{}},emits:e.mergeModels(["add","remove"],["update:modelValue"]),setup(r,{emit:I}){const{i18n:{t:p}}=H.useI18n(),t=e.useModel(r,"modelValue"),a=I;return(f,n)=>{const E=e.resolveComponent("KLabel"),u=e.resolveComponent("KInput");return e.openBlock(),e.createElementBlock("div",Je,[e.createVNode(E,{info:e.unref(p)("form.fields.snis.tooltip"),"tooltip-attributes":{maxWidth:"320"}},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(p)("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,(m,c)=>(e.openBlock(),e.createElementBlock("div",{key:c,class:"routing-rule-input"},[e.createVNode(u,{modelValue:t.value[c],"onUpdate:modelValue":g=>t.value[c]=g,modelModifiers:{trim:!0},"data-testid":`route-form-snis-input-${c+1}`,placeholder:e.unref(p)("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:g=>a("remove",c)},null,8,["disabled","routing-rules-entity","onRemove"])]))),128))]),_:1}),e.createVNode(te,{"routing-rules-entity":e.unref(o).SNIS,onAdd:n[0]||(n[0]=m=>a("add"))},null,8,["routing-rules-entity"])])}}}),[["__scopeId","data-v-e52adc95"]]),Ye={class:"routing-rule-container"},Ze=F(e.defineComponent({__name:"SourceRules",props:{modelValue:{required:!0},modelModifiers:{}},emits:e.mergeModels(["add","remove"],["update:modelValue"]),setup(r,{emit:I}){const{i18n:{t:p}}=H.useI18n(),t=e.useModel(r,"modelValue"),a=I;return(f,n)=>{const E=e.resolveComponent("KLabel"),u=e.resolveComponent("KInput");return e.openBlock(),e.createElementBlock("div",Ye,[e.createVNode(E,{info:e.unref(p)("form.fields.sources.tooltip")},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(p)("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,(m,c)=>(e.openBlock(),e.createElementBlock("div",{key:c,class:"routing-rule-input"},[e.createVNode(u,{modelValue:t.value[c].ip,"onUpdate:modelValue":g=>t.value[c].ip=g,modelModifiers:{trim:!0},"data-testid":`route-form-sources-ip-input-${c+1}`,placeholder:e.unref(p)("form.fields.sources.ip.placeholder")},null,8,["modelValue","onUpdate:modelValue","data-testid","placeholder"]),e.createVNode(u,{modelValue:t.value[c].port,"onUpdate:modelValue":g=>t.value[c].port=g,modelModifiers:{number:!0},"data-testid":`route-form-sources-port-input-${c+1}`,max:"65535",min:"0",placeholder:e.unref(p)("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:g=>a("remove",c)},null,8,["disabled","routing-rules-entity","onRemove"])]))),128))]),_:1}),e.createVNode(te,{"routing-rules-entity":e.unref(o).SOURCES,onAdd:n[0]||(n[0]=m=>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=F(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:I,i18n:p,i18n:{t}}=H.useI18n(),a=p.source.form.protocols,f=r,n=e.useModel(r,"fields"),E=e.useModel(r,"customMethods"),u=s=>{switch(s){case o.PATHS:Array.isArray(n.value.paths)?n.value.paths.push([...M[o.PATHS]][0]):n.value.paths=[...M[o.PATHS]];break;case o.SNIS:Array.isArray(n.value.snis)?n.value.snis.push([...M[o.SNIS]][0]):n.value.snis=[...M[o.SNIS]];break;case o.HOSTS:Array.isArray(n.value.hosts)?n.value.hosts.push([...M[o.HOSTS]][0]):n.value.hosts=[...M[o.HOSTS]];break;case o.METHODS:n.value.methods||(n.value.methods={...M[o.METHODS]});break;case o.HEADERS:Array.isArray(n.value.headers)?n.value.headers.push({...M[o.HEADERS][0]}):n.value.headers=[{...M[o.HEADERS][0]}];break;case o.SOURCES:Array.isArray(n.value.sources)?n.value.sources.push({...M[o.SOURCES][0]}):n.value.sources=[{...M[o.SOURCES][0]}];break;case o.DESTINATIONS:Array.isArray(n.value.destinations)?n.value.destinations.push({...M[o.DESTINATIONS][0]}):n.value.destinations=[{...M[o.DESTINATIONS][0]}];break}},m=async(s,d)=>{if(typeof d<"u"){const S=n.value[s];if(Array.isArray(S)&&(S.splice(d,1),S.length>0))return}await e.nextTick(()=>{delete n.value[s]})},c=s=>s.some(d=>f.protocols.includes(d)),g=e.computed(()=>new Set(ce[f.protocols])),V=e.computed(()=>{if(c(["tls_passthrough"]))return[w(o.SNIS)];const s=(f.configType==="basic"?[o.PATHS,o.METHODS,o.HOSTS]:ce[f.protocols]).map(d=>w(d));return[[...s].splice(0,s.length-1).join(", "),s[s.length-1]]}),w=s=>{var S;return((S=p.source.form.fields[s])==null?void 0:S.singular)||""};return(s,d)=>{const S=e.resolveComponent("KCheckbox"),A=e.resolveComponent("KSelect"),P=e.resolveComponent("KInput"),$=e.resolveComponent("KCard");return e.openBlock(),e.createBlock($,null,{default:e.withCtx(()=>{var h;return[e.createElementVNode("span",et,[e.createVNode(e.unref(I),{keypath:"form.hint.rules_message"},{protocol:e.withCtx(()=>[e.createElementVNode("b",null,e.toDisplayString(e.unref(a)[s.protocols]),1)]),routingRules:e.withCtx(()=>[e.createVNode(e.unref(I),{keypath:V.value[1]?"form.hint.multiple_rules":"form.hint.single_rule"},{routingRules:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(V.value[0]),1)]),lastRoutingRule:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(V.value[1]),1)]),_:1},8,["keypath"])]),_:1}),s.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[n.value.paths&&g.value.has(e.unref(o).PATHS)?(e.openBlock(),e.createBlock(ve,{key:"paths-container",modelValue:n.value.paths,"onUpdate:modelValue":d[0]||(d[0]=b=>n.value.paths=b),onAdd:d[1]||(d[1]=b=>u(e.unref(o).PATHS)),onRemove:d[2]||(d[2]=b=>m(e.unref(o).PATHS,b))},null,8,["modelValue"])):e.createCommentVNode("",!0),c(["http","https","ws","wss"])?(e.openBlock(),e.createBlock(S,{key:1,modelValue:n.value.strip_path,"onUpdate:modelValue":d[3]||(d[3]=b=>n.value.strip_path=b),class:"route-form-strip-path","data-testid":"route-form-strip-path",disabled:!((_=n.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),n.value.methods&&g.value.has(e.unref(o).METHODS)?(e.openBlock(),e.createBlock(Xe,{key:"methods-container","custom-methods":E.value,"onUpdate:customMethods":d[4]||(d[4]=b=>E.value=b),methods:n.value.methods,"onUpdate:methods":d[5]||(d[5]=b=>n.value.methods=b)},null,8,["custom-methods","methods"])):e.createCommentVNode("",!0),n.value.hosts&&g.value.has(e.unref(o).HOSTS)?(e.openBlock(),e.createBlock(Ge,{key:"hosts-container",modelValue:n.value.hosts,"onUpdate:modelValue":d[6]||(d[6]=b=>n.value.hosts=b),onAdd:d[7]||(d[7]=b=>u(e.unref(o).HOSTS)),onRemove:d[8]||(d[8]=b=>m(e.unref(o).HOSTS,b))},null,8,["modelValue"])):e.createCommentVNode("",!0),n.value.headers&&s.configType==="advanced"&&g.value.has(e.unref(o).HEADERS)?(e.openBlock(),e.createBlock(Ke,{key:"headers-container",modelValue:n.value.headers,"onUpdate:modelValue":d[9]||(d[9]=b=>n.value.headers=b),onAdd:d[10]||(d[10]=b=>u(e.unref(o).HEADERS)),onRemove:d[11]||(d[11]=b=>m(e.unref(o).HEADERS,b))},null,8,["modelValue"])):e.createCommentVNode("",!0),n.value.sources&&g.value.has(e.unref(o).SOURCES)?(e.openBlock(),e.createBlock(Ze,{key:"sources-container",modelValue:n.value.sources,"onUpdate:modelValue":d[12]||(d[12]=b=>n.value.sources=b),onAdd:d[13]||(d[13]=b=>u(e.unref(o).SOURCES)),onRemove:d[14]||(d[14]=b=>m(e.unref(o).SOURCES,b))},null,8,["modelValue"])):e.createCommentVNode("",!0),n.value.destinations&&g.value.has(e.unref(o).DESTINATIONS)?(e.openBlock(),e.createBlock(Fe,{key:"destinations-container",modelValue:n.value.destinations,"onUpdate:modelValue":d[15]||(d[15]=b=>n.value.destinations=b),onAdd:d[16]||(d[16]=b=>u(e.unref(o).DESTINATIONS)),onRemove:d[17]||(d[17]=b=>m(e.unref(o).DESTINATIONS,b))},null,8,["modelValue"])):e.createCommentVNode("",!0),n.value.snis&&s.configType==="advanced"&&g.value.has(e.unref(o).SNIS)?(e.openBlock(),e.createBlock(Qe,{key:"snis-container",modelValue:n.value.snis,"onUpdate:modelValue":d[18]||(d[18]=b=>n.value.snis=b),onAdd:d[19]||(d[19]=b=>u(e.unref(o).SNIS)),onRemove:d[20]||(d[20]=b=>m(e.unref(o).SNIS,b))},null,8,["modelValue"])):e.createCommentVNode("",!0)]}),_:1}),s.hideAdvanced?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",ot,[(h=n.value.paths)!=null&&h.some(Boolean)?(e.openBlock(),e.createBlock(A,{key:0,modelValue:n.value.path_handling,"onUpdate:modelValue":d[21]||(d[21]=_=>n.value.path_handling=_),"data-testid":"route-form-path-handling",items:e.unref(ke),label:e.unref(t)("form.fields.path_handling.label"),"label-attributes":{info:e.unref(t)("form.fields.path_handling.tooltip"),tooltipAttributes:{maxWidth:"320"}},readonly:s.readonly,width:"100%"},null,8,["modelValue","items","label","label-attributes","readonly"])):e.createCommentVNode("",!0),e.createVNode(A,{modelValue:n.value.https_redirect_status_code,"onUpdate:modelValue":d[22]||(d[22]=_=>n.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:s.readonly,width:"100%"},null,8,["modelValue","items","label","label-attributes","readonly"]),e.createVNode(P,{modelValue:n.value.regex_priority,"onUpdate:modelValue":d[23]||(d[23]=_=>n.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:s.readonly,type:"number"},null,8,["modelValue","label","label-attributes","readonly"]),e.createVNode(S,{modelValue:n.value.preserve_host,"onUpdate:modelValue":d[24]||(d[24]=_=>n.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(S,{modelValue:n.value.request_buffering,"onUpdate:modelValue":d[25]||(d[25]=_=>n.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(S,{modelValue:n.value.response_buffering,"onUpdate:modelValue":d[26]||(d[26]=_=>n.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:I}){const{i18n:{t:p}}=H.useI18n(),t={render:()=>e.h("div",p("form.expressions_editor.loading"))},a={render:()=>e.h("div",p("form.expressions_editor.error"))},f=e.defineAsyncComponent({loader:async()=>Promise.resolve().then(()=>It),loadingComponent:t,errorComponent:a}),n=r,E=I,u=e.ref(J.LOADING),m=e.useModel(r,"modelValue"),c=g=>{m.value=g};return e.onMounted(async()=>{try{await(await import("@kong-ui-public/expressions")).asyncInit,u.value=J.READY}catch(g){u.value=J.ERROR,console.error(g)}}),(g,V)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[u.value===e.unref(J).ERROR?(e.openBlock(),e.createBlock(e.resolveDynamicComponent(a),{key:0,"data-testid":"route-form-expressions-editor-loader-error"})):u.value===e.unref(J).LOADING?(e.openBlock(),e.createBlock(e.resolveDynamicComponent(t),{key:1,"data-testid":"route-form-expressions-editor-loader-loading"})):(e.openBlock(),e.createBlock(e.unref(f),{key:2,modelValue:m.value,"onUpdate:modelValue":V[0]||(V[0]=w=>m.value=w),protocol:n.protocol,"show-expressions-modal-entry":g.showExpressionsModalEntry,onNotify:V[1]||(V[1]=w=>E("notify",w))},{default:e.withCtx(()=>[e.createVNode(e.unref(X.RocketIcon),{size:e.unref(Pe)},null,8,["size"]),e.createElementVNode("span",null,e.toDisplayString(e.unref(p)("form.expression_playground.test_link")),1)]),_:1},8,["modelValue","protocol","show-expressions-modal-entry"])),e.renderSlot(g.$slots,"after-editor",{expression:{value:m.value,update:c},state:u.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=F(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:I}){const{i18n:{t:p}}=H.useI18n(),t=r,a=e.useModel(r,"fields"),f=I,n=e.ref(!0),E=e.computed(()=>t.protocols.split(",")||[]),u=m=>m.some(c=>t.protocols.includes(c));return(m,c)=>{const g=e.resolveComponent("KCard"),V=e.resolveComponent("KSelect"),w=e.resolveComponent("KInput"),s=e.resolveComponent("KCheckbox"),d=e.resolveComponent("KCollapse");return e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createVNode(g,null,{title:e.withCtx(()=>[e.createElementVNode("div",lt,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(E.value,S=>(e.openBlock(),e.createElementBlock("span",{key:S,class:"protocol-title"},e.toDisplayString(S.toUpperCase()),1))),128)),e.createElementVNode("span",st,e.toDisplayString(e.unref(p)("form.sections.routingExpression.title")),1)])]),default:e.withCtx(()=>[e.createVNode(rt,{modelValue:a.value.expression,"onUpdate:modelValue":c[0]||(c[0]=S=>a.value.expression=S),protocol:E.value[0],"show-expressions-modal-entry":m.showExpressionsModalEntry,onNotify:c[1]||(c[1]=S=>f("notify",S))},{"after-editor":e.withCtx(S=>[e.renderSlot(m.$slots,"after-expressions-editor",{expression:S.expression,state:S.state},void 0,!0)]),_:3},8,["modelValue","protocol","show-expressions-modal-entry"])]),_:3}),e.createVNode(d,{modelValue:n.value,"onUpdate:modelValue":c[8]||(c[8]=S=>n.value=S),class:"route-form-advanced-fields-collapse","trigger-alignment":"leading","trigger-label":e.unref(p)("form.show_more")},{default:e.withCtx(()=>[e.createVNode(g,null,{default:e.withCtx(()=>[e.createElementVNode("div",nt,[e.createVNode(V,{modelValue:a.value.https_redirect_status_code,"onUpdate:modelValue":c[2]||(c[2]=S=>a.value.https_redirect_status_code=S),"data-testid":"route-form-http-redirect-status-code",items:e.unref(me),label:e.unref(p)("form.fields.https_redirect_status_code.label"),readonly:m.readonly,width:"100%"},null,8,["modelValue","items","label","readonly"]),e.createVNode(w,{modelValue:a.value.priority,"onUpdate:modelValue":c[3]||(c[3]=S=>a.value.priority=S),autocomplete:"off","data-testid":"route-form-priority",label:e.unref(p)("form.fields.priority.label"),"label-attributes":{info:e.unref(p)("form.fields.priority.tooltip"),tooltipAttributes:{maxWidth:"400"}},readonly:m.readonly,type:"number"},null,8,["modelValue","label","label-attributes","readonly"]),u(["http","https","ws","wss","tls","tcp","udp","tls_passthrough"])?(e.openBlock(),e.createBlock(s,{key:0,modelValue:a.value.strip_path,"onUpdate:modelValue":c[4]||(c[4]=S=>a.value.strip_path=S),"data-testid":"route-form-strip-path",label:e.unref(p)("form.fields.strip_path.label")},null,8,["modelValue","label"])):e.createCommentVNode("",!0),e.createVNode(s,{modelValue:a.value.preserve_host,"onUpdate:modelValue":c[5]||(c[5]=S=>a.value.preserve_host=S),"data-testid":"route-form-preserve-host",label:e.unref(p)("form.fields.preserve_host.label")},null,8,["modelValue","label"]),e.createVNode(s,{modelValue:a.value.request_buffering,"onUpdate:modelValue":c[6]||(c[6]=S=>a.value.request_buffering=S),"data-testid":"route-form-request-buffering",label:e.unref(p)("form.fields.request_buffering.label")},null,8,["modelValue","label"]),e.createVNode(s,{modelValue:a.value.response_buffering,"onUpdate:modelValue":c[7]||(c[7]=S=>a.value.response_buffering=S),"data-testid":"route-form-response-buffering",label:e.unref(p)("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"},Ie=F(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:I}){const p=r,t=e.useModel(r,"configType"),a=e.useModel(r,"configFlavor"),f=e.useModel(r,"fields"),n=e.useModel(r,"customMethods"),E=I,{i18n:{t:u}}=H.useI18n(),m=[{value:O.TRADITIONAL,label:u("form.flavors.traditional")},{value:O.EXPRESSIONS,label:u("form.flavors.expressions")}],c=e.computed(()=>[{label:u("form.protocols.grpc"),value:"grpc"},{label:u("form.protocols.grpcs"),value:"grpcs"},{label:u("form.protocols.grpc,grpcs"),value:"grpc,grpcs"},{label:u("form.protocols.http"),value:"http"},{label:u("form.protocols.https"),value:"https"},{label:u("form.protocols.http,https"),value:"http,https"},{label:u("form.protocols.tcp"),value:"tcp"},{label:u("form.protocols.tls"),value:"tls"},{label:u("form.protocols.tls,udp"),value:"tls,udp"},{label:u("form.protocols.tcp,udp"),value:"tcp,udp"},{label:u("form.protocols.tcp,tls"),value:"tcp,tls"},{label:u("form.protocols.tcp,tls,udp"),value:"tcp,tls,udp"},{label:u("form.protocols.tls_passthrough"),value:"tls_passthrough"},{label:u("form.protocols.udp"),value:"udp"},...p.isWsSupported?[{label:u("form.protocols.ws"),value:"ws"},{label:u("form.protocols.wss"),value:"wss"},{label:u("form.protocols.ws,wss"),value:"ws,wss"}]:[]]),g=e.computed(()=>p.recordFlavor?p.recordFlavor:a.value),V=(h,_)=>{if(!new Set(ce[p.protocols]).has(h))return[];if([o.PATHS,o.HOSTS,o.METHODS,o.SNIS].includes(h))return[..._].filter(D=>!!D);if(h===o.SOURCES||h===o.DESTINATIONS)return[..._].filter(D=>!!D.ip).map(D=>({...D,port:!D.port&&D.port!==0?null:D.port}));if(h===o.HEADERS)return[..._].filter(D=>!!D.header)},w=h=>h.some(_=>p.protocols.includes(_)),s=()=>{if(g.value!==O.TRADITIONAL)return null;const h=f.value,_=V(o.HEADERS,h.headers||[])||M[o.HEADERS];return _.length===0?null:_.reduce((b,D)=>(b[D.header]=D.values.split(","),b),{})},d=e.computed(()=>(f.value.methods||[]).filter(b=>Object.keys(Q).includes(b)).concat(n.value.map(b=>b.label.toUpperCase()))),S=h=>h!=null&&h.length?h:null,A=e.computed(()=>({https_redirect_status_code:f.value.https_redirect_status_code,strip_path:w(["http","https","ws","wss"])?f.value.strip_path:!1,preserve_host:f.value.preserve_host,request_buffering:f.value.request_buffering,response_buffering:f.value.response_buffering})),P=e.computed(()=>{switch(g.value){case O.TRADITIONAL:{const h=f.value,_=S(V(o.PATHS,h.paths||[])),b=S(V(o.HOSTS,h.hosts||[])),D={...A.value,methods:S(V(o.METHODS,d.value)),hosts:t.value==="basic"&&b?b.slice(0,1):b,paths:t.value==="basic"&&_?_.slice(0,1):_,headers:t.value==="basic"?null:s(),regex_priority:Number(h.regex_priority),path_handling:h.path_handling,sources:S(V(o.SOURCES,h.sources||[])),destinations:S(V(o.DESTINATIONS,h.destinations||[])),snis:t.value==="basic"?null:S(V(o.SNIS,h.snis||[]))};return{type:g.value,payload:D}}case O.EXPRESSIONS:{const h=f.value;return{type:g.value,payload:{...A.value,expression:h.expression,priority:Number(h.priority)}}}default:return}}),$=h=>{h&&E("update:protocols",h)};return e.watch([()=>p.recordFlavor,()=>p.routeFlavors],([h,_])=>{if(h){a.value=h;return}a.value=!_.traditional&&_.expressions?O.EXPRESSIONS:O.TRADITIONAL},{immediate:!0,deep:!0}),e.watch(t,h=>{h==="basic"&&(a.value=O.TRADITIONAL,E("update:protocols","http,https"))}),e.watch(P,h=>{E("update:payload",h)},{deep:!0,immediate:!0}),(h,_)=>{const b=e.resolveComponent("KRadio"),D=e.resolveComponent("KLabel"),ie=e.resolveComponent("KTooltip"),de=e.resolveComponent("KSegmentedControl"),U=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]=B=>t.value=B),card:"","card-orientation":"horizontal","data-testid":"route-form-config-type-basic",description:e.unref(u)("form.config_types.basic.description"),disabled:!h.routeFlavors.traditional||h.recordFlavor===e.unref(O).EXPRESSIONS,label:e.unref(u)("form.config_types.basic.label"),"selected-value":"basic"},null,8,["modelValue","description","disabled","label"]),e.createVNode(b,{modelValue:t.value,"onUpdate:modelValue":_[1]||(_[1]=B=>t.value=B),card:"","card-orientation":"horizontal","data-testid":"route-form-config-type-advanced",description:e.unref(u)("form.config_types.advanced.description"),label:e.unref(u)("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":n.value,"onUpdate:customMethods":_[2]||(_[2]=B=>n.value=B),fields:f.value,"onUpdate:fields":_[3]||(_[3]=B=>f.value=B),"config-type":"basic","hide-advanced":"",protocols:h.protocols,readonly:h.readonly},null,8,["custom-methods","fields","protocols","readonly"])):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[h.routeFlavors.traditional&&h.routeFlavors.expressions?(e.openBlock(),e.createElementBlock("div",dt,[e.createVNode(D,{class:"config-flavor-label"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(u)("form.config_flavor.label")),1)]),_:1}),e.createVNode(de,{modelValue:a.value,"onUpdate:modelValue":_[4]||(_[4]=B=>a.value=B),class:"config-flavor-control","data-testid":"route-form-config-flavor",options:m},{"option-label":e.withCtx(({option:B})=>{var Y,z;return[e.createElementVNode("span",null,e.toDisplayString(B.label),1),(Y=h.tooltips)!=null&&Y[B.value]?(e.openBlock(),e.createBlock(ie,{key:0,class:"route-form-config-tabs-tooltip",text:(z=h.tooltips)==null?void 0:z[B.value],"tooltip-id":`route-form-config-tabs-tooltip-${B.value}`},{default:e.withCtx(()=>[e.createVNode(e.unref(X.InfoIcon))]),_:2},1032,["text","tooltip-id"])):e.createCommentVNode("",!0)]}),_:1},8,["modelValue"])])):e.createCommentVNode("",!0),h.routeFlavors.traditional&&h.routeFlavors.expressions&&(!h.recordFlavor||h.recordFlavor!==a.value)?(e.openBlock(),e.createBlock(U,{key:1,appearance:h.recordFlavor?"warning":"info",class:"route-form-config-type-immutable-alert","data-testid":"route-config-type-immutable-alert"},{default:e.withCtx(()=>[h.recordFlavor?h.recordFlavor!==a.value?(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createTextVNode(e.toDisplayString(e.unref(u)("form.warning.cannotChangeFlavor.edit",{format:e.unref(u)(`form.flavors.${h.recordFlavor}`)})),1)],64)):e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createTextVNode(e.toDisplayString(e.unref(u)("form.warning.cannotChangeFlavor.create")),1)],64))]),_:1},8,["appearance"])):e.createCommentVNode("",!0),!h.recordFlavor||!(h.routeFlavors.traditional&&h.routeFlavors.expressions&&h.recordFlavor!==a.value)?(e.openBlock(),e.createElementBlock(e.Fragment,{key:2},[h.hideProtocols?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(re,{key:0,"data-testid":"route-form-protocols",items:c.value,label:e.unref(u)("form.fields.protocols.label"),"label-attributes":{info:e.unref(u)("form.fields.protocols.tooltip"),tooltipAttributes:{maxWidth:"400"}},"model-value":h.protocols,readonly:h.readonly,required:"",width:"100%","onUpdate:modelValue":$},null,8,["items","label","label-attributes","model-value","readonly"])),a.value===e.unref(O).TRADITIONAL?(e.openBlock(),e.createBlock(Ne,{key:1,"custom-methods":n.value,"onUpdate:customMethods":_[5]||(_[5]=B=>n.value=B),fields:f.value,"onUpdate:fields":_[6]||(_[6]=B=>f.value=B),"config-type":"advanced",protocols:h.protocols,readonly:h.readonly},null,8,["custom-methods","fields","protocols","readonly"])):(e.openBlock(),e.createBlock(at,{key:2,fields:f.value,"onUpdate:fields":_[7]||(_[7]=B=>f.value=B),protocols:h.protocols,readonly:h.readonly,"show-expressions-modal-entry":h.showExpressionsModalEntry,onNotify:_[8]||(_[8]=B=>E("notify",B))},null,8,["fields","protocols","readonly","show-expressions-modal-entry"]))],64)):e.createCommentVNode("",!0)],64))],64)}}}),[["__scopeId","data-v-893fc5e4"]]),ct=r=>{var p,t,a,f,n,E;return!(typeof r.expression=="string"&&r.expression.length>0||(r.protocols||[]).sort().join(",")!=="http,https"||((p=r[o.PATHS])==null?void 0:p.length)>1||((t=r[o.HOSTS])==null?void 0:t.length)>1||((a=r[o.HEADERS])==null?void 0:a.length)>0||((f=r[o.SNIS])==null?void 0:f.length)>0||((n=r[o.SOURCES])==null?void 0:n.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(u=>r[u]!==Ce[u]))},pt={class:"kong-ui-entities-route-form"},ut={key:1},ft={"data-testid":"no-search-results"},mt={class:"route-form-service-dropdown-item"},ht={class:"select-item-label"},gt={class:"select-item-description"},yt=F(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:I,emit:p}){var se;const t=r,a=p,f=e.ref("basic"),n=e.ref(!t.routeFlavors.traditional&&t.routeFlavors.expressions?O.EXPRESSIONS:O.TRADITIONAL),E=e.ref(void 0),u=e.computed(()=>{if(E.value)return E.value;if(n.value)return n.value;if(t.routeFlavors.traditional)return O.TRADITIONAL;if(t.routeFlavors.expressions)return O.EXPRESSIONS}),{i18n:{t:m}}=H.useI18n(),c=Te.useRouter(),{axiosInstance:g}=N.useAxios((se=t.config)==null?void 0:se.axiosRequestConfig),{getMessageFromError:V}=N.useErrors(),w=l=>l.name?`${l.name} - ${l.value}`:l.value,s=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=>{s.routeFlavors=l,l.traditional||(f.value="advanced")},{immediate:!0,deep:!0});const d=e.ref(),S=e.ref([]),A=e.ref([]),P=e.reactive({name:"",protocols:"http,https",tags:"",service_id:"",...ae,path_handling:"v0",regex_priority:0,expression:"",priority:0}),$=t.config.app==="konnect"||N.useGatewayFeatureSupported({gatewayInfo:t.config.gatewayInfo,supportedRange:{enterprise:["3.0"]}}),h=e.computed(()=>t.routeId?N.EntityBaseFormType.Edit:N.EntityBaseFormType.Create),_=e.computed(()=>{var l,i,y;return(y=(i=ee.form[(l=t.config)==null?void 0:l.app])==null?void 0:i.fetch)==null?void 0:y[t.serviceId?"forGatewayService":"all"].replace(/{serviceId}/gi,t.serviceId||"")}),b=()=>{var l;c.push((l=t.config)==null?void 0:l.cancelRoute)},D=l=>{a("loading",l)},ie=l=>{a("error",l)},de=l=>Object.entries(l).map(i=>{var y;return{header:i[0],values:(y=i[1])==null?void 0:y.join()}}),U=l=>l.some(i=>s.fields.protocols.includes(i)),re=l=>{var y,k;if(t.routeId){const T=typeof l.expression=="string"&&l.expression.length>0?O.EXPRESSIONS:O.TRADITIONAL;E.value=T,ct(l)||(f.value="advanced")}(y=l==null?void 0:l.service)!=null&&y.id&&(s.fields.service_id=l.service.id),s.fields.name=(l==null?void 0:l.name)||"";const i=(l==null?void 0:l.tags)||[];s.fields.tags=(i==null?void 0:i.join(", "))||"",s.fields.preserve_host=typeof(l==null?void 0:l.preserve_host)>"u"?!1:l==null?void 0:l.preserve_host,s.fields.https_redirect_status_code=(l==null?void 0:l.https_redirect_status_code)||426,(k=l==null?void 0:l.protocols)!=null&&k.length&&(l.protocols.length>1?s.fields.protocols=l.protocols.join():s.fields.protocols=l.protocols[0]),s.fields.request_buffering=typeof(l==null?void 0:l.request_buffering)>"u"?!0:l==null?void 0:l.request_buffering,s.fields.response_buffering=typeof(l==null?void 0:l.response_buffering)>"u"?!0:l==null?void 0:l.response_buffering,s.fields.strip_path=typeof(l==null?void 0:l.strip_path)>"u"?!0:l==null?void 0:l.strip_path,ue(s)&&(s.fields.regex_priority=(l==null?void 0:l.regex_priority)||0,s.fields.path_handling=(l==null?void 0:l.path_handling)||"v0",l!=null&&l.paths&&(s.fields.paths=l.paths),l!=null&&l.snis&&(s.fields.snis=l.snis),l!=null&&l.hosts&&(s.fields.hosts=l.hosts),l!=null&&l.methods&&(s.fields.methods=l.methods.filter(T=>Object.keys(Q).includes(T)),S.value=l.methods.filter(T=>!Object.keys(Q).includes(T)).map(T=>({label:T,value:T})),A.value=[...S.value]),l!=null&&l.headers&&(s.fields.headers=de(l.headers)),l!=null&&l.sources&&(s.fields.sources=l.sources),l!=null&&l.destinations&&(s.fields.destinations=l.destinations)),fe(s)&&(s.fields.expression=(l==null?void 0:l.expression)||"",s.fields.priority=(l==null?void 0:l.priority)||0),Object.assign(P,JSON.parse(JSON.stringify(s.fields)))},B=e.computed(()=>{switch(u.value){case O.TRADITIONAL:{if(ue(s)){const l=s.fields.hosts?!!s.fields.hosts.filter(Boolean).length:null,i=s.fields.paths?!!s.fields.paths.filter(Boolean).length:null,y=s.fields.headers?s.fields.headers.some(({header:j})=>!!j):null,k=s.fields.snis?!!s.fields.snis.filter(Boolean).length:null,T=s.fields.destinations?s.fields.destinations.some(({ip:j})=>!!j):null,q=s.fields.sources?s.fields.sources.some(({ip:j})=>!!j):null,G=s.fields.methods?!!s.fields.methods.filter(Boolean).length:null;return!!s.fields.protocols&&(U(["http"])&&!!(l||G||i||y)||U(["https"])&&!!(l||G||i||y||k)||U(["grpc"])&&!!(l||i||y)||U(["grpcs","wss"])&&!!(l||i||y||k)||U(["udp","tls"])&&!!(T||q||k)||U(["tcp"])&&!!(T||q)||U(["tls_passthrough"])&&!!k||U(["ws"])&&!!(l||i||y))}break}case O.EXPRESSIONS:{if(fe(s))return s.fields.expression.length>0;break}}return!0}),Y=e.computed(()=>!_e(s.fields,P)||!_e(S.value,A.value)),z=e.computed(()=>{var i,y;let l=`${t.config.apiBaseUrl}${ee.form[t.config.app][h.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,(y=t.config)!=null&&y.workspace?`/${t.config.workspace}`:"").replace(/{serviceId}/gi,t.serviceId||"")),l=l.replace(/{id}/gi,t.routeId),l});e.watch(()=>s.fields,()=>{a("model-updated",Z.value)},{deep:!0});const Z=e.computed(()=>{var l,i,y;return{...!t.hideNameField&&{name:s.fields.name||null},protocols:s.fields.protocols.split(","),tags:(i=(l=s.fields.tags.split(","))==null?void 0:l.map(k=>String(k||"").trim()))==null?void 0:i.filter(k=>k!==""),service:s.fields.service_id?{id:s.fields.service_id}:null,...(y=d.value)==null?void 0:y.payload}}),W=l=>{switch(u.value){case O.TRADITIONAL:{if(!("regex_priority"in l&&"path_handling"in l))return!1;break}case O.EXPRESSIONS:{if(!("priority"in l))return!1;break}}return"service"in l&&"tags"in l&&"protocols"in l},v=async l=>{var y;const i=l&&W(l)?l:Z.value;try{s.isReadonly=!0;let k;h.value==="create"?k=await g.post(z.value,i):h.value==="edit"&&(k=((y=t.config)==null?void 0:y.app)==="konnect"?await g.put(z.value,i):await g.patch(z.value,i)),re(k==null?void 0:k.data),a("update",k==null?void 0:k.data)}catch(k){s.errorMessage=V(k),a("error",k)}finally{s.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?m("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():s.fields.service_id=t.serviceId}),e.onMounted(()=>{a("model-updated",Z.value)}),I({saveFormData:v,payload:Z}),e.provide("configType",f),(l,i)=>{const y=e.resolveComponent("KInput"),k=e.resolveComponent("KSelect");return e.openBlock(),e.createElementBlock("div",pt,[e.createVNode(e.unref(N.EntityBaseForm),{"can-submit":B.value&&Y.value,config:r.config,"edit-id":r.routeId,"entity-type":e.unref(N.SupportedEntityType).Route,"error-message":s.errorMessage||Se.value,"fetch-url":_.value,"form-fields":Z.value,"is-readonly":s.isReadonly,onCancel:b,"onFetch:error":ie,"onFetch:success":re,onLoading:D,onSubmit:v},{"form-actions":e.withCtx(()=>[e.renderSlot(l.$slots,"form-actions",{canSubmit:B.value&&Y.value,cancel:b,submit:v},void 0,!0)]),default:e.withCtx(()=>[e.createVNode(e.unref(N.EntityFormSection),{description:e.unref(m)("form.sections.general.description"),"hide-info-header":r.hideSectionsInfo,title:e.unref(m)("form.sections.general.title")},{default:e.withCtx(()=>[r.hideNameField?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(y,{key:0,modelValue:s.fields.name,"onUpdate:modelValue":i[0]||(i[0]=T=>s.fields.name=T),modelModifiers:{trim:!0},autocomplete:"off","data-testid":"route-form-name",label:e.unref(m)("form.fields.name.label"),placeholder:e.unref(m)("form.fields.name.placeholder"),readonly:s.isReadonly,type:"text"},null,8,["modelValue","label","placeholder","readonly"])),!r.hideServiceField&&!r.serviceId?(e.openBlock(),e.createElementBlock("div",ut,[e.createVNode(k,{modelValue:s.fields.service_id,"onUpdate:modelValue":i[1]||(i[1]=T=>s.fields.service_id=T),clearable:"","data-testid":"route-form-service-id","enable-filtering":"","filter-function":()=>!0,items:be.value,label:e.unref(m)("form.fields.service_id.label"),loading:e.unref(pe),placeholder:e.unref(m)("form.fields.service_id.placeholder"),readonly:s.isReadonly,"reuse-item-template":"",width:"100%",onQueryChange:e.unref(le)},{loading:e.withCtx(()=>[e.createElementVNode("div",null,e.toDisplayString(e.unref(m)("actions.loading")),1)]),empty:e.withCtx(()=>[e.createElementVNode("div",ft,e.toDisplayString(e.unref(m)("search.no_results")),1)]),"selected-item-template":e.withCtx(({item:T})=>[e.createTextVNode(e.toDisplayString(w(T)),1)]),"item-template":e.withCtx(({item:T})=>[e.createElementVNode("div",mt,[e.createElementVNode("span",ht,e.toDisplayString(T.name),1),e.createElementVNode("span",gt,e.toDisplayString(T.value),1)])]),_:1},8,["modelValue","items","label","loading","placeholder","readonly","onQueryChange"])])):e.createCommentVNode("",!0),e.createVNode(y,{modelValue:s.fields.tags,"onUpdate:modelValue":i[2]||(i[2]=T=>s.fields.tags=T),modelModifiers:{trim:!0},autocomplete:"off","data-testid":"route-form-tags",help:e.unref(m)("form.fields.tags.help"),label:e.unref(m)("form.fields.tags.label"),placeholder:e.unref(m)("form.fields.tags.placeholder"),readonly:s.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(m)("form.sections.config.description"),"hide-info-header":r.hideSectionsInfo,title:e.unref(m)("form.sections.config.title")},{default:e.withCtx(()=>[e.createVNode(Ie,{"config-flavor":n.value,"onUpdate:configFlavor":i[3]||(i[3]=T=>n.value=T),"config-type":f.value,"onUpdate:configType":i[4]||(i[4]=T=>f.value=T),"custom-methods":S.value,"onUpdate:customMethods":i[5]||(i[5]=T=>S.value=T),fields:s.fields,"onUpdate:fields":i[6]||(i[6]=T=>s.fields=T),"is-ws-supported":e.unref($),protocols:s.fields.protocols,readonly:s.isReadonly,"record-flavor":E.value,"route-flavors":r.routeFlavors,"show-expressions-modal-entry":r.showExpressionsModalEntry,tooltips:r.configTabTooltips,onNotify:i[7]||(i[7]=T=>a("notify",T)),"onUpdate:payload":i[8]||(i[8]=T=>d.value=T),"onUpdate:protocols":i[9]||(i[9]=T=>s.fields.protocols=T)},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"},Tt={key:1},Et={key:1},kt={key:1},Ct={class:"route-list-cell-expression"},Nt=F(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:I}){var l;const p=I,t=r,{i18n:{t:a,formatUnixTimeStamp:f}}=H.useI18n(),n=Te.useRouter(),{axiosInstance:E}=N.useAxios((l=t.config)==null?void 0:l.axiosRequestConfig),{handleStateChange:u,hasRecords:m}=N.useTableState(()=>P.value),c=e.computed(()=>m.value&&t.config.app==="konnect"),g=e.computed(()=>!t.enableV2EmptyStates&&t.config.app==="konnect"),V=e.computed(()=>!!t.config.serviceId),w=e.computed(()=>t.config.app!=="kongManager"||!!t.config.disableSorting),s={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}},d={columnVisibility:{created_at:!1}},S=s,A=e.computed(()=>{var y,k,T,q;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,((y=t.config)==null?void 0:y.controlPlaneId)||"").replace(/{serviceId}/gi,((k=t.config)==null?void 0:k.serviceId)||""):t.config.app==="kongManager"&&(i=i.replace(/\/{workspace}/gi,(T=t.config)!=null&&T.workspace?`/${t.config.workspace}`:"").replace(/{serviceId}/gi,((q=t.config)==null?void 0:q.serviceId)||"")),i}),P=e.ref(""),$=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:y,protocols:k,hosts:T,methods:q,paths:G,expression:j}=s,C={name:y,protocols:k,hosts:T,methods:q,paths:G,...t.hasExpressionColumn&&{expression:j}};return{isExactMatch:i,fields:C,schema:t.config.filterSchema}}),{fetcher:h,fetcherState:_,fetcherCacheKey:b}=N.useFetcher({...t.config,cacheIdentifier:t.cacheIdentifier},A.value),D=i=>i.headerKey==="expression"?{style:{maxWidth:"250px",overflowX:"hidden",textOverflow:"ellipsis"}}:{},ie=()=>{P.value=""},de=()=>{b.value++},U=e.ref(null),re=async(i,y)=>{const k=i.id;if(!await y(k)){p("copy:error",{entity:i,field:"id",message:a("errors.copy")});return}p("copy:success",{entity:i,field:"id",message:a("copy.success",{val:k})})},B=async(i,y)=>{const k=JSON.stringify(i);if(!await y(k)){p("copy:error",{entity:i,message:a("errors.copy")});return}p("copy:success",{entity:i,message:a("copy.success_brief")})},Y=async i=>{var k;await((k=t.canRetrieve)==null?void 0:k.call(t,i))&&n.push(t.config.getViewRoute(i.id))},z=i=>({label:a("actions.view"),to:t.config.getViewRoute(i)}),Z=i=>({label:a("actions.edit"),to:t.config.getEditRoute(i)}),W=e.ref(void 0),v=e.ref(!1),le=e.ref(!1),pe=e.ref(""),he=N.useDeleteUrlBuilder(t.config,A.value),ge=i=>{W.value=i,v.value=!0},ye=()=>{v.value=!1},Se=async()=>{var i,y,k;if((i=W.value)!=null&&i.id){le.value=!0;try{await E.delete(he(W.value.id)),le.value=!1,v.value=!1,b.value++,p("delete:success",W.value)}catch(T){pe.value=((k=(y=T.response)==null?void 0:y.data)==null?void 0:k.message)||T.message||a("errors.delete"),p("error",T)}finally{le.value=!1}}},be=()=>{n.push(t.config.createRoute)};e.watch(_,i=>{var y,k,T;if(i.status===N.FetcherStatus.Error){U.value={title:a("errors.general")},(T=(k=(y=i.error)==null?void 0:y.response)==null?void 0:k.data)!=null&&T.message&&(U.value.message=i.error.response.data.message),p("error",i.error);return}U.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,y)=>{const k=e.resolveComponent("KButton"),T=e.resolveComponent("KBadge"),q=e.resolveComponent("KTruncate"),G=e.resolveComponent("KDropdownItem"),j=e.resolveComponent("KClipboardProvider");return e.openBlock(),e.createElementBlock("div",St,[e.createVNode(e.unref(N.EntityBaseTable),{"cache-identifier":r.cacheIdentifier,"cell-attributes":D,"default-table-preferences":d,"disable-sorting":w.value,"empty-state-options":se.value,"enable-entity-actions":"","error-message":U.value,fetcher:e.unref(h),"fetcher-cache-key":e.unref(b),"pagination-type":"offset","preferences-storage-key":"kong-ui-entities-routes-list",query:P.value,"table-headers":e.unref(S),title:r.title,"title-tag":r.titleTag,onClearSearchInput:ie,"onClick:row":y[8]||(y[8]=C=>Y(C)),onSort:de,onState:e.unref(u)},e.createSlots({"toolbar-filter":e.withCtx(()=>[e.createVNode(e.unref(N.EntityFilter),{modelValue:P.value,"onUpdate:modelValue":y[0]||(y[0]=C=>P.value=C),config:$.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,[!V.value&&c.value?(e.openBlock(),e.createBlock(k,{key:0,appearance:"secondary",class:"open-learning-hub","data-testid":"routes-learn-more-button",icon:"",onClick:y[1]||(y[1]=C=>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(k,{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:C})=>[e.createElementVNode("b",null,e.toDisplayString(C??"-"),1)]),protocols:e.withCtx(({rowValue:C})=>[e.createVNode(q,null,{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(C,x=>(e.openBlock(),e.createBlock(T,{key:x,appearance:"neutral",onClick:y[4]||(y[4]=e.withModifiers(()=>{},["stop"]))},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(x),1)]),_:2},1024))),128))]),_:2},1024)]),hosts:e.withCtx(({rowValue:C})=>[(C==null?void 0:C.length)>0?(e.openBlock(),e.createBlock(q,{key:0},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(C,x=>(e.openBlock(),e.createBlock(T,{key:x,appearance:"neutral",tooltip:x,"truncation-tooltip":"",onClick:y[5]||(y[5]=e.withModifiers(()=>{},["stop"]))},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(x),1)]),_:2},1032,["tooltip"]))),128))]),_:2},1024)):(e.openBlock(),e.createElementBlock("span",Tt,"-"))]),methods:e.withCtx(({rowValue:C})=>[(C==null?void 0:C.length)>0?(e.openBlock(),e.createBlock(q,{key:0},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(C,x=>(e.openBlock(),e.createBlock(T,{key:x,appearance:Object.values(e.unref(Ve.BadgeMethodAppearances)).includes(x.toLowerCase())?x.toLowerCase():"custom",onClick:y[6]||(y[6]=e.withModifiers(()=>{},["stop"]))},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(x),1)]),_:2},1032,["appearance"]))),128))]),_:2},1024)):(e.openBlock(),e.createElementBlock("span",Et,"-"))]),paths:e.withCtx(({rowValue:C})=>[(C==null?void 0:C.length)>0?(e.openBlock(),e.createBlock(q,{key:0},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(C,x=>(e.openBlock(),e.createBlock(T,{key:x,appearance:"neutral",tooltip:x,"truncation-tooltip":"",onClick:y[7]||(y[7]=e.withModifiers(()=>{},["stop"]))},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(x),1)]),_:2},1032,["tooltip"]))),128))]),_:2},1024)):(e.openBlock(),e.createElementBlock("span",kt,"-"))]),tags:e.withCtx(({rowValue:C})=>[e.createVNode(e.unref(N.TableTags),{tags:C},null,8,["tags"])]),expression:e.withCtx(({rowValue:C})=>[e.createElementVNode("span",Ct,e.toDisplayString(C||"-"),1)]),created_at:e.withCtx(({rowValue:C})=>[e.createTextVNode(e.toDisplayString(e.unref(f)(C)),1)]),updated_at:e.withCtx(({row:C,rowValue:x})=>[e.createTextVNode(e.toDisplayString(e.unref(f)(x??C.created_at)),1)]),actions:e.withCtx(({row:C})=>[e.createVNode(j,null,{default:e.withCtx(({copyToClipboard:x})=>[e.createVNode(G,{"data-testid":"action-entity-copy-id",onClick:Vt=>re(C,x)},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(a)("actions.copy_id")),1)]),_:2},1032,["onClick"])]),_:2},1024),e.createVNode(j,null,{default:e.withCtx(({copyToClipboard:x})=>[e.createVNode(G,{"data-testid":"action-entity-copy-json",onClick:Vt=>B(C,x)},{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(C)},{default:e.withCtx(()=>[e.createVNode(G,{"data-testid":"action-entity-view","has-divider":"",item:z(C.id)},null,8,["item"])]),_:2},1032,["auth-function"]),e.createVNode(e.unref(N.PermissionsWrapper),{"auth-function":()=>r.canEdit(C)},{default:e.withCtx(()=>[e.createVNode(G,{"data-testid":"action-entity-edit",item:Z(C.id)},null,8,["item"])]),_:2},1032,["auth-function"]),e.createVNode(e.unref(N.PermissionsWrapper),{"auth-function":()=>r.canDelete(C)},{default:e.withCtx(()=>[e.createVNode(G,{danger:"","data-testid":"action-entity-delete","has-divider":"",onClick:x=>ge(C)},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(a)("actions.delete")),1)]),_:2},1032,["onClick"])]),_:2},1032,["auth-function"])]),_:2},[!e.unref(m)&&g.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(k,{appearance:"secondary",class:"open-learning-hub","data-testid":"routes-learn-more-button",icon:"",onClick:y[2]||(y[2]=C=>i.$emit("click:learn-more"))},{default:e.withCtx(()=>[e.createVNode(e.unref(X.BookIcon),{decorative:""})]),_:1})],8,["disabled"]))]),key:"0"}:void 0,!P.value&&r.enableV2EmptyStates&&r.config.app==="konnect"?{name:"empty-state",fn:e.withCtx(()=>{var C;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":y[3]||(y[3]=x=>i.$emit("click:learn-more"))},e.createSlots({image:e.withCtx(()=>[e.createElementVNode("div",_t,[e.createVNode(e.unref(X.ForwardIcon),{color:e.unref(De),size:e.unref($e)},null,8,["color","size"])])]),_:2},[(C=r.config)!=null&&C.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":W.value&&(W.value.name||W.value.id),"entity-type":e.unref(N.EntityTypes).Route,error:pe.value,title:e.unref(a)("delete.title"),visible:v.value,onCancel:ye,onProceed:Se},null,8,["action-pending","description","entity-name","entity-type","error","title","visible"])])}}}),[["__scopeId","data-v-e949a937"]]),It=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:I}){const{i18n:{t:p}}=H.useI18n(),t=r,a=e.useModel(r,"modelValue"),f=I,n=e.ref(!1),E=e.computed(()=>ne.PROTOCOL_TO_SCHEMA[t.protocol]),u=e.computed(()=>ne.HTTP_BASED_PROTOCOLS.includes(t.protocol??"")),m=e.computed(()=>{if(!(!t.showExpressionsModalEntry||u.value))return p("form.expression_playground.supported_protocols_hint",{protocols:ne.HTTP_BASED_PROTOCOLS.join(", ")})}),c=w=>{a.value=w,n.value=!1},g=w=>{f("notify",w)},V=()=>{u.value&&(n.value=!0)};return(w,s)=>{const d=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":s[0]||(s[0]=S=>a.value=S),schema:E.value},null,8,["modelValue","schema"])):e.createCommentVNode("",!0),e.createVNode(d,{placement:"bottom-start",text:m.value},{default:e.withCtx(()=>[w.showExpressionsModalEntry?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass({disabled:!u.value,"route-form-open-in-playground":!0}),"data-testid":"open-router-playground",onClick:V},[e.renderSlot(w.$slots,"default")],2)):e.createCommentVNode("",!0)]),_:3},8,["text"]),w.showExpressionsModalEntry&&u.value?(e.openBlock(),e.createBlock(e.unref(ne.RouterPlaygroundModal),{key:1,"initial-expression":a.value,"is-visible":n.value,onCancel:s[1]||(s[1]=S=>n.value=!1),onCommit:c,onNotify:g},null,8,["initial-expression","is-visible"])):e.createCommentVNode("",!0)],64)}}})},Symbol.toStringTag,{value:"Module"}));R.ExpressionsEditorState=J,R.HTTP_REDIRECT_STATUS_CODES=me,R.INITIAL_ROUTE_RULES_FIELDS=Ce,R.INITIAL_SHARED_ROUTE_RULES_FIELDS=ae,R.INITIAL_TRADITIONAL_ROUTE_RULES_VALUES=M,R.Methods=Q,R.PATH_HANDLING_OPTIONS=ke,R.PROTOCOLS_TO_ROUTE_RULES=ce,R.RouteConfigCard=xe,R.RouteFlavor=O,R.RouteForm=yt,R.RouteFormRulesComposer=Ie,R.RouteList=Nt,R.RoutingRulesEntities=o,R.stateHasExpressionsFlavor=fe,R.stateHasTraditionalFlavor=ue,Object.defineProperty(R,Symbol.toStringTag,{value:"Module"})});
|
|
1
|
+
(function(R,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):(R=typeof globalThis<"u"?globalThis:R||self,e(R["kong-ui-public-entities-routes"]={},R.Vue,R["kong-ui-public-entities-shared"],R.isEqual,R.VueRouter,R.KongIcons,R.Kongponents,R["kong-ui-public-expressions"],R["kong-ui-public-i18n"]))})(this,function(R,e,N,_e,Te,X,Ve,ne,Ee){"use strict";const L="/v2/control-planes/{controlPlaneId}/core-entities",K="/{workspace}",ee={list:{konnect:{all:`${L}/routes`,forGatewayService:`${L}/services/{serviceId}/routes`},kongManager:{all:`${K}/routes`,forGatewayService:`${K}/services/{serviceId}/routes`}},form:{konnect:{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}`}},kongManager:{services:`${K}/services`,create:{all:`${K}/routes`,forGatewayService:`${K}/services/{serviceId}/routes`},fetch:{all:`${K}/routes/{id}`,forGatewayService:`${K}/services/{serviceId}/routes/{id}`},edit:{all:`${K}/routes/{id}`,forGatewayService:`${K}/services/{serviceId}/routes/{id}`}}},item:{konnect:{getService:`${L}/services/{serviceId}`,all:`${L}/routes/{id}`,forGatewayService:`${L}/services/{serviceId}/routes/{id}`},kongManager:{getService:`${K}/services/{serviceId}`,all:`${K}/routes/{id}`,forGatewayService:`${K}/services/{serviceId}/routes/{id}`}}},Re={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."},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."},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."},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."},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."},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, such as `api.example.com`. Prefix with `~` to enable regex-based matching."},methods:{label:"Methods",placeholder:"Select methods",search_placeholder:"Search for a method or enter a custom method",singular:"method",tooltip:"Match specific 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`. Doesn't accept the `Host` header. Provide only one entry and prefix with `~` to enable regex-based matching.",name:{placeholder:"e.g. x-api-version"},values:{placeholder:"e.g. v1"}},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 we(){const r=Ee.createI18n("en-us",Re);return{i18n:r,i18nT:Ee.i18nTComponent(r)}}const H={useI18n:we},Be={class:"kong-ui-entities-route-entity-config-card"},Ae={key:2},xe=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:I}){var w;const p=I,t=r,{axiosInstance:a}=N.useAxios((w=t.config)==null?void 0:w.axiosRequestConfig),{i18n:{t:f}}=H.useI18n(),n=e.ref(""),E=e.ref(""),u=e.ref(!1),m=e.computed(()=>{var s,d;return(d=ee.item[(s=t.config)==null?void 0:s.app])==null?void 0:d[t.serviceId?"forGatewayService":"all"].replace(/{serviceId}/gi,t.serviceId)}),c=e.computed(()=>{var s;return(s=ee.item[t.config.app])==null?void 0:s.getService}),g=async s=>{var S,A,P;if(n.value=t.serviceId||((S=s==null?void 0:s.service)==null?void 0:S.id),p("fetch:success",s),!n.value)return;let d=`${t.config.apiBaseUrl}${c.value}`;t.config.app==="konnect"?d=d.replace(/{controlPlaneId}/gi,((A=t.config)==null?void 0:A.controlPlaneId)||"").replace(/{serviceId}/gi,n.value||""):t.config.app==="kongManager"&&(d=d.replace(/\/{workspace}/gi,(P=t.config)!=null&&P.workspace?`/${t.config.workspace}`:"").replace(/{serviceId}/gi,n.value||""));try{u.value=!0;const{data:$}=await a.get(d);E.value=($==null?void 0:$.name)||($==null?void 0:$.id)}catch($){p("fetch:error",$)}finally{u.value=!1}},V=e.ref({id:{},name:{tooltip:f("form.fields.name.tooltip")},created_at:{},updated_at:{},service:{label:f("form.fields.service.label"),section:N.ConfigurationSchemaSection.Basic,tooltip:f("form.fields.service.tooltip"),order:5},tags:{tooltip:f("form.fields.tags.tooltip"),order:6},protocols:{section:N.ConfigurationSchemaSection.Basic,tooltip:f("form.fields.protocols.tooltip"),type:N.ConfigurationSchemaType.BadgeTag,order:7},paths:{section:N.ConfigurationSchemaSection.Basic,tooltip:f("form.fields.paths.tooltip"),type:N.ConfigurationSchemaType.CopyBadge,order:8},hosts:{section:N.ConfigurationSchemaSection.Basic,tooltip:f("form.fields.hosts.tooltip"),type:N.ConfigurationSchemaType.CopyBadge,order:9},snis:{label:f("form.fields.snis.label"),tooltip:f("form.fields.snis.tooltip"),order:10},headers:{section:N.ConfigurationSchemaSection.Basic,tooltip:f("form.fields.headers.tooltip"),order:11},methods:{section:N.ConfigurationSchemaSection.Basic,tooltip:f("form.fields.methods.tooltip"),type:N.ConfigurationSchemaType.BadgeMethod,order:12},sources:{section:N.ConfigurationSchemaSection.Basic,tooltip:f("form.fields.sources.tooltip"),type:N.ConfigurationSchemaType.JsonArray,order:13},destinations:{section:N.ConfigurationSchemaSection.Basic,tooltip:f("form.fields.destinations.tooltip"),type:N.ConfigurationSchemaType.JsonArray,order:14},https_redirect_status_code:{tooltip:f("form.fields.https_redirect_status_code.tooltip"),order:1},regex_priority:{tooltip:f("form.fields.regex_priority.tooltip"),order:2},strip_path:{tooltip:f("form.fields.strip_path.tooltip"),order:3},preserve_host:{tooltip:f("form.fields.preserve_host.tooltip"),order:4},request_buffering:{tooltip:f("form.fields.request_buffering.tooltip"),order:5},response_buffering:{tooltip:f("form.fields.response_buffering.tooltip"),order:6},path_handling:{tooltip:f("form.fields.path_handling.tooltip"),order:7}});return(s,d)=>{const S=e.resolveComponent("KSkeleton");return e.openBlock(),e.createElementBlock("div",Be,[e.createVNode(e.unref(N.EntityBaseConfigCard),{config:r.config,"config-card-doc":r.configCardDoc,"config-schema":V.value,"entity-type":e.unref(N.SupportedEntityType).Route,"fetch-url":m.value,"hide-title":r.hideTitle,"onFetch:error":d[0]||(d[0]=A=>s.$emit("fetch:error",A)),"onFetch:success":g,onLoading:d[1]||(d[1]=A=>s.$emit("loading",A))},{service:e.withCtx(({row:A})=>[u.value?(e.openBlock(),e.createBlock(S,{key:0,"data-testid":"service-name-loader",type:"spinner"})):A.value&&A.value.id===n.value&&E.value?(e.openBlock(),e.createBlock(e.unref(N.InternalLinkItem),{key:1,item:{key:A.value.id,value:E.value,type:e.unref(N.ConfigurationSchemaType).LinkInternal},onNavigationClick:()=>s.$emit("navigation-click",A.value.id,"services")},null,8,["item","onNavigationClick"])):(e.openBlock(),e.createElementBlock("div",Ae,e.toDisplayString("-")))]),_:1},8,["config","config-card-doc","config-schema","entity-type","fetch-url","hide-title"])])}}});var O=(r=>(r.TRADITIONAL="traditional",r.EXPRESSIONS="expressions",r))(O||{}),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||{}),J=(r=>(r.LOADING="loading",r.ERROR="error",r.READY="ready",r))(J||{}),Q=(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))(Q||{});const ue=r=>r.routeFlavors.traditional===!0,fe=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}],ke=[{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},Ce={...ae,paths:[""],regex_priority:0,path_handling:"v0",expression:"",priority:0},Oe=e.defineComponent({__name:"RuleControlsAdd",props:{routingRulesEntity:{}},emits:["add"],setup(r,{emit:I}){const p=r,t=I,a=e.inject("configType","basic"),{i18n:{t:f}}=H.useI18n(),n=e.computed(()=>f(`form.fields.${p.routingRulesEntity}.add`));return(E,u)=>{const m=e.resolveComponent("KButton");return e.unref(a)!=="basic"?(e.openBlock(),e.createBlock(m,{key:0,appearance:"tertiary",class:"routing-rule-add-item-button","data-testid":`add-${E.routingRulesEntity}`,onClick:u[0]||(u[0]=c=>t("add"))},{default:e.withCtx(()=>[e.createVNode(e.unref(X.AddIcon)),e.createElementVNode("span",null,e.toDisplayString(n.value),1)]),_:1},8,["data-testid"])):e.createCommentVNode("",!0)}}}),F=(r,I)=>{const p=r.__vccOpts||r;for(const[t,a]of I)p[t]=a;return p},te=F(Oe,[["__scopeId","data-v-f1f4cfc9"]]),De="#00abd2",Me="#afb7c5",He="#0044f4",Pe="16px",$e="24px",oe=e.defineComponent({__name:"RuleControlsRemove",props:{disabled:{type:Boolean},routingRulesEntity:{}},emits:["remove"],setup(r,{emit:I}){const p=I,t=e.inject("configType","basic");return(a,f)=>{const n=e.resolveComponent("KButton");return e.unref(t)!=="basic"?(e.openBlock(),e.createBlock(n,{key:0,appearance:"tertiary","data-testid":`remove-${a.routingRulesEntity}`,disabled:a.disabled,icon:"",onClick:f[0]||(f[0]=E=>p("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=F(e.defineComponent({__name:"DestinationRules",props:{modelValue:{required:!0},modelModifiers:{}},emits:e.mergeModels(["add","remove"],["update:modelValue"]),setup(r,{emit:I}){const{i18n:{t:p}}=H.useI18n(),t=e.useModel(r,"modelValue"),a=I;return(f,n)=>{const E=e.resolveComponent("KLabel"),u=e.resolveComponent("KInput");return e.openBlock(),e.createElementBlock("div",Ue,[e.createVNode(E,{info:e.unref(p)("form.fields.destinations.tooltip")},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(p)("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,(m,c)=>(e.openBlock(),e.createElementBlock("div",{key:c,class:"routing-rule-input"},[e.createVNode(u,{modelValue:t.value[c].ip,"onUpdate:modelValue":g=>t.value[c].ip=g,modelModifiers:{trim:!0},"data-testid":`route-form-destinations-ip-input-${c+1}`,placeholder:e.unref(p)("form.fields.destinations.ip.placeholder")},null,8,["modelValue","onUpdate:modelValue","data-testid","placeholder"]),e.createVNode(u,{modelValue:t.value[c].port,"onUpdate:modelValue":g=>t.value[c].port=g,modelModifiers:{number:!0},"data-testid":`route-form-destinations-port-input-${c+1}`,max:"65535",min:"0",placeholder:e.unref(p)("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:g=>a("remove",c)},null,8,["disabled","routing-rules-entity","onRemove"])]))),128))]),_:1}),e.createVNode(te,{"routing-rules-entity":e.unref(o).DESTINATIONS,onAdd:n[0]||(n[0]=m=>a("add"))},null,8,["routing-rules-entity"])])}}}),[["__scopeId","data-v-7ce8d4bc"]]),Le={class:"routing-rule-container"},Ke=F(e.defineComponent({__name:"HeaderRules",props:{modelValue:{required:!0},modelModifiers:{}},emits:e.mergeModels(["add","remove"],["update:modelValue"]),setup(r,{emit:I}){const{i18n:{t:p}}=H.useI18n(),t=e.useModel(r,"modelValue"),a=I;return(f,n)=>{const E=e.resolveComponent("KLabel"),u=e.resolveComponent("KInput");return e.openBlock(),e.createElementBlock("div",Le,[e.createVNode(E,{info:e.unref(p)("form.fields.headers.tooltip")},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(p)("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,(m,c)=>(e.openBlock(),e.createElementBlock("div",{key:c,class:"routing-rule-input"},[e.createVNode(u,{modelValue:t.value[c].header,"onUpdate:modelValue":g=>t.value[c].header=g,modelModifiers:{trim:!0},"data-testid":`route-form-headers-name-input-${c+1}`,placeholder:e.unref(p)("form.fields.headers.name.placeholder")},null,8,["modelValue","onUpdate:modelValue","data-testid","placeholder"]),e.createVNode(u,{modelValue:t.value[c].values,"onUpdate:modelValue":g=>t.value[c].values=g,modelModifiers:{trim:!0},"data-testid":`route-form-headers-values-input-${c+1}`,placeholder:e.unref(p)("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:g=>a("remove",c)},null,8,["disabled","routing-rules-entity","onRemove"])]))),128))]),_:1}),e.createVNode(te,{"routing-rules-entity":e.unref(o).HEADERS,onAdd:n[0]||(n[0]=m=>a("add"))},null,8,["routing-rules-entity"])])}}}),[["__scopeId","data-v-cff322c5"]]),qe={class:"routing-rule-container"},Ge=F(e.defineComponent({__name:"HostRules",props:{modelValue:{required:!0},modelModifiers:{}},emits:e.mergeModels(["add","remove"],["update:modelValue"]),setup(r,{emit:I}){const{i18n:{t:p}}=H.useI18n(),t=e.useModel(r,"modelValue"),a=I,f=e.inject("configType","basic");return(n,E)=>{const u=e.resolveComponent("KLabel"),m=e.resolveComponent("KInput");return e.openBlock(),e.createElementBlock("div",qe,[e.createVNode(u,{info:e.unref(p)("form.fields.hosts.tooltip"),"tooltip-attributes":{maxWidth:"320"}},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(f)==="basic"?e.unref(p)("form.fields.hosts.label_singular"):e.unref(p)("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(f)==="basic"?t.value.slice(0,1):t.value,(c,g)=>(e.openBlock(),e.createElementBlock("div",{key:g,class:"routing-rule-input"},[e.createVNode(m,{modelValue:t.value[g],"onUpdate:modelValue":V=>t.value[g]=V,modelModifiers:{trim:!0},"data-testid":`route-form-hosts-input-${g+1}`,placeholder:e.unref(p)("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:V=>a("remove",g)},null,8,["disabled","routing-rules-entity","onRemove"])]))),128))]),_:1}),e.createVNode(te,{"routing-rules-entity":e.unref(o).HOSTS,onAdd:E[0]||(E[0]=c=>a("add"))},null,8,["routing-rules-entity"])])}}}),[["__scopeId","data-v-7cc12b60"]]),je={class:"routing-rule-container","data-testid":"route-form-methods"},We={class:"routing-rule-input"},Xe=F(e.defineComponent({__name:"MethodRules",props:{methods:{required:!0},methodsModifiers:{},customMethods:{required:!0},customMethodsModifiers:{}},emits:["update:methods","update:customMethods"],setup(r){const{i18n:{t:I}}=H.useI18n(),p=e.useModel(r,"methods"),t=e.useModel(r,"customMethods"),a=e.computed(()=>p.value.filter(m=>Object.keys(Q).includes(m)).concat(t.value.map(m=>m.value))),f=e.computed(()=>Object.keys(Q).map(m=>({label:m,value:m})).concat(t.value.map(m=>({label:m.label,value:m.value,custom:!0})))),n=m=>!f.value.map(c=>c.value.toLowerCase()).includes(m.toLowerCase()),E=(m,c)=>{c?t.value.push(m):t.value=t.value.filter(g=>g.value!==m.value)},u=m=>{p.value=m};return(m,c)=>{const g=e.resolveComponent("KLabel"),V=e.resolveComponent("KMultiselect");return e.openBlock(),e.createElementBlock("div",je,[e.createVNode(g,{info:e.unref(I)("form.fields.methods.tooltip"),"tooltip-attributes":{maxWidth:"320"}},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(I)("form.fields.methods.label")),1)]),_:1},8,["info"]),e.createElementVNode("div",We,[e.createVNode(V,{"enable-item-creation":"","item-creation-validator":n,items:f.value,"model-value":a.value,placeholder:e.unref(I)("form.fields.methods.placeholder"),"search-placeholder":e.unref(I)("form.fields.methods.search_placeholder"),onItemAdded:c[0]||(c[0]=w=>E(w,!0)),onItemRemoved:c[1]||(c[1]=w=>E(w,!1)),"onUpdate:modelValue":u},null,8,["items","model-value","placeholder","search-placeholder"])])])}}}),[["__scopeId","data-v-47795008"]]),ze={class:"routing-rule-container"},ve=F(e.defineComponent({__name:"PathRules",props:{modelValue:{required:!0},modelModifiers:{}},emits:e.mergeModels(["add","remove"],["update:modelValue"]),setup(r,{emit:I}){const{i18n:{t:p}}=H.useI18n(),t=e.useModel(r,"modelValue"),a=I,f=e.inject("configType","basic");return(n,E)=>{const u=e.resolveComponent("KLabel"),m=e.resolveComponent("KInput");return e.openBlock(),e.createElementBlock("div",ze,[e.createVNode(u,{info:e.unref(p)("form.fields.paths.tooltip"),"tooltip-attributes":{maxWidth:"320"}},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(f)==="basic"?e.unref(p)("form.fields.paths.label_singular"):e.unref(p)("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(f)==="basic"?t.value.slice(0,1):t.value,(c,g)=>(e.openBlock(),e.createElementBlock("div",{key:g,class:"routing-rule-input"},[e.createVNode(m,{modelValue:t.value[g],"onUpdate:modelValue":V=>t.value[g]=V,modelModifiers:{trim:!0},"data-testid":`route-form-paths-input-${g+1}`,placeholder:e.unref(p)("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:V=>a("remove",g)},null,8,["disabled","routing-rules-entity","onRemove"])]))),128))]),_:1}),e.createVNode(te,{"routing-rules-entity":e.unref(o).PATHS,onAdd:E[0]||(E[0]=c=>a("add"))},null,8,["routing-rules-entity"])])}}}),[["__scopeId","data-v-f672a51a"]]),Je={class:"routing-rule-container"},Qe=F(e.defineComponent({__name:"SniRules",props:{modelValue:{required:!0},modelModifiers:{}},emits:e.mergeModels(["add","remove"],["update:modelValue"]),setup(r,{emit:I}){const{i18n:{t:p}}=H.useI18n(),t=e.useModel(r,"modelValue"),a=I;return(f,n)=>{const E=e.resolveComponent("KLabel"),u=e.resolveComponent("KInput");return e.openBlock(),e.createElementBlock("div",Je,[e.createVNode(E,{info:e.unref(p)("form.fields.snis.tooltip"),"tooltip-attributes":{maxWidth:"320"}},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(p)("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,(m,c)=>(e.openBlock(),e.createElementBlock("div",{key:c,class:"routing-rule-input"},[e.createVNode(u,{modelValue:t.value[c],"onUpdate:modelValue":g=>t.value[c]=g,modelModifiers:{trim:!0},"data-testid":`route-form-snis-input-${c+1}`,placeholder:e.unref(p)("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:g=>a("remove",c)},null,8,["disabled","routing-rules-entity","onRemove"])]))),128))]),_:1}),e.createVNode(te,{"routing-rules-entity":e.unref(o).SNIS,onAdd:n[0]||(n[0]=m=>a("add"))},null,8,["routing-rules-entity"])])}}}),[["__scopeId","data-v-e52adc95"]]),Ye={class:"routing-rule-container"},Ze=F(e.defineComponent({__name:"SourceRules",props:{modelValue:{required:!0},modelModifiers:{}},emits:e.mergeModels(["add","remove"],["update:modelValue"]),setup(r,{emit:I}){const{i18n:{t:p}}=H.useI18n(),t=e.useModel(r,"modelValue"),a=I;return(f,n)=>{const E=e.resolveComponent("KLabel"),u=e.resolveComponent("KInput");return e.openBlock(),e.createElementBlock("div",Ye,[e.createVNode(E,{info:e.unref(p)("form.fields.sources.tooltip")},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(p)("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,(m,c)=>(e.openBlock(),e.createElementBlock("div",{key:c,class:"routing-rule-input"},[e.createVNode(u,{modelValue:t.value[c].ip,"onUpdate:modelValue":g=>t.value[c].ip=g,modelModifiers:{trim:!0},"data-testid":`route-form-sources-ip-input-${c+1}`,placeholder:e.unref(p)("form.fields.sources.ip.placeholder")},null,8,["modelValue","onUpdate:modelValue","data-testid","placeholder"]),e.createVNode(u,{modelValue:t.value[c].port,"onUpdate:modelValue":g=>t.value[c].port=g,modelModifiers:{number:!0},"data-testid":`route-form-sources-port-input-${c+1}`,max:"65535",min:"0",placeholder:e.unref(p)("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:g=>a("remove",c)},null,8,["disabled","routing-rules-entity","onRemove"])]))),128))]),_:1}),e.createVNode(te,{"routing-rules-entity":e.unref(o).SOURCES,onAdd:n[0]||(n[0]=m=>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=F(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:I,i18n:p,i18n:{t}}=H.useI18n(),a=p.source.form.protocols,f=r,n=e.useModel(r,"fields"),E=e.useModel(r,"customMethods"),u=s=>{switch(s){case o.PATHS:Array.isArray(n.value.paths)?n.value.paths.push([...M[o.PATHS]][0]):n.value.paths=[...M[o.PATHS]];break;case o.SNIS:Array.isArray(n.value.snis)?n.value.snis.push([...M[o.SNIS]][0]):n.value.snis=[...M[o.SNIS]];break;case o.HOSTS:Array.isArray(n.value.hosts)?n.value.hosts.push([...M[o.HOSTS]][0]):n.value.hosts=[...M[o.HOSTS]];break;case o.METHODS:n.value.methods||(n.value.methods={...M[o.METHODS]});break;case o.HEADERS:Array.isArray(n.value.headers)?n.value.headers.push({...M[o.HEADERS][0]}):n.value.headers=[{...M[o.HEADERS][0]}];break;case o.SOURCES:Array.isArray(n.value.sources)?n.value.sources.push({...M[o.SOURCES][0]}):n.value.sources=[{...M[o.SOURCES][0]}];break;case o.DESTINATIONS:Array.isArray(n.value.destinations)?n.value.destinations.push({...M[o.DESTINATIONS][0]}):n.value.destinations=[{...M[o.DESTINATIONS][0]}];break}},m=async(s,d)=>{if(typeof d<"u"){const S=n.value[s];if(Array.isArray(S)&&(S.splice(d,1),S.length>0))return}await e.nextTick(()=>{delete n.value[s]})},c=s=>s.some(d=>f.protocols.includes(d)),g=e.computed(()=>new Set(ce[f.protocols])),V=e.computed(()=>{if(c(["tls_passthrough"]))return[w(o.SNIS)];const s=(f.configType==="basic"?[o.PATHS,o.METHODS,o.HOSTS]:ce[f.protocols]).map(d=>w(d));return[[...s].splice(0,s.length-1).join(", "),s[s.length-1]]}),w=s=>{var S;return((S=p.source.form.fields[s])==null?void 0:S.singular)||""};return(s,d)=>{const S=e.resolveComponent("KCheckbox"),A=e.resolveComponent("KSelect"),P=e.resolveComponent("KInput"),$=e.resolveComponent("KCard");return e.openBlock(),e.createBlock($,null,{default:e.withCtx(()=>{var h;return[e.createElementVNode("span",et,[e.createVNode(e.unref(I),{keypath:"form.hint.rules_message"},{protocol:e.withCtx(()=>[e.createElementVNode("b",null,e.toDisplayString(e.unref(a)[s.protocols]),1)]),routingRules:e.withCtx(()=>[e.createVNode(e.unref(I),{keypath:V.value[1]?"form.hint.multiple_rules":"form.hint.single_rule"},{routingRules:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(V.value[0]),1)]),lastRoutingRule:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(V.value[1]),1)]),_:1},8,["keypath"])]),_:1}),s.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[n.value.paths&&g.value.has(e.unref(o).PATHS)?(e.openBlock(),e.createBlock(ve,{key:"paths-container",modelValue:n.value.paths,"onUpdate:modelValue":d[0]||(d[0]=b=>n.value.paths=b),onAdd:d[1]||(d[1]=b=>u(e.unref(o).PATHS)),onRemove:d[2]||(d[2]=b=>m(e.unref(o).PATHS,b))},null,8,["modelValue"])):e.createCommentVNode("",!0),c(["http","https","ws","wss"])?(e.openBlock(),e.createBlock(S,{key:1,modelValue:n.value.strip_path,"onUpdate:modelValue":d[3]||(d[3]=b=>n.value.strip_path=b),class:"route-form-strip-path","data-testid":"route-form-strip-path",disabled:!((_=n.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),n.value.methods&&g.value.has(e.unref(o).METHODS)?(e.openBlock(),e.createBlock(Xe,{key:"methods-container","custom-methods":E.value,"onUpdate:customMethods":d[4]||(d[4]=b=>E.value=b),methods:n.value.methods,"onUpdate:methods":d[5]||(d[5]=b=>n.value.methods=b)},null,8,["custom-methods","methods"])):e.createCommentVNode("",!0),n.value.hosts&&g.value.has(e.unref(o).HOSTS)?(e.openBlock(),e.createBlock(Ge,{key:"hosts-container",modelValue:n.value.hosts,"onUpdate:modelValue":d[6]||(d[6]=b=>n.value.hosts=b),onAdd:d[7]||(d[7]=b=>u(e.unref(o).HOSTS)),onRemove:d[8]||(d[8]=b=>m(e.unref(o).HOSTS,b))},null,8,["modelValue"])):e.createCommentVNode("",!0),n.value.headers&&s.configType==="advanced"&&g.value.has(e.unref(o).HEADERS)?(e.openBlock(),e.createBlock(Ke,{key:"headers-container",modelValue:n.value.headers,"onUpdate:modelValue":d[9]||(d[9]=b=>n.value.headers=b),onAdd:d[10]||(d[10]=b=>u(e.unref(o).HEADERS)),onRemove:d[11]||(d[11]=b=>m(e.unref(o).HEADERS,b))},null,8,["modelValue"])):e.createCommentVNode("",!0),n.value.sources&&g.value.has(e.unref(o).SOURCES)?(e.openBlock(),e.createBlock(Ze,{key:"sources-container",modelValue:n.value.sources,"onUpdate:modelValue":d[12]||(d[12]=b=>n.value.sources=b),onAdd:d[13]||(d[13]=b=>u(e.unref(o).SOURCES)),onRemove:d[14]||(d[14]=b=>m(e.unref(o).SOURCES,b))},null,8,["modelValue"])):e.createCommentVNode("",!0),n.value.destinations&&g.value.has(e.unref(o).DESTINATIONS)?(e.openBlock(),e.createBlock(Fe,{key:"destinations-container",modelValue:n.value.destinations,"onUpdate:modelValue":d[15]||(d[15]=b=>n.value.destinations=b),onAdd:d[16]||(d[16]=b=>u(e.unref(o).DESTINATIONS)),onRemove:d[17]||(d[17]=b=>m(e.unref(o).DESTINATIONS,b))},null,8,["modelValue"])):e.createCommentVNode("",!0),n.value.snis&&s.configType==="advanced"&&g.value.has(e.unref(o).SNIS)?(e.openBlock(),e.createBlock(Qe,{key:"snis-container",modelValue:n.value.snis,"onUpdate:modelValue":d[18]||(d[18]=b=>n.value.snis=b),onAdd:d[19]||(d[19]=b=>u(e.unref(o).SNIS)),onRemove:d[20]||(d[20]=b=>m(e.unref(o).SNIS,b))},null,8,["modelValue"])):e.createCommentVNode("",!0)]}),_:1}),s.hideAdvanced?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",ot,[(h=n.value.paths)!=null&&h.some(Boolean)?(e.openBlock(),e.createBlock(A,{key:0,modelValue:n.value.path_handling,"onUpdate:modelValue":d[21]||(d[21]=_=>n.value.path_handling=_),"data-testid":"route-form-path-handling",items:e.unref(ke),label:e.unref(t)("form.fields.path_handling.label"),"label-attributes":{info:e.unref(t)("form.fields.path_handling.tooltip"),tooltipAttributes:{maxWidth:"320"}},readonly:s.readonly,width:"100%"},null,8,["modelValue","items","label","label-attributes","readonly"])):e.createCommentVNode("",!0),e.createVNode(A,{modelValue:n.value.https_redirect_status_code,"onUpdate:modelValue":d[22]||(d[22]=_=>n.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:s.readonly,width:"100%"},null,8,["modelValue","items","label","label-attributes","readonly"]),e.createVNode(P,{modelValue:n.value.regex_priority,"onUpdate:modelValue":d[23]||(d[23]=_=>n.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:s.readonly,type:"number"},null,8,["modelValue","label","label-attributes","readonly"]),e.createVNode(S,{modelValue:n.value.preserve_host,"onUpdate:modelValue":d[24]||(d[24]=_=>n.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(S,{modelValue:n.value.request_buffering,"onUpdate:modelValue":d[25]||(d[25]=_=>n.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(S,{modelValue:n.value.response_buffering,"onUpdate:modelValue":d[26]||(d[26]=_=>n.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:I}){const{i18n:{t:p}}=H.useI18n(),t={render:()=>e.h("div",p("form.expressions_editor.loading"))},a={render:()=>e.h("div",p("form.expressions_editor.error"))},f=e.defineAsyncComponent({loader:async()=>Promise.resolve().then(()=>It),loadingComponent:t,errorComponent:a}),n=r,E=I,u=e.ref(J.LOADING),m=e.useModel(r,"modelValue"),c=g=>{m.value=g};return e.onMounted(async()=>{try{await(await import("@kong-ui-public/expressions")).asyncInit,u.value=J.READY}catch(g){u.value=J.ERROR,console.error(g)}}),(g,V)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[u.value===e.unref(J).ERROR?(e.openBlock(),e.createBlock(e.resolveDynamicComponent(a),{key:0,"data-testid":"route-form-expressions-editor-loader-error"})):u.value===e.unref(J).LOADING?(e.openBlock(),e.createBlock(e.resolveDynamicComponent(t),{key:1,"data-testid":"route-form-expressions-editor-loader-loading"})):(e.openBlock(),e.createBlock(e.unref(f),{key:2,modelValue:m.value,"onUpdate:modelValue":V[0]||(V[0]=w=>m.value=w),protocol:n.protocol,"show-expressions-modal-entry":g.showExpressionsModalEntry,onNotify:V[1]||(V[1]=w=>E("notify",w))},{default:e.withCtx(()=>[e.createVNode(e.unref(X.RocketIcon),{size:e.unref(Pe)},null,8,["size"]),e.createElementVNode("span",null,e.toDisplayString(e.unref(p)("form.expression_playground.test_link")),1)]),_:1},8,["modelValue","protocol","show-expressions-modal-entry"])),e.renderSlot(g.$slots,"after-editor",{expression:{value:m.value,update:c},state:u.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=F(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:I}){const{i18n:{t:p}}=H.useI18n(),t=r,a=e.useModel(r,"fields"),f=I,n=e.ref(!0),E=e.computed(()=>t.protocols.split(",")||[]),u=m=>m.some(c=>t.protocols.includes(c));return(m,c)=>{const g=e.resolveComponent("KCard"),V=e.resolveComponent("KSelect"),w=e.resolveComponent("KInput"),s=e.resolveComponent("KCheckbox"),d=e.resolveComponent("KCollapse");return e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createVNode(g,null,{title:e.withCtx(()=>[e.createElementVNode("div",lt,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(E.value,S=>(e.openBlock(),e.createElementBlock("span",{key:S,class:"protocol-title"},e.toDisplayString(S.toUpperCase()),1))),128)),e.createElementVNode("span",st,e.toDisplayString(e.unref(p)("form.sections.routingExpression.title")),1)])]),default:e.withCtx(()=>[e.createVNode(rt,{modelValue:a.value.expression,"onUpdate:modelValue":c[0]||(c[0]=S=>a.value.expression=S),protocol:E.value[0],"show-expressions-modal-entry":m.showExpressionsModalEntry,onNotify:c[1]||(c[1]=S=>f("notify",S))},{"after-editor":e.withCtx(S=>[e.renderSlot(m.$slots,"after-expressions-editor",{expression:S.expression,state:S.state},void 0,!0)]),_:3},8,["modelValue","protocol","show-expressions-modal-entry"])]),_:3}),e.createVNode(d,{modelValue:n.value,"onUpdate:modelValue":c[8]||(c[8]=S=>n.value=S),class:"route-form-advanced-fields-collapse","trigger-alignment":"leading","trigger-label":e.unref(p)("form.show_more")},{default:e.withCtx(()=>[e.createVNode(g,null,{default:e.withCtx(()=>[e.createElementVNode("div",nt,[e.createVNode(V,{modelValue:a.value.https_redirect_status_code,"onUpdate:modelValue":c[2]||(c[2]=S=>a.value.https_redirect_status_code=S),"data-testid":"route-form-http-redirect-status-code",items:e.unref(me),label:e.unref(p)("form.fields.https_redirect_status_code.label"),readonly:m.readonly,width:"100%"},null,8,["modelValue","items","label","readonly"]),e.createVNode(w,{modelValue:a.value.priority,"onUpdate:modelValue":c[3]||(c[3]=S=>a.value.priority=S),autocomplete:"off","data-testid":"route-form-priority",label:e.unref(p)("form.fields.priority.label"),"label-attributes":{info:e.unref(p)("form.fields.priority.tooltip"),tooltipAttributes:{maxWidth:"400"}},readonly:m.readonly,type:"number"},null,8,["modelValue","label","label-attributes","readonly"]),u(["http","https","ws","wss","tls","tcp","udp","tls_passthrough"])?(e.openBlock(),e.createBlock(s,{key:0,modelValue:a.value.strip_path,"onUpdate:modelValue":c[4]||(c[4]=S=>a.value.strip_path=S),"data-testid":"route-form-strip-path",label:e.unref(p)("form.fields.strip_path.label")},null,8,["modelValue","label"])):e.createCommentVNode("",!0),e.createVNode(s,{modelValue:a.value.preserve_host,"onUpdate:modelValue":c[5]||(c[5]=S=>a.value.preserve_host=S),"data-testid":"route-form-preserve-host",label:e.unref(p)("form.fields.preserve_host.label")},null,8,["modelValue","label"]),e.createVNode(s,{modelValue:a.value.request_buffering,"onUpdate:modelValue":c[6]||(c[6]=S=>a.value.request_buffering=S),"data-testid":"route-form-request-buffering",label:e.unref(p)("form.fields.request_buffering.label")},null,8,["modelValue","label"]),e.createVNode(s,{modelValue:a.value.response_buffering,"onUpdate:modelValue":c[7]||(c[7]=S=>a.value.response_buffering=S),"data-testid":"route-form-response-buffering",label:e.unref(p)("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"},Ie=F(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:I}){const p=r,t=e.useModel(r,"configType"),a=e.useModel(r,"configFlavor"),f=e.useModel(r,"fields"),n=e.useModel(r,"customMethods"),E=I,{i18n:{t:u}}=H.useI18n(),m=[{value:O.TRADITIONAL,label:u("form.flavors.traditional")},{value:O.EXPRESSIONS,label:u("form.flavors.expressions")}],c=e.computed(()=>[{label:u("form.protocols.grpc"),value:"grpc"},{label:u("form.protocols.grpcs"),value:"grpcs"},{label:u("form.protocols.grpc,grpcs"),value:"grpc,grpcs"},{label:u("form.protocols.http"),value:"http"},{label:u("form.protocols.https"),value:"https"},{label:u("form.protocols.http,https"),value:"http,https"},{label:u("form.protocols.tcp"),value:"tcp"},{label:u("form.protocols.tls"),value:"tls"},{label:u("form.protocols.tls,udp"),value:"tls,udp"},{label:u("form.protocols.tcp,udp"),value:"tcp,udp"},{label:u("form.protocols.tcp,tls"),value:"tcp,tls"},{label:u("form.protocols.tcp,tls,udp"),value:"tcp,tls,udp"},{label:u("form.protocols.tls_passthrough"),value:"tls_passthrough"},{label:u("form.protocols.udp"),value:"udp"},...p.isWsSupported?[{label:u("form.protocols.ws"),value:"ws"},{label:u("form.protocols.wss"),value:"wss"},{label:u("form.protocols.ws,wss"),value:"ws,wss"}]:[]]),g=e.computed(()=>p.recordFlavor?p.recordFlavor:a.value),V=(h,_)=>{if(!new Set(ce[p.protocols]).has(h))return[];if([o.PATHS,o.HOSTS,o.METHODS,o.SNIS].includes(h))return[..._].filter(D=>!!D);if(h===o.SOURCES||h===o.DESTINATIONS)return[..._].filter(D=>!!D.ip).map(D=>({...D,port:!D.port&&D.port!==0?null:D.port}));if(h===o.HEADERS)return[..._].filter(D=>!!D.header)},w=h=>h.some(_=>p.protocols.includes(_)),s=()=>{if(g.value!==O.TRADITIONAL)return null;const h=f.value,_=V(o.HEADERS,h.headers||[])||M[o.HEADERS];return _.length===0?null:_.reduce((b,D)=>(b[D.header]=D.values.split(","),b),{})},d=e.computed(()=>(f.value.methods||[]).filter(b=>Object.keys(Q).includes(b)).concat(n.value.map(b=>b.label.toUpperCase()))),S=h=>h!=null&&h.length?h:null,A=e.computed(()=>({https_redirect_status_code:f.value.https_redirect_status_code,strip_path:w(["http","https","ws","wss"])?f.value.strip_path:!1,preserve_host:f.value.preserve_host,request_buffering:f.value.request_buffering,response_buffering:f.value.response_buffering})),P=e.computed(()=>{switch(g.value){case O.TRADITIONAL:{const h=f.value,_=S(V(o.PATHS,h.paths||[])),b=S(V(o.HOSTS,h.hosts||[])),D={...A.value,methods:S(V(o.METHODS,d.value)),hosts:t.value==="basic"&&b?b.slice(0,1):b,paths:t.value==="basic"&&_?_.slice(0,1):_,headers:t.value==="basic"?null:s(),regex_priority:Number(h.regex_priority),path_handling:h.path_handling,sources:S(V(o.SOURCES,h.sources||[])),destinations:S(V(o.DESTINATIONS,h.destinations||[])),snis:t.value==="basic"?null:S(V(o.SNIS,h.snis||[]))};return{type:g.value,payload:D}}case O.EXPRESSIONS:{const h=f.value;return{type:g.value,payload:{...A.value,expression:h.expression,priority:Number(h.priority)}}}default:return}}),$=h=>{h&&E("update:protocols",h)};return e.watch([()=>p.recordFlavor,()=>p.routeFlavors],([h,_])=>{if(h){a.value=h;return}a.value=!_.traditional&&_.expressions?O.EXPRESSIONS:O.TRADITIONAL},{immediate:!0,deep:!0}),e.watch(t,h=>{h==="basic"&&(a.value=O.TRADITIONAL,E("update:protocols","http,https"))}),e.watch(P,h=>{E("update:payload",h)},{deep:!0,immediate:!0}),(h,_)=>{const b=e.resolveComponent("KRadio"),D=e.resolveComponent("KLabel"),ie=e.resolveComponent("KTooltip"),de=e.resolveComponent("KSegmentedControl"),U=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]=B=>t.value=B),card:"","card-orientation":"horizontal","data-testid":"route-form-config-type-basic",description:e.unref(u)("form.config_types.basic.description"),disabled:!h.routeFlavors.traditional||h.recordFlavor===e.unref(O).EXPRESSIONS,label:e.unref(u)("form.config_types.basic.label"),"selected-value":"basic"},null,8,["modelValue","description","disabled","label"]),e.createVNode(b,{modelValue:t.value,"onUpdate:modelValue":_[1]||(_[1]=B=>t.value=B),card:"","card-orientation":"horizontal","data-testid":"route-form-config-type-advanced",description:e.unref(u)("form.config_types.advanced.description"),label:e.unref(u)("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":n.value,"onUpdate:customMethods":_[2]||(_[2]=B=>n.value=B),fields:f.value,"onUpdate:fields":_[3]||(_[3]=B=>f.value=B),"config-type":"basic","hide-advanced":"",protocols:h.protocols,readonly:h.readonly},null,8,["custom-methods","fields","protocols","readonly"])):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[h.routeFlavors.traditional&&h.routeFlavors.expressions?(e.openBlock(),e.createElementBlock("div",dt,[e.createVNode(D,{class:"config-flavor-label"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(u)("form.config_flavor.label")),1)]),_:1}),e.createVNode(de,{modelValue:a.value,"onUpdate:modelValue":_[4]||(_[4]=B=>a.value=B),class:"config-flavor-control","data-testid":"route-form-config-flavor",options:m},{"option-label":e.withCtx(({option:B})=>{var Y,z;return[e.createElementVNode("span",null,e.toDisplayString(B.label),1),(Y=h.tooltips)!=null&&Y[B.value]?(e.openBlock(),e.createBlock(ie,{key:0,class:"route-form-config-tabs-tooltip",text:(z=h.tooltips)==null?void 0:z[B.value],"tooltip-id":`route-form-config-tabs-tooltip-${B.value}`},{default:e.withCtx(()=>[e.createVNode(e.unref(X.InfoIcon))]),_:2},1032,["text","tooltip-id"])):e.createCommentVNode("",!0)]}),_:1},8,["modelValue"])])):e.createCommentVNode("",!0),h.routeFlavors.traditional&&h.routeFlavors.expressions&&(!h.recordFlavor||h.recordFlavor!==a.value)?(e.openBlock(),e.createBlock(U,{key:1,appearance:h.recordFlavor?"warning":"info",class:"route-form-config-type-immutable-alert","data-testid":"route-config-type-immutable-alert"},{default:e.withCtx(()=>[h.recordFlavor?h.recordFlavor!==a.value?(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createTextVNode(e.toDisplayString(e.unref(u)("form.warning.cannotChangeFlavor.edit",{format:e.unref(u)(`form.flavors.${h.recordFlavor}`)})),1)],64)):e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createTextVNode(e.toDisplayString(e.unref(u)("form.warning.cannotChangeFlavor.create")),1)],64))]),_:1},8,["appearance"])):e.createCommentVNode("",!0),!h.recordFlavor||!(h.routeFlavors.traditional&&h.routeFlavors.expressions&&h.recordFlavor!==a.value)?(e.openBlock(),e.createElementBlock(e.Fragment,{key:2},[h.hideProtocols?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(re,{key:0,"data-testid":"route-form-protocols",items:c.value,label:e.unref(u)("form.fields.protocols.label"),"label-attributes":{info:e.unref(u)("form.fields.protocols.tooltip"),tooltipAttributes:{maxWidth:"400"}},"model-value":h.protocols,readonly:h.readonly,required:"",width:"100%","onUpdate:modelValue":$},null,8,["items","label","label-attributes","model-value","readonly"])),a.value===e.unref(O).TRADITIONAL?(e.openBlock(),e.createBlock(Ne,{key:1,"custom-methods":n.value,"onUpdate:customMethods":_[5]||(_[5]=B=>n.value=B),fields:f.value,"onUpdate:fields":_[6]||(_[6]=B=>f.value=B),"config-type":"advanced",protocols:h.protocols,readonly:h.readonly},null,8,["custom-methods","fields","protocols","readonly"])):(e.openBlock(),e.createBlock(at,{key:2,fields:f.value,"onUpdate:fields":_[7]||(_[7]=B=>f.value=B),protocols:h.protocols,readonly:h.readonly,"show-expressions-modal-entry":h.showExpressionsModalEntry,onNotify:_[8]||(_[8]=B=>E("notify",B))},null,8,["fields","protocols","readonly","show-expressions-modal-entry"]))],64)):e.createCommentVNode("",!0)],64))],64)}}}),[["__scopeId","data-v-893fc5e4"]]),ct=r=>{var p,t,a,f,n,E;return!(typeof r.expression=="string"&&r.expression.length>0||(r.protocols||[]).sort().join(",")!=="http,https"||((p=r[o.PATHS])==null?void 0:p.length)>1||((t=r[o.HOSTS])==null?void 0:t.length)>1||((a=r[o.HEADERS])==null?void 0:a.length)>0||((f=r[o.SNIS])==null?void 0:f.length)>0||((n=r[o.SOURCES])==null?void 0:n.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(u=>r[u]!==Ce[u]))},pt={class:"kong-ui-entities-route-form"},ut={key:1},ft={"data-testid":"no-search-results"},mt={class:"route-form-service-dropdown-item"},ht={class:"select-item-label"},gt={class:"select-item-description"},yt=F(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:I,emit:p}){var se;const t=r,a=p,f=e.ref("basic"),n=e.ref(!t.routeFlavors.traditional&&t.routeFlavors.expressions?O.EXPRESSIONS:O.TRADITIONAL),E=e.ref(void 0),u=e.computed(()=>{if(E.value)return E.value;if(n.value)return n.value;if(t.routeFlavors.traditional)return O.TRADITIONAL;if(t.routeFlavors.expressions)return O.EXPRESSIONS}),{i18n:{t:m}}=H.useI18n(),c=Te.useRouter(),{axiosInstance:g}=N.useAxios((se=t.config)==null?void 0:se.axiosRequestConfig),{getMessageFromError:V}=N.useErrors(),w=l=>l.name?`${l.name} - ${l.value}`:l.value,s=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=>{s.routeFlavors=l,l.traditional||(f.value="advanced")},{immediate:!0,deep:!0});const d=e.ref(),S=e.ref([]),A=e.ref([]),P=e.reactive({name:"",protocols:"http,https",tags:"",service_id:"",...ae,path_handling:"v0",regex_priority:0,expression:"",priority:0}),$=t.config.app==="konnect"||N.useGatewayFeatureSupported({gatewayInfo:t.config.gatewayInfo,supportedRange:{enterprise:["3.0"]}}),h=e.computed(()=>t.routeId?N.EntityBaseFormType.Edit:N.EntityBaseFormType.Create),_=e.computed(()=>{var l,i,y;return(y=(i=ee.form[(l=t.config)==null?void 0:l.app])==null?void 0:i.fetch)==null?void 0:y[t.serviceId?"forGatewayService":"all"].replace(/{serviceId}/gi,t.serviceId||"")}),b=()=>{var l;c.push((l=t.config)==null?void 0:l.cancelRoute)},D=l=>{a("loading",l)},ie=l=>{a("error",l)},de=l=>Object.entries(l).map(i=>{var y;return{header:i[0],values:(y=i[1])==null?void 0:y.join()}}),U=l=>l.some(i=>s.fields.protocols.includes(i)),re=l=>{var y,k;if(t.routeId){const T=typeof l.expression=="string"&&l.expression.length>0?O.EXPRESSIONS:O.TRADITIONAL;E.value=T,ct(l)||(f.value="advanced")}(y=l==null?void 0:l.service)!=null&&y.id&&(s.fields.service_id=l.service.id),s.fields.name=(l==null?void 0:l.name)||"";const i=(l==null?void 0:l.tags)||[];s.fields.tags=(i==null?void 0:i.join(", "))||"",s.fields.preserve_host=typeof(l==null?void 0:l.preserve_host)>"u"?!1:l==null?void 0:l.preserve_host,s.fields.https_redirect_status_code=(l==null?void 0:l.https_redirect_status_code)||426,(k=l==null?void 0:l.protocols)!=null&&k.length&&(l.protocols.length>1?s.fields.protocols=l.protocols.join():s.fields.protocols=l.protocols[0]),s.fields.request_buffering=typeof(l==null?void 0:l.request_buffering)>"u"?!0:l==null?void 0:l.request_buffering,s.fields.response_buffering=typeof(l==null?void 0:l.response_buffering)>"u"?!0:l==null?void 0:l.response_buffering,s.fields.strip_path=typeof(l==null?void 0:l.strip_path)>"u"?!0:l==null?void 0:l.strip_path,ue(s)&&(s.fields.regex_priority=(l==null?void 0:l.regex_priority)||0,s.fields.path_handling=(l==null?void 0:l.path_handling)||"v0",l!=null&&l.paths&&(s.fields.paths=l.paths),l!=null&&l.snis&&(s.fields.snis=l.snis),l!=null&&l.hosts&&(s.fields.hosts=l.hosts),l!=null&&l.methods&&(s.fields.methods=l.methods.filter(T=>Object.keys(Q).includes(T)),S.value=l.methods.filter(T=>!Object.keys(Q).includes(T)).map(T=>({label:T,value:T})),A.value=[...S.value]),l!=null&&l.headers&&(s.fields.headers=de(l.headers)),l!=null&&l.sources&&(s.fields.sources=l.sources),l!=null&&l.destinations&&(s.fields.destinations=l.destinations)),fe(s)&&(s.fields.expression=(l==null?void 0:l.expression)||"",s.fields.priority=(l==null?void 0:l.priority)||0),Object.assign(P,JSON.parse(JSON.stringify(s.fields)))},B=e.computed(()=>{switch(u.value){case O.TRADITIONAL:{if(ue(s)){const l=s.fields.hosts?!!s.fields.hosts.filter(Boolean).length:null,i=s.fields.paths?!!s.fields.paths.filter(Boolean).length:null,y=s.fields.headers?s.fields.headers.some(({header:j})=>!!j):null,k=s.fields.snis?!!s.fields.snis.filter(Boolean).length:null,T=s.fields.destinations?s.fields.destinations.some(({ip:j})=>!!j):null,q=s.fields.sources?s.fields.sources.some(({ip:j})=>!!j):null,G=s.fields.methods?!!s.fields.methods.filter(Boolean).length:null;return!!s.fields.protocols&&(U(["http"])&&!!(l||G||i||y)||U(["https"])&&!!(l||G||i||y||k)||U(["grpc"])&&!!(l||i||y)||U(["grpcs","wss"])&&!!(l||i||y||k)||U(["udp","tls"])&&!!(T||q||k)||U(["tcp"])&&!!(T||q)||U(["tls_passthrough"])&&!!k||U(["ws"])&&!!(l||i||y))}break}case O.EXPRESSIONS:{if(fe(s))return s.fields.expression.length>0;break}}return!0}),Y=e.computed(()=>!_e(s.fields,P)||!_e(S.value,A.value)),z=e.computed(()=>{var i,y;let l=`${t.config.apiBaseUrl}${ee.form[t.config.app][h.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,(y=t.config)!=null&&y.workspace?`/${t.config.workspace}`:"").replace(/{serviceId}/gi,t.serviceId||"")),l=l.replace(/{id}/gi,t.routeId),l});e.watch(()=>s.fields,()=>{a("model-updated",Z.value)},{deep:!0});const Z=e.computed(()=>{var l,i,y;return{...!t.hideNameField&&{name:s.fields.name||null},protocols:s.fields.protocols.split(","),tags:(i=(l=s.fields.tags.split(","))==null?void 0:l.map(k=>String(k||"").trim()))==null?void 0:i.filter(k=>k!==""),service:s.fields.service_id?{id:s.fields.service_id}:null,...(y=d.value)==null?void 0:y.payload}}),W=l=>{switch(u.value){case O.TRADITIONAL:{if(!("regex_priority"in l&&"path_handling"in l))return!1;break}case O.EXPRESSIONS:{if(!("priority"in l))return!1;break}}return"service"in l&&"tags"in l&&"protocols"in l},v=async l=>{var y;const i=l&&W(l)?l:Z.value;try{s.isReadonly=!0;let k;h.value==="create"?k=await g.post(z.value,i):h.value==="edit"&&(k=((y=t.config)==null?void 0:y.app)==="konnect"?await g.put(z.value,i):await g.patch(z.value,i)),re(k==null?void 0:k.data),a("update",k==null?void 0:k.data)}catch(k){s.errorMessage=V(k),a("error",k)}finally{s.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?m("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():s.fields.service_id=t.serviceId}),e.onMounted(()=>{a("model-updated",Z.value)}),I({saveFormData:v,payload:Z}),e.provide("configType",f),(l,i)=>{const y=e.resolveComponent("KInput"),k=e.resolveComponent("KSelect");return e.openBlock(),e.createElementBlock("div",pt,[e.createVNode(e.unref(N.EntityBaseForm),{"can-submit":B.value&&Y.value,config:r.config,"edit-id":r.routeId,"entity-type":e.unref(N.SupportedEntityType).Route,"error-message":s.errorMessage||Se.value,"fetch-url":_.value,"form-fields":Z.value,"is-readonly":s.isReadonly,onCancel:b,"onFetch:error":ie,"onFetch:success":re,onLoading:D,onSubmit:v},{"form-actions":e.withCtx(()=>[e.renderSlot(l.$slots,"form-actions",{canSubmit:B.value&&Y.value,cancel:b,submit:v},void 0,!0)]),default:e.withCtx(()=>[e.createVNode(e.unref(N.EntityFormSection),{description:e.unref(m)("form.sections.general.description"),"hide-info-header":r.hideSectionsInfo,title:e.unref(m)("form.sections.general.title")},{default:e.withCtx(()=>[r.hideNameField?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(y,{key:0,modelValue:s.fields.name,"onUpdate:modelValue":i[0]||(i[0]=T=>s.fields.name=T),modelModifiers:{trim:!0},autocomplete:"off","data-testid":"route-form-name",label:e.unref(m)("form.fields.name.label"),placeholder:e.unref(m)("form.fields.name.placeholder"),readonly:s.isReadonly,type:"text"},null,8,["modelValue","label","placeholder","readonly"])),!r.hideServiceField&&!r.serviceId?(e.openBlock(),e.createElementBlock("div",ut,[e.createVNode(k,{modelValue:s.fields.service_id,"onUpdate:modelValue":i[1]||(i[1]=T=>s.fields.service_id=T),clearable:"","data-testid":"route-form-service-id","enable-filtering":"","filter-function":()=>!0,items:be.value,label:e.unref(m)("form.fields.service_id.label"),loading:e.unref(pe),placeholder:e.unref(m)("form.fields.service_id.placeholder"),readonly:s.isReadonly,"reuse-item-template":"",width:"100%",onQueryChange:e.unref(le)},{loading:e.withCtx(()=>[e.createElementVNode("div",null,e.toDisplayString(e.unref(m)("actions.loading")),1)]),empty:e.withCtx(()=>[e.createElementVNode("div",ft,e.toDisplayString(e.unref(m)("search.no_results")),1)]),"selected-item-template":e.withCtx(({item:T})=>[e.createTextVNode(e.toDisplayString(w(T)),1)]),"item-template":e.withCtx(({item:T})=>[e.createElementVNode("div",mt,[e.createElementVNode("span",ht,e.toDisplayString(T.name),1),e.createElementVNode("span",gt,e.toDisplayString(T.value),1)])]),_:1},8,["modelValue","items","label","loading","placeholder","readonly","onQueryChange"])])):e.createCommentVNode("",!0),e.createVNode(y,{modelValue:s.fields.tags,"onUpdate:modelValue":i[2]||(i[2]=T=>s.fields.tags=T),modelModifiers:{trim:!0},autocomplete:"off","data-testid":"route-form-tags",help:e.unref(m)("form.fields.tags.help"),label:e.unref(m)("form.fields.tags.label"),placeholder:e.unref(m)("form.fields.tags.placeholder"),readonly:s.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(m)("form.sections.config.description"),"hide-info-header":r.hideSectionsInfo,title:e.unref(m)("form.sections.config.title")},{default:e.withCtx(()=>[e.createVNode(Ie,{"config-flavor":n.value,"onUpdate:configFlavor":i[3]||(i[3]=T=>n.value=T),"config-type":f.value,"onUpdate:configType":i[4]||(i[4]=T=>f.value=T),"custom-methods":S.value,"onUpdate:customMethods":i[5]||(i[5]=T=>S.value=T),fields:s.fields,"onUpdate:fields":i[6]||(i[6]=T=>s.fields=T),"is-ws-supported":e.unref($),protocols:s.fields.protocols,readonly:s.isReadonly,"record-flavor":E.value,"route-flavors":r.routeFlavors,"show-expressions-modal-entry":r.showExpressionsModalEntry,tooltips:r.configTabTooltips,onNotify:i[7]||(i[7]=T=>a("notify",T)),"onUpdate:payload":i[8]||(i[8]=T=>d.value=T),"onUpdate:protocols":i[9]||(i[9]=T=>s.fields.protocols=T)},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"},Tt={key:1},Et={key:1},kt={key:1},Ct={class:"route-list-cell-expression"},Nt=F(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:I}){var l;const p=I,t=r,{i18n:{t:a,formatUnixTimeStamp:f}}=H.useI18n(),n=Te.useRouter(),{axiosInstance:E}=N.useAxios((l=t.config)==null?void 0:l.axiosRequestConfig),{handleStateChange:u,hasRecords:m}=N.useTableState(()=>P.value),c=e.computed(()=>m.value&&t.config.app==="konnect"),g=e.computed(()=>!t.enableV2EmptyStates&&t.config.app==="konnect"),V=e.computed(()=>!!t.config.serviceId),w=e.computed(()=>t.config.app!=="kongManager"||!!t.config.disableSorting),s={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}},d={columnVisibility:{created_at:!1}},S=s,A=e.computed(()=>{var y,k,T,q;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,((y=t.config)==null?void 0:y.controlPlaneId)||"").replace(/{serviceId}/gi,((k=t.config)==null?void 0:k.serviceId)||""):t.config.app==="kongManager"&&(i=i.replace(/\/{workspace}/gi,(T=t.config)!=null&&T.workspace?`/${t.config.workspace}`:"").replace(/{serviceId}/gi,((q=t.config)==null?void 0:q.serviceId)||"")),i}),P=e.ref(""),$=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:y,protocols:k,hosts:T,methods:q,paths:G,expression:j}=s,C={name:y,protocols:k,hosts:T,methods:q,paths:G,...t.hasExpressionColumn&&{expression:j}};return{isExactMatch:i,fields:C,schema:t.config.filterSchema}}),{fetcher:h,fetcherState:_,fetcherCacheKey:b}=N.useFetcher(e.computed(()=>({...t.config,cacheIdentifier:t.cacheIdentifier})),A),D=i=>i.headerKey==="expression"?{style:{maxWidth:"250px",overflowX:"hidden",textOverflow:"ellipsis"}}:{},ie=()=>{P.value=""},de=()=>{b.value++},U=e.ref(null),re=async(i,y)=>{const k=i.id;if(!await y(k)){p("copy:error",{entity:i,field:"id",message:a("errors.copy")});return}p("copy:success",{entity:i,field:"id",message:a("copy.success",{val:k})})},B=async(i,y)=>{const k=JSON.stringify(i);if(!await y(k)){p("copy:error",{entity:i,message:a("errors.copy")});return}p("copy:success",{entity:i,message:a("copy.success_brief")})},Y=async i=>{var k;await((k=t.canRetrieve)==null?void 0:k.call(t,i))&&n.push(t.config.getViewRoute(i.id))},z=i=>({label:a("actions.view"),to:t.config.getViewRoute(i)}),Z=i=>({label:a("actions.edit"),to:t.config.getEditRoute(i)}),W=e.ref(void 0),v=e.ref(!1),le=e.ref(!1),pe=e.ref(""),he=N.useDeleteUrlBuilder(t.config,A.value),ge=i=>{W.value=i,v.value=!0},ye=()=>{v.value=!1},Se=async()=>{var i,y,k;if((i=W.value)!=null&&i.id){le.value=!0;try{await E.delete(he(W.value.id)),le.value=!1,v.value=!1,b.value++,p("delete:success",W.value)}catch(T){pe.value=((k=(y=T.response)==null?void 0:y.data)==null?void 0:k.message)||T.message||a("errors.delete"),p("error",T)}finally{le.value=!1}}},be=()=>{n.push(t.config.createRoute)};e.watch(_,i=>{var y,k,T;if(i.status===N.FetcherStatus.Error){U.value={title:a("errors.general")},(T=(k=(y=i.error)==null?void 0:y.response)==null?void 0:k.data)!=null&&T.message&&(U.value.message=i.error.response.data.message),p("error",i.error);return}U.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,y)=>{const k=e.resolveComponent("KButton"),T=e.resolveComponent("KBadge"),q=e.resolveComponent("KTruncate"),G=e.resolveComponent("KDropdownItem"),j=e.resolveComponent("KClipboardProvider");return e.openBlock(),e.createElementBlock("div",St,[e.createVNode(e.unref(N.EntityBaseTable),{"cache-identifier":r.cacheIdentifier,"cell-attributes":D,"default-table-preferences":d,"disable-sorting":w.value,"empty-state-options":se.value,"enable-entity-actions":"","error-message":U.value,fetcher:e.unref(h),"fetcher-cache-key":e.unref(b),"pagination-type":"offset","preferences-storage-key":"kong-ui-entities-routes-list",query:P.value,"table-headers":e.unref(S),title:r.title,"title-tag":r.titleTag,onClearSearchInput:ie,"onClick:row":y[8]||(y[8]=C=>Y(C)),onSort:de,onState:e.unref(u)},e.createSlots({"toolbar-filter":e.withCtx(()=>[e.createVNode(e.unref(N.EntityFilter),{modelValue:P.value,"onUpdate:modelValue":y[0]||(y[0]=C=>P.value=C),config:$.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,[!V.value&&c.value?(e.openBlock(),e.createBlock(k,{key:0,appearance:"secondary",class:"open-learning-hub","data-testid":"routes-learn-more-button",icon:"",onClick:y[1]||(y[1]=C=>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(k,{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:C})=>[e.createElementVNode("b",null,e.toDisplayString(C??"-"),1)]),protocols:e.withCtx(({rowValue:C})=>[e.createVNode(q,null,{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(C,x=>(e.openBlock(),e.createBlock(T,{key:x,appearance:"neutral",onClick:y[4]||(y[4]=e.withModifiers(()=>{},["stop"]))},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(x),1)]),_:2},1024))),128))]),_:2},1024)]),hosts:e.withCtx(({rowValue:C})=>[(C==null?void 0:C.length)>0?(e.openBlock(),e.createBlock(q,{key:0},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(C,x=>(e.openBlock(),e.createBlock(T,{key:x,appearance:"neutral",tooltip:x,"truncation-tooltip":"",onClick:y[5]||(y[5]=e.withModifiers(()=>{},["stop"]))},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(x),1)]),_:2},1032,["tooltip"]))),128))]),_:2},1024)):(e.openBlock(),e.createElementBlock("span",Tt,"-"))]),methods:e.withCtx(({rowValue:C})=>[(C==null?void 0:C.length)>0?(e.openBlock(),e.createBlock(q,{key:0},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(C,x=>(e.openBlock(),e.createBlock(T,{key:x,appearance:Object.values(e.unref(Ve.BadgeMethodAppearances)).includes(x.toLowerCase())?x.toLowerCase():"custom",onClick:y[6]||(y[6]=e.withModifiers(()=>{},["stop"]))},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(x),1)]),_:2},1032,["appearance"]))),128))]),_:2},1024)):(e.openBlock(),e.createElementBlock("span",Et,"-"))]),paths:e.withCtx(({rowValue:C})=>[(C==null?void 0:C.length)>0?(e.openBlock(),e.createBlock(q,{key:0},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(C,x=>(e.openBlock(),e.createBlock(T,{key:x,appearance:"neutral",tooltip:x,"truncation-tooltip":"",onClick:y[7]||(y[7]=e.withModifiers(()=>{},["stop"]))},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(x),1)]),_:2},1032,["tooltip"]))),128))]),_:2},1024)):(e.openBlock(),e.createElementBlock("span",kt,"-"))]),tags:e.withCtx(({rowValue:C})=>[e.createVNode(e.unref(N.TableTags),{tags:C},null,8,["tags"])]),expression:e.withCtx(({rowValue:C})=>[e.createElementVNode("span",Ct,e.toDisplayString(C||"-"),1)]),created_at:e.withCtx(({rowValue:C})=>[e.createTextVNode(e.toDisplayString(e.unref(f)(C)),1)]),updated_at:e.withCtx(({row:C,rowValue:x})=>[e.createTextVNode(e.toDisplayString(e.unref(f)(x??C.created_at)),1)]),actions:e.withCtx(({row:C})=>[e.createVNode(j,null,{default:e.withCtx(({copyToClipboard:x})=>[e.createVNode(G,{"data-testid":"action-entity-copy-id",onClick:Vt=>re(C,x)},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(a)("actions.copy_id")),1)]),_:2},1032,["onClick"])]),_:2},1024),e.createVNode(j,null,{default:e.withCtx(({copyToClipboard:x})=>[e.createVNode(G,{"data-testid":"action-entity-copy-json",onClick:Vt=>B(C,x)},{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(C)},{default:e.withCtx(()=>[e.createVNode(G,{"data-testid":"action-entity-view","has-divider":"",item:z(C.id)},null,8,["item"])]),_:2},1032,["auth-function"]),e.createVNode(e.unref(N.PermissionsWrapper),{"auth-function":()=>r.canEdit(C)},{default:e.withCtx(()=>[e.createVNode(G,{"data-testid":"action-entity-edit",item:Z(C.id)},null,8,["item"])]),_:2},1032,["auth-function"]),e.createVNode(e.unref(N.PermissionsWrapper),{"auth-function":()=>r.canDelete(C)},{default:e.withCtx(()=>[e.createVNode(G,{danger:"","data-testid":"action-entity-delete","has-divider":"",onClick:x=>ge(C)},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(a)("actions.delete")),1)]),_:2},1032,["onClick"])]),_:2},1032,["auth-function"])]),_:2},[!e.unref(m)&&g.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(k,{appearance:"secondary",class:"open-learning-hub","data-testid":"routes-learn-more-button",icon:"",onClick:y[2]||(y[2]=C=>i.$emit("click:learn-more"))},{default:e.withCtx(()=>[e.createVNode(e.unref(X.BookIcon),{decorative:""})]),_:1})],8,["disabled"]))]),key:"0"}:void 0,!P.value&&r.enableV2EmptyStates&&r.config.app==="konnect"?{name:"empty-state",fn:e.withCtx(()=>{var C;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":y[3]||(y[3]=x=>i.$emit("click:learn-more"))},e.createSlots({image:e.withCtx(()=>[e.createElementVNode("div",_t,[e.createVNode(e.unref(X.ForwardIcon),{color:e.unref(De),size:e.unref($e)},null,8,["color","size"])])]),_:2},[(C=r.config)!=null&&C.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":W.value&&(W.value.name||W.value.id),"entity-type":e.unref(N.EntityTypes).Route,error:pe.value,title:e.unref(a)("delete.title"),visible:v.value,onCancel:ye,onProceed:Se},null,8,["action-pending","description","entity-name","entity-type","error","title","visible"])])}}}),[["__scopeId","data-v-db9e4b73"]]),It=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:I}){const{i18n:{t:p}}=H.useI18n(),t=r,a=e.useModel(r,"modelValue"),f=I,n=e.ref(!1),E=e.computed(()=>ne.PROTOCOL_TO_SCHEMA[t.protocol]),u=e.computed(()=>ne.HTTP_BASED_PROTOCOLS.includes(t.protocol??"")),m=e.computed(()=>{if(!(!t.showExpressionsModalEntry||u.value))return p("form.expression_playground.supported_protocols_hint",{protocols:ne.HTTP_BASED_PROTOCOLS.join(", ")})}),c=w=>{a.value=w,n.value=!1},g=w=>{f("notify",w)},V=()=>{u.value&&(n.value=!0)};return(w,s)=>{const d=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":s[0]||(s[0]=S=>a.value=S),schema:E.value},null,8,["modelValue","schema"])):e.createCommentVNode("",!0),e.createVNode(d,{placement:"bottom-start",text:m.value},{default:e.withCtx(()=>[w.showExpressionsModalEntry?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass({disabled:!u.value,"route-form-open-in-playground":!0}),"data-testid":"open-router-playground",onClick:V},[e.renderSlot(w.$slots,"default")],2)):e.createCommentVNode("",!0)]),_:3},8,["text"]),w.showExpressionsModalEntry&&u.value?(e.openBlock(),e.createBlock(e.unref(ne.RouterPlaygroundModal),{key:1,"initial-expression":a.value,"is-visible":n.value,onCancel:s[1]||(s[1]=S=>n.value=!1),onCommit:c,onNotify:g},null,8,["initial-expression","is-visible"])):e.createCommentVNode("",!0)],64)}}})},Symbol.toStringTag,{value:"Module"}));R.ExpressionsEditorState=J,R.HTTP_REDIRECT_STATUS_CODES=me,R.INITIAL_ROUTE_RULES_FIELDS=Ce,R.INITIAL_SHARED_ROUTE_RULES_FIELDS=ae,R.INITIAL_TRADITIONAL_ROUTE_RULES_VALUES=M,R.Methods=Q,R.PATH_HANDLING_OPTIONS=ke,R.PROTOCOLS_TO_ROUTE_RULES=ce,R.RouteConfigCard=xe,R.RouteFlavor=O,R.RouteForm=yt,R.RouteFormRulesComposer=Ie,R.RouteList=Nt,R.RoutingRulesEntities=o,R.stateHasExpressionsFlavor=fe,R.stateHasTraditionalFlavor=ue,Object.defineProperty(R,Symbol.toStringTag,{value:"Module"})});
|
|
@@ -1271,7 +1271,7 @@ const Xe = (s) => s.routeFlavors.traditional === !0, ze = (s) => s.routeFlavors.
|
|
|
1271
1271
|
}, i = {
|
|
1272
1272
|
render: () => Ke("div", p("form.expressions_editor.error"))
|
|
1273
1273
|
}, h = rt({
|
|
1274
|
-
loader: async () => import("./RouteFormExpressionsEditor-
|
|
1274
|
+
loader: async () => import("./RouteFormExpressionsEditor-C9V2xFxS.js"),
|
|
1275
1275
|
loadingComponent: t,
|
|
1276
1276
|
errorComponent: i
|
|
1277
1277
|
}), a = s, A = N, m = q(ye.LOADING), y = z(s, "modelValue"), c = (b) => {
|
|
@@ -2156,7 +2156,7 @@ const Xe = (s) => s.routeFlavors.traditional === !0, ze = (s) => s.routeFlavors.
|
|
|
2156
2156
|
fetcher: g,
|
|
2157
2157
|
fetcherState: T,
|
|
2158
2158
|
fetcherCacheKey: _
|
|
2159
|
-
} = mt({ ...t.config, cacheIdentifier: t.cacheIdentifier },
|
|
2159
|
+
} = mt(H(() => ({ ...t.config, cacheIdentifier: t.cacheIdentifier })), $), K = (n) => n.headerKey === "expression" ? {
|
|
2160
2160
|
style: {
|
|
2161
2161
|
maxWidth: "250px",
|
|
2162
2162
|
overflowX: "hidden",
|
|
@@ -2552,7 +2552,7 @@ const Xe = (s) => s.routeFlavors.traditional === !0, ze = (s) => s.routeFlavors.
|
|
|
2552
2552
|
]);
|
|
2553
2553
|
};
|
|
2554
2554
|
}
|
|
2555
|
-
}), os = /* @__PURE__ */ ee(Wo, [["__scopeId", "data-v-
|
|
2555
|
+
}), os = /* @__PURE__ */ ee(Wo, [["__scopeId", "data-v-db9e4b73"]]);
|
|
2556
2556
|
export {
|
|
2557
2557
|
ye as E,
|
|
2558
2558
|
ot as H,
|
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-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}
|
|
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-db9e4b73]{align-items:center;display:flex;gap:12px}.kong-ui-entities-routes-list[data-v-db9e4b73]{width:100%}.kong-ui-entities-routes-list .kong-ui-entity-filter-input[data-v-db9e4b73]{margin-right:12px}.kong-ui-entities-routes-list .route-list-cell-expression[data-v-db9e4b73]{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}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kong-ui-public/entities-routes",
|
|
3
|
-
"version": "3.13.
|
|
3
|
+
"version": "3.13.2",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"main": "./dist/entities-routes.umd.js",
|
|
6
6
|
"module": "./dist/entities-routes.es.js",
|
|
@@ -26,8 +26,8 @@
|
|
|
26
26
|
"axios": "^1.7.7",
|
|
27
27
|
"vue": ">= 3.3.13 < 4",
|
|
28
28
|
"vue-router": "^4.4.5",
|
|
29
|
-
"@kong-ui-public/
|
|
30
|
-
"@kong-ui-public/
|
|
29
|
+
"@kong-ui-public/i18n": "^2.3.0",
|
|
30
|
+
"@kong-ui-public/entities-shared": "^3.22.9"
|
|
31
31
|
},
|
|
32
32
|
"devDependencies": {
|
|
33
33
|
"@kong/design-tokens": "1.17.4",
|
|
@@ -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/
|
|
42
|
-
"@kong-ui-public/
|
|
41
|
+
"@kong-ui-public/i18n": "^2.3.0",
|
|
42
|
+
"@kong-ui-public/entities-shared": "^3.22.9"
|
|
43
43
|
},
|
|
44
44
|
"repository": {
|
|
45
45
|
"type": "git",
|
|
@@ -57,7 +57,7 @@
|
|
|
57
57
|
},
|
|
58
58
|
"dependencies": {
|
|
59
59
|
"lodash.isequal": "^4.5.0",
|
|
60
|
-
"@kong-ui-public/expressions": "^0.9.
|
|
60
|
+
"@kong-ui-public/expressions": "^0.9.36"
|
|
61
61
|
},
|
|
62
62
|
"scripts": {
|
|
63
63
|
"dev": "cross-env USE_SANDBOX=true vite",
|