Aanmelden kijkdag {"blockElement":{"id":3623705,"pages_block_id":553391,"uuid":"77c34bb1-1636-4d11-9b05-8defa7b2f895","parent_id":3613929,"pages_block_element_type_id":20,"is_locked":false,"css_class":"element-77c34bb1-1636-4d11-9b05-8defa7b2f895","position":8,"theme_style_type":null,"blockElements":[],"blockElementType":{"id":20,"name":"Button","tree_icon":"fa-sharp fa-light fa-square-arrow-right","name_clean":"button","category":"element","default_content":"Call to action","allow_nested_elements":false},"styles":[{"id":7747273,"uuid":"3cdc5925-065d-45ca-81a7-60dd524230c6","type":"button_primary","identifier":".element-77c34bb1-1636-4d11-9b05-8defa7b2f895","target_device":"desktop","media_query":{},"classes":["inline-block","cursor-pointer","whitespace-nowrap","font-semibold","font-['Inter']","text-base","pt-[8px]","pb-[8px]","pl-[24px]","pr-[24px]","rounded-md","border-solid","text-center","flex-1","mr-[8px]","border-[#ffffff]","bg-[#ffffff]","border-[1px]","text-[#000000]"],"css":{},"meta":{}},{"id":7747274,"uuid":"31a891c0-a9e2-4641-ad5a-c2fbc5958155","type":"button_primary","identifier":".element-77c34bb1-1636-4d11-9b05-8defa7b2f895","target_device":"mobile","media_query":{},"classes":[],"css":{},"meta":{}}],"content":"<span class=\"button-span\">Aanmelden kijkdag</span>","content_options":{"type":"open_popup","popUpOptions":{"option":"iframe-script","showProgress":true,"title":null,"description":null,"images":[],"popVariant":"FORMPOPUP","iframe":"<style>@import url(https://fonts.bunny.net/css?family=ibm-plex-sans:400,600);</style>\n<style>\n#_form_1_{font-size:14px;line-height:1.6;font-family:arial, helvetica, sans-serif;margin:0}#_form_1_ *{outline:0}._form_hide{display:none;visibility:hidden}._form_show{display:block;visibility:visible}#_form_1_._form-top{top:0}#_form_1_._form-bottom{bottom:0}#_form_1_._form-left{left:0}#_form_1_._form-right{right:0}#_form_1_ input[type=\"text\"],#_form_1_ input[type=\"tel\"],#_form_1_ input[type=\"date\"],#_form_1_ textarea{padding:6px;height:auto;border:#979797 1px solid;border-radius:4px;color:#000000 !important;font-size:14px;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}#_form_1_ textarea{resize:none}#_form_1_ ._submit{-webkit-appearance:none;cursor:pointer;font-family:arial, sans-serif;font-size:14px;text-align:center;background:#FFB74D !important;border:0 !important;-moz-border-radius:4px !important;-webkit-border-radius:4px !important;border-radius:4px !important;color:#030303 !important;padding:10px !important}#_form_1_ ._submit:disabled{cursor:not-allowed;opacity:0.4}#_form_1_ ._submit.processing{position:relative}#_form_1_ ._submit.processing::before{content:\"\";width:1em;height:1em;position:absolute;z-index:1;top:50%;left:50%;border:double 3px transparent;border-radius:50%;background-image:linear-gradient(#FFB74D, #FFB74D), conic-gradient(#FFB74D, #030303);background-origin:border-box;background-clip:content-box, border-box;animation:1200ms ease 0s infinite normal none running _spin}#_form_1_ ._submit.processing::after{content:\"\";position:absolute;top:0;bottom:0;left:0;right:0;background:#FFB74D !important;border:0 !important;-moz-border-radius:4px !important;-webkit-border-radius:4px !important;border-radius:4px !important;color:#030303 !important;padding:10px !important}@keyframes _spin{0%{transform:translate(-50%, -50%) rotate(90deg)}100%{transform:translate(-50%, -50%) rotate(450deg)}}#_form_1_ ._close-icon{cursor:pointer;background-image:url(\"https://d226aj4ao1t61q.cloudfront.net/esfkyjh1u_forms-close-dark.png\");background-repeat:no-repeat;background-size:14.2px 14.2px;position:absolute;display:block;top:11px;right:9px;overflow:hidden;width:16.2px;height:16.2px}#_form_1_ ._close-icon:before{position:relative}#_form_1_ ._form-body{margin-bottom:30px}#_form_1_ ._form-image-left{width:150px;float:left}#_form_1_ ._form-content-right{margin-left:164px}#_form_1_ ._form-branding{color:#fff;font-size:10px;clear:both;text-align:left;margin-top:30px;font-weight:100}#_form_1_ ._form-branding ._logo{display:block;width:130px;height:14px;margin-top:6px;background-image:url(\"https://d226aj4ao1t61q.cloudfront.net/hh9ujqgv5_aclogo_li.png\");background-size:130px auto;background-repeat:no-repeat}#_form_1_ .form-sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0, 0, 0, 0);border:0}#_form_1_ ._form-label,#_form_1_ ._form_element ._form-label{font-weight:bold;margin-bottom:5px;display:block}#_form_1_._dark ._form-branding{color:#333}#_form_1_._dark ._form-branding ._logo{background-image:url(\"https://d226aj4ao1t61q.cloudfront.net/jftq2c8s_aclogo_dk.png\")}#_form_1_ ._form_element{position:relative;margin-bottom:10px;font-size:0;max-width:100%}#_form_1_ ._form_element *{font-size:14px}#_form_1_ ._form_element._clear{clear:both;width:100%;float:none}#_form_1_ ._form_element._clear:after{clear:left}#_form_1_ ._form_element input[type=\"text\"],#_form_1_ ._form_element input[type=\"date\"],#_form_1_ ._form_element select,#_form_1_ ._form_element textarea:not(.g-recaptcha-response){display:block;width:100%;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box;font-family:inherit}#_form_1_ ._field-wrapper{position:relative}#_form_1_ ._inline-style{float:left}#_form_1_ ._inline-style input[type=\"text\"]{width:150px}#_form_1_ ._inline-style:not(._clear)+._inline-style:not(._clear){margin-left:20px}#_form_1_ ._form_element img._form-image{max-width:100%}#_form_1_ ._form_element ._form-fieldset{border:0;padding:0.01em 0 0 0;margin:0;min-width:0}#_form_1_ ._clear-element{clear:left}#_form_1_ ._full_width{width:100%}#_form_1_ ._form_full_field{display:block;width:100%;margin-bottom:10px}#_form_1_ input[type=\"text\"]._has_error,#_form_1_ textarea._has_error{border:#F37C7B 1px solid}#_form_1_ input[type=\"checkbox\"]._has_error{outline:#F37C7B 1px solid}#_form_1_ ._error{display:block;position:absolute;font-size:14px;z-index:10000001}#_form_1_ ._error._above{padding-bottom:4px;bottom:39px;right:0}#_form_1_ ._error._below{padding-top:8px;top:100%;right:0}#_form_1_ ._error._above ._error-arrow{bottom:-4px;right:15px;border-left:8px solid transparent;border-right:8px solid transparent;border-top:8px solid #FFDDDD}#_form_1_ ._error._below ._error-arrow{top:0;right:15px;border-left:8px solid transparent;border-right:8px solid transparent;border-bottom:8px solid #FFDDDD}#_form_1_ ._error-inner{padding:12px 12px 12px 36px;background-color:#FFDDDD;background-image:url(\"data:image/svg+xml,%3Csvg width='16' height='16' viewBox='0 0 16 16' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M16 8C16 12.4183 12.4183 16 8 16C3.58172 16 0 12.4183 0 8C0 3.58172 3.58172 0 8 0C12.4183 0 16 3.58172 16 8ZM9 3V9H7V3H9ZM9 13V11H7V13H9Z' fill='%23CA0000'/%3E%3C/svg%3E\");background-repeat:no-repeat;background-position:12px center;font-size:14px;font-family:arial, sans-serif;font-weight:600;line-height:16px;color:#000;text-align:center;text-decoration:none;-webkit-border-radius:4px;-moz-border-radius:4px;border-radius:4px;box-shadow:0px 1px 4px rgba(31, 33, 41, 0.298295)}#_form_1_ ._error-inner._form_error{margin-bottom:5px;text-align:left}#_form_1_ ._button-wrapper ._error-inner._form_error{position:static}#_form_1_ ._error-inner._no_arrow{margin-bottom:10px}#_form_1_ ._error-arrow{position:absolute;width:0;height:0}#_form_1_ ._error-html{margin-bottom:10px}.pika-single{z-index:10000001 !important}#_form_1_ input[type=\"text\"].datetime_date{width:69%;display:inline}#_form_1_ select.datetime_time{width:29%;display:inline;height:32px}#_form_1_ input[type=\"date\"].datetime_date{width:69%;display:inline-flex}#_form_1_ input[type=\"time\"].datetime_time{width:29%;display:inline-flex}@media (min-width:320px) and (max-width:667px){::-webkit-scrollbar{display:none}#_form_1_{margin:0;width:100%;min-width:100%;max-width:100%;box-sizing:border-box}#_form_1_ *{-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box;font-size:1em}#_form_1_ ._form-content{margin:0;width:100%}#_form_1_ ._form-inner{display:block;min-width:100%}#_form_1_ ._form-title,#_form_1_ ._inline-style{margin-top:0;margin-right:0;margin-left:0}#_form_1_ ._form-title{font-size:1.2em}#_form_1_ ._form_element{margin:0 0 20px;padding:0;width:100%}#_form_1_ ._form-element,#_form_1_ ._inline-style,#_form_1_ input[type=\"text\"],#_form_1_ label,#_form_1_ p,#_form_1_ textarea:not(.g-recaptcha-response){float:none;display:block;width:100%}#_form_1_ ._row._checkbox-radio label{display:inline}#_form_1_ ._row,#_form_1_ p,#_form_1_ label{margin-bottom:0.7em;width:100%}#_form_1_ ._row input[type=\"checkbox\"],#_form_1_ ._row input[type=\"radio\"]{margin:0 !important;vertical-align:middle !important}#_form_1_ ._row input[type=\"checkbox\"]+span label{display:inline}#_form_1_ ._row span label{margin:0 !important;width:initial !important;vertical-align:middle !important}#_form_1_ ._form-image{max-width:100%;height:auto !important}#_form_1_ input[type=\"text\"]{padding-left:10px;padding-right:10px;font-size:16px;line-height:1.3em;-webkit-appearance:none}#_form_1_ input[type=\"radio\"],#_form_1_ input[type=\"checkbox\"]{display:inline-block;width:1.3em;height:1.3em;font-size:1em;margin:0 0.3em 0 0;vertical-align:baseline}#_form_1_ button[type=\"submit\"]{padding:20px;font-size:1.5em}#_form_1_ ._inline-style{margin:20px 0 0 !important}}#_form_1_{position:relative;text-align:left;margin:25px auto 0;padding-top:20px;padding-right:20px;padding-bottom:20px;padding-left:20px;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box;background:#FFFFFF !important;border:0px solid #B0B0B0 !important;max-width:500px;-moz-border-radius:0px !important;-webkit-border-radius:0px !important;border-radius:0px !important;color:#000000}#_form_1_._inline-form ._form-title{font-family:\"IBM Plex Sans\", Helvetica, sans-serif;font-size:22px;line-height:normal;font-weight:600;color:#000000 !important;margin-bottom:0}#_form_1_._inline-form ._form-branding{font-family:\"IBM Plex Sans\", Helvetica, sans-serif;font-size:13px;font-weight:100;font-style:normal;text-decoration:none}#_form_1_:before,#_form_1_:after{content:\" \";display:table}#_form_1_:after{clear:both}#_form_1_._inline-style{width:auto;display:inline-block}#_form_1_._inline-style input[type=\"text\"],#_form_1_._inline-style input[type=\"date\"]{padding:10px 12px}#_form_1_._inline-style button._inline-style{position:relative;top:27px}#_form_1_._inline-style p{margin:0}#_form_1_._inline-style ._button-wrapper{position:relative;margin:27px 12.5px 0 20px}#_form_1_ ._form-thank-you{position:relative;left:0;right:0;text-align:center;font-size:18px}#_form_1_ ._form-pc-confirmation ._submit{margin-top:16px}@media (min-width:320px) and (max-width:667px){#_form_1_._inline-form._inline-style ._inline-style._button-wrapper{margin-top:20px !important;margin-left:0 !important}}#_form_1_ .iti.iti--allow-dropdown.iti--separate-dial-code{width:100%}#_form_1_ .iti input{width:100%;height:32px;border:#979797 1px solid;border-radius:4px}#_form_1_ .iti--separate-dial-code .iti__selected-flag{background-color:#FFFFFF;border-radius:4px}#_form_1_ .iti--separate-dial-code .iti__selected-flag:hover{background-color:rgba(0, 0, 0, 0.05)}#_form_1_ .iti__country-list{border-radius:4px;margin-top:4px;min-width:460px}#_form_1_ .iti__country-list--dropup{margin-bottom:4px}#_form_1_ .phone-error-hidden{display:none}#_form_1_ .phone-error{color:#E40E49}#_form_1_ .phone-input-error{border:1px solid #E40E49 !important}#_form_1_._inline-form ._form-content ._form-list-subscriptions-field fieldset{margin:0;margin-bottom:1.1428571429em;border:none;padding:0}#_form_1_._inline-form ._form-content ._form-list-subscriptions-field fieldset:last-child{margin-bottom:0}#_form_1_._inline-form ._form-content ._form-list-subscriptions-field legend{margin-bottom:1.1428571429em}#_form_1_._inline-form ._form-content ._form-list-subscriptions-field label{display:flex;align-items:flex-start;justify-content:flex-start;margin-bottom:0.8571428571em}#_form_1_._inline-form ._form-content ._form-list-subscriptions-field label:last-child{margin-bottom:0}#_form_1_._inline-form ._form-content ._form-list-subscriptions-field input{margin:0;margin-right:8px}#_form_1_._inline-form ._form-content ._form-list-subscriptions-field ._form-checkbox-option-label{display:block;font-weight:400;margin-top:-4px}#_form_1_._inline-form ._form-content ._form-list-subscriptions-field ._form-checkbox-option-label-with-description{display:block;font-weight:700;margin-top:-4px}#_form_1_._inline-form ._form-content ._form-list-subscriptions-field ._form-checkbox-option-description{margin:0;font-size:0.8571428571em}#_form_1_._inline-form ._form-content ._form-list-subscriptions-field ._form-subscriptions-unsubscribe-all-description{line-height:normal;margin-top:-2px}</style>\n<form method=\"POST\" action=\"https://inspirationalcommunicationunlimited.activehosted.com/proc.php\" id=\"_form_1_\" class=\"_form _form_1 _inline-form _dark\" novalidate data-styles-version=\"5\">\n <input type=\"hidden\" name=\"u\" value=\"1\" />\n <input type=\"hidden\" name=\"f\" value=\"1\" />\n <input type=\"hidden\" name=\"s\" />\n <input type=\"hidden\" name=\"c\" value=\"0\" />\n <input type=\"hidden\" name=\"m\" value=\"0\" />\n <input type=\"hidden\" name=\"act\" value=\"sub\" />\n <input type=\"hidden\" name=\"v\" value=\"2\" />\n <input type=\"hidden\" name=\"or\" value=\"ca7ac5cbf9b985b6acc7996eb13d5568\" />\n <div class=\"_form-content\">\n <div class=\"_form_element _x57623873 _full_width _clear\" >\n <div class=\"_form-title\">\n Meld je aan voor een kijkdag van Living A Life That Matters\n </div>\n </div>\n <div class=\"_form_element _x98692353 _full_width _clear\" >\n <div class=\"_html-code\">\n <p>\n Ben je geïnteresseerd in onze opleiding Living A Life That Matters? Schrijf je in voor een van onze kijkdagen en ervaar zelf wat deze opleiding voor jou kan betekenen.\n <br>\n Kies de dag die jou het beste uitkomt:\n </p>\n </div>\n </div>\n <div class=\"_form_element _x36275389 _full_width \" >\n <label for=\"fullname\" class=\"_form-label\">\n Je naam*\n </label>\n <div class=\"_field-wrapper\">\n <input type=\"text\" id=\"fullname\" name=\"fullname\" placeholder=\"Type je naam in\" required/>\n </div>\n </div>\n <div class=\"_form_element _x87264805 _full_width \" >\n <label for=\"email\" class=\"_form-label\">\n Email*\n </label>\n <div class=\"_field-wrapper\">\n <input type=\"text\" id=\"email\" name=\"email\" placeholder=\"Typ je e-mailadres in\" required/>\n </div>\n </div>\n <div class=\"_form_element _x82525967 _full_width \" >\n <fieldset class=\"_form-fieldset\">\n <legend class=\"_form-label\">\n Welke dag wil je komen meekijken?*\n </legend>\n <div class=\"_row _checkbox-radio\">\n <input id=\"field_8Woensdag 16 oktober – woensdaggroep (kijkdag)\" type=\"radio\" name=\"field[8]\" value=\"Woensdag 16 oktober – woensdaggroep (kijkdag)\" required>\n <span>\n <label for=\"field_8Woensdag 16 oktober – woensdaggroep (kijkdag)\">\n Woensdag 16 oktober – woensdaggroep (kijkdag)\n </span>\n </div>\n <div class=\"_row _checkbox-radio\">\n <input id=\"field_8Zaterdag 19 oktober – zaterdaggroep (kijkdag)\" type=\"radio\" name=\"field[8]\" value=\"Zaterdag 19 oktober – zaterdaggroep (kijkdag)\" >\n <span>\n <label for=\"field_8Zaterdag 19 oktober – zaterdaggroep (kijkdag)\">\n Zaterdag 19 oktober – zaterdaggroep (kijkdag)\n </span>\n </div>\n </fieldset>\n </div>\n <div class=\"_button-wrapper _full_width\">\n <button id=\"_form_1_submit\" class=\"_submit\" type=\"submit\">\n Verzenden\n </button>\n </div>\n <div class=\"_clear-element\">\n </div>\n </div>\n <div class=\"_form-thank-you\" style=\"display:none;\">\n </div>\n </form><script>\nwindow.cfields = {\"8\":\"kijkdag\"};\nwindow._show_thank_you = function(id, message, trackcmp_url, email) {\n var form = document.getElementById('_form_' + id + '_'), thank_you = form.querySelector('._form-thank-you');\n form.querySelector('._form-content').style.display = 'none';\n thank_you.innerHTML = message;\n thank_you.style.display = 'block';\n const vgoAlias = typeof visitorGlobalObjectAlias === 'undefined' ? 'vgo' : visitorGlobalObjectAlias;\n var visitorObject = window[vgoAlias];\n if (email && typeof visitorObject !== 'undefined') {\n visitorObject('setEmail', email);\n visitorObject('update');\n } else if (typeof(trackcmp_url) != 'undefined' && trackcmp_url) {\n // Site tracking URL to use after inline form submission.\n _load_script(trackcmp_url);\n }\n if (typeof window._form_callback !== 'undefined') window._form_callback(id);\n};\nwindow._show_unsubscribe = function(id, message, trackcmp_url, email) {\n var form = document.getElementById('_form_' + id + '_'), unsub = form.querySelector('._form-thank-you');\n var branding = form.querySelector('._form-branding');\n if (branding) {\n branding.style.display = 'none';\n }\n form.querySelector('._form-content').style.display = 'none';\n unsub.style.display = 'block';\n form.insertAdjacentHTML('afterend', message)\n const vgoAlias = typeof visitorGlobalObjectAlias === 'undefined' ? 'vgo' : visitorGlobalObjectAlias;\n var visitorObject = window[vgoAlias];\n if (email && typeof visitorObject !== 'undefined') {\n visitorObject('setEmail', email);\n visitorObject('update');\n } else if (typeof(trackcmp_url) != 'undefined' && trackcmp_url) {\n // Site tracking URL to use after inline form submission.\n _load_script(trackcmp_url);\n }\n if (typeof window._form_callback !== 'undefined') window._form_callback(id);\n};\nwindow._show_error = function(id, message, html) {\n var form = document.getElementById('_form_' + id + '_'),\n err = document.createElement('div'),\n button = form.querySelector('button'),\n old_error = form.querySelector('._form_error');\n if (old_error) old_error.parentNode.removeChild(old_error);\n err.innerHTML = message;\n err.className = '_error-inner _form_error _no_arrow';\n var wrapper = document.createElement('div');\n wrapper.className = '_form-inner';\n wrapper.appendChild(err);\n button.parentNode.insertBefore(wrapper, button);\n var submitButton = form.querySelector('[id^=\"_form\"][id$=\"_submit\"]');\n submitButton.disabled = false;\n submitButton.classList.remove('processing');\n if (html) {\n var div = document.createElement('div');\n div.className = '_error-html';\n div.innerHTML = html;\n err.appendChild(div);\n }\n};\nwindow._show_pc_confirmation = function(id, header, detail, show, email) {\n var form = document.getElementById('_form_' + id + '_'), pc_confirmation = form.querySelector('._form-pc-confirmation');\n if (pc_confirmation.style.display === 'none') {\n form.querySelector('._form-content').style.display = 'none';\n pc_confirmation.innerHTML = \"<div class='_form-title'>\" + header + \"</div>\" + \"<p>\" + detail + \"</p>\" +\n \"<button class='_submit' id='hideButton'>Voorkeuren beheren</button>\";\n pc_confirmation.style.display = 'block';\n var mp = document.querySelector('input[name=\"mp\"]');\n mp.value = '0';\n } else {\n form.querySelector('._form-content').style.display = 'inline';\n pc_confirmation.style.display = 'none';\n }\n\n var hideButton = document.getElementById('hideButton');\n // Add event listener to the button\n hideButton.addEventListener('click', function() {\n var submitButton = document.querySelector('#_form_1_submit');\n submitButton.disabled = false;\n submitButton.classList.remove('processing');\n var mp = document.querySelector('input[name=\"mp\"]');\n mp.value = '1';\n window.location.href = window.location.href;\n });\n\n const vgoAlias = typeof visitorGlobalObjectAlias === 'undefined' ? 'vgo' : visitorGlobalObjectAlias;\n var visitorObject = window[vgoAlias];\n if (email && typeof visitorObject !== 'undefined') {\n visitorObject('setEmail', email);\n visitorObject('update');\n } else if (typeof(trackcmp_url) != 'undefined' && trackcmp_url) {\n // Site tracking URL to use after inline form submission.\n _load_script(trackcmp_url);\n }\n if (typeof window._form_callback !== 'undefined') window._form_callback(id);\n};\nwindow._load_script = function(url, callback, isSubmit) {\n var head = document.querySelector('head'), script = document.createElement('script'), r = false;\n var submitButton = document.querySelector('#_form_1_submit');\n script.charset = 'utf-8';\n script.src = url;\n if (callback) {\n script.onload = script.onreadystatechange = function() {\n if (!r && (!this.readyState || this.readyState == 'complete')) {\n r = true;\n callback();\n }\n };\n }\n script.onerror = function() {\n if (isSubmit) {\n if (script.src.length > 10000) {\n _show_error(\"1\", \"Sorry, je inzending is mislukt. Kort je antwoorden en probeer het opnieuw.\");\n } else {\n _show_error(\"1\", \"Sorry, je inzending is mislukt. Probeer het opnieuw.\");\n }\n submitButton.disabled = false;\n submitButton.classList.remove('processing');\n }\n }\n\n head.appendChild(script);\n};\n(function() {\n if (window.location.search.search(\"excludeform\") !== -1) return false;\n var getCookie = function(name) {\n var match = document.cookie.match(new RegExp('(^|; )' + name + '=([^;]+)'));\n return match ? match[2] : null;\n }\n var setCookie = function(name, value) {\n var now = new Date();\n var time = now.getTime();\n var expireTime = time + 1000 * 60 * 60 * 24 * 365;\n now.setTime(expireTime);\n document.cookie = name + '=' + value + '; expires=' + now + ';path=/; Secure; SameSite=Lax;';\n }\n var addEvent = function(element, event, func) {\n if (element.addEventListener) {\n element.addEventListener(event, func);\n } else {\n var oldFunc = element['on' + event];\n element['on' + event] = function() {\n oldFunc.apply(this, arguments);\n func.apply(this, arguments);\n };\n }\n }\n var _removed = false;\n var form_to_submit = document.getElementById('_form_1_');\n var allInputs = form_to_submit.querySelectorAll('input, select, textarea'), tooltips = [], submitted = false;\n\n var getUrlParam = function(name) {\n if (name.toLowerCase() !== 'email') {\n var params = new URLSearchParams(window.location.search);\n return params.get(name) || false;\n }\n // email is a special case because a plus is valid in the email address\n var qString = window.location.search;\n if (!qString) {\n return false;\n }\n var parameters = qString.substr(1).split('&');\n for (var i = 0; i < parameters.length; i++) {\n var parameter = parameters[i].split('=');\n if (parameter[0].toLowerCase() === 'email') {\n return parameter[1] === undefined ? true : decodeURIComponent(parameter[1]);\n }\n }\n return false;\n };\n\n var acctDateFormat = \"%d-%m-%Y\";\n var getNormalizedDate = function(date, acctFormat) {\n var decodedDate = decodeURIComponent(date);\n if (acctFormat && acctFormat.match(/(%d|%e).*%m/gi) !== null) {\n return decodedDate.replace(/(\\d{2}).*(\\d{2}).*(\\d{4})/g, '$3-$2-$1');\n } else if (Date.parse(decodedDate)) {\n var dateObj = new Date(decodedDate);\n var year = dateObj.getFullYear();\n var month = dateObj.getMonth() + 1;\n var day = dateObj.getDate();\n return `${year}-${month < 10 ? `0${month}` : month}-${day < 10 ? `0${day}` : day}`;\n }\n return false;\n };\n\n var getNormalizedTime = function(time) {\n var hour, minutes;\n var decodedTime = decodeURIComponent(time);\n var timeParts = Array.from(decodedTime.matchAll(/(\\d{1,2}):(\\d{1,2})\\W*([AaPp][Mm])?/gm))[0];\n if (timeParts[3]) { // 12 hour format\n var isPM = timeParts[3].toLowerCase() === 'pm';\n if (isPM) {\n hour = parseInt(timeParts[1]) === 12 ? '12' : `${parseInt(timeParts[1]) + 12}`;\n } else {\n hour = parseInt(timeParts[1]) === 12 ? '0' : timeParts[1];\n }\n } else { // 24 hour format\n hour = timeParts[1];\n }\n var normalizedHour = parseInt(hour) < 10 ? `0${parseInt(hour)}` : hour;\n var minutes = timeParts[2];\n return `${normalizedHour}:${minutes}`;\n };\n\n for (var i = 0; i < allInputs.length; i++) {\n var regexStr = \"field\\\\[(\\\\d+)\\\\]\";\n var results = new RegExp(regexStr).exec(allInputs[i].name);\n if (results != undefined) {\n allInputs[i].dataset.name = allInputs[i].name.match(/\\[time\\]$/)\n ? `${window.cfields[results[1]]}_time`\n : window.cfields[results[1]];\n } else {\n allInputs[i].dataset.name = allInputs[i].name;\n }\n var fieldVal = getUrlParam(allInputs[i].dataset.name);\n\n if (fieldVal) {\n if (allInputs[i].dataset.autofill === \"false\") {\n continue;\n }\n if (allInputs[i].type == \"radio\" || allInputs[i].type == \"checkbox\") {\n if (allInputs[i].value == fieldVal) {\n allInputs[i].checked = true;\n }\n } else if (allInputs[i].type == \"date\") {\n allInputs[i].value = getNormalizedDate(fieldVal, acctDateFormat);\n } else if (allInputs[i].type == \"time\") {\n allInputs[i].value = getNormalizedTime(fieldVal);\n } else {\n allInputs[i].value = fieldVal;\n }\n }\n }\n\n var remove_tooltips = function() {\n for (var i = 0; i < tooltips.length; i++) {\n tooltips[i].tip.parentNode.removeChild(tooltips[i].tip);\n }\n tooltips = [];\n };\n var remove_tooltip = function(elem) {\n for (var i = 0; i < tooltips.length; i++) {\n if (tooltips[i].elem === elem) {\n tooltips[i].tip.parentNode.removeChild(tooltips[i].tip);\n tooltips.splice(i, 1);\n return;\n }\n }\n };\n var create_tooltip = function(elem, text) {\n var tooltip = document.createElement('div'),\n arrow = document.createElement('div'),\n inner = document.createElement('div'), new_tooltip = {};\n if (elem.type != 'radio' && elem.type != 'checkbox') {\n tooltip.className = '_error';\n arrow.className = '_error-arrow';\n inner.className = '_error-inner';\n inner.innerHTML = text;\n tooltip.appendChild(arrow);\n tooltip.appendChild(inner);\n elem.parentNode.appendChild(tooltip);\n } else {\n tooltip.className = '_error-inner _no_arrow';\n tooltip.innerHTML = text;\n elem.parentNode.insertBefore(tooltip, elem);\n new_tooltip.no_arrow = true;\n }\n new_tooltip.tip = tooltip;\n new_tooltip.elem = elem;\n tooltips.push(new_tooltip);\n return new_tooltip;\n };\n var resize_tooltip = function(tooltip) {\n var rect = tooltip.elem.getBoundingClientRect();\n var doc = document.documentElement,\n scrollPosition = rect.top - ((window.pageYOffset || doc.scrollTop) - (doc.clientTop || 0));\n if (scrollPosition < 40) {\n tooltip.tip.className = tooltip.tip.className.replace(/ ?(_above|_below) ?/g, '') + ' _below';\n } else {\n tooltip.tip.className = tooltip.tip.className.replace(/ ?(_above|_below) ?/g, '') + ' _above';\n }\n };\n var resize_tooltips = function() {\n if (_removed) return;\n for (var i = 0; i < tooltips.length; i++) {\n if (!tooltips[i].no_arrow) resize_tooltip(tooltips[i]);\n }\n };\n var validate_field = function(elem, remove) {\n var tooltip = null, value = elem.value, no_error = true;\n remove ? remove_tooltip(elem) : false;\n if (elem.type != 'checkbox') elem.className = elem.className.replace(/ ?_has_error ?/g, '');\n if (elem.getAttribute('required') !== null) {\n if (elem.type == 'radio' || (elem.type == 'checkbox' && /any/.test(elem.className))) {\n var elems = form_to_submit.elements[elem.name];\n if (!(elems instanceof NodeList || elems instanceof HTMLCollection) || elems.length <= 1) {\n no_error = elem.checked;\n }\n else {\n no_error = false;\n for (var i = 0; i < elems.length; i++) {\n if (elems[i].checked) no_error = true;\n }\n }\n if (!no_error) {\n tooltip = create_tooltip(elem, \"Maak a.u.b. een keuze\");\n }\n } else if (elem.type =='checkbox') {\n var elems = form_to_submit.elements[elem.name], found = false, err = [];\n no_error = true;\n for (var i = 0; i < elems.length; i++) {\n if (elems[i].getAttribute('required') === null) continue;\n if (!found && elems[i] !== elem) return true;\n found = true;\n elems[i].className = elems[i].className.replace(/ ?_has_error ?/g, '');\n if (!elems[i].checked) {\n no_error = false;\n elems[i].className = elems[i].className + ' _has_error';\n err.push(\"Afvinken van %s is vereist\".replace(\"%s\", elems[i].value));\n }\n }\n if (!no_error) {\n tooltip = create_tooltip(elem, err.join('<br/>'));\n }\n } else if (elem.tagName == 'SELECT') {\n var selected = true;\n if (elem.multiple) {\n selected = false;\n for (var i = 0; i < elem.options.length; i++) {\n if (elem.options[i].selected) {\n selected = true;\n break;\n }\n }\n } else {\n for (var i = 0; i < elem.options.length; i++) {\n if (elem.options[i].selected\n && (!elem.options[i].value\n || (elem.options[i].value.match(/\\n/g)))\n ) {\n selected = false;\n }\n }\n }\n if (!selected) {\n elem.className = elem.className + ' _has_error';\n no_error = false;\n tooltip = create_tooltip(elem, \"Maak a.u.b. een keuze\");\n }\n } else if (value === undefined || value === null || value === '') {\n elem.className = elem.className + ' _has_error';\n no_error = false;\n tooltip = create_tooltip(elem, \"Dit veld is verplicht.\");\n }\n }\n if (no_error && (elem.id == 'field[]' || elem.id == 'ca[11][v]')) {\n if (elem.className.includes('phone-input-error')) {\n elem.className = elem.className + ' _has_error';\n no_error = false;\n }\n }\n if (no_error && elem.name == 'email') {\n if (!value.match(/^[\\+_a-z0-9-'&=]+(\\.[\\+_a-z0-9-']+)*@[a-z0-9-]+(\\.[a-z0-9-]+)*(\\.[a-z]{2,})$/i)) {\n elem.className = elem.className + ' _has_error';\n no_error = false;\n tooltip = create_tooltip(elem, \"Voer een geldig e-mailadres in.\");\n }\n }\n if (no_error && /date_field/.test(elem.className)) {\n if (!value.match(/^\\d\\d\\d\\d-\\d\\d-\\d\\d$/)) {\n elem.className = elem.className + ' _has_error';\n no_error = false;\n tooltip = create_tooltip(elem, \"Voer een geldige datum in.\");\n }\n }\n tooltip ? resize_tooltip(tooltip) : false;\n return no_error;\n };\n var needs_validate = function(el) {\n if(el.getAttribute('required') !== null){\n return true\n }\n if(el.name === 'email' && el.value !== \"\"){\n return true\n }\n\n if((el.id == 'field[]' || el.id == 'ca[11][v]') && el.className.includes('phone-input-error')){\n return true\n }\n\n return false\n };\n var validate_form = function(e) {\n var err = form_to_submit.querySelector('._form_error'), no_error = true;\n if (!submitted) {\n submitted = true;\n for (var i = 0, len = allInputs.length; i < len; i++) {\n var input = allInputs[i];\n if (needs_validate(input)) {\n if (input.type == 'tel') {\n addEvent(input, 'blur', function() {\n this.value = this.value.trim();\n validate_field(this, true);\n });\n }\n if (input.type == 'text' || input.type == 'number' || input.type == 'time') {\n addEvent(input, 'blur', function() {\n this.value = this.value.trim();\n validate_field(this, true);\n });\n addEvent(input, 'input', function() {\n validate_field(this, true);\n });\n } else if (input.type == 'radio' || input.type == 'checkbox') {\n (function(el) {\n var radios = form_to_submit.elements[el.name];\n for (var i = 0; i < radios.length; i++) {\n addEvent(radios[i], 'click', function() {\n validate_field(el, true);\n });\n }\n })(input);\n } else if (input.tagName == 'SELECT') {\n addEvent(input, 'change', function() {\n validate_field(this, true);\n });\n } else if (input.type == 'textarea'){\n addEvent(input, 'input', function() {\n validate_field(this, true);\n });\n }\n }\n }\n }\n remove_tooltips();\n for (var i = 0, len = allInputs.length; i < len; i++) {\n var elem = allInputs[i];\n if (needs_validate(elem)) {\n if (elem.tagName.toLowerCase() !== \"select\") {\n elem.value = elem.value.trim();\n }\n validate_field(elem) ? true : no_error = false;\n }\n }\n if (!no_error && e) {\n e.preventDefault();\n }\n resize_tooltips();\n return no_error;\n };\n addEvent(window, 'resize', resize_tooltips);\n addEvent(window, 'scroll', resize_tooltips);\n\n var hidePhoneInputError = function(inputId) {\n var errorMessage = document.getElementById(\"error-msg-\" + inputId);\n var input = document.getElementById(inputId);\n errorMessage.classList.remove(\"phone-error\");\n errorMessage.classList.add(\"phone-error-hidden\");\n input.classList.remove(\"phone-input-error\");\n };\n\n var initializePhoneInput = function(input, defaultCountry) {\n return window.intlTelInput(input, {\n utilsScript: \"https://unpkg.com/intl-tel-input@17.0.18/build/js/utils.js\",\n autoHideDialCode: false,\n separateDialCode: true,\n initialCountry: defaultCountry,\n preferredCountries: []\n });\n }\n\n var setPhoneInputEventListeners = function(inputId, input, iti) {\n input.addEventListener('blur', function() {\n var errorMessage = document.getElementById(\"error-msg-\" + inputId);\n if (input.value.trim()) {\n if (iti.isValidNumber()) {\n iti.setNumber(iti.getNumber());\n if (errorMessage.classList.contains(\"phone-error\")){\n hidePhoneInputError(inputId);\n }\n } else {\n showPhoneInputError(inputId)\n }\n } else {\n if (errorMessage.classList.contains(\"phone-error\")){\n hidePhoneInputError(inputId);\n }\n }\n });\n\n input.addEventListener(\"countrychange\", function() {\n iti.setNumber('');\n });\n\n input.addEventListener(\"keydown\", function(e) {\n var charCode = (e.which) ? e.which : e.keyCode;\n if (charCode > 31 && (charCode < 48 || charCode > 57) && charCode !== 8) {\n e.preventDefault();\n }\n });\n };\n\n var showPhoneInputError = function(inputId) {\n var errorMessage = document.getElementById(\"error-msg-\" + inputId);\n var input = document.getElementById(inputId);\n errorMessage.classList.add(\"phone-error\");\n errorMessage.classList.remove(\"phone-error-hidden\");\n input.classList.add(\"phone-input-error\");\n };\n\n\n var _form_serialize = function(form){if(!form||form.nodeName!==\"FORM\"){return }var i,j,q=[];for(i=0;i<form.elements.length;i++){if(form.elements[i].name===\"\"){continue}switch(form.elements[i].nodeName){case\"INPUT\":switch(form.elements[i].type){case\"tel\":q.push(form.elements[i].name+\"=\"+encodeURIComponent(form.elements[i].previousSibling.querySelector('div.iti__selected-dial-code').innerText)+encodeURIComponent(\" \")+encodeURIComponent(form.elements[i].value));break;case\"text\":case\"number\":case\"date\":case\"time\":case\"hidden\":case\"password\":case\"button\":case\"reset\":case\"submit\":q.push(form.elements[i].name+\"=\"+encodeURIComponent(form.elements[i].value));break;case\"checkbox\":case\"radio\":if(form.elements[i].checked){q.push(form.elements[i].name+\"=\"+encodeURIComponent(form.elements[i].value))}break;case\"file\":break}break;case\"TEXTAREA\":q.push(form.elements[i].name+\"=\"+encodeURIComponent(form.elements[i].value));break;case\"SELECT\":switch(form.elements[i].type){case\"select-one\":q.push(form.elements[i].name+\"=\"+encodeURIComponent(form.elements[i].value));break;case\"select-multiple\":for(j=0;j<form.elements[i].options.length;j++){if(form.elements[i].options[j].selected){q.push(form.elements[i].name+\"=\"+encodeURIComponent(form.elements[i].options[j].value))}}break}break;case\"BUTTON\":switch(form.elements[i].type){case\"reset\":case\"submit\":case\"button\":q.push(form.elements[i].name+\"=\"+encodeURIComponent(form.elements[i].value));break}break}}return q.join(\"&\")};\n\n const formSupportsPost = false;\n var form_submit = function(e) {\n\n e.preventDefault();\n if (validate_form()) {\n // use this trick to get the submit button & disable it using plain javascript\n var submitButton = e.target.querySelector('#_form_1_submit');\n submitButton.disabled = true;\n submitButton.classList.add('processing');\n var serialized = _form_serialize(\n document.getElementById('_form_1_')\n ).replace(/%0A/g, '\\\\n');\n var err = form_to_submit.querySelector('._form_error');\n err ? err.parentNode.removeChild(err) : false;\n async function submitForm() {\n var formData = new FormData();\n const searchParams = new URLSearchParams(serialized);\n searchParams.forEach((value, key) => {\n if (key !== 'hideButton') {\n formData.append(key, value);\n }\n //formData.append(key, value);\n });\n let request = {\n headers: {\n \"Accept\": \"application/json\"\n },\n body: formData,\n method: \"POST\"\n };\n\n let pageUrlParams = new URLSearchParams(window.location.search);\n if (pageUrlParams.has('t')) {\n request.headers.Authorization = 'Bearer ' + pageUrlParams.get('t');\n }\n const response = await fetch('https://inspirationalcommunicationunlimited.activehosted.com/proc.php?jsonp=true', request);\n return response.json();\n }\n if (formSupportsPost) {\n submitForm().then((data) => {\n eval(data.js);\n });\n } else {\n _load_script('https://inspirationalcommunicationunlimited.activehosted.com/proc.php?' + serialized + '&jsonp=true', null, true);\n }\n }\n return false;\n };\n addEvent(form_to_submit, 'submit', form_submit);\n})();\n\n</script>"}},"form":null,"linkable":null,"images":[],"copied_from_block_element_id":3613930},"theme":{"id":18162,"uuid":"6b8c8573-7924-4499-8136-0c1890428fcf","name":"Plug&Pay theme","is_global":false,"is_default":false,"text_font_size":"16px","text_font_size_mobile":"14px","text_font_family":"Inter","text_font_color":"#304352","text_font_weight":"400","text_line_height":"1.5","text_line_height_mobile":"1.5","text_letter_spacing":"normal","headings_1_font_size":"48px","headings_1_font_size_mobile":"30px","headings_1_font_family":"Poppins","headings_1_font_color":"#0F172A","headings_1_font_weight":"700","headings_1_line_height":"1.5","headings_1_line_height_mobile":"1.5","headings_1_letter_spacing":"normal","headings_2_font_size":"36px","headings_2_font_size_mobile":"24px","headings_2_font_family":"Poppins","headings_2_font_color":"#0F172A","headings_2_font_weight":"600","headings_2_line_height":"1.5","headings_2_line_height_mobile":"1.5","headings_2_letter_spacing":"normal","headings_3_font_size":"20px","headings_3_font_size_mobile":"20px","headings_3_font_family":"Poppins","headings_3_font_color":"#0F172A","headings_3_font_weight":"600","headings_3_line_height":"1.5","headings_3_line_height_mobile":"1.5","headings_3_letter_spacing":"normal","headings_4_font_size":"20px","headings_4_font_size_mobile":"16px","headings_4_font_family":"Poppins","headings_4_font_color":"#0F172A","headings_4_font_weight":"600","headings_4_line_height":"1","headings_4_line_height_mobile":"1","headings_4_letter_spacing":"normal","primary_color":"#FFB74D","secondary_color":"#01B57A","background_color":"#FFFFFF","max_width":"1170px","styles":[{"id":7760567,"uuid":"50a66ab4-7fda-4288-b820-1dfd69fbc5cd","type":"button_primary","identifier":null,"target_device":"desktop","media_query":{},"classes":["inline-block","cursor-pointer","whitespace-nowrap","font-semibold","font-['Inter']","text-base","pt-[8px]","pb-[8px]","pl-[24px]","pr-[24px]","bg-[var(--primary-color)]","rounded-md","border-2","border-solid","text-center","border-[var(--primary-color)]","text-[#000000]"],"css":{},"meta":{}},{"id":7760568,"uuid":"921f847b-9f51-43a6-809c-1a2bc07d9a2d","type":"button_primary","identifier":null,"target_device":"mobile","media_query":{},"classes":[],"css":{},"meta":{}},{"id":7760569,"uuid":"20312e16-b9d0-4570-91f9-d33eeb2856f1","type":"button_secondary","identifier":null,"target_device":"desktop","media_query":{},"classes":["inline-block","cursor-pointer","whitespace-nowrap","font-semibold","font-['Inter']","text-base","pt-[8px]","pb-[8px]","pl-[24px]","pr-[24px]","bg-[var(--secondary-color)]","text-[#ffffff]","rounded-md","border-2","border-solid","text-center","border-[var(--secondary-color)]"],"css":{},"meta":{}},{"id":7760570,"uuid":"9eb33905-c77e-4917-82b9-82d9c46dfba1","type":"button_secondary","identifier":null,"target_device":"mobile","media_query":{},"classes":[],"css":{},"meta":{}},{"id":7760571,"uuid":"3ae37215-232b-4327-9170-eedaf4b497d1","type":"button_line","identifier":null,"target_device":"desktop","media_query":{},"classes":["inline-block","cursor-pointer","whitespace-nowrap","font-semibold","font-['Inter']","text-base","pt-[8px]","pb-[8px]","pl-[24px]","pr-[24px]","bg-[var(--body-color)]","text-[var(--primary-color)]","rounded-md","border-2","border-solid","text-center","border-[var(--primary-color)]"],"css":{},"meta":{}},{"id":7760572,"uuid":"d7c28bb1-c14b-4722-9752-597cbb99069c","type":"button_line","identifier":null,"target_device":"mobile","media_query":{},"classes":[],"css":{},"meta":{}},{"id":7760573,"uuid":"50dc27ad-06e7-4807-915d-efd20897cd8b","type":"button_transparent","identifier":null,"target_device":"desktop","media_query":{},"classes":["inline-block","cursor-pointer","whitespace-nowrap","font-semibold","font-['Inter']","text-base","pt-[8px]","pb-[8px]","pl-[24px]","pr-[24px]","bg-[#ffffff00]","text-[var(--secondary-color)]","rounded-none","border-none","text-center","border-0","border-[#ffffff00]"],"css":{},"meta":{}},{"id":7760574,"uuid":"65432ae8-616d-4ba6-b938-4b1893dd56f2","type":"button_transparent","identifier":null,"target_device":"mobile","media_query":{},"classes":[],"css":{},"meta":{}},{"id":7760575,"uuid":"0bc46bab-6b2a-4c21-b8e0-6303c77f8ef3","type":"card","identifier":null,"target_device":"desktop","media_query":{},"classes":["rounded-lg","p-5","shadow-material","bg-[#ffffff]"],"css":{},"meta":{}},{"id":7760576,"uuid":"88920dc2-ef3c-410f-b3d9-4b22dabe689b","type":"card","identifier":null,"target_device":"mobile","media_query":{},"classes":[],"css":{},"meta":{}},{"id":7760577,"uuid":"469e6094-1551-4e9b-8890-aa036f99b1c1","type":"shadow","identifier":null,"target_device":"desktop","media_query":{},"classes":["shadow-material"],"css":{},"meta":{}},{"id":7760578,"uuid":"5fea6335-ed73-4145-a174-46cef716537b","type":"shadow","identifier":null,"target_device":"mobile","media_query":{},"classes":[],"css":{},"meta":{}},{"id":7760579,"uuid":"7fde78d5-5011-4eda-989c-0be008326ff2","type":"corner","identifier":null,"target_device":"desktop","media_query":{},"classes":["rounded-md"],"css":{},"meta":{}},{"id":7760580,"uuid":"5fc67da9-65f5-47ec-a744-71401e785c6f","type":"corner","identifier":null,"target_device":"mobile","media_query":{},"classes":[],"css":{},"meta":{}},{"id":7760581,"uuid":"4ac8a0ed-ff25-4357-85a1-057902e87b1f","type":"image","identifier":null,"target_device":"desktop","media_query":{},"classes":["rounded-md","shadow-material"],"css":{},"meta":{}},{"id":7760582,"uuid":"228be3ee-3ab9-42b7-a551-c13009773040","type":"image","identifier":null,"target_device":"mobile","media_query":{},"classes":[],"css":{},"meta":{}}]}}