import{_ as t}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:t('You can find your API key in <a target="_blank" class="text-blue-600 underline" rel="noopener noreferrer nofollow" href="https://www.klaviyo.com/settings/account/api-keys">Klaviyo Api Settings</a>'),componentName:e.componentName.connection,connectionsTypes:[{encryptKeys:[],label:t("Klaviyo API"),showKey:!1,type:"api_key",verifyConnection:{headers:{Authorization:"","Content-Type":"application/json",revision:"2023-09-15"},method:"GET",responseKeyMatch:["links.self"],url:"https://a.klaviyo.com/api/profiles/"}}],fieldType:"config",id:"connection-id",label:t("Select Connection"),onConnectionAddChange:"CONNECTION_ADD_CHANGE",onConnectionChange:"SET_CONNECTION",render:!0,value:void 0}),l=({$:e,e:n})=>{e.setThisComponent(i=>{e.util.isConnectionComponent(i)&&i.connectionsTypes.forEach(o=>{var a;o.type==="api_key"&&((a=o.verifyConnection)!=null&&a.headers)&&n.value&&(o.verifyConnection.headers.Authorization="Klaviyo-API-Key "+n.value)})})};export{s as c,l as h};
