/* growform client2 bundle.url: https://assets.growform.co/ef442a3-mggk13f0/form.bundle.js resolve.source: kv resolve.at: 2025-10-15T06:25:17.453Z form.source: kv cache.age_ms: 0 kv.value_present: true fallback_used: false */ ;(function () { var EMBED_TYPE = "iFrame"; var FORM_ID = "632a7f5cfdcff200aeeaa76b"; var FORM_BUNDLE_URL = "https://assets.growform.co/ef442a3-mggk13f0/form.bundle.js"; // injected by worker (KV/memory/fallback) var FORM_DATA = {"data":{"form":{"_id":"632a7f5cfdcff200aeeaa76b","formName":"Chad Foster Book Chapter","fields":{"Decorative Header_467388329589508":{"type":"Decorative Header","value":"Get the Free Chapter","width":12,"step":"header","sortOrder":1,"fieldStyle":{"fontSize":{"value":"21","unit":"px"},"fontWeight":"Bold"},"stepId":"header"},"Decorative Paragraph_194067845817258":{"type":"Decorative Paragraph","value":"We'll be in touch shortly - usually with 48 hours.","width":12,"step":"complete","sortOrder":2,"margins":{"marginBottom":30},"stepId":"complete"},"decorative paragraph_307505027805660":{"type":"Decorative Paragraph","value":"","width":12,"step":1,"sortOrder":1,"margins":{"marginTop":0},"stepId":"20bd359633662bd21cd5d6d5"},"decorative paragraph_799257360840766":{"type":"Decorative Paragraph","value":"Thanks for your interest!","width":12,"step":"complete","sortOrder":1,"stepId":"complete"},"email_663244272631307":{"type":"Email","label":"What is your email address?","width":12,"stepId":"20bd359633662bd21cd5d6d5","sortOrder":2}},"options":{"numberOfSteps":2,"dateFormat":"DD/MM/YYYY","progressBar":{"enable":true},"continueButton":{"continueText":"Submit","submitText":"Finish","backText":"Back"},"customStyles":{"width":{"unit":"px","value":400},"parentContainerMinHeight":{"value":0,"unit":"px"},"parentBackgroundImage":{"imageInitialHeight":900,"imageInitialWidth":1800,"imageHeight":900,"imageWidth":1800,"imageUrl":"https://res.cloudinary.com/dqnjggegp/image/upload/v1597394891/uploads/sbsnhuvt2wc0uyvwvgab.jpg"},"headerMarginTop":30,"parentBackgroundColor":"#ffd43b","innerFormBackgroundColor":"#ffffff","innerFormBackgroundTransparency":"","primaryColor":"#0089f2","bodyTextColor":"#585858","parentContainerBackgroundType":"color","innerFormBackgroundType":"none","buttonBorderColor":"#0089f2","buttonColorSelected":"#f0faff","buttonBorderColorSelected":"#0089f2","footerMarginBottom":40,"errorColor":"#ff4e4e","buttonColor":"#F8F8F8","buttonTextColor":"#0089f2","inputLabelColor":" #a3a3a3","inputTextColor":"#000000","inputBackgroundColor":"#F8F8F8","canvasSetup":"minimal"},"localization":{"dateFormat":"DD/MM/YYYY"},"exportTransparentBackground":false,"customScript":"","customRedirectUrls":[{"url":"https://chadefoster.com/thank-you/"}],"actionOnSubmit":"redirect","captureSystemDetails":true},"ownedByUser":"6276f337c5e79900232b8df1","personalisation":{"form_related_to":"(None - Start with a blank slate)"},"created":"2022-09-21T03:05:00.740Z","__v":1,"steps":[{"id":"20bd359633662bd21cd5d6d5","name":"Unnamed step 1","sortOrder":1}],"screenshotUrl":"https://res.cloudinary.com/dqnjggegp/image/upload/v1754928094/growform-production/form-screenshots/632a7f5cfdcff200aeeaa76b.png","leadsCount":77,"isActive":true,"lastEdited":"2025-08-11T16:01:29.640Z"},"accountIsActive":true,"accountIsFreeTrial":false}}; // ---- Utils ---- function safeJSONStringify(obj) { return JSON.stringify(obj) .replace(/<\/(script|style)/gi, '<\\/$1') .replace(//g, '--\\>') .replace(/\u2028/g, '\\u2028') .replace(/\u2029/g, '\\u2029'); } function preloadScript(href) { try { if (!href) return; if (document.querySelector('link[rel="preload"][href="' + href + '"]')) return; var l = document.createElement("link"); l.rel = "preload"; l.as = "script"; l.href = href; l.crossOrigin = ""; // allow cache reuse in iframe document.head.appendChild(l); } catch (_) {} } function parseQuery() { var out = {}; try { if (!window.location.search) return out; var usp = new URLSearchParams(window.location.search); usp.forEach(function (v, k) { out[k] = v; }); } catch (_) {} return out; } function buildIframeHTML(opts) { var html = '\n' + '\n' + '
\n' + ' \n' + ' \n' + ' \n' + '\n' + '\n' + ' \n' + ' \n' + '