/* growform client2 bundle.url: https://assets.growform.co/d8c7d9a4-mon2udqj/form.bundle.js resolve.source: kv resolve.at: 2026-05-19T11:43:51.657Z form.source: kv cache.age_ms: 0 kv.value_present: true fallback_used: false */ ;(function () { var EMBED_TYPE = "iFrame"; var FORM_ID = "68a4f247c2b44682883a3cad"; var FORM_BUNDLE_URL = "https://assets.growform.co/d8c7d9a4-mon2udqj/form.bundle.js"; // injected by worker (KV/memory/fallback) var FORM_DATA = {"data":{"form":{"_id":"68a4f247c2b44682883a3cad","options":{"numberOfSteps":4,"dateFormat":"DD/MM/YYYY","progressBar":{"enable":true,"hideOnFirstStep":false,"margins":{"marginTop":-19}},"continueButton":{"continueText":"Next","submitText":"GET QUOTE","backText":"Back"},"customStyles":{"width":{"unit":"px","value":500},"parentContainerMinHeight":{"value":100,"unit":"px"},"parentBackgroundImage":{"imageInitialHeight":646,"imageInitialWidth":1000,"imageHeight":646,"imageWidth":1000,"imageUrl":"https://res.cloudinary.com/dqnjggegp/image/upload/v1684278184/uploads/fwiwi2gobkerm8oamjre.webp","useTint":true,"parentBackgroundImageTintStrength":82},"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://hawkes-bay.realfencing.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":"11159889718","conversionLabel":"XEcrCL6FguUbELbOuckp"},"google_analytics":{"trackingId":"G-1QLS6XN8BL"}},"actionOnSubmit":"redirect"},"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":"Email","width":12,"margins":{"marginBottom":-15},"step":4,"sortOrder":3,"stepId":"86283b5c7594819be9c0ec73"},"phone_589083232390193":{"type":"Phone","label":"Phone number","width":12,"margins":{"marginBottom":-15},"step":4,"sortOrder":4,"helperText":"","stepId":"86283b5c7594819be9c0ec73","defaultCountryFormat":"nz"},"text_373461752242760":{"type":"Text","label":"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":"Timber Fence","image":null,"id":"fb88d0a2529315684afabe65"},{"text":"Aluminum Fence","image":null,"id":"8574e722a863175cd7cf38dd"},{"text":"Chain Link Fence","image":null,"id":"6886cfd87772cec99881eec2"},{"text":"Steel / Metal Fence","image":null,"id":"ed5facebfea247b888ba2efd"},{"text":"Fence Repair","image":null,"id":"008af0c7b752b47dbd938026"},{"text":"Other","image":null,"id":"78f26fbd070c9220340f2de4"}],"step":1,"sortOrder":2,"buttonStyle":{"minWidth":"109","buttonsPerRow":"3","height":60},"stepId":"a246dfcb8165fa764e1e6bf3","margins":{"marginTop":-6,"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":"Job Details","width":12,"stepId":"7374def8756e600a45f0446e","sortOrder":2,"margins":{"marginTop":-10}},"decorative_paragraph_890563385690226":{"type":"Decorative Paragraph","value":"Quick response within 4 hours","width":12,"stepId":"a246dfcb8165fa764e1e6bf3","sortOrder":3,"margins":{"marginTop":-2}},"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},"validationRules":{"required":true}},"decorative_header_534717381725517":{"type":"Decorative Header","value":"What is the estimate size?","width":12,"sortOrder":1,"step":1,"fieldStyle":{"fontSize":{"value":14,"unit":"px"},"fontWeight":"Bold"},"stepId":"97db2dea122fba1639852a45","margins":{"marginTop":-20}},"buttons_512783580323452":{"type":"Buttons","validationRules":{"required":false},"label":"Job size","width":12,"hideLabel":true,"multiple":false,"options":[{"text":"1 - 10m","image":null,"id":"fb88d0a2529315684afabe65"},{"text":"11 - 20m","image":null,"id":"8574e722a863175cd7cf38dd"},{"text":"21 - 50m","image":null,"id":"6886cfd87772cec99881eec2"},{"text":"50m +","image":null,"id":"ed5facebfea247b888ba2efd"}],"step":1,"sortOrder":2,"buttonStyle":{"minWidth":"109","buttonsPerRow":"4","height":59},"stepId":"97db2dea122fba1639852a45","margins":{"marginTop":-10,"marginRight":-10},"imageStyles":{"width":40,"marginBottom":2}},"decorative_paragraph_762581327307615":{"type":"Decorative Paragraph","value":"select one option above","width":12,"stepId":"97db2dea122fba1639852a45","sortOrder":3,"margins":{"marginTop":-5}},"decorative_header_708626909315303":{"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":"839877499afa582c174911d4","margins":{"marginTop":-20}},"buttons_454474849624868":{"type":"Buttons","validationRules":{"required":false},"label":"Type","width":12,"hideLabel":true,"multiple":false,"options":[{"text":"New Fence","image":"https://res.cloudinary.com/dqnjggegp/image/upload/v1754518406/uploads/q8u514if3knxrlfyofv6.webp","id":"ed5facebfea247b888ba2efd"},{"text":"Repair or Replace","image":"https://res.cloudinary.com/dqnjggegp/image/upload/v1754518410/uploads/kcebw5zmjyhcohjnvaah.webp","id":"008af0c7b752b47dbd938026"},{"text":"Fence Painting","image":"https://res.cloudinary.com/dqnjggegp/image/upload/v1754518559/uploads/egqqgpvxgbhwlqtcas77.webp","id":"78f26fbd070c9220340f2de4"}],"step":1,"sortOrder":2,"buttonStyle":{"minWidth":"109","buttonsPerRow":"3","height":75},"stepId":"839877499afa582c174911d4","margins":{"marginTop":-6,"marginRight":-10},"imageStyles":{"width":41,"marginBottom":1,"marginTop":1}},"decorative_paragraph_34064626139242":{"type":"Decorative Paragraph","value":"Quick response within 4 hours","width":12,"stepId":"839877499afa582c174911d4","sortOrder":3,"margins":{"marginTop":-2}},"hidden_757295450281743":{"type":"Hidden","hiddenFieldName":"utm_source","width":12,"stepId":"839877499afa582c174911d4","sortOrder":4},"hidden_920021666993741":{"type":"Hidden","hiddenFieldName":"utm_medium","width":12,"stepId":"839877499afa582c174911d4","sortOrder":5},"hidden_740753342939920":{"type":"Hidden","hiddenFieldName":"utm_campaign","width":12,"stepId":"839877499afa582c174911d4","sortOrder":6},"hidden_782791389667607":{"type":"Hidden","hiddenFieldName":"utm_content","width":12,"stepId":"839877499afa582c174911d4","sortOrder":7},"hidden_417119080325802":{"type":"Hidden","hiddenFieldName":"utm_term","width":12,"stepId":"839877499afa582c174911d4","sortOrder":8},"hidden_34915444852802":{"type":"Hidden","hiddenFieldName":"gclid","width":12,"stepId":"839877499afa582c174911d4","sortOrder":9},"hidden_649813057454024":{"type":"Hidden","hiddenFieldName":"landing_page_url","width":12,"stepId":"839877499afa582c174911d4","sortOrder":10,"defaultValue":"{{PAGE_URL}}"},"hidden_964659017576027":{"type":"Hidden","hiddenFieldName":"referrer_url","width":12,"stepId":"839877499afa582c174911d4","sortOrder":11,"defaultValue":"{{REFERRER_URL}}"}},"ownedByUser":"644b42d972b98f000ccc859e","formName":"Real Fencing Hawkes Bay","personalisation":{"form_related_to":"B2B / SaaS products or services"},"lastEdited":"2026-01-15T07:39:10.377Z","created":"2025-08-19T21:53:11.769Z","steps":[{"id":"839877499afa582c174911d4","name":"Job type","sortOrder":1,"copyOf":"a246dfcb8165fa764e1e6bf3"},{"id":"a246dfcb8165fa764e1e6bf3","name":"Fence Type","sortOrder":2},{"id":"97db2dea122fba1639852a45","name":"Size","sortOrder":3,"copyOf":"a246dfcb8165fa764e1e6bf3"},{"id":"219cd9a1f94a82b474ce2e6f","name":"Address","sortOrder":4},{"id":"86283b5c7594819be9c0ec73","name":"Contact info","sortOrder":5},{"id":"7374def8756e600a45f0446e","name":"Comments","sortOrder":6}],"screenshotUrl":"https://res.cloudinary.com/dqnjggegp/image/upload/v1762380858/growform-production/form-screenshots/68a4f247c2b44682883a3cad.png","leadsCount":276,"isActive":true,"__v":0,"folderId":"690bc3b5447fc15cc1c6c5d0","reportedSpam":false,"spamOcr":"Get a Quote\nWhat type of job do you have?\n101\nNew Fence\nRepair or Replace\nFence Painting\nQuick response within 4 hours Get a Quote What type of job do you have ? 101 New Fence Repair or Replace Fence Painting Quick response within 4 hours"},"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 getCookie(name) { try { var match = document.cookie.match(new RegExp('(^| )' + name + '=([^;]+)')); return match ? decodeURIComponent(match[2]) : ''; } catch (_) { return ''; } } function buildIframeHTML(opts) { var html = '\n' + '\n' + '\n' + ' \n' + ' \n' + ' \n' + '\n' + '\n' + ' \n' + '
\n' + '