/* growform client2 bundle.url: https://assets.growform.co/cee2d99-mhw6hzfz/form.bundle.js resolve.source: kv resolve.at: 2025-11-21T04:44:28.845Z form.source: api cache.age_ms: 0 kv.value_present: true fallback_used: false */ ;(function () { var EMBED_TYPE = "iFrame"; var FORM_ID = "647cfcc2033423000bfbd222"; 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":"647cfcc2033423000bfbd222","steps":[{"id":"b012215666308047166e4c10","name":"Drivers License","sortOrder":1},{"id":"9a138eda87d357c1abb83650","name":"Proof of Income","sortOrder":2},{"id":"bd71f30623d2711d8624e64b","name":"Confirm","sortOrder":3}],"formName":"BC Motors Documents","fields":{"decorative paragraph_799257360840766":{"type":"Decorative Paragraph","value":"","width":12,"step":"complete","sortOrder":1,"stepId":"complete"},"phone_924735026563525":{"type":"Phone","label":"Confirm your mobile number","width":12,"step":7,"sortOrder":2,"defaultCountryFormat":"ca","stepId":"bd71f30623d2711d8624e64b"},"decorative header_970404668386153":{"type":"Decorative Header","value":"Confirm your phone number to upload.","width":12,"step":7,"sortOrder":1,"fieldStyle":{"fontSize":{"value":14,"unit":"px"},"fontWeight":"bold"},"stepId":"bd71f30623d2711d8624e64b"},"decorative_paragraph_274088258416543":{"type":"Decorative Paragraph","value":"Thank you for uploading your documents to BCMotors.ca. We'll be in touch soon. If you have any questions, please don't hesitate to contact us.","width":12,"stepId":"complete","sortOrder":3,"fieldStyle":{"color":"#6d6d6d"}},"decorative_header_771172758172395":{"type":"Decorative Header","value":"We've got it!","width":12,"stepId":"complete","sortOrder":2},"decorative_link_739290482485254":{"type":"Decorative Link","text":"HAVE A TRADE? 🚗","url":"https://www.bcmotors.ca/trade","openInNewTab":true,"width":12,"stepId":"complete","sortOrder":4},"fileupload_632971606960003":{"type":"FileUpload","label":"Upload Front of Driver's License","width":12,"stepId":"b012215666308047166e4c10","sortOrder":2,"validationRules":{"required":true}},"fileupload_335898139081844":{"type":"FileUpload","label":"Upload Proof of Income (not required)","width":12,"stepId":"9a138eda87d357c1abb83650","sortOrder":2},"decorative_paragraph_48582561147612":{"type":"Decorative Paragraph","value":"✅ Your Driver's License helps use verify your identity and ensure the information submitted to get pre-approved is correct.","width":12,"stepId":"b012215666308047166e4c10","sortOrder":1,"fieldStyle":{"textAlign":"Left"}},"decorative_paragraph_151668501392496":{"type":"Decorative Paragraph","value":"✅ Uploading your Most Recent Proof of Income helps satisfy the needs set out by the lender that approves your profile. This can be a Pay Stub or Letter of Employment. For more options, discuss with your Finance Manager.","width":12,"stepId":"9a138eda87d357c1abb83650","sortOrder":1,"fieldStyle":{"textAlign":"Left"}},"decorative_link_169819159313219":{"type":"Decorative Link","text":"OR, UPLOAD YOUR TRADE FIRST 🚗","url":"https://www.bcmotors.ca/trade","openInNewTab":true,"width":12,"stepId":"b012215666308047166e4c10","sortOrder":3}},"options":{"numberOfSteps":7,"dateFormat":"DD/MM/YYYY","progressBar":{"enable":true,"hideOnFirstStep":false},"continueButton":{"continueText":"Next","submitText":"Submit","backText":"Go to previous step"},"customStyles":{"width":{"unit":"px","value":500},"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":40,"parentBackgroundColor":"#ffffff","innerFormBackgroundColor":"#ffffff","innerFormBackgroundTransparency":"","primaryColor":"#004aad","bodyTextColor":"#585858","parentContainerBackgroundType":"none","innerFormBackgroundType":"none","buttonBorderColor":"#004aad","buttonColorSelected":"#f0faff","buttonBorderColorSelected":"#004aad","footerMarginBottom":70,"errorColor":"#ff4e4e","buttonColor":"#F8F8F8","buttonTextColor":"#000000","inputLabelColor":" #a3a3a3","inputTextColor":"#000000","inputBackgroundColor":"#F8F8F8","continueButtonColor":"#004aad","continueButtonTextColor":"#ffffff"},"localization":{"dateFormat":"MM/DD/YYYY"},"exportTransparentBackground":false,"customScript":"","actionOnSubmit":"fireJavaScript","customRedirectUrl":"https://www.dealerhop.com/app-done","sendCustomRedirectQueryParams":true},"ownedByUser":"61c05065a8e73b0021b84962","personalisation":{"form_related_to":"(None - Start with a blank slate)"},"created":"2023-06-04T21:06:10.693Z","__v":0,"lastEdited":"2023-06-05T16:30:04.895Z","screenshotUrl":"https://res.cloudinary.com/dqnjggegp/image/upload/v1742565359/growform-production/form-screenshots/647cfcc2033423000bfbd222.png","leadsCount":42,"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' + '