{"version":3,"file":"SenderNewsletterForm.CeHG_fUt.mjs","names":["React.useState","React.useRef","__esmMin","window","init_ssg_sandbox_shims","init_npm_react_18_3_1","_e","de","p","c","init_jsx_runtime","ce","RenderTarget","init_framer_D6uXRwWs","SenderNewsletterForm","isCanvas","ready","setReady","hostRef","alive","raf","w","formId","tryRender","status","id","onLoaded","fn","args","event","callback","scriptId","script","props","init_SenderNewsletterForm"],"sources":["https:/framerusercontent.com/modules/1XTJxRTFfww8KSdOM3SS/VolaO1dVumpa4MsYQ4We/SenderNewsletterForm.js"],"sourcesContent":["import{jsx as _jsx,jsxs as _jsxs}from\"react/jsx-runtime\";import*as React from\"react\";import{RenderTarget}from\"framer\";/** @framerSupportedLayoutWidth any *//** @framerSupportedLayoutHeight any */export default function SenderNewsletterForm(props){const isCanvas=RenderTarget.current()===RenderTarget.canvas;const[ready,setReady]=React.useState(false);const hostRef=React.useRef(null);React.useEffect(()=>{if(isCanvas)return;let alive=true;let raf=0;const w=window;const formId=\"aKrJMr\";const accountId=\"52dc190ae94277\";const source=\"https://cdn.sender.net/accounts_resources/universal.js?explicit=true\";function tryRender(){if(!alive||!hostRef.current||!w.senderFormsLoaded||!w.senderForms?.render)return;const status=w.senderForms.getStatus?.(formId)?.[formId];if(status===\"enabled\"&&hostRef.current.querySelector(\"form\")){setReady(true);return;}if(status===\"rendering\")return;if(status===\"enabled\"||status===\"disabled\"){w.senderForms.destroy?.(formId);}w.senderForms.render(formId,{onRender(id){if(alive&&id===formId)setReady(true);}});}function onLoaded(){if(!alive)return;raf=requestAnimationFrame(tryRender);}window.addEventListener(\"onSenderFormsLoaded\",onLoaded);if(typeof w.sender!==\"function\"){const fn=(...args)=>{(fn.q=fn.q||[]).push(args);};fn.l=Date.now();fn.on=(event,callback)=>{fn.listeners=fn.listeners||{};(fn.listeners[event]=fn.listeners[event]||[]).push(callback);};w.Sender=\"sender\";w.sender=fn;}const scriptId=\"md-sender-universal-explicit\";if(!document.getElementById(scriptId)){const script=document.createElement(\"script\");script.id=scriptId;script.async=true;script.src=source;document.head.appendChild(script);}if(!w.__mdSenderAccountInitialized){w.sender(accountId);w.__mdSenderAccountInitialized=true;}raf=requestAnimationFrame(tryRender);return()=>{alive=false;cancelAnimationFrame(raf);window.removeEventListener(\"onSenderFormsLoaded\",onLoaded);if(w.senderFormsLoaded&&w.senderForms?.getStatus?.(formId)?.[formId]!==\"unavailable\"){w.senderForms.destroy?.(formId);}};},[isCanvas]);return /*#__PURE__*/_jsxs(\"div\",{style:{width:\"100%\",minHeight:120,position:\"relative\",...props.style},children:[!isCanvas&&/*#__PURE__*/_jsx(\"div\",{ref:hostRef,style:{width:\"100%\",textAlign:\"left\"},className:\"sender-form-field\",\"data-sender-form-id\":\"aKrJMr\"}),(isCanvas||!ready)&&/*#__PURE__*/_jsxs(\"div\",{style:{position:isCanvas?\"relative\":\"absolute\",inset:isCanvas?undefined:0,display:\"flex\",flexDirection:\"column\",justifyContent:\"center\",gap:8,padding:\"6px 0\",background:\"#fff\",fontFamily:\"Inter, sans-serif\"},children:[isCanvas&&/*#__PURE__*/_jsx(\"div\",{style:{color:\"#888\",fontSize:11,textAlign:\"center\"},children:\"Sender newsletter — live in Preview\"}),/*#__PURE__*/_jsxs(\"div\",{style:{display:\"flex\",width:\"100%\",gap:6},children:[/*#__PURE__*/_jsx(\"div\",{style:{flex:1,border:\"1px solid #ddd\",borderRadius:5,padding:12,fontSize:12,color:\"#999\"},children:\"Your email address\"}),/*#__PURE__*/_jsx(\"div\",{style:{background:\"#181818\",color:\"#fff\",borderRadius:5,padding:\"12px 18px\",fontSize:12},children:\"Subscribe\"})]}),!isCanvas&&/*#__PURE__*/_jsx(\"div\",{style:{color:\"#888\",textAlign:\"center\",fontSize:11},children:\"Loading signup form…\"})]})]});}\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"SenderNewsletterForm\",\"slots\":[],\"annotations\":{\"framerSupportedLayoutWidth\":\"\",\"framerSupportedLayoutHe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