1/* @license GPL-2.0-or-later https://www.drupal.org/licensing/faq */ 2(function($,Drupal){'use strict';Drupal.behaviors.marketoMunchkin={attach:function(context,settings){const init=function(){let config=getMunchkinID();let cookiesAccepted=true;if(typeof GDPR!=='undefined')cookiesAccepted=GDPR.cookiesAccepted();if(cookiesAccepted&&typeof Munchkin!=='undefined'&&config){let result=Munchkin.init(config);return result;}else{if(!cookiesAccepted){let domain="."+document.domain;document.cookie='_mkto_trk=; expires=Thu, 01 Jan 1970 00:00:00 UTC; path=/; domain='+domain;}}};const getMunchkinID=function(){if(typeof (settings.marketoForms)!='undefined'&&typeof (settings.marketoForms.munchkinId)!='undefined'&&settings.marketoForms.munchkinId)return settings.marketoForms.munchkinId;if(typeof (settings.marketoForms)!='undefined'&&settings.marketoForms){for(let key in settings.marketoForms)if(settings.marketoForms.hasOwnProperty(key)&&typeof (settings.marketoForms[key])==='object'&&settings.marketoForms[key]!==null&&settings.marketoForms[key].munchkinId)return settings.marketoForms[key].munchkinId;}return false;};if(typeof GDPR!=='undefined'&&!GDPR.initialisationComplete)$(window).on("gdpr:load",function(){init();});else init();}};})(jQuery,Drupal);; 3(function($,Drupal){"use strict";Drupal.marketoForms=Drupal.marketoForms||{};Drupal.marketoForms.loadedForms=Drupal.marketoForms.loadedForms||[];Drupal.marketoForms.scriptsLoaded=Drupal.marketoForms.scriptsLoaded||false;Drupal.marketoForms.errorHandlerRegistered=Drupal.marketoForms.errorHandlerRegistered||false;const SALES_INQUIRY_EN=1311;const SALES_INQUIRY_ES=1317;const SALES_INQUIRY_FR=1318;const SALES_INQUIRY_DE=1319;const SALES_INQUIRY_IT=2985;const SALES_INQUIRY_STEP2_EN=3307;const SALES_INQUIRY_STEP2_ES=3515;const SALES_INQUIRY_STEP2_FR=3507;const SALES_INQUIRY_STEP2_DE=3510;const SALES_INQUIRY_STEP2_IT=3514;const SALES_INQUIRY_STEP2_PAID_SOCIAL=3561;const SALES_INQUIRY_STEP2_PAID_SOCIAL_ES=3711;const SALES_INQUIRY_STEP2_PAID_SOCIAL_FR=3712;const SALES_INQUIRY_STEP2_PAID_SOCIAL_IT=3713;const MULTI_STEP_FORM_EN=1560;const MULTI_STEP_FORM_FR=3703;const MULTI_STEP_FORM_ES=3705;const MULTI_STEP_FORM_IT=3709;const MULTI_STEP_FORMS=[MULTI_STEP_FORM_EN,MULTI_STEP_FORM_FR,MULTI_STEP_FORM_ES,MULTI_STEP_FORM_IT];const CHILIPIPER_RESPONSE=3196;let chiliPiperResponseFormBound=false;const MEETING_STATUS={DISQUALIFIED:'Disqualified',BOOKED:'Meeting Booked'};const PAID_SOCIAL_LANDING_NODE_ID=4243;const PAID_SOCIAL_STEP2_FORM_MAP={[SALES_INQUIRY_EN]:SALES_INQUIRY_STEP2_PAID_SOCIAL,[SALES_INQUIRY_ES]:SALES_INQUIRY_STEP2_PAID_SOCIAL_ES,[SALES_INQUIRY_FR]:SALES_INQUIRY_STEP2_PAID_SOCIAL_FR,[SALES_INQUIRY_IT]:SALES_INQUIRY_STEP2_PAID_SOCIAL_IT};const SALES_INQUIRY_STANDARD_FORMS=[SALES_INQUIRY_EN,SALES_INQUIRY_ES,SALES_INQUIRY_FR,SALES_INQUIRY_DE,SALES_INQUIRY_IT];const CHILIPIPER_FORMS=[...MULTI_STEP_FORMS,...SALES_INQUIRY_STANDARD_FORMS];const STEP2_FORM_MAP={[SALES_INQUIRY_EN]:SALES_INQUIRY_STEP2_EN,[SALES_INQUIRY_ES]:SALES_INQUIRY_STEP2_ES,[SALES_INQUIRY_FR]:SALES_INQUIRY_STEP2_FR,[SALES_INQUIRY_DE]:SALES_INQUIRY_STEP2_DE,[SALES_INQUIRY_IT]:SALES_INQUIRY_STEP2_IT};const ALL_STEP2_FORM_IDS=[...Object.values(STEP2_FORM_MAP),...Object.values(PAID_SOCIAL_STEP2_FORM_MAP)];const isPaidSocialLandingPage=function(){const settings=(typeof drupalSettings!=="undefined"&&drupalSettings.marketoForms)||{};return Number(settings.pageNodeId)===PAID_SOCIAL_LANDING_NODE_ID;};const getStep2FormId=function(formId){if(isPaidSocialLandingPage()&&PAID_SOCIAL_STEP2_FORM_MAP[formId])return PAID_SOCIAL_STEP2_FORM_MAP[formId];return STEP2_FORM_MAP[formId];};Drupal.behaviors.marketoForms={attach:function(context,settings){const getMarketoFormsSettings=function(){if(typeof settings.marketoForms!=="undefined"&&settings.marketoForms)return settings.marketoForms;return [];};const init=function(marketoConfig){let $formInstances=$("form."+marketoConfig.htmlClass,context);if($formInstances.length)injectMarketoForms(marketoConfig);MktoForms2.whenReady(function(form){let formId=form.getId();let $form=form.getFormElem();if(CHILIPIPER_FORMS.includes(formId))MktoForms2.loadForm(marketoConfig.instanceHost,marketoConfig.munchkinId,CHILIPIPER_RESPONSE);if(formId===CHILIPIPER_RESPONSE&&!chiliPiperResponseFormBound){chil
3iPiperResponseFormBound=true;form.onSuccess(function(values){try{logChiliPiperEvent('responseFormSubmitted',{fieldNames:responseFormFieldNames(values)});}catch(e){}return false;});}if(!$form.hasClass("processed-marketo")){processFormFields(form);$form.addClass("processed-marketo");}if(document.Cookie){let geolocationCookie=document.Cookie.read("STYXKEY_mbGeolocation");let geolocationInfo=geolocationCookie?safeJsonParse(geolocationCookie):null;let businessModeUserCookie=document.Cookie.read("BusinessModeUser");let clientId=businessModeUserCookie?(safeJsonParse(businessModeUserCookie)||{}).cid||null:null;if(geolocationInfo){prefillFromCookies($form,geolocationInfo,clientId);handleOptInCheckboxVisibility(geolocationInfo);}else document.addEventListener("geoDataLoaded",function(){geolocationCookie=document.Cookie.read("STYXKEY_mbGeolocation");geolocationInfo=geolocationCookie?safeJsonParse(geolocationCookie):null;if(geolocationInfo){prefillFromCookies($form,geolocationInfo,clientId);handleOptInCheckboxVisibility(geolocationInfo);}},{once:true});}$form.trigger("whenFormElRendered"+$form.attr("data-form-id"));if(marketoConfig.removeSourceStyles)removeMarketoSourceStylesheets(form);if(!Drupal.marketoForms.scriptsLoaded){Drupal.marketoForms.scriptsLoaded=true;$.getScript("/modules/custom/e3_marketo-master/js/e3_marketo_validation.js");$.getScript("/modules/custom/e3_marketo-master/js/tealiumSubmit.js");}});if(!Drupal.marketoForms.errorHandlerRegistered){Drupal.marketoForms.errorHandlerRegistered=true;$(document).on('ajaxError.marketoForms',function(event,jqXHR,ajaxSettings){if(ajaxSettings.url&&ajaxSettings.url.indexOf('/leadCapture/')!==-1){var err=new Error('Marketo form submission failed (HTTP '+jqXHR.status+')');if(typeof newrelic!=='undefined')newrelic.noticeError(err,{httpStatus:jqXHR.status,url:ajaxSettings.url});}});}};const injectMarketoForms=function(marketoConfig){let arrayFrom=Function.prototype.call.bind(Array.prototype.slice);let marketoFormDataAttr="data-form-id";MktoForms2.whenRendered(function(form){let formEl=form.getFormElem()[0];let randomSuffix="_"+new Date().getTime()+Math.random();arrayFrom(formEl.querySelectorAll("label[for]")).forEach(function(labelEl){let forEl=formEl.querySelector('[id="'+labelEl.htmlFor+'"]');if(forEl)labelEl.htmlFor=forEl.id=forEl.id+randomSuffix;});});let loadForm=MktoForms2.loadForm.bind(MktoForms2,marketoConfig.instanceHost,marketoConfig.munchkinId,marketoConfig.formId);let formEls=arrayFrom($("form["+marketoFormDataAttr+"="+marketoConfig.formId+"]:not(.mktoHasWidth)"));let seenInstances=[];formEls=formEls.filter(function(element){let dataInstance=element.getAttribute("data-instance");if(dataInstance&&seenInstances.indexOf(dataInstance)>-1)return false;seenInstances.push(dataInstance);return true;});(function loadFormCb(formEls){let formEl=formEls.shift();if(typeof formEl!=="undefined"){let dataInstance=formEl.getAttribute("data-instance");formEl.id="mktoForm_"+marketoConfig.formId;if($("form#marketo-form-"+marketoConfig.formId+"-"+dataInstance).length<1&&Drupal.marketoForms.loadedForms.indexOf(marketoConfig.formId+"-"+dataInstance)===-1)loadForm(function(form){Drupal.marketoForms.loadedForms.push(marketoConfig.formId+"-"+dataInstance);formEl.id="marketo-form-"+marketoConfig.formId+"-"+dataInstance;marketoFormPostLoad(form,marketoConfig,dataInstance);if(formEls.length>0)loadFormCb(formEls);});}})(formEls);};const marketoPreInit=function(marketoConfig){if(typeof MktoForms2==="undefined"){let $form=$("form."+marketoConfig.htmlClass,context);if(typeof newrelic!=="undefined")newrelic.noticeError("MktoForms2 failed to load: "+marketoConfig.instanceHost);if($form.length>0&&typeof marketoConfig.loadErrorMessage!=="undefined"){let $formWrapper=$form.parent(marketoConfig.formWrapper);$formWrapper.addClass("no-marketo");$form.replaceWith(marketoConfig.loadErrorMessage);$formWrapper.closest(".marketo-steps-wrapper").removeClass("hidden");}return false;}else init(marketoConfig);};const initProxyMarketo=function(marketoConfig){let s=document.createElement("script");s.setAttribute("type","text/javascript");s.setAttribute("src",marketoConfig.instanceHost+"/js/forms2/js/forms2.min.js");s.onload=marketoPreInit.bind(this,marketoConfig);s.onerror=marketoHandleError.bind(this,marketoConfig);document.getElementsByTagName("head")[0].appendChild(s);};const marketoHandleError=function(marketoConfig){if(typeof newrelic!=='undefined')newrelic.noticeError(new Error('Marketo
3script failed to load: '+marketoConfig.instanceHost));let $form=$("form."+marketoConfig.htmlClass,context);if($form.length>0&&typeof marketoConfig.loadErrorMessage!=="undefined"){let $formWrapper=$form.parent(marketoConfig.formWrapper);$formWrapper.addClass("no-marketo").addClass("mktoFallbackMessage");$form.replaceWith(marketoConfig.loadErrorMessage);$formWrapper.closest(".marketo-steps-wrapper").removeClass("hidden");}};const processFormFields=function(form){form.getFormElem().find(".mktoField").each(function(){let $field=$(this);let fieldName=$field.attr("name");if(typeof fieldName!=="undefined")$field.parents(".mktoFormRow").addClass("mktoField"+fieldName);if($field.is("input:not([type=checkbox]):not([type=radio])"))setInputStateTracker($field);if($field.is("select")){$field.parents(".mktoFieldWrap").addClass("marketo-form-item");setSelectStateTracker($field);}if($field.is("select[multiple=multiple]"))$field.parents(".mktoFieldWrap").addClass("marketo-multiple-select");if($field.is("textarea")){$field.parents(".mktoFieldWrap").addClass("marketo-form-item");setInputStateTracker($field);}if($field.is("input[type=checkbox]"))$field.parents(".mktoFieldWrap").addClass("marketo-checkbox");if($field.is("input[type=radio]")){$field.parents(".mktoFieldWrap").addClass("marketo-radio");$field.next('label').addBack('input').wrapAll('<span class="marketo-radio-wrapper">');}});};const setInputStateTracker=function(input){let $wrapper=input.parents(".mktoFieldWrap").addClass("marketo-form-item");let events="propertychange change paste input";input.on("focus",function(){$wrapper.addClass("marketo-focus-form-item");}).on("blur",function(){$wrapper.removeClass("marketo-focus-form-item");});input.on(events,function(){if(this.value===""||this.value.length<1)$wrapper.removeClass("has-value");else $wrapper.addClass("has-value");});if(input[0].value)$wrapper.addClass("has-value");};const setSelectStateTracker=function(select){let $wrapper=select.parents(".mktoFieldWrap").addClass("marketo-form-item");select.on("focus",function(){$wrapper.addClass("marketo-focus-form-item");}).on("blur",function(){$wrapper.removeClass("marketo-focus-form-item");});select.on("change",function(){$wrapper.addClass("has-value");});if(select[0].value)$wrapper.addClass("has-value");};const safeJsonParse=function(jsonString){try{return JSON.parse(jsonString);}catch(e){if(typeof newrelic!=="undefined")newrelic.noticeError('Failed to parse JSON: '+e.message);return null;}};const prefillFromCookies=function($form,geolocationInfo,clientId){const cookieToMarketoFieldMap={"visit_utm_source":"UTM_Source__c","visit_utm_medium":"UTM_Medium__c","visit_utm_campaign":"UTM_Ad_Campaign__c","visit_utm_term":"UTM_Ad_Keyword__c","visit_utm_content":"UTM_Content__c","visit_ad_group":"UTM_Ad_Group__c","visit_gclid":"GCLID__c","visit_im_ref":"Impact_clickId__c"};for(let cookieName in cookieToMarketoFieldMap){let cookieValue=document.Cookie.read(cookieName);let marketoField=cookieToMarketoFieldMap[cookieName];if(marketoField&&cookieValue)$form.find("[name='"+marketoField+"']").val(cookieValue);}if(geolocationInfo){if(geolocationInfo.postalCode)$form.find("[name='inferredPostalCodeTealium']").val(geolocationInfo.postalCode);if(geolocationInfo.countryName)$form.find("[name='InferredCountry']").val(geolocationInfo.countryName);}if(clientId)$form.find("[name='clientID']").val(clientId);};const handleOptInCheckboxVisibility=function(geolocationInfo){const countriesWithImpliedConsent=["us","au","br","mx","pr","de","nl","ar","at","be","bg","cy","cz","dk","eg","id","it","lt","lu","ng","no","pk","pl","ph","pt","qa","ro","sa","ch","tr"];let hideOptIn=geolocationInfo&&countriesWithImpliedConsent.includes(geolocationInfo.isoCode);if(!hideOptIn)document.querySelectorAll(".mktoFieldunsubscribeConfirmation").forEach(function(el){el.classList.add("reveal");});};const marketoFormPostLoad=function(form,marketoConfig,dataInstance){let instanceConfig=marketoConfig[dataInstance];if(instanceConfig.hiddenFields)form.addHiddenFields(instanceConfig.hiddenFields);form.onSubmit(function(form){handleOnSubmit(form);});form.onSuccess(function(values,followUpUrl){return handleOnSuccess(form,values,followUpUrl,instanceConfig,marketoConfig,dataInstance);});};const handleOnSubmit=function(form){const values=form.getValues()||{};const companyName=(values.Company||'').trim().toLowerCase();const firstName=(values.FirstName||'').trim().toLowerCase();const lastName=(values.LastName||'').trim().toLowerCase();form.vals({unsupported:'false'});
3if(companyName&&(companyName===firstName||companyName===lastName))form.vals({unsupported:'true'});if('tealiumOrderID' in values)if(crypto&&crypto.randomUUID)form.vals({tealiumOrderID:crypto.randomUUID()});else if(typeof newrelic!=="undefined")newrelic.noticeError('Could not set MNTN order ID. Crypto.randomUUID is not available');else console.log('Crypto.randomUUID is not available');};const handleOnSuccess=function(form,values,followUpUrl,instanceConfig,marketoConfig,dataInstance){let formId=form.getId();if(MULTI_STEP_FORMS.includes(formId))activateChiliPiper(values);if(SALES_INQUIRY_STANDARD_FORMS.includes(formId))if(!window.twoStepSalesInquiryActivated)activateChiliPiper(values);$(once('marketo-submitted',document,context)).trigger("marketoSubmit",[form,values,followUpUrl]);if(instanceConfig.submissionCallbacks){for(let callbackKey in instanceConfig.submissionCallbacks){if(!instanceConfig.submissionCallbacks.hasOwnProperty(callbackKey))continue;let callbackName=instanceConfig.submissionCallbacks[callbackKey];if(typeof Drupal.behaviors.marketoForms[callbackName]==="function")Drupal.behaviors.marketoForms[callbackName](form,marketoConfig,values,dataInstance);}}let thankYouMessage=document.querySelector(".thank-you-message");if(thankYouMessage&&thankYouMessage.getBoundingClientRect().top<0)if(typeof scrollToSmooth==="function")scrollToSmooth(thankYouMessage);else if(typeof newrelic!=="undefined")newrelic.noticeError('scrollToSmooth is not available');else console.log('scrollToSmooth is not available');if(instanceConfig.skipMarketoRedirects)return false;};const responseFormFieldNames=function(values){return values&&typeof values==='object'?Object.keys(values).sort().join(','):'(no values)';};const logChiliPiperEvent=function(eventName,details){const payload=Object.assign({event:eventName},details||{});console.log('[ChiliPiper]',eventName,payload);if(typeof newrelic!=="undefined"&&typeof newrelic.addPageAction==="function")newrelic.addPageAction('chilipiper_writeback',payload);};const activateChiliPiper=function(lead){if(window.ChiliPiper&&typeof window.ChiliPiper.submit==="function"){const chiliPiperResponseForm=MktoForms2.getForm(CHILIPIPER_RESPONSE);if(!chiliPiperResponseForm){if(typeof newrelic!=="undefined")newrelic.noticeError('ChiliPiper response form not available');return;}const reportStatus=function(eventName,status,extraValues){chiliPiperResponseForm.vals(Object.assign({Email:lead.Email,meetingQualified:status},extraValues||{}));let values={};try{values=chiliPiperResponseForm.getValues()||{};}catch(e){}if(values.meetingQualified!==status&&typeof newrelic!=="undefined"&&typeof newrelic.noticeError==="function")newrelic.noticeError('CHILIPIPER_RESPONSE would not hold meetingQualified value: '+status);logChiliPiperEvent(eventName,{intended:status,actual:String(values.meetingQualified),fieldNames:responseFormFieldNames(values)});chiliPiperResponseForm.submit();};ChiliPiper.submit("mindbodyonline","marketo-form-router",{lead,onError:function(){logChiliPiperEvent('onError');},onDisqualified:function(){reportStatus('onDisqualified',MEETING_STATUS.DISQUALIFIED);},onSuccess:function(response){const assigneeId=response&&response.assigneeId;reportStatus('onSuccess',MEETING_STATUS.BOOKED,assigneeId?{meetingDirectAssignment:assigneeId}:null);}});}else if(typeof newrelic!=="undefined")newrelic.noticeError('ChiliPiper is not available');else console.log('ChiliPiper is not available');};const activateTwoStepSalesInquiry=function(marketoConfig){if(window.twoStepSalesInquiryActivated)return;window.twoStepInitialFormId=null;window.twoStepInitialFormValues=null;MktoForms2.whenReady(function(form){const formId=form.getId();if(SALES_INQUIRY_STANDARD_FORMS.includes(formId))setupInitialSalesInquiryForm(form,formId,marketoConfig);if(ALL_STEP2_FORM_IDS.includes(formId))setupAdditionalDetailsForm(form);});window.twoStepSalesInquiryActivated=true;};const setupInitialSalesInquiryForm=function(form,formId,marketoConfig){const step2FormId=getStep2FormId(formId);if(!step2FormId)return;const isPaidSocialFlow=isPaidSocialLandingPage()&&Boolean(PAID_SOCIAL_STEP2_FORM_MAP[formId]);MktoForms2.loadForm(marketoConfig.instanceHost,marketoConfig.munchkinId,step2FormId);form.onSuccess(function(values){window.twoStepInitialFormId=formId;window.twoStepInitialFormValues=values;window.twoStepIsPaidSocial=isPaidSocialFlow;if(!isPaidSocialFlow)activateChiliPiper(values);const thankYouMessage=document.querySelector(".thank-you-message");const formContainer=document.querySelector(".form__container:has(.thank-you-message)");if(!thankYouMessage||!formContainer)return;window.twoStepThankYouMessage=thankYouMessage;const existingStep2Form=MktoForms2.getForm(step2FormId);if(existingStep2Form)swapToAdditionalDetailsForm(existingStep2Form,thankYouMessage,formContainer,marketoConfig);else MktoForms2.whenReady(function(readyForm){if(readyForm.getId()===step2FormId)swapToAdditionalDetailsForm(readyForm,thankYouMessage,formContainer,marketoConfig);});});};const swapToAdditionalDetailsForm=function(additionalDetailsForm,thankYouMessage,formContainer,marketoConfig){const twoStepCopy=(typeof drupalSettings!=="undefined"&&drupalSettings.marketoTwoStepCopy)||{};const heading=document.createElement("div");heading.classList.add("twoStepSalesInquiry--copy","form__formHeading");const h2=document.createElement("h2");h2.classList.add("heading--zeta");h2.textContent=twoStepCopy.heading;heading.appendChild(h2);formContainer.insertBefore(heading,formContainer.firstChild);const subheading=document.createElement("div");subheading.classList.add("twoStepSalesInquiry--copy","form__formSubheading","paragraph","paragraph--multiple");const p=document.createElement("p");p.textContent=twoStepCopy.subheading;subheading.appendChild(p);formContainer.insertBefore(subheading,heading.nextSibling);thankYouMessage.replaceWith(additionalDetailsForm.getFormElem()[0]);if(marketoConfig.removeSourceStyles)removeMarketoSourceStylesheets(additionalDetailsForm);};const setupAdditionalDetailsForm=function(form){form.getFormElem().find("button[type='submit']").on("click",function(){const websiteValue=form.getValues()['Website'];const urlRegex=/^(https?:\/\/)?([\da-z\.-]+)\.([a-z\.]{2,6})([\/\w \.-]*)*\/?$/;if(urlRegex.test(websiteValue)&&!websiteValue.includes('https://')&&!websiteValue.includes('http://'))form.vals({Website:'https://'+websiteValue});});form.onSuccess(function(){if(window.twoStepIsPaidSocial&&window.twoStepInitialFormValues)activateChiliPiper(window.twoStepInitialFormValues);if(window.twoStepThankYouMessage){document.querySelectorAll(".twoStepSalesInquiry--copy").forEach((el)=>el.remove());form.getFormElem().replaceWith(window.twoStepThankYouMessage);}return false;});};const removeMarketoSourceStylesheets=function(form){let formEl=form.getFormElem()[0];let $form=form.getFormElem();let arrayFrom=Function.prototype.call.bind(Array.prototype.slice);$(formEl).find('*[class^="mkto"][style]').removeAttr("style");$form.removeAttr("style").removeClass("mktoForm").find(".mktoButton").removeClass("mktoButton");$(".mktoAsterix, .mktoClear, .mktoOffset, .mktoGutter",context).remove();$(".mktoRequiredField .mktoLabel",context).addClass("form-required");let styleSheets=arrayFrom(document.styleSheets);
3styleSheets.forEach(function(ss){if([mktoForms2BaseStyle,mktoForms2ThemeStyle].indexOf(ss.ownerNode)!==-1||formEl.contains(ss.ownerNode))ss.disabled=true;});let mktoInlineFonts=$("#mktoFontUrl");if(mktoInlineFonts.length>0)mktoInlineFonts.remove();let mktoInlineStyles=$("#mktoForms2ThemeStyle").next("style");let mktoFormStyles=$form.find("style");if(mktoInlineStyles.length>0)mktoInlineStyles.remove();if(mktoFormStyles.length>0)mktoFormStyles.remove();form.getFormElem().closest(".marketo-steps-wrapper").removeClass("hidden");};let marketoFormsSettings=getMarketoFormsSettings();let firstMarketoConfig=null;for(let settingsKey in marketoFormsSettings){if(!marketoFormsSettings.hasOwnProperty(settingsKey))continue;let marketoConfig=marketoFormsSettings[settingsKey];if(!marketoConfig||!marketoConfig.formId)continue;if(!firstMarketoConfig)firstMarketoConfig=marketoConfig;if(typeof MktoForms2==="undefined"){marketoConfig.instanceHost=marketoConfig.alternativeInstanceHost;initProxyMarketo(marketoConfig);}else marketoPreInit(marketoConfig);}if(firstMarketoConfig&&typeof MktoForms2!=="undefined")activateTwoStepSalesInquiry(firstMarketoConfig);},submitMarketoForm:function submitMarketoForm(form,marketoConfig,values){if(marketoConfig.thankYouComponent){let $form=form.getFormElem();let $marketoWrapper=$form.closest(".form-content-wrapper");if($marketoWrapper.length)$marketoWrapper.html(marketoConfig.thankYouComponent);else{$marketoWrapper=$form.closest(marketoConfig.entityWrapper);$marketoWrapper.replaceWith(marketoConfig.thankYouComponent);}}},showAllThankyouMessages:function showAllThankyouMessages(){var allMktoForms=MktoForms2.allForms();var that=this;var settings=drupalSettings.marketoForms;for(var item in allMktoForms){var form=allMktoForms[item];var formString="marketo-form-"+form.getId();var config=settings[formString];that.submitMarketoForm(form,config);}}};window.getUrlParameter=function(name){name=name.replace(/[\[]/,'\\[').replace(/[\]]/,'\\]');const regex=new RegExp('[\\?&]'+name+'=([^&#]*)');const results=regex.exec(location.search);return results===null?'':decodeURIComponent(results[1].replace(/\+/g,' '));};})(jQuery,Drupal);; 4(function(){document.addEventListener("DOMContentLoaded",function(){const plans=document.querySelectorAll('.pricing__plansOverview__plan');plans.forEach((plan,index)=>{setTimeout(()=>{plan.classList.add('pricing__plansOverview__plan--visible');},index*100);});});document.addEventListener("DOMContentLoaded",function(){const pricingPlanCardsExpandButtons=document.querySelectorAll('.pricing__plansOverview__plan__expandBtn');pricingPlanCardsExpandButtons.forEach((button)=>{button.addEventListener('click',function(){const isExpanded=this.getAttribute('aria-expanded')==='true';this.setAttribute('aria-expanded',!isExpanded);pricingPlanCardsExpandButtons.forEach((button)=>{if(button!==this)button.setAttribute('aria-expanded',false);});});});});const keyFeaturesComparisonTableExpandButton=document.getElementById('pricing__keyFeatures__tableExpandBtn');const keyFeaturesComparisonTableWrapper=document.getElementById('pricing__keyFeatures__tableWrapper');if(keyFeaturesComparisonTableExpandButton&&keyFeaturesComparisonTableWrapper){const handleKeyFeaturesComparisonTableExpandButtonClick=function(){const isExpanded=this.getAttribute('aria-expanded')==='true';if(isExpanded){const tableSection=document.querySelector('.pricing__keyFeatures');const headerMain=document.getElementById('header-main');const headerHeight=headerMain?headerMain.offsetHeight:0;const buttonTop=tableSection.getBoundingClientRect().top+window.scrollY-headerHeight;if(window.scrollY>buttonTop)window.scrollTo({top:buttonTop});}this.setAttribute('aria-expanded',!isExpanded);keyFeaturesComparisonTableWrapper.classList.toggle('pricing__keyFeatures__tableWrapper--closed');};keyFeaturesComparisonTableExpandButton.addEventListener('click',handleKeyFeaturesComparisonTableExpandButtonClick);}function initKeyFeaturesTableHover(){const keyFeaturesComparisonTable=document.getElementById('pricing__keyFeatures__table');if(!keyFeaturesComparisonTable)return;const tableCells=keyFeaturesComparisonTable.querySelectorAll('td');function setColumnActiveState(cell,isActive){const columnIndex=cell.cellIndex;const cellsInColumn=keyFeaturesComparisonTable.querySelectorAll(`td:nth-child(${columnIndex+1})`);
4cellsInColumn.forEach(function(columnCell){columnCell.classList.toggle('active',isActive);});}tableCells.forEach(function(cell){cell.addEventListener('mouseenter',function(){setColumnActiveState(this,true);});cell.addEventListener('mouseleave',function(){setColumnActiveState(this,false);});});}if(document.readyState==='loading')document.addEventListener('DOMContentLoaded',initKeyFeaturesTableHover);else initKeyFeaturesTableHover();})();; 5!function(){const e=document.querySelectorAll(".draggable");let t,n,o=!1;function i(e){o=!0,this.classList.add("active"),t=e.pageX-this.offsetLeft,n=this.scrollLeft}function r(){o=!1,this.classList.remove("active")}function a(){o=!1,this.classList.remove("active")}function s(e){if(!o)return;e.preventDefault();const i=e.pageX-this.offsetLeft-t;this.scrollLeft=n-i}function l(e){e.scrollWidth<=e.clientWidth?(e.classList.remove("draggable"),e.removeEventListener("mousedown",i),e.removeEventListener("mouseleave",r),e.removeEventListener("mouseup",a),e.removeEventListener("mousemove",s)):(e.classList.add("draggable"),e.addEventListener("mousedown",i),e.addEventListener("mouseleave",r),e.addEventListener("mouseup",a),e.addEventListener("mousemove",s))}e.forEach(e=>l(e)),window.addEventListener("resize",function(e){let t;return function(){const n=this,o=arguments;clearTimeout(t),t=setTimeout(()=>e.apply(n,o),250)}}(()=>{e.forEach(e=>l(e))}));const c=new IntersectionObserver(e=>{e.forEach(e=>{e.isIntersecting&&l(e.target)})});e.forEach(e=>c.observe(e))}(),function(){const e=document.querySelectorAll(".carousel");e.length&&e.forEach(e=>{function t(e){const t=e.target,n=document.getElementById(t.getAttribute("aria-controls")),o=t.parentNode.querySelectorAll(".carousel__tab"),i=document.querySelectorAll(".carousel__panel");o.forEach(e=>{e.setAttribute("aria-selected","false"),e.setAttribute("tabindex","-1")}),i.forEach(e=>{e.hidden=!0,e.setAttribute("aria-hidden","true")}),t.setAttribute("aria-selected","true"),t.setAttribute("tabindex","0"),n.hidden=!1,n.setAttribute("aria-hidden","false"),n.focus()}function n(e){const n=e.keyCode;if(37===n||39===n){const o=e.target,i=39===n?o.nextElementSibling:o.previousElementSibling;i&&"tab"===i.role&&(i.focus(),t({target:i}))}}if(e.querySelectorAll(".carousel__tab").forEach(e=>{e.addEventListener("click",t),e.addEventListener("keydown",n)}),e.querySelector(".carousel__arrows")){const t=e.querySelector(".carousel__item").offsetWidth+24;e.querySelector(".carousel__arrows__left").addEventListener("click",()=>{const n=e.querySelector('.carousel__panel[aria-hidden="false"]');n.scroll({left:n.scrollLeft-t,behavior:"smooth"})}),e.querySelector(".carousel__arrows__right").addEventListener("click",()=>{const n=e.querySelector('.carousel__panel[aria-hidden="false"]');n.scroll({left:n.scrollLeft+t,behavior:"smooth"})})}})}(),function(){let e=document.querySelector(".js-faqList--collapse");if(!e)return;const t=e.querySelectorAll(".faqList__item"),n="faqList__item--isRevealed";for(let e=0;e<t.length;e++)t[e].addEventListener("click",function(e){if(this.classList.contains(n)){if("A"===e.target.tagName)return;this.classList.remove(n)}else this.classList.add(n)})}(),document.querySelectorAll(".form__outerContainer:has(.marketo-form:not(.mktoHasWidth))").forEach(e=>{const t=new MutationObserver(n=>{n.forEach(n=>{n.target.querySelector(".mktoHasWidth")&&(e.style.animation="none",e.style.opacity="1",e.style.pointerEvents="auto",t.disconnect())})});t.observe(e,{childList:!0,subtree:!0}),setTimeout(()=>{e.querySelector(".mktoHasWidth")||(e.style.animation="none",e.style.opacity="1",e.style.pointerEvents="auto",t.disconnect())},3e3)}),function(){const e=document.querySelectorAll(".logoBar");if(!e.length)return;const t="function"==typeof window.matchMedia&&window.matchMedia("(prefers-reduced-motion: reduce)").matches;e.forEach(e=>{const n=e.querySelector(".logoBar__scroll");if(!n)return;if(t)return;Array.prototype.forEach.call(Array.prototype.slice.call(n.children),e=>{const t=e.cloneNode(!0);t.setAttribute("aria-hidden","true"),Array.prototype.forEach.call(t.querySelectorAll("a, button, [tabindex]"),e=>{e.setAttribute("tabindex","-1")}),t.matches("a, button, [tabindex]")&&t.setAttribute("tabindex","-1"),n.appendChild(t)});let o=0;function i(){const e=getComputedStyle(n),t=parseInt(e.gap)||0,i=n.scrollWidth;o=0===i?0:i/2+t/2,f()}let r=0;const a=50;let s=null,l=!1,c=!0,d=null;function u(e){null===d&&(d=e);const t=(e-d)/1e3;d=e,r+=a*t,n.scrollLeft=r,r>=o&&(r=0,n.scrollLeft=0),s=requestAnimationFrame(u)}function f(){!l&&!c&&o>
50?null===s&&(d=null,s=requestAnimationFrame(u)):null!==s&&(cancelAnimationFrame(s),s=null)}i(),"function"==typeof ResizeObserver?new ResizeObserver(i).observe(n):window.addEventListener("resize",i),"function"==typeof IntersectionObserver?new IntersectionObserver(e=>{c=!e[0].isIntersecting,c?f():i()}).observe(e):(c=!1,f());const v=()=>{l=!0,f()},p=()=>{l=!1,f()};"function"==typeof window.PointerEvent?(n.addEventListener("pointerenter",v),n.addEventListener("pointerleave",p),n.addEventListener("pointercancel",p)):(n.addEventListener("mouseenter",v),n.addEventListener("mouseleave",p)),window.addEventListener("beforeunload",()=>{cancelAnimationFrame(s)})})}(),function(){const e=document.querySelectorAll(".sectionInteractive");if(e.length){const t=(e,t)=>{(window.innerWidth||document.documentElement.clientWidth||document.body.clientWidth)<=767&&"function"==typeof scrollToSmooth&&scrollToSmooth(t),e.forEach(e=>{e.classList.remove("active")}),t.classList.add("active")},n=function(e,t){let n=e.querySelectorAll(".interactiveCard__media img")[0];if(n){let e=n.height;e>1&&t.style.setProperty("min-height",e+"px")}};e.forEach(e=>{const o=e.querySelectorAll(".sectionInteractive__shadowDiv")[0],i=e.querySelectorAll(".interactiveCard");i.forEach(e=>{const r=e.querySelectorAll(".interactiveCard__headingWrapper")[0],a=e.querySelectorAll(".interactiveCard__media")[0];r.addEventListener("click",()=>{t(i,e),n(e,o)}),new ResizeObserver(function(){n(e,o)}).observe(a)})})}}(),function(){const e=document.querySelectorAll(".sectionInteractiveTwo");e.length&&e.forEach(e=>{let t=!1,n=!1;const o=e.querySelector(".jsSectionInteractiveTwoUnderline"),i=e.querySelectorAll(".interactiveCard"),r=e.querySelector(".sectionInteractiveTwo__nav"),a=r.querySelectorAll(".sectionInteractiveTwo__nav__link"),s=e.querySelector(".active");function l(){if(window.innerWidth<1024)return void i.forEach(e=>{e.style.height="auto"});let e=0;i.forEach(t=>{t.style.height="auto",t.offsetHeight>e&&(e=t.offsetHeight)}),i.forEach(t=>{t.style.height=`${e}px`})}new IntersectionObserver(e=>{e.forEach(e=>{t=!e.isIntersecting})}).observe(r),window.addEventListener("load",function(){if(o.style.left=`${s.offsetLeft}px`,o.style.width=`${s.offsetWidth}px`,""!==this.location.hash){const e=document.querySelector(`#tab-${this.location.hash.slice(1)}`);e&&(e.scrollIntoView({behavior:"smooth",block:"center"}),e.click())}}),window.addEventListener("load",function(){l()});var c=!1;r.scrollWidth>r.offsetWidth&&(c=!0,r.style.cursor="grab");var d,u,f=!1;r.addEventListener("mousedown",function(e){c&&(f=!0,r.style.cursor="grabbing",d=e.pageX-r.offsetLeft,u=r.scrollLeft)}),r.addEventListener("mouseleave",function(){c&&(f=!1,r.style.cursor="grab")}),r.addEventListener("mouseup",function(){a.forEach(e=>{e.style.pointerEvents="auto"}),c&&(r.style.cursor="grab",f=!1)}),r.addEventListener("mousemove",function(e){if(c&&f){e.preventDefault(),a.forEach(e=>{e.style.pointerEvents="none"});var t=1.5*(e.pageX-r.offsetLeft-d);r.scrollLeft=u-t}}),window.addEventListener("resize",function(){r.scrollWidth>r.offsetWidth?c=!0:(c=!1,r.style.cursor="default"),l();const t=e.querySelector(".active");o.style.left=`${t.offsetLeft}px`,o.style.width=`${t.offsetWidth}px`});const v=t=>{a.forEach(e=>{e.classList.remove("active"),e.setAttribute("aria-selected","false")}),t.classList.add("active"),t.setAttribute("aria-selected","true");const n=r.getBoundingClientRect().left,s=r.getBoundingClientRect().right,l=t.getBoundingClientRect().left,c=t.getBoundingClientRect().right;l<n+20?r.scrollBy({left:l-n-20,behavior:"smooth"}):c>s-20&&r.scrollBy({left:c-s+20,behavior:"smooth"}),o.style.left=`${t.offsetLeft}px`,o.style.width=`${t.offsetWidth}px`,i.forEach(e=>{e.classList.remove("active")}),e.querySelector("#"+t.getAttribute("aria-controls")).classList.add("active")};a.forEach(e=>{e.addEventListener("click",function(){v(e)})});let p=0,h=null;function m(){if(!t&&!n){p++,p>=a.length&&(p=0);const e=a[p];v(e)}}setTimeout(function(){clearInterval(h),h=setInterval(m,3e3)},2e3),e.addEventListener("click",function(){n=!0})})}
5(),function(){const e=document.querySelectorAll("[data-video-testimonials-carousel]");if(!e.length)return;const t="videoTestimonialsCarousel__track--overflow",n="function"==typeof window.matchMedia,o=n?window.matchMedia("(min-width: 1024px)"):null,i=n?window.matchMedia("(prefers-reduced-motion: reduce)"):null;function r(){return!(!i||!i.matches)}function a(){return o?o.matches:window.innerWidth>=1024}let s=null;function l(){}function c(e,t){let n=null;return function(){clearTimeout(n),n=setTimeout(e,t)}}e.forEach(function(e){const n=e.querySelector("[data-video-testimonials-track]"),d=Array.prototype.slice.call(e.querySelectorAll("[data-video-testimonial]")),u=e.querySelector("[data-video-testimonials-prev]"),f=e.querySelector("[data-video-testimonials-next]"),v=e.querySelector("[data-video-testimonials-status]"),p={status:e.getAttribute("data-label-status")||"Video testimonial by @name, @position of @total",statusGeneric:e.getAttribute("data-label-status-generic")||"Video testimonial @position of @total"};if(!n||!d.length)return;const h=d.map((e,t)=>({card:e,index:t,media:e.querySelector("[data-video-testimonial-media]"),playerHost:e.querySelector("[data-video-testimonial-player]"),control:e.querySelector("[data-video-testimonial-control]"),playIcon:e.querySelector(".videoTestimonial__icon--play"),scrub:e.querySelector("[data-video-testimonial-scrub]"),scrubFill:e.querySelector("[data-video-testimonial-scrub-fill]"),previewToggle:e.querySelector("[data-video-testimonial-preview-toggle]"),labels:{play:e.getAttribute("data-label-play")||"Play video testimonial",pause:e.getAttribute("data-label-pause")||"Pause video testimonial",positionText:e.getAttribute("data-label-position-text")||"@current of @total",previewPause:e.getAttribute("data-label-preview-pause")||"Pause preview",previewResume:e.getAttribute("data-label-preview-resume")||"Resume preview"},pauseIcon:e.querySelector(".videoTestimonial__icon--pause"),name:e.getAttribute("data-name")||"",vimeoId:(e.getAttribute("data-video-testimonial-id")||"").trim(),vimeoHash:(e.getAttribute("data-video-testimonial-hash")||"").trim(),player:null,ready:!1,failed:!1,engaged:!1,userPaused:!1,previewPaused:!1,hovered:!1,playing:!1,autoplayBlocked:!1,wantPlaying:null,position:0,duration:0,watchedSeconds:0,watchStartedAt:null,milestones:[]})),m=parseInt(n.getAttribute("data-active-index"),10),g={activeIndex:Math.min(Math.max(isNaN(m)?0:m,0),h.length-1),inView:!1,overflow:!1,playersRequested:!1,animating:!1,settleMuteUntil:0};function y(){return h[g.activeIndex]}const w={autopause:!1,autoplay:!1,byline:!1,controls:!1,dnt:!0,keyboard:!1,loop:!0,muted:!0,pip:!1,playsinline:!0,portrait:!1,texttrack:"en",title:!1};function b(e){const t=e===y(),n=e.engaged&&e.playing&&!e.userPaused;if(e.card.classList.toggle("videoTestimonial--active",t),e.card.classList.toggle("videoTestimonial--hovered",e.hovered),e.card.classList.toggle("videoTestimonial--showControl",function(e){const t=e===y();return!e.failed&&(a()?t&&(!e.engaged||e.userPaused||!e.playing)||e.hovered:t)}(e)),e.card.classList.toggle("videoTestimonial--playing",e.playing),e.card.classList.toggle("videoTestimonial--engaged",e.engaged),e.scrub&&e.scrub.setAttribute("tabindex",e.engaged?"0":"-1"),t?e.card.setAttribute("aria-current","true"):e.card.removeAttribute("aria-current"),e.playIcon&&e.playIcon.toggleAttribute("hidden",n),e.pauseIcon&&e.pauseIcon.toggleAttribute("hidden",!n),e.control&&e.control.setAttribute("aria-label",n?e.labels.pause:e.labels.play),e.previewToggle){const n=t&&!e.engaged&&e.ready&&!e.failed;e.previewToggle.toggleAttribute("hidden",!n),e.previewToggle.textContent=e.previewPaused?e.labels.previewResume:e.labels.previewPause,e.previewToggle.setAttribute("aria-pressed",e.previewPaused?"true":"false")}}function E(){h.forEach(b)}function L(e,t,n){const o=e.card.querySelector(".videoTestimonial__company"),i=Object.assign({vimeoId:e.vimeoId,name:e.name,company:o?o.textContent.trim():"",index:e.index,position:Math.round(e.position||0),duration:Math.round(e.duration||0),percent:e.duration?Math.round(e.position/e.duration*100):0},n||{});e.card.dispatchEvent(new CustomEvent("videotestimonial:"+t,{bubbles:!0,detail:i}))}function A(e){null===e.watchStartedAt&&(e.watchStartedAt=performance.now())}function S(e){return null!==e.watchStartedAt&&(e.watchedSeconds+=(performance.now()-e.watchStartedAt)/1e3,e.wat
5chStartedAt=null),Math.round(e.watchedSeconds)}function q(e){e.previewPaused=!e.previewPaused,P(),b(e)}function _(e){const t=Math.max(0,Math.round(e||0));return Math.floor(t/60)+":"+String(t%60).padStart(2,"0")}function x(e){if(!e.scrub||!e.scrubFill)return;const t=e.duration?Math.min(100,Math.max(0,e.position/e.duration*100)):0;e.scrubFill.style.width=t+"%",e.scrub.setAttribute("aria-valuenow",String(Math.round(t))),e.scrub.setAttribute("aria-valuetext",e.labels.positionText.replace("@current",_(e.position)).replace("@total",_(e.duration)))}function I(e,t){e.player&&e.ready&&e.duration&&(e.position=Math.min(e.duration,Math.max(0,t)),x(e),e.player.setCurrentTime(e.position).catch(l))}function P(){h.forEach(e=>{const t=function(e){return!(e!==y()||!e.ready||e.failed)&&(e.engaged?!e.userPaused:!r()&&!e.previewPaused&&g.inView)}(e);e.player&&e.ready&&t!==e.wantPlaying&&(e.wantPlaying=t,t?e.player.play().then(()=>{e.autoplayBlocked=!1}).catch(()=>{e.engaged||(e.autoplayBlocked=!0,e.wantPlaying=!1,b(e))}):e.player.pause().catch(l))})}function T(e,t){e.engaged||(e.watchedSeconds=0,e.watchStartedAt=null,e.milestones=[],L(e,"play",{trigger:t||"button"})),e.engaged=!0,e.userPaused=!1,e.previewPaused=!1,e.autoplayBlocked=!1,e.player&&e.ready?(a()||e.player.requestFullscreen().catch(l),e.player.setCurrentTime(0).catch(l),e.player.setMuted(!1).catch(l),e.wantPlaying=!0,e.player.play().catch(()=>{e.userPaused=!0,e.wantPlaying=!1,b(e)}),e.playing&&A(e),b(e)):b(e)}function k(e,t){e.engaged&&"complete"!==t&&L(e,"pause",{reason:t||"switch",watchedSeconds:S(e)}),e.engaged=!1,e.userPaused=!1,e.previewPaused=!1,e.watchStartedAt=null,e.player&&e.player.setMuted(!0).catch(l)}function M(){const e=y().card,t=e.offsetLeft+e.offsetWidth/2-n.clientWidth/2;return Math.max(0,Math.min(t,n.scrollWidth-n.clientWidth))}let W=null;function C(e){if(!g.overflow)return;if(null!==W&&(cancelAnimationFrame(W),W=null,g.animating=!1,n.style.scrollSnapType=""),e||r()){const e=M();return void(Math.abs(n.scrollLeft-e)>=1&&(g.settleMuteUntil=performance.now()+300,n.scrollLeft=e))}const t=n.scrollLeft,o=performance.now();g.animating=!0,n.style.scrollSnapType="none";const i=e=>{const r=Math.min(1,(e-o)/450),a=1-Math.pow(1-r,3);n.scrollLeft=t+(M()-t)*a,r<1?W=requestAnimationFrame(i):(W=null,g.animating=!1,g.settleMuteUntil=performance.now()+300,n.style.scrollSnapType="")};W=requestAnimationFrame(i)}function R(){const e=g.overflow&&a();[u,f].forEach(t=>{t&&(t.hidden=!e)}),u&&(u.disabled=0===g.activeIndex),f&&(f.disabled=g.activeIndex===h.length-1)}function V(e,t){const n=t||{},o=h[e];if(!o)return;const i=y();i!==o&&(k(i,"switch"),g.activeIndex=e,L(o,"activate",{trigger:n.trigger||"click"})),n.sound&&T(o,n.trigger||"button"),!1!==n.scroll&&C(),R(),P(),E(),function(){if(!v)return;const e=y(),t=e.name?p.status:p.statusGeneric;v.textContent=t.replace("@name",e.name).replace("@position",String(e.index+1)).replace("@total",String(h.length))}()}function H(){n.classList.remove(t),g.overflow=n.scrollWidth>n.clientWidth+1,n.classList.toggle(t,g.overflow),function(){let e=0;h.forEach(t=>{const n=getComputedStyle(t.card),o=parseFloat(n.getPropertyValue("--video-testimonial-active-width"))||t.card.offsetWidth,i=t.card.querySelector(".videoTestimonial__caption"),r=16*o/9+(i?i.offsetHeight:0);e=Math.max(e,r)}),n.style.setProperty("--video-testimonials-line-height",Math.ceil(e)+"px")}(),R(),E(),P(),g.animating||C(!0)}function O(){g.playersRequested||(g.playersRequested=!0,(window.Vimeo&&window.Vimeo.Player?Promise.resolve(window.Vimeo):(s||(s=new Promise((e,t)=>{const n=document.createElement("script");n.src="https://player.vimeo.com/api/player.js",n.async=!0,n.onload=()=>e(window.Vimeo),n.onerror=()=>{s=null,t(new Error("Vimeo Player SDK failed to load"))},document.head.appendChild(n)})),s)).then(e=>{h.forEach(t=>function(e,t){if(!t.playerHost||!/^\d+$/.test(t.vimeoId))return t.failed=!0,void b(t);t.vimeoHash&&!/^[a-f0-9]+$/i.test(t.vimeoHash)&&(console.warn("[video-testimonials-carousel] Ignoring malformed Vimeo hash for video "+t.vimeoId+"."),t.vimeoHash="");let n="https://player.vimeo.com/video/"+t.vimeoId;t.vimeoHash&&(n+="?h="+encodeURIComponent(t.vimeoHash));const o=new e.Player(t.playerHost,Object.assign({url:n},w));function i(){t.engaged&&(L(t,"complete",{watchedSeconds:S(t)}),k(t,"complete"),t.wantPlaying=null,P(),b(t))}t.player=o,o.ready().then(()=>{const e=t.playerHost.querySelector("iframe");e&&(e.setAttribute("title",t.name?"Video testimonial by "+t.name:"Video testimonial"),e.setAttribute("tabindex","-1")),t.ready=!0,function(e){e.player.getTextTracks().then(t=>{if(!t||!t.length)return;const n=t.find(e=>/^en/i.test(e.language||""))||t[0];e.player.enableTextTrack(n.language,n.kind).catch(l)}).catch(l)}(t),o.getDuration().then(e=>{t.duration=e,x(t)}).catch(l),t.engaged?T(t):P(),b(t)}).catch(e=>{t.failed=!0,console.warn("[video-testimonials-carousel] Vimeo video "+t.vimeoId+" could not be loaded.",e),b(t)}),o.on("play",()=>{t.playing=!0,t.engaged&&A(t),b(t)}),o.on("pause",()=>{t.playing=!1,t.engaged&&S(t),b(t)}),o.on("ended",i),o.on("error",e=>{e&&e.method||(t.failed=!0,console.warn("[video-testimonials-carousel] Vimeo video "+t.vimeoId+" reported an error.",e),b(t))}),o.on("timeupdate",e=>{const n=t.position;if(t.position=e.seconds,t.duration=e.duration,x(t),t.engaged&&t.duration&&n>t.duration-2&&t.position<1)i();else if(t.engaged&&t.duration){const e=t.position/t.duration*100;
5[25,50,75].forEach(n=>{e>=n&&-1===t.milestones.indexOf(n)&&(t.milestones.push(n),L(t,"progress",{milestone:n}))})}}),o.on("fullscreenchange",e=>{e.fullscreen||!t.engaged||a()||(k(t,"fullscreen_exit"),t.wantPlaying=null,P(),b(t))})}(e,t))}).catch(e=>{console.warn("[video-testimonials-carousel]",e.message),h.forEach(e=>{e.failed=!0,b(e)})}))}function B(e,t){e.hovered!==t&&(e.hovered=t,E())}function F(){if(!g.overflow||g.animating||performance.now()<g.settleMuteUntil)return;const e=n.scrollLeft+n.clientWidth/2;let t=g.activeIndex,o=1/0;h.forEach(n=>{const i=Math.abs(n.card.offsetLeft+n.card.offsetWidth/2-e);i<o&&(o=i,t=n.index)}),t!==g.activeIndex&&V(t,{scroll:!1,trigger:"swipe"})}if(h.forEach(e=>{"function"==typeof window.PointerEvent?(e.card.addEventListener("pointerenter",t=>{"touch"!==t.pointerType&&B(e,!0)}),e.card.addEventListener("pointerleave",t=>{"touch"!==t.pointerType&&B(e,!1)}),e.card.addEventListener("pointercancel",()=>B(e,!1))):(e.card.addEventListener("mouseenter",()=>B(e,!0)),e.card.addEventListener("mouseleave",()=>B(e,!1))),e.card.addEventListener("focusin",()=>B(e,!0)),e.card.addEventListener("focusout",t=>{t.relatedTarget&&e.card.contains(t.relatedTarget)||B(e,!1)}),e.control&&e.control.addEventListener("click",t=>{if(t.stopPropagation(),!e.failed){if(e===y())return e.engaged&&e.playing&&!e.userPaused?(e.userPaused=!0,e.wantPlaying=!1,e.player.pause().catch(l),L(e,"pause",{reason:"button",watchedSeconds:S(e)}),void b(e)):e.engaged&&e.userPaused?(e.userPaused=!1,e.wantPlaying=!0,e.player.play().catch(l),void b(e)):void T(e,"button");V(e.index,{sound:!0,trigger:"button"})}}),function(e){if(!e.scrub)return;const t=t=>{const n=e.scrub.getBoundingClientRect();n.width&&I(e,(t.clientX-n.left)/n.width*e.duration)};e.scrub.addEventListener("pointerdown",n=>{e.engaged&&(n.preventDefault(),e.scrub.setPointerCapture(n.pointerId),e.scrub.classList.add("videoTestimonial__scrub--seeking"),t(n))}),e.scrub.addEventListener("pointermove",n=>{e.scrub.classList.contains("videoTestimonial__scrub--seeking")&&t(n)}),["pointerup","pointercancel","lostpointercapture"].forEach(t=>{e.scrub.addEventListener(t,()=>{e.scrub.classList.remove("videoTestimonial__scrub--seeking")})}),e.scrub.addEventListener("click",e=>e.stopPropagation()),e.scrub.addEventListener("keydown",t=>{if(!e.engaged)return;const n={ArrowLeft:e.position-5,ArrowDown:e.position-5,ArrowRight:e.position+5,ArrowUp:e.position+5,Home:0,End:e.duration};t.key in n&&(t.preventDefault(),I(e,n[t.key]))})}(e),e.media&&e.media.addEventListener("click",()=>{e.failed||(e===y()?e.engaged||q(e):V(e.index))}),e.previewToggle&&e.previewToggle.addEventListener("click",t=>{t.stopPropagation(),e!==y()||e.engaged||e.failed||q(e)})}),n.addEventListener("keydown",e=>{"ArrowLeft"!==e.key&&"ArrowRight"!==e.key||e.target instanceof Element&&e.target.closest('[role="slider"]')||(e.preventDefault(),V(g.activeIndex+("ArrowRight"===e.key?1:-1),{trigger:"key"}))}),u&&u.addEventListener("click",()=>V(g.activeIndex-1,{trigger:"arrow"})),f&&f.addEventListener("click",()=>V(g.activeIndex+1,{trigger:"arrow"})),"onscrollend"in window?n.addEventListener("scrollend",F):n.addEventListener("scroll",c(F,150),{passive:!0}),"function"==typeof ResizeObserver?new ResizeObserver(H).observe(e):window.addEventListener("resize",c(H,150)),o&&"function"==typeof o.addEventListener&&o.addEventListener("change",()=>{k(y(),"switch"),H()}),i&&"function"==typeof i.addEventListener&&i.addEventListener("change",()=>{P(),E()}),"function"==typeof IntersectionObserver){const t=new IntersectionObserver(e=>{e.some(e=>e.isIntersecting)&&(O(),t.disconnect())}
5,{rootMargin:"100% 0px"});t.observe(e),new IntersectionObserver(e=>{g.inView=e[0].isIntersecting,P(),E()},{threshold:.25}).observe(n)}else g.inView=!0,O();H()})}(); 6document.Cookie={tryDecodeURI:function(e){var t="";try{t=decodeURIComponent(e)}catch(n){t=e}return t},tryEncodeURI:function(e){var t="";try{t=encodeURIComponent(e)}catch(n){t="",window.newrelic&&newrelic.noticeError(n.message+" "+e)}return t},create:function(e,t,n){var o=new Date,r="";n&&(o.setTime(o.getTime()+24*n*60*60*1e3),r="; expires="+o.toGMTString()),document.cookie=e+"="+t+r+"; path=/"},read:function(e){for(var t=e+"=",n=document.Cookie.tryDecodeURI(document.cookie).split(";"),o=0;o<n.length;o++){for(var r=n[o];" "==r.charAt(0);)r=r.substring(1);if(0==r.indexOf(t))return r.substring(t.length,r.length)}return null},erase:function(e){document.Cookies.create(e,"",-1)}}; 7Drupal.behaviors.dropDowns={attach:function(e,t){var l=document.querySelectorAll("form .js-ctnr-dropdown");if(0!=l.length){$=jQuery;var c="",o=0;s(),$(once("dropdowns",l,e)).each(function(){let t=this,c=t.classList.contains("js-multiselect");t.addEventListener("keydown",u);let o=$(t)[0].dataset.selectelement;if(o){var r=document.getElementById(o);if(c)Array.from(r.selectedOptions).forEach(function(e){let l=e.index,c=t.querySelectorAll(".customSelect__options input")[l];c&&(c.checked=!0)}),i(t,r);else{let e=r.options.selectedIndex,l=r.options[e].text;t.querySelectorAll(".customSelect__options input")[e].checked=!0,t.querySelectorAll(".customSelect__options li")[e].classList.toggle("dp-n");let c=t.querySelector(".customSelect__content__selectedItem");c.innerHTML=l,0==e?$(c).removeClass("active"):$(c).addClass("active")}}t.addEventListener("focus",function(e){e.target.classList.contains("js-open")||function(){for(var e=0;e<l.length;e++)l[e].classList.remove("js-open")}(),e.target.classList.add("js-open")});let a=t.querySelectorAll(".customSelect__options label");$(once("dropdowns",a,e)).each(function(e,l){let o=function(){let o=l.previousElementSibling;if(c){if(o.checked=!o.checked,r){r.options[e].selected=o.checked,i(t,r);let l=r.parentElement.parentElement.querySelector(".views-auto-submit-click");l&&l.click(),n(r)}}else{t.classList.remove("js-open");var a=t.querySelector("ul"),u=l.parentNode;s(t),function(e){let t=e.querySelectorAll("li");for(var l=0;l<t.length;l++)t[l].classList.remove("dp-n")}(a),u.classList.add("dp-n");var d=t.querySelector(".customSelect__content__selectedItem");if(e>0&&d?d.classList.add("active"):d.classList.remove("active"),o.checked=!0,t.querySelector(".customSelect__content__selectedItem").innerHTML=l.textContent,r){r.options[e].selected=!0;let t=r.parentElement.parentElement.querySelector(".views-auto-submit-click");t&&t.click(),n(r)}}};l.addEventListener("click",o),l.addEventListener("keydown",e=>{13===e.keyCode&&o()})})}),window.addEventListener("click",function(e){if(null==e.target.closest(".customSelect")){let e=document.querySelectorAll(".customSelect.js-open");for(var t=0;t<e.length;t++)e[t].classList.remove("js-open")}}),window.addEventListener("touchstart",function(e){if(null==e.target.closest(".customSelect")){let e=document.querySelectorAll(".customSelect.js-open");for(var t=0;t<e.length;t++)e[t].classList.remove("js-open")}})}function n(e){if("createEvent"in document){var t=document.createEvent("HTMLEvents");t.initEvent("change",!1,!0),e.dispatchEvent(t)}else e.fireEvent("onchange")}function s(e=null){let t=e?e.querySelectorAll(".customSelect__options input"):document.querySelectorAll("form .js-ctnr-dropdown .customSelect__options input");for(var l=0;l<t.length;l++)t[l].checked=!1}function r(e){let t=e.querySelectorAll(":focus");for(var l=0;l<t.length;l++)t[l].blur()}function i(e,t){let l=Array.from(t.selectedOptions),c=e.querySelector(".customSelect__content__selectedItem");0===l.length?(c.innerHTML=Drupal.t(function(e){let t="Filter by";const l=document.querySelector(`label[for="${e.id}"]`);if(l){const e=l.textContent.trim().toLowerCase();if(e)return t="Filter by "+e,t}}(t)),c.classList.remove("active")):1===l.length?(c.innerHTML=l[0].text,c.classList.add("active")):(c.innerHTML=Drupal.formatPlural(l.length,"1 option selected","@count options selected"),c.classList.add("active"))}function a(e){e.querySelectorAll("label")[0].focus()}function u(e){var t=e.target,l=t.closest(".customSelect"),n=l.querySelector(":focus");if(l){if(l.classList.contains("js-open")){var s=e.key;if(s&&s.match(/^[0-9a-zA-Z]{1}$/))return c+=s,clearTimeout(o),void(o=setTimeout(function(){!function(e,t){if(e&&t&&t.toLowerCase){t=t.toLowerCase();var l=e.querySelectorAll("li:not(.dp-n)");if(l&&l.length)for(var c=0;c<l.length;c++){var o=l[c].querySelector("label");if(o&&(o=o.innerText.toLowerCase()).startsWith(t)){r(e),a(l[c]);break}}}}(l,c),c=""},500))}switch(e.keyCode){case 9:var i=l.querySelectorAll(".customSelect__options")[0].lastChild.querySelectorAll("label")[0];n&&n===i&&l.classList.remove("js-open");break;case 27:l.classList.remove("js-open"),n&&n.blur();break;case 13:if(l.classList.contains("removeEnterEvents"))break;if(l.classList.contains("js-open")){if(n){n.blur();var u=n.querySelector("label");u&&u.click()}}else{var d=t.closest("form");if(d){var f=d.querySelector("[type='submit']");f&&f.click()}}e.preventDefault()}}}}}; 8!function(){function e(e){var o="",n="",i="",t="",c="";if(e){e.city&&e.city.names&&e.city.names&&e.city.names.en&&(o=document.Cookie.tryEncodeURI(e.city.names.en)),e.country&&(e.country.names&&e.country.names.en&&(n=document.Cookie.tryEncodeURI(e.country.names.en)),e.country.iso_code&&e.country.iso_code.toLowerCase&&(c=e.country.iso_code.toLowerCase())),e.postal&&e.postal.code&&(i=document.Cookie.tryEncodeURI(e.postal.code)),e.subdivisions&&e.subdivisions[0]&&e.subdivisions[0].names&&e.subdivisions[0].names.en&&(t=document.Cookie.tryEncodeURI(e.subdivisions[0].names.en));var a={city:o,countryName:n,isoCode:c,postalCode:i,subdivision:t};document.Cookie.create("STYXKEY_mbGeolocation",JSON.stringify(a),90);let d=new Event("geoDataLoaded",{bubbles:!1,cancelable:!0});document.dispatchEvent(d)}}function o(e){window.geolocationFailed=1,"undefined"!=typeof newrelic&&newrelic.noticeError("MaxMind geoip2 city lookup failed: "+(e&&e.error?e.error:"unknown error"));let o=new Event("geoDataFailed",{bubbles:!1,cancelable:!0});document.dispatchEvent(o)}if(null==document.Cookie.read("STYXKEY_mbGeolocation")){const n=1e4,i=Date.now(),t=setInterval(()=>{if(window.geoip2)clearInterval(t),window.geoip2.city(e,o);else if(Date.now()-i>=n){clearInterval(t),window.geolocationFailed=1,"undefined"!=typeof newrelic&&newrelic.noticeError("MaxMind geoip2 script failed to load within "+n+"ms");let e=new Event("geoDataFailed",{bubbles:!1,cancelable:!0});document.dispatchEvent(e)}},100)}else{let e=new Event("geoDataLoaded",{bubbles:!1,cancelable:!0});document.dispatchEvent(e)}}(); 9Drupal.behaviors.mindbodyMainMenuNavigation={attach(){"use strict";const e=document.querySelectorAll(".region--main-navigation, .region--mobile-menu nav");if(0===e.length)return;const t=["click","keydown"],n="active",i=document.querySelector(".getADemoSticky");var o=function(e,t){if(t&&"mouseover"===t.type){if((window.innerWidth||document.documentElement.clientWidth||document.body.clientWidth)<1024)return}if(e.classList.contains(n))return;const o=e.parentElement.querySelectorAll("."+n+".menu-item-view-mode--mega_menu");o.length>
90&&o.forEach(e=>{l(e)}),e.classList.add(n),e.setAttribute("aria-expanded","true"),e.querySelectorAll(".menu-link")[0].focus(),i&&i.classList.add(n)},l=function(e){e.classList.remove(n),e.setAttribute("aria-expanded","false"),e.querySelectorAll(".menu-link")[0].blur(),i&&i.classList.remove(n)};e.forEach(e=>{const c=e.querySelectorAll(".menu-item--expanded > a"),a=e.querySelectorAll(".menu-item-view-mode--mega_menu.menu-item--expanded"),s=e.querySelectorAll(".menu-item-view-mode--collapsible"),r=e.querySelectorAll(".mobile-menu-back");c.forEach(e=>{t.forEach(t=>{e.addEventListener(t,e=>{e.preventDefault()})})}),a.forEach(e=>{(window.innerWidth||document.documentElement.clientWidth||document.body.clientWidth)>=1024&&(e.addEventListener("mouseover",function(t){o(e,t)},!1),e.addEventListener("mouseleave",function(){l(e)},!1)),t.forEach(t=>{e.addEventListener(t,function(t){t.keyCode&&13!==t.keyCode||(t.target.classList.contains("menu-item-view-mode--mega_menu")||t.target.parentElement.classList.contains("menu-item-view-mode--mega_menu"))&&o(e)})})});let m=e=>{let t=e.querySelector(".menu-dropdown"),i=t.scrollHeight;e.classList.toggle(n),e.setAttribute("aria-expanded",e.classList.contains(n)),e.classList.contains(n)?t.style.height=i+"px":t.style.height="0px"};s.forEach(e=>{e.querySelector(".menu-link").addEventListener("click",function(){e.classList.contains("toggling")||(e.classList.add("toggling"),m(e),setTimeout(()=>{e.classList.remove("toggling")},500))})}),document.addEventListener("click",function(t){let o=e.querySelectorAll("."+n+":not(.menu-item-view-mode--collapsible)");i&&i.contains(t.target)||o.length>0&&o.forEach(e=>{e.contains(t.target)||e.classList.remove(n)})}),document.addEventListener("keyup",function(t){if(27===t.keyCode){let t=e.querySelectorAll("."+n),i=t[t.length-1];i&&(i.classList.contains("menu-item-view-mode--collapsible")?m(i):i.classList.contains("menu-item-view-mode--mega_menu")&&l(i))}}),r.forEach(e=>{e.addEventListener("click",e=>{let t=e.target.closest(".active");t&&l(t)})})})}}; 10Drupal.behaviors.mindbodyMobileMenuTrigger={attach(e){const t="mobile-menu"===e.id?e:e.querySelector("#mobile-menu"),s=e.classList&&e.classList.contains("menu-trigger")?e:e.querySelectorAll(".menu-trigger");if(!t||0==s.length)return;const n=document.querySelector(".getADemoSticky"),o="active";t.classList.contains("js-processed")||s.forEach(e=>{e.addEventListener("click",function(e){e.stopPropagation(),t.classList.toggle(o),document.body.classList.toggle("mobileMenuOpen")}),t.classList.add("js-processed")}
10),document.addEventListener("click",function(e){if(n&&n.contains(e.target))return;t.contains(e.target)||(t.classList.remove(o),n&&n.classList.remove(o),document.body.classList.remove("mobileMenuOpen"))})}}; 11!function(){const e=document.querySelector(".nav--landing__ctaDemo");if(!e)return;let t=document.querySelector('[id^="form-"]');t||(t=document.querySelector("#demo")),t&&(e.classList.remove("dp-n","vi-h"),e.setAttribute("href",`#${t.id}`))}(); 12Drupal.behaviors.scrollTo={attach:function(t,e){if(window.scrollToSmooth=function(t,e){t=t instanceof jQuery?t:$(t);let i=$("#header-main").outerHeight()||$("#header-landing").outerHeight()||0,n=function(){let e=t.offset().top-i;return window.matchMedia("(max-width: 767px)").matches&&t.find(":input:enabled:visible:first").length>0&&(e=t.find(":input:enabled:visible:first").offset().top-i-200),e};if($("html, body").animate({scrollTop:n()},{duration:1e3,step:function(t,e){e.end=n()}}),!e)if(t.find(":input:enabled:visible:first").length>0&&!window.matchMedia("(max-width: 767px)").matches)t.find(":input:enabled:visible:first").focus();else{if(t.focus(),t.is(":focus"))return!1;t.attr("tabindex","-1"),t.focus()}return!1},window.location.hash){var i=window.location.hash;if(!i.startsWith("#modal-video-")){var n=$(i);n.length&&scrollToSmooth(n)}}window.handleScrollTo=function(t){if(location.pathname.replace(/^\//,"")==this.pathname.replace(/^\//,"")&&location.hostname==this.hostname){if($(this).attr("href").startsWith("#modal-video-"))return;var e=$(this.hash),i=$(this).hasClass("js-no-focus"),n=$(this).closest(".js-multi-step-form");(e=e.length?e:$("[name="+this.hash.slice(1)+"]")).length&&!n.length&&scrollToSmooth(e,i)}return window.tealiumEngagementHandler&&tealiumEngagementHandler(t),!1},$(document).on("click",'a[href^="#"]:not([href="#"])',window.handleScrollTo)}}; 13!function(){function e(e,n,r,s){var c=document.querySelector(e);"js-open-products"==r||"js-open-resources"==r?c&&c.addEventListener("click",function(e){o(e,n,r,s)},!1):c&&c.addEventListener("click",function(){!function(e,n,o){"nav"==o&&t(),document.querySelector(e).classList.toggle(n)}(n,r,s)},!1)}function n(e){var n=document.querySelector("header nav").classList,o=document.querySelector(".menu-products"),r=document.querySelector(".menu-resources");0==e.target.classList.contains("btn-menu-products")&&0==e.target.classList.contains("btn-menu-resources")&&(n.contains("js-open-products")||n.contains("js-open-resources"))&&(e.target==o&&e.target==r||t())}function o(e,n,o,r){document.querySelector("header nav").classList.contains(o)||t(),document.querySelector(n).classList.toggle(o)}function t(){document.querySelector("header nav").classList.remove("js-open-resources"),document.querySelector("header nav").classList.remove("js-open-products","js-open-products-mobile","js-open-resources","js-open-resources-mobile")}window.onclick=function(e){null!=document.querySelector("nav .menu-resources-mobile")&&n(e)},window.addEventListener("touchstart",function(e){null!=document.querySelector("nav .menu-resources-mobile")&&n(e)}),null!=document.querySelector("nav .menu-resources-mobile")&&(e("nav .hamburger .box","header nav","js-open-menu-main-mobile","nav"),e("nav .hamburger .box","header nav","js-open-nav-mobile","nav"),e("nav .hamburger .box","body","js-open-nav-mobile"),e("nav .btn-menu-products","header nav","js-open-products"),e("nav .btn-menu-resources","header nav","js-open-resources"),e("nav .btn-menu-products-small","header nav","js-open-products-mobile","nav"),e("nav .btn-menu-resources-small","header nav","js-open-resources-mobile","nav"),document.querySelector("nav .menu-products-mobile .btn-back").addEventListener("click",function(){t()},!1),document.querySelector("nav .menu-resources-mobile .btn-back").addEventListener("click",function(){t()},!1)),e("footer #stn-company .js-toggle","#stn-company","js-is-active"),e("footer #stn-resources .js-toggle","#stn-resources","js-is-active");let r=document.querySelector(".btn-menu-resources");r&&r.addEventListener("keyup",function(e){13===e.keyCode&&(o(0,"header nav","js-open-resources"),setTimeout(function(){document.querySelector(".menu-resources a").focus()},200))}),document.querySelector(".btn-menu-resources")&&document.querySelector(".btn-menu-products").addEventListener("keyup",function(e){13===e.keyCode&&(o(0,"header nav","js-open-products"),setTimeout(function(){document.querySelector(".menu-products a").focus()},200))}),document.onkeydown=function(e){27==(e=e||window.event).keyCode&&t()}}(); 14!function(){if(document.querySelectorAll(".js-collapse .js-collapseItem").length>0){const e=document.querySelectorAll(".js-collapse"),l=document.querySelectorAll(".js-collapseItemParent");for(let t=0;t<l.length;t++){const s=l[t],c=e[t];s.style.height=0,c.classList.add("js-collapsed"),c.addEventListener("click",function(){const e=this.querySelector(".js-collapseItemParent"),l=this.querySelector(".js-collapseItem").
14clientHeight;"0px"==e.style.height?(e.style.height=l+"px",this.classList.remove("js-collapsed")):(e.style.height=0,this.classList.add("js-collapsed"))})}}}(); 15new MutationObserver(function(e,t){if("undefined"!=typeof truste)return function(){if("object"!=typeof truste.eu)return;"#cookie-preferences"===window.location.hash&&(truste.eu.clickListener(),history.replaceState({},document.title,window.location.pathname+window.location.search));const e=document.querySelectorAll('a[href*="#cookie-preferences"]');0!=e.length&&e.forEach(e=>{e.addEventListener("click",function(t){e.hostname===window.location.hostname&&(t.preventDefault(),truste.eu.clickListener())})})}(),void t.disconnect()}).observe(document,{childList:!0,subtree:!0}); 16!function(){$=jQuery;let n=[location.hostname],o=["clients.mindbodyonline.com","developers.mindbodyonline.com","consulting.mindbodyonline.com","integrations.mindbodyonline.com","mindbody.one","support.mindbodyonline.com","www.mindbodyonline.com/explore"];$("a").filter(function(){if(this.href){for(const n of o)if(-1!==this.href.toLowerCase().indexOf(n))return!0;for(const o of n)if(-1!==this.href.toLowerCase().indexOf(o))return!1;return!0}}).attr({target:"_blank",rel:function(){let n=$(this).attr("rel");return void 0!==n&&!1!==n?n+" noopener":"noopener"}}).addClass("link--external")}(); 17window.initModalForms=function(){const e=Array.from(document.querySelectorAll('[id^="form-"], #demo'));if(!e.length)return;const t=document.querySelector("body");e.forEach(e=>{const o=e.id;if(!o)return;const n=e.querySelector(".form__container");if(!n)return;const c=document.createElement("button");
17c.id=`modal-form-close-${o}`,c.classList.add("modal__form__close"),c.setAttribute("aria-label",Drupal.t("Close form")),c.innerHTML='<span class="">Close</span>';const r={activeLaunchLink:null,isOpen:!1},s={openForm:e=>{if(r.isOpen)return!1;r.activeLaunchLink=e,r.isOpen=!0,window.addEventListener("click",s.clickOutside),document.addEventListener("keydown",s.escapeKey),n.addEventListener("focusout",s.focusOut),t.classList.add("modal__form--active"),n.prepend(c),c.focus()},closeForm:()=>{r.isOpen&&(t.classList.remove("modal__form--active"),n.classList.remove("fade-in"),c.remove(),r.activeLaunchLink&&r.activeLaunchLink.focus(),window.removeEventListener("click",s.clickOutside),document.removeEventListener("keydown",s.escapeKey),n.removeEventListener("focusout",s.focusOut),r.activeLaunchLink=null,r.isOpen=!1)},clickOutside:e=>{n.contains(e.target)||e.target.closest(`a[href="#${o}"]`)||s.closeForm()},escapeKey:e=>{"Escape"===e.key&&s.closeForm()},focusOut:e=>{n.contains(e.relatedTarget)||(e.preventDefault(),c.focus())}};c.addEventListener("click",s.closeForm),window[`modalFormHandlers_${o}`]=s}),document.addEventListener("click",function(e){const t=e.target.closest('a[href^="#"]');if(!t)return;const o=t.getAttribute("href");if(o&&(o.includes("#form-")||"#demo"===o)){const n=o.replace("#",""),c=window[`modalFormHandlers_${n}`];if(c)return e.preventDefault(),e.stopImmediatePropagation(),c.openForm(t),!1}},!0)}; 18window.initModalVideos=function(){const e=Array.from(document.querySelectorAll("a")).filter(e=>e.href&&e.href.includes("#modal-video-vimeo-"));if(!e.length)return;const o=document.querySelector("body"),t=new Map;function n(){e.forEach(e=>{const n=e.href.split("#modal-video-vimeo-")[1].split("-"),i=n[0],a=n[1],d="wc"===n[2],c=document.createElement("span");c.classList.add("btn--icon"),c.classList.add("btn--iconPlay"),e.appendChild(c);const l=function(e){const o=document.createElement("div");o.classList.add("modal__video__wrapper");const t=document.createElement("div");t.id=`modal-video-vimeo-${e}`,t.classList.add("modal__video"),t.setAttribute("tabindex","0"),t.setAttribute("aria-label",Drupal.t("Video player")),t.setAttribute("aria-modal","true"),t.setAttribute("role","dialog");const n=document.createElement("button");return n.classList.add("modal__video__close"),n.setAttribute("aria-label",Drupal.t("Close video")),n.innerHTML='<span class="">Close</span>',o.appendChild(t),t.appendChild(n),document.body.appendChild(o),{videoWrapper:o,video:t,closeBtn:n}}(i),s=new Vimeo.Player(l.video,{url:`https://player.vimeo.com/video/${i}?h=${a}`,responsive:!0,controls:!0,playsinline:!1,autoplay:!1,background:!1,title:!1,byline:!1,portrait:!1});d&&s.enableTextTrack("en-x-autogen").then(function(e){}).catch(function(e){if("InvalidTrackLanguageError"===e.name)console.error("No captions available for the requested language");else console.error("Could not enable captions")}),t.set(i,s),function(e,n,i){const{videoWrapper:a,closeBtn:d}=n,c=t.get(e),l={openVideo:e=>{window.addEventListener("click",l.clickOutside),document.addEventListener("keydown",l.escapeKey);const t=document.createElement("img");t.src="/themes/mindbody/dist/patterns/images/icons/global/icon-spinner-grey.svg",t.alt=Drupal.t("Loading..."),t.classList.add("modal__video__spinner"),o.appendChild(t),window.innerWidth>=1024&&(a.classList.add("modal__video--active"),o.classList.add("modal__video--active"),d.focus()),c.play().then(()=>{console.log("Video playing")}).catch(e=>{console.error("Video play error:",e)}),t.remove()},closeVideo:()=>{a.classList.remove("modal__video--active"),o.classList.remove("modal__video--active"),i.focus(),window.removeEventListener("click",l.clickOutside),document.removeEventListener("keydown",l.escapeKey),c.pause().then(()=>{console.log("Video paused")}),document.fullscreenElement&&document.exitFullscreen()},clickOutside:e=>{a.contains(e.target)||i.contains(e.target)||d.click()},escapeKey:e=>{"Escape"===e.key&&d.click()}};i.addEventListener("click",l.openVideo),d.addEventListener("click",l.closeVideo),c.on("fullscreenchange",e=>{e.fullscreen||d.click()})}(i,l,e)})}if(window.Vimeo)n();else{const e=document.createElement("script");e.src="https://player.vimeo.com/api/player.js",e.onload=n,document.body.appendChild(e)}},window.initModalVideos(); 19(function(){function recordTealiumClickEvents(){function reportErrorToNewRelic(e){"undefined"!=typeof newrelic?newrelic.noticeError(e):console.log("newrelic not found")}function sendToTealium(e){try{utag.link(e)}catch(e){reportErrorToNewRelic(e)}}var reportedBadDetails={};
19function parseTealiumDetails(detailsString,element,fallback){try{return eval("("+detailsString+")")}catch(e){if(!reportedBadDetails[detailsString]){reportedBadDetails[detailsString]=!0;var selector=element&&element.className?"."+String(element.className).split(" ")[0]:"unknown element";reportErrorToNewRelic(new Error("Unparseable data-tealium-details on "+selector+"; falling back to default click tracking. Editorial punctuation in the attribute is the usual cause."))}return fallback}}function decodeEventDetail(e){return e&&"string"==typeof e?e.replace(/(%[0-9A-Fa-f]{2})/g,function(e){return decodeURIComponent(e)}):e}function getCarouselScrollEventDetail(e){if(!e||!e.querySelector(".carousel__item"))return"";var t=e.scrollWidth-e.clientWidth;return t<=0?"100%":Math.min(100,Math.round(e.scrollLeft/t*100))+"%"}function attachCarouselPanelScrollTracking(e){if(e&&"1"!==e.getAttribute("data-tealium-carousel-scroll-bound")){var t;e.setAttribute("data-tealium-carousel-scroll-bound","1");var a=null;e.addEventListener("scroll",function(){window.clearTimeout(t),t=window.setTimeout(function(){var t=e.scrollLeft;if(null===a||t!==a){var n=getCarouselScrollEventDetail(e);n&&(a=t,sendToTealium({tealium_event:"carousel_scroll",event_category:"engagement",event_action:"scroll",event_detail:n}))}},150)},{passive:!0})}}function getNameByAttribute(e){var t="";if(e)for(var a=e.attributes,n=0;n<a.length;n++){var l=a[n];l.name.match("data-tealium-")&&(t=l.name.replace("data-tealium-",""))}return t}function getCategoryByName(e){var t="",a={navigation:["breadcrumb_link_click","footer_link_click","learning_hub_search_click","staff_login","nav_menu_link_click","top_nav_menu_link_click"],download:["ungated_content_download"],engagement:["nav__toplayer_search","education_hub_search","search_nav","search_nav_auto","search_preset_selected","spara_hash_link_chat","search_spara_unavailable","carousel_scroll","carousel_tab_click"]};for(var n in a){if(-1!==a[n].indexOf(e)){t=n;break}}return t}function getClickDetailInfo(e){if(e){var t=e.innerText;return t||(t=e.href),t&&(t=t.trim()),t}}function getClickElement(e){var t=0,a=0;return(isATag(e)||"BUTTON"===e.nodeName||"string"==typeof e.className&&e.className.indexOf("btn")>-1||"string"==typeof e.className&&e.className.indexOf("customSelect")>-1||"string"==typeof e.className&&e.className.indexOf("menu-link")>-1)&&(t=e,(a=e.closest("a"))&&(t=a)),!t&&e&&((t=e.closest("a"))||(t=e.closest("button")),t||(t=e.closest(".btn")),t||((t=e.closest(".customSelect"))&&t.closest(".js-open")&&(t=""),t||(t=e.closest(".btn")))),t}function isCtnrDropdown(e){return e&&e.className.indexOf("customSelect")>-1}function isATag(e){return e&&"A"===e.nodeName}window.tealiumEngagementHandler=function(e){var t={tealium_event:"unnamed_click",event_category:"uncategorized",event_action:"",event_detail:""},a=e.target,n=0,l="";if("click"==e.type&&a.classList.contains("inbenta-search-button")){let e=a.form.elements[0].value;if(!e)return;l=e,t.event_action="search",window.location.pathname.includes("/results")&&(t.event_category="engagement",t.tealium_event="results_search"),n=a}else if("click"==e.type&&a.parentElement&&!a.parentElement.classList.contains("mktoButtonWrap")){var r=a.closest&&a.closest(".carousel__tab");if(r){t={tealium_event:"carousel_tab_click",event_category:"engagement",event_action:"click",event_detail:getClickDetailInfo(r)||""};var i=r.getAttribute("data-tealium-details");return i&&(t=parseTealiumDetails(i,r,t)),t.event_detail&&(t.event_detail=decodeEventDetail(t.event_detail)),void sendToTealium(t)}l=isCtnrDropdown(n=getClickElement(a))?getClickDetailInfo(a):getClickDetailInfo(n),t.event_action="click"}else{if("focusin"!==e.type||"submit"===a.type)return;n=e.target,t.tealium_event="form_field_focus",t.event_category="engagement",t.event_action="click",l=`${document.title.replace(" | Mindbody","")}_${e.target.name}`}if(l&&(t.event_detail=l),n){var o=getNameByAttribute(n),c="";if(o&&(c=getCategoryByName(o))&&(t.tealium_event=o,t.event_category=c),(!n||!n.closest(".custom-submission-form")||o||isATag(n))&&!(n&&isCtnrDropdown(n)&&n.closest(".views-exposed-form"))){var s=n.getAttribute("data-teal
19ium-details");if(s&&(t=parseTealiumDetails(s,n,t)),n&&n.closest(".menu-panel-wrapper")&&"submit"!==a.type&&"search"!==a.type){let e=n.closest(".menu-panel-wrapper").dataset.panelControlledByMenuTitle.toLowerCase();e&&(t.tealium_event=`${e}_panel_click`)}if("click"===e.type&&n.classList.contains("inbenta-search-autocompleter__link")){t.event_category="engagement",t.event_action="search";let e=n.closest(".inbentaSearchForm");if(e){let a=e.querySelectorAll(".inbentaSearchForm__submitButton")[0];a&&(t.tealium_event=getNameByAttribute(a))}t.event_detail="AUTOCOMPLETED "+t.event_detail}t.event_detail&&(t.event_detail=decodeEventDetail(t.event_detail)),sendToTealium(t)}}},window.addEventListener("click",tealiumEngagementHandler),window.addEventListener("keyup",tealiumEngagementHandler);var forms=document.querySelectorAll("form");forms.forEach(e=>{e.addEventListener("focusin",tealiumEngagementHandler)}),Drupal.behaviors.tealiumCarouselScrollTracking={attach:function(e){for(var t=(e&&"function"==typeof e.querySelectorAll?e:document).querySelectorAll(".carousel__panel"),a=0;a<t.length;a++)attachCarouselPanelScrollTracking(t[a])}},Drupal.behaviors.tealiumEventTracking={attach:function(e,t){jQuery(".views-auto-submit-click",e).click(function(){if(this.parentNode&&this.parentNode.parentNode){var e=this.parentNode.parentNode;if(e){for(var t="",a=e.querySelectorAll(".customSelect__content__selectedItem"),n="",l=0;l<a.length;l++)(n=a[l].innerHTML)&&0!==n.indexOf("Filter by")&&(t+=n+" & ");var r=e.querySelectorAll("[type='text']");for(l=0;l<r.length;l++)(n=r[l].value)&&(t+=n+" & ");sendToTealium({tealium_event:"learning_hub_filter",event_category:"engagement",event_action:"search",event_detail:t=t?t.substring(0,t.length-3):"blank"})}}})}},Drupal.behaviors.tealiumCarouselScrollTracking.attach(document),Drupal.behaviors.tealiumEventTracking.attach()}var observer=new MutationObserver(function(e,t){if("undefined"!=typeof utag)return recordTealiumClickEvents(),void t.disconnect()});observer.observe(document,{childList:!0,subtree:!0})})(); 20!function(t,e){"use strict";const n="STYXKEY_mbGeolocation",o="redirectionPopupDismissed",i={en:{sourceCountries:["us"]},"en-au":{sourceCountries:["au","nz"]},"en-gb":{sourceCountries:["gb","ie"]},"es-es":{sourceCountries:["es"]},"fr-fr":{sourceCountries:["fr"]},it:{sourceCountries:["it"]}},r=function(){const t=[];for(const e of Object.keys(i))e&&t.push(e);return[...new Set(t)].sort((t,e)=>e.length-t.length)}();t.behaviors.redirectionPopup={attach:function(t,s){e("redirection-
20popup-init","body",t).forEach(function(){let t=!1;function e(){const t=document.getElementById("truste-consent-track");return null!==t&&t.classList.contains("ta-display-block")&&!t.classList.contains("ta-display-hide")}function s(t){if(!e())return void t();let n;const o=function(t,e){let n;return function(){clearTimeout(n),n=setTimeout(t,e)}}(function(){e()||(n&&n.disconnect(),t())},100);n=new MutationObserver(o),n.observe(document.body,{childList:!0,subtree:!0,attributes:!0,attributeFilter:["style","class","id"]})}function c(){e()?s(a):a()}function a(){const e=window.location.pathname;if(e.includes("/company/")||e.includes("/lp/")||"y"===new URLSearchParams(window.location.search).get("landing"))return;const s=document.Cookie.read(n);if(s)try{const e=JSON.parse(s);if(!e?.isoCode)return;const n=e.isoCode.toLowerCase(),c=drupalSettings?.path?.currentLanguage;if(!c)return;const a=function(t){for(const[e,n]of Object.entries(i))if(n?.sourceCountries?.includes(t))return e;return null}(n);if(!a||!i[a])return;if(c===a)return;if(!(drupalSettings.redirectionPopup?.translationsAvailable||{})[a])return;const u=window.location.protocol+"//"+window.location.host,l=function(t){if(!t)return"/";const e=t.startsWith("/")?t:`/${t}`;for(const t of r){const n=t.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"),o=new RegExp(`^/${n}(?=/|$)`,"i");if(o.test(e)){const t=e.replace(o,"")||"/";return t.startsWith("/")?t:`/${t}`}}return t}(window.location.pathname);!function(e,n,i){if(sessionStorage.getItem(o)||t)return;t=!0;const r=(drupalSettings.redirectionPopup?.stringsByLang||{})[i];let s=r.message.replace("@country_name",r[e].country_name);s=s.replace(/\s+(\S+)$/," $1");const c=r.linkText,a=r.linkAriaLabel,u=document.createElement("div");
20u.className="redirection-popup paragraph",u.setAttribute("role","region"),u.setAttribute("aria-live","polite"),u.setAttribute("aria-label","Regional site redirection notice");const l=document.createElement("p");l.innerHTML=s;const d=document.createElement("a");d.href=n,d.setAttribute("class","ctaLink ctaLink--medium"),d.setAttribute("aria-label",a);const p=document.createElement("span");p.setAttribute("class","ctaLink__text"),p.textContent=c;const f='<svg class="ctaLink__icon" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16"><path d="M4.718 4.176l1.4-1.5 5.2 5.3-5.2 5.3-1.4-1.5 3.8-3.8z"></path></svg>';d.appendChild(p),d.insertAdjacentHTML("beforeend",f);const m=document.createElement("button");m.className="redirection-popup__close",m.setAttribute("aria-label","Close redirection popup"),m.setAttribute("title","Close redirection popup"),m.setAttribute("type","button"),m.innerHTML='<span aria-hidden="true">×</span>',m.addEventListener("click",function(){sessionStorage.setItem(o,"true"),u.classList.remove("show"),setTimeout(function(){u.parentNode&&u.parentNode.removeChild(u)},300)}),u.appendChild(l),u.appendChild(d),u.appendChild(m),document.body.appendChild(u),setTimeout(function(){u.classList.add("show")},50)}(n,"en"===a?`${u}${l}`:`${u}/${a}${l}`,a)}catch(t){console.error("Error parsing geolocation cookie:",t)}}setTimeout(function(){document.Cookie.read(n)?c():document.addEventListener("geoDataLoaded",c,{once:!0})},2e3)})}}}(Drupal,once); 21!function(){const e=document.querySelectorAll(".share");if(!e.length)return;const t=document.URL,n=document.querySelector("meta[property='og:description']")?document.querySelector("meta[property='og:description']").content:"",r=document.title,o=document.createElement("span");o.classList.add("share__btnItem__message"),o.innerText="Copied!";const c=function(e){return encodeURIComponent(e).replace(/[!'()*]/g,e=>`%${e.charCodeAt(0).toString(16).toUpperCase()}`)},s=function(e,t){const n=(screen.width-570)/2,r="menubar=no,toolbar=no,status=no,width=570,height=570,top="+(screen.height-570)/2+",left="+n;try{window.open(e,"NewWindow",r)}catch{t.classList.add("error")}};e.forEach(e=>{const i=e.querySelector(".share__btn--native"),a=e.querySelector(".share__btn--twitter"),l=e.querySelector(".share__btn--facebook"),d=e.querySelector(".share__btn--linkedin"),u=e.querySelector(".share__btn--copy");if(i&&i.addEventListener("click",function(){try{navigator.share({url:t,title:r,text:n})}catch{i.style.display="none";document.querySelectorAll(".share__btnItem--desktopOnly").forEach(e=>{e.style.display="flex"})}}),l&&l.addEventListener("click",function(){const e="https://www.facebook.com/sharer/sharer.php?u="+c(t);s(e,l)}),a&&a.addEventListener("click",function(){const e="https://twitter.com/intent/tweet?url="+c(t)+"&text="+c(n);s(e,a)}),d&&d.addEventListener("click",function(){const e="https://www.linkedin.com/sharing/share-offsite/?url="+c(t);s(e,d)}),u){let e;u.addEventListener("click",function(){clearTimeout(e);try{navigator.clipboard.writeText(t).then(()=>{o.remove(),u.after(o),u.classList.add("active"),e=setTimeout(()=>{o.remove(),u.classList.remove("active")},"2000")})}catch{u.classList.add("error")}})}})}(); 22!function(){"use strict";function e(e,n,t){if("undefined"!=typeof utag&&"function"==typeof utag.link)try{utag.link({tealium_event:e,event_category:"engagement",event_action:t||"search",event_detail:n})}catch(e){"undefined"!=typeof newrelic&&newrelic.noticeError(e)}}window.MindbodySpara={openChat:function(n,t){const o=t||"spara",i=function(){return void 0!==window.SparaActions&&"function"==typeof window.SparaActions.openChat&&(window.SparaActions.openChat({userMessage:n}),!0)};return i()?Promise.resolve(!0):new Promise(function(t){const a=Date.now()+2500,r=function(){if(!i())return Date.now()>=a?(e("search_spara_unavailable",n+" | "+o),void t(!1)):void setTimeout(r,100);t(!0)};setTimeout(r,100)})},sendTealium:e}}(); 23!function(t,n){"use strict";const e="#spara-",r="hashLink";function a(t){const n=t.target.closest("a[href]");if(!n)return;const a=function(t){if(!t)return"";const n=t.indexOf("#");if(-1===n)return"";const r=t.slice(n);if(r.length<=7)return"";if(0!==r.toLowerCase().indexOf(e))return"";const a=r.slice(7);if(!a)return"";let c=a;try{c=decodeURIComponent(a)}catch(t){}const i=c.replace(/-/g," ").replace(/\s+/g," ").trim();return i?i.charAt(0).toUpperCase()+i.slice(1):""}(n.getAttribute("href"));a&&(t.preventDefault(),window.MindbodySpara.openChat(a,r).then(function(t){t&&window.MindbodySpara.sendTealium("spara_hash_link_chat",a+" | "+r,"click")}))}t.behaviors.sparaHashLinks={attach:function(t){n("spara-hash-links","body",t).forEach(function(){document.addEventListener("click",a)})}}}(Drupal,once); 24!function(){"use strict";const e="mainNav";let t=0,n=!1,a=[];function r(){return Date.now()<t}function o(e){return e&&e.className?"string"==typeof e.className?e.className:e.className.baseVal||"":""}function i(e){let t=e;for(;t&&t!==document.documentElement;){if(t.classList&&t.classList.contains("sparaSearchForm"))return!1;const e=t.id||"",n=o(t);if(/spara/i.test(e)&&!/sparaSearchForm/i.test(e))return!0;
24if(/\bspara/i.test(n)&&!/\bsparaSearch/i.test(n))return!0;if("IFRAME"===t.tagName){const e=t.getAttribute("src")||"";if(/spara/i.test(e))return!0}t=t.parentElement}return!1}function s(){t=Date.now()+800;const e=a.slice();a=[],e.forEach(function(e){e()})}function c(e){void 0===window.SparaActions&&(a.push(e),function(){if(n)return;if(n=!0,void 0!==window.SparaActions)return;const e=setInterval(function(){void 0!==window.SparaActions&&(clearInterval(e),s())},100);setTimeout(function(){clearInterval(e)},3e4)}())}function u(t){const n=t.querySelector(".sparaSearchForm__trigger"),a=t.querySelector(".sparaSearchForm__input--panel"),o=t.querySelector(".sparaSearchForm__close"),s=t.querySelector(".sparaSearchForm__suggestions"),u=t.parentElement?t.parentElement.querySelector(".sparaSearchForm__overlay"):null,d="undefined"!=typeof drupalSettings&&drupalSettings.sparaSearch||{};let l=null,p=null,f=!1,m="",h=null,v=!1;function S(){return s&&!s.hidden&&s.classList.contains("sparaSearchForm__suggestions--open")}function w(){v||(document.addEventListener("mousedown",A),document.addEventListener("keydown",M),v=!0)}function _(){v&&(document.removeEventListener("mousedown",A),document.removeEventListener("keydown",M),v=!1)}function L(){u&&u.classList.add("sparaSearchForm__overlay--visible")}function y(){t.classList.remove("sparaSearchForm--active"),n.setAttribute("aria-expanded","false"),a.value=""}function b(){if(u&&u.classList.remove("sparaSearchForm__overlay--visible"),!s)return _(),y(),void(h&&(h.focus(),h=null));if(!s.classList.contains("sparaSearchForm__suggestions--open"))return s.hidden=!0,s.setAttribute("aria-hidden","true"),_(),y(),void(h&&(h.focus(),h=null));s.classList.remove("sparaSearchForm__suggestions--open"),s.setAttribute("aria-hidden","true");const e=function(){p=null,s.hidden=!0,_(),y(),h&&(h.focus(),h=null)};let t=!1;const n=function(a){a.target===s&&("clip-path"!==a.propertyName&&"opacity"!==a.propertyName||t||(t=!0,s.removeEventListener("transitionend",n),e()))};s.addEventListener("transitionend",n),p=setTimeout(function(){t||(t=!0,s.removeEventListener("transitionend",n),e())},350)}function g(e){(S()||t.classList.contains("sparaSearchForm--active"))&&(F(),h=e?n:null,b())}function E(){t.classList.contains("sparaSearchForm--active")||(t.classList.add("sparaSearchForm--active"),n.setAttribute("aria-expanded","true"),function(e){if(s){if(p&&(clearTimeout(p),p=null),s.classList.contains("sparaSearchForm__suggestions--open"))return w(),L(),void("function"==typeof e&&e());L(),s.hidden=!1,s.setAttribute("aria-hidden","false"),s.classList.remove("sparaSearchForm__suggestions--open"),w(),requestAnimationFrame(function(){requestAnimationFrame(function(){s.classList.add("sparaSearchForm__suggestions--open"),"function"==typeof e&&e()})})}}(function(){a.focus()}))}function F(){l&&(clearTimeout(l),l=null)}function A(e){S()&&(r()||t.contains(e.target)||i(e.target)||g(!0))}function M(e){"Escape"===e.key&&S()&&(e.preventDefault(),g(!0))}n&&a&&(t.addEventListener("submit",function(t){t.preventDefault(),F();const n=a.value.trim();n&&(f=!0,window.MindbodySpara.openChat(n,e).then(function(t){t&&window.MindbodySpara.sendTealium("search_nav",n+" | "+e)}),g(!1))}),n.addEventListener("click",function(){t.classList.contains("sparaSearchForm--active")?g(!0):E()}),a.addEventListener("blur",function(){setTimeout(function(){t.contains(document.activeElement)||i(document.activeElement)||(r()?(S()||t.classList.contains("sparaSearchForm--active"))&&a.focus({preventScroll:!0}):g(!0))},200)}),a.addEventListener("input",function(){f=!1,function(){F();const t=a.value.trim();t&&(m=t,l=setTimeout(function(){if(a.value.trim()!==m||f)return;f=!0;const t=a.value.trim();window.MindbodySpara.openChat(t,e).then(function(n){n&&window.MindbodySpara.sendTealium("search_nav_auto",t+" | "+e)}),g(!1)},5e3))}()}),o&&(o.addEventListener("mousedown",function(e){e.preventDefault()}),o.addEventListener("click",function(){g(!0)})),s&&(s.querySelectorAll("[data-spara-action]").forEach(function(t){t.addEventListener("mousedown",function(e){e.preventDefault()}),t.addEventListener("click",function(){F(),f=!0;const n=t.dataset.sparaAction,a=t.textContent.trim();if(g(!1),"chat"===n){const t=d.chatNowMessage||"Chat now";window.MindbodySpara.openChat(t,e).then(function(t){t&&window.MindbodySpara.sendTealium("search_preset_selected",a+" | "+e)})}else if("support"===n){const t=d.customerSupportMessage||"Customer support";window.MindbodySpara.openChat(t,e).then(function(t){t&&window.MindbodySpara.sendTealium("search_preset_selected",a+" | "+e)})}else if("demo"===n){const t=d.demoUrl;t&&(window.MindbodySpara.sendTealium("search_preset_selected",a+" | "+e),window.location.href=t)}else"explore"===n&&(window.MindbodySpara.sendTealium("search_preset_selected",a+" | "+e),window.open(d.exploreUrl||"https://www.mindbodyonline.com/explore","_blank","noopener,noreferrer"))})}),c(function(){(S()||t.classList.contains("sparaSearchForm--active"))&&a.focus({preventScroll:!0})}
24)))}Drupal.behaviors.sparaSearchBar={attach:function(e){e.querySelectorAll(".sparaSearchForm:not([data-spara-search-initialized])").forEach(function(e){e.setAttribute("data-spara-search-initialized","true"),u(e)})}}}(); 25var n=["p","h1","h2"];n.forEach(function(n){document.querySelectorAll(n).forEach(function(n){var e=n.innerHTML.trim(),r=(e=e.split(" "))[e.length-1];if(e.length>2&&!r.includes(" ")&&r.length<8){r=" "+r,e.pop();var i=e.join(" ");n.innerHTML=i+r}})}); 26!function(){var e={"videotestimonial:activate":{tealium_event:"video_testimonial_activate",event_action:"activate"},"videotestimonial:play":{tealium_event:"video_testimonial_play",event_action:"play"},"videotestimonial:progress":{tealium_event:"video_testimonial_progress",event_action:"progress"},"videotestimonial:pause":{tealium_event:"video_testimonial_pause",event_action:"pause"},"videotestimonial:complete":{tealium_event:"video_testimonial_complete",event_action:"complete"}};function t(e){var t=[e.name,e.company].filter(Boolean).join(", ")||"Video testimonial";return e.vimeoId?t+" ("+e.vimeoId+")":t}function i(e,t){switch(e){case"videotestimonial:activate":return"via "+(t.trigger||"click");case"videotestimonial:play":return"via "+(t.trigger||"button");case"videotestimonial:progress":return t.milestone+"%";case"videotestimonial:pause":return Math.round(t.watchedSeconds||0)+"s watched, "+(t.percent||0)+"% ("+(t.reason||"switch")+")";case"videotestimonial:complete":return Math.round(t.watchedSeconds||0)+"s watched";default:return""}}Object.keys(e).forEach(function(n){document.addEventListener(n,function(a){var o=a.detail||{};!function(e){if("undefined"!=typeof utag&&"function"==typeof utag.link)try{utag.link(e)}catch(e){"undefined"!=typeof newrelic&&newrelic.noticeError(e)}}({tealium_event:e[n].tealium_event,event_category:"engagement",event_action:e[n].event_action,event_detail:t(o)+" | "+i(n,o)})})})}(); 27!function(){"use strict";Drupal.behaviors.lpMindbody={attach:function(a,e){const t={en:"Go to homepage","es-es":"Vaya a la página principal","fr-fr":"Allez à la page d'accueil",it:"Vai alla homepage","de-de":"Gehe zur Startseite"},{pathname:i,origin:l}=window.location,n=i.match(/^\/([a-z]{2}(?:-[a-z]{2})?)\//i),c=n?n[1]:"",o=c?`${l}/${c}/`:`${l}/`,r=t[c]||t.en;["4295","5972"].forEach(e=>{once("brand-lp-init",`.nodeID--${e}
27 .simpleProductLp__overlay`,a).forEach(a=>{const e=document.createElement("a");e.className="close-btn",e.href=o,e.title=r,e.setAttribute("aria-label",r);const t=document.createElement("div");t.className="paragraph",t.appendChild(e),a.appendChild(t),a.closest(".simpleProductLp").classList.add("brand-lp")})})}}}(); 28document.addEventListener("geoDataLoaded",function(){if(null===document.querySelector(".nodeID--4323"))return;const e=document.querySelectorAll(".js-classPassLocalizeCurrency");if(0!==e.length){var o=document.Cookie.read("STYXKEY_mbGeolocation");if(o)var t=JSON.parse(o);"sg"===t.isoCode&&e.forEach(e=>{e.textContent="S$3,300"}),"nl"===t.isoCode&&e.forEach(e=>{e.textContent="⬠2.300"}),"gb"===t.isoCode&&e.forEach(e=>{e.textContent="£1,900"}),"au"===t.isoCode&&e.forEach(e=>{e.textContent="A$4,000"})}}); 29!function(e,o){"use strict";function n(e){document.documentElement.dataset.hpMobileFormMove=e}function t(){return Boolean(window.mbHpHeroExperiment&&window.mbHpHeroExperiment.suppressMobileFormMove)}function r(){const e=document.querySelector(".heroContent__ctaButtons"),o=document.querySelector(".heroContent__heading").outerHTML+document.querySelector(".heroContent__subheading").outerHTML,n=document.getElementById("form-15130"),t=n.querySelector(".form__copy");if(document.querySelector(".layout__region").insertAdjacentElement("beforebegin",n),n.style.minHeight="unset",document.querySelector(".heroOneColumn__background--content").style.display="none",t.innerHTML=o,e){const o=e.cloneNode(!0);o.querySelectorAll("[data-once]").forEach(function(e){e.removeAttribute("data-once")}),t.appendChild(o)}}function i(){if(!document.querySelector("[data-hp-hero-experiment]"))return r(),void n("moved");var e=!1;function o(){e||(e=!0,t()?n("skipped"):(r(),n("moved")))}Boolean(window.mbHpHeroExperiment&&"function"==typeof window.mbHpHeroExperiment.getActiveVariation&&null!==window.mbHpHeroExperiment.getActiveVariation())?o():(document.addEventListener("mb:hpHeroDecided",o),window.setTimeout(o,600))}e.behaviors.home={attach:function(e,r){o("home","body",e).length&&"/"===window.location.pathname&&(t()?n("skipped"):window.innerWidth<1024?i():n("desktop"))}}}(Drupal,once); 30setTimeout(function(){if(document.querySelectorAll(".pageInfographic #js-infographicContainer").length>0){let e=document.querySelector("#js-infographicContainer"),t=document.querySelector("#js-infographicContent");t.style.height=t.clientHeight/2>800?"800px":t.clientHeight/2+"px",e.classList.add("js-info-collapsed"),document.querySelector(".infographic__viewHideButton").addEventListener("click",function(){let t=document.querySelector("#js-infographicContent"),i=document.querySelector("#js-infographicContent img").clientHeight;e.classList.contains("js-info-collapsed")?(t.style.height=i+"px",e.classList.remove("js-info-collapsed")):(t.style.height=i/2>800?"800px":i/2+"px",e.classList.add("js-info-collapsed"),document.querySelector("#js-infographicContainer").scrollIntoView())})}},1600); 31$=jQuery,$(document).ajaxComplete(function(e,t,o){var r=$(".productUpdates__monthGroup__title");if(r.length<2)return;let c={};for(let e of r){let t=e.textContent.trim();c[t]?e.remove():c[t]=e}}),Drupal.behaviors.productUpdates={attach:function(e,t){const o=e.querySelector(".viewsExposedFiltersForm__searchInput");if(o){const e=o.closest("form").querySelector('input[name="combine"]');let t;e&&e.value&&(o.value=e.value),o.addEventListener("input",function(){const e=this.closest("form"),o=e.querySelector('input[name="combine"]');o&&(o.value=this.value),clearTimeout(t),t=setTimeout(function(){const t=e.querySelector(".js-form-submit");t&&t.click()},1500)}),o.addEventListener("keydown",function(e){if("Enter"===e.key){e.preventDefault();const t=this.closest("form").querySelector(".js-form-submit");t&&t.click()}})}e===document&&document.addEventListener("click",function(e){if(e.target.closest(".viewsExposedFiltersForm__toggleFilters")){e.preventDefault();const t=e.target.closest(".viewsExposedFiltersForm__toggleFilters"),o=t.closest("form").querySelector(".viewsExposedFiltersForm__filters");o&&o.classList.toggle("active"),t.classList.toggle("active")}}),e===document&&document.addEventListener("click",function(e){if(e.target.closest(".viewsExposedFiltersForm__clearFilters")){e.preventDefault();const t=e.target.closest(".viewsExposedFiltersForm__clearFilters").closest("form");t.querySelectorAll("input, select, textarea").forEach(function(e){"checkbox"===e.type||"radio"===e.type?e.checked=!1:e.value=""});const o=t.querySelector(".js-form-submit");o&&o.click()}}),e.querySelectorAll(".productUpdate__copyUrlLink").forEach(function(e){e.dataset.copyUrlBound||(e.dataset.copyUrlBound="true",e.addEventListener("click",function(t){t.preventDefault();const o=e.getAttribute("data-url");if(navigator.clipboard&&navigator.clipboard.writeText)navigator.clipboard.writeText(o);else{const e=document.createElement("textarea");e.value=o,e.setAttribute("readonly",""),e.style.position="absolute",e.style.left="-9999px",document.body.appendChild(e),e.select(),document.execCommand("copy"),document.body.removeChild(e)}alert("URL copied to clipboard")}))})}};;
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.