@kong-ui-public/entities-upstreams-targets 3.7.23 → 3.7.24
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.
|
@@ -1255,7 +1255,7 @@ const ce = {
|
|
|
1255
1255
|
for (const [l, h] of R)
|
|
1256
1256
|
i[l] = h;
|
|
1257
1257
|
return i;
|
|
1258
|
-
}, Ya = /* @__PURE__ */ de(na, [["__scopeId", "data-v-
|
|
1258
|
+
}, Ya = /* @__PURE__ */ de(na, [["__scopeId", "data-v-308f2db3"]]), Se = "/v2/control-planes/{controlPlaneId}/core-entities", Ie = "/{workspace}", Ue = {
|
|
1259
1259
|
list: {
|
|
1260
1260
|
konnect: `${Se}/upstreams/{upstreamId}/targets`,
|
|
1261
1261
|
kongManager: `${Ie}/upstreams/{upstreamId}/targets`
|
|
@@ -1452,7 +1452,7 @@ const ce = {
|
|
|
1452
1452
|
}, 8, ["action-button-disabled", "action-button-text", "cancel-button-text", "title", "visible"]);
|
|
1453
1453
|
};
|
|
1454
1454
|
}
|
|
1455
|
-
}), pa = /* @__PURE__ */ de(da, [["__scopeId", "data-v-
|
|
1455
|
+
}), pa = /* @__PURE__ */ de(da, [["__scopeId", "data-v-b5bbee74"]]), ma = { class: "kong-ui-entities-targets-list" }, fa = { class: "target-address" }, ya = /* @__PURE__ */ oe({
|
|
1456
1456
|
__name: "TargetsList",
|
|
1457
1457
|
props: {
|
|
1458
1458
|
/** The base konnect or kongManger config. Pass additional config props in the shared entity component as needed. */
|
|
@@ -1780,7 +1780,7 @@ const ce = {
|
|
|
1780
1780
|
]);
|
|
1781
1781
|
};
|
|
1782
1782
|
}
|
|
1783
|
-
}), el = /* @__PURE__ */ de(ya, [["__scopeId", "data-v-
|
|
1783
|
+
}), el = /* @__PURE__ */ de(ya, [["__scopeId", "data-v-b3ffee85"]]), ga = { key: 1 }, ba = /* @__PURE__ */ oe({
|
|
1784
1784
|
__name: "UpstreamsFormGeneralInfo",
|
|
1785
1785
|
props: {
|
|
1786
1786
|
config: {
|
|
@@ -3266,7 +3266,7 @@ const ce = {
|
|
|
3266
3266
|
}, 8, ["can-submit", "config", "edit-id", "entity-type", "error-message", "fetch-url", "form-fields", "is-readonly"])
|
|
3267
3267
|
]));
|
|
3268
3268
|
}
|
|
3269
|
-
}), tl = /* @__PURE__ */ de(Qa, [["__scopeId", "data-v-
|
|
3269
|
+
}), tl = /* @__PURE__ */ de(Qa, [["__scopeId", "data-v-5c16ff6d"]]), Wa = { "data-testid": "client_certificate-plain-text" }, al = /* @__PURE__ */ oe({
|
|
3270
3270
|
__name: "UpstreamsConfigCard",
|
|
3271
3271
|
props: {
|
|
3272
3272
|
/** The base konnect or kongManger config. Pass additional config props in the shared entity component as needed. */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(L,e){typeof exports=="object"&&typeof module<"u"?e(exports,require("vue"),require("@kong-ui-public/entities-shared"),require("vue-router"),require("@kong/icons"),require("@kong-ui-public/i18n")):typeof define=="function"&&define.amd?define(["exports","vue","@kong-ui-public/entities-shared","vue-router","@kong/icons","@kong-ui-public/i18n"],e):(L=typeof globalThis<"u"?globalThis:L||self,e(L["kong-ui-entities-upstreams-targets"]={},L.Vue,L["kong-ui-public-entities-shared"],L.VueRouter,L.KongIcons,L["kong-ui-public-i18n"]))})(this,function(L,e,p,we,ee,Ve){"use strict";const Ye={upstreams:{list:{table_headers:{id:"ID",name:"Name",slots:"Slots",tags:"Tags"},empty_state:{title:"Configure a New Upstream",description:"Upstreams are used to load balance incoming requests."},empty_state_v2:{title:"Configure your first upstream",description:"Upstreams route traffic to multiple backend services, handling load balancing, health checks, and circuit breaking for reliability.",create_cta:"New upstream",group:"Upstreams created in gateways within this group will automatically appear here."},toolbar_actions:{new_upstream:"New upstream"}},title:"Upstreams",search:{placeholder:"Filter by exact name or ID"},actions:{create:"New upstream",copy_id:"Copy ID",copy_json:"Copy JSON",edit:"Edit",delete:"Delete",view:"View Details"},delete:{title:"Delete an Upstream",description:"This action cannot be reversed so make sure to check upstream usage before deleting."},errors:{general:"Upstreams could not be retrieved",delete:"The upstream could not be deleted at this time.",copy:"Failed to copy to clipboard"},copy:{success:"Copied {val} to clipboard",success_brief:"Successfully copied to clipboard"},form:{errors:{name_required:"Name is required",should_be_integer:"Field should contain an integer",in_range:"Accepts an integer in the range of 10 - 65536"},general_info:{title:"General Information",help:"General information will help identify and manage this Upstream."},load_balancing:{title:"Load Balancing",help:"Active health checks actively probe targets for their health. Currently only support HTTP/HTTPS targets."},health_check:{title:"Health Checks & Circuit Breakers",help:"Active health checks actively probe targets for their health. Currently only support HTTP/HTTPS targets."},active_health_check:{title:"Active Health Checks",help:"Active health checks actively probe targets for their health. Currently only support HTTP/HTTPS targets."},passive_health_check:{title:"Passive Health Checks",help:"Passive health checks, also known as circuit breakers, are checks performed based on the requests being proxied by Kong (HTTP/HTTPS/TCP), with no additional traffic being generated."},buttons:{view_documentation:"View documentation"},algorithms:{round_robin_label:"Round Robin",least_connections_label:"Least Connections",consistent_hashing_label:"Consistent Hashing",latency_label:"Latency"},hash_labels:{none:"None",consumer:"Consumer",ip:"IP",header:"Header",cookie:"Cookie",path:"Path",query_argument:"Query Argument",uri_capture:"URI Capture"},hash_tooltips:{hash_on_header:{text:"The header name to take the value from as hash input. Only required when {hash_on} is set to {header}",hash_on:"hash_on",header:"header"},hash_on_uri_capture:{text:"The name of the route URI capture to take the value from as hash input. Only required when {hash_on} is set to {uri_capture}",hash_on:"hash_on",uri_capture:"uri_capture"},hash_on_query_arg:{text:"The name of the query string argument to take the value from as hash input. Only required when {hash_on} is set to {query_arg}",hash_on:"hash_on",query_arg:"query_arg"},hash_on_cookie:{text:"The cookie name to take the value from as hash input. Only required when {hash_on} or {hash_fallback} is set to {cookie}. If the specified cookie is not in the request, Kong will generate a value and set the cookie in the response.",hash_on:"hash_on",hash_fallback:"hash_fallback",cookie:"cookie"},hash_on_cookie_path:{text:"The cookie path to set in the response headers. Only required when {hash_on} or {hash_fallback} is set to {cookie}.",hash_on:"hash_on",hash_fallback:"hash_fallback",cookie:"cookie"},slots:{text:"The number of slots in the load balancer algorithm. If {algorithm} is set to {round_robin}, this setting determines the maximum number of slots. If {algorithm} is set to {consistent_hashing}, this setting determines the actual number of slots in the algorithm. Accepts an integer in the range {min}-{max}",algorithm:"algorithm",round_robin:"round-robin",consistent_hashing:"consistent-hashing"},tags:"An optional set of strings associated with the Upstream for grouping and filtering.",hash_fallback:{text:"What to use as hashing input if the primary {hash_on} does not return a hash (eg. header is missing, or no Consumer identified). Not available if {hash_on} is set to {cookie}",hash_on:"hash_on",cookie:"cookie"},hash_fallback_header:{text:"The header name to take the value from as hash input. Only required when {hash_fallback} is set to {header}",hash_fallback:"hash_fallback",header:"header"},hash_fallback_query_arg:{text:"The name of the query string argument to take the value from as hash input. Only required when {hash_fallback} is set to {query_arg}",hash_fallback:"hash_fallback",query_arg:"query_arg"},hash_fallback_uri_capture:{text:"The name of the route URI capture to take the value from as hash input. Only required when {hash_fallback} is set to {uri_capture}",hash_fallback:"hash_fallback",uri_capture:"uri_capture"},host_header:{text:"The hostname to be used as {host} header when proxying requests through Kong.",host:"Host"},client_certificate:"If set, the certificate to be used as client certificate while TLS handshaking to the upstream server."},healthcheck_type_labels:{http:"HTTP",https:"HTTPS",tcp:"TCP",grsp:"gRPC",grsps:"gRPCs"},healthy:{label:"Healthy",help:"The counter thresholds to determine whether targets are healthy."},unhealthy:{label:"Unhealthy",help:"The counter thresholds to determine whether targets are unhealthy."},passive_healthy:{label:"Healthy",help:"The counter thresholds to determine whether targets are healthy."},passive_unhealthy:{label:"Unhealthy",help:"The counter thresholds to determine whether targets are unhealthy."},fields:{name:{label:"Name",placeholder:"Enter or select a host",tooltip:"This is a hostname, which must be equal to the {host} of a Service.",host:"host"},host_header:{label:"Host Header"},client_certificate:{label:"Client Certificate",placeholder:"Select or enter a Certificate ID",tooltip:"If set, the certificate to be used as client certificate while TLS handshaking to the upstream server."},tags:{label:"Tags",placeholder:"Enter a list of tags separated by comma",help:"e.g. tag1, tag2, tag3",tooltip:"An optional set of strings associated with the Upstream for grouping and filtering."},algorithm:{label:"Algorithm",tooltip:"Which load balancing algorithm to use."},slots:{label:"Slots",help:"Accepts an integer in the range of 10 - 65536"},hash_on:{label:"Hash on",help:"What to use as hashing input.",tooltip:"What to use as hashing input. Using {result} results in a weighted-round-robin scheme with no hashing."},hash_fallback:{label:"Hash Fallback",help:"What to use as hashing input if the primary hash_on does not return a hash",tooltip:"What to use as hashing input if the primary {hash_on} does not return a hash (eg. header is missing, or no Consumer identified). Not available if {hash_on} is set to {cookie}.",hash_on:"hash_on",cookie:"cookie"},active_health_checks:{label:"Active Health Checks",help:"Actively probe the targets for their health."},passive_health_checks:{label:"Passive Health Checks / Circuit Breakers",help:"Checks performed based on the requests being proxied by Kong (HTTP/HTTPS/TCP), with no additional traffic being generated."},healthchecks_threshold:{label:"Healthchecks Threshold"},header:{label:"Header"},headers:{label:"Headers",tooltip_active:"Header values can be separated by commas (value1, value2, value3)."},cookie:{label:"Cookie"},cookie_path:{label:"Cookie Path"},query_argument:{label:"Query Argument"},uri_capture:{label:"URI Capture"},active_healthcheck_type:{label:"Active Health Check Type"},http_path:{label:"HTTP Path"},timeout:{label:"Timeout"},concurrency:{label:"Concurrency"},https_sni:{label:"HTTPS SNI"},verify_ssl:{label:"Verify the SSL certificate when performing active health checks using HTTPS"},interval:{label:"Interval",help:"A value of zero indicates that active probes for healthy targets are disabled."},successes:{label:"Successes"},http_statuses:{label:"HTTP Statuses"},http_failures:{label:"HTTP Failures"},tcp_failures:{label:"TCP Failures"},timeouts:{label:"Timeouts"},passive_health_check_type:{label:"Passive Health Check Type"}}},labels:{created_at:"Created at"}},targets:{list:{table_headers:{id:"ID",target_address:"Target Address",weight:"Weight",tags:"Tags"},empty_state:{title:"Configure a New Target",description:"A target is an IP address/hostname with a port that identifies an instance of a backend service."},toolbar_actions:{new_target:"New Target"}},title:"Targets",actions:{create:"New Target",copy_id:"Copy ID",copy_json:"Copy JSON",edit:"Edit",delete:"Delete",mark_healthy:"Mark Healthy",mark_unhealthy:"Mark Unhealthy"},delete:{title:"Delete a Target",description:"This action cannot be reversed so make sure to check target usage before deleting."},errors:{general:"Targets could not be retrieved",delete:"The target could not be deleted at this time.",copy:"Failed to copy to clipboard",weight:"Value must be in range 0 to 65535"},copy:{success:"Copied {val} to clipboard",success_brief:"Successfully copied to clipboard"},form:{create:{title:"New Target"},edit:{title:"Edit Target"},buttons:{save:"Save",cancel:"Cancel"},fields:{target:{label:"Target Address",placeholder:"Enter IP/hostname and port",tooltip:"The target address (IP or hostname) and port. If omitted the port defaults to 8000."},weight:{label:"Weight",tooltip:"The weight of this target in relation to other targets in the upstream. Value must be in range 0 to 65535, defaults to 100."},tags:{label:"Tags",placeholder:"Enter a list of tags separated by comma",help:"e.g. tag1, tag2, tag3"}}}}};function et(){const a=Ve.createI18n("en-us",Ye);return{i18n:a,i18nT:Ve.i18nTComponent(a)}}function oe(a){const{replaceId:B=!1}=a,r=e.ref([]);return{addedItems:r,trackNewItems:(n,g)=>{if(g){const b={...n};B&&(b.value=n.label),r.value.push(b)}else r.value=r.value.filter(b=>b.value!==n.value)}}}const ie=[{label:"100",value:"100"},{label:"101",value:"101"},{label:"102",value:"102"},{label:"103",value:"103"},{label:"200",value:"200"},{label:"201",value:"201"},{label:"202",value:"202"},{label:"203",value:"203"},{label:"204",value:"204"},{label:"205",value:"205"},{label:"206",value:"206"},{label:"207",value:"207"},{label:"208",value:"208"},{label:"226",value:"226"},{label:"300",value:"300"},{label:"301",value:"301"},{label:"302",value:"302"},{label:"303",value:"303"},{label:"304",value:"304"},{label:"305",value:"305"},{label:"306",value:"306"},{label:"307",value:"307"},{label:"308",value:"308"},{label:"400",value:"400"},{label:"401",value:"401"},{label:"402",value:"402"},{label:"403",value:"403"},{label:"404",value:"404"},{label:"405",value:"405"},{label:"406",value:"406"},{label:"407",value:"407"},{label:"408",value:"408"},{label:"409",value:"409"},{label:"410",value:"410"},{label:"411",value:"411"},{label:"412",value:"412"},{label:"413",value:"413"},{label:"414",value:"414"},{label:"415",value:"415"},{label:"416",value:"416"},{label:"417",value:"417"},{label:"418",value:"418"},{label:"419",value:"419"},{label:"420",value:"420"},{label:"421",value:"421"},{label:"422",value:"422"},{label:"423",value:"423"},{label:"424",value:"424"},{label:"425",value:"425"},{label:"426",value:"426"},{label:"428",value:"428"},{label:"429",value:"429"},{label:"430",value:"430"},{label:"431",value:"431"},{label:"440",value:"440"},{label:"444",value:"444"},{label:"449",value:"449"},{label:"450",value:"450"},{label:"451",value:"451"},{label:"460",value:"460"},{label:"463",value:"463"},{label:"494",value:"494"},{label:"495",value:"495"},{label:"496",value:"496"},{label:"497",value:"497"},{label:"498",value:"498"},{label:"499",value:"499"},{label:"500",value:"500"},{label:"501",value:"501"},{label:"502",value:"502"},{label:"503",value:"503"},{label:"504",value:"504"},{label:"505",value:"505"},{label:"506",value:"506"},{label:"507",value:"507"},{label:"508",value:"508"},{label:"509",value:"509"},{label:"510",value:"510"},{label:"511",value:"511"},{label:"520",value:"520"},{label:"521",value:"521"},{label:"522",value:"522"},{label:"523",value:"523"},{label:"524",value:"524"},{label:"525",value:"525"},{label:"526",value:"526"},{label:"527",value:"527"},{label:"529",value:"529"},{label:"530",value:"530"},{label:"561",value:"561"},{label:"598",value:"598"},{label:"599",value:"599"}],ke=10,Ce=65536,tt=0,at=65535,te=0,ae=255,Ne=0,xe=255,lt=0,st=65535,Se=0,He=65535,rt=0,ot=2**31,he=["200","302"],ce=["200","201","202","203","204","205","206","207","208","226","300","301","302","303","304","305","306","307","308"],de=["429","404","500","501","502","503","504","505"],ue=["429","500","503"];function pe(){const a=s=>/^\d+$/.test(s),B=(s,h,_)=>{if(a(s)){const u=Number(s);return u>=h&&u<=_}else return!1},r=s=>s.map(h=>Number(h)),l=s=>s.map(h=>h.toString()),n=s=>{var _,u,t,E,w,d,V,R,T,A,M,m,N,H,U,f,$,D,j,J,I,F,K,z,Q,W,k,q,y,C,c,o,i,x,P,G,v,Y,ne,be,Ie,Ue,Fe,qe,Ee,Be,Oe,De,$e,Pe,Me,Ae,Ke,Re,je,Le,Qe,We,Je,ze,Ge,ve,Xe,Ze;return{name:(s==null?void 0:s.name)||"",hostHeader:(s==null?void 0:s.host_header)||"",clientCertificate:((_=s==null?void 0:s.client_certificate)==null?void 0:_.id)||"",tags:((u=s==null?void 0:s.tags)==null?void 0:u.join(", "))||"",algorithm:(s==null?void 0:s.algorithm)||"round-robin",slots:((t=s==null?void 0:s.slots)==null?void 0:t.toString())||"10000",hashOn:(s==null?void 0:s.hash_on)||"none",hashFallback:(s==null?void 0:s.hash_fallback)||"none",hashOnHeader:(s==null?void 0:s.hash_on_header)||"",hashOnCookie:(s==null?void 0:s.hash_on_cookie)||"",hashOnCookiePath:(s==null?void 0:s.hash_on_cookie_path)||"/",hashOnQueryArgument:(s==null?void 0:s.hash_on_query_arg)||"",hashOnUriCapture:(s==null?void 0:s.hash_on_uri_capture)||"",hashFallbackHeader:(s==null?void 0:s.hash_fallback_header)||"",hashFallbackQueryArgument:(s==null?void 0:s.hash_fallback_query_arg)||"",hashFallbackUriCapture:(s==null?void 0:s.hash_fallback_uri_capture)||"",activeHealthSwitch:s?((w=(E=s.healthchecks.active)==null?void 0:E.healthy)==null?void 0:w.interval)!==0||((V=(d=s.healthchecks.active)==null?void 0:d.unhealthy)==null?void 0:V.interval)!==0:!1,passiveHealthSwitch:s?((T=(R=s.healthchecks.passive)==null?void 0:R.healthy)==null?void 0:T.successes)!==0||((M=(A=s.healthchecks.passive)==null?void 0:A.unhealthy)==null?void 0:M.timeouts)!==0||((N=(m=s.healthchecks.passive)==null?void 0:m.unhealthy)==null?void 0:N.tcp_failures)!==0||((U=(H=s.healthchecks.passive)==null?void 0:H.unhealthy)==null?void 0:U.http_failures)!==0:!1,healthchecksThreshold:((f=s==null?void 0:s.healthchecks.threshold)==null?void 0:f.toString())||"0",activeHealthCheck:{type:(($=s==null?void 0:s.healthchecks.active)==null?void 0:$.type)||"http",httpPath:((D=s==null?void 0:s.healthchecks.active)==null?void 0:D.http_path)||"/",timeout:((J=(j=s==null?void 0:s.healthchecks.active)==null?void 0:j.timeout)==null?void 0:J.toString())||"1",concurrency:((F=(I=s==null?void 0:s.healthchecks.active)==null?void 0:I.concurrency)==null?void 0:F.toString())||"10",httpsSni:((K=s==null?void 0:s.healthchecks.active)==null?void 0:K.https_sni)||"",verifySsl:((z=s==null?void 0:s.healthchecks.active)==null?void 0:z.https_verify_certificate)||!1,headers:(Q=s==null?void 0:s.healthchecks.active)!=null&&Q.headers&&Object.entries(s.healthchecks.active.headers).length>0?Object.entries(s.healthchecks.active.headers).map(([Gt,_e])=>({key:Gt,values:_e==null?void 0:_e.join(", ")})):[{key:"",values:""}],healthy:{interval:((q=(k=(W=s==null?void 0:s.healthchecks.active)==null?void 0:W.healthy)==null?void 0:k.interval)==null?void 0:q.toString())||"0",successes:((c=(C=(y=s==null?void 0:s.healthchecks.active)==null?void 0:y.healthy)==null?void 0:C.successes)==null?void 0:c.toString())||"5",httpStatuses:(i=(o=s==null?void 0:s.healthchecks.active)==null?void 0:o.healthy)!=null&&i.http_statuses?l(s.healthchecks.active.healthy.http_statuses):he},unhealthy:{interval:((G=(P=(x=s==null?void 0:s.healthchecks.active)==null?void 0:x.unhealthy)==null?void 0:P.interval)==null?void 0:G.toString())||"0",httpFailures:((ne=(Y=(v=s==null?void 0:s.healthchecks.active)==null?void 0:v.unhealthy)==null?void 0:Y.http_failures)==null?void 0:ne.toString())||"5",tcpFailures:((Ue=(Ie=(be=s==null?void 0:s.healthchecks.active)==null?void 0:be.unhealthy)==null?void 0:Ie.tcp_failures)==null?void 0:Ue.toString())||"5",httpStatuses:(qe=(Fe=s==null?void 0:s.healthchecks.active)==null?void 0:Fe.unhealthy)!=null&&qe.http_statuses?l(s.healthchecks.active.unhealthy.http_statuses):de,timeouts:((Oe=(Be=(Ee=s==null?void 0:s.healthchecks.active)==null?void 0:Ee.unhealthy)==null?void 0:Be.timeouts)==null?void 0:Oe.toString())||"0"}},passiveHealthCheck:{type:((De=s==null?void 0:s.healthchecks.passive)==null?void 0:De.type)||"http",healthy:{successes:((Me=(Pe=($e=s==null?void 0:s.healthchecks.passive)==null?void 0:$e.healthy)==null?void 0:Pe.successes)==null?void 0:Me.toString())||"5",httpStatuses:(Ke=(Ae=s==null?void 0:s.healthchecks.passive)==null?void 0:Ae.healthy)!=null&&Ke.http_statuses?l(s.healthchecks.passive.healthy.http_statuses):ce},unhealthy:{timeouts:((Le=(je=(Re=s==null?void 0:s.healthchecks.passive)==null?void 0:Re.unhealthy)==null?void 0:je.timeouts)==null?void 0:Le.toString())||"0",httpFailures:((Je=(We=(Qe=s==null?void 0:s.healthchecks.passive)==null?void 0:Qe.unhealthy)==null?void 0:We.http_failures)==null?void 0:Je.toString())||"5",tcpFailures:((ve=(Ge=(ze=s==null?void 0:s.healthchecks.passive)==null?void 0:ze.unhealthy)==null?void 0:Ge.tcp_failures)==null?void 0:ve.toString())||"5",httpStatuses:(Ze=(Xe=s==null?void 0:s.healthchecks.passive)==null?void 0:Xe.unhealthy)!=null&&Ze.http_statuses?l(s.healthchecks.passive.unhealthy.http_statuses):ue}}}};return{isInteger:a,inRange:B,stringToNumberArray:r,numberToStringArray:l,upstreamsResponseToFields:s=>n(s),getDefaultUpstreamFields:()=>n(),objectsAreEqual:(s,h)=>{try{return JSON.stringify(s)===JSON.stringify(h)}catch{return!1}},cloneDeep:s=>JSON.parse(JSON.stringify(s))}}const X={useI18n:et,useMultiselectCreation:oe,useHelpers:pe},le="/v2/control-planes/{controlPlaneId}/core-entities",se="/{workspace}",re={list:{konnect:`${le}/upstreams`,kongManager:`${se}/upstreams`},form:{konnect:{getServices:`${le}/services`,getCertificates:`${le}/certificates`,validate:`${le}/v1/schemas/json/upstream/validate`,create:`${le}/upstreams`,edit:`${le}/upstreams/{id}`},kongManager:{getServices:`${se}/services`,getCertificates:`${se}/certificates`,validate:`${se}/schemas/upstreams/validate`,create:`${se}/upstreams`,edit:`${se}/upstreams/{id}`}}},nt="#d60027",it="#00abd2",ht="24px",ct={class:"kong-ui-entities-upstreams-list"},dt={class:"button-row"},ut={class:"empty-state-icon-gateway"},pt={class:"upstream-name"},ft=e.defineComponent({__name:"UpstreamsList",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},enableV2EmptyStates:{type:Boolean,default:!1}},emits:["error","click:learn-more","copy:success","copy:error","delete:success"],setup(a,{emit:B}){var q;const r=B,l=a,{i18n:{t:n}}=X.useI18n(),g=we.useRouter(),{axiosInstance:b}=p.useAxios((q=l.config)==null?void 0:q.axiosRequestConfig),{hasRecords:O,handleStateChange:S}=p.useTableState(()=>w.value),s=e.computed(()=>O.value&&l.config.app==="konnect"),h=e.computed(()=>!l.enableV2EmptyStates&&l.config.app==="konnect"),_=e.computed(()=>l.config.app!=="kongManager"||!!l.config.disableSorting),u={name:{label:n("upstreams.list.table_headers.name"),searchable:!0,sortable:!0,hidable:!1},slots:{label:n("upstreams.list.table_headers.slots"),searchable:!0,sortable:!0},tags:{label:n("upstreams.list.table_headers.tags"),sortable:!1}},t=u,E=e.computed(()=>{var C,c;let y=`${l.config.apiBaseUrl}${re.list[l.config.app]}`;return l.config.app==="konnect"?y=y.replace(/{controlPlaneId}/gi,((C=l.config)==null?void 0:C.controlPlaneId)||""):l.config.app==="kongManager"&&(y=y.replace(/\/{workspace}/gi,(c=l.config)!=null&&c.workspace?`/${l.config.workspace}`:"")),y}),w=e.ref(""),d=e.computed(()=>{const y=l.config.app==="konnect"||l.config.isExactMatch;if(y)return{isExactMatch:y,placeholder:n("upstreams.search.placeholder")};const{name:C,slots:c}=u;return{isExactMatch:y,fields:{name:C,slots:c},schema:l.config.filterSchema}}),{fetcher:V,fetcherState:R,fetcherCacheKey:T}=p.useFetcher({...l.config,cacheIdentifier:l.cacheIdentifier},E.value),A=()=>{w.value=""},M=()=>{T.value++},m=e.ref(null),N=async(y,C)=>{const c=y.id;if(!await C(c)){r("copy:error",{entity:y,field:"id",message:n("upstreams.errors.copy")});return}r("copy:success",{entity:y,field:"id",message:n("upstreams.copy.success",{val:c})})},H=async(y,C)=>{const c=JSON.stringify(y);if(!await C(c)){r("copy:error",{entity:y,message:n("upstreams.errors.copy")});return}r("copy:success",{entity:y,message:n("upstreams.copy.success_brief")})},U=async y=>{var c;await((c=l.canRetrieve)==null?void 0:c.call(l,y))&&g.push(l.config.getViewRoute(y.id))},f=y=>({label:n("upstreams.actions.view"),to:l.config.getViewRoute(y)}),$=y=>({label:n("upstreams.actions.edit"),to:l.config.getEditRoute(y)}),D=e.ref(void 0),j=e.ref(!1),J=e.ref(!1),I=e.ref(""),F=p.useDeleteUrlBuilder(l.config,E.value),K=y=>{D.value=y,j.value=!0},z=()=>{j.value=!1},Q=async()=>{var y,C,c;if((y=D.value)!=null&&y.id){J.value=!0;try{await b.delete(F(D.value.id)),J.value=!1,j.value=!1,T.value++,r("delete:success",D.value)}catch(o){I.value=((c=(C=o.response)==null?void 0:C.data)==null?void 0:c.message)||o.message||n("upstreams.errors.delete"),r("error",o)}finally{J.value=!1}}},W=()=>{g.push(l.config.createRoute)};e.watch(R,y=>{var C,c,o;if(y.status===p.FetcherStatus.Error){m.value={title:n("upstreams.errors.general")},(o=(c=(C=y.error)==null?void 0:C.response)==null?void 0:c.data)!=null&&o.message&&(m.value.message=y.error.response.data.message),r("error",y.error);return}m.value=null});const k=e.ref({ctaPath:l.config.createRoute,ctaText:void 0,message:`${n("upstreams.list.empty_state.description")}${l.config.additionMessageForEmptyState?` ${l.config.additionMessageForEmptyState}`:""}`,title:n("upstreams.title")});return e.onBeforeMount(async()=>{await l.canCreate()&&(k.value.title=n("upstreams.list.empty_state.title"),k.value.ctaText=n("upstreams.actions.create"))}),(y,C)=>{const c=e.resolveComponent("KButton"),o=e.resolveComponent("KDropdownItem"),i=e.resolveComponent("KClipboardProvider");return e.openBlock(),e.createElementBlock("div",ct,[e.createVNode(e.unref(p.EntityBaseTable),{"cache-identifier":a.cacheIdentifier,"disable-sorting":_.value,"empty-state-options":k.value,"enable-entity-actions":"","error-message":m.value,fetcher:e.unref(V),"fetcher-cache-key":e.unref(T),"pagination-type":"offset","preferences-storage-key":"kong-ui-entities-upstreams-list",query:w.value,"table-headers":e.unref(t),onClearSearchInput:A,"onClick:row":C[4]||(C[4]=x=>U(x)),onSort:M,onState:e.unref(S)},e.createSlots({"toolbar-filter":e.withCtx(()=>[e.createVNode(e.unref(p.EntityFilter),{modelValue:w.value,"onUpdate:modelValue":C[0]||(C[0]=x=>w.value=x),config:d.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",dt,[s.value?(e.openBlock(),e.createBlock(c,{key:0,appearance:"secondary",class:"open-learning-hub","data-testid":"upstream-learn-more-button",icon:"",onClick:C[1]||(C[1]=x=>y.$emit("click:learn-more"))},{default:e.withCtx(()=>[e.createVNode(e.unref(ee.BookIcon),{decorative:""})]),_:1})):e.createCommentVNode("",!0),e.createVNode(e.unref(p.PermissionsWrapper),{"auth-function":()=>a.canCreate()},{default:e.withCtx(()=>[e.createVNode(c,{appearance:"primary","data-testid":"toolbar-add-upstream",size:a.useActionOutside?"medium":"large",to:a.config.createRoute},{default:e.withCtx(()=>[e.createVNode(e.unref(ee.AddIcon)),e.createTextVNode(" "+e.toDisplayString(e.unref(n)("upstreams.list.toolbar_actions.new_upstream")),1)]),_:1},8,["size","to"])]),_:1},8,["auth-function"])])],8,["disabled"]))]),name:e.withCtx(({rowValue:x})=>[e.createElementVNode("span",pt,e.toDisplayString(x),1)]),tags:e.withCtx(({rowValue:x})=>[e.createVNode(e.unref(p.TableTags),{"tag-max-width":"auto",tags:x},null,8,["tags"])]),actions:e.withCtx(({row:x})=>[e.createVNode(i,null,{default:e.withCtx(({copyToClipboard:P})=>[e.createVNode(o,{"data-testid":"action-entity-copy-id",onClick:G=>N(x,P)},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(n)("upstreams.actions.copy_id")),1)]),_:2},1032,["onClick"])]),_:2},1024),e.createVNode(i,null,{default:e.withCtx(({copyToClipboard:P})=>[e.createVNode(o,{"data-testid":"action-entity-copy-json",onClick:G=>H(x,P)},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(n)("upstreams.actions.copy_json")),1)]),_:2},1032,["onClick"])]),_:2},1024),e.createVNode(e.unref(p.PermissionsWrapper),{"auth-function":()=>a.canRetrieve(x)},{default:e.withCtx(()=>[e.createVNode(o,{"data-testid":"action-entity-view","has-divider":"",item:f(x.id)},null,8,["item"])]),_:2},1032,["auth-function"]),e.createVNode(e.unref(p.PermissionsWrapper),{"auth-function":()=>a.canEdit(x)},{default:e.withCtx(()=>[e.createVNode(o,{"data-testid":"action-entity-edit",item:$(x.id)},null,8,["item"])]),_:2},1032,["auth-function"]),e.createVNode(e.unref(p.PermissionsWrapper),{"auth-function":()=>a.canDelete(x)},{default:e.withCtx(()=>[e.createVNode(o,{danger:"","data-testid":"action-entity-delete","has-divider":"",onClick:P=>K(x)},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(n)("upstreams.actions.delete")),1)]),_:2},1032,["onClick"])]),_:2},1032,["auth-function"])]),_:2},[!e.unref(O)&&h.value?{name:"outside-actions",fn:e.withCtx(()=>[(e.openBlock(),e.createBlock(e.Teleport,{disabled:!a.useActionOutside,to:"#kong-ui-app-page-header-action-button"},[e.createVNode(c,{appearance:"secondary",class:"open-learning-hub","data-testid":"upstreams-learn-more-button",icon:"",onClick:C[2]||(C[2]=x=>y.$emit("click:learn-more"))},{default:e.withCtx(()=>[e.createVNode(e.unref(ee.BookIcon),{decorative:""})]),_:1})],8,["disabled"]))]),key:"0"}:void 0,!w.value&&a.enableV2EmptyStates&&a.config.app==="konnect"?{name:"empty-state",fn:e.withCtx(()=>{var x;return[e.createVNode(e.unref(p.EntityEmptyState),{"action-button-text":e.unref(n)("upstreams.list.empty_state_v2.create_cta"),appearance:"secondary","can-create":()=>a.canCreate(),"data-testid":"upstreams-entity-empty-state",description:e.unref(n)("upstreams.list.empty_state_v2.description"),"learn-more":a.config.app==="konnect",title:e.unref(n)("upstreams.list.empty_state_v2.title"),"onClick:create":W,"onClick:learnMore":C[3]||(C[3]=P=>y.$emit("click:learn-more"))},e.createSlots({image:e.withCtx(()=>[e.createElementVNode("div",ut,[e.createVNode(e.unref(ee.CloudUploadIcon),{color:e.unref(it),size:e.unref(ht)},null,8,["color","size"])])]),_:2},[(x=a.config)!=null&&x.isControlPlaneGroup?{name:"message",fn:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(n)("upstreams.list.empty_state_v2.group")),1)]),key:"0"}:void 0]),1032,["action-button-text","can-create","description","learn-more","title"])]}),key:"1"}:void 0]),1032,["cache-identifier","disable-sorting","empty-state-options","error-message","fetcher","fetcher-cache-key","query","table-headers","onState"]),e.createVNode(e.unref(p.EntityDeleteModal),{"action-pending":J.value,description:e.unref(n)("upstreams.delete.description"),"entity-name":D.value&&(D.value.name||D.value.id),"entity-type":e.unref(p.EntityTypes).Upstream,error:I.value,title:e.unref(n)("upstreams.delete.title"),visible:j.value,onCancel:z,onProceed:Q},null,8,["action-pending","description","entity-name","entity-type","error","title","visible"])])}}}),Z=(a,B)=>{const r=a.__vccOpts||a;for(const[l,n]of B)r[l]=n;return r},mt=Z(ft,[["__scopeId","data-v-b28276fa"]]),fe="/v2/control-planes/{controlPlaneId}/core-entities",me="/{workspace}",ye={list:{konnect:`${fe}/upstreams/{upstreamId}/targets`,kongManager:`${me}/upstreams/{upstreamId}/targets`},form:{konnect:{create:`${fe}/upstreams/{upstreamId}/targets`,edit:`${fe}/upstreams/{upstreamId}/targets/{id}`,validate:`${fe}/v1/schemas/json/target/validate`},kongManager:{create:`${me}/upstreams/{upstreamId}/targets`,edit:`${me}/upstreams/{upstreamId}/targets/{id}`,validate:`${me}/schemas/targets/validate`}}},yt={class:"kong-ui-entities-target-form"},gt={class:"target-form-container"},bt={key:0,class:"target-form-info"},Te=Z(e.defineComponent({__name:"TargetForm",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.upstreamId)},isVisible:{type:Boolean,required:!0,default:!1},targetId:{type:String,required:!1,default:""}},emits:["update","error","loading","cancel"],setup(a,{emit:B}){var M;const r=B,l=a,{i18n:{t:n}}=X.useI18n(),{getMessageFromError:g}=p.useErrors(),{axiosInstance:b}=p.useAxios((M=l.config)==null?void 0:M.axiosRequestConfig),O=e.computed(()=>{var m;return ye.form[l.config.app].edit.replace(/{upstreamId}/gi,((m=l.config)==null?void 0:m.upstreamId)||"")}),S=e.computed(()=>l.targetId?p.EntityBaseFormType.Edit:p.EntityBaseFormType.Create),s=e.computed(()=>S.value===p.EntityBaseFormType.Edit?n("targets.form.edit.title"):n("targets.form.create.title")),h=e.reactive({fields:{target:"",weight:100,tags:""},isReadonly:!1,errorMessage:""}),_=e.reactive({target:"",weight:100,tags:""}),u={target:"",weight:100,tags:""},t=e.computed(()=>{const m=parseInt(h.fields.weight.toString(),10);return m<0||m>65535}),E=e.computed(()=>JSON.stringify(h.fields)!==JSON.stringify(_)&&!!h.fields.target&&!!h.fields.weight&&!t.value),w=m=>{var N;h.fields.target=(m==null?void 0:m.target)||"",h.fields.weight=(m==null?void 0:m.weight)??"",h.fields.tags=((N=m==null?void 0:m.tags)==null?void 0:N.join(", "))||"",Object.assign(_,h.fields)},d=()=>{h.errorMessage="",r("cancel")},V=e.computed(()=>{var N,H;let m=`${l.config.apiBaseUrl}${ye.form[l.config.app].validate}`;return l.config.app==="konnect"?m=m.replace(/{controlPlaneId}/gi,((N=l.config)==null?void 0:N.controlPlaneId)||""):l.config.app==="kongManager"&&(m=m.replace(/\/{workspace}/gi,(H=l.config)!=null&&H.workspace?`/${l.config.workspace}`:"")),m=m.replace(/{id}/gi,l.targetId),m}),R=e.computed(()=>{var N,H,U,f;let m=`${l.config.apiBaseUrl}${ye.form[l.config.app][S.value]}`;return l.config.app==="konnect"?m=m.replace(/{controlPlaneId}/gi,((N=l.config)==null?void 0:N.controlPlaneId)||"").replace(/{upstreamId}/gi,((H=l.config)==null?void 0:H.upstreamId)||""):l.config.app==="kongManager"&&(m=m.replace(/\/{workspace}/gi,(U=l.config)!=null&&U.workspace?`/${l.config.workspace}`:"").replace(/{upstreamId}/gi,((f=l.config)==null?void 0:f.upstreamId)||"")),m=m.replace(/{id}/gi,l.targetId),m}),T=e.computed(()=>{var m,N,H;return{target:h.fields.target,weight:parseInt(h.fields.weight),tags:(H=(N=(m=h.fields.tags)==null?void 0:m.split(","))==null?void 0:N.map(U=>String(U||"").trim()))==null?void 0:H.filter(U=>U!==""),upstream:{id:l.config.upstreamId}}}),A=async()=>{var m,N;try{h.isReadonly=!0,h.errorMessage="";let H;if(await b.post(V.value,T.value),S.value==="create"?H=await b.post(R.value,T.value):S.value==="edit"&&(H=((m=l.config)==null?void 0:m.app)==="konnect"?await b.put(R.value,T.value):await b.patch(R.value,T.value)),H){const{data:U}=H;h.fields.target=(U==null?void 0:U.name)||"",h.fields.weight=(U==null?void 0:U.weight)??100,h.fields.tags=((N=U==null?void 0:U.tags)==null?void 0:N.join(", "))||"",r("update",U),Object.assign(h.fields,u)}}catch(H){h.errorMessage=g(H),r("error",H)}finally{h.isReadonly=!1}};return e.watch(()=>l.targetId,()=>{Object.assign(h.fields,u)}),(m,N)=>{const H=e.resolveComponent("KInput"),U=e.resolveComponent("KPrompt");return e.openBlock(),e.createBlock(U,{"action-button-disabled":!E.value||h.isReadonly,"action-button-text":e.unref(n)("targets.form.buttons.save"),"cancel-button-text":e.unref(n)("targets.form.buttons.cancel"),title:s.value,visible:a.isVisible,onCancel:d,onProceed:A},{default:e.withCtx(()=>[e.createElementVNode("div",yt,[e.createVNode(e.unref(p.EntityBaseForm),{config:a.config,"edit-id":a.targetId,"entity-type":e.unref(p.SupportedEntityType).Target,"error-message":h.errorMessage,"fetch-url":O.value,"form-fields":T.value,"is-readonly":h.isReadonly,onCancel:d,"onFetch:error":N[3]||(N[3]=f=>m.$emit("error",f)),"onFetch:success":w,onLoading:N[4]||(N[4]=f=>m.$emit("loading",f))},{default:e.withCtx(()=>[e.createElementVNode("div",gt,[m.$slots.info?(e.openBlock(),e.createElementBlock("div",bt,[e.renderSlot(m.$slots,"info",{},void 0,!0)])):e.createCommentVNode("",!0),e.createVNode(H,{modelValue:h.fields.target,"onUpdate:modelValue":N[0]||(N[0]=f=>h.fields.target=f),modelModifiers:{trim:!0},autocomplete:"off",class:"target-form-input","data-testid":"target-form-target",label:e.unref(n)("targets.form.fields.target.label"),"label-attributes":{info:e.unref(n)("targets.form.fields.target.tooltip"),tooltipAttributes:{maxWidth:"400"}},placeholder:e.unref(n)("targets.form.fields.target.placeholder"),readonly:h.isReadonly,required:"",type:"text"},null,8,["modelValue","label","label-attributes","placeholder","readonly"]),e.createVNode(H,{modelValue:h.fields.weight,"onUpdate:modelValue":N[1]||(N[1]=f=>h.fields.weight=f),autocomplete:"off",class:"target-form-input","data-testid":"target-form-weight",error:t.value,"error-message":e.unref(n)("targets.errors.weight"),label:e.unref(n)("targets.form.fields.weight.label"),"label-attributes":{info:e.unref(n)("targets.form.fields.weight.tooltip"),tooltipAttributes:{maxWidth:"400"}},max:"65535",min:"0",readonly:h.isReadonly,required:"",type:"number"},null,8,["modelValue","error","error-message","label","label-attributes","readonly"]),e.createVNode(H,{modelValue:h.fields.tags,"onUpdate:modelValue":N[2]||(N[2]=f=>h.fields.tags=f),modelModifiers:{trim:!0},autocomplete:"off",class:"target-form-input","data-testid":"target-form-tags",help:e.unref(n)("targets.form.fields.tags.help"),label:e.unref(n)("targets.form.fields.tags.label"),placeholder:e.unref(n)("targets.form.fields.tags.placeholder"),readonly:h.isReadonly,type:"text"},null,8,["modelValue","help","label","placeholder","readonly"])])]),_:3},8,["config","edit-id","entity-type","error-message","fetch-url","form-fields","is-readonly"])])]),_:3},8,["action-button-disabled","action-button-text","cancel-button-text","title","visible"])}}}),[["__scopeId","data-v-479418b8"]]),kt={class:"kong-ui-entities-targets-list"},Ct={class:"target-address"},_t=Z(e.defineComponent({__name:"TargetsList",props:{config:{type:Object,required:!0,validator:a=>!(!a||!["konnect","kongManager"].includes(a==null?void 0:a.app)||!a.upstreamId||a.app==="kongManager"&&(typeof a.canMarkHealthy>"u"||typeof a.canMarkUnhealthy>"u"))},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},useActionOutside:{type:Boolean,default:!1}},emits:["error","copy:success","copy:error","delete:success","health-actions:healthy","health-actions:unhealthy","create:target","update:target"],setup(a,{emit:B}){var W;const r=B,l=a,{i18n:{t:n}}=X.useI18n(),{axiosInstance:g}=p.useAxios((W=l.config)==null?void 0:W.axiosRequestConfig),b=e.computed(()=>l.config.app!=="kongManager"||!!l.config.disableSorting),S={target:{label:n("targets.list.table_headers.target_address"),sortable:!0,hidable:!1},weight:{label:n("targets.list.table_headers.weight"),sortable:!0},tags:{label:n("targets.list.table_headers.tags"),sortable:!1}},s=e.computed(()=>{var q,y,C,c;let k=`${l.config.apiBaseUrl}${ye.list[l.config.app]}`;return l.config.app==="konnect"?k=k.replace(/{controlPlaneId}/gi,((q=l.config)==null?void 0:q.controlPlaneId)||"").replace(/{upstreamId}/gi,((y=l.config)==null?void 0:y.upstreamId)||""):l.config.app==="kongManager"&&(k=k.replace(/\/{workspace}/gi,(C=l.config)!=null&&C.workspace?`/${l.config.workspace}`:"").replace(/{upstreamId}/gi,((c=l.config)==null?void 0:c.upstreamId)||"")),k}),{fetcher:h,fetcherState:_,fetcherCacheKey:u}=p.useFetcher({...l.config,cacheIdentifier:l.cacheIdentifier},s.value),t=()=>{u.value++},E=e.ref(null),w=()=>{F.value=!0},d=async(k,q)=>{const y=k.id;if(!await q(y)){r("copy:error",{entity:k,field:"id",message:n("targets.errors.copy")});return}r("copy:success",{entity:k,field:"id",message:n("targets.copy.success",{val:y})})},V=async(k,q)=>{const y=JSON.stringify(k);if(!await q(y)){r("copy:error",{entity:k,message:n("targets.errors.copy")});return}r("copy:success",{entity:k,message:n("targets.copy.success_brief")})},R=k=>{I.value=k,F.value=!0},T=k=>l.config.app==="konnect"?!1:l.config.canMarkHealthy(k),A=k=>l.config.app==="konnect"?!1:l.config.canMarkUnhealthy(k),M=e.ref(void 0),m=e.ref(!1),N=e.ref(!1),H=e.ref(""),U=p.useDeleteUrlBuilder(l.config,s.value),f=k=>{M.value=k,m.value=!0},$=()=>{m.value=!1},D=async()=>{var k,q,y;if((k=M.value)!=null&&k.id){N.value=!0;try{await g.delete(U(M.value.id)),N.value=!1,m.value=!1,u.value++,r("delete:success",M.value)}catch(C){H.value=((y=(q=C.response)==null?void 0:q.data)==null?void 0:y.message)||C.message||n("targets.errors.delete"),r("error",C)}finally{N.value=!1}}};e.watch(_,k=>{var q,y,C;if(k.status===p.FetcherStatus.Error){E.value={title:n("targets.errors.general")},(C=(y=(q=k.error)==null?void 0:q.response)==null?void 0:y.data)!=null&&C.message&&(E.value.message=k.error.response.data.message),r("error",k.error);return}E.value=null});const j=e.ref({ctaText:void 0,message:`${n("targets.list.empty_state.description")}${l.config.additionMessageForEmptyState?` ${l.config.additionMessageForEmptyState}`:""}`,title:n("targets.title"),...l.config.createRoute&&{ctaPath:l.config.createRoute}});e.onBeforeMount(async()=>{await l.canCreate()&&(j.value.title=n("targets.list.empty_state.title"),j.value.ctaText=n("targets.actions.create"))});const J=e.computed(()=>({app:l.config.app,apiBaseUrl:l.config.apiBaseUrl,upstreamId:l.config.upstreamId,axiosRequestConfig:l.config.axiosRequestConfig,...l.config.app==="konnect"&&{controlPlaneId:l.config.controlPlaneId},...l.config.app==="kongManager"&&{workspace:l.config.workspace}})),I=e.ref(""),F=e.ref(!1),K=k=>{I.value?r("update:target",k):r("create:target",k),z()},z=()=>{Q(),u.value++},Q=()=>{F.value=!1,I.value=""};return(k,q)=>{const y=e.resolveComponent("KButton"),C=e.resolveComponent("KDropdownItem"),c=e.resolveComponent("KClipboardProvider");return e.openBlock(),e.createElementBlock("div",kt,[e.createVNode(e.unref(p.EntityBaseTable),{"cache-identifier":a.cacheIdentifier,"disable-sorting":b.value,"empty-state-options":j.value,"enable-entity-actions":"","error-message":E.value,fetcher:e.unref(h),"fetcher-cache-key":e.unref(u),"pagination-type":"offset","preferences-storage-key":"kong-ui-entities-targets-list","table-headers":e.unref(S),onEmptyStateCtaClicked:q[1]||(q[1]=()=>l.config.createRoute?void 0:w()),onSort:t},{"toolbar-button":e.withCtx(()=>[(e.openBlock(),e.createBlock(e.Teleport,{disabled:!a.useActionOutside,to:"#kong-ui-app-page-header-action-button"},[e.createVNode(e.unref(p.PermissionsWrapper),{"auth-function":()=>a.canCreate()},{default:e.withCtx(()=>[e.createVNode(y,{appearance:"primary","data-testid":"toolbar-new-target",size:a.useActionOutside?"medium":"large",to:l.config.createRoute?l.config.createRoute:void 0,onClick:q[0]||(q[0]=()=>l.config.createRoute?void 0:w())},{default:e.withCtx(()=>[e.createVNode(e.unref(ee.AddIcon)),e.createTextVNode(" "+e.toDisplayString(e.unref(n)("targets.list.toolbar_actions.new_target")),1)]),_:1},8,["size","to"])]),_:1},8,["auth-function"])],8,["disabled"]))]),target:e.withCtx(({rowValue:o})=>[e.createElementVNode("span",Ct,e.toDisplayString(o),1)]),tags:e.withCtx(({rowValue:o})=>[e.createVNode(e.unref(p.TableTags),{"tag-max-width":"auto",tags:o},null,8,["tags"])]),actions:e.withCtx(({row:o})=>[e.createVNode(c,null,{default:e.withCtx(({copyToClipboard:i})=>[e.createVNode(C,{"data-testid":"action-entity-copy-id",onClick:x=>d(o,i)},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(n)("targets.actions.copy_id")),1)]),_:2},1032,["onClick"])]),_:2},1024),e.createVNode(c,null,{default:e.withCtx(({copyToClipboard:i})=>[e.createVNode(C,{"data-testid":"action-entity-copy-json",onClick:x=>V(o,i)},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(n)("targets.actions.copy_json")),1)]),_:2},1032,["onClick"])]),_:2},1024),e.createVNode(e.unref(p.PermissionsWrapper),{"auth-function":()=>a.canEdit(o)},{default:e.withCtx(()=>[e.createVNode(C,{"data-testid":"action-entity-edit","has-divider":"",onClick:i=>R(o.id)},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(n)("targets.actions.edit")),1)]),_:2},1032,["onClick"])]),_:2},1032,["auth-function"]),e.createVNode(e.unref(p.PermissionsWrapper),{"auth-function":()=>T(o)},{default:e.withCtx(()=>[e.createVNode(C,{"data-testid":"action-target-mark-healthy",onClick:i=>r("health-actions:healthy",o)},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(n)("targets.actions.mark_healthy")),1)]),_:2},1032,["onClick"])]),_:2},1032,["auth-function"]),e.createVNode(e.unref(p.PermissionsWrapper),{"auth-function":()=>A(o)},{default:e.withCtx(()=>[e.createVNode(C,{"data-testid":"action-target-mark-unhealthy",onClick:i=>r("health-actions:unhealthy",o)},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(n)("targets.actions.mark_unhealthy")),1)]),_:2},1032,["onClick"])]),_:2},1032,["auth-function"]),e.createVNode(e.unref(p.PermissionsWrapper),{"auth-function":()=>a.canDelete(o)},{default:e.withCtx(()=>[e.createVNode(C,{danger:"","data-testid":"action-entity-delete","has-divider":"",onClick:i=>f(o)},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(n)("targets.actions.delete")),1)]),_:2},1032,["onClick"])]),_:2},1032,["auth-function"])]),_:1},8,["cache-identifier","disable-sorting","empty-state-options","error-message","fetcher","fetcher-cache-key","table-headers"]),e.createVNode(e.unref(p.EntityDeleteModal),{"action-pending":N.value,description:e.unref(n)("targets.delete.description"),"entity-type":e.unref(p.EntityTypes).Target,error:H.value,"need-confirm":!1,title:e.unref(n)("targets.delete.title"),visible:m.value,onCancel:$,onProceed:D},null,8,["action-pending","description","entity-type","error","title","visible"]),e.createVNode(Te,{config:J.value,"is-visible":F.value,"target-id":I.value,onCancel:Q,onUpdate:K},e.createSlots({_:2},[k.$slots["form-info"]?{name:"info",fn:e.withCtx(()=>[e.renderSlot(k.$slots,"form-info",{},void 0,!0)]),key:"0"}:void 0]),1032,["config","is-visible","target-id"])])}}}),[["__scopeId","data-v-d16baad8"]]),wt={key:1},Vt=Z(e.defineComponent({__name:"UpstreamsFormGeneralInfo",props:{config:{type:Object,required:!0},name:{type:String,required:!0},hostHeader:{type:String,required:!0},clientCertificate:{type:String,required:!0},tags:{type:String,required:!0},readonly:{type:Boolean,required:!1,default:!1}},emits:["update:name","update:host-header","update:client-certificate","update:tags"],setup(a,{emit:B}){var $,D,j,J;const{i18nT:r,i18n:{t:l}}=X.useI18n(),n=a,g=B,{debouncedQueryChange:b,loading:O,loadItems:S,results:s,allRecords:h}=p.useDebouncedFilter(n.config,(D=re.form[($=n.config)==null?void 0:$.app])==null?void 0:D.getServices,"",{fetchedItemsKey:"data",searchKeys:["host"]}),{debouncedQueryChange:_,loading:u,loadItems:t,results:E}=p.useDebouncedFilter(n.config,(J=re.form[(j=n.config)==null?void 0:j.app])==null?void 0:J.getCertificates),w=e.ref(""),d=e.computed(()=>{var I;return!!n.name&&!((I=h.value)!=null&&I.some(F=>F.host===n.name))}),V=e.computed(()=>{var F,K,z;const I=d.value&&n.name.includes((F=w.value)==null?void 0:F.toLowerCase());return(z=s.value)==null?void 0:z.map(Q=>({label:Q.host,value:Q.id})).concat(I?[{label:n.name,value:((K=A.value)==null?void 0:K.value)||n.name}]:[])}),R=e.computed(()=>{var I;return(I=E.value)==null?void 0:I.map(F=>({label:F.id,value:F.id}))}),T=e.ref(""),A=e.ref({value:"",label:""}),M=e.computed(()=>{var I,F;return((I=V.value.find(K=>K.value===T.value))==null?void 0:I.label)||((F=A.value)==null?void 0:F.label)}),m=I=>{w.value=I,b(I)},N=I=>{A.value=I},H=()=>{A.value={value:"",label:""}},U=I=>{T.value=I,g("update:name",M.value)},f=e.ref(!1);return e.onBeforeMount(async()=>{var I,F;try{f.value=!0,await S(),n.name&&(T.value=((F=(I=V.value.find(K=>K.label===n.name))==null?void 0:I.value)==null?void 0:F.toString())||n.name),await t()}finally{f.value=!1}}),(I,F)=>{const K=e.resolveComponent("KSkeleton"),z=e.resolveComponent("KSelect"),Q=e.resolveComponent("KInput");return e.openBlock(),e.createBlock(e.unref(p.EntityFormSection),{class:"kong-ui-entities-upstreams-general-info",description:e.unref(l)("upstreams.form.general_info.help"),title:e.unref(l)("upstreams.form.general_info.title")},{default:e.withCtx(()=>[f.value?(e.openBlock(),e.createBlock(K,{key:0,type:"form"})):(e.openBlock(),e.createElementBlock("div",wt,[e.createVNode(z,{class:"name-select margin-bottom-6",clearable:"","data-testid":"upstreams-form-name","enable-filtering":"","enable-item-creation":"","filter-function":()=>!0,items:V.value,label:e.unref(l)("upstreams.form.fields.name.label"),"label-attributes":{tooltipAttributes:{"max-width":"400"}},loading:e.unref(O),"model-value":T.value,placeholder:e.unref(l)("upstreams.form.fields.name.placeholder"),readonly:a.readonly,required:"",width:"100%",onItemAdded:N,onItemRemoved:H,onQueryChange:m,"onUpdate:modelValue":U},{"label-tooltip":e.withCtx(()=>[e.createVNode(e.unref(r),{keypath:"upstreams.form.fields.name.tooltip",scope:"global"},{host:e.withCtx(()=>[e.createElementVNode("code",null,e.toDisplayString(e.unref(l)("upstreams.form.fields.name.host")),1)]),_:1})]),_:1},8,["items","label","loading","model-value","placeholder","readonly","onUpdate:modelValue"]),e.createVNode(Q,{autocomplete:"off",class:"margin-bottom-6","data-testid":"upstreams-form-host-header",label:e.unref(l)("upstreams.form.fields.host_header.label"),"model-value":a.hostHeader,readonly:a.readonly,type:"text","onUpdate:modelValue":F[0]||(F[0]=W=>g("update:host-header",W))},null,8,["label","model-value","readonly"]),e.createVNode(z,{class:"certificate-select margin-bottom-6",clearable:"","data-testid":"upstreams-form-client-certificate","enable-filtering":"","filter-function":()=>!0,items:R.value,label:e.unref(l)("upstreams.form.fields.client_certificate.label"),"label-attributes":{info:e.unref(l)("upstreams.form.fields.client_certificate.tooltip"),tooltipAttributes:{maxWidth:"400"}},loading:e.unref(u),"model-value":a.clientCertificate,placeholder:e.unref(l)("upstreams.form.fields.client_certificate.placeholder"),readonly:a.readonly,width:"100%",onQueryChange:e.unref(_),"onUpdate:modelValue":F[1]||(F[1]=W=>g("update:client-certificate",W))},null,8,["items","label","label-attributes","loading","model-value","placeholder","readonly","onQueryChange"]),e.createVNode(Q,{autocomplete:"off","data-testid":"upstreams-form-tags",help:e.unref(l)("upstreams.form.fields.tags.help"),label:e.unref(l)("upstreams.form.fields.tags.label"),"label-attributes":{info:e.unref(l)("upstreams.form.fields.tags.tooltip"),tooltipAttributes:{maxWidth:"400"}},"model-value":a.tags,placeholder:e.unref(l)("upstreams.form.fields.tags.placeholder"),readonly:a.readonly,type:"text","onUpdate:modelValue":F[2]||(F[2]=W=>g("update:tags",W))},null,8,["help","label","label-attributes","model-value","placeholder","readonly"])]))]),_:1},8,["description","title"])}}}),[["__scopeId","data-v-626ed41f"]]),ge={upstreamObject:"https://docs.konghq.com/gateway/latest/admin-api/#upstream-object",loadBalancing:"https://docs.konghq.com/gateway/latest/how-kong-works/load-balancing/#main"},Nt={class:"fields-group-title"},xt={class:"fields-group-text"},St={class:"fields-group-title"},Ht={class:"fields-group-text"},Tt=Z(e.defineComponent({__name:"UpstreamsFormLoadBalancing",props:{algorithm:{type:String,required:!0},slots:{type:String,required:!0},hashOn:{type:String,required:!0},hashFallback:{type:String,required:!0},hashOnHeader:{type:String,required:!0},hashOnCookie:{type:String,required:!0},hashOnCookiePath:{type:String,required:!0},hashOnQueryArgument:{type:String,required:!0},hashOnUriCapture:{type:String,required:!0},hashFallbackHeader:{type:String,required:!0},hashFallbackQueryArgument:{type:String,required:!0},hashFallbackUriCapture:{type:String,required:!0},readonly:{type:Boolean,required:!1,default:!1}},emits:["update:algorithm","update:slots","update:hash-on","update:hash-fallback","update:hash-on-header","update:hash-on-cookie","update:hash-on-cookie-path","update:hash-on-query-argument","update:hash-on-uri-capture","update:hash-fallback-header","update:hash-fallback-query-argument","update:hash-fallback-uri-capture"],setup(a,{emit:B}){const{i18nT:r,i18n:{t:l}}=X.useI18n(),{inRange:n}=pe(),g=a,b=B,O=e.ref([{label:l("upstreams.form.algorithms.round_robin_label"),value:"round-robin",selected:!1},{label:l("upstreams.form.algorithms.least_connections_label"),value:"least-connections",selected:!1},{label:l("upstreams.form.algorithms.consistent_hashing_label"),value:"consistent-hashing",selected:!1},{label:l("upstreams.form.algorithms.latency_label"),value:"latency",selected:!1}]),S=e.ref([{label:l("upstreams.form.hash_labels.none"),value:"none",selected:!1},{label:l("upstreams.form.hash_labels.consumer"),value:"consumer",selected:!1},{label:l("upstreams.form.hash_labels.ip"),value:"ip",selected:!1},{label:l("upstreams.form.hash_labels.header"),value:"header",selected:!1},{label:l("upstreams.form.hash_labels.cookie"),value:"cookie",selected:!1},{label:l("upstreams.form.hash_labels.path"),value:"path",selected:!1},{label:l("upstreams.form.hash_labels.query_argument"),value:"query_arg",selected:!1},{label:l("upstreams.form.hash_labels.uri_capture"),value:"uri_capture",selected:!1}]);e.watch(()=>g.hashOn,(_,u)=>{u==="header"&&_!==u&&b("update:hash-on-header",""),u==="cookie"&&_!==u&&(b("update:hash-on-cookie",""),b("update:hash-on-cookie-path","/")),u==="query_arg"&&_!==u&&b("update:hash-on-query-argument",""),u==="uri_capture"&&_!==u&&b("update:hash-on-uri-capture",""),(_==="cookie"||_==="none")&&(b("update:hash-fallback","none"),b("update:hash-fallback-header",""),b("update:hash-fallback-query-argument",""),b("update:hash-fallback-uri-capture",""))}),e.watch(()=>g.hashFallback,(_,u)=>{u==="header"&&_!==u&&b("update:hash-fallback-header",""),u==="cookie"&&_!==u&&(b("update:hash-on-cookie",""),b("update:hash-on-cookie-path","/")),u==="query_arg"&&_!==u&&b("update:hash-fallback-query-argument",""),u==="uri_capture"&&_!==u&&b("update:hash-fallback-uri-capture","")});const s=e.computed(()=>g.hashOn==="cookie"||g.hashOn==="none"),h=e.computed(()=>g.slots?n(g.slots,ke,Ce)?"":l("upstreams.form.errors.in_range"):"");return(_,u)=>{const t=e.resolveComponent("KExternalLink"),E=e.resolveComponent("KSelect"),w=e.resolveComponent("KInput"),d=e.resolveComponent("KCard");return e.openBlock(),e.createBlock(e.unref(p.EntityFormSection),{class:"kong-ui-entities-upstreams-load-balancing",title:e.unref(l)("upstreams.form.load_balancing.title")},{description:e.withCtx(()=>[e.createElementVNode("p",null,[e.createTextVNode(e.toDisplayString(e.unref(l)("upstreams.form.load_balancing.help"))+" ",1),e.createVNode(t,{"hide-icon":"",href:e.unref(ge).upstreamObject},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(l)("upstreams.form.buttons.view_documentation")),1)]),_:1},8,["href"])])]),default:e.withCtx(()=>[e.createVNode(E,{class:"algorithm-select",items:O.value,label:e.unref(l)("upstreams.form.fields.algorithm.label"),"model-value":a.algorithm,readonly:a.readonly,width:"100%","onUpdate:modelValue":u[0]||(u[0]=V=>b("update:algorithm",V))},null,8,["items","label","model-value","readonly"]),e.createVNode(w,{autocomplete:"off","data-testid":"upstreams-form-slots",error:!!h.value,"error-message":h.value,help:e.unref(l)("upstreams.form.fields.slots.help"),label:e.unref(l)("upstreams.form.fields.slots.label"),max:e.unref(Ce),min:e.unref(ke),"model-value":a.slots,readonly:a.readonly,type:"number","onUpdate:modelValue":u[1]||(u[1]=V=>b("update:slots",V))},null,8,["error","error-message","help","label","max","min","model-value","readonly"]),e.createVNode(d,null,{default:e.withCtx(()=>[e.createElementVNode("h5",Nt,e.toDisplayString(e.unref(l)("upstreams.form.fields.hash_on.label")),1),e.createElementVNode("p",xt,e.toDisplayString(e.unref(l)("upstreams.form.fields.hash_on.help")),1),e.createVNode(E,{class:"hash-on-select",items:S.value,label:e.unref(l)("upstreams.form.fields.hash_on.label"),"model-value":a.hashOn,readonly:a.readonly,width:"100%","onUpdate:modelValue":u[2]||(u[2]=V=>b("update:hash-on",V))},null,8,["items","label","model-value","readonly"]),a.hashOn==="header"?(e.openBlock(),e.createBlock(w,{key:0,autocomplete:"off",class:"margin-top-6","data-testid":"upstreams-form-hash-on-header",label:e.unref(l)("upstreams.form.fields.header.label"),"model-value":a.hashOnHeader,readonly:a.readonly,required:"",type:"text","onUpdate:modelValue":u[3]||(u[3]=V=>b("update:hash-on-header",V))},null,8,["label","model-value","readonly"])):e.createCommentVNode("",!0),a.hashOn==="cookie"?(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createVNode(w,{autocomplete:"off",class:"margin-top-6","data-testid":"upstreams-form-hash-on-cookie",label:e.unref(l)("upstreams.form.fields.cookie.label"),"model-value":a.hashOnCookie,readonly:a.readonly,required:"",type:"text","onUpdate:modelValue":u[4]||(u[4]=V=>b("update:hash-on-cookie",V))},null,8,["label","model-value","readonly"]),e.createVNode(w,{autocomplete:"off",class:"margin-top-6","data-testid":"upstreams-form-hash-on-cookie-path",label:e.unref(l)("upstreams.form.fields.cookie_path.label"),"model-value":a.hashOnCookiePath,readonly:a.readonly,required:"",type:"text","onUpdate:modelValue":u[5]||(u[5]=V=>b("update:hash-on-cookie-path",V))},null,8,["label","model-value","readonly"])],64)):e.createCommentVNode("",!0),a.hashOn==="query_arg"?(e.openBlock(),e.createBlock(w,{key:2,autocomplete:"off",class:"margin-top-6","data-testid":"upstreams-form-query-argument",label:e.unref(l)("upstreams.form.fields.query_argument.label"),"model-value":a.hashOnQueryArgument,readonly:a.readonly,required:"",type:"text","onUpdate:modelValue":u[6]||(u[6]=V=>b("update:hash-on-query-argument",V))},null,8,["label","model-value","readonly"])):e.createCommentVNode("",!0),a.hashOn==="uri_capture"?(e.openBlock(),e.createBlock(w,{key:3,autocomplete:"off",class:"margin-top-6","data-testid":"upstreams-form-uri-capture",label:e.unref(l)("upstreams.form.fields.uri_capture.label"),"model-value":a.hashOnUriCapture,readonly:a.readonly,required:"",type:"text","onUpdate:modelValue":u[7]||(u[7]=V=>b("update:hash-on-uri-capture",V))},null,8,["label","model-value","readonly"])):e.createCommentVNode("",!0)]),_:1}),e.createVNode(d,null,{default:e.withCtx(()=>[e.createElementVNode("h5",St,e.toDisplayString(e.unref(l)("upstreams.form.fields.hash_fallback.label")),1),e.createElementVNode("p",Ht,e.toDisplayString(e.unref(l)("upstreams.form.fields.hash_fallback.help")),1),e.createVNode(E,{class:"hash-fallback-select",disabled:s.value,items:S.value,label:e.unref(l)("upstreams.form.fields.hash_fallback.label"),"label-attributes":{tooltipAttributes:{"max-width":"400"}},"model-value":a.hashFallback,readonly:a.readonly,width:"100%","onUpdate:modelValue":u[8]||(u[8]=V=>b("update:hash-fallback",V))},{"label-tooltip":e.withCtx(()=>[e.createVNode(e.unref(r),{keypath:"upstreams.form.fields.hash_fallback.tooltip",scope:"global"},{hash_on:e.withCtx(()=>[e.createElementVNode("code",null,e.toDisplayString(e.unref(l)("upstreams.form.fields.hash_fallback.hash_on")),1)]),cookie:e.withCtx(()=>[e.createElementVNode("code",null,e.toDisplayString(e.unref(l)("upstreams.form.fields.hash_fallback.cookie")),1)]),_:1})]),_:1},8,["disabled","items","label","model-value","readonly"]),a.hashFallback==="header"?(e.openBlock(),e.createBlock(w,{key:0,autocomplete:"off",class:"margin-top-6","data-testid":"upstreams-form-hash-fallback-header",label:e.unref(l)("upstreams.form.fields.header.label"),"model-value":a.hashFallbackHeader,readonly:a.readonly,required:"",type:"text","onUpdate:modelValue":u[9]||(u[9]=V=>b("update:hash-fallback-header",V))},null,8,["label","model-value","readonly"])):e.createCommentVNode("",!0),a.hashFallback==="cookie"?(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createVNode(w,{autocomplete:"off",class:"margin-top-6","data-testid":"upstreams-form-hash-on-cookie",label:e.unref(l)("upstreams.form.fields.cookie.label"),"model-value":a.hashOnCookie,readonly:a.readonly,required:"",type:"text","onUpdate:modelValue":u[10]||(u[10]=V=>b("update:hash-on-cookie",V))},null,8,["label","model-value","readonly"]),e.createVNode(w,{autocomplete:"off",class:"margin-top-6","data-testid":"upstreams-form-hash-on-cookie-path",label:e.unref(l)("upstreams.form.fields.cookie_path.label"),"model-value":a.hashOnCookiePath,readonly:a.readonly,required:"",type:"text","onUpdate:modelValue":u[11]||(u[11]=V=>b("update:hash-on-cookie-path",V))},null,8,["label","model-value","readonly"])],64)):e.createCommentVNode("",!0),a.hashFallback==="query_arg"?(e.openBlock(),e.createBlock(w,{key:2,autocomplete:"off",class:"margin-top-6","data-testid":"upstreams-form-hash-fallback-query-argument",label:e.unref(l)("upstreams.form.fields.query_argument.label"),"model-value":a.hashFallbackQueryArgument,readonly:a.readonly,required:"",type:"text","onUpdate:modelValue":u[12]||(u[12]=V=>b("update:hash-fallback-query-argument",V))},null,8,["label","model-value","readonly"])):e.createCommentVNode("",!0),a.hashFallback==="uri_capture"?(e.openBlock(),e.createBlock(w,{key:3,autocomplete:"off",class:"margin-top-6","data-testid":"upstreams-form-hash-fallback-uri-capture",label:e.unref(l)("upstreams.form.fields.uri_capture.label"),"model-value":a.hashFallbackUriCapture,readonly:a.readonly,required:"",type:"text","onUpdate:modelValue":u[13]||(u[13]=V=>b("update:hash-fallback-uri-capture",V))},null,8,["label","model-value","readonly"])):e.createCommentVNode("",!0)]),_:1})]),_:1},8,["title"])}}}),[["__scopeId","data-v-4f4deb55"]]),It={class:"fields-group-title"},Ut={class:"fields-group-text"},Ft={class:"fields-group-title"},qt={class:"fields-group-text"},Et=Z(e.defineComponent({__name:"UpstreamsFormHealthChecks",props:{activeHealthSwitch:{type:Boolean,required:!0},passiveHealthSwitch:{type:Boolean,required:!0},healthchecksThreshold:{type:String,required:!0},readonly:{type:Boolean,required:!1,default:!1}},emits:["update:active-health-switch","update:passive-health-switch","update:healthchecks-threshold"],setup(a,{emit:B}){const{i18n:{t:r}}=X.useI18n(),l=B;return(n,g)=>{const b=e.resolveComponent("KExternalLink"),O=e.resolveComponent("KInputSwitch"),S=e.resolveComponent("KCard"),s=e.resolveComponent("KInput");return e.openBlock(),e.createBlock(e.unref(p.EntityFormSection),{class:"kong-ui-entities-upstreams-healthchecks",title:e.unref(r)("upstreams.form.health_check.title")},{description:e.withCtx(()=>[e.createElementVNode("p",null,[e.createTextVNode(e.toDisplayString(e.unref(r)("upstreams.form.health_check.help"))+" ",1),e.createVNode(b,{"hide-icon":"",href:e.unref(ge).loadBalancing},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(r)("upstreams.form.buttons.view_documentation")),1)]),_:1},8,["href"])])]),default:e.withCtx(()=>[e.createVNode(S,null,{default:e.withCtx(()=>[e.createElementVNode("h5",It,e.toDisplayString(e.unref(r)("upstreams.form.fields.active_health_checks.label")),1),e.createElementVNode("p",Ut,e.toDisplayString(e.unref(r)("upstreams.form.fields.active_health_checks.help")),1),e.createVNode(O,{class:"active-health-switch","data-testid":"active-health-switch",disabled:a.readonly,"model-value":a.activeHealthSwitch,onChange:g[0]||(g[0]=h=>l("update:active-health-switch",h))},null,8,["disabled","model-value"])]),_:1}),e.createVNode(S,null,{default:e.withCtx(()=>[e.createElementVNode("h5",Ft,e.toDisplayString(e.unref(r)("upstreams.form.fields.passive_health_checks.label")),1),e.createElementVNode("p",qt,e.toDisplayString(e.unref(r)("upstreams.form.fields.passive_health_checks.help")),1),e.createVNode(O,{class:"passive-health-switch","data-testid":"passive-health-switch",disabled:a.readonly,"model-value":a.passiveHealthSwitch,onChange:g[1]||(g[1]=h=>l("update:passive-health-switch",h))},null,8,["disabled","model-value"])]),_:1}),e.createVNode(s,{autocomplete:"off","data-testid":"upstreams-form-healthchecks-threshold",label:e.unref(r)("upstreams.form.fields.healthchecks_threshold.label"),max:e.unref(at),min:e.unref(tt),"model-value":a.healthchecksThreshold,readonly:a.readonly,type:"number","onUpdate:modelValue":g[2]||(g[2]=h=>l("update:healthchecks-threshold",h))},null,8,["label","max","min","model-value","readonly"])]),_:1},8,["title"])}}}),[["__scopeId","data-v-c2ff95ff"]]),Bt={key:2},Ot={class:"fields-group-title"},Dt={class:"fields-group-text"},$t={class:"fields-group-title"},Pt={class:"fields-group-text"},Mt=Z(e.defineComponent({__name:"UpstreamsFormActiveHealthCheck",props:{config:{type:Object,required:!0},type:{type:String,required:!0},httpPath:{type:String,required:!0},timeout:{type:String,required:!0},concurrency:{type:String,required:!0},httpsSni:{type:String,required:!0},verifySsl:{type:Boolean,required:!0},headers:{type:Array,required:!0},healthyInterval:{type:String,required:!0},healthySuccesses:{type:String,required:!0},healthyHttpStatuses:{type:Array,required:!0},unhealthyInterval:{type:String,required:!0},unhealthyHttpFailures:{type:String,required:!0},unhealthyTcpFailures:{type:String,required:!0},unhealthyHttpStatuses:{type:Array,required:!0},unhealthyTimeouts:{type:String,required:!0},readonly:{type:Boolean,required:!1,default:!1}},emits:["update:type","update:http-path","update:timeout","update:concurrency","update:https-sni","update:verify-ssl","update:headers","update:healthy-interval","update:healthy-successes","update:healthy-http-statuses","update:unhealthy-interval","update:unhealthy-http-failures","update:unhealthy-tcp-failures","update:unhealthy-http-statuses","update:unhealthy-timeouts"],setup(a,{emit:B}){const{i18n:{t:r}}=X.useI18n(),{objectsAreEqual:l}=pe(),n=a,g=B,b=e.ref([{label:r("upstreams.form.healthcheck_type_labels.http"),value:"http",selected:!1},{label:r("upstreams.form.healthcheck_type_labels.https"),value:"https",selected:!1},{label:r("upstreams.form.healthcheck_type_labels.tcp"),value:"tcp",selected:!1},{label:r("upstreams.form.healthcheck_type_labels.grsp"),value:"grpc",selected:!1},{label:r("upstreams.form.healthcheck_type_labels.grsps"),value:"grpcs",selected:!1}]),O=e.computed(()=>n.type==="https"||n.type==="grpcs"),S=e.computed(()=>n.type==="tcp"),{trackNewItems:s}=oe({replaceId:!0}),{trackNewItems:h}=oe({replaceId:!0});e.watch(()=>n.type,(w,d)=>{d==="tcp"&&w!==d&&g("update:unhealthy-tcp-failures","5"),(d==="https"||d==="grpcs")&&w!==d&&(g("update:https-sni",""),g("update:verify-ssl",!1)),d!=="tcp"&&w==="tcp"&&(g("update:http-path","/"),g("update:healthy-http-statuses",he),g("update:unhealthy-http-statuses",de))});const _=e.ref([{key:"",values:""}]);e.watch(()=>n.headers,w=>{l(_.value,w)||(_.value=[...w])},{immediate:!0,deep:!0});const u=()=>{g("update:headers",_.value)},t=()=>{_.value.push({key:"",values:""}),u()},E=w=>{w===0&&_.value.length===1?_.value[0]={key:"",values:""}:_.value.splice(w,1),u()};return(w,d)=>{const V=e.resolveComponent("KExternalLink"),R=e.resolveComponent("KSelect"),T=e.resolveComponent("KInput"),A=e.resolveComponent("KCheckbox"),M=e.resolveComponent("KLabel"),m=e.resolveComponent("KButton"),N=e.resolveComponent("KMultiselect"),H=e.resolveComponent("KCard");return e.openBlock(),e.createBlock(e.unref(p.EntityFormSection),{class:"kong-ui-entities-upstreams-active-healthcheck",title:e.unref(r)("upstreams.form.active_health_check.title")},{description:e.withCtx(()=>[e.createElementVNode("p",null,[e.createTextVNode(e.toDisplayString(e.unref(r)("upstreams.form.active_health_check.help"))+" ",1),e.createVNode(V,{"hide-icon":"",href:e.unref(ge).upstreamObject},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(r)("upstreams.form.buttons.view_documentation")),1)]),_:1},8,["href"])])]),default:e.withCtx(()=>{var U;return[e.createVNode(R,{class:"active-healthcheck-type-select",items:b.value,label:e.unref(r)("upstreams.form.fields.active_healthcheck_type.label"),"model-value":a.type,readonly:a.readonly,width:"100%","onUpdate:modelValue":d[0]||(d[0]=f=>g("update:type",f))},null,8,["items","label","model-value","readonly"]),S.value?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(T,{key:0,autocomplete:"off","data-testid":"active-healthcheck-http-path",label:e.unref(r)("upstreams.form.fields.http_path.label"),"model-value":a.httpPath,readonly:a.readonly,type:"text","onUpdate:modelValue":d[1]||(d[1]=f=>g("update:http-path",f))},null,8,["label","model-value","readonly"])),e.createVNode(T,{autocomplete:"off","data-testid":"active-healthcheck-timeout",label:e.unref(r)("upstreams.form.fields.timeout.label"),max:e.unref(st),min:e.unref(lt),"model-value":a.timeout,readonly:a.readonly,type:"number","onUpdate:modelValue":d[2]||(d[2]=f=>g("update:timeout",f))},null,8,["label","max","min","model-value","readonly"]),e.createVNode(T,{autocomplete:"off","data-testid":"active-healthcheck-concurrency",label:e.unref(r)("upstreams.form.fields.concurrency.label"),max:e.unref(ot),min:e.unref(rt),"model-value":a.concurrency,readonly:a.readonly,type:"number","onUpdate:modelValue":d[3]||(d[3]=f=>g("update:concurrency",f))},null,8,["label","max","min","model-value","readonly"]),O.value?(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createVNode(T,{autocomplete:"off",class:"margin-bottom-6","data-testid":"active-healthcheck-https-sni",label:e.unref(r)("upstreams.form.fields.https_sni.label"),"model-value":a.httpsSni,readonly:a.readonly,type:"text","onUpdate:modelValue":d[4]||(d[4]=f=>g("update:https-sni",f))},null,8,["label","model-value","readonly"]),e.createVNode(A,{"data-testid":"active-healthcheck-verify-ssl",disabled:a.readonly,label:e.unref(r)("upstreams.form.fields.verify_ssl.label"),"model-value":a.verifySsl,"onUpdate:modelValue":d[5]||(d[5]=f=>g("update:verify-ssl",f))},null,8,["disabled","label","model-value"])],64)):e.createCommentVNode("",!0),((U=a.config)==null?void 0:U.app)==="kongManager"?(e.openBlock(),e.createElementBlock("div",Bt,[e.createVNode(M,{info:e.unref(r)("upstreams.form.fields.headers.tooltip_active"),"tooltip-attributes":{maxWidth:"250px"}},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(r)("upstreams.form.fields.headers.label")),1)]),_:1},8,["info"]),e.createElementVNode("div",null,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(_.value,(f,$)=>(e.openBlock(),e.createElementBlock("div",{key:`${f.header}_${$}`,class:e.normalizeClass(["headers-row",{"margin-top-6":$>0}])},[e.createVNode(T,{modelValue:_.value[$].key,"onUpdate:modelValue":D=>_.value[$].key=D,autocomplete:"off","data-testid":`active-healthcheck-headers-header-${$+1}`,readonly:a.readonly,type:"text",onBlur:u},null,8,["modelValue","onUpdate:modelValue","data-testid","readonly"]),e.createVNode(T,{modelValue:_.value[$].values,"onUpdate:modelValue":D=>_.value[$].values=D,autocomplete:"off","data-testid":`active-healthcheck-headers-value-${$+1}`,readonly:a.readonly,type:"text",onBlur:u},null,8,["modelValue","onUpdate:modelValue","data-testid","readonly"]),e.createVNode(m,{appearance:"tertiary",class:"btn-remove","data-testid":"btn-remove-header",disabled:_.value.length===1,icon:"",onClick:D=>E($)},{default:e.withCtx(()=>[e.createVNode(e.unref(ee.TrashIcon),{class:"delete-item",color:_.value.length>1?e.unref(nt):void 0},null,8,["color"])]),_:2},1032,["disabled","onClick"]),_.value&&$===_.value.length-1?(e.openBlock(),e.createBlock(m,{key:0,appearance:"tertiary",class:"btn-add-header","data-testid":"btn-add-header",icon:"",onClick:t},{default:e.withCtx(()=>[e.createVNode(e.unref(ee.AddIcon))]),_:1})):e.createCommentVNode("",!0)],2))),128))])])):e.createCommentVNode("",!0),e.createVNode(H,null,{default:e.withCtx(()=>[e.createElementVNode("h5",Ot,e.toDisplayString(e.unref(r)("upstreams.form.healthy.label")),1),e.createElementVNode("p",Dt,e.toDisplayString(e.unref(r)("upstreams.form.healthy.help")),1),e.createVNode(T,{autocomplete:"off",class:"margin-bottom-6","data-testid":"active-healthcheck-healthy-interval",help:e.unref(r)("upstreams.form.fields.interval.help"),label:e.unref(r)("upstreams.form.fields.interval.label"),max:e.unref(He),min:e.unref(Se),"model-value":a.healthyInterval,readonly:a.readonly,type:"number","onUpdate:modelValue":d[6]||(d[6]=f=>g("update:healthy-interval",f))},null,8,["help","label","max","min","model-value","readonly"]),e.createVNode(T,{autocomplete:"off","data-testid":"active-healthcheck-healthy-successes",label:e.unref(r)("upstreams.form.fields.successes.label"),max:e.unref(ae),min:e.unref(te),"model-value":a.healthySuccesses,readonly:a.readonly,type:"number","onUpdate:modelValue":d[7]||(d[7]=f=>g("update:healthy-successes",f))},null,8,["label","max","min","model-value","readonly"]),S.value?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(N,{key:0,autocomplete:"off",class:"margin-top-6 active-healthcheck-healthy-http-statuses","data-testid":"active-healthcheck-healthy-http-statuses","enable-item-creation":"",items:e.unref(ie),label:e.unref(r)("upstreams.form.fields.http_statuses.label"),"model-value":a.healthyHttpStatuses,readonly:a.readonly,width:"100%",onItemAdded:d[8]||(d[8]=f=>e.unref(s)(f,!0)),onItemRemoved:d[9]||(d[9]=f=>e.unref(s)(f,!1)),"onUpdate:modelValue":d[10]||(d[10]=f=>g("update:healthy-http-statuses",f))},null,8,["items","label","model-value","readonly"]))]),_:1}),e.createVNode(H,null,{default:e.withCtx(()=>[e.createElementVNode("h5",$t,e.toDisplayString(e.unref(r)("upstreams.form.unhealthy.label")),1),e.createElementVNode("p",Pt,e.toDisplayString(e.unref(r)("upstreams.form.unhealthy.help")),1),e.createVNode(T,{autocomplete:"off",class:"margin-bottom-6","data-testid":"active-healthcheck-unhealthy-interval",help:e.unref(r)("upstreams.form.fields.interval.help"),label:e.unref(r)("upstreams.form.fields.interval.label"),max:e.unref(He),min:e.unref(Se),"model-value":a.unhealthyInterval,readonly:a.readonly,type:"number","onUpdate:modelValue":d[11]||(d[11]=f=>g("update:unhealthy-interval",f))},null,8,["help","label","max","min","model-value","readonly"]),e.createVNode(T,{autocomplete:"off",class:"margin-bottom-6","data-testid":"active-healthcheck-unhealthy-tcp-failures",label:e.unref(r)("upstreams.form.fields.tcp_failures.label"),max:e.unref(ae),min:e.unref(te),"model-value":a.unhealthyTcpFailures,readonly:a.readonly,type:"number","onUpdate:modelValue":d[12]||(d[12]=f=>g("update:unhealthy-tcp-failures",f))},null,8,["label","max","min","model-value","readonly"]),S.value?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(T,{key:0,autocomplete:"off",class:"margin-bottom-6","data-testid":"active-healthcheck-unhealthy-http-failures",label:e.unref(r)("upstreams.form.fields.http_failures.label"),max:e.unref(ae),min:e.unref(te),"model-value":a.unhealthyHttpFailures,readonly:a.readonly,type:"number","onUpdate:modelValue":d[13]||(d[13]=f=>g("update:unhealthy-http-failures",f))},null,8,["label","max","min","model-value","readonly"])),S.value?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(N,{key:1,autocomplete:"off",class:"margin-bottom-6 active-healthcheck-unhealthy-http-statuses","data-testid":"active-healthcheck-unhealthy-http-statuses","enable-item-creation":"",items:e.unref(ie),label:e.unref(r)("upstreams.form.fields.http_statuses.label"),"model-value":a.unhealthyHttpStatuses,readonly:a.readonly,width:"100%",onItemAdded:d[14]||(d[14]=f=>e.unref(h)(f,!0)),onItemRemoved:d[15]||(d[15]=f=>e.unref(h)(f,!1)),"onUpdate:modelValue":d[16]||(d[16]=f=>g("update:unhealthy-http-statuses",f))},null,8,["items","label","model-value","readonly"])),e.createVNode(T,{autocomplete:"off","data-testid":"active-healthcheck-unhealthy-timeouts",label:e.unref(r)("upstreams.form.fields.timeouts.label"),max:e.unref(xe),min:e.unref(Ne),"model-value":a.unhealthyTimeouts,readonly:a.readonly,type:"number","onUpdate:modelValue":d[17]||(d[17]=f=>g("update:unhealthy-timeouts",f))},null,8,["label","max","min","model-value","readonly"])]),_:1})]}),_:1},8,["title"])}}}),[["__scopeId","data-v-d079157c"]]),At={class:"fields-group-title"},Kt={class:"fields-group-text"},Rt={class:"fields-group-title"},jt={class:"fields-group-text"},Lt=Z(e.defineComponent({__name:"UpstreamsFormPassiveHealthCheck",props:{type:{type:String,required:!0},healthySuccesses:{type:String,required:!0},healthyHttpStatuses:{type:Array,required:!0},unhealthyTimeouts:{type:String,required:!0},unhealthyHttpFailures:{type:String,required:!0},unhealthyHttpStatuses:{type:Array,required:!0},unhealthyTcpFailures:{type:String,required:!0},readonly:{type:Boolean,required:!1,default:!1}},emits:["update:type","update:healthy-successes","update:healthy-http-statuses","update:unhealthy-timeouts","update:unhealthy-http-failures","update:unhealthy-http-statuses","update:unhealthy-tcp-failures"],setup(a,{emit:B}){const{i18n:{t:r}}=X.useI18n(),l=a,n=B,g=e.ref([{label:r("upstreams.form.healthcheck_type_labels.http"),value:"http",selected:!1},{label:r("upstreams.form.healthcheck_type_labels.https"),value:"https",selected:!1},{label:r("upstreams.form.healthcheck_type_labels.tcp"),value:"tcp",selected:!1},{label:r("upstreams.form.healthcheck_type_labels.grsp"),value:"grpc",selected:!1},{label:r("upstreams.form.healthcheck_type_labels.grsps"),value:"grpcs",selected:!1}]),b=e.computed(()=>l.type==="tcp"),{trackNewItems:O}=oe({replaceId:!0}),{trackNewItems:S}=oe({replaceId:!0});return e.watch(()=>l.type,(s,h)=>{h==="tcp"&&s!==h&&n("update:unhealthy-tcp-failures","5"),h!=="tcp"&&s==="tcp"&&(n("update:healthy-http-statuses",ce),n("update:unhealthy-http-statuses",ue))}),(s,h)=>{const _=e.resolveComponent("KExternalLink"),u=e.resolveComponent("KSelect"),t=e.resolveComponent("KInput"),E=e.resolveComponent("KMultiselect"),w=e.resolveComponent("KCard");return e.openBlock(),e.createBlock(e.unref(p.EntityFormSection),{class:"kong-ui-entities-upstreams-passive-healthcheck",title:e.unref(r)("upstreams.form.passive_health_check.title")},{description:e.withCtx(()=>[e.createElementVNode("p",null,[e.createTextVNode(e.toDisplayString(e.unref(r)("upstreams.form.passive_health_check.help"))+" ",1),e.createVNode(_,{"hide-icon":"",href:e.unref(ge).upstreamObject},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(r)("upstreams.form.buttons.view_documentation")),1)]),_:1},8,["href"])])]),default:e.withCtx(()=>[e.createVNode(u,{class:"passive-healthcheck-type-select",items:g.value,label:e.unref(r)("upstreams.form.fields.passive_health_check_type.label"),"model-value":a.type,readonly:a.readonly,width:"100%","onUpdate:modelValue":h[0]||(h[0]=d=>n("update:type",d))},null,8,["items","label","model-value","readonly"]),e.createVNode(w,null,{default:e.withCtx(()=>[e.createElementVNode("h5",At,e.toDisplayString(e.unref(r)("upstreams.form.passive_healthy.label")),1),e.createElementVNode("p",Kt,e.toDisplayString(e.unref(r)("upstreams.form.passive_healthy.help")),1),e.createVNode(t,{autocomplete:"off","data-testid":"passive-healthcheck-healthy-successes",label:e.unref(r)("upstreams.form.fields.successes.label"),max:e.unref(ae),min:e.unref(te),"model-value":a.healthySuccesses,readonly:a.readonly,type:"number","onUpdate:modelValue":h[1]||(h[1]=d=>n("update:healthy-successes",d))},null,8,["label","max","min","model-value","readonly"]),b.value?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(E,{key:0,class:"margin-top-6 passive-healthcheck-healthy-http-statuses","enable-item-creation":"",items:e.unref(ie),label:e.unref(r)("upstreams.form.fields.http_statuses.label"),"model-value":a.healthyHttpStatuses,readonly:a.readonly,width:"100%",onItemAdded:h[2]||(h[2]=d=>e.unref(O)(d,!0)),onItemRemoved:h[3]||(h[3]=d=>e.unref(O)(d,!1)),"onUpdate:modelValue":h[4]||(h[4]=d=>n("update:healthy-http-statuses",d))},null,8,["items","label","model-value","readonly"]))]),_:1}),e.createVNode(w,null,{default:e.withCtx(()=>[e.createElementVNode("h5",Rt,e.toDisplayString(e.unref(r)("upstreams.form.passive_unhealthy.label")),1),e.createElementVNode("p",jt,e.toDisplayString(e.unref(r)("upstreams.form.passive_unhealthy.help")),1),e.createVNode(t,{autocomplete:"off","data-testid":"passive-healthcheck-unhealthy-timeouts",label:e.unref(r)("upstreams.form.fields.timeouts.label"),max:e.unref(xe),min:e.unref(Ne),"model-value":a.unhealthyTimeouts,readonly:a.readonly,type:"number","onUpdate:modelValue":h[5]||(h[5]=d=>n("update:unhealthy-timeouts",d))},null,8,["label","max","min","model-value","readonly"]),e.createVNode(t,{autocomplete:"off",class:"margin-top-6","data-testid":"passive-healthcheck-unhealthy-tcp-failures",label:e.unref(r)("upstreams.form.fields.tcp_failures.label"),max:e.unref(ae),min:e.unref(te),"model-value":a.unhealthyTcpFailures,readonly:a.readonly,type:"number","onUpdate:modelValue":h[6]||(h[6]=d=>n("update:unhealthy-tcp-failures",d))},null,8,["label","max","min","model-value","readonly"]),b.value?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(t,{key:0,autocomplete:"off",class:"margin-top-6","data-testid":"passive-healthcheck-unhealthy-http-failures",label:e.unref(r)("upstreams.form.fields.http_failures.label"),max:e.unref(ae),min:e.unref(te),"model-value":a.unhealthyHttpFailures,readonly:a.readonly,type:"number","onUpdate:modelValue":h[7]||(h[7]=d=>n("update:unhealthy-http-failures",d))},null,8,["label","max","min","model-value","readonly"])),b.value?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(E,{key:1,autocomplete:"off",class:"margin-top-6 passive-healthcheck-unhealthy-http-statuses","data-testid":"passive-healthcheck-unhealthy-http-statuses","enable-item-creation":"",items:e.unref(ie),label:e.unref(r)("upstreams.form.fields.http_statuses.label"),"model-value":a.unhealthyHttpStatuses,readonly:a.readonly,width:"100%",onItemAdded:h[8]||(h[8]=d=>e.unref(S)(d,!0)),onItemRemoved:h[9]||(h[9]=d=>e.unref(S)(d,!1)),"onUpdate:modelValue":h[10]||(h[10]=d=>n("update:unhealthy-http-statuses",d))},null,8,["items","label","model-value","readonly"]))]),_:1})]),_:1},8,["title"])}}}),[["__scopeId","data-v-7c20c5c5"]]),Qt={class:"kong-ui-entities-upstreams-form"},Wt=Z(e.defineComponent({__name:"UpstreamsForm",props:{config:{type:Object,required:!0,validator:a=>!(!a||!["konnect","kongManager"].includes(a==null?void 0:a.app)||(a==null?void 0:a.app)==="konnect"&&!(a!=null&&a.controlPlaneId)||(a==null?void 0:a.app)==="kongManager"&&typeof(a==null?void 0:a.workspace)!="string"||!(a!=null&&a.cancelRoute))},upstreamId:{type:String,required:!1,default:""}},emits:["update","error","loading"],setup(a,{emit:B}){var C;const r=a,l=B,{inRange:n,stringToNumberArray:g,upstreamsResponseToFields:b,getDefaultUpstreamFields:O,objectsAreEqual:S,cloneDeep:s}=pe(),{axiosInstance:h}=p.useAxios((C=r.config)==null?void 0:C.axiosRequestConfig),{getMessageFromError:_}=p.useErrors(),u=we.useRouter(),t=e.reactive({fields:O(),readonly:!1,errorMessage:""}),E=e.reactive(O()),w=e.computed(()=>!S(t.fields,E)),d=c=>{t.fields.activeHealthCheck.healthy.interval=c?"5":"0",t.fields.activeHealthCheck.healthy.successes=c?"5":"0",t.fields.activeHealthCheck.healthy.httpStatuses=c?he:[],t.fields.activeHealthCheck.unhealthy.httpStatuses=c?de:[],t.fields.activeHealthCheck.unhealthy.httpFailures=c?"5":"0",t.fields.activeHealthCheck.unhealthy.interval=c?"5":"0",t.fields.activeHealthCheck.unhealthy.tcpFailures=c?"5":"0",t.fields.activeHealthCheck.unhealthy.timeouts=c?"5":"0",t.fields.activeHealthCheck.timeout=c?"1":"0",t.fields.activeHealthCheck.concurrency=c?"10":"0",t.fields.activeHealthCheck.httpPath=c?"/":"",t.fields.activeHealthCheck.httpsSni="",t.fields.activeHealthCheck.type="http"},V=c=>{t.fields.passiveHealthCheck.healthy.successes=c?"80":"0",t.fields.passiveHealthCheck.healthy.httpStatuses=c?ce:[],t.fields.passiveHealthCheck.unhealthy.timeouts=c?"5":"0",t.fields.passiveHealthCheck.unhealthy.tcpFailures=c?"5":"0",t.fields.passiveHealthCheck.unhealthy.httpFailures=c?"5":"0",t.fields.passiveHealthCheck.unhealthy.httpStatuses=c?ue:[],t.fields.passiveHealthCheck.type="http"},R=e.computed(()=>t.fields.slots?n(t.fields.slots,ke,Ce):!0),T=e.computed(()=>t.fields.hashOn==="header"?!!t.fields.hashOnHeader:!0),A=e.computed(()=>t.fields.hashOn==="cookie"||t.fields.hashFallback==="cookie"?!!t.fields.hashOnCookie:!0),M=e.computed(()=>t.fields.hashOn==="cookie"||t.fields.hashFallback==="cookie"?!!t.fields.hashOnCookiePath:!0),m=e.computed(()=>t.fields.hashOn==="query_arg"?!!t.fields.hashOnQueryArgument:!0),N=e.computed(()=>t.fields.hashOn==="uri_capture"?!!t.fields.hashOnUriCapture:!0),H=e.computed(()=>t.fields.hashFallback==="header"?!!t.fields.hashFallbackHeader:!0),U=e.computed(()=>t.fields.hashFallback==="query_arg"?!!t.fields.hashFallbackQueryArgument:!0),f=e.computed(()=>t.fields.hashFallback==="uri_capture"?!!t.fields.hashFallbackUriCapture:!0),$=e.computed(()=>!!t.fields.name&&R.value&&T.value&&A.value&&M.value&&m.value&&N.value&&H.value&&U.value&&f.value),D=e.computed(()=>r.upstreamId?p.EntityBaseFormType.Edit:p.EntityBaseFormType.Create),j=e.computed(()=>{var c,o;return(o=re.form[(c=r.config)==null?void 0:c.app])==null?void 0:o.edit}),J=c=>{Object.assign(t.fields,b(c)),Object.assign(E,s(t.fields))},I=()=>{var c;u.push(((c=r.config)==null?void 0:c.cancelRoute)||{name:"upstreams-list"})},F=c=>{l("loading",c)},K=c=>{l("error",c)},z=e.computed(()=>{const c={};return t.fields.hashOn==="header"&&(c.hash_on_header=t.fields.hashOnHeader),(t.fields.hashOn==="cookie"||t.fields.hashFallback==="cookie")&&(c.hash_on_cookie=t.fields.hashOnCookie,c.hash_on_cookie_path=t.fields.hashOnCookiePath),t.fields.hashOn==="query_arg"&&(c.hash_on_query_arg=t.fields.hashOnQueryArgument),t.fields.hashOn==="uri_capture"&&(c.hash_on_uri_capture=t.fields.hashOnUriCapture),t.fields.hashFallback==="header"&&(c.hash_fallback_header=t.fields.hashFallbackHeader),t.fields.hashFallback==="query_arg"&&(c.hash_fallback_query_arg=t.fields.hashFallbackQueryArgument),t.fields.hashFallback==="uri_capture"&&(c.hash_fallback_uri_capture=t.fields.hashFallbackUriCapture),c}),Q=e.computed(()=>{var o,i,x,P;if(!t.fields.activeHealthSwitch)return((o=r.config)==null?void 0:o.app)==="kongManager"&&D.value===p.EntityBaseFormType.Edit?{type:t.fields.activeHealthCheck.type,headers:{},healthy:{interval:0,successes:0},unhealthy:{interval:0,http_failures:0,tcp_failures:0,timeouts:0}}:void 0;const c={type:t.fields.activeHealthCheck.type,healthy:{interval:Number(t.fields.activeHealthCheck.healthy.interval||"0"),successes:Number(t.fields.activeHealthCheck.healthy.successes||"0")},unhealthy:{interval:Number(t.fields.activeHealthCheck.unhealthy.interval||"0"),timeouts:Number(t.fields.activeHealthCheck.unhealthy.timeouts||"0"),tcp_failures:Number(t.fields.activeHealthCheck.unhealthy.tcpFailures||"0")},timeout:Number(t.fields.activeHealthCheck.timeout||"1"),concurrency:Number(t.fields.activeHealthCheck.concurrency||"10")};if(t.fields.activeHealthCheck.type!=="tcp"){c.http_path=t.fields.activeHealthCheck.httpPath||"/",c.unhealthy.http_failures=Number(t.fields.activeHealthCheck.unhealthy.httpFailures||"5");const G=(i=t.fields.activeHealthCheck.unhealthy.httpStatuses)!=null&&i.length?t.fields.activeHealthCheck.unhealthy.httpStatuses:de;c.unhealthy.http_statuses=g(G);const v=(x=t.fields.activeHealthCheck.healthy.httpStatuses)!=null&&x.length?t.fields.activeHealthCheck.healthy.httpStatuses:he;c.healthy.http_statuses=g(v)}return["https","grpcs"].includes(t.fields.activeHealthCheck.type)&&(c.https_sni=t.fields.activeHealthCheck.httpsSni||null,c.https_verify_certificate=t.fields.activeHealthCheck.verifySsl),((P=r.config)==null?void 0:P.app)==="kongManager"&&(c.headers=t.fields.activeHealthCheck.headers.reduce((G,v)=>{var Y,ne;return v.key?{...G,[v.key]:(ne=(Y=v.values.split(","))==null?void 0:Y.map(be=>be.trim()))==null?void 0:ne.filter(Boolean)}:G},{})),c}),W=e.computed(()=>{var o,i,x;if(!t.fields.passiveHealthSwitch)return((o=r.config)==null?void 0:o.app)==="kongManager"&&D.value===p.EntityBaseFormType.Edit?{type:t.fields.passiveHealthCheck.type,healthy:{successes:0},unhealthy:{timeouts:0,tcp_failures:0,http_failures:0}}:void 0;const c={type:t.fields.passiveHealthCheck.type,healthy:{successes:Number(t.fields.passiveHealthCheck.healthy.successes||"0")},unhealthy:{timeouts:Number(t.fields.passiveHealthCheck.unhealthy.timeouts||"0"),tcp_failures:Number(t.fields.passiveHealthCheck.unhealthy.tcpFailures||"5")}};if(t.fields.passiveHealthCheck.type!=="tcp"){c.unhealthy.http_failures=Number(t.fields.passiveHealthCheck.unhealthy.httpFailures||"5");const P=(i=t.fields.passiveHealthCheck.healthy.httpStatuses)!=null&&i.length?t.fields.passiveHealthCheck.healthy.httpStatuses:ce;c.healthy.http_statuses=g(P);const G=(x=t.fields.passiveHealthCheck.unhealthy.httpStatuses)!=null&&x.length?t.fields.passiveHealthCheck.unhealthy.httpStatuses:ue;c.unhealthy.http_statuses=g(G)}return c}),k=e.computed(()=>{const c={name:t.fields.name,slots:Number(t.fields.slots),algorithm:t.fields.algorithm,hash_on:t.fields.hashOn,hash_fallback:t.fields.hashFallback,healthchecks:{threshold:Number(t.fields.healthchecksThreshold||"0")},host_header:t.fields.hostHeader||null,client_certificate:t.fields.clientCertificate?{id:t.fields.clientCertificate}:null},o=Q.value,i=W.value,x={...c,healthchecks:{...c.healthchecks,active:o||void 0,passive:i||void 0}};return x.tags=t.fields.tags?t.fields.tags.split(",").map(P=>String(P||"").trim()).filter(P=>P!==""):[],Object.assign(x,z.value),x}),q=c=>{var i,x,P,G,v,Y;let o=`${(i=r.config)==null?void 0:i.apiBaseUrl}${re.form[(x=r.config)==null?void 0:x.app][c]}`;return((P=r.config)==null?void 0:P.app)==="konnect"?o=o.replace(/{controlPlaneId}/gi,((G=r.config)==null?void 0:G.controlPlaneId)||""):((v=r.config)==null?void 0:v.app)==="kongManager"&&(o=o.replace(/\/{workspace}/gi,(Y=r.config)!=null&&Y.workspace?`/${r.config.workspace}`:"")),o=o.replace(/{id}/gi,r.upstreamId),o},y=async()=>{var c;try{t.readonly=!0,await h.post(q("validate"),k.value);let o;D.value===p.EntityBaseFormType.Create?o=await h.post(q("create"),k.value):D.value===p.EntityBaseFormType.Edit&&(o=((c=r.config)==null?void 0:c.app)==="konnect"?await h.put(q("edit"),k.value):await h.patch(q("edit"),k.value)),l("update",o==null?void 0:o.data)}catch(o){t.errorMessage=_(o),l("error",o)}finally{t.readonly=!1}};return(c,o)=>(e.openBlock(),e.createElementBlock("div",Qt,[e.createVNode(e.unref(p.EntityBaseForm),{"can-submit":$.value&&w.value,config:a.config,"edit-id":a.upstreamId,"entity-type":e.unref(p.SupportedEntityType).Upstream,"error-message":t.errorMessage,"fetch-url":j.value,"form-fields":k.value,"is-readonly":t.readonly,onCancel:I,"onFetch:error":K,"onFetch:success":J,onLoading:F,onSubmit:y},{default:e.withCtx(()=>[e.createVNode(Vt,{"client-certificate":t.fields.clientCertificate,"onUpdate:clientCertificate":o[0]||(o[0]=i=>t.fields.clientCertificate=i),"host-header":t.fields.hostHeader,"onUpdate:hostHeader":o[1]||(o[1]=i=>t.fields.hostHeader=i),name:t.fields.name,"onUpdate:name":o[2]||(o[2]=i=>t.fields.name=i),tags:t.fields.tags,"onUpdate:tags":o[3]||(o[3]=i=>t.fields.tags=i),config:a.config,readonly:t.readonly},null,8,["client-certificate","host-header","name","tags","config","readonly"]),e.createVNode(Tt,{algorithm:t.fields.algorithm,"onUpdate:algorithm":o[4]||(o[4]=i=>t.fields.algorithm=i),"hash-fallback":t.fields.hashFallback,"onUpdate:hashFallback":o[5]||(o[5]=i=>t.fields.hashFallback=i),"hash-fallback-header":t.fields.hashFallbackHeader,"onUpdate:hashFallbackHeader":o[6]||(o[6]=i=>t.fields.hashFallbackHeader=i),"hash-fallback-query-argument":t.fields.hashFallbackQueryArgument,"onUpdate:hashFallbackQueryArgument":o[7]||(o[7]=i=>t.fields.hashFallbackQueryArgument=i),"hash-fallback-uri-capture":t.fields.hashFallbackUriCapture,"onUpdate:hashFallbackUriCapture":o[8]||(o[8]=i=>t.fields.hashFallbackUriCapture=i),"hash-on":t.fields.hashOn,"onUpdate:hashOn":o[9]||(o[9]=i=>t.fields.hashOn=i),"hash-on-cookie":t.fields.hashOnCookie,"onUpdate:hashOnCookie":o[10]||(o[10]=i=>t.fields.hashOnCookie=i),"hash-on-cookie-path":t.fields.hashOnCookiePath,"onUpdate:hashOnCookiePath":o[11]||(o[11]=i=>t.fields.hashOnCookiePath=i),"hash-on-header":t.fields.hashOnHeader,"onUpdate:hashOnHeader":o[12]||(o[12]=i=>t.fields.hashOnHeader=i),"hash-on-query-argument":t.fields.hashOnQueryArgument,"onUpdate:hashOnQueryArgument":o[13]||(o[13]=i=>t.fields.hashOnQueryArgument=i),"hash-on-uri-capture":t.fields.hashOnUriCapture,"onUpdate:hashOnUriCapture":o[14]||(o[14]=i=>t.fields.hashOnUriCapture=i),slots:t.fields.slots,"onUpdate:slots":o[15]||(o[15]=i=>t.fields.slots=i),readonly:t.readonly},null,8,["algorithm","hash-fallback","hash-fallback-header","hash-fallback-query-argument","hash-fallback-uri-capture","hash-on","hash-on-cookie","hash-on-cookie-path","hash-on-header","hash-on-query-argument","hash-on-uri-capture","slots","readonly"]),e.createVNode(Et,{"active-health-switch":t.fields.activeHealthSwitch,"onUpdate:activeHealthSwitch":[o[16]||(o[16]=i=>t.fields.activeHealthSwitch=i),d],"healthchecks-threshold":t.fields.healthchecksThreshold,"onUpdate:healthchecksThreshold":o[17]||(o[17]=i=>t.fields.healthchecksThreshold=i),"passive-health-switch":t.fields.passiveHealthSwitch,"onUpdate:passiveHealthSwitch":[o[18]||(o[18]=i=>t.fields.passiveHealthSwitch=i),V],readonly:t.readonly},null,8,["active-health-switch","healthchecks-threshold","passive-health-switch","readonly"]),t.fields.activeHealthSwitch?(e.openBlock(),e.createBlock(Mt,{key:0,concurrency:t.fields.activeHealthCheck.concurrency,"onUpdate:concurrency":o[19]||(o[19]=i=>t.fields.activeHealthCheck.concurrency=i),headers:t.fields.activeHealthCheck.headers,"onUpdate:headers":o[20]||(o[20]=i=>t.fields.activeHealthCheck.headers=i),"healthy-http-statuses":t.fields.activeHealthCheck.healthy.httpStatuses,"onUpdate:healthyHttpStatuses":o[21]||(o[21]=i=>t.fields.activeHealthCheck.healthy.httpStatuses=i),"healthy-interval":t.fields.activeHealthCheck.healthy.interval,"onUpdate:healthyInterval":o[22]||(o[22]=i=>t.fields.activeHealthCheck.healthy.interval=i),"healthy-successes":t.fields.activeHealthCheck.healthy.successes,"onUpdate:healthySuccesses":o[23]||(o[23]=i=>t.fields.activeHealthCheck.healthy.successes=i),"http-path":t.fields.activeHealthCheck.httpPath,"onUpdate:httpPath":o[24]||(o[24]=i=>t.fields.activeHealthCheck.httpPath=i),"https-sni":t.fields.activeHealthCheck.httpsSni,"onUpdate:httpsSni":o[25]||(o[25]=i=>t.fields.activeHealthCheck.httpsSni=i),timeout:t.fields.activeHealthCheck.timeout,"onUpdate:timeout":o[26]||(o[26]=i=>t.fields.activeHealthCheck.timeout=i),type:t.fields.activeHealthCheck.type,"onUpdate:type":o[27]||(o[27]=i=>t.fields.activeHealthCheck.type=i),"unhealthy-http-failures":t.fields.activeHealthCheck.unhealthy.httpFailures,"onUpdate:unhealthyHttpFailures":o[28]||(o[28]=i=>t.fields.activeHealthCheck.unhealthy.httpFailures=i),"unhealthy-http-statuses":t.fields.activeHealthCheck.unhealthy.httpStatuses,"onUpdate:unhealthyHttpStatuses":o[29]||(o[29]=i=>t.fields.activeHealthCheck.unhealthy.httpStatuses=i),"unhealthy-interval":t.fields.activeHealthCheck.unhealthy.interval,"onUpdate:unhealthyInterval":o[30]||(o[30]=i=>t.fields.activeHealthCheck.unhealthy.interval=i),"unhealthy-tcp-failures":t.fields.activeHealthCheck.unhealthy.tcpFailures,"onUpdate:unhealthyTcpFailures":o[31]||(o[31]=i=>t.fields.activeHealthCheck.unhealthy.tcpFailures=i),"unhealthy-timeouts":t.fields.activeHealthCheck.unhealthy.timeouts,"onUpdate:unhealthyTimeouts":o[32]||(o[32]=i=>t.fields.activeHealthCheck.unhealthy.timeouts=i),"verify-ssl":t.fields.activeHealthCheck.verifySsl,"onUpdate:verifySsl":o[33]||(o[33]=i=>t.fields.activeHealthCheck.verifySsl=i),config:a.config,readonly:t.readonly},null,8,["concurrency","headers","healthy-http-statuses","healthy-interval","healthy-successes","http-path","https-sni","timeout","type","unhealthy-http-failures","unhealthy-http-statuses","unhealthy-interval","unhealthy-tcp-failures","unhealthy-timeouts","verify-ssl","config","readonly"])):e.createCommentVNode("",!0),t.fields.passiveHealthSwitch?(e.openBlock(),e.createBlock(Lt,{key:1,"healthy-http-statuses":t.fields.passiveHealthCheck.healthy.httpStatuses,"onUpdate:healthyHttpStatuses":o[34]||(o[34]=i=>t.fields.passiveHealthCheck.healthy.httpStatuses=i),"healthy-successes":t.fields.passiveHealthCheck.healthy.successes,"onUpdate:healthySuccesses":o[35]||(o[35]=i=>t.fields.passiveHealthCheck.healthy.successes=i),type:t.fields.passiveHealthCheck.type,"onUpdate:type":o[36]||(o[36]=i=>t.fields.passiveHealthCheck.type=i),"unhealthy-http-failures":t.fields.passiveHealthCheck.unhealthy.httpFailures,"onUpdate:unhealthyHttpFailures":o[37]||(o[37]=i=>t.fields.passiveHealthCheck.unhealthy.httpFailures=i),"unhealthy-http-statuses":t.fields.passiveHealthCheck.unhealthy.httpStatuses,"onUpdate:unhealthyHttpStatuses":o[38]||(o[38]=i=>t.fields.passiveHealthCheck.unhealthy.httpStatuses=i),"unhealthy-tcp-failures":t.fields.passiveHealthCheck.unhealthy.tcpFailures,"onUpdate:unhealthyTcpFailures":o[39]||(o[39]=i=>t.fields.passiveHealthCheck.unhealthy.tcpFailures=i),"unhealthy-timeouts":t.fields.passiveHealthCheck.unhealthy.timeouts,"onUpdate:unhealthyTimeouts":o[40]||(o[40]=i=>t.fields.passiveHealthCheck.unhealthy.timeouts=i),readonly:t.readonly},null,8,["healthy-http-statuses","healthy-successes","type","unhealthy-http-failures","unhealthy-http-statuses","unhealthy-tcp-failures","unhealthy-timeouts","readonly"])):e.createCommentVNode("",!0)]),_:1},8,["can-submit","config","edit-id","entity-type","error-message","fetch-url","form-fields","is-readonly"])]))}}),[["__scopeId","data-v-ccf8318e"]]),Jt={"data-testid":"client_certificate-plain-text"},zt=e.defineComponent({__name:"UpstreamsConfigCard",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 B=a,{i18n:{t:r},i18nT:l}=X.useI18n(),{getPropValue:n}=p.useHelpers(),g=e.computed(()=>re.form[B.config.app].edit),b=e.ref({id:{},name:{},created_at:{},updated_at:{},algorithm:{order:5,section:p.ConfigurationSchemaSection.Basic,tooltip:r("upstreams.form.fields.algorithm.tooltip")},slots:{order:6,section:p.ConfigurationSchemaSection.Basic},hash_on:{order:7,section:p.ConfigurationSchemaSection.Basic},hash_on_header:{order:8,section:p.ConfigurationSchemaSection.Basic},hash_on_uri_capture:{order:9,section:p.ConfigurationSchemaSection.Basic},hash_on_query_arg:{order:10,section:p.ConfigurationSchemaSection.Basic,label:`${r("upstreams.form.fields.hash_on.label")} ${r("upstreams.form.hash_labels.query_argument")}`},hash_on_cookie:{order:11,section:p.ConfigurationSchemaSection.Basic},hash_on_cookie_path:{order:12,section:p.ConfigurationSchemaSection.Basic},healthchecks:{order:13,section:p.ConfigurationSchemaSection.Basic,type:p.ConfigurationSchemaType.Json},tags:{order:14,tooltip:r("upstreams.form.hash_tooltips.tags")},hash_fallback:{order:1},hash_fallback_header:{order:2},hash_fallback_query_arg:{order:3,label:`${r("upstreams.form.fields.hash_fallback.label")} ${r("upstreams.form.hash_labels.query_argument")}`},hash_fallback_uri_capture:{order:4},host_header:{order:5},use_srv_name:{order:6},client_certificate:{order:7,tooltip:r("upstreams.form.hash_tooltips.client_certificate")}});return(O,S)=>(e.openBlock(),e.createElementBlock("div",null,[e.createVNode(e.unref(p.EntityBaseConfigCard),{config:a.config,"config-card-doc":a.configCardDoc,"config-schema":b.value,"entity-type":e.unref(p.SupportedEntityType).Upstream,"fetch-url":g.value,"hide-title":a.hideTitle,"onFetch:error":S[0]||(S[0]=s=>O.$emit("fetch:error",s)),"onFetch:success":S[1]||(S[1]=s=>O.$emit("fetch:success",s)),onLoading:S[2]||(S[2]=s=>O.$emit("loading",s))},{"name-label-tooltip":e.withCtx(()=>[e.createVNode(e.unref(l),{keypath:"upstreams.form.fields.name.tooltip",scope:"global"},{host:e.withCtx(()=>[e.createElementVNode("code",null,e.toDisplayString(e.unref(r)("upstreams.form.fields.name.host")),1)]),_:1})]),"hash_on-label-tooltip":e.withCtx(({row:s})=>[e.createVNode(e.unref(l),{keypath:"upstreams.form.fields.hash_on.tooltip",scope:"global"},{result:e.withCtx(()=>[e.createElementVNode("code",null,e.toDisplayString(s.value),1)]),_:2},1024)]),"hash_on_header-label-tooltip":e.withCtx(()=>[e.createVNode(e.unref(l),{keypath:"upstreams.form.hash_tooltips.hash_on_header.text",scope:"global"},{hash_on:e.withCtx(()=>[e.createElementVNode("code",null,e.toDisplayString(e.unref(r)("upstreams.form.hash_tooltips.hash_on_header.hash_on")),1)]),header:e.withCtx(()=>[e.createElementVNode("code",null,e.toDisplayString(e.unref(r)("upstreams.form.hash_tooltips.hash_on_header.header")),1)]),_:1})]),"hash_on_uri_capture-label-tooltip":e.withCtx(()=>[e.createVNode(e.unref(l),{keypath:"upstreams.form.hash_tooltips.hash_on_uri_capture.text",scope:"global"},{hash_on:e.withCtx(()=>[e.createElementVNode("code",null,e.toDisplayString(e.unref(r)("upstreams.form.hash_tooltips.hash_on_uri_capture.hash_on")),1)]),uri_capture:e.withCtx(()=>[e.createElementVNode("code",null,e.toDisplayString(e.unref(r)("upstreams.form.hash_tooltips.hash_on_uri_capture.uri_capture")),1)]),_:1})]),"hash_on_query_arg-label-tooltip":e.withCtx(()=>[e.createVNode(e.unref(l),{keypath:"upstreams.form.hash_tooltips.hash_on_query_arg.text",scope:"global"},{hash_on:e.withCtx(()=>[e.createElementVNode("code",null,e.toDisplayString(e.unref(r)("upstreams.form.hash_tooltips.hash_on_query_arg.hash_on")),1)]),query_arg:e.withCtx(()=>[e.createElementVNode("code",null,e.toDisplayString(e.unref(r)("upstreams.form.hash_tooltips.hash_on_query_arg.query_arg")),1)]),_:1})]),"hash_on_cookie-label-tooltip":e.withCtx(()=>[e.createVNode(e.unref(l),{keypath:"upstreams.form.hash_tooltips.hash_on_cookie.text",scope:"global"},{hash_on:e.withCtx(()=>[e.createElementVNode("code",null,e.toDisplayString(e.unref(r)("upstreams.form.hash_tooltips.hash_on_cookie.hash_on")),1)]),hash_fallback:e.withCtx(()=>[e.createElementVNode("code",null,e.toDisplayString(e.unref(r)("upstreams.form.hash_tooltips.hash_on_cookie.hash_fallback")),1)]),cookie:e.withCtx(()=>[e.createElementVNode("code",null,e.toDisplayString(e.unref(r)("upstreams.form.hash_tooltips.hash_on_cookie.cookie")),1)]),_:1})]),"hash_on_cookie_path-label-tooltip":e.withCtx(()=>[e.createVNode(e.unref(l),{keypath:"upstreams.form.hash_tooltips.hash_on_cookie_path.text",scope:"global"},{hash_on:e.withCtx(()=>[e.createElementVNode("code",null,e.toDisplayString(e.unref(r)("upstreams.form.hash_tooltips.hash_on_cookie_path.hash_on")),1)]),hash_fallback:e.withCtx(()=>[e.createElementVNode("code",null,e.toDisplayString(e.unref(r)("upstreams.form.hash_tooltips.hash_on_cookie_path.hash_fallback")),1)]),cookie:e.withCtx(()=>[e.createElementVNode("code",null,e.toDisplayString(e.unref(r)("upstreams.form.hash_tooltips.hash_on_cookie_path.cookie")),1)]),_:1})]),"slots-label-tooltip":e.withCtx(()=>[e.createVNode(e.unref(l),{keypath:"upstreams.form.hash_tooltips.slots.text",scope:"global"},{algorithm:e.withCtx(()=>[e.createElementVNode("code",null,e.toDisplayString(e.unref(r)("upstreams.form.hash_tooltips.slots.algorithm")),1)]),round_robin:e.withCtx(()=>[e.createElementVNode("code",null,e.toDisplayString(e.unref(r)("upstreams.form.hash_tooltips.slots.round_robin")),1)]),consistent_hashing:e.withCtx(()=>[e.createElementVNode("code",null,e.toDisplayString(e.unref(r)("upstreams.form.hash_tooltips.slots.consistent_hashing")),1)]),min:e.withCtx(()=>S[3]||(S[3]=[e.createElementVNode("code",null,"10",-1)])),max:e.withCtx(()=>S[4]||(S[4]=[e.createElementVNode("code",null,"65536",-1)])),_:1})]),"hash_fallback-label-tooltip":e.withCtx(()=>[e.createVNode(e.unref(l),{keypath:"upstreams.form.hash_tooltips.hash_fallback.text",scope:"global"},{hash_on:e.withCtx(()=>[e.createElementVNode("code",null,e.toDisplayString(e.unref(r)("upstreams.form.hash_tooltips.hash_fallback.hash_on")),1)]),cookie:e.withCtx(()=>[e.createElementVNode("code",null,e.toDisplayString(e.unref(r)("upstreams.form.hash_tooltips.hash_fallback.cookie")),1)]),_:1})]),"hash_fallback_header-label-tooltip":e.withCtx(()=>[e.createVNode(e.unref(l),{keypath:"upstreams.form.hash_tooltips.hash_fallback_header.text",scope:"global"},{hash_fallback:e.withCtx(()=>[e.createElementVNode("code",null,e.toDisplayString(e.unref(r)("upstreams.form.hash_tooltips.hash_fallback_header.hash_fallback")),1)]),header:e.withCtx(()=>[e.createElementVNode("code",null,e.toDisplayString(e.unref(r)("upstreams.form.hash_tooltips.hash_fallback_header.header")),1)]),_:1})]),"hash_fallback_query_arg-label-tooltip":e.withCtx(()=>[e.createVNode(e.unref(l),{keypath:"upstreams.form.hash_tooltips.hash_fallback_query_arg.text",scope:"global"},{hash_fallback:e.withCtx(()=>[e.createElementVNode("code",null,e.toDisplayString(e.unref(r)("upstreams.form.hash_tooltips.hash_fallback_query_arg.hash_fallback")),1)]),query_arg:e.withCtx(()=>[e.createElementVNode("code",null,e.toDisplayString(e.unref(r)("upstreams.form.hash_tooltips.hash_fallback_query_arg.query_arg")),1)]),_:1})]),"hash_fallback_uri_capture-label-tooltip":e.withCtx(()=>[e.createVNode(e.unref(l),{keypath:"upstreams.form.hash_tooltips.hash_fallback_uri_capture.text",scope:"global"},{hash_fallback:e.withCtx(()=>[e.createElementVNode("code",null,e.toDisplayString(e.unref(r)("upstreams.form.hash_tooltips.hash_fallback_uri_capture.hash_fallback")),1)]),uri_capture:e.withCtx(()=>[e.createElementVNode("code",null,e.toDisplayString(e.unref(r)("upstreams.form.hash_tooltips.hash_fallback_uri_capture.uri_capture")),1)]),_:1})]),"host_header-label-tooltip":e.withCtx(()=>[e.createVNode(e.unref(l),{keypath:"upstreams.form.hash_tooltips.host_header.text",scope:"global"},{host:e.withCtx(()=>[e.createElementVNode("code",null,e.toDisplayString(e.unref(r)("upstreams.form.hash_tooltips.host_header.host")),1)]),_:1})]),client_certificate:e.withCtx(s=>{var h;return[e.createElementVNode("div",null,[e.createElementVNode("div",Jt,[e.createElementVNode("span",null,e.toDisplayString((h=e.unref(n)("rowValue",s))==null?void 0:h.id),1)])])]}),_:1},8,["config","config-card-doc","config-schema","entity-type","fetch-url","hide-title"])]))}});L.TargetForm=Te,L.TargetsList=_t,L.UpstreamsConfigCard=zt,L.UpstreamsForm=Wt,L.UpstreamsList=mt,Object.defineProperty(L,Symbol.toStringTag,{value:"Module"})});
|
|
1
|
+
(function(L,e){typeof exports=="object"&&typeof module<"u"?e(exports,require("vue"),require("@kong-ui-public/entities-shared"),require("vue-router"),require("@kong/icons"),require("@kong-ui-public/i18n")):typeof define=="function"&&define.amd?define(["exports","vue","@kong-ui-public/entities-shared","vue-router","@kong/icons","@kong-ui-public/i18n"],e):(L=typeof globalThis<"u"?globalThis:L||self,e(L["kong-ui-entities-upstreams-targets"]={},L.Vue,L["kong-ui-public-entities-shared"],L.VueRouter,L.KongIcons,L["kong-ui-public-i18n"]))})(this,function(L,e,p,we,ee,Ve){"use strict";const Ye={upstreams:{list:{table_headers:{id:"ID",name:"Name",slots:"Slots",tags:"Tags"},empty_state:{title:"Configure a New Upstream",description:"Upstreams are used to load balance incoming requests."},empty_state_v2:{title:"Configure your first upstream",description:"Upstreams route traffic to multiple backend services, handling load balancing, health checks, and circuit breaking for reliability.",create_cta:"New upstream",group:"Upstreams created in gateways within this group will automatically appear here."},toolbar_actions:{new_upstream:"New upstream"}},title:"Upstreams",search:{placeholder:"Filter by exact name or ID"},actions:{create:"New upstream",copy_id:"Copy ID",copy_json:"Copy JSON",edit:"Edit",delete:"Delete",view:"View Details"},delete:{title:"Delete an Upstream",description:"This action cannot be reversed so make sure to check upstream usage before deleting."},errors:{general:"Upstreams could not be retrieved",delete:"The upstream could not be deleted at this time.",copy:"Failed to copy to clipboard"},copy:{success:"Copied {val} to clipboard",success_brief:"Successfully copied to clipboard"},form:{errors:{name_required:"Name is required",should_be_integer:"Field should contain an integer",in_range:"Accepts an integer in the range of 10 - 65536"},general_info:{title:"General Information",help:"General information will help identify and manage this Upstream."},load_balancing:{title:"Load Balancing",help:"Active health checks actively probe targets for their health. Currently only support HTTP/HTTPS targets."},health_check:{title:"Health Checks & Circuit Breakers",help:"Active health checks actively probe targets for their health. Currently only support HTTP/HTTPS targets."},active_health_check:{title:"Active Health Checks",help:"Active health checks actively probe targets for their health. Currently only support HTTP/HTTPS targets."},passive_health_check:{title:"Passive Health Checks",help:"Passive health checks, also known as circuit breakers, are checks performed based on the requests being proxied by Kong (HTTP/HTTPS/TCP), with no additional traffic being generated."},buttons:{view_documentation:"View documentation"},algorithms:{round_robin_label:"Round Robin",least_connections_label:"Least Connections",consistent_hashing_label:"Consistent Hashing",latency_label:"Latency"},hash_labels:{none:"None",consumer:"Consumer",ip:"IP",header:"Header",cookie:"Cookie",path:"Path",query_argument:"Query Argument",uri_capture:"URI Capture"},hash_tooltips:{hash_on_header:{text:"The header name to take the value from as hash input. Only required when {hash_on} is set to {header}",hash_on:"hash_on",header:"header"},hash_on_uri_capture:{text:"The name of the route URI capture to take the value from as hash input. Only required when {hash_on} is set to {uri_capture}",hash_on:"hash_on",uri_capture:"uri_capture"},hash_on_query_arg:{text:"The name of the query string argument to take the value from as hash input. Only required when {hash_on} is set to {query_arg}",hash_on:"hash_on",query_arg:"query_arg"},hash_on_cookie:{text:"The cookie name to take the value from as hash input. Only required when {hash_on} or {hash_fallback} is set to {cookie}. If the specified cookie is not in the request, Kong will generate a value and set the cookie in the response.",hash_on:"hash_on",hash_fallback:"hash_fallback",cookie:"cookie"},hash_on_cookie_path:{text:"The cookie path to set in the response headers. Only required when {hash_on} or {hash_fallback} is set to {cookie}.",hash_on:"hash_on",hash_fallback:"hash_fallback",cookie:"cookie"},slots:{text:"The number of slots in the load balancer algorithm. If {algorithm} is set to {round_robin}, this setting determines the maximum number of slots. If {algorithm} is set to {consistent_hashing}, this setting determines the actual number of slots in the algorithm. Accepts an integer in the range {min}-{max}",algorithm:"algorithm",round_robin:"round-robin",consistent_hashing:"consistent-hashing"},tags:"An optional set of strings associated with the Upstream for grouping and filtering.",hash_fallback:{text:"What to use as hashing input if the primary {hash_on} does not return a hash (eg. header is missing, or no Consumer identified). Not available if {hash_on} is set to {cookie}",hash_on:"hash_on",cookie:"cookie"},hash_fallback_header:{text:"The header name to take the value from as hash input. Only required when {hash_fallback} is set to {header}",hash_fallback:"hash_fallback",header:"header"},hash_fallback_query_arg:{text:"The name of the query string argument to take the value from as hash input. Only required when {hash_fallback} is set to {query_arg}",hash_fallback:"hash_fallback",query_arg:"query_arg"},hash_fallback_uri_capture:{text:"The name of the route URI capture to take the value from as hash input. Only required when {hash_fallback} is set to {uri_capture}",hash_fallback:"hash_fallback",uri_capture:"uri_capture"},host_header:{text:"The hostname to be used as {host} header when proxying requests through Kong.",host:"Host"},client_certificate:"If set, the certificate to be used as client certificate while TLS handshaking to the upstream server."},healthcheck_type_labels:{http:"HTTP",https:"HTTPS",tcp:"TCP",grsp:"gRPC",grsps:"gRPCs"},healthy:{label:"Healthy",help:"The counter thresholds to determine whether targets are healthy."},unhealthy:{label:"Unhealthy",help:"The counter thresholds to determine whether targets are unhealthy."},passive_healthy:{label:"Healthy",help:"The counter thresholds to determine whether targets are healthy."},passive_unhealthy:{label:"Unhealthy",help:"The counter thresholds to determine whether targets are unhealthy."},fields:{name:{label:"Name",placeholder:"Enter or select a host",tooltip:"This is a hostname, which must be equal to the {host} of a Service.",host:"host"},host_header:{label:"Host Header"},client_certificate:{label:"Client Certificate",placeholder:"Select or enter a Certificate ID",tooltip:"If set, the certificate to be used as client certificate while TLS handshaking to the upstream server."},tags:{label:"Tags",placeholder:"Enter a list of tags separated by comma",help:"e.g. tag1, tag2, tag3",tooltip:"An optional set of strings associated with the Upstream for grouping and filtering."},algorithm:{label:"Algorithm",tooltip:"Which load balancing algorithm to use."},slots:{label:"Slots",help:"Accepts an integer in the range of 10 - 65536"},hash_on:{label:"Hash on",help:"What to use as hashing input.",tooltip:"What to use as hashing input. Using {result} results in a weighted-round-robin scheme with no hashing."},hash_fallback:{label:"Hash Fallback",help:"What to use as hashing input if the primary hash_on does not return a hash",tooltip:"What to use as hashing input if the primary {hash_on} does not return a hash (eg. header is missing, or no Consumer identified). Not available if {hash_on} is set to {cookie}.",hash_on:"hash_on",cookie:"cookie"},active_health_checks:{label:"Active Health Checks",help:"Actively probe the targets for their health."},passive_health_checks:{label:"Passive Health Checks / Circuit Breakers",help:"Checks performed based on the requests being proxied by Kong (HTTP/HTTPS/TCP), with no additional traffic being generated."},healthchecks_threshold:{label:"Healthchecks Threshold"},header:{label:"Header"},headers:{label:"Headers",tooltip_active:"Header values can be separated by commas (value1, value2, value3)."},cookie:{label:"Cookie"},cookie_path:{label:"Cookie Path"},query_argument:{label:"Query Argument"},uri_capture:{label:"URI Capture"},active_healthcheck_type:{label:"Active Health Check Type"},http_path:{label:"HTTP Path"},timeout:{label:"Timeout"},concurrency:{label:"Concurrency"},https_sni:{label:"HTTPS SNI"},verify_ssl:{label:"Verify the SSL certificate when performing active health checks using HTTPS"},interval:{label:"Interval",help:"A value of zero indicates that active probes for healthy targets are disabled."},successes:{label:"Successes"},http_statuses:{label:"HTTP Statuses"},http_failures:{label:"HTTP Failures"},tcp_failures:{label:"TCP Failures"},timeouts:{label:"Timeouts"},passive_health_check_type:{label:"Passive Health Check Type"}}},labels:{created_at:"Created at"}},targets:{list:{table_headers:{id:"ID",target_address:"Target Address",weight:"Weight",tags:"Tags"},empty_state:{title:"Configure a New Target",description:"A target is an IP address/hostname with a port that identifies an instance of a backend service."},toolbar_actions:{new_target:"New Target"}},title:"Targets",actions:{create:"New Target",copy_id:"Copy ID",copy_json:"Copy JSON",edit:"Edit",delete:"Delete",mark_healthy:"Mark Healthy",mark_unhealthy:"Mark Unhealthy"},delete:{title:"Delete a Target",description:"This action cannot be reversed so make sure to check target usage before deleting."},errors:{general:"Targets could not be retrieved",delete:"The target could not be deleted at this time.",copy:"Failed to copy to clipboard",weight:"Value must be in range 0 to 65535"},copy:{success:"Copied {val} to clipboard",success_brief:"Successfully copied to clipboard"},form:{create:{title:"New Target"},edit:{title:"Edit Target"},buttons:{save:"Save",cancel:"Cancel"},fields:{target:{label:"Target Address",placeholder:"Enter IP/hostname and port",tooltip:"The target address (IP or hostname) and port. If omitted the port defaults to 8000."},weight:{label:"Weight",tooltip:"The weight of this target in relation to other targets in the upstream. Value must be in range 0 to 65535, defaults to 100."},tags:{label:"Tags",placeholder:"Enter a list of tags separated by comma",help:"e.g. tag1, tag2, tag3"}}}}};function et(){const a=Ve.createI18n("en-us",Ye);return{i18n:a,i18nT:Ve.i18nTComponent(a)}}function oe(a){const{replaceId:B=!1}=a,r=e.ref([]);return{addedItems:r,trackNewItems:(n,g)=>{if(g){const b={...n};B&&(b.value=n.label),r.value.push(b)}else r.value=r.value.filter(b=>b.value!==n.value)}}}const ie=[{label:"100",value:"100"},{label:"101",value:"101"},{label:"102",value:"102"},{label:"103",value:"103"},{label:"200",value:"200"},{label:"201",value:"201"},{label:"202",value:"202"},{label:"203",value:"203"},{label:"204",value:"204"},{label:"205",value:"205"},{label:"206",value:"206"},{label:"207",value:"207"},{label:"208",value:"208"},{label:"226",value:"226"},{label:"300",value:"300"},{label:"301",value:"301"},{label:"302",value:"302"},{label:"303",value:"303"},{label:"304",value:"304"},{label:"305",value:"305"},{label:"306",value:"306"},{label:"307",value:"307"},{label:"308",value:"308"},{label:"400",value:"400"},{label:"401",value:"401"},{label:"402",value:"402"},{label:"403",value:"403"},{label:"404",value:"404"},{label:"405",value:"405"},{label:"406",value:"406"},{label:"407",value:"407"},{label:"408",value:"408"},{label:"409",value:"409"},{label:"410",value:"410"},{label:"411",value:"411"},{label:"412",value:"412"},{label:"413",value:"413"},{label:"414",value:"414"},{label:"415",value:"415"},{label:"416",value:"416"},{label:"417",value:"417"},{label:"418",value:"418"},{label:"419",value:"419"},{label:"420",value:"420"},{label:"421",value:"421"},{label:"422",value:"422"},{label:"423",value:"423"},{label:"424",value:"424"},{label:"425",value:"425"},{label:"426",value:"426"},{label:"428",value:"428"},{label:"429",value:"429"},{label:"430",value:"430"},{label:"431",value:"431"},{label:"440",value:"440"},{label:"444",value:"444"},{label:"449",value:"449"},{label:"450",value:"450"},{label:"451",value:"451"},{label:"460",value:"460"},{label:"463",value:"463"},{label:"494",value:"494"},{label:"495",value:"495"},{label:"496",value:"496"},{label:"497",value:"497"},{label:"498",value:"498"},{label:"499",value:"499"},{label:"500",value:"500"},{label:"501",value:"501"},{label:"502",value:"502"},{label:"503",value:"503"},{label:"504",value:"504"},{label:"505",value:"505"},{label:"506",value:"506"},{label:"507",value:"507"},{label:"508",value:"508"},{label:"509",value:"509"},{label:"510",value:"510"},{label:"511",value:"511"},{label:"520",value:"520"},{label:"521",value:"521"},{label:"522",value:"522"},{label:"523",value:"523"},{label:"524",value:"524"},{label:"525",value:"525"},{label:"526",value:"526"},{label:"527",value:"527"},{label:"529",value:"529"},{label:"530",value:"530"},{label:"561",value:"561"},{label:"598",value:"598"},{label:"599",value:"599"}],ke=10,Ce=65536,tt=0,at=65535,te=0,ae=255,Ne=0,xe=255,lt=0,st=65535,Se=0,He=65535,rt=0,ot=2**31,he=["200","302"],ce=["200","201","202","203","204","205","206","207","208","226","300","301","302","303","304","305","306","307","308"],de=["429","404","500","501","502","503","504","505"],ue=["429","500","503"];function pe(){const a=s=>/^\d+$/.test(s),B=(s,h,_)=>{if(a(s)){const u=Number(s);return u>=h&&u<=_}else return!1},r=s=>s.map(h=>Number(h)),l=s=>s.map(h=>h.toString()),n=s=>{var _,u,t,E,w,d,V,R,T,A,M,m,N,H,U,f,$,D,j,J,I,F,K,z,Q,W,k,q,y,C,c,o,i,x,P,G,v,Y,ne,be,Ie,Ue,Fe,qe,Ee,Be,Oe,De,$e,Pe,Me,Ae,Ke,Re,je,Le,Qe,We,Je,ze,Ge,ve,Xe,Ze;return{name:(s==null?void 0:s.name)||"",hostHeader:(s==null?void 0:s.host_header)||"",clientCertificate:((_=s==null?void 0:s.client_certificate)==null?void 0:_.id)||"",tags:((u=s==null?void 0:s.tags)==null?void 0:u.join(", "))||"",algorithm:(s==null?void 0:s.algorithm)||"round-robin",slots:((t=s==null?void 0:s.slots)==null?void 0:t.toString())||"10000",hashOn:(s==null?void 0:s.hash_on)||"none",hashFallback:(s==null?void 0:s.hash_fallback)||"none",hashOnHeader:(s==null?void 0:s.hash_on_header)||"",hashOnCookie:(s==null?void 0:s.hash_on_cookie)||"",hashOnCookiePath:(s==null?void 0:s.hash_on_cookie_path)||"/",hashOnQueryArgument:(s==null?void 0:s.hash_on_query_arg)||"",hashOnUriCapture:(s==null?void 0:s.hash_on_uri_capture)||"",hashFallbackHeader:(s==null?void 0:s.hash_fallback_header)||"",hashFallbackQueryArgument:(s==null?void 0:s.hash_fallback_query_arg)||"",hashFallbackUriCapture:(s==null?void 0:s.hash_fallback_uri_capture)||"",activeHealthSwitch:s?((w=(E=s.healthchecks.active)==null?void 0:E.healthy)==null?void 0:w.interval)!==0||((V=(d=s.healthchecks.active)==null?void 0:d.unhealthy)==null?void 0:V.interval)!==0:!1,passiveHealthSwitch:s?((T=(R=s.healthchecks.passive)==null?void 0:R.healthy)==null?void 0:T.successes)!==0||((M=(A=s.healthchecks.passive)==null?void 0:A.unhealthy)==null?void 0:M.timeouts)!==0||((N=(m=s.healthchecks.passive)==null?void 0:m.unhealthy)==null?void 0:N.tcp_failures)!==0||((U=(H=s.healthchecks.passive)==null?void 0:H.unhealthy)==null?void 0:U.http_failures)!==0:!1,healthchecksThreshold:((f=s==null?void 0:s.healthchecks.threshold)==null?void 0:f.toString())||"0",activeHealthCheck:{type:(($=s==null?void 0:s.healthchecks.active)==null?void 0:$.type)||"http",httpPath:((D=s==null?void 0:s.healthchecks.active)==null?void 0:D.http_path)||"/",timeout:((J=(j=s==null?void 0:s.healthchecks.active)==null?void 0:j.timeout)==null?void 0:J.toString())||"1",concurrency:((F=(I=s==null?void 0:s.healthchecks.active)==null?void 0:I.concurrency)==null?void 0:F.toString())||"10",httpsSni:((K=s==null?void 0:s.healthchecks.active)==null?void 0:K.https_sni)||"",verifySsl:((z=s==null?void 0:s.healthchecks.active)==null?void 0:z.https_verify_certificate)||!1,headers:(Q=s==null?void 0:s.healthchecks.active)!=null&&Q.headers&&Object.entries(s.healthchecks.active.headers).length>0?Object.entries(s.healthchecks.active.headers).map(([Gt,_e])=>({key:Gt,values:_e==null?void 0:_e.join(", ")})):[{key:"",values:""}],healthy:{interval:((q=(k=(W=s==null?void 0:s.healthchecks.active)==null?void 0:W.healthy)==null?void 0:k.interval)==null?void 0:q.toString())||"0",successes:((c=(C=(y=s==null?void 0:s.healthchecks.active)==null?void 0:y.healthy)==null?void 0:C.successes)==null?void 0:c.toString())||"5",httpStatuses:(i=(o=s==null?void 0:s.healthchecks.active)==null?void 0:o.healthy)!=null&&i.http_statuses?l(s.healthchecks.active.healthy.http_statuses):he},unhealthy:{interval:((G=(P=(x=s==null?void 0:s.healthchecks.active)==null?void 0:x.unhealthy)==null?void 0:P.interval)==null?void 0:G.toString())||"0",httpFailures:((ne=(Y=(v=s==null?void 0:s.healthchecks.active)==null?void 0:v.unhealthy)==null?void 0:Y.http_failures)==null?void 0:ne.toString())||"5",tcpFailures:((Ue=(Ie=(be=s==null?void 0:s.healthchecks.active)==null?void 0:be.unhealthy)==null?void 0:Ie.tcp_failures)==null?void 0:Ue.toString())||"5",httpStatuses:(qe=(Fe=s==null?void 0:s.healthchecks.active)==null?void 0:Fe.unhealthy)!=null&&qe.http_statuses?l(s.healthchecks.active.unhealthy.http_statuses):de,timeouts:((Oe=(Be=(Ee=s==null?void 0:s.healthchecks.active)==null?void 0:Ee.unhealthy)==null?void 0:Be.timeouts)==null?void 0:Oe.toString())||"0"}},passiveHealthCheck:{type:((De=s==null?void 0:s.healthchecks.passive)==null?void 0:De.type)||"http",healthy:{successes:((Me=(Pe=($e=s==null?void 0:s.healthchecks.passive)==null?void 0:$e.healthy)==null?void 0:Pe.successes)==null?void 0:Me.toString())||"5",httpStatuses:(Ke=(Ae=s==null?void 0:s.healthchecks.passive)==null?void 0:Ae.healthy)!=null&&Ke.http_statuses?l(s.healthchecks.passive.healthy.http_statuses):ce},unhealthy:{timeouts:((Le=(je=(Re=s==null?void 0:s.healthchecks.passive)==null?void 0:Re.unhealthy)==null?void 0:je.timeouts)==null?void 0:Le.toString())||"0",httpFailures:((Je=(We=(Qe=s==null?void 0:s.healthchecks.passive)==null?void 0:Qe.unhealthy)==null?void 0:We.http_failures)==null?void 0:Je.toString())||"5",tcpFailures:((ve=(Ge=(ze=s==null?void 0:s.healthchecks.passive)==null?void 0:ze.unhealthy)==null?void 0:Ge.tcp_failures)==null?void 0:ve.toString())||"5",httpStatuses:(Ze=(Xe=s==null?void 0:s.healthchecks.passive)==null?void 0:Xe.unhealthy)!=null&&Ze.http_statuses?l(s.healthchecks.passive.unhealthy.http_statuses):ue}}}};return{isInteger:a,inRange:B,stringToNumberArray:r,numberToStringArray:l,upstreamsResponseToFields:s=>n(s),getDefaultUpstreamFields:()=>n(),objectsAreEqual:(s,h)=>{try{return JSON.stringify(s)===JSON.stringify(h)}catch{return!1}},cloneDeep:s=>JSON.parse(JSON.stringify(s))}}const X={useI18n:et,useMultiselectCreation:oe,useHelpers:pe},le="/v2/control-planes/{controlPlaneId}/core-entities",se="/{workspace}",re={list:{konnect:`${le}/upstreams`,kongManager:`${se}/upstreams`},form:{konnect:{getServices:`${le}/services`,getCertificates:`${le}/certificates`,validate:`${le}/v1/schemas/json/upstream/validate`,create:`${le}/upstreams`,edit:`${le}/upstreams/{id}`},kongManager:{getServices:`${se}/services`,getCertificates:`${se}/certificates`,validate:`${se}/schemas/upstreams/validate`,create:`${se}/upstreams`,edit:`${se}/upstreams/{id}`}}},nt="#d60027",it="#00abd2",ht="24px",ct={class:"kong-ui-entities-upstreams-list"},dt={class:"button-row"},ut={class:"empty-state-icon-gateway"},pt={class:"upstream-name"},ft=e.defineComponent({__name:"UpstreamsList",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},enableV2EmptyStates:{type:Boolean,default:!1}},emits:["error","click:learn-more","copy:success","copy:error","delete:success"],setup(a,{emit:B}){var q;const r=B,l=a,{i18n:{t:n}}=X.useI18n(),g=we.useRouter(),{axiosInstance:b}=p.useAxios((q=l.config)==null?void 0:q.axiosRequestConfig),{hasRecords:O,handleStateChange:S}=p.useTableState(()=>w.value),s=e.computed(()=>O.value&&l.config.app==="konnect"),h=e.computed(()=>!l.enableV2EmptyStates&&l.config.app==="konnect"),_=e.computed(()=>l.config.app!=="kongManager"||!!l.config.disableSorting),u={name:{label:n("upstreams.list.table_headers.name"),searchable:!0,sortable:!0,hidable:!1},slots:{label:n("upstreams.list.table_headers.slots"),searchable:!0,sortable:!0},tags:{label:n("upstreams.list.table_headers.tags"),sortable:!1}},t=u,E=e.computed(()=>{var C,c;let y=`${l.config.apiBaseUrl}${re.list[l.config.app]}`;return l.config.app==="konnect"?y=y.replace(/{controlPlaneId}/gi,((C=l.config)==null?void 0:C.controlPlaneId)||""):l.config.app==="kongManager"&&(y=y.replace(/\/{workspace}/gi,(c=l.config)!=null&&c.workspace?`/${l.config.workspace}`:"")),y}),w=e.ref(""),d=e.computed(()=>{const y=l.config.app==="konnect"||l.config.isExactMatch;if(y)return{isExactMatch:y,placeholder:n("upstreams.search.placeholder")};const{name:C,slots:c}=u;return{isExactMatch:y,fields:{name:C,slots:c},schema:l.config.filterSchema}}),{fetcher:V,fetcherState:R,fetcherCacheKey:T}=p.useFetcher({...l.config,cacheIdentifier:l.cacheIdentifier},E.value),A=()=>{w.value=""},M=()=>{T.value++},m=e.ref(null),N=async(y,C)=>{const c=y.id;if(!await C(c)){r("copy:error",{entity:y,field:"id",message:n("upstreams.errors.copy")});return}r("copy:success",{entity:y,field:"id",message:n("upstreams.copy.success",{val:c})})},H=async(y,C)=>{const c=JSON.stringify(y);if(!await C(c)){r("copy:error",{entity:y,message:n("upstreams.errors.copy")});return}r("copy:success",{entity:y,message:n("upstreams.copy.success_brief")})},U=async y=>{var c;await((c=l.canRetrieve)==null?void 0:c.call(l,y))&&g.push(l.config.getViewRoute(y.id))},f=y=>({label:n("upstreams.actions.view"),to:l.config.getViewRoute(y)}),$=y=>({label:n("upstreams.actions.edit"),to:l.config.getEditRoute(y)}),D=e.ref(void 0),j=e.ref(!1),J=e.ref(!1),I=e.ref(""),F=p.useDeleteUrlBuilder(l.config,E.value),K=y=>{D.value=y,j.value=!0},z=()=>{j.value=!1},Q=async()=>{var y,C,c;if((y=D.value)!=null&&y.id){J.value=!0;try{await b.delete(F(D.value.id)),J.value=!1,j.value=!1,T.value++,r("delete:success",D.value)}catch(o){I.value=((c=(C=o.response)==null?void 0:C.data)==null?void 0:c.message)||o.message||n("upstreams.errors.delete"),r("error",o)}finally{J.value=!1}}},W=()=>{g.push(l.config.createRoute)};e.watch(R,y=>{var C,c,o;if(y.status===p.FetcherStatus.Error){m.value={title:n("upstreams.errors.general")},(o=(c=(C=y.error)==null?void 0:C.response)==null?void 0:c.data)!=null&&o.message&&(m.value.message=y.error.response.data.message),r("error",y.error);return}m.value=null});const k=e.ref({ctaPath:l.config.createRoute,ctaText:void 0,message:`${n("upstreams.list.empty_state.description")}${l.config.additionMessageForEmptyState?` ${l.config.additionMessageForEmptyState}`:""}`,title:n("upstreams.title")});return e.onBeforeMount(async()=>{await l.canCreate()&&(k.value.title=n("upstreams.list.empty_state.title"),k.value.ctaText=n("upstreams.actions.create"))}),(y,C)=>{const c=e.resolveComponent("KButton"),o=e.resolveComponent("KDropdownItem"),i=e.resolveComponent("KClipboardProvider");return e.openBlock(),e.createElementBlock("div",ct,[e.createVNode(e.unref(p.EntityBaseTable),{"cache-identifier":a.cacheIdentifier,"disable-sorting":_.value,"empty-state-options":k.value,"enable-entity-actions":"","error-message":m.value,fetcher:e.unref(V),"fetcher-cache-key":e.unref(T),"pagination-type":"offset","preferences-storage-key":"kong-ui-entities-upstreams-list",query:w.value,"table-headers":e.unref(t),onClearSearchInput:A,"onClick:row":C[4]||(C[4]=x=>U(x)),onSort:M,onState:e.unref(S)},e.createSlots({"toolbar-filter":e.withCtx(()=>[e.createVNode(e.unref(p.EntityFilter),{modelValue:w.value,"onUpdate:modelValue":C[0]||(C[0]=x=>w.value=x),config:d.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",dt,[s.value?(e.openBlock(),e.createBlock(c,{key:0,appearance:"secondary",class:"open-learning-hub","data-testid":"upstream-learn-more-button",icon:"",onClick:C[1]||(C[1]=x=>y.$emit("click:learn-more"))},{default:e.withCtx(()=>[e.createVNode(e.unref(ee.BookIcon),{decorative:""})]),_:1})):e.createCommentVNode("",!0),e.createVNode(e.unref(p.PermissionsWrapper),{"auth-function":()=>a.canCreate()},{default:e.withCtx(()=>[e.createVNode(c,{appearance:"primary","data-testid":"toolbar-add-upstream",size:a.useActionOutside?"medium":"large",to:a.config.createRoute},{default:e.withCtx(()=>[e.createVNode(e.unref(ee.AddIcon)),e.createTextVNode(" "+e.toDisplayString(e.unref(n)("upstreams.list.toolbar_actions.new_upstream")),1)]),_:1},8,["size","to"])]),_:1},8,["auth-function"])])],8,["disabled"]))]),name:e.withCtx(({rowValue:x})=>[e.createElementVNode("span",pt,e.toDisplayString(x),1)]),tags:e.withCtx(({rowValue:x})=>[e.createVNode(e.unref(p.TableTags),{"tag-max-width":"auto",tags:x},null,8,["tags"])]),actions:e.withCtx(({row:x})=>[e.createVNode(i,null,{default:e.withCtx(({copyToClipboard:P})=>[e.createVNode(o,{"data-testid":"action-entity-copy-id",onClick:G=>N(x,P)},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(n)("upstreams.actions.copy_id")),1)]),_:2},1032,["onClick"])]),_:2},1024),e.createVNode(i,null,{default:e.withCtx(({copyToClipboard:P})=>[e.createVNode(o,{"data-testid":"action-entity-copy-json",onClick:G=>H(x,P)},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(n)("upstreams.actions.copy_json")),1)]),_:2},1032,["onClick"])]),_:2},1024),e.createVNode(e.unref(p.PermissionsWrapper),{"auth-function":()=>a.canRetrieve(x)},{default:e.withCtx(()=>[e.createVNode(o,{"data-testid":"action-entity-view","has-divider":"",item:f(x.id)},null,8,["item"])]),_:2},1032,["auth-function"]),e.createVNode(e.unref(p.PermissionsWrapper),{"auth-function":()=>a.canEdit(x)},{default:e.withCtx(()=>[e.createVNode(o,{"data-testid":"action-entity-edit",item:$(x.id)},null,8,["item"])]),_:2},1032,["auth-function"]),e.createVNode(e.unref(p.PermissionsWrapper),{"auth-function":()=>a.canDelete(x)},{default:e.withCtx(()=>[e.createVNode(o,{danger:"","data-testid":"action-entity-delete","has-divider":"",onClick:P=>K(x)},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(n)("upstreams.actions.delete")),1)]),_:2},1032,["onClick"])]),_:2},1032,["auth-function"])]),_:2},[!e.unref(O)&&h.value?{name:"outside-actions",fn:e.withCtx(()=>[(e.openBlock(),e.createBlock(e.Teleport,{disabled:!a.useActionOutside,to:"#kong-ui-app-page-header-action-button"},[e.createVNode(c,{appearance:"secondary",class:"open-learning-hub","data-testid":"upstreams-learn-more-button",icon:"",onClick:C[2]||(C[2]=x=>y.$emit("click:learn-more"))},{default:e.withCtx(()=>[e.createVNode(e.unref(ee.BookIcon),{decorative:""})]),_:1})],8,["disabled"]))]),key:"0"}:void 0,!w.value&&a.enableV2EmptyStates&&a.config.app==="konnect"?{name:"empty-state",fn:e.withCtx(()=>{var x;return[e.createVNode(e.unref(p.EntityEmptyState),{"action-button-text":e.unref(n)("upstreams.list.empty_state_v2.create_cta"),appearance:"secondary","can-create":()=>a.canCreate(),"data-testid":"upstreams-entity-empty-state",description:e.unref(n)("upstreams.list.empty_state_v2.description"),"learn-more":a.config.app==="konnect",title:e.unref(n)("upstreams.list.empty_state_v2.title"),"onClick:create":W,"onClick:learnMore":C[3]||(C[3]=P=>y.$emit("click:learn-more"))},e.createSlots({image:e.withCtx(()=>[e.createElementVNode("div",ut,[e.createVNode(e.unref(ee.CloudUploadIcon),{color:e.unref(it),size:e.unref(ht)},null,8,["color","size"])])]),_:2},[(x=a.config)!=null&&x.isControlPlaneGroup?{name:"message",fn:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(n)("upstreams.list.empty_state_v2.group")),1)]),key:"0"}:void 0]),1032,["action-button-text","can-create","description","learn-more","title"])]}),key:"1"}:void 0]),1032,["cache-identifier","disable-sorting","empty-state-options","error-message","fetcher","fetcher-cache-key","query","table-headers","onState"]),e.createVNode(e.unref(p.EntityDeleteModal),{"action-pending":J.value,description:e.unref(n)("upstreams.delete.description"),"entity-name":D.value&&(D.value.name||D.value.id),"entity-type":e.unref(p.EntityTypes).Upstream,error:I.value,title:e.unref(n)("upstreams.delete.title"),visible:j.value,onCancel:z,onProceed:Q},null,8,["action-pending","description","entity-name","entity-type","error","title","visible"])])}}}),Z=(a,B)=>{const r=a.__vccOpts||a;for(const[l,n]of B)r[l]=n;return r},mt=Z(ft,[["__scopeId","data-v-308f2db3"]]),fe="/v2/control-planes/{controlPlaneId}/core-entities",me="/{workspace}",ye={list:{konnect:`${fe}/upstreams/{upstreamId}/targets`,kongManager:`${me}/upstreams/{upstreamId}/targets`},form:{konnect:{create:`${fe}/upstreams/{upstreamId}/targets`,edit:`${fe}/upstreams/{upstreamId}/targets/{id}`,validate:`${fe}/v1/schemas/json/target/validate`},kongManager:{create:`${me}/upstreams/{upstreamId}/targets`,edit:`${me}/upstreams/{upstreamId}/targets/{id}`,validate:`${me}/schemas/targets/validate`}}},yt={class:"kong-ui-entities-target-form"},gt={class:"target-form-container"},bt={key:0,class:"target-form-info"},Te=Z(e.defineComponent({__name:"TargetForm",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.upstreamId)},isVisible:{type:Boolean,required:!0,default:!1},targetId:{type:String,required:!1,default:""}},emits:["update","error","loading","cancel"],setup(a,{emit:B}){var M;const r=B,l=a,{i18n:{t:n}}=X.useI18n(),{getMessageFromError:g}=p.useErrors(),{axiosInstance:b}=p.useAxios((M=l.config)==null?void 0:M.axiosRequestConfig),O=e.computed(()=>{var m;return ye.form[l.config.app].edit.replace(/{upstreamId}/gi,((m=l.config)==null?void 0:m.upstreamId)||"")}),S=e.computed(()=>l.targetId?p.EntityBaseFormType.Edit:p.EntityBaseFormType.Create),s=e.computed(()=>S.value===p.EntityBaseFormType.Edit?n("targets.form.edit.title"):n("targets.form.create.title")),h=e.reactive({fields:{target:"",weight:100,tags:""},isReadonly:!1,errorMessage:""}),_=e.reactive({target:"",weight:100,tags:""}),u={target:"",weight:100,tags:""},t=e.computed(()=>{const m=parseInt(h.fields.weight.toString(),10);return m<0||m>65535}),E=e.computed(()=>JSON.stringify(h.fields)!==JSON.stringify(_)&&!!h.fields.target&&!!h.fields.weight&&!t.value),w=m=>{var N;h.fields.target=(m==null?void 0:m.target)||"",h.fields.weight=(m==null?void 0:m.weight)??"",h.fields.tags=((N=m==null?void 0:m.tags)==null?void 0:N.join(", "))||"",Object.assign(_,h.fields)},d=()=>{h.errorMessage="",r("cancel")},V=e.computed(()=>{var N,H;let m=`${l.config.apiBaseUrl}${ye.form[l.config.app].validate}`;return l.config.app==="konnect"?m=m.replace(/{controlPlaneId}/gi,((N=l.config)==null?void 0:N.controlPlaneId)||""):l.config.app==="kongManager"&&(m=m.replace(/\/{workspace}/gi,(H=l.config)!=null&&H.workspace?`/${l.config.workspace}`:"")),m=m.replace(/{id}/gi,l.targetId),m}),R=e.computed(()=>{var N,H,U,f;let m=`${l.config.apiBaseUrl}${ye.form[l.config.app][S.value]}`;return l.config.app==="konnect"?m=m.replace(/{controlPlaneId}/gi,((N=l.config)==null?void 0:N.controlPlaneId)||"").replace(/{upstreamId}/gi,((H=l.config)==null?void 0:H.upstreamId)||""):l.config.app==="kongManager"&&(m=m.replace(/\/{workspace}/gi,(U=l.config)!=null&&U.workspace?`/${l.config.workspace}`:"").replace(/{upstreamId}/gi,((f=l.config)==null?void 0:f.upstreamId)||"")),m=m.replace(/{id}/gi,l.targetId),m}),T=e.computed(()=>{var m,N,H;return{target:h.fields.target,weight:parseInt(h.fields.weight),tags:(H=(N=(m=h.fields.tags)==null?void 0:m.split(","))==null?void 0:N.map(U=>String(U||"").trim()))==null?void 0:H.filter(U=>U!==""),upstream:{id:l.config.upstreamId}}}),A=async()=>{var m,N;try{h.isReadonly=!0,h.errorMessage="";let H;if(await b.post(V.value,T.value),S.value==="create"?H=await b.post(R.value,T.value):S.value==="edit"&&(H=((m=l.config)==null?void 0:m.app)==="konnect"?await b.put(R.value,T.value):await b.patch(R.value,T.value)),H){const{data:U}=H;h.fields.target=(U==null?void 0:U.name)||"",h.fields.weight=(U==null?void 0:U.weight)??100,h.fields.tags=((N=U==null?void 0:U.tags)==null?void 0:N.join(", "))||"",r("update",U),Object.assign(h.fields,u)}}catch(H){h.errorMessage=g(H),r("error",H)}finally{h.isReadonly=!1}};return e.watch(()=>l.targetId,()=>{Object.assign(h.fields,u)}),(m,N)=>{const H=e.resolveComponent("KInput"),U=e.resolveComponent("KPrompt");return e.openBlock(),e.createBlock(U,{"action-button-disabled":!E.value||h.isReadonly,"action-button-text":e.unref(n)("targets.form.buttons.save"),"cancel-button-text":e.unref(n)("targets.form.buttons.cancel"),title:s.value,visible:a.isVisible,onCancel:d,onProceed:A},{default:e.withCtx(()=>[e.createElementVNode("div",yt,[e.createVNode(e.unref(p.EntityBaseForm),{config:a.config,"edit-id":a.targetId,"entity-type":e.unref(p.SupportedEntityType).Target,"error-message":h.errorMessage,"fetch-url":O.value,"form-fields":T.value,"is-readonly":h.isReadonly,onCancel:d,"onFetch:error":N[3]||(N[3]=f=>m.$emit("error",f)),"onFetch:success":w,onLoading:N[4]||(N[4]=f=>m.$emit("loading",f))},{default:e.withCtx(()=>[e.createElementVNode("div",gt,[m.$slots.info?(e.openBlock(),e.createElementBlock("div",bt,[e.renderSlot(m.$slots,"info",{},void 0,!0)])):e.createCommentVNode("",!0),e.createVNode(H,{modelValue:h.fields.target,"onUpdate:modelValue":N[0]||(N[0]=f=>h.fields.target=f),modelModifiers:{trim:!0},autocomplete:"off",class:"target-form-input","data-testid":"target-form-target",label:e.unref(n)("targets.form.fields.target.label"),"label-attributes":{info:e.unref(n)("targets.form.fields.target.tooltip"),tooltipAttributes:{maxWidth:"400"}},placeholder:e.unref(n)("targets.form.fields.target.placeholder"),readonly:h.isReadonly,required:"",type:"text"},null,8,["modelValue","label","label-attributes","placeholder","readonly"]),e.createVNode(H,{modelValue:h.fields.weight,"onUpdate:modelValue":N[1]||(N[1]=f=>h.fields.weight=f),autocomplete:"off",class:"target-form-input","data-testid":"target-form-weight",error:t.value,"error-message":e.unref(n)("targets.errors.weight"),label:e.unref(n)("targets.form.fields.weight.label"),"label-attributes":{info:e.unref(n)("targets.form.fields.weight.tooltip"),tooltipAttributes:{maxWidth:"400"}},max:"65535",min:"0",readonly:h.isReadonly,required:"",type:"number"},null,8,["modelValue","error","error-message","label","label-attributes","readonly"]),e.createVNode(H,{modelValue:h.fields.tags,"onUpdate:modelValue":N[2]||(N[2]=f=>h.fields.tags=f),modelModifiers:{trim:!0},autocomplete:"off",class:"target-form-input","data-testid":"target-form-tags",help:e.unref(n)("targets.form.fields.tags.help"),label:e.unref(n)("targets.form.fields.tags.label"),placeholder:e.unref(n)("targets.form.fields.tags.placeholder"),readonly:h.isReadonly,type:"text"},null,8,["modelValue","help","label","placeholder","readonly"])])]),_:3},8,["config","edit-id","entity-type","error-message","fetch-url","form-fields","is-readonly"])])]),_:3},8,["action-button-disabled","action-button-text","cancel-button-text","title","visible"])}}}),[["__scopeId","data-v-b5bbee74"]]),kt={class:"kong-ui-entities-targets-list"},Ct={class:"target-address"},_t=Z(e.defineComponent({__name:"TargetsList",props:{config:{type:Object,required:!0,validator:a=>!(!a||!["konnect","kongManager"].includes(a==null?void 0:a.app)||!a.upstreamId||a.app==="kongManager"&&(typeof a.canMarkHealthy>"u"||typeof a.canMarkUnhealthy>"u"))},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},useActionOutside:{type:Boolean,default:!1}},emits:["error","copy:success","copy:error","delete:success","health-actions:healthy","health-actions:unhealthy","create:target","update:target"],setup(a,{emit:B}){var W;const r=B,l=a,{i18n:{t:n}}=X.useI18n(),{axiosInstance:g}=p.useAxios((W=l.config)==null?void 0:W.axiosRequestConfig),b=e.computed(()=>l.config.app!=="kongManager"||!!l.config.disableSorting),S={target:{label:n("targets.list.table_headers.target_address"),sortable:!0,hidable:!1},weight:{label:n("targets.list.table_headers.weight"),sortable:!0},tags:{label:n("targets.list.table_headers.tags"),sortable:!1}},s=e.computed(()=>{var q,y,C,c;let k=`${l.config.apiBaseUrl}${ye.list[l.config.app]}`;return l.config.app==="konnect"?k=k.replace(/{controlPlaneId}/gi,((q=l.config)==null?void 0:q.controlPlaneId)||"").replace(/{upstreamId}/gi,((y=l.config)==null?void 0:y.upstreamId)||""):l.config.app==="kongManager"&&(k=k.replace(/\/{workspace}/gi,(C=l.config)!=null&&C.workspace?`/${l.config.workspace}`:"").replace(/{upstreamId}/gi,((c=l.config)==null?void 0:c.upstreamId)||"")),k}),{fetcher:h,fetcherState:_,fetcherCacheKey:u}=p.useFetcher({...l.config,cacheIdentifier:l.cacheIdentifier},s.value),t=()=>{u.value++},E=e.ref(null),w=()=>{F.value=!0},d=async(k,q)=>{const y=k.id;if(!await q(y)){r("copy:error",{entity:k,field:"id",message:n("targets.errors.copy")});return}r("copy:success",{entity:k,field:"id",message:n("targets.copy.success",{val:y})})},V=async(k,q)=>{const y=JSON.stringify(k);if(!await q(y)){r("copy:error",{entity:k,message:n("targets.errors.copy")});return}r("copy:success",{entity:k,message:n("targets.copy.success_brief")})},R=k=>{I.value=k,F.value=!0},T=k=>l.config.app==="konnect"?!1:l.config.canMarkHealthy(k),A=k=>l.config.app==="konnect"?!1:l.config.canMarkUnhealthy(k),M=e.ref(void 0),m=e.ref(!1),N=e.ref(!1),H=e.ref(""),U=p.useDeleteUrlBuilder(l.config,s.value),f=k=>{M.value=k,m.value=!0},$=()=>{m.value=!1},D=async()=>{var k,q,y;if((k=M.value)!=null&&k.id){N.value=!0;try{await g.delete(U(M.value.id)),N.value=!1,m.value=!1,u.value++,r("delete:success",M.value)}catch(C){H.value=((y=(q=C.response)==null?void 0:q.data)==null?void 0:y.message)||C.message||n("targets.errors.delete"),r("error",C)}finally{N.value=!1}}};e.watch(_,k=>{var q,y,C;if(k.status===p.FetcherStatus.Error){E.value={title:n("targets.errors.general")},(C=(y=(q=k.error)==null?void 0:q.response)==null?void 0:y.data)!=null&&C.message&&(E.value.message=k.error.response.data.message),r("error",k.error);return}E.value=null});const j=e.ref({ctaText:void 0,message:`${n("targets.list.empty_state.description")}${l.config.additionMessageForEmptyState?` ${l.config.additionMessageForEmptyState}`:""}`,title:n("targets.title"),...l.config.createRoute&&{ctaPath:l.config.createRoute}});e.onBeforeMount(async()=>{await l.canCreate()&&(j.value.title=n("targets.list.empty_state.title"),j.value.ctaText=n("targets.actions.create"))});const J=e.computed(()=>({app:l.config.app,apiBaseUrl:l.config.apiBaseUrl,upstreamId:l.config.upstreamId,axiosRequestConfig:l.config.axiosRequestConfig,...l.config.app==="konnect"&&{controlPlaneId:l.config.controlPlaneId},...l.config.app==="kongManager"&&{workspace:l.config.workspace}})),I=e.ref(""),F=e.ref(!1),K=k=>{I.value?r("update:target",k):r("create:target",k),z()},z=()=>{Q(),u.value++},Q=()=>{F.value=!1,I.value=""};return(k,q)=>{const y=e.resolveComponent("KButton"),C=e.resolveComponent("KDropdownItem"),c=e.resolveComponent("KClipboardProvider");return e.openBlock(),e.createElementBlock("div",kt,[e.createVNode(e.unref(p.EntityBaseTable),{"cache-identifier":a.cacheIdentifier,"disable-sorting":b.value,"empty-state-options":j.value,"enable-entity-actions":"","error-message":E.value,fetcher:e.unref(h),"fetcher-cache-key":e.unref(u),"pagination-type":"offset","preferences-storage-key":"kong-ui-entities-targets-list","table-headers":e.unref(S),onEmptyStateCtaClicked:q[1]||(q[1]=()=>l.config.createRoute?void 0:w()),onSort:t},{"toolbar-button":e.withCtx(()=>[(e.openBlock(),e.createBlock(e.Teleport,{disabled:!a.useActionOutside,to:"#kong-ui-app-page-header-action-button"},[e.createVNode(e.unref(p.PermissionsWrapper),{"auth-function":()=>a.canCreate()},{default:e.withCtx(()=>[e.createVNode(y,{appearance:"primary","data-testid":"toolbar-new-target",size:a.useActionOutside?"medium":"large",to:l.config.createRoute?l.config.createRoute:void 0,onClick:q[0]||(q[0]=()=>l.config.createRoute?void 0:w())},{default:e.withCtx(()=>[e.createVNode(e.unref(ee.AddIcon)),e.createTextVNode(" "+e.toDisplayString(e.unref(n)("targets.list.toolbar_actions.new_target")),1)]),_:1},8,["size","to"])]),_:1},8,["auth-function"])],8,["disabled"]))]),target:e.withCtx(({rowValue:o})=>[e.createElementVNode("span",Ct,e.toDisplayString(o),1)]),tags:e.withCtx(({rowValue:o})=>[e.createVNode(e.unref(p.TableTags),{"tag-max-width":"auto",tags:o},null,8,["tags"])]),actions:e.withCtx(({row:o})=>[e.createVNode(c,null,{default:e.withCtx(({copyToClipboard:i})=>[e.createVNode(C,{"data-testid":"action-entity-copy-id",onClick:x=>d(o,i)},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(n)("targets.actions.copy_id")),1)]),_:2},1032,["onClick"])]),_:2},1024),e.createVNode(c,null,{default:e.withCtx(({copyToClipboard:i})=>[e.createVNode(C,{"data-testid":"action-entity-copy-json",onClick:x=>V(o,i)},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(n)("targets.actions.copy_json")),1)]),_:2},1032,["onClick"])]),_:2},1024),e.createVNode(e.unref(p.PermissionsWrapper),{"auth-function":()=>a.canEdit(o)},{default:e.withCtx(()=>[e.createVNode(C,{"data-testid":"action-entity-edit","has-divider":"",onClick:i=>R(o.id)},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(n)("targets.actions.edit")),1)]),_:2},1032,["onClick"])]),_:2},1032,["auth-function"]),e.createVNode(e.unref(p.PermissionsWrapper),{"auth-function":()=>T(o)},{default:e.withCtx(()=>[e.createVNode(C,{"data-testid":"action-target-mark-healthy",onClick:i=>r("health-actions:healthy",o)},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(n)("targets.actions.mark_healthy")),1)]),_:2},1032,["onClick"])]),_:2},1032,["auth-function"]),e.createVNode(e.unref(p.PermissionsWrapper),{"auth-function":()=>A(o)},{default:e.withCtx(()=>[e.createVNode(C,{"data-testid":"action-target-mark-unhealthy",onClick:i=>r("health-actions:unhealthy",o)},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(n)("targets.actions.mark_unhealthy")),1)]),_:2},1032,["onClick"])]),_:2},1032,["auth-function"]),e.createVNode(e.unref(p.PermissionsWrapper),{"auth-function":()=>a.canDelete(o)},{default:e.withCtx(()=>[e.createVNode(C,{danger:"","data-testid":"action-entity-delete","has-divider":"",onClick:i=>f(o)},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(n)("targets.actions.delete")),1)]),_:2},1032,["onClick"])]),_:2},1032,["auth-function"])]),_:1},8,["cache-identifier","disable-sorting","empty-state-options","error-message","fetcher","fetcher-cache-key","table-headers"]),e.createVNode(e.unref(p.EntityDeleteModal),{"action-pending":N.value,description:e.unref(n)("targets.delete.description"),"entity-type":e.unref(p.EntityTypes).Target,error:H.value,"need-confirm":!1,title:e.unref(n)("targets.delete.title"),visible:m.value,onCancel:$,onProceed:D},null,8,["action-pending","description","entity-type","error","title","visible"]),e.createVNode(Te,{config:J.value,"is-visible":F.value,"target-id":I.value,onCancel:Q,onUpdate:K},e.createSlots({_:2},[k.$slots["form-info"]?{name:"info",fn:e.withCtx(()=>[e.renderSlot(k.$slots,"form-info",{},void 0,!0)]),key:"0"}:void 0]),1032,["config","is-visible","target-id"])])}}}),[["__scopeId","data-v-b3ffee85"]]),wt={key:1},Vt=Z(e.defineComponent({__name:"UpstreamsFormGeneralInfo",props:{config:{type:Object,required:!0},name:{type:String,required:!0},hostHeader:{type:String,required:!0},clientCertificate:{type:String,required:!0},tags:{type:String,required:!0},readonly:{type:Boolean,required:!1,default:!1}},emits:["update:name","update:host-header","update:client-certificate","update:tags"],setup(a,{emit:B}){var $,D,j,J;const{i18nT:r,i18n:{t:l}}=X.useI18n(),n=a,g=B,{debouncedQueryChange:b,loading:O,loadItems:S,results:s,allRecords:h}=p.useDebouncedFilter(n.config,(D=re.form[($=n.config)==null?void 0:$.app])==null?void 0:D.getServices,"",{fetchedItemsKey:"data",searchKeys:["host"]}),{debouncedQueryChange:_,loading:u,loadItems:t,results:E}=p.useDebouncedFilter(n.config,(J=re.form[(j=n.config)==null?void 0:j.app])==null?void 0:J.getCertificates),w=e.ref(""),d=e.computed(()=>{var I;return!!n.name&&!((I=h.value)!=null&&I.some(F=>F.host===n.name))}),V=e.computed(()=>{var F,K,z;const I=d.value&&n.name.includes((F=w.value)==null?void 0:F.toLowerCase());return(z=s.value)==null?void 0:z.map(Q=>({label:Q.host,value:Q.id})).concat(I?[{label:n.name,value:((K=A.value)==null?void 0:K.value)||n.name}]:[])}),R=e.computed(()=>{var I;return(I=E.value)==null?void 0:I.map(F=>({label:F.id,value:F.id}))}),T=e.ref(""),A=e.ref({value:"",label:""}),M=e.computed(()=>{var I,F;return((I=V.value.find(K=>K.value===T.value))==null?void 0:I.label)||((F=A.value)==null?void 0:F.label)}),m=I=>{w.value=I,b(I)},N=I=>{A.value=I},H=()=>{A.value={value:"",label:""}},U=I=>{T.value=I,g("update:name",M.value)},f=e.ref(!1);return e.onBeforeMount(async()=>{var I,F;try{f.value=!0,await S(),n.name&&(T.value=((F=(I=V.value.find(K=>K.label===n.name))==null?void 0:I.value)==null?void 0:F.toString())||n.name),await t()}finally{f.value=!1}}),(I,F)=>{const K=e.resolveComponent("KSkeleton"),z=e.resolveComponent("KSelect"),Q=e.resolveComponent("KInput");return e.openBlock(),e.createBlock(e.unref(p.EntityFormSection),{class:"kong-ui-entities-upstreams-general-info",description:e.unref(l)("upstreams.form.general_info.help"),title:e.unref(l)("upstreams.form.general_info.title")},{default:e.withCtx(()=>[f.value?(e.openBlock(),e.createBlock(K,{key:0,type:"form"})):(e.openBlock(),e.createElementBlock("div",wt,[e.createVNode(z,{class:"name-select margin-bottom-6",clearable:"","data-testid":"upstreams-form-name","enable-filtering":"","enable-item-creation":"","filter-function":()=>!0,items:V.value,label:e.unref(l)("upstreams.form.fields.name.label"),"label-attributes":{tooltipAttributes:{"max-width":"400"}},loading:e.unref(O),"model-value":T.value,placeholder:e.unref(l)("upstreams.form.fields.name.placeholder"),readonly:a.readonly,required:"",width:"100%",onItemAdded:N,onItemRemoved:H,onQueryChange:m,"onUpdate:modelValue":U},{"label-tooltip":e.withCtx(()=>[e.createVNode(e.unref(r),{keypath:"upstreams.form.fields.name.tooltip",scope:"global"},{host:e.withCtx(()=>[e.createElementVNode("code",null,e.toDisplayString(e.unref(l)("upstreams.form.fields.name.host")),1)]),_:1})]),_:1},8,["items","label","loading","model-value","placeholder","readonly","onUpdate:modelValue"]),e.createVNode(Q,{autocomplete:"off",class:"margin-bottom-6","data-testid":"upstreams-form-host-header",label:e.unref(l)("upstreams.form.fields.host_header.label"),"model-value":a.hostHeader,readonly:a.readonly,type:"text","onUpdate:modelValue":F[0]||(F[0]=W=>g("update:host-header",W))},null,8,["label","model-value","readonly"]),e.createVNode(z,{class:"certificate-select margin-bottom-6",clearable:"","data-testid":"upstreams-form-client-certificate","enable-filtering":"","filter-function":()=>!0,items:R.value,label:e.unref(l)("upstreams.form.fields.client_certificate.label"),"label-attributes":{info:e.unref(l)("upstreams.form.fields.client_certificate.tooltip"),tooltipAttributes:{maxWidth:"400"}},loading:e.unref(u),"model-value":a.clientCertificate,placeholder:e.unref(l)("upstreams.form.fields.client_certificate.placeholder"),readonly:a.readonly,width:"100%",onQueryChange:e.unref(_),"onUpdate:modelValue":F[1]||(F[1]=W=>g("update:client-certificate",W))},null,8,["items","label","label-attributes","loading","model-value","placeholder","readonly","onQueryChange"]),e.createVNode(Q,{autocomplete:"off","data-testid":"upstreams-form-tags",help:e.unref(l)("upstreams.form.fields.tags.help"),label:e.unref(l)("upstreams.form.fields.tags.label"),"label-attributes":{info:e.unref(l)("upstreams.form.fields.tags.tooltip"),tooltipAttributes:{maxWidth:"400"}},"model-value":a.tags,placeholder:e.unref(l)("upstreams.form.fields.tags.placeholder"),readonly:a.readonly,type:"text","onUpdate:modelValue":F[2]||(F[2]=W=>g("update:tags",W))},null,8,["help","label","label-attributes","model-value","placeholder","readonly"])]))]),_:1},8,["description","title"])}}}),[["__scopeId","data-v-626ed41f"]]),ge={upstreamObject:"https://docs.konghq.com/gateway/latest/admin-api/#upstream-object",loadBalancing:"https://docs.konghq.com/gateway/latest/how-kong-works/load-balancing/#main"},Nt={class:"fields-group-title"},xt={class:"fields-group-text"},St={class:"fields-group-title"},Ht={class:"fields-group-text"},Tt=Z(e.defineComponent({__name:"UpstreamsFormLoadBalancing",props:{algorithm:{type:String,required:!0},slots:{type:String,required:!0},hashOn:{type:String,required:!0},hashFallback:{type:String,required:!0},hashOnHeader:{type:String,required:!0},hashOnCookie:{type:String,required:!0},hashOnCookiePath:{type:String,required:!0},hashOnQueryArgument:{type:String,required:!0},hashOnUriCapture:{type:String,required:!0},hashFallbackHeader:{type:String,required:!0},hashFallbackQueryArgument:{type:String,required:!0},hashFallbackUriCapture:{type:String,required:!0},readonly:{type:Boolean,required:!1,default:!1}},emits:["update:algorithm","update:slots","update:hash-on","update:hash-fallback","update:hash-on-header","update:hash-on-cookie","update:hash-on-cookie-path","update:hash-on-query-argument","update:hash-on-uri-capture","update:hash-fallback-header","update:hash-fallback-query-argument","update:hash-fallback-uri-capture"],setup(a,{emit:B}){const{i18nT:r,i18n:{t:l}}=X.useI18n(),{inRange:n}=pe(),g=a,b=B,O=e.ref([{label:l("upstreams.form.algorithms.round_robin_label"),value:"round-robin",selected:!1},{label:l("upstreams.form.algorithms.least_connections_label"),value:"least-connections",selected:!1},{label:l("upstreams.form.algorithms.consistent_hashing_label"),value:"consistent-hashing",selected:!1},{label:l("upstreams.form.algorithms.latency_label"),value:"latency",selected:!1}]),S=e.ref([{label:l("upstreams.form.hash_labels.none"),value:"none",selected:!1},{label:l("upstreams.form.hash_labels.consumer"),value:"consumer",selected:!1},{label:l("upstreams.form.hash_labels.ip"),value:"ip",selected:!1},{label:l("upstreams.form.hash_labels.header"),value:"header",selected:!1},{label:l("upstreams.form.hash_labels.cookie"),value:"cookie",selected:!1},{label:l("upstreams.form.hash_labels.path"),value:"path",selected:!1},{label:l("upstreams.form.hash_labels.query_argument"),value:"query_arg",selected:!1},{label:l("upstreams.form.hash_labels.uri_capture"),value:"uri_capture",selected:!1}]);e.watch(()=>g.hashOn,(_,u)=>{u==="header"&&_!==u&&b("update:hash-on-header",""),u==="cookie"&&_!==u&&(b("update:hash-on-cookie",""),b("update:hash-on-cookie-path","/")),u==="query_arg"&&_!==u&&b("update:hash-on-query-argument",""),u==="uri_capture"&&_!==u&&b("update:hash-on-uri-capture",""),(_==="cookie"||_==="none")&&(b("update:hash-fallback","none"),b("update:hash-fallback-header",""),b("update:hash-fallback-query-argument",""),b("update:hash-fallback-uri-capture",""))}),e.watch(()=>g.hashFallback,(_,u)=>{u==="header"&&_!==u&&b("update:hash-fallback-header",""),u==="cookie"&&_!==u&&(b("update:hash-on-cookie",""),b("update:hash-on-cookie-path","/")),u==="query_arg"&&_!==u&&b("update:hash-fallback-query-argument",""),u==="uri_capture"&&_!==u&&b("update:hash-fallback-uri-capture","")});const s=e.computed(()=>g.hashOn==="cookie"||g.hashOn==="none"),h=e.computed(()=>g.slots?n(g.slots,ke,Ce)?"":l("upstreams.form.errors.in_range"):"");return(_,u)=>{const t=e.resolveComponent("KExternalLink"),E=e.resolveComponent("KSelect"),w=e.resolveComponent("KInput"),d=e.resolveComponent("KCard");return e.openBlock(),e.createBlock(e.unref(p.EntityFormSection),{class:"kong-ui-entities-upstreams-load-balancing",title:e.unref(l)("upstreams.form.load_balancing.title")},{description:e.withCtx(()=>[e.createElementVNode("p",null,[e.createTextVNode(e.toDisplayString(e.unref(l)("upstreams.form.load_balancing.help"))+" ",1),e.createVNode(t,{"hide-icon":"",href:e.unref(ge).upstreamObject},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(l)("upstreams.form.buttons.view_documentation")),1)]),_:1},8,["href"])])]),default:e.withCtx(()=>[e.createVNode(E,{class:"algorithm-select",items:O.value,label:e.unref(l)("upstreams.form.fields.algorithm.label"),"model-value":a.algorithm,readonly:a.readonly,width:"100%","onUpdate:modelValue":u[0]||(u[0]=V=>b("update:algorithm",V))},null,8,["items","label","model-value","readonly"]),e.createVNode(w,{autocomplete:"off","data-testid":"upstreams-form-slots",error:!!h.value,"error-message":h.value,help:e.unref(l)("upstreams.form.fields.slots.help"),label:e.unref(l)("upstreams.form.fields.slots.label"),max:e.unref(Ce),min:e.unref(ke),"model-value":a.slots,readonly:a.readonly,type:"number","onUpdate:modelValue":u[1]||(u[1]=V=>b("update:slots",V))},null,8,["error","error-message","help","label","max","min","model-value","readonly"]),e.createVNode(d,null,{default:e.withCtx(()=>[e.createElementVNode("h5",Nt,e.toDisplayString(e.unref(l)("upstreams.form.fields.hash_on.label")),1),e.createElementVNode("p",xt,e.toDisplayString(e.unref(l)("upstreams.form.fields.hash_on.help")),1),e.createVNode(E,{class:"hash-on-select",items:S.value,label:e.unref(l)("upstreams.form.fields.hash_on.label"),"model-value":a.hashOn,readonly:a.readonly,width:"100%","onUpdate:modelValue":u[2]||(u[2]=V=>b("update:hash-on",V))},null,8,["items","label","model-value","readonly"]),a.hashOn==="header"?(e.openBlock(),e.createBlock(w,{key:0,autocomplete:"off",class:"margin-top-6","data-testid":"upstreams-form-hash-on-header",label:e.unref(l)("upstreams.form.fields.header.label"),"model-value":a.hashOnHeader,readonly:a.readonly,required:"",type:"text","onUpdate:modelValue":u[3]||(u[3]=V=>b("update:hash-on-header",V))},null,8,["label","model-value","readonly"])):e.createCommentVNode("",!0),a.hashOn==="cookie"?(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createVNode(w,{autocomplete:"off",class:"margin-top-6","data-testid":"upstreams-form-hash-on-cookie",label:e.unref(l)("upstreams.form.fields.cookie.label"),"model-value":a.hashOnCookie,readonly:a.readonly,required:"",type:"text","onUpdate:modelValue":u[4]||(u[4]=V=>b("update:hash-on-cookie",V))},null,8,["label","model-value","readonly"]),e.createVNode(w,{autocomplete:"off",class:"margin-top-6","data-testid":"upstreams-form-hash-on-cookie-path",label:e.unref(l)("upstreams.form.fields.cookie_path.label"),"model-value":a.hashOnCookiePath,readonly:a.readonly,required:"",type:"text","onUpdate:modelValue":u[5]||(u[5]=V=>b("update:hash-on-cookie-path",V))},null,8,["label","model-value","readonly"])],64)):e.createCommentVNode("",!0),a.hashOn==="query_arg"?(e.openBlock(),e.createBlock(w,{key:2,autocomplete:"off",class:"margin-top-6","data-testid":"upstreams-form-query-argument",label:e.unref(l)("upstreams.form.fields.query_argument.label"),"model-value":a.hashOnQueryArgument,readonly:a.readonly,required:"",type:"text","onUpdate:modelValue":u[6]||(u[6]=V=>b("update:hash-on-query-argument",V))},null,8,["label","model-value","readonly"])):e.createCommentVNode("",!0),a.hashOn==="uri_capture"?(e.openBlock(),e.createBlock(w,{key:3,autocomplete:"off",class:"margin-top-6","data-testid":"upstreams-form-uri-capture",label:e.unref(l)("upstreams.form.fields.uri_capture.label"),"model-value":a.hashOnUriCapture,readonly:a.readonly,required:"",type:"text","onUpdate:modelValue":u[7]||(u[7]=V=>b("update:hash-on-uri-capture",V))},null,8,["label","model-value","readonly"])):e.createCommentVNode("",!0)]),_:1}),e.createVNode(d,null,{default:e.withCtx(()=>[e.createElementVNode("h5",St,e.toDisplayString(e.unref(l)("upstreams.form.fields.hash_fallback.label")),1),e.createElementVNode("p",Ht,e.toDisplayString(e.unref(l)("upstreams.form.fields.hash_fallback.help")),1),e.createVNode(E,{class:"hash-fallback-select",disabled:s.value,items:S.value,label:e.unref(l)("upstreams.form.fields.hash_fallback.label"),"label-attributes":{tooltipAttributes:{"max-width":"400"}},"model-value":a.hashFallback,readonly:a.readonly,width:"100%","onUpdate:modelValue":u[8]||(u[8]=V=>b("update:hash-fallback",V))},{"label-tooltip":e.withCtx(()=>[e.createVNode(e.unref(r),{keypath:"upstreams.form.fields.hash_fallback.tooltip",scope:"global"},{hash_on:e.withCtx(()=>[e.createElementVNode("code",null,e.toDisplayString(e.unref(l)("upstreams.form.fields.hash_fallback.hash_on")),1)]),cookie:e.withCtx(()=>[e.createElementVNode("code",null,e.toDisplayString(e.unref(l)("upstreams.form.fields.hash_fallback.cookie")),1)]),_:1})]),_:1},8,["disabled","items","label","model-value","readonly"]),a.hashFallback==="header"?(e.openBlock(),e.createBlock(w,{key:0,autocomplete:"off",class:"margin-top-6","data-testid":"upstreams-form-hash-fallback-header",label:e.unref(l)("upstreams.form.fields.header.label"),"model-value":a.hashFallbackHeader,readonly:a.readonly,required:"",type:"text","onUpdate:modelValue":u[9]||(u[9]=V=>b("update:hash-fallback-header",V))},null,8,["label","model-value","readonly"])):e.createCommentVNode("",!0),a.hashFallback==="cookie"?(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createVNode(w,{autocomplete:"off",class:"margin-top-6","data-testid":"upstreams-form-hash-on-cookie",label:e.unref(l)("upstreams.form.fields.cookie.label"),"model-value":a.hashOnCookie,readonly:a.readonly,required:"",type:"text","onUpdate:modelValue":u[10]||(u[10]=V=>b("update:hash-on-cookie",V))},null,8,["label","model-value","readonly"]),e.createVNode(w,{autocomplete:"off",class:"margin-top-6","data-testid":"upstreams-form-hash-on-cookie-path",label:e.unref(l)("upstreams.form.fields.cookie_path.label"),"model-value":a.hashOnCookiePath,readonly:a.readonly,required:"",type:"text","onUpdate:modelValue":u[11]||(u[11]=V=>b("update:hash-on-cookie-path",V))},null,8,["label","model-value","readonly"])],64)):e.createCommentVNode("",!0),a.hashFallback==="query_arg"?(e.openBlock(),e.createBlock(w,{key:2,autocomplete:"off",class:"margin-top-6","data-testid":"upstreams-form-hash-fallback-query-argument",label:e.unref(l)("upstreams.form.fields.query_argument.label"),"model-value":a.hashFallbackQueryArgument,readonly:a.readonly,required:"",type:"text","onUpdate:modelValue":u[12]||(u[12]=V=>b("update:hash-fallback-query-argument",V))},null,8,["label","model-value","readonly"])):e.createCommentVNode("",!0),a.hashFallback==="uri_capture"?(e.openBlock(),e.createBlock(w,{key:3,autocomplete:"off",class:"margin-top-6","data-testid":"upstreams-form-hash-fallback-uri-capture",label:e.unref(l)("upstreams.form.fields.uri_capture.label"),"model-value":a.hashFallbackUriCapture,readonly:a.readonly,required:"",type:"text","onUpdate:modelValue":u[13]||(u[13]=V=>b("update:hash-fallback-uri-capture",V))},null,8,["label","model-value","readonly"])):e.createCommentVNode("",!0)]),_:1})]),_:1},8,["title"])}}}),[["__scopeId","data-v-4f4deb55"]]),It={class:"fields-group-title"},Ut={class:"fields-group-text"},Ft={class:"fields-group-title"},qt={class:"fields-group-text"},Et=Z(e.defineComponent({__name:"UpstreamsFormHealthChecks",props:{activeHealthSwitch:{type:Boolean,required:!0},passiveHealthSwitch:{type:Boolean,required:!0},healthchecksThreshold:{type:String,required:!0},readonly:{type:Boolean,required:!1,default:!1}},emits:["update:active-health-switch","update:passive-health-switch","update:healthchecks-threshold"],setup(a,{emit:B}){const{i18n:{t:r}}=X.useI18n(),l=B;return(n,g)=>{const b=e.resolveComponent("KExternalLink"),O=e.resolveComponent("KInputSwitch"),S=e.resolveComponent("KCard"),s=e.resolveComponent("KInput");return e.openBlock(),e.createBlock(e.unref(p.EntityFormSection),{class:"kong-ui-entities-upstreams-healthchecks",title:e.unref(r)("upstreams.form.health_check.title")},{description:e.withCtx(()=>[e.createElementVNode("p",null,[e.createTextVNode(e.toDisplayString(e.unref(r)("upstreams.form.health_check.help"))+" ",1),e.createVNode(b,{"hide-icon":"",href:e.unref(ge).loadBalancing},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(r)("upstreams.form.buttons.view_documentation")),1)]),_:1},8,["href"])])]),default:e.withCtx(()=>[e.createVNode(S,null,{default:e.withCtx(()=>[e.createElementVNode("h5",It,e.toDisplayString(e.unref(r)("upstreams.form.fields.active_health_checks.label")),1),e.createElementVNode("p",Ut,e.toDisplayString(e.unref(r)("upstreams.form.fields.active_health_checks.help")),1),e.createVNode(O,{class:"active-health-switch","data-testid":"active-health-switch",disabled:a.readonly,"model-value":a.activeHealthSwitch,onChange:g[0]||(g[0]=h=>l("update:active-health-switch",h))},null,8,["disabled","model-value"])]),_:1}),e.createVNode(S,null,{default:e.withCtx(()=>[e.createElementVNode("h5",Ft,e.toDisplayString(e.unref(r)("upstreams.form.fields.passive_health_checks.label")),1),e.createElementVNode("p",qt,e.toDisplayString(e.unref(r)("upstreams.form.fields.passive_health_checks.help")),1),e.createVNode(O,{class:"passive-health-switch","data-testid":"passive-health-switch",disabled:a.readonly,"model-value":a.passiveHealthSwitch,onChange:g[1]||(g[1]=h=>l("update:passive-health-switch",h))},null,8,["disabled","model-value"])]),_:1}),e.createVNode(s,{autocomplete:"off","data-testid":"upstreams-form-healthchecks-threshold",label:e.unref(r)("upstreams.form.fields.healthchecks_threshold.label"),max:e.unref(at),min:e.unref(tt),"model-value":a.healthchecksThreshold,readonly:a.readonly,type:"number","onUpdate:modelValue":g[2]||(g[2]=h=>l("update:healthchecks-threshold",h))},null,8,["label","max","min","model-value","readonly"])]),_:1},8,["title"])}}}),[["__scopeId","data-v-c2ff95ff"]]),Bt={key:2},Ot={class:"fields-group-title"},Dt={class:"fields-group-text"},$t={class:"fields-group-title"},Pt={class:"fields-group-text"},Mt=Z(e.defineComponent({__name:"UpstreamsFormActiveHealthCheck",props:{config:{type:Object,required:!0},type:{type:String,required:!0},httpPath:{type:String,required:!0},timeout:{type:String,required:!0},concurrency:{type:String,required:!0},httpsSni:{type:String,required:!0},verifySsl:{type:Boolean,required:!0},headers:{type:Array,required:!0},healthyInterval:{type:String,required:!0},healthySuccesses:{type:String,required:!0},healthyHttpStatuses:{type:Array,required:!0},unhealthyInterval:{type:String,required:!0},unhealthyHttpFailures:{type:String,required:!0},unhealthyTcpFailures:{type:String,required:!0},unhealthyHttpStatuses:{type:Array,required:!0},unhealthyTimeouts:{type:String,required:!0},readonly:{type:Boolean,required:!1,default:!1}},emits:["update:type","update:http-path","update:timeout","update:concurrency","update:https-sni","update:verify-ssl","update:headers","update:healthy-interval","update:healthy-successes","update:healthy-http-statuses","update:unhealthy-interval","update:unhealthy-http-failures","update:unhealthy-tcp-failures","update:unhealthy-http-statuses","update:unhealthy-timeouts"],setup(a,{emit:B}){const{i18n:{t:r}}=X.useI18n(),{objectsAreEqual:l}=pe(),n=a,g=B,b=e.ref([{label:r("upstreams.form.healthcheck_type_labels.http"),value:"http",selected:!1},{label:r("upstreams.form.healthcheck_type_labels.https"),value:"https",selected:!1},{label:r("upstreams.form.healthcheck_type_labels.tcp"),value:"tcp",selected:!1},{label:r("upstreams.form.healthcheck_type_labels.grsp"),value:"grpc",selected:!1},{label:r("upstreams.form.healthcheck_type_labels.grsps"),value:"grpcs",selected:!1}]),O=e.computed(()=>n.type==="https"||n.type==="grpcs"),S=e.computed(()=>n.type==="tcp"),{trackNewItems:s}=oe({replaceId:!0}),{trackNewItems:h}=oe({replaceId:!0});e.watch(()=>n.type,(w,d)=>{d==="tcp"&&w!==d&&g("update:unhealthy-tcp-failures","5"),(d==="https"||d==="grpcs")&&w!==d&&(g("update:https-sni",""),g("update:verify-ssl",!1)),d!=="tcp"&&w==="tcp"&&(g("update:http-path","/"),g("update:healthy-http-statuses",he),g("update:unhealthy-http-statuses",de))});const _=e.ref([{key:"",values:""}]);e.watch(()=>n.headers,w=>{l(_.value,w)||(_.value=[...w])},{immediate:!0,deep:!0});const u=()=>{g("update:headers",_.value)},t=()=>{_.value.push({key:"",values:""}),u()},E=w=>{w===0&&_.value.length===1?_.value[0]={key:"",values:""}:_.value.splice(w,1),u()};return(w,d)=>{const V=e.resolveComponent("KExternalLink"),R=e.resolveComponent("KSelect"),T=e.resolveComponent("KInput"),A=e.resolveComponent("KCheckbox"),M=e.resolveComponent("KLabel"),m=e.resolveComponent("KButton"),N=e.resolveComponent("KMultiselect"),H=e.resolveComponent("KCard");return e.openBlock(),e.createBlock(e.unref(p.EntityFormSection),{class:"kong-ui-entities-upstreams-active-healthcheck",title:e.unref(r)("upstreams.form.active_health_check.title")},{description:e.withCtx(()=>[e.createElementVNode("p",null,[e.createTextVNode(e.toDisplayString(e.unref(r)("upstreams.form.active_health_check.help"))+" ",1),e.createVNode(V,{"hide-icon":"",href:e.unref(ge).upstreamObject},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(r)("upstreams.form.buttons.view_documentation")),1)]),_:1},8,["href"])])]),default:e.withCtx(()=>{var U;return[e.createVNode(R,{class:"active-healthcheck-type-select",items:b.value,label:e.unref(r)("upstreams.form.fields.active_healthcheck_type.label"),"model-value":a.type,readonly:a.readonly,width:"100%","onUpdate:modelValue":d[0]||(d[0]=f=>g("update:type",f))},null,8,["items","label","model-value","readonly"]),S.value?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(T,{key:0,autocomplete:"off","data-testid":"active-healthcheck-http-path",label:e.unref(r)("upstreams.form.fields.http_path.label"),"model-value":a.httpPath,readonly:a.readonly,type:"text","onUpdate:modelValue":d[1]||(d[1]=f=>g("update:http-path",f))},null,8,["label","model-value","readonly"])),e.createVNode(T,{autocomplete:"off","data-testid":"active-healthcheck-timeout",label:e.unref(r)("upstreams.form.fields.timeout.label"),max:e.unref(st),min:e.unref(lt),"model-value":a.timeout,readonly:a.readonly,type:"number","onUpdate:modelValue":d[2]||(d[2]=f=>g("update:timeout",f))},null,8,["label","max","min","model-value","readonly"]),e.createVNode(T,{autocomplete:"off","data-testid":"active-healthcheck-concurrency",label:e.unref(r)("upstreams.form.fields.concurrency.label"),max:e.unref(ot),min:e.unref(rt),"model-value":a.concurrency,readonly:a.readonly,type:"number","onUpdate:modelValue":d[3]||(d[3]=f=>g("update:concurrency",f))},null,8,["label","max","min","model-value","readonly"]),O.value?(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createVNode(T,{autocomplete:"off",class:"margin-bottom-6","data-testid":"active-healthcheck-https-sni",label:e.unref(r)("upstreams.form.fields.https_sni.label"),"model-value":a.httpsSni,readonly:a.readonly,type:"text","onUpdate:modelValue":d[4]||(d[4]=f=>g("update:https-sni",f))},null,8,["label","model-value","readonly"]),e.createVNode(A,{"data-testid":"active-healthcheck-verify-ssl",disabled:a.readonly,label:e.unref(r)("upstreams.form.fields.verify_ssl.label"),"model-value":a.verifySsl,"onUpdate:modelValue":d[5]||(d[5]=f=>g("update:verify-ssl",f))},null,8,["disabled","label","model-value"])],64)):e.createCommentVNode("",!0),((U=a.config)==null?void 0:U.app)==="kongManager"?(e.openBlock(),e.createElementBlock("div",Bt,[e.createVNode(M,{info:e.unref(r)("upstreams.form.fields.headers.tooltip_active"),"tooltip-attributes":{maxWidth:"250px"}},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(r)("upstreams.form.fields.headers.label")),1)]),_:1},8,["info"]),e.createElementVNode("div",null,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(_.value,(f,$)=>(e.openBlock(),e.createElementBlock("div",{key:`${f.header}_${$}`,class:e.normalizeClass(["headers-row",{"margin-top-6":$>0}])},[e.createVNode(T,{modelValue:_.value[$].key,"onUpdate:modelValue":D=>_.value[$].key=D,autocomplete:"off","data-testid":`active-healthcheck-headers-header-${$+1}`,readonly:a.readonly,type:"text",onBlur:u},null,8,["modelValue","onUpdate:modelValue","data-testid","readonly"]),e.createVNode(T,{modelValue:_.value[$].values,"onUpdate:modelValue":D=>_.value[$].values=D,autocomplete:"off","data-testid":`active-healthcheck-headers-value-${$+1}`,readonly:a.readonly,type:"text",onBlur:u},null,8,["modelValue","onUpdate:modelValue","data-testid","readonly"]),e.createVNode(m,{appearance:"tertiary",class:"btn-remove","data-testid":"btn-remove-header",disabled:_.value.length===1,icon:"",onClick:D=>E($)},{default:e.withCtx(()=>[e.createVNode(e.unref(ee.TrashIcon),{class:"delete-item",color:_.value.length>1?e.unref(nt):void 0},null,8,["color"])]),_:2},1032,["disabled","onClick"]),_.value&&$===_.value.length-1?(e.openBlock(),e.createBlock(m,{key:0,appearance:"tertiary",class:"btn-add-header","data-testid":"btn-add-header",icon:"",onClick:t},{default:e.withCtx(()=>[e.createVNode(e.unref(ee.AddIcon))]),_:1})):e.createCommentVNode("",!0)],2))),128))])])):e.createCommentVNode("",!0),e.createVNode(H,null,{default:e.withCtx(()=>[e.createElementVNode("h5",Ot,e.toDisplayString(e.unref(r)("upstreams.form.healthy.label")),1),e.createElementVNode("p",Dt,e.toDisplayString(e.unref(r)("upstreams.form.healthy.help")),1),e.createVNode(T,{autocomplete:"off",class:"margin-bottom-6","data-testid":"active-healthcheck-healthy-interval",help:e.unref(r)("upstreams.form.fields.interval.help"),label:e.unref(r)("upstreams.form.fields.interval.label"),max:e.unref(He),min:e.unref(Se),"model-value":a.healthyInterval,readonly:a.readonly,type:"number","onUpdate:modelValue":d[6]||(d[6]=f=>g("update:healthy-interval",f))},null,8,["help","label","max","min","model-value","readonly"]),e.createVNode(T,{autocomplete:"off","data-testid":"active-healthcheck-healthy-successes",label:e.unref(r)("upstreams.form.fields.successes.label"),max:e.unref(ae),min:e.unref(te),"model-value":a.healthySuccesses,readonly:a.readonly,type:"number","onUpdate:modelValue":d[7]||(d[7]=f=>g("update:healthy-successes",f))},null,8,["label","max","min","model-value","readonly"]),S.value?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(N,{key:0,autocomplete:"off",class:"margin-top-6 active-healthcheck-healthy-http-statuses","data-testid":"active-healthcheck-healthy-http-statuses","enable-item-creation":"",items:e.unref(ie),label:e.unref(r)("upstreams.form.fields.http_statuses.label"),"model-value":a.healthyHttpStatuses,readonly:a.readonly,width:"100%",onItemAdded:d[8]||(d[8]=f=>e.unref(s)(f,!0)),onItemRemoved:d[9]||(d[9]=f=>e.unref(s)(f,!1)),"onUpdate:modelValue":d[10]||(d[10]=f=>g("update:healthy-http-statuses",f))},null,8,["items","label","model-value","readonly"]))]),_:1}),e.createVNode(H,null,{default:e.withCtx(()=>[e.createElementVNode("h5",$t,e.toDisplayString(e.unref(r)("upstreams.form.unhealthy.label")),1),e.createElementVNode("p",Pt,e.toDisplayString(e.unref(r)("upstreams.form.unhealthy.help")),1),e.createVNode(T,{autocomplete:"off",class:"margin-bottom-6","data-testid":"active-healthcheck-unhealthy-interval",help:e.unref(r)("upstreams.form.fields.interval.help"),label:e.unref(r)("upstreams.form.fields.interval.label"),max:e.unref(He),min:e.unref(Se),"model-value":a.unhealthyInterval,readonly:a.readonly,type:"number","onUpdate:modelValue":d[11]||(d[11]=f=>g("update:unhealthy-interval",f))},null,8,["help","label","max","min","model-value","readonly"]),e.createVNode(T,{autocomplete:"off",class:"margin-bottom-6","data-testid":"active-healthcheck-unhealthy-tcp-failures",label:e.unref(r)("upstreams.form.fields.tcp_failures.label"),max:e.unref(ae),min:e.unref(te),"model-value":a.unhealthyTcpFailures,readonly:a.readonly,type:"number","onUpdate:modelValue":d[12]||(d[12]=f=>g("update:unhealthy-tcp-failures",f))},null,8,["label","max","min","model-value","readonly"]),S.value?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(T,{key:0,autocomplete:"off",class:"margin-bottom-6","data-testid":"active-healthcheck-unhealthy-http-failures",label:e.unref(r)("upstreams.form.fields.http_failures.label"),max:e.unref(ae),min:e.unref(te),"model-value":a.unhealthyHttpFailures,readonly:a.readonly,type:"number","onUpdate:modelValue":d[13]||(d[13]=f=>g("update:unhealthy-http-failures",f))},null,8,["label","max","min","model-value","readonly"])),S.value?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(N,{key:1,autocomplete:"off",class:"margin-bottom-6 active-healthcheck-unhealthy-http-statuses","data-testid":"active-healthcheck-unhealthy-http-statuses","enable-item-creation":"",items:e.unref(ie),label:e.unref(r)("upstreams.form.fields.http_statuses.label"),"model-value":a.unhealthyHttpStatuses,readonly:a.readonly,width:"100%",onItemAdded:d[14]||(d[14]=f=>e.unref(h)(f,!0)),onItemRemoved:d[15]||(d[15]=f=>e.unref(h)(f,!1)),"onUpdate:modelValue":d[16]||(d[16]=f=>g("update:unhealthy-http-statuses",f))},null,8,["items","label","model-value","readonly"])),e.createVNode(T,{autocomplete:"off","data-testid":"active-healthcheck-unhealthy-timeouts",label:e.unref(r)("upstreams.form.fields.timeouts.label"),max:e.unref(xe),min:e.unref(Ne),"model-value":a.unhealthyTimeouts,readonly:a.readonly,type:"number","onUpdate:modelValue":d[17]||(d[17]=f=>g("update:unhealthy-timeouts",f))},null,8,["label","max","min","model-value","readonly"])]),_:1})]}),_:1},8,["title"])}}}),[["__scopeId","data-v-d079157c"]]),At={class:"fields-group-title"},Kt={class:"fields-group-text"},Rt={class:"fields-group-title"},jt={class:"fields-group-text"},Lt=Z(e.defineComponent({__name:"UpstreamsFormPassiveHealthCheck",props:{type:{type:String,required:!0},healthySuccesses:{type:String,required:!0},healthyHttpStatuses:{type:Array,required:!0},unhealthyTimeouts:{type:String,required:!0},unhealthyHttpFailures:{type:String,required:!0},unhealthyHttpStatuses:{type:Array,required:!0},unhealthyTcpFailures:{type:String,required:!0},readonly:{type:Boolean,required:!1,default:!1}},emits:["update:type","update:healthy-successes","update:healthy-http-statuses","update:unhealthy-timeouts","update:unhealthy-http-failures","update:unhealthy-http-statuses","update:unhealthy-tcp-failures"],setup(a,{emit:B}){const{i18n:{t:r}}=X.useI18n(),l=a,n=B,g=e.ref([{label:r("upstreams.form.healthcheck_type_labels.http"),value:"http",selected:!1},{label:r("upstreams.form.healthcheck_type_labels.https"),value:"https",selected:!1},{label:r("upstreams.form.healthcheck_type_labels.tcp"),value:"tcp",selected:!1},{label:r("upstreams.form.healthcheck_type_labels.grsp"),value:"grpc",selected:!1},{label:r("upstreams.form.healthcheck_type_labels.grsps"),value:"grpcs",selected:!1}]),b=e.computed(()=>l.type==="tcp"),{trackNewItems:O}=oe({replaceId:!0}),{trackNewItems:S}=oe({replaceId:!0});return e.watch(()=>l.type,(s,h)=>{h==="tcp"&&s!==h&&n("update:unhealthy-tcp-failures","5"),h!=="tcp"&&s==="tcp"&&(n("update:healthy-http-statuses",ce),n("update:unhealthy-http-statuses",ue))}),(s,h)=>{const _=e.resolveComponent("KExternalLink"),u=e.resolveComponent("KSelect"),t=e.resolveComponent("KInput"),E=e.resolveComponent("KMultiselect"),w=e.resolveComponent("KCard");return e.openBlock(),e.createBlock(e.unref(p.EntityFormSection),{class:"kong-ui-entities-upstreams-passive-healthcheck",title:e.unref(r)("upstreams.form.passive_health_check.title")},{description:e.withCtx(()=>[e.createElementVNode("p",null,[e.createTextVNode(e.toDisplayString(e.unref(r)("upstreams.form.passive_health_check.help"))+" ",1),e.createVNode(_,{"hide-icon":"",href:e.unref(ge).upstreamObject},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(r)("upstreams.form.buttons.view_documentation")),1)]),_:1},8,["href"])])]),default:e.withCtx(()=>[e.createVNode(u,{class:"passive-healthcheck-type-select",items:g.value,label:e.unref(r)("upstreams.form.fields.passive_health_check_type.label"),"model-value":a.type,readonly:a.readonly,width:"100%","onUpdate:modelValue":h[0]||(h[0]=d=>n("update:type",d))},null,8,["items","label","model-value","readonly"]),e.createVNode(w,null,{default:e.withCtx(()=>[e.createElementVNode("h5",At,e.toDisplayString(e.unref(r)("upstreams.form.passive_healthy.label")),1),e.createElementVNode("p",Kt,e.toDisplayString(e.unref(r)("upstreams.form.passive_healthy.help")),1),e.createVNode(t,{autocomplete:"off","data-testid":"passive-healthcheck-healthy-successes",label:e.unref(r)("upstreams.form.fields.successes.label"),max:e.unref(ae),min:e.unref(te),"model-value":a.healthySuccesses,readonly:a.readonly,type:"number","onUpdate:modelValue":h[1]||(h[1]=d=>n("update:healthy-successes",d))},null,8,["label","max","min","model-value","readonly"]),b.value?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(E,{key:0,class:"margin-top-6 passive-healthcheck-healthy-http-statuses","enable-item-creation":"",items:e.unref(ie),label:e.unref(r)("upstreams.form.fields.http_statuses.label"),"model-value":a.healthyHttpStatuses,readonly:a.readonly,width:"100%",onItemAdded:h[2]||(h[2]=d=>e.unref(O)(d,!0)),onItemRemoved:h[3]||(h[3]=d=>e.unref(O)(d,!1)),"onUpdate:modelValue":h[4]||(h[4]=d=>n("update:healthy-http-statuses",d))},null,8,["items","label","model-value","readonly"]))]),_:1}),e.createVNode(w,null,{default:e.withCtx(()=>[e.createElementVNode("h5",Rt,e.toDisplayString(e.unref(r)("upstreams.form.passive_unhealthy.label")),1),e.createElementVNode("p",jt,e.toDisplayString(e.unref(r)("upstreams.form.passive_unhealthy.help")),1),e.createVNode(t,{autocomplete:"off","data-testid":"passive-healthcheck-unhealthy-timeouts",label:e.unref(r)("upstreams.form.fields.timeouts.label"),max:e.unref(xe),min:e.unref(Ne),"model-value":a.unhealthyTimeouts,readonly:a.readonly,type:"number","onUpdate:modelValue":h[5]||(h[5]=d=>n("update:unhealthy-timeouts",d))},null,8,["label","max","min","model-value","readonly"]),e.createVNode(t,{autocomplete:"off",class:"margin-top-6","data-testid":"passive-healthcheck-unhealthy-tcp-failures",label:e.unref(r)("upstreams.form.fields.tcp_failures.label"),max:e.unref(ae),min:e.unref(te),"model-value":a.unhealthyTcpFailures,readonly:a.readonly,type:"number","onUpdate:modelValue":h[6]||(h[6]=d=>n("update:unhealthy-tcp-failures",d))},null,8,["label","max","min","model-value","readonly"]),b.value?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(t,{key:0,autocomplete:"off",class:"margin-top-6","data-testid":"passive-healthcheck-unhealthy-http-failures",label:e.unref(r)("upstreams.form.fields.http_failures.label"),max:e.unref(ae),min:e.unref(te),"model-value":a.unhealthyHttpFailures,readonly:a.readonly,type:"number","onUpdate:modelValue":h[7]||(h[7]=d=>n("update:unhealthy-http-failures",d))},null,8,["label","max","min","model-value","readonly"])),b.value?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(E,{key:1,autocomplete:"off",class:"margin-top-6 passive-healthcheck-unhealthy-http-statuses","data-testid":"passive-healthcheck-unhealthy-http-statuses","enable-item-creation":"",items:e.unref(ie),label:e.unref(r)("upstreams.form.fields.http_statuses.label"),"model-value":a.unhealthyHttpStatuses,readonly:a.readonly,width:"100%",onItemAdded:h[8]||(h[8]=d=>e.unref(S)(d,!0)),onItemRemoved:h[9]||(h[9]=d=>e.unref(S)(d,!1)),"onUpdate:modelValue":h[10]||(h[10]=d=>n("update:unhealthy-http-statuses",d))},null,8,["items","label","model-value","readonly"]))]),_:1})]),_:1},8,["title"])}}}),[["__scopeId","data-v-7c20c5c5"]]),Qt={class:"kong-ui-entities-upstreams-form"},Wt=Z(e.defineComponent({__name:"UpstreamsForm",props:{config:{type:Object,required:!0,validator:a=>!(!a||!["konnect","kongManager"].includes(a==null?void 0:a.app)||(a==null?void 0:a.app)==="konnect"&&!(a!=null&&a.controlPlaneId)||(a==null?void 0:a.app)==="kongManager"&&typeof(a==null?void 0:a.workspace)!="string"||!(a!=null&&a.cancelRoute))},upstreamId:{type:String,required:!1,default:""}},emits:["update","error","loading"],setup(a,{emit:B}){var C;const r=a,l=B,{inRange:n,stringToNumberArray:g,upstreamsResponseToFields:b,getDefaultUpstreamFields:O,objectsAreEqual:S,cloneDeep:s}=pe(),{axiosInstance:h}=p.useAxios((C=r.config)==null?void 0:C.axiosRequestConfig),{getMessageFromError:_}=p.useErrors(),u=we.useRouter(),t=e.reactive({fields:O(),readonly:!1,errorMessage:""}),E=e.reactive(O()),w=e.computed(()=>!S(t.fields,E)),d=c=>{t.fields.activeHealthCheck.healthy.interval=c?"5":"0",t.fields.activeHealthCheck.healthy.successes=c?"5":"0",t.fields.activeHealthCheck.healthy.httpStatuses=c?he:[],t.fields.activeHealthCheck.unhealthy.httpStatuses=c?de:[],t.fields.activeHealthCheck.unhealthy.httpFailures=c?"5":"0",t.fields.activeHealthCheck.unhealthy.interval=c?"5":"0",t.fields.activeHealthCheck.unhealthy.tcpFailures=c?"5":"0",t.fields.activeHealthCheck.unhealthy.timeouts=c?"5":"0",t.fields.activeHealthCheck.timeout=c?"1":"0",t.fields.activeHealthCheck.concurrency=c?"10":"0",t.fields.activeHealthCheck.httpPath=c?"/":"",t.fields.activeHealthCheck.httpsSni="",t.fields.activeHealthCheck.type="http"},V=c=>{t.fields.passiveHealthCheck.healthy.successes=c?"80":"0",t.fields.passiveHealthCheck.healthy.httpStatuses=c?ce:[],t.fields.passiveHealthCheck.unhealthy.timeouts=c?"5":"0",t.fields.passiveHealthCheck.unhealthy.tcpFailures=c?"5":"0",t.fields.passiveHealthCheck.unhealthy.httpFailures=c?"5":"0",t.fields.passiveHealthCheck.unhealthy.httpStatuses=c?ue:[],t.fields.passiveHealthCheck.type="http"},R=e.computed(()=>t.fields.slots?n(t.fields.slots,ke,Ce):!0),T=e.computed(()=>t.fields.hashOn==="header"?!!t.fields.hashOnHeader:!0),A=e.computed(()=>t.fields.hashOn==="cookie"||t.fields.hashFallback==="cookie"?!!t.fields.hashOnCookie:!0),M=e.computed(()=>t.fields.hashOn==="cookie"||t.fields.hashFallback==="cookie"?!!t.fields.hashOnCookiePath:!0),m=e.computed(()=>t.fields.hashOn==="query_arg"?!!t.fields.hashOnQueryArgument:!0),N=e.computed(()=>t.fields.hashOn==="uri_capture"?!!t.fields.hashOnUriCapture:!0),H=e.computed(()=>t.fields.hashFallback==="header"?!!t.fields.hashFallbackHeader:!0),U=e.computed(()=>t.fields.hashFallback==="query_arg"?!!t.fields.hashFallbackQueryArgument:!0),f=e.computed(()=>t.fields.hashFallback==="uri_capture"?!!t.fields.hashFallbackUriCapture:!0),$=e.computed(()=>!!t.fields.name&&R.value&&T.value&&A.value&&M.value&&m.value&&N.value&&H.value&&U.value&&f.value),D=e.computed(()=>r.upstreamId?p.EntityBaseFormType.Edit:p.EntityBaseFormType.Create),j=e.computed(()=>{var c,o;return(o=re.form[(c=r.config)==null?void 0:c.app])==null?void 0:o.edit}),J=c=>{Object.assign(t.fields,b(c)),Object.assign(E,s(t.fields))},I=()=>{var c;u.push(((c=r.config)==null?void 0:c.cancelRoute)||{name:"upstreams-list"})},F=c=>{l("loading",c)},K=c=>{l("error",c)},z=e.computed(()=>{const c={};return t.fields.hashOn==="header"&&(c.hash_on_header=t.fields.hashOnHeader),(t.fields.hashOn==="cookie"||t.fields.hashFallback==="cookie")&&(c.hash_on_cookie=t.fields.hashOnCookie,c.hash_on_cookie_path=t.fields.hashOnCookiePath),t.fields.hashOn==="query_arg"&&(c.hash_on_query_arg=t.fields.hashOnQueryArgument),t.fields.hashOn==="uri_capture"&&(c.hash_on_uri_capture=t.fields.hashOnUriCapture),t.fields.hashFallback==="header"&&(c.hash_fallback_header=t.fields.hashFallbackHeader),t.fields.hashFallback==="query_arg"&&(c.hash_fallback_query_arg=t.fields.hashFallbackQueryArgument),t.fields.hashFallback==="uri_capture"&&(c.hash_fallback_uri_capture=t.fields.hashFallbackUriCapture),c}),Q=e.computed(()=>{var o,i,x,P;if(!t.fields.activeHealthSwitch)return((o=r.config)==null?void 0:o.app)==="kongManager"&&D.value===p.EntityBaseFormType.Edit?{type:t.fields.activeHealthCheck.type,headers:{},healthy:{interval:0,successes:0},unhealthy:{interval:0,http_failures:0,tcp_failures:0,timeouts:0}}:void 0;const c={type:t.fields.activeHealthCheck.type,healthy:{interval:Number(t.fields.activeHealthCheck.healthy.interval||"0"),successes:Number(t.fields.activeHealthCheck.healthy.successes||"0")},unhealthy:{interval:Number(t.fields.activeHealthCheck.unhealthy.interval||"0"),timeouts:Number(t.fields.activeHealthCheck.unhealthy.timeouts||"0"),tcp_failures:Number(t.fields.activeHealthCheck.unhealthy.tcpFailures||"0")},timeout:Number(t.fields.activeHealthCheck.timeout||"1"),concurrency:Number(t.fields.activeHealthCheck.concurrency||"10")};if(t.fields.activeHealthCheck.type!=="tcp"){c.http_path=t.fields.activeHealthCheck.httpPath||"/",c.unhealthy.http_failures=Number(t.fields.activeHealthCheck.unhealthy.httpFailures||"5");const G=(i=t.fields.activeHealthCheck.unhealthy.httpStatuses)!=null&&i.length?t.fields.activeHealthCheck.unhealthy.httpStatuses:de;c.unhealthy.http_statuses=g(G);const v=(x=t.fields.activeHealthCheck.healthy.httpStatuses)!=null&&x.length?t.fields.activeHealthCheck.healthy.httpStatuses:he;c.healthy.http_statuses=g(v)}return["https","grpcs"].includes(t.fields.activeHealthCheck.type)&&(c.https_sni=t.fields.activeHealthCheck.httpsSni||null,c.https_verify_certificate=t.fields.activeHealthCheck.verifySsl),((P=r.config)==null?void 0:P.app)==="kongManager"&&(c.headers=t.fields.activeHealthCheck.headers.reduce((G,v)=>{var Y,ne;return v.key?{...G,[v.key]:(ne=(Y=v.values.split(","))==null?void 0:Y.map(be=>be.trim()))==null?void 0:ne.filter(Boolean)}:G},{})),c}),W=e.computed(()=>{var o,i,x;if(!t.fields.passiveHealthSwitch)return((o=r.config)==null?void 0:o.app)==="kongManager"&&D.value===p.EntityBaseFormType.Edit?{type:t.fields.passiveHealthCheck.type,healthy:{successes:0},unhealthy:{timeouts:0,tcp_failures:0,http_failures:0}}:void 0;const c={type:t.fields.passiveHealthCheck.type,healthy:{successes:Number(t.fields.passiveHealthCheck.healthy.successes||"0")},unhealthy:{timeouts:Number(t.fields.passiveHealthCheck.unhealthy.timeouts||"0"),tcp_failures:Number(t.fields.passiveHealthCheck.unhealthy.tcpFailures||"5")}};if(t.fields.passiveHealthCheck.type!=="tcp"){c.unhealthy.http_failures=Number(t.fields.passiveHealthCheck.unhealthy.httpFailures||"5");const P=(i=t.fields.passiveHealthCheck.healthy.httpStatuses)!=null&&i.length?t.fields.passiveHealthCheck.healthy.httpStatuses:ce;c.healthy.http_statuses=g(P);const G=(x=t.fields.passiveHealthCheck.unhealthy.httpStatuses)!=null&&x.length?t.fields.passiveHealthCheck.unhealthy.httpStatuses:ue;c.unhealthy.http_statuses=g(G)}return c}),k=e.computed(()=>{const c={name:t.fields.name,slots:Number(t.fields.slots),algorithm:t.fields.algorithm,hash_on:t.fields.hashOn,hash_fallback:t.fields.hashFallback,healthchecks:{threshold:Number(t.fields.healthchecksThreshold||"0")},host_header:t.fields.hostHeader||null,client_certificate:t.fields.clientCertificate?{id:t.fields.clientCertificate}:null},o=Q.value,i=W.value,x={...c,healthchecks:{...c.healthchecks,active:o||void 0,passive:i||void 0}};return x.tags=t.fields.tags?t.fields.tags.split(",").map(P=>String(P||"").trim()).filter(P=>P!==""):[],Object.assign(x,z.value),x}),q=c=>{var i,x,P,G,v,Y;let o=`${(i=r.config)==null?void 0:i.apiBaseUrl}${re.form[(x=r.config)==null?void 0:x.app][c]}`;return((P=r.config)==null?void 0:P.app)==="konnect"?o=o.replace(/{controlPlaneId}/gi,((G=r.config)==null?void 0:G.controlPlaneId)||""):((v=r.config)==null?void 0:v.app)==="kongManager"&&(o=o.replace(/\/{workspace}/gi,(Y=r.config)!=null&&Y.workspace?`/${r.config.workspace}`:"")),o=o.replace(/{id}/gi,r.upstreamId),o},y=async()=>{var c;try{t.readonly=!0,await h.post(q("validate"),k.value);let o;D.value===p.EntityBaseFormType.Create?o=await h.post(q("create"),k.value):D.value===p.EntityBaseFormType.Edit&&(o=((c=r.config)==null?void 0:c.app)==="konnect"?await h.put(q("edit"),k.value):await h.patch(q("edit"),k.value)),l("update",o==null?void 0:o.data)}catch(o){t.errorMessage=_(o),l("error",o)}finally{t.readonly=!1}};return(c,o)=>(e.openBlock(),e.createElementBlock("div",Qt,[e.createVNode(e.unref(p.EntityBaseForm),{"can-submit":$.value&&w.value,config:a.config,"edit-id":a.upstreamId,"entity-type":e.unref(p.SupportedEntityType).Upstream,"error-message":t.errorMessage,"fetch-url":j.value,"form-fields":k.value,"is-readonly":t.readonly,onCancel:I,"onFetch:error":K,"onFetch:success":J,onLoading:F,onSubmit:y},{default:e.withCtx(()=>[e.createVNode(Vt,{"client-certificate":t.fields.clientCertificate,"onUpdate:clientCertificate":o[0]||(o[0]=i=>t.fields.clientCertificate=i),"host-header":t.fields.hostHeader,"onUpdate:hostHeader":o[1]||(o[1]=i=>t.fields.hostHeader=i),name:t.fields.name,"onUpdate:name":o[2]||(o[2]=i=>t.fields.name=i),tags:t.fields.tags,"onUpdate:tags":o[3]||(o[3]=i=>t.fields.tags=i),config:a.config,readonly:t.readonly},null,8,["client-certificate","host-header","name","tags","config","readonly"]),e.createVNode(Tt,{algorithm:t.fields.algorithm,"onUpdate:algorithm":o[4]||(o[4]=i=>t.fields.algorithm=i),"hash-fallback":t.fields.hashFallback,"onUpdate:hashFallback":o[5]||(o[5]=i=>t.fields.hashFallback=i),"hash-fallback-header":t.fields.hashFallbackHeader,"onUpdate:hashFallbackHeader":o[6]||(o[6]=i=>t.fields.hashFallbackHeader=i),"hash-fallback-query-argument":t.fields.hashFallbackQueryArgument,"onUpdate:hashFallbackQueryArgument":o[7]||(o[7]=i=>t.fields.hashFallbackQueryArgument=i),"hash-fallback-uri-capture":t.fields.hashFallbackUriCapture,"onUpdate:hashFallbackUriCapture":o[8]||(o[8]=i=>t.fields.hashFallbackUriCapture=i),"hash-on":t.fields.hashOn,"onUpdate:hashOn":o[9]||(o[9]=i=>t.fields.hashOn=i),"hash-on-cookie":t.fields.hashOnCookie,"onUpdate:hashOnCookie":o[10]||(o[10]=i=>t.fields.hashOnCookie=i),"hash-on-cookie-path":t.fields.hashOnCookiePath,"onUpdate:hashOnCookiePath":o[11]||(o[11]=i=>t.fields.hashOnCookiePath=i),"hash-on-header":t.fields.hashOnHeader,"onUpdate:hashOnHeader":o[12]||(o[12]=i=>t.fields.hashOnHeader=i),"hash-on-query-argument":t.fields.hashOnQueryArgument,"onUpdate:hashOnQueryArgument":o[13]||(o[13]=i=>t.fields.hashOnQueryArgument=i),"hash-on-uri-capture":t.fields.hashOnUriCapture,"onUpdate:hashOnUriCapture":o[14]||(o[14]=i=>t.fields.hashOnUriCapture=i),slots:t.fields.slots,"onUpdate:slots":o[15]||(o[15]=i=>t.fields.slots=i),readonly:t.readonly},null,8,["algorithm","hash-fallback","hash-fallback-header","hash-fallback-query-argument","hash-fallback-uri-capture","hash-on","hash-on-cookie","hash-on-cookie-path","hash-on-header","hash-on-query-argument","hash-on-uri-capture","slots","readonly"]),e.createVNode(Et,{"active-health-switch":t.fields.activeHealthSwitch,"onUpdate:activeHealthSwitch":[o[16]||(o[16]=i=>t.fields.activeHealthSwitch=i),d],"healthchecks-threshold":t.fields.healthchecksThreshold,"onUpdate:healthchecksThreshold":o[17]||(o[17]=i=>t.fields.healthchecksThreshold=i),"passive-health-switch":t.fields.passiveHealthSwitch,"onUpdate:passiveHealthSwitch":[o[18]||(o[18]=i=>t.fields.passiveHealthSwitch=i),V],readonly:t.readonly},null,8,["active-health-switch","healthchecks-threshold","passive-health-switch","readonly"]),t.fields.activeHealthSwitch?(e.openBlock(),e.createBlock(Mt,{key:0,concurrency:t.fields.activeHealthCheck.concurrency,"onUpdate:concurrency":o[19]||(o[19]=i=>t.fields.activeHealthCheck.concurrency=i),headers:t.fields.activeHealthCheck.headers,"onUpdate:headers":o[20]||(o[20]=i=>t.fields.activeHealthCheck.headers=i),"healthy-http-statuses":t.fields.activeHealthCheck.healthy.httpStatuses,"onUpdate:healthyHttpStatuses":o[21]||(o[21]=i=>t.fields.activeHealthCheck.healthy.httpStatuses=i),"healthy-interval":t.fields.activeHealthCheck.healthy.interval,"onUpdate:healthyInterval":o[22]||(o[22]=i=>t.fields.activeHealthCheck.healthy.interval=i),"healthy-successes":t.fields.activeHealthCheck.healthy.successes,"onUpdate:healthySuccesses":o[23]||(o[23]=i=>t.fields.activeHealthCheck.healthy.successes=i),"http-path":t.fields.activeHealthCheck.httpPath,"onUpdate:httpPath":o[24]||(o[24]=i=>t.fields.activeHealthCheck.httpPath=i),"https-sni":t.fields.activeHealthCheck.httpsSni,"onUpdate:httpsSni":o[25]||(o[25]=i=>t.fields.activeHealthCheck.httpsSni=i),timeout:t.fields.activeHealthCheck.timeout,"onUpdate:timeout":o[26]||(o[26]=i=>t.fields.activeHealthCheck.timeout=i),type:t.fields.activeHealthCheck.type,"onUpdate:type":o[27]||(o[27]=i=>t.fields.activeHealthCheck.type=i),"unhealthy-http-failures":t.fields.activeHealthCheck.unhealthy.httpFailures,"onUpdate:unhealthyHttpFailures":o[28]||(o[28]=i=>t.fields.activeHealthCheck.unhealthy.httpFailures=i),"unhealthy-http-statuses":t.fields.activeHealthCheck.unhealthy.httpStatuses,"onUpdate:unhealthyHttpStatuses":o[29]||(o[29]=i=>t.fields.activeHealthCheck.unhealthy.httpStatuses=i),"unhealthy-interval":t.fields.activeHealthCheck.unhealthy.interval,"onUpdate:unhealthyInterval":o[30]||(o[30]=i=>t.fields.activeHealthCheck.unhealthy.interval=i),"unhealthy-tcp-failures":t.fields.activeHealthCheck.unhealthy.tcpFailures,"onUpdate:unhealthyTcpFailures":o[31]||(o[31]=i=>t.fields.activeHealthCheck.unhealthy.tcpFailures=i),"unhealthy-timeouts":t.fields.activeHealthCheck.unhealthy.timeouts,"onUpdate:unhealthyTimeouts":o[32]||(o[32]=i=>t.fields.activeHealthCheck.unhealthy.timeouts=i),"verify-ssl":t.fields.activeHealthCheck.verifySsl,"onUpdate:verifySsl":o[33]||(o[33]=i=>t.fields.activeHealthCheck.verifySsl=i),config:a.config,readonly:t.readonly},null,8,["concurrency","headers","healthy-http-statuses","healthy-interval","healthy-successes","http-path","https-sni","timeout","type","unhealthy-http-failures","unhealthy-http-statuses","unhealthy-interval","unhealthy-tcp-failures","unhealthy-timeouts","verify-ssl","config","readonly"])):e.createCommentVNode("",!0),t.fields.passiveHealthSwitch?(e.openBlock(),e.createBlock(Lt,{key:1,"healthy-http-statuses":t.fields.passiveHealthCheck.healthy.httpStatuses,"onUpdate:healthyHttpStatuses":o[34]||(o[34]=i=>t.fields.passiveHealthCheck.healthy.httpStatuses=i),"healthy-successes":t.fields.passiveHealthCheck.healthy.successes,"onUpdate:healthySuccesses":o[35]||(o[35]=i=>t.fields.passiveHealthCheck.healthy.successes=i),type:t.fields.passiveHealthCheck.type,"onUpdate:type":o[36]||(o[36]=i=>t.fields.passiveHealthCheck.type=i),"unhealthy-http-failures":t.fields.passiveHealthCheck.unhealthy.httpFailures,"onUpdate:unhealthyHttpFailures":o[37]||(o[37]=i=>t.fields.passiveHealthCheck.unhealthy.httpFailures=i),"unhealthy-http-statuses":t.fields.passiveHealthCheck.unhealthy.httpStatuses,"onUpdate:unhealthyHttpStatuses":o[38]||(o[38]=i=>t.fields.passiveHealthCheck.unhealthy.httpStatuses=i),"unhealthy-tcp-failures":t.fields.passiveHealthCheck.unhealthy.tcpFailures,"onUpdate:unhealthyTcpFailures":o[39]||(o[39]=i=>t.fields.passiveHealthCheck.unhealthy.tcpFailures=i),"unhealthy-timeouts":t.fields.passiveHealthCheck.unhealthy.timeouts,"onUpdate:unhealthyTimeouts":o[40]||(o[40]=i=>t.fields.passiveHealthCheck.unhealthy.timeouts=i),readonly:t.readonly},null,8,["healthy-http-statuses","healthy-successes","type","unhealthy-http-failures","unhealthy-http-statuses","unhealthy-tcp-failures","unhealthy-timeouts","readonly"])):e.createCommentVNode("",!0)]),_:1},8,["can-submit","config","edit-id","entity-type","error-message","fetch-url","form-fields","is-readonly"])]))}}),[["__scopeId","data-v-5c16ff6d"]]),Jt={"data-testid":"client_certificate-plain-text"},zt=e.defineComponent({__name:"UpstreamsConfigCard",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 B=a,{i18n:{t:r},i18nT:l}=X.useI18n(),{getPropValue:n}=p.useHelpers(),g=e.computed(()=>re.form[B.config.app].edit),b=e.ref({id:{},name:{},created_at:{},updated_at:{},algorithm:{order:5,section:p.ConfigurationSchemaSection.Basic,tooltip:r("upstreams.form.fields.algorithm.tooltip")},slots:{order:6,section:p.ConfigurationSchemaSection.Basic},hash_on:{order:7,section:p.ConfigurationSchemaSection.Basic},hash_on_header:{order:8,section:p.ConfigurationSchemaSection.Basic},hash_on_uri_capture:{order:9,section:p.ConfigurationSchemaSection.Basic},hash_on_query_arg:{order:10,section:p.ConfigurationSchemaSection.Basic,label:`${r("upstreams.form.fields.hash_on.label")} ${r("upstreams.form.hash_labels.query_argument")}`},hash_on_cookie:{order:11,section:p.ConfigurationSchemaSection.Basic},hash_on_cookie_path:{order:12,section:p.ConfigurationSchemaSection.Basic},healthchecks:{order:13,section:p.ConfigurationSchemaSection.Basic,type:p.ConfigurationSchemaType.Json},tags:{order:14,tooltip:r("upstreams.form.hash_tooltips.tags")},hash_fallback:{order:1},hash_fallback_header:{order:2},hash_fallback_query_arg:{order:3,label:`${r("upstreams.form.fields.hash_fallback.label")} ${r("upstreams.form.hash_labels.query_argument")}`},hash_fallback_uri_capture:{order:4},host_header:{order:5},use_srv_name:{order:6},client_certificate:{order:7,tooltip:r("upstreams.form.hash_tooltips.client_certificate")}});return(O,S)=>(e.openBlock(),e.createElementBlock("div",null,[e.createVNode(e.unref(p.EntityBaseConfigCard),{config:a.config,"config-card-doc":a.configCardDoc,"config-schema":b.value,"entity-type":e.unref(p.SupportedEntityType).Upstream,"fetch-url":g.value,"hide-title":a.hideTitle,"onFetch:error":S[0]||(S[0]=s=>O.$emit("fetch:error",s)),"onFetch:success":S[1]||(S[1]=s=>O.$emit("fetch:success",s)),onLoading:S[2]||(S[2]=s=>O.$emit("loading",s))},{"name-label-tooltip":e.withCtx(()=>[e.createVNode(e.unref(l),{keypath:"upstreams.form.fields.name.tooltip",scope:"global"},{host:e.withCtx(()=>[e.createElementVNode("code",null,e.toDisplayString(e.unref(r)("upstreams.form.fields.name.host")),1)]),_:1})]),"hash_on-label-tooltip":e.withCtx(({row:s})=>[e.createVNode(e.unref(l),{keypath:"upstreams.form.fields.hash_on.tooltip",scope:"global"},{result:e.withCtx(()=>[e.createElementVNode("code",null,e.toDisplayString(s.value),1)]),_:2},1024)]),"hash_on_header-label-tooltip":e.withCtx(()=>[e.createVNode(e.unref(l),{keypath:"upstreams.form.hash_tooltips.hash_on_header.text",scope:"global"},{hash_on:e.withCtx(()=>[e.createElementVNode("code",null,e.toDisplayString(e.unref(r)("upstreams.form.hash_tooltips.hash_on_header.hash_on")),1)]),header:e.withCtx(()=>[e.createElementVNode("code",null,e.toDisplayString(e.unref(r)("upstreams.form.hash_tooltips.hash_on_header.header")),1)]),_:1})]),"hash_on_uri_capture-label-tooltip":e.withCtx(()=>[e.createVNode(e.unref(l),{keypath:"upstreams.form.hash_tooltips.hash_on_uri_capture.text",scope:"global"},{hash_on:e.withCtx(()=>[e.createElementVNode("code",null,e.toDisplayString(e.unref(r)("upstreams.form.hash_tooltips.hash_on_uri_capture.hash_on")),1)]),uri_capture:e.withCtx(()=>[e.createElementVNode("code",null,e.toDisplayString(e.unref(r)("upstreams.form.hash_tooltips.hash_on_uri_capture.uri_capture")),1)]),_:1})]),"hash_on_query_arg-label-tooltip":e.withCtx(()=>[e.createVNode(e.unref(l),{keypath:"upstreams.form.hash_tooltips.hash_on_query_arg.text",scope:"global"},{hash_on:e.withCtx(()=>[e.createElementVNode("code",null,e.toDisplayString(e.unref(r)("upstreams.form.hash_tooltips.hash_on_query_arg.hash_on")),1)]),query_arg:e.withCtx(()=>[e.createElementVNode("code",null,e.toDisplayString(e.unref(r)("upstreams.form.hash_tooltips.hash_on_query_arg.query_arg")),1)]),_:1})]),"hash_on_cookie-label-tooltip":e.withCtx(()=>[e.createVNode(e.unref(l),{keypath:"upstreams.form.hash_tooltips.hash_on_cookie.text",scope:"global"},{hash_on:e.withCtx(()=>[e.createElementVNode("code",null,e.toDisplayString(e.unref(r)("upstreams.form.hash_tooltips.hash_on_cookie.hash_on")),1)]),hash_fallback:e.withCtx(()=>[e.createElementVNode("code",null,e.toDisplayString(e.unref(r)("upstreams.form.hash_tooltips.hash_on_cookie.hash_fallback")),1)]),cookie:e.withCtx(()=>[e.createElementVNode("code",null,e.toDisplayString(e.unref(r)("upstreams.form.hash_tooltips.hash_on_cookie.cookie")),1)]),_:1})]),"hash_on_cookie_path-label-tooltip":e.withCtx(()=>[e.createVNode(e.unref(l),{keypath:"upstreams.form.hash_tooltips.hash_on_cookie_path.text",scope:"global"},{hash_on:e.withCtx(()=>[e.createElementVNode("code",null,e.toDisplayString(e.unref(r)("upstreams.form.hash_tooltips.hash_on_cookie_path.hash_on")),1)]),hash_fallback:e.withCtx(()=>[e.createElementVNode("code",null,e.toDisplayString(e.unref(r)("upstreams.form.hash_tooltips.hash_on_cookie_path.hash_fallback")),1)]),cookie:e.withCtx(()=>[e.createElementVNode("code",null,e.toDisplayString(e.unref(r)("upstreams.form.hash_tooltips.hash_on_cookie_path.cookie")),1)]),_:1})]),"slots-label-tooltip":e.withCtx(()=>[e.createVNode(e.unref(l),{keypath:"upstreams.form.hash_tooltips.slots.text",scope:"global"},{algorithm:e.withCtx(()=>[e.createElementVNode("code",null,e.toDisplayString(e.unref(r)("upstreams.form.hash_tooltips.slots.algorithm")),1)]),round_robin:e.withCtx(()=>[e.createElementVNode("code",null,e.toDisplayString(e.unref(r)("upstreams.form.hash_tooltips.slots.round_robin")),1)]),consistent_hashing:e.withCtx(()=>[e.createElementVNode("code",null,e.toDisplayString(e.unref(r)("upstreams.form.hash_tooltips.slots.consistent_hashing")),1)]),min:e.withCtx(()=>S[3]||(S[3]=[e.createElementVNode("code",null,"10",-1)])),max:e.withCtx(()=>S[4]||(S[4]=[e.createElementVNode("code",null,"65536",-1)])),_:1})]),"hash_fallback-label-tooltip":e.withCtx(()=>[e.createVNode(e.unref(l),{keypath:"upstreams.form.hash_tooltips.hash_fallback.text",scope:"global"},{hash_on:e.withCtx(()=>[e.createElementVNode("code",null,e.toDisplayString(e.unref(r)("upstreams.form.hash_tooltips.hash_fallback.hash_on")),1)]),cookie:e.withCtx(()=>[e.createElementVNode("code",null,e.toDisplayString(e.unref(r)("upstreams.form.hash_tooltips.hash_fallback.cookie")),1)]),_:1})]),"hash_fallback_header-label-tooltip":e.withCtx(()=>[e.createVNode(e.unref(l),{keypath:"upstreams.form.hash_tooltips.hash_fallback_header.text",scope:"global"},{hash_fallback:e.withCtx(()=>[e.createElementVNode("code",null,e.toDisplayString(e.unref(r)("upstreams.form.hash_tooltips.hash_fallback_header.hash_fallback")),1)]),header:e.withCtx(()=>[e.createElementVNode("code",null,e.toDisplayString(e.unref(r)("upstreams.form.hash_tooltips.hash_fallback_header.header")),1)]),_:1})]),"hash_fallback_query_arg-label-tooltip":e.withCtx(()=>[e.createVNode(e.unref(l),{keypath:"upstreams.form.hash_tooltips.hash_fallback_query_arg.text",scope:"global"},{hash_fallback:e.withCtx(()=>[e.createElementVNode("code",null,e.toDisplayString(e.unref(r)("upstreams.form.hash_tooltips.hash_fallback_query_arg.hash_fallback")),1)]),query_arg:e.withCtx(()=>[e.createElementVNode("code",null,e.toDisplayString(e.unref(r)("upstreams.form.hash_tooltips.hash_fallback_query_arg.query_arg")),1)]),_:1})]),"hash_fallback_uri_capture-label-tooltip":e.withCtx(()=>[e.createVNode(e.unref(l),{keypath:"upstreams.form.hash_tooltips.hash_fallback_uri_capture.text",scope:"global"},{hash_fallback:e.withCtx(()=>[e.createElementVNode("code",null,e.toDisplayString(e.unref(r)("upstreams.form.hash_tooltips.hash_fallback_uri_capture.hash_fallback")),1)]),uri_capture:e.withCtx(()=>[e.createElementVNode("code",null,e.toDisplayString(e.unref(r)("upstreams.form.hash_tooltips.hash_fallback_uri_capture.uri_capture")),1)]),_:1})]),"host_header-label-tooltip":e.withCtx(()=>[e.createVNode(e.unref(l),{keypath:"upstreams.form.hash_tooltips.host_header.text",scope:"global"},{host:e.withCtx(()=>[e.createElementVNode("code",null,e.toDisplayString(e.unref(r)("upstreams.form.hash_tooltips.host_header.host")),1)]),_:1})]),client_certificate:e.withCtx(s=>{var h;return[e.createElementVNode("div",null,[e.createElementVNode("div",Jt,[e.createElementVNode("span",null,e.toDisplayString((h=e.unref(n)("rowValue",s))==null?void 0:h.id),1)])])]}),_:1},8,["config","config-card-doc","config-schema","entity-type","fetch-url","hide-title"])]))}});L.TargetForm=Te,L.TargetsList=_t,L.UpstreamsConfigCard=zt,L.UpstreamsForm=Wt,L.UpstreamsList=mt,Object.defineProperty(L,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-a19fafa9]{align-items:center;border-bottom:var(--eaabfd90);box-sizing:border-box;display:var(--ea5e332a);padding:16px 16px 16px 0;width:100%}.config-card-details-row .config-card-details-label[data-v-a19fafa9]{box-sizing:border-box;padding-right:16px;width:var(--f719ead6)}.config-card-details-row .config-card-details-label label[data-v-a19fafa9]{color:#3a3f51;display:inline-flex;max-width:100%}.config-card-details-row .config-card-details-label label .label-content[data-v-a19fafa9]{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-a19fafa9]{min-width:0}.config-card-details-row .config-card-details-value[data-v-a19fafa9]{box-sizing:border-box;width:var(--f7155f20)}.config-card-details-row .config-card-details-value .truncated[data-v-a19fafa9]{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-a19fafa9]{overflow-wrap:anywhere}.config-card-details-row .config-card-details-value .copy-uuid-array[data-v-a19fafa9] .k-copy:not(:last-of-type){margin-bottom:8px}.config-card-details-row .config-card-details-value .method-badge-array[data-v-a19fafa9]{display:flex;flex-wrap:wrap;row-gap:10px}.config-card-details-row .config-badge[data-v-a19fafa9]{margin-right:4px}.config-card-details-row[data-v-a19fafa9] .k-label{margin-bottom:0}.config-card-details-row[data-v-a19fafa9] .k-label .kong-icon-infoFilled{display:flex}.config-card-details-row[data-v-a19fafa9] .config-card-details-row{width:auto}.json-content.k-code-block{border-top-left-radius:0;border-top-right-radius:0}.json-endpoint{align-items:baseline;background-color:#000933;border-bottom:1px solid rgba(255,255,255,.2);border-top-left-radius:8px;border-top-right-radius:8px;display:flex;padding:8px 0 8px 12px}.json-endpoint .k-code-block{flex:auto;z-index:2}.json-endpoint .k-code-block .code-block-content{padding-bottom:0;padding-top:0}.json-endpoint .k-code-block .code-block-secondary-actions{margin-top:0!important}.json-endpoint code{direction:rtl;max-width:var(--54aebfa2);overflow:hidden!important;text-align:left;text-overflow:ellipsis;white-space:nowrap}.config-card-prop-section-title[data-v-d67757a9]{color:#000933;font-size:16px;font-weight:600;margin-bottom:16px;margin-top:48px}.kong-ui-entity-base-config-card .config-card-actions[data-v-be491a0e]{align-items:center;display:flex}.kong-ui-entity-base-config-card .config-card-actions .config-format-select-label[data-v-be491a0e]{margin-bottom:0;margin-right:8px}.kong-ui-entity-base-config-card .config-card-prop-section-title[data-v-be491a0e]{color:#000933;font-size:16px;font-weight:600;margin-bottom:16px;margin-top:48px}.kong-ui-entity-base-config-card[data-v-be491a0e] .config-card-details-row:last-of-type{border-bottom:none}.kong-ui-entity-base-config-card .book-icon[data-v-be491a0e]{margin-left:8px;padding:0}.kong-ui-entity-base-form[data-v-e8247cfa]{box-sizing:border-box;max-width:1536px;width:100%}.kong-ui-entity-base-form[data-v-e8247cfa] .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-e8247cfa] .k-card.content-card{padding:0 16px!important}.kong-ui-entity-base-form[data-v-e8247cfa] .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-e8247cfa] .tab-item.active>div.tab-link.has-panels{color:#000933!important;font-weight:600!important}.form-actions[data-v-e8247cfa]{align-items:center;display:flex;justify-content:flex-end;margin-top:24px}.form-actions[data-v-e8247cfa] .k-button:last-of-type,.form-actions[data-v-e8247cfa] .k-button:nth-last-of-type(2){margin-left:16px}.content-wrapper[data-v-b252463e] .k-tooltip{word-break:break-all}.kong-ui-entity-base-table .toolbar-container[data-v-d58db70c]{align-items:center;display:flex;width:100%}.kong-ui-entity-base-table .toolbar-button-container[data-v-d58db70c]{margin-left:auto}.kong-ui-entity-base-table .hidden[data-v-d58db70c]{display:none}.kong-ui-entity-base-table[data-v-d58db70c] .empty-state-icon-gateway{background-color:#ecfcff;border-radius:4px;padding:8px}.kong-ui-entity-base-table :deep(.k-table){table-layout:fixed}.kong-ui-entity-delete-modal .message[data-v-4361d622],.kong-ui-entity-delete-modal .description[data-v-4361d622]{line-height:24px;margin:0}.kong-ui-entity-delete-modal .message strong[data-v-4361d622]{font-weight:600}.kong-ui-entity-delete-modal .description[data-v-4361d622]{margin-top:32px}.kong-ui-entity-delete-error[data-v-4361d622]{margin-bottom:16px}.kong-ui-entity-filter-input[data-v-10fa27a5]{width:100%}.kong-ui-entity-filter-clear[data-v-10fa27a5]{cursor:pointer}.kong-ui-entity-filter[data-v-10fa27a5]{display:flex;position:relative}.kong-ui-entity-filter[data-v-10fa27a5] .menu-content{flex-direction:column}.kong-ui-entity-filter[data-v-10fa27a5] .k-menu-item-divider hr{margin:12px 0}.kong-ui-entity-filter-backdrop[data-v-10fa27a5]{bottom:0;left:0;position:fixed;right:0;top:0;z-index:1050}.kong-ui-entity-filter-menu[data-v-10fa27a5]{background-color:#fff;border:1px solid #afb7c5;border-radius:4px;box-shadow:0 4px 20px #e0e4ea;left:0;margin-top:16px;padding:8px 0 12px;position:absolute;top:100%;width:300px;z-index:1060}.kong-ui-entity-filter-menu-item[data-v-10fa27a5]{border-bottom:1px solid #e0e4ea;color:#6c7489;font-size:12px;font-weight:400;line-height:16px;list-style:none;margin:0 20px;padding:16px 0;position:relative;white-space:nowrap}.menu-item-title[data-v-10fa27a5]{align-items:center;cursor:pointer;display:flex;line-height:24px}.menu-item-title.expanded[data-v-10fa27a5]{color:#232633}.menu-item-expand-icon[data-v-10fa27a5]{margin-left:auto}.menu-item-expand-icon.expanded[data-v-10fa27a5]{transform:rotate(180deg)}.menu-item-indicator[data-v-10fa27a5]{background-color:#0044f4;border-radius:50%;height:4px;margin-left:4px;width:4px}.menu-item-body[data-v-10fa27a5]{align-items:center;display:flex;justify-content:space-between;margin-top:16px}.menu-item-body[data-v-10fa27a5] .input{padding-bottom:4px!important;padding-top:4px!important}.menu-item-body[data-v-10fa27a5] .k-input{width:100%}.menu-item-body[data-v-10fa27a5] .k-select-input .input{font-size:12px}.menu-item-body[data-v-10fa27a5] .k-select-input .input::placeholder{color:#00000073!important;font-size:12px}.menu-item-label[data-v-10fa27a5]{margin-bottom:0;margin-right:12px}.menu-item-buttons[data-v-10fa27a5]{display:flex;justify-content:space-between;margin:10px 0 6px}.filter-clear-button-container[data-v-10fa27a5]{padding:12px 20px 0}fieldset[data-v-b1f74200]{margin:0;min-width:0;padding:0}.kong-ui-entity-form-section[data-v-b1f74200]{border:0}.kong-ui-entity-form-section .form-section-wrapper[data-v-b1f74200]{column-gap:16px;display:flex;flex-direction:column;padding-bottom:64px;row-gap:12px;width:100%}@media (min-width: 1024px){.kong-ui-entity-form-section .form-section-wrapper[data-v-b1f74200]{flex-direction:row}}.kong-ui-entity-form-section .form-section-wrapper .form-section-info[data-v-b1f74200]{flex:1}@media (min-width: 1024px){.kong-ui-entity-form-section .form-section-wrapper .form-section-info[data-v-b1f74200]{max-width:350px}.kong-ui-entity-form-section .form-section-wrapper .form-section-info.sticky[data-v-b1f74200]{height:fit-content;margin-bottom:16px;position:sticky;top:16px}}.kong-ui-entity-form-section .form-section-wrapper .form-section-info .form-section-title[data-v-b1f74200]{color:#000933;font-size:16px;font-weight:700;line-height:20px;margin-bottom:8px;margin-top:0}.kong-ui-entity-form-section .form-section-wrapper .form-section-info .form-section-description[data-v-b1f74200],.kong-ui-entity-form-section .form-section-wrapper .form-section-info .form-section-description p[data-v-b1f74200],.kong-ui-entity-form-section .form-section-wrapper .form-section-info .form-section-description[data-v-b1f74200] p{color:#000933;font-size:14px;font-weight:400;line-height:20px;margin:0}.kong-ui-entity-form-section .form-section-wrapper .form-section-info .form-section-footer[data-v-b1f74200]{margin-top:32px}.kong-ui-entity-form-section .form-section-wrapper .form-section-content[data-v-b1f74200]{flex:1}.kong-ui-entity-form-section .form-section-wrapper .form-section-content[data-v-b1f74200]>*:not(:first-child){margin-top:24px}.kong-ui-entity-form-section.has-divider .form-section-wrapper[data-v-b1f74200]{border-bottom:1px solid #e0e4ea}.kong-ui-public-entity-link[data-v-96efdfa5]{align-items:center;display:flex}.kong-ui-public-entity-link .deleted-entity[data-v-96efdfa5]{font-style:italic}.kong-ui-public-entity-link .entity-link[data-v-96efdfa5]{display:flex;flex:1}.kong-ui-public-entity-link .entity-link[data-v-96efdfa5] .external-link-icon{color:#0044f4;margin-left:4px;padding:2px}.kong-ui-public-entity-link .entity-link-label[data-v-96efdfa5]{display:inline-block;font-weight:400;max-width:90%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.kong-ui-public-entity-link .copy-uuid-tooltip[data-v-96efdfa5]{align-items:center;cursor:pointer;display:flex}.kong-ui-public-entity-link .copy-uuid-tooltip .entity-link-copy-id[data-v-96efdfa5]{margin-left:2px}.kong-ui-public-entity-empty-state[data-v-48ae9c8c]{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-48ae9c8c]{padding:64px 96px}}.kong-ui-public-entity-empty-state .empty-state-image[data-v-48ae9c8c]{margin-bottom:8px}.kong-ui-public-entity-empty-state .entity-empty-state-content[data-v-48ae9c8c]{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-48ae9c8c]{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-48ae9c8c]{font-size:18px}.kong-ui-public-entity-empty-state .entity-empty-state-description[data-v-48ae9c8c],.kong-ui-public-entity-empty-state .entity-empty-state-pricing[data-v-48ae9c8c]{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-48ae9c8c],.kong-ui-public-entity-empty-state .entity-empty-state-pricing p[data-v-48ae9c8c]{margin:0}.kong-ui-public-entity-empty-state .entity-empty-state-pricing[data-v-48ae9c8c]{margin-top:16px}.kong-ui-public-entity-empty-state .entity-empty-state-message[data-v-48ae9c8c]{color:#52596e}.kong-ui-public-entity-empty-state .entity-empty-state-action[data-v-48ae9c8c]{align-items:center;display:flex;gap:12px}.kong-ui-public-entity-empty-state .entity-empty-state-card-container[data-v-48ae9c8c]{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-48ae9c8c]{width:640px}}.kong-ui-public-entity-empty-state .entity-empty-state-card-container .entity-empty-state-card[data-v-48ae9c8c]{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-48ae9c8c]{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-48ae9c8c] .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-48ae9c8c] .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-48ae9c8c] .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-48ae9c8c]{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-48ae9c8c]{width:640px}}.button-row[data-v-b28276fa]{align-items:center;display:flex;gap:12px}.kong-ui-entities-upstreams-list .kong-ui-entity-filter-input[data-v-b28276fa]{margin-right:12px}.kong-ui-entities-upstreams-list .upstream-name[data-v-b28276fa]{font-weight:600}[data-v-479418b8] .kong-card{padding:0}[data-v-479418b8] .kong-card.border{border:0!important}[data-v-479418b8] .kong-card.borderTop{border-top:0!important}.kong-ui-entities-target-form[data-v-479418b8]{width:100%}.kong-ui-entities-target-form .target-form-container .target-form-info[data-v-479418b8],.kong-ui-entities-target-form .target-form-container .target-form-info p[data-v-479418b8],.kong-ui-entities-target-form .target-form-container .target-form-info[data-v-479418b8] p{color:#000933;font-size:14px;line-height:20px;margin-bottom:32px}.kong-ui-entities-target-form .target-form-container .target-form-input[data-v-479418b8]{margin-bottom:32px}.kong-ui-entities-target-form .target-form-container .target-form-input[data-v-479418b8]:last-of-type{margin-bottom:0}.kong-ui-entities-target-form[data-v-479418b8] .k-alert{margin-top:20px}.kong-ui-entities-target-form[data-v-479418b8] .form-actions{display:none!important}.kong-ui-entities-target-form[data-v-479418b8] .k-card.kong-ui-entity-base-form{background-color:transparent;border:none;padding:0}.kong-ui-entities-targets-list .target-address[data-v-d16baad8]{font-weight:600}.margin-bottom-6[data-v-626ed41f]{margin-bottom:24px}.fields-group-title[data-v-4f4deb55]{color:#000933;font-size:16px;font-weight:600;line-height:20px;margin-bottom:4px;margin-top:0}.fields-group-text[data-v-4f4deb55]{color:#afb7c5;font-size:14px;line-height:20px;margin-bottom:24px;margin-top:0}.margin-top-6[data-v-4f4deb55]{margin-top:24px}.fields-group-title[data-v-c2ff95ff]{color:#000933;font-size:16px;font-weight:600;line-height:20px;margin-bottom:4px;margin-top:0}.fields-group-text[data-v-c2ff95ff]{color:#afb7c5;font-size:14px;line-height:20px;margin-bottom:24px;margin-top:0}.margin-bottom-6[data-v-d079157c]{margin-bottom:24px}.margin-top-6[data-v-d079157c]{margin-top:24px}.fields-group-title[data-v-d079157c]{color:#000933;font-size:16px;font-weight:600;line-height:20px;margin-bottom:4px;margin-top:0}.fields-group-text[data-v-d079157c]{color:#afb7c5;font-size:14px;line-height:20px;margin-bottom:24px;margin-top:0}.headers-row[data-v-d079157c]{align-items:center;column-gap:16px;display:flex}.fields-group-title[data-v-7c20c5c5]{color:#000933;font-size:16px;font-weight:600;line-height:20px;margin-bottom:4px;margin-top:0}.fields-group-text[data-v-7c20c5c5]{color:#afb7c5;font-size:14px;line-height:20px;margin-bottom:24px;margin-top:0}.margin-top-6[data-v-7c20c5c5]{margin-top:24px}.kong-ui-entities-upstreams-form[data-v-ccf8318e]{width:100%}@media screen and (min-width: 1280px){.kong-ui-entities-upstreams-form[data-v-ccf8318e] .form-section-wrapper{column-gap:64px}}
|
|
1
|
+
.config-card-fieldset[data-v-f7096c33]{border:solid 1px #e0e4ea;border-radius:4px;margin-bottom:8px;margin-top:4px}.config-card-fieldset-title[data-v-f7096c33]{font-size:14px;padding:0 8px;width:auto}fieldset.config-card-fieldset .config-card-details-row{width:unset}.config-card-json-item .config-card-details-row,fieldset.config-card-fieldset .config-card-details-row{margin:0 16px}.config-card-json-item .config-card-details-row:last-of-type,fieldset.config-card-fieldset .config-card-details-row:last-of-type{border-bottom:none}[data-v-2feb8c2e] .k-button.navigation-button{font-size:14px;font-weight:400}.config-card-details-row[data-v-5f9aa0e8]{align-items:center;border-bottom:var(--2f90d7f7);box-sizing:border-box;display:var(--668a792a);padding:16px 16px 16px 0;width:100%}.config-card-details-row .config-card-details-label[data-v-5f9aa0e8]{box-sizing:border-box;padding-right:16px;width:var(--5bc9ad14)}.config-card-details-row .config-card-details-label label[data-v-5f9aa0e8]{color:#3a3f51;display:inline-flex;max-width:100%}.config-card-details-row .config-card-details-label label .label-content[data-v-5f9aa0e8]{line-height:initial;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.config-card-details-row .config-card-details-label label .k-popover[data-v-5f9aa0e8]{min-width:0}.config-card-details-row .config-card-details-value[data-v-5f9aa0e8]{box-sizing:border-box;width:var(--5bc5215e)}.config-card-details-row .config-card-details-value .truncated[data-v-5f9aa0e8]{display:inline-block;line-height:initial;max-width:20ch;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.config-card-details-row .config-card-details-value span.attrs-data-text[data-v-5f9aa0e8]{overflow-wrap:anywhere}.config-card-details-row .config-card-details-value .copy-uuid-array[data-v-5f9aa0e8] .k-copy:not(:last-of-type){margin-bottom:8px}.config-card-details-row .config-card-details-value .method-badge-array[data-v-5f9aa0e8]{display:flex;flex-wrap:wrap;row-gap:10px}.config-card-details-row .config-badge[data-v-5f9aa0e8]{margin-right:4px}.config-card-details-row[data-v-5f9aa0e8] .k-label{margin-bottom:0}.config-card-details-row[data-v-5f9aa0e8] .k-label .kong-icon-infoFilled{display:flex}.config-card-details-row[data-v-5f9aa0e8] .config-card-details-row{width:auto}.json-content.k-code-block{border-top-left-radius:0;border-top-right-radius:0}.json-endpoint{align-items:baseline;background-color:#000933;border-bottom:1px solid rgba(255,255,255,.2);border-top-left-radius:8px;border-top-right-radius:8px;display:flex;padding:8px 0 8px 12px}.json-endpoint .k-code-block{flex:auto;z-index:2}.json-endpoint .k-code-block .code-block-content{padding-bottom:0;padding-top:0}.json-endpoint .k-code-block .code-block-secondary-actions{margin-top:0!important}.json-endpoint code{direction:rtl;max-width:var(--54aebfa2);overflow:hidden!important;text-align:left;text-overflow:ellipsis;white-space:nowrap}.config-card-prop-section-title[data-v-d67757a9]{color:#000933;font-size:16px;font-weight:600;margin-bottom:16px;margin-top:48px}.kong-ui-entity-base-config-card .config-card-actions[data-v-69a1e1d7]{align-items:center;display:flex}.kong-ui-entity-base-config-card .config-card-actions .config-format-select-label[data-v-69a1e1d7]{margin-bottom:0;margin-right:8px}.kong-ui-entity-base-config-card .config-card-prop-section-title[data-v-69a1e1d7]{color:#000933;font-size:16px;font-weight:600;margin-bottom:16px;margin-top:48px}.kong-ui-entity-base-config-card[data-v-69a1e1d7] .config-card-details-row:last-of-type{border-bottom:none}.kong-ui-entity-base-config-card .book-icon[data-v-69a1e1d7]{margin-left:8px;padding:0}.kong-ui-entity-base-form[data-v-b073d014]{box-sizing:border-box;max-width:1536px;width:100%}.kong-ui-entity-base-form[data-v-b073d014] .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-b073d014] .k-card.content-card{padding:0 16px!important}.kong-ui-entity-base-form[data-v-b073d014] .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-b073d014] .tab-item.active>div.tab-link.has-panels{color:#000933!important;font-weight:600!important}.form-actions[data-v-b073d014]{align-items:center;display:flex;justify-content:flex-end;margin-top:24px}.form-actions[data-v-b073d014] .k-button:last-of-type,.form-actions[data-v-b073d014] .k-button:nth-last-of-type(2){margin-left:16px}.content-wrapper[data-v-a3a65cac] .k-tooltip{word-break:break-all}.kong-ui-entity-base-table .toolbar-container[data-v-1cdbe476]{align-items:center;display:flex;width:100%}.kong-ui-entity-base-table .toolbar-button-container[data-v-1cdbe476]{margin-left:auto}.kong-ui-entity-base-table .hidden[data-v-1cdbe476]{display:none}.kong-ui-entity-base-table[data-v-1cdbe476] .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-d1bb74d1]{width:100%}.kong-ui-entity-filter-clear[data-v-d1bb74d1]{cursor:pointer}.kong-ui-entity-filter[data-v-d1bb74d1]{display:flex;position:relative}.kong-ui-entity-filter[data-v-d1bb74d1] .menu-content{flex-direction:column}.kong-ui-entity-filter[data-v-d1bb74d1] .k-menu-item-divider hr{margin:12px 0}.kong-ui-entity-filter-backdrop[data-v-d1bb74d1]{bottom:0;left:0;position:fixed;right:0;top:0;z-index:1050}.kong-ui-entity-filter-menu[data-v-d1bb74d1]{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-d1bb74d1]{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-d1bb74d1]{align-items:center;cursor:pointer;display:flex;line-height:24px}.menu-item-title.expanded[data-v-d1bb74d1]{color:#232633}.menu-item-expand-icon[data-v-d1bb74d1]{margin-left:auto}.menu-item-expand-icon.expanded[data-v-d1bb74d1]{transform:rotate(180deg)}.menu-item-indicator[data-v-d1bb74d1]{background-color:#0044f4;border-radius:50%;height:4px;margin-left:4px;width:4px}.menu-item-body[data-v-d1bb74d1]{align-items:center;display:flex;justify-content:space-between;margin-top:16px}.menu-item-body[data-v-d1bb74d1] .input{padding-bottom:4px!important;padding-top:4px!important}.menu-item-body[data-v-d1bb74d1] .k-input{width:100%}.menu-item-body[data-v-d1bb74d1] .k-select-input .input{font-size:12px}.menu-item-body[data-v-d1bb74d1] .k-select-input .input::placeholder{color:#00000073!important;font-size:12px}.menu-item-label[data-v-d1bb74d1]{margin-bottom:0;margin-right:12px}.menu-item-buttons[data-v-d1bb74d1]{display:flex;justify-content:space-between;margin:10px 0 6px}.filter-clear-button-container[data-v-d1bb74d1]{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-96efdfa5]{align-items:center;display:flex}.kong-ui-public-entity-link .deleted-entity[data-v-96efdfa5]{font-style:italic}.kong-ui-public-entity-link .entity-link[data-v-96efdfa5]{display:flex;flex:1}.kong-ui-public-entity-link .entity-link[data-v-96efdfa5] .external-link-icon{color:#0044f4;margin-left:4px;padding:2px}.kong-ui-public-entity-link .entity-link-label[data-v-96efdfa5]{display:inline-block;font-weight:400;max-width:90%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.kong-ui-public-entity-link .copy-uuid-tooltip[data-v-96efdfa5]{align-items:center;cursor:pointer;display:flex}.kong-ui-public-entity-link .copy-uuid-tooltip .entity-link-copy-id[data-v-96efdfa5]{margin-left:2px}.kong-ui-public-entity-empty-state[data-v-b6376b66]{align-items:center;background-color:#fff;box-sizing:border-box;display:flex;flex-direction:column;font-family:Inter,Roboto,Helvetica,sans-serif;gap:24px;padding:64px 0;width:100%}@media (min-width: 640px){.kong-ui-public-entity-empty-state[data-v-b6376b66]{padding:64px 96px}}.kong-ui-public-entity-empty-state .empty-state-image[data-v-b6376b66]{margin-bottom:8px}.kong-ui-public-entity-empty-state .entity-empty-state-content[data-v-b6376b66]{align-items:center;display:flex;flex-direction:column;gap:8px;text-align:center;width:100%}.kong-ui-public-entity-empty-state .entity-empty-state-content .entity-empty-state-title h1[data-v-b6376b66]{align-items:center;color:#000933;display:flex;font-size:24px;font-weight:700;gap:8px;line-height:32px;margin:0}.kong-ui-public-entity-empty-state .entity-empty-state-content .entity-empty-state-title h1.secondary[data-v-b6376b66]{font-size:18px}.kong-ui-public-entity-empty-state .entity-empty-state-description[data-v-b6376b66],.kong-ui-public-entity-empty-state .entity-empty-state-pricing[data-v-b6376b66]{color:#52596e;font-size:14px;font-weight:400;line-height:20px;max-width:640px}.kong-ui-public-entity-empty-state .entity-empty-state-description p[data-v-b6376b66],.kong-ui-public-entity-empty-state .entity-empty-state-pricing p[data-v-b6376b66]{margin:0}.kong-ui-public-entity-empty-state .entity-empty-state-pricing[data-v-b6376b66]{margin-top:16px}.kong-ui-public-entity-empty-state .entity-empty-state-message[data-v-b6376b66]{color:#52596e}.kong-ui-public-entity-empty-state .entity-empty-state-action[data-v-b6376b66]{align-items:center;display:flex;gap:12px}.kong-ui-public-entity-empty-state .entity-empty-state-card-container[data-v-b6376b66]{display:flex;flex-wrap:wrap;gap:16px;justify-content:space-around;margin-top:8px;width:312px}@media (min-width: 640px){.kong-ui-public-entity-empty-state .entity-empty-state-card-container[data-v-b6376b66]{width:640px}}.kong-ui-public-entity-empty-state .entity-empty-state-card-container .entity-empty-state-card[data-v-b6376b66]{background-color:#f9fafb;border:1px solid #e0e4ea;border-radius:6px;color:#afb7c5;gap:8px;height:160px;padding:20px;width:312px}.kong-ui-public-entity-empty-state .entity-empty-state-card-container .entity-empty-state-card .feature-icon[data-v-b6376b66]{color:#3a3f51;display:flex;margin-bottom:12px}.kong-ui-public-entity-empty-state .entity-empty-state-card-container .entity-empty-state-card .feature-icon[data-v-b6376b66] .kui-icon{height:20px!important;width:20px!important}.kong-ui-public-entity-empty-state .entity-empty-state-card-container .entity-empty-state-card[data-v-b6376b66] .card-title{font-size:14px;font-weight:600}.kong-ui-public-entity-empty-state .entity-empty-state-card-container .entity-empty-state-card[data-v-b6376b66] .card-content{-webkit-box-orient:vertical;color:#6c7489;display:-webkit-box;-webkit-line-clamp:3;line-clamp:3;overflow:hidden}.kong-ui-public-entity-empty-state .entity-empty-state-bottom-container[data-v-b6376b66]{border-top:1px solid #e0e4ea;display:flex;flex-direction:column;gap:16px;padding-top:48px;width:100%}@media (min-width: 640px){.kong-ui-public-entity-empty-state .entity-empty-state-bottom-container[data-v-b6376b66]{width:640px}}.button-row[data-v-308f2db3]{align-items:center;display:flex;gap:12px}.kong-ui-entities-upstreams-list .kong-ui-entity-filter-input[data-v-308f2db3]{margin-right:12px}.kong-ui-entities-upstreams-list .upstream-name[data-v-308f2db3]{font-weight:600}[data-v-b5bbee74] .kong-card{padding:0}[data-v-b5bbee74] .kong-card.border{border:0!important}[data-v-b5bbee74] .kong-card.borderTop{border-top:0!important}.kong-ui-entities-target-form[data-v-b5bbee74]{width:100%}.kong-ui-entities-target-form .target-form-container .target-form-info[data-v-b5bbee74],.kong-ui-entities-target-form .target-form-container .target-form-info p[data-v-b5bbee74],.kong-ui-entities-target-form .target-form-container .target-form-info[data-v-b5bbee74] p{color:#000933;font-size:14px;line-height:20px;margin-bottom:32px}.kong-ui-entities-target-form .target-form-container .target-form-input[data-v-b5bbee74]{margin-bottom:32px}.kong-ui-entities-target-form .target-form-container .target-form-input[data-v-b5bbee74]:last-of-type{margin-bottom:0}.kong-ui-entities-target-form[data-v-b5bbee74] .k-alert{margin-top:20px}.kong-ui-entities-target-form[data-v-b5bbee74] .form-actions{display:none!important}.kong-ui-entities-target-form[data-v-b5bbee74] .k-card.kong-ui-entity-base-form{background-color:transparent;border:none;padding:0}.kong-ui-entities-targets-list .target-address[data-v-b3ffee85]{font-weight:600}.margin-bottom-6[data-v-626ed41f]{margin-bottom:24px}.fields-group-title[data-v-4f4deb55]{color:#000933;font-size:16px;font-weight:600;line-height:20px;margin-bottom:4px;margin-top:0}.fields-group-text[data-v-4f4deb55]{color:#afb7c5;font-size:14px;line-height:20px;margin-bottom:24px;margin-top:0}.margin-top-6[data-v-4f4deb55]{margin-top:24px}.fields-group-title[data-v-c2ff95ff]{color:#000933;font-size:16px;font-weight:600;line-height:20px;margin-bottom:4px;margin-top:0}.fields-group-text[data-v-c2ff95ff]{color:#afb7c5;font-size:14px;line-height:20px;margin-bottom:24px;margin-top:0}.margin-bottom-6[data-v-d079157c]{margin-bottom:24px}.margin-top-6[data-v-d079157c]{margin-top:24px}.fields-group-title[data-v-d079157c]{color:#000933;font-size:16px;font-weight:600;line-height:20px;margin-bottom:4px;margin-top:0}.fields-group-text[data-v-d079157c]{color:#afb7c5;font-size:14px;line-height:20px;margin-bottom:24px;margin-top:0}.headers-row[data-v-d079157c]{align-items:center;column-gap:16px;display:flex}.fields-group-title[data-v-7c20c5c5]{color:#000933;font-size:16px;font-weight:600;line-height:20px;margin-bottom:4px;margin-top:0}.fields-group-text[data-v-7c20c5c5]{color:#afb7c5;font-size:14px;line-height:20px;margin-bottom:24px;margin-top:0}.margin-top-6[data-v-7c20c5c5]{margin-top:24px}.kong-ui-entities-upstreams-form[data-v-5c16ff6d]{width:100%}@media screen and (min-width: 1280px){.kong-ui-entities-upstreams-form[data-v-5c16ff6d] .form-section-wrapper{column-gap:64px}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"upstreams-form.d.ts","sourceRoot":"","sources":["../../../src/types/upstreams-form.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,yBAAyB,EAAE,qBAAqB,EAAE,MAAM,iCAAiC,CAAA;AACvH,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,YAAY,CAAA;AAClD,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAA;AAEnD,MAAM,WAAW,uBAAwB,SAAQ,IAAI,CAAC,cAAc,EAAE,aAAa,CAAC;IAClF,WAAW,EAAE,gBAAgB,CAAA;CAC9B;AAED,MAAM,WAAW,0BAA2B,SAAQ,IAAI,CAAC,qBAAqB,EAAE,aAAa,CAAC,EAAE,uBAAuB;CAAG;AAE1H,MAAM,WAAW,8BAA+B,SAAQ,IAAI,CAAC,yBAAyB,EAAE,aAAa,CAAC,EAAE,uBAAuB;CAAG;AAElI,MAAM,MAAM,iBAAiB,GAAG,aAAa,GAAG,mBAAmB,GAAG,oBAAoB,GAAG,SAAS,CAAA;AAEtG,MAAM,MAAM,YAAY,GAAG,MAAM,GAAG,UAAU,GAAG,IAAI,GAAG,QAAQ,GAAG,QAAQ,GAAG,MAAM,GAAG,WAAW,GAAG,aAAa,CAAA;AAElH,MAAM,MAAM,eAAe,GAAG,MAAM,GAAG,OAAO,GAAG,KAAK,GAAG,MAAM,GAAG,OAAO,CAAA;AAEzE,MAAM,WAAW,uBAAuB;IACtC,GAAG,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"upstreams-form.d.ts","sourceRoot":"","sources":["../../../src/types/upstreams-form.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,yBAAyB,EAAE,qBAAqB,EAAE,MAAM,iCAAiC,CAAA;AACvH,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,YAAY,CAAA;AAClD,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAA;AAEnD,MAAM,WAAW,uBAAwB,SAAQ,IAAI,CAAC,cAAc,EAAE,aAAa,CAAC;IAClF,WAAW,EAAE,gBAAgB,CAAA;CAC9B;AAED,MAAM,WAAW,0BAA2B,SAAQ,IAAI,CAAC,qBAAqB,EAAE,aAAa,CAAC,EAAE,uBAAuB;CAAG;AAE1H,MAAM,WAAW,8BAA+B,SAAQ,IAAI,CAAC,yBAAyB,EAAE,aAAa,CAAC,EAAE,uBAAuB;CAAG;AAElI,MAAM,MAAM,iBAAiB,GAAG,aAAa,GAAG,mBAAmB,GAAG,oBAAoB,GAAG,SAAS,CAAA;AAEtG,MAAM,MAAM,YAAY,GAAG,MAAM,GAAG,UAAU,GAAG,IAAI,GAAG,QAAQ,GAAG,QAAQ,GAAG,MAAM,GAAG,WAAW,GAAG,aAAa,CAAA;AAElH,MAAM,MAAM,eAAe,GAAG,MAAM,GAAG,OAAO,GAAG,KAAK,GAAG,MAAM,GAAG,OAAO,CAAA;AAEzE,MAAM,WAAW,uBAAuB;IACtC,GAAG,EAAE,MAAM,CAAA;IACX,MAAM,EAAE,MAAM,CAAA;CACf;AAED,MAAM,WAAW,iBAAiB;IAChC,IAAI,EAAE,eAAe,CAAA;IACrB,QAAQ,EAAE,MAAM,CAAA;IAChB,OAAO,EAAE,MAAM,CAAA;IACf,WAAW,EAAE,MAAM,CAAA;IACnB,QAAQ,EAAE,MAAM,CAAA;IAChB,SAAS,EAAE,OAAO,CAAA;IAClB,OAAO,EAAE,uBAAuB,EAAE,CAAA;IAClC,OAAO,EAAE;QACP,QAAQ,EAAE,MAAM,CAAA;QAChB,SAAS,EAAE,MAAM,CAAA;QACjB,YAAY,EAAE,MAAM,EAAE,CAAA;KACvB,CAAA;IACD,SAAS,EAAE;QACT,QAAQ,EAAE,MAAM,CAAA;QAChB,QAAQ,EAAE,MAAM,CAAA;QAChB,WAAW,EAAE,MAAM,CAAA;QACnB,YAAY,EAAE,MAAM,CAAA;QACpB,YAAY,EAAE,MAAM,EAAE,CAAA;KACvB,CAAA;CACF;AAED,MAAM,WAAW,kBAAkB;IACjC,IAAI,EAAE,eAAe,CAAA;IACrB,OAAO,EAAE;QACP,SAAS,EAAE,MAAM,CAAA;QACjB,YAAY,EAAE,MAAM,EAAE,CAAA;KACvB,CAAA;IACD,SAAS,EAAE;QACT,QAAQ,EAAE,MAAM,CAAA;QAChB,WAAW,EAAE,MAAM,CAAA;QACnB,YAAY,EAAE,MAAM,CAAA;QACpB,YAAY,EAAE,MAAM,EAAE,CAAA;KACvB,CAAA;CACF;AAED,MAAM,WAAW,kBAAkB;IACjC,IAAI,EAAE,MAAM,CAAA;IACZ,UAAU,EAAE,MAAM,CAAA;IAClB,iBAAiB,EAAE,MAAM,CAAA;IACzB,IAAI,EAAE,MAAM,CAAA;IACZ,SAAS,EAAE,iBAAiB,CAAA;IAC5B,KAAK,EAAE,MAAM,CAAA;IACb,MAAM,EAAE,YAAY,CAAA;IACpB,YAAY,EAAC,YAAY,CAAA;IACzB,YAAY,EAAE,MAAM,CAAA;IACpB,YAAY,EAAE,MAAM,CAAA;IACpB,gBAAgB,EAAE,MAAM,CAAA;IACxB,mBAAmB,EAAE,MAAM,CAAA;IAC3B,gBAAgB,EAAE,MAAM,CAAA;IACxB,kBAAkB,EAAE,MAAM,CAAA;IAC1B,yBAAyB,EAAE,MAAM,CAAA;IACjC,sBAAsB,EAAE,MAAM,CAAA;IAC9B,kBAAkB,EAAE,OAAO,CAAA;IAC3B,mBAAmB,EAAE,OAAO,CAAA;IAC5B,qBAAqB,EAAE,MAAM,CAAA;IAC7B,iBAAiB,EAAE,iBAAiB,CAAA;IACpC,kBAAkB,EAAE,kBAAkB,CAAA;CACvC;AAED,MAAM,WAAW,iBAAiB;IAChC,MAAM,EAAE,kBAAkB,CAAA;IAC1B,QAAQ,EAAE,OAAO,CAAA;IACjB,YAAY,EAAE,MAAM,CAAA;CACrB;AAED,MAAM,WAAW,mBAAoB,SAAQ,IAAI,CAAC,UAAU,EAAE,OAAO,CAAC;IACpE,KAAK,EAAE,iBAAiB,CAAA;CACzB;AAED,MAAM,WAAW,cAAe,SAAQ,IAAI,CAAC,UAAU,EAAE,OAAO,CAAC;IAC/D,KAAK,EAAE,YAAY,CAAA;CACpB;AAED,MAAM,WAAW,yBAA0B,SAAQ,IAAI,CAAC,UAAU,EAAE,OAAO,CAAC;IAC1E,KAAK,EAAE,eAAe,CAAA;CACvB;AAED,MAAM,WAAW,4BAA4B;IAC3C,SAAS,CAAC,EAAE,OAAO,CAAA;CACpB;AAED,MAAM,WAAW,qBAAqB;IACpC,IAAI,EAAE,eAAe,CAAA;IACrB,OAAO,CAAC,EAAE,MAAM,CAAA;IAChB,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,OAAO,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,EAAE,CAAC,GAAG,EAAE,CAAA;IACvC,SAAS,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;IACzB,wBAAwB,CAAC,EAAE,OAAO,CAAA;IAClC,OAAO,EAAE;QACP,QAAQ,CAAC,EAAE,MAAM,CAAA;QACjB,SAAS,CAAC,EAAE,MAAM,CAAA;QAClB,aAAa,CAAC,EAAE,MAAM,EAAE,CAAA;KACzB,CAAA;IACD,SAAS,EAAE;QACT,QAAQ,CAAC,EAAE,MAAM,CAAA;QACjB,QAAQ,CAAC,EAAE,MAAM,CAAA;QACjB,YAAY,CAAC,EAAE,MAAM,CAAA;QACrB,aAAa,CAAC,EAAE,MAAM,CAAA;QACtB,aAAa,CAAC,EAAE,MAAM,EAAE,CAAA;KACzB,CAAA;CACF;AAED,MAAM,WAAW,sBAAuB,SAAQ,IAAI,CAAC,qBAAqB,EAAE,SAAS,CAAC;IACpF,OAAO,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,EAAE,CAAC,CAAA;CACnC;AAED,MAAM,WAAW,sBAAsB;IACrC,IAAI,EAAE,eAAe,CAAA;IACrB,OAAO,EAAE;QACP,SAAS,CAAC,EAAE,MAAM,CAAA;QAClB,aAAa,CAAC,EAAE,MAAM,EAAE,CAAA;KACzB,CAAA;IACD,SAAS,EAAE;QACT,QAAQ,CAAC,EAAE,MAAM,CAAA;QACjB,aAAa,CAAC,EAAE,MAAM,EAAE,CAAA;QACxB,aAAa,CAAC,EAAE,MAAM,CAAA;QACtB,YAAY,CAAC,EAAE,MAAM,CAAA;KACtB,CAAA;CACF;AAED,MAAM,WAAW,mBAAmB;IAClC,IAAI,EAAE,MAAM,CAAA;IACZ,SAAS,EAAE,iBAAiB,CAAA;IAC5B,WAAW,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;IAC3B,kBAAkB,CAAC,EAAE;QAAE,EAAE,EAAE,MAAM,CAAA;KAAE,GAAG,IAAI,CAAA;IAC1C,IAAI,CAAC,EAAE,MAAM,EAAE,CAAA;IACf,KAAK,EAAE,MAAM,CAAA;IACb,OAAO,EAAE,YAAY,CAAA;IACrB,aAAa,EAAC,YAAY,CAAA;IAC1B,cAAc,CAAC,EAAE,MAAM,CAAA;IACvB,cAAc,CAAC,EAAE,MAAM,CAAA;IACvB,mBAAmB,CAAC,EAAE,MAAM,CAAA;IAC5B,iBAAiB,CAAC,EAAE,MAAM,CAAA;IAC1B,mBAAmB,CAAC,EAAE,MAAM,CAAA;IAC5B,oBAAoB,CAAC,EAAE,MAAM,CAAA;IAC7B,uBAAuB,CAAC,EAAE,MAAM,CAAA;IAChC,yBAAyB,CAAC,EAAE,MAAM,CAAA;IAClC,YAAY,EAAE;QACZ,SAAS,CAAC,EAAE,MAAM,CAAA;QAClB,MAAM,CAAC,EAAE,qBAAqB,CAAA;QAC9B,OAAO,CAAC,EAAE,sBAAsB,CAAA;KACjC,CAAA;CACF;AAED,MAAM,WAAW,gBAAiB,SAAQ,IAAI,CAAC,mBAAmB,EAAE,cAAc,CAAC;IACjF,EAAE,EAAE,MAAM,CAAA;IACV,YAAY,EAAE;QACZ,SAAS,CAAC,EAAE,MAAM,CAAA;QAClB,MAAM,CAAC,EAAE,sBAAsB,CAAA;QAC/B,OAAO,CAAC,EAAE,sBAAsB,CAAA;KACjC,CAAA;CACF;AAED,MAAM,MAAM,oBAAoB,GAAG,UAAU,GAAG,QAAQ,GAAG,MAAM,CAAA"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kong-ui-public/entities-upstreams-targets",
|
|
3
|
-
"version": "3.7.
|
|
3
|
+
"version": "3.7.24",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"main": "./dist/entities-upstreams-targets.umd.js",
|
|
6
6
|
"module": "./dist/entities-upstreams-targets.es.js",
|
|
@@ -26,7 +26,7 @@
|
|
|
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.22.
|
|
29
|
+
"@kong-ui-public/entities-shared": "^3.22.4",
|
|
30
30
|
"@kong-ui-public/i18n": "^2.3.0"
|
|
31
31
|
},
|
|
32
32
|
"devDependencies": {
|
|
@@ -36,7 +36,7 @@
|
|
|
36
36
|
"axios": "^1.7.7",
|
|
37
37
|
"vue": "^3.5.13",
|
|
38
38
|
"vue-router": "^4.4.5",
|
|
39
|
-
"@kong-ui-public/entities-shared": "^3.22.
|
|
39
|
+
"@kong-ui-public/entities-shared": "^3.22.4",
|
|
40
40
|
"@kong-ui-public/i18n": "^2.3.0"
|
|
41
41
|
},
|
|
42
42
|
"repository": {
|