import{_ as t}from"./main-tangy-colts-beg.js";globalThis.jotaiAtomCache=globalThis.jotaiAtomCache||{cache:new Map,get(n,o){return this.cache.has(n)?this.cache.get(n):(this.cache.set(n,o),o)}};const s=n=>({addConnectionHelpingText:t('You can find your Twilio Account SID and Auth Token from <a target="_blank" class="text-blue-600 underline" rel="noopener noreferrer nofollow" href="https://www.twilio.com/console">Twilio Console</a>.'),componentName:n.componentName.connection,connectionsTypes:[{encryptKeys:["accountSid","authToken"],label:t("Twilio Credentials"),type:"basic_auth",verifyConnection:{headers:{Authorization:""},method:"GET",responseKeyMatch:["accounts[0].sid"],url:"https://api.twilio.com/2010-04-01/Accounts.json"}}],fieldType:"config",id:"connection-id",label:t("Select Connection"),onConnectionAddChange:"CONNECTION_ADD_CHANGE",onConnectionChange:"SET_CONNECTION",render:!0,value:void 0}),r=({$:n,e:o})=>{n.setThisComponent(i=>{n.util.isConnectionComponent(i)&&i.connectionsTypes.forEach(e=>{var c;e.type==="basic_auth"&&((c=e.verifyConnection)!=null&&c.headers)&&(e.verifyConnection.headers.Authorization=`Basic ${btoa(`${o.username}:${o.password}`)}`)})})};export{s as c,r as h};
