@kong-ui-public/entities-shared 3.68.1 → 3.68.2-pr.3854.077fcbb34.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -75,5 +75,5 @@ ${p.value}
|
|
|
75
75
|
${$.value}
|
|
76
76
|
'@ | ${g}`,u.value=`@'
|
|
77
77
|
${p.value}
|
|
78
|
-
'@ | ${g}`)}),(g,k)=>{const I=e.resolveComponent("KSelect"),_=e.resolveComponent("KBadge"),R=e.resolveComponent("KCodeBlock"),T=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"},g.$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(U.LanguageShellIcon),{key:0})):(e.openBlock(),e.createBlock(e.unref(U.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(U.LanguageShellIcon),{key:0})):(e.openBlock(),e.createBlock(e.unref(U.LanguageBashIcon),{key:1})),e.createTextVNode(" "+e.toDisplayString(O.label),1)]),_:1},8,["modelValue"]),e.createElementVNode("div",Qa,e.toDisplayString(e.unref(i)("deckCodeBlock.steps.step_1")),1),t.isCustomizing?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(e.unref(r),{key:0,"data-testid":`deck-hint-${t.app}`,keypath:`deckCodeBlock.hint.${t.app}`,tag:"p"},e.createSlots({link:e.withCtx(()=>[e.createVNode(e.unref(Z.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(_,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(R,{key:1,id:"deck-env-codeblock",class:e.normalizeClass({customization:o.isCustomizing}),code:m.value,language:y.value,"single-line":"",theme:t.isCustomizing?"light":"dark",onCodeBlockRender:e.unref(ee)},null,8,["class","code","language","theme","onCodeBlockRender"])):e.createCommentVNode("",!0),l.value?(e.openBlock(),e.createBlock(T,{key:2,class:"copy-konnect-pat-alert"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(i)("deckCodeBlock.customization.copy_pat")),1)]),_:1})):o.isCustomizing&&o.generateKonnectPat?(e.openBlock(),e.createElementBlock("div",Xa,[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(i)("deckCodeBlock.customization.generate_pat")),1)]),_:1}),e.createElementVNode("div",null,e.toDisplayString(e.unref(i)("deckCodeBlock.customization.reuse_pat")),1)])):e.createCommentVNode("",!0),e.createElementVNode("div",Za,e.toDisplayString(e.unref(i)("deckCodeBlock.steps.step_2")),1),o.entityRecord&&!o.isCustomizing?(e.openBlock(),e.createBlock(R,{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(ee)},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",er,e.toDisplayString(e.unref(i)("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(T,{class:"customization-footer-reminder"},{icon:e.withCtx(()=>[e.createVNode(e.unref(U.InfoIcon))]),default:e.withCtx(()=>[e.createTextVNode(" "+e.toDisplayString(e.unref(i)("deckCodeBlock.customization.footer_reminder")),1)]),_:1})],64)):e.createCommentVNode("",!0)],16),o.isCustomizing&&o.generateKonnectPat?(e.openBlock(),e.createBlock(St,{key:0,"generate-konnect-pat":o.generateKonnectPat,visible:f.value,onDismiss:k[3]||(k[3]=O=>f.value=!1),onGenerated:N},null,8,["generate-konnect-pat","visible"])):e.createCommentVNode("",!0)],64)}}}),We=d._export_sfc(tr,[["__scopeId","data-v-81758ed8"]]),Fe=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(r,i)=>{const l=e.resolveComponent("KModal");return e.openBlock(),e.createElementBlock(e.Fragment,null,[n.entityRecord?(e.openBlock(),e.createBlock(We,e.mergeProps({key:0},r.$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:i[0]||(i[0]=s=>r.$emit("customization-close")),onProceed:i[1]||(i[1]=s=>r.$emit("customization-close"))},{default:e.withCtx(()=>[e.createVNode(We,{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)}}}),nr={key:0,class:"config-card-display-form"},or=["data-testid"],ar={key:0,class:"config-card-prop-section-title"},rr=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(),r=v=>!!(v.tooltip||o[`${v.key}-label-tooltip`]),i=v=>{if(v==null)return;let b=JSON.parse(JSON.stringify(v));return n.codeBlockRecordFormatter&&(b=n.codeBlockRecordFormatter(b,n.format)),n.preserveCodeBlockTimestamps||(delete b.created_at,delete b.updated_at),b},l=e.computed(()=>i(n.codeBlockRecordRedacted||n.codeBlockRecord||n.record)),s=e.computed(()=>i(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,b)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[t.format==="structured"?(e.openBlock(),e.createElementBlock("div",nr,[(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",ar,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[$],p=>e.renderSlot(v.$slots,`config-card-item-${p.key}`,{row:p},()=>[(e.openBlock(),e.createBlock(Ne,{key:p.key,item:p},e.createSlots({label:e.withCtx(()=>[e.renderSlot(v.$slots,`${p.key}-label`,{row:p},void 0,!0)]),[p.key]:e.withCtx(({rowValue:m})=>[e.renderSlot(v.$slots,p.key,{row:p,rowValue:m},void 0,!0)]),_:2},[r(p)?{name:"label-tooltip",fn:e.withCtx(()=>[e.renderSlot(v.$slots,`${p.key}-label-tooltip`,{row:p},void 0,!0)]),key:"0"}:void 0]),1032,["item"]))],!0)),256))],10,or))),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(we,{key:2,"deck-callout-preference-key":e.unref(f)?e.unref(y):void 0,"entity-record":l.value,"unredacted-record":s.value,"onDeckCallout:clickCta":b[0]||(b[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(Le,{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(Fe,{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:b[1]||(b[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))}}),Bt=d._export_sfc(rr,[["__scopeId","data-v-83075649"]]),ir={class:"config-card-title","data-testid":"config-card-title"},lr={class:"config-card-actions"},sr={class:"row"},cr=["href"],dr={key:2,class:"config-card-details-section"},ur=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:r}}=d.composables.useI18n(),{getMessageFromError:i}=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),b=e.computed(()=>{const C=[{label:r("baseConfigCard.general.structuredFormat"),value:"structured",selected:!0},{label:r("baseForm.configuration.json"),value:"json"},{label:r("baseForm.configuration.yaml"),value:"yaml"}];a.config.app==="konnect"&&C.splice(2,0,{label:r("baseForm.configuration.terraform"),value:"terraform"}),y.value&&C.push({label:r("baseForm.configuration.deck"),value:"deck"});const x=new Set(a.formatsToHide);return C.filter(L=>L.value==="structured"||!x.has(L.value))}),$=e.ref("structured"),p=C=>{$.value=C?.value,o("configFormatChange",$.value)},m=(C,x)=>{localStorage.setItem(C,x)};e.watch($,C=>{a.config.formatPreferenceKey&&m(a.config.formatPreferenceKey,C)}),e.onMounted(()=>{if(a.config.formatPreferenceKey){const C=localStorage.getItem(a.config.formatPreferenceKey),x=b.value;C&&x.some(L=>L.value===C)?$.value=C:$.value=x[0]?.value??"structured",m(a.config.formatPreferenceKey,$.value)}});const N={id:{type:d.ConfigurationSchemaType.ID,label:r("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:r("baseConfigCard.commonFields.updated_at_label"),order:3,section:d.ConfigurationSchemaSection.Basic},created_at:{type:d.ConfigurationSchemaType.Date,label:r("baseConfigCard.commonFields.created_at_label"),order:4,section:d.ConfigurationSchemaSection.Basic},managed_by:{type:d.ConfigurationSchemaType.ManagedBy,label:r("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:r("baseConfigCard.commonFields.partial_label"),order:-1,section:d.ConfigurationSchemaSection.Basic}},g=e.ref(!1),k=e.ref(!1),I=e.ref(""),_=e.ref({}),R=e.ref(null),T=e.computed(()=>{if(!(!a.codeBlockRecordResolver||R.value==null))return a.codeBlockRecordResolver(R.value)}),S=e.ref(!1),{redactByConfigSchema:O,redactByApiSchema:h,isObjectRecord:B,getApiSchemaField:E}=d.composables.useHelpers(),K=e.computed(()=>{const C=T.value||_.value;let x=C;if(B(C)&&Array.isArray(s?.value?.fields)){const L={};for(const A in C){const F=E(s?.value?.fields,A);L[A]=F?h(C[A],F):C[A]}x=L}return x=O(x,a.configSchema),a.codeBlockRecordResolver?a.codeBlockRecordResolver(x):x}),j=e.computed(()=>{if(!_.value)return[];const C=[],x=Object.keys(_.value).length;for(const L in _.value){if(L==="__ui_data"||L==="managed_by"&&!u.value)continue;const A=a.configSchema?.[L]?.order,F=N[L]?.order;let D=x;(F||F===0)&&(D=F===-1?x+1:F),A&&(D=A===-1?x+1:A),C.push([L,D])}return C.sort(function(L,A){return L[1]-A[1]}),C.map(L=>{const A=L[0],F=_.value?.[A],D=a.configSchema?.[A]||{},P=N[A];return{key:A,value:F,hidden:D.hidden||!1,type:D.type??(P?.type||d.ConfigurationSchemaType.Text),label:D.label??(P?.label||l(A)),tooltip:D.tooltip??(P?.tooltip||void 0),section:D.section??(P?.section||d.ConfigurationSchemaSection.Advanced)}}).filter(L=>!L.hidden&&L.key!==a.pluginConfigKey)}),Q=e.computed(()=>{if(!_.value||!a.pluginConfigKey)return[];const C=_.value[a.pluginConfigKey]||{},x=Object.keys(C).length,L=[];for(const A in C){const F=a.pluginConfigSchema?.[A]?.order,D=C[A];let P=D!=null&&D!==""?x-1:x;F&&(P=F===-1?x+1:F),L.push([A,P])}return L.sort(function(A,F){return A[1]-F[1]}),L.map(A=>{const F=A[0],D=C[F],P=a.pluginConfigSchema?.[F]||{};return{key:F,value:D,hidden:P.hidden||!1,type:P.type??d.ConfigurationSchemaType.Text,label:P.label??l(F),tooltip:P.tooltip??void 0,section:d.ConfigurationSchemaSection.Plugin}}).filter(A=>!A.hidden)}),H=e.computed(()=>{if(!_.value||!a.policyConfigKey)return[];const C=_.value[a.policyConfigKey]||{},x=Object.keys(C).length,L=[];for(const A in C){const F=a.policyConfigSchema?.[A]?.order,D=C[A];let P=D!=null&&D!==""?x-1:x;F&&(P=F===-1?x+1:F),L.push([A,P])}return L.sort(function(A,F){return A[1]-F[1]}),L.map(A=>{const F=A[0],D=C[F],P=a.policyConfigSchema?.[F]||{};return{key:F,value:D,hidden:P.hidden||!1,type:P.type??d.ConfigurationSchemaType.Text,label:P.label??l(F),tooltip:P.tooltip??void 0,section:d.ConfigurationSchemaSection.Policy}}).filter(A=>!A.hidden)}),Y=e.computed(()=>({basic:j.value?.filter(C=>C.section===d.ConfigurationSchemaSection.Basic),advanced:j.value?.filter(C=>C.section===d.ConfigurationSchemaSection.Advanced),plugin:Q.value?.concat(j.value?.filter(C=>C.section===d.ConfigurationSchemaSection.Plugin)),policy:H.value?.concat(j.value?.filter(C=>C.section===d.ConfigurationSchemaSection.Policy))})),fe=e.computed(()=>{const C=[];return Y.value.basic.length&&C.push("basic"),Y.value.advanced.length&&C.push("advanced"),Y.value.plugin.length&&C.push("plugin"),Y.value.policy.length&&C.push("policy"),C}),G=e.computed(()=>{let C=`${a.config.apiBaseUrl}${a.fetchUrl}`;return a.config.app==="konnect"&&(C=C.replace(/{controlPlaneId}/gi,a.config?.controlPlaneId||"")),C.replace(/\/{workspace}/gi,a.config?.workspace?`/${a.config.workspace}`:"").replace(/{id}/gi,a.config.entityId)});return e.watch(g,C=>{o("loading",C)},{immediate:!0}),e.onBeforeMount(async()=>{k.value=!1,g.value=!0;try{const{data:C}=await f.get(G.value);if(R.value=C,a.dataKey)if(typeof C[a.dataKey]<"u")_.value={...C[a.dataKey]};else throw new Error(r("errors.dataKeyUndefined",{dataKey:a.dataKey}));else a.recordResolver?_.value={...a.recordResolver(C)}:_.value={...C};Object.keys(a.configSchema).filter(L=>a.configSchema[L].forceShow).forEach(L=>{_.value&&typeof _.value[L]>"u"&&(_.value[L]=null)}),o("fetch:success",C)}catch(C){R.value=null;const x=i(C);I.value=x.startsWith("code")?r("baseConfigCard.errors.load"):x,k.value=!0,o("fetch:error",C)}finally{g.value=!1}}),(C,x)=>{const L=e.resolveComponent("KCheckbox"),A=e.resolveComponent("KLabel"),F=e.resolveComponent("KSelect"),D=e.resolveComponent("KButton"),P=e.resolveComponent("KSkeleton"),Tt=e.resolveComponent("KEmptyState"),Et=e.resolveComponent("KCard");return e.openBlock(),e.createBlock(Et,{class:"kong-ui-entity-base-config-card","title-tag":t.titleTag},e.createSlots({actions:e.withCtx(()=>[e.createElementVNode("div",lr,[e.renderSlot(C.$slots,"actions",{},void 0,!0),$.value!=="structured"?(e.openBlock(),e.createBlock(L,{key:0,modelValue:S.value,"onUpdate:modelValue":x[0]||(x[0]=W=>S.value=W),class:"sensitive-fields-checkbox","data-testid":"sensitive-fields-checkbox",label:e.unref(r)("baseConfigCard.actions.sensitive_fields"),"label-attributes":{info:e.unref(r)("baseConfigCard.actions.sensitive_fields_tooltip"),tooltipAttributes:{maxWidth:"200",placement:"top"}}},null,8,["modelValue","label","label-attributes"])):e.createCommentVNode("",!0),e.createElementVNode("div",sr,[e.createVNode(A,{class:"config-format-select-label","data-testid":"config-format-select-label"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(t.label),1)]),_:1}),e.createVNode(F,{modelValue:$.value,"onUpdate:modelValue":x[1]||(x[1]=W=>$.value=W),"data-testid":"select-config-format",items:b.value,onChange:p},null,8,["modelValue","items"])]),$.value==="deck"&&e.unref(v)?(e.openBlock(),e.createBlock(D,{key:1,appearance:"secondary",class:"button-customize-deck","data-testid":"config-deck-customize-button",onClick:x[2]||(x[2]=W=>c.value=!0)},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(r)("baseConfigCard.actions.deck_customize")),1)]),_:1})):e.createCommentVNode("",!0),t.configCardDoc?(e.openBlock(),e.createBlock(D,{key:2,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(U.BookIcon),{size:`var(--kui-icon-size-40, ${e.unref(oe)})`},null,8,["size"])],8,cr)]),_:1})):e.createCommentVNode("",!0)])]),default:e.withCtx(()=>[g.value?(e.openBlock(),e.createBlock(P,{key:0,"data-testid":"config-card-loader","table-columns":2,type:"table"})):k.value?(e.openBlock(),e.createBlock(Tt,{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",dr,[e.createVNode(Bt,{"code-block-record":T.value,"code-block-record-formatter":t.codeBlockRecordFormatter,"code-block-record-redacted":S.value?void 0:K.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":fe.value,"property-collections":Y.value,record:_.value,"sub-entity-type":t.subEntityType,"onDeckCustomization:close":x[3]||(x[3]=W=>c.value=!1),onRequestDeckFormat:x[4]||(x[4]=W=>$.value="deck")},e.createSlots({_:2},[e.renderList(Object.keys(C.$slots),W=>({name:W,fn:e.withCtx(Nt=>[e.renderSlot(C.$slots,W,e.mergeProps({record:_.value},Nt),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",ir,[e.renderSlot(C.$slots,"title",{},()=>[e.createTextVNode(e.toDisplayString(e.unref(r)("baseConfigCard.title")),1)],!0)])]),key:"0"}]),1032,["title-tag"])}}}),fr=d._export_sfc(ur,[["__scopeId","data-v-40eb9709"]]),pr=["novalidate"],mr={key:0,class:"button-customize-deck-wrapper"},gr=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)),r=o,i=t,l=Rt.useRouter(),{i18n:{t:s}}=d.composables.useI18n(),{getMessageFromError:u}=d.composables.useErrors(),{axiosInstance:f}=d.composables.useAxios(i.config?.axiosRequestConfig),c=e.ref(!1),y=e.computed(()=>!!i.editId),v=e.ref(!1),b=e.ref(""),$=e.computed(()=>i.canSubmit===!1||i.isReadonly),p=e.ref(!1),m=e.computed(()=>{let B=`${i.config.apiBaseUrl}${i.fetchUrl}`;return i.config.app==="konnect"&&(B=B.replace(/{controlPlaneId}/gi,i.config?.controlPlaneId||"")),B=B.replace(/\/{workspace}/gi,i.config?.workspace?`/${i.config.workspace}`:""),i.editId?(B=B.replace(/{id}/gi,i.editId),B):(B=B.replace(/\/{id}/gi,""),B)}),N=e.ref(!1),{isDeckEnabled:g,deckCustomizationOptions:k,deckCalloutPreferenceKey:I}=d.composables.useBaseFormDeckOptions(()=>i.config,()=>i.entityType),_=()=>{p.value=!p.value},R=()=>{i.config.cancelRoute?l.push(i.config.cancelRoute):T()},T=()=>{r("cancel")},S=()=>{$.value||r("submit")},O=e.computed(()=>{const B=[{title:s("baseForm.configuration.json"),hash:"#json"},{title:s("baseForm.configuration.yaml"),hash:"#yaml"}];i.config.app==="konnect"&&i.entityType!==d.SupportedEntityType.Other&&B.splice(1,0,{title:s("baseForm.configuration.terraform"),hash:"#terraform"}),g.value&&B.push({title:s("baseForm.configuration.deck"),hash:"#deck"});const E=new Set(i.tabsToHide.map(K=>`#${K}`));return B.filter(K=>!E.has(K.hash))}),h=e.ref(O.value[0]?.hash);return e.watch(O,B=>{B.some(E=>E.hash===h.value)||(h.value=B[0]?.hash)}),e.watch(()=>c.value,B=>{r("loading",B)},{immediate:!0}),e.onBeforeMount(async()=>{if(i.editId)try{v.value=!1,c.value=!0;const{data:B}=await f.get(m.value);r("fetch:success",B)}catch(B){const E=u(B);b.value=E.startsWith("code")?s("baseForm.errors.edit"):E,v.value=!0,r("fetch:error",B)}finally{c.value=!1}}),n({viewConfig:_,formCancel:T,formSubmit:S}),(B,E)=>{const K=e.resolveComponent("KSkeleton"),j=e.resolveComponent("KEmptyState"),Q=e.resolveComponent("KAlert"),H=e.resolveComponent("KButton"),Y=e.resolveComponent("KTabs"),fe=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(K,{key:0,type:"form"})):v.value?(e.openBlock(),e.createBlock(j,{key:1,"action-button-text":e.unref(s)("baseForm.actions.back"),"data-testid":"form-fetch-error","icon-variant":"error",onClickAction:R},{default:e.withCtx(()=>[e.createElementVNode("h3",null,e.toDisplayString(b.value),1)]),_:1},8,["action-button-text"])):(e.openBlock(),e.createElementBlock("form",{key:2,"data-testid":"form-content",novalidate:i.noValidate,onReset:e.withModifiers(T,["prevent"]),onSubmit:e.withModifiers(S,["prevent"])},[e.renderSlot(B.$slots,"default",{},void 0,!0),t.errorMessage?(e.openBlock(),e.createBlock(Q,{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(B.$slots,"form-actions",{},()=>[e.createVNode(H,{appearance:"tertiary","data-testid":`${t.entityType}-${y.value?"edit":"create"}-form-view-configuration`,onClick:E[0]||(E[0]=G=>_())},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(p.value?e.unref(s)("baseForm.actions.hideConfiguration"):e.unref(s)("baseForm.actions.viewConfiguration")),1)]),_:1},8,["data-testid"]),e.createVNode(H,{appearance:"secondary","data-testid":`${t.entityType}-${y.value?"edit":"create"}-form-cancel`,disabled:t.isReadonly,type:"reset",onClick:E[1]||(E[1]=G=>!!t.actionTeleportTarget&&T())},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(t.cancelButtonText??e.unref(s)("baseForm.actions.cancel")),1)]),_:1},8,["data-testid","disabled"]),e.createVNode(H,{appearance:"primary","data-testid":`${t.entityType}-${y.value?"edit":"create"}-form-submit`,disabled:$.value,type:"submit",onClick:E[2]||(E[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,pr)),e.createVNode(fe,{"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:p.value,onClose:E[8]||(E[8]=G=>_())},{default:e.withCtx(()=>[e.createElementVNode("div",null,[e.renderSlot(B.$slots,"configuration-slideout-message",{},()=>[e.createTextVNode(e.toDisplayString(e.unref(s)("baseForm.configuration.message")),1)],!0)]),e.createVNode(Y,{modelValue:h.value,"onUpdate:modelValue":E[6]||(E[6]=G=>h.value=G),"data-testid":"form-view-configuration-slideout-tabs",tabs:O.value,onChange:E[7]||(E[7]=G=>r("codeBlockTabChange",G.replace("#","")))},{json:e.withCtx(()=>[e.createVNode(_e,{config:t.config,"entity-record":i.formFields,"fetcher-url":i.slideoutFetchUrl??m.value,"request-method":i.slideoutRequestMethod??(i.editId?"put":"post")},null,8,["config","entity-record","fetcher-url","request-method"])]),yaml:e.withCtx(()=>[e.createVNode(we,{"deck-callout-preference-key":e.unref(g)?e.unref(I):void 0,"entity-record":i.formFields,"onDeckCallout:clickCta":E[3]||(E[3]=G=>h.value="#deck")},null,8,["deck-callout-preference-key","entity-record"])]),terraform:e.withCtx(()=>[e.createVNode(Le,{"entity-record":i.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",mr,[e.createVNode(H,{appearance:"secondary",class:"button-customize-deck",onClick:E[4]||(E[4]=G=>N.value=!0)},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(s)("baseConfigCard.actions.deck_customize")),1)]),_:1})])):e.createCommentVNode("",!0),e.createVNode(Fe,{app:t.config.app,"control-plane-name":t.config.app==="konnect"?t.config.controlPlaneName:void 0,"customization-options":e.unref(k),"entity-record":i.formFields,"entity-type":i.slideoutDeckEntityType??t.entityType,"geo-api-server-url":t.config.app==="konnect"?t.config.geoApiServerUrl:void 0,"is-customization-modal-visible":N.value,"kong-admin-api-url":t.config.app==="kongManager"?t.config.apiBaseUrl:void 0,workspace:t.config.workspace||void 0,onCustomizationClose:E[5]||(E[5]=G=>N.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"])}}}),yr=d._export_sfc(gr,[["__scopeId","data-v-b3590221"]]),vr=["data-truncate"],kr=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),r=e.computed(()=>{const m=n.rowEl?.querySelectorAll("td");return m?m[0]?.getAttribute("data-testid")===n.keyName:!0}),i=e.computed(()=>r.value||n.tooltip);let l;const s=()=>{l&&(l.disconnect(),l=void 0)},u=()=>{let m=o.value?.clientWidth||0;if(o.value&&"getComputedStyle"in window){const N=window.getComputedStyle(o.value);m-=(parseFloat(N.paddingLeft)||0)+(parseFloat(N.paddingRight)||0)}c.value=a.value?.getBoundingClientRect().width||0,y.value=m,v.value=f.value?.innerText||""},f=e.ref({}),c=e.ref(0),y=e.ref(0),v=e.ref(""),b=e.computed(()=>[a.value,o.value]),$=e.watch(b,m=>{if(i.value&&(s(),"ResizeObserver"in window&&window)){l=new ResizeObserver(N=>{window.requestAnimationFrame(()=>{!Array.isArray(N)||!N.length||u()})});for(const N of m)N&&l.observe(N)}},{immediate:!0,flush:"post",deep:!0}),p=e.computed(()=>i.value?c.value>y.value:!1);return e.onMounted(()=>{u()}),e.onUnmounted(()=>{$()}),(m,N)=>{const g=e.resolveComponent("KTooltip");return e.openBlock(),e.createElementBlock("span",{ref_key:"contentRef",ref:f,class:"content-wrapper"},[i.value?(e.openBlock(),e.createElementBlock("span",{key:0,"data-truncate":i.value||void 0},[e.createVNode(g,{"max-width":"300",placement:"bottom-start",text:p.value?v.value:""},{default:e.withCtx(()=>[e.renderSlot(m.$slots,"default",{},void 0,!0)]),_:3},8,["text"])],8,vr)):e.renderSlot(m.$slots,"default",{},void 0,!0,1)],512)}}}),hr=d._export_sfc(kr,[["__scopeId","data-v-a3a65cac"]]),Cr={class:"toolbar-container"},br={key:0,class:"toolbar-button-container"},Sr={key:0,class:"hidden"},Br=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:r}}=d.composables.useI18n(),i=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 h=[];return Object.keys(o.tableHeaders).forEach(E=>{const K=o.tableHeaders[E];h.push({label:K.label??E,key:E,sortable:K.sortable??!1,hidable:K.hidable??!0})}),o.enableEntityActions&&h.push({key:"actions",hideLabel:!0}),h}),u=h=>({"data-rowid":h.id,"data-testid":h.name,...o.rowAttributes(h)}),f=e.ref({}),c=h=>f.value?.$el.querySelector(`[data-rowid="${h.id}"]`),y=h=>{const B={"data-testid":h.headerKey,...o.cellAttributes(h)};return h.colIndex===0&&(B.style={maxWidth:"250px",overflowX:"hidden",textOverflow:"ellipsis"}),B},v=h=>{g(h),a("state",h)},b=()=>{a("empty-state-cta-clicked"),$()},$=()=>{a("clear-search-input")},p=e.computed(()=>o.disableRowClick?void 0:(h,B)=>{a("click:row",B)}),m=h=>{a("sort",h)},{hideTableToolbar:N,handleStateChange:g}=d.composables.useTableState(()=>o.query),{setTablePreferences:k,getTablePreferences:I}=d.de(),_=()=>{const h=I(l.value,o.defaultTablePreferences),B=o.defaultTablePreferences?.columnVisibility;return{...d.ne,...h,...B?{columnVisibility:{...B,...h.columnVisibility}}:{}}},R=e.ref(_()),T=e.computed(()=>{const h=I(l.value);return{...o.initialFetcherParams,...h}}),S=h=>{R.value=h,s.value.forEach(B=>{!("hidable"in B)||!R.value.columnVisibility||B.hidable===!1&&(R.value.columnVisibility[B.key]=!0)}),l.value&&k(l.value,h)},O=e.computed(()=>({disablePageJump:o.disablePaginationPageJump,offset:o.paginationType==="offset",...o.paginationAttributes}));return(h,B)=>{const E=e.resolveComponent("KTableData"),K=e.resolveComponent("KCard");return e.openBlock(),e.createBlock(K,{class:"kong-ui-entity-base-table",title:t.title,"title-tag":t.titleTag},{default:e.withCtx(()=>[e.createVNode(E,{ref_key:"tableRefs",ref:f,"cache-identifier":l.value,"cell-attrs":y,"client-sort":t.enableClientSort,"empty-state-action-message":t.query?e.unref(r)("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(r)("baseTable.emptyState.noSearchResultsMessage"):t.emptyStateOptions.message,"empty-state-title":t.query?e.unref(r)("baseTable.emptyState.noSearchResultsTitle"):t.emptyStateOptions.title,error:i.value.hasError,"error-state-message":i.value.message,"error-state-title":i.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(N),"initial-fetcher-params":T.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":R.value,onEmptyStateActionClick:b,"onRow:click":p.value,onSort:B[0]||(B[0]=j=>m(j)),onState:v,"onUpdate:tablePreferences":S},e.createSlots({toolbar:e.withCtx(()=>[e.createElementVNode("div",Cr,[e.renderSlot(h.$slots,"toolbar-filter",{},void 0,!0),h.$slots["toolbar-button"]?(e.openBlock(),e.createElementBlock("div",br,[e.renderSlot(h.$slots,"toolbar-button",{},void 0,!0)])):e.createCommentVNode("",!0)])]),"action-items":e.withCtx(({row:j})=>[e.renderSlot(h.$slots,"actions",{row:j},void 0,!0)]),_:2},[h.$slots["empty-state"]?{name:"empty-state",fn:e.withCtx(()=>[e.renderSlot(h.$slots,"empty-state",{},void 0,!0)]),key:"0"}:void 0,e.renderList(t.tableHeaders,(j,Q)=>({name:Q,fn:e.withCtx(({row:H,rowValue:Y})=>[e.createVNode(hr,{"key-name":String(Q),"row-el":c(H),tooltip:j.tooltip},{default:e.withCtx(()=>[e.renderSlot(h.$slots,Q,{row:H,rowKey:t.rowKey,rowValue:Y},()=>[e.createTextVNode(e.toDisplayString(Y),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(U.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"]),h.$slots["outside-actions"]&&e.unref(N)?(e.openBlock(),e.createElementBlock("div",Sr,[e.renderSlot(h.$slots,"outside-actions",{},void 0,!0)])):e.createCommentVNode("",!0)]),_:3},8,["title","title-tag"])}}}),Tr=d._export_sfc(Br,[["__scopeId","data-v-bcc0ec48"]]),Er={key:0,class:"kong-ui-entity-delete-error"},Nr={key:1,class:"description"},_r={key:2,class:"extra"},$r=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,r=n,i=e.computed(()=>a.entityTypeDisplay.trim()!==""?a.entityTypeDisplay:a.entityType),l=e.computed(()=>a.needConfirm?a.entityName:""),s=()=>{r("cancel")},u=()=>{r("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",Er,[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(i.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",Nr,[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",_r,[e.renderSlot(f.$slots,"extra",{},void 0,!0)])):e.createCommentVNode("",!0)],2)]),_:3},8,["action-button-disabled","class","confirmation-prompt","confirmation-text","title","visible"])}}}),Ir=d._export_sfc($r,[["__scopeId","data-v-61f55f42"]]),Or={key:1,class:"kong-ui-entity-filter"},xr={class:"kong-ui-entity-filter-menu"},Ar=["data-testid"],wr=["onClick","onKeydown"],Lr={class:"menu-item-indicator"},Fr={class:"menu-item-body"},Vr=["for"],Rr={class:"menu-item-buttons"},Kr={class:"filter-clear-button-container"},Dr=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,r=n,i=e.ref(!1),l=e.ref({}),s=e.ref(new Set),u=e.computed(()=>{const T=[];return new URLSearchParams(a.modelValue).forEach((S,O)=>{S!==""&&T.push(O)}),T}),f=e.computed(()=>{const T=a.config.fields;return Object.keys(T).filter(S=>T?.[S]?.searchable).map(S=>({label:T[S].label||S,value:S,expanded:!1}))});e.watch(()=>a.modelValue,T=>{l.value={},new URLSearchParams(T).forEach((S,O)=>{l.value[O]=S})});const c=()=>{i.value=!i.value},y=T=>{s.value.has(T)?s.value.delete(T):s.value.add(T)},v=T=>{r("update:modelValue",T)},b=()=>{v("")},$=T=>`filter-${T}`,p=T=>(a.config.schema?.[T]?.values??[]).map(S=>typeof S=="string"?{value:S,label:S}:S),m=T=>a.config.schema?.[T]?.type??"text",N=T=>{l.value={...l.value,[T]:""},k()},g=()=>{l.value={},k(!0)},k=(T=!1)=>{const S=Object.keys(l.value).reduce((O,h)=>(l.value[h]&&(O[h]=`${l.value[h]}`),O),{});T&&(i.value=!1),r("update:modelValue",new URLSearchParams(S).toString())},I=T=>!!a.config.schema?.[T]?.filterFunction,_=(T,S)=>{const O=a.config.schema?.[T];return O?.filterFunction===void 0?!0:O.filterFunction(S)},R=(T,S)=>{l.value[T]=S?S.custom?String(S.label):String(S.value):""};return(T,S)=>{const O=e.resolveComponent("KInput"),h=e.resolveComponent("KButton"),B=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(U.FilterIcon),{decorative:""})]),after:e.withCtx(()=>[e.withDirectives(e.createVNode(e.unref(U.CloseIcon),{class:"kong-ui-entity-filter-clear",role:"button",tabindex:"0",onClick:b},null,512),[[e.vShow,t.modelValue!==""]])]),_:1},8,["model-value","placeholder"])):(e.openBlock(),e.createElementBlock("div",Or,[e.createVNode(h,{appearance:"tertiary","data-testid":"filter-button",onClick:c},{default:e.withCtx(()=>[e.createVNode(e.unref(U.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,i.value]]),e.withDirectives(e.createElementVNode("div",xr,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(f.value,E=>(e.openBlock(),e.createElementBlock("div",{key:E.value,class:"kong-ui-entity-filter-menu-item","data-testid":E.value},[e.createElementVNode("span",{class:e.normalizeClass(["menu-item-title",{expanded:s.value.has(E.value)}]),role:"button",tabindex:"0",onClick:K=>y(E.value),onKeydown:e.withKeys(K=>y(E.value),["enter"])},[e.createTextVNode(e.toDisplayString(E.label)+" ",1),e.withDirectives(e.createElementVNode("span",Lr,null,512),[[e.vShow,u.value.includes(E.value)]]),e.createVNode(e.unref(U.ChevronDownIcon),{class:e.normalizeClass(["menu-item-expand-icon",{expanded:s.value.has(E.value)}]),color:`var(--kui-color-text-neutral-weak, ${e.unref(Jt)})`},null,8,["class","color"])],42,wr),e.withDirectives(e.createElementVNode("div",Fr,[e.createElementVNode("label",{class:"menu-item-label",for:$(E.value)},e.toDisplayString(e.unref(o)("filter.fieldLabel")),9,Vr),t.config.schema?.[E.value]?.type==="select"?(e.openBlock(),e.createBlock(B,{key:0,id:$(E.value),"enable-filtering":I(E.value),"enable-item-creation":t.config.schema?.[E.value]?.enableItemCreation,"filter-function":K=>_(E.value,K),items:p(E.value),"model-value":l.value[E.value],placeholder:e.unref(o)("filter.selectPlaceholder"),onChange:K=>R(E.value,K)},null,8,["id","enable-filtering","enable-item-creation","filter-function","items","model-value","placeholder","onChange"])):(e.openBlock(),e.createBlock(O,{key:1,id:$(E.value),modelValue:l.value[E.value],"onUpdate:modelValue":K=>l.value[E.value]=K,autocomplete:"off",placeholder:e.unref(o)("filter.inputPlaceholder"),type:m(E.value)},null,8,["id","modelValue","onUpdate:modelValue","placeholder","type"]))],512),[[e.vShow,s.value.has(E.value)]]),e.withDirectives(e.createElementVNode("div",Rr,[e.createVNode(h,{appearance:"tertiary","data-testid":"apply-filter",size:"small",onClick:S[0]||(S[0]=K=>k(!0))},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(o)("filter.applyButtonText")),1)]),_:1}),e.createVNode(h,{appearance:"tertiary","data-testid":"clear-filter",size:"small",onClick:K=>N(E.value)},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(o)("filter.clearButtonText")),1)]),_:1},8,["onClick"])],512),[[e.vShow,s.value.has(E.value)]])],8,Ar))),128)),e.createElementVNode("div",Kr,[e.createVNode(h,{appearance:"tertiary",size:"small",onClick:g},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(o)("filter.clearAllButtonText")),1)]),_:1})])],512),[[e.vShow,i.value]])]))}}}),Pr=d._export_sfc(Dr,[["__scopeId","data-v-10015be6"]]),Mr=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(),r=t,i=n,l=e.ref(!1),s=e.computed(()=>r.action==="enable"?o("toggleModal.enable.title",{entityType:r.entityType}):o("toggleModal.disable.title",{entityType:r.entityType})),u=e.computed(()=>r.action==="enable"?o("toggleModal.enable.confirmText"):o("toggleModal.disable.confirmText")),f=()=>i("cancel"),c=async()=>{if(r.onConfirm){l.value=!0;try{await r.onConfirm(),i("proceed")}catch(y){console.error(y)}finally{l.value=!1}}};return(y,v)=>{const b=e.resolveComponent("KPrompt");return e.openBlock(),e.createBlock(e.Teleport,{to:"body"},[e.createVNode(b,{"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.${r.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"])])}}}),Ur=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}),(r,i)=>a.value?e.renderSlot(r.$slots,"default",{isAllowed:o.value},void 0,void 0,0):e.createCommentVNode("",!0)}}),q=[];for(let t=0;t<256;++t)q.push((t+256).toString(16).slice(1));function qr(t,n=0){return(q[t[n+0]]+q[t[n+1]]+q[t[n+2]]+q[t[n+3]]+"-"+q[t[n+4]]+q[t[n+5]]+"-"+q[t[n+6]]+q[t[n+7]]+"-"+q[t[n+8]]+q[t[n+9]]+"-"+q[t[n+10]]+q[t[n+11]]+q[t[n+12]]+q[t[n+13]]+q[t[n+14]]+q[t[n+15]]).toLowerCase()}const zr=new Uint8Array(16);function jr(){return crypto.getRandomValues(zr)}function Gr(t,n,o){return crypto.randomUUID?crypto.randomUUID():Yr(t)}function Yr(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,qr(a)}const Hr=["aria-labelledby"],Wr={class:"form-section-wrapper"},Jr={key:1,class:"form-section-description"},Qr={key:2,class:"form-section-footer"},Xr={class:"form-section-content"},Zr=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=Gr();return(a,r)=>(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",Wr,[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",Jr,[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",Qr,[e.renderSlot(a.$slots,"footer",{},void 0,!0)])):e.createCommentVNode("",!0)],2)),e.createElementVNode("div",Xr,[e.renderSlot(a.$slots,"default",{},void 0,!0)])])],10,Hr))}}),ei=d._export_sfc(Zr,[["__scopeId","data-v-ccd29028"]]),ti={class:"header"},ni={key:0,class:"step","data-testid":"form-block-step"},oi={class:"header-content"},ai={class:"header-title","data-testid":"header-title"},ri={key:0,class:"header-description","data-testid":"header-description"},ii={key:1,class:"header-extra","data-testid":"header-extra"},li={class:"content","data-testid":"form-block-content"},si=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",ti,[t.step!==void 0||n.step?(e.openBlock(),e.createElementBlock("div",ni,[e.renderSlot(o.$slots,"step",{},()=>[e.createTextVNode(e.toDisplayString(t.step),1)],!0)])):e.createCommentVNode("",!0),e.createElementVNode("div",oi,[e.createElementVNode("h2",ai,[e.renderSlot(o.$slots,"title",{},()=>[e.createTextVNode(e.toDisplayString(t.title),1)],!0)]),t.description||n.description?(e.openBlock(),e.createElementBlock("div",ri,[e.renderSlot(o.$slots,"description",{},()=>[e.createTextVNode(e.toDisplayString(t.description),1)],!0)])):e.createCommentVNode("",!0)]),n.extra?(e.openBlock(),e.createElementBlock("div",ii,[e.renderSlot(o.$slots,"extra",{},void 0,!0)])):e.createCommentVNode("",!0)]),e.createElementVNode("div",li,[e.renderSlot(o.$slots,"default",{},void 0,!0)])],2))}}),ci=d._export_sfc(si,[["__scopeId","data-v-7dd2f21d"]]),di={class:"kong-ui-public-entity-link","data-testid":"entity-link-parent"},ui={key:0,class:"deleted-entity"},fi={key:1},pi=["onClick"],mi=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:r}}=d.composables.useI18n(),i=r("global.actions.copyId"),l=e.ref(i),s=e.computed(()=>n.entityLinkData.deleted??!1),u=e.computed(()=>n.entityLinkData.id?.toString().includes(":")?n.entityLinkData.id.toString().split(":")[1]:n.entityLinkData.id),f=e.computed(()=>`${u.value?.toString().slice(0,5)} (deleted)`),c=async y=>{await y(u.value||"")&&(l.value=r("global.actions.copyToClipboard"),setTimeout(()=>{l.value=i},1800))};return(y,v)=>{const b=e.resolveComponent("KTooltip"),$=e.resolveComponent("KExternalLink"),p=e.resolveComponent("KClipboardProvider");return e.openBlock(),e.createElementBlock("div",di,[s.value?(e.openBlock(),e.createElementBlock("div",ui,e.toDisplayString(f.value),1)):u.value?u.value?(e.openBlock(),e.createBlock($,{key:2,class:"entity-link","hide-icon":!t.newWindow,href:t.externalLink,target:t.newWindow?"_blank":"_self"},{default:e.withCtx(()=>[e.createVNode(b,{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,["text"])]),_:1},8,["hide-icon","href","target"])):e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",fi,e.toDisplayString(" – "))),u.value&&t.allowCopy?(e.openBlock(),e.createBlock(b,{key:l.value,class:"copy-uuid-tooltip","max-width":"160",placement:"bottom-end",text:l.value},{default:e.withCtx(()=>[e.createVNode(p,null,{default:e.withCtx(({copyToClipboard:m})=>[e.createElementVNode("span",{class:"entity-link-copy-id",onClick:e.withModifiers(N=>c(m),["stop"])},[e.createVNode(e.unref(U.CopyIcon),{class:"copy-icon",color:`var(--kui-color-text-primary, ${e.unref(Qt)})`,"data-testid":"copy-id",size:`var(--kui-icon-size-30, ${e.unref(Xe)})`},null,8,["color","size"])],8,pi)]),_:1})]),_:1},8,["text"])):e.createCommentVNode("",!0)])}}}),gi=d._export_sfc(mi,[["__scopeId","data-v-6668aea9"]]),yi={class:"kong-ui-public-entity-empty-state"},vi={class:"entity-empty-state-content"},ki={key:0,class:"empty-state-image"},hi={key:1,class:"entity-empty-state-title"},Ci={key:2,class:"entity-empty-state-description"},bi={key:3,class:"entity-empty-state-pricing"},Si={key:0,class:"entity-empty-state-message"},Bi={key:1,class:"entity-empty-state-action"},Ti={key:2,class:"entity-empty-state-card-container"},Ei={key:0,class:"feature-icon"},Ni={class:"card-header"},_i=["title"],$i={key:3,class:"entity-empty-state-bottom-container"},Ii=e.defineComponent({__name:"EntityEmptyState",props:{appearance:{type:String,default:()=>"primary",validator:t=>ke.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),r=e.computed(()=>a.value&&!!n.actionButtonText),i=e.computed(()=>ke.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
|
+
'@ | ${g}`)}),(g,k)=>{const I=e.resolveComponent("KSelect"),_=e.resolveComponent("KBadge"),R=e.resolveComponent("KCodeBlock"),T=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"},g.$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(U.LanguageShellIcon),{key:0})):(e.openBlock(),e.createBlock(e.unref(U.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(U.LanguageShellIcon),{key:0})):(e.openBlock(),e.createBlock(e.unref(U.LanguageBashIcon),{key:1})),e.createTextVNode(" "+e.toDisplayString(O.label),1)]),_:1},8,["modelValue"]),e.createElementVNode("div",Qa,e.toDisplayString(e.unref(i)("deckCodeBlock.steps.step_1")),1),t.isCustomizing?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(e.unref(r),{key:0,"data-testid":`deck-hint-${t.app}`,keypath:`deckCodeBlock.hint.${t.app}`,tag:"p"},e.createSlots({link:e.withCtx(()=>[e.createVNode(e.unref(Z.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(_,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(R,{key:1,id:"deck-env-codeblock",class:e.normalizeClass({customization:o.isCustomizing}),code:m.value,language:y.value,"single-line":"",theme:t.isCustomizing?"light":"dark",onCodeBlockRender:e.unref(ee)},null,8,["class","code","language","theme","onCodeBlockRender"])):e.createCommentVNode("",!0),l.value?(e.openBlock(),e.createBlock(T,{key:2,class:"copy-konnect-pat-alert"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(i)("deckCodeBlock.customization.copy_pat")),1)]),_:1})):o.isCustomizing&&o.generateKonnectPat?(e.openBlock(),e.createElementBlock("div",Xa,[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(i)("deckCodeBlock.customization.generate_pat")),1)]),_:1}),e.createElementVNode("div",null,e.toDisplayString(e.unref(i)("deckCodeBlock.customization.reuse_pat")),1)])):e.createCommentVNode("",!0),e.createElementVNode("div",Za,e.toDisplayString(e.unref(i)("deckCodeBlock.steps.step_2")),1),o.entityRecord&&!o.isCustomizing?(e.openBlock(),e.createBlock(R,{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(ee)},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",er,e.toDisplayString(e.unref(i)("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(T,{class:"customization-footer-reminder"},{icon:e.withCtx(()=>[e.createVNode(e.unref(U.InfoIcon))]),default:e.withCtx(()=>[e.createTextVNode(" "+e.toDisplayString(e.unref(i)("deckCodeBlock.customization.footer_reminder")),1)]),_:1})],64)):e.createCommentVNode("",!0)],16),o.isCustomizing&&o.generateKonnectPat?(e.openBlock(),e.createBlock(St,{key:0,"generate-konnect-pat":o.generateKonnectPat,visible:f.value,onDismiss:k[3]||(k[3]=O=>f.value=!1),onGenerated:N},null,8,["generate-konnect-pat","visible"])):e.createCommentVNode("",!0)],64)}}}),We=d._export_sfc(tr,[["__scopeId","data-v-81758ed8"]]),Fe=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(r,i)=>{const l=e.resolveComponent("KModal");return e.openBlock(),e.createElementBlock(e.Fragment,null,[n.entityRecord?(e.openBlock(),e.createBlock(We,e.mergeProps({key:0},r.$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:i[0]||(i[0]=s=>r.$emit("customization-close")),onProceed:i[1]||(i[1]=s=>r.$emit("customization-close"))},{default:e.withCtx(()=>[e.createVNode(We,{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)}}}),nr={key:0,class:"config-card-display-form"},or=["data-testid"],ar={key:0,class:"config-card-prop-section-title"},rr=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(),r=v=>!!(v.tooltip||o[`${v.key}-label-tooltip`]),i=v=>{if(v==null)return;let b=JSON.parse(JSON.stringify(v));return n.codeBlockRecordFormatter&&(b=n.codeBlockRecordFormatter(b,n.format)),n.preserveCodeBlockTimestamps||(delete b.created_at,delete b.updated_at),b},l=e.computed(()=>i(n.codeBlockRecordRedacted||n.codeBlockRecord||n.record)),s=e.computed(()=>i(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,b)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[t.format==="structured"?(e.openBlock(),e.createElementBlock("div",nr,[(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",ar,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[$],p=>e.renderSlot(v.$slots,`config-card-item-${p.key}`,{row:p},()=>[(e.openBlock(),e.createBlock(Ne,{key:p.key,item:p},e.createSlots({label:e.withCtx(()=>[e.renderSlot(v.$slots,`${p.key}-label`,{row:p},void 0,!0)]),[p.key]:e.withCtx(({rowValue:m})=>[e.renderSlot(v.$slots,p.key,{row:p,rowValue:m},void 0,!0)]),_:2},[r(p)?{name:"label-tooltip",fn:e.withCtx(()=>[e.renderSlot(v.$slots,`${p.key}-label-tooltip`,{row:p},void 0,!0)]),key:"0"}:void 0]),1032,["item"]))],!0)),256))],10,or))),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(we,{key:2,"deck-callout-preference-key":e.unref(f)?e.unref(y):void 0,"entity-record":l.value,"unredacted-record":s.value,"onDeckCallout:clickCta":b[0]||(b[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(Le,{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(Fe,{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:b[1]||(b[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))}}),Bt=d._export_sfc(rr,[["__scopeId","data-v-83075649"]]),ir={class:"config-card-title","data-testid":"config-card-title"},lr={class:"config-card-actions"},sr={class:"row"},cr=["href"],dr={key:2,class:"config-card-details-section"},ur=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:r}}=d.composables.useI18n(),{getMessageFromError:i}=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),b=e.computed(()=>{const C=[{label:r("baseConfigCard.general.structuredFormat"),value:"structured",selected:!0},{label:r("baseForm.configuration.json"),value:"json"},{label:r("baseForm.configuration.yaml"),value:"yaml"}];a.config.app==="konnect"&&C.splice(2,0,{label:r("baseForm.configuration.terraform"),value:"terraform"}),y.value&&C.push({label:r("baseForm.configuration.deck"),value:"deck"});const x=new Set(a.formatsToHide);return C.filter(L=>L.value==="structured"||!x.has(L.value))}),$=e.ref("structured"),p=C=>{$.value=C?.value,o("configFormatChange",$.value)},m=(C,x)=>{localStorage.setItem(C,x)};e.watch($,C=>{a.config.formatPreferenceKey&&m(a.config.formatPreferenceKey,C)}),e.onMounted(()=>{if(a.config.formatPreferenceKey){const C=localStorage.getItem(a.config.formatPreferenceKey),x=b.value;C&&x.some(L=>L.value===C)?$.value=C:$.value=x[0]?.value??"structured",m(a.config.formatPreferenceKey,$.value)}});const N={id:{type:d.ConfigurationSchemaType.ID,label:r("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:r("baseConfigCard.commonFields.updated_at_label"),order:3,section:d.ConfigurationSchemaSection.Basic},created_at:{type:d.ConfigurationSchemaType.Date,label:r("baseConfigCard.commonFields.created_at_label"),order:4,section:d.ConfigurationSchemaSection.Basic},managed_by:{type:d.ConfigurationSchemaType.ManagedBy,label:r("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:r("baseConfigCard.commonFields.partial_label"),order:-1,section:d.ConfigurationSchemaSection.Basic}},g=e.ref(!1),k=e.ref(!1),I=e.ref(""),_=e.ref({}),R=e.ref(null),T=e.computed(()=>{if(!(!a.codeBlockRecordResolver||R.value==null))return a.codeBlockRecordResolver(R.value)}),S=e.ref(!1),{redactByConfigSchema:O,redactByApiSchema:h,isObjectRecord:B,getApiSchemaField:E}=d.composables.useHelpers(),K=e.computed(()=>{const C=T.value||_.value;let x=C;if(B(C)&&Array.isArray(s?.value?.fields)){const L={};for(const A in C){const F=E(s?.value?.fields,A);L[A]=F?h(C[A],F):C[A]}x=L}return x=O(x,a.configSchema),a.codeBlockRecordResolver?a.codeBlockRecordResolver(x):x}),j=e.computed(()=>{if(!_.value)return[];const C=[],x=Object.keys(_.value).length;for(const L in _.value){if(L==="__ui_data"||L==="managed_by"&&!u.value)continue;const A=a.configSchema?.[L]?.order,F=N[L]?.order;let D=x;(F||F===0)&&(D=F===-1?x+1:F),A&&(D=A===-1?x+1:A),C.push([L,D])}return C.sort(function(L,A){return L[1]-A[1]}),C.map(L=>{const A=L[0],F=_.value?.[A],D=a.configSchema?.[A]||{},P=N[A];return{key:A,value:F,hidden:D.hidden||!1,type:D.type??(P?.type||d.ConfigurationSchemaType.Text),label:D.label??(P?.label||l(A)),tooltip:D.tooltip??(P?.tooltip||void 0),section:D.section??(P?.section||d.ConfigurationSchemaSection.Advanced)}}).filter(L=>!L.hidden&&L.key!==a.pluginConfigKey)}),Q=e.computed(()=>{if(!_.value||!a.pluginConfigKey)return[];const C=_.value[a.pluginConfigKey]||{},x=Object.keys(C).length,L=[];for(const A in C){const F=a.pluginConfigSchema?.[A]?.order,D=C[A];let P=D!=null&&D!==""?x-1:x;F&&(P=F===-1?x+1:F),L.push([A,P])}return L.sort(function(A,F){return A[1]-F[1]}),L.map(A=>{const F=A[0],D=C[F],P=a.pluginConfigSchema?.[F]||{};return{key:F,value:D,hidden:P.hidden||!1,type:P.type??d.ConfigurationSchemaType.Text,label:P.label??l(F),tooltip:P.tooltip??void 0,section:d.ConfigurationSchemaSection.Plugin}}).filter(A=>!A.hidden)}),H=e.computed(()=>{if(!_.value||!a.policyConfigKey)return[];const C=_.value[a.policyConfigKey]||{},x=Object.keys(C).length,L=[];for(const A in C){const F=a.policyConfigSchema?.[A]?.order,D=C[A];let P=D!=null&&D!==""?x-1:x;F&&(P=F===-1?x+1:F),L.push([A,P])}return L.sort(function(A,F){return A[1]-F[1]}),L.map(A=>{const F=A[0],D=C[F],P=a.policyConfigSchema?.[F]||{};return{key:F,value:D,hidden:P.hidden||!1,type:P.type??d.ConfigurationSchemaType.Text,label:P.label??l(F),tooltip:P.tooltip??void 0,section:d.ConfigurationSchemaSection.Policy}}).filter(A=>!A.hidden)}),Y=e.computed(()=>({basic:j.value?.filter(C=>C.section===d.ConfigurationSchemaSection.Basic),advanced:j.value?.filter(C=>C.section===d.ConfigurationSchemaSection.Advanced),plugin:Q.value?.concat(j.value?.filter(C=>C.section===d.ConfigurationSchemaSection.Plugin)),policy:H.value?.concat(j.value?.filter(C=>C.section===d.ConfigurationSchemaSection.Policy))})),fe=e.computed(()=>{const C=[];return Y.value.basic.length&&C.push("basic"),Y.value.advanced.length&&C.push("advanced"),Y.value.plugin.length&&C.push("plugin"),Y.value.policy.length&&C.push("policy"),C}),G=e.computed(()=>{let C=`${a.config.apiBaseUrl}${a.fetchUrl}`;return a.config.app==="konnect"&&(C=C.replace(/{controlPlaneId}/gi,a.config?.controlPlaneId||"")),C.replace(/\/{workspace}/gi,a.config?.workspace?`/${a.config.workspace}`:"").replace(/{id}/gi,a.config.entityId)});return e.watch(g,C=>{o("loading",C)},{immediate:!0}),e.onBeforeMount(async()=>{k.value=!1,g.value=!0;try{const{data:C}=await f.get(G.value);if(R.value=C,a.dataKey)if(typeof C[a.dataKey]<"u")_.value={...C[a.dataKey]};else throw new Error(r("errors.dataKeyUndefined",{dataKey:a.dataKey}));else a.recordResolver?_.value={...a.recordResolver(C)}:_.value={...C};Object.keys(a.configSchema).filter(L=>a.configSchema[L].forceShow).forEach(L=>{_.value&&typeof _.value[L]>"u"&&(_.value[L]=null)}),o("fetch:success",C)}catch(C){R.value=null;const x=i(C);I.value=x.startsWith("code")?r("baseConfigCard.errors.load"):x,k.value=!0,o("fetch:error",C)}finally{g.value=!1}}),(C,x)=>{const L=e.resolveComponent("KCheckbox"),A=e.resolveComponent("KLabel"),F=e.resolveComponent("KSelect"),D=e.resolveComponent("KButton"),P=e.resolveComponent("KSkeleton"),Tt=e.resolveComponent("KEmptyState"),Et=e.resolveComponent("KCard");return e.openBlock(),e.createBlock(Et,{class:"kong-ui-entity-base-config-card","title-tag":t.titleTag},e.createSlots({actions:e.withCtx(()=>[e.createElementVNode("div",lr,[e.renderSlot(C.$slots,"actions",{},void 0,!0),$.value!=="structured"?(e.openBlock(),e.createBlock(L,{key:0,modelValue:S.value,"onUpdate:modelValue":x[0]||(x[0]=W=>S.value=W),class:"sensitive-fields-checkbox","data-testid":"sensitive-fields-checkbox",label:e.unref(r)("baseConfigCard.actions.sensitive_fields"),"label-attributes":{info:e.unref(r)("baseConfigCard.actions.sensitive_fields_tooltip"),tooltipAttributes:{maxWidth:"200",placement:"top"}}},null,8,["modelValue","label","label-attributes"])):e.createCommentVNode("",!0),e.createElementVNode("div",sr,[e.createVNode(A,{class:"config-format-select-label","data-testid":"config-format-select-label"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(t.label),1)]),_:1}),e.createVNode(F,{modelValue:$.value,"onUpdate:modelValue":x[1]||(x[1]=W=>$.value=W),"data-testid":"select-config-format",items:b.value,onChange:p},null,8,["modelValue","items"])]),$.value==="deck"&&e.unref(v)?(e.openBlock(),e.createBlock(D,{key:1,appearance:"secondary",class:"button-customize-deck","data-testid":"config-deck-customize-button",onClick:x[2]||(x[2]=W=>c.value=!0)},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(r)("baseConfigCard.actions.deck_customize")),1)]),_:1})):e.createCommentVNode("",!0),t.configCardDoc?(e.openBlock(),e.createBlock(D,{key:2,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(U.BookIcon),{size:`var(--kui-icon-size-40, ${e.unref(oe)})`},null,8,["size"])],8,cr)]),_:1})):e.createCommentVNode("",!0)])]),default:e.withCtx(()=>[g.value?(e.openBlock(),e.createBlock(P,{key:0,"data-testid":"config-card-loader","table-columns":2,type:"table"})):k.value?(e.openBlock(),e.createBlock(Tt,{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",dr,[e.createVNode(Bt,{"code-block-record":T.value,"code-block-record-formatter":t.codeBlockRecordFormatter,"code-block-record-redacted":S.value?void 0:K.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":fe.value,"property-collections":Y.value,record:_.value,"sub-entity-type":t.subEntityType,"onDeckCustomization:close":x[3]||(x[3]=W=>c.value=!1),onRequestDeckFormat:x[4]||(x[4]=W=>$.value="deck")},e.createSlots({_:2},[e.renderList(Object.keys(C.$slots),W=>({name:W,fn:e.withCtx(Nt=>[e.renderSlot(C.$slots,W,e.mergeProps({record:_.value},Nt),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",ir,[e.renderSlot(C.$slots,"title",{},()=>[e.createTextVNode(e.toDisplayString(e.unref(r)("baseConfigCard.title")),1)],!0)])]),key:"0"}]),1032,["title-tag"])}}}),fr=d._export_sfc(ur,[["__scopeId","data-v-40eb9709"]]),pr=["novalidate"],mr={key:0,class:"button-customize-deck-wrapper"},gr=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)),r=o,i=t,l=Rt.useRouter(),{i18n:{t:s}}=d.composables.useI18n(),{getMessageFromError:u}=d.composables.useErrors(),{axiosInstance:f}=d.composables.useAxios(i.config?.axiosRequestConfig),c=e.ref(!1),y=e.computed(()=>!!i.editId),v=e.ref(!1),b=e.ref(""),$=e.computed(()=>i.canSubmit===!1||i.isReadonly),p=e.ref(!1),m=e.computed(()=>{let B=`${i.config.apiBaseUrl}${i.fetchUrl}`;return i.config.app==="konnect"&&(B=B.replace(/{controlPlaneId}/gi,i.config?.controlPlaneId||"")),B=B.replace(/\/{workspace}/gi,i.config?.workspace?`/${i.config.workspace}`:""),i.editId?(B=B.replace(/{id}/gi,i.editId),B):(B=B.replace(/\/{id}/gi,""),B)}),N=e.ref(!1),{isDeckEnabled:g,deckCustomizationOptions:k,deckCalloutPreferenceKey:I}=d.composables.useBaseFormDeckOptions(()=>i.config,()=>i.entityType),_=()=>{p.value=!p.value},R=()=>{i.config.cancelRoute?l.push(i.config.cancelRoute):T()},T=()=>{r("cancel")},S=()=>{$.value||r("submit")},O=e.computed(()=>{const B=[{title:s("baseForm.configuration.json"),hash:"#json"},{title:s("baseForm.configuration.yaml"),hash:"#yaml"}];i.config.app==="konnect"&&i.entityType!==d.SupportedEntityType.Other&&B.splice(1,0,{title:s("baseForm.configuration.terraform"),hash:"#terraform"}),g.value&&B.push({title:s("baseForm.configuration.deck"),hash:"#deck"});const E=new Set(i.tabsToHide.map(K=>`#${K}`));return B.filter(K=>!E.has(K.hash))}),h=e.ref(O.value[0]?.hash);return e.watch(O,B=>{B.some(E=>E.hash===h.value)||(h.value=B[0]?.hash)}),e.watch(()=>c.value,B=>{r("loading",B)},{immediate:!0}),e.onBeforeMount(async()=>{if(i.editId)try{v.value=!1,c.value=!0;const{data:B}=await f.get(m.value);r("fetch:success",B)}catch(B){const E=u(B);b.value=E.startsWith("code")?s("baseForm.errors.edit"):E,v.value=!0,r("fetch:error",B)}finally{c.value=!1}}),n({viewConfig:_,formCancel:T,formSubmit:S}),(B,E)=>{const K=e.resolveComponent("KSkeleton"),j=e.resolveComponent("KEmptyState"),Q=e.resolveComponent("KAlert"),H=e.resolveComponent("KButton"),Y=e.resolveComponent("KTabs"),fe=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(K,{key:0,type:"form"})):v.value?(e.openBlock(),e.createBlock(j,{key:1,"action-button-text":e.unref(s)("baseForm.actions.back"),"data-testid":"form-fetch-error","icon-variant":"error",onClickAction:R},{default:e.withCtx(()=>[e.createElementVNode("h3",null,e.toDisplayString(b.value),1)]),_:1},8,["action-button-text"])):(e.openBlock(),e.createElementBlock("form",{key:2,"data-testid":"form-content",novalidate:i.noValidate,onReset:e.withModifiers(T,["prevent"]),onSubmit:e.withModifiers(S,["prevent"])},[e.renderSlot(B.$slots,"default",{},void 0,!0),t.errorMessage?(e.openBlock(),e.createBlock(Q,{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(B.$slots,"form-actions",{},()=>[e.createVNode(H,{appearance:"tertiary","data-testid":`${t.entityType}-${y.value?"edit":"create"}-form-view-configuration`,onClick:E[0]||(E[0]=G=>_())},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(p.value?e.unref(s)("baseForm.actions.hideConfiguration"):e.unref(s)("baseForm.actions.viewConfiguration")),1)]),_:1},8,["data-testid"]),e.createVNode(H,{appearance:"secondary","data-testid":`${t.entityType}-${y.value?"edit":"create"}-form-cancel`,disabled:t.isReadonly,type:"reset",onClick:E[1]||(E[1]=G=>!!t.actionTeleportTarget&&T())},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(t.cancelButtonText??e.unref(s)("baseForm.actions.cancel")),1)]),_:1},8,["data-testid","disabled"]),e.createVNode(H,{appearance:"primary","data-testid":`${t.entityType}-${y.value?"edit":"create"}-form-submit`,disabled:$.value,type:"submit",onClick:E[2]||(E[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,pr)),e.createVNode(fe,{"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:p.value,onClose:E[8]||(E[8]=G=>_())},{default:e.withCtx(()=>[e.createElementVNode("div",null,[e.renderSlot(B.$slots,"configuration-slideout-message",{},()=>[e.createTextVNode(e.toDisplayString(e.unref(s)("baseForm.configuration.message")),1)],!0)]),e.createVNode(Y,{modelValue:h.value,"onUpdate:modelValue":E[6]||(E[6]=G=>h.value=G),"data-testid":"form-view-configuration-slideout-tabs",tabs:O.value,onChange:E[7]||(E[7]=G=>r("codeBlockTabChange",G.replace("#","")))},{json:e.withCtx(()=>[e.createVNode(_e,{config:t.config,"entity-record":i.formFields,"fetcher-url":i.slideoutFetchUrl??m.value,"request-method":i.slideoutRequestMethod??(i.editId?"put":"post")},null,8,["config","entity-record","fetcher-url","request-method"])]),yaml:e.withCtx(()=>[e.createVNode(we,{"deck-callout-preference-key":e.unref(g)?e.unref(I):void 0,"entity-record":i.formFields,"onDeckCallout:clickCta":E[3]||(E[3]=G=>h.value="#deck")},null,8,["deck-callout-preference-key","entity-record"])]),terraform:e.withCtx(()=>[e.createVNode(Le,{"entity-record":i.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",mr,[e.createVNode(H,{appearance:"secondary",class:"button-customize-deck",onClick:E[4]||(E[4]=G=>N.value=!0)},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(s)("baseConfigCard.actions.deck_customize")),1)]),_:1})])):e.createCommentVNode("",!0),e.createVNode(Fe,{app:t.config.app,"control-plane-name":t.config.app==="konnect"?t.config.controlPlaneName:void 0,"customization-options":e.unref(k),"entity-record":i.formFields,"entity-type":i.slideoutDeckEntityType??t.entityType,"geo-api-server-url":t.config.app==="konnect"?t.config.geoApiServerUrl:void 0,"is-customization-modal-visible":N.value,"kong-admin-api-url":t.config.app==="kongManager"?t.config.apiBaseUrl:void 0,workspace:t.config.workspace||void 0,onCustomizationClose:E[5]||(E[5]=G=>N.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"])}}}),yr=d._export_sfc(gr,[["__scopeId","data-v-b3590221"]]),vr=["data-truncate"],kr=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),r=e.computed(()=>{const m=n.rowEl?.querySelectorAll("td");return m?m[0]?.getAttribute("data-testid")===n.keyName:!0}),i=e.computed(()=>r.value||n.tooltip);let l;const s=()=>{l&&(l.disconnect(),l=void 0)},u=()=>{let m=o.value?.clientWidth||0;if(o.value&&"getComputedStyle"in window){const N=window.getComputedStyle(o.value);m-=(parseFloat(N.paddingLeft)||0)+(parseFloat(N.paddingRight)||0)}c.value=a.value?.getBoundingClientRect().width||0,y.value=m,v.value=f.value?.innerText||""},f=e.ref({}),c=e.ref(0),y=e.ref(0),v=e.ref(""),b=e.computed(()=>[a.value,o.value]),$=e.watch(b,m=>{if(i.value&&(s(),"ResizeObserver"in window&&window)){l=new ResizeObserver(N=>{window.requestAnimationFrame(()=>{!Array.isArray(N)||!N.length||u()})});for(const N of m)N&&l.observe(N)}},{immediate:!0,flush:"post",deep:!0}),p=e.computed(()=>i.value?c.value>y.value:!1);return e.onMounted(()=>{u()}),e.onUnmounted(()=>{$()}),(m,N)=>{const g=e.resolveComponent("KTooltip");return e.openBlock(),e.createElementBlock("span",{ref_key:"contentRef",ref:f,class:"content-wrapper"},[i.value?(e.openBlock(),e.createElementBlock("span",{key:0,"data-truncate":i.value||void 0},[e.createVNode(g,{"max-width":"300",placement:"bottom-start",text:p.value?v.value:""},{default:e.withCtx(()=>[e.renderSlot(m.$slots,"default",{},void 0,!0)]),_:3},8,["text"])],8,vr)):e.renderSlot(m.$slots,"default",{},void 0,!0,1)],512)}}}),hr=d._export_sfc(kr,[["__scopeId","data-v-a3a65cac"]]),Cr={class:"toolbar-container"},br={key:0,class:"toolbar-button-container"},Sr={key:0,class:"hidden"},Br=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:r}}=d.composables.useI18n(),i=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 h=[];return Object.keys(o.tableHeaders).forEach(E=>{const K=o.tableHeaders[E];h.push({label:K.label??E,key:E,sortable:K.sortable??!1,hidable:K.hidable??!0})}),o.enableEntityActions&&h.push({key:"actions",hideLabel:!0}),h}),u=h=>({"data-rowid":h.id,"data-testid":h.name,...o.rowAttributes(h)}),f=e.ref({}),c=h=>f.value?.$el.querySelector(`[data-rowid="${h.id}"]`),y=h=>{const B={"data-testid":h.headerKey,...o.cellAttributes(h)};return h.colIndex===0&&(B.style={maxWidth:"250px",overflowX:"hidden",textOverflow:"ellipsis"}),B},v=h=>{g(h),a("state",h)},b=()=>{a("empty-state-cta-clicked"),$()},$=()=>{a("clear-search-input")},p=e.computed(()=>o.disableRowClick?void 0:(h,B)=>{a("click:row",B)}),m=h=>{a("sort",h)},{hideTableToolbar:N,handleStateChange:g}=d.composables.useTableState(()=>o.query),{setTablePreferences:k,getTablePreferences:I}=d.de(),_=()=>{const h=I(l.value,o.defaultTablePreferences),B=o.defaultTablePreferences?.columnVisibility;return{...d.ne,...h,...B?{columnVisibility:{...B,...h.columnVisibility}}:{}}},R=e.ref(_()),T=e.computed(()=>{const h=I(l.value);return{...o.initialFetcherParams,...h}}),S=h=>{R.value=h,s.value.forEach(B=>{!("hidable"in B)||!R.value.columnVisibility||B.hidable===!1&&(R.value.columnVisibility[B.key]=!0)}),l.value&&k(l.value,h)},O=e.computed(()=>({disablePageJump:o.disablePaginationPageJump,offset:o.paginationType==="offset",...o.paginationAttributes}));return(h,B)=>{const E=e.resolveComponent("KTableData"),K=e.resolveComponent("KCard");return e.openBlock(),e.createBlock(K,{class:"kong-ui-entity-base-table",title:t.title,"title-tag":t.titleTag},{default:e.withCtx(()=>[e.createVNode(E,{ref_key:"tableRefs",ref:f,"cache-identifier":l.value,"cell-attrs":y,"client-sort":t.enableClientSort,"empty-state-action-message":t.query?e.unref(r)("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(r)("baseTable.emptyState.noSearchResultsMessage"):t.emptyStateOptions.message,"empty-state-title":t.query?e.unref(r)("baseTable.emptyState.noSearchResultsTitle"):t.emptyStateOptions.title,error:i.value.hasError,"error-state-message":i.value.message,"error-state-title":i.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(N),"initial-fetcher-params":T.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":R.value,onEmptyStateActionClick:b,"onRow:click":p.value,onSort:B[0]||(B[0]=j=>m(j)),onState:v,"onUpdate:tablePreferences":S},e.createSlots({toolbar:e.withCtx(()=>[e.createElementVNode("div",Cr,[e.renderSlot(h.$slots,"toolbar-filter",{},void 0,!0),h.$slots["toolbar-button"]?(e.openBlock(),e.createElementBlock("div",br,[e.renderSlot(h.$slots,"toolbar-button",{},void 0,!0)])):e.createCommentVNode("",!0)])]),"action-items":e.withCtx(({row:j})=>[e.renderSlot(h.$slots,"actions",{row:j},void 0,!0)]),_:2},[h.$slots["empty-state"]?{name:"empty-state",fn:e.withCtx(()=>[e.renderSlot(h.$slots,"empty-state",{},void 0,!0)]),key:"0"}:void 0,e.renderList(t.tableHeaders,(j,Q)=>({name:Q,fn:e.withCtx(({row:H,rowValue:Y})=>[e.createVNode(hr,{"key-name":String(Q),"row-el":c(H),tooltip:j.tooltip},{default:e.withCtx(()=>[e.renderSlot(h.$slots,Q,{row:H,rowKey:t.rowKey,rowValue:Y},()=>[e.createTextVNode(e.toDisplayString(Y),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(U.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"]),h.$slots["outside-actions"]&&e.unref(N)?(e.openBlock(),e.createElementBlock("div",Sr,[e.renderSlot(h.$slots,"outside-actions",{},void 0,!0)])):e.createCommentVNode("",!0)]),_:3},8,["title","title-tag"])}}}),Tr=d._export_sfc(Br,[["__scopeId","data-v-bcc0ec48"]]),Er={key:0,class:"kong-ui-entity-delete-error"},Nr={key:1,class:"description"},_r={key:2,class:"extra"},$r=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,r=n,i=e.computed(()=>a.entityTypeDisplay.trim()!==""?a.entityTypeDisplay:a.entityType),l=e.computed(()=>a.needConfirm?a.entityName:""),s=()=>{r("cancel")},u=()=>{r("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",Er,[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(i.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",Nr,[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",_r,[e.renderSlot(f.$slots,"extra",{},void 0,!0)])):e.createCommentVNode("",!0)],2)]),_:3},8,["action-button-disabled","class","confirmation-prompt","confirmation-text","title","visible"])}}}),Ir=d._export_sfc($r,[["__scopeId","data-v-61f55f42"]]),Or={key:1,class:"kong-ui-entity-filter"},xr={class:"kong-ui-entity-filter-menu"},Ar=["data-testid"],wr=["onClick","onKeydown"],Lr={class:"menu-item-indicator"},Fr={class:"menu-item-body"},Vr=["for"],Rr={class:"menu-item-buttons"},Kr={class:"filter-clear-button-container"},Dr=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,r=n,i=e.ref(!1),l=e.ref({}),s=e.ref(new Set),u=e.computed(()=>{const T=[];return new URLSearchParams(a.modelValue).forEach((S,O)=>{S!==""&&T.push(O)}),T}),f=e.computed(()=>{const T=a.config.fields;return Object.keys(T).filter(S=>T?.[S]?.searchable).map(S=>({label:T[S].label||S,value:S,expanded:!1}))});e.watch(()=>a.modelValue,T=>{l.value={},new URLSearchParams(T).forEach((S,O)=>{l.value[O]=S})});const c=()=>{i.value=!i.value},y=T=>{s.value.has(T)?s.value.delete(T):s.value.add(T)},v=T=>{r("update:modelValue",T)},b=()=>{v("")},$=T=>`filter-${T}`,p=T=>(a.config.schema?.[T]?.values??[]).map(S=>typeof S=="string"?{value:S,label:S}:S),m=T=>a.config.schema?.[T]?.type??"text",N=T=>{l.value={...l.value,[T]:""},k()},g=()=>{l.value={},k(!0)},k=(T=!1)=>{const S=Object.keys(l.value).reduce((O,h)=>(l.value[h]&&(O[h]=`${l.value[h]}`),O),{});T&&(i.value=!1),r("update:modelValue",new URLSearchParams(S).toString())},I=T=>!!a.config.schema?.[T]?.filterFunction,_=(T,S)=>{const O=a.config.schema?.[T];return O?.filterFunction===void 0?!0:O.filterFunction(S)},R=(T,S)=>{l.value[T]=S?S.custom?String(S.label):String(S.value):""};return(T,S)=>{const O=e.resolveComponent("KInput"),h=e.resolveComponent("KButton"),B=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(U.FilterIcon),{decorative:""})]),after:e.withCtx(()=>[e.withDirectives(e.createVNode(e.unref(U.CloseIcon),{class:"kong-ui-entity-filter-clear",role:"button",tabindex:"0",onClick:b},null,512),[[e.vShow,t.modelValue!==""]])]),_:1},8,["model-value","placeholder"])):(e.openBlock(),e.createElementBlock("div",Or,[e.createVNode(h,{appearance:"tertiary","data-testid":"filter-button",onClick:c},{default:e.withCtx(()=>[e.createVNode(e.unref(U.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,i.value]]),e.withDirectives(e.createElementVNode("div",xr,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(f.value,E=>(e.openBlock(),e.createElementBlock("div",{key:E.value,class:"kong-ui-entity-filter-menu-item","data-testid":E.value},[e.createElementVNode("span",{class:e.normalizeClass(["menu-item-title",{expanded:s.value.has(E.value)}]),role:"button",tabindex:"0",onClick:K=>y(E.value),onKeydown:e.withKeys(K=>y(E.value),["enter"])},[e.createTextVNode(e.toDisplayString(E.label)+" ",1),e.withDirectives(e.createElementVNode("span",Lr,null,512),[[e.vShow,u.value.includes(E.value)]]),e.createVNode(e.unref(U.ChevronDownIcon),{class:e.normalizeClass(["menu-item-expand-icon",{expanded:s.value.has(E.value)}]),color:`var(--kui-color-text-neutral-weak, ${e.unref(Jt)})`},null,8,["class","color"])],42,wr),e.withDirectives(e.createElementVNode("div",Fr,[e.createElementVNode("label",{class:"menu-item-label",for:$(E.value)},e.toDisplayString(e.unref(o)("filter.fieldLabel")),9,Vr),t.config.schema?.[E.value]?.type==="select"?(e.openBlock(),e.createBlock(B,{key:0,id:$(E.value),"enable-filtering":I(E.value),"enable-item-creation":t.config.schema?.[E.value]?.enableItemCreation,"filter-function":K=>_(E.value,K),items:p(E.value),"model-value":l.value[E.value],placeholder:e.unref(o)("filter.selectPlaceholder"),onChange:K=>R(E.value,K)},null,8,["id","enable-filtering","enable-item-creation","filter-function","items","model-value","placeholder","onChange"])):(e.openBlock(),e.createBlock(O,{key:1,id:$(E.value),modelValue:l.value[E.value],"onUpdate:modelValue":K=>l.value[E.value]=K,autocomplete:"off",placeholder:e.unref(o)("filter.inputPlaceholder"),type:m(E.value)},null,8,["id","modelValue","onUpdate:modelValue","placeholder","type"]))],512),[[e.vShow,s.value.has(E.value)]]),e.withDirectives(e.createElementVNode("div",Rr,[e.createVNode(h,{appearance:"tertiary","data-testid":"apply-filter",size:"small",onClick:S[0]||(S[0]=K=>k(!0))},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(o)("filter.applyButtonText")),1)]),_:1}),e.createVNode(h,{appearance:"tertiary","data-testid":"clear-filter",size:"small",onClick:K=>N(E.value)},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(o)("filter.clearButtonText")),1)]),_:1},8,["onClick"])],512),[[e.vShow,s.value.has(E.value)]])],8,Ar))),128)),e.createElementVNode("div",Kr,[e.createVNode(h,{appearance:"tertiary",size:"small",onClick:g},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(o)("filter.clearAllButtonText")),1)]),_:1})])],512),[[e.vShow,i.value]])]))}}}),Pr=d._export_sfc(Dr,[["__scopeId","data-v-10015be6"]]),Mr=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(),r=t,i=n,l=e.ref(!1),s=e.computed(()=>r.action==="enable"?o("toggleModal.enable.title",{entityType:r.entityType}):o("toggleModal.disable.title",{entityType:r.entityType})),u=e.computed(()=>r.action==="enable"?o("toggleModal.enable.confirmText"):o("toggleModal.disable.confirmText")),f=()=>i("cancel"),c=async()=>{if(r.onConfirm){l.value=!0;try{await r.onConfirm(),i("proceed")}catch(y){console.error(y)}finally{l.value=!1}}};return(y,v)=>{const b=e.resolveComponent("KPrompt");return e.openBlock(),e.createBlock(e.Teleport,{to:"body"},[e.createVNode(b,{"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.${r.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"])])}}}),Ur=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}),(r,i)=>a.value?e.renderSlot(r.$slots,"default",{isAllowed:o.value},void 0,void 0,0):e.createCommentVNode("",!0)}}),q=[];for(let t=0;t<256;++t)q.push((t+256).toString(16).slice(1));function qr(t,n=0){return(q[t[n+0]]+q[t[n+1]]+q[t[n+2]]+q[t[n+3]]+"-"+q[t[n+4]]+q[t[n+5]]+"-"+q[t[n+6]]+q[t[n+7]]+"-"+q[t[n+8]]+q[t[n+9]]+"-"+q[t[n+10]]+q[t[n+11]]+q[t[n+12]]+q[t[n+13]]+q[t[n+14]]+q[t[n+15]]).toLowerCase()}const zr=new Uint8Array(16);function jr(){return crypto.getRandomValues(zr)}function Gr(t,n,o){return crypto.randomUUID?crypto.randomUUID():Yr(t)}function Yr(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,qr(a)}const Hr=["aria-labelledby"],Wr={class:"form-section-wrapper"},Jr={key:1,class:"form-section-description"},Qr={key:2,class:"form-section-footer"},Xr={class:"form-section-content"},Zr=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=Gr();return(a,r)=>(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",Wr,[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",Jr,[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",Qr,[e.renderSlot(a.$slots,"footer",{},void 0,!0)])):e.createCommentVNode("",!0)],2)),e.createElementVNode("div",Xr,[e.renderSlot(a.$slots,"default",{},void 0,!0)])])],10,Hr))}}),ei=d._export_sfc(Zr,[["__scopeId","data-v-ccd29028"]]),ti={class:"header"},ni={key:0,class:"step","data-testid":"form-block-step"},oi={class:"header-content"},ai={class:"header-title","data-testid":"header-title"},ri={key:0,class:"header-description","data-testid":"header-description"},ii={key:1,class:"header-extra","data-testid":"header-extra"},li={class:"content","data-testid":"form-block-content"},si=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",ti,[t.step!==void 0||n.step?(e.openBlock(),e.createElementBlock("div",ni,[e.renderSlot(o.$slots,"step",{},()=>[e.createTextVNode(e.toDisplayString(t.step),1)],!0)])):e.createCommentVNode("",!0),e.createElementVNode("div",oi,[e.createElementVNode("h2",ai,[e.renderSlot(o.$slots,"title",{},()=>[e.createTextVNode(e.toDisplayString(t.title),1)],!0)]),t.description||n.description?(e.openBlock(),e.createElementBlock("div",ri,[e.renderSlot(o.$slots,"description",{},()=>[e.createTextVNode(e.toDisplayString(t.description),1)],!0)])):e.createCommentVNode("",!0)]),n.extra?(e.openBlock(),e.createElementBlock("div",ii,[e.renderSlot(o.$slots,"extra",{},void 0,!0)])):e.createCommentVNode("",!0)]),e.createElementVNode("div",li,[e.renderSlot(o.$slots,"default",{},void 0,!0)])],2))}}),ci=d._export_sfc(si,[["__scopeId","data-v-7dd2f21d"]]),di={class:"kong-ui-public-entity-link","data-testid":"entity-link-parent"},ui={key:0,class:"deleted-entity"},fi={key:1},pi=["onClick"],mi=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:r}}=d.composables.useI18n(),i=r("global.actions.copyId"),l=e.ref(i),s=e.computed(()=>n.entityLinkData.deleted??!1),u=e.computed(()=>n.entityLinkData.id?.toString().includes(":")?n.entityLinkData.id.toString().split(":")[1]:n.entityLinkData.id),f=e.computed(()=>`${u.value?.toString().slice(0,5)} (deleted)`),c=async y=>{await y(u.value||"")&&(l.value=r("global.actions.copyToClipboard"),setTimeout(()=>{l.value=i},1800))};return(y,v)=>{const b=e.resolveComponent("KTooltip"),$=e.resolveComponent("KExternalLink"),p=e.resolveComponent("KClipboardProvider");return e.openBlock(),e.createElementBlock("div",di,[s.value?(e.openBlock(),e.createElementBlock("div",ui,e.toDisplayString(f.value),1)):u.value?u.value?(e.openBlock(),e.createBlock($,{key:2,class:"entity-link","hide-icon":!t.newWindow,href:t.externalLink,target:t.newWindow?"_blank":"_self"},{default:e.withCtx(()=>[e.createVNode(b,{target:"body",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,["text"])]),_:1},8,["hide-icon","href","target"])):e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",fi,e.toDisplayString(" – "))),u.value&&t.allowCopy?(e.openBlock(),e.createBlock(b,{key:l.value,class:"copy-uuid-tooltip","max-width":"160",placement:"bottom-end",text:l.value},{default:e.withCtx(()=>[e.createVNode(p,null,{default:e.withCtx(({copyToClipboard:m})=>[e.createElementVNode("span",{class:"entity-link-copy-id",onClick:e.withModifiers(N=>c(m),["stop"])},[e.createVNode(e.unref(U.CopyIcon),{class:"copy-icon",color:`var(--kui-color-text-primary, ${e.unref(Qt)})`,"data-testid":"copy-id",size:`var(--kui-icon-size-30, ${e.unref(Xe)})`},null,8,["color","size"])],8,pi)]),_:1})]),_:1},8,["text"])):e.createCommentVNode("",!0)])}}}),gi=d._export_sfc(mi,[["__scopeId","data-v-f4f93a20"]]),yi={class:"kong-ui-public-entity-empty-state"},vi={class:"entity-empty-state-content"},ki={key:0,class:"empty-state-image"},hi={key:1,class:"entity-empty-state-title"},Ci={key:2,class:"entity-empty-state-description"},bi={key:3,class:"entity-empty-state-pricing"},Si={key:0,class:"entity-empty-state-message"},Bi={key:1,class:"entity-empty-state-action"},Ti={key:2,class:"entity-empty-state-card-container"},Ei={key:0,class:"feature-icon"},Ni={class:"card-header"},_i=["title"],$i={key:3,class:"entity-empty-state-bottom-container"},Ii=e.defineComponent({__name:"EntityEmptyState",props:{appearance:{type:String,default:()=>"primary",validator:t=>ke.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),r=e.computed(()=>a.value&&!!n.actionButtonText),i=e.computed(()=>ke.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",yi,[e.createElementVNode("div",vi,[l.$slots.image?(e.openBlock(),e.createElementBlock("div",ki,[e.renderSlot(l.$slots,"image",{},void 0,!0)])):e.createCommentVNode("",!0),t.title||l.$slots.title?(e.openBlock(),e.createElementBlock("div",hi,[e.createElementVNode("h1",{class:e.normalizeClass(i.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",Ci,[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",bi,[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",Si,[e.renderSlot(l.$slots,"message",{},void 0,!0)])):e.createCommentVNode("",!0),r.value||t.learnMore||l.$slots.actions?(e.openBlock(),e.createElementBlock("div",Bi,[e.renderSlot(l.$slots,"actions",{},()=>[r.value?(e.openBlock(),e.createBlock(e.unref(Z.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(U.AddIcon)),e.createTextVNode(" "+e.toDisplayString(t.actionButtonText),1)]),_:1},8,["size"])):e.createCommentVNode("",!0),t.learnMore?(e.openBlock(),e.createBlock(e.unref(Z.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(U.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",Ti,[(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",Ei,[e.renderSlot(l.$slots,`feature-${c}-icon`,{},void 0,!0)])):e.createCommentVNode("",!0),e.createElementVNode("div",Ni,e.toDisplayString(f.title),1)]),default:e.withCtx(()=>[e.createElementVNode("div",{title:f.description},e.toDisplayString(f.description),9,_i)]),_:2},1024))),128))])):e.createCommentVNode("",!0),l.$slots.bottom?(e.openBlock(),e.createElementBlock("div",$i,[e.renderSlot(l.$slots,"bottom",{},void 0,!0)])):e.createCommentVNode("",!0)])}}}),Oi=d._export_sfc(Ii,[["__scopeId","data-v-0b2e9081"]]),xi={key:0,class:"sensitive-input-error-message","data-testid":"sensitive-input-error-message"},Ai={class:"sensitive-input-textarea-actions"},wi={key:2,class:"sensitive-input-hint","data-testid":"sensitive-input-hint"},Li={class:"sensitive-input-hint-text"},Fi="••••••••••••••",Vi=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:R.value}));const a=o,{i18n:{t:r}}=d.composables.useI18n(),i=e.ref(t.mode==="edit"?"masked":"editing"),l=e.ref(!1),s=e.ref(!1),u=e.computed(()=>i.value==="masked"),f=Fi,c=e.computed(()=>t.placeholder??r("sensitiveInput.placeholder")),y=e.computed(()=>t.labels?.rotateLabel??r("sensitiveInput.rotateKey")),v=e.computed(()=>t.labels?.generateLabel??r("sensitiveInput.generateKey")),b=e.computed(()=>t.labels?.hintLabel??r("sensitiveInput.oneTimeHint")),$=e.computed(()=>u.value||l.value?"text":"password");e.watch(()=>t.showOneTimeHint,S=>{S&&(l.value=!0)},{immediate:!0});const p=S=>{a("update:modelValue",S)},m=(S=!0)=>{i.value="editing",l.value=!1,S&&a("rotate")};n({enterEditing:()=>m(!1)});const N=()=>{l.value=!l.value},g=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,_;const R=e.ref(`calc(${De} + ${oe} + ${Ke})`),T=()=>{const S=k.value?.querySelector(".after-content-wrapper");S&&(R.value=`calc(${De} + ${S.offsetWidth}px + ${Ke})`)};return e.onMounted(()=>{const S=k.value?.querySelector(".after-content-wrapper");I=new ResizeObserver(()=>{_=window.requestAnimationFrame(()=>T())}),S&&I.observe(S),T()}),e.onBeforeUnmount(()=>{I?.disconnect(),_!==void 0&&window.cancelAnimationFrame(_)}),(S,O)=>{const h=e.resolveComponent("KButton"),B=e.resolveComponent("KTextArea"),E=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(B,{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":p},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",xi,e.toDisplayString(t.errorMessage),1)):e.createCommentVNode("",!0),e.createElementVNode("div",Ai,[u.value?(e.openBlock(),e.createBlock(h,{key:0,appearance:"tertiary",class:"sensitive-input-action","data-testid":"sensitive-input-rotate",size:"small",onClick:O[1]||(O[1]=K=>m(!0))},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(y.value),1)]),_:1})):t.generator?(e.openBlock(),e.createBlock(h,{key:1,appearance:"tertiary",class:"sensitive-input-action","data-testid":"sensitive-input-generate",disabled:t.disabled||s.value,size:"small",onClick:g},{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(Kt.SecretInput):e.unref(Z.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":p}),e.createSlots({after:e.withCtx(()=>[u.value?(e.openBlock(),e.createBlock(h,{key:0,appearance:"tertiary",class:"sensitive-input-action","data-testid":"sensitive-input-rotate",size:"small",onClick:O[0]||(O[0]=K=>m(!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(h,{key:0,appearance:"tertiary",class:"sensitive-input-action","data-testid":"sensitive-input-generate",disabled:t.disabled||s.value,size:"small",onClick:g},{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(U.VisibilityOffIcon):e.unref(U.VisibilityIcon)),{"aria-label":l.value?e.unref(r)("sensitiveInput.hideKey"):e.unref(r)("sensitiveInput.showKey"),class:"sensitive-input-toggle",color:"currentColor","data-testid":"sensitive-input-toggle",role:"button",size:`var(--kui-icon-size-40, ${e.unref(oe)})`,tabindex:"0",onClick:N,onKeydown:e.withKeys(e.withModifiers(N,["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",wi,[e.createVNode(e.unref(U.InfoIcon),{class:"sensitive-input-hint-icon",color:`var(--kui-color-text-info, ${e.unref(Yt)})`,size:`var(--kui-icon-size-40, ${e.unref(oe)})`},null,8,["color","size"]),e.createElementVNode("span",Li,e.toDisplayString(b.value),1),e.createVNode(E,null,{default:e.withCtx(({copyToClipboard:K})=>[e.createVNode(h,{appearance:"none",class:"sensitive-input-action sensitive-input-copy","data-testid":"sensitive-input-copy",icon:!0,onClick:j=>K(t.modelValue)},{default:e.withCtx(()=>[e.createVNode(e.unref(U.CopyIcon),{color:"currentColor",size:`var(--kui-icon-size-40, ${e.unref(oe)})`},null,8,["size"]),e.createTextVNode(" "+e.toDisplayString(e.unref(r)("sensitiveInput.copy")),1)]),_:1},8,["onClick"])]),_:1})])):e.createCommentVNode("",!0),e.renderSlot(S.$slots,"alert",{},void 0,!0)],512)}}}),Ri=d._export_sfc(Vi,[["__scopeId","data-v-f64f729c"]]),Ki={key:1},Di=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,r)=>o.value?.length>0?(e.openBlock(),e.createBlock(e.unref(Z.KTruncate),{key:0},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(o.value,i=>(e.openBlock(),e.createBlock(e.unref(Z.KBadge),{key:i,"max-width":t.tagMaxWidth,onClick:r[0]||(r[0]=e.withModifiers(()=>{},["stop"]))},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(i),1)]),_:2},1032,["max-width"]))),128))]),_:1})):(e.openBlock(),e.createElementBlock("span",Ki,"-"))}}),{useAxios:Pi,useDeleteUrlBuilder:Mi,useBaseEntityDeckOptions:Ui,useBaseFormDeckOptions:qi,useErrors:zi,useExternalLinkCreator:ji,useFetchUrlBuilder:Gi,useFetcher:Yi,useFetcherCacheKey:Hi,useDebouncedFilter:Wi,useStringHelpers:Ji,useHelpers:Qi,useGatewayFeatureSupported:Xi,useTruncationDetector:Zi,useValidators:el,useSchema:tl,useSchemaProvider:nl,useTableState:ol,useManagedByEnabled:al,useManagedByColumn:rl}=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.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.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=ke;exports.BASE_FORM_CONFIG_TABS=Dt;exports.ConfigCardDisplay=Bt;exports.ConfigCardItem=Ne;exports.DeckCodeBlock=Fe;exports.EntityBaseConfigCard=fr;exports.EntityBaseForm=yr;exports.EntityBaseFormType=Qe;exports.EntityBaseTable=Tr;exports.EntityDeleteModal=Ir;exports.EntityEmptyState=Oi;exports.EntityFilter=Pr;exports.EntityFormBlock=ci;exports.EntityFormSection=ei;exports.EntityLink=gi;exports.EntityToggleModal=Mr;exports.EntityTypes=Je;exports.GeneratePatModal=St;exports.InternalLinkItem=et;exports.JsonCodeBlock=_e;exports.OnboardingCard=un;exports.PermissionsWrapper=Ur;exports.SensitiveInput=Ri;exports.TableTags=Di;exports.TerraformCodeBlock=Le;exports.YamlCodeBlock=we;exports.highlightCodeBlock=ee;exports.useAxios=Pi;exports.useBaseEntityDeckOptions=Ui;exports.useBaseFormDeckOptions=qi;exports.useDebouncedFilter=Wi;exports.useDeleteUrlBuilder=Mi;exports.useErrors=zi;exports.useExternalLinkCreator=ji;exports.useFetchUrlBuilder=Gi;exports.useFetcher=Yi;exports.useFetcherCacheKey=Hi;exports.useGatewayFeatureSupported=Xi;exports.useHelpers=Qi;exports.useManagedByColumn=rl;exports.useManagedByEnabled=al;exports.useSchema=tl;exports.useSchemaProvider=nl;exports.useStringHelpers=Ji;exports.useTableState=ol;exports.useTruncationDetector=Zi;exports.useValidators=el;
|
|
@@ -4798,6 +4798,7 @@ const nl = ["aria-labelledby"], al = { class: "form-section-wrapper" }, il = {
|
|
|
4798
4798
|
}, {
|
|
4799
4799
|
default: p(() => [
|
|
4800
4800
|
_(E, {
|
|
4801
|
+
target: "body",
|
|
4801
4802
|
text: u(a) && e.entityLinkData.label || ""
|
|
4802
4803
|
}, {
|
|
4803
4804
|
default: p(() => [
|
|
@@ -4842,7 +4843,7 @@ const nl = ["aria-labelledby"], al = { class: "form-section-wrapper" }, il = {
|
|
|
4842
4843
|
]);
|
|
4843
4844
|
};
|
|
4844
4845
|
}
|
|
4845
|
-
}), ys = /* @__PURE__ */ re(kl, [["__scopeId", "data-v-
|
|
4846
|
+
}), ys = /* @__PURE__ */ re(kl, [["__scopeId", "data-v-f4f93a20"]]), Cl = { class: "kong-ui-public-entity-empty-state" }, $l = { class: "entity-empty-state-content" }, Tl = {
|
|
4846
4847
|
key: 0,
|
|
4847
4848
|
class: "empty-state-image"
|
|
4848
4849
|
}, Sl = {
|
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-5baf64ca]{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-5baf64ca]{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-b5a200cb]{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-b5a200cb]{border-bottom:none}.config-card-details-row.json-item[data-v-b5a200cb]{display:block}.config-card-details-row .config-card-details-label[data-v-b5a200cb]{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-b5a200cb]{width:100%}.config-card-details-row .config-card-details-label.slim-label[data-v-b5a200cb]{width:50%}.config-card-details-row .config-card-details-label label[data-v-b5a200cb]{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-b5a200cb]{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-b5a200cb]{min-width:0}.config-card-details-row .config-card-details-value[data-v-b5a200cb]{box-sizing:border-box;width:75%}.config-card-details-row .config-card-details-value.json-item-value[data-v-b5a200cb]{width:100%}.config-card-details-row .config-card-details-value.slim-value[data-v-b5a200cb]{width:50%}.config-card-details-row .config-card-details-value .truncated[data-v-b5a200cb]{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-b5a200cb]{overflow-wrap:anywhere}.config-card-details-row .config-card-details-value .copy-uuid-array[data-v-b5a200cb] .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-b5a200cb]{display:flex;flex-wrap:wrap;row-gap:10px}.config-card-details-row .config-badge[data-v-b5a200cb]{margin-right:4px;margin-right:var(--kui-space-20, 4px)}.config-card-details-row[data-v-b5a200cb] .k-label{margin-bottom:0}.config-card-details-row[data-v-b5a200cb] .k-label .kong-icon-infoFilled{display:flex}.config-card-details-row[data-v-b5a200cb] .config-card-details-row{width:auto}.json-content.k-code-block{border-top-left-radius:0;border-top-left-radius:var(--kui-border-radius-0, 0px);border-top-right-radius:0;border-top-right-radius:var(--kui-border-radius-0, 0px)}.json-endpoint{align-items:baseline;background-color:#fff;background-color:var(--kui-color-background, #ffffff);border-bottom:1px solid rgba(255,255,255,.2);border-bottom:var(--kui-border-width-10, 1px) solid var(--kui-color-border-inverse, rgba(255, 255, 255, .2));border-top-left-radius:8px;border-top-left-radius:var(--kui-border-radius-40, 8px);border-top-right-radius:8px;border-top-right-radius:var(--kui-border-radius-40, 8px);display:flex;gap:6px;gap:var(--kui-space-30, 6px);padding:8px 0;padding:var(--kui-space-40, 8px) var(--kui-space-0, 0px)}.json-endpoint .k-code-block{flex:auto;z-index:2}.json-endpoint .k-code-block .code-block-content{padding-bottom:0;padding-bottom:var(--kui-space-0, 0px);padding-top:0;padding-top:var(--kui-space-0, 0px)}.json-endpoint .k-code-block .code-block-secondary-actions{margin-top:0!important}.json-endpoint code{direction:rtl;max-width:var(--v06a68197);overflow:hidden!important;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-40eb9709]{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-40eb9709]{align-items:center;display:flex}.kong-ui-entity-base-config-card .config-card-actions .config-format-select-label[data-v-40eb9709]{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-40eb9709]{align-items:center}.kong-ui-entity-base-config-card .config-card-actions .sensitive-fields-checkbox[data-v-40eb9709] .checkbox-label{width:max-content}.kong-ui-entity-base-config-card .config-card-prop-section-title[data-v-40eb9709]{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-40eb9709] .config-card-details-row:last-of-type{border-bottom:none}.kong-ui-entity-base-config-card .book-icon[data-v-40eb9709]{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-6668aea9]{align-items:center;display:flex}.kong-ui-public-entity-link .deleted-entity[data-v-6668aea9]{font-style:italic}.kong-ui-public-entity-link .entity-link[data-v-6668aea9]{display:flex;flex:1}.kong-ui-public-entity-link .entity-link[data-v-6668aea9] .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-6668aea9]{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-6668aea9]{align-items:center;cursor:pointer;display:flex}.kong-ui-public-entity-link .copy-uuid-tooltip .entity-link-copy-id[data-v-6668aea9]{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-5baf64ca]{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-5baf64ca]{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-b5a200cb]{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-b5a200cb]{border-bottom:none}.config-card-details-row.json-item[data-v-b5a200cb]{display:block}.config-card-details-row .config-card-details-label[data-v-b5a200cb]{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-b5a200cb]{width:100%}.config-card-details-row .config-card-details-label.slim-label[data-v-b5a200cb]{width:50%}.config-card-details-row .config-card-details-label label[data-v-b5a200cb]{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-b5a200cb]{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-b5a200cb]{min-width:0}.config-card-details-row .config-card-details-value[data-v-b5a200cb]{box-sizing:border-box;width:75%}.config-card-details-row .config-card-details-value.json-item-value[data-v-b5a200cb]{width:100%}.config-card-details-row .config-card-details-value.slim-value[data-v-b5a200cb]{width:50%}.config-card-details-row .config-card-details-value .truncated[data-v-b5a200cb]{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-b5a200cb]{overflow-wrap:anywhere}.config-card-details-row .config-card-details-value .copy-uuid-array[data-v-b5a200cb] .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-b5a200cb]{display:flex;flex-wrap:wrap;row-gap:10px}.config-card-details-row .config-badge[data-v-b5a200cb]{margin-right:4px;margin-right:var(--kui-space-20, 4px)}.config-card-details-row[data-v-b5a200cb] .k-label{margin-bottom:0}.config-card-details-row[data-v-b5a200cb] .k-label .kong-icon-infoFilled{display:flex}.config-card-details-row[data-v-b5a200cb] .config-card-details-row{width:auto}.json-content.k-code-block{border-top-left-radius:0;border-top-left-radius:var(--kui-border-radius-0, 0px);border-top-right-radius:0;border-top-right-radius:var(--kui-border-radius-0, 0px)}.json-endpoint{align-items:baseline;background-color:#fff;background-color:var(--kui-color-background, #ffffff);border-bottom:1px solid rgba(255,255,255,.2);border-bottom:var(--kui-border-width-10, 1px) solid var(--kui-color-border-inverse, rgba(255, 255, 255, .2));border-top-left-radius:8px;border-top-left-radius:var(--kui-border-radius-40, 8px);border-top-right-radius:8px;border-top-right-radius:var(--kui-border-radius-40, 8px);display:flex;gap:6px;gap:var(--kui-space-30, 6px);padding:8px 0;padding:var(--kui-space-40, 8px) var(--kui-space-0, 0px)}.json-endpoint .k-code-block{flex:auto;z-index:2}.json-endpoint .k-code-block .code-block-content{padding-bottom:0;padding-bottom:var(--kui-space-0, 0px);padding-top:0;padding-top:var(--kui-space-0, 0px)}.json-endpoint .k-code-block .code-block-secondary-actions{margin-top:0!important}.json-endpoint code{direction:rtl;max-width:var(--v06a68197);overflow:hidden!important;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-40eb9709]{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-40eb9709]{align-items:center;display:flex}.kong-ui-entity-base-config-card .config-card-actions .config-format-select-label[data-v-40eb9709]{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-40eb9709]{align-items:center}.kong-ui-entity-base-config-card .config-card-actions .sensitive-fields-checkbox[data-v-40eb9709] .checkbox-label{width:max-content}.kong-ui-entity-base-config-card .config-card-prop-section-title[data-v-40eb9709]{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-40eb9709] .config-card-details-row:last-of-type{border-bottom:none}.kong-ui-entity-base-config-card .book-icon[data-v-40eb9709]{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-f4f93a20]{align-items:center;display:flex}.kong-ui-public-entity-link .deleted-entity[data-v-f4f93a20]{font-style:italic}.kong-ui-public-entity-link .entity-link[data-v-f4f93a20]{display:flex;flex:1}.kong-ui-public-entity-link .entity-link[data-v-f4f93a20] .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-f4f93a20]{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-f4f93a20]{align-items:center;cursor:pointer;display:flex}.kong-ui-public-entity-link .copy-uuid-tooltip .entity-link-copy-id[data-v-f4f93a20]{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 +1 @@
|
|
|
1
|
-
{"version":3,"file":"EntityLink.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/entity-link/EntityLink.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"EntityLink.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/entity-link/EntityLink.vue"],"names":[],"mappings":"AA2KA,OAAO,KAAK,EAAE,QAAQ,EAAO,MAAM,KAAK,CAAA;AACxC,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,aAAa,CAAA;AAuOjD,QAAA,MAAM,YAAY;;cAGE,QAAQ,CAAC,cAAc,CAAC;;;;;;;;;;;;;;;;;;;;cAAxB,QAAQ,CAAC,cAAc,CAAC;;;;;;;;;;;;;;;;;;;;;;4EAmB1C,CAAC;wBACkB,OAAO,YAAY;AAAxC,wBAAyC"}
|