/* growform client2 bundle.url: https://assets.growform.co/5050e03-mh22ly5y/form.bundle.js resolve.source: kv resolve.at: 2025-10-22T18:00:08.051Z form.source: api cache.age_ms: 0 kv.value_present: true fallback_used: false */ ;(function () { var EMBED_TYPE = "iFrame"; var FORM_ID = "657084c0d91c5d000badd972"; var FORM_BUNDLE_URL = "https://assets.growform.co/5050e03-mh22ly5y/form.bundle.js"; // injected by worker (KV/memory/fallback) var FORM_DATA = {"data":{"form":{"_id":"657084c0d91c5d000badd972","steps":[{"id":"750d7ea8e05dfd72892b321c","name":"Unnamed step 1","sortOrder":1},{"id":"3e2325f39d1627965060bfab","name":"Unnamed step 2","sortOrder":2},{"id":"3b1a20dd9e7da66e2738cabe","name":"Unnamed step 3","sortOrder":3},{"id":"dd0d481c30941c1742366562","name":"Unnamed step 4","sortOrder":4},{"id":"3fc90c396c3df99f2f5392eb","name":"Upload Bills","sortOrder":5,"copyOf":"dd0d481c30941c1742366562"},{"id":"95c3703bcf3968504eb437a9","name":"Unnamed step 5","sortOrder":6}],"formName":"RBS Freedom Solar","fields":{"decorative text_467388329589508":{"type":"Decorative Paragraph","value":"Tell us a few details and we'll work out how much you can save","width":12,"step":"header","sortOrder":3,"fieldStyle":{"fontSize":{"value":"15","unit":"px"},"fontWeight":"Bold"},"stepId":"header"},"decorative text_405809205132314":{"type":"Decorative Header","value":"Find Out How Much You Could Save with Solar Energy","width":12,"step":"header","sortOrder":2,"fieldStyle":{"fontSize":{"value":"27","unit":"px"},"fontWeight":"Bold"},"margins":{"marginTop":null},"stepId":"header"},"decorative text_797442086161467":{"type":"Decorative Header","value":"How much is your monthly electricity bill?","width":12,"step":3,"sortOrder":1,"fieldStyle":{"fontSize":{"value":"21","unit":"px"},"fontWeight":"Bold"},"stepId":"3b1a20dd9e7da66e2738cabe"},"decorative text_576559560634956":{"type":"Decorative Header","value":"Where shall we send your estimate?","width":12,"step":5,"sortOrder":1,"fieldStyle":{"fontSize":{"value":"22","unit":"px"},"fontWeight":"Bold"},"stepId":"95c3703bcf3968504eb437a9"},"email_907058157108782":{"type":"Email","label":"Your email address","width":12,"margins":{"marginBottom":0},"step":5,"sortOrder":3,"stepId":"95c3703bcf3968504eb437a9"},"phone_589083232390193":{"type":"Phone","label":"Your phone number","width":12,"margins":{"marginBottom":0},"step":5,"sortOrder":4,"helperText":"","stepId":"95c3703bcf3968504eb437a9"},"text_373461752242760":{"type":"Text","label":"Your name","width":12,"margins":{"marginBottom":0},"step":5,"sortOrder":2,"validationRules":{"required":true},"stepId":"95c3703bcf3968504eb437a9"},"decorative text_194067845817258":{"type":"Decorative Paragraph","value":"Thanks for getting in touch. We'll be in contact soon with your free solar report with 24-48 hours.","width":12,"step":"complete","sortOrder":2,"margins":{"marginBottom":60},"stepId":"complete"},"decorative divider_421201658947640":{"type":"Decorative Divider","width":12,"margins":{"marginBottom":0,"marginTop":5},"step":"header","sortOrder":4,"fieldStyle":{"backgroundColor":"#ffffff","width":"60"},"stepId":"header"},"decorative image_263041088512522":{"type":"Decorative Image","value":"https://res.cloudinary.com/dqnjggegp/image/upload/v1615659139/uploads/yanils3kvioymq17ve3h.png","width":12,"imageWidth":40,"imageHeight":40,"imageInitialHeight":140,"imageInitialWidth":140,"step":"header","sortOrder":1,"stepId":"header"},"decorative text_56213455664147":{"type":"Decorative Header","value":"Do you own the property?","width":12,"step":2,"sortOrder":1,"fieldStyle":{"fontSize":{"value":"21","unit":"px"},"fontWeight":"Bold"},"stepId":"3e2325f39d1627965060bfab"},"decorative header_838442739020120":{"type":"Decorative Header","value":"What type of property do you live in?","width":12,"sortOrder":1,"step":1,"stepId":"750d7ea8e05dfd72892b321c"},"buttons_931266633117766":{"type":"Buttons","validationRules":{"required":false},"label":"What type of premises need our attention?","width":12,"hideLabel":true,"multiple":false,"buttonStyle":{"buttonsPerRow":"3","height":"100"},"options":[{"text":"House","image":"https://res.cloudinary.com/dqnjggegp/image/upload/v1615660851/uploads/vuxlseqvthtep91rzziy.png","id":"8d4617fb74c7030d036bd121"},{"text":"Bungalow","image":"https://res.cloudinary.com/dqnjggegp/image/upload/v1615660845/uploads/gpkuc9zudnbe3sjcfvmg.png","id":"c6043366444f0953e7a62b60"},{"text":"Flat / apartment","image":"https://res.cloudinary.com/dqnjggegp/image/upload/v1615660836/uploads/wwvzqqx2fv5m6sj7dgiu.png","id":"e56aa4063f0c3a7852bfe75b"}],"step":1,"sortOrder":2,"stepId":"750d7ea8e05dfd72892b321c"},"single select_974125325347815":{"type":"Single Select","width":12,"label":"Your monthly electricity bill","options":[{"text":"Less than $30","id":"d03aa60c742bc00162411828"},{"text":"$30 - $60","id":"bcf8cf5df6d84d388ce9deb3"},{"text":"$60 - $90","id":"2766ca3a3908810f7baae235"},{"text":"$90 - $120","image":null,"id":"ca0b020212f1d661aa76272a"},{"text":"$120 - $150","image":null,"id":"b8da705c70152029c83231d4"},{"text":"$150 - $180","image":null,"id":"5d9017f912f161385b0ee0c1"},{"text":"$180+","image":null,"id":"8445776801c3fcd36c7e7f26"}],"helperText":null,"step":3,"sortOrder":2,"validationRules":{"required":true},"stepId":"3b1a20dd9e7da66e2738cabe"},"decorative header_903079413764994":{"type":"Decorative Header","value":"Where is your property?","width":12,"sortOrder":1,"step":4,"stepId":"dd0d481c30941c1742366562"},"address_531534375885751":{"type":"Address","label":"What is your address?","width":12,"step":4,"sortOrder":2,"helperText":"We'll use this to work out how much sun the property gets","validationRules":{"required":true},"stepId":"dd0d481c30941c1742366562"},"decorative header_206624343366428":{"type":"Decorative Header","value":"Thanks for your request!","width":12,"step":"complete","sortOrder":1,"fieldStyle":{"fontSize":{"value":22,"unit":"px"}},"stepId":"complete"},"decorative link_235137810882495":{"type":"Decorative Link","text":"GO TO HOME PAGE","url":"http://www.reliantbridge.com","openInNewTab":false,"width":12,"step":"complete","sortOrder":3,"stepId":"complete"},"buttons_827289591411458":{"type":"Buttons","validationRules":{"required":false},"label":"Do you own the property?","width":12,"multiple":false,"buttonStyle":{"buttonsPerRow":"2","height":"50"},"options":[{"text":"Yes","image":null,"id":"3728da998d57d65d8d0e0313"},{"text":"No","id":"a34b2ea8f2b79292609baf06"}],"step":2,"sortOrder":2,"hideLabel":true,"stepId":"3e2325f39d1627965060bfab"},"decorative_header_490954130332945":{"type":"Decorative Header","value":"Upload your most recent energy bill.","width":12,"sortOrder":1,"step":4,"stepId":"3fc90c396c3df99f2f5392eb"},"fileupload_892426774768681":{"type":"FileUpload","label":"Which file do you want to upload?","width":12,"stepId":"3fc90c396c3df99f2f5392eb","sortOrder":2,"helperText":"We'll need your bill to calculate the amount of solar panels you'll need and how much you'll save on your energy bill by going solar."}},"options":{"numberOfSteps":5,"dateFormat":"DD/MM/YYYY","progressBar":{"enable":true},"continueButton":{"continueText":"Next","submitText":"Send me my estimate!","backText":"Back"},"customStyles":{"width":{"unit":"px","value":550},"parentContainerMinHeight":{"value":0,"unit":"px"},"parentBackgroundImage":{"imageInitialHeight":675,"imageInitialWidth":1200,"imageHeight":675,"imageWidth":1200,"imageUrl":"https://res.cloudinary.com/dqnjggegp/image/upload/v1615660050/uploads/ihistpzwcqm50isa7jhn.jpg","useTint":true,"parentBackgroundImageTintStrength":30},"headerMarginTop":70,"parentBackgroundColor":"#262626","innerFormBackgroundColor":"#ffffff","innerFormBackgroundTransparency":"","primaryColor":"#f8b704","bodyTextColor":"#ffffff","parentContainerBackgroundType":"image","innerFormBackgroundType":"none","buttonBorderColor":"#ffffff","buttonColorSelected":"#e2d4b0","buttonBorderColorSelected":"#f8b704","footerMarginBottom":70,"errorColor":"#ff4e4e","buttonColor":"#ffffff","inputLabelColor":"#a3a3a3","inputTextColor":"#000000","buttonTextColor":"#000000"},"localization":{"dateFormat":"MM/DD/YYYY"},"exportTransparentBackground":false,"customScript":"","customRedirectUrls":[{"url":""}]},"ownedByUser":"62e33ce03bf39800955cc13e","personalisation":{"form_related_to":"Solar energy"},"created":"2023-12-06T14:27:12.310Z","__v":0,"lastEdited":"2023-12-06T14:35:55.636Z","screenshotUrl":"https://res.cloudinary.com/dqnjggegp/image/upload/v1742564805/growform-production/form-screenshots/657084c0d91c5d000badd972.png","leadsCount":2,"isActive":true},"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' + '