Plan jouw gesprek | BRNDPWR
document.addEventListener('DOMContentLoaded', function () {
const counters = document.querySelectorAll('.number');
const observer = new IntersectionObserver((entries, obs) => {
entries.forEach(entry => {
if (entry.isIntersecting) {
const el = entry.target;
const target = parseInt(el.getAttribute('data-number'), 10);
const duration = 2000; // in ms
const stepTime = 10;
let start = 0;
let increment = target / (duration / stepTime);
const counter = setInterval(() => {
start += increment;
if (start >= target) {
el.textContent = target;
clearInterval(counter);
} else {
el.textContent = Math.floor(start);
}
}, stepTime);
obs.unobserve(el); // Only trigger once
}
});
}, {
threshold: 0.5
});
counters.forEach(counter => observer.observe(counter));
});
var gform;gform||(document.addEventListener("gform_main_scripts_loaded",function(){gform.scriptsLoaded=!0}),document.addEventListener("gform/theme/scripts_loaded",function(){gform.themeScriptsLoaded=!0}),window.addEventListener("DOMContentLoaded",function(){gform.domLoaded=!0}),gform={domLoaded:!1,scriptsLoaded:!1,themeScriptsLoaded:!1,isFormEditor:()=>"function"==typeof InitializeEditor,callIfLoaded:function(o){return!(!gform.domLoaded||!gform.scriptsLoaded||!gform.themeScriptsLoaded&&!gform.isFormEditor()||(gform.isFormEditor()&&console.warn("The use of gform.initializeOnLoaded() is deprecated in the form editor context and will be removed in Gravity Forms 3.1."),o(),0))},initializeOnLoaded:function(o){gform.callIfLoaded(o)||(document.addEventListener("gform_main_scripts_loaded",()=>{gform.scriptsLoaded=!0,gform.callIfLoaded(o)}),document.addEventListener("gform/theme/scripts_loaded",()=>{gform.themeScriptsLoaded=!0,gform.callIfLoaded(o)}),window.addEventListener("DOMContentLoaded",()=>{gform.domLoaded=!0,gform.callIfLoaded(o)}))},hooks:{action:{},filter:{}},addAction:function(o,r,e,t){gform.addHook("action",o,r,e,t)},addFilter:function(o,r,e,t){gform.addHook("filter",o,r,e,t)},doAction:function(o){gform.doHook("action",o,arguments)},applyFilters:function(o){return gform.doHook("filter",o,arguments)},removeAction:function(o,r){gform.removeHook("action",o,r)},removeFilter:function(o,r,e){gform.removeHook("filter",o,r,e)},addHook:function(o,r,e,t,n){null==gform.hooks[o][r]&&(gform.hooks[o][r]=[]);var d=gform.hooks[o][r];null==n&&(n=r+"_"+d.length),gform.hooks[o][r].push({tag:n,callable:e,priority:t=null==t?10:t})},doHook:function(r,o,e){var t;if(e=Array.prototype.slice.call(e,1),null!=gform.hooks[r][o]&&((o=gform.hooks[r][o]).sort(function(o,r){return o.priority-r.priority}),o.forEach(function(o){"function"!=typeof(t=o.callable)&&(t=window[t]),"action"==r?t.apply(null,e):e[0]=t.apply(null,e)})),"filter"==r)return e[0]},removeHook:function(o,r,t,n){var e;null!=gform.hooks[o][r]&&(e=(e=gform.hooks[o][r]).filter(function(o,r,e){return!!(null!=n&&n!=o.tag||null!=t&&t!=o.priority)}),gform.hooks[o][r]=e)}});
gform.initializeOnLoaded( function() {jQuery('#gform_ajax_frame_2').on('load',function(){var contents = jQuery(this).contents().find('*').html();var is_postback = contents.indexOf('GF_AJAX_POSTBACK') >= 0;if(!is_postback){return;}var form_content = jQuery(this).contents().find('#gform_wrapper_2');var is_confirmation = jQuery(this).contents().find('#gform_confirmation_wrapper_2').length > 0;var is_redirect = contents.indexOf('gformRedirect(){') >= 0;var is_form = form_content.length > 0 && ! is_redirect && ! is_confirmation;var mt = parseInt(jQuery('html').css('margin-top'), 10) + parseInt(jQuery('body').css('margin-top'), 10) + 100;if(is_form){jQuery('#gform_wrapper_2').html(form_content.html());if(form_content.hasClass('gform_validation_error')){jQuery('#gform_wrapper_2').addClass('gform_validation_error');} else {jQuery('#gform_wrapper_2').removeClass('gform_validation_error');}setTimeout( function() { /* delay the scroll by 50 milliseconds to fix a bug in chrome */ jQuery(document).scrollTop(jQuery('#gform_wrapper_2').offset().top - mt); }, 50 );var current_page = jQuery('#gform_source_page_number_2').val();jQuery(document).trigger('gform_page_loaded', [2, current_page]);window['gf_submitting_2'] = false;}else if(!is_redirect){var confirmation_content = jQuery(this).contents().find('.GF_AJAX_POSTBACK').html();if(!confirmation_content){confirmation_content = contents;}jQuery('#gform_wrapper_2').replaceWith(confirmation_content);jQuery(document).scrollTop(jQuery('#gf_2').offset().top - mt);jQuery(document).trigger('gform_confirmation_loaded', [2]);window['gf_submitting_2'] = false;wp.a11y.speak(jQuery('#gform_confirmation_message_2').text());}else{jQuery('#gform_2').append(contents);if(window['gformRedirect']) {gformRedirect();}}jQuery(document).trigger("gform_pre_post_render", [{ formId: "2", currentPage: "current_page", abort: function() { this.preventDefault(); } }]); if (event && event.defaultPrevented) { return; } const gformWrapperDiv = document.getElementById( "gform_wrapper_2" ); if ( gformWrapperDiv ) { const visibilitySpan = document.createElement( "span" ); visibilitySpan.id = "gform_visibility_test_2"; gformWrapperDiv.insertAdjacentElement( "afterend", visibilitySpan ); } const visibilityTestDiv = document.getElementById( "gform_visibility_test_2" ); let postRenderFired = false; function triggerPostRender() { if ( postRenderFired ) { return; } postRenderFired = true; gform.core.triggerPostRenderEvents( 2, current_page ); if ( visibilityTestDiv ) { visibilityTestDiv.parentNode.removeChild( visibilityTestDiv ); } } function debounce( func, wait, immediate ) { var timeout; return function() { var context = this, args = arguments; var later = function() { timeout = null; if ( !immediate ) func.apply( context, args ); }; var callNow = immediate && !timeout; clearTimeout( timeout ); timeout = setTimeout( later, wait ); if ( callNow ) func.apply( context, args ); }; } const debouncedTriggerPostRender = debounce( function() { triggerPostRender(); }, 200 ); if ( visibilityTestDiv && visibilityTestDiv.offsetParent === null ) { const observer = new MutationObserver( ( mutations ) => { mutations.forEach( ( mutation ) => { if ( mutation.type === 'attributes' && visibilityTestDiv.offsetParent !== null ) { debouncedTriggerPostRender(); observer.disconnect(); } }); }); observer.observe( document.body, { attributes: true, childList: false, subtree: true, attributeFilter: [ 'style', 'class' ], }); } else { triggerPostRender(); } } );} );
gform.initializeOnLoaded( function() {jQuery('#gform_ajax_frame_4').on('load',function(){var contents = jQuery(this).contents().find('*').html();var is_postback = contents.indexOf('GF_AJAX_POSTBACK') >= 0;if(!is_postback){return;}var form_content = jQuery(this).contents().find('#gform_wrapper_4');var is_confirmation = jQuery(this).contents().find('#gform_confirmation_wrapper_4').length > 0;var is_redirect = contents.indexOf('gformRedirect(){') >= 0;var is_form = form_content.length > 0 && ! is_redirect && ! is_confirmation;var mt = parseInt(jQuery('html').css('margin-top'), 10) + parseInt(jQuery('body').css('margin-top'), 10) + 100;if(is_form){jQuery('#gform_wrapper_4').html(form_content.html());if(form_content.hasClass('gform_validation_error')){jQuery('#gform_wrapper_4').addClass('gform_validation_error');} else {jQuery('#gform_wrapper_4').removeClass('gform_validation_error');}setTimeout( function() { /* delay the scroll by 50 milliseconds to fix a bug in chrome */ jQuery(document).scrollTop(jQuery('#gform_wrapper_4').offset().top - mt); }, 50 );var current_page = jQuery('#gform_source_page_number_4').val();jQuery(document).trigger('gform_page_loaded', [4, current_page]);window['gf_submitting_4'] = false;}else if(!is_redirect){var confirmation_content = jQuery(this).contents().find('.GF_AJAX_POSTBACK').html();if(!confirmation_content){confirmation_content = contents;}jQuery('#gform_wrapper_4').replaceWith(confirmation_content);jQuery(document).scrollTop(jQuery('#gf_4').offset().top - mt);jQuery(document).trigger('gform_confirmation_loaded', [4]);window['gf_submitting_4'] = false;wp.a11y.speak(jQuery('#gform_confirmation_message_4').text());}else{jQuery('#gform_4').append(contents);if(window['gformRedirect']) {gformRedirect();}}jQuery(document).trigger("gform_pre_post_render", [{ formId: "4", currentPage: "current_page", abort: function() { this.preventDefault(); } }]); if (event && event.defaultPrevented) { return; } const gformWrapperDiv = document.getElementById( "gform_wrapper_4" ); if ( gformWrapperDiv ) { const visibilitySpan = document.createElement( "span" ); visibilitySpan.id = "gform_visibility_test_4"; gformWrapperDiv.insertAdjacentElement( "afterend", visibilitySpan ); } const visibilityTestDiv = document.getElementById( "gform_visibility_test_4" ); let postRenderFired = false; function triggerPostRender() { if ( postRenderFired ) { return; } postRenderFired = true; gform.core.triggerPostRenderEvents( 4, current_page ); if ( visibilityTestDiv ) { visibilityTestDiv.parentNode.removeChild( visibilityTestDiv ); } } function debounce( func, wait, immediate ) { var timeout; return function() { var context = this, args = arguments; var later = function() { timeout = null; if ( !immediate ) func.apply( context, args ); }; var callNow = immediate && !timeout; clearTimeout( timeout ); timeout = setTimeout( later, wait ); if ( callNow ) func.apply( context, args ); }; } const debouncedTriggerPostRender = debounce( function() { triggerPostRender(); }, 200 ); if ( visibilityTestDiv && visibilityTestDiv.offsetParent === null ) { const observer = new MutationObserver( ( mutations ) => { mutations.forEach( ( mutation ) => { if ( mutation.type === 'attributes' && visibilityTestDiv.offsetParent !== null ) { debouncedTriggerPostRender(); observer.disconnect(); } }); }); observer.observe( document.body, { attributes: true, childList: false, subtree: true, attributeFilter: [ 'style', 'class' ], }); } else { triggerPostRender(); } } );} );
jQuery(document).ready(function($) {
console.log('DOM Ready - Product Selection Handler');
// Function to handle product selection
function handleProductSelection() {
console.log('Handling product selection');
// Get selected package
const $selectedPackage = $('input[name="package_radio"]:checked');
if (!$selectedPackage.length) {
console.log('No package selected');
return;
}
console.log('Selected package:', $selectedPackage.val());
// Get product ID and details
const productId = $selectedPackage.val();
const $label = $selectedPackage.closest('label');
// Get package name from the correct heading element
const packageName = $label.find('.pakket-heading h4 span').text().trim();
console.log('Package name:', packageName);
// Get price from the price wrapper
let packagePrice = '';
const $priceWrapper = $label.find('.price-wrapper span .woocommerce-Price-amount');
if ($priceWrapper.length) {
packagePrice = $priceWrapper.text().trim();
console.log('Found price:', packagePrice);
}
// Get selected duration if exists
const duration = $('.termijnen-container select[name="duration"]').val() || '12';
console.log('Selected duration:', duration);
// Handle extra products
const extraProducts = [];
console.log('Checking for extra products');
$('input[name="extra_products[]"]:checked').each(function() {
const $extraLabel = $(this).closest('label');
const extraId = $(this).val();
console.log('Processing extra product:', extraId);
let extraSku = $(this).data('sku');
let extraName = '';
let extraPrice = '';
// If SKU is not available in data attribute, fetch it using the product ID
if (!extraSku) {
console.log('No SKU in data attribute, fetching from server for ID:', extraId);
$.ajax({
url: wc_add_to_cart_params.ajax_url,
type: 'POST',
async: false,
data: {
action: 'get_product_sku',
product_id: extraId
},
success: function(response) {
console.log('Server response:', response);
if (response.success && response.data) {
extraSku = response.data.sku;
extraName = response.data.name;
extraPrice = response.data.price;
console.log('Fetched product details:', response.data);
} else {
extraSku = extraId;
console.log('Failed to fetch product details, using ID as fallback:', extraId);
}
},
error: function(xhr, status, error) {
console.log('AJAX error:', error);
extraSku = extraId;
}
});
} else {
console.log('Found SKU in data attribute:', extraSku);
extraName = $extraLabel.find('.extra-product-heading').text().trim();
const $extraPriceElem = $extraLabel.find('.price-wrapper .woocommerce-Price-amount');
extraPrice = $extraPriceElem.length ? $extraPriceElem.text().trim() : '';
}const extraProduct = {
id: extraId,
sku: extraSku,
name: extraName,
price: extraPrice
};
console.log('Adding extra product:', extraProduct);
extraProducts.push(extraProduct);
});
// Log final selection details
console.log('Final selection:', {
package: {
id: productId,
name: packageName,
price: packagePrice
},
duration: duration,
extraProducts: extraProducts
});
}// Attach event handlers
$('input[name="package_radio"]').on('change', handleProductSelection);
$('input[name="extra_products[]"]').on('change', handleProductSelection);
$('.termijnen-container select[name="duration"]').on('change', handleProductSelection);
// Initial call to handle any pre-selected options
handleProductSelection();
});
(function () {
var c = document.body.className;
c = c.replace(/woocommerce-no-js/, 'woocommerce-js');
document.body.className = c;
})();
https://brndpwr.com/wp-includes/js/dist/hooks.min.js
https://brndpwr.com/wp-includes/js/dist/i18n.min.js
wp.i18n.setLocaleData( { 'text direction\u0004ltr': [ 'ltr' ] } );
//# sourceURL=wp-i18n-js-after
https://brndpwr.com/wp-content/plugins/woocommerce-google-analytics-integration/assets/js/build/main.js
var leadin_wordpress = {"userRole":"visitor","pageType":"page","leadinPluginVersion":"11.3.71"};
//# sourceURL=leadin-script-loader-js-js-extra
var woocommerce_params = {"ajax_url":"/wp-admin/admin-ajax.php","wc_ajax_url":"/?wc-ajax=%%endpoint%%","i18n_password_show":"Wachtwoord weergeven","i18n_password_hide":"Wachtwoord verbergen"};
//# sourceURL=woocommerce-js-extra
https://brndpwr.com/wp-content/plugins/woocommerce/assets/js/frontend/woocommerce.min.js
https://brndpwr.com/wp-content/plugins/bb-plugin/js/libs/jquery.imagesloaded.min.js
https://brndpwr.com/wp-content/plugins/bb-plugin/js/libs/jquery.ba-throttle-debounce.min.js
https://brndpwr.com/wp-content/plugins/bb-plugin/js/libs/jquery.waypoints.min.js
https://brndpwr.com/wp-content/uploads/bb-plugin/cache/185728087a290182ce8d564304293906-layout-bundle.js
jQuery.uiBackCompat = true;
//# sourceURL=jquery-ui-core-js-before
https://brndpwr.com/wp-includes/js/jquery/ui/core.min.js
https://brndpwr.com/wp-includes/js/jquery/ui/datepicker.min.js
jQuery(function(jQuery){jQuery.datepicker.setDefaults({"closeText":"Sluiten","currentText":"Vandaag","monthNames":["januari","februari","maart","april","mei","juni","juli","augustus","september","oktober","november","december"],"monthNamesShort":["jan","feb","mrt","apr","mei","jun","jul","aug","sep","okt","nov","dec"],"nextText":"Volgende","prevText":"Vorige","dayNames":["zondag","maandag","dinsdag","woensdag","donderdag","vrijdag","zaterdag"],"dayNamesShort":["zo","ma","di","wo","do","vr","za"],"dayNamesMin":["Z","M","D","W","D","V","Z"],"dateFormat":"d MM, yy","firstDay":1,"isRTL":false});});
//# sourceURL=jquery-ui-datepicker-js-after
window.TriplePixelData = {"TripleName":"brndpwr.com","ver":"2.17","plat":"woocommerce","isHeadless":true,"src":"WOO_EXT"}
document.addEventListener('DOMContentLoaded', function() { document.body.insertAdjacentHTML('beforeend', '<div class="triple_pixel_ef_container"></div>');}, false);
//# sourceURL=triplewhale-pixel-snippet-js-before
https://brndpwr.com/wp-content/plugins/triple-whale/scripts/snippet.js
https://brndpwr.com/wp-content/themes/bb-theme-child/scripts/gsap/animations/ani_title.js
https://brndpwr.com/wp-content/themes/bb-theme-child/scripts/gsap/animations/ani_img.js
https://brndpwr.com/wp-content/themes/bb-theme-child/scripts/gsap/animations/ani_lines.js
https://brndpwr.com/wp-content/themes/bb-theme-child/scripts/gsap/animations/ani_merkaanvraag.js
https://brndpwr.com/wp-content/themes/bb-theme-child/scripts/gsap/animations/ani_iframe.js
https://brndpwr.com/wp-content/themes/bb-theme-child/scripts/gsap/animations/ani_flexcontent_images.js
https://brndpwr.com/wp-content/themes/bb-theme-child/scripts/gsap/animations/ani_usp.js
https://brndpwr.com/wp-content/themes/bb-theme-child/js/pk-header.js
https://brndpwr.com/wp-content/themes/bb-theme-child/js/calendly-tracking.js
https://brndpwr.com/wp-content/themes/bb-theme-child/js/pagescrollbar.js
https://brndpwr.com/wp-content/themes/bb-theme-child/js/typetext.js
https://brndpwr.com/wp-content/themes/bb-theme-child/js/dialog.js
https://brndpwr.com/wp-content/themes/bb-theme-child/js/flex-content-switcher.js
https://brndpwr.com/wp-content/themes/bb-theme-child/js/flex-content-number-counter.js
https://brndpwr.com/wp-content/plugins/google-site-kit/dist/assets/js/googlesitekit-consent-mode-86cb52dcb9f2b27ed244.js
https://brndpwr.com/wp-content/plugins/woocommerce/assets/js/sourcebuster/sourcebuster.min.js
var wc_order_attribution = {"params":{"lifetime":1.0e-5,"session":30,"base64":false,"ajaxurl":"https://brndpwr.com/wp-admin/admin-ajax.php","prefix":"wc_order_attribution_","allowTracking":true},"fields":{"source_type":"current.typ","referrer":"current_add.rf","utm_campaign":"current.cmp","utm_source":"current.src","utm_medium":"current.mdm","utm_content":"current.cnt","utm_id":"current.id","utm_term":"current.trm","utm_source_platform":"current.plt","utm_creative_format":"current.fmt","utm_marketing_tactic":"current.tct","session_entry":"current_add.ep","session_start_time":"current_add.fd","session_pages":"session.pgs","session_count":"udata.vst","user_agent":"udata.uag"}};
//# sourceURL=wc-order-attribution-js-extra
https://brndpwr.com/wp-content/plugins/woocommerce/assets/js/frontend/order-attribution.min.js
https://brndpwr.com/wp-content/uploads/bb-plugin/cache/10684-layout-partial.js
var pum_vars = {"version":"1.24.0","pm_dir_url":"https://brndpwr.com/wp-content/plugins/popup-maker/","ajaxurl":"https://brndpwr.com/wp-admin/admin-ajax.php","restapi":"https://brndpwr.com/wp-json/pum/v1","rest_nonce":null,"default_theme":"9883","debug_mode":"","disable_tracking":"","disable_url_params":"","home_url":"/","message_position":"top","core_sub_forms_enabled":"1","popups":[],"cookie_domain":"","paramNames":{"popup_id":"pid","cta":"cta","notrack":"notrack"},"analytics_enabled":"1","analytics_route":"analytics","analytics_api":"https://brndpwr.com/wp-json/pum/v1"};
var pum_sub_vars = {"ajaxurl":"https://brndpwr.com/wp-admin/admin-ajax.php","message_position":"top"};
var pum_popups = {"pum-10684":{"triggers":[],"cookies":[],"disable_on_mobile":false,"disable_on_tablet":false,"atc_promotion":null,"explain":null,"type_section":null,"theme_id":"9883","size":"medium","responsive_min_width":"0%","responsive_max_width":"100%","custom_width":"640px","custom_height_auto":false,"custom_height":"380px","scrollable_content":false,"animation_type":"fade","animation_speed":"350","animation_origin":"center top","open_sound":"none","custom_sound":"","location":"center top","position_top":"100","position_bottom":"0","position_left":"0","position_right":"0","position_from_trigger":false,"position_fixed":false,"overlay_disabled":false,"stackable":false,"disable_reposition":false,"zindex":"1999999999","close_button_delay":"0","fi_promotion":null,"close_on_form_submission":false,"close_on_form_submission_delay":"0","close_on_overlay_click":false,"close_on_esc_press":false,"close_on_f4_press":false,"disable_form_reopen":false,"disable_accessibility":false,"theme_slug":"standaard-thema","id":10684,"slug":"linkedin-goede-pop-up"},"pum-9960":{"triggers":[],"cookies":[],"disable_on_mobile":false,"disable_on_tablet":false,"atc_promotion":null,"explain":null,"type_section":null,"theme_id":"9883","size":"medium","responsive_min_width":"0%","responsive_max_width":"100%","custom_width":"640px","custom_height_auto":false,"custom_height":"380px","scrollable_content":false,"animation_type":"fade","animation_speed":"350","animation_origin":"center top","open_sound":"none","custom_sound":"","location":"center top","position_top":"100","position_bottom":"0","position_left":"0","position_right":"0","position_from_trigger":false,"position_fixed":false,"overlay_disabled":false,"stackable":false,"disable_reposition":false,"zindex":"1999999999","close_button_delay":"0","fi_promotion":null,"close_on_form_submission":false,"close_on_form_submission_delay":"0","close_on_overlay_click":false,"close_on_esc_press":false,"close_on_f4_press":false,"disable_form_reopen":false,"disable_accessibility":false,"theme_slug":"standaard-thema","id":9960,"slug":"hubspot-meeting-job"}};
//# sourceURL=popup-maker-site-js-extra
//brndpwr.com/wp-content/uploads/pum/pum-site-scripts.js
window._googlesitekit = window._googlesitekit || {};
window._googlesitekit.contentEvents = {"postID":9574,"isSinglePost":false};
//# sourceURL=googlesitekit-events-provider-content-events-js-before
https://brndpwr.com/wp-content/plugins/google-site-kit/dist/assets/js/googlesitekit-events-provider-content-events-33078016c5e1e9f07c35.js
https://brndpwr.com/wp-content/plugins/google-site-kit/dist/assets/js/googlesitekit-events-provider-popup-maker-7062bab628c801813984.js
window._googlesitekit.wcdata = window._googlesitekit.wcdata || {};
window._googlesitekit.wcdata.products = [];
window._googlesitekit.wcdata.add_to_cart = null;
window._googlesitekit.wcdata.currency = "EUR";
window._googlesitekit.wcdata.eventsToTrack = [];
//# sourceURL=googlesitekit-events-provider-woocommerce-js-before
https://brndpwr.com/wp-content/plugins/google-site-kit/dist/assets/js/googlesitekit-events-provider-woocommerce-454120fdf8df4537b59f.js
https://brndpwr.com/wp-content/plugins/bb-plugin/js/libs/jquery.magnificpopup.min.js
https://brndpwr.com/wp-content/plugins/bb-plugin/js/libs/jquery.fitvids.min.js
var themeopts = {"medium_breakpoint":"992","mobile_breakpoint":"768","lightbox":"enabled","scrollTopPosition":"800"};
//# sourceURL=fl-automator-js-extra
https://brndpwr.com/wp-content/themes/bb-theme/js/theme.min.js
!function (w, d, t) {
w.TiktokAnalyticsObject=t;var ttq=w[t]=w[t]||[];ttq.methods=["page","track","identify","instances","debug","on","off","once","ready","alias","group","enableCookie","disableCookie"],ttq.setAndDefer=function(t,e){t[e]=function(){t.push([e].concat(Array.prototype.slice.call(arguments,0)))}};for(var i=0;i<ttq.methods.length;i++)ttq.setAndDefer(ttq,ttq.methods[i]);ttq.instance=function(t){for(var e=ttq._i[t]||[],n=0;n<ttq.methods.length;n++)ttq.setAndDefer(e,ttq.methods[n]);return e},ttq.load=function(e,n){var i="https://analytics.tiktok.com/i18n/pixel/events.js";ttq._i=ttq._i||{},ttq._i[e]=[],ttq._i[e]._u=i,ttq._t=ttq._t||{},ttq._t[e]=+new Date,ttq._o=ttq._o||{},ttq._o[e]=n||{},ttq._partner=ttq._partner||"WooCommerce";var o=document.createElement("script");o.type="text/javascript",o.async=!0,o.src=i+"?sdkid="+e+"&lib="+t;var a=document.getElementsByTagName("script")[0];a.parentNode.insertBefore(o,a)};
ttq.load('D03LKBJC77U7SM51KRC0');
}(window, document, 'ttq');
//# sourceURL=tiktok-pixel-tracking-handle-header-js-after
ttq.instance('D03LKBJC77U7SM51KRC0').track('Pageview', {'event_id': '6aa70f259faa2_tt4b_woocommerce_68075d667c687'})
ttq.instance('D03LKBJC77U7SM51KRC0').identify({
})
//# sourceURL=tiktok-tracking-handle-header-js-after
https://brndpwr.com/wp-includes/js/dist/dom-ready.min.js
( function( domain, translations ) {
var localeData = translations.locale_data[ domain ] || translations.locale_data.messages;
localeData[""].domain = domain;
wp.i18n.setLocaleData( localeData, domain );
} )( "default", {"translation-revision-date":"2026-09-11 10:55:16+0000","generator":"GlotPress\/4.1.0","domain":"messages","locale_data":{"messages":{"":{"domain":"messages","plural-forms":"nplurals=2; plural=n != 1;","lang":"nl"},"Notifications":["Meldingen"]}},"comment":{"reference":"wp-includes\/js\/dist\/a11y.js"}} );
//# sourceURL=wp-a11y-js-translations
https://brndpwr.com/wp-includes/js/dist/a11y.min.js
https://brndpwr.com/wp-content/plugins/gravityforms/js/jquery.json.min.js
var gform_i18n = {"datepicker":{"wdOffset":1,"helpTextShort":"Press F1 for help","helpText":"Press the arrow keys to navigate by day, PageUp and PageDown to navigate by month, Alt+PageUp and Alt+PageDown to navigate by year, or Escape to cancel.","openOnFocusHelpText":"Press Down arrow to browse the calendar, or Escape to close.","tooltipTxt":"Press Escape to cancel","disabledTxt":"Uitgeschakeld","markedTxt":"Geselecteerd","prevTxt":"Vorige","nextTxt":"Volgende","monthTxt":"Maand","yearTxt":"Jaar","months":["Januari","Februari","Maart","April","May","Juni","Juli","Augustus","September","Oktober","November","December"],"days":[{"s":"S","l":"Zondag"},{"s":"M","l":"Maandag"},{"s":"T","l":"Dinsdag"},{"s":"W","l":"Woensdag"},{"s":"T","l":"Donderdag"},{"s":"F","l":"Vrijdag"},{"s":"S","l":"Zaterdag"}]}};
var gf_legacy_multi = [];
var gform_gravityforms = {"strings":{"invalid_file_extension":"Dit bestandstype is niet toegestaan. Moet \u00e9\u00e9n van de volgende zijn:","file_uploaded":"Bestand ge\u00fcpload","delete_file":"Dit bestand verwijderen","in_progress":"in behandeling","file_exceeds_limit":"Bestand overschrijdt limiet bestandsgrootte","illegal_extension":"Dit type bestand is niet toegestaan.","max_reached":"Maximale aantal bestanden bereikt","unknown_error":"Er was een probleem bij het opslaan van het bestand op de server","currently_uploading":"Wacht tot het uploaden is voltooid","cancel":"Annuleren","cancel_upload":"Deze upload annuleren","cancelled":"Geannuleerd","error":"Fout","message":"Bericht"},"vars":{"images_url":"https://brndpwr.com/wp-content/plugins/gravityforms/images"}};
var gf_global = {"gf_currency_config":{"name":"Euro","symbol_left":"","symbol_right":"€","symbol_padding":" ","thousand_separator":".","decimal_separator":",","decimals":2,"code":"EUR"},"base_url":"https://brndpwr.com/wp-content/plugins/gravityforms","number_formats":[],"version_hash":"f958846b92d9014e7bf4f4a5a60e66fd","countries":{"AF":"Afghanistan","AX":"Aland-eilanden","AL":"Albani\u00eb","DZ":"Algerije","AS":"Amerikaans Samoa","AD":"Andorra","AO":"Angola","AI":"Anguilla","AQ":"Antarctica","AG":"Antigua en Barbuda","AR":"Argentini\u00eb","AM":"Armeni\u00eb","AW":"Aruba","AU":"Australi\u00eb","AT":"Oostenrijk","AZ":"Azerbeidzjan","BS":"Bahama's","BH":"Bahrein","BD":"Bangladesh","BB":"Barbados","BY":"Wit-Rusland","BE":"Belgi\u00eb","BZ":"Belize","BJ":"Benin","BM":"Bermuda","BT":"Bhutan","BO":"Bolivia","BQ":"Bonaire, Sint Eustatius en Saba","BA":"Bosni\u00eb en Herzegovina","BW":"Botswana","BV":"Bouvet eiland","BR":"Brazili\u00eb","IO":"Brits-Indisch oceaan gebied","BN":"Brunei Darussalam","BG":"Bulgarije","BF":"Burkina Faso","BI":"Burundi","CV":"Kaapverdi\u00eb","KH":"Cambodja","CM":"Kameroen","CA":"Canada","KY":"Kaaimaneilanden","CF":"Centraal-Afrikaanse Republiek","TD":"Tsjaad","CL":"Chili","CN":"China","CX":"Kersteiland","CC":"Cocoseilanden","CO":"Colombia","KM":"Comoren","CD":"Congo, Democratische Republiek","CG":"Congo","CK":"Cook eilanden","CR":"Costa Rica","CI":"Ivoorkust","HR":"Kroati\u00eb","CU":"Cuba","CW":"Cura\u00e7ao","CY":"Cyprus","CZ":"Tsjechi\u00eb","DK":"Denemarken","DJ":"Djibouti","DM":"Dominica","DO":"Dominicaanse Republiek","EC":"Ecuador","EG":"Egypte","SV":"El Salvador","GQ":"Equatoriaal-Guinea","ER":"Eritrea","EE":"Estland","SZ":"Eswatini","ET":"Ethiopi\u00eb","FK":"Falkland eilanden","FO":"Faer\u00f6er","FJ":"Fiji","FI":"Finland","FR":"Frankrijk","GF":"Frans Guyana","PF":"Frans-Polynesi\u00eb","TF":"Franse zuidelijke gebieden","GA":"Gabon","GM":"Gambia","GE":"Georgi\u00eb","DE":"Duitsland","GH":"Ghana","GI":"Gibraltar","GR":"Griekenland","GL":"Groenland","GD":"Grenada","GP":"Guadeloupe","GU":"Guam","GT":"Guatemala","GG":"Guernsey","GN":"Guinee","GW":"Guinee-Bissau","GY":"Guyana","HT":"Ha\u00efti","HM":"Heard Eiland en McDonald Eilanden","VA":"Vaticaanstad","HN":"Honduras","HK":"Hong Kong","HU":"Hongarije","IS":"IJsland","IN":"India","ID":"Indonesi\u00eb","IR":"Iran","IQ":"Irak","IE":"Ierland","IM":"Man","IL":"Isra\u00ebl","IT":"Itali\u00eb","JM":"Jamaica","JP":"Japan","JE":"Jersey","JO":"Jordani\u00eb","KZ":"Kazachstan","KE":"Kenia","KI":"Kiribati","KP":"Korea, Democratische Volksrepubliek","KR":"Korea, Republiek van","KW":"Koeweit","KG":"Kirgizi\u00eb","LA":"Lao Democratische Volksrepubliek","LV":"Letland","LB":"Libanon","LS":"Lesotho","LR":"Liberia","LY":"Libi\u00eb","LI":"Liechtenstein","LT":"Litouwen","LU":"Luxemburg","MO":"Macau","MG":"Madagaskar","MW":"Malawi","MY":"Maleisi\u00eb","MV":"Maldiven","ML":"Mali","MT":"Malta","MH":"Marshalleilanden","MQ":"Martinique","MR":"Mauritani\u00eb","MU":"Mauritius","YT":"Mayotte","MX":"Mexico","FM":"Micronesia","MD":"Moldavi\u00eb","MC":"Monaco","MN":"Mongoli\u00eb","ME":"Montenegro","MS":"Montserrat","MA":"Marokko","MZ":"Mozambique","MM":"Myanmar","NA":"Namibi\u00eb","NR":"Nauru","NP":"Nepal","NL":"Nederland","NC":"Nieuw-Caledoni\u00eb","NZ":"Nieuw-Zeeland","NI":"Nicaragua","NE":"Niger","NG":"Nigeria","NU":"Niue","NF":"Norfolk eiland","MK":"Noord-Macedoni\u00eb","MP":"Noordelijke Marianen","NO":"Noorwegen","OM":"Oman","PK":"Pakistan","PW":"Palau","PS":"Palestina, Staat","PA":"Panama","PG":"Papoea-Nieuw-Guinea","PY":"Paraguay","PE":"Peru","PH":"Filipijnen","PN":"Pitcairn","PL":"Polen","PT":"Portugal","PR":"Puerto Rico","QA":"Qatar","RE":"R\u00e9union","RO":"Roemeni\u00eb","RU":"Russische Federatie","RW":"Rwanda","BL":"Saint Barth\u00e9lemy","SH":"Sint-Helena, Hemelvaart en Tristan da Cunha","KN":"Saint Kitts en Nevis","LC":"Saint Lucia","MF":"Sint Maarten","PM":"Saint Pierre en Miquelon","VC":"Saint Vincent en de Grenadines","WS":"Samoa","SM":"San Marino","ST":"Sao Tom\u00e9 en Principe","SA":"Saoedi-Arabi\u00eb","SN":"Senegal","RS":"Servi\u00eb","SC":"Seychellen","SL":"Sierra Leone","SG":"Singapore","SX":"Sint Maarten","SK":"Slowakije","SI":"Sloveni\u00eb","SB":"Salomonseilanden","SO":"Somali\u00eb","ZA":"Zuid-Afrika","GS":"Ji\u017en\u00ed Georgie a Ji\u017en\u00ed Sandwichovy ostrovy","SS":"Zuid Soedan","ES":"Spanje","LK":"Sri Lanka","SD":"Soedan","SR":"Suriname","SJ":"Spitsbergen en Jan Mayen","SE":"Zweden","CH":"Zwitserland","SY":"Arabische Republiek Syri\u00eb","TW":"Taiwan","TJ":"Tadzjikistan","TZ":"Tanzania, de Verenigde Republiek van","TH":"Thailand","TL":"Timor-Leste","TG":"Togo","TK":"Tokelau","TO":"Tonga","TT":"Trinidad en Tobago","TN":"Tunesi\u00eb","TR":"Turkije","TM":"Turkmenistan","TC":"Turks- en Caicoseilanden","TV":"Tuvalu","UG":"Oeganda","UA":"Oekra\u00efne","AE":"Verenigde Arabische Emiraten","GB":"Verenigd Koninkrijk","US":"Verenigde Staten","UY":"Uruguay","UM":"Kleine eilanden van de Verenigde Staten","UZ":"Oezbekistan","VU":"Vanuatu","VE":"Venezuela","VN":"Vietnam","VG":"Britse Maagdeneilanden","VI":"Amerikaanse Maagdeneilanden","WF":"Wallis en Futuna","EH":"Westelijke Sahara","YE":"Yemen","ZM":"Zambia","ZW":"Zimbabwe"},"strings":{"newRowAdded":"Nieuwe rij toegevoegd.","rowRemoved":"Rij verwijderd","formSaved":"Het formulier is opgeslagen. De inhoud bevat de link om terug te keren en het formulier in te vullen."}};
var gf_global = {"gf_currency_config":{"name":"Euro","symbol_left":"","symbol_right":"€","symbol_padding":" ","thousand_separator":".","decimal_separator":",","decimals":2,"code":"EUR"},"base_url":"https://brndpwr.com/wp-content/plugins/gravityforms","number_formats":[],"version_hash":"f958846b92d9014e7bf4f4a5a60e66fd","countries":{"AF":"Afghanistan","AX":"Aland-eilanden","AL":"Albani\u00eb","DZ":"Algerije","AS":"Amerikaans Samoa","AD":"Andorra","AO":"Angola","AI":"Anguilla","AQ":"Antarctica","AG":"Antigua en Barbuda","AR":"Argentini\u00eb","AM":"Armeni\u00eb","AW":"Aruba","AU":"Australi\u00eb","AT":"Oostenrijk","AZ":"Azerbeidzjan","BS":"Bahama's","BH":"Bahrein","BD":"Bangladesh","BB":"Barbados","BY":"Wit-Rusland","BE":"Belgi\u00eb","BZ":"Belize","BJ":"Benin","BM":"Bermuda","BT":"Bhutan","BO":"Bolivia","BQ":"Bonaire, Sint Eustatius en Saba","BA":"Bosni\u00eb en Herzegovina","BW":"Botswana","BV":"Bouvet eiland","BR":"Brazili\u00eb","IO":"Brits-Indisch oceaan gebied","BN":"Brunei Darussalam","BG":"Bulgarije","BF":"Burkina Faso","BI":"Burundi","CV":"Kaapverdi\u00eb","KH":"Cambodja","CM":"Kameroen","CA":"Canada","KY":"Kaaimaneilanden","CF":"Centraal-Afrikaanse Republiek","TD":"Tsjaad","CL":"Chili","CN":"China","CX":"Kersteiland","CC":"Cocoseilanden","CO":"Colombia","KM":"Comoren","CD":"Congo, Democratische Republiek","CG":"Congo","CK":"Cook eilanden","CR":"Costa Rica","CI":"Ivoorkust","HR":"Kroati\u00eb","CU":"Cuba","CW":"Cura\u00e7ao","CY":"Cyprus","CZ":"Tsjechi\u00eb","DK":"Denemarken","DJ":"Djibouti","DM":"Dominica","DO":"Dominicaanse Republiek","EC":"Ecuador","EG":"Egypte","SV":"El Salvador","GQ":"Equatoriaal-Guinea","ER":"Eritrea","EE":"Estland","SZ":"Eswatini","ET":"Ethiopi\u00eb","FK":"Falkland eilanden","FO":"Faer\u00f6er","FJ":"Fiji","FI":"Finland","FR":"Frankrijk","GF":"Frans Guyana","PF":"Frans-Polynesi\u00eb","TF":"Franse zuidelijke gebieden","GA":"Gabon","GM":"Gambia","GE":"Georgi\u00eb","DE":"Duitsland","GH":"Ghana","GI":"Gibraltar","GR":"Griekenland","GL":"Groenland","GD":"Grenada","GP":"Guadeloupe","GU":"Guam","GT":"Guatemala","GG":"Guernsey","GN":"Guinee","GW":"Guinee-Bissau","GY":"Guyana","HT":"Ha\u00efti","HM":"Heard Eiland en McDonald Eilanden","VA":"Vaticaanstad","HN":"Honduras","HK":"Hong Kong","HU":"Hongarije","IS":"IJsland","IN":"India","ID":"Indonesi\u00eb","IR":"Iran","IQ":"Irak","IE":"Ierland","IM":"Man","IL":"Isra\u00ebl","IT":"Itali\u00eb","JM":"Jamaica","JP":"Japan","JE":"Jersey","JO":"Jordani\u00eb","KZ":"Kazachstan","KE":"Kenia","KI":"Kiribati","KP":"Korea, Democratische Volksrepubliek","KR":"Korea, Republiek van","KW":"Koeweit","KG":"Kirgizi\u00eb","LA":"Lao Democratische Volksrepubliek","LV":"Letland","LB":"Libanon","LS":"Lesotho","LR":"Liberia","LY":"Libi\u00eb","LI":"Liechtenstein","LT":"Litouwen","LU":"Luxemburg","MO":"Macau","MG":"Madagaskar","MW":"Malawi","MY":"Maleisi\u00eb","MV":"Maldiven","ML":"Mali","MT":"Malta","MH":"Marshalleilanden","MQ":"Martinique","MR":"Mauritani\u00eb","MU":"Mauritius","YT":"Mayotte","MX":"Mexico","FM":"Micronesia","MD":"Moldavi\u00eb","MC":"Monaco","MN":"Mongoli\u00eb","ME":"Montenegro","MS":"Montserrat","MA":"Marokko","MZ":"Mozambique","MM":"Myanmar","NA":"Namibi\u00eb","NR":"Nauru","NP":"Nepal","NL":"Nederland","NC":"Nieuw-Caledoni\u00eb","NZ":"Nieuw-Zeeland","NI":"Nicaragua","NE":"Niger","NG":"Nigeria","NU":"Niue","NF":"Norfolk eiland","MK":"Noord-Macedoni\u00eb","MP":"Noordelijke Marianen","NO":"Noorwegen","OM":"Oman","PK":"Pakistan","PW":"Palau","PS":"Palestina, Staat","PA":"Panama","PG":"Papoea-Nieuw-Guinea","PY":"Paraguay","PE":"Peru","PH":"Filipijnen","PN":"Pitcairn","PL":"Polen","PT":"Portugal","PR":"Puerto Rico","QA":"Qatar","RE":"R\u00e9union","RO":"Roemeni\u00eb","RU":"Russische Federatie","RW":"Rwanda","BL":"Saint Barth\u00e9lemy","SH":"Sint-Helena, Hemelvaart en Tristan da Cunha","KN":"Saint Kitts en Nevis","LC":"Saint Lucia","MF":"Sint Maarten","PM":"Saint Pierre en Miquelon","VC":"Saint Vincent en de Grenadines","WS":"Samoa","SM":"San Marino","ST":"Sao Tom\u00e9 en Principe","SA":"Saoedi-Arabi\u00eb","SN":"Senegal","RS":"Servi\u00eb","SC":"Seychellen","SL":"Sierra Leone","SG":"Singapore","SX":"Sint Maarten","SK":"Slowakije","SI":"Sloveni\u00eb","SB":"Salomonseilanden","SO":"Somali\u00eb","ZA":"Zuid-Afrika","GS":"Ji\u017en\u00ed Georgie a Ji\u017en\u00ed Sandwichovy ostrovy","SS":"Zuid Soedan","ES":"Spanje","LK":"Sri Lanka","SD":"Soedan","SR":"Suriname","SJ":"Spitsbergen en Jan Mayen","SE":"Zweden","CH":"Zwitserland","SY":"Arabische Republiek Syri\u00eb","TW":"Taiwan","TJ":"Tadzjikistan","TZ":"Tanzania, de Verenigde Republiek van","TH":"Thailand","TL":"Timor-Leste","TG":"Togo","TK":"Tokelau","TO":"Tonga","TT":"Trinidad en Tobago","TN":"Tunesi\u00eb","TR":"Turkije","TM":"Turkmenistan","TC":"Turks- en Caicoseilanden","TV":"Tuvalu","UG":"Oeganda","UA":"Oekra\u00efne","AE":"Verenigde Arabische Emiraten","GB":"Verenigd Koninkrijk","US":"Verenigde Staten","UY":"Uruguay","UM":"Kleine eilanden van de Verenigde Staten","UZ":"Oezbekistan","VU":"Vanuatu","VE":"Venezuela","VN":"Vietnam","VG":"Britse Maagdeneilanden","VI":"Amerikaanse Maagdeneilanden","WF":"Wallis en Futuna","EH":"Westelijke Sahara","YE":"Yemen","ZM":"Zambia","ZW":"Zimbabwe"},"strings":{"newRowAdded":"Nieuwe rij toegevoegd.","rowRemoved":"Rij verwijderd","formSaved":"Het formulier is opgeslagen. De inhoud bevat de link om terug te keren en het formulier in te vullen."}};
//# sourceURL=gform_gravityforms-js-extra
https://brndpwr.com/wp-content/plugins/gravityforms/js/gravityforms.min.js
https://brndpwr.com/wp-content/plugins/gravityforms/js/placeholders.jquery.min.js
https://brndpwr.com/wp-content/plugins/gravityforms/assets/js/dist/utils.min.js
https://brndpwr.com/wp-content/plugins/gravityforms/assets/js/dist/vendor-theme.min.js
var gform_theme_config = {"common":{"form":{"honeypot":{"version_hash":"f958846b92d9014e7bf4f4a5a60e66fd"},"ajax":{"ajaxurl":"https://brndpwr.com/wp-admin/admin-ajax.php","ajax_submission_nonce":"4c978f3074","i18n":{"step_announcement":"Stap %1$s van %2$s, %3$s","unknown_error":"Er was een onbekende fout bij het verwerken van je aanvraag. Probeer het opnieuw.","error_403":"De aanvraag is om onbekende veiligheidsredenen geblokkeerd (403-fout). Verwijder alle code-achtige tekst (scripts of databasequery's) en probeer het opnieuw."}}}},"hmr_dev":"","public_path":"https://brndpwr.com/wp-content/plugins/gravityforms/assets/js/dist/","config_nonce":"b45f0bec1d"};
//# sourceURL=gform_gravityforms_theme-js-extra
https://brndpwr.com/wp-content/plugins/gravityforms/assets/js/dist/scripts-theme.min.js
var gfZeroSpamConfig = {"forms":[{"ajaxUrl":"https:\/\/brndpwr.com\/wp-admin\/admin-ajax.php","fallbackToken":"MnwxNzg5MzMzMjg2fDE3ODk5MzgwODZ8ZDAwNGY2NWFkOWJjZDQwMzJhMjFkMWYzOGE3YzNiNzJ8MQ.Mjk0YjFmNGU0ZTg4OGY1NTY2Y2Q2NmM5NmQ5YzAwNGYyMmJkNGQyNTA4MGJkZWFkMjhjN2M5NWE5ZDYzMTQ2Zg","formId":2,"timeout":3000},{"ajaxUrl":"https:\/\/brndpwr.com\/wp-admin\/admin-ajax.php","fallbackToken":"NHwxNzg5MzMzMjg2fDE3ODk5MzgwODZ8NGM3N2ZlZTI5NzU1NmQ2ZjVhMWZjZDBlZDNjZTc3ZmN8MQ.NTE2MGE4NjY0NDllOGQzNTA1NTUzY2MwZjdkMDczOGNmMGUwYmIwNjA4OTQzN2FiZGY4YjljZTg1MjBmOTJlZA","formId":4,"timeout":3000}],"debug":false};
https://brndpwr.com/wp-content/plugins/gravity-forms-zero-spam/dist/js/gf-zero-spam.js
window.ga4w = { data: {"cart":{"items":[],"coupons":[],"totals":{"currency_code":"EUR","total_price":0,"currency_minor_unit":2}},"list_name":"Productlijst"}, settings: {"tracker_function_name":"gtag","events":["purchase","add_to_cart","remove_from_cart","view_item_list","select_content","view_item","begin_checkout","add_shipping_info","add_payment_info"],"identifier":"product_sku","currency":{"decimalSeparator":",","thousandSeparator":".","precision":2}} }; document.dispatchEvent(new Event("ga4w:ready"));
//# sourceURL=woocommerce-google-analytics-integration-data-js-after
jQuery(document).ready(function($) {
console.log('DOM Ready - Product Selection Handler');
// Function to handle product selection
function handleProductSelection() {
console.log('Handling product selection');
// Get selected package
const $selectedPackage = $('input[name="package_radio"]:checked');
if (!$selectedPackage.length) {
console.log('No package selected');
return;
}
console.log('Selected package:', $selectedPackage.val());
// Get product ID and details
const productId = $selectedPackage.val();
const $label = $selectedPackage.closest('label');
// Get package name from the correct heading element
const packageName = $label.find('.pakket-heading h4 span').text().trim();
console.log('Package name:', packageName);
// Get price from the price wrapper
let packagePrice = '';
const $priceWrapper = $label.find('.price-wrapper span .woocommerce-Price-amount');
if ($priceWrapper.length) {
packagePrice = $priceWrapper.text().trim();
console.log('Found price:', packagePrice);
}
// Get selected duration if exists
const duration = $('.termijnen-container select[name="duration"]').val() || '12';
console.log('Selected duration:', duration);
// Handle extra products
const extraProducts = [];
console.log('Checking for extra products');
$('input[name="extra_products[]"]:checked').each(function() {
const $extraLabel = $(this).closest('label');
const extraId = $(this).val();
console.log('Processing extra product:', extraId);
let extraSku = $(this).data('sku');
let extraName = '';
let extraPrice = '';
// If SKU is not available in data attribute, fetch it using the product ID
if (!extraSku) {
console.log('No SKU in data attribute, fetching from server for ID:', extraId);
$.ajax({
url: wc_add_to_cart_params.ajax_url,
type: 'POST',
async: false,
data: {
action: 'get_product_sku',
product_id: extraId
},
success: function(response) {
console.log('Server response:', response);
if (response.success && response.data) {
extraSku = response.data.sku;
extraName = response.data.name;
extraPrice = response.data.price;
console.log('Fetched product details:', response.data);
} else {
extraSku = extraId;
console.log('Failed to fetch product details, using ID as fallback:', extraId);
}
},
error: function(xhr, status, error) {
console.log('AJAX error:', error);
extraSku = extraId;
}
});
} else {
console.log('Found SKU in data attribute:', extraSku);
extraName = $extraLabel.find('.extra-product-heading').text().trim();
const $extraPriceElem = $extraLabel.find('.price-wrapper .woocommerce-Price-amount');
extraPrice = $extraPriceElem.length ? $extraPriceElem.text().trim() : '';
}const extraProduct = {
id: extraId,
sku: extraSku,
name: extraName,
price: extraPrice
};
console.log('Adding extra product:', extraProduct);
extraProducts.push(extraProduct);
});
// Log final selection details
console.log('Final selection:', {
package: {
id: productId,
name: packageName,
price: packagePrice
},
duration: duration,
extraProducts: extraProducts
});
}// Attach event handlers
$('input[name="package_radio"]').on('change', handleProductSelection);
$('input[name="extra_products[]"]').on('change', handleProductSelection);
$('.termijnen-container select[name="duration"]').on('change', handleProductSelection);
// Initial call to handle any pre-selected options
handleProductSelection();
});
jQuery(document).ready(function($) {
// Handle the btn-verder button
$(document).on('click', '.btn-verder, .bestel-btn', function(e) {
e.preventDefault();
handleCirculyCheckout();
return false;
});// Handle the checkout form
$('form.checkout').on('submit', function(e) {
e.preventDefault();
handleCirculyCheckout();
return false;
});function handleCirculyCheckout() {
$.ajax({
url: 'https://brndpwr.com/wp-admin/admin-ajax.php',
type: 'POST',
data: {
action: 'get_cart_skus'
},
success: function(response) {
if (response.success && response.data) {
let maxDuration = '1';
response.data.forEach(function(item) {
const durationMatch = item.sku.match(/(\d+)M/);
if (durationMatch) {
const duration = durationMatch[1];
if (parseInt(duration) > parseInt(maxDuration)) {
maxDuration = duration;
}
}
});const params = new URLSearchParams();
params.append('api_key', '3W1KL1oqe6jAD7fGSWD1bMzbVEsNOU');
const currentUrl = encodeURIComponent(window.location.href);
response.data.forEach(function(item) {
const sku = item.sku;
const oneTimeSKUs = ['AB-MR-BNLX', 'AB-MR-EU', 'AB-BX-EU'];
const isOneTime = item.name.toLowerCase().includes('eenmalige') ||
item.sku.includes('OT') ||
item.name.includes('Shark Check') ||
oneTimeSKUs.includes(item.sku);
params.append('sku', sku);
params.append(`quantity[${sku}]`, item.quantity.toString());
params.append(`subscription[${sku}]`, isOneTime ? 'false' : 'true');
params.append(`subscription_type[${sku}]`, 'digital');
// params.append(`subscription_interval[${sku}]`, isOneTime ? '1' : maxDuration);
params.append(`subscription_duration[${sku}]`, isOneTime ? '1' : maxDuration);
params.append(`subscription_period[${sku}]`, isOneTime ? 'null' : 'monthly');
// params.append('origin_redirect_url', window.location.href);
});
params.append('locale', 'nl');
params.append('language', 'nl');
const checkoutUrl = `https://registreren.brndpwr.com/nl/cart/create?${params.toString()}&origin_redirect_url=${currentUrl}`;
window.location.href = checkoutUrl;
}
},
error: function(xhr, status, error) {
console.error('Error:', error);
}
});
}
});
gform.initializeOnLoaded( function() { jQuery(document).on('gform_post_render', function(event, formId, currentPage){if(formId == 2) {if(typeof Placeholders != 'undefined'){
Placeholders.enable();
}} } );jQuery(document).on('gform_post_conditional_logic', function(event, formId, fields, isInit){} ) } );
gform.initializeOnLoaded( function() {jQuery(document).trigger("gform_pre_post_render", [{ formId: "2", currentPage: "1", abort: function() { this.preventDefault(); } }]); if (event && event.defaultPrevented) { return; } const gformWrapperDiv = document.getElementById( "gform_wrapper_2" ); if ( gformWrapperDiv ) { const visibilitySpan = document.createElement( "span" ); visibilitySpan.id = "gform_visibility_test_2"; gformWrapperDiv.insertAdjacentElement( "afterend", visibilitySpan ); } const visibilityTestDiv = document.getElementById( "gform_visibility_test_2" ); let postRenderFired = false; function triggerPostRender() { if ( postRenderFired ) { return; } postRenderFired = true; gform.core.triggerPostRenderEvents( 2, 1 ); if ( visibilityTestDiv ) { visibilityTestDiv.parentNode.removeChild( visibilityTestDiv ); } } function debounce( func, wait, immediate ) { var timeout; return function() { var context = this, args = arguments; var later = function() { timeout = null; if ( !immediate ) func.apply( context, args ); }; var callNow = immediate && !timeout; clearTimeout( timeout ); timeout = setTimeout( later, wait ); if ( callNow ) func.apply( context, args ); }; } const debouncedTriggerPostRender = debounce( function() { triggerPostRender(); }, 200 ); if ( visibilityTestDiv && visibilityTestDiv.offsetParent === null ) { const observer = new MutationObserver( ( mutations ) => { mutations.forEach( ( mutation ) => { if ( mutation.type === 'attributes' && visibilityTestDiv.offsetParent !== null ) { debouncedTriggerPostRender(); observer.disconnect(); } }); }); observer.observe( document.body, { attributes: true, childList: false, subtree: true, attributeFilter: [ 'style', 'class' ], }); } else { triggerPostRender(); } } );
gform.initializeOnLoaded( function() { jQuery(document).on('gform_post_render', function(event, formId, currentPage){if(formId == 4) {if(typeof Placeholders != 'undefined'){
Placeholders.enable();
}} } );jQuery(document).on('gform_post_conditional_logic', function(event, formId, fields, isInit){} ) } );
gform.initializeOnLoaded( function() {jQuery(document).trigger("gform_pre_post_render", [{ formId: "4", currentPage: "1", abort: function() { this.preventDefault(); } }]); if (event && event.defaultPrevented) { return; } const gformWrapperDiv = document.getElementById( "gform_wrapper_4" ); if ( gformWrapperDiv ) { const visibilitySpan = document.createElement( "span" ); visibilitySpan.id = "gform_visibility_test_4"; gformWrapperDiv.insertAdjacentElement( "afterend", visibilitySpan ); } const visibilityTestDiv = document.getElementById( "gform_visibility_test_4" ); let postRenderFired = false; function triggerPostRender() { if ( postRenderFired ) { return; } postRenderFired = true; gform.core.triggerPostRenderEvents( 4, 1 ); if ( visibilityTestDiv ) { visibilityTestDiv.parentNode.removeChild( visibilityTestDiv ); } } function debounce( func, wait, immediate ) { var timeout; return function() { var context = this, args = arguments; var later = function() { timeout = null; if ( !immediate ) func.apply( context, args ); }; var callNow = immediate && !timeout; clearTimeout( timeout ); timeout = setTimeout( later, wait ); if ( callNow ) func.apply( context, args ); }; } const debouncedTriggerPostRender = debounce( function() { triggerPostRender(); }, 200 ); if ( visibilityTestDiv && visibilityTestDiv.offsetParent === null ) { const observer = new MutationObserver( ( mutations ) => { mutations.forEach( ( mutation ) => { if ( mutation.type === 'attributes' && visibilityTestDiv.offsetParent !== null ) { debouncedTriggerPostRender(); observer.disconnect(); } }); }); observer.observe( document.body, { attributes: true, childList: false, subtree: true, attributeFilter: [ 'style', 'class' ], }); } else { triggerPostRender(); } } );
(function(e,t,o,n,p,r,i){e.visitorGlobalObjectAlias=n;e[e.visitorGlobalObjectAlias]=e[e.visitorGlobalObjectAlias]||function(){(e[e.visitorGlobalObjectAlias].q=e[e.visitorGlobalObjectAlias].q||[]).push(arguments)};e[e.visitorGlobalObjectAlias].l=(new Date).getTime();r=t.createElement("script");r.src=o;r.async=true;i=t.getElementsByTagName("script")[0];i.parentNode.insertBefore(r,i)})(window,document,"https://diffuser-cdn.app-us1.com/diffuser/diffuser.js","vgo");
vgo('setAccount', '69158192');
vgo('setTrackByDefault', true);vgo('process');
window.Futy = { key: '66dacfd148ca6' };
(function (e, t) {
var n = e.createElement(t);
n.async = true;
var f = window.Promise && window.fetch ? 'modern.js' : 'legacy.js';
n.src = 'https://v1.widget.futy.io/js/futy-widget-' + f;
var r = e.getElementsByTagName(t)[0];
r.parentNode.insertBefore(n, r);
})(document, 'script');