{"version":3,"sources":["mshop-core-desktop.js"],"names":["XmxFeedbackForm","$element","$_element","$_form","$_submitButton","$_commentForm","_didSubmit","onMoodButtonClick","addClass","onFormSubmit","event","stopPropagation","preventDefault","formDataArray","serializeArray","formData","i","length","window","location","href","jQuery","ajax","url","dataType","type","data","complete","removeClass","on","XmxEventQueue","eventQueue","supportsSessionStorage","sessionStorage","ajaxHandle","init","this","loadEventQueue","trackEvent","me","setTimeout","sendEventQueue","setInterval","bind","item","getItem","queue","JSON","parse","Array","isArray","saveEventQueue","setItem","stringify","sentEventIds","eventIndex","push","contentType","cache","xhr","XMLHttpRequest","success","newEventQueue","indexOf","name","eventId","Date","now","toString","Math","random","slice","document","referer","referrer","n","t","floor","u","r","d","XmxCountdown","$countdownElement","_deadline","_intervalHandle","$_countdown","$_days","$_hours","$_minutes","$_seconds","tick","daysRemaining","hoursRemaining","minutesRemaining","currentUnixTimestamp","XmxApp","getCurrentTimestamp","secondsRemaining","clearInterval","html","setHours","getTime","destroy","XmxNewsletterForm","$_emailInput","$_hashInput","$_errorMessage","_isSubmitting","email","validationMessage","val","toLowerCase","trim","validateEmailAddress","generateHashCode","prop","XmxTrustpointSlider","$sliderElement","_currentSlideIndex","_slides","slide","classList","remove","add","querySelectorAll","boot","XmxNewsletterCodeForm","$_container","$_codeInput","origin","code","postData","date","response","result","naeAppConfig","i18n","alreadySubscribed","resubscribed","XmxManyChatWidget","$_button","onButtonClick","accountId","widgetId","payload","$widget","attr","insertAfter","$head","$scriptA","appendTo","$scriptB","XmxInfoPopUp","_name","_isOpen","$_html","$_popup","open","sendHotjarEvent","offset","close","scrollOffsetY","scrollEventObservers","isDesktopDevice","isPhoneDevice","lazyClerkSliders","initializedClerkSliders","isHandlingClerkLazyScroll","initialize","registerSessionStats","onPageLoaded","hookErrorHandler","addEventListener","e","message","line","lineno","column","colno","file","stack","error","getSessionStorageString","setSessionStorageString","pageviews","googleClickId","extractHttpGetParameter","utmSource","isComingFromGoogleAdwords","isComingFromPriceRunner","hookScrolling","hookLazyClerks","each","bootVideo","isDesktop","initializeSwiper","id","updateOnlineStatusBadges","runKlaviyoEmailCatcher","runPartnerAdsCatcher","runAdrecordCookieCatcher","runTradeDoublerCatcher","hj","sessionId","getCookie","Session","lazyClerks","lazyClerkIndex","$lazyClerk","elementId","Object","keys","registerScrollEventObserver","onLazyClerkScroll","supportsClerk","removedClerkSliders","bannerRectangle","getBoundingClientRect","bottom","top","innerHeight","Clerk","renderBlocks","unregisterScrollEventObserver","currentDayOfWeek","getUTCDay","isOffline","onlineHours","start","UTC","getUTCFullYear","getUTCMonth","getUTCDate","end","$placeholder","videoSource","$container","parent","videoClass","videoType","isPhone","$video","hide","$source","video","muted","play","show","affiliateId","clickId","paid","pacid","parameter","setCookie","kx","clerkVisitorId","getLocalStorageString","substr","clerkApiKey","key","visitor","countCharacter","string","character","count","input","checksum","charCodeAt","value","parts","enterEmail","enterAtSymbol","enterOnlyOneAt","split","enterBeforeAt","enterAfterAt","enterValidDomain","test","enterValidEmail","currentTimestamp","callback","emitScrollEvent","scrollY","pageYOffset","documentElement","scrollTop","waiting","hasChangedScrollPosition","self","requestAnimationFrame","formatUnit","amount","unit","integer","parseInt","toFixed","decimals","decimalSeparator","formatAmount","currencySymbol","formatPrice","decimalSeparatorPrice","parameterName","parameterParts","parameters","search","substring","decodeURIComponent","Swiper","containerModifierClass","wrapperClass","slideClass","slideActiveClass","slideVisibleClass","slidePrevClass","slideNextClass","slidesPerView","spaceBetween","simulateTouch","threshold","grabCursor","pagination","el","clickable","bulletClass","bulletActiveClass","navigation","nextEl","prevEl","disabledClass","replaceYImageSource","removeAttr","initializeClerkLastViewedProducts","$carouselContainer","target","$section","initializeClerkSwiper","$swiperWrapper","swiperId","supportsMediaQueries","matchMediaQuery","innerWidth","isBrowserTabFocused","visibilityState","hidden","screen","width","downloadImage","uri","Image","src","matchMedia","supportsHistoryApi","history","replaceState","query","matches","isSupported","supportsIntersectionObserver","supportsLocalStorage","clearSessionStorage","removeItem","setSessionStorageJSON","getSessionStorageJSON","setLocalStorageString","localStorage","setLocalStorageJSON","getLocalStorageJSON","cookieParts","cookie","cookieIndex","cookiePart","charAt","removeCookie","lifetime","cookieDomain","expirationDate","setTime","expires","toUTCString","powerstepAddToCart","element","$button","productId","product","tiny","itm_source","itm_medium","itm_referer","hasError","replaceWith","cartSidebar","$regularMobileHeader","cartQuantity","$stickyMobileHeader","dataLayer","ecommerce","google","XmxSearch","searchQuery","popularSearchQueries","trendingProducts","suggestedSearchQueries","products","categories","didRestore","categoryAjaxHandle","peekStoredSearchQuery","restoreState","popularData","timestamp","queries","trendingData","fetchSuggestedSearchQueries","call","language","clerkLanguage","limit","status","fetchCategories","abort","fetchProducts","attributes","product_data","fetchPopularSearchQueries","fetchTrendingProducts","saveSearchQuery","renderCategories","$list","$category","$categoryText","category","categoryHtml","empty","categoryIndex","highlightQuery","scope","renderQueries","highlight","icon","$query","$queryText","$queryIcon","queryIndex","encodeURIComponent","phrase","regex","RegExp","replace","str","createProductHtml","productData","$parent","itmSource","$badge","$badges","$brand","$desktopSource","$discount","$image","$imageContainer","$imageWrapper","$mobileSource","$name","$newPrice","$oldPrice","$picture","$price","$product","$regularPrice","$shortDescription","$tag","$tags","$text","saving","tagIndex","$basePrice","thumbnail_type","thumbnail_cache_buster","url_key","mshop_primary_badge","mshop_secondary_badge","manufacturer","mshop_subtitle","mshop_type","mshop_card_tags","is_on_sale","price","special_price","round","base_price_string","addClickTracking","renderProducts","addViewAllButton","productIndex","$buttonContainer","$buttonLabel","XmxDesktopHeader","$_desktopHeaderSticky","_lastScrollOffset","_lastVisibleAtScrollOffset","_scrollDistanceToShowAgain","_state","handleScroll","scrollPosition","construct","max","height","XmxDesktopSearch","$_results","$_clearButton","$_queryInput","$_suggestionArea","$_suggestionResults","$_categoryArea","$_categoryResults","$_productArea","$_productResults","$_popularQueryArea","$_popularQueryResults","$_trendingProductArea","$_trendingProductResults","$_desktopHeader","_isSearchOpen","_isChangingState","_query","_lastSubmittedQuery","_selectedSuggestionIndex","onSkrimClick","closeSearch","onClearButtonClick","updateSearchQuery","focus","onQueryInputFocus","retoreState","openSearch","onQueryInputChange","onQueryInputKeyDown","which","keyCode","onQueryInputKeyUp","changeSuggestionSelection","direction","$results","$selectedResult","isOpen","$","pluginName","defaultOptions","Plugin","options","extend","submitButtonElement","popupIsVisible","powerstep","popupBackground","closePopupButton","popup","itemImage","itemName","itemPrice","crossSelling","crossSellingItems","visitorRecommendations","recentlyPurchased","cartButton","prototype","hasClass","closePopup","goToShoppingCart","addItemToCart","formDataIndex","$error","errorMessage","summary","image","finalPrice","exclude","clerkExclude","naeProductConfiguration","productConfig","complementaryProducts","clerkProducts","clerkFilter","fn","naeAddToCart"],"mappings":"AACA,IAAIA,gBAAkB,SAAUC,GAK5B,IAKIC,EACAC,EACAC,EAEAC,EAKUJ,EAdVK,GAAa,EA4BjB,SAASC,IAGLF,EAAcG,SAAS,sCAM3B,SAASC,EAAaC,GAMlB,GAJAA,EAAMC,kBACND,EAAME,iBAGFN,EAEA,OAAO,EAGXA,GAAa,EAEbF,EAAeI,SAAS,uBAKxB,IAHA,IAAIK,EAAgBV,EAAOW,iBACvBC,EAAW,GAENC,EAAI,EAAGA,EAAIH,EAAcI,OAAQD,IAEtCD,EAASF,EAAcG,GAAS,MAAKH,EAAcG,GAAU,MAkBjE,OAfAD,EAAe,KAAIG,OAAOC,SAASC,KAEnCC,OAAOC,KACN,CACGC,IAAK,0BACLC,SAAU,OACVC,KAAM,OACNC,KAAMX,EACNY,SAAU,WAENvB,EAAewB,YAAY,uBAC3B1B,EAAUM,SAAS,8BAIpB,EAOX,OApEcP,EAiETA,GA9DDE,EAASkB,OAAO,YADhBnB,EAAYD,IAEL4B,GAAG,SAAUpB,GACpBL,EAAiBiB,OAAO,yBACRA,OAAO,qBAAsBpB,GAC/B4B,GAAG,QAAStB,GAC1BF,EAAgBgB,OAAO,6BAA8BpB,GA4DlD,IAIP6B,cAEO,CACHC,WAAY,GACZC,uBAAk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UAEnBnD,OAAO,+BAA+BojB","file":"mshop-core-desktop-4.7.1.min.js","sourcesContent":["/* exported XmxFeedbackForm */\r\nvar XmxFeedbackForm = function ($element) \r\n{\r\n /**\r\n * Properties\r\n */\r\n var _didSubmit = false;\r\n\r\n /**\r\n * Elements\r\n */\r\n var $_element;\r\n var $_form;\r\n var $_submitButton;\r\n var $_moodButtons;\r\n var $_commentForm;\r\n\r\n /**\r\n * Constructor\r\n */\r\n function boot($element) \r\n {\r\n $_element = $element;\r\n $_form = jQuery('.xmx-form', $element);\r\n $_form.on('submit', onFormSubmit);\r\n $_submitButton = jQuery('button[type=\"submit\"]');\r\n $_moodButtons = jQuery('input[name=\"mood\"]', $element);\r\n $_moodButtons.on('click', onMoodButtonClick);\r\n $_commentForm = jQuery('.xmx-feedback-comment-form', $element);\r\n }\r\n\r\n /**\r\n * User has clicked a mood button\r\n */\r\n function onMoodButtonClick()\r\n {\r\n // Show the comment form\r\n $_commentForm.addClass('xmx-feedback-comment-form--visible');\r\n }\r\n\r\n /**\r\n * User wants to submit the form\r\n */\r\n function onFormSubmit(event)\r\n {\r\n event.stopPropagation();\r\n event.preventDefault();\r\n\r\n // Prevent double-submission\r\n if (_didSubmit)\r\n {\r\n return false;\r\n }\r\n\r\n _didSubmit = true;\r\n\r\n $_submitButton.addClass('xmx-button--loading');\r\n\r\n var formDataArray = $_form.serializeArray();\r\n var formData = {};\r\n\r\n for (var i = 0; i < formDataArray.length; i++)\r\n {\r\n formData[formDataArray[i]['name']] = formDataArray[i]['value'];\r\n }\r\n\r\n formData['page'] = window.location.href;\r\n\r\n jQuery.ajax\r\n ({\r\n url: '/ajax/help/postFeedback',\r\n dataType: 'json',\r\n type: 'post',\r\n data: formData,\r\n complete: function()\r\n {\r\n $_submitButton.removeClass('xmx-button--loading');\r\n $_element.addClass('xmx-feedback--complete');\r\n }\r\n });\r\n\r\n return false;\r\n }\r\n\r\n // Call constructor\r\n boot($element);\r\n\r\n // Public Interface\r\n return {};\r\n}\r\n\n\r\nvar XmxEventQueue = (function()\r\n{\r\n return {\r\n eventQueue: [],\r\n supportsSessionStorage: typeof sessionStorage !== 'undefined',\r\n ajaxHandle: null,\r\n\r\n /**\r\n * Initializes the event queue\r\n */\r\n init: function()\r\n {\r\n // Load events from former sessions\r\n this.loadEventQueue();\r\n\r\n // Track the page load event\r\n this.trackEvent('pl', {}); \r\n\r\n // Send the first event after a second,\r\n // so that other page load events can be send\r\n // (eg. from category or product etc)\r\n // Then send every 3 seconds\r\n var me = this;\r\n\r\n setTimeout(function()\r\n {\r\n me.sendEventQueue();\r\n\r\n // Then send the event queue every second\r\n setInterval(me.sendEventQueue.bind(me), 3000);\r\n }, 1000);\r\n },\r\n\r\n /**\r\n * Tries to restore the event queue from session storage\r\n */\r\n loadEventQueue: function()\r\n {\r\n if (this.supportsSessionStorage)\r\n {\r\n var item = sessionStorage.getItem('xmx-event-queue');\r\n\r\n if (item)\r\n {\r\n var queue = JSON.parse(item);\r\n\r\n if (Array.isArray(queue))\r\n {\r\n this.eventQueue = queue;\r\n }\r\n }\r\n }\r\n },\r\n\r\n /**\r\n * Saves the event queue member in session storage\r\n */\r\n saveEventQueue: function()\r\n {\r\n if (this.supportsSessionStorage)\r\n {\r\n sessionStorage.setItem('xmx-event-queue', JSON.stringify(this.eventQueue));\r\n }\r\n },\r\n\r\n /**\r\n * Sends events to the server, if there are any\r\n */\r\n sendEventQueue: function()\r\n {\r\n // If we are sending already, do not send in parallel\r\n if (this.ajaxHandle !== null)\r\n {\r\n return;\r\n }\r\n\r\n // If we support session storage, load the events\r\n // from the session again, so that we can work\r\n // with multiple tabs and restore events\r\n // of former pages that were not sent yet.\r\n // Otherwise we will send local events only.\r\n this.loadEventQueue();\r\n \r\n if (this.eventQueue.length > 0)\r\n {\r\n // Fire and forget\r\n var me = this;\r\n\r\n // Build a list of all event IDs that we are sending, so that we can get\r\n // rid of only them\r\n var sentEventIds = [];\r\n\r\n for (var eventIndex in this.eventQueue)\r\n {\r\n // For backwards compatibility\r\n if (typeof this.eventQueue[eventIndex].i !== 'undefined')\r\n {\r\n sentEventIds.push(this.eventQueue[eventIndex].i);\r\n }\r\n }\r\n\r\n jQuery.ajax\r\n ({\r\n url: '/visitor/event/track',\r\n dataType: 'json',\r\n contentType: 'application/json',\r\n type: 'POST',\r\n cache: false,\r\n data: JSON.stringify(this.eventQueue),\r\n xhr: function()\r\n {\r\n me.ajaxHandle = new window.XMLHttpRequest();\r\n\r\n return me.ajaxHandle;\r\n },\r\n success: function()\r\n {\r\n var newEventQueue = [];\r\n\r\n // Load the event queue again, in case stuff in another tab has happened\r\n me.loadEventQueue();\r\n\r\n // Remove the events that we have sent.\r\n // Also remove the events that have no ID, for backwards compatibility on patchday.\r\n for (var eventIndex in me.eventQueue)\r\n {\r\n if (typeof me.eventQueue[eventIndex].i !== 'undefined')\r\n {\r\n if (sentEventIds.indexOf(me.eventQueue[eventIndex].i) == -1)\r\n {\r\n newEventQueue.push(me.eventQueue[eventIndex]);\r\n }\r\n }\r\n }\r\n\r\n me.eventQueue = newEventQueue;\r\n\r\n // Update session storage\r\n me.saveEventQueue();\r\n },\r\n complete: function()\r\n {\r\n // Empty our AJAX handle, since there is nothing\r\n // to cancel anymore\r\n me.ajaxHandle = null;\r\n }\r\n });\r\n }\r\n },\r\n\r\n /**\r\n * Adds a new event to be sent to our server\r\n * \r\n * @param name \r\n * @param data \r\n */\r\n trackEvent: function(name, data)\r\n {\r\n var eventId = Date.now().toString(36) + Math.random().toString(36).slice(2);\r\n var url = typeof document.location.href !== 'undefined' ? document.location.href : null;\r\n var referer = typeof document.referrer !== 'undefined' ? document.referrer : null;\r\n\r\n if (referer == '')\r\n {\r\n referer = null;\r\n }\r\n\r\n var event = {\r\n n: name,\r\n t: Math.floor(Date.now() / 1000),\r\n i: eventId,\r\n u: url,\r\n r: referer,\r\n d: data\r\n }\r\n\r\n this.loadEventQueue();\r\n this.eventQueue.push(event);\r\n this.saveEventQueue();\r\n }\r\n }\r\n})();\r\n\r\nXmxEventQueue.init();\n/* exported XmxCountdown */\r\nvar XmxCountdown = function($countdownElement)\r\n{\r\n\t/**\r\n\t * Properties\r\n\t */\r\n\tvar _deadline; // Unix Timestamp\r\n var _intervalHandle;\r\n\r\n\t/**\r\n\t * Elements\r\n\t */\r\n var $_countdown;\r\n var $_days;\r\n var $_hours;\r\n var $_minutes;\r\n var $_seconds;\r\n\r\n\t/**\r\n\t * Constructor\r\n\t */\r\n\tfunction boot($element)\r\n\t{\r\n // Hook all elements\r\n $_countdown = $element;\r\n $_days = jQuery('.xmx-countdown--days', $_countdown);\r\n $_hours = jQuery('.xmx-countdown--hours', $_countdown);\r\n $_minutes = jQuery('.xmx-countdown--minutes', $_countdown);\r\n $_seconds = jQuery('.xmx-countdown--seconds', $_countdown);\r\n\r\n // Extract the deadline\r\n _deadline = $_countdown.data('deadline');\r\n\r\n // If the deadline is 0, count down until midnight in local timezone\r\n if (_deadline == 0)\r\n {\r\n _deadline = new Date();\r\n _deadline.setHours(23, 59, 59);\r\n _deadline = Math.floor(_deadline.getTime() / 1000); // s\r\n }\r\n\r\n // Figure out whether to start/show the countdown\r\n var totalSecondsRemaining = _deadline - XmxApp.getCurrentTimestamp();\r\n\r\n if (totalSecondsRemaining > 0)\r\n {\r\n start();\r\n }\r\n\t}\r\n\r\n /**\r\n * Starts the countdown\r\n */\r\n function start()\r\n {\r\n // Update it once\r\n tick();\r\n\r\n _intervalHandle = setInterval(tick, 1000);\r\n\r\n $_countdown.addClass('xmx-countdown--started');\r\n }\r\n\r\n /**\r\n * Stops the countdown\r\n */\r\n function stop()\r\n {\r\n clearInterval(_intervalHandle);\r\n\r\n $_countdown.removeClass('xmx-countdown--started');\r\n $_countdown.addClass('xmx-countdown--expired');\r\n }\r\n\r\n /**\r\n * Updates things\r\n */\r\n function tick()\r\n {\r\n var currentUnixTimestamp = XmxApp.getCurrentTimestamp();\r\n var secondsRemaining = _deadline - currentUnixTimestamp;\r\n var daysRemaining;\r\n var hoursRemaining;\r\n var minutesRemaining;\r\n\r\n if (secondsRemaining <= 0)\r\n {\r\n stop();\r\n }\r\n else \r\n {\r\n // Update Days\r\n if (secondsRemaining > 24 * 60 * 60)\r\n {\r\n daysRemaining = Math.floor(secondsRemaining / (24 * 60 * 60));\r\n secondsRemaining -= daysRemaining * (24 * 60 * 60);\r\n\r\n $_countdown.addClass('xmx-countdown--has-days');\r\n }\r\n else \r\n {\r\n daysRemaining = 0;\r\n\r\n $_countdown.removeClass('xmx-countdown--has-days');\r\n }\r\n\r\n // Update Hours\r\n hoursRemaining = Math.floor(secondsRemaining / (60 * 60));\r\n secondsRemaining -= hoursRemaining * (60 * 60);\r\n\r\n // Update Minutes\r\n minutesRemaining = Math.floor(secondsRemaining / 60);\r\n secondsRemaining -= minutesRemaining * 60;\r\n\r\n // Update countdown\r\n $_days.html(daysRemaining < 10 ? '0' + daysRemaining : daysRemaining);\r\n $_hours.html(hoursRemaining < 10 ? '0' + hoursRemaining : hoursRemaining);\r\n $_minutes.html(minutesRemaining < 10 ? '0' + minutesRemaining : minutesRemaining);\r\n $_seconds.html(secondsRemaining < 10 ? '0' + secondsRemaining : secondsRemaining);\r\n }\r\n }\r\n\r\n // Call constructor\r\n boot($countdownElement);\r\n\r\n // Public Interface\r\n return {\r\n destroy: function()\r\n {\r\n clearInterval(_intervalHandle);\r\n }\r\n };\r\n}\n/* exported XmxNewsletterForm */\r\nvar XmxNewsletterForm = function($element) \r\n{\r\n /**\r\n * Properties\r\n */\r\n var _isSubmitting = false;\r\n\r\n /**\r\n * Elements\r\n */\r\n var $_form;\r\n var $_submitButton;\r\n var $_emailInput;\r\n var $_hashInput;\r\n var $_errorMessage;\r\n\r\n /**\r\n * Constructor\r\n */\r\n function boot($form) \r\n {\r\n $_form = $form;\r\n $_form.on('submit', onFormSubmit);\r\n\r\n // Hook UI\r\n $_submitButton = jQuery('button[type=\"submit\"]', $_form);\r\n $_emailInput = jQuery('input[name=\"email\"]', $_form);\r\n $_hashInput = jQuery('input[name=\"date\"]', $_form);\r\n $_errorMessage = jQuery('.xmx-form-field-message', $_form); \r\n\r\n // Enable the form\r\n $_submitButton.prop('disabled', false);\r\n $_emailInput.prop('disabled', false);\r\n }\r\n\r\n /**\r\n * User wants to submit the form\r\n */\r\n function onFormSubmit(event)\r\n {\r\n var email;\r\n var validationMessage;\r\n var cancelSubmission;\r\n\r\n // Do not submit twice\r\n if (_isSubmitting)\r\n {\r\n cancelSubmission = true;\r\n }\r\n else \r\n {\r\n // Check that the email address is not empty\r\n email = $_emailInput.val().toLowerCase().trim();\r\n validationMessage = XmxApp.validateEmailAddress(email);\r\n\r\n if (validationMessage != '')\r\n {\r\n // Validation failed\r\n $_errorMessage.html(validationMessage);\r\n $_errorMessage.addClass('xmx-form-field-message--visible');\r\n\r\n // Do not submit\r\n cancelSubmission = true;\r\n }\r\n else \r\n {\r\n // Fill in the hash\r\n $_hashInput.val(XmxApp.generateHashCode(email));\r\n\r\n // Block clicking twice\r\n _isSubmitting = true;\r\n\r\n // Validation passed\r\n $_errorMessage.removeClass('xmx-form-field-message--visible');\r\n $_errorMessage.html('');\r\n\r\n // Show the ajax loader\r\n $_submitButton.addClass('xmx-button--loading');\r\n\r\n // Fire\r\n cancelSubmission = false;\r\n }\r\n }\r\n\r\n // If required, cancel the event\r\n if (cancelSubmission)\r\n {\r\n event.stopPropagation();\r\n event.preventDefault();\r\n\r\n return false;\r\n }\r\n else \r\n {\r\n return true;\r\n }\r\n }\r\n\r\n // Call constructor\r\n boot($element);\r\n\r\n // Public Interface\r\n return {};\r\n}\r\n\n/* exported XmxTrustpointSlider */\r\n\r\nvar XmxTrustpointSlider = function($sliderElement)\r\n{\r\n var _currentSlideIndex = -1;\r\n var _slider = null;\r\n var _slides = [];\r\n\r\n\t/**\r\n\t * Constructor\r\n\t */\r\n\tfunction boot($element)\r\n\t{\r\n _slider = $element;\r\n _slides = _slider.querySelectorAll(':scope > div');\r\n\r\n slide();\r\n setInterval(slide.bind(this), 3000);\r\n }\r\n\r\n function slide()\r\n {\r\n for (var i = 0; i < _slides.length; i++)\r\n {\r\n _slides[i].classList.remove('xmx-trust-point-slide--slide-in');\r\n _slides[i].classList.remove('xmx-trust-point-slide--slide-out');\r\n }\r\n\r\n if (_currentSlideIndex == -1)\r\n {\r\n _currentSlideIndex = 0;\r\n }\r\n else \r\n {\r\n _slides[_currentSlideIndex].classList.add('xmx-trust-point-slide--slide-out');\r\n\r\n _currentSlideIndex++;\r\n\r\n if (_currentSlideIndex > _slides.length - 1)\r\n {\r\n _currentSlideIndex = 0;\r\n }\r\n }\r\n\r\n _slides[_currentSlideIndex].classList.add('xmx-trust-point-slide--slide-in');\r\n }\r\n\r\n // Call constructor\r\n boot($sliderElement);\r\n\r\n // Public Interface\r\n return {\r\n };\r\n}\r\n\n/* exported XmxNewsletterCodeForm */\r\nvar XmxNewsletterCodeForm = function($element) \r\n{\r\n /**\r\n * Properties\r\n */\r\n var _isSubmitting = false;\r\n\r\n /**\r\n * Elements\r\n */\r\n var $_container;\r\n var $_form;\r\n var $_submitButton;\r\n var $_emailInput;\r\n var $_errorMessage;\r\n var $_codeInput;\r\n\r\n /**\r\n * Constructor\r\n */\r\n function boot($container) \r\n {\r\n $_container = $container;\r\n\r\n // Hook UI\r\n $_form = jQuery('.xmx-newsletter-code-signup-form form', $_container);\r\n $_form.on('submit', onFormSubmit);\r\n $_codeInput = jQuery('input[name=\"coupon_code\"]', $_container);\r\n $_submitButton = jQuery('button[type=\"submit\"]', $_form);\r\n $_emailInput = jQuery('input[name=\"email\"]', $_form);\r\n $_errorMessage = jQuery('.xmx-form-field-message', $_form); \r\n\r\n // Enable the form\r\n $_submitButton.prop('disabled', false);\r\n $_emailInput.prop('disabled', false);\r\n }\r\n\r\n /**\r\n * User wants to submit the form\r\n */\r\n function onFormSubmit(event)\r\n {\r\n var email;\r\n var validationMessage;\r\n var origin;\r\n var code;\r\n\r\n // Do not submit twice\r\n if (!_isSubmitting)\r\n {\r\n // Check that the email address is not empty\r\n email = $_emailInput.val().toLowerCase().trim();\r\n validationMessage = XmxApp.validateEmailAddress(email);\r\n\r\n if (validationMessage != '')\r\n {\r\n // Validation failed\r\n $_errorMessage.html(validationMessage);\r\n $_errorMessage.addClass('xmx-form-field-message--visible');\r\n }\r\n else \r\n {\r\n origin = $_container.data('origin');\r\n code = $_container.data('code');\r\n\r\n var postData =\r\n {\r\n email: email,\r\n origin: origin,\r\n date: XmxApp.generateHashCode(email),\r\n code: code\r\n };\r\n\r\n // Block clicking twice\r\n _isSubmitting = true;\r\n\r\n // Validation passed\r\n $_errorMessage.removeClass('xmx-form-field-message--visible');\r\n $_errorMessage.html('');\r\n\r\n // Show the ajax loader\r\n $_submitButton.addClass('xmx-button--loading');\r\n\r\n // Fire\r\n jQuery.ajax\r\n ({\r\n url: '/newsletter/ajax/code',\r\n dataType: 'json',\r\n type: 'post',\r\n cache: false,\r\n data: postData,\r\n success: function(response)\r\n {\r\n if (response.success)\r\n {\r\n switch (response.result)\r\n {\r\n case 'already-subscribed':\r\n {\r\n $_codeInput.val('');\r\n $_errorMessage.html(window.naeAppConfig.i18n.alreadySubscribed);\r\n $_errorMessage.addClass('xmx-form-field-message--visible');\r\n break;\r\n }\r\n\r\n case 'subscribed':\r\n {\r\n $_codeInput.val(response.code);\r\n $_container.addClass('xmx-newsletter-code-form--success');\r\n break;\r\n }\r\n\r\n case 'resubscribed':\r\n {\r\n $_codeInput.val('');\r\n $_errorMessage.html(window.naeAppConfig.i18n.resubscribed);\r\n $_errorMessage.addClass('xmx-form-field-message--visible');\r\n break;\r\n }\r\n }\r\n }\r\n },\r\n complete: function()\r\n {\r\n $_submitButton.removeClass('xmx-button--loading');\r\n _isSubmitting = false;\r\n }\r\n });\t\r\n }\r\n }\r\n\r\n event.stopPropagation();\r\n event.preventDefault();\r\n\r\n return false;\r\n }\r\n\r\n // Call constructor\r\n boot($element);\r\n\r\n // Public Interface\r\n return {};\r\n}\r\n\n/* exported XmxManyChatWidget */\r\n\r\nvar XmxManyChatWidget = function($element) \r\n{\r\n /**\r\n * Elements\r\n */\r\n var $_button;\r\n\r\n /**\r\n * Executed on document ready\r\n */\r\n function boot($button)\r\n {\r\n $_button = $button;\r\n $_button.on('click', onButtonClick);\r\n }\r\n\r\n /**\r\n * Executed when the user presses the signup button for Messenger\r\n */\r\n function onButtonClick()\r\n { \r\n var accountId = $_button.data('account-id');\r\n var widgetId = $_button.data('widget-id');\r\n var payload = $_button.data('widget-payload');\r\n\r\n // Add the widget target after the clicked button\r\n var $widget = jQuery('