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