@kong-ui-public/entities-gateway-services 3.10.4-pr.1990.f7a2d582d.0 → 3.10.4-pr.2001.5923607fc.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1 +1 @@
1
- (function(C,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):(C=typeof globalThis<"u"?globalThis:C||self,e(C["kong-ui-public-entities-gateway-services"]={},C.Vue,C.VueRouter,C.KongIcons,C["kong-ui-public-i18n"],C["kong-ui-public-entities-shared"]))})(this,function(C,e,me,Q,ye,c){"use strict";const _e={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",description:"Services represent your upstream APIs, allowing for centralized configuration and streamlined management of backend endpoints."},form:{sections:{general:{title:"General Information",description:"General information will help identify and manage this Gateway Service."},keys:{title:"Service Endpoint",description:"Define the endpoint for this service by specifying the full URL or by its separate elements.",checkedGroupLabel:"Choose how and where to send traffic",urlLabel:"Full URL",checkedGroupAltLabel:"Protocol, Host, Port and Path",viewAdvancedFields:"View Advanced Fields"}},fields:{upstream_url:{label:"Upstream URL",placeholder:"Enter a URL",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:"Enter a host",tooltip:"The host of the upstream server. Note that the host value is case sensitive."},path:{label:"Path",placeholder:"Enter a path",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"},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 be(){const n=ye.createI18n("en-us",_e);return{i18n:n,i18nT:ye.i18nTComponent(n)}}function we(){return{getPortFromProtocol:(I,p)=>{const d=[80,443],s=Number(p);if((s||s===0)&&!d.includes(s))return s;switch(I){case"grpcs":case"tls":case"https":case"wss":return 443;case"grpc":case"tcp":case"http":case"ws":default:return 80}}}}const X={useI18n:be,usePortFromProtocol:we},Z="/v2/control-planes/{controlPlaneId}/core-entities",Y="/{workspace}",O={list:{konnect:{all:`${Z}/services`},kongManager:{all:`${Y}/services`}},form:{konnect:{create:`${Z}/services`,validate:`${Z}/v1/schemas/json/service/validate`,edit:`${Z}/services/{id}`},kongManager:{create:`${Y}/services`,validate:`${Y}/schemas/services/validate`,edit:`${Y}/services/{id}`}}},he="#00abd2",Ve="24px",ve={class:"kong-ui-entities-gateway-services-list"},Ce={class:"button-row"},ke={class:"empty-state-icon-gateway"},Ne={key:1},xe=e.defineComponent({__name:"GatewayServiceList",props:{config:{type:Object,required:!0,validator:n=>!(!n||![c.AppType.Konnect,c.AppType.KongManager].includes(n==null?void 0:n.app)||!n.createRoute||!n.getViewRoute||!n.getEditRoute||n.app===c.AppType.KongManager&&!n.isExactMatch&&!n.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},enableV2EmptyStates:{type:Boolean,default:!1}},emits:["error","click:learn-more","copy:success","copy:error","delete:success","toggle:success"],setup(n,{emit:I}){var l;const p=I,d=n,{i18n:{t:s,formatUnixTimeStamp:x}}=X.useI18n(),U=me.useRouter(),{axiosInstance:S}=c.useAxios((l=d.config)==null?void 0:l.axiosRequestConfig),{hasRecords:a,handleStateChange:k}=c.useTableState(()=>B.value),w=e.computed(()=>a.value&&d.config.app===c.AppType.Konnect),ie=e.computed(()=>!d.enableV2EmptyStates&&d.config.app===c.AppType.Konnect),se=e.computed(()=>d.config.app!==c.AppType.KongManager||!!d.config.disableSorting),K={name:{label:s("gateway_services.list.table_headers.name"),searchable:!0,sortable:!0,hidable:!1},...d.config.showControlPlaneColumn?{control_plane:{label:s("gateway_services.list.table_headers.control_plane")}}:{},protocol:{label:s("gateway_services.list.table_headers.protocol"),searchable:!0,sortable:!0},host:{label:s("gateway_services.list.table_headers.host"),searchable:!0,sortable:!0},port:{label:s("gateway_services.list.table_headers.port"),searchable:!0,sortable:!0},path:{label:s("gateway_services.list.table_headers.path"),searchable:!0,sortable:!0},enabled:{label:s("gateway_services.list.table_headers.enabled"),searchable:!0,sortable:!0},tags:{label:s("gateway_services.list.table_headers.tags"),sortable:!1},updated_at:{label:s("gateway_services.list.table_headers.updated_at"),sortable:!0},created_at:{label:s("gateway_services.list.table_headers.created_at"),sortable:!0}},ae={columnVisibility:{created_at:!1}},$=K,g=e.computed(()=>{var i,y;let f=`${d.config.apiBaseUrl}${O.list[d.config.app].all}`;return d.config.app===c.AppType.Konnect?f=f.replace(/{controlPlaneId}/gi,((i=d.config)==null?void 0:i.controlPlaneId)||""):d.config.app===c.AppType.KongManager&&(f=f.replace(/\/{workspace}/gi,(y=d.config)!=null&&y.workspace?`/${d.config.workspace}`:"")),f}),W=e.computed(()=>d.config.apiBaseUrl.startsWith("/")?new URL(`${window.location.origin}${g.value}`):new URL(g.value)),B=e.ref(""),ne=e.computed(()=>{const f=d.config.app===c.AppType.Konnect||d.config.isExactMatch;if(f)return{isExactMatch:f,placeholder:s(`search.placeholder.${d.config.app}`)};const{name:i,enabled:y,protocol:V,host:G,port:T,path:re}=K;return{isExactMatch:f,fields:{name:i,enabled:y,protocol:V,host:G,port:T,path:re},schema:d.config.filterSchema}}),{fetcher:t,fetcherState:b,fetcherCacheKey:j}=c.useFetcher({...d.config,cacheIdentifier:d.cacheIdentifier},g.value),ce=()=>{B.value=""},ee=()=>{j.value++},D=e.ref(null),M=e.computed(()=>({ctaPath:d.config.createRoute,ctaText:_.value?d.isServerless?s("actions.serverless_create"):s("actions.create"):void 0,message:`${s("gateway_services.list.empty_state.description")}${d.config.additionMessageForEmptyState?` ${d.config.additionMessageForEmptyState}`:""}`,title:_.value?d.isServerless?s("gateway_services.list.empty_state.serverless_title"):s("gateway_services.list.empty_state.title"):s("gateway_services.title")})),F=e.ref(!1),v=e.ref(null),L=e.computed(()=>{const f={action:"disable",id:"",name:""};if(v.value){const{enabled:i,id:y,name:V}=v.value;f.action=i?"disable":"enable",f.id=y,f.name=V||y}return f}),de=f=>{F.value=!0,v.value=f},te=()=>{F.value=!1,v.value=null},fe=async()=>{var V,G;if(!await((V=d.canEdit)==null?void 0:V.call(d,v.value))||!v.value)return;const i=`${W.value.href}/${v.value.id}`,y=!v.value.enabled;try{const{data:T}=((G=d.config)==null?void 0:G.app)===c.AppType.Konnect?await S.put(i,{...v.value,enabled:y}):await S.patch(i,{...v.value,enabled:y});p("toggle:success",T),v.value.enabled=y}catch(T){p("error",T)}},pe=f=>{d.config.getControlPlaneRoute&&U.push(d.config.getControlPlaneRoute(f))},H=(f,i)=>{const y=f.id;if(!i(y)){p("copy:error",{entity:f,field:"id",message:s("errors.copy")});return}p("copy:success",{entity:f,field:"id",message:s("copy.success",{val:y})})},oe=(f,i)=>{const y=JSON.stringify(f);if(!i(y)){p("copy:error",{entity:f,message:s("errors.copy")});return}p("copy:success",{entity:f,message:s("copy.success_brief")})},le=async f=>{var y;await((y=d.canRetrieve)==null?void 0:y.call(d,f))&&U.push(d.config.getViewRoute(f.id))},ue=f=>({label:s("actions.view"),to:d.config.getViewRoute(f)}),z=f=>({label:s("actions.edit"),to:d.config.getEditRoute(f)}),A=e.ref(void 0),P=e.ref(!1),R=e.ref(!1),q=e.ref(""),o=c.useDeleteUrlBuilder(d.config,g.value),r=f=>{A.value=f,P.value=!0,q.value=""},m=()=>{P.value=!1,A.value=void 0},N=async()=>{var f,i,y;if((f=A.value)!=null&&f.id){R.value=!0;try{await S.delete(o(A.value.id)),p("delete:success",A.value),m(),j.value++}catch(V){q.value=((y=(i=V.response)==null?void 0:i.data)==null?void 0:y.message)||V.message||s("errors.delete"),p("error",V)}finally{R.value=!1}}},h=()=>{U.push(d.config.createRoute)};e.watch(b,f=>{var i,y,V;if(f.status===c.FetcherStatus.Error){D.value={title:s("errors.general")},(V=(y=(i=f.error)==null?void 0:i.response)==null?void 0:y.data)!=null&&V.message&&(D.value.message=f.error.response.data.message),p("error",f.error);return}D.value=null});const _=e.ref(!1);return e.onBeforeMount(async()=>{_.value=await d.canCreate()}),(f,i)=>{const y=e.resolveComponent("KButton"),V=e.resolveComponent("KBadge"),G=e.resolveComponent("KInputSwitch"),T=e.resolveComponent("KDropdownItem"),re=e.resolveComponent("KClipboardProvider");return e.openBlock(),e.createElementBlock("div",ve,[e.createVNode(e.unref(c.EntityBaseTable),{"cache-identifier":n.cacheIdentifier,"default-table-preferences":ae,"disable-sorting":se.value,"empty-state-options":M.value,"enable-entity-actions":"","error-message":D.value,fetcher:e.unref(t),"fetcher-cache-key":e.unref(j),"pagination-type":"offset","preferences-storage-key":"kong-ui-entities-gateway-services-list",query:B.value,"table-headers":e.unref($),onClearSearchInput:ce,"onClick:row":i[5]||(i[5]=u=>le(u)),onSort:ee,onState:e.unref(k)},e.createSlots({"toolbar-filter":e.withCtx(()=>[e.createVNode(e.unref(c.EntityFilter),{modelValue:B.value,"onUpdate:modelValue":i[0]||(i[0]=u=>B.value=u),config:ne.value},null,8,["modelValue","config"])]),"toolbar-button":e.withCtx(()=>[(e.openBlock(),e.createBlock(e.Teleport,{disabled:!n.useActionOutside,to:"#kong-ui-app-page-header-action-button"},[e.createElementVNode("div",Ce,[w.value?(e.openBlock(),e.createBlock(y,{key:0,appearance:"secondary",class:"open-learning-hub","data-testid":"gateway-services-learn-more-button",icon:"",onClick:i[1]||(i[1]=u=>f.$emit("click:learn-more"))},{default:e.withCtx(()=>[e.createVNode(e.unref(Q.BookIcon),{decorative:""})]),_:1})):e.createCommentVNode("",!0),e.createVNode(e.unref(c.PermissionsWrapper),{"auth-function":()=>n.canCreate()},{default:e.withCtx(()=>[e.createVNode(y,{appearance:"primary","data-testid":"toolbar-add-gateway-service",size:n.useActionOutside?"medium":"large",to:n.config.createRoute},{default:e.withCtx(()=>[e.createVNode(e.unref(Q.AddIcon)),e.createTextVNode(" "+e.toDisplayString(e.unref(s)("gateway_services.list.toolbar_actions.new_gateway_service")),1)]),_:1},8,["size","to"])]),_:1},8,["auth-function"])])],8,["disabled"]))]),name:e.withCtx(({rowValue:u})=>[e.createElementVNode("b",null,e.toDisplayString(u??"-"),1)]),control_plane:e.withCtx(({row:u})=>{var E;return[(E=u.x_meta)!=null&&E.cluster_id?(e.openBlock(),e.createBlock(V,{key:0,tooltip:u.x_meta.cluster_id,"truncation-tooltip":"",onClick:e.withModifiers(J=>pe(u.x_meta.cluster_id),["stop"])},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(u.x_meta.cluster_id),1)]),_:2},1032,["tooltip","onClick"])):(e.openBlock(),e.createElementBlock("b",Ne,"-"))]}),enabled:e.withCtx(({row:u})=>[e.createVNode(e.unref(c.PermissionsWrapper),{"auth-function":()=>n.canEdit(u),"force-show":""},{default:e.withCtx(({isAllowed:E})=>[e.createElementVNode("div",{onClick:i[4]||(i[4]=e.withModifiers(()=>{},["stop"]))},[e.createVNode(G,{modelValue:u.enabled,"onUpdate:modelValue":J=>u.enabled=J,"data-testid":`row-${u.id}-toggle-input`,disabled:!E,onClick:e.withModifiers(J=>de(u),["prevent"])},null,8,["modelValue","onUpdate:modelValue","data-testid","disabled","onClick"])])]),_:2},1032,["auth-function"])]),tags:e.withCtx(({rowValue:u})=>[e.createVNode(e.unref(c.TableTags),{tags:u},null,8,["tags"])]),created_at:e.withCtx(({rowValue:u})=>[e.createTextVNode(e.toDisplayString(e.unref(x)(u)),1)]),updated_at:e.withCtx(({row:u,rowValue:E})=>[e.createTextVNode(e.toDisplayString(e.unref(x)(E??u.created_at)),1)]),actions:e.withCtx(({row:u})=>[e.createVNode(re,null,{default:e.withCtx(({copyToClipboard:E})=>[e.createVNode(T,{"data-testid":"action-entity-copy-id",onClick:J=>H(u,E)},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(s)("actions.copy_id")),1)]),_:2},1032,["onClick"])]),_:2},1024),e.createVNode(re,null,{default:e.withCtx(({copyToClipboard:E})=>[e.createVNode(T,{"data-testid":"action-entity-copy-json",onClick:J=>oe(u,E)},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(s)("actions.copy_json")),1)]),_:2},1032,["onClick"])]),_:2},1024),e.createVNode(e.unref(c.PermissionsWrapper),{"auth-function":()=>n.canRetrieve(u)},{default:e.withCtx(()=>[e.createVNode(T,{"data-testid":"action-entity-view","has-divider":"",item:ue(u.id)},null,8,["item"])]),_:2},1032,["auth-function"]),e.createVNode(e.unref(c.PermissionsWrapper),{"auth-function":()=>n.canEdit(u)},{default:e.withCtx(()=>[e.createVNode(T,{"data-testid":"action-entity-edit",item:z(u.id)},null,8,["item"])]),_:2},1032,["auth-function"]),e.createVNode(e.unref(c.PermissionsWrapper),{"auth-function":()=>n.canDelete(u)},{default:e.withCtx(()=>[e.createVNode(T,{danger:"","data-testid":"action-entity-delete","has-divider":"",onClick:E=>r(u)},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(s)("actions.delete.menu_label")),1)]),_:2},1032,["onClick"])]),_:2},1032,["auth-function"])]),_:2},[!e.unref(a)&&ie.value?{name:"outside-actions",fn:e.withCtx(()=>[(e.openBlock(),e.createBlock(e.Teleport,{disabled:!n.useActionOutside,to:"#kong-ui-app-page-header-action-button"},[e.createVNode(y,{appearance:"secondary",class:"open-learning-hub","data-testid":"gateway-services-more-button",icon:"",onClick:i[2]||(i[2]=u=>f.$emit("click:learn-more"))},{default:e.withCtx(()=>[e.createVNode(e.unref(Q.BookIcon),{decorative:""})]),_:1})],8,["disabled"]))]),key:"0"}:void 0,n.enableV2EmptyStates&&n.config.app===e.unref(c.AppType).Konnect?{name:"empty-state",fn:e.withCtx(()=>[e.createVNode(e.unref(c.EntityEmptyState),{"action-button-text":e.unref(s)("gateway_services.empty_state_v2.create"),appearance:"secondary","can-create":()=>n.canCreate(),"data-testid":"gateway-services-entity-empty-state",description:e.unref(s)("gateway_services.empty_state_v2.description"),"learn-more":n.config.app===e.unref(c.AppType).Konnect,title:e.unref(s)("gateway_services.empty_state_v2.title"),"onClick:create":h,"onClick:learnMore":i[3]||(i[3]=u=>f.$emit("click:learn-more"))},{image:e.withCtx(()=>[e.createElementVNode("div",ke,[e.createVNode(e.unref(Q.ServicesIcon),{color:e.unref(he),size:e.unref(Ve)},null,8,["color","size"])])]),_:1},8,["action-button-text","can-create","description","learn-more","title"])]),key:"1"}:void 0]),1032,["cache-identifier","disable-sorting","empty-state-options","error-message","fetcher","fetcher-cache-key","query","table-headers","onState"]),e.createVNode(e.unref(c.EntityToggleModal),{action:L.value.action,"entity-id":L.value.id,"entity-name":L.value.name,"entity-type":e.unref(s)("glossary.gateway_services"),"on-confirm":fe,visible:F.value,onCancel:te,onProceed:te},null,8,["action","entity-id","entity-name","entity-type","visible"]),e.createVNode(e.unref(c.EntityDeleteModal),{"action-pending":R.value,description:e.unref(s)("actions.delete.description"),"entity-name":A.value&&(A.value.name||A.value.id),"entity-type":e.unref(c.EntityTypes).GatewayService,error:q.value,title:e.unref(s)("actions.delete.title"),visible:P.value,onCancel:m,onProceed:N},null,8,["action-pending","description","entity-name","entity-type","error","title","visible"])])}}}),ge=(n,I)=>{const p=n.__vccOpts||n;for(const[d,s]of I)p[d]=s;return p},Te=ge(xe,[["__scopeId","data-v-3493f686"]]),Ee={class:"kong-ui-entities-gateway-service-form"},Ae={key:0},Ie={class:"gateway-service-form-traffic-label"},Be={class:"gateway-service-form-margin-bottom"},Pe={key:0,class:"gateway-service-form-group-fields"},Se={key:1,class:"gateway-service-form-group-fields"},Ke={key:0},Ue={class:"gateway-service-form-margin-top"},Me={class:"gateway-service-form-margin-bottom"},Re={class:"gateway-service-form-margin-bottom"},$e={class:"gateway-service-form-margin-bottom"},De={class:"gateway-service-form-margin-bottom"},Fe={key:0,class:"gateway-service-form-margin-bottom"},Le={key:1,class:"gateway-service-form-margin-bottom"},qe={key:2,class:"gateway-service-form-margin-bottom"},Ge={key:0,class:"checkbox-aligned-radio"},Oe={key:1,class:"checkbox-aligned-radio"},We=ge(e.defineComponent({__name:"GatewayServiceForm",props:{config:{type:Object,required:!0,validator:n=>!(!n||![c.AppType.Konnect,c.AppType.KongManager].includes(n==null?void 0:n.app)||n.app===c.AppType.Konnect&&!n.controlPlaneId||n.app===c.AppType.KongManager&&typeof n.workspace!="string"||!n.cancelRoute)},gatewayServiceId:{type:String,required:!1,default:""},hideSectionsInfo:{type:Boolean,required:!1,default:!1}},emits:["update","error","url-valid:success","url-valid:error","loading","model-updated"],setup(n,{expose:I,emit:p}){var q;const d=p,s=n,x=e.ref(!0),U=me.useRouter(),{i18nT:S,i18n:{t:a}}=X.useI18n(),{getMessageFromError:k}=c.useErrors(),{axiosInstance:w}=c.useAxios((q=s.config)==null?void 0:q.axiosRequestConfig),ie=c.useValidators(),se=e.computed(()=>O.form[s.config.app].edit),K=e.computed(()=>s.gatewayServiceId?c.EntityBaseFormType.Edit:c.EntityBaseFormType.Create),ae=e.ref(!1),$=e.computed(()=>!!s.gatewayServiceId),g=e.ref($.value?"protocol":"url"),W=X.usePortFromProtocol(),B=e.ref(""),ne=e.computed(()=>!!B.value),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:""},isReadonly:!1,errorMessage:""}),b=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:""}),j=s.config.app===c.AppType.Konnect||c.useGatewayFeatureSupported({gatewayInfo:s.config.gatewayInfo,supportedRange:{enterprise:["3.0"]}}),ce=[{label:a("gateway_services.form.fields.protocol.options.http"),value:"http",group:"http"},{label:a("gateway_services.form.fields.protocol.options.https"),value:"https",group:"http"},{label:a("gateway_services.form.fields.protocol.options.tcp"),value:"tcp",group:"tcp"},{label:a("gateway_services.form.fields.protocol.options.tls"),value:"tls",group:"tcp"},{label:a("gateway_services.form.fields.protocol.options.tls_passthrough"),value:"tls_passthrough",group:"tcp"},{label:a("gateway_services.form.fields.protocol.options.grpc"),value:"grpc",group:"grpc"},{label:a("gateway_services.form.fields.protocol.options.grpcs"),value:"grpcs",group:"grpc"},...j?[{label:a("gateway_services.form.fields.protocol.options.ws"),value:"ws",group:"websocket"},{label:a("gateway_services.form.fields.protocol.options.wss"),value:"wss",group:"websocket"}]:[],{label:a("gateway_services.form.fields.protocol.options.udp"),value:"udp",group:"udp"}],ee={url:"url",protocol:"protocol"},D=(o,r)=>{r.value},M=o=>o?parseFloat(o):0,F=()=>{x.value=!0,t.errorMessage="",t.fields.host=b.host,t.fields.path=b.path,t.fields.port=b.port,t.fields.protocol=b.protocol,t.fields.url=b.url,t.fields.retries=b.retries,t.fields.connect_timeout=b.connect_timeout,t.fields.write_timeout=b.write_timeout,t.fields.read_timeout=b.read_timeout,t.fields.client_certificate=b.client_certificate,t.fields.ca_certificates=b.ca_certificates,t.fields.tls_verify_enabled=b.tls_verify_enabled,t.fields.tls_verify_value=b.tls_verify_value},v=()=>{if(t.fields.url&&g.value==="url")try{const o=new URL(t.fields.url);t.errorMessage="",t.fields.protocol=o.protocol.slice(0,-1),t.fields.host=o.hostname,t.fields.path=o.pathname;const r=Number(o.port);ae.value=!!r,t.fields.port=r||W.getPortFromProtocol(t.fields.protocol),t.errorMessage="",d("url-valid:success")}catch(o){t.errorMessage=a("errors.urlErrorMessage"),d("url-valid:error",k(o))}else d("url-valid:success"),t.errorMessage=""},L=e.computed(()=>!["tcp","tls","tls_passthrough","grpc","grpcs","udp"].includes(t.fields.protocol)),de=e.computed(()=>{if(g.value==="url")return!0;const o=["https","wss","tls"].includes(t.fields.protocol);return g.value==="protocol"&&o}),te=e.computed(()=>{if(g.value==="url")return!0;const o=["https","tls"].includes(t.fields.protocol);return g.value==="protocol"&&o}),fe=e.computed(()=>{if(g.value==="url")return!0;const o=["https","wss","tls"].includes(t.fields.protocol);return g.value==="protocol"&&o}),pe=o=>{B.value=ie.utf8Name(o)},H=e.computed(()=>$.value&&JSON.stringify(t.fields)!==JSON.stringify(b)||g.value==="url"&&!!t.fields.url||g.value==="protocol"&&!!t.fields.host),oe=o=>{var r,m,N;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=((m=o==null?void 0:o.ca_certificates)==null?void 0:m.join(","))||"",t.fields.client_certificate=((N=o==null?void 0:o.client_certificate)==null?void 0:N.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,Object.assign(b,t.fields)},le=()=>{U.push(s.config.cancelRoute)},ue=e.computed(()=>{var r,m;let o=`${s.config.apiBaseUrl}${O.form[s.config.app].validate}`;return s.config.app===c.AppType.Konnect?o=o.replace(/{controlPlaneId}/gi,((r=s.config)==null?void 0:r.controlPlaneId)||""):s.config.app===c.AppType.KongManager&&(o=o.replace(/\/{workspace}/gi,(m=s.config)!=null&&m.workspace?`/${s.config.workspace}`:"")),o=o.replace(/{id}/gi,s.gatewayServiceId),o}),z=e.computed(()=>{var r,m;let o=`${s.config.apiBaseUrl}${O.form[s.config.app][K.value]}`;return s.config.app===c.AppType.Konnect?o=o.replace(/{controlPlaneId}/gi,((r=s.config)==null?void 0:r.controlPlaneId)||""):s.config.app===c.AppType.KongManager&&(o=o.replace(/\/{workspace}/gi,(m=s.config)!=null&&m.workspace?`/${s.config.workspace}`:"")),o=o.replace(/{id}/gi,s.gatewayServiceId),o}),A=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},P=e.computed(()=>{var r,m,N,h;const o={name:t.fields.name||null,tags:t.fields.tags?(N=(m=(r=t.fields.tags)==null?void 0:r.split(","))==null?void 0:m.map(_=>String(_||"").trim()))==null?void 0:N.filter(_=>_!==""):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(_=>_!==""):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};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),L.value||(o.path=null),K.value==="create"?g.value==="url"?(delete o.protocol,delete o.host,delete o.path,s.config.app===c.AppType.Konnect&&delete o.port):delete o.url:K.value==="edit"&&delete o.url,o}),R=async()=>{var o,r,m,N;try{t.isReadonly=!0,v();const h=P.value;A(h);let _;if(await w.post(ue.value,h),K.value==="create"?_=await w.post(z.value,h):K.value==="edit"&&(_=((o=s.config)==null?void 0:o.app)===c.AppType.Konnect?await w.put(z.value,h):await w.patch(z.value,h)),_){const{data:l}=_;t.fields.name=(l==null?void 0:l.name)||"",t.fields.port=l.port||W.getPortFromProtocol(l.protocol),t.fields.protocol=(l==null?void 0:l.protocol)||"http",t.fields.host=(l==null?void 0:l.host)||"",t.fields.path=(l==null?void 0:l.path)||"",t.fields.url=(l==null?void 0:l.url)||"",t.fields.retries=l!=null&&l.retries||(l==null?void 0:l.retries)===0?l==null?void 0:l.retries:5,t.fields.connect_timeout=l!=null&&l.connect_timeout||(l==null?void 0:l.connect_timeout)===0?l==null?void 0:l.connect_timeout:6e4,t.fields.write_timeout=l!=null&&l.write_timeout||(l==null?void 0:l.write_timeout)===0?l==null?void 0:l.write_timeout:6e4,t.fields.read_timeout=l!=null&&l.read_timeout||(l==null?void 0:l.read_timeout)===0?l==null?void 0:l.read_timeout:6e4,t.fields.client_certificate=((r=l==null?void 0:l.client_certificate)==null?void 0:r.id)||"",t.fields.ca_certificates=(m=l==null?void 0:l.ca_certificates)!=null&&m.length?l==null?void 0:l.ca_certificates.join(","):"",t.fields.tls_verify_enabled=(l==null?void 0:l.tls_verify)!==""&&(l==null?void 0:l.tls_verify)!==null&&(l==null?void 0:l.tls_verify)!==void 0,t.fields.tls_verify_value=t.fields.tls_verify_enabled&&(l==null?void 0:l.tls_verify),t.fields.tags=(N=l==null?void 0:l.tags)!=null&&N.length?l.tags.join(", "):"",Object.assign(b,t.fields),d("update",_==null?void 0:_.data)}return _}catch(h){t.errorMessage=k(h),d("error",h)}finally{t.isReadonly=!1}};return e.watch(()=>s.gatewayServiceId,()=>{Object.assign(t.fields,b)}),e.watch(t.fields,o=>{t.fields.port=W.getPortFromProtocol(o.protocol,String(o.port)),d("model-updated",P.value)}),e.onMounted(()=>{d("model-updated",P.value)}),I({validateUrl:v,getPayload:P,saveFormData:R,canSubmit:H,initForm:oe}),(o,r)=>{const m=e.resolveComponent("KInput"),N=e.resolveComponent("KLabel"),h=e.resolveComponent("KRadio"),_=e.resolveComponent("KSelect"),l=e.resolveComponent("KCheckbox"),f=e.resolveComponent("KCollapse");return e.openBlock(),e.createElementBlock("div",Ee,[e.createVNode(e.unref(c.EntityBaseForm),{"can-submit":H.value,config:n.config,"edit-id":n.gatewayServiceId,"entity-type":e.unref(c.SupportedEntityType).GatewayService,"error-message":t.errorMessage,"fetch-url":se.value,"form-fields":P.value,"is-readonly":t.isReadonly,onCancel:le,"onFetch:error":r[25]||(r[25]=i=>o.$emit("error",i)),"onFetch:success":oe,onLoading:r[26]||(r[26]=i=>o.$emit("loading",i)),onSubmit:R},{"form-actions":e.withCtx(()=>[e.renderSlot(o.$slots,"form-actions",{canSubmit:H.value,cancel:le,submit:R},void 0,!0)]),default:e.withCtx(()=>[e.createVNode(e.unref(c.EntityFormSection),{description:e.unref(a)("gateway_services.form.sections.general.description"),"hide-info-header":n.hideSectionsInfo,title:e.unref(a)("gateway_services.form.sections.general.title")},{default:e.withCtx(()=>[e.createVNode(m,{modelValue:t.fields.name,"onUpdate:modelValue":r[0]||(r[0]=i=>t.fields.name=i),modelModifiers:{trim:!0},autocomplete:"off","data-testid":"gateway-service-name-input",error:ne.value,"error-message":B.value,label:e.unref(a)("gateway_services.form.fields.name.label"),"label-attributes":{info:e.unref(a)("gateway_services.form.fields.name.tooltip"),tooltipAttributes:{maxWidth:"400"}},name:"name",placeholder:e.unref(a)("gateway_services.form.fields.name.placeholder"),readonly:t.isReadonly,type:"text",onInput:pe},null,8,["modelValue","error","error-message","label","label-attributes","placeholder","readonly"]),e.createVNode(m,{modelValue:t.fields.tags,"onUpdate:modelValue":r[1]||(r[1]=i=>t.fields.tags=i),modelModifiers:{trim:!0},autocomplete:"off","data-testid":"gateway-service-tags-input",help:e.unref(a)("gateway_services.form.fields.tags.help"),label:e.unref(a)("gateway_services.form.fields.tags.label"),"label-attributes":{info:e.unref(a)("gateway_services.form.fields.tags.tooltip"),tooltipAttributes:{maxWidth:"400"}},name:"tags",placeholder:e.unref(a)("gateway_services.form.fields.tags.placeholder"),readonly:t.isReadonly,type:"text"},null,8,["modelValue","help","label","label-attributes","placeholder","readonly"])]),_:1},8,["description","hide-info-header","title"]),e.createVNode(e.unref(c.EntityFormSection),{description:e.unref(a)("gateway_services.form.sections.keys.description"),"hide-info-header":n.hideSectionsInfo,title:e.unref(a)("gateway_services.form.sections.keys.title")},{default:e.withCtx(()=>[$.value?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",Ae,[e.createElementVNode("div",Ie,[e.createVNode(N,{required:""},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(a)("gateway_services.form.sections.keys.checkedGroupLabel")),1)]),_:1})]),e.createElementVNode("div",Be,[e.createVNode(h,{modelValue:g.value,"onUpdate:modelValue":r[2]||(r[2]=i=>g.value=i),"data-testid":"gateway-service-url-radio","selected-value":ee.url,onChange:F},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(a)("gateway_services.form.sections.keys.urlLabel")),1)]),_:1},8,["modelValue","selected-value"])]),g.value==="url"?(e.openBlock(),e.createElementBlock("div",Pe,[e.createVNode(m,{modelValue:t.fields.url,"onUpdate:modelValue":r[3]||(r[3]=i=>t.fields.url=i),modelModifiers:{trim:!0},class:"gateway-service-url-input gateway-service-form-margin-bottom","data-testid":"gateway-service-url-input",label:e.unref(a)("gateway_services.form.fields.upstream_url.label"),"label-attributes":{info:n.config.app===e.unref(c.AppType).Konnect?e.unref(a)("gateway_services.form.fields.upstream_url.tooltip_for_konnect"):e.unref(a)("gateway_services.form.fields.upstream_url.tooltip_for_km"),tooltipAttributes:{maxWidth:"400"}},name:"url",placeholder:e.unref(a)("gateway_services.form.fields.upstream_url.placeholder"),required:""},null,8,["modelValue","label","label-attributes","placeholder"])])):e.createCommentVNode("",!0),e.createVNode(h,{modelValue:g.value,"onUpdate:modelValue":r[4]||(r[4]=i=>g.value=i),"checked-group":"protocol","data-testid":"gateway-service-protocol-radio","selected-value":ee.protocol,onChange:F},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(a)("gateway_services.form.sections.keys.checkedGroupAltLabel")),1)]),_:1},8,["modelValue","selected-value"])])),g.value==="protocol"||$.value?(e.openBlock(),e.createElementBlock("div",Se,[e.createVNode(_,{modelValue:t.fields.protocol,"onUpdate:modelValue":r[5]||(r[5]=i=>t.fields.protocol=i),"data-testid":"gateway-service-protocol-select",items:ce,label:e.unref(a)("gateway_services.form.fields.protocol.label"),"label-attributes":{info:e.unref(a)("gateway_services.form.fields.protocol.tooltip"),tooltipAttributes:{maxWidth:"400"}},readonly:t.isReadonly,required:"",width:"100%",onSelected:r[6]||(r[6]=i=>D(t.fields.protocol,i))},null,8,["modelValue","label","label-attributes","readonly"]),e.createVNode(m,{modelValue:t.fields.host,"onUpdate:modelValue":r[7]||(r[7]=i=>t.fields.host=i),modelModifiers:{trim:!0},class:"gateway-service-form-margin-top","data-testid":"gateway-service-host-input",label:e.unref(a)("gateway_services.form.fields.host.label"),"label-attributes":{info:e.unref(a)("gateway_services.form.fields.host.tooltip"),tooltipAttributes:{maxWidth:"400"}},name:"host",placeholder:e.unref(a)("gateway_services.form.fields.host.placeholder"),required:""},null,8,["modelValue","label","label-attributes","placeholder"]),L.value?(e.openBlock(),e.createElementBlock("div",Ke,[e.createVNode(m,{modelValue:t.fields.path,"onUpdate:modelValue":r[8]||(r[8]=i=>t.fields.path=i),modelModifiers:{trim:!0},class:"gateway-service-form-margin-top","data-testid":"gateway-service-path-input",label:e.unref(a)("gateway_services.form.fields.path.label"),"label-attributes":{info:e.unref(a)("gateway_services.form.fields.path.tooltip"),tooltipAttributes:{maxWidth:"400"}},name:"path",placeholder:e.unref(a)("gateway_services.form.fields.path.placeholder")},null,8,["modelValue","label","label-attributes","placeholder"])])):e.createCommentVNode("",!0),e.createVNode(m,{modelValue:t.fields.port,"onUpdate:modelValue":[r[9]||(r[9]=i=>t.fields.port=i),r[10]||(r[10]=()=>{t.fields.port=M(t.fields.port+"")})],class:"gateway-service-form-margin-top","data-testid":"gateway-service-port-input",label:e.unref(a)("gateway_services.form.fields.port.label"),"label-attributes":{info:e.unref(a)("gateway_services.form.fields.port.tooltip"),tooltipAttributes:{maxWidth:"400"}},name:"port",type:"number"},null,8,["modelValue","label","label-attributes"])])):e.createCommentVNode("",!0),e.createVNode(f,{modelValue:x.value,"onUpdate:modelValue":r[24]||(r[24]=i=>x.value=i),"data-testid":"advanced-fields-collapse","trigger-alignment":"leading","trigger-label":e.unref(a)("gateway_services.form.sections.keys.viewAdvancedFields")},{default:e.withCtx(()=>[e.createElementVNode("div",Ue,[e.createElementVNode("div",Me,[e.createVNode(m,{modelValue:t.fields.retries,"onUpdate:modelValue":[r[11]||(r[11]=i=>t.fields.retries=i),r[12]||(r[12]=()=>{t.fields.retries=M(t.fields.retries+"")})],autocomplete:"off","data-testid":"gateway-service-retries-input",label:e.unref(a)("gateway_services.form.fields.retries.label"),"label-attributes":{info:e.unref(a)("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",Re,[e.createVNode(m,{modelValue:t.fields.connect_timeout,"onUpdate:modelValue":[r[13]||(r[13]=i=>t.fields.connect_timeout=i),r[14]||(r[14]=()=>{t.fields.connect_timeout=M(t.fields.connect_timeout+"")})],autocomplete:"off","data-testid":"gateway-service-connTimeout-input",label:e.unref(a)("gateway_services.form.fields.connect_timeout.label"),"label-attributes":{info:e.unref(a)("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",$e,[e.createVNode(m,{modelValue:t.fields.write_timeout,"onUpdate:modelValue":[r[15]||(r[15]=i=>t.fields.write_timeout=i),r[16]||(r[16]=()=>{t.fields.write_timeout=M(t.fields.write_timeout+"")})],autocomplete:"off","data-testid":"gateway-service-writeTimeout-input",label:e.unref(a)("gateway_services.form.fields.write_timeout.label"),"label-attributes":{info:e.unref(a)("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",De,[e.createVNode(m,{modelValue:t.fields.read_timeout,"onUpdate:modelValue":[r[17]||(r[17]=i=>t.fields.read_timeout=i),r[18]||(r[18]=()=>{t.fields.read_timeout=M(t.fields.read_timeout+"")})],autocomplete:"off","data-testid":"gateway-service-readTimeout-input",label:e.unref(a)("gateway_services.form.fields.read_timeout.label"),"label-attributes":{info:e.unref(a)("gateway_services.form.fields.read_timeout.tooltip"),tooltipAttributes:{maxWidth:"400"}},name:"readTimeout",readonly:t.isReadonly,type:"number"},null,8,["modelValue","label","label-attributes","readonly"])]),de.value?(e.openBlock(),e.createElementBlock("div",Fe,[e.createVNode(m,{modelValue:t.fields.client_certificate,"onUpdate:modelValue":r[19]||(r[19]=i=>t.fields.client_certificate=i),modelModifiers:{trim:!0},autocomplete:"off","data-testid":"gateway-service-clientCert-input",label:e.unref(a)("gateway_services.form.fields.client_certificate.label"),"label-attributes":{info:e.unref(a)("gateway_services.form.fields.client_certificate.tooltip"),tooltipAttributes:{maxWidth:"400"}},name:"clientCert",placeholder:e.unref(a)("gateway_services.form.fields.client_certificate.placeholder"),readonly:t.isReadonly,type:"text"},null,8,["modelValue","label","label-attributes","placeholder","readonly"])])):e.createCommentVNode("",!0),te.value?(e.openBlock(),e.createElementBlock("div",Le,[e.createVNode(m,{modelValue:t.fields.ca_certificates,"onUpdate:modelValue":r[20]||(r[20]=i=>t.fields.ca_certificates=i),modelModifiers:{trim:!0},autocomplete:"off","data-testid":"gateway-service-ca-certs-input",label:e.unref(a)("gateway_services.form.fields.ca_certificates.label"),"label-attributes":{tooltipAttributes:{maxWidth:"400"}},placeholder:e.unref(a)("gateway_services.form.fields.ca_certificates.placeholder"),readonly:t.isReadonly,type:"text"},{"label-tooltip":e.withCtx(()=>[e.createVNode(e.unref(S),{keypath:"gateway_services.form.fields.ca_certificates.tooltip",scope:"global"},{code1:e.withCtx(()=>[e.createElementVNode("code",null,e.toDisplayString(e.unref(a)("gateway_services.form.fields.ca_certificates.code1")),1)]),code2:e.withCtx(()=>[e.createElementVNode("code",null,e.toDisplayString(e.unref(a)("gateway_services.form.fields.ca_certificates.code2")),1)]),_:1})]),_:1},8,["modelValue","label","placeholder","readonly"])])):e.createCommentVNode("",!0),fe.value?(e.openBlock(),e.createElementBlock("div",qe,[e.createVNode(l,{modelValue:t.fields.tls_verify_enabled,"onUpdate:modelValue":r[21]||(r[21]=i=>t.fields.tls_verify_enabled=i),"data-testid":"gateway-service-tls-verify-checkbox",description:e.unref(a)("gateway_services.form.fields.tls_verify_enabled.help"),label:e.unref(a)("gateway_services.form.fields.tls_verify_enabled.label"),"label-attributes":{tooltipAttributes:{maxWidth:"400"}}},{tooltip:e.withCtx(()=>[e.createVNode(e.unref(S),{keypath:"gateway_services.form.fields.tls_verify_enabled.tooltip",scope:"global"},{code1:e.withCtx(()=>[e.createElementVNode("code",null,e.toDisplayString(e.unref(a)("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",Ge,[e.createVNode(h,{modelValue:t.fields.tls_verify_value,"onUpdate:modelValue":r[22]||(r[22]=i=>t.fields.tls_verify_value=i),"data-testid":"gateway-service-tls-verify-true-option",label:e.unref(a)("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",Oe,[e.createVNode(h,{modelValue:t.fields.tls_verify_value,"onUpdate:modelValue":r[23]||(r[23]=i=>t.fields.tls_verify_value=i),"data-testid":"gateway-service-tls-verify-false-option",label:e.unref(a)("gateway_services.form.fields.tls_verify_option.false.label"),"selected-value":!1},null,8,["modelValue","label"])])):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0)])]),_:1},8,["modelValue","trigger-label"])]),_:1},8,["description","hide-info-header","title"])]),_:3},8,["can-submit","config","edit-id","entity-type","error-message","fetch-url","form-fields","is-readonly"])])}}}),[["__scopeId","data-v-861a3759"]]),je={class:"kong-ui-gateway-service-entity-config-card"},He=e.defineComponent({__name:"GatewayServiceConfigCard",props:{config:{type:Object,required:!0,validator:n=>!(!n||![c.AppType.Konnect,c.AppType.KongManager].includes(n==null?void 0:n.app)||n.app===c.AppType.Konnect&&!n.controlPlaneId||n.app===c.AppType.KongManager&&typeof n.workspace!="string"||!n.entityId)},configCardDoc:{type:String,default:"",required:!1},hideTitle:{type:Boolean,default:!1}},emits:["loading","fetch:error","fetch:success"],setup(n){const I=n,{i18n:{t:p},i18nT:d}=X.useI18n(),s=e.computed(()=>O.form[I.config.app].edit),{getPropValue:x}=c.useHelpers(),U=(a,k)=>x(a,k)===!0?p("gateway_services.form.fields.tls_verify_option.true.display"):p("gateway_services.form.fields.tls_verify_option.false.display"),S=e.ref({id:{},name:{tooltip:p("gateway_services.form.fields.name.tooltip")},enabled:{},updated_at:{},created_at:{},protocol:{section:c.ConfigurationSchemaSection.Basic,tooltip:p("gateway_services.form.fields.protocol.tooltip")},host:{section:c.ConfigurationSchemaSection.Basic,tooltip:p("gateway_services.form.fields.host.tooltip")},path:{section:c.ConfigurationSchemaSection.Basic,tooltip:p("gateway_services.form.fields.path.tooltip")},port:{section:c.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:c.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(a,k)=>(e.openBlock(),e.createElementBlock("div",je,[e.createVNode(e.unref(c.EntityBaseConfigCard),{config:n.config,"config-card-doc":n.configCardDoc,"config-schema":S.value,"entity-type":e.unref(c.SupportedEntityType).GatewayService,"fetch-url":s.value,"hide-title":n.hideTitle,"onFetch:error":k[0]||(k[0]=w=>a.$emit("fetch:error",w)),"onFetch:success":k[1]||(k[1]=w=>a.$emit("fetch:success",w)),onLoading:k[2]||(k[2]=w=>a.$emit("loading",w))},{"enabled-label-tooltip":e.withCtx(()=>[e.createVNode(e.unref(d),{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(d),{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(d),{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(w=>[e.createTextVNode(e.toDisplayString(typeof e.unref(x)("rowValue",w)=="boolean"?U("rowValue",w):e.unref(p)("gateway_services.form.fields.tls_verify_option.unset.display")),1)]),client_certificate:e.withCtx(w=>[e.createTextVNode(e.toDisplayString(e.unref(x)("rowValue",w)?e.unref(x)("rowValue",w).id:"–"),1)]),_:1},8,["config","config-card-doc","config-schema","entity-type","fetch-url","hide-title"])]))}});C.GatewayServiceConfigCard=He,C.GatewayServiceForm=We,C.GatewayServiceList=Te,Object.defineProperty(C,Symbol.toStringTag,{value:"Module"})});
1
+ (function(S,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):(S=typeof globalThis<"u"?globalThis:S||self,e(S["kong-ui-public-entities-gateway-services"]={},S.Vue,S.VueRouter,S.KongIcons,S["kong-ui-public-i18n"],S["kong-ui-public-entities-shared"]))})(this,function(S,e,Ve,Y,ke,p){"use strict";const Ne={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",description:"Services represent your upstream APIs, allowing for centralized configuration and streamlined management of backend endpoints."},form:{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",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://www.myapi.com/",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. www.myapi.com, 127.0.0.1",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 xe(){const a=ke.createI18n("en-us",Ne);return{i18n:a,i18nT:ke.i18nTComponent(a)}}function Se(){return{getPortFromProtocol:(V,f)=>{const n=[80,443],l=Number(f);if((l||l===0)&&!n.includes(l))return l;switch(V){case"grpcs":case"tls":case"https":case"wss":return 443;case"grpc":case"tcp":case"http":case"ws":default:return 80}}}}const ee={useI18n:xe,usePortFromProtocol:Se},te="/v2/control-planes/{controlPlaneId}/core-entities",oe="/{workspace}",z={list:{konnect:{all:`${te}/services`},kongManager:{all:`${oe}/services`}},form:{konnect:{create:`${te}/services`,validate:`${te}/v1/schemas/json/service/validate`,edit:`${te}/services/{id}`},kongManager:{create:`${oe}/services`,validate:`${oe}/schemas/services/validate`,edit:`${oe}/services/{id}`}}},Te="#00abd2",Ie="24px",Be={class:"kong-ui-entities-gateway-services-list"},Fe={class:"button-row"},Pe={class:"empty-state-icon-gateway"},Ae={key:1},Re=e.defineComponent({__name:"GatewayServiceList",props:{config:{type:Object,required:!0,validator:a=>!(!a||!["konnect","kongManager"].includes(a==null?void 0:a.app)||!a.createRoute||!a.getViewRoute||!a.getEditRoute||a.app==="kongManager"&&!a.isExactMatch&&!a.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},enableV2EmptyStates:{type:Boolean,default:!1}},emits:["error","click:learn-more","copy:success","copy:error","delete:success","toggle:success"],setup(a,{emit:V}){var X;const f=V,n=a,{i18n:{t:l,formatUnixTimeStamp:v}}=ee.useI18n(),B=Ve.useRouter(),{axiosInstance:F}=p.useAxios((X=n.config)==null?void 0:X.axiosRequestConfig),{hasRecords:s,handleStateChange:E}=p.useTableState(()=>P.value),_=e.computed(()=>s.value&&n.config.app==="konnect"),$=e.computed(()=>!n.enableV2EmptyStates&&n.config.app==="konnect"),Z=e.computed(()=>n.config.app!=="kongManager"||!!n.config.disableSorting),R={name:{label:l("gateway_services.list.table_headers.name"),searchable:!0,sortable:!0,hidable:!1},...n.config.showControlPlaneColumn?{control_plane:{label:l("gateway_services.list.table_headers.control_plane")}}:{},protocol:{label:l("gateway_services.list.table_headers.protocol"),searchable:!0,sortable:!0},host:{label:l("gateway_services.list.table_headers.host"),searchable:!0,sortable:!0},port:{label:l("gateway_services.list.table_headers.port"),searchable:!0,sortable:!0},path:{label:l("gateway_services.list.table_headers.path"),searchable:!0,sortable:!0},enabled:{label:l("gateway_services.list.table_headers.enabled"),searchable:!0,sortable:!0},tags:{label:l("gateway_services.list.table_headers.tags"),sortable:!1},updated_at:{label:l("gateway_services.list.table_headers.updated_at"),sortable:!0},created_at:{label:l("gateway_services.list.table_headers.created_at"),sortable:!0}},me={columnVisibility:{created_at:!1}},U=R,h=e.computed(()=>{var u,g;let c=`${n.config.apiBaseUrl}${z.list[n.config.app].all}`;return n.config.app==="konnect"?c=c.replace(/{controlPlaneId}/gi,((u=n.config)==null?void 0:u.controlPlaneId)||""):n.config.app==="kongManager"&&(c=c.replace(/\/{workspace}/gi,(g=n.config)!=null&&g.workspace?`/${n.config.workspace}`:"")),c}),H=e.computed(()=>n.config.apiBaseUrl.startsWith("/")?new URL(`${window.location.origin}${h.value}`):new URL(h.value)),P=e.ref(""),re=e.computed(()=>{const c=n.config.app==="konnect"||n.config.isExactMatch;if(c)return{isExactMatch:c,placeholder:l(`search.placeholder.${n.config.app}`)};const{name:u,enabled:g,protocol:k,host:I,port:N,path:W}=R;return{isExactMatch:c,fields:{name:u,enabled:g,protocol:k,host:I,port:N,path:W},schema:n.config.filterSchema}}),{fetcher:ie,fetcherState:o,fetcherCacheKey:w}=p.useFetcher({...n.config,cacheIdentifier:n.cacheIdentifier},h.value),ge=()=>{P.value=""},le=()=>{w.value++},D=e.ref(null),ye=e.computed(()=>({ctaPath:n.config.createRoute,ctaText:q.value?n.isServerless?l("actions.serverless_create"):l("actions.create"):void 0,message:`${l("gateway_services.list.empty_state.description")}${n.config.additionMessageForEmptyState?` ${n.config.additionMessageForEmptyState}`:""}`,title:q.value?n.isServerless?l("gateway_services.list.empty_state.serverless_title"):l("gateway_services.list.empty_state.title"):l("gateway_services.title")})),A=e.ref(!1),x=e.ref(null),K=e.computed(()=>{const c={action:"disable",id:"",name:""};if(x.value){const{enabled:u,id:g,name:k}=x.value;c.action=u?"disable":"enable",c.id=g,c.name=k||g}return c}),_e=c=>{A.value=!0,x.value=c},J=()=>{A.value=!1,x.value=null},he=async()=>{var k,I;if(!await((k=n.canEdit)==null?void 0:k.call(n,x.value))||!x.value)return;const u=`${H.value.href}/${x.value.id}`,g=!x.value.enabled;try{const{data:N}=((I=n.config)==null?void 0:I.app)==="konnect"?await F.put(u,{...x.value,enabled:g}):await F.patch(u,{...x.value,enabled:g});f("toggle:success",N),x.value.enabled=g}catch(N){f("error",N)}},se=c=>{n.config.getControlPlaneRoute&&B.push(n.config.getControlPlaneRoute(c))},ae=(c,u)=>{const g=c.id;if(!u(g)){f("copy:error",{entity:c,field:"id",message:l("errors.copy")});return}f("copy:success",{entity:c,field:"id",message:l("copy.success",{val:g})})},ne=(c,u)=>{const g=JSON.stringify(c);if(!u(g)){f("copy:error",{entity:c,message:l("errors.copy")});return}f("copy:success",{entity:c,message:l("copy.success_brief")})},ce=async c=>{var g;await((g=n.canRetrieve)==null?void 0:g.call(n,c))&&B.push(n.config.getViewRoute(c.id))},de=c=>({label:l("actions.view"),to:n.config.getViewRoute(c)}),O=c=>({label:l("actions.edit"),to:n.config.getEditRoute(c)}),T=e.ref(void 0),M=e.ref(!1),G=e.ref(!1),Q=e.ref(""),fe=p.useDeleteUrlBuilder(n.config,h.value),be=c=>{T.value=c,M.value=!0,Q.value=""},pe=()=>{M.value=!1,T.value=void 0},we=async()=>{var c,u,g;if((c=T.value)!=null&&c.id){G.value=!0;try{await F.delete(fe(T.value.id)),f("delete:success",T.value),pe(),w.value++}catch(k){Q.value=((g=(u=k.response)==null?void 0:u.data)==null?void 0:g.message)||k.message||l("errors.delete"),f("error",k)}finally{G.value=!1}}},ve=()=>{B.push(n.config.createRoute)};e.watch(o,c=>{var u,g,k;if(c.status===p.FetcherStatus.Error){D.value={title:l("errors.general")},(k=(g=(u=c.error)==null?void 0:u.response)==null?void 0:g.data)!=null&&k.message&&(D.value.message=c.error.response.data.message),f("error",c.error);return}D.value=null});const q=e.ref(!1);return e.onBeforeMount(async()=>{q.value=await n.canCreate()}),(c,u)=>{const g=e.resolveComponent("KButton"),k=e.resolveComponent("KBadge"),I=e.resolveComponent("KInputSwitch"),N=e.resolveComponent("KDropdownItem"),W=e.resolveComponent("KClipboardProvider");return e.openBlock(),e.createElementBlock("div",Be,[e.createVNode(e.unref(p.EntityBaseTable),{"cache-identifier":a.cacheIdentifier,"default-table-preferences":me,"disable-sorting":Z.value,"empty-state-options":ye.value,"enable-entity-actions":"","error-message":D.value,fetcher:e.unref(ie),"fetcher-cache-key":e.unref(w),"pagination-type":"offset","preferences-storage-key":"kong-ui-entities-gateway-services-list",query:P.value,"table-headers":e.unref(U),onClearSearchInput:ge,"onClick:row":u[5]||(u[5]=t=>ce(t)),onSort:le,onState:e.unref(E)},e.createSlots({"toolbar-filter":e.withCtx(()=>[e.createVNode(e.unref(p.EntityFilter),{modelValue:P.value,"onUpdate:modelValue":u[0]||(u[0]=t=>P.value=t),config:re.value},null,8,["modelValue","config"])]),"toolbar-button":e.withCtx(()=>[(e.openBlock(),e.createBlock(e.Teleport,{disabled:!a.useActionOutside,to:"#kong-ui-app-page-header-action-button"},[e.createElementVNode("div",Fe,[_.value?(e.openBlock(),e.createBlock(g,{key:0,appearance:"secondary",class:"open-learning-hub","data-testid":"gateway-services-learn-more-button",icon:"",onClick:u[1]||(u[1]=t=>c.$emit("click:learn-more"))},{default:e.withCtx(()=>[e.createVNode(e.unref(Y.BookIcon),{decorative:""})]),_:1})):e.createCommentVNode("",!0),e.createVNode(e.unref(p.PermissionsWrapper),{"auth-function":()=>a.canCreate()},{default:e.withCtx(()=>[e.createVNode(g,{appearance:"primary","data-testid":"toolbar-add-gateway-service",size:a.useActionOutside?"medium":"large",to:a.config.createRoute},{default:e.withCtx(()=>[e.createVNode(e.unref(Y.AddIcon)),e.createTextVNode(" "+e.toDisplayString(e.unref(l)("gateway_services.list.toolbar_actions.new_gateway_service")),1)]),_:1},8,["size","to"])]),_:1},8,["auth-function"])])],8,["disabled"]))]),name:e.withCtx(({rowValue:t})=>[e.createElementVNode("b",null,e.toDisplayString(t??"-"),1)]),control_plane:e.withCtx(({row:t})=>{var r;return[(r=t.x_meta)!=null&&r.cluster_id?(e.openBlock(),e.createBlock(k,{key:0,tooltip:t.x_meta.cluster_id,"truncation-tooltip":"",onClick:e.withModifiers(m=>se(t.x_meta.cluster_id),["stop"])},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(t.x_meta.cluster_id),1)]),_:2},1032,["tooltip","onClick"])):(e.openBlock(),e.createElementBlock("b",Ae,"-"))]}),enabled:e.withCtx(({row:t})=>[e.createVNode(e.unref(p.PermissionsWrapper),{"auth-function":()=>a.canEdit(t),"force-show":""},{default:e.withCtx(({isAllowed:r})=>[e.createElementVNode("div",{onClick:u[4]||(u[4]=e.withModifiers(()=>{},["stop"]))},[e.createVNode(I,{modelValue:t.enabled,"onUpdate:modelValue":m=>t.enabled=m,"data-testid":`row-${t.id}-toggle-input`,disabled:!r,onClick:e.withModifiers(m=>_e(t),["prevent"])},null,8,["modelValue","onUpdate:modelValue","data-testid","disabled","onClick"])])]),_:2},1032,["auth-function"])]),tags:e.withCtx(({rowValue:t})=>[e.createVNode(e.unref(p.TableTags),{tags:t},null,8,["tags"])]),created_at:e.withCtx(({rowValue:t})=>[e.createTextVNode(e.toDisplayString(e.unref(v)(t)),1)]),updated_at:e.withCtx(({row:t,rowValue:r})=>[e.createTextVNode(e.toDisplayString(e.unref(v)(r??t.created_at)),1)]),actions:e.withCtx(({row:t})=>[e.createVNode(W,null,{default:e.withCtx(({copyToClipboard:r})=>[e.createVNode(N,{"data-testid":"action-entity-copy-id",onClick:m=>ae(t,r)},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(l)("actions.copy_id")),1)]),_:2},1032,["onClick"])]),_:2},1024),e.createVNode(W,null,{default:e.withCtx(({copyToClipboard:r})=>[e.createVNode(N,{"data-testid":"action-entity-copy-json",onClick:m=>ne(t,r)},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(l)("actions.copy_json")),1)]),_:2},1032,["onClick"])]),_:2},1024),e.createVNode(e.unref(p.PermissionsWrapper),{"auth-function":()=>a.canRetrieve(t)},{default:e.withCtx(()=>[e.createVNode(N,{"data-testid":"action-entity-view","has-divider":"",item:de(t.id)},null,8,["item"])]),_:2},1032,["auth-function"]),e.createVNode(e.unref(p.PermissionsWrapper),{"auth-function":()=>a.canEdit(t)},{default:e.withCtx(()=>[e.createVNode(N,{"data-testid":"action-entity-edit",item:O(t.id)},null,8,["item"])]),_:2},1032,["auth-function"]),e.createVNode(e.unref(p.PermissionsWrapper),{"auth-function":()=>a.canDelete(t)},{default:e.withCtx(()=>[e.createVNode(N,{danger:"","data-testid":"action-entity-delete","has-divider":"",onClick:r=>be(t)},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(l)("actions.delete.menu_label")),1)]),_:2},1032,["onClick"])]),_:2},1032,["auth-function"])]),_:2},[!e.unref(s)&&$.value?{name:"outside-actions",fn:e.withCtx(()=>[(e.openBlock(),e.createBlock(e.Teleport,{disabled:!a.useActionOutside,to:"#kong-ui-app-page-header-action-button"},[e.createVNode(g,{appearance:"secondary",class:"open-learning-hub","data-testid":"gateway-services-more-button",icon:"",onClick:u[2]||(u[2]=t=>c.$emit("click:learn-more"))},{default:e.withCtx(()=>[e.createVNode(e.unref(Y.BookIcon),{decorative:""})]),_:1})],8,["disabled"]))]),key:"0"}:void 0,a.enableV2EmptyStates&&a.config.app==="konnect"?{name:"empty-state",fn:e.withCtx(()=>[e.createVNode(e.unref(p.EntityEmptyState),{"action-button-text":e.unref(l)("gateway_services.empty_state_v2.create"),appearance:"secondary","can-create":()=>a.canCreate(),"data-testid":"gateway-services-entity-empty-state",description:e.unref(l)("gateway_services.empty_state_v2.description"),"learn-more":a.config.app==="konnect",title:e.unref(l)("gateway_services.empty_state_v2.title"),"onClick:create":ve,"onClick:learnMore":u[3]||(u[3]=t=>c.$emit("click:learn-more"))},{image:e.withCtx(()=>[e.createElementVNode("div",Pe,[e.createVNode(e.unref(Y.ServicesIcon),{color:e.unref(Te),size:e.unref(Ie)},null,8,["color","size"])])]),_:1},8,["action-button-text","can-create","description","learn-more","title"])]),key:"1"}:void 0]),1032,["cache-identifier","disable-sorting","empty-state-options","error-message","fetcher","fetcher-cache-key","query","table-headers","onState"]),e.createVNode(e.unref(p.EntityToggleModal),{action:K.value.action,"entity-id":K.value.id,"entity-name":K.value.name,"entity-type":e.unref(l)("glossary.gateway_services"),"on-confirm":he,visible:A.value,onCancel:J,onProceed:J},null,8,["action","entity-id","entity-name","entity-type","visible"]),e.createVNode(e.unref(p.EntityDeleteModal),{"action-pending":G.value,description:e.unref(l)("actions.delete.description"),"entity-name":T.value&&(T.value.name||T.value.id),"entity-type":e.unref(p.EntityTypes).GatewayService,error:Q.value,title:e.unref(l)("actions.delete.title"),visible:M.value,onCancel:pe,onProceed:we},null,8,["action-pending","description","entity-name","entity-type","error","title","visible"])])}}}),Ce=(a,V)=>{const f=a.__vccOpts||a;for(const[n,l]of V)f[n]=l;return f},$e=Ce(Re,[["__scopeId","data-v-fa0c855e"]]);typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;const Ee=()=>{};function Ue(a,V){function f(...n){return new Promise((l,v)=>{Promise.resolve(a(()=>V.apply(this,n),{fn:V,thisArg:this,args:n})).then(l).catch(v)})}return f}function De(a,V={}){let f,n,l=Ee;const v=s=>{clearTimeout(s),l(),l=Ee};let B;return s=>{const E=e.toValue(a),_=e.toValue(V.maxWait);return f&&v(f),E<=0||_!==void 0&&_<=0?(n&&(v(n),n=null),Promise.resolve(s())):new Promise(($,Z)=>{l=V.rejectOnCancel?Z:$,B=s,_&&!n&&(n=setTimeout(()=>{f&&v(f),n=null,$(B())},_)),f=setTimeout(()=>{n&&v(n),n=null,$(s())},E)})}}function ue(a,V=200,f={}){return Ue(De(V,f),a)}const Me={name:"WeatherApi-quickstart-demo",tags:["quickstart-demo"],protocol:"https",path:"/examples/weather/utopia",read_timeout:6e4,retries:5,host:"global.api.konghq.com",connect_timeout:6e4,ca_certificates:null,client_certificate:null,write_timeout:6e4,port:443},qe={name:"StockApi-quickstart-demo",tags:["quickstart-demo"],protocol:"https",path:"/examples/stock/piper",read_timeout:6e4,retries:5,host:"global.api.konghq.com",connect_timeout:6e4,ca_certificates:null,client_certificate:null,write_timeout:6e4,port:443},We={class:"kong-ui-entities-gateway-service-form"},Le={key:0,class:"gateway-service-form-general-info"},Ke={class:"gateway-service-form-group-selection-wrapper"},Oe={key:0,class:"gateway-service-form-group-fields"},Ge={key:0,class:"gateway-service-form-group-fields"},je={key:0},ze={key:0,class:"gateway-service-form-advanced-fields"},Ze={class:"gateway-service-form-margin-bottom"},He={class:"gateway-service-form-margin-bottom"},Je={class:"gateway-service-form-margin-bottom"},Qe={class:"gateway-service-form-margin-bottom"},Xe={key:0,class:"gateway-service-form-margin-bottom"},Ye={key:1,class:"gateway-service-form-margin-bottom"},et={key:2,class:"gateway-service-form-margin-bottom"},tt={key:0,class:"checkbox-aligned-radio"},ot={key:1,class:"checkbox-aligned-radio"},rt={class:"gateway-service-form-tags"},it={class:"form-error-list"},lt=Ce(e.defineComponent({__name:"GatewayServiceForm",props:{config:{type:Object,required:!0,validator:a=>!(!a||!["konnect","kongManager"].includes(a==null?void 0:a.app)||a.app==="konnect"&&!a.controlPlaneId||a.app==="kongManager"&&typeof a.workspace!="string"||!a.cancelRoute)},gatewayServiceId:{type:String,required:!1,default:""},hideSectionsInfo:{type:Boolean,required:!1,default:!1},hideTrySampleApiButton:{type:Boolean,required:!1,default:!1},sampleApiList:{type:Array,required:!1,default:()=>[]}},emits:["update","error","url-valid:success","url-valid:error","loading","model-updated","try-sample-api"],setup(a,{expose:V,emit:f}){var W;const n=f,l=a,v=e.ref(!0),B=Ve.useRouter(),{i18nT:F,i18n:{t:s}}=ee.useI18n(),{getErrorFieldsFromError:E}=p.useErrors(),{axiosInstance:_}=p.useAxios((W=l.config)==null?void 0:W.axiosRequestConfig),$=p.useValidators(),Z=e.computed(()=>z.form[l.config.app].edit),R=e.computed(()=>l.gatewayServiceId?p.EntityBaseFormType.Edit:p.EntityBaseFormType.Create),me=e.ref(!1),U=e.computed(()=>!!l.gatewayServiceId),h=e.ref(U.value?"protocol":"url"),H=ee.usePortFromProtocol(),P=e.ref(""),re=e.ref(0),ie=e.computed(()=>!!P.value),o=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:""},isReadonly:!1,errorMessages:[],formFieldErrors:{host:"",port:"",path:"",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:""}),ge=l.config.app==="konnect"||p.useGatewayFeatureSupported({gatewayInfo:l.config.gatewayInfo,supportedRange:{enterprise:["3.0"]}}),le=[{label:s("gateway_services.form.fields.protocol.options.http"),value:"http",group:"http"},{label:s("gateway_services.form.fields.protocol.options.https"),value:"https",group:"http"},{label:s("gateway_services.form.fields.protocol.options.tcp"),value:"tcp",group:"tcp"},{label:s("gateway_services.form.fields.protocol.options.tls"),value:"tls",group:"tcp"},{label:s("gateway_services.form.fields.protocol.options.tls_passthrough"),value:"tls_passthrough",group:"tcp"},{label:s("gateway_services.form.fields.protocol.options.grpc"),value:"grpc",group:"grpc"},{label:s("gateway_services.form.fields.protocol.options.grpcs"),value:"grpcs",group:"grpc"},...ge?[{label:s("gateway_services.form.fields.protocol.options.ws"),value:"ws",group:"websocket"},{label:s("gateway_services.form.fields.protocol.options.wss"),value:"wss",group:"websocket"}]:[],{label:s("gateway_services.form.fields.protocol.options.udp"),value:"udp",group:"udp"}],D={url:"url",protocol:"protocol"},ye=(t,r)=>{r.value},A=t=>t?parseFloat(t):0,x=()=>{o.fields.host=w.host,o.fields.path=w.path,o.fields.port=w.port,o.fields.protocol=w.protocol,o.fields.url=w.url,o.fields.retries=w.retries,o.fields.connect_timeout=w.connect_timeout,o.fields.write_timeout=w.write_timeout,o.fields.read_timeout=w.read_timeout,o.fields.client_certificate=w.client_certificate,o.fields.ca_certificates=w.ca_certificates,o.fields.tls_verify_enabled=w.tls_verify_enabled,o.fields.tls_verify_value=w.tls_verify_value},K=()=>{v.value=!0,T(),o.errorMessages=[],x()},_e=()=>{re.value+=1;const r=re.value%2===0?{...Me}:{...qe};switch(x(),o.fields.name=r.name,h.value){case"url":o.fields.url=`${r.protocol}://${r.host}${r.path}`;break;case"protocol":o.fields.host=r.host,o.fields.path=r.path,o.fields.protocol=r.protocol,o.fields.port=r.port;break;default:console.warn("Invalid input group selected")}},J=t=>!t||t.trim()===""?"host cannot be empty":/^(([a-zA-Z0-9]|[a-zA-Z0-9][a-zA-Z0-9-]*[a-zA-Z0-9])\.)*([A-Za-z0-9]|[A-Za-z0-9][A-Za-z0-9-]*[A-Za-z0-9])$|^\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}$/.test(t)?"":"invalid host",he=t=>!t||t.trim()===""?"protocol cannot be empty":(t=t.slice(0,-1),le.find(m=>{if(m.value===t)return m})===void 0?'protocol - value must be one of "http", "https", "grpc", "grpcs", "tcp", "udp", "tls", "tls_passthrough", "ws", "wss"':""),se=t=>{if(t==null||t==="")return"";const r=typeof t=="string"?parseInt(t,10):t;return isNaN(r)?"Port must be a number":r<0||r>65535?"Port must be between 0 and 65535":""},ae=t=>!t||t===""?"":t.startsWith("/")?/[^A-Za-z0-9\-._~:/?#[\]@!$&'()*+,;=%]/.test(t)?"Path should not include characters outside of the reserved list of RFC 3986":"":"Path must begin with /",ne=ue(()=>{if(T(),o.fields.url.length)try{const t=new URL(o.fields.url),r=he(t.protocol);if(r)throw new Error(r);o.fields.protocol=t.protocol.slice(0,-1);const m=J(t.hostname);if(m)throw new Error(m);o.fields.host=t.hostname;const C=ae(t.pathname);if(C)throw new Error(C);o.fields.path=t.pathname;const y=se(t.port);if(y)throw new Error(y);const b=Number(t.port);me.value=!!b,o.fields.port=b||H.getPortFromProtocol(o.fields.protocol),n("url-valid:success")}catch(t){n("url-valid:error",t.message||"URL validation failed"),o.formFieldErrors.url=t.message||"URL validation failed"}},300),ce=ue(t=>{T(t??void 0)},300),de=e.computed(()=>t=>{const r=o.formFieldErrors;return t==="url"?r.host.length?r.host:r.path.length?r.path:r.url:r[t]?r[t]:""}),O=ue(t=>{T(t??void 0);const r=J(o.fields.host);r&&(o.formFieldErrors.host=r);const m=ae(o.fields.path);m&&(o.formFieldErrors.path=m);const C=se(o.fields.port);C&&(o.formFieldErrors.port=C),M.value?n("url-valid:success"):n("url-valid:error",o.errorMessages.join(",")||"URL validation failed")},300),T=t=>{t?o.formFieldErrors[t]="":o.formFieldErrors={host:"",port:"",url:"",path:"",tags:"",retries:"",connect_timeout:"",write_timeout:"",read_timeout:"",client_certificate:"",ca_certificates:"",tls_verify_enabled:"",tls_verify_value:""},o.errorMessages=[]},M=e.computed(()=>Object.values(o.formFieldErrors).some(t=>t!==null&&t!=="")&&!ie.value),G=()=>{o.fields.url&&h.value==="url"?ne():O()},Q=()=>`new-service-${new Date().toISOString().replace(/\D/g,"").slice(0,17)}`,fe=e.computed(()=>!["tcp","tls","tls_passthrough","grpc","grpcs","udp"].includes(o.fields.protocol)),be=e.computed(()=>{if(h.value==="url")return!0;const t=["https","wss","tls"].includes(o.fields.protocol);return h.value==="protocol"&&t}),pe=e.computed(()=>{if(h.value==="url")return!0;const t=["https","tls"].includes(o.fields.protocol);return h.value==="protocol"&&t}),we=e.computed(()=>{if(h.value==="url")return!0;const t=["https","wss","tls"].includes(o.fields.protocol);return h.value==="protocol"&&t}),ve=t=>{P.value=$.utf8Name(t)},q=e.computed(()=>U.value&&JSON.stringify(o.fields)!==JSON.stringify(w)||h.value==="url"&&!!o.fields.url&&!M.value||h.value==="protocol"&&!!o.fields.host&&!M.value),X=t=>{var r,m,C;o.fields.name=(t==null?void 0:t.name)||"",o.fields.tags=((r=t==null?void 0:t.tags)==null?void 0:r.join(", "))||"",o.fields.protocol=(t==null?void 0:t.protocol)||"http",o.fields.path=(t==null?void 0:t.path)||"",o.fields.read_timeout=t!=null&&t.read_timeout||(t==null?void 0:t.read_timeout)===0?t==null?void 0:t.read_timeout:6e4,o.fields.retries=t!=null&&t.retries||(t==null?void 0:t.retries)===0?t==null?void 0:t.retries:5,o.fields.host=(t==null?void 0:t.host)||"",o.fields.connect_timeout=t!=null&&t.connect_timeout||(t==null?void 0:t.connect_timeout)===0?t==null?void 0:t.connect_timeout:6e4,o.fields.tls_verify_enabled=(t==null?void 0:t.tls_verify)!==""&&(t==null?void 0:t.tls_verify)!==null&&(t==null?void 0:t.tls_verify)!==void 0,o.fields.tls_verify_value=t!=null&&t.tls_verify?t==null?void 0:t.tls_verify:!1,o.fields.ca_certificates=((m=t==null?void 0:t.ca_certificates)==null?void 0:m.join(","))||"",o.fields.client_certificate=((C=t==null?void 0:t.client_certificate)==null?void 0:C.id)||"",o.fields.write_timeout=t!=null&&t.write_timeout||(t==null?void 0:t.write_timeout)===0?t==null?void 0:t.write_timeout:6e4,o.fields.port=t!=null&&t.port||(t==null?void 0:t.port)===0?t==null?void 0:t.port:80,Object.assign(w,o.fields)},c=()=>{B.push(l.config.cancelRoute)},u=e.computed(()=>{var r,m;let t=`${l.config.apiBaseUrl}${z.form[l.config.app].validate}`;return l.config.app==="konnect"?t=t.replace(/{controlPlaneId}/gi,((r=l.config)==null?void 0:r.controlPlaneId)||""):l.config.app==="kongManager"&&(t=t.replace(/\/{workspace}/gi,(m=l.config)!=null&&m.workspace?`/${l.config.workspace}`:"")),t=t.replace(/{id}/gi,l.gatewayServiceId),t}),g=e.computed(()=>{var r,m;let t=`${l.config.apiBaseUrl}${z.form[l.config.app][R.value]}`;return l.config.app==="konnect"?t=t.replace(/{controlPlaneId}/gi,((r=l.config)==null?void 0:r.controlPlaneId)||""):l.config.app==="kongManager"&&(t=t.replace(/\/{workspace}/gi,(m=l.config)!=null&&m.workspace?`/${l.config.workspace}`:"")),t=t.replace(/{id}/gi,l.gatewayServiceId),t}),k=t=>{let r="";t.url&&(r=new URL(t.url).protocol),(["https","wss","tls"].includes(t.protocol)||["https","wss","tls"].includes(r))&&(t.tls_verify=t.tls_verify_enabled?t.tls_verify_value:null),delete t.tls_verify_enabled,delete t.tls_verify_value},I=e.computed(()=>{var r,m,C,y;const t={name:o.fields.name||null,tags:o.fields.tags?(C=(m=(r=o.fields.tags)==null?void 0:r.split(","))==null?void 0:m.map(b=>String(b||"").trim()))==null?void 0:C.filter(b=>b!==""):null,protocol:o.fields.protocol,path:o.fields.path||null,read_timeout:o.fields.read_timeout,retries:o.fields.retries,host:o.fields.host,connect_timeout:o.fields.connect_timeout,tls_verify_value:o.fields.tls_verify_value,tls_verify_enabled:o.fields.tls_verify_enabled,ca_certificates:o.fields.ca_certificates?(y=o.fields.ca_certificates)==null?void 0:y.split(",").filter(b=>b!==""):null,client_certificate:o.fields.client_certificate?{id:o.fields.client_certificate}:null,write_timeout:o.fields.write_timeout,port:o.fields.port,url:o.fields.url};return o.fields.client_certificate&&["https","wss","tls"].includes(o.fields.protocol)&&(t.client_certificate={id:o.fields.client_certificate}),o.fields.tls_verify_enabled&&["https","wss","tls"].includes(o.fields.protocol)&&(t.tls_verify=o.fields.tls_verify_value),fe.value||(t.path=null),R.value==="create"?h.value==="url"?(delete t.protocol,delete t.host,delete t.path,l.config.app==="konnect"&&delete t.port):delete t.url:R.value==="edit"&&delete t.url,t}),N=async()=>{var t,r,m,C;try{o.isReadonly=!0,G();const y=I.value;k(y);let b;if(await _.post(u.value,y),R.value==="create"?b=await _.post(g.value,y):R.value==="edit"&&(b=((t=l.config)==null?void 0:t.app)==="konnect"?await _.put(g.value,y):await _.patch(g.value,y)),b){const{data:i}=b;o.fields.name=(i==null?void 0:i.name)||"",o.fields.port=i.port||H.getPortFromProtocol(i.protocol),o.fields.protocol=(i==null?void 0:i.protocol)||"http",o.fields.host=(i==null?void 0:i.host)||"",o.fields.path=(i==null?void 0:i.path)||"",o.fields.url=(i==null?void 0:i.url)||"",o.fields.retries=i!=null&&i.retries||(i==null?void 0:i.retries)===0?i==null?void 0:i.retries:5,o.fields.connect_timeout=i!=null&&i.connect_timeout||(i==null?void 0:i.connect_timeout)===0?i==null?void 0:i.connect_timeout:6e4,o.fields.write_timeout=i!=null&&i.write_timeout||(i==null?void 0:i.write_timeout)===0?i==null?void 0:i.write_timeout:6e4,o.fields.read_timeout=i!=null&&i.read_timeout||(i==null?void 0:i.read_timeout)===0?i==null?void 0:i.read_timeout:6e4,o.fields.client_certificate=((r=i==null?void 0:i.client_certificate)==null?void 0:r.id)||"",o.fields.ca_certificates=(m=i==null?void 0:i.ca_certificates)!=null&&m.length?i==null?void 0:i.ca_certificates.join(","):"",o.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,o.fields.tls_verify_value=o.fields.tls_verify_enabled&&(i==null?void 0:i.tls_verify),o.fields.tags=(C=i==null?void 0:i.tags)!=null&&C.length?i.tags.join(", "):"",Object.assign(w,o.fields),n("update",b==null?void 0:b.data)}return b}catch(y){const{fields:b,messages:i}=E(y);o.errorMessages=i,b.length&&b.forEach(L=>{const j=L.field;j==="client_certificate.id"?o.formFieldErrors.client_certificate=L.message:j==="ca_certificates[0]"?o.formFieldErrors.ca_certificates=L.message:Object.keys(o.formFieldErrors).includes(j)&&(o.formFieldErrors={...o.formFieldErrors,[j]:L.message})}),n("error",y)}finally{o.isReadonly=!1}};return e.watch(()=>l.gatewayServiceId,()=>{Object.assign(o.fields,w)}),e.watch(o.fields,t=>{o.fields.port=H.getPortFromProtocol(t.protocol,String(t.port)),n("model-updated",I.value)}),e.onMounted(()=>{n("model-updated",I.value),U.value||(o.fields.name=Q())}),V({validateUrl:G,getPayload:I,saveFormData:N,canSubmit:q,initForm:X}),(t,r)=>{const m=e.resolveComponent("KRadio"),C=e.resolveComponent("KButton"),y=e.resolveComponent("KInput"),b=e.resolveComponent("KSelect"),i=e.resolveComponent("KCheckbox"),L=e.resolveComponent("KCollapse"),j=e.resolveComponent("KAlert");return e.openBlock(),e.createElementBlock("div",We,[e.createVNode(e.unref(p.EntityBaseForm),{"can-submit":q.value,config:a.config,"edit-id":a.gatewayServiceId,"entity-type":e.unref(p.SupportedEntityType).GatewayService,"fetch-url":Z.value,"form-fields":I.value,"is-readonly":o.isReadonly,onCancel:c,"onFetch:error":r[30]||(r[30]=d=>t.$emit("error",d)),"onFetch:success":X,onLoading:r[31]||(r[31]=d=>t.$emit("loading",d)),onSubmit:N},{"form-actions":e.withCtx(()=>[e.renderSlot(t.$slots,"form-actions",{canSubmit:q.value,cancel:c,submit:N},void 0,!0)]),default:e.withCtx(()=>[e.createVNode(e.unref(p.EntityFormSection),{description:e.unref(s)("gateway_services.form.sections.keys.description"),"hide-info-header":a.hideSectionsInfo,title:e.unref(s)("gateway_services.form.sections.keys.title")},{default:e.withCtx(()=>[U.value?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",Le,[e.createElementVNode("div",Ke,[e.createVNode(m,{modelValue:h.value,"onUpdate:modelValue":r[0]||(r[0]=d=>h.value=d),card:"","card-orientation":"horizontal","data-testid":"gateway-service-url-radio",description:e.unref(s)("gateway_services.form.sections.keys.url.description"),label:e.unref(s)("gateway_services.form.sections.keys.url.label"),"selected-value":D.url,onChange:K},null,8,["modelValue","description","label","selected-value"]),e.createVNode(m,{modelValue:h.value,"onUpdate:modelValue":r[1]||(r[1]=d=>h.value=d),card:"","card-orientation":"horizontal","checked-group":"protocol","data-testid":"gateway-service-protocol-radio",description:e.unref(s)("gateway_services.form.sections.keys.protocol.description"),label:e.unref(s)("gateway_services.form.sections.keys.protocol.label"),"selected-value":D.protocol,onChange:K},null,8,["modelValue","description","label","selected-value"])]),e.createVNode(e.Transition,{name:"slide-fade"},{default:e.withCtx(()=>[h.value==="url"?(e.openBlock(),e.createElementBlock("div",Oe,[e.createVNode(y,{modelValue:o.fields.url,"onUpdate:modelValue":r[2]||(r[2]=d=>o.fields.url=d),modelModifiers:{trim:!0},class:"gateway-service-url-input gateway-service-form-margin-bottom","data-testid":"gateway-service-url-input",error:de.value("url").length>0,"error-message":o.errorMessages.length==0?de.value("url"):void 0,label:e.unref(s)("gateway_services.form.fields.upstream_url.label"),"label-attributes":{info:a.config.app==="konnect"?e.unref(s)("gateway_services.form.fields.upstream_url.tooltip_for_konnect"):e.unref(s)("gateway_services.form.fields.upstream_url.tooltip_for_km"),tooltipAttributes:{maxWidth:"400"}},name:"url",placeholder:e.unref(s)("gateway_services.form.fields.upstream_url.placeholder"),required:"",onInput:e.unref(ne)},e.createSlots({_:2},[a.hideTrySampleApiButton?void 0:{name:"after",fn:e.withCtx(()=>[e.createVNode(C,{appearance:"tertiary",size:"small",onClick:_e},{default:e.withCtx(()=>r[32]||(r[32]=[e.createTextVNode(" Try Sample API ")])),_:1})]),key:"0"}]),1032,["modelValue","error","error-message","label","label-attributes","placeholder","onInput"])])):e.createCommentVNode("",!0)]),_:1})])),e.createVNode(e.Transition,{name:"slide-fade"},{default:e.withCtx(()=>[h.value==="protocol"||U.value?(e.openBlock(),e.createElementBlock("div",Ge,[e.createVNode(b,{modelValue:o.fields.protocol,"onUpdate:modelValue":r[3]||(r[3]=d=>o.fields.protocol=d),"data-testid":"gateway-service-protocol-select",items:le,label:e.unref(s)("gateway_services.form.fields.protocol.label"),"label-attributes":{info:e.unref(s)("gateway_services.form.fields.protocol.tooltip"),tooltipAttributes:{maxWidth:"400"}},readonly:o.isReadonly,required:"",width:"100%",onSelected:r[4]||(r[4]=d=>ye(o.fields.protocol,d))},null,8,["modelValue","label","label-attributes","readonly"]),e.createVNode(y,{modelValue:o.fields.host,"onUpdate:modelValue":r[5]||(r[5]=d=>o.fields.host=d),modelModifiers:{trim:!0},class:"gateway-service-form-margin-top","data-testid":"gateway-service-host-input",error:o.formFieldErrors.host.length>0,"error-message":o.formFieldErrors.host,label:e.unref(s)("gateway_services.form.fields.host.label"),"label-attributes":{info:e.unref(s)("gateway_services.form.fields.host.tooltip"),tooltipAttributes:{maxWidth:"400"}},name:"host",placeholder:e.unref(s)("gateway_services.form.fields.host.placeholder"),required:"",onInput:r[6]||(r[6]=d=>e.unref(O)("host"))},null,8,["modelValue","error","error-message","label","label-attributes","placeholder"]),fe.value?(e.openBlock(),e.createElementBlock("div",je,[e.createVNode(y,{modelValue:o.fields.path,"onUpdate:modelValue":r[7]||(r[7]=d=>o.fields.path=d),modelModifiers:{trim:!0},class:"gateway-service-form-margin-top","data-testid":"gateway-service-path-input",error:o.formFieldErrors.path.length>0,"error-message":o.formFieldErrors.path,label:e.unref(s)("gateway_services.form.fields.path.label"),"label-attributes":{info:e.unref(s)("gateway_services.form.fields.path.tooltip"),tooltipAttributes:{maxWidth:"400"}},name:"path",placeholder:e.unref(s)("gateway_services.form.fields.path.placeholder"),onInput:r[8]||(r[8]=d=>e.unref(O)("path"))},null,8,["modelValue","error","error-message","label","label-attributes","placeholder"])])):e.createCommentVNode("",!0),e.createVNode(y,{modelValue:o.fields.port,"onUpdate:modelValue":[r[9]||(r[9]=d=>o.fields.port=d),r[11]||(r[11]=()=>{o.fields.port=A(o.fields.port+"")})],class:"gateway-service-form-margin-top","data-testid":"gateway-service-port-input",error:o.formFieldErrors.port.length>0,"error-message":o.formFieldErrors.port,label:e.unref(s)("gateway_services.form.fields.port.label"),"label-attributes":{info:e.unref(s)("gateway_services.form.fields.port.tooltip"),tooltipAttributes:{maxWidth:"400"}},name:"port",type:"number",onInput:r[10]||(r[10]=d=>e.unref(O)("port"))},null,8,["modelValue","error","error-message","label","label-attributes"])])):e.createCommentVNode("",!0)]),_:1}),e.createVNode(L,{modelValue:v.value,"onUpdate:modelValue":r[27]||(r[27]=d=>v.value=d),"data-testid":"advanced-fields-collapse","trigger-alignment":"leading","trigger-label":e.unref(s)("gateway_services.form.sections.keys.viewAdvancedFields")},{default:e.withCtx(()=>[e.createVNode(e.Transition,{name:"slide-fade"},{default:e.withCtx(()=>[v.value?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",ze,[e.createElementVNode("div",Ze,[e.createVNode(y,{modelValue:o.fields.retries,"onUpdate:modelValue":[r[12]||(r[12]=d=>o.fields.retries=d),r[13]||(r[13]=()=>{o.fields.retries=A(o.fields.retries+"")})],autocomplete:"off","data-testid":"gateway-service-retries-input",label:e.unref(s)("gateway_services.form.fields.retries.label"),"label-attributes":{info:e.unref(s)("gateway_services.form.fields.retries.tooltip"),tooltipAttributes:{maxWidth:"400"}},name:"retries",readonly:o.isReadonly,type:"number"},null,8,["modelValue","label","label-attributes","readonly"])]),e.createElementVNode("div",He,[e.createVNode(y,{modelValue:o.fields.connect_timeout,"onUpdate:modelValue":[r[14]||(r[14]=d=>o.fields.connect_timeout=d),r[15]||(r[15]=()=>{o.fields.connect_timeout=A(o.fields.connect_timeout+"")})],autocomplete:"off","data-testid":"gateway-service-connTimeout-input",label:e.unref(s)("gateway_services.form.fields.connect_timeout.label"),"label-attributes":{info:e.unref(s)("gateway_services.form.fields.connect_timeout.tooltip"),tooltipAttributes:{maxWidth:"400"}},name:"connTimeout",readonly:o.isReadonly,type:"number"},null,8,["modelValue","label","label-attributes","readonly"])]),e.createElementVNode("div",Je,[e.createVNode(y,{modelValue:o.fields.write_timeout,"onUpdate:modelValue":[r[16]||(r[16]=d=>o.fields.write_timeout=d),r[17]||(r[17]=()=>{o.fields.write_timeout=A(o.fields.write_timeout+"")})],autocomplete:"off","data-testid":"gateway-service-writeTimeout-input",label:e.unref(s)("gateway_services.form.fields.write_timeout.label"),"label-attributes":{info:e.unref(s)("gateway_services.form.fields.write_timeout.tooltip"),tooltipAttributes:{maxWidth:"400"}},name:"writeTimeout",readonly:o.isReadonly,type:"number"},null,8,["modelValue","label","label-attributes","readonly"])]),e.createElementVNode("div",Qe,[e.createVNode(y,{modelValue:o.fields.read_timeout,"onUpdate:modelValue":[r[18]||(r[18]=d=>o.fields.read_timeout=d),r[19]||(r[19]=()=>{o.fields.read_timeout=A(o.fields.read_timeout+"")})],autocomplete:"off","data-testid":"gateway-service-readTimeout-input",label:e.unref(s)("gateway_services.form.fields.read_timeout.label"),"label-attributes":{info:e.unref(s)("gateway_services.form.fields.read_timeout.tooltip"),tooltipAttributes:{maxWidth:"400"}},name:"readTimeout",readonly:o.isReadonly,type:"number"},null,8,["modelValue","label","label-attributes","readonly"])]),be.value?(e.openBlock(),e.createElementBlock("div",Xe,[e.createVNode(y,{modelValue:o.fields.client_certificate,"onUpdate:modelValue":r[20]||(r[20]=d=>o.fields.client_certificate=d),modelModifiers:{trim:!0},autocomplete:"off","data-testid":"gateway-service-clientCert-input",error:o.formFieldErrors.client_certificate.length>0,label:e.unref(s)("gateway_services.form.fields.client_certificate.label"),"label-attributes":{info:e.unref(s)("gateway_services.form.fields.client_certificate.tooltip"),tooltipAttributes:{maxWidth:"400"}},name:"clientCert",placeholder:e.unref(s)("gateway_services.form.fields.client_certificate.placeholder"),readonly:o.isReadonly,type:"text",onInput:r[21]||(r[21]=d=>e.unref(ce)("client_certificate"))},null,8,["modelValue","error","label","label-attributes","placeholder","readonly"])])):e.createCommentVNode("",!0),pe.value?(e.openBlock(),e.createElementBlock("div",Ye,[e.createVNode(y,{modelValue:o.fields.ca_certificates,"onUpdate:modelValue":r[22]||(r[22]=d=>o.fields.ca_certificates=d),modelModifiers:{trim:!0},autocomplete:"off","data-testid":"gateway-service-ca-certs-input",error:o.formFieldErrors.ca_certificates.length>0,label:e.unref(s)("gateway_services.form.fields.ca_certificates.label"),"label-attributes":{tooltipAttributes:{maxWidth:"400"}},placeholder:e.unref(s)("gateway_services.form.fields.ca_certificates.placeholder"),readonly:o.isReadonly,type:"text",onInput:r[23]||(r[23]=d=>e.unref(ce)("ca_certificates"))},{"label-tooltip":e.withCtx(()=>[e.createVNode(e.unref(F),{keypath:"gateway_services.form.fields.ca_certificates.tooltip",scope:"global"},{code1:e.withCtx(()=>[e.createElementVNode("code",null,e.toDisplayString(e.unref(s)("gateway_services.form.fields.ca_certificates.code1")),1)]),code2:e.withCtx(()=>[e.createElementVNode("code",null,e.toDisplayString(e.unref(s)("gateway_services.form.fields.ca_certificates.code2")),1)]),_:1})]),_:1},8,["modelValue","error","label","placeholder","readonly"])])):e.createCommentVNode("",!0),we.value?(e.openBlock(),e.createElementBlock("div",et,[e.createVNode(i,{modelValue:o.fields.tls_verify_enabled,"onUpdate:modelValue":r[24]||(r[24]=d=>o.fields.tls_verify_enabled=d),"data-testid":"gateway-service-tls-verify-checkbox",description:e.unref(s)("gateway_services.form.fields.tls_verify_enabled.help"),label:e.unref(s)("gateway_services.form.fields.tls_verify_enabled.label"),"label-attributes":{tooltipAttributes:{maxWidth:"400"}}},{tooltip:e.withCtx(()=>[e.createVNode(e.unref(F),{keypath:"gateway_services.form.fields.tls_verify_enabled.tooltip",scope:"global"},{code1:e.withCtx(()=>[e.createElementVNode("code",null,e.toDisplayString(e.unref(s)("gateway_services.form.fields.tls_verify_enabled.code1")),1)]),_:1})]),_:1},8,["modelValue","description","label"]),o.fields.tls_verify_enabled?(e.openBlock(),e.createElementBlock("div",tt,[e.createVNode(m,{modelValue:o.fields.tls_verify_value,"onUpdate:modelValue":r[25]||(r[25]=d=>o.fields.tls_verify_value=d),"data-testid":"gateway-service-tls-verify-true-option",label:e.unref(s)("gateway_services.form.fields.tls_verify_option.true.label"),"selected-value":!0},null,8,["modelValue","label"])])):e.createCommentVNode("",!0),o.fields.tls_verify_enabled?(e.openBlock(),e.createElementBlock("div",ot,[e.createVNode(m,{modelValue:o.fields.tls_verify_value,"onUpdate:modelValue":r[26]||(r[26]=d=>o.fields.tls_verify_value=d),"data-testid":"gateway-service-tls-verify-false-option",label:e.unref(s)("gateway_services.form.fields.tls_verify_option.false.label"),"selected-value":!1},null,8,["modelValue","label"])])):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0)]))]),_:1})]),_:1},8,["modelValue","trigger-label"])]),_:1},8,["description","hide-info-header","title"]),e.createVNode(e.unref(p.EntityFormSection),{description:e.unref(s)("gateway_services.form.sections.general.description"),"hide-info-header":a.hideSectionsInfo,title:e.unref(s)("gateway_services.form.sections.general.title")},{default:e.withCtx(()=>[e.createVNode(y,{modelValue:o.fields.name,"onUpdate:modelValue":r[28]||(r[28]=d=>o.fields.name=d),modelModifiers:{trim:!0},autocomplete:"off","data-testid":"gateway-service-name-input",error:ie.value,"error-message":P.value,label:e.unref(s)("gateway_services.form.fields.name.label"),"label-attributes":{info:e.unref(s)("gateway_services.form.fields.name.tooltip"),tooltipAttributes:{maxWidth:"400"}},name:"name",placeholder:e.unref(s)("gateway_services.form.fields.name.placeholder"),readonly:o.isReadonly,type:"text",onInput:ve},null,8,["modelValue","error","error-message","label","label-attributes","placeholder","readonly"]),e.createVNode(L,{"data-testid":"tags-collapse","trigger-alignment":"leading","trigger-label":e.unref(s)("gateway_services.form.fields.tags.collapse")},{default:e.withCtx(()=>[e.createElementVNode("div",rt,[e.createVNode(y,{modelValue:o.fields.tags,"onUpdate:modelValue":r[29]||(r[29]=d=>o.fields.tags=d),modelModifiers:{trim:!0},autocomplete:"off","data-testid":"gateway-service-tags-input",help:e.unref(s)("gateway_services.form.fields.tags.help"),label:e.unref(s)("gateway_services.form.fields.tags.label"),"label-attributes":{info:e.unref(s)("gateway_services.form.fields.tags.tooltip"),tooltipAttributes:{maxWidth:"400"}},name:"tags",placeholder:e.unref(s)("gateway_services.form.fields.tags.placeholder"),readonly:o.isReadonly,type:"text"},null,8,["modelValue","help","label","label-attributes","placeholder","readonly"])])]),_:1},8,["trigger-label"])]),_:1},8,["description","hide-info-header","title"]),o.errorMessages.length?(e.openBlock(),e.createBlock(j,{key:0,appearance:"danger"},{default:e.withCtx(()=>[e.createElementVNode("ul",it,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(o.errorMessages,d=>(e.openBlock(),e.createElementBlock("li",{key:d},e.toDisplayString(d),1))),128))])]),_:1})):e.createCommentVNode("",!0)]),_:3},8,["can-submit","config","edit-id","entity-type","fetch-url","form-fields","is-readonly"])])}}}),[["__scopeId","data-v-06fb1f63"]]),st={class:"kong-ui-gateway-service-entity-config-card"},at=e.defineComponent({__name:"GatewayServiceConfigCard",props:{config:{type:Object,required:!0,validator:a=>!(!a||!["konnect","kongManager"].includes(a==null?void 0:a.app)||a.app==="konnect"&&!a.controlPlaneId||a.app==="kongManager"&&typeof a.workspace!="string"||!a.entityId)},configCardDoc:{type:String,default:"",required:!1},hideTitle:{type:Boolean,default:!1}},emits:["loading","fetch:error","fetch:success"],setup(a){const V=a,{i18n:{t:f},i18nT:n}=ee.useI18n(),l=e.computed(()=>z.form[V.config.app].edit),{getPropValue:v}=p.useHelpers(),B=(s,E)=>v(s,E)===!0?f("gateway_services.form.fields.tls_verify_option.true.display"):f("gateway_services.form.fields.tls_verify_option.false.display"),F=e.ref({id:{},name:{tooltip:f("gateway_services.form.fields.name.tooltip")},enabled:{},updated_at:{},created_at:{},protocol:{section:p.ConfigurationSchemaSection.Basic,tooltip:f("gateway_services.form.fields.protocol.tooltip")},host:{section:p.ConfigurationSchemaSection.Basic,tooltip:f("gateway_services.form.fields.host.tooltip")},path:{section:p.ConfigurationSchemaSection.Basic,tooltip:f("gateway_services.form.fields.path.tooltip")},port:{section:p.ConfigurationSchemaSection.Basic,tooltip:f("gateway_services.form.fields.port.tooltip")},tags:{tooltip:f("gateway_services.form.fields.tags.tooltip")},retries:{order:1,tooltip:f("gateway_services.form.fields.retries.tooltip")},connect_timeout:{order:2,tooltip:f("gateway_services.form.fields.connect_timeout.tooltip")},write_timeout:{order:3,tooltip:f("gateway_services.form.fields.write_timeout.tooltip")},read_timeout:{order:4,tooltip:f("gateway_services.form.fields.read_timeout.tooltip")},client_certificate:{order:5,tooltip:f("gateway_services.form.fields.client_certificate.tooltip")},ca_certificates:{type:p.ConfigurationSchemaType.BadgeTag,label:f("gateway_services.form.fields.ca_certificates.label"),order:6},tls_verify:{label:f("gateway_services.form.fields.tls_verify_enabled.label")},tls_verify_depth:{hidden:!0}});return(s,E)=>(e.openBlock(),e.createElementBlock("div",st,[e.createVNode(e.unref(p.EntityBaseConfigCard),{config:a.config,"config-card-doc":a.configCardDoc,"config-schema":F.value,"entity-type":e.unref(p.SupportedEntityType).GatewayService,"fetch-url":l.value,"hide-title":a.hideTitle,"onFetch:error":E[0]||(E[0]=_=>s.$emit("fetch:error",_)),"onFetch:success":E[1]||(E[1]=_=>s.$emit("fetch:success",_)),onLoading:E[2]||(E[2]=_=>s.$emit("loading",_))},{"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(f)("gateway_services.form.fields.enabled.false")),1)]),true:e.withCtx(()=>[e.createElementVNode("code",null,e.toDisplayString(e.unref(f)("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(f)("gateway_services.form.fields.ca_certificates.code1")),1)]),code2:e.withCtx(()=>[e.createElementVNode("code",null,e.toDisplayString(e.unref(f)("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(f)("gateway_services.form.fields.tls_verify_enabled.code1")),1)]),_:1})]),tls_verify:e.withCtx(_=>[e.createTextVNode(e.toDisplayString(typeof e.unref(v)("rowValue",_)=="boolean"?B("rowValue",_):e.unref(f)("gateway_services.form.fields.tls_verify_option.unset.display")),1)]),client_certificate:e.withCtx(_=>[e.createTextVNode(e.toDisplayString(e.unref(v)("rowValue",_)?e.unref(v)("rowValue",_).id:"–"),1)]),_:1},8,["config","config-card-doc","config-schema","entity-type","fetch-url","hide-title"])]))}});S.GatewayServiceConfigCard=at,S.GatewayServiceForm=lt,S.GatewayServiceList=$e,Object.defineProperty(S,Symbol.toStringTag,{value:"Module"})});
package/dist/style.css CHANGED
@@ -1 +1 @@
1
- .config-card-fieldset[data-v-f7096c33]{border:solid 1px #e0e4ea;border-radius:4px;margin-bottom:8px;margin-top:4px}.config-card-fieldset-title[data-v-f7096c33]{font-size:14px;padding:0 8px;width:auto}fieldset.config-card-fieldset .config-card-details-row{width:unset}.config-card-json-item .config-card-details-row,fieldset.config-card-fieldset .config-card-details-row{margin:0 16px}.config-card-json-item .config-card-details-row:last-of-type,fieldset.config-card-fieldset .config-card-details-row:last-of-type{border-bottom:none}[data-v-c96811e5] .k-button.navigation-button{font-size:14px;font-weight:400}.config-card-details-row[data-v-761f7e64]{align-items:center;border-bottom:var(--3ccdd5d2);box-sizing:border-box;display:var(--4b1da305);padding:16px 16px 16px 0;width:100%}.config-card-details-row .config-card-details-label[data-v-761f7e64]{box-sizing:border-box;padding-right:16px;width:var(--cd20788a)}.config-card-details-row .config-card-details-label label[data-v-761f7e64]{color:#3a3f51;display:inline-flex;max-width:100%}.config-card-details-row .config-card-details-label label .label-content[data-v-761f7e64]{line-height:initial;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.config-card-details-row .config-card-details-label label .k-popover[data-v-761f7e64]{min-width:0}.config-card-details-row .config-card-details-value[data-v-761f7e64]{box-sizing:border-box;width:var(--cd1becd4)}.config-card-details-row .config-card-details-value .truncated[data-v-761f7e64]{display:inline-block;line-height:initial;max-width:20ch;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.config-card-details-row .config-card-details-value span.attrs-data-text[data-v-761f7e64]{overflow-wrap:anywhere}.config-card-details-row .config-card-details-value .copy-uuid-array[data-v-761f7e64] .k-copy:not(:last-of-type){margin-bottom:8px}.config-card-details-row .config-card-details-value .method-badge-array[data-v-761f7e64]{display:flex;flex-wrap:wrap;row-gap:10px}.config-card-details-row .config-badge[data-v-761f7e64]{margin-right:4px}.config-card-details-row[data-v-761f7e64] .k-label{margin-bottom:0}.config-card-details-row[data-v-761f7e64] .k-label .kong-icon-infoFilled{display:flex}.config-card-details-row[data-v-761f7e64] .config-card-details-row{width:auto}.json-content.k-code-block{border-top-left-radius:0;border-top-right-radius:0}.json-endpoint{align-items:baseline;background-color:#000933;border-bottom:1px solid rgba(255,255,255,.2);border-top-left-radius:8px;border-top-right-radius:8px;display:flex;padding:8px 0 8px 12px}.json-endpoint .k-code-block{flex:auto;z-index:2}.json-endpoint .k-code-block .code-block-content{padding-bottom:0;padding-top:0}.json-endpoint .k-code-block .code-block-secondary-actions{margin-top:0!important}.json-endpoint code{direction:rtl;max-width:var(--54aebfa2);overflow:hidden!important;text-align:left;text-overflow:ellipsis;white-space:nowrap}.config-card-prop-section-title[data-v-d67757a9]{color:#000933;font-size:16px;font-weight:600;margin-bottom:16px;margin-top:48px}.kong-ui-entity-base-config-card .config-card-actions[data-v-dbd6a30e]{align-items:center;display:flex}.kong-ui-entity-base-config-card .config-card-actions .config-format-select-label[data-v-dbd6a30e]{margin-bottom:0;margin-right:8px}.kong-ui-entity-base-config-card .config-card-prop-section-title[data-v-dbd6a30e]{color:#000933;font-size:16px;font-weight:600;margin-bottom:16px;margin-top:48px}.kong-ui-entity-base-config-card[data-v-dbd6a30e] .config-card-details-row:last-of-type{border-bottom:none}.kong-ui-entity-base-config-card .book-icon[data-v-dbd6a30e]{margin-left:8px;padding:0}.kong-ui-entity-base-form[data-v-6a7b6a30]{box-sizing:border-box;max-width:1536px;width:100%}.kong-ui-entity-base-form[data-v-6a7b6a30] .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-6a7b6a30] .k-card.content-card{padding:0 16px!important}.kong-ui-entity-base-form[data-v-6a7b6a30] .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-6a7b6a30] .tab-item.active>div.tab-link.has-panels{color:#000933!important;font-weight:600!important}.form-actions[data-v-6a7b6a30]{align-items:center;display:flex;justify-content:flex-end;margin-top:24px}.form-actions[data-v-6a7b6a30] .k-button:last-of-type,.form-actions[data-v-6a7b6a30] .k-button:nth-last-of-type(2){margin-left:16px}.content-wrapper[data-v-b252463e] .k-tooltip{word-break:break-all}.kong-ui-entity-base-table .toolbar-container[data-v-d58db70c]{align-items:center;display:flex;width:100%}.kong-ui-entity-base-table .toolbar-button-container[data-v-d58db70c]{margin-left:auto}.kong-ui-entity-base-table .hidden[data-v-d58db70c]{display:none}.kong-ui-entity-base-table[data-v-d58db70c] .empty-state-icon-gateway{background-color:#ecfcff;border-radius:4px;padding:8px}.kong-ui-entity-base-table :deep(.k-table){table-layout:fixed}.kong-ui-entity-delete-modal .message[data-v-4361d622],.kong-ui-entity-delete-modal .description[data-v-4361d622]{line-height:24px;margin:0}.kong-ui-entity-delete-modal .message strong[data-v-4361d622]{font-weight:600}.kong-ui-entity-delete-modal .description[data-v-4361d622]{margin-top:32px}.kong-ui-entity-delete-error[data-v-4361d622]{margin-bottom:16px}.kong-ui-entity-filter-input[data-v-10fa27a5]{width:100%}.kong-ui-entity-filter-clear[data-v-10fa27a5]{cursor:pointer}.kong-ui-entity-filter[data-v-10fa27a5]{display:flex;position:relative}.kong-ui-entity-filter[data-v-10fa27a5] .menu-content{flex-direction:column}.kong-ui-entity-filter[data-v-10fa27a5] .k-menu-item-divider hr{margin:12px 0}.kong-ui-entity-filter-backdrop[data-v-10fa27a5]{bottom:0;left:0;position:fixed;right:0;top:0;z-index:1050}.kong-ui-entity-filter-menu[data-v-10fa27a5]{background-color:#fff;border:1px solid #afb7c5;border-radius:4px;box-shadow:0 4px 20px #e0e4ea;left:0;margin-top:16px;padding:8px 0 12px;position:absolute;top:100%;width:300px;z-index:1060}.kong-ui-entity-filter-menu-item[data-v-10fa27a5]{border-bottom:1px solid #e0e4ea;color:#6c7489;font-size:12px;font-weight:400;line-height:16px;list-style:none;margin:0 20px;padding:16px 0;position:relative;white-space:nowrap}.menu-item-title[data-v-10fa27a5]{align-items:center;cursor:pointer;display:flex;line-height:24px}.menu-item-title.expanded[data-v-10fa27a5]{color:#232633}.menu-item-expand-icon[data-v-10fa27a5]{margin-left:auto}.menu-item-expand-icon.expanded[data-v-10fa27a5]{transform:rotate(180deg)}.menu-item-indicator[data-v-10fa27a5]{background-color:#0044f4;border-radius:50%;height:4px;margin-left:4px;width:4px}.menu-item-body[data-v-10fa27a5]{align-items:center;display:flex;justify-content:space-between;margin-top:16px}.menu-item-body[data-v-10fa27a5] .input{padding-bottom:4px!important;padding-top:4px!important}.menu-item-body[data-v-10fa27a5] .k-input{width:100%}.menu-item-body[data-v-10fa27a5] .k-select-input .input{font-size:12px}.menu-item-body[data-v-10fa27a5] .k-select-input .input::placeholder{color:#00000073!important;font-size:12px}.menu-item-label[data-v-10fa27a5]{margin-bottom:0;margin-right:12px}.menu-item-buttons[data-v-10fa27a5]{display:flex;justify-content:space-between;margin:10px 0 6px}.filter-clear-button-container[data-v-10fa27a5]{padding:12px 20px 0}fieldset[data-v-b1f74200]{margin:0;min-width:0;padding:0}.kong-ui-entity-form-section[data-v-b1f74200]{border:0}.kong-ui-entity-form-section .form-section-wrapper[data-v-b1f74200]{column-gap:16px;display:flex;flex-direction:column;padding-bottom:64px;row-gap:12px;width:100%}@media (min-width: 1024px){.kong-ui-entity-form-section .form-section-wrapper[data-v-b1f74200]{flex-direction:row}}.kong-ui-entity-form-section .form-section-wrapper .form-section-info[data-v-b1f74200]{flex:1}@media (min-width: 1024px){.kong-ui-entity-form-section .form-section-wrapper .form-section-info[data-v-b1f74200]{max-width:350px}.kong-ui-entity-form-section .form-section-wrapper .form-section-info.sticky[data-v-b1f74200]{height:fit-content;margin-bottom:16px;position:sticky;top:16px}}.kong-ui-entity-form-section .form-section-wrapper .form-section-info .form-section-title[data-v-b1f74200]{color:#000933;font-size:16px;font-weight:700;line-height:20px;margin-bottom:8px;margin-top:0}.kong-ui-entity-form-section .form-section-wrapper .form-section-info .form-section-description[data-v-b1f74200],.kong-ui-entity-form-section .form-section-wrapper .form-section-info .form-section-description p[data-v-b1f74200],.kong-ui-entity-form-section .form-section-wrapper .form-section-info .form-section-description[data-v-b1f74200] p{color:#000933;font-size:14px;font-weight:400;line-height:20px;margin:0}.kong-ui-entity-form-section .form-section-wrapper .form-section-info .form-section-footer[data-v-b1f74200]{margin-top:32px}.kong-ui-entity-form-section .form-section-wrapper .form-section-content[data-v-b1f74200]{flex:1}.kong-ui-entity-form-section .form-section-wrapper .form-section-content[data-v-b1f74200]>*:not(:first-child){margin-top:24px}.kong-ui-entity-form-section.has-divider .form-section-wrapper[data-v-b1f74200]{border-bottom:1px solid #e0e4ea}.kong-ui-public-entity-link[data-v-2e2c07e5]{align-items:center;display:flex}.kong-ui-public-entity-link .deleted-entity[data-v-2e2c07e5]{font-style:italic}.kong-ui-public-entity-link .entity-link[data-v-2e2c07e5]{display:flex}.kong-ui-public-entity-link .entity-link[data-v-2e2c07e5] .external-link-icon{color:#0044f4;margin-left:4px;padding:2px}.kong-ui-public-entity-link .entity-link-label[data-v-2e2c07e5]{display:inline-block;font-weight:400;max-width:20ch;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.kong-ui-public-entity-link .copy-uuid-tooltip[data-v-2e2c07e5]{align-items:center;cursor:pointer;display:flex}.kong-ui-public-entity-link .copy-uuid-tooltip .entity-link-copy-id[data-v-2e2c07e5]{margin-left:2px}.kong-ui-public-entity-empty-state[data-v-775534d4]{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-775534d4]{padding:64px 96px}}.kong-ui-public-entity-empty-state .empty-state-image[data-v-775534d4]{margin-bottom:8px}.kong-ui-public-entity-empty-state .entity-empty-state-content[data-v-775534d4]{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-775534d4]{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-775534d4]{font-size:18px}.kong-ui-public-entity-empty-state .entity-empty-state-description[data-v-775534d4],.kong-ui-public-entity-empty-state .entity-empty-state-pricing[data-v-775534d4]{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-775534d4],.kong-ui-public-entity-empty-state .entity-empty-state-pricing p[data-v-775534d4]{margin:0}.kong-ui-public-entity-empty-state .entity-empty-state-pricing[data-v-775534d4]{margin-top:16px}.kong-ui-public-entity-empty-state .entity-empty-state-action[data-v-775534d4]{align-items:center;display:flex;gap:12px}.kong-ui-public-entity-empty-state .entity-empty-state-card-container[data-v-775534d4]{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-775534d4]{width:640px}}.kong-ui-public-entity-empty-state .entity-empty-state-card-container .entity-empty-state-card[data-v-775534d4]{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-775534d4]{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-775534d4] .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-775534d4] .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-775534d4] .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-775534d4]{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-775534d4]{width:640px}}.button-row[data-v-3493f686]{align-items:center;display:flex;gap:12px}.kong-ui-entities-gateway-services-list[data-v-3493f686]{width:100%}.kong-ui-entities-gateway-services-list .kong-ui-entity-filter-input[data-v-3493f686]{margin-right:12px}.kong-ui-entities-gateway-service-form[data-v-861a3759]{width:100%}.kong-ui-entities-gateway-service-form[data-v-861a3759] .k-tooltip{max-width:300px}.kong-ui-entities-gateway-service-form .gateway-service-form-margin-top[data-v-861a3759]{margin-top:16px}.kong-ui-entities-gateway-service-form .gateway-service-form-traffic-label[data-v-861a3759]{margin-bottom:16px}.kong-ui-entities-gateway-service-form .gateway-service-url-input[data-v-861a3759],.kong-ui-entities-gateway-service-form .gateway-service-url-input[data-v-861a3759] .input-element-wrapper{display:flex}.kong-ui-entities-gateway-service-form .gateway-service-form-group-fields[data-v-861a3759]{margin-left:24px}.kong-ui-entities-gateway-service-form .gateway-service-form-margin-bottom[data-v-861a3759]{margin-bottom:16px}.kong-ui-entities-gateway-service-form .checkbox-aligned-radio[data-v-861a3759]{margin:4px;padding-left:24px}
1
+ .config-card-fieldset[data-v-f7096c33]{border:solid 1px #e0e4ea;border-radius:4px;margin-bottom:8px;margin-top:4px}.config-card-fieldset-title[data-v-f7096c33]{font-size:14px;padding:0 8px;width:auto}fieldset.config-card-fieldset .config-card-details-row{width:unset}.config-card-json-item .config-card-details-row,fieldset.config-card-fieldset .config-card-details-row{margin:0 16px}.config-card-json-item .config-card-details-row:last-of-type,fieldset.config-card-fieldset .config-card-details-row:last-of-type{border-bottom:none}[data-v-c96811e5] .k-button.navigation-button{font-size:14px;font-weight:400}.config-card-details-row[data-v-761f7e64]{align-items:center;border-bottom:var(--3ccdd5d2);box-sizing:border-box;display:var(--4b1da305);padding:16px 16px 16px 0;width:100%}.config-card-details-row .config-card-details-label[data-v-761f7e64]{box-sizing:border-box;padding-right:16px;width:var(--cd20788a)}.config-card-details-row .config-card-details-label label[data-v-761f7e64]{color:#3a3f51;display:inline-flex;max-width:100%}.config-card-details-row .config-card-details-label label .label-content[data-v-761f7e64]{line-height:initial;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.config-card-details-row .config-card-details-label label .k-popover[data-v-761f7e64]{min-width:0}.config-card-details-row .config-card-details-value[data-v-761f7e64]{box-sizing:border-box;width:var(--cd1becd4)}.config-card-details-row .config-card-details-value .truncated[data-v-761f7e64]{display:inline-block;line-height:initial;max-width:20ch;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.config-card-details-row .config-card-details-value span.attrs-data-text[data-v-761f7e64]{overflow-wrap:anywhere}.config-card-details-row .config-card-details-value .copy-uuid-array[data-v-761f7e64] .k-copy:not(:last-of-type){margin-bottom:8px}.config-card-details-row .config-card-details-value .method-badge-array[data-v-761f7e64]{display:flex;flex-wrap:wrap;row-gap:10px}.config-card-details-row .config-badge[data-v-761f7e64]{margin-right:4px}.config-card-details-row[data-v-761f7e64] .k-label{margin-bottom:0}.config-card-details-row[data-v-761f7e64] .k-label .kong-icon-infoFilled{display:flex}.config-card-details-row[data-v-761f7e64] .config-card-details-row{width:auto}.json-content.k-code-block{border-top-left-radius:0;border-top-right-radius:0}.json-endpoint{align-items:baseline;background-color:#000933;border-bottom:1px solid rgba(255,255,255,.2);border-top-left-radius:8px;border-top-right-radius:8px;display:flex;padding:8px 0 8px 12px}.json-endpoint .k-code-block{flex:auto;z-index:2}.json-endpoint .k-code-block .code-block-content{padding-bottom:0;padding-top:0}.json-endpoint .k-code-block .code-block-secondary-actions{margin-top:0!important}.json-endpoint code{direction:rtl;max-width:var(--54aebfa2);overflow:hidden!important;text-align:left;text-overflow:ellipsis;white-space:nowrap}.config-card-prop-section-title[data-v-d67757a9]{color:#000933;font-size:16px;font-weight:600;margin-bottom:16px;margin-top:48px}.kong-ui-entity-base-config-card .config-card-actions[data-v-be491a0e]{align-items:center;display:flex}.kong-ui-entity-base-config-card .config-card-actions .config-format-select-label[data-v-be491a0e]{margin-bottom:0;margin-right:8px}.kong-ui-entity-base-config-card .config-card-prop-section-title[data-v-be491a0e]{color:#000933;font-size:16px;font-weight:600;margin-bottom:16px;margin-top:48px}.kong-ui-entity-base-config-card[data-v-be491a0e] .config-card-details-row:last-of-type{border-bottom:none}.kong-ui-entity-base-config-card .book-icon[data-v-be491a0e]{margin-left:8px;padding:0}.kong-ui-entity-base-form[data-v-18af080f]{box-sizing:border-box;max-width:1536px;width:100%}.kong-ui-entity-base-form[data-v-18af080f] .k-slideout-title{color:#000933!important;font-size:24px!important;font-weight:700!important;line-height:32px!important;margin-bottom:16px!important}.kong-ui-entity-base-form[data-v-18af080f] .k-card.content-card{padding:0 16px!important}.kong-ui-entity-base-form[data-v-18af080f] .tab-item>div.tab-link.has-panels{color:#6c7489!important;font-size:14px!important;font-weight:700!important;line-height:24px!important}.kong-ui-entity-base-form[data-v-18af080f] .tab-item.active>div.tab-link.has-panels{color:#000933!important;font-weight:600!important}.form-actions[data-v-18af080f]{align-items:center;display:flex;justify-content:flex-end;margin-top:24px}.form-actions[data-v-18af080f] .k-button:last-of-type,.form-actions[data-v-18af080f] .k-button:nth-last-of-type(2){margin-left:16px}.content-wrapper[data-v-b252463e] .k-tooltip{word-break:break-all}.kong-ui-entity-base-table .toolbar-container[data-v-d58db70c]{align-items:center;display:flex;width:100%}.kong-ui-entity-base-table .toolbar-button-container[data-v-d58db70c]{margin-left:auto}.kong-ui-entity-base-table .hidden[data-v-d58db70c]{display:none}.kong-ui-entity-base-table[data-v-d58db70c] .empty-state-icon-gateway{background-color:#ecfcff;border-radius:4px;padding:8px}.kong-ui-entity-base-table :deep(.k-table){table-layout:fixed}.kong-ui-entity-delete-modal .message[data-v-4361d622],.kong-ui-entity-delete-modal .description[data-v-4361d622]{line-height:24px;margin:0}.kong-ui-entity-delete-modal .message strong[data-v-4361d622]{font-weight:600}.kong-ui-entity-delete-modal .description[data-v-4361d622]{margin-top:32px}.kong-ui-entity-delete-error[data-v-4361d622]{margin-bottom:16px}.kong-ui-entity-filter-input[data-v-10fa27a5]{width:100%}.kong-ui-entity-filter-clear[data-v-10fa27a5]{cursor:pointer}.kong-ui-entity-filter[data-v-10fa27a5]{display:flex;position:relative}.kong-ui-entity-filter[data-v-10fa27a5] .menu-content{flex-direction:column}.kong-ui-entity-filter[data-v-10fa27a5] .k-menu-item-divider hr{margin:12px 0}.kong-ui-entity-filter-backdrop[data-v-10fa27a5]{bottom:0;left:0;position:fixed;right:0;top:0;z-index:1050}.kong-ui-entity-filter-menu[data-v-10fa27a5]{background-color:#fff;border:1px solid #afb7c5;border-radius:4px;box-shadow:0 4px 20px #e0e4ea;left:0;margin-top:16px;padding:8px 0 12px;position:absolute;top:100%;width:300px;z-index:1060}.kong-ui-entity-filter-menu-item[data-v-10fa27a5]{border-bottom:1px solid #e0e4ea;color:#6c7489;font-size:12px;font-weight:400;line-height:16px;list-style:none;margin:0 20px;padding:16px 0;position:relative;white-space:nowrap}.menu-item-title[data-v-10fa27a5]{align-items:center;cursor:pointer;display:flex;line-height:24px}.menu-item-title.expanded[data-v-10fa27a5]{color:#232633}.menu-item-expand-icon[data-v-10fa27a5]{margin-left:auto}.menu-item-expand-icon.expanded[data-v-10fa27a5]{transform:rotate(180deg)}.menu-item-indicator[data-v-10fa27a5]{background-color:#0044f4;border-radius:50%;height:4px;margin-left:4px;width:4px}.menu-item-body[data-v-10fa27a5]{align-items:center;display:flex;justify-content:space-between;margin-top:16px}.menu-item-body[data-v-10fa27a5] .input{padding-bottom:4px!important;padding-top:4px!important}.menu-item-body[data-v-10fa27a5] .k-input{width:100%}.menu-item-body[data-v-10fa27a5] .k-select-input .input{font-size:12px}.menu-item-body[data-v-10fa27a5] .k-select-input .input::placeholder{color:#00000073!important;font-size:12px}.menu-item-label[data-v-10fa27a5]{margin-bottom:0;margin-right:12px}.menu-item-buttons[data-v-10fa27a5]{display:flex;justify-content:space-between;margin:10px 0 6px}.filter-clear-button-container[data-v-10fa27a5]{padding:12px 20px 0}fieldset[data-v-b1f74200]{margin:0;min-width:0;padding:0}.kong-ui-entity-form-section[data-v-b1f74200]{border:0}.kong-ui-entity-form-section .form-section-wrapper[data-v-b1f74200]{column-gap:16px;display:flex;flex-direction:column;padding-bottom:64px;row-gap:12px;width:100%}@media (min-width: 1024px){.kong-ui-entity-form-section .form-section-wrapper[data-v-b1f74200]{flex-direction:row}}.kong-ui-entity-form-section .form-section-wrapper .form-section-info[data-v-b1f74200]{flex:1}@media (min-width: 1024px){.kong-ui-entity-form-section .form-section-wrapper .form-section-info[data-v-b1f74200]{max-width:350px}.kong-ui-entity-form-section .form-section-wrapper .form-section-info.sticky[data-v-b1f74200]{height:fit-content;margin-bottom:16px;position:sticky;top:16px}}.kong-ui-entity-form-section .form-section-wrapper .form-section-info .form-section-title[data-v-b1f74200]{color:#000933;font-size:16px;font-weight:700;line-height:20px;margin-bottom:8px;margin-top:0}.kong-ui-entity-form-section .form-section-wrapper .form-section-info .form-section-description[data-v-b1f74200],.kong-ui-entity-form-section .form-section-wrapper .form-section-info .form-section-description p[data-v-b1f74200],.kong-ui-entity-form-section .form-section-wrapper .form-section-info .form-section-description[data-v-b1f74200] p{color:#000933;font-size:14px;font-weight:400;line-height:20px;margin:0}.kong-ui-entity-form-section .form-section-wrapper .form-section-info .form-section-footer[data-v-b1f74200]{margin-top:32px}.kong-ui-entity-form-section .form-section-wrapper .form-section-content[data-v-b1f74200]{flex:1}.kong-ui-entity-form-section .form-section-wrapper .form-section-content[data-v-b1f74200]>*:not(:first-child){margin-top:24px}.kong-ui-entity-form-section.has-divider .form-section-wrapper[data-v-b1f74200]{border-bottom:1px solid #e0e4ea}.kong-ui-public-entity-link[data-v-6f25ab21]{align-items:center;display:flex}.kong-ui-public-entity-link .deleted-entity[data-v-6f25ab21]{font-style:italic}.kong-ui-public-entity-link .entity-link[data-v-6f25ab21]{display:flex;flex:1}.kong-ui-public-entity-link .entity-link[data-v-6f25ab21] .external-link-icon{color:#0044f4;margin-left:4px;padding:2px}.kong-ui-public-entity-link .entity-link-label[data-v-6f25ab21]{display:inline-block;font-weight:400;max-width:90%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.kong-ui-public-entity-link .copy-uuid-tooltip[data-v-6f25ab21]{align-items:center;cursor:pointer;display:flex}.kong-ui-public-entity-link .copy-uuid-tooltip .entity-link-copy-id[data-v-6f25ab21]{margin-left:2px}.kong-ui-public-entity-empty-state[data-v-775534d4]{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-775534d4]{padding:64px 96px}}.kong-ui-public-entity-empty-state .empty-state-image[data-v-775534d4]{margin-bottom:8px}.kong-ui-public-entity-empty-state .entity-empty-state-content[data-v-775534d4]{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-775534d4]{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-775534d4]{font-size:18px}.kong-ui-public-entity-empty-state .entity-empty-state-description[data-v-775534d4],.kong-ui-public-entity-empty-state .entity-empty-state-pricing[data-v-775534d4]{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-775534d4],.kong-ui-public-entity-empty-state .entity-empty-state-pricing p[data-v-775534d4]{margin:0}.kong-ui-public-entity-empty-state .entity-empty-state-pricing[data-v-775534d4]{margin-top:16px}.kong-ui-public-entity-empty-state .entity-empty-state-action[data-v-775534d4]{align-items:center;display:flex;gap:12px}.kong-ui-public-entity-empty-state .entity-empty-state-card-container[data-v-775534d4]{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-775534d4]{width:640px}}.kong-ui-public-entity-empty-state .entity-empty-state-card-container .entity-empty-state-card[data-v-775534d4]{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-775534d4]{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-775534d4] .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-775534d4] .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-775534d4] .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-775534d4]{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-775534d4]{width:640px}}.button-row[data-v-fa0c855e]{align-items:center;display:flex;gap:12px}.kong-ui-entities-gateway-services-list[data-v-fa0c855e]{width:100%}.kong-ui-entities-gateway-services-list .kong-ui-entity-filter-input[data-v-fa0c855e]{margin-right:12px}.kong-ui-entities-gateway-service-form[data-v-06fb1f63]{width:100%}.kong-ui-entities-gateway-service-form[data-v-06fb1f63] .k-tooltip{max-width:300px}.kong-ui-entities-gateway-service-form[data-v-06fb1f63] .k-radio{align-items:normal}.kong-ui-entities-gateway-service-form[data-v-06fb1f63] .form-section-wrapper{padding-bottom:48px}.kong-ui-entities-gateway-service-form .form-error-list[data-v-06fb1f63]{list-style-type:disc;margin:0;padding-left:16px}.kong-ui-entities-gateway-service-form .gateway-service-form-margin-top[data-v-06fb1f63]{margin-top:16px}.kong-ui-entities-gateway-service-form .gateway-service-form-advanced-fields[data-v-06fb1f63]{display:flex;flex-direction:column;gap:16px;margin-left:12px}.kong-ui-entities-gateway-service-form .gateway-service-form-tags[data-v-06fb1f63]{margin-left:12px}.kong-ui-entities-gateway-service-form .gateway-service-form-traffic-label[data-v-06fb1f63]{margin-bottom:16px}.kong-ui-entities-gateway-service-form .gateway-service-url-input[data-v-06fb1f63],.kong-ui-entities-gateway-service-form .gateway-service-url-input[data-v-06fb1f63] .input-element-wrapper{display:flex}.kong-ui-entities-gateway-service-form .gateway-service-form-general-info[data-v-06fb1f63]{display:flex;flex-direction:column;gap:24px}.kong-ui-entities-gateway-service-form .gateway-service-form-group-selection-wrapper[data-v-06fb1f63]{display:flex;flex-direction:row;gap:16px}.kong-ui-entities-gateway-service-form .gateway-service-form-group-selection-wrapper[data-v-06fb1f63] .radio-label-wrapper{height:auto}.kong-ui-entities-gateway-service-form .checkbox-aligned-radio[data-v-06fb1f63]{margin:4px;padding-left:24px}.slide-fade-enter-active[data-v-06fb1f63]{transition:all .5s ease}.slide-fade-enter-from[data-v-06fb1f63]{opacity:0;transform:translateY(-5px)}.slide-fade-leave-to[data-v-06fb1f63]{opacity:0;transform:translateY(5px)}
@@ -1 +1 @@
1
- {"version":3,"file":"GatewayServiceConfigCard.vue.d.ts","sourceRoot":"","sources":["../../../src/components/GatewayServiceConfigCard.vue"],"names":[],"mappings":"AAwMA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,KAAK,CAAA;AAEnC,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,OAAO,CAAA;AACvC,OAAO,KAAK,EACV,qCAAqC,EACrC,iCAAiC,EAElC,MAAM,UAAU,CAAA;AAWjB,OAAO,gDAAgD,CAAA;;IAgXrD,oHAAoH;;cAElG,QAAQ,CAAC,iCAAiC,GAAG,qCAAqC,CAAC;;4BAE/E,iCAAiC,GAAG,qCAAqC,KAAG,OAAO;;IAQzG;;OAEG;;;;;;IAMH;;OAEG;;;;;;;;;;IAtBH,oHAAoH;;cAElG,QAAQ,CAAC,iCAAiC,GAAG,qCAAqC,CAAC;;4BAE/E,iCAAiC,GAAG,qCAAqC,KAAG,OAAO;;IAQzG;;OAEG;;;;;;IAMH;;OAEG;;;;;;;;;;;;;AAjCL,wBAuCG"}
1
+ {"version":3,"file":"GatewayServiceConfigCard.vue.d.ts","sourceRoot":"","sources":["../../../src/components/GatewayServiceConfigCard.vue"],"names":[],"mappings":"AAmMA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,KAAK,CAAA;AAEnC,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,OAAO,CAAA;AACvC,OAAO,KAAK,EAAE,qCAAqC,EAAE,iCAAiC,EAAqC,MAAM,UAAU,CAAA;AAU3I,OAAO,gDAAgD,CAAA;;IAgXrD,oHAAoH;;cAElG,QAAQ,CAAC,iCAAiC,GAAG,qCAAqC,CAAC;;4BAE/E,iCAAiC,GAAG,qCAAqC,KAAG,OAAO;;IAQzG;;OAEG;;;;;;IAMH;;OAEG;;;;;;;;;;IAtBH,oHAAoH;;cAElG,QAAQ,CAAC,iCAAiC,GAAG,qCAAqC,CAAC;;4BAE/E,iCAAiC,GAAG,qCAAqC,KAAG,OAAO;;IAQzG;;OAEG;;;;;;IAMH;;OAEG;;;;;;;;;;;;;AAjCL,wBAuCG"}
@@ -33,6 +33,17 @@ declare const __VLS_component: import("vue").DefineComponent<import("vue").Extra
33
33
  required: false;
34
34
  default: boolean;
35
35
  };
36
+ /** Whether show or hide Try sample API button */
37
+ hideTrySampleApiButton: {
38
+ type: BooleanConstructor;
39
+ required: false;
40
+ default: boolean;
41
+ };
42
+ sampleApiList: {
43
+ type: ArrayConstructor;
44
+ required: false;
45
+ default: () => never[];
46
+ };
36
47
  }>, {
37
48
  validateUrl: () => void;
38
49
  getPayload: import("vue").ComputedRef<Record<string, any>>;
@@ -46,6 +57,7 @@ declare const __VLS_component: import("vue").DefineComponent<import("vue").Extra
46
57
  "url-valid:error": (error: string) => any;
47
58
  loading: (isLoading: boolean) => any;
48
59
  "model-updated": (val: Record<string, any>) => any;
60
+ "try-sample-api": (val: Record<string, any>) => any;
49
61
  }, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
50
62
  /** The base konnect or kongManger config. Pass additional config props in the shared entity component as needed. */
51
63
  config: {
@@ -65,6 +77,17 @@ declare const __VLS_component: import("vue").DefineComponent<import("vue").Extra
65
77
  required: false;
66
78
  default: boolean;
67
79
  };
80
+ /** Whether show or hide Try sample API button */
81
+ hideTrySampleApiButton: {
82
+ type: BooleanConstructor;
83
+ required: false;
84
+ default: boolean;
85
+ };
86
+ sampleApiList: {
87
+ type: ArrayConstructor;
88
+ required: false;
89
+ default: () => never[];
90
+ };
68
91
  }>> & Readonly<{
69
92
  onError?: ((error: any) => any) | undefined;
70
93
  onUpdate?: ((data: Record<string, any>) => any) | undefined;
@@ -72,9 +95,12 @@ declare const __VLS_component: import("vue").DefineComponent<import("vue").Extra
72
95
  "onUrl-valid:error"?: ((error: string) => any) | undefined;
73
96
  onLoading?: ((isLoading: boolean) => any) | undefined;
74
97
  "onModel-updated"?: ((val: Record<string, any>) => any) | undefined;
98
+ "onTry-sample-api"?: ((val: Record<string, any>) => any) | undefined;
75
99
  }>, {
76
100
  gatewayServiceId: string;
77
101
  hideSectionsInfo: boolean;
102
+ hideTrySampleApiButton: boolean;
103
+ sampleApiList: unknown[];
78
104
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
79
105
  declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
80
106
  export default _default;
@@ -1 +1 @@
1
- {"version":3,"file":"GatewayServiceForm.vue.d.ts","sourceRoot":"","sources":["../../../src/components/GatewayServiceForm.vue"],"names":[],"mappings":"AAw4BA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,KAAK,CAAA;AAGnC,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,OAAO,CAAA;AAC1C,OAAO,KAAK,EACV,+BAA+B,EAC/B,mCAAmC,EAGpC,MAAM,UAAU,CAAA;AAcjB,OAAO,gDAAgD,CAAA;AAkgBvD,iBAAS,cAAc;;;;0BA/NO,IAAI;0BAmGH,OAAO,CAAC,aAAa,GAAG,SAAS,CAAC;YA2rB3B,GAAG;;;WAS3B,OAAO,IAA6B;EAEjD;AAqED,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe;IAenB,oHAAoH;;cAElG,QAAQ,CAAC,+BAA+B,GAAG,mCAAmC,CAAC;;4BAE3E,+BAA+B,GAAG,mCAAmC,KAAG,OAAO;;IAQrG,qGAAqG;;;;;;IAMrG,yDAAyD;;;;;;;uBA/+BnC,IAAI;;wBAkMG,OAAO,CAAC,aAAa,GAAG,SAAS,CAAC;;qBAtHzC,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,KAAG,IAAI;;;;;;;;;IAi5BhD,oHAAoH;;cAElG,QAAQ,CAAC,+BAA+B,GAAG,mCAAmC,CAAC;;4BAE3E,+BAA+B,GAAG,mCAAmC,KAAG,OAAO;;IAQrG,qGAAqG;;;;;;IAMrG,yDAAyD;;;;;;;;;;;;;;;;4EAOzD,CAAC;wBACkB,uBAAuB,CAAC,OAAO,eAAe,EAAE,oBAAoB,CAAC,OAAO,CAAC,CAAC;AAAnG,wBAAoG;AAKpG,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IACxC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
1
+ {"version":3,"file":"GatewayServiceForm.vue.d.ts","sourceRoot":"","sources":["../../../src/components/GatewayServiceForm.vue"],"names":[],"mappings":"AA4vCA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,KAAK,CAAA;AAGnC,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,OAAO,CAAA;AAC1C,OAAO,KAAK,EACV,+BAA+B,EAC/B,mCAAmC,EAIpC,MAAM,UAAU,CAAA;AAajB,OAAO,gDAAgD,CAAA;AAyxBvD,iBAAS,cAAc;;;;0BAjQO,IAAI;0BAmGH,OAAO,CAAC,aAAa,GAAG,SAAS,CAAC;YA04B3B,GAAG;;;WAS3B,OAAO,IAA6B;EAEjD;AAqFD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe;IAgBnB,oHAAoH;;cAElG,QAAQ,CAAC,+BAA+B,GAAG,mCAAmC,CAAC;;4BAE3E,+BAA+B,GAAG,mCAAmC,KAAG,OAAO;;IAQrG,qGAAqG;;;;;;IAMrG,yDAAyD;;;;;;IAMzD,iDAAiD;;;;;;;;;;;;uBAtsC3B,IAAI;;wBAmLG,OAAO,CAAC,aAAa,GAAG,SAAS,CAAC;;qBAtHzC,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,KAAG,IAAI;;;;;;;;;;IAinChD,oHAAoH;;cAElG,QAAQ,CAAC,+BAA+B,GAAG,mCAAmC,CAAC;;4BAE3E,+BAA+B,GAAG,mCAAmC,KAAG,OAAO;;IAQrG,qGAAqG;;;;;;IAMrG,yDAAyD;;;;;;IAMzD,iDAAiD;;;;;;;;;;;;;;;;;;;;;;;;4EAYjD,CAAC;wBACkB,uBAAuB,CAAC,OAAO,eAAe,EAAE,oBAAoB,CAAC,OAAO,CAAC,CAAC;AAAnG,wBAAoG;AAKpG,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IACxC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"GatewayServiceList.vue.d.ts","sourceRoot":"","sources":["../../../src/components/GatewayServiceList.vue"],"names":[],"mappings":"AAwqBA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,KAAK,CAAA;AAMnC,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,OAAO,CAAA;AASvC,OAAO,KAAK,EACV,mCAAmC,EACnC,+BAA+B,EAC/B,SAAS,EACT,gBAAgB,EACjB,MAAM,UAAU,CAAA;AAkBjB,OAAO,gDAAgD,CAAA;;IAkrCrD,oHAAoH;;cAElG,QAAQ,CAAC,+BAA+B,GAAG,mCAAmC,CAAC;;4BAE3E,+BAA+B,GAAG,mCAAmC,KAAG,OAAO;;;;;;IAYrG,yHAAyH;;cAErG,QAAQ,CAAC,MAAM,OAAO,GAAG,OAAO,CAAC,OAAO,CAAC,CAAC;;;;IAI9D,2HAA2H;;cAEvG,QAAQ,CAAC,CAAC,GAAG,EAAE,SAAS,KAAK,OAAO,GAAG,OAAO,CAAC,OAAO,CAAC,CAAC;;;;IAI5E,yHAAyH;;cAErG,QAAQ,CAAC,CAAC,GAAG,EAAE,SAAS,KAAK,OAAO,GAAG,OAAO,CAAC,OAAO,CAAC,CAAC;;;;IAI5E,4IAA4I;;cAExH,QAAQ,CAAC,CAAC,GAAG,EAAE,SAAS,KAAK,OAAO,GAAG,OAAO,CAAC,OAAO,CAAC,CAAC;;;;IAI5E,iHAAiH;;;;;IAKjH,8CAA8C;;;;;IAK9C;;;OAGG;;;;;;;;;;;;;IArDH,oHAAoH;;cAElG,QAAQ,CAAC,+BAA+B,GAAG,mCAAmC,CAAC;;4BAE3E,+BAA+B,GAAG,mCAAmC,KAAG,OAAO;;;;;;IAYrG,yHAAyH;;cAErG,QAAQ,CAAC,MAAM,OAAO,GAAG,OAAO,CAAC,OAAO,CAAC,CAAC;;;;IAI9D,2HAA2H;;cAEvG,QAAQ,CAAC,CAAC,GAAG,EAAE,SAAS,KAAK,OAAO,GAAG,OAAO,CAAC,OAAO,CAAC,CAAC;;;;IAI5E,yHAAyH;;cAErG,QAAQ,CAAC,CAAC,GAAG,EAAE,SAAS,KAAK,OAAO,GAAG,OAAO,CAAC,OAAO,CAAC,CAAC;;;;IAI5E,4IAA4I;;cAExH,QAAQ,CAAC,CAAC,GAAG,EAAE,SAAS,KAAK,OAAO,GAAG,OAAO,CAAC,OAAO,CAAC,CAAC;;;;IAI5E,iHAAiH;;;;;IAKjH,8CAA8C;;;;;IAK9C;;;OAGG;;;;;;;;;;;;;;qBAnCgC,OAAO,GAAG,OAAO,CAAC,OAAO,CAAC;qBAM1B,SAAS,KAAK,OAAO,GAAG,OAAO,CAAC,OAAO,CAAC;mBAMxC,SAAS,KAAK,OAAO,GAAG,OAAO,CAAC,OAAO,CAAC;uBAMxC,SAAS,KAAK,OAAO,GAAG,OAAO,CAAC,OAAO,CAAC;;;;;AAlD7E,wBAyEG"}
1
+ {"version":3,"file":"GatewayServiceList.vue.d.ts","sourceRoot":"","sources":["../../../src/components/GatewayServiceList.vue"],"names":[],"mappings":"AAuqBA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,KAAK,CAAA;AAMnC,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,OAAO,CAAA;AASvC,OAAO,KAAK,EACV,mCAAmC,EACnC,+BAA+B,EAC/B,SAAS,EACT,gBAAgB,EACjB,MAAM,UAAU,CAAA;AAiBjB,OAAO,gDAAgD,CAAA;;IAirCrD,oHAAoH;;cAElG,QAAQ,CAAC,+BAA+B,GAAG,mCAAmC,CAAC;;4BAE3E,+BAA+B,GAAG,mCAAmC,KAAG,OAAO;;;;;;IAYrG,yHAAyH;;cAErG,QAAQ,CAAC,MAAM,OAAO,GAAG,OAAO,CAAC,OAAO,CAAC,CAAC;;;;IAI9D,2HAA2H;;cAEvG,QAAQ,CAAC,CAAC,GAAG,EAAE,SAAS,KAAK,OAAO,GAAG,OAAO,CAAC,OAAO,CAAC,CAAC;;;;IAI5E,yHAAyH;;cAErG,QAAQ,CAAC,CAAC,GAAG,EAAE,SAAS,KAAK,OAAO,GAAG,OAAO,CAAC,OAAO,CAAC,CAAC;;;;IAI5E,4IAA4I;;cAExH,QAAQ,CAAC,CAAC,GAAG,EAAE,SAAS,KAAK,OAAO,GAAG,OAAO,CAAC,OAAO,CAAC,CAAC;;;;IAI5E,iHAAiH;;;;;IAKjH,8CAA8C;;;;;IAK9C;;;OAGG;;;;;;;;;;;;;IArDH,oHAAoH;;cAElG,QAAQ,CAAC,+BAA+B,GAAG,mCAAmC,CAAC;;4BAE3E,+BAA+B,GAAG,mCAAmC,KAAG,OAAO;;;;;;IAYrG,yHAAyH;;cAErG,QAAQ,CAAC,MAAM,OAAO,GAAG,OAAO,CAAC,OAAO,CAAC,CAAC;;;;IAI9D,2HAA2H;;cAEvG,QAAQ,CAAC,CAAC,GAAG,EAAE,SAAS,KAAK,OAAO,GAAG,OAAO,CAAC,OAAO,CAAC,CAAC;;;;IAI5E,yHAAyH;;cAErG,QAAQ,CAAC,CAAC,GAAG,EAAE,SAAS,KAAK,OAAO,GAAG,OAAO,CAAC,OAAO,CAAC,CAAC;;;;IAI5E,4IAA4I;;cAExH,QAAQ,CAAC,CAAC,GAAG,EAAE,SAAS,KAAK,OAAO,GAAG,OAAO,CAAC,OAAO,CAAC,CAAC;;;;IAI5E,iHAAiH;;;;;IAKjH,8CAA8C;;;;;IAK9C;;;OAGG;;;;;;;;;;;;;;qBAnCgC,OAAO,GAAG,OAAO,CAAC,OAAO,CAAC;qBAM1B,SAAS,KAAK,OAAO,GAAG,OAAO,CAAC,OAAO,CAAC;mBAMxC,SAAS,KAAK,OAAO,GAAG,OAAO,CAAC,OAAO,CAAC;uBAMxC,SAAS,KAAK,OAAO,GAAG,OAAO,CAAC,OAAO,CAAC;;;;;AAlD7E,wBAyEG"}
@@ -0,0 +1,69 @@
1
+ export declare const demoWeatherService: {
2
+ name: string;
3
+ tags: string[];
4
+ protocol: string;
5
+ path: string;
6
+ read_timeout: number;
7
+ retries: number;
8
+ host: string;
9
+ connect_timeout: number;
10
+ ca_certificates: null;
11
+ client_certificate: null;
12
+ write_timeout: number;
13
+ port: number;
14
+ };
15
+ export declare const WEATHER_ROUTE_PATH = "/examples/weather/utopia";
16
+ export declare const demoWeatherRoute: {
17
+ name: string;
18
+ paths: string[];
19
+ snis: null;
20
+ hosts: null;
21
+ methods: string[];
22
+ headers: null;
23
+ sources: null;
24
+ destinations: null;
25
+ tags: string[];
26
+ regex_priority: number;
27
+ path_handling: string;
28
+ strip_path: boolean;
29
+ preserve_host: boolean;
30
+ https_redirect_status_code: number;
31
+ protocols: string[];
32
+ request_buffering: boolean;
33
+ response_buffering: boolean;
34
+ };
35
+ export declare const demoStockService: {
36
+ name: string;
37
+ tags: string[];
38
+ protocol: string;
39
+ path: string;
40
+ read_timeout: number;
41
+ retries: number;
42
+ host: string;
43
+ connect_timeout: number;
44
+ ca_certificates: null;
45
+ client_certificate: null;
46
+ write_timeout: number;
47
+ port: number;
48
+ };
49
+ export declare const STOCK_ROUTE_PATH = "/examples/stock/piper";
50
+ export declare const demoStockRoute: {
51
+ name: string;
52
+ paths: string[];
53
+ snis: null;
54
+ hosts: null;
55
+ methods: string[];
56
+ headers: null;
57
+ sources: null;
58
+ destinations: null;
59
+ tags: string[];
60
+ regex_priority: number;
61
+ path_handling: string;
62
+ strip_path: boolean;
63
+ preserve_host: boolean;
64
+ https_redirect_status_code: number;
65
+ protocols: string[];
66
+ request_buffering: boolean;
67
+ response_buffering: boolean;
68
+ };
69
+ //# sourceMappingURL=constants.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../src/constants.ts"],"names":[],"mappings":"AACA,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;CAgB9B,CAAA;AAGD,eAAO,MAAM,kBAAkB,6BAA6B,CAAA;AAC5D,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;;;;;;CAgC5B,CAAA;AAGD,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;CAgB5B,CAAA;AAGD,eAAO,MAAM,gBAAgB,0BAA0B,CAAA;AACvD,eAAO,MAAM,cAAc;;;;;;;;;;;;;;;;;;CAgC1B,CAAA"}
@@ -27,13 +27,30 @@ export interface GatewayServiceFormFields {
27
27
  tls_verify_value: boolean;
28
28
  tags: string;
29
29
  }
30
+ export interface FormFieldErrors {
31
+ host: string;
32
+ port: string;
33
+ path: string;
34
+ url: string;
35
+ tags: string;
36
+ retries: string;
37
+ connect_timeout: string;
38
+ write_timeout: string;
39
+ read_timeout: string;
40
+ client_certificate: string;
41
+ ca_certificates: string;
42
+ tls_verify_enabled: string;
43
+ tls_verify_value: string;
44
+ }
30
45
  export interface GatewayServiceFormState {
31
46
  /** Form fields */
32
47
  fields: GatewayServiceFormFields;
33
48
  /** Form readonly state (only used when saving entity details) */
34
49
  isReadonly: boolean;
35
- /** The error message to show on the form */
36
- errorMessage: string;
50
+ /** The Array of error messages to show */
51
+ errorMessages: string[];
52
+ /** The error Object is to show error on each form field */
53
+ formFieldErrors: FormFieldErrors;
37
54
  }
38
55
  export interface SelectItem {
39
56
  label: string;
@@ -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;CACb;AAED,MAAM,WAAW,uBAAuB;IACtC,kBAAkB;IAClB,MAAM,EAAE,wBAAwB,CAAA;IAChC,iEAAiE;IACjE,UAAU,EAAE,OAAO,CAAA;IACnB,4CAA4C;IAC5C,YAAY,EAAE,MAAM,CAAA;CACrB;AAGD,MAAM,WAAW,UAAU;IACzB,KAAK,EAAE,MAAM,CAAA;IACb,KAAK,EAAE,MAAM,GAAG,MAAM,CAAA;IACtB,QAAQ,CAAC,EAAE,OAAO,CAAA;CACnB"}
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;CACb;AACD,MAAM,WAAW,eAAe;IAC9B,IAAI,EAAE,MAAM,CAAA;IACZ,IAAI,EAAE,MAAM,CAAA;IACZ,IAAI,EAAE,MAAM,CAAC;IACb,GAAG,EAAE,MAAM,CAAC;IACZ,IAAI,EAAE,MAAM,CAAC;IACb,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;CACzB;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,CAAC;IACxB,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"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kong-ui-public/entities-gateway-services",
3
- "version": "3.10.4-pr.1990.f7a2d582d.0",
3
+ "version": "3.10.4-pr.2001.5923607fc.0",
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.7.7",
27
27
  "vue": ">= 3.3.13 < 4",
28
28
  "vue-router": "^4.4.5",
29
- "@kong-ui-public/entities-shared": "^3.19.1-pr.1990.f7a2d582d.0",
30
- "@kong-ui-public/i18n": "^2.2.10"
29
+ "@kong-ui-public/i18n": "^2.2.10",
30
+ "@kong-ui-public/entities-shared": "^3.19.1-pr.2001.5923607fc.0"
31
31
  },
32
32
  "devDependencies": {
33
33
  "@kong/design-tokens": "1.17.3",
@@ -36,7 +36,7 @@
36
36
  "axios": "^1.7.7",
37
37
  "vue": "^3.5.13",
38
38
  "vue-router": "^4.4.5",
39
- "@kong-ui-public/entities-shared": "^3.19.1-pr.1990.f7a2d582d.0",
39
+ "@kong-ui-public/entities-shared": "^3.19.1-pr.2001.5923607fc.0",
40
40
  "@kong-ui-public/i18n": "^2.2.10"
41
41
  },
42
42
  "repository": {