@kong-ui-public/entities-routes 3.10.12 → 3.10.13

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.
@@ -797,7 +797,7 @@ const le = {
797
797
  ]),
798
798
  key: "0"
799
799
  } : void 0,
800
- l.enableV2EmptyStates && l.config.app === "konnect" ? {
800
+ !K.value && l.enableV2EmptyStates && l.config.app === "konnect" ? {
801
801
  name: "empty-state",
802
802
  fn: n(() => {
803
803
  var _;
@@ -855,7 +855,7 @@ const le = {
855
855
  for (const [a, f] of w)
856
856
  I[a] = f;
857
857
  return I;
858
- }, ms = /* @__PURE__ */ re(po, [["__scopeId", "data-v-5f4371f6"]]);
858
+ }, ms = /* @__PURE__ */ re(po, [["__scopeId", "data-v-8a0411ce"]]);
859
859
  var fo = /* @__PURE__ */ ((l) => (l.GET = "GET", l.PUT = "PUT", l.POST = "POST", l.PATCH = "PATCH", l.DELETE = "DELETE", l.OPTIONS = "OPTIONS", l.HEAD = "HEAD", l.CONNECT = "CONNECT", l.TRACE = "TRACE", l.CUSTOM = "CUSTOM", l))(fo || {}), N = /* @__PURE__ */ ((l) => (l.TRADITIONAL = "traditional", l.EXPRESSIONS = "expressions", l))(N || {}), r = /* @__PURE__ */ ((l) => (l.PATHS = "paths", l.SNIS = "snis", l.HOSTS = "hosts", l.METHODS = "methods", l.HEADERS = "headers", l.SOURCES = "sources", l.DESTINATIONS = "destinations", l.CUSTOM_METHOD = "custom-method", l))(r || {}), Ae = /* @__PURE__ */ ((l) => (l.LOADING = "loading", l.ERROR = "error", l.READY = "ready", l))(Ae || {});
860
860
  const ae = (l) => l.routeFlavors.traditional === !0, Pe = (l) => l.routeFlavors.expressions === !0, mo = { class: "routing-rules-entities-controls-container" }, ho = /* @__PURE__ */ Q({
861
861
  __name: "RoutingRulesEntitiesControls",
@@ -1 +1 @@
1
- (function(R,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):(R=typeof globalThis<"u"?globalThis:R||self,e(R["kong-ui-public-entities-routes"]={},R.Vue,R.VueRouter,R.Kongponents,R.KongIcons,R["kong-ui-public-entities-shared"],R["kong-ui-public-i18n"],R.isEqual,R["kong-ui-public-expressions"]))})(this,function(R,e,Ie,Re,z,y,Be,Fe,me){"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",exact:"Filter by exact name or ID",kongManager:"Filter by exact name or ID"},no_results:"No results found"},routes:{title:"Routes",list:{toolbar_actions:{new_route:"New route"},table_headers:{name:"Name",protocols:"Protocols",hosts:"Hosts",methods:"Methods",paths:"Paths",expression:"Expression",id:"ID",tags:"Tags",created_at:"Created At",updated_at:"Last Modified"},empty_state:{title:"Configure a New Route",description:"Routes proxy requests to an associated Service."},empty_state_v2:{title:"Configure your first route",group:"Routes created in gateways within this group will automatically appear here.",description:"Routes direct incoming API requests to the appropriate gateway service based on paths, methods, and headers, ensuring efficient traffic flow."}}},delete:{title:"Delete a Route",description:"Deleting this route will also remove any associated plugins. This action cannot be reversed."},errors:{general:"Routes could not be retrieved",delete:"The route could not be deleted at this time.",copy:"Failed to copy to clipboard",services:{fetch:"Could not fetch available services"}},copy:{success:"Copied {val} to clipboard",success_brief:"Successfully copied to clipboard"},form:{protocols:{grpc:"GRPC",grpcs:"GRPCS","grpc,grpcs":"GRPC, GRPCS",http:"HTTP",https:"HTTPS","http,https":"HTTP, HTTPS",tls:"TLS",tcp:"TCP",udp:"UDP","tls,udp":"TLS, UDP","tcp,udp":"TCP, UDP","tcp,tls":"TCP, TLS","tcp,tls,udp":"TCP, TLS, UDP",ws:"WS",wss:"WSS","ws,wss":"WS, WSS",tls_passthrough:"TLS_PASSTHROUGH"},sections:{general:{title:"General Information",description:"General information will help you identify and manage this route"},config:{title:"Route Configuration",description:"Route configuration determines how this route will handle incoming requests"},routingRules:{title:"Routing Rules"},routingExpression:{title:"Routing Expression"}},fields:{service_id:{label:"Service",placeholder:"Select a service"},name:{label:"Name",placeholder:"Enter a unique name",tooltip:"The name of the Route. Route names must be unique, and they are case sensitive. For example, there can be two different Routes named 'test' and 'Test'."},service:{label:"Gateway Service",tooltip:"The Service this Route is associated to. This is where the Route proxies traffic to."},tags:{label:"Tags",tooltip:"An optional set of strings associated with the Route for grouping and filtering.",placeholder:"Enter a list of tags separated by commas",help:"e.g. tag1, tag2, tag3"},protocols:{label:"Protocols",tooltip:"Routes have a protocols property to restrict the client protocol they should listen for.",tooltipConfig:"An array of the protocols this Route should allow. See the {code1} section for a list of accepted protocols. When set to only {code2}, HTTP requests are answered with an upgrade error. When it is set to only {code3}, this is essentially the same as {code4} in that both HTTP and HTTPS requests are allowed. Default: {code5}.",code1:"Route Object",code2:"https",code3:"http",code4:"['http', 'https']",code5:"['http', 'https']"},path_handling:{label:"Path Handling",tooltip:"This treats service.path, route.path and request path as segments of a URL.",tooltipConfig:"Controls how the Service path, Route path and requested path are combined when sending a request to the upstream. See above for a detailed description of each behavior."},https_redirect_status_code:{label:"HTTPS Redirect Status Code",tooltip:"The status code Kong responds with when all properties of a Route match except the protocol i.e. if the protocol of the request is {code1} instead of {code2}. {code3} header is injected by Kong if the field is set to 301, 302, 307 or 308. Note: This config applies only if the Route is configured to only accept the {code4} protocol.",code1:"HTTP",code2:"HTTPS",code3:"Location",code4:"https"},regex_priority:{label:"Regex Priority",tooltip:"A number used to choose which route resolves a given request when several routes match it using regexes simultaneously. When two routes match the path and have the same {code1}, the older one (lowest {code2}) is used. Note that the priority for non-regex routes is different (longer non-regex routes are matched before shorter ones).",code1:"regex_priority",code2:"created_at"},strip_path:{label:"Strip Path",tooltip:"When matching a Route via one of the {code1}, strip the matching prefix from the upstream request URL.",code1:"paths"},preserve_host:{label:"Preserve Host",tooltip:"When matching a Route via one of the {code1} domain names, use the request {code2} header in the upstream request headers. If set to {code3}, the upstream {code4} header will be that of the Service's {code5}.",code1:"hosts",code2:"Host",code3:"false",code4:"Host",code5:"host"},paths:{label:"Paths",placeholder:"Enter a path",tooltip:"A list of paths that match this Route."},snis:{label:"SNIs",placeholder:"Enter a SNI",tooltip:"A list of SNIs (Server Name Indications from a TLS ClientHello) that match this Route."},hosts:{label:"Hosts",placeholder:"Enter a host",tooltip:"A list of domain names that match this Route.",tooltipConfig:"A list of domain names that match this Route. Note that the hosts value is case sensitive."},methods:{label:"Methods",tooltip:"A list of HTTP methods that match this Route.",custom:{label:"Custom",placeholder:"Enter a custom method",tooltip:"Custom methods can be used with default selections. Uppercase characters are required."}},headers:{label:"Headers",tooltip:"Header values can be separated by commas (value1, value2, value3).",name:{placeholder:"Enter a header name"},values:{placeholder:"Enter a header value"},tooltipConfig:"One or more lists of values indexed by header name that will cause this Route to match if present in the request. The {code1} header cannot be used with this attribute: hosts should be specified using the {code2} attribute. When {code3} contains only one value and that value starts with the special prefix {code4], the value is interpreted as a regular expression.",code1:"Host",code2:"hosts",code3:"headers",code4:"*"},sources:{label:"Sources",tooltip:"A list of IP sources of incoming connections that match this Route when using stream routing.",ip:{placeholder:"Enter a source IP"},port:{placeholder:"Enter a source port"}},destinations:{label:"Destinations",tooltip:"A list of IP destinations of incoming connections that match this Route when using stream routing.",ip:{placeholder:"Enter a destination IP"},port:{placeholder:"Enter a destination port"}},response_buffering:{label:"Response buffering",tooltip:"Whether to enable response body buffering or not. With HTTP 1.1, it may make sense to turn this off on services that send data with chunked transfer encoding."},request_buffering:{label:"Request buffering",tooltip:"Whether to enable request body buffering or not. With HTTP 1.1, it may make sense to turn this off on services that receive data with chunked transfer encoding."},expression:{label:"Expression",tooltip:"The route expression."},priority:{label:"Priority",tooltip:"A number used to choose which route resolves a given request when several routes match it using expression simultaneously."}},flavors:{traditional:"Traditional",expressions:"Expressions"},viewAdvancedFields:"View Advanced Fields",addNewRule:"Add New Rule",warning:{rulesMessage:"For {protocol}, at least one of {routingRules} must be set.",singleRule:"{routingRules}",multipleRules:"{routingRules} or {lastRoutingRule}",cannotChangeFlavor:{create:"The format of the route cannot be changed once created.",edit:"This route was configured in the {format} format, and cannot be changed after creation. You can switch to the {format} tab to edit, or create a new route in a different format instead."}},expressions_editor:{loading:"Loading the Expressions editor…",error:"Error occurred while loading the Expressions editor. Please view the console for more details."},expression_playground:{test_link:"Test with Router Playground",supported_protocols_hint:"Currently only supports the following protocols: {protocols}"}}};function xe(){const l=Be.createI18n("en-us",Pe);return{i18n:l,i18nT:Be.i18nTComponent(l)}}const K={useI18n:xe},U="/v2/control-planes/{controlPlaneId}/core-entities",M="/{workspace}",ne={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}`}}},Ae="#d60027",He="#00abd2",Oe="#6c7489",Ve="16px",Ue="24px",Me={class:"kong-ui-entities-routes-list"},Le={class:"button-row"},qe={class:"empty-state-icon-gateway"},Ke={key:1},Ge={key:1},je={key:1},We={class:"route-list-cell-expression"},Xe=e.defineComponent({__name:"RouteList",props:{config:{type:Object,required:!0,validator:l=>!(!l||!["konnect","kongManager"].includes(l==null?void 0:l.app)||!l.createRoute||!l.getViewRoute||!l.getEditRoute||l.app==="kongManager"&&!l.isExactMatch&&!l.filterSchema)},cacheIdentifier:{type:String,default:""},canCreate:{type:Function,required:!1,default:async()=>!0},canDelete:{type:Function,required:!1,default:async()=>!0},canEdit:{type:Function,required:!1,default:async()=>!0},canRetrieve:{type:Function,required:!1,default:async()=>!0},title:{type:String,default:""},titleTag:{type:String,default:"h2"},useActionOutside:{type:Boolean,default:!1},hideTraditionalColumns:{type:Boolean,default:!1},hasExpressionColumn:{type:Boolean,default:!1},enableV2EmptyStates:{type:Boolean,default:!1}},emits:["error","click:learn-more","copy:success","copy:error","delete:success"],setup(l,{emit:N}){var fe;const g=N,i=l,{i18n:{t:c,formatUnixTimeStamp:n}}=K.useI18n(),p=Ie.useRouter(),{axiosInstance:u}=y.useAxios((fe=i.config)==null?void 0:fe.axiosRequestConfig),{handleStateChange:b,hasRecords:V}=y.useTableState(()=>x.value),B=e.computed(()=>V.value&&i.config.app==="konnect"),f=e.computed(()=>!i.enableV2EmptyStates&&i.config.app==="konnect"),a=e.computed(()=>!!i.config.serviceId),D=e.computed(()=>i.config.app!=="kongManager"||!!i.config.disableSorting),W={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}},E={columnVisibility:{created_at:!1}},w=W,P=e.computed(()=>{var C,I,O,H;let S=`${i.config.apiBaseUrl}${ne.list[i.config.app][i.config.serviceId?"forGatewayService":"all"]}`;return i.config.app==="konnect"?S=S.replace(/{controlPlaneId}/gi,((C=i.config)==null?void 0:C.controlPlaneId)||"").replace(/{serviceId}/gi,((I=i.config)==null?void 0:I.serviceId)||""):i.config.app==="kongManager"&&(S=S.replace(/\/{workspace}/gi,(O=i.config)!=null&&O.workspace?`/${i.config.workspace}`:"").replace(/{serviceId}/gi,((H=i.config)==null?void 0:H.serviceId)||"")),S}),x=e.ref(""),t=e.computed(()=>{const S=i.config.app==="konnect"||i.config.isExactMatch;if(S)return{isExactMatch:S,placeholder:c(`search.placeholder.${i.config.isExactMatch?"exact":i.config.app}`)};const{name:C,protocols:I,hosts:O,methods:H,paths:J,expression:le}=W,h={name:C,protocols:I,hosts:O,methods:H,paths:J,...i.hasExpressionColumn&&{expression:le}};return{isExactMatch:S,fields:h,schema:i.config.filterSchema}}),{fetcher:L,fetcherState:re,fetcherCacheKey:ie}=y.useFetcher({...i.config,cacheIdentifier:i.cacheIdentifier},P.value),A=S=>S.headerKey==="expression"?{style:{maxWidth:"250px",overflowX:"hidden",textOverflow:"ellipsis"}}:{},Ce=()=>{x.value=""},ke=()=>{ie.value++},ae=e.ref(null),ye=(S,C)=>{const I=S.id;if(!C(I)){g("copy:error",{entity:S,field:"id",message:c("errors.copy")});return}g("copy:success",{entity:S,field:"id",message:c("copy.success",{val:I})})},de=(S,C)=>{const I=JSON.stringify(S);if(!C(I)){g("copy:error",{entity:S,message:c("errors.copy")});return}g("copy:success",{entity:S,message:c("copy.success_brief")})},he=async S=>{var I;await((I=i.canRetrieve)==null?void 0:I.call(i,S))&&p.push(i.config.getViewRoute(S.id))},Ee=S=>({label:c("actions.view"),to:i.config.getViewRoute(S)}),Se=S=>({label:c("actions.edit"),to:i.config.getEditRoute(S)}),Q=e.ref(void 0),ce=e.ref(!1),pe=e.ref(!1),be=e.ref(""),$=y.useDeleteUrlBuilder(i.config,P.value),Z=S=>{Q.value=S,ce.value=!0},Ne=()=>{ce.value=!1},Y=async()=>{var S,C,I;if((S=Q.value)!=null&&S.id){pe.value=!0;try{await u.delete($(Q.value.id)),pe.value=!1,ce.value=!1,ie.value++,g("delete:success",Q.value)}catch(O){be.value=((I=(C=O.response)==null?void 0:C.data)==null?void 0:I.message)||O.message||c("errors.delete"),g("error",O)}finally{pe.value=!1}}},Te=()=>{p.push(i.config.createRoute)};e.watch(re,S=>{var C,I,O;if(S.status===y.FetcherStatus.Error){ae.value={title:c("errors.general")},(O=(I=(C=S.error)==null?void 0:C.response)==null?void 0:I.data)!=null&&O.message&&(ae.value.message=S.error.response.data.message),g("error",S.error);return}ae.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"))}),(S,C)=>{const I=e.resolveComponent("KButton"),O=e.resolveComponent("KBadge"),H=e.resolveComponent("KTruncate"),J=e.resolveComponent("KDropdownItem"),le=e.resolveComponent("KClipboardProvider");return e.openBlock(),e.createElementBlock("div",Me,[e.createVNode(e.unref(y.EntityBaseTable),{"cache-identifier":l.cacheIdentifier,"cell-attributes":A,"default-table-preferences":E,"disable-sorting":D.value,"empty-state-options":q.value,"enable-entity-actions":"","error-message":ae.value,fetcher:e.unref(L),"fetcher-cache-key":e.unref(ie),"pagination-type":"offset","preferences-storage-key":"kong-ui-entities-routes-list",query:x.value,"table-headers":e.unref(w),title:l.title,"title-tag":l.titleTag,onClearSearchInput:Ce,"onClick:row":C[8]||(C[8]=h=>he(h)),onSort:ke,onState:e.unref(b)},e.createSlots({"toolbar-filter":e.withCtx(()=>[e.createVNode(e.unref(y.EntityFilter),{modelValue:x.value,"onUpdate:modelValue":C[0]||(C[0]=h=>x.value=h),config:t.value},null,8,["modelValue","config"])]),"toolbar-button":e.withCtx(()=>[(e.openBlock(),e.createBlock(e.Teleport,{disabled:!l.useActionOutside,to:"#kong-ui-app-page-header-action-button"},[e.createElementVNode("div",Le,[!a.value&&B.value?(e.openBlock(),e.createBlock(I,{key:0,appearance:"secondary",class:"open-learning-hub","data-testid":"routes-learn-more-button",icon:"",onClick:C[1]||(C[1]=h=>S.$emit("click:learn-more"))},{default:e.withCtx(()=>[e.createVNode(e.unref(z.BookIcon),{decorative:""})]),_:1})):e.createCommentVNode("",!0),e.createVNode(e.unref(y.PermissionsWrapper),{"auth-function":()=>l.canCreate()},{default:e.withCtx(()=>[e.createVNode(I,{appearance:"primary","data-testid":"toolbar-add-route",size:l.useActionOutside?"medium":"large",to:l.config.createRoute},{default:e.withCtx(()=>[e.createVNode(e.unref(z.AddIcon)),e.createTextVNode(" "+e.toDisplayString(e.unref(c)("routes.list.toolbar_actions.new_route")),1)]),_:1},8,["size","to"])]),_:1},8,["auth-function"])])],8,["disabled"]))]),name:e.withCtx(({rowValue:h})=>[e.createElementVNode("b",null,e.toDisplayString(h??"-"),1)]),protocols:e.withCtx(({rowValue:h})=>[e.createVNode(H,null,{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(h,_=>(e.openBlock(),e.createBlock(O,{key:_,appearance:"neutral",onClick:C[4]||(C[4]=e.withModifiers(()=>{},["stop"]))},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(_),1)]),_:2},1024))),128))]),_:2},1024)]),hosts:e.withCtx(({rowValue:h})=>[(h==null?void 0:h.length)>0?(e.openBlock(),e.createBlock(H,{key:0},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(h,_=>(e.openBlock(),e.createBlock(O,{key:_,appearance:"neutral",tooltip:_,"truncation-tooltip":"",onClick:C[5]||(C[5]=e.withModifiers(()=>{},["stop"]))},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(_),1)]),_:2},1032,["tooltip"]))),128))]),_:2},1024)):(e.openBlock(),e.createElementBlock("span",Ke,"-"))]),methods:e.withCtx(({rowValue:h})=>[(h==null?void 0:h.length)>0?(e.openBlock(),e.createBlock(H,{key:0},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(h,_=>(e.openBlock(),e.createBlock(O,{key:_,appearance:Object.values(e.unref(Re.BadgeMethodAppearances)).includes(_.toLowerCase())?_.toLowerCase():"custom",onClick:C[6]||(C[6]=e.withModifiers(()=>{},["stop"]))},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(_),1)]),_:2},1032,["appearance"]))),128))]),_:2},1024)):(e.openBlock(),e.createElementBlock("span",Ge,"-"))]),paths:e.withCtx(({rowValue:h})=>[(h==null?void 0:h.length)>0?(e.openBlock(),e.createBlock(H,{key:0},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(h,_=>(e.openBlock(),e.createBlock(O,{key:_,appearance:"neutral",tooltip:_,"truncation-tooltip":"",onClick:C[7]||(C[7]=e.withModifiers(()=>{},["stop"]))},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(_),1)]),_:2},1032,["tooltip"]))),128))]),_:2},1024)):(e.openBlock(),e.createElementBlock("span",je,"-"))]),tags:e.withCtx(({rowValue:h})=>[e.createVNode(e.unref(y.TableTags),{tags:h},null,8,["tags"])]),expression:e.withCtx(({rowValue:h})=>[e.createElementVNode("span",We,e.toDisplayString(h||"-"),1)]),created_at:e.withCtx(({rowValue:h})=>[e.createTextVNode(e.toDisplayString(e.unref(n)(h)),1)]),updated_at:e.withCtx(({row:h,rowValue:_})=>[e.createTextVNode(e.toDisplayString(e.unref(n)(_??h.created_at)),1)]),actions:e.withCtx(({row:h})=>[e.createVNode(le,null,{default:e.withCtx(({copyToClipboard:_})=>[e.createVNode(J,{"data-testid":"action-entity-copy-id",onClick:se=>ye(h,_)},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(c)("actions.copy_id")),1)]),_:2},1032,["onClick"])]),_:2},1024),e.createVNode(le,null,{default:e.withCtx(({copyToClipboard:_})=>[e.createVNode(J,{"data-testid":"action-entity-copy-json",onClick:se=>de(h,_)},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(c)("actions.copy_json")),1)]),_:2},1032,["onClick"])]),_:2},1024),e.createVNode(e.unref(y.PermissionsWrapper),{"auth-function":()=>l.canRetrieve(h)},{default:e.withCtx(()=>[e.createVNode(J,{"data-testid":"action-entity-view","has-divider":"",item:Ee(h.id)},null,8,["item"])]),_:2},1032,["auth-function"]),e.createVNode(e.unref(y.PermissionsWrapper),{"auth-function":()=>l.canEdit(h)},{default:e.withCtx(()=>[e.createVNode(J,{"data-testid":"action-entity-edit",item:Se(h.id)},null,8,["item"])]),_:2},1032,["auth-function"]),e.createVNode(e.unref(y.PermissionsWrapper),{"auth-function":()=>l.canDelete(h)},{default:e.withCtx(()=>[e.createVNode(J,{danger:"","data-testid":"action-entity-delete","has-divider":"",onClick:_=>Z(h)},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(c)("actions.delete")),1)]),_:2},1032,["onClick"])]),_:2},1032,["auth-function"])]),_:2},[!e.unref(V)&&f.value?{name:"outside-actions",fn:e.withCtx(()=>[(e.openBlock(),e.createBlock(e.Teleport,{disabled:!l.useActionOutside,to:"#kong-ui-app-page-header-action-button"},[e.createVNode(I,{appearance:"secondary",class:"open-learning-hub","data-testid":"routes-learn-more-button",icon:"",onClick:C[2]||(C[2]=h=>S.$emit("click:learn-more"))},{default:e.withCtx(()=>[e.createVNode(e.unref(z.BookIcon),{decorative:""})]),_:1})],8,["disabled"]))]),key:"0"}:void 0,l.enableV2EmptyStates&&l.config.app==="konnect"?{name:"empty-state",fn:e.withCtx(()=>{var h;return[e.createVNode(e.unref(y.EntityEmptyState),{"action-button-text":e.unref(c)("routes.list.toolbar_actions.new_route"),appearance:"secondary","can-create":()=>l.canCreate(),"data-testid":l.config.serviceId?"nested-routes-entity-empty-state":"routes-entity-empty-state",description:e.unref(c)("routes.list.empty_state_v2.description"),"learn-more":l.config.app==="konnect",title:e.unref(c)("routes.list.empty_state_v2.title"),"onClick:create":Te,"onClick:learnMore":C[3]||(C[3]=_=>S.$emit("click:learn-more"))},e.createSlots({image:e.withCtx(()=>[e.createElementVNode("div",qe,[e.createVNode(e.unref(z.ForwardIcon),{color:e.unref(He),size:e.unref(Ue)},null,8,["color","size"])])]),_:2},[(h=l.config)!=null&&h.isControlPlaneGroup?{name:"message",fn:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(c)("routes.list.empty_state_v2.group")),1)]),key:"0"}:void 0]),1032,["action-button-text","can-create","data-testid","description","learn-more","title"])]}),key:"1"}:void 0]),1032,["cache-identifier","disable-sorting","empty-state-options","error-message","fetcher","fetcher-cache-key","query","table-headers","title","title-tag","onState"]),e.createVNode(e.unref(y.EntityDeleteModal),{"action-pending":pe.value,description:e.unref(c)("delete.description"),"entity-name":Q.value&&(Q.value.name||Q.value.id),"entity-type":e.unref(y.EntityTypes).Route,error:be.value,title:e.unref(c)("delete.title"),visible:ce.value,onCancel:Ne,onProceed:Y},null,8,["action-pending","description","entity-name","entity-type","error","title","visible"])])}}}),G=(l,N)=>{const g=l.__vccOpts||l;for(const[i,c]of N)g[i]=c;return g},ze=G(Xe,[["__scopeId","data-v-5f4371f6"]]);var De=(l=>(l.GET="GET",l.PUT="PUT",l.POST="POST",l.PATCH="PATCH",l.DELETE="DELETE",l.OPTIONS="OPTIONS",l.HEAD="HEAD",l.CONNECT="CONNECT",l.TRACE="TRACE",l.CUSTOM="CUSTOM",l))(De||{}),T=(l=>(l.TRADITIONAL="traditional",l.EXPRESSIONS="expressions",l))(T||{}),s=(l=>(l.PATHS="paths",l.SNIS="snis",l.HOSTS="hosts",l.METHODS="methods",l.HEADERS="headers",l.SOURCES="sources",l.DESTINATIONS="destinations",l.CUSTOM_METHOD="custom-method",l))(s||{}),te=(l=>(l.LOADING="loading",l.ERROR="error",l.READY="ready",l))(te||{});const j=l=>l.routeFlavors.traditional===!0,ue=l=>l.routeFlavors.expressions===!0,Je={class:"routing-rules-entities-controls-container"},oe=G(e.defineComponent({__name:"RoutingRulesEntitiesControls",props:{routingRulesEntity:{type:String,required:!0},isAddDisabled:{type:Boolean,default:!1}},emits:["remove","add"],setup(l){return(N,g)=>{const i=e.resolveComponent("KButton");return e.openBlock(),e.createElementBlock("div",Je,[e.createVNode(i,{appearance:"tertiary",class:"remove-button","data-testid":`remove-${l.routingRulesEntity}`,icon:"",onClick:g[0]||(g[0]=c=>N.$emit("remove"))},{default:e.withCtx(()=>[e.createVNode(e.unref(z.TrashIcon),{color:e.unref(Ae)},null,8,["color"])]),_:1},8,["data-testid"]),e.createVNode(i,{appearance:"tertiary","data-testid":`add-${l.routingRulesEntity}`,disabled:l.isAddDisabled,icon:"",onClick:g[1]||(g[1]=c=>N.$emit("add"))},{default:e.withCtx(()=>[e.createVNode(e.unref(z.AddIcon))]),_:1},8,["data-testid","disabled"])])}}}),[["__scopeId","data-v-e024298d"]]),Qe={class:"routing-rule-container"},Ye=G(e.defineComponent({__name:"RouteFormDestinationsFields",props:{modelValue:{type:Array,required:!0}},emits:["add","remove","update:modelValue"],setup(l,{emit:N}){const g=l,i=N,{i18n:{t:c}}=K.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 b=e.resolveComponent("KLabel"),V=e.resolveComponent("KInput");return e.openBlock(),e.createElementBlock("div",Qe,[u[1]||(u[1]=e.createElementVNode("hr",null,null,-1)),e.createVNode(b,{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,(B,f)=>(e.openBlock(),e.createElementBlock("div",{key:f,class:"routing-rule-input"},[e.createVNode(V,{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(V,{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(s).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"]]),Ze={class:"routing-rule-container"},ve=G(e.defineComponent({__name:"RouteFormHeadersFields",props:{modelValue:{type:Array,required:!0}},emits:["add","remove","update:modelValue"],setup(l,{emit:N}){const g=l,i=N,{i18n:{t:c}}=K.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 b=e.resolveComponent("KLabel"),V=e.resolveComponent("KInput");return e.openBlock(),e.createElementBlock("div",Ze,[u[1]||(u[1]=e.createElementVNode("hr",null,null,-1)),e.createVNode(b,{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,(B,f)=>(e.openBlock(),e.createElementBlock("div",{key:f,class:"routing-rule-input"},[e.createVNode(V,{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(V,{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(s).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"]]),et={class:"routing-rule-container"},tt=G(e.defineComponent({__name:"RouteFormHostsFields",props:{modelValue:{type:Array,required:!0}},emits:["add","remove","update:modelValue"],setup(l,{emit:N}){const g=l,i=N,{i18n:{t:c}}=K.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 b=e.resolveComponent("KLabel"),V=e.resolveComponent("KInput");return e.openBlock(),e.createElementBlock("div",et,[u[1]||(u[1]=e.createElementVNode("hr",null,null,-1)),e.createVNode(b,{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,(B,f)=>(e.openBlock(),e.createElementBlock("div",{key:f,class:"routing-rule-input"},[e.createVNode(V,{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(s).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"]]),ot={class:"routing-rule-container"},rt={class:"routing-rule-input"},lt={class:"methods-input-container"},st={key:0,class:"routing-rule-container"},nt=G(e.defineComponent({__name:"RouteFormMethodsFields",props:{modelValue:{type:Object,required:!0},customMethods:{type:Array,required:!0}},emits:["add","remove","update:modelValue","update-custom-methods"],setup(l,{emit:N}){const g=l,i=N,{i18n:{t:c}}=K.useI18n(),n=e.ref({}),p=e.ref([...g.customMethods]),u=b=>{p.value.length===1?p.value[0]="":p.value.splice(b,1)};return e.watch(g.modelValue,b=>{n.value={...b}},{immediate:!0,deep:!0}),e.watch(n,b=>{i("update:modelValue",b)},{deep:!0}),e.watch(p,b=>{i("update-custom-methods",b)},{deep:!0}),(b,V)=>{const B=e.resolveComponent("KLabel"),f=e.resolveComponent("KInputSwitch"),a=e.resolveComponent("KBadge"),D=e.resolveComponent("KButton"),W=e.resolveComponent("KInput");return e.openBlock(),e.createElementBlock("div",ot,[V[2]||(V[2]=e.createElementVNode("hr",null,null,-1)),e.createVNode(B,null,{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(c)("form.fields.methods.label")),1)]),_:1}),e.createElementVNode("div",rt,[e.createElementVNode("div",lt,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(Object.keys(n.value),E=>(e.openBlock(),e.createElementBlock("div",{key:E,class:"methods-input"},[e.createVNode(f,{modelValue:n.value[E],"onUpdate:modelValue":w=>n.value[E]=w,"data-testid":`${E.toLowerCase()}-method-toggle`},null,8,["modelValue","onUpdate:modelValue","data-testid"]),e.createVNode(a,{appearance:Object.values(e.unref(Re.BadgeMethodAppearances)).includes(E.toLowerCase())?E.toLowerCase():"custom"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(E.toLowerCase()),1)]),_:2},1032,["appearance"])]))),128))]),e.createVNode(D,{appearance:"tertiary",class:"remove-button","data-testid":"remove-methods",icon:"",onClick:V[0]||(V[0]=E=>b.$emit("remove"))},{default:e.withCtx(()=>[e.createVNode(e.unref(z.TrashIcon),{color:e.unref(Ae)},null,8,["color"])]),_:1})]),n.value.CUSTOM?(e.openBlock(),e.createElementBlock("div",st,[e.createVNode(B,{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,(E,w)=>(e.openBlock(),e.createElementBlock("div",{key:w,class:"routing-rule-input"},[e.createVNode(W,{modelValue:p.value[w],"onUpdate:modelValue":P=>p.value[w]=P,modelModifiers:{trim:!0},"data-testid":`route-form-custom-method-input-${w+1}`,placeholder:e.unref(c)("form.fields.methods.custom.placeholder")},null,8,["modelValue","onUpdate:modelValue","data-testid","placeholder"]),e.createVNode(oe,{"is-add-disabled":w!==p.value.length-1,"routing-rules-entity":e.unref(s).CUSTOM_METHOD,onAdd:V[1]||(V[1]=P=>p.value.push("")),onRemove:P=>u(w)},null,8,["is-add-disabled","routing-rules-entity","onRemove"])]))),128))]),_:1})])):e.createCommentVNode("",!0)])}}}),[["__scopeId","data-v-c8ae1bc5"]]),it={class:"routing-rule-container"},at=G(e.defineComponent({__name:"RouteFormPathsFields",props:{modelValue:{type:Array,required:!0}},emits:["add","remove","update:modelValue"],setup(l,{emit:N}){const g=l,i=N,{i18n:{t:c}}=K.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 b=e.resolveComponent("KLabel"),V=e.resolveComponent("KInput");return e.openBlock(),e.createElementBlock("div",it,[e.createVNode(b,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,(B,f)=>(e.openBlock(),e.createElementBlock("div",{key:f,class:"routing-rule-input"},[e.createVNode(V,{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(s).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"]]),dt={class:"routing-rule-container"},ct=G(e.defineComponent({__name:"RouteFormSnisFields",props:{modelValue:{type:Array,required:!0}},emits:["add","remove","update:modelValue"],setup(l,{emit:N}){const g=l,i=N,{i18n:{t:c}}=K.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 b=e.resolveComponent("KLabel"),V=e.resolveComponent("KInput");return e.openBlock(),e.createElementBlock("div",dt,[u[1]||(u[1]=e.createElementVNode("hr",null,null,-1)),e.createVNode(b,{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,(B,f)=>(e.openBlock(),e.createElementBlock("div",{key:f,class:"routing-rule-input"},[e.createVNode(V,{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(s).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"]]),pt={class:"routing-rule-container"},ft=G(e.defineComponent({__name:"RouteFormSourcesFields",props:{modelValue:{type:Array,required:!0}},emits:["add","remove","update:modelValue"],setup(l,{emit:N}){const g=l,i=N,{i18n:{t:c}}=K.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 b=e.resolveComponent("KLabel"),V=e.resolveComponent("KInput");return e.openBlock(),e.createElementBlock("div",pt,[u[1]||(u[1]=e.createElementVNode("hr",null,null,-1)),e.createVNode(b,{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,(B,f)=>(e.openBlock(),e.createElementBlock("div",{key:f,class:"routing-rule-input"},[e.createVNode(V,{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(V,{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(s).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"]]),mt=G(e.defineComponent({__name:"RouteFormConfigTabs",props:e.mergeModels({routeFlavors:{},tooltips:{}},{modelValue:{required:!0},modelModifiers:{}}),emits:["update:modelValue"],setup(l){const N=e.useModel(l,"modelValue"),g=l,{i18n:{t:i}}=xe(),c=e.computed(()=>[...g.routeFlavors.traditional?[{hash:`#${T.TRADITIONAL}`,title:i("form.flavors.traditional")}]:[],...g.routeFlavors.expressions?[{hash:`#${T.EXPRESSIONS}`,title:i("form.flavors.expressions")}]:[]]);return(n,p)=>{const u=e.resolveComponent("KTooltip"),b=e.resolveComponent("KTabs");return c.value.length>1?(e.openBlock(),e.createBlock(b,{key:0,modelValue:N.value,"onUpdate:modelValue":p[0]||(p[0]=V=>N.value=V),"data-testid":"route-form-config-tabs",tabs:c.value},e.createSlots({_:2},[n.routeFlavors.traditional?{name:`${e.unref(T).TRADITIONAL}-anchor`,fn:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(i)("form.flavors.traditional"))+" ",1),n.tooltips&&n.tooltips[e.unref(T).TRADITIONAL]?(e.openBlock(),e.createBlock(u,{key:0,class:"route-form-config-tabs-tooltip",text:n.tooltips[e.unref(T).TRADITIONAL],"tooltip-id":"route-form-config-tabs-tooltip-traditional"},{default:e.withCtx(()=>[e.createVNode(e.unref(z.InfoIcon),{color:e.unref(Oe),size:e.unref(Ve),tabindex:"0"},null,8,["color","size"])]),_:1},8,["text"])):e.createCommentVNode("",!0)]),key:"0"}:void 0,n.routeFlavors.traditional?{name:e.unref(T).TRADITIONAL,fn:e.withCtx(()=>[e.renderSlot(n.$slots,"before-content",{},void 0,!0),e.renderSlot(n.$slots,e.unref(T).TRADITIONAL,{},void 0,!0)]),key:"1"}:void 0,n.routeFlavors.expressions?{name:`${e.unref(T).EXPRESSIONS}-anchor`,fn:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(i)("form.flavors.expressions"))+" ",1),n.tooltips&&n.tooltips[e.unref(T).EXPRESSIONS]?(e.openBlock(),e.createBlock(u,{key:0,class:"route-form-config-tabs-tooltip",text:n.tooltips[e.unref(T).EXPRESSIONS],"tooltip-id":"route-form-config-tabs-tooltip-expressions"},{default:e.withCtx(()=>[e.createVNode(e.unref(z.InfoIcon),{color:e.unref(Oe),size:e.unref(Ve),tabindex:"0"},null,8,["color","size"])]),_:1},8,["text"])):e.createCommentVNode("",!0)]),key:"2"}:void 0,n.routeFlavors.expressions?{name:e.unref(T).EXPRESSIONS,fn:e.withCtx(()=>[e.renderSlot(n.$slots,"before-content",{},void 0,!0),e.renderSlot(n.$slots,e.unref(T).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(T).TRADITIONAL,{key:0},void 0,!0):n.routeFlavors.expressions?e.renderSlot(n.$slots,e.unref(T).EXPRESSIONS,{key:1},void 0,!0):e.createCommentVNode("",!0)],64))}}}),[["__scopeId","data-v-f1c7a92f"]]),ut=e.defineComponent({__name:"RouteFormExpressionsEditorLoader",props:e.mergeModels({protocol:{},showExpressionsModalEntry:{type:Boolean}},{modelValue:{required:!0},modelModifiers:{}}),emits:e.mergeModels(["notify"],["update:modelValue"]),setup(l,{emit:N}){const{i18n:{t:g}}=K.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(()=>Dt),loadingComponent:i,errorComponent:c}),p=l,u=N,b=e.ref(te.LOADING),V=e.useModel(l,"modelValue"),B=f=>{V.value=f};return e.onMounted(async()=>{try{await(await import("@kong-ui-public/expressions")).asyncInit,b.value=te.READY}catch(f){b.value=te.ERROR,console.error(f)}}),(f,a)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[b.value===e.unref(te).ERROR?(e.openBlock(),e.createBlock(e.resolveDynamicComponent(c),{key:0,"data-testid":"route-form-expressions-editor-loader-error"})):b.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:V.value,"onUpdate:modelValue":a[0]||(a[0]=D=>V.value=D),"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]=D=>u("notify",D))},{default:e.withCtx(()=>[e.createVNode(e.unref(z.RocketIcon),{size:e.unref(Ve)},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:V.value,update:B},state:b.value})],64))}}),ht={class:"kong-ui-entities-route-form"},gt={key:1},yt={"data-testid":"no-search-results"},St={class:"route-form-service-dropdown-item"},bt={class:"select-item-label"},Vt={class:"select-item-description"},Ct={class:"route-form-routing-rules-title-container"},kt={class:"routing-rules-title"},Et={key:1,class:"route-form-routing-rules-selector-container"},Nt={class:"route-form-routing-rules-selector-options"},Tt=["aria-disabled","data-testid","onClick"],_t={class:"route-form-fields-container route-form-advanced-fields-container"},wt={class:"route-form-routing-rules-title-container"},It={class:"routing-rules-title"},Rt={class:"route-form-fields-container route-form-advanced-fields-container"},Bt=G(e.defineComponent({__name:"RouteForm",props:{config:{type:Object,required:!0,validator:l=>!(!l||!["konnect","kongManager"].includes(l==null?void 0:l.app)||(l==null?void 0:l.app)==="konnect"&&!(l!=null&&l.controlPlaneId)||(l==null?void 0:l.app)==="kongManager"&&typeof(l==null?void 0:l.workspace)!="string"||!(l!=null&&l.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(l,{expose:N,emit:g}){var $e;const i=l,c=g,n=e.ref(i.routeFlavors.traditional?`#${T.TRADITIONAL}`:i.routeFlavors.expressions?`#${T.EXPRESSIONS}`:""),p=e.computed(()=>{if(n.value)return n.value.substring(1)}),u=e.ref(void 0),b=e.ref(!0),V=e.computed(()=>{if(u.value)return u.value;if(p.value)return p.value;if(i.routeFlavors.traditional)return T.TRADITIONAL;if(i.routeFlavors.expressions)return T.EXPRESSIONS}),{i18nT:B,i18n:f,i18n:{t:a}}=K.useI18n(),D=f.source.form.protocols,W=Ie.useRouter(),{axiosInstance:E}=y.useAxios(($e=i.config)==null?void 0:$e.axiosRequestConfig),{getMessageFromError:w}=y.useErrors(),P=e.computed(()=>!(i.hideNameField&&(i.hideServiceField||i.serviceId)&&i.showTagsFiledUnderAdvanced)),x=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:""});e.watch(()=>i.routeFlavors,o=>{t.routeFlavors=o});const L=e.computed(()=>t.fields.protocols.split(",")[0]),re=e.ref([""]),ie=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={[s.PATHS]:[""],[s.SNIS]:[""],[s.HOSTS]:[""],[s.METHODS]:{GET:!1,PUT:!1,POST:!1,PATCH:!1,DELETE:!1,OPTIONS:!1,HEAD:!1,CONNECT:!1,TRACE:!1,CUSTOM:!1},[s.HEADERS]:[{header:"",values:""}],[s.SOURCES]:[{ip:"",port:null}],[s.DESTINATIONS]:[{ip:"",port:null}]},Ce=i.config.app==="konnect"||y.useGatewayFeatureSupported({gatewayInfo:i.config.gatewayInfo,supportedRange:{enterprise:["3.0"]}}),ke=[{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"},...Ce?[{label:a("form.protocols.ws"),value:"ws"},{label:a("form.protocols.wss"),value:"wss"},{label:a("form.protocols.ws,wss"),value:"ws,wss"}]:[]],ae=[{label:"v0",value:"v0"},{label:"v1",value:"v1"}],ye=[{label:"426",value:426},{label:"301",value:301},{label:"302",value:302},{label:"307",value:307},{label:"308",value:308}],de={http:[s.HOSTS,s.METHODS,s.PATHS,s.HEADERS],https:[s.HOSTS,s.METHODS,s.PATHS,s.HEADERS,s.SNIS],"http,https":[s.HOSTS,s.METHODS,s.PATHS,s.HEADERS,s.SNIS],"https,http":[s.HOSTS,s.METHODS,s.PATHS,s.HEADERS,s.SNIS],grpc:[s.HOSTS,s.PATHS,s.HEADERS],grpcs:[s.HOSTS,s.PATHS,s.HEADERS,s.SNIS],"grpc,grpcs":[s.HOSTS,s.PATHS,s.HEADERS,s.SNIS],"grpcs,grpc":[s.HOSTS,s.PATHS,s.HEADERS,s.SNIS],udp:[s.SOURCES,s.DESTINATIONS],tls:[s.SOURCES,s.DESTINATIONS,s.SNIS],tcp:[s.SOURCES,s.DESTINATIONS],"tls,udp":[s.SOURCES,s.DESTINATIONS,s.SNIS],"udp,tls":[s.SOURCES,s.DESTINATIONS,s.SNIS],"tcp,udp":[s.SOURCES,s.DESTINATIONS],"udp,tcp":[s.SOURCES,s.DESTINATIONS],"tcp,tls":[s.SOURCES,s.DESTINATIONS,s.SNIS],"tls,tcp":[s.SOURCES,s.DESTINATIONS,s.SNIS],"tcp,tls,udp":[s.SOURCES,s.DESTINATIONS,s.SNIS],"tls,udp,tcp":[s.SOURCES,s.DESTINATIONS,s.SNIS],"udp,tcp,tls":[s.SOURCES,s.DESTINATIONS,s.SNIS],tls_passthrough:[s.SNIS],ws:[s.HOSTS,s.PATHS,s.HEADERS],wss:[s.HOSTS,s.PATHS,s.HEADERS,s.SNIS],"ws,wss":[s.HOSTS,s.PATHS,s.HEADERS,s.SNIS],"wss,ws":[s.HOSTS,s.PATHS,s.HEADERS,s.SNIS]},he=e.computed(()=>i.routeId?y.EntityBaseFormType.Edit:y.EntityBaseFormType.Create),Ee=e.computed(()=>{var o,r,m;return(m=(r=ne.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||"")}),Se=()=>{var o;W.push((o=i.config)==null?void 0:o.cancelRoute)},Q=o=>{c("loading",o)},ce=o=>{c("error",o)},pe=o=>{j(t)&&(t.fields.methods=A[s.METHODS],o.forEach(r=>{t.fields.methods&&(t.fields.methods[r]=!0)}))},be=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)),Z=(o,r)=>{if(o===s.PATHS||o===s.HOSTS||o===s.SNIS)return[...r].filter(m=>!!m);if(o===s.SOURCES||o===s.DESTINATIONS)return[...r].filter(m=>!!m.ip).map(m=>({...m,port:!m.port&&m.port!==0?null:m.port}));if(o===s.HEADERS)return[...r].filter(m=>!!m.header)},Ne=()=>{if(j(t)){const o=Z(s.HEADERS,t.fields.headers||[])||A[s.HEADERS];if(o.length===0)return null;const r={};return o.forEach(m=>{r[m.header]=m.values.split(",")}),r}return null},Y=o=>{j(t)&&(o&&o===s.PATHS&&(t.fields.paths?t.fields.paths.push([...A[s.PATHS]][0]):t.fields.paths=[...A[s.PATHS]]),o===s.SNIS&&(t.fields.snis?t.fields.snis.push([...A[s.SNIS]][0]):t.fields.snis=[...A[s.SNIS]]),o===s.HOSTS&&(t.fields.hosts?t.fields.hosts.push([...A[s.HOSTS]][0]):t.fields.hosts=[...A[s.HOSTS]]),o===s.METHODS&&(t.fields.methods||(t.fields.methods={...A[s.METHODS]})),o===s.HEADERS&&(t.fields.headers?t.fields.headers.push({...A[s.HEADERS][0]}):t.fields.headers=[{...A[s.HEADERS][0]}]),o===s.SOURCES&&(t.fields.sources?t.fields.sources.push({...A[s.SOURCES][0]}):t.fields.sources=[{...A[s.SOURCES][0]}]),o===s.DESTINATIONS&&(t.fields.destinations?t.fields.destinations.push({...A[s.DESTINATIONS][0]}):t.fields.destinations=[{...A[s.DESTINATIONS][0]}]))},Te=e.computed(()=>{var o;return j(t)?(o=de[t.fields.protocols])==null?void 0:o.filter(r=>!t.fields[r]):!1}),q=async(o,r)=>{if(j(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===s.METHODS&&(re.value=[""])})}},fe=o=>{var m;return((m=f.source.form.fields[o])==null?void 0:m.label)||""};e.watch(()=>t.fields.protocols,()=>{S()});const S=()=>{const o=Object.keys(A),r=de[t.fields.protocols];Object.keys(t.fields).filter(k=>o.includes(k)).forEach(k=>{r!=null&&r.includes(k)||q(k)})},C=e.computed(()=>{if(j(t)){const o=[];return t.fields.methods&&Object.entries(t.fields.methods).forEach(([r,m])=>{m&&o.push(r)}),o}return[]}),I=e.computed(()=>{var o;return((o=t.fields.protocols)==null?void 0:o.split(","))||[]}),O=e.computed(()=>{const o=Object.keys(A);return!Object.keys(t.fields).filter(m=>o.includes(m)).length}),H=e.computed(()=>{if($(["tls_passthrough"]))return[fe(s.SNIS)];const o=de[t.fields.protocols].map(r=>fe(r));return[[...o].splice(0,o.length-1).join(", "),o[o.length-1]]}),J=o=>{var m,k;if(i.routeId){const F=typeof o.expression=="string"&&o.expression.length>0?T.EXPRESSIONS:T.TRADITIONAL;u.value=F,n.value=`#${F}`}(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,(k=o==null?void 0:o.protocols)!=null&&k.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,j(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&&pe(o.methods),o!=null&&o.headers&&(t.fields.headers=be(o.headers)),o!=null&&o.sources&&(t.fields.sources=o.sources),o!=null&&o.destinations&&(t.fields.destinations=o.destinations)),ue(t)&&(t.fields.expression=(o==null?void 0:o.expression)||"",t.fields.priority=(o==null?void 0:o.priority)||0),Object.assign(ie,JSON.parse(JSON.stringify(t.fields)))},le=e.computed(()=>{var o;switch(V.value){case T.TRADITIONAL:{if(j(t)){const r=t.fields.hosts?!!t.fields.hosts.filter(Boolean).length:null,m=t.fields.paths?!!t.fields.paths.filter(Boolean).length:null,k=t.fields.headers?t.fields.headers.some(({header:ee})=>!!ee):null,F=t.fields.snis?!!t.fields.snis.filter(Boolean).length:null,v=t.fields.destinations?t.fields.destinations.some(({ip:ee})=>!!ee):null,X=t.fields.sources?t.fields.sources.some(({ip:ee})=>!!ee):null,d=((o=t.fields.methods)==null?void 0:o.CUSTOM)?re.value.some(ee=>!!ee):Object.values(t.fields.methods||{}).includes(!0);return!!t.fields.protocols&&($(["http"])&&!!(r||d||m||k)||$(["https"])&&!!(r||d||m||k||F)||$(["grpc"])&&!!(r||m||k)||$(["grpcs","wss"])&&!!(r||m||k||F)||$(["udp","tls"])&&!!(v||X||F)||$(["tcp"])&&!!(v||X)||$(["tls_passthrough"])&&!!F||$(["ws"])&&!!(r||m||k))}break}case T.EXPRESSIONS:{if(ue(t))return t.fields.expression.length>0;break}}return!0}),h=e.computed(()=>!Fe(t.fields,ie)),_=e.computed(()=>{var r,m;let o=`${i.config.apiBaseUrl}${ne.form[i.config.app][he.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",ge.value)},{deep:!0});const se=o=>o!=null&&o.length?o:null,$t=()=>{var o,r;if(j(t)){const m={methods:null,hosts:se(Z(s.HOSTS,t.fields.hosts||[])),paths:se(Z(s.PATHS,t.fields.paths||[])),headers:Ne(),regex_priority:Number(t.fields.regex_priority),path_handling:t.fields.path_handling,sources:se(Z(s.SOURCES,t.fields.sources||[])),destinations:se(Z(s.DESTINATIONS,t.fields.destinations||[])),snis:se(Z(s.SNIS,t.fields.snis||[]))};if((o=C.value)!=null&&o.length&&(m.methods=[...C.value],(r=C.value)!=null&&r.includes("CUSTOM"))){const k=m.methods.indexOf("CUSTOM");k!==-1&&m.methods.splice(k,1),re.value.forEach(F=>{var v;F&&m.methods&&!((v=m.methods)!=null&&v.includes(F))&&m.methods.push(F.toUpperCase())})}return m}},Ft=()=>{if(ue(t))return{expression:t.fields.expression,priority:Number(t.fields.priority)}},ge=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(k=>String(k||"").trim()))==null?void 0:m.filter(k=>k!==""),service:t.fields.service_id?{id:t.fields.service_id}:null};switch(V.value){case T.TRADITIONAL:return{...o,...$t()};case T.EXPRESSIONS:return{...o,...Ft()};default:return o}}),Pt=o=>{switch(V.value){case T.TRADITIONAL:{if(!("regex_priority"in o&&"path_handling"in o))return!1;break}case T.EXPRESSIONS:{if(!("priority"in o))return!1;break}}return"service"in o&&"tags"in o&&"protocols"in o},_e=async o=>{var m;const r=o&&Pt(o)?o:ge.value;try{t.isReadonly=!0;let k;he.value==="create"?k=await E.post(_.value,r):he.value==="edit"&&(k=((m=i.config)==null?void 0:m.app)==="konnect"?await E.put(_.value,r):await E.patch(_.value,r)),J(k==null?void 0:k.data),c("update",k==null?void 0:k.data)}catch(k){t.errorMessage=w(k),c("error",k)}finally{t.isReadonly=!1}},{debouncedQueryChange:Ht,loading:Ut,error:Mt,loadItems:Lt,results:qt}=y.useDebouncedFilter(i.config,ne.form[i.config.app].services,void 0,{fetchedItemsKey:"data",searchKeys:["id","name"]}),Kt=e.computed(()=>Mt.value?a("errors.services.fetch"):""),Gt=e.computed(()=>{var o;return(o=qt.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 Lt():t.fields.service_id=i.serviceId}),e.onMounted(()=>{c("model-updated",ge.value)}),N({saveFormData:_e,getPayload:ge}),(o,r)=>{const m=e.resolveComponent("KInput"),k=e.resolveComponent("KSelect"),F=e.resolveComponent("KAlert"),v=e.resolveComponent("KCard"),X=e.resolveComponent("KCheckbox"),we=e.resolveComponent("KCollapse");return e.openBlock(),e.createElementBlock("div",ht,[e.createVNode(e.unref(y.EntityBaseForm),{"can-submit":le.value&&h.value,config:l.config,"edit-id":l.routeId,"entity-type":e.unref(y.SupportedEntityType).Route,"error-message":t.errorMessage||Kt.value,"fetch-url":Ee.value,"form-fields":ge.value,"is-readonly":t.isReadonly,onCancel:Se,"onFetch:error":ce,"onFetch:success":J,onLoading:Q,onSubmit:_e},{"form-actions":e.withCtx(()=>[e.renderSlot(o.$slots,"form-actions",{canSubmit:le.value&&h.value,cancel:Se,submit:_e},void 0,!0)]),default:e.withCtx(()=>[P.value?(e.openBlock(),e.createBlock(e.unref(y.EntityFormSection),{key:0,description:e.unref(a)("form.sections.general.description"),"hide-info-header":l.hideSectionsInfo,title:e.unref(a)("form.sections.general.title")},{default:e.withCtx(()=>[l.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"])),!l.hideServiceField&&!l.serviceId?(e.openBlock(),e.createElementBlock("div",gt,[e.createVNode(k,{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:Gt.value,label:e.unref(a)("form.fields.service_id.label"),loading:e.unref(Ut),placeholder:e.unref(a)("form.fields.service_id.placeholder"),readonly:t.isReadonly,"reuse-item-template":"",width:"100%",onQueryChange:e.unref(Ht)},{loading:e.withCtx(()=>[e.createElementVNode("div",null,e.toDisplayString(e.unref(a)("actions.loading")),1)]),empty:e.withCtx(()=>[e.createElementVNode("div",yt,e.toDisplayString(e.unref(a)("search.no_results")),1)]),"selected-item-template":e.withCtx(({item:d})=>[e.createTextVNode(e.toDisplayString(x(d)),1)]),"item-template":e.withCtx(({item:d})=>[e.createElementVNode("div",St,[e.createElementVNode("span",bt,e.toDisplayString(d.name),1),e.createElementVNode("span",Vt,e.toDisplayString(d.value),1)])]),_:1},8,["modelValue","items","label","loading","placeholder","readonly","onQueryChange"])])):e.createCommentVNode("",!0),l.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(y.EntityFormSection),{description:e.unref(a)("form.sections.config.description"),"hide-info-header":l.hideSectionsInfo,title:e.unref(a)("form.sections.config.title")},{default:e.withCtx(()=>[e.createVNode(k,{modelValue:t.fields.protocols,"onUpdate:modelValue":r[3]||(r[3]=d=>t.fields.protocols=d),"data-testid":"route-form-protocols",items:ke,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(mt,{modelValue:n.value,"onUpdate:modelValue":r[44]||(r[44]=d=>n.value=d),"route-flavors":l.routeFlavors,tooltips:l.configTabTooltips},e.createSlots({_:2},[l.routeFlavors.traditional&&l.routeFlavors.expressions&&(!u.value||u.value!==p.value)?{name:"before-content",fn:e.withCtx(()=>[e.createVNode(F,{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(j)(t)?{name:"traditional",fn:e.withCtx(()=>[!u.value||u.value===e.unref(T).TRADITIONAL?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[t.fields.protocols?(e.openBlock(),e.createBlock(v,{key:0},{title:e.withCtx(()=>[e.createElementVNode("div",Ct,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(I.value,d=>(e.openBlock(),e.createElementBlock("span",{key:d,class:"protocol-title"},e.toDisplayString(d.toUpperCase()),1))),128)),e.createElementVNode("span",kt,e.toDisplayString(e.unref(a)("form.sections.routingRules.title")),1)])]),default:e.withCtx(()=>[O.value?(e.openBlock(),e.createBlock(F,{key:0,appearance:"warning","data-testid":"routing-rules-warning"},{default:e.withCtx(()=>[e.createVNode(e.unref(B),{keypath:"form.warning.rulesMessage"},{protocol:e.withCtx(()=>[e.createElementVNode("b",null,e.toDisplayString(e.unref(D)[t.fields.protocols]),1)]),routingRules:e.withCtx(()=>[e.createVNode(e.unref(B),{keypath:H.value[1]?"form.warning.multipleRules":"form.warning.singleRule"},{routingRules:e.withCtx(()=>[e.createElementVNode("b",null,e.toDisplayString(H.value[0]),1)]),lastRoutingRule:e.withCtx(()=>[e.createElementVNode("b",null,e.toDisplayString(H.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(at,{key:"paths-container",modelValue:t.fields.paths,"onUpdate:modelValue":r[4]||(r[4]=d=>t.fields.paths=d),onAdd:r[5]||(r[5]=d=>Y(e.unref(s).PATHS)),onRemove:r[6]||(r[6]=d=>q(e.unref(s).PATHS,d))},null,8,["modelValue"])):e.createCommentVNode("",!0),t.fields.snis?(e.openBlock(),e.createBlock(ct,{key:"snis-container",modelValue:t.fields.snis,"onUpdate:modelValue":r[7]||(r[7]=d=>t.fields.snis=d),onAdd:r[8]||(r[8]=d=>Y(e.unref(s).SNIS)),onRemove:r[9]||(r[9]=d=>q(e.unref(s).SNIS,d))},null,8,["modelValue"])):e.createCommentVNode("",!0),t.fields.hosts?(e.openBlock(),e.createBlock(tt,{key:"hosts-container",modelValue:t.fields.hosts,"onUpdate:modelValue":r[10]||(r[10]=d=>t.fields.hosts=d),onAdd:r[11]||(r[11]=d=>Y(e.unref(s).HOSTS)),onRemove:r[12]||(r[12]=d=>q(e.unref(s).HOSTS,d))},null,8,["modelValue"])):e.createCommentVNode("",!0),t.fields.methods?(e.openBlock(),e.createBlock(nt,{key:"methods-container",modelValue:t.fields.methods,"onUpdate:modelValue":r[13]||(r[13]=d=>t.fields.methods=d),"custom-methods":re.value,onRemove:r[14]||(r[14]=d=>q(e.unref(s).METHODS)),onUpdateCustomMethods:r[15]||(r[15]=d=>re.value=d)},null,8,["modelValue","custom-methods"])):e.createCommentVNode("",!0),t.fields.headers?(e.openBlock(),e.createBlock(ve,{key:"headers-container",modelValue:t.fields.headers,"onUpdate:modelValue":r[16]||(r[16]=d=>t.fields.headers=d),onAdd:r[17]||(r[17]=d=>Y(e.unref(s).HEADERS)),onRemove:r[18]||(r[18]=d=>q(e.unref(s).HEADERS,d))},null,8,["modelValue"])):e.createCommentVNode("",!0),t.fields.sources?(e.openBlock(),e.createBlock(ft,{key:"sources-container",modelValue:t.fields.sources,"onUpdate:modelValue":r[19]||(r[19]=d=>t.fields.sources=d),onAdd:r[20]||(r[20]=d=>Y(e.unref(s).SOURCES)),onRemove:r[21]||(r[21]=d=>q(e.unref(s).SOURCES,d))},null,8,["modelValue"])):e.createCommentVNode("",!0),t.fields.destinations?(e.openBlock(),e.createBlock(Ye,{key:"destinations-container",modelValue:t.fields.destinations,"onUpdate:modelValue":r[22]||(r[22]=d=>t.fields.destinations=d),onAdd:r[23]||(r[23]=d=>Y(e.unref(s).DESTINATIONS)),onRemove:r[24]||(r[24]=d=>q(e.unref(s).DESTINATIONS,d))},null,8,["modelValue"])):e.createCommentVNode("",!0)]),_:1}),Te.value?(e.openBlock(),e.createElementBlock("div",Et,[r[45]||(r[45]=e.createElementVNode("hr",null,null,-1)),e.createElementVNode("div",Nt,[e.createElementVNode("ul",null,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(de[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:ee=>Y(d)},e.toDisplayString(fe(d)),11,Tt)]))),128))])])])):e.createCommentVNode("",!0)]),_:1})):e.createCommentVNode("",!0),e.createVNode(we,{modelValue:b.value,"onUpdate:modelValue":r[33]||(r[33]=d=>b.value=d),class:"route-form-advanced-fields-collapse","trigger-alignment":"leading","trigger-label":e.unref(a)("form.viewAdvancedFields")},{default:e.withCtx(()=>[e.createElementVNode("div",_t,[t.fields.paths?(e.openBlock(),e.createBlock(k,{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:ae,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(k,{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:ye,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"]),l.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(X,{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(X,{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(X,{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(X,{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(ue)(t)?{name:"expressions",fn:e.withCtx(()=>[!u.value||u.value===e.unref(T).EXPRESSIONS?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[t.fields.protocols?(e.openBlock(),e.createBlock(v,{key:0},{title:e.withCtx(()=>[e.createElementVNode("div",wt,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(I.value,d=>(e.openBlock(),e.createElementBlock("span",{key:d,class:"protocol-title"},e.toDisplayString(d.toUpperCase()),1))),128)),e.createElementVNode("span",It,e.toDisplayString(e.unref(a)("form.sections.routingExpression.title")),1)])]),default:e.withCtx(()=>[e.createVNode(ut,{modelValue:t.fields.expression,"onUpdate:modelValue":r[34]||(r[34]=d=>t.fields.expression=d),protocol:L.value,"show-expressions-modal-entry":l.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(we,{modelValue:b.value,"onUpdate:modelValue":r[43]||(r[43]=d=>b.value=d),class:"route-form-advanced-fields-collapse","trigger-alignment":"leading","trigger-label":e.unref(a)("form.viewAdvancedFields")},{default:e.withCtx(()=>[e.createElementVNode("div",Rt,[e.createVNode(k,{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:ye,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"]),l.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(X,{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(X,{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(X,{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(X,{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-e155aee1"]]),xt={class:"kong-ui-entities-route-entity-config-card"},At={key:2},Ot=e.defineComponent({__name:"RouteConfigCard",props:{config:{type:Object,required:!0,validator:l=>!(!l||!["konnect","kongManager"].includes(l==null?void 0:l.app)||l.app==="konnect"&&!l.controlPlaneId||l.app==="kongManager"&&typeof l.workspace!="string"||!l.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(l,{emit:N}){var W;const g=N,i=l,{axiosInstance:c}=y.useAxios((W=i.config)==null?void 0:W.axiosRequestConfig),{i18n:{t:n},i18nT:p}=K.useI18n(),u=e.ref(""),b=e.ref(""),V=e.ref(!1),B=e.computed(()=>{var E,w;return(w=ne.item[(E=i.config)==null?void 0:E.app])==null?void 0:w[i.serviceId?"forGatewayService":"all"].replace(/{serviceId}/gi,i.serviceId)}),f=e.computed(()=>{var E;return(E=ne.item[i.config.app])==null?void 0:E.getService}),a=async E=>{var P,x,t;if(u.value=i.serviceId||((P=E==null?void 0:E.service)==null?void 0:P.id),g("fetch:success",E),!u.value)return;let w=`${i.config.apiBaseUrl}${f.value}`;i.config.app==="konnect"?w=w.replace(/{controlPlaneId}/gi,((x=i.config)==null?void 0:x.controlPlaneId)||"").replace(/{serviceId}/gi,u.value||""):i.config.app==="kongManager"&&(w=w.replace(/\/{workspace}/gi,(t=i.config)!=null&&t.workspace?`/${i.config.workspace}`:"").replace(/{serviceId}/gi,u.value||""));try{V.value=!0;const{data:L}=await c.get(w);b.value=(L==null?void 0:L.name)||(L==null?void 0:L.id)}catch(L){g("fetch:error",L)}finally{V.value=!1}},D=e.ref({id:{},name:{tooltip:n("form.fields.name.tooltip")},created_at:{},updated_at:{},service:{label:n("form.fields.service.label"),section:y.ConfigurationSchemaSection.Basic,tooltip:n("form.fields.service.tooltip"),order:5},tags:{tooltip:n("form.fields.tags.tooltip"),order:6},protocols:{section:y.ConfigurationSchemaSection.Basic,type:y.ConfigurationSchemaType.BadgeTag,order:7},paths:{section:y.ConfigurationSchemaSection.Basic,tooltip:n("form.fields.paths.tooltip"),type:y.ConfigurationSchemaType.CopyBadge,order:8},hosts:{section:y.ConfigurationSchemaSection.Basic,tooltip:n("form.fields.hosts.tooltipConfig"),type:y.ConfigurationSchemaType.CopyBadge,order:9},snis:{label:n("form.fields.snis.label"),tooltip:n("form.fields.snis.tooltip"),order:10},headers:{section:y.ConfigurationSchemaSection.Basic,order:11},methods:{section:y.ConfigurationSchemaSection.Basic,tooltip:n("form.fields.methods.tooltip"),type:y.ConfigurationSchemaType.BadgeMethod,order:12},sources:{section:y.ConfigurationSchemaSection.Basic,tooltip:n("form.fields.sources.tooltip"),type:y.ConfigurationSchemaType.JsonArray,order:13},destinations:{section:y.ConfigurationSchemaSection.Basic,tooltip:n("form.fields.destinations.tooltip"),type:y.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(E,w)=>{const P=e.resolveComponent("KSkeleton");return e.openBlock(),e.createElementBlock("div",xt,[e.createVNode(e.unref(y.EntityBaseConfigCard),{config:l.config,"config-card-doc":l.configCardDoc,"config-schema":D.value,"entity-type":e.unref(y.SupportedEntityType).Route,"fetch-url":B.value,"hide-title":l.hideTitle,"onFetch:error":w[0]||(w[0]=x=>E.$emit("fetch:error",x)),"onFetch:success":a,onLoading:w[1]||(w[1]=x=>E.$emit("loading",x))},{"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:x})=>[V.value?(e.openBlock(),e.createBlock(P,{key:0,"data-testid":"service-name-loader",type:"spinner"})):x.value&&x.value.id===u.value&&b.value?(e.openBlock(),e.createBlock(e.unref(y.InternalLinkItem),{key:1,item:{key:x.value.id,value:b.value,type:e.unref(y.ConfigurationSchemaType).LinkInternal},onNavigationClick:()=>E.$emit("navigation-click",x.value.id,"services")},null,8,["item","onNavigationClick"])):(e.openBlock(),e.createElementBlock("div",At,e.toDisplayString("-")))]),_:1},8,["config","config-card-doc","config-schema","entity-type","fetch-url","hide-title"])])}}}),Dt=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(l,{emit:N}){const g=l,i=e.useModel(l,"modelValue"),c=N,n=e.ref(!1),p=e.computed(()=>me.PROTOCOL_TO_SCHEMA[g.protocol]),u=e.computed(()=>me.HTTP_BASED_PROTOCOLS.includes(g.protocol??"")),b=e.computed(()=>u.value?void 0:`${g.hintText}${me.HTTP_BASED_PROTOCOLS}`),V=a=>{i.value=a,n.value=!1},B=a=>{c("notify",a)},f=()=>{u.value&&(n.value=!0)};return(a,D)=>{const W=e.resolveComponent("KTooltip");return e.openBlock(),e.createElementBlock(e.Fragment,null,[p.value!==void 0?(e.openBlock(),e.createBlock(e.unref(me.ExpressionsEditor),{key:0,modelValue:i.value,"onUpdate:modelValue":D[0]||(D[0]=E=>i.value=E),schema:p.value},null,8,["modelValue","schema"])):e.createCommentVNode("",!0),e.createVNode(W,{placement:"bottom-start",text:b.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(me.RouterPlaygroundModal),{key:1,"initial-expression":i.value,"is-visible":n.value,onCancel:D[1]||(D[1]=E=>n.value=!1),onCommit:V,onNotify:B},null,8,["initial-expression","is-visible"])):e.createCommentVNode("",!0)],64)}}})},Symbol.toStringTag,{value:"Module"}));R.ExpressionsEditorState=te,R.Methods=De,R.RouteConfigCard=Ot,R.RouteFlavor=T,R.RouteForm=Bt,R.RouteList=ze,R.RoutingRulesEntities=s,R.stateHasExpressionsFlavor=ue,R.stateHasTraditionalFlavor=j,Object.defineProperty(R,Symbol.toStringTag,{value:"Module"})});
1
+ (function(R,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):(R=typeof globalThis<"u"?globalThis:R||self,e(R["kong-ui-public-entities-routes"]={},R.Vue,R.VueRouter,R.Kongponents,R.KongIcons,R["kong-ui-public-entities-shared"],R["kong-ui-public-i18n"],R.isEqual,R["kong-ui-public-expressions"]))})(this,function(R,e,Ie,Re,z,y,Be,Fe,me){"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",exact:"Filter by exact name or ID",kongManager:"Filter by exact name or ID"},no_results:"No results found"},routes:{title:"Routes",list:{toolbar_actions:{new_route:"New route"},table_headers:{name:"Name",protocols:"Protocols",hosts:"Hosts",methods:"Methods",paths:"Paths",expression:"Expression",id:"ID",tags:"Tags",created_at:"Created At",updated_at:"Last Modified"},empty_state:{title:"Configure a New Route",description:"Routes proxy requests to an associated Service."},empty_state_v2:{title:"Configure your first route",group:"Routes created in gateways within this group will automatically appear here.",description:"Routes direct incoming API requests to the appropriate gateway service based on paths, methods, and headers, ensuring efficient traffic flow."}}},delete:{title:"Delete a Route",description:"Deleting this route will also remove any associated plugins. This action cannot be reversed."},errors:{general:"Routes could not be retrieved",delete:"The route could not be deleted at this time.",copy:"Failed to copy to clipboard",services:{fetch:"Could not fetch available services"}},copy:{success:"Copied {val} to clipboard",success_brief:"Successfully copied to clipboard"},form:{protocols:{grpc:"GRPC",grpcs:"GRPCS","grpc,grpcs":"GRPC, GRPCS",http:"HTTP",https:"HTTPS","http,https":"HTTP, HTTPS",tls:"TLS",tcp:"TCP",udp:"UDP","tls,udp":"TLS, UDP","tcp,udp":"TCP, UDP","tcp,tls":"TCP, TLS","tcp,tls,udp":"TCP, TLS, UDP",ws:"WS",wss:"WSS","ws,wss":"WS, WSS",tls_passthrough:"TLS_PASSTHROUGH"},sections:{general:{title:"General Information",description:"General information will help you identify and manage this route"},config:{title:"Route Configuration",description:"Route configuration determines how this route will handle incoming requests"},routingRules:{title:"Routing Rules"},routingExpression:{title:"Routing Expression"}},fields:{service_id:{label:"Service",placeholder:"Select a service"},name:{label:"Name",placeholder:"Enter a unique name",tooltip:"The name of the Route. Route names must be unique, and they are case sensitive. For example, there can be two different Routes named 'test' and 'Test'."},service:{label:"Gateway Service",tooltip:"The Service this Route is associated to. This is where the Route proxies traffic to."},tags:{label:"Tags",tooltip:"An optional set of strings associated with the Route for grouping and filtering.",placeholder:"Enter a list of tags separated by commas",help:"e.g. tag1, tag2, tag3"},protocols:{label:"Protocols",tooltip:"Routes have a protocols property to restrict the client protocol they should listen for.",tooltipConfig:"An array of the protocols this Route should allow. See the {code1} section for a list of accepted protocols. When set to only {code2}, HTTP requests are answered with an upgrade error. When it is set to only {code3}, this is essentially the same as {code4} in that both HTTP and HTTPS requests are allowed. Default: {code5}.",code1:"Route Object",code2:"https",code3:"http",code4:"['http', 'https']",code5:"['http', 'https']"},path_handling:{label:"Path Handling",tooltip:"This treats service.path, route.path and request path as segments of a URL.",tooltipConfig:"Controls how the Service path, Route path and requested path are combined when sending a request to the upstream. See above for a detailed description of each behavior."},https_redirect_status_code:{label:"HTTPS Redirect Status Code",tooltip:"The status code Kong responds with when all properties of a Route match except the protocol i.e. if the protocol of the request is {code1} instead of {code2}. {code3} header is injected by Kong if the field is set to 301, 302, 307 or 308. Note: This config applies only if the Route is configured to only accept the {code4} protocol.",code1:"HTTP",code2:"HTTPS",code3:"Location",code4:"https"},regex_priority:{label:"Regex Priority",tooltip:"A number used to choose which route resolves a given request when several routes match it using regexes simultaneously. When two routes match the path and have the same {code1}, the older one (lowest {code2}) is used. Note that the priority for non-regex routes is different (longer non-regex routes are matched before shorter ones).",code1:"regex_priority",code2:"created_at"},strip_path:{label:"Strip Path",tooltip:"When matching a Route via one of the {code1}, strip the matching prefix from the upstream request URL.",code1:"paths"},preserve_host:{label:"Preserve Host",tooltip:"When matching a Route via one of the {code1} domain names, use the request {code2} header in the upstream request headers. If set to {code3}, the upstream {code4} header will be that of the Service's {code5}.",code1:"hosts",code2:"Host",code3:"false",code4:"Host",code5:"host"},paths:{label:"Paths",placeholder:"Enter a path",tooltip:"A list of paths that match this Route."},snis:{label:"SNIs",placeholder:"Enter a SNI",tooltip:"A list of SNIs (Server Name Indications from a TLS ClientHello) that match this Route."},hosts:{label:"Hosts",placeholder:"Enter a host",tooltip:"A list of domain names that match this Route.",tooltipConfig:"A list of domain names that match this Route. Note that the hosts value is case sensitive."},methods:{label:"Methods",tooltip:"A list of HTTP methods that match this Route.",custom:{label:"Custom",placeholder:"Enter a custom method",tooltip:"Custom methods can be used with default selections. Uppercase characters are required."}},headers:{label:"Headers",tooltip:"Header values can be separated by commas (value1, value2, value3).",name:{placeholder:"Enter a header name"},values:{placeholder:"Enter a header value"},tooltipConfig:"One or more lists of values indexed by header name that will cause this Route to match if present in the request. The {code1} header cannot be used with this attribute: hosts should be specified using the {code2} attribute. When {code3} contains only one value and that value starts with the special prefix {code4], the value is interpreted as a regular expression.",code1:"Host",code2:"hosts",code3:"headers",code4:"*"},sources:{label:"Sources",tooltip:"A list of IP sources of incoming connections that match this Route when using stream routing.",ip:{placeholder:"Enter a source IP"},port:{placeholder:"Enter a source port"}},destinations:{label:"Destinations",tooltip:"A list of IP destinations of incoming connections that match this Route when using stream routing.",ip:{placeholder:"Enter a destination IP"},port:{placeholder:"Enter a destination port"}},response_buffering:{label:"Response buffering",tooltip:"Whether to enable response body buffering or not. With HTTP 1.1, it may make sense to turn this off on services that send data with chunked transfer encoding."},request_buffering:{label:"Request buffering",tooltip:"Whether to enable request body buffering or not. With HTTP 1.1, it may make sense to turn this off on services that receive data with chunked transfer encoding."},expression:{label:"Expression",tooltip:"The route expression."},priority:{label:"Priority",tooltip:"A number used to choose which route resolves a given request when several routes match it using expression simultaneously."}},flavors:{traditional:"Traditional",expressions:"Expressions"},viewAdvancedFields:"View Advanced Fields",addNewRule:"Add New Rule",warning:{rulesMessage:"For {protocol}, at least one of {routingRules} must be set.",singleRule:"{routingRules}",multipleRules:"{routingRules} or {lastRoutingRule}",cannotChangeFlavor:{create:"The format of the route cannot be changed once created.",edit:"This route was configured in the {format} format, and cannot be changed after creation. You can switch to the {format} tab to edit, or create a new route in a different format instead."}},expressions_editor:{loading:"Loading the Expressions editor…",error:"Error occurred while loading the Expressions editor. Please view the console for more details."},expression_playground:{test_link:"Test with Router Playground",supported_protocols_hint:"Currently only supports the following protocols: {protocols}"}}};function xe(){const l=Be.createI18n("en-us",Pe);return{i18n:l,i18nT:Be.i18nTComponent(l)}}const K={useI18n:xe},U="/v2/control-planes/{controlPlaneId}/core-entities",M="/{workspace}",ne={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}`}}},Ae="#d60027",He="#00abd2",Oe="#6c7489",Ve="16px",Ue="24px",Me={class:"kong-ui-entities-routes-list"},Le={class:"button-row"},qe={class:"empty-state-icon-gateway"},Ke={key:1},Ge={key:1},je={key:1},We={class:"route-list-cell-expression"},Xe=e.defineComponent({__name:"RouteList",props:{config:{type:Object,required:!0,validator:l=>!(!l||!["konnect","kongManager"].includes(l==null?void 0:l.app)||!l.createRoute||!l.getViewRoute||!l.getEditRoute||l.app==="kongManager"&&!l.isExactMatch&&!l.filterSchema)},cacheIdentifier:{type:String,default:""},canCreate:{type:Function,required:!1,default:async()=>!0},canDelete:{type:Function,required:!1,default:async()=>!0},canEdit:{type:Function,required:!1,default:async()=>!0},canRetrieve:{type:Function,required:!1,default:async()=>!0},title:{type:String,default:""},titleTag:{type:String,default:"h2"},useActionOutside:{type:Boolean,default:!1},hideTraditionalColumns:{type:Boolean,default:!1},hasExpressionColumn:{type:Boolean,default:!1},enableV2EmptyStates:{type:Boolean,default:!1}},emits:["error","click:learn-more","copy:success","copy:error","delete:success"],setup(l,{emit:N}){var fe;const g=N,i=l,{i18n:{t:c,formatUnixTimeStamp:n}}=K.useI18n(),p=Ie.useRouter(),{axiosInstance:u}=y.useAxios((fe=i.config)==null?void 0:fe.axiosRequestConfig),{handleStateChange:b,hasRecords:V}=y.useTableState(()=>B.value),x=e.computed(()=>V.value&&i.config.app==="konnect"),f=e.computed(()=>!i.enableV2EmptyStates&&i.config.app==="konnect"),a=e.computed(()=>!!i.config.serviceId),D=e.computed(()=>i.config.app!=="kongManager"||!!i.config.disableSorting),W={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}},E={columnVisibility:{created_at:!1}},w=W,P=e.computed(()=>{var C,I,O,H;let S=`${i.config.apiBaseUrl}${ne.list[i.config.app][i.config.serviceId?"forGatewayService":"all"]}`;return i.config.app==="konnect"?S=S.replace(/{controlPlaneId}/gi,((C=i.config)==null?void 0:C.controlPlaneId)||"").replace(/{serviceId}/gi,((I=i.config)==null?void 0:I.serviceId)||""):i.config.app==="kongManager"&&(S=S.replace(/\/{workspace}/gi,(O=i.config)!=null&&O.workspace?`/${i.config.workspace}`:"").replace(/{serviceId}/gi,((H=i.config)==null?void 0:H.serviceId)||"")),S}),B=e.ref(""),t=e.computed(()=>{const S=i.config.app==="konnect"||i.config.isExactMatch;if(S)return{isExactMatch:S,placeholder:c(`search.placeholder.${i.config.isExactMatch?"exact":i.config.app}`)};const{name:C,protocols:I,hosts:O,methods:H,paths:J,expression:le}=W,h={name:C,protocols:I,hosts:O,methods:H,paths:J,...i.hasExpressionColumn&&{expression:le}};return{isExactMatch:S,fields:h,schema:i.config.filterSchema}}),{fetcher:L,fetcherState:re,fetcherCacheKey:ie}=y.useFetcher({...i.config,cacheIdentifier:i.cacheIdentifier},P.value),A=S=>S.headerKey==="expression"?{style:{maxWidth:"250px",overflowX:"hidden",textOverflow:"ellipsis"}}:{},Ce=()=>{B.value=""},ke=()=>{ie.value++},ae=e.ref(null),ye=(S,C)=>{const I=S.id;if(!C(I)){g("copy:error",{entity:S,field:"id",message:c("errors.copy")});return}g("copy:success",{entity:S,field:"id",message:c("copy.success",{val:I})})},de=(S,C)=>{const I=JSON.stringify(S);if(!C(I)){g("copy:error",{entity:S,message:c("errors.copy")});return}g("copy:success",{entity:S,message:c("copy.success_brief")})},he=async S=>{var I;await((I=i.canRetrieve)==null?void 0:I.call(i,S))&&p.push(i.config.getViewRoute(S.id))},Ee=S=>({label:c("actions.view"),to:i.config.getViewRoute(S)}),Se=S=>({label:c("actions.edit"),to:i.config.getEditRoute(S)}),Q=e.ref(void 0),ce=e.ref(!1),pe=e.ref(!1),be=e.ref(""),$=y.useDeleteUrlBuilder(i.config,P.value),Z=S=>{Q.value=S,ce.value=!0},Ne=()=>{ce.value=!1},Y=async()=>{var S,C,I;if((S=Q.value)!=null&&S.id){pe.value=!0;try{await u.delete($(Q.value.id)),pe.value=!1,ce.value=!1,ie.value++,g("delete:success",Q.value)}catch(O){be.value=((I=(C=O.response)==null?void 0:C.data)==null?void 0:I.message)||O.message||c("errors.delete"),g("error",O)}finally{pe.value=!1}}},Te=()=>{p.push(i.config.createRoute)};e.watch(re,S=>{var C,I,O;if(S.status===y.FetcherStatus.Error){ae.value={title:c("errors.general")},(O=(I=(C=S.error)==null?void 0:C.response)==null?void 0:I.data)!=null&&O.message&&(ae.value.message=S.error.response.data.message),g("error",S.error);return}ae.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"))}),(S,C)=>{const I=e.resolveComponent("KButton"),O=e.resolveComponent("KBadge"),H=e.resolveComponent("KTruncate"),J=e.resolveComponent("KDropdownItem"),le=e.resolveComponent("KClipboardProvider");return e.openBlock(),e.createElementBlock("div",Me,[e.createVNode(e.unref(y.EntityBaseTable),{"cache-identifier":l.cacheIdentifier,"cell-attributes":A,"default-table-preferences":E,"disable-sorting":D.value,"empty-state-options":q.value,"enable-entity-actions":"","error-message":ae.value,fetcher:e.unref(L),"fetcher-cache-key":e.unref(ie),"pagination-type":"offset","preferences-storage-key":"kong-ui-entities-routes-list",query:B.value,"table-headers":e.unref(w),title:l.title,"title-tag":l.titleTag,onClearSearchInput:Ce,"onClick:row":C[8]||(C[8]=h=>he(h)),onSort:ke,onState:e.unref(b)},e.createSlots({"toolbar-filter":e.withCtx(()=>[e.createVNode(e.unref(y.EntityFilter),{modelValue:B.value,"onUpdate:modelValue":C[0]||(C[0]=h=>B.value=h),config:t.value},null,8,["modelValue","config"])]),"toolbar-button":e.withCtx(()=>[(e.openBlock(),e.createBlock(e.Teleport,{disabled:!l.useActionOutside,to:"#kong-ui-app-page-header-action-button"},[e.createElementVNode("div",Le,[!a.value&&x.value?(e.openBlock(),e.createBlock(I,{key:0,appearance:"secondary",class:"open-learning-hub","data-testid":"routes-learn-more-button",icon:"",onClick:C[1]||(C[1]=h=>S.$emit("click:learn-more"))},{default:e.withCtx(()=>[e.createVNode(e.unref(z.BookIcon),{decorative:""})]),_:1})):e.createCommentVNode("",!0),e.createVNode(e.unref(y.PermissionsWrapper),{"auth-function":()=>l.canCreate()},{default:e.withCtx(()=>[e.createVNode(I,{appearance:"primary","data-testid":"toolbar-add-route",size:l.useActionOutside?"medium":"large",to:l.config.createRoute},{default:e.withCtx(()=>[e.createVNode(e.unref(z.AddIcon)),e.createTextVNode(" "+e.toDisplayString(e.unref(c)("routes.list.toolbar_actions.new_route")),1)]),_:1},8,["size","to"])]),_:1},8,["auth-function"])])],8,["disabled"]))]),name:e.withCtx(({rowValue:h})=>[e.createElementVNode("b",null,e.toDisplayString(h??"-"),1)]),protocols:e.withCtx(({rowValue:h})=>[e.createVNode(H,null,{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(h,_=>(e.openBlock(),e.createBlock(O,{key:_,appearance:"neutral",onClick:C[4]||(C[4]=e.withModifiers(()=>{},["stop"]))},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(_),1)]),_:2},1024))),128))]),_:2},1024)]),hosts:e.withCtx(({rowValue:h})=>[(h==null?void 0:h.length)>0?(e.openBlock(),e.createBlock(H,{key:0},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(h,_=>(e.openBlock(),e.createBlock(O,{key:_,appearance:"neutral",tooltip:_,"truncation-tooltip":"",onClick:C[5]||(C[5]=e.withModifiers(()=>{},["stop"]))},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(_),1)]),_:2},1032,["tooltip"]))),128))]),_:2},1024)):(e.openBlock(),e.createElementBlock("span",Ke,"-"))]),methods:e.withCtx(({rowValue:h})=>[(h==null?void 0:h.length)>0?(e.openBlock(),e.createBlock(H,{key:0},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(h,_=>(e.openBlock(),e.createBlock(O,{key:_,appearance:Object.values(e.unref(Re.BadgeMethodAppearances)).includes(_.toLowerCase())?_.toLowerCase():"custom",onClick:C[6]||(C[6]=e.withModifiers(()=>{},["stop"]))},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(_),1)]),_:2},1032,["appearance"]))),128))]),_:2},1024)):(e.openBlock(),e.createElementBlock("span",Ge,"-"))]),paths:e.withCtx(({rowValue:h})=>[(h==null?void 0:h.length)>0?(e.openBlock(),e.createBlock(H,{key:0},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(h,_=>(e.openBlock(),e.createBlock(O,{key:_,appearance:"neutral",tooltip:_,"truncation-tooltip":"",onClick:C[7]||(C[7]=e.withModifiers(()=>{},["stop"]))},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(_),1)]),_:2},1032,["tooltip"]))),128))]),_:2},1024)):(e.openBlock(),e.createElementBlock("span",je,"-"))]),tags:e.withCtx(({rowValue:h})=>[e.createVNode(e.unref(y.TableTags),{tags:h},null,8,["tags"])]),expression:e.withCtx(({rowValue:h})=>[e.createElementVNode("span",We,e.toDisplayString(h||"-"),1)]),created_at:e.withCtx(({rowValue:h})=>[e.createTextVNode(e.toDisplayString(e.unref(n)(h)),1)]),updated_at:e.withCtx(({row:h,rowValue:_})=>[e.createTextVNode(e.toDisplayString(e.unref(n)(_??h.created_at)),1)]),actions:e.withCtx(({row:h})=>[e.createVNode(le,null,{default:e.withCtx(({copyToClipboard:_})=>[e.createVNode(J,{"data-testid":"action-entity-copy-id",onClick:se=>ye(h,_)},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(c)("actions.copy_id")),1)]),_:2},1032,["onClick"])]),_:2},1024),e.createVNode(le,null,{default:e.withCtx(({copyToClipboard:_})=>[e.createVNode(J,{"data-testid":"action-entity-copy-json",onClick:se=>de(h,_)},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(c)("actions.copy_json")),1)]),_:2},1032,["onClick"])]),_:2},1024),e.createVNode(e.unref(y.PermissionsWrapper),{"auth-function":()=>l.canRetrieve(h)},{default:e.withCtx(()=>[e.createVNode(J,{"data-testid":"action-entity-view","has-divider":"",item:Ee(h.id)},null,8,["item"])]),_:2},1032,["auth-function"]),e.createVNode(e.unref(y.PermissionsWrapper),{"auth-function":()=>l.canEdit(h)},{default:e.withCtx(()=>[e.createVNode(J,{"data-testid":"action-entity-edit",item:Se(h.id)},null,8,["item"])]),_:2},1032,["auth-function"]),e.createVNode(e.unref(y.PermissionsWrapper),{"auth-function":()=>l.canDelete(h)},{default:e.withCtx(()=>[e.createVNode(J,{danger:"","data-testid":"action-entity-delete","has-divider":"",onClick:_=>Z(h)},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(c)("actions.delete")),1)]),_:2},1032,["onClick"])]),_:2},1032,["auth-function"])]),_:2},[!e.unref(V)&&f.value?{name:"outside-actions",fn:e.withCtx(()=>[(e.openBlock(),e.createBlock(e.Teleport,{disabled:!l.useActionOutside,to:"#kong-ui-app-page-header-action-button"},[e.createVNode(I,{appearance:"secondary",class:"open-learning-hub","data-testid":"routes-learn-more-button",icon:"",onClick:C[2]||(C[2]=h=>S.$emit("click:learn-more"))},{default:e.withCtx(()=>[e.createVNode(e.unref(z.BookIcon),{decorative:""})]),_:1})],8,["disabled"]))]),key:"0"}:void 0,!B.value&&l.enableV2EmptyStates&&l.config.app==="konnect"?{name:"empty-state",fn:e.withCtx(()=>{var h;return[e.createVNode(e.unref(y.EntityEmptyState),{"action-button-text":e.unref(c)("routes.list.toolbar_actions.new_route"),appearance:"secondary","can-create":()=>l.canCreate(),"data-testid":l.config.serviceId?"nested-routes-entity-empty-state":"routes-entity-empty-state",description:e.unref(c)("routes.list.empty_state_v2.description"),"learn-more":l.config.app==="konnect",title:e.unref(c)("routes.list.empty_state_v2.title"),"onClick:create":Te,"onClick:learnMore":C[3]||(C[3]=_=>S.$emit("click:learn-more"))},e.createSlots({image:e.withCtx(()=>[e.createElementVNode("div",qe,[e.createVNode(e.unref(z.ForwardIcon),{color:e.unref(He),size:e.unref(Ue)},null,8,["color","size"])])]),_:2},[(h=l.config)!=null&&h.isControlPlaneGroup?{name:"message",fn:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(c)("routes.list.empty_state_v2.group")),1)]),key:"0"}:void 0]),1032,["action-button-text","can-create","data-testid","description","learn-more","title"])]}),key:"1"}:void 0]),1032,["cache-identifier","disable-sorting","empty-state-options","error-message","fetcher","fetcher-cache-key","query","table-headers","title","title-tag","onState"]),e.createVNode(e.unref(y.EntityDeleteModal),{"action-pending":pe.value,description:e.unref(c)("delete.description"),"entity-name":Q.value&&(Q.value.name||Q.value.id),"entity-type":e.unref(y.EntityTypes).Route,error:be.value,title:e.unref(c)("delete.title"),visible:ce.value,onCancel:Ne,onProceed:Y},null,8,["action-pending","description","entity-name","entity-type","error","title","visible"])])}}}),G=(l,N)=>{const g=l.__vccOpts||l;for(const[i,c]of N)g[i]=c;return g},ze=G(Xe,[["__scopeId","data-v-8a0411ce"]]);var De=(l=>(l.GET="GET",l.PUT="PUT",l.POST="POST",l.PATCH="PATCH",l.DELETE="DELETE",l.OPTIONS="OPTIONS",l.HEAD="HEAD",l.CONNECT="CONNECT",l.TRACE="TRACE",l.CUSTOM="CUSTOM",l))(De||{}),T=(l=>(l.TRADITIONAL="traditional",l.EXPRESSIONS="expressions",l))(T||{}),s=(l=>(l.PATHS="paths",l.SNIS="snis",l.HOSTS="hosts",l.METHODS="methods",l.HEADERS="headers",l.SOURCES="sources",l.DESTINATIONS="destinations",l.CUSTOM_METHOD="custom-method",l))(s||{}),te=(l=>(l.LOADING="loading",l.ERROR="error",l.READY="ready",l))(te||{});const j=l=>l.routeFlavors.traditional===!0,ue=l=>l.routeFlavors.expressions===!0,Je={class:"routing-rules-entities-controls-container"},oe=G(e.defineComponent({__name:"RoutingRulesEntitiesControls",props:{routingRulesEntity:{type:String,required:!0},isAddDisabled:{type:Boolean,default:!1}},emits:["remove","add"],setup(l){return(N,g)=>{const i=e.resolveComponent("KButton");return e.openBlock(),e.createElementBlock("div",Je,[e.createVNode(i,{appearance:"tertiary",class:"remove-button","data-testid":`remove-${l.routingRulesEntity}`,icon:"",onClick:g[0]||(g[0]=c=>N.$emit("remove"))},{default:e.withCtx(()=>[e.createVNode(e.unref(z.TrashIcon),{color:e.unref(Ae)},null,8,["color"])]),_:1},8,["data-testid"]),e.createVNode(i,{appearance:"tertiary","data-testid":`add-${l.routingRulesEntity}`,disabled:l.isAddDisabled,icon:"",onClick:g[1]||(g[1]=c=>N.$emit("add"))},{default:e.withCtx(()=>[e.createVNode(e.unref(z.AddIcon))]),_:1},8,["data-testid","disabled"])])}}}),[["__scopeId","data-v-e024298d"]]),Qe={class:"routing-rule-container"},Ye=G(e.defineComponent({__name:"RouteFormDestinationsFields",props:{modelValue:{type:Array,required:!0}},emits:["add","remove","update:modelValue"],setup(l,{emit:N}){const g=l,i=N,{i18n:{t:c}}=K.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 b=e.resolveComponent("KLabel"),V=e.resolveComponent("KInput");return e.openBlock(),e.createElementBlock("div",Qe,[u[1]||(u[1]=e.createElementVNode("hr",null,null,-1)),e.createVNode(b,{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(V,{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(V,{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(s).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"]]),Ze={class:"routing-rule-container"},ve=G(e.defineComponent({__name:"RouteFormHeadersFields",props:{modelValue:{type:Array,required:!0}},emits:["add","remove","update:modelValue"],setup(l,{emit:N}){const g=l,i=N,{i18n:{t:c}}=K.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 b=e.resolveComponent("KLabel"),V=e.resolveComponent("KInput");return e.openBlock(),e.createElementBlock("div",Ze,[u[1]||(u[1]=e.createElementVNode("hr",null,null,-1)),e.createVNode(b,{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(V,{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(V,{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(s).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"]]),et={class:"routing-rule-container"},tt=G(e.defineComponent({__name:"RouteFormHostsFields",props:{modelValue:{type:Array,required:!0}},emits:["add","remove","update:modelValue"],setup(l,{emit:N}){const g=l,i=N,{i18n:{t:c}}=K.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 b=e.resolveComponent("KLabel"),V=e.resolveComponent("KInput");return e.openBlock(),e.createElementBlock("div",et,[u[1]||(u[1]=e.createElementVNode("hr",null,null,-1)),e.createVNode(b,{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(V,{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(s).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"]]),ot={class:"routing-rule-container"},rt={class:"routing-rule-input"},lt={class:"methods-input-container"},st={key:0,class:"routing-rule-container"},nt=G(e.defineComponent({__name:"RouteFormMethodsFields",props:{modelValue:{type:Object,required:!0},customMethods:{type:Array,required:!0}},emits:["add","remove","update:modelValue","update-custom-methods"],setup(l,{emit:N}){const g=l,i=N,{i18n:{t:c}}=K.useI18n(),n=e.ref({}),p=e.ref([...g.customMethods]),u=b=>{p.value.length===1?p.value[0]="":p.value.splice(b,1)};return e.watch(g.modelValue,b=>{n.value={...b}},{immediate:!0,deep:!0}),e.watch(n,b=>{i("update:modelValue",b)},{deep:!0}),e.watch(p,b=>{i("update-custom-methods",b)},{deep:!0}),(b,V)=>{const x=e.resolveComponent("KLabel"),f=e.resolveComponent("KInputSwitch"),a=e.resolveComponent("KBadge"),D=e.resolveComponent("KButton"),W=e.resolveComponent("KInput");return e.openBlock(),e.createElementBlock("div",ot,[V[2]||(V[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",rt,[e.createElementVNode("div",lt,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(Object.keys(n.value),E=>(e.openBlock(),e.createElementBlock("div",{key:E,class:"methods-input"},[e.createVNode(f,{modelValue:n.value[E],"onUpdate:modelValue":w=>n.value[E]=w,"data-testid":`${E.toLowerCase()}-method-toggle`},null,8,["modelValue","onUpdate:modelValue","data-testid"]),e.createVNode(a,{appearance:Object.values(e.unref(Re.BadgeMethodAppearances)).includes(E.toLowerCase())?E.toLowerCase():"custom"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(E.toLowerCase()),1)]),_:2},1032,["appearance"])]))),128))]),e.createVNode(D,{appearance:"tertiary",class:"remove-button","data-testid":"remove-methods",icon:"",onClick:V[0]||(V[0]=E=>b.$emit("remove"))},{default:e.withCtx(()=>[e.createVNode(e.unref(z.TrashIcon),{color:e.unref(Ae)},null,8,["color"])]),_:1})]),n.value.CUSTOM?(e.openBlock(),e.createElementBlock("div",st,[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,(E,w)=>(e.openBlock(),e.createElementBlock("div",{key:w,class:"routing-rule-input"},[e.createVNode(W,{modelValue:p.value[w],"onUpdate:modelValue":P=>p.value[w]=P,modelModifiers:{trim:!0},"data-testid":`route-form-custom-method-input-${w+1}`,placeholder:e.unref(c)("form.fields.methods.custom.placeholder")},null,8,["modelValue","onUpdate:modelValue","data-testid","placeholder"]),e.createVNode(oe,{"is-add-disabled":w!==p.value.length-1,"routing-rules-entity":e.unref(s).CUSTOM_METHOD,onAdd:V[1]||(V[1]=P=>p.value.push("")),onRemove:P=>u(w)},null,8,["is-add-disabled","routing-rules-entity","onRemove"])]))),128))]),_:1})])):e.createCommentVNode("",!0)])}}}),[["__scopeId","data-v-c8ae1bc5"]]),it={class:"routing-rule-container"},at=G(e.defineComponent({__name:"RouteFormPathsFields",props:{modelValue:{type:Array,required:!0}},emits:["add","remove","update:modelValue"],setup(l,{emit:N}){const g=l,i=N,{i18n:{t:c}}=K.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 b=e.resolveComponent("KLabel"),V=e.resolveComponent("KInput");return e.openBlock(),e.createElementBlock("div",it,[e.createVNode(b,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(V,{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(s).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"]]),dt={class:"routing-rule-container"},ct=G(e.defineComponent({__name:"RouteFormSnisFields",props:{modelValue:{type:Array,required:!0}},emits:["add","remove","update:modelValue"],setup(l,{emit:N}){const g=l,i=N,{i18n:{t:c}}=K.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 b=e.resolveComponent("KLabel"),V=e.resolveComponent("KInput");return e.openBlock(),e.createElementBlock("div",dt,[u[1]||(u[1]=e.createElementVNode("hr",null,null,-1)),e.createVNode(b,{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(V,{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(s).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"]]),pt={class:"routing-rule-container"},ft=G(e.defineComponent({__name:"RouteFormSourcesFields",props:{modelValue:{type:Array,required:!0}},emits:["add","remove","update:modelValue"],setup(l,{emit:N}){const g=l,i=N,{i18n:{t:c}}=K.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 b=e.resolveComponent("KLabel"),V=e.resolveComponent("KInput");return e.openBlock(),e.createElementBlock("div",pt,[u[1]||(u[1]=e.createElementVNode("hr",null,null,-1)),e.createVNode(b,{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(V,{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(V,{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(s).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"]]),mt=G(e.defineComponent({__name:"RouteFormConfigTabs",props:e.mergeModels({routeFlavors:{},tooltips:{}},{modelValue:{required:!0},modelModifiers:{}}),emits:["update:modelValue"],setup(l){const N=e.useModel(l,"modelValue"),g=l,{i18n:{t:i}}=xe(),c=e.computed(()=>[...g.routeFlavors.traditional?[{hash:`#${T.TRADITIONAL}`,title:i("form.flavors.traditional")}]:[],...g.routeFlavors.expressions?[{hash:`#${T.EXPRESSIONS}`,title:i("form.flavors.expressions")}]:[]]);return(n,p)=>{const u=e.resolveComponent("KTooltip"),b=e.resolveComponent("KTabs");return c.value.length>1?(e.openBlock(),e.createBlock(b,{key:0,modelValue:N.value,"onUpdate:modelValue":p[0]||(p[0]=V=>N.value=V),"data-testid":"route-form-config-tabs",tabs:c.value},e.createSlots({_:2},[n.routeFlavors.traditional?{name:`${e.unref(T).TRADITIONAL}-anchor`,fn:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(i)("form.flavors.traditional"))+" ",1),n.tooltips&&n.tooltips[e.unref(T).TRADITIONAL]?(e.openBlock(),e.createBlock(u,{key:0,class:"route-form-config-tabs-tooltip",text:n.tooltips[e.unref(T).TRADITIONAL],"tooltip-id":"route-form-config-tabs-tooltip-traditional"},{default:e.withCtx(()=>[e.createVNode(e.unref(z.InfoIcon),{color:e.unref(Oe),size:e.unref(Ve),tabindex:"0"},null,8,["color","size"])]),_:1},8,["text"])):e.createCommentVNode("",!0)]),key:"0"}:void 0,n.routeFlavors.traditional?{name:e.unref(T).TRADITIONAL,fn:e.withCtx(()=>[e.renderSlot(n.$slots,"before-content",{},void 0,!0),e.renderSlot(n.$slots,e.unref(T).TRADITIONAL,{},void 0,!0)]),key:"1"}:void 0,n.routeFlavors.expressions?{name:`${e.unref(T).EXPRESSIONS}-anchor`,fn:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(i)("form.flavors.expressions"))+" ",1),n.tooltips&&n.tooltips[e.unref(T).EXPRESSIONS]?(e.openBlock(),e.createBlock(u,{key:0,class:"route-form-config-tabs-tooltip",text:n.tooltips[e.unref(T).EXPRESSIONS],"tooltip-id":"route-form-config-tabs-tooltip-expressions"},{default:e.withCtx(()=>[e.createVNode(e.unref(z.InfoIcon),{color:e.unref(Oe),size:e.unref(Ve),tabindex:"0"},null,8,["color","size"])]),_:1},8,["text"])):e.createCommentVNode("",!0)]),key:"2"}:void 0,n.routeFlavors.expressions?{name:e.unref(T).EXPRESSIONS,fn:e.withCtx(()=>[e.renderSlot(n.$slots,"before-content",{},void 0,!0),e.renderSlot(n.$slots,e.unref(T).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(T).TRADITIONAL,{key:0},void 0,!0):n.routeFlavors.expressions?e.renderSlot(n.$slots,e.unref(T).EXPRESSIONS,{key:1},void 0,!0):e.createCommentVNode("",!0)],64))}}}),[["__scopeId","data-v-f1c7a92f"]]),ut=e.defineComponent({__name:"RouteFormExpressionsEditorLoader",props:e.mergeModels({protocol:{},showExpressionsModalEntry:{type:Boolean}},{modelValue:{required:!0},modelModifiers:{}}),emits:e.mergeModels(["notify"],["update:modelValue"]),setup(l,{emit:N}){const{i18n:{t:g}}=K.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(()=>Dt),loadingComponent:i,errorComponent:c}),p=l,u=N,b=e.ref(te.LOADING),V=e.useModel(l,"modelValue"),x=f=>{V.value=f};return e.onMounted(async()=>{try{await(await import("@kong-ui-public/expressions")).asyncInit,b.value=te.READY}catch(f){b.value=te.ERROR,console.error(f)}}),(f,a)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[b.value===e.unref(te).ERROR?(e.openBlock(),e.createBlock(e.resolveDynamicComponent(c),{key:0,"data-testid":"route-form-expressions-editor-loader-error"})):b.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:V.value,"onUpdate:modelValue":a[0]||(a[0]=D=>V.value=D),"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]=D=>u("notify",D))},{default:e.withCtx(()=>[e.createVNode(e.unref(z.RocketIcon),{size:e.unref(Ve)},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:V.value,update:x},state:b.value})],64))}}),ht={class:"kong-ui-entities-route-form"},gt={key:1},yt={"data-testid":"no-search-results"},St={class:"route-form-service-dropdown-item"},bt={class:"select-item-label"},Vt={class:"select-item-description"},Ct={class:"route-form-routing-rules-title-container"},kt={class:"routing-rules-title"},Et={key:1,class:"route-form-routing-rules-selector-container"},Nt={class:"route-form-routing-rules-selector-options"},Tt=["aria-disabled","data-testid","onClick"],_t={class:"route-form-fields-container route-form-advanced-fields-container"},wt={class:"route-form-routing-rules-title-container"},It={class:"routing-rules-title"},Rt={class:"route-form-fields-container route-form-advanced-fields-container"},Bt=G(e.defineComponent({__name:"RouteForm",props:{config:{type:Object,required:!0,validator:l=>!(!l||!["konnect","kongManager"].includes(l==null?void 0:l.app)||(l==null?void 0:l.app)==="konnect"&&!(l!=null&&l.controlPlaneId)||(l==null?void 0:l.app)==="kongManager"&&typeof(l==null?void 0:l.workspace)!="string"||!(l!=null&&l.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(l,{expose:N,emit:g}){var $e;const i=l,c=g,n=e.ref(i.routeFlavors.traditional?`#${T.TRADITIONAL}`:i.routeFlavors.expressions?`#${T.EXPRESSIONS}`:""),p=e.computed(()=>{if(n.value)return n.value.substring(1)}),u=e.ref(void 0),b=e.ref(!0),V=e.computed(()=>{if(u.value)return u.value;if(p.value)return p.value;if(i.routeFlavors.traditional)return T.TRADITIONAL;if(i.routeFlavors.expressions)return T.EXPRESSIONS}),{i18nT:x,i18n:f,i18n:{t:a}}=K.useI18n(),D=f.source.form.protocols,W=Ie.useRouter(),{axiosInstance:E}=y.useAxios(($e=i.config)==null?void 0:$e.axiosRequestConfig),{getMessageFromError:w}=y.useErrors(),P=e.computed(()=>!(i.hideNameField&&(i.hideServiceField||i.serviceId)&&i.showTagsFiledUnderAdvanced)),B=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:""});e.watch(()=>i.routeFlavors,o=>{t.routeFlavors=o});const L=e.computed(()=>t.fields.protocols.split(",")[0]),re=e.ref([""]),ie=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={[s.PATHS]:[""],[s.SNIS]:[""],[s.HOSTS]:[""],[s.METHODS]:{GET:!1,PUT:!1,POST:!1,PATCH:!1,DELETE:!1,OPTIONS:!1,HEAD:!1,CONNECT:!1,TRACE:!1,CUSTOM:!1},[s.HEADERS]:[{header:"",values:""}],[s.SOURCES]:[{ip:"",port:null}],[s.DESTINATIONS]:[{ip:"",port:null}]},Ce=i.config.app==="konnect"||y.useGatewayFeatureSupported({gatewayInfo:i.config.gatewayInfo,supportedRange:{enterprise:["3.0"]}}),ke=[{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"},...Ce?[{label:a("form.protocols.ws"),value:"ws"},{label:a("form.protocols.wss"),value:"wss"},{label:a("form.protocols.ws,wss"),value:"ws,wss"}]:[]],ae=[{label:"v0",value:"v0"},{label:"v1",value:"v1"}],ye=[{label:"426",value:426},{label:"301",value:301},{label:"302",value:302},{label:"307",value:307},{label:"308",value:308}],de={http:[s.HOSTS,s.METHODS,s.PATHS,s.HEADERS],https:[s.HOSTS,s.METHODS,s.PATHS,s.HEADERS,s.SNIS],"http,https":[s.HOSTS,s.METHODS,s.PATHS,s.HEADERS,s.SNIS],"https,http":[s.HOSTS,s.METHODS,s.PATHS,s.HEADERS,s.SNIS],grpc:[s.HOSTS,s.PATHS,s.HEADERS],grpcs:[s.HOSTS,s.PATHS,s.HEADERS,s.SNIS],"grpc,grpcs":[s.HOSTS,s.PATHS,s.HEADERS,s.SNIS],"grpcs,grpc":[s.HOSTS,s.PATHS,s.HEADERS,s.SNIS],udp:[s.SOURCES,s.DESTINATIONS],tls:[s.SOURCES,s.DESTINATIONS,s.SNIS],tcp:[s.SOURCES,s.DESTINATIONS],"tls,udp":[s.SOURCES,s.DESTINATIONS,s.SNIS],"udp,tls":[s.SOURCES,s.DESTINATIONS,s.SNIS],"tcp,udp":[s.SOURCES,s.DESTINATIONS],"udp,tcp":[s.SOURCES,s.DESTINATIONS],"tcp,tls":[s.SOURCES,s.DESTINATIONS,s.SNIS],"tls,tcp":[s.SOURCES,s.DESTINATIONS,s.SNIS],"tcp,tls,udp":[s.SOURCES,s.DESTINATIONS,s.SNIS],"tls,udp,tcp":[s.SOURCES,s.DESTINATIONS,s.SNIS],"udp,tcp,tls":[s.SOURCES,s.DESTINATIONS,s.SNIS],tls_passthrough:[s.SNIS],ws:[s.HOSTS,s.PATHS,s.HEADERS],wss:[s.HOSTS,s.PATHS,s.HEADERS,s.SNIS],"ws,wss":[s.HOSTS,s.PATHS,s.HEADERS,s.SNIS],"wss,ws":[s.HOSTS,s.PATHS,s.HEADERS,s.SNIS]},he=e.computed(()=>i.routeId?y.EntityBaseFormType.Edit:y.EntityBaseFormType.Create),Ee=e.computed(()=>{var o,r,m;return(m=(r=ne.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||"")}),Se=()=>{var o;W.push((o=i.config)==null?void 0:o.cancelRoute)},Q=o=>{c("loading",o)},ce=o=>{c("error",o)},pe=o=>{j(t)&&(t.fields.methods=A[s.METHODS],o.forEach(r=>{t.fields.methods&&(t.fields.methods[r]=!0)}))},be=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)),Z=(o,r)=>{if(o===s.PATHS||o===s.HOSTS||o===s.SNIS)return[...r].filter(m=>!!m);if(o===s.SOURCES||o===s.DESTINATIONS)return[...r].filter(m=>!!m.ip).map(m=>({...m,port:!m.port&&m.port!==0?null:m.port}));if(o===s.HEADERS)return[...r].filter(m=>!!m.header)},Ne=()=>{if(j(t)){const o=Z(s.HEADERS,t.fields.headers||[])||A[s.HEADERS];if(o.length===0)return null;const r={};return o.forEach(m=>{r[m.header]=m.values.split(",")}),r}return null},Y=o=>{j(t)&&(o&&o===s.PATHS&&(t.fields.paths?t.fields.paths.push([...A[s.PATHS]][0]):t.fields.paths=[...A[s.PATHS]]),o===s.SNIS&&(t.fields.snis?t.fields.snis.push([...A[s.SNIS]][0]):t.fields.snis=[...A[s.SNIS]]),o===s.HOSTS&&(t.fields.hosts?t.fields.hosts.push([...A[s.HOSTS]][0]):t.fields.hosts=[...A[s.HOSTS]]),o===s.METHODS&&(t.fields.methods||(t.fields.methods={...A[s.METHODS]})),o===s.HEADERS&&(t.fields.headers?t.fields.headers.push({...A[s.HEADERS][0]}):t.fields.headers=[{...A[s.HEADERS][0]}]),o===s.SOURCES&&(t.fields.sources?t.fields.sources.push({...A[s.SOURCES][0]}):t.fields.sources=[{...A[s.SOURCES][0]}]),o===s.DESTINATIONS&&(t.fields.destinations?t.fields.destinations.push({...A[s.DESTINATIONS][0]}):t.fields.destinations=[{...A[s.DESTINATIONS][0]}]))},Te=e.computed(()=>{var o;return j(t)?(o=de[t.fields.protocols])==null?void 0:o.filter(r=>!t.fields[r]):!1}),q=async(o,r)=>{if(j(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===s.METHODS&&(re.value=[""])})}},fe=o=>{var m;return((m=f.source.form.fields[o])==null?void 0:m.label)||""};e.watch(()=>t.fields.protocols,()=>{S()});const S=()=>{const o=Object.keys(A),r=de[t.fields.protocols];Object.keys(t.fields).filter(k=>o.includes(k)).forEach(k=>{r!=null&&r.includes(k)||q(k)})},C=e.computed(()=>{if(j(t)){const o=[];return t.fields.methods&&Object.entries(t.fields.methods).forEach(([r,m])=>{m&&o.push(r)}),o}return[]}),I=e.computed(()=>{var o;return((o=t.fields.protocols)==null?void 0:o.split(","))||[]}),O=e.computed(()=>{const o=Object.keys(A);return!Object.keys(t.fields).filter(m=>o.includes(m)).length}),H=e.computed(()=>{if($(["tls_passthrough"]))return[fe(s.SNIS)];const o=de[t.fields.protocols].map(r=>fe(r));return[[...o].splice(0,o.length-1).join(", "),o[o.length-1]]}),J=o=>{var m,k;if(i.routeId){const F=typeof o.expression=="string"&&o.expression.length>0?T.EXPRESSIONS:T.TRADITIONAL;u.value=F,n.value=`#${F}`}(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,(k=o==null?void 0:o.protocols)!=null&&k.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,j(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&&pe(o.methods),o!=null&&o.headers&&(t.fields.headers=be(o.headers)),o!=null&&o.sources&&(t.fields.sources=o.sources),o!=null&&o.destinations&&(t.fields.destinations=o.destinations)),ue(t)&&(t.fields.expression=(o==null?void 0:o.expression)||"",t.fields.priority=(o==null?void 0:o.priority)||0),Object.assign(ie,JSON.parse(JSON.stringify(t.fields)))},le=e.computed(()=>{var o;switch(V.value){case T.TRADITIONAL:{if(j(t)){const r=t.fields.hosts?!!t.fields.hosts.filter(Boolean).length:null,m=t.fields.paths?!!t.fields.paths.filter(Boolean).length:null,k=t.fields.headers?t.fields.headers.some(({header:ee})=>!!ee):null,F=t.fields.snis?!!t.fields.snis.filter(Boolean).length:null,v=t.fields.destinations?t.fields.destinations.some(({ip:ee})=>!!ee):null,X=t.fields.sources?t.fields.sources.some(({ip:ee})=>!!ee):null,d=((o=t.fields.methods)==null?void 0:o.CUSTOM)?re.value.some(ee=>!!ee):Object.values(t.fields.methods||{}).includes(!0);return!!t.fields.protocols&&($(["http"])&&!!(r||d||m||k)||$(["https"])&&!!(r||d||m||k||F)||$(["grpc"])&&!!(r||m||k)||$(["grpcs","wss"])&&!!(r||m||k||F)||$(["udp","tls"])&&!!(v||X||F)||$(["tcp"])&&!!(v||X)||$(["tls_passthrough"])&&!!F||$(["ws"])&&!!(r||m||k))}break}case T.EXPRESSIONS:{if(ue(t))return t.fields.expression.length>0;break}}return!0}),h=e.computed(()=>!Fe(t.fields,ie)),_=e.computed(()=>{var r,m;let o=`${i.config.apiBaseUrl}${ne.form[i.config.app][he.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",ge.value)},{deep:!0});const se=o=>o!=null&&o.length?o:null,$t=()=>{var o,r;if(j(t)){const m={methods:null,hosts:se(Z(s.HOSTS,t.fields.hosts||[])),paths:se(Z(s.PATHS,t.fields.paths||[])),headers:Ne(),regex_priority:Number(t.fields.regex_priority),path_handling:t.fields.path_handling,sources:se(Z(s.SOURCES,t.fields.sources||[])),destinations:se(Z(s.DESTINATIONS,t.fields.destinations||[])),snis:se(Z(s.SNIS,t.fields.snis||[]))};if((o=C.value)!=null&&o.length&&(m.methods=[...C.value],(r=C.value)!=null&&r.includes("CUSTOM"))){const k=m.methods.indexOf("CUSTOM");k!==-1&&m.methods.splice(k,1),re.value.forEach(F=>{var v;F&&m.methods&&!((v=m.methods)!=null&&v.includes(F))&&m.methods.push(F.toUpperCase())})}return m}},Ft=()=>{if(ue(t))return{expression:t.fields.expression,priority:Number(t.fields.priority)}},ge=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(k=>String(k||"").trim()))==null?void 0:m.filter(k=>k!==""),service:t.fields.service_id?{id:t.fields.service_id}:null};switch(V.value){case T.TRADITIONAL:return{...o,...$t()};case T.EXPRESSIONS:return{...o,...Ft()};default:return o}}),Pt=o=>{switch(V.value){case T.TRADITIONAL:{if(!("regex_priority"in o&&"path_handling"in o))return!1;break}case T.EXPRESSIONS:{if(!("priority"in o))return!1;break}}return"service"in o&&"tags"in o&&"protocols"in o},_e=async o=>{var m;const r=o&&Pt(o)?o:ge.value;try{t.isReadonly=!0;let k;he.value==="create"?k=await E.post(_.value,r):he.value==="edit"&&(k=((m=i.config)==null?void 0:m.app)==="konnect"?await E.put(_.value,r):await E.patch(_.value,r)),J(k==null?void 0:k.data),c("update",k==null?void 0:k.data)}catch(k){t.errorMessage=w(k),c("error",k)}finally{t.isReadonly=!1}},{debouncedQueryChange:Ht,loading:Ut,error:Mt,loadItems:Lt,results:qt}=y.useDebouncedFilter(i.config,ne.form[i.config.app].services,void 0,{fetchedItemsKey:"data",searchKeys:["id","name"]}),Kt=e.computed(()=>Mt.value?a("errors.services.fetch"):""),Gt=e.computed(()=>{var o;return(o=qt.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 Lt():t.fields.service_id=i.serviceId}),e.onMounted(()=>{c("model-updated",ge.value)}),N({saveFormData:_e,getPayload:ge}),(o,r)=>{const m=e.resolveComponent("KInput"),k=e.resolveComponent("KSelect"),F=e.resolveComponent("KAlert"),v=e.resolveComponent("KCard"),X=e.resolveComponent("KCheckbox"),we=e.resolveComponent("KCollapse");return e.openBlock(),e.createElementBlock("div",ht,[e.createVNode(e.unref(y.EntityBaseForm),{"can-submit":le.value&&h.value,config:l.config,"edit-id":l.routeId,"entity-type":e.unref(y.SupportedEntityType).Route,"error-message":t.errorMessage||Kt.value,"fetch-url":Ee.value,"form-fields":ge.value,"is-readonly":t.isReadonly,onCancel:Se,"onFetch:error":ce,"onFetch:success":J,onLoading:Q,onSubmit:_e},{"form-actions":e.withCtx(()=>[e.renderSlot(o.$slots,"form-actions",{canSubmit:le.value&&h.value,cancel:Se,submit:_e},void 0,!0)]),default:e.withCtx(()=>[P.value?(e.openBlock(),e.createBlock(e.unref(y.EntityFormSection),{key:0,description:e.unref(a)("form.sections.general.description"),"hide-info-header":l.hideSectionsInfo,title:e.unref(a)("form.sections.general.title")},{default:e.withCtx(()=>[l.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"])),!l.hideServiceField&&!l.serviceId?(e.openBlock(),e.createElementBlock("div",gt,[e.createVNode(k,{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:Gt.value,label:e.unref(a)("form.fields.service_id.label"),loading:e.unref(Ut),placeholder:e.unref(a)("form.fields.service_id.placeholder"),readonly:t.isReadonly,"reuse-item-template":"",width:"100%",onQueryChange:e.unref(Ht)},{loading:e.withCtx(()=>[e.createElementVNode("div",null,e.toDisplayString(e.unref(a)("actions.loading")),1)]),empty:e.withCtx(()=>[e.createElementVNode("div",yt,e.toDisplayString(e.unref(a)("search.no_results")),1)]),"selected-item-template":e.withCtx(({item:d})=>[e.createTextVNode(e.toDisplayString(B(d)),1)]),"item-template":e.withCtx(({item:d})=>[e.createElementVNode("div",St,[e.createElementVNode("span",bt,e.toDisplayString(d.name),1),e.createElementVNode("span",Vt,e.toDisplayString(d.value),1)])]),_:1},8,["modelValue","items","label","loading","placeholder","readonly","onQueryChange"])])):e.createCommentVNode("",!0),l.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(y.EntityFormSection),{description:e.unref(a)("form.sections.config.description"),"hide-info-header":l.hideSectionsInfo,title:e.unref(a)("form.sections.config.title")},{default:e.withCtx(()=>[e.createVNode(k,{modelValue:t.fields.protocols,"onUpdate:modelValue":r[3]||(r[3]=d=>t.fields.protocols=d),"data-testid":"route-form-protocols",items:ke,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(mt,{modelValue:n.value,"onUpdate:modelValue":r[44]||(r[44]=d=>n.value=d),"route-flavors":l.routeFlavors,tooltips:l.configTabTooltips},e.createSlots({_:2},[l.routeFlavors.traditional&&l.routeFlavors.expressions&&(!u.value||u.value!==p.value)?{name:"before-content",fn:e.withCtx(()=>[e.createVNode(F,{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(j)(t)?{name:"traditional",fn:e.withCtx(()=>[!u.value||u.value===e.unref(T).TRADITIONAL?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[t.fields.protocols?(e.openBlock(),e.createBlock(v,{key:0},{title:e.withCtx(()=>[e.createElementVNode("div",Ct,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(I.value,d=>(e.openBlock(),e.createElementBlock("span",{key:d,class:"protocol-title"},e.toDisplayString(d.toUpperCase()),1))),128)),e.createElementVNode("span",kt,e.toDisplayString(e.unref(a)("form.sections.routingRules.title")),1)])]),default:e.withCtx(()=>[O.value?(e.openBlock(),e.createBlock(F,{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(D)[t.fields.protocols]),1)]),routingRules:e.withCtx(()=>[e.createVNode(e.unref(x),{keypath:H.value[1]?"form.warning.multipleRules":"form.warning.singleRule"},{routingRules:e.withCtx(()=>[e.createElementVNode("b",null,e.toDisplayString(H.value[0]),1)]),lastRoutingRule:e.withCtx(()=>[e.createElementVNode("b",null,e.toDisplayString(H.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(at,{key:"paths-container",modelValue:t.fields.paths,"onUpdate:modelValue":r[4]||(r[4]=d=>t.fields.paths=d),onAdd:r[5]||(r[5]=d=>Y(e.unref(s).PATHS)),onRemove:r[6]||(r[6]=d=>q(e.unref(s).PATHS,d))},null,8,["modelValue"])):e.createCommentVNode("",!0),t.fields.snis?(e.openBlock(),e.createBlock(ct,{key:"snis-container",modelValue:t.fields.snis,"onUpdate:modelValue":r[7]||(r[7]=d=>t.fields.snis=d),onAdd:r[8]||(r[8]=d=>Y(e.unref(s).SNIS)),onRemove:r[9]||(r[9]=d=>q(e.unref(s).SNIS,d))},null,8,["modelValue"])):e.createCommentVNode("",!0),t.fields.hosts?(e.openBlock(),e.createBlock(tt,{key:"hosts-container",modelValue:t.fields.hosts,"onUpdate:modelValue":r[10]||(r[10]=d=>t.fields.hosts=d),onAdd:r[11]||(r[11]=d=>Y(e.unref(s).HOSTS)),onRemove:r[12]||(r[12]=d=>q(e.unref(s).HOSTS,d))},null,8,["modelValue"])):e.createCommentVNode("",!0),t.fields.methods?(e.openBlock(),e.createBlock(nt,{key:"methods-container",modelValue:t.fields.methods,"onUpdate:modelValue":r[13]||(r[13]=d=>t.fields.methods=d),"custom-methods":re.value,onRemove:r[14]||(r[14]=d=>q(e.unref(s).METHODS)),onUpdateCustomMethods:r[15]||(r[15]=d=>re.value=d)},null,8,["modelValue","custom-methods"])):e.createCommentVNode("",!0),t.fields.headers?(e.openBlock(),e.createBlock(ve,{key:"headers-container",modelValue:t.fields.headers,"onUpdate:modelValue":r[16]||(r[16]=d=>t.fields.headers=d),onAdd:r[17]||(r[17]=d=>Y(e.unref(s).HEADERS)),onRemove:r[18]||(r[18]=d=>q(e.unref(s).HEADERS,d))},null,8,["modelValue"])):e.createCommentVNode("",!0),t.fields.sources?(e.openBlock(),e.createBlock(ft,{key:"sources-container",modelValue:t.fields.sources,"onUpdate:modelValue":r[19]||(r[19]=d=>t.fields.sources=d),onAdd:r[20]||(r[20]=d=>Y(e.unref(s).SOURCES)),onRemove:r[21]||(r[21]=d=>q(e.unref(s).SOURCES,d))},null,8,["modelValue"])):e.createCommentVNode("",!0),t.fields.destinations?(e.openBlock(),e.createBlock(Ye,{key:"destinations-container",modelValue:t.fields.destinations,"onUpdate:modelValue":r[22]||(r[22]=d=>t.fields.destinations=d),onAdd:r[23]||(r[23]=d=>Y(e.unref(s).DESTINATIONS)),onRemove:r[24]||(r[24]=d=>q(e.unref(s).DESTINATIONS,d))},null,8,["modelValue"])):e.createCommentVNode("",!0)]),_:1}),Te.value?(e.openBlock(),e.createElementBlock("div",Et,[r[45]||(r[45]=e.createElementVNode("hr",null,null,-1)),e.createElementVNode("div",Nt,[e.createElementVNode("ul",null,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(de[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:ee=>Y(d)},e.toDisplayString(fe(d)),11,Tt)]))),128))])])])):e.createCommentVNode("",!0)]),_:1})):e.createCommentVNode("",!0),e.createVNode(we,{modelValue:b.value,"onUpdate:modelValue":r[33]||(r[33]=d=>b.value=d),class:"route-form-advanced-fields-collapse","trigger-alignment":"leading","trigger-label":e.unref(a)("form.viewAdvancedFields")},{default:e.withCtx(()=>[e.createElementVNode("div",_t,[t.fields.paths?(e.openBlock(),e.createBlock(k,{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:ae,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(k,{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:ye,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"]),l.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(X,{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(X,{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(X,{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(X,{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(ue)(t)?{name:"expressions",fn:e.withCtx(()=>[!u.value||u.value===e.unref(T).EXPRESSIONS?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[t.fields.protocols?(e.openBlock(),e.createBlock(v,{key:0},{title:e.withCtx(()=>[e.createElementVNode("div",wt,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(I.value,d=>(e.openBlock(),e.createElementBlock("span",{key:d,class:"protocol-title"},e.toDisplayString(d.toUpperCase()),1))),128)),e.createElementVNode("span",It,e.toDisplayString(e.unref(a)("form.sections.routingExpression.title")),1)])]),default:e.withCtx(()=>[e.createVNode(ut,{modelValue:t.fields.expression,"onUpdate:modelValue":r[34]||(r[34]=d=>t.fields.expression=d),protocol:L.value,"show-expressions-modal-entry":l.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(we,{modelValue:b.value,"onUpdate:modelValue":r[43]||(r[43]=d=>b.value=d),class:"route-form-advanced-fields-collapse","trigger-alignment":"leading","trigger-label":e.unref(a)("form.viewAdvancedFields")},{default:e.withCtx(()=>[e.createElementVNode("div",Rt,[e.createVNode(k,{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:ye,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"]),l.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(X,{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(X,{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(X,{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(X,{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-e155aee1"]]),xt={class:"kong-ui-entities-route-entity-config-card"},At={key:2},Ot=e.defineComponent({__name:"RouteConfigCard",props:{config:{type:Object,required:!0,validator:l=>!(!l||!["konnect","kongManager"].includes(l==null?void 0:l.app)||l.app==="konnect"&&!l.controlPlaneId||l.app==="kongManager"&&typeof l.workspace!="string"||!l.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(l,{emit:N}){var W;const g=N,i=l,{axiosInstance:c}=y.useAxios((W=i.config)==null?void 0:W.axiosRequestConfig),{i18n:{t:n},i18nT:p}=K.useI18n(),u=e.ref(""),b=e.ref(""),V=e.ref(!1),x=e.computed(()=>{var E,w;return(w=ne.item[(E=i.config)==null?void 0:E.app])==null?void 0:w[i.serviceId?"forGatewayService":"all"].replace(/{serviceId}/gi,i.serviceId)}),f=e.computed(()=>{var E;return(E=ne.item[i.config.app])==null?void 0:E.getService}),a=async E=>{var P,B,t;if(u.value=i.serviceId||((P=E==null?void 0:E.service)==null?void 0:P.id),g("fetch:success",E),!u.value)return;let w=`${i.config.apiBaseUrl}${f.value}`;i.config.app==="konnect"?w=w.replace(/{controlPlaneId}/gi,((B=i.config)==null?void 0:B.controlPlaneId)||"").replace(/{serviceId}/gi,u.value||""):i.config.app==="kongManager"&&(w=w.replace(/\/{workspace}/gi,(t=i.config)!=null&&t.workspace?`/${i.config.workspace}`:"").replace(/{serviceId}/gi,u.value||""));try{V.value=!0;const{data:L}=await c.get(w);b.value=(L==null?void 0:L.name)||(L==null?void 0:L.id)}catch(L){g("fetch:error",L)}finally{V.value=!1}},D=e.ref({id:{},name:{tooltip:n("form.fields.name.tooltip")},created_at:{},updated_at:{},service:{label:n("form.fields.service.label"),section:y.ConfigurationSchemaSection.Basic,tooltip:n("form.fields.service.tooltip"),order:5},tags:{tooltip:n("form.fields.tags.tooltip"),order:6},protocols:{section:y.ConfigurationSchemaSection.Basic,type:y.ConfigurationSchemaType.BadgeTag,order:7},paths:{section:y.ConfigurationSchemaSection.Basic,tooltip:n("form.fields.paths.tooltip"),type:y.ConfigurationSchemaType.CopyBadge,order:8},hosts:{section:y.ConfigurationSchemaSection.Basic,tooltip:n("form.fields.hosts.tooltipConfig"),type:y.ConfigurationSchemaType.CopyBadge,order:9},snis:{label:n("form.fields.snis.label"),tooltip:n("form.fields.snis.tooltip"),order:10},headers:{section:y.ConfigurationSchemaSection.Basic,order:11},methods:{section:y.ConfigurationSchemaSection.Basic,tooltip:n("form.fields.methods.tooltip"),type:y.ConfigurationSchemaType.BadgeMethod,order:12},sources:{section:y.ConfigurationSchemaSection.Basic,tooltip:n("form.fields.sources.tooltip"),type:y.ConfigurationSchemaType.JsonArray,order:13},destinations:{section:y.ConfigurationSchemaSection.Basic,tooltip:n("form.fields.destinations.tooltip"),type:y.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(E,w)=>{const P=e.resolveComponent("KSkeleton");return e.openBlock(),e.createElementBlock("div",xt,[e.createVNode(e.unref(y.EntityBaseConfigCard),{config:l.config,"config-card-doc":l.configCardDoc,"config-schema":D.value,"entity-type":e.unref(y.SupportedEntityType).Route,"fetch-url":x.value,"hide-title":l.hideTitle,"onFetch:error":w[0]||(w[0]=B=>E.$emit("fetch:error",B)),"onFetch:success":a,onLoading:w[1]||(w[1]=B=>E.$emit("loading",B))},{"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:B})=>[V.value?(e.openBlock(),e.createBlock(P,{key:0,"data-testid":"service-name-loader",type:"spinner"})):B.value&&B.value.id===u.value&&b.value?(e.openBlock(),e.createBlock(e.unref(y.InternalLinkItem),{key:1,item:{key:B.value.id,value:b.value,type:e.unref(y.ConfigurationSchemaType).LinkInternal},onNavigationClick:()=>E.$emit("navigation-click",B.value.id,"services")},null,8,["item","onNavigationClick"])):(e.openBlock(),e.createElementBlock("div",At,e.toDisplayString("-")))]),_:1},8,["config","config-card-doc","config-schema","entity-type","fetch-url","hide-title"])])}}}),Dt=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(l,{emit:N}){const g=l,i=e.useModel(l,"modelValue"),c=N,n=e.ref(!1),p=e.computed(()=>me.PROTOCOL_TO_SCHEMA[g.protocol]),u=e.computed(()=>me.HTTP_BASED_PROTOCOLS.includes(g.protocol??"")),b=e.computed(()=>u.value?void 0:`${g.hintText}${me.HTTP_BASED_PROTOCOLS}`),V=a=>{i.value=a,n.value=!1},x=a=>{c("notify",a)},f=()=>{u.value&&(n.value=!0)};return(a,D)=>{const W=e.resolveComponent("KTooltip");return e.openBlock(),e.createElementBlock(e.Fragment,null,[p.value!==void 0?(e.openBlock(),e.createBlock(e.unref(me.ExpressionsEditor),{key:0,modelValue:i.value,"onUpdate:modelValue":D[0]||(D[0]=E=>i.value=E),schema:p.value},null,8,["modelValue","schema"])):e.createCommentVNode("",!0),e.createVNode(W,{placement:"bottom-start",text:b.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(me.RouterPlaygroundModal),{key:1,"initial-expression":i.value,"is-visible":n.value,onCancel:D[1]||(D[1]=E=>n.value=!1),onCommit:V,onNotify:x},null,8,["initial-expression","is-visible"])):e.createCommentVNode("",!0)],64)}}})},Symbol.toStringTag,{value:"Module"}));R.ExpressionsEditorState=te,R.Methods=De,R.RouteConfigCard=Ot,R.RouteFlavor=T,R.RouteForm=Bt,R.RouteList=ze,R.RoutingRulesEntities=s,R.stateHasExpressionsFlavor=ue,R.stateHasTraditionalFlavor=j,Object.defineProperty(R,Symbol.toStringTag,{value:"Module"})});
package/dist/style.css CHANGED
@@ -1 +1 @@
1
- .config-card-fieldset[data-v-f7096c33]{border:solid 1px #e0e4ea;border-radius:4px;margin-bottom:8px;margin-top:4px}.config-card-fieldset-title[data-v-f7096c33]{font-size:14px;padding:0 8px;width:auto}fieldset.config-card-fieldset .config-card-details-row{width:unset}.config-card-json-item .config-card-details-row,fieldset.config-card-fieldset .config-card-details-row{margin:0 16px}.config-card-json-item .config-card-details-row:last-of-type,fieldset.config-card-fieldset .config-card-details-row:last-of-type{border-bottom:none}[data-v-c96811e5] .k-button.navigation-button{font-size:14px;font-weight:400}.config-card-details-row[data-v-761f7e64]{align-items:center;border-bottom:var(--3ccdd5d2);box-sizing:border-box;display:var(--4b1da305);padding:16px 16px 16px 0;width:100%}.config-card-details-row .config-card-details-label[data-v-761f7e64]{box-sizing:border-box;padding-right:16px;width:var(--cd20788a)}.config-card-details-row .config-card-details-label label[data-v-761f7e64]{color:#3a3f51;display:inline-flex;max-width:100%}.config-card-details-row .config-card-details-label label .label-content[data-v-761f7e64]{line-height:initial;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.config-card-details-row .config-card-details-label label .k-popover[data-v-761f7e64]{min-width:0}.config-card-details-row .config-card-details-value[data-v-761f7e64]{box-sizing:border-box;width:var(--cd1becd4)}.config-card-details-row .config-card-details-value .truncated[data-v-761f7e64]{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-761f7e64]{overflow-wrap:anywhere}.config-card-details-row .config-card-details-value .copy-uuid-array[data-v-761f7e64] .k-copy:not(:last-of-type){margin-bottom:8px}.config-card-details-row .config-card-details-value .method-badge-array[data-v-761f7e64]{display:flex;flex-wrap:wrap;row-gap:10px}.config-card-details-row .config-badge[data-v-761f7e64]{margin-right:4px}.config-card-details-row[data-v-761f7e64] .k-label{margin-bottom:0}.config-card-details-row[data-v-761f7e64] .k-label .kong-icon-infoFilled{display:flex}.config-card-details-row[data-v-761f7e64] .config-card-details-row{width:auto}.json-content.k-code-block{border-top-left-radius:0;border-top-right-radius:0}.json-endpoint{align-items:baseline;background-color:#000933;border-bottom:1px solid rgba(255,255,255,.2);border-top-left-radius:8px;border-top-right-radius:8px;display:flex;padding:8px 0 8px 12px}.json-endpoint .k-code-block{flex:auto;z-index:2}.json-endpoint .k-code-block .code-block-content{padding-bottom:0;padding-top:0}.json-endpoint .k-code-block .code-block-secondary-actions{margin-top:0!important}.json-endpoint code{direction:rtl;max-width:var(--54aebfa2);overflow:hidden!important;text-align:left;text-overflow:ellipsis;white-space:nowrap}.config-card-prop-section-title[data-v-d67757a9]{color:#000933;font-size:16px;font-weight:600;margin-bottom:16px;margin-top:48px}.kong-ui-entity-base-config-card .config-card-actions[data-v-be491a0e]{align-items:center;display:flex}.kong-ui-entity-base-config-card .config-card-actions .config-format-select-label[data-v-be491a0e]{margin-bottom:0;margin-right:8px}.kong-ui-entity-base-config-card .config-card-prop-section-title[data-v-be491a0e]{color:#000933;font-size:16px;font-weight:600;margin-bottom:16px;margin-top:48px}.kong-ui-entity-base-config-card[data-v-be491a0e] .config-card-details-row:last-of-type{border-bottom:none}.kong-ui-entity-base-config-card .book-icon[data-v-be491a0e]{margin-left:8px;padding:0}.kong-ui-entity-base-form[data-v-18af080f]{box-sizing:border-box;max-width:1536px;width:100%}.kong-ui-entity-base-form[data-v-18af080f] .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-18af080f] .k-card.content-card{padding:0 16px!important}.kong-ui-entity-base-form[data-v-18af080f] .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-18af080f] .tab-item.active>div.tab-link.has-panels{color:#000933!important;font-weight:600!important}.form-actions[data-v-18af080f]{align-items:center;display:flex;justify-content:flex-end;margin-top:24px}.form-actions[data-v-18af080f] .k-button:last-of-type,.form-actions[data-v-18af080f] .k-button:nth-last-of-type(2){margin-left:16px}.content-wrapper[data-v-b252463e] .k-tooltip{word-break:break-all}.kong-ui-entity-base-table .toolbar-container[data-v-d58db70c]{align-items:center;display:flex;width:100%}.kong-ui-entity-base-table .toolbar-button-container[data-v-d58db70c]{margin-left:auto}.kong-ui-entity-base-table .hidden[data-v-d58db70c]{display:none}.kong-ui-entity-base-table[data-v-d58db70c] .empty-state-icon-gateway{background-color:#ecfcff;border-radius:4px;padding:8px}.kong-ui-entity-base-table :deep(.k-table){table-layout:fixed}.kong-ui-entity-delete-modal .message[data-v-4361d622],.kong-ui-entity-delete-modal .description[data-v-4361d622]{line-height:24px;margin:0}.kong-ui-entity-delete-modal .message strong[data-v-4361d622]{font-weight:600}.kong-ui-entity-delete-modal .description[data-v-4361d622]{margin-top:32px}.kong-ui-entity-delete-error[data-v-4361d622]{margin-bottom:16px}.kong-ui-entity-filter-input[data-v-10fa27a5]{width:100%}.kong-ui-entity-filter-clear[data-v-10fa27a5]{cursor:pointer}.kong-ui-entity-filter[data-v-10fa27a5]{display:flex;position:relative}.kong-ui-entity-filter[data-v-10fa27a5] .menu-content{flex-direction:column}.kong-ui-entity-filter[data-v-10fa27a5] .k-menu-item-divider hr{margin:12px 0}.kong-ui-entity-filter-backdrop[data-v-10fa27a5]{bottom:0;left:0;position:fixed;right:0;top:0;z-index:1050}.kong-ui-entity-filter-menu[data-v-10fa27a5]{background-color:#fff;border:1px solid #afb7c5;border-radius:4px;box-shadow:0 4px 20px #e0e4ea;left:0;margin-top:16px;padding:8px 0 12px;position:absolute;top:100%;width:300px;z-index:1060}.kong-ui-entity-filter-menu-item[data-v-10fa27a5]{border-bottom:1px solid #e0e4ea;color:#6c7489;font-size:12px;font-weight:400;line-height:16px;list-style:none;margin:0 20px;padding:16px 0;position:relative;white-space:nowrap}.menu-item-title[data-v-10fa27a5]{align-items:center;cursor:pointer;display:flex;line-height:24px}.menu-item-title.expanded[data-v-10fa27a5]{color:#232633}.menu-item-expand-icon[data-v-10fa27a5]{margin-left:auto}.menu-item-expand-icon.expanded[data-v-10fa27a5]{transform:rotate(180deg)}.menu-item-indicator[data-v-10fa27a5]{background-color:#0044f4;border-radius:50%;height:4px;margin-left:4px;width:4px}.menu-item-body[data-v-10fa27a5]{align-items:center;display:flex;justify-content:space-between;margin-top:16px}.menu-item-body[data-v-10fa27a5] .input{padding-bottom:4px!important;padding-top:4px!important}.menu-item-body[data-v-10fa27a5] .k-input{width:100%}.menu-item-body[data-v-10fa27a5] .k-select-input .input{font-size:12px}.menu-item-body[data-v-10fa27a5] .k-select-input .input::placeholder{color:#00000073!important;font-size:12px}.menu-item-label[data-v-10fa27a5]{margin-bottom:0;margin-right:12px}.menu-item-buttons[data-v-10fa27a5]{display:flex;justify-content:space-between;margin:10px 0 6px}.filter-clear-button-container[data-v-10fa27a5]{padding:12px 20px 0}fieldset[data-v-b1f74200]{margin:0;min-width:0;padding:0}.kong-ui-entity-form-section[data-v-b1f74200]{border:0}.kong-ui-entity-form-section .form-section-wrapper[data-v-b1f74200]{column-gap:16px;display:flex;flex-direction:column;padding-bottom:64px;row-gap:12px;width:100%}@media (min-width: 1024px){.kong-ui-entity-form-section .form-section-wrapper[data-v-b1f74200]{flex-direction:row}}.kong-ui-entity-form-section .form-section-wrapper .form-section-info[data-v-b1f74200]{flex:1}@media (min-width: 1024px){.kong-ui-entity-form-section .form-section-wrapper .form-section-info[data-v-b1f74200]{max-width:350px}.kong-ui-entity-form-section .form-section-wrapper .form-section-info.sticky[data-v-b1f74200]{height:fit-content;margin-bottom:16px;position:sticky;top:16px}}.kong-ui-entity-form-section .form-section-wrapper .form-section-info .form-section-title[data-v-b1f74200]{color:#000933;font-size:16px;font-weight:700;line-height:20px;margin-bottom:8px;margin-top:0}.kong-ui-entity-form-section .form-section-wrapper .form-section-info .form-section-description[data-v-b1f74200],.kong-ui-entity-form-section .form-section-wrapper .form-section-info .form-section-description p[data-v-b1f74200],.kong-ui-entity-form-section .form-section-wrapper .form-section-info .form-section-description[data-v-b1f74200] p{color:#000933;font-size:14px;font-weight:400;line-height:20px;margin:0}.kong-ui-entity-form-section .form-section-wrapper .form-section-info .form-section-footer[data-v-b1f74200]{margin-top:32px}.kong-ui-entity-form-section .form-section-wrapper .form-section-content[data-v-b1f74200]{flex:1}.kong-ui-entity-form-section .form-section-wrapper .form-section-content[data-v-b1f74200]>*:not(:first-child){margin-top:24px}.kong-ui-entity-form-section.has-divider .form-section-wrapper[data-v-b1f74200]{border-bottom:1px solid #e0e4ea}.kong-ui-public-entity-link[data-v-6f25ab21]{align-items:center;display:flex}.kong-ui-public-entity-link .deleted-entity[data-v-6f25ab21]{font-style:italic}.kong-ui-public-entity-link .entity-link[data-v-6f25ab21]{display:flex;flex:1}.kong-ui-public-entity-link .entity-link[data-v-6f25ab21] .external-link-icon{color:#0044f4;margin-left:4px;padding:2px}.kong-ui-public-entity-link .entity-link-label[data-v-6f25ab21]{display:inline-block;font-weight:400;max-width:90%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.kong-ui-public-entity-link .copy-uuid-tooltip[data-v-6f25ab21]{align-items:center;cursor:pointer;display:flex}.kong-ui-public-entity-link .copy-uuid-tooltip .entity-link-copy-id[data-v-6f25ab21]{margin-left:2px}.kong-ui-public-entity-empty-state[data-v-48ae9c8c]{align-items:center;background-color:#fff;box-sizing:border-box;display:flex;flex-direction:column;font-family:Inter,Roboto,Helvetica,sans-serif;gap:24px;padding:64px 0;width:100%}@media (min-width: 640px){.kong-ui-public-entity-empty-state[data-v-48ae9c8c]{padding:64px 96px}}.kong-ui-public-entity-empty-state .empty-state-image[data-v-48ae9c8c]{margin-bottom:8px}.kong-ui-public-entity-empty-state .entity-empty-state-content[data-v-48ae9c8c]{align-items:center;display:flex;flex-direction:column;gap:8px;text-align:center;width:100%}.kong-ui-public-entity-empty-state .entity-empty-state-content .entity-empty-state-title h1[data-v-48ae9c8c]{align-items:center;color:#000933;display:flex;font-size:24px;font-weight:700;gap:8px;line-height:32px;margin:0}.kong-ui-public-entity-empty-state .entity-empty-state-content .entity-empty-state-title h1.secondary[data-v-48ae9c8c]{font-size:18px}.kong-ui-public-entity-empty-state .entity-empty-state-description[data-v-48ae9c8c],.kong-ui-public-entity-empty-state .entity-empty-state-pricing[data-v-48ae9c8c]{color:#52596e;font-size:14px;font-weight:400;line-height:20px;max-width:640px}.kong-ui-public-entity-empty-state .entity-empty-state-description p[data-v-48ae9c8c],.kong-ui-public-entity-empty-state .entity-empty-state-pricing p[data-v-48ae9c8c]{margin:0}.kong-ui-public-entity-empty-state .entity-empty-state-pricing[data-v-48ae9c8c]{margin-top:16px}.kong-ui-public-entity-empty-state .entity-empty-state-message[data-v-48ae9c8c]{color:#52596e}.kong-ui-public-entity-empty-state .entity-empty-state-action[data-v-48ae9c8c]{align-items:center;display:flex;gap:12px}.kong-ui-public-entity-empty-state .entity-empty-state-card-container[data-v-48ae9c8c]{display:flex;flex-wrap:wrap;gap:16px;justify-content:space-around;margin-top:8px;width:312px}@media (min-width: 640px){.kong-ui-public-entity-empty-state .entity-empty-state-card-container[data-v-48ae9c8c]{width:640px}}.kong-ui-public-entity-empty-state .entity-empty-state-card-container .entity-empty-state-card[data-v-48ae9c8c]{background-color:#f9fafb;border:1px solid #e0e4ea;border-radius:6px;color:#afb7c5;gap:8px;height:160px;padding:20px;width:312px}.kong-ui-public-entity-empty-state .entity-empty-state-card-container .entity-empty-state-card .feature-icon[data-v-48ae9c8c]{color:#3a3f51;display:flex;margin-bottom:12px}.kong-ui-public-entity-empty-state .entity-empty-state-card-container .entity-empty-state-card .feature-icon[data-v-48ae9c8c] .kui-icon{height:20px!important;width:20px!important}.kong-ui-public-entity-empty-state .entity-empty-state-card-container .entity-empty-state-card[data-v-48ae9c8c] .card-title{font-size:14px;font-weight:600}.kong-ui-public-entity-empty-state .entity-empty-state-card-container .entity-empty-state-card[data-v-48ae9c8c] .card-content{-webkit-box-orient:vertical;color:#6c7489;display:-webkit-box;-webkit-line-clamp:3;line-clamp:3;overflow:hidden}.kong-ui-public-entity-empty-state .entity-empty-state-bottom-container[data-v-48ae9c8c]{border-top:1px solid #e0e4ea;display:flex;flex-direction:column;gap:16px;padding-top:48px;width:100%}@media (min-width: 640px){.kong-ui-public-entity-empty-state .entity-empty-state-bottom-container[data-v-48ae9c8c]{width:640px}}.button-row[data-v-5f4371f6]{align-items:center;display:flex;gap:12px}.kong-ui-entities-routes-list[data-v-5f4371f6]{width:100%}.kong-ui-entities-routes-list .kong-ui-entity-filter-input[data-v-5f4371f6]{margin-right:12px}.kong-ui-entities-routes-list .route-list-cell-expression[data-v-5f4371f6]{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-e155aee1]{width:100%}.kong-ui-entities-route-form .route-form-service-dropdown-item[data-v-e155aee1]{display:flex;flex-direction:column}.kong-ui-entities-route-form .route-form-service-dropdown-item .select-item-label[data-v-e155aee1]{font-weight:600}.kong-ui-entities-route-form .route-form-service-dropdown-item .select-item-description[data-v-e155aee1]{color:#6c7489;font-size:12px}.kong-ui-entities-route-form .route-form-config-type-immutable-alert[data-v-e155aee1]{margin-bottom:16px}.kong-ui-entities-route-form .route-form-routing-rules-title-container[data-v-e155aee1]{display:flex;justify-content:center}.kong-ui-entities-route-form .route-form-routing-rules-title-container .protocol-title[data-v-e155aee1]{font-size:16px}.kong-ui-entities-route-form .route-form-routing-rules-title-container .protocol-title[data-v-e155aee1]: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-e155aee1]{font-size:16px;margin-left:8px}.kong-ui-entities-route-form .route-form-routing-rules-selector-container[data-v-e155aee1]{margin-top:24px}.kong-ui-entities-route-form .route-form-routing-rules-selector-container hr[data-v-e155aee1]{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-e155aee1]{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-e155aee1]{display:flex;margin:0;padding:0}.kong-ui-entities-route-form .route-form-routing-rules-selector-options ul li[data-v-e155aee1]{display:inline-flex;list-style:none}.kong-ui-entities-route-form .route-form-routing-rules-selector-options .option[data-v-e155aee1]{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-e155aee1]{color:#5f9aff;pointer-events:none;text-decoration:line-through}.kong-ui-entities-route-form .route-form-routing-rules-selector-options .option[data-v-e155aee1]: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-e155aee1]{box-shadow:none}.kong-ui-entities-route-form .route-form-advanced-fields-collapse[data-v-e155aee1],.kong-ui-entities-route-form .route-form-advanced-fields-container[data-v-e155aee1]{margin-top:24px}.kong-ui-entities-route-form .route-form-fields-container[data-v-e155aee1]>*:not(:first-child){margin-top:24px}.kong-ui-entities-route-form .k-checkbox[data-v-e155aee1]{display:flex}.kong-ui-entities-route-form[data-v-e155aee1] .form-section-content{min-width:0}.kong-ui-entities-route-form .expression-editor[data-v-e155aee1]{min-height:200px}.expression-editor[data-v-f4a16b4b]{border:1px solid #e0e4ea;border-radius:3px;min-height:200px;overflow:hidden;transition:border-color linear .15s;width:100%}.expression-editor.invalid[data-v-f4a16b4b]{border-color:#d60027}.page-header h1[data-v-f0f6bdc2],h2[data-v-f0f6bdc2],h3[data-v-f0f6bdc2],h4[data-v-f0f6bdc2],h5[data-v-f0f6bdc2],h6[data-v-f0f6bdc2]{color:#000933;font-size:24px;font-weight:700}.page-header h1 .title[data-v-f0f6bdc2],h2 .title[data-v-f0f6bdc2],h3 .title[data-v-f0f6bdc2],h4 .title[data-v-f0f6bdc2],h5 .title[data-v-f0f6bdc2],h6 .title[data-v-f0f6bdc2]{word-break:break-all}.row[data-v-f0f6bdc2]{display:flex;flex-wrap:wrap;justify-content:space-between;margin-left:-16px;margin-right:-16px;padding:0 16px}.col[data-v-f0f6bdc2]{line-height:36px}h1[data-v-f0f6bdc2],h2[data-v-f0f6bdc2],h3[data-v-f0f6bdc2],h4[data-v-f0f6bdc2],h5[data-v-f0f6bdc2],h6[data-v-f0f6bdc2],nav[data-v-f0f6bdc2]{margin-bottom:20px;margin-top:0}.title-no-margin[data-v-f0f6bdc2]{margin:0!important}.operations[data-v-f0f6bdc2]{align-items:center;display:inline-flex;flex-grow:0;justify-content:flex-end;margin-left:auto;text-align:right;white-space:nowrap}.request-card[data-v-08588d7e]{align-items:flex-start;background-color:#fff;border-radius:6px;display:flex;flex-direction:column;gap:8px;justify-content:flex-start;min-width:0;padding:12px;position:relative}.request-card[data-v-08588d7e]:before{border:1px solid #e0e4ea;border-radius:6px;content:" ";height:100%;left:0;position:absolute;top:0;width:100%}.request-card.active[data-v-08588d7e]:before{border:2px solid #5f9aff}.request-card .close-btn[data-v-08588d7e]{cursor:pointer;display:none!important;position:absolute;right:12px;top:12px}.request-card:hover .close-btn[data-v-08588d7e]{display:block!important}.request-card .badges[data-v-08588d7e]{align-items:center;display:flex;flex-direction:row;gap:8px;margin-bottom:6px}.request-card .url[data-v-08588d7e]{color:#000933;font-family:JetBrains Mono,Consolas,monospace;font-size:14px;word-break:break-all}.request-card .headers .header[data-v-08588d7e]{font-family:JetBrains Mono,Consolas,monospace;list-style:none}.request-card .headers .header[data-v-08588d7e],.request-card .headers .header ul[data-v-08588d7e]{margin:0;padding:0}.request-card .headers .header li[data-v-08588d7e]{list-style:none;margin-left:16px;padding-left:6px;position:relative;word-break:break-all}.request-card .headers .header li[data-v-08588d7e]:before{background-color:#000;bottom:-12px;content:" ";left:-10px;position:absolute;top:5px;width:1px}.request-card .headers .header li[data-v-08588d7e]:not(:first-child):last-child:before{display:none}.request-card .headers .header li[data-v-08588d7e]:only-child:before{background-color:#000;bottom:7px;content:" ";display:list-item;height:7px;left:-10px;position:absolute;top:5px;width:1px}.request-card .headers .header li[data-v-08588d7e]:after{background-color:#000;content:" ";height:1px;left:-10px;position:absolute;top:12px;width:10px}.request-card .headers .header-key[data-v-08588d7e]{font-size:14px;font-weight:700;margin-left:8px;word-break:break-all}.request-card .headers .header-value[data-v-08588d7e]{font-size:14px;font-weight:400;margin-left:16px;word-break:break-all}.request-card .sni .sni-content[data-v-08588d7e]{font-family:JetBrains Mono,Consolas,monospace;font-size:14px;word-break:break-all}.request-card .section-title[data-v-08588d7e]{font-weight:700}.import-requests-modal .import-requests-alert[data-v-3ec313b9]{margin-bottom:16px}.import-requests-modal .import-requests-error[data-v-3ec313b9]{margin-top:16px}.import-requests-modal .json-editor[data-v-3ec313b9]{border:1px solid #e0e4ea;border-radius:4px;height:500px;overflow:hidden;width:100%}.import-requests-modal .warning[data-v-3ec313b9]{color:#fabe5f}.url-input[data-v-ccaa94c1]{margin-bottom:32px;width:100%}.request-form[data-v-ccaa94c1] fieldset{border:0;padding:0}.support-text[data-v-11a8483b]{color:#000933;display:flex;flex-direction:row;flex-wrap:wrap;padding-bottom:32px}.support-text[data-v-11a8483b] p{font-size:14px;margin-bottom:0}.router-playground-wrapper .page-header[data-v-37fd1d58]{color:#000933;font-size:24px;font-weight:700}.router-playground-wrapper .editor-actions[data-v-37fd1d58]{display:flex;flex-direction:row;justify-content:flex-end;margin-top:16px;width:100%}.router-playground-wrapper .router-playground[data-v-37fd1d58]{margin:auto}.router-playground-wrapper .router-playground .navigate-back[data-v-37fd1d58]{align-items:center;color:#0030cc;cursor:pointer;display:flex;flex-direction:row;font-size:16px;font-weight:700;gap:8px;justify-content:flex-start;margin-bottom:48px;margin-top:10px}.router-playground-wrapper .router-playground .navigate-back .material-icons[data-v-37fd1d58]{font-size:14px}.router-playground-wrapper .router-playground .expression-inspirations[data-v-37fd1d58]{margin-top:16px}.router-playground-wrapper .router-playground .expression-inspirations .title[data-v-37fd1d58]{align-items:center;color:#6c7489;display:flex;flex-direction:row;font-size:14px;font-weight:700;gap:8px;justify-content:flex-start;margin-top:10px}.router-playground-wrapper .router-playground .expression-inspirations .title .material-icons[data-v-37fd1d58]{font-size:14px}.router-playground-wrapper .router-playground .expression-inspirations .buttons[data-v-37fd1d58]{align-items:center;display:flex;flex-direction:row;gap:8px;margin-top:12px}.router-playground-wrapper .router-playground .expression-inspirations .buttons button.expression-inspiration-item[data-v-37fd1d58]{border-style:solid;font-family:JetBrains Mono,Consolas,monospace}.router-playground-wrapper .router-playground .expression-editor-caption[data-v-37fd1d58]{align-items:center;display:flex;flex-direction:row;font-size:14px;justify-content:flex-start;margin:8px 0;opacity:.7}.router-playground-wrapper .router-playground .expression-list tbody tr[data-v-37fd1d58]{font-family:JetBrains Mono,Consolas,monospace}.router-playground-wrapper .router-playground .routes[data-v-37fd1d58]{margin-top:32px}.router-playground-wrapper .router-playground .routes .actions[data-v-37fd1d58]{align-items:center;display:flex;flex-direction:row;gap:8px}.router-playground-wrapper .router-playground .import-button[data-v-37fd1d58],.router-playground-wrapper .router-playground .export-button[data-v-37fd1d58]{margin-right:12px}.router-playground-wrapper .router-playground .route-cards[data-v-37fd1d58]{display:grid;gap:16px;grid-template-columns:1fr 1fr 1fr}.router-playground-wrapper .router-playground .route-cards-footer[data-v-37fd1d58]{align-items:center;display:flex;flex-direction:row;font-size:14px;justify-content:center;margin:16px 0 8px;opacity:.7}.router-playground-wrapper .link[data-v-37fd1d58]{cursor:pointer;margin:0 2px;text-decoration:underline}.router-playground-modal .k-modal-backdrop{overflow-y:scroll}.router-playground-modal .modal-container{max-width:1280px!important;width:100%!important}.router-playground-modal .k-modal-header{margin-bottom:0!important}.router-playground-modal .k-prompt-header hr{margin-bottom:0;margin-top:12px}.router-playground-modal .k-prompt-body hr{margin-bottom:0;margin-top:0}.router-playground-modal .k-prompt-body-content{max-height:800px!important;padding:24px 0}
1
+ .config-card-fieldset[data-v-f7096c33]{border:solid 1px #e0e4ea;border-radius:4px;margin-bottom:8px;margin-top:4px}.config-card-fieldset-title[data-v-f7096c33]{font-size:14px;padding:0 8px;width:auto}fieldset.config-card-fieldset .config-card-details-row{width:unset}.config-card-json-item .config-card-details-row,fieldset.config-card-fieldset .config-card-details-row{margin:0 16px}.config-card-json-item .config-card-details-row:last-of-type,fieldset.config-card-fieldset .config-card-details-row:last-of-type{border-bottom:none}[data-v-c96811e5] .k-button.navigation-button{font-size:14px;font-weight:400}.config-card-details-row[data-v-761f7e64]{align-items:center;border-bottom:var(--3ccdd5d2);box-sizing:border-box;display:var(--4b1da305);padding:16px 16px 16px 0;width:100%}.config-card-details-row .config-card-details-label[data-v-761f7e64]{box-sizing:border-box;padding-right:16px;width:var(--cd20788a)}.config-card-details-row .config-card-details-label label[data-v-761f7e64]{color:#3a3f51;display:inline-flex;max-width:100%}.config-card-details-row .config-card-details-label label .label-content[data-v-761f7e64]{line-height:initial;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.config-card-details-row .config-card-details-label label .k-popover[data-v-761f7e64]{min-width:0}.config-card-details-row .config-card-details-value[data-v-761f7e64]{box-sizing:border-box;width:var(--cd1becd4)}.config-card-details-row .config-card-details-value .truncated[data-v-761f7e64]{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-761f7e64]{overflow-wrap:anywhere}.config-card-details-row .config-card-details-value .copy-uuid-array[data-v-761f7e64] .k-copy:not(:last-of-type){margin-bottom:8px}.config-card-details-row .config-card-details-value .method-badge-array[data-v-761f7e64]{display:flex;flex-wrap:wrap;row-gap:10px}.config-card-details-row .config-badge[data-v-761f7e64]{margin-right:4px}.config-card-details-row[data-v-761f7e64] .k-label{margin-bottom:0}.config-card-details-row[data-v-761f7e64] .k-label .kong-icon-infoFilled{display:flex}.config-card-details-row[data-v-761f7e64] .config-card-details-row{width:auto}.json-content.k-code-block{border-top-left-radius:0;border-top-right-radius:0}.json-endpoint{align-items:baseline;background-color:#000933;border-bottom:1px solid rgba(255,255,255,.2);border-top-left-radius:8px;border-top-right-radius:8px;display:flex;padding:8px 0 8px 12px}.json-endpoint .k-code-block{flex:auto;z-index:2}.json-endpoint .k-code-block .code-block-content{padding-bottom:0;padding-top:0}.json-endpoint .k-code-block .code-block-secondary-actions{margin-top:0!important}.json-endpoint code{direction:rtl;max-width:var(--54aebfa2);overflow:hidden!important;text-align:left;text-overflow:ellipsis;white-space:nowrap}.config-card-prop-section-title[data-v-d67757a9]{color:#000933;font-size:16px;font-weight:600;margin-bottom:16px;margin-top:48px}.kong-ui-entity-base-config-card .config-card-actions[data-v-be491a0e]{align-items:center;display:flex}.kong-ui-entity-base-config-card .config-card-actions .config-format-select-label[data-v-be491a0e]{margin-bottom:0;margin-right:8px}.kong-ui-entity-base-config-card .config-card-prop-section-title[data-v-be491a0e]{color:#000933;font-size:16px;font-weight:600;margin-bottom:16px;margin-top:48px}.kong-ui-entity-base-config-card[data-v-be491a0e] .config-card-details-row:last-of-type{border-bottom:none}.kong-ui-entity-base-config-card .book-icon[data-v-be491a0e]{margin-left:8px;padding:0}.kong-ui-entity-base-form[data-v-18af080f]{box-sizing:border-box;max-width:1536px;width:100%}.kong-ui-entity-base-form[data-v-18af080f] .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-18af080f] .k-card.content-card{padding:0 16px!important}.kong-ui-entity-base-form[data-v-18af080f] .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-18af080f] .tab-item.active>div.tab-link.has-panels{color:#000933!important;font-weight:600!important}.form-actions[data-v-18af080f]{align-items:center;display:flex;justify-content:flex-end;margin-top:24px}.form-actions[data-v-18af080f] .k-button:last-of-type,.form-actions[data-v-18af080f] .k-button:nth-last-of-type(2){margin-left:16px}.content-wrapper[data-v-b252463e] .k-tooltip{word-break:break-all}.kong-ui-entity-base-table .toolbar-container[data-v-d58db70c]{align-items:center;display:flex;width:100%}.kong-ui-entity-base-table .toolbar-button-container[data-v-d58db70c]{margin-left:auto}.kong-ui-entity-base-table .hidden[data-v-d58db70c]{display:none}.kong-ui-entity-base-table[data-v-d58db70c] .empty-state-icon-gateway{background-color:#ecfcff;border-radius:4px;padding:8px}.kong-ui-entity-base-table :deep(.k-table){table-layout:fixed}.kong-ui-entity-delete-modal .message[data-v-4361d622],.kong-ui-entity-delete-modal .description[data-v-4361d622]{line-height:24px;margin:0}.kong-ui-entity-delete-modal .message strong[data-v-4361d622]{font-weight:600}.kong-ui-entity-delete-modal .description[data-v-4361d622]{margin-top:32px}.kong-ui-entity-delete-error[data-v-4361d622]{margin-bottom:16px}.kong-ui-entity-filter-input[data-v-10fa27a5]{width:100%}.kong-ui-entity-filter-clear[data-v-10fa27a5]{cursor:pointer}.kong-ui-entity-filter[data-v-10fa27a5]{display:flex;position:relative}.kong-ui-entity-filter[data-v-10fa27a5] .menu-content{flex-direction:column}.kong-ui-entity-filter[data-v-10fa27a5] .k-menu-item-divider hr{margin:12px 0}.kong-ui-entity-filter-backdrop[data-v-10fa27a5]{bottom:0;left:0;position:fixed;right:0;top:0;z-index:1050}.kong-ui-entity-filter-menu[data-v-10fa27a5]{background-color:#fff;border:1px solid #afb7c5;border-radius:4px;box-shadow:0 4px 20px #e0e4ea;left:0;margin-top:16px;padding:8px 0 12px;position:absolute;top:100%;width:300px;z-index:1060}.kong-ui-entity-filter-menu-item[data-v-10fa27a5]{border-bottom:1px solid #e0e4ea;color:#6c7489;font-size:12px;font-weight:400;line-height:16px;list-style:none;margin:0 20px;padding:16px 0;position:relative;white-space:nowrap}.menu-item-title[data-v-10fa27a5]{align-items:center;cursor:pointer;display:flex;line-height:24px}.menu-item-title.expanded[data-v-10fa27a5]{color:#232633}.menu-item-expand-icon[data-v-10fa27a5]{margin-left:auto}.menu-item-expand-icon.expanded[data-v-10fa27a5]{transform:rotate(180deg)}.menu-item-indicator[data-v-10fa27a5]{background-color:#0044f4;border-radius:50%;height:4px;margin-left:4px;width:4px}.menu-item-body[data-v-10fa27a5]{align-items:center;display:flex;justify-content:space-between;margin-top:16px}.menu-item-body[data-v-10fa27a5] .input{padding-bottom:4px!important;padding-top:4px!important}.menu-item-body[data-v-10fa27a5] .k-input{width:100%}.menu-item-body[data-v-10fa27a5] .k-select-input .input{font-size:12px}.menu-item-body[data-v-10fa27a5] .k-select-input .input::placeholder{color:#00000073!important;font-size:12px}.menu-item-label[data-v-10fa27a5]{margin-bottom:0;margin-right:12px}.menu-item-buttons[data-v-10fa27a5]{display:flex;justify-content:space-between;margin:10px 0 6px}.filter-clear-button-container[data-v-10fa27a5]{padding:12px 20px 0}fieldset[data-v-b1f74200]{margin:0;min-width:0;padding:0}.kong-ui-entity-form-section[data-v-b1f74200]{border:0}.kong-ui-entity-form-section .form-section-wrapper[data-v-b1f74200]{column-gap:16px;display:flex;flex-direction:column;padding-bottom:64px;row-gap:12px;width:100%}@media (min-width: 1024px){.kong-ui-entity-form-section .form-section-wrapper[data-v-b1f74200]{flex-direction:row}}.kong-ui-entity-form-section .form-section-wrapper .form-section-info[data-v-b1f74200]{flex:1}@media (min-width: 1024px){.kong-ui-entity-form-section .form-section-wrapper .form-section-info[data-v-b1f74200]{max-width:350px}.kong-ui-entity-form-section .form-section-wrapper .form-section-info.sticky[data-v-b1f74200]{height:fit-content;margin-bottom:16px;position:sticky;top:16px}}.kong-ui-entity-form-section .form-section-wrapper .form-section-info .form-section-title[data-v-b1f74200]{color:#000933;font-size:16px;font-weight:700;line-height:20px;margin-bottom:8px;margin-top:0}.kong-ui-entity-form-section .form-section-wrapper .form-section-info .form-section-description[data-v-b1f74200],.kong-ui-entity-form-section .form-section-wrapper .form-section-info .form-section-description p[data-v-b1f74200],.kong-ui-entity-form-section .form-section-wrapper .form-section-info .form-section-description[data-v-b1f74200] p{color:#000933;font-size:14px;font-weight:400;line-height:20px;margin:0}.kong-ui-entity-form-section .form-section-wrapper .form-section-info .form-section-footer[data-v-b1f74200]{margin-top:32px}.kong-ui-entity-form-section .form-section-wrapper .form-section-content[data-v-b1f74200]{flex:1}.kong-ui-entity-form-section .form-section-wrapper .form-section-content[data-v-b1f74200]>*:not(:first-child){margin-top:24px}.kong-ui-entity-form-section.has-divider .form-section-wrapper[data-v-b1f74200]{border-bottom:1px solid #e0e4ea}.kong-ui-public-entity-link[data-v-6f25ab21]{align-items:center;display:flex}.kong-ui-public-entity-link .deleted-entity[data-v-6f25ab21]{font-style:italic}.kong-ui-public-entity-link .entity-link[data-v-6f25ab21]{display:flex;flex:1}.kong-ui-public-entity-link .entity-link[data-v-6f25ab21] .external-link-icon{color:#0044f4;margin-left:4px;padding:2px}.kong-ui-public-entity-link .entity-link-label[data-v-6f25ab21]{display:inline-block;font-weight:400;max-width:90%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.kong-ui-public-entity-link .copy-uuid-tooltip[data-v-6f25ab21]{align-items:center;cursor:pointer;display:flex}.kong-ui-public-entity-link .copy-uuid-tooltip .entity-link-copy-id[data-v-6f25ab21]{margin-left:2px}.kong-ui-public-entity-empty-state[data-v-48ae9c8c]{align-items:center;background-color:#fff;box-sizing:border-box;display:flex;flex-direction:column;font-family:Inter,Roboto,Helvetica,sans-serif;gap:24px;padding:64px 0;width:100%}@media (min-width: 640px){.kong-ui-public-entity-empty-state[data-v-48ae9c8c]{padding:64px 96px}}.kong-ui-public-entity-empty-state .empty-state-image[data-v-48ae9c8c]{margin-bottom:8px}.kong-ui-public-entity-empty-state .entity-empty-state-content[data-v-48ae9c8c]{align-items:center;display:flex;flex-direction:column;gap:8px;text-align:center;width:100%}.kong-ui-public-entity-empty-state .entity-empty-state-content .entity-empty-state-title h1[data-v-48ae9c8c]{align-items:center;color:#000933;display:flex;font-size:24px;font-weight:700;gap:8px;line-height:32px;margin:0}.kong-ui-public-entity-empty-state .entity-empty-state-content .entity-empty-state-title h1.secondary[data-v-48ae9c8c]{font-size:18px}.kong-ui-public-entity-empty-state .entity-empty-state-description[data-v-48ae9c8c],.kong-ui-public-entity-empty-state .entity-empty-state-pricing[data-v-48ae9c8c]{color:#52596e;font-size:14px;font-weight:400;line-height:20px;max-width:640px}.kong-ui-public-entity-empty-state .entity-empty-state-description p[data-v-48ae9c8c],.kong-ui-public-entity-empty-state .entity-empty-state-pricing p[data-v-48ae9c8c]{margin:0}.kong-ui-public-entity-empty-state .entity-empty-state-pricing[data-v-48ae9c8c]{margin-top:16px}.kong-ui-public-entity-empty-state .entity-empty-state-message[data-v-48ae9c8c]{color:#52596e}.kong-ui-public-entity-empty-state .entity-empty-state-action[data-v-48ae9c8c]{align-items:center;display:flex;gap:12px}.kong-ui-public-entity-empty-state .entity-empty-state-card-container[data-v-48ae9c8c]{display:flex;flex-wrap:wrap;gap:16px;justify-content:space-around;margin-top:8px;width:312px}@media (min-width: 640px){.kong-ui-public-entity-empty-state .entity-empty-state-card-container[data-v-48ae9c8c]{width:640px}}.kong-ui-public-entity-empty-state .entity-empty-state-card-container .entity-empty-state-card[data-v-48ae9c8c]{background-color:#f9fafb;border:1px solid #e0e4ea;border-radius:6px;color:#afb7c5;gap:8px;height:160px;padding:20px;width:312px}.kong-ui-public-entity-empty-state .entity-empty-state-card-container .entity-empty-state-card .feature-icon[data-v-48ae9c8c]{color:#3a3f51;display:flex;margin-bottom:12px}.kong-ui-public-entity-empty-state .entity-empty-state-card-container .entity-empty-state-card .feature-icon[data-v-48ae9c8c] .kui-icon{height:20px!important;width:20px!important}.kong-ui-public-entity-empty-state .entity-empty-state-card-container .entity-empty-state-card[data-v-48ae9c8c] .card-title{font-size:14px;font-weight:600}.kong-ui-public-entity-empty-state .entity-empty-state-card-container .entity-empty-state-card[data-v-48ae9c8c] .card-content{-webkit-box-orient:vertical;color:#6c7489;display:-webkit-box;-webkit-line-clamp:3;line-clamp:3;overflow:hidden}.kong-ui-public-entity-empty-state .entity-empty-state-bottom-container[data-v-48ae9c8c]{border-top:1px solid #e0e4ea;display:flex;flex-direction:column;gap:16px;padding-top:48px;width:100%}@media (min-width: 640px){.kong-ui-public-entity-empty-state .entity-empty-state-bottom-container[data-v-48ae9c8c]{width:640px}}.button-row[data-v-8a0411ce]{align-items:center;display:flex;gap:12px}.kong-ui-entities-routes-list[data-v-8a0411ce]{width:100%}.kong-ui-entities-routes-list .kong-ui-entity-filter-input[data-v-8a0411ce]{margin-right:12px}.kong-ui-entities-routes-list .route-list-cell-expression[data-v-8a0411ce]{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-e155aee1]{width:100%}.kong-ui-entities-route-form .route-form-service-dropdown-item[data-v-e155aee1]{display:flex;flex-direction:column}.kong-ui-entities-route-form .route-form-service-dropdown-item .select-item-label[data-v-e155aee1]{font-weight:600}.kong-ui-entities-route-form .route-form-service-dropdown-item .select-item-description[data-v-e155aee1]{color:#6c7489;font-size:12px}.kong-ui-entities-route-form .route-form-config-type-immutable-alert[data-v-e155aee1]{margin-bottom:16px}.kong-ui-entities-route-form .route-form-routing-rules-title-container[data-v-e155aee1]{display:flex;justify-content:center}.kong-ui-entities-route-form .route-form-routing-rules-title-container .protocol-title[data-v-e155aee1]{font-size:16px}.kong-ui-entities-route-form .route-form-routing-rules-title-container .protocol-title[data-v-e155aee1]: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-e155aee1]{font-size:16px;margin-left:8px}.kong-ui-entities-route-form .route-form-routing-rules-selector-container[data-v-e155aee1]{margin-top:24px}.kong-ui-entities-route-form .route-form-routing-rules-selector-container hr[data-v-e155aee1]{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-e155aee1]{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-e155aee1]{display:flex;margin:0;padding:0}.kong-ui-entities-route-form .route-form-routing-rules-selector-options ul li[data-v-e155aee1]{display:inline-flex;list-style:none}.kong-ui-entities-route-form .route-form-routing-rules-selector-options .option[data-v-e155aee1]{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-e155aee1]{color:#5f9aff;pointer-events:none;text-decoration:line-through}.kong-ui-entities-route-form .route-form-routing-rules-selector-options .option[data-v-e155aee1]: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-e155aee1]{box-shadow:none}.kong-ui-entities-route-form .route-form-advanced-fields-collapse[data-v-e155aee1],.kong-ui-entities-route-form .route-form-advanced-fields-container[data-v-e155aee1]{margin-top:24px}.kong-ui-entities-route-form .route-form-fields-container[data-v-e155aee1]>*:not(:first-child){margin-top:24px}.kong-ui-entities-route-form .k-checkbox[data-v-e155aee1]{display:flex}.kong-ui-entities-route-form[data-v-e155aee1] .form-section-content{min-width:0}.kong-ui-entities-route-form .expression-editor[data-v-e155aee1]{min-height:200px}.expression-editor[data-v-f4a16b4b]{border:1px solid #e0e4ea;border-radius:3px;min-height:200px;overflow:hidden;transition:border-color linear .15s;width:100%}.expression-editor.invalid[data-v-f4a16b4b]{border-color:#d60027}.page-header h1[data-v-f0f6bdc2],h2[data-v-f0f6bdc2],h3[data-v-f0f6bdc2],h4[data-v-f0f6bdc2],h5[data-v-f0f6bdc2],h6[data-v-f0f6bdc2]{color:#000933;font-size:24px;font-weight:700}.page-header h1 .title[data-v-f0f6bdc2],h2 .title[data-v-f0f6bdc2],h3 .title[data-v-f0f6bdc2],h4 .title[data-v-f0f6bdc2],h5 .title[data-v-f0f6bdc2],h6 .title[data-v-f0f6bdc2]{word-break:break-all}.row[data-v-f0f6bdc2]{display:flex;flex-wrap:wrap;justify-content:space-between;margin-left:-16px;margin-right:-16px;padding:0 16px}.col[data-v-f0f6bdc2]{line-height:36px}h1[data-v-f0f6bdc2],h2[data-v-f0f6bdc2],h3[data-v-f0f6bdc2],h4[data-v-f0f6bdc2],h5[data-v-f0f6bdc2],h6[data-v-f0f6bdc2],nav[data-v-f0f6bdc2]{margin-bottom:20px;margin-top:0}.title-no-margin[data-v-f0f6bdc2]{margin:0!important}.operations[data-v-f0f6bdc2]{align-items:center;display:inline-flex;flex-grow:0;justify-content:flex-end;margin-left:auto;text-align:right;white-space:nowrap}.request-card[data-v-08588d7e]{align-items:flex-start;background-color:#fff;border-radius:6px;display:flex;flex-direction:column;gap:8px;justify-content:flex-start;min-width:0;padding:12px;position:relative}.request-card[data-v-08588d7e]:before{border:1px solid #e0e4ea;border-radius:6px;content:" ";height:100%;left:0;position:absolute;top:0;width:100%}.request-card.active[data-v-08588d7e]:before{border:2px solid #5f9aff}.request-card .close-btn[data-v-08588d7e]{cursor:pointer;display:none!important;position:absolute;right:12px;top:12px}.request-card:hover .close-btn[data-v-08588d7e]{display:block!important}.request-card .badges[data-v-08588d7e]{align-items:center;display:flex;flex-direction:row;gap:8px;margin-bottom:6px}.request-card .url[data-v-08588d7e]{color:#000933;font-family:JetBrains Mono,Consolas,monospace;font-size:14px;word-break:break-all}.request-card .headers .header[data-v-08588d7e]{font-family:JetBrains Mono,Consolas,monospace;list-style:none}.request-card .headers .header[data-v-08588d7e],.request-card .headers .header ul[data-v-08588d7e]{margin:0;padding:0}.request-card .headers .header li[data-v-08588d7e]{list-style:none;margin-left:16px;padding-left:6px;position:relative;word-break:break-all}.request-card .headers .header li[data-v-08588d7e]:before{background-color:#000;bottom:-12px;content:" ";left:-10px;position:absolute;top:5px;width:1px}.request-card .headers .header li[data-v-08588d7e]:not(:first-child):last-child:before{display:none}.request-card .headers .header li[data-v-08588d7e]:only-child:before{background-color:#000;bottom:7px;content:" ";display:list-item;height:7px;left:-10px;position:absolute;top:5px;width:1px}.request-card .headers .header li[data-v-08588d7e]:after{background-color:#000;content:" ";height:1px;left:-10px;position:absolute;top:12px;width:10px}.request-card .headers .header-key[data-v-08588d7e]{font-size:14px;font-weight:700;margin-left:8px;word-break:break-all}.request-card .headers .header-value[data-v-08588d7e]{font-size:14px;font-weight:400;margin-left:16px;word-break:break-all}.request-card .sni .sni-content[data-v-08588d7e]{font-family:JetBrains Mono,Consolas,monospace;font-size:14px;word-break:break-all}.request-card .section-title[data-v-08588d7e]{font-weight:700}.import-requests-modal .import-requests-alert[data-v-3ec313b9]{margin-bottom:16px}.import-requests-modal .import-requests-error[data-v-3ec313b9]{margin-top:16px}.import-requests-modal .json-editor[data-v-3ec313b9]{border:1px solid #e0e4ea;border-radius:4px;height:500px;overflow:hidden;width:100%}.import-requests-modal .warning[data-v-3ec313b9]{color:#fabe5f}.url-input[data-v-ccaa94c1]{margin-bottom:32px;width:100%}.request-form[data-v-ccaa94c1] fieldset{border:0;padding:0}.support-text[data-v-11a8483b]{color:#000933;display:flex;flex-direction:row;flex-wrap:wrap;padding-bottom:32px}.support-text[data-v-11a8483b] p{font-size:14px;margin-bottom:0}.router-playground-wrapper .page-header[data-v-37fd1d58]{color:#000933;font-size:24px;font-weight:700}.router-playground-wrapper .editor-actions[data-v-37fd1d58]{display:flex;flex-direction:row;justify-content:flex-end;margin-top:16px;width:100%}.router-playground-wrapper .router-playground[data-v-37fd1d58]{margin:auto}.router-playground-wrapper .router-playground .navigate-back[data-v-37fd1d58]{align-items:center;color:#0030cc;cursor:pointer;display:flex;flex-direction:row;font-size:16px;font-weight:700;gap:8px;justify-content:flex-start;margin-bottom:48px;margin-top:10px}.router-playground-wrapper .router-playground .navigate-back .material-icons[data-v-37fd1d58]{font-size:14px}.router-playground-wrapper .router-playground .expression-inspirations[data-v-37fd1d58]{margin-top:16px}.router-playground-wrapper .router-playground .expression-inspirations .title[data-v-37fd1d58]{align-items:center;color:#6c7489;display:flex;flex-direction:row;font-size:14px;font-weight:700;gap:8px;justify-content:flex-start;margin-top:10px}.router-playground-wrapper .router-playground .expression-inspirations .title .material-icons[data-v-37fd1d58]{font-size:14px}.router-playground-wrapper .router-playground .expression-inspirations .buttons[data-v-37fd1d58]{align-items:center;display:flex;flex-direction:row;gap:8px;margin-top:12px}.router-playground-wrapper .router-playground .expression-inspirations .buttons button.expression-inspiration-item[data-v-37fd1d58]{border-style:solid;font-family:JetBrains Mono,Consolas,monospace}.router-playground-wrapper .router-playground .expression-editor-caption[data-v-37fd1d58]{align-items:center;display:flex;flex-direction:row;font-size:14px;justify-content:flex-start;margin:8px 0;opacity:.7}.router-playground-wrapper .router-playground .expression-list tbody tr[data-v-37fd1d58]{font-family:JetBrains Mono,Consolas,monospace}.router-playground-wrapper .router-playground .routes[data-v-37fd1d58]{margin-top:32px}.router-playground-wrapper .router-playground .routes .actions[data-v-37fd1d58]{align-items:center;display:flex;flex-direction:row;gap:8px}.router-playground-wrapper .router-playground .import-button[data-v-37fd1d58],.router-playground-wrapper .router-playground .export-button[data-v-37fd1d58]{margin-right:12px}.router-playground-wrapper .router-playground .route-cards[data-v-37fd1d58]{display:grid;gap:16px;grid-template-columns:1fr 1fr 1fr}.router-playground-wrapper .router-playground .route-cards-footer[data-v-37fd1d58]{align-items:center;display:flex;flex-direction:row;font-size:14px;justify-content:center;margin:16px 0 8px;opacity:.7}.router-playground-wrapper .link[data-v-37fd1d58]{cursor:pointer;margin:0 2px;text-decoration:underline}.router-playground-modal .k-modal-backdrop{overflow-y:scroll}.router-playground-modal .modal-container{max-width:1280px!important;width:100%!important}.router-playground-modal .k-modal-header{margin-bottom:0!important}.router-playground-modal .k-prompt-header hr{margin-bottom:0;margin-top:12px}.router-playground-modal .k-prompt-body hr{margin-bottom:0;margin-top:0}.router-playground-modal .k-prompt-body-content{max-height:800px!important;padding:24px 0}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kong-ui-public/entities-routes",
3
- "version": "3.10.12",
3
+ "version": "3.10.13",
4
4
  "type": "module",
5
5
  "main": "./dist/entities-routes.umd.js",
6
6
  "module": "./dist/entities-routes.es.js",
@@ -21,15 +21,17 @@
21
21
  "access": "public"
22
22
  },
23
23
  "peerDependencies": {
24
+ "@kong-ui-public/entities-shared": "workspace:^",
25
+ "@kong-ui-public/i18n": "workspace:^",
24
26
  "@kong/icons": "^1.21.2",
25
27
  "@kong/kongponents": "^9.21.6",
26
28
  "axios": "^1.7.7",
27
29
  "vue": ">= 3.3.13 < 4",
28
- "vue-router": "^4.4.5",
29
- "@kong-ui-public/i18n": "^2.2.10",
30
- "@kong-ui-public/entities-shared": "^3.19.3"
30
+ "vue-router": "^4.4.5"
31
31
  },
32
32
  "devDependencies": {
33
+ "@kong-ui-public/entities-shared": "^3.19.3",
34
+ "@kong-ui-public/i18n": "^2.2.10",
33
35
  "@kong/design-tokens": "1.17.3",
34
36
  "@kong/icons": "^1.21.2",
35
37
  "@kong/kongponents": "9.21.6",
@@ -37,27 +39,7 @@
37
39
  "axios": "^1.7.7",
38
40
  "vite-plugin-monaco-editor": "^1.1.0",
39
41
  "vue": "^3.5.13",
40
- "vue-router": "^4.4.5",
41
- "@kong-ui-public/entities-shared": "^3.19.3",
42
- "@kong-ui-public/i18n": "^2.2.10"
43
- },
44
- "repository": {
45
- "type": "git",
46
- "url": "https://github.com/Kong/public-ui-components.git",
47
- "directory": "packages/entities/entities-routes"
48
- },
49
- "homepage": "https://github.com/Kong/public-ui-components/tree/main/packages/entities/entities-routes",
50
- "author": "Kong, Inc.",
51
- "license": "Apache-2.0",
52
- "volta": {
53
- "extends": "../../../package.json"
54
- },
55
- "distSizeChecker": {
56
- "errorLimit": "800KB"
57
- },
58
- "dependencies": {
59
- "lodash.isequal": "^4.5.0",
60
- "@kong-ui-public/expressions": "^0.9.15"
42
+ "vue-router": "^4.4.5"
61
43
  },
62
44
  "scripts": {
63
45
  "dev": "cross-env USE_SANDBOX=true vite",
@@ -76,5 +58,24 @@
76
58
  "test:component:open": "BABEL_ENV=cypress cross-env FORCE_COLOR=1 cypress open --component -b chrome --project '../../../.'",
77
59
  "test:unit": "cross-env FORCE_COLOR=1 vitest run",
78
60
  "test:unit:open": "cross-env FORCE_COLOR=1 vitest --ui"
79
- }
80
- }
61
+ },
62
+ "repository": {
63
+ "type": "git",
64
+ "url": "https://github.com/Kong/public-ui-components.git",
65
+ "directory": "packages/entities/entities-routes"
66
+ },
67
+ "homepage": "https://github.com/Kong/public-ui-components/tree/main/packages/entities/entities-routes",
68
+ "author": "Kong, Inc.",
69
+ "license": "Apache-2.0",
70
+ "volta": {
71
+ "extends": "../../../package.json"
72
+ },
73
+ "distSizeChecker": {
74
+ "errorLimit": "800KB"
75
+ },
76
+ "dependencies": {
77
+ "@kong-ui-public/expressions": "^0.9.15",
78
+ "lodash.isequal": "^4.5.0"
79
+ },
80
+ "gitHead": "fb43f17c1677bdc8361d7845e3a019db3899d92d"
81
+ }