@kong-ui-public/entities-routes 3.11.8 → 3.11.9
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/entities-routes.es.js +2 -2
- package/dist/entities-routes.umd.js +1 -1
- package/dist/style.css +1 -1
- package/dist/types/components/RouteForm.vue.d.ts.map +1 -1
- package/dist/types/types/route-config-card.d.ts.map +1 -1
- package/dist/types/types/route-form.d.ts.map +1 -1
- package/package.json +5 -5
|
@@ -2210,7 +2210,7 @@ const Me = (s) => s.routeFlavors.traditional === !0, We = (s) => s.routeFlavors.
|
|
|
2210
2210
|
]);
|
|
2211
2211
|
};
|
|
2212
2212
|
}
|
|
2213
|
-
}), ls = /* @__PURE__ */ Q(Ko, [["__scopeId", "data-v-
|
|
2213
|
+
}), ls = /* @__PURE__ */ Q(Ko, [["__scopeId", "data-v-2a53a125"]]), Lo = { class: "kong-ui-entities-routes-list" }, xo = { class: "button-row" }, qo = { class: "empty-state-icon-gateway" }, Bo = { key: 1 }, Go = { key: 1 }, jo = { key: 1 }, Xo = { class: "route-list-cell-expression" }, Wo = /* @__PURE__ */ X({
|
|
2214
2214
|
__name: "RouteList",
|
|
2215
2215
|
props: {
|
|
2216
2216
|
/** The base konnect or kongManger config. Pass additional config props in the shared entity component as needed. */
|
|
@@ -2725,7 +2725,7 @@ const Me = (s) => s.routeFlavors.traditional === !0, We = (s) => s.routeFlavors.
|
|
|
2725
2725
|
]);
|
|
2726
2726
|
};
|
|
2727
2727
|
}
|
|
2728
|
-
}), rs = /* @__PURE__ */ Q(Wo, [["__scopeId", "data-v-
|
|
2728
|
+
}), rs = /* @__PURE__ */ Q(Wo, [["__scopeId", "data-v-e949a937"]]);
|
|
2729
2729
|
export {
|
|
2730
2730
|
he as ExpressionsEditorState,
|
|
2731
2731
|
st as HTTP_REDIRECT_STATUS_CODES,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(B,e){typeof exports=="object"&&typeof module<"u"?e(exports,require("vue"),require("@kong-ui-public/entities-shared"),require("@kong-ui-public/i18n"),require("lodash.isequal"),require("vue-router"),require("@kong/icons"),require("@kong/kongponents"),require("@kong-ui-public/expressions")):typeof define=="function"&&define.amd?define(["exports","vue","@kong-ui-public/entities-shared","@kong-ui-public/i18n","lodash.isequal","vue-router","@kong/icons","@kong/kongponents","@kong-ui-public/expressions"],e):(B=typeof globalThis<"u"?globalThis:B||self,e(B["kong-ui-public-entities-routes"]={},B.Vue,B["kong-ui-public-entities-shared"],B["kong-ui-public-i18n"],B.isEqual,B.VueRouter,B.KongIcons,B.Kongponents,B["kong-ui-public-expressions"]))})(this,function(B,e,_,Ce,Re,Ee,q,ke,ee){"use strict";const F="/v2/control-planes/{controlPlaneId}/core-entities",H="/{workspace}",Z={list:{konnect:{all:`${F}/routes`,forGatewayService:`${F}/services/{serviceId}/routes`},kongManager:{all:`${H}/routes`,forGatewayService:`${H}/services/{serviceId}/routes`}},form:{konnect:{services:`${F}/services`,create:{all:`${F}/routes`,forGatewayService:`${F}/services/{serviceId}/routes`},fetch:{all:`${F}/routes/{id}`,forGatewayService:`${F}/services/{serviceId}/routes/{id}`},edit:{all:`${F}/routes/{id}`,forGatewayService:`${F}/services/{serviceId}/routes/{id}`}},kongManager:{services:`${H}/services`,create:{all:`${H}/routes`,forGatewayService:`${H}/services/{serviceId}/routes`},fetch:{all:`${H}/routes/{id}`,forGatewayService:`${H}/services/{serviceId}/routes/{id}`},edit:{all:`${H}/routes/{id}`,forGatewayService:`${H}/services/{serviceId}/routes/{id}`}}},item:{konnect:{getService:`${F}/services/{serviceId}`,all:`${F}/routes/{id}`,forGatewayService:`${F}/services/{serviceId}/routes/{id}`},kongManager:{getService:`${H}/services/{serviceId}`,all:`${H}/routes/{id}`,forGatewayService:`${H}/services/{serviceId}/routes/{id}`}}},we={actions:{create:"New route",copy_id:"Copy ID",copy_json:"Copy JSON",edit:"Edit",delete:"Delete",clear:"Clear",view:"View Details",loading:"Loading..."},search:{placeholder:{konnect:"Filter by name",exact:"Filter by exact name or ID",kongManager:"Filter by exact name or ID"},no_results:"No results found"},routes:{title:"Routes",list:{toolbar_actions:{new_route:"New route"},table_headers:{name:"Name",protocols:"Protocols",hosts:"Hosts",methods:"Methods",paths:"Paths",expression:"Expression",id:"ID",tags:"Tags",created_at:"Created At",updated_at:"Last Modified"},empty_state:{title:"Configure a New Route",description:"Routes proxy requests to an associated Service."},empty_state_v2:{title:"Configure your first route",group:"Routes created in gateways within this group will automatically appear here.",description:"Routes direct incoming API requests to the appropriate gateway service based on paths, methods, and headers, ensuring efficient traffic flow."}}},delete:{title:"Delete a Route",description:"Deleting this route will also remove any associated plugins. This action cannot be reversed."},errors:{general:"Routes could not be retrieved",delete:"The route could not be deleted at this time.",copy:"Failed to copy to clipboard",services:{fetch:"Could not fetch available services"}},copy:{success:"Copied {val} to clipboard",success_brief:"Successfully copied to clipboard"},form:{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:"Routes have a protocols property to restrict the client protocol they should listen for.",tooltipConfig:"An array of the protocols this Route should allow. See the {code1} section for a list of accepted protocols. When set to only {code2}, HTTP requests are answered with an upgrade error. When it is set to only {code3}, this is essentially the same as {code4} in that both HTTP and HTTPS requests are allowed. Default: {code5}.",code1:"Route Object",code2:"https",code3:"http",code4:"['http', 'https']",code5:"['http', 'https']"},path_handling:{label:"Path Handling",tooltip:"This treats service.path, route.path and request path as segments of a URL.",tooltipConfig:"Controls how the Service path, Route path and requested path are combined when sending a request to the upstream. See above for a detailed description of each behavior."},https_redirect_status_code:{label:"HTTPS Redirect Status Code",tooltip:"The status code Kong responds with when all properties of a Route match except the protocol i.e. if the protocol of the request is {code1} instead of {code2}. {code3} header is injected by Kong if the field is set to 301, 302, 307 or 308. Note: This config applies only if the Route is configured to only accept the {code4} protocol.",code1:"HTTP",code2:"HTTPS",code3:"Location",code4:"https"},regex_priority:{label:"Regex Priority",tooltip:"A number used to choose which route resolves a given request when several routes match it using regexes simultaneously. When two routes match the path and have the same {code1}, the older one (lowest {code2}) is used. Note that the priority for non-regex routes is different (longer non-regex routes are matched before shorter ones).",code1:"regex_priority",code2:"created_at"},strip_path:{label:"Strip Path",tooltip:"When matching a Route via one of the {code1}, strip the matching prefix from the upstream request URL.",code1:"paths"},preserve_host:{label:"Preserve Host",tooltip:"When matching a Route via one of the {code1} domain names, use the request {code2} header in the upstream request headers. If set to {code3}, the upstream {code4} header will be that of the Service's {code5}.",code1:"hosts",code2:"Host",code3:"false",code4:"Host",code5:"host"},paths:{label:"Paths",placeholder:"Enter a path",tooltip:"A list of paths that match this Route."},snis:{label:"SNIs",placeholder:"Enter a SNI",tooltip:"A list of SNIs (Server Name Indications from a TLS ClientHello) that match this Route."},hosts:{label:"Hosts",placeholder:"Enter a host",tooltip:"A list of domain names that match this Route.",tooltipConfig:"A list of domain names that match this Route. Note that the hosts value is case sensitive."},methods:{label:"Methods",tooltip:"A list of HTTP methods that match this Route.",custom:{label:"Custom",placeholder:"Enter a custom method",tooltip:"Custom methods can be used with default selections. Uppercase characters are required."}},headers:{label:"Headers",tooltip:"Header values can be separated by commas (value1, value2, value3).",name:{placeholder:"Enter a header name"},values:{placeholder:"Enter a header value"},tooltipConfig:"One or more lists of values indexed by header name that will cause this Route to match if present in the request. The {code1} header cannot be used with this attribute: hosts should be specified using the {code2} attribute. When {code3} contains only one value and that value starts with the special prefix {code4], the value is interpreted as a regular expression.",code1:"Host",code2:"hosts",code3:"headers",code4:"*"},sources:{label:"Sources",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:{label:"Destinations",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:"Whether to enable response body buffering or not. With HTTP 1.1, it may make sense to turn this off on services that send data with chunked transfer encoding."},request_buffering:{label:"Request buffering",tooltip:"Whether to enable request body buffering or not. With HTTP 1.1, it may make sense to turn this off on services that receive data with chunked transfer encoding."},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",expressions:"Expressions"},viewAdvancedFields:"View Advanced Fields",addNewRule:"Add New Rule",warning:{rulesMessage:"For {protocol}, at least one of {routingRules} must be set.",singleRule:"{routingRules}",multipleRules:"{routingRules} or {lastRoutingRule}",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 Be(){const r=Ce.createI18n("en-us",we);return{i18n:r,i18nT:Ce.i18nTComponent(r)}}const $={useI18n:Be},Ae={class:"kong-ui-entities-route-entity-config-card"},Oe={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:V}){var n;const f=V,o=r,{axiosInstance:i}=_.useAxios((n=o.config)==null?void 0:n.axiosRequestConfig),{i18n:{t:c},i18nT:s}=$.useI18n(),k=e.ref(""),b=e.ref(""),m=e.ref(!1),d=e.computed(()=>{var w,S;return(S=Z.item[(w=o.config)==null?void 0:w.app])==null?void 0:S[o.serviceId?"forGatewayService":"all"].replace(/{serviceId}/gi,o.serviceId)}),g=e.computed(()=>{var w;return(w=Z.item[o.config.app])==null?void 0:w.getService}),A=async w=>{var y,u,a;if(k.value=o.serviceId||((y=w==null?void 0:w.service)==null?void 0:y.id),f("fetch:success",w),!k.value)return;let S=`${o.config.apiBaseUrl}${g.value}`;o.config.app==="konnect"?S=S.replace(/{controlPlaneId}/gi,((u=o.config)==null?void 0:u.controlPlaneId)||"").replace(/{serviceId}/gi,k.value||""):o.config.app==="kongManager"&&(S=S.replace(/\/{workspace}/gi,(a=o.config)!=null&&a.workspace?`/${o.config.workspace}`:"").replace(/{serviceId}/gi,k.value||""));try{m.value=!0;const{data:E}=await i.get(S);b.value=(E==null?void 0:E.name)||(E==null?void 0:E.id)}catch(E){f("fetch:error",E)}finally{m.value=!1}},x=e.ref({id:{},name:{tooltip:c("form.fields.name.tooltip")},created_at:{},updated_at:{},service:{label:c("form.fields.service.label"),section:_.ConfigurationSchemaSection.Basic,tooltip:c("form.fields.service.tooltip"),order:5},tags:{tooltip:c("form.fields.tags.tooltip"),order:6},protocols:{section:_.ConfigurationSchemaSection.Basic,type:_.ConfigurationSchemaType.BadgeTag,order:7},paths:{section:_.ConfigurationSchemaSection.Basic,tooltip:c("form.fields.paths.tooltip"),type:_.ConfigurationSchemaType.CopyBadge,order:8},hosts:{section:_.ConfigurationSchemaSection.Basic,tooltip:c("form.fields.hosts.tooltipConfig"),type:_.ConfigurationSchemaType.CopyBadge,order:9},snis:{label:c("form.fields.snis.label"),tooltip:c("form.fields.snis.tooltip"),order:10},headers:{section:_.ConfigurationSchemaSection.Basic,order:11},methods:{section:_.ConfigurationSchemaSection.Basic,tooltip:c("form.fields.methods.tooltip"),type:_.ConfigurationSchemaType.BadgeMethod,order:12},sources:{section:_.ConfigurationSchemaSection.Basic,tooltip:c("form.fields.sources.tooltip"),type:_.ConfigurationSchemaType.JsonArray,order:13},destinations:{section:_.ConfigurationSchemaSection.Basic,tooltip:c("form.fields.destinations.tooltip"),type:_.ConfigurationSchemaType.JsonArray,order:14},https_redirect_status_code:{order:1},regex_priority:{tooltip:c("form.fields.regex_priority.tooltip"),order:2},strip_path:{order:3},preserve_host:{order:4},request_buffering:{tooltip:c("form.fields.request_buffering.tooltip"),order:5},response_buffering:{tooltip:c("form.fields.response_buffering.tooltip"),order:6},path_handling:{tooltip:c("form.fields.path_handling.tooltipConfig"),order:7}});return(w,S)=>{const y=e.resolveComponent("KSkeleton");return e.openBlock(),e.createElementBlock("div",Ae,[e.createVNode(e.unref(_.EntityBaseConfigCard),{config:r.config,"config-card-doc":r.configCardDoc,"config-schema":x.value,"entity-type":e.unref(_.SupportedEntityType).Route,"fetch-url":d.value,"hide-title":r.hideTitle,"onFetch:error":S[0]||(S[0]=u=>w.$emit("fetch:error",u)),"onFetch:success":A,onLoading:S[1]||(S[1]=u=>w.$emit("loading",u))},{"https_redirect_status_code-label-tooltip":e.withCtx(()=>[e.createVNode(e.unref(s),{keypath:"form.fields.https_redirect_status_code.tooltip",scope:"global"},{code1:e.withCtx(()=>[e.createElementVNode("code",null,e.toDisplayString(e.unref(c)("form.fields.https_redirect_status_code.code1")),1)]),code2:e.withCtx(()=>[e.createElementVNode("code",null,e.toDisplayString(e.unref(c)("form.fields.https_redirect_status_code.code2")),1)]),code3:e.withCtx(()=>[e.createElementVNode("code",null,e.toDisplayString(e.unref(c)("form.fields.https_redirect_status_code.code3")),1)]),code4:e.withCtx(()=>[e.createElementVNode("code",null,e.toDisplayString(e.unref(c)("form.fields.https_redirect_status_code.code4")),1)]),_:1})]),"regex_priority-label-tooltip":e.withCtx(()=>[e.createVNode(e.unref(s),{keypath:"form.fields.regex_priority.tooltip",scope:"global"},{code1:e.withCtx(()=>[e.createElementVNode("code",null,e.toDisplayString(e.unref(c)("form.fields.regex_priority.code1")),1)]),code2:e.withCtx(()=>[e.createElementVNode("code",null,e.toDisplayString(e.unref(c)("form.fields.regex_priority.code2")),1)]),_:1})]),"protocols-label-tooltip":e.withCtx(()=>[e.createVNode(e.unref(s),{keypath:"form.fields.protocols.tooltipConfig",scope:"global"},{code1:e.withCtx(()=>[e.createElementVNode("code",null,e.toDisplayString(e.unref(c)("form.fields.protocols.code1")),1)]),code2:e.withCtx(()=>[e.createElementVNode("code",null,e.toDisplayString(e.unref(c)("form.fields.protocols.code2")),1)]),code3:e.withCtx(()=>[e.createElementVNode("code",null,e.toDisplayString(e.unref(c)("form.fields.protocols.code3")),1)]),code4:e.withCtx(()=>[e.createElementVNode("code",null,e.toDisplayString(e.unref(c)("form.fields.protocols.code4")),1)]),code5:e.withCtx(()=>[e.createElementVNode("code",null,e.toDisplayString(e.unref(c)("form.fields.protocols.code5")),1)]),_:1})]),"headers-label-tooltip":e.withCtx(()=>[e.createVNode(e.unref(s),{keypath:"form.fields.headers.tooltipConfig",scope:"global"},{code1:e.withCtx(()=>[e.createElementVNode("code",null,e.toDisplayString(e.unref(c)("form.fields.headers.code1")),1)]),code2:e.withCtx(()=>[e.createElementVNode("code",null,e.toDisplayString(e.unref(c)("form.fields.headers.code2")),1)]),code3:e.withCtx(()=>[e.createElementVNode("code",null,e.toDisplayString(e.unref(c)("form.fields.headers.code3")),1)]),code4:e.withCtx(()=>[e.createElementVNode("code",null,e.toDisplayString(e.unref(c)("form.fields.headers.code4")),1)]),_:1})]),"strip_path-label-tooltip":e.withCtx(()=>[e.createVNode(e.unref(s),{keypath:"form.fields.strip_path.tooltip",scope:"global"},{code1:e.withCtx(()=>[e.createElementVNode("code",null,e.toDisplayString(e.unref(c)("form.fields.headers.code1")),1)]),_:1})]),"preserve_host-label-tooltip":e.withCtx(()=>[e.createVNode(e.unref(s),{keypath:"form.fields.preserve_host.tooltip",scope:"global"},{code1:e.withCtx(()=>[e.createElementVNode("code",null,e.toDisplayString(e.unref(c)("form.fields.preserve_host.code1")),1)]),code2:e.withCtx(()=>[e.createElementVNode("code",null,e.toDisplayString(e.unref(c)("form.fields.preserve_host.code2")),1)]),code3:e.withCtx(()=>[e.createElementVNode("code",null,e.toDisplayString(e.unref(c)("form.fields.preserve_host.code3")),1)]),code4:e.withCtx(()=>[e.createElementVNode("code",null,e.toDisplayString(e.unref(c)("form.fields.preserve_host.code4")),1)]),code5:e.withCtx(()=>[e.createElementVNode("code",null,e.toDisplayString(e.unref(c)("form.fields.preserve_host.code5")),1)]),_:1})]),service:e.withCtx(({row:u})=>[m.value?(e.openBlock(),e.createBlock(y,{key:0,"data-testid":"service-name-loader",type:"spinner"})):u.value&&u.value.id===k.value&&b.value?(e.openBlock(),e.createBlock(e.unref(_.InternalLinkItem),{key:1,item:{key:u.value.id,value:b.value,type:e.unref(_.ConfigurationSchemaType).LinkInternal},onNavigationClick:()=>w.$emit("navigation-click",u.value.id,"services")},null,8,["item","onNavigationClick"])):(e.openBlock(),e.createElementBlock("div",Oe,e.toDisplayString("-")))]),_:1},8,["config","config-card-doc","config-schema","entity-type","fetch-url","hide-title"])])}}});var Ne=(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.CUSTOM="CUSTOM",r))(Ne||{}),R=(r=>(r.TRADITIONAL="traditional",r.EXPRESSIONS="expressions",r))(R||{}),l=(r=>(r.PATHS="paths",r.SNIS="snis",r.HOSTS="hosts",r.METHODS="methods",r.HEADERS="headers",r.SOURCES="sources",r.DESTINATIONS="destinations",r.CUSTOM_METHOD="custom-method",r))(l||{}),J=(r=>(r.LOADING="loading",r.ERROR="error",r.READY="ready",r))(J||{});const ae=r=>r.routeFlavors.traditional===!0,fe=r=>r.routeFlavors.expressions===!0,D={[l.PATHS]:[""],[l.SNIS]:[""],[l.HOSTS]:[""],[l.METHODS]:{GET:!1,PUT:!1,POST:!1,PATCH:!1,DELETE:!1,OPTIONS:!1,HEAD:!1,CONNECT:!1,TRACE:!1,CUSTOM:!1},[l.HEADERS]:[{header:"",values:""}],[l.SOURCES]:[{ip:"",port:null}],[l.DESTINATIONS]:[{ip:"",port:null}]},te={http:[l.HOSTS,l.METHODS,l.PATHS,l.HEADERS],https:[l.HOSTS,l.METHODS,l.PATHS,l.HEADERS,l.SNIS],"http,https":[l.HOSTS,l.METHODS,l.PATHS,l.HEADERS,l.SNIS],"https,http":[l.HOSTS,l.METHODS,l.PATHS,l.HEADERS,l.SNIS],grpc:[l.HOSTS,l.PATHS,l.HEADERS],grpcs:[l.HOSTS,l.PATHS,l.HEADERS,l.SNIS],"grpc,grpcs":[l.HOSTS,l.PATHS,l.HEADERS,l.SNIS],"grpcs,grpc":[l.HOSTS,l.PATHS,l.HEADERS,l.SNIS],udp:[l.SOURCES,l.DESTINATIONS],tls:[l.SOURCES,l.DESTINATIONS,l.SNIS],tcp:[l.SOURCES,l.DESTINATIONS],"tls,udp":[l.SOURCES,l.DESTINATIONS,l.SNIS],"udp,tls":[l.SOURCES,l.DESTINATIONS,l.SNIS],"tcp,udp":[l.SOURCES,l.DESTINATIONS],"udp,tcp":[l.SOURCES,l.DESTINATIONS],"tcp,tls":[l.SOURCES,l.DESTINATIONS,l.SNIS],"tls,tcp":[l.SOURCES,l.DESTINATIONS,l.SNIS],"tcp,tls,udp":[l.SOURCES,l.DESTINATIONS,l.SNIS],"tls,udp,tcp":[l.SOURCES,l.DESTINATIONS,l.SNIS],"udp,tcp,tls":[l.SOURCES,l.DESTINATIONS,l.SNIS],tls_passthrough:[l.SNIS],ws:[l.HOSTS,l.PATHS,l.HEADERS],wss:[l.HOSTS,l.PATHS,l.HEADERS,l.SNIS],"ws,wss":[l.HOSTS,l.PATHS,l.HEADERS,l.SNIS],"wss,ws":[l.HOSTS,l.PATHS,l.HEADERS,l.SNIS]},ue=[{label:"426",value:426},{label:"301",value:301},{label:"302",value:302},{label:"307",value:307},{label:"308",value:308}],_e=[{label:"v0",value:"v0"},{label:"v1",value:"v1"}],oe={https_redirect_status_code:426,strip_path:!0,preserve_host:!1,request_buffering:!0,response_buffering:!0},De={...oe,paths:[""],regex_priority:0,path_handling:"v0",expression:"",priority:0},Te="#d60027",$e="#00abd2",Ve="#6c7489",me="16px",Me="24px",Pe=e.defineComponent({__name:"RouteFormExpressionsEditorLoader",props:e.mergeModels({protocol:{},showExpressionsModalEntry:{type:Boolean}},{modelValue:{required:!0},modelModifiers:{}}),emits:e.mergeModels(["notify"],["update:modelValue"]),setup(r,{emit:V}){const{i18n:{t:f}}=$.useI18n(),o={render:()=>e.h("div",f("form.expressions_editor.loading"))},i={render:()=>e.h("div",f("form.expressions_editor.error"))},c=e.defineAsyncComponent({loader:async()=>Promise.resolve().then(()=>Bt),loadingComponent:o,errorComponent:i}),s=r,k=V,b=e.ref(J.LOADING),m=e.useModel(r,"modelValue"),d=g=>{m.value=g};return e.onMounted(async()=>{try{await(await import("@kong-ui-public/expressions")).asyncInit,b.value=J.READY}catch(g){b.value=J.ERROR,console.error(g)}}),(g,A)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[b.value===e.unref(J).ERROR?(e.openBlock(),e.createBlock(e.resolveDynamicComponent(i),{key:0,"data-testid":"route-form-expressions-editor-loader-error"})):b.value===e.unref(J).LOADING?(e.openBlock(),e.createBlock(e.resolveDynamicComponent(o),{key:1,"data-testid":"route-form-expressions-editor-loader-loading"})):(e.openBlock(),e.createBlock(e.unref(c),{key:2,modelValue:m.value,"onUpdate:modelValue":A[0]||(A[0]=x=>m.value=x),"hint-text":e.unref(f)("form.expression_playground.supported_protocols_hint"),protocol:s.protocol,"show-expressions-modal-entry":g.showExpressionsModalEntry,onNotify:A[1]||(A[1]=x=>k("notify",x))},{default:e.withCtx(()=>[e.createVNode(e.unref(q.RocketIcon),{size:e.unref(me)},null,8,["size"]),e.createElementVNode("span",null,e.toDisplayString(e.unref(f)("form.expression_playground.test_link")),1)]),_:1},8,["modelValue","hint-text","protocol","show-expressions-modal-entry"])),e.renderSlot(g.$slots,"after-editor",{expression:{value:m.value,update:d},state:b.value})],64))}}),Ue={class:"route-form-routing-rules-title-container"},Fe={class:"routing-rules-title"},He={class:"route-form-fields-container route-form-advanced-fields-container"},Le=e.defineComponent({__name:"ExpressionsRules",props:e.mergeModels({protocols:{},hideAdvanced:{type:Boolean},readonly:{type:Boolean},showExpressionsModalEntry:{type:Boolean}},{fields:{required:!0},fieldsModifiers:{}}),emits:e.mergeModels(["notify"],["update:fields"]),setup(r,{emit:V}){const{i18n:{t:f}}=$.useI18n(),o=r,i=e.useModel(r,"fields"),c=V,s=e.ref(!0),k=e.computed(()=>o.protocols.split(",")||[]),b=m=>m.some(d=>o.protocols.includes(d));return(m,d)=>{const g=e.resolveComponent("KCard"),A=e.resolveComponent("KSelect"),x=e.resolveComponent("KInput"),n=e.resolveComponent("KCheckbox"),w=e.resolveComponent("KCollapse");return e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createVNode(g,null,{title:e.withCtx(()=>[e.createElementVNode("div",Ue,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(k.value,S=>(e.openBlock(),e.createElementBlock("span",{key:S,class:"protocol-title"},e.toDisplayString(S.toUpperCase()),1))),128)),e.createElementVNode("span",Fe,e.toDisplayString(e.unref(f)("form.sections.routingExpression.title")),1)])]),default:e.withCtx(()=>[e.createVNode(Pe,{modelValue:i.value.expression,"onUpdate:modelValue":d[0]||(d[0]=S=>i.value.expression=S),protocol:k.value[0],"show-expressions-modal-entry":m.showExpressionsModalEntry,onNotify:d[1]||(d[1]=S=>c("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(w,{modelValue:s.value,"onUpdate:modelValue":d[8]||(d[8]=S=>s.value=S),class:"route-form-advanced-fields-collapse","trigger-alignment":"leading","trigger-label":e.unref(f)("form.viewAdvancedFields")},{default:e.withCtx(()=>[e.createElementVNode("div",He,[e.createVNode(A,{modelValue:i.value.https_redirect_status_code,"onUpdate:modelValue":d[2]||(d[2]=S=>i.value.https_redirect_status_code=S),"data-testid":"route-form-http-redirect-status-code",items:e.unref(ue),label:e.unref(f)("form.fields.https_redirect_status_code.label"),readonly:m.readonly,width:"100%"},null,8,["modelValue","items","label","readonly"]),e.createVNode(x,{modelValue:i.value.priority,"onUpdate:modelValue":d[3]||(d[3]=S=>i.value.priority=S),autocomplete:"off","data-testid":"route-form-priority",label:e.unref(f)("form.fields.priority.label"),"label-attributes":{info:e.unref(f)("form.fields.priority.tooltip"),tooltipAttributes:{maxWidth:"400"}},readonly:m.readonly,type:"number"},null,8,["modelValue","label","label-attributes","readonly"]),b(["http","https","ws","wss","tls","tcp","udp","tls_passthrough"])?(e.openBlock(),e.createBlock(n,{key:0,modelValue:i.value.strip_path,"onUpdate:modelValue":d[4]||(d[4]=S=>i.value.strip_path=S),"data-testid":"route-form-strip-path",label:e.unref(f)("form.fields.strip_path.label")},null,8,["modelValue","label"])):e.createCommentVNode("",!0),e.createVNode(n,{modelValue:i.value.preserve_host,"onUpdate:modelValue":d[5]||(d[5]=S=>i.value.preserve_host=S),"data-testid":"route-form-preserve-host",label:e.unref(f)("form.fields.preserve_host.label")},null,8,["modelValue","label"]),e.createVNode(n,{modelValue:i.value.request_buffering,"onUpdate:modelValue":d[6]||(d[6]=S=>i.value.request_buffering=S),"data-testid":"route-form-request-buffering",label:e.unref(f)("form.fields.request_buffering.label")},null,8,["modelValue","label"]),e.createVNode(n,{modelValue:i.value.response_buffering,"onUpdate:modelValue":d[7]||(d[7]=S=>i.value.response_buffering=S),"data-testid":"route-form-response-buffering",label:e.unref(f)("form.fields.response_buffering.label")},null,8,["modelValue","label"])])]),_:1},8,["modelValue","trigger-label"])],64)}}}),M=(r,V)=>{const f=r.__vccOpts||r;for(const[o,i]of V)f[o]=i;return f},Ke=M(Le,[["__scopeId","data-v-a5557199"]]),qe=M(e.defineComponent({__name:"RulesComposer",props:e.mergeModels({routeFlavors:{},tooltips:{}},{modelValue:{required:!0},modelModifiers:{}}),emits:["update:modelValue"],setup(r){const{i18n:{t:V}}=$.useI18n(),f=e.useModel(r,"modelValue"),o=r,i=e.computed(()=>[...o.routeFlavors.traditional?[{hash:`#${R.TRADITIONAL}`,title:V("form.flavors.traditional")}]:[],...o.routeFlavors.expressions?[{hash:`#${R.EXPRESSIONS}`,title:V("form.flavors.expressions")}]:[]]);return(c,s)=>{const k=e.resolveComponent("KTooltip"),b=e.resolveComponent("KTabs");return i.value.length>1?(e.openBlock(),e.createBlock(b,{key:0,modelValue:f.value,"onUpdate:modelValue":s[0]||(s[0]=m=>f.value=m),"data-testid":"route-form-config-tabs",tabs:i.value},e.createSlots({_:2},[c.routeFlavors.traditional?{name:`${e.unref(R).TRADITIONAL}-anchor`,fn:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(V)("form.flavors.traditional"))+" ",1),c.tooltips&&c.tooltips[e.unref(R).TRADITIONAL]?(e.openBlock(),e.createBlock(k,{key:0,class:"route-form-config-tabs-tooltip",text:c.tooltips[e.unref(R).TRADITIONAL],"tooltip-id":"route-form-config-tabs-tooltip-traditional"},{default:e.withCtx(()=>[e.createVNode(e.unref(q.InfoIcon),{color:e.unref(Ve),size:e.unref(me),tabindex:"0"},null,8,["color","size"])]),_:1},8,["text"])):e.createCommentVNode("",!0)]),key:"0"}:void 0,c.routeFlavors.expressions?{name:`${e.unref(R).EXPRESSIONS}-anchor`,fn:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(V)("form.flavors.expressions"))+" ",1),c.tooltips&&c.tooltips[e.unref(R).EXPRESSIONS]?(e.openBlock(),e.createBlock(k,{key:0,class:"route-form-config-tabs-tooltip",text:c.tooltips[e.unref(R).EXPRESSIONS],"tooltip-id":"route-form-config-tabs-tooltip-expressions"},{default:e.withCtx(()=>[e.createVNode(e.unref(q.InfoIcon),{color:e.unref(Ve),size:e.unref(me),tabindex:"0"},null,8,["color","size"])]),_:1},8,["text"])):e.createCommentVNode("",!0)]),key:"1"}:void 0,c.routeFlavors.traditional?{name:e.unref(R).TRADITIONAL,fn:e.withCtx(()=>[e.renderSlot(c.$slots,"before-content",{},void 0,!0),e.renderSlot(c.$slots,e.unref(R).TRADITIONAL,{},void 0,!0)]),key:"2"}:void 0,c.routeFlavors.expressions?{name:e.unref(R).EXPRESSIONS,fn:e.withCtx(()=>[e.renderSlot(c.$slots,"before-content",{},void 0,!0),e.renderSlot(c.$slots,e.unref(R).EXPRESSIONS,{},void 0,!0)]),key:"3"}:void 0]),1032,["modelValue","tabs"])):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.renderSlot(c.$slots,"before-content",{},void 0,!0),c.routeFlavors.traditional?e.renderSlot(c.$slots,e.unref(R).TRADITIONAL,{key:0},void 0,!0):c.routeFlavors.expressions?e.renderSlot(c.$slots,e.unref(R).EXPRESSIONS,{key:1},void 0,!0):e.createCommentVNode("",!0)],64))}}}),[["__scopeId","data-v-aeccecbe"]]),Ge={class:"routing-rules-entities-controls-container"},Q=M(e.defineComponent({__name:"RuleControls",props:{routingRulesEntity:{},isAddDisabled:{type:Boolean}},emits:["remove","add"],setup(r){return(V,f)=>{const o=e.resolveComponent("KButton");return e.openBlock(),e.createElementBlock("div",Ge,[e.createVNode(o,{appearance:"tertiary",class:"remove-button","data-testid":`remove-${V.routingRulesEntity}`,icon:"",onClick:f[0]||(f[0]=i=>V.$emit("remove"))},{default:e.withCtx(()=>[e.createVNode(e.unref(q.TrashIcon),{color:e.unref(Te)},null,8,["color"])]),_:1},8,["data-testid"]),e.createVNode(o,{appearance:"tertiary","data-testid":`add-${V.routingRulesEntity}`,disabled:V.isAddDisabled,icon:"",onClick:f[1]||(f[1]=i=>V.$emit("add"))},{default:e.withCtx(()=>[e.createVNode(e.unref(q.AddIcon))]),_:1},8,["data-testid","disabled"])])}}}),[["__scopeId","data-v-e98e1efc"]]),je={class:"routing-rule-container"},We=M(e.defineComponent({__name:"DestinationRules",props:{modelValue:{required:!0},modelModifiers:{}},emits:e.mergeModels(["add","remove"],["update:modelValue"]),setup(r,{emit:V}){const{i18n:{t:f}}=$.useI18n(),o=e.useModel(r,"modelValue"),i=V;return(c,s)=>{const k=e.resolveComponent("KLabel"),b=e.resolveComponent("KInput");return e.openBlock(),e.createElementBlock("div",je,[s[1]||(s[1]=e.createElementVNode("hr",null,null,-1)),e.createVNode(k,{info:e.unref(f)("form.fields.destinations.tooltip")},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(f)("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(o.value,(m,d)=>(e.openBlock(),e.createElementBlock("div",{key:d,class:"routing-rule-input"},[e.createVNode(b,{modelValue:o.value[d].ip,"onUpdate:modelValue":g=>o.value[d].ip=g,modelModifiers:{trim:!0},"data-testid":`route-form-destinations-ip-input-${d+1}`,placeholder:e.unref(f)("form.fields.destinations.ip.placeholder")},null,8,["modelValue","onUpdate:modelValue","data-testid","placeholder"]),e.createVNode(b,{modelValue:o.value[d].port,"onUpdate:modelValue":g=>o.value[d].port=g,modelModifiers:{number:!0},"data-testid":`route-form-destinations-port-input-${d+1}`,max:"65535",min:"0",placeholder:e.unref(f)("form.fields.destinations.port.placeholder"),type:"number"},null,8,["modelValue","onUpdate:modelValue","data-testid","placeholder"]),e.createVNode(Q,{"is-add-disabled":d!==o.value.length-1,"routing-rules-entity":e.unref(l).DESTINATIONS,onAdd:s[0]||(s[0]=g=>i("add")),onRemove:g=>i("remove",d)},null,8,["is-add-disabled","routing-rules-entity","onRemove"])]))),128))]),_:1})])}}}),[["__scopeId","data-v-94f91fcd"]]),Xe={class:"routing-rule-container"},ze=M(e.defineComponent({__name:"HeaderRules",props:{modelValue:{required:!0},modelModifiers:{}},emits:e.mergeModels(["add","remove"],["update:modelValue"]),setup(r,{emit:V}){const{i18n:{t:f}}=$.useI18n(),o=e.useModel(r,"modelValue"),i=V;return(c,s)=>{const k=e.resolveComponent("KLabel"),b=e.resolveComponent("KInput");return e.openBlock(),e.createElementBlock("div",Xe,[s[1]||(s[1]=e.createElementVNode("hr",null,null,-1)),e.createVNode(k,{info:e.unref(f)("form.fields.headers.tooltip")},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(f)("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(o.value,(m,d)=>(e.openBlock(),e.createElementBlock("div",{key:d,class:"routing-rule-input"},[e.createVNode(b,{modelValue:o.value[d].header,"onUpdate:modelValue":g=>o.value[d].header=g,modelModifiers:{trim:!0},"data-testid":`route-form-headers-name-input-${d+1}`,placeholder:e.unref(f)("form.fields.headers.name.placeholder")},null,8,["modelValue","onUpdate:modelValue","data-testid","placeholder"]),e.createVNode(b,{modelValue:o.value[d].values,"onUpdate:modelValue":g=>o.value[d].values=g,modelModifiers:{trim:!0},"data-testid":`route-form-headers-values-input-${d+1}`,placeholder:e.unref(f)("form.fields.headers.values.placeholder")},null,8,["modelValue","onUpdate:modelValue","data-testid","placeholder"]),e.createVNode(Q,{"is-add-disabled":d!==o.value.length-1,"routing-rules-entity":e.unref(l).HEADERS,onAdd:s[0]||(s[0]=g=>i("add")),onRemove:g=>i("remove",d)},null,8,["is-add-disabled","routing-rules-entity","onRemove"])]))),128))]),_:1})])}}}),[["__scopeId","data-v-df4450cd"]]),Je={class:"routing-rule-container"},Qe=M(e.defineComponent({__name:"HostRules",props:{modelValue:{required:!0},modelModifiers:{}},emits:e.mergeModels(["add","remove"],["update:modelValue"]),setup(r,{emit:V}){const{i18n:{t:f}}=$.useI18n(),o=e.useModel(r,"modelValue"),i=V;return(c,s)=>{const k=e.resolveComponent("KLabel"),b=e.resolveComponent("KInput");return e.openBlock(),e.createElementBlock("div",Je,[s[1]||(s[1]=e.createElementVNode("hr",null,null,-1)),e.createVNode(k,{info:e.unref(f)("form.fields.hosts.tooltip")},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(f)("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(o.value,(m,d)=>(e.openBlock(),e.createElementBlock("div",{key:d,class:"routing-rule-input"},[e.createVNode(b,{modelValue:o.value[d],"onUpdate:modelValue":g=>o.value[d]=g,modelModifiers:{trim:!0},"data-testid":`route-form-hosts-input-${d+1}`,placeholder:e.unref(f)("form.fields.hosts.placeholder")},null,8,["modelValue","onUpdate:modelValue","data-testid","placeholder"]),e.createVNode(Q,{"is-add-disabled":d!==o.value.length-1,"routing-rules-entity":e.unref(l).HOSTS,onAdd:s[0]||(s[0]=g=>i("add")),onRemove:g=>i("remove",d)},null,8,["is-add-disabled","routing-rules-entity","onRemove"])]))),128))]),_:1})])}}}),[["__scopeId","data-v-f229e100"]]),Ye={class:"routing-rule-container"},Ze={class:"routing-rule-input"},ve={class:"methods-input-container"},et={key:0,class:"routing-rule-container"},tt=M(e.defineComponent({__name:"MethodRules",props:{methods:{required:!0},methodsModifiers:{},customMethods:{required:!0},customMethodsModifiers:{}},emits:e.mergeModels(["remove"],["update:methods","update:customMethods"]),setup(r,{emit:V}){const{i18n:{t:f}}=$.useI18n(),o=e.useModel(r,"methods"),i=e.useModel(r,"customMethods"),c=V,s=k=>{i.value.length===1?i.value[0]="":i.value.splice(k,1)};return(k,b)=>{const m=e.resolveComponent("KLabel"),d=e.resolveComponent("KInputSwitch"),g=e.resolveComponent("KBadge"),A=e.resolveComponent("KButton"),x=e.resolveComponent("KInput");return e.openBlock(),e.createElementBlock("div",Ye,[b[2]||(b[2]=e.createElementVNode("hr",null,null,-1)),e.createVNode(m,null,{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(f)("form.fields.methods.label")),1)]),_:1}),e.createElementVNode("div",Ze,[e.createElementVNode("div",ve,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(Object.keys(o.value),n=>(e.openBlock(),e.createElementBlock("div",{key:n,class:"methods-input"},[e.createVNode(d,{modelValue:o.value[n],"onUpdate:modelValue":w=>o.value[n]=w,"data-testid":`${n.toLowerCase()}-method-toggle`},null,8,["modelValue","onUpdate:modelValue","data-testid"]),e.createVNode(g,{appearance:Object.values(e.unref(ke.BadgeMethodAppearances)).includes(n.toLowerCase())?n.toLowerCase():"custom"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(n.toLowerCase()),1)]),_:2},1032,["appearance"])]))),128))]),e.createVNode(A,{appearance:"tertiary",class:"remove-button","data-testid":"remove-methods",icon:"",onClick:b[0]||(b[0]=n=>c("remove"))},{default:e.withCtx(()=>[e.createVNode(e.unref(q.TrashIcon),{color:e.unref(Te)},null,8,["color"])]),_:1})]),o.value.CUSTOM?(e.openBlock(),e.createElementBlock("div",et,[e.createVNode(m,{info:e.unref(f)("form.fields.methods.custom.tooltip")},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(f)("form.fields.methods.custom.label")),1)]),_:1},8,["info"]),e.createVNode(e.TransitionGroup,{name:"appear"},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(i.value,(n,w)=>(e.openBlock(),e.createElementBlock("div",{key:w,class:"routing-rule-input"},[e.createVNode(x,{modelValue:i.value[w],"onUpdate:modelValue":S=>i.value[w]=S,modelModifiers:{trim:!0},"data-testid":`route-form-custom-method-input-${w+1}`,placeholder:e.unref(f)("form.fields.methods.custom.placeholder")},null,8,["modelValue","onUpdate:modelValue","data-testid","placeholder"]),e.createVNode(Q,{"is-add-disabled":w!==i.value.length-1,"routing-rules-entity":e.unref(l).CUSTOM_METHOD,onAdd:b[1]||(b[1]=S=>i.value.push("")),onRemove:S=>s(w)},null,8,["is-add-disabled","routing-rules-entity","onRemove"])]))),128))]),_:1})])):e.createCommentVNode("",!0)])}}}),[["__scopeId","data-v-41700dbb"]]),ot={class:"routing-rule-container"},rt=M(e.defineComponent({__name:"PathRules",props:{modelValue:{required:!0},modelModifiers:{}},emits:e.mergeModels(["add","remove"],["update:modelValue"]),setup(r,{emit:V}){const{i18n:{t:f}}=$.useI18n(),o=e.useModel(r,"modelValue"),i=V;return(c,s)=>{const k=e.resolveComponent("KLabel"),b=e.resolveComponent("KInput");return e.openBlock(),e.createElementBlock("div",ot,[e.createVNode(k,null,{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(f)("form.fields.paths.label")),1)]),_:1}),e.createVNode(e.TransitionGroup,{name:"appear"},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(o.value,(m,d)=>(e.openBlock(),e.createElementBlock("div",{key:d,class:"routing-rule-input"},[e.createVNode(b,{modelValue:o.value[d],"onUpdate:modelValue":g=>o.value[d]=g,modelModifiers:{trim:!0},"data-testid":`route-form-paths-input-${d+1}`,placeholder:e.unref(f)("form.fields.paths.placeholder")},null,8,["modelValue","onUpdate:modelValue","data-testid","placeholder"]),e.createVNode(Q,{"is-add-disabled":d!==o.value.length-1,"routing-rules-entity":e.unref(l).PATHS,onAdd:s[0]||(s[0]=g=>i("add")),onRemove:g=>i("remove",d)},null,8,["is-add-disabled","routing-rules-entity","onRemove"])]))),128))]),_:1})])}}}),[["__scopeId","data-v-99993752"]]),lt={class:"routing-rule-container"},st=M(e.defineComponent({__name:"SniRules",props:{modelValue:{required:!0},modelModifiers:{}},emits:e.mergeModels(["add","remove"],["update:modelValue"]),setup(r,{emit:V}){const{i18n:{t:f}}=$.useI18n(),o=e.useModel(r,"modelValue"),i=V;return(c,s)=>{const k=e.resolveComponent("KLabel"),b=e.resolveComponent("KInput");return e.openBlock(),e.createElementBlock("div",lt,[s[1]||(s[1]=e.createElementVNode("hr",null,null,-1)),e.createVNode(k,{info:e.unref(f)("form.fields.snis.tooltip")},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(f)("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(o.value,(m,d)=>(e.openBlock(),e.createElementBlock("div",{key:d,class:"routing-rule-input"},[e.createVNode(b,{modelValue:o.value[d],"onUpdate:modelValue":g=>o.value[d]=g,modelModifiers:{trim:!0},"data-testid":`route-form-snis-input-${d+1}`,placeholder:e.unref(f)("form.fields.snis.placeholder")},null,8,["modelValue","onUpdate:modelValue","data-testid","placeholder"]),e.createVNode(Q,{"is-add-disabled":d!==o.value.length-1,"routing-rules-entity":e.unref(l).SNIS,onAdd:s[0]||(s[0]=g=>i("add")),onRemove:g=>i("remove",d)},null,8,["is-add-disabled","routing-rules-entity","onRemove"])]))),128))]),_:1})])}}}),[["__scopeId","data-v-baae40df"]]),nt={class:"routing-rule-container"},at=M(e.defineComponent({__name:"SourceRules",props:{modelValue:{required:!0},modelModifiers:{}},emits:e.mergeModels(["add","remove"],["update:modelValue"]),setup(r,{emit:V}){const{i18n:{t:f}}=$.useI18n(),o=e.useModel(r,"modelValue"),i=V;return(c,s)=>{const k=e.resolveComponent("KLabel"),b=e.resolveComponent("KInput");return e.openBlock(),e.createElementBlock("div",nt,[s[1]||(s[1]=e.createElementVNode("hr",null,null,-1)),e.createVNode(k,{info:e.unref(f)("form.fields.sources.tooltip")},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(f)("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(o.value,(m,d)=>(e.openBlock(),e.createElementBlock("div",{key:d,class:"routing-rule-input"},[e.createVNode(b,{modelValue:o.value[d].ip,"onUpdate:modelValue":g=>o.value[d].ip=g,modelModifiers:{trim:!0},"data-testid":`route-form-sources-ip-input-${d+1}`,placeholder:e.unref(f)("form.fields.sources.ip.placeholder")},null,8,["modelValue","onUpdate:modelValue","data-testid","placeholder"]),e.createVNode(b,{modelValue:o.value[d].port,"onUpdate:modelValue":g=>o.value[d].port=g,modelModifiers:{number:!0},"data-testid":`route-form-sources-port-input-${d+1}`,max:"65535",min:"0",placeholder:e.unref(f)("form.fields.sources.port.placeholder"),type:"number"},null,8,["modelValue","onUpdate:modelValue","data-testid","placeholder"]),e.createVNode(Q,{"is-add-disabled":d!==o.value.length-1,"routing-rules-entity":e.unref(l).SOURCES,onAdd:s[0]||(s[0]=g=>i("add")),onRemove:g=>i("remove",d)},null,8,["is-add-disabled","routing-rules-entity","onRemove"])]))),128))]),_:1})])}}}),[["__scopeId","data-v-9cd541a4"]]),it={class:"route-form-routing-rules-title-container"},dt={class:"routing-rules-title"},ct={key:1,class:"route-form-routing-rules-selector-container"},pt={class:"route-form-routing-rules-selector-options"},ft=["aria-disabled","data-testid","onClick"],ut={class:"route-form-fields-container route-form-advanced-fields-container"},mt=M(e.defineComponent({__name:"TraditionalRules",props:e.mergeModels({protocols:{},hideAdvanced:{type:Boolean},readonly:{type:Boolean}},{fields:{required:!0},fieldsModifiers:{},customMethods:{required:!0},customMethodsModifiers:{}}),emits:["update:fields","update:customMethods"],setup(r){const{i18nT:V,i18n:f,i18n:{t:o}}=$.useI18n(),i=f.source.form.protocols,c=r,s=e.useModel(r,"fields"),k=e.useModel(r,"customMethods"),b=e.ref(!0),m=e.computed(()=>c.protocols.split(",")||[]),d=u=>{switch(u){case l.PATHS:Array.isArray(s.value.paths)?s.value.paths.push([...D[l.PATHS]][0]):s.value.paths=[...D[l.PATHS]];break;case l.SNIS:Array.isArray(s.value.snis)?s.value.snis.push([...D[l.SNIS]][0]):s.value.snis=[...D[l.SNIS]];break;case l.HOSTS:Array.isArray(s.value.hosts)?s.value.hosts.push([...D[l.HOSTS]][0]):s.value.hosts=[...D[l.HOSTS]];break;case l.METHODS:s.value.methods||(s.value.methods={...D[l.METHODS]});break;case l.HEADERS:Array.isArray(s.value.headers)?s.value.headers.push({...D[l.HEADERS][0]}):s.value.headers=[{...D[l.HEADERS][0]}];break;case l.SOURCES:Array.isArray(s.value.sources)?s.value.sources.push({...D[l.SOURCES][0]}):s.value.sources=[{...D[l.SOURCES][0]}];break;case l.DESTINATIONS:Array.isArray(s.value.destinations)?s.value.destinations.push({...D[l.DESTINATIONS][0]}):s.value.destinations=[{...D[l.DESTINATIONS][0]}];break}},g=async(u,a)=>{if(typeof a<"u"){const E=s.value[u];if(Array.isArray(E)&&(E.splice(a,1),E.length>0))return}await e.nextTick(()=>{delete s.value[u],u===l.METHODS&&(k.value=[""])})},A=u=>u.some(a=>c.protocols.includes(a)),x=e.computed(()=>{const u=Object.keys(D);return!Object.keys(s.value).some(a=>u.includes(a))}),n=e.computed(()=>{if(A(["tls_passthrough"]))return[S(l.SNIS)];const u=te[c.protocols].map(a=>S(a));return[[...u].splice(0,u.length-1).join(", "),u[u.length-1]]}),w=e.computed(()=>{var u;return(u=te[c.protocols])==null?void 0:u.filter(a=>!s.value[a])}),S=u=>{var E;return((E=f.source.form.fields[u])==null?void 0:E.label)||""},y=u=>{const a=new Set(Object.keys(D)),E=new Set(te[u]);for(const L of Object.keys(s.value))a.has(L)&&!E.has(L)&&g(L)};return e.watch(()=>c.protocols,u=>{y(u)},{immediate:!0}),(u,a)=>{const E=e.resolveComponent("KAlert"),L=e.resolveComponent("KCard"),P=e.resolveComponent("KSelect"),W=e.resolveComponent("KInput"),X=e.resolveComponent("KCheckbox"),re=e.resolveComponent("KCollapse");return e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createVNode(L,null,{title:e.withCtx(()=>[e.createElementVNode("div",it,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(m.value,h=>(e.openBlock(),e.createElementBlock("span",{key:h,class:"protocol-title"},e.toDisplayString(h.toUpperCase()),1))),128)),e.createElementVNode("span",dt,e.toDisplayString(e.unref(o)("form.sections.routingRules.title")),1)])]),default:e.withCtx(()=>[x.value?(e.openBlock(),e.createBlock(E,{key:0,appearance:"warning","data-testid":"routing-rules-warning"},{default:e.withCtx(()=>[e.createVNode(e.unref(V),{keypath:"form.warning.rulesMessage"},{protocol:e.withCtx(()=>[e.createElementVNode("b",null,e.toDisplayString(e.unref(i)[u.protocols]),1)]),routingRules:e.withCtx(()=>[e.createVNode(e.unref(V),{keypath:n.value[1]?"form.warning.multipleRules":"form.warning.singleRule"},{routingRules:e.withCtx(()=>[e.createElementVNode("b",null,e.toDisplayString(n.value[0]),1)]),lastRoutingRule:e.withCtx(()=>[e.createElementVNode("b",null,e.toDisplayString(n.value[1]),1)]),_:1},8,["keypath"])]),_:1})]),_:1})):e.createCommentVNode("",!0),e.createVNode(e.TransitionGroup,{name:"appear"},{default:e.withCtx(()=>[s.value.paths?(e.openBlock(),e.createBlock(rt,{key:"paths-container",modelValue:s.value.paths,"onUpdate:modelValue":a[0]||(a[0]=h=>s.value.paths=h),onAdd:a[1]||(a[1]=h=>d(e.unref(l).PATHS)),onRemove:a[2]||(a[2]=h=>g(e.unref(l).PATHS,h))},null,8,["modelValue"])):e.createCommentVNode("",!0),s.value.snis?(e.openBlock(),e.createBlock(st,{key:"snis-container",modelValue:s.value.snis,"onUpdate:modelValue":a[3]||(a[3]=h=>s.value.snis=h),onAdd:a[4]||(a[4]=h=>d(e.unref(l).SNIS)),onRemove:a[5]||(a[5]=h=>g(e.unref(l).SNIS,h))},null,8,["modelValue"])):e.createCommentVNode("",!0),s.value.hosts?(e.openBlock(),e.createBlock(Qe,{key:"hosts-container",modelValue:s.value.hosts,"onUpdate:modelValue":a[6]||(a[6]=h=>s.value.hosts=h),onAdd:a[7]||(a[7]=h=>d(e.unref(l).HOSTS)),onRemove:a[8]||(a[8]=h=>g(e.unref(l).HOSTS,h))},null,8,["modelValue"])):e.createCommentVNode("",!0),s.value.methods?(e.openBlock(),e.createBlock(tt,{key:"methods-container","custom-methods":k.value,"onUpdate:customMethods":a[9]||(a[9]=h=>k.value=h),methods:s.value.methods,"onUpdate:methods":a[10]||(a[10]=h=>s.value.methods=h),onRemove:a[11]||(a[11]=h=>g(e.unref(l).METHODS))},null,8,["custom-methods","methods"])):e.createCommentVNode("",!0),s.value.headers?(e.openBlock(),e.createBlock(ze,{key:"headers-container",modelValue:s.value.headers,"onUpdate:modelValue":a[12]||(a[12]=h=>s.value.headers=h),onAdd:a[13]||(a[13]=h=>d(e.unref(l).HEADERS)),onRemove:a[14]||(a[14]=h=>g(e.unref(l).HEADERS,h))},null,8,["modelValue"])):e.createCommentVNode("",!0),s.value.sources?(e.openBlock(),e.createBlock(at,{key:"sources-container",modelValue:s.value.sources,"onUpdate:modelValue":a[15]||(a[15]=h=>s.value.sources=h),onAdd:a[16]||(a[16]=h=>d(e.unref(l).SOURCES)),onRemove:a[17]||(a[17]=h=>g(e.unref(l).SOURCES,h))},null,8,["modelValue"])):e.createCommentVNode("",!0),s.value.destinations?(e.openBlock(),e.createBlock(We,{key:"destinations-container",modelValue:s.value.destinations,"onUpdate:modelValue":a[18]||(a[18]=h=>s.value.destinations=h),onAdd:a[19]||(a[19]=h=>d(e.unref(l).DESTINATIONS)),onRemove:a[20]||(a[20]=h=>g(e.unref(l).DESTINATIONS,h))},null,8,["modelValue"])):e.createCommentVNode("",!0)]),_:1}),w.value?(e.openBlock(),e.createElementBlock("div",ct,[a[29]||(a[29]=e.createElementVNode("hr",null,null,-1)),e.createElementVNode("div",pt,[e.createElementVNode("ul",null,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(te)[u.protocols],h=>(e.openBlock(),e.createElementBlock("li",{key:h},[e.createElementVNode("label",{"aria-disabled":!!s.value[h],class:e.normalizeClass(["option",{"is-selected":s.value[h]}]),"data-testid":`routing-rule-${h}`,role:"button",onClick:K=>d(h)},e.toDisplayString(S(h)),11,ft)]))),128))])])])):e.createCommentVNode("",!0)]),_:1}),u.hideAdvanced?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(re,{key:0,modelValue:b.value,"onUpdate:modelValue":a[28]||(a[28]=h=>b.value=h),class:"route-form-advanced-fields-collapse","trigger-alignment":"leading","trigger-label":e.unref(o)("form.viewAdvancedFields")},{default:e.withCtx(()=>[e.createElementVNode("div",ut,[s.value.paths?(e.openBlock(),e.createBlock(P,{key:0,modelValue:s.value.path_handling,"onUpdate:modelValue":a[21]||(a[21]=h=>s.value.path_handling=h),"data-testid":"route-form-path-handling",items:e.unref(_e),label:e.unref(o)("form.fields.path_handling.label"),"label-attributes":{info:e.unref(o)("form.fields.path_handling.tooltip"),tooltipAttributes:{maxWidth:"400"}},readonly:u.readonly,width:"100%"},null,8,["modelValue","items","label","label-attributes","readonly"])):e.createCommentVNode("",!0),e.createVNode(P,{modelValue:s.value.https_redirect_status_code,"onUpdate:modelValue":a[22]||(a[22]=h=>s.value.https_redirect_status_code=h),"data-testid":"route-form-http-redirect-status-code",items:e.unref(ue),label:e.unref(o)("form.fields.https_redirect_status_code.label"),readonly:u.readonly,width:"100%"},null,8,["modelValue","items","label","readonly"]),e.createVNode(W,{modelValue:s.value.regex_priority,"onUpdate:modelValue":a[23]||(a[23]=h=>s.value.regex_priority=h),autocomplete:"off","data-testid":"route-form-regex-priority",label:e.unref(o)("form.fields.regex_priority.label"),readonly:u.readonly,type:"number"},null,8,["modelValue","label","readonly"]),A(["http","https","ws","wss","tls","tcp","udp","tls_passthrough"])?(e.openBlock(),e.createBlock(X,{key:1,modelValue:s.value.strip_path,"onUpdate:modelValue":a[24]||(a[24]=h=>s.value.strip_path=h),"data-testid":"route-form-strip-path",label:e.unref(o)("form.fields.strip_path.label")},null,8,["modelValue","label"])):e.createCommentVNode("",!0),e.createVNode(X,{modelValue:s.value.preserve_host,"onUpdate:modelValue":a[25]||(a[25]=h=>s.value.preserve_host=h),"data-testid":"route-form-preserve-host",label:e.unref(o)("form.fields.preserve_host.label")},null,8,["modelValue","label"]),e.createVNode(X,{modelValue:s.value.request_buffering,"onUpdate:modelValue":a[26]||(a[26]=h=>s.value.request_buffering=h),"data-testid":"route-form-request-buffering",label:e.unref(o)("form.fields.request_buffering.label")},null,8,["modelValue","label"]),e.createVNode(X,{modelValue:s.value.response_buffering,"onUpdate:modelValue":a[27]||(a[27]=h=>s.value.response_buffering=h),"data-testid":"route-form-response-buffering",label:e.unref(o)("form.fields.response_buffering.label")},null,8,["modelValue","label"])])]),_:1},8,["modelValue","trigger-label"]))],64)}}}),[["__scopeId","data-v-414b2eed"]]),Ie=M(e.defineComponent({__name:"RouteFormRulesComposer",props:e.mergeModels({protocols:{},routeFlavors:{},readonly:{type:Boolean},recordFlavor:{},showExpressionsModalEntry:{type:Boolean},tooltips:{}},{fields:{default:()=>e.reactive({...oe,paths:[""],regex_priority:0,path_handling:"v0",expression:"",priority:0})},fieldsModifiers:{},customMethods:{default:()=>e.reactive([])},customMethodsModifiers:{},hash:{},hashModifiers:{}}),emits:e.mergeModels(["notify","update:payload"],["update:fields","update:customMethods","update:hash"]),setup(r,{emit:V}){const{i18n:{t:f}}=$.useI18n(),o=e.useModel(r,"fields"),i=e.useModel(r,"customMethods"),c=e.useModel(r,"hash"),s=r,k=V,b=e.computed(()=>{var u;const y=(u=c.value)==null?void 0:u.substring(1);switch(y){case R.TRADITIONAL:case R.EXPRESSIONS:return y}if(s.routeFlavors.traditional)return R.TRADITIONAL;if(s.routeFlavors.expressions)return R.EXPRESSIONS}),m=e.computed(()=>s.recordFlavor?s.recordFlavor:b.value),d=(y,u)=>{if(y===l.PATHS||y===l.HOSTS||y===l.SNIS)return[...u].filter(a=>!!a);if(y===l.SOURCES||y===l.DESTINATIONS)return[...u].filter(a=>!!a.ip).map(a=>({...a,port:!a.port&&a.port!==0?null:a.port}));if(y===l.HEADERS)return[...u].filter(a=>!!a.header)},g=e.computed(()=>{if(m.value!==R.TRADITIONAL)return[];const y=o.value;return y.methods?Object.entries(y.methods).reduce((u,[a,E])=>(E&&u.push(a),u),[]):[]}),A=y=>y.some(u=>s.protocols.includes(u)),x=()=>{if(m.value!==R.TRADITIONAL)return null;const y=o.value,u=d(l.HEADERS,y.headers||[])||D[l.HEADERS];return u.length===0?null:u.reduce((a,E)=>(a[E.header]=E.values.split(","),a),{})},n=y=>y!=null&&y.length?y:null,w=e.computed(()=>({https_redirect_status_code:o.value.https_redirect_status_code,strip_path:A(["grpc","gprcs"])?!1:o.value.strip_path,preserve_host:o.value.preserve_host,request_buffering:o.value.request_buffering,response_buffering:o.value.response_buffering})),S=e.computed(()=>{var y,u;switch(m.value){case R.TRADITIONAL:{const a=o.value,E={...w.value,methods:null,hosts:n(d(l.HOSTS,a.hosts||[])),paths:n(d(l.PATHS,a.paths||[])),headers:x(),regex_priority:Number(a.regex_priority),path_handling:a.path_handling,sources:n(d(l.SOURCES,a.sources||[])),destinations:n(d(l.DESTINATIONS,a.destinations||[])),snis:n(d(l.SNIS,a.snis||[]))};if((y=g.value)!=null&&y.length&&(E.methods=[...g.value],(u=g.value)!=null&&u.includes("CUSTOM"))){const L=E.methods.indexOf("CUSTOM");L!==-1&&E.methods.splice(L,1),i.value.forEach(P=>{var W;P&&E.methods&&!((W=E.methods)!=null&&W.includes(P))&&E.methods.push(P.toUpperCase())})}return{type:m.value,payload:E}}case R.EXPRESSIONS:{const a=o.value;return{type:m.value,payload:{...w.value,expression:a.expression,priority:Number(a.priority)}}}default:return}});return e.watch(S,y=>{k("update:payload",y)},{deep:!0,immediate:!0}),(y,u)=>{const a=e.resolveComponent("KAlert");return y.routeFlavors.traditional||y.routeFlavors.expressions?(e.openBlock(),e.createBlock(qe,{key:0,modelValue:c.value,"onUpdate:modelValue":u[4]||(u[4]=E=>c.value=E),"route-flavors":y.routeFlavors,tooltips:y.tooltips},e.createSlots({"before-content":e.withCtx(()=>[y.routeFlavors.traditional&&y.routeFlavors.expressions&&(!y.recordFlavor||y.recordFlavor!==b.value)?(e.openBlock(),e.createBlock(a,{key:0,appearance:y.recordFlavor?"warning":"info",class:"route-form-config-type-immutable-alert","data-testid":"route-config-type-immutable-alert"},{default:e.withCtx(()=>[y.recordFlavor?y.recordFlavor!==b.value?(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createTextVNode(e.toDisplayString(e.unref(f)("form.warning.cannotChangeFlavor.edit",{format:e.unref(f)(`form.flavors.${y.recordFlavor}`)})),1)],64)):e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createTextVNode(e.toDisplayString(e.unref(f)("form.warning.cannotChangeFlavor.create")),1)],64))]),_:1},8,["appearance"])):e.createCommentVNode("",!0)]),_:2},[!y.recordFlavor||y.recordFlavor===e.unref(R).TRADITIONAL?{name:e.unref(R).TRADITIONAL,fn:e.withCtx(()=>[e.createVNode(mt,{"custom-methods":i.value,"onUpdate:customMethods":u[0]||(u[0]=E=>i.value=E),fields:o.value,"onUpdate:fields":u[1]||(u[1]=E=>o.value=E),protocols:y.protocols,readonly:y.readonly},null,8,["custom-methods","fields","protocols","readonly"])]),key:"0"}:void 0,!y.recordFlavor||y.recordFlavor===e.unref(R).EXPRESSIONS?{name:e.unref(R).EXPRESSIONS,fn:e.withCtx(()=>[e.createVNode(Ke,{fields:o.value,"onUpdate:fields":u[2]||(u[2]=E=>o.value=E),protocols:y.protocols,readonly:y.readonly,"show-expressions-modal-entry":y.showExpressionsModalEntry,onNotify:u[3]||(u[3]=E=>k("notify",E))},null,8,["fields","protocols","readonly","show-expressions-modal-entry"])]),key:"1"}:void 0]),1032,["modelValue","route-flavors","tooltips"])):e.createCommentVNode("",!0)}}}),[["__scopeId","data-v-b6ef2c61"]]),ht={class:"kong-ui-entities-route-form"},gt={key:1},yt={"data-testid":"no-search-results"},St={class:"route-form-service-dropdown-item"},bt={class:"select-item-label"},Ct={class:"select-item-description"},Et=M(e.defineComponent({__name:"RouteForm",props:{config:{type:Object,required:!0,validator:r=>!(!r||!["konnect","kongManager"].includes(r==null?void 0:r.app)||(r==null?void 0:r.app)==="konnect"&&!(r!=null&&r.controlPlaneId)||(r==null?void 0:r.app)==="kongManager"&&typeof(r==null?void 0:r.workspace)!="string"||!(r!=null&&r.cancelRoute))},routeId:{type:String,required:!1,default:""},serviceId:{type:String,required:!1,default:""},hideSectionsInfo:{type:Boolean,required:!1,default:!1},hideNameField:{type:Boolean,required:!1,default:!1},hideServiceField:{type:Boolean,required:!1,default:!1},routeFlavors:{type:Object,required:!1,default:()=>({traditional:!0})},configTabTooltips:{type:Object,required:!1,default:()=>{}},showExpressionsModalEntry:{type:Boolean,required:!1,default:!1}},emits:["update","error","loading","model-updated","notify"],setup(r,{expose:V,emit:f}){var ne;const o=r,i=f,c=e.ref(o.routeFlavors.traditional?`#${R.TRADITIONAL}`:o.routeFlavors.expressions?`#${R.EXPRESSIONS}`:""),s=e.computed(()=>{if(c.value)return c.value.substring(1)}),k=e.ref(void 0),b=e.computed(()=>{if(k.value)return k.value;if(s.value)return s.value;if(o.routeFlavors.traditional)return R.TRADITIONAL;if(o.routeFlavors.expressions)return R.EXPRESSIONS}),{i18n:{t:m}}=$.useI18n(),d=Ee.useRouter(),{axiosInstance:g}=_.useAxios((ne=o.config)==null?void 0:ne.axiosRequestConfig),{getMessageFromError:A}=_.useErrors(),x=t=>t.name?`${t.name} - ${t.value}`:t.value,n=e.reactive({routeFlavors:o.routeFlavors,fields:{name:"",protocols:"http,https",tags:"",service_id:"",...oe,...!o.routeId&&{paths:[""]},regex_priority:0,path_handling:"v0",expression:"",priority:0},isReadonly:!1,errorMessage:""});e.watch(()=>o.routeFlavors,t=>{n.routeFlavors=t});const w=e.ref(),S=e.ref([""]),y=e.reactive({name:"",protocols:"http,https",tags:"",service_id:"",...oe,path_handling:"v0",regex_priority:0,expression:"",priority:0}),u=o.config.app==="konnect"||_.useGatewayFeatureSupported({gatewayInfo:o.config.gatewayInfo,supportedRange:{enterprise:["3.0"]}}),a=[{label:m("form.protocols.grpc"),value:"grpc"},{label:m("form.protocols.grpcs"),value:"grpcs"},{label:m("form.protocols.grpc,grpcs"),value:"grpc,grpcs"},{label:m("form.protocols.http"),value:"http"},{label:m("form.protocols.https"),value:"https"},{label:m("form.protocols.http,https"),value:"http,https"},{label:m("form.protocols.tcp"),value:"tcp"},{label:m("form.protocols.tls"),value:"tls"},{label:m("form.protocols.tls,udp"),value:"tls,udp"},{label:m("form.protocols.tcp,udp"),value:"tcp,udp"},{label:m("form.protocols.tcp,tls"),value:"tcp,tls"},{label:m("form.protocols.tcp,tls,udp"),value:"tcp,tls,udp"},{label:m("form.protocols.tls_passthrough"),value:"tls_passthrough"},{label:m("form.protocols.udp"),value:"udp"},...u?[{label:m("form.protocols.ws"),value:"ws"},{label:m("form.protocols.wss"),value:"wss"},{label:m("form.protocols.ws,wss"),value:"ws,wss"}]:[]],E=e.computed(()=>o.routeId?_.EntityBaseFormType.Edit:_.EntityBaseFormType.Create),L=e.computed(()=>{var t,p,C;return(C=(p=Z.form[(t=o.config)==null?void 0:t.app])==null?void 0:p.fetch)==null?void 0:C[o.serviceId?"forGatewayService":"all"].replace(/{serviceId}/gi,o.serviceId||"")}),P=()=>{var t;d.push((t=o.config)==null?void 0:t.cancelRoute)},W=t=>{i("loading",t)},X=t=>{i("error",t)},re=t=>{ae(n)&&(n.fields.methods={...D[l.METHODS]},t.forEach(p=>{n.fields.methods&&(n.fields.methods[p]=!0)}))},h=t=>Object.entries(t).map(p=>{var C;return{header:p[0],values:(C=p[1])==null?void 0:C.join()}}),K=t=>t.some(p=>n.fields.protocols.includes(p)),ie=t=>{var C,T;if(o.routeId){const I=typeof t.expression=="string"&&t.expression.length>0?R.EXPRESSIONS:R.TRADITIONAL;k.value=I,c.value=`#${I}`}(C=t==null?void 0:t.service)!=null&&C.id&&(n.fields.service_id=t.service.id),n.fields.name=(t==null?void 0:t.name)||"";const p=(t==null?void 0:t.tags)||[];n.fields.tags=(p==null?void 0:p.join(", "))||"",n.fields.preserve_host=typeof(t==null?void 0:t.preserve_host)>"u"?!1:t==null?void 0:t.preserve_host,n.fields.https_redirect_status_code=(t==null?void 0:t.https_redirect_status_code)||426,(T=t==null?void 0:t.protocols)!=null&&T.length&&(t.protocols.length>1?n.fields.protocols=t.protocols.join():n.fields.protocols=t.protocols[0]),n.fields.request_buffering=typeof(t==null?void 0:t.request_buffering)>"u"?!0:t==null?void 0:t.request_buffering,n.fields.response_buffering=typeof(t==null?void 0:t.response_buffering)>"u"?!0:t==null?void 0:t.response_buffering,n.fields.strip_path=typeof(t==null?void 0:t.strip_path)>"u"?!0:t==null?void 0:t.strip_path,ae(n)&&(n.fields.regex_priority=(t==null?void 0:t.regex_priority)||0,n.fields.path_handling=(t==null?void 0:t.path_handling)||"v0",t!=null&&t.paths&&(n.fields.paths=t.paths),t!=null&&t.snis&&(n.fields.snis=t.snis),t!=null&&t.hosts&&(n.fields.hosts=t.hosts),t!=null&&t.methods&&re(t.methods),t!=null&&t.headers&&(n.fields.headers=h(t.headers)),t!=null&&t.sources&&(n.fields.sources=t.sources),t!=null&&t.destinations&&(n.fields.destinations=t.destinations)),fe(n)&&(n.fields.expression=(t==null?void 0:t.expression)||"",n.fields.priority=(t==null?void 0:t.priority)||0),Object.assign(y,JSON.parse(JSON.stringify(n.fields)))},de=e.computed(()=>{var t;switch(b.value){case R.TRADITIONAL:{if(ae(n)){const p=n.fields.hosts?!!n.fields.hosts.filter(Boolean).length:null,C=n.fields.paths?!!n.fields.paths.filter(Boolean).length:null,T=n.fields.headers?n.fields.headers.some(({header:j})=>!!j):null,I=n.fields.snis?!!n.fields.snis.filter(Boolean).length:null,G=n.fields.destinations?n.fields.destinations.some(({ip:j})=>!!j):null,Y=n.fields.sources?n.fields.sources.some(({ip:j})=>!!j):null,O=((t=n.fields.methods)==null?void 0:t.CUSTOM)?S.value.some(j=>!!j):Object.values(n.fields.methods||{}).includes(!0);return!!n.fields.protocols&&(K(["http"])&&!!(p||O||C||T)||K(["https"])&&!!(p||O||C||T||I)||K(["grpc"])&&!!(p||C||T)||K(["grpcs","wss"])&&!!(p||C||T||I)||K(["udp","tls"])&&!!(G||Y||I)||K(["tcp"])&&!!(G||Y)||K(["tls_passthrough"])&&!!I||K(["ws"])&&!!(p||C||T))}break}case R.EXPRESSIONS:{if(fe(n))return n.fields.expression.length>0;break}}return!0}),ce=e.computed(()=>!Re(n.fields,y)),le=e.computed(()=>{var p,C;let t=`${o.config.apiBaseUrl}${Z.form[o.config.app][E.value][o.serviceId?"forGatewayService":"all"]}`;return o.config.app==="konnect"?t=t.replace(/{controlPlaneId}/gi,((p=o.config)==null?void 0:p.controlPlaneId)||"").replace(/{serviceId}/gi,o.serviceId||""):o.config.app==="kongManager"&&(t=t.replace(/\/{workspace}/gi,(C=o.config)!=null&&C.workspace?`/${o.config.workspace}`:"").replace(/{serviceId}/gi,o.serviceId||"")),t=t.replace(/{id}/gi,o.routeId),t});e.watch(()=>n.fields,()=>{i("model-updated",U.value)},{deep:!0});const U=e.computed(()=>{var t,p,C;return{...!o.hideNameField&&{name:n.fields.name||null},protocols:n.fields.protocols.split(","),tags:(p=(t=n.fields.tags.split(","))==null?void 0:t.map(T=>String(T||"").trim()))==null?void 0:p.filter(T=>T!==""),service:n.fields.service_id?{id:n.fields.service_id}:null,...(C=w.value)==null?void 0:C.payload}}),v=t=>{switch(b.value){case R.TRADITIONAL:{if(!("regex_priority"in t&&"path_handling"in t))return!1;break}case R.EXPRESSIONS:{if(!("priority"in t))return!1;break}}return"service"in t&&"tags"in t&&"protocols"in t},z=async t=>{var C;const p=t&&v(t)?t:U.value;try{n.isReadonly=!0;let T;E.value==="create"?T=await g.post(le.value,p):E.value==="edit"&&(T=((C=o.config)==null?void 0:C.app)==="konnect"?await g.put(le.value,p):await g.patch(le.value,p)),ie(T==null?void 0:T.data),i("update",T==null?void 0:T.data)}catch(T){n.errorMessage=A(T),i("error",T)}finally{n.isReadonly=!1}},{debouncedQueryChange:pe,loading:he,error:ge,loadItems:ye,results:Se}=_.useDebouncedFilter(o.config,Z.form[o.config.app].services,void 0,{fetchedItemsKey:"data",searchKeys:["id","name"]}),be=e.computed(()=>ge.value?m("errors.services.fetch"):""),se=e.computed(()=>{var t;return(t=Se.value)==null?void 0:t.map(p=>({label:p.id,name:p.name,value:p.id}))});return e.onBeforeMount(async()=>{!o.hideServiceField&&!o.serviceId?await ye():n.fields.service_id=o.serviceId}),e.onMounted(()=>{i("model-updated",U.value)}),V({saveFormData:z,payload:U}),(t,p)=>{const C=e.resolveComponent("KInput"),T=e.resolveComponent("KSelect");return e.openBlock(),e.createElementBlock("div",ht,[e.createVNode(e.unref(_.EntityBaseForm),{"can-submit":de.value&&ce.value,config:r.config,"edit-id":r.routeId,"entity-type":e.unref(_.SupportedEntityType).Route,"error-message":n.errorMessage||be.value,"fetch-url":L.value,"form-fields":U.value,"is-readonly":n.isReadonly,onCancel:P,"onFetch:error":X,"onFetch:success":ie,onLoading:W,onSubmit:z},{"form-actions":e.withCtx(()=>[e.renderSlot(t.$slots,"form-actions",{canSubmit:de.value&&ce.value,cancel:P,submit:z},void 0,!0)]),default:e.withCtx(()=>[e.createVNode(e.unref(_.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(C,{key:0,modelValue:n.fields.name,"onUpdate:modelValue":p[0]||(p[0]=I=>n.fields.name=I),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:n.isReadonly,type:"text"},null,8,["modelValue","label","placeholder","readonly"])),!r.hideServiceField&&!r.serviceId?(e.openBlock(),e.createElementBlock("div",gt,[e.createVNode(T,{modelValue:n.fields.service_id,"onUpdate:modelValue":p[1]||(p[1]=I=>n.fields.service_id=I),clearable:"","data-testid":"route-form-service-id","enable-filtering":"","filter-function":()=>!0,items:se.value,label:e.unref(m)("form.fields.service_id.label"),loading:e.unref(he),placeholder:e.unref(m)("form.fields.service_id.placeholder"),readonly:n.isReadonly,"reuse-item-template":"",width:"100%",onQueryChange:e.unref(pe)},{loading:e.withCtx(()=>[e.createElementVNode("div",null,e.toDisplayString(e.unref(m)("actions.loading")),1)]),empty:e.withCtx(()=>[e.createElementVNode("div",yt,e.toDisplayString(e.unref(m)("search.no_results")),1)]),"selected-item-template":e.withCtx(({item:I})=>[e.createTextVNode(e.toDisplayString(x(I)),1)]),"item-template":e.withCtx(({item:I})=>[e.createElementVNode("div",St,[e.createElementVNode("span",bt,e.toDisplayString(I.name),1),e.createElementVNode("span",Ct,e.toDisplayString(I.value),1)])]),_:1},8,["modelValue","items","label","loading","placeholder","readonly","onQueryChange"])])):e.createCommentVNode("",!0),e.createVNode(C,{modelValue:n.fields.tags,"onUpdate:modelValue":p[2]||(p[2]=I=>n.fields.tags=I),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:n.isReadonly,type:"text"},null,8,["modelValue","help","label","placeholder","readonly"])]),_:1},8,["description","hide-info-header","title"]),e.createVNode(e.unref(_.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(T,{modelValue:n.fields.protocols,"onUpdate:modelValue":p[3]||(p[3]=I=>n.fields.protocols=I),"data-testid":"route-form-protocols",items:a,label:e.unref(m)("form.fields.protocols.label"),"label-attributes":{info:e.unref(m)("form.fields.protocols.tooltip"),tooltipAttributes:{maxWidth:"400"}},readonly:n.isReadonly,required:"",width:"100%"},null,8,["modelValue","label","label-attributes","readonly"]),e.createVNode(Ie,{"custom-methods":S.value,"onUpdate:customMethods":p[4]||(p[4]=I=>S.value=I),fields:n.fields,"onUpdate:fields":p[5]||(p[5]=I=>n.fields=I),hash:c.value,"onUpdate:hash":p[6]||(p[6]=I=>c.value=I),tags:n.fields.tags,"onUpdate:tags":p[7]||(p[7]=I=>n.fields.tags=I),protocols:n.fields.protocols,readonly:n.isReadonly,"record-flavor":k.value,"route-flavors":r.routeFlavors,"show-expressions-modal-entry":r.showExpressionsModalEntry,tooltips:r.configTabTooltips,onNotify:p[8]||(p[8]=I=>i("notify",I)),"onUpdate:payload":p[9]||(p[9]=I=>w.value=I)},null,8,["custom-methods","fields","hash","tags","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-0a9666b9"]]),kt={class:"kong-ui-entities-routes-list"},Nt={class:"button-row"},_t={class:"empty-state-icon-gateway"},Tt={key:1},Vt={key:1},It={key:1},Rt={class:"route-list-cell-expression"},wt=M(e.defineComponent({__name:"RouteList",props:{config:{type:Object,required:!0,validator:r=>!(!r||!["konnect","kongManager"].includes(r==null?void 0:r.app)||!r.createRoute||!r.getViewRoute||!r.getEditRoute||r.app==="kongManager"&&!r.isExactMatch&&!r.filterSchema)},cacheIdentifier:{type:String,default:""},canCreate:{type:Function,required:!1,default:async()=>!0},canDelete:{type:Function,required:!1,default:async()=>!0},canEdit:{type:Function,required:!1,default:async()=>!0},canRetrieve:{type:Function,required:!1,default:async()=>!0},title:{type:String,default:""},titleTag:{type:String,default:"h2"},useActionOutside:{type:Boolean,default:!1},hideTraditionalColumns:{type:Boolean,default:!1},hasExpressionColumn:{type:Boolean,default:!1},enableV2EmptyStates:{type:Boolean,default:!1}},emits:["error","click:learn-more","copy:success","copy:error","delete:success"],setup(r,{emit:V}){var ne;const f=V,o=r,{i18n:{t:i,formatUnixTimeStamp:c}}=$.useI18n(),s=Ee.useRouter(),{axiosInstance:k}=_.useAxios((ne=o.config)==null?void 0:ne.axiosRequestConfig),{handleStateChange:b,hasRecords:m}=_.useTableState(()=>u.value),d=e.computed(()=>m.value&&o.config.app==="konnect"),g=e.computed(()=>!o.enableV2EmptyStates&&o.config.app==="konnect"),A=e.computed(()=>!!o.config.serviceId),x=e.computed(()=>o.config.app!=="kongManager"||!!o.config.disableSorting),n={name:{label:i("routes.list.table_headers.name"),searchable:!0,sortable:!0,hidable:!1},protocols:{label:i("routes.list.table_headers.protocols"),searchable:!0},...!o.hideTraditionalColumns&&{hosts:{label:i("routes.list.table_headers.hosts"),searchable:!0},methods:{label:i("routes.list.table_headers.methods"),searchable:!0},paths:{label:i("routes.list.table_headers.paths"),searchable:!0}},...o.hasExpressionColumn&&{expression:{label:i("routes.list.table_headers.expression"),tooltip:!0}},tags:{label:i("routes.list.table_headers.tags"),sortable:!1},updated_at:{label:i("routes.list.table_headers.updated_at"),sortable:!0},created_at:{label:i("routes.list.table_headers.created_at"),sortable:!0}},w={columnVisibility:{created_at:!1}},S=n,y=e.computed(()=>{var p,C,T,I;let t=`${o.config.apiBaseUrl}${Z.list[o.config.app][o.config.serviceId?"forGatewayService":"all"]}`;return o.config.app==="konnect"?t=t.replace(/{controlPlaneId}/gi,((p=o.config)==null?void 0:p.controlPlaneId)||"").replace(/{serviceId}/gi,((C=o.config)==null?void 0:C.serviceId)||""):o.config.app==="kongManager"&&(t=t.replace(/\/{workspace}/gi,(T=o.config)!=null&&T.workspace?`/${o.config.workspace}`:"").replace(/{serviceId}/gi,((I=o.config)==null?void 0:I.serviceId)||"")),t}),u=e.ref(""),a=e.computed(()=>{const t=o.config.app==="konnect"||o.config.isExactMatch;if(t)return{isExactMatch:t,placeholder:i(`search.placeholder.${o.config.isExactMatch?"exact":o.config.app}`)};const{name:p,protocols:C,hosts:T,methods:I,paths:G,expression:Y}=n,N={name:p,protocols:C,hosts:T,methods:I,paths:G,...o.hasExpressionColumn&&{expression:Y}};return{isExactMatch:t,fields:N,schema:o.config.filterSchema}}),{fetcher:E,fetcherState:L,fetcherCacheKey:P}=_.useFetcher({...o.config,cacheIdentifier:o.cacheIdentifier},y.value),W=t=>t.headerKey==="expression"?{style:{maxWidth:"250px",overflowX:"hidden",textOverflow:"ellipsis"}}:{},X=()=>{u.value=""},re=()=>{P.value++},h=e.ref(null),K=async(t,p)=>{const C=t.id;if(!await p(C)){f("copy:error",{entity:t,field:"id",message:i("errors.copy")});return}f("copy:success",{entity:t,field:"id",message:i("copy.success",{val:C})})},ie=async(t,p)=>{const C=JSON.stringify(t);if(!await p(C)){f("copy:error",{entity:t,message:i("errors.copy")});return}f("copy:success",{entity:t,message:i("copy.success_brief")})},de=async t=>{var C;await((C=o.canRetrieve)==null?void 0:C.call(o,t))&&s.push(o.config.getViewRoute(t.id))},ce=t=>({label:i("actions.view"),to:o.config.getViewRoute(t)}),le=t=>({label:i("actions.edit"),to:o.config.getEditRoute(t)}),U=e.ref(void 0),v=e.ref(!1),z=e.ref(!1),pe=e.ref(""),he=_.useDeleteUrlBuilder(o.config,y.value),ge=t=>{U.value=t,v.value=!0},ye=()=>{v.value=!1},Se=async()=>{var t,p,C;if((t=U.value)!=null&&t.id){z.value=!0;try{await k.delete(he(U.value.id)),z.value=!1,v.value=!1,P.value++,f("delete:success",U.value)}catch(T){pe.value=((C=(p=T.response)==null?void 0:p.data)==null?void 0:C.message)||T.message||i("errors.delete"),f("error",T)}finally{z.value=!1}}},be=()=>{s.push(o.config.createRoute)};e.watch(L,t=>{var p,C,T;if(t.status===_.FetcherStatus.Error){h.value={title:i("errors.general")},(T=(C=(p=t.error)==null?void 0:p.response)==null?void 0:C.data)!=null&&T.message&&(h.value.message=t.error.response.data.message),f("error",t.error);return}h.value=null});const se=e.ref({ctaPath:o.config.createRoute,ctaText:void 0,message:`${i("routes.list.empty_state.description")}${o.config.additionMessageForEmptyState?` ${o.config.additionMessageForEmptyState}`:""}`,title:i("routes.title")});return e.onBeforeMount(async()=>{await o.canCreate()&&(se.value.title=i("routes.list.empty_state.title"),se.value.ctaText=i("actions.create"))}),(t,p)=>{const C=e.resolveComponent("KButton"),T=e.resolveComponent("KBadge"),I=e.resolveComponent("KTruncate"),G=e.resolveComponent("KDropdownItem"),Y=e.resolveComponent("KClipboardProvider");return e.openBlock(),e.createElementBlock("div",kt,[e.createVNode(e.unref(_.EntityBaseTable),{"cache-identifier":r.cacheIdentifier,"cell-attributes":W,"default-table-preferences":w,"disable-sorting":x.value,"empty-state-options":se.value,"enable-entity-actions":"","error-message":h.value,fetcher:e.unref(E),"fetcher-cache-key":e.unref(P),"pagination-type":"offset","preferences-storage-key":"kong-ui-entities-routes-list",query:u.value,"table-headers":e.unref(S),title:r.title,"title-tag":r.titleTag,onClearSearchInput:X,"onClick:row":p[8]||(p[8]=N=>de(N)),onSort:re,onState:e.unref(b)},e.createSlots({"toolbar-filter":e.withCtx(()=>[e.createVNode(e.unref(_.EntityFilter),{modelValue:u.value,"onUpdate:modelValue":p[0]||(p[0]=N=>u.value=N),config:a.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",Nt,[!A.value&&d.value?(e.openBlock(),e.createBlock(C,{key:0,appearance:"secondary",class:"open-learning-hub","data-testid":"routes-learn-more-button",icon:"",onClick:p[1]||(p[1]=N=>t.$emit("click:learn-more"))},{default:e.withCtx(()=>[e.createVNode(e.unref(q.BookIcon),{decorative:""})]),_:1})):e.createCommentVNode("",!0),e.createVNode(e.unref(_.PermissionsWrapper),{"auth-function":()=>r.canCreate()},{default:e.withCtx(()=>[e.createVNode(C,{appearance:"primary","data-testid":"toolbar-add-route",size:r.useActionOutside?"medium":"large",to:r.config.createRoute},{default:e.withCtx(()=>[e.createVNode(e.unref(q.AddIcon)),e.createTextVNode(" "+e.toDisplayString(e.unref(i)("routes.list.toolbar_actions.new_route")),1)]),_:1},8,["size","to"])]),_:1},8,["auth-function"])])],8,["disabled"]))]),name:e.withCtx(({rowValue:N})=>[e.createElementVNode("b",null,e.toDisplayString(N??"-"),1)]),protocols:e.withCtx(({rowValue:N})=>[e.createVNode(I,null,{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(N,O=>(e.openBlock(),e.createBlock(T,{key:O,appearance:"neutral",onClick:p[4]||(p[4]=e.withModifiers(()=>{},["stop"]))},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(O),1)]),_:2},1024))),128))]),_:2},1024)]),hosts:e.withCtx(({rowValue:N})=>[(N==null?void 0:N.length)>0?(e.openBlock(),e.createBlock(I,{key:0},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(N,O=>(e.openBlock(),e.createBlock(T,{key:O,appearance:"neutral",tooltip:O,"truncation-tooltip":"",onClick:p[5]||(p[5]=e.withModifiers(()=>{},["stop"]))},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(O),1)]),_:2},1032,["tooltip"]))),128))]),_:2},1024)):(e.openBlock(),e.createElementBlock("span",Tt,"-"))]),methods:e.withCtx(({rowValue:N})=>[(N==null?void 0:N.length)>0?(e.openBlock(),e.createBlock(I,{key:0},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(N,O=>(e.openBlock(),e.createBlock(T,{key:O,appearance:Object.values(e.unref(ke.BadgeMethodAppearances)).includes(O.toLowerCase())?O.toLowerCase():"custom",onClick:p[6]||(p[6]=e.withModifiers(()=>{},["stop"]))},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(O),1)]),_:2},1032,["appearance"]))),128))]),_:2},1024)):(e.openBlock(),e.createElementBlock("span",Vt,"-"))]),paths:e.withCtx(({rowValue:N})=>[(N==null?void 0:N.length)>0?(e.openBlock(),e.createBlock(I,{key:0},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(N,O=>(e.openBlock(),e.createBlock(T,{key:O,appearance:"neutral",tooltip:O,"truncation-tooltip":"",onClick:p[7]||(p[7]=e.withModifiers(()=>{},["stop"]))},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(O),1)]),_:2},1032,["tooltip"]))),128))]),_:2},1024)):(e.openBlock(),e.createElementBlock("span",It,"-"))]),tags:e.withCtx(({rowValue:N})=>[e.createVNode(e.unref(_.TableTags),{tags:N},null,8,["tags"])]),expression:e.withCtx(({rowValue:N})=>[e.createElementVNode("span",Rt,e.toDisplayString(N||"-"),1)]),created_at:e.withCtx(({rowValue:N})=>[e.createTextVNode(e.toDisplayString(e.unref(c)(N)),1)]),updated_at:e.withCtx(({row:N,rowValue:O})=>[e.createTextVNode(e.toDisplayString(e.unref(c)(O??N.created_at)),1)]),actions:e.withCtx(({row:N})=>[e.createVNode(Y,null,{default:e.withCtx(({copyToClipboard:O})=>[e.createVNode(G,{"data-testid":"action-entity-copy-id",onClick:j=>K(N,O)},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(i)("actions.copy_id")),1)]),_:2},1032,["onClick"])]),_:2},1024),e.createVNode(Y,null,{default:e.withCtx(({copyToClipboard:O})=>[e.createVNode(G,{"data-testid":"action-entity-copy-json",onClick:j=>ie(N,O)},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(i)("actions.copy_json")),1)]),_:2},1032,["onClick"])]),_:2},1024),e.createVNode(e.unref(_.PermissionsWrapper),{"auth-function":()=>r.canRetrieve(N)},{default:e.withCtx(()=>[e.createVNode(G,{"data-testid":"action-entity-view","has-divider":"",item:ce(N.id)},null,8,["item"])]),_:2},1032,["auth-function"]),e.createVNode(e.unref(_.PermissionsWrapper),{"auth-function":()=>r.canEdit(N)},{default:e.withCtx(()=>[e.createVNode(G,{"data-testid":"action-entity-edit",item:le(N.id)},null,8,["item"])]),_:2},1032,["auth-function"]),e.createVNode(e.unref(_.PermissionsWrapper),{"auth-function":()=>r.canDelete(N)},{default:e.withCtx(()=>[e.createVNode(G,{danger:"","data-testid":"action-entity-delete","has-divider":"",onClick:O=>ge(N)},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(i)("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(C,{appearance:"secondary",class:"open-learning-hub","data-testid":"routes-learn-more-button",icon:"",onClick:p[2]||(p[2]=N=>t.$emit("click:learn-more"))},{default:e.withCtx(()=>[e.createVNode(e.unref(q.BookIcon),{decorative:""})]),_:1})],8,["disabled"]))]),key:"0"}:void 0,!u.value&&r.enableV2EmptyStates&&r.config.app==="konnect"?{name:"empty-state",fn:e.withCtx(()=>{var N;return[e.createVNode(e.unref(_.EntityEmptyState),{"action-button-text":e.unref(i)("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(i)("routes.list.empty_state_v2.description"),"learn-more":r.config.app==="konnect",title:e.unref(i)("routes.list.empty_state_v2.title"),"onClick:create":be,"onClick:learnMore":p[3]||(p[3]=O=>t.$emit("click:learn-more"))},e.createSlots({image:e.withCtx(()=>[e.createElementVNode("div",_t,[e.createVNode(e.unref(q.ForwardIcon),{color:e.unref($e),size:e.unref(Me)},null,8,["color","size"])])]),_:2},[(N=r.config)!=null&&N.isControlPlaneGroup?{name:"message",fn:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(i)("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(_.EntityDeleteModal),{"action-pending":z.value,description:e.unref(i)("delete.description"),"entity-name":U.value&&(U.value.name||U.value.id),"entity-type":e.unref(_.EntityTypes).Route,error:pe.value,title:e.unref(i)("delete.title"),visible:v.value,onCancel:ye,onProceed:Se},null,8,["action-pending","description","entity-name","entity-type","error","title","visible"])])}}}),[["__scopeId","data-v-07f327d6"]]),Bt=Object.freeze(Object.defineProperty({__proto__:null,default:e.defineComponent({__name:"RouteFormExpressionsEditor",props:e.mergeModels({protocol:{},showExpressionsModalEntry:{type:Boolean},hintText:{}},{modelValue:{required:!0},modelModifiers:{}}),emits:e.mergeModels(["notify"],["update:modelValue"]),setup(r,{emit:V}){const f=r,o=e.useModel(r,"modelValue"),i=V,c=e.ref(!1),s=e.computed(()=>ee.PROTOCOL_TO_SCHEMA[f.protocol]),k=e.computed(()=>ee.HTTP_BASED_PROTOCOLS.includes(f.protocol??"")),b=e.computed(()=>f.showExpressionsModalEntry&&!k.value?`${f.hintText}${ee.HTTP_BASED_PROTOCOLS}`:void 0),m=A=>{o.value=A,c.value=!1},d=A=>{i("notify",A)},g=()=>{k.value&&(c.value=!0)};return(A,x)=>{const n=e.resolveComponent("KTooltip");return e.openBlock(),e.createElementBlock(e.Fragment,null,[s.value!==void 0?(e.openBlock(),e.createBlock(e.unref(ee.ExpressionsEditor),{key:0,modelValue:o.value,"onUpdate:modelValue":x[0]||(x[0]=w=>o.value=w),schema:s.value},null,8,["modelValue","schema"])):e.createCommentVNode("",!0),e.createVNode(n,{placement:"bottom-start",text:b.value},{default:e.withCtx(()=>[A.showExpressionsModalEntry?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass({disabled:!k.value,"route-form-open-in-playground":!0}),"data-testid":"open-router-playground",onClick:g},[e.renderSlot(A.$slots,"default")],2)):e.createCommentVNode("",!0)]),_:3},8,["text"]),A.showExpressionsModalEntry&&k.value?(e.openBlock(),e.createBlock(e.unref(ee.RouterPlaygroundModal),{key:1,"initial-expression":o.value,"is-visible":c.value,onCancel:x[1]||(x[1]=w=>c.value=!1),onCommit:m,onNotify:d},null,8,["initial-expression","is-visible"])):e.createCommentVNode("",!0)],64)}}})},Symbol.toStringTag,{value:"Module"}));B.ExpressionsEditorState=J,B.HTTP_REDIRECT_STATUS_CODES=ue,B.INITIAL_ROUTE_RULES_FIELDS=De,B.INITIAL_SHARED_ROUTE_RULES_FIELDS=oe,B.INITIAL_TRADITIONAL_ROUTE_RULES_VALUES=D,B.Methods=Ne,B.PATH_HANDLING_OPTIONS=_e,B.PROTOCOLS_TO_ROUTE_RULES=te,B.RouteConfigCard=xe,B.RouteFlavor=R,B.RouteForm=Et,B.RouteFormRulesComposer=Ie,B.RouteList=wt,B.RoutingRulesEntities=l,B.stateHasExpressionsFlavor=fe,B.stateHasTraditionalFlavor=ae,Object.defineProperty(B,Symbol.toStringTag,{value:"Module"})});
|
|
1
|
+
(function(B,e){typeof exports=="object"&&typeof module<"u"?e(exports,require("vue"),require("@kong-ui-public/entities-shared"),require("@kong-ui-public/i18n"),require("lodash.isequal"),require("vue-router"),require("@kong/icons"),require("@kong/kongponents"),require("@kong-ui-public/expressions")):typeof define=="function"&&define.amd?define(["exports","vue","@kong-ui-public/entities-shared","@kong-ui-public/i18n","lodash.isequal","vue-router","@kong/icons","@kong/kongponents","@kong-ui-public/expressions"],e):(B=typeof globalThis<"u"?globalThis:B||self,e(B["kong-ui-public-entities-routes"]={},B.Vue,B["kong-ui-public-entities-shared"],B["kong-ui-public-i18n"],B.isEqual,B.VueRouter,B.KongIcons,B.Kongponents,B["kong-ui-public-expressions"]))})(this,function(B,e,_,Ce,Re,Ee,q,ke,ee){"use strict";const F="/v2/control-planes/{controlPlaneId}/core-entities",H="/{workspace}",Z={list:{konnect:{all:`${F}/routes`,forGatewayService:`${F}/services/{serviceId}/routes`},kongManager:{all:`${H}/routes`,forGatewayService:`${H}/services/{serviceId}/routes`}},form:{konnect:{services:`${F}/services`,create:{all:`${F}/routes`,forGatewayService:`${F}/services/{serviceId}/routes`},fetch:{all:`${F}/routes/{id}`,forGatewayService:`${F}/services/{serviceId}/routes/{id}`},edit:{all:`${F}/routes/{id}`,forGatewayService:`${F}/services/{serviceId}/routes/{id}`}},kongManager:{services:`${H}/services`,create:{all:`${H}/routes`,forGatewayService:`${H}/services/{serviceId}/routes`},fetch:{all:`${H}/routes/{id}`,forGatewayService:`${H}/services/{serviceId}/routes/{id}`},edit:{all:`${H}/routes/{id}`,forGatewayService:`${H}/services/{serviceId}/routes/{id}`}}},item:{konnect:{getService:`${F}/services/{serviceId}`,all:`${F}/routes/{id}`,forGatewayService:`${F}/services/{serviceId}/routes/{id}`},kongManager:{getService:`${H}/services/{serviceId}`,all:`${H}/routes/{id}`,forGatewayService:`${H}/services/{serviceId}/routes/{id}`}}},we={actions:{create:"New route",copy_id:"Copy ID",copy_json:"Copy JSON",edit:"Edit",delete:"Delete",clear:"Clear",view:"View Details",loading:"Loading..."},search:{placeholder:{konnect:"Filter by name",exact:"Filter by exact name or ID",kongManager:"Filter by exact name or ID"},no_results:"No results found"},routes:{title:"Routes",list:{toolbar_actions:{new_route:"New route"},table_headers:{name:"Name",protocols:"Protocols",hosts:"Hosts",methods:"Methods",paths:"Paths",expression:"Expression",id:"ID",tags:"Tags",created_at:"Created At",updated_at:"Last Modified"},empty_state:{title:"Configure a New Route",description:"Routes proxy requests to an associated Service."},empty_state_v2:{title:"Configure your first route",group:"Routes created in gateways within this group will automatically appear here.",description:"Routes direct incoming API requests to the appropriate gateway service based on paths, methods, and headers, ensuring efficient traffic flow."}}},delete:{title:"Delete a Route",description:"Deleting this route will also remove any associated plugins. This action cannot be reversed."},errors:{general:"Routes could not be retrieved",delete:"The route could not be deleted at this time.",copy:"Failed to copy to clipboard",services:{fetch:"Could not fetch available services"}},copy:{success:"Copied {val} to clipboard",success_brief:"Successfully copied to clipboard"},form:{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:"Routes have a protocols property to restrict the client protocol they should listen for.",tooltipConfig:"An array of the protocols this Route should allow. See the {code1} section for a list of accepted protocols. When set to only {code2}, HTTP requests are answered with an upgrade error. When it is set to only {code3}, this is essentially the same as {code4} in that both HTTP and HTTPS requests are allowed. Default: {code5}.",code1:"Route Object",code2:"https",code3:"http",code4:"['http', 'https']",code5:"['http', 'https']"},path_handling:{label:"Path Handling",tooltip:"This treats service.path, route.path and request path as segments of a URL.",tooltipConfig:"Controls how the Service path, Route path and requested path are combined when sending a request to the upstream. See above for a detailed description of each behavior."},https_redirect_status_code:{label:"HTTPS Redirect Status Code",tooltip:"The status code Kong responds with when all properties of a Route match except the protocol i.e. if the protocol of the request is {code1} instead of {code2}. {code3} header is injected by Kong if the field is set to 301, 302, 307 or 308. Note: This config applies only if the Route is configured to only accept the {code4} protocol.",code1:"HTTP",code2:"HTTPS",code3:"Location",code4:"https"},regex_priority:{label:"Regex Priority",tooltip:"A number used to choose which route resolves a given request when several routes match it using regexes simultaneously. When two routes match the path and have the same {code1}, the older one (lowest {code2}) is used. Note that the priority for non-regex routes is different (longer non-regex routes are matched before shorter ones).",code1:"regex_priority",code2:"created_at"},strip_path:{label:"Strip Path",tooltip:"When matching a Route via one of the {code1}, strip the matching prefix from the upstream request URL.",code1:"paths"},preserve_host:{label:"Preserve Host",tooltip:"When matching a Route via one of the {code1} domain names, use the request {code2} header in the upstream request headers. If set to {code3}, the upstream {code4} header will be that of the Service's {code5}.",code1:"hosts",code2:"Host",code3:"false",code4:"Host",code5:"host"},paths:{label:"Paths",placeholder:"Enter a path",tooltip:"A list of paths that match this Route."},snis:{label:"SNIs",placeholder:"Enter a SNI",tooltip:"A list of SNIs (Server Name Indications from a TLS ClientHello) that match this Route."},hosts:{label:"Hosts",placeholder:"Enter a host",tooltip:"A list of domain names that match this Route.",tooltipConfig:"A list of domain names that match this Route. Note that the hosts value is case sensitive."},methods:{label:"Methods",tooltip:"A list of HTTP methods that match this Route.",custom:{label:"Custom",placeholder:"Enter a custom method",tooltip:"Custom methods can be used with default selections. Uppercase characters are required."}},headers:{label:"Headers",tooltip:"Header values can be separated by commas (value1, value2, value3).",name:{placeholder:"Enter a header name"},values:{placeholder:"Enter a header value"},tooltipConfig:"One or more lists of values indexed by header name that will cause this Route to match if present in the request. The {code1} header cannot be used with this attribute: hosts should be specified using the {code2} attribute. When {code3} contains only one value and that value starts with the special prefix {code4], the value is interpreted as a regular expression.",code1:"Host",code2:"hosts",code3:"headers",code4:"*"},sources:{label:"Sources",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:{label:"Destinations",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:"Whether to enable response body buffering or not. With HTTP 1.1, it may make sense to turn this off on services that send data with chunked transfer encoding."},request_buffering:{label:"Request buffering",tooltip:"Whether to enable request body buffering or not. With HTTP 1.1, it may make sense to turn this off on services that receive data with chunked transfer encoding."},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",expressions:"Expressions"},viewAdvancedFields:"View Advanced Fields",addNewRule:"Add New Rule",warning:{rulesMessage:"For {protocol}, at least one of {routingRules} must be set.",singleRule:"{routingRules}",multipleRules:"{routingRules} or {lastRoutingRule}",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 Be(){const r=Ce.createI18n("en-us",we);return{i18n:r,i18nT:Ce.i18nTComponent(r)}}const $={useI18n:Be},Ae={class:"kong-ui-entities-route-entity-config-card"},Oe={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:V}){var n;const f=V,o=r,{axiosInstance:i}=_.useAxios((n=o.config)==null?void 0:n.axiosRequestConfig),{i18n:{t:c},i18nT:s}=$.useI18n(),k=e.ref(""),b=e.ref(""),m=e.ref(!1),d=e.computed(()=>{var w,S;return(S=Z.item[(w=o.config)==null?void 0:w.app])==null?void 0:S[o.serviceId?"forGatewayService":"all"].replace(/{serviceId}/gi,o.serviceId)}),g=e.computed(()=>{var w;return(w=Z.item[o.config.app])==null?void 0:w.getService}),A=async w=>{var y,u,a;if(k.value=o.serviceId||((y=w==null?void 0:w.service)==null?void 0:y.id),f("fetch:success",w),!k.value)return;let S=`${o.config.apiBaseUrl}${g.value}`;o.config.app==="konnect"?S=S.replace(/{controlPlaneId}/gi,((u=o.config)==null?void 0:u.controlPlaneId)||"").replace(/{serviceId}/gi,k.value||""):o.config.app==="kongManager"&&(S=S.replace(/\/{workspace}/gi,(a=o.config)!=null&&a.workspace?`/${o.config.workspace}`:"").replace(/{serviceId}/gi,k.value||""));try{m.value=!0;const{data:E}=await i.get(S);b.value=(E==null?void 0:E.name)||(E==null?void 0:E.id)}catch(E){f("fetch:error",E)}finally{m.value=!1}},x=e.ref({id:{},name:{tooltip:c("form.fields.name.tooltip")},created_at:{},updated_at:{},service:{label:c("form.fields.service.label"),section:_.ConfigurationSchemaSection.Basic,tooltip:c("form.fields.service.tooltip"),order:5},tags:{tooltip:c("form.fields.tags.tooltip"),order:6},protocols:{section:_.ConfigurationSchemaSection.Basic,type:_.ConfigurationSchemaType.BadgeTag,order:7},paths:{section:_.ConfigurationSchemaSection.Basic,tooltip:c("form.fields.paths.tooltip"),type:_.ConfigurationSchemaType.CopyBadge,order:8},hosts:{section:_.ConfigurationSchemaSection.Basic,tooltip:c("form.fields.hosts.tooltipConfig"),type:_.ConfigurationSchemaType.CopyBadge,order:9},snis:{label:c("form.fields.snis.label"),tooltip:c("form.fields.snis.tooltip"),order:10},headers:{section:_.ConfigurationSchemaSection.Basic,order:11},methods:{section:_.ConfigurationSchemaSection.Basic,tooltip:c("form.fields.methods.tooltip"),type:_.ConfigurationSchemaType.BadgeMethod,order:12},sources:{section:_.ConfigurationSchemaSection.Basic,tooltip:c("form.fields.sources.tooltip"),type:_.ConfigurationSchemaType.JsonArray,order:13},destinations:{section:_.ConfigurationSchemaSection.Basic,tooltip:c("form.fields.destinations.tooltip"),type:_.ConfigurationSchemaType.JsonArray,order:14},https_redirect_status_code:{order:1},regex_priority:{tooltip:c("form.fields.regex_priority.tooltip"),order:2},strip_path:{order:3},preserve_host:{order:4},request_buffering:{tooltip:c("form.fields.request_buffering.tooltip"),order:5},response_buffering:{tooltip:c("form.fields.response_buffering.tooltip"),order:6},path_handling:{tooltip:c("form.fields.path_handling.tooltipConfig"),order:7}});return(w,S)=>{const y=e.resolveComponent("KSkeleton");return e.openBlock(),e.createElementBlock("div",Ae,[e.createVNode(e.unref(_.EntityBaseConfigCard),{config:r.config,"config-card-doc":r.configCardDoc,"config-schema":x.value,"entity-type":e.unref(_.SupportedEntityType).Route,"fetch-url":d.value,"hide-title":r.hideTitle,"onFetch:error":S[0]||(S[0]=u=>w.$emit("fetch:error",u)),"onFetch:success":A,onLoading:S[1]||(S[1]=u=>w.$emit("loading",u))},{"https_redirect_status_code-label-tooltip":e.withCtx(()=>[e.createVNode(e.unref(s),{keypath:"form.fields.https_redirect_status_code.tooltip",scope:"global"},{code1:e.withCtx(()=>[e.createElementVNode("code",null,e.toDisplayString(e.unref(c)("form.fields.https_redirect_status_code.code1")),1)]),code2:e.withCtx(()=>[e.createElementVNode("code",null,e.toDisplayString(e.unref(c)("form.fields.https_redirect_status_code.code2")),1)]),code3:e.withCtx(()=>[e.createElementVNode("code",null,e.toDisplayString(e.unref(c)("form.fields.https_redirect_status_code.code3")),1)]),code4:e.withCtx(()=>[e.createElementVNode("code",null,e.toDisplayString(e.unref(c)("form.fields.https_redirect_status_code.code4")),1)]),_:1})]),"regex_priority-label-tooltip":e.withCtx(()=>[e.createVNode(e.unref(s),{keypath:"form.fields.regex_priority.tooltip",scope:"global"},{code1:e.withCtx(()=>[e.createElementVNode("code",null,e.toDisplayString(e.unref(c)("form.fields.regex_priority.code1")),1)]),code2:e.withCtx(()=>[e.createElementVNode("code",null,e.toDisplayString(e.unref(c)("form.fields.regex_priority.code2")),1)]),_:1})]),"protocols-label-tooltip":e.withCtx(()=>[e.createVNode(e.unref(s),{keypath:"form.fields.protocols.tooltipConfig",scope:"global"},{code1:e.withCtx(()=>[e.createElementVNode("code",null,e.toDisplayString(e.unref(c)("form.fields.protocols.code1")),1)]),code2:e.withCtx(()=>[e.createElementVNode("code",null,e.toDisplayString(e.unref(c)("form.fields.protocols.code2")),1)]),code3:e.withCtx(()=>[e.createElementVNode("code",null,e.toDisplayString(e.unref(c)("form.fields.protocols.code3")),1)]),code4:e.withCtx(()=>[e.createElementVNode("code",null,e.toDisplayString(e.unref(c)("form.fields.protocols.code4")),1)]),code5:e.withCtx(()=>[e.createElementVNode("code",null,e.toDisplayString(e.unref(c)("form.fields.protocols.code5")),1)]),_:1})]),"headers-label-tooltip":e.withCtx(()=>[e.createVNode(e.unref(s),{keypath:"form.fields.headers.tooltipConfig",scope:"global"},{code1:e.withCtx(()=>[e.createElementVNode("code",null,e.toDisplayString(e.unref(c)("form.fields.headers.code1")),1)]),code2:e.withCtx(()=>[e.createElementVNode("code",null,e.toDisplayString(e.unref(c)("form.fields.headers.code2")),1)]),code3:e.withCtx(()=>[e.createElementVNode("code",null,e.toDisplayString(e.unref(c)("form.fields.headers.code3")),1)]),code4:e.withCtx(()=>[e.createElementVNode("code",null,e.toDisplayString(e.unref(c)("form.fields.headers.code4")),1)]),_:1})]),"strip_path-label-tooltip":e.withCtx(()=>[e.createVNode(e.unref(s),{keypath:"form.fields.strip_path.tooltip",scope:"global"},{code1:e.withCtx(()=>[e.createElementVNode("code",null,e.toDisplayString(e.unref(c)("form.fields.headers.code1")),1)]),_:1})]),"preserve_host-label-tooltip":e.withCtx(()=>[e.createVNode(e.unref(s),{keypath:"form.fields.preserve_host.tooltip",scope:"global"},{code1:e.withCtx(()=>[e.createElementVNode("code",null,e.toDisplayString(e.unref(c)("form.fields.preserve_host.code1")),1)]),code2:e.withCtx(()=>[e.createElementVNode("code",null,e.toDisplayString(e.unref(c)("form.fields.preserve_host.code2")),1)]),code3:e.withCtx(()=>[e.createElementVNode("code",null,e.toDisplayString(e.unref(c)("form.fields.preserve_host.code3")),1)]),code4:e.withCtx(()=>[e.createElementVNode("code",null,e.toDisplayString(e.unref(c)("form.fields.preserve_host.code4")),1)]),code5:e.withCtx(()=>[e.createElementVNode("code",null,e.toDisplayString(e.unref(c)("form.fields.preserve_host.code5")),1)]),_:1})]),service:e.withCtx(({row:u})=>[m.value?(e.openBlock(),e.createBlock(y,{key:0,"data-testid":"service-name-loader",type:"spinner"})):u.value&&u.value.id===k.value&&b.value?(e.openBlock(),e.createBlock(e.unref(_.InternalLinkItem),{key:1,item:{key:u.value.id,value:b.value,type:e.unref(_.ConfigurationSchemaType).LinkInternal},onNavigationClick:()=>w.$emit("navigation-click",u.value.id,"services")},null,8,["item","onNavigationClick"])):(e.openBlock(),e.createElementBlock("div",Oe,e.toDisplayString("-")))]),_:1},8,["config","config-card-doc","config-schema","entity-type","fetch-url","hide-title"])])}}});var Ne=(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.CUSTOM="CUSTOM",r))(Ne||{}),R=(r=>(r.TRADITIONAL="traditional",r.EXPRESSIONS="expressions",r))(R||{}),l=(r=>(r.PATHS="paths",r.SNIS="snis",r.HOSTS="hosts",r.METHODS="methods",r.HEADERS="headers",r.SOURCES="sources",r.DESTINATIONS="destinations",r.CUSTOM_METHOD="custom-method",r))(l||{}),J=(r=>(r.LOADING="loading",r.ERROR="error",r.READY="ready",r))(J||{});const ae=r=>r.routeFlavors.traditional===!0,fe=r=>r.routeFlavors.expressions===!0,D={[l.PATHS]:[""],[l.SNIS]:[""],[l.HOSTS]:[""],[l.METHODS]:{GET:!1,PUT:!1,POST:!1,PATCH:!1,DELETE:!1,OPTIONS:!1,HEAD:!1,CONNECT:!1,TRACE:!1,CUSTOM:!1},[l.HEADERS]:[{header:"",values:""}],[l.SOURCES]:[{ip:"",port:null}],[l.DESTINATIONS]:[{ip:"",port:null}]},te={http:[l.HOSTS,l.METHODS,l.PATHS,l.HEADERS],https:[l.HOSTS,l.METHODS,l.PATHS,l.HEADERS,l.SNIS],"http,https":[l.HOSTS,l.METHODS,l.PATHS,l.HEADERS,l.SNIS],"https,http":[l.HOSTS,l.METHODS,l.PATHS,l.HEADERS,l.SNIS],grpc:[l.HOSTS,l.PATHS,l.HEADERS],grpcs:[l.HOSTS,l.PATHS,l.HEADERS,l.SNIS],"grpc,grpcs":[l.HOSTS,l.PATHS,l.HEADERS,l.SNIS],"grpcs,grpc":[l.HOSTS,l.PATHS,l.HEADERS,l.SNIS],udp:[l.SOURCES,l.DESTINATIONS],tls:[l.SOURCES,l.DESTINATIONS,l.SNIS],tcp:[l.SOURCES,l.DESTINATIONS],"tls,udp":[l.SOURCES,l.DESTINATIONS,l.SNIS],"udp,tls":[l.SOURCES,l.DESTINATIONS,l.SNIS],"tcp,udp":[l.SOURCES,l.DESTINATIONS],"udp,tcp":[l.SOURCES,l.DESTINATIONS],"tcp,tls":[l.SOURCES,l.DESTINATIONS,l.SNIS],"tls,tcp":[l.SOURCES,l.DESTINATIONS,l.SNIS],"tcp,tls,udp":[l.SOURCES,l.DESTINATIONS,l.SNIS],"tls,udp,tcp":[l.SOURCES,l.DESTINATIONS,l.SNIS],"udp,tcp,tls":[l.SOURCES,l.DESTINATIONS,l.SNIS],tls_passthrough:[l.SNIS],ws:[l.HOSTS,l.PATHS,l.HEADERS],wss:[l.HOSTS,l.PATHS,l.HEADERS,l.SNIS],"ws,wss":[l.HOSTS,l.PATHS,l.HEADERS,l.SNIS],"wss,ws":[l.HOSTS,l.PATHS,l.HEADERS,l.SNIS]},ue=[{label:"426",value:426},{label:"301",value:301},{label:"302",value:302},{label:"307",value:307},{label:"308",value:308}],_e=[{label:"v0",value:"v0"},{label:"v1",value:"v1"}],oe={https_redirect_status_code:426,strip_path:!0,preserve_host:!1,request_buffering:!0,response_buffering:!0},De={...oe,paths:[""],regex_priority:0,path_handling:"v0",expression:"",priority:0},Te="#d60027",$e="#00abd2",Ve="#6c7489",me="16px",Me="24px",Pe=e.defineComponent({__name:"RouteFormExpressionsEditorLoader",props:e.mergeModels({protocol:{},showExpressionsModalEntry:{type:Boolean}},{modelValue:{required:!0},modelModifiers:{}}),emits:e.mergeModels(["notify"],["update:modelValue"]),setup(r,{emit:V}){const{i18n:{t:f}}=$.useI18n(),o={render:()=>e.h("div",f("form.expressions_editor.loading"))},i={render:()=>e.h("div",f("form.expressions_editor.error"))},c=e.defineAsyncComponent({loader:async()=>Promise.resolve().then(()=>Bt),loadingComponent:o,errorComponent:i}),s=r,k=V,b=e.ref(J.LOADING),m=e.useModel(r,"modelValue"),d=g=>{m.value=g};return e.onMounted(async()=>{try{await(await import("@kong-ui-public/expressions")).asyncInit,b.value=J.READY}catch(g){b.value=J.ERROR,console.error(g)}}),(g,A)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[b.value===e.unref(J).ERROR?(e.openBlock(),e.createBlock(e.resolveDynamicComponent(i),{key:0,"data-testid":"route-form-expressions-editor-loader-error"})):b.value===e.unref(J).LOADING?(e.openBlock(),e.createBlock(e.resolveDynamicComponent(o),{key:1,"data-testid":"route-form-expressions-editor-loader-loading"})):(e.openBlock(),e.createBlock(e.unref(c),{key:2,modelValue:m.value,"onUpdate:modelValue":A[0]||(A[0]=x=>m.value=x),"hint-text":e.unref(f)("form.expression_playground.supported_protocols_hint"),protocol:s.protocol,"show-expressions-modal-entry":g.showExpressionsModalEntry,onNotify:A[1]||(A[1]=x=>k("notify",x))},{default:e.withCtx(()=>[e.createVNode(e.unref(q.RocketIcon),{size:e.unref(me)},null,8,["size"]),e.createElementVNode("span",null,e.toDisplayString(e.unref(f)("form.expression_playground.test_link")),1)]),_:1},8,["modelValue","hint-text","protocol","show-expressions-modal-entry"])),e.renderSlot(g.$slots,"after-editor",{expression:{value:m.value,update:d},state:b.value})],64))}}),Ue={class:"route-form-routing-rules-title-container"},Fe={class:"routing-rules-title"},He={class:"route-form-fields-container route-form-advanced-fields-container"},Le=e.defineComponent({__name:"ExpressionsRules",props:e.mergeModels({protocols:{},hideAdvanced:{type:Boolean},readonly:{type:Boolean},showExpressionsModalEntry:{type:Boolean}},{fields:{required:!0},fieldsModifiers:{}}),emits:e.mergeModels(["notify"],["update:fields"]),setup(r,{emit:V}){const{i18n:{t:f}}=$.useI18n(),o=r,i=e.useModel(r,"fields"),c=V,s=e.ref(!0),k=e.computed(()=>o.protocols.split(",")||[]),b=m=>m.some(d=>o.protocols.includes(d));return(m,d)=>{const g=e.resolveComponent("KCard"),A=e.resolveComponent("KSelect"),x=e.resolveComponent("KInput"),n=e.resolveComponent("KCheckbox"),w=e.resolveComponent("KCollapse");return e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createVNode(g,null,{title:e.withCtx(()=>[e.createElementVNode("div",Ue,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(k.value,S=>(e.openBlock(),e.createElementBlock("span",{key:S,class:"protocol-title"},e.toDisplayString(S.toUpperCase()),1))),128)),e.createElementVNode("span",Fe,e.toDisplayString(e.unref(f)("form.sections.routingExpression.title")),1)])]),default:e.withCtx(()=>[e.createVNode(Pe,{modelValue:i.value.expression,"onUpdate:modelValue":d[0]||(d[0]=S=>i.value.expression=S),protocol:k.value[0],"show-expressions-modal-entry":m.showExpressionsModalEntry,onNotify:d[1]||(d[1]=S=>c("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(w,{modelValue:s.value,"onUpdate:modelValue":d[8]||(d[8]=S=>s.value=S),class:"route-form-advanced-fields-collapse","trigger-alignment":"leading","trigger-label":e.unref(f)("form.viewAdvancedFields")},{default:e.withCtx(()=>[e.createElementVNode("div",He,[e.createVNode(A,{modelValue:i.value.https_redirect_status_code,"onUpdate:modelValue":d[2]||(d[2]=S=>i.value.https_redirect_status_code=S),"data-testid":"route-form-http-redirect-status-code",items:e.unref(ue),label:e.unref(f)("form.fields.https_redirect_status_code.label"),readonly:m.readonly,width:"100%"},null,8,["modelValue","items","label","readonly"]),e.createVNode(x,{modelValue:i.value.priority,"onUpdate:modelValue":d[3]||(d[3]=S=>i.value.priority=S),autocomplete:"off","data-testid":"route-form-priority",label:e.unref(f)("form.fields.priority.label"),"label-attributes":{info:e.unref(f)("form.fields.priority.tooltip"),tooltipAttributes:{maxWidth:"400"}},readonly:m.readonly,type:"number"},null,8,["modelValue","label","label-attributes","readonly"]),b(["http","https","ws","wss","tls","tcp","udp","tls_passthrough"])?(e.openBlock(),e.createBlock(n,{key:0,modelValue:i.value.strip_path,"onUpdate:modelValue":d[4]||(d[4]=S=>i.value.strip_path=S),"data-testid":"route-form-strip-path",label:e.unref(f)("form.fields.strip_path.label")},null,8,["modelValue","label"])):e.createCommentVNode("",!0),e.createVNode(n,{modelValue:i.value.preserve_host,"onUpdate:modelValue":d[5]||(d[5]=S=>i.value.preserve_host=S),"data-testid":"route-form-preserve-host",label:e.unref(f)("form.fields.preserve_host.label")},null,8,["modelValue","label"]),e.createVNode(n,{modelValue:i.value.request_buffering,"onUpdate:modelValue":d[6]||(d[6]=S=>i.value.request_buffering=S),"data-testid":"route-form-request-buffering",label:e.unref(f)("form.fields.request_buffering.label")},null,8,["modelValue","label"]),e.createVNode(n,{modelValue:i.value.response_buffering,"onUpdate:modelValue":d[7]||(d[7]=S=>i.value.response_buffering=S),"data-testid":"route-form-response-buffering",label:e.unref(f)("form.fields.response_buffering.label")},null,8,["modelValue","label"])])]),_:1},8,["modelValue","trigger-label"])],64)}}}),M=(r,V)=>{const f=r.__vccOpts||r;for(const[o,i]of V)f[o]=i;return f},Ke=M(Le,[["__scopeId","data-v-a5557199"]]),qe=M(e.defineComponent({__name:"RulesComposer",props:e.mergeModels({routeFlavors:{},tooltips:{}},{modelValue:{required:!0},modelModifiers:{}}),emits:["update:modelValue"],setup(r){const{i18n:{t:V}}=$.useI18n(),f=e.useModel(r,"modelValue"),o=r,i=e.computed(()=>[...o.routeFlavors.traditional?[{hash:`#${R.TRADITIONAL}`,title:V("form.flavors.traditional")}]:[],...o.routeFlavors.expressions?[{hash:`#${R.EXPRESSIONS}`,title:V("form.flavors.expressions")}]:[]]);return(c,s)=>{const k=e.resolveComponent("KTooltip"),b=e.resolveComponent("KTabs");return i.value.length>1?(e.openBlock(),e.createBlock(b,{key:0,modelValue:f.value,"onUpdate:modelValue":s[0]||(s[0]=m=>f.value=m),"data-testid":"route-form-config-tabs",tabs:i.value},e.createSlots({_:2},[c.routeFlavors.traditional?{name:`${e.unref(R).TRADITIONAL}-anchor`,fn:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(V)("form.flavors.traditional"))+" ",1),c.tooltips&&c.tooltips[e.unref(R).TRADITIONAL]?(e.openBlock(),e.createBlock(k,{key:0,class:"route-form-config-tabs-tooltip",text:c.tooltips[e.unref(R).TRADITIONAL],"tooltip-id":"route-form-config-tabs-tooltip-traditional"},{default:e.withCtx(()=>[e.createVNode(e.unref(q.InfoIcon),{color:e.unref(Ve),size:e.unref(me),tabindex:"0"},null,8,["color","size"])]),_:1},8,["text"])):e.createCommentVNode("",!0)]),key:"0"}:void 0,c.routeFlavors.expressions?{name:`${e.unref(R).EXPRESSIONS}-anchor`,fn:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(V)("form.flavors.expressions"))+" ",1),c.tooltips&&c.tooltips[e.unref(R).EXPRESSIONS]?(e.openBlock(),e.createBlock(k,{key:0,class:"route-form-config-tabs-tooltip",text:c.tooltips[e.unref(R).EXPRESSIONS],"tooltip-id":"route-form-config-tabs-tooltip-expressions"},{default:e.withCtx(()=>[e.createVNode(e.unref(q.InfoIcon),{color:e.unref(Ve),size:e.unref(me),tabindex:"0"},null,8,["color","size"])]),_:1},8,["text"])):e.createCommentVNode("",!0)]),key:"1"}:void 0,c.routeFlavors.traditional?{name:e.unref(R).TRADITIONAL,fn:e.withCtx(()=>[e.renderSlot(c.$slots,"before-content",{},void 0,!0),e.renderSlot(c.$slots,e.unref(R).TRADITIONAL,{},void 0,!0)]),key:"2"}:void 0,c.routeFlavors.expressions?{name:e.unref(R).EXPRESSIONS,fn:e.withCtx(()=>[e.renderSlot(c.$slots,"before-content",{},void 0,!0),e.renderSlot(c.$slots,e.unref(R).EXPRESSIONS,{},void 0,!0)]),key:"3"}:void 0]),1032,["modelValue","tabs"])):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.renderSlot(c.$slots,"before-content",{},void 0,!0),c.routeFlavors.traditional?e.renderSlot(c.$slots,e.unref(R).TRADITIONAL,{key:0},void 0,!0):c.routeFlavors.expressions?e.renderSlot(c.$slots,e.unref(R).EXPRESSIONS,{key:1},void 0,!0):e.createCommentVNode("",!0)],64))}}}),[["__scopeId","data-v-aeccecbe"]]),Ge={class:"routing-rules-entities-controls-container"},Q=M(e.defineComponent({__name:"RuleControls",props:{routingRulesEntity:{},isAddDisabled:{type:Boolean}},emits:["remove","add"],setup(r){return(V,f)=>{const o=e.resolveComponent("KButton");return e.openBlock(),e.createElementBlock("div",Ge,[e.createVNode(o,{appearance:"tertiary",class:"remove-button","data-testid":`remove-${V.routingRulesEntity}`,icon:"",onClick:f[0]||(f[0]=i=>V.$emit("remove"))},{default:e.withCtx(()=>[e.createVNode(e.unref(q.TrashIcon),{color:e.unref(Te)},null,8,["color"])]),_:1},8,["data-testid"]),e.createVNode(o,{appearance:"tertiary","data-testid":`add-${V.routingRulesEntity}`,disabled:V.isAddDisabled,icon:"",onClick:f[1]||(f[1]=i=>V.$emit("add"))},{default:e.withCtx(()=>[e.createVNode(e.unref(q.AddIcon))]),_:1},8,["data-testid","disabled"])])}}}),[["__scopeId","data-v-e98e1efc"]]),je={class:"routing-rule-container"},We=M(e.defineComponent({__name:"DestinationRules",props:{modelValue:{required:!0},modelModifiers:{}},emits:e.mergeModels(["add","remove"],["update:modelValue"]),setup(r,{emit:V}){const{i18n:{t:f}}=$.useI18n(),o=e.useModel(r,"modelValue"),i=V;return(c,s)=>{const k=e.resolveComponent("KLabel"),b=e.resolveComponent("KInput");return e.openBlock(),e.createElementBlock("div",je,[s[1]||(s[1]=e.createElementVNode("hr",null,null,-1)),e.createVNode(k,{info:e.unref(f)("form.fields.destinations.tooltip")},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(f)("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(o.value,(m,d)=>(e.openBlock(),e.createElementBlock("div",{key:d,class:"routing-rule-input"},[e.createVNode(b,{modelValue:o.value[d].ip,"onUpdate:modelValue":g=>o.value[d].ip=g,modelModifiers:{trim:!0},"data-testid":`route-form-destinations-ip-input-${d+1}`,placeholder:e.unref(f)("form.fields.destinations.ip.placeholder")},null,8,["modelValue","onUpdate:modelValue","data-testid","placeholder"]),e.createVNode(b,{modelValue:o.value[d].port,"onUpdate:modelValue":g=>o.value[d].port=g,modelModifiers:{number:!0},"data-testid":`route-form-destinations-port-input-${d+1}`,max:"65535",min:"0",placeholder:e.unref(f)("form.fields.destinations.port.placeholder"),type:"number"},null,8,["modelValue","onUpdate:modelValue","data-testid","placeholder"]),e.createVNode(Q,{"is-add-disabled":d!==o.value.length-1,"routing-rules-entity":e.unref(l).DESTINATIONS,onAdd:s[0]||(s[0]=g=>i("add")),onRemove:g=>i("remove",d)},null,8,["is-add-disabled","routing-rules-entity","onRemove"])]))),128))]),_:1})])}}}),[["__scopeId","data-v-94f91fcd"]]),Xe={class:"routing-rule-container"},ze=M(e.defineComponent({__name:"HeaderRules",props:{modelValue:{required:!0},modelModifiers:{}},emits:e.mergeModels(["add","remove"],["update:modelValue"]),setup(r,{emit:V}){const{i18n:{t:f}}=$.useI18n(),o=e.useModel(r,"modelValue"),i=V;return(c,s)=>{const k=e.resolveComponent("KLabel"),b=e.resolveComponent("KInput");return e.openBlock(),e.createElementBlock("div",Xe,[s[1]||(s[1]=e.createElementVNode("hr",null,null,-1)),e.createVNode(k,{info:e.unref(f)("form.fields.headers.tooltip")},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(f)("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(o.value,(m,d)=>(e.openBlock(),e.createElementBlock("div",{key:d,class:"routing-rule-input"},[e.createVNode(b,{modelValue:o.value[d].header,"onUpdate:modelValue":g=>o.value[d].header=g,modelModifiers:{trim:!0},"data-testid":`route-form-headers-name-input-${d+1}`,placeholder:e.unref(f)("form.fields.headers.name.placeholder")},null,8,["modelValue","onUpdate:modelValue","data-testid","placeholder"]),e.createVNode(b,{modelValue:o.value[d].values,"onUpdate:modelValue":g=>o.value[d].values=g,modelModifiers:{trim:!0},"data-testid":`route-form-headers-values-input-${d+1}`,placeholder:e.unref(f)("form.fields.headers.values.placeholder")},null,8,["modelValue","onUpdate:modelValue","data-testid","placeholder"]),e.createVNode(Q,{"is-add-disabled":d!==o.value.length-1,"routing-rules-entity":e.unref(l).HEADERS,onAdd:s[0]||(s[0]=g=>i("add")),onRemove:g=>i("remove",d)},null,8,["is-add-disabled","routing-rules-entity","onRemove"])]))),128))]),_:1})])}}}),[["__scopeId","data-v-df4450cd"]]),Je={class:"routing-rule-container"},Qe=M(e.defineComponent({__name:"HostRules",props:{modelValue:{required:!0},modelModifiers:{}},emits:e.mergeModels(["add","remove"],["update:modelValue"]),setup(r,{emit:V}){const{i18n:{t:f}}=$.useI18n(),o=e.useModel(r,"modelValue"),i=V;return(c,s)=>{const k=e.resolveComponent("KLabel"),b=e.resolveComponent("KInput");return e.openBlock(),e.createElementBlock("div",Je,[s[1]||(s[1]=e.createElementVNode("hr",null,null,-1)),e.createVNode(k,{info:e.unref(f)("form.fields.hosts.tooltip")},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(f)("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(o.value,(m,d)=>(e.openBlock(),e.createElementBlock("div",{key:d,class:"routing-rule-input"},[e.createVNode(b,{modelValue:o.value[d],"onUpdate:modelValue":g=>o.value[d]=g,modelModifiers:{trim:!0},"data-testid":`route-form-hosts-input-${d+1}`,placeholder:e.unref(f)("form.fields.hosts.placeholder")},null,8,["modelValue","onUpdate:modelValue","data-testid","placeholder"]),e.createVNode(Q,{"is-add-disabled":d!==o.value.length-1,"routing-rules-entity":e.unref(l).HOSTS,onAdd:s[0]||(s[0]=g=>i("add")),onRemove:g=>i("remove",d)},null,8,["is-add-disabled","routing-rules-entity","onRemove"])]))),128))]),_:1})])}}}),[["__scopeId","data-v-f229e100"]]),Ye={class:"routing-rule-container"},Ze={class:"routing-rule-input"},ve={class:"methods-input-container"},et={key:0,class:"routing-rule-container"},tt=M(e.defineComponent({__name:"MethodRules",props:{methods:{required:!0},methodsModifiers:{},customMethods:{required:!0},customMethodsModifiers:{}},emits:e.mergeModels(["remove"],["update:methods","update:customMethods"]),setup(r,{emit:V}){const{i18n:{t:f}}=$.useI18n(),o=e.useModel(r,"methods"),i=e.useModel(r,"customMethods"),c=V,s=k=>{i.value.length===1?i.value[0]="":i.value.splice(k,1)};return(k,b)=>{const m=e.resolveComponent("KLabel"),d=e.resolveComponent("KInputSwitch"),g=e.resolveComponent("KBadge"),A=e.resolveComponent("KButton"),x=e.resolveComponent("KInput");return e.openBlock(),e.createElementBlock("div",Ye,[b[2]||(b[2]=e.createElementVNode("hr",null,null,-1)),e.createVNode(m,null,{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(f)("form.fields.methods.label")),1)]),_:1}),e.createElementVNode("div",Ze,[e.createElementVNode("div",ve,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(Object.keys(o.value),n=>(e.openBlock(),e.createElementBlock("div",{key:n,class:"methods-input"},[e.createVNode(d,{modelValue:o.value[n],"onUpdate:modelValue":w=>o.value[n]=w,"data-testid":`${n.toLowerCase()}-method-toggle`},null,8,["modelValue","onUpdate:modelValue","data-testid"]),e.createVNode(g,{appearance:Object.values(e.unref(ke.BadgeMethodAppearances)).includes(n.toLowerCase())?n.toLowerCase():"custom"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(n.toLowerCase()),1)]),_:2},1032,["appearance"])]))),128))]),e.createVNode(A,{appearance:"tertiary",class:"remove-button","data-testid":"remove-methods",icon:"",onClick:b[0]||(b[0]=n=>c("remove"))},{default:e.withCtx(()=>[e.createVNode(e.unref(q.TrashIcon),{color:e.unref(Te)},null,8,["color"])]),_:1})]),o.value.CUSTOM?(e.openBlock(),e.createElementBlock("div",et,[e.createVNode(m,{info:e.unref(f)("form.fields.methods.custom.tooltip")},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(f)("form.fields.methods.custom.label")),1)]),_:1},8,["info"]),e.createVNode(e.TransitionGroup,{name:"appear"},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(i.value,(n,w)=>(e.openBlock(),e.createElementBlock("div",{key:w,class:"routing-rule-input"},[e.createVNode(x,{modelValue:i.value[w],"onUpdate:modelValue":S=>i.value[w]=S,modelModifiers:{trim:!0},"data-testid":`route-form-custom-method-input-${w+1}`,placeholder:e.unref(f)("form.fields.methods.custom.placeholder")},null,8,["modelValue","onUpdate:modelValue","data-testid","placeholder"]),e.createVNode(Q,{"is-add-disabled":w!==i.value.length-1,"routing-rules-entity":e.unref(l).CUSTOM_METHOD,onAdd:b[1]||(b[1]=S=>i.value.push("")),onRemove:S=>s(w)},null,8,["is-add-disabled","routing-rules-entity","onRemove"])]))),128))]),_:1})])):e.createCommentVNode("",!0)])}}}),[["__scopeId","data-v-41700dbb"]]),ot={class:"routing-rule-container"},rt=M(e.defineComponent({__name:"PathRules",props:{modelValue:{required:!0},modelModifiers:{}},emits:e.mergeModels(["add","remove"],["update:modelValue"]),setup(r,{emit:V}){const{i18n:{t:f}}=$.useI18n(),o=e.useModel(r,"modelValue"),i=V;return(c,s)=>{const k=e.resolveComponent("KLabel"),b=e.resolveComponent("KInput");return e.openBlock(),e.createElementBlock("div",ot,[e.createVNode(k,null,{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(f)("form.fields.paths.label")),1)]),_:1}),e.createVNode(e.TransitionGroup,{name:"appear"},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(o.value,(m,d)=>(e.openBlock(),e.createElementBlock("div",{key:d,class:"routing-rule-input"},[e.createVNode(b,{modelValue:o.value[d],"onUpdate:modelValue":g=>o.value[d]=g,modelModifiers:{trim:!0},"data-testid":`route-form-paths-input-${d+1}`,placeholder:e.unref(f)("form.fields.paths.placeholder")},null,8,["modelValue","onUpdate:modelValue","data-testid","placeholder"]),e.createVNode(Q,{"is-add-disabled":d!==o.value.length-1,"routing-rules-entity":e.unref(l).PATHS,onAdd:s[0]||(s[0]=g=>i("add")),onRemove:g=>i("remove",d)},null,8,["is-add-disabled","routing-rules-entity","onRemove"])]))),128))]),_:1})])}}}),[["__scopeId","data-v-99993752"]]),lt={class:"routing-rule-container"},st=M(e.defineComponent({__name:"SniRules",props:{modelValue:{required:!0},modelModifiers:{}},emits:e.mergeModels(["add","remove"],["update:modelValue"]),setup(r,{emit:V}){const{i18n:{t:f}}=$.useI18n(),o=e.useModel(r,"modelValue"),i=V;return(c,s)=>{const k=e.resolveComponent("KLabel"),b=e.resolveComponent("KInput");return e.openBlock(),e.createElementBlock("div",lt,[s[1]||(s[1]=e.createElementVNode("hr",null,null,-1)),e.createVNode(k,{info:e.unref(f)("form.fields.snis.tooltip")},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(f)("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(o.value,(m,d)=>(e.openBlock(),e.createElementBlock("div",{key:d,class:"routing-rule-input"},[e.createVNode(b,{modelValue:o.value[d],"onUpdate:modelValue":g=>o.value[d]=g,modelModifiers:{trim:!0},"data-testid":`route-form-snis-input-${d+1}`,placeholder:e.unref(f)("form.fields.snis.placeholder")},null,8,["modelValue","onUpdate:modelValue","data-testid","placeholder"]),e.createVNode(Q,{"is-add-disabled":d!==o.value.length-1,"routing-rules-entity":e.unref(l).SNIS,onAdd:s[0]||(s[0]=g=>i("add")),onRemove:g=>i("remove",d)},null,8,["is-add-disabled","routing-rules-entity","onRemove"])]))),128))]),_:1})])}}}),[["__scopeId","data-v-baae40df"]]),nt={class:"routing-rule-container"},at=M(e.defineComponent({__name:"SourceRules",props:{modelValue:{required:!0},modelModifiers:{}},emits:e.mergeModels(["add","remove"],["update:modelValue"]),setup(r,{emit:V}){const{i18n:{t:f}}=$.useI18n(),o=e.useModel(r,"modelValue"),i=V;return(c,s)=>{const k=e.resolveComponent("KLabel"),b=e.resolveComponent("KInput");return e.openBlock(),e.createElementBlock("div",nt,[s[1]||(s[1]=e.createElementVNode("hr",null,null,-1)),e.createVNode(k,{info:e.unref(f)("form.fields.sources.tooltip")},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(f)("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(o.value,(m,d)=>(e.openBlock(),e.createElementBlock("div",{key:d,class:"routing-rule-input"},[e.createVNode(b,{modelValue:o.value[d].ip,"onUpdate:modelValue":g=>o.value[d].ip=g,modelModifiers:{trim:!0},"data-testid":`route-form-sources-ip-input-${d+1}`,placeholder:e.unref(f)("form.fields.sources.ip.placeholder")},null,8,["modelValue","onUpdate:modelValue","data-testid","placeholder"]),e.createVNode(b,{modelValue:o.value[d].port,"onUpdate:modelValue":g=>o.value[d].port=g,modelModifiers:{number:!0},"data-testid":`route-form-sources-port-input-${d+1}`,max:"65535",min:"0",placeholder:e.unref(f)("form.fields.sources.port.placeholder"),type:"number"},null,8,["modelValue","onUpdate:modelValue","data-testid","placeholder"]),e.createVNode(Q,{"is-add-disabled":d!==o.value.length-1,"routing-rules-entity":e.unref(l).SOURCES,onAdd:s[0]||(s[0]=g=>i("add")),onRemove:g=>i("remove",d)},null,8,["is-add-disabled","routing-rules-entity","onRemove"])]))),128))]),_:1})])}}}),[["__scopeId","data-v-9cd541a4"]]),it={class:"route-form-routing-rules-title-container"},dt={class:"routing-rules-title"},ct={key:1,class:"route-form-routing-rules-selector-container"},pt={class:"route-form-routing-rules-selector-options"},ft=["aria-disabled","data-testid","onClick"],ut={class:"route-form-fields-container route-form-advanced-fields-container"},mt=M(e.defineComponent({__name:"TraditionalRules",props:e.mergeModels({protocols:{},hideAdvanced:{type:Boolean},readonly:{type:Boolean}},{fields:{required:!0},fieldsModifiers:{},customMethods:{required:!0},customMethodsModifiers:{}}),emits:["update:fields","update:customMethods"],setup(r){const{i18nT:V,i18n:f,i18n:{t:o}}=$.useI18n(),i=f.source.form.protocols,c=r,s=e.useModel(r,"fields"),k=e.useModel(r,"customMethods"),b=e.ref(!0),m=e.computed(()=>c.protocols.split(",")||[]),d=u=>{switch(u){case l.PATHS:Array.isArray(s.value.paths)?s.value.paths.push([...D[l.PATHS]][0]):s.value.paths=[...D[l.PATHS]];break;case l.SNIS:Array.isArray(s.value.snis)?s.value.snis.push([...D[l.SNIS]][0]):s.value.snis=[...D[l.SNIS]];break;case l.HOSTS:Array.isArray(s.value.hosts)?s.value.hosts.push([...D[l.HOSTS]][0]):s.value.hosts=[...D[l.HOSTS]];break;case l.METHODS:s.value.methods||(s.value.methods={...D[l.METHODS]});break;case l.HEADERS:Array.isArray(s.value.headers)?s.value.headers.push({...D[l.HEADERS][0]}):s.value.headers=[{...D[l.HEADERS][0]}];break;case l.SOURCES:Array.isArray(s.value.sources)?s.value.sources.push({...D[l.SOURCES][0]}):s.value.sources=[{...D[l.SOURCES][0]}];break;case l.DESTINATIONS:Array.isArray(s.value.destinations)?s.value.destinations.push({...D[l.DESTINATIONS][0]}):s.value.destinations=[{...D[l.DESTINATIONS][0]}];break}},g=async(u,a)=>{if(typeof a<"u"){const E=s.value[u];if(Array.isArray(E)&&(E.splice(a,1),E.length>0))return}await e.nextTick(()=>{delete s.value[u],u===l.METHODS&&(k.value=[""])})},A=u=>u.some(a=>c.protocols.includes(a)),x=e.computed(()=>{const u=Object.keys(D);return!Object.keys(s.value).some(a=>u.includes(a))}),n=e.computed(()=>{if(A(["tls_passthrough"]))return[S(l.SNIS)];const u=te[c.protocols].map(a=>S(a));return[[...u].splice(0,u.length-1).join(", "),u[u.length-1]]}),w=e.computed(()=>{var u;return(u=te[c.protocols])==null?void 0:u.filter(a=>!s.value[a])}),S=u=>{var E;return((E=f.source.form.fields[u])==null?void 0:E.label)||""},y=u=>{const a=new Set(Object.keys(D)),E=new Set(te[u]);for(const L of Object.keys(s.value))a.has(L)&&!E.has(L)&&g(L)};return e.watch(()=>c.protocols,u=>{y(u)},{immediate:!0}),(u,a)=>{const E=e.resolveComponent("KAlert"),L=e.resolveComponent("KCard"),P=e.resolveComponent("KSelect"),W=e.resolveComponent("KInput"),X=e.resolveComponent("KCheckbox"),re=e.resolveComponent("KCollapse");return e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createVNode(L,null,{title:e.withCtx(()=>[e.createElementVNode("div",it,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(m.value,h=>(e.openBlock(),e.createElementBlock("span",{key:h,class:"protocol-title"},e.toDisplayString(h.toUpperCase()),1))),128)),e.createElementVNode("span",dt,e.toDisplayString(e.unref(o)("form.sections.routingRules.title")),1)])]),default:e.withCtx(()=>[x.value?(e.openBlock(),e.createBlock(E,{key:0,appearance:"warning","data-testid":"routing-rules-warning"},{default:e.withCtx(()=>[e.createVNode(e.unref(V),{keypath:"form.warning.rulesMessage"},{protocol:e.withCtx(()=>[e.createElementVNode("b",null,e.toDisplayString(e.unref(i)[u.protocols]),1)]),routingRules:e.withCtx(()=>[e.createVNode(e.unref(V),{keypath:n.value[1]?"form.warning.multipleRules":"form.warning.singleRule"},{routingRules:e.withCtx(()=>[e.createElementVNode("b",null,e.toDisplayString(n.value[0]),1)]),lastRoutingRule:e.withCtx(()=>[e.createElementVNode("b",null,e.toDisplayString(n.value[1]),1)]),_:1},8,["keypath"])]),_:1})]),_:1})):e.createCommentVNode("",!0),e.createVNode(e.TransitionGroup,{name:"appear"},{default:e.withCtx(()=>[s.value.paths?(e.openBlock(),e.createBlock(rt,{key:"paths-container",modelValue:s.value.paths,"onUpdate:modelValue":a[0]||(a[0]=h=>s.value.paths=h),onAdd:a[1]||(a[1]=h=>d(e.unref(l).PATHS)),onRemove:a[2]||(a[2]=h=>g(e.unref(l).PATHS,h))},null,8,["modelValue"])):e.createCommentVNode("",!0),s.value.snis?(e.openBlock(),e.createBlock(st,{key:"snis-container",modelValue:s.value.snis,"onUpdate:modelValue":a[3]||(a[3]=h=>s.value.snis=h),onAdd:a[4]||(a[4]=h=>d(e.unref(l).SNIS)),onRemove:a[5]||(a[5]=h=>g(e.unref(l).SNIS,h))},null,8,["modelValue"])):e.createCommentVNode("",!0),s.value.hosts?(e.openBlock(),e.createBlock(Qe,{key:"hosts-container",modelValue:s.value.hosts,"onUpdate:modelValue":a[6]||(a[6]=h=>s.value.hosts=h),onAdd:a[7]||(a[7]=h=>d(e.unref(l).HOSTS)),onRemove:a[8]||(a[8]=h=>g(e.unref(l).HOSTS,h))},null,8,["modelValue"])):e.createCommentVNode("",!0),s.value.methods?(e.openBlock(),e.createBlock(tt,{key:"methods-container","custom-methods":k.value,"onUpdate:customMethods":a[9]||(a[9]=h=>k.value=h),methods:s.value.methods,"onUpdate:methods":a[10]||(a[10]=h=>s.value.methods=h),onRemove:a[11]||(a[11]=h=>g(e.unref(l).METHODS))},null,8,["custom-methods","methods"])):e.createCommentVNode("",!0),s.value.headers?(e.openBlock(),e.createBlock(ze,{key:"headers-container",modelValue:s.value.headers,"onUpdate:modelValue":a[12]||(a[12]=h=>s.value.headers=h),onAdd:a[13]||(a[13]=h=>d(e.unref(l).HEADERS)),onRemove:a[14]||(a[14]=h=>g(e.unref(l).HEADERS,h))},null,8,["modelValue"])):e.createCommentVNode("",!0),s.value.sources?(e.openBlock(),e.createBlock(at,{key:"sources-container",modelValue:s.value.sources,"onUpdate:modelValue":a[15]||(a[15]=h=>s.value.sources=h),onAdd:a[16]||(a[16]=h=>d(e.unref(l).SOURCES)),onRemove:a[17]||(a[17]=h=>g(e.unref(l).SOURCES,h))},null,8,["modelValue"])):e.createCommentVNode("",!0),s.value.destinations?(e.openBlock(),e.createBlock(We,{key:"destinations-container",modelValue:s.value.destinations,"onUpdate:modelValue":a[18]||(a[18]=h=>s.value.destinations=h),onAdd:a[19]||(a[19]=h=>d(e.unref(l).DESTINATIONS)),onRemove:a[20]||(a[20]=h=>g(e.unref(l).DESTINATIONS,h))},null,8,["modelValue"])):e.createCommentVNode("",!0)]),_:1}),w.value?(e.openBlock(),e.createElementBlock("div",ct,[a[29]||(a[29]=e.createElementVNode("hr",null,null,-1)),e.createElementVNode("div",pt,[e.createElementVNode("ul",null,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(te)[u.protocols],h=>(e.openBlock(),e.createElementBlock("li",{key:h},[e.createElementVNode("label",{"aria-disabled":!!s.value[h],class:e.normalizeClass(["option",{"is-selected":s.value[h]}]),"data-testid":`routing-rule-${h}`,role:"button",onClick:K=>d(h)},e.toDisplayString(S(h)),11,ft)]))),128))])])])):e.createCommentVNode("",!0)]),_:1}),u.hideAdvanced?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(re,{key:0,modelValue:b.value,"onUpdate:modelValue":a[28]||(a[28]=h=>b.value=h),class:"route-form-advanced-fields-collapse","trigger-alignment":"leading","trigger-label":e.unref(o)("form.viewAdvancedFields")},{default:e.withCtx(()=>[e.createElementVNode("div",ut,[s.value.paths?(e.openBlock(),e.createBlock(P,{key:0,modelValue:s.value.path_handling,"onUpdate:modelValue":a[21]||(a[21]=h=>s.value.path_handling=h),"data-testid":"route-form-path-handling",items:e.unref(_e),label:e.unref(o)("form.fields.path_handling.label"),"label-attributes":{info:e.unref(o)("form.fields.path_handling.tooltip"),tooltipAttributes:{maxWidth:"400"}},readonly:u.readonly,width:"100%"},null,8,["modelValue","items","label","label-attributes","readonly"])):e.createCommentVNode("",!0),e.createVNode(P,{modelValue:s.value.https_redirect_status_code,"onUpdate:modelValue":a[22]||(a[22]=h=>s.value.https_redirect_status_code=h),"data-testid":"route-form-http-redirect-status-code",items:e.unref(ue),label:e.unref(o)("form.fields.https_redirect_status_code.label"),readonly:u.readonly,width:"100%"},null,8,["modelValue","items","label","readonly"]),e.createVNode(W,{modelValue:s.value.regex_priority,"onUpdate:modelValue":a[23]||(a[23]=h=>s.value.regex_priority=h),autocomplete:"off","data-testid":"route-form-regex-priority",label:e.unref(o)("form.fields.regex_priority.label"),readonly:u.readonly,type:"number"},null,8,["modelValue","label","readonly"]),A(["http","https","ws","wss","tls","tcp","udp","tls_passthrough"])?(e.openBlock(),e.createBlock(X,{key:1,modelValue:s.value.strip_path,"onUpdate:modelValue":a[24]||(a[24]=h=>s.value.strip_path=h),"data-testid":"route-form-strip-path",label:e.unref(o)("form.fields.strip_path.label")},null,8,["modelValue","label"])):e.createCommentVNode("",!0),e.createVNode(X,{modelValue:s.value.preserve_host,"onUpdate:modelValue":a[25]||(a[25]=h=>s.value.preserve_host=h),"data-testid":"route-form-preserve-host",label:e.unref(o)("form.fields.preserve_host.label")},null,8,["modelValue","label"]),e.createVNode(X,{modelValue:s.value.request_buffering,"onUpdate:modelValue":a[26]||(a[26]=h=>s.value.request_buffering=h),"data-testid":"route-form-request-buffering",label:e.unref(o)("form.fields.request_buffering.label")},null,8,["modelValue","label"]),e.createVNode(X,{modelValue:s.value.response_buffering,"onUpdate:modelValue":a[27]||(a[27]=h=>s.value.response_buffering=h),"data-testid":"route-form-response-buffering",label:e.unref(o)("form.fields.response_buffering.label")},null,8,["modelValue","label"])])]),_:1},8,["modelValue","trigger-label"]))],64)}}}),[["__scopeId","data-v-414b2eed"]]),Ie=M(e.defineComponent({__name:"RouteFormRulesComposer",props:e.mergeModels({protocols:{},routeFlavors:{},readonly:{type:Boolean},recordFlavor:{},showExpressionsModalEntry:{type:Boolean},tooltips:{}},{fields:{default:()=>e.reactive({...oe,paths:[""],regex_priority:0,path_handling:"v0",expression:"",priority:0})},fieldsModifiers:{},customMethods:{default:()=>e.reactive([])},customMethodsModifiers:{},hash:{},hashModifiers:{}}),emits:e.mergeModels(["notify","update:payload"],["update:fields","update:customMethods","update:hash"]),setup(r,{emit:V}){const{i18n:{t:f}}=$.useI18n(),o=e.useModel(r,"fields"),i=e.useModel(r,"customMethods"),c=e.useModel(r,"hash"),s=r,k=V,b=e.computed(()=>{var u;const y=(u=c.value)==null?void 0:u.substring(1);switch(y){case R.TRADITIONAL:case R.EXPRESSIONS:return y}if(s.routeFlavors.traditional)return R.TRADITIONAL;if(s.routeFlavors.expressions)return R.EXPRESSIONS}),m=e.computed(()=>s.recordFlavor?s.recordFlavor:b.value),d=(y,u)=>{if(y===l.PATHS||y===l.HOSTS||y===l.SNIS)return[...u].filter(a=>!!a);if(y===l.SOURCES||y===l.DESTINATIONS)return[...u].filter(a=>!!a.ip).map(a=>({...a,port:!a.port&&a.port!==0?null:a.port}));if(y===l.HEADERS)return[...u].filter(a=>!!a.header)},g=e.computed(()=>{if(m.value!==R.TRADITIONAL)return[];const y=o.value;return y.methods?Object.entries(y.methods).reduce((u,[a,E])=>(E&&u.push(a),u),[]):[]}),A=y=>y.some(u=>s.protocols.includes(u)),x=()=>{if(m.value!==R.TRADITIONAL)return null;const y=o.value,u=d(l.HEADERS,y.headers||[])||D[l.HEADERS];return u.length===0?null:u.reduce((a,E)=>(a[E.header]=E.values.split(","),a),{})},n=y=>y!=null&&y.length?y:null,w=e.computed(()=>({https_redirect_status_code:o.value.https_redirect_status_code,strip_path:A(["grpc","gprcs"])?!1:o.value.strip_path,preserve_host:o.value.preserve_host,request_buffering:o.value.request_buffering,response_buffering:o.value.response_buffering})),S=e.computed(()=>{var y,u;switch(m.value){case R.TRADITIONAL:{const a=o.value,E={...w.value,methods:null,hosts:n(d(l.HOSTS,a.hosts||[])),paths:n(d(l.PATHS,a.paths||[])),headers:x(),regex_priority:Number(a.regex_priority),path_handling:a.path_handling,sources:n(d(l.SOURCES,a.sources||[])),destinations:n(d(l.DESTINATIONS,a.destinations||[])),snis:n(d(l.SNIS,a.snis||[]))};if((y=g.value)!=null&&y.length&&(E.methods=[...g.value],(u=g.value)!=null&&u.includes("CUSTOM"))){const L=E.methods.indexOf("CUSTOM");L!==-1&&E.methods.splice(L,1),i.value.forEach(P=>{var W;P&&E.methods&&!((W=E.methods)!=null&&W.includes(P))&&E.methods.push(P.toUpperCase())})}return{type:m.value,payload:E}}case R.EXPRESSIONS:{const a=o.value;return{type:m.value,payload:{...w.value,expression:a.expression,priority:Number(a.priority)}}}default:return}});return e.watch(S,y=>{k("update:payload",y)},{deep:!0,immediate:!0}),(y,u)=>{const a=e.resolveComponent("KAlert");return y.routeFlavors.traditional||y.routeFlavors.expressions?(e.openBlock(),e.createBlock(qe,{key:0,modelValue:c.value,"onUpdate:modelValue":u[4]||(u[4]=E=>c.value=E),"route-flavors":y.routeFlavors,tooltips:y.tooltips},e.createSlots({"before-content":e.withCtx(()=>[y.routeFlavors.traditional&&y.routeFlavors.expressions&&(!y.recordFlavor||y.recordFlavor!==b.value)?(e.openBlock(),e.createBlock(a,{key:0,appearance:y.recordFlavor?"warning":"info",class:"route-form-config-type-immutable-alert","data-testid":"route-config-type-immutable-alert"},{default:e.withCtx(()=>[y.recordFlavor?y.recordFlavor!==b.value?(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createTextVNode(e.toDisplayString(e.unref(f)("form.warning.cannotChangeFlavor.edit",{format:e.unref(f)(`form.flavors.${y.recordFlavor}`)})),1)],64)):e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createTextVNode(e.toDisplayString(e.unref(f)("form.warning.cannotChangeFlavor.create")),1)],64))]),_:1},8,["appearance"])):e.createCommentVNode("",!0)]),_:2},[!y.recordFlavor||y.recordFlavor===e.unref(R).TRADITIONAL?{name:e.unref(R).TRADITIONAL,fn:e.withCtx(()=>[e.createVNode(mt,{"custom-methods":i.value,"onUpdate:customMethods":u[0]||(u[0]=E=>i.value=E),fields:o.value,"onUpdate:fields":u[1]||(u[1]=E=>o.value=E),protocols:y.protocols,readonly:y.readonly},null,8,["custom-methods","fields","protocols","readonly"])]),key:"0"}:void 0,!y.recordFlavor||y.recordFlavor===e.unref(R).EXPRESSIONS?{name:e.unref(R).EXPRESSIONS,fn:e.withCtx(()=>[e.createVNode(Ke,{fields:o.value,"onUpdate:fields":u[2]||(u[2]=E=>o.value=E),protocols:y.protocols,readonly:y.readonly,"show-expressions-modal-entry":y.showExpressionsModalEntry,onNotify:u[3]||(u[3]=E=>k("notify",E))},null,8,["fields","protocols","readonly","show-expressions-modal-entry"])]),key:"1"}:void 0]),1032,["modelValue","route-flavors","tooltips"])):e.createCommentVNode("",!0)}}}),[["__scopeId","data-v-b6ef2c61"]]),ht={class:"kong-ui-entities-route-form"},gt={key:1},yt={"data-testid":"no-search-results"},St={class:"route-form-service-dropdown-item"},bt={class:"select-item-label"},Ct={class:"select-item-description"},Et=M(e.defineComponent({__name:"RouteForm",props:{config:{type:Object,required:!0,validator:r=>!(!r||!["konnect","kongManager"].includes(r==null?void 0:r.app)||(r==null?void 0:r.app)==="konnect"&&!(r!=null&&r.controlPlaneId)||(r==null?void 0:r.app)==="kongManager"&&typeof(r==null?void 0:r.workspace)!="string"||!(r!=null&&r.cancelRoute))},routeId:{type:String,required:!1,default:""},serviceId:{type:String,required:!1,default:""},hideSectionsInfo:{type:Boolean,required:!1,default:!1},hideNameField:{type:Boolean,required:!1,default:!1},hideServiceField:{type:Boolean,required:!1,default:!1},routeFlavors:{type:Object,required:!1,default:()=>({traditional:!0})},configTabTooltips:{type:Object,required:!1,default:()=>{}},showExpressionsModalEntry:{type:Boolean,required:!1,default:!1}},emits:["update","error","loading","model-updated","notify"],setup(r,{expose:V,emit:f}){var ne;const o=r,i=f,c=e.ref(o.routeFlavors.traditional?`#${R.TRADITIONAL}`:o.routeFlavors.expressions?`#${R.EXPRESSIONS}`:""),s=e.computed(()=>{if(c.value)return c.value.substring(1)}),k=e.ref(void 0),b=e.computed(()=>{if(k.value)return k.value;if(s.value)return s.value;if(o.routeFlavors.traditional)return R.TRADITIONAL;if(o.routeFlavors.expressions)return R.EXPRESSIONS}),{i18n:{t:m}}=$.useI18n(),d=Ee.useRouter(),{axiosInstance:g}=_.useAxios((ne=o.config)==null?void 0:ne.axiosRequestConfig),{getMessageFromError:A}=_.useErrors(),x=t=>t.name?`${t.name} - ${t.value}`:t.value,n=e.reactive({routeFlavors:o.routeFlavors,fields:{name:"",protocols:"http,https",tags:"",service_id:"",...oe,...!o.routeId&&{paths:[""]},regex_priority:0,path_handling:"v0",expression:"",priority:0},isReadonly:!1,errorMessage:""});e.watch(()=>o.routeFlavors,t=>{n.routeFlavors=t});const w=e.ref(),S=e.ref([""]),y=e.reactive({name:"",protocols:"http,https",tags:"",service_id:"",...oe,path_handling:"v0",regex_priority:0,expression:"",priority:0}),u=o.config.app==="konnect"||_.useGatewayFeatureSupported({gatewayInfo:o.config.gatewayInfo,supportedRange:{enterprise:["3.0"]}}),a=[{label:m("form.protocols.grpc"),value:"grpc"},{label:m("form.protocols.grpcs"),value:"grpcs"},{label:m("form.protocols.grpc,grpcs"),value:"grpc,grpcs"},{label:m("form.protocols.http"),value:"http"},{label:m("form.protocols.https"),value:"https"},{label:m("form.protocols.http,https"),value:"http,https"},{label:m("form.protocols.tcp"),value:"tcp"},{label:m("form.protocols.tls"),value:"tls"},{label:m("form.protocols.tls,udp"),value:"tls,udp"},{label:m("form.protocols.tcp,udp"),value:"tcp,udp"},{label:m("form.protocols.tcp,tls"),value:"tcp,tls"},{label:m("form.protocols.tcp,tls,udp"),value:"tcp,tls,udp"},{label:m("form.protocols.tls_passthrough"),value:"tls_passthrough"},{label:m("form.protocols.udp"),value:"udp"},...u?[{label:m("form.protocols.ws"),value:"ws"},{label:m("form.protocols.wss"),value:"wss"},{label:m("form.protocols.ws,wss"),value:"ws,wss"}]:[]],E=e.computed(()=>o.routeId?_.EntityBaseFormType.Edit:_.EntityBaseFormType.Create),L=e.computed(()=>{var t,p,C;return(C=(p=Z.form[(t=o.config)==null?void 0:t.app])==null?void 0:p.fetch)==null?void 0:C[o.serviceId?"forGatewayService":"all"].replace(/{serviceId}/gi,o.serviceId||"")}),P=()=>{var t;d.push((t=o.config)==null?void 0:t.cancelRoute)},W=t=>{i("loading",t)},X=t=>{i("error",t)},re=t=>{ae(n)&&(n.fields.methods={...D[l.METHODS]},t.forEach(p=>{n.fields.methods&&(n.fields.methods[p]=!0)}))},h=t=>Object.entries(t).map(p=>{var C;return{header:p[0],values:(C=p[1])==null?void 0:C.join()}}),K=t=>t.some(p=>n.fields.protocols.includes(p)),ie=t=>{var C,T;if(o.routeId){const I=typeof t.expression=="string"&&t.expression.length>0?R.EXPRESSIONS:R.TRADITIONAL;k.value=I,c.value=`#${I}`}(C=t==null?void 0:t.service)!=null&&C.id&&(n.fields.service_id=t.service.id),n.fields.name=(t==null?void 0:t.name)||"";const p=(t==null?void 0:t.tags)||[];n.fields.tags=(p==null?void 0:p.join(", "))||"",n.fields.preserve_host=typeof(t==null?void 0:t.preserve_host)>"u"?!1:t==null?void 0:t.preserve_host,n.fields.https_redirect_status_code=(t==null?void 0:t.https_redirect_status_code)||426,(T=t==null?void 0:t.protocols)!=null&&T.length&&(t.protocols.length>1?n.fields.protocols=t.protocols.join():n.fields.protocols=t.protocols[0]),n.fields.request_buffering=typeof(t==null?void 0:t.request_buffering)>"u"?!0:t==null?void 0:t.request_buffering,n.fields.response_buffering=typeof(t==null?void 0:t.response_buffering)>"u"?!0:t==null?void 0:t.response_buffering,n.fields.strip_path=typeof(t==null?void 0:t.strip_path)>"u"?!0:t==null?void 0:t.strip_path,ae(n)&&(n.fields.regex_priority=(t==null?void 0:t.regex_priority)||0,n.fields.path_handling=(t==null?void 0:t.path_handling)||"v0",t!=null&&t.paths&&(n.fields.paths=t.paths),t!=null&&t.snis&&(n.fields.snis=t.snis),t!=null&&t.hosts&&(n.fields.hosts=t.hosts),t!=null&&t.methods&&re(t.methods),t!=null&&t.headers&&(n.fields.headers=h(t.headers)),t!=null&&t.sources&&(n.fields.sources=t.sources),t!=null&&t.destinations&&(n.fields.destinations=t.destinations)),fe(n)&&(n.fields.expression=(t==null?void 0:t.expression)||"",n.fields.priority=(t==null?void 0:t.priority)||0),Object.assign(y,JSON.parse(JSON.stringify(n.fields)))},de=e.computed(()=>{var t;switch(b.value){case R.TRADITIONAL:{if(ae(n)){const p=n.fields.hosts?!!n.fields.hosts.filter(Boolean).length:null,C=n.fields.paths?!!n.fields.paths.filter(Boolean).length:null,T=n.fields.headers?n.fields.headers.some(({header:j})=>!!j):null,I=n.fields.snis?!!n.fields.snis.filter(Boolean).length:null,G=n.fields.destinations?n.fields.destinations.some(({ip:j})=>!!j):null,Y=n.fields.sources?n.fields.sources.some(({ip:j})=>!!j):null,O=((t=n.fields.methods)==null?void 0:t.CUSTOM)?S.value.some(j=>!!j):Object.values(n.fields.methods||{}).includes(!0);return!!n.fields.protocols&&(K(["http"])&&!!(p||O||C||T)||K(["https"])&&!!(p||O||C||T||I)||K(["grpc"])&&!!(p||C||T)||K(["grpcs","wss"])&&!!(p||C||T||I)||K(["udp","tls"])&&!!(G||Y||I)||K(["tcp"])&&!!(G||Y)||K(["tls_passthrough"])&&!!I||K(["ws"])&&!!(p||C||T))}break}case R.EXPRESSIONS:{if(fe(n))return n.fields.expression.length>0;break}}return!0}),ce=e.computed(()=>!Re(n.fields,y)),le=e.computed(()=>{var p,C;let t=`${o.config.apiBaseUrl}${Z.form[o.config.app][E.value][o.serviceId?"forGatewayService":"all"]}`;return o.config.app==="konnect"?t=t.replace(/{controlPlaneId}/gi,((p=o.config)==null?void 0:p.controlPlaneId)||"").replace(/{serviceId}/gi,o.serviceId||""):o.config.app==="kongManager"&&(t=t.replace(/\/{workspace}/gi,(C=o.config)!=null&&C.workspace?`/${o.config.workspace}`:"").replace(/{serviceId}/gi,o.serviceId||"")),t=t.replace(/{id}/gi,o.routeId),t});e.watch(()=>n.fields,()=>{i("model-updated",U.value)},{deep:!0});const U=e.computed(()=>{var t,p,C;return{...!o.hideNameField&&{name:n.fields.name||null},protocols:n.fields.protocols.split(","),tags:(p=(t=n.fields.tags.split(","))==null?void 0:t.map(T=>String(T||"").trim()))==null?void 0:p.filter(T=>T!==""),service:n.fields.service_id?{id:n.fields.service_id}:null,...(C=w.value)==null?void 0:C.payload}}),v=t=>{switch(b.value){case R.TRADITIONAL:{if(!("regex_priority"in t&&"path_handling"in t))return!1;break}case R.EXPRESSIONS:{if(!("priority"in t))return!1;break}}return"service"in t&&"tags"in t&&"protocols"in t},z=async t=>{var C;const p=t&&v(t)?t:U.value;try{n.isReadonly=!0;let T;E.value==="create"?T=await g.post(le.value,p):E.value==="edit"&&(T=((C=o.config)==null?void 0:C.app)==="konnect"?await g.put(le.value,p):await g.patch(le.value,p)),ie(T==null?void 0:T.data),i("update",T==null?void 0:T.data)}catch(T){n.errorMessage=A(T),i("error",T)}finally{n.isReadonly=!1}},{debouncedQueryChange:pe,loading:he,error:ge,loadItems:ye,results:Se}=_.useDebouncedFilter(o.config,Z.form[o.config.app].services,void 0,{fetchedItemsKey:"data",searchKeys:["id","name"]}),be=e.computed(()=>ge.value?m("errors.services.fetch"):""),se=e.computed(()=>{var t;return(t=Se.value)==null?void 0:t.map(p=>({label:p.id,name:p.name,value:p.id}))});return e.onBeforeMount(async()=>{!o.hideServiceField&&!o.serviceId?await ye():n.fields.service_id=o.serviceId}),e.onMounted(()=>{i("model-updated",U.value)}),V({saveFormData:z,payload:U}),(t,p)=>{const C=e.resolveComponent("KInput"),T=e.resolveComponent("KSelect");return e.openBlock(),e.createElementBlock("div",ht,[e.createVNode(e.unref(_.EntityBaseForm),{"can-submit":de.value&&ce.value,config:r.config,"edit-id":r.routeId,"entity-type":e.unref(_.SupportedEntityType).Route,"error-message":n.errorMessage||be.value,"fetch-url":L.value,"form-fields":U.value,"is-readonly":n.isReadonly,onCancel:P,"onFetch:error":X,"onFetch:success":ie,onLoading:W,onSubmit:z},{"form-actions":e.withCtx(()=>[e.renderSlot(t.$slots,"form-actions",{canSubmit:de.value&&ce.value,cancel:P,submit:z},void 0,!0)]),default:e.withCtx(()=>[e.createVNode(e.unref(_.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(C,{key:0,modelValue:n.fields.name,"onUpdate:modelValue":p[0]||(p[0]=I=>n.fields.name=I),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:n.isReadonly,type:"text"},null,8,["modelValue","label","placeholder","readonly"])),!r.hideServiceField&&!r.serviceId?(e.openBlock(),e.createElementBlock("div",gt,[e.createVNode(T,{modelValue:n.fields.service_id,"onUpdate:modelValue":p[1]||(p[1]=I=>n.fields.service_id=I),clearable:"","data-testid":"route-form-service-id","enable-filtering":"","filter-function":()=>!0,items:se.value,label:e.unref(m)("form.fields.service_id.label"),loading:e.unref(he),placeholder:e.unref(m)("form.fields.service_id.placeholder"),readonly:n.isReadonly,"reuse-item-template":"",width:"100%",onQueryChange:e.unref(pe)},{loading:e.withCtx(()=>[e.createElementVNode("div",null,e.toDisplayString(e.unref(m)("actions.loading")),1)]),empty:e.withCtx(()=>[e.createElementVNode("div",yt,e.toDisplayString(e.unref(m)("search.no_results")),1)]),"selected-item-template":e.withCtx(({item:I})=>[e.createTextVNode(e.toDisplayString(x(I)),1)]),"item-template":e.withCtx(({item:I})=>[e.createElementVNode("div",St,[e.createElementVNode("span",bt,e.toDisplayString(I.name),1),e.createElementVNode("span",Ct,e.toDisplayString(I.value),1)])]),_:1},8,["modelValue","items","label","loading","placeholder","readonly","onQueryChange"])])):e.createCommentVNode("",!0),e.createVNode(C,{modelValue:n.fields.tags,"onUpdate:modelValue":p[2]||(p[2]=I=>n.fields.tags=I),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:n.isReadonly,type:"text"},null,8,["modelValue","help","label","placeholder","readonly"])]),_:1},8,["description","hide-info-header","title"]),e.createVNode(e.unref(_.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(T,{modelValue:n.fields.protocols,"onUpdate:modelValue":p[3]||(p[3]=I=>n.fields.protocols=I),"data-testid":"route-form-protocols",items:a,label:e.unref(m)("form.fields.protocols.label"),"label-attributes":{info:e.unref(m)("form.fields.protocols.tooltip"),tooltipAttributes:{maxWidth:"400"}},readonly:n.isReadonly,required:"",width:"100%"},null,8,["modelValue","label","label-attributes","readonly"]),e.createVNode(Ie,{"custom-methods":S.value,"onUpdate:customMethods":p[4]||(p[4]=I=>S.value=I),fields:n.fields,"onUpdate:fields":p[5]||(p[5]=I=>n.fields=I),hash:c.value,"onUpdate:hash":p[6]||(p[6]=I=>c.value=I),tags:n.fields.tags,"onUpdate:tags":p[7]||(p[7]=I=>n.fields.tags=I),protocols:n.fields.protocols,readonly:n.isReadonly,"record-flavor":k.value,"route-flavors":r.routeFlavors,"show-expressions-modal-entry":r.showExpressionsModalEntry,tooltips:r.configTabTooltips,onNotify:p[8]||(p[8]=I=>i("notify",I)),"onUpdate:payload":p[9]||(p[9]=I=>w.value=I)},null,8,["custom-methods","fields","hash","tags","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-2a53a125"]]),kt={class:"kong-ui-entities-routes-list"},Nt={class:"button-row"},_t={class:"empty-state-icon-gateway"},Tt={key:1},Vt={key:1},It={key:1},Rt={class:"route-list-cell-expression"},wt=M(e.defineComponent({__name:"RouteList",props:{config:{type:Object,required:!0,validator:r=>!(!r||!["konnect","kongManager"].includes(r==null?void 0:r.app)||!r.createRoute||!r.getViewRoute||!r.getEditRoute||r.app==="kongManager"&&!r.isExactMatch&&!r.filterSchema)},cacheIdentifier:{type:String,default:""},canCreate:{type:Function,required:!1,default:async()=>!0},canDelete:{type:Function,required:!1,default:async()=>!0},canEdit:{type:Function,required:!1,default:async()=>!0},canRetrieve:{type:Function,required:!1,default:async()=>!0},title:{type:String,default:""},titleTag:{type:String,default:"h2"},useActionOutside:{type:Boolean,default:!1},hideTraditionalColumns:{type:Boolean,default:!1},hasExpressionColumn:{type:Boolean,default:!1},enableV2EmptyStates:{type:Boolean,default:!1}},emits:["error","click:learn-more","copy:success","copy:error","delete:success"],setup(r,{emit:V}){var ne;const f=V,o=r,{i18n:{t:i,formatUnixTimeStamp:c}}=$.useI18n(),s=Ee.useRouter(),{axiosInstance:k}=_.useAxios((ne=o.config)==null?void 0:ne.axiosRequestConfig),{handleStateChange:b,hasRecords:m}=_.useTableState(()=>u.value),d=e.computed(()=>m.value&&o.config.app==="konnect"),g=e.computed(()=>!o.enableV2EmptyStates&&o.config.app==="konnect"),A=e.computed(()=>!!o.config.serviceId),x=e.computed(()=>o.config.app!=="kongManager"||!!o.config.disableSorting),n={name:{label:i("routes.list.table_headers.name"),searchable:!0,sortable:!0,hidable:!1},protocols:{label:i("routes.list.table_headers.protocols"),searchable:!0},...!o.hideTraditionalColumns&&{hosts:{label:i("routes.list.table_headers.hosts"),searchable:!0},methods:{label:i("routes.list.table_headers.methods"),searchable:!0},paths:{label:i("routes.list.table_headers.paths"),searchable:!0}},...o.hasExpressionColumn&&{expression:{label:i("routes.list.table_headers.expression"),tooltip:!0}},tags:{label:i("routes.list.table_headers.tags"),sortable:!1},updated_at:{label:i("routes.list.table_headers.updated_at"),sortable:!0},created_at:{label:i("routes.list.table_headers.created_at"),sortable:!0}},w={columnVisibility:{created_at:!1}},S=n,y=e.computed(()=>{var p,C,T,I;let t=`${o.config.apiBaseUrl}${Z.list[o.config.app][o.config.serviceId?"forGatewayService":"all"]}`;return o.config.app==="konnect"?t=t.replace(/{controlPlaneId}/gi,((p=o.config)==null?void 0:p.controlPlaneId)||"").replace(/{serviceId}/gi,((C=o.config)==null?void 0:C.serviceId)||""):o.config.app==="kongManager"&&(t=t.replace(/\/{workspace}/gi,(T=o.config)!=null&&T.workspace?`/${o.config.workspace}`:"").replace(/{serviceId}/gi,((I=o.config)==null?void 0:I.serviceId)||"")),t}),u=e.ref(""),a=e.computed(()=>{const t=o.config.app==="konnect"||o.config.isExactMatch;if(t)return{isExactMatch:t,placeholder:i(`search.placeholder.${o.config.isExactMatch?"exact":o.config.app}`)};const{name:p,protocols:C,hosts:T,methods:I,paths:G,expression:Y}=n,N={name:p,protocols:C,hosts:T,methods:I,paths:G,...o.hasExpressionColumn&&{expression:Y}};return{isExactMatch:t,fields:N,schema:o.config.filterSchema}}),{fetcher:E,fetcherState:L,fetcherCacheKey:P}=_.useFetcher({...o.config,cacheIdentifier:o.cacheIdentifier},y.value),W=t=>t.headerKey==="expression"?{style:{maxWidth:"250px",overflowX:"hidden",textOverflow:"ellipsis"}}:{},X=()=>{u.value=""},re=()=>{P.value++},h=e.ref(null),K=async(t,p)=>{const C=t.id;if(!await p(C)){f("copy:error",{entity:t,field:"id",message:i("errors.copy")});return}f("copy:success",{entity:t,field:"id",message:i("copy.success",{val:C})})},ie=async(t,p)=>{const C=JSON.stringify(t);if(!await p(C)){f("copy:error",{entity:t,message:i("errors.copy")});return}f("copy:success",{entity:t,message:i("copy.success_brief")})},de=async t=>{var C;await((C=o.canRetrieve)==null?void 0:C.call(o,t))&&s.push(o.config.getViewRoute(t.id))},ce=t=>({label:i("actions.view"),to:o.config.getViewRoute(t)}),le=t=>({label:i("actions.edit"),to:o.config.getEditRoute(t)}),U=e.ref(void 0),v=e.ref(!1),z=e.ref(!1),pe=e.ref(""),he=_.useDeleteUrlBuilder(o.config,y.value),ge=t=>{U.value=t,v.value=!0},ye=()=>{v.value=!1},Se=async()=>{var t,p,C;if((t=U.value)!=null&&t.id){z.value=!0;try{await k.delete(he(U.value.id)),z.value=!1,v.value=!1,P.value++,f("delete:success",U.value)}catch(T){pe.value=((C=(p=T.response)==null?void 0:p.data)==null?void 0:C.message)||T.message||i("errors.delete"),f("error",T)}finally{z.value=!1}}},be=()=>{s.push(o.config.createRoute)};e.watch(L,t=>{var p,C,T;if(t.status===_.FetcherStatus.Error){h.value={title:i("errors.general")},(T=(C=(p=t.error)==null?void 0:p.response)==null?void 0:C.data)!=null&&T.message&&(h.value.message=t.error.response.data.message),f("error",t.error);return}h.value=null});const se=e.ref({ctaPath:o.config.createRoute,ctaText:void 0,message:`${i("routes.list.empty_state.description")}${o.config.additionMessageForEmptyState?` ${o.config.additionMessageForEmptyState}`:""}`,title:i("routes.title")});return e.onBeforeMount(async()=>{await o.canCreate()&&(se.value.title=i("routes.list.empty_state.title"),se.value.ctaText=i("actions.create"))}),(t,p)=>{const C=e.resolveComponent("KButton"),T=e.resolveComponent("KBadge"),I=e.resolveComponent("KTruncate"),G=e.resolveComponent("KDropdownItem"),Y=e.resolveComponent("KClipboardProvider");return e.openBlock(),e.createElementBlock("div",kt,[e.createVNode(e.unref(_.EntityBaseTable),{"cache-identifier":r.cacheIdentifier,"cell-attributes":W,"default-table-preferences":w,"disable-sorting":x.value,"empty-state-options":se.value,"enable-entity-actions":"","error-message":h.value,fetcher:e.unref(E),"fetcher-cache-key":e.unref(P),"pagination-type":"offset","preferences-storage-key":"kong-ui-entities-routes-list",query:u.value,"table-headers":e.unref(S),title:r.title,"title-tag":r.titleTag,onClearSearchInput:X,"onClick:row":p[8]||(p[8]=N=>de(N)),onSort:re,onState:e.unref(b)},e.createSlots({"toolbar-filter":e.withCtx(()=>[e.createVNode(e.unref(_.EntityFilter),{modelValue:u.value,"onUpdate:modelValue":p[0]||(p[0]=N=>u.value=N),config:a.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",Nt,[!A.value&&d.value?(e.openBlock(),e.createBlock(C,{key:0,appearance:"secondary",class:"open-learning-hub","data-testid":"routes-learn-more-button",icon:"",onClick:p[1]||(p[1]=N=>t.$emit("click:learn-more"))},{default:e.withCtx(()=>[e.createVNode(e.unref(q.BookIcon),{decorative:""})]),_:1})):e.createCommentVNode("",!0),e.createVNode(e.unref(_.PermissionsWrapper),{"auth-function":()=>r.canCreate()},{default:e.withCtx(()=>[e.createVNode(C,{appearance:"primary","data-testid":"toolbar-add-route",size:r.useActionOutside?"medium":"large",to:r.config.createRoute},{default:e.withCtx(()=>[e.createVNode(e.unref(q.AddIcon)),e.createTextVNode(" "+e.toDisplayString(e.unref(i)("routes.list.toolbar_actions.new_route")),1)]),_:1},8,["size","to"])]),_:1},8,["auth-function"])])],8,["disabled"]))]),name:e.withCtx(({rowValue:N})=>[e.createElementVNode("b",null,e.toDisplayString(N??"-"),1)]),protocols:e.withCtx(({rowValue:N})=>[e.createVNode(I,null,{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(N,O=>(e.openBlock(),e.createBlock(T,{key:O,appearance:"neutral",onClick:p[4]||(p[4]=e.withModifiers(()=>{},["stop"]))},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(O),1)]),_:2},1024))),128))]),_:2},1024)]),hosts:e.withCtx(({rowValue:N})=>[(N==null?void 0:N.length)>0?(e.openBlock(),e.createBlock(I,{key:0},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(N,O=>(e.openBlock(),e.createBlock(T,{key:O,appearance:"neutral",tooltip:O,"truncation-tooltip":"",onClick:p[5]||(p[5]=e.withModifiers(()=>{},["stop"]))},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(O),1)]),_:2},1032,["tooltip"]))),128))]),_:2},1024)):(e.openBlock(),e.createElementBlock("span",Tt,"-"))]),methods:e.withCtx(({rowValue:N})=>[(N==null?void 0:N.length)>0?(e.openBlock(),e.createBlock(I,{key:0},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(N,O=>(e.openBlock(),e.createBlock(T,{key:O,appearance:Object.values(e.unref(ke.BadgeMethodAppearances)).includes(O.toLowerCase())?O.toLowerCase():"custom",onClick:p[6]||(p[6]=e.withModifiers(()=>{},["stop"]))},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(O),1)]),_:2},1032,["appearance"]))),128))]),_:2},1024)):(e.openBlock(),e.createElementBlock("span",Vt,"-"))]),paths:e.withCtx(({rowValue:N})=>[(N==null?void 0:N.length)>0?(e.openBlock(),e.createBlock(I,{key:0},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(N,O=>(e.openBlock(),e.createBlock(T,{key:O,appearance:"neutral",tooltip:O,"truncation-tooltip":"",onClick:p[7]||(p[7]=e.withModifiers(()=>{},["stop"]))},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(O),1)]),_:2},1032,["tooltip"]))),128))]),_:2},1024)):(e.openBlock(),e.createElementBlock("span",It,"-"))]),tags:e.withCtx(({rowValue:N})=>[e.createVNode(e.unref(_.TableTags),{tags:N},null,8,["tags"])]),expression:e.withCtx(({rowValue:N})=>[e.createElementVNode("span",Rt,e.toDisplayString(N||"-"),1)]),created_at:e.withCtx(({rowValue:N})=>[e.createTextVNode(e.toDisplayString(e.unref(c)(N)),1)]),updated_at:e.withCtx(({row:N,rowValue:O})=>[e.createTextVNode(e.toDisplayString(e.unref(c)(O??N.created_at)),1)]),actions:e.withCtx(({row:N})=>[e.createVNode(Y,null,{default:e.withCtx(({copyToClipboard:O})=>[e.createVNode(G,{"data-testid":"action-entity-copy-id",onClick:j=>K(N,O)},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(i)("actions.copy_id")),1)]),_:2},1032,["onClick"])]),_:2},1024),e.createVNode(Y,null,{default:e.withCtx(({copyToClipboard:O})=>[e.createVNode(G,{"data-testid":"action-entity-copy-json",onClick:j=>ie(N,O)},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(i)("actions.copy_json")),1)]),_:2},1032,["onClick"])]),_:2},1024),e.createVNode(e.unref(_.PermissionsWrapper),{"auth-function":()=>r.canRetrieve(N)},{default:e.withCtx(()=>[e.createVNode(G,{"data-testid":"action-entity-view","has-divider":"",item:ce(N.id)},null,8,["item"])]),_:2},1032,["auth-function"]),e.createVNode(e.unref(_.PermissionsWrapper),{"auth-function":()=>r.canEdit(N)},{default:e.withCtx(()=>[e.createVNode(G,{"data-testid":"action-entity-edit",item:le(N.id)},null,8,["item"])]),_:2},1032,["auth-function"]),e.createVNode(e.unref(_.PermissionsWrapper),{"auth-function":()=>r.canDelete(N)},{default:e.withCtx(()=>[e.createVNode(G,{danger:"","data-testid":"action-entity-delete","has-divider":"",onClick:O=>ge(N)},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(i)("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(C,{appearance:"secondary",class:"open-learning-hub","data-testid":"routes-learn-more-button",icon:"",onClick:p[2]||(p[2]=N=>t.$emit("click:learn-more"))},{default:e.withCtx(()=>[e.createVNode(e.unref(q.BookIcon),{decorative:""})]),_:1})],8,["disabled"]))]),key:"0"}:void 0,!u.value&&r.enableV2EmptyStates&&r.config.app==="konnect"?{name:"empty-state",fn:e.withCtx(()=>{var N;return[e.createVNode(e.unref(_.EntityEmptyState),{"action-button-text":e.unref(i)("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(i)("routes.list.empty_state_v2.description"),"learn-more":r.config.app==="konnect",title:e.unref(i)("routes.list.empty_state_v2.title"),"onClick:create":be,"onClick:learnMore":p[3]||(p[3]=O=>t.$emit("click:learn-more"))},e.createSlots({image:e.withCtx(()=>[e.createElementVNode("div",_t,[e.createVNode(e.unref(q.ForwardIcon),{color:e.unref($e),size:e.unref(Me)},null,8,["color","size"])])]),_:2},[(N=r.config)!=null&&N.isControlPlaneGroup?{name:"message",fn:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(i)("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(_.EntityDeleteModal),{"action-pending":z.value,description:e.unref(i)("delete.description"),"entity-name":U.value&&(U.value.name||U.value.id),"entity-type":e.unref(_.EntityTypes).Route,error:pe.value,title:e.unref(i)("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"]]),Bt=Object.freeze(Object.defineProperty({__proto__:null,default:e.defineComponent({__name:"RouteFormExpressionsEditor",props:e.mergeModels({protocol:{},showExpressionsModalEntry:{type:Boolean},hintText:{}},{modelValue:{required:!0},modelModifiers:{}}),emits:e.mergeModels(["notify"],["update:modelValue"]),setup(r,{emit:V}){const f=r,o=e.useModel(r,"modelValue"),i=V,c=e.ref(!1),s=e.computed(()=>ee.PROTOCOL_TO_SCHEMA[f.protocol]),k=e.computed(()=>ee.HTTP_BASED_PROTOCOLS.includes(f.protocol??"")),b=e.computed(()=>f.showExpressionsModalEntry&&!k.value?`${f.hintText}${ee.HTTP_BASED_PROTOCOLS}`:void 0),m=A=>{o.value=A,c.value=!1},d=A=>{i("notify",A)},g=()=>{k.value&&(c.value=!0)};return(A,x)=>{const n=e.resolveComponent("KTooltip");return e.openBlock(),e.createElementBlock(e.Fragment,null,[s.value!==void 0?(e.openBlock(),e.createBlock(e.unref(ee.ExpressionsEditor),{key:0,modelValue:o.value,"onUpdate:modelValue":x[0]||(x[0]=w=>o.value=w),schema:s.value},null,8,["modelValue","schema"])):e.createCommentVNode("",!0),e.createVNode(n,{placement:"bottom-start",text:b.value},{default:e.withCtx(()=>[A.showExpressionsModalEntry?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass({disabled:!k.value,"route-form-open-in-playground":!0}),"data-testid":"open-router-playground",onClick:g},[e.renderSlot(A.$slots,"default")],2)):e.createCommentVNode("",!0)]),_:3},8,["text"]),A.showExpressionsModalEntry&&k.value?(e.openBlock(),e.createBlock(e.unref(ee.RouterPlaygroundModal),{key:1,"initial-expression":o.value,"is-visible":c.value,onCancel:x[1]||(x[1]=w=>c.value=!1),onCommit:m,onNotify:d},null,8,["initial-expression","is-visible"])):e.createCommentVNode("",!0)],64)}}})},Symbol.toStringTag,{value:"Module"}));B.ExpressionsEditorState=J,B.HTTP_REDIRECT_STATUS_CODES=ue,B.INITIAL_ROUTE_RULES_FIELDS=De,B.INITIAL_SHARED_ROUTE_RULES_FIELDS=oe,B.INITIAL_TRADITIONAL_ROUTE_RULES_VALUES=D,B.Methods=Ne,B.PATH_HANDLING_OPTIONS=_e,B.PROTOCOLS_TO_ROUTE_RULES=te,B.RouteConfigCard=xe,B.RouteFlavor=R,B.RouteForm=Et,B.RouteFormRulesComposer=Ie,B.RouteList=wt,B.RoutingRulesEntities=l,B.stateHasExpressionsFlavor=fe,B.stateHasTraditionalFlavor=ae,Object.defineProperty(B,Symbol.toStringTag,{value:"Module"})});
|
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-c96811e5] .k-button.navigation-button{font-size:14px;font-weight:400}.config-card-details-row[data-v-a19fafa9]{align-items:center;border-bottom:var(--eaabfd90);box-sizing:border-box;display:var(--ea5e332a);padding:16px 16px 16px 0;width:100%}.config-card-details-row .config-card-details-label[data-v-a19fafa9]{box-sizing:border-box;padding-right:16px;width:var(--f719ead6)}.config-card-details-row .config-card-details-label label[data-v-a19fafa9]{color:#3a3f51;display:inline-flex;max-width:100%}.config-card-details-row .config-card-details-label label .label-content[data-v-a19fafa9]{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-a19fafa9]{min-width:0}.config-card-details-row .config-card-details-value[data-v-a19fafa9]{box-sizing:border-box;width:var(--f7155f20)}.config-card-details-row .config-card-details-value .truncated[data-v-a19fafa9]{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-a19fafa9]{overflow-wrap:anywhere}.config-card-details-row .config-card-details-value .copy-uuid-array[data-v-a19fafa9] .k-copy:not(:last-of-type){margin-bottom:8px}.config-card-details-row .config-card-details-value .method-badge-array[data-v-a19fafa9]{display:flex;flex-wrap:wrap;row-gap:10px}.config-card-details-row .config-badge[data-v-a19fafa9]{margin-right:4px}.config-card-details-row[data-v-a19fafa9] .k-label{margin-bottom:0}.config-card-details-row[data-v-a19fafa9] .k-label .kong-icon-infoFilled{display:flex}.config-card-details-row[data-v-a19fafa9] .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-be491a0e]{align-items:center;display:flex}.kong-ui-entity-base-config-card .config-card-actions .config-format-select-label[data-v-be491a0e]{margin-bottom:0;margin-right:8px}.kong-ui-entity-base-config-card .config-card-prop-section-title[data-v-be491a0e]{color:#000933;font-size:16px;font-weight:600;margin-bottom:16px;margin-top:48px}.kong-ui-entity-base-config-card[data-v-be491a0e] .config-card-details-row:last-of-type{border-bottom:none}.kong-ui-entity-base-config-card .book-icon[data-v-be491a0e]{margin-left:8px;padding:0}.kong-ui-entity-base-form[data-v-e8247cfa]{box-sizing:border-box;max-width:1536px;width:100%}.kong-ui-entity-base-form[data-v-e8247cfa] .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-e8247cfa] .k-card.content-card{padding:0 16px!important}.kong-ui-entity-base-form[data-v-e8247cfa] .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-e8247cfa] .tab-item.active>div.tab-link.has-panels{color:#000933!important;font-weight:600!important}.form-actions[data-v-e8247cfa]{align-items:center;display:flex;justify-content:flex-end;margin-top:24px}.form-actions[data-v-e8247cfa] .k-button:last-of-type,.form-actions[data-v-e8247cfa] .k-button:nth-last-of-type(2){margin-left:16px}.content-wrapper[data-v-b252463e] .k-tooltip{word-break:break-all}.kong-ui-entity-base-table .toolbar-container[data-v-d58db70c]{align-items:center;display:flex;width:100%}.kong-ui-entity-base-table .toolbar-button-container[data-v-d58db70c]{margin-left:auto}.kong-ui-entity-base-table .hidden[data-v-d58db70c]{display:none}.kong-ui-entity-base-table[data-v-d58db70c] .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-10fa27a5]{width:100%}.kong-ui-entity-filter-clear[data-v-10fa27a5]{cursor:pointer}.kong-ui-entity-filter[data-v-10fa27a5]{display:flex;position:relative}.kong-ui-entity-filter[data-v-10fa27a5] .menu-content{flex-direction:column}.kong-ui-entity-filter[data-v-10fa27a5] .k-menu-item-divider hr{margin:12px 0}.kong-ui-entity-filter-backdrop[data-v-10fa27a5]{bottom:0;left:0;position:fixed;right:0;top:0;z-index:1050}.kong-ui-entity-filter-menu[data-v-10fa27a5]{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-10fa27a5]{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-10fa27a5]{align-items:center;cursor:pointer;display:flex;line-height:24px}.menu-item-title.expanded[data-v-10fa27a5]{color:#232633}.menu-item-expand-icon[data-v-10fa27a5]{margin-left:auto}.menu-item-expand-icon.expanded[data-v-10fa27a5]{transform:rotate(180deg)}.menu-item-indicator[data-v-10fa27a5]{background-color:#0044f4;border-radius:50%;height:4px;margin-left:4px;width:4px}.menu-item-body[data-v-10fa27a5]{align-items:center;display:flex;justify-content:space-between;margin-top:16px}.menu-item-body[data-v-10fa27a5] .input{padding-bottom:4px!important;padding-top:4px!important}.menu-item-body[data-v-10fa27a5] .k-input{width:100%}.menu-item-body[data-v-10fa27a5] .k-select-input .input{font-size:12px}.menu-item-body[data-v-10fa27a5] .k-select-input .input::placeholder{color:#00000073!important;font-size:12px}.menu-item-label[data-v-10fa27a5]{margin-bottom:0;margin-right:12px}.menu-item-buttons[data-v-10fa27a5]{display:flex;justify-content:space-between;margin:10px 0 6px}.filter-clear-button-container[data-v-10fa27a5]{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-48ae9c8c]{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-48ae9c8c]{padding:64px 96px}}.kong-ui-public-entity-empty-state .empty-state-image[data-v-48ae9c8c]{margin-bottom:8px}.kong-ui-public-entity-empty-state .entity-empty-state-content[data-v-48ae9c8c]{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-48ae9c8c]{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-48ae9c8c]{font-size:18px}.kong-ui-public-entity-empty-state .entity-empty-state-description[data-v-48ae9c8c],.kong-ui-public-entity-empty-state .entity-empty-state-pricing[data-v-48ae9c8c]{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-48ae9c8c],.kong-ui-public-entity-empty-state .entity-empty-state-pricing p[data-v-48ae9c8c]{margin:0}.kong-ui-public-entity-empty-state .entity-empty-state-pricing[data-v-48ae9c8c]{margin-top:16px}.kong-ui-public-entity-empty-state .entity-empty-state-message[data-v-48ae9c8c]{color:#52596e}.kong-ui-public-entity-empty-state .entity-empty-state-action[data-v-48ae9c8c]{align-items:center;display:flex;gap:12px}.kong-ui-public-entity-empty-state .entity-empty-state-card-container[data-v-48ae9c8c]{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-48ae9c8c]{width:640px}}.kong-ui-public-entity-empty-state .entity-empty-state-card-container .entity-empty-state-card[data-v-48ae9c8c]{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-48ae9c8c]{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-48ae9c8c] .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-48ae9c8c] .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-48ae9c8c] .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-48ae9c8c]{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-48ae9c8c]{width:640px}}.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-a5557199]{display:flex;justify-content:center}.route-form-routing-rules-title-container .protocol-title[data-v-a5557199]{font-size:16px}.route-form-routing-rules-title-container .protocol-title[data-v-a5557199]:not(:first-child):before{content:"/";margin-right:8px;padding-left:8px}.route-form-routing-rules-title-container .routing-rules-title[data-v-a5557199]{font-size:16px;margin-left:8px}.route-form-routing-rules-selector-container[data-v-a5557199]{margin-top:24px}.route-form-routing-rules-selector-container hr[data-v-a5557199]{border:0;border-top:1px solid rgba(0,0,0,.1);margin-bottom:16px}.route-form-routing-rules-selector-options[data-v-a5557199]{align-items:center;background-color:#eefaff;border:1px solid #5f9aff;border-radius:30px;display:flex;padding:0 6px;width:fit-content}.route-form-routing-rules-selector-options ul[data-v-a5557199]{display:flex;margin:0;padding:0}.route-form-routing-rules-selector-options ul li[data-v-a5557199]{display:inline-flex;list-style:none}.route-form-routing-rules-selector-options .option[data-v-a5557199]{border:1px solid transparent;border-radius:19px;box-shadow:none;color:#0030cc;cursor:pointer;font-size:16px;font-weight:600;margin:0 4px 0 0;padding:4px 10px;transition:box-shadow .2s ease}.route-form-routing-rules-selector-options .option.is-selected[data-v-a5557199]{color:#5f9aff;pointer-events:none;text-decoration:line-through}.route-form-routing-rules-selector-options .option[data-v-a5557199]:hover{box-shadow:0 0 12px -2px #0000004d;transition:box-shadow .2s ease}.route-form-routing-rules-selector-options .option:hover.is-selected[data-v-a5557199]{box-shadow:none}.route-form-advanced-fields-collapse[data-v-a5557199]{margin-top:24px}.route-form-advanced-fields-container[data-v-a5557199]{display:flex;flex-direction:column;margin-top:24px}.route-form-fields-container[data-v-a5557199]>*:not(:first-child){margin-top:24px}.route-form-config-tabs-tooltip[data-v-aeccecbe]{display:inline-flex;margin:auto 0 auto 4px;vertical-align:middle}.routing-rules-entities-controls-container[data-v-e98e1efc]{display:flex;gap:4px}.routing-rule-container[data-v-94f91fcd]:not(:first-of-type){margin-top:24px}.routing-rule-container hr[data-v-94f91fcd]{border:0;border-top:1px solid rgba(0,0,0,.1);margin-bottom:16px}.routing-rule-input[data-v-94f91fcd]{align-items:center;column-gap:40px;display:flex}.routing-rule-input .k-input[data-v-94f91fcd]{width:100%}.routing-rule-input[data-v-94f91fcd]:not(:first-of-type){margin-top:16px}.routing-rule-input .methods-input-container[data-v-94f91fcd]{display:flex;flex-wrap:wrap;gap:12px}.routing-rule-input .methods-input[data-v-94f91fcd]{display:flex;flex-wrap:wrap;gap:4px}.routing-rule-input .methods-input[data-v-94f91fcd] label.k-switch{margin:0!important}.routing-rule-container[data-v-df4450cd]:not(:first-of-type){margin-top:24px}.routing-rule-container hr[data-v-df4450cd]{border:0;border-top:1px solid rgba(0,0,0,.1);margin-bottom:16px}.routing-rule-input[data-v-df4450cd]{align-items:center;column-gap:40px;display:flex}.routing-rule-input .k-input[data-v-df4450cd]{width:100%}.routing-rule-input[data-v-df4450cd]:not(:first-of-type){margin-top:16px}.routing-rule-input .methods-input-container[data-v-df4450cd]{display:flex;flex-wrap:wrap;gap:12px}.routing-rule-input .methods-input[data-v-df4450cd]{display:flex;flex-wrap:wrap;gap:4px}.routing-rule-input .methods-input[data-v-df4450cd] label.k-switch{margin:0!important}.routing-rule-container[data-v-f229e100]:not(:first-of-type){margin-top:24px}.routing-rule-container hr[data-v-f229e100]{border:0;border-top:1px solid rgba(0,0,0,.1);margin-bottom:16px}.routing-rule-input[data-v-f229e100]{align-items:center;column-gap:40px;display:flex}.routing-rule-input .k-input[data-v-f229e100]{width:100%}.routing-rule-input[data-v-f229e100]:not(:first-of-type){margin-top:16px}.routing-rule-input .methods-input-container[data-v-f229e100]{display:flex;flex-wrap:wrap;gap:12px}.routing-rule-input .methods-input[data-v-f229e100]{display:flex;flex-wrap:wrap;gap:4px}.routing-rule-input .methods-input[data-v-f229e100] label.k-switch{margin:0!important}.routing-rule-container[data-v-41700dbb]:not(:first-of-type){margin-top:24px}.routing-rule-container hr[data-v-41700dbb]{border:0;border-top:1px solid rgba(0,0,0,.1);margin-bottom:16px}.routing-rule-input[data-v-41700dbb]{align-items:center;column-gap:40px;display:flex}.routing-rule-input .k-input[data-v-41700dbb]{width:100%}.routing-rule-input[data-v-41700dbb]:not(:first-of-type){margin-top:16px}.routing-rule-input .methods-input-container[data-v-41700dbb]{display:flex;flex-wrap:wrap;gap:12px}.routing-rule-input .methods-input[data-v-41700dbb]{display:flex;flex-wrap:wrap;gap:4px}.routing-rule-input .methods-input[data-v-41700dbb] label.k-switch{margin:0!important}.routing-rule-container[data-v-99993752]:not(:first-of-type){margin-top:24px}.routing-rule-container hr[data-v-99993752]{border:0;border-top:1px solid rgba(0,0,0,.1);margin-bottom:16px}.routing-rule-input[data-v-99993752]{align-items:center;column-gap:40px;display:flex}.routing-rule-input .k-input[data-v-99993752]{width:100%}.routing-rule-input[data-v-99993752]:not(:first-of-type){margin-top:16px}.routing-rule-input .methods-input-container[data-v-99993752]{display:flex;flex-wrap:wrap;gap:12px}.routing-rule-input .methods-input[data-v-99993752]{display:flex;flex-wrap:wrap;gap:4px}.routing-rule-input .methods-input[data-v-99993752] label.k-switch{margin:0!important}.routing-rule-container[data-v-baae40df]:not(:first-of-type){margin-top:24px}.routing-rule-container hr[data-v-baae40df]{border:0;border-top:1px solid rgba(0,0,0,.1);margin-bottom:16px}.routing-rule-input[data-v-baae40df]{align-items:center;column-gap:40px;display:flex}.routing-rule-input .k-input[data-v-baae40df]{width:100%}.routing-rule-input[data-v-baae40df]:not(:first-of-type){margin-top:16px}.routing-rule-input .methods-input-container[data-v-baae40df]{display:flex;flex-wrap:wrap;gap:12px}.routing-rule-input .methods-input[data-v-baae40df]{display:flex;flex-wrap:wrap;gap:4px}.routing-rule-input .methods-input[data-v-baae40df] label.k-switch{margin:0!important}.routing-rule-container[data-v-9cd541a4]:not(:first-of-type){margin-top:24px}.routing-rule-container hr[data-v-9cd541a4]{border:0;border-top:1px solid rgba(0,0,0,.1);margin-bottom:16px}.routing-rule-input[data-v-9cd541a4]{align-items:center;column-gap:40px;display:flex}.routing-rule-input .k-input[data-v-9cd541a4]{width:100%}.routing-rule-input[data-v-9cd541a4]:not(:first-of-type){margin-top:16px}.routing-rule-input .methods-input-container[data-v-9cd541a4]{display:flex;flex-wrap:wrap;gap:12px}.routing-rule-input .methods-input[data-v-9cd541a4]{display:flex;flex-wrap:wrap;gap:4px}.routing-rule-input .methods-input[data-v-9cd541a4] label.k-switch{margin:0!important}.route-form-routing-rules-title-container[data-v-414b2eed]{display:flex;justify-content:center}.route-form-routing-rules-title-container .protocol-title[data-v-414b2eed]{font-size:16px}.route-form-routing-rules-title-container .protocol-title[data-v-414b2eed]:not(:first-child):before{content:"/";margin-right:8px;padding-left:8px}.route-form-routing-rules-title-container .routing-rules-title[data-v-414b2eed]{font-size:16px;margin-left:8px}.route-form-routing-rules-selector-container[data-v-414b2eed]{margin-top:24px}.route-form-routing-rules-selector-container hr[data-v-414b2eed]{border:0;border-top:1px solid rgba(0,0,0,.1);margin-bottom:16px}.route-form-routing-rules-selector-options[data-v-414b2eed]{align-items:center;background-color:#eefaff;border:1px solid #5f9aff;border-radius:30px;display:flex;padding:0 6px;width:fit-content}.route-form-routing-rules-selector-options ul[data-v-414b2eed]{display:flex;margin:0;padding:0}.route-form-routing-rules-selector-options ul li[data-v-414b2eed]{display:inline-flex;list-style:none}.route-form-routing-rules-selector-options .option[data-v-414b2eed]{border:1px solid transparent;border-radius:19px;box-shadow:none;color:#0030cc;cursor:pointer;font-size:16px;font-weight:600;margin:0 4px 0 0;padding:4px 10px;transition:box-shadow .2s ease}.route-form-routing-rules-selector-options .option.is-selected[data-v-414b2eed]{color:#5f9aff;pointer-events:none;text-decoration:line-through}.route-form-routing-rules-selector-options .option[data-v-414b2eed]:hover{box-shadow:0 0 12px -2px #0000004d;transition:box-shadow .2s ease}.route-form-routing-rules-selector-options .option:hover.is-selected[data-v-414b2eed]{box-shadow:none}.route-form-advanced-fields-collapse[data-v-414b2eed]{margin-top:24px}.route-form-advanced-fields-container[data-v-414b2eed]{display:flex;flex-direction:column;margin-top:24px}.route-form-fields-container[data-v-414b2eed]>*:not(:first-child){margin-top:24px}.route-form-config-tabs-tooltip[data-v-b6ef2c61]{display:inline-flex;margin:auto 0 auto 4px;vertical-align:middle}.route-form-config-type-immutable-alert[data-v-b6ef2c61]{margin-bottom:16px}.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-0a9666b9]{width:100%}.kong-ui-entities-route-form .route-form-service-dropdown-item[data-v-0a9666b9]{display:flex;flex-direction:column}.kong-ui-entities-route-form .route-form-service-dropdown-item .select-item-label[data-v-0a9666b9]{font-weight:600}.kong-ui-entities-route-form .route-form-service-dropdown-item .select-item-description[data-v-0a9666b9]{color:#6c7489;font-size:12px}.kong-ui-entities-route-form .route-form-routing-rules-title-container[data-v-0a9666b9]{display:flex;justify-content:center}.kong-ui-entities-route-form .route-form-routing-rules-title-container .protocol-title[data-v-0a9666b9]{font-size:16px}.kong-ui-entities-route-form .route-form-routing-rules-title-container .protocol-title[data-v-0a9666b9]: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-0a9666b9]{font-size:16px;margin-left:8px}.kong-ui-entities-route-form .route-form-routing-rules-selector-container[data-v-0a9666b9]{margin-top:24px}.kong-ui-entities-route-form .route-form-routing-rules-selector-container hr[data-v-0a9666b9]{border:0;border-top:1px solid rgba(0,0,0,.1);margin-bottom:16px}.kong-ui-entities-route-form .route-form-routing-rules-selector-options[data-v-0a9666b9]{align-items:center;background-color:#eefaff;border:1px solid #5f9aff;border-radius:30px;display:flex;padding:0 6px;width:fit-content}.kong-ui-entities-route-form .route-form-routing-rules-selector-options ul[data-v-0a9666b9]{display:flex;margin:0;padding:0}.kong-ui-entities-route-form .route-form-routing-rules-selector-options ul li[data-v-0a9666b9]{display:inline-flex;list-style:none}.kong-ui-entities-route-form .route-form-routing-rules-selector-options .option[data-v-0a9666b9]{border:1px solid transparent;border-radius:19px;box-shadow:none;color:#0030cc;cursor:pointer;font-size:16px;font-weight:600;margin:0 4px 0 0;padding:4px 10px;transition:box-shadow .2s ease}.kong-ui-entities-route-form .route-form-routing-rules-selector-options .option.is-selected[data-v-0a9666b9]{color:#5f9aff;pointer-events:none;text-decoration:line-through}.kong-ui-entities-route-form .route-form-routing-rules-selector-options .option[data-v-0a9666b9]:hover{box-shadow:0 0 12px -2px #0000004d;transition:box-shadow .2s ease}.kong-ui-entities-route-form .route-form-routing-rules-selector-options .option:hover.is-selected[data-v-0a9666b9]{box-shadow:none}.kong-ui-entities-route-form .route-form-advanced-fields-collapse[data-v-0a9666b9]{margin-top:24px}.kong-ui-entities-route-form .route-form-advanced-fields-container[data-v-0a9666b9]{display:flex;flex-direction:column;margin-top:24px}.kong-ui-entities-route-form .route-form-fields-container[data-v-0a9666b9]>*:not(:first-child){margin-top:24px}.kong-ui-entities-route-form .k-checkbox[data-v-0a9666b9]{display:flex}.kong-ui-entities-route-form[data-v-0a9666b9] .form-section-content{min-width:0}.kong-ui-entities-route-form .expression-editor[data-v-0a9666b9]{min-height:200px}.button-row[data-v-07f327d6]{align-items:center;display:flex;gap:12px}.kong-ui-entities-routes-list[data-v-07f327d6]{width:100%}.kong-ui-entities-routes-list .kong-ui-entity-filter-input[data-v-07f327d6]{margin-right:12px}.kong-ui-entities-routes-list .route-list-cell-expression[data-v-07f327d6]{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-f0f6bdc2],h2[data-v-f0f6bdc2],h3[data-v-f0f6bdc2],h4[data-v-f0f6bdc2],h5[data-v-f0f6bdc2],h6[data-v-f0f6bdc2]{color:#000933;font-size:24px;font-weight:700}.page-header h1 .title[data-v-f0f6bdc2],h2 .title[data-v-f0f6bdc2],h3 .title[data-v-f0f6bdc2],h4 .title[data-v-f0f6bdc2],h5 .title[data-v-f0f6bdc2],h6 .title[data-v-f0f6bdc2]{word-break:break-all}.row[data-v-f0f6bdc2]{display:flex;flex-wrap:wrap;justify-content:space-between;margin-left:-16px;margin-right:-16px;padding:0 16px}.col[data-v-f0f6bdc2]{line-height:36px}h1[data-v-f0f6bdc2],h2[data-v-f0f6bdc2],h3[data-v-f0f6bdc2],h4[data-v-f0f6bdc2],h5[data-v-f0f6bdc2],h6[data-v-f0f6bdc2],nav[data-v-f0f6bdc2]{margin-bottom:20px;margin-top:0}.title-no-margin[data-v-f0f6bdc2]{margin:0!important}.operations[data-v-f0f6bdc2]{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-08588d7e]{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-08588d7e]:before{border:1px solid #e0e4ea;border-radius:6px;content:" ";height:100%;left:0;position:absolute;top:0;width:100%}.request-card.active[data-v-08588d7e]:before{border:2px solid #5f9aff}.request-card .close-btn[data-v-08588d7e]{cursor:pointer;display:none!important;position:absolute;right:12px;top:12px}.request-card:hover .close-btn[data-v-08588d7e]{display:block!important}.request-card .badges[data-v-08588d7e]{align-items:center;display:flex;flex-direction:row;gap:8px;margin-bottom:6px}.request-card .url[data-v-08588d7e]{color:#000933;font-family:JetBrains Mono,Consolas,monospace;font-size:14px;word-break:break-all}.request-card .headers .header[data-v-08588d7e]{font-family:JetBrains Mono,Consolas,monospace;list-style:none}.request-card .headers .header[data-v-08588d7e],.request-card .headers .header ul[data-v-08588d7e]{margin:0;padding:0}.request-card .headers .header li[data-v-08588d7e]{list-style:none;margin-left:16px;padding-left:6px;position:relative;word-break:break-all}.request-card .headers .header li[data-v-08588d7e]:before{background-color:#000;bottom:-12px;content:" ";left:-10px;position:absolute;top:5px;width:1px}.request-card .headers .header li[data-v-08588d7e]:not(:first-child):last-child:before{display:none}.request-card .headers .header li[data-v-08588d7e]: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-08588d7e]:after{background-color:#000;content:" ";height:1px;left:-10px;position:absolute;top:12px;width:10px}.request-card .headers .header-key[data-v-08588d7e]{font-size:14px;font-weight:700;margin-left:8px;word-break:break-all}.request-card .headers .header-value[data-v-08588d7e]{font-size:14px;font-weight:400;margin-left:16px;word-break:break-all}.request-card .sni .sni-content[data-v-08588d7e]{font-family:JetBrains Mono,Consolas,monospace;font-size:14px;word-break:break-all}.request-card .section-title[data-v-08588d7e]{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}}.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-a5557199]{display:flex;justify-content:center}.route-form-routing-rules-title-container .protocol-title[data-v-a5557199]{font-size:16px}.route-form-routing-rules-title-container .protocol-title[data-v-a5557199]:not(:first-child):before{content:"/";margin-right:8px;padding-left:8px}.route-form-routing-rules-title-container .routing-rules-title[data-v-a5557199]{font-size:16px;margin-left:8px}.route-form-routing-rules-selector-container[data-v-a5557199]{margin-top:24px}.route-form-routing-rules-selector-container hr[data-v-a5557199]{border:0;border-top:1px solid rgba(0,0,0,.1);margin-bottom:16px}.route-form-routing-rules-selector-options[data-v-a5557199]{align-items:center;background-color:#eefaff;border:1px solid #5f9aff;border-radius:30px;display:flex;padding:0 6px;width:fit-content}.route-form-routing-rules-selector-options ul[data-v-a5557199]{display:flex;margin:0;padding:0}.route-form-routing-rules-selector-options ul li[data-v-a5557199]{display:inline-flex;list-style:none}.route-form-routing-rules-selector-options .option[data-v-a5557199]{border:1px solid transparent;border-radius:19px;box-shadow:none;color:#0030cc;cursor:pointer;font-size:16px;font-weight:600;margin:0 4px 0 0;padding:4px 10px;transition:box-shadow .2s ease}.route-form-routing-rules-selector-options .option.is-selected[data-v-a5557199]{color:#5f9aff;pointer-events:none;text-decoration:line-through}.route-form-routing-rules-selector-options .option[data-v-a5557199]:hover{box-shadow:0 0 12px -2px #0000004d;transition:box-shadow .2s ease}.route-form-routing-rules-selector-options .option:hover.is-selected[data-v-a5557199]{box-shadow:none}.route-form-advanced-fields-collapse[data-v-a5557199]{margin-top:24px}.route-form-advanced-fields-container[data-v-a5557199]{display:flex;flex-direction:column;margin-top:24px}.route-form-fields-container[data-v-a5557199]>*:not(:first-child){margin-top:24px}.route-form-config-tabs-tooltip[data-v-aeccecbe]{display:inline-flex;margin:auto 0 auto 4px;vertical-align:middle}.routing-rules-entities-controls-container[data-v-e98e1efc]{display:flex;gap:4px}.routing-rule-container[data-v-94f91fcd]:not(:first-of-type){margin-top:24px}.routing-rule-container hr[data-v-94f91fcd]{border:0;border-top:1px solid rgba(0,0,0,.1);margin-bottom:16px}.routing-rule-input[data-v-94f91fcd]{align-items:center;column-gap:40px;display:flex}.routing-rule-input .k-input[data-v-94f91fcd]{width:100%}.routing-rule-input[data-v-94f91fcd]:not(:first-of-type){margin-top:16px}.routing-rule-input .methods-input-container[data-v-94f91fcd]{display:flex;flex-wrap:wrap;gap:12px}.routing-rule-input .methods-input[data-v-94f91fcd]{display:flex;flex-wrap:wrap;gap:4px}.routing-rule-input .methods-input[data-v-94f91fcd] label.k-switch{margin:0!important}.routing-rule-container[data-v-df4450cd]:not(:first-of-type){margin-top:24px}.routing-rule-container hr[data-v-df4450cd]{border:0;border-top:1px solid rgba(0,0,0,.1);margin-bottom:16px}.routing-rule-input[data-v-df4450cd]{align-items:center;column-gap:40px;display:flex}.routing-rule-input .k-input[data-v-df4450cd]{width:100%}.routing-rule-input[data-v-df4450cd]:not(:first-of-type){margin-top:16px}.routing-rule-input .methods-input-container[data-v-df4450cd]{display:flex;flex-wrap:wrap;gap:12px}.routing-rule-input .methods-input[data-v-df4450cd]{display:flex;flex-wrap:wrap;gap:4px}.routing-rule-input .methods-input[data-v-df4450cd] label.k-switch{margin:0!important}.routing-rule-container[data-v-f229e100]:not(:first-of-type){margin-top:24px}.routing-rule-container hr[data-v-f229e100]{border:0;border-top:1px solid rgba(0,0,0,.1);margin-bottom:16px}.routing-rule-input[data-v-f229e100]{align-items:center;column-gap:40px;display:flex}.routing-rule-input .k-input[data-v-f229e100]{width:100%}.routing-rule-input[data-v-f229e100]:not(:first-of-type){margin-top:16px}.routing-rule-input .methods-input-container[data-v-f229e100]{display:flex;flex-wrap:wrap;gap:12px}.routing-rule-input .methods-input[data-v-f229e100]{display:flex;flex-wrap:wrap;gap:4px}.routing-rule-input .methods-input[data-v-f229e100] label.k-switch{margin:0!important}.routing-rule-container[data-v-41700dbb]:not(:first-of-type){margin-top:24px}.routing-rule-container hr[data-v-41700dbb]{border:0;border-top:1px solid rgba(0,0,0,.1);margin-bottom:16px}.routing-rule-input[data-v-41700dbb]{align-items:center;column-gap:40px;display:flex}.routing-rule-input .k-input[data-v-41700dbb]{width:100%}.routing-rule-input[data-v-41700dbb]:not(:first-of-type){margin-top:16px}.routing-rule-input .methods-input-container[data-v-41700dbb]{display:flex;flex-wrap:wrap;gap:12px}.routing-rule-input .methods-input[data-v-41700dbb]{display:flex;flex-wrap:wrap;gap:4px}.routing-rule-input .methods-input[data-v-41700dbb] label.k-switch{margin:0!important}.routing-rule-container[data-v-99993752]:not(:first-of-type){margin-top:24px}.routing-rule-container hr[data-v-99993752]{border:0;border-top:1px solid rgba(0,0,0,.1);margin-bottom:16px}.routing-rule-input[data-v-99993752]{align-items:center;column-gap:40px;display:flex}.routing-rule-input .k-input[data-v-99993752]{width:100%}.routing-rule-input[data-v-99993752]:not(:first-of-type){margin-top:16px}.routing-rule-input .methods-input-container[data-v-99993752]{display:flex;flex-wrap:wrap;gap:12px}.routing-rule-input .methods-input[data-v-99993752]{display:flex;flex-wrap:wrap;gap:4px}.routing-rule-input .methods-input[data-v-99993752] label.k-switch{margin:0!important}.routing-rule-container[data-v-baae40df]:not(:first-of-type){margin-top:24px}.routing-rule-container hr[data-v-baae40df]{border:0;border-top:1px solid rgba(0,0,0,.1);margin-bottom:16px}.routing-rule-input[data-v-baae40df]{align-items:center;column-gap:40px;display:flex}.routing-rule-input .k-input[data-v-baae40df]{width:100%}.routing-rule-input[data-v-baae40df]:not(:first-of-type){margin-top:16px}.routing-rule-input .methods-input-container[data-v-baae40df]{display:flex;flex-wrap:wrap;gap:12px}.routing-rule-input .methods-input[data-v-baae40df]{display:flex;flex-wrap:wrap;gap:4px}.routing-rule-input .methods-input[data-v-baae40df] label.k-switch{margin:0!important}.routing-rule-container[data-v-9cd541a4]:not(:first-of-type){margin-top:24px}.routing-rule-container hr[data-v-9cd541a4]{border:0;border-top:1px solid rgba(0,0,0,.1);margin-bottom:16px}.routing-rule-input[data-v-9cd541a4]{align-items:center;column-gap:40px;display:flex}.routing-rule-input .k-input[data-v-9cd541a4]{width:100%}.routing-rule-input[data-v-9cd541a4]:not(:first-of-type){margin-top:16px}.routing-rule-input .methods-input-container[data-v-9cd541a4]{display:flex;flex-wrap:wrap;gap:12px}.routing-rule-input .methods-input[data-v-9cd541a4]{display:flex;flex-wrap:wrap;gap:4px}.routing-rule-input .methods-input[data-v-9cd541a4] label.k-switch{margin:0!important}.route-form-routing-rules-title-container[data-v-414b2eed]{display:flex;justify-content:center}.route-form-routing-rules-title-container .protocol-title[data-v-414b2eed]{font-size:16px}.route-form-routing-rules-title-container .protocol-title[data-v-414b2eed]:not(:first-child):before{content:"/";margin-right:8px;padding-left:8px}.route-form-routing-rules-title-container .routing-rules-title[data-v-414b2eed]{font-size:16px;margin-left:8px}.route-form-routing-rules-selector-container[data-v-414b2eed]{margin-top:24px}.route-form-routing-rules-selector-container hr[data-v-414b2eed]{border:0;border-top:1px solid rgba(0,0,0,.1);margin-bottom:16px}.route-form-routing-rules-selector-options[data-v-414b2eed]{align-items:center;background-color:#eefaff;border:1px solid #5f9aff;border-radius:30px;display:flex;padding:0 6px;width:fit-content}.route-form-routing-rules-selector-options ul[data-v-414b2eed]{display:flex;margin:0;padding:0}.route-form-routing-rules-selector-options ul li[data-v-414b2eed]{display:inline-flex;list-style:none}.route-form-routing-rules-selector-options .option[data-v-414b2eed]{border:1px solid transparent;border-radius:19px;box-shadow:none;color:#0030cc;cursor:pointer;font-size:16px;font-weight:600;margin:0 4px 0 0;padding:4px 10px;transition:box-shadow .2s ease}.route-form-routing-rules-selector-options .option.is-selected[data-v-414b2eed]{color:#5f9aff;pointer-events:none;text-decoration:line-through}.route-form-routing-rules-selector-options .option[data-v-414b2eed]:hover{box-shadow:0 0 12px -2px #0000004d;transition:box-shadow .2s ease}.route-form-routing-rules-selector-options .option:hover.is-selected[data-v-414b2eed]{box-shadow:none}.route-form-advanced-fields-collapse[data-v-414b2eed]{margin-top:24px}.route-form-advanced-fields-container[data-v-414b2eed]{display:flex;flex-direction:column;margin-top:24px}.route-form-fields-container[data-v-414b2eed]>*:not(:first-child){margin-top:24px}.route-form-config-tabs-tooltip[data-v-b6ef2c61]{display:inline-flex;margin:auto 0 auto 4px;vertical-align:middle}.route-form-config-type-immutable-alert[data-v-b6ef2c61]{margin-bottom:16px}.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-2a53a125]{width:100%}.kong-ui-entities-route-form .route-form-service-dropdown-item[data-v-2a53a125]{display:flex;flex-direction:column}.kong-ui-entities-route-form .route-form-service-dropdown-item .select-item-label[data-v-2a53a125]{font-weight:600}.kong-ui-entities-route-form .route-form-service-dropdown-item .select-item-description[data-v-2a53a125]{color:#6c7489;font-size:12px}.kong-ui-entities-route-form .route-form-routing-rules-title-container[data-v-2a53a125]{display:flex;justify-content:center}.kong-ui-entities-route-form .route-form-routing-rules-title-container .protocol-title[data-v-2a53a125]{font-size:16px}.kong-ui-entities-route-form .route-form-routing-rules-title-container .protocol-title[data-v-2a53a125]: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-2a53a125]{font-size:16px;margin-left:8px}.kong-ui-entities-route-form .route-form-routing-rules-selector-container[data-v-2a53a125]{margin-top:24px}.kong-ui-entities-route-form .route-form-routing-rules-selector-container hr[data-v-2a53a125]{border:0;border-top:1px solid rgba(0,0,0,.1);margin-bottom:16px}.kong-ui-entities-route-form .route-form-routing-rules-selector-options[data-v-2a53a125]{align-items:center;background-color:#eefaff;border:1px solid #5f9aff;border-radius:30px;display:flex;padding:0 6px;width:fit-content}.kong-ui-entities-route-form .route-form-routing-rules-selector-options ul[data-v-2a53a125]{display:flex;margin:0;padding:0}.kong-ui-entities-route-form .route-form-routing-rules-selector-options ul li[data-v-2a53a125]{display:inline-flex;list-style:none}.kong-ui-entities-route-form .route-form-routing-rules-selector-options .option[data-v-2a53a125]{border:1px solid transparent;border-radius:19px;box-shadow:none;color:#0030cc;cursor:pointer;font-size:16px;font-weight:600;margin:0 4px 0 0;padding:4px 10px;transition:box-shadow .2s ease}.kong-ui-entities-route-form .route-form-routing-rules-selector-options .option.is-selected[data-v-2a53a125]{color:#5f9aff;pointer-events:none;text-decoration:line-through}.kong-ui-entities-route-form .route-form-routing-rules-selector-options .option[data-v-2a53a125]:hover{box-shadow:0 0 12px -2px #0000004d;transition:box-shadow .2s ease}.kong-ui-entities-route-form .route-form-routing-rules-selector-options .option:hover.is-selected[data-v-2a53a125]{box-shadow:none}.kong-ui-entities-route-form .route-form-advanced-fields-collapse[data-v-2a53a125]{margin-top:24px}.kong-ui-entities-route-form .route-form-advanced-fields-container[data-v-2a53a125]{display:flex;flex-direction:column;margin-top:24px}.kong-ui-entities-route-form .route-form-fields-container[data-v-2a53a125]>*:not(:first-child){margin-top:24px}.kong-ui-entities-route-form .k-checkbox[data-v-2a53a125]{display:flex}.kong-ui-entities-route-form[data-v-2a53a125] .form-section-content{min-width:0}.kong-ui-entities-route-form .expression-editor[data-v-2a53a125]{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 +1 @@
|
|
|
1
|
-
{"version":3,"file":"RouteForm.vue.d.ts","sourceRoot":"","sources":["../../../src/components/RouteForm.vue"],"names":[],"mappings":"AAsvBA,OAAO,KAAK,EAAE,UAAU,EAAiB,MAAM,OAAO,CAAA;AAEtD,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,KAAK,CAAA;AAMnC,OAAO,KAAK,EACV,gBAAgB,EAKhB,0BAA0B,EAC1B,sBAAsB,EAGtB,YAAY,EAKb,MAAM,UAAU,CAAA;AACjB,OAAO,EACL,WAAW,EAIZ,MAAM,UAAU,CAAA;AAGjB,OAAO,gDAAgD,CAAA;AAojBvD,iBAAS,cAAc;;;;0BAjWG,IAAI;wCAqNiB,gBAAgB,KAAG,OAAO,CAAC,IAAI,CAAC;YA6X1C,GAAG;;;WAS1B,OAAO,IAA6B;EAEjD;AA2GD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe;IAcnB,oHAAoH;;cAElG,QAAQ,CAAC,sBAAsB,GAAG,0BAA0B,CAAC;;4BAEzD,sBAAsB,GAAG,0BAA0B,KAAG,OAAO;;IAQnF,0FAA0F;;;;;;IAM1F,sEAAsE;;;;;;IAMtE,yDAAyD;;;;;;IAMzD,4CAA4C;;;;;;IAM5C,gDAAgD;;;;;;IAMhD,gDAAgD;;cAE9B,QAAQ,CAAC,YAAY,CAAC;;;;;;IAMxC,sCAAsC;;cAEpB,QAAQ,CAAC;YACvB,CAAC,WAAW,CAAC,WAAW,CAAC,CAAC,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"RouteForm.vue.d.ts","sourceRoot":"","sources":["../../../src/components/RouteForm.vue"],"names":[],"mappings":"AAsvBA,OAAO,KAAK,EAAE,UAAU,EAAiB,MAAM,OAAO,CAAA;AAEtD,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,KAAK,CAAA;AAMnC,OAAO,KAAK,EACV,gBAAgB,EAKhB,0BAA0B,EAC1B,sBAAsB,EAGtB,YAAY,EAKb,MAAM,UAAU,CAAA;AACjB,OAAO,EACL,WAAW,EAIZ,MAAM,UAAU,CAAA;AAGjB,OAAO,gDAAgD,CAAA;AAojBvD,iBAAS,cAAc;;;;0BAjWG,IAAI;wCAqNiB,gBAAgB,KAAG,OAAO,CAAC,IAAI,CAAC;YA6X1C,GAAG;;;WAS1B,OAAO,IAA6B;EAEjD;AA2GD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe;IAcnB,oHAAoH;;cAElG,QAAQ,CAAC,sBAAsB,GAAG,0BAA0B,CAAC;;4BAEzD,sBAAsB,GAAG,0BAA0B,KAAG,OAAO;;IAQnF,0FAA0F;;;;;;IAM1F,sEAAsE;;;;;;IAMtE,yDAAyD;;;;;;IAMzD,4CAA4C;;;;;;IAM5C,gDAAgD;;;;;;IAMhD,gDAAgD;;cAE9B,QAAQ,CAAC,YAAY,CAAC;;;;;;IAMxC,sCAAsC;;cAEpB,QAAQ,CAAC;YACvB,CAAC,WAAW,CAAC,WAAW,CAAC,CAAC,EAAE,MAAM,CAAA;YAClC,CAAC,WAAW,CAAC,WAAW,CAAC,CAAC,EAAE,MAAM,CAAA;SACnC,GAAG,SAAS,CAAC;;;;IAIhB,kDAAkD;;;;;;;sCA7jBL,gBAAgB,KAAG,OAAO,CAAC,IAAI,CAAC;;;;;;iBA+f3C,MAAM;cAAQ,MAAM;;;;;IAGtD,oHAAoH;;cAElG,QAAQ,CAAC,sBAAsB,GAAG,0BAA0B,CAAC;;4BAEzD,sBAAsB,GAAG,0BAA0B,KAAG,OAAO;;IAQnF,0FAA0F;;;;;;IAM1F,sEAAsE;;;;;;IAMtE,yDAAyD;;;;;;IAMzD,4CAA4C;;;;;;IAM5C,gDAAgD;;;;;;IAMhD,gDAAgD;;cAE9B,QAAQ,CAAC,YAAY,CAAC;;;;;;IAMxC,sCAAsC;;cAEpB,QAAQ,CAAC;YACvB,CAAC,WAAW,CAAC,WAAW,CAAC,CAAC,EAAE,MAAM,CAAA;YAClC,CAAC,WAAW,CAAC,WAAW,CAAC,CAAC,EAAE,MAAM,CAAA;SACnC,GAAG,SAAS,CAAC;;;;IAIhB,kDAAkD;;;;;;;;;;iBA9DhB,MAAM;cAAQ,MAAM;;;;;;;;;;;;;sBAwDtB,MAAM;sBACN,MAAM;;4EAYtC,CAAC;wBACkB,uBAAuB,CAAC,OAAO,eAAe,EAAE,oBAAoB,CAAC,OAAO,CAAC,CAAC;AAAnG,wBAAoG;AAKpG,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IACxC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"route-config-card.d.ts","sourceRoot":"","sources":["../../../src/types/route-config-card.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,uBAAuB,EAAE,2BAA2B,EAAE,uBAAuB,EAAE,MAAM,iCAAiC,CAAA;AAEpI,kCAAkC;AAClC,MAAM,WAAW,wBAAyB,SAAQ,uBAAuB;CAAG;AAE5E,uCAAuC;AACvC,MAAM,WAAW,4BAA6B,SAAQ,2BAA2B;CAAG;AAEpF,MAAM,WAAW,wBAAwB;IAEvC,EAAE,EAAE,uBAAuB,
|
|
1
|
+
{"version":3,"file":"route-config-card.d.ts","sourceRoot":"","sources":["../../../src/types/route-config-card.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,uBAAuB,EAAE,2BAA2B,EAAE,uBAAuB,EAAE,MAAM,iCAAiC,CAAA;AAEpI,kCAAkC;AAClC,MAAM,WAAW,wBAAyB,SAAQ,uBAAuB;CAAG;AAE5E,uCAAuC;AACvC,MAAM,WAAW,4BAA6B,SAAQ,2BAA2B;CAAG;AAEpF,MAAM,WAAW,wBAAwB;IAEvC,EAAE,EAAE,uBAAuB,CAAA;IAC3B,IAAI,EAAE,uBAAuB,CAAA;IAC7B,SAAS,EAAE,uBAAuB,CAAA;IAClC,OAAO,EAAE,uBAAuB,CAAA;IAChC,KAAK,EAAE,uBAAuB,CAAA;IAC9B,OAAO,EAAE,uBAAuB,CAAA;IAChC,KAAK,EAAE,uBAAuB,CAAA;IAC9B,OAAO,EAAE,uBAAuB,CAAA;IAChC,UAAU,EAAE,uBAAuB,CAAA;IACnC,aAAa,EAAE,uBAAuB,CAAA;IACtC,IAAI,EAAE,uBAAuB,CAAA;IAC7B,UAAU,EAAE,uBAAuB,CAAA;IACnC,UAAU,EAAE,uBAAuB,CAAA;IAEnC,IAAI,EAAE,uBAAuB,CAAA;IAC7B,0BAA0B,EAAE,uBAAuB,CAAA;IACnD,iBAAiB,EAAE,uBAAuB,CAAA;IAC1C,kBAAkB,EAAE,uBAAuB,CAAA;IAC3C,cAAc,EAAE,uBAAuB,CAAA;IACvC,aAAa,EAAE,uBAAuB,CAAA;IACtC,YAAY,EAAE,uBAAuB,CAAA;IACrC,OAAO,EAAE,uBAAuB,CAAA;CACjC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"route-form.d.ts","sourceRoot":"","sources":["../../../src/types/route-form.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,yBAAyB,EAAE,qBAAqB,EAAE,MAAM,iCAAiC,CAAA;AACvH,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,YAAY,CAAA;AAClD,OAAO,KAAK,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,gBAAgB,CAAA;AACrD,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,cAAc,CAAA;AAE5D,oBAAY,WAAW;IACrB,WAAW,gBAAgB,CAAE,kCAAkC;IAC/D,WAAW,gBAAgB;CAC5B;AAED,gDAAgD;AAChD,MAAM,WAAW,YAAY;IAC3B,WAAW,CAAC,EAAE,OAAO,CAAA;IACrB,WAAW,CAAC,EAAE,OAAO,CAAA;CACtB;AAED,MAAM,WAAW,mBAAoB,SAAQ,IAAI,CAAC,cAAc,EAAE,aAAa,CAAC;IAC9E,+DAA+D;IAC/D,WAAW,EAAE,gBAAgB,CAAA;CAC9B;AAED,gCAAgC;AAChC,MAAM,WAAW,sBAAuB,SAAQ,IAAI,CAAC,qBAAqB,EAAE,aAAa,CAAC,EAAE,mBAAmB;CAAI;AAEnH,qCAAqC;AACrC,MAAM,WAAW,0BAA2B,SAAQ,IAAI,CAAC,yBAAyB,EAAE,aAAa,CAAC,EAAE,mBAAmB;CAAI;AAE3H,oBAAY,oBAAoB;IAC9B,KAAK,UAAU;IACf,IAAI,SAAS;IACb,KAAK,UAAU;IACf,OAAO,YAAY;IACnB,OAAO,YAAY;IACnB,OAAO,YAAY;IACnB,YAAY,iBAAiB;IAC7B,aAAa,kBAAkB;CAChC;AAED,oBAAY,sBAAsB;IAChC,OAAO,YAAY;IACnB,KAAK,UAAU;IACf,KAAK,UAAU;CAChB;AAED,MAAM,MAAM,iBAAiB,GAAG,OAAO,CAAC,GAAG,oBAAoB,EAAE,EAAE,eAAe,CAAC,CAAA;AAEnF,MAAM,MAAM,mBAAmB,GAAG,IAAI,GAAG,IAAI,CAAA;AAE7C,MAAM,MAAM,QAAQ,GAAG,MAAM,GAAG,OAAO,GAAG,MAAM,GAAG,OAAO,GAAG,KAAK,GAAG,KAAK,GAAG,iBAAiB,GAAG,KAAK,GAAG,IAAI,GAAG,KAAK,CAAA;AAErH,MAAM,WAAW,YAAY;IAC3B,MAAM,EAAE,MAAM,CAAA;IACd,MAAM,EAAE,MAAM,CAAA;CACf;AAED,MAAM,MAAM,aAAa,GAAG;KACzB,GAAG,IAAI,OAAO,GAAG,MAAM,GAAG,OAAO;CACnC,CAAA;AAED,MAAM,WAAW,yBAAyB;IACxC,EAAE,EAAE,MAAM,CAAA;IACV,IAAI,EAAE,MAAM,CAAA;CACb;AAED,MAAM,WAAW,OAAQ,SAAQ,yBAAyB;CAAI;AAE9D,MAAM,WAAW,YAAa,SAAQ,yBAAyB;CAAI;AAEnE,MAAM,WAAW,oBAAoB;IACnC,IAAI,EAAE,MAAM,CAAA;IACZ,SAAS,EAAE,MAAM,OAAO,wBAAwB,CAAA;IAChD,UAAU,EAAE,MAAM,CAAA;IAClB,IAAI,EAAE,MAAM,CAAA;CACb;AAED,MAAM,WAAW,sBAAsB;IACrC,0BAA0B,EAAE,MAAM,CAAA;IAClC,UAAU,EAAE,OAAO,CAAA;IACnB,aAAa,EAAE,OAAO,CAAA;IACtB,iBAAiB,EAAE,OAAO,CAAA;IAC1B,kBAAkB,EAAE,OAAO,CAAA;CAC5B;AAED,wCAAwC;AACxC,MAAM,WAAW,2BAA4B,SAAQ,sBAAsB;IACzE,OAAO,CAAC,EAAE,aAAa,CAAA;IACvB,KAAK,CAAC,EAAE,MAAM,EAAE,CAAA;IAChB,KAAK,CAAC,EAAE,MAAM,EAAE,CAAA;IAChB,OAAO,CAAC,EAAE,YAAY,EAAE,CAAA;IACxB,cAAc,CAAC,EAAE,MAAM,CAAA;IACvB,aAAa,EAAE,mBAAmB,CAAA;IAClC,OAAO,CAAC,EAAE,OAAO,EAAE,CAAA;IACnB,YAAY,CAAC,EAAE,YAAY,EAAE,CAAA;IAC7B,IAAI,CAAC,EAAE,MAAM,EAAE,CAAA;CAChB;AAED,uCAAuC;AACvC,MAAM,WAAW,2BAA4B,SAAQ,sBAAsB;IACzE,UAAU,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"route-form.d.ts","sourceRoot":"","sources":["../../../src/types/route-form.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,yBAAyB,EAAE,qBAAqB,EAAE,MAAM,iCAAiC,CAAA;AACvH,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,YAAY,CAAA;AAClD,OAAO,KAAK,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,gBAAgB,CAAA;AACrD,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,cAAc,CAAA;AAE5D,oBAAY,WAAW;IACrB,WAAW,gBAAgB,CAAE,kCAAkC;IAC/D,WAAW,gBAAgB;CAC5B;AAED,gDAAgD;AAChD,MAAM,WAAW,YAAY;IAC3B,WAAW,CAAC,EAAE,OAAO,CAAA;IACrB,WAAW,CAAC,EAAE,OAAO,CAAA;CACtB;AAED,MAAM,WAAW,mBAAoB,SAAQ,IAAI,CAAC,cAAc,EAAE,aAAa,CAAC;IAC9E,+DAA+D;IAC/D,WAAW,EAAE,gBAAgB,CAAA;CAC9B;AAED,gCAAgC;AAChC,MAAM,WAAW,sBAAuB,SAAQ,IAAI,CAAC,qBAAqB,EAAE,aAAa,CAAC,EAAE,mBAAmB;CAAI;AAEnH,qCAAqC;AACrC,MAAM,WAAW,0BAA2B,SAAQ,IAAI,CAAC,yBAAyB,EAAE,aAAa,CAAC,EAAE,mBAAmB;CAAI;AAE3H,oBAAY,oBAAoB;IAC9B,KAAK,UAAU;IACf,IAAI,SAAS;IACb,KAAK,UAAU;IACf,OAAO,YAAY;IACnB,OAAO,YAAY;IACnB,OAAO,YAAY;IACnB,YAAY,iBAAiB;IAC7B,aAAa,kBAAkB;CAChC;AAED,oBAAY,sBAAsB;IAChC,OAAO,YAAY;IACnB,KAAK,UAAU;IACf,KAAK,UAAU;CAChB;AAED,MAAM,MAAM,iBAAiB,GAAG,OAAO,CAAC,GAAG,oBAAoB,EAAE,EAAE,eAAe,CAAC,CAAA;AAEnF,MAAM,MAAM,mBAAmB,GAAG,IAAI,GAAG,IAAI,CAAA;AAE7C,MAAM,MAAM,QAAQ,GAAG,MAAM,GAAG,OAAO,GAAG,MAAM,GAAG,OAAO,GAAG,KAAK,GAAG,KAAK,GAAG,iBAAiB,GAAG,KAAK,GAAG,IAAI,GAAG,KAAK,CAAA;AAErH,MAAM,WAAW,YAAY;IAC3B,MAAM,EAAE,MAAM,CAAA;IACd,MAAM,EAAE,MAAM,CAAA;CACf;AAED,MAAM,MAAM,aAAa,GAAG;KACzB,GAAG,IAAI,OAAO,GAAG,MAAM,GAAG,OAAO;CACnC,CAAA;AAED,MAAM,WAAW,yBAAyB;IACxC,EAAE,EAAE,MAAM,CAAA;IACV,IAAI,EAAE,MAAM,CAAA;CACb;AAED,MAAM,WAAW,OAAQ,SAAQ,yBAAyB;CAAI;AAE9D,MAAM,WAAW,YAAa,SAAQ,yBAAyB;CAAI;AAEnE,MAAM,WAAW,oBAAoB;IACnC,IAAI,EAAE,MAAM,CAAA;IACZ,SAAS,EAAE,MAAM,OAAO,wBAAwB,CAAA;IAChD,UAAU,EAAE,MAAM,CAAA;IAClB,IAAI,EAAE,MAAM,CAAA;CACb;AAED,MAAM,WAAW,sBAAsB;IACrC,0BAA0B,EAAE,MAAM,CAAA;IAClC,UAAU,EAAE,OAAO,CAAA;IACnB,aAAa,EAAE,OAAO,CAAA;IACtB,iBAAiB,EAAE,OAAO,CAAA;IAC1B,kBAAkB,EAAE,OAAO,CAAA;CAC5B;AAED,wCAAwC;AACxC,MAAM,WAAW,2BAA4B,SAAQ,sBAAsB;IACzE,OAAO,CAAC,EAAE,aAAa,CAAA;IACvB,KAAK,CAAC,EAAE,MAAM,EAAE,CAAA;IAChB,KAAK,CAAC,EAAE,MAAM,EAAE,CAAA;IAChB,OAAO,CAAC,EAAE,YAAY,EAAE,CAAA;IACxB,cAAc,CAAC,EAAE,MAAM,CAAA;IACvB,aAAa,EAAE,mBAAmB,CAAA;IAClC,OAAO,CAAC,EAAE,OAAO,EAAE,CAAA;IACnB,YAAY,CAAC,EAAE,YAAY,EAAE,CAAA;IAC7B,IAAI,CAAC,EAAE,MAAM,EAAE,CAAA;CAChB;AAED,uCAAuC;AACvC,MAAM,WAAW,2BAA4B,SAAQ,sBAAsB;IACzE,UAAU,EAAE,MAAM,CAAA;IAClB,QAAQ,EAAE,MAAM,CAAA;CACjB;AAED,MAAM,WAAW,UAAU,CAAC,MAAM,SAAS,oBAAoB;IAC7D,YAAY,EAAE,YAAY,CAAA;IAC1B,MAAM,EAAE,MAAM,CAAA;IACd,UAAU,EAAE,OAAO,CAAA;IACnB,YAAY,EAAE,MAAM,CAAA;CACrB;AAED,0CAA0C;AAC1C,eAAO,MAAM,yBAAyB,UAAW,UAAU,CAAC,oBAAoB,CAAC,KAAG,KAAK,IAAI,UAAU,CAAC,oBAAoB,GAAG,2BAA2B,CACjH,CAAA;AAEzC,0CAA0C;AAC1C,eAAO,MAAM,yBAAyB,UAAW,UAAU,CAAC,oBAAoB,CAAC,KAAG,KAAK,IAAI,UAAU,CAAC,oBAAoB,GAAG,2BAA2B,CACjH,CAAA;AAEzC,MAAM,WAAW,OAAO;IACtB,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,EAAE,CAAA;CACxB;AAED,MAAM,WAAW,gBAAgB;IAC/B,EAAE,CAAC,EAAE,MAAM,CAAA;IACX,IAAI,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;IACpB,SAAS,EAAE,QAAQ,EAAE,CAAA;IACrB,IAAI,EAAE,MAAM,EAAE,CAAA;IACd,OAAO,EAAE;QAAE,EAAE,EAAE,MAAM,CAAA;KAAE,GAAG,IAAI,CAAA;CAC/B;AAED,MAAM,WAAW,uBAAuB;IACtC,0BAA0B,EAAE,MAAM,CAAA;IAClC,UAAU,CAAC,EAAE,OAAO,GAAG,IAAI,CAAA;IAC3B,aAAa,EAAE,OAAO,CAAA;IACtB,iBAAiB,EAAE,OAAO,CAAA;IAC1B,kBAAkB,EAAE,OAAO,CAAA;CAC5B;AAED,oDAAoD;AACpD,MAAM,WAAW,4BAA6B,SAAQ,uBAAuB;IAC3E,OAAO,CAAC,EAAE,KAAK,CAAC,MAAM,GAAG,MAAM,CAAC,GAAG,IAAI,CAAA;IACvC,KAAK,CAAC,EAAE,MAAM,EAAE,GAAG,IAAI,CAAA;IACvB,KAAK,CAAC,EAAE,MAAM,EAAE,GAAG,IAAI,CAAA;IACvB,OAAO,CAAC,EAAE,OAAO,GAAG,IAAI,CAAA;IACxB,cAAc,EAAE,MAAM,CAAA;IACtB,aAAa,EAAE,mBAAmB,CAAA;IAClC,OAAO,CAAC,EAAE,OAAO,EAAE,GAAG,IAAI,CAAA;IAC1B,YAAY,CAAC,EAAE,YAAY,EAAE,GAAG,IAAI,CAAA;IACpC,IAAI,CAAC,EAAE,MAAM,EAAE,GAAG,IAAI,CAAA;CACvB;AAED,oDAAoD;AACpD,MAAM,WAAW,4BAA6B,SAAQ,uBAAuB;IAC3E,UAAU,CAAC,EAAE,MAAM,CAAA;IACnB,QAAQ,EAAE,MAAM,CAAA;CACjB;AAED,MAAM,MAAM,sBAAsB,GAAG;IACnC,IAAI,EAAE,WAAW,CAAC,WAAW,CAAA;IAC7B,OAAO,EAAE,4BAA4B,CAAA;CACtC,GAAG;IACF,IAAI,EAAE,WAAW,CAAC,WAAW,CAAA;IAC7B,OAAO,EAAE,4BAA4B,CAAA;CACtC,CAAA"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kong-ui-public/entities-routes",
|
|
3
|
-
"version": "3.11.
|
|
3
|
+
"version": "3.11.9",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"main": "./dist/entities-routes.umd.js",
|
|
6
6
|
"module": "./dist/entities-routes.es.js",
|
|
@@ -26,7 +26,7 @@
|
|
|
26
26
|
"axios": "^1.7.7",
|
|
27
27
|
"vue": ">= 3.3.13 < 4",
|
|
28
28
|
"vue-router": "^4.4.5",
|
|
29
|
-
"@kong-ui-public/entities-shared": "^3.22.
|
|
29
|
+
"@kong-ui-public/entities-shared": "^3.22.4",
|
|
30
30
|
"@kong-ui-public/i18n": "^2.3.0"
|
|
31
31
|
},
|
|
32
32
|
"devDependencies": {
|
|
@@ -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.4"
|
|
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.31"
|
|
61
61
|
},
|
|
62
62
|
"scripts": {
|
|
63
63
|
"dev": "cross-env USE_SANDBOX=true vite",
|