@kong-ui-public/entities-gateway-services 3.9.3-pr.1949.9d707ffd3.0 → 3.9.3-pr.1961.7adb6d5bc.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(h,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):(h=typeof globalThis<"u"?globalThis:h||self,e(h["kong-ui-public-entities-gateway-services"]={},h.Vue,h.VueRouter,h.KongIcons,h["kong-ui-public-i18n"],h["kong-ui-public-entities-shared"]))})(this,function(h,e,fe,oe,pe,u){"use strict";const me={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 ye(){const a=pe.createI18n("en-us",me);return{i18n:a,i18nT:pe.i18nTComponent(a)}}function ge(){return{getPortFromProtocol:(I,p)=>{const c=[80,443],r=Number(p);if((r||r===0)&&!c.includes(r))return r;switch(I){case"grpcs":case"tls":case"https":case"wss":return 443;case"grpc":case"tcp":case"http":case"ws":default:return 80}}}}const J={useI18n:ye,usePortFromProtocol:ge},Q="/v2/control-planes/{controlPlaneId}/core-entities",X="/{workspace}",A={list:{konnect:{all:`${Q}/services`},kongManager:{all:`${X}/services`}},form:{konnect:{create:`${Q}/services`,validate:`${Q}/v1/schemas/json/service/validate`,edit:`${Q}/services/{id}`},kongManager:{create:`${X}/services`,validate:`${X}/schemas/services/validate`,edit:`${X}/services/{id}`}}},_e="#00abd2",be="24px",we={class:"kong-ui-entities-gateway-services-list"},he={class:"button-row"},Ve={class:"empty-state-icon-gateway"},ve={key:1},Ce=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:I}){var C;const p=I,c=a,{i18n:{t:r,formatUnixTimeStamp:k}}=J.useI18n(),U=fe.useRouter(),{axiosInstance:B}=u.useAxios((C=c.config)==null?void 0:C.axiosRequestConfig),{handleStateChange:s}=u.useTableState(()=>T.value),V=e.computed(()=>c.config.app!=="kongManager"||!!c.config.disableSorting),g={name:{label:r("gateway_services.list.table_headers.name"),searchable:!0,sortable:!0,hidable:!1},...c.config.showControlPlaneColumn?{control_plane:{label:r("gateway_services.list.table_headers.control_plane")}}:{},protocol:{label:r("gateway_services.list.table_headers.protocol"),searchable:!0,sortable:!0},host:{label:r("gateway_services.list.table_headers.host"),searchable:!0,sortable:!0},port:{label:r("gateway_services.list.table_headers.port"),searchable:!0,sortable:!0},path:{label:r("gateway_services.list.table_headers.path"),searchable:!0,sortable:!0},enabled:{label:r("gateway_services.list.table_headers.enabled"),searchable:!0,sortable:!0},tags:{label:r("gateway_services.list.table_headers.tags"),sortable:!1},updated_at:{label:r("gateway_services.list.table_headers.updated_at"),sortable:!0},created_at:{label:r("gateway_services.list.table_headers.created_at"),sortable:!0}},le={columnVisibility:{created_at:!1}},ie=g,S=e.computed(()=>{var f,l;let n=`${c.config.apiBaseUrl}${A.list[c.config.app].all}`;return c.config.app==="konnect"?n=n.replace(/{controlPlaneId}/gi,((f=c.config)==null?void 0:f.controlPlaneId)||""):c.config.app==="kongManager"&&(n=n.replace(/\/{workspace}/gi,(l=c.config)!=null&&l.workspace?`/${c.config.workspace}`:"")),n}),re=e.computed(()=>c.config.apiBaseUrl.startsWith("/")?new URL(`${window.location.origin}${S.value}`):new URL(S.value)),T=e.ref(""),b=e.computed(()=>{const n=c.config.app==="konnect"||c.config.isExactMatch;if(n)return{isExactMatch:n,placeholder:r(`search.placeholder.${c.config.app}`)};const{name:f,enabled:l,protocol:w,host:d,port:x,path:te}=g;return{isExactMatch:n,fields:{name:f,enabled:l,protocol:w,host:d,port:x,path:te},schema:c.config.filterSchema}}),{fetcher:F,fetcherState:G,fetcherCacheKey:L}=u.useFetcher({...c.config,cacheIdentifier:c.cacheIdentifier},S.value),t=()=>{T.value=""},_=()=>{L.value++},D=e.ref(null),se=e.computed(()=>({ctaPath:c.config.createRoute,ctaText:y.value?c.isServerless?r("actions.serverless_create"):r("actions.create"):void 0,message:`${r("gateway_services.list.empty_state.description")}${c.config.additionMessageForEmptyState?` ${c.config.additionMessageForEmptyState}`:""}`,title:y.value?c.isServerless?r("gateway_services.list.empty_state.serverless_title"):r("gateway_services.list.empty_state.title"):r("gateway_services.title")})),$=e.ref(!1),v=e.ref(null),P=e.computed(()=>{const n={action:"disable",id:"",name:""};if(v.value){const{enabled:f,id:l,name:w}=v.value;n.action=f?"disable":"enable",n.id=l,n.name=w||l}return n}),Z=n=>{$.value=!0,v.value=n},q=()=>{$.value=!1,v.value=null},Y=async()=>{var w,d;if(!await((w=c.canEdit)==null?void 0:w.call(c,v.value))||!v.value)return;const f=`${re.value.href}/${v.value.id}`,l=!v.value.enabled;try{const{data:x}=((d=c.config)==null?void 0:d.app)==="konnect"?await B.put(f,{...v.value,enabled:l}):await B.patch(f,{...v.value,enabled:l});p("toggle:success",x),v.value.enabled=l}catch(x){p("error",x)}},ae=n=>{c.config.getControlPlaneRoute&&U.push(c.config.getControlPlaneRoute(n))},ne=(n,f)=>{const l=n.id;if(!f(l)){p("copy:error",{entity:n,field:"id",message:r("errors.copy")});return}p("copy:success",{entity:n,field:"id",message:r("copy.success",{val:l})})},ce=(n,f)=>{const l=JSON.stringify(n);if(!f(l)){p("copy:error",{entity:n,message:r("errors.copy")});return}p("copy:success",{entity:n,message:r("copy.success_brief")})},de=async n=>{var l;await((l=c.canRetrieve)==null?void 0:l.call(c,n))&&U.push(c.config.getViewRoute(n.id))},K=n=>({label:r("actions.view"),to:c.config.getViewRoute(n)}),ee=n=>({label:r("actions.edit"),to:c.config.getEditRoute(n)}),N=e.ref(void 0),O=e.ref(!1),M=e.ref(!1),W=e.ref(""),R=u.useDeleteUrlBuilder(c.config,S.value),j=n=>{N.value=n,O.value=!0,W.value=""},z=()=>{O.value=!1,N.value=void 0},o=async()=>{var n,f,l;if((n=N.value)!=null&&n.id){M.value=!0;try{await B.delete(R(N.value.id)),p("delete:success",N.value),z(),L.value++}catch(w){W.value=((l=(f=w.response)==null?void 0:f.data)==null?void 0:l.message)||w.message||r("errors.delete"),p("error",w)}finally{M.value=!1}}},i=()=>{U.push(c.config.createRoute)};e.watch(G,n=>{var f,l,w;if(n.status===u.FetcherStatus.Error){D.value={title:r("errors.general")},(w=(l=(f=n.error)==null?void 0:f.response)==null?void 0:l.data)!=null&&w.message&&(D.value.message=n.error.response.data.message),p("error",n.error);return}D.value=null});const y=e.ref(!1);return e.onBeforeMount(async()=>{y.value=await c.canCreate()}),(n,f)=>{const l=e.resolveComponent("KButton"),w=e.resolveComponent("KBadge"),d=e.resolveComponent("KInputSwitch"),x=e.resolveComponent("KDropdownItem"),te=e.resolveComponent("KClipboardProvider");return e.openBlock(),e.createElementBlock("div",we,[e.createVNode(e.unref(u.EntityBaseTable),{"cache-identifier":a.cacheIdentifier,"default-table-preferences":le,"disable-sorting":V.value,"empty-state-options":se.value,"enable-entity-actions":"","error-message":D.value,fetcher:e.unref(F),"fetcher-cache-key":e.unref(L),"pagination-type":"offset","preferences-storage-key":"kong-ui-entities-gateway-services-list",query:T.value,"table-headers":e.unref(ie),onClearSearchInput:t,"onClick:row":f[4]||(f[4]=m=>de(m)),onSort:_,onState:e.unref(s)},e.createSlots({"toolbar-filter":e.withCtx(()=>[e.createVNode(e.unref(u.EntityFilter),{modelValue:T.value,"onUpdate:modelValue":f[0]||(f[0]=m=>T.value=m),config:b.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",he,[e.createVNode(l,{appearance:"secondary",class:"open-learning-hub","data-testid":"gateway-services-learn-more-button",icon:"",onClick:f[1]||(f[1]=m=>n.$emit("click:learn-more"))},{default:e.withCtx(()=>[e.createVNode(e.unref(oe.BookIcon),{decorative:""})]),_:1}),e.createVNode(e.unref(u.PermissionsWrapper),{"auth-function":()=>a.canCreate()},{default:e.withCtx(()=>[e.createVNode(l,{appearance:"primary","data-testid":"toolbar-add-gateway-service",size:a.useActionOutside?"medium":"large",to:a.config.createRoute},{default:e.withCtx(()=>[e.createVNode(e.unref(oe.AddIcon)),e.createTextVNode(" "+e.toDisplayString(e.unref(r)("gateway_services.list.toolbar_actions.new_gateway_service")),1)]),_:1},8,["size","to"])]),_:1},8,["auth-function"])])],8,["disabled"]))]),name:e.withCtx(({rowValue:m})=>[e.createElementVNode("b",null,e.toDisplayString(m??"-"),1)]),control_plane:e.withCtx(({row:m})=>{var E;return[(E=m.x_meta)!=null&&E.cluster_id?(e.openBlock(),e.createBlock(w,{key:0,tooltip:m.x_meta.cluster_id,"truncation-tooltip":"",onClick:e.withModifiers(H=>ae(m.x_meta.cluster_id),["stop"])},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(m.x_meta.cluster_id),1)]),_:2},1032,["tooltip","onClick"])):(e.openBlock(),e.createElementBlock("b",ve,"-"))]}),enabled:e.withCtx(({row:m})=>[e.createVNode(e.unref(u.PermissionsWrapper),{"auth-function":()=>a.canEdit(m),"force-show":""},{default:e.withCtx(({isAllowed:E})=>[e.createElementVNode("div",{onClick:f[3]||(f[3]=e.withModifiers(()=>{},["stop"]))},[e.createVNode(d,{modelValue:m.enabled,"onUpdate:modelValue":H=>m.enabled=H,"data-testid":`row-${m.id}-toggle-input`,disabled:!E,onClick:e.withModifiers(H=>Z(m),["prevent"])},null,8,["modelValue","onUpdate:modelValue","data-testid","disabled","onClick"])])]),_:2},1032,["auth-function"])]),tags:e.withCtx(({rowValue:m})=>[e.createVNode(e.unref(u.TableTags),{tags:m},null,8,["tags"])]),created_at:e.withCtx(({rowValue:m})=>[e.createTextVNode(e.toDisplayString(e.unref(k)(m)),1)]),updated_at:e.withCtx(({row:m,rowValue:E})=>[e.createTextVNode(e.toDisplayString(e.unref(k)(E??m.created_at)),1)]),actions:e.withCtx(({row:m})=>[e.createVNode(te,null,{default:e.withCtx(({copyToClipboard:E})=>[e.createVNode(x,{"data-testid":"action-entity-copy-id",onClick:H=>ne(m,E)},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(r)("actions.copy_id")),1)]),_:2},1032,["onClick"])]),_:2},1024),e.createVNode(te,null,{default:e.withCtx(({copyToClipboard:E})=>[e.createVNode(x,{"data-testid":"action-entity-copy-json",onClick:H=>ce(m,E)},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(r)("actions.copy_json")),1)]),_:2},1032,["onClick"])]),_:2},1024),e.createVNode(e.unref(u.PermissionsWrapper),{"auth-function":()=>a.canRetrieve(m)},{default:e.withCtx(()=>[e.createVNode(x,{"data-testid":"action-entity-view","has-divider":"",item:K(m.id)},null,8,["item"])]),_:2},1032,["auth-function"]),e.createVNode(e.unref(u.PermissionsWrapper),{"auth-function":()=>a.canEdit(m)},{default:e.withCtx(()=>[e.createVNode(x,{"data-testid":"action-entity-edit",item:ee(m.id)},null,8,["item"])]),_:2},1032,["auth-function"]),e.createVNode(e.unref(u.PermissionsWrapper),{"auth-function":()=>a.canDelete(m)},{default:e.withCtx(()=>[e.createVNode(x,{danger:"","data-testid":"action-entity-delete","has-divider":"",onClick:E=>j(m)},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(r)("actions.delete.menu_label")),1)]),_:2},1032,["onClick"])]),_:2},1032,["auth-function"])]),_:2},[a.enableV2EmptyStates&&a.config.app==="konnect"?{name:"empty-state",fn:e.withCtx(()=>[e.createVNode(e.unref(u.EntityEmptyState),{"action-button-text":e.unref(r)("gateway_services.empty_state_v2.create"),appearance:"secondary","can-create":()=>a.canCreate(),description:e.unref(r)("gateway_services.empty_state_v2.description"),"learn-more":a.config.app==="konnect",title:e.unref(r)("gateway_services.empty_state_v2.title"),"onClick:create":i,"onClick:learnMore":f[2]||(f[2]=m=>n.$emit("click:learn-more"))},{image:e.withCtx(()=>[e.createElementVNode("div",Ve,[e.createVNode(e.unref(oe.ServicesIcon),{color:e.unref(_e),size:e.unref(be)},null,8,["color","size"])])]),_:1},8,["action-button-text","can-create","description","learn-more","title"])]),key:"0"}:void 0]),1032,["cache-identifier","disable-sorting","empty-state-options","error-message","fetcher","fetcher-cache-key","query","table-headers","onState"]),e.createVNode(e.unref(u.EntityToggleModal),{action:P.value.action,"entity-id":P.value.id,"entity-name":P.value.name,"entity-type":e.unref(r)("glossary.gateway_services"),"on-confirm":Y,visible:$.value,onCancel:q,onProceed:q},null,8,["action","entity-id","entity-name","entity-type","visible"]),e.createVNode(e.unref(u.EntityDeleteModal),{"action-pending":M.value,description:e.unref(r)("actions.delete.description"),"entity-name":N.value&&(N.value.name||N.value.id),"entity-type":e.unref(u.EntityTypes).GatewayService,error:W.value,title:e.unref(r)("actions.delete.title"),visible:O.value,onCancel:z,onProceed:o},null,8,["action-pending","description","entity-name","entity-type","error","title","visible"])])}}}),ue=(a,I)=>{const p=a.__vccOpts||a;for(const[c,r]of I)p[c]=r;return p},ke=ue(Ce,[["__scopeId","data-v-3b1bbe9d"]]),Ne={class:"kong-ui-entities-gateway-service-form"},xe={key:0},Ee={class:"gateway-service-form-traffic-label"},Se={class:"gateway-service-form-margin-bottom"},Te={key:0,class:"gateway-service-form-group-fields"},Ie={key:1,class:"gateway-service-form-group-fields"},Pe={key:0},Be={class:"gateway-service-form-margin-top"},Ue={class:"gateway-service-form-margin-bottom"},Me={class:"gateway-service-form-margin-bottom"},Re={class:"gateway-service-form-margin-bottom"},De={class:"gateway-service-form-margin-bottom"},$e={key:0,class:"gateway-service-form-margin-bottom"},Ae={key:1,class:"gateway-service-form-margin-bottom"},Fe={key:2,class:"gateway-service-form-margin-bottom"},Ge={key:0,class:"checkbox-aligned-radio"},Le={key:1,class:"checkbox-aligned-radio"},qe=ue(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}},emits:["update","error","url-valid:success","url-valid:error","loading","model-updated"],setup(a,{expose:I,emit:p}){var z;const c=p,r=a,k=e.ref(!0),U=fe.useRouter(),{i18nT:B,i18n:{t:s}}=J.useI18n(),{getMessageFromError:V}=u.useErrors(),{axiosInstance:g}=u.useAxios((z=r.config)==null?void 0:z.axiosRequestConfig),le=u.useValidators(),ie=e.computed(()=>A.form[r.config.app].edit),S=e.computed(()=>r.gatewayServiceId?u.EntityBaseFormType.Edit:u.EntityBaseFormType.Create),re=e.ref(!1),T=e.computed(()=>!!r.gatewayServiceId),b=e.ref(T.value?"protocol":"url"),F=J.usePortFromProtocol(),G=e.ref(""),L=e.computed(()=>!!G.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:""}),_=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:""}),D=r.config.app==="konnect"||u.useGatewayFeatureSupported({gatewayInfo:r.config.gatewayInfo,supportedRange:{enterprise:["3.0"]}}),se=[{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"},...D?[{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"}],$={url:"url",protocol:"protocol"},v=(o,i)=>{i.value},P=o=>o?parseFloat(o):0,Z=()=>{k.value=!0,t.errorMessage="",t.fields.host=_.host,t.fields.path=_.path,t.fields.port=_.port,t.fields.protocol=_.protocol,t.fields.url=_.url,t.fields.retries=_.retries,t.fields.connect_timeout=_.connect_timeout,t.fields.write_timeout=_.write_timeout,t.fields.read_timeout=_.read_timeout,t.fields.client_certificate=_.client_certificate,t.fields.ca_certificates=_.ca_certificates,t.fields.tls_verify_enabled=_.tls_verify_enabled,t.fields.tls_verify_value=_.tls_verify_value},q=()=>{if(t.fields.url&&b.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 i=Number(o.port);re.value=!!i,t.fields.port=i||F.getPortFromProtocol(t.fields.protocol),t.errorMessage="",c("url-valid:success")}catch(o){t.errorMessage=s("errors.urlErrorMessage"),c("url-valid:error",V(o))}else c("url-valid:success"),t.errorMessage=""},Y=e.computed(()=>!["tcp","tls","tls_passthrough","grpc","grpcs","udp"].includes(t.fields.protocol)),ae=e.computed(()=>{if(b.value==="url")return!0;const o=["https","wss","tls"].includes(t.fields.protocol);return b.value==="protocol"&&o}),ne=e.computed(()=>{if(b.value==="url")return!0;const o=["https","tls"].includes(t.fields.protocol);return b.value==="protocol"&&o}),ce=e.computed(()=>{if(b.value==="url")return!0;const o=["https","wss","tls"].includes(t.fields.protocol);return b.value==="protocol"&&o}),de=o=>{G.value=le.utf8Name(o)},K=e.computed(()=>T.value&&JSON.stringify(t.fields)!==JSON.stringify(_)||b.value==="url"&&!!t.fields.url||b.value==="protocol"&&!!t.fields.host),ee=o=>{var i,y,C;t.fields.name=(o==null?void 0:o.name)||"",t.fields.tags=((i=o==null?void 0:o.tags)==null?void 0:i.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=((y=o==null?void 0:o.ca_certificates)==null?void 0:y.join(","))||"",t.fields.client_certificate=((C=o==null?void 0:o.client_certificate)==null?void 0:C.id)||"",t.fields.write_timeout=o!=null&&o.write_timeout||(o==null?void 0:o.write_timeout)===0?o==null?void 0:o.write_timeout:6e4,t.fields.port=o!=null&&o.port||(o==null?void 0:o.port)===0?o==null?void 0:o.port:80,Object.assign(_,t.fields)},N=()=>{U.push(r.config.cancelRoute)},O=e.computed(()=>{var i,y;let o=`${r.config.apiBaseUrl}${A.form[r.config.app].validate}`;return r.config.app==="konnect"?o=o.replace(/{controlPlaneId}/gi,((i=r.config)==null?void 0:i.controlPlaneId)||""):r.config.app==="kongManager"&&(o=o.replace(/\/{workspace}/gi,(y=r.config)!=null&&y.workspace?`/${r.config.workspace}`:"")),o=o.replace(/{id}/gi,r.gatewayServiceId),o}),M=e.computed(()=>{var i,y;let o=`${r.config.apiBaseUrl}${A.form[r.config.app][S.value]}`;return r.config.app==="konnect"?o=o.replace(/{controlPlaneId}/gi,((i=r.config)==null?void 0:i.controlPlaneId)||""):r.config.app==="kongManager"&&(o=o.replace(/\/{workspace}/gi,(y=r.config)!=null&&y.workspace?`/${r.config.workspace}`:"")),o=o.replace(/{id}/gi,r.gatewayServiceId),o}),W=o=>{let i="";o.url&&(i=new URL(o.url).protocol),(["https","wss","tls"].includes(o.protocol)||["https","wss","tls"].includes(i))&&(o.tls_verify=o.tls_verify_enabled?o.tls_verify_value:null),delete o.tls_verify_enabled,delete o.tls_verify_value},R=e.computed(()=>{var i,y,C,n;const o={name:t.fields.name||null,tags:t.fields.tags?(C=(y=(i=t.fields.tags)==null?void 0:i.split(","))==null?void 0:y.map(f=>String(f||"").trim()))==null?void 0:C.filter(f=>f!==""):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?(n=t.fields.ca_certificates)==null?void 0:n.split(",").filter(f=>f!==""):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),Y.value||(o.path=null),S.value==="create"?b.value==="url"?(delete o.protocol,delete o.host,delete o.path,r.config.app==="konnect"&&delete o.port):delete o.url:S.value==="edit"&&delete o.url,o}),j=async()=>{var o,i,y,C;try{t.isReadonly=!0,q();const n=R.value;W(n);let f;if(await g.post(O.value,n),S.value==="create"?f=await g.post(M.value,n):S.value==="edit"&&(f=((o=r.config)==null?void 0:o.app)==="konnect"?await g.put(M.value,n):await g.patch(M.value,n)),f){const{data:l}=f;t.fields.name=(l==null?void 0:l.name)||"",t.fields.port=l.port||F.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=((i=l==null?void 0:l.client_certificate)==null?void 0:i.id)||"",t.fields.ca_certificates=(y=l==null?void 0:l.ca_certificates)!=null&&y.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=(C=l==null?void 0:l.tags)!=null&&C.length?l.tags.join(", "):"",Object.assign(_,t.fields),c("update",f==null?void 0:f.data)}return f}catch(n){t.errorMessage=V(n),c("error",n)}finally{t.isReadonly=!1}};return e.watch(()=>r.gatewayServiceId,()=>{Object.assign(t.fields,_)}),e.watch(t.fields,o=>{t.fields.port=F.getPortFromProtocol(o.protocol,String(o.port)),c("model-updated",R.value)}),e.onMounted(()=>{c("model-updated",R.value)}),I({validateUrl:q,getPayload:R,saveFormData:j,canSubmit:K,initForm:ee}),(o,i)=>{const y=e.resolveComponent("KInput"),C=e.resolveComponent("KLabel"),n=e.resolveComponent("KRadio"),f=e.resolveComponent("KSelect"),l=e.resolveComponent("KCheckbox"),w=e.resolveComponent("KCollapse");return e.openBlock(),e.createElementBlock("div",Ne,[e.createVNode(e.unref(u.EntityBaseForm),{"can-submit":K.value,config:a.config,"edit-id":a.gatewayServiceId,"entity-type":e.unref(u.SupportedEntityType).GatewayService,"error-message":t.errorMessage,"fetch-url":ie.value,"form-fields":R.value,"is-readonly":t.isReadonly,onCancel:N,"onFetch:error":i[25]||(i[25]=d=>o.$emit("error",d)),"onFetch:success":ee,onLoading:i[26]||(i[26]=d=>o.$emit("loading",d)),onSubmit:j},{"form-actions":e.withCtx(()=>[e.renderSlot(o.$slots,"form-actions",{canSubmit:K.value,cancel:N,submit:j},void 0,!0)]),default:e.withCtx(()=>[e.createVNode(e.unref(u.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:t.fields.name,"onUpdate:modelValue":i[0]||(i[0]=d=>t.fields.name=d),modelModifiers:{trim:!0},autocomplete:"off","data-testid":"gateway-service-name-input",error:L.value,"error-message":G.value,label:e.unref(s)("gateway_services.form.fields.name.label"),"label-attributes":{info:e.unref(s)("gateway_services.form.fields.name.tooltip"),tooltipAttributes:{maxWidth:"400"}},name:"name",placeholder:e.unref(s)("gateway_services.form.fields.name.placeholder"),readonly:t.isReadonly,type:"text",onInput:de},null,8,["modelValue","error","error-message","label","label-attributes","placeholder","readonly"]),e.createVNode(y,{modelValue:t.fields.tags,"onUpdate:modelValue":i[1]||(i[1]=d=>t.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:t.isReadonly,type:"text"},null,8,["modelValue","help","label","label-attributes","placeholder","readonly"])]),_:1},8,["description","hide-info-header","title"]),e.createVNode(e.unref(u.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(()=>[T.value?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",xe,[e.createElementVNode("div",Ee,[e.createVNode(C,{required:""},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(s)("gateway_services.form.sections.keys.checkedGroupLabel")),1)]),_:1})]),e.createElementVNode("div",Se,[e.createVNode(n,{modelValue:b.value,"onUpdate:modelValue":i[2]||(i[2]=d=>b.value=d),"data-testid":"gateway-service-url-radio","selected-value":$.url,onChange:Z},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(s)("gateway_services.form.sections.keys.urlLabel")),1)]),_:1},8,["modelValue","selected-value"])]),b.value==="url"?(e.openBlock(),e.createElementBlock("div",Te,[e.createVNode(y,{modelValue:t.fields.url,"onUpdate:modelValue":i[3]||(i[3]=d=>t.fields.url=d),modelModifiers:{trim:!0},class:"gateway-service-url-input gateway-service-form-margin-bottom","data-testid":"gateway-service-url-input",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:""},null,8,["modelValue","label","label-attributes","placeholder"])])):e.createCommentVNode("",!0),e.createVNode(n,{modelValue:b.value,"onUpdate:modelValue":i[4]||(i[4]=d=>b.value=d),"checked-group":"protocol","data-testid":"gateway-service-protocol-radio","selected-value":$.protocol,onChange:Z},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(s)("gateway_services.form.sections.keys.checkedGroupAltLabel")),1)]),_:1},8,["modelValue","selected-value"])])),b.value==="protocol"||T.value?(e.openBlock(),e.createElementBlock("div",Ie,[e.createVNode(f,{modelValue:t.fields.protocol,"onUpdate:modelValue":i[5]||(i[5]=d=>t.fields.protocol=d),"data-testid":"gateway-service-protocol-select",items:se,label:e.unref(s)("gateway_services.form.fields.protocol.label"),"label-attributes":{info:e.unref(s)("gateway_services.form.fields.protocol.tooltip"),tooltipAttributes:{maxWidth:"400"}},readonly:t.isReadonly,required:"",width:"100%",onSelected:i[6]||(i[6]=d=>v(t.fields.protocol,d))},null,8,["modelValue","label","label-attributes","readonly"]),e.createVNode(y,{modelValue:t.fields.host,"onUpdate:modelValue":i[7]||(i[7]=d=>t.fields.host=d),modelModifiers:{trim:!0},class:"gateway-service-form-margin-top","data-testid":"gateway-service-host-input",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:""},null,8,["modelValue","label","label-attributes","placeholder"]),Y.value?(e.openBlock(),e.createElementBlock("div",Pe,[e.createVNode(y,{modelValue:t.fields.path,"onUpdate:modelValue":i[8]||(i[8]=d=>t.fields.path=d),modelModifiers:{trim:!0},class:"gateway-service-form-margin-top","data-testid":"gateway-service-path-input",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")},null,8,["modelValue","label","label-attributes","placeholder"])])):e.createCommentVNode("",!0),e.createVNode(y,{modelValue:t.fields.port,"onUpdate:modelValue":[i[9]||(i[9]=d=>t.fields.port=d),i[10]||(i[10]=()=>{t.fields.port=P(t.fields.port+"")})],class:"gateway-service-form-margin-top","data-testid":"gateway-service-port-input",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"},null,8,["modelValue","label","label-attributes"])])):e.createCommentVNode("",!0),e.createVNode(w,{modelValue:k.value,"onUpdate:modelValue":i[24]||(i[24]=d=>k.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.createElementVNode("div",Be,[e.createElementVNode("div",Ue,[e.createVNode(y,{modelValue:t.fields.retries,"onUpdate:modelValue":[i[11]||(i[11]=d=>t.fields.retries=d),i[12]||(i[12]=()=>{t.fields.retries=P(t.fields.retries+"")})],autocomplete:"off","data-testid":"gateway-service-retries-input",label:e.unref(s)("gateway_services.form.fields.retries.label"),"label-attributes":{info:e.unref(s)("gateway_services.form.fields.retries.tooltip"),tooltipAttributes:{maxWidth:"400"}},name:"retries",readonly:t.isReadonly,type:"number"},null,8,["modelValue","label","label-attributes","readonly"])]),e.createElementVNode("div",Me,[e.createVNode(y,{modelValue:t.fields.connect_timeout,"onUpdate:modelValue":[i[13]||(i[13]=d=>t.fields.connect_timeout=d),i[14]||(i[14]=()=>{t.fields.connect_timeout=P(t.fields.connect_timeout+"")})],autocomplete:"off","data-testid":"gateway-service-connTimeout-input",label:e.unref(s)("gateway_services.form.fields.connect_timeout.label"),"label-attributes":{info:e.unref(s)("gateway_services.form.fields.connect_timeout.tooltip"),tooltipAttributes:{maxWidth:"400"}},name:"connTimeout",readonly:t.isReadonly,type:"number"},null,8,["modelValue","label","label-attributes","readonly"])]),e.createElementVNode("div",Re,[e.createVNode(y,{modelValue:t.fields.write_timeout,"onUpdate:modelValue":[i[15]||(i[15]=d=>t.fields.write_timeout=d),i[16]||(i[16]=()=>{t.fields.write_timeout=P(t.fields.write_timeout+"")})],autocomplete:"off","data-testid":"gateway-service-writeTimeout-input",label:e.unref(s)("gateway_services.form.fields.write_timeout.label"),"label-attributes":{info:e.unref(s)("gateway_services.form.fields.write_timeout.tooltip"),tooltipAttributes:{maxWidth:"400"}},name:"writeTimeout",readonly:t.isReadonly,type:"number"},null,8,["modelValue","label","label-attributes","readonly"])]),e.createElementVNode("div",De,[e.createVNode(y,{modelValue:t.fields.read_timeout,"onUpdate:modelValue":[i[17]||(i[17]=d=>t.fields.read_timeout=d),i[18]||(i[18]=()=>{t.fields.read_timeout=P(t.fields.read_timeout+"")})],autocomplete:"off","data-testid":"gateway-service-readTimeout-input",label:e.unref(s)("gateway_services.form.fields.read_timeout.label"),"label-attributes":{info:e.unref(s)("gateway_services.form.fields.read_timeout.tooltip"),tooltipAttributes:{maxWidth:"400"}},name:"readTimeout",readonly:t.isReadonly,type:"number"},null,8,["modelValue","label","label-attributes","readonly"])]),ae.value?(e.openBlock(),e.createElementBlock("div",$e,[e.createVNode(y,{modelValue:t.fields.client_certificate,"onUpdate:modelValue":i[19]||(i[19]=d=>t.fields.client_certificate=d),modelModifiers:{trim:!0},autocomplete:"off","data-testid":"gateway-service-clientCert-input",label:e.unref(s)("gateway_services.form.fields.client_certificate.label"),"label-attributes":{info:e.unref(s)("gateway_services.form.fields.client_certificate.tooltip"),tooltipAttributes:{maxWidth:"400"}},name:"clientCert",placeholder:e.unref(s)("gateway_services.form.fields.client_certificate.placeholder"),readonly:t.isReadonly,type:"text"},null,8,["modelValue","label","label-attributes","placeholder","readonly"])])):e.createCommentVNode("",!0),ne.value?(e.openBlock(),e.createElementBlock("div",Ae,[e.createVNode(y,{modelValue:t.fields.ca_certificates,"onUpdate:modelValue":i[20]||(i[20]=d=>t.fields.ca_certificates=d),modelModifiers:{trim:!0},autocomplete:"off","data-testid":"gateway-service-ca-certs-input",label:e.unref(s)("gateway_services.form.fields.ca_certificates.label"),"label-attributes":{tooltipAttributes:{maxWidth:"400"}},placeholder:e.unref(s)("gateway_services.form.fields.ca_certificates.placeholder"),readonly:t.isReadonly,type:"text"},{"label-tooltip":e.withCtx(()=>[e.createVNode(e.unref(B),{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","label","placeholder","readonly"])])):e.createCommentVNode("",!0),ce.value?(e.openBlock(),e.createElementBlock("div",Fe,[e.createVNode(l,{modelValue:t.fields.tls_verify_enabled,"onUpdate:modelValue":i[21]||(i[21]=d=>t.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(B),{keypath:"gateway_services.form.fields.tls_verify_enabled.tooltip",scope:"global"},{code1:e.withCtx(()=>[e.createElementVNode("code",null,e.toDisplayString(e.unref(s)("gateway_services.form.fields.tls_verify_enabled.code1")),1)]),_:1})]),_:1},8,["modelValue","description","label"]),t.fields.tls_verify_enabled?(e.openBlock(),e.createElementBlock("div",Ge,[e.createVNode(n,{modelValue:t.fields.tls_verify_value,"onUpdate:modelValue":i[22]||(i[22]=d=>t.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),t.fields.tls_verify_enabled?(e.openBlock(),e.createElementBlock("div",Le,[e.createVNode(n,{modelValue:t.fields.tls_verify_value,"onUpdate:modelValue":i[23]||(i[23]=d=>t.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},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-35e0db56"]]),Ke={class:"kong-ui-gateway-service-entity-config-card"},Oe=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 I=a,{i18n:{t:p},i18nT:c}=J.useI18n(),r=e.computed(()=>A.form[I.config.app].edit),{getPropValue:k}=u.useHelpers(),U=(s,V)=>k(s,V)===!0?p("gateway_services.form.fields.tls_verify_option.true.display"):p("gateway_services.form.fields.tls_verify_option.false.display"),B=e.ref({id:{},name:{tooltip:p("gateway_services.form.fields.name.tooltip")},enabled:{},updated_at:{},created_at:{},protocol:{section:u.ConfigurationSchemaSection.Basic,tooltip:p("gateway_services.form.fields.protocol.tooltip")},host:{section:u.ConfigurationSchemaSection.Basic,tooltip:p("gateway_services.form.fields.host.tooltip")},path:{section:u.ConfigurationSchemaSection.Basic,tooltip:p("gateway_services.form.fields.path.tooltip")},port:{section:u.ConfigurationSchemaSection.Basic,tooltip:p("gateway_services.form.fields.port.tooltip")},tags:{tooltip:p("gateway_services.form.fields.tags.tooltip")},retries:{order:1,tooltip:p("gateway_services.form.fields.retries.tooltip")},connect_timeout:{order:2,tooltip:p("gateway_services.form.fields.connect_timeout.tooltip")},write_timeout:{order:3,tooltip:p("gateway_services.form.fields.write_timeout.tooltip")},read_timeout:{order:4,tooltip:p("gateway_services.form.fields.read_timeout.tooltip")},client_certificate:{order:5,tooltip:p("gateway_services.form.fields.client_certificate.tooltip")},ca_certificates:{type:u.ConfigurationSchemaType.BadgeTag,label:p("gateway_services.form.fields.ca_certificates.label"),order:6},tls_verify:{label:p("gateway_services.form.fields.tls_verify_enabled.label")},tls_verify_depth:{hidden:!0}});return(s,V)=>(e.openBlock(),e.createElementBlock("div",Ke,[e.createVNode(e.unref(u.EntityBaseConfigCard),{config:a.config,"config-card-doc":a.configCardDoc,"config-schema":B.value,"entity-type":e.unref(u.SupportedEntityType).GatewayService,"fetch-url":r.value,"hide-title":a.hideTitle,"onFetch:error":V[0]||(V[0]=g=>s.$emit("fetch:error",g)),"onFetch:success":V[1]||(V[1]=g=>s.$emit("fetch:success",g)),onLoading:V[2]||(V[2]=g=>s.$emit("loading",g))},{"enabled-label-tooltip":e.withCtx(()=>[e.createVNode(e.unref(c),{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(c),{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(c),{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(g=>[e.createTextVNode(e.toDisplayString(typeof e.unref(k)("rowValue",g)=="boolean"?U("rowValue",g):e.unref(p)("gateway_services.form.fields.tls_verify_option.unset.display")),1)]),client_certificate:e.withCtx(g=>[e.createTextVNode(e.toDisplayString(e.unref(k)("rowValue",g)?e.unref(k)("rowValue",g).id:"–"),1)]),_:1},8,["config","config-card-doc","config-schema","entity-type","fetch-url","hide-title"])]))}});h.GatewayServiceConfigCard=Oe,h.GatewayServiceForm=qe,h.GatewayServiceList=ke,Object.defineProperty(h,Symbol.toStringTag,{value:"Module"})});
|
|
1
|
+
(function(v,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):(v=typeof globalThis<"u"?globalThis:v||self,e(v["kong-ui-public-entities-gateway-services"]={},v.Vue,v.VueRouter,v.KongIcons,v["kong-ui-public-i18n"],v["kong-ui-public-entities-shared"]))})(this,function(v,e,pe,ie,ue,p){"use strict";const ye={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 ge(){const a=ue.createI18n("en-us",ye);return{i18n:a,i18nT:ue.i18nTComponent(a)}}function _e(){return{getPortFromProtocol:(S,f)=>{const d=[80,443],r=Number(f);if((r||r===0)&&!d.includes(r))return r;switch(S){case"grpcs":case"tls":case"https":case"wss":return 443;case"grpc":case"tcp":case"http":case"ws":default:return 80}}}}const H={useI18n:ge,usePortFromProtocol:_e},J="/v2/control-planes/{controlPlaneId}/core-entities",Q="/{workspace}",F={list:{konnect:{all:`${J}/services`},kongManager:{all:`${Q}/services`}},form:{konnect:{create:`${J}/services`,validate:`${J}/v1/schemas/json/service/validate`,edit:`${J}/services/{id}`},kongManager:{create:`${Q}/services`,validate:`${Q}/schemas/services/validate`,edit:`${Q}/services/{id}`}}},be="#00abd2",we="24px",he={class:"kong-ui-entities-gateway-services-list"},Ve={class:"button-row"},ve={class:"empty-state-icon-gateway"},Ce={key:1},ke=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:S}){var b;const f=S,d=a,{i18n:{t:r,formatUnixTimeStamp:k}}=H.useI18n(),B=pe.useRouter(),{axiosInstance:I}=p.useAxios((b=d.config)==null?void 0:b.axiosRequestConfig),{hideTableToolbar:s,handleStateChange:C}=p.useTableState(()=>g.value),w=e.computed(()=>d.config.app!=="kongManager"||!!d.config.disableSorting),X={name:{label:r("gateway_services.list.table_headers.name"),searchable:!0,sortable:!0,hidable:!1},...d.config.showControlPlaneColumn?{control_plane:{label:r("gateway_services.list.table_headers.control_plane")}}:{},protocol:{label:r("gateway_services.list.table_headers.protocol"),searchable:!0,sortable:!0},host:{label:r("gateway_services.list.table_headers.host"),searchable:!0,sortable:!0},port:{label:r("gateway_services.list.table_headers.port"),searchable:!0,sortable:!0},path:{label:r("gateway_services.list.table_headers.path"),searchable:!0,sortable:!0},enabled:{label:r("gateway_services.list.table_headers.enabled"),searchable:!0,sortable:!0},tags:{label:r("gateway_services.list.table_headers.tags"),sortable:!1},updated_at:{label:r("gateway_services.list.table_headers.updated_at"),sortable:!0},created_at:{label:r("gateway_services.list.table_headers.created_at"),sortable:!0}},re={columnVisibility:{created_at:!1}},P=X,M=e.computed(()=>{var l,m;let n=`${d.config.apiBaseUrl}${F.list[d.config.app].all}`;return d.config.app==="konnect"?n=n.replace(/{controlPlaneId}/gi,((l=d.config)==null?void 0:l.controlPlaneId)||""):d.config.app==="kongManager"&&(n=n.replace(/\/{workspace}/gi,(m=d.config)!=null&&m.workspace?`/${d.config.workspace}`:"")),n}),R=e.computed(()=>d.config.apiBaseUrl.startsWith("/")?new URL(`${window.location.origin}${M.value}`):new URL(M.value)),g=e.ref(""),G=e.computed(()=>{const n=d.config.app==="konnect"||d.config.isExactMatch;if(n)return{isExactMatch:n,placeholder:r(`search.placeholder.${d.config.app}`)};const{name:l,enabled:m,protocol:c,host:A,port:N,path:le}=X;return{isExactMatch:n,fields:{name:l,enabled:m,protocol:c,host:A,port:N,path:le},schema:d.config.filterSchema}}),{fetcher:L,fetcherState:se,fetcherCacheKey:t}=p.useFetcher({...d.config,cacheIdentifier:d.cacheIdentifier},M.value),_=()=>{g.value=""},ae=()=>{t.value++},D=e.ref(null),Z=e.computed(()=>({ctaPath:d.config.createRoute,ctaText:V.value?d.isServerless?r("actions.serverless_create"):r("actions.create"):void 0,message:`${r("gateway_services.list.empty_state.description")}${d.config.additionMessageForEmptyState?` ${d.config.additionMessageForEmptyState}`:""}`,title:V.value?d.isServerless?r("gateway_services.list.empty_state.serverless_title"):r("gateway_services.list.empty_state.title"):r("gateway_services.title")})),q=e.ref(!1),h=e.ref(null),$=e.computed(()=>{const n={action:"disable",id:"",name:""};if(h.value){const{enabled:l,id:m,name:c}=h.value;n.action=l?"disable":"enable",n.id=m,n.name=c||m}return n}),Y=n=>{q.value=!0,h.value=n},K=()=>{q.value=!1,h.value=null},ne=async()=>{var c,A;if(!await((c=d.canEdit)==null?void 0:c.call(d,h.value))||!h.value)return;const l=`${R.value.href}/${h.value.id}`,m=!h.value.enabled;try{const{data:N}=((A=d.config)==null?void 0:A.app)==="konnect"?await I.put(l,{...h.value,enabled:m}):await I.patch(l,{...h.value,enabled:m});f("toggle:success",N),h.value.enabled=m}catch(N){f("error",N)}},ce=n=>{d.config.getControlPlaneRoute&&B.push(d.config.getControlPlaneRoute(n))},de=(n,l)=>{const m=n.id;if(!l(m)){f("copy:error",{entity:n,field:"id",message:r("errors.copy")});return}f("copy:success",{entity:n,field:"id",message:r("copy.success",{val:m})})},fe=(n,l)=>{const m=JSON.stringify(n);if(!l(m)){f("copy:error",{entity:n,message:r("errors.copy")});return}f("copy:success",{entity:n,message:r("copy.success_brief")})},O=async n=>{var m;await((m=d.canRetrieve)==null?void 0:m.call(d,n))&&B.push(d.config.getViewRoute(n.id))},ee=n=>({label:r("actions.view"),to:d.config.getViewRoute(n)}),te=n=>({label:r("actions.edit"),to:d.config.getEditRoute(n)}),E=e.ref(void 0),U=e.ref(!1),W=e.ref(!1),T=e.ref(""),j=p.useDeleteUrlBuilder(d.config,M.value),oe=n=>{E.value=n,U.value=!0,T.value=""},o=()=>{U.value=!1,E.value=void 0},i=async()=>{var n,l,m;if((n=E.value)!=null&&n.id){W.value=!0;try{await I.delete(j(E.value.id)),f("delete:success",E.value),o(),t.value++}catch(c){T.value=((m=(l=c.response)==null?void 0:l.data)==null?void 0:m.message)||c.message||r("errors.delete"),f("error",c)}finally{W.value=!1}}},y=()=>{B.push(d.config.createRoute)};e.watch(se,n=>{var l,m,c;if(n.status===p.FetcherStatus.Error){D.value={title:r("errors.general")},(c=(m=(l=n.error)==null?void 0:l.response)==null?void 0:m.data)!=null&&c.message&&(D.value.message=n.error.response.data.message),f("error",n.error);return}D.value=null});const V=e.ref(!1);return e.onBeforeMount(async()=>{V.value=await d.canCreate()}),(n,l)=>{const m=e.resolveComponent("KButton"),c=e.resolveComponent("KBadge"),A=e.resolveComponent("KInputSwitch"),N=e.resolveComponent("KDropdownItem"),le=e.resolveComponent("KClipboardProvider");return e.openBlock(),e.createElementBlock("div",he,[e.createVNode(e.unref(p.EntityBaseTable),{"cache-identifier":a.cacheIdentifier,"default-table-preferences":re,"disable-sorting":w.value,"empty-state-options":Z.value,"enable-entity-actions":"","error-message":D.value,fetcher:e.unref(L),"fetcher-cache-key":e.unref(t),"pagination-type":"offset","preferences-storage-key":"kong-ui-entities-gateway-services-list",query:g.value,"table-headers":e.unref(P),onClearSearchInput:_,"onClick:row":l[4]||(l[4]=u=>O(u)),onSort:ae,onState:e.unref(C)},e.createSlots({"toolbar-filter":e.withCtx(()=>[e.createVNode(e.unref(p.EntityFilter),{modelValue:g.value,"onUpdate:modelValue":l[0]||(l[0]=u=>g.value=u),config:G.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",Ve,[a.enableV2EmptyStates&&!e.unref(s)&&a.config.app==="konnect"?(e.openBlock(),e.createBlock(m,{key:0,appearance:"secondary",class:"open-learning-hub","data-testid":"gateway-services-learn-more-button",icon:"",onClick:l[1]||(l[1]=u=>n.$emit("click:learn-more"))},{default:e.withCtx(()=>[e.createVNode(e.unref(ie.BookIcon),{decorative:""})]),_:1})):e.createCommentVNode("",!0),e.createVNode(e.unref(p.PermissionsWrapper),{"auth-function":()=>a.canCreate()},{default:e.withCtx(()=>[e.createVNode(m,{appearance:"primary","data-testid":"toolbar-add-gateway-service",size:a.useActionOutside?"medium":"large",to:a.config.createRoute},{default:e.withCtx(()=>[e.createVNode(e.unref(ie.AddIcon)),e.createTextVNode(" "+e.toDisplayString(e.unref(r)("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 x;return[(x=u.x_meta)!=null&&x.cluster_id?(e.openBlock(),e.createBlock(c,{key:0,tooltip:u.x_meta.cluster_id,"truncation-tooltip":"",onClick:e.withModifiers(z=>ce(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",Ce,"-"))]}),enabled:e.withCtx(({row:u})=>[e.createVNode(e.unref(p.PermissionsWrapper),{"auth-function":()=>a.canEdit(u),"force-show":""},{default:e.withCtx(({isAllowed:x})=>[e.createElementVNode("div",{onClick:l[3]||(l[3]=e.withModifiers(()=>{},["stop"]))},[e.createVNode(A,{modelValue:u.enabled,"onUpdate:modelValue":z=>u.enabled=z,"data-testid":`row-${u.id}-toggle-input`,disabled:!x,onClick:e.withModifiers(z=>Y(u),["prevent"])},null,8,["modelValue","onUpdate:modelValue","data-testid","disabled","onClick"])])]),_:2},1032,["auth-function"])]),tags:e.withCtx(({rowValue:u})=>[e.createVNode(e.unref(p.TableTags),{tags:u},null,8,["tags"])]),created_at:e.withCtx(({rowValue:u})=>[e.createTextVNode(e.toDisplayString(e.unref(k)(u)),1)]),updated_at:e.withCtx(({row:u,rowValue:x})=>[e.createTextVNode(e.toDisplayString(e.unref(k)(x??u.created_at)),1)]),actions:e.withCtx(({row:u})=>[e.createVNode(le,null,{default:e.withCtx(({copyToClipboard:x})=>[e.createVNode(N,{"data-testid":"action-entity-copy-id",onClick:z=>de(u,x)},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(r)("actions.copy_id")),1)]),_:2},1032,["onClick"])]),_:2},1024),e.createVNode(le,null,{default:e.withCtx(({copyToClipboard:x})=>[e.createVNode(N,{"data-testid":"action-entity-copy-json",onClick:z=>fe(u,x)},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(r)("actions.copy_json")),1)]),_:2},1032,["onClick"])]),_:2},1024),e.createVNode(e.unref(p.PermissionsWrapper),{"auth-function":()=>a.canRetrieve(u)},{default:e.withCtx(()=>[e.createVNode(N,{"data-testid":"action-entity-view","has-divider":"",item:ee(u.id)},null,8,["item"])]),_:2},1032,["auth-function"]),e.createVNode(e.unref(p.PermissionsWrapper),{"auth-function":()=>a.canEdit(u)},{default:e.withCtx(()=>[e.createVNode(N,{"data-testid":"action-entity-edit",item:te(u.id)},null,8,["item"])]),_:2},1032,["auth-function"]),e.createVNode(e.unref(p.PermissionsWrapper),{"auth-function":()=>a.canDelete(u)},{default:e.withCtx(()=>[e.createVNode(N,{danger:"","data-testid":"action-entity-delete","has-divider":"",onClick:x=>oe(u)},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(r)("actions.delete.menu_label")),1)]),_:2},1032,["onClick"])]),_:2},1032,["auth-function"])]),_:2},[a.enableV2EmptyStates&&a.config.app==="konnect"?{name:"empty-state",fn:e.withCtx(()=>[e.createVNode(e.unref(p.EntityEmptyState),{"action-button-text":e.unref(r)("gateway_services.empty_state_v2.create"),appearance:"secondary","can-create":()=>a.canCreate(),description:e.unref(r)("gateway_services.empty_state_v2.description"),"learn-more":a.config.app==="konnect",title:e.unref(r)("gateway_services.empty_state_v2.title"),"onClick:create":y,"onClick:learnMore":l[2]||(l[2]=u=>n.$emit("click:learn-more"))},{image:e.withCtx(()=>[e.createElementVNode("div",ve,[e.createVNode(e.unref(ie.ServicesIcon),{color:e.unref(be),size:e.unref(we)},null,8,["color","size"])])]),_:1},8,["action-button-text","can-create","description","learn-more","title"])]),key:"0"}:void 0]),1032,["cache-identifier","disable-sorting","empty-state-options","error-message","fetcher","fetcher-cache-key","query","table-headers","onState"]),e.createVNode(e.unref(p.EntityToggleModal),{action:$.value.action,"entity-id":$.value.id,"entity-name":$.value.name,"entity-type":e.unref(r)("glossary.gateway_services"),"on-confirm":ne,visible:q.value,onCancel:K,onProceed:K},null,8,["action","entity-id","entity-name","entity-type","visible"]),e.createVNode(e.unref(p.EntityDeleteModal),{"action-pending":W.value,description:e.unref(r)("actions.delete.description"),"entity-name":E.value&&(E.value.name||E.value.id),"entity-type":e.unref(p.EntityTypes).GatewayService,error:T.value,title:e.unref(r)("actions.delete.title"),visible:U.value,onCancel:o,onProceed:i},null,8,["action-pending","description","entity-name","entity-type","error","title","visible"])])}}}),me=(a,S)=>{const f=a.__vccOpts||a;for(const[d,r]of S)f[d]=r;return f},Ne=me(ke,[["__scopeId","data-v-17e925aa"]]),xe={class:"kong-ui-entities-gateway-service-form"},Ee={key:0},Se={class:"gateway-service-form-traffic-label"},Te={class:"gateway-service-form-margin-bottom"},Ie={key:0,class:"gateway-service-form-group-fields"},Be={key:1,class:"gateway-service-form-group-fields"},Pe={key:0},Ue={class:"gateway-service-form-margin-top"},Me={class:"gateway-service-form-margin-bottom"},Re={class:"gateway-service-form-margin-bottom"},De={class:"gateway-service-form-margin-bottom"},$e={class:"gateway-service-form-margin-bottom"},Ae={key:0,class:"gateway-service-form-margin-bottom"},Fe={key:1,class:"gateway-service-form-margin-bottom"},Ge={key:2,class:"gateway-service-form-margin-bottom"},Le={key:0,class:"checkbox-aligned-radio"},qe={key:1,class:"checkbox-aligned-radio"},Ke=me(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}},emits:["update","error","url-valid:success","url-valid:error","loading","model-updated"],setup(a,{expose:S,emit:f}){var oe;const d=f,r=a,k=e.ref(!0),B=pe.useRouter(),{i18nT:I,i18n:{t:s}}=H.useI18n(),{getMessageFromError:C}=p.useErrors(),{axiosInstance:w}=p.useAxios((oe=r.config)==null?void 0:oe.axiosRequestConfig),X=p.useValidators(),re=e.computed(()=>F.form[r.config.app].edit),P=e.computed(()=>r.gatewayServiceId?p.EntityBaseFormType.Edit:p.EntityBaseFormType.Create),M=e.ref(!1),R=e.computed(()=>!!r.gatewayServiceId),g=e.ref(R.value?"protocol":"url"),G=H.usePortFromProtocol(),L=e.ref(""),se=e.computed(()=>!!L.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:""}),_=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:""}),ae=r.config.app==="konnect"||p.useGatewayFeatureSupported({gatewayInfo:r.config.gatewayInfo,supportedRange:{enterprise:["3.0"]}}),D=[{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"},...ae?[{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"}],Z={url:"url",protocol:"protocol"},q=(o,i)=>{i.value},h=o=>o?parseFloat(o):0,$=()=>{k.value=!0,t.errorMessage="",t.fields.host=_.host,t.fields.path=_.path,t.fields.port=_.port,t.fields.protocol=_.protocol,t.fields.url=_.url,t.fields.retries=_.retries,t.fields.connect_timeout=_.connect_timeout,t.fields.write_timeout=_.write_timeout,t.fields.read_timeout=_.read_timeout,t.fields.client_certificate=_.client_certificate,t.fields.ca_certificates=_.ca_certificates,t.fields.tls_verify_enabled=_.tls_verify_enabled,t.fields.tls_verify_value=_.tls_verify_value},Y=()=>{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 i=Number(o.port);M.value=!!i,t.fields.port=i||G.getPortFromProtocol(t.fields.protocol),t.errorMessage="",d("url-valid:success")}catch(o){t.errorMessage=s("errors.urlErrorMessage"),d("url-valid:error",C(o))}else d("url-valid:success"),t.errorMessage=""},K=e.computed(()=>!["tcp","tls","tls_passthrough","grpc","grpcs","udp"].includes(t.fields.protocol)),ne=e.computed(()=>{if(g.value==="url")return!0;const o=["https","wss","tls"].includes(t.fields.protocol);return g.value==="protocol"&&o}),ce=e.computed(()=>{if(g.value==="url")return!0;const o=["https","tls"].includes(t.fields.protocol);return g.value==="protocol"&&o}),de=e.computed(()=>{if(g.value==="url")return!0;const o=["https","wss","tls"].includes(t.fields.protocol);return g.value==="protocol"&&o}),fe=o=>{L.value=X.utf8Name(o)},O=e.computed(()=>R.value&&JSON.stringify(t.fields)!==JSON.stringify(_)||g.value==="url"&&!!t.fields.url||g.value==="protocol"&&!!t.fields.host),ee=o=>{var i,y,V;t.fields.name=(o==null?void 0:o.name)||"",t.fields.tags=((i=o==null?void 0:o.tags)==null?void 0:i.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=((y=o==null?void 0:o.ca_certificates)==null?void 0:y.join(","))||"",t.fields.client_certificate=((V=o==null?void 0:o.client_certificate)==null?void 0:V.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(_,t.fields)},te=()=>{B.push(r.config.cancelRoute)},E=e.computed(()=>{var i,y;let o=`${r.config.apiBaseUrl}${F.form[r.config.app].validate}`;return r.config.app==="konnect"?o=o.replace(/{controlPlaneId}/gi,((i=r.config)==null?void 0:i.controlPlaneId)||""):r.config.app==="kongManager"&&(o=o.replace(/\/{workspace}/gi,(y=r.config)!=null&&y.workspace?`/${r.config.workspace}`:"")),o=o.replace(/{id}/gi,r.gatewayServiceId),o}),U=e.computed(()=>{var i,y;let o=`${r.config.apiBaseUrl}${F.form[r.config.app][P.value]}`;return r.config.app==="konnect"?o=o.replace(/{controlPlaneId}/gi,((i=r.config)==null?void 0:i.controlPlaneId)||""):r.config.app==="kongManager"&&(o=o.replace(/\/{workspace}/gi,(y=r.config)!=null&&y.workspace?`/${r.config.workspace}`:"")),o=o.replace(/{id}/gi,r.gatewayServiceId),o}),W=o=>{let i="";o.url&&(i=new URL(o.url).protocol),(["https","wss","tls"].includes(o.protocol)||["https","wss","tls"].includes(i))&&(o.tls_verify=o.tls_verify_enabled?o.tls_verify_value:null),delete o.tls_verify_enabled,delete o.tls_verify_value},T=e.computed(()=>{var i,y,V,b;const o={name:t.fields.name||null,tags:t.fields.tags?(V=(y=(i=t.fields.tags)==null?void 0:i.split(","))==null?void 0:y.map(n=>String(n||"").trim()))==null?void 0:V.filter(n=>n!==""):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?(b=t.fields.ca_certificates)==null?void 0:b.split(",").filter(n=>n!==""):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),K.value||(o.path=null),P.value==="create"?g.value==="url"?(delete o.protocol,delete o.host,delete o.path,r.config.app==="konnect"&&delete o.port):delete o.url:P.value==="edit"&&delete o.url,o}),j=async()=>{var o,i,y,V;try{t.isReadonly=!0,Y();const b=T.value;W(b);let n;if(await w.post(E.value,b),P.value==="create"?n=await w.post(U.value,b):P.value==="edit"&&(n=((o=r.config)==null?void 0:o.app)==="konnect"?await w.put(U.value,b):await w.patch(U.value,b)),n){const{data:l}=n;t.fields.name=(l==null?void 0:l.name)||"",t.fields.port=l.port||G.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=((i=l==null?void 0:l.client_certificate)==null?void 0:i.id)||"",t.fields.ca_certificates=(y=l==null?void 0:l.ca_certificates)!=null&&y.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=(V=l==null?void 0:l.tags)!=null&&V.length?l.tags.join(", "):"",Object.assign(_,t.fields),d("update",n==null?void 0:n.data)}return n}catch(b){t.errorMessage=C(b),d("error",b)}finally{t.isReadonly=!1}};return e.watch(()=>r.gatewayServiceId,()=>{Object.assign(t.fields,_)}),e.watch(t.fields,o=>{t.fields.port=G.getPortFromProtocol(o.protocol,String(o.port)),d("model-updated",T.value)}),e.onMounted(()=>{d("model-updated",T.value)}),S({validateUrl:Y,getPayload:T,saveFormData:j,canSubmit:O,initForm:ee}),(o,i)=>{const y=e.resolveComponent("KInput"),V=e.resolveComponent("KLabel"),b=e.resolveComponent("KRadio"),n=e.resolveComponent("KSelect"),l=e.resolveComponent("KCheckbox"),m=e.resolveComponent("KCollapse");return e.openBlock(),e.createElementBlock("div",xe,[e.createVNode(e.unref(p.EntityBaseForm),{"can-submit":O.value,config:a.config,"edit-id":a.gatewayServiceId,"entity-type":e.unref(p.SupportedEntityType).GatewayService,"error-message":t.errorMessage,"fetch-url":re.value,"form-fields":T.value,"is-readonly":t.isReadonly,onCancel:te,"onFetch:error":i[25]||(i[25]=c=>o.$emit("error",c)),"onFetch:success":ee,onLoading:i[26]||(i[26]=c=>o.$emit("loading",c)),onSubmit:j},{"form-actions":e.withCtx(()=>[e.renderSlot(o.$slots,"form-actions",{canSubmit:O.value,cancel:te,submit:j},void 0,!0)]),default:e.withCtx(()=>[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:t.fields.name,"onUpdate:modelValue":i[0]||(i[0]=c=>t.fields.name=c),modelModifiers:{trim:!0},autocomplete:"off","data-testid":"gateway-service-name-input",error:se.value,"error-message":L.value,label:e.unref(s)("gateway_services.form.fields.name.label"),"label-attributes":{info:e.unref(s)("gateway_services.form.fields.name.tooltip"),tooltipAttributes:{maxWidth:"400"}},name:"name",placeholder:e.unref(s)("gateway_services.form.fields.name.placeholder"),readonly:t.isReadonly,type:"text",onInput:fe},null,8,["modelValue","error","error-message","label","label-attributes","placeholder","readonly"]),e.createVNode(y,{modelValue:t.fields.tags,"onUpdate:modelValue":i[1]||(i[1]=c=>t.fields.tags=c),modelModifiers:{trim:!0},autocomplete:"off","data-testid":"gateway-service-tags-input",help:e.unref(s)("gateway_services.form.fields.tags.help"),label:e.unref(s)("gateway_services.form.fields.tags.label"),"label-attributes":{info:e.unref(s)("gateway_services.form.fields.tags.tooltip"),tooltipAttributes:{maxWidth:"400"}},name:"tags",placeholder:e.unref(s)("gateway_services.form.fields.tags.placeholder"),readonly:t.isReadonly,type:"text"},null,8,["modelValue","help","label","label-attributes","placeholder","readonly"])]),_:1},8,["description","hide-info-header","title"]),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(()=>[R.value?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",Ee,[e.createElementVNode("div",Se,[e.createVNode(V,{required:""},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(s)("gateway_services.form.sections.keys.checkedGroupLabel")),1)]),_:1})]),e.createElementVNode("div",Te,[e.createVNode(b,{modelValue:g.value,"onUpdate:modelValue":i[2]||(i[2]=c=>g.value=c),"data-testid":"gateway-service-url-radio","selected-value":Z.url,onChange:$},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(s)("gateway_services.form.sections.keys.urlLabel")),1)]),_:1},8,["modelValue","selected-value"])]),g.value==="url"?(e.openBlock(),e.createElementBlock("div",Ie,[e.createVNode(y,{modelValue:t.fields.url,"onUpdate:modelValue":i[3]||(i[3]=c=>t.fields.url=c),modelModifiers:{trim:!0},class:"gateway-service-url-input gateway-service-form-margin-bottom","data-testid":"gateway-service-url-input",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:""},null,8,["modelValue","label","label-attributes","placeholder"])])):e.createCommentVNode("",!0),e.createVNode(b,{modelValue:g.value,"onUpdate:modelValue":i[4]||(i[4]=c=>g.value=c),"checked-group":"protocol","data-testid":"gateway-service-protocol-radio","selected-value":Z.protocol,onChange:$},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(s)("gateway_services.form.sections.keys.checkedGroupAltLabel")),1)]),_:1},8,["modelValue","selected-value"])])),g.value==="protocol"||R.value?(e.openBlock(),e.createElementBlock("div",Be,[e.createVNode(n,{modelValue:t.fields.protocol,"onUpdate:modelValue":i[5]||(i[5]=c=>t.fields.protocol=c),"data-testid":"gateway-service-protocol-select",items:D,label:e.unref(s)("gateway_services.form.fields.protocol.label"),"label-attributes":{info:e.unref(s)("gateway_services.form.fields.protocol.tooltip"),tooltipAttributes:{maxWidth:"400"}},readonly:t.isReadonly,required:"",width:"100%",onSelected:i[6]||(i[6]=c=>q(t.fields.protocol,c))},null,8,["modelValue","label","label-attributes","readonly"]),e.createVNode(y,{modelValue:t.fields.host,"onUpdate:modelValue":i[7]||(i[7]=c=>t.fields.host=c),modelModifiers:{trim:!0},class:"gateway-service-form-margin-top","data-testid":"gateway-service-host-input",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:""},null,8,["modelValue","label","label-attributes","placeholder"]),K.value?(e.openBlock(),e.createElementBlock("div",Pe,[e.createVNode(y,{modelValue:t.fields.path,"onUpdate:modelValue":i[8]||(i[8]=c=>t.fields.path=c),modelModifiers:{trim:!0},class:"gateway-service-form-margin-top","data-testid":"gateway-service-path-input",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")},null,8,["modelValue","label","label-attributes","placeholder"])])):e.createCommentVNode("",!0),e.createVNode(y,{modelValue:t.fields.port,"onUpdate:modelValue":[i[9]||(i[9]=c=>t.fields.port=c),i[10]||(i[10]=()=>{t.fields.port=h(t.fields.port+"")})],class:"gateway-service-form-margin-top","data-testid":"gateway-service-port-input",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"},null,8,["modelValue","label","label-attributes"])])):e.createCommentVNode("",!0),e.createVNode(m,{modelValue:k.value,"onUpdate:modelValue":i[24]||(i[24]=c=>k.value=c),"data-testid":"advanced-fields-collapse","trigger-alignment":"leading","trigger-label":e.unref(s)("gateway_services.form.sections.keys.viewAdvancedFields")},{default:e.withCtx(()=>[e.createElementVNode("div",Ue,[e.createElementVNode("div",Me,[e.createVNode(y,{modelValue:t.fields.retries,"onUpdate:modelValue":[i[11]||(i[11]=c=>t.fields.retries=c),i[12]||(i[12]=()=>{t.fields.retries=h(t.fields.retries+"")})],autocomplete:"off","data-testid":"gateway-service-retries-input",label:e.unref(s)("gateway_services.form.fields.retries.label"),"label-attributes":{info:e.unref(s)("gateway_services.form.fields.retries.tooltip"),tooltipAttributes:{maxWidth:"400"}},name:"retries",readonly:t.isReadonly,type:"number"},null,8,["modelValue","label","label-attributes","readonly"])]),e.createElementVNode("div",Re,[e.createVNode(y,{modelValue:t.fields.connect_timeout,"onUpdate:modelValue":[i[13]||(i[13]=c=>t.fields.connect_timeout=c),i[14]||(i[14]=()=>{t.fields.connect_timeout=h(t.fields.connect_timeout+"")})],autocomplete:"off","data-testid":"gateway-service-connTimeout-input",label:e.unref(s)("gateway_services.form.fields.connect_timeout.label"),"label-attributes":{info:e.unref(s)("gateway_services.form.fields.connect_timeout.tooltip"),tooltipAttributes:{maxWidth:"400"}},name:"connTimeout",readonly:t.isReadonly,type:"number"},null,8,["modelValue","label","label-attributes","readonly"])]),e.createElementVNode("div",De,[e.createVNode(y,{modelValue:t.fields.write_timeout,"onUpdate:modelValue":[i[15]||(i[15]=c=>t.fields.write_timeout=c),i[16]||(i[16]=()=>{t.fields.write_timeout=h(t.fields.write_timeout+"")})],autocomplete:"off","data-testid":"gateway-service-writeTimeout-input",label:e.unref(s)("gateway_services.form.fields.write_timeout.label"),"label-attributes":{info:e.unref(s)("gateway_services.form.fields.write_timeout.tooltip"),tooltipAttributes:{maxWidth:"400"}},name:"writeTimeout",readonly:t.isReadonly,type:"number"},null,8,["modelValue","label","label-attributes","readonly"])]),e.createElementVNode("div",$e,[e.createVNode(y,{modelValue:t.fields.read_timeout,"onUpdate:modelValue":[i[17]||(i[17]=c=>t.fields.read_timeout=c),i[18]||(i[18]=()=>{t.fields.read_timeout=h(t.fields.read_timeout+"")})],autocomplete:"off","data-testid":"gateway-service-readTimeout-input",label:e.unref(s)("gateway_services.form.fields.read_timeout.label"),"label-attributes":{info:e.unref(s)("gateway_services.form.fields.read_timeout.tooltip"),tooltipAttributes:{maxWidth:"400"}},name:"readTimeout",readonly:t.isReadonly,type:"number"},null,8,["modelValue","label","label-attributes","readonly"])]),ne.value?(e.openBlock(),e.createElementBlock("div",Ae,[e.createVNode(y,{modelValue:t.fields.client_certificate,"onUpdate:modelValue":i[19]||(i[19]=c=>t.fields.client_certificate=c),modelModifiers:{trim:!0},autocomplete:"off","data-testid":"gateway-service-clientCert-input",label:e.unref(s)("gateway_services.form.fields.client_certificate.label"),"label-attributes":{info:e.unref(s)("gateway_services.form.fields.client_certificate.tooltip"),tooltipAttributes:{maxWidth:"400"}},name:"clientCert",placeholder:e.unref(s)("gateway_services.form.fields.client_certificate.placeholder"),readonly:t.isReadonly,type:"text"},null,8,["modelValue","label","label-attributes","placeholder","readonly"])])):e.createCommentVNode("",!0),ce.value?(e.openBlock(),e.createElementBlock("div",Fe,[e.createVNode(y,{modelValue:t.fields.ca_certificates,"onUpdate:modelValue":i[20]||(i[20]=c=>t.fields.ca_certificates=c),modelModifiers:{trim:!0},autocomplete:"off","data-testid":"gateway-service-ca-certs-input",label:e.unref(s)("gateway_services.form.fields.ca_certificates.label"),"label-attributes":{tooltipAttributes:{maxWidth:"400"}},placeholder:e.unref(s)("gateway_services.form.fields.ca_certificates.placeholder"),readonly:t.isReadonly,type:"text"},{"label-tooltip":e.withCtx(()=>[e.createVNode(e.unref(I),{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","label","placeholder","readonly"])])):e.createCommentVNode("",!0),de.value?(e.openBlock(),e.createElementBlock("div",Ge,[e.createVNode(l,{modelValue:t.fields.tls_verify_enabled,"onUpdate:modelValue":i[21]||(i[21]=c=>t.fields.tls_verify_enabled=c),"data-testid":"gateway-service-tls-verify-checkbox",description:e.unref(s)("gateway_services.form.fields.tls_verify_enabled.help"),label:e.unref(s)("gateway_services.form.fields.tls_verify_enabled.label"),"label-attributes":{tooltipAttributes:{maxWidth:"400"}}},{tooltip:e.withCtx(()=>[e.createVNode(e.unref(I),{keypath:"gateway_services.form.fields.tls_verify_enabled.tooltip",scope:"global"},{code1:e.withCtx(()=>[e.createElementVNode("code",null,e.toDisplayString(e.unref(s)("gateway_services.form.fields.tls_verify_enabled.code1")),1)]),_:1})]),_:1},8,["modelValue","description","label"]),t.fields.tls_verify_enabled?(e.openBlock(),e.createElementBlock("div",Le,[e.createVNode(b,{modelValue:t.fields.tls_verify_value,"onUpdate:modelValue":i[22]||(i[22]=c=>t.fields.tls_verify_value=c),"data-testid":"gateway-service-tls-verify-true-option",label:e.unref(s)("gateway_services.form.fields.tls_verify_option.true.label"),"selected-value":!0},null,8,["modelValue","label"])])):e.createCommentVNode("",!0),t.fields.tls_verify_enabled?(e.openBlock(),e.createElementBlock("div",qe,[e.createVNode(b,{modelValue:t.fields.tls_verify_value,"onUpdate:modelValue":i[23]||(i[23]=c=>t.fields.tls_verify_value=c),"data-testid":"gateway-service-tls-verify-false-option",label:e.unref(s)("gateway_services.form.fields.tls_verify_option.false.label"),"selected-value":!1},null,8,["modelValue","label"])])):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0)])]),_:1},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-35e0db56"]]),Oe={class:"kong-ui-gateway-service-entity-config-card"},We=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 S=a,{i18n:{t:f},i18nT:d}=H.useI18n(),r=e.computed(()=>F.form[S.config.app].edit),{getPropValue:k}=p.useHelpers(),B=(s,C)=>k(s,C)===!0?f("gateway_services.form.fields.tls_verify_option.true.display"):f("gateway_services.form.fields.tls_verify_option.false.display"),I=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,C)=>(e.openBlock(),e.createElementBlock("div",Oe,[e.createVNode(e.unref(p.EntityBaseConfigCard),{config:a.config,"config-card-doc":a.configCardDoc,"config-schema":I.value,"entity-type":e.unref(p.SupportedEntityType).GatewayService,"fetch-url":r.value,"hide-title":a.hideTitle,"onFetch:error":C[0]||(C[0]=w=>s.$emit("fetch:error",w)),"onFetch:success":C[1]||(C[1]=w=>s.$emit("fetch:success",w)),onLoading:C[2]||(C[2]=w=>s.$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(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(d),{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(d),{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(w=>[e.createTextVNode(e.toDisplayString(typeof e.unref(k)("rowValue",w)=="boolean"?B("rowValue",w):e.unref(f)("gateway_services.form.fields.tls_verify_option.unset.display")),1)]),client_certificate:e.withCtx(w=>[e.createTextVNode(e.toDisplayString(e.unref(k)("rowValue",w)?e.unref(k)("rowValue",w).id:"–"),1)]),_:1},8,["config","config-card-doc","config-schema","entity-type","fetch-url","hide-title"])]))}});v.GatewayServiceConfigCard=We,v.GatewayServiceForm=Ke,v.GatewayServiceList=Ne,Object.defineProperty(v,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-d15be7fe]{color:#000933;font-size:16px;font-weight:600;margin-bottom:16px;margin-top:48px}.kong-ui-entity-base-config-card .config-card-actions[data-v-7ef5c755]{align-items:center;display:flex}.kong-ui-entity-base-config-card .config-card-actions .config-format-select-label[data-v-7ef5c755]{margin-bottom:0;margin-right:8px}.kong-ui-entity-base-config-card .config-card-prop-section-title[data-v-7ef5c755]{color:#000933;font-size:16px;font-weight:600;margin-bottom:16px;margin-top:48px}.kong-ui-entity-base-config-card[data-v-7ef5c755] .config-card-details-row:last-of-type{border-bottom:none}.kong-ui-entity-base-config-card .book-icon[data-v-7ef5c755]{margin-left:8px;padding:0}.kong-ui-entity-base-form[data-v-6210a67a]{box-sizing:border-box;max-width:1536px;width:100%}.kong-ui-entity-base-form .form-actions[data-v-6210a67a]{align-items:center;display:flex;justify-content:flex-end;margin-top:24px}.kong-ui-entity-base-form .form-actions[data-v-6210a67a] .k-button:last-of-type,.kong-ui-entity-base-form .form-actions[data-v-6210a67a] .k-button:nth-last-of-type(2){margin-left:16px}.kong-ui-entity-base-form[data-v-6210a67a] .k-slideout-title{color:#000933!important;font-size:24px!important;font-weight:700!important;line-height:32px!important;margin-bottom:16px!important}.kong-ui-entity-base-form[data-v-6210a67a] .k-card.content-card{padding:0 16px!important}.kong-ui-entity-base-form[data-v-6210a67a] .tab-item>div.tab-link.has-panels{color:#6c7489!important;font-size:14px!important;font-weight:700!important;line-height:24px!important}.kong-ui-entity-base-form[data-v-6210a67a] .tab-item.active>div.tab-link.has-panels{color:#000933!important;font-weight:600!important}.content-wrapper[data-v-b252463e] .k-tooltip{word-break:break-all}.kong-ui-entity-base-table .toolbar-container[data-v-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-3b1bbe9d]{align-items:center;display:flex;gap:12px}.kong-ui-entities-gateway-services-list[data-v-3b1bbe9d]{width:100%}.kong-ui-entities-gateway-services-list .kong-ui-entity-filter-input[data-v-3b1bbe9d]{margin-right:12px}.kong-ui-entities-gateway-service-form[data-v-35e0db56]{width:100%}.kong-ui-entities-gateway-service-form[data-v-35e0db56] .k-tooltip{max-width:300px}.kong-ui-entities-gateway-service-form .gateway-service-form-margin-top[data-v-35e0db56]{margin-top:16px}.kong-ui-entities-gateway-service-form .gateway-service-form-traffic-label[data-v-35e0db56]{margin-bottom:16px}.kong-ui-entities-gateway-service-form .gateway-service-url-input[data-v-35e0db56],.kong-ui-entities-gateway-service-form .gateway-service-url-input[data-v-35e0db56] .input-element-wrapper{display:flex}.kong-ui-entities-gateway-service-form .gateway-service-form-group-fields[data-v-35e0db56]{margin-left:24px}.kong-ui-entities-gateway-service-form .gateway-service-form-margin-bottom[data-v-35e0db56]{margin-bottom:16px}.kong-ui-entities-gateway-service-form .checkbox-aligned-radio[data-v-35e0db56]{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-d15be7fe]{color:#000933;font-size:16px;font-weight:600;margin-bottom:16px;margin-top:48px}.kong-ui-entity-base-config-card .config-card-actions[data-v-7ef5c755]{align-items:center;display:flex}.kong-ui-entity-base-config-card .config-card-actions .config-format-select-label[data-v-7ef5c755]{margin-bottom:0;margin-right:8px}.kong-ui-entity-base-config-card .config-card-prop-section-title[data-v-7ef5c755]{color:#000933;font-size:16px;font-weight:600;margin-bottom:16px;margin-top:48px}.kong-ui-entity-base-config-card[data-v-7ef5c755] .config-card-details-row:last-of-type{border-bottom:none}.kong-ui-entity-base-config-card .book-icon[data-v-7ef5c755]{margin-left:8px;padding:0}.kong-ui-entity-base-form[data-v-6210a67a]{box-sizing:border-box;max-width:1536px;width:100%}.kong-ui-entity-base-form .form-actions[data-v-6210a67a]{align-items:center;display:flex;justify-content:flex-end;margin-top:24px}.kong-ui-entity-base-form .form-actions[data-v-6210a67a] .k-button:last-of-type,.kong-ui-entity-base-form .form-actions[data-v-6210a67a] .k-button:nth-last-of-type(2){margin-left:16px}.kong-ui-entity-base-form[data-v-6210a67a] .k-slideout-title{color:#000933!important;font-size:24px!important;font-weight:700!important;line-height:32px!important;margin-bottom:16px!important}.kong-ui-entity-base-form[data-v-6210a67a] .k-card.content-card{padding:0 16px!important}.kong-ui-entity-base-form[data-v-6210a67a] .tab-item>div.tab-link.has-panels{color:#6c7489!important;font-size:14px!important;font-weight:700!important;line-height:24px!important}.kong-ui-entity-base-form[data-v-6210a67a] .tab-item.active>div.tab-link.has-panels{color:#000933!important;font-weight:600!important}.content-wrapper[data-v-b252463e] .k-tooltip{word-break:break-all}.kong-ui-entity-base-table .toolbar-container[data-v-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-17e925aa]{align-items:center;display:flex;gap:12px}.kong-ui-entities-gateway-services-list[data-v-17e925aa]{width:100%}.kong-ui-entities-gateway-services-list .kong-ui-entity-filter-input[data-v-17e925aa]{margin-right:12px}.kong-ui-entities-gateway-service-form[data-v-35e0db56]{width:100%}.kong-ui-entities-gateway-service-form[data-v-35e0db56] .k-tooltip{max-width:300px}.kong-ui-entities-gateway-service-form .gateway-service-form-margin-top[data-v-35e0db56]{margin-top:16px}.kong-ui-entities-gateway-service-form .gateway-service-form-traffic-label[data-v-35e0db56]{margin-bottom:16px}.kong-ui-entities-gateway-service-form .gateway-service-url-input[data-v-35e0db56],.kong-ui-entities-gateway-service-form .gateway-service-url-input[data-v-35e0db56] .input-element-wrapper{display:flex}.kong-ui-entities-gateway-service-form .gateway-service-form-group-fields[data-v-35e0db56]{margin-left:24px}.kong-ui-entities-gateway-service-form .gateway-service-form-margin-bottom[data-v-35e0db56]{margin-bottom:16px}.kong-ui-entities-gateway-service-form .checkbox-aligned-radio[data-v-35e0db56]{margin:4px;padding-left:24px}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"GatewayServiceList.vue.d.ts","sourceRoot":"","sources":["../../../src/components/GatewayServiceList.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"GatewayServiceList.vue.d.ts","sourceRoot":"","sources":["../../../src/components/GatewayServiceList.vue"],"names":[],"mappings":"AA+oBA,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;;IAioCrD,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"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kong-ui-public/entities-gateway-services",
|
|
3
|
-
"version": "3.9.3-pr.
|
|
3
|
+
"version": "3.9.3-pr.1961.7adb6d5bc.0",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"main": "./dist/entities-gateway-services.umd.js",
|
|
6
6
|
"module": "./dist/entities-gateway-services.es.js",
|
|
@@ -21,22 +21,22 @@
|
|
|
21
21
|
"access": "public"
|
|
22
22
|
},
|
|
23
23
|
"peerDependencies": {
|
|
24
|
-
"@kong/icons": "^1.
|
|
25
|
-
"@kong/kongponents": "^9.
|
|
24
|
+
"@kong/icons": "^1.21.1",
|
|
25
|
+
"@kong/kongponents": "^9.21.5",
|
|
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.17.1-pr.
|
|
29
|
+
"@kong-ui-public/entities-shared": "^3.17.1-pr.1961.7adb6d5bc.0",
|
|
30
30
|
"@kong-ui-public/i18n": "^2.2.10"
|
|
31
31
|
},
|
|
32
32
|
"devDependencies": {
|
|
33
33
|
"@kong/design-tokens": "1.17.2",
|
|
34
|
-
"@kong/icons": "^1.
|
|
35
|
-
"@kong/kongponents": "9.
|
|
34
|
+
"@kong/icons": "^1.21.1",
|
|
35
|
+
"@kong/kongponents": "9.21.5",
|
|
36
36
|
"axios": "^1.7.7",
|
|
37
37
|
"vue": "^3.5.12",
|
|
38
38
|
"vue-router": "^4.4.5",
|
|
39
|
-
"@kong-ui-public/entities-shared": "^3.17.1-pr.
|
|
39
|
+
"@kong-ui-public/entities-shared": "^3.17.1-pr.1961.7adb6d5bc.0",
|
|
40
40
|
"@kong-ui-public/i18n": "^2.2.10"
|
|
41
41
|
},
|
|
42
42
|
"repository": {
|