@kong-ui-public/entities-routes 3.8.30 → 3.8.31

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.
@@ -882,7 +882,7 @@ const ue = (r) => r.routeFlavors.traditional === !0, $e = (r) => r.routeFlavors.
882
882
  ]);
883
883
  };
884
884
  }
885
- }), po = /* @__PURE__ */ ae(co, [["__scopeId", "data-v-b964ced7"]]), fo = { class: "routing-rule-container" }, mo = /* @__PURE__ */ J({
885
+ }), po = /* @__PURE__ */ ae(co, [["__scopeId", "data-v-d41b39fd"]]), fo = { class: "routing-rule-container" }, mo = /* @__PURE__ */ J({
886
886
  __name: "RouteFormHeadersFields",
887
887
  props: {
888
888
  modelValue: {
@@ -942,7 +942,7 @@ const ue = (r) => r.routeFlavors.traditional === !0, $e = (r) => r.routeFlavors.
942
942
  ]);
943
943
  };
944
944
  }
945
- }), ho = /* @__PURE__ */ ae(mo, [["__scopeId", "data-v-01020443"]]), vo = { class: "routing-rule-container" }, go = /* @__PURE__ */ J({
945
+ }), ho = /* @__PURE__ */ ae(mo, [["__scopeId", "data-v-ca0bb10b"]]), vo = { class: "routing-rule-container" }, go = /* @__PURE__ */ J({
946
946
  __name: "RouteFormHostsFields",
947
947
  props: {
948
948
  modelValue: {
@@ -995,7 +995,7 @@ const ue = (r) => r.routeFlavors.traditional === !0, $e = (r) => r.routeFlavors.
995
995
  ]);
996
996
  };
997
997
  }
998
- }), So = /* @__PURE__ */ ae(go, [["__scopeId", "data-v-6174b92d"]]), yo = { class: "routing-rule-container" }, bo = { class: "routing-rule-input" }, _o = { class: "methods-input-container" }, To = {
998
+ }), So = /* @__PURE__ */ ae(go, [["__scopeId", "data-v-88d16377"]]), yo = { class: "routing-rule-container" }, bo = { class: "routing-rule-input" }, _o = { class: "methods-input-container" }, To = {
999
999
  key: 0,
1000
1000
  class: "routing-rule-container"
1001
1001
  }, Io = /* @__PURE__ */ J({
@@ -1101,7 +1101,7 @@ const ue = (r) => r.routeFlavors.traditional === !0, $e = (r) => r.routeFlavors.
1101
1101
  ]);
1102
1102
  };
1103
1103
  }
1104
- }), Ro = /* @__PURE__ */ ae(Io, [["__scopeId", "data-v-5f61c45d"]]), Eo = { class: "routing-rule-container" }, Ao = /* @__PURE__ */ J({
1104
+ }), Ro = /* @__PURE__ */ ae(Io, [["__scopeId", "data-v-c8ae1bc5"]]), Eo = { class: "routing-rule-container" }, Ao = /* @__PURE__ */ J({
1105
1105
  __name: "RouteFormPathsFields",
1106
1106
  props: {
1107
1107
  modelValue: {
@@ -1151,7 +1151,7 @@ const ue = (r) => r.routeFlavors.traditional === !0, $e = (r) => r.routeFlavors.
1151
1151
  ]);
1152
1152
  };
1153
1153
  }
1154
- }), Vo = /* @__PURE__ */ ae(Ao, [["__scopeId", "data-v-5b1f7bb4"]]), ko = { class: "routing-rule-container" }, Co = /* @__PURE__ */ J({
1154
+ }), Vo = /* @__PURE__ */ ae(Ao, [["__scopeId", "data-v-bc31ca96"]]), ko = { class: "routing-rule-container" }, Co = /* @__PURE__ */ J({
1155
1155
  __name: "RouteFormSnisFields",
1156
1156
  props: {
1157
1157
  modelValue: {
@@ -1204,7 +1204,7 @@ const ue = (r) => r.routeFlavors.traditional === !0, $e = (r) => r.routeFlavors.
1204
1204
  ]);
1205
1205
  };
1206
1206
  }
1207
- }), Oo = /* @__PURE__ */ ae(Co, [["__scopeId", "data-v-63640996"]]), No = { class: "routing-rule-container" }, $o = /* @__PURE__ */ J({
1207
+ }), Oo = /* @__PURE__ */ ae(Co, [["__scopeId", "data-v-c3679dd9"]]), No = { class: "routing-rule-container" }, $o = /* @__PURE__ */ J({
1208
1208
  __name: "RouteFormSourcesFields",
1209
1209
  props: {
1210
1210
  modelValue: {
@@ -1267,7 +1267,7 @@ const ue = (r) => r.routeFlavors.traditional === !0, $e = (r) => r.routeFlavors.
1267
1267
  ]);
1268
1268
  };
1269
1269
  }
1270
- }), wo = /* @__PURE__ */ ae($o, [["__scopeId", "data-v-08fcd8c5"]]), Ho = /* @__PURE__ */ J({
1270
+ }), wo = /* @__PURE__ */ ae($o, [["__scopeId", "data-v-50c52494"]]), Ho = /* @__PURE__ */ J({
1271
1271
  __name: "RouteFormConfigTabs",
1272
1272
  props: /* @__PURE__ */ Le({
1273
1273
  routeFlavors: {},
@@ -2300,7 +2300,7 @@ const ue = (r) => r.routeFlavors.traditional === !0, $e = (r) => r.routeFlavors.
2300
2300
  ]);
2301
2301
  };
2302
2302
  }
2303
- }), ds = /* @__PURE__ */ ae(Yo, [["__scopeId", "data-v-83e76105"]]), Zo = { class: "kong-ui-entities-route-entity-config-card" }, es = { key: 2 }, us = /* @__PURE__ */ J({
2303
+ }), ds = /* @__PURE__ */ ae(Yo, [["__scopeId", "data-v-6c1044e5"]]), Zo = { class: "kong-ui-entities-route-entity-config-card" }, es = { key: 2 }, us = /* @__PURE__ */ J({
2304
2304
  __name: "RouteConfigCard",
2305
2305
  props: {
2306
2306
  /** The base konnect or kongManger config. Pass additional config props in the shared entity component as needed. */
@@ -1 +1 @@
1
- (function(I,e){typeof exports=="object"&&typeof module<"u"?e(exports,require("vue"),require("vue-router"),require("@kong/kongponents"),require("@kong/icons"),require("@kong-ui-public/entities-shared"),require("@kong-ui-public/i18n"),require("lodash.isequal"),require("@kong-ui-public/expressions")):typeof define=="function"&&define.amd?define(["exports","vue","vue-router","@kong/kongponents","@kong/icons","@kong-ui-public/entities-shared","@kong-ui-public/i18n","lodash.isequal","@kong-ui-public/expressions"],e):(I=typeof globalThis<"u"?globalThis:I||self,e(I["kong-ui-public-entities-routes"]={},I.Vue,I.VueRouter,I.Kongponents,I.KongIcons,I["kong-ui-public-entities-shared"],I["kong-ui-public-i18n"],I.isEqual,I["kong-ui-public-expressions"]))})(this,function(I,e,Te,we,ee,b,Re,Fe,ie){"use strict";const Pe={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",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."}}},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 Ie(){const s=Re.createI18n("en-us",Pe);return{i18n:s,i18nT:Re.i18nTComponent(s)}}const G={useI18n:Ie},U="/v2/control-planes/{controlPlaneId}/core-entities",M="/{workspace}",le={list:{konnect:{all:`${U}/routes`,forGatewayService:`${U}/services/{serviceId}/routes`},kongManager:{all:`${M}/routes`,forGatewayService:`${M}/services/{serviceId}/routes`}},form:{konnect:{services:`${U}/services`,create:{all:`${U}/routes`,forGatewayService:`${U}/services/{serviceId}/routes`},fetch:{all:`${U}/routes/{id}`,forGatewayService:`${U}/services/{serviceId}/routes/{id}`},edit:{all:`${U}/routes/{id}`,forGatewayService:`${U}/services/{serviceId}/routes/{id}`}},kongManager:{services:`${M}/services`,create:{all:`${M}/routes`,forGatewayService:`${M}/services/{serviceId}/routes`},fetch:{all:`${M}/routes/{id}`,forGatewayService:`${M}/services/{serviceId}/routes/{id}`},edit:{all:`${M}/routes/{id}`,forGatewayService:`${M}/services/{serviceId}/routes/{id}`}}},item:{konnect:{getService:`${U}/services/{serviceId}`,all:`${U}/routes/{id}`,forGatewayService:`${U}/services/{serviceId}/routes/{id}`},kongManager:{getService:`${M}/services/{serviceId}`,all:`${M}/routes/{id}`,forGatewayService:`${M}/services/{serviceId}/routes/{id}`}}},He={class:"kong-ui-entities-routes-list"},Ue={key:1},Me={key:1},Le={key:1},qe={key:1},Ke={class:"route-list-cell-expression"},Ge=e.defineComponent({__name:"RouteList",props:{config:{type:Object,required:!0,validator:s=>!(!s||!["konnect","kongManager"].includes(s==null?void 0:s.app)||!s.createRoute||!s.getViewRoute||!s.getEditRoute||s.app==="kongManager"&&!s.isExactMatch&&!s.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}},emits:["error","copy:success","copy:error","delete:success"],setup(s,{emit:N}){var me;const g=N,i=s,{i18n:{t:c,formatUnixTimeStamp:n}}=G.useI18n(),p=Te.useRouter(),{axiosInstance:u}=b.useAxios((me=i.config)==null?void 0:me.axiosRequestConfig),S=e.ref(1),C=e.computed(()=>i.config.app!=="kongManager"||!!i.config.disableSorting),x={name:{label:c("routes.list.table_headers.name"),searchable:!0,sortable:!0,hidable:!1},protocols:{label:c("routes.list.table_headers.protocols"),searchable:!0},...!i.hideTraditionalColumns&&{hosts:{label:c("routes.list.table_headers.hosts"),searchable:!0},methods:{label:c("routes.list.table_headers.methods"),searchable:!0},paths:{label:c("routes.list.table_headers.paths"),searchable:!0}},...i.hasExpressionColumn&&{expression:{label:c("routes.list.table_headers.expression"),tooltip:!0}},tags:{label:c("routes.list.table_headers.tags"),sortable:!1},updated_at:{label:c("routes.list.table_headers.updated_at"),sortable:!0},created_at:{label:c("routes.list.table_headers.created_at"),sortable:!0}},f={columnVisibility:{created_at:!1}},a=x,O=e.computed(()=>{var E,T,B,F;let h=`${i.config.apiBaseUrl}${le.list[i.config.app][i.config.serviceId?"forGatewayService":"all"]}`;return i.config.app==="konnect"?h=h.replace(/{controlPlaneId}/gi,((E=i.config)==null?void 0:E.controlPlaneId)||"").replace(/{serviceId}/gi,((T=i.config)==null?void 0:T.serviceId)||""):i.config.app==="kongManager"&&(h=h.replace(/\/{workspace}/gi,(B=i.config)!=null&&B.workspace?`/${i.config.workspace}`:"").replace(/{serviceId}/gi,((F=i.config)==null?void 0:F.serviceId)||"")),h}),H=e.ref(""),k=e.computed(()=>{const h=i.config.app==="konnect"||i.config.isExactMatch;if(h)return{isExactMatch:h,placeholder:c(`search.placeholder.${i.config.app}`)};const{name:E,protocols:T,hosts:B,methods:F,paths:X,expression:re}=x,y={name:E,protocols:T,hosts:B,methods:F,paths:X,...i.hasExpressionColumn&&{expression:re}};return{isExactMatch:h,fields:y,schema:i.config.filterSchema}}),{fetcher:R,fetcherState:L}=b.useFetcher(i.config,O.value),D=h=>h.headerKey==="expression"?{style:{maxWidth:"250px",overflowX:"hidden",textOverflow:"ellipsis"}}:{},t=()=>{H.value=""},q=()=>{S.value++},J=e.ref(null),se=e.ref(!1),A=(h,E)=>{const T=h.id;if(!E(T)){g("copy:error",{entity:h,field:"id",message:c("errors.copy")});return}g("copy:success",{entity:h,field:"id",message:c("copy.success",{val:T})})},ge=(h,E)=>{const T=JSON.stringify(h);if(!E(T)){g("copy:error",{entity:h,message:c("errors.copy")});return}g("copy:success",{entity:h,message:c("copy.success_brief")})},ye=async h=>{var T;await((T=i.canRetrieve)==null?void 0:T.call(i,h))&&p.push(i.config.getViewRoute(h.id))},Se=h=>({label:c("actions.view"),to:i.config.getViewRoute(h)}),fe=h=>({label:c("actions.edit"),to:i.config.getEditRoute(h)}),K=e.ref(void 0),Y=e.ref(!1),ne=e.ref(!1),de=e.ref(""),be=b.useDeleteUrlBuilder(i.config,O.value),Ce=h=>{K.value=h,Y.value=!0},Ve=()=>{Y.value=!1},ke=async()=>{var h,E,T;if((h=K.value)!=null&&h.id){ne.value=!0;try{await u.delete(be(K.value.id)),ne.value=!1,Y.value=!1,S.value++,g("delete:success",K.value)}catch(B){de.value=((T=(E=B.response)==null?void 0:E.data)==null?void 0:T.message)||B.message||c("errors.delete"),g("error",B)}finally{ne.value=!1}}},$=e.ref(!1);e.watch(L,h=>{var E,T,B,F;if(Array.isArray((E=h==null?void 0:h.response)==null?void 0:E.data)&&($.value=h.response.data.length>0),h.status===b.FetcherStatus.NoRecords?se.value=!0:se.value=!1,h.status===b.FetcherStatus.Error){J.value={title:c("errors.general")},(F=(B=(T=h.error)==null?void 0:T.response)==null?void 0:B.data)!=null&&F.message&&(J.value.message=h.error.response.data.message),g("error",h.error);return}J.value=null});const Q=e.ref({ctaPath:i.config.createRoute,ctaText:void 0,message:`${c("routes.list.empty_state.description")}${i.config.additionMessageForEmptyState?` ${i.config.additionMessageForEmptyState}`:""}`,title:c("routes.title")});return e.onBeforeMount(async()=>{await i.canCreate()&&(Q.value.title=c("routes.list.empty_state.title"),Q.value.ctaText=c("actions.create"))}),(h,E)=>{const T=e.resolveComponent("KButton"),B=e.resolveComponent("KBadge"),F=e.resolveComponent("KTruncate"),X=e.resolveComponent("KDropdownItem"),re=e.resolveComponent("KClipboardProvider");return e.openBlock(),e.createElementBlock("div",He,[e.createVNode(e.unref(b.EntityBaseTable),{"cache-identifier":s.cacheIdentifier,"cell-attributes":D,"default-table-preferences":f,"disable-sorting":C.value,"empty-state-options":Q.value,"enable-entity-actions":"","error-message":J.value,fetcher:e.unref(R),"fetcher-cache-key":S.value,"hide-toolbar":se.value,"pagination-type":"offset","preferences-storage-key":"kong-ui-entities-routes-list",query:H.value,"table-headers":e.unref(a),title:s.title,"title-tag":s.titleTag,onClearSearchInput:t,"onClick:row":E[6]||(E[6]=y=>ye(y)),onSort:q},{"toolbar-filter":e.withCtx(()=>[e.createVNode(e.unref(b.EntityFilter),{modelValue:H.value,"onUpdate:modelValue":E[0]||(E[0]=y=>H.value=y),config:k.value},null,8,["modelValue","config"])]),"toolbar-button":e.withCtx(()=>[(e.openBlock(),e.createBlock(e.Teleport,{disabled:!s.useActionOutside,to:"#kong-ui-app-page-header-action-button"},[e.createVNode(e.unref(b.PermissionsWrapper),{"auth-function":()=>s.canCreate()},{default:e.withCtx(()=>[e.withDirectives(e.createVNode(T,{appearance:"primary","data-testid":"toolbar-add-route",size:s.useActionOutside?"medium":"large",to:s.config.createRoute},{default:e.withCtx(()=>[e.createVNode(e.unref(ee.AddIcon)),e.createTextVNode(" "+e.toDisplayString(e.unref(c)("routes.list.toolbar_actions.new_route")),1)]),_:1},8,["size","to"]),[[e.vShow,$.value]])]),_:1},8,["auth-function"])],8,["disabled"]))]),name:e.withCtx(({rowValue:y})=>[e.createElementVNode("b",null,e.toDisplayString(y??"-"),1)]),protocols:e.withCtx(({rowValue:y})=>[e.createVNode(F,null,{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(y,w=>(e.openBlock(),e.createBlock(B,{key:w,appearance:"neutral",onClick:E[1]||(E[1]=e.withModifiers(()=>{},["stop"]))},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(w),1)]),_:2},1024))),128))]),_:2},1024)]),hosts:e.withCtx(({rowValue:y})=>[(y==null?void 0:y.length)>0?(e.openBlock(),e.createBlock(F,{key:0},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(y,w=>(e.openBlock(),e.createBlock(B,{key:w,appearance:"neutral",tooltip:w,"truncation-tooltip":"",onClick:E[2]||(E[2]=e.withModifiers(()=>{},["stop"]))},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(w),1)]),_:2},1032,["tooltip"]))),128))]),_:2},1024)):(e.openBlock(),e.createElementBlock("span",Ue,"-"))]),methods:e.withCtx(({rowValue:y})=>[(y==null?void 0:y.length)>0?(e.openBlock(),e.createBlock(F,{key:0},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(y,w=>(e.openBlock(),e.createBlock(B,{key:w,appearance:Object.values(e.unref(we.BadgeMethodAppearances)).includes(w.toLowerCase())?w.toLowerCase():"custom",onClick:E[3]||(E[3]=e.withModifiers(()=>{},["stop"]))},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(w),1)]),_:2},1032,["appearance"]))),128))]),_:2},1024)):(e.openBlock(),e.createElementBlock("span",Me,"-"))]),paths:e.withCtx(({rowValue:y})=>[(y==null?void 0:y.length)>0?(e.openBlock(),e.createBlock(F,{key:0},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(y,w=>(e.openBlock(),e.createBlock(B,{key:w,appearance:"neutral",tooltip:w,"truncation-tooltip":"",onClick:E[4]||(E[4]=e.withModifiers(()=>{},["stop"]))},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(w),1)]),_:2},1032,["tooltip"]))),128))]),_:2},1024)):(e.openBlock(),e.createElementBlock("span",Le,"-"))]),tags:e.withCtx(({rowValue:y})=>[(y==null?void 0:y.length)>0?(e.openBlock(),e.createBlock(F,{key:0},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(y,w=>(e.openBlock(),e.createBlock(B,{key:w,onClick:E[5]||(E[5]=e.withModifiers(()=>{},["stop"]))},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(w),1)]),_:2},1024))),128))]),_:2},1024)):(e.openBlock(),e.createElementBlock("span",qe,"-"))]),expression:e.withCtx(({rowValue:y})=>[e.createElementVNode("span",Ke,e.toDisplayString(y||"-"),1)]),created_at:e.withCtx(({rowValue:y})=>[e.createTextVNode(e.toDisplayString(e.unref(n)(y)),1)]),updated_at:e.withCtx(({rowValue:y})=>[e.createTextVNode(e.toDisplayString(e.unref(n)(y)),1)]),actions:e.withCtx(({row:y})=>[e.createVNode(re,null,{default:e.withCtx(({copyToClipboard:w})=>[e.createVNode(X,{"data-testid":"action-entity-copy-id",onClick:ue=>A(y,w)},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(c)("actions.copy_id")),1)]),_:2},1032,["onClick"])]),_:2},1024),e.createVNode(re,null,{default:e.withCtx(({copyToClipboard:w})=>[e.createVNode(X,{"data-testid":"action-entity-copy-json",onClick:ue=>ge(y,w)},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(c)("actions.copy_json")),1)]),_:2},1032,["onClick"])]),_:2},1024),e.createVNode(e.unref(b.PermissionsWrapper),{"auth-function":()=>s.canRetrieve(y)},{default:e.withCtx(()=>[e.createVNode(X,{"data-testid":"action-entity-view","has-divider":"",item:Se(y.id)},null,8,["item"])]),_:2},1032,["auth-function"]),e.createVNode(e.unref(b.PermissionsWrapper),{"auth-function":()=>s.canEdit(y)},{default:e.withCtx(()=>[e.createVNode(X,{"data-testid":"action-entity-edit",item:fe(y.id)},null,8,["item"])]),_:2},1032,["auth-function"]),e.createVNode(e.unref(b.PermissionsWrapper),{"auth-function":()=>s.canDelete(y)},{default:e.withCtx(()=>[e.createVNode(X,{danger:"","data-testid":"action-entity-delete","has-divider":"",onClick:w=>Ce(y)},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(c)("actions.delete")),1)]),_:2},1032,["onClick"])]),_:2},1032,["auth-function"])]),_:1},8,["cache-identifier","disable-sorting","empty-state-options","error-message","fetcher","fetcher-cache-key","hide-toolbar","query","table-headers","title","title-tag"]),e.createVNode(e.unref(b.EntityDeleteModal),{"action-pending":ne.value,description:e.unref(c)("delete.description"),"entity-name":K.value&&(K.value.name||K.value.id),"entity-type":e.unref(b.EntityTypes).Route,error:de.value,title:e.unref(c)("delete.title"),visible:Y.value,onCancel:Ve,onProceed:ke},null,8,["action-pending","description","entity-name","entity-type","error","title","visible"])])}}}),j=(s,N)=>{const g=s.__vccOpts||s;for(const[i,c]of N)g[i]=c;return g},je=j(Ge,[["__scopeId","data-v-cb29085c"]]);var Be=(s=>(s.GET="GET",s.PUT="PUT",s.POST="POST",s.PATCH="PATCH",s.DELETE="DELETE",s.OPTIONS="OPTIONS",s.HEAD="HEAD",s.CONNECT="CONNECT",s.TRACE="TRACE",s.CUSTOM="CUSTOM",s))(Be||{}),_=(s=>(s.TRADITIONAL="traditional",s.EXPRESSIONS="expressions",s))(_||{}),l=(s=>(s.PATHS="paths",s.SNIS="snis",s.HOSTS="hosts",s.METHODS="methods",s.HEADERS="headers",s.SOURCES="sources",s.DESTINATIONS="destinations",s.CUSTOM_METHOD="custom-method",s))(l||{}),te=(s=>(s.LOADING="loading",s.ERROR="error",s.READY="ready",s))(te||{});const W=s=>s.routeFlavors.traditional===!0,ae=s=>s.routeFlavors.expressions===!0,xe="#d60027",Ae="#6c7489",he="16px",We={class:"routing-rules-entities-controls-container"},oe=j(e.defineComponent({__name:"RoutingRulesEntitiesControls",props:{routingRulesEntity:{type:String,required:!0},isAddDisabled:{type:Boolean,default:!1}},emits:["remove","add"],setup(s){return(N,g)=>{const i=e.resolveComponent("KButton");return e.openBlock(),e.createElementBlock("div",We,[e.createVNode(i,{appearance:"tertiary",class:"remove-button","data-testid":`remove-${s.routingRulesEntity}`,icon:"",onClick:g[0]||(g[0]=c=>N.$emit("remove"))},{default:e.withCtx(()=>[e.createVNode(e.unref(ee.TrashIcon),{color:e.unref(xe)},null,8,["color"])]),_:1},8,["data-testid"]),e.createVNode(i,{appearance:"tertiary","data-testid":`add-${s.routingRulesEntity}`,disabled:s.isAddDisabled,icon:"",onClick:g[1]||(g[1]=c=>N.$emit("add"))},{default:e.withCtx(()=>[e.createVNode(e.unref(ee.AddIcon))]),_:1},8,["data-testid","disabled"])])}}}),[["__scopeId","data-v-e024298d"]]),Xe={class:"routing-rule-container"},ze=j(e.defineComponent({__name:"RouteFormDestinationsFields",props:{modelValue:{type:Array,required:!0}},emits:["add","remove","update:modelValue"],setup(s,{emit:N}){const g=s,i=N,{i18n:{t:c}}=G.useI18n(),n=e.ref([]);return e.watch(g.modelValue,p=>{n.value=[...p]},{immediate:!0,deep:!0}),e.watch(n,p=>{i("update:modelValue",p)},{deep:!0}),(p,u)=>{const S=e.resolveComponent("KLabel"),C=e.resolveComponent("KInput");return e.openBlock(),e.createElementBlock("div",Xe,[u[1]||(u[1]=e.createElementVNode("hr",null,null,-1)),e.createVNode(S,{info:e.unref(c)("form.fields.destinations.tooltip")},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(c)("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(n.value,(x,f)=>(e.openBlock(),e.createElementBlock("div",{key:f,class:"routing-rule-input"},[e.createVNode(C,{modelValue:n.value[f].ip,"onUpdate:modelValue":a=>n.value[f].ip=a,modelModifiers:{trim:!0},"data-testid":`route-form-destinations-ip-input-${f+1}`,placeholder:e.unref(c)("form.fields.destinations.ip.placeholder")},null,8,["modelValue","onUpdate:modelValue","data-testid","placeholder"]),e.createVNode(C,{modelValue:n.value[f].port,"onUpdate:modelValue":a=>n.value[f].port=a,modelModifiers:{number:!0},"data-testid":`route-form-destinations-port-input-${f+1}`,max:"65535",min:"0",placeholder:e.unref(c)("form.fields.destinations.port.placeholder"),type:"number"},null,8,["modelValue","onUpdate:modelValue","data-testid","placeholder"]),e.createVNode(oe,{"is-add-disabled":f!==n.value.length-1,"routing-rules-entity":e.unref(l).DESTINATIONS,onAdd:u[0]||(u[0]=a=>p.$emit("add")),onRemove:a=>p.$emit("remove",f)},null,8,["is-add-disabled","routing-rules-entity","onRemove"])]))),128))]),_:1})])}}}),[["__scopeId","data-v-b964ced7"]]),Je={class:"routing-rule-container"},Qe=j(e.defineComponent({__name:"RouteFormHeadersFields",props:{modelValue:{type:Array,required:!0}},emits:["add","remove","update:modelValue"],setup(s,{emit:N}){const g=s,i=N,{i18n:{t:c}}=G.useI18n(),n=e.ref([]);return e.watch(g.modelValue,p=>{n.value=[...p]},{immediate:!0,deep:!0}),e.watch(n,p=>{i("update:modelValue",p)},{deep:!0}),(p,u)=>{const S=e.resolveComponent("KLabel"),C=e.resolveComponent("KInput");return e.openBlock(),e.createElementBlock("div",Je,[u[1]||(u[1]=e.createElementVNode("hr",null,null,-1)),e.createVNode(S,{info:e.unref(c)("form.fields.headers.tooltip")},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(c)("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(n.value,(x,f)=>(e.openBlock(),e.createElementBlock("div",{key:f,class:"routing-rule-input"},[e.createVNode(C,{modelValue:n.value[f].header,"onUpdate:modelValue":a=>n.value[f].header=a,modelModifiers:{trim:!0},"data-testid":`route-form-headers-name-input-${f+1}`,placeholder:e.unref(c)("form.fields.headers.name.placeholder")},null,8,["modelValue","onUpdate:modelValue","data-testid","placeholder"]),e.createVNode(C,{modelValue:n.value[f].values,"onUpdate:modelValue":a=>n.value[f].values=a,modelModifiers:{trim:!0},"data-testid":`route-form-headers-values-input-${f+1}`,placeholder:e.unref(c)("form.fields.headers.values.placeholder")},null,8,["modelValue","onUpdate:modelValue","data-testid","placeholder"]),e.createVNode(oe,{"is-add-disabled":f!==n.value.length-1,"routing-rules-entity":e.unref(l).HEADERS,onAdd:u[0]||(u[0]=a=>p.$emit("add")),onRemove:a=>p.$emit("remove",f)},null,8,["is-add-disabled","routing-rules-entity","onRemove"])]))),128))]),_:1})])}}}),[["__scopeId","data-v-01020443"]]),Ye={class:"routing-rule-container"},Ze=j(e.defineComponent({__name:"RouteFormHostsFields",props:{modelValue:{type:Array,required:!0}},emits:["add","remove","update:modelValue"],setup(s,{emit:N}){const g=s,i=N,{i18n:{t:c}}=G.useI18n(),n=e.ref([]);return e.watch(g.modelValue,p=>{n.value=[...p]},{immediate:!0,deep:!0}),e.watch(n,p=>{i("update:modelValue",p)},{deep:!0}),(p,u)=>{const S=e.resolveComponent("KLabel"),C=e.resolveComponent("KInput");return e.openBlock(),e.createElementBlock("div",Ye,[u[1]||(u[1]=e.createElementVNode("hr",null,null,-1)),e.createVNode(S,{info:e.unref(c)("form.fields.hosts.tooltip")},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(c)("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(n.value,(x,f)=>(e.openBlock(),e.createElementBlock("div",{key:f,class:"routing-rule-input"},[e.createVNode(C,{modelValue:n.value[f],"onUpdate:modelValue":a=>n.value[f]=a,modelModifiers:{trim:!0},"data-testid":`route-form-hosts-input-${f+1}`,placeholder:e.unref(c)("form.fields.hosts.placeholder")},null,8,["modelValue","onUpdate:modelValue","data-testid","placeholder"]),e.createVNode(oe,{"is-add-disabled":f!==n.value.length-1,"routing-rules-entity":e.unref(l).HOSTS,onAdd:u[0]||(u[0]=a=>p.$emit("add")),onRemove:a=>p.$emit("remove",f)},null,8,["is-add-disabled","routing-rules-entity","onRemove"])]))),128))]),_:1})])}}}),[["__scopeId","data-v-6174b92d"]]),ve={class:"routing-rule-container"},et={class:"routing-rule-input"},tt={class:"methods-input-container"},ot={key:0,class:"routing-rule-container"},rt=j(e.defineComponent({__name:"RouteFormMethodsFields",props:{modelValue:{type:Object,required:!0},customMethods:{type:Array,required:!0}},emits:["add","remove","update:modelValue","update-custom-methods"],setup(s,{emit:N}){const g=s,i=N,{i18n:{t:c}}=G.useI18n(),n=e.ref({}),p=e.ref([...g.customMethods]),u=S=>{p.value.length===1?p.value[0]="":p.value.splice(S,1)};return e.watch(g.modelValue,S=>{n.value={...S}},{immediate:!0,deep:!0}),e.watch(n,S=>{i("update:modelValue",S)},{deep:!0}),e.watch(p,S=>{i("update-custom-methods",S)},{deep:!0}),(S,C)=>{const x=e.resolveComponent("KLabel"),f=e.resolveComponent("KInputSwitch"),a=e.resolveComponent("KBadge"),O=e.resolveComponent("KButton"),H=e.resolveComponent("KInput");return e.openBlock(),e.createElementBlock("div",ve,[C[2]||(C[2]=e.createElementVNode("hr",null,null,-1)),e.createVNode(x,null,{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(c)("form.fields.methods.label")),1)]),_:1}),e.createElementVNode("div",et,[e.createElementVNode("div",tt,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(Object.keys(n.value),k=>(e.openBlock(),e.createElementBlock("div",{key:k,class:"methods-input"},[e.createVNode(f,{modelValue:n.value[k],"onUpdate:modelValue":R=>n.value[k]=R,"data-testid":`${k.toLowerCase()}-method-toggle`},null,8,["modelValue","onUpdate:modelValue","data-testid"]),e.createVNode(a,{appearance:Object.values(e.unref(we.BadgeMethodAppearances)).includes(k.toLowerCase())?k.toLowerCase():"custom"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(k.toLowerCase()),1)]),_:2},1032,["appearance"])]))),128))]),e.createVNode(O,{appearance:"tertiary",class:"remove-button","data-testid":"remove-methods",icon:"",onClick:C[0]||(C[0]=k=>S.$emit("remove"))},{default:e.withCtx(()=>[e.createVNode(e.unref(ee.TrashIcon),{color:e.unref(xe)},null,8,["color"])]),_:1})]),n.value.CUSTOM?(e.openBlock(),e.createElementBlock("div",ot,[e.createVNode(x,{info:e.unref(c)("form.fields.methods.custom.tooltip")},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(c)("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(p.value,(k,R)=>(e.openBlock(),e.createElementBlock("div",{key:R,class:"routing-rule-input"},[e.createVNode(H,{modelValue:p.value[R],"onUpdate:modelValue":L=>p.value[R]=L,modelModifiers:{trim:!0},"data-testid":`route-form-custom-method-input-${R+1}`,placeholder:e.unref(c)("form.fields.methods.custom.placeholder")},null,8,["modelValue","onUpdate:modelValue","data-testid","placeholder"]),e.createVNode(oe,{"is-add-disabled":R!==p.value.length-1,"routing-rules-entity":e.unref(l).CUSTOM_METHOD,onAdd:C[1]||(C[1]=L=>p.value.push("")),onRemove:L=>u(R)},null,8,["is-add-disabled","routing-rules-entity","onRemove"])]))),128))]),_:1})])):e.createCommentVNode("",!0)])}}}),[["__scopeId","data-v-5f61c45d"]]),lt={class:"routing-rule-container"},st=j(e.defineComponent({__name:"RouteFormPathsFields",props:{modelValue:{type:Array,required:!0}},emits:["add","remove","update:modelValue"],setup(s,{emit:N}){const g=s,i=N,{i18n:{t:c}}=G.useI18n(),n=e.ref([]);return e.watch(g.modelValue,p=>{n.value=[...p]},{immediate:!0,deep:!0}),e.watch(n,p=>{i("update:modelValue",p)},{deep:!0}),(p,u)=>{const S=e.resolveComponent("KLabel"),C=e.resolveComponent("KInput");return e.openBlock(),e.createElementBlock("div",lt,[e.createVNode(S,null,{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(c)("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(n.value,(x,f)=>(e.openBlock(),e.createElementBlock("div",{key:f,class:"routing-rule-input"},[e.createVNode(C,{modelValue:n.value[f],"onUpdate:modelValue":a=>n.value[f]=a,modelModifiers:{trim:!0},"data-testid":`route-form-paths-input-${f+1}`,placeholder:e.unref(c)("form.fields.paths.placeholder")},null,8,["modelValue","onUpdate:modelValue","data-testid","placeholder"]),e.createVNode(oe,{"is-add-disabled":f!==n.value.length-1,"routing-rules-entity":e.unref(l).PATHS,onAdd:u[0]||(u[0]=a=>p.$emit("add")),onRemove:a=>p.$emit("remove",f)},null,8,["is-add-disabled","routing-rules-entity","onRemove"])]))),128))]),_:1})])}}}),[["__scopeId","data-v-5b1f7bb4"]]),nt={class:"routing-rule-container"},it=j(e.defineComponent({__name:"RouteFormSnisFields",props:{modelValue:{type:Array,required:!0}},emits:["add","remove","update:modelValue"],setup(s,{emit:N}){const g=s,i=N,{i18n:{t:c}}=G.useI18n(),n=e.ref([]);return e.watch(g.modelValue,p=>{n.value=[...p]},{immediate:!0,deep:!0}),e.watch(n,p=>{i("update:modelValue",p)},{deep:!0}),(p,u)=>{const S=e.resolveComponent("KLabel"),C=e.resolveComponent("KInput");return e.openBlock(),e.createElementBlock("div",nt,[u[1]||(u[1]=e.createElementVNode("hr",null,null,-1)),e.createVNode(S,{info:e.unref(c)("form.fields.snis.tooltip")},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(c)("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(n.value,(x,f)=>(e.openBlock(),e.createElementBlock("div",{key:f,class:"routing-rule-input"},[e.createVNode(C,{modelValue:n.value[f],"onUpdate:modelValue":a=>n.value[f]=a,modelModifiers:{trim:!0},"data-testid":`route-form-snis-input-${f+1}`,placeholder:e.unref(c)("form.fields.snis.placeholder")},null,8,["modelValue","onUpdate:modelValue","data-testid","placeholder"]),e.createVNode(oe,{"is-add-disabled":f!==n.value.length-1,"routing-rules-entity":e.unref(l).SNIS,onAdd:u[0]||(u[0]=a=>p.$emit("add")),onRemove:a=>p.$emit("remove",f)},null,8,["is-add-disabled","routing-rules-entity","onRemove"])]))),128))]),_:1})])}}}),[["__scopeId","data-v-63640996"]]),at={class:"routing-rule-container"},dt=j(e.defineComponent({__name:"RouteFormSourcesFields",props:{modelValue:{type:Array,required:!0}},emits:["add","remove","update:modelValue"],setup(s,{emit:N}){const g=s,i=N,{i18n:{t:c}}=G.useI18n(),n=e.ref([]);return e.watch(g.modelValue,p=>{n.value=[...p]},{immediate:!0,deep:!0}),e.watch(n,p=>{i("update:modelValue",p)},{deep:!0}),(p,u)=>{const S=e.resolveComponent("KLabel"),C=e.resolveComponent("KInput");return e.openBlock(),e.createElementBlock("div",at,[u[1]||(u[1]=e.createElementVNode("hr",null,null,-1)),e.createVNode(S,{info:e.unref(c)("form.fields.sources.tooltip")},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(c)("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(n.value,(x,f)=>(e.openBlock(),e.createElementBlock("div",{key:f,class:"routing-rule-input"},[e.createVNode(C,{modelValue:n.value[f].ip,"onUpdate:modelValue":a=>n.value[f].ip=a,modelModifiers:{trim:!0},"data-testid":`route-form-sources-ip-input-${f+1}`,placeholder:e.unref(c)("form.fields.sources.ip.placeholder")},null,8,["modelValue","onUpdate:modelValue","data-testid","placeholder"]),e.createVNode(C,{modelValue:n.value[f].port,"onUpdate:modelValue":a=>n.value[f].port=a,modelModifiers:{number:!0},"data-testid":`route-form-sources-port-input-${f+1}`,max:"65535",min:"0",placeholder:e.unref(c)("form.fields.sources.port.placeholder"),type:"number"},null,8,["modelValue","onUpdate:modelValue","data-testid","placeholder"]),e.createVNode(oe,{"is-add-disabled":f!==n.value.length-1,"routing-rules-entity":e.unref(l).SOURCES,onAdd:u[0]||(u[0]=a=>p.$emit("add")),onRemove:a=>p.$emit("remove",f)},null,8,["is-add-disabled","routing-rules-entity","onRemove"])]))),128))]),_:1})])}}}),[["__scopeId","data-v-08fcd8c5"]]),ct=j(e.defineComponent({__name:"RouteFormConfigTabs",props:e.mergeModels({routeFlavors:{},tooltips:{}},{modelValue:{required:!0},modelModifiers:{}}),emits:["update:modelValue"],setup(s){const N=e.useModel(s,"modelValue"),g=s,{i18n:{t:i}}=Ie(),c=e.computed(()=>[...g.routeFlavors.traditional?[{hash:`#${_.TRADITIONAL}`,title:i("form.flavors.traditional")}]:[],...g.routeFlavors.expressions?[{hash:`#${_.EXPRESSIONS}`,title:i("form.flavors.expressions")}]:[]]);return(n,p)=>{const u=e.resolveComponent("KTooltip"),S=e.resolveComponent("KTabs");return c.value.length>1?(e.openBlock(),e.createBlock(S,{key:0,modelValue:N.value,"onUpdate:modelValue":p[0]||(p[0]=C=>N.value=C),"data-testid":"route-form-config-tabs",tabs:c.value},e.createSlots({_:2},[n.routeFlavors.traditional?{name:`${e.unref(_).TRADITIONAL}-anchor`,fn:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(i)("form.flavors.traditional"))+" ",1),n.tooltips&&n.tooltips[e.unref(_).TRADITIONAL]?(e.openBlock(),e.createBlock(u,{key:0,class:"route-form-config-tabs-tooltip",text:n.tooltips[e.unref(_).TRADITIONAL],"tooltip-id":"route-form-config-tabs-tooltip-traditional"},{default:e.withCtx(()=>[e.createVNode(e.unref(ee.InfoIcon),{color:e.unref(Ae),size:e.unref(he),tabindex:"0"},null,8,["color","size"])]),_:1},8,["text"])):e.createCommentVNode("",!0)]),key:"0"}:void 0,n.routeFlavors.traditional?{name:e.unref(_).TRADITIONAL,fn:e.withCtx(()=>[e.renderSlot(n.$slots,"before-content",{},void 0,!0),e.renderSlot(n.$slots,e.unref(_).TRADITIONAL,{},void 0,!0)]),key:"1"}:void 0,n.routeFlavors.expressions?{name:`${e.unref(_).EXPRESSIONS}-anchor`,fn:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(i)("form.flavors.expressions"))+" ",1),n.tooltips&&n.tooltips[e.unref(_).EXPRESSIONS]?(e.openBlock(),e.createBlock(u,{key:0,class:"route-form-config-tabs-tooltip",text:n.tooltips[e.unref(_).EXPRESSIONS],"tooltip-id":"route-form-config-tabs-tooltip-expressions"},{default:e.withCtx(()=>[e.createVNode(e.unref(ee.InfoIcon),{color:e.unref(Ae),size:e.unref(he),tabindex:"0"},null,8,["color","size"])]),_:1},8,["text"])):e.createCommentVNode("",!0)]),key:"2"}:void 0,n.routeFlavors.expressions?{name:e.unref(_).EXPRESSIONS,fn:e.withCtx(()=>[e.renderSlot(n.$slots,"before-content",{},void 0,!0),e.renderSlot(n.$slots,e.unref(_).EXPRESSIONS,{},void 0,!0)]),key:"3"}:void 0]),1032,["modelValue","tabs"])):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.renderSlot(n.$slots,"before-content",{},void 0,!0),n.routeFlavors.traditional?e.renderSlot(n.$slots,e.unref(_).TRADITIONAL,{key:0},void 0,!0):n.routeFlavors.expressions?e.renderSlot(n.$slots,e.unref(_).EXPRESSIONS,{key:1},void 0,!0):e.createCommentVNode("",!0)],64))}}}),[["__scopeId","data-v-f1c7a92f"]]),pt=e.defineComponent({__name:"RouteFormExpressionsEditorLoader",props:e.mergeModels({protocol:{},showExpressionsModalEntry:{type:Boolean}},{modelValue:{required:!0},modelModifiers:{}}),emits:e.mergeModels(["notify"],["update:modelValue"]),setup(s,{emit:N}){const{i18n:{t:g}}=G.useI18n(),i={render:()=>e.h("div",g("form.expressions_editor.loading"))},c={render:()=>e.h("div",g("form.expressions_editor.error"))},n=e.defineAsyncComponent({loader:async()=>Promise.resolve().then(()=>xt),loadingComponent:i,errorComponent:c}),p=s,u=N,S=e.ref(te.LOADING),C=e.useModel(s,"modelValue"),x=f=>{C.value=f};return e.onMounted(async()=>{try{await(await import("@kong-ui-public/expressions")).asyncInit,S.value=te.READY}catch(f){S.value=te.ERROR,console.error(f)}}),(f,a)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[S.value===e.unref(te).ERROR?(e.openBlock(),e.createBlock(e.resolveDynamicComponent(c),{key:0,"data-testid":"route-form-expressions-editor-loader-error"})):S.value===e.unref(te).LOADING?(e.openBlock(),e.createBlock(e.resolveDynamicComponent(i),{key:1,"data-testid":"route-form-expressions-editor-loader-loading"})):(e.openBlock(),e.createBlock(e.unref(n),{key:2,modelValue:C.value,"onUpdate:modelValue":a[0]||(a[0]=O=>C.value=O),"hint-text":e.unref(g)("form.expression_playground.supported_protocols_hint"),protocol:p.protocol,"show-expressions-modal-entry":f.showExpressionsModalEntry,onNotify:a[1]||(a[1]=O=>u("notify",O))},{default:e.withCtx(()=>[e.createVNode(e.unref(ee.RocketIcon),{size:e.unref(he)},null,8,["size"]),e.createElementVNode("span",null,e.toDisplayString(e.unref(g)("form.expression_playground.test_link")),1)]),_:1},8,["modelValue","hint-text","protocol","show-expressions-modal-entry"])),e.renderSlot(f.$slots,"after-editor",{expression:{value:C.value,update:x},state:S.value})],64))}}),ft={class:"kong-ui-entities-route-form"},mt={key:1},ut={"data-testid":"no-search-results"},ht={class:"route-form-service-dropdown-item"},gt={class:"select-item-label"},yt={class:"select-item-description"},St={class:"route-form-routing-rules-title-container"},bt={class:"routing-rules-title"},Ct={key:1,class:"route-form-routing-rules-selector-container"},Vt={class:"route-form-routing-rules-selector-options"},kt=["aria-disabled","data-testid","onClick"],Et={class:"route-form-fields-container route-form-advanced-fields-container"},Nt={class:"route-form-routing-rules-title-container"},_t={class:"routing-rules-title"},Tt={class:"route-form-fields-container route-form-advanced-fields-container"},wt=j(e.defineComponent({__name:"RouteForm",props:{config:{type:Object,required:!0,validator:s=>!(!s||!["konnect","kongManager"].includes(s==null?void 0:s.app)||(s==null?void 0:s.app)==="konnect"&&!(s!=null&&s.controlPlaneId)||(s==null?void 0:s.app)==="kongManager"&&typeof(s==null?void 0:s.workspace)!="string"||!(s!=null&&s.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},showTagsFiledUnderAdvanced:{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(s,{expose:N,emit:g}){var $e;const i=s,c=g,n=e.ref(i.routeFlavors.traditional?`#${_.TRADITIONAL}`:i.routeFlavors.expressions?`#${_.EXPRESSIONS}`:""),p=e.computed(()=>{if(n.value)return n.value.substring(1)}),u=e.ref(void 0),S=e.ref(!0),C=e.computed(()=>{if(u.value)return u.value;if(p.value)return p.value;if(i.routeFlavors.traditional)return _.TRADITIONAL;if(i.routeFlavors.expressions)return _.EXPRESSIONS}),{i18nT:x,i18n:f,i18n:{t:a}}=G.useI18n(),O=f.source.form.protocols,H=Te.useRouter(),{axiosInstance:k}=b.useAxios(($e=i.config)==null?void 0:$e.axiosRequestConfig),{getMessageFromError:R}=b.useErrors(),L=e.computed(()=>!(i.hideNameField&&(i.hideServiceField||i.serviceId)&&i.showTagsFiledUnderAdvanced)),D=o=>o.name?`${o.name} - ${o.value}`:o.value,t=e.reactive({routeFlavors:i.routeFlavors,fields:{name:"",protocols:"http,https",https_redirect_status_code:426,strip_path:!0,preserve_host:!1,request_buffering:!0,response_buffering:!0,tags:"",service_id:"",...!i.routeId&&{paths:[""]},regex_priority:0,path_handling:"v0",expression:"",priority:0},isReadonly:!1,errorMessage:""}),q=e.computed(()=>t.fields.protocols.split(",")[0]),J=e.ref([""]),se=e.reactive({name:"",protocols:"http,https",https_redirect_status_code:426,strip_path:!0,preserve_host:!1,request_buffering:!0,response_buffering:!0,tags:"",service_id:"",path_handling:"v0",regex_priority:0,expression:"",priority:0}),A={[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}]},ge=i.config.app==="konnect"||b.useGatewayFeatureSupported({gatewayInfo:i.config.gatewayInfo,supportedRange:{enterprise:["3.0"]}}),ye=[{label:a("form.protocols.grpc"),value:"grpc"},{label:a("form.protocols.grpcs"),value:"grpcs"},{label:a("form.protocols.grpc,grpcs"),value:"grpc,grpcs"},{label:a("form.protocols.http"),value:"http"},{label:a("form.protocols.https"),value:"https"},{label:a("form.protocols.http,https"),value:"http,https"},{label:a("form.protocols.tcp"),value:"tcp"},{label:a("form.protocols.tls"),value:"tls"},{label:a("form.protocols.tls,udp"),value:"tls,udp"},{label:a("form.protocols.tcp,udp"),value:"tcp,udp"},{label:a("form.protocols.tcp,tls"),value:"tcp,tls"},{label:a("form.protocols.tcp,tls,udp"),value:"tcp,tls,udp"},{label:a("form.protocols.tls_passthrough"),value:"tls_passthrough"},{label:a("form.protocols.udp"),value:"udp"},...ge?[{label:a("form.protocols.ws"),value:"ws"},{label:a("form.protocols.wss"),value:"wss"},{label:a("form.protocols.ws,wss"),value:"ws,wss"}]:[]],Se=[{label:"v0",value:"v0"},{label:"v1",value:"v1"}],fe=[{label:"426",value:426},{label:"301",value:301},{label:"302",value:302},{label:"307",value:307},{label:"308",value:308}],K={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]},Y=e.computed(()=>i.routeId?b.EntityBaseFormType.Edit:b.EntityBaseFormType.Create),ne=e.computed(()=>{var o,r,m;return(m=(r=le.form[(o=i.config)==null?void 0:o.app])==null?void 0:r.fetch)==null?void 0:m[i.serviceId?"forGatewayService":"all"].replace(/{serviceId}/gi,i.serviceId||"")}),de=()=>{var o;H.push((o=i.config)==null?void 0:o.cancelRoute)},be=o=>{c("loading",o)},Ce=o=>{c("error",o)},Ve=o=>{W(t)&&(t.fields.methods=A[l.METHODS],o.forEach(r=>{t.fields.methods&&(t.fields.methods[r]=!0)}))},ke=o=>Object.entries(o).map(r=>{var m;return{header:r[0],values:(m=r[1])==null?void 0:m.join()}}),$=o=>o.some(r=>t.fields.protocols.includes(r)),Q=(o,r)=>{if(o===l.PATHS||o===l.HOSTS||o===l.SNIS)return[...r].filter(m=>!!m);if(o===l.SOURCES||o===l.DESTINATIONS)return[...r].filter(m=>!!m.ip).map(m=>({...m,port:!m.port&&m.port!==0?null:m.port}));if(o===l.HEADERS)return[...r].filter(m=>!!m.header)},me=()=>{if(W(t)){const o=Q(l.HEADERS,t.fields.headers||[])||A[l.HEADERS];if(o.length===0)return null;const r={};return o.forEach(m=>{r[m.header]=m.values.split(",")}),r}return null},h=o=>{W(t)&&(o&&o===l.PATHS&&(t.fields.paths?t.fields.paths.push([...A[l.PATHS]][0]):t.fields.paths=[...A[l.PATHS]]),o===l.SNIS&&(t.fields.snis?t.fields.snis.push([...A[l.SNIS]][0]):t.fields.snis=[...A[l.SNIS]]),o===l.HOSTS&&(t.fields.hosts?t.fields.hosts.push([...A[l.HOSTS]][0]):t.fields.hosts=[...A[l.HOSTS]]),o===l.METHODS&&(t.fields.methods||(t.fields.methods={...A[l.METHODS]})),o===l.HEADERS&&(t.fields.headers?t.fields.headers.push({...A[l.HEADERS][0]}):t.fields.headers=[{...A[l.HEADERS][0]}]),o===l.SOURCES&&(t.fields.sources?t.fields.sources.push({...A[l.SOURCES][0]}):t.fields.sources=[{...A[l.SOURCES][0]}]),o===l.DESTINATIONS&&(t.fields.destinations?t.fields.destinations.push({...A[l.DESTINATIONS][0]}):t.fields.destinations=[{...A[l.DESTINATIONS][0]}]))},E=e.computed(()=>{var o;return W(t)?(o=K[t.fields.protocols])==null?void 0:o.filter(r=>!t.fields[r]):!1}),T=async(o,r)=>{if(W(t)){if(typeof r<"u"){let m=[];if(m=t.fields[o],m.splice(r,1),m.length){t.fields[o]=m;return}}await e.nextTick(()=>{delete t.fields[o],o===l.METHODS&&(J.value=[""])})}},B=o=>{var m;return((m=f.source.form.fields[o])==null?void 0:m.label)||""};e.watch(()=>t.fields.protocols,()=>{F()});const F=()=>{const o=Object.keys(A),r=K[t.fields.protocols];Object.keys(t.fields).filter(V=>o.includes(V)).forEach(V=>{r!=null&&r.includes(V)||T(V)})},X=e.computed(()=>{if(W(t)){const o=[];return t.fields.methods&&Object.entries(t.fields.methods).forEach(([r,m])=>{m&&o.push(r)}),o}return[]}),re=e.computed(()=>{var o;return((o=t.fields.protocols)==null?void 0:o.split(","))||[]}),y=e.computed(()=>{const o=Object.keys(A);return!Object.keys(t.fields).filter(m=>o.includes(m)).length}),w=e.computed(()=>{if($(["tls_passthrough"]))return[B(l.SNIS)];const o=K[t.fields.protocols].map(r=>B(r));return[[...o].splice(0,o.length-1).join(", "),o[o.length-1]]}),ue=o=>{var m,V;if(i.routeId){const P=typeof o.expression=="string"&&o.expression.length>0?_.EXPRESSIONS:_.TRADITIONAL;u.value=P,n.value=`#${P}`}(m=o==null?void 0:o.service)!=null&&m.id&&(t.fields.service_id=o.service.id),t.fields.name=(o==null?void 0:o.name)||"";const r=(o==null?void 0:o.tags)||[];t.fields.tags=(r==null?void 0:r.join(", "))||"",t.fields.preserve_host=typeof(o==null?void 0:o.preserve_host)>"u"?!1:o==null?void 0:o.preserve_host,t.fields.https_redirect_status_code=(o==null?void 0:o.https_redirect_status_code)||426,(V=o==null?void 0:o.protocols)!=null&&V.length&&(o.protocols.length>1?t.fields.protocols=o.protocols.join():t.fields.protocols=o.protocols[0]),t.fields.request_buffering=typeof(o==null?void 0:o.request_buffering)>"u"?!0:o==null?void 0:o.request_buffering,t.fields.response_buffering=typeof(o==null?void 0:o.response_buffering)>"u"?!0:o==null?void 0:o.response_buffering,t.fields.strip_path=typeof(o==null?void 0:o.strip_path)>"u"?!0:o==null?void 0:o.strip_path,W(t)&&(t.fields.regex_priority=(o==null?void 0:o.regex_priority)||0,t.fields.path_handling=(o==null?void 0:o.path_handling)||"v0",o!=null&&o.paths&&(t.fields.paths=o.paths),o!=null&&o.snis&&(t.fields.snis=o.snis),o!=null&&o.hosts&&(t.fields.hosts=o.hosts),o!=null&&o.methods&&Ve(o.methods),o!=null&&o.headers&&(t.fields.headers=ke(o.headers)),o!=null&&o.sources&&(t.fields.sources=o.sources),o!=null&&o.destinations&&(t.fields.destinations=o.destinations)),ae(t)&&(t.fields.expression=(o==null?void 0:o.expression)||"",t.fields.priority=(o==null?void 0:o.priority)||0),Object.assign(se,JSON.parse(JSON.stringify(t.fields)))},Oe=e.computed(()=>{var o;switch(C.value){case _.TRADITIONAL:{if(W(t)){const r=t.fields.hosts?!!t.fields.hosts.filter(Boolean).length:null,m=t.fields.paths?!!t.fields.paths.filter(Boolean).length:null,V=t.fields.headers?t.fields.headers.some(({header:v})=>!!v):null,P=t.fields.snis?!!t.fields.snis.filter(Boolean).length:null,Z=t.fields.destinations?t.fields.destinations.some(({ip:v})=>!!v):null,z=t.fields.sources?t.fields.sources.some(({ip:v})=>!!v):null,d=((o=t.fields.methods)==null?void 0:o.CUSTOM)?J.value.some(v=>!!v):Object.values(t.fields.methods||{}).includes(!0);return!!t.fields.protocols&&($(["http"])&&!!(r||d||m||V)||$(["https"])&&!!(r||d||m||V||P)||$(["grpc"])&&!!(r||m||V)||$(["grpcs","wss"])&&!!(r||m||V||P)||$(["udp","tls"])&&!!(Z||z||P)||$(["tcp"])&&!!(Z||z)||$(["tls_passthrough"])&&!!P||$(["ws"])&&!!(r||m||V))}break}case _.EXPRESSIONS:{if(ae(t))return t.fields.expression.length>0;break}}return!0}),De=e.computed(()=>!Fe(t.fields,se)),Ee=e.computed(()=>{var r,m;let o=`${i.config.apiBaseUrl}${le.form[i.config.app][Y.value][i.serviceId?"forGatewayService":"all"]}`;return i.config.app==="konnect"?o=o.replace(/{controlPlaneId}/gi,((r=i.config)==null?void 0:r.controlPlaneId)||"").replace(/{serviceId}/gi,i.serviceId||""):i.config.app==="kongManager"&&(o=o.replace(/\/{workspace}/gi,(m=i.config)!=null&&m.workspace?`/${i.config.workspace}`:"").replace(/{serviceId}/gi,i.serviceId||"")),o=o.replace(/{id}/gi,i.routeId),o});e.watch(()=>t.fields,()=>{c("model-updated",pe.value)},{deep:!0});const ce=o=>o!=null&&o.length?o:null,At=()=>{var o,r;if(W(t)){const m={methods:null,hosts:ce(Q(l.HOSTS,t.fields.hosts||[])),paths:ce(Q(l.PATHS,t.fields.paths||[])),headers:me(),regex_priority:Number(t.fields.regex_priority),path_handling:t.fields.path_handling,sources:ce(Q(l.SOURCES,t.fields.sources||[])),destinations:ce(Q(l.DESTINATIONS,t.fields.destinations||[])),snis:ce(Q(l.SNIS,t.fields.snis||[]))};if((o=X.value)!=null&&o.length&&(m.methods=[...X.value],(r=X.value)!=null&&r.includes("CUSTOM"))){const V=m.methods.indexOf("CUSTOM");V!==-1&&m.methods.splice(V,1),J.value.forEach(P=>{var Z;P&&m.methods&&!((Z=m.methods)!=null&&Z.includes(P))&&m.methods.push(P.toUpperCase())})}return m}},Ot=()=>{if(ae(t))return{expression:t.fields.expression,priority:Number(t.fields.priority)}},pe=e.computed(()=>{var r,m;const o={...!i.hideNameField&&{name:t.fields.name||null},protocols:t.fields.protocols.split(","),https_redirect_status_code:t.fields.https_redirect_status_code,strip_path:$(["grpc","gprcs"])?!1:t.fields.strip_path,preserve_host:t.fields.preserve_host,request_buffering:t.fields.request_buffering,response_buffering:t.fields.response_buffering,tags:(m=(r=t.fields.tags.split(","))==null?void 0:r.map(V=>String(V||"").trim()))==null?void 0:m.filter(V=>V!==""),service:t.fields.service_id?{id:t.fields.service_id}:null};switch(C.value){case _.TRADITIONAL:return{...o,...At()};case _.EXPRESSIONS:return{...o,...Ot()};default:return o}}),Dt=o=>{switch(C.value){case _.TRADITIONAL:{if(!("regex_priority"in o&&"path_handling"in o))return!1;break}case _.EXPRESSIONS:{if(!("priority"in o))return!1;break}}return"service"in o&&"tags"in o&&"protocols"in o},Ne=async o=>{var m;const r=o&&Dt(o)?o:pe.value;try{t.isReadonly=!0;let V;Y.value==="create"?V=await k.post(Ee.value,r):Y.value==="edit"&&(V=((m=i.config)==null?void 0:m.app)==="konnect"?await k.put(Ee.value,r):await k.patch(Ee.value,r)),ue(V==null?void 0:V.data),c("update",V==null?void 0:V.data)}catch(V){t.errorMessage=R(V),c("error",V)}finally{t.isReadonly=!1}},{debouncedQueryChange:$t,loading:Ft,error:Pt,loadItems:Ht,results:Ut}=b.useDebouncedFilter(i.config,le.form[i.config.app].services,void 0,{fetchedItemsKey:"data",searchKeys:["id","name"]}),Mt=e.computed(()=>Pt.value?a("errors.services.fetch"):""),Lt=e.computed(()=>{var o;return(o=Ut.value)==null?void 0:o.map(r=>({label:r.id,name:r.name,value:r.id}))});return e.onBeforeMount(async()=>{!i.hideServiceField&&!i.serviceId?await Ht():t.fields.service_id=i.serviceId}),e.onMounted(()=>{c("model-updated",pe.value)}),N({saveFormData:Ne,getPayload:pe}),(o,r)=>{const m=e.resolveComponent("KInput"),V=e.resolveComponent("KSelect"),P=e.resolveComponent("KAlert"),Z=e.resolveComponent("KCard"),z=e.resolveComponent("KCheckbox"),_e=e.resolveComponent("KCollapse");return e.openBlock(),e.createElementBlock("div",ft,[e.createVNode(e.unref(b.EntityBaseForm),{"can-submit":Oe.value&&De.value,config:s.config,"edit-id":s.routeId,"entity-type":e.unref(b.SupportedEntityType).Route,"error-message":t.errorMessage||Mt.value,"fetch-url":ne.value,"form-fields":pe.value,"is-readonly":t.isReadonly,onCancel:de,"onFetch:error":Ce,"onFetch:success":ue,onLoading:be,onSubmit:Ne},{"form-actions":e.withCtx(()=>[e.renderSlot(o.$slots,"form-actions",{canSubmit:Oe.value&&De.value,cancel:de,submit:Ne},void 0,!0)]),default:e.withCtx(()=>[L.value?(e.openBlock(),e.createBlock(e.unref(b.EntityFormSection),{key:0,description:e.unref(a)("form.sections.general.description"),"hide-info-header":s.hideSectionsInfo,title:e.unref(a)("form.sections.general.title")},{default:e.withCtx(()=>[s.hideNameField?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(m,{key:0,modelValue:t.fields.name,"onUpdate:modelValue":r[0]||(r[0]=d=>t.fields.name=d),modelModifiers:{trim:!0},autocomplete:"off","data-testid":"route-form-name",label:e.unref(a)("form.fields.name.label"),placeholder:e.unref(a)("form.fields.name.placeholder"),readonly:t.isReadonly,type:"text"},null,8,["modelValue","label","placeholder","readonly"])),!s.hideServiceField&&!s.serviceId?(e.openBlock(),e.createElementBlock("div",mt,[e.createVNode(V,{modelValue:t.fields.service_id,"onUpdate:modelValue":r[1]||(r[1]=d=>t.fields.service_id=d),clearable:"","data-testid":"route-form-service-id","enable-filtering":"","filter-function":()=>!0,items:Lt.value,label:e.unref(a)("form.fields.service_id.label"),loading:e.unref(Ft),placeholder:e.unref(a)("form.fields.service_id.placeholder"),readonly:t.isReadonly,"reuse-item-template":"",width:"100%",onQueryChange:e.unref($t)},{loading:e.withCtx(()=>[e.createElementVNode("div",null,e.toDisplayString(e.unref(a)("actions.loading")),1)]),empty:e.withCtx(()=>[e.createElementVNode("div",ut,e.toDisplayString(e.unref(a)("search.no_results")),1)]),"selected-item-template":e.withCtx(({item:d})=>[e.createTextVNode(e.toDisplayString(D(d)),1)]),"item-template":e.withCtx(({item:d})=>[e.createElementVNode("div",ht,[e.createElementVNode("span",gt,e.toDisplayString(d.name),1),e.createElementVNode("span",yt,e.toDisplayString(d.value),1)])]),_:1},8,["modelValue","items","label","loading","placeholder","readonly","onQueryChange"])])):e.createCommentVNode("",!0),s.showTagsFiledUnderAdvanced?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(m,{key:2,modelValue:t.fields.tags,"onUpdate:modelValue":r[2]||(r[2]=d=>t.fields.tags=d),modelModifiers:{trim:!0},autocomplete:"off","data-testid":"route-form-tags",help:e.unref(a)("form.fields.tags.help"),label:e.unref(a)("form.fields.tags.label"),placeholder:e.unref(a)("form.fields.tags.placeholder"),readonly:t.isReadonly,type:"text"},null,8,["modelValue","help","label","placeholder","readonly"]))]),_:1},8,["description","hide-info-header","title"])):e.createCommentVNode("",!0),e.createVNode(e.unref(b.EntityFormSection),{description:e.unref(a)("form.sections.config.description"),"hide-info-header":s.hideSectionsInfo,title:e.unref(a)("form.sections.config.title")},{default:e.withCtx(()=>[e.createVNode(V,{modelValue:t.fields.protocols,"onUpdate:modelValue":r[3]||(r[3]=d=>t.fields.protocols=d),"data-testid":"route-form-protocols",items:ye,label:e.unref(a)("form.fields.protocols.label"),"label-attributes":{info:e.unref(a)("form.fields.protocols.tooltip"),tooltipAttributes:{maxWidth:"400"}},readonly:t.isReadonly,required:"",width:"100%"},null,8,["modelValue","label","label-attributes","readonly"]),e.createVNode(ct,{modelValue:n.value,"onUpdate:modelValue":r[44]||(r[44]=d=>n.value=d),"route-flavors":s.routeFlavors,tooltips:s.configTabTooltips},e.createSlots({_:2},[s.routeFlavors.traditional&&s.routeFlavors.expressions&&(!u.value||u.value!==p.value)?{name:"before-content",fn:e.withCtx(()=>[e.createVNode(P,{appearance:u.value?"warning":"info",class:"route-form-config-type-immutable-alert","data-testid":"route-config-type-immutable-alert"},{default:e.withCtx(()=>[u.value?u.value!==p.value?(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createTextVNode(e.toDisplayString(e.unref(a)("form.warning.cannotChangeFlavor.edit",{format:e.unref(a)(`form.flavors.${u.value}`)})),1)],64)):e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createTextVNode(e.toDisplayString(e.unref(a)("form.warning.cannotChangeFlavor.create")),1)],64))]),_:1},8,["appearance"])]),key:"0"}:void 0,e.unref(W)(t)?{name:"traditional",fn:e.withCtx(()=>[!u.value||u.value===e.unref(_).TRADITIONAL?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[t.fields.protocols?(e.openBlock(),e.createBlock(Z,{key:0},{title:e.withCtx(()=>[e.createElementVNode("div",St,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(re.value,d=>(e.openBlock(),e.createElementBlock("span",{key:d,class:"protocol-title"},e.toDisplayString(d.toUpperCase()),1))),128)),e.createElementVNode("span",bt,e.toDisplayString(e.unref(a)("form.sections.routingRules.title")),1)])]),default:e.withCtx(()=>[y.value?(e.openBlock(),e.createBlock(P,{key:0,appearance:"warning","data-testid":"routing-rules-warning"},{default:e.withCtx(()=>[e.createVNode(e.unref(x),{keypath:"form.warning.rulesMessage"},{protocol:e.withCtx(()=>[e.createElementVNode("b",null,e.toDisplayString(e.unref(O)[t.fields.protocols]),1)]),routingRules:e.withCtx(()=>[e.createVNode(e.unref(x),{keypath:w.value[1]?"form.warning.multipleRules":"form.warning.singleRule"},{routingRules:e.withCtx(()=>[e.createElementVNode("b",null,e.toDisplayString(w.value[0]),1)]),lastRoutingRule:e.withCtx(()=>[e.createElementVNode("b",null,e.toDisplayString(w.value[1]),1)]),_:1},8,["keypath"])]),_:1})]),_:1})):e.createCommentVNode("",!0),e.createVNode(e.TransitionGroup,{name:"appear"},{default:e.withCtx(()=>[t.fields.paths?(e.openBlock(),e.createBlock(st,{key:"paths-container",modelValue:t.fields.paths,"onUpdate:modelValue":r[4]||(r[4]=d=>t.fields.paths=d),onAdd:r[5]||(r[5]=d=>h(e.unref(l).PATHS)),onRemove:r[6]||(r[6]=d=>T(e.unref(l).PATHS,d))},null,8,["modelValue"])):e.createCommentVNode("",!0),t.fields.snis?(e.openBlock(),e.createBlock(it,{key:"snis-container",modelValue:t.fields.snis,"onUpdate:modelValue":r[7]||(r[7]=d=>t.fields.snis=d),onAdd:r[8]||(r[8]=d=>h(e.unref(l).SNIS)),onRemove:r[9]||(r[9]=d=>T(e.unref(l).SNIS,d))},null,8,["modelValue"])):e.createCommentVNode("",!0),t.fields.hosts?(e.openBlock(),e.createBlock(Ze,{key:"hosts-container",modelValue:t.fields.hosts,"onUpdate:modelValue":r[10]||(r[10]=d=>t.fields.hosts=d),onAdd:r[11]||(r[11]=d=>h(e.unref(l).HOSTS)),onRemove:r[12]||(r[12]=d=>T(e.unref(l).HOSTS,d))},null,8,["modelValue"])):e.createCommentVNode("",!0),t.fields.methods?(e.openBlock(),e.createBlock(rt,{key:"methods-container",modelValue:t.fields.methods,"onUpdate:modelValue":r[13]||(r[13]=d=>t.fields.methods=d),"custom-methods":J.value,onRemove:r[14]||(r[14]=d=>T(e.unref(l).METHODS)),onUpdateCustomMethods:r[15]||(r[15]=d=>J.value=d)},null,8,["modelValue","custom-methods"])):e.createCommentVNode("",!0),t.fields.headers?(e.openBlock(),e.createBlock(Qe,{key:"headers-container",modelValue:t.fields.headers,"onUpdate:modelValue":r[16]||(r[16]=d=>t.fields.headers=d),onAdd:r[17]||(r[17]=d=>h(e.unref(l).HEADERS)),onRemove:r[18]||(r[18]=d=>T(e.unref(l).HEADERS,d))},null,8,["modelValue"])):e.createCommentVNode("",!0),t.fields.sources?(e.openBlock(),e.createBlock(dt,{key:"sources-container",modelValue:t.fields.sources,"onUpdate:modelValue":r[19]||(r[19]=d=>t.fields.sources=d),onAdd:r[20]||(r[20]=d=>h(e.unref(l).SOURCES)),onRemove:r[21]||(r[21]=d=>T(e.unref(l).SOURCES,d))},null,8,["modelValue"])):e.createCommentVNode("",!0),t.fields.destinations?(e.openBlock(),e.createBlock(ze,{key:"destinations-container",modelValue:t.fields.destinations,"onUpdate:modelValue":r[22]||(r[22]=d=>t.fields.destinations=d),onAdd:r[23]||(r[23]=d=>h(e.unref(l).DESTINATIONS)),onRemove:r[24]||(r[24]=d=>T(e.unref(l).DESTINATIONS,d))},null,8,["modelValue"])):e.createCommentVNode("",!0)]),_:1}),E.value?(e.openBlock(),e.createElementBlock("div",Ct,[r[45]||(r[45]=e.createElementVNode("hr",null,null,-1)),e.createElementVNode("div",Vt,[e.createElementVNode("ul",null,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(K[t.fields.protocols],d=>(e.openBlock(),e.createElementBlock("li",{key:d},[e.createElementVNode("label",{"aria-disabled":!!t.fields[d],class:e.normalizeClass(["option",{"is-selected":t.fields[d]}]),"data-testid":`routing-rule-${d}`,role:"button",onClick:v=>h(d)},e.toDisplayString(B(d)),11,kt)]))),128))])])])):e.createCommentVNode("",!0)]),_:1})):e.createCommentVNode("",!0),e.createVNode(_e,{modelValue:S.value,"onUpdate:modelValue":r[33]||(r[33]=d=>S.value=d),class:"route-form-advanced-fields-collapse","trigger-alignment":"leading","trigger-label":e.unref(a)("form.viewAdvancedFields")},{default:e.withCtx(()=>[e.createElementVNode("div",Et,[t.fields.paths?(e.openBlock(),e.createBlock(V,{key:0,modelValue:t.fields.path_handling,"onUpdate:modelValue":r[25]||(r[25]=d=>t.fields.path_handling=d),"data-testid":"route-form-path-handling",items:Se,label:e.unref(a)("form.fields.path_handling.label"),"label-attributes":{info:e.unref(a)("form.fields.path_handling.tooltip"),tooltipAttributes:{maxWidth:"400"}},readonly:t.isReadonly,width:"100%"},null,8,["modelValue","label","label-attributes","readonly"])):e.createCommentVNode("",!0),e.createVNode(V,{modelValue:t.fields.https_redirect_status_code,"onUpdate:modelValue":r[26]||(r[26]=d=>t.fields.https_redirect_status_code=d),"data-testid":"route-form-http-redirect-status-code",items:fe,label:e.unref(a)("form.fields.https_redirect_status_code.label"),readonly:t.isReadonly,width:"100%"},null,8,["modelValue","label","readonly"]),e.createVNode(m,{modelValue:t.fields.regex_priority,"onUpdate:modelValue":r[27]||(r[27]=d=>t.fields.regex_priority=d),autocomplete:"off","data-testid":"route-form-regex-priority",label:e.unref(a)("form.fields.regex_priority.label"),readonly:t.isReadonly,type:"number"},null,8,["modelValue","label","readonly"]),s.showTagsFiledUnderAdvanced?(e.openBlock(),e.createBlock(m,{key:1,modelValue:t.fields.tags,"onUpdate:modelValue":r[28]||(r[28]=d=>t.fields.tags=d),modelModifiers:{trim:!0},autocomplete:"off","data-testid":"route-form-tags",help:e.unref(a)("form.fields.tags.help"),label:e.unref(a)("form.fields.tags.label"),placeholder:e.unref(a)("form.fields.tags.placeholder"),readonly:t.isReadonly,type:"text"},null,8,["modelValue","help","label","placeholder","readonly"])):e.createCommentVNode("",!0),$(["http","https","ws","wss","tls","tcp","udp","tls_passthrough"])?(e.openBlock(),e.createBlock(z,{key:2,modelValue:t.fields.strip_path,"onUpdate:modelValue":r[29]||(r[29]=d=>t.fields.strip_path=d),"data-testid":"route-form-strip-path",label:e.unref(a)("form.fields.strip_path.label")},null,8,["modelValue","label"])):e.createCommentVNode("",!0),e.createVNode(z,{modelValue:t.fields.preserve_host,"onUpdate:modelValue":r[30]||(r[30]=d=>t.fields.preserve_host=d),"data-testid":"route-form-preserve-host",label:e.unref(a)("form.fields.preserve_host.label")},null,8,["modelValue","label"]),e.createVNode(z,{modelValue:t.fields.request_buffering,"onUpdate:modelValue":r[31]||(r[31]=d=>t.fields.request_buffering=d),"data-testid":"route-form-request-buffering",label:e.unref(a)("form.fields.request_buffering.label")},null,8,["modelValue","label"]),e.createVNode(z,{modelValue:t.fields.response_buffering,"onUpdate:modelValue":r[32]||(r[32]=d=>t.fields.response_buffering=d),"data-testid":"route-form-response-buffering",label:e.unref(a)("form.fields.response_buffering.label")},null,8,["modelValue","label"])])]),_:1},8,["modelValue","trigger-label"])],64)):e.createCommentVNode("",!0)]),key:"1"}:void 0,e.unref(ae)(t)?{name:"expressions",fn:e.withCtx(()=>[!u.value||u.value===e.unref(_).EXPRESSIONS?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[t.fields.protocols?(e.openBlock(),e.createBlock(Z,{key:0},{title:e.withCtx(()=>[e.createElementVNode("div",Nt,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(re.value,d=>(e.openBlock(),e.createElementBlock("span",{key:d,class:"protocol-title"},e.toDisplayString(d.toUpperCase()),1))),128)),e.createElementVNode("span",_t,e.toDisplayString(e.unref(a)("form.sections.routingExpression.title")),1)])]),default:e.withCtx(()=>[e.createVNode(pt,{modelValue:t.fields.expression,"onUpdate:modelValue":r[34]||(r[34]=d=>t.fields.expression=d),protocol:q.value,"show-expressions-modal-entry":s.showExpressionsModalEntry,onNotify:r[35]||(r[35]=d=>c("notify",d))},{"after-editor":e.withCtx(d=>[e.renderSlot(o.$slots,"after-expressions-editor",{expression:d.expression,state:d.state},void 0,!0)]),_:3},8,["modelValue","protocol","show-expressions-modal-entry"])]),_:3})):e.createCommentVNode("",!0),e.createVNode(_e,{modelValue:S.value,"onUpdate:modelValue":r[43]||(r[43]=d=>S.value=d),class:"route-form-advanced-fields-collapse","trigger-alignment":"leading","trigger-label":e.unref(a)("form.viewAdvancedFields")},{default:e.withCtx(()=>[e.createElementVNode("div",Tt,[e.createVNode(V,{modelValue:t.fields.https_redirect_status_code,"onUpdate:modelValue":r[36]||(r[36]=d=>t.fields.https_redirect_status_code=d),"data-testid":"route-form-http-redirect-status-code",items:fe,label:e.unref(a)("form.fields.https_redirect_status_code.label"),readonly:t.isReadonly,width:"100%"},null,8,["modelValue","label","readonly"]),e.createVNode(m,{modelValue:t.fields.priority,"onUpdate:modelValue":r[37]||(r[37]=d=>t.fields.priority=d),autocomplete:"off","data-testid":"route-form-priority",label:e.unref(a)("form.fields.priority.label"),"label-attributes":{info:e.unref(a)("form.fields.priority.tooltip"),tooltipAttributes:{maxWidth:"400"}},readonly:t.isReadonly,type:"number"},null,8,["modelValue","label","label-attributes","readonly"]),s.showTagsFiledUnderAdvanced?(e.openBlock(),e.createBlock(m,{key:0,modelValue:t.fields.tags,"onUpdate:modelValue":r[38]||(r[38]=d=>t.fields.tags=d),modelModifiers:{trim:!0},autocomplete:"off","data-testid":"route-form-tags",help:e.unref(a)("form.fields.tags.help"),label:e.unref(a)("form.fields.tags.label"),placeholder:e.unref(a)("form.fields.tags.placeholder"),readonly:t.isReadonly,type:"text"},null,8,["modelValue","help","label","placeholder","readonly"])):e.createCommentVNode("",!0),$(["http","https","ws","wss","tls","tcp","udp","tls_passthrough"])?(e.openBlock(),e.createBlock(z,{key:1,modelValue:t.fields.strip_path,"onUpdate:modelValue":r[39]||(r[39]=d=>t.fields.strip_path=d),"data-testid":"route-form-strip-path",label:e.unref(a)("form.fields.strip_path.label")},null,8,["modelValue","label"])):e.createCommentVNode("",!0),e.createVNode(z,{modelValue:t.fields.preserve_host,"onUpdate:modelValue":r[40]||(r[40]=d=>t.fields.preserve_host=d),"data-testid":"route-form-preserve-host",label:e.unref(a)("form.fields.preserve_host.label")},null,8,["modelValue","label"]),e.createVNode(z,{modelValue:t.fields.request_buffering,"onUpdate:modelValue":r[41]||(r[41]=d=>t.fields.request_buffering=d),"data-testid":"route-form-request-buffering",label:e.unref(a)("form.fields.request_buffering.label")},null,8,["modelValue","label"]),e.createVNode(z,{modelValue:t.fields.response_buffering,"onUpdate:modelValue":r[42]||(r[42]=d=>t.fields.response_buffering=d),"data-testid":"route-form-response-buffering",label:e.unref(a)("form.fields.response_buffering.label")},null,8,["modelValue","label"])])]),_:1},8,["modelValue","trigger-label"])],64)):e.createCommentVNode("",!0)]),key:"2"}:void 0]),1032,["modelValue","route-flavors","tooltips"])]),_:3},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-83e76105"]]),Rt={class:"kong-ui-entities-route-entity-config-card"},It={key:2},Bt=e.defineComponent({__name:"RouteConfigCard",props:{config:{type:Object,required:!0,validator:s=>!(!s||!["konnect","kongManager"].includes(s==null?void 0:s.app)||s.app==="konnect"&&!s.controlPlaneId||s.app==="kongManager"&&typeof s.workspace!="string"||!s.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(s,{emit:N}){var H;const g=N,i=s,{axiosInstance:c}=b.useAxios((H=i.config)==null?void 0:H.axiosRequestConfig),{i18n:{t:n},i18nT:p}=G.useI18n(),u=e.ref(""),S=e.ref(""),C=e.ref(!1),x=e.computed(()=>{var k,R;return(R=le.item[(k=i.config)==null?void 0:k.app])==null?void 0:R[i.serviceId?"forGatewayService":"all"].replace(/{serviceId}/gi,i.serviceId)}),f=e.computed(()=>{var k;return(k=le.item[i.config.app])==null?void 0:k.getService}),a=async k=>{var L,D,t;if(u.value=i.serviceId||((L=k==null?void 0:k.service)==null?void 0:L.id),g("fetch:success",k),!u.value)return;let R=`${i.config.apiBaseUrl}${f.value}`;i.config.app==="konnect"?R=R.replace(/{controlPlaneId}/gi,((D=i.config)==null?void 0:D.controlPlaneId)||"").replace(/{serviceId}/gi,u.value||""):i.config.app==="kongManager"&&(R=R.replace(/\/{workspace}/gi,(t=i.config)!=null&&t.workspace?`/${i.config.workspace}`:"").replace(/{serviceId}/gi,u.value||""));try{C.value=!0;const{data:q}=await c.get(R);S.value=(q==null?void 0:q.name)||(q==null?void 0:q.id)}catch(q){g("fetch:error",q)}finally{C.value=!1}},O=e.ref({id:{},name:{tooltip:n("form.fields.name.tooltip")},created_at:{},updated_at:{},service:{label:n("form.fields.service.label"),section:b.ConfigurationSchemaSection.Basic,tooltip:n("form.fields.service.tooltip"),order:5},tags:{tooltip:n("form.fields.tags.tooltip"),order:6},protocols:{section:b.ConfigurationSchemaSection.Basic,type:b.ConfigurationSchemaType.BadgeTag,order:7},paths:{section:b.ConfigurationSchemaSection.Basic,tooltip:n("form.fields.paths.tooltip"),type:b.ConfigurationSchemaType.CopyBadge,order:8},hosts:{section:b.ConfigurationSchemaSection.Basic,tooltip:n("form.fields.hosts.tooltipConfig"),type:b.ConfigurationSchemaType.CopyBadge,order:9},snis:{label:n("form.fields.snis.label"),tooltip:n("form.fields.snis.tooltip"),order:10},headers:{section:b.ConfigurationSchemaSection.Basic,order:11},methods:{section:b.ConfigurationSchemaSection.Basic,tooltip:n("form.fields.methods.tooltip"),type:b.ConfigurationSchemaType.BadgeMethod,order:12},sources:{section:b.ConfigurationSchemaSection.Basic,tooltip:n("form.fields.sources.tooltip"),type:b.ConfigurationSchemaType.JsonArray,order:13},destinations:{section:b.ConfigurationSchemaSection.Basic,tooltip:n("form.fields.destinations.tooltip"),type:b.ConfigurationSchemaType.JsonArray,order:14},https_redirect_status_code:{order:1},regex_priority:{tooltip:n("form.fields.regex_priority.tooltip"),order:2},strip_path:{order:3},preserve_host:{order:4},request_buffering:{tooltip:n("form.fields.request_buffering.tooltip"),order:5},response_buffering:{tooltip:n("form.fields.response_buffering.tooltip"),order:6},path_handling:{tooltip:n("form.fields.path_handling.tooltipConfig"),order:7}});return(k,R)=>{const L=e.resolveComponent("KSkeleton");return e.openBlock(),e.createElementBlock("div",Rt,[e.createVNode(e.unref(b.EntityBaseConfigCard),{config:s.config,"config-card-doc":s.configCardDoc,"config-schema":O.value,"entity-type":e.unref(b.SupportedEntityType).Route,"fetch-url":x.value,"hide-title":s.hideTitle,"onFetch:error":R[0]||(R[0]=D=>k.$emit("fetch:error",D)),"onFetch:success":a,onLoading:R[1]||(R[1]=D=>k.$emit("loading",D))},{"https_redirect_status_code-label-tooltip":e.withCtx(()=>[e.createVNode(e.unref(p),{keypath:"form.fields.https_redirect_status_code.tooltip",scope:"global"},{code1:e.withCtx(()=>[e.createElementVNode("code",null,e.toDisplayString(e.unref(n)("form.fields.https_redirect_status_code.code1")),1)]),code2:e.withCtx(()=>[e.createElementVNode("code",null,e.toDisplayString(e.unref(n)("form.fields.https_redirect_status_code.code2")),1)]),code3:e.withCtx(()=>[e.createElementVNode("code",null,e.toDisplayString(e.unref(n)("form.fields.https_redirect_status_code.code3")),1)]),code4:e.withCtx(()=>[e.createElementVNode("code",null,e.toDisplayString(e.unref(n)("form.fields.https_redirect_status_code.code4")),1)]),_:1})]),"regex_priority-label-tooltip":e.withCtx(()=>[e.createVNode(e.unref(p),{keypath:"form.fields.regex_priority.tooltip",scope:"global"},{code1:e.withCtx(()=>[e.createElementVNode("code",null,e.toDisplayString(e.unref(n)("form.fields.regex_priority.code1")),1)]),code2:e.withCtx(()=>[e.createElementVNode("code",null,e.toDisplayString(e.unref(n)("form.fields.regex_priority.code2")),1)]),_:1})]),"protocols-label-tooltip":e.withCtx(()=>[e.createVNode(e.unref(p),{keypath:"form.fields.protocols.tooltipConfig",scope:"global"},{code1:e.withCtx(()=>[e.createElementVNode("code",null,e.toDisplayString(e.unref(n)("form.fields.protocols.code1")),1)]),code2:e.withCtx(()=>[e.createElementVNode("code",null,e.toDisplayString(e.unref(n)("form.fields.protocols.code2")),1)]),code3:e.withCtx(()=>[e.createElementVNode("code",null,e.toDisplayString(e.unref(n)("form.fields.protocols.code3")),1)]),code4:e.withCtx(()=>[e.createElementVNode("code",null,e.toDisplayString(e.unref(n)("form.fields.protocols.code4")),1)]),code5:e.withCtx(()=>[e.createElementVNode("code",null,e.toDisplayString(e.unref(n)("form.fields.protocols.code5")),1)]),_:1})]),"headers-label-tooltip":e.withCtx(()=>[e.createVNode(e.unref(p),{keypath:"form.fields.headers.tooltipConfig",scope:"global"},{code1:e.withCtx(()=>[e.createElementVNode("code",null,e.toDisplayString(e.unref(n)("form.fields.headers.code1")),1)]),code2:e.withCtx(()=>[e.createElementVNode("code",null,e.toDisplayString(e.unref(n)("form.fields.headers.code2")),1)]),code3:e.withCtx(()=>[e.createElementVNode("code",null,e.toDisplayString(e.unref(n)("form.fields.headers.code3")),1)]),code4:e.withCtx(()=>[e.createElementVNode("code",null,e.toDisplayString(e.unref(n)("form.fields.headers.code4")),1)]),_:1})]),"strip_path-label-tooltip":e.withCtx(()=>[e.createVNode(e.unref(p),{keypath:"form.fields.strip_path.tooltip",scope:"global"},{code1:e.withCtx(()=>[e.createElementVNode("code",null,e.toDisplayString(e.unref(n)("form.fields.headers.code1")),1)]),_:1})]),"preserve_host-label-tooltip":e.withCtx(()=>[e.createVNode(e.unref(p),{keypath:"form.fields.preserve_host.tooltip",scope:"global"},{code1:e.withCtx(()=>[e.createElementVNode("code",null,e.toDisplayString(e.unref(n)("form.fields.preserve_host.code1")),1)]),code2:e.withCtx(()=>[e.createElementVNode("code",null,e.toDisplayString(e.unref(n)("form.fields.preserve_host.code2")),1)]),code3:e.withCtx(()=>[e.createElementVNode("code",null,e.toDisplayString(e.unref(n)("form.fields.preserve_host.code3")),1)]),code4:e.withCtx(()=>[e.createElementVNode("code",null,e.toDisplayString(e.unref(n)("form.fields.preserve_host.code4")),1)]),code5:e.withCtx(()=>[e.createElementVNode("code",null,e.toDisplayString(e.unref(n)("form.fields.preserve_host.code5")),1)]),_:1})]),service:e.withCtx(({row:D})=>[C.value?(e.openBlock(),e.createBlock(L,{key:0,"data-testid":"service-name-loader",type:"spinner"})):D.value&&D.value.id===u.value&&S.value?(e.openBlock(),e.createBlock(e.unref(b.InternalLinkItem),{key:1,item:{key:D.value.id,value:S.value,type:e.unref(b.ConfigurationSchemaType).LinkInternal},onNavigationClick:()=>k.$emit("navigation-click",D.value.id,"services")},null,8,["item","onNavigationClick"])):(e.openBlock(),e.createElementBlock("div",It,e.toDisplayString("-")))]),_:1},8,["config","config-card-doc","config-schema","entity-type","fetch-url","hide-title"])])}}}),xt=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(s,{emit:N}){const g=s,i=e.useModel(s,"modelValue"),c=N,n=e.ref(!1),p=e.computed(()=>ie.PROTOCOL_TO_SCHEMA[g.protocol]),u=e.computed(()=>ie.HTTP_BASED_PROTOCOLS.includes(g.protocol??"")),S=e.computed(()=>u.value?void 0:`${g.hintText}${ie.HTTP_BASED_PROTOCOLS}`),C=a=>{i.value=a,n.value=!1},x=a=>{c("notify",a)},f=()=>{u.value&&(n.value=!0)};return(a,O)=>{const H=e.resolveComponent("KTooltip");return e.openBlock(),e.createElementBlock(e.Fragment,null,[p.value!==void 0?(e.openBlock(),e.createBlock(e.unref(ie.ExpressionsEditor),{key:0,modelValue:i.value,"onUpdate:modelValue":O[0]||(O[0]=k=>i.value=k),schema:p.value},null,8,["modelValue","schema"])):e.createCommentVNode("",!0),e.createVNode(H,{placement:"bottom-start",text:S.value},{default:e.withCtx(()=>[a.showExpressionsModalEntry?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass({disabled:!u.value,"route-form-open-in-playground":!0}),"data-testid":"open-router-playground",onClick:f},[e.renderSlot(a.$slots,"default")],2)):e.createCommentVNode("",!0)]),_:3},8,["text"]),a.showExpressionsModalEntry&&u.value?(e.openBlock(),e.createBlock(e.unref(ie.RouterPlaygroundModal),{key:1,"initial-expression":i.value,"is-visible":n.value,onCancel:O[1]||(O[1]=k=>n.value=!1),onCommit:C,onNotify:x},null,8,["initial-expression","is-visible"])):e.createCommentVNode("",!0)],64)}}})},Symbol.toStringTag,{value:"Module"}));I.ExpressionsEditorState=te,I.Methods=Be,I.RouteConfigCard=Bt,I.RouteFlavor=_,I.RouteForm=wt,I.RouteList=je,I.RoutingRulesEntities=l,I.stateHasExpressionsFlavor=ae,I.stateHasTraditionalFlavor=W,Object.defineProperty(I,Symbol.toStringTag,{value:"Module"})});
1
+ (function(I,e){typeof exports=="object"&&typeof module<"u"?e(exports,require("vue"),require("vue-router"),require("@kong/kongponents"),require("@kong/icons"),require("@kong-ui-public/entities-shared"),require("@kong-ui-public/i18n"),require("lodash.isequal"),require("@kong-ui-public/expressions")):typeof define=="function"&&define.amd?define(["exports","vue","vue-router","@kong/kongponents","@kong/icons","@kong-ui-public/entities-shared","@kong-ui-public/i18n","lodash.isequal","@kong-ui-public/expressions"],e):(I=typeof globalThis<"u"?globalThis:I||self,e(I["kong-ui-public-entities-routes"]={},I.Vue,I.VueRouter,I.Kongponents,I.KongIcons,I["kong-ui-public-entities-shared"],I["kong-ui-public-i18n"],I.isEqual,I["kong-ui-public-expressions"]))})(this,function(I,e,Te,we,ee,b,Re,Fe,ie){"use strict";const Pe={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",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."}}},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 Ie(){const s=Re.createI18n("en-us",Pe);return{i18n:s,i18nT:Re.i18nTComponent(s)}}const G={useI18n:Ie},U="/v2/control-planes/{controlPlaneId}/core-entities",M="/{workspace}",le={list:{konnect:{all:`${U}/routes`,forGatewayService:`${U}/services/{serviceId}/routes`},kongManager:{all:`${M}/routes`,forGatewayService:`${M}/services/{serviceId}/routes`}},form:{konnect:{services:`${U}/services`,create:{all:`${U}/routes`,forGatewayService:`${U}/services/{serviceId}/routes`},fetch:{all:`${U}/routes/{id}`,forGatewayService:`${U}/services/{serviceId}/routes/{id}`},edit:{all:`${U}/routes/{id}`,forGatewayService:`${U}/services/{serviceId}/routes/{id}`}},kongManager:{services:`${M}/services`,create:{all:`${M}/routes`,forGatewayService:`${M}/services/{serviceId}/routes`},fetch:{all:`${M}/routes/{id}`,forGatewayService:`${M}/services/{serviceId}/routes/{id}`},edit:{all:`${M}/routes/{id}`,forGatewayService:`${M}/services/{serviceId}/routes/{id}`}}},item:{konnect:{getService:`${U}/services/{serviceId}`,all:`${U}/routes/{id}`,forGatewayService:`${U}/services/{serviceId}/routes/{id}`},kongManager:{getService:`${M}/services/{serviceId}`,all:`${M}/routes/{id}`,forGatewayService:`${M}/services/{serviceId}/routes/{id}`}}},He={class:"kong-ui-entities-routes-list"},Ue={key:1},Me={key:1},Le={key:1},qe={key:1},Ke={class:"route-list-cell-expression"},Ge=e.defineComponent({__name:"RouteList",props:{config:{type:Object,required:!0,validator:s=>!(!s||!["konnect","kongManager"].includes(s==null?void 0:s.app)||!s.createRoute||!s.getViewRoute||!s.getEditRoute||s.app==="kongManager"&&!s.isExactMatch&&!s.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}},emits:["error","copy:success","copy:error","delete:success"],setup(s,{emit:N}){var me;const g=N,i=s,{i18n:{t:c,formatUnixTimeStamp:n}}=G.useI18n(),p=Te.useRouter(),{axiosInstance:u}=b.useAxios((me=i.config)==null?void 0:me.axiosRequestConfig),S=e.ref(1),C=e.computed(()=>i.config.app!=="kongManager"||!!i.config.disableSorting),x={name:{label:c("routes.list.table_headers.name"),searchable:!0,sortable:!0,hidable:!1},protocols:{label:c("routes.list.table_headers.protocols"),searchable:!0},...!i.hideTraditionalColumns&&{hosts:{label:c("routes.list.table_headers.hosts"),searchable:!0},methods:{label:c("routes.list.table_headers.methods"),searchable:!0},paths:{label:c("routes.list.table_headers.paths"),searchable:!0}},...i.hasExpressionColumn&&{expression:{label:c("routes.list.table_headers.expression"),tooltip:!0}},tags:{label:c("routes.list.table_headers.tags"),sortable:!1},updated_at:{label:c("routes.list.table_headers.updated_at"),sortable:!0},created_at:{label:c("routes.list.table_headers.created_at"),sortable:!0}},f={columnVisibility:{created_at:!1}},a=x,O=e.computed(()=>{var E,T,B,F;let h=`${i.config.apiBaseUrl}${le.list[i.config.app][i.config.serviceId?"forGatewayService":"all"]}`;return i.config.app==="konnect"?h=h.replace(/{controlPlaneId}/gi,((E=i.config)==null?void 0:E.controlPlaneId)||"").replace(/{serviceId}/gi,((T=i.config)==null?void 0:T.serviceId)||""):i.config.app==="kongManager"&&(h=h.replace(/\/{workspace}/gi,(B=i.config)!=null&&B.workspace?`/${i.config.workspace}`:"").replace(/{serviceId}/gi,((F=i.config)==null?void 0:F.serviceId)||"")),h}),H=e.ref(""),k=e.computed(()=>{const h=i.config.app==="konnect"||i.config.isExactMatch;if(h)return{isExactMatch:h,placeholder:c(`search.placeholder.${i.config.app}`)};const{name:E,protocols:T,hosts:B,methods:F,paths:X,expression:re}=x,y={name:E,protocols:T,hosts:B,methods:F,paths:X,...i.hasExpressionColumn&&{expression:re}};return{isExactMatch:h,fields:y,schema:i.config.filterSchema}}),{fetcher:R,fetcherState:L}=b.useFetcher(i.config,O.value),D=h=>h.headerKey==="expression"?{style:{maxWidth:"250px",overflowX:"hidden",textOverflow:"ellipsis"}}:{},t=()=>{H.value=""},q=()=>{S.value++},J=e.ref(null),se=e.ref(!1),A=(h,E)=>{const T=h.id;if(!E(T)){g("copy:error",{entity:h,field:"id",message:c("errors.copy")});return}g("copy:success",{entity:h,field:"id",message:c("copy.success",{val:T})})},ge=(h,E)=>{const T=JSON.stringify(h);if(!E(T)){g("copy:error",{entity:h,message:c("errors.copy")});return}g("copy:success",{entity:h,message:c("copy.success_brief")})},ye=async h=>{var T;await((T=i.canRetrieve)==null?void 0:T.call(i,h))&&p.push(i.config.getViewRoute(h.id))},Se=h=>({label:c("actions.view"),to:i.config.getViewRoute(h)}),fe=h=>({label:c("actions.edit"),to:i.config.getEditRoute(h)}),K=e.ref(void 0),Y=e.ref(!1),ne=e.ref(!1),de=e.ref(""),be=b.useDeleteUrlBuilder(i.config,O.value),Ce=h=>{K.value=h,Y.value=!0},Ve=()=>{Y.value=!1},ke=async()=>{var h,E,T;if((h=K.value)!=null&&h.id){ne.value=!0;try{await u.delete(be(K.value.id)),ne.value=!1,Y.value=!1,S.value++,g("delete:success",K.value)}catch(B){de.value=((T=(E=B.response)==null?void 0:E.data)==null?void 0:T.message)||B.message||c("errors.delete"),g("error",B)}finally{ne.value=!1}}},$=e.ref(!1);e.watch(L,h=>{var E,T,B,F;if(Array.isArray((E=h==null?void 0:h.response)==null?void 0:E.data)&&($.value=h.response.data.length>0),h.status===b.FetcherStatus.NoRecords?se.value=!0:se.value=!1,h.status===b.FetcherStatus.Error){J.value={title:c("errors.general")},(F=(B=(T=h.error)==null?void 0:T.response)==null?void 0:B.data)!=null&&F.message&&(J.value.message=h.error.response.data.message),g("error",h.error);return}J.value=null});const Q=e.ref({ctaPath:i.config.createRoute,ctaText:void 0,message:`${c("routes.list.empty_state.description")}${i.config.additionMessageForEmptyState?` ${i.config.additionMessageForEmptyState}`:""}`,title:c("routes.title")});return e.onBeforeMount(async()=>{await i.canCreate()&&(Q.value.title=c("routes.list.empty_state.title"),Q.value.ctaText=c("actions.create"))}),(h,E)=>{const T=e.resolveComponent("KButton"),B=e.resolveComponent("KBadge"),F=e.resolveComponent("KTruncate"),X=e.resolveComponent("KDropdownItem"),re=e.resolveComponent("KClipboardProvider");return e.openBlock(),e.createElementBlock("div",He,[e.createVNode(e.unref(b.EntityBaseTable),{"cache-identifier":s.cacheIdentifier,"cell-attributes":D,"default-table-preferences":f,"disable-sorting":C.value,"empty-state-options":Q.value,"enable-entity-actions":"","error-message":J.value,fetcher:e.unref(R),"fetcher-cache-key":S.value,"hide-toolbar":se.value,"pagination-type":"offset","preferences-storage-key":"kong-ui-entities-routes-list",query:H.value,"table-headers":e.unref(a),title:s.title,"title-tag":s.titleTag,onClearSearchInput:t,"onClick:row":E[6]||(E[6]=y=>ye(y)),onSort:q},{"toolbar-filter":e.withCtx(()=>[e.createVNode(e.unref(b.EntityFilter),{modelValue:H.value,"onUpdate:modelValue":E[0]||(E[0]=y=>H.value=y),config:k.value},null,8,["modelValue","config"])]),"toolbar-button":e.withCtx(()=>[(e.openBlock(),e.createBlock(e.Teleport,{disabled:!s.useActionOutside,to:"#kong-ui-app-page-header-action-button"},[e.createVNode(e.unref(b.PermissionsWrapper),{"auth-function":()=>s.canCreate()},{default:e.withCtx(()=>[e.withDirectives(e.createVNode(T,{appearance:"primary","data-testid":"toolbar-add-route",size:s.useActionOutside?"medium":"large",to:s.config.createRoute},{default:e.withCtx(()=>[e.createVNode(e.unref(ee.AddIcon)),e.createTextVNode(" "+e.toDisplayString(e.unref(c)("routes.list.toolbar_actions.new_route")),1)]),_:1},8,["size","to"]),[[e.vShow,$.value]])]),_:1},8,["auth-function"])],8,["disabled"]))]),name:e.withCtx(({rowValue:y})=>[e.createElementVNode("b",null,e.toDisplayString(y??"-"),1)]),protocols:e.withCtx(({rowValue:y})=>[e.createVNode(F,null,{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(y,w=>(e.openBlock(),e.createBlock(B,{key:w,appearance:"neutral",onClick:E[1]||(E[1]=e.withModifiers(()=>{},["stop"]))},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(w),1)]),_:2},1024))),128))]),_:2},1024)]),hosts:e.withCtx(({rowValue:y})=>[(y==null?void 0:y.length)>0?(e.openBlock(),e.createBlock(F,{key:0},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(y,w=>(e.openBlock(),e.createBlock(B,{key:w,appearance:"neutral",tooltip:w,"truncation-tooltip":"",onClick:E[2]||(E[2]=e.withModifiers(()=>{},["stop"]))},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(w),1)]),_:2},1032,["tooltip"]))),128))]),_:2},1024)):(e.openBlock(),e.createElementBlock("span",Ue,"-"))]),methods:e.withCtx(({rowValue:y})=>[(y==null?void 0:y.length)>0?(e.openBlock(),e.createBlock(F,{key:0},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(y,w=>(e.openBlock(),e.createBlock(B,{key:w,appearance:Object.values(e.unref(we.BadgeMethodAppearances)).includes(w.toLowerCase())?w.toLowerCase():"custom",onClick:E[3]||(E[3]=e.withModifiers(()=>{},["stop"]))},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(w),1)]),_:2},1032,["appearance"]))),128))]),_:2},1024)):(e.openBlock(),e.createElementBlock("span",Me,"-"))]),paths:e.withCtx(({rowValue:y})=>[(y==null?void 0:y.length)>0?(e.openBlock(),e.createBlock(F,{key:0},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(y,w=>(e.openBlock(),e.createBlock(B,{key:w,appearance:"neutral",tooltip:w,"truncation-tooltip":"",onClick:E[4]||(E[4]=e.withModifiers(()=>{},["stop"]))},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(w),1)]),_:2},1032,["tooltip"]))),128))]),_:2},1024)):(e.openBlock(),e.createElementBlock("span",Le,"-"))]),tags:e.withCtx(({rowValue:y})=>[(y==null?void 0:y.length)>0?(e.openBlock(),e.createBlock(F,{key:0},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(y,w=>(e.openBlock(),e.createBlock(B,{key:w,onClick:E[5]||(E[5]=e.withModifiers(()=>{},["stop"]))},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(w),1)]),_:2},1024))),128))]),_:2},1024)):(e.openBlock(),e.createElementBlock("span",qe,"-"))]),expression:e.withCtx(({rowValue:y})=>[e.createElementVNode("span",Ke,e.toDisplayString(y||"-"),1)]),created_at:e.withCtx(({rowValue:y})=>[e.createTextVNode(e.toDisplayString(e.unref(n)(y)),1)]),updated_at:e.withCtx(({rowValue:y})=>[e.createTextVNode(e.toDisplayString(e.unref(n)(y)),1)]),actions:e.withCtx(({row:y})=>[e.createVNode(re,null,{default:e.withCtx(({copyToClipboard:w})=>[e.createVNode(X,{"data-testid":"action-entity-copy-id",onClick:ue=>A(y,w)},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(c)("actions.copy_id")),1)]),_:2},1032,["onClick"])]),_:2},1024),e.createVNode(re,null,{default:e.withCtx(({copyToClipboard:w})=>[e.createVNode(X,{"data-testid":"action-entity-copy-json",onClick:ue=>ge(y,w)},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(c)("actions.copy_json")),1)]),_:2},1032,["onClick"])]),_:2},1024),e.createVNode(e.unref(b.PermissionsWrapper),{"auth-function":()=>s.canRetrieve(y)},{default:e.withCtx(()=>[e.createVNode(X,{"data-testid":"action-entity-view","has-divider":"",item:Se(y.id)},null,8,["item"])]),_:2},1032,["auth-function"]),e.createVNode(e.unref(b.PermissionsWrapper),{"auth-function":()=>s.canEdit(y)},{default:e.withCtx(()=>[e.createVNode(X,{"data-testid":"action-entity-edit",item:fe(y.id)},null,8,["item"])]),_:2},1032,["auth-function"]),e.createVNode(e.unref(b.PermissionsWrapper),{"auth-function":()=>s.canDelete(y)},{default:e.withCtx(()=>[e.createVNode(X,{danger:"","data-testid":"action-entity-delete","has-divider":"",onClick:w=>Ce(y)},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(c)("actions.delete")),1)]),_:2},1032,["onClick"])]),_:2},1032,["auth-function"])]),_:1},8,["cache-identifier","disable-sorting","empty-state-options","error-message","fetcher","fetcher-cache-key","hide-toolbar","query","table-headers","title","title-tag"]),e.createVNode(e.unref(b.EntityDeleteModal),{"action-pending":ne.value,description:e.unref(c)("delete.description"),"entity-name":K.value&&(K.value.name||K.value.id),"entity-type":e.unref(b.EntityTypes).Route,error:de.value,title:e.unref(c)("delete.title"),visible:Y.value,onCancel:Ve,onProceed:ke},null,8,["action-pending","description","entity-name","entity-type","error","title","visible"])])}}}),j=(s,N)=>{const g=s.__vccOpts||s;for(const[i,c]of N)g[i]=c;return g},je=j(Ge,[["__scopeId","data-v-cb29085c"]]);var Be=(s=>(s.GET="GET",s.PUT="PUT",s.POST="POST",s.PATCH="PATCH",s.DELETE="DELETE",s.OPTIONS="OPTIONS",s.HEAD="HEAD",s.CONNECT="CONNECT",s.TRACE="TRACE",s.CUSTOM="CUSTOM",s))(Be||{}),_=(s=>(s.TRADITIONAL="traditional",s.EXPRESSIONS="expressions",s))(_||{}),l=(s=>(s.PATHS="paths",s.SNIS="snis",s.HOSTS="hosts",s.METHODS="methods",s.HEADERS="headers",s.SOURCES="sources",s.DESTINATIONS="destinations",s.CUSTOM_METHOD="custom-method",s))(l||{}),te=(s=>(s.LOADING="loading",s.ERROR="error",s.READY="ready",s))(te||{});const W=s=>s.routeFlavors.traditional===!0,ae=s=>s.routeFlavors.expressions===!0,xe="#d60027",Ae="#6c7489",he="16px",We={class:"routing-rules-entities-controls-container"},oe=j(e.defineComponent({__name:"RoutingRulesEntitiesControls",props:{routingRulesEntity:{type:String,required:!0},isAddDisabled:{type:Boolean,default:!1}},emits:["remove","add"],setup(s){return(N,g)=>{const i=e.resolveComponent("KButton");return e.openBlock(),e.createElementBlock("div",We,[e.createVNode(i,{appearance:"tertiary",class:"remove-button","data-testid":`remove-${s.routingRulesEntity}`,icon:"",onClick:g[0]||(g[0]=c=>N.$emit("remove"))},{default:e.withCtx(()=>[e.createVNode(e.unref(ee.TrashIcon),{color:e.unref(xe)},null,8,["color"])]),_:1},8,["data-testid"]),e.createVNode(i,{appearance:"tertiary","data-testid":`add-${s.routingRulesEntity}`,disabled:s.isAddDisabled,icon:"",onClick:g[1]||(g[1]=c=>N.$emit("add"))},{default:e.withCtx(()=>[e.createVNode(e.unref(ee.AddIcon))]),_:1},8,["data-testid","disabled"])])}}}),[["__scopeId","data-v-e024298d"]]),Xe={class:"routing-rule-container"},ze=j(e.defineComponent({__name:"RouteFormDestinationsFields",props:{modelValue:{type:Array,required:!0}},emits:["add","remove","update:modelValue"],setup(s,{emit:N}){const g=s,i=N,{i18n:{t:c}}=G.useI18n(),n=e.ref([]);return e.watch(g.modelValue,p=>{n.value=[...p]},{immediate:!0,deep:!0}),e.watch(n,p=>{i("update:modelValue",p)},{deep:!0}),(p,u)=>{const S=e.resolveComponent("KLabel"),C=e.resolveComponent("KInput");return e.openBlock(),e.createElementBlock("div",Xe,[u[1]||(u[1]=e.createElementVNode("hr",null,null,-1)),e.createVNode(S,{info:e.unref(c)("form.fields.destinations.tooltip")},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(c)("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(n.value,(x,f)=>(e.openBlock(),e.createElementBlock("div",{key:f,class:"routing-rule-input"},[e.createVNode(C,{modelValue:n.value[f].ip,"onUpdate:modelValue":a=>n.value[f].ip=a,modelModifiers:{trim:!0},"data-testid":`route-form-destinations-ip-input-${f+1}`,placeholder:e.unref(c)("form.fields.destinations.ip.placeholder")},null,8,["modelValue","onUpdate:modelValue","data-testid","placeholder"]),e.createVNode(C,{modelValue:n.value[f].port,"onUpdate:modelValue":a=>n.value[f].port=a,modelModifiers:{number:!0},"data-testid":`route-form-destinations-port-input-${f+1}`,max:"65535",min:"0",placeholder:e.unref(c)("form.fields.destinations.port.placeholder"),type:"number"},null,8,["modelValue","onUpdate:modelValue","data-testid","placeholder"]),e.createVNode(oe,{"is-add-disabled":f!==n.value.length-1,"routing-rules-entity":e.unref(l).DESTINATIONS,onAdd:u[0]||(u[0]=a=>p.$emit("add")),onRemove:a=>p.$emit("remove",f)},null,8,["is-add-disabled","routing-rules-entity","onRemove"])]))),128))]),_:1})])}}}),[["__scopeId","data-v-d41b39fd"]]),Je={class:"routing-rule-container"},Qe=j(e.defineComponent({__name:"RouteFormHeadersFields",props:{modelValue:{type:Array,required:!0}},emits:["add","remove","update:modelValue"],setup(s,{emit:N}){const g=s,i=N,{i18n:{t:c}}=G.useI18n(),n=e.ref([]);return e.watch(g.modelValue,p=>{n.value=[...p]},{immediate:!0,deep:!0}),e.watch(n,p=>{i("update:modelValue",p)},{deep:!0}),(p,u)=>{const S=e.resolveComponent("KLabel"),C=e.resolveComponent("KInput");return e.openBlock(),e.createElementBlock("div",Je,[u[1]||(u[1]=e.createElementVNode("hr",null,null,-1)),e.createVNode(S,{info:e.unref(c)("form.fields.headers.tooltip")},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(c)("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(n.value,(x,f)=>(e.openBlock(),e.createElementBlock("div",{key:f,class:"routing-rule-input"},[e.createVNode(C,{modelValue:n.value[f].header,"onUpdate:modelValue":a=>n.value[f].header=a,modelModifiers:{trim:!0},"data-testid":`route-form-headers-name-input-${f+1}`,placeholder:e.unref(c)("form.fields.headers.name.placeholder")},null,8,["modelValue","onUpdate:modelValue","data-testid","placeholder"]),e.createVNode(C,{modelValue:n.value[f].values,"onUpdate:modelValue":a=>n.value[f].values=a,modelModifiers:{trim:!0},"data-testid":`route-form-headers-values-input-${f+1}`,placeholder:e.unref(c)("form.fields.headers.values.placeholder")},null,8,["modelValue","onUpdate:modelValue","data-testid","placeholder"]),e.createVNode(oe,{"is-add-disabled":f!==n.value.length-1,"routing-rules-entity":e.unref(l).HEADERS,onAdd:u[0]||(u[0]=a=>p.$emit("add")),onRemove:a=>p.$emit("remove",f)},null,8,["is-add-disabled","routing-rules-entity","onRemove"])]))),128))]),_:1})])}}}),[["__scopeId","data-v-ca0bb10b"]]),Ye={class:"routing-rule-container"},Ze=j(e.defineComponent({__name:"RouteFormHostsFields",props:{modelValue:{type:Array,required:!0}},emits:["add","remove","update:modelValue"],setup(s,{emit:N}){const g=s,i=N,{i18n:{t:c}}=G.useI18n(),n=e.ref([]);return e.watch(g.modelValue,p=>{n.value=[...p]},{immediate:!0,deep:!0}),e.watch(n,p=>{i("update:modelValue",p)},{deep:!0}),(p,u)=>{const S=e.resolveComponent("KLabel"),C=e.resolveComponent("KInput");return e.openBlock(),e.createElementBlock("div",Ye,[u[1]||(u[1]=e.createElementVNode("hr",null,null,-1)),e.createVNode(S,{info:e.unref(c)("form.fields.hosts.tooltip")},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(c)("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(n.value,(x,f)=>(e.openBlock(),e.createElementBlock("div",{key:f,class:"routing-rule-input"},[e.createVNode(C,{modelValue:n.value[f],"onUpdate:modelValue":a=>n.value[f]=a,modelModifiers:{trim:!0},"data-testid":`route-form-hosts-input-${f+1}`,placeholder:e.unref(c)("form.fields.hosts.placeholder")},null,8,["modelValue","onUpdate:modelValue","data-testid","placeholder"]),e.createVNode(oe,{"is-add-disabled":f!==n.value.length-1,"routing-rules-entity":e.unref(l).HOSTS,onAdd:u[0]||(u[0]=a=>p.$emit("add")),onRemove:a=>p.$emit("remove",f)},null,8,["is-add-disabled","routing-rules-entity","onRemove"])]))),128))]),_:1})])}}}),[["__scopeId","data-v-88d16377"]]),ve={class:"routing-rule-container"},et={class:"routing-rule-input"},tt={class:"methods-input-container"},ot={key:0,class:"routing-rule-container"},rt=j(e.defineComponent({__name:"RouteFormMethodsFields",props:{modelValue:{type:Object,required:!0},customMethods:{type:Array,required:!0}},emits:["add","remove","update:modelValue","update-custom-methods"],setup(s,{emit:N}){const g=s,i=N,{i18n:{t:c}}=G.useI18n(),n=e.ref({}),p=e.ref([...g.customMethods]),u=S=>{p.value.length===1?p.value[0]="":p.value.splice(S,1)};return e.watch(g.modelValue,S=>{n.value={...S}},{immediate:!0,deep:!0}),e.watch(n,S=>{i("update:modelValue",S)},{deep:!0}),e.watch(p,S=>{i("update-custom-methods",S)},{deep:!0}),(S,C)=>{const x=e.resolveComponent("KLabel"),f=e.resolveComponent("KInputSwitch"),a=e.resolveComponent("KBadge"),O=e.resolveComponent("KButton"),H=e.resolveComponent("KInput");return e.openBlock(),e.createElementBlock("div",ve,[C[2]||(C[2]=e.createElementVNode("hr",null,null,-1)),e.createVNode(x,null,{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(c)("form.fields.methods.label")),1)]),_:1}),e.createElementVNode("div",et,[e.createElementVNode("div",tt,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(Object.keys(n.value),k=>(e.openBlock(),e.createElementBlock("div",{key:k,class:"methods-input"},[e.createVNode(f,{modelValue:n.value[k],"onUpdate:modelValue":R=>n.value[k]=R,"data-testid":`${k.toLowerCase()}-method-toggle`},null,8,["modelValue","onUpdate:modelValue","data-testid"]),e.createVNode(a,{appearance:Object.values(e.unref(we.BadgeMethodAppearances)).includes(k.toLowerCase())?k.toLowerCase():"custom"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(k.toLowerCase()),1)]),_:2},1032,["appearance"])]))),128))]),e.createVNode(O,{appearance:"tertiary",class:"remove-button","data-testid":"remove-methods",icon:"",onClick:C[0]||(C[0]=k=>S.$emit("remove"))},{default:e.withCtx(()=>[e.createVNode(e.unref(ee.TrashIcon),{color:e.unref(xe)},null,8,["color"])]),_:1})]),n.value.CUSTOM?(e.openBlock(),e.createElementBlock("div",ot,[e.createVNode(x,{info:e.unref(c)("form.fields.methods.custom.tooltip")},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(c)("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(p.value,(k,R)=>(e.openBlock(),e.createElementBlock("div",{key:R,class:"routing-rule-input"},[e.createVNode(H,{modelValue:p.value[R],"onUpdate:modelValue":L=>p.value[R]=L,modelModifiers:{trim:!0},"data-testid":`route-form-custom-method-input-${R+1}`,placeholder:e.unref(c)("form.fields.methods.custom.placeholder")},null,8,["modelValue","onUpdate:modelValue","data-testid","placeholder"]),e.createVNode(oe,{"is-add-disabled":R!==p.value.length-1,"routing-rules-entity":e.unref(l).CUSTOM_METHOD,onAdd:C[1]||(C[1]=L=>p.value.push("")),onRemove:L=>u(R)},null,8,["is-add-disabled","routing-rules-entity","onRemove"])]))),128))]),_:1})])):e.createCommentVNode("",!0)])}}}),[["__scopeId","data-v-c8ae1bc5"]]),lt={class:"routing-rule-container"},st=j(e.defineComponent({__name:"RouteFormPathsFields",props:{modelValue:{type:Array,required:!0}},emits:["add","remove","update:modelValue"],setup(s,{emit:N}){const g=s,i=N,{i18n:{t:c}}=G.useI18n(),n=e.ref([]);return e.watch(g.modelValue,p=>{n.value=[...p]},{immediate:!0,deep:!0}),e.watch(n,p=>{i("update:modelValue",p)},{deep:!0}),(p,u)=>{const S=e.resolveComponent("KLabel"),C=e.resolveComponent("KInput");return e.openBlock(),e.createElementBlock("div",lt,[e.createVNode(S,null,{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(c)("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(n.value,(x,f)=>(e.openBlock(),e.createElementBlock("div",{key:f,class:"routing-rule-input"},[e.createVNode(C,{modelValue:n.value[f],"onUpdate:modelValue":a=>n.value[f]=a,modelModifiers:{trim:!0},"data-testid":`route-form-paths-input-${f+1}`,placeholder:e.unref(c)("form.fields.paths.placeholder")},null,8,["modelValue","onUpdate:modelValue","data-testid","placeholder"]),e.createVNode(oe,{"is-add-disabled":f!==n.value.length-1,"routing-rules-entity":e.unref(l).PATHS,onAdd:u[0]||(u[0]=a=>p.$emit("add")),onRemove:a=>p.$emit("remove",f)},null,8,["is-add-disabled","routing-rules-entity","onRemove"])]))),128))]),_:1})])}}}),[["__scopeId","data-v-bc31ca96"]]),nt={class:"routing-rule-container"},it=j(e.defineComponent({__name:"RouteFormSnisFields",props:{modelValue:{type:Array,required:!0}},emits:["add","remove","update:modelValue"],setup(s,{emit:N}){const g=s,i=N,{i18n:{t:c}}=G.useI18n(),n=e.ref([]);return e.watch(g.modelValue,p=>{n.value=[...p]},{immediate:!0,deep:!0}),e.watch(n,p=>{i("update:modelValue",p)},{deep:!0}),(p,u)=>{const S=e.resolveComponent("KLabel"),C=e.resolveComponent("KInput");return e.openBlock(),e.createElementBlock("div",nt,[u[1]||(u[1]=e.createElementVNode("hr",null,null,-1)),e.createVNode(S,{info:e.unref(c)("form.fields.snis.tooltip")},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(c)("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(n.value,(x,f)=>(e.openBlock(),e.createElementBlock("div",{key:f,class:"routing-rule-input"},[e.createVNode(C,{modelValue:n.value[f],"onUpdate:modelValue":a=>n.value[f]=a,modelModifiers:{trim:!0},"data-testid":`route-form-snis-input-${f+1}`,placeholder:e.unref(c)("form.fields.snis.placeholder")},null,8,["modelValue","onUpdate:modelValue","data-testid","placeholder"]),e.createVNode(oe,{"is-add-disabled":f!==n.value.length-1,"routing-rules-entity":e.unref(l).SNIS,onAdd:u[0]||(u[0]=a=>p.$emit("add")),onRemove:a=>p.$emit("remove",f)},null,8,["is-add-disabled","routing-rules-entity","onRemove"])]))),128))]),_:1})])}}}),[["__scopeId","data-v-c3679dd9"]]),at={class:"routing-rule-container"},dt=j(e.defineComponent({__name:"RouteFormSourcesFields",props:{modelValue:{type:Array,required:!0}},emits:["add","remove","update:modelValue"],setup(s,{emit:N}){const g=s,i=N,{i18n:{t:c}}=G.useI18n(),n=e.ref([]);return e.watch(g.modelValue,p=>{n.value=[...p]},{immediate:!0,deep:!0}),e.watch(n,p=>{i("update:modelValue",p)},{deep:!0}),(p,u)=>{const S=e.resolveComponent("KLabel"),C=e.resolveComponent("KInput");return e.openBlock(),e.createElementBlock("div",at,[u[1]||(u[1]=e.createElementVNode("hr",null,null,-1)),e.createVNode(S,{info:e.unref(c)("form.fields.sources.tooltip")},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(c)("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(n.value,(x,f)=>(e.openBlock(),e.createElementBlock("div",{key:f,class:"routing-rule-input"},[e.createVNode(C,{modelValue:n.value[f].ip,"onUpdate:modelValue":a=>n.value[f].ip=a,modelModifiers:{trim:!0},"data-testid":`route-form-sources-ip-input-${f+1}`,placeholder:e.unref(c)("form.fields.sources.ip.placeholder")},null,8,["modelValue","onUpdate:modelValue","data-testid","placeholder"]),e.createVNode(C,{modelValue:n.value[f].port,"onUpdate:modelValue":a=>n.value[f].port=a,modelModifiers:{number:!0},"data-testid":`route-form-sources-port-input-${f+1}`,max:"65535",min:"0",placeholder:e.unref(c)("form.fields.sources.port.placeholder"),type:"number"},null,8,["modelValue","onUpdate:modelValue","data-testid","placeholder"]),e.createVNode(oe,{"is-add-disabled":f!==n.value.length-1,"routing-rules-entity":e.unref(l).SOURCES,onAdd:u[0]||(u[0]=a=>p.$emit("add")),onRemove:a=>p.$emit("remove",f)},null,8,["is-add-disabled","routing-rules-entity","onRemove"])]))),128))]),_:1})])}}}),[["__scopeId","data-v-50c52494"]]),ct=j(e.defineComponent({__name:"RouteFormConfigTabs",props:e.mergeModels({routeFlavors:{},tooltips:{}},{modelValue:{required:!0},modelModifiers:{}}),emits:["update:modelValue"],setup(s){const N=e.useModel(s,"modelValue"),g=s,{i18n:{t:i}}=Ie(),c=e.computed(()=>[...g.routeFlavors.traditional?[{hash:`#${_.TRADITIONAL}`,title:i("form.flavors.traditional")}]:[],...g.routeFlavors.expressions?[{hash:`#${_.EXPRESSIONS}`,title:i("form.flavors.expressions")}]:[]]);return(n,p)=>{const u=e.resolveComponent("KTooltip"),S=e.resolveComponent("KTabs");return c.value.length>1?(e.openBlock(),e.createBlock(S,{key:0,modelValue:N.value,"onUpdate:modelValue":p[0]||(p[0]=C=>N.value=C),"data-testid":"route-form-config-tabs",tabs:c.value},e.createSlots({_:2},[n.routeFlavors.traditional?{name:`${e.unref(_).TRADITIONAL}-anchor`,fn:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(i)("form.flavors.traditional"))+" ",1),n.tooltips&&n.tooltips[e.unref(_).TRADITIONAL]?(e.openBlock(),e.createBlock(u,{key:0,class:"route-form-config-tabs-tooltip",text:n.tooltips[e.unref(_).TRADITIONAL],"tooltip-id":"route-form-config-tabs-tooltip-traditional"},{default:e.withCtx(()=>[e.createVNode(e.unref(ee.InfoIcon),{color:e.unref(Ae),size:e.unref(he),tabindex:"0"},null,8,["color","size"])]),_:1},8,["text"])):e.createCommentVNode("",!0)]),key:"0"}:void 0,n.routeFlavors.traditional?{name:e.unref(_).TRADITIONAL,fn:e.withCtx(()=>[e.renderSlot(n.$slots,"before-content",{},void 0,!0),e.renderSlot(n.$slots,e.unref(_).TRADITIONAL,{},void 0,!0)]),key:"1"}:void 0,n.routeFlavors.expressions?{name:`${e.unref(_).EXPRESSIONS}-anchor`,fn:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(i)("form.flavors.expressions"))+" ",1),n.tooltips&&n.tooltips[e.unref(_).EXPRESSIONS]?(e.openBlock(),e.createBlock(u,{key:0,class:"route-form-config-tabs-tooltip",text:n.tooltips[e.unref(_).EXPRESSIONS],"tooltip-id":"route-form-config-tabs-tooltip-expressions"},{default:e.withCtx(()=>[e.createVNode(e.unref(ee.InfoIcon),{color:e.unref(Ae),size:e.unref(he),tabindex:"0"},null,8,["color","size"])]),_:1},8,["text"])):e.createCommentVNode("",!0)]),key:"2"}:void 0,n.routeFlavors.expressions?{name:e.unref(_).EXPRESSIONS,fn:e.withCtx(()=>[e.renderSlot(n.$slots,"before-content",{},void 0,!0),e.renderSlot(n.$slots,e.unref(_).EXPRESSIONS,{},void 0,!0)]),key:"3"}:void 0]),1032,["modelValue","tabs"])):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.renderSlot(n.$slots,"before-content",{},void 0,!0),n.routeFlavors.traditional?e.renderSlot(n.$slots,e.unref(_).TRADITIONAL,{key:0},void 0,!0):n.routeFlavors.expressions?e.renderSlot(n.$slots,e.unref(_).EXPRESSIONS,{key:1},void 0,!0):e.createCommentVNode("",!0)],64))}}}),[["__scopeId","data-v-f1c7a92f"]]),pt=e.defineComponent({__name:"RouteFormExpressionsEditorLoader",props:e.mergeModels({protocol:{},showExpressionsModalEntry:{type:Boolean}},{modelValue:{required:!0},modelModifiers:{}}),emits:e.mergeModels(["notify"],["update:modelValue"]),setup(s,{emit:N}){const{i18n:{t:g}}=G.useI18n(),i={render:()=>e.h("div",g("form.expressions_editor.loading"))},c={render:()=>e.h("div",g("form.expressions_editor.error"))},n=e.defineAsyncComponent({loader:async()=>Promise.resolve().then(()=>xt),loadingComponent:i,errorComponent:c}),p=s,u=N,S=e.ref(te.LOADING),C=e.useModel(s,"modelValue"),x=f=>{C.value=f};return e.onMounted(async()=>{try{await(await import("@kong-ui-public/expressions")).asyncInit,S.value=te.READY}catch(f){S.value=te.ERROR,console.error(f)}}),(f,a)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[S.value===e.unref(te).ERROR?(e.openBlock(),e.createBlock(e.resolveDynamicComponent(c),{key:0,"data-testid":"route-form-expressions-editor-loader-error"})):S.value===e.unref(te).LOADING?(e.openBlock(),e.createBlock(e.resolveDynamicComponent(i),{key:1,"data-testid":"route-form-expressions-editor-loader-loading"})):(e.openBlock(),e.createBlock(e.unref(n),{key:2,modelValue:C.value,"onUpdate:modelValue":a[0]||(a[0]=O=>C.value=O),"hint-text":e.unref(g)("form.expression_playground.supported_protocols_hint"),protocol:p.protocol,"show-expressions-modal-entry":f.showExpressionsModalEntry,onNotify:a[1]||(a[1]=O=>u("notify",O))},{default:e.withCtx(()=>[e.createVNode(e.unref(ee.RocketIcon),{size:e.unref(he)},null,8,["size"]),e.createElementVNode("span",null,e.toDisplayString(e.unref(g)("form.expression_playground.test_link")),1)]),_:1},8,["modelValue","hint-text","protocol","show-expressions-modal-entry"])),e.renderSlot(f.$slots,"after-editor",{expression:{value:C.value,update:x},state:S.value})],64))}}),ft={class:"kong-ui-entities-route-form"},mt={key:1},ut={"data-testid":"no-search-results"},ht={class:"route-form-service-dropdown-item"},gt={class:"select-item-label"},yt={class:"select-item-description"},St={class:"route-form-routing-rules-title-container"},bt={class:"routing-rules-title"},Ct={key:1,class:"route-form-routing-rules-selector-container"},Vt={class:"route-form-routing-rules-selector-options"},kt=["aria-disabled","data-testid","onClick"],Et={class:"route-form-fields-container route-form-advanced-fields-container"},Nt={class:"route-form-routing-rules-title-container"},_t={class:"routing-rules-title"},Tt={class:"route-form-fields-container route-form-advanced-fields-container"},wt=j(e.defineComponent({__name:"RouteForm",props:{config:{type:Object,required:!0,validator:s=>!(!s||!["konnect","kongManager"].includes(s==null?void 0:s.app)||(s==null?void 0:s.app)==="konnect"&&!(s!=null&&s.controlPlaneId)||(s==null?void 0:s.app)==="kongManager"&&typeof(s==null?void 0:s.workspace)!="string"||!(s!=null&&s.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},showTagsFiledUnderAdvanced:{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(s,{expose:N,emit:g}){var $e;const i=s,c=g,n=e.ref(i.routeFlavors.traditional?`#${_.TRADITIONAL}`:i.routeFlavors.expressions?`#${_.EXPRESSIONS}`:""),p=e.computed(()=>{if(n.value)return n.value.substring(1)}),u=e.ref(void 0),S=e.ref(!0),C=e.computed(()=>{if(u.value)return u.value;if(p.value)return p.value;if(i.routeFlavors.traditional)return _.TRADITIONAL;if(i.routeFlavors.expressions)return _.EXPRESSIONS}),{i18nT:x,i18n:f,i18n:{t:a}}=G.useI18n(),O=f.source.form.protocols,H=Te.useRouter(),{axiosInstance:k}=b.useAxios(($e=i.config)==null?void 0:$e.axiosRequestConfig),{getMessageFromError:R}=b.useErrors(),L=e.computed(()=>!(i.hideNameField&&(i.hideServiceField||i.serviceId)&&i.showTagsFiledUnderAdvanced)),D=o=>o.name?`${o.name} - ${o.value}`:o.value,t=e.reactive({routeFlavors:i.routeFlavors,fields:{name:"",protocols:"http,https",https_redirect_status_code:426,strip_path:!0,preserve_host:!1,request_buffering:!0,response_buffering:!0,tags:"",service_id:"",...!i.routeId&&{paths:[""]},regex_priority:0,path_handling:"v0",expression:"",priority:0},isReadonly:!1,errorMessage:""}),q=e.computed(()=>t.fields.protocols.split(",")[0]),J=e.ref([""]),se=e.reactive({name:"",protocols:"http,https",https_redirect_status_code:426,strip_path:!0,preserve_host:!1,request_buffering:!0,response_buffering:!0,tags:"",service_id:"",path_handling:"v0",regex_priority:0,expression:"",priority:0}),A={[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}]},ge=i.config.app==="konnect"||b.useGatewayFeatureSupported({gatewayInfo:i.config.gatewayInfo,supportedRange:{enterprise:["3.0"]}}),ye=[{label:a("form.protocols.grpc"),value:"grpc"},{label:a("form.protocols.grpcs"),value:"grpcs"},{label:a("form.protocols.grpc,grpcs"),value:"grpc,grpcs"},{label:a("form.protocols.http"),value:"http"},{label:a("form.protocols.https"),value:"https"},{label:a("form.protocols.http,https"),value:"http,https"},{label:a("form.protocols.tcp"),value:"tcp"},{label:a("form.protocols.tls"),value:"tls"},{label:a("form.protocols.tls,udp"),value:"tls,udp"},{label:a("form.protocols.tcp,udp"),value:"tcp,udp"},{label:a("form.protocols.tcp,tls"),value:"tcp,tls"},{label:a("form.protocols.tcp,tls,udp"),value:"tcp,tls,udp"},{label:a("form.protocols.tls_passthrough"),value:"tls_passthrough"},{label:a("form.protocols.udp"),value:"udp"},...ge?[{label:a("form.protocols.ws"),value:"ws"},{label:a("form.protocols.wss"),value:"wss"},{label:a("form.protocols.ws,wss"),value:"ws,wss"}]:[]],Se=[{label:"v0",value:"v0"},{label:"v1",value:"v1"}],fe=[{label:"426",value:426},{label:"301",value:301},{label:"302",value:302},{label:"307",value:307},{label:"308",value:308}],K={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]},Y=e.computed(()=>i.routeId?b.EntityBaseFormType.Edit:b.EntityBaseFormType.Create),ne=e.computed(()=>{var o,r,m;return(m=(r=le.form[(o=i.config)==null?void 0:o.app])==null?void 0:r.fetch)==null?void 0:m[i.serviceId?"forGatewayService":"all"].replace(/{serviceId}/gi,i.serviceId||"")}),de=()=>{var o;H.push((o=i.config)==null?void 0:o.cancelRoute)},be=o=>{c("loading",o)},Ce=o=>{c("error",o)},Ve=o=>{W(t)&&(t.fields.methods=A[l.METHODS],o.forEach(r=>{t.fields.methods&&(t.fields.methods[r]=!0)}))},ke=o=>Object.entries(o).map(r=>{var m;return{header:r[0],values:(m=r[1])==null?void 0:m.join()}}),$=o=>o.some(r=>t.fields.protocols.includes(r)),Q=(o,r)=>{if(o===l.PATHS||o===l.HOSTS||o===l.SNIS)return[...r].filter(m=>!!m);if(o===l.SOURCES||o===l.DESTINATIONS)return[...r].filter(m=>!!m.ip).map(m=>({...m,port:!m.port&&m.port!==0?null:m.port}));if(o===l.HEADERS)return[...r].filter(m=>!!m.header)},me=()=>{if(W(t)){const o=Q(l.HEADERS,t.fields.headers||[])||A[l.HEADERS];if(o.length===0)return null;const r={};return o.forEach(m=>{r[m.header]=m.values.split(",")}),r}return null},h=o=>{W(t)&&(o&&o===l.PATHS&&(t.fields.paths?t.fields.paths.push([...A[l.PATHS]][0]):t.fields.paths=[...A[l.PATHS]]),o===l.SNIS&&(t.fields.snis?t.fields.snis.push([...A[l.SNIS]][0]):t.fields.snis=[...A[l.SNIS]]),o===l.HOSTS&&(t.fields.hosts?t.fields.hosts.push([...A[l.HOSTS]][0]):t.fields.hosts=[...A[l.HOSTS]]),o===l.METHODS&&(t.fields.methods||(t.fields.methods={...A[l.METHODS]})),o===l.HEADERS&&(t.fields.headers?t.fields.headers.push({...A[l.HEADERS][0]}):t.fields.headers=[{...A[l.HEADERS][0]}]),o===l.SOURCES&&(t.fields.sources?t.fields.sources.push({...A[l.SOURCES][0]}):t.fields.sources=[{...A[l.SOURCES][0]}]),o===l.DESTINATIONS&&(t.fields.destinations?t.fields.destinations.push({...A[l.DESTINATIONS][0]}):t.fields.destinations=[{...A[l.DESTINATIONS][0]}]))},E=e.computed(()=>{var o;return W(t)?(o=K[t.fields.protocols])==null?void 0:o.filter(r=>!t.fields[r]):!1}),T=async(o,r)=>{if(W(t)){if(typeof r<"u"){let m=[];if(m=t.fields[o],m.splice(r,1),m.length){t.fields[o]=m;return}}await e.nextTick(()=>{delete t.fields[o],o===l.METHODS&&(J.value=[""])})}},B=o=>{var m;return((m=f.source.form.fields[o])==null?void 0:m.label)||""};e.watch(()=>t.fields.protocols,()=>{F()});const F=()=>{const o=Object.keys(A),r=K[t.fields.protocols];Object.keys(t.fields).filter(V=>o.includes(V)).forEach(V=>{r!=null&&r.includes(V)||T(V)})},X=e.computed(()=>{if(W(t)){const o=[];return t.fields.methods&&Object.entries(t.fields.methods).forEach(([r,m])=>{m&&o.push(r)}),o}return[]}),re=e.computed(()=>{var o;return((o=t.fields.protocols)==null?void 0:o.split(","))||[]}),y=e.computed(()=>{const o=Object.keys(A);return!Object.keys(t.fields).filter(m=>o.includes(m)).length}),w=e.computed(()=>{if($(["tls_passthrough"]))return[B(l.SNIS)];const o=K[t.fields.protocols].map(r=>B(r));return[[...o].splice(0,o.length-1).join(", "),o[o.length-1]]}),ue=o=>{var m,V;if(i.routeId){const P=typeof o.expression=="string"&&o.expression.length>0?_.EXPRESSIONS:_.TRADITIONAL;u.value=P,n.value=`#${P}`}(m=o==null?void 0:o.service)!=null&&m.id&&(t.fields.service_id=o.service.id),t.fields.name=(o==null?void 0:o.name)||"";const r=(o==null?void 0:o.tags)||[];t.fields.tags=(r==null?void 0:r.join(", "))||"",t.fields.preserve_host=typeof(o==null?void 0:o.preserve_host)>"u"?!1:o==null?void 0:o.preserve_host,t.fields.https_redirect_status_code=(o==null?void 0:o.https_redirect_status_code)||426,(V=o==null?void 0:o.protocols)!=null&&V.length&&(o.protocols.length>1?t.fields.protocols=o.protocols.join():t.fields.protocols=o.protocols[0]),t.fields.request_buffering=typeof(o==null?void 0:o.request_buffering)>"u"?!0:o==null?void 0:o.request_buffering,t.fields.response_buffering=typeof(o==null?void 0:o.response_buffering)>"u"?!0:o==null?void 0:o.response_buffering,t.fields.strip_path=typeof(o==null?void 0:o.strip_path)>"u"?!0:o==null?void 0:o.strip_path,W(t)&&(t.fields.regex_priority=(o==null?void 0:o.regex_priority)||0,t.fields.path_handling=(o==null?void 0:o.path_handling)||"v0",o!=null&&o.paths&&(t.fields.paths=o.paths),o!=null&&o.snis&&(t.fields.snis=o.snis),o!=null&&o.hosts&&(t.fields.hosts=o.hosts),o!=null&&o.methods&&Ve(o.methods),o!=null&&o.headers&&(t.fields.headers=ke(o.headers)),o!=null&&o.sources&&(t.fields.sources=o.sources),o!=null&&o.destinations&&(t.fields.destinations=o.destinations)),ae(t)&&(t.fields.expression=(o==null?void 0:o.expression)||"",t.fields.priority=(o==null?void 0:o.priority)||0),Object.assign(se,JSON.parse(JSON.stringify(t.fields)))},Oe=e.computed(()=>{var o;switch(C.value){case _.TRADITIONAL:{if(W(t)){const r=t.fields.hosts?!!t.fields.hosts.filter(Boolean).length:null,m=t.fields.paths?!!t.fields.paths.filter(Boolean).length:null,V=t.fields.headers?t.fields.headers.some(({header:v})=>!!v):null,P=t.fields.snis?!!t.fields.snis.filter(Boolean).length:null,Z=t.fields.destinations?t.fields.destinations.some(({ip:v})=>!!v):null,z=t.fields.sources?t.fields.sources.some(({ip:v})=>!!v):null,d=((o=t.fields.methods)==null?void 0:o.CUSTOM)?J.value.some(v=>!!v):Object.values(t.fields.methods||{}).includes(!0);return!!t.fields.protocols&&($(["http"])&&!!(r||d||m||V)||$(["https"])&&!!(r||d||m||V||P)||$(["grpc"])&&!!(r||m||V)||$(["grpcs","wss"])&&!!(r||m||V||P)||$(["udp","tls"])&&!!(Z||z||P)||$(["tcp"])&&!!(Z||z)||$(["tls_passthrough"])&&!!P||$(["ws"])&&!!(r||m||V))}break}case _.EXPRESSIONS:{if(ae(t))return t.fields.expression.length>0;break}}return!0}),De=e.computed(()=>!Fe(t.fields,se)),Ee=e.computed(()=>{var r,m;let o=`${i.config.apiBaseUrl}${le.form[i.config.app][Y.value][i.serviceId?"forGatewayService":"all"]}`;return i.config.app==="konnect"?o=o.replace(/{controlPlaneId}/gi,((r=i.config)==null?void 0:r.controlPlaneId)||"").replace(/{serviceId}/gi,i.serviceId||""):i.config.app==="kongManager"&&(o=o.replace(/\/{workspace}/gi,(m=i.config)!=null&&m.workspace?`/${i.config.workspace}`:"").replace(/{serviceId}/gi,i.serviceId||"")),o=o.replace(/{id}/gi,i.routeId),o});e.watch(()=>t.fields,()=>{c("model-updated",pe.value)},{deep:!0});const ce=o=>o!=null&&o.length?o:null,At=()=>{var o,r;if(W(t)){const m={methods:null,hosts:ce(Q(l.HOSTS,t.fields.hosts||[])),paths:ce(Q(l.PATHS,t.fields.paths||[])),headers:me(),regex_priority:Number(t.fields.regex_priority),path_handling:t.fields.path_handling,sources:ce(Q(l.SOURCES,t.fields.sources||[])),destinations:ce(Q(l.DESTINATIONS,t.fields.destinations||[])),snis:ce(Q(l.SNIS,t.fields.snis||[]))};if((o=X.value)!=null&&o.length&&(m.methods=[...X.value],(r=X.value)!=null&&r.includes("CUSTOM"))){const V=m.methods.indexOf("CUSTOM");V!==-1&&m.methods.splice(V,1),J.value.forEach(P=>{var Z;P&&m.methods&&!((Z=m.methods)!=null&&Z.includes(P))&&m.methods.push(P.toUpperCase())})}return m}},Ot=()=>{if(ae(t))return{expression:t.fields.expression,priority:Number(t.fields.priority)}},pe=e.computed(()=>{var r,m;const o={...!i.hideNameField&&{name:t.fields.name||null},protocols:t.fields.protocols.split(","),https_redirect_status_code:t.fields.https_redirect_status_code,strip_path:$(["grpc","gprcs"])?!1:t.fields.strip_path,preserve_host:t.fields.preserve_host,request_buffering:t.fields.request_buffering,response_buffering:t.fields.response_buffering,tags:(m=(r=t.fields.tags.split(","))==null?void 0:r.map(V=>String(V||"").trim()))==null?void 0:m.filter(V=>V!==""),service:t.fields.service_id?{id:t.fields.service_id}:null};switch(C.value){case _.TRADITIONAL:return{...o,...At()};case _.EXPRESSIONS:return{...o,...Ot()};default:return o}}),Dt=o=>{switch(C.value){case _.TRADITIONAL:{if(!("regex_priority"in o&&"path_handling"in o))return!1;break}case _.EXPRESSIONS:{if(!("priority"in o))return!1;break}}return"service"in o&&"tags"in o&&"protocols"in o},Ne=async o=>{var m;const r=o&&Dt(o)?o:pe.value;try{t.isReadonly=!0;let V;Y.value==="create"?V=await k.post(Ee.value,r):Y.value==="edit"&&(V=((m=i.config)==null?void 0:m.app)==="konnect"?await k.put(Ee.value,r):await k.patch(Ee.value,r)),ue(V==null?void 0:V.data),c("update",V==null?void 0:V.data)}catch(V){t.errorMessage=R(V),c("error",V)}finally{t.isReadonly=!1}},{debouncedQueryChange:$t,loading:Ft,error:Pt,loadItems:Ht,results:Ut}=b.useDebouncedFilter(i.config,le.form[i.config.app].services,void 0,{fetchedItemsKey:"data",searchKeys:["id","name"]}),Mt=e.computed(()=>Pt.value?a("errors.services.fetch"):""),Lt=e.computed(()=>{var o;return(o=Ut.value)==null?void 0:o.map(r=>({label:r.id,name:r.name,value:r.id}))});return e.onBeforeMount(async()=>{!i.hideServiceField&&!i.serviceId?await Ht():t.fields.service_id=i.serviceId}),e.onMounted(()=>{c("model-updated",pe.value)}),N({saveFormData:Ne,getPayload:pe}),(o,r)=>{const m=e.resolveComponent("KInput"),V=e.resolveComponent("KSelect"),P=e.resolveComponent("KAlert"),Z=e.resolveComponent("KCard"),z=e.resolveComponent("KCheckbox"),_e=e.resolveComponent("KCollapse");return e.openBlock(),e.createElementBlock("div",ft,[e.createVNode(e.unref(b.EntityBaseForm),{"can-submit":Oe.value&&De.value,config:s.config,"edit-id":s.routeId,"entity-type":e.unref(b.SupportedEntityType).Route,"error-message":t.errorMessage||Mt.value,"fetch-url":ne.value,"form-fields":pe.value,"is-readonly":t.isReadonly,onCancel:de,"onFetch:error":Ce,"onFetch:success":ue,onLoading:be,onSubmit:Ne},{"form-actions":e.withCtx(()=>[e.renderSlot(o.$slots,"form-actions",{canSubmit:Oe.value&&De.value,cancel:de,submit:Ne},void 0,!0)]),default:e.withCtx(()=>[L.value?(e.openBlock(),e.createBlock(e.unref(b.EntityFormSection),{key:0,description:e.unref(a)("form.sections.general.description"),"hide-info-header":s.hideSectionsInfo,title:e.unref(a)("form.sections.general.title")},{default:e.withCtx(()=>[s.hideNameField?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(m,{key:0,modelValue:t.fields.name,"onUpdate:modelValue":r[0]||(r[0]=d=>t.fields.name=d),modelModifiers:{trim:!0},autocomplete:"off","data-testid":"route-form-name",label:e.unref(a)("form.fields.name.label"),placeholder:e.unref(a)("form.fields.name.placeholder"),readonly:t.isReadonly,type:"text"},null,8,["modelValue","label","placeholder","readonly"])),!s.hideServiceField&&!s.serviceId?(e.openBlock(),e.createElementBlock("div",mt,[e.createVNode(V,{modelValue:t.fields.service_id,"onUpdate:modelValue":r[1]||(r[1]=d=>t.fields.service_id=d),clearable:"","data-testid":"route-form-service-id","enable-filtering":"","filter-function":()=>!0,items:Lt.value,label:e.unref(a)("form.fields.service_id.label"),loading:e.unref(Ft),placeholder:e.unref(a)("form.fields.service_id.placeholder"),readonly:t.isReadonly,"reuse-item-template":"",width:"100%",onQueryChange:e.unref($t)},{loading:e.withCtx(()=>[e.createElementVNode("div",null,e.toDisplayString(e.unref(a)("actions.loading")),1)]),empty:e.withCtx(()=>[e.createElementVNode("div",ut,e.toDisplayString(e.unref(a)("search.no_results")),1)]),"selected-item-template":e.withCtx(({item:d})=>[e.createTextVNode(e.toDisplayString(D(d)),1)]),"item-template":e.withCtx(({item:d})=>[e.createElementVNode("div",ht,[e.createElementVNode("span",gt,e.toDisplayString(d.name),1),e.createElementVNode("span",yt,e.toDisplayString(d.value),1)])]),_:1},8,["modelValue","items","label","loading","placeholder","readonly","onQueryChange"])])):e.createCommentVNode("",!0),s.showTagsFiledUnderAdvanced?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(m,{key:2,modelValue:t.fields.tags,"onUpdate:modelValue":r[2]||(r[2]=d=>t.fields.tags=d),modelModifiers:{trim:!0},autocomplete:"off","data-testid":"route-form-tags",help:e.unref(a)("form.fields.tags.help"),label:e.unref(a)("form.fields.tags.label"),placeholder:e.unref(a)("form.fields.tags.placeholder"),readonly:t.isReadonly,type:"text"},null,8,["modelValue","help","label","placeholder","readonly"]))]),_:1},8,["description","hide-info-header","title"])):e.createCommentVNode("",!0),e.createVNode(e.unref(b.EntityFormSection),{description:e.unref(a)("form.sections.config.description"),"hide-info-header":s.hideSectionsInfo,title:e.unref(a)("form.sections.config.title")},{default:e.withCtx(()=>[e.createVNode(V,{modelValue:t.fields.protocols,"onUpdate:modelValue":r[3]||(r[3]=d=>t.fields.protocols=d),"data-testid":"route-form-protocols",items:ye,label:e.unref(a)("form.fields.protocols.label"),"label-attributes":{info:e.unref(a)("form.fields.protocols.tooltip"),tooltipAttributes:{maxWidth:"400"}},readonly:t.isReadonly,required:"",width:"100%"},null,8,["modelValue","label","label-attributes","readonly"]),e.createVNode(ct,{modelValue:n.value,"onUpdate:modelValue":r[44]||(r[44]=d=>n.value=d),"route-flavors":s.routeFlavors,tooltips:s.configTabTooltips},e.createSlots({_:2},[s.routeFlavors.traditional&&s.routeFlavors.expressions&&(!u.value||u.value!==p.value)?{name:"before-content",fn:e.withCtx(()=>[e.createVNode(P,{appearance:u.value?"warning":"info",class:"route-form-config-type-immutable-alert","data-testid":"route-config-type-immutable-alert"},{default:e.withCtx(()=>[u.value?u.value!==p.value?(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createTextVNode(e.toDisplayString(e.unref(a)("form.warning.cannotChangeFlavor.edit",{format:e.unref(a)(`form.flavors.${u.value}`)})),1)],64)):e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createTextVNode(e.toDisplayString(e.unref(a)("form.warning.cannotChangeFlavor.create")),1)],64))]),_:1},8,["appearance"])]),key:"0"}:void 0,e.unref(W)(t)?{name:"traditional",fn:e.withCtx(()=>[!u.value||u.value===e.unref(_).TRADITIONAL?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[t.fields.protocols?(e.openBlock(),e.createBlock(Z,{key:0},{title:e.withCtx(()=>[e.createElementVNode("div",St,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(re.value,d=>(e.openBlock(),e.createElementBlock("span",{key:d,class:"protocol-title"},e.toDisplayString(d.toUpperCase()),1))),128)),e.createElementVNode("span",bt,e.toDisplayString(e.unref(a)("form.sections.routingRules.title")),1)])]),default:e.withCtx(()=>[y.value?(e.openBlock(),e.createBlock(P,{key:0,appearance:"warning","data-testid":"routing-rules-warning"},{default:e.withCtx(()=>[e.createVNode(e.unref(x),{keypath:"form.warning.rulesMessage"},{protocol:e.withCtx(()=>[e.createElementVNode("b",null,e.toDisplayString(e.unref(O)[t.fields.protocols]),1)]),routingRules:e.withCtx(()=>[e.createVNode(e.unref(x),{keypath:w.value[1]?"form.warning.multipleRules":"form.warning.singleRule"},{routingRules:e.withCtx(()=>[e.createElementVNode("b",null,e.toDisplayString(w.value[0]),1)]),lastRoutingRule:e.withCtx(()=>[e.createElementVNode("b",null,e.toDisplayString(w.value[1]),1)]),_:1},8,["keypath"])]),_:1})]),_:1})):e.createCommentVNode("",!0),e.createVNode(e.TransitionGroup,{name:"appear"},{default:e.withCtx(()=>[t.fields.paths?(e.openBlock(),e.createBlock(st,{key:"paths-container",modelValue:t.fields.paths,"onUpdate:modelValue":r[4]||(r[4]=d=>t.fields.paths=d),onAdd:r[5]||(r[5]=d=>h(e.unref(l).PATHS)),onRemove:r[6]||(r[6]=d=>T(e.unref(l).PATHS,d))},null,8,["modelValue"])):e.createCommentVNode("",!0),t.fields.snis?(e.openBlock(),e.createBlock(it,{key:"snis-container",modelValue:t.fields.snis,"onUpdate:modelValue":r[7]||(r[7]=d=>t.fields.snis=d),onAdd:r[8]||(r[8]=d=>h(e.unref(l).SNIS)),onRemove:r[9]||(r[9]=d=>T(e.unref(l).SNIS,d))},null,8,["modelValue"])):e.createCommentVNode("",!0),t.fields.hosts?(e.openBlock(),e.createBlock(Ze,{key:"hosts-container",modelValue:t.fields.hosts,"onUpdate:modelValue":r[10]||(r[10]=d=>t.fields.hosts=d),onAdd:r[11]||(r[11]=d=>h(e.unref(l).HOSTS)),onRemove:r[12]||(r[12]=d=>T(e.unref(l).HOSTS,d))},null,8,["modelValue"])):e.createCommentVNode("",!0),t.fields.methods?(e.openBlock(),e.createBlock(rt,{key:"methods-container",modelValue:t.fields.methods,"onUpdate:modelValue":r[13]||(r[13]=d=>t.fields.methods=d),"custom-methods":J.value,onRemove:r[14]||(r[14]=d=>T(e.unref(l).METHODS)),onUpdateCustomMethods:r[15]||(r[15]=d=>J.value=d)},null,8,["modelValue","custom-methods"])):e.createCommentVNode("",!0),t.fields.headers?(e.openBlock(),e.createBlock(Qe,{key:"headers-container",modelValue:t.fields.headers,"onUpdate:modelValue":r[16]||(r[16]=d=>t.fields.headers=d),onAdd:r[17]||(r[17]=d=>h(e.unref(l).HEADERS)),onRemove:r[18]||(r[18]=d=>T(e.unref(l).HEADERS,d))},null,8,["modelValue"])):e.createCommentVNode("",!0),t.fields.sources?(e.openBlock(),e.createBlock(dt,{key:"sources-container",modelValue:t.fields.sources,"onUpdate:modelValue":r[19]||(r[19]=d=>t.fields.sources=d),onAdd:r[20]||(r[20]=d=>h(e.unref(l).SOURCES)),onRemove:r[21]||(r[21]=d=>T(e.unref(l).SOURCES,d))},null,8,["modelValue"])):e.createCommentVNode("",!0),t.fields.destinations?(e.openBlock(),e.createBlock(ze,{key:"destinations-container",modelValue:t.fields.destinations,"onUpdate:modelValue":r[22]||(r[22]=d=>t.fields.destinations=d),onAdd:r[23]||(r[23]=d=>h(e.unref(l).DESTINATIONS)),onRemove:r[24]||(r[24]=d=>T(e.unref(l).DESTINATIONS,d))},null,8,["modelValue"])):e.createCommentVNode("",!0)]),_:1}),E.value?(e.openBlock(),e.createElementBlock("div",Ct,[r[45]||(r[45]=e.createElementVNode("hr",null,null,-1)),e.createElementVNode("div",Vt,[e.createElementVNode("ul",null,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(K[t.fields.protocols],d=>(e.openBlock(),e.createElementBlock("li",{key:d},[e.createElementVNode("label",{"aria-disabled":!!t.fields[d],class:e.normalizeClass(["option",{"is-selected":t.fields[d]}]),"data-testid":`routing-rule-${d}`,role:"button",onClick:v=>h(d)},e.toDisplayString(B(d)),11,kt)]))),128))])])])):e.createCommentVNode("",!0)]),_:1})):e.createCommentVNode("",!0),e.createVNode(_e,{modelValue:S.value,"onUpdate:modelValue":r[33]||(r[33]=d=>S.value=d),class:"route-form-advanced-fields-collapse","trigger-alignment":"leading","trigger-label":e.unref(a)("form.viewAdvancedFields")},{default:e.withCtx(()=>[e.createElementVNode("div",Et,[t.fields.paths?(e.openBlock(),e.createBlock(V,{key:0,modelValue:t.fields.path_handling,"onUpdate:modelValue":r[25]||(r[25]=d=>t.fields.path_handling=d),"data-testid":"route-form-path-handling",items:Se,label:e.unref(a)("form.fields.path_handling.label"),"label-attributes":{info:e.unref(a)("form.fields.path_handling.tooltip"),tooltipAttributes:{maxWidth:"400"}},readonly:t.isReadonly,width:"100%"},null,8,["modelValue","label","label-attributes","readonly"])):e.createCommentVNode("",!0),e.createVNode(V,{modelValue:t.fields.https_redirect_status_code,"onUpdate:modelValue":r[26]||(r[26]=d=>t.fields.https_redirect_status_code=d),"data-testid":"route-form-http-redirect-status-code",items:fe,label:e.unref(a)("form.fields.https_redirect_status_code.label"),readonly:t.isReadonly,width:"100%"},null,8,["modelValue","label","readonly"]),e.createVNode(m,{modelValue:t.fields.regex_priority,"onUpdate:modelValue":r[27]||(r[27]=d=>t.fields.regex_priority=d),autocomplete:"off","data-testid":"route-form-regex-priority",label:e.unref(a)("form.fields.regex_priority.label"),readonly:t.isReadonly,type:"number"},null,8,["modelValue","label","readonly"]),s.showTagsFiledUnderAdvanced?(e.openBlock(),e.createBlock(m,{key:1,modelValue:t.fields.tags,"onUpdate:modelValue":r[28]||(r[28]=d=>t.fields.tags=d),modelModifiers:{trim:!0},autocomplete:"off","data-testid":"route-form-tags",help:e.unref(a)("form.fields.tags.help"),label:e.unref(a)("form.fields.tags.label"),placeholder:e.unref(a)("form.fields.tags.placeholder"),readonly:t.isReadonly,type:"text"},null,8,["modelValue","help","label","placeholder","readonly"])):e.createCommentVNode("",!0),$(["http","https","ws","wss","tls","tcp","udp","tls_passthrough"])?(e.openBlock(),e.createBlock(z,{key:2,modelValue:t.fields.strip_path,"onUpdate:modelValue":r[29]||(r[29]=d=>t.fields.strip_path=d),"data-testid":"route-form-strip-path",label:e.unref(a)("form.fields.strip_path.label")},null,8,["modelValue","label"])):e.createCommentVNode("",!0),e.createVNode(z,{modelValue:t.fields.preserve_host,"onUpdate:modelValue":r[30]||(r[30]=d=>t.fields.preserve_host=d),"data-testid":"route-form-preserve-host",label:e.unref(a)("form.fields.preserve_host.label")},null,8,["modelValue","label"]),e.createVNode(z,{modelValue:t.fields.request_buffering,"onUpdate:modelValue":r[31]||(r[31]=d=>t.fields.request_buffering=d),"data-testid":"route-form-request-buffering",label:e.unref(a)("form.fields.request_buffering.label")},null,8,["modelValue","label"]),e.createVNode(z,{modelValue:t.fields.response_buffering,"onUpdate:modelValue":r[32]||(r[32]=d=>t.fields.response_buffering=d),"data-testid":"route-form-response-buffering",label:e.unref(a)("form.fields.response_buffering.label")},null,8,["modelValue","label"])])]),_:1},8,["modelValue","trigger-label"])],64)):e.createCommentVNode("",!0)]),key:"1"}:void 0,e.unref(ae)(t)?{name:"expressions",fn:e.withCtx(()=>[!u.value||u.value===e.unref(_).EXPRESSIONS?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[t.fields.protocols?(e.openBlock(),e.createBlock(Z,{key:0},{title:e.withCtx(()=>[e.createElementVNode("div",Nt,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(re.value,d=>(e.openBlock(),e.createElementBlock("span",{key:d,class:"protocol-title"},e.toDisplayString(d.toUpperCase()),1))),128)),e.createElementVNode("span",_t,e.toDisplayString(e.unref(a)("form.sections.routingExpression.title")),1)])]),default:e.withCtx(()=>[e.createVNode(pt,{modelValue:t.fields.expression,"onUpdate:modelValue":r[34]||(r[34]=d=>t.fields.expression=d),protocol:q.value,"show-expressions-modal-entry":s.showExpressionsModalEntry,onNotify:r[35]||(r[35]=d=>c("notify",d))},{"after-editor":e.withCtx(d=>[e.renderSlot(o.$slots,"after-expressions-editor",{expression:d.expression,state:d.state},void 0,!0)]),_:3},8,["modelValue","protocol","show-expressions-modal-entry"])]),_:3})):e.createCommentVNode("",!0),e.createVNode(_e,{modelValue:S.value,"onUpdate:modelValue":r[43]||(r[43]=d=>S.value=d),class:"route-form-advanced-fields-collapse","trigger-alignment":"leading","trigger-label":e.unref(a)("form.viewAdvancedFields")},{default:e.withCtx(()=>[e.createElementVNode("div",Tt,[e.createVNode(V,{modelValue:t.fields.https_redirect_status_code,"onUpdate:modelValue":r[36]||(r[36]=d=>t.fields.https_redirect_status_code=d),"data-testid":"route-form-http-redirect-status-code",items:fe,label:e.unref(a)("form.fields.https_redirect_status_code.label"),readonly:t.isReadonly,width:"100%"},null,8,["modelValue","label","readonly"]),e.createVNode(m,{modelValue:t.fields.priority,"onUpdate:modelValue":r[37]||(r[37]=d=>t.fields.priority=d),autocomplete:"off","data-testid":"route-form-priority",label:e.unref(a)("form.fields.priority.label"),"label-attributes":{info:e.unref(a)("form.fields.priority.tooltip"),tooltipAttributes:{maxWidth:"400"}},readonly:t.isReadonly,type:"number"},null,8,["modelValue","label","label-attributes","readonly"]),s.showTagsFiledUnderAdvanced?(e.openBlock(),e.createBlock(m,{key:0,modelValue:t.fields.tags,"onUpdate:modelValue":r[38]||(r[38]=d=>t.fields.tags=d),modelModifiers:{trim:!0},autocomplete:"off","data-testid":"route-form-tags",help:e.unref(a)("form.fields.tags.help"),label:e.unref(a)("form.fields.tags.label"),placeholder:e.unref(a)("form.fields.tags.placeholder"),readonly:t.isReadonly,type:"text"},null,8,["modelValue","help","label","placeholder","readonly"])):e.createCommentVNode("",!0),$(["http","https","ws","wss","tls","tcp","udp","tls_passthrough"])?(e.openBlock(),e.createBlock(z,{key:1,modelValue:t.fields.strip_path,"onUpdate:modelValue":r[39]||(r[39]=d=>t.fields.strip_path=d),"data-testid":"route-form-strip-path",label:e.unref(a)("form.fields.strip_path.label")},null,8,["modelValue","label"])):e.createCommentVNode("",!0),e.createVNode(z,{modelValue:t.fields.preserve_host,"onUpdate:modelValue":r[40]||(r[40]=d=>t.fields.preserve_host=d),"data-testid":"route-form-preserve-host",label:e.unref(a)("form.fields.preserve_host.label")},null,8,["modelValue","label"]),e.createVNode(z,{modelValue:t.fields.request_buffering,"onUpdate:modelValue":r[41]||(r[41]=d=>t.fields.request_buffering=d),"data-testid":"route-form-request-buffering",label:e.unref(a)("form.fields.request_buffering.label")},null,8,["modelValue","label"]),e.createVNode(z,{modelValue:t.fields.response_buffering,"onUpdate:modelValue":r[42]||(r[42]=d=>t.fields.response_buffering=d),"data-testid":"route-form-response-buffering",label:e.unref(a)("form.fields.response_buffering.label")},null,8,["modelValue","label"])])]),_:1},8,["modelValue","trigger-label"])],64)):e.createCommentVNode("",!0)]),key:"2"}:void 0]),1032,["modelValue","route-flavors","tooltips"])]),_:3},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-6c1044e5"]]),Rt={class:"kong-ui-entities-route-entity-config-card"},It={key:2},Bt=e.defineComponent({__name:"RouteConfigCard",props:{config:{type:Object,required:!0,validator:s=>!(!s||!["konnect","kongManager"].includes(s==null?void 0:s.app)||s.app==="konnect"&&!s.controlPlaneId||s.app==="kongManager"&&typeof s.workspace!="string"||!s.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(s,{emit:N}){var H;const g=N,i=s,{axiosInstance:c}=b.useAxios((H=i.config)==null?void 0:H.axiosRequestConfig),{i18n:{t:n},i18nT:p}=G.useI18n(),u=e.ref(""),S=e.ref(""),C=e.ref(!1),x=e.computed(()=>{var k,R;return(R=le.item[(k=i.config)==null?void 0:k.app])==null?void 0:R[i.serviceId?"forGatewayService":"all"].replace(/{serviceId}/gi,i.serviceId)}),f=e.computed(()=>{var k;return(k=le.item[i.config.app])==null?void 0:k.getService}),a=async k=>{var L,D,t;if(u.value=i.serviceId||((L=k==null?void 0:k.service)==null?void 0:L.id),g("fetch:success",k),!u.value)return;let R=`${i.config.apiBaseUrl}${f.value}`;i.config.app==="konnect"?R=R.replace(/{controlPlaneId}/gi,((D=i.config)==null?void 0:D.controlPlaneId)||"").replace(/{serviceId}/gi,u.value||""):i.config.app==="kongManager"&&(R=R.replace(/\/{workspace}/gi,(t=i.config)!=null&&t.workspace?`/${i.config.workspace}`:"").replace(/{serviceId}/gi,u.value||""));try{C.value=!0;const{data:q}=await c.get(R);S.value=(q==null?void 0:q.name)||(q==null?void 0:q.id)}catch(q){g("fetch:error",q)}finally{C.value=!1}},O=e.ref({id:{},name:{tooltip:n("form.fields.name.tooltip")},created_at:{},updated_at:{},service:{label:n("form.fields.service.label"),section:b.ConfigurationSchemaSection.Basic,tooltip:n("form.fields.service.tooltip"),order:5},tags:{tooltip:n("form.fields.tags.tooltip"),order:6},protocols:{section:b.ConfigurationSchemaSection.Basic,type:b.ConfigurationSchemaType.BadgeTag,order:7},paths:{section:b.ConfigurationSchemaSection.Basic,tooltip:n("form.fields.paths.tooltip"),type:b.ConfigurationSchemaType.CopyBadge,order:8},hosts:{section:b.ConfigurationSchemaSection.Basic,tooltip:n("form.fields.hosts.tooltipConfig"),type:b.ConfigurationSchemaType.CopyBadge,order:9},snis:{label:n("form.fields.snis.label"),tooltip:n("form.fields.snis.tooltip"),order:10},headers:{section:b.ConfigurationSchemaSection.Basic,order:11},methods:{section:b.ConfigurationSchemaSection.Basic,tooltip:n("form.fields.methods.tooltip"),type:b.ConfigurationSchemaType.BadgeMethod,order:12},sources:{section:b.ConfigurationSchemaSection.Basic,tooltip:n("form.fields.sources.tooltip"),type:b.ConfigurationSchemaType.JsonArray,order:13},destinations:{section:b.ConfigurationSchemaSection.Basic,tooltip:n("form.fields.destinations.tooltip"),type:b.ConfigurationSchemaType.JsonArray,order:14},https_redirect_status_code:{order:1},regex_priority:{tooltip:n("form.fields.regex_priority.tooltip"),order:2},strip_path:{order:3},preserve_host:{order:4},request_buffering:{tooltip:n("form.fields.request_buffering.tooltip"),order:5},response_buffering:{tooltip:n("form.fields.response_buffering.tooltip"),order:6},path_handling:{tooltip:n("form.fields.path_handling.tooltipConfig"),order:7}});return(k,R)=>{const L=e.resolveComponent("KSkeleton");return e.openBlock(),e.createElementBlock("div",Rt,[e.createVNode(e.unref(b.EntityBaseConfigCard),{config:s.config,"config-card-doc":s.configCardDoc,"config-schema":O.value,"entity-type":e.unref(b.SupportedEntityType).Route,"fetch-url":x.value,"hide-title":s.hideTitle,"onFetch:error":R[0]||(R[0]=D=>k.$emit("fetch:error",D)),"onFetch:success":a,onLoading:R[1]||(R[1]=D=>k.$emit("loading",D))},{"https_redirect_status_code-label-tooltip":e.withCtx(()=>[e.createVNode(e.unref(p),{keypath:"form.fields.https_redirect_status_code.tooltip",scope:"global"},{code1:e.withCtx(()=>[e.createElementVNode("code",null,e.toDisplayString(e.unref(n)("form.fields.https_redirect_status_code.code1")),1)]),code2:e.withCtx(()=>[e.createElementVNode("code",null,e.toDisplayString(e.unref(n)("form.fields.https_redirect_status_code.code2")),1)]),code3:e.withCtx(()=>[e.createElementVNode("code",null,e.toDisplayString(e.unref(n)("form.fields.https_redirect_status_code.code3")),1)]),code4:e.withCtx(()=>[e.createElementVNode("code",null,e.toDisplayString(e.unref(n)("form.fields.https_redirect_status_code.code4")),1)]),_:1})]),"regex_priority-label-tooltip":e.withCtx(()=>[e.createVNode(e.unref(p),{keypath:"form.fields.regex_priority.tooltip",scope:"global"},{code1:e.withCtx(()=>[e.createElementVNode("code",null,e.toDisplayString(e.unref(n)("form.fields.regex_priority.code1")),1)]),code2:e.withCtx(()=>[e.createElementVNode("code",null,e.toDisplayString(e.unref(n)("form.fields.regex_priority.code2")),1)]),_:1})]),"protocols-label-tooltip":e.withCtx(()=>[e.createVNode(e.unref(p),{keypath:"form.fields.protocols.tooltipConfig",scope:"global"},{code1:e.withCtx(()=>[e.createElementVNode("code",null,e.toDisplayString(e.unref(n)("form.fields.protocols.code1")),1)]),code2:e.withCtx(()=>[e.createElementVNode("code",null,e.toDisplayString(e.unref(n)("form.fields.protocols.code2")),1)]),code3:e.withCtx(()=>[e.createElementVNode("code",null,e.toDisplayString(e.unref(n)("form.fields.protocols.code3")),1)]),code4:e.withCtx(()=>[e.createElementVNode("code",null,e.toDisplayString(e.unref(n)("form.fields.protocols.code4")),1)]),code5:e.withCtx(()=>[e.createElementVNode("code",null,e.toDisplayString(e.unref(n)("form.fields.protocols.code5")),1)]),_:1})]),"headers-label-tooltip":e.withCtx(()=>[e.createVNode(e.unref(p),{keypath:"form.fields.headers.tooltipConfig",scope:"global"},{code1:e.withCtx(()=>[e.createElementVNode("code",null,e.toDisplayString(e.unref(n)("form.fields.headers.code1")),1)]),code2:e.withCtx(()=>[e.createElementVNode("code",null,e.toDisplayString(e.unref(n)("form.fields.headers.code2")),1)]),code3:e.withCtx(()=>[e.createElementVNode("code",null,e.toDisplayString(e.unref(n)("form.fields.headers.code3")),1)]),code4:e.withCtx(()=>[e.createElementVNode("code",null,e.toDisplayString(e.unref(n)("form.fields.headers.code4")),1)]),_:1})]),"strip_path-label-tooltip":e.withCtx(()=>[e.createVNode(e.unref(p),{keypath:"form.fields.strip_path.tooltip",scope:"global"},{code1:e.withCtx(()=>[e.createElementVNode("code",null,e.toDisplayString(e.unref(n)("form.fields.headers.code1")),1)]),_:1})]),"preserve_host-label-tooltip":e.withCtx(()=>[e.createVNode(e.unref(p),{keypath:"form.fields.preserve_host.tooltip",scope:"global"},{code1:e.withCtx(()=>[e.createElementVNode("code",null,e.toDisplayString(e.unref(n)("form.fields.preserve_host.code1")),1)]),code2:e.withCtx(()=>[e.createElementVNode("code",null,e.toDisplayString(e.unref(n)("form.fields.preserve_host.code2")),1)]),code3:e.withCtx(()=>[e.createElementVNode("code",null,e.toDisplayString(e.unref(n)("form.fields.preserve_host.code3")),1)]),code4:e.withCtx(()=>[e.createElementVNode("code",null,e.toDisplayString(e.unref(n)("form.fields.preserve_host.code4")),1)]),code5:e.withCtx(()=>[e.createElementVNode("code",null,e.toDisplayString(e.unref(n)("form.fields.preserve_host.code5")),1)]),_:1})]),service:e.withCtx(({row:D})=>[C.value?(e.openBlock(),e.createBlock(L,{key:0,"data-testid":"service-name-loader",type:"spinner"})):D.value&&D.value.id===u.value&&S.value?(e.openBlock(),e.createBlock(e.unref(b.InternalLinkItem),{key:1,item:{key:D.value.id,value:S.value,type:e.unref(b.ConfigurationSchemaType).LinkInternal},onNavigationClick:()=>k.$emit("navigation-click",D.value.id,"services")},null,8,["item","onNavigationClick"])):(e.openBlock(),e.createElementBlock("div",It,e.toDisplayString("-")))]),_:1},8,["config","config-card-doc","config-schema","entity-type","fetch-url","hide-title"])])}}}),xt=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(s,{emit:N}){const g=s,i=e.useModel(s,"modelValue"),c=N,n=e.ref(!1),p=e.computed(()=>ie.PROTOCOL_TO_SCHEMA[g.protocol]),u=e.computed(()=>ie.HTTP_BASED_PROTOCOLS.includes(g.protocol??"")),S=e.computed(()=>u.value?void 0:`${g.hintText}${ie.HTTP_BASED_PROTOCOLS}`),C=a=>{i.value=a,n.value=!1},x=a=>{c("notify",a)},f=()=>{u.value&&(n.value=!0)};return(a,O)=>{const H=e.resolveComponent("KTooltip");return e.openBlock(),e.createElementBlock(e.Fragment,null,[p.value!==void 0?(e.openBlock(),e.createBlock(e.unref(ie.ExpressionsEditor),{key:0,modelValue:i.value,"onUpdate:modelValue":O[0]||(O[0]=k=>i.value=k),schema:p.value},null,8,["modelValue","schema"])):e.createCommentVNode("",!0),e.createVNode(H,{placement:"bottom-start",text:S.value},{default:e.withCtx(()=>[a.showExpressionsModalEntry?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass({disabled:!u.value,"route-form-open-in-playground":!0}),"data-testid":"open-router-playground",onClick:f},[e.renderSlot(a.$slots,"default")],2)):e.createCommentVNode("",!0)]),_:3},8,["text"]),a.showExpressionsModalEntry&&u.value?(e.openBlock(),e.createBlock(e.unref(ie.RouterPlaygroundModal),{key:1,"initial-expression":i.value,"is-visible":n.value,onCancel:O[1]||(O[1]=k=>n.value=!1),onCommit:C,onNotify:x},null,8,["initial-expression","is-visible"])):e.createCommentVNode("",!0)],64)}}})},Symbol.toStringTag,{value:"Module"}));I.ExpressionsEditorState=te,I.Methods=Be,I.RouteConfigCard=Bt,I.RouteFlavor=_,I.RouteForm=wt,I.RouteList=je,I.RoutingRulesEntities=l,I.stateHasExpressionsFlavor=ae,I.stateHasTraditionalFlavor=W,Object.defineProperty(I,Symbol.toStringTag,{value:"Module"})});
package/dist/style.css CHANGED
@@ -1 +1 @@
1
- .config-card-fieldset[data-v-68ca83ec]{border:solid 1px #e0e4ea;border-radius:4px;margin-bottom:8px;margin-top:4px}.config-card-fieldset-title[data-v-68ca83ec]{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-711ebcf2]{align-items:center;border-bottom:var(--2f5b0492);display:var(--5d59c22c);padding:16px 16px 16px 0;width:100%}.config-card-details-row .config-card-details-label[data-v-711ebcf2]{width:var(--aa41a894)}.config-card-details-row .config-card-details-label label[data-v-711ebcf2]{color:#3a3f51}.config-card-details-row .config-card-details-value[data-v-711ebcf2]{width:var(--aa3d1cde)}.config-card-details-row .config-card-details-value .truncated[data-v-711ebcf2]{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-711ebcf2]{overflow-wrap:anywhere}.config-card-details-row .config-card-details-value .copy-uuid-array[data-v-711ebcf2] .k-copy:not(:last-of-type){margin-bottom:8px}.config-card-details-row .config-card-details-value .method-badge-array[data-v-711ebcf2]{display:flex;flex-wrap:wrap;row-gap:10px}.config-card-details-row .config-badge[data-v-711ebcf2]{margin-right:4px}.config-card-details-row[data-v-711ebcf2] .k-label{margin-bottom:0}.config-card-details-row[data-v-711ebcf2] .k-label .kong-icon-infoFilled{display:flex}.config-card-details-row[data-v-711ebcf2] .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(--454fa8c4);overflow:hidden!important;text-align:left;text-overflow:ellipsis;white-space:nowrap}.config-card-prop-section-title[data-v-d15be7fe]{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-d957ab89]{align-items:center;display:flex}.kong-ui-entity-base-config-card .config-card-actions .config-format-select-label[data-v-d957ab89]{margin-bottom:0;margin-right:8px}.kong-ui-entity-base-config-card .config-card-prop-section-title[data-v-d957ab89]{color:#000933;font-size:16px;font-weight:600;margin-bottom:16px;margin-top:48px}.kong-ui-entity-base-config-card[data-v-d957ab89] .config-card-details-row:last-of-type{border-bottom:none}.kong-ui-entity-base-config-card .book-icon[data-v-d957ab89]{margin-left:8px;padding:0}.kong-ui-entity-base-form[data-v-6210a67a]{box-sizing:border-box;max-width:1536px;width:100%}.kong-ui-entity-base-form .form-actions[data-v-6210a67a]{align-items:center;display:flex;justify-content:flex-end;margin-top:24px}.kong-ui-entity-base-form .form-actions[data-v-6210a67a] .k-button:last-of-type,.kong-ui-entity-base-form .form-actions[data-v-6210a67a] .k-button:nth-last-of-type(2){margin-left:16px}.kong-ui-entity-base-form[data-v-6210a67a] .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-6210a67a] .k-card.content-card{padding:0 16px!important}.kong-ui-entity-base-form[data-v-6210a67a] .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-6210a67a] .tab-item.active>div.tab-link.has-panels{color:#000933!important;font-weight:600!important}.content-wrapper[data-v-b252463e] .k-tooltip{word-break:break-all}.kong-ui-entity-base-table .toolbar-container[data-v-765e475b]{align-items:center;display:flex;width:100%}.kong-ui-entity-base-table .toolbar-button-container[data-v-765e475b]{margin-left:auto}.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-60e3ef7c]{align-items:center;display:flex}.kong-ui-public-entity-link .deleted-entity[data-v-60e3ef7c]{font-style:italic}.kong-ui-public-entity-link .entity-link[data-v-60e3ef7c]{display:flex}.kong-ui-public-entity-link .entity-link[data-v-60e3ef7c] .external-link-icon{color:#0044f4;margin-left:4px;padding:2px}.kong-ui-public-entity-link .entity-link-label[data-v-60e3ef7c]{display:inline-block;font-weight:400;max-width:20ch;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.kong-ui-public-entity-link .copy-uuid-tooltip[data-v-60e3ef7c]{align-items:center;cursor:pointer;display:flex}.kong-ui-public-entity-link .copy-uuid-tooltip .entity-link-copy-id[data-v-60e3ef7c]{margin-left:2px}.kong-ui-entities-routes-list[data-v-cb29085c]{width:100%}.kong-ui-entities-routes-list .kong-ui-entity-filter-input[data-v-cb29085c]{margin-right:12px}.kong-ui-entities-routes-list .route-list-cell-expression[data-v-cb29085c]{font-family:JetBrains Mono,Consolas,monospace}.routing-rules-entities-controls-container[data-v-e024298d]{display:flex;gap:4px}.routing-rule-container[data-v-b964ced7]:not(:first-of-type){margin-top:24px}.routing-rule-container hr[data-v-b964ced7]{border:0;border-top:1px solid rgba(0,0,0,.1);margin-bottom:16px}.routing-rule-input[data-v-b964ced7]{align-items:center;column-gap:40px;display:flex}.routing-rule-input .k-input[data-v-b964ced7]{width:100%}.routing-rule-input[data-v-b964ced7]:not(:first-of-type){margin-top:16px}.routing-rule-input .methods-input-container[data-v-b964ced7]{display:flex;flex-wrap:wrap;gap:12px}.routing-rule-input .methods-input[data-v-b964ced7]{display:flex;flex-wrap:wrap;gap:4px}.routing-rule-input .methods-input[data-v-b964ced7] label.k-switch{margin:0!important}.routing-rule-container[data-v-01020443]:not(:first-of-type){margin-top:24px}.routing-rule-container hr[data-v-01020443]{border:0;border-top:1px solid rgba(0,0,0,.1);margin-bottom:16px}.routing-rule-input[data-v-01020443]{align-items:center;column-gap:40px;display:flex}.routing-rule-input .k-input[data-v-01020443]{width:100%}.routing-rule-input[data-v-01020443]:not(:first-of-type){margin-top:16px}.routing-rule-input .methods-input-container[data-v-01020443]{display:flex;flex-wrap:wrap;gap:12px}.routing-rule-input .methods-input[data-v-01020443]{display:flex;flex-wrap:wrap;gap:4px}.routing-rule-input .methods-input[data-v-01020443] label.k-switch{margin:0!important}.routing-rule-container[data-v-6174b92d]:not(:first-of-type){margin-top:24px}.routing-rule-container hr[data-v-6174b92d]{border:0;border-top:1px solid rgba(0,0,0,.1);margin-bottom:16px}.routing-rule-input[data-v-6174b92d]{align-items:center;column-gap:40px;display:flex}.routing-rule-input .k-input[data-v-6174b92d]{width:100%}.routing-rule-input[data-v-6174b92d]:not(:first-of-type){margin-top:16px}.routing-rule-input .methods-input-container[data-v-6174b92d]{display:flex;flex-wrap:wrap;gap:12px}.routing-rule-input .methods-input[data-v-6174b92d]{display:flex;flex-wrap:wrap;gap:4px}.routing-rule-input .methods-input[data-v-6174b92d] label.k-switch{margin:0!important}.routing-rule-container[data-v-5f61c45d]:not(:first-of-type){margin-top:24px}.routing-rule-container hr[data-v-5f61c45d]{border:0;border-top:1px solid rgba(0,0,0,.1);margin-bottom:16px}.routing-rule-input[data-v-5f61c45d]{align-items:center;column-gap:40px;display:flex}.routing-rule-input .k-input[data-v-5f61c45d]{width:100%}.routing-rule-input[data-v-5f61c45d]:not(:first-of-type){margin-top:16px}.routing-rule-input .methods-input-container[data-v-5f61c45d]{display:flex;flex-wrap:wrap;gap:12px}.routing-rule-input .methods-input[data-v-5f61c45d]{display:flex;flex-wrap:wrap;gap:4px}.routing-rule-input .methods-input[data-v-5f61c45d] label.k-switch{margin:0!important}.routing-rule-container[data-v-5b1f7bb4]:not(:first-of-type){margin-top:24px}.routing-rule-container hr[data-v-5b1f7bb4]{border:0;border-top:1px solid rgba(0,0,0,.1);margin-bottom:16px}.routing-rule-input[data-v-5b1f7bb4]{align-items:center;column-gap:40px;display:flex}.routing-rule-input .k-input[data-v-5b1f7bb4]{width:100%}.routing-rule-input[data-v-5b1f7bb4]:not(:first-of-type){margin-top:16px}.routing-rule-input .methods-input-container[data-v-5b1f7bb4]{display:flex;flex-wrap:wrap;gap:12px}.routing-rule-input .methods-input[data-v-5b1f7bb4]{display:flex;flex-wrap:wrap;gap:4px}.routing-rule-input .methods-input[data-v-5b1f7bb4] label.k-switch{margin:0!important}.routing-rule-container[data-v-63640996]:not(:first-of-type){margin-top:24px}.routing-rule-container hr[data-v-63640996]{border:0;border-top:1px solid rgba(0,0,0,.1);margin-bottom:16px}.routing-rule-input[data-v-63640996]{align-items:center;column-gap:40px;display:flex}.routing-rule-input .k-input[data-v-63640996]{width:100%}.routing-rule-input[data-v-63640996]:not(:first-of-type){margin-top:16px}.routing-rule-input .methods-input-container[data-v-63640996]{display:flex;flex-wrap:wrap;gap:12px}.routing-rule-input .methods-input[data-v-63640996]{display:flex;flex-wrap:wrap;gap:4px}.routing-rule-input .methods-input[data-v-63640996] label.k-switch{margin:0!important}.routing-rule-container[data-v-08fcd8c5]:not(:first-of-type){margin-top:24px}.routing-rule-container hr[data-v-08fcd8c5]{border:0;border-top:1px solid rgba(0,0,0,.1);margin-bottom:16px}.routing-rule-input[data-v-08fcd8c5]{align-items:center;column-gap:40px;display:flex}.routing-rule-input .k-input[data-v-08fcd8c5]{width:100%}.routing-rule-input[data-v-08fcd8c5]:not(:first-of-type){margin-top:16px}.routing-rule-input .methods-input-container[data-v-08fcd8c5]{display:flex;flex-wrap:wrap;gap:12px}.routing-rule-input .methods-input[data-v-08fcd8c5]{display:flex;flex-wrap:wrap;gap:4px}.routing-rule-input .methods-input[data-v-08fcd8c5] label.k-switch{margin:0!important}.route-form-config-tabs-tooltip[data-v-f1c7a92f]{display:inline-flex;margin:auto 0 auto 4px;vertical-align:middle}.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}.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-83e76105]{width:100%}.kong-ui-entities-route-form .route-form-service-dropdown-item[data-v-83e76105]{display:flex;flex-direction:column}.kong-ui-entities-route-form .route-form-service-dropdown-item .select-item-label[data-v-83e76105]{font-weight:600}.kong-ui-entities-route-form .route-form-service-dropdown-item .select-item-description[data-v-83e76105]{color:#6c7489;font-size:12px}.kong-ui-entities-route-form .route-form-config-type-immutable-alert[data-v-83e76105]{margin-bottom:16px}.kong-ui-entities-route-form .route-form-routing-rules-title-container[data-v-83e76105]{display:flex;justify-content:center}.kong-ui-entities-route-form .route-form-routing-rules-title-container .protocol-title[data-v-83e76105]{font-size:16px}.kong-ui-entities-route-form .route-form-routing-rules-title-container .protocol-title[data-v-83e76105]: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-83e76105]{font-size:16px;margin-left:8px}.kong-ui-entities-route-form .route-form-routing-rules-selector-container[data-v-83e76105]{margin-top:24px}.kong-ui-entities-route-form .route-form-routing-rules-selector-container hr[data-v-83e76105]{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-83e76105]{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-83e76105]{display:flex;margin:0;padding:0}.kong-ui-entities-route-form .route-form-routing-rules-selector-options ul li[data-v-83e76105]{display:inline-flex;list-style:none}.kong-ui-entities-route-form .route-form-routing-rules-selector-options .option[data-v-83e76105]{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-83e76105]{color:#5f9aff;pointer-events:none;text-decoration:line-through}.kong-ui-entities-route-form .route-form-routing-rules-selector-options .option[data-v-83e76105]: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-83e76105]{box-shadow:none}.kong-ui-entities-route-form .route-form-advanced-fields-collapse[data-v-83e76105],.kong-ui-entities-route-form .route-form-advanced-fields-container[data-v-83e76105]{margin-top:24px}.kong-ui-entities-route-form .route-form-fields-container[data-v-83e76105]>*:not(:first-child){margin-top:24px}.kong-ui-entities-route-form .k-checkbox[data-v-83e76105]{display:flex}.kong-ui-entities-route-form[data-v-83e76105] .form-section-content{min-width:0}.kong-ui-entities-route-form .expression-editor[data-v-83e76105]{min-height:200px}.expression-editor[data-v-eb43a28e]{border:1px solid #e0e4ea;border-radius:3px;min-height:200px;overflow:hidden;transition:border-color linear .15s;width:100%}.expression-editor.invalid[data-v-eb43a28e]{border-color:#d60027}.page-header h1[data-v-1f2ee68f],h2[data-v-1f2ee68f],h3[data-v-1f2ee68f],h4[data-v-1f2ee68f],h5[data-v-1f2ee68f],h6[data-v-1f2ee68f]{color:#000933;font-size:24px;font-weight:700}.page-header h1 .title[data-v-1f2ee68f],h2 .title[data-v-1f2ee68f],h3 .title[data-v-1f2ee68f],h4 .title[data-v-1f2ee68f],h5 .title[data-v-1f2ee68f],h6 .title[data-v-1f2ee68f]{word-break:break-all}.row[data-v-1f2ee68f]{display:flex;flex-wrap:wrap;justify-content:space-between;margin-left:-16px;margin-right:-16px;padding:0 16px}.col[data-v-1f2ee68f]{line-height:36px}h1[data-v-1f2ee68f],h2[data-v-1f2ee68f],h3[data-v-1f2ee68f],h4[data-v-1f2ee68f],h5[data-v-1f2ee68f],h6[data-v-1f2ee68f],nav[data-v-1f2ee68f]{margin-bottom:20px;margin-top:0}.title-no-margin[data-v-1f2ee68f]{margin:0!important}.operations[data-v-1f2ee68f]{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-68ca83ec]{border:solid 1px #e0e4ea;border-radius:4px;margin-bottom:8px;margin-top:4px}.config-card-fieldset-title[data-v-68ca83ec]{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-711ebcf2]{align-items:center;border-bottom:var(--2f5b0492);display:var(--5d59c22c);padding:16px 16px 16px 0;width:100%}.config-card-details-row .config-card-details-label[data-v-711ebcf2]{width:var(--aa41a894)}.config-card-details-row .config-card-details-label label[data-v-711ebcf2]{color:#3a3f51}.config-card-details-row .config-card-details-value[data-v-711ebcf2]{width:var(--aa3d1cde)}.config-card-details-row .config-card-details-value .truncated[data-v-711ebcf2]{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-711ebcf2]{overflow-wrap:anywhere}.config-card-details-row .config-card-details-value .copy-uuid-array[data-v-711ebcf2] .k-copy:not(:last-of-type){margin-bottom:8px}.config-card-details-row .config-card-details-value .method-badge-array[data-v-711ebcf2]{display:flex;flex-wrap:wrap;row-gap:10px}.config-card-details-row .config-badge[data-v-711ebcf2]{margin-right:4px}.config-card-details-row[data-v-711ebcf2] .k-label{margin-bottom:0}.config-card-details-row[data-v-711ebcf2] .k-label .kong-icon-infoFilled{display:flex}.config-card-details-row[data-v-711ebcf2] .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(--454fa8c4);overflow:hidden!important;text-align:left;text-overflow:ellipsis;white-space:nowrap}.config-card-prop-section-title[data-v-d15be7fe]{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-d957ab89]{align-items:center;display:flex}.kong-ui-entity-base-config-card .config-card-actions .config-format-select-label[data-v-d957ab89]{margin-bottom:0;margin-right:8px}.kong-ui-entity-base-config-card .config-card-prop-section-title[data-v-d957ab89]{color:#000933;font-size:16px;font-weight:600;margin-bottom:16px;margin-top:48px}.kong-ui-entity-base-config-card[data-v-d957ab89] .config-card-details-row:last-of-type{border-bottom:none}.kong-ui-entity-base-config-card .book-icon[data-v-d957ab89]{margin-left:8px;padding:0}.kong-ui-entity-base-form[data-v-6210a67a]{box-sizing:border-box;max-width:1536px;width:100%}.kong-ui-entity-base-form .form-actions[data-v-6210a67a]{align-items:center;display:flex;justify-content:flex-end;margin-top:24px}.kong-ui-entity-base-form .form-actions[data-v-6210a67a] .k-button:last-of-type,.kong-ui-entity-base-form .form-actions[data-v-6210a67a] .k-button:nth-last-of-type(2){margin-left:16px}.kong-ui-entity-base-form[data-v-6210a67a] .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-6210a67a] .k-card.content-card{padding:0 16px!important}.kong-ui-entity-base-form[data-v-6210a67a] .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-6210a67a] .tab-item.active>div.tab-link.has-panels{color:#000933!important;font-weight:600!important}.content-wrapper[data-v-b252463e] .k-tooltip{word-break:break-all}.kong-ui-entity-base-table .toolbar-container[data-v-765e475b]{align-items:center;display:flex;width:100%}.kong-ui-entity-base-table .toolbar-button-container[data-v-765e475b]{margin-left:auto}.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-60e3ef7c]{align-items:center;display:flex}.kong-ui-public-entity-link .deleted-entity[data-v-60e3ef7c]{font-style:italic}.kong-ui-public-entity-link .entity-link[data-v-60e3ef7c]{display:flex}.kong-ui-public-entity-link .entity-link[data-v-60e3ef7c] .external-link-icon{color:#0044f4;margin-left:4px;padding:2px}.kong-ui-public-entity-link .entity-link-label[data-v-60e3ef7c]{display:inline-block;font-weight:400;max-width:20ch;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.kong-ui-public-entity-link .copy-uuid-tooltip[data-v-60e3ef7c]{align-items:center;cursor:pointer;display:flex}.kong-ui-public-entity-link .copy-uuid-tooltip .entity-link-copy-id[data-v-60e3ef7c]{margin-left:2px}.kong-ui-entities-routes-list[data-v-cb29085c]{width:100%}.kong-ui-entities-routes-list .kong-ui-entity-filter-input[data-v-cb29085c]{margin-right:12px}.kong-ui-entities-routes-list .route-list-cell-expression[data-v-cb29085c]{font-family:JetBrains Mono,Consolas,monospace}.routing-rules-entities-controls-container[data-v-e024298d]{display:flex;gap:4px}.routing-rule-container[data-v-d41b39fd]:not(:first-of-type){margin-top:24px}.routing-rule-container hr[data-v-d41b39fd]{border:0;border-top:1px solid rgba(0,0,0,.1);margin-bottom:16px}.routing-rule-input[data-v-d41b39fd]{align-items:center;column-gap:40px;display:flex}.routing-rule-input .k-input[data-v-d41b39fd]{width:100%}.routing-rule-input[data-v-d41b39fd]:not(:first-of-type){margin-top:16px}.routing-rule-input .methods-input-container[data-v-d41b39fd]{display:flex;flex-wrap:wrap;gap:12px}.routing-rule-input .methods-input[data-v-d41b39fd]{display:flex;flex-wrap:wrap;gap:4px}.routing-rule-input .methods-input[data-v-d41b39fd] label.k-switch{margin:0!important}.routing-rule-container[data-v-ca0bb10b]:not(:first-of-type){margin-top:24px}.routing-rule-container hr[data-v-ca0bb10b]{border:0;border-top:1px solid rgba(0,0,0,.1);margin-bottom:16px}.routing-rule-input[data-v-ca0bb10b]{align-items:center;column-gap:40px;display:flex}.routing-rule-input .k-input[data-v-ca0bb10b]{width:100%}.routing-rule-input[data-v-ca0bb10b]:not(:first-of-type){margin-top:16px}.routing-rule-input .methods-input-container[data-v-ca0bb10b]{display:flex;flex-wrap:wrap;gap:12px}.routing-rule-input .methods-input[data-v-ca0bb10b]{display:flex;flex-wrap:wrap;gap:4px}.routing-rule-input .methods-input[data-v-ca0bb10b] label.k-switch{margin:0!important}.routing-rule-container[data-v-88d16377]:not(:first-of-type){margin-top:24px}.routing-rule-container hr[data-v-88d16377]{border:0;border-top:1px solid rgba(0,0,0,.1);margin-bottom:16px}.routing-rule-input[data-v-88d16377]{align-items:center;column-gap:40px;display:flex}.routing-rule-input .k-input[data-v-88d16377]{width:100%}.routing-rule-input[data-v-88d16377]:not(:first-of-type){margin-top:16px}.routing-rule-input .methods-input-container[data-v-88d16377]{display:flex;flex-wrap:wrap;gap:12px}.routing-rule-input .methods-input[data-v-88d16377]{display:flex;flex-wrap:wrap;gap:4px}.routing-rule-input .methods-input[data-v-88d16377] label.k-switch{margin:0!important}.routing-rule-container[data-v-c8ae1bc5]:not(:first-of-type){margin-top:24px}.routing-rule-container hr[data-v-c8ae1bc5]{border:0;border-top:1px solid rgba(0,0,0,.1);margin-bottom:16px}.routing-rule-input[data-v-c8ae1bc5]{align-items:center;column-gap:40px;display:flex}.routing-rule-input .k-input[data-v-c8ae1bc5]{width:100%}.routing-rule-input[data-v-c8ae1bc5]:not(:first-of-type){margin-top:16px}.routing-rule-input .methods-input-container[data-v-c8ae1bc5]{display:flex;flex-wrap:wrap;gap:12px}.routing-rule-input .methods-input[data-v-c8ae1bc5]{display:flex;flex-wrap:wrap;gap:4px}.routing-rule-input .methods-input[data-v-c8ae1bc5] label.k-switch{margin:0!important}.routing-rule-container[data-v-bc31ca96]:not(:first-of-type){margin-top:24px}.routing-rule-container hr[data-v-bc31ca96]{border:0;border-top:1px solid rgba(0,0,0,.1);margin-bottom:16px}.routing-rule-input[data-v-bc31ca96]{align-items:center;column-gap:40px;display:flex}.routing-rule-input .k-input[data-v-bc31ca96]{width:100%}.routing-rule-input[data-v-bc31ca96]:not(:first-of-type){margin-top:16px}.routing-rule-input .methods-input-container[data-v-bc31ca96]{display:flex;flex-wrap:wrap;gap:12px}.routing-rule-input .methods-input[data-v-bc31ca96]{display:flex;flex-wrap:wrap;gap:4px}.routing-rule-input .methods-input[data-v-bc31ca96] label.k-switch{margin:0!important}.routing-rule-container[data-v-c3679dd9]:not(:first-of-type){margin-top:24px}.routing-rule-container hr[data-v-c3679dd9]{border:0;border-top:1px solid rgba(0,0,0,.1);margin-bottom:16px}.routing-rule-input[data-v-c3679dd9]{align-items:center;column-gap:40px;display:flex}.routing-rule-input .k-input[data-v-c3679dd9]{width:100%}.routing-rule-input[data-v-c3679dd9]:not(:first-of-type){margin-top:16px}.routing-rule-input .methods-input-container[data-v-c3679dd9]{display:flex;flex-wrap:wrap;gap:12px}.routing-rule-input .methods-input[data-v-c3679dd9]{display:flex;flex-wrap:wrap;gap:4px}.routing-rule-input .methods-input[data-v-c3679dd9] label.k-switch{margin:0!important}.routing-rule-container[data-v-50c52494]:not(:first-of-type){margin-top:24px}.routing-rule-container hr[data-v-50c52494]{border:0;border-top:1px solid rgba(0,0,0,.1);margin-bottom:16px}.routing-rule-input[data-v-50c52494]{align-items:center;column-gap:40px;display:flex}.routing-rule-input .k-input[data-v-50c52494]{width:100%}.routing-rule-input[data-v-50c52494]:not(:first-of-type){margin-top:16px}.routing-rule-input .methods-input-container[data-v-50c52494]{display:flex;flex-wrap:wrap;gap:12px}.routing-rule-input .methods-input[data-v-50c52494]{display:flex;flex-wrap:wrap;gap:4px}.routing-rule-input .methods-input[data-v-50c52494] label.k-switch{margin:0!important}.route-form-config-tabs-tooltip[data-v-f1c7a92f]{display:inline-flex;margin:auto 0 auto 4px;vertical-align:middle}.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}.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-6c1044e5]{width:100%}.kong-ui-entities-route-form .route-form-service-dropdown-item[data-v-6c1044e5]{display:flex;flex-direction:column}.kong-ui-entities-route-form .route-form-service-dropdown-item .select-item-label[data-v-6c1044e5]{font-weight:600}.kong-ui-entities-route-form .route-form-service-dropdown-item .select-item-description[data-v-6c1044e5]{color:#6c7489;font-size:12px}.kong-ui-entities-route-form .route-form-config-type-immutable-alert[data-v-6c1044e5]{margin-bottom:16px}.kong-ui-entities-route-form .route-form-routing-rules-title-container[data-v-6c1044e5]{display:flex;justify-content:center}.kong-ui-entities-route-form .route-form-routing-rules-title-container .protocol-title[data-v-6c1044e5]{font-size:16px}.kong-ui-entities-route-form .route-form-routing-rules-title-container .protocol-title[data-v-6c1044e5]: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-6c1044e5]{font-size:16px;margin-left:8px}.kong-ui-entities-route-form .route-form-routing-rules-selector-container[data-v-6c1044e5]{margin-top:24px}.kong-ui-entities-route-form .route-form-routing-rules-selector-container hr[data-v-6c1044e5]{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-6c1044e5]{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-6c1044e5]{display:flex;margin:0;padding:0}.kong-ui-entities-route-form .route-form-routing-rules-selector-options ul li[data-v-6c1044e5]{display:inline-flex;list-style:none}.kong-ui-entities-route-form .route-form-routing-rules-selector-options .option[data-v-6c1044e5]{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-6c1044e5]{color:#5f9aff;pointer-events:none;text-decoration:line-through}.kong-ui-entities-route-form .route-form-routing-rules-selector-options .option[data-v-6c1044e5]: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-6c1044e5]{box-shadow:none}.kong-ui-entities-route-form .route-form-advanced-fields-collapse[data-v-6c1044e5],.kong-ui-entities-route-form .route-form-advanced-fields-container[data-v-6c1044e5]{margin-top:24px}.kong-ui-entities-route-form .route-form-fields-container[data-v-6c1044e5]>*:not(:first-child){margin-top:24px}.kong-ui-entities-route-form .k-checkbox[data-v-6c1044e5]{display:flex}.kong-ui-entities-route-form[data-v-6c1044e5] .form-section-content{min-width:0}.kong-ui-entities-route-form .expression-editor[data-v-6c1044e5]{min-height:200px}.expression-editor[data-v-eb43a28e]{border:1px solid #e0e4ea;border-radius:3px;min-height:200px;overflow:hidden;transition:border-color linear .15s;width:100%}.expression-editor.invalid[data-v-eb43a28e]{border-color:#d60027}.page-header h1[data-v-1f2ee68f],h2[data-v-1f2ee68f],h3[data-v-1f2ee68f],h4[data-v-1f2ee68f],h5[data-v-1f2ee68f],h6[data-v-1f2ee68f]{color:#000933;font-size:24px;font-weight:700}.page-header h1 .title[data-v-1f2ee68f],h2 .title[data-v-1f2ee68f],h3 .title[data-v-1f2ee68f],h4 .title[data-v-1f2ee68f],h5 .title[data-v-1f2ee68f],h6 .title[data-v-1f2ee68f]{word-break:break-all}.row[data-v-1f2ee68f]{display:flex;flex-wrap:wrap;justify-content:space-between;margin-left:-16px;margin-right:-16px;padding:0 16px}.col[data-v-1f2ee68f]{line-height:36px}h1[data-v-1f2ee68f],h2[data-v-1f2ee68f],h3[data-v-1f2ee68f],h4[data-v-1f2ee68f],h5[data-v-1f2ee68f],h6[data-v-1f2ee68f],nav[data-v-1f2ee68f]{margin-bottom:20px;margin-top:0}.title-no-margin[data-v-1f2ee68f]{margin:0!important}.operations[data-v-1f2ee68f]{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}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kong-ui-public/entities-routes",
3
- "version": "3.8.30",
3
+ "version": "3.8.31",
4
4
  "type": "module",
5
5
  "main": "./dist/entities-routes.umd.js",
6
6
  "module": "./dist/entities-routes.es.js",
@@ -26,8 +26,8 @@
26
26
  "axios": "^1.7.7",
27
27
  "vue": ">= 3.3.13 < 4",
28
28
  "vue-router": "^4.4.5",
29
- "@kong-ui-public/i18n": "^2.2.4",
30
- "@kong-ui-public/entities-shared": "^3.9.23"
29
+ "@kong-ui-public/entities-shared": "^3.9.23",
30
+ "@kong-ui-public/i18n": "^2.2.4"
31
31
  },
32
32
  "devDependencies": {
33
33
  "@kong/design-tokens": "1.17.2",