@kong-ui-public/entities-gateway-services 3.12.4 → 3.12.5

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.
@@ -751,7 +751,7 @@ const ee = {
751
751
  for (const [n, a] of G)
752
752
  m[n] = a;
753
753
  return m;
754
- }, mo = /* @__PURE__ */ je(Bt, [["__scopeId", "data-v-5f172c04"]]), Dt = { class: "kong-ui-gateway-service-entity-config-card" }, vo = /* @__PURE__ */ De({
754
+ }, mo = /* @__PURE__ */ je(Bt, [["__scopeId", "data-v-3cb1989f"]]), Dt = { class: "kong-ui-gateway-service-entity-config-card" }, vo = /* @__PURE__ */ De({
755
755
  __name: "GatewayServiceConfigCard",
756
756
  props: {
757
757
  /** The base konnect or kongManger config. Pass additional config props in the shared entity component as needed. */
@@ -1705,7 +1705,7 @@ const ee = {
1705
1705
  ]);
1706
1706
  };
1707
1707
  }
1708
- }), go = /* @__PURE__ */ je(ro, [["__scopeId", "data-v-2ef1cab4"]]), { validateHost: io, validatePort: lo, validateProtocol: so, validatePath: ao } = ee.useUrlValidators(), yo = () => ({
1708
+ }), go = /* @__PURE__ */ je(ro, [["__scopeId", "data-v-84fd56e4"]]), { validateHost: io, validatePort: lo, validateProtocol: so, validatePath: ao } = ee.useUrlValidators(), yo = () => ({
1709
1709
  validateHost: io,
1710
1710
  validatePort: lo,
1711
1711
  validateProtocol: so,
@@ -1 +1 @@
1
- (function(N,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):(N=typeof globalThis<"u"?globalThis:N||self,e(N["kong-ui-public-entities-gateway-services"]={},N.Vue,N.VueRouter,N.KongIcons,N["kong-ui-public-i18n"],N["kong-ui-public-entities-shared"]))})(this,function(N,e,ke,me,Ce,u){"use strict";const xe={actions:{create:"New gateway service",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",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."},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."},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 Ne(){const s=Ce.createI18n("en-us",xe);return{i18n:s,i18nT:Ce.i18nTComponent(s)}}function Se(){return{getPortFromProtocol:(B,p)=>{const n=[80,443],a=Number(p);if((a||a===0)&&!n.includes(a))return a;switch(B){case"grpcs":case"tls":case"https":case"wss":return 443;case"grpc":case"tcp":case"http":case"ws":default:return 80}}}}function Ie(){const{i18n:{t:s}}=K.useI18n();return{validateHost:m=>{if(!m||m.trim()==="")return s("gateway_services.form.errors.host.empty");const E=/^(?!:\/\/)([a-zA-Z0-9]([a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(\.([a-zA-Z0-9]([a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?))*)(\.[a-zA-Z]{1,63})?$/;return/^((25[0-5]|2[0-4][0-9]|[0-1]?[0-9]?[0-9])\.){3}(25[0-5]|2[0-4][0-9]|[0-1]?[0-9]?[0-9])$/.test(m)||E.test(m)?"":s("gateway_services.form.errors.host.invalid")},validateProtocol:(m,E)=>!m||m.trim()===""?s("gateway_services.form.errors.protocol.empty"):(m=m.slice(0,-1),E.find(l=>{if(l.value===m)return l})===void 0?s("gateway_services.form.errors.protocol.invalid"):""),validatePath:m=>!m||m===""?"":m.startsWith("/")?/[^A-Za-z0-9\-._~:/?#[\]@!$&'()*+,;=%]/.test(m)?s("gateway_services.form.errors.path.invalid"):"":s("gateway_services.form.errors.path.prefix"),validatePort:m=>{if(m==null||m==="")return"";const E=typeof m=="string"?parseInt(m,10):m;return isNaN(E)?s("gateway_services.form.errors.port.type"):E<0||E>65535?s("gateway_services.form.errors.port.invalid"):""}}}const K={useI18n:Ne,usePortFromProtocol:Se,useUrlValidators:Ie},oe="/v2/control-planes/{controlPlaneId}/core-entities",re="/{workspace}",J={list:{konnect:{all:`${oe}/services`},kongManager:{all:`${re}/services`}},form:{konnect:{create:`${oe}/services`,validate:`${oe}/v1/schemas/json/service/validate`,edit:`${oe}/services/{id}`},kongManager:{create:`${re}/services`,validate:`${re}/schemas/services/validate`,edit:`${re}/services/{id}`}}},Pe="#00abd2",Te="24px",Fe={class:"kong-ui-entities-gateway-services-list"},Be={class:"button-row"},Ae={class:"empty-state-icon-gateway"},Ue={key:1},$e=e.defineComponent({__name:"GatewayServiceList",props:{config:{type:Object,required:!0,validator:s=>!(!s||!["konnect","kongManager"].includes(s==null?void 0:s.app)||!s.createRoute||!s.getViewRoute||!s.getEditRoute||s.app==="kongManager"&&!s.isExactMatch&&!s.filterSchema)},cacheIdentifier:{type:String,default:""},canCreate:{type:Function,required:!1,default:async()=>!0},canDelete:{type:Function,required:!1,default:async()=>!0},canEdit:{type:Function,required:!1,default:async()=>!0},canRetrieve:{type:Function,required:!1,default:async()=>!0},useActionOutside:{type:Boolean,default:!1},isServerless:{type:Boolean,default:!1}},emits:["error","click:learn-more","copy:success","copy:error","delete:success","toggle:success"],setup(s,{emit:B}){var ue;const p=B,n=s,{i18n:{t:a,formatUnixTimeStamp:m}}=K.useI18n(),E=ke.useRouter(),{axiosInstance:A}=u.useAxios((ue=n.config)==null?void 0:ue.axiosRequestConfig),{hasRecords:l,handleStateChange:T}=u.useTableState(()=>D.value),V=e.computed(()=>l.value&&n.config.app==="konnect"),ge=e.computed(()=>n.config.app!=="kongManager"||!!n.config.disableSorting),Q={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}},ie={columnVisibility:{created_at:!1}},le=Q,j=e.computed(()=>{var g,y;let d=`${n.config.apiBaseUrl}${J.list[n.config.app].all}`;return n.config.app==="konnect"?d=d.replace(/{controlPlaneId}/gi,((g=n.config)==null?void 0:g.controlPlaneId)||""):n.config.app==="kongManager"&&(d=d.replace(/\/{workspace}/gi,(y=n.config)!=null&&y.workspace?`/${n.config.workspace}`:"")),d}),ye=e.computed(()=>n.config.apiBaseUrl.startsWith("/")?new URL(`${window.location.origin}${j.value}`):new URL(j.value)),D=e.ref(""),q=e.computed(()=>{const d=n.config.app==="konnect"||n.config.isExactMatch;if(d)return{isExactMatch:d,placeholder:a(`search.placeholder.${n.config.app}`)};const{name:g,enabled:y,protocol:k,host:$,port:P,path:R}=Q;return{isExactMatch:d,fields:{name:g,enabled:y,protocol:k,host:$,port:P,path:R},schema:n.config.filterSchema}}),{fetcher:_e,fetcherState:L,fetcherCacheKey:v}=u.useFetcher(e.computed(()=>({...n.config,cacheIdentifier:n.cacheIdentifier})),j),X=()=>{D.value=""},Y=()=>{v.value++},z=e.ref(null),t=e.computed(()=>({ctaPath:n.config.createRoute,ctaText:te.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:te.value?n.isServerless?a("gateway_services.list.empty_state.serverless_title"):a("gateway_services.list.empty_state.title"):a("gateway_services.title")})),w=e.ref(!1),I=e.ref(null),H=e.computed(()=>{const d={action:"disable",id:"",name:""};if(I.value){const{enabled:g,id:y,name:k}=I.value;d.action=g?"disable":"enable",d.id=y,d.name=k||y}return d}),se=d=>{w.value=!0,I.value=d},ae=()=>{w.value=!1,I.value=null},G=async()=>{var k,$;if(!await((k=n.canEdit)==null?void 0:k.call(n,I.value))||!I.value)return;const g=`${ye.value.href}/${I.value.id}`,y=!I.value.enabled;try{const{data:P}=(($=n.config)==null?void 0:$.app)==="konnect"?await A.put(g,{...I.value,enabled:y}):await A.patch(g,{...I.value,enabled:y});p("toggle:success",P),I.value.enabled=y}catch(P){p("error",P)}},ne=d=>{n.config.getControlPlaneRoute&&E.push(n.config.getControlPlaneRoute(d))},ce=async(d,g)=>{const y=d.id;if(!await g(y)){p("copy:error",{entity:d,field:"id",message:a("errors.copy")});return}p("copy:success",{entity:d,field:"id",message:a("copy.success",{val:y})})},de=async(d,g)=>{const y=JSON.stringify(d);if(!await g(y)){p("copy:error",{entity:d,message:a("errors.copy")});return}p("copy:success",{entity:d,message:a("copy.success_brief")})},fe=async d=>{var y;await((y=n.canRetrieve)==null?void 0:y.call(n,d))&&E.push(n.config.getViewRoute(d.id))},pe=d=>({label:a("actions.view"),to:n.config.getViewRoute(d)}),he=d=>({label:a("actions.edit"),to:n.config.getEditRoute(d)}),S=e.ref(void 0),M=e.ref(!1),U=e.ref(!1),W=e.ref(""),we=u.useDeleteUrlBuilder(n.config,j.value),be=d=>{S.value=d,M.value=!0,W.value=""},ee=()=>{M.value=!1,S.value=void 0},ve=async()=>{var d,g,y;if((d=S.value)!=null&&d.id){U.value=!0;try{await A.delete(we(S.value.id)),p("delete:success",S.value),ee(),v.value++}catch(k){W.value=((y=(g=k.response)==null?void 0:g.data)==null?void 0:y.message)||k.message||a("errors.delete"),p("error",k)}finally{U.value=!1}}},Ve=()=>{E.push(n.config.createRoute)};e.watch(L,d=>{var g,y,k;if(d.status===u.FetcherStatus.Error){z.value={title:a("errors.general")},(k=(y=(g=d.error)==null?void 0:g.response)==null?void 0:y.data)!=null&&k.message&&(z.value.message=d.error.response.data.message),p("error",d.error);return}z.value=null});const te=e.ref(!1);return e.onBeforeMount(async()=>{te.value=await n.canCreate()}),(d,g)=>{const y=e.resolveComponent("KButton"),k=e.resolveComponent("KBadge"),$=e.resolveComponent("KInputSwitch"),P=e.resolveComponent("KDropdownItem"),R=e.resolveComponent("KClipboardProvider");return e.openBlock(),e.createElementBlock("div",Fe,[e.createVNode(e.unref(u.EntityBaseTable),{"cache-identifier":s.cacheIdentifier,"default-table-preferences":ie,"disable-sorting":ge.value,"empty-state-options":t.value,"enable-entity-actions":"","error-message":z.value,fetcher:e.unref(_e),"fetcher-cache-key":e.unref(v),"pagination-type":"offset","preferences-storage-key":"kong-ui-entities-gateway-services-list",query:D.value,"table-headers":e.unref(le),onClearSearchInput:X,"onClick:row":g[4]||(g[4]=f=>fe(f)),onSort:Y,onState:e.unref(T)},e.createSlots({"toolbar-filter":e.withCtx(()=>[e.createVNode(e.unref(u.EntityFilter),{modelValue:D.value,"onUpdate:modelValue":g[0]||(g[0]=f=>D.value=f),config:q.value},null,8,["modelValue","config"])]),"toolbar-button":e.withCtx(()=>[(e.openBlock(),e.createBlock(e.Teleport,{disabled:!s.useActionOutside,to:"#kong-ui-app-page-header-action-button"},[e.createElementVNode("div",Be,[V.value?(e.openBlock(),e.createBlock(y,{key:0,appearance:"secondary",class:"open-learning-hub","data-testid":"gateway-services-learn-more-button",icon:"",onClick:g[1]||(g[1]=f=>d.$emit("click:learn-more"))},{default:e.withCtx(()=>[e.createVNode(e.unref(me.BookIcon),{decorative:""})]),_:1})):e.createCommentVNode("",!0),e.createVNode(e.unref(u.PermissionsWrapper),{"auth-function":()=>s.canCreate()},{default:e.withCtx(()=>[e.createVNode(y,{appearance:"primary","data-testid":"toolbar-add-gateway-service",size:s.useActionOutside?"medium":"large",to:s.config.createRoute},{default:e.withCtx(()=>[e.createVNode(e.unref(me.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:f})=>[e.createElementVNode("b",null,e.toDisplayString(f??"-"),1)]),control_plane:e.withCtx(({row:f})=>{var x;return[(x=f.x_meta)!=null&&x.cluster_id?(e.openBlock(),e.createBlock(k,{key:0,tooltip:f.x_meta.cluster_id,"truncation-tooltip":"",onClick:e.withModifiers(o=>ne(f.x_meta.cluster_id),["stop"])},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(f.x_meta.cluster_id),1)]),_:2},1032,["tooltip","onClick"])):(e.openBlock(),e.createElementBlock("b",Ue,"-"))]}),enabled:e.withCtx(({row:f})=>[e.createVNode(e.unref(u.PermissionsWrapper),{"auth-function":()=>s.canEdit(f),"force-show":""},{default:e.withCtx(({isAllowed:x})=>[e.createElementVNode("div",{onClick:g[3]||(g[3]=e.withModifiers(()=>{},["stop"]))},[e.createVNode($,{modelValue:f.enabled,"onUpdate:modelValue":o=>f.enabled=o,"data-testid":`row-${f.id}-toggle-input`,disabled:!x,onClick:e.withModifiers(o=>se(f),["prevent"])},null,8,["modelValue","onUpdate:modelValue","data-testid","disabled","onClick"])])]),_:2},1032,["auth-function"])]),tags:e.withCtx(({rowValue:f})=>[e.createVNode(e.unref(u.TableTags),{tags:f},null,8,["tags"])]),created_at:e.withCtx(({rowValue:f})=>[e.createTextVNode(e.toDisplayString(e.unref(m)(f)),1)]),updated_at:e.withCtx(({row:f,rowValue:x})=>[e.createTextVNode(e.toDisplayString(e.unref(m)(x??f.created_at)),1)]),actions:e.withCtx(({row:f})=>[e.createVNode(R,null,{default:e.withCtx(({copyToClipboard:x})=>[e.createVNode(P,{"data-testid":"action-entity-copy-id",onClick:o=>ce(f,x)},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(a)("actions.copy_id")),1)]),_:2},1032,["onClick"])]),_:2},1024),e.createVNode(R,null,{default:e.withCtx(({copyToClipboard:x})=>[e.createVNode(P,{"data-testid":"action-entity-copy-json",onClick:o=>de(f,x)},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(a)("actions.copy_json")),1)]),_:2},1032,["onClick"])]),_:2},1024),e.createVNode(e.unref(u.PermissionsWrapper),{"auth-function":()=>s.canRetrieve(f)},{default:e.withCtx(()=>[e.createVNode(P,{"data-testid":"action-entity-view","has-divider":"",item:pe(f.id)},null,8,["item"])]),_:2},1032,["auth-function"]),e.createVNode(e.unref(u.PermissionsWrapper),{"auth-function":()=>s.canEdit(f)},{default:e.withCtx(()=>[e.createVNode(P,{"data-testid":"action-entity-edit",item:he(f.id)},null,8,["item"])]),_:2},1032,["auth-function"]),e.createVNode(e.unref(u.PermissionsWrapper),{"auth-function":()=>s.canDelete(f)},{default:e.withCtx(()=>[e.createVNode(P,{danger:"","data-testid":"action-entity-delete","has-divider":"",onClick:x=>be(f)},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(a)("actions.delete.menu_label")),1)]),_:2},1032,["onClick"])]),_:2},1032,["auth-function"])]),_:2},[!D.value&&s.config.app==="konnect"?{name:"empty-state",fn:e.withCtx(()=>{var f;return[e.createVNode(e.unref(u.EntityEmptyState),{"action-button-text":e.unref(a)("gateway_services.empty_state_v2.create"),appearance:"secondary","can-create":()=>s.canCreate(),"data-testid":"gateway-services-entity-empty-state",description:e.unref(a)("gateway_services.empty_state_v2.description"),"learn-more":s.config.app==="konnect",title:e.unref(a)("gateway_services.empty_state_v2.title"),"onClick:create":Ve,"onClick:learnMore":g[2]||(g[2]=x=>d.$emit("click:learn-more"))},e.createSlots({image:e.withCtx(()=>[e.createElementVNode("div",Ae,[e.createVNode(e.unref(me.ServicesIcon),{color:e.unref(Pe),size:e.unref(Te)},null,8,["color","size"])])]),_:2},[(f=s.config)!=null&&f.isControlPlaneGroup?{name:"message",fn:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(a)("gateway_services.empty_state_v2.group")),1)]),key:"0"}:void 0]),1032,["action-button-text","can-create","description","learn-more","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(u.EntityToggleModal),{action:H.value.action,"entity-id":H.value.id,"entity-name":H.value.name,"entity-type":e.unref(a)("glossary.gateway_services"),"on-confirm":G,visible:w.value,onCancel:ae,onProceed:ae},null,8,["action","entity-id","entity-name","entity-type","visible"]),e.createVNode(e.unref(u.EntityDeleteModal),{"action-pending":U.value,description:e.unref(a)("actions.delete.description"),"entity-name":S.value&&(S.value.name||S.value.id),"entity-type":e.unref(u.EntityTypes).GatewayService,error:W.value,title:e.unref(a)("actions.delete.title"),visible:M.value,onCancel:ee,onProceed:ve},null,8,["action-pending","description","entity-name","entity-type","error","title","visible"])])}}}),Ee=(s,B)=>{const p=s.__vccOpts||s;for(const[n,a]of B)p[n]=a;return p},Re=Ee($e,[["__scopeId","data-v-5f172c04"]]),De={class:"kong-ui-gateway-service-entity-config-card"},Me=e.defineComponent({__name:"GatewayServiceConfigCard",props:{config:{type:Object,required:!0,validator:s=>!(!s||!["konnect","kongManager"].includes(s==null?void 0:s.app)||s.app==="konnect"&&!s.controlPlaneId||s.app==="kongManager"&&typeof s.workspace!="string"||!s.entityId)},configCardDoc:{type:String,default:"",required:!1},hideTitle:{type:Boolean,default:!1}},emits:["loading","fetch:error","fetch:success"],setup(s){const B=s,{i18n:{t:p},i18nT:n}=K.useI18n(),a=e.computed(()=>J.form[B.config.app].edit),{getPropValue:m}=u.useHelpers(),E=(l,T)=>m(l,T)===!0?p("gateway_services.form.fields.tls_verify_option.true.display"):p("gateway_services.form.fields.tls_verify_option.false.display"),A=e.ref({id:{},name:{tooltip:p("gateway_services.form.fields.name.tooltip")},enabled:{},updated_at:{},created_at:{},protocol:{section:u.ConfigurationSchemaSection.Basic,tooltip:p("gateway_services.form.fields.protocol.tooltip")},host:{section:u.ConfigurationSchemaSection.Basic,tooltip:p("gateway_services.form.fields.host.tooltip")},path:{section:u.ConfigurationSchemaSection.Basic,tooltip:p("gateway_services.form.fields.path.tooltip")},port:{section:u.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:u.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(l,T)=>(e.openBlock(),e.createElementBlock("div",De,[e.createVNode(e.unref(u.EntityBaseConfigCard),{config:s.config,"config-card-doc":s.configCardDoc,"config-schema":A.value,"entity-type":e.unref(u.SupportedEntityType).GatewayService,"fetch-url":a.value,"hide-title":s.hideTitle,"onFetch:error":T[0]||(T[0]=V=>l.$emit("fetch:error",V)),"onFetch:success":T[1]||(T[1]=V=>l.$emit("fetch:success",V)),onLoading:T[2]||(T[2]=V=>l.$emit("loading",V))},{"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(V=>[e.createTextVNode(e.toDisplayString(typeof e.unref(m)("rowValue",V)=="boolean"?E("rowValue",V):e.unref(p)("gateway_services.form.fields.tls_verify_option.unset.display")),1)]),client_certificate:e.withCtx(V=>[e.createTextVNode(e.toDisplayString(e.unref(m)("rowValue",V)?e.unref(m)("rowValue",V).id:"–"),1)]),_:1},8,["config","config-card-doc","config-schema","entity-type","fetch-url","hide-title"])]))}}),F={name:"Kong-Air-Flights-API",protocol:"https",path:"/flights",host:"api.kong-air.com",port:443},Ke={class:"kong-ui-entities-gateway-service-form"},qe={key:0,class:"gateway-service-form-general-info"},Le={class:"gateway-service-form-group-selection-wrapper"},Ge={key:0,class:"gateway-service-form-group-fields"},We={key:0,class:"gateway-service-form-group-fields"},Oe={key:0},je={key:0,class:"gateway-service-form-advanced-fields"},ze={class:"gateway-service-form-margin-bottom"},He={class:"gateway-service-form-margin-bottom"},Ze={class:"gateway-service-form-margin-bottom"},Je={class:"gateway-service-form-margin-bottom"},Qe={key:0,class:"gateway-service-form-margin-bottom"},Xe={key:1,class:"gateway-service-form-margin-bottom"},Ye={key:2,class:"gateway-service-form-margin-bottom"},et={key:0,class:"checkbox-aligned-radio"},tt={key:1,class:"checkbox-aligned-radio"},ot={class:"gateway-service-form-tags"},rt={class:"form-error-list"},it=Ee(e.defineComponent({__name:"GatewayServiceForm",props:{config:{type:Object,required:!0,validator:s=>!(!s||!["konnect","kongManager"].includes(s==null?void 0:s.app)||s.app==="konnect"&&!s.controlPlaneId||s.app==="kongManager"&&typeof s.workspace!="string"||!s.cancelRoute)},gatewayServiceId:{type:String,required:!1,default:""},hideSectionsInfo:{type:Boolean,required:!1,default:!1},hideTrySampleApiButton:{type:Boolean,required:!1,default:!1}},emits:["update","error","url-valid:success","url-valid:error","loading","model-updated","try-sample-api"],setup(s,{expose:B,emit:p}){var x;const n=p,a=s,m=e.ref(!0),E=ke.useRouter(),{i18nT:A,i18n:{t:l}}=K.useI18n(),{getErrorFieldsFromError:T}=u.useErrors(),{axiosInstance:V}=u.useAxios((x=a.config)==null?void 0:x.axiosRequestConfig),ge=u.useValidators(),{validateHost:Q,validatePath:ie,validatePort:le,validateProtocol:j}=K.useUrlValidators(),{objectsAreEqual:ye}=u.useHelpers(),D=e.computed(()=>J.form[a.config.app].edit),q=e.computed(()=>a.gatewayServiceId?u.EntityBaseFormType.Edit:u.EntityBaseFormType.Create),_e=e.ref(!1),L=e.computed(()=>!!a.gatewayServiceId),v=e.ref(L.value?"protocol":"url"),X=K.usePortFromProtocol(),Y=e.ref(""),z=e.computed(()=>!!Y.value||!!S("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:"",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:"",ca_certificates:"",tls_verify_enabled:"",tls_verify_value:""}}),w=e.reactive({name:"",protocol:"http",host:"",path:"",port:80,url:"",retries:5,connect_timeout:6e4,write_timeout:6e4,read_timeout:6e4,client_certificate:"",ca_certificates:"",tls_verify_enabled:!1,tls_verify_value:!1,tags:"",enabled:!0}),I=a.config.app==="konnect"||u.useGatewayFeatureSupported({gatewayInfo:a.config.gatewayInfo,supportedRange:{enterprise:["3.0"]}}),H=[{label:l("gateway_services.form.fields.protocol.options.http"),value:"http",group:"http"},{label:l("gateway_services.form.fields.protocol.options.https"),value:"https",group:"http"},{label:l("gateway_services.form.fields.protocol.options.tcp"),value:"tcp",group:"tcp"},{label:l("gateway_services.form.fields.protocol.options.tls"),value:"tls",group:"tcp"},{label:l("gateway_services.form.fields.protocol.options.tls_passthrough"),value:"tls_passthrough",group:"tcp"},{label:l("gateway_services.form.fields.protocol.options.grpc"),value:"grpc",group:"grpc"},{label:l("gateway_services.form.fields.protocol.options.grpcs"),value:"grpcs",group:"grpc"},...I?[{label:l("gateway_services.form.fields.protocol.options.ws"),value:"ws",group:"websocket"},{label:l("gateway_services.form.fields.protocol.options.wss"),value:"wss",group:"websocket"}]:[],{label:l("gateway_services.form.fields.protocol.options.udp"),value:"udp",group:"udp"}],se={url:"url",protocol:"protocol"},ae=(o,r)=>{r.value},G=o=>o?parseFloat(o):0,ne=()=>{t.fields.host=w.host,t.fields.path=w.path,t.fields.port=w.port,t.fields.protocol=w.protocol,t.fields.url=w.url,t.fields.retries=w.retries,t.fields.connect_timeout=w.connect_timeout,t.fields.write_timeout=w.write_timeout,t.fields.read_timeout=w.read_timeout,t.fields.client_certificate=w.client_certificate,t.fields.ca_certificates=w.ca_certificates,t.fields.tls_verify_enabled=w.tls_verify_enabled,t.fields.tls_verify_value=w.tls_verify_value,t.fields.enabled=w.enabled},ce=()=>{m.value=!0,U(),t.errorMessages=[],ne()},de=()=>{switch(ne(),t.fields.name=`${F.name}-${new Date().toISOString().replace(/\D/g,"").slice(0,17)}`,v.value){case"url":t.fields.url=`${F.protocol}://${F.host}${F.path}`;break;case"protocol":t.fields.host=F.host,t.fields.path=F.path,t.fields.protocol=F.protocol,t.fields.port=F.port;break;default:t.fields.url=`${F.protocol}://${F.host}${F.path}`}},fe=()=>{if(U(),t.fields.url.length)try{const o=new URL(t.fields.url),r=j(o.protocol,H);if(r)throw new Error(r);t.fields.protocol=o.protocol.slice(0,-1);const _=Q(o.hostname);if(_)throw new Error(_);t.fields.host=o.hostname;const C=ie(o.pathname);if(C)throw new Error(C);t.fields.path=o.pathname;const h=le(o.port);if(h)throw new Error(h);const b=Number(o.port);_e.value=!!b,t.fields.port=b||X.getPortFromProtocol(t.fields.protocol),n("url-valid:success")}catch{n("url-valid:error",l("gateway_services.form.errors.url.invalid")),t.formFieldErrors.url=l("gateway_services.form.errors.url.invalid")}},pe=o=>{U(o)},he=e.computed(()=>!!t.formFieldErrors.url||!!t.formFieldErrors.host||!!t.formFieldErrors.port),S=o=>{if(t.errorMessages.length)return"";const r=t.formFieldErrors;return r[o]?r[o]:""},M=o=>{U(o??void 0);const r=Q(t.fields.host);r&&(t.formFieldErrors.host=r);const _=ie(t.fields.path);_&&(t.formFieldErrors.path=_);const C=le(t.fields.port);C&&(t.formFieldErrors.port=C),W.value?n("url-valid:success"):n("url-valid:error",t.errorMessages.join(",")||l("gateway_services.form.errors.url.invalid"))},U=o=>{if(o)t.formFieldErrors[o]="";else for(let r in t.formFieldErrors)t.formFieldErrors[r]="";t.errorMessages=[]},W=e.computed(()=>{for(let o in t.formFieldErrors)if(t.formFieldErrors[o].length)return!1;return!0}),we=()=>{t.fields.url&&v.value==="url"?fe():M()},be=()=>`new-service-${new Date().toISOString().replace(/\D/g,"").slice(0,17)}`,ee=e.computed(()=>!["tcp","tls","tls_passthrough","grpc","grpcs","udp"].includes(t.fields.protocol)),ve=e.computed(()=>{if(v.value==="url")return!0;const o=["https","wss","tls"].includes(t.fields.protocol);return v.value==="protocol"&&o}),Ve=e.computed(()=>{if(v.value==="url")return!0;const o=["https","tls"].includes(t.fields.protocol);return v.value==="protocol"&&o}),te=e.computed(()=>{if(v.value==="url")return!0;const o=["https","wss","tls"].includes(t.fields.protocol);return v.value==="protocol"&&o}),ue=o=>{U("name"),Y.value=ge.utf8Name(o)},d=e.computed(()=>{const o=!L.value||!ye(t.fields,w),r=v.value==="url"&&!!t.fields.url&&W.value,_=v.value==="protocol"&&!!t.fields.host&&W.value;return o&&(r||_)}),g=o=>{var r,_,C;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=((_=o==null?void 0:o.ca_certificates)==null?void 0:_.join(","))||"",t.fields.client_certificate=((C=o==null?void 0:o.client_certificate)==null?void 0:C.id)||"",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(w,t.fields)},y=()=>{E.push(a.config.cancelRoute)},k=e.computed(()=>{var r,_;let o=`${a.config.apiBaseUrl}${J.form[a.config.app].validate}`;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,(_=a.config)!=null&&_.workspace?`/${a.config.workspace}`:"")),o=o.replace(/{id}/gi,a.gatewayServiceId),o}),$=e.computed(()=>{var r,_;let o=`${a.config.apiBaseUrl}${J.form[a.config.app][q.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,(_=a.config)!=null&&_.workspace?`/${a.config.workspace}`:"")),o=o.replace(/{id}/gi,a.gatewayServiceId),o}),P=o=>{let r="";o.url&&(r=new URL(o.url).protocol),(["https","wss","tls"].includes(o.protocol)||["https","wss","tls"].includes(r))&&(o.tls_verify=o.tls_verify_enabled?o.tls_verify_value:null),delete o.tls_verify_enabled,delete o.tls_verify_value},R=e.computed(()=>{var r,_,C,h;const o={name:t.fields.name||null,tags:t.fields.tags?(C=(_=(r=t.fields.tags)==null?void 0:r.split(","))==null?void 0:_.map(b=>String(b||"").trim()))==null?void 0:C.filter(b=>b!==""):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,tls_verify_value:t.fields.tls_verify_value,tls_verify_enabled:t.fields.tls_verify_enabled,ca_certificates:t.fields.ca_certificates?(h=t.fields.ca_certificates)==null?void 0:h.split(",").filter(b=>b!==""):null,client_certificate:t.fields.client_certificate?{id:t.fields.client_certificate}:null,write_timeout:t.fields.write_timeout,port:t.fields.port,url:t.fields.url,enabled:t.fields.enabled};return t.fields.client_certificate&&["https","wss","tls"].includes(t.fields.protocol)&&(o.client_certificate={id:t.fields.client_certificate}),t.fields.tls_verify_enabled&&["https","wss","tls"].includes(t.fields.protocol)&&(o.tls_verify=t.fields.tls_verify_value),ee.value||(o.path=null),q.value==="create"?v.value==="url"?(delete o.protocol,delete o.host,delete o.path,a.config.app==="konnect"&&delete o.port):delete o.url:q.value==="edit"&&delete o.url,o}),f=async()=>{var o,r,_,C;try{t.isReadonly=!0;const h=R.value;P(h);let b;if(await V.post(k.value,h),q.value==="create"?b=await V.post($.value,h):q.value==="edit"&&(b=((o=a.config)==null?void 0:o.app)==="konnect"?await V.put($.value,h):await V.patch($.value,h)),b){const{data:i}=b;t.fields.name=(i==null?void 0:i.name)||"",t.fields.port=i.port||X.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.ca_certificates=(_=i==null?void 0:i.ca_certificates)!=null&&_.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=(C=i==null?void 0:i.tags)!=null&&C.length?i.tags.join(", "):"",t.fields.enabled=(i==null?void 0:i.enabled)??!0,Object.assign(w,t.fields),n("update",b==null?void 0:b.data)}return b}catch(h){const{fields:b,messages:i}=T(h);t.errorMessages=i,b.length&&b.forEach(O=>{const Z=O.field;Z==="client_certificate.id"?t.formFieldErrors.client_certificate=O.message:Z.startsWith("ca_certificates")?t.formFieldErrors.ca_certificates=O.message:Object.keys(t.formFieldErrors).includes(Z)&&(t.formFieldErrors={...t.formFieldErrors,[Z]:O.message})}),n("error",h)}finally{t.isReadonly=!1}};return e.watch(()=>a.gatewayServiceId,()=>{Object.assign(t.fields,w)}),e.watch(t.fields,o=>{t.fields.port=X.getPortFromProtocol(o.protocol,String(o.port)),n("model-updated",R.value)}),e.onMounted(()=>{n("model-updated",R.value),L.value||(t.fields.name=be())}),B({validateUrl:we,getPayload:R,saveFormData:f,canSubmit:d,initForm:g}),(o,r)=>{const _=e.resolveComponent("KRadio"),C=e.resolveComponent("KButton"),h=e.resolveComponent("KInput"),b=e.resolveComponent("KSelect"),i=e.resolveComponent("KCheckbox"),O=e.resolveComponent("KCollapse"),Z=e.resolveComponent("KAlert");return e.openBlock(),e.createElementBlock("div",Ke,[e.createVNode(e.unref(u.EntityBaseForm),{"can-submit":d.value,config:s.config,"edit-id":s.gatewayServiceId,"entity-type":e.unref(u.SupportedEntityType).GatewayService,"fetch-url":D.value,"form-fields":R.value,"is-readonly":t.isReadonly,onCancel:y,"onFetch:error":r[31]||(r[31]=c=>o.$emit("error",c)),"onFetch:success":g,onLoading:r[32]||(r[32]=c=>o.$emit("loading",c)),onSubmit:f},{"form-actions":e.withCtx(()=>[e.renderSlot(o.$slots,"form-actions",{canSubmit:d.value,cancel:y,submit:f},void 0,!0)]),default:e.withCtx(()=>[e.createVNode(e.unref(u.EntityFormSection),{description:e.unref(l)("gateway_services.form.sections.keys.description"),"hide-info-header":s.hideSectionsInfo,title:e.unref(l)("gateway_services.form.sections.keys.title")},{default:e.withCtx(()=>[L.value?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",qe,[e.createElementVNode("div",Le,[e.createVNode(_,{modelValue:v.value,"onUpdate:modelValue":r[0]||(r[0]=c=>v.value=c),card:"","card-orientation":"horizontal","data-testid":"gateway-service-url-radio",description:e.unref(l)("gateway_services.form.sections.keys.url.description"),label:e.unref(l)("gateway_services.form.sections.keys.url.label"),"selected-value":se.url,onChange:ce},null,8,["modelValue","description","label","selected-value"]),e.createVNode(_,{modelValue:v.value,"onUpdate:modelValue":r[1]||(r[1]=c=>v.value=c),card:"","card-orientation":"horizontal","checked-group":"protocol","data-testid":"gateway-service-protocol-radio",description:e.unref(l)("gateway_services.form.sections.keys.protocol.description"),label:e.unref(l)("gateway_services.form.sections.keys.protocol.label"),"selected-value":se.protocol,onChange:ce},null,8,["modelValue","description","label","selected-value"])]),e.createVNode(e.Transition,{name:"slide-fade"},{default:e.withCtx(()=>[v.value==="url"?(e.openBlock(),e.createElementBlock("div",Ge,[e.createVNode(h,{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:he.value,"error-message":S("url"),label:e.unref(l)("gateway_services.form.fields.upstream_url.label"),"label-attributes":{info:s.config.app==="konnect"?e.unref(l)("gateway_services.form.fields.upstream_url.tooltip_for_konnect"):e.unref(l)("gateway_services.form.fields.upstream_url.tooltip_for_km"),tooltipAttributes:{maxWidth:"400"}},name:"url",placeholder:e.unref(l)("gateway_services.form.fields.upstream_url.placeholder"),required:"",onInput:fe},e.createSlots({_:2},[s.hideTrySampleApiButton?void 0:{name:"after",fn:e.withCtx(()=>[e.createVNode(C,{appearance:"tertiary","data-testid":"try-sample-api",size:"small",onClick:de},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(l)("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(()=>[v.value==="protocol"||L.value?(e.openBlock(),e.createElementBlock("div",We,[e.createVNode(b,{modelValue:t.fields.protocol,"onUpdate:modelValue":r[3]||(r[3]=c=>t.fields.protocol=c),"data-testid":"gateway-service-protocol-select",items:H,label:e.unref(l)("gateway_services.form.fields.protocol.label"),"label-attributes":{info:e.unref(l)("gateway_services.form.fields.protocol.tooltip"),tooltipAttributes:{maxWidth:"400"}},readonly:t.isReadonly,required:"",width:"100%",onSelected:r[4]||(r[4]=c=>ae(t.fields.protocol,c))},null,8,["modelValue","label","label-attributes","readonly"]),e.createVNode(h,{modelValue:t.fields.host,"onUpdate:modelValue":r[5]||(r[5]=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":S("host"),label:e.unref(l)("gateway_services.form.fields.host.label"),"label-attributes":{info:e.unref(l)("gateway_services.form.fields.host.tooltip"),tooltipAttributes:{maxWidth:"400"}},name:"host",placeholder:e.unref(l)("gateway_services.form.fields.host.placeholder"),required:"",onInput:r[6]||(r[6]=c=>M("host"))},e.createSlots({_:2},[s.hideTrySampleApiButton?void 0:{name:"after",fn:e.withCtx(()=>[e.createVNode(C,{appearance:"tertiary",size:"small",onClick:de},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(l)("gateway_services.form.buttons.try_sample")),1)]),_:1})]),key:"0"}]),1032,["modelValue","error","error-message","label","label-attributes","placeholder"]),ee.value?(e.openBlock(),e.createElementBlock("div",Oe,[e.createVNode(h,{modelValue:t.fields.path,"onUpdate:modelValue":r[7]||(r[7]=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":S("path"),label:e.unref(l)("gateway_services.form.fields.path.label"),"label-attributes":{info:e.unref(l)("gateway_services.form.fields.path.tooltip"),tooltipAttributes:{maxWidth:"400"}},name:"path",placeholder:e.unref(l)("gateway_services.form.fields.path.placeholder"),onInput:r[8]||(r[8]=c=>M("path"))},null,8,["modelValue","error","error-message","label","label-attributes","placeholder"])])):e.createCommentVNode("",!0),e.createVNode(h,{modelValue:t.fields.port,"onUpdate:modelValue":[r[9]||(r[9]=c=>t.fields.port=c),r[11]||(r[11]=()=>{t.fields.port=G(t.fields.port+"")})],class:"gateway-service-form-margin-top","data-testid":"gateway-service-port-input",error:!!t.formFieldErrors.port,"error-message":S("port"),label:e.unref(l)("gateway_services.form.fields.port.label"),"label-attributes":{info:e.unref(l)("gateway_services.form.fields.port.tooltip"),tooltipAttributes:{maxWidth:"400"}},name:"port",type:"number",onInput:r[10]||(r[10]=c=>M("port"))},null,8,["modelValue","error","error-message","label","label-attributes"])])):e.createCommentVNode("",!0)]),_:1}),e.createVNode(O,{modelValue:m.value,"onUpdate:modelValue":r[27]||(r[27]=c=>m.value=c),"data-testid":"advanced-fields-collapse","trigger-alignment":"leading","trigger-label":e.unref(l)("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",ze,[e.createVNode(h,{modelValue:t.fields.retries,"onUpdate:modelValue":[r[12]||(r[12]=c=>t.fields.retries=c),r[13]||(r[13]=()=>{t.fields.retries=G(t.fields.retries+"")})],autocomplete:"off","data-testid":"gateway-service-retries-input",label:e.unref(l)("gateway_services.form.fields.retries.label"),"label-attributes":{info:e.unref(l)("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",He,[e.createVNode(h,{modelValue:t.fields.connect_timeout,"onUpdate:modelValue":[r[14]||(r[14]=c=>t.fields.connect_timeout=c),r[15]||(r[15]=()=>{t.fields.connect_timeout=G(t.fields.connect_timeout+"")})],autocomplete:"off","data-testid":"gateway-service-connTimeout-input",label:e.unref(l)("gateway_services.form.fields.connect_timeout.label"),"label-attributes":{info:e.unref(l)("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",Ze,[e.createVNode(h,{modelValue:t.fields.write_timeout,"onUpdate:modelValue":[r[16]||(r[16]=c=>t.fields.write_timeout=c),r[17]||(r[17]=()=>{t.fields.write_timeout=G(t.fields.write_timeout+"")})],autocomplete:"off","data-testid":"gateway-service-writeTimeout-input",label:e.unref(l)("gateway_services.form.fields.write_timeout.label"),"label-attributes":{info:e.unref(l)("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",Je,[e.createVNode(h,{modelValue:t.fields.read_timeout,"onUpdate:modelValue":[r[18]||(r[18]=c=>t.fields.read_timeout=c),r[19]||(r[19]=()=>{t.fields.read_timeout=G(t.fields.read_timeout+"")})],autocomplete:"off","data-testid":"gateway-service-readTimeout-input",label:e.unref(l)("gateway_services.form.fields.read_timeout.label"),"label-attributes":{info:e.unref(l)("gateway_services.form.fields.read_timeout.tooltip"),tooltipAttributes:{maxWidth:"400"}},name:"readTimeout",readonly:t.isReadonly,type:"number"},null,8,["modelValue","label","label-attributes","readonly"])]),ve.value?(e.openBlock(),e.createElementBlock("div",Qe,[e.createVNode(h,{modelValue:t.fields.client_certificate,"onUpdate:modelValue":r[20]||(r[20]=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(l)("gateway_services.form.fields.client_certificate.label"),"label-attributes":{info:e.unref(l)("gateway_services.form.fields.client_certificate.tooltip"),tooltipAttributes:{maxWidth:"400"}},name:"clientCert",placeholder:e.unref(l)("gateway_services.form.fields.client_certificate.placeholder"),readonly:t.isReadonly,type:"text",onInput:r[21]||(r[21]=c=>pe("client_certificate"))},null,8,["modelValue","error","label","label-attributes","placeholder","readonly"])])):e.createCommentVNode("",!0),Ve.value?(e.openBlock(),e.createElementBlock("div",Xe,[e.createVNode(h,{modelValue:t.fields.ca_certificates,"onUpdate:modelValue":r[22]||(r[22]=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(l)("gateway_services.form.fields.ca_certificates.label"),"label-attributes":{tooltipAttributes:{maxWidth:"400"}},placeholder:e.unref(l)("gateway_services.form.fields.ca_certificates.placeholder"),readonly:t.isReadonly,type:"text",onInput:r[23]||(r[23]=c=>pe("ca_certificates"))},{"label-tooltip":e.withCtx(()=>[e.createVNode(e.unref(A),{keypath:"gateway_services.form.fields.ca_certificates.tooltip",scope:"global"},{code1:e.withCtx(()=>[e.createElementVNode("code",null,e.toDisplayString(e.unref(l)("gateway_services.form.fields.ca_certificates.code1")),1)]),code2:e.withCtx(()=>[e.createElementVNode("code",null,e.toDisplayString(e.unref(l)("gateway_services.form.fields.ca_certificates.code2")),1)]),_:1})]),_:1},8,["modelValue","error","label","placeholder","readonly"])])):e.createCommentVNode("",!0),te.value?(e.openBlock(),e.createElementBlock("div",Ye,[e.createVNode(i,{modelValue:t.fields.tls_verify_enabled,"onUpdate:modelValue":r[24]||(r[24]=c=>t.fields.tls_verify_enabled=c),"data-testid":"gateway-service-tls-verify-checkbox",description:e.unref(l)("gateway_services.form.fields.tls_verify_enabled.help"),label:e.unref(l)("gateway_services.form.fields.tls_verify_enabled.label"),"label-attributes":{tooltipAttributes:{maxWidth:"400"}}},{tooltip:e.withCtx(()=>[e.createVNode(e.unref(A),{keypath:"gateway_services.form.fields.tls_verify_enabled.tooltip",scope:"global"},{code1:e.withCtx(()=>[e.createElementVNode("code",null,e.toDisplayString(e.unref(l)("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",et,[e.createVNode(_,{modelValue:t.fields.tls_verify_value,"onUpdate:modelValue":r[25]||(r[25]=c=>t.fields.tls_verify_value=c),"data-testid":"gateway-service-tls-verify-true-option",label:e.unref(l)("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",tt,[e.createVNode(_,{modelValue:t.fields.tls_verify_value,"onUpdate:modelValue":r[26]||(r[26]=c=>t.fields.tls_verify_value=c),"data-testid":"gateway-service-tls-verify-false-option",label:e.unref(l)("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(u.EntityFormSection),{description:e.unref(l)("gateway_services.form.sections.general.description"),"hide-info-header":s.hideSectionsInfo,title:e.unref(l)("gateway_services.form.sections.general.title")},{default:e.withCtx(()=>[e.createVNode(h,{modelValue:t.fields.name,"onUpdate:modelValue":r[28]||(r[28]=c=>t.fields.name=c),modelModifiers:{trim:!0},autocomplete:"off","data-testid":"gateway-service-name-input",error:z.value,"error-message":Y.value,label:e.unref(l)("gateway_services.form.fields.name.label"),"label-attributes":{info:e.unref(l)("gateway_services.form.fields.name.tooltip"),tooltipAttributes:{maxWidth:"400"}},name:"name",placeholder:e.unref(l)("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(O,{"data-testid":"tags-collapse","trigger-alignment":"leading","trigger-label":e.unref(l)("gateway_services.form.fields.tags.collapse")},{default:e.withCtx(()=>[e.createElementVNode("div",ot,[e.createVNode(h,{modelValue:t.fields.tags,"onUpdate:modelValue":r[29]||(r[29]=c=>t.fields.tags=c),modelModifiers:{trim:!0},autocomplete:"off","data-testid":"gateway-service-tags-input",help:e.unref(l)("gateway_services.form.fields.tags.help"),label:e.unref(l)("gateway_services.form.fields.tags.label"),"label-attributes":{info:e.unref(l)("gateway_services.form.fields.tags.tooltip"),tooltipAttributes:{maxWidth:"400"}},name:"tags",placeholder:e.unref(l)("gateway_services.form.fields.tags.placeholder"),readonly:t.isReadonly,type:"text",onInput:r[30]||(r[30]=c=>U("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(Z,{key:0,appearance:"danger","data-testid":"form-error"},{default:e.withCtx(()=>[e.createElementVNode("ul",rt,[(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-2ef1cab4"]]),{validateHost:lt,validatePort:st,validateProtocol:at,validatePath:nt}=K.useUrlValidators(),ct=()=>({validateHost:lt,validatePort:st,validateProtocol:at,validatePath:nt});N.GatewayServiceConfigCard=Me,N.GatewayServiceForm=it,N.GatewayServiceList=Re,N.useUrlValidator=ct,Object.defineProperty(N,Symbol.toStringTag,{value:"Module"})});
1
+ (function(N,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):(N=typeof globalThis<"u"?globalThis:N||self,e(N["kong-ui-public-entities-gateway-services"]={},N.Vue,N.VueRouter,N.KongIcons,N["kong-ui-public-i18n"],N["kong-ui-public-entities-shared"]))})(this,function(N,e,ke,me,Ce,u){"use strict";const xe={actions:{create:"New gateway service",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",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."},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."},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 Ne(){const s=Ce.createI18n("en-us",xe);return{i18n:s,i18nT:Ce.i18nTComponent(s)}}function Se(){return{getPortFromProtocol:(B,p)=>{const n=[80,443],a=Number(p);if((a||a===0)&&!n.includes(a))return a;switch(B){case"grpcs":case"tls":case"https":case"wss":return 443;case"grpc":case"tcp":case"http":case"ws":default:return 80}}}}function Ie(){const{i18n:{t:s}}=K.useI18n();return{validateHost:m=>{if(!m||m.trim()==="")return s("gateway_services.form.errors.host.empty");const E=/^(?!:\/\/)([a-zA-Z0-9]([a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(\.([a-zA-Z0-9]([a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?))*)(\.[a-zA-Z]{1,63})?$/;return/^((25[0-5]|2[0-4][0-9]|[0-1]?[0-9]?[0-9])\.){3}(25[0-5]|2[0-4][0-9]|[0-1]?[0-9]?[0-9])$/.test(m)||E.test(m)?"":s("gateway_services.form.errors.host.invalid")},validateProtocol:(m,E)=>!m||m.trim()===""?s("gateway_services.form.errors.protocol.empty"):(m=m.slice(0,-1),E.find(l=>{if(l.value===m)return l})===void 0?s("gateway_services.form.errors.protocol.invalid"):""),validatePath:m=>!m||m===""?"":m.startsWith("/")?/[^A-Za-z0-9\-._~:/?#[\]@!$&'()*+,;=%]/.test(m)?s("gateway_services.form.errors.path.invalid"):"":s("gateway_services.form.errors.path.prefix"),validatePort:m=>{if(m==null||m==="")return"";const E=typeof m=="string"?parseInt(m,10):m;return isNaN(E)?s("gateway_services.form.errors.port.type"):E<0||E>65535?s("gateway_services.form.errors.port.invalid"):""}}}const K={useI18n:Ne,usePortFromProtocol:Se,useUrlValidators:Ie},oe="/v2/control-planes/{controlPlaneId}/core-entities",re="/{workspace}",J={list:{konnect:{all:`${oe}/services`},kongManager:{all:`${re}/services`}},form:{konnect:{create:`${oe}/services`,validate:`${oe}/v1/schemas/json/service/validate`,edit:`${oe}/services/{id}`},kongManager:{create:`${re}/services`,validate:`${re}/schemas/services/validate`,edit:`${re}/services/{id}`}}},Pe="#00abd2",Te="24px",Fe={class:"kong-ui-entities-gateway-services-list"},Be={class:"button-row"},Ae={class:"empty-state-icon-gateway"},Ue={key:1},$e=e.defineComponent({__name:"GatewayServiceList",props:{config:{type:Object,required:!0,validator:s=>!(!s||!["konnect","kongManager"].includes(s==null?void 0:s.app)||!s.createRoute||!s.getViewRoute||!s.getEditRoute||s.app==="kongManager"&&!s.isExactMatch&&!s.filterSchema)},cacheIdentifier:{type:String,default:""},canCreate:{type:Function,required:!1,default:async()=>!0},canDelete:{type:Function,required:!1,default:async()=>!0},canEdit:{type:Function,required:!1,default:async()=>!0},canRetrieve:{type:Function,required:!1,default:async()=>!0},useActionOutside:{type:Boolean,default:!1},isServerless:{type:Boolean,default:!1}},emits:["error","click:learn-more","copy:success","copy:error","delete:success","toggle:success"],setup(s,{emit:B}){var ue;const p=B,n=s,{i18n:{t:a,formatUnixTimeStamp:m}}=K.useI18n(),E=ke.useRouter(),{axiosInstance:A}=u.useAxios((ue=n.config)==null?void 0:ue.axiosRequestConfig),{hasRecords:l,handleStateChange:T}=u.useTableState(()=>D.value),V=e.computed(()=>l.value&&n.config.app==="konnect"),ge=e.computed(()=>n.config.app!=="kongManager"||!!n.config.disableSorting),Q={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}},ie={columnVisibility:{created_at:!1}},le=Q,j=e.computed(()=>{var g,y;let d=`${n.config.apiBaseUrl}${J.list[n.config.app].all}`;return n.config.app==="konnect"?d=d.replace(/{controlPlaneId}/gi,((g=n.config)==null?void 0:g.controlPlaneId)||""):n.config.app==="kongManager"&&(d=d.replace(/\/{workspace}/gi,(y=n.config)!=null&&y.workspace?`/${n.config.workspace}`:"")),d}),ye=e.computed(()=>n.config.apiBaseUrl.startsWith("/")?new URL(`${window.location.origin}${j.value}`):new URL(j.value)),D=e.ref(""),q=e.computed(()=>{const d=n.config.app==="konnect"||n.config.isExactMatch;if(d)return{isExactMatch:d,placeholder:a(`search.placeholder.${n.config.app}`)};const{name:g,enabled:y,protocol:k,host:$,port:P,path:R}=Q;return{isExactMatch:d,fields:{name:g,enabled:y,protocol:k,host:$,port:P,path:R},schema:n.config.filterSchema}}),{fetcher:_e,fetcherState:L,fetcherCacheKey:v}=u.useFetcher(e.computed(()=>({...n.config,cacheIdentifier:n.cacheIdentifier})),j),X=()=>{D.value=""},Y=()=>{v.value++},z=e.ref(null),t=e.computed(()=>({ctaPath:n.config.createRoute,ctaText:te.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:te.value?n.isServerless?a("gateway_services.list.empty_state.serverless_title"):a("gateway_services.list.empty_state.title"):a("gateway_services.title")})),w=e.ref(!1),I=e.ref(null),H=e.computed(()=>{const d={action:"disable",id:"",name:""};if(I.value){const{enabled:g,id:y,name:k}=I.value;d.action=g?"disable":"enable",d.id=y,d.name=k||y}return d}),se=d=>{w.value=!0,I.value=d},ae=()=>{w.value=!1,I.value=null},G=async()=>{var k,$;if(!await((k=n.canEdit)==null?void 0:k.call(n,I.value))||!I.value)return;const g=`${ye.value.href}/${I.value.id}`,y=!I.value.enabled;try{const{data:P}=(($=n.config)==null?void 0:$.app)==="konnect"?await A.put(g,{...I.value,enabled:y}):await A.patch(g,{...I.value,enabled:y});p("toggle:success",P),I.value.enabled=y}catch(P){p("error",P)}},ne=d=>{n.config.getControlPlaneRoute&&E.push(n.config.getControlPlaneRoute(d))},ce=async(d,g)=>{const y=d.id;if(!await g(y)){p("copy:error",{entity:d,field:"id",message:a("errors.copy")});return}p("copy:success",{entity:d,field:"id",message:a("copy.success",{val:y})})},de=async(d,g)=>{const y=JSON.stringify(d);if(!await g(y)){p("copy:error",{entity:d,message:a("errors.copy")});return}p("copy:success",{entity:d,message:a("copy.success_brief")})},fe=async d=>{var y;await((y=n.canRetrieve)==null?void 0:y.call(n,d))&&E.push(n.config.getViewRoute(d.id))},pe=d=>({label:a("actions.view"),to:n.config.getViewRoute(d)}),he=d=>({label:a("actions.edit"),to:n.config.getEditRoute(d)}),S=e.ref(void 0),M=e.ref(!1),U=e.ref(!1),W=e.ref(""),we=u.useDeleteUrlBuilder(n.config,j.value),be=d=>{S.value=d,M.value=!0,W.value=""},ee=()=>{M.value=!1,S.value=void 0},ve=async()=>{var d,g,y;if((d=S.value)!=null&&d.id){U.value=!0;try{await A.delete(we(S.value.id)),p("delete:success",S.value),ee(),v.value++}catch(k){W.value=((y=(g=k.response)==null?void 0:g.data)==null?void 0:y.message)||k.message||a("errors.delete"),p("error",k)}finally{U.value=!1}}},Ve=()=>{E.push(n.config.createRoute)};e.watch(L,d=>{var g,y,k;if(d.status===u.FetcherStatus.Error){z.value={title:a("errors.general")},(k=(y=(g=d.error)==null?void 0:g.response)==null?void 0:y.data)!=null&&k.message&&(z.value.message=d.error.response.data.message),p("error",d.error);return}z.value=null});const te=e.ref(!1);return e.onBeforeMount(async()=>{te.value=await n.canCreate()}),(d,g)=>{const y=e.resolveComponent("KButton"),k=e.resolveComponent("KBadge"),$=e.resolveComponent("KInputSwitch"),P=e.resolveComponent("KDropdownItem"),R=e.resolveComponent("KClipboardProvider");return e.openBlock(),e.createElementBlock("div",Fe,[e.createVNode(e.unref(u.EntityBaseTable),{"cache-identifier":s.cacheIdentifier,"default-table-preferences":ie,"disable-sorting":ge.value,"empty-state-options":t.value,"enable-entity-actions":"","error-message":z.value,fetcher:e.unref(_e),"fetcher-cache-key":e.unref(v),"pagination-type":"offset","preferences-storage-key":"kong-ui-entities-gateway-services-list",query:D.value,"table-headers":e.unref(le),onClearSearchInput:X,"onClick:row":g[4]||(g[4]=f=>fe(f)),onSort:Y,onState:e.unref(T)},e.createSlots({"toolbar-filter":e.withCtx(()=>[e.createVNode(e.unref(u.EntityFilter),{modelValue:D.value,"onUpdate:modelValue":g[0]||(g[0]=f=>D.value=f),config:q.value},null,8,["modelValue","config"])]),"toolbar-button":e.withCtx(()=>[(e.openBlock(),e.createBlock(e.Teleport,{disabled:!s.useActionOutside,to:"#kong-ui-app-page-header-action-button"},[e.createElementVNode("div",Be,[V.value?(e.openBlock(),e.createBlock(y,{key:0,appearance:"secondary",class:"open-learning-hub","data-testid":"gateway-services-learn-more-button",icon:"",onClick:g[1]||(g[1]=f=>d.$emit("click:learn-more"))},{default:e.withCtx(()=>[e.createVNode(e.unref(me.BookIcon),{decorative:""})]),_:1})):e.createCommentVNode("",!0),e.createVNode(e.unref(u.PermissionsWrapper),{"auth-function":()=>s.canCreate()},{default:e.withCtx(()=>[e.createVNode(y,{appearance:"primary","data-testid":"toolbar-add-gateway-service",size:s.useActionOutside?"medium":"large",to:s.config.createRoute},{default:e.withCtx(()=>[e.createVNode(e.unref(me.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:f})=>[e.createElementVNode("b",null,e.toDisplayString(f??"-"),1)]),control_plane:e.withCtx(({row:f})=>{var x;return[(x=f.x_meta)!=null&&x.cluster_id?(e.openBlock(),e.createBlock(k,{key:0,tooltip:f.x_meta.cluster_id,"truncation-tooltip":"",onClick:e.withModifiers(o=>ne(f.x_meta.cluster_id),["stop"])},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(f.x_meta.cluster_id),1)]),_:2},1032,["tooltip","onClick"])):(e.openBlock(),e.createElementBlock("b",Ue,"-"))]}),enabled:e.withCtx(({row:f})=>[e.createVNode(e.unref(u.PermissionsWrapper),{"auth-function":()=>s.canEdit(f),"force-show":""},{default:e.withCtx(({isAllowed:x})=>[e.createElementVNode("div",{onClick:g[3]||(g[3]=e.withModifiers(()=>{},["stop"]))},[e.createVNode($,{modelValue:f.enabled,"onUpdate:modelValue":o=>f.enabled=o,"data-testid":`row-${f.id}-toggle-input`,disabled:!x,onClick:e.withModifiers(o=>se(f),["prevent"])},null,8,["modelValue","onUpdate:modelValue","data-testid","disabled","onClick"])])]),_:2},1032,["auth-function"])]),tags:e.withCtx(({rowValue:f})=>[e.createVNode(e.unref(u.TableTags),{tags:f},null,8,["tags"])]),created_at:e.withCtx(({rowValue:f})=>[e.createTextVNode(e.toDisplayString(e.unref(m)(f)),1)]),updated_at:e.withCtx(({row:f,rowValue:x})=>[e.createTextVNode(e.toDisplayString(e.unref(m)(x??f.created_at)),1)]),actions:e.withCtx(({row:f})=>[e.createVNode(R,null,{default:e.withCtx(({copyToClipboard:x})=>[e.createVNode(P,{"data-testid":"action-entity-copy-id",onClick:o=>ce(f,x)},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(a)("actions.copy_id")),1)]),_:2},1032,["onClick"])]),_:2},1024),e.createVNode(R,null,{default:e.withCtx(({copyToClipboard:x})=>[e.createVNode(P,{"data-testid":"action-entity-copy-json",onClick:o=>de(f,x)},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(a)("actions.copy_json")),1)]),_:2},1032,["onClick"])]),_:2},1024),e.createVNode(e.unref(u.PermissionsWrapper),{"auth-function":()=>s.canRetrieve(f)},{default:e.withCtx(()=>[e.createVNode(P,{"data-testid":"action-entity-view","has-divider":"",item:pe(f.id)},null,8,["item"])]),_:2},1032,["auth-function"]),e.createVNode(e.unref(u.PermissionsWrapper),{"auth-function":()=>s.canEdit(f)},{default:e.withCtx(()=>[e.createVNode(P,{"data-testid":"action-entity-edit",item:he(f.id)},null,8,["item"])]),_:2},1032,["auth-function"]),e.createVNode(e.unref(u.PermissionsWrapper),{"auth-function":()=>s.canDelete(f)},{default:e.withCtx(()=>[e.createVNode(P,{danger:"","data-testid":"action-entity-delete","has-divider":"",onClick:x=>be(f)},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(a)("actions.delete.menu_label")),1)]),_:2},1032,["onClick"])]),_:2},1032,["auth-function"])]),_:2},[!D.value&&s.config.app==="konnect"?{name:"empty-state",fn:e.withCtx(()=>{var f;return[e.createVNode(e.unref(u.EntityEmptyState),{"action-button-text":e.unref(a)("gateway_services.empty_state_v2.create"),appearance:"secondary","can-create":()=>s.canCreate(),"data-testid":"gateway-services-entity-empty-state",description:e.unref(a)("gateway_services.empty_state_v2.description"),"learn-more":s.config.app==="konnect",title:e.unref(a)("gateway_services.empty_state_v2.title"),"onClick:create":Ve,"onClick:learnMore":g[2]||(g[2]=x=>d.$emit("click:learn-more"))},e.createSlots({image:e.withCtx(()=>[e.createElementVNode("div",Ae,[e.createVNode(e.unref(me.ServicesIcon),{color:e.unref(Pe),size:e.unref(Te)},null,8,["color","size"])])]),_:2},[(f=s.config)!=null&&f.isControlPlaneGroup?{name:"message",fn:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(a)("gateway_services.empty_state_v2.group")),1)]),key:"0"}:void 0]),1032,["action-button-text","can-create","description","learn-more","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(u.EntityToggleModal),{action:H.value.action,"entity-id":H.value.id,"entity-name":H.value.name,"entity-type":e.unref(a)("glossary.gateway_services"),"on-confirm":G,visible:w.value,onCancel:ae,onProceed:ae},null,8,["action","entity-id","entity-name","entity-type","visible"]),e.createVNode(e.unref(u.EntityDeleteModal),{"action-pending":U.value,description:e.unref(a)("actions.delete.description"),"entity-name":S.value&&(S.value.name||S.value.id),"entity-type":e.unref(u.EntityTypes).GatewayService,error:W.value,title:e.unref(a)("actions.delete.title"),visible:M.value,onCancel:ee,onProceed:ve},null,8,["action-pending","description","entity-name","entity-type","error","title","visible"])])}}}),Ee=(s,B)=>{const p=s.__vccOpts||s;for(const[n,a]of B)p[n]=a;return p},Re=Ee($e,[["__scopeId","data-v-3cb1989f"]]),De={class:"kong-ui-gateway-service-entity-config-card"},Me=e.defineComponent({__name:"GatewayServiceConfigCard",props:{config:{type:Object,required:!0,validator:s=>!(!s||!["konnect","kongManager"].includes(s==null?void 0:s.app)||s.app==="konnect"&&!s.controlPlaneId||s.app==="kongManager"&&typeof s.workspace!="string"||!s.entityId)},configCardDoc:{type:String,default:"",required:!1},hideTitle:{type:Boolean,default:!1}},emits:["loading","fetch:error","fetch:success"],setup(s){const B=s,{i18n:{t:p},i18nT:n}=K.useI18n(),a=e.computed(()=>J.form[B.config.app].edit),{getPropValue:m}=u.useHelpers(),E=(l,T)=>m(l,T)===!0?p("gateway_services.form.fields.tls_verify_option.true.display"):p("gateway_services.form.fields.tls_verify_option.false.display"),A=e.ref({id:{},name:{tooltip:p("gateway_services.form.fields.name.tooltip")},enabled:{},updated_at:{},created_at:{},protocol:{section:u.ConfigurationSchemaSection.Basic,tooltip:p("gateway_services.form.fields.protocol.tooltip")},host:{section:u.ConfigurationSchemaSection.Basic,tooltip:p("gateway_services.form.fields.host.tooltip")},path:{section:u.ConfigurationSchemaSection.Basic,tooltip:p("gateway_services.form.fields.path.tooltip")},port:{section:u.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:u.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(l,T)=>(e.openBlock(),e.createElementBlock("div",De,[e.createVNode(e.unref(u.EntityBaseConfigCard),{config:s.config,"config-card-doc":s.configCardDoc,"config-schema":A.value,"entity-type":e.unref(u.SupportedEntityType).GatewayService,"fetch-url":a.value,"hide-title":s.hideTitle,"onFetch:error":T[0]||(T[0]=V=>l.$emit("fetch:error",V)),"onFetch:success":T[1]||(T[1]=V=>l.$emit("fetch:success",V)),onLoading:T[2]||(T[2]=V=>l.$emit("loading",V))},{"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(V=>[e.createTextVNode(e.toDisplayString(typeof e.unref(m)("rowValue",V)=="boolean"?E("rowValue",V):e.unref(p)("gateway_services.form.fields.tls_verify_option.unset.display")),1)]),client_certificate:e.withCtx(V=>[e.createTextVNode(e.toDisplayString(e.unref(m)("rowValue",V)?e.unref(m)("rowValue",V).id:"–"),1)]),_:1},8,["config","config-card-doc","config-schema","entity-type","fetch-url","hide-title"])]))}}),F={name:"Kong-Air-Flights-API",protocol:"https",path:"/flights",host:"api.kong-air.com",port:443},Ke={class:"kong-ui-entities-gateway-service-form"},qe={key:0,class:"gateway-service-form-general-info"},Le={class:"gateway-service-form-group-selection-wrapper"},Ge={key:0,class:"gateway-service-form-group-fields"},We={key:0,class:"gateway-service-form-group-fields"},Oe={key:0},je={key:0,class:"gateway-service-form-advanced-fields"},ze={class:"gateway-service-form-margin-bottom"},He={class:"gateway-service-form-margin-bottom"},Ze={class:"gateway-service-form-margin-bottom"},Je={class:"gateway-service-form-margin-bottom"},Qe={key:0,class:"gateway-service-form-margin-bottom"},Xe={key:1,class:"gateway-service-form-margin-bottom"},Ye={key:2,class:"gateway-service-form-margin-bottom"},et={key:0,class:"checkbox-aligned-radio"},tt={key:1,class:"checkbox-aligned-radio"},ot={class:"gateway-service-form-tags"},rt={class:"form-error-list"},it=Ee(e.defineComponent({__name:"GatewayServiceForm",props:{config:{type:Object,required:!0,validator:s=>!(!s||!["konnect","kongManager"].includes(s==null?void 0:s.app)||s.app==="konnect"&&!s.controlPlaneId||s.app==="kongManager"&&typeof s.workspace!="string"||!s.cancelRoute)},gatewayServiceId:{type:String,required:!1,default:""},hideSectionsInfo:{type:Boolean,required:!1,default:!1},hideTrySampleApiButton:{type:Boolean,required:!1,default:!1}},emits:["update","error","url-valid:success","url-valid:error","loading","model-updated","try-sample-api"],setup(s,{expose:B,emit:p}){var x;const n=p,a=s,m=e.ref(!0),E=ke.useRouter(),{i18nT:A,i18n:{t:l}}=K.useI18n(),{getErrorFieldsFromError:T}=u.useErrors(),{axiosInstance:V}=u.useAxios((x=a.config)==null?void 0:x.axiosRequestConfig),ge=u.useValidators(),{validateHost:Q,validatePath:ie,validatePort:le,validateProtocol:j}=K.useUrlValidators(),{objectsAreEqual:ye}=u.useHelpers(),D=e.computed(()=>J.form[a.config.app].edit),q=e.computed(()=>a.gatewayServiceId?u.EntityBaseFormType.Edit:u.EntityBaseFormType.Create),_e=e.ref(!1),L=e.computed(()=>!!a.gatewayServiceId),v=e.ref(L.value?"protocol":"url"),X=K.usePortFromProtocol(),Y=e.ref(""),z=e.computed(()=>!!Y.value||!!S("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:"",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:"",ca_certificates:"",tls_verify_enabled:"",tls_verify_value:""}}),w=e.reactive({name:"",protocol:"http",host:"",path:"",port:80,url:"",retries:5,connect_timeout:6e4,write_timeout:6e4,read_timeout:6e4,client_certificate:"",ca_certificates:"",tls_verify_enabled:!1,tls_verify_value:!1,tags:"",enabled:!0}),I=a.config.app==="konnect"||u.useGatewayFeatureSupported({gatewayInfo:a.config.gatewayInfo,supportedRange:{enterprise:["3.0"]}}),H=[{label:l("gateway_services.form.fields.protocol.options.http"),value:"http",group:"http"},{label:l("gateway_services.form.fields.protocol.options.https"),value:"https",group:"http"},{label:l("gateway_services.form.fields.protocol.options.tcp"),value:"tcp",group:"tcp"},{label:l("gateway_services.form.fields.protocol.options.tls"),value:"tls",group:"tcp"},{label:l("gateway_services.form.fields.protocol.options.tls_passthrough"),value:"tls_passthrough",group:"tcp"},{label:l("gateway_services.form.fields.protocol.options.grpc"),value:"grpc",group:"grpc"},{label:l("gateway_services.form.fields.protocol.options.grpcs"),value:"grpcs",group:"grpc"},...I?[{label:l("gateway_services.form.fields.protocol.options.ws"),value:"ws",group:"websocket"},{label:l("gateway_services.form.fields.protocol.options.wss"),value:"wss",group:"websocket"}]:[],{label:l("gateway_services.form.fields.protocol.options.udp"),value:"udp",group:"udp"}],se={url:"url",protocol:"protocol"},ae=(o,r)=>{r.value},G=o=>o?parseFloat(o):0,ne=()=>{t.fields.host=w.host,t.fields.path=w.path,t.fields.port=w.port,t.fields.protocol=w.protocol,t.fields.url=w.url,t.fields.retries=w.retries,t.fields.connect_timeout=w.connect_timeout,t.fields.write_timeout=w.write_timeout,t.fields.read_timeout=w.read_timeout,t.fields.client_certificate=w.client_certificate,t.fields.ca_certificates=w.ca_certificates,t.fields.tls_verify_enabled=w.tls_verify_enabled,t.fields.tls_verify_value=w.tls_verify_value,t.fields.enabled=w.enabled},ce=()=>{m.value=!0,U(),t.errorMessages=[],ne()},de=()=>{switch(ne(),t.fields.name=`${F.name}-${new Date().toISOString().replace(/\D/g,"").slice(0,17)}`,v.value){case"url":t.fields.url=`${F.protocol}://${F.host}${F.path}`;break;case"protocol":t.fields.host=F.host,t.fields.path=F.path,t.fields.protocol=F.protocol,t.fields.port=F.port;break;default:t.fields.url=`${F.protocol}://${F.host}${F.path}`}},fe=()=>{if(U(),t.fields.url.length)try{const o=new URL(t.fields.url),r=j(o.protocol,H);if(r)throw new Error(r);t.fields.protocol=o.protocol.slice(0,-1);const _=Q(o.hostname);if(_)throw new Error(_);t.fields.host=o.hostname;const C=ie(o.pathname);if(C)throw new Error(C);t.fields.path=o.pathname;const h=le(o.port);if(h)throw new Error(h);const b=Number(o.port);_e.value=!!b,t.fields.port=b||X.getPortFromProtocol(t.fields.protocol),n("url-valid:success")}catch{n("url-valid:error",l("gateway_services.form.errors.url.invalid")),t.formFieldErrors.url=l("gateway_services.form.errors.url.invalid")}},pe=o=>{U(o)},he=e.computed(()=>!!t.formFieldErrors.url||!!t.formFieldErrors.host||!!t.formFieldErrors.port),S=o=>{if(t.errorMessages.length)return"";const r=t.formFieldErrors;return r[o]?r[o]:""},M=o=>{U(o??void 0);const r=Q(t.fields.host);r&&(t.formFieldErrors.host=r);const _=ie(t.fields.path);_&&(t.formFieldErrors.path=_);const C=le(t.fields.port);C&&(t.formFieldErrors.port=C),W.value?n("url-valid:success"):n("url-valid:error",t.errorMessages.join(",")||l("gateway_services.form.errors.url.invalid"))},U=o=>{if(o)t.formFieldErrors[o]="";else for(let r in t.formFieldErrors)t.formFieldErrors[r]="";t.errorMessages=[]},W=e.computed(()=>{for(let o in t.formFieldErrors)if(t.formFieldErrors[o].length)return!1;return!0}),we=()=>{t.fields.url&&v.value==="url"?fe():M()},be=()=>`new-service-${new Date().toISOString().replace(/\D/g,"").slice(0,17)}`,ee=e.computed(()=>!["tcp","tls","tls_passthrough","grpc","grpcs","udp"].includes(t.fields.protocol)),ve=e.computed(()=>{if(v.value==="url")return!0;const o=["https","wss","tls"].includes(t.fields.protocol);return v.value==="protocol"&&o}),Ve=e.computed(()=>{if(v.value==="url")return!0;const o=["https","tls"].includes(t.fields.protocol);return v.value==="protocol"&&o}),te=e.computed(()=>{if(v.value==="url")return!0;const o=["https","wss","tls"].includes(t.fields.protocol);return v.value==="protocol"&&o}),ue=o=>{U("name"),Y.value=ge.utf8Name(o)},d=e.computed(()=>{const o=!L.value||!ye(t.fields,w),r=v.value==="url"&&!!t.fields.url&&W.value,_=v.value==="protocol"&&!!t.fields.host&&W.value;return o&&(r||_)}),g=o=>{var r,_,C;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=((_=o==null?void 0:o.ca_certificates)==null?void 0:_.join(","))||"",t.fields.client_certificate=((C=o==null?void 0:o.client_certificate)==null?void 0:C.id)||"",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(w,t.fields)},y=()=>{E.push(a.config.cancelRoute)},k=e.computed(()=>{var r,_;let o=`${a.config.apiBaseUrl}${J.form[a.config.app].validate}`;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,(_=a.config)!=null&&_.workspace?`/${a.config.workspace}`:"")),o=o.replace(/{id}/gi,a.gatewayServiceId),o}),$=e.computed(()=>{var r,_;let o=`${a.config.apiBaseUrl}${J.form[a.config.app][q.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,(_=a.config)!=null&&_.workspace?`/${a.config.workspace}`:"")),o=o.replace(/{id}/gi,a.gatewayServiceId),o}),P=o=>{let r="";o.url&&(r=new URL(o.url).protocol),(["https","wss","tls"].includes(o.protocol)||["https","wss","tls"].includes(r))&&(o.tls_verify=o.tls_verify_enabled?o.tls_verify_value:null),delete o.tls_verify_enabled,delete o.tls_verify_value},R=e.computed(()=>{var r,_,C,h;const o={name:t.fields.name||null,tags:t.fields.tags?(C=(_=(r=t.fields.tags)==null?void 0:r.split(","))==null?void 0:_.map(b=>String(b||"").trim()))==null?void 0:C.filter(b=>b!==""):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,tls_verify_value:t.fields.tls_verify_value,tls_verify_enabled:t.fields.tls_verify_enabled,ca_certificates:t.fields.ca_certificates?(h=t.fields.ca_certificates)==null?void 0:h.split(",").filter(b=>b!==""):null,client_certificate:t.fields.client_certificate?{id:t.fields.client_certificate}:null,write_timeout:t.fields.write_timeout,port:t.fields.port,url:t.fields.url,enabled:t.fields.enabled};return t.fields.client_certificate&&["https","wss","tls"].includes(t.fields.protocol)&&(o.client_certificate={id:t.fields.client_certificate}),t.fields.tls_verify_enabled&&["https","wss","tls"].includes(t.fields.protocol)&&(o.tls_verify=t.fields.tls_verify_value),ee.value||(o.path=null),q.value==="create"?v.value==="url"?(delete o.protocol,delete o.host,delete o.path,a.config.app==="konnect"&&delete o.port):delete o.url:q.value==="edit"&&delete o.url,o}),f=async()=>{var o,r,_,C;try{t.isReadonly=!0;const h=R.value;P(h);let b;if(await V.post(k.value,h),q.value==="create"?b=await V.post($.value,h):q.value==="edit"&&(b=((o=a.config)==null?void 0:o.app)==="konnect"?await V.put($.value,h):await V.patch($.value,h)),b){const{data:i}=b;t.fields.name=(i==null?void 0:i.name)||"",t.fields.port=i.port||X.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.ca_certificates=(_=i==null?void 0:i.ca_certificates)!=null&&_.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=(C=i==null?void 0:i.tags)!=null&&C.length?i.tags.join(", "):"",t.fields.enabled=(i==null?void 0:i.enabled)??!0,Object.assign(w,t.fields),n("update",b==null?void 0:b.data)}return b}catch(h){const{fields:b,messages:i}=T(h);t.errorMessages=i,b.length&&b.forEach(O=>{const Z=O.field;Z==="client_certificate.id"?t.formFieldErrors.client_certificate=O.message:Z.startsWith("ca_certificates")?t.formFieldErrors.ca_certificates=O.message:Object.keys(t.formFieldErrors).includes(Z)&&(t.formFieldErrors={...t.formFieldErrors,[Z]:O.message})}),n("error",h)}finally{t.isReadonly=!1}};return e.watch(()=>a.gatewayServiceId,()=>{Object.assign(t.fields,w)}),e.watch(t.fields,o=>{t.fields.port=X.getPortFromProtocol(o.protocol,String(o.port)),n("model-updated",R.value)}),e.onMounted(()=>{n("model-updated",R.value),L.value||(t.fields.name=be())}),B({validateUrl:we,getPayload:R,saveFormData:f,canSubmit:d,initForm:g}),(o,r)=>{const _=e.resolveComponent("KRadio"),C=e.resolveComponent("KButton"),h=e.resolveComponent("KInput"),b=e.resolveComponent("KSelect"),i=e.resolveComponent("KCheckbox"),O=e.resolveComponent("KCollapse"),Z=e.resolveComponent("KAlert");return e.openBlock(),e.createElementBlock("div",Ke,[e.createVNode(e.unref(u.EntityBaseForm),{"can-submit":d.value,config:s.config,"edit-id":s.gatewayServiceId,"entity-type":e.unref(u.SupportedEntityType).GatewayService,"fetch-url":D.value,"form-fields":R.value,"is-readonly":t.isReadonly,onCancel:y,"onFetch:error":r[31]||(r[31]=c=>o.$emit("error",c)),"onFetch:success":g,onLoading:r[32]||(r[32]=c=>o.$emit("loading",c)),onSubmit:f},{"form-actions":e.withCtx(()=>[e.renderSlot(o.$slots,"form-actions",{canSubmit:d.value,cancel:y,submit:f},void 0,!0)]),default:e.withCtx(()=>[e.createVNode(e.unref(u.EntityFormSection),{description:e.unref(l)("gateway_services.form.sections.keys.description"),"hide-info-header":s.hideSectionsInfo,title:e.unref(l)("gateway_services.form.sections.keys.title")},{default:e.withCtx(()=>[L.value?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",qe,[e.createElementVNode("div",Le,[e.createVNode(_,{modelValue:v.value,"onUpdate:modelValue":r[0]||(r[0]=c=>v.value=c),card:"","card-orientation":"horizontal","data-testid":"gateway-service-url-radio",description:e.unref(l)("gateway_services.form.sections.keys.url.description"),label:e.unref(l)("gateway_services.form.sections.keys.url.label"),"selected-value":se.url,onChange:ce},null,8,["modelValue","description","label","selected-value"]),e.createVNode(_,{modelValue:v.value,"onUpdate:modelValue":r[1]||(r[1]=c=>v.value=c),card:"","card-orientation":"horizontal","checked-group":"protocol","data-testid":"gateway-service-protocol-radio",description:e.unref(l)("gateway_services.form.sections.keys.protocol.description"),label:e.unref(l)("gateway_services.form.sections.keys.protocol.label"),"selected-value":se.protocol,onChange:ce},null,8,["modelValue","description","label","selected-value"])]),e.createVNode(e.Transition,{name:"slide-fade"},{default:e.withCtx(()=>[v.value==="url"?(e.openBlock(),e.createElementBlock("div",Ge,[e.createVNode(h,{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:he.value,"error-message":S("url"),label:e.unref(l)("gateway_services.form.fields.upstream_url.label"),"label-attributes":{info:s.config.app==="konnect"?e.unref(l)("gateway_services.form.fields.upstream_url.tooltip_for_konnect"):e.unref(l)("gateway_services.form.fields.upstream_url.tooltip_for_km"),tooltipAttributes:{maxWidth:"400"}},name:"url",placeholder:e.unref(l)("gateway_services.form.fields.upstream_url.placeholder"),required:"",onInput:fe},e.createSlots({_:2},[s.hideTrySampleApiButton?void 0:{name:"after",fn:e.withCtx(()=>[e.createVNode(C,{appearance:"tertiary","data-testid":"try-sample-api",size:"small",onClick:de},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(l)("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(()=>[v.value==="protocol"||L.value?(e.openBlock(),e.createElementBlock("div",We,[e.createVNode(b,{modelValue:t.fields.protocol,"onUpdate:modelValue":r[3]||(r[3]=c=>t.fields.protocol=c),"data-testid":"gateway-service-protocol-select",items:H,label:e.unref(l)("gateway_services.form.fields.protocol.label"),"label-attributes":{info:e.unref(l)("gateway_services.form.fields.protocol.tooltip"),tooltipAttributes:{maxWidth:"400"}},readonly:t.isReadonly,required:"",width:"100%",onSelected:r[4]||(r[4]=c=>ae(t.fields.protocol,c))},null,8,["modelValue","label","label-attributes","readonly"]),e.createVNode(h,{modelValue:t.fields.host,"onUpdate:modelValue":r[5]||(r[5]=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":S("host"),label:e.unref(l)("gateway_services.form.fields.host.label"),"label-attributes":{info:e.unref(l)("gateway_services.form.fields.host.tooltip"),tooltipAttributes:{maxWidth:"400"}},name:"host",placeholder:e.unref(l)("gateway_services.form.fields.host.placeholder"),required:"",onInput:r[6]||(r[6]=c=>M("host"))},e.createSlots({_:2},[s.hideTrySampleApiButton?void 0:{name:"after",fn:e.withCtx(()=>[e.createVNode(C,{appearance:"tertiary",size:"small",onClick:de},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(l)("gateway_services.form.buttons.try_sample")),1)]),_:1})]),key:"0"}]),1032,["modelValue","error","error-message","label","label-attributes","placeholder"]),ee.value?(e.openBlock(),e.createElementBlock("div",Oe,[e.createVNode(h,{modelValue:t.fields.path,"onUpdate:modelValue":r[7]||(r[7]=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":S("path"),label:e.unref(l)("gateway_services.form.fields.path.label"),"label-attributes":{info:e.unref(l)("gateway_services.form.fields.path.tooltip"),tooltipAttributes:{maxWidth:"400"}},name:"path",placeholder:e.unref(l)("gateway_services.form.fields.path.placeholder"),onInput:r[8]||(r[8]=c=>M("path"))},null,8,["modelValue","error","error-message","label","label-attributes","placeholder"])])):e.createCommentVNode("",!0),e.createVNode(h,{modelValue:t.fields.port,"onUpdate:modelValue":[r[9]||(r[9]=c=>t.fields.port=c),r[11]||(r[11]=()=>{t.fields.port=G(t.fields.port+"")})],class:"gateway-service-form-margin-top","data-testid":"gateway-service-port-input",error:!!t.formFieldErrors.port,"error-message":S("port"),label:e.unref(l)("gateway_services.form.fields.port.label"),"label-attributes":{info:e.unref(l)("gateway_services.form.fields.port.tooltip"),tooltipAttributes:{maxWidth:"400"}},name:"port",type:"number",onInput:r[10]||(r[10]=c=>M("port"))},null,8,["modelValue","error","error-message","label","label-attributes"])])):e.createCommentVNode("",!0)]),_:1}),e.createVNode(O,{modelValue:m.value,"onUpdate:modelValue":r[27]||(r[27]=c=>m.value=c),"data-testid":"advanced-fields-collapse","trigger-alignment":"leading","trigger-label":e.unref(l)("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",ze,[e.createVNode(h,{modelValue:t.fields.retries,"onUpdate:modelValue":[r[12]||(r[12]=c=>t.fields.retries=c),r[13]||(r[13]=()=>{t.fields.retries=G(t.fields.retries+"")})],autocomplete:"off","data-testid":"gateway-service-retries-input",label:e.unref(l)("gateway_services.form.fields.retries.label"),"label-attributes":{info:e.unref(l)("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",He,[e.createVNode(h,{modelValue:t.fields.connect_timeout,"onUpdate:modelValue":[r[14]||(r[14]=c=>t.fields.connect_timeout=c),r[15]||(r[15]=()=>{t.fields.connect_timeout=G(t.fields.connect_timeout+"")})],autocomplete:"off","data-testid":"gateway-service-connTimeout-input",label:e.unref(l)("gateway_services.form.fields.connect_timeout.label"),"label-attributes":{info:e.unref(l)("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",Ze,[e.createVNode(h,{modelValue:t.fields.write_timeout,"onUpdate:modelValue":[r[16]||(r[16]=c=>t.fields.write_timeout=c),r[17]||(r[17]=()=>{t.fields.write_timeout=G(t.fields.write_timeout+"")})],autocomplete:"off","data-testid":"gateway-service-writeTimeout-input",label:e.unref(l)("gateway_services.form.fields.write_timeout.label"),"label-attributes":{info:e.unref(l)("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",Je,[e.createVNode(h,{modelValue:t.fields.read_timeout,"onUpdate:modelValue":[r[18]||(r[18]=c=>t.fields.read_timeout=c),r[19]||(r[19]=()=>{t.fields.read_timeout=G(t.fields.read_timeout+"")})],autocomplete:"off","data-testid":"gateway-service-readTimeout-input",label:e.unref(l)("gateway_services.form.fields.read_timeout.label"),"label-attributes":{info:e.unref(l)("gateway_services.form.fields.read_timeout.tooltip"),tooltipAttributes:{maxWidth:"400"}},name:"readTimeout",readonly:t.isReadonly,type:"number"},null,8,["modelValue","label","label-attributes","readonly"])]),ve.value?(e.openBlock(),e.createElementBlock("div",Qe,[e.createVNode(h,{modelValue:t.fields.client_certificate,"onUpdate:modelValue":r[20]||(r[20]=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(l)("gateway_services.form.fields.client_certificate.label"),"label-attributes":{info:e.unref(l)("gateway_services.form.fields.client_certificate.tooltip"),tooltipAttributes:{maxWidth:"400"}},name:"clientCert",placeholder:e.unref(l)("gateway_services.form.fields.client_certificate.placeholder"),readonly:t.isReadonly,type:"text",onInput:r[21]||(r[21]=c=>pe("client_certificate"))},null,8,["modelValue","error","label","label-attributes","placeholder","readonly"])])):e.createCommentVNode("",!0),Ve.value?(e.openBlock(),e.createElementBlock("div",Xe,[e.createVNode(h,{modelValue:t.fields.ca_certificates,"onUpdate:modelValue":r[22]||(r[22]=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(l)("gateway_services.form.fields.ca_certificates.label"),"label-attributes":{tooltipAttributes:{maxWidth:"400"}},placeholder:e.unref(l)("gateway_services.form.fields.ca_certificates.placeholder"),readonly:t.isReadonly,type:"text",onInput:r[23]||(r[23]=c=>pe("ca_certificates"))},{"label-tooltip":e.withCtx(()=>[e.createVNode(e.unref(A),{keypath:"gateway_services.form.fields.ca_certificates.tooltip",scope:"global"},{code1:e.withCtx(()=>[e.createElementVNode("code",null,e.toDisplayString(e.unref(l)("gateway_services.form.fields.ca_certificates.code1")),1)]),code2:e.withCtx(()=>[e.createElementVNode("code",null,e.toDisplayString(e.unref(l)("gateway_services.form.fields.ca_certificates.code2")),1)]),_:1})]),_:1},8,["modelValue","error","label","placeholder","readonly"])])):e.createCommentVNode("",!0),te.value?(e.openBlock(),e.createElementBlock("div",Ye,[e.createVNode(i,{modelValue:t.fields.tls_verify_enabled,"onUpdate:modelValue":r[24]||(r[24]=c=>t.fields.tls_verify_enabled=c),"data-testid":"gateway-service-tls-verify-checkbox",description:e.unref(l)("gateway_services.form.fields.tls_verify_enabled.help"),label:e.unref(l)("gateway_services.form.fields.tls_verify_enabled.label"),"label-attributes":{tooltipAttributes:{maxWidth:"400"}}},{tooltip:e.withCtx(()=>[e.createVNode(e.unref(A),{keypath:"gateway_services.form.fields.tls_verify_enabled.tooltip",scope:"global"},{code1:e.withCtx(()=>[e.createElementVNode("code",null,e.toDisplayString(e.unref(l)("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",et,[e.createVNode(_,{modelValue:t.fields.tls_verify_value,"onUpdate:modelValue":r[25]||(r[25]=c=>t.fields.tls_verify_value=c),"data-testid":"gateway-service-tls-verify-true-option",label:e.unref(l)("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",tt,[e.createVNode(_,{modelValue:t.fields.tls_verify_value,"onUpdate:modelValue":r[26]||(r[26]=c=>t.fields.tls_verify_value=c),"data-testid":"gateway-service-tls-verify-false-option",label:e.unref(l)("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(u.EntityFormSection),{description:e.unref(l)("gateway_services.form.sections.general.description"),"hide-info-header":s.hideSectionsInfo,title:e.unref(l)("gateway_services.form.sections.general.title")},{default:e.withCtx(()=>[e.createVNode(h,{modelValue:t.fields.name,"onUpdate:modelValue":r[28]||(r[28]=c=>t.fields.name=c),modelModifiers:{trim:!0},autocomplete:"off","data-testid":"gateway-service-name-input",error:z.value,"error-message":Y.value,label:e.unref(l)("gateway_services.form.fields.name.label"),"label-attributes":{info:e.unref(l)("gateway_services.form.fields.name.tooltip"),tooltipAttributes:{maxWidth:"400"}},name:"name",placeholder:e.unref(l)("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(O,{"data-testid":"tags-collapse","trigger-alignment":"leading","trigger-label":e.unref(l)("gateway_services.form.fields.tags.collapse")},{default:e.withCtx(()=>[e.createElementVNode("div",ot,[e.createVNode(h,{modelValue:t.fields.tags,"onUpdate:modelValue":r[29]||(r[29]=c=>t.fields.tags=c),modelModifiers:{trim:!0},autocomplete:"off","data-testid":"gateway-service-tags-input",help:e.unref(l)("gateway_services.form.fields.tags.help"),label:e.unref(l)("gateway_services.form.fields.tags.label"),"label-attributes":{info:e.unref(l)("gateway_services.form.fields.tags.tooltip"),tooltipAttributes:{maxWidth:"400"}},name:"tags",placeholder:e.unref(l)("gateway_services.form.fields.tags.placeholder"),readonly:t.isReadonly,type:"text",onInput:r[30]||(r[30]=c=>U("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(Z,{key:0,appearance:"danger","data-testid":"form-error"},{default:e.withCtx(()=>[e.createElementVNode("ul",rt,[(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-84fd56e4"]]),{validateHost:lt,validatePort:st,validateProtocol:at,validatePath:nt}=K.useUrlValidators(),ct=()=>({validateHost:lt,validatePort:st,validateProtocol:at,validatePath:nt});N.GatewayServiceConfigCard=Me,N.GatewayServiceForm=it,N.GatewayServiceList=Re,N.useUrlValidator=ct,Object.defineProperty(N,Symbol.toStringTag,{value:"Module"})});
package/dist/style.css CHANGED
@@ -1 +1 @@
1
- .config-card-fieldset[data-v-f7096c33]{border:solid 1px #e0e4ea;border-radius:4px;margin-bottom:8px;margin-top:4px}.config-card-fieldset-title[data-v-f7096c33]{font-size:14px;padding:0 8px;width:auto}fieldset.config-card-fieldset .config-card-details-row{width:unset}.config-card-json-item .config-card-details-row,fieldset.config-card-fieldset .config-card-details-row{margin:0 16px}.config-card-json-item .config-card-details-row:last-of-type,fieldset.config-card-fieldset .config-card-details-row:last-of-type{border-bottom:none}[data-v-2feb8c2e] .k-button.navigation-button{font-size:14px;font-weight:400}.config-card-details-row[data-v-5f9aa0e8]{align-items:center;border-bottom:var(--2f90d7f7);box-sizing:border-box;display:var(--668a792a);padding:16px 16px 16px 0;width:100%}.config-card-details-row .config-card-details-label[data-v-5f9aa0e8]{box-sizing:border-box;padding-right:16px;width:var(--5bc9ad14)}.config-card-details-row .config-card-details-label label[data-v-5f9aa0e8]{color:#3a3f51;display:inline-flex;max-width:100%}.config-card-details-row .config-card-details-label label .label-content[data-v-5f9aa0e8]{line-height:initial;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.config-card-details-row .config-card-details-label label .k-popover[data-v-5f9aa0e8]{min-width:0}.config-card-details-row .config-card-details-value[data-v-5f9aa0e8]{box-sizing:border-box;width:var(--5bc5215e)}.config-card-details-row .config-card-details-value .truncated[data-v-5f9aa0e8]{display:inline-block;line-height:initial;max-width:20ch;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.config-card-details-row .config-card-details-value span.attrs-data-text[data-v-5f9aa0e8]{overflow-wrap:anywhere}.config-card-details-row .config-card-details-value .copy-uuid-array[data-v-5f9aa0e8] .k-copy:not(:last-of-type){margin-bottom:8px}.config-card-details-row .config-card-details-value .method-badge-array[data-v-5f9aa0e8]{display:flex;flex-wrap:wrap;row-gap:10px}.config-card-details-row .config-badge[data-v-5f9aa0e8]{margin-right:4px}.config-card-details-row[data-v-5f9aa0e8] .k-label{margin-bottom:0}.config-card-details-row[data-v-5f9aa0e8] .k-label .kong-icon-infoFilled{display:flex}.config-card-details-row[data-v-5f9aa0e8] .config-card-details-row{width:auto}.json-content.k-code-block{border-top-left-radius:0;border-top-right-radius:0}.json-endpoint{align-items:baseline;background-color:#000933;border-bottom:1px solid rgba(255,255,255,.2);border-top-left-radius:8px;border-top-right-radius:8px;display:flex;padding:8px 0 8px 12px}.json-endpoint .k-code-block{flex:auto;z-index:2}.json-endpoint .k-code-block .code-block-content{padding-bottom:0;padding-top:0}.json-endpoint .k-code-block .code-block-secondary-actions{margin-top:0!important}.json-endpoint code{direction:rtl;max-width:var(--eca0976a);overflow:hidden!important;text-align:left;text-overflow:ellipsis;white-space:nowrap}.config-card-prop-section-title[data-v-d67757a9]{color:#000933;font-size:16px;font-weight:600;margin-bottom:16px;margin-top:48px}.kong-ui-entity-base-config-card .config-card-actions[data-v-9b9ea6f9]{align-items:center;display:flex}.kong-ui-entity-base-config-card .config-card-actions .config-format-select-label[data-v-9b9ea6f9]{margin-bottom:0;margin-right:8px}.kong-ui-entity-base-config-card .config-card-prop-section-title[data-v-9b9ea6f9]{color:#000933;font-size:16px;font-weight:600;margin-bottom:16px;margin-top:48px}.kong-ui-entity-base-config-card[data-v-9b9ea6f9] .config-card-details-row:last-of-type{border-bottom:none}.kong-ui-entity-base-config-card .book-icon[data-v-9b9ea6f9]{margin-left:8px;padding:0}.kong-ui-entity-base-form[data-v-612b1eac]{box-sizing:border-box;max-width:1536px;width:100%}.kong-ui-entity-base-form[data-v-612b1eac] .k-slideout-title{color:#000933!important;font-size:24px!important;font-weight:700!important;line-height:32px!important;margin-bottom:16px!important}.kong-ui-entity-base-form[data-v-612b1eac] .k-card.content-card{padding:0 16px!important}.kong-ui-entity-base-form[data-v-612b1eac] .tab-item>div.tab-link.has-panels{color:#6c7489!important;font-size:14px!important;font-weight:700!important;line-height:24px!important}.kong-ui-entity-base-form[data-v-612b1eac] .tab-item.active>div.tab-link.has-panels{color:#000933!important;font-weight:600!important}.form-actions[data-v-612b1eac]{align-items:center;display:flex;justify-content:flex-end;margin-top:24px}.form-actions[data-v-612b1eac] .k-button:last-of-type,.form-actions[data-v-612b1eac] .k-button:nth-last-of-type(2){margin-left:16px}.form-actions-reverted[data-v-612b1eac]{direction:rtl}.content-wrapper[data-v-a3a65cac] .k-tooltip{word-break:break-all}.kong-ui-entity-base-table .toolbar-container[data-v-d86d3e31]{align-items:center;display:flex;width:100%}.kong-ui-entity-base-table .toolbar-button-container[data-v-d86d3e31]{margin-left:auto}.kong-ui-entity-base-table .hidden[data-v-d86d3e31]{display:none}.kong-ui-entity-base-table[data-v-d86d3e31] .empty-state-icon-gateway{background-color:#ecfcff;border-radius:4px;padding:8px}.kong-ui-entity-base-table :deep(.k-table){table-layout:fixed}.kong-ui-entity-delete-modal .message[data-v-4361d622],.kong-ui-entity-delete-modal .description[data-v-4361d622]{line-height:24px;margin:0}.kong-ui-entity-delete-modal .message strong[data-v-4361d622]{font-weight:600}.kong-ui-entity-delete-modal .description[data-v-4361d622]{margin-top:32px}.kong-ui-entity-delete-error[data-v-4361d622]{margin-bottom:16px}.kong-ui-entity-filter-input[data-v-084f7978]{width:100%}.kong-ui-entity-filter-clear[data-v-084f7978]{cursor:pointer}.kong-ui-entity-filter[data-v-084f7978]{display:flex;position:relative}.kong-ui-entity-filter[data-v-084f7978] .menu-content{flex-direction:column}.kong-ui-entity-filter[data-v-084f7978] .k-menu-item-divider hr{margin:12px 0}.kong-ui-entity-filter-backdrop[data-v-084f7978]{bottom:0;left:0;position:fixed;right:0;top:0;z-index:1050}.kong-ui-entity-filter-menu[data-v-084f7978]{background-color:#fff;border:1px solid #afb7c5;border-radius:4px;box-shadow:0 4px 20px #e0e4ea;left:0;margin-top:16px;padding:8px 0 12px;position:absolute;top:100%;width:300px;z-index:1060}.kong-ui-entity-filter-menu-item[data-v-084f7978]{border-bottom:1px solid #e0e4ea;color:#6c7489;font-size:12px;font-weight:400;line-height:16px;list-style:none;margin:0 20px;padding:16px 0;position:relative;white-space:nowrap}.menu-item-title[data-v-084f7978]{align-items:center;cursor:pointer;display:flex;line-height:24px}.menu-item-title.expanded[data-v-084f7978]{color:#232633}.menu-item-expand-icon[data-v-084f7978]{margin-left:auto}.menu-item-expand-icon.expanded[data-v-084f7978]{transform:rotate(180deg)}.menu-item-indicator[data-v-084f7978]{background-color:#0044f4;border-radius:50%;height:4px;margin-left:4px;width:4px}.menu-item-body[data-v-084f7978]{align-items:center;display:flex;justify-content:space-between;margin-top:16px}.menu-item-body[data-v-084f7978] .input{padding-bottom:4px!important;padding-top:4px!important}.menu-item-body[data-v-084f7978] .k-input{width:100%}.menu-item-body[data-v-084f7978] .k-select-input .input{font-size:12px}.menu-item-body[data-v-084f7978] .k-select-input .input::placeholder{color:#00000073!important;font-size:12px}.menu-item-label[data-v-084f7978]{margin-bottom:0;margin-right:12px}.menu-item-buttons[data-v-084f7978]{display:flex;justify-content:space-between;margin:10px 0 6px}.filter-clear-button-container[data-v-084f7978]{padding:12px 20px 0}fieldset[data-v-b1f74200]{margin:0;min-width:0;padding:0}.kong-ui-entity-form-section[data-v-b1f74200]{border:0}.kong-ui-entity-form-section .form-section-wrapper[data-v-b1f74200]{column-gap:16px;display:flex;flex-direction:column;padding-bottom:64px;row-gap:12px;width:100%}@media (min-width: 1024px){.kong-ui-entity-form-section .form-section-wrapper[data-v-b1f74200]{flex-direction:row}}.kong-ui-entity-form-section .form-section-wrapper .form-section-info[data-v-b1f74200]{flex:1}@media (min-width: 1024px){.kong-ui-entity-form-section .form-section-wrapper .form-section-info[data-v-b1f74200]{max-width:350px}.kong-ui-entity-form-section .form-section-wrapper .form-section-info.sticky[data-v-b1f74200]{height:fit-content;margin-bottom:16px;position:sticky;top:16px}}.kong-ui-entity-form-section .form-section-wrapper .form-section-info .form-section-title[data-v-b1f74200]{color:#000933;font-size:16px;font-weight:700;line-height:20px;margin-bottom:8px;margin-top:0}.kong-ui-entity-form-section .form-section-wrapper .form-section-info .form-section-description[data-v-b1f74200],.kong-ui-entity-form-section .form-section-wrapper .form-section-info .form-section-description p[data-v-b1f74200],.kong-ui-entity-form-section .form-section-wrapper .form-section-info .form-section-description[data-v-b1f74200] p{color:#000933;font-size:14px;font-weight:400;line-height:20px;margin:0}.kong-ui-entity-form-section .form-section-wrapper .form-section-info .form-section-footer[data-v-b1f74200]{margin-top:32px}.kong-ui-entity-form-section .form-section-wrapper .form-section-content[data-v-b1f74200]{flex:1}.kong-ui-entity-form-section .form-section-wrapper .form-section-content[data-v-b1f74200]>*:not(:first-child){margin-top:24px}.kong-ui-entity-form-section.has-divider .form-section-wrapper[data-v-b1f74200]{border-bottom:1px solid #e0e4ea}.ff-form-section .header[data-v-cb6d2e95]{align-items:flex-start;display:flex;gap:8px}.ff-form-section .step[data-v-cb6d2e95]{align-items:center;background:#fff;border:1px solid #afb7c5;border-radius:100px;display:flex;flex:0 0 auto;height:32px;justify-content:center;padding:4px;width:32px}.ff-form-section .header-content[data-v-cb6d2e95]{align-items:flex-start;display:flex;flex:1 1 auto;flex-direction:column;gap:8px;padding-top:4px}.ff-form-section .header-title[data-v-cb6d2e95]{color:#000933;font-size:18px;font-weight:700;line-height:24px;margin:0}.ff-form-section .header-description[data-v-cb6d2e95]{color:#52596e;font-size:14px;line-height:20px;margin:0}.ff-form-section .header-extra[data-v-cb6d2e95]{align-items:center;display:flex;flex:0 0 auto;gap:8px;justify-content:flex-end}.ff-form-section .content[data-v-cb6d2e95]{background:#f9fafb;border:1px solid #e0e4ea;border-radius:6px;display:flex;flex-direction:column;gap:20px;margin-left:16px;margin-top:20px;padding:20px 24px}.kong-ui-public-entity-link[data-v-96efdfa5]{align-items:center;display:flex}.kong-ui-public-entity-link .deleted-entity[data-v-96efdfa5]{font-style:italic}.kong-ui-public-entity-link .entity-link[data-v-96efdfa5]{display:flex;flex:1}.kong-ui-public-entity-link .entity-link[data-v-96efdfa5] .external-link-icon{color:#0044f4;margin-left:4px;padding:2px}.kong-ui-public-entity-link .entity-link-label[data-v-96efdfa5]{display:inline-block;font-weight:400;max-width:90%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.kong-ui-public-entity-link .copy-uuid-tooltip[data-v-96efdfa5]{align-items:center;cursor:pointer;display:flex}.kong-ui-public-entity-link .copy-uuid-tooltip .entity-link-copy-id[data-v-96efdfa5]{margin-left:2px}.kong-ui-public-entity-empty-state[data-v-b6376b66]{align-items:center;background-color:#fff;box-sizing:border-box;display:flex;flex-direction:column;font-family:Inter,Roboto,Helvetica,sans-serif;gap:24px;padding:64px 0;width:100%}@media (min-width: 640px){.kong-ui-public-entity-empty-state[data-v-b6376b66]{padding:64px 96px}}.kong-ui-public-entity-empty-state .empty-state-image[data-v-b6376b66]{margin-bottom:8px}.kong-ui-public-entity-empty-state .entity-empty-state-content[data-v-b6376b66]{align-items:center;display:flex;flex-direction:column;gap:8px;text-align:center;width:100%}.kong-ui-public-entity-empty-state .entity-empty-state-content .entity-empty-state-title h1[data-v-b6376b66]{align-items:center;color:#000933;display:flex;font-size:24px;font-weight:700;gap:8px;line-height:32px;margin:0}.kong-ui-public-entity-empty-state .entity-empty-state-content .entity-empty-state-title h1.secondary[data-v-b6376b66]{font-size:18px}.kong-ui-public-entity-empty-state .entity-empty-state-description[data-v-b6376b66],.kong-ui-public-entity-empty-state .entity-empty-state-pricing[data-v-b6376b66]{color:#52596e;font-size:14px;font-weight:400;line-height:20px;max-width:640px}.kong-ui-public-entity-empty-state .entity-empty-state-description p[data-v-b6376b66],.kong-ui-public-entity-empty-state .entity-empty-state-pricing p[data-v-b6376b66]{margin:0}.kong-ui-public-entity-empty-state .entity-empty-state-pricing[data-v-b6376b66]{margin-top:16px}.kong-ui-public-entity-empty-state .entity-empty-state-message[data-v-b6376b66]{color:#52596e}.kong-ui-public-entity-empty-state .entity-empty-state-action[data-v-b6376b66]{align-items:center;display:flex;gap:12px}.kong-ui-public-entity-empty-state .entity-empty-state-card-container[data-v-b6376b66]{display:flex;flex-wrap:wrap;gap:16px;justify-content:space-around;margin-top:8px;width:312px}@media (min-width: 640px){.kong-ui-public-entity-empty-state .entity-empty-state-card-container[data-v-b6376b66]{width:640px}}.kong-ui-public-entity-empty-state .entity-empty-state-card-container .entity-empty-state-card[data-v-b6376b66]{background-color:#f9fafb;border:1px solid #e0e4ea;border-radius:6px;color:#afb7c5;gap:8px;height:160px;padding:20px;width:312px}.kong-ui-public-entity-empty-state .entity-empty-state-card-container .entity-empty-state-card .feature-icon[data-v-b6376b66]{color:#3a3f51;display:flex;margin-bottom:12px}.kong-ui-public-entity-empty-state .entity-empty-state-card-container .entity-empty-state-card .feature-icon[data-v-b6376b66] .kui-icon{height:20px!important;width:20px!important}.kong-ui-public-entity-empty-state .entity-empty-state-card-container .entity-empty-state-card[data-v-b6376b66] .card-title{font-size:14px;font-weight:600}.kong-ui-public-entity-empty-state .entity-empty-state-card-container .entity-empty-state-card[data-v-b6376b66] .card-content{-webkit-box-orient:vertical;color:#6c7489;display:-webkit-box;-webkit-line-clamp:3;line-clamp:3;overflow:hidden}.kong-ui-public-entity-empty-state .entity-empty-state-bottom-container[data-v-b6376b66]{border-top:1px solid #e0e4ea;display:flex;flex-direction:column;gap:16px;padding-top:48px;width:100%}@media (min-width: 640px){.kong-ui-public-entity-empty-state .entity-empty-state-bottom-container[data-v-b6376b66]{width:640px}}.button-row[data-v-5f172c04]{align-items:center;display:flex;gap:12px}.kong-ui-entities-gateway-services-list[data-v-5f172c04]{width:100%}.kong-ui-entities-gateway-services-list .kong-ui-entity-filter-input[data-v-5f172c04]{margin-right:12px}.kong-ui-entities-gateway-service-form[data-v-2ef1cab4]{width:100%}.kong-ui-entities-gateway-service-form[data-v-2ef1cab4] .k-tooltip{max-width:300px}.kong-ui-entities-gateway-service-form[data-v-2ef1cab4] .k-radio{align-items:normal}.kong-ui-entities-gateway-service-form[data-v-2ef1cab4] .form-section-wrapper{padding-bottom:48px}.kong-ui-entities-gateway-service-form .form-error-list[data-v-2ef1cab4]{list-style-type:disc;margin:0;padding-left:16px}.kong-ui-entities-gateway-service-form .gateway-service-form-margin-top[data-v-2ef1cab4]{margin-top:16px}.kong-ui-entities-gateway-service-form .gateway-service-form-advanced-fields[data-v-2ef1cab4]{display:flex;flex-direction:column;gap:16px;margin-left:12px}.kong-ui-entities-gateway-service-form .gateway-service-form-tags[data-v-2ef1cab4]{margin-left:12px}.kong-ui-entities-gateway-service-form .gateway-service-form-traffic-label[data-v-2ef1cab4]{margin-bottom:16px}.kong-ui-entities-gateway-service-form .gateway-service-url-input[data-v-2ef1cab4],.kong-ui-entities-gateway-service-form .gateway-service-url-input[data-v-2ef1cab4] .input-element-wrapper{display:flex}.kong-ui-entities-gateway-service-form .gateway-service-form-general-info[data-v-2ef1cab4]{display:flex;flex-direction:column;gap:24px}.kong-ui-entities-gateway-service-form .gateway-service-form-group-selection-wrapper[data-v-2ef1cab4]{display:flex;flex-direction:row;gap:16px}.kong-ui-entities-gateway-service-form .gateway-service-form-group-selection-wrapper[data-v-2ef1cab4] .radio-label-wrapper{height:auto}.kong-ui-entities-gateway-service-form .checkbox-aligned-radio[data-v-2ef1cab4]{margin:4px;padding-left:24px}.slide-fade-enter-active[data-v-2ef1cab4]{transition:all .5s ease}.slide-fade-enter-from[data-v-2ef1cab4]{opacity:0;transform:translateY(-5px)}.slide-fade-leave-to[data-v-2ef1cab4]{opacity:0;transform:translateY(5px)}
1
+ .config-card-fieldset[data-v-dc1e39a1]{border:solid 1px #e0e4ea;border-radius:4px;margin-bottom:8px;margin-top:4px}.config-card-fieldset-title[data-v-dc1e39a1]{font-size:14px;padding:0 8px;width:auto}fieldset.config-card-fieldset .config-card-details-row{width:unset}.config-card-json-item .config-card-details-row,fieldset.config-card-fieldset .config-card-details-row{margin:0 16px}.config-card-json-item .config-card-details-row:last-of-type,fieldset.config-card-fieldset .config-card-details-row:last-of-type{border-bottom:none}[data-v-2feb8c2e] .k-button.navigation-button{font-size:14px;font-weight:400}.config-card-details-row[data-v-5f9aa0e8]{align-items:center;border-bottom:var(--2f90d7f7);box-sizing:border-box;display:var(--668a792a);padding:16px 16px 16px 0;width:100%}.config-card-details-row .config-card-details-label[data-v-5f9aa0e8]{box-sizing:border-box;padding-right:16px;width:var(--5bc9ad14)}.config-card-details-row .config-card-details-label label[data-v-5f9aa0e8]{color:#3a3f51;display:inline-flex;max-width:100%}.config-card-details-row .config-card-details-label label .label-content[data-v-5f9aa0e8]{line-height:initial;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.config-card-details-row .config-card-details-label label .k-popover[data-v-5f9aa0e8]{min-width:0}.config-card-details-row .config-card-details-value[data-v-5f9aa0e8]{box-sizing:border-box;width:var(--5bc5215e)}.config-card-details-row .config-card-details-value .truncated[data-v-5f9aa0e8]{display:inline-block;line-height:initial;max-width:20ch;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.config-card-details-row .config-card-details-value span.attrs-data-text[data-v-5f9aa0e8]{overflow-wrap:anywhere}.config-card-details-row .config-card-details-value .copy-uuid-array[data-v-5f9aa0e8] .k-copy:not(:last-of-type){margin-bottom:8px}.config-card-details-row .config-card-details-value .method-badge-array[data-v-5f9aa0e8]{display:flex;flex-wrap:wrap;row-gap:10px}.config-card-details-row .config-badge[data-v-5f9aa0e8]{margin-right:4px}.config-card-details-row[data-v-5f9aa0e8] .k-label{margin-bottom:0}.config-card-details-row[data-v-5f9aa0e8] .k-label .kong-icon-infoFilled{display:flex}.config-card-details-row[data-v-5f9aa0e8] .config-card-details-row{width:auto}.json-content.k-code-block{border-top-left-radius:0;border-top-right-radius:0}.json-endpoint{align-items:baseline;background-color:#000933;border-bottom:1px solid rgba(255,255,255,.2);border-top-left-radius:8px;border-top-right-radius:8px;display:flex;padding:8px 0 8px 12px}.json-endpoint .k-code-block{flex:auto;z-index:2}.json-endpoint .k-code-block .code-block-content{padding-bottom:0;padding-top:0}.json-endpoint .k-code-block .code-block-secondary-actions{margin-top:0!important}.json-endpoint code{direction:rtl;max-width:var(--eca0976a);overflow:hidden!important;text-align:left;text-overflow:ellipsis;white-space:nowrap}.config-card-prop-section-title[data-v-d67757a9]{color:#000933;font-size:16px;font-weight:600;margin-bottom:16px;margin-top:48px}.kong-ui-entity-base-config-card .config-card-actions[data-v-9b9ea6f9]{align-items:center;display:flex}.kong-ui-entity-base-config-card .config-card-actions .config-format-select-label[data-v-9b9ea6f9]{margin-bottom:0;margin-right:8px}.kong-ui-entity-base-config-card .config-card-prop-section-title[data-v-9b9ea6f9]{color:#000933;font-size:16px;font-weight:600;margin-bottom:16px;margin-top:48px}.kong-ui-entity-base-config-card[data-v-9b9ea6f9] .config-card-details-row:last-of-type{border-bottom:none}.kong-ui-entity-base-config-card .book-icon[data-v-9b9ea6f9]{margin-left:8px;padding:0}.kong-ui-entity-base-form[data-v-612b1eac]{box-sizing:border-box;max-width:1536px;width:100%}.kong-ui-entity-base-form[data-v-612b1eac] .k-slideout-title{color:#000933!important;font-size:24px!important;font-weight:700!important;line-height:32px!important;margin-bottom:16px!important}.kong-ui-entity-base-form[data-v-612b1eac] .k-card.content-card{padding:0 16px!important}.kong-ui-entity-base-form[data-v-612b1eac] .tab-item>div.tab-link.has-panels{color:#6c7489!important;font-size:14px!important;font-weight:700!important;line-height:24px!important}.kong-ui-entity-base-form[data-v-612b1eac] .tab-item.active>div.tab-link.has-panels{color:#000933!important;font-weight:600!important}.form-actions[data-v-612b1eac]{align-items:center;display:flex;justify-content:flex-end;margin-top:24px}.form-actions[data-v-612b1eac] .k-button:last-of-type,.form-actions[data-v-612b1eac] .k-button:nth-last-of-type(2){margin-left:16px}.form-actions-reverted[data-v-612b1eac]{direction:rtl}.content-wrapper[data-v-a3a65cac] .k-tooltip{word-break:break-all}.kong-ui-entity-base-table .toolbar-container[data-v-d86d3e31]{align-items:center;display:flex;width:100%}.kong-ui-entity-base-table .toolbar-button-container[data-v-d86d3e31]{margin-left:auto}.kong-ui-entity-base-table .hidden[data-v-d86d3e31]{display:none}.kong-ui-entity-base-table[data-v-d86d3e31] .empty-state-icon-gateway{background-color:#ecfcff;border-radius:4px;padding:8px}.kong-ui-entity-base-table :deep(.k-table){table-layout:fixed}.kong-ui-entity-delete-modal .message[data-v-4361d622],.kong-ui-entity-delete-modal .description[data-v-4361d622]{line-height:24px;margin:0}.kong-ui-entity-delete-modal .message strong[data-v-4361d622]{font-weight:600}.kong-ui-entity-delete-modal .description[data-v-4361d622]{margin-top:32px}.kong-ui-entity-delete-error[data-v-4361d622]{margin-bottom:16px}.kong-ui-entity-filter-input[data-v-084f7978]{width:100%}.kong-ui-entity-filter-clear[data-v-084f7978]{cursor:pointer}.kong-ui-entity-filter[data-v-084f7978]{display:flex;position:relative}.kong-ui-entity-filter[data-v-084f7978] .menu-content{flex-direction:column}.kong-ui-entity-filter[data-v-084f7978] .k-menu-item-divider hr{margin:12px 0}.kong-ui-entity-filter-backdrop[data-v-084f7978]{bottom:0;left:0;position:fixed;right:0;top:0;z-index:1050}.kong-ui-entity-filter-menu[data-v-084f7978]{background-color:#fff;border:1px solid #afb7c5;border-radius:4px;box-shadow:0 4px 20px #e0e4ea;left:0;margin-top:16px;padding:8px 0 12px;position:absolute;top:100%;width:300px;z-index:1060}.kong-ui-entity-filter-menu-item[data-v-084f7978]{border-bottom:1px solid #e0e4ea;color:#6c7489;font-size:12px;font-weight:400;line-height:16px;list-style:none;margin:0 20px;padding:16px 0;position:relative;white-space:nowrap}.menu-item-title[data-v-084f7978]{align-items:center;cursor:pointer;display:flex;line-height:24px}.menu-item-title.expanded[data-v-084f7978]{color:#232633}.menu-item-expand-icon[data-v-084f7978]{margin-left:auto}.menu-item-expand-icon.expanded[data-v-084f7978]{transform:rotate(180deg)}.menu-item-indicator[data-v-084f7978]{background-color:#0044f4;border-radius:50%;height:4px;margin-left:4px;width:4px}.menu-item-body[data-v-084f7978]{align-items:center;display:flex;justify-content:space-between;margin-top:16px}.menu-item-body[data-v-084f7978] .input{padding-bottom:4px!important;padding-top:4px!important}.menu-item-body[data-v-084f7978] .k-input{width:100%}.menu-item-body[data-v-084f7978] .k-select-input .input{font-size:12px}.menu-item-body[data-v-084f7978] .k-select-input .input::placeholder{color:#00000073!important;font-size:12px}.menu-item-label[data-v-084f7978]{margin-bottom:0;margin-right:12px}.menu-item-buttons[data-v-084f7978]{display:flex;justify-content:space-between;margin:10px 0 6px}.filter-clear-button-container[data-v-084f7978]{padding:12px 20px 0}fieldset[data-v-b1f74200]{margin:0;min-width:0;padding:0}.kong-ui-entity-form-section[data-v-b1f74200]{border:0}.kong-ui-entity-form-section .form-section-wrapper[data-v-b1f74200]{column-gap:16px;display:flex;flex-direction:column;padding-bottom:64px;row-gap:12px;width:100%}@media (min-width: 1024px){.kong-ui-entity-form-section .form-section-wrapper[data-v-b1f74200]{flex-direction:row}}.kong-ui-entity-form-section .form-section-wrapper .form-section-info[data-v-b1f74200]{flex:1}@media (min-width: 1024px){.kong-ui-entity-form-section .form-section-wrapper .form-section-info[data-v-b1f74200]{max-width:350px}.kong-ui-entity-form-section .form-section-wrapper .form-section-info.sticky[data-v-b1f74200]{height:fit-content;margin-bottom:16px;position:sticky;top:16px}}.kong-ui-entity-form-section .form-section-wrapper .form-section-info .form-section-title[data-v-b1f74200]{color:#000933;font-size:16px;font-weight:700;line-height:20px;margin-bottom:8px;margin-top:0}.kong-ui-entity-form-section .form-section-wrapper .form-section-info .form-section-description[data-v-b1f74200],.kong-ui-entity-form-section .form-section-wrapper .form-section-info .form-section-description p[data-v-b1f74200],.kong-ui-entity-form-section .form-section-wrapper .form-section-info .form-section-description[data-v-b1f74200] p{color:#000933;font-size:14px;font-weight:400;line-height:20px;margin:0}.kong-ui-entity-form-section .form-section-wrapper .form-section-info .form-section-footer[data-v-b1f74200]{margin-top:32px}.kong-ui-entity-form-section .form-section-wrapper .form-section-content[data-v-b1f74200]{flex:1}.kong-ui-entity-form-section .form-section-wrapper .form-section-content[data-v-b1f74200]>*:not(:first-child){margin-top:24px}.kong-ui-entity-form-section.has-divider .form-section-wrapper[data-v-b1f74200]{border-bottom:1px solid #e0e4ea}.ff-form-section .header[data-v-cb6d2e95]{align-items:flex-start;display:flex;gap:8px}.ff-form-section .step[data-v-cb6d2e95]{align-items:center;background:#fff;border:1px solid #afb7c5;border-radius:100px;display:flex;flex:0 0 auto;height:32px;justify-content:center;padding:4px;width:32px}.ff-form-section .header-content[data-v-cb6d2e95]{align-items:flex-start;display:flex;flex:1 1 auto;flex-direction:column;gap:8px;padding-top:4px}.ff-form-section .header-title[data-v-cb6d2e95]{color:#000933;font-size:18px;font-weight:700;line-height:24px;margin:0}.ff-form-section .header-description[data-v-cb6d2e95]{color:#52596e;font-size:14px;line-height:20px;margin:0}.ff-form-section .header-extra[data-v-cb6d2e95]{align-items:center;display:flex;flex:0 0 auto;gap:8px;justify-content:flex-end}.ff-form-section .content[data-v-cb6d2e95]{background:#f9fafb;border:1px solid #e0e4ea;border-radius:6px;display:flex;flex-direction:column;gap:20px;margin-left:16px;margin-top:20px;padding:20px 24px}.kong-ui-public-entity-link[data-v-96efdfa5]{align-items:center;display:flex}.kong-ui-public-entity-link .deleted-entity[data-v-96efdfa5]{font-style:italic}.kong-ui-public-entity-link .entity-link[data-v-96efdfa5]{display:flex;flex:1}.kong-ui-public-entity-link .entity-link[data-v-96efdfa5] .external-link-icon{color:#0044f4;margin-left:4px;padding:2px}.kong-ui-public-entity-link .entity-link-label[data-v-96efdfa5]{display:inline-block;font-weight:400;max-width:90%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.kong-ui-public-entity-link .copy-uuid-tooltip[data-v-96efdfa5]{align-items:center;cursor:pointer;display:flex}.kong-ui-public-entity-link .copy-uuid-tooltip .entity-link-copy-id[data-v-96efdfa5]{margin-left:2px}.kong-ui-public-entity-empty-state[data-v-b6376b66]{align-items:center;background-color:#fff;box-sizing:border-box;display:flex;flex-direction:column;font-family:Inter,Roboto,Helvetica,sans-serif;gap:24px;padding:64px 0;width:100%}@media (min-width: 640px){.kong-ui-public-entity-empty-state[data-v-b6376b66]{padding:64px 96px}}.kong-ui-public-entity-empty-state .empty-state-image[data-v-b6376b66]{margin-bottom:8px}.kong-ui-public-entity-empty-state .entity-empty-state-content[data-v-b6376b66]{align-items:center;display:flex;flex-direction:column;gap:8px;text-align:center;width:100%}.kong-ui-public-entity-empty-state .entity-empty-state-content .entity-empty-state-title h1[data-v-b6376b66]{align-items:center;color:#000933;display:flex;font-size:24px;font-weight:700;gap:8px;line-height:32px;margin:0}.kong-ui-public-entity-empty-state .entity-empty-state-content .entity-empty-state-title h1.secondary[data-v-b6376b66]{font-size:18px}.kong-ui-public-entity-empty-state .entity-empty-state-description[data-v-b6376b66],.kong-ui-public-entity-empty-state .entity-empty-state-pricing[data-v-b6376b66]{color:#52596e;font-size:14px;font-weight:400;line-height:20px;max-width:640px}.kong-ui-public-entity-empty-state .entity-empty-state-description p[data-v-b6376b66],.kong-ui-public-entity-empty-state .entity-empty-state-pricing p[data-v-b6376b66]{margin:0}.kong-ui-public-entity-empty-state .entity-empty-state-pricing[data-v-b6376b66]{margin-top:16px}.kong-ui-public-entity-empty-state .entity-empty-state-message[data-v-b6376b66]{color:#52596e}.kong-ui-public-entity-empty-state .entity-empty-state-action[data-v-b6376b66]{align-items:center;display:flex;gap:12px}.kong-ui-public-entity-empty-state .entity-empty-state-card-container[data-v-b6376b66]{display:flex;flex-wrap:wrap;gap:16px;justify-content:space-around;margin-top:8px;width:312px}@media (min-width: 640px){.kong-ui-public-entity-empty-state .entity-empty-state-card-container[data-v-b6376b66]{width:640px}}.kong-ui-public-entity-empty-state .entity-empty-state-card-container .entity-empty-state-card[data-v-b6376b66]{background-color:#f9fafb;border:1px solid #e0e4ea;border-radius:6px;color:#afb7c5;gap:8px;height:160px;padding:20px;width:312px}.kong-ui-public-entity-empty-state .entity-empty-state-card-container .entity-empty-state-card .feature-icon[data-v-b6376b66]{color:#3a3f51;display:flex;margin-bottom:12px}.kong-ui-public-entity-empty-state .entity-empty-state-card-container .entity-empty-state-card .feature-icon[data-v-b6376b66] .kui-icon{height:20px!important;width:20px!important}.kong-ui-public-entity-empty-state .entity-empty-state-card-container .entity-empty-state-card[data-v-b6376b66] .card-title{font-size:14px;font-weight:600}.kong-ui-public-entity-empty-state .entity-empty-state-card-container .entity-empty-state-card[data-v-b6376b66] .card-content{-webkit-box-orient:vertical;color:#6c7489;display:-webkit-box;-webkit-line-clamp:3;line-clamp:3;overflow:hidden}.kong-ui-public-entity-empty-state .entity-empty-state-bottom-container[data-v-b6376b66]{border-top:1px solid #e0e4ea;display:flex;flex-direction:column;gap:16px;padding-top:48px;width:100%}@media (min-width: 640px){.kong-ui-public-entity-empty-state .entity-empty-state-bottom-container[data-v-b6376b66]{width:640px}}.button-row[data-v-3cb1989f]{align-items:center;display:flex;gap:12px}.kong-ui-entities-gateway-services-list[data-v-3cb1989f]{width:100%}.kong-ui-entities-gateway-services-list .kong-ui-entity-filter-input[data-v-3cb1989f]{margin-right:12px}.kong-ui-entities-gateway-service-form[data-v-84fd56e4]{width:100%}.kong-ui-entities-gateway-service-form[data-v-84fd56e4] .k-tooltip{max-width:300px}.kong-ui-entities-gateway-service-form[data-v-84fd56e4] .k-radio{align-items:normal}.kong-ui-entities-gateway-service-form[data-v-84fd56e4] .form-section-wrapper{padding-bottom:48px}.kong-ui-entities-gateway-service-form .form-error-list[data-v-84fd56e4]{list-style-type:disc;margin:0;padding-left:16px}.kong-ui-entities-gateway-service-form .gateway-service-form-margin-top[data-v-84fd56e4]{margin-top:16px}.kong-ui-entities-gateway-service-form .gateway-service-form-advanced-fields[data-v-84fd56e4]{display:flex;flex-direction:column;gap:16px;margin-left:12px}.kong-ui-entities-gateway-service-form .gateway-service-form-tags[data-v-84fd56e4]{margin-left:12px}.kong-ui-entities-gateway-service-form .gateway-service-form-traffic-label[data-v-84fd56e4]{margin-bottom:16px}.kong-ui-entities-gateway-service-form .gateway-service-url-input[data-v-84fd56e4],.kong-ui-entities-gateway-service-form .gateway-service-url-input[data-v-84fd56e4] .input-element-wrapper{display:flex}.kong-ui-entities-gateway-service-form .gateway-service-form-general-info[data-v-84fd56e4]{display:flex;flex-direction:column;gap:24px}.kong-ui-entities-gateway-service-form .gateway-service-form-group-selection-wrapper[data-v-84fd56e4]{display:flex;flex-direction:row;gap:16px}.kong-ui-entities-gateway-service-form .gateway-service-form-group-selection-wrapper[data-v-84fd56e4] .radio-label-wrapper{height:auto}.kong-ui-entities-gateway-service-form .checkbox-aligned-radio[data-v-84fd56e4]{margin:4px;padding-left:24px}.slide-fade-enter-active[data-v-84fd56e4]{transition:all .5s ease}.slide-fade-enter-from[data-v-84fd56e4]{opacity:0;transform:translateY(-5px)}.slide-fade-leave-to[data-v-84fd56e4]{opacity:0;transform:translateY(5px)}
@@ -1 +1 @@
1
- {"version":3,"file":"gateway-service-form.d.ts","sourceRoot":"","sources":["../../../src/types/gateway-service-form.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,YAAY,CAAA;AAClD,OAAO,KAAK,EAAE,qBAAqB,EAAE,yBAAyB,EAAE,MAAM,iCAAiC,CAAA;AAEvG,yCAAyC;AACzC,MAAM,WAAW,+BAAgC,SAAQ,qBAAqB;IAC5E,mEAAmE;IACnE,WAAW,EAAE,gBAAgB,CAAA;CAC9B;AAED,8CAA8C;AAC9C,MAAM,WAAW,mCAAoC,SAAQ,yBAAyB;IACpF,mEAAmE;IACnE,WAAW,EAAE,gBAAgB,CAAA;CAC9B;AAED,MAAM,WAAW,wBAAwB;IACvC,IAAI,EAAE,MAAM,CAAA;IACZ,QAAQ,EAAE,MAAM,CAAA;IAChB,IAAI,EAAE,MAAM,CAAA;IACZ,IAAI,EAAE,MAAM,CAAA;IACZ,IAAI,EAAE,MAAM,CAAA;IACZ,GAAG,EAAE,MAAM,CAAA;IACX,OAAO,EAAE,MAAM,CAAA;IACf,eAAe,EAAE,MAAM,CAAA;IACvB,aAAa,EAAE,MAAM,CAAA;IACrB,YAAY,EAAE,MAAM,CAAA;IACpB,kBAAkB,EAAE,MAAM,CAAA;IAC1B,eAAe,EAAE,MAAM,CAAA;IACvB,kBAAkB,EAAE,OAAO,CAAA;IAC3B,gBAAgB,EAAE,OAAO,CAAA;IACzB,IAAI,EAAE,MAAM,CAAA;IACZ,OAAO,EAAE,OAAO,CAAA;CACjB;AACD,MAAM,WAAW,eAAe;IAC9B,IAAI,EAAE,MAAM,CAAA;IACZ,IAAI,EAAE,MAAM,CAAA;IACZ,IAAI,EAAE,MAAM,CAAA;IACZ,GAAG,EAAE,MAAM,CAAA;IACX,IAAI,EAAE,MAAM,CAAA;IACZ,OAAO,EAAE,MAAM,CAAA;IACf,eAAe,EAAE,MAAM,CAAA;IACvB,aAAa,EAAE,MAAM,CAAA;IACrB,YAAY,EAAE,MAAM,CAAA;IACpB,kBAAkB,EAAE,MAAM,CAAA;IAC1B,eAAe,EAAE,MAAM,CAAA;IACvB,kBAAkB,EAAE,MAAM,CAAA;IAC1B,gBAAgB,EAAE,MAAM,CAAA;IACxB,IAAI,EAAC,MAAM,CAAA;CACZ;AAED,MAAM,WAAW,uBAAuB;IACtC,kBAAkB;IAClB,MAAM,EAAE,wBAAwB,CAAA;IAChC,iEAAiE;IACjE,UAAU,EAAE,OAAO,CAAA;IACnB,2CAA2C;IAC3C,aAAa,EAAE,MAAM,EAAE,CAAA;IACvB,2DAA2D;IAC3D,eAAe,EAAE,eAAe,CAAA;CACjC;AAGD,MAAM,WAAW,UAAU;IACzB,KAAK,EAAE,MAAM,CAAA;IACb,KAAK,EAAE,MAAM,GAAG,MAAM,CAAA;IACtB,QAAQ,CAAC,EAAE,OAAO,CAAA;CACnB;AAED,MAAM,WAAW,gBAAgB;IAC/B,YAAY,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,MAAM,CAAA;IACtC,YAAY,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,MAAM,CAAA;IACtC,gBAAgB,EAAE,CAAC,QAAQ,EAAE,MAAM,KAAK,MAAM,CAAA;IAC9C,YAAY,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,MAAM,CAAA;CACvC"}
1
+ {"version":3,"file":"gateway-service-form.d.ts","sourceRoot":"","sources":["../../../src/types/gateway-service-form.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,YAAY,CAAA;AAClD,OAAO,KAAK,EAAE,qBAAqB,EAAE,yBAAyB,EAAE,MAAM,iCAAiC,CAAA;AAEvG,yCAAyC;AACzC,MAAM,WAAW,+BAAgC,SAAQ,qBAAqB;IAC5E,mEAAmE;IACnE,WAAW,EAAE,gBAAgB,CAAA;CAC9B;AAED,8CAA8C;AAC9C,MAAM,WAAW,mCAAoC,SAAQ,yBAAyB;IACpF,mEAAmE;IACnE,WAAW,EAAE,gBAAgB,CAAA;CAC9B;AAED,MAAM,WAAW,wBAAwB;IACvC,IAAI,EAAE,MAAM,CAAA;IACZ,QAAQ,EAAE,MAAM,CAAA;IAChB,IAAI,EAAE,MAAM,CAAA;IACZ,IAAI,EAAE,MAAM,CAAA;IACZ,IAAI,EAAE,MAAM,CAAA;IACZ,GAAG,EAAE,MAAM,CAAA;IACX,OAAO,EAAE,MAAM,CAAA;IACf,eAAe,EAAE,MAAM,CAAA;IACvB,aAAa,EAAE,MAAM,CAAA;IACrB,YAAY,EAAE,MAAM,CAAA;IACpB,kBAAkB,EAAE,MAAM,CAAA;IAC1B,eAAe,EAAE,MAAM,CAAA;IACvB,kBAAkB,EAAE,OAAO,CAAA;IAC3B,gBAAgB,EAAE,OAAO,CAAA;IACzB,IAAI,EAAE,MAAM,CAAA;IACZ,OAAO,EAAE,OAAO,CAAA;CACjB;AACD,MAAM,WAAW,eAAe;IAC9B,IAAI,EAAE,MAAM,CAAA;IACZ,IAAI,EAAE,MAAM,CAAA;IACZ,IAAI,EAAE,MAAM,CAAA;IACZ,GAAG,EAAE,MAAM,CAAA;IACX,IAAI,EAAE,MAAM,CAAA;IACZ,OAAO,EAAE,MAAM,CAAA;IACf,eAAe,EAAE,MAAM,CAAA;IACvB,aAAa,EAAE,MAAM,CAAA;IACrB,YAAY,EAAE,MAAM,CAAA;IACpB,kBAAkB,EAAE,MAAM,CAAA;IAC1B,eAAe,EAAE,MAAM,CAAA;IACvB,kBAAkB,EAAE,MAAM,CAAA;IAC1B,gBAAgB,EAAE,MAAM,CAAA;IACxB,IAAI,EAAE,MAAM,CAAA;CACb;AAED,MAAM,WAAW,uBAAuB;IACtC,kBAAkB;IAClB,MAAM,EAAE,wBAAwB,CAAA;IAChC,iEAAiE;IACjE,UAAU,EAAE,OAAO,CAAA;IACnB,2CAA2C;IAC3C,aAAa,EAAE,MAAM,EAAE,CAAA;IACvB,2DAA2D;IAC3D,eAAe,EAAE,eAAe,CAAA;CACjC;AAGD,MAAM,WAAW,UAAU;IACzB,KAAK,EAAE,MAAM,CAAA;IACb,KAAK,EAAE,MAAM,GAAG,MAAM,CAAA;IACtB,QAAQ,CAAC,EAAE,OAAO,CAAA;CACnB;AAED,MAAM,WAAW,gBAAgB;IAC/B,YAAY,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,MAAM,CAAA;IACtC,YAAY,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,MAAM,CAAA;IACtC,gBAAgB,EAAE,CAAC,QAAQ,EAAE,MAAM,KAAK,MAAM,CAAA;IAC9C,YAAY,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,MAAM,CAAA;CACvC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kong-ui-public/entities-gateway-services",
3
- "version": "3.12.4",
3
+ "version": "3.12.5",
4
4
  "type": "module",
5
5
  "main": "./dist/entities-gateway-services.umd.js",
6
6
  "module": "./dist/entities-gateway-services.es.js",
@@ -26,8 +26,8 @@
26
26
  "axios": "^1.11.0",
27
27
  "vue": "^3.5.13",
28
28
  "vue-router": "^4.4.5",
29
- "@kong-ui-public/entities-shared": "^3.27.3",
30
- "@kong-ui-public/i18n": "^2.4.1"
29
+ "@kong-ui-public/entities-shared": "^3.27.4",
30
+ "@kong-ui-public/i18n": "^2.4.2"
31
31
  },
32
32
  "devDependencies": {
33
33
  "@kong/design-tokens": "^1.18.0",
@@ -36,8 +36,8 @@
36
36
  "axios": "^1.11.0",
37
37
  "vue": "^3.5.13",
38
38
  "vue-router": "^4.4.5",
39
- "@kong-ui-public/entities-shared": "^3.27.3",
40
- "@kong-ui-public/i18n": "^2.4.1"
39
+ "@kong-ui-public/entities-shared": "^3.27.4",
40
+ "@kong-ui-public/i18n": "^2.4.2"
41
41
  },
42
42
  "repository": {
43
43
  "type": "git",