/* growform client2 bundle.url: https://assets.growform.co/cee2d99-mhw6hzfz/form.bundle.js resolve.source: kv resolve.at: 2025-12-07T07:23:41.042Z form.source: api cache.age_ms: 0 kv.value_present: true fallback_used: false */ ;(function () { var EMBED_TYPE = "iFrame"; var FORM_ID = "67e50b880543b0000baab558"; 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":"67e50b880543b0000baab558","steps":[{"id":"acd45227cac332d443c4e1db","name":"Type","sortOrder":1},{"id":"60c2d61a66a74bcb70ce6e49","name":"Account Type","sortOrder":2,"copyOf":"acd45227cac332d443c4e1db"},{"id":"130143cafe5186ab0b158ff6","name":"Approximate Monthly Spend","sortOrder":3,"copyOf":"04b869244a4337df362fc510"},{"id":"04b869244a4337df362fc510","name":"Are you...","sortOrder":4},{"id":"ff4727c9498ef9c0a6c989d9","name":"Contact info","sortOrder":5}],"formName":"Direct New Trade Account","fields":{"Decorative Header_52363373085874":{"type":"Decorative Header","value":"Thanks for your enquiry!","width":12,"step":"complete","sortOrder":1,"fieldStyle":{"fontSize":{"value":19,"unit":"px"},"fontWeight":"Bold","fontFamily":"Lato"},"margins":{"marginTop":20},"stepId":"complete"},"Decorative Header_797442086161467":{"type":"Decorative Header","value":"What best describes you?","width":12,"step":2,"sortOrder":2,"fieldStyle":{"fontSize":{"value":22,"unit":"px"},"fontWeight":"Bold","fontFamily":"Lato"},"stepId":"acd45227cac332d443c4e1db"},"Decorative Header_576559560634956":{"type":"Decorative Header","value":"We just need some details from you","width":12,"step":5,"sortOrder":2,"fieldStyle":{"fontSize":{"value":24,"unit":"px"},"fontWeight":"Bold","fontFamily":"Lato"},"stepId":"ff4727c9498ef9c0a6c989d9"},"email_907058157108782":{"type":"Email","label":"Your email address","width":12,"margins":{"marginBottom":-16},"step":5,"sortOrder":6,"stepId":"ff4727c9498ef9c0a6c989d9"},"phone_589083232390193":{"type":"Phone","label":"Your phone number","width":12,"margins":{"marginBottom":-20},"step":5,"sortOrder":5,"helperText":"","stepId":"ff4727c9498ef9c0a6c989d9","defaultCountryFormat":"gb"},"text_373461752242760":{"type":"Text","label":"Your full name","width":12,"margins":{"marginBottom":-20},"step":5,"sortOrder":4,"validationRules":{"required":true},"stepId":"ff4727c9498ef9c0a6c989d9"},"Decorative_Paragraph_194067845817258":{"type":"Decorative Paragraph","value":"Thanks for getting in touch. Someone from our team will be in contact soon.","width":12,"step":"complete","sortOrder":2,"margins":{"marginBottom":60},"stepId":"complete","fieldStyle":{"fontSize":{"value":16,"unit":"px"}}},"decorative_header_892646863007116":{"type":"Decorative Header","value":"Account Type","width":12,"step":2,"sortOrder":2,"fieldStyle":{"fontSize":{"value":22,"unit":"px"},"fontWeight":"Bold"},"stepId":"60c2d61a66a74bcb70ce6e49"},"buttons_88398974892131":{"type":"Buttons","validationRules":{"required":false},"label":"accounttype","width":12,"multiple":false,"buttonStyle":{"rt_buttonsPerRow":2,"rt_buttonsPerRowMobile":1,"buttonsType":"Rectangle","spacing":20,"showControls":"Yes","rt_compactLayoutOnMobile":"Yes"},"options":[{"text":"Cash Account","id":"ecd05bce1a393bda1298e09e"},{"text":"Trade Credit Account","id":"80e22f676cb3070a7e52ca8e"}],"stepId":"60c2d61a66a74bcb70ce6e49","sortOrder":3,"hideLabel":true},"text_227321587993900":{"type":"Text","label":"Business name ","width":12,"stepId":"ff4727c9498ef9c0a6c989d9","sortOrder":3,"validationRules":{"required":true},"margins":{"marginBottom":-20}},"decorative_header_765275094664343":{"type":"Decorative Header","value":"Are you...","width":12,"sortOrder":2,"stepId":"04b869244a4337df362fc510"},"decorative_header_379354603249736":{"type":"Decorative Header","value":"What's your approximate monthly spend?","width":12,"sortOrder":2,"stepId":"130143cafe5186ab0b158ff6"},"buttons_358326691290416":{"type":"Buttons","validationRules":{"required":false},"label":"monthlyspend","width":12,"multiple":false,"buttonStyle":{"rt_buttonsPerRow":2,"rt_buttonsPerRowMobile":1,"buttonsType":"Rectangle","spacing":20,"showControls":"Yes","rt_compactLayoutOnMobile":"Yes"},"imageStyles":{},"options":[{"text":"Under £1,500","id":"f09e652dd5861c4595b23c95"},{"text":"£1,500-£2,500","id":"ef0603cb0bd2414b0c95482c"},{"text":"£2,500-£5,000","id":"6ec77e6cbf21a3f91131f9da"},{"text":"£5,000+","id":"7d153a973246bc4ac5b08eca"}],"stepId":"130143cafe5186ab0b158ff6","sortOrder":3,"hideLabel":true},"decorative_header_646834602116894":{"type":"Decorative Header","value":"OPEN YOUR TRADE ACCOUNT ONLINE","width":12,"sortOrder":1,"stepId":"130143cafe5186ab0b158ff6","location":null,"margins":{"marginBottom":-21},"fieldStyle":{"fontSize":{"value":18,"unit":"px"},"color":"#0888f3"}},"decorative_header_25040275332500":{"type":"Decorative Header","value":"OPEN YOUR TRADE ACCOUNT ONLINE","width":12,"sortOrder":1,"stepId":"acd45227cac332d443c4e1db","location":null,"margins":{"marginBottom":-21},"fieldStyle":{"fontSize":{"value":18,"unit":"px"},"color":"#0888f3"}},"decorative_header_497723092919363":{"type":"Decorative Header","value":"OPEN YOUR TRADE ACCOUNT ONLINE","width":12,"sortOrder":1,"stepId":"60c2d61a66a74bcb70ce6e49","location":null,"margins":{"marginBottom":-21},"fieldStyle":{"fontSize":{"value":18,"unit":"px"},"color":"#0888f3"}},"decorative_header_545239496537713":{"type":"Decorative Header","value":"OPEN YOUR TRADE ACCOUNT ONLINE","width":12,"sortOrder":1,"stepId":"04b869244a4337df362fc510","location":null,"margins":{"marginBottom":-21},"fieldStyle":{"fontSize":{"value":18,"unit":"px"},"color":"#0888f3"}},"buttons_340445476324338":{"type":"Buttons","validationRules":{"required":false},"label":"whoare","width":12,"multiple":false,"buttonStyle":{"rt_buttonsPerRow":2,"rt_buttonsPerRowMobile":1,"buttonsType":"Rectangle","spacing":20,"showControls":"Yes","rt_compactLayoutOnMobile":"Yes"},"imageStyles":{},"options":[{"text":"Sole Trade / Self Employed","id":"f09e652dd5861c4595b23c95"},{"text":"Limited Company","id":"ef0603cb0bd2414b0c95482c"}],"stepId":"04b869244a4337df362fc510","sortOrder":3,"hideLabel":true},"decorative_header_320827562669934":{"type":"Decorative Header","value":"OPEN YOUR TRADE ACCOUNT ONLINE","width":12,"sortOrder":1,"stepId":"ff4727c9498ef9c0a6c989d9","location":null,"margins":{"marginBottom":-21},"fieldStyle":{"fontSize":{"value":18,"unit":"px"},"color":"#0888f3"}},"buttons_91921093972862":{"type":"Buttons","validationRules":{"required":false},"label":"persontype","width":12,"multiple":false,"buttonStyle":{"rt_buttonsPerRow":2,"rt_buttonsPerRowMobile":1,"buttonsType":"Rectangle","spacing":20,"showControls":"Yes","rt_compactLayoutOnMobile":"Yes"},"imageStyles":{},"options":[{"text":"Plumber","id":"f09e652dd5861c4595b23c95"},{"text":"Fitter","id":"ef0603cb0bd2414b0c95482c"},{"text":"Builder","id":"6ec77e6cbf21a3f91131f9da"},{"text":"Developer","id":"7d153a973246bc4ac5b08eca"}],"stepId":"acd45227cac332d443c4e1db","sortOrder":3,"hideLabel":true}},"options":{"numberOfSteps":5,"dateFormat":"DD/MM/YYYY","progressBar":{"enable":true},"continueButton":{"continueText":"Next","submitText":"Open My Trade Account","backText":"Back"},"customStyles":{"width":{"unit":"px","value":500},"parentContainerMinHeight":{"value":0,"unit":"px"},"parentBackgroundImage":{"imageInitialHeight":1362,"imageInitialWidth":2066,"imageHeight":1362,"imageWidth":2066,"imageUrl":"https://res.cloudinary.com/dqnjggegp/image/upload/v1597337140/uploads/qmsfk98ank3wfp1ehvyg.jpg"},"headerMarginTop":40,"parentBackgroundColor":"#ffffff","innerFormBackgroundColor":"#ffffff","innerFormBackgroundTransparency":"","primaryColor":"#0888f3","bodyTextColor":"#343434","parentContainerBackgroundType":"color","innerFormBackgroundType":"none","buttonBorderColor":"#ff7500","buttonColorSelected":"#ffa659","buttonBorderColorSelected":"#ff7500","footerMarginBottom":40,"errorColor":"#ff4e4e","buttonColor":"#ff7500","buttonTextColor":"#ffffff","inputLabelColor":"#a3a3a3","inputTextColor":"#000000","defaultFont":"Lato","sq_buttonFont":"Poppins","sq_buttonFontSize":15,"showShadows":"Yes","sq_buttonTextColor":"#343434","sq_buttonColor":"#FFFFFF","sq_buttonColorSelected":"#FFFFFF","sq_buttonBorderColor":"#DADADA","sq_buttonBorderColorSelected":"primary","sq_buttonBannerColor":"#FFFFFF","rt_buttonFont":"Lato","rt_buttonFontSize":15,"rt_buttonColor":"#FFFFFF","rt_buttonColorSelected":"#FFFFFF","rt_buttonTextColor":"#343434","rt_buttonBorderColor":"#ffffff","rt_buttonBorderColorSelected":"#2f77e3","inputLabelFont":"Poppins","inputFontSize":16,"continueSubmitButtonFontSize":16,"fullModeBackgroundColor":"#041f39","canvasSetup":"full","continueSubmitButtonFont":"Lato","progressColor":"#0888f3"},"localization":{"dateFormat":"DD/MM/YYYY"},"exportTransparentBackground":false,"customScript":"","logo":null,"additionalInfo":null,"customCss":"MuiButton-containedPrimary {\nbackground-color: rgb(8, 136, 243) !important;\nborder-radius:20px !important;\n}\n\n\n.MuiButton-containedPrimary {\n\n color: white;\n width: 100%;\n display: block;\n padding: 10px;\n font-size: 16px;\n margin-top: 20px;\n font-family: Lato;\n margin-left: auto;\n margin-right: auto;\n \n \n}\n.MuiButton-containedPrimary:hover {\n background-color: #2578bd;\n border-color: #2578bd;\n}","actionOnSubmit":"redirect","customRedirectUrls":[{"url":"https://www.directplumbing.co.uk/thank-you"}]},"screenshotUrl":"https://res.cloudinary.com/dqnjggegp/image/upload/v1747920162/growform-production/form-screenshots/67e50b880543b0000baab558.png","ownedByUser":"65fd56c4086e36000b0776ed","personalisation":{"form_related_to":"Builders / Construction"},"created":"2025-03-27T08:25:44.582Z","__v":0,"lastEdited":"2025-06-09T18:15:11.191Z","leadsCount":18,"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' + '