var redirectUrlAfterSubmission = "https://quotes.expertmarket.co.uk/typ/ts-uk-new/"; window.chameleon = window.chameleon || {}; var inputData34881f0e34 = {formId: '15504',themeName: 'custom',domain: 'eu',env: 'prod',headerEnabled: false,borderEnabled: true,height: 450,belowFold: false,dynamicHeight: true,autoScroll: true,isConsentStatementAboveNavigation: false,maxWidth: 710,paletteOverrides: {"widgetBackgroundColor":"#FDFDFD","secondaryBackgroundColor":"rgb(209,236,250)","scrollIndicatorColor":"#323232","primaryTextColor":"#000000","secondaryTextColor":"#4F4F4F","answerUnselectedColor":"#949494","answerSelectedColor":"#00B59B","answerBackgroundColor":"rgb(249,249,249)","continueButtonColor":"#fc940c","continueButtonHoverColor":"#fc940c","continueButtonTextColor":"#FFFFFF","backButtonColor":"#EDEDED","backButtonHoverColor":"#DFDFDF","progressBarFilledColor":"#00B59B"}, eventHandlers: {formSubmit: function(eventInfo) {document.querySelector('iframe[id^="' + eventInfo.iFrameId + '"]').closest("div").style.display = "none"; if (window.anuraData) {window.dataLayer = window.dataLayer || [];window.dataLayer.push({event: "anuraSubmission",anuraStatus: window.anuraData.status,anuraId: window.anuraData.id,submissionId: eventInfo.submissionId });}setTimeout(() => {const excludingParams = ["cid", "ref2", "ref3"];const currentUrlParams = new URLSearchParams(window.location.search);excludingParams.forEach(param => {currentUrlParams.delete(param);});const extraUrlParams = currentUrlParams.size ? `&${currentUrlParams.toString()}` : "";window.location.href = redirectUrlAfterSubmission + '?sid=' + eventInfo.submissionId + '&fid=2769' + extraUrlParams;}, 1000);},}};// We need formWidgetInfoObject variable for browserBackIntercept.min.js var formWidgetInfoObject = formWidgetInfoObject34881f0e34 = runFormWidgetLoader(inputData34881f0e34);var mvfFormWidgetLoadingErrors34881f0e34 = formWidgetInfoObject34881f0e34.loadingErrors; setTimeout(function() {const pageURL = new URL(window.location),allowedParams = [ 'text','touchpointId','ctaType','component','position','totalPositions','supplier' ]; const dataToSend = {}; allowedParams.forEach((param) => {if (pageURL.searchParams.get(param)) {dataToSend[param] = pageURL.searchParams.get(param);}}); if (Object.keys(dataToSend).length > 0) {window.formWidgetInfoObject34881f0e34.sendSessionDataToMvfFormWidget(dataToSend);}}, 5000);