@kong-ui-public/entities-shared 3.72.2-pr.4023.e9aee6bf5.0 → 3.72.2
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.
|
@@ -75,5 +75,5 @@ ${m.value}
|
|
|
75
75
|
${$.value}
|
|
76
76
|
'@ | ${p}`,u.value=`@'
|
|
77
77
|
${m.value}
|
|
78
|
-
'@ | ${p}`)}),(p,k)=>{const I=e.resolveComponent("KSelect"),N=e.resolveComponent("KBadge"),D=e.resolveComponent("KCodeBlock"),b=e.resolveComponent("KAlert"),S=e.resolveComponent("KButton");return e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createElementVNode("div",e.mergeProps({class:"deck-config config-card-code-block"},p.$attrs),[e.createVNode(I,{modelValue:y.value,"onUpdate:modelValue":k[0]||(k[0]=O=>y.value=O),items:c},{"item-template":e.withCtx(({item:O})=>[O.value==="powershell"?(e.openBlock(),e.createBlock(e.unref(q.LanguageShellIcon),{key:0})):(e.openBlock(),e.createBlock(e.unref(q.LanguageBashIcon),{key:1})),e.createTextVNode(" "+e.toDisplayString(O.label),1)]),"selected-item-template":e.withCtx(({item:O})=>[O.value==="powershell"?(e.openBlock(),e.createBlock(e.unref(q.LanguageShellIcon),{key:0})):(e.openBlock(),e.createBlock(e.unref(q.LanguageBashIcon),{key:1})),e.createTextVNode(" "+e.toDisplayString(O.label),1)]),_:1},8,["modelValue"]),e.createElementVNode("div",nr,e.toDisplayString(e.unref(r)("deckCodeBlock.steps.step_1")),1),t.isCustomizing?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(e.unref(i),{key:0,"data-testid":`deck-hint-${t.app}`,keypath:`deckCodeBlock.hint.${t.app}`,tag:"p"},e.createSlots({link:e.withCtx(()=>[e.createVNode(e.unref(X.KExternalLink),{href:t.app==="konnect"?"https://developer.konghq.com/deck/get-started/":"https://developer.konghq.com/deck/gateway/configuration/"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(a).t("deckCodeBlock.documentation")),1)]),_:1},8,["href"])]),_:2},[t.app==="konnect"?{name:"token",fn:e.withCtx(()=>[e.createVNode(N,null,{default:e.withCtx(()=>[...k[4]||(k[4]=[e.createTextVNode("DECK_KONNECT_TOKEN",-1)])]),_:1})]),key:"0"}:void 0]),1032,["data-testid","keypath"])),t.app==="konnect"?(e.openBlock(),e.createBlock(D,{key:1,id:"deck-env-codeblock",class:e.normalizeClass({customization:o.isCustomizing}),code:g.value,language:y.value,"single-line":"",theme:t.isCustomizing?"light":"dark",onCodeBlockRender:e.unref(te)},null,8,["class","code","language","theme","onCodeBlockRender"])):e.createCommentVNode("",!0),l.value?(e.openBlock(),e.createBlock(b,{key:2,class:"copy-konnect-pat-alert"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(r)("deckCodeBlock.customization.copy_pat")),1)]),_:1})):o.isCustomizing&&o.generateKonnectPat?(e.openBlock(),e.createElementBlock("div",or,[e.createVNode(S,{appearance:"secondary","data-testid":"generate-konnect-pat-button",onClick:k[1]||(k[1]=O=>f.value=!0)},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(r)("deckCodeBlock.customization.generate_pat")),1)]),_:1}),e.createElementVNode("div",null,e.toDisplayString(e.unref(r)("deckCodeBlock.customization.reuse_pat")),1)])):e.createCommentVNode("",!0),e.createElementVNode("div",ar,e.toDisplayString(e.unref(r)("deckCodeBlock.steps.step_2")),1),o.entityRecord&&!o.isCustomizing?(e.openBlock(),e.createBlock(D,{key:4,id:"deck-codeblock",class:e.normalizeClass({customization:o.isCustomizing}),code:s.value,"copy-code":u.value,"data-dd-privacy":"mask",language:y.value,"max-height":e.unref(d.CONFIG_CARD_CODE_BLOCK_MAX_HEIGHT),theme:t.isCustomizing?"light":"dark",onCodeBlockRender:e.unref(te)},null,8,["class","code","copy-code","language","max-height","theme","onCodeBlockRender"])):o.entityRecord&&o.isCustomizing&&e.unref(n)?(e.openBlock(),e.createElementBlock(e.Fragment,{key:5},[e.createElementVNode("div",rr,e.toDisplayString(e.unref(r)("deckCodeBlock.customization.secret_advise")),1),(e.openBlock(),e.createBlock(e.resolveDynamicComponent(e.unref(n)),{modelValue:u.value,"onUpdate:modelValue":k[2]||(k[2]=O=>u.value=O),language:y.value},null,8,["modelValue","language"])),e.createVNode(b,{class:"customization-footer-reminder"},{icon:e.withCtx(()=>[e.createVNode(e.unref(q.InfoIcon))]),default:e.withCtx(()=>[e.createTextVNode(" "+e.toDisplayString(e.unref(r)("deckCodeBlock.customization.footer_reminder")),1)]),_:1})],64)):e.createCommentVNode("",!0)],16),o.isCustomizing&&o.generateKonnectPat?(e.openBlock(),e.createBlock(Et,{key:0,"generate-konnect-pat":o.generateKonnectPat,visible:f.value,onDismiss:k[3]||(k[3]=O=>f.value=!1),onGenerated:E},null,8,["generate-konnect-pat","visible"])):e.createCommentVNode("",!0)],64)}}}),Qe=d._export_sfc(ir,[["__scopeId","data-v-81758ed8"]]),Ve=e.defineComponent({inheritAttrs:!1,__name:"DeckCodeBlock",props:{app:{},entityRecord:{},unredactedRecord:{},entityType:{},geoApiServerUrl:{},controlPlaneName:{},kongAdminApiUrl:{},workspace:{},customizationOptions:{type:[Boolean,Object]},isCustomizationModalVisible:{type:Boolean}},emits:["customization-close"],setup(t){const n=t,{i18n:{t:o}}=d.composables.useI18n(),a=e.computed(()=>{if(n.app==="konnect"&&n.customizationOptions&&typeof n.customizationOptions!="boolean")return n.customizationOptions.generateKonnectPat});return(i,r)=>{const l=e.resolveComponent("KModal");return e.openBlock(),e.createElementBlock(e.Fragment,null,[n.entityRecord?(e.openBlock(),e.createBlock(Qe,e.mergeProps({key:0},i.$attrs,{app:n.app,"control-plane-name":n.app==="konnect"?n.controlPlaneName:void 0,"entity-record":n.entityRecord,"entity-type":n.entityType,"geo-api-server-url":n.app==="konnect"?n.geoApiServerUrl:void 0,"kong-admin-api-url":n.app==="kongManager"?n.kongAdminApiUrl:void 0,"unredacted-record":n.unredactedRecord,workspace:n.workspace||void 0}),null,16,["app","control-plane-name","entity-record","entity-type","geo-api-server-url","kong-admin-api-url","unredacted-record","workspace"])):e.createCommentVNode("",!0),n.entityRecord?(e.openBlock(),e.createBlock(l,{key:1,"action-button-appearance":"tertiary","action-button-text":e.unref(o)("baseConfigCard.actions.deck_customize_cancel"),"hide-cancel-button":"","max-width":"640px",title:e.unref(o)("deckCodeBlock.customization.title"),visible:n.isCustomizationModalVisible,onCancel:r[0]||(r[0]=s=>i.$emit("customization-close")),onProceed:r[1]||(r[1]=s=>i.$emit("customization-close"))},{default:e.withCtx(()=>[e.createVNode(Qe,{app:n.app,"control-plane-name":n.app==="konnect"?n.controlPlaneName:void 0,"entity-record":n.entityRecord,"entity-type":n.entityType,"generate-konnect-pat":a.value,"geo-api-server-url":n.app==="konnect"?n.geoApiServerUrl:void 0,"is-customizing":"","kong-admin-api-url":n.app==="kongManager"?n.kongAdminApiUrl:void 0,"unredacted-record":n.unredactedRecord,workspace:n.workspace||void 0},null,8,["app","control-plane-name","entity-record","entity-type","generate-konnect-pat","geo-api-server-url","kong-admin-api-url","unredacted-record","workspace"])]),_:1},8,["action-button-text","title","visible"])):e.createCommentVNode("",!0)],64)}}}),lr={key:0,class:"config-card-display-form"},sr=["data-testid"],cr={key:0,class:"config-card-prop-section-title"},dr=e.defineComponent({__name:"ConfigCardDisplay",props:{config:{type:Object,required:!1,default:()=>({})},entityType:{type:String,required:!0,validator:t=>d.SupportedEntityTypesArray.includes(t)},subEntityType:{type:String,default:""},propertyCollections:{type:Object,required:!1,default:()=>null},format:{type:String,required:!1,default:"structured",validator:t=>d.CONFIG_CARD_FORMATS.includes(t)},propListTypes:{type:Array,required:!1,default:()=>[]},record:{type:Object,required:!1,default:()=>({})},codeBlockRecord:{type:Object,default:void 0},codeBlockRecordRedacted:{type:Object,default:void 0},preserveCodeBlockTimestamps:{type:Boolean,default:!1},fetcherUrl:{type:String,required:!1,default:""},codeBlockRecordFormatter:{type:Function,required:!1,default:t=>t},isDeckCustomizationVisible:{type:Boolean,required:!1,default:!1}},emits:["deck-customization:close","request-deck-format"],setup(t){const n=t,o=e.useSlots(),{i18n:{t:a}}=d.composables.useI18n(),i=v=>!!(v.tooltip||o[`${v.key}-label-tooltip`]),r=v=>{if(v==null)return;let C=JSON.parse(JSON.stringify(v));return n.codeBlockRecordFormatter&&(C=n.codeBlockRecordFormatter(C,n.format)),n.preserveCodeBlockTimestamps||(delete C.created_at,delete C.updated_at),C},l=e.computed(()=>r(n.codeBlockRecordRedacted||n.codeBlockRecord||n.record)),s=e.computed(()=>r(n.codeBlockRecord||n.record)),u=e.computed(()=>n.fetcherUrl.replace(/(\?|&)__ui_data=true/,"")),{isDeckEnabled:f,deckCustomizationOptions:c,deckCalloutPreferenceKey:y}=d.composables.useBaseEntityDeckOptions(()=>n.config,()=>n.entityType);return(v,C)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[t.format==="structured"?(e.openBlock(),e.createElementBlock("div",lr,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.propListTypes,$=>(e.openBlock(),e.createElementBlock("div",{key:`config-card-details-${$}-props`,class:e.normalizeClass(`config-card-details-${$}-props`),"data-testid":`config-card-details-${$}-props`},[$!=="basic"?(e.openBlock(),e.createElementBlock("div",cr,e.toDisplayString($==="advanced"?e.unref(a)("baseConfigCard.sections.advanced"):$==="plugin"?e.unref(a)("baseConfigCard.sections.plugin"):e.unref(a)("baseConfigCard.sections.policy")),1)):e.createCommentVNode("",!0),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.propertyCollections[$],m=>e.renderSlot(v.$slots,`config-card-item-${m.key}`,{row:m},()=>[(e.openBlock(),e.createBlock(_e,{key:m.key,item:m},e.createSlots({label:e.withCtx(()=>[e.renderSlot(v.$slots,`${m.key}-label`,{row:m},void 0,!0)]),[m.key]:e.withCtx(({rowValue:g})=>[e.renderSlot(v.$slots,m.key,{row:m,rowValue:g},void 0,!0)]),_:2},[i(m)?{name:"label-tooltip",fn:e.withCtx(()=>[e.renderSlot(v.$slots,`${m.key}-label-tooltip`,{row:m},void 0,!0)]),key:"0"}:void 0]),1032,["item"]))],!0)),256))],10,sr))),128))])):e.createCommentVNode("",!0),t.format==="json"&&l.value?(e.openBlock(),e.createBlock($e,{key:1,config:n.config,"entity-record":l.value,"fetcher-url":u.value,"request-method":"get","unredacted-record":s.value},null,8,["config","entity-record","fetcher-url","unredacted-record"])):e.createCommentVNode("",!0),t.format==="yaml"&&l.value?(e.openBlock(),e.createBlock(Le,{key:2,"deck-callout-preference-key":e.unref(f)?e.unref(y):void 0,"entity-record":l.value,"unredacted-record":s.value,"onDeckCallout:clickCta":C[0]||(C[0]=$=>v.$emit("request-deck-format"))},null,8,["deck-callout-preference-key","entity-record","unredacted-record"])):e.createCommentVNode("",!0),t.format==="terraform"&&l.value?(e.openBlock(),e.createBlock(Fe,{key:3,"entity-record":l.value,"entity-type":n.entityType,"sub-entity-type":n.subEntityType,"unredacted-record":s.value},null,8,["entity-record","entity-type","sub-entity-type","unredacted-record"])):e.createCommentVNode("",!0),t.format==="deck"&&l.value?(e.openBlock(),e.createBlock(Ve,{key:4,app:t.config.app,"control-plane-name":t.config.app==="konnect"?t.config.controlPlaneName:void 0,"customization-options":e.unref(c),"entity-record":l.value,"entity-type":n.entityType,"geo-api-server-url":t.config.app==="konnect"?t.config.geoApiServerUrl:void 0,"is-customization-modal-visible":t.isDeckCustomizationVisible,"kong-admin-api-url":t.config.app==="kongManager"?t.config.apiBaseUrl:void 0,"unredacted-record":s.value,workspace:t.config.workspace||void 0,onCustomizationClose:C[1]||(C[1]=$=>v.$emit("deck-customization:close"))},null,8,["app","control-plane-name","customization-options","entity-record","entity-type","geo-api-server-url","is-customization-modal-visible","kong-admin-api-url","unredacted-record","workspace"])):e.createCommentVNode("",!0)],64))}}),Nt=d._export_sfc(dr,[["__scopeId","data-v-83075649"]]),ur={class:"config-card-title","data-testid":"config-card-title"},fr={class:"config-card-actions"},pr={class:"row"},mr=["href"],gr={key:2,class:"config-card-details-section"},yr=e.defineComponent({__name:"EntityBaseConfigCard",props:{config:{type:Object,required:!0,validator:t=>!(!t||!["konnect","kongManager"].includes(t?.app)||t.app==="kongManager"&&typeof t.workspace!="string"||!t.entityId)},configSchema:{type:Object,required:!1,default:()=>({})},entityType:{type:String,required:!0,validator:t=>d.SupportedEntityTypesArray.includes(t)},subEntityType:{type:String,default:""},pluginConfigKey:{type:String,required:!1,default:""},pluginConfigSchema:{type:Object,required:!1,default:()=>({})},policyConfigKey:{type:String,required:!1,default:""},policyConfigSchema:{type:Object,required:!1,default:()=>({})},fetchUrl:{type:String,required:!0},dataKey:{type:String,required:!1,default:""},recordResolver:{type:Function,required:!1,default:t=>t},codeBlockRecordFormatter:{type:Function,required:!1,default:t=>t},codeBlockRecordResolver:{type:Function,required:!1,default:void 0},preserveCodeBlockTimestamps:{type:Boolean,required:!1,default:!1},hideTitle:{type:Boolean,default:!1},label:{type:String,default:"Format: ",required:!1},configCardDoc:{type:String,default:"",required:!1},titleTag:{type:String,default:"h2"},formatsToHide:{type:Array,required:!1,default:()=>[]}},emits:["loading","fetch:success","fetch:error","configFormatChange"],setup(t,{emit:n}){const o=n,a=t,{i18n:{t:i}}=d.composables.useI18n(),{getMessageFromError:r}=d.composables.useErrors(),{convertKeyToTitle:l}=d.composables.useStringHelpers(),s=d.composables.useSchema(),u=d.composables.useManagedByEnabled();d.composables.useSubSchema(a.pluginConfigKey);const{axiosInstance:f}=d.composables.useAxios(a.config?.axiosRequestConfig),c=e.ref(!1),{isDeckEnabled:y,deckCustomizationOptions:v}=d.composables.useBaseEntityDeckOptions(()=>a.config,()=>a.entityType),C=e.computed(()=>{const h=[{label:i("baseConfigCard.general.structuredFormat"),value:"structured",selected:!0},{label:i("baseForm.configuration.json"),value:"json"},{label:i("baseForm.configuration.yaml"),value:"yaml"}];a.config.app==="konnect"&&h.splice(2,0,{label:i("baseForm.configuration.terraform"),value:"terraform"}),y.value&&h.push({label:i("baseForm.configuration.deck"),value:"deck"});const A=new Set(a.formatsToHide);return h.filter(F=>F.value==="structured"||!A.has(F.value))}),$=e.ref("structured"),m=h=>{$.value=h?.value,o("configFormatChange",$.value)},g=(h,A)=>{localStorage.setItem(h,A)};e.watch($,h=>{a.config.formatPreferenceKey&&g(a.config.formatPreferenceKey,h)}),e.onMounted(()=>{if(a.config.formatPreferenceKey){const h=localStorage.getItem(a.config.formatPreferenceKey),A=C.value;h&&A.some(F=>F.value===h)?$.value=h:$.value=A[0]?.value??"structured",g(a.config.formatPreferenceKey,$.value)}});const E={id:{type:d.ConfigurationSchemaType.ID,label:i("baseConfigCard.commonFields.id_label"),order:0,section:d.ConfigurationSchemaSection.Basic},name:{order:1,section:d.ConfigurationSchemaSection.Basic},enabled:{type:d.ConfigurationSchemaType.BadgeStatus,order:2,section:d.ConfigurationSchemaSection.Basic},updated_at:{type:d.ConfigurationSchemaType.Date,label:i("baseConfigCard.commonFields.updated_at_label"),order:3,section:d.ConfigurationSchemaSection.Basic},created_at:{type:d.ConfigurationSchemaType.Date,label:i("baseConfigCard.commonFields.created_at_label"),order:4,section:d.ConfigurationSchemaSection.Basic},managed_by:{type:d.ConfigurationSchemaType.ManagedBy,label:i("baseConfigCard.commonFields.managed_by_label"),section:d.ConfigurationSchemaSection.Advanced},tags:{type:d.ConfigurationSchemaType.BadgeTag,order:-1,section:d.ConfigurationSchemaSection.Basic},labels:{type:d.ConfigurationSchemaType.BadgeTag,order:-1,section:d.ConfigurationSchemaSection.Basic},partials:{type:d.ConfigurationSchemaType.LinkInternal,label:i("baseConfigCard.commonFields.partial_label"),order:-1,section:d.ConfigurationSchemaSection.Basic}},p=e.ref(!1),k=e.ref(!1),I=e.ref(""),N=e.ref({}),D=e.ref(null),b=e.computed(()=>{if(!(!a.codeBlockRecordResolver||D.value==null))return a.codeBlockRecordResolver(D.value)}),S=e.ref(!1);e.provide(d.CONFIG_CARD_SHOW_SENSITIVE_FIELDS,S);const{redactByConfigSchema:O,redactByApiSchema:B,isObjectRecord:_,getApiSchemaField:T}=d.composables.useHelpers(),x=e.computed(()=>{const h=b.value||N.value;let A=h;if(_(h)&&Array.isArray(s?.value?.fields)){const F={};for(const w in h){const V=T(s?.value?.fields,w);F[w]=V?B(h[w],V):h[w]}A=F}return A=O(A,a.configSchema),a.codeBlockRecordResolver?a.codeBlockRecordResolver(A):A}),K=e.computed(()=>{if(!N.value)return[];const h=[],A=Object.keys(N.value).length;for(const F in N.value){if(F==="__ui_data"||F==="managed_by"&&!u.value)continue;const w=a.configSchema?.[F]?.order,V=E[F]?.order;let P=A;(V||V===0)&&(P=V===-1?A+1:V),w&&(P=w===-1?A+1:w),h.push([F,P])}return h.sort(function(F,w){return F[1]-w[1]}),h.map(F=>{const w=F[0],V=N.value?.[w],P=a.configSchema?.[w]||{},M=E[w];return{key:w,value:V,hidden:P.hidden||!1,type:P.type??(M?.type||d.ConfigurationSchemaType.Text),label:P.label??(M?.label||l(w)),tooltip:P.tooltip??(M?.tooltip||void 0),section:P.section??(M?.section||d.ConfigurationSchemaSection.Advanced)}}).filter(F=>!F.hidden&&F.key!==a.pluginConfigKey)}),Z=e.computed(()=>{if(!N.value||!a.pluginConfigKey)return[];const h=N.value[a.pluginConfigKey]||{},A=Object.keys(h).length,F=[];for(const w in h){const V=a.pluginConfigSchema?.[w]?.order,P=h[w];let M=P!=null&&P!==""?A-1:A;V&&(M=V===-1?A+1:V),F.push([w,M])}return F.sort(function(w,V){return w[1]-V[1]}),F.map(w=>{const V=w[0],P=h[V],M=a.pluginConfigSchema?.[V]||{};return{key:V,value:P,hidden:M.hidden||!1,type:M.type??d.ConfigurationSchemaType.Text,label:M.label??l(V),tooltip:M.tooltip??void 0,section:d.ConfigurationSchemaSection.Plugin}}).filter(w=>!w.hidden)}),W=e.computed(()=>{if(!N.value||!a.policyConfigKey)return[];const h=N.value[a.policyConfigKey]||{},A=Object.keys(h).length,F=[];for(const w in h){const V=a.policyConfigSchema?.[w]?.order,P=h[w];let M=P!=null&&P!==""?A-1:A;V&&(M=V===-1?A+1:V),F.push([w,M])}return F.sort(function(w,V){return w[1]-V[1]}),F.map(w=>{const V=w[0],P=h[V],M=a.policyConfigSchema?.[V]||{};return{key:V,value:P,hidden:M.hidden||!1,type:M.type??d.ConfigurationSchemaType.Text,label:M.label??l(V),tooltip:M.tooltip??void 0,section:d.ConfigurationSchemaSection.Policy}}).filter(w=>!w.hidden)}),H=e.computed(()=>({basic:K.value?.filter(h=>h.section===d.ConfigurationSchemaSection.Basic),advanced:K.value?.filter(h=>h.section===d.ConfigurationSchemaSection.Advanced),plugin:Z.value?.concat(K.value?.filter(h=>h.section===d.ConfigurationSchemaSection.Plugin)),policy:W.value?.concat(K.value?.filter(h=>h.section===d.ConfigurationSchemaSection.Policy))})),pe=e.computed(()=>{const h=[];return H.value.basic.length&&h.push("basic"),H.value.advanced.length&&h.push("advanced"),H.value.plugin.length&&h.push("plugin"),H.value.policy.length&&h.push("policy"),h}),G=e.computed(()=>{let h=`${a.config.apiBaseUrl}${a.fetchUrl}`;return a.config.app==="konnect"&&(h=h.replace(/{controlPlaneId}/gi,a.config?.controlPlaneId||"")),h.replace(/\/{workspace}/gi,a.config?.workspace?`/${a.config.workspace}`:"").replace(/{id}/gi,a.config.entityId)});return e.watch(p,h=>{o("loading",h)},{immediate:!0}),e.onBeforeMount(async()=>{k.value=!1,p.value=!0;try{const{data:h}=await f.get(G.value);if(D.value=h,a.dataKey)if(typeof h[a.dataKey]<"u")N.value={...h[a.dataKey]};else throw new Error(i("errors.dataKeyUndefined",{dataKey:a.dataKey}));else a.recordResolver?N.value={...a.recordResolver(h)}:N.value={...h};Object.keys(a.configSchema).filter(F=>a.configSchema[F].forceShow).forEach(F=>{N.value&&typeof N.value[F]>"u"&&(N.value[F]=null)}),o("fetch:success",h)}catch(h){D.value=null;const A=r(h);I.value=A.startsWith("code")?i("baseConfigCard.errors.load"):A,k.value=!0,o("fetch:error",h)}finally{p.value=!1}}),(h,A)=>{const F=e.resolveComponent("KCheckbox"),w=e.resolveComponent("KLabel"),V=e.resolveComponent("KSelect"),P=e.resolveComponent("KButton"),M=e.resolveComponent("KSkeleton"),_t=e.resolveComponent("KEmptyState"),$t=e.resolveComponent("KCard");return e.openBlock(),e.createBlock($t,{class:"kong-ui-entity-base-config-card","title-tag":t.titleTag},e.createSlots({actions:e.withCtx(()=>[e.createElementVNode("div",fr,[e.renderSlot(h.$slots,"actions",{},void 0,!0),e.createVNode(F,{modelValue:S.value,"onUpdate:modelValue":A[0]||(A[0]=J=>S.value=J),class:"sensitive-fields-checkbox","data-testid":"sensitive-fields-checkbox",label:e.unref(i)("baseConfigCard.actions.sensitive_fields"),"label-attributes":{info:e.unref(i)("baseConfigCard.actions.sensitive_fields_tooltip"),tooltipAttributes:{maxWidth:"200",placement:"top"}}},null,8,["modelValue","label","label-attributes"]),e.createElementVNode("div",pr,[e.createVNode(w,{class:"config-format-select-label","data-testid":"config-format-select-label"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(t.label),1)]),_:1}),e.createVNode(V,{modelValue:$.value,"onUpdate:modelValue":A[1]||(A[1]=J=>$.value=J),"data-testid":"select-config-format",items:C.value,onChange:m},null,8,["modelValue","items"])]),$.value==="deck"&&e.unref(v)?(e.openBlock(),e.createBlock(P,{key:0,appearance:"secondary",class:"button-customize-deck","data-testid":"config-deck-customize-button",onClick:A[2]||(A[2]=J=>c.value=!0)},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(i)("baseConfigCard.actions.deck_customize")),1)]),_:1})):e.createCommentVNode("",!0),t.configCardDoc?(e.openBlock(),e.createBlock(P,{key:1,appearance:"tertiary",class:"book-icon","data-testid":"book-icon"},{default:e.withCtx(()=>[e.createElementVNode("a",{href:t.configCardDoc,rel:"noopener",target:"_blank"},[e.createVNode(e.unref(q.BookIcon),{size:`var(--kui-icon-size-40, ${e.unref(ae)})`},null,8,["size"])],8,mr)]),_:1})):e.createCommentVNode("",!0)])]),default:e.withCtx(()=>[p.value?(e.openBlock(),e.createBlock(M,{key:0,"data-testid":"config-card-loader","table-columns":2,type:"table"})):k.value?(e.openBlock(),e.createBlock(_t,{key:1,"data-testid":"config-card-fetch-error","icon-variant":"error"},{default:e.withCtx(()=>[e.createElementVNode("h3",null,e.toDisplayString(I.value),1)]),_:1})):(e.openBlock(),e.createElementBlock("div",gr,[e.createVNode(Nt,{"code-block-record":b.value,"code-block-record-formatter":t.codeBlockRecordFormatter,"code-block-record-redacted":S.value?void 0:x.value,config:t.config,"entity-type":t.entityType,"fetcher-url":G.value,format:$.value,"is-deck-customization-visible":c.value,"preserve-code-block-timestamps":t.preserveCodeBlockTimestamps,"prop-list-types":pe.value,"property-collections":H.value,record:N.value,"sub-entity-type":t.subEntityType,"onDeckCustomization:close":A[3]||(A[3]=J=>c.value=!1),onRequestDeckFormat:A[4]||(A[4]=J=>$.value="deck")},e.createSlots({_:2},[e.renderList(Object.keys(h.$slots),J=>({name:J,fn:e.withCtx(It=>[e.renderSlot(h.$slots,J,e.mergeProps({record:N.value},It),void 0,!0)])}))]),1032,["code-block-record","code-block-record-formatter","code-block-record-redacted","config","entity-type","fetcher-url","format","is-deck-customization-visible","preserve-code-block-timestamps","prop-list-types","property-collections","record","sub-entity-type"])]))]),_:2},[t.hideTitle?void 0:{name:"title",fn:e.withCtx(()=>[e.createElementVNode("span",ur,[e.renderSlot(h.$slots,"title",{},()=>[e.createTextVNode(e.toDisplayString(e.unref(i)("baseConfigCard.title")),1)],!0)])]),key:"0"}]),1032,["title-tag"])}}}),vr=d._export_sfc(yr,[["__scopeId","data-v-69371376"]]),kr=["novalidate"],hr={key:0,class:"button-customize-deck-wrapper"},Cr=e.defineComponent({__name:"EntityBaseForm",props:{config:{type:Object,required:!0,validator:t=>!(!t||!["konnect","kongManager"].includes(t?.app)||t.app==="konnect"&&!t.controlPlaneId||t.app==="kongManager"&&typeof t.workspace!="string")},editId:{type:String,required:!1,default:null},entityType:{type:String,required:!0,validator:t=>d.SupportedEntityTypesArray.includes(t)},subEntityType:{type:String,required:!1,default:""},fetchUrl:{type:String,required:!1,default:""},isReadonly:{type:Boolean,required:!1,default:!1},canSubmit:{type:Boolean,required:!1,default:void 0},errorMessage:{type:String,required:!1,default:""},formFields:{type:Object,required:!0},noValidate:{type:Boolean,default:!1},wrapperComponent:{type:String,default:"KCard"},actionTeleportTarget:{type:String,default:void 0},hideActions:{type:Boolean,default:!1},slidoutTopOffset:{type:Number,default:60},alignActionButtonToLeft:{type:Boolean,default:!1},saveButtonText:{type:String,default:void 0},cancelButtonText:{type:String,default:void 0},slideoutFetchUrl:{type:String,default:void 0},slideoutRequestMethod:{type:String,default:void 0},slideoutDeckEntityType:{type:String,default:void 0},tabsToHide:{type:Array,required:!1,default:()=>[]}},emits:["loading","fetch:success","fetch:error","submit","cancel","codeBlockTabChange"],setup(t,{expose:n,emit:o}){const a=e.inject(d.PLUGIN_FORM_LAYOUT_STATE,e.ref(!1)),i=o,r=t,l=Pt.useRouter(),{i18n:{t:s}}=d.composables.useI18n(),{getMessageFromError:u}=d.composables.useErrors(),{axiosInstance:f}=d.composables.useAxios(r.config?.axiosRequestConfig),c=e.ref(!1),y=e.computed(()=>!!r.editId),v=e.ref(!1),C=e.ref(""),$=e.computed(()=>r.canSubmit===!1||r.isReadonly),m=e.ref(!1),g=e.computed(()=>{let _=`${r.config.apiBaseUrl}${r.fetchUrl}`;return r.config.app==="konnect"&&(_=_.replace(/{controlPlaneId}/gi,r.config?.controlPlaneId||"")),_=_.replace(/\/{workspace}/gi,r.config?.workspace?`/${r.config.workspace}`:""),r.editId?(_=_.replace(/{id}/gi,r.editId),_):(_=_.replace(/\/{id}/gi,""),_)}),E=e.ref(!1),{isDeckEnabled:p,deckCustomizationOptions:k,deckCalloutPreferenceKey:I}=d.composables.useBaseFormDeckOptions(()=>r.config,()=>r.entityType),N=()=>{m.value=!m.value},D=()=>{r.config.cancelRoute?l.push(r.config.cancelRoute):b()},b=()=>{i("cancel")},S=()=>{$.value||i("submit")},O=e.computed(()=>{const _=[{title:s("baseForm.configuration.json"),hash:"#json"},{title:s("baseForm.configuration.yaml"),hash:"#yaml"}];r.config.app==="konnect"&&r.entityType!==d.SupportedEntityType.Other&&_.splice(1,0,{title:s("baseForm.configuration.terraform"),hash:"#terraform"}),p.value&&_.push({title:s("baseForm.configuration.deck"),hash:"#deck"});const T=new Set(r.tabsToHide.map(x=>`#${x}`));return _.filter(x=>!T.has(x.hash))}),B=e.ref(O.value[0]?.hash);return e.watch(O,_=>{_.some(T=>T.hash===B.value)||(B.value=_[0]?.hash)}),e.watch(()=>c.value,_=>{i("loading",_)},{immediate:!0}),e.onBeforeMount(async()=>{if(r.editId)try{v.value=!1,c.value=!0;const{data:_}=await f.get(g.value);i("fetch:success",_)}catch(_){const T=u(_);C.value=T.startsWith("code")?s("baseForm.errors.edit"):T,v.value=!0,i("fetch:error",_)}finally{c.value=!1}}),n({viewConfig:N,formCancel:b,formSubmit:S}),(_,T)=>{const x=e.resolveComponent("KSkeleton"),K=e.resolveComponent("KEmptyState"),Z=e.resolveComponent("KAlert"),W=e.resolveComponent("KButton"),H=e.resolveComponent("KTabs"),pe=e.resolveComponent("KSlideout");return e.openBlock(),e.createBlock(e.resolveDynamicComponent(t.wrapperComponent),{class:e.normalizeClass(["kong-ui-entity-base-form",{"new-form-layout":e.unref(a)&&t.entityType===e.unref(d.SupportedEntityType).Plugin}])},{default:e.withCtx(()=>[c.value?(e.openBlock(),e.createBlock(x,{key:0,type:"form"})):v.value?(e.openBlock(),e.createBlock(K,{key:1,"action-button-text":e.unref(s)("baseForm.actions.back"),"data-testid":"form-fetch-error","icon-variant":"error",onClickAction:D},{default:e.withCtx(()=>[e.createElementVNode("h3",null,e.toDisplayString(C.value),1)]),_:1},8,["action-button-text"])):(e.openBlock(),e.createElementBlock("form",{key:2,"data-testid":"form-content",novalidate:r.noValidate,onReset:e.withModifiers(b,["prevent"]),onSubmit:e.withModifiers(S,["prevent"])},[e.renderSlot(_.$slots,"default",{},void 0,!0),t.errorMessage?(e.openBlock(),e.createBlock(Z,{key:0,appearance:"danger",class:"form-error","data-testid":"form-error",message:t.errorMessage},null,8,["message"])):e.createCommentVNode("",!0),t.hideActions?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(e.Teleport,{key:1,disabled:!t.actionTeleportTarget,to:t.actionTeleportTarget},[e.createElementVNode("div",{class:e.normalizeClass(["form-actions",{"form-actions-reverted":t.alignActionButtonToLeft}]),"data-testid":"form-actions"},[e.renderSlot(_.$slots,"form-actions",{},()=>[e.createVNode(W,{appearance:"tertiary","data-testid":`${t.entityType}-${y.value?"edit":"create"}-form-view-configuration`,onClick:T[0]||(T[0]=G=>N())},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(m.value?e.unref(s)("baseForm.actions.hideConfiguration"):e.unref(s)("baseForm.actions.viewConfiguration")),1)]),_:1},8,["data-testid"]),e.createVNode(W,{appearance:"secondary","data-testid":`${t.entityType}-${y.value?"edit":"create"}-form-cancel`,disabled:t.isReadonly,type:"reset",onClick:T[1]||(T[1]=G=>!!t.actionTeleportTarget&&b())},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(t.cancelButtonText??e.unref(s)("baseForm.actions.cancel")),1)]),_:1},8,["data-testid","disabled"]),e.createVNode(W,{appearance:"primary","data-testid":`${t.entityType}-${y.value?"edit":"create"}-form-submit`,disabled:$.value,type:"submit",onClick:T[2]||(T[2]=G=>!!t.actionTeleportTarget&&S())},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(t.saveButtonText??e.unref(s)("baseForm.actions.save")),1)]),_:1},8,["data-testid","disabled"])],!0)],2)],8,["disabled","to"]))],40,kr)),e.createVNode(pe,{"close-on-blur":!1,"data-testid":"form-view-configuration-slideout","has-overlay":!1,"offset-top":t.slidoutTopOffset,title:e.unref(s)("baseForm.configuration.title"),visible:m.value,onClose:T[8]||(T[8]=G=>N())},{default:e.withCtx(()=>[e.createElementVNode("div",null,[e.renderSlot(_.$slots,"configuration-slideout-message",{},()=>[e.createTextVNode(e.toDisplayString(e.unref(s)("baseForm.configuration.message")),1)],!0)]),e.createVNode(H,{modelValue:B.value,"onUpdate:modelValue":T[6]||(T[6]=G=>B.value=G),"data-testid":"form-view-configuration-slideout-tabs",tabs:O.value,onChange:T[7]||(T[7]=G=>i("codeBlockTabChange",G.replace("#","")))},{json:e.withCtx(()=>[e.createVNode($e,{config:t.config,"entity-record":r.formFields,"fetcher-url":r.slideoutFetchUrl??g.value,"request-method":r.slideoutRequestMethod??(r.editId?"put":"post")},null,8,["config","entity-record","fetcher-url","request-method"])]),yaml:e.withCtx(()=>[e.createVNode(Le,{"deck-callout-preference-key":e.unref(p)?e.unref(I):void 0,"entity-record":r.formFields,"onDeckCallout:clickCta":T[3]||(T[3]=G=>B.value="#deck")},null,8,["deck-callout-preference-key","entity-record"])]),terraform:e.withCtx(()=>[e.createVNode(Fe,{"entity-record":r.formFields,"entity-type":t.entityType,"sub-entity-type":t.subEntityType},null,8,["entity-record","entity-type","sub-entity-type"])]),deck:e.withCtx(()=>[e.unref(k)?(e.openBlock(),e.createElementBlock("div",hr,[e.createVNode(W,{appearance:"secondary",class:"button-customize-deck",onClick:T[4]||(T[4]=G=>E.value=!0)},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(s)("baseConfigCard.actions.deck_customize")),1)]),_:1})])):e.createCommentVNode("",!0),e.createVNode(Ve,{app:t.config.app,"control-plane-name":t.config.app==="konnect"?t.config.controlPlaneName:void 0,"customization-options":e.unref(k),"entity-record":r.formFields,"entity-type":r.slideoutDeckEntityType??t.entityType,"geo-api-server-url":t.config.app==="konnect"?t.config.geoApiServerUrl:void 0,"is-customization-modal-visible":E.value,"kong-admin-api-url":t.config.app==="kongManager"?t.config.apiBaseUrl:void 0,workspace:t.config.workspace||void 0,onCustomizationClose:T[5]||(T[5]=G=>E.value=!1)},null,8,["app","control-plane-name","customization-options","entity-record","entity-type","geo-api-server-url","is-customization-modal-visible","kong-admin-api-url","workspace"])]),_:1},8,["modelValue","tabs"])]),_:3},8,["offset-top","title","visible"])]),_:3},8,["class"])}}}),br=d._export_sfc(Cr,[["__scopeId","data-v-b3590221"]]),Sr=["data-truncate"],Br=e.defineComponent({__name:"EntityBaseTableCell",props:{keyName:{type:String,required:!0},rowEl:{type:[Object,null],required:!0},tooltip:{type:Boolean,default:!1}},setup(t){const n=t,o=e.computed(()=>n.rowEl?.querySelector(`[data-testid="${n.keyName}"]`)||null),a=e.computed(()=>o.value?.querySelector('[data-truncate="true"]')||null),i=e.computed(()=>{const g=n.rowEl?.querySelectorAll("td");return g?g[0]?.getAttribute("data-testid")===n.keyName:!0}),r=e.computed(()=>i.value||n.tooltip);let l;const s=()=>{l&&(l.disconnect(),l=void 0)},u=()=>{let g=o.value?.clientWidth||0;if(o.value&&"getComputedStyle"in window){const E=window.getComputedStyle(o.value);g-=(parseFloat(E.paddingLeft)||0)+(parseFloat(E.paddingRight)||0)}c.value=a.value?.getBoundingClientRect().width||0,y.value=g,v.value=f.value?.innerText||""},f=e.ref({}),c=e.ref(0),y=e.ref(0),v=e.ref(""),C=e.computed(()=>[a.value,o.value]),$=e.watch(C,g=>{if(r.value&&(s(),"ResizeObserver"in window&&window)){l=new ResizeObserver(E=>{window.requestAnimationFrame(()=>{!Array.isArray(E)||!E.length||u()})});for(const E of g)E&&l.observe(E)}},{immediate:!0,flush:"post",deep:!0}),m=e.computed(()=>r.value?c.value>y.value:!1);return e.onMounted(()=>{u()}),e.onUnmounted(()=>{$()}),(g,E)=>{const p=e.resolveComponent("KTooltip");return e.openBlock(),e.createElementBlock("span",{ref_key:"contentRef",ref:f,class:"content-wrapper"},[r.value?(e.openBlock(),e.createElementBlock("span",{key:0,"data-truncate":r.value||void 0},[e.createVNode(p,{"max-width":"300",placement:"bottom-start",text:m.value?v.value:""},{default:e.withCtx(()=>[e.renderSlot(g.$slots,"default",{},void 0,!0)]),_:3},8,["text"])],8,Sr)):e.renderSlot(g.$slots,"default",{},void 0,!0,1)],512)}}}),Tr=d._export_sfc(Br,[["__scopeId","data-v-a3a65cac"]]),Er={class:"toolbar-container"},Nr={key:0,class:"toolbar-button-container"},_r={key:0,class:"hidden"},$r=e.defineComponent({__name:"EntityBaseTable",props:{tableHeaders:{type:Object,required:!0,default:()=>({})},fetcher:{type:Function,required:!0,default:async()=>({data:[],total:0})},initialFetcherParams:{type:Object,default:null},rowKey:{type:[String,Function],default:"id"},cacheIdentifier:{type:String,default:""},fetcherCacheKey:{type:Number,default:1},isLoading:{type:Boolean,default:!1},query:{type:String,default:""},enableClientSort:{type:Boolean,default:!1},sortHandlerFunction:{type:Function,default:null},enableEntityActions:{type:Boolean,default:!0},emptyStateOptions:{type:Object,default:()=>({})},errorMessage:{type:[String,Object],default:null},paginationAttributes:{type:Object,default:()=>({})},hidePaginationWhenOptional:{type:Boolean,default:!0},disableSorting:{type:Boolean,default:void 0},cellAttributes:{type:Function,default:()=>({})},rowAttributes:{type:Function,default:()=>({})},preferencesStorageKey:{type:String,default:""},defaultTablePreferences:{type:Object,default:null,required:!1},title:{type:String,default:""},titleTag:{type:String,default:"h2"},disableRowClick:{type:Boolean,default:!1},hidePagination:{type:Boolean,default:!1},hideToolbar:{type:Boolean,default:void 0},disablePaginationPageJump:{type:Boolean,default:void 0,validator:t=>(t&&console.warn("EntityBaseTable: `disablePaginationPageJump` is deprecated in favour of `paginationAttributes`. Please update your code to use `paginationAttributes` instead."),typeof t=="boolean")},paginationType:{type:String,default:void 0,validator:t=>(t&&console.warn("EntityBaseTable: `paginationType` is deprecated in favour of `paginationAttributes`. Please update your code to use `paginationAttributes` instead."),["default","offset"].includes(t))}},emits:["click:row","sort","clear-search-input","empty-state-cta-clicked","state"],setup(t,{emit:n}){const o=t,a=n,{i18n:{t:i}}=d.composables.useI18n(),r=e.computed(()=>typeof o.errorMessage=="string"?{hasError:!!o.errorMessage,title:o.errorMessage,message:void 0}:{hasError:!!o.errorMessage,title:o.errorMessage?.title,message:o.errorMessage?.message}),l=e.computed(()=>o.cacheIdentifier||o.preferencesStorageKey),s=e.computed(()=>{const B=[];return Object.keys(o.tableHeaders).forEach(T=>{const x=o.tableHeaders[T];B.push({label:x.label??T,key:T,sortable:x.sortable??!1,hidable:x.hidable??!0})}),o.enableEntityActions&&B.push({key:"actions",hideLabel:!0}),B}),u=B=>({"data-rowid":B.id,"data-testid":B.name,...o.rowAttributes(B)}),f=e.ref({}),c=B=>f.value?.$el.querySelector(`[data-rowid="${B.id}"]`),y=B=>{const _={"data-testid":B.headerKey,...o.cellAttributes(B)};return B.colIndex===0&&(_.style={maxWidth:"250px",overflowX:"hidden",textOverflow:"ellipsis"}),_},v=B=>{p(B),a("state",B)},C=()=>{a("empty-state-cta-clicked"),$()},$=()=>{a("clear-search-input")},m=e.computed(()=>o.disableRowClick?void 0:(B,_)=>{a("click:row",_)}),g=B=>{a("sort",B)},{hideTableToolbar:E,handleStateChange:p}=d.composables.useTableState(()=>o.query),{setTablePreferences:k,getTablePreferences:I}=d.de(),N=()=>{const B=I(l.value,o.defaultTablePreferences),_=o.defaultTablePreferences?.columnVisibility;return{...d.ne,...B,..._?{columnVisibility:{..._,...B.columnVisibility}}:{}}},D=e.ref(N()),b=e.computed(()=>{const B=I(l.value);return{...o.initialFetcherParams,...B}}),S=B=>{D.value=B,s.value.forEach(_=>{!("hidable"in _)||!D.value.columnVisibility||_.hidable===!1&&(D.value.columnVisibility[_.key]=!0)}),l.value&&k(l.value,B)},O=e.computed(()=>({disablePageJump:o.disablePaginationPageJump,offset:o.paginationType==="offset",...o.paginationAttributes}));return(B,_)=>{const T=e.resolveComponent("KTableData"),x=e.resolveComponent("KCard");return e.openBlock(),e.createBlock(x,{class:"kong-ui-entity-base-table",title:t.title,"title-tag":t.titleTag},{default:e.withCtx(()=>[e.createVNode(T,{ref_key:"tableRefs",ref:f,"cache-identifier":l.value,"cell-attrs":y,"client-sort":t.enableClientSort,"empty-state-action-message":t.query?e.unref(i)("baseTable.emptyState.noSearchResultsCtaText"):t.emptyStateOptions.ctaText,"empty-state-action-route":t.query?void 0:t.emptyStateOptions.ctaPath,"empty-state-icon-variant":t.query?"search":"kong","empty-state-message":t.query?e.unref(i)("baseTable.emptyState.noSearchResultsMessage"):t.emptyStateOptions.message,"empty-state-title":t.query?e.unref(i)("baseTable.emptyState.noSearchResultsTitle"):t.emptyStateOptions.title,error:r.value.hasError,"error-state-message":r.value.message,"error-state-title":r.value.title,fetcher:t.fetcher,"fetcher-cache-key":String(t.fetcherCacheKey),headers:s.value,"hide-pagination":t.hidePagination,"hide-pagination-when-optional":t.hidePaginationWhenOptional,"hide-toolbar":t.hideToolbar??e.unref(E),"initial-fetcher-params":b.value,loading:t.isLoading,"pagination-attributes":O.value,"resize-columns":"","row-attrs":u,"row-key":t.rowKey,"search-input":t.query,"sort-handler-function":t.enableClientSort?t.sortHandlerFunction:void 0,sortable:!t.disableSorting,"table-preferences":D.value,onEmptyStateActionClick:C,"onRow:click":m.value,onSort:_[0]||(_[0]=K=>g(K)),onState:v,"onUpdate:tablePreferences":S},e.createSlots({toolbar:e.withCtx(()=>[e.createElementVNode("div",Er,[e.renderSlot(B.$slots,"toolbar-filter",{},void 0,!0),B.$slots["toolbar-button"]?(e.openBlock(),e.createElementBlock("div",Nr,[e.renderSlot(B.$slots,"toolbar-button",{},void 0,!0)])):e.createCommentVNode("",!0)])]),"action-items":e.withCtx(({row:K})=>[e.renderSlot(B.$slots,"actions",{row:K},void 0,!0)]),_:2},[B.$slots["empty-state"]?{name:"empty-state",fn:e.withCtx(()=>[e.renderSlot(B.$slots,"empty-state",{},void 0,!0)]),key:"0"}:void 0,e.renderList(t.tableHeaders,(K,Z)=>({name:Z,fn:e.withCtx(({row:W,rowValue:H})=>[e.createVNode(Tr,{"key-name":String(Z),"row-el":c(W),tooltip:K.tooltip},{default:e.withCtx(()=>[e.renderSlot(B.$slots,Z,{row:W,rowKey:t.rowKey,rowValue:H},()=>[e.createTextVNode(e.toDisplayString(H),1)],!0)]),_:2},1032,["key-name","row-el","tooltip"])])})),t.query?void 0:{name:"empty-state-action-icon",fn:e.withCtx(()=>[e.createVNode(e.unref(q.AddIcon))]),key:"1"}]),1032,["cache-identifier","client-sort","empty-state-action-message","empty-state-action-route","empty-state-icon-variant","empty-state-message","empty-state-title","error","error-state-message","error-state-title","fetcher","fetcher-cache-key","headers","hide-pagination","hide-pagination-when-optional","hide-toolbar","initial-fetcher-params","loading","pagination-attributes","row-key","search-input","sort-handler-function","sortable","table-preferences","onRow:click"]),B.$slots["outside-actions"]&&e.unref(E)?(e.openBlock(),e.createElementBlock("div",_r,[e.renderSlot(B.$slots,"outside-actions",{},void 0,!0)])):e.createCommentVNode("",!0)]),_:3},8,["title","title-tag"])}}}),Ir=d._export_sfc($r,[["__scopeId","data-v-bcc0ec48"]]),Or={key:0,class:"kong-ui-entity-delete-error"},Ar={key:1,class:"description"},xr={key:2,class:"extra"},wr=e.defineComponent({__name:"EntityDeleteModal",props:{visible:{type:Boolean,required:!0},title:{type:String,default:"Delete"},entityType:{type:String,required:!0},entityName:{type:String,default:""},entityTypeDisplay:{type:String,default:""},needConfirm:{type:Boolean,default:!0},description:{type:String,default:""},actionPending:{type:Boolean,default:!1},confirmDisabled:{type:Boolean,default:!1},error:{type:String,default:""},confirmationPrompt:{type:String,default:""},stackedCopy:{type:Boolean,default:!1}},emits:["cancel","proceed"],setup(t,{emit:n}){const{i18nT:o}=d.composables.useI18n(),a=t,i=n,r=e.computed(()=>a.entityTypeDisplay.trim()!==""?a.entityTypeDisplay:a.entityType),l=e.computed(()=>a.needConfirm?a.entityName:""),s=()=>{i("cancel")},u=()=>{i("proceed")};return(f,c)=>{const y=e.resolveComponent("KAlert"),v=e.resolveComponent("KPrompt");return e.openBlock(),e.createBlock(v,{"action-button-appearance":"danger","action-button-disabled":t.actionPending||t.confirmDisabled,"action-button-text":"Yes, delete",class:e.normalizeClass(["kong-ui-entity-delete-modal",{"kong-ui-entity-delete-modal-stacked-copy":t.stackedCopy}]),"confirmation-prompt":t.confirmationPrompt||void 0,"confirmation-text":l.value,"data-testid":"entity-delete-modal",title:t.title,visible:t.visible,onCancel:s,onProceed:u},{default:e.withCtx(()=>[e.createElementVNode("div",{class:e.normalizeClass(["body",{"body-stacked-copy":t.stackedCopy}])},[t.error?(e.openBlock(),e.createElementBlock("div",Or,[e.createVNode(y,{appearance:"danger"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(t.error),1)]),_:1})])):e.createCommentVNode("",!0),e.renderSlot(f.$slots,"message",{},()=>[e.createVNode(e.unref(o),{class:"message",keypath:a.entityName?"deleteModal.messageWithName":"deleteModal.message",tag:"p"},e.createSlots({entityType:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(r.value),1)]),_:2},[a.entityName?{name:"entityName",fn:e.withCtx(()=>[e.createElementVNode("strong",null,e.toDisplayString(a.entityName),1)]),key:"0"}:void 0]),1032,["keypath"])],!0),a.description||f.$slots.description?(e.openBlock(),e.createElementBlock("div",Ar,[e.renderSlot(f.$slots,"description",{},()=>[e.createElementVNode("p",null,e.toDisplayString(a.description),1)],!0)])):e.createCommentVNode("",!0),f.$slots.extra?(e.openBlock(),e.createElementBlock("div",xr,[e.renderSlot(f.$slots,"extra",{},void 0,!0)])):e.createCommentVNode("",!0)],2)]),_:3},8,["action-button-disabled","class","confirmation-prompt","confirmation-text","title","visible"])}}}),Lr=d._export_sfc(wr,[["__scopeId","data-v-61f55f42"]]),Fr={key:1,class:"kong-ui-entity-filter"},Vr={class:"kong-ui-entity-filter-menu"},Rr=["data-testid"],Dr=["onClick","onKeydown"],Kr={class:"menu-item-indicator"},Pr={class:"menu-item-body"},Mr=["for"],Ur={class:"menu-item-buttons"},qr={class:"filter-clear-button-container"},jr=e.defineComponent({__name:"EntityFilter",props:{config:{type:Object,required:!0,default:()=>({isExactMatch:!0,placeholder:""})},modelValue:{type:String,required:!0}},emits:["update:modelValue"],setup(t,{emit:n}){const{i18n:{t:o}}=d.composables.useI18n(),a=t,i=n,r=e.ref(!1),l=e.ref({}),s=e.ref(new Set),u=e.computed(()=>{const b=[];return new URLSearchParams(a.modelValue).forEach((S,O)=>{S!==""&&b.push(O)}),b}),f=e.computed(()=>{const b=a.config.fields;return Object.keys(b).filter(S=>b?.[S]?.searchable).map(S=>({label:b[S].label||S,value:S,expanded:!1}))});e.watch(()=>a.modelValue,b=>{l.value={},new URLSearchParams(b).forEach((S,O)=>{l.value[O]=S})});const c=()=>{r.value=!r.value},y=b=>{s.value.has(b)?s.value.delete(b):s.value.add(b)},v=b=>{i("update:modelValue",b)},C=()=>{v("")},$=b=>`filter-${b}`,m=b=>(a.config.schema?.[b]?.values??[]).map(S=>typeof S=="string"?{value:S,label:S}:S),g=b=>a.config.schema?.[b]?.type??"text",E=b=>{l.value={...l.value,[b]:""},k()},p=()=>{l.value={},k(!0)},k=(b=!1)=>{const S=Object.keys(l.value).reduce((O,B)=>(l.value[B]&&(O[B]=`${l.value[B]}`),O),{});b&&(r.value=!1),i("update:modelValue",new URLSearchParams(S).toString())},I=b=>!!a.config.schema?.[b]?.filterFunction,N=(b,S)=>{const O=a.config.schema?.[b];return O?.filterFunction===void 0?!0:O.filterFunction(S)},D=(b,S)=>{l.value[b]=S?S.custom?String(S.label):String(S.value):""};return(b,S)=>{const O=e.resolveComponent("KInput"),B=e.resolveComponent("KButton"),_=e.resolveComponent("KSelect");return t.config.isExactMatch?(e.openBlock(),e.createBlock(O,{key:0,autocomplete:"off",class:"kong-ui-entity-filter-input","data-testid":"search-input","model-value":t.modelValue,placeholder:t.config.placeholder,"onUpdate:modelValue":v},{before:e.withCtx(()=>[e.createVNode(e.unref(q.FilterIcon),{decorative:""})]),after:e.withCtx(()=>[e.withDirectives(e.createVNode(e.unref(q.CloseIcon),{class:"kong-ui-entity-filter-clear",role:"button",tabindex:"0",onClick:C},null,512),[[e.vShow,t.modelValue!==""]])]),_:1},8,["model-value","placeholder"])):(e.openBlock(),e.createElementBlock("div",Fr,[e.createVNode(B,{appearance:"tertiary","data-testid":"filter-button",onClick:c},{default:e.withCtx(()=>[e.createVNode(e.unref(q.FilterIcon),{decorative:""}),e.createTextVNode(" "+e.toDisplayString(e.unref(o)("filter.filterButtonText"))+" "+e.toDisplayString(u.value.length>0?`(${u.value.length})`:""),1)]),_:1}),e.withDirectives(e.createElementVNode("div",{class:"kong-ui-entity-filter-backdrop",onClick:c},null,512),[[e.vShow,r.value]]),e.withDirectives(e.createElementVNode("div",Vr,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(f.value,T=>(e.openBlock(),e.createElementBlock("div",{key:T.value,class:"kong-ui-entity-filter-menu-item","data-testid":T.value},[e.createElementVNode("span",{class:e.normalizeClass(["menu-item-title",{expanded:s.value.has(T.value)}]),role:"button",tabindex:"0",onClick:x=>y(T.value),onKeydown:e.withKeys(x=>y(T.value),["enter"])},[e.createTextVNode(e.toDisplayString(T.label)+" ",1),e.withDirectives(e.createElementVNode("span",Kr,null,512),[[e.vShow,u.value.includes(T.value)]]),e.createVNode(e.unref(q.ChevronDownIcon),{class:e.normalizeClass(["menu-item-expand-icon",{expanded:s.value.has(T.value)}]),color:`var(--kui-color-text-neutral-weak, ${e.unref(Zt)})`},null,8,["class","color"])],42,Dr),e.withDirectives(e.createElementVNode("div",Pr,[e.createElementVNode("label",{class:"menu-item-label",for:$(T.value)},e.toDisplayString(e.unref(o)("filter.fieldLabel")),9,Mr),t.config.schema?.[T.value]?.type==="select"?(e.openBlock(),e.createBlock(_,{key:0,id:$(T.value),"enable-filtering":I(T.value),"enable-item-creation":t.config.schema?.[T.value]?.enableItemCreation,"filter-function":x=>N(T.value,x),items:m(T.value),"model-value":l.value[T.value],placeholder:e.unref(o)("filter.selectPlaceholder"),onChange:x=>D(T.value,x)},null,8,["id","enable-filtering","enable-item-creation","filter-function","items","model-value","placeholder","onChange"])):(e.openBlock(),e.createBlock(O,{key:1,id:$(T.value),modelValue:l.value[T.value],"onUpdate:modelValue":x=>l.value[T.value]=x,autocomplete:"off",placeholder:e.unref(o)("filter.inputPlaceholder"),type:g(T.value)},null,8,["id","modelValue","onUpdate:modelValue","placeholder","type"]))],512),[[e.vShow,s.value.has(T.value)]]),e.withDirectives(e.createElementVNode("div",Ur,[e.createVNode(B,{appearance:"tertiary","data-testid":"apply-filter",size:"small",onClick:S[0]||(S[0]=x=>k(!0))},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(o)("filter.applyButtonText")),1)]),_:1}),e.createVNode(B,{appearance:"tertiary","data-testid":"clear-filter",size:"small",onClick:x=>E(T.value)},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(o)("filter.clearButtonText")),1)]),_:1},8,["onClick"])],512),[[e.vShow,s.value.has(T.value)]])],8,Rr))),128)),e.createElementVNode("div",qr,[e.createVNode(B,{appearance:"tertiary",size:"small",onClick:p},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(o)("filter.clearAllButtonText")),1)]),_:1})])],512),[[e.vShow,r.value]])]))}}}),zr=d._export_sfc(jr,[["__scopeId","data-v-10015be6"]]),Gr=e.defineComponent({__name:"EntityToggleModal",props:{visible:{type:Boolean,required:!0},action:{type:String,required:!0},entityId:{type:String,required:!0},entityType:{type:String,required:!0},entityName:{type:String,required:!0},onConfirm:{type:Function,required:!1,default:null}},emits:["cancel","proceed"],setup(t,{emit:n}){const{i18n:{t:o},i18nT:a}=d.composables.useI18n(),i=t,r=n,l=e.ref(!1),s=e.computed(()=>i.action==="enable"?o("toggleModal.enable.title",{entityType:i.entityType}):o("toggleModal.disable.title",{entityType:i.entityType})),u=e.computed(()=>i.action==="enable"?o("toggleModal.enable.confirmText"):o("toggleModal.disable.confirmText")),f=()=>r("cancel"),c=async()=>{if(i.onConfirm){l.value=!0;try{await i.onConfirm(),r("proceed")}catch(y){console.error(y)}finally{l.value=!1}}};return(y,v)=>{const C=e.resolveComponent("KPrompt");return e.openBlock(),e.createBlock(e.Teleport,{to:"body"},[e.createVNode(C,{"action-button-disabled":l.value,"action-button-text":u.value,"data-testid":`${t.entityType}-${t.entityId}-toggle-prompt`,title:s.value,visible:t.visible,onCancel:f,onProceed:c},{default:e.withCtx(()=>[e.createVNode(e.unref(a),{keypath:`toggleModal.${i.action}.message`,scope:"global"},{entityType:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(t.entityType),1)]),entityName:e.withCtx(()=>[e.createElementVNode("strong",null,e.toDisplayString(t.entityName),1)]),_:1},8,["keypath"])]),_:1},8,["action-button-disabled","action-button-text","data-testid","title","visible"])])}}}),Hr=e.defineComponent({__name:"PermissionsWrapper",props:{authFunction:{type:Function,required:!0,default:async()=>!0},forceShow:{type:Boolean,default:!1}},setup(t){const n=t,o=e.ref(void 0),a=e.computed(()=>o.value===!0||o.value!==void 0&&n.forceShow===!0);return e.watch(()=>n.authFunction,async()=>{o.value=await n.authFunction()},{immediate:!0}),(i,r)=>a.value?e.renderSlot(i.$slots,"default",{isAllowed:o.value},void 0,void 0,0):e.createCommentVNode("",!0)}}),j=[];for(let t=0;t<256;++t)j.push((t+256).toString(16).slice(1));function Yr(t,n=0){return(j[t[n+0]]+j[t[n+1]]+j[t[n+2]]+j[t[n+3]]+"-"+j[t[n+4]]+j[t[n+5]]+"-"+j[t[n+6]]+j[t[n+7]]+"-"+j[t[n+8]]+j[t[n+9]]+"-"+j[t[n+10]]+j[t[n+11]]+j[t[n+12]]+j[t[n+13]]+j[t[n+14]]+j[t[n+15]]).toLowerCase()}const Wr=new Uint8Array(16);function Jr(){return crypto.getRandomValues(Wr)}function Qr(t,n,o){return crypto.randomUUID?crypto.randomUUID():Xr(t)}function Xr(t,n,o){t=t||{};const a=t.random??t.rng?.()??Jr();if(a.length<16)throw new Error("Random bytes length must be >= 16");return a[6]=a[6]&15|64,a[8]=a[8]&63|128,Yr(a)}const Zr=["aria-labelledby"],ei={class:"form-section-wrapper"},ti={key:1,class:"form-section-description"},ni={key:2,class:"form-section-footer"},oi={class:"form-section-content"},ai=e.defineComponent({__name:"EntityFormSection",props:{title:{type:String,default:""},description:{type:String,default:""},hasDivider:{type:Boolean,default:!1},stickyInfoHeader:{type:Boolean,default:!0},hideInfoHeader:{type:Boolean,default:!1},titleTag:{type:String,default:"h2"}},setup(t){const n=e.useSlots(),o=Qr();return(a,i)=>(e.openBlock(),e.createElementBlock("div",{"aria-labelledby":t.title?e.unref(o):void 0,class:e.normalizeClass(["kong-ui-entity-form-section",{"has-divider":t.hasDivider}]),role:"group"},[e.createElementVNode("div",ei,[t.hideInfoHeader?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(["form-section-info",{sticky:t.stickyInfoHeader}])},[t.title?(e.openBlock(),e.createBlock(e.resolveDynamicComponent(t.titleTag),{key:0,id:e.unref(o),class:"form-section-title"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(t.title),1)]),_:1},8,["id"])):e.createCommentVNode("",!0),t.description||e.unref(n).description?(e.openBlock(),e.createElementBlock("div",ti,[e.renderSlot(a.$slots,"description",{},()=>[e.createElementVNode("p",null,e.toDisplayString(t.description),1)],!0)])):e.createCommentVNode("",!0),e.unref(n).footer?(e.openBlock(),e.createElementBlock("div",ni,[e.renderSlot(a.$slots,"footer",{},void 0,!0)])):e.createCommentVNode("",!0)],2)),e.createElementVNode("div",oi,[e.renderSlot(a.$slots,"default",{},void 0,!0)])])],10,Zr))}}),ri=d._export_sfc(ai,[["__scopeId","data-v-ccd29028"]]),ii={class:"header"},li={key:0,class:"step","data-testid":"form-block-step"},si={class:"header-content"},ci={class:"header-title","data-testid":"header-title"},di={key:0,class:"header-description","data-testid":"header-description"},ui={key:1,class:"header-extra","data-testid":"header-extra"},fi={class:"content","data-testid":"form-block-content"},pi=e.defineComponent({__name:"EntityFormBlock",props:{step:{default:()=>{}},title:{default:""},description:{default:""}},setup(t){const n=e.useSlots();return(o,a)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["kong-ui-entity-form-block",{stepped:t.step!==void 0||n.step}])},[e.createElementVNode("header",ii,[t.step!==void 0||n.step?(e.openBlock(),e.createElementBlock("div",li,[e.renderSlot(o.$slots,"step",{},()=>[e.createTextVNode(e.toDisplayString(t.step),1)],!0)])):e.createCommentVNode("",!0),e.createElementVNode("div",si,[e.createElementVNode("h2",ci,[e.renderSlot(o.$slots,"title",{},()=>[e.createTextVNode(e.toDisplayString(t.title),1)],!0)]),t.description||n.description?(e.openBlock(),e.createElementBlock("div",di,[e.renderSlot(o.$slots,"description",{},()=>[e.createTextVNode(e.toDisplayString(t.description),1)],!0)])):e.createCommentVNode("",!0)]),n.extra?(e.openBlock(),e.createElementBlock("div",ui,[e.renderSlot(o.$slots,"extra",{},void 0,!0)])):e.createCommentVNode("",!0)]),e.createElementVNode("div",fi,[e.renderSlot(o.$slots,"default",{},void 0,!0)])],2))}}),mi=d._export_sfc(pi,[["__scopeId","data-v-7dd2f21d"]]),gi={class:"kong-ui-public-entity-link","data-testid":"entity-link-parent"},yi={key:0,class:"deleted-entity"},vi={key:1},ki=["onClick"],hi=e.defineComponent({__name:"EntityLink",props:{entityLinkData:{type:Object,required:!0},externalLink:{type:String,required:!1,default:""},newWindow:{type:Boolean,required:!1,default:!1},allowCopy:{type:Boolean,required:!1,default:!1}},setup(t){const n=t,o=e.ref(),{isTruncated:a}=d.composables.useTruncationDetector(o),{i18n:{t:i}}=d.composables.useI18n(),r=e.shallowRef("body"),l=()=>{const C=document.fullscreenElement;r.value=C instanceof HTMLElement?C:"body"};e.onMounted(()=>{l(),document.addEventListener("fullscreenchange",l)}),e.onBeforeUnmount(()=>{document.removeEventListener("fullscreenchange",l)});const s=i("global.actions.copyId"),u=e.ref(s),f=e.computed(()=>n.entityLinkData.deleted??!1),c=e.computed(()=>n.entityLinkData.id?.toString().includes(":")?n.entityLinkData.id.toString().split(":")[1]:n.entityLinkData.id),y=e.computed(()=>`${c.value?.toString().slice(0,5)} (deleted)`),v=async C=>{await C(c.value||"")&&(u.value=i("global.actions.copyToClipboard"),setTimeout(()=>{u.value=s},1800))};return(C,$)=>{const m=e.resolveComponent("KTooltip"),g=e.resolveComponent("KExternalLink"),E=e.resolveComponent("KClipboardProvider");return e.openBlock(),e.createElementBlock("div",gi,[f.value?(e.openBlock(),e.createElementBlock("div",yi,e.toDisplayString(y.value),1)):c.value?c.value?(e.openBlock(),e.createBlock(g,{key:2,class:"entity-link","hide-icon":!t.newWindow,href:t.externalLink,target:t.newWindow?"_blank":"_self"},{default:e.withCtx(()=>[e.createVNode(m,{target:r.value,text:e.unref(a)&&t.entityLinkData.label||""},{default:e.withCtx(()=>[e.createElementVNode("span",{ref_key:"textContent",ref:o,class:"entity-link-label"},e.toDisplayString(t.entityLinkData.label),513)]),_:1},8,["target","text"])]),_:1},8,["hide-icon","href","target"])):e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",vi,e.toDisplayString(" – "))),c.value&&t.allowCopy?(e.openBlock(),e.createBlock(m,{key:u.value,class:"copy-uuid-tooltip","max-width":"160",placement:"bottom-end",text:u.value},{default:e.withCtx(()=>[e.createVNode(E,null,{default:e.withCtx(({copyToClipboard:p})=>[e.createElementVNode("span",{class:"entity-link-copy-id",onClick:e.withModifiers(k=>v(p),["stop"])},[e.createVNode(e.unref(q.CopyIcon),{class:"copy-icon",color:`var(--kui-color-text-primary, ${e.unref(en)})`,"data-testid":"copy-id",size:`var(--kui-icon-size-30, ${e.unref(et)})`},null,8,["color","size"])],8,ki)]),_:1})]),_:1},8,["text"])):e.createCommentVNode("",!0)])}}}),Ci=d._export_sfc(hi,[["__scopeId","data-v-28214aed"]]),bi={class:"kong-ui-public-entity-empty-state"},Si={class:"entity-empty-state-content"},Bi={key:0,class:"empty-state-image"},Ti={key:1,class:"entity-empty-state-title"},Ei={key:2,class:"entity-empty-state-description"},Ni={key:3,class:"entity-empty-state-pricing"},_i={key:0,class:"entity-empty-state-message"},$i={key:1,class:"entity-empty-state-action"},Ii={key:2,class:"entity-empty-state-card-container"},Oi={key:0,class:"feature-icon"},Ai={class:"card-header"},xi=["title"],wi={key:3,class:"entity-empty-state-bottom-container"},Li=e.defineComponent({__name:"EntityEmptyState",props:{appearance:{type:String,default:()=>"primary",validator:t=>he.includes(t)},title:{type:String,default:""},description:{type:String,default:""},pricing:{type:String,default:""},canCreate:{type:Function,required:!1,default:async()=>!0},actionButtonText:{type:String,default:""},learnMore:{type:Boolean,default:!1},features:{type:Array,default:()=>[]}},emits:["click:create","click:learn-more"],setup(t){const n=t,{i18n:{t:o}}=d.composables.useI18n(),a=e.ref(!1),i=e.computed(()=>a.value&&!!n.actionButtonText),r=e.computed(()=>he.includes(n.appearance)?n.appearance:["primary",n.appearance]);return e.onBeforeMount(async()=>{a.value=await n.canCreate()}),e.onMounted(()=>e.warn(`EntityEmptyState is deprecated and will be removed in future releases. Please use the KEmptyState component instead.
|
|
78
|
+
'@ | ${p}`)}),(p,k)=>{const I=e.resolveComponent("KSelect"),N=e.resolveComponent("KBadge"),D=e.resolveComponent("KCodeBlock"),b=e.resolveComponent("KAlert"),S=e.resolveComponent("KButton");return e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createElementVNode("div",e.mergeProps({class:"deck-config config-card-code-block"},p.$attrs),[e.createVNode(I,{modelValue:y.value,"onUpdate:modelValue":k[0]||(k[0]=O=>y.value=O),items:c},{"item-template":e.withCtx(({item:O})=>[O.value==="powershell"?(e.openBlock(),e.createBlock(e.unref(q.LanguageShellIcon),{key:0})):(e.openBlock(),e.createBlock(e.unref(q.LanguageBashIcon),{key:1})),e.createTextVNode(" "+e.toDisplayString(O.label),1)]),"selected-item-template":e.withCtx(({item:O})=>[O.value==="powershell"?(e.openBlock(),e.createBlock(e.unref(q.LanguageShellIcon),{key:0})):(e.openBlock(),e.createBlock(e.unref(q.LanguageBashIcon),{key:1})),e.createTextVNode(" "+e.toDisplayString(O.label),1)]),_:1},8,["modelValue"]),e.createElementVNode("div",nr,e.toDisplayString(e.unref(r)("deckCodeBlock.steps.step_1")),1),t.isCustomizing?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(e.unref(i),{key:0,"data-testid":`deck-hint-${t.app}`,keypath:`deckCodeBlock.hint.${t.app}`,tag:"p"},e.createSlots({link:e.withCtx(()=>[e.createVNode(e.unref(X.KExternalLink),{href:t.app==="konnect"?"https://developer.konghq.com/deck/get-started/":"https://developer.konghq.com/deck/gateway/configuration/"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(a).t("deckCodeBlock.documentation")),1)]),_:1},8,["href"])]),_:2},[t.app==="konnect"?{name:"token",fn:e.withCtx(()=>[e.createVNode(N,null,{default:e.withCtx(()=>[...k[4]||(k[4]=[e.createTextVNode("DECK_KONNECT_TOKEN",-1)])]),_:1})]),key:"0"}:void 0]),1032,["data-testid","keypath"])),t.app==="konnect"?(e.openBlock(),e.createBlock(D,{key:1,id:"deck-env-codeblock",class:e.normalizeClass({customization:o.isCustomizing}),code:g.value,language:y.value,"single-line":"",theme:t.isCustomizing?"light":"dark",onCodeBlockRender:e.unref(te)},null,8,["class","code","language","theme","onCodeBlockRender"])):e.createCommentVNode("",!0),l.value?(e.openBlock(),e.createBlock(b,{key:2,class:"copy-konnect-pat-alert"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(r)("deckCodeBlock.customization.copy_pat")),1)]),_:1})):o.isCustomizing&&o.generateKonnectPat?(e.openBlock(),e.createElementBlock("div",or,[e.createVNode(S,{appearance:"secondary","data-testid":"generate-konnect-pat-button",onClick:k[1]||(k[1]=O=>f.value=!0)},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(r)("deckCodeBlock.customization.generate_pat")),1)]),_:1}),e.createElementVNode("div",null,e.toDisplayString(e.unref(r)("deckCodeBlock.customization.reuse_pat")),1)])):e.createCommentVNode("",!0),e.createElementVNode("div",ar,e.toDisplayString(e.unref(r)("deckCodeBlock.steps.step_2")),1),o.entityRecord&&!o.isCustomizing?(e.openBlock(),e.createBlock(D,{key:4,id:"deck-codeblock",class:e.normalizeClass({customization:o.isCustomizing}),code:s.value,"copy-code":u.value,"data-dd-privacy":"mask",language:y.value,"max-height":e.unref(d.CONFIG_CARD_CODE_BLOCK_MAX_HEIGHT),theme:t.isCustomizing?"light":"dark",onCodeBlockRender:e.unref(te)},null,8,["class","code","copy-code","language","max-height","theme","onCodeBlockRender"])):o.entityRecord&&o.isCustomizing&&e.unref(n)?(e.openBlock(),e.createElementBlock(e.Fragment,{key:5},[e.createElementVNode("div",rr,e.toDisplayString(e.unref(r)("deckCodeBlock.customization.secret_advise")),1),(e.openBlock(),e.createBlock(e.resolveDynamicComponent(e.unref(n)),{modelValue:u.value,"onUpdate:modelValue":k[2]||(k[2]=O=>u.value=O),language:y.value},null,8,["modelValue","language"])),e.createVNode(b,{class:"customization-footer-reminder"},{icon:e.withCtx(()=>[e.createVNode(e.unref(q.InfoIcon))]),default:e.withCtx(()=>[e.createTextVNode(" "+e.toDisplayString(e.unref(r)("deckCodeBlock.customization.footer_reminder")),1)]),_:1})],64)):e.createCommentVNode("",!0)],16),o.isCustomizing&&o.generateKonnectPat?(e.openBlock(),e.createBlock(Et,{key:0,"generate-konnect-pat":o.generateKonnectPat,visible:f.value,onDismiss:k[3]||(k[3]=O=>f.value=!1),onGenerated:E},null,8,["generate-konnect-pat","visible"])):e.createCommentVNode("",!0)],64)}}}),Qe=d._export_sfc(ir,[["__scopeId","data-v-81758ed8"]]),Ve=e.defineComponent({inheritAttrs:!1,__name:"DeckCodeBlock",props:{app:{},entityRecord:{},unredactedRecord:{},entityType:{},geoApiServerUrl:{},controlPlaneName:{},kongAdminApiUrl:{},workspace:{},customizationOptions:{type:[Boolean,Object]},isCustomizationModalVisible:{type:Boolean}},emits:["customization-close"],setup(t){const n=t,{i18n:{t:o}}=d.composables.useI18n(),a=e.computed(()=>{if(n.app==="konnect"&&n.customizationOptions&&typeof n.customizationOptions!="boolean")return n.customizationOptions.generateKonnectPat});return(i,r)=>{const l=e.resolveComponent("KModal");return e.openBlock(),e.createElementBlock(e.Fragment,null,[n.entityRecord?(e.openBlock(),e.createBlock(Qe,e.mergeProps({key:0},i.$attrs,{app:n.app,"control-plane-name":n.app==="konnect"?n.controlPlaneName:void 0,"entity-record":n.entityRecord,"entity-type":n.entityType,"geo-api-server-url":n.app==="konnect"?n.geoApiServerUrl:void 0,"kong-admin-api-url":n.app==="kongManager"?n.kongAdminApiUrl:void 0,"unredacted-record":n.unredactedRecord,workspace:n.workspace||void 0}),null,16,["app","control-plane-name","entity-record","entity-type","geo-api-server-url","kong-admin-api-url","unredacted-record","workspace"])):e.createCommentVNode("",!0),n.entityRecord?(e.openBlock(),e.createBlock(l,{key:1,"action-button-appearance":"tertiary","action-button-text":e.unref(o)("baseConfigCard.actions.deck_customize_cancel"),"hide-cancel-button":"","max-width":"640px",title:e.unref(o)("deckCodeBlock.customization.title"),visible:n.isCustomizationModalVisible,onCancel:r[0]||(r[0]=s=>i.$emit("customization-close")),onProceed:r[1]||(r[1]=s=>i.$emit("customization-close"))},{default:e.withCtx(()=>[e.createVNode(Qe,{app:n.app,"control-plane-name":n.app==="konnect"?n.controlPlaneName:void 0,"entity-record":n.entityRecord,"entity-type":n.entityType,"generate-konnect-pat":a.value,"geo-api-server-url":n.app==="konnect"?n.geoApiServerUrl:void 0,"is-customizing":"","kong-admin-api-url":n.app==="kongManager"?n.kongAdminApiUrl:void 0,"unredacted-record":n.unredactedRecord,workspace:n.workspace||void 0},null,8,["app","control-plane-name","entity-record","entity-type","generate-konnect-pat","geo-api-server-url","kong-admin-api-url","unredacted-record","workspace"])]),_:1},8,["action-button-text","title","visible"])):e.createCommentVNode("",!0)],64)}}}),lr={key:0,class:"config-card-display-form"},sr=["data-testid"],cr={key:0,class:"config-card-prop-section-title"},dr=e.defineComponent({__name:"ConfigCardDisplay",props:{config:{type:Object,required:!1,default:()=>({})},entityType:{type:String,required:!0,validator:t=>d.SupportedEntityTypesArray.includes(t)},subEntityType:{type:String,default:""},propertyCollections:{type:Object,required:!1,default:()=>null},format:{type:String,required:!1,default:"structured",validator:t=>d.CONFIG_CARD_FORMATS.includes(t)},propListTypes:{type:Array,required:!1,default:()=>[]},record:{type:Object,required:!1,default:()=>({})},codeBlockRecord:{type:Object,default:void 0},codeBlockRecordRedacted:{type:Object,default:void 0},preserveCodeBlockTimestamps:{type:Boolean,default:!1},fetcherUrl:{type:String,required:!1,default:""},codeBlockRecordFormatter:{type:Function,required:!1,default:t=>t},isDeckCustomizationVisible:{type:Boolean,required:!1,default:!1}},emits:["deck-customization:close","request-deck-format"],setup(t){const n=t,o=e.useSlots(),{i18n:{t:a}}=d.composables.useI18n(),i=v=>!!(v.tooltip||o[`${v.key}-label-tooltip`]),r=v=>{if(v==null)return;let C=JSON.parse(JSON.stringify(v));return n.codeBlockRecordFormatter&&(C=n.codeBlockRecordFormatter(C,n.format)),n.preserveCodeBlockTimestamps||(delete C.created_at,delete C.updated_at),C},l=e.computed(()=>r(n.codeBlockRecordRedacted||n.codeBlockRecord||n.record)),s=e.computed(()=>r(n.codeBlockRecord||n.record)),u=e.computed(()=>n.fetcherUrl.replace(/(\?|&)__ui_data=true/,"")),{isDeckEnabled:f,deckCustomizationOptions:c,deckCalloutPreferenceKey:y}=d.composables.useBaseEntityDeckOptions(()=>n.config,()=>n.entityType);return(v,C)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[t.format==="structured"?(e.openBlock(),e.createElementBlock("div",lr,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.propListTypes,$=>(e.openBlock(),e.createElementBlock("div",{key:`config-card-details-${$}-props`,class:e.normalizeClass(`config-card-details-${$}-props`),"data-testid":`config-card-details-${$}-props`},[$!=="basic"?(e.openBlock(),e.createElementBlock("div",cr,e.toDisplayString($==="advanced"?e.unref(a)("baseConfigCard.sections.advanced"):$==="plugin"?e.unref(a)("baseConfigCard.sections.plugin"):e.unref(a)("baseConfigCard.sections.policy")),1)):e.createCommentVNode("",!0),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.propertyCollections[$],m=>e.renderSlot(v.$slots,`config-card-item-${m.key}`,{row:m},()=>[(e.openBlock(),e.createBlock(_e,{key:m.key,item:m},e.createSlots({label:e.withCtx(()=>[e.renderSlot(v.$slots,`${m.key}-label`,{row:m},void 0,!0)]),[m.key]:e.withCtx(({rowValue:g})=>[e.renderSlot(v.$slots,m.key,{row:m,rowValue:g},void 0,!0)]),_:2},[i(m)?{name:"label-tooltip",fn:e.withCtx(()=>[e.renderSlot(v.$slots,`${m.key}-label-tooltip`,{row:m},void 0,!0)]),key:"0"}:void 0]),1032,["item"]))],!0)),256))],10,sr))),128))])):e.createCommentVNode("",!0),t.format==="json"&&l.value?(e.openBlock(),e.createBlock($e,{key:1,config:n.config,"entity-record":l.value,"fetcher-url":u.value,"request-method":"get","unredacted-record":s.value},null,8,["config","entity-record","fetcher-url","unredacted-record"])):e.createCommentVNode("",!0),t.format==="yaml"&&l.value?(e.openBlock(),e.createBlock(Le,{key:2,"deck-callout-preference-key":e.unref(f)?e.unref(y):void 0,"entity-record":l.value,"unredacted-record":s.value,"onDeckCallout:clickCta":C[0]||(C[0]=$=>v.$emit("request-deck-format"))},null,8,["deck-callout-preference-key","entity-record","unredacted-record"])):e.createCommentVNode("",!0),t.format==="terraform"&&l.value?(e.openBlock(),e.createBlock(Fe,{key:3,"entity-record":l.value,"entity-type":n.entityType,"sub-entity-type":n.subEntityType,"unredacted-record":s.value},null,8,["entity-record","entity-type","sub-entity-type","unredacted-record"])):e.createCommentVNode("",!0),t.format==="deck"&&l.value?(e.openBlock(),e.createBlock(Ve,{key:4,app:t.config.app,"control-plane-name":t.config.app==="konnect"?t.config.controlPlaneName:void 0,"customization-options":e.unref(c),"entity-record":l.value,"entity-type":n.entityType,"geo-api-server-url":t.config.app==="konnect"?t.config.geoApiServerUrl:void 0,"is-customization-modal-visible":t.isDeckCustomizationVisible,"kong-admin-api-url":t.config.app==="kongManager"?t.config.apiBaseUrl:void 0,"unredacted-record":s.value,workspace:t.config.workspace||void 0,onCustomizationClose:C[1]||(C[1]=$=>v.$emit("deck-customization:close"))},null,8,["app","control-plane-name","customization-options","entity-record","entity-type","geo-api-server-url","is-customization-modal-visible","kong-admin-api-url","unredacted-record","workspace"])):e.createCommentVNode("",!0)],64))}}),Nt=d._export_sfc(dr,[["__scopeId","data-v-83075649"]]),ur={class:"config-card-title","data-testid":"config-card-title"},fr={class:"config-card-actions"},pr={class:"row"},mr=["href"],gr={key:2,class:"config-card-details-section"},yr=e.defineComponent({__name:"EntityBaseConfigCard",props:{config:{type:Object,required:!0,validator:t=>!(!t||!["konnect","kongManager"].includes(t?.app)||t.app==="kongManager"&&typeof t.workspace!="string"||!t.entityId)},configSchema:{type:Object,required:!1,default:()=>({})},entityType:{type:String,required:!0,validator:t=>d.SupportedEntityTypesArray.includes(t)},subEntityType:{type:String,default:""},pluginConfigKey:{type:String,required:!1,default:""},pluginConfigSchema:{type:Object,required:!1,default:()=>({})},policyConfigKey:{type:String,required:!1,default:""},policyConfigSchema:{type:Object,required:!1,default:()=>({})},fetchUrl:{type:String,required:!0},dataKey:{type:String,required:!1,default:""},recordResolver:{type:Function,required:!1,default:t=>t},codeBlockRecordFormatter:{type:Function,required:!1,default:t=>t},codeBlockRecordResolver:{type:Function,required:!1,default:void 0},preserveCodeBlockTimestamps:{type:Boolean,required:!1,default:!1},hideTitle:{type:Boolean,default:!1},label:{type:String,default:"Format: ",required:!1},configCardDoc:{type:String,default:"",required:!1},titleTag:{type:String,default:"h2"},formatsToHide:{type:Array,required:!1,default:()=>[]}},emits:["loading","fetch:success","fetch:error","configFormatChange"],setup(t,{emit:n}){const o=n,a=t,{i18n:{t:i}}=d.composables.useI18n(),{getMessageFromError:r}=d.composables.useErrors(),{convertKeyToTitle:l}=d.composables.useStringHelpers(),s=d.composables.useSchema(),u=d.composables.useManagedByEnabled();d.composables.useSubSchema(a.pluginConfigKey);const{axiosInstance:f}=d.composables.useAxios(a.config?.axiosRequestConfig),c=e.ref(!1),{isDeckEnabled:y,deckCustomizationOptions:v}=d.composables.useBaseEntityDeckOptions(()=>a.config,()=>a.entityType),C=e.computed(()=>{const h=[{label:i("baseConfigCard.general.structuredFormat"),value:"structured",selected:!0},{label:i("baseForm.configuration.json"),value:"json"},{label:i("baseForm.configuration.yaml"),value:"yaml"}];a.config.app==="konnect"&&h.splice(2,0,{label:i("baseForm.configuration.terraform"),value:"terraform"}),y.value&&h.push({label:i("baseForm.configuration.deck"),value:"deck"});const A=new Set(a.formatsToHide);return h.filter(F=>F.value==="structured"||!A.has(F.value))}),$=e.ref("structured"),m=h=>{$.value=h?.value,o("configFormatChange",$.value)},g=(h,A)=>{localStorage.setItem(h,A)};e.watch($,h=>{a.config.formatPreferenceKey&&g(a.config.formatPreferenceKey,h)}),e.onMounted(()=>{if(a.config.formatPreferenceKey){const h=localStorage.getItem(a.config.formatPreferenceKey),A=C.value;h&&A.some(F=>F.value===h)?$.value=h:$.value=A[0]?.value??"structured",g(a.config.formatPreferenceKey,$.value)}});const E={id:{type:d.ConfigurationSchemaType.ID,label:i("baseConfigCard.commonFields.id_label"),order:0,section:d.ConfigurationSchemaSection.Basic},name:{order:1,section:d.ConfigurationSchemaSection.Basic},enabled:{type:d.ConfigurationSchemaType.BadgeStatus,order:2,section:d.ConfigurationSchemaSection.Basic},updated_at:{type:d.ConfigurationSchemaType.Date,label:i("baseConfigCard.commonFields.updated_at_label"),order:3,section:d.ConfigurationSchemaSection.Basic},created_at:{type:d.ConfigurationSchemaType.Date,label:i("baseConfigCard.commonFields.created_at_label"),order:4,section:d.ConfigurationSchemaSection.Basic},managed_by:{type:d.ConfigurationSchemaType.ManagedBy,label:i("baseConfigCard.commonFields.managed_by_label"),section:d.ConfigurationSchemaSection.Advanced},tags:{type:d.ConfigurationSchemaType.BadgeTag,order:-1,section:d.ConfigurationSchemaSection.Basic},labels:{type:d.ConfigurationSchemaType.BadgeTag,order:-1,section:d.ConfigurationSchemaSection.Basic},partials:{type:d.ConfigurationSchemaType.LinkInternal,label:i("baseConfigCard.commonFields.partial_label"),order:-1,section:d.ConfigurationSchemaSection.Basic}},p=e.ref(!1),k=e.ref(!1),I=e.ref(""),N=e.ref({}),D=e.ref(null),b=e.computed(()=>{if(!(!a.codeBlockRecordResolver||D.value==null))return a.codeBlockRecordResolver(D.value)}),S=e.ref(!1);e.provide(d.CONFIG_CARD_SHOW_SENSITIVE_FIELDS,S);const{redactByConfigSchema:O,redactByApiSchema:B,isObjectRecord:_,getApiSchemaField:T}=d.composables.useHelpers(),x=e.computed(()=>{const h=b.value||N.value;let A=h;if(_(h)&&Array.isArray(s?.value?.fields)){const F={};for(const w in h){const V=T(s?.value?.fields,w);F[w]=V?B(h[w],V):h[w]}A=F}return A=O(A,a.configSchema),a.codeBlockRecordResolver?a.codeBlockRecordResolver(A):A}),K=e.computed(()=>{if(!N.value)return[];const h=[],A=Object.keys(N.value).length;for(const F in N.value){if(F==="__ui_data"||F==="managed_by"&&!u.value)continue;const w=a.configSchema?.[F]?.order,V=E[F]?.order;let P=A;(V||V===0)&&(P=V===-1?A+1:V),w&&(P=w===-1?A+1:w),h.push([F,P])}return h.sort(function(F,w){return F[1]-w[1]}),h.map(F=>{const w=F[0],V=N.value?.[w],P=a.configSchema?.[w]||{},M=E[w];return{key:w,value:V,hidden:P.hidden||!1,type:P.type??(M?.type||d.ConfigurationSchemaType.Text),label:P.label??(M?.label||l(w)),tooltip:P.tooltip??(M?.tooltip||void 0),section:P.section??(M?.section||d.ConfigurationSchemaSection.Advanced)}}).filter(F=>!F.hidden&&F.key!==a.pluginConfigKey)}),Z=e.computed(()=>{if(!N.value||!a.pluginConfigKey)return[];const h=N.value[a.pluginConfigKey]||{},A=Object.keys(h).length,F=[];for(const w in h){const V=a.pluginConfigSchema?.[w]?.order,P=h[w];let M=P!=null&&P!==""?A-1:A;V&&(M=V===-1?A+1:V),F.push([w,M])}return F.sort(function(w,V){return w[1]-V[1]}),F.map(w=>{const V=w[0],P=h[V],M=a.pluginConfigSchema?.[V]||{};return{key:V,value:P,hidden:M.hidden||!1,type:M.type??d.ConfigurationSchemaType.Text,label:M.label??l(V),tooltip:M.tooltip??void 0,section:d.ConfigurationSchemaSection.Plugin}}).filter(w=>!w.hidden)}),W=e.computed(()=>{if(!N.value||!a.policyConfigKey)return[];const h=N.value[a.policyConfigKey]||{},A=Object.keys(h).length,F=[];for(const w in h){const V=a.policyConfigSchema?.[w]?.order,P=h[w];let M=P!=null&&P!==""?A-1:A;V&&(M=V===-1?A+1:V),F.push([w,M])}return F.sort(function(w,V){return w[1]-V[1]}),F.map(w=>{const V=w[0],P=h[V],M=a.policyConfigSchema?.[V]||{};return{key:V,value:P,hidden:M.hidden||!1,type:M.type??d.ConfigurationSchemaType.Text,label:M.label??l(V),tooltip:M.tooltip??void 0,section:d.ConfigurationSchemaSection.Policy}}).filter(w=>!w.hidden)}),H=e.computed(()=>({basic:K.value?.filter(h=>h.section===d.ConfigurationSchemaSection.Basic),advanced:K.value?.filter(h=>h.section===d.ConfigurationSchemaSection.Advanced),plugin:Z.value?.concat(K.value?.filter(h=>h.section===d.ConfigurationSchemaSection.Plugin)),policy:W.value?.concat(K.value?.filter(h=>h.section===d.ConfigurationSchemaSection.Policy))})),pe=e.computed(()=>{const h=[];return H.value.basic.length&&h.push("basic"),H.value.advanced.length&&h.push("advanced"),H.value.plugin.length&&h.push("plugin"),H.value.policy.length&&h.push("policy"),h}),G=e.computed(()=>{let h=`${a.config.apiBaseUrl}${a.fetchUrl}`;return a.config.app==="konnect"&&(h=h.replace(/{controlPlaneId}/gi,a.config?.controlPlaneId||"")),h.replace(/\/{workspace}/gi,a.config?.workspace?`/${a.config.workspace}`:"").replace(/{id}/gi,a.config.entityId)});return e.watch(p,h=>{o("loading",h)},{immediate:!0}),e.onBeforeMount(async()=>{k.value=!1,p.value=!0;try{const{data:h}=await f.get(G.value);if(D.value=h,a.dataKey)if(typeof h[a.dataKey]<"u")N.value={...h[a.dataKey]};else throw new Error(i("errors.dataKeyUndefined",{dataKey:a.dataKey}));else a.recordResolver?N.value={...a.recordResolver(h)}:N.value={...h};Object.keys(a.configSchema).filter(F=>a.configSchema[F].forceShow).forEach(F=>{N.value&&typeof N.value[F]>"u"&&(N.value[F]=null)}),o("fetch:success",h)}catch(h){D.value=null;const A=r(h);I.value=A.startsWith("code")?i("baseConfigCard.errors.load"):A,k.value=!0,o("fetch:error",h)}finally{p.value=!1}}),(h,A)=>{const F=e.resolveComponent("KCheckbox"),w=e.resolveComponent("KLabel"),V=e.resolveComponent("KSelect"),P=e.resolveComponent("KButton"),M=e.resolveComponent("KSkeleton"),_t=e.resolveComponent("KEmptyState"),$t=e.resolveComponent("KCard");return e.openBlock(),e.createBlock($t,{class:"kong-ui-entity-base-config-card","title-tag":t.titleTag},e.createSlots({actions:e.withCtx(()=>[e.createElementVNode("div",fr,[e.renderSlot(h.$slots,"actions",{},void 0,!0),e.createVNode(F,{modelValue:S.value,"onUpdate:modelValue":A[0]||(A[0]=J=>S.value=J),class:"sensitive-fields-checkbox","data-testid":"sensitive-fields-checkbox",label:e.unref(i)("baseConfigCard.actions.sensitive_fields"),"label-attributes":{info:e.unref(i)("baseConfigCard.actions.sensitive_fields_tooltip"),tooltipAttributes:{maxWidth:"200",placement:"top"}}},null,8,["modelValue","label","label-attributes"]),e.createElementVNode("div",pr,[e.createVNode(w,{class:"config-format-select-label","data-testid":"config-format-select-label"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(t.label),1)]),_:1}),e.createVNode(V,{modelValue:$.value,"onUpdate:modelValue":A[1]||(A[1]=J=>$.value=J),"data-testid":"select-config-format",items:C.value,onChange:m},null,8,["modelValue","items"])]),$.value==="deck"&&e.unref(v)?(e.openBlock(),e.createBlock(P,{key:0,appearance:"secondary",class:"button-customize-deck","data-testid":"config-deck-customize-button",onClick:A[2]||(A[2]=J=>c.value=!0)},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(i)("baseConfigCard.actions.deck_customize")),1)]),_:1})):e.createCommentVNode("",!0),t.configCardDoc?(e.openBlock(),e.createBlock(P,{key:1,appearance:"tertiary",class:"book-icon","data-testid":"book-icon"},{default:e.withCtx(()=>[e.createElementVNode("a",{href:t.configCardDoc,rel:"noopener",target:"_blank"},[e.createVNode(e.unref(q.BookIcon),{size:`var(--kui-icon-size-40, ${e.unref(ae)})`},null,8,["size"])],8,mr)]),_:1})):e.createCommentVNode("",!0)])]),default:e.withCtx(()=>[p.value?(e.openBlock(),e.createBlock(M,{key:0,"data-testid":"config-card-loader","table-columns":2,type:"table"})):k.value?(e.openBlock(),e.createBlock(_t,{key:1,"data-testid":"config-card-fetch-error","icon-variant":"error"},{default:e.withCtx(()=>[e.createElementVNode("h3",null,e.toDisplayString(I.value),1)]),_:1})):(e.openBlock(),e.createElementBlock("div",gr,[e.createVNode(Nt,{"code-block-record":b.value,"code-block-record-formatter":t.codeBlockRecordFormatter,"code-block-record-redacted":S.value?void 0:x.value,config:t.config,"entity-type":t.entityType,"fetcher-url":G.value,format:$.value,"is-deck-customization-visible":c.value,"preserve-code-block-timestamps":t.preserveCodeBlockTimestamps,"prop-list-types":pe.value,"property-collections":H.value,record:N.value,"sub-entity-type":t.subEntityType,"onDeckCustomization:close":A[3]||(A[3]=J=>c.value=!1),onRequestDeckFormat:A[4]||(A[4]=J=>$.value="deck")},e.createSlots({_:2},[e.renderList(Object.keys(h.$slots),J=>({name:J,fn:e.withCtx(It=>[e.renderSlot(h.$slots,J,e.mergeProps({record:N.value},It),void 0,!0)])}))]),1032,["code-block-record","code-block-record-formatter","code-block-record-redacted","config","entity-type","fetcher-url","format","is-deck-customization-visible","preserve-code-block-timestamps","prop-list-types","property-collections","record","sub-entity-type"])]))]),_:2},[t.hideTitle?void 0:{name:"title",fn:e.withCtx(()=>[e.createElementVNode("span",ur,[e.renderSlot(h.$slots,"title",{},()=>[e.createTextVNode(e.toDisplayString(e.unref(i)("baseConfigCard.title")),1)],!0)])]),key:"0"}]),1032,["title-tag"])}}}),vr=d._export_sfc(yr,[["__scopeId","data-v-69371376"]]),kr=["novalidate"],hr={key:0,class:"button-customize-deck-wrapper"},Cr=e.defineComponent({__name:"EntityBaseForm",props:{config:{type:Object,required:!0,validator:t=>!(!t||!["konnect","kongManager"].includes(t?.app)||t.app==="konnect"&&!t.controlPlaneId||t.app==="kongManager"&&typeof t.workspace!="string")},editId:{type:String,required:!1,default:null},entityType:{type:String,required:!0,validator:t=>d.SupportedEntityTypesArray.includes(t)},subEntityType:{type:String,required:!1,default:""},fetchUrl:{type:String,required:!1,default:""},isReadonly:{type:Boolean,required:!1,default:!1},canSubmit:{type:Boolean,required:!1,default:void 0},errorMessage:{type:String,required:!1,default:""},formFields:{type:Object,required:!0},noValidate:{type:Boolean,default:!1},wrapperComponent:{type:String,default:"KCard"},actionTeleportTarget:{type:String,default:void 0},hideActions:{type:Boolean,default:!1},slidoutTopOffset:{type:Number,default:60},alignActionButtonToLeft:{type:Boolean,default:!1},saveButtonText:{type:String,default:void 0},cancelButtonText:{type:String,default:void 0},slideoutFetchUrl:{type:String,default:void 0},slideoutRequestMethod:{type:String,default:void 0},slideoutDeckEntityType:{type:String,default:void 0},tabsToHide:{type:Array,required:!1,default:()=>[]}},emits:["loading","fetch:success","fetch:error","submit","cancel","codeBlockTabChange"],setup(t,{expose:n,emit:o}){const a=e.inject(d.PLUGIN_FORM_LAYOUT_STATE,e.ref(!1)),i=o,r=t,l=Pt.useRouter(),{i18n:{t:s}}=d.composables.useI18n(),{getMessageFromError:u}=d.composables.useErrors(),{axiosInstance:f}=d.composables.useAxios(r.config?.axiosRequestConfig),c=e.ref(!1),y=e.computed(()=>!!r.editId),v=e.ref(!1),C=e.ref(""),$=e.computed(()=>r.canSubmit===!1||r.isReadonly),m=e.ref(!1),g=e.computed(()=>{let _=`${r.config.apiBaseUrl}${r.fetchUrl}`;return r.config.app==="konnect"&&(_=_.replace(/{controlPlaneId}/gi,r.config?.controlPlaneId||"")),_=_.replace(/\/{workspace}/gi,r.config?.workspace?`/${r.config.workspace}`:""),r.editId?(_=_.replace(/{id}/gi,r.editId),_):(_=_.replace(/\/{id}/gi,""),_)}),E=e.ref(!1),{isDeckEnabled:p,deckCustomizationOptions:k,deckCalloutPreferenceKey:I}=d.composables.useBaseFormDeckOptions(()=>r.config,()=>r.entityType),N=()=>{m.value=!m.value},D=()=>{r.config.cancelRoute?l.push(r.config.cancelRoute):b()},b=()=>{i("cancel")},S=()=>{$.value||i("submit")},O=e.computed(()=>{const _=[{title:s("baseForm.configuration.json"),hash:"#json"},{title:s("baseForm.configuration.yaml"),hash:"#yaml"}];r.config.app==="konnect"&&r.entityType!==d.SupportedEntityType.Other&&_.splice(1,0,{title:s("baseForm.configuration.terraform"),hash:"#terraform"}),p.value&&_.push({title:s("baseForm.configuration.deck"),hash:"#deck"});const T=new Set(r.tabsToHide.map(x=>`#${x}`));return _.filter(x=>!T.has(x.hash))}),B=e.ref(O.value[0]?.hash);return e.watch(O,_=>{_.some(T=>T.hash===B.value)||(B.value=_[0]?.hash)}),e.watch(()=>c.value,_=>{i("loading",_)},{immediate:!0}),e.onBeforeMount(async()=>{if(r.editId)try{v.value=!1,c.value=!0;const{data:_}=await f.get(g.value);i("fetch:success",_)}catch(_){const T=u(_);C.value=T.startsWith("code")?s("baseForm.errors.edit"):T,v.value=!0,i("fetch:error",_)}finally{c.value=!1}}),n({viewConfig:N,formCancel:b,formSubmit:S}),(_,T)=>{const x=e.resolveComponent("KSkeleton"),K=e.resolveComponent("KEmptyState"),Z=e.resolveComponent("KAlert"),W=e.resolveComponent("KButton"),H=e.resolveComponent("KTabs"),pe=e.resolveComponent("KSlideout");return e.openBlock(),e.createBlock(e.resolveDynamicComponent(t.wrapperComponent),{class:e.normalizeClass(["kong-ui-entity-base-form",{"new-form-layout":e.unref(a)&&t.entityType===e.unref(d.SupportedEntityType).Plugin}])},{default:e.withCtx(()=>[c.value?(e.openBlock(),e.createBlock(x,{key:0,type:"form"})):v.value?(e.openBlock(),e.createBlock(K,{key:1,"action-button-text":e.unref(s)("baseForm.actions.back"),"data-testid":"form-fetch-error","icon-variant":"error",onClickAction:D},{default:e.withCtx(()=>[e.createElementVNode("h3",null,e.toDisplayString(C.value),1)]),_:1},8,["action-button-text"])):(e.openBlock(),e.createElementBlock("form",{key:2,"data-testid":"form-content",novalidate:r.noValidate,onReset:e.withModifiers(b,["prevent"]),onSubmit:e.withModifiers(S,["prevent"])},[e.renderSlot(_.$slots,"default",{},void 0,!0),t.errorMessage?(e.openBlock(),e.createBlock(Z,{key:0,appearance:"danger",class:"form-error","data-testid":"form-error",message:t.errorMessage},null,8,["message"])):e.createCommentVNode("",!0),t.hideActions?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(e.Teleport,{key:1,disabled:!t.actionTeleportTarget,to:t.actionTeleportTarget},[e.createElementVNode("div",{class:e.normalizeClass(["form-actions",{"form-actions-reverted":t.alignActionButtonToLeft}]),"data-testid":"form-actions"},[e.renderSlot(_.$slots,"form-actions",{},()=>[e.createVNode(W,{appearance:"tertiary","data-testid":`${t.entityType}-${y.value?"edit":"create"}-form-view-configuration`,onClick:T[0]||(T[0]=G=>N())},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(m.value?e.unref(s)("baseForm.actions.hideConfiguration"):e.unref(s)("baseForm.actions.viewConfiguration")),1)]),_:1},8,["data-testid"]),e.createVNode(W,{appearance:"secondary","data-testid":`${t.entityType}-${y.value?"edit":"create"}-form-cancel`,disabled:t.isReadonly,type:"reset",onClick:T[1]||(T[1]=G=>!!t.actionTeleportTarget&&b())},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(t.cancelButtonText??e.unref(s)("baseForm.actions.cancel")),1)]),_:1},8,["data-testid","disabled"]),e.createVNode(W,{appearance:"primary","data-testid":`${t.entityType}-${y.value?"edit":"create"}-form-submit`,disabled:$.value,type:"submit",onClick:T[2]||(T[2]=G=>!!t.actionTeleportTarget&&S())},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(t.saveButtonText??e.unref(s)("baseForm.actions.save")),1)]),_:1},8,["data-testid","disabled"])],!0)],2)],8,["disabled","to"]))],40,kr)),e.createVNode(pe,{"close-on-blur":!1,"data-testid":"form-view-configuration-slideout","has-overlay":!1,"offset-top":t.slidoutTopOffset,title:e.unref(s)("baseForm.configuration.title"),visible:m.value,onClose:T[8]||(T[8]=G=>N())},{default:e.withCtx(()=>[e.createElementVNode("div",null,[e.renderSlot(_.$slots,"configuration-slideout-message",{},()=>[e.createTextVNode(e.toDisplayString(e.unref(s)("baseForm.configuration.message")),1)],!0)]),e.createVNode(H,{modelValue:B.value,"onUpdate:modelValue":T[6]||(T[6]=G=>B.value=G),"data-testid":"form-view-configuration-slideout-tabs",tabs:O.value,onChange:T[7]||(T[7]=G=>i("codeBlockTabChange",G.replace("#","")))},{json:e.withCtx(()=>[e.createVNode($e,{config:t.config,"entity-record":r.formFields,"fetcher-url":r.slideoutFetchUrl??g.value,"request-method":r.slideoutRequestMethod??(r.editId?"put":"post")},null,8,["config","entity-record","fetcher-url","request-method"])]),yaml:e.withCtx(()=>[e.createVNode(Le,{"deck-callout-preference-key":e.unref(p)?e.unref(I):void 0,"entity-record":r.formFields,"onDeckCallout:clickCta":T[3]||(T[3]=G=>B.value="#deck")},null,8,["deck-callout-preference-key","entity-record"])]),terraform:e.withCtx(()=>[e.createVNode(Fe,{"entity-record":r.formFields,"entity-type":t.entityType,"sub-entity-type":t.subEntityType},null,8,["entity-record","entity-type","sub-entity-type"])]),deck:e.withCtx(()=>[e.unref(k)?(e.openBlock(),e.createElementBlock("div",hr,[e.createVNode(W,{appearance:"secondary",class:"button-customize-deck",onClick:T[4]||(T[4]=G=>E.value=!0)},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(s)("baseConfigCard.actions.deck_customize")),1)]),_:1})])):e.createCommentVNode("",!0),e.createVNode(Ve,{app:t.config.app,"control-plane-name":t.config.app==="konnect"?t.config.controlPlaneName:void 0,"customization-options":e.unref(k),"entity-record":r.formFields,"entity-type":r.slideoutDeckEntityType??t.entityType,"geo-api-server-url":t.config.app==="konnect"?t.config.geoApiServerUrl:void 0,"is-customization-modal-visible":E.value,"kong-admin-api-url":t.config.app==="kongManager"?t.config.apiBaseUrl:void 0,workspace:t.config.workspace||void 0,onCustomizationClose:T[5]||(T[5]=G=>E.value=!1)},null,8,["app","control-plane-name","customization-options","entity-record","entity-type","geo-api-server-url","is-customization-modal-visible","kong-admin-api-url","workspace"])]),_:1},8,["modelValue","tabs"])]),_:3},8,["offset-top","title","visible"])]),_:3},8,["class"])}}}),br=d._export_sfc(Cr,[["__scopeId","data-v-b3590221"]]),Sr=["data-truncate"],Br=e.defineComponent({__name:"EntityBaseTableCell",props:{keyName:{type:String,required:!0},rowEl:{type:[Object,null],required:!0},tooltip:{type:Boolean,default:!1}},setup(t){const n=t,o=e.computed(()=>n.rowEl?.querySelector(`[data-testid="${n.keyName}"]`)||null),a=e.computed(()=>o.value?.querySelector('[data-truncate="true"]')||null),i=e.computed(()=>{const g=n.rowEl?.querySelectorAll("td");return g?g[0]?.getAttribute("data-testid")===n.keyName:!0}),r=e.computed(()=>i.value||n.tooltip);let l;const s=()=>{l&&(l.disconnect(),l=void 0)},u=()=>{let g=o.value?.clientWidth||0;if(o.value&&"getComputedStyle"in window){const E=window.getComputedStyle(o.value);g-=(parseFloat(E.paddingLeft)||0)+(parseFloat(E.paddingRight)||0)}c.value=a.value?.getBoundingClientRect().width||0,y.value=g,v.value=f.value?.innerText||""},f=e.ref({}),c=e.ref(0),y=e.ref(0),v=e.ref(""),C=e.computed(()=>[a.value,o.value]),$=e.watch(C,g=>{if(r.value&&(s(),"ResizeObserver"in window&&window)){l=new ResizeObserver(E=>{window.requestAnimationFrame(()=>{!Array.isArray(E)||!E.length||u()})});for(const E of g)E&&l.observe(E)}},{immediate:!0,flush:"post",deep:!0}),m=e.computed(()=>r.value?c.value>y.value:!1);return e.onMounted(()=>{u()}),e.onUnmounted(()=>{$()}),(g,E)=>{const p=e.resolveComponent("KTooltip");return e.openBlock(),e.createElementBlock("span",{ref_key:"contentRef",ref:f,class:"content-wrapper"},[r.value?(e.openBlock(),e.createElementBlock("span",{key:0,"data-truncate":r.value||void 0},[e.createVNode(p,{"max-width":"300",placement:"bottom-start",text:m.value?v.value:""},{default:e.withCtx(()=>[e.renderSlot(g.$slots,"default",{},void 0,!0)]),_:3},8,["text"])],8,Sr)):e.renderSlot(g.$slots,"default",{},void 0,!0,1)],512)}}}),Tr=d._export_sfc(Br,[["__scopeId","data-v-a3a65cac"]]),Er={class:"toolbar-container"},Nr={key:0,class:"toolbar-button-container"},_r={key:0,class:"hidden"},$r=e.defineComponent({__name:"EntityBaseTable",props:{tableHeaders:{type:Object,required:!0,default:()=>({})},fetcher:{type:Function,required:!0,default:async()=>({data:[],total:0})},initialFetcherParams:{type:Object,default:null},rowKey:{type:[String,Function],default:"id"},cacheIdentifier:{type:String,default:""},fetcherCacheKey:{type:Number,default:1},isLoading:{type:Boolean,default:!1},query:{type:String,default:""},enableClientSort:{type:Boolean,default:!1},sortHandlerFunction:{type:Function,default:null},enableEntityActions:{type:Boolean,default:!0},emptyStateOptions:{type:Object,default:()=>({})},errorMessage:{type:[String,Object],default:null},paginationAttributes:{type:Object,default:()=>({})},hidePaginationWhenOptional:{type:Boolean,default:!0},disableSorting:{type:Boolean,default:void 0},cellAttributes:{type:Function,default:()=>({})},rowAttributes:{type:Function,default:()=>({})},preferencesStorageKey:{type:String,default:""},defaultTablePreferences:{type:Object,default:null,required:!1},title:{type:String,default:""},titleTag:{type:String,default:"h2"},disableRowClick:{type:Boolean,default:!1},hidePagination:{type:Boolean,default:!1},hideToolbar:{type:Boolean,default:void 0},disablePaginationPageJump:{type:Boolean,default:void 0,validator:t=>(t&&console.warn("EntityBaseTable: `disablePaginationPageJump` is deprecated in favour of `paginationAttributes`. Please update your code to use `paginationAttributes` instead."),typeof t=="boolean")},paginationType:{type:String,default:void 0,validator:t=>(t&&console.warn("EntityBaseTable: `paginationType` is deprecated in favour of `paginationAttributes`. Please update your code to use `paginationAttributes` instead."),["default","offset"].includes(t))}},emits:["click:row","sort","clear-search-input","empty-state-cta-clicked","state"],setup(t,{emit:n}){const o=t,a=n,{i18n:{t:i}}=d.composables.useI18n(),r=e.computed(()=>typeof o.errorMessage=="string"?{hasError:!!o.errorMessage,title:o.errorMessage,message:void 0}:{hasError:!!o.errorMessage,title:o.errorMessage?.title,message:o.errorMessage?.message}),l=e.computed(()=>o.cacheIdentifier||o.preferencesStorageKey),s=e.computed(()=>{const B=[];return Object.keys(o.tableHeaders).forEach(T=>{const x=o.tableHeaders[T];B.push({label:x.label??T,key:T,sortable:x.sortable??!1,hidable:x.hidable??!0})}),o.enableEntityActions&&B.push({key:"actions",hideLabel:!0}),B}),u=B=>({"data-rowid":B.id,"data-testid":B.name,...o.rowAttributes(B)}),f=e.ref({}),c=B=>f.value?.$el.querySelector(`[data-rowid="${B.id}"]`),y=B=>{const _={"data-testid":B.headerKey,...o.cellAttributes(B)};return B.colIndex===0&&(_.style={maxWidth:"250px",overflowX:"hidden",textOverflow:"ellipsis"}),_},v=B=>{p(B),a("state",B)},C=()=>{a("empty-state-cta-clicked"),$()},$=()=>{a("clear-search-input")},m=e.computed(()=>o.disableRowClick?void 0:(B,_)=>{a("click:row",_)}),g=B=>{a("sort",B)},{hideTableToolbar:E,handleStateChange:p}=d.composables.useTableState(()=>o.query),{setTablePreferences:k,getTablePreferences:I}=d.de(),N=()=>{const B=I(l.value,o.defaultTablePreferences),_=o.defaultTablePreferences?.columnVisibility;return{...d.ne,...B,..._?{columnVisibility:{..._,...B.columnVisibility}}:{}}},D=e.ref(N()),b=e.computed(()=>{const B=I(l.value);return{...o.initialFetcherParams,...B}}),S=B=>{D.value=B,s.value.forEach(_=>{!("hidable"in _)||!D.value.columnVisibility||_.hidable===!1&&(D.value.columnVisibility[_.key]=!0)}),l.value&&k(l.value,B)},O=e.computed(()=>({disablePageJump:o.disablePaginationPageJump,offset:o.paginationType==="offset",...o.paginationAttributes}));return(B,_)=>{const T=e.resolveComponent("KTableData"),x=e.resolveComponent("KCard");return e.openBlock(),e.createBlock(x,{class:"kong-ui-entity-base-table",title:t.title,"title-tag":t.titleTag},{default:e.withCtx(()=>[e.createVNode(T,{ref_key:"tableRefs",ref:f,"cache-identifier":l.value,"cell-attrs":y,"client-sort":t.enableClientSort,"empty-state-action-message":t.query?e.unref(i)("baseTable.emptyState.noSearchResultsCtaText"):t.emptyStateOptions.ctaText,"empty-state-action-route":t.query?void 0:t.emptyStateOptions.ctaPath,"empty-state-icon-variant":t.query?"search":"kong","empty-state-message":t.query?e.unref(i)("baseTable.emptyState.noSearchResultsMessage"):t.emptyStateOptions.message,"empty-state-title":t.query?e.unref(i)("baseTable.emptyState.noSearchResultsTitle"):t.emptyStateOptions.title,error:r.value.hasError,"error-state-message":r.value.message,"error-state-title":r.value.title,fetcher:t.fetcher,"fetcher-cache-key":String(t.fetcherCacheKey),headers:s.value,"hide-pagination":t.hidePagination,"hide-pagination-when-optional":t.hidePaginationWhenOptional,"hide-toolbar":t.hideToolbar??e.unref(E),"initial-fetcher-params":b.value,loading:t.isLoading,"pagination-attributes":O.value,"resize-columns":"","row-attrs":u,"row-key":t.rowKey,"search-input":t.query,"sort-handler-function":t.enableClientSort?t.sortHandlerFunction:void 0,sortable:!t.disableSorting,"table-preferences":D.value,onEmptyStateActionClick:C,"onRow:click":m.value,onSort:_[0]||(_[0]=K=>g(K)),onState:v,"onUpdate:tablePreferences":S},e.createSlots({toolbar:e.withCtx(()=>[e.createElementVNode("div",Er,[e.renderSlot(B.$slots,"toolbar-filter",{},void 0,!0),B.$slots["toolbar-button"]?(e.openBlock(),e.createElementBlock("div",Nr,[e.renderSlot(B.$slots,"toolbar-button",{},void 0,!0)])):e.createCommentVNode("",!0)])]),"action-items":e.withCtx(({row:K})=>[e.renderSlot(B.$slots,"actions",{row:K},void 0,!0)]),_:2},[B.$slots["empty-state"]?{name:"empty-state",fn:e.withCtx(()=>[e.renderSlot(B.$slots,"empty-state",{},void 0,!0)]),key:"0"}:void 0,e.renderList(t.tableHeaders,(K,Z)=>({name:Z,fn:e.withCtx(({row:W,rowValue:H})=>[e.createVNode(Tr,{"key-name":String(Z),"row-el":c(W),tooltip:K.tooltip},{default:e.withCtx(()=>[e.renderSlot(B.$slots,Z,{row:W,rowKey:t.rowKey,rowValue:H},()=>[e.createTextVNode(e.toDisplayString(H),1)],!0)]),_:2},1032,["key-name","row-el","tooltip"])])})),t.query?void 0:{name:"empty-state-action-icon",fn:e.withCtx(()=>[e.createVNode(e.unref(q.AddIcon))]),key:"1"}]),1032,["cache-identifier","client-sort","empty-state-action-message","empty-state-action-route","empty-state-icon-variant","empty-state-message","empty-state-title","error","error-state-message","error-state-title","fetcher","fetcher-cache-key","headers","hide-pagination","hide-pagination-when-optional","hide-toolbar","initial-fetcher-params","loading","pagination-attributes","row-key","search-input","sort-handler-function","sortable","table-preferences","onRow:click"]),B.$slots["outside-actions"]&&e.unref(E)?(e.openBlock(),e.createElementBlock("div",_r,[e.renderSlot(B.$slots,"outside-actions",{},void 0,!0)])):e.createCommentVNode("",!0)]),_:3},8,["title","title-tag"])}}}),Ir=d._export_sfc($r,[["__scopeId","data-v-bcc0ec48"]]),Or={key:0,class:"kong-ui-entity-delete-error"},Ar={key:1,class:"description"},xr={key:2,class:"extra"},wr=e.defineComponent({__name:"EntityDeleteModal",props:{visible:{type:Boolean,required:!0},title:{type:String,default:"Delete"},entityType:{type:String,required:!0},entityName:{type:String,default:""},entityTypeDisplay:{type:String,default:""},needConfirm:{type:Boolean,default:!0},description:{type:String,default:""},actionPending:{type:Boolean,default:!1},confirmDisabled:{type:Boolean,default:!1},error:{type:String,default:""},confirmationPrompt:{type:String,default:""},stackedCopy:{type:Boolean,default:!1}},emits:["cancel","proceed"],setup(t,{emit:n}){const{i18nT:o}=d.composables.useI18n(),a=t,i=n,r=e.computed(()=>a.entityTypeDisplay.trim()!==""?a.entityTypeDisplay:a.entityType),l=e.computed(()=>a.needConfirm?a.entityName:""),s=()=>{i("cancel")},u=()=>{i("proceed")};return(f,c)=>{const y=e.resolveComponent("KAlert"),v=e.resolveComponent("KPrompt");return e.openBlock(),e.createBlock(v,{"action-button-appearance":"danger","action-button-disabled":t.actionPending||t.confirmDisabled,"action-button-text":"Yes, delete",class:e.normalizeClass(["kong-ui-entity-delete-modal",{"kong-ui-entity-delete-modal-stacked-copy":t.stackedCopy}]),"confirmation-prompt":t.confirmationPrompt||void 0,"confirmation-text":l.value,"data-testid":"entity-delete-modal",title:t.title,visible:t.visible,onCancel:s,onProceed:u},{default:e.withCtx(()=>[e.createElementVNode("div",{class:e.normalizeClass(["body",{"body-stacked-copy":t.stackedCopy}])},[t.error?(e.openBlock(),e.createElementBlock("div",Or,[e.createVNode(y,{appearance:"danger"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(t.error),1)]),_:1})])):e.createCommentVNode("",!0),e.renderSlot(f.$slots,"message",{},()=>[e.createVNode(e.unref(o),{class:"message",keypath:a.entityName?"deleteModal.messageWithName":"deleteModal.message",tag:"p"},e.createSlots({entityType:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(r.value),1)]),_:2},[a.entityName?{name:"entityName",fn:e.withCtx(()=>[e.createElementVNode("strong",null,e.toDisplayString(a.entityName),1)]),key:"0"}:void 0]),1032,["keypath"])],!0),a.description||f.$slots.description?(e.openBlock(),e.createElementBlock("div",Ar,[e.renderSlot(f.$slots,"description",{},()=>[e.createElementVNode("p",null,e.toDisplayString(a.description),1)],!0)])):e.createCommentVNode("",!0),f.$slots.extra?(e.openBlock(),e.createElementBlock("div",xr,[e.renderSlot(f.$slots,"extra",{},void 0,!0)])):e.createCommentVNode("",!0)],2)]),_:3},8,["action-button-disabled","class","confirmation-prompt","confirmation-text","title","visible"])}}}),Lr=d._export_sfc(wr,[["__scopeId","data-v-61f55f42"]]),Fr={key:1,class:"kong-ui-entity-filter"},Vr={class:"kong-ui-entity-filter-menu"},Rr=["data-testid"],Dr=["onClick","onKeydown"],Kr={class:"menu-item-indicator"},Pr={class:"menu-item-body"},Mr=["for"],Ur={class:"menu-item-buttons"},qr={class:"filter-clear-button-container"},jr=e.defineComponent({__name:"EntityFilter",props:{config:{type:Object,required:!0,default:()=>({isExactMatch:!0,placeholder:""})},modelValue:{type:String,required:!0}},emits:["update:modelValue"],setup(t,{emit:n}){const{i18n:{t:o}}=d.composables.useI18n(),a=t,i=n,r=e.ref(!1),l=e.ref({}),s=e.ref(new Set),u=e.computed(()=>{const b=[];return new URLSearchParams(a.modelValue).forEach((S,O)=>{S!==""&&b.push(O)}),b}),f=e.computed(()=>{const b=a.config.fields;return Object.keys(b).filter(S=>b?.[S]?.searchable).map(S=>({label:b[S].label||S,value:S,expanded:!1}))});e.watch(()=>a.modelValue,b=>{l.value={},new URLSearchParams(b).forEach((S,O)=>{l.value[O]=S})});const c=()=>{r.value=!r.value},y=b=>{s.value.has(b)?s.value.delete(b):s.value.add(b)},v=b=>{i("update:modelValue",b)},C=()=>{v("")},$=b=>`filter-${b}`,m=b=>(a.config.schema?.[b]?.values??[]).map(S=>typeof S=="string"?{value:S,label:S}:S),g=b=>a.config.schema?.[b]?.type??"text",E=b=>{l.value={...l.value,[b]:""},k()},p=()=>{l.value={},k(!0)},k=(b=!1)=>{const S=Object.keys(l.value).reduce((O,B)=>(l.value[B]&&(O[B]=`${l.value[B]}`),O),{});b&&(r.value=!1),i("update:modelValue",new URLSearchParams(S).toString())},I=b=>!!a.config.schema?.[b]?.filterFunction,N=(b,S)=>{const O=a.config.schema?.[b];return O?.filterFunction===void 0?!0:O.filterFunction(S)},D=(b,S)=>{l.value[b]=S?S.custom?String(S.label):String(S.value):""};return(b,S)=>{const O=e.resolveComponent("KInput"),B=e.resolveComponent("KButton"),_=e.resolveComponent("KSelect");return t.config.isExactMatch?(e.openBlock(),e.createBlock(O,{key:0,autocomplete:"off",class:"kong-ui-entity-filter-input","data-testid":"search-input","model-value":t.modelValue,placeholder:t.config.placeholder,"onUpdate:modelValue":v},{before:e.withCtx(()=>[e.createVNode(e.unref(q.FilterIcon),{decorative:""})]),after:e.withCtx(()=>[e.withDirectives(e.createVNode(e.unref(q.CloseIcon),{class:"kong-ui-entity-filter-clear",role:"button",tabindex:"0",onClick:C},null,512),[[e.vShow,t.modelValue!==""]])]),_:1},8,["model-value","placeholder"])):(e.openBlock(),e.createElementBlock("div",Fr,[e.createVNode(B,{appearance:"tertiary","data-testid":"filter-button",onClick:c},{default:e.withCtx(()=>[e.createVNode(e.unref(q.FilterIcon),{decorative:""}),e.createTextVNode(" "+e.toDisplayString(e.unref(o)("filter.filterButtonText"))+" "+e.toDisplayString(u.value.length>0?`(${u.value.length})`:""),1)]),_:1}),e.withDirectives(e.createElementVNode("div",{class:"kong-ui-entity-filter-backdrop",onClick:c},null,512),[[e.vShow,r.value]]),e.withDirectives(e.createElementVNode("div",Vr,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(f.value,T=>(e.openBlock(),e.createElementBlock("div",{key:T.value,class:"kong-ui-entity-filter-menu-item","data-testid":T.value},[e.createElementVNode("span",{class:e.normalizeClass(["menu-item-title",{expanded:s.value.has(T.value)}]),role:"button",tabindex:"0",onClick:x=>y(T.value),onKeydown:e.withKeys(x=>y(T.value),["enter"])},[e.createTextVNode(e.toDisplayString(T.label)+" ",1),e.withDirectives(e.createElementVNode("span",Kr,null,512),[[e.vShow,u.value.includes(T.value)]]),e.createVNode(e.unref(q.ChevronDownIcon),{class:e.normalizeClass(["menu-item-expand-icon",{expanded:s.value.has(T.value)}]),color:`var(--kui-color-text-neutral-weak, ${e.unref(Zt)})`},null,8,["class","color"])],42,Dr),e.withDirectives(e.createElementVNode("div",Pr,[e.createElementVNode("label",{class:"menu-item-label",for:$(T.value)},e.toDisplayString(e.unref(o)("filter.fieldLabel")),9,Mr),t.config.schema?.[T.value]?.type==="select"?(e.openBlock(),e.createBlock(_,{key:0,id:$(T.value),"enable-filtering":I(T.value),"enable-item-creation":t.config.schema?.[T.value]?.enableItemCreation,"filter-function":x=>N(T.value,x),items:m(T.value),"model-value":l.value[T.value],placeholder:e.unref(o)("filter.selectPlaceholder"),onChange:x=>D(T.value,x)},null,8,["id","enable-filtering","enable-item-creation","filter-function","items","model-value","placeholder","onChange"])):(e.openBlock(),e.createBlock(O,{key:1,id:$(T.value),modelValue:l.value[T.value],"onUpdate:modelValue":x=>l.value[T.value]=x,autocomplete:"off",placeholder:e.unref(o)("filter.inputPlaceholder"),type:g(T.value)},null,8,["id","modelValue","onUpdate:modelValue","placeholder","type"]))],512),[[e.vShow,s.value.has(T.value)]]),e.withDirectives(e.createElementVNode("div",Ur,[e.createVNode(B,{appearance:"tertiary","data-testid":"apply-filter",size:"small",onClick:S[0]||(S[0]=x=>k(!0))},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(o)("filter.applyButtonText")),1)]),_:1}),e.createVNode(B,{appearance:"tertiary","data-testid":"clear-filter",size:"small",onClick:x=>E(T.value)},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(o)("filter.clearButtonText")),1)]),_:1},8,["onClick"])],512),[[e.vShow,s.value.has(T.value)]])],8,Rr))),128)),e.createElementVNode("div",qr,[e.createVNode(B,{appearance:"tertiary",size:"small",onClick:p},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(o)("filter.clearAllButtonText")),1)]),_:1})])],512),[[e.vShow,r.value]])]))}}}),zr=d._export_sfc(jr,[["__scopeId","data-v-26720193"]]),Gr=e.defineComponent({__name:"EntityToggleModal",props:{visible:{type:Boolean,required:!0},action:{type:String,required:!0},entityId:{type:String,required:!0},entityType:{type:String,required:!0},entityName:{type:String,required:!0},onConfirm:{type:Function,required:!1,default:null}},emits:["cancel","proceed"],setup(t,{emit:n}){const{i18n:{t:o},i18nT:a}=d.composables.useI18n(),i=t,r=n,l=e.ref(!1),s=e.computed(()=>i.action==="enable"?o("toggleModal.enable.title",{entityType:i.entityType}):o("toggleModal.disable.title",{entityType:i.entityType})),u=e.computed(()=>i.action==="enable"?o("toggleModal.enable.confirmText"):o("toggleModal.disable.confirmText")),f=()=>r("cancel"),c=async()=>{if(i.onConfirm){l.value=!0;try{await i.onConfirm(),r("proceed")}catch(y){console.error(y)}finally{l.value=!1}}};return(y,v)=>{const C=e.resolveComponent("KPrompt");return e.openBlock(),e.createBlock(e.Teleport,{to:"body"},[e.createVNode(C,{"action-button-disabled":l.value,"action-button-text":u.value,"data-testid":`${t.entityType}-${t.entityId}-toggle-prompt`,title:s.value,visible:t.visible,onCancel:f,onProceed:c},{default:e.withCtx(()=>[e.createVNode(e.unref(a),{keypath:`toggleModal.${i.action}.message`,scope:"global"},{entityType:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(t.entityType),1)]),entityName:e.withCtx(()=>[e.createElementVNode("strong",null,e.toDisplayString(t.entityName),1)]),_:1},8,["keypath"])]),_:1},8,["action-button-disabled","action-button-text","data-testid","title","visible"])])}}}),Hr=e.defineComponent({__name:"PermissionsWrapper",props:{authFunction:{type:Function,required:!0,default:async()=>!0},forceShow:{type:Boolean,default:!1}},setup(t){const n=t,o=e.ref(void 0),a=e.computed(()=>o.value===!0||o.value!==void 0&&n.forceShow===!0);return e.watch(()=>n.authFunction,async()=>{o.value=await n.authFunction()},{immediate:!0}),(i,r)=>a.value?e.renderSlot(i.$slots,"default",{isAllowed:o.value},void 0,void 0,0):e.createCommentVNode("",!0)}}),j=[];for(let t=0;t<256;++t)j.push((t+256).toString(16).slice(1));function Yr(t,n=0){return(j[t[n+0]]+j[t[n+1]]+j[t[n+2]]+j[t[n+3]]+"-"+j[t[n+4]]+j[t[n+5]]+"-"+j[t[n+6]]+j[t[n+7]]+"-"+j[t[n+8]]+j[t[n+9]]+"-"+j[t[n+10]]+j[t[n+11]]+j[t[n+12]]+j[t[n+13]]+j[t[n+14]]+j[t[n+15]]).toLowerCase()}const Wr=new Uint8Array(16);function Jr(){return crypto.getRandomValues(Wr)}function Qr(t,n,o){return crypto.randomUUID?crypto.randomUUID():Xr(t)}function Xr(t,n,o){t=t||{};const a=t.random??t.rng?.()??Jr();if(a.length<16)throw new Error("Random bytes length must be >= 16");return a[6]=a[6]&15|64,a[8]=a[8]&63|128,Yr(a)}const Zr=["aria-labelledby"],ei={class:"form-section-wrapper"},ti={key:1,class:"form-section-description"},ni={key:2,class:"form-section-footer"},oi={class:"form-section-content"},ai=e.defineComponent({__name:"EntityFormSection",props:{title:{type:String,default:""},description:{type:String,default:""},hasDivider:{type:Boolean,default:!1},stickyInfoHeader:{type:Boolean,default:!0},hideInfoHeader:{type:Boolean,default:!1},titleTag:{type:String,default:"h2"}},setup(t){const n=e.useSlots(),o=Qr();return(a,i)=>(e.openBlock(),e.createElementBlock("div",{"aria-labelledby":t.title?e.unref(o):void 0,class:e.normalizeClass(["kong-ui-entity-form-section",{"has-divider":t.hasDivider}]),role:"group"},[e.createElementVNode("div",ei,[t.hideInfoHeader?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(["form-section-info",{sticky:t.stickyInfoHeader}])},[t.title?(e.openBlock(),e.createBlock(e.resolveDynamicComponent(t.titleTag),{key:0,id:e.unref(o),class:"form-section-title"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(t.title),1)]),_:1},8,["id"])):e.createCommentVNode("",!0),t.description||e.unref(n).description?(e.openBlock(),e.createElementBlock("div",ti,[e.renderSlot(a.$slots,"description",{},()=>[e.createElementVNode("p",null,e.toDisplayString(t.description),1)],!0)])):e.createCommentVNode("",!0),e.unref(n).footer?(e.openBlock(),e.createElementBlock("div",ni,[e.renderSlot(a.$slots,"footer",{},void 0,!0)])):e.createCommentVNode("",!0)],2)),e.createElementVNode("div",oi,[e.renderSlot(a.$slots,"default",{},void 0,!0)])])],10,Zr))}}),ri=d._export_sfc(ai,[["__scopeId","data-v-ccd29028"]]),ii={class:"header"},li={key:0,class:"step","data-testid":"form-block-step"},si={class:"header-content"},ci={class:"header-title","data-testid":"header-title"},di={key:0,class:"header-description","data-testid":"header-description"},ui={key:1,class:"header-extra","data-testid":"header-extra"},fi={class:"content","data-testid":"form-block-content"},pi=e.defineComponent({__name:"EntityFormBlock",props:{step:{default:()=>{}},title:{default:""},description:{default:""}},setup(t){const n=e.useSlots();return(o,a)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["kong-ui-entity-form-block",{stepped:t.step!==void 0||n.step}])},[e.createElementVNode("header",ii,[t.step!==void 0||n.step?(e.openBlock(),e.createElementBlock("div",li,[e.renderSlot(o.$slots,"step",{},()=>[e.createTextVNode(e.toDisplayString(t.step),1)],!0)])):e.createCommentVNode("",!0),e.createElementVNode("div",si,[e.createElementVNode("h2",ci,[e.renderSlot(o.$slots,"title",{},()=>[e.createTextVNode(e.toDisplayString(t.title),1)],!0)]),t.description||n.description?(e.openBlock(),e.createElementBlock("div",di,[e.renderSlot(o.$slots,"description",{},()=>[e.createTextVNode(e.toDisplayString(t.description),1)],!0)])):e.createCommentVNode("",!0)]),n.extra?(e.openBlock(),e.createElementBlock("div",ui,[e.renderSlot(o.$slots,"extra",{},void 0,!0)])):e.createCommentVNode("",!0)]),e.createElementVNode("div",fi,[e.renderSlot(o.$slots,"default",{},void 0,!0)])],2))}}),mi=d._export_sfc(pi,[["__scopeId","data-v-7dd2f21d"]]),gi={class:"kong-ui-public-entity-link","data-testid":"entity-link-parent"},yi={key:0,class:"deleted-entity"},vi={key:1},ki=["onClick"],hi=e.defineComponent({__name:"EntityLink",props:{entityLinkData:{type:Object,required:!0},externalLink:{type:String,required:!1,default:""},newWindow:{type:Boolean,required:!1,default:!1},allowCopy:{type:Boolean,required:!1,default:!1}},setup(t){const n=t,o=e.ref(),{isTruncated:a}=d.composables.useTruncationDetector(o),{i18n:{t:i}}=d.composables.useI18n(),r=e.shallowRef("body"),l=()=>{const C=document.fullscreenElement;r.value=C instanceof HTMLElement?C:"body"};e.onMounted(()=>{l(),document.addEventListener("fullscreenchange",l)}),e.onBeforeUnmount(()=>{document.removeEventListener("fullscreenchange",l)});const s=i("global.actions.copyId"),u=e.ref(s),f=e.computed(()=>n.entityLinkData.deleted??!1),c=e.computed(()=>n.entityLinkData.id?.toString().includes(":")?n.entityLinkData.id.toString().split(":")[1]:n.entityLinkData.id),y=e.computed(()=>`${c.value?.toString().slice(0,5)} (deleted)`),v=async C=>{await C(c.value||"")&&(u.value=i("global.actions.copyToClipboard"),setTimeout(()=>{u.value=s},1800))};return(C,$)=>{const m=e.resolveComponent("KTooltip"),g=e.resolveComponent("KExternalLink"),E=e.resolveComponent("KClipboardProvider");return e.openBlock(),e.createElementBlock("div",gi,[f.value?(e.openBlock(),e.createElementBlock("div",yi,e.toDisplayString(y.value),1)):c.value?c.value?(e.openBlock(),e.createBlock(g,{key:2,class:"entity-link","hide-icon":!t.newWindow,href:t.externalLink,target:t.newWindow?"_blank":"_self"},{default:e.withCtx(()=>[e.createVNode(m,{target:r.value,text:e.unref(a)&&t.entityLinkData.label||""},{default:e.withCtx(()=>[e.createElementVNode("span",{ref_key:"textContent",ref:o,class:"entity-link-label"},e.toDisplayString(t.entityLinkData.label),513)]),_:1},8,["target","text"])]),_:1},8,["hide-icon","href","target"])):e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",vi,e.toDisplayString(" – "))),c.value&&t.allowCopy?(e.openBlock(),e.createBlock(m,{key:u.value,class:"copy-uuid-tooltip","max-width":"160",placement:"bottom-end",text:u.value},{default:e.withCtx(()=>[e.createVNode(E,null,{default:e.withCtx(({copyToClipboard:p})=>[e.createElementVNode("span",{class:"entity-link-copy-id",onClick:e.withModifiers(k=>v(p),["stop"])},[e.createVNode(e.unref(q.CopyIcon),{class:"copy-icon",color:`var(--kui-color-text-primary, ${e.unref(en)})`,"data-testid":"copy-id",size:`var(--kui-icon-size-30, ${e.unref(et)})`},null,8,["color","size"])],8,ki)]),_:1})]),_:1},8,["text"])):e.createCommentVNode("",!0)])}}}),Ci=d._export_sfc(hi,[["__scopeId","data-v-28214aed"]]),bi={class:"kong-ui-public-entity-empty-state"},Si={class:"entity-empty-state-content"},Bi={key:0,class:"empty-state-image"},Ti={key:1,class:"entity-empty-state-title"},Ei={key:2,class:"entity-empty-state-description"},Ni={key:3,class:"entity-empty-state-pricing"},_i={key:0,class:"entity-empty-state-message"},$i={key:1,class:"entity-empty-state-action"},Ii={key:2,class:"entity-empty-state-card-container"},Oi={key:0,class:"feature-icon"},Ai={class:"card-header"},xi=["title"],wi={key:3,class:"entity-empty-state-bottom-container"},Li=e.defineComponent({__name:"EntityEmptyState",props:{appearance:{type:String,default:()=>"primary",validator:t=>he.includes(t)},title:{type:String,default:""},description:{type:String,default:""},pricing:{type:String,default:""},canCreate:{type:Function,required:!1,default:async()=>!0},actionButtonText:{type:String,default:""},learnMore:{type:Boolean,default:!1},features:{type:Array,default:()=>[]}},emits:["click:create","click:learn-more"],setup(t){const n=t,{i18n:{t:o}}=d.composables.useI18n(),a=e.ref(!1),i=e.computed(()=>a.value&&!!n.actionButtonText),r=e.computed(()=>he.includes(n.appearance)?n.appearance:["primary",n.appearance]);return e.onBeforeMount(async()=>{a.value=await n.canCreate()}),e.onMounted(()=>e.warn(`EntityEmptyState is deprecated and will be removed in future releases. Please use the KEmptyState component instead.
|
|
79
79
|
Docs: https://kongponents.konghq.com/components/empty-state.html.`)),(l,s)=>{const u=e.resolveComponent("KCard");return e.openBlock(),e.createElementBlock("div",bi,[e.createElementVNode("div",Si,[l.$slots.image?(e.openBlock(),e.createElementBlock("div",Bi,[e.renderSlot(l.$slots,"image",{},void 0,!0)])):e.createCommentVNode("",!0),t.title||l.$slots.title?(e.openBlock(),e.createElementBlock("div",Ti,[e.createElementVNode("h1",{class:e.normalizeClass(r.value)},[e.renderSlot(l.$slots,"title",{},()=>[e.createTextVNode(e.toDisplayString(t.title),1)],!0)],2)])):e.createCommentVNode("",!0),t.description||l.$slots.default?(e.openBlock(),e.createElementBlock("div",Ei,[e.renderSlot(l.$slots,"default",{},()=>[e.createElementVNode("p",null,e.toDisplayString(t.description),1)],!0)])):e.createCommentVNode("",!0),t.pricing||l.$slots.pricing?(e.openBlock(),e.createElementBlock("div",Ni,[e.createElementVNode("p",null,[e.createElementVNode("b",null,e.toDisplayString(e.unref(o)("emptyState.pricingTitle")),1),s[2]||(s[2]=e.createTextVNode()),e.renderSlot(l.$slots,"pricing",{},()=>[e.createTextVNode(e.toDisplayString(t.pricing),1)],!0)])])):e.createCommentVNode("",!0)]),l.$slots.message?(e.openBlock(),e.createElementBlock("div",_i,[e.renderSlot(l.$slots,"message",{},void 0,!0)])):e.createCommentVNode("",!0),i.value||t.learnMore||l.$slots.actions?(e.openBlock(),e.createElementBlock("div",$i,[e.renderSlot(l.$slots,"actions",{},()=>[i.value?(e.openBlock(),e.createBlock(e.unref(X.KButton),{key:0,appearance:"primary","data-testid":"entity-create-button",size:t.appearance==="secondary"?"medium":"large",onClick:s[0]||(s[0]=f=>l.$emit("click:create"))},{default:e.withCtx(()=>[e.createVNode(e.unref(q.AddIcon)),e.createTextVNode(" "+e.toDisplayString(t.actionButtonText),1)]),_:1},8,["size"])):e.createCommentVNode("",!0),t.learnMore?(e.openBlock(),e.createBlock(e.unref(X.KButton),{key:1,appearance:"secondary","data-testid":"entity-learn-more-button",size:t.appearance==="secondary"?"medium":"large",onClick:s[1]||(s[1]=f=>l.$emit("click:learn-more"))},{default:e.withCtx(()=>[e.createVNode(e.unref(q.BookIcon),{decorative:""}),e.createTextVNode(" "+e.toDisplayString(e.unref(o)("emptyState.learnMore")),1)]),_:1},8,["size"])):e.createCommentVNode("",!0)],!0)])):e.createCommentVNode("",!0),t.features.length?(e.openBlock(),e.createElementBlock("div",Ii,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.features,(f,c)=>(e.openBlock(),e.createBlock(u,{key:`feature-${c}-card`,class:"entity-empty-state-card"},{title:e.withCtx(()=>[l.$slots[`feature-${c}-icon`]?(e.openBlock(),e.createElementBlock("div",Oi,[e.renderSlot(l.$slots,`feature-${c}-icon`,{},void 0,!0)])):e.createCommentVNode("",!0),e.createElementVNode("div",Ai,e.toDisplayString(f.title),1)]),default:e.withCtx(()=>[e.createElementVNode("div",{title:f.description},e.toDisplayString(f.description),9,xi)]),_:2},1024))),128))])):e.createCommentVNode("",!0),l.$slots.bottom?(e.openBlock(),e.createElementBlock("div",wi,[e.renderSlot(l.$slots,"bottom",{},void 0,!0)])):e.createCommentVNode("",!0)])}}}),Fi=d._export_sfc(Li,[["__scopeId","data-v-0b2e9081"]]),Vi={key:0,class:"sensitive-input-error-message","data-testid":"sensitive-input-error-message"},Ri={class:"sensitive-input-textarea-actions"},Di={key:2,class:"sensitive-input-hint","data-testid":"sensitive-input-hint"},Ki={class:"sensitive-input-hint-text"},Pi="••••••••••••••",Mi=e.defineComponent({__name:"SensitiveInput",props:{modelValue:{default:""},mode:{default:"create"},generator:{type:Function},showOneTimeHint:{type:Boolean,default:!1},labels:{},label:{},labelAttributes:{},placeholder:{},help:{},required:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},readonly:{type:Boolean,default:!1},error:{type:Boolean,default:!1},errorMessage:{},multiline:{type:Boolean,default:!1},autocomplete:{default:"off"},useSecretInput:{type:Boolean,default:!1}},emits:["update:modelValue","rotate","generate","generated"],setup(t,{expose:n,emit:o}){e.useCssVars(S=>({v673e9b78:D.value}));const a=o,{i18n:{t:i}}=d.composables.useI18n(),r=e.ref(t.mode==="edit"?"masked":"editing"),l=e.ref(!1),s=e.ref(!1),u=e.computed(()=>r.value==="masked"),f=Pi,c=e.computed(()=>t.placeholder??i("sensitiveInput.placeholder")),y=e.computed(()=>t.labels?.rotateLabel??i("sensitiveInput.rotateKey")),v=e.computed(()=>t.labels?.generateLabel??i("sensitiveInput.generateKey")),C=e.computed(()=>t.labels?.hintLabel??i("sensitiveInput.oneTimeHint")),$=e.computed(()=>u.value||l.value?"text":"password");e.watch(()=>t.showOneTimeHint,S=>{S&&(l.value=!0)},{immediate:!0});const m=S=>{a("update:modelValue",S)},g=(S=!0)=>{r.value="editing",l.value=!1,S&&a("rotate")};n({enterEditing:()=>g(!1)});const E=()=>{l.value=!l.value},p=async()=>{if(!(!t.generator||s.value)){s.value=!0,a("generate");try{const S=await t.generator();a("update:modelValue",S),l.value=!0,a("generated",S)}finally{s.value=!1}}},k=e.useTemplateRef("rootElement");let I,N;const D=e.ref(`calc(${Pe} + ${ae} + ${Ke})`),b=()=>{const S=k.value?.querySelector(".after-content-wrapper");S&&(D.value=`calc(${Pe} + ${S.offsetWidth}px + ${Ke})`)};return e.onMounted(()=>{const S=k.value?.querySelector(".after-content-wrapper");I=new ResizeObserver(()=>{N=window.requestAnimationFrame(()=>b())}),S&&I.observe(S),b()}),e.onBeforeUnmount(()=>{I?.disconnect(),N!==void 0&&window.cancelAnimationFrame(N)}),(S,O)=>{const B=e.resolveComponent("KButton"),_=e.resolveComponent("KTextArea"),T=e.resolveComponent("KClipboardProvider");return e.openBlock(),e.createElementBlock("div",{ref_key:"rootElement",ref:k,class:"kong-ui-public-sensitive-input"},[t.multiline?(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createVNode(_,{autocomplete:t.autocomplete,"character-limit":!1,"data-testid":"sensitive-input",disabled:t.disabled||void 0,error:t.error,help:t.help,label:t.label,"label-attributes":t.labelAttributes,"model-value":u.value?e.unref(f):t.modelValue,placeholder:u.value?void 0:c.value,readonly:u.value||t.readonly||void 0,required:t.required||void 0,resizable:"","onUpdate:modelValue":m},e.createSlots({_:2},[S.$slots["label-tooltip"]?{name:"label-tooltip",fn:e.withCtx(()=>[e.renderSlot(S.$slots,"label-tooltip",{},void 0,!0)]),key:"0"}:void 0]),1032,["autocomplete","disabled","error","help","label","label-attributes","model-value","placeholder","readonly","required"]),t.error&&t.errorMessage?(e.openBlock(),e.createElementBlock("p",Vi,e.toDisplayString(t.errorMessage),1)):e.createCommentVNode("",!0),e.createElementVNode("div",Ri,[u.value?(e.openBlock(),e.createBlock(B,{key:0,appearance:"tertiary",class:"sensitive-input-action","data-testid":"sensitive-input-rotate",size:"small",onClick:O[1]||(O[1]=x=>g(!0))},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(y.value),1)]),_:1})):t.generator?(e.openBlock(),e.createBlock(B,{key:1,appearance:"tertiary",class:"sensitive-input-action","data-testid":"sensitive-input-generate",disabled:t.disabled||s.value,size:"small",onClick:p},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(v.value),1)]),_:1},8,["disabled"])):e.createCommentVNode("",!0)])],64)):(e.openBlock(),e.createBlock(e.resolveDynamicComponent(t.useSecretInput?e.unref(Mt.SecretInput):e.unref(X.KInput)),e.mergeProps({key:0,autocomplete:t.autocomplete,"data-testid":"sensitive-input",disabled:t.disabled,error:t.error,"error-message":t.errorMessage,help:t.help,label:t.label,"label-attributes":t.labelAttributes,"model-value":u.value?e.unref(f):t.modelValue,placeholder:u.value?void 0:c.value,readonly:u.value||t.readonly,required:t.required},t.useSecretInput?{masked:!l.value,showMaskToggle:!1}:{type:$.value},{"onUpdate:modelValue":m}),e.createSlots({after:e.withCtx(()=>[u.value?(e.openBlock(),e.createBlock(B,{key:0,appearance:"tertiary",class:"sensitive-input-action","data-testid":"sensitive-input-rotate",size:"small",onClick:O[0]||(O[0]=x=>g(!0))},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(y.value),1)]),_:1})):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[t.generator?(e.openBlock(),e.createBlock(B,{key:0,appearance:"tertiary",class:"sensitive-input-action","data-testid":"sensitive-input-generate",disabled:t.disabled||s.value,size:"small",onClick:p},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(v.value),1)]),_:1},8,["disabled"])):e.createCommentVNode("",!0),(e.openBlock(),e.createBlock(e.resolveDynamicComponent(l.value?e.unref(q.VisibilityOffIcon):e.unref(q.VisibilityIcon)),{"aria-label":l.value?e.unref(i)("sensitiveInput.hideKey"):e.unref(i)("sensitiveInput.showKey"),class:"sensitive-input-toggle",color:"currentColor","data-testid":"sensitive-input-toggle",role:"button",size:`var(--kui-icon-size-40, ${e.unref(ae)})`,tabindex:"0",onClick:E,onKeydown:e.withKeys(e.withModifiers(E,["prevent"]),["enter","space"])},null,40,["aria-label","size","onKeydown"]))],64))]),_:2},[S.$slots["label-tooltip"]?{name:"label-tooltip",fn:e.withCtx(()=>[e.renderSlot(S.$slots,"label-tooltip",{},void 0,!0)]),key:"0"}:void 0]),1040,["autocomplete","disabled","error","error-message","help","label","label-attributes","model-value","placeholder","readonly","required"])),t.showOneTimeHint?(e.openBlock(),e.createElementBlock("div",Di,[e.createVNode(e.unref(q.InfoIcon),{class:"sensitive-input-hint-icon",color:`var(--kui-color-text-info, ${e.unref(Jt)})`,size:`var(--kui-icon-size-40, ${e.unref(ae)})`},null,8,["color","size"]),e.createElementVNode("span",Ki,e.toDisplayString(C.value),1),e.createVNode(T,null,{default:e.withCtx(({copyToClipboard:x})=>[e.createVNode(B,{appearance:"none",class:"sensitive-input-action sensitive-input-copy","data-testid":"sensitive-input-copy",icon:!0,onClick:K=>x(t.modelValue)},{default:e.withCtx(()=>[e.createVNode(e.unref(q.CopyIcon),{color:"currentColor",size:`var(--kui-icon-size-40, ${e.unref(ae)})`},null,8,["size"]),e.createTextVNode(" "+e.toDisplayString(e.unref(i)("sensitiveInput.copy")),1)]),_:1},8,["onClick"])]),_:1})])):e.createCommentVNode("",!0),e.renderSlot(S.$slots,"alert",{},void 0,!0)],512)}}}),Ui=d._export_sfc(Mi,[["__scopeId","data-v-f64f729c"]]),qi={key:1},ji=e.defineComponent({__name:"TableTags",props:{tags:{type:[Array,String],default:()=>[]},tagMaxWidth:{type:String,default:void 0}},setup(t){const n=t,o=e.computed(()=>{if(Array.isArray(n.tags))return n.tags;if(typeof n.tags=="string")try{const a=JSON.parse(n.tags);return Array.isArray(a)?a:[]}catch{return[]}return[]});return(a,i)=>o.value?.length>0?(e.openBlock(),e.createBlock(e.unref(X.KTruncate),{key:0},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(o.value,r=>(e.openBlock(),e.createBlock(e.unref(X.KBadge),{key:r,"max-width":t.tagMaxWidth,onClick:i[0]||(i[0]=e.withModifiers(()=>{},["stop"]))},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(r),1)]),_:2},1032,["max-width"]))),128))]),_:1})):(e.openBlock(),e.createElementBlock("span",qi,"-"))}}),{useAxios:zi,useDeleteUrlBuilder:Gi,useBaseEntityDeckOptions:Hi,useBaseFormDeckOptions:Yi,useErrors:Wi,useExternalLinkCreator:Ji,useFetchUrlBuilder:Qi,useFetcher:Xi,useFetcherCacheKey:Zi,useDebouncedFilter:el,useStringHelpers:tl,useHelpers:nl,useGatewayFeatureSupported:ol,useTruncationDetector:al,useValidators:rl,useSchema:il,useSchemaProvider:ll,useTableState:sl,useManagedByEnabled:cl,useManagedByColumn:dl}=d.composables;exports.CONFIG_CARD_CODE_BLOCK_MAX_HEIGHT=d.CONFIG_CARD_CODE_BLOCK_MAX_HEIGHT;exports.CONFIG_CARD_FORMATS=d.CONFIG_CARD_FORMATS;exports.CONFIG_CARD_SHOW_SENSITIVE_FIELDS=d.CONFIG_CARD_SHOW_SENSITIVE_FIELDS;exports.ConfigurationSchemaSection=d.ConfigurationSchemaSection;exports.ConfigurationSchemaType=d.ConfigurationSchemaType;exports.DECK_COMMAND_EDITOR_KEY=d.DECK_COMMAND_EDITOR_KEY;exports.DECK_COMMAND_EDITOR_MISSING_WARNING=d.DECK_COMMAND_EDITOR_MISSING_WARNING;exports.ENTITIES_FEATURE_FLAGS=d.ENTITIES_FEATURE_FLAGS;exports.EventGatewayTypesArray=d.EventGatewayTypesArray;exports.FetcherStatus=d.FetcherStatus;exports.IdentityTypesArray=d.IdentityTypesArray;exports.MANAGED_BY_LABELS=d.MANAGED_BY_LABELS;exports.PLUGIN_FORM_LAYOUT_STATE=d.PLUGIN_FORM_LAYOUT_STATE;exports.SHIKI_MAX_HIGHLIGHT_LENGTH=d.SHIKI_MAX_HIGHLIGHT_LENGTH;exports.SupportedEntityDeckArray=d.SupportedEntityDeckArray;exports.SupportedEntityType=d.SupportedEntityType;exports.SupportedEntityTypesArray=d.SupportedEntityTypesArray;exports.getManagedByFieldLabel=d.getManagedByFieldLabel;exports.getManagedByLabel=d.getManagedByLabel;exports.isSupportedDeckEntityType=d.isSupportedDeckEntityType;exports.Appearances=he;exports.BASE_FORM_CONFIG_TABS=Ut;exports.ConfigCardDisplay=Nt;exports.ConfigCardItem=_e;exports.DeckCodeBlock=Ve;exports.EntityBaseConfigCard=vr;exports.EntityBaseForm=br;exports.EntityBaseFormType=Ze;exports.EntityBaseTable=Ir;exports.EntityDeleteModal=Lr;exports.EntityEmptyState=Fi;exports.EntityFilter=zr;exports.EntityFormBlock=mi;exports.EntityFormSection=ri;exports.EntityLink=Ci;exports.EntityToggleModal=Gr;exports.EntityTypes=Xe;exports.GeneratePatModal=Et;exports.InternalLinkItem=nt;exports.JsonCodeBlock=$e;exports.OnboardingCard=mn;exports.PermissionsWrapper=Hr;exports.SensitiveInput=Ui;exports.TableTags=ji;exports.TerraformCodeBlock=Fe;exports.YamlCodeBlock=Le;exports.highlightCodeBlock=te;exports.useAxios=zi;exports.useBaseEntityDeckOptions=Hi;exports.useBaseFormDeckOptions=Yi;exports.useDebouncedFilter=el;exports.useDeleteUrlBuilder=Gi;exports.useErrors=Wi;exports.useExternalLinkCreator=Ji;exports.useFetchUrlBuilder=Qi;exports.useFetcher=Xi;exports.useFetcherCacheKey=Zi;exports.useGatewayFeatureSupported=ol;exports.useHelpers=nl;exports.useManagedByColumn=dl;exports.useManagedByEnabled=cl;exports.useSchema=il;exports.useSchemaProvider=ll;exports.useStringHelpers=tl;exports.useTableState=sl;exports.useTruncationDetector=al;exports.useValidators=rl;
|
|
@@ -4534,7 +4534,7 @@ ${g.value}
|
|
|
4534
4534
|
]));
|
|
4535
4535
|
};
|
|
4536
4536
|
}
|
|
4537
|
-
}), ks = /* @__PURE__ */ ie(rl, [["__scopeId", "data-v-
|
|
4537
|
+
}), ks = /* @__PURE__ */ ie(rl, [["__scopeId", "data-v-26720193"]]), Cs = /* @__PURE__ */ Z({
|
|
4538
4538
|
__name: "EntityToggleModal",
|
|
4539
4539
|
props: {
|
|
4540
4540
|
visible: {
|
package/dist/style.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
.deck-command-editor-wrapper[data-v-2da602e1]{isolation:isolate;position:relative}.deck-command-editor-wrapper .deck-command-editor[data-v-2da602e1]{height:300px;margin-top:12px;margin-top:var(--kui-space-50, 12px);width:100%}.deck-command-editor-wrapper .deck-command-copy-button[data-v-2da602e1]{opacity:0;position:absolute;right:10px;top:10px;transition:opacity linear .2s;transition:opacity linear var(--kui-animation-duration-20, .2s);z-index:10000}.deck-command-editor-wrapper:hover .deck-command-copy-button[data-v-2da602e1]{opacity:1}.editor-skeleton[data-v-ec59bbd1]{margin-top:4px;margin-top:var(--kui-space-20, 4px)}.kong-ui-onboarding-card[data-v-10c7d0b0]{background-color:#f9fafb;background-color:var(--kui-color-background-neutral-weakest, #f9fafb)}.kong-ui-onboarding-card .onboarding-card-subtitle[data-v-10c7d0b0]{color:#3a3f51;color:var(--kui-color-text-neutral-stronger, #3a3f51);font-size:14px;font-size:var(--kui-font-size-30, 14px);font-weight:400;font-weight:var(--kui-font-weight-regular, 400);margin-top:4px;margin-top:var(--kui-space-20, 4px)}.kong-ui-onboarding-card .onboarding-items-grid[data-v-10c7d0b0]{display:grid;gap:16px;gap:var(--kui-space-60, 16px);grid-template-columns:repeat(auto-fit,minmax(min(220px,100%),1fr))}.kong-ui-onboarding-card .onboarding-item-wrapper[data-v-10c7d0b0]{background:none;border:none;color:inherit;cursor:pointer;display:flex;font:inherit;padding:0;padding:var(--kui-space-0, 0px);text-align:left;text-decoration:none}.kong-ui-onboarding-card .onboarding-item-wrapper.is-static[data-v-10c7d0b0]{cursor:default}.kong-ui-onboarding-card .onboarding-item-wrapper:not(.is-static):hover .onboarding-item[data-v-10c7d0b0]{border-color:#0044f4;border-color:var(--kui-color-border-primary, #0044f4)}.kong-ui-onboarding-card .onboarding-item-wrapper .onboarding-item[data-v-10c7d0b0]{flex:1}.kong-ui-onboarding-card .onboarding-item-wrapper .onboarding-item[data-v-10c7d0b0] .card-content{align-items:center;display:flex;gap:12px;gap:var(--kui-space-50, 12px)}.kong-ui-onboarding-card .onboarding-item-wrapper .onboarding-item[data-v-10c7d0b0]:not(.vertical-item) .card-content{flex-direction:row}.kong-ui-onboarding-card .onboarding-item-wrapper .onboarding-item.vertical-item[data-v-10c7d0b0] .card-content{align-items:center;flex-direction:column;justify-content:center;text-align:center}.kong-ui-onboarding-card .onboarding-item-wrapper .onboarding-item.vertical-item[data-v-10c7d0b0] .card-content .onboarding-item-content{flex:none}.kong-ui-onboarding-card .onboarding-item-icon-box[data-v-10c7d0b0]{align-items:center;border:1px solid transparent;border:var(--kui-border-width-10, 1px) solid transparent;border-radius:8px;border-radius:var(--kui-border-radius-40, 8px);display:flex;flex-shrink:0;height:56px;justify-content:center;width:56px}.kong-ui-onboarding-card .onboarding-item-content[data-v-10c7d0b0]{flex:1;min-width:0}.kong-ui-onboarding-card .onboarding-item-title[data-v-10c7d0b0]{color:#232633;color:var(--kui-color-text-neutral-strongest, #232633);font-weight:600;font-weight:var(--kui-font-weight-semibold, 600)}.kong-ui-onboarding-card .onboarding-item-description[data-v-10c7d0b0]{color:#6c7489;color:var(--kui-color-text-neutral, #6c7489);font-size:12px;font-size:var(--kui-font-size-20, 12px);line-height:16px;line-height:var(--kui-line-height-20, 16px);margin-top:4px;margin-top:var(--kui-space-20, 4px);overflow-wrap:break-word}.kong-ui-onboarding-card .onboarding-item-append-icon[data-v-10c7d0b0]{flex-shrink:0}.config-card-fieldset[data-v-69a70744]{border:solid 1px #e0e4ea;border:solid var(--kui-border-width-10, 1px) var(--kui-color-border, #e0e4ea);border-radius:4px;margin-bottom:8px;margin-bottom:var(--kui-space-40, 8px);margin-top:4px}.config-card-fieldset-title[data-v-69a70744]{font-size:14px;font-size:var(--kui-font-size-30, 14px);padding:0 8px;padding:0 var(--kui-space-40, 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;margin:var(--kui-space-0, 0px) var(--kui-space-60, 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-6996418f] .k-button.navigation-button{font-size:14px;font-weight:400}.navigation-link[data-v-6996418f]{color:#0044f4;color:var(--kui-color-text-primary, #0044f4);font-size:14px;font-weight:400;text-decoration:underline}.navigation-subtitle[data-v-6996418f]{color:#6c7489;color:var(--kui-color-text-neutral, #6c7489);font-size:12px;font-weight:400}.config-card-details-row[data-v-d19d9ec8]{align-items:center;border-bottom:1px solid #e0e4ea;border-bottom:var(--kui-border-width-10, 1px) solid var(--kui-color-border, #e0e4ea);box-sizing:border-box;display:flex;padding:16px;padding:var(--kui-space-60, 16px);padding-left:0;width:100%}.config-card-details-row.json-array-item[data-v-d19d9ec8]{border-bottom:none}.config-card-details-row.json-item[data-v-d19d9ec8]{display:block}.config-card-details-row .config-card-details-label[data-v-d19d9ec8]{box-sizing:border-box;padding-right:16px;padding-right:var(--kui-space-60, 16px);width:25%}.config-card-details-row .config-card-details-label.json-item-label[data-v-d19d9ec8]{width:100%}.config-card-details-row .config-card-details-label.slim-label[data-v-d19d9ec8]{width:50%}.config-card-details-row .config-card-details-label label[data-v-d19d9ec8]{color:#3a3f51;color:var(--kui-color-text-neutral-stronger, #3a3f51);display:inline-flex;max-width:100%}.config-card-details-row .config-card-details-label label .label-content[data-v-d19d9ec8]{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-d19d9ec8]{min-width:0}.config-card-details-row .config-card-details-value[data-v-d19d9ec8]{box-sizing:border-box;width:75%}.config-card-details-row .config-card-details-value.json-item-value[data-v-d19d9ec8]{width:100%}.config-card-details-row .config-card-details-value.slim-value[data-v-d19d9ec8]{width:50%}.config-card-details-row .config-card-details-value .truncated[data-v-d19d9ec8]{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-d19d9ec8]{overflow-wrap:anywhere}.config-card-details-row .config-card-details-value .copy-uuid-array[data-v-d19d9ec8] .k-copy:not(:last-of-type){margin-bottom:8px;margin-bottom:var(--kui-space-40, 8px)}.config-card-details-row .config-card-details-value .method-badge-array[data-v-d19d9ec8]{display:flex;flex-wrap:wrap;row-gap:10px}.config-card-details-row .config-badge[data-v-d19d9ec8]{margin-right:4px;margin-right:var(--kui-space-20, 4px)}.config-card-details-row[data-v-d19d9ec8] .k-label{margin-bottom:0}.config-card-details-row[data-v-d19d9ec8] .k-label .kong-icon-infoFilled{display:flex}.config-card-details-row[data-v-d19d9ec8] .config-card-details-row{width:auto}.json-endpoint-method[data-v-8736ff0c]{flex-shrink:0}.json-endpoint-url[data-v-8736ff0c]{direction:rtl;font-family:JetBrains Mono,Consolas,monospace;font-family:var(--kui-font-family-code, "JetBrains Mono", Consolas, monospace);font-size:12px;font-size:var(--kui-font-size-20, 12px);margin-right:auto;max-width:var(--v6e8a5e62);min-width:0;overflow:hidden;text-align:left;text-overflow:ellipsis;white-space:nowrap}.deck-callout[data-v-0bf1334c]{margin-bottom:16px;margin-bottom:var(--kui-space-60, 16px)}.deck-callout .cta[data-v-0bf1334c]{background:none;border:none;color:inherit;cursor:pointer;font:inherit;font-weight:600;font-weight:var(--kui-font-weight-semibold, 600);padding:0;text-decoration:underline}.generate-pat-modal[data-v-be3cd315] .modal-content{display:flex;flex-direction:column;gap:20px;gap:var(--kui-space-70, 20px)}.deck-config .k-select[data-v-81758ed8]{margin-bottom:16px;margin-bottom:var(--kui-space-60, 16px)}.deck-config .k-code-block[data-v-81758ed8]{margin-top:12px;margin-top:var(--kui-space-50, 12px)}.deck-config .k-code-block.customization[data-v-81758ed8]{background-color:#fff;background-color:var(--kui-color-background, #ffffff);border:1px solid #e0e4ea;border:1px solid var(--kui-color-border, #e0e4ea);border-radius:8px;border-radius:var(--kui-border-radius-40, 8px)}.deck-config .step-title[data-v-81758ed8]{align-items:center;align-self:stretch;font-size:16px;font-size:var(--kui-font-size-40, 16px);font-weight:700;font-weight:var(--kui-font-weight-bold, 700);gap:16px}.deck-config .step-title[data-v-81758ed8]:not(:first-child){margin-top:16px;margin-top:var(--kui-space-60, 16px)}.deck-config .konnect-pat-actions[data-v-81758ed8]{align-items:center;display:flex;flex-direction:row;gap:8px;gap:var(--kui-space-40, 8px);margin-top:8px;margin-top:var(--kui-space-40, 8px)}.deck-config .copy-konnect-pat-alert[data-v-81758ed8]{margin-top:8px;margin-top:var(--kui-space-40, 8px)}.deck-config .customization-secret-advise[data-v-81758ed8]{font-size:14px;font-size:var(--kui-font-size-30, 14px);opacity:.7}.deck-config .customization-footer-reminder[data-v-81758ed8]{margin-top:16px;margin-top:var(--kui-space-60, 16px)}.config-card-prop-section-title[data-v-83075649]{color:#0d0e14;color:var(--kui-color-text, #0d0e14);font-size:16px;font-size:var(--kui-font-size-40, 16px);font-weight:600;font-weight:var(--kui-font-weight-semibold, 600);margin-bottom:16px;margin-bottom:var(--kui-space-60, 16px);margin-top:48px;margin-top:var(--kui-space-110, 48px)}.kong-ui-entity-base-config-card .config-card-actions[data-v-69371376]{align-items:center;display:flex;gap:16px;gap:var(--kui-space-60, 16px)}.kong-ui-entity-base-config-card .config-card-actions .row[data-v-69371376]{align-items:center;display:flex}.kong-ui-entity-base-config-card .config-card-actions .config-format-select-label[data-v-69371376]{margin-bottom:0;margin-bottom:var(--kui-space-0, 0px);margin-right:8px;margin-right:var(--kui-space-40, 8px)}.kong-ui-entity-base-config-card .config-card-actions .sensitive-fields-checkbox[data-v-69371376]{align-items:center}.kong-ui-entity-base-config-card .config-card-actions .sensitive-fields-checkbox[data-v-69371376] .checkbox-label{width:max-content}.kong-ui-entity-base-config-card .config-card-prop-section-title[data-v-69371376]{color:#0d0e14;color:var(--kui-color-text, #0d0e14);font-size:16px;font-size:var(--kui-font-size-40, 16px);font-weight:600;margin-bottom:16px;margin-bottom:var(--kui-space-60, 16px);margin-top:48px;margin-top:var(--kui-space-110, 48px)}.kong-ui-entity-base-config-card[data-v-69371376] .config-card-details-row:last-of-type{border-bottom:none}.kong-ui-entity-base-config-card .book-icon[data-v-69371376]{margin-left:8px;margin-left:var(--kui-space-40, 8px);padding:0;padding:var(--kui-space-0, 0px)}.kong-ui-entity-base-form[data-v-b3590221]{box-sizing:border-box;max-width:1536px;max-width:var(--kui-breakpoint-desktop, 1536px);width:100%}.kong-ui-entity-base-form[data-v-b3590221] .k-slideout-title{color:#0d0e14!important;color:var(--kui-color-text, #0d0e14)!important;font-size:24px!important;font-size:var(--kui-font-size-70, 24px)!important;font-weight:700!important;font-weight:var(--kui-font-weight-bold, 700)!important;line-height:32px!important;line-height:var(--kui-line-height-60, 32px)!important;margin-bottom:16px!important;margin-bottom:var(--kui-space-60, 16px)!important}.kong-ui-entity-base-form[data-v-b3590221] .k-card.content-card{padding:0 16px!important;padding:var(--kui-space-0, 0px) var(--kui-space-60, 16px)!important}.kong-ui-entity-base-form[data-v-b3590221] .tab-item>div.tab-link.has-panels{color:#6c7489!important;color:var(--kui-color-text-neutral, #6c7489)!important;font-size:14px!important;font-size:var(--kui-font-size-30, 14px)!important;font-weight:700!important;font-weight:var(--kui-font-weight-bold, 700)!important;line-height:24px!important;line-height:var(--kui-line-height-40, 24px)!important}.kong-ui-entity-base-form[data-v-b3590221] .tab-item.active>div.tab-link.has-panels{color:#0d0e14!important;color:var(--kui-color-text, #0d0e14)!important;font-weight:600!important;font-weight:var(--kui-font-weight-semibold, 600)!important}.kong-ui-entity-base-form[data-v-b3590221] .slideout-content{overflow-y:unset!important}.kong-ui-entity-base-form.new-form-layout[data-v-b3590221]{background-color:#0000;background-color:var(--kui-color-background-transparent, rgba(0, 0, 0, 0));border:none;padding:0}.kong-ui-entity-base-form.new-form-layout[data-v-b3590221]>.card-content>form>.form-actions{justify-content:flex-start;margin-top:20px;margin-top:var(--kui-space-70, 20px)}.kong-ui-entity-base-form.new-form-layout .form-error[data-v-b3590221]{margin:20px 0 0 16px;margin:var(--kui-space-70, 20px) 0 0 var(--kui-space-60, 16px)}.kong-ui-entity-base-form .button-customize-deck-wrapper[data-v-b3590221]{display:flex;flex-direction:row;justify-content:flex-end;margin-bottom:16px;margin-bottom:var(--kui-space-60, 16px)}.form-actions[data-v-b3590221]{align-items:center;display:flex;justify-content:flex-end;margin-top:24px;margin-top:var(--kui-space-80, 24px)}.form-actions[data-v-b3590221] .k-button:last-of-type,.form-actions[data-v-b3590221] .k-button:nth-last-of-type(2){margin-inline-start:16px;margin-inline-start:var(--kui-space-60, 16px)}.form-actions-reverted[data-v-b3590221]{direction:rtl}.content-wrapper[data-v-a3a65cac] .k-tooltip{word-break:break-all}.kong-ui-entity-base-table .toolbar-container[data-v-bcc0ec48]{align-items:center;display:flex;width:100%}.kong-ui-entity-base-table .toolbar-button-container[data-v-bcc0ec48]{margin-left:auto}.kong-ui-entity-base-table .hidden[data-v-bcc0ec48]{display:none}.kong-ui-entity-delete-modal .message[data-v-61f55f42],.kong-ui-entity-delete-modal .description[data-v-61f55f42]{line-height:20px;line-height:var(--kui-line-height-30, 20px);margin:0;margin:var(--kui-space-0, 0px)}.kong-ui-entity-delete-modal .message strong[data-v-61f55f42]{font-weight:600;font-weight:var(--kui-font-weight-semibold, 600)}.kong-ui-entity-delete-modal .description[data-v-61f55f42]{margin-top:32px;margin-top:var(--kui-space-90, 32px)}.kong-ui-entity-delete-modal .extra[data-v-61f55f42]{margin-top:16px;margin-top:var(--kui-space-60, 16px)}.kong-ui-entity-delete-modal .body-stacked-copy .description[data-v-61f55f42]{margin-top:0;margin-top:var(--kui-space-0, 0px)}.kong-ui-entity-delete-modal .body-stacked-copy .description>p[data-v-61f55f42]{margin:0;margin:var(--kui-space-0, 0px)}.kong-ui-entity-delete-modal .body-stacked-copy .message[data-v-61f55f42]{margin-bottom:0;margin-bottom:var(--kui-space-0, 0px)}.kong-ui-entity-delete-modal[data-v-61f55f42] .prompt-confirmation-text{line-height:20px;line-height:var(--kui-line-height-30, 20px);margin:0;margin:var(--kui-space-0, 0px)}.kong-ui-entity-delete-modal-stacked-copy[data-v-61f55f42] .prompt-content+.prompt-confirmation-container{margin-top:32px;margin-top:var(--kui-space-90, 32px)}.kong-ui-entity-delete-error[data-v-61f55f42]{margin-bottom:12px;margin-bottom:var(--kui-space-50, 12px)}.kong-ui-entity-filter-input[data-v-10015be6]{width:100%}.kong-ui-entity-filter-clear[data-v-10015be6]{cursor:pointer}.kong-ui-entity-filter[data-v-10015be6]{display:flex;position:relative}.kong-ui-entity-filter[data-v-10015be6] .menu-content{flex-direction:column}.kong-ui-entity-filter[data-v-10015be6] .k-menu-item-divider hr{margin:12px 0}.kong-ui-entity-filter-backdrop[data-v-10015be6]{inset:0;position:fixed;z-index:1050}.kong-ui-entity-filter-menu[data-v-10015be6]{background-color:#fff;background-color:var(--kui-color-background, #ffffff);border:1px solid #afb7c5;border:var(--kui-border-width-10, 1px) solid var(--kui-color-border-neutral-weak, #afb7c5);border-radius:4px;border-radius:var(--kui-border-radius-20, 4px);box-shadow:0 4px 20px #e0e4ea;box-shadow:0 4px 20px var(--kui-color-border, #e0e4ea);left:0;margin-top:16px;padding:8px 0 12px;padding:var(--kui-space-40, 8px) 0 var(--kui-space-50, 12px);position:absolute;top:100%;width:300px;z-index:1060}.kong-ui-entity-filter-menu-item[data-v-10015be6]{border-bottom:1px solid #e0e4ea;border-bottom:var(--kui-border-width-10, 1px) solid var(--kui-color-border, #e0e4ea);color:#6c7489;color:var(--kui-color-text-neutral, #6c7489);font-size:12px;font-size:var(--kui-font-size-20, 12px);font-weight:400;font-weight:var(--kui-font-weight-regular, 400);line-height:16px;line-height:var(--kui-line-height-20, 16px);list-style:none;margin:0 20px;margin:var(--kui-space-0, 0px) var(--kui-space-70, 20px);padding:16px 0;padding:var(--kui-space-60, 16px) 0;position:relative;white-space:nowrap}.menu-item-title[data-v-10015be6]{align-items:center;cursor:pointer;display:flex;line-height:24px;line-height:var(--kui-line-height-40, 24px)}.menu-item-title.expanded[data-v-10015be6]{color:#232633;color:var(--kui-color-text-neutral-strongest, #232633)}.menu-item-expand-icon[data-v-10015be6]{margin-left:auto}.menu-item-expand-icon.expanded[data-v-10015be6]{transform:rotate(180deg)}.menu-item-indicator[data-v-10015be6]{background-color:#0044f4;background-color:var(--kui-color-background-primary, #0044f4);border-radius:50%;height:4px;margin-left:4px;width:4px}.menu-item-body[data-v-10015be6]{align-items:center;display:flex;justify-content:space-between;margin-top:16px;margin-top:var(--kui-space-60, 16px)}.menu-item-body[data-v-10015be6] .input{padding-bottom:4px!important;padding-top:4px!important}.menu-item-body[data-v-10015be6] .k-input{width:100%}.menu-item-body[data-v-10015be6] .k-select-input .input{font-size:12px}.menu-item-body[data-v-10015be6] .k-select-input .input::placeholder{color:#00000073!important;font-size:12px}.menu-item-label[data-v-10015be6]{margin-bottom:0;margin-right:12px}.menu-item-buttons[data-v-10015be6]{display:flex;justify-content:space-between;margin:10px 0 6px}.filter-clear-button-container[data-v-10015be6]{padding:12px 20px 0;padding:var(--kui-space-50, 12px) var(--kui-space-70, 20px) 0}fieldset[data-v-ccd29028]{margin:0;min-width:0;padding:0}.kong-ui-entity-form-section[data-v-ccd29028]{border:0}.kong-ui-entity-form-section .form-section-wrapper[data-v-ccd29028]{column-gap:16px;column-gap:var(--kui-space-60, 16px);display:flex;flex-direction:column;padding-bottom:64px;padding-bottom:var(--kui-space-130, 64px);row-gap:12px;row-gap:var(--kui-space-50, 12px);width:100%}@media(min-width:1024px){.kong-ui-entity-form-section .form-section-wrapper[data-v-ccd29028]{flex-direction:row}}.kong-ui-entity-form-section .form-section-wrapper .form-section-info[data-v-ccd29028]{flex:1}@media(min-width:1024px){.kong-ui-entity-form-section .form-section-wrapper .form-section-info[data-v-ccd29028]{max-width:350px}.kong-ui-entity-form-section .form-section-wrapper .form-section-info.sticky[data-v-ccd29028]{height:fit-content;margin-bottom:16px;margin-bottom:var(--kui-space-60, 16px);position:sticky;top:16px}}.kong-ui-entity-form-section .form-section-wrapper .form-section-info .form-section-title[data-v-ccd29028]{color:#0d0e14;color:var(--kui-color-text, #0d0e14);font-size:16px;font-size:var(--kui-font-size-40, 16px);font-weight:700;font-weight:var(--kui-font-weight-bold, 700);line-height:20px;line-height:var(--kui-line-height-30, 20px);margin-bottom:8px;margin-bottom:var(--kui-space-40, 8px);margin-top:0;margin-top:var(--kui-space-0, 0px)}.kong-ui-entity-form-section .form-section-wrapper .form-section-info .form-section-description[data-v-ccd29028],.kong-ui-entity-form-section .form-section-wrapper .form-section-info .form-section-description p[data-v-ccd29028],.kong-ui-entity-form-section .form-section-wrapper .form-section-info .form-section-description[data-v-ccd29028] p{color:#0d0e14;color:var(--kui-color-text, #0d0e14);font-size:14px;font-size:var(--kui-font-size-30, 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-ccd29028]{margin-top:32px;margin-top:var(--kui-space-90, 32px)}.kong-ui-entity-form-section .form-section-wrapper .form-section-content[data-v-ccd29028]{flex:1}.kong-ui-entity-form-section .form-section-wrapper .form-section-content[data-v-ccd29028]>*:not(:first-child){margin-top:24px;margin-top:var(--kui-space-80, 24px)}.kong-ui-entity-form-section.has-divider .form-section-wrapper[data-v-ccd29028]{border-bottom:1px solid #e0e4ea;border-bottom:var(--kui-border-width-10, 1px) solid var(--kui-color-border, #e0e4ea)}.kong-ui-entity-form-block .header[data-v-7dd2f21d]{align-items:flex-start;display:flex;gap:8px;gap:var(--kui-space-40, 8px)}.kong-ui-entity-form-block .step[data-v-7dd2f21d]{align-items:center;background:#fff;background:var(--kui-color-background, #ffffff);border:1px solid #afb7c5;border:1px solid var(--kui-color-border-neutral-weak, #afb7c5);border-radius:100px;border-radius:var(--kui-border-radius-round, 100px);display:flex;flex:0 0 auto;height:32px;justify-content:center;padding:4px;padding:var(--kui-space-20, 4px);width:32px}.kong-ui-entity-form-block .header-content[data-v-7dd2f21d]{align-items:flex-start;display:flex;flex:1 1 auto;flex-direction:column;gap:8px;gap:var(--kui-space-40, 8px);padding-top:4px;padding-top:var(--kui-space-20, 4px)}.kong-ui-entity-form-block .header-title[data-v-7dd2f21d]{color:#0d0e14;color:var(--kui-color-text, #0d0e14);font-size:18px;font-size:var(--kui-font-size-50, 18px);font-weight:700;font-weight:var(--kui-font-weight-bold, 700);line-height:24px;line-height:var(--kui-line-height-40, 24px);margin:0}.kong-ui-entity-form-block .header-description[data-v-7dd2f21d]{color:#52596e;color:var(--kui-color-text-neutral-strong, #52596e);font-size:14px;font-size:var(--kui-font-size-30, 14px);line-height:20px;line-height:var(--kui-line-height-30, 20px);margin:0}.kong-ui-entity-form-block .header-extra[data-v-7dd2f21d]{align-items:center;display:flex;flex:0 0 auto;gap:8px;gap:var(--kui-space-40, 8px);justify-content:flex-end}.kong-ui-entity-form-block .content[data-v-7dd2f21d]{background:#fff;background:var(--kui-color-background, #ffffff);border:1px solid #e0e4ea;border:var(--kui-border-width-10, 1px) solid var(--kui-color-border, #e0e4ea);border-radius:6px;border-radius:var(--kui-border-radius-30, 6px);display:flex;flex-direction:column;gap:20px;gap:var(--kui-space-70, 20px);margin-top:20px;margin-top:var(--kui-space-70, 20px);padding:20px 24px;padding:var(--kui-space-70, 20px) var(--kui-space-80, 24px)}.kong-ui-entity-form-block.stepped .content[data-v-7dd2f21d]{margin-left:16px;margin-left:var(--kui-space-60, 16px)}.kong-ui-public-entity-link[data-v-28214aed]{align-items:center;display:flex}.kong-ui-public-entity-link .deleted-entity[data-v-28214aed]{font-style:italic}.kong-ui-public-entity-link .entity-link[data-v-28214aed]{display:flex;flex:1}.kong-ui-public-entity-link .entity-link[data-v-28214aed] .external-link-icon{color:#0044f4;color:var(--kui-color-text-primary, #0044f4);margin-left:4px;margin-left:var(--kui-space-20, 4px);padding:2px;padding:var(--kui-space-10, 2px)}.kong-ui-public-entity-link .entity-link-label[data-v-28214aed]{display:inline-block;font-weight:400;font-weight:var(--kui-font-weight-regular, 400);max-width:90%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.kong-ui-public-entity-link .copy-uuid-tooltip[data-v-28214aed]{align-items:center;cursor:pointer;display:flex}.kong-ui-public-entity-link .copy-uuid-tooltip .entity-link-copy-id[data-v-28214aed]{margin-left:2px;margin-left:var(--kui-space-10, 2px)}.kong-ui-public-entity-empty-state[data-v-0b2e9081]{align-items:center;background-color:#fff;background-color:var(--kui-color-background, #ffffff);box-sizing:border-box;display:flex;flex-direction:column;font-family:Inter,Roboto,Helvetica,sans-serif;font-family:var(--kui-font-family-text, "Inter", Roboto, Helvetica, sans-serif);gap:24px;gap:var(--kui-space-80, 24px);padding:64px 0;padding:var(--kui-space-130, 64px) var(--kui-space-0, 0px);width:100%}@media(min-width:640px){.kong-ui-public-entity-empty-state[data-v-0b2e9081]{padding:64px 96px;padding:var(--kui-space-130, 64px) var(--kui-space-150, 96px)}}.kong-ui-public-entity-empty-state .empty-state-image[data-v-0b2e9081]{margin-bottom:8px;margin-bottom:var(--kui-space-40, 8px)}.kong-ui-public-entity-empty-state .entity-empty-state-content[data-v-0b2e9081]{align-items:center;display:flex;flex-direction:column;gap:8px;gap:var(--kui-space-40, 8px);text-align:center;width:100%}.kong-ui-public-entity-empty-state .entity-empty-state-content .entity-empty-state-title h1[data-v-0b2e9081]{align-items:center;color:#0d0e14;color:var(--kui-color-text, #0d0e14);display:flex;font-size:24px;font-size:var(--kui-font-size-70, 24px);font-weight:700;font-weight:var(--kui-font-weight-bold, 700);gap:8px;gap:var(--kui-space-40, 8px);line-height:32px;line-height:var(--kui-line-height-60, 32px);margin:0;margin:var(--kui-space-0, 0px)}.kong-ui-public-entity-empty-state .entity-empty-state-content .entity-empty-state-title h1.secondary[data-v-0b2e9081]{font-size:18px;font-size:var(--kui-font-size-50, 18px)}.kong-ui-public-entity-empty-state .entity-empty-state-description[data-v-0b2e9081],.kong-ui-public-entity-empty-state .entity-empty-state-pricing[data-v-0b2e9081]{color:#52596e;color:var(--kui-color-text-neutral-strong, #52596e);font-size:14px;font-size:var(--kui-font-size-30, 14px);font-weight:400;font-weight:var(--kui-font-weight-regular, 400);line-height:20px;line-height:var(--kui-line-height-30, 20px);max-width:640px}.kong-ui-public-entity-empty-state .entity-empty-state-description p[data-v-0b2e9081],.kong-ui-public-entity-empty-state .entity-empty-state-pricing p[data-v-0b2e9081]{margin:0;margin:var(--kui-space-0, 0px)}.kong-ui-public-entity-empty-state .entity-empty-state-pricing[data-v-0b2e9081]{margin-top:16px;margin-top:var(--kui-space-60, 16px)}.kong-ui-public-entity-empty-state .entity-empty-state-message[data-v-0b2e9081]{color:#52596e;color:var(--kui-color-text-neutral-strong, #52596e)}.kong-ui-public-entity-empty-state .entity-empty-state-action[data-v-0b2e9081]{align-items:center;display:flex;gap:12px;gap:var(--kui-space-50, 12px)}.kong-ui-public-entity-empty-state .entity-empty-state-card-container[data-v-0b2e9081]{display:flex;flex-wrap:wrap;gap:16px;gap:var(--kui-space-60, 16px);justify-content:space-around;margin-top:8px;margin-top:var(--kui-space-40, 8px);width:312px}@media(min-width:640px){.kong-ui-public-entity-empty-state .entity-empty-state-card-container[data-v-0b2e9081]{width:calc(624px + kui-space-60);width:calc(2 * 312px + var(--kui-space-60, kui-space-60))}}.kong-ui-public-entity-empty-state .entity-empty-state-card-container .entity-empty-state-card[data-v-0b2e9081]{background-color:#f9fafb;background-color:var(--kui-color-background-neutral-weakest, #f9fafb);border:1px solid #e0e4ea;border:var(--kui-border-width-10, 1px) solid var(--kui-color-border, #e0e4ea);border-radius:6px;border-radius:var(--kui-border-radius-30, 6px);color:#afb7c5;color:var(--kui-color-text-neutral-weak, #afb7c5);gap:8px;gap:var(--kui-space-40, 8px);height:160px;padding:20px;padding:var(--kui-space-70, 20px);width:312px}.kong-ui-public-entity-empty-state .entity-empty-state-card-container .entity-empty-state-card .feature-icon[data-v-0b2e9081]{color:#3a3f51;color:var(--kui-color-text-neutral-stronger, #3a3f51);display:flex;margin-bottom:12px;margin-bottom:var(--kui-space-50, 12px)}.kong-ui-public-entity-empty-state .entity-empty-state-card-container .entity-empty-state-card .feature-icon[data-v-0b2e9081] .kui-icon{height:20px!important;height:var(--kui-icon-size-40, 20px)!important;width:20px!important;width:var(--kui-icon-size-40, 20px)!important}.kong-ui-public-entity-empty-state .entity-empty-state-card-container .entity-empty-state-card[data-v-0b2e9081] .card-title{font-size:14px;font-size:var(--kui-font-size-30, 14px);font-weight:600;font-weight:var(--kui-font-weight-semibold, 600)}.kong-ui-public-entity-empty-state .entity-empty-state-card-container .entity-empty-state-card[data-v-0b2e9081] .card-content{-webkit-box-orient:vertical;color:#6c7489;color:var(--kui-color-text-neutral, #6c7489);display:-webkit-box;-webkit-line-clamp:3;line-clamp:3;overflow:hidden}.kong-ui-public-entity-empty-state .entity-empty-state-bottom-container[data-v-0b2e9081]{border-top:1px solid #e0e4ea;border-top:var(--kui-border-width-10, 1px) solid var(--kui-color-border, #e0e4ea);display:flex;flex-direction:column;gap:16px;gap:var(--kui-space-60, 16px);padding-top:48px;padding-top:var(--kui-space-110, 48px);width:100%}@media(min-width:640px){.kong-ui-public-entity-empty-state .entity-empty-state-bottom-container[data-v-0b2e9081]{width:calc(624px + kui-space-60);width:calc(2 * 312px + var(--kui-space-60, kui-space-60))}}.kong-ui-public-sensitive-input[data-v-f64f729c]{display:flex;flex-direction:column;gap:8px;gap:var(--kui-space-40, 8px)}.kong-ui-public-sensitive-input[data-v-f64f729c] .after-content-wrapper{align-items:center;gap:4px!important;gap:var(--kui-space-20, 4px)!important}.kong-ui-public-sensitive-input[data-v-f64f729c] .input{padding-right:var(--v673e9b78)!important}.kong-ui-public-sensitive-input .sensitive-input-action[data-v-f64f729c]{color:#0044f4;color:var(--kui-color-text-primary, #0044f4);font-weight:600;font-weight:var(--kui-font-weight-semibold, 600);white-space:nowrap}.kong-ui-public-sensitive-input .sensitive-input-toggle[data-v-f64f729c]{color:#6c7489;color:var(--kui-color-text-neutral, #6c7489);cursor:pointer}.kong-ui-public-sensitive-input .sensitive-input-error-message[data-v-f64f729c]{color:#d60027;color:var(--kui-color-text-danger, #d60027);font-size:12px;font-size:var(--kui-font-size-20, 12px);margin-top:-4px;margin-top:calc(-1 * var(--kui-space-20, 4px))}.kong-ui-public-sensitive-input .sensitive-input-textarea-actions[data-v-f64f729c]{display:flex;justify-content:flex-end}.kong-ui-public-sensitive-input .sensitive-input-hint[data-v-f64f729c]{align-items:center;background-color:#eefaff;background-color:var(--kui-color-background-info-weakest, #eefaff);border-radius:6px;border-radius:var(--kui-border-radius-30, 6px);color:#0044f4;color:var(--kui-color-text-info, #0044f4);display:flex;gap:8px;gap:var(--kui-space-40, 8px);padding:8px 12px;padding:var(--kui-space-40, 8px) var(--kui-space-50, 12px)}.kong-ui-public-sensitive-input .sensitive-input-hint .sensitive-input-hint-icon[data-v-f64f729c]{flex-shrink:0}.kong-ui-public-sensitive-input .sensitive-input-hint .sensitive-input-hint-text[data-v-f64f729c]{flex:1;font-size:14px;font-size:var(--kui-font-size-30, 14px)}.kong-ui-public-sensitive-input .sensitive-input-hint .sensitive-input-copy[data-v-f64f729c]{display:inline-flex;font-size:12px;font-size:var(--kui-font-size-20, 12px);gap:4px;gap:var(--kui-space-20, 4px)}
|
|
1
|
+
.deck-command-editor-wrapper[data-v-2da602e1]{isolation:isolate;position:relative}.deck-command-editor-wrapper .deck-command-editor[data-v-2da602e1]{height:300px;margin-top:12px;margin-top:var(--kui-space-50, 12px);width:100%}.deck-command-editor-wrapper .deck-command-copy-button[data-v-2da602e1]{opacity:0;position:absolute;right:10px;top:10px;transition:opacity linear .2s;transition:opacity linear var(--kui-animation-duration-20, .2s);z-index:10000}.deck-command-editor-wrapper:hover .deck-command-copy-button[data-v-2da602e1]{opacity:1}.editor-skeleton[data-v-ec59bbd1]{margin-top:4px;margin-top:var(--kui-space-20, 4px)}.kong-ui-onboarding-card[data-v-10c7d0b0]{background-color:#f9fafb;background-color:var(--kui-color-background-neutral-weakest, #f9fafb)}.kong-ui-onboarding-card .onboarding-card-subtitle[data-v-10c7d0b0]{color:#3a3f51;color:var(--kui-color-text-neutral-stronger, #3a3f51);font-size:14px;font-size:var(--kui-font-size-30, 14px);font-weight:400;font-weight:var(--kui-font-weight-regular, 400);margin-top:4px;margin-top:var(--kui-space-20, 4px)}.kong-ui-onboarding-card .onboarding-items-grid[data-v-10c7d0b0]{display:grid;gap:16px;gap:var(--kui-space-60, 16px);grid-template-columns:repeat(auto-fit,minmax(min(220px,100%),1fr))}.kong-ui-onboarding-card .onboarding-item-wrapper[data-v-10c7d0b0]{background:none;border:none;color:inherit;cursor:pointer;display:flex;font:inherit;padding:0;padding:var(--kui-space-0, 0px);text-align:left;text-decoration:none}.kong-ui-onboarding-card .onboarding-item-wrapper.is-static[data-v-10c7d0b0]{cursor:default}.kong-ui-onboarding-card .onboarding-item-wrapper:not(.is-static):hover .onboarding-item[data-v-10c7d0b0]{border-color:#0044f4;border-color:var(--kui-color-border-primary, #0044f4)}.kong-ui-onboarding-card .onboarding-item-wrapper .onboarding-item[data-v-10c7d0b0]{flex:1}.kong-ui-onboarding-card .onboarding-item-wrapper .onboarding-item[data-v-10c7d0b0] .card-content{align-items:center;display:flex;gap:12px;gap:var(--kui-space-50, 12px)}.kong-ui-onboarding-card .onboarding-item-wrapper .onboarding-item[data-v-10c7d0b0]:not(.vertical-item) .card-content{flex-direction:row}.kong-ui-onboarding-card .onboarding-item-wrapper .onboarding-item.vertical-item[data-v-10c7d0b0] .card-content{align-items:center;flex-direction:column;justify-content:center;text-align:center}.kong-ui-onboarding-card .onboarding-item-wrapper .onboarding-item.vertical-item[data-v-10c7d0b0] .card-content .onboarding-item-content{flex:none}.kong-ui-onboarding-card .onboarding-item-icon-box[data-v-10c7d0b0]{align-items:center;border:1px solid transparent;border:var(--kui-border-width-10, 1px) solid transparent;border-radius:8px;border-radius:var(--kui-border-radius-40, 8px);display:flex;flex-shrink:0;height:56px;justify-content:center;width:56px}.kong-ui-onboarding-card .onboarding-item-content[data-v-10c7d0b0]{flex:1;min-width:0}.kong-ui-onboarding-card .onboarding-item-title[data-v-10c7d0b0]{color:#232633;color:var(--kui-color-text-neutral-strongest, #232633);font-weight:600;font-weight:var(--kui-font-weight-semibold, 600)}.kong-ui-onboarding-card .onboarding-item-description[data-v-10c7d0b0]{color:#6c7489;color:var(--kui-color-text-neutral, #6c7489);font-size:12px;font-size:var(--kui-font-size-20, 12px);line-height:16px;line-height:var(--kui-line-height-20, 16px);margin-top:4px;margin-top:var(--kui-space-20, 4px);overflow-wrap:break-word}.kong-ui-onboarding-card .onboarding-item-append-icon[data-v-10c7d0b0]{flex-shrink:0}.config-card-fieldset[data-v-69a70744]{border:solid 1px #e0e4ea;border:solid var(--kui-border-width-10, 1px) var(--kui-color-border, #e0e4ea);border-radius:4px;margin-bottom:8px;margin-bottom:var(--kui-space-40, 8px);margin-top:4px}.config-card-fieldset-title[data-v-69a70744]{font-size:14px;font-size:var(--kui-font-size-30, 14px);padding:0 8px;padding:0 var(--kui-space-40, 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;margin:var(--kui-space-0, 0px) var(--kui-space-60, 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-6996418f] .k-button.navigation-button{font-size:14px;font-weight:400}.navigation-link[data-v-6996418f]{color:#0044f4;color:var(--kui-color-text-primary, #0044f4);font-size:14px;font-weight:400;text-decoration:underline}.navigation-subtitle[data-v-6996418f]{color:#6c7489;color:var(--kui-color-text-neutral, #6c7489);font-size:12px;font-weight:400}.config-card-details-row[data-v-d19d9ec8]{align-items:center;border-bottom:1px solid #e0e4ea;border-bottom:var(--kui-border-width-10, 1px) solid var(--kui-color-border, #e0e4ea);box-sizing:border-box;display:flex;padding:16px;padding:var(--kui-space-60, 16px);padding-left:0;width:100%}.config-card-details-row.json-array-item[data-v-d19d9ec8]{border-bottom:none}.config-card-details-row.json-item[data-v-d19d9ec8]{display:block}.config-card-details-row .config-card-details-label[data-v-d19d9ec8]{box-sizing:border-box;padding-right:16px;padding-right:var(--kui-space-60, 16px);width:25%}.config-card-details-row .config-card-details-label.json-item-label[data-v-d19d9ec8]{width:100%}.config-card-details-row .config-card-details-label.slim-label[data-v-d19d9ec8]{width:50%}.config-card-details-row .config-card-details-label label[data-v-d19d9ec8]{color:#3a3f51;color:var(--kui-color-text-neutral-stronger, #3a3f51);display:inline-flex;max-width:100%}.config-card-details-row .config-card-details-label label .label-content[data-v-d19d9ec8]{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-d19d9ec8]{min-width:0}.config-card-details-row .config-card-details-value[data-v-d19d9ec8]{box-sizing:border-box;width:75%}.config-card-details-row .config-card-details-value.json-item-value[data-v-d19d9ec8]{width:100%}.config-card-details-row .config-card-details-value.slim-value[data-v-d19d9ec8]{width:50%}.config-card-details-row .config-card-details-value .truncated[data-v-d19d9ec8]{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-d19d9ec8]{overflow-wrap:anywhere}.config-card-details-row .config-card-details-value .copy-uuid-array[data-v-d19d9ec8] .k-copy:not(:last-of-type){margin-bottom:8px;margin-bottom:var(--kui-space-40, 8px)}.config-card-details-row .config-card-details-value .method-badge-array[data-v-d19d9ec8]{display:flex;flex-wrap:wrap;row-gap:10px}.config-card-details-row .config-badge[data-v-d19d9ec8]{margin-right:4px;margin-right:var(--kui-space-20, 4px)}.config-card-details-row[data-v-d19d9ec8] .k-label{margin-bottom:0}.config-card-details-row[data-v-d19d9ec8] .k-label .kong-icon-infoFilled{display:flex}.config-card-details-row[data-v-d19d9ec8] .config-card-details-row{width:auto}.json-endpoint-method[data-v-8736ff0c]{flex-shrink:0}.json-endpoint-url[data-v-8736ff0c]{direction:rtl;font-family:JetBrains Mono,Consolas,monospace;font-family:var(--kui-font-family-code, "JetBrains Mono", Consolas, monospace);font-size:12px;font-size:var(--kui-font-size-20, 12px);margin-right:auto;max-width:var(--v6e8a5e62);min-width:0;overflow:hidden;text-align:left;text-overflow:ellipsis;white-space:nowrap}.deck-callout[data-v-0bf1334c]{margin-bottom:16px;margin-bottom:var(--kui-space-60, 16px)}.deck-callout .cta[data-v-0bf1334c]{background:none;border:none;color:inherit;cursor:pointer;font:inherit;font-weight:600;font-weight:var(--kui-font-weight-semibold, 600);padding:0;text-decoration:underline}.generate-pat-modal[data-v-be3cd315] .modal-content{display:flex;flex-direction:column;gap:20px;gap:var(--kui-space-70, 20px)}.deck-config .k-select[data-v-81758ed8]{margin-bottom:16px;margin-bottom:var(--kui-space-60, 16px)}.deck-config .k-code-block[data-v-81758ed8]{margin-top:12px;margin-top:var(--kui-space-50, 12px)}.deck-config .k-code-block.customization[data-v-81758ed8]{background-color:#fff;background-color:var(--kui-color-background, #ffffff);border:1px solid #e0e4ea;border:1px solid var(--kui-color-border, #e0e4ea);border-radius:8px;border-radius:var(--kui-border-radius-40, 8px)}.deck-config .step-title[data-v-81758ed8]{align-items:center;align-self:stretch;font-size:16px;font-size:var(--kui-font-size-40, 16px);font-weight:700;font-weight:var(--kui-font-weight-bold, 700);gap:16px}.deck-config .step-title[data-v-81758ed8]:not(:first-child){margin-top:16px;margin-top:var(--kui-space-60, 16px)}.deck-config .konnect-pat-actions[data-v-81758ed8]{align-items:center;display:flex;flex-direction:row;gap:8px;gap:var(--kui-space-40, 8px);margin-top:8px;margin-top:var(--kui-space-40, 8px)}.deck-config .copy-konnect-pat-alert[data-v-81758ed8]{margin-top:8px;margin-top:var(--kui-space-40, 8px)}.deck-config .customization-secret-advise[data-v-81758ed8]{font-size:14px;font-size:var(--kui-font-size-30, 14px);opacity:.7}.deck-config .customization-footer-reminder[data-v-81758ed8]{margin-top:16px;margin-top:var(--kui-space-60, 16px)}.config-card-prop-section-title[data-v-83075649]{color:#0d0e14;color:var(--kui-color-text, #0d0e14);font-size:16px;font-size:var(--kui-font-size-40, 16px);font-weight:600;font-weight:var(--kui-font-weight-semibold, 600);margin-bottom:16px;margin-bottom:var(--kui-space-60, 16px);margin-top:48px;margin-top:var(--kui-space-110, 48px)}.kong-ui-entity-base-config-card .config-card-actions[data-v-69371376]{align-items:center;display:flex;gap:16px;gap:var(--kui-space-60, 16px)}.kong-ui-entity-base-config-card .config-card-actions .row[data-v-69371376]{align-items:center;display:flex}.kong-ui-entity-base-config-card .config-card-actions .config-format-select-label[data-v-69371376]{margin-bottom:0;margin-bottom:var(--kui-space-0, 0px);margin-right:8px;margin-right:var(--kui-space-40, 8px)}.kong-ui-entity-base-config-card .config-card-actions .sensitive-fields-checkbox[data-v-69371376]{align-items:center}.kong-ui-entity-base-config-card .config-card-actions .sensitive-fields-checkbox[data-v-69371376] .checkbox-label{width:max-content}.kong-ui-entity-base-config-card .config-card-prop-section-title[data-v-69371376]{color:#0d0e14;color:var(--kui-color-text, #0d0e14);font-size:16px;font-size:var(--kui-font-size-40, 16px);font-weight:600;margin-bottom:16px;margin-bottom:var(--kui-space-60, 16px);margin-top:48px;margin-top:var(--kui-space-110, 48px)}.kong-ui-entity-base-config-card[data-v-69371376] .config-card-details-row:last-of-type{border-bottom:none}.kong-ui-entity-base-config-card .book-icon[data-v-69371376]{margin-left:8px;margin-left:var(--kui-space-40, 8px);padding:0;padding:var(--kui-space-0, 0px)}.kong-ui-entity-base-form[data-v-b3590221]{box-sizing:border-box;max-width:1536px;max-width:var(--kui-breakpoint-desktop, 1536px);width:100%}.kong-ui-entity-base-form[data-v-b3590221] .k-slideout-title{color:#0d0e14!important;color:var(--kui-color-text, #0d0e14)!important;font-size:24px!important;font-size:var(--kui-font-size-70, 24px)!important;font-weight:700!important;font-weight:var(--kui-font-weight-bold, 700)!important;line-height:32px!important;line-height:var(--kui-line-height-60, 32px)!important;margin-bottom:16px!important;margin-bottom:var(--kui-space-60, 16px)!important}.kong-ui-entity-base-form[data-v-b3590221] .k-card.content-card{padding:0 16px!important;padding:var(--kui-space-0, 0px) var(--kui-space-60, 16px)!important}.kong-ui-entity-base-form[data-v-b3590221] .tab-item>div.tab-link.has-panels{color:#6c7489!important;color:var(--kui-color-text-neutral, #6c7489)!important;font-size:14px!important;font-size:var(--kui-font-size-30, 14px)!important;font-weight:700!important;font-weight:var(--kui-font-weight-bold, 700)!important;line-height:24px!important;line-height:var(--kui-line-height-40, 24px)!important}.kong-ui-entity-base-form[data-v-b3590221] .tab-item.active>div.tab-link.has-panels{color:#0d0e14!important;color:var(--kui-color-text, #0d0e14)!important;font-weight:600!important;font-weight:var(--kui-font-weight-semibold, 600)!important}.kong-ui-entity-base-form[data-v-b3590221] .slideout-content{overflow-y:unset!important}.kong-ui-entity-base-form.new-form-layout[data-v-b3590221]{background-color:#0000;background-color:var(--kui-color-background-transparent, rgba(0, 0, 0, 0));border:none;padding:0}.kong-ui-entity-base-form.new-form-layout[data-v-b3590221]>.card-content>form>.form-actions{justify-content:flex-start;margin-top:20px;margin-top:var(--kui-space-70, 20px)}.kong-ui-entity-base-form.new-form-layout .form-error[data-v-b3590221]{margin:20px 0 0 16px;margin:var(--kui-space-70, 20px) 0 0 var(--kui-space-60, 16px)}.kong-ui-entity-base-form .button-customize-deck-wrapper[data-v-b3590221]{display:flex;flex-direction:row;justify-content:flex-end;margin-bottom:16px;margin-bottom:var(--kui-space-60, 16px)}.form-actions[data-v-b3590221]{align-items:center;display:flex;justify-content:flex-end;margin-top:24px;margin-top:var(--kui-space-80, 24px)}.form-actions[data-v-b3590221] .k-button:last-of-type,.form-actions[data-v-b3590221] .k-button:nth-last-of-type(2){margin-inline-start:16px;margin-inline-start:var(--kui-space-60, 16px)}.form-actions-reverted[data-v-b3590221]{direction:rtl}.content-wrapper[data-v-a3a65cac] .k-tooltip{word-break:break-all}.kong-ui-entity-base-table .toolbar-container[data-v-bcc0ec48]{align-items:center;display:flex;width:100%}.kong-ui-entity-base-table .toolbar-button-container[data-v-bcc0ec48]{margin-left:auto}.kong-ui-entity-base-table .hidden[data-v-bcc0ec48]{display:none}.kong-ui-entity-delete-modal .message[data-v-61f55f42],.kong-ui-entity-delete-modal .description[data-v-61f55f42]{line-height:20px;line-height:var(--kui-line-height-30, 20px);margin:0;margin:var(--kui-space-0, 0px)}.kong-ui-entity-delete-modal .message strong[data-v-61f55f42]{font-weight:600;font-weight:var(--kui-font-weight-semibold, 600)}.kong-ui-entity-delete-modal .description[data-v-61f55f42]{margin-top:32px;margin-top:var(--kui-space-90, 32px)}.kong-ui-entity-delete-modal .extra[data-v-61f55f42]{margin-top:16px;margin-top:var(--kui-space-60, 16px)}.kong-ui-entity-delete-modal .body-stacked-copy .description[data-v-61f55f42]{margin-top:0;margin-top:var(--kui-space-0, 0px)}.kong-ui-entity-delete-modal .body-stacked-copy .description>p[data-v-61f55f42]{margin:0;margin:var(--kui-space-0, 0px)}.kong-ui-entity-delete-modal .body-stacked-copy .message[data-v-61f55f42]{margin-bottom:0;margin-bottom:var(--kui-space-0, 0px)}.kong-ui-entity-delete-modal[data-v-61f55f42] .prompt-confirmation-text{line-height:20px;line-height:var(--kui-line-height-30, 20px);margin:0;margin:var(--kui-space-0, 0px)}.kong-ui-entity-delete-modal-stacked-copy[data-v-61f55f42] .prompt-content+.prompt-confirmation-container{margin-top:32px;margin-top:var(--kui-space-90, 32px)}.kong-ui-entity-delete-error[data-v-61f55f42]{margin-bottom:12px;margin-bottom:var(--kui-space-50, 12px)}.kong-ui-entity-filter-input[data-v-26720193]{width:100%}.kong-ui-entity-filter-clear[data-v-26720193]{cursor:pointer}.kong-ui-entity-filter[data-v-26720193]{display:flex;position:relative}.kong-ui-entity-filter[data-v-26720193] .menu-content{flex-direction:column}.kong-ui-entity-filter[data-v-26720193] .k-menu-item-divider hr{margin:12px 0}.kong-ui-entity-filter-backdrop[data-v-26720193]{inset:0;position:fixed;z-index:1050}.kong-ui-entity-filter-menu[data-v-26720193]{background-color:#fff;background-color:var(--kui-color-background, #ffffff);border:1px solid #afb7c5;border:var(--kui-border-width-10, 1px) solid var(--kui-color-border-neutral-weak, #afb7c5);border-radius:4px;border-radius:var(--kui-border-radius-20, 4px);box-shadow:0 4px 20px #e0e4ea;box-shadow:0 4px 20px var(--kui-color-border, #e0e4ea);left:0;margin-top:16px;padding:8px 0 12px;padding:var(--kui-space-40, 8px) 0 var(--kui-space-50, 12px);position:absolute;top:100%;width:300px;z-index:1060}.kong-ui-entity-filter-menu-item[data-v-26720193]{border-bottom:1px solid #e0e4ea;border-bottom:var(--kui-border-width-10, 1px) solid var(--kui-color-border, #e0e4ea);color:#6c7489;color:var(--kui-color-text-neutral, #6c7489);font-size:12px;font-size:var(--kui-font-size-20, 12px);font-weight:400;font-weight:var(--kui-font-weight-regular, 400);line-height:16px;line-height:var(--kui-line-height-20, 16px);list-style:none;margin:0 20px;margin:var(--kui-space-0, 0px) var(--kui-space-70, 20px);padding:16px 0;padding:var(--kui-space-60, 16px) 0;position:relative;white-space:nowrap}.menu-item-title[data-v-26720193]{align-items:center;cursor:pointer;display:flex;line-height:24px;line-height:var(--kui-line-height-40, 24px)}.menu-item-title.expanded[data-v-26720193]{color:#232633;color:var(--kui-color-text-neutral-strongest, #232633)}.menu-item-expand-icon[data-v-26720193]{margin-left:auto}.menu-item-expand-icon.expanded[data-v-26720193]{transform:rotate(180deg)}.menu-item-indicator[data-v-26720193]{background-color:#0044f4;background-color:var(--kui-color-background-primary, #0044f4);border-radius:50%;height:4px;margin-left:4px;width:4px}.menu-item-body[data-v-26720193]{align-items:center;display:flex;justify-content:space-between;margin-top:16px;margin-top:var(--kui-space-60, 16px)}.menu-item-body[data-v-26720193] .input{padding-bottom:4px!important;padding-top:4px!important}.menu-item-body[data-v-26720193] .k-input{width:100%}.menu-item-body[data-v-26720193] .k-select-input .input{font-size:12px}.menu-item-body[data-v-26720193] .k-select-input .input::placeholder{color:#6c7489!important;color:var(--kui-color-text-neutral, #6c7489)!important;font-size:12px}.menu-item-label[data-v-26720193]{margin-bottom:0;margin-right:12px}.menu-item-buttons[data-v-26720193]{display:flex;justify-content:space-between;margin:10px 0 6px}.filter-clear-button-container[data-v-26720193]{padding:12px 20px 0;padding:var(--kui-space-50, 12px) var(--kui-space-70, 20px) 0}fieldset[data-v-ccd29028]{margin:0;min-width:0;padding:0}.kong-ui-entity-form-section[data-v-ccd29028]{border:0}.kong-ui-entity-form-section .form-section-wrapper[data-v-ccd29028]{column-gap:16px;column-gap:var(--kui-space-60, 16px);display:flex;flex-direction:column;padding-bottom:64px;padding-bottom:var(--kui-space-130, 64px);row-gap:12px;row-gap:var(--kui-space-50, 12px);width:100%}@media(min-width:1024px){.kong-ui-entity-form-section .form-section-wrapper[data-v-ccd29028]{flex-direction:row}}.kong-ui-entity-form-section .form-section-wrapper .form-section-info[data-v-ccd29028]{flex:1}@media(min-width:1024px){.kong-ui-entity-form-section .form-section-wrapper .form-section-info[data-v-ccd29028]{max-width:350px}.kong-ui-entity-form-section .form-section-wrapper .form-section-info.sticky[data-v-ccd29028]{height:fit-content;margin-bottom:16px;margin-bottom:var(--kui-space-60, 16px);position:sticky;top:16px}}.kong-ui-entity-form-section .form-section-wrapper .form-section-info .form-section-title[data-v-ccd29028]{color:#0d0e14;color:var(--kui-color-text, #0d0e14);font-size:16px;font-size:var(--kui-font-size-40, 16px);font-weight:700;font-weight:var(--kui-font-weight-bold, 700);line-height:20px;line-height:var(--kui-line-height-30, 20px);margin-bottom:8px;margin-bottom:var(--kui-space-40, 8px);margin-top:0;margin-top:var(--kui-space-0, 0px)}.kong-ui-entity-form-section .form-section-wrapper .form-section-info .form-section-description[data-v-ccd29028],.kong-ui-entity-form-section .form-section-wrapper .form-section-info .form-section-description p[data-v-ccd29028],.kong-ui-entity-form-section .form-section-wrapper .form-section-info .form-section-description[data-v-ccd29028] p{color:#0d0e14;color:var(--kui-color-text, #0d0e14);font-size:14px;font-size:var(--kui-font-size-30, 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-ccd29028]{margin-top:32px;margin-top:var(--kui-space-90, 32px)}.kong-ui-entity-form-section .form-section-wrapper .form-section-content[data-v-ccd29028]{flex:1}.kong-ui-entity-form-section .form-section-wrapper .form-section-content[data-v-ccd29028]>*:not(:first-child){margin-top:24px;margin-top:var(--kui-space-80, 24px)}.kong-ui-entity-form-section.has-divider .form-section-wrapper[data-v-ccd29028]{border-bottom:1px solid #e0e4ea;border-bottom:var(--kui-border-width-10, 1px) solid var(--kui-color-border, #e0e4ea)}.kong-ui-entity-form-block .header[data-v-7dd2f21d]{align-items:flex-start;display:flex;gap:8px;gap:var(--kui-space-40, 8px)}.kong-ui-entity-form-block .step[data-v-7dd2f21d]{align-items:center;background:#fff;background:var(--kui-color-background, #ffffff);border:1px solid #afb7c5;border:1px solid var(--kui-color-border-neutral-weak, #afb7c5);border-radius:100px;border-radius:var(--kui-border-radius-round, 100px);display:flex;flex:0 0 auto;height:32px;justify-content:center;padding:4px;padding:var(--kui-space-20, 4px);width:32px}.kong-ui-entity-form-block .header-content[data-v-7dd2f21d]{align-items:flex-start;display:flex;flex:1 1 auto;flex-direction:column;gap:8px;gap:var(--kui-space-40, 8px);padding-top:4px;padding-top:var(--kui-space-20, 4px)}.kong-ui-entity-form-block .header-title[data-v-7dd2f21d]{color:#0d0e14;color:var(--kui-color-text, #0d0e14);font-size:18px;font-size:var(--kui-font-size-50, 18px);font-weight:700;font-weight:var(--kui-font-weight-bold, 700);line-height:24px;line-height:var(--kui-line-height-40, 24px);margin:0}.kong-ui-entity-form-block .header-description[data-v-7dd2f21d]{color:#52596e;color:var(--kui-color-text-neutral-strong, #52596e);font-size:14px;font-size:var(--kui-font-size-30, 14px);line-height:20px;line-height:var(--kui-line-height-30, 20px);margin:0}.kong-ui-entity-form-block .header-extra[data-v-7dd2f21d]{align-items:center;display:flex;flex:0 0 auto;gap:8px;gap:var(--kui-space-40, 8px);justify-content:flex-end}.kong-ui-entity-form-block .content[data-v-7dd2f21d]{background:#fff;background:var(--kui-color-background, #ffffff);border:1px solid #e0e4ea;border:var(--kui-border-width-10, 1px) solid var(--kui-color-border, #e0e4ea);border-radius:6px;border-radius:var(--kui-border-radius-30, 6px);display:flex;flex-direction:column;gap:20px;gap:var(--kui-space-70, 20px);margin-top:20px;margin-top:var(--kui-space-70, 20px);padding:20px 24px;padding:var(--kui-space-70, 20px) var(--kui-space-80, 24px)}.kong-ui-entity-form-block.stepped .content[data-v-7dd2f21d]{margin-left:16px;margin-left:var(--kui-space-60, 16px)}.kong-ui-public-entity-link[data-v-28214aed]{align-items:center;display:flex}.kong-ui-public-entity-link .deleted-entity[data-v-28214aed]{font-style:italic}.kong-ui-public-entity-link .entity-link[data-v-28214aed]{display:flex;flex:1}.kong-ui-public-entity-link .entity-link[data-v-28214aed] .external-link-icon{color:#0044f4;color:var(--kui-color-text-primary, #0044f4);margin-left:4px;margin-left:var(--kui-space-20, 4px);padding:2px;padding:var(--kui-space-10, 2px)}.kong-ui-public-entity-link .entity-link-label[data-v-28214aed]{display:inline-block;font-weight:400;font-weight:var(--kui-font-weight-regular, 400);max-width:90%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.kong-ui-public-entity-link .copy-uuid-tooltip[data-v-28214aed]{align-items:center;cursor:pointer;display:flex}.kong-ui-public-entity-link .copy-uuid-tooltip .entity-link-copy-id[data-v-28214aed]{margin-left:2px;margin-left:var(--kui-space-10, 2px)}.kong-ui-public-entity-empty-state[data-v-0b2e9081]{align-items:center;background-color:#fff;background-color:var(--kui-color-background, #ffffff);box-sizing:border-box;display:flex;flex-direction:column;font-family:Inter,Roboto,Helvetica,sans-serif;font-family:var(--kui-font-family-text, "Inter", Roboto, Helvetica, sans-serif);gap:24px;gap:var(--kui-space-80, 24px);padding:64px 0;padding:var(--kui-space-130, 64px) var(--kui-space-0, 0px);width:100%}@media(min-width:640px){.kong-ui-public-entity-empty-state[data-v-0b2e9081]{padding:64px 96px;padding:var(--kui-space-130, 64px) var(--kui-space-150, 96px)}}.kong-ui-public-entity-empty-state .empty-state-image[data-v-0b2e9081]{margin-bottom:8px;margin-bottom:var(--kui-space-40, 8px)}.kong-ui-public-entity-empty-state .entity-empty-state-content[data-v-0b2e9081]{align-items:center;display:flex;flex-direction:column;gap:8px;gap:var(--kui-space-40, 8px);text-align:center;width:100%}.kong-ui-public-entity-empty-state .entity-empty-state-content .entity-empty-state-title h1[data-v-0b2e9081]{align-items:center;color:#0d0e14;color:var(--kui-color-text, #0d0e14);display:flex;font-size:24px;font-size:var(--kui-font-size-70, 24px);font-weight:700;font-weight:var(--kui-font-weight-bold, 700);gap:8px;gap:var(--kui-space-40, 8px);line-height:32px;line-height:var(--kui-line-height-60, 32px);margin:0;margin:var(--kui-space-0, 0px)}.kong-ui-public-entity-empty-state .entity-empty-state-content .entity-empty-state-title h1.secondary[data-v-0b2e9081]{font-size:18px;font-size:var(--kui-font-size-50, 18px)}.kong-ui-public-entity-empty-state .entity-empty-state-description[data-v-0b2e9081],.kong-ui-public-entity-empty-state .entity-empty-state-pricing[data-v-0b2e9081]{color:#52596e;color:var(--kui-color-text-neutral-strong, #52596e);font-size:14px;font-size:var(--kui-font-size-30, 14px);font-weight:400;font-weight:var(--kui-font-weight-regular, 400);line-height:20px;line-height:var(--kui-line-height-30, 20px);max-width:640px}.kong-ui-public-entity-empty-state .entity-empty-state-description p[data-v-0b2e9081],.kong-ui-public-entity-empty-state .entity-empty-state-pricing p[data-v-0b2e9081]{margin:0;margin:var(--kui-space-0, 0px)}.kong-ui-public-entity-empty-state .entity-empty-state-pricing[data-v-0b2e9081]{margin-top:16px;margin-top:var(--kui-space-60, 16px)}.kong-ui-public-entity-empty-state .entity-empty-state-message[data-v-0b2e9081]{color:#52596e;color:var(--kui-color-text-neutral-strong, #52596e)}.kong-ui-public-entity-empty-state .entity-empty-state-action[data-v-0b2e9081]{align-items:center;display:flex;gap:12px;gap:var(--kui-space-50, 12px)}.kong-ui-public-entity-empty-state .entity-empty-state-card-container[data-v-0b2e9081]{display:flex;flex-wrap:wrap;gap:16px;gap:var(--kui-space-60, 16px);justify-content:space-around;margin-top:8px;margin-top:var(--kui-space-40, 8px);width:312px}@media(min-width:640px){.kong-ui-public-entity-empty-state .entity-empty-state-card-container[data-v-0b2e9081]{width:calc(624px + kui-space-60);width:calc(2 * 312px + var(--kui-space-60, kui-space-60))}}.kong-ui-public-entity-empty-state .entity-empty-state-card-container .entity-empty-state-card[data-v-0b2e9081]{background-color:#f9fafb;background-color:var(--kui-color-background-neutral-weakest, #f9fafb);border:1px solid #e0e4ea;border:var(--kui-border-width-10, 1px) solid var(--kui-color-border, #e0e4ea);border-radius:6px;border-radius:var(--kui-border-radius-30, 6px);color:#afb7c5;color:var(--kui-color-text-neutral-weak, #afb7c5);gap:8px;gap:var(--kui-space-40, 8px);height:160px;padding:20px;padding:var(--kui-space-70, 20px);width:312px}.kong-ui-public-entity-empty-state .entity-empty-state-card-container .entity-empty-state-card .feature-icon[data-v-0b2e9081]{color:#3a3f51;color:var(--kui-color-text-neutral-stronger, #3a3f51);display:flex;margin-bottom:12px;margin-bottom:var(--kui-space-50, 12px)}.kong-ui-public-entity-empty-state .entity-empty-state-card-container .entity-empty-state-card .feature-icon[data-v-0b2e9081] .kui-icon{height:20px!important;height:var(--kui-icon-size-40, 20px)!important;width:20px!important;width:var(--kui-icon-size-40, 20px)!important}.kong-ui-public-entity-empty-state .entity-empty-state-card-container .entity-empty-state-card[data-v-0b2e9081] .card-title{font-size:14px;font-size:var(--kui-font-size-30, 14px);font-weight:600;font-weight:var(--kui-font-weight-semibold, 600)}.kong-ui-public-entity-empty-state .entity-empty-state-card-container .entity-empty-state-card[data-v-0b2e9081] .card-content{-webkit-box-orient:vertical;color:#6c7489;color:var(--kui-color-text-neutral, #6c7489);display:-webkit-box;-webkit-line-clamp:3;line-clamp:3;overflow:hidden}.kong-ui-public-entity-empty-state .entity-empty-state-bottom-container[data-v-0b2e9081]{border-top:1px solid #e0e4ea;border-top:var(--kui-border-width-10, 1px) solid var(--kui-color-border, #e0e4ea);display:flex;flex-direction:column;gap:16px;gap:var(--kui-space-60, 16px);padding-top:48px;padding-top:var(--kui-space-110, 48px);width:100%}@media(min-width:640px){.kong-ui-public-entity-empty-state .entity-empty-state-bottom-container[data-v-0b2e9081]{width:calc(624px + kui-space-60);width:calc(2 * 312px + var(--kui-space-60, kui-space-60))}}.kong-ui-public-sensitive-input[data-v-f64f729c]{display:flex;flex-direction:column;gap:8px;gap:var(--kui-space-40, 8px)}.kong-ui-public-sensitive-input[data-v-f64f729c] .after-content-wrapper{align-items:center;gap:4px!important;gap:var(--kui-space-20, 4px)!important}.kong-ui-public-sensitive-input[data-v-f64f729c] .input{padding-right:var(--v673e9b78)!important}.kong-ui-public-sensitive-input .sensitive-input-action[data-v-f64f729c]{color:#0044f4;color:var(--kui-color-text-primary, #0044f4);font-weight:600;font-weight:var(--kui-font-weight-semibold, 600);white-space:nowrap}.kong-ui-public-sensitive-input .sensitive-input-toggle[data-v-f64f729c]{color:#6c7489;color:var(--kui-color-text-neutral, #6c7489);cursor:pointer}.kong-ui-public-sensitive-input .sensitive-input-error-message[data-v-f64f729c]{color:#d60027;color:var(--kui-color-text-danger, #d60027);font-size:12px;font-size:var(--kui-font-size-20, 12px);margin-top:-4px;margin-top:calc(-1 * var(--kui-space-20, 4px))}.kong-ui-public-sensitive-input .sensitive-input-textarea-actions[data-v-f64f729c]{display:flex;justify-content:flex-end}.kong-ui-public-sensitive-input .sensitive-input-hint[data-v-f64f729c]{align-items:center;background-color:#eefaff;background-color:var(--kui-color-background-info-weakest, #eefaff);border-radius:6px;border-radius:var(--kui-border-radius-30, 6px);color:#0044f4;color:var(--kui-color-text-info, #0044f4);display:flex;gap:8px;gap:var(--kui-space-40, 8px);padding:8px 12px;padding:var(--kui-space-40, 8px) var(--kui-space-50, 12px)}.kong-ui-public-sensitive-input .sensitive-input-hint .sensitive-input-hint-icon[data-v-f64f729c]{flex-shrink:0}.kong-ui-public-sensitive-input .sensitive-input-hint .sensitive-input-hint-text[data-v-f64f729c]{flex:1;font-size:14px;font-size:var(--kui-font-size-30, 14px)}.kong-ui-public-sensitive-input .sensitive-input-hint .sensitive-input-copy[data-v-f64f729c]{display:inline-flex;font-size:12px;font-size:var(--kui-font-size-20, 12px);gap:4px;gap:var(--kui-space-20, 4px)}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kong-ui-public/entities-shared",
|
|
3
|
-
"version": "3.72.2
|
|
3
|
+
"version": "3.72.2",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"main": "./dist/entities-shared.umd.js",
|
|
6
6
|
"module": "./dist/entities-shared.es.js",
|
|
@@ -28,7 +28,7 @@
|
|
|
28
28
|
"peerDependencies": {
|
|
29
29
|
"@kong-ui-public/i18n": "^2.5.1",
|
|
30
30
|
"@kong-ui-public/misc-widgets": "^2.7.6",
|
|
31
|
-
"@kong-ui-public/monaco-editor": "^0.27.
|
|
31
|
+
"@kong-ui-public/monaco-editor": "^0.27.9",
|
|
32
32
|
"@kong/icons": "^1.58.0",
|
|
33
33
|
"@kong/kongponents": "^9.65.0",
|
|
34
34
|
"@vueuse/core": "^14.3.0",
|
|
@@ -41,7 +41,7 @@
|
|
|
41
41
|
"devDependencies": {
|
|
42
42
|
"@kong-ui-public/i18n": "^2.5.1",
|
|
43
43
|
"@kong-ui-public/misc-widgets": "^2.7.6",
|
|
44
|
-
"@kong-ui-public/monaco-editor": "^0.27.
|
|
44
|
+
"@kong-ui-public/monaco-editor": "^0.27.9",
|
|
45
45
|
"@kong/design-tokens": "3.5.1",
|
|
46
46
|
"@kong/icons": "^1.64.0",
|
|
47
47
|
"@kong/kongponents": "9.66.12",
|