@kong-ui-public/entities-upstreams-targets 3.5.67 → 3.5.68
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.
- package/dist/entities-upstreams-targets.es.js +5 -5
- package/dist/entities-upstreams-targets.umd.js +1 -1
- package/dist/style.css +1 -1
- package/dist/types/components/UpstreamsFormActiveHealthCheck.vue.d.ts.map +1 -1
- package/dist/types/components/UpstreamsFormHealthChecks.vue.d.ts.map +1 -1
- package/dist/types/components/UpstreamsFormLoadBalancing.vue.d.ts.map +1 -1
- package/dist/types/components/UpstreamsFormPassiveHealthCheck.vue.d.ts.map +1 -1
- package/dist/types/components/UpstreamsList.vue.d.ts.map +1 -1
- package/package.json +4 -4
|
@@ -1153,7 +1153,7 @@ const he = {
|
|
|
1153
1153
|
for (const [l, u] of N)
|
|
1154
1154
|
i[l] = u;
|
|
1155
1155
|
return i;
|
|
1156
|
-
}, La = /* @__PURE__ */ ue(Zt, [["__scopeId", "data-v-
|
|
1156
|
+
}, La = /* @__PURE__ */ ue(Zt, [["__scopeId", "data-v-a602dfcf"]]), Ce = "/v2/control-planes/{controlPlaneId}/core-entities", He = "/{workspace}", Se = {
|
|
1157
1157
|
list: {
|
|
1158
1158
|
konnect: `${Ce}/upstreams/{upstreamId}/targets`,
|
|
1159
1159
|
kongManager: `${He}/upstreams/{upstreamId}/targets`
|
|
@@ -2202,7 +2202,7 @@ const he = {
|
|
|
2202
2202
|
}, 8, ["title"]);
|
|
2203
2203
|
};
|
|
2204
2204
|
}
|
|
2205
|
-
}), ya = /* @__PURE__ */ ue(fa, [["__scopeId", "data-v-
|
|
2205
|
+
}), ya = /* @__PURE__ */ ue(fa, [["__scopeId", "data-v-4f4deb55"]]), ga = { class: "fields-group-title" }, va = { class: "fields-group-text" }, ba = { class: "fields-group-title" }, ka = { class: "fields-group-text" }, _a = /* @__PURE__ */ se({
|
|
2206
2206
|
__name: "UpstreamsFormHealthChecks",
|
|
2207
2207
|
props: {
|
|
2208
2208
|
activeHealthSwitch: {
|
|
@@ -2291,7 +2291,7 @@ const he = {
|
|
|
2291
2291
|
}, 8, ["title"]);
|
|
2292
2292
|
};
|
|
2293
2293
|
}
|
|
2294
|
-
}), Ca = /* @__PURE__ */ ue(_a, [["__scopeId", "data-v-
|
|
2294
|
+
}), Ca = /* @__PURE__ */ ue(_a, [["__scopeId", "data-v-c2ff95ff"]]), Ha = "#d60027", Sa = { key: 2 }, Ia = { class: "fields-group-title" }, Ua = { class: "fields-group-text" }, qa = { class: "fields-group-title" }, wa = { class: "fields-group-text" }, Fa = /* @__PURE__ */ se({
|
|
2295
2295
|
__name: "UpstreamsFormActiveHealthCheck",
|
|
2296
2296
|
props: {
|
|
2297
2297
|
config: {
|
|
@@ -2683,7 +2683,7 @@ const he = {
|
|
|
2683
2683
|
}, 8, ["title"]);
|
|
2684
2684
|
};
|
|
2685
2685
|
}
|
|
2686
|
-
}), Ta = /* @__PURE__ */ ue(Fa, [["__scopeId", "data-v-
|
|
2686
|
+
}), Ta = /* @__PURE__ */ ue(Fa, [["__scopeId", "data-v-c6b24c5a"]]), xa = { class: "fields-group-title" }, Oa = { class: "fields-group-text" }, $a = { class: "fields-group-title" }, Pa = { class: "fields-group-text" }, Ma = /* @__PURE__ */ se({
|
|
2687
2687
|
__name: "UpstreamsFormPassiveHealthCheck",
|
|
2688
2688
|
props: {
|
|
2689
2689
|
type: {
|
|
@@ -2878,7 +2878,7 @@ const he = {
|
|
|
2878
2878
|
}, 8, ["title"]);
|
|
2879
2879
|
};
|
|
2880
2880
|
}
|
|
2881
|
-
}), Aa = /* @__PURE__ */ ue(Ma, [["__scopeId", "data-v-
|
|
2881
|
+
}), Aa = /* @__PURE__ */ ue(Ma, [["__scopeId", "data-v-4ab7f60e"]]), Ka = { class: "kong-ui-entities-upstreams-form" }, Va = /* @__PURE__ */ se({
|
|
2882
2882
|
__name: "UpstreamsForm",
|
|
2883
2883
|
props: {
|
|
2884
2884
|
/** The base konnect or kongManger config. Pass additional config props in the shared entity component as needed. */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(j,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):(j=typeof globalThis<"u"?globalThis:j||self,e(j["kong-ui-entities-upstreams-targets"]={},j.Vue,j["kong-ui-public-entities-shared"],j.VueRouter,j.KongIcons,j["kong-ui-public-i18n"]))})(this,function(j,e,p,ye,oe,ge){"use strict";const Ze={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."},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=ge.createI18n("en-us",Ze);return{i18n:a,i18nT:ge.i18nTComponent(a)}}function le(a){const{replaceId:q=!1}=a,r=e.ref([]);return{addedItems:r,trackNewItems:(n,y)=>{if(y){const g={...n};q&&(g.value=n.label),r.value.push(g)}else r.value=r.value.filter(g=>g.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"}],fe=10,pe=65536,tt=0,at=65535,X=0,Y=255,be=0,ke=255,lt=0,st=65535,Ce=0,_e=65535,rt=0,ot=2**31,we=["200","302"],Ve=["200","201","202","203","204","205","206","207","208","226","300","301","302","303","304","305","306","307","308"],Ne=["429","404","500","501","502","503","504","505"],xe=["429","500","503"];function ne(){const a=s=>/^\d+$/.test(s),q=(s,h,C)=>{if(a(s)){const u=Number(s);return u>=h&&u<=C}else return!1},r=s=>s.map(h=>Number(h)),l=s=>s.map(h=>h.toString()),n=s=>{var C,u,t,E,w,d,_,$,F,K,M,m,V,N,S,f,O,P,Q,W,U,T,A,k,H,I,b,c,o,i,R,D,v,L,G,se,re,ae,Se,Te,Ie,Ue,Fe,qe,Ee,Be,Oe,De,$e,Pe,Me,Ae,Ke,Re,ve,je,Le,Qe,We,Je,ze,Ge,Xe,Ye;return{name:(s==null?void 0:s.name)||"",hostHeader:(s==null?void 0:s.host_header)||"",clientCertificate:((C=s==null?void 0:s.client_certificate)==null?void 0:C.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||((_=(d=s.healthchecks.active)==null?void 0:d.unhealthy)==null?void 0:_.interval)!==0:!1,passiveHealthSwitch:s?((F=($=s.healthchecks.passive)==null?void 0:$.healthy)==null?void 0:F.successes)!==0||((M=(K=s.healthchecks.passive)==null?void 0:K.unhealthy)==null?void 0:M.timeouts)!==0||((V=(m=s.healthchecks.passive)==null?void 0:m.unhealthy)==null?void 0:V.tcp_failures)!==0||((S=(N=s.healthchecks.passive)==null?void 0:N.unhealthy)==null?void 0:S.http_failures)!==0:!1,healthchecksThreshold:((f=s==null?void 0:s.healthchecks.threshold)==null?void 0:f.toString())||"0",activeHealthCheck:{type:((O=s==null?void 0:s.healthchecks.active)==null?void 0:O.type)||"http",httpPath:((P=s==null?void 0:s.healthchecks.active)==null?void 0:P.http_path)||"/",timeout:((W=(Q=s==null?void 0:s.healthchecks.active)==null?void 0:Q.timeout)==null?void 0:W.toString())||"1",concurrency:((T=(U=s==null?void 0:s.healthchecks.active)==null?void 0:U.concurrency)==null?void 0:T.toString())||"10",httpsSni:((A=s==null?void 0:s.healthchecks.active)==null?void 0:A.https_sni)||"",verifySsl:((k=s==null?void 0:s.healthchecks.active)==null?void 0:k.https_verify_certificate)||!1,headers:(H=s==null?void 0:s.healthchecks.active)!=null&&H.headers&&Object.entries(s.healthchecks.active.headers).length>0?Object.entries(s.healthchecks.active.headers).map(([Lt,me])=>({key:Lt,values:me==null?void 0:me.join(", ")})):[{key:"",values:""}],interval:((c=(b=(I=s==null?void 0:s.healthchecks.active)==null?void 0:I.healthy)==null?void 0:b.interval)==null?void 0:c.toString())||"0",successes:((R=(i=(o=s==null?void 0:s.healthchecks.active)==null?void 0:o.healthy)==null?void 0:i.successes)==null?void 0:R.toString())||"5",httpStatuses:(v=(D=s==null?void 0:s.healthchecks.active)==null?void 0:D.healthy)!=null&&v.http_statuses?l(s.healthchecks.active.healthy.http_statuses):we,unhealthyInterval:((se=(G=(L=s==null?void 0:s.healthchecks.active)==null?void 0:L.unhealthy)==null?void 0:G.interval)==null?void 0:se.toString())||"0",httpFailures:((Se=(ae=(re=s==null?void 0:s.healthchecks.active)==null?void 0:re.unhealthy)==null?void 0:ae.http_failures)==null?void 0:Se.toString())||"5",tcpFailures:((Ue=(Ie=(Te=s==null?void 0:s.healthchecks.active)==null?void 0:Te.unhealthy)==null?void 0:Ie.tcp_failures)==null?void 0:Ue.toString())||"5",unhealthyHttpStatuses:(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):Ne,unhealthyTimeouts:((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",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())||"0",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):Ve,timeouts:((je=(ve=(Re=s==null?void 0:s.healthchecks.passive)==null?void 0:Re.unhealthy)==null?void 0:ve.timeouts)==null?void 0:je.toString())||"0",httpFailures:((We=(Qe=(Le=s==null?void 0:s.healthchecks.passive)==null?void 0:Le.unhealthy)==null?void 0:Qe.http_failures)==null?void 0:We.toString())||"5",tcpFailures:((Ge=(ze=(Je=s==null?void 0:s.healthchecks.passive)==null?void 0:Je.unhealthy)==null?void 0:ze.tcp_failures)==null?void 0:Ge.toString())||"5",unhealthyHttpStatuses:(Ye=(Xe=s==null?void 0:s.healthchecks.passive)==null?void 0:Xe.unhealthy)!=null&&Ye.http_statuses?l(s.healthchecks.passive.unhealthy.http_statuses):xe}}};return{isInteger:a,inRange:q,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 J={useI18n:et,useMultiselectCreation:le,useHelpers:ne},Z="/v2/control-planes/{controlPlaneId}/core-entities",ee="/{workspace}",te={list:{konnect:`${Z}/upstreams`,kongManager:`${ee}/upstreams`},form:{konnect:{getServices:`${Z}/services`,getCertificates:`${Z}/certificates`,validate:`${Z}/v1/schemas/json/upstream/validate`,create:`${Z}/upstreams`,edit:`${Z}/upstreams/{id}`},kongManager:{getServices:`${ee}/services`,getCertificates:`${ee}/certificates`,validate:`${ee}/schemas/upstreams/validate`,create:`${ee}/upstreams`,edit:`${ee}/upstreams/{id}`}}},it={class:"kong-ui-entities-upstreams-list"},nt={class:"upstream-name"},ht=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}},emits:["error","copy:success","copy:error","delete:success"],setup(a,{emit:q}){var A;const r=q,l=a,{i18n:{t:n}}=J.useI18n(),y=ye.useRouter(),{axiosInstance:g}=p.useAxios((A=l.config)==null?void 0:A.axiosRequestConfig),B=e.computed(()=>l.config.app!=="kongManager"||!!l.config.disableSorting),x={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}},s=x,h=e.computed(()=>{var H,I;let k=`${l.config.apiBaseUrl}${te.list[l.config.app]}`;return l.config.app==="konnect"?k=k.replace(/{controlPlaneId}/gi,((H=l.config)==null?void 0:H.controlPlaneId)||""):l.config.app==="kongManager"&&(k=k.replace(/\/{workspace}/gi,(I=l.config)!=null&&I.workspace?`/${l.config.workspace}`:"")),k}),C=e.ref(""),u=e.computed(()=>{const k=l.config.app==="konnect"||l.config.isExactMatch;if(k)return{isExactMatch:k,placeholder:n("upstreams.search.placeholder")};const{name:H,slots:I}=x;return{isExactMatch:k,fields:{name:H,slots:I},schema:l.config.filterSchema}}),{fetcher:t,fetcherState:E,fetcherCacheKey:w}=p.useFetcher({...l.config,cacheIdentifier:l.cacheIdentifier},h.value),d=()=>{C.value=""},_=()=>{w.value++},$=e.ref(null),F=(k,H)=>{const I=k.id;if(!H(I)){r("copy:error",{entity:k,field:"id",message:n("upstreams.errors.copy")});return}r("copy:success",{entity:k,field:"id",message:n("upstreams.copy.success",{val:I})})},K=(k,H)=>{const I=JSON.stringify(k);if(!H(I)){r("copy:error",{entity:k,message:n("upstreams.errors.copy")});return}r("copy:success",{entity:k,message:n("upstreams.copy.success_brief")})},M=async k=>{var I;await((I=l.canRetrieve)==null?void 0:I.call(l,k))&&y.push(l.config.getViewRoute(k.id))},m=k=>({label:n("upstreams.actions.view"),to:l.config.getViewRoute(k)}),V=k=>({label:n("upstreams.actions.edit"),to:l.config.getEditRoute(k)}),N=e.ref(void 0),S=e.ref(!1),f=e.ref(!1),O=e.ref(""),P=p.useDeleteUrlBuilder(l.config,h.value),Q=k=>{N.value=k,S.value=!0},W=()=>{S.value=!1},U=async()=>{var k,H,I;if((k=N.value)!=null&&k.id){f.value=!0;try{await g.delete(P(N.value.id)),f.value=!1,S.value=!1,w.value++,r("delete:success",N.value)}catch(b){O.value=((I=(H=b.response)==null?void 0:H.data)==null?void 0:I.message)||b.message||n("upstreams.errors.delete"),r("error",b)}finally{f.value=!1}}};e.watch(E,k=>{var H,I,b;if(k.status===p.FetcherStatus.Error){$.value={title:n("upstreams.errors.general")},(b=(I=(H=k.error)==null?void 0:H.response)==null?void 0:I.data)!=null&&b.message&&($.value.message=k.error.response.data.message),r("error",k.error);return}$.value=null});const T=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()&&(T.value.title=n("upstreams.list.empty_state.title"),T.value.ctaText=n("upstreams.actions.create"))}),(k,H)=>{const I=e.resolveComponent("KButton"),b=e.resolveComponent("KDropdownItem"),c=e.resolveComponent("KClipboardProvider");return e.openBlock(),e.createElementBlock("div",it,[e.createVNode(e.unref(p.EntityBaseTable),{"cache-identifier":a.cacheIdentifier,"disable-sorting":B.value,"empty-state-options":T.value,"enable-entity-actions":"","error-message":$.value,fetcher:e.unref(t),"fetcher-cache-key":e.unref(w),"pagination-type":"offset","preferences-storage-key":"kong-ui-entities-upstreams-list",query:C.value,"table-headers":e.unref(s),onClearSearchInput:d,"onClick:row":H[1]||(H[1]=o=>M(o)),onSort:_},{"toolbar-filter":e.withCtx(()=>[e.createVNode(e.unref(p.EntityFilter),{modelValue:C.value,"onUpdate:modelValue":H[0]||(H[0]=o=>C.value=o),config:u.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.createVNode(e.unref(p.PermissionsWrapper),{"auth-function":()=>a.canCreate()},{default:e.withCtx(()=>[e.createVNode(I,{appearance:"primary","data-testid":"toolbar-add-upstream",size:a.useActionOutside?"medium":"large",to:a.config.createRoute},{default:e.withCtx(()=>[e.createVNode(e.unref(oe.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:o})=>[e.createElementVNode("span",nt,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(b,{"data-testid":"action-entity-copy-id",onClick:R=>F(o,i)},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(n)("upstreams.actions.copy_id")),1)]),_:2},1032,["onClick"])]),_:2},1024),e.createVNode(c,null,{default:e.withCtx(({copyToClipboard:i})=>[e.createVNode(b,{"data-testid":"action-entity-copy-json",onClick:R=>K(o,i)},{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(o)},{default:e.withCtx(()=>[e.createVNode(b,{"data-testid":"action-entity-view","has-divider":"",item:m(o.id)},null,8,["item"])]),_:2},1032,["auth-function"]),e.createVNode(e.unref(p.PermissionsWrapper),{"auth-function":()=>a.canEdit(o)},{default:e.withCtx(()=>[e.createVNode(b,{"data-testid":"action-entity-edit",item:V(o.id)},null,8,["item"])]),_:2},1032,["auth-function"]),e.createVNode(e.unref(p.PermissionsWrapper),{"auth-function":()=>a.canDelete(o)},{default:e.withCtx(()=>[e.createVNode(b,{danger:"","data-testid":"action-entity-delete","has-divider":"",onClick:i=>Q(o)},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(n)("upstreams.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","query","table-headers"]),e.createVNode(e.unref(p.EntityDeleteModal),{"action-pending":f.value,description:e.unref(n)("upstreams.delete.description"),"entity-name":N.value&&(N.value.name||N.value.id),"entity-type":e.unref(p.EntityTypes).Upstream,error:O.value,title:e.unref(n)("upstreams.delete.title"),visible:S.value,onCancel:W,onProceed:U},null,8,["action-pending","description","entity-name","entity-type","error","title","visible"])])}}}),z=(a,q)=>{const r=a.__vccOpts||a;for(const[l,n]of q)r[l]=n;return r},ct=z(ht,[["__scopeId","data-v-cf46ca5f"]]),he="/v2/control-planes/{controlPlaneId}/core-entities",ce="/{workspace}",de={list:{konnect:`${he}/upstreams/{upstreamId}/targets`,kongManager:`${ce}/upstreams/{upstreamId}/targets`},form:{konnect:{create:`${he}/upstreams/{upstreamId}/targets`,edit:`${he}/upstreams/{upstreamId}/targets/{id}`,validate:`${he}/v1/schemas/json/target/validate`},kongManager:{create:`${ce}/upstreams/{upstreamId}/targets`,edit:`${ce}/upstreams/{upstreamId}/targets/{id}`,validate:`${ce}/schemas/targets/validate`}}},dt={class:"kong-ui-entities-target-form"},ut={class:"target-form-container"},ft={key:0,class:"target-form-info"},He=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:q}){var M;const r=q,l=a,{i18n:{t:n}}=J.useI18n(),{getMessageFromError:y}=p.useErrors(),{axiosInstance:g}=p.useAxios((M=l.config)==null?void 0:M.axiosRequestConfig),B=e.computed(()=>{var m;return de.form[l.config.app].edit.replace(/{upstreamId}/gi,((m=l.config)==null?void 0:m.upstreamId)||"")}),x=e.computed(()=>l.targetId?p.EntityBaseFormType.Edit:p.EntityBaseFormType.Create),s=e.computed(()=>x.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:""}),C=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(C)&&!!h.fields.target&&!!h.fields.weight&&!t.value),w=m=>{var V;h.fields.target=(m==null?void 0:m.target)||"",h.fields.weight=(m==null?void 0:m.weight)??"",h.fields.tags=((V=m==null?void 0:m.tags)==null?void 0:V.join(", "))||"",Object.assign(C,h.fields)},d=()=>{h.errorMessage="",r("cancel")},_=e.computed(()=>{var V,N;let m=`${l.config.apiBaseUrl}${de.form[l.config.app].validate}`;return l.config.app==="konnect"?m=m.replace(/{controlPlaneId}/gi,((V=l.config)==null?void 0:V.controlPlaneId)||""):l.config.app==="kongManager"&&(m=m.replace(/\/{workspace}/gi,(N=l.config)!=null&&N.workspace?`/${l.config.workspace}`:"")),m=m.replace(/{id}/gi,l.targetId),m}),$=e.computed(()=>{var V,N,S,f;let m=`${l.config.apiBaseUrl}${de.form[l.config.app][x.value]}`;return l.config.app==="konnect"?m=m.replace(/{controlPlaneId}/gi,((V=l.config)==null?void 0:V.controlPlaneId)||"").replace(/{upstreamId}/gi,((N=l.config)==null?void 0:N.upstreamId)||""):l.config.app==="kongManager"&&(m=m.replace(/\/{workspace}/gi,(S=l.config)!=null&&S.workspace?`/${l.config.workspace}`:"").replace(/{upstreamId}/gi,((f=l.config)==null?void 0:f.upstreamId)||"")),m=m.replace(/{id}/gi,l.targetId),m}),F=e.computed(()=>{var m,V,N;return{target:h.fields.target,weight:parseInt(h.fields.weight),tags:(N=(V=(m=h.fields.tags)==null?void 0:m.split(","))==null?void 0:V.map(S=>String(S||"").trim()))==null?void 0:N.filter(S=>S!==""),upstream:{id:l.config.upstreamId}}}),K=async()=>{var m,V;try{h.isReadonly=!0,h.errorMessage="";let N;if(await g.post(_.value,F.value),x.value==="create"?N=await g.post($.value,F.value):x.value==="edit"&&(N=((m=l.config)==null?void 0:m.app)==="konnect"?await g.put($.value,F.value):await g.patch($.value,F.value)),N){const{data:S}=N;h.fields.target=(S==null?void 0:S.name)||"",h.fields.weight=(S==null?void 0:S.weight)??100,h.fields.tags=((V=S==null?void 0:S.tags)==null?void 0:V.join(", "))||"",r("update",S),Object.assign(h.fields,u)}}catch(N){h.errorMessage=y(N),r("error",N)}finally{h.isReadonly=!1}};return e.watch(()=>l.targetId,()=>{Object.assign(h.fields,u)}),(m,V)=>{const N=e.resolveComponent("KInput"),S=e.resolveComponent("KPrompt");return e.openBlock(),e.createBlock(S,{"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:K},{default:e.withCtx(()=>[e.createElementVNode("div",dt,[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":B.value,"form-fields":F.value,"is-readonly":h.isReadonly,onCancel:d,"onFetch:error":V[3]||(V[3]=f=>m.$emit("error",f)),"onFetch:success":w,onLoading:V[4]||(V[4]=f=>m.$emit("loading",f))},{default:e.withCtx(()=>[e.createElementVNode("div",ut,[m.$slots.info?(e.openBlock(),e.createElementBlock("div",ft,[e.renderSlot(m.$slots,"info",{},void 0,!0)])):e.createCommentVNode("",!0),e.createVNode(N,{modelValue:h.fields.target,"onUpdate:modelValue":V[0]||(V[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(N,{modelValue:h.fields.weight,"onUpdate:modelValue":V[1]||(V[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(N,{modelValue:h.fields.tags,"onUpdate:modelValue":V[2]||(V[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-6a64b86e"]]),pt={class:"kong-ui-entities-targets-list"},mt={class:"target-address"},yt=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:q}){var I;const r=q,l=a,{i18n:{t:n}}=J.useI18n(),{axiosInstance:y}=p.useAxios((I=l.config)==null?void 0:I.axiosRequestConfig),g=e.computed(()=>l.config.app!=="kongManager"||!!l.config.disableSorting),x={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 c,o,i,R;let b=`${l.config.apiBaseUrl}${de.list[l.config.app]}`;return l.config.app==="konnect"?b=b.replace(/{controlPlaneId}/gi,((c=l.config)==null?void 0:c.controlPlaneId)||"").replace(/{upstreamId}/gi,((o=l.config)==null?void 0:o.upstreamId)||""):l.config.app==="kongManager"&&(b=b.replace(/\/{workspace}/gi,(i=l.config)!=null&&i.workspace?`/${l.config.workspace}`:"").replace(/{upstreamId}/gi,((R=l.config)==null?void 0:R.upstreamId)||"")),b}),{fetcher:h,fetcherState:C,fetcherCacheKey:u}=p.useFetcher({...l.config,cacheIdentifier:l.cacheIdentifier},s.value),t=()=>{u.value++},E=e.ref(null),w=()=>{T.value=!0},d=(b,c)=>{const o=b.id;if(!c(o)){r("copy:error",{entity:b,field:"id",message:n("targets.errors.copy")});return}r("copy:success",{entity:b,field:"id",message:n("targets.copy.success",{val:o})})},_=(b,c)=>{const o=JSON.stringify(b);if(!c(o)){r("copy:error",{entity:b,message:n("targets.errors.copy")});return}r("copy:success",{entity:b,message:n("targets.copy.success_brief")})},$=b=>{U.value=b,T.value=!0},F=b=>l.config.app==="konnect"?!1:l.config.canMarkHealthy(b),K=b=>l.config.app==="konnect"?!1:l.config.canMarkUnhealthy(b),M=e.ref(void 0),m=e.ref(!1),V=e.ref(!1),N=e.ref(""),S=p.useDeleteUrlBuilder(l.config,s.value),f=b=>{M.value=b,m.value=!0},O=()=>{m.value=!1},P=async()=>{var b,c,o;if((b=M.value)!=null&&b.id){V.value=!0;try{await y.delete(S(M.value.id)),V.value=!1,m.value=!1,u.value++,r("delete:success",M.value)}catch(i){N.value=((o=(c=i.response)==null?void 0:c.data)==null?void 0:o.message)||i.message||n("targets.errors.delete"),r("error",i)}finally{V.value=!1}}};e.watch(C,b=>{var c,o,i;if(b.status===p.FetcherStatus.Error){E.value={title:n("targets.errors.general")},(i=(o=(c=b.error)==null?void 0:c.response)==null?void 0:o.data)!=null&&i.message&&(E.value.message=b.error.response.data.message),r("error",b.error);return}E.value=null});const Q=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()&&(Q.value.title=n("targets.list.empty_state.title"),Q.value.ctaText=n("targets.actions.create"))});const W=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}})),U=e.ref(""),T=e.ref(!1),A=b=>{U.value?r("update:target",b):r("create:target",b),k()},k=()=>{H(),u.value++},H=()=>{T.value=!1,U.value=""};return(b,c)=>{const o=e.resolveComponent("KButton"),i=e.resolveComponent("KDropdownItem"),R=e.resolveComponent("KClipboardProvider");return e.openBlock(),e.createElementBlock("div",pt,[e.createVNode(e.unref(p.EntityBaseTable),{"cache-identifier":a.cacheIdentifier,"disable-sorting":g.value,"empty-state-options":Q.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(x),onEmptyStateCtaClicked:c[1]||(c[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(o,{appearance:"primary","data-testid":"toolbar-new-target",size:a.useActionOutside?"medium":"large",to:l.config.createRoute?l.config.createRoute:void 0,onClick:c[0]||(c[0]=()=>l.config.createRoute?void 0:w())},{default:e.withCtx(()=>[e.createVNode(e.unref(oe.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:D})=>[e.createElementVNode("span",mt,e.toDisplayString(D),1)]),tags:e.withCtx(({rowValue:D})=>[e.createVNode(e.unref(p.TableTags),{"tag-max-width":"auto",tags:D},null,8,["tags"])]),actions:e.withCtx(({row:D})=>[e.createVNode(R,null,{default:e.withCtx(({copyToClipboard:v})=>[e.createVNode(i,{"data-testid":"action-entity-copy-id",onClick:L=>d(D,v)},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(n)("targets.actions.copy_id")),1)]),_:2},1032,["onClick"])]),_:2},1024),e.createVNode(R,null,{default:e.withCtx(({copyToClipboard:v})=>[e.createVNode(i,{"data-testid":"action-entity-copy-json",onClick:L=>_(D,v)},{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(D)},{default:e.withCtx(()=>[e.createVNode(i,{"data-testid":"action-entity-edit","has-divider":"",onClick:v=>$(D.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":()=>F(D)},{default:e.withCtx(()=>[e.createVNode(i,{"data-testid":"action-target-mark-healthy",onClick:v=>r("health-actions:healthy",D)},{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":()=>K(D)},{default:e.withCtx(()=>[e.createVNode(i,{"data-testid":"action-target-mark-unhealthy",onClick:v=>r("health-actions:unhealthy",D)},{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(D)},{default:e.withCtx(()=>[e.createVNode(i,{danger:"","data-testid":"action-entity-delete","has-divider":"",onClick:v=>f(D)},{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":V.value,description:e.unref(n)("targets.delete.description"),"entity-type":e.unref(p.EntityTypes).Target,error:N.value,"need-confirm":!1,title:e.unref(n)("targets.delete.title"),visible:m.value,onCancel:O,onProceed:P},null,8,["action-pending","description","entity-type","error","title","visible"]),e.createVNode(He,{config:W.value,"is-visible":T.value,"target-id":U.value,onCancel:H,onUpdate:A},e.createSlots({_:2},[b.$slots["form-info"]?{name:"info",fn:e.withCtx(()=>[e.renderSlot(b.$slots,"form-info",{},void 0,!0)]),key:"0"}:void 0]),1032,["config","is-visible","target-id"])])}}}),[["__scopeId","data-v-4c844f80"]]),gt={key:1},bt=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:q}){var O,P,Q,W;const{i18nT:r,i18n:{t:l}}=J.useI18n(),n=a,y=q,{debouncedQueryChange:g,loading:B,loadItems:x,results:s,allRecords:h}=p.useDebouncedFilter(n.config,(P=te.form[(O=n.config)==null?void 0:O.app])==null?void 0:P.getServices,"",{fetchedItemsKey:"data",searchKeys:["host"]}),{debouncedQueryChange:C,loading:u,loadItems:t,results:E}=p.useDebouncedFilter(n.config,(W=te.form[(Q=n.config)==null?void 0:Q.app])==null?void 0:W.getCertificates),w=e.ref(""),d=e.computed(()=>{var U;return!!n.name&&!((U=h.value)!=null&&U.some(T=>T.host===n.name))}),_=e.computed(()=>{var T,A,k;const U=d.value&&n.name.includes((T=w.value)==null?void 0:T.toLowerCase());return(k=s.value)==null?void 0:k.map(H=>({label:H.host,value:H.id})).concat(U?[{label:n.name,value:((A=K.value)==null?void 0:A.value)||n.name}]:[])}),$=e.computed(()=>{var U;return(U=E.value)==null?void 0:U.map(T=>({label:T.id,value:T.id}))}),F=e.ref(""),K=e.ref({value:"",label:""}),M=e.computed(()=>{var U,T;return((U=_.value.find(A=>A.value===F.value))==null?void 0:U.label)||((T=K.value)==null?void 0:T.label)}),m=U=>{w.value=U,g(U)},V=U=>{K.value=U},N=()=>{K.value={value:"",label:""}},S=U=>{F.value=U,y("update:name",M.value)},f=e.ref(!1);return e.onBeforeMount(async()=>{var U,T;try{f.value=!0,await x(),n.name&&(F.value=((T=(U=_.value.find(A=>A.label===n.name))==null?void 0:U.value)==null?void 0:T.toString())||n.name),await t()}finally{f.value=!1}}),(U,T)=>{const A=e.resolveComponent("KSkeleton"),k=e.resolveComponent("KSelect"),H=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(A,{key:0,type:"form"})):(e.openBlock(),e.createElementBlock("div",gt,[e.createVNode(k,{class:"name-select margin-bottom-6",clearable:"","data-testid":"upstreams-form-name","enable-filtering":"","enable-item-creation":"","filter-function":()=>!0,items:_.value,label:e.unref(l)("upstreams.form.fields.name.label"),"label-attributes":{tooltipAttributes:{"max-width":"400"}},loading:e.unref(B),"model-value":F.value,placeholder:e.unref(l)("upstreams.form.fields.name.placeholder"),readonly:a.readonly,required:"",width:"100%",onItemAdded:V,onItemRemoved:N,onQueryChange:m,"onUpdate:modelValue":S},{"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(H,{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":T[0]||(T[0]=I=>y("update:host-header",I))},null,8,["label","model-value","readonly"]),e.createVNode(k,{class:"certificate-select margin-bottom-6",clearable:"","data-testid":"upstreams-form-client-certificate","enable-filtering":"","filter-function":()=>!0,items:$.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(C),"onUpdate:modelValue":T[1]||(T[1]=I=>y("update:client-certificate",I))},null,8,["items","label","label-attributes","loading","model-value","placeholder","readonly","onQueryChange"]),e.createVNode(H,{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":T[2]||(T[2]=I=>y("update:tags",I))},null,8,["help","label","label-attributes","model-value","placeholder","readonly"])]))]),_:1},8,["description","title"])}}}),[["__scopeId","data-v-626ed41f"]]),ue={upstreamObject:"https://docs.konghq.com/gateway/latest/admin-api/#upstream-object",loadBalancing:"https://docs.konghq.com/gateway/latest/how-kong-works/load-balancing/#main"},kt={class:"fields-group-title"},Ct={class:"fields-group-text"},_t={class:"fields-group-title"},wt={class:"fields-group-text"},Vt=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:q}){const{i18nT:r,i18n:{t:l}}=J.useI18n(),{inRange:n}=ne(),y=a,g=q,B=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}]),x=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(()=>y.hashOn,(C,u)=>{u==="header"&&C!==u&&g("update:hash-on-header",""),u==="cookie"&&C!==u&&(g("update:hash-on-cookie",""),g("update:hash-on-cookie-path","/")),u==="query_arg"&&C!==u&&g("update:hash-on-query-argument",""),u==="uri_capture"&&C!==u&&g("update:hash-on-uri-capture",""),(C==="cookie"||C==="none")&&(g("update:hash-fallback","none"),g("update:hash-fallback-header",""),g("update:hash-fallback-query-argument",""),g("update:hash-fallback-uri-capture",""))}),e.watch(()=>y.hashFallback,(C,u)=>{u==="header"&&C!==u&&g("update:hash-fallback-header",""),u==="cookie"&&C!==u&&(g("update:hash-on-cookie",""),g("update:hash-on-cookie-path","/")),u==="query_arg"&&C!==u&&g("update:hash-fallback-query-argument",""),u==="uri_capture"&&C!==u&&g("update:hash-fallback-uri-capture","")});const s=e.computed(()=>y.hashOn==="cookie"||y.hashOn==="none"),h=e.computed(()=>y.slots?n(y.slots,fe,pe)?"":l("upstreams.form.errors.in_range"):"");return(C,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(ue).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:B.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]=_=>g("update:algorithm",_))},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(pe),min:e.unref(fe),"model-value":a.slots,readonly:a.readonly,type:"number","onUpdate:modelValue":u[1]||(u[1]=_=>g("update:slots",_))},null,8,["error","error-message","help","label","max","min","model-value","readonly"]),e.createVNode(d,null,{default:e.withCtx(()=>[e.createElementVNode("h5",kt,e.toDisplayString(e.unref(l)("upstreams.form.fields.hash_on.label")),1),e.createElementVNode("p",Ct,e.toDisplayString(e.unref(l)("upstreams.form.fields.hash_on.help")),1),e.createVNode(E,{class:"hash-on-select",items:x.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]=_=>g("update:hash-on",_))},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]=_=>g("update:hash-on-header",_))},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]=_=>g("update:hash-on-cookie",_))},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]=_=>g("update:hash-on-cookie-path",_))},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]=_=>g("update:hash-on-query-argument",_))},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]=_=>g("update:hash-on-uri-capture",_))},null,8,["label","model-value","readonly"])):e.createCommentVNode("",!0)]),_:1}),e.createVNode(d,null,{default:e.withCtx(()=>[e.createElementVNode("h5",_t,e.toDisplayString(e.unref(l)("upstreams.form.fields.hash_fallback.label")),1),e.createElementVNode("p",wt,e.toDisplayString(e.unref(l)("upstreams.form.fields.hash_fallback.help")),1),e.createVNode(E,{class:"hash-fallback-select",disabled:s.value,items:x.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]=_=>g("update:hash-fallback",_))},{"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]=_=>g("update:hash-fallback-header",_))},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]=_=>g("update:hash-on-cookie",_))},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]=_=>g("update:hash-on-cookie-path",_))},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]=_=>g("update:hash-fallback-query-argument",_))},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]=_=>g("update:hash-fallback-uri-capture",_))},null,8,["label","model-value","readonly"])):e.createCommentVNode("",!0)]),_:1})]),_:1},8,["title"])}}}),[["__scopeId","data-v-d662db8e"]]),Nt={class:"fields-group-title"},xt={class:"fields-group-text"},Ht={class:"fields-group-title"},St={class:"fields-group-text"},Tt=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:q}){const{i18n:{t:r}}=J.useI18n(),l=q;return(n,y)=>{const g=e.resolveComponent("KExternalLink"),B=e.resolveComponent("KInputSwitch"),x=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(g,{"hide-icon":"",href:e.unref(ue).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(x,null,{default:e.withCtx(()=>[e.createElementVNode("h5",Nt,e.toDisplayString(e.unref(r)("upstreams.form.fields.active_health_checks.label")),1),e.createElementVNode("p",xt,e.toDisplayString(e.unref(r)("upstreams.form.fields.active_health_checks.help")),1),e.createVNode(B,{class:"active-health-switch","data-testid":"active-health-switch",disabled:a.readonly,"model-value":a.activeHealthSwitch,onChange:y[0]||(y[0]=h=>l("update:active-health-switch",h))},null,8,["disabled","model-value"])]),_:1}),e.createVNode(x,null,{default:e.withCtx(()=>[e.createElementVNode("h5",Ht,e.toDisplayString(e.unref(r)("upstreams.form.fields.passive_health_checks.label")),1),e.createElementVNode("p",St,e.toDisplayString(e.unref(r)("upstreams.form.fields.passive_health_checks.help")),1),e.createVNode(B,{class:"passive-health-switch","data-testid":"passive-health-switch",disabled:a.readonly,"model-value":a.passiveHealthSwitch,onChange:y[1]||(y[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":y[2]||(y[2]=h=>l("update:healthchecks-threshold",h))},null,8,["label","max","min","model-value","readonly"])]),_:1},8,["title"])}}}),[["__scopeId","data-v-bfdc5a59"]]),It="#d60027",Ut={key:2},Ft={class:"fields-group-title"},qt={class:"fields-group-text"},Et={class:"fields-group-title"},Bt={class:"fields-group-text"},Ot=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},interval:{type:String,required:!0},successes:{type:String,required:!0},httpStatuses:{type:Array,required:!0},unhealthyInterval:{type:String,required:!0},httpFailures:{type:String,required:!0},tcpFailures:{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:interval","update:successes","update:http-statuses","update:unhealthy-interval","update:http-failures","update:tcp-failures","update:unhealthy-http-statuses","update:unhealthy-timeouts"],setup(a,{emit:q}){const{i18n:{t:r}}=J.useI18n(),{objectsAreEqual:l}=ne(),n=a,y=q,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(()=>n.type==="https"||n.type==="grpcs"),x=e.computed(()=>n.type==="tcp"),{trackNewItems:s}=le({replaceId:!0}),{trackNewItems:h}=le({replaceId:!0});e.watch(()=>n.type,(w,d)=>{d==="tcp"&&w!==d&&y("update:tcp-failures","5"),(d==="https"||d==="grpcs")&&w!==d&&(y("update:https-sni",""),y("update:verify-ssl",!1)),d!=="tcp"&&w==="tcp"&&(y("update:http-path","/"),y("update:http-statuses",we),y("update:unhealthy-http-statuses",Ne))});const C=e.ref([{key:"",values:""}]);e.watch(()=>n.headers,w=>{l(C.value,w)||(C.value=[...w])},{immediate:!0,deep:!0});const u=()=>{y("update:headers",C.value)},t=()=>{C.value.push({key:"",values:""}),u()},E=w=>{w===0&&C.value.length===1?C.value[0]={key:"",values:""}:C.value.splice(w,1),u()};return(w,d)=>{const _=e.resolveComponent("KExternalLink"),$=e.resolveComponent("KSelect"),F=e.resolveComponent("KInput"),K=e.resolveComponent("KCheckbox"),M=e.resolveComponent("KLabel"),m=e.resolveComponent("KButton"),V=e.resolveComponent("KMultiselect"),N=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(_,{"hide-icon":"",href:e.unref(ue).upstreamObject},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(r)("upstreams.form.buttons.view_documentation")),1)]),_:1},8,["href"])])]),default:e.withCtx(()=>{var S;return[e.createVNode($,{class:"active-healthcheck-type-select",items:g.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=>y("update:type",f))},null,8,["items","label","model-value","readonly"]),x.value?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(F,{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=>y("update:http-path",f))},null,8,["label","model-value","readonly"])),e.createVNode(F,{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=>y("update:timeout",f))},null,8,["label","max","min","model-value","readonly"]),e.createVNode(F,{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=>y("update:concurrency",f))},null,8,["label","max","min","model-value","readonly"]),B.value?(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createVNode(F,{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=>y("update:https-sni",f))},null,8,["label","model-value","readonly"]),e.createVNode(K,{"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=>y("update:verify-ssl",f))},null,8,["disabled","label","model-value"])],64)):e.createCommentVNode("",!0),((S=a.config)==null?void 0:S.app)==="kongManager"?(e.openBlock(),e.createElementBlock("div",Ut,[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(C.value,(f,O)=>(e.openBlock(),e.createElementBlock("div",{key:`${f.header}_${O}`,class:e.normalizeClass(["headers-row",{"margin-top-6":O>0}])},[e.createVNode(F,{modelValue:C.value[O].key,"onUpdate:modelValue":P=>C.value[O].key=P,autocomplete:"off","data-testid":`active-healthcheck-headers-header-${O+1}`,readonly:a.readonly,type:"text",onBlur:u},null,8,["modelValue","onUpdate:modelValue","data-testid","readonly"]),e.createVNode(F,{modelValue:C.value[O].values,"onUpdate:modelValue":P=>C.value[O].values=P,autocomplete:"off","data-testid":`active-healthcheck-headers-value-${O+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:C.value.length===1,icon:"",onClick:P=>E(O)},{default:e.withCtx(()=>[e.createVNode(e.unref(oe.TrashIcon),{class:"delete-item",color:C.value.length>1?e.unref(It):void 0},null,8,["color"])]),_:2},1032,["disabled","onClick"]),C.value&&O===C.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(oe.AddIcon))]),_:1})):e.createCommentVNode("",!0)],2))),128))])])):e.createCommentVNode("",!0),e.createVNode(N,null,{default:e.withCtx(()=>[e.createElementVNode("h5",Ft,e.toDisplayString(e.unref(r)("upstreams.form.healthy.label")),1),e.createElementVNode("p",qt,e.toDisplayString(e.unref(r)("upstreams.form.healthy.help")),1),e.createVNode(F,{autocomplete:"off",class:"margin-bottom-6","data-testid":"active-healthcheck-interval",help:e.unref(r)("upstreams.form.fields.interval.help"),label:e.unref(r)("upstreams.form.fields.interval.label"),max:e.unref(_e),min:e.unref(Ce),"model-value":a.interval,readonly:a.readonly,type:"number","onUpdate:modelValue":d[6]||(d[6]=f=>y("update:interval",f))},null,8,["help","label","max","min","model-value","readonly"]),e.createVNode(F,{autocomplete:"off","data-testid":"active-healthcheck-successes",label:e.unref(r)("upstreams.form.fields.successes.label"),max:e.unref(Y),min:e.unref(X),"model-value":a.successes,readonly:a.readonly,type:"number","onUpdate:modelValue":d[7]||(d[7]=f=>y("update:successes",f))},null,8,["label","max","min","model-value","readonly"]),x.value?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(V,{key:0,autocomplete:"off",class:"margin-top-6 active-healthcheck-http-statuses","enable-item-creation":"",items:e.unref(ie),label:e.unref(r)("upstreams.form.fields.http_statuses.label"),"model-value":a.httpStatuses,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=>y("update:http-statuses",f))},null,8,["items","label","model-value","readonly"]))]),_:1}),e.createVNode(N,null,{default:e.withCtx(()=>[e.createElementVNode("h5",Et,e.toDisplayString(e.unref(r)("upstreams.form.unhealthy.label")),1),e.createElementVNode("p",Bt,e.toDisplayString(e.unref(r)("upstreams.form.unhealthy.help")),1),e.createVNode(F,{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(_e),min:e.unref(Ce),"model-value":a.unhealthyInterval,readonly:a.readonly,type:"number","onUpdate:modelValue":d[11]||(d[11]=f=>y("update:unhealthy-interval",f))},null,8,["help","label","max","min","model-value","readonly"]),e.createVNode(F,{autocomplete:"off",class:"margin-bottom-6","data-testid":"active-healthcheck-tcp-failures",label:e.unref(r)("upstreams.form.fields.tcp_failures.label"),max:e.unref(Y),min:e.unref(X),"model-value":a.tcpFailures,readonly:a.readonly,type:"number","onUpdate:modelValue":d[12]||(d[12]=f=>y("update:tcp-failures",f))},null,8,["label","max","min","model-value","readonly"]),x.value?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(F,{key:0,autocomplete:"off",class:"margin-bottom-6","data-testid":"active-healthcheck-http-failures",label:e.unref(r)("upstreams.form.fields.http_failures.label"),max:e.unref(Y),min:e.unref(X),"model-value":a.httpFailures,readonly:a.readonly,type:"number","onUpdate:modelValue":d[13]||(d[13]=f=>y("update:http-failures",f))},null,8,["label","max","min","model-value","readonly"])),x.value?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(V,{key:1,autocomplete:"off",class:"margin-bottom-6 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=>y("update:unhealthy-http-statuses",f))},null,8,["items","label","model-value","readonly"])),e.createVNode(F,{autocomplete:"off","data-testid":"active-healthcheck-unhealthy-timeouts",label:e.unref(r)("upstreams.form.fields.timeouts.label"),max:e.unref(ke),min:e.unref(be),"model-value":a.unhealthyTimeouts,readonly:a.readonly,type:"number","onUpdate:modelValue":d[17]||(d[17]=f=>y("update:unhealthy-timeouts",f))},null,8,["label","max","min","model-value","readonly"])]),_:1})]}),_:1},8,["title"])}}}),[["__scopeId","data-v-efccf560"]]),Dt={class:"fields-group-title"},$t={class:"fields-group-text"},Pt={class:"fields-group-title"},Mt={class:"fields-group-text"},At=z(e.defineComponent({__name:"UpstreamsFormPassiveHealthCheck",props:{type:{type:String,required:!0},successes:{type:String,required:!0},httpStatuses:{type:Array,required:!0},timeouts:{type:String,required:!0},httpFailures:{type:String,required:!0},unhealthyHttpStatuses:{type:Array,required:!0},tcpFailures:{type:String,required:!0},readonly:{type:Boolean,required:!1,default:!1}},emits:["update:type","update:successes","update:http-statuses","update:timeouts","update:http-failures","update:unhealthy-http-statuses","update:tcp-failures"],setup(a,{emit:q}){const{i18n:{t:r}}=J.useI18n(),l=a,n=q,y=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}]),g=e.computed(()=>l.type==="tcp"),{trackNewItems:B}=le({replaceId:!0}),{trackNewItems:x}=le({replaceId:!0});return e.watch(()=>l.type,(s,h)=>{h==="tcp"&&s!==h&&n("update:tcp-failures","5"),h!=="tcp"&&s==="tcp"&&(n("update:http-statuses",Ve),n("update:unhealthy-http-statuses",xe))}),(s,h)=>{const C=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(C,{"hide-icon":"",href:e.unref(ue).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:y.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",Dt,e.toDisplayString(e.unref(r)("upstreams.form.passive_healthy.label")),1),e.createElementVNode("p",$t,e.toDisplayString(e.unref(r)("upstreams.form.passive_healthy.help")),1),e.createVNode(t,{autocomplete:"off","data-testid":"passive-healthcheck-successes",label:e.unref(r)("upstreams.form.fields.successes.label"),max:e.unref(Y),min:e.unref(X),"model-value":a.successes,readonly:a.readonly,type:"number","onUpdate:modelValue":h[1]||(h[1]=d=>n("update:successes",d))},null,8,["label","max","min","model-value","readonly"]),g.value?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(E,{key:0,class:"margin-top-6 passive-healthcheck-http-statuses","enable-item-creation":"",items:e.unref(ie),label:e.unref(r)("upstreams.form.fields.http_statuses.label"),"model-value":a.httpStatuses,readonly:a.readonly,width:"100%",onItemAdded:h[2]||(h[2]=d=>e.unref(B)(d,!0)),onItemRemoved:h[3]||(h[3]=d=>e.unref(B)(d,!1)),"onUpdate:modelValue":h[4]||(h[4]=d=>n("update:http-statuses",d))},null,8,["items","label","model-value","readonly"]))]),_:1}),e.createVNode(w,null,{default:e.withCtx(()=>[e.createElementVNode("h5",Pt,e.toDisplayString(e.unref(r)("upstreams.form.passive_unhealthy.label")),1),e.createElementVNode("p",Mt,e.toDisplayString(e.unref(r)("upstreams.form.passive_unhealthy.help")),1),e.createVNode(t,{autocomplete:"off","data-testid":"passive-healthcheck-timeouts",label:e.unref(r)("upstreams.form.fields.timeouts.label"),max:e.unref(ke),min:e.unref(be),"model-value":a.timeouts,readonly:a.readonly,type:"number","onUpdate:modelValue":h[5]||(h[5]=d=>n("update:timeouts",d))},null,8,["label","max","min","model-value","readonly"]),e.createVNode(t,{autocomplete:"off",class:"margin-top-6","data-testid":"passive-healthcheck-tcp-failures",label:e.unref(r)("upstreams.form.fields.tcp_failures.label"),max:e.unref(Y),min:e.unref(X),"model-value":a.tcpFailures,readonly:a.readonly,type:"number","onUpdate:modelValue":h[6]||(h[6]=d=>n("update:tcp-failures",d))},null,8,["label","max","min","model-value","readonly"]),g.value?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(t,{key:0,autocomplete:"off",class:"margin-top-6","data-testid":"passive-healthcheck-http-failures",label:e.unref(r)("upstreams.form.fields.http_failures.label"),max:e.unref(Y),min:e.unref(X),"model-value":a.httpFailures,readonly:a.readonly,type:"number","onUpdate:modelValue":h[7]||(h[7]=d=>n("update:http-failures",d))},null,8,["label","max","min","model-value","readonly"])),g.value?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(E,{key:1,autocomplete:"off",class:"margin-top-6 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(x)(d,!0)),onItemRemoved:h[9]||(h[9]=d=>e.unref(x)(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-5bd9952e"]]),Kt={class:"kong-ui-entities-upstreams-form"},Rt=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:q}){var b;const r=a,l=q,{inRange:n,stringToNumberArray:y,upstreamsResponseToFields:g,getDefaultUpstreamFields:B,objectsAreEqual:x,cloneDeep:s}=ne(),{axiosInstance:h}=p.useAxios((b=r.config)==null?void 0:b.axiosRequestConfig),{getMessageFromError:C}=p.useErrors(),u=ye.useRouter(),t=e.reactive({fields:B(),readonly:!1,errorMessage:""}),E=e.reactive(B()),w=e.computed(()=>!x(t.fields,E)),d=c=>{t.fields.activeHealthCheck.interval=c?"5":"0",t.fields.activeHealthCheck.successes=c?"5":"0",t.fields.activeHealthCheck.httpFailures=c?"5":"0",t.fields.activeHealthCheck.unhealthyInterval=c?"5":"0",t.fields.activeHealthCheck.tcpFailures=c?"5":"0"},_=c=>{t.fields.passiveHealthCheck.timeouts=c?"5":"0",t.fields.passiveHealthCheck.successes=c?"80":"0",t.fields.passiveHealthCheck.tcpFailures=c?"5":"0",t.fields.passiveHealthCheck.httpFailures=c?"5":"0"},$=e.computed(()=>t.fields.slots?n(t.fields.slots,fe,pe):!0),F=e.computed(()=>t.fields.hashOn==="header"?!!t.fields.hashOnHeader:!0),K=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),V=e.computed(()=>t.fields.hashOn==="uri_capture"?!!t.fields.hashOnUriCapture:!0),N=e.computed(()=>t.fields.hashFallback==="header"?!!t.fields.hashFallbackHeader:!0),S=e.computed(()=>t.fields.hashFallback==="query_arg"?!!t.fields.hashFallbackQueryArgument:!0),f=e.computed(()=>t.fields.hashFallback==="uri_capture"?!!t.fields.hashFallbackUriCapture:!0),O=e.computed(()=>!!t.fields.name&&$.value&&F.value&&K.value&&M.value&&m.value&&V.value&&N.value&&S.value&&f.value),P=e.computed(()=>r.upstreamId?p.EntityBaseFormType.Edit:p.EntityBaseFormType.Create),Q=e.computed(()=>{var c,o;return(o=te.form[(c=r.config)==null?void 0:c.app])==null?void 0:o.edit}),W=c=>{Object.assign(t.fields,g(c)),Object.assign(E,s(t.fields))},U=()=>{var c;u.push(((c=r.config)==null?void 0:c.cancelRoute)||{name:"upstreams-list"})},T=c=>{l("loading",c)},A=c=>{l("error",c)},k=e.computed(()=>{var o,i,R,D,v;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:{}};return t.fields.hostHeader&&(c.host_header=t.fields.hostHeader),t.fields.clientCertificate&&(c.client_certificate={id:t.fields.clientCertificate}),t.fields.healthchecksThreshold&&(c.healthchecks.threshold=Number(t.fields.healthchecksThreshold)),t.fields.tags&&(c.tags=(i=(o=t.fields.tags.split(","))==null?void 0:o.map(L=>String(L||"").trim()))==null?void 0:i.filter(L=>L!=="")),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),t.fields.activeHealthSwitch?(c.healthchecks.active={type:t.fields.activeHealthCheck.type,healthy:{},unhealthy:{}},t.fields.activeHealthCheck.timeout&&(c.healthchecks.active.timeout=Number(t.fields.activeHealthCheck.timeout)),t.fields.activeHealthCheck.concurrency&&(c.healthchecks.active.concurrency=Number(t.fields.activeHealthCheck.concurrency)),t.fields.activeHealthCheck.type!=="tcp"&&t.fields.activeHealthCheck.httpPath&&(c.healthchecks.active.http_path=t.fields.activeHealthCheck.httpPath),((R=r.config)==null?void 0:R.app)==="kongManager"&&(t.fields.activeHealthCheck.headers.length===0?c.healthchecks.active.headers=[]:c.healthchecks.active.headers=t.fields.activeHealthCheck.headers.reduce((L,G)=>{var se,re;return G.key?{...L,[G.key]:(re=(se=G.values.split(","))==null?void 0:se.map(ae=>String(ae||"").trim()))==null?void 0:re.filter(ae=>ae!=="")}:{...L}},{})),(t.fields.activeHealthCheck.type==="https"||t.fields.activeHealthCheck.type==="grpcs")&&t.fields.activeHealthCheck.httpsSni&&(c.healthchecks.active.https_sni=t.fields.activeHealthCheck.httpsSni),(t.fields.activeHealthCheck.type==="https"||t.fields.activeHealthCheck.type==="grpcs")&&(c.healthchecks.active.https_verify_certificate=t.fields.activeHealthCheck.verifySsl),t.fields.activeHealthCheck.interval&&(c.healthchecks.active.healthy.interval=Number(t.fields.activeHealthCheck.interval)),t.fields.activeHealthCheck.successes&&(c.healthchecks.active.healthy.successes=Number(t.fields.activeHealthCheck.successes)),t.fields.activeHealthCheck.type!=="tcp"&&t.fields.activeHealthCheck.httpStatuses&&(c.healthchecks.active.healthy.http_statuses=y(t.fields.activeHealthCheck.httpStatuses)),t.fields.activeHealthCheck.unhealthyInterval&&(c.healthchecks.active.unhealthy.interval=Number(t.fields.activeHealthCheck.unhealthyInterval)),t.fields.activeHealthCheck.unhealthyTimeouts&&(c.healthchecks.active.unhealthy.timeouts=Number(t.fields.activeHealthCheck.unhealthyTimeouts)),t.fields.activeHealthCheck.type!=="tcp"&&t.fields.activeHealthCheck.unhealthyHttpStatuses&&(c.healthchecks.active.unhealthy.http_statuses=y(t.fields.activeHealthCheck.unhealthyHttpStatuses)),t.fields.activeHealthCheck.type!=="tcp"&&t.fields.activeHealthCheck.httpFailures&&(c.healthchecks.active.unhealthy.http_failures=Number(t.fields.activeHealthCheck.httpFailures)),t.fields.activeHealthCheck.tcpFailures&&(c.healthchecks.active.unhealthy.tcp_failures=Number(t.fields.activeHealthCheck.tcpFailures))):((D=r.config)==null?void 0:D.app)==="kongManager"&&P.value===p.EntityBaseFormType.Edit&&(c.healthchecks.active={type:t.fields.activeHealthCheck.type,headers:{},healthy:{interval:0,successes:0},unhealthy:{interval:0,http_failures:0,tcp_failures:0}}),t.fields.passiveHealthSwitch?(c.healthchecks.passive={type:t.fields.passiveHealthCheck.type,healthy:{},unhealthy:{}},t.fields.passiveHealthCheck.successes&&(c.healthchecks.passive.healthy.successes=Number(t.fields.passiveHealthCheck.successes)),t.fields.passiveHealthCheck.type!=="tcp"&&t.fields.passiveHealthCheck.httpStatuses&&(c.healthchecks.passive.healthy.http_statuses=y(t.fields.passiveHealthCheck.httpStatuses)),t.fields.passiveHealthCheck.timeouts&&(c.healthchecks.passive.unhealthy.timeouts=Number(t.fields.passiveHealthCheck.timeouts)),t.fields.passiveHealthCheck.type!=="tcp"&&t.fields.passiveHealthCheck.unhealthyHttpStatuses&&(c.healthchecks.passive.unhealthy.http_statuses=y(t.fields.passiveHealthCheck.unhealthyHttpStatuses)),t.fields.passiveHealthCheck.type!=="tcp"&&t.fields.passiveHealthCheck.httpFailures&&(c.healthchecks.passive.unhealthy.http_failures=Number(t.fields.passiveHealthCheck.httpFailures)),t.fields.passiveHealthCheck.tcpFailures&&(c.healthchecks.passive.unhealthy.tcp_failures=Number(t.fields.passiveHealthCheck.tcpFailures))):((v=r.config)==null?void 0:v.app)==="kongManager"&&P.value===p.EntityBaseFormType.Edit&&(c.healthchecks.passive={type:t.fields.passiveHealthCheck.type,healthy:{successes:0},unhealthy:{timeouts:0,tcp_failures:0,http_failures:0}}),c}),H=c=>{var i,R,D,v,L,G;let o=`${(i=r.config)==null?void 0:i.apiBaseUrl}${te.form[(R=r.config)==null?void 0:R.app][c]}`;return((D=r.config)==null?void 0:D.app)==="konnect"?o=o.replace(/{controlPlaneId}/gi,((v=r.config)==null?void 0:v.controlPlaneId)||""):((L=r.config)==null?void 0:L.app)==="kongManager"&&(o=o.replace(/\/{workspace}/gi,(G=r.config)!=null&&G.workspace?`/${r.config.workspace}`:"")),o=o.replace(/{id}/gi,r.upstreamId),o},I=async()=>{var c;try{t.readonly=!0,await h.post(H("validate"),k.value);let o;P.value===p.EntityBaseFormType.Create?o=await h.post(H("create"),k.value):P.value===p.EntityBaseFormType.Edit&&(o=((c=r.config)==null?void 0:c.app)==="konnect"?await h.put(H("edit"),k.value):await h.patch(H("edit"),k.value)),l("update",o==null?void 0:o.data)}catch(o){t.errorMessage=C(o),l("error",o)}finally{t.readonly=!1}};return(c,o)=>(e.openBlock(),e.createElementBlock("div",Kt,[e.createVNode(e.unref(p.EntityBaseForm),{"can-submit":O.value&&w.value,config:a.config,"edit-id":a.upstreamId,"entity-type":e.unref(p.SupportedEntityType).Upstream,"error-message":t.errorMessage,"fetch-url":Q.value,"form-fields":k.value,"is-readonly":t.readonly,onCancel:U,"onFetch:error":A,"onFetch:success":W,onLoading:T,onSubmit:I},{default:e.withCtx(()=>[e.createVNode(bt,{"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(Vt,{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(Tt,{"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),_],readonly:t.readonly},null,8,["active-health-switch","healthchecks-threshold","passive-health-switch","readonly"]),t.fields.activeHealthSwitch?(e.openBlock(),e.createBlock(Ot,{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),"http-failures":t.fields.activeHealthCheck.httpFailures,"onUpdate:httpFailures":o[21]||(o[21]=i=>t.fields.activeHealthCheck.httpFailures=i),"http-path":t.fields.activeHealthCheck.httpPath,"onUpdate:httpPath":o[22]||(o[22]=i=>t.fields.activeHealthCheck.httpPath=i),"http-statuses":t.fields.activeHealthCheck.httpStatuses,"onUpdate:httpStatuses":o[23]||(o[23]=i=>t.fields.activeHealthCheck.httpStatuses=i),"https-sni":t.fields.activeHealthCheck.httpsSni,"onUpdate:httpsSni":o[24]||(o[24]=i=>t.fields.activeHealthCheck.httpsSni=i),interval:t.fields.activeHealthCheck.interval,"onUpdate:interval":o[25]||(o[25]=i=>t.fields.activeHealthCheck.interval=i),successes:t.fields.activeHealthCheck.successes,"onUpdate:successes":o[26]||(o[26]=i=>t.fields.activeHealthCheck.successes=i),"tcp-failures":t.fields.activeHealthCheck.tcpFailures,"onUpdate:tcpFailures":o[27]||(o[27]=i=>t.fields.activeHealthCheck.tcpFailures=i),timeout:t.fields.activeHealthCheck.timeout,"onUpdate:timeout":o[28]||(o[28]=i=>t.fields.activeHealthCheck.timeout=i),type:t.fields.activeHealthCheck.type,"onUpdate:type":o[29]||(o[29]=i=>t.fields.activeHealthCheck.type=i),"unhealthy-http-statuses":t.fields.activeHealthCheck.unhealthyHttpStatuses,"onUpdate:unhealthyHttpStatuses":o[30]||(o[30]=i=>t.fields.activeHealthCheck.unhealthyHttpStatuses=i),"unhealthy-interval":t.fields.activeHealthCheck.unhealthyInterval,"onUpdate:unhealthyInterval":o[31]||(o[31]=i=>t.fields.activeHealthCheck.unhealthyInterval=i),"unhealthy-timeouts":t.fields.activeHealthCheck.unhealthyTimeouts,"onUpdate:unhealthyTimeouts":o[32]||(o[32]=i=>t.fields.activeHealthCheck.unhealthyTimeouts=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","http-failures","http-path","http-statuses","https-sni","interval","successes","tcp-failures","timeout","type","unhealthy-http-statuses","unhealthy-interval","unhealthy-timeouts","verify-ssl","config","readonly"])):e.createCommentVNode("",!0),t.fields.passiveHealthSwitch?(e.openBlock(),e.createBlock(At,{key:1,"http-failures":t.fields.passiveHealthCheck.httpFailures,"onUpdate:httpFailures":o[34]||(o[34]=i=>t.fields.passiveHealthCheck.httpFailures=i),"http-statuses":t.fields.passiveHealthCheck.httpStatuses,"onUpdate:httpStatuses":o[35]||(o[35]=i=>t.fields.passiveHealthCheck.httpStatuses=i),successes:t.fields.passiveHealthCheck.successes,"onUpdate:successes":o[36]||(o[36]=i=>t.fields.passiveHealthCheck.successes=i),"tcp-failures":t.fields.passiveHealthCheck.tcpFailures,"onUpdate:tcpFailures":o[37]||(o[37]=i=>t.fields.passiveHealthCheck.tcpFailures=i),timeouts:t.fields.passiveHealthCheck.timeouts,"onUpdate:timeouts":o[38]||(o[38]=i=>t.fields.passiveHealthCheck.timeouts=i),type:t.fields.passiveHealthCheck.type,"onUpdate:type":o[39]||(o[39]=i=>t.fields.passiveHealthCheck.type=i),"unhealthy-http-statuses":t.fields.passiveHealthCheck.unhealthyHttpStatuses,"onUpdate:unhealthyHttpStatuses":o[40]||(o[40]=i=>t.fields.passiveHealthCheck.unhealthyHttpStatuses=i),readonly:t.readonly},null,8,["http-failures","http-statuses","successes","tcp-failures","timeouts","type","unhealthy-http-statuses","readonly"])):e.createCommentVNode("",!0)]),_:1},8,["can-submit","config","edit-id","entity-type","error-message","fetch-url","form-fields","is-readonly"])]))}}),[["__scopeId","data-v-0669debc"]]),vt={"data-testid":"client_certificate-plain-text"},jt=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 q=a,{i18n:{t:r},i18nT:l}=J.useI18n(),{getPropValue:n}=p.useHelpers(),y=e.computed(()=>te.form[q.config.app].edit),g=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(B,x)=>(e.openBlock(),e.createElementBlock("div",null,[e.createVNode(e.unref(p.EntityBaseConfigCard),{config:a.config,"config-card-doc":a.configCardDoc,"config-schema":g.value,"entity-type":e.unref(p.SupportedEntityType).Upstream,"fetch-url":y.value,"hide-title":a.hideTitle,"onFetch:error":x[0]||(x[0]=s=>B.$emit("fetch:error",s)),"onFetch:success":x[1]||(x[1]=s=>B.$emit("fetch:success",s)),onLoading:x[2]||(x[2]=s=>B.$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(()=>x[3]||(x[3]=[e.createElementVNode("code",null,"10",-1)])),max:e.withCtx(()=>x[4]||(x[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",vt,[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"])]))}});j.TargetForm=He,j.TargetsList=yt,j.UpstreamsConfigCard=jt,j.UpstreamsForm=Rt,j.UpstreamsList=ct,Object.defineProperty(j,Symbol.toStringTag,{value:"Module"})});
|
|
1
|
+
(function(j,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):(j=typeof globalThis<"u"?globalThis:j||self,e(j["kong-ui-entities-upstreams-targets"]={},j.Vue,j["kong-ui-public-entities-shared"],j.VueRouter,j.KongIcons,j["kong-ui-public-i18n"]))})(this,function(j,e,p,ye,oe,ge){"use strict";const Ze={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."},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=ge.createI18n("en-us",Ze);return{i18n:a,i18nT:ge.i18nTComponent(a)}}function le(a){const{replaceId:q=!1}=a,r=e.ref([]);return{addedItems:r,trackNewItems:(n,y)=>{if(y){const g={...n};q&&(g.value=n.label),r.value.push(g)}else r.value=r.value.filter(g=>g.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"}],fe=10,pe=65536,tt=0,at=65535,X=0,Y=255,be=0,ke=255,lt=0,st=65535,Ce=0,_e=65535,rt=0,ot=2**31,we=["200","302"],Ve=["200","201","202","203","204","205","206","207","208","226","300","301","302","303","304","305","306","307","308"],Ne=["429","404","500","501","502","503","504","505"],xe=["429","500","503"];function ne(){const a=s=>/^\d+$/.test(s),q=(s,h,C)=>{if(a(s)){const u=Number(s);return u>=h&&u<=C}else return!1},r=s=>s.map(h=>Number(h)),l=s=>s.map(h=>h.toString()),n=s=>{var C,u,t,E,w,d,_,$,F,K,M,m,V,N,S,f,O,P,Q,W,U,T,A,k,H,I,b,c,o,i,R,D,v,L,G,se,re,ae,Se,Te,Ie,Ue,Fe,qe,Ee,Be,Oe,De,$e,Pe,Me,Ae,Ke,Re,ve,je,Le,Qe,We,Je,ze,Ge,Xe,Ye;return{name:(s==null?void 0:s.name)||"",hostHeader:(s==null?void 0:s.host_header)||"",clientCertificate:((C=s==null?void 0:s.client_certificate)==null?void 0:C.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||((_=(d=s.healthchecks.active)==null?void 0:d.unhealthy)==null?void 0:_.interval)!==0:!1,passiveHealthSwitch:s?((F=($=s.healthchecks.passive)==null?void 0:$.healthy)==null?void 0:F.successes)!==0||((M=(K=s.healthchecks.passive)==null?void 0:K.unhealthy)==null?void 0:M.timeouts)!==0||((V=(m=s.healthchecks.passive)==null?void 0:m.unhealthy)==null?void 0:V.tcp_failures)!==0||((S=(N=s.healthchecks.passive)==null?void 0:N.unhealthy)==null?void 0:S.http_failures)!==0:!1,healthchecksThreshold:((f=s==null?void 0:s.healthchecks.threshold)==null?void 0:f.toString())||"0",activeHealthCheck:{type:((O=s==null?void 0:s.healthchecks.active)==null?void 0:O.type)||"http",httpPath:((P=s==null?void 0:s.healthchecks.active)==null?void 0:P.http_path)||"/",timeout:((W=(Q=s==null?void 0:s.healthchecks.active)==null?void 0:Q.timeout)==null?void 0:W.toString())||"1",concurrency:((T=(U=s==null?void 0:s.healthchecks.active)==null?void 0:U.concurrency)==null?void 0:T.toString())||"10",httpsSni:((A=s==null?void 0:s.healthchecks.active)==null?void 0:A.https_sni)||"",verifySsl:((k=s==null?void 0:s.healthchecks.active)==null?void 0:k.https_verify_certificate)||!1,headers:(H=s==null?void 0:s.healthchecks.active)!=null&&H.headers&&Object.entries(s.healthchecks.active.headers).length>0?Object.entries(s.healthchecks.active.headers).map(([Lt,me])=>({key:Lt,values:me==null?void 0:me.join(", ")})):[{key:"",values:""}],interval:((c=(b=(I=s==null?void 0:s.healthchecks.active)==null?void 0:I.healthy)==null?void 0:b.interval)==null?void 0:c.toString())||"0",successes:((R=(i=(o=s==null?void 0:s.healthchecks.active)==null?void 0:o.healthy)==null?void 0:i.successes)==null?void 0:R.toString())||"5",httpStatuses:(v=(D=s==null?void 0:s.healthchecks.active)==null?void 0:D.healthy)!=null&&v.http_statuses?l(s.healthchecks.active.healthy.http_statuses):we,unhealthyInterval:((se=(G=(L=s==null?void 0:s.healthchecks.active)==null?void 0:L.unhealthy)==null?void 0:G.interval)==null?void 0:se.toString())||"0",httpFailures:((Se=(ae=(re=s==null?void 0:s.healthchecks.active)==null?void 0:re.unhealthy)==null?void 0:ae.http_failures)==null?void 0:Se.toString())||"5",tcpFailures:((Ue=(Ie=(Te=s==null?void 0:s.healthchecks.active)==null?void 0:Te.unhealthy)==null?void 0:Ie.tcp_failures)==null?void 0:Ue.toString())||"5",unhealthyHttpStatuses:(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):Ne,unhealthyTimeouts:((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",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())||"0",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):Ve,timeouts:((je=(ve=(Re=s==null?void 0:s.healthchecks.passive)==null?void 0:Re.unhealthy)==null?void 0:ve.timeouts)==null?void 0:je.toString())||"0",httpFailures:((We=(Qe=(Le=s==null?void 0:s.healthchecks.passive)==null?void 0:Le.unhealthy)==null?void 0:Qe.http_failures)==null?void 0:We.toString())||"5",tcpFailures:((Ge=(ze=(Je=s==null?void 0:s.healthchecks.passive)==null?void 0:Je.unhealthy)==null?void 0:ze.tcp_failures)==null?void 0:Ge.toString())||"5",unhealthyHttpStatuses:(Ye=(Xe=s==null?void 0:s.healthchecks.passive)==null?void 0:Xe.unhealthy)!=null&&Ye.http_statuses?l(s.healthchecks.passive.unhealthy.http_statuses):xe}}};return{isInteger:a,inRange:q,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 J={useI18n:et,useMultiselectCreation:le,useHelpers:ne},Z="/v2/control-planes/{controlPlaneId}/core-entities",ee="/{workspace}",te={list:{konnect:`${Z}/upstreams`,kongManager:`${ee}/upstreams`},form:{konnect:{getServices:`${Z}/services`,getCertificates:`${Z}/certificates`,validate:`${Z}/v1/schemas/json/upstream/validate`,create:`${Z}/upstreams`,edit:`${Z}/upstreams/{id}`},kongManager:{getServices:`${ee}/services`,getCertificates:`${ee}/certificates`,validate:`${ee}/schemas/upstreams/validate`,create:`${ee}/upstreams`,edit:`${ee}/upstreams/{id}`}}},it={class:"kong-ui-entities-upstreams-list"},nt={class:"upstream-name"},ht=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}},emits:["error","copy:success","copy:error","delete:success"],setup(a,{emit:q}){var A;const r=q,l=a,{i18n:{t:n}}=J.useI18n(),y=ye.useRouter(),{axiosInstance:g}=p.useAxios((A=l.config)==null?void 0:A.axiosRequestConfig),B=e.computed(()=>l.config.app!=="kongManager"||!!l.config.disableSorting),x={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}},s=x,h=e.computed(()=>{var H,I;let k=`${l.config.apiBaseUrl}${te.list[l.config.app]}`;return l.config.app==="konnect"?k=k.replace(/{controlPlaneId}/gi,((H=l.config)==null?void 0:H.controlPlaneId)||""):l.config.app==="kongManager"&&(k=k.replace(/\/{workspace}/gi,(I=l.config)!=null&&I.workspace?`/${l.config.workspace}`:"")),k}),C=e.ref(""),u=e.computed(()=>{const k=l.config.app==="konnect"||l.config.isExactMatch;if(k)return{isExactMatch:k,placeholder:n("upstreams.search.placeholder")};const{name:H,slots:I}=x;return{isExactMatch:k,fields:{name:H,slots:I},schema:l.config.filterSchema}}),{fetcher:t,fetcherState:E,fetcherCacheKey:w}=p.useFetcher({...l.config,cacheIdentifier:l.cacheIdentifier},h.value),d=()=>{C.value=""},_=()=>{w.value++},$=e.ref(null),F=(k,H)=>{const I=k.id;if(!H(I)){r("copy:error",{entity:k,field:"id",message:n("upstreams.errors.copy")});return}r("copy:success",{entity:k,field:"id",message:n("upstreams.copy.success",{val:I})})},K=(k,H)=>{const I=JSON.stringify(k);if(!H(I)){r("copy:error",{entity:k,message:n("upstreams.errors.copy")});return}r("copy:success",{entity:k,message:n("upstreams.copy.success_brief")})},M=async k=>{var I;await((I=l.canRetrieve)==null?void 0:I.call(l,k))&&y.push(l.config.getViewRoute(k.id))},m=k=>({label:n("upstreams.actions.view"),to:l.config.getViewRoute(k)}),V=k=>({label:n("upstreams.actions.edit"),to:l.config.getEditRoute(k)}),N=e.ref(void 0),S=e.ref(!1),f=e.ref(!1),O=e.ref(""),P=p.useDeleteUrlBuilder(l.config,h.value),Q=k=>{N.value=k,S.value=!0},W=()=>{S.value=!1},U=async()=>{var k,H,I;if((k=N.value)!=null&&k.id){f.value=!0;try{await g.delete(P(N.value.id)),f.value=!1,S.value=!1,w.value++,r("delete:success",N.value)}catch(b){O.value=((I=(H=b.response)==null?void 0:H.data)==null?void 0:I.message)||b.message||n("upstreams.errors.delete"),r("error",b)}finally{f.value=!1}}};e.watch(E,k=>{var H,I,b;if(k.status===p.FetcherStatus.Error){$.value={title:n("upstreams.errors.general")},(b=(I=(H=k.error)==null?void 0:H.response)==null?void 0:I.data)!=null&&b.message&&($.value.message=k.error.response.data.message),r("error",k.error);return}$.value=null});const T=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()&&(T.value.title=n("upstreams.list.empty_state.title"),T.value.ctaText=n("upstreams.actions.create"))}),(k,H)=>{const I=e.resolveComponent("KButton"),b=e.resolveComponent("KDropdownItem"),c=e.resolveComponent("KClipboardProvider");return e.openBlock(),e.createElementBlock("div",it,[e.createVNode(e.unref(p.EntityBaseTable),{"cache-identifier":a.cacheIdentifier,"disable-sorting":B.value,"empty-state-options":T.value,"enable-entity-actions":"","error-message":$.value,fetcher:e.unref(t),"fetcher-cache-key":e.unref(w),"pagination-type":"offset","preferences-storage-key":"kong-ui-entities-upstreams-list",query:C.value,"table-headers":e.unref(s),onClearSearchInput:d,"onClick:row":H[1]||(H[1]=o=>M(o)),onSort:_},{"toolbar-filter":e.withCtx(()=>[e.createVNode(e.unref(p.EntityFilter),{modelValue:C.value,"onUpdate:modelValue":H[0]||(H[0]=o=>C.value=o),config:u.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.createVNode(e.unref(p.PermissionsWrapper),{"auth-function":()=>a.canCreate()},{default:e.withCtx(()=>[e.createVNode(I,{appearance:"primary","data-testid":"toolbar-add-upstream",size:a.useActionOutside?"medium":"large",to:a.config.createRoute},{default:e.withCtx(()=>[e.createVNode(e.unref(oe.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:o})=>[e.createElementVNode("span",nt,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(b,{"data-testid":"action-entity-copy-id",onClick:R=>F(o,i)},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(n)("upstreams.actions.copy_id")),1)]),_:2},1032,["onClick"])]),_:2},1024),e.createVNode(c,null,{default:e.withCtx(({copyToClipboard:i})=>[e.createVNode(b,{"data-testid":"action-entity-copy-json",onClick:R=>K(o,i)},{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(o)},{default:e.withCtx(()=>[e.createVNode(b,{"data-testid":"action-entity-view","has-divider":"",item:m(o.id)},null,8,["item"])]),_:2},1032,["auth-function"]),e.createVNode(e.unref(p.PermissionsWrapper),{"auth-function":()=>a.canEdit(o)},{default:e.withCtx(()=>[e.createVNode(b,{"data-testid":"action-entity-edit",item:V(o.id)},null,8,["item"])]),_:2},1032,["auth-function"]),e.createVNode(e.unref(p.PermissionsWrapper),{"auth-function":()=>a.canDelete(o)},{default:e.withCtx(()=>[e.createVNode(b,{danger:"","data-testid":"action-entity-delete","has-divider":"",onClick:i=>Q(o)},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(n)("upstreams.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","query","table-headers"]),e.createVNode(e.unref(p.EntityDeleteModal),{"action-pending":f.value,description:e.unref(n)("upstreams.delete.description"),"entity-name":N.value&&(N.value.name||N.value.id),"entity-type":e.unref(p.EntityTypes).Upstream,error:O.value,title:e.unref(n)("upstreams.delete.title"),visible:S.value,onCancel:W,onProceed:U},null,8,["action-pending","description","entity-name","entity-type","error","title","visible"])])}}}),z=(a,q)=>{const r=a.__vccOpts||a;for(const[l,n]of q)r[l]=n;return r},ct=z(ht,[["__scopeId","data-v-a602dfcf"]]),he="/v2/control-planes/{controlPlaneId}/core-entities",ce="/{workspace}",de={list:{konnect:`${he}/upstreams/{upstreamId}/targets`,kongManager:`${ce}/upstreams/{upstreamId}/targets`},form:{konnect:{create:`${he}/upstreams/{upstreamId}/targets`,edit:`${he}/upstreams/{upstreamId}/targets/{id}`,validate:`${he}/v1/schemas/json/target/validate`},kongManager:{create:`${ce}/upstreams/{upstreamId}/targets`,edit:`${ce}/upstreams/{upstreamId}/targets/{id}`,validate:`${ce}/schemas/targets/validate`}}},dt={class:"kong-ui-entities-target-form"},ut={class:"target-form-container"},ft={key:0,class:"target-form-info"},He=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:q}){var M;const r=q,l=a,{i18n:{t:n}}=J.useI18n(),{getMessageFromError:y}=p.useErrors(),{axiosInstance:g}=p.useAxios((M=l.config)==null?void 0:M.axiosRequestConfig),B=e.computed(()=>{var m;return de.form[l.config.app].edit.replace(/{upstreamId}/gi,((m=l.config)==null?void 0:m.upstreamId)||"")}),x=e.computed(()=>l.targetId?p.EntityBaseFormType.Edit:p.EntityBaseFormType.Create),s=e.computed(()=>x.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:""}),C=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(C)&&!!h.fields.target&&!!h.fields.weight&&!t.value),w=m=>{var V;h.fields.target=(m==null?void 0:m.target)||"",h.fields.weight=(m==null?void 0:m.weight)??"",h.fields.tags=((V=m==null?void 0:m.tags)==null?void 0:V.join(", "))||"",Object.assign(C,h.fields)},d=()=>{h.errorMessage="",r("cancel")},_=e.computed(()=>{var V,N;let m=`${l.config.apiBaseUrl}${de.form[l.config.app].validate}`;return l.config.app==="konnect"?m=m.replace(/{controlPlaneId}/gi,((V=l.config)==null?void 0:V.controlPlaneId)||""):l.config.app==="kongManager"&&(m=m.replace(/\/{workspace}/gi,(N=l.config)!=null&&N.workspace?`/${l.config.workspace}`:"")),m=m.replace(/{id}/gi,l.targetId),m}),$=e.computed(()=>{var V,N,S,f;let m=`${l.config.apiBaseUrl}${de.form[l.config.app][x.value]}`;return l.config.app==="konnect"?m=m.replace(/{controlPlaneId}/gi,((V=l.config)==null?void 0:V.controlPlaneId)||"").replace(/{upstreamId}/gi,((N=l.config)==null?void 0:N.upstreamId)||""):l.config.app==="kongManager"&&(m=m.replace(/\/{workspace}/gi,(S=l.config)!=null&&S.workspace?`/${l.config.workspace}`:"").replace(/{upstreamId}/gi,((f=l.config)==null?void 0:f.upstreamId)||"")),m=m.replace(/{id}/gi,l.targetId),m}),F=e.computed(()=>{var m,V,N;return{target:h.fields.target,weight:parseInt(h.fields.weight),tags:(N=(V=(m=h.fields.tags)==null?void 0:m.split(","))==null?void 0:V.map(S=>String(S||"").trim()))==null?void 0:N.filter(S=>S!==""),upstream:{id:l.config.upstreamId}}}),K=async()=>{var m,V;try{h.isReadonly=!0,h.errorMessage="";let N;if(await g.post(_.value,F.value),x.value==="create"?N=await g.post($.value,F.value):x.value==="edit"&&(N=((m=l.config)==null?void 0:m.app)==="konnect"?await g.put($.value,F.value):await g.patch($.value,F.value)),N){const{data:S}=N;h.fields.target=(S==null?void 0:S.name)||"",h.fields.weight=(S==null?void 0:S.weight)??100,h.fields.tags=((V=S==null?void 0:S.tags)==null?void 0:V.join(", "))||"",r("update",S),Object.assign(h.fields,u)}}catch(N){h.errorMessage=y(N),r("error",N)}finally{h.isReadonly=!1}};return e.watch(()=>l.targetId,()=>{Object.assign(h.fields,u)}),(m,V)=>{const N=e.resolveComponent("KInput"),S=e.resolveComponent("KPrompt");return e.openBlock(),e.createBlock(S,{"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:K},{default:e.withCtx(()=>[e.createElementVNode("div",dt,[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":B.value,"form-fields":F.value,"is-readonly":h.isReadonly,onCancel:d,"onFetch:error":V[3]||(V[3]=f=>m.$emit("error",f)),"onFetch:success":w,onLoading:V[4]||(V[4]=f=>m.$emit("loading",f))},{default:e.withCtx(()=>[e.createElementVNode("div",ut,[m.$slots.info?(e.openBlock(),e.createElementBlock("div",ft,[e.renderSlot(m.$slots,"info",{},void 0,!0)])):e.createCommentVNode("",!0),e.createVNode(N,{modelValue:h.fields.target,"onUpdate:modelValue":V[0]||(V[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(N,{modelValue:h.fields.weight,"onUpdate:modelValue":V[1]||(V[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(N,{modelValue:h.fields.tags,"onUpdate:modelValue":V[2]||(V[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-6a64b86e"]]),pt={class:"kong-ui-entities-targets-list"},mt={class:"target-address"},yt=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:q}){var I;const r=q,l=a,{i18n:{t:n}}=J.useI18n(),{axiosInstance:y}=p.useAxios((I=l.config)==null?void 0:I.axiosRequestConfig),g=e.computed(()=>l.config.app!=="kongManager"||!!l.config.disableSorting),x={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 c,o,i,R;let b=`${l.config.apiBaseUrl}${de.list[l.config.app]}`;return l.config.app==="konnect"?b=b.replace(/{controlPlaneId}/gi,((c=l.config)==null?void 0:c.controlPlaneId)||"").replace(/{upstreamId}/gi,((o=l.config)==null?void 0:o.upstreamId)||""):l.config.app==="kongManager"&&(b=b.replace(/\/{workspace}/gi,(i=l.config)!=null&&i.workspace?`/${l.config.workspace}`:"").replace(/{upstreamId}/gi,((R=l.config)==null?void 0:R.upstreamId)||"")),b}),{fetcher:h,fetcherState:C,fetcherCacheKey:u}=p.useFetcher({...l.config,cacheIdentifier:l.cacheIdentifier},s.value),t=()=>{u.value++},E=e.ref(null),w=()=>{T.value=!0},d=(b,c)=>{const o=b.id;if(!c(o)){r("copy:error",{entity:b,field:"id",message:n("targets.errors.copy")});return}r("copy:success",{entity:b,field:"id",message:n("targets.copy.success",{val:o})})},_=(b,c)=>{const o=JSON.stringify(b);if(!c(o)){r("copy:error",{entity:b,message:n("targets.errors.copy")});return}r("copy:success",{entity:b,message:n("targets.copy.success_brief")})},$=b=>{U.value=b,T.value=!0},F=b=>l.config.app==="konnect"?!1:l.config.canMarkHealthy(b),K=b=>l.config.app==="konnect"?!1:l.config.canMarkUnhealthy(b),M=e.ref(void 0),m=e.ref(!1),V=e.ref(!1),N=e.ref(""),S=p.useDeleteUrlBuilder(l.config,s.value),f=b=>{M.value=b,m.value=!0},O=()=>{m.value=!1},P=async()=>{var b,c,o;if((b=M.value)!=null&&b.id){V.value=!0;try{await y.delete(S(M.value.id)),V.value=!1,m.value=!1,u.value++,r("delete:success",M.value)}catch(i){N.value=((o=(c=i.response)==null?void 0:c.data)==null?void 0:o.message)||i.message||n("targets.errors.delete"),r("error",i)}finally{V.value=!1}}};e.watch(C,b=>{var c,o,i;if(b.status===p.FetcherStatus.Error){E.value={title:n("targets.errors.general")},(i=(o=(c=b.error)==null?void 0:c.response)==null?void 0:o.data)!=null&&i.message&&(E.value.message=b.error.response.data.message),r("error",b.error);return}E.value=null});const Q=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()&&(Q.value.title=n("targets.list.empty_state.title"),Q.value.ctaText=n("targets.actions.create"))});const W=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}})),U=e.ref(""),T=e.ref(!1),A=b=>{U.value?r("update:target",b):r("create:target",b),k()},k=()=>{H(),u.value++},H=()=>{T.value=!1,U.value=""};return(b,c)=>{const o=e.resolveComponent("KButton"),i=e.resolveComponent("KDropdownItem"),R=e.resolveComponent("KClipboardProvider");return e.openBlock(),e.createElementBlock("div",pt,[e.createVNode(e.unref(p.EntityBaseTable),{"cache-identifier":a.cacheIdentifier,"disable-sorting":g.value,"empty-state-options":Q.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(x),onEmptyStateCtaClicked:c[1]||(c[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(o,{appearance:"primary","data-testid":"toolbar-new-target",size:a.useActionOutside?"medium":"large",to:l.config.createRoute?l.config.createRoute:void 0,onClick:c[0]||(c[0]=()=>l.config.createRoute?void 0:w())},{default:e.withCtx(()=>[e.createVNode(e.unref(oe.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:D})=>[e.createElementVNode("span",mt,e.toDisplayString(D),1)]),tags:e.withCtx(({rowValue:D})=>[e.createVNode(e.unref(p.TableTags),{"tag-max-width":"auto",tags:D},null,8,["tags"])]),actions:e.withCtx(({row:D})=>[e.createVNode(R,null,{default:e.withCtx(({copyToClipboard:v})=>[e.createVNode(i,{"data-testid":"action-entity-copy-id",onClick:L=>d(D,v)},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(n)("targets.actions.copy_id")),1)]),_:2},1032,["onClick"])]),_:2},1024),e.createVNode(R,null,{default:e.withCtx(({copyToClipboard:v})=>[e.createVNode(i,{"data-testid":"action-entity-copy-json",onClick:L=>_(D,v)},{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(D)},{default:e.withCtx(()=>[e.createVNode(i,{"data-testid":"action-entity-edit","has-divider":"",onClick:v=>$(D.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":()=>F(D)},{default:e.withCtx(()=>[e.createVNode(i,{"data-testid":"action-target-mark-healthy",onClick:v=>r("health-actions:healthy",D)},{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":()=>K(D)},{default:e.withCtx(()=>[e.createVNode(i,{"data-testid":"action-target-mark-unhealthy",onClick:v=>r("health-actions:unhealthy",D)},{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(D)},{default:e.withCtx(()=>[e.createVNode(i,{danger:"","data-testid":"action-entity-delete","has-divider":"",onClick:v=>f(D)},{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":V.value,description:e.unref(n)("targets.delete.description"),"entity-type":e.unref(p.EntityTypes).Target,error:N.value,"need-confirm":!1,title:e.unref(n)("targets.delete.title"),visible:m.value,onCancel:O,onProceed:P},null,8,["action-pending","description","entity-type","error","title","visible"]),e.createVNode(He,{config:W.value,"is-visible":T.value,"target-id":U.value,onCancel:H,onUpdate:A},e.createSlots({_:2},[b.$slots["form-info"]?{name:"info",fn:e.withCtx(()=>[e.renderSlot(b.$slots,"form-info",{},void 0,!0)]),key:"0"}:void 0]),1032,["config","is-visible","target-id"])])}}}),[["__scopeId","data-v-4c844f80"]]),gt={key:1},bt=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:q}){var O,P,Q,W;const{i18nT:r,i18n:{t:l}}=J.useI18n(),n=a,y=q,{debouncedQueryChange:g,loading:B,loadItems:x,results:s,allRecords:h}=p.useDebouncedFilter(n.config,(P=te.form[(O=n.config)==null?void 0:O.app])==null?void 0:P.getServices,"",{fetchedItemsKey:"data",searchKeys:["host"]}),{debouncedQueryChange:C,loading:u,loadItems:t,results:E}=p.useDebouncedFilter(n.config,(W=te.form[(Q=n.config)==null?void 0:Q.app])==null?void 0:W.getCertificates),w=e.ref(""),d=e.computed(()=>{var U;return!!n.name&&!((U=h.value)!=null&&U.some(T=>T.host===n.name))}),_=e.computed(()=>{var T,A,k;const U=d.value&&n.name.includes((T=w.value)==null?void 0:T.toLowerCase());return(k=s.value)==null?void 0:k.map(H=>({label:H.host,value:H.id})).concat(U?[{label:n.name,value:((A=K.value)==null?void 0:A.value)||n.name}]:[])}),$=e.computed(()=>{var U;return(U=E.value)==null?void 0:U.map(T=>({label:T.id,value:T.id}))}),F=e.ref(""),K=e.ref({value:"",label:""}),M=e.computed(()=>{var U,T;return((U=_.value.find(A=>A.value===F.value))==null?void 0:U.label)||((T=K.value)==null?void 0:T.label)}),m=U=>{w.value=U,g(U)},V=U=>{K.value=U},N=()=>{K.value={value:"",label:""}},S=U=>{F.value=U,y("update:name",M.value)},f=e.ref(!1);return e.onBeforeMount(async()=>{var U,T;try{f.value=!0,await x(),n.name&&(F.value=((T=(U=_.value.find(A=>A.label===n.name))==null?void 0:U.value)==null?void 0:T.toString())||n.name),await t()}finally{f.value=!1}}),(U,T)=>{const A=e.resolveComponent("KSkeleton"),k=e.resolveComponent("KSelect"),H=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(A,{key:0,type:"form"})):(e.openBlock(),e.createElementBlock("div",gt,[e.createVNode(k,{class:"name-select margin-bottom-6",clearable:"","data-testid":"upstreams-form-name","enable-filtering":"","enable-item-creation":"","filter-function":()=>!0,items:_.value,label:e.unref(l)("upstreams.form.fields.name.label"),"label-attributes":{tooltipAttributes:{"max-width":"400"}},loading:e.unref(B),"model-value":F.value,placeholder:e.unref(l)("upstreams.form.fields.name.placeholder"),readonly:a.readonly,required:"",width:"100%",onItemAdded:V,onItemRemoved:N,onQueryChange:m,"onUpdate:modelValue":S},{"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(H,{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":T[0]||(T[0]=I=>y("update:host-header",I))},null,8,["label","model-value","readonly"]),e.createVNode(k,{class:"certificate-select margin-bottom-6",clearable:"","data-testid":"upstreams-form-client-certificate","enable-filtering":"","filter-function":()=>!0,items:$.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(C),"onUpdate:modelValue":T[1]||(T[1]=I=>y("update:client-certificate",I))},null,8,["items","label","label-attributes","loading","model-value","placeholder","readonly","onQueryChange"]),e.createVNode(H,{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":T[2]||(T[2]=I=>y("update:tags",I))},null,8,["help","label","label-attributes","model-value","placeholder","readonly"])]))]),_:1},8,["description","title"])}}}),[["__scopeId","data-v-626ed41f"]]),ue={upstreamObject:"https://docs.konghq.com/gateway/latest/admin-api/#upstream-object",loadBalancing:"https://docs.konghq.com/gateway/latest/how-kong-works/load-balancing/#main"},kt={class:"fields-group-title"},Ct={class:"fields-group-text"},_t={class:"fields-group-title"},wt={class:"fields-group-text"},Vt=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:q}){const{i18nT:r,i18n:{t:l}}=J.useI18n(),{inRange:n}=ne(),y=a,g=q,B=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}]),x=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(()=>y.hashOn,(C,u)=>{u==="header"&&C!==u&&g("update:hash-on-header",""),u==="cookie"&&C!==u&&(g("update:hash-on-cookie",""),g("update:hash-on-cookie-path","/")),u==="query_arg"&&C!==u&&g("update:hash-on-query-argument",""),u==="uri_capture"&&C!==u&&g("update:hash-on-uri-capture",""),(C==="cookie"||C==="none")&&(g("update:hash-fallback","none"),g("update:hash-fallback-header",""),g("update:hash-fallback-query-argument",""),g("update:hash-fallback-uri-capture",""))}),e.watch(()=>y.hashFallback,(C,u)=>{u==="header"&&C!==u&&g("update:hash-fallback-header",""),u==="cookie"&&C!==u&&(g("update:hash-on-cookie",""),g("update:hash-on-cookie-path","/")),u==="query_arg"&&C!==u&&g("update:hash-fallback-query-argument",""),u==="uri_capture"&&C!==u&&g("update:hash-fallback-uri-capture","")});const s=e.computed(()=>y.hashOn==="cookie"||y.hashOn==="none"),h=e.computed(()=>y.slots?n(y.slots,fe,pe)?"":l("upstreams.form.errors.in_range"):"");return(C,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(ue).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:B.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]=_=>g("update:algorithm",_))},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(pe),min:e.unref(fe),"model-value":a.slots,readonly:a.readonly,type:"number","onUpdate:modelValue":u[1]||(u[1]=_=>g("update:slots",_))},null,8,["error","error-message","help","label","max","min","model-value","readonly"]),e.createVNode(d,null,{default:e.withCtx(()=>[e.createElementVNode("h5",kt,e.toDisplayString(e.unref(l)("upstreams.form.fields.hash_on.label")),1),e.createElementVNode("p",Ct,e.toDisplayString(e.unref(l)("upstreams.form.fields.hash_on.help")),1),e.createVNode(E,{class:"hash-on-select",items:x.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]=_=>g("update:hash-on",_))},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]=_=>g("update:hash-on-header",_))},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]=_=>g("update:hash-on-cookie",_))},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]=_=>g("update:hash-on-cookie-path",_))},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]=_=>g("update:hash-on-query-argument",_))},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]=_=>g("update:hash-on-uri-capture",_))},null,8,["label","model-value","readonly"])):e.createCommentVNode("",!0)]),_:1}),e.createVNode(d,null,{default:e.withCtx(()=>[e.createElementVNode("h5",_t,e.toDisplayString(e.unref(l)("upstreams.form.fields.hash_fallback.label")),1),e.createElementVNode("p",wt,e.toDisplayString(e.unref(l)("upstreams.form.fields.hash_fallback.help")),1),e.createVNode(E,{class:"hash-fallback-select",disabled:s.value,items:x.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]=_=>g("update:hash-fallback",_))},{"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]=_=>g("update:hash-fallback-header",_))},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]=_=>g("update:hash-on-cookie",_))},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]=_=>g("update:hash-on-cookie-path",_))},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]=_=>g("update:hash-fallback-query-argument",_))},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]=_=>g("update:hash-fallback-uri-capture",_))},null,8,["label","model-value","readonly"])):e.createCommentVNode("",!0)]),_:1})]),_:1},8,["title"])}}}),[["__scopeId","data-v-4f4deb55"]]),Nt={class:"fields-group-title"},xt={class:"fields-group-text"},Ht={class:"fields-group-title"},St={class:"fields-group-text"},Tt=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:q}){const{i18n:{t:r}}=J.useI18n(),l=q;return(n,y)=>{const g=e.resolveComponent("KExternalLink"),B=e.resolveComponent("KInputSwitch"),x=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(g,{"hide-icon":"",href:e.unref(ue).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(x,null,{default:e.withCtx(()=>[e.createElementVNode("h5",Nt,e.toDisplayString(e.unref(r)("upstreams.form.fields.active_health_checks.label")),1),e.createElementVNode("p",xt,e.toDisplayString(e.unref(r)("upstreams.form.fields.active_health_checks.help")),1),e.createVNode(B,{class:"active-health-switch","data-testid":"active-health-switch",disabled:a.readonly,"model-value":a.activeHealthSwitch,onChange:y[0]||(y[0]=h=>l("update:active-health-switch",h))},null,8,["disabled","model-value"])]),_:1}),e.createVNode(x,null,{default:e.withCtx(()=>[e.createElementVNode("h5",Ht,e.toDisplayString(e.unref(r)("upstreams.form.fields.passive_health_checks.label")),1),e.createElementVNode("p",St,e.toDisplayString(e.unref(r)("upstreams.form.fields.passive_health_checks.help")),1),e.createVNode(B,{class:"passive-health-switch","data-testid":"passive-health-switch",disabled:a.readonly,"model-value":a.passiveHealthSwitch,onChange:y[1]||(y[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":y[2]||(y[2]=h=>l("update:healthchecks-threshold",h))},null,8,["label","max","min","model-value","readonly"])]),_:1},8,["title"])}}}),[["__scopeId","data-v-c2ff95ff"]]),It="#d60027",Ut={key:2},Ft={class:"fields-group-title"},qt={class:"fields-group-text"},Et={class:"fields-group-title"},Bt={class:"fields-group-text"},Ot=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},interval:{type:String,required:!0},successes:{type:String,required:!0},httpStatuses:{type:Array,required:!0},unhealthyInterval:{type:String,required:!0},httpFailures:{type:String,required:!0},tcpFailures:{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:interval","update:successes","update:http-statuses","update:unhealthy-interval","update:http-failures","update:tcp-failures","update:unhealthy-http-statuses","update:unhealthy-timeouts"],setup(a,{emit:q}){const{i18n:{t:r}}=J.useI18n(),{objectsAreEqual:l}=ne(),n=a,y=q,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(()=>n.type==="https"||n.type==="grpcs"),x=e.computed(()=>n.type==="tcp"),{trackNewItems:s}=le({replaceId:!0}),{trackNewItems:h}=le({replaceId:!0});e.watch(()=>n.type,(w,d)=>{d==="tcp"&&w!==d&&y("update:tcp-failures","5"),(d==="https"||d==="grpcs")&&w!==d&&(y("update:https-sni",""),y("update:verify-ssl",!1)),d!=="tcp"&&w==="tcp"&&(y("update:http-path","/"),y("update:http-statuses",we),y("update:unhealthy-http-statuses",Ne))});const C=e.ref([{key:"",values:""}]);e.watch(()=>n.headers,w=>{l(C.value,w)||(C.value=[...w])},{immediate:!0,deep:!0});const u=()=>{y("update:headers",C.value)},t=()=>{C.value.push({key:"",values:""}),u()},E=w=>{w===0&&C.value.length===1?C.value[0]={key:"",values:""}:C.value.splice(w,1),u()};return(w,d)=>{const _=e.resolveComponent("KExternalLink"),$=e.resolveComponent("KSelect"),F=e.resolveComponent("KInput"),K=e.resolveComponent("KCheckbox"),M=e.resolveComponent("KLabel"),m=e.resolveComponent("KButton"),V=e.resolveComponent("KMultiselect"),N=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(_,{"hide-icon":"",href:e.unref(ue).upstreamObject},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(r)("upstreams.form.buttons.view_documentation")),1)]),_:1},8,["href"])])]),default:e.withCtx(()=>{var S;return[e.createVNode($,{class:"active-healthcheck-type-select",items:g.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=>y("update:type",f))},null,8,["items","label","model-value","readonly"]),x.value?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(F,{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=>y("update:http-path",f))},null,8,["label","model-value","readonly"])),e.createVNode(F,{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=>y("update:timeout",f))},null,8,["label","max","min","model-value","readonly"]),e.createVNode(F,{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=>y("update:concurrency",f))},null,8,["label","max","min","model-value","readonly"]),B.value?(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createVNode(F,{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=>y("update:https-sni",f))},null,8,["label","model-value","readonly"]),e.createVNode(K,{"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=>y("update:verify-ssl",f))},null,8,["disabled","label","model-value"])],64)):e.createCommentVNode("",!0),((S=a.config)==null?void 0:S.app)==="kongManager"?(e.openBlock(),e.createElementBlock("div",Ut,[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(C.value,(f,O)=>(e.openBlock(),e.createElementBlock("div",{key:`${f.header}_${O}`,class:e.normalizeClass(["headers-row",{"margin-top-6":O>0}])},[e.createVNode(F,{modelValue:C.value[O].key,"onUpdate:modelValue":P=>C.value[O].key=P,autocomplete:"off","data-testid":`active-healthcheck-headers-header-${O+1}`,readonly:a.readonly,type:"text",onBlur:u},null,8,["modelValue","onUpdate:modelValue","data-testid","readonly"]),e.createVNode(F,{modelValue:C.value[O].values,"onUpdate:modelValue":P=>C.value[O].values=P,autocomplete:"off","data-testid":`active-healthcheck-headers-value-${O+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:C.value.length===1,icon:"",onClick:P=>E(O)},{default:e.withCtx(()=>[e.createVNode(e.unref(oe.TrashIcon),{class:"delete-item",color:C.value.length>1?e.unref(It):void 0},null,8,["color"])]),_:2},1032,["disabled","onClick"]),C.value&&O===C.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(oe.AddIcon))]),_:1})):e.createCommentVNode("",!0)],2))),128))])])):e.createCommentVNode("",!0),e.createVNode(N,null,{default:e.withCtx(()=>[e.createElementVNode("h5",Ft,e.toDisplayString(e.unref(r)("upstreams.form.healthy.label")),1),e.createElementVNode("p",qt,e.toDisplayString(e.unref(r)("upstreams.form.healthy.help")),1),e.createVNode(F,{autocomplete:"off",class:"margin-bottom-6","data-testid":"active-healthcheck-interval",help:e.unref(r)("upstreams.form.fields.interval.help"),label:e.unref(r)("upstreams.form.fields.interval.label"),max:e.unref(_e),min:e.unref(Ce),"model-value":a.interval,readonly:a.readonly,type:"number","onUpdate:modelValue":d[6]||(d[6]=f=>y("update:interval",f))},null,8,["help","label","max","min","model-value","readonly"]),e.createVNode(F,{autocomplete:"off","data-testid":"active-healthcheck-successes",label:e.unref(r)("upstreams.form.fields.successes.label"),max:e.unref(Y),min:e.unref(X),"model-value":a.successes,readonly:a.readonly,type:"number","onUpdate:modelValue":d[7]||(d[7]=f=>y("update:successes",f))},null,8,["label","max","min","model-value","readonly"]),x.value?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(V,{key:0,autocomplete:"off",class:"margin-top-6 active-healthcheck-http-statuses","enable-item-creation":"",items:e.unref(ie),label:e.unref(r)("upstreams.form.fields.http_statuses.label"),"model-value":a.httpStatuses,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=>y("update:http-statuses",f))},null,8,["items","label","model-value","readonly"]))]),_:1}),e.createVNode(N,null,{default:e.withCtx(()=>[e.createElementVNode("h5",Et,e.toDisplayString(e.unref(r)("upstreams.form.unhealthy.label")),1),e.createElementVNode("p",Bt,e.toDisplayString(e.unref(r)("upstreams.form.unhealthy.help")),1),e.createVNode(F,{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(_e),min:e.unref(Ce),"model-value":a.unhealthyInterval,readonly:a.readonly,type:"number","onUpdate:modelValue":d[11]||(d[11]=f=>y("update:unhealthy-interval",f))},null,8,["help","label","max","min","model-value","readonly"]),e.createVNode(F,{autocomplete:"off",class:"margin-bottom-6","data-testid":"active-healthcheck-tcp-failures",label:e.unref(r)("upstreams.form.fields.tcp_failures.label"),max:e.unref(Y),min:e.unref(X),"model-value":a.tcpFailures,readonly:a.readonly,type:"number","onUpdate:modelValue":d[12]||(d[12]=f=>y("update:tcp-failures",f))},null,8,["label","max","min","model-value","readonly"]),x.value?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(F,{key:0,autocomplete:"off",class:"margin-bottom-6","data-testid":"active-healthcheck-http-failures",label:e.unref(r)("upstreams.form.fields.http_failures.label"),max:e.unref(Y),min:e.unref(X),"model-value":a.httpFailures,readonly:a.readonly,type:"number","onUpdate:modelValue":d[13]||(d[13]=f=>y("update:http-failures",f))},null,8,["label","max","min","model-value","readonly"])),x.value?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(V,{key:1,autocomplete:"off",class:"margin-bottom-6 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=>y("update:unhealthy-http-statuses",f))},null,8,["items","label","model-value","readonly"])),e.createVNode(F,{autocomplete:"off","data-testid":"active-healthcheck-unhealthy-timeouts",label:e.unref(r)("upstreams.form.fields.timeouts.label"),max:e.unref(ke),min:e.unref(be),"model-value":a.unhealthyTimeouts,readonly:a.readonly,type:"number","onUpdate:modelValue":d[17]||(d[17]=f=>y("update:unhealthy-timeouts",f))},null,8,["label","max","min","model-value","readonly"])]),_:1})]}),_:1},8,["title"])}}}),[["__scopeId","data-v-c6b24c5a"]]),Dt={class:"fields-group-title"},$t={class:"fields-group-text"},Pt={class:"fields-group-title"},Mt={class:"fields-group-text"},At=z(e.defineComponent({__name:"UpstreamsFormPassiveHealthCheck",props:{type:{type:String,required:!0},successes:{type:String,required:!0},httpStatuses:{type:Array,required:!0},timeouts:{type:String,required:!0},httpFailures:{type:String,required:!0},unhealthyHttpStatuses:{type:Array,required:!0},tcpFailures:{type:String,required:!0},readonly:{type:Boolean,required:!1,default:!1}},emits:["update:type","update:successes","update:http-statuses","update:timeouts","update:http-failures","update:unhealthy-http-statuses","update:tcp-failures"],setup(a,{emit:q}){const{i18n:{t:r}}=J.useI18n(),l=a,n=q,y=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}]),g=e.computed(()=>l.type==="tcp"),{trackNewItems:B}=le({replaceId:!0}),{trackNewItems:x}=le({replaceId:!0});return e.watch(()=>l.type,(s,h)=>{h==="tcp"&&s!==h&&n("update:tcp-failures","5"),h!=="tcp"&&s==="tcp"&&(n("update:http-statuses",Ve),n("update:unhealthy-http-statuses",xe))}),(s,h)=>{const C=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(C,{"hide-icon":"",href:e.unref(ue).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:y.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",Dt,e.toDisplayString(e.unref(r)("upstreams.form.passive_healthy.label")),1),e.createElementVNode("p",$t,e.toDisplayString(e.unref(r)("upstreams.form.passive_healthy.help")),1),e.createVNode(t,{autocomplete:"off","data-testid":"passive-healthcheck-successes",label:e.unref(r)("upstreams.form.fields.successes.label"),max:e.unref(Y),min:e.unref(X),"model-value":a.successes,readonly:a.readonly,type:"number","onUpdate:modelValue":h[1]||(h[1]=d=>n("update:successes",d))},null,8,["label","max","min","model-value","readonly"]),g.value?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(E,{key:0,class:"margin-top-6 passive-healthcheck-http-statuses","enable-item-creation":"",items:e.unref(ie),label:e.unref(r)("upstreams.form.fields.http_statuses.label"),"model-value":a.httpStatuses,readonly:a.readonly,width:"100%",onItemAdded:h[2]||(h[2]=d=>e.unref(B)(d,!0)),onItemRemoved:h[3]||(h[3]=d=>e.unref(B)(d,!1)),"onUpdate:modelValue":h[4]||(h[4]=d=>n("update:http-statuses",d))},null,8,["items","label","model-value","readonly"]))]),_:1}),e.createVNode(w,null,{default:e.withCtx(()=>[e.createElementVNode("h5",Pt,e.toDisplayString(e.unref(r)("upstreams.form.passive_unhealthy.label")),1),e.createElementVNode("p",Mt,e.toDisplayString(e.unref(r)("upstreams.form.passive_unhealthy.help")),1),e.createVNode(t,{autocomplete:"off","data-testid":"passive-healthcheck-timeouts",label:e.unref(r)("upstreams.form.fields.timeouts.label"),max:e.unref(ke),min:e.unref(be),"model-value":a.timeouts,readonly:a.readonly,type:"number","onUpdate:modelValue":h[5]||(h[5]=d=>n("update:timeouts",d))},null,8,["label","max","min","model-value","readonly"]),e.createVNode(t,{autocomplete:"off",class:"margin-top-6","data-testid":"passive-healthcheck-tcp-failures",label:e.unref(r)("upstreams.form.fields.tcp_failures.label"),max:e.unref(Y),min:e.unref(X),"model-value":a.tcpFailures,readonly:a.readonly,type:"number","onUpdate:modelValue":h[6]||(h[6]=d=>n("update:tcp-failures",d))},null,8,["label","max","min","model-value","readonly"]),g.value?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(t,{key:0,autocomplete:"off",class:"margin-top-6","data-testid":"passive-healthcheck-http-failures",label:e.unref(r)("upstreams.form.fields.http_failures.label"),max:e.unref(Y),min:e.unref(X),"model-value":a.httpFailures,readonly:a.readonly,type:"number","onUpdate:modelValue":h[7]||(h[7]=d=>n("update:http-failures",d))},null,8,["label","max","min","model-value","readonly"])),g.value?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(E,{key:1,autocomplete:"off",class:"margin-top-6 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(x)(d,!0)),onItemRemoved:h[9]||(h[9]=d=>e.unref(x)(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-4ab7f60e"]]),Kt={class:"kong-ui-entities-upstreams-form"},Rt=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:q}){var b;const r=a,l=q,{inRange:n,stringToNumberArray:y,upstreamsResponseToFields:g,getDefaultUpstreamFields:B,objectsAreEqual:x,cloneDeep:s}=ne(),{axiosInstance:h}=p.useAxios((b=r.config)==null?void 0:b.axiosRequestConfig),{getMessageFromError:C}=p.useErrors(),u=ye.useRouter(),t=e.reactive({fields:B(),readonly:!1,errorMessage:""}),E=e.reactive(B()),w=e.computed(()=>!x(t.fields,E)),d=c=>{t.fields.activeHealthCheck.interval=c?"5":"0",t.fields.activeHealthCheck.successes=c?"5":"0",t.fields.activeHealthCheck.httpFailures=c?"5":"0",t.fields.activeHealthCheck.unhealthyInterval=c?"5":"0",t.fields.activeHealthCheck.tcpFailures=c?"5":"0"},_=c=>{t.fields.passiveHealthCheck.timeouts=c?"5":"0",t.fields.passiveHealthCheck.successes=c?"80":"0",t.fields.passiveHealthCheck.tcpFailures=c?"5":"0",t.fields.passiveHealthCheck.httpFailures=c?"5":"0"},$=e.computed(()=>t.fields.slots?n(t.fields.slots,fe,pe):!0),F=e.computed(()=>t.fields.hashOn==="header"?!!t.fields.hashOnHeader:!0),K=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),V=e.computed(()=>t.fields.hashOn==="uri_capture"?!!t.fields.hashOnUriCapture:!0),N=e.computed(()=>t.fields.hashFallback==="header"?!!t.fields.hashFallbackHeader:!0),S=e.computed(()=>t.fields.hashFallback==="query_arg"?!!t.fields.hashFallbackQueryArgument:!0),f=e.computed(()=>t.fields.hashFallback==="uri_capture"?!!t.fields.hashFallbackUriCapture:!0),O=e.computed(()=>!!t.fields.name&&$.value&&F.value&&K.value&&M.value&&m.value&&V.value&&N.value&&S.value&&f.value),P=e.computed(()=>r.upstreamId?p.EntityBaseFormType.Edit:p.EntityBaseFormType.Create),Q=e.computed(()=>{var c,o;return(o=te.form[(c=r.config)==null?void 0:c.app])==null?void 0:o.edit}),W=c=>{Object.assign(t.fields,g(c)),Object.assign(E,s(t.fields))},U=()=>{var c;u.push(((c=r.config)==null?void 0:c.cancelRoute)||{name:"upstreams-list"})},T=c=>{l("loading",c)},A=c=>{l("error",c)},k=e.computed(()=>{var o,i,R,D,v;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:{}};return t.fields.hostHeader&&(c.host_header=t.fields.hostHeader),t.fields.clientCertificate&&(c.client_certificate={id:t.fields.clientCertificate}),t.fields.healthchecksThreshold&&(c.healthchecks.threshold=Number(t.fields.healthchecksThreshold)),t.fields.tags&&(c.tags=(i=(o=t.fields.tags.split(","))==null?void 0:o.map(L=>String(L||"").trim()))==null?void 0:i.filter(L=>L!=="")),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),t.fields.activeHealthSwitch?(c.healthchecks.active={type:t.fields.activeHealthCheck.type,healthy:{},unhealthy:{}},t.fields.activeHealthCheck.timeout&&(c.healthchecks.active.timeout=Number(t.fields.activeHealthCheck.timeout)),t.fields.activeHealthCheck.concurrency&&(c.healthchecks.active.concurrency=Number(t.fields.activeHealthCheck.concurrency)),t.fields.activeHealthCheck.type!=="tcp"&&t.fields.activeHealthCheck.httpPath&&(c.healthchecks.active.http_path=t.fields.activeHealthCheck.httpPath),((R=r.config)==null?void 0:R.app)==="kongManager"&&(t.fields.activeHealthCheck.headers.length===0?c.healthchecks.active.headers=[]:c.healthchecks.active.headers=t.fields.activeHealthCheck.headers.reduce((L,G)=>{var se,re;return G.key?{...L,[G.key]:(re=(se=G.values.split(","))==null?void 0:se.map(ae=>String(ae||"").trim()))==null?void 0:re.filter(ae=>ae!=="")}:{...L}},{})),(t.fields.activeHealthCheck.type==="https"||t.fields.activeHealthCheck.type==="grpcs")&&t.fields.activeHealthCheck.httpsSni&&(c.healthchecks.active.https_sni=t.fields.activeHealthCheck.httpsSni),(t.fields.activeHealthCheck.type==="https"||t.fields.activeHealthCheck.type==="grpcs")&&(c.healthchecks.active.https_verify_certificate=t.fields.activeHealthCheck.verifySsl),t.fields.activeHealthCheck.interval&&(c.healthchecks.active.healthy.interval=Number(t.fields.activeHealthCheck.interval)),t.fields.activeHealthCheck.successes&&(c.healthchecks.active.healthy.successes=Number(t.fields.activeHealthCheck.successes)),t.fields.activeHealthCheck.type!=="tcp"&&t.fields.activeHealthCheck.httpStatuses&&(c.healthchecks.active.healthy.http_statuses=y(t.fields.activeHealthCheck.httpStatuses)),t.fields.activeHealthCheck.unhealthyInterval&&(c.healthchecks.active.unhealthy.interval=Number(t.fields.activeHealthCheck.unhealthyInterval)),t.fields.activeHealthCheck.unhealthyTimeouts&&(c.healthchecks.active.unhealthy.timeouts=Number(t.fields.activeHealthCheck.unhealthyTimeouts)),t.fields.activeHealthCheck.type!=="tcp"&&t.fields.activeHealthCheck.unhealthyHttpStatuses&&(c.healthchecks.active.unhealthy.http_statuses=y(t.fields.activeHealthCheck.unhealthyHttpStatuses)),t.fields.activeHealthCheck.type!=="tcp"&&t.fields.activeHealthCheck.httpFailures&&(c.healthchecks.active.unhealthy.http_failures=Number(t.fields.activeHealthCheck.httpFailures)),t.fields.activeHealthCheck.tcpFailures&&(c.healthchecks.active.unhealthy.tcp_failures=Number(t.fields.activeHealthCheck.tcpFailures))):((D=r.config)==null?void 0:D.app)==="kongManager"&&P.value===p.EntityBaseFormType.Edit&&(c.healthchecks.active={type:t.fields.activeHealthCheck.type,headers:{},healthy:{interval:0,successes:0},unhealthy:{interval:0,http_failures:0,tcp_failures:0}}),t.fields.passiveHealthSwitch?(c.healthchecks.passive={type:t.fields.passiveHealthCheck.type,healthy:{},unhealthy:{}},t.fields.passiveHealthCheck.successes&&(c.healthchecks.passive.healthy.successes=Number(t.fields.passiveHealthCheck.successes)),t.fields.passiveHealthCheck.type!=="tcp"&&t.fields.passiveHealthCheck.httpStatuses&&(c.healthchecks.passive.healthy.http_statuses=y(t.fields.passiveHealthCheck.httpStatuses)),t.fields.passiveHealthCheck.timeouts&&(c.healthchecks.passive.unhealthy.timeouts=Number(t.fields.passiveHealthCheck.timeouts)),t.fields.passiveHealthCheck.type!=="tcp"&&t.fields.passiveHealthCheck.unhealthyHttpStatuses&&(c.healthchecks.passive.unhealthy.http_statuses=y(t.fields.passiveHealthCheck.unhealthyHttpStatuses)),t.fields.passiveHealthCheck.type!=="tcp"&&t.fields.passiveHealthCheck.httpFailures&&(c.healthchecks.passive.unhealthy.http_failures=Number(t.fields.passiveHealthCheck.httpFailures)),t.fields.passiveHealthCheck.tcpFailures&&(c.healthchecks.passive.unhealthy.tcp_failures=Number(t.fields.passiveHealthCheck.tcpFailures))):((v=r.config)==null?void 0:v.app)==="kongManager"&&P.value===p.EntityBaseFormType.Edit&&(c.healthchecks.passive={type:t.fields.passiveHealthCheck.type,healthy:{successes:0},unhealthy:{timeouts:0,tcp_failures:0,http_failures:0}}),c}),H=c=>{var i,R,D,v,L,G;let o=`${(i=r.config)==null?void 0:i.apiBaseUrl}${te.form[(R=r.config)==null?void 0:R.app][c]}`;return((D=r.config)==null?void 0:D.app)==="konnect"?o=o.replace(/{controlPlaneId}/gi,((v=r.config)==null?void 0:v.controlPlaneId)||""):((L=r.config)==null?void 0:L.app)==="kongManager"&&(o=o.replace(/\/{workspace}/gi,(G=r.config)!=null&&G.workspace?`/${r.config.workspace}`:"")),o=o.replace(/{id}/gi,r.upstreamId),o},I=async()=>{var c;try{t.readonly=!0,await h.post(H("validate"),k.value);let o;P.value===p.EntityBaseFormType.Create?o=await h.post(H("create"),k.value):P.value===p.EntityBaseFormType.Edit&&(o=((c=r.config)==null?void 0:c.app)==="konnect"?await h.put(H("edit"),k.value):await h.patch(H("edit"),k.value)),l("update",o==null?void 0:o.data)}catch(o){t.errorMessage=C(o),l("error",o)}finally{t.readonly=!1}};return(c,o)=>(e.openBlock(),e.createElementBlock("div",Kt,[e.createVNode(e.unref(p.EntityBaseForm),{"can-submit":O.value&&w.value,config:a.config,"edit-id":a.upstreamId,"entity-type":e.unref(p.SupportedEntityType).Upstream,"error-message":t.errorMessage,"fetch-url":Q.value,"form-fields":k.value,"is-readonly":t.readonly,onCancel:U,"onFetch:error":A,"onFetch:success":W,onLoading:T,onSubmit:I},{default:e.withCtx(()=>[e.createVNode(bt,{"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(Vt,{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(Tt,{"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),_],readonly:t.readonly},null,8,["active-health-switch","healthchecks-threshold","passive-health-switch","readonly"]),t.fields.activeHealthSwitch?(e.openBlock(),e.createBlock(Ot,{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),"http-failures":t.fields.activeHealthCheck.httpFailures,"onUpdate:httpFailures":o[21]||(o[21]=i=>t.fields.activeHealthCheck.httpFailures=i),"http-path":t.fields.activeHealthCheck.httpPath,"onUpdate:httpPath":o[22]||(o[22]=i=>t.fields.activeHealthCheck.httpPath=i),"http-statuses":t.fields.activeHealthCheck.httpStatuses,"onUpdate:httpStatuses":o[23]||(o[23]=i=>t.fields.activeHealthCheck.httpStatuses=i),"https-sni":t.fields.activeHealthCheck.httpsSni,"onUpdate:httpsSni":o[24]||(o[24]=i=>t.fields.activeHealthCheck.httpsSni=i),interval:t.fields.activeHealthCheck.interval,"onUpdate:interval":o[25]||(o[25]=i=>t.fields.activeHealthCheck.interval=i),successes:t.fields.activeHealthCheck.successes,"onUpdate:successes":o[26]||(o[26]=i=>t.fields.activeHealthCheck.successes=i),"tcp-failures":t.fields.activeHealthCheck.tcpFailures,"onUpdate:tcpFailures":o[27]||(o[27]=i=>t.fields.activeHealthCheck.tcpFailures=i),timeout:t.fields.activeHealthCheck.timeout,"onUpdate:timeout":o[28]||(o[28]=i=>t.fields.activeHealthCheck.timeout=i),type:t.fields.activeHealthCheck.type,"onUpdate:type":o[29]||(o[29]=i=>t.fields.activeHealthCheck.type=i),"unhealthy-http-statuses":t.fields.activeHealthCheck.unhealthyHttpStatuses,"onUpdate:unhealthyHttpStatuses":o[30]||(o[30]=i=>t.fields.activeHealthCheck.unhealthyHttpStatuses=i),"unhealthy-interval":t.fields.activeHealthCheck.unhealthyInterval,"onUpdate:unhealthyInterval":o[31]||(o[31]=i=>t.fields.activeHealthCheck.unhealthyInterval=i),"unhealthy-timeouts":t.fields.activeHealthCheck.unhealthyTimeouts,"onUpdate:unhealthyTimeouts":o[32]||(o[32]=i=>t.fields.activeHealthCheck.unhealthyTimeouts=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","http-failures","http-path","http-statuses","https-sni","interval","successes","tcp-failures","timeout","type","unhealthy-http-statuses","unhealthy-interval","unhealthy-timeouts","verify-ssl","config","readonly"])):e.createCommentVNode("",!0),t.fields.passiveHealthSwitch?(e.openBlock(),e.createBlock(At,{key:1,"http-failures":t.fields.passiveHealthCheck.httpFailures,"onUpdate:httpFailures":o[34]||(o[34]=i=>t.fields.passiveHealthCheck.httpFailures=i),"http-statuses":t.fields.passiveHealthCheck.httpStatuses,"onUpdate:httpStatuses":o[35]||(o[35]=i=>t.fields.passiveHealthCheck.httpStatuses=i),successes:t.fields.passiveHealthCheck.successes,"onUpdate:successes":o[36]||(o[36]=i=>t.fields.passiveHealthCheck.successes=i),"tcp-failures":t.fields.passiveHealthCheck.tcpFailures,"onUpdate:tcpFailures":o[37]||(o[37]=i=>t.fields.passiveHealthCheck.tcpFailures=i),timeouts:t.fields.passiveHealthCheck.timeouts,"onUpdate:timeouts":o[38]||(o[38]=i=>t.fields.passiveHealthCheck.timeouts=i),type:t.fields.passiveHealthCheck.type,"onUpdate:type":o[39]||(o[39]=i=>t.fields.passiveHealthCheck.type=i),"unhealthy-http-statuses":t.fields.passiveHealthCheck.unhealthyHttpStatuses,"onUpdate:unhealthyHttpStatuses":o[40]||(o[40]=i=>t.fields.passiveHealthCheck.unhealthyHttpStatuses=i),readonly:t.readonly},null,8,["http-failures","http-statuses","successes","tcp-failures","timeouts","type","unhealthy-http-statuses","readonly"])):e.createCommentVNode("",!0)]),_:1},8,["can-submit","config","edit-id","entity-type","error-message","fetch-url","form-fields","is-readonly"])]))}}),[["__scopeId","data-v-0669debc"]]),vt={"data-testid":"client_certificate-plain-text"},jt=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 q=a,{i18n:{t:r},i18nT:l}=J.useI18n(),{getPropValue:n}=p.useHelpers(),y=e.computed(()=>te.form[q.config.app].edit),g=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(B,x)=>(e.openBlock(),e.createElementBlock("div",null,[e.createVNode(e.unref(p.EntityBaseConfigCard),{config:a.config,"config-card-doc":a.configCardDoc,"config-schema":g.value,"entity-type":e.unref(p.SupportedEntityType).Upstream,"fetch-url":y.value,"hide-title":a.hideTitle,"onFetch:error":x[0]||(x[0]=s=>B.$emit("fetch:error",s)),"onFetch:success":x[1]||(x[1]=s=>B.$emit("fetch:success",s)),onLoading:x[2]||(x[2]=s=>B.$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(()=>x[3]||(x[3]=[e.createElementVNode("code",null,"10",-1)])),max:e.withCtx(()=>x[4]||(x[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",vt,[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"])]))}});j.TargetForm=He,j.TargetsList=yt,j.UpstreamsConfigCard=jt,j.UpstreamsForm=Rt,j.UpstreamsList=ct,Object.defineProperty(j,Symbol.toStringTag,{value:"Module"})});
|
package/dist/style.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
.config-card-fieldset[data-v-68ca83ec]{border:solid 1px #e0e4ea;border-radius:4px;margin-bottom:8px;margin-top:4px}.config-card-fieldset-title[data-v-68ca83ec]{font-size:14px;padding:0 8px;width:auto}fieldset.config-card-fieldset .config-card-details-row{width:unset}.config-card-json-item .config-card-details-row,fieldset.config-card-fieldset .config-card-details-row{margin:0 16px}.config-card-json-item .config-card-details-row:last-of-type,fieldset.config-card-fieldset .config-card-details-row:last-of-type{border-bottom:none}[data-v-c96811e5] .k-button.navigation-button{font-size:14px;font-weight:400}.config-card-details-row[data-v-761f7e64]{align-items:center;border-bottom:var(--3ccdd5d2);box-sizing:border-box;display:var(--4b1da305);padding:16px 16px 16px 0;width:100%}.config-card-details-row .config-card-details-label[data-v-761f7e64]{box-sizing:border-box;padding-right:16px;width:var(--cd20788a)}.config-card-details-row .config-card-details-label label[data-v-761f7e64]{color:#3a3f51;display:inline-flex;max-width:100%}.config-card-details-row .config-card-details-label label .label-content[data-v-761f7e64]{line-height:initial;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.config-card-details-row .config-card-details-label label .k-popover[data-v-761f7e64]{min-width:0}.config-card-details-row .config-card-details-value[data-v-761f7e64]{box-sizing:border-box;width:var(--cd1becd4)}.config-card-details-row .config-card-details-value .truncated[data-v-761f7e64]{display:inline-block;line-height:initial;max-width:20ch;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.config-card-details-row .config-card-details-value span.attrs-data-text[data-v-761f7e64]{overflow-wrap:anywhere}.config-card-details-row .config-card-details-value .copy-uuid-array[data-v-761f7e64] .k-copy:not(:last-of-type){margin-bottom:8px}.config-card-details-row .config-card-details-value .method-badge-array[data-v-761f7e64]{display:flex;flex-wrap:wrap;row-gap:10px}.config-card-details-row .config-badge[data-v-761f7e64]{margin-right:4px}.config-card-details-row[data-v-761f7e64] .k-label{margin-bottom:0}.config-card-details-row[data-v-761f7e64] .k-label .kong-icon-infoFilled{display:flex}.config-card-details-row[data-v-761f7e64] .config-card-details-row{width:auto}.json-content.k-code-block{border-top-left-radius:0;border-top-right-radius:0}.json-endpoint{align-items:baseline;background-color:#000933;border-bottom:1px solid rgba(255,255,255,.2);border-top-left-radius:8px;border-top-right-radius:8px;display:flex;padding:8px 0 8px 12px}.json-endpoint .k-code-block{flex:auto;z-index:2}.json-endpoint .k-code-block .code-block-content{padding-bottom:0;padding-top:0}.json-endpoint .k-code-block .code-block-secondary-actions{margin-top:0!important}.json-endpoint code{direction:rtl;max-width:var(--454fa8c4);overflow:hidden!important;text-align:left;text-overflow:ellipsis;white-space:nowrap}.config-card-prop-section-title[data-v-d15be7fe]{color:#000933;font-size:16px;font-weight:600;margin-bottom:16px;margin-top:48px}.kong-ui-entity-base-config-card .config-card-actions[data-v-7ef5c755]{align-items:center;display:flex}.kong-ui-entity-base-config-card .config-card-actions .config-format-select-label[data-v-7ef5c755]{margin-bottom:0;margin-right:8px}.kong-ui-entity-base-config-card .config-card-prop-section-title[data-v-7ef5c755]{color:#000933;font-size:16px;font-weight:600;margin-bottom:16px;margin-top:48px}.kong-ui-entity-base-config-card[data-v-7ef5c755] .config-card-details-row:last-of-type{border-bottom:none}.kong-ui-entity-base-config-card .book-icon[data-v-7ef5c755]{margin-left:8px;padding:0}.kong-ui-entity-base-form[data-v-6210a67a]{box-sizing:border-box;max-width:1536px;width:100%}.kong-ui-entity-base-form .form-actions[data-v-6210a67a]{align-items:center;display:flex;justify-content:flex-end;margin-top:24px}.kong-ui-entity-base-form .form-actions[data-v-6210a67a] .k-button:last-of-type,.kong-ui-entity-base-form .form-actions[data-v-6210a67a] .k-button:nth-last-of-type(2){margin-left:16px}.kong-ui-entity-base-form[data-v-6210a67a] .k-slideout-title{color:#000933!important;font-size:24px!important;font-weight:700!important;line-height:32px!important;margin-bottom:16px!important}.kong-ui-entity-base-form[data-v-6210a67a] .k-card.content-card{padding:0 16px!important}.kong-ui-entity-base-form[data-v-6210a67a] .tab-item>div.tab-link.has-panels{color:#6c7489!important;font-size:14px!important;font-weight:700!important;line-height:24px!important}.kong-ui-entity-base-form[data-v-6210a67a] .tab-item.active>div.tab-link.has-panels{color:#000933!important;font-weight:600!important}.content-wrapper[data-v-b252463e] .k-tooltip{word-break:break-all}.kong-ui-entity-base-table .toolbar-container[data-v-0998625e]{align-items:center;display:flex;width:100%}.kong-ui-entity-base-table .toolbar-button-container[data-v-0998625e]{margin-left:auto}.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-60e3ef7c]{align-items:center;display:flex}.kong-ui-public-entity-link .deleted-entity[data-v-60e3ef7c]{font-style:italic}.kong-ui-public-entity-link .entity-link[data-v-60e3ef7c]{display:flex}.kong-ui-public-entity-link .entity-link[data-v-60e3ef7c] .external-link-icon{color:#0044f4;margin-left:4px;padding:2px}.kong-ui-public-entity-link .entity-link-label[data-v-60e3ef7c]{display:inline-block;font-weight:400;max-width:20ch;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.kong-ui-public-entity-link .copy-uuid-tooltip[data-v-60e3ef7c]{align-items:center;cursor:pointer;display:flex}.kong-ui-public-entity-link .copy-uuid-tooltip .entity-link-copy-id[data-v-60e3ef7c]{margin-left:2px}.kong-ui-public-entity-empty-state[data-v-6f342249]{align-items:center;background-color:#fff;box-sizing:border-box;display:flex;flex-direction:column;font-family:Inter,Roboto,Helvetica,sans-serif;gap:32px;padding:64px 0;width:100%}@media (min-width: 640px){.kong-ui-public-entity-empty-state[data-v-6f342249]{padding:64px 96px}}.kong-ui-public-entity-empty-state .empty-state-image[data-v-6f342249]{margin-bottom:8px}.kong-ui-public-entity-empty-state .entity-empty-state-content[data-v-6f342249]{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-6f342249]{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-description[data-v-6f342249],.kong-ui-public-entity-empty-state .entity-empty-state-pricing[data-v-6f342249]{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-6f342249],.kong-ui-public-entity-empty-state .entity-empty-state-pricing p[data-v-6f342249]{margin:6px}.kong-ui-public-entity-empty-state .entity-empty-state-action[data-v-6f342249]{align-items:center;display:flex;gap:12px}.kong-ui-public-entity-empty-state .entity-empty-state-card-container[data-v-6f342249]{display:flex;flex-wrap:wrap;gap:16px;justify-content:space-around;width:312px}@media (min-width: 640px){.kong-ui-public-entity-empty-state .entity-empty-state-card-container[data-v-6f342249]{width:640px}}.kong-ui-public-entity-empty-state .entity-empty-state-card-container .entity-empty-state-card[data-v-6f342249]{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-6f342249]{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-6f342249] .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-6f342249] .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-6f342249] .card-content{-webkit-box-orient:vertical;color:#6c7489;display:-webkit-box;-webkit-line-clamp:3;line-clamp:3;overflow:hidden}.kong-ui-entities-upstreams-list .kong-ui-entity-filter-input[data-v-cf46ca5f]{margin-right:12px}.kong-ui-entities-upstreams-list .upstream-name[data-v-cf46ca5f]{font-weight:600}[data-v-6a64b86e] .kong-card{padding:0}[data-v-6a64b86e] .kong-card.border{border:0!important}[data-v-6a64b86e] .kong-card.borderTop{border-top:0!important}.kong-ui-entities-target-form[data-v-6a64b86e]{width:100%}.kong-ui-entities-target-form .target-form-container .target-form-info[data-v-6a64b86e],.kong-ui-entities-target-form .target-form-container .target-form-info p[data-v-6a64b86e],.kong-ui-entities-target-form .target-form-container .target-form-info[data-v-6a64b86e] 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-6a64b86e]{margin-bottom:32px}.kong-ui-entities-target-form .target-form-container .target-form-input[data-v-6a64b86e]:last-of-type{margin-bottom:0}.kong-ui-entities-target-form[data-v-6a64b86e] .k-alert{margin-top:20px}.kong-ui-entities-target-form[data-v-6a64b86e] .form-actions{display:none!important}.kong-ui-entities-target-form[data-v-6a64b86e] .k-card.kong-ui-entity-base-form{border:none;padding:0}.kong-ui-entities-targets-list .target-address[data-v-4c844f80]{font-weight:600}.margin-bottom-6[data-v-626ed41f]{margin-bottom:24px}.fields-group-title[data-v-d662db8e]{color:#000933;font-size:16px;font-weight:600;line-height:20px;margin-bottom:4px;margin-top:0}.fields-group-text[data-v-d662db8e]{color:#afb7c5;font-size:14px;line-height:20px;margin-bottom:24px;margin-top:0}.margin-top-6[data-v-d662db8e]{margin-top:24px}.fields-group-title[data-v-bfdc5a59]{color:#000933;font-size:16px;font-weight:600;line-height:20px;margin-bottom:4px;margin-top:0}.fields-group-text[data-v-bfdc5a59]{color:#afb7c5;font-size:14px;line-height:20px;margin-bottom:24px;margin-top:0}.margin-bottom-6[data-v-efccf560]{margin-bottom:24px}.margin-top-6[data-v-efccf560]{margin-top:24px}.fields-group-title[data-v-efccf560]{color:#000933;font-size:16px;font-weight:600;line-height:20px;margin-bottom:4px;margin-top:0}.fields-group-text[data-v-efccf560]{color:#afb7c5;font-size:14px;line-height:20px;margin-bottom:24px;margin-top:0}.headers-row[data-v-efccf560]{align-items:center;column-gap:16px;display:flex}.fields-group-title[data-v-5bd9952e]{color:#000933;font-size:16px;font-weight:600;line-height:20px;margin-bottom:4px;margin-top:0}.fields-group-text[data-v-5bd9952e]{color:#afb7c5;font-size:14px;line-height:20px;margin-bottom:24px;margin-top:0}.margin-top-6[data-v-5bd9952e]{margin-top:24px}.kong-ui-entities-upstreams-form[data-v-0669debc]{width:100%}@media screen and (min-width: 1280px){.kong-ui-entities-upstreams-form[data-v-0669debc] .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-c96811e5] .k-button.navigation-button{font-size:14px;font-weight:400}.config-card-details-row[data-v-761f7e64]{align-items:center;border-bottom:var(--3ccdd5d2);box-sizing:border-box;display:var(--4b1da305);padding:16px 16px 16px 0;width:100%}.config-card-details-row .config-card-details-label[data-v-761f7e64]{box-sizing:border-box;padding-right:16px;width:var(--cd20788a)}.config-card-details-row .config-card-details-label label[data-v-761f7e64]{color:#3a3f51;display:inline-flex;max-width:100%}.config-card-details-row .config-card-details-label label .label-content[data-v-761f7e64]{line-height:initial;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.config-card-details-row .config-card-details-label label .k-popover[data-v-761f7e64]{min-width:0}.config-card-details-row .config-card-details-value[data-v-761f7e64]{box-sizing:border-box;width:var(--cd1becd4)}.config-card-details-row .config-card-details-value .truncated[data-v-761f7e64]{display:inline-block;line-height:initial;max-width:20ch;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.config-card-details-row .config-card-details-value span.attrs-data-text[data-v-761f7e64]{overflow-wrap:anywhere}.config-card-details-row .config-card-details-value .copy-uuid-array[data-v-761f7e64] .k-copy:not(:last-of-type){margin-bottom:8px}.config-card-details-row .config-card-details-value .method-badge-array[data-v-761f7e64]{display:flex;flex-wrap:wrap;row-gap:10px}.config-card-details-row .config-badge[data-v-761f7e64]{margin-right:4px}.config-card-details-row[data-v-761f7e64] .k-label{margin-bottom:0}.config-card-details-row[data-v-761f7e64] .k-label .kong-icon-infoFilled{display:flex}.config-card-details-row[data-v-761f7e64] .config-card-details-row{width:auto}.json-content.k-code-block{border-top-left-radius:0;border-top-right-radius:0}.json-endpoint{align-items:baseline;background-color:#000933;border-bottom:1px solid rgba(255,255,255,.2);border-top-left-radius:8px;border-top-right-radius:8px;display:flex;padding:8px 0 8px 12px}.json-endpoint .k-code-block{flex:auto;z-index:2}.json-endpoint .k-code-block .code-block-content{padding-bottom:0;padding-top:0}.json-endpoint .k-code-block .code-block-secondary-actions{margin-top:0!important}.json-endpoint code{direction:rtl;max-width:var(--454fa8c4);overflow:hidden!important;text-align:left;text-overflow:ellipsis;white-space:nowrap}.config-card-prop-section-title[data-v-d15be7fe]{color:#000933;font-size:16px;font-weight:600;margin-bottom:16px;margin-top:48px}.kong-ui-entity-base-config-card .config-card-actions[data-v-7ef5c755]{align-items:center;display:flex}.kong-ui-entity-base-config-card .config-card-actions .config-format-select-label[data-v-7ef5c755]{margin-bottom:0;margin-right:8px}.kong-ui-entity-base-config-card .config-card-prop-section-title[data-v-7ef5c755]{color:#000933;font-size:16px;font-weight:600;margin-bottom:16px;margin-top:48px}.kong-ui-entity-base-config-card[data-v-7ef5c755] .config-card-details-row:last-of-type{border-bottom:none}.kong-ui-entity-base-config-card .book-icon[data-v-7ef5c755]{margin-left:8px;padding:0}.kong-ui-entity-base-form[data-v-6210a67a]{box-sizing:border-box;max-width:1536px;width:100%}.kong-ui-entity-base-form .form-actions[data-v-6210a67a]{align-items:center;display:flex;justify-content:flex-end;margin-top:24px}.kong-ui-entity-base-form .form-actions[data-v-6210a67a] .k-button:last-of-type,.kong-ui-entity-base-form .form-actions[data-v-6210a67a] .k-button:nth-last-of-type(2){margin-left:16px}.kong-ui-entity-base-form[data-v-6210a67a] .k-slideout-title{color:#000933!important;font-size:24px!important;font-weight:700!important;line-height:32px!important;margin-bottom:16px!important}.kong-ui-entity-base-form[data-v-6210a67a] .k-card.content-card{padding:0 16px!important}.kong-ui-entity-base-form[data-v-6210a67a] .tab-item>div.tab-link.has-panels{color:#6c7489!important;font-size:14px!important;font-weight:700!important;line-height:24px!important}.kong-ui-entity-base-form[data-v-6210a67a] .tab-item.active>div.tab-link.has-panels{color:#000933!important;font-weight:600!important}.content-wrapper[data-v-b252463e] .k-tooltip{word-break:break-all}.kong-ui-entity-base-table .toolbar-container[data-v-0998625e]{align-items:center;display:flex;width:100%}.kong-ui-entity-base-table .toolbar-button-container[data-v-0998625e]{margin-left:auto}.kong-ui-entity-base-table :deep(.k-table){table-layout:fixed}.kong-ui-entity-delete-modal .message[data-v-4361d622],.kong-ui-entity-delete-modal .description[data-v-4361d622]{line-height:24px;margin:0}.kong-ui-entity-delete-modal .message strong[data-v-4361d622]{font-weight:600}.kong-ui-entity-delete-modal .description[data-v-4361d622]{margin-top:32px}.kong-ui-entity-delete-error[data-v-4361d622]{margin-bottom:16px}.kong-ui-entity-filter-input[data-v-10fa27a5]{width:100%}.kong-ui-entity-filter-clear[data-v-10fa27a5]{cursor:pointer}.kong-ui-entity-filter[data-v-10fa27a5]{display:flex;position:relative}.kong-ui-entity-filter[data-v-10fa27a5] .menu-content{flex-direction:column}.kong-ui-entity-filter[data-v-10fa27a5] .k-menu-item-divider hr{margin:12px 0}.kong-ui-entity-filter-backdrop[data-v-10fa27a5]{bottom:0;left:0;position:fixed;right:0;top:0;z-index:1050}.kong-ui-entity-filter-menu[data-v-10fa27a5]{background-color:#fff;border:1px solid #afb7c5;border-radius:4px;box-shadow:0 4px 20px #e0e4ea;left:0;margin-top:16px;padding:8px 0 12px;position:absolute;top:100%;width:300px;z-index:1060}.kong-ui-entity-filter-menu-item[data-v-10fa27a5]{border-bottom:1px solid #e0e4ea;color:#6c7489;font-size:12px;font-weight:400;line-height:16px;list-style:none;margin:0 20px;padding:16px 0;position:relative;white-space:nowrap}.menu-item-title[data-v-10fa27a5]{align-items:center;cursor:pointer;display:flex;line-height:24px}.menu-item-title.expanded[data-v-10fa27a5]{color:#232633}.menu-item-expand-icon[data-v-10fa27a5]{margin-left:auto}.menu-item-expand-icon.expanded[data-v-10fa27a5]{transform:rotate(180deg)}.menu-item-indicator[data-v-10fa27a5]{background-color:#0044f4;border-radius:50%;height:4px;margin-left:4px;width:4px}.menu-item-body[data-v-10fa27a5]{align-items:center;display:flex;justify-content:space-between;margin-top:16px}.menu-item-body[data-v-10fa27a5] .input{padding-bottom:4px!important;padding-top:4px!important}.menu-item-body[data-v-10fa27a5] .k-input{width:100%}.menu-item-body[data-v-10fa27a5] .k-select-input .input{font-size:12px}.menu-item-body[data-v-10fa27a5] .k-select-input .input::placeholder{color:#00000073!important;font-size:12px}.menu-item-label[data-v-10fa27a5]{margin-bottom:0;margin-right:12px}.menu-item-buttons[data-v-10fa27a5]{display:flex;justify-content:space-between;margin:10px 0 6px}.filter-clear-button-container[data-v-10fa27a5]{padding:12px 20px 0}fieldset[data-v-b1f74200]{margin:0;min-width:0;padding:0}.kong-ui-entity-form-section[data-v-b1f74200]{border:0}.kong-ui-entity-form-section .form-section-wrapper[data-v-b1f74200]{column-gap:16px;display:flex;flex-direction:column;padding-bottom:64px;row-gap:12px;width:100%}@media (min-width: 1024px){.kong-ui-entity-form-section .form-section-wrapper[data-v-b1f74200]{flex-direction:row}}.kong-ui-entity-form-section .form-section-wrapper .form-section-info[data-v-b1f74200]{flex:1}@media (min-width: 1024px){.kong-ui-entity-form-section .form-section-wrapper .form-section-info[data-v-b1f74200]{max-width:350px}.kong-ui-entity-form-section .form-section-wrapper .form-section-info.sticky[data-v-b1f74200]{height:fit-content;margin-bottom:16px;position:sticky;top:16px}}.kong-ui-entity-form-section .form-section-wrapper .form-section-info .form-section-title[data-v-b1f74200]{color:#000933;font-size:16px;font-weight:700;line-height:20px;margin-bottom:8px;margin-top:0}.kong-ui-entity-form-section .form-section-wrapper .form-section-info .form-section-description[data-v-b1f74200],.kong-ui-entity-form-section .form-section-wrapper .form-section-info .form-section-description p[data-v-b1f74200],.kong-ui-entity-form-section .form-section-wrapper .form-section-info .form-section-description[data-v-b1f74200] p{color:#000933;font-size:14px;font-weight:400;line-height:20px;margin:0}.kong-ui-entity-form-section .form-section-wrapper .form-section-info .form-section-footer[data-v-b1f74200]{margin-top:32px}.kong-ui-entity-form-section .form-section-wrapper .form-section-content[data-v-b1f74200]{flex:1}.kong-ui-entity-form-section .form-section-wrapper .form-section-content[data-v-b1f74200]>*:not(:first-child){margin-top:24px}.kong-ui-entity-form-section.has-divider .form-section-wrapper[data-v-b1f74200]{border-bottom:1px solid #e0e4ea}.kong-ui-public-entity-link[data-v-2e2c07e5]{align-items:center;display:flex}.kong-ui-public-entity-link .deleted-entity[data-v-2e2c07e5]{font-style:italic}.kong-ui-public-entity-link .entity-link[data-v-2e2c07e5]{display:flex}.kong-ui-public-entity-link .entity-link[data-v-2e2c07e5] .external-link-icon{color:#0044f4;margin-left:4px;padding:2px}.kong-ui-public-entity-link .entity-link-label[data-v-2e2c07e5]{display:inline-block;font-weight:400;max-width:20ch;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.kong-ui-public-entity-link .copy-uuid-tooltip[data-v-2e2c07e5]{align-items:center;cursor:pointer;display:flex}.kong-ui-public-entity-link .copy-uuid-tooltip .entity-link-copy-id[data-v-2e2c07e5]{margin-left:2px}.kong-ui-public-entity-empty-state[data-v-6f342249]{align-items:center;background-color:#fff;box-sizing:border-box;display:flex;flex-direction:column;font-family:Inter,Roboto,Helvetica,sans-serif;gap:32px;padding:64px 0;width:100%}@media (min-width: 640px){.kong-ui-public-entity-empty-state[data-v-6f342249]{padding:64px 96px}}.kong-ui-public-entity-empty-state .empty-state-image[data-v-6f342249]{margin-bottom:8px}.kong-ui-public-entity-empty-state .entity-empty-state-content[data-v-6f342249]{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-6f342249]{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-description[data-v-6f342249],.kong-ui-public-entity-empty-state .entity-empty-state-pricing[data-v-6f342249]{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-6f342249],.kong-ui-public-entity-empty-state .entity-empty-state-pricing p[data-v-6f342249]{margin:6px}.kong-ui-public-entity-empty-state .entity-empty-state-action[data-v-6f342249]{align-items:center;display:flex;gap:12px}.kong-ui-public-entity-empty-state .entity-empty-state-card-container[data-v-6f342249]{display:flex;flex-wrap:wrap;gap:16px;justify-content:space-around;width:312px}@media (min-width: 640px){.kong-ui-public-entity-empty-state .entity-empty-state-card-container[data-v-6f342249]{width:640px}}.kong-ui-public-entity-empty-state .entity-empty-state-card-container .entity-empty-state-card[data-v-6f342249]{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-6f342249]{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-6f342249] .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-6f342249] .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-6f342249] .card-content{-webkit-box-orient:vertical;color:#6c7489;display:-webkit-box;-webkit-line-clamp:3;line-clamp:3;overflow:hidden}.kong-ui-entities-upstreams-list .kong-ui-entity-filter-input[data-v-a602dfcf]{margin-right:12px}.kong-ui-entities-upstreams-list .upstream-name[data-v-a602dfcf]{font-weight:600}[data-v-6a64b86e] .kong-card{padding:0}[data-v-6a64b86e] .kong-card.border{border:0!important}[data-v-6a64b86e] .kong-card.borderTop{border-top:0!important}.kong-ui-entities-target-form[data-v-6a64b86e]{width:100%}.kong-ui-entities-target-form .target-form-container .target-form-info[data-v-6a64b86e],.kong-ui-entities-target-form .target-form-container .target-form-info p[data-v-6a64b86e],.kong-ui-entities-target-form .target-form-container .target-form-info[data-v-6a64b86e] 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-6a64b86e]{margin-bottom:32px}.kong-ui-entities-target-form .target-form-container .target-form-input[data-v-6a64b86e]:last-of-type{margin-bottom:0}.kong-ui-entities-target-form[data-v-6a64b86e] .k-alert{margin-top:20px}.kong-ui-entities-target-form[data-v-6a64b86e] .form-actions{display:none!important}.kong-ui-entities-target-form[data-v-6a64b86e] .k-card.kong-ui-entity-base-form{border:none;padding:0}.kong-ui-entities-targets-list .target-address[data-v-4c844f80]{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-c6b24c5a]{margin-bottom:24px}.margin-top-6[data-v-c6b24c5a]{margin-top:24px}.fields-group-title[data-v-c6b24c5a]{color:#000933;font-size:16px;font-weight:600;line-height:20px;margin-bottom:4px;margin-top:0}.fields-group-text[data-v-c6b24c5a]{color:#afb7c5;font-size:14px;line-height:20px;margin-bottom:24px;margin-top:0}.headers-row[data-v-c6b24c5a]{align-items:center;column-gap:16px;display:flex}.fields-group-title[data-v-4ab7f60e]{color:#000933;font-size:16px;font-weight:600;line-height:20px;margin-bottom:4px;margin-top:0}.fields-group-text[data-v-4ab7f60e]{color:#afb7c5;font-size:14px;line-height:20px;margin-bottom:24px;margin-top:0}.margin-top-6[data-v-4ab7f60e]{margin-top:24px}.kong-ui-entities-upstreams-form[data-v-0669debc]{width:100%}@media screen and (min-width: 1280px){.kong-ui-entities-upstreams-form[data-v-0669debc] .form-section-wrapper{column-gap:64px}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"UpstreamsFormActiveHealthCheck.vue.d.ts","sourceRoot":"","sources":["../../../src/components/UpstreamsFormActiveHealthCheck.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"UpstreamsFormActiveHealthCheck.vue.d.ts","sourceRoot":"","sources":["../../../src/components/UpstreamsFormActiveHealthCheck.vue"],"names":[],"mappings":"AA6gBA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,KAAK,CAAA;AAEnC,OAAO,KAAK,EACV,uBAAuB,EACvB,eAAe,EACY,8BAA8B,EACzD,0BAA0B,EAC3B,MAAM,UAAU,CAAA;;;cAqmCG,QAAQ,CAAC,0BAA0B,GAAG,8BAA8B,CAAC;;;;cAIrE,QAAQ,CAAC,eAAe,CAAC;;;;;;;;;;;;;;;;;;;;;;;;cAwB1B,QAAQ,CAAC,uBAAuB,EAAE,CAAC;;;;;;;;;;;;cAYnC,QAAQ,CAAC,MAAM,EAAE,CAAC;;;;;;;;;;;;;;;;cAgBlB,QAAQ,CAAC,MAAM,EAAE,CAAC;;;;;;;;;;;;;;;;;;cAxDjB,QAAQ,CAAC,0BAA0B,GAAG,8BAA8B,CAAC;;;;cAIrE,QAAQ,CAAC,eAAe,CAAC;;;;;;;;;;;;;;;;;;;;;;;;cAwB1B,QAAQ,CAAC,uBAAuB,EAAE,CAAC;;;;;;;;;;;;cAYnC,QAAQ,CAAC,MAAM,EAAE,CAAC;;;;;;;;;;;;;;;;cAgBlB,QAAQ,CAAC,MAAM,EAAE,CAAC;;;;;;;;;;;;;;;;;AAhFrC,wBA6FG"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"UpstreamsFormHealthChecks.vue.d.ts","sourceRoot":"","sources":["../../../src/components/UpstreamsFormHealthChecks.vue"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"UpstreamsFormHealthChecks.vue.d.ts","sourceRoot":"","sources":["../../../src/components/UpstreamsFormHealthChecks.vue"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAoYA,wBA6BG"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"UpstreamsFormLoadBalancing.vue.d.ts","sourceRoot":"","sources":["../../../src/components/UpstreamsFormLoadBalancing.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"UpstreamsFormLoadBalancing.vue.d.ts","sourceRoot":"","sources":["../../../src/components/UpstreamsFormLoadBalancing.vue"],"names":[],"mappings":"AAqdA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,KAAK,CAAA;AAEnC,OAAO,KAAK,EAAuC,iBAAiB,EAAE,YAAY,EAAE,MAAM,UAAU,CAAA;;;cAs5BhF,QAAQ,CAAC,iBAAiB,CAAC;;;;;;;;cAQ3B,QAAQ,CAAC,YAAY,CAAC;;;;cAItB,QAAQ,CAAC,YAAY,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAZtB,QAAQ,CAAC,iBAAiB,CAAC;;;;;;;;cAQ3B,QAAQ,CAAC,YAAY,CAAC;;;;cAItB,QAAQ,CAAC,YAAY,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAjC1C,wBA0EG"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"UpstreamsFormPassiveHealthCheck.vue.d.ts","sourceRoot":"","sources":["../../../src/components/UpstreamsFormPassiveHealthCheck.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"UpstreamsFormPassiveHealthCheck.vue.d.ts","sourceRoot":"","sources":["../../../src/components/UpstreamsFormPassiveHealthCheck.vue"],"names":[],"mappings":"AAqRA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,KAAK,CAAA;AAEnC,OAAO,KAAK,EAAE,eAAe,EAA6B,MAAM,UAAU,CAAA;;;cA0lBtD,QAAQ,CAAC,eAAe,CAAC;;;;;;;;cAQ1B,QAAQ,CAAC,MAAM,EAAE,CAAC;;;;;;;;;;;;cAYlB,QAAQ,CAAC,MAAM,EAAE,CAAC;;;;;;;;;;;;;;;;;;;;;;cApBjB,QAAQ,CAAC,eAAe,CAAC;;;;;;;;cAQ1B,QAAQ,CAAC,MAAM,EAAE,CAAC;;;;;;;;;;;;cAYlB,QAAQ,CAAC,MAAM,EAAE,CAAC;;;;;;;;;;;;;;;;;;;;;;;AApCrC,wBAiDG"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"UpstreamsList.vue.d.ts","sourceRoot":"","sources":["../../../src/components/UpstreamsList.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"UpstreamsList.vue.d.ts","sourceRoot":"","sources":["../../../src/components/UpstreamsList.vue"],"names":[],"mappings":"AA4dA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,KAAK,CAAA;AAEnC,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,OAAO,CAAA;AAGvC,OAAO,KAAK,EACV,8BAA8B,EAC9B,0BAA0B,EAC1B,SAAS,EACT,gBAAgB,EACjB,MAAM,UAAU,CAAA;AAWjB,OAAO,gDAAgD,CAAA;;IA0wBrD,oHAAoH;;cAElG,QAAQ,CAAC,0BAA0B,GAAG,8BAA8B,CAAC;;4BAEjE,0BAA0B,GAAG,8BAA8B,KAAG,OAAO;;;;;;IAY3F,yHAAyH;;cAErG,QAAQ,CAAC,MAAM,OAAO,GAAG,OAAO,CAAC,OAAO,CAAC,CAAC;;;;IAI9D,2HAA2H;;cAEvG,QAAQ,CAAC,CAAC,GAAG,EAAE,SAAS,KAAK,OAAO,GAAG,OAAO,CAAC,OAAO,CAAC,CAAC;;;;IAI5E,yHAAyH;;cAErG,QAAQ,CAAC,CAAC,GAAG,EAAE,SAAS,KAAK,OAAO,GAAG,OAAO,CAAC,OAAO,CAAC,CAAC;;;;IAI5E,4IAA4I;;cAExH,QAAQ,CAAC,CAAC,GAAG,EAAE,SAAS,KAAK,OAAO,GAAG,OAAO,CAAC,OAAO,CAAC,CAAC;;;;IAI5E,iHAAiH;;;;;;;;;;;IAxCjH,oHAAoH;;cAElG,QAAQ,CAAC,0BAA0B,GAAG,8BAA8B,CAAC;;4BAEjE,0BAA0B,GAAG,8BAA8B,KAAG,OAAO;;;;;;IAY3F,yHAAyH;;cAErG,QAAQ,CAAC,MAAM,OAAO,GAAG,OAAO,CAAC,OAAO,CAAC,CAAC;;;;IAI9D,2HAA2H;;cAEvG,QAAQ,CAAC,CAAC,GAAG,EAAE,SAAS,KAAK,OAAO,GAAG,OAAO,CAAC,OAAO,CAAC,CAAC;;;;IAI5E,yHAAyH;;cAErG,QAAQ,CAAC,CAAC,GAAG,EAAE,SAAS,KAAK,OAAO,GAAG,OAAO,CAAC,OAAO,CAAC,CAAC;;;;IAI5E,4IAA4I;;cAExH,QAAQ,CAAC,CAAC,GAAG,EAAE,SAAS,KAAK,OAAO,GAAG,OAAO,CAAC,OAAO,CAAC,CAAC;;;;IAI5E,iHAAiH;;;;;;;;;;;;qBAtB9E,OAAO,GAAG,OAAO,CAAC,OAAO,CAAC;qBAM1B,SAAS,KAAK,OAAO,GAAG,OAAO,CAAC,OAAO,CAAC;mBAMxC,SAAS,KAAK,OAAO,GAAG,OAAO,CAAC,OAAO,CAAC;uBAMxC,SAAS,KAAK,OAAO,GAAG,OAAO,CAAC,OAAO,CAAC;;;AAhD7E,wBA0DG"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kong-ui-public/entities-upstreams-targets",
|
|
3
|
-
"version": "3.5.
|
|
3
|
+
"version": "3.5.68",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"main": "./dist/entities-upstreams-targets.umd.js",
|
|
6
6
|
"module": "./dist/entities-upstreams-targets.es.js",
|
|
@@ -26,8 +26,8 @@
|
|
|
26
26
|
"axios": "^1.7.7",
|
|
27
27
|
"vue": ">= 3.3.13 < 4",
|
|
28
28
|
"vue-router": "^4.4.5",
|
|
29
|
-
"@kong-ui-public/
|
|
30
|
-
"@kong-ui-public/
|
|
29
|
+
"@kong-ui-public/i18n": "^2.2.10",
|
|
30
|
+
"@kong-ui-public/entities-shared": "^3.14.3"
|
|
31
31
|
},
|
|
32
32
|
"devDependencies": {
|
|
33
33
|
"@kong/design-tokens": "1.17.2",
|
|
@@ -37,7 +37,7 @@
|
|
|
37
37
|
"vue": "^3.5.12",
|
|
38
38
|
"vue-router": "^4.4.5",
|
|
39
39
|
"@kong-ui-public/i18n": "^2.2.10",
|
|
40
|
-
"@kong-ui-public/entities-shared": "^3.14.
|
|
40
|
+
"@kong-ui-public/entities-shared": "^3.14.3"
|
|
41
41
|
},
|
|
42
42
|
"repository": {
|
|
43
43
|
"type": "git",
|