@kong-ui-public/entities-gateway-services 3.18.2 → 3.18.3-pr.3108.eba76216f.0
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.
|
@@ -298,7 +298,7 @@ const le = {
|
|
|
298
298
|
useI18n: Pt,
|
|
299
299
|
usePortFromProtocol: Ft,
|
|
300
300
|
useUrlValidators: Ut
|
|
301
|
-
}, De = "/v2/control-planes/{controlPlaneId}/core-entities", Be = "/{workspace}", Ee = {
|
|
301
|
+
}, De = "/v2/control-planes/{controlPlaneId}/core-entities/{workspace}", Be = "/{workspace}", Ee = {
|
|
302
302
|
list: {
|
|
303
303
|
konnect: {
|
|
304
304
|
all: `${De}/services`
|
|
@@ -398,7 +398,7 @@ const le = {
|
|
|
398
398
|
}, X = re, ie = C(() => {
|
|
399
399
|
var g, _;
|
|
400
400
|
let p = `${d.config.apiBaseUrl}${Ee.list[d.config.app].all}`;
|
|
401
|
-
return d.config.app === "konnect"
|
|
401
|
+
return d.config.app === "konnect" && (p = p.replace(/{controlPlaneId}/gi, ((g = d.config) == null ? void 0 : g.controlPlaneId) || "")), p.replace(/\/{workspace}/gi, (_ = d.config) != null && _.workspace ? `/${d.config.workspace}` : "");
|
|
402
402
|
}), Fe = C(() => d.config.apiBaseUrl.startsWith("/") ? new URL(`${window.location.origin}${ie.value}`) : new URL(ie.value)), j = B(""), Y = C(() => {
|
|
403
403
|
const p = d.config.app === "konnect" || d.config.isExactMatch;
|
|
404
404
|
if (p)
|
|
@@ -845,7 +845,7 @@ const le = {
|
|
|
845
845
|
for (const [d, a] of L)
|
|
846
846
|
m[d] = a;
|
|
847
847
|
return m;
|
|
848
|
-
}, _s = /* @__PURE__ */ Le(Bt, [["__scopeId", "data-v-
|
|
848
|
+
}, _s = /* @__PURE__ */ Le(Bt, [["__scopeId", "data-v-dbcbc21c"]]), Mt = { class: "kong-ui-gateway-service-entity-config-card" }, bs = /* @__PURE__ */ Pe({
|
|
849
849
|
__name: "GatewayServiceConfigCard",
|
|
850
850
|
props: {
|
|
851
851
|
/** The base konnect or kongManger config. Pass additional config props in the shared entity component as needed. */
|
|
@@ -1366,7 +1366,7 @@ const le = {
|
|
|
1366
1366
|
}, g = C(() => {
|
|
1367
1367
|
var o, b;
|
|
1368
1368
|
let t = `${a.config.apiBaseUrl}${Ee.form[a.config.app][Y.value]}`;
|
|
1369
|
-
return a.config.app === "konnect"
|
|
1369
|
+
return a.config.app === "konnect" && (t = t.replace(/{controlPlaneId}/gi, ((o = a.config) == null ? void 0 : o.controlPlaneId) || "")), t.replace(/\/{workspace}/gi, (b = a.config) != null && b.workspace ? `/${a.config.workspace}` : "").replace(/{id}/gi, a.gatewayServiceId);
|
|
1370
1370
|
}), _ = C(() => {
|
|
1371
1371
|
if (!a.isTlsSansSupported)
|
|
1372
1372
|
return;
|
|
@@ -1940,7 +1940,7 @@ const le = {
|
|
|
1940
1940
|
]);
|
|
1941
1941
|
};
|
|
1942
1942
|
}
|
|
1943
|
-
}), hs = /* @__PURE__ */ Le(ns, [["__scopeId", "data-v-
|
|
1943
|
+
}), hs = /* @__PURE__ */ Le(ns, [["__scopeId", "data-v-77eb241d"]]), { validateHost: cs, validatePort: ds, validateProtocol: us, validatePath: fs } = le.useUrlValidators(), ws = () => ({
|
|
1944
1944
|
validateHost: cs,
|
|
1945
1945
|
validatePort: ds,
|
|
1946
1946
|
validateProtocol: us,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(E,e){typeof exports=="object"&&typeof module<"u"?e(exports,require("vue"),require("vue-router"),require("@kong/icons"),require("@kong-ui-public/i18n"),require("@kong-ui-public/entities-shared")):typeof define=="function"&&define.amd?define(["exports","vue","vue-router","@kong/icons","@kong-ui-public/i18n","@kong-ui-public/entities-shared"],e):(E=typeof globalThis<"u"?globalThis:E||self,e(E["kong-ui-public-entities-gateway-services"]={},E.Vue,E.VueRouter,E.KongIcons,E["kong-ui-public-i18n"],E["kong-ui-public-entities-shared"]))})(this,function(E,e,Ce,M,ve,y){"use strict";const xe={actions:{create:"New gateway service",debugger:"Start debugging",serverless_create:"Add a Service",copy_id:"Copy ID",copy_json:"Copy JSON",edit:"Edit",clear:"Clear",view:"View Details",delete:{title:"Delete a Gateway Service",description:"Deleting this Gateway Service will also remove any associated plugins. This action cannot be reversed.",menu_label:"Delete"}},search:{placeholder:{konnect:"Filter by name",kongManager:"Filter by exact name or ID"}},gateway_services:{title:"Gateway Services",list:{toolbar_actions:{new_gateway_service:"New gateway service"},table_headers:{name:"Name",control_plane:"Control Plane",protocol:"Protocol",host:"Host",port:"Port",path:"Path",enabled:"Enabled",tags:"Tags",id:"ID",created_at:"Created At",updated_at:"Last Modified"},empty_state:{title:"Configure a New Gateway Service",description:"Gateway services are used to proxy traffic.",serverless_title:"Configure your first Gateway Service"}},empty_state_v2:{create:"New gateway service",create_new:"Create new",import_spec:"Import via Open API spec",title:"Configure your first gateway service",group:"Services created in gateways within this group will automatically appear here.",description:"Gateway services represent backend APIs or microservices that receive traffic routed through the gateway.",learn_more:"Learn more"},form:{buttons:{try_sample:"Try sample API"},errors:{host:{empty:"Host cannot be empty",invalid:"Invalid host"},port:{type:"Port must be a number",invalid:"Port must be between 0 and 65535"},path:{prefix:"Path must begin with /",invalid:"Path should not include characters outside of the reserved list of RFC 3986"},protocol:{empty:"Protocol cannot be empty",invalid:"Protocol - value must be one of http, https, grpc, grpcs, tcp, udp, tls, tls_passthrough, ws, wss"},url:{invalid:"The URL must follow a valid format. Example: https://api.kong-air.com/flights"}},sections:{general:{title:"General Information",description:"Provide a name and tags to help identify and manage this service."},keys:{title:"Service endpoint",description:"Define where this service should send requests.",checkedGroupLabel:"Choose how and where to send traffic",urlLabel:"Full URL",checkedGroupAltLabel:"Protocol, host, port and path",url:{label:"Full URL",description:"Define the service using a single, complete API URL for simple setup."},protocol:{label:"Protocol, host, port, and path",description:"Manually specify each component of the API’s URL for advanced configurations."},viewAdvancedFields:"View advanced fields"}},fields:{upstream_url:{label:"Full URL",placeholder:"e.g. https://api.kong-air.com/flights",tooltip_for_konnect:"This is the URL of the API you will manage in Konnect.",tooltip_for_km:"This is the URL of the API you will manage in Kong Gateway."},name:{label:"Name",placeholder:"Enter a unique name",tooltip:"The Service name."},protocol:{label:"Protocol",tooltip:"The protocol used to communicate with the upstream.",options:{http:"http",https:"https",tcp:"tcp",tls:"tls",tls_passthrough:"tls_passthrough",grpc:"grpc",grpcs:"grpcs",ws:"ws",wss:"wss",udp:"udp"}},host:{label:"Host",placeholder:"e.g. api.kong-air.com",tooltip:"The host of the upstream server. Note that the host value is case sensitive."},path:{label:"Path",placeholder:"e.g. /sample",tooltip:"The path to be used in request to the upstream server."},port:{label:"Port",tooltip:"The upstream server port."},retries:{label:"Retries",tooltip:"The number of retries to execute upon failure to proxy."},connect_timeout:{label:"Connection timeout",tooltip:"The timeout in milliseconds for establishing a connection to the upstream server."},write_timeout:{label:"Write timeout",tooltip:"The timeout in milliseconds between two successive write operations for transmitting a request to the upstream server."},read_timeout:{label:"Read timeout",tooltip:"The timeout in milliseconds between two successive read operations for transmitting a request to the upstream server."},client_certificate:{label:"Client certificate",placeholder:"Enter a Certificate ID",tooltip:"Certificate to be used as client certificate while TLS handshaking to the upstream server."},tls_sans_dnsnames:{label:"TLS SANs - DNS names",placeholder:"Enter a DNS name",tooltip:"Additional DNS names that can be matched on the upstream server's TLS certificate.",add:"Add DNS name"},tls_sans_uris:{label:"TLS SANs - URIs",placeholder:"Enter a URI",tooltip:"Additional URIs that can be matched on the upstream server's TLS certificate.",add:"Add URI"},ca_certificates:{label:"CA certificates",placeholder:"Enter a comma separated list of CA Certificate IDs",tooltip:"Array of {code1} object UUIDs that are used to build the trust store while verifying upstream server's TLS certificate. If set to {code2} when Nginx default is respected. If default CA list in Nginx are not specified and TLS verification is enabled, then handshake with upstream server will always fail (because no CA are trusted).",code1:"CA Certificate",code2:"null"},tls_verify_enabled:{label:"TLS verify",help:"If unchecked, use default system setting",tooltip:"Whether to enable verification of upstream server TLS certificate. If set to {code1}, then the Nginx default is respected.",code1:"null"},tls_verify_option:{unset:{display:"Use default system setting"},true:{label:"True",display:"On"},false:{label:"False",display:"Off"}},tags:{label:"Tags",tooltip:"An optional set of strings associated with the Service for grouping and filtering.",placeholder:"Enter a list of tags separated by comma",help:"e.g. tag1, tag2, tag3",collapse:"Add tags"},enabled:{label:"Enabled",tooltip:"Whether the Service is active. If set to {false}, the proxy behavior will be as if any routes attached to it do not exist (404). Default: {true}.",false:"false",true:"true"}}}},errors:{general:"Gateway Services could not be retrieved",delete:"The gateway service could not be deleted at this time.",copy:"Failed to copy to clipboard",urlErrorMessage:"Error: invalid URL"},copy:{success:"Copied {val} to clipboard",success_brief:"Successfully copied to clipboard"},glossary:{gateway_services:"gateway services"}};function Ee(){const l=ve.createI18n("en-us",xe);return{i18n:l,i18nT:ve.i18nTComponent(l)}}function Se(){return{getPortFromProtocol:(T,p)=>{const n=[80,443],a=Number(p);if((a||a===0)&&!n.includes(a))return a;switch(T){case"grpcs":case"tls":case"https":case"wss":return 443;case"grpc":case"tcp":case"http":case"ws":default:return 80}}}}const Be=/^[a-zA-Z0-9]([-a-zA-Z0-9]*[a-zA-Z0-9])?(\.[a-zA-Z0-9]([-a-zA-Z0-9]*[a-zA-Z0-9])?)*(\.)?$/,Ie=/^(\d+)\.(\d+)\.(\d+)\.(\d+)$/,Te=l=>/^[0-9A-Fa-f:.]+$/.test(l)&&l.includes(":");function Pe(){const{i18n:{t:l}}=q.useI18n();return{validateHost:m=>{if(!m||m.trim()==="")return l("gateway_services.form.errors.host.empty");try{if(Te(m))return new URL("/",`https://[${m}]`),"";if(Be.test(m)||Ie.test(m))return new URL("/",`https://${m}`),""}catch{}return l("gateway_services.form.errors.host.invalid")},validateProtocol:(m,N)=>!m||m.trim()===""?l("gateway_services.form.errors.protocol.empty"):(m=m.slice(0,-1),N.find(s=>{if(s.value===m)return s})===void 0?l("gateway_services.form.errors.protocol.invalid"):""),validatePath:m=>!m||m===""?"":m.startsWith("/")?/[^A-Za-z0-9\-._~:/?#[\]@!$&'()*+,;=%]/.test(m)?l("gateway_services.form.errors.path.invalid"):"":l("gateway_services.form.errors.path.prefix"),validatePort:m=>{if(m==null||m==="")return"";const N=typeof m=="string"?parseInt(m,10):m;return isNaN(N)?l("gateway_services.form.errors.port.type"):N<0||N>65535?l("gateway_services.form.errors.port.invalid"):""}}}const q={useI18n:Ee,usePortFromProtocol:Se,useUrlValidators:Pe},ge="/v2/control-planes/{controlPlaneId}/core-entities",ye="/{workspace}",ie={list:{konnect:{all:`${ge}/services`},kongManager:{all:`${ye}/services`}},form:{konnect:{create:`${ge}/services`,edit:`${ge}/services/{id}`},kongManager:{create:`${ye}/services`,edit:`${ye}/services/{id}`}}},Fe={class:"kong-ui-entities-gateway-services-list"},$e={class:"button-row"},De={key:1},Ae=e.defineComponent({__name:"GatewayServiceList",props:{config:{type:Object,required:!0,validator:l=>!(!l||!["konnect","kongManager"].includes(l==null?void 0:l.app)||!l.createRoute||!l.getViewRoute||!l.getEditRoute||l.app==="kongManager"&&!l.isExactMatch&&!l.filterSchema)},cacheIdentifier:{type:String,default:""},canCreate:{type:Function,required:!1,default:async()=>!0},canDelete:{type:Function,required:!1,default:async()=>!0},canEdit:{type:Function,required:!1,default:async()=>!0},canRetrieve:{type:Function,required:!1,default:async()=>!0},canDebug:{type:Function,required:!1,default:async()=>!1},useActionOutside:{type:Boolean,default:!1},isServerless:{type:Boolean,default:!1},canImportSpecs:{type:Boolean,default:!1}},emits:["error","click:learn-more","copy:success","copy:error","delete:success","toggle:success","click:import"],setup(l,{emit:T}){var se;const p=T,n=l,{i18n:{t:a,formatUnixTimeStamp:m}}=q.useI18n(),N=Ce.useRouter(),{axiosInstance:x}=y.useAxios((se=n.config)==null?void 0:se.axiosRequestConfig),{hasRecords:s,handleStateChange:v}=y.useTableState(()=>U.value),k=e.computed(()=>s.value&&n.config.app==="konnect"),G=e.computed(()=>n.config.app!=="kongManager"||!!n.config.disableSorting),J={name:{label:a("gateway_services.list.table_headers.name"),searchable:!0,sortable:!0,hidable:!1},...n.config.showControlPlaneColumn?{control_plane:{label:a("gateway_services.list.table_headers.control_plane")}}:{},protocol:{label:a("gateway_services.list.table_headers.protocol"),searchable:!0,sortable:!0},host:{label:a("gateway_services.list.table_headers.host"),searchable:!0,sortable:!0},port:{label:a("gateway_services.list.table_headers.port"),searchable:!0,sortable:!0},path:{label:a("gateway_services.list.table_headers.path"),searchable:!0,sortable:!0},enabled:{label:a("gateway_services.list.table_headers.enabled"),searchable:!0,sortable:!0},tags:{label:a("gateway_services.list.table_headers.tags"),sortable:!1},updated_at:{label:a("gateway_services.list.table_headers.updated_at"),sortable:!0},created_at:{label:a("gateway_services.list.table_headers.created_at"),sortable:!0}},F={columnVisibility:{created_at:!1}},W=J,Q=e.computed(()=>{var u,_;let f=`${n.config.apiBaseUrl}${ie.list[n.config.app].all}`;return n.config.app==="konnect"?f=f.replace(/{controlPlaneId}/gi,((u=n.config)==null?void 0:u.controlPlaneId)||""):n.config.app==="kongManager"&&(f=f.replace(/\/{workspace}/gi,(_=n.config)!=null&&_.workspace?`/${n.config.workspace}`:"")),f}),he=e.computed(()=>n.config.apiBaseUrl.startsWith("/")?new URL(`${window.location.origin}${Q.value}`):new URL(Q.value)),U=e.ref(""),O=e.computed(()=>{const f=n.config.app==="konnect"||n.config.isExactMatch;if(f)return{isExactMatch:f,placeholder:a(`search.placeholder.${n.config.app}`)};const{name:u,enabled:_,protocol:w,host:A,port:$,path:o}=J;return{isExactMatch:f,fields:{name:u,enabled:_,protocol:w,host:A,port:$,path:o},schema:n.config.filterSchema}}),{fetcher:we,fetcherState:j,fetcherCacheKey:C}=y.useFetcher(e.computed(()=>({...n.config,cacheIdentifier:n.cacheIdentifier})),Q),oe=()=>{U.value=""},re=()=>{C.value++},X=e.ref(null),t=e.computed(()=>({ctaPath:n.config.createRoute,ctaText:K.value?n.isServerless?a("actions.serverless_create"):a("actions.create"):void 0,message:`${a("gateway_services.list.empty_state.description")}${n.config.additionMessageForEmptyState?` ${n.config.additionMessageForEmptyState}`:""}`,title:K.value?n.isServerless?a("gateway_services.list.empty_state.serverless_title"):a("gateway_services.list.empty_state.title"):a("gateway_services.title")})),b=e.ref(!1),B=e.ref(null),Y=e.computed(()=>{const f={action:"disable",id:"",name:""};if(B.value){const{enabled:u,id:_,name:w}=B.value;f.action=u?"disable":"enable",f.id=_,f.name=w||_}return f}),ae=f=>{b.value=!0,B.value=f},ne=()=>{b.value=!1,B.value=null},z=async()=>{var w,A;if(!await((w=n.canEdit)==null?void 0:w.call(n,B.value))||!B.value)return;const u=`${he.value.href}/${B.value.id}`,_=!B.value.enabled;try{const $=(A=n.config)==null?void 0:A.app;let o;U.value&&$==="konnect"&&(o=await x.get(u));const{data:r}=$==="konnect"?await x.put(u,{...(o==null?void 0:o.data)||B.value,enabled:_}):await x.patch(u,{...B.value,enabled:_});p("toggle:success",r),B.value.enabled=_}catch($){p("error",$)}},ce=f=>{n.config.getControlPlaneRoute&&N.push(n.config.getControlPlaneRoute(f))},de=async(f,u)=>{const _=f.id;if(!await u(_)){p("copy:error",{entity:f,field:"id",message:a("errors.copy")});return}p("copy:success",{entity:f,field:"id",message:a("copy.success",{val:_})})},fe=async(f,u)=>{const _=JSON.stringify(f);if(!await u(_)){p("copy:error",{entity:f,message:a("errors.copy")});return}p("copy:success",{entity:f,message:a("copy.success_brief")})},pe=async f=>{var _;await((_=n.canRetrieve)==null?void 0:_.call(n,f))&&N.push(n.config.getViewRoute(f.id))},ee=f=>({label:a("actions.view"),to:n.config.getViewRoute(f)}),be=f=>({label:a("actions.edit"),to:n.config.getEditRoute(f)}),H=f=>{if(n.config.getDebugRoute)return{label:a("actions.debugger"),to:n.config.getDebugRoute(f)}},I=e.ref(void 0),D=e.ref(!1),Z=e.ref(!1),le=e.ref(""),Ve=y.useDeleteUrlBuilder(n.config,Q.value),me=f=>{I.value=f,D.value=!0,le.value=""},R=()=>{D.value=!1,I.value=void 0},ke=async()=>{var f,u,_;if((f=I.value)!=null&&f.id){Z.value=!0;try{await x.delete(Ve(I.value.id)),p("delete:success",I.value),R(),C.value++}catch(w){le.value=((_=(u=w.response)==null?void 0:u.data)==null?void 0:_.message)||w.message||a("errors.delete"),p("error",w)}finally{Z.value=!1}}},ue=()=>{N.push(n.config.createRoute)};e.watch(j,f=>{var u,_,w;if(f.status===y.FetcherStatus.Error){X.value={title:a("errors.general")},(w=(_=(u=f.error)==null?void 0:u.response)==null?void 0:_.data)!=null&&w.message&&(X.value.message=f.error.response.data.message),p("error",f.error);return}X.value=null});const K=e.ref(!1);return e.onBeforeMount(async()=>{K.value=await n.canCreate()}),(f,u)=>{const _=e.resolveComponent("KButton"),w=e.resolveComponent("KDropdownItem"),A=e.resolveComponent("KDropdown"),$=e.resolveComponent("KEmptyState"),o=e.resolveComponent("KBadge"),r=e.resolveComponent("KInputSwitch"),h=e.resolveComponent("KClipboardProvider");return e.openBlock(),e.createElementBlock("div",Fe,[e.createVNode(e.unref(y.EntityBaseTable),{"cache-identifier":l.cacheIdentifier,"default-table-preferences":F,"disable-sorting":G.value,"empty-state-options":t.value,"enable-entity-actions":"","error-message":X.value,fetcher:e.unref(we),"fetcher-cache-key":e.unref(C),"pagination-type":"offset","preferences-storage-key":"kong-ui-entities-gateway-services-list",query:U.value,"table-headers":e.unref(W),onClearSearchInput:oe,"onClick:row":u[5]||(u[5]=d=>pe(d)),onSort:re,onState:e.unref(v)},e.createSlots({"toolbar-filter":e.withCtx(()=>[e.createVNode(e.unref(y.EntityFilter),{modelValue:U.value,"onUpdate:modelValue":u[0]||(u[0]=d=>U.value=d),config:O.value},null,8,["modelValue","config"])]),"toolbar-button":e.withCtx(()=>[(e.openBlock(),e.createBlock(e.Teleport,{disabled:!l.useActionOutside,to:"#kong-ui-app-page-header-action-button"},[e.createElementVNode("div",$e,[k.value?(e.openBlock(),e.createBlock(_,{key:0,appearance:"secondary",class:"open-learning-hub","data-testid":"gateway-services-learn-more-button",icon:"",onClick:u[1]||(u[1]=d=>f.$emit("click:learn-more"))},{default:e.withCtx(()=>[e.createVNode(e.unref(M.BookIcon),{decorative:""})]),_:1})):e.createCommentVNode("",!0),e.createVNode(e.unref(y.PermissionsWrapper),{"auth-function":l.canCreate},{default:e.withCtx(()=>[e.createVNode(_,{appearance:"primary","data-testid":"toolbar-add-gateway-service",size:l.useActionOutside?"medium":"large",to:l.config.createRoute},{default:e.withCtx(()=>[e.createVNode(e.unref(M.AddIcon)),e.createTextVNode(" "+e.toDisplayString(e.unref(a)("gateway_services.list.toolbar_actions.new_gateway_service")),1)]),_:1},8,["size","to"])]),_:1},8,["auth-function"])])],8,["disabled"]))]),name:e.withCtx(({rowValue:d})=>[e.createElementVNode("b",null,e.toDisplayString(d??"-"),1)]),control_plane:e.withCtx(({row:d})=>{var g;return[(g=d.x_meta)!=null&&g.cluster_id?(e.openBlock(),e.createBlock(o,{key:0,tooltip:d.x_meta.cluster_id,"truncation-tooltip":"",onClick:e.withModifiers(V=>ce(d.x_meta.cluster_id),["stop"])},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(d.x_meta.cluster_id),1)]),_:2},1032,["tooltip","onClick"])):(e.openBlock(),e.createElementBlock("b",De,"-"))]}),enabled:e.withCtx(({row:d})=>[e.createVNode(e.unref(y.PermissionsWrapper),{"auth-function":()=>l.canEdit(d),"force-show":""},{default:e.withCtx(({isAllowed:g})=>[e.createElementVNode("div",{onClick:u[4]||(u[4]=e.withModifiers(()=>{},["stop"]))},[e.createVNode(r,{modelValue:d.enabled,"onUpdate:modelValue":V=>d.enabled=V,"data-testid":`row-${d.id}-toggle-input`,disabled:!g,onClick:e.withModifiers(V=>ae(d),["prevent"])},null,8,["modelValue","onUpdate:modelValue","data-testid","disabled","onClick"])])]),_:2},1032,["auth-function"])]),tags:e.withCtx(({rowValue:d})=>[e.createVNode(e.unref(y.TableTags),{tags:d},null,8,["tags"])]),created_at:e.withCtx(({rowValue:d})=>[e.createTextVNode(e.toDisplayString(e.unref(m)(d)),1)]),updated_at:e.withCtx(({row:d,rowValue:g})=>[e.createTextVNode(e.toDisplayString(e.unref(m)(g??d.created_at)),1)]),actions:e.withCtx(({row:d})=>[e.createVNode(h,null,{default:e.withCtx(({copyToClipboard:g})=>[e.createVNode(w,{"data-testid":"action-entity-copy-id",onClick:V=>de(d,g)},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(a)("actions.copy_id")),1)]),_:1},8,["onClick"])]),_:2},1024),e.createVNode(h,null,{default:e.withCtx(({copyToClipboard:g})=>[e.createVNode(w,{"data-testid":"action-entity-copy-json",onClick:V=>fe(d,g)},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(a)("actions.copy_json")),1)]),_:1},8,["onClick"])]),_:2},1024),e.createVNode(e.unref(y.PermissionsWrapper),{"auth-function":()=>l.canRetrieve(d)},{default:e.withCtx(()=>[e.createVNode(w,{"data-testid":"action-entity-view","has-divider":"",item:ee(d.id)},null,8,["item"])]),_:2},1032,["auth-function"]),e.createVNode(e.unref(y.PermissionsWrapper),{"auth-function":()=>l.canDebug(d)},{default:e.withCtx(()=>[l.config.getDebugRoute?(e.openBlock(),e.createBlock(w,{key:0,"data-testid":"action-entity-debug",item:H(d.id)},null,8,["item"])):e.createCommentVNode("",!0)]),_:2},1032,["auth-function"]),e.createVNode(e.unref(y.PermissionsWrapper),{"auth-function":()=>l.canEdit(d)},{default:e.withCtx(()=>[e.createVNode(w,{"data-testid":"action-entity-edit",item:be(d.id)},null,8,["item"])]),_:2},1032,["auth-function"]),e.createVNode(e.unref(y.PermissionsWrapper),{"auth-function":()=>l.canDelete(d)},{default:e.withCtx(()=>[e.createVNode(w,{danger:"","data-testid":"action-entity-delete","has-divider":"",onClick:g=>me(d)},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(a)("actions.delete.menu_label")),1)]),_:1},8,["onClick"])]),_:2},1032,["auth-function"])]),_:2},[!U.value&&l.config.app==="konnect"?{name:"empty-state",fn:e.withCtx(()=>{var d;return[e.createVNode($,{"data-testid":"gateway-services-entity-empty-state","icon-background":"",message:e.unref(a)("gateway_services.empty_state_v2.description"),title:e.unref(a)("gateway_services.empty_state_v2.title")},e.createSlots({icon:e.withCtx(()=>[e.createVNode(e.unref(M.ServicesIcon),{decorative:""})]),action:e.withCtx(()=>[K.value?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[l.canImportSpecs?(e.openBlock(),e.createBlock(A,{key:0,"data-testid":"entity-create-dropdown","show-caret":"","trigger-text":e.unref(a)("gateway_services.empty_state_v2.create"),width:"220"},{items:e.withCtx(()=>[e.createVNode(w,{"data-testid":"entity-create-dropdown-item",onClick:ue},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(a)("gateway_services.empty_state_v2.create_new")),1)]),_:1}),e.createVNode(w,{"data-testid":"entity-import-dropdown-item",onClick:u[2]||(u[2]=g=>f.$emit("click:import"))},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(a)("gateway_services.empty_state_v2.import_spec")),1)]),_:1})]),_:1},8,["trigger-text"])):(e.openBlock(),e.createBlock(_,{key:1,"data-testid":"entity-create-button",onClick:ue},{default:e.withCtx(()=>[e.createVNode(e.unref(M.AddIcon),{decorative:""}),e.createTextVNode(" "+e.toDisplayString(e.unref(a)("gateway_services.empty_state_v2.create")),1)]),_:1}))],64)):e.createCommentVNode("",!0),e.createVNode(_,{appearance:"secondary","data-testid":"entity-learn-more-button",onClick:u[3]||(u[3]=g=>f.$emit("click:learn-more"))},{default:e.withCtx(()=>[e.createVNode(e.unref(M.BookIcon),{decorative:""}),e.createTextVNode(" "+e.toDisplayString(e.unref(a)("gateway_services.empty_state_v2.learn_more")),1)]),_:1})]),_:2},[(d=l.config)!=null&&d.isControlPlaneGroup?{name:"default",fn:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(a)("gateway_services.empty_state_v2.group")),1)]),key:"0"}:void 0]),1032,["message","title"])]}),key:"0"}:void 0]),1032,["cache-identifier","disable-sorting","empty-state-options","error-message","fetcher","fetcher-cache-key","query","table-headers","onState"]),e.createVNode(e.unref(y.EntityToggleModal),{action:Y.value.action,"entity-id":Y.value.id,"entity-name":Y.value.name,"entity-type":e.unref(a)("glossary.gateway_services"),"on-confirm":z,visible:b.value,onCancel:ne,onProceed:ne},null,8,["action","entity-id","entity-name","entity-type","visible"]),e.createVNode(e.unref(y.EntityDeleteModal),{"action-pending":Z.value,description:e.unref(a)("actions.delete.description"),"entity-name":I.value&&(I.value.name||I.value.id),"entity-type":e.unref(y.EntityTypes).GatewayService,error:le.value,title:e.unref(a)("actions.delete.title"),visible:D.value,onCancel:R,onProceed:ke},null,8,["action-pending","description","entity-name","entity-type","error","title","visible"])])}}}),_e=(l,T)=>{const p=l.__vccOpts||l;for(const[n,a]of T)p[n]=a;return p},Ue=_e(Ae,[["__scopeId","data-v-fb0f3023"]]),Re={class:"kong-ui-gateway-service-entity-config-card"},Me=e.defineComponent({__name:"GatewayServiceConfigCard",props:{config:{type:Object,required:!0,validator:l=>!(!l||!["konnect","kongManager"].includes(l==null?void 0:l.app)||l.app==="konnect"&&!l.controlPlaneId||l.app==="kongManager"&&typeof l.workspace!="string"||!l.entityId)},configCardDoc:{type:String,default:"",required:!1},hideTitle:{type:Boolean,default:!1}},emits:["loading","fetch:error","fetch:success"],setup(l){const T=l,{i18n:{t:p},i18nT:n}=q.useI18n(),a=e.computed(()=>ie.form[T.config.app].edit),{getPropValue:m}=y.useHelpers(),N=(s,v)=>m(s,v)===!0?p("gateway_services.form.fields.tls_verify_option.true.display"):p("gateway_services.form.fields.tls_verify_option.false.display"),x=e.ref({id:{},name:{tooltip:p("gateway_services.form.fields.name.tooltip")},enabled:{},updated_at:{},created_at:{},protocol:{section:y.ConfigurationSchemaSection.Basic,tooltip:p("gateway_services.form.fields.protocol.tooltip")},host:{section:y.ConfigurationSchemaSection.Basic,tooltip:p("gateway_services.form.fields.host.tooltip")},path:{section:y.ConfigurationSchemaSection.Basic,tooltip:p("gateway_services.form.fields.path.tooltip")},port:{section:y.ConfigurationSchemaSection.Basic,tooltip:p("gateway_services.form.fields.port.tooltip")},tags:{tooltip:p("gateway_services.form.fields.tags.tooltip")},retries:{order:1,tooltip:p("gateway_services.form.fields.retries.tooltip")},connect_timeout:{order:2,tooltip:p("gateway_services.form.fields.connect_timeout.tooltip")},write_timeout:{order:3,tooltip:p("gateway_services.form.fields.write_timeout.tooltip")},read_timeout:{order:4,tooltip:p("gateway_services.form.fields.read_timeout.tooltip")},client_certificate:{order:5,tooltip:p("gateway_services.form.fields.client_certificate.tooltip")},ca_certificates:{type:y.ConfigurationSchemaType.BadgeTag,label:p("gateway_services.form.fields.ca_certificates.label"),order:6},tls_verify:{label:p("gateway_services.form.fields.tls_verify_enabled.label")},tls_verify_depth:{hidden:!0}});return(s,v)=>(e.openBlock(),e.createElementBlock("div",Re,[e.createVNode(e.unref(y.EntityBaseConfigCard),{config:l.config,"config-card-doc":l.configCardDoc,"config-schema":x.value,"entity-type":e.unref(y.SupportedEntityType).GatewayService,"fetch-url":a.value,"hide-title":l.hideTitle,"onFetch:error":v[0]||(v[0]=k=>s.$emit("fetch:error",k)),"onFetch:success":v[1]||(v[1]=k=>s.$emit("fetch:success",k)),onLoading:v[2]||(v[2]=k=>s.$emit("loading",k))},{"enabled-label-tooltip":e.withCtx(()=>[e.createVNode(e.unref(n),{keypath:"gateway_services.form.fields.enabled.tooltip",scope:"global"},{false:e.withCtx(()=>[e.createElementVNode("code",null,e.toDisplayString(e.unref(p)("gateway_services.form.fields.enabled.false")),1)]),true:e.withCtx(()=>[e.createElementVNode("code",null,e.toDisplayString(e.unref(p)("gateway_services.form.fields.enabled.true")),1)]),_:1})]),"ca_certificates-label-tooltip":e.withCtx(()=>[e.createVNode(e.unref(n),{keypath:"gateway_services.form.fields.ca_certificates.tooltip",scope:"global"},{code1:e.withCtx(()=>[e.createElementVNode("code",null,e.toDisplayString(e.unref(p)("gateway_services.form.fields.ca_certificates.code1")),1)]),code2:e.withCtx(()=>[e.createElementVNode("code",null,e.toDisplayString(e.unref(p)("gateway_services.form.fields.ca_certificates.code2")),1)]),_:1})]),"tls_verify-label-tooltip":e.withCtx(()=>[e.createVNode(e.unref(n),{keypath:"gateway_services.form.fields.tls_verify_enabled.tooltip",scope:"global"},{code1:e.withCtx(()=>[e.createElementVNode("code",null,e.toDisplayString(e.unref(p)("gateway_services.form.fields.tls_verify_enabled.code1")),1)]),_:1})]),tls_verify:e.withCtx(k=>[e.createTextVNode(e.toDisplayString(typeof e.unref(m)("rowValue",k)=="boolean"?N("rowValue",k):e.unref(p)("gateway_services.form.fields.tls_verify_option.unset.display")),1)]),client_certificate:e.withCtx(k=>[e.createTextVNode(e.toDisplayString(e.unref(m)("rowValue",k)?e.unref(m)("rowValue",k).id:"–"),1)]),_:1},8,["config","config-card-doc","config-schema","entity-type","fetch-url","hide-title"])]))}}),P={name:"Kong-Air-Flights-API",protocol:"https",path:"/flights",host:"api.kong-air.com",port:443},Ke="#d60027",Le={class:"tls-sans-field-container"},qe={key:0,class:"tls-sans-field-controls"},Ge={key:0},Ne=_e(e.defineComponent({__name:"GatewayServiceFormTlsSansField",props:{modelValue:{},label:{},tooltip:{},placeholder:{},addButtonText:{},testIdPrefix:{},error:{type:Boolean},readonly:{type:Boolean}},emits:["update:modelValue","input"],setup(l,{emit:T}){const p=l,n=T,a=()=>{n("update:modelValue",[...p.modelValue,""])},m=x=>{const s=[...p.modelValue];s.splice(x,1),n("update:modelValue",s)},N=(x,s)=>{const v=[...p.modelValue];v[x]=s,n("update:modelValue",v),n("input")};return(x,s)=>{const v=e.resolveComponent("KLabel"),k=e.resolveComponent("KInput"),G=e.resolveComponent("KButton");return e.openBlock(),e.createElementBlock("div",Le,[e.createVNode(v,{info:l.tooltip},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(l.label),1)]),_:1},8,["info"]),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(l.modelValue,(J,F)=>(e.openBlock(),e.createElementBlock("div",{key:F,class:"tls-sans-field-input"},[e.createVNode(k,{autocomplete:"off","data-testid":`${l.testIdPrefix}-input-${F}`,error:l.error,"model-value":l.modelValue[F],placeholder:l.placeholder,readonly:l.readonly,type:"text","onUpdate:modelValue":W=>N(F,W.trim())},null,8,["data-testid","error","model-value","placeholder","readonly","onUpdate:modelValue"]),l.readonly?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",qe,[e.createVNode(G,{appearance:"tertiary","data-testid":`remove-${l.testIdPrefix}`,icon:"",onClick:W=>m(F)},{default:e.withCtx(()=>[e.createVNode(e.unref(M.TrashIcon),{color:e.unref(Ke)},null,8,["color"])]),_:1},8,["data-testid","onClick"]),e.createVNode(G,{appearance:"tertiary","data-testid":`add-${l.testIdPrefix}`,disabled:F!==l.modelValue.length-1,icon:"",onClick:a},{default:e.withCtx(()=>[e.createVNode(e.unref(M.AddIcon))]),_:1},8,["data-testid","disabled"])]))]))),128)),l.modelValue.length===0&&!l.readonly?(e.openBlock(),e.createElementBlock("div",Ge,[e.createVNode(G,{"data-testid":`add-${l.testIdPrefix}`,onClick:a},{default:e.withCtx(()=>[e.createVNode(e.unref(M.AddIcon)),e.createTextVNode(" "+e.toDisplayString(l.addButtonText),1)]),_:1},8,["data-testid"])])):e.createCommentVNode("",!0)])}}}),[["__scopeId","data-v-9b2cc5e4"]]),We={class:"kong-ui-entities-gateway-service-form"},Oe={key:0,class:"gateway-service-form-general-info"},je={class:"gateway-service-form-group-selection-wrapper"},ze={key:0,class:"gateway-service-form-group-fields"},He={key:0,class:"gateway-service-form-group-fields"},Ze={key:0},Je={key:0,class:"gateway-service-form-advanced-fields"},Qe={class:"gateway-service-form-margin-bottom"},Xe={class:"gateway-service-form-margin-bottom"},Ye={class:"gateway-service-form-margin-bottom"},et={class:"gateway-service-form-margin-bottom"},tt={key:0,class:"gateway-service-form-margin-bottom"},ot={key:3,class:"gateway-service-form-margin-bottom"},rt={key:4,class:"gateway-service-form-margin-bottom"},lt={key:0,class:"checkbox-aligned-radio"},st={key:1,class:"checkbox-aligned-radio"},it={class:"gateway-service-form-tags"},at={class:"form-error-list"},nt=_e(e.defineComponent({__name:"GatewayServiceForm",props:{config:{type:Object,required:!0,validator:l=>!(!l||!["konnect","kongManager"].includes(l==null?void 0:l.app)||l.app==="konnect"&&!l.controlPlaneId||l.app==="kongManager"&&typeof l.workspace!="string"||!l.cancelRoute)},gatewayServiceId:{type:String,required:!1,default:""},hideSectionsInfo:{type:Boolean,required:!1,default:!1},hideTrySampleApiButton:{type:Boolean,required:!1,default:!1},isTlsSansSupported:{type:Boolean,required:!1,default:!0}},emits:["update","error","url-valid:success","url-valid:error","loading","model-updated","try-sample-api"],setup(l,{expose:T,emit:p}){var $;const n=p,a=l,m=e.ref(!0),N=Ce.useRouter(),{i18nT:x,i18n:{t:s}}=q.useI18n(),{getErrorFieldsFromError:v}=y.useErrors(),{axiosInstance:k}=y.useAxios(($=a.config)==null?void 0:$.axiosRequestConfig),G=y.useValidators(),{validateHost:J,validatePath:F,validatePort:W,validateProtocol:Q}=q.useUrlValidators(),{objectsAreEqual:he}=y.useHelpers(),U=e.computed(()=>ie.form[a.config.app].edit),O=e.computed(()=>a.gatewayServiceId?y.EntityBaseFormType.Edit:y.EntityBaseFormType.Create),we=e.ref(!1),j=e.computed(()=>!!a.gatewayServiceId),C=e.ref(j.value?"protocol":"url"),oe=q.usePortFromProtocol(),re=e.ref(""),X=e.computed(()=>!!re.value||!!H("name")),t=e.reactive({fields:{name:"",protocol:"http",host:"",path:"",port:80,url:"",retries:5,connect_timeout:6e4,write_timeout:6e4,read_timeout:6e4,client_certificate:"",tls_sans:{dnsnames:[""],uris:[""]},ca_certificates:"",tls_verify_enabled:!1,tls_verify_value:!1,tags:"",enabled:!0},isReadonly:!1,errorMessages:[],formFieldErrors:{host:"",port:"",path:"",name:"",url:"",tags:"",retries:"",connect_timeout:"",write_timeout:"",read_timeout:"",client_certificate:"",tls_sans_dnsnames:"",tls_sans_uris:"",ca_certificates:"",tls_verify_enabled:"",tls_verify_value:""}}),b=e.reactive({name:"",protocol:"http",host:"",path:"",port:80,url:"",retries:5,connect_timeout:6e4,write_timeout:6e4,read_timeout:6e4,client_certificate:"",tls_sans:{dnsnames:[""],uris:[""]},ca_certificates:"",tls_verify_enabled:!1,tls_verify_value:!1,tags:"",enabled:!0}),B=a.config.app==="konnect"||y.useGatewayFeatureSupported({gatewayInfo:a.config.gatewayInfo,supportedRange:{enterprise:["3.0"]}}),Y=[{label:s("gateway_services.form.fields.protocol.options.http"),value:"http",group:"http"},{label:s("gateway_services.form.fields.protocol.options.https"),value:"https",group:"http"},{label:s("gateway_services.form.fields.protocol.options.tcp"),value:"tcp",group:"tcp"},{label:s("gateway_services.form.fields.protocol.options.tls"),value:"tls",group:"tcp"},{label:s("gateway_services.form.fields.protocol.options.tls_passthrough"),value:"tls_passthrough",group:"tcp"},{label:s("gateway_services.form.fields.protocol.options.grpc"),value:"grpc",group:"grpc"},{label:s("gateway_services.form.fields.protocol.options.grpcs"),value:"grpcs",group:"grpc"},...B?[{label:s("gateway_services.form.fields.protocol.options.ws"),value:"ws",group:"websocket"},{label:s("gateway_services.form.fields.protocol.options.wss"),value:"wss",group:"websocket"}]:[],{label:s("gateway_services.form.fields.protocol.options.udp"),value:"udp",group:"udp"}],ae={url:"url",protocol:"protocol"},ne=o=>{t.fields.protocol=o.value,t.fields.port=oe.getPortFromProtocol(t.fields.protocol,String(t.fields.port))},z=o=>o?parseFloat(o):0,ce=()=>{t.fields.host=b.host,t.fields.path=b.path,t.fields.port=b.port,t.fields.protocol=b.protocol,t.fields.url=b.url,t.fields.retries=b.retries,t.fields.connect_timeout=b.connect_timeout,t.fields.write_timeout=b.write_timeout,t.fields.read_timeout=b.read_timeout,t.fields.client_certificate=b.client_certificate,t.fields.tls_sans={dnsnames:[...b.tls_sans.dnsnames],uris:[...b.tls_sans.uris]},t.fields.ca_certificates=b.ca_certificates,t.fields.tls_verify_enabled=b.tls_verify_enabled,t.fields.tls_verify_value=b.tls_verify_value,t.fields.enabled=b.enabled},de=()=>{m.value=!0,D(),t.errorMessages=[],ce()},fe=()=>{switch(ce(),t.fields.name=`${P.name}-${new Date().toISOString().replace(/\D/g,"").slice(0,17)}`,C.value){case"url":t.fields.url=`${P.protocol}://${P.host}${P.path}`;break;case"protocol":t.fields.host=P.host,t.fields.path=P.path,t.fields.protocol=P.protocol,t.fields.port=P.port;break;default:t.fields.url=`${P.protocol}://${P.host}${P.path}`}},pe=()=>{if(D(),t.fields.url.length)try{const o=new URL(t.fields.url),r=Q(o.protocol,Y);if(r)throw new Error(r);t.fields.protocol=o.protocol.slice(0,-1);const h=J(o.hostname);if(h)throw new Error(h);t.fields.host=o.hostname;const d=F(o.pathname);if(d)throw new Error(d);t.fields.path=o.pathname;const g=W(o.port);if(g)throw new Error(g);const V=Number(o.port);we.value=!!V,t.fields.port=V||oe.getPortFromProtocol(t.fields.protocol),n("url-valid:success")}catch{n("url-valid:error",s("gateway_services.form.errors.url.invalid")),t.formFieldErrors.url=s("gateway_services.form.errors.url.invalid")}},ee=o=>{D(o)},be=e.computed(()=>!!t.formFieldErrors.url||!!t.formFieldErrors.host||!!t.formFieldErrors.port),H=o=>{if(t.errorMessages.length)return"";const r=t.formFieldErrors;return r[o]?r[o]:""},I=o=>{D(o??void 0);const r=J(t.fields.host);r&&(t.formFieldErrors.host=r);const h=F(t.fields.path);h&&(t.formFieldErrors.path=h);const d=W(t.fields.port);d&&(t.formFieldErrors.port=d),Z.value?n("url-valid:success"):n("url-valid:error",t.errorMessages.join(",")||s("gateway_services.form.errors.url.invalid"))},D=o=>{if(o)t.formFieldErrors[o]="";else for(let r in t.formFieldErrors)t.formFieldErrors[r]="";t.errorMessages=[]},Z=e.computed(()=>{for(let o in t.formFieldErrors)if(t.formFieldErrors[o].length)return!1;return!0}),le=()=>{t.fields.url&&C.value==="url"?pe():I()},Ve=()=>`new-service-${new Date().toISOString().replace(/\D/g,"").slice(0,17)}`,me=e.computed(()=>!["tcp","tls","tls_passthrough","grpc","grpcs","udp"].includes(t.fields.protocol)),R=e.computed(()=>{if(C.value==="url")return!0;const o=["https","wss","tls"].includes(t.fields.protocol);return C.value==="protocol"&&o}),ke=e.computed(()=>{if(C.value==="url")return!0;const o=["https","tls"].includes(t.fields.protocol);return C.value==="protocol"&&o}),ue=o=>{D("name"),re.value=G.utf8Name(o)},K=e.computed(()=>{const o=!j.value||!he(t.fields,b),r=C.value==="url"&&!!t.fields.url&&Z.value,h=C.value==="protocol"&&!!t.fields.host&&Z.value;return o&&(r||h)}),se=o=>{var r,h,d,g,V;t.fields.name=(o==null?void 0:o.name)||"",t.fields.tags=((r=o==null?void 0:o.tags)==null?void 0:r.join(", "))||"",t.fields.protocol=(o==null?void 0:o.protocol)||"http",t.fields.path=(o==null?void 0:o.path)||"",t.fields.read_timeout=o!=null&&o.read_timeout||(o==null?void 0:o.read_timeout)===0?o==null?void 0:o.read_timeout:6e4,t.fields.retries=o!=null&&o.retries||(o==null?void 0:o.retries)===0?o==null?void 0:o.retries:5,t.fields.host=(o==null?void 0:o.host)||"",t.fields.connect_timeout=o!=null&&o.connect_timeout||(o==null?void 0:o.connect_timeout)===0?o==null?void 0:o.connect_timeout:6e4,t.fields.tls_verify_enabled=(o==null?void 0:o.tls_verify)!==""&&(o==null?void 0:o.tls_verify)!==null&&(o==null?void 0:o.tls_verify)!==void 0,t.fields.tls_verify_value=o!=null&&o.tls_verify?o==null?void 0:o.tls_verify:!1,t.fields.ca_certificates=((h=o==null?void 0:o.ca_certificates)==null?void 0:h.join(","))||"",t.fields.client_certificate=((d=o==null?void 0:o.client_certificate)==null?void 0:d.id)||"",t.fields.tls_sans={dnsnames:((g=o==null?void 0:o.tls_sans)==null?void 0:g.dnsnames)??[""],uris:((V=o==null?void 0:o.tls_sans)==null?void 0:V.uris)??[""]},t.fields.write_timeout=o!=null&&o.write_timeout||(o==null?void 0:o.write_timeout)===0?o==null?void 0:o.write_timeout:6e4,t.fields.port=o!=null&&o.port||(o==null?void 0:o.port)===0?o==null?void 0:o.port:80,t.fields.enabled=(o==null?void 0:o.enabled)??!0,Object.assign(b,t.fields),b.tls_sans={dnsnames:[...t.fields.tls_sans.dnsnames],uris:[...t.fields.tls_sans.uris]}},f=()=>{N.push(a.config.cancelRoute)},u=e.computed(()=>{var r,h;let o=`${a.config.apiBaseUrl}${ie.form[a.config.app][O.value]}`;return a.config.app==="konnect"?o=o.replace(/{controlPlaneId}/gi,((r=a.config)==null?void 0:r.controlPlaneId)||""):a.config.app==="kongManager"&&(o=o.replace(/\/{workspace}/gi,(h=a.config)!=null&&h.workspace?`/${a.config.workspace}`:"")),o=o.replace(/{id}/gi,a.gatewayServiceId),o}),_=e.computed(()=>{if(!a.isTlsSansSupported)return;if(!R.value)return null;const o=t.fields.tls_sans.dnsnames.map(h=>h.trim()).filter(Boolean),r=t.fields.tls_sans.uris.map(h=>h.trim()).filter(Boolean);return o.length||r.length?{dnsnames:o.length?o:null,uris:r.length?r:null}:null}),w=e.computed(()=>{var r,h,d,g;const o={name:t.fields.name||null,tags:t.fields.tags?(d=(h=(r=t.fields.tags)==null?void 0:r.split(","))==null?void 0:h.map(V=>String(V||"").trim()))==null?void 0:d.filter(V=>V!==""):null,protocol:t.fields.protocol,path:t.fields.path||null,read_timeout:t.fields.read_timeout,retries:t.fields.retries,host:t.fields.host,connect_timeout:t.fields.connect_timeout,ca_certificates:t.fields.ca_certificates?(g=t.fields.ca_certificates)==null?void 0:g.split(",").filter(V=>V!==""):null,client_certificate:t.fields.client_certificate?{id:t.fields.client_certificate}:null,tls_sans:_.value,write_timeout:t.fields.write_timeout,port:t.fields.port,url:t.fields.url,enabled:t.fields.enabled};return R.value||(o.client_certificate=null),t.fields.tls_verify_enabled&&["https","wss","tls"].includes(t.fields.protocol)&&(o.tls_verify=t.fields.tls_verify_value),me.value||(o.path=null),O.value==="create"?C.value==="url"?(delete o.protocol,delete o.host,delete o.path,a.config.app==="konnect"&&delete o.port):delete o.url:O.value==="edit"&&delete o.url,o}),A=async()=>{var o,r,h,d,g,V;try{t.isReadonly=!0;const L=w.value;let S;if(O.value==="create"?S=await k.post(u.value,L):O.value==="edit"&&(S=((o=a.config)==null?void 0:o.app)==="konnect"?await k.put(u.value,L):await k.patch(u.value,L)),S){const{data:i}=S;t.fields.name=(i==null?void 0:i.name)||"",t.fields.port=i.port||oe.getPortFromProtocol(i.protocol),t.fields.protocol=(i==null?void 0:i.protocol)||"http",t.fields.host=(i==null?void 0:i.host)||"",t.fields.path=(i==null?void 0:i.path)||"",t.fields.url=(i==null?void 0:i.url)||"",t.fields.retries=i!=null&&i.retries||(i==null?void 0:i.retries)===0?i==null?void 0:i.retries:5,t.fields.connect_timeout=i!=null&&i.connect_timeout||(i==null?void 0:i.connect_timeout)===0?i==null?void 0:i.connect_timeout:6e4,t.fields.write_timeout=i!=null&&i.write_timeout||(i==null?void 0:i.write_timeout)===0?i==null?void 0:i.write_timeout:6e4,t.fields.read_timeout=i!=null&&i.read_timeout||(i==null?void 0:i.read_timeout)===0?i==null?void 0:i.read_timeout:6e4,t.fields.client_certificate=((r=i==null?void 0:i.client_certificate)==null?void 0:r.id)||"",t.fields.tls_sans={dnsnames:((h=i==null?void 0:i.tls_sans)==null?void 0:h.dnsnames)??[],uris:((d=i==null?void 0:i.tls_sans)==null?void 0:d.uris)??[]},t.fields.ca_certificates=(g=i==null?void 0:i.ca_certificates)!=null&&g.length?i==null?void 0:i.ca_certificates.join(","):"",t.fields.tls_verify_enabled=(i==null?void 0:i.tls_verify)!==""&&(i==null?void 0:i.tls_verify)!==null&&(i==null?void 0:i.tls_verify)!==void 0,t.fields.tls_verify_value=t.fields.tls_verify_enabled&&(i==null?void 0:i.tls_verify),t.fields.tags=(V=i==null?void 0:i.tags)!=null&&V.length?i.tags.join(", "):"",t.fields.enabled=(i==null?void 0:i.enabled)??!0,Object.assign(b,t.fields),b.tls_sans={dnsnames:[...t.fields.tls_sans.dnsnames],uris:[...t.fields.tls_sans.uris]},n("update",S==null?void 0:S.data)}return S}catch(L){const{fields:S,messages:i}=v(L);t.errorMessages=i,S.length&&S.forEach(c=>{const te=c.field;te==="client_certificate.id"?t.formFieldErrors.client_certificate=c.message:te.startsWith("tls_sans.dnsnames")?t.formFieldErrors.tls_sans_dnsnames=c.message:te.startsWith("tls_sans.uris")?t.formFieldErrors.tls_sans_uris=c.message:te.startsWith("ca_certificates")?t.formFieldErrors.ca_certificates=c.message:Object.keys(t.formFieldErrors).includes(te)&&(t.formFieldErrors={...t.formFieldErrors,[te]:c.message})}),n("error",L)}finally{t.isReadonly=!1}};return e.watch(()=>a.gatewayServiceId,()=>{Object.assign(t.fields,b)}),e.watch(t.fields,()=>{n("model-updated",w.value)}),e.onMounted(()=>{n("model-updated",w.value),j.value||(t.fields.name=Ve())}),T({validateUrl:le,getPayload:w,saveFormData:A,canSubmit:K,initForm:se}),(o,r)=>{const h=e.resolveComponent("KRadio"),d=e.resolveComponent("KButton"),g=e.resolveComponent("KInput"),V=e.resolveComponent("KSelect"),L=e.resolveComponent("KCheckbox"),S=e.resolveComponent("KCollapse"),i=e.resolveComponent("KAlert");return e.openBlock(),e.createElementBlock("div",We,[e.createVNode(e.unref(y.EntityBaseForm),{"can-submit":K.value,config:l.config,"edit-id":l.gatewayServiceId,"entity-type":e.unref(y.SupportedEntityType).GatewayService,"fetch-url":U.value,"form-fields":w.value,"is-readonly":t.isReadonly,onCancel:f,"onFetch:error":r[34]||(r[34]=c=>o.$emit("error",c)),"onFetch:success":se,onLoading:r[35]||(r[35]=c=>o.$emit("loading",c)),onSubmit:A},{"form-actions":e.withCtx(()=>[e.renderSlot(o.$slots,"form-actions",{canSubmit:K.value,cancel:f,submit:A},void 0,!0)]),default:e.withCtx(()=>[e.createVNode(e.unref(y.EntityFormSection),{description:e.unref(s)("gateway_services.form.sections.keys.description"),"hide-info-header":l.hideSectionsInfo,title:e.unref(s)("gateway_services.form.sections.keys.title")},{default:e.withCtx(()=>[j.value?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",Oe,[e.createElementVNode("div",je,[e.createVNode(h,{modelValue:C.value,"onUpdate:modelValue":r[0]||(r[0]=c=>C.value=c),card:"","card-orientation":"horizontal","data-testid":"gateway-service-url-radio",description:e.unref(s)("gateway_services.form.sections.keys.url.description"),label:e.unref(s)("gateway_services.form.sections.keys.url.label"),"selected-value":ae.url,onChange:de},null,8,["modelValue","description","label","selected-value"]),e.createVNode(h,{modelValue:C.value,"onUpdate:modelValue":r[1]||(r[1]=c=>C.value=c),card:"","card-orientation":"horizontal","checked-group":"protocol","data-testid":"gateway-service-protocol-radio",description:e.unref(s)("gateway_services.form.sections.keys.protocol.description"),label:e.unref(s)("gateway_services.form.sections.keys.protocol.label"),"selected-value":ae.protocol,onChange:de},null,8,["modelValue","description","label","selected-value"])]),e.createVNode(e.Transition,{name:"slide-fade"},{default:e.withCtx(()=>[C.value==="url"?(e.openBlock(),e.createElementBlock("div",ze,[e.createVNode(g,{modelValue:t.fields.url,"onUpdate:modelValue":r[2]||(r[2]=c=>t.fields.url=c),modelModifiers:{trim:!0},class:"gateway-service-url-input gateway-service-form-margin-bottom","data-testid":"gateway-service-url-input",error:be.value,"error-message":H("url"),label:e.unref(s)("gateway_services.form.fields.upstream_url.label"),"label-attributes":{info:l.config.app==="konnect"?e.unref(s)("gateway_services.form.fields.upstream_url.tooltip_for_konnect"):e.unref(s)("gateway_services.form.fields.upstream_url.tooltip_for_km"),tooltipAttributes:{maxWidth:"400"}},name:"url",placeholder:e.unref(s)("gateway_services.form.fields.upstream_url.placeholder"),required:"",onInput:pe},e.createSlots({_:2},[l.hideTrySampleApiButton?void 0:{name:"after",fn:e.withCtx(()=>[e.createVNode(d,{appearance:"tertiary","data-testid":"try-sample-api",size:"small",onClick:fe},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(s)("gateway_services.form.buttons.try_sample")),1)]),_:1})]),key:"0"}]),1032,["modelValue","error","error-message","label","label-attributes","placeholder"])])):e.createCommentVNode("",!0)]),_:1})])),e.createVNode(e.Transition,{name:"slide-fade"},{default:e.withCtx(()=>[C.value==="protocol"||j.value?(e.openBlock(),e.createElementBlock("div",He,[e.createVNode(V,{modelValue:t.fields.protocol,"onUpdate:modelValue":r[3]||(r[3]=c=>t.fields.protocol=c),"data-testid":"gateway-service-protocol-select",items:Y,label:e.unref(s)("gateway_services.form.fields.protocol.label"),"label-attributes":{info:e.unref(s)("gateway_services.form.fields.protocol.tooltip"),tooltipAttributes:{maxWidth:"400"}},readonly:t.isReadonly,required:"",width:"100%",onSelected:ne},null,8,["modelValue","label","label-attributes","readonly"]),e.createVNode(g,{modelValue:t.fields.host,"onUpdate:modelValue":r[4]||(r[4]=c=>t.fields.host=c),modelModifiers:{trim:!0},class:"gateway-service-form-margin-top","data-testid":"gateway-service-host-input",error:!!t.formFieldErrors.host,"error-message":H("host"),label:e.unref(s)("gateway_services.form.fields.host.label"),"label-attributes":{info:e.unref(s)("gateway_services.form.fields.host.tooltip"),tooltipAttributes:{maxWidth:"400"}},name:"host",placeholder:e.unref(s)("gateway_services.form.fields.host.placeholder"),required:"",onInput:r[5]||(r[5]=c=>I("host"))},e.createSlots({_:2},[l.hideTrySampleApiButton?void 0:{name:"after",fn:e.withCtx(()=>[e.createVNode(d,{appearance:"tertiary",size:"small",onClick:fe},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(s)("gateway_services.form.buttons.try_sample")),1)]),_:1})]),key:"0"}]),1032,["modelValue","error","error-message","label","label-attributes","placeholder"]),me.value?(e.openBlock(),e.createElementBlock("div",Ze,[e.createVNode(g,{modelValue:t.fields.path,"onUpdate:modelValue":r[6]||(r[6]=c=>t.fields.path=c),modelModifiers:{trim:!0},class:"gateway-service-form-margin-top","data-testid":"gateway-service-path-input",error:!!t.formFieldErrors.path,"error-message":H("path"),label:e.unref(s)("gateway_services.form.fields.path.label"),"label-attributes":{info:e.unref(s)("gateway_services.form.fields.path.tooltip"),tooltipAttributes:{maxWidth:"400"}},name:"path",placeholder:e.unref(s)("gateway_services.form.fields.path.placeholder"),onInput:r[7]||(r[7]=c=>I("path"))},null,8,["modelValue","error","error-message","label","label-attributes","placeholder"])])):e.createCommentVNode("",!0),e.createVNode(g,{modelValue:t.fields.port,"onUpdate:modelValue":[r[8]||(r[8]=c=>t.fields.port=c),r[10]||(r[10]=()=>{t.fields.port=z(t.fields.port+"")})],class:"gateway-service-form-margin-top","data-testid":"gateway-service-port-input",error:!!t.formFieldErrors.port,"error-message":H("port"),label:e.unref(s)("gateway_services.form.fields.port.label"),"label-attributes":{info:e.unref(s)("gateway_services.form.fields.port.tooltip"),tooltipAttributes:{maxWidth:"400"}},name:"port",type:"number",onInput:r[9]||(r[9]=c=>I("port"))},null,8,["modelValue","error","error-message","label","label-attributes"])])):e.createCommentVNode("",!0)]),_:1}),e.createVNode(S,{modelValue:m.value,"onUpdate:modelValue":r[30]||(r[30]=c=>m.value=c),"data-testid":"advanced-fields-collapse","trigger-alignment":"leading","trigger-label":e.unref(s)("gateway_services.form.sections.keys.viewAdvancedFields")},{default:e.withCtx(()=>[e.createVNode(e.Transition,{name:"slide-fade"},{default:e.withCtx(()=>[m.value?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",Je,[e.createElementVNode("div",Qe,[e.createVNode(g,{modelValue:t.fields.retries,"onUpdate:modelValue":[r[11]||(r[11]=c=>t.fields.retries=c),r[12]||(r[12]=()=>{t.fields.retries=z(t.fields.retries+"")})],autocomplete:"off","data-testid":"gateway-service-retries-input",label:e.unref(s)("gateway_services.form.fields.retries.label"),"label-attributes":{info:e.unref(s)("gateway_services.form.fields.retries.tooltip"),tooltipAttributes:{maxWidth:"400"}},name:"retries",readonly:t.isReadonly,type:"number"},null,8,["modelValue","label","label-attributes","readonly"])]),e.createElementVNode("div",Xe,[e.createVNode(g,{modelValue:t.fields.connect_timeout,"onUpdate:modelValue":[r[13]||(r[13]=c=>t.fields.connect_timeout=c),r[14]||(r[14]=()=>{t.fields.connect_timeout=z(t.fields.connect_timeout+"")})],autocomplete:"off","data-testid":"gateway-service-connTimeout-input",label:e.unref(s)("gateway_services.form.fields.connect_timeout.label"),"label-attributes":{info:e.unref(s)("gateway_services.form.fields.connect_timeout.tooltip"),tooltipAttributes:{maxWidth:"400"}},name:"connTimeout",readonly:t.isReadonly,type:"number"},null,8,["modelValue","label","label-attributes","readonly"])]),e.createElementVNode("div",Ye,[e.createVNode(g,{modelValue:t.fields.write_timeout,"onUpdate:modelValue":[r[15]||(r[15]=c=>t.fields.write_timeout=c),r[16]||(r[16]=()=>{t.fields.write_timeout=z(t.fields.write_timeout+"")})],autocomplete:"off","data-testid":"gateway-service-writeTimeout-input",label:e.unref(s)("gateway_services.form.fields.write_timeout.label"),"label-attributes":{info:e.unref(s)("gateway_services.form.fields.write_timeout.tooltip"),tooltipAttributes:{maxWidth:"400"}},name:"writeTimeout",readonly:t.isReadonly,type:"number"},null,8,["modelValue","label","label-attributes","readonly"])]),e.createElementVNode("div",et,[e.createVNode(g,{modelValue:t.fields.read_timeout,"onUpdate:modelValue":[r[17]||(r[17]=c=>t.fields.read_timeout=c),r[18]||(r[18]=()=>{t.fields.read_timeout=z(t.fields.read_timeout+"")})],autocomplete:"off","data-testid":"gateway-service-readTimeout-input",label:e.unref(s)("gateway_services.form.fields.read_timeout.label"),"label-attributes":{info:e.unref(s)("gateway_services.form.fields.read_timeout.tooltip"),tooltipAttributes:{maxWidth:"400"}},name:"readTimeout",readonly:t.isReadonly,type:"number"},null,8,["modelValue","label","label-attributes","readonly"])]),R.value?(e.openBlock(),e.createElementBlock("div",tt,[e.createVNode(g,{modelValue:t.fields.client_certificate,"onUpdate:modelValue":r[19]||(r[19]=c=>t.fields.client_certificate=c),modelModifiers:{trim:!0},autocomplete:"off","data-testid":"gateway-service-clientCert-input",error:!!t.formFieldErrors.client_certificate,label:e.unref(s)("gateway_services.form.fields.client_certificate.label"),"label-attributes":{info:e.unref(s)("gateway_services.form.fields.client_certificate.tooltip"),tooltipAttributes:{maxWidth:"400"}},name:"clientCert",placeholder:e.unref(s)("gateway_services.form.fields.client_certificate.placeholder"),readonly:t.isReadonly,type:"text",onInput:r[20]||(r[20]=c=>ee("client_certificate"))},null,8,["modelValue","error","label","label-attributes","placeholder","readonly"])])):e.createCommentVNode("",!0),R.value&&l.isTlsSansSupported?(e.openBlock(),e.createBlock(Ne,{key:1,modelValue:t.fields.tls_sans.dnsnames,"onUpdate:modelValue":r[21]||(r[21]=c=>t.fields.tls_sans.dnsnames=c),"add-button-text":e.unref(s)("gateway_services.form.fields.tls_sans_dnsnames.add"),class:"gateway-service-form-margin-bottom","data-testid":"gateway-service-tls-sans-dnsnames",error:!!t.formFieldErrors.tls_sans_dnsnames,label:e.unref(s)("gateway_services.form.fields.tls_sans_dnsnames.label"),placeholder:e.unref(s)("gateway_services.form.fields.tls_sans_dnsnames.placeholder"),readonly:t.isReadonly,"test-id-prefix":"tls-sans-dnsnames",tooltip:e.unref(s)("gateway_services.form.fields.tls_sans_dnsnames.tooltip"),onInput:r[22]||(r[22]=c=>ee("tls_sans_dnsnames"))},null,8,["modelValue","add-button-text","error","label","placeholder","readonly","tooltip"])):e.createCommentVNode("",!0),R.value&&l.isTlsSansSupported?(e.openBlock(),e.createBlock(Ne,{key:2,modelValue:t.fields.tls_sans.uris,"onUpdate:modelValue":r[23]||(r[23]=c=>t.fields.tls_sans.uris=c),"add-button-text":e.unref(s)("gateway_services.form.fields.tls_sans_uris.add"),class:"gateway-service-form-margin-bottom","data-testid":"gateway-service-tls-sans-uris",error:!!t.formFieldErrors.tls_sans_uris,label:e.unref(s)("gateway_services.form.fields.tls_sans_uris.label"),placeholder:e.unref(s)("gateway_services.form.fields.tls_sans_uris.placeholder"),readonly:t.isReadonly,"test-id-prefix":"tls-sans-uris",tooltip:e.unref(s)("gateway_services.form.fields.tls_sans_uris.tooltip"),onInput:r[24]||(r[24]=c=>ee("tls_sans_uris"))},null,8,["modelValue","add-button-text","error","label","placeholder","readonly","tooltip"])):e.createCommentVNode("",!0),ke.value?(e.openBlock(),e.createElementBlock("div",ot,[e.createVNode(g,{modelValue:t.fields.ca_certificates,"onUpdate:modelValue":r[25]||(r[25]=c=>t.fields.ca_certificates=c),modelModifiers:{trim:!0},autocomplete:"off","data-testid":"gateway-service-ca-certs-input",error:!!t.formFieldErrors.ca_certificates,label:e.unref(s)("gateway_services.form.fields.ca_certificates.label"),"label-attributes":{tooltipAttributes:{maxWidth:"400"}},placeholder:e.unref(s)("gateway_services.form.fields.ca_certificates.placeholder"),readonly:t.isReadonly,type:"text",onInput:r[26]||(r[26]=c=>ee("ca_certificates"))},{"label-tooltip":e.withCtx(()=>[e.createVNode(e.unref(x),{keypath:"gateway_services.form.fields.ca_certificates.tooltip",scope:"global"},{code1:e.withCtx(()=>[e.createElementVNode("code",null,e.toDisplayString(e.unref(s)("gateway_services.form.fields.ca_certificates.code1")),1)]),code2:e.withCtx(()=>[e.createElementVNode("code",null,e.toDisplayString(e.unref(s)("gateway_services.form.fields.ca_certificates.code2")),1)]),_:1})]),_:1},8,["modelValue","error","label","placeholder","readonly"])])):e.createCommentVNode("",!0),R.value?(e.openBlock(),e.createElementBlock("div",rt,[e.createVNode(L,{modelValue:t.fields.tls_verify_enabled,"onUpdate:modelValue":r[27]||(r[27]=c=>t.fields.tls_verify_enabled=c),"data-testid":"gateway-service-tls-verify-checkbox",description:e.unref(s)("gateway_services.form.fields.tls_verify_enabled.help"),label:e.unref(s)("gateway_services.form.fields.tls_verify_enabled.label"),"label-attributes":{tooltipAttributes:{maxWidth:"400"}}},{tooltip:e.withCtx(()=>[e.createVNode(e.unref(x),{keypath:"gateway_services.form.fields.tls_verify_enabled.tooltip",scope:"global"},{code1:e.withCtx(()=>[e.createElementVNode("code",null,e.toDisplayString(e.unref(s)("gateway_services.form.fields.tls_verify_enabled.code1")),1)]),_:1})]),_:1},8,["modelValue","description","label"]),t.fields.tls_verify_enabled?(e.openBlock(),e.createElementBlock("div",lt,[e.createVNode(h,{modelValue:t.fields.tls_verify_value,"onUpdate:modelValue":r[28]||(r[28]=c=>t.fields.tls_verify_value=c),"data-testid":"gateway-service-tls-verify-true-option",label:e.unref(s)("gateway_services.form.fields.tls_verify_option.true.label"),"selected-value":!0},null,8,["modelValue","label"])])):e.createCommentVNode("",!0),t.fields.tls_verify_enabled?(e.openBlock(),e.createElementBlock("div",st,[e.createVNode(h,{modelValue:t.fields.tls_verify_value,"onUpdate:modelValue":r[29]||(r[29]=c=>t.fields.tls_verify_value=c),"data-testid":"gateway-service-tls-verify-false-option",label:e.unref(s)("gateway_services.form.fields.tls_verify_option.false.label"),"selected-value":!1},null,8,["modelValue","label"])])):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0)]))]),_:1})]),_:1},8,["modelValue","trigger-label"])]),_:1},8,["description","hide-info-header","title"]),e.createVNode(e.unref(y.EntityFormSection),{description:e.unref(s)("gateway_services.form.sections.general.description"),"hide-info-header":l.hideSectionsInfo,title:e.unref(s)("gateway_services.form.sections.general.title")},{default:e.withCtx(()=>[e.createVNode(g,{modelValue:t.fields.name,"onUpdate:modelValue":r[31]||(r[31]=c=>t.fields.name=c),modelModifiers:{trim:!0},autocomplete:"off","data-testid":"gateway-service-name-input",error:X.value,"error-message":re.value,label:e.unref(s)("gateway_services.form.fields.name.label"),"label-attributes":{info:e.unref(s)("gateway_services.form.fields.name.tooltip"),tooltipAttributes:{maxWidth:"400"}},name:"name",placeholder:e.unref(s)("gateway_services.form.fields.name.placeholder"),readonly:t.isReadonly,type:"text",onInput:ue},null,8,["modelValue","error","error-message","label","label-attributes","placeholder","readonly"]),e.createVNode(S,{"data-testid":"tags-collapse","trigger-alignment":"leading","trigger-label":e.unref(s)("gateway_services.form.fields.tags.collapse")},{default:e.withCtx(()=>[e.createElementVNode("div",it,[e.createVNode(g,{modelValue:t.fields.tags,"onUpdate:modelValue":r[32]||(r[32]=c=>t.fields.tags=c),modelModifiers:{trim:!0},autocomplete:"off","data-testid":"gateway-service-tags-input",help:e.unref(s)("gateway_services.form.fields.tags.help"),label:e.unref(s)("gateway_services.form.fields.tags.label"),"label-attributes":{info:e.unref(s)("gateway_services.form.fields.tags.tooltip"),tooltipAttributes:{maxWidth:"400"}},name:"tags",placeholder:e.unref(s)("gateway_services.form.fields.tags.placeholder"),readonly:t.isReadonly,type:"text",onInput:r[33]||(r[33]=c=>D("tags"))},null,8,["modelValue","help","label","label-attributes","placeholder","readonly"])])]),_:1},8,["trigger-label"])]),_:1},8,["description","hide-info-header","title"]),t.errorMessages.length?(e.openBlock(),e.createBlock(i,{key:0,appearance:"danger","data-testid":"form-error"},{default:e.withCtx(()=>[e.createElementVNode("ul",at,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.errorMessages,c=>(e.openBlock(),e.createElementBlock("li",{key:c},e.toDisplayString(c),1))),128))])]),_:1})):e.createCommentVNode("",!0)]),_:3},8,["can-submit","config","edit-id","entity-type","fetch-url","form-fields","is-readonly"])])}}}),[["__scopeId","data-v-db4867fb"]]),{validateHost:ct,validatePort:dt,validateProtocol:ft,validatePath:pt}=q.useUrlValidators(),mt=()=>({validateHost:ct,validatePort:dt,validateProtocol:ft,validatePath:pt});E.GatewayServiceConfigCard=Me,E.GatewayServiceForm=nt,E.GatewayServiceList=Ue,E.useUrlValidator=mt,Object.defineProperty(E,Symbol.toStringTag,{value:"Module"})});
|
|
1
|
+
(function(E,e){typeof exports=="object"&&typeof module<"u"?e(exports,require("vue"),require("vue-router"),require("@kong/icons"),require("@kong-ui-public/i18n"),require("@kong-ui-public/entities-shared")):typeof define=="function"&&define.amd?define(["exports","vue","vue-router","@kong/icons","@kong-ui-public/i18n","@kong-ui-public/entities-shared"],e):(E=typeof globalThis<"u"?globalThis:E||self,e(E["kong-ui-public-entities-gateway-services"]={},E.Vue,E.VueRouter,E.KongIcons,E["kong-ui-public-i18n"],E["kong-ui-public-entities-shared"]))})(this,function(E,e,Ce,M,ve,y){"use strict";const xe={actions:{create:"New gateway service",debugger:"Start debugging",serverless_create:"Add a Service",copy_id:"Copy ID",copy_json:"Copy JSON",edit:"Edit",clear:"Clear",view:"View Details",delete:{title:"Delete a Gateway Service",description:"Deleting this Gateway Service will also remove any associated plugins. This action cannot be reversed.",menu_label:"Delete"}},search:{placeholder:{konnect:"Filter by name",kongManager:"Filter by exact name or ID"}},gateway_services:{title:"Gateway Services",list:{toolbar_actions:{new_gateway_service:"New gateway service"},table_headers:{name:"Name",control_plane:"Control Plane",protocol:"Protocol",host:"Host",port:"Port",path:"Path",enabled:"Enabled",tags:"Tags",id:"ID",created_at:"Created At",updated_at:"Last Modified"},empty_state:{title:"Configure a New Gateway Service",description:"Gateway services are used to proxy traffic.",serverless_title:"Configure your first Gateway Service"}},empty_state_v2:{create:"New gateway service",create_new:"Create new",import_spec:"Import via Open API spec",title:"Configure your first gateway service",group:"Services created in gateways within this group will automatically appear here.",description:"Gateway services represent backend APIs or microservices that receive traffic routed through the gateway.",learn_more:"Learn more"},form:{buttons:{try_sample:"Try sample API"},errors:{host:{empty:"Host cannot be empty",invalid:"Invalid host"},port:{type:"Port must be a number",invalid:"Port must be between 0 and 65535"},path:{prefix:"Path must begin with /",invalid:"Path should not include characters outside of the reserved list of RFC 3986"},protocol:{empty:"Protocol cannot be empty",invalid:"Protocol - value must be one of http, https, grpc, grpcs, tcp, udp, tls, tls_passthrough, ws, wss"},url:{invalid:"The URL must follow a valid format. Example: https://api.kong-air.com/flights"}},sections:{general:{title:"General Information",description:"Provide a name and tags to help identify and manage this service."},keys:{title:"Service endpoint",description:"Define where this service should send requests.",checkedGroupLabel:"Choose how and where to send traffic",urlLabel:"Full URL",checkedGroupAltLabel:"Protocol, host, port and path",url:{label:"Full URL",description:"Define the service using a single, complete API URL for simple setup."},protocol:{label:"Protocol, host, port, and path",description:"Manually specify each component of the API’s URL for advanced configurations."},viewAdvancedFields:"View advanced fields"}},fields:{upstream_url:{label:"Full URL",placeholder:"e.g. https://api.kong-air.com/flights",tooltip_for_konnect:"This is the URL of the API you will manage in Konnect.",tooltip_for_km:"This is the URL of the API you will manage in Kong Gateway."},name:{label:"Name",placeholder:"Enter a unique name",tooltip:"The Service name."},protocol:{label:"Protocol",tooltip:"The protocol used to communicate with the upstream.",options:{http:"http",https:"https",tcp:"tcp",tls:"tls",tls_passthrough:"tls_passthrough",grpc:"grpc",grpcs:"grpcs",ws:"ws",wss:"wss",udp:"udp"}},host:{label:"Host",placeholder:"e.g. api.kong-air.com",tooltip:"The host of the upstream server. Note that the host value is case sensitive."},path:{label:"Path",placeholder:"e.g. /sample",tooltip:"The path to be used in request to the upstream server."},port:{label:"Port",tooltip:"The upstream server port."},retries:{label:"Retries",tooltip:"The number of retries to execute upon failure to proxy."},connect_timeout:{label:"Connection timeout",tooltip:"The timeout in milliseconds for establishing a connection to the upstream server."},write_timeout:{label:"Write timeout",tooltip:"The timeout in milliseconds between two successive write operations for transmitting a request to the upstream server."},read_timeout:{label:"Read timeout",tooltip:"The timeout in milliseconds between two successive read operations for transmitting a request to the upstream server."},client_certificate:{label:"Client certificate",placeholder:"Enter a Certificate ID",tooltip:"Certificate to be used as client certificate while TLS handshaking to the upstream server."},tls_sans_dnsnames:{label:"TLS SANs - DNS names",placeholder:"Enter a DNS name",tooltip:"Additional DNS names that can be matched on the upstream server's TLS certificate.",add:"Add DNS name"},tls_sans_uris:{label:"TLS SANs - URIs",placeholder:"Enter a URI",tooltip:"Additional URIs that can be matched on the upstream server's TLS certificate.",add:"Add URI"},ca_certificates:{label:"CA certificates",placeholder:"Enter a comma separated list of CA Certificate IDs",tooltip:"Array of {code1} object UUIDs that are used to build the trust store while verifying upstream server's TLS certificate. If set to {code2} when Nginx default is respected. If default CA list in Nginx are not specified and TLS verification is enabled, then handshake with upstream server will always fail (because no CA are trusted).",code1:"CA Certificate",code2:"null"},tls_verify_enabled:{label:"TLS verify",help:"If unchecked, use default system setting",tooltip:"Whether to enable verification of upstream server TLS certificate. If set to {code1}, then the Nginx default is respected.",code1:"null"},tls_verify_option:{unset:{display:"Use default system setting"},true:{label:"True",display:"On"},false:{label:"False",display:"Off"}},tags:{label:"Tags",tooltip:"An optional set of strings associated with the Service for grouping and filtering.",placeholder:"Enter a list of tags separated by comma",help:"e.g. tag1, tag2, tag3",collapse:"Add tags"},enabled:{label:"Enabled",tooltip:"Whether the Service is active. If set to {false}, the proxy behavior will be as if any routes attached to it do not exist (404). Default: {true}.",false:"false",true:"true"}}}},errors:{general:"Gateway Services could not be retrieved",delete:"The gateway service could not be deleted at this time.",copy:"Failed to copy to clipboard",urlErrorMessage:"Error: invalid URL"},copy:{success:"Copied {val} to clipboard",success_brief:"Successfully copied to clipboard"},glossary:{gateway_services:"gateway services"}};function Ee(){const l=ve.createI18n("en-us",xe);return{i18n:l,i18nT:ve.i18nTComponent(l)}}function Se(){return{getPortFromProtocol:(T,p)=>{const n=[80,443],a=Number(p);if((a||a===0)&&!n.includes(a))return a;switch(T){case"grpcs":case"tls":case"https":case"wss":return 443;case"grpc":case"tcp":case"http":case"ws":default:return 80}}}}const Be=/^[a-zA-Z0-9]([-a-zA-Z0-9]*[a-zA-Z0-9])?(\.[a-zA-Z0-9]([-a-zA-Z0-9]*[a-zA-Z0-9])?)*(\.)?$/,Ie=/^(\d+)\.(\d+)\.(\d+)\.(\d+)$/,Te=l=>/^[0-9A-Fa-f:.]+$/.test(l)&&l.includes(":");function Pe(){const{i18n:{t:l}}=q.useI18n();return{validateHost:m=>{if(!m||m.trim()==="")return l("gateway_services.form.errors.host.empty");try{if(Te(m))return new URL("/",`https://[${m}]`),"";if(Be.test(m)||Ie.test(m))return new URL("/",`https://${m}`),""}catch{}return l("gateway_services.form.errors.host.invalid")},validateProtocol:(m,N)=>!m||m.trim()===""?l("gateway_services.form.errors.protocol.empty"):(m=m.slice(0,-1),N.find(s=>{if(s.value===m)return s})===void 0?l("gateway_services.form.errors.protocol.invalid"):""),validatePath:m=>!m||m===""?"":m.startsWith("/")?/[^A-Za-z0-9\-._~:/?#[\]@!$&'()*+,;=%]/.test(m)?l("gateway_services.form.errors.path.invalid"):"":l("gateway_services.form.errors.path.prefix"),validatePort:m=>{if(m==null||m==="")return"";const N=typeof m=="string"?parseInt(m,10):m;return isNaN(N)?l("gateway_services.form.errors.port.type"):N<0||N>65535?l("gateway_services.form.errors.port.invalid"):""}}}const q={useI18n:Ee,usePortFromProtocol:Se,useUrlValidators:Pe},ge="/v2/control-planes/{controlPlaneId}/core-entities/{workspace}",ye="/{workspace}",ie={list:{konnect:{all:`${ge}/services`},kongManager:{all:`${ye}/services`}},form:{konnect:{create:`${ge}/services`,edit:`${ge}/services/{id}`},kongManager:{create:`${ye}/services`,edit:`${ye}/services/{id}`}}},Fe={class:"kong-ui-entities-gateway-services-list"},$e={class:"button-row"},De={key:1},Ae=e.defineComponent({__name:"GatewayServiceList",props:{config:{type:Object,required:!0,validator:l=>!(!l||!["konnect","kongManager"].includes(l==null?void 0:l.app)||!l.createRoute||!l.getViewRoute||!l.getEditRoute||l.app==="kongManager"&&!l.isExactMatch&&!l.filterSchema)},cacheIdentifier:{type:String,default:""},canCreate:{type:Function,required:!1,default:async()=>!0},canDelete:{type:Function,required:!1,default:async()=>!0},canEdit:{type:Function,required:!1,default:async()=>!0},canRetrieve:{type:Function,required:!1,default:async()=>!0},canDebug:{type:Function,required:!1,default:async()=>!1},useActionOutside:{type:Boolean,default:!1},isServerless:{type:Boolean,default:!1},canImportSpecs:{type:Boolean,default:!1}},emits:["error","click:learn-more","copy:success","copy:error","delete:success","toggle:success","click:import"],setup(l,{emit:T}){var se;const p=T,n=l,{i18n:{t:a,formatUnixTimeStamp:m}}=q.useI18n(),N=Ce.useRouter(),{axiosInstance:x}=y.useAxios((se=n.config)==null?void 0:se.axiosRequestConfig),{hasRecords:s,handleStateChange:v}=y.useTableState(()=>U.value),k=e.computed(()=>s.value&&n.config.app==="konnect"),G=e.computed(()=>n.config.app!=="kongManager"||!!n.config.disableSorting),J={name:{label:a("gateway_services.list.table_headers.name"),searchable:!0,sortable:!0,hidable:!1},...n.config.showControlPlaneColumn?{control_plane:{label:a("gateway_services.list.table_headers.control_plane")}}:{},protocol:{label:a("gateway_services.list.table_headers.protocol"),searchable:!0,sortable:!0},host:{label:a("gateway_services.list.table_headers.host"),searchable:!0,sortable:!0},port:{label:a("gateway_services.list.table_headers.port"),searchable:!0,sortable:!0},path:{label:a("gateway_services.list.table_headers.path"),searchable:!0,sortable:!0},enabled:{label:a("gateway_services.list.table_headers.enabled"),searchable:!0,sortable:!0},tags:{label:a("gateway_services.list.table_headers.tags"),sortable:!1},updated_at:{label:a("gateway_services.list.table_headers.updated_at"),sortable:!0},created_at:{label:a("gateway_services.list.table_headers.created_at"),sortable:!0}},F={columnVisibility:{created_at:!1}},W=J,Q=e.computed(()=>{var u,_;let f=`${n.config.apiBaseUrl}${ie.list[n.config.app].all}`;return n.config.app==="konnect"&&(f=f.replace(/{controlPlaneId}/gi,((u=n.config)==null?void 0:u.controlPlaneId)||"")),f.replace(/\/{workspace}/gi,(_=n.config)!=null&&_.workspace?`/${n.config.workspace}`:"")}),he=e.computed(()=>n.config.apiBaseUrl.startsWith("/")?new URL(`${window.location.origin}${Q.value}`):new URL(Q.value)),U=e.ref(""),O=e.computed(()=>{const f=n.config.app==="konnect"||n.config.isExactMatch;if(f)return{isExactMatch:f,placeholder:a(`search.placeholder.${n.config.app}`)};const{name:u,enabled:_,protocol:w,host:A,port:$,path:o}=J;return{isExactMatch:f,fields:{name:u,enabled:_,protocol:w,host:A,port:$,path:o},schema:n.config.filterSchema}}),{fetcher:we,fetcherState:j,fetcherCacheKey:C}=y.useFetcher(e.computed(()=>({...n.config,cacheIdentifier:n.cacheIdentifier})),Q),oe=()=>{U.value=""},re=()=>{C.value++},X=e.ref(null),t=e.computed(()=>({ctaPath:n.config.createRoute,ctaText:K.value?n.isServerless?a("actions.serverless_create"):a("actions.create"):void 0,message:`${a("gateway_services.list.empty_state.description")}${n.config.additionMessageForEmptyState?` ${n.config.additionMessageForEmptyState}`:""}`,title:K.value?n.isServerless?a("gateway_services.list.empty_state.serverless_title"):a("gateway_services.list.empty_state.title"):a("gateway_services.title")})),b=e.ref(!1),B=e.ref(null),Y=e.computed(()=>{const f={action:"disable",id:"",name:""};if(B.value){const{enabled:u,id:_,name:w}=B.value;f.action=u?"disable":"enable",f.id=_,f.name=w||_}return f}),ae=f=>{b.value=!0,B.value=f},ne=()=>{b.value=!1,B.value=null},z=async()=>{var w,A;if(!await((w=n.canEdit)==null?void 0:w.call(n,B.value))||!B.value)return;const u=`${he.value.href}/${B.value.id}`,_=!B.value.enabled;try{const $=(A=n.config)==null?void 0:A.app;let o;U.value&&$==="konnect"&&(o=await x.get(u));const{data:r}=$==="konnect"?await x.put(u,{...(o==null?void 0:o.data)||B.value,enabled:_}):await x.patch(u,{...B.value,enabled:_});p("toggle:success",r),B.value.enabled=_}catch($){p("error",$)}},ce=f=>{n.config.getControlPlaneRoute&&N.push(n.config.getControlPlaneRoute(f))},de=async(f,u)=>{const _=f.id;if(!await u(_)){p("copy:error",{entity:f,field:"id",message:a("errors.copy")});return}p("copy:success",{entity:f,field:"id",message:a("copy.success",{val:_})})},fe=async(f,u)=>{const _=JSON.stringify(f);if(!await u(_)){p("copy:error",{entity:f,message:a("errors.copy")});return}p("copy:success",{entity:f,message:a("copy.success_brief")})},pe=async f=>{var _;await((_=n.canRetrieve)==null?void 0:_.call(n,f))&&N.push(n.config.getViewRoute(f.id))},ee=f=>({label:a("actions.view"),to:n.config.getViewRoute(f)}),be=f=>({label:a("actions.edit"),to:n.config.getEditRoute(f)}),H=f=>{if(n.config.getDebugRoute)return{label:a("actions.debugger"),to:n.config.getDebugRoute(f)}},I=e.ref(void 0),D=e.ref(!1),Z=e.ref(!1),le=e.ref(""),Ve=y.useDeleteUrlBuilder(n.config,Q.value),me=f=>{I.value=f,D.value=!0,le.value=""},R=()=>{D.value=!1,I.value=void 0},ke=async()=>{var f,u,_;if((f=I.value)!=null&&f.id){Z.value=!0;try{await x.delete(Ve(I.value.id)),p("delete:success",I.value),R(),C.value++}catch(w){le.value=((_=(u=w.response)==null?void 0:u.data)==null?void 0:_.message)||w.message||a("errors.delete"),p("error",w)}finally{Z.value=!1}}},ue=()=>{N.push(n.config.createRoute)};e.watch(j,f=>{var u,_,w;if(f.status===y.FetcherStatus.Error){X.value={title:a("errors.general")},(w=(_=(u=f.error)==null?void 0:u.response)==null?void 0:_.data)!=null&&w.message&&(X.value.message=f.error.response.data.message),p("error",f.error);return}X.value=null});const K=e.ref(!1);return e.onBeforeMount(async()=>{K.value=await n.canCreate()}),(f,u)=>{const _=e.resolveComponent("KButton"),w=e.resolveComponent("KDropdownItem"),A=e.resolveComponent("KDropdown"),$=e.resolveComponent("KEmptyState"),o=e.resolveComponent("KBadge"),r=e.resolveComponent("KInputSwitch"),h=e.resolveComponent("KClipboardProvider");return e.openBlock(),e.createElementBlock("div",Fe,[e.createVNode(e.unref(y.EntityBaseTable),{"cache-identifier":l.cacheIdentifier,"default-table-preferences":F,"disable-sorting":G.value,"empty-state-options":t.value,"enable-entity-actions":"","error-message":X.value,fetcher:e.unref(we),"fetcher-cache-key":e.unref(C),"pagination-type":"offset","preferences-storage-key":"kong-ui-entities-gateway-services-list",query:U.value,"table-headers":e.unref(W),onClearSearchInput:oe,"onClick:row":u[5]||(u[5]=d=>pe(d)),onSort:re,onState:e.unref(v)},e.createSlots({"toolbar-filter":e.withCtx(()=>[e.createVNode(e.unref(y.EntityFilter),{modelValue:U.value,"onUpdate:modelValue":u[0]||(u[0]=d=>U.value=d),config:O.value},null,8,["modelValue","config"])]),"toolbar-button":e.withCtx(()=>[(e.openBlock(),e.createBlock(e.Teleport,{disabled:!l.useActionOutside,to:"#kong-ui-app-page-header-action-button"},[e.createElementVNode("div",$e,[k.value?(e.openBlock(),e.createBlock(_,{key:0,appearance:"secondary",class:"open-learning-hub","data-testid":"gateway-services-learn-more-button",icon:"",onClick:u[1]||(u[1]=d=>f.$emit("click:learn-more"))},{default:e.withCtx(()=>[e.createVNode(e.unref(M.BookIcon),{decorative:""})]),_:1})):e.createCommentVNode("",!0),e.createVNode(e.unref(y.PermissionsWrapper),{"auth-function":l.canCreate},{default:e.withCtx(()=>[e.createVNode(_,{appearance:"primary","data-testid":"toolbar-add-gateway-service",size:l.useActionOutside?"medium":"large",to:l.config.createRoute},{default:e.withCtx(()=>[e.createVNode(e.unref(M.AddIcon)),e.createTextVNode(" "+e.toDisplayString(e.unref(a)("gateway_services.list.toolbar_actions.new_gateway_service")),1)]),_:1},8,["size","to"])]),_:1},8,["auth-function"])])],8,["disabled"]))]),name:e.withCtx(({rowValue:d})=>[e.createElementVNode("b",null,e.toDisplayString(d??"-"),1)]),control_plane:e.withCtx(({row:d})=>{var g;return[(g=d.x_meta)!=null&&g.cluster_id?(e.openBlock(),e.createBlock(o,{key:0,tooltip:d.x_meta.cluster_id,"truncation-tooltip":"",onClick:e.withModifiers(V=>ce(d.x_meta.cluster_id),["stop"])},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(d.x_meta.cluster_id),1)]),_:2},1032,["tooltip","onClick"])):(e.openBlock(),e.createElementBlock("b",De,"-"))]}),enabled:e.withCtx(({row:d})=>[e.createVNode(e.unref(y.PermissionsWrapper),{"auth-function":()=>l.canEdit(d),"force-show":""},{default:e.withCtx(({isAllowed:g})=>[e.createElementVNode("div",{onClick:u[4]||(u[4]=e.withModifiers(()=>{},["stop"]))},[e.createVNode(r,{modelValue:d.enabled,"onUpdate:modelValue":V=>d.enabled=V,"data-testid":`row-${d.id}-toggle-input`,disabled:!g,onClick:e.withModifiers(V=>ae(d),["prevent"])},null,8,["modelValue","onUpdate:modelValue","data-testid","disabled","onClick"])])]),_:2},1032,["auth-function"])]),tags:e.withCtx(({rowValue:d})=>[e.createVNode(e.unref(y.TableTags),{tags:d},null,8,["tags"])]),created_at:e.withCtx(({rowValue:d})=>[e.createTextVNode(e.toDisplayString(e.unref(m)(d)),1)]),updated_at:e.withCtx(({row:d,rowValue:g})=>[e.createTextVNode(e.toDisplayString(e.unref(m)(g??d.created_at)),1)]),actions:e.withCtx(({row:d})=>[e.createVNode(h,null,{default:e.withCtx(({copyToClipboard:g})=>[e.createVNode(w,{"data-testid":"action-entity-copy-id",onClick:V=>de(d,g)},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(a)("actions.copy_id")),1)]),_:1},8,["onClick"])]),_:2},1024),e.createVNode(h,null,{default:e.withCtx(({copyToClipboard:g})=>[e.createVNode(w,{"data-testid":"action-entity-copy-json",onClick:V=>fe(d,g)},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(a)("actions.copy_json")),1)]),_:1},8,["onClick"])]),_:2},1024),e.createVNode(e.unref(y.PermissionsWrapper),{"auth-function":()=>l.canRetrieve(d)},{default:e.withCtx(()=>[e.createVNode(w,{"data-testid":"action-entity-view","has-divider":"",item:ee(d.id)},null,8,["item"])]),_:2},1032,["auth-function"]),e.createVNode(e.unref(y.PermissionsWrapper),{"auth-function":()=>l.canDebug(d)},{default:e.withCtx(()=>[l.config.getDebugRoute?(e.openBlock(),e.createBlock(w,{key:0,"data-testid":"action-entity-debug",item:H(d.id)},null,8,["item"])):e.createCommentVNode("",!0)]),_:2},1032,["auth-function"]),e.createVNode(e.unref(y.PermissionsWrapper),{"auth-function":()=>l.canEdit(d)},{default:e.withCtx(()=>[e.createVNode(w,{"data-testid":"action-entity-edit",item:be(d.id)},null,8,["item"])]),_:2},1032,["auth-function"]),e.createVNode(e.unref(y.PermissionsWrapper),{"auth-function":()=>l.canDelete(d)},{default:e.withCtx(()=>[e.createVNode(w,{danger:"","data-testid":"action-entity-delete","has-divider":"",onClick:g=>me(d)},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(a)("actions.delete.menu_label")),1)]),_:1},8,["onClick"])]),_:2},1032,["auth-function"])]),_:2},[!U.value&&l.config.app==="konnect"?{name:"empty-state",fn:e.withCtx(()=>{var d;return[e.createVNode($,{"data-testid":"gateway-services-entity-empty-state","icon-background":"",message:e.unref(a)("gateway_services.empty_state_v2.description"),title:e.unref(a)("gateway_services.empty_state_v2.title")},e.createSlots({icon:e.withCtx(()=>[e.createVNode(e.unref(M.ServicesIcon),{decorative:""})]),action:e.withCtx(()=>[K.value?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[l.canImportSpecs?(e.openBlock(),e.createBlock(A,{key:0,"data-testid":"entity-create-dropdown","show-caret":"","trigger-text":e.unref(a)("gateway_services.empty_state_v2.create"),width:"220"},{items:e.withCtx(()=>[e.createVNode(w,{"data-testid":"entity-create-dropdown-item",onClick:ue},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(a)("gateway_services.empty_state_v2.create_new")),1)]),_:1}),e.createVNode(w,{"data-testid":"entity-import-dropdown-item",onClick:u[2]||(u[2]=g=>f.$emit("click:import"))},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(a)("gateway_services.empty_state_v2.import_spec")),1)]),_:1})]),_:1},8,["trigger-text"])):(e.openBlock(),e.createBlock(_,{key:1,"data-testid":"entity-create-button",onClick:ue},{default:e.withCtx(()=>[e.createVNode(e.unref(M.AddIcon),{decorative:""}),e.createTextVNode(" "+e.toDisplayString(e.unref(a)("gateway_services.empty_state_v2.create")),1)]),_:1}))],64)):e.createCommentVNode("",!0),e.createVNode(_,{appearance:"secondary","data-testid":"entity-learn-more-button",onClick:u[3]||(u[3]=g=>f.$emit("click:learn-more"))},{default:e.withCtx(()=>[e.createVNode(e.unref(M.BookIcon),{decorative:""}),e.createTextVNode(" "+e.toDisplayString(e.unref(a)("gateway_services.empty_state_v2.learn_more")),1)]),_:1})]),_:2},[(d=l.config)!=null&&d.isControlPlaneGroup?{name:"default",fn:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(a)("gateway_services.empty_state_v2.group")),1)]),key:"0"}:void 0]),1032,["message","title"])]}),key:"0"}:void 0]),1032,["cache-identifier","disable-sorting","empty-state-options","error-message","fetcher","fetcher-cache-key","query","table-headers","onState"]),e.createVNode(e.unref(y.EntityToggleModal),{action:Y.value.action,"entity-id":Y.value.id,"entity-name":Y.value.name,"entity-type":e.unref(a)("glossary.gateway_services"),"on-confirm":z,visible:b.value,onCancel:ne,onProceed:ne},null,8,["action","entity-id","entity-name","entity-type","visible"]),e.createVNode(e.unref(y.EntityDeleteModal),{"action-pending":Z.value,description:e.unref(a)("actions.delete.description"),"entity-name":I.value&&(I.value.name||I.value.id),"entity-type":e.unref(y.EntityTypes).GatewayService,error:le.value,title:e.unref(a)("actions.delete.title"),visible:D.value,onCancel:R,onProceed:ke},null,8,["action-pending","description","entity-name","entity-type","error","title","visible"])])}}}),_e=(l,T)=>{const p=l.__vccOpts||l;for(const[n,a]of T)p[n]=a;return p},Ue=_e(Ae,[["__scopeId","data-v-dbcbc21c"]]),Re={class:"kong-ui-gateway-service-entity-config-card"},Me=e.defineComponent({__name:"GatewayServiceConfigCard",props:{config:{type:Object,required:!0,validator:l=>!(!l||!["konnect","kongManager"].includes(l==null?void 0:l.app)||l.app==="konnect"&&!l.controlPlaneId||l.app==="kongManager"&&typeof l.workspace!="string"||!l.entityId)},configCardDoc:{type:String,default:"",required:!1},hideTitle:{type:Boolean,default:!1}},emits:["loading","fetch:error","fetch:success"],setup(l){const T=l,{i18n:{t:p},i18nT:n}=q.useI18n(),a=e.computed(()=>ie.form[T.config.app].edit),{getPropValue:m}=y.useHelpers(),N=(s,v)=>m(s,v)===!0?p("gateway_services.form.fields.tls_verify_option.true.display"):p("gateway_services.form.fields.tls_verify_option.false.display"),x=e.ref({id:{},name:{tooltip:p("gateway_services.form.fields.name.tooltip")},enabled:{},updated_at:{},created_at:{},protocol:{section:y.ConfigurationSchemaSection.Basic,tooltip:p("gateway_services.form.fields.protocol.tooltip")},host:{section:y.ConfigurationSchemaSection.Basic,tooltip:p("gateway_services.form.fields.host.tooltip")},path:{section:y.ConfigurationSchemaSection.Basic,tooltip:p("gateway_services.form.fields.path.tooltip")},port:{section:y.ConfigurationSchemaSection.Basic,tooltip:p("gateway_services.form.fields.port.tooltip")},tags:{tooltip:p("gateway_services.form.fields.tags.tooltip")},retries:{order:1,tooltip:p("gateway_services.form.fields.retries.tooltip")},connect_timeout:{order:2,tooltip:p("gateway_services.form.fields.connect_timeout.tooltip")},write_timeout:{order:3,tooltip:p("gateway_services.form.fields.write_timeout.tooltip")},read_timeout:{order:4,tooltip:p("gateway_services.form.fields.read_timeout.tooltip")},client_certificate:{order:5,tooltip:p("gateway_services.form.fields.client_certificate.tooltip")},ca_certificates:{type:y.ConfigurationSchemaType.BadgeTag,label:p("gateway_services.form.fields.ca_certificates.label"),order:6},tls_verify:{label:p("gateway_services.form.fields.tls_verify_enabled.label")},tls_verify_depth:{hidden:!0}});return(s,v)=>(e.openBlock(),e.createElementBlock("div",Re,[e.createVNode(e.unref(y.EntityBaseConfigCard),{config:l.config,"config-card-doc":l.configCardDoc,"config-schema":x.value,"entity-type":e.unref(y.SupportedEntityType).GatewayService,"fetch-url":a.value,"hide-title":l.hideTitle,"onFetch:error":v[0]||(v[0]=k=>s.$emit("fetch:error",k)),"onFetch:success":v[1]||(v[1]=k=>s.$emit("fetch:success",k)),onLoading:v[2]||(v[2]=k=>s.$emit("loading",k))},{"enabled-label-tooltip":e.withCtx(()=>[e.createVNode(e.unref(n),{keypath:"gateway_services.form.fields.enabled.tooltip",scope:"global"},{false:e.withCtx(()=>[e.createElementVNode("code",null,e.toDisplayString(e.unref(p)("gateway_services.form.fields.enabled.false")),1)]),true:e.withCtx(()=>[e.createElementVNode("code",null,e.toDisplayString(e.unref(p)("gateway_services.form.fields.enabled.true")),1)]),_:1})]),"ca_certificates-label-tooltip":e.withCtx(()=>[e.createVNode(e.unref(n),{keypath:"gateway_services.form.fields.ca_certificates.tooltip",scope:"global"},{code1:e.withCtx(()=>[e.createElementVNode("code",null,e.toDisplayString(e.unref(p)("gateway_services.form.fields.ca_certificates.code1")),1)]),code2:e.withCtx(()=>[e.createElementVNode("code",null,e.toDisplayString(e.unref(p)("gateway_services.form.fields.ca_certificates.code2")),1)]),_:1})]),"tls_verify-label-tooltip":e.withCtx(()=>[e.createVNode(e.unref(n),{keypath:"gateway_services.form.fields.tls_verify_enabled.tooltip",scope:"global"},{code1:e.withCtx(()=>[e.createElementVNode("code",null,e.toDisplayString(e.unref(p)("gateway_services.form.fields.tls_verify_enabled.code1")),1)]),_:1})]),tls_verify:e.withCtx(k=>[e.createTextVNode(e.toDisplayString(typeof e.unref(m)("rowValue",k)=="boolean"?N("rowValue",k):e.unref(p)("gateway_services.form.fields.tls_verify_option.unset.display")),1)]),client_certificate:e.withCtx(k=>[e.createTextVNode(e.toDisplayString(e.unref(m)("rowValue",k)?e.unref(m)("rowValue",k).id:"–"),1)]),_:1},8,["config","config-card-doc","config-schema","entity-type","fetch-url","hide-title"])]))}}),P={name:"Kong-Air-Flights-API",protocol:"https",path:"/flights",host:"api.kong-air.com",port:443},Ke="#d60027",Le={class:"tls-sans-field-container"},qe={key:0,class:"tls-sans-field-controls"},Ge={key:0},Ne=_e(e.defineComponent({__name:"GatewayServiceFormTlsSansField",props:{modelValue:{},label:{},tooltip:{},placeholder:{},addButtonText:{},testIdPrefix:{},error:{type:Boolean},readonly:{type:Boolean}},emits:["update:modelValue","input"],setup(l,{emit:T}){const p=l,n=T,a=()=>{n("update:modelValue",[...p.modelValue,""])},m=x=>{const s=[...p.modelValue];s.splice(x,1),n("update:modelValue",s)},N=(x,s)=>{const v=[...p.modelValue];v[x]=s,n("update:modelValue",v),n("input")};return(x,s)=>{const v=e.resolveComponent("KLabel"),k=e.resolveComponent("KInput"),G=e.resolveComponent("KButton");return e.openBlock(),e.createElementBlock("div",Le,[e.createVNode(v,{info:l.tooltip},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(l.label),1)]),_:1},8,["info"]),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(l.modelValue,(J,F)=>(e.openBlock(),e.createElementBlock("div",{key:F,class:"tls-sans-field-input"},[e.createVNode(k,{autocomplete:"off","data-testid":`${l.testIdPrefix}-input-${F}`,error:l.error,"model-value":l.modelValue[F],placeholder:l.placeholder,readonly:l.readonly,type:"text","onUpdate:modelValue":W=>N(F,W.trim())},null,8,["data-testid","error","model-value","placeholder","readonly","onUpdate:modelValue"]),l.readonly?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",qe,[e.createVNode(G,{appearance:"tertiary","data-testid":`remove-${l.testIdPrefix}`,icon:"",onClick:W=>m(F)},{default:e.withCtx(()=>[e.createVNode(e.unref(M.TrashIcon),{color:e.unref(Ke)},null,8,["color"])]),_:1},8,["data-testid","onClick"]),e.createVNode(G,{appearance:"tertiary","data-testid":`add-${l.testIdPrefix}`,disabled:F!==l.modelValue.length-1,icon:"",onClick:a},{default:e.withCtx(()=>[e.createVNode(e.unref(M.AddIcon))]),_:1},8,["data-testid","disabled"])]))]))),128)),l.modelValue.length===0&&!l.readonly?(e.openBlock(),e.createElementBlock("div",Ge,[e.createVNode(G,{"data-testid":`add-${l.testIdPrefix}`,onClick:a},{default:e.withCtx(()=>[e.createVNode(e.unref(M.AddIcon)),e.createTextVNode(" "+e.toDisplayString(l.addButtonText),1)]),_:1},8,["data-testid"])])):e.createCommentVNode("",!0)])}}}),[["__scopeId","data-v-9b2cc5e4"]]),We={class:"kong-ui-entities-gateway-service-form"},Oe={key:0,class:"gateway-service-form-general-info"},je={class:"gateway-service-form-group-selection-wrapper"},ze={key:0,class:"gateway-service-form-group-fields"},He={key:0,class:"gateway-service-form-group-fields"},Ze={key:0},Je={key:0,class:"gateway-service-form-advanced-fields"},Qe={class:"gateway-service-form-margin-bottom"},Xe={class:"gateway-service-form-margin-bottom"},Ye={class:"gateway-service-form-margin-bottom"},et={class:"gateway-service-form-margin-bottom"},tt={key:0,class:"gateway-service-form-margin-bottom"},ot={key:3,class:"gateway-service-form-margin-bottom"},rt={key:4,class:"gateway-service-form-margin-bottom"},lt={key:0,class:"checkbox-aligned-radio"},st={key:1,class:"checkbox-aligned-radio"},it={class:"gateway-service-form-tags"},at={class:"form-error-list"},nt=_e(e.defineComponent({__name:"GatewayServiceForm",props:{config:{type:Object,required:!0,validator:l=>!(!l||!["konnect","kongManager"].includes(l==null?void 0:l.app)||l.app==="konnect"&&!l.controlPlaneId||l.app==="kongManager"&&typeof l.workspace!="string"||!l.cancelRoute)},gatewayServiceId:{type:String,required:!1,default:""},hideSectionsInfo:{type:Boolean,required:!1,default:!1},hideTrySampleApiButton:{type:Boolean,required:!1,default:!1},isTlsSansSupported:{type:Boolean,required:!1,default:!0}},emits:["update","error","url-valid:success","url-valid:error","loading","model-updated","try-sample-api"],setup(l,{expose:T,emit:p}){var $;const n=p,a=l,m=e.ref(!0),N=Ce.useRouter(),{i18nT:x,i18n:{t:s}}=q.useI18n(),{getErrorFieldsFromError:v}=y.useErrors(),{axiosInstance:k}=y.useAxios(($=a.config)==null?void 0:$.axiosRequestConfig),G=y.useValidators(),{validateHost:J,validatePath:F,validatePort:W,validateProtocol:Q}=q.useUrlValidators(),{objectsAreEqual:he}=y.useHelpers(),U=e.computed(()=>ie.form[a.config.app].edit),O=e.computed(()=>a.gatewayServiceId?y.EntityBaseFormType.Edit:y.EntityBaseFormType.Create),we=e.ref(!1),j=e.computed(()=>!!a.gatewayServiceId),C=e.ref(j.value?"protocol":"url"),oe=q.usePortFromProtocol(),re=e.ref(""),X=e.computed(()=>!!re.value||!!H("name")),t=e.reactive({fields:{name:"",protocol:"http",host:"",path:"",port:80,url:"",retries:5,connect_timeout:6e4,write_timeout:6e4,read_timeout:6e4,client_certificate:"",tls_sans:{dnsnames:[""],uris:[""]},ca_certificates:"",tls_verify_enabled:!1,tls_verify_value:!1,tags:"",enabled:!0},isReadonly:!1,errorMessages:[],formFieldErrors:{host:"",port:"",path:"",name:"",url:"",tags:"",retries:"",connect_timeout:"",write_timeout:"",read_timeout:"",client_certificate:"",tls_sans_dnsnames:"",tls_sans_uris:"",ca_certificates:"",tls_verify_enabled:"",tls_verify_value:""}}),b=e.reactive({name:"",protocol:"http",host:"",path:"",port:80,url:"",retries:5,connect_timeout:6e4,write_timeout:6e4,read_timeout:6e4,client_certificate:"",tls_sans:{dnsnames:[""],uris:[""]},ca_certificates:"",tls_verify_enabled:!1,tls_verify_value:!1,tags:"",enabled:!0}),B=a.config.app==="konnect"||y.useGatewayFeatureSupported({gatewayInfo:a.config.gatewayInfo,supportedRange:{enterprise:["3.0"]}}),Y=[{label:s("gateway_services.form.fields.protocol.options.http"),value:"http",group:"http"},{label:s("gateway_services.form.fields.protocol.options.https"),value:"https",group:"http"},{label:s("gateway_services.form.fields.protocol.options.tcp"),value:"tcp",group:"tcp"},{label:s("gateway_services.form.fields.protocol.options.tls"),value:"tls",group:"tcp"},{label:s("gateway_services.form.fields.protocol.options.tls_passthrough"),value:"tls_passthrough",group:"tcp"},{label:s("gateway_services.form.fields.protocol.options.grpc"),value:"grpc",group:"grpc"},{label:s("gateway_services.form.fields.protocol.options.grpcs"),value:"grpcs",group:"grpc"},...B?[{label:s("gateway_services.form.fields.protocol.options.ws"),value:"ws",group:"websocket"},{label:s("gateway_services.form.fields.protocol.options.wss"),value:"wss",group:"websocket"}]:[],{label:s("gateway_services.form.fields.protocol.options.udp"),value:"udp",group:"udp"}],ae={url:"url",protocol:"protocol"},ne=o=>{t.fields.protocol=o.value,t.fields.port=oe.getPortFromProtocol(t.fields.protocol,String(t.fields.port))},z=o=>o?parseFloat(o):0,ce=()=>{t.fields.host=b.host,t.fields.path=b.path,t.fields.port=b.port,t.fields.protocol=b.protocol,t.fields.url=b.url,t.fields.retries=b.retries,t.fields.connect_timeout=b.connect_timeout,t.fields.write_timeout=b.write_timeout,t.fields.read_timeout=b.read_timeout,t.fields.client_certificate=b.client_certificate,t.fields.tls_sans={dnsnames:[...b.tls_sans.dnsnames],uris:[...b.tls_sans.uris]},t.fields.ca_certificates=b.ca_certificates,t.fields.tls_verify_enabled=b.tls_verify_enabled,t.fields.tls_verify_value=b.tls_verify_value,t.fields.enabled=b.enabled},de=()=>{m.value=!0,D(),t.errorMessages=[],ce()},fe=()=>{switch(ce(),t.fields.name=`${P.name}-${new Date().toISOString().replace(/\D/g,"").slice(0,17)}`,C.value){case"url":t.fields.url=`${P.protocol}://${P.host}${P.path}`;break;case"protocol":t.fields.host=P.host,t.fields.path=P.path,t.fields.protocol=P.protocol,t.fields.port=P.port;break;default:t.fields.url=`${P.protocol}://${P.host}${P.path}`}},pe=()=>{if(D(),t.fields.url.length)try{const o=new URL(t.fields.url),r=Q(o.protocol,Y);if(r)throw new Error(r);t.fields.protocol=o.protocol.slice(0,-1);const h=J(o.hostname);if(h)throw new Error(h);t.fields.host=o.hostname;const d=F(o.pathname);if(d)throw new Error(d);t.fields.path=o.pathname;const g=W(o.port);if(g)throw new Error(g);const V=Number(o.port);we.value=!!V,t.fields.port=V||oe.getPortFromProtocol(t.fields.protocol),n("url-valid:success")}catch{n("url-valid:error",s("gateway_services.form.errors.url.invalid")),t.formFieldErrors.url=s("gateway_services.form.errors.url.invalid")}},ee=o=>{D(o)},be=e.computed(()=>!!t.formFieldErrors.url||!!t.formFieldErrors.host||!!t.formFieldErrors.port),H=o=>{if(t.errorMessages.length)return"";const r=t.formFieldErrors;return r[o]?r[o]:""},I=o=>{D(o??void 0);const r=J(t.fields.host);r&&(t.formFieldErrors.host=r);const h=F(t.fields.path);h&&(t.formFieldErrors.path=h);const d=W(t.fields.port);d&&(t.formFieldErrors.port=d),Z.value?n("url-valid:success"):n("url-valid:error",t.errorMessages.join(",")||s("gateway_services.form.errors.url.invalid"))},D=o=>{if(o)t.formFieldErrors[o]="";else for(let r in t.formFieldErrors)t.formFieldErrors[r]="";t.errorMessages=[]},Z=e.computed(()=>{for(let o in t.formFieldErrors)if(t.formFieldErrors[o].length)return!1;return!0}),le=()=>{t.fields.url&&C.value==="url"?pe():I()},Ve=()=>`new-service-${new Date().toISOString().replace(/\D/g,"").slice(0,17)}`,me=e.computed(()=>!["tcp","tls","tls_passthrough","grpc","grpcs","udp"].includes(t.fields.protocol)),R=e.computed(()=>{if(C.value==="url")return!0;const o=["https","wss","tls"].includes(t.fields.protocol);return C.value==="protocol"&&o}),ke=e.computed(()=>{if(C.value==="url")return!0;const o=["https","tls"].includes(t.fields.protocol);return C.value==="protocol"&&o}),ue=o=>{D("name"),re.value=G.utf8Name(o)},K=e.computed(()=>{const o=!j.value||!he(t.fields,b),r=C.value==="url"&&!!t.fields.url&&Z.value,h=C.value==="protocol"&&!!t.fields.host&&Z.value;return o&&(r||h)}),se=o=>{var r,h,d,g,V;t.fields.name=(o==null?void 0:o.name)||"",t.fields.tags=((r=o==null?void 0:o.tags)==null?void 0:r.join(", "))||"",t.fields.protocol=(o==null?void 0:o.protocol)||"http",t.fields.path=(o==null?void 0:o.path)||"",t.fields.read_timeout=o!=null&&o.read_timeout||(o==null?void 0:o.read_timeout)===0?o==null?void 0:o.read_timeout:6e4,t.fields.retries=o!=null&&o.retries||(o==null?void 0:o.retries)===0?o==null?void 0:o.retries:5,t.fields.host=(o==null?void 0:o.host)||"",t.fields.connect_timeout=o!=null&&o.connect_timeout||(o==null?void 0:o.connect_timeout)===0?o==null?void 0:o.connect_timeout:6e4,t.fields.tls_verify_enabled=(o==null?void 0:o.tls_verify)!==""&&(o==null?void 0:o.tls_verify)!==null&&(o==null?void 0:o.tls_verify)!==void 0,t.fields.tls_verify_value=o!=null&&o.tls_verify?o==null?void 0:o.tls_verify:!1,t.fields.ca_certificates=((h=o==null?void 0:o.ca_certificates)==null?void 0:h.join(","))||"",t.fields.client_certificate=((d=o==null?void 0:o.client_certificate)==null?void 0:d.id)||"",t.fields.tls_sans={dnsnames:((g=o==null?void 0:o.tls_sans)==null?void 0:g.dnsnames)??[""],uris:((V=o==null?void 0:o.tls_sans)==null?void 0:V.uris)??[""]},t.fields.write_timeout=o!=null&&o.write_timeout||(o==null?void 0:o.write_timeout)===0?o==null?void 0:o.write_timeout:6e4,t.fields.port=o!=null&&o.port||(o==null?void 0:o.port)===0?o==null?void 0:o.port:80,t.fields.enabled=(o==null?void 0:o.enabled)??!0,Object.assign(b,t.fields),b.tls_sans={dnsnames:[...t.fields.tls_sans.dnsnames],uris:[...t.fields.tls_sans.uris]}},f=()=>{N.push(a.config.cancelRoute)},u=e.computed(()=>{var r,h;let o=`${a.config.apiBaseUrl}${ie.form[a.config.app][O.value]}`;return a.config.app==="konnect"&&(o=o.replace(/{controlPlaneId}/gi,((r=a.config)==null?void 0:r.controlPlaneId)||"")),o.replace(/\/{workspace}/gi,(h=a.config)!=null&&h.workspace?`/${a.config.workspace}`:"").replace(/{id}/gi,a.gatewayServiceId)}),_=e.computed(()=>{if(!a.isTlsSansSupported)return;if(!R.value)return null;const o=t.fields.tls_sans.dnsnames.map(h=>h.trim()).filter(Boolean),r=t.fields.tls_sans.uris.map(h=>h.trim()).filter(Boolean);return o.length||r.length?{dnsnames:o.length?o:null,uris:r.length?r:null}:null}),w=e.computed(()=>{var r,h,d,g;const o={name:t.fields.name||null,tags:t.fields.tags?(d=(h=(r=t.fields.tags)==null?void 0:r.split(","))==null?void 0:h.map(V=>String(V||"").trim()))==null?void 0:d.filter(V=>V!==""):null,protocol:t.fields.protocol,path:t.fields.path||null,read_timeout:t.fields.read_timeout,retries:t.fields.retries,host:t.fields.host,connect_timeout:t.fields.connect_timeout,ca_certificates:t.fields.ca_certificates?(g=t.fields.ca_certificates)==null?void 0:g.split(",").filter(V=>V!==""):null,client_certificate:t.fields.client_certificate?{id:t.fields.client_certificate}:null,tls_sans:_.value,write_timeout:t.fields.write_timeout,port:t.fields.port,url:t.fields.url,enabled:t.fields.enabled};return R.value||(o.client_certificate=null),t.fields.tls_verify_enabled&&["https","wss","tls"].includes(t.fields.protocol)&&(o.tls_verify=t.fields.tls_verify_value),me.value||(o.path=null),O.value==="create"?C.value==="url"?(delete o.protocol,delete o.host,delete o.path,a.config.app==="konnect"&&delete o.port):delete o.url:O.value==="edit"&&delete o.url,o}),A=async()=>{var o,r,h,d,g,V;try{t.isReadonly=!0;const L=w.value;let S;if(O.value==="create"?S=await k.post(u.value,L):O.value==="edit"&&(S=((o=a.config)==null?void 0:o.app)==="konnect"?await k.put(u.value,L):await k.patch(u.value,L)),S){const{data:i}=S;t.fields.name=(i==null?void 0:i.name)||"",t.fields.port=i.port||oe.getPortFromProtocol(i.protocol),t.fields.protocol=(i==null?void 0:i.protocol)||"http",t.fields.host=(i==null?void 0:i.host)||"",t.fields.path=(i==null?void 0:i.path)||"",t.fields.url=(i==null?void 0:i.url)||"",t.fields.retries=i!=null&&i.retries||(i==null?void 0:i.retries)===0?i==null?void 0:i.retries:5,t.fields.connect_timeout=i!=null&&i.connect_timeout||(i==null?void 0:i.connect_timeout)===0?i==null?void 0:i.connect_timeout:6e4,t.fields.write_timeout=i!=null&&i.write_timeout||(i==null?void 0:i.write_timeout)===0?i==null?void 0:i.write_timeout:6e4,t.fields.read_timeout=i!=null&&i.read_timeout||(i==null?void 0:i.read_timeout)===0?i==null?void 0:i.read_timeout:6e4,t.fields.client_certificate=((r=i==null?void 0:i.client_certificate)==null?void 0:r.id)||"",t.fields.tls_sans={dnsnames:((h=i==null?void 0:i.tls_sans)==null?void 0:h.dnsnames)??[],uris:((d=i==null?void 0:i.tls_sans)==null?void 0:d.uris)??[]},t.fields.ca_certificates=(g=i==null?void 0:i.ca_certificates)!=null&&g.length?i==null?void 0:i.ca_certificates.join(","):"",t.fields.tls_verify_enabled=(i==null?void 0:i.tls_verify)!==""&&(i==null?void 0:i.tls_verify)!==null&&(i==null?void 0:i.tls_verify)!==void 0,t.fields.tls_verify_value=t.fields.tls_verify_enabled&&(i==null?void 0:i.tls_verify),t.fields.tags=(V=i==null?void 0:i.tags)!=null&&V.length?i.tags.join(", "):"",t.fields.enabled=(i==null?void 0:i.enabled)??!0,Object.assign(b,t.fields),b.tls_sans={dnsnames:[...t.fields.tls_sans.dnsnames],uris:[...t.fields.tls_sans.uris]},n("update",S==null?void 0:S.data)}return S}catch(L){const{fields:S,messages:i}=v(L);t.errorMessages=i,S.length&&S.forEach(c=>{const te=c.field;te==="client_certificate.id"?t.formFieldErrors.client_certificate=c.message:te.startsWith("tls_sans.dnsnames")?t.formFieldErrors.tls_sans_dnsnames=c.message:te.startsWith("tls_sans.uris")?t.formFieldErrors.tls_sans_uris=c.message:te.startsWith("ca_certificates")?t.formFieldErrors.ca_certificates=c.message:Object.keys(t.formFieldErrors).includes(te)&&(t.formFieldErrors={...t.formFieldErrors,[te]:c.message})}),n("error",L)}finally{t.isReadonly=!1}};return e.watch(()=>a.gatewayServiceId,()=>{Object.assign(t.fields,b)}),e.watch(t.fields,()=>{n("model-updated",w.value)}),e.onMounted(()=>{n("model-updated",w.value),j.value||(t.fields.name=Ve())}),T({validateUrl:le,getPayload:w,saveFormData:A,canSubmit:K,initForm:se}),(o,r)=>{const h=e.resolveComponent("KRadio"),d=e.resolveComponent("KButton"),g=e.resolveComponent("KInput"),V=e.resolveComponent("KSelect"),L=e.resolveComponent("KCheckbox"),S=e.resolveComponent("KCollapse"),i=e.resolveComponent("KAlert");return e.openBlock(),e.createElementBlock("div",We,[e.createVNode(e.unref(y.EntityBaseForm),{"can-submit":K.value,config:l.config,"edit-id":l.gatewayServiceId,"entity-type":e.unref(y.SupportedEntityType).GatewayService,"fetch-url":U.value,"form-fields":w.value,"is-readonly":t.isReadonly,onCancel:f,"onFetch:error":r[34]||(r[34]=c=>o.$emit("error",c)),"onFetch:success":se,onLoading:r[35]||(r[35]=c=>o.$emit("loading",c)),onSubmit:A},{"form-actions":e.withCtx(()=>[e.renderSlot(o.$slots,"form-actions",{canSubmit:K.value,cancel:f,submit:A},void 0,!0)]),default:e.withCtx(()=>[e.createVNode(e.unref(y.EntityFormSection),{description:e.unref(s)("gateway_services.form.sections.keys.description"),"hide-info-header":l.hideSectionsInfo,title:e.unref(s)("gateway_services.form.sections.keys.title")},{default:e.withCtx(()=>[j.value?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",Oe,[e.createElementVNode("div",je,[e.createVNode(h,{modelValue:C.value,"onUpdate:modelValue":r[0]||(r[0]=c=>C.value=c),card:"","card-orientation":"horizontal","data-testid":"gateway-service-url-radio",description:e.unref(s)("gateway_services.form.sections.keys.url.description"),label:e.unref(s)("gateway_services.form.sections.keys.url.label"),"selected-value":ae.url,onChange:de},null,8,["modelValue","description","label","selected-value"]),e.createVNode(h,{modelValue:C.value,"onUpdate:modelValue":r[1]||(r[1]=c=>C.value=c),card:"","card-orientation":"horizontal","checked-group":"protocol","data-testid":"gateway-service-protocol-radio",description:e.unref(s)("gateway_services.form.sections.keys.protocol.description"),label:e.unref(s)("gateway_services.form.sections.keys.protocol.label"),"selected-value":ae.protocol,onChange:de},null,8,["modelValue","description","label","selected-value"])]),e.createVNode(e.Transition,{name:"slide-fade"},{default:e.withCtx(()=>[C.value==="url"?(e.openBlock(),e.createElementBlock("div",ze,[e.createVNode(g,{modelValue:t.fields.url,"onUpdate:modelValue":r[2]||(r[2]=c=>t.fields.url=c),modelModifiers:{trim:!0},class:"gateway-service-url-input gateway-service-form-margin-bottom","data-testid":"gateway-service-url-input",error:be.value,"error-message":H("url"),label:e.unref(s)("gateway_services.form.fields.upstream_url.label"),"label-attributes":{info:l.config.app==="konnect"?e.unref(s)("gateway_services.form.fields.upstream_url.tooltip_for_konnect"):e.unref(s)("gateway_services.form.fields.upstream_url.tooltip_for_km"),tooltipAttributes:{maxWidth:"400"}},name:"url",placeholder:e.unref(s)("gateway_services.form.fields.upstream_url.placeholder"),required:"",onInput:pe},e.createSlots({_:2},[l.hideTrySampleApiButton?void 0:{name:"after",fn:e.withCtx(()=>[e.createVNode(d,{appearance:"tertiary","data-testid":"try-sample-api",size:"small",onClick:fe},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(s)("gateway_services.form.buttons.try_sample")),1)]),_:1})]),key:"0"}]),1032,["modelValue","error","error-message","label","label-attributes","placeholder"])])):e.createCommentVNode("",!0)]),_:1})])),e.createVNode(e.Transition,{name:"slide-fade"},{default:e.withCtx(()=>[C.value==="protocol"||j.value?(e.openBlock(),e.createElementBlock("div",He,[e.createVNode(V,{modelValue:t.fields.protocol,"onUpdate:modelValue":r[3]||(r[3]=c=>t.fields.protocol=c),"data-testid":"gateway-service-protocol-select",items:Y,label:e.unref(s)("gateway_services.form.fields.protocol.label"),"label-attributes":{info:e.unref(s)("gateway_services.form.fields.protocol.tooltip"),tooltipAttributes:{maxWidth:"400"}},readonly:t.isReadonly,required:"",width:"100%",onSelected:ne},null,8,["modelValue","label","label-attributes","readonly"]),e.createVNode(g,{modelValue:t.fields.host,"onUpdate:modelValue":r[4]||(r[4]=c=>t.fields.host=c),modelModifiers:{trim:!0},class:"gateway-service-form-margin-top","data-testid":"gateway-service-host-input",error:!!t.formFieldErrors.host,"error-message":H("host"),label:e.unref(s)("gateway_services.form.fields.host.label"),"label-attributes":{info:e.unref(s)("gateway_services.form.fields.host.tooltip"),tooltipAttributes:{maxWidth:"400"}},name:"host",placeholder:e.unref(s)("gateway_services.form.fields.host.placeholder"),required:"",onInput:r[5]||(r[5]=c=>I("host"))},e.createSlots({_:2},[l.hideTrySampleApiButton?void 0:{name:"after",fn:e.withCtx(()=>[e.createVNode(d,{appearance:"tertiary",size:"small",onClick:fe},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(s)("gateway_services.form.buttons.try_sample")),1)]),_:1})]),key:"0"}]),1032,["modelValue","error","error-message","label","label-attributes","placeholder"]),me.value?(e.openBlock(),e.createElementBlock("div",Ze,[e.createVNode(g,{modelValue:t.fields.path,"onUpdate:modelValue":r[6]||(r[6]=c=>t.fields.path=c),modelModifiers:{trim:!0},class:"gateway-service-form-margin-top","data-testid":"gateway-service-path-input",error:!!t.formFieldErrors.path,"error-message":H("path"),label:e.unref(s)("gateway_services.form.fields.path.label"),"label-attributes":{info:e.unref(s)("gateway_services.form.fields.path.tooltip"),tooltipAttributes:{maxWidth:"400"}},name:"path",placeholder:e.unref(s)("gateway_services.form.fields.path.placeholder"),onInput:r[7]||(r[7]=c=>I("path"))},null,8,["modelValue","error","error-message","label","label-attributes","placeholder"])])):e.createCommentVNode("",!0),e.createVNode(g,{modelValue:t.fields.port,"onUpdate:modelValue":[r[8]||(r[8]=c=>t.fields.port=c),r[10]||(r[10]=()=>{t.fields.port=z(t.fields.port+"")})],class:"gateway-service-form-margin-top","data-testid":"gateway-service-port-input",error:!!t.formFieldErrors.port,"error-message":H("port"),label:e.unref(s)("gateway_services.form.fields.port.label"),"label-attributes":{info:e.unref(s)("gateway_services.form.fields.port.tooltip"),tooltipAttributes:{maxWidth:"400"}},name:"port",type:"number",onInput:r[9]||(r[9]=c=>I("port"))},null,8,["modelValue","error","error-message","label","label-attributes"])])):e.createCommentVNode("",!0)]),_:1}),e.createVNode(S,{modelValue:m.value,"onUpdate:modelValue":r[30]||(r[30]=c=>m.value=c),"data-testid":"advanced-fields-collapse","trigger-alignment":"leading","trigger-label":e.unref(s)("gateway_services.form.sections.keys.viewAdvancedFields")},{default:e.withCtx(()=>[e.createVNode(e.Transition,{name:"slide-fade"},{default:e.withCtx(()=>[m.value?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",Je,[e.createElementVNode("div",Qe,[e.createVNode(g,{modelValue:t.fields.retries,"onUpdate:modelValue":[r[11]||(r[11]=c=>t.fields.retries=c),r[12]||(r[12]=()=>{t.fields.retries=z(t.fields.retries+"")})],autocomplete:"off","data-testid":"gateway-service-retries-input",label:e.unref(s)("gateway_services.form.fields.retries.label"),"label-attributes":{info:e.unref(s)("gateway_services.form.fields.retries.tooltip"),tooltipAttributes:{maxWidth:"400"}},name:"retries",readonly:t.isReadonly,type:"number"},null,8,["modelValue","label","label-attributes","readonly"])]),e.createElementVNode("div",Xe,[e.createVNode(g,{modelValue:t.fields.connect_timeout,"onUpdate:modelValue":[r[13]||(r[13]=c=>t.fields.connect_timeout=c),r[14]||(r[14]=()=>{t.fields.connect_timeout=z(t.fields.connect_timeout+"")})],autocomplete:"off","data-testid":"gateway-service-connTimeout-input",label:e.unref(s)("gateway_services.form.fields.connect_timeout.label"),"label-attributes":{info:e.unref(s)("gateway_services.form.fields.connect_timeout.tooltip"),tooltipAttributes:{maxWidth:"400"}},name:"connTimeout",readonly:t.isReadonly,type:"number"},null,8,["modelValue","label","label-attributes","readonly"])]),e.createElementVNode("div",Ye,[e.createVNode(g,{modelValue:t.fields.write_timeout,"onUpdate:modelValue":[r[15]||(r[15]=c=>t.fields.write_timeout=c),r[16]||(r[16]=()=>{t.fields.write_timeout=z(t.fields.write_timeout+"")})],autocomplete:"off","data-testid":"gateway-service-writeTimeout-input",label:e.unref(s)("gateway_services.form.fields.write_timeout.label"),"label-attributes":{info:e.unref(s)("gateway_services.form.fields.write_timeout.tooltip"),tooltipAttributes:{maxWidth:"400"}},name:"writeTimeout",readonly:t.isReadonly,type:"number"},null,8,["modelValue","label","label-attributes","readonly"])]),e.createElementVNode("div",et,[e.createVNode(g,{modelValue:t.fields.read_timeout,"onUpdate:modelValue":[r[17]||(r[17]=c=>t.fields.read_timeout=c),r[18]||(r[18]=()=>{t.fields.read_timeout=z(t.fields.read_timeout+"")})],autocomplete:"off","data-testid":"gateway-service-readTimeout-input",label:e.unref(s)("gateway_services.form.fields.read_timeout.label"),"label-attributes":{info:e.unref(s)("gateway_services.form.fields.read_timeout.tooltip"),tooltipAttributes:{maxWidth:"400"}},name:"readTimeout",readonly:t.isReadonly,type:"number"},null,8,["modelValue","label","label-attributes","readonly"])]),R.value?(e.openBlock(),e.createElementBlock("div",tt,[e.createVNode(g,{modelValue:t.fields.client_certificate,"onUpdate:modelValue":r[19]||(r[19]=c=>t.fields.client_certificate=c),modelModifiers:{trim:!0},autocomplete:"off","data-testid":"gateway-service-clientCert-input",error:!!t.formFieldErrors.client_certificate,label:e.unref(s)("gateway_services.form.fields.client_certificate.label"),"label-attributes":{info:e.unref(s)("gateway_services.form.fields.client_certificate.tooltip"),tooltipAttributes:{maxWidth:"400"}},name:"clientCert",placeholder:e.unref(s)("gateway_services.form.fields.client_certificate.placeholder"),readonly:t.isReadonly,type:"text",onInput:r[20]||(r[20]=c=>ee("client_certificate"))},null,8,["modelValue","error","label","label-attributes","placeholder","readonly"])])):e.createCommentVNode("",!0),R.value&&l.isTlsSansSupported?(e.openBlock(),e.createBlock(Ne,{key:1,modelValue:t.fields.tls_sans.dnsnames,"onUpdate:modelValue":r[21]||(r[21]=c=>t.fields.tls_sans.dnsnames=c),"add-button-text":e.unref(s)("gateway_services.form.fields.tls_sans_dnsnames.add"),class:"gateway-service-form-margin-bottom","data-testid":"gateway-service-tls-sans-dnsnames",error:!!t.formFieldErrors.tls_sans_dnsnames,label:e.unref(s)("gateway_services.form.fields.tls_sans_dnsnames.label"),placeholder:e.unref(s)("gateway_services.form.fields.tls_sans_dnsnames.placeholder"),readonly:t.isReadonly,"test-id-prefix":"tls-sans-dnsnames",tooltip:e.unref(s)("gateway_services.form.fields.tls_sans_dnsnames.tooltip"),onInput:r[22]||(r[22]=c=>ee("tls_sans_dnsnames"))},null,8,["modelValue","add-button-text","error","label","placeholder","readonly","tooltip"])):e.createCommentVNode("",!0),R.value&&l.isTlsSansSupported?(e.openBlock(),e.createBlock(Ne,{key:2,modelValue:t.fields.tls_sans.uris,"onUpdate:modelValue":r[23]||(r[23]=c=>t.fields.tls_sans.uris=c),"add-button-text":e.unref(s)("gateway_services.form.fields.tls_sans_uris.add"),class:"gateway-service-form-margin-bottom","data-testid":"gateway-service-tls-sans-uris",error:!!t.formFieldErrors.tls_sans_uris,label:e.unref(s)("gateway_services.form.fields.tls_sans_uris.label"),placeholder:e.unref(s)("gateway_services.form.fields.tls_sans_uris.placeholder"),readonly:t.isReadonly,"test-id-prefix":"tls-sans-uris",tooltip:e.unref(s)("gateway_services.form.fields.tls_sans_uris.tooltip"),onInput:r[24]||(r[24]=c=>ee("tls_sans_uris"))},null,8,["modelValue","add-button-text","error","label","placeholder","readonly","tooltip"])):e.createCommentVNode("",!0),ke.value?(e.openBlock(),e.createElementBlock("div",ot,[e.createVNode(g,{modelValue:t.fields.ca_certificates,"onUpdate:modelValue":r[25]||(r[25]=c=>t.fields.ca_certificates=c),modelModifiers:{trim:!0},autocomplete:"off","data-testid":"gateway-service-ca-certs-input",error:!!t.formFieldErrors.ca_certificates,label:e.unref(s)("gateway_services.form.fields.ca_certificates.label"),"label-attributes":{tooltipAttributes:{maxWidth:"400"}},placeholder:e.unref(s)("gateway_services.form.fields.ca_certificates.placeholder"),readonly:t.isReadonly,type:"text",onInput:r[26]||(r[26]=c=>ee("ca_certificates"))},{"label-tooltip":e.withCtx(()=>[e.createVNode(e.unref(x),{keypath:"gateway_services.form.fields.ca_certificates.tooltip",scope:"global"},{code1:e.withCtx(()=>[e.createElementVNode("code",null,e.toDisplayString(e.unref(s)("gateway_services.form.fields.ca_certificates.code1")),1)]),code2:e.withCtx(()=>[e.createElementVNode("code",null,e.toDisplayString(e.unref(s)("gateway_services.form.fields.ca_certificates.code2")),1)]),_:1})]),_:1},8,["modelValue","error","label","placeholder","readonly"])])):e.createCommentVNode("",!0),R.value?(e.openBlock(),e.createElementBlock("div",rt,[e.createVNode(L,{modelValue:t.fields.tls_verify_enabled,"onUpdate:modelValue":r[27]||(r[27]=c=>t.fields.tls_verify_enabled=c),"data-testid":"gateway-service-tls-verify-checkbox",description:e.unref(s)("gateway_services.form.fields.tls_verify_enabled.help"),label:e.unref(s)("gateway_services.form.fields.tls_verify_enabled.label"),"label-attributes":{tooltipAttributes:{maxWidth:"400"}}},{tooltip:e.withCtx(()=>[e.createVNode(e.unref(x),{keypath:"gateway_services.form.fields.tls_verify_enabled.tooltip",scope:"global"},{code1:e.withCtx(()=>[e.createElementVNode("code",null,e.toDisplayString(e.unref(s)("gateway_services.form.fields.tls_verify_enabled.code1")),1)]),_:1})]),_:1},8,["modelValue","description","label"]),t.fields.tls_verify_enabled?(e.openBlock(),e.createElementBlock("div",lt,[e.createVNode(h,{modelValue:t.fields.tls_verify_value,"onUpdate:modelValue":r[28]||(r[28]=c=>t.fields.tls_verify_value=c),"data-testid":"gateway-service-tls-verify-true-option",label:e.unref(s)("gateway_services.form.fields.tls_verify_option.true.label"),"selected-value":!0},null,8,["modelValue","label"])])):e.createCommentVNode("",!0),t.fields.tls_verify_enabled?(e.openBlock(),e.createElementBlock("div",st,[e.createVNode(h,{modelValue:t.fields.tls_verify_value,"onUpdate:modelValue":r[29]||(r[29]=c=>t.fields.tls_verify_value=c),"data-testid":"gateway-service-tls-verify-false-option",label:e.unref(s)("gateway_services.form.fields.tls_verify_option.false.label"),"selected-value":!1},null,8,["modelValue","label"])])):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0)]))]),_:1})]),_:1},8,["modelValue","trigger-label"])]),_:1},8,["description","hide-info-header","title"]),e.createVNode(e.unref(y.EntityFormSection),{description:e.unref(s)("gateway_services.form.sections.general.description"),"hide-info-header":l.hideSectionsInfo,title:e.unref(s)("gateway_services.form.sections.general.title")},{default:e.withCtx(()=>[e.createVNode(g,{modelValue:t.fields.name,"onUpdate:modelValue":r[31]||(r[31]=c=>t.fields.name=c),modelModifiers:{trim:!0},autocomplete:"off","data-testid":"gateway-service-name-input",error:X.value,"error-message":re.value,label:e.unref(s)("gateway_services.form.fields.name.label"),"label-attributes":{info:e.unref(s)("gateway_services.form.fields.name.tooltip"),tooltipAttributes:{maxWidth:"400"}},name:"name",placeholder:e.unref(s)("gateway_services.form.fields.name.placeholder"),readonly:t.isReadonly,type:"text",onInput:ue},null,8,["modelValue","error","error-message","label","label-attributes","placeholder","readonly"]),e.createVNode(S,{"data-testid":"tags-collapse","trigger-alignment":"leading","trigger-label":e.unref(s)("gateway_services.form.fields.tags.collapse")},{default:e.withCtx(()=>[e.createElementVNode("div",it,[e.createVNode(g,{modelValue:t.fields.tags,"onUpdate:modelValue":r[32]||(r[32]=c=>t.fields.tags=c),modelModifiers:{trim:!0},autocomplete:"off","data-testid":"gateway-service-tags-input",help:e.unref(s)("gateway_services.form.fields.tags.help"),label:e.unref(s)("gateway_services.form.fields.tags.label"),"label-attributes":{info:e.unref(s)("gateway_services.form.fields.tags.tooltip"),tooltipAttributes:{maxWidth:"400"}},name:"tags",placeholder:e.unref(s)("gateway_services.form.fields.tags.placeholder"),readonly:t.isReadonly,type:"text",onInput:r[33]||(r[33]=c=>D("tags"))},null,8,["modelValue","help","label","label-attributes","placeholder","readonly"])])]),_:1},8,["trigger-label"])]),_:1},8,["description","hide-info-header","title"]),t.errorMessages.length?(e.openBlock(),e.createBlock(i,{key:0,appearance:"danger","data-testid":"form-error"},{default:e.withCtx(()=>[e.createElementVNode("ul",at,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.errorMessages,c=>(e.openBlock(),e.createElementBlock("li",{key:c},e.toDisplayString(c),1))),128))])]),_:1})):e.createCommentVNode("",!0)]),_:3},8,["can-submit","config","edit-id","entity-type","fetch-url","form-fields","is-readonly"])])}}}),[["__scopeId","data-v-77eb241d"]]),{validateHost:ct,validatePort:dt,validateProtocol:ft,validatePath:pt}=q.useUrlValidators(),mt=()=>({validateHost:ct,validatePort:dt,validateProtocol:ft,validatePath:pt});E.GatewayServiceConfigCard=Me,E.GatewayServiceForm=nt,E.GatewayServiceList=Ue,E.useUrlValidator=mt,Object.defineProperty(E,Symbol.toStringTag,{value:"Module"})});
|
package/dist/style.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
@charset "UTF-8";.config-card-fieldset[data-v-5baf64ca]{border:solid 1px #e0e4ea;border:solid var(--kui-border-width-10, 1px) var(--kui-color-border, #e0e4ea);border-radius:4px;margin-bottom:8px;margin-bottom:var(--kui-space-40, 8px);margin-top:4px}.config-card-fieldset-title[data-v-5baf64ca]{font-size:14px;font-size:var(--kui-font-size-30, 14px);padding:0 8px;padding:0 var(--kui-space-40, 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;margin:var(--kui-space-0, 0px) var(--kui-space-60, 16px)}.config-card-json-item .config-card-details-row:last-of-type,fieldset.config-card-fieldset .config-card-details-row:last-of-type{border-bottom:none}[data-v-2feb8c2e] .k-button.navigation-button{font-size:14px;font-weight:400}.config-card-details-row[data-v-b6987b3c]{align-items:center;border-bottom:var(--v25a763c4);box-sizing:border-box;display:var(--v1ac90e12);padding:16px;padding:var(--kui-space-60, 16px);padding-left:0;width:100%}.config-card-details-row .config-card-details-label[data-v-b6987b3c]{box-sizing:border-box;padding-right:16px;padding-right:var(--kui-space-60, 16px);width:var(--v45a716ee)}.config-card-details-row .config-card-details-label label[data-v-b6987b3c]{color:#3a3f51;color:var(--kui-color-text-neutral-stronger, #3a3f51);display:inline-flex;max-width:100%}.config-card-details-row .config-card-details-label label .label-content[data-v-b6987b3c]{line-height:initial;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.config-card-details-row .config-card-details-label label .k-popover[data-v-b6987b3c]{min-width:0}.config-card-details-row .config-card-details-value[data-v-b6987b3c]{box-sizing:border-box;width:var(--v45a28b38)}.config-card-details-row .config-card-details-value .truncated[data-v-b6987b3c]{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-b6987b3c]{overflow-wrap:anywhere}.config-card-details-row .config-card-details-value .copy-uuid-array[data-v-b6987b3c] .k-copy:not(:last-of-type){margin-bottom:8px;margin-bottom:var(--kui-space-40, 8px)}.config-card-details-row .config-card-details-value .method-badge-array[data-v-b6987b3c]{display:flex;flex-wrap:wrap;row-gap:10px}.config-card-details-row .config-badge[data-v-b6987b3c]{margin-right:4px;margin-right:var(--kui-space-20, 4px)}.config-card-details-row[data-v-b6987b3c] .k-label{margin-bottom:0}.config-card-details-row[data-v-b6987b3c] .k-label .kong-icon-infoFilled{display:flex}.config-card-details-row[data-v-b6987b3c] .config-card-details-row{width:auto}.json-content.k-code-block{border-top-left-radius:0;border-top-left-radius:var(--kui-border-radius-0, 0px);border-top-right-radius:0;border-top-right-radius:var(--kui-border-radius-0, 0px)}.json-endpoint{align-items:baseline;background-color:#000933;background-color:var(--kui-color-background-inverse, #000933);border-bottom:1px solid rgba(255,255,255,.2);border-bottom:var(--kui-border-width-10, 1px) solid var(--kui-color-border-inverse, rgba(255, 255, 255, .2));border-top-left-radius:8px;border-top-left-radius:var(--kui-border-radius-40, 8px);border-top-right-radius:8px;border-top-right-radius:var(--kui-border-radius-40, 8px);display:flex;padding:8px 0 8px 12px;padding:var(--kui-space-40, 8px) var(--kui-space-0, 0px) var(--kui-space-40, 8px) var(--kui-space-50, 12px)}.json-endpoint .k-code-block{flex:auto;z-index:2}.json-endpoint .k-code-block .code-block-content{padding-bottom:0;padding-bottom:var(--kui-space-0, 0px);padding-top:0;padding-top:var(--kui-space-0, 0px)}.json-endpoint .k-code-block .code-block-secondary-actions{margin-top:0!important}.json-endpoint code{direction:rtl;max-width:var(--v775b4bd8);overflow:hidden!important;text-align:left;text-overflow:ellipsis;white-space:nowrap}.deck-config .k-select[data-v-d4838dcc]{margin-bottom:16px;margin-bottom:var(--kui-space-60, 16px)}.deck-config .k-code-block[data-v-d4838dcc]{margin-top:12px;margin-top:var(--kui-space-50, 12px)}.config-card-prop-section-title[data-v-2a7f1b10]{color:#000933;color:var(--kui-color-text, #000933);font-size:16px;font-size:var(--kui-font-size-40, 16px);font-weight:600;font-weight:var(--kui-font-weight-semibold, 600);margin-bottom:16px;margin-bottom:var(--kui-space-60, 16px);margin-top:48px;margin-top:var(--kui-space-110, 48px)}.kong-ui-entity-base-config-card .config-card-actions[data-v-42166123]{align-items:center;display:flex}.kong-ui-entity-base-config-card .config-card-actions .config-format-select-label[data-v-42166123]{margin-bottom:0;margin-bottom:var(--kui-space-0, 0px);margin-right:8px;margin-right:var(--kui-space-40, 8px)}.kong-ui-entity-base-config-card .config-card-prop-section-title[data-v-42166123]{color:#000933;color:var(--kui-color-text, #000933);font-size:16px;font-size:var(--kui-font-size-40, 16px);font-weight:600;margin-bottom:16px;margin-bottom:var(--kui-space-60, 16px);margin-top:48px;margin-top:var(--kui-space-110, 48px)}.kong-ui-entity-base-config-card[data-v-42166123]:not(:has(.config-card-details-after)) .config-card-details-row:last-of-type{border-bottom:none}.kong-ui-entity-base-config-card .config-card-details-after[data-v-42166123]{padding-top:16px;padding-top:var(--kui-space-60, 16px)}.kong-ui-entity-base-config-card .book-icon[data-v-42166123]{margin-left:8px;margin-left:var(--kui-space-40, 8px);padding:0;padding:var(--kui-space-0, 0px)}.kong-ui-entity-base-form[data-v-c89d8836]{box-sizing:border-box;max-width:1536px;max-width:var(--kui-breakpoint-desktop, 1536px);width:100%}.kong-ui-entity-base-form[data-v-c89d8836] .k-slideout-title{color:#000933!important;color:var(--kui-color-text, #000933)!important;font-size:24px!important;font-size:var(--kui-font-size-70, 24px)!important;font-weight:700!important;font-weight:var(--kui-font-weight-bold, 700)!important;line-height:32px!important;line-height:var(--kui-line-height-60, 32px)!important;margin-bottom:16px!important;margin-bottom:var(--kui-space-60, 16px)!important}.kong-ui-entity-base-form[data-v-c89d8836] .k-card.content-card{padding:0 16px!important;padding:var(--kui-space-0, 0px) var(--kui-space-60, 16px)!important}.kong-ui-entity-base-form[data-v-c89d8836] .tab-item>div.tab-link.has-panels{color:#6c7489!important;color:var(--kui-color-text-neutral, #6c7489)!important;font-size:14px!important;font-size:var(--kui-font-size-30, 14px)!important;font-weight:700!important;font-weight:var(--kui-font-weight-bold, 700)!important;line-height:24px!important;line-height:var(--kui-line-height-40, 24px)!important}.kong-ui-entity-base-form[data-v-c89d8836] .tab-item.active>div.tab-link.has-panels{color:#000933!important;color:var(--kui-color-text, #000933)!important;font-weight:600!important;font-weight:var(--kui-font-weight-semibold, 600)!important}.kong-ui-entity-base-form[data-v-c89d8836] .slideout-content{overflow-y:unset!important}.kong-ui-entity-base-form.new-form-layout[data-v-c89d8836]{border:none;padding:0}.kong-ui-entity-base-form.new-form-layout[data-v-c89d8836]>.card-content>form>.form-actions{justify-content:flex-start;margin-top:20px;margin-top:var(--kui-space-70, 20px)}.kong-ui-entity-base-form.new-form-layout .form-error[data-v-c89d8836]{margin:20px 0 0 16px;margin:var(--kui-space-70, 20px) 0 0 var(--kui-space-60, 16px)}.form-actions[data-v-c89d8836]{align-items:center;display:flex;justify-content:flex-end;margin-top:24px;margin-top:var(--kui-space-80, 24px)}.form-actions[data-v-c89d8836] .k-button:last-of-type,.form-actions[data-v-c89d8836] .k-button:nth-last-of-type(2){margin-inline-start:16px;margin-inline-start:var(--kui-space-60, 16px)}.form-actions-reverted[data-v-c89d8836]{direction:rtl}.content-wrapper[data-v-a3a65cac] .k-tooltip{word-break:break-all}.kong-ui-entity-base-table .toolbar-container[data-v-09e101d4]{align-items:center;display:flex;width:100%}.kong-ui-entity-base-table .toolbar-button-container[data-v-09e101d4]{margin-left:auto}.kong-ui-entity-base-table .hidden[data-v-09e101d4]{display:none}.kong-ui-entity-delete-modal .message[data-v-fc366e0c],.kong-ui-entity-delete-modal .description[data-v-fc366e0c]{line-height:20px;line-height:var(--kui-line-height-30, 20px);margin:0;margin:var(--kui-space-0, 0px)}.kong-ui-entity-delete-modal .message strong[data-v-fc366e0c]{font-weight:600;font-weight:var(--kui-font-weight-semibold, 600)}.kong-ui-entity-delete-modal .description[data-v-fc366e0c]{margin-top:32px;margin-top:var(--kui-space-90, 32px)}.kong-ui-entity-delete-modal .body-stacked-copy .description[data-v-fc366e0c]{margin-top:0;margin-top:var(--kui-space-0, 0px)}.kong-ui-entity-delete-modal .body-stacked-copy .description>p[data-v-fc366e0c]{margin:0;margin:var(--kui-space-0, 0px)}.kong-ui-entity-delete-modal .body-stacked-copy .message[data-v-fc366e0c]{margin-bottom:0;margin-bottom:var(--kui-space-0, 0px)}.kong-ui-entity-delete-modal[data-v-fc366e0c] .prompt-confirmation-text{line-height:20px;line-height:var(--kui-line-height-30, 20px);margin:0;margin:var(--kui-space-0, 0px)}.kong-ui-entity-delete-modal-stacked-copy[data-v-fc366e0c] .prompt-content+.prompt-confirmation-container{margin-top:32px;margin-top:var(--kui-space-90, 32px)}.kong-ui-entity-delete-error[data-v-fc366e0c]{margin-bottom:12px;margin-bottom:var(--kui-space-50, 12px)}.kong-ui-entity-filter-input[data-v-d3d2bd8b]{width:100%}.kong-ui-entity-filter-clear[data-v-d3d2bd8b]{cursor:pointer}.kong-ui-entity-filter[data-v-d3d2bd8b]{display:flex;position:relative}.kong-ui-entity-filter[data-v-d3d2bd8b] .menu-content{flex-direction:column}.kong-ui-entity-filter[data-v-d3d2bd8b] .k-menu-item-divider hr{margin:12px 0}.kong-ui-entity-filter-backdrop[data-v-d3d2bd8b]{bottom:0;left:0;position:fixed;right:0;top:0;z-index:1050}.kong-ui-entity-filter-menu[data-v-d3d2bd8b]{background-color:#fff;background-color:var(--kui-color-background, #ffffff);border:1px solid #afb7c5;border:var(--kui-border-width-10, 1px) solid var(--kui-color-border-neutral-weak, #afb7c5);border-radius:4px;border-radius:var(--kui-border-radius-20, 4px);box-shadow:0 4px 20px #e0e4ea;box-shadow:0 4px 20px var(--kui-color-border, #e0e4ea);left:0;margin-top:16px;padding:8px 0 12px;padding:var(--kui-space-40, 8px) 0 var(--kui-space-50, 12px);position:absolute;top:100%;width:300px;z-index:1060}.kong-ui-entity-filter-menu-item[data-v-d3d2bd8b]{border-bottom:1px solid #e0e4ea;border-bottom:var(--kui-border-width-10, 1px) solid var(--kui-color-border, #e0e4ea);color:#6c7489;color:var(--kui-color-text-neutral, #6c7489);font-size:12px;font-size:var(--kui-font-size-20, 12px);font-weight:400;font-weight:var(--kui-font-weight-regular, 400);line-height:16px;line-height:var(--kui-line-height-20, 16px);list-style:none;margin:0 20px;margin:var(--kui-space-0, 0px) var(--kui-space-70, 20px);padding:16px 0;padding:var(--kui-space-60, 16px) 0;position:relative;white-space:nowrap}.menu-item-title[data-v-d3d2bd8b]{align-items:center;cursor:pointer;display:flex;line-height:24px;line-height:var(--kui-line-height-40, 24px)}.menu-item-title.expanded[data-v-d3d2bd8b]{color:#232633;color:var(--kui-color-text-neutral-strongest, #232633)}.menu-item-expand-icon[data-v-d3d2bd8b]{margin-left:auto}.menu-item-expand-icon.expanded[data-v-d3d2bd8b]{transform:rotate(180deg)}.menu-item-indicator[data-v-d3d2bd8b]{background-color:#0044f4;background-color:var(--kui-color-background-primary, #0044f4);border-radius:50%;height:4px;margin-left:4px;width:4px}.menu-item-body[data-v-d3d2bd8b]{align-items:center;display:flex;justify-content:space-between;margin-top:16px;margin-top:var(--kui-space-60, 16px)}.menu-item-body[data-v-d3d2bd8b] .input{padding-bottom:4px!important;padding-top:4px!important}.menu-item-body[data-v-d3d2bd8b] .k-input{width:100%}.menu-item-body[data-v-d3d2bd8b] .k-select-input .input{font-size:12px}.menu-item-body[data-v-d3d2bd8b] .k-select-input .input::placeholder{color:#00000073!important;font-size:12px}.menu-item-label[data-v-d3d2bd8b]{margin-bottom:0;margin-right:12px}.menu-item-buttons[data-v-d3d2bd8b]{display:flex;justify-content:space-between;margin:10px 0 6px}.filter-clear-button-container[data-v-d3d2bd8b]{padding:12px 20px 0;padding:var(--kui-space-50, 12px) var(--kui-space-70, 20px) 0}fieldset[data-v-ccd29028]{margin:0;min-width:0;padding:0}.kong-ui-entity-form-section[data-v-ccd29028]{border:0}.kong-ui-entity-form-section .form-section-wrapper[data-v-ccd29028]{column-gap:16px;column-gap:var(--kui-space-60, 16px);display:flex;flex-direction:column;padding-bottom:64px;padding-bottom:var(--kui-space-130, 64px);row-gap:12px;row-gap:var(--kui-space-50, 12px);width:100%}@media (min-width: 1024px){.kong-ui-entity-form-section .form-section-wrapper[data-v-ccd29028]{flex-direction:row}}.kong-ui-entity-form-section .form-section-wrapper .form-section-info[data-v-ccd29028]{flex:1}@media (min-width: 1024px){.kong-ui-entity-form-section .form-section-wrapper .form-section-info[data-v-ccd29028]{max-width:350px}.kong-ui-entity-form-section .form-section-wrapper .form-section-info.sticky[data-v-ccd29028]{height:fit-content;margin-bottom:16px;margin-bottom:var(--kui-space-60, 16px);position:sticky;top:16px}}.kong-ui-entity-form-section .form-section-wrapper .form-section-info .form-section-title[data-v-ccd29028]{color:#000933;color:var(--kui-color-text, #000933);font-size:16px;font-size:var(--kui-font-size-40, 16px);font-weight:700;font-weight:var(--kui-font-weight-bold, 700);line-height:20px;line-height:var(--kui-line-height-30, 20px);margin-bottom:8px;margin-bottom:var(--kui-space-40, 8px);margin-top:0;margin-top:var(--kui-space-0, 0px)}.kong-ui-entity-form-section .form-section-wrapper .form-section-info .form-section-description[data-v-ccd29028],.kong-ui-entity-form-section .form-section-wrapper .form-section-info .form-section-description p[data-v-ccd29028],.kong-ui-entity-form-section .form-section-wrapper .form-section-info .form-section-description[data-v-ccd29028] p{color:#000933;color:var(--kui-color-text, #000933);font-size:14px;font-size:var(--kui-font-size-30, 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-ccd29028]{margin-top:32px;margin-top:var(--kui-space-90, 32px)}.kong-ui-entity-form-section .form-section-wrapper .form-section-content[data-v-ccd29028]{flex:1}.kong-ui-entity-form-section .form-section-wrapper .form-section-content[data-v-ccd29028]>*:not(:first-child){margin-top:24px;margin-top:var(--kui-space-80, 24px)}.kong-ui-entity-form-section.has-divider .form-section-wrapper[data-v-ccd29028]{border-bottom:1px solid #e0e4ea;border-bottom:var(--kui-border-width-10, 1px) solid var(--kui-color-border, #e0e4ea)}.kong-ui-entity-form-block .header[data-v-8e48a559]{align-items:flex-start;display:flex;gap:8px;gap:var(--kui-space-40, 8px)}.kong-ui-entity-form-block .step[data-v-8e48a559]{align-items:center;background:#fff;background:var(--kui-color-background, #ffffff);border:1px solid #afb7c5;border:1px solid var(--kui-color-border-neutral-weak, #afb7c5);border-radius:100px;border-radius:var(--kui-border-radius-round, 100px);display:flex;flex:0 0 auto;height:32px;justify-content:center;padding:4px;padding:var(--kui-space-20, 4px);width:32px}.kong-ui-entity-form-block .header-content[data-v-8e48a559]{align-items:flex-start;display:flex;flex:1 1 auto;flex-direction:column;gap:8px;gap:var(--kui-space-40, 8px);padding-top:4px;padding-top:var(--kui-space-20, 4px)}.kong-ui-entity-form-block .header-title[data-v-8e48a559]{color:#000933;color:var(--kui-color-text, #000933);font-size:18px;font-size:var(--kui-font-size-50, 18px);font-weight:700;font-weight:var(--kui-font-weight-bold, 700);line-height:24px;line-height:var(--kui-line-height-40, 24px);margin:0}.kong-ui-entity-form-block .header-description[data-v-8e48a559]{color:#52596e;color:var(--kui-color-text-neutral-strong, #52596e);font-size:14px;font-size:var(--kui-font-size-30, 14px);line-height:20px;line-height:var(--kui-line-height-30, 20px);margin:0}.kong-ui-entity-form-block .header-extra[data-v-8e48a559]{align-items:center;display:flex;flex:0 0 auto;gap:8px;gap:var(--kui-space-40, 8px);justify-content:flex-end}.kong-ui-entity-form-block .content[data-v-8e48a559]{background:#f9fafb;background:var(--kui-color-background-neutral-weakest, #f9fafb);border:1px solid #e0e4ea;border:var(--kui-border-width-10, 1px) solid var(--kui-color-border, #e0e4ea);border-radius:6px;border-radius:var(--kui-border-radius-30, 6px);display:flex;flex-direction:column;gap:20px;gap:var(--kui-space-70, 20px);margin-top:20px;margin-top:var(--kui-space-70, 20px);padding:20px 24px;padding:var(--kui-space-70, 20px) var(--kui-space-80, 24px)}.kong-ui-entity-form-block.stepped .content[data-v-8e48a559]{margin-left:16px;margin-left:var(--kui-space-60, 16px)}.kong-ui-public-entity-link[data-v-a18d7efa]{align-items:center;display:flex}.kong-ui-public-entity-link .deleted-entity[data-v-a18d7efa]{font-style:italic}.kong-ui-public-entity-link .entity-link[data-v-a18d7efa]{display:flex;flex:1}.kong-ui-public-entity-link .entity-link[data-v-a18d7efa] .external-link-icon{color:#0044f4;color:var(--kui-color-text-primary, #0044f4);margin-left:4px;margin-left:var(--kui-space-20, 4px);padding:2px;padding:var(--kui-space-10, 2px)}.kong-ui-public-entity-link .entity-link-label[data-v-a18d7efa]{display:inline-block;font-weight:400;font-weight:var(--kui-font-weight-regular, 400);max-width:90%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.kong-ui-public-entity-link .copy-uuid-tooltip[data-v-a18d7efa]{align-items:center;cursor:pointer;display:flex}.kong-ui-public-entity-link .copy-uuid-tooltip .entity-link-copy-id[data-v-a18d7efa]{margin-left:2px;margin-left:var(--kui-space-10, 2px)}.kong-ui-public-entity-empty-state[data-v-0b2e9081]{align-items:center;background-color:#fff;background-color:var(--kui-color-background, #ffffff);box-sizing:border-box;display:flex;flex-direction:column;font-family:Inter,Roboto,Helvetica,sans-serif;font-family:var(--kui-font-family-text, "Inter", Roboto, Helvetica, sans-serif);gap:24px;gap:var(--kui-space-80, 24px);padding:64px 0;padding:var(--kui-space-130, 64px) var(--kui-space-0, 0px);width:100%}@media (min-width: 640px){.kong-ui-public-entity-empty-state[data-v-0b2e9081]{padding:64px 96px;padding:var(--kui-space-130, 64px) var(--kui-space-150, 96px)}}.kong-ui-public-entity-empty-state .empty-state-image[data-v-0b2e9081]{margin-bottom:8px;margin-bottom:var(--kui-space-40, 8px)}.kong-ui-public-entity-empty-state .entity-empty-state-content[data-v-0b2e9081]{align-items:center;display:flex;flex-direction:column;gap:8px;gap:var(--kui-space-40, 8px);text-align:center;width:100%}.kong-ui-public-entity-empty-state .entity-empty-state-content .entity-empty-state-title h1[data-v-0b2e9081]{align-items:center;color:#000933;color:var(--kui-color-text, #000933);display:flex;font-size:24px;font-size:var(--kui-font-size-70, 24px);font-weight:700;font-weight:var(--kui-font-weight-bold, 700);gap:8px;gap:var(--kui-space-40, 8px);line-height:32px;line-height:var(--kui-line-height-60, 32px);margin:0;margin:var(--kui-space-0, 0px)}.kong-ui-public-entity-empty-state .entity-empty-state-content .entity-empty-state-title h1.secondary[data-v-0b2e9081]{font-size:18px;font-size:var(--kui-font-size-50, 18px)}.kong-ui-public-entity-empty-state .entity-empty-state-description[data-v-0b2e9081],.kong-ui-public-entity-empty-state .entity-empty-state-pricing[data-v-0b2e9081]{color:#52596e;color:var(--kui-color-text-neutral-strong, #52596e);font-size:14px;font-size:var(--kui-font-size-30, 14px);font-weight:400;font-weight:var(--kui-font-weight-regular, 400);line-height:20px;line-height:var(--kui-line-height-30, 20px);max-width:640px}.kong-ui-public-entity-empty-state .entity-empty-state-description p[data-v-0b2e9081],.kong-ui-public-entity-empty-state .entity-empty-state-pricing p[data-v-0b2e9081]{margin:0;margin:var(--kui-space-0, 0px)}.kong-ui-public-entity-empty-state .entity-empty-state-pricing[data-v-0b2e9081]{margin-top:16px;margin-top:var(--kui-space-60, 16px)}.kong-ui-public-entity-empty-state .entity-empty-state-message[data-v-0b2e9081]{color:#52596e;color:var(--kui-color-text-neutral-strong, #52596e)}.kong-ui-public-entity-empty-state .entity-empty-state-action[data-v-0b2e9081]{align-items:center;display:flex;gap:12px;gap:var(--kui-space-50, 12px)}.kong-ui-public-entity-empty-state .entity-empty-state-card-container[data-v-0b2e9081]{display:flex;flex-wrap:wrap;gap:16px;gap:var(--kui-space-60, 16px);justify-content:space-around;margin-top:8px;margin-top:var(--kui-space-40, 8px);width:312px}@media (min-width: 640px){.kong-ui-public-entity-empty-state .entity-empty-state-card-container[data-v-0b2e9081]{width:calc(624px + kui-space-60);width:calc(2 * 312px + var(--kui-space-60, kui-space-60))}}.kong-ui-public-entity-empty-state .entity-empty-state-card-container .entity-empty-state-card[data-v-0b2e9081]{background-color:#f9fafb;background-color:var(--kui-color-background-neutral-weakest, #f9fafb);border:1px solid #e0e4ea;border:var(--kui-border-width-10, 1px) solid var(--kui-color-border, #e0e4ea);border-radius:6px;border-radius:var(--kui-border-radius-30, 6px);color:#afb7c5;color:var(--kui-color-text-neutral-weak, #afb7c5);gap:8px;gap:var(--kui-space-40, 8px);height:160px;padding:20px;padding:var(--kui-space-70, 20px);width:312px}.kong-ui-public-entity-empty-state .entity-empty-state-card-container .entity-empty-state-card .feature-icon[data-v-0b2e9081]{color:#3a3f51;color:var(--kui-color-text-neutral-stronger, #3a3f51);display:flex;margin-bottom:12px;margin-bottom:var(--kui-space-50, 12px)}.kong-ui-public-entity-empty-state .entity-empty-state-card-container .entity-empty-state-card .feature-icon[data-v-0b2e9081] .kui-icon{height:20px!important;height:var(--kui-icon-size-40, 20px)!important;width:20px!important;width:var(--kui-icon-size-40, 20px)!important}.kong-ui-public-entity-empty-state .entity-empty-state-card-container .entity-empty-state-card[data-v-0b2e9081] .card-title{font-size:14px;font-size:var(--kui-font-size-30, 14px);font-weight:600;font-weight:var(--kui-font-weight-semibold, 600)}.kong-ui-public-entity-empty-state .entity-empty-state-card-container .entity-empty-state-card[data-v-0b2e9081] .card-content{-webkit-box-orient:vertical;color:#6c7489;color:var(--kui-color-text-neutral, #6c7489);display:-webkit-box;-webkit-line-clamp:3;line-clamp:3;overflow:hidden}.kong-ui-public-entity-empty-state .entity-empty-state-bottom-container[data-v-0b2e9081]{border-top:1px solid #e0e4ea;border-top:var(--kui-border-width-10, 1px) solid var(--kui-color-border, #e0e4ea);display:flex;flex-direction:column;gap:16px;gap:var(--kui-space-60, 16px);padding-top:48px;padding-top:var(--kui-space-110, 48px);width:100%}@media (min-width: 640px){.kong-ui-public-entity-empty-state .entity-empty-state-bottom-container[data-v-0b2e9081]{width:calc(624px + kui-space-60);width:calc(2 * 312px + var(--kui-space-60, kui-space-60))}}.button-row[data-v-fb0f3023]{align-items:center;display:flex;gap:12px;gap:var(--kui-space-50, 12px)}.kong-ui-entities-gateway-services-list[data-v-fb0f3023]{width:100%}.kong-ui-entities-gateway-services-list .kong-ui-entity-filter-input[data-v-fb0f3023]{margin-right:12px;margin-right:var(--kui-space-50, 12px)}.tls-sans-field-container .tls-sans-field-input[data-v-9b2cc5e4]{align-items:center;display:flex;gap:24px;gap:var(--kui-space-80, 24px)}.tls-sans-field-container .tls-sans-field-input[data-v-9b2cc5e4]:not(:last-child){margin-bottom:16px;margin-bottom:var(--kui-space-60, 16px)}.tls-sans-field-container .tls-sans-field-controls[data-v-9b2cc5e4]{display:flex;gap:4px;gap:var(--kui-space-20, 4px)}.kong-ui-entities-gateway-service-form[data-v-db4867fb]{width:100%}.kong-ui-entities-gateway-service-form[data-v-db4867fb] .k-tooltip{max-width:300px}.kong-ui-entities-gateway-service-form[data-v-db4867fb] .k-radio{align-items:normal}.kong-ui-entities-gateway-service-form[data-v-db4867fb] .form-section-wrapper{padding-bottom:48px;padding-bottom:var(--kui-space-110, 48px)}.kong-ui-entities-gateway-service-form .form-error-list[data-v-db4867fb]{list-style-type:disc;margin:0;margin:var(--kui-space-0, 0px);padding-left:16px;padding-left:var(--kui-space-60, 16px)}.kong-ui-entities-gateway-service-form .gateway-service-form-margin-top[data-v-db4867fb]{margin-top:16px;margin-top:var(--kui-space-60, 16px)}.kong-ui-entities-gateway-service-form .gateway-service-form-advanced-fields[data-v-db4867fb]{display:flex;flex-direction:column;gap:16px;gap:var(--kui-space-60, 16px);margin-left:12px;margin-left:var(--kui-space-50, 12px)}.kong-ui-entities-gateway-service-form .gateway-service-form-tags[data-v-db4867fb]{margin-left:12px;margin-left:var(--kui-space-50, 12px)}.kong-ui-entities-gateway-service-form .gateway-service-form-traffic-label[data-v-db4867fb]{margin-bottom:16px;margin-bottom:var(--kui-space-60, 16px)}.kong-ui-entities-gateway-service-form .gateway-service-url-input[data-v-db4867fb],.kong-ui-entities-gateway-service-form .gateway-service-url-input[data-v-db4867fb] .input-element-wrapper{display:flex}.kong-ui-entities-gateway-service-form .gateway-service-form-general-info[data-v-db4867fb]{display:flex;flex-direction:column;gap:24px;gap:var(--kui-space-80, 24px)}.kong-ui-entities-gateway-service-form .gateway-service-form-group-selection-wrapper[data-v-db4867fb]{display:flex;flex-direction:row;gap:16px;gap:var(--kui-space-60, 16px)}.kong-ui-entities-gateway-service-form .gateway-service-form-group-selection-wrapper[data-v-db4867fb] .radio-label-wrapper{height:auto}.kong-ui-entities-gateway-service-form .checkbox-aligned-radio[data-v-db4867fb]{margin:4px;margin:var(--kui-space-20, 4px);padding-left:24px;padding-left:var(--kui-space-80, 24px)}.slide-fade-enter-active[data-v-db4867fb]{transition:all .5s ease}.slide-fade-enter-from[data-v-db4867fb]{opacity:0;transform:translateY(-5px)}.slide-fade-leave-to[data-v-db4867fb]{opacity:0;transform:translateY(5px)}
|
|
1
|
+
@charset "UTF-8";.config-card-fieldset[data-v-5baf64ca]{border:solid 1px #e0e4ea;border:solid var(--kui-border-width-10, 1px) var(--kui-color-border, #e0e4ea);border-radius:4px;margin-bottom:8px;margin-bottom:var(--kui-space-40, 8px);margin-top:4px}.config-card-fieldset-title[data-v-5baf64ca]{font-size:14px;font-size:var(--kui-font-size-30, 14px);padding:0 8px;padding:0 var(--kui-space-40, 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;margin:var(--kui-space-0, 0px) var(--kui-space-60, 16px)}.config-card-json-item .config-card-details-row:last-of-type,fieldset.config-card-fieldset .config-card-details-row:last-of-type{border-bottom:none}[data-v-2feb8c2e] .k-button.navigation-button{font-size:14px;font-weight:400}.config-card-details-row[data-v-b6987b3c]{align-items:center;border-bottom:var(--v25a763c4);box-sizing:border-box;display:var(--v1ac90e12);padding:16px;padding:var(--kui-space-60, 16px);padding-left:0;width:100%}.config-card-details-row .config-card-details-label[data-v-b6987b3c]{box-sizing:border-box;padding-right:16px;padding-right:var(--kui-space-60, 16px);width:var(--v45a716ee)}.config-card-details-row .config-card-details-label label[data-v-b6987b3c]{color:#3a3f51;color:var(--kui-color-text-neutral-stronger, #3a3f51);display:inline-flex;max-width:100%}.config-card-details-row .config-card-details-label label .label-content[data-v-b6987b3c]{line-height:initial;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.config-card-details-row .config-card-details-label label .k-popover[data-v-b6987b3c]{min-width:0}.config-card-details-row .config-card-details-value[data-v-b6987b3c]{box-sizing:border-box;width:var(--v45a28b38)}.config-card-details-row .config-card-details-value .truncated[data-v-b6987b3c]{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-b6987b3c]{overflow-wrap:anywhere}.config-card-details-row .config-card-details-value .copy-uuid-array[data-v-b6987b3c] .k-copy:not(:last-of-type){margin-bottom:8px;margin-bottom:var(--kui-space-40, 8px)}.config-card-details-row .config-card-details-value .method-badge-array[data-v-b6987b3c]{display:flex;flex-wrap:wrap;row-gap:10px}.config-card-details-row .config-badge[data-v-b6987b3c]{margin-right:4px;margin-right:var(--kui-space-20, 4px)}.config-card-details-row[data-v-b6987b3c] .k-label{margin-bottom:0}.config-card-details-row[data-v-b6987b3c] .k-label .kong-icon-infoFilled{display:flex}.config-card-details-row[data-v-b6987b3c] .config-card-details-row{width:auto}.json-content.k-code-block{border-top-left-radius:0;border-top-left-radius:var(--kui-border-radius-0, 0px);border-top-right-radius:0;border-top-right-radius:var(--kui-border-radius-0, 0px)}.json-endpoint{align-items:baseline;background-color:#000933;background-color:var(--kui-color-background-inverse, #000933);border-bottom:1px solid rgba(255,255,255,.2);border-bottom:var(--kui-border-width-10, 1px) solid var(--kui-color-border-inverse, rgba(255, 255, 255, .2));border-top-left-radius:8px;border-top-left-radius:var(--kui-border-radius-40, 8px);border-top-right-radius:8px;border-top-right-radius:var(--kui-border-radius-40, 8px);display:flex;padding:8px 0 8px 12px;padding:var(--kui-space-40, 8px) var(--kui-space-0, 0px) var(--kui-space-40, 8px) var(--kui-space-50, 12px)}.json-endpoint .k-code-block{flex:auto;z-index:2}.json-endpoint .k-code-block .code-block-content{padding-bottom:0;padding-bottom:var(--kui-space-0, 0px);padding-top:0;padding-top:var(--kui-space-0, 0px)}.json-endpoint .k-code-block .code-block-secondary-actions{margin-top:0!important}.json-endpoint code{direction:rtl;max-width:var(--v775b4bd8);overflow:hidden!important;text-align:left;text-overflow:ellipsis;white-space:nowrap}.deck-config .k-select[data-v-d4838dcc]{margin-bottom:16px;margin-bottom:var(--kui-space-60, 16px)}.deck-config .k-code-block[data-v-d4838dcc]{margin-top:12px;margin-top:var(--kui-space-50, 12px)}.config-card-prop-section-title[data-v-2a7f1b10]{color:#000933;color:var(--kui-color-text, #000933);font-size:16px;font-size:var(--kui-font-size-40, 16px);font-weight:600;font-weight:var(--kui-font-weight-semibold, 600);margin-bottom:16px;margin-bottom:var(--kui-space-60, 16px);margin-top:48px;margin-top:var(--kui-space-110, 48px)}.kong-ui-entity-base-config-card .config-card-actions[data-v-9a0c5e24]{align-items:center;display:flex}.kong-ui-entity-base-config-card .config-card-actions .config-format-select-label[data-v-9a0c5e24]{margin-bottom:0;margin-bottom:var(--kui-space-0, 0px);margin-right:8px;margin-right:var(--kui-space-40, 8px)}.kong-ui-entity-base-config-card .config-card-prop-section-title[data-v-9a0c5e24]{color:#000933;color:var(--kui-color-text, #000933);font-size:16px;font-size:var(--kui-font-size-40, 16px);font-weight:600;margin-bottom:16px;margin-bottom:var(--kui-space-60, 16px);margin-top:48px;margin-top:var(--kui-space-110, 48px)}.kong-ui-entity-base-config-card[data-v-9a0c5e24]:not(:has(.config-card-details-after)) .config-card-details-row:last-of-type{border-bottom:none}.kong-ui-entity-base-config-card .config-card-details-after[data-v-9a0c5e24]{padding-top:16px;padding-top:var(--kui-space-60, 16px)}.kong-ui-entity-base-config-card .book-icon[data-v-9a0c5e24]{margin-left:8px;margin-left:var(--kui-space-40, 8px);padding:0;padding:var(--kui-space-0, 0px)}.kong-ui-entity-base-form[data-v-a447ea3f]{box-sizing:border-box;max-width:1536px;max-width:var(--kui-breakpoint-desktop, 1536px);width:100%}.kong-ui-entity-base-form[data-v-a447ea3f] .k-slideout-title{color:#000933!important;color:var(--kui-color-text, #000933)!important;font-size:24px!important;font-size:var(--kui-font-size-70, 24px)!important;font-weight:700!important;font-weight:var(--kui-font-weight-bold, 700)!important;line-height:32px!important;line-height:var(--kui-line-height-60, 32px)!important;margin-bottom:16px!important;margin-bottom:var(--kui-space-60, 16px)!important}.kong-ui-entity-base-form[data-v-a447ea3f] .k-card.content-card{padding:0 16px!important;padding:var(--kui-space-0, 0px) var(--kui-space-60, 16px)!important}.kong-ui-entity-base-form[data-v-a447ea3f] .tab-item>div.tab-link.has-panels{color:#6c7489!important;color:var(--kui-color-text-neutral, #6c7489)!important;font-size:14px!important;font-size:var(--kui-font-size-30, 14px)!important;font-weight:700!important;font-weight:var(--kui-font-weight-bold, 700)!important;line-height:24px!important;line-height:var(--kui-line-height-40, 24px)!important}.kong-ui-entity-base-form[data-v-a447ea3f] .tab-item.active>div.tab-link.has-panels{color:#000933!important;color:var(--kui-color-text, #000933)!important;font-weight:600!important;font-weight:var(--kui-font-weight-semibold, 600)!important}.kong-ui-entity-base-form[data-v-a447ea3f] .slideout-content{overflow-y:unset!important}.kong-ui-entity-base-form.new-form-layout[data-v-a447ea3f]{border:none;padding:0}.kong-ui-entity-base-form.new-form-layout[data-v-a447ea3f]>.card-content>form>.form-actions{justify-content:flex-start;margin-top:20px;margin-top:var(--kui-space-70, 20px)}.kong-ui-entity-base-form.new-form-layout .form-error[data-v-a447ea3f]{margin:20px 0 0 16px;margin:var(--kui-space-70, 20px) 0 0 var(--kui-space-60, 16px)}.form-actions[data-v-a447ea3f]{align-items:center;display:flex;justify-content:flex-end;margin-top:24px;margin-top:var(--kui-space-80, 24px)}.form-actions[data-v-a447ea3f] .k-button:last-of-type,.form-actions[data-v-a447ea3f] .k-button:nth-last-of-type(2){margin-inline-start:16px;margin-inline-start:var(--kui-space-60, 16px)}.form-actions-reverted[data-v-a447ea3f]{direction:rtl}.content-wrapper[data-v-a3a65cac] .k-tooltip{word-break:break-all}.kong-ui-entity-base-table .toolbar-container[data-v-09e101d4]{align-items:center;display:flex;width:100%}.kong-ui-entity-base-table .toolbar-button-container[data-v-09e101d4]{margin-left:auto}.kong-ui-entity-base-table .hidden[data-v-09e101d4]{display:none}.kong-ui-entity-delete-modal .message[data-v-fc366e0c],.kong-ui-entity-delete-modal .description[data-v-fc366e0c]{line-height:20px;line-height:var(--kui-line-height-30, 20px);margin:0;margin:var(--kui-space-0, 0px)}.kong-ui-entity-delete-modal .message strong[data-v-fc366e0c]{font-weight:600;font-weight:var(--kui-font-weight-semibold, 600)}.kong-ui-entity-delete-modal .description[data-v-fc366e0c]{margin-top:32px;margin-top:var(--kui-space-90, 32px)}.kong-ui-entity-delete-modal .body-stacked-copy .description[data-v-fc366e0c]{margin-top:0;margin-top:var(--kui-space-0, 0px)}.kong-ui-entity-delete-modal .body-stacked-copy .description>p[data-v-fc366e0c]{margin:0;margin:var(--kui-space-0, 0px)}.kong-ui-entity-delete-modal .body-stacked-copy .message[data-v-fc366e0c]{margin-bottom:0;margin-bottom:var(--kui-space-0, 0px)}.kong-ui-entity-delete-modal[data-v-fc366e0c] .prompt-confirmation-text{line-height:20px;line-height:var(--kui-line-height-30, 20px);margin:0;margin:var(--kui-space-0, 0px)}.kong-ui-entity-delete-modal-stacked-copy[data-v-fc366e0c] .prompt-content+.prompt-confirmation-container{margin-top:32px;margin-top:var(--kui-space-90, 32px)}.kong-ui-entity-delete-error[data-v-fc366e0c]{margin-bottom:12px;margin-bottom:var(--kui-space-50, 12px)}.kong-ui-entity-filter-input[data-v-d3d2bd8b]{width:100%}.kong-ui-entity-filter-clear[data-v-d3d2bd8b]{cursor:pointer}.kong-ui-entity-filter[data-v-d3d2bd8b]{display:flex;position:relative}.kong-ui-entity-filter[data-v-d3d2bd8b] .menu-content{flex-direction:column}.kong-ui-entity-filter[data-v-d3d2bd8b] .k-menu-item-divider hr{margin:12px 0}.kong-ui-entity-filter-backdrop[data-v-d3d2bd8b]{bottom:0;left:0;position:fixed;right:0;top:0;z-index:1050}.kong-ui-entity-filter-menu[data-v-d3d2bd8b]{background-color:#fff;background-color:var(--kui-color-background, #ffffff);border:1px solid #afb7c5;border:var(--kui-border-width-10, 1px) solid var(--kui-color-border-neutral-weak, #afb7c5);border-radius:4px;border-radius:var(--kui-border-radius-20, 4px);box-shadow:0 4px 20px #e0e4ea;box-shadow:0 4px 20px var(--kui-color-border, #e0e4ea);left:0;margin-top:16px;padding:8px 0 12px;padding:var(--kui-space-40, 8px) 0 var(--kui-space-50, 12px);position:absolute;top:100%;width:300px;z-index:1060}.kong-ui-entity-filter-menu-item[data-v-d3d2bd8b]{border-bottom:1px solid #e0e4ea;border-bottom:var(--kui-border-width-10, 1px) solid var(--kui-color-border, #e0e4ea);color:#6c7489;color:var(--kui-color-text-neutral, #6c7489);font-size:12px;font-size:var(--kui-font-size-20, 12px);font-weight:400;font-weight:var(--kui-font-weight-regular, 400);line-height:16px;line-height:var(--kui-line-height-20, 16px);list-style:none;margin:0 20px;margin:var(--kui-space-0, 0px) var(--kui-space-70, 20px);padding:16px 0;padding:var(--kui-space-60, 16px) 0;position:relative;white-space:nowrap}.menu-item-title[data-v-d3d2bd8b]{align-items:center;cursor:pointer;display:flex;line-height:24px;line-height:var(--kui-line-height-40, 24px)}.menu-item-title.expanded[data-v-d3d2bd8b]{color:#232633;color:var(--kui-color-text-neutral-strongest, #232633)}.menu-item-expand-icon[data-v-d3d2bd8b]{margin-left:auto}.menu-item-expand-icon.expanded[data-v-d3d2bd8b]{transform:rotate(180deg)}.menu-item-indicator[data-v-d3d2bd8b]{background-color:#0044f4;background-color:var(--kui-color-background-primary, #0044f4);border-radius:50%;height:4px;margin-left:4px;width:4px}.menu-item-body[data-v-d3d2bd8b]{align-items:center;display:flex;justify-content:space-between;margin-top:16px;margin-top:var(--kui-space-60, 16px)}.menu-item-body[data-v-d3d2bd8b] .input{padding-bottom:4px!important;padding-top:4px!important}.menu-item-body[data-v-d3d2bd8b] .k-input{width:100%}.menu-item-body[data-v-d3d2bd8b] .k-select-input .input{font-size:12px}.menu-item-body[data-v-d3d2bd8b] .k-select-input .input::placeholder{color:#00000073!important;font-size:12px}.menu-item-label[data-v-d3d2bd8b]{margin-bottom:0;margin-right:12px}.menu-item-buttons[data-v-d3d2bd8b]{display:flex;justify-content:space-between;margin:10px 0 6px}.filter-clear-button-container[data-v-d3d2bd8b]{padding:12px 20px 0;padding:var(--kui-space-50, 12px) var(--kui-space-70, 20px) 0}fieldset[data-v-ccd29028]{margin:0;min-width:0;padding:0}.kong-ui-entity-form-section[data-v-ccd29028]{border:0}.kong-ui-entity-form-section .form-section-wrapper[data-v-ccd29028]{column-gap:16px;column-gap:var(--kui-space-60, 16px);display:flex;flex-direction:column;padding-bottom:64px;padding-bottom:var(--kui-space-130, 64px);row-gap:12px;row-gap:var(--kui-space-50, 12px);width:100%}@media (min-width: 1024px){.kong-ui-entity-form-section .form-section-wrapper[data-v-ccd29028]{flex-direction:row}}.kong-ui-entity-form-section .form-section-wrapper .form-section-info[data-v-ccd29028]{flex:1}@media (min-width: 1024px){.kong-ui-entity-form-section .form-section-wrapper .form-section-info[data-v-ccd29028]{max-width:350px}.kong-ui-entity-form-section .form-section-wrapper .form-section-info.sticky[data-v-ccd29028]{height:fit-content;margin-bottom:16px;margin-bottom:var(--kui-space-60, 16px);position:sticky;top:16px}}.kong-ui-entity-form-section .form-section-wrapper .form-section-info .form-section-title[data-v-ccd29028]{color:#000933;color:var(--kui-color-text, #000933);font-size:16px;font-size:var(--kui-font-size-40, 16px);font-weight:700;font-weight:var(--kui-font-weight-bold, 700);line-height:20px;line-height:var(--kui-line-height-30, 20px);margin-bottom:8px;margin-bottom:var(--kui-space-40, 8px);margin-top:0;margin-top:var(--kui-space-0, 0px)}.kong-ui-entity-form-section .form-section-wrapper .form-section-info .form-section-description[data-v-ccd29028],.kong-ui-entity-form-section .form-section-wrapper .form-section-info .form-section-description p[data-v-ccd29028],.kong-ui-entity-form-section .form-section-wrapper .form-section-info .form-section-description[data-v-ccd29028] p{color:#000933;color:var(--kui-color-text, #000933);font-size:14px;font-size:var(--kui-font-size-30, 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-ccd29028]{margin-top:32px;margin-top:var(--kui-space-90, 32px)}.kong-ui-entity-form-section .form-section-wrapper .form-section-content[data-v-ccd29028]{flex:1}.kong-ui-entity-form-section .form-section-wrapper .form-section-content[data-v-ccd29028]>*:not(:first-child){margin-top:24px;margin-top:var(--kui-space-80, 24px)}.kong-ui-entity-form-section.has-divider .form-section-wrapper[data-v-ccd29028]{border-bottom:1px solid #e0e4ea;border-bottom:var(--kui-border-width-10, 1px) solid var(--kui-color-border, #e0e4ea)}.kong-ui-entity-form-block .header[data-v-8e48a559]{align-items:flex-start;display:flex;gap:8px;gap:var(--kui-space-40, 8px)}.kong-ui-entity-form-block .step[data-v-8e48a559]{align-items:center;background:#fff;background:var(--kui-color-background, #ffffff);border:1px solid #afb7c5;border:1px solid var(--kui-color-border-neutral-weak, #afb7c5);border-radius:100px;border-radius:var(--kui-border-radius-round, 100px);display:flex;flex:0 0 auto;height:32px;justify-content:center;padding:4px;padding:var(--kui-space-20, 4px);width:32px}.kong-ui-entity-form-block .header-content[data-v-8e48a559]{align-items:flex-start;display:flex;flex:1 1 auto;flex-direction:column;gap:8px;gap:var(--kui-space-40, 8px);padding-top:4px;padding-top:var(--kui-space-20, 4px)}.kong-ui-entity-form-block .header-title[data-v-8e48a559]{color:#000933;color:var(--kui-color-text, #000933);font-size:18px;font-size:var(--kui-font-size-50, 18px);font-weight:700;font-weight:var(--kui-font-weight-bold, 700);line-height:24px;line-height:var(--kui-line-height-40, 24px);margin:0}.kong-ui-entity-form-block .header-description[data-v-8e48a559]{color:#52596e;color:var(--kui-color-text-neutral-strong, #52596e);font-size:14px;font-size:var(--kui-font-size-30, 14px);line-height:20px;line-height:var(--kui-line-height-30, 20px);margin:0}.kong-ui-entity-form-block .header-extra[data-v-8e48a559]{align-items:center;display:flex;flex:0 0 auto;gap:8px;gap:var(--kui-space-40, 8px);justify-content:flex-end}.kong-ui-entity-form-block .content[data-v-8e48a559]{background:#f9fafb;background:var(--kui-color-background-neutral-weakest, #f9fafb);border:1px solid #e0e4ea;border:var(--kui-border-width-10, 1px) solid var(--kui-color-border, #e0e4ea);border-radius:6px;border-radius:var(--kui-border-radius-30, 6px);display:flex;flex-direction:column;gap:20px;gap:var(--kui-space-70, 20px);margin-top:20px;margin-top:var(--kui-space-70, 20px);padding:20px 24px;padding:var(--kui-space-70, 20px) var(--kui-space-80, 24px)}.kong-ui-entity-form-block.stepped .content[data-v-8e48a559]{margin-left:16px;margin-left:var(--kui-space-60, 16px)}.kong-ui-public-entity-link[data-v-a18d7efa]{align-items:center;display:flex}.kong-ui-public-entity-link .deleted-entity[data-v-a18d7efa]{font-style:italic}.kong-ui-public-entity-link .entity-link[data-v-a18d7efa]{display:flex;flex:1}.kong-ui-public-entity-link .entity-link[data-v-a18d7efa] .external-link-icon{color:#0044f4;color:var(--kui-color-text-primary, #0044f4);margin-left:4px;margin-left:var(--kui-space-20, 4px);padding:2px;padding:var(--kui-space-10, 2px)}.kong-ui-public-entity-link .entity-link-label[data-v-a18d7efa]{display:inline-block;font-weight:400;font-weight:var(--kui-font-weight-regular, 400);max-width:90%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.kong-ui-public-entity-link .copy-uuid-tooltip[data-v-a18d7efa]{align-items:center;cursor:pointer;display:flex}.kong-ui-public-entity-link .copy-uuid-tooltip .entity-link-copy-id[data-v-a18d7efa]{margin-left:2px;margin-left:var(--kui-space-10, 2px)}.kong-ui-public-entity-empty-state[data-v-0b2e9081]{align-items:center;background-color:#fff;background-color:var(--kui-color-background, #ffffff);box-sizing:border-box;display:flex;flex-direction:column;font-family:Inter,Roboto,Helvetica,sans-serif;font-family:var(--kui-font-family-text, "Inter", Roboto, Helvetica, sans-serif);gap:24px;gap:var(--kui-space-80, 24px);padding:64px 0;padding:var(--kui-space-130, 64px) var(--kui-space-0, 0px);width:100%}@media (min-width: 640px){.kong-ui-public-entity-empty-state[data-v-0b2e9081]{padding:64px 96px;padding:var(--kui-space-130, 64px) var(--kui-space-150, 96px)}}.kong-ui-public-entity-empty-state .empty-state-image[data-v-0b2e9081]{margin-bottom:8px;margin-bottom:var(--kui-space-40, 8px)}.kong-ui-public-entity-empty-state .entity-empty-state-content[data-v-0b2e9081]{align-items:center;display:flex;flex-direction:column;gap:8px;gap:var(--kui-space-40, 8px);text-align:center;width:100%}.kong-ui-public-entity-empty-state .entity-empty-state-content .entity-empty-state-title h1[data-v-0b2e9081]{align-items:center;color:#000933;color:var(--kui-color-text, #000933);display:flex;font-size:24px;font-size:var(--kui-font-size-70, 24px);font-weight:700;font-weight:var(--kui-font-weight-bold, 700);gap:8px;gap:var(--kui-space-40, 8px);line-height:32px;line-height:var(--kui-line-height-60, 32px);margin:0;margin:var(--kui-space-0, 0px)}.kong-ui-public-entity-empty-state .entity-empty-state-content .entity-empty-state-title h1.secondary[data-v-0b2e9081]{font-size:18px;font-size:var(--kui-font-size-50, 18px)}.kong-ui-public-entity-empty-state .entity-empty-state-description[data-v-0b2e9081],.kong-ui-public-entity-empty-state .entity-empty-state-pricing[data-v-0b2e9081]{color:#52596e;color:var(--kui-color-text-neutral-strong, #52596e);font-size:14px;font-size:var(--kui-font-size-30, 14px);font-weight:400;font-weight:var(--kui-font-weight-regular, 400);line-height:20px;line-height:var(--kui-line-height-30, 20px);max-width:640px}.kong-ui-public-entity-empty-state .entity-empty-state-description p[data-v-0b2e9081],.kong-ui-public-entity-empty-state .entity-empty-state-pricing p[data-v-0b2e9081]{margin:0;margin:var(--kui-space-0, 0px)}.kong-ui-public-entity-empty-state .entity-empty-state-pricing[data-v-0b2e9081]{margin-top:16px;margin-top:var(--kui-space-60, 16px)}.kong-ui-public-entity-empty-state .entity-empty-state-message[data-v-0b2e9081]{color:#52596e;color:var(--kui-color-text-neutral-strong, #52596e)}.kong-ui-public-entity-empty-state .entity-empty-state-action[data-v-0b2e9081]{align-items:center;display:flex;gap:12px;gap:var(--kui-space-50, 12px)}.kong-ui-public-entity-empty-state .entity-empty-state-card-container[data-v-0b2e9081]{display:flex;flex-wrap:wrap;gap:16px;gap:var(--kui-space-60, 16px);justify-content:space-around;margin-top:8px;margin-top:var(--kui-space-40, 8px);width:312px}@media (min-width: 640px){.kong-ui-public-entity-empty-state .entity-empty-state-card-container[data-v-0b2e9081]{width:calc(624px + kui-space-60);width:calc(2 * 312px + var(--kui-space-60, kui-space-60))}}.kong-ui-public-entity-empty-state .entity-empty-state-card-container .entity-empty-state-card[data-v-0b2e9081]{background-color:#f9fafb;background-color:var(--kui-color-background-neutral-weakest, #f9fafb);border:1px solid #e0e4ea;border:var(--kui-border-width-10, 1px) solid var(--kui-color-border, #e0e4ea);border-radius:6px;border-radius:var(--kui-border-radius-30, 6px);color:#afb7c5;color:var(--kui-color-text-neutral-weak, #afb7c5);gap:8px;gap:var(--kui-space-40, 8px);height:160px;padding:20px;padding:var(--kui-space-70, 20px);width:312px}.kong-ui-public-entity-empty-state .entity-empty-state-card-container .entity-empty-state-card .feature-icon[data-v-0b2e9081]{color:#3a3f51;color:var(--kui-color-text-neutral-stronger, #3a3f51);display:flex;margin-bottom:12px;margin-bottom:var(--kui-space-50, 12px)}.kong-ui-public-entity-empty-state .entity-empty-state-card-container .entity-empty-state-card .feature-icon[data-v-0b2e9081] .kui-icon{height:20px!important;height:var(--kui-icon-size-40, 20px)!important;width:20px!important;width:var(--kui-icon-size-40, 20px)!important}.kong-ui-public-entity-empty-state .entity-empty-state-card-container .entity-empty-state-card[data-v-0b2e9081] .card-title{font-size:14px;font-size:var(--kui-font-size-30, 14px);font-weight:600;font-weight:var(--kui-font-weight-semibold, 600)}.kong-ui-public-entity-empty-state .entity-empty-state-card-container .entity-empty-state-card[data-v-0b2e9081] .card-content{-webkit-box-orient:vertical;color:#6c7489;color:var(--kui-color-text-neutral, #6c7489);display:-webkit-box;-webkit-line-clamp:3;line-clamp:3;overflow:hidden}.kong-ui-public-entity-empty-state .entity-empty-state-bottom-container[data-v-0b2e9081]{border-top:1px solid #e0e4ea;border-top:var(--kui-border-width-10, 1px) solid var(--kui-color-border, #e0e4ea);display:flex;flex-direction:column;gap:16px;gap:var(--kui-space-60, 16px);padding-top:48px;padding-top:var(--kui-space-110, 48px);width:100%}@media (min-width: 640px){.kong-ui-public-entity-empty-state .entity-empty-state-bottom-container[data-v-0b2e9081]{width:calc(624px + kui-space-60);width:calc(2 * 312px + var(--kui-space-60, kui-space-60))}}.button-row[data-v-dbcbc21c]{align-items:center;display:flex;gap:12px;gap:var(--kui-space-50, 12px)}.kong-ui-entities-gateway-services-list[data-v-dbcbc21c]{width:100%}.kong-ui-entities-gateway-services-list .kong-ui-entity-filter-input[data-v-dbcbc21c]{margin-right:12px;margin-right:var(--kui-space-50, 12px)}.tls-sans-field-container .tls-sans-field-input[data-v-9b2cc5e4]{align-items:center;display:flex;gap:24px;gap:var(--kui-space-80, 24px)}.tls-sans-field-container .tls-sans-field-input[data-v-9b2cc5e4]:not(:last-child){margin-bottom:16px;margin-bottom:var(--kui-space-60, 16px)}.tls-sans-field-container .tls-sans-field-controls[data-v-9b2cc5e4]{display:flex;gap:4px;gap:var(--kui-space-20, 4px)}.kong-ui-entities-gateway-service-form[data-v-77eb241d]{width:100%}.kong-ui-entities-gateway-service-form[data-v-77eb241d] .k-tooltip{max-width:300px}.kong-ui-entities-gateway-service-form[data-v-77eb241d] .k-radio{align-items:normal}.kong-ui-entities-gateway-service-form[data-v-77eb241d] .form-section-wrapper{padding-bottom:48px;padding-bottom:var(--kui-space-110, 48px)}.kong-ui-entities-gateway-service-form .form-error-list[data-v-77eb241d]{list-style-type:disc;margin:0;margin:var(--kui-space-0, 0px);padding-left:16px;padding-left:var(--kui-space-60, 16px)}.kong-ui-entities-gateway-service-form .gateway-service-form-margin-top[data-v-77eb241d]{margin-top:16px;margin-top:var(--kui-space-60, 16px)}.kong-ui-entities-gateway-service-form .gateway-service-form-advanced-fields[data-v-77eb241d]{display:flex;flex-direction:column;gap:16px;gap:var(--kui-space-60, 16px);margin-left:12px;margin-left:var(--kui-space-50, 12px)}.kong-ui-entities-gateway-service-form .gateway-service-form-tags[data-v-77eb241d]{margin-left:12px;margin-left:var(--kui-space-50, 12px)}.kong-ui-entities-gateway-service-form .gateway-service-form-traffic-label[data-v-77eb241d]{margin-bottom:16px;margin-bottom:var(--kui-space-60, 16px)}.kong-ui-entities-gateway-service-form .gateway-service-url-input[data-v-77eb241d],.kong-ui-entities-gateway-service-form .gateway-service-url-input[data-v-77eb241d] .input-element-wrapper{display:flex}.kong-ui-entities-gateway-service-form .gateway-service-form-general-info[data-v-77eb241d]{display:flex;flex-direction:column;gap:24px;gap:var(--kui-space-80, 24px)}.kong-ui-entities-gateway-service-form .gateway-service-form-group-selection-wrapper[data-v-77eb241d]{display:flex;flex-direction:row;gap:16px;gap:var(--kui-space-60, 16px)}.kong-ui-entities-gateway-service-form .gateway-service-form-group-selection-wrapper[data-v-77eb241d] .radio-label-wrapper{height:auto}.kong-ui-entities-gateway-service-form .checkbox-aligned-radio[data-v-77eb241d]{margin:4px;margin:var(--kui-space-20, 4px);padding-left:24px;padding-left:var(--kui-space-80, 24px)}.slide-fade-enter-active[data-v-77eb241d]{transition:all .5s ease}.slide-fade-enter-from[data-v-77eb241d]{opacity:0;transform:translateY(-5px)}.slide-fade-leave-to[data-v-77eb241d]{opacity:0;transform:translateY(5px)}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"GatewayServiceForm.vue.d.ts","sourceRoot":"","sources":["../../../src/components/GatewayServiceForm.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"GatewayServiceForm.vue.d.ts","sourceRoot":"","sources":["../../../src/components/GatewayServiceForm.vue"],"names":[],"mappings":"AAkvCA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,KAAK,CAAA;AAGnC,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,OAAO,CAAA;AAC1C,OAAO,KAAK,EACV,+BAA+B,EAC/B,mCAAmC,EAIpC,MAAM,UAAU,CAAA;AAejB,OAAO,gDAAgD,CAAA;AAq7DvD,QAAA,IAAI,SAAS;;kBAr9CiB,IAAI;kBA4FH,OAAO,CAAC,aAAa,GAAG,SAAS,CAAC;CAy3CvC,CAAE;AAC5B,KAAK,WAAW,GAAG,EAAE,GACnB;IAAE,cAAc,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,SAAS,KAAK,GAAG,CAAA;CAAE,CAAC;AAKxD,QAAA,MAAM,UAAU;IAId,oHAAoH;;cAElG,QAAQ,CAAC,+BAA+B,GAAG,mCAAmC,CAAC;;4BAE3E,+BAA+B,GAAG,mCAAmC,KAAG,OAAO;;IAQrG,qGAAqG;;;;;;IAMrG,yDAAyD;;;;;;IAMzD,iDAAiD;;;;;;IAMjD,4CAA4C;;;;;;;uBAjmDtB,IAAI;;wBA+LG,OAAO,CAAC,aAAa,GAAG,SAAS,CAAC;;qBAxHzC,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,KAAG,IAAI;;;;;;;;;;IA4/ChD,oHAAoH;;cAElG,QAAQ,CAAC,+BAA+B,GAAG,mCAAmC,CAAC;;4BAE3E,+BAA+B,GAAG,mCAAmC,KAAG,OAAO;;IAQrG,qGAAqG;;;;;;IAMrG,yDAAyD;;;;;;IAMzD,iDAAiD;;;;;;IAMjD,4CAA4C;;;;;;;;;;;;;;;;;;;4EAO5C,CAAC;AACH,QAAA,MAAM,YAAY,EAAS,eAAe,CAAC,OAAO,UAAU,EAAE,WAAW,CAAC,CAAC;wBACtD,OAAO,YAAY;AAAxC,wBAAyC;AACzC,KAAK,eAAe,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IAChC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KACV,CAAA;CACD,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"GatewayServiceList.vue.d.ts","sourceRoot":"","sources":["../../../src/components/GatewayServiceList.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"GatewayServiceList.vue.d.ts","sourceRoot":"","sources":["../../../src/components/GatewayServiceList.vue"],"names":[],"mappings":"AAotBA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,KAAK,CAAA;AAMnC,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,OAAO,CAAA;AASvC,OAAO,KAAK,EACV,mCAAmC,EACnC,+BAA+B,EAC/B,SAAS,EACT,gBAAgB,EACjB,MAAM,UAAU,CAAA;AAejB,OAAO,gDAAgD,CAAA;AAqyCvD,QAAA,MAAM,YAAY;IAGhB,oHAAoH;;cAElG,QAAQ,CAAC,+BAA+B,GAAG,mCAAmC,CAAC;;4BAE3E,+BAA+B,GAAG,mCAAmC,KAAG,OAAO;;;;;;IAYrG,yHAAyH;;cAErG,QAAQ,CAAC,MAAM,OAAO,GAAG,OAAO,CAAC,OAAO,CAAC,CAAC;;;;IAI9D,2HAA2H;;cAEvG,QAAQ,CAAC,CAAC,GAAG,EAAE,SAAS,KAAK,OAAO,GAAG,OAAO,CAAC,OAAO,CAAC,CAAC;;;;IAI5E,yHAAyH;;cAErG,QAAQ,CAAC,CAAC,GAAG,EAAE,SAAS,KAAK,OAAO,GAAG,OAAO,CAAC,OAAO,CAAC,CAAC;;;;IAI5E,4IAA4I;;cAExH,QAAQ,CAAC,CAAC,GAAG,EAAE,SAAS,KAAK,OAAO,GAAG,OAAO,CAAC,OAAO,CAAC,CAAC;;;;IAI5E,8IAA8I;;cAE1H,QAAQ,CAAC,CAAC,GAAG,EAAE,SAAS,KAAK,OAAO,GAAG,OAAO,CAAC,OAAO,CAAC,CAAC;;;;IAI5E,iHAAiH;;;;;IAKjH,8CAA8C;;;;;;;;;;;;;;;;;;IAnD9C,oHAAoH;;cAElG,QAAQ,CAAC,+BAA+B,GAAG,mCAAmC,CAAC;;4BAE3E,+BAA+B,GAAG,mCAAmC,KAAG,OAAO;;;;;;IAYrG,yHAAyH;;cAErG,QAAQ,CAAC,MAAM,OAAO,GAAG,OAAO,CAAC,OAAO,CAAC,CAAC;;;;IAI9D,2HAA2H;;cAEvG,QAAQ,CAAC,CAAC,GAAG,EAAE,SAAS,KAAK,OAAO,GAAG,OAAO,CAAC,OAAO,CAAC,CAAC;;;;IAI5E,yHAAyH;;cAErG,QAAQ,CAAC,CAAC,GAAG,EAAE,SAAS,KAAK,OAAO,GAAG,OAAO,CAAC,OAAO,CAAC,CAAC;;;;IAI5E,4IAA4I;;cAExH,QAAQ,CAAC,CAAC,GAAG,EAAE,SAAS,KAAK,OAAO,GAAG,OAAO,CAAC,OAAO,CAAC,CAAC;;;;IAI5E,8IAA8I;;cAE1H,QAAQ,CAAC,CAAC,GAAG,EAAE,SAAS,KAAK,OAAO,GAAG,OAAO,CAAC,OAAO,CAAC,CAAC;;;;IAI5E,iHAAiH;;;;;IAKjH,8CAA8C;;;;;;;;;;;;;;;;;;;qBAjCX,OAAO,GAAG,OAAO,CAAC,OAAO,CAAC;qBAM1B,SAAS,KAAK,OAAO,GAAG,OAAO,CAAC,OAAO,CAAC;mBAMxC,SAAS,KAAK,OAAO,GAAG,OAAO,CAAC,OAAO,CAAC;uBAMxC,SAAS,KAAK,OAAO,GAAG,OAAO,CAAC,OAAO,CAAC;oBAMxC,SAAS,KAAK,OAAO,GAAG,OAAO,CAAC,OAAO,CAAC;;;;4EAmB3E,CAAC;wBACkB,OAAO,YAAY;AAAxC,wBAAyC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kong-ui-public/entities-gateway-services",
|
|
3
|
-
"version": "3.18.
|
|
3
|
+
"version": "3.18.3-pr.3108.eba76216f.0",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"main": "./dist/entities-gateway-services.umd.js",
|
|
6
6
|
"module": "./dist/entities-gateway-services.es.js",
|
|
@@ -26,7 +26,7 @@
|
|
|
26
26
|
"axios": "^1.15.0",
|
|
27
27
|
"vue": ">= 3.3.13 < 4",
|
|
28
28
|
"vue-router": "^4.6.4",
|
|
29
|
-
"@kong-ui-public/entities-shared": "^3.41.
|
|
29
|
+
"@kong-ui-public/entities-shared": "^3.41.10-pr.3108.eba76216f.0",
|
|
30
30
|
"@kong-ui-public/i18n": "^2.4.6"
|
|
31
31
|
},
|
|
32
32
|
"devDependencies": {
|
|
@@ -36,7 +36,7 @@
|
|
|
36
36
|
"axios": "^1.13.6",
|
|
37
37
|
"vue": "^3.5.32",
|
|
38
38
|
"vue-router": "^4.6.4",
|
|
39
|
-
"@kong-ui-public/entities-shared": "^3.41.
|
|
39
|
+
"@kong-ui-public/entities-shared": "^3.41.10-pr.3108.eba76216f.0",
|
|
40
40
|
"@kong-ui-public/i18n": "^2.4.6"
|
|
41
41
|
},
|
|
42
42
|
"repository": {
|