{"version":3,"file":"Download_Form_Comp.ClVkqlRj.mjs","names":["React.useId","React.useState","React.useRef","startTransition","React.useMemo","__esmMin","pe","init_npm_react_18_3_1","init_ssg_sandbox_shims","window","te","ie","init_npm_react_dom_18_3_1","_e","Ha","p","c","init_jsx_runtime","ce","de","motion","useMotionValue","useReducedMotion","animate","init_framer_motion_DhsWWWsN","useTransform","addPropertyControls","init_framer_BEr93sCn","useIsStaticRenderer","ControlType","loadRecaptcha","w","recaptchaPromise","el","resolve","err","reject","ensureFonts","FONT_LINK_ID","link","FONT_HREF","FONT_FACES","f","waitForFonts","prefetchFile","blobCache","url","blobFailed","existing","blobPending","res","blob","saveBlob","objectUrl","a","name","openDirect","deliverFile","ready","resolveFileName","clean","last","dot","ext","custom","ensureKlentySdk","trimmed","code","holder","scripts","i","old","j","sendToKlenty","prospect","payload","formName","lastKlentyPayload","tries","attempt","kl","result","validateField","v","raw","key","EMAIL_RE","PHONE_RE","DownloadForm","props","uid","frameName","values","setValues","errors","setErrors","sending","setSending","fieldRefs","countdown","setCountdown","tickRef","captchaError","setCaptchaError","captchaRef","captchaIdRef","cancelled","enterprise","RECAPTCHA_SITE_KEY","isCaptchaSolved","id","setValue","prev","value","fullTrimmed","cut","nameFirst","nameLast","handleSubmit","nextErrors","firstBad","F_ORDER","bad","captchaOk","klenty","klTag","DEFAULT_KLENTY_FORM","delay","downloadDelay","startDownload","fileUrl","fileName","onDone","CLOSE_DELAY_MS","left","fieldClass","errorMsg","F_ERRORS","actionUrl","DOWNLOAD_FORM_ACTION","noticeText","submitLabel","DownloadModal","isMobile","setIsMobile","isCloseHovered","setIsCloseHovered","fontsReady","setFontsReady","isOpen","done","finish","timer","query","apply","handleKeyDown","event","onClose","body","previousOverflow","previousPaddingRight","scrollbarWidth","currentPadding","bgSrc","bgImage","FORM_BG_DEFAULT_URL","showBgImage","bgMode","panelBackground","bgColor","safeBgHeight","bgHeight","safeLeftWidth","leftWidth","modalWidth","modalWidthPx","modalHeight","modalHeightPx","MODAL_Z_INDEX","backdropOpacity","accentColor","FORM_CSS","heading","bgFit","BG_POSITION_MAP","bgPosition","eyebrow","description","GatedDownloadButton","MODAL_DEFAULTS","DEFAULT_MODAL_WIDTH","DEFAULT_MODAL_HEIGHT","DEFAULT_DOWNLOAD_DELAY","DEFAULT_NOTICE_TEXT","klentyConfig","DEFAULT_KLENTY_TAG","resolvedFileUrl","file","isStaticRenderer","reducedMotion","isModalOpen","setIsModalOpen","progress","mode","animRef","supportsHover","setSupportsHover","hovered","setHovered","focused","setFocused","img","klentyCode","safeDuration","duration","safeIconSize","iconSize","safeIconGap","iconGap","active","iconNode","iconType","contentBaseStyle","iconPosition","overlayClip","m","rest","baseClip","cover","layerOpacity","layerVisibility","current","easing","openModal","trigger","radius","backgroundColor","borderWidth","borderColor","overlayColor","font","textColor","uppercase","showIcon","text","hoverTextColor","zohoActionUrl","init_Download_Form_Comp"],"sources":["https:/framerusercontent.com/modules/WgPaGV7IVxlidWV4apiq/p0Fxk0vTNk5vdqBYR3IJ/Download_Form_Comp.js"],"sourcesContent":["import{jsx as _jsx,jsxs as _jsxs}from\"react/jsx-runtime\";import*as React from\"react\";import{startTransition}from\"react\";import{addPropertyControls,ControlType,useIsStaticRenderer}from\"framer\";import{animate,motion,useMotionValue,useReducedMotion,useTransform}from\"framer-motion\";import{createPortal}from\"react-dom\";// User request: Create a separate \"GatedDownloadButton\" component (different function name from WipeOutlineButton) with the same wipe hover effect. Clicking it opens the \"Get instant access to your report.\" modal (screenshot content as default). The form posts to the Zoho DownloadForm using the exact Zoho field names (Name_First, Name_Last, Email, PhoneNumber_countrycode). On a valid submit the Zoho POST is sent, the file attached to THIS button is downloaded, and the modal is dismissed. Each button has its own file, uploaded in the editor (File control, with a File URL fallback and an optional download file name).\n// UPDATE: after a valid submit the Zoho POST goes out right away, a green notice with a live countdown replaces the button, and the file download starts (and the modal closes) after the delay (default 5s, editable).\n// UPDATE: the Download Report button stays visible but is disabled during the countdown, with the notice box (timer) shown above it.\n// UPDATE: on a valid submit the lead (First Name, Last Name, Full Name, Email, Phone + a per-button Tag) is also sent to Klenty via window.kl.onFormSubmit. Klenty section in the editor: On/Off, Tag, Form Name. (Contact-form event tracking from the original script is intentionally NOT included.)\n// FIX (Klenty): window.kl only exists when Klenty's website-tracking snippet is on the page. The Klenty section now has a \"Tracking Code\" box (paste the snippet from Klenty > Settings > Prospects > Website tracking) that the component loads itself when kl is missing; sending waits up to ~10s for the SDK, a failed send can be retried, and the browser console logs \"Klenty: ...\" so you can see what happened.\n// FEATURE ADDED: Google reCAPTCHA Enterprise checkbox (\"I'm not a robot\"), same site key / loader as WipeButton_Contact_Us. Submit (and therefore the Zoho post, Klenty send and download) is blocked until the box is ticked. The script is preloaded when the button mounts and the widget's space is reserved, so it causes no layout shift. Default modal height raised to 560 to fit it.\n// FIX (height): Modal Height is now a MINIMUM. The dialog grows to fit the form (name, email, phone, reCAPTCHA, button and the countdown notice) up to the viewport height, so the button is never cut off or hidden behind a scrollbar. Default raised to 600.\n// FIX (layout shift): fonts + background image are preloaded when the button mounts and the modal stays invisible until its fonts are ready; the scrollbar width is compensated when page scroll is locked, so nothing moves when the modal opens.\n// NOTE: the Full Name box is split into Name_First / Name_Last (first word / the rest, \"-\" if only one word) because the Zoho form has two name inputs. Matches WipeOutlineButton.\n// Default left-panel background image (the red swirl). Override per instance with the Left BG Image control.\nconst FORM_BG_DEFAULT_URL=\"https://framerusercontent.com/images/GfGkADagM4KEibNcIiRUWlfrR0.jpg\";// Zoho \"DownloadForm\" submit endpoint. Can be overridden per instance with the Zoho Submit URL control.\nconst DOWNLOAD_FORM_ACTION=\"https://forms.zohopublic.in/websitebusof1/form/DownloadForm/formperma/-VTdQmZpli96CmF476YXTjdqqyt5oZXLskRsXrwQi-8/htmlRecords/submit\";const MODAL_Z_INDEX=1999999999;const DEFAULT_MODAL_WIDTH=1e3;const DEFAULT_MODAL_HEIGHT=600;// Time the modal stays open after a valid submit so the browser can finish\n// sending the Zoho POST (the form lives inside the modal) before it unmounts.\nconst CLOSE_DELAY_MS=800;// Wait between a valid submit and the file download (seconds). Editable per button.\nconst DEFAULT_DOWNLOAD_DELAY=5;const DEFAULT_NOTICE_TEXT=\"Thank you! Your download will start in {s}s.\";// Klenty defaults. The Tag is set per button in the editor (Klenty section).\nconst DEFAULT_KLENTY_TAG=\"BU Download Button\";const DEFAULT_KLENTY_FORM=\"Download Form\";const EMAIL_RE=/^[\\w]([\\w\\-.+&'/]*)@([a-zA-Z0-9]([a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?\\.)+[a-zA-Z]{2,22}$/;const PHONE_RE=/^[+]{0,1}[()0-9-. ]+$/;// ---------------------------------------------------------------------------\n// Google reCAPTCHA Enterprise (checkbox). Same site key and loader as\n// WipeButton_Contact_Us. Site key only; the secret key must never be placed in\n// component code. Submit is blocked until the box is ticked.\n// ---------------------------------------------------------------------------\nconst RECAPTCHA_SITE_KEY=\"6Le90vIrAAAAAJYRMd6U5ltBdms-ReZzj4sHV72q\";let recaptchaPromise=null;function loadRecaptcha(){if(typeof window===\"undefined\"||typeof document===\"undefined\")return Promise.reject(new Error(\"no window\"));const w=window;if(w.grecaptcha&&w.grecaptcha.enterprise&&typeof w.grecaptcha.enterprise.render===\"function\")return Promise.resolve(w.grecaptcha.enterprise);if(recaptchaPromise)return recaptchaPromise;recaptchaPromise=new Promise((resolve,reject)=>{const el=document.createElement(\"script\");el.src=\"https://www.google.com/recaptcha/enterprise.js?render=explicit\";el.async=true;el.defer=true;el.onload=()=>{try{w.grecaptcha.enterprise.ready(()=>resolve(w.grecaptcha.enterprise));}catch(err){recaptchaPromise=null;reject(err);}};el.onerror=()=>{recaptchaPromise=null;reject(new Error(\"reCAPTCHA failed to load\"));};document.head.appendChild(el);});return recaptchaPromise;}// ---------------------------------------------------------------------------\n// Fonts. Loaded once when the button mounts (not when the modal opens), so the\n// modal text never reflows from a late font swap.\n// ---------------------------------------------------------------------------\nconst FONT_LINK_ID=\"gdb-modal-fonts\";const FONT_HREF=\"https://fonts.googleapis.com/css2?family=Inter:wght@400;500&family=IBM+Plex+Sans:wght@400;500;600&display=swap\";const FONT_FACES=['400 15px \"Inter\"','500 12px \"Inter\"','400 14px \"IBM Plex Sans\"','500 14px \"IBM Plex Sans\"','600 13px \"IBM Plex Sans\"'];function ensureFonts(){if(typeof document===\"undefined\")return;if(document.getElementById(FONT_LINK_ID))return;const link=document.createElement(\"link\");link.id=FONT_LINK_ID;link.rel=\"stylesheet\";link.href=FONT_HREF;link.onload=()=>{try{FONT_FACES.forEach(f=>document.fonts.load(f));}catch(err){}};document.head.appendChild(link);}function waitForFonts(){try{if(typeof document===\"undefined\"||!document.fonts)return Promise.resolve();return Promise.all(FONT_FACES.map(f=>document.fonts.load(f))).then(()=>undefined);}catch(err){return Promise.resolve();}}// ---------------------------------------------------------------------------\n// File delivery\n// A plain <a download> is ignored for cross-origin URLs (Framer hosts uploads\n// on framerusercontent.com), so the browser would just open the PDF in a tab.\n// To force a real download the file is fetched as a blob when the modal opens\n// and saved from memory the instant \"Download Report\" is clicked. If the fetch\n// is blocked, it falls back to opening the file URL in a new tab.\n// ---------------------------------------------------------------------------\nconst blobCache=new Map;const blobFailed=new Set;const blobPending=new Map;function prefetchFile(url){if(blobCache.has(url)||blobFailed.has(url))return Promise.resolve();const existing=blobPending.get(url);if(existing)return existing;const p=fetch(url).then(res=>{if(!res.ok)throw new Error(\"bad response\");return res.blob();}).then(blob=>{blobCache.set(url,blob);}).catch(()=>{blobFailed.add(url);}).then(()=>{blobPending.delete(url);});blobPending.set(url,p);return p;}function saveBlob(blob,name){if(typeof document===\"undefined\")return;const objectUrl=URL.createObjectURL(blob);const a=document.createElement(\"a\");a.href=objectUrl;a.download=name;a.style.display=\"none\";document.body.appendChild(a);a.click();window.setTimeout(()=>{if(a.parentNode)a.parentNode.removeChild(a);URL.revokeObjectURL(objectUrl);},1500);}function openDirect(url,name){if(typeof document===\"undefined\")return;const a=document.createElement(\"a\");a.href=url;a.download=name;a.target=\"_blank\";a.rel=\"noopener\";a.style.display=\"none\";document.body.appendChild(a);a.click();window.setTimeout(()=>{if(a.parentNode)a.parentNode.removeChild(a);},1500);}function deliverFile(url,name){const blob=blobCache.get(url);if(blob){saveBlob(blob,name);return;}if(blobFailed.has(url)){openDirect(url,name);return;}prefetchFile(url).then(()=>{const ready=blobCache.get(url);if(ready)saveBlob(ready,name);else openDirect(url,name);});}function resolveFileName(url,custom){const clean=url.split(\"?\")[0].split(\"#\")[0];let last=clean.substring(clean.lastIndexOf(\"/\")+1);try{last=decodeURIComponent(last);}catch(err){}const dot=last.lastIndexOf(\".\");const ext=dot>-1?last.slice(dot):\"\";let name=(custom||\"\").replace(/^\\s+|\\s+$/g,\"\");if(!name)return last||\"download\";if(!/\\.[a-zA-Z0-9]{2,5}$/.test(name))name+=ext;return name;}// ---------------------------------------------------------------------------\n// Klenty. Needs Klenty's website-tracking SDK (window.kl) on the page.\n//  - If the site already loads it (Framer > Site Settings > Custom Code), it is used as is.\n//  - Otherwise paste the snippet into the Klenty > Tracking Code box and the\n//    component loads it itself (once per page).\n// Sending waits up to ~10s for the SDK, then logs a clear message in the console.\n// ---------------------------------------------------------------------------\nlet lastKlentyPayload=\"\";function ensureKlentySdk(code){if(typeof window===\"undefined\"||typeof document===\"undefined\")return;const w=window;if(w.kl||w.__gdbKlentyInjected)return;const trimmed=(code||\"\").replace(/^\\s+|\\s+$/g,\"\");if(!trimmed)return;w.__gdbKlentyInjected=true;try{const holder=document.createElement(\"template\");holder.innerHTML=trimmed.toLowerCase().indexOf(\"<script\")!==-1?trimmed:\"<script>\"+trimmed+\"</script>\";const scripts=holder.content.querySelectorAll(\"script\");for(let i=0;i<scripts.length;i++){const old=scripts[i];const el=document.createElement(\"script\");for(let j=0;j<old.attributes.length;j++){el.setAttribute(old.attributes[j].name,old.attributes[j].value);}el.text=old.text;document.head.appendChild(el);}}catch(err){w.__gdbKlentyInjected=false;console.error(\"Klenty: could not load the tracking code\",err);}}function sendToKlenty(prospect,formName){if(typeof window===\"undefined\")return;if(!prospect.FullName||!prospect.Email){console.warn(\"Klenty: required fields are missing\",prospect);return;}const payload=JSON.stringify(prospect)+\"|\"+formName;if(payload===lastKlentyPayload){console.info(\"Klenty: same submission already sent, skipped\");return;}let tries=0;const attempt=()=>{const kl=window.kl;if(kl&&typeof kl.onFormSubmit===\"function\"){try{console.info(\"Klenty: sending\",prospect,formName);const result=kl.onFormSubmit(prospect,formName);lastKlentyPayload=payload;if(result&&typeof result.then===\"function\"){result.then(()=>console.info(\"Klenty: sent\"),err=>{lastKlentyPayload=\"\";console.error(\"Klenty Error:\",err);});}else{console.info(\"Klenty: sent\");}}catch(err){lastKlentyPayload=\"\";console.error(\"Klenty Error:\",err);}return;}tries+=1;if(tries<20)window.setTimeout(attempt,500);else console.warn(\"Klenty: SDK (window.kl) never loaded on this page. Add the Klenty website-tracking snippet to Site Settings > Custom Code, or paste it into this button's Klenty > Tracking Code.\");};attempt();}const F_ORDER=[\"FullName\",\"Email\",\"Phone\"];function validateField(key,raw){const v=raw.replace(/^\\s+|\\s+$/g,\"\");if(key===\"Email\")return EMAIL_RE.test(v);if(key===\"Phone\")return v.length>0&&/\\d/.test(v)&&PHONE_RE.test(v);return v.length>0;}const F_ERRORS={FullName:\"Please enter your full name.\",Email:\"Please enter a valid email address.\",Phone:\"Please enter a valid phone number.\"};const FORM_CSS=`\n.gdb-form {\n  --label: #0F1B33;\n  --text: #0F1B33;\n  --placeholder: #94A3B8;\n  --field-bg: #F8FAFC;\n  --field-border: #E5E9F0;\n  --error: #D92D20;\n  flex: 1 1 auto;\n  min-height: 0;\n  width: 100%;\n  overflow-y: auto;\n  display: flex;\n  flex-direction: column;\n  container-type: inline-size;\n  background: #FFFFFF;\n  font-family: \"IBM Plex Sans\", Inter, -apple-system, \"Segoe UI\", Arial, sans-serif;\n  color: var(--text);\n  -webkit-font-smoothing: antialiased;\n}\n.gdb-form, .gdb-form *, .gdb-form *::before, .gdb-form *::after { box-sizing: border-box; }\n.gdb-form .wrap { width: 100%; padding: 24px; flex: 1 0 auto; display: flex; flex-direction: column; }\n/* fields + button spread evenly over the full panel height (min 25px apart) */\n.gdb-form form { flex: 1 0 auto; display: flex; flex-direction: column; justify-content: space-between; gap: 25px; }\n.gdb-form .field { margin: 0; min-width: 0; }\n.gdb-form label {\n  display: block; margin: 0 0 12px; font-size: 14px; font-weight: 500; line-height: 17px;\n  letter-spacing: 0.02em; text-transform: uppercase; color: var(--label);\n}\n.gdb-form label .req { color: var(--gdb-accent); margin-left: 4px; }\n.gdb-form input[type=\"text\"] {\n  display: block; width: 100%; height: 46px; padding: 0 16px; margin: 0;\n  background: var(--field-bg); border: 1px solid var(--field-border); border-radius: 0;\n  font-family: inherit; font-size: 14px; color: var(--text); outline: none;\n  transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;\n  -webkit-appearance: none; appearance: none;\n}\n.gdb-form ::placeholder { color: var(--placeholder); opacity: 1; }\n.gdb-form input[type=\"text\"]:hover { border-color: #D5DBE6; }\n.gdb-form input[type=\"text\"]:focus {\n  background: #FFFFFF; border-color: var(--gdb-accent);\n  box-shadow: 0 0 0 3px color-mix(in srgb, var(--gdb-accent) 12%, transparent);\n}\n.gdb-form .field.has-error input[type=\"text\"] { border-color: var(--error); background: #FFF8F7; }\n.gdb-form .error-msg { margin: 8px 0 0; font-size: 13px; line-height: 1.3; color: var(--error); }\n.gdb-form .captcha { margin: 0; min-width: 0; min-height: 78px; overflow: hidden; }\n.gdb-form .actions { display: flex; flex-direction: column; align-items: flex-end; gap: 10px; margin: 0; }\n.gdb-form .btn-submit {\n  appearance: none; -webkit-appearance: none; border: 0; border-radius: 0; background: var(--gdb-accent);\n  color: #FFFFFF; font-family: inherit; font-size: 14px; font-weight: 500; letter-spacing: 0.02em;\n  text-transform: uppercase; height: 54px; padding: 0 32px; margin: 0; cursor: pointer;\n  white-space: nowrap; transition: filter .2s ease, transform .15s ease;\n}\n.gdb-form .btn-submit:not([disabled]):hover { filter: brightness(0.9); }\n.gdb-form .btn-submit:not([disabled]):active { transform: translateY(1px); }\n.gdb-form .btn-submit:focus-visible { outline: 3px solid color-mix(in srgb, var(--gdb-accent) 35%, transparent); outline-offset: 2px; }\n.gdb-form .btn-submit[disabled] { opacity: .45; cursor: not-allowed; }\n.gdb-form .notice {\n  display: flex; align-items: center; gap: 10px; width: 100%; min-height: 36px; padding: 8px 12px;\n  font-size: 13px; line-height: 1.3; background: #F0FDF4; border: 1px solid #86EFAC; color: #166534;\n}\n.gdb-form .notice svg { flex: 0 0 auto; width: 16px; height: 16px; color: #16A34A; }\n@container (max-width: 420px) {\n  .gdb-form .wrap { padding: 20px; }\n  .gdb-form .btn-submit { width: 100%; }\n}\n`;function DownloadForm(props){const{actionUrl,submitLabel,fileUrl,fileName,downloadDelay,noticeText,klenty,onDone}=props;const uid=React.useId();const frameName=\"gdb-form-frame-\"+uid.replace(/[^a-zA-Z0-9_-]/g,\"\");const[values,setValues]=React.useState({FullName:\"\",Email:\"\",Phone:\"\"});const[errors,setErrors]=React.useState({});const[sending,setSending]=React.useState(false);const fieldRefs=React.useRef({});const[countdown,setCountdown]=React.useState(null);const tickRef=React.useRef(null);// reCAPTCHA Enterprise checkbox\nconst[captchaError,setCaptchaError]=React.useState(false);const captchaRef=React.useRef(null);const captchaIdRef=React.useRef(null);React.useEffect(()=>{let cancelled=false;loadRecaptcha().then(enterprise=>{if(cancelled||!captchaRef.current||captchaIdRef.current!==null)return;captchaIdRef.current=enterprise.render(captchaRef.current,{sitekey:RECAPTCHA_SITE_KEY,action:\"LOGIN\",callback:()=>setCaptchaError(false),\"expired-callback\":()=>{}});}).catch(()=>{});return()=>{cancelled=true;};},[]);const isCaptchaSolved=()=>{try{const w=window;if(captchaIdRef.current===null||!w.grecaptcha||!w.grecaptcha.enterprise||typeof w.grecaptcha.enterprise.getResponse!==\"function\")return false;return w.grecaptcha.enterprise.getResponse(captchaIdRef.current).length>0;}catch(err){return false;}};// Only the on-screen countdown is cleaned up on unmount. The download\n// timer is deliberately NOT cancelled, so a visitor who already submitted\n// still gets their file even if they close the modal during the wait.\nReact.useEffect(()=>{return()=>{if(tickRef.current!==null)window.clearInterval(tickRef.current);};},[]);// Focus the first field on devices with a real pointer (avoids popping the\n// keyboard open on phones).\nReact.useEffect(()=>{if(typeof window===\"undefined\"||typeof window.matchMedia!==\"function\"||!window.matchMedia(\"(hover: hover) and (pointer: fine)\").matches)return;const id=window.requestAnimationFrame(()=>{const el=fieldRefs.current.FullName;if(el)el.focus({preventScroll:true});});return()=>window.cancelAnimationFrame(id);},[]);const setValue=(key,value)=>{setValues(prev=>({...prev,[key]:value}));if(errors[key]){setErrors(prev=>({...prev,[key]:!validateField(key,value)}));}};/* Full Name -> Name_First / Name_Last (first word / the rest, \"-\" if none) */const fullTrimmed=values.FullName.replace(/^\\s+|\\s+$/g,\"\");const cut=fullTrimmed.indexOf(\" \");const nameFirst=cut===-1?fullTrimmed:fullTrimmed.slice(0,cut);const nameLast=cut===-1?\"-\":fullTrimmed.slice(cut+1).replace(/^\\s+/,\"\");const handleSubmit=e=>{if(sending){e.preventDefault();return;}const nextErrors={};let firstBad=null;for(let i=0;i<F_ORDER.length;i++){const key=F_ORDER[i];const bad=!validateField(key,values[key]);nextErrors[key]=bad;if(bad&&firstBad===null)firstBad=key;}const captchaOk=isCaptchaSolved();setErrors(nextErrors);setCaptchaError(!captchaOk);if(firstBad!==null||!captchaOk){e.preventDefault();if(firstBad!==null){const el=fieldRefs.current[firstBad];if(el)el.focus();}return;}// Valid. The native multipart POST to Zoho now continues right away\n// (into the hidden frame, so the visitor stays on the page).\n// Send the same lead to Klenty (with this button's tag).\nif(klenty&&klenty.enabled){const klTag=(klenty.tag||\"\").replace(/^\\s+|\\s+$/g,\"\");const prospect={FullName:fullTrimmed,FirstName:nameFirst,LastName:cut===-1?\"\":nameLast,Email:values.Email.replace(/^\\s+|\\s+$/g,\"\"),Phone:values.Phone.replace(/^\\s+|\\s+$/g,\"\")};if(klTag)prospect.Tags=klTag;sendToKlenty(prospect,klenty.formName||DEFAULT_KLENTY_FORM);}setSending(true);const delay=Math.max(0,Math.round(Number(downloadDelay)||0));const startDownload=()=>{if(fileUrl)deliverFile(fileUrl,resolveFileName(fileUrl,fileName));};if(delay===0){// no wait: download inside the click, close once the POST has left\nstartDownload();window.setTimeout(onDone,CLOSE_DELAY_MS);return;}// notice + live countdown, then download and dismiss\nsetCountdown(delay);let left=delay;if(tickRef.current!==null)window.clearInterval(tickRef.current);tickRef.current=window.setInterval(()=>{left-=1;setCountdown(Math.max(0,left));if(left<=0&&tickRef.current!==null){window.clearInterval(tickRef.current);tickRef.current=null;}},1e3);window.setTimeout(()=>{if(tickRef.current!==null){window.clearInterval(tickRef.current);tickRef.current=null;}startDownload();window.setTimeout(onDone,400);},delay*1e3);};const fieldClass=key=>\"field\"+(errors[key]?\" has-error\":\"\");const errorMsg=key=>errors[key]?/*#__PURE__*/_jsx(\"p\",{className:\"error-msg\",role:\"alert\",children:F_ERRORS[key]}):null;return /*#__PURE__*/_jsxs(\"div\",{className:\"gdb-form\",children:[/*#__PURE__*/_jsx(\"iframe\",{name:frameName,title:\"Form submission\",\"aria-hidden\":\"true\",tabIndex:-1,style:{display:\"none\",width:0,height:0,border:0}}),/*#__PURE__*/_jsx(\"div\",{className:\"wrap\",children:/*#__PURE__*/_jsxs(\"form\",{name:\"form\",method:\"POST\",action:actionUrl||DOWNLOAD_FORM_ACTION,target:frameName,acceptCharset:\"UTF-8\",encType:\"multipart/form-data\",onSubmit:handleSubmit,noValidate:true,children:[/*#__PURE__*/_jsx(\"input\",{type:\"hidden\",name:\"zf_referrer_name\",value:\"\",readOnly:true}),/*#__PURE__*/_jsx(\"input\",{type:\"hidden\",name:\"zf_redirect_url\",value:\"\",readOnly:true}),/*#__PURE__*/_jsx(\"input\",{type:\"hidden\",name:\"zc_gad\",value:\"\",readOnly:true}),/*#__PURE__*/_jsx(\"input\",{type:\"hidden\",name:\"Name_First\",value:nameFirst,readOnly:true}),/*#__PURE__*/_jsx(\"input\",{type:\"hidden\",name:\"Name_Last\",value:nameLast,readOnly:true}),/*#__PURE__*/_jsxs(\"div\",{className:fieldClass(\"FullName\"),children:[/*#__PURE__*/_jsxs(\"label\",{htmlFor:`${uid}-FullName`,children:[\"Full Name\",/*#__PURE__*/_jsx(\"span\",{className:\"req\",children:\"*\"})]}),/*#__PURE__*/_jsx(\"input\",{type:\"text\",id:`${uid}-FullName`,ref:el=>{fieldRefs.current.FullName=el;},maxLength:255,placeholder:\"Jane Doe\",autoComplete:\"name\",value:values.FullName,\"aria-invalid\":Boolean(errors.FullName),readOnly:sending,onChange:e=>setValue(\"FullName\",e.target.value)}),errorMsg(\"FullName\")]}),/*#__PURE__*/_jsxs(\"div\",{className:fieldClass(\"Email\"),children:[/*#__PURE__*/_jsxs(\"label\",{htmlFor:`${uid}-Email`,children:[\"Email Address\",/*#__PURE__*/_jsx(\"span\",{className:\"req\",children:\"*\"})]}),/*#__PURE__*/_jsx(\"input\",{type:\"text\",id:`${uid}-Email`,name:\"Email\",ref:el=>{fieldRefs.current.Email=el;},maxLength:255,placeholder:\"jane.doe@company.com\",autoComplete:\"email\",inputMode:\"email\",value:values.Email,\"aria-invalid\":Boolean(errors.Email),readOnly:sending,onChange:e=>setValue(\"Email\",e.target.value)}),errorMsg(\"Email\")]}),/*#__PURE__*/_jsxs(\"div\",{className:fieldClass(\"Phone\"),children:[/*#__PURE__*/_jsxs(\"label\",{htmlFor:`${uid}-Phone`,children:[\"Phone Number\",/*#__PURE__*/_jsx(\"span\",{className:\"req\",children:\"*\"})]}),/*#__PURE__*/_jsx(\"input\",{type:\"text\",id:`${uid}-Phone`,name:\"PhoneNumber_countrycode\",ref:el=>{fieldRefs.current.Phone=el;},maxLength:20,placeholder:\"+1 (000) 000-0000\",autoComplete:\"tel\",inputMode:\"tel\",value:values.Phone,\"aria-invalid\":Boolean(errors.Phone),readOnly:sending,onChange:e=>setValue(\"Phone\",e.target.value)}),errorMsg(\"Phone\")]}),/*#__PURE__*/_jsxs(\"div\",{className:\"captcha\",children:[/*#__PURE__*/_jsx(\"div\",{ref:captchaRef}),captchaError&&/*#__PURE__*/_jsx(\"p\",{className:\"error-msg\",role:\"alert\",children:\"Please confirm you are not a robot.\"})]}),/*#__PURE__*/_jsxs(\"div\",{className:\"actions\",children:[sending?/*#__PURE__*/_jsxs(\"div\",{className:\"notice\",role:\"status\",\"aria-live\":\"polite\",children:[/*#__PURE__*/_jsxs(\"svg\",{viewBox:\"0 0 24 24\",fill:\"none\",stroke:\"currentColor\",strokeWidth:\"2\",strokeLinecap:\"round\",strokeLinejoin:\"round\",\"aria-hidden\":\"true\",children:[/*#__PURE__*/_jsx(\"path\",{d:\"M22 11.08V12a10 10 0 1 1-5.93-9.14\"}),/*#__PURE__*/_jsx(\"polyline\",{points:\"22 4 12 14.01 9 11.01\"})]}),/*#__PURE__*/_jsx(\"span\",{children:countdown===null||countdown>0?(noticeText||\"\").replace(\"{s}\",String(countdown??0)):\"Your download is starting...\"})]}):null,/*#__PURE__*/_jsx(\"button\",{type:\"submit\",className:\"btn-submit\",disabled:sending,\"aria-disabled\":sending,children:submitLabel})]})]})})]});}const MODAL_DEFAULTS={eyebrow:\"FREE DOWNLOAD\",heading:\"Get instant access to your report.\",description:\"Fill in your details below to unlock your selected report and stay informed with our latest research, frameworks, and insights.\",submitLabel:\"DOWNLOAD REPORT\",leftWidth:60,bgMode:\"Image\",bgColor:\"#000000\",bgFit:\"Cover\",bgPosition:\"Bottom\",bgHeight:65,accentColor:\"#ED1D20\"};const BG_POSITION_MAP={Center:\"center center\",Top:\"center top\",Bottom:\"center bottom\",Left:\"left center\",Right:\"right center\",\"Bottom Right\":\"right bottom\"};function DownloadModal(props){const{isOpen,onClose,eyebrow,heading,description,submitLabel,leftWidth,bgMode,bgImage,bgColor,bgFit,bgPosition,bgHeight,accentColor,backdropOpacity,modalWidthPx,modalHeightPx,actionUrl,fileUrl,fileName,downloadDelay,noticeText,klenty}=props;const[isMobile,setIsMobile]=React.useState(false);const[isCloseHovered,setIsCloseHovered]=React.useState(false);const[fontsReady,setFontsReady]=React.useState(false);// Keep the dialog invisible (layout unchanged) until its fonts are ready,\n// with a short timeout so a slow font request can never block it.\nReact.useEffect(()=>{if(!isOpen||fontsReady)return;let done=false;const finish=()=>{if(done)return;done=true;setFontsReady(true);};const timer=window.setTimeout(finish,700);waitForFonts().then(finish,finish);return()=>{window.clearTimeout(timer);};},[isOpen,fontsReady]);React.useEffect(()=>{if(typeof window!==\"undefined\"&&typeof window.matchMedia===\"function\"){const query=window.matchMedia(\"(max-width: 768px)\");const apply=()=>{startTransition(()=>setIsMobile(query.matches));};apply();if(typeof query.addEventListener===\"function\"){query.addEventListener(\"change\",apply);return()=>query.removeEventListener(\"change\",apply);}query.addListener(apply);return()=>query.removeListener(apply);}return;},[]);React.useEffect(()=>{if(!isOpen)return;if(typeof window!==\"undefined\"&&typeof document!==\"undefined\"){const handleKeyDown=event=>{if(event.key===\"Escape\")onClose();};const body=document.body;const previousOverflow=body.style.overflow;const previousPaddingRight=body.style.paddingRight;// Locking scroll removes the scrollbar, which widens the page and\n// shifts everything behind the modal. Replace its width with padding.\nconst scrollbarWidth=Math.max(0,window.innerWidth-document.documentElement.clientWidth);if(scrollbarWidth>0){const currentPadding=parseFloat(window.getComputedStyle(body).paddingRight)||0;body.style.paddingRight=`${currentPadding+scrollbarWidth}px`;}body.style.overflow=\"hidden\";window.addEventListener(\"keydown\",handleKeyDown);return()=>{window.removeEventListener(\"keydown\",handleKeyDown);body.style.overflow=previousOverflow;body.style.paddingRight=previousPaddingRight;};}return;},[isOpen,onClose]);// Start fetching this button's file as soon as the modal opens, so the\n// download can start instantly when \"Download Report\" is clicked.\nReact.useEffect(()=>{if(isOpen&&fileUrl)prefetchFile(fileUrl);},[isOpen,fileUrl]);if(!isOpen||typeof document===\"undefined\")return null;const bgSrc=bgImage?.src||FORM_BG_DEFAULT_URL;const showBgImage=bgMode===\"Image\"&&Boolean(bgSrc);const panelBackground=bgMode===\"Color\"?bgColor:\"#000000\";const safeBgHeight=Math.min(100,Math.max(20,bgHeight));const safeLeftWidth=Math.min(75,Math.max(35,leftWidth));const modalWidth=`min(${modalWidthPx}px, calc(100vw - 32px))`;const modalHeight=`min(${modalHeightPx}px, calc(100vh - 88px))`;return /*#__PURE__*/createPortal(/*#__PURE__*/_jsxs(\"div\",{onMouseDown:event=>{if(event.target===event.currentTarget)onClose();},onClick:event=>event.stopPropagation(),style:{position:\"fixed\",top:0,right:0,bottom:0,left:0,zIndex:MODAL_Z_INDEX,background:`rgba(0, 0, 0, ${Math.min(1,Math.max(0,backdropOpacity))})`,display:\"flex\",alignItems:\"center\",justifyContent:\"center\",padding:\"72px 16px 16px 16px\",boxSizing:\"border-box\",pointerEvents:\"auto\",\"--gdb-accent\":accentColor},children:[/*#__PURE__*/_jsx(\"style\",{children:FORM_CSS}),/*#__PURE__*/_jsxs(\"div\",{role:\"dialog\",\"aria-modal\":\"true\",\"aria-label\":heading||\"Download report\",style:{width:modalWidth,// Modal Height is a minimum: the dialog grows with its\n// content (up to the viewport) instead of scrolling\nheight:\"auto\",minHeight:isMobile?undefined:modalHeight,maxHeight:\"calc(100vh - 88px)\",display:\"flex\",flexDirection:\"column\",position:\"relative\",opacity:fontsReady?1:0,visibility:fontsReady?\"visible\":\"hidden\",transition:\"opacity 0.15s ease\"},children:[/*#__PURE__*/_jsx(\"button\",{onClick:onClose,onMouseEnter:()=>startTransition(()=>setIsCloseHovered(true)),onMouseLeave:()=>startTransition(()=>setIsCloseHovered(false)),\"aria-label\":\"Close modal\",style:{position:\"absolute\",top:isMobile?8:-68,right:isMobile?8:0,zIndex:3,width:44,height:44,padding:0,margin:0,border:\"1px solid #E5E7EB\",borderRadius:0,appearance:\"none\",WebkitAppearance:\"none\",MozAppearance:\"none\",background:isCloseHovered?\"#F1F5F9\":\"#FFFFFF\",cursor:\"pointer\",display:\"inline-flex\",alignItems:\"center\",justifyContent:\"center\"},children:/*#__PURE__*/_jsx(\"svg\",{width:\"18\",height:\"18\",viewBox:\"0 0 18 18\",fill:\"none\",\"aria-hidden\":\"true\",children:/*#__PURE__*/_jsx(\"path\",{d:\"M4.5 4.5L13.5 13.5M13.5 4.5L4.5 13.5\",stroke:\"#0F172A\",strokeWidth:\"1.75\",strokeLinecap:\"round\"})})}),/*#__PURE__*/_jsxs(\"div\",{style:{flex:1,minHeight:0,overflow:\"auto\",background:\"#fff\",display:\"flex\",flexDirection:isMobile?\"column\":\"row\"},children:[/*#__PURE__*/_jsxs(\"div\",{style:{flex:isMobile?\"none\":`0 0 ${safeLeftWidth}%`,width:isMobile?\"100%\":`${safeLeftWidth}%`,boxSizing:\"border-box\",background:panelBackground,color:\"#FFFFFF\",padding:isMobile?20:24,position:\"relative\",overflow:\"hidden\",minHeight:isMobile?showBgImage?380:\"auto\":0},children:[showBgImage?/*#__PURE__*/_jsx(\"img\",{src:bgSrc,srcSet:bgImage?.src?bgImage?.srcSet:undefined,alt:bgImage?.alt||\"\",\"aria-hidden\":\"true\",style:{position:\"absolute\",left:0,right:0,bottom:0,width:\"100%\",height:`${safeBgHeight}%`,objectFit:bgFit===\"Contain\"?\"contain\":\"cover\",objectPosition:BG_POSITION_MAP[bgPosition]||\"center bottom\",pointerEvents:\"none\",zIndex:0}}):null,/*#__PURE__*/_jsxs(\"div\",{style:{position:\"relative\",zIndex:1},children:[eyebrow?/*#__PURE__*/_jsx(\"div\",{style:{color:accentColor,fontSize:12,lineHeight:\"16px\",fontWeight:500,letterSpacing:\"0.02em\",textTransform:\"uppercase\",fontFamily:\"Inter, sans-serif\"},children:eyebrow}):null,heading?/*#__PURE__*/_jsx(\"div\",{style:{fontSize:isMobile?26:30,lineHeight:1.2,marginTop:10,fontFamily:\"Inter, sans-serif\",fontWeight:400,color:\"#FFFFFF\"},children:heading}):null,description?/*#__PURE__*/_jsx(\"div\",{style:{fontSize:15,lineHeight:1.9,marginTop:10,maxWidth:520,fontFamily:\"Inter, sans-serif\",color:\"#E2E8F0\"},children:description}):null]})]}),/*#__PURE__*/_jsx(\"div\",{style:{flex:1,minWidth:0,minHeight:isMobile?460:0,display:\"flex\",flexDirection:\"column\",background:\"#FFFFFF\"},children:/*#__PURE__*/_jsx(DownloadForm,{actionUrl:actionUrl,submitLabel:submitLabel,fileUrl:fileUrl,fileName:fileName,downloadDelay:downloadDelay,noticeText:noticeText,klenty:klenty,onDone:onClose})})]})]})]}),document.body);}/**\n * @framerSupportedLayoutWidth any\n * @framerSupportedLayoutHeight any\n */export default function GatedDownloadButton(props){const{text=\"DOWNLOAD\",file,fileUrl=\"\",fileName=\"\",font,backgroundColor=\"#FFFFFF\",textColor=\"#0F172A\",hoverTextColor=\"#FFFFFF\",overlayColor=\"#ED1D20\",borderColor=\"#0F172A\",borderWidth=1,radius=0,padding=\"16px 28px\",duration=.4,easing=\"easeInOut\",uppercase=true,showIcon=true,iconType=\"download\",iconPosition=\"right\",iconSize=16,iconGap=8,eyebrow=MODAL_DEFAULTS.eyebrow,heading=MODAL_DEFAULTS.heading,description=MODAL_DEFAULTS.description,submitLabel=MODAL_DEFAULTS.submitLabel,modalWidth=DEFAULT_MODAL_WIDTH,modalHeight=DEFAULT_MODAL_HEIGHT,leftWidth=MODAL_DEFAULTS.leftWidth,bgMode=MODAL_DEFAULTS.bgMode,bgImage,bgColor=MODAL_DEFAULTS.bgColor,bgFit=MODAL_DEFAULTS.bgFit,bgPosition=MODAL_DEFAULTS.bgPosition,bgHeight=MODAL_DEFAULTS.bgHeight,accentColor=MODAL_DEFAULTS.accentColor,backdropOpacity=.6,zohoActionUrl=DOWNLOAD_FORM_ACTION,downloadDelay=DEFAULT_DOWNLOAD_DELAY,noticeText=DEFAULT_NOTICE_TEXT,klenty}=props;const klentyConfig={enabled:klenty?.enabled??true,tag:klenty?.tag??DEFAULT_KLENTY_TAG,formName:klenty?.formName??DEFAULT_KLENTY_FORM,trackingCode:klenty?.trackingCode??\"\"};// The uploaded file wins; the pasted File URL is the fallback.\nconst resolvedFileUrl=(file||\"\").replace(/^\\s+|\\s+$/g,\"\")||(fileUrl||\"\").replace(/^\\s+|\\s+$/g,\"\");const isStaticRenderer=useIsStaticRenderer();const reducedMotion=useReducedMotion();const[isModalOpen,setIsModalOpen]=React.useState(false);// ONE source of truth for the wipe: progress 0 (rest) -> 1 (fully covered).\n// The red overlay, the white hover text, the dark resting text and their\n// visibility are all derived from it, so they can never fall out of sync\n// (that desync was the \"text sometimes turns white / disappears\" glitch).\n// mode 0 = entering (wipes in from the left); 1 = leaving (wipes out to the right).\nconst progress=useMotionValue(0);const mode=useMotionValue(0);const animRef=React.useRef(null);const[supportsHover,setSupportsHover]=React.useState(true);const[hovered,setHovered]=React.useState(false);const[focused,setFocused]=React.useState(false);React.useEffect(()=>{if(typeof window!==\"undefined\"&&typeof window.matchMedia===\"function\"){const query=window.matchMedia(\"(hover: hover) and (pointer: fine)\");const apply=()=>{startTransition(()=>{setSupportsHover(query.matches);if(!query.matches)setHovered(false);});};apply();if(typeof query.addEventListener===\"function\"){query.addEventListener(\"change\",apply);return()=>query.removeEventListener(\"change\",apply);}query.addListener(apply);return()=>query.removeListener(apply);}return;},[]);// Preload the modal's fonts and left background image up front so opening\n// the modal never causes a late reflow or pop-in.\nReact.useEffect(()=>{if(isStaticRenderer||typeof window===\"undefined\")return;ensureFonts();loadRecaptcha().catch(()=>{});if(bgMode===\"Image\"){const img=new Image;img.src=bgImage?.src||FORM_BG_DEFAULT_URL;}},[isStaticRenderer,bgMode,bgImage?.src]);// Load Klenty's tracking snippet (only if pasted in the Klenty section and\n// window.kl is not already on the page) so it is ready before submit.\nconst klentyCode=klentyConfig.enabled?klentyConfig.trackingCode||\"\":\"\";React.useEffect(()=>{if(isStaticRenderer||typeof window===\"undefined\")return;if(klentyCode)ensureKlentySdk(klentyCode);},[isStaticRenderer,klentyCode]);const safeDuration=reducedMotion?0:Math.max(0,duration);const safeIconSize=Math.max(0,iconSize);const safeIconGap=Math.max(0,iconGap);const active=!isStaticRenderer&&(focused||supportsHover&&hovered);const iconNode=React.useMemo(()=>{const iconPaths={arrow:/*#__PURE__*/_jsx(\"path\",{d:\"M3 8H13M13 8L9 4M13 8L9 12\"}),arrowUpRight:/*#__PURE__*/_jsx(\"path\",{d:\"M4 12L12 4M7 4H12V9\"}),download:/*#__PURE__*/_jsx(\"path\",{d:\"M8 2V10M5 7L8 10L11 7M3 13H13\"}),externalLink:/*#__PURE__*/_jsx(\"path\",{d:\"M9 3H13V7M7 9L13 3M6 4H4C3.44772 4 3 4.44772 3 5V12C3 12.5523 3.44772 13 4 13H11C11.5523 13 12 12.5523 12 12V10\"}),chevronRight:/*#__PURE__*/_jsx(\"path\",{d:\"M6 3L11 8L6 13\"}),plus:/*#__PURE__*/_jsx(\"path\",{d:\"M8 3V13M3 8H13\"}),mail:/*#__PURE__*/_jsx(\"path\",{d:\"M2.5 4.5H13.5V11.5H2.5V4.5ZM2.5 5L8 9L13.5 5\"}),phone:/*#__PURE__*/_jsx(\"path\",{d:\"M5.2 2.8L7 4.6C7.3 4.9 7.38 5.34 7.2 5.72L6.55 7.08C7.28 8.56 8.44 9.72 9.92 10.45L11.28 9.8C11.66 9.62 12.1 9.7 12.4 10L14.2 11.8C14.6 12.2 14.6 12.85 14.2 13.25C13.56 13.89 12.62 14.2 11.5 14.02C6.82 13.28 2.72 9.18 1.98 4.5C1.8 3.38 2.11 2.44 2.75 1.8C3.15 1.4 3.8 1.4 4.2 1.8L5.2 2.8Z\"}),play:/*#__PURE__*/_jsx(\"path\",{d:\"M5 3.5L12 8L5 12.5V3.5Z\"}),check:/*#__PURE__*/_jsx(\"path\",{d:\"M3 8.5L6.5 12L13 5.5\"}),calendar:/*#__PURE__*/_jsx(\"path\",{d:\"M3 4.5H13V13H3V4.5ZM5.5 2.5V5M10.5 2.5V5M3 7.5H13\"}),search:/*#__PURE__*/_jsx(\"path\",{d:\"M11 11L14 14M7 12C4.23858 12 2 9.76142 2 7C2 4.23858 4.23858 2 7 2C9.76142 2 12 4.23858 12 7C12 9.76142 9.76142 12 7 12Z\"})};return /*#__PURE__*/_jsx(\"svg\",{width:safeIconSize,height:safeIconSize,viewBox:\"0 0 16 16\",fill:\"none\",xmlns:\"http://www.w3.org/2000/svg\",\"aria-hidden\":\"true\",style:{display:\"block\"},children:/*#__PURE__*/_jsx(\"g\",{stroke:\"currentColor\",strokeWidth:\"1.6\",strokeLinecap:\"round\",strokeLinejoin:\"round\",fill:\"none\",children:iconPaths[iconType]})});},[iconType,safeIconSize]);const contentBaseStyle=React.useMemo(()=>({display:\"inline-flex\",alignItems:\"center\",justifyContent:\"center\",flexDirection:iconPosition===\"left\"?\"row\":\"row-reverse\",columnGap:safeIconGap}),[iconPosition,safeIconGap]);// Derived layers (pure functions of progress + mode)\nconst overlayClip=useTransform([progress,mode],([p,m])=>{const rest=Math.max(0,Math.min(100,(1-p)*100));return m===0?`inset(0 ${rest}% 0 0)`:`inset(0 0 0 ${rest}%)`;});// dark resting text shows only where the overlay is NOT, so it never sits\n// under the white text\nconst baseClip=useTransform([progress,mode],([p,m])=>{const cover=Math.max(0,Math.min(100,p*100));return m===0?`inset(0 0 0 ${cover}%)`:`inset(0 ${cover}% 0 0)`;});const layerOpacity=useTransform(progress,p=>p>0?1:0);const layerVisibility=useTransform(progress,p=>p>0?\"visible\":\"hidden\");React.useEffect(()=>{if(animRef.current)animRef.current.stop();animRef.current=null;if(isStaticRenderer){progress.set(0);mode.set(0);return;}const current=progress.get();if(active){// fresh hover from rest: wipe in from the left\nif(current<=.001)mode.set(0);animRef.current=animate(progress,1,{duration:safeDuration,ease:easing});}else{// leaving from fully covered: wipe out to the right.\n// leaving mid-way: simply retract the way it came (no jump).\nif(current>=.999)mode.set(1);animRef.current=animate(progress,0,{duration:safeDuration,ease:easing});}return()=>{if(animRef.current)animRef.current.stop();};},[active,isStaticRenderer,safeDuration,easing,progress,mode]);const openModal=()=>{if(isStaticRenderer)return;startTransition(()=>setIsModalOpen(true));};const trigger=/*#__PURE__*/_jsxs(\"a\",{role:\"button\",tabIndex:0,\"aria-haspopup\":\"dialog\",onMouseEnter:()=>{if(!supportsHover||isStaticRenderer)return;startTransition(()=>setHovered(true));},onMouseLeave:()=>{if(!supportsHover||isStaticRenderer)return;startTransition(()=>setHovered(false));},onFocus:()=>startTransition(()=>setFocused(true)),onBlur:()=>startTransition(()=>setFocused(false)),onClick:event=>{event.preventDefault();openModal();},onKeyDown:event=>{if(event.key===\"Enter\"||event.key===\" \"){event.preventDefault();openModal();}},style:{position:\"absolute\",inset:0,width:\"100%\",height:\"100%\",minHeight:48,display:\"flex\",alignItems:\"center\",justifyContent:\"center\",boxSizing:\"border-box\",padding,borderRadius:radius,overflow:\"hidden\",background:backgroundColor,textDecoration:\"none\",cursor:\"pointer\",outline:\"none\"},children:[/*#__PURE__*/_jsx(\"span\",{\"aria-hidden\":\"true\",style:{position:\"absolute\",inset:0,boxSizing:\"border-box\",border:`${Math.max(0,borderWidth)}px solid ${borderColor}`,borderRadius:radius,zIndex:0,pointerEvents:\"none\"}}),/*#__PURE__*/_jsx(motion.span,{\"aria-hidden\":\"true\",style:{position:\"absolute\",inset:0,background:overlayColor,zIndex:1,pointerEvents:\"none\",clipPath:overlayClip,visibility:layerVisibility,opacity:layerOpacity}}),/*#__PURE__*/_jsx(motion.span,{style:{...font,clipPath:baseClip,// same centering box as the white hover layer, so the\n// resting and hover text sit in exactly the same spot\nposition:\"absolute\",inset:0,zIndex:2,color:textColor,textTransform:uppercase?\"uppercase\":\"none\",fontSize:font?.fontSize??\"14px\",lineHeight:font?.lineHeight??\"1.1em\",letterSpacing:font?.letterSpacing??\"0.02em\",fontWeight:font?.fontWeight??600,textAlign:\"center\",whiteSpace:\"normal\",overflowWrap:\"anywhere\",display:\"flex\",alignItems:\"center\",justifyContent:\"center\",padding,boxSizing:\"border-box\",pointerEvents:\"none\"},children:showIcon?/*#__PURE__*/_jsxs(\"span\",{style:contentBaseStyle,children:[/*#__PURE__*/_jsx(\"span\",{children:text}),/*#__PURE__*/_jsx(\"span\",{\"aria-hidden\":\"true\",style:{display:\"inline-flex\",width:safeIconSize,height:safeIconSize,flex:\"0 0 auto\"},children:iconNode})]}):text}),/*#__PURE__*/_jsx(motion.span,{\"aria-hidden\":\"true\",style:{...font,clipPath:overlayClip,position:\"absolute\",inset:0,zIndex:2,color:hoverTextColor,textTransform:uppercase?\"uppercase\":\"none\",fontSize:font?.fontSize??\"14px\",lineHeight:font?.lineHeight??\"1.1em\",letterSpacing:font?.letterSpacing??\"0.02em\",fontWeight:font?.fontWeight??600,textAlign:\"center\",whiteSpace:\"normal\",overflowWrap:\"anywhere\",display:\"flex\",alignItems:\"center\",justifyContent:\"center\",padding,boxSizing:\"border-box\",pointerEvents:\"none\",visibility:layerVisibility,opacity:layerOpacity},children:showIcon?/*#__PURE__*/_jsxs(\"span\",{style:contentBaseStyle,children:[/*#__PURE__*/_jsx(\"span\",{children:text}),/*#__PURE__*/_jsx(\"span\",{style:{display:\"inline-flex\",width:safeIconSize,height:safeIconSize,flex:\"0 0 auto\"},children:iconNode})]}):text})]});return /*#__PURE__*/_jsxs(\"div\",{style:{position:\"relative\",width:\"100%\",height:\"100%\",minWidth:0,minHeight:56,boxSizing:\"border-box\"},children:[trigger,/*#__PURE__*/_jsx(DownloadModal,{isOpen:isModalOpen,onClose:()=>startTransition(()=>setIsModalOpen(false)),eyebrow:eyebrow,heading:heading,description:description,submitLabel:submitLabel,leftWidth:leftWidth,bgMode:bgMode,bgImage:bgImage,bgColor:bgColor,bgFit:bgFit,bgPosition:bgPosition,bgHeight:bgHeight,accentColor:accentColor,backdropOpacity:backdropOpacity,modalWidthPx:modalWidth,modalHeightPx:modalHeight,actionUrl:zohoActionUrl,fileUrl:resolvedFileUrl,fileName:fileName,downloadDelay:downloadDelay,noticeText:noticeText,klenty:klentyConfig})]});}addPropertyControls(GatedDownloadButton,{text:{type:ControlType.String,title:\"Text\",defaultValue:\"DOWNLOAD\"},// ---------- File delivered by THIS button ----------\nfile:{type:ControlType.File,title:\"File\",allowedFileTypes:[\"pdf\",\"doc\",\"docx\",\"xls\",\"xlsx\",\"ppt\",\"pptx\",\"csv\",\"zip\",\"txt\"]},fileUrl:{type:ControlType.String,title:\"File URL\",defaultValue:\"\",placeholder:\"Used only if no file is uploaded\"},fileName:{type:ControlType.String,title:\"File Name\",defaultValue:\"\",placeholder:\"e.g. Data Maturity Assessment 2026.pdf\"},// ---------- Button look ----------\nfont:{type:ControlType.Font,title:\"Font\",controls:\"extended\",defaultFontType:\"sans-serif\",defaultValue:{fontSize:\"14px\",variant:\"Semibold\",letterSpacing:\"0.02em\",lineHeight:\"1.1em\"}},backgroundColor:{type:ControlType.Color,title:\"Background\",defaultValue:\"#FFFFFF\"},textColor:{type:ControlType.Color,title:\"Text\",defaultValue:\"#0F172A\"},hoverTextColor:{type:ControlType.Color,title:\"Hover Text\",defaultValue:\"#FFFFFF\"},overlayColor:{type:ControlType.Color,title:\"Overlay\",defaultValue:\"#ED1D20\"},borderColor:{type:ControlType.Color,title:\"Border\",defaultValue:\"#0F172A\"},borderWidth:{type:ControlType.Number,title:\"Border W\",defaultValue:1,min:0,max:8,step:.5,unit:\"px\"},radius:{type:ControlType.Number,title:\"Radius\",defaultValue:0,min:0,max:48,step:1,unit:\"px\"},padding:{type:ControlType.Padding,title:\"Padding\",defaultValue:\"16px 28px\"},duration:{type:ControlType.Number,title:\"Duration\",defaultValue:.4,min:0,max:2,step:.05,unit:\"s\"},easing:{type:ControlType.Enum,title:\"Ease\",defaultValue:\"easeInOut\",options:[\"easeInOut\",\"easeOut\",\"easeIn\",\"linear\"],optionTitles:[\"Ease InOut\",\"Ease Out\",\"Ease In\",\"Linear\"]},uppercase:{type:ControlType.Boolean,title:\"Uppercase\",defaultValue:true,enabledTitle:\"On\",disabledTitle:\"Off\"},showIcon:{type:ControlType.Boolean,title:\"Show Icon\",defaultValue:true,enabledTitle:\"On\",disabledTitle:\"Off\"},iconType:{type:ControlType.Enum,title:\"Icon\",defaultValue:\"download\",options:[\"arrow\",\"arrowUpRight\",\"download\",\"externalLink\",\"chevronRight\",\"plus\",\"mail\",\"phone\",\"play\",\"check\",\"calendar\",\"search\"],optionTitles:[\"Arrow Right\",\"Arrow Up Right\",\"Download\",\"External Link\",\"Chevron Right\",\"Plus\",\"Mail\",\"Phone\",\"Play\",\"Check\",\"Calendar\",\"Search\"],hidden:props=>!props.showIcon},iconPosition:{type:ControlType.Enum,title:\"Icon Side\",defaultValue:\"right\",options:[\"left\",\"right\"],optionTitles:[\"Left\",\"Right\"],hidden:props=>!props.showIcon},iconSize:{type:ControlType.Number,title:\"Icon Size\",defaultValue:16,min:8,max:48,step:1,unit:\"px\",hidden:props=>!props.showIcon},iconGap:{type:ControlType.Number,title:\"Icon Gap\",defaultValue:8,min:0,max:32,step:1,unit:\"px\",hidden:props=>!props.showIcon},// ---------- Modal content ----------\neyebrow:{type:ControlType.String,title:\"Eyebrow\",defaultValue:MODAL_DEFAULTS.eyebrow},heading:{type:ControlType.String,title:\"Heading\",defaultValue:MODAL_DEFAULTS.heading,displayTextArea:true},description:{type:ControlType.String,title:\"Description\",defaultValue:MODAL_DEFAULTS.description,displayTextArea:true},submitLabel:{type:ControlType.String,title:\"Submit Text\",defaultValue:MODAL_DEFAULTS.submitLabel},noticeText:{type:ControlType.String,title:\"Notice Text\",defaultValue:DEFAULT_NOTICE_TEXT,description:\"{s} becomes the live countdown number\"},downloadDelay:{type:ControlType.Number,title:\"Download Delay\",defaultValue:DEFAULT_DOWNLOAD_DELAY,min:0,max:30,step:1,unit:\"s\"},// ---------- Modal layout ----------\nmodalWidth:{type:ControlType.Number,title:\"Modal Width\",defaultValue:DEFAULT_MODAL_WIDTH,min:600,max:1600,step:10,unit:\"px\"},modalHeight:{type:ControlType.Number,title:\"Modal Height\",defaultValue:DEFAULT_MODAL_HEIGHT,min:400,max:1e3,step:10,unit:\"px\",description:\"Minimum height. The modal grows if the form needs more room.\"},leftWidth:{type:ControlType.Number,title:\"Left Panel\",defaultValue:MODAL_DEFAULTS.leftWidth,min:35,max:75,step:1,unit:\"%\"},// ---------- Left panel background ----------\nbgMode:{type:ControlType.Enum,title:\"Left BG\",defaultValue:\"Image\",options:[\"Image\",\"Color\",\"None\"],displaySegmentedControl:true},bgImage:{type:ControlType.ResponsiveImage,title:\"Left BG Image\",hidden:props=>props.bgMode!==\"Image\"},bgFit:{type:ControlType.Enum,title:\"BG Fit\",defaultValue:\"Cover\",options:[\"Cover\",\"Contain\"],displaySegmentedControl:true,hidden:props=>props.bgMode!==\"Image\"},bgPosition:{type:ControlType.Enum,title:\"BG Position\",defaultValue:\"Bottom\",options:[\"Center\",\"Top\",\"Bottom\",\"Left\",\"Right\",\"Bottom Right\"],hidden:props=>props.bgMode!==\"Image\"},bgHeight:{type:ControlType.Number,title:\"BG Height\",defaultValue:MODAL_DEFAULTS.bgHeight,min:20,max:100,step:1,unit:\"%\",hidden:props=>props.bgMode!==\"Image\"},bgColor:{type:ControlType.Color,title:\"Left BG Color\",defaultValue:\"#000000\",hidden:props=>props.bgMode!==\"Color\"},accentColor:{type:ControlType.Color,title:\"Accent Color\",defaultValue:\"#ED1D20\"},backdropOpacity:{type:ControlType.Number,title:\"Backdrop\",defaultValue:.6,min:0,max:1,step:.05},// ---------- Klenty (set a different Tag on each download button) ----------\nklenty:{type:ControlType.Object,title:\"Klenty\",controls:{enabled:{type:ControlType.Boolean,title:\"Send to Klenty\",defaultValue:true,enabledTitle:\"On\",disabledTitle:\"Off\"},tag:{type:ControlType.String,title:\"Tag\",defaultValue:DEFAULT_KLENTY_TAG,placeholder:\"e.g. Data Maturity Report\"},formName:{type:ControlType.String,title:\"Form Name\",defaultValue:DEFAULT_KLENTY_FORM},trackingCode:{type:ControlType.String,title:\"Tracking Code\",defaultValue:\"\",displayTextArea:true,placeholder:\"Only if the site doesn't already load Klenty: paste the snippet from Klenty > Settings > Prospects > Website tracking\"}}},// ---------- Zoho ----------\nzohoActionUrl:{type:ControlType.String,title:\"Zoho Submit URL\",defaultValue:DOWNLOAD_FORM_ACTION}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"GatedDownloadButton\",\"slots\":[],\"annotations\":{\"framerContractVersion\":\"1\",\"framerSupportedLayoutHeight\":\"any\",\"framerSupportedLayoutWidth\":\"any\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./Download_Form_Comp.map"],"mappings":"A,wUAoB8F,SAAS8B,IAAe,CAAC,GAAUrB,IAAS,QAAa,OAAO,SAAW,IAAY,OAAO,QAAQ,OAAO,gBAAI,MAAM,WAAW,CAAC,EAAE,IAAMsB,EAAEtB,EAA6nB,OAAnnBsB,EAAE,YAAYA,EAAE,WAAW,YAAY,OAAOA,EAAE,WAAW,WAAW,QAAS,WAAkB,QAAQ,QAAQA,EAAE,WAAW,UAAU,EAAKC,IAAyC,EAAiB,IAAI,SAAS,EAAQ,IAAS,CAAC,IAAMC,EAAG,SAAS,cAAc,QAAQ,EAAE,EAAG,IAAI,iEAAiE,EAAG,MAAM,GAAK,EAAG,MAAM,GAAK,EAAG,WAAW,CAAC,GAAG,CAACF,EAAE,WAAW,WAAW,UAAUG,EAAQH,EAAE,WAAW,UAAU,CAAC,CAAE,OAAOI,EAAI,CAAC,EAAiB,KAAKC,EAAOD,CAAG,CAAE,CAAC,EAAE,EAAG,YAAY,CAAC,EAAiB,KAAKC,EAAO,gBAAI,MAAM,0BAA0B,CAAC,CAAE,EAAE,SAAS,KAAK,YAAYH,CAAE,CAAE,CAAC,EAASD,EAAiB,CAIhlB,SAASK,GAAa,CAAyC,GAArC,OAAO,SAAW,KAAsB,SAAS,eAAeC,EAAY,EAAE,OAAO,IAAMC,EAAK,SAAS,cAAc,MAAM,EAAE,EAAK,GAAGD,GAAa,EAAK,IAAI,aAAa,EAAK,KAAKE,GAAU,EAAK,WAAW,CAAC,GAAG,CAACC,EAAW,QAAQ,GAAG,SAAS,MAAM,KAAKC,CAAC,CAAC,CAAE,MAAW,CAAC,CAAC,EAAE,SAAS,KAAK,YAAYH,C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