/* growform client2 bundle.url: https://assets.growform.co/cee2d99-mhw6hzfz/form.bundle.js resolve.source: kv resolve.at: 2025-11-13T02:18:49.168Z form.source: kv cache.age_ms: 0 kv.value_present: true fallback_used: false */ ;(function () { var EMBED_TYPE = "iFrame"; var FORM_ID = "645706403de013000ba1d831"; var FORM_BUNDLE_URL = "https://assets.growform.co/cee2d99-mhw6hzfz/form.bundle.js"; // injected by worker (KV/memory/fallback) var FORM_DATA = {"data":{"form":{"_id":"645706403de013000ba1d831","steps":[{"id":"a246dfcb8165fa764e1e6bf3","name":"Unnamed step 1","sortOrder":1},{"id":"18931a8581df35259685c4b3","name":"Unnamed step 2","sortOrder":2,"copyOf":"a246dfcb8165fa764e1e6bf3"},{"id":"c2b6b46d77ad7d413746ad79","name":"Copy of Unnamed step 2","sortOrder":3,"copyOf":"18931a8581df35259685c4b3"},{"id":"219cd9a1f94a82b474ce2e6f","name":"Unnamed step 3","sortOrder":4},{"id":"86283b5c7594819be9c0ec73","name":"Unnamed step 4","sortOrder":5},{"id":"7374def8756e600a45f0446e","name":"(Unnamed step)","sortOrder":6}],"formName":"Real Drain Layers","fields":{"Decorative Header_52363373085874":{"type":"Decorative Header","value":"Thank you!","width":12,"step":"complete","sortOrder":1,"fieldStyle":{"fontSize":{"value":"24","unit":"px"},"fontWeight":"Bold"},"margins":{"marginTop":20},"stepId":"complete"},"Decorative Header_467388329589508":{"type":"Decorative Header","value":"What’s the site address?","width":12,"step":3,"sortOrder":1,"fieldStyle":{"fontSize":{"value":14,"unit":"px"},"fontWeight":"Bold"},"stepId":"219cd9a1f94a82b474ce2e6f","margins":{"marginTop":-15}},"Decorative Header_576559560634956":{"type":"Decorative Header","value":"Where can we send the quote to?","width":12,"step":4,"sortOrder":1,"fieldStyle":{"fontSize":{"value":14,"unit":"px"},"fontWeight":"Bold"},"stepId":"86283b5c7594819be9c0ec73","margins":{"marginTop":-15}},"email_907058157108782":{"type":"Email","label":"Your email address","width":12,"margins":{"marginBottom":-15},"step":4,"sortOrder":3,"stepId":"86283b5c7594819be9c0ec73"},"phone_589083232390193":{"type":"Phone","label":"Your phone number","width":12,"margins":{"marginBottom":-15},"step":4,"sortOrder":4,"helperText":"","stepId":"86283b5c7594819be9c0ec73","defaultCountryFormat":"nz"},"text_373461752242760":{"type":"Text","label":"Your name","width":12,"margins":{"marginBottom":-15,"marginTop":-7},"step":4,"sortOrder":2,"validationRules":{"required":true},"stepId":"86283b5c7594819be9c0ec73"},"Decorative Paragraph_194067845817258":{"type":"Decorative Paragraph","value":"We'll be in contact soon with your free quote.","width":12,"step":"complete","sortOrder":2,"margins":{"marginBottom":60},"stepId":"complete"},"Decorative Header_186644146795203":{"type":"Decorative Header","value":"What type of job do you have?","width":12,"sortOrder":1,"step":1,"fieldStyle":{"fontSize":{"value":14,"unit":"px"},"fontWeight":"Bold"},"stepId":"a246dfcb8165fa764e1e6bf3","margins":{"marginTop":-20}},"buttons_761291731351532":{"type":"Buttons","validationRules":{"required":false},"label":"What type of job do you have?","width":12,"hideLabel":true,"multiple":false,"options":[{"text":"Sewers","image":null,"id":"8574e722a863175cd7cf38dd"},{"text":"Storm Water","image":null,"id":"fb88d0a2529315684afabe65"},{"text":"Lawn & Garden","image":null,"id":"ed5facebfea247b888ba2efd"},{"text":"Basement Flooding","image":null,"id":"008af0c7b752b47dbd938026"},{"text":"Manholes","image":null,"id":"6886cfd87772cec99881eec2"},{"text":"Driveway channels","image":null,"id":"78f26fbd070c9220340f2de4"},{"text":"CCTV Survey","image":null,"id":"97b5e08a86148c2cdc6e685a"},{"text":"Repairs","image":null,"id":"62a881cc9775de1a35a3c932"}],"step":1,"sortOrder":2,"buttonStyle":{"minWidth":"109","buttonsPerRow":"4","height":60},"stepId":"a246dfcb8165fa764e1e6bf3","margins":{"marginTop":-10,"marginRight":-10},"imageStyles":{"width":40,"marginBottom":2}},"decorative_header_86443135174743":{"type":"Decorative Header","value":"Job Information","width":12,"sortOrder":1,"stepId":"7374def8756e600a45f0446e","fieldStyle":{"fontSize":{"value":12,"unit":"px"}},"margins":{"marginTop":-15}},"text_629763666683611":{"type":"Text","label":"Please share a few details about the job.","width":12,"stepId":"7374def8756e600a45f0446e","sortOrder":2,"margins":{"marginTop":-10}},"decorative_paragraph_890563385690226":{"type":"Decorative Paragraph","value":"select one option above","width":12,"stepId":"a246dfcb8165fa764e1e6bf3","sortOrder":3,"margins":{"marginTop":-5}},"decorative_image_575986553739432":{"type":"Decorative Image","value":"https://res.cloudinary.com/dqnjggegp/image/upload/v1683591297/uploads/xhjq9hqyfrch5xusw1ft.webp","width":12,"imageWidth":422,"imageHeight":53,"imageInitialHeight":53,"imageInitialWidth":422,"stepId":"header","sortOrder":1,"margins":{"marginTop":15}},"address_641883214479540":{"type":"Address","label":"What is your address?","width":12,"stepId":"219cd9a1f94a82b474ce2e6f","sortOrder":2,"margins":{"marginTop":-10}},"decorative_header_453507347850672":{"type":"Decorative Header","value":"What is your time frame?","width":12,"sortOrder":1,"step":1,"fieldStyle":{"fontSize":{"value":14,"unit":"px"},"fontWeight":"Bold"},"stepId":"18931a8581df35259685c4b3","margins":{"marginTop":-20}},"buttons_393545121981301":{"type":"Buttons","validationRules":{"required":false},"label":"Whats your Time frame?","width":12,"hideLabel":true,"multiple":false,"options":[{"text":"Urgent","image":null,"id":"8574e722a863175cd7cf38dd"},{"text":"1-2 Weeks","image":null,"id":"fb88d0a2529315684afabe65"},{"text":"1-2 Months","image":null,"id":"ed5facebfea247b888ba2efd"},{"text":"Not Sure","image":null,"id":"008af0c7b752b47dbd938026"}],"step":1,"sortOrder":2,"buttonStyle":{"minWidth":"109","buttonsPerRow":"4","height":60},"stepId":"18931a8581df35259685c4b3","margins":{"marginTop":-10,"marginRight":-10},"imageStyles":{"width":40,"marginBottom":2}},"decorative_paragraph_738397560172582":{"type":"Decorative Paragraph","value":"select one option above","width":12,"stepId":"18931a8581df35259685c4b3","sortOrder":3,"margins":{"marginTop":-5}},"decorative_header_964027059174836":{"type":"Decorative Header","value":"What's your nearest city?","width":12,"sortOrder":1,"step":1,"fieldStyle":{"fontSize":{"value":14,"unit":"px"},"fontWeight":"Bold"},"stepId":"c2b6b46d77ad7d413746ad79","margins":{"marginTop":-20}},"buttons_688644806230149":{"type":"Buttons","validationRules":{"required":false},"label":"City","width":12,"hideLabel":true,"multiple":false,"options":[{"text":"Auckland","image":null,"id":"8574e722a863175cd7cf38dd"},{"text":"Christchurch","image":null,"id":"fb88d0a2529315684afabe65"},{"text":"Wellington","image":null,"id":"ed5facebfea247b888ba2efd"}],"step":1,"sortOrder":2,"buttonStyle":{"minWidth":"109","buttonsPerRow":"3","height":48},"stepId":"c2b6b46d77ad7d413746ad79","margins":{"marginTop":-10,"marginRight":-10},"imageStyles":{"width":40,"marginBottom":2}},"decorative_paragraph_416337034354333":{"type":"Decorative Paragraph","value":"select one option above","width":12,"stepId":"c2b6b46d77ad7d413746ad79","sortOrder":3,"margins":{"marginTop":-5}}},"options":{"numberOfSteps":4,"dateFormat":"DD/MM/YYYY","progressBar":{"enable":true,"hideOnFirstStep":false},"continueButton":{"continueText":"Next","submitText":"GET QUOTE","backText":"Back"},"customStyles":{"width":{"unit":"px","value":500},"parentContainerMinHeight":{"value":100,"unit":"px"},"parentBackgroundImage":{"imageInitialHeight":1116,"imageInitialWidth":1902,"imageHeight":1116,"imageWidth":1902,"imageUrl":"https://res.cloudinary.com/dqnjggegp/image/upload/v1601642072/uploads/kli1cesuxhxnocew247x.jpg"},"headerMarginTop":-30,"parentBackgroundColor":"#e4e4e4","innerFormBackgroundColor":"#e4e4e4","innerFormBackgroundTransparency":"","primaryColor":"#0079ff","bodyTextColor":"#030000","parentContainerBackgroundType":"color","innerFormBackgroundType":"color","buttonBorderColor":"#f5f5f5","buttonColorSelected":"#dce6f5","buttonBorderColorSelected":"#0079ff","footerMarginBottom":30,"errorColor":"#ff4e4e","buttonColor":"#ffffff","inputLabelColor":"#a3a3a3","inputTextColor":"#000000","buttonTextColor":"#000000","continueButtonColor":"#ef4923"},"localization":{"dateFormat":"DD/MM/YYYY"},"exportTransparentBackground":false,"customScript":"","customRedirectUrls":[{"url":"https://realdrainlayers.co.nz/thank-you/"}],"customCss":"#growform_5ap8d5a8na90d .parentContainer{ border-radius: 15px !important; }\n\n#growform_5ap8d5a8na90d .formBackground{ max-width: 500px;\n min-width: 500px;\n background: rgba(228, 228, 228, 0);\nborder-radius: 15px !important;\n }\n\n\n\n.backButton {\n color: black !important;\n}.\nparentContainer{ height: 470px !important; border-radius:15px !important }\n\n\n\n.MuiGrid-root.fieldbg.fieldbg_PoweredByBanner.MuiGrid-item.MuiGrid-grid-xs-12 {\n display: ;\n}\n\nelement {\n\n height: 110px;\n\n}\n.buttons_761291731351532-button:hover {\nbackground-color: #62a5c0; box-shadow: 0 3px 10px rgb(0 0 0 / 0.2);\n}\n\n.buttons_723164589785671-button:hover{\nbackground-color: #62a5c0; box-shadow: 0 3px 10px rgb(0 0 0 / 0.2);\n}\n","analyticsSettings":{"custom_gtm":{"childContainerId":"","parentContainerId":""},"google_ads":{"conversionId":"","conversionLabel":""},"google_analytics":{"trackingId":""}},"actionOnSubmit":"redirect"},"ownedByUser":"644b42d972b98f000ccc859e","personalisation":{"form_related_to":"B2B / SaaS products or services"},"created":"2023-05-07T02:00:32.778Z","__v":0,"lastEdited":"2025-11-13T01:27:33.547Z","screenshotUrl":"https://res.cloudinary.com/dqnjggegp/image/upload/v1742565359/growform-production/form-screenshots/645706403de013000ba1d831.png","leadsCount":394,"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' + '