import{_ as a}from"./main-tangy-colts-beg.js";globalThis.jotaiAtomCache=globalThis.jotaiAtomCache||{cache:new Map,get(e,n){return this.cache.has(e)?this.cache.get(e):(this.cache.set(e,n),n)}};const s=e=>({addConnectionHelpingText:a('You can find your API key in <a target="_blank" class="text-blue-600 underline" rel="noopener noreferrer nofollow" href="https://app.suitedash.com/integrations/publicApi">SuiteDash Api Settings</a>'),componentName:e.componentName.connection,connectionsTypes:[{encryptKeys:["key","value"],label:a("SuiteDash API"),showKey:!0,type:"api_key",verifyConnection:{headers:{"Content-Type":"application/json","X-Public-ID":"","X-Secret-Key":""},method:"GET",responseKeyMatch:["uid"],url:"https://app.suitedash.com/secure-api/company/meta"}}],fieldType:"config",id:"connection-id",label:a("Select Connection"),onConnectionAddChange:"CONNECTION_ADD_CHANGE",onConnectionChange:"SET_CONNECTION",render:!0,value:void 0}),r=({$:e,e:n})=>{e.setThisComponent(t=>{e.util.isConnectionComponent(t)&&t.connectionsTypes.forEach(o=>{var i;o.type==="api_key"&&((i=o.verifyConnection)!=null&&i.headers)&&n.key&&n.value&&(o.verifyConnection.headers["X-Public-ID"]=n.key,o.verifyConnection.headers["X-Secret-Key"]=n.value)})})},h=function(e,n,t=o=>o.id){if(n!==void 0)return e.filter(o=>!n.some(i=>t(i)===t(o)))};export{h as a,s as c,r as h};
