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CAAC,OAAO,CAAC;QACjDjC,uDAAgB,CAACC,QAAQ,CAAC;QAE1BX,CAAC,CAAC,eAAe,CAAC,CAACwG,QAAQ,CAAC,wBAAwB,CAAC;QAErD,IAAIxG,CAAC,CAAC,yBAAyB,CAAC,CAACqC,MAAM,GAAG,CAAC,EAAE;UACzCrC,CAAC,CAAC,yBAAyB,CAAC,CAACqJ,IAAI,CAAC,CAAC;UACnCrJ,CAAC,CAAC,sCAAsC,CAAC,CAACsJ,IAAI,CAAC,CAAC;QACpD;MACJ,CAAC,CAAC;IACN;EACJ;EAEA,OAAO;IACHC,IAAIA,CAAA,EAAG;MACH,IAAInM,MAAM,CAACD,UAAU,GAAGb,gDAAa,EAAE;QACnC2F,sDAAe,CAACjC,CAAC,CAAC,mCAAmC,CAAC,EAAE,CAAC,CAAC;MAC9D;MACAgJ,gBAAgB,CAAC,CAAC;MAClBI,gBAAgB,CAAC,CAAC;IACtB;EACJ,CAAC;AACL,CAAC,EAAE,CAAC;AAEJ,+DAAe,CAAC,MAAM;EAClBpJ,CAAC,CAACpC,QAAQ,CAAC,CAAC4L,KAAK,CAACT,yBAAyB,CAACQ,IAAI,CAAC;EACjDvJ,CAAC,CAAC5C,MAAM,CAAC,CAACuJ,EAAE,CAAC,QAAQ,EAAEoC,yBAAyB,CAACU,MAAM,CAAC;AAC5D,CAAC,EAAE,CAAC,E","sources":["webpack://app_custom_basicfit/./cartridges/app_custom_basicfit/cartridge/client/default/js/util.js","webpack://app_custom_basicfit/./node_modules/get-youtube-id/index.js","webpack://app_custom_basicfit/./node_modules/tingle.js/dist/tingle.min.js","webpack://app_custom_basicfit/webpack/bootstrap","webpack://app_custom_basicfit/webpack/runtime/compat get default export","webpack://app_custom_basicfit/webpack/runtime/define property getters","webpack://app_custom_basicfit/webpack/runtime/hasOwnProperty shorthand","webpack://app_custom_basicfit/webpack/runtime/make namespace object","webpack://app_custom_basicfit/./cartridges/app_custom_basicfit/cartridge/client/default/js/allInBenefitsDynamic.js"],"sourcesContent":["\nimport tingle from 'tingle.js';\nimport getYouTubeID from 'get-youtube-id';\nexport const smallDesktopMin = 1025;\nexport const mobileViewMax = 767;\nexport const tabletViewMin = 901;\nexport const tabletViewMax = 1024;\n\nfunction processInclude(include) {\n    if (typeof include === 'function') {\n        include();\n    } else if (typeof include === 'object') {\n        Object.keys(include).forEach((key) => {\n            if (typeof include[key] === 'function') {\n                include[key]();\n            }\n        });\n    }\n}\n\n// Format name for ecommerce\nfunction formatName(product) {\n    if (product.category === 'subscription') {\n        product.name = `basic-fit ${product.name.toLowerCase()}`;\n    } else {\n        product.name = product.name.toLowerCase();\n    }\n    return product;\n}\n\nfunction getScreenSizeType() {\n    const innerWidth = window.innerWidth;\n\n    if (innerWidth <= mobileViewMax) {\n        return ['mobile-pt'];\n    } else if (innerWidth > mobileViewMax && innerWidth <= 900) {\n        return ['mobile-ls', 'tablet-pt'];\n    } else if (innerWidth > 900 && innerWidth <= tabletViewMax) {\n        return ['tablet-ls'];\n    } else if (innerWidth > tabletViewMax) {\n        return ['desktop'];\n    }\n}\n\n// Better in terms of modularity than getScreenSizeType()\nfunction getScreenSize(mediaQuery) {\n    return window.matchMedia(mediaQuery).matches;\n}\n\n// Check if element is in viewport\n\nfunction isElementInViewport(element) {\n    const rect = document.querySelector(element).getBoundingClientRect();\n    const windowHeight = (window.innerHeight || document.documentElement.clientHeight);\n    const windowWidth = (window.innerWidth || document.documentElement.clientWidth);\n    const vertInView = (rect.top < windowHeight) && ((rect.top + rect.height) > 0);\n    const horInView = (rect.left < windowWidth) && ((rect.left + rect.width) > 0);\n\n    return (vertInView && horInView);\n}\n\nfunction isDOMElementInViewport(element) {\n    const bounding = element.getBoundingClientRect();\n    const windowHeight = (window.innerHeight || document.documentElement.clientHeight);\n    const windowWidth = (window.innerWidth || document.documentElement.clientWidth);\n    const vertInView = (bounding.top < windowHeight) && ((bounding.top + bounding.height) > 0);\n    const horInView = (bounding.left < windowWidth) && ((bounding.left + bounding.width) > 0);\n\n    return (vertInView && horInView);\n}\n\nfunction addClassWhenInViewport(element, className) {\n    const $element = document.querySelector(element);\n\n    if (document.querySelector(element)) {\n        if (isElementInViewport(element)) {\n            $element.classList.add(className);\n        } else {\n            $element.classList.remove(className);\n        }\n    }\n}\n\n/**\n* Prevents body scroll in a way that IOS accepts it as well\n* styles need to be written inline to work properly\n* the added class is for adressing nesting inheritance\n*/\n\nlet currentPageScrollPosition = 0;\n\nfunction scrollLock(onoff) {\n    const $body = document.querySelector('body');\n\n    if (onoff === 'on') {\n        currentPageScrollPosition = window.scrollY;\n        $body.classList.add('scroll-lock');\n        $body.style.overflow = 'hidden';\n        $body.style.position = 'fixed';\n        $body.style.top = `-${currentPageScrollPosition}px`;\n        $body.style.width = '100%';\n    } else if (onoff === 'off') {\n        $body.classList.remove('scroll-lock');\n        $body.style.removeProperty('overflow');\n        $body.style.removeProperty('position');\n        $body.style.removeProperty('top');\n        $body.style.removeProperty('width');\n        window.scrollTo(0, currentPageScrollPosition);\n    }\n}\n\n/**\n * Create an alert to display the error message\n * @param {Object} message - Error message to display\n */\nfunction createErrorNotification(message) {\n    const errorHtml =\n        `<div class=\"alert alert-danger alert-dismissible valid-cart-error fade show\" role=\"alert\">\n        <button type=\"button\" class=\"close\" data-dismiss=\"alert\" aria-label=\"Close\">\n            <span aria-hidden=\"true\">&times;</span>\n        </button>\n        ${message}\n    </div>`;\n\n    $('.error-messaging').append(errorHtml);\n}\n\nfunction appendToUrl(url, params) {\n    let newUrl = url;\n\n    if (params) {\n        newUrl += (newUrl.indexOf('?') !== -1 ? '&' : '?') + Object.keys(params).map((key) => `${key}=${encodeURIComponent(params[key])}`).join('&');\n    }\n\n    return newUrl;\n}\n\nfunction openVideoInModal(videoUrl) {\n    const videoId = getYouTubeID(videoUrl);\n\n    const iframeVimeo = `<iframe width=\"100%\" height=\"400\" src=\"https://www.youtube.com/embed/${videoId}?rel=0&amp;showinfo=0&amp;controls=1&amp;autoplay=1\" frameborder=\"0\" allow=\"accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture\" allowfullscreen></iframe>`;\n\n    const videoInModal = new tingle.modal({\n        cssClass: ['modal-wrapper', 'modal-wrapper--video'],\n        closeLabel: '',\n        onClose() {\n            this.destroy();\n        },\n    });\n\n    videoInModal.setContent(iframeVimeo);\n    videoInModal.open();\n}\n\nfunction scrollToAnchor(anchor, params = {}) {\n    const defaultOptions = {\n        headerElemHeight: params.headerElemHeight || 0,\n        extraMargin: params.extraMargin || 0,\n        duration: params.duration || 400,\n    };\n    const { headerElemHeight, extraMargin, duration } = defaultOptions;\n    const scrollPos = parseInt($(anchor).offset().top - headerElemHeight - extraMargin);\n\n    $('html, body').animate({\n        scrollTop: scrollPos,\n    }, duration);\n}\n\nfunction setEqualHeights (arrayItems, count) {\n    if(arrayItems !== undefined && arrayItems.length > 0) {\n        arrayItems.height('');\n\n        var maxH = 0;\n\n        if(count) {\n            var arrays = [];\n            while(arrayItems.length > 0) {\n                arrays.push(arrayItems.splice(0, count));\n            }\n\n            for(var i = 0; i < arrays.length; i += 1) {\n                var data = arrays[i];\n                maxH = 0;\n                for(var j = 0; j < data.length; j += 1) {\n                    var currentH = $(data[j]).outerHeight();\n                    if(currentH > maxH) {\n                        maxH = currentH;\n                    }\n                }\n\n                for(var k = 0; k < data.length; k += 1) {\n                    $(data[k]).css('height', maxH);\n                }\n            }\n        } else {\n            arrayItems.each(function() {\n                var currentH2 = $(this).outerHeight();\n                if(currentH2 > maxH) {\n                    maxH = currentH2;\n                }\n            });\n\n            arrayItems.css('height', maxH);\n        }\n    }\n}\n\nfunction fontSizeReduced() {\n    var pages = document.querySelectorAll('.page');\n    var titleContainer = document.querySelector('.js-text-col');\n    var fontReduceComponent = document.querySelectorAll('.js-font-component');\n\n    pages.forEach((page) => {\n        fontReduceComponent.forEach((component) => {\n            if(component.offsetWidth > page.offsetWidth || component.offsetWidth > titleContainer.offsetWidth) {\n                component.classList.add('font-smaller');\n            }\n        });\n    });\n}\n\nfunction checkForContent(elements) {\n    elements.forEach(function (item) {\n        if(!item.hasChildNodes()) {\n            item.remove();\n        }\n    });\n}\n\n/**\n * Checks if the email value entered is correct format\n * @param {string} email - email string to check if valid\n * @returns {boolean} Whether email is valid\n */\nfunction validateEmail(email) {\n    var regex = /^[\\w.%+-]+@[\\w.-]+\\.[\\w]{2,6}$/;\n    return regex.test(email);\n}\n\nfunction calculateTitleHeight() {\n    const innerWidth = window.innerWidth;\n    var heroBannerTitle = document.querySelector('.js-main-title-hero-wrapper');\n    var heroBannerImg = document.querySelector('.js-hero-wrapper-content-img');\n\n    if (heroBannerImg) {\n        if (innerWidth < smallDesktopMin) {\n            heroBannerImg.style.marginTop = heroBannerTitle.offsetHeight + 30 + 'px';\n        }\n        heroBannerImg.style.display = 'block';\n        heroBannerImg.style.opacity = 1;\n    } else {\n        return;\n    }\n}\n\nfunction openTabs(tabSelector, tabContentSelector) {\n    const tab = tabSelector;\n    const tabContent = tabContentSelector;\n\n    function removeActive() {\n        tab.forEach(function(element) {\n            element.classList.remove('active');\n        });\n\n        tabContent.forEach(function(element) {\n            element.style.display = 'none';\n        });\n    }\n\n    tab.forEach(function(element) {\n        element.addEventListener('click', function(e) {\n            removeActive();\n\n            let current = e.currentTarget;\n            let currentID = e.currentTarget.getAttribute('data-id');\n            let tabContent = document.getElementById(currentID);\n\n            current.classList.add('active');\n            tabContent.style.display = 'block';\n        });\n    });\n}\n\n//requires to define two hidden input fields that contains text for buttons\nfunction readMoreButton(content, arrayItems, btnText, btnLessText, btnClassName, num, readLess) {\n    var readMoreBtn = document.createElement('button');\n\n    readMoreBtn.innerHTML = btnText.value;\n    readMoreBtn.classList.add(btnClassName);\n\n    //elements that needs to be hidden\n    arrayItems.forEach((item, index) => {\n        //from which element to show read more button\n        if(index > num) {\n            item.classList.add('hidden');\n\n            //where to append btn\n            content.appendChild(readMoreBtn);\n\n            //logic for read more/less button\n            readMoreBtn.addEventListener('click', function() {\n                if(!readLess) {\n                    item.classList.remove('hidden');\n                    this.style.display = 'none';\n                } else {\n                    item.classList.toggle('hidden');\n                }\n\n                //changing text of the button\n                if(item.classList.contains('hidden')) {\n                    this.innerHTML = btnText.value;\n                } else {\n                    this.innerHTML = btnLessText.value;\n                }\n            });\n        }\n    });\n}\n\nfunction imageResizeiOSFix() {\n    const $img = $('.js-hero-wrapper-content-img img');\n    if ($img) {\n        $img.addClass('resize-fix');\n    }\n}\n\nfunction backToTop(element) {\n    const $backToTop = element;\n\n    $(window).on('scroll', function() {\n        var $scrollPos = window.pageYOffset;\n\n        // 100 = one scroll\n        if ($scrollPos > 100) {\n            $backToTop.addClass('show');\n        } else {\n            $backToTop.removeClass('show');\n        }\n    });\n\n    $backToTop.on('click', function(e) {\n        e.preventDefault();\n\n        $('html, body').animate({\n            scrollTop: 0\n        }, 500);\n    });\n}\n\nfunction customStickyPosition(stickyElement, elementOne, elementTwo, elementThree) {\n    let stickyEl = stickyElement;\n    let offSetOne = 0;\n    let offSetTwo = 0;\n    let offSetThree = 0;\n\n    if(elementOne) {\n        offSetOne += elementOne.offsetHeight;\n    }\n\n    if(elementTwo) {\n        offSetTwo += elementTwo.offsetHeight;\n    }\n\n    if(elementThree) {\n        offSetThree += elementThree.offsetHeight;\n    }\n\n    stickyEl.style.top = offSetOne + offSetTwo + offSetThree + 'px';\n}\n\nfunction dynamicCountdown() {\n    $('.js-promotion-text').each(function() {\n        //get minutes from each promotion\n        let timeLeftSeconds = parseFloat($(this).text(), 10) * 60;\n\n        let self = $(this);\n\n        var timer = setInterval(function(){\n            //get hours\n            let hours = Math.floor(timeLeftSeconds / 3600);\n            //get minutes\n            let minutes = Math.floor((timeLeftSeconds - (hours * 3600)) / 60);\n            //get seconds\n            let seconds = timeLeftSeconds - (hours * 3600) - (minutes * 60);\n\n            hours < 10 ? hours = '0' + hours : '';\n            minutes < 10 ? minutes = '0' + minutes : '';\n            seconds < 10 ? seconds = '0' + seconds : '';\n\n            let remainingTime =  hours + ':' + minutes + ':' + seconds;\n\n            if(timeLeftSeconds <= 0){\n                clearInterval(timer);\n            }\n\n            //when string concatenate pump text\n            if (remainingTime) {\n                //set remaining time to each label\n                self.text(remainingTime);\n                if(!$(\".discount-label__promotion\").hasClass(\"js-loaded\")) {\n                    $('.discount-label__promotion').addClass('js-loaded');\n                    $.spinner().stop();\n                }\n            }\n\n            timeLeftSeconds -= 1;\n        }, 1000);\n    });\n}\n\n/**\n * @description Should be done before slider init to remove slides so we can use different number of slider assets per locale, for non sliders it should alse be removed at the beginning.\n * @param {jQuery} $Selector - selector of element that has childred to hide\n * @param {string} parentToRemoveSelector - selector of parent element that should be removed.\n */\nfunction removeHiddenAssets($Selector, parentToRemoveSelector) {\n    if ($Selector.find('.js-remove-element')) {\n        $Selector.find('.js-remove-element').closest(parentToRemoveSelector).remove();\n    }\n}\n\nexport {\n    processInclude,\n    getScreenSizeType,\n    isElementInViewport,\n    isDOMElementInViewport,\n    addClassWhenInViewport,\n    appendToUrl,\n    createErrorNotification,\n    getScreenSize,\n    openVideoInModal,\n    scrollToAnchor,\n    formatName,\n    setEqualHeights,\n    fontSizeReduced,\n    calculateTitleHeight,\n    validateEmail,\n    openTabs,\n    readMoreButton,\n    checkForContent,\n    backToTop,\n    imageResizeiOSFix,\n    customStickyPosition,\n    dynamicCountdown,\n    scrollLock,\n    removeHiddenAssets,\n};\n","\n(function (root, factory) {\n  if (typeof exports === 'object') {\n    module.exports = factory();\n  } else if (typeof define === 'function' && define.amd) {\n    define(factory);\n  } else {\n    root.getYouTubeID = factory();\n  }\n}(this, function (exports) {\n\n  return function (url, opts) {\n    if (opts == undefined) {\n      opts = {fuzzy: true};\n    }\n\n    if (/youtu\\.?be/.test(url)) {\n\n      // Look first for known patterns\n      var i;\n      var patterns = [\n        /youtu\\.be\\/([^#\\&\\?]{11})/,  // youtu.be/<id>\n        /\\?v=([^#\\&\\?]{11})/,         // ?v=<id>\n        /\\&v=([^#\\&\\?]{11})/,         // &v=<id>\n        /embed\\/([^#\\&\\?]{11})/,      // embed/<id>\n        /\\/v\\/([^#\\&\\?]{11})/         // /v/<id>\n      ];\n\n      // If any pattern matches, return the ID\n      for (i = 0; i < patterns.length; ++i) {\n        if (patterns[i].test(url)) {\n          return patterns[i].exec(url)[1];\n        }\n      }\n\n      if (opts.fuzzy) {\n        // If that fails, break it apart by certain characters and look \n        // for the 11 character key\n        var tokens = url.split(/[\\/\\&\\?=#\\.\\s]/g);\n        for (i = 0; i < tokens.length; ++i) {\n          if (/^[^#\\&\\?]{11}$/.test(tokens[i])) {\n            return tokens[i];\n          }\n        }\n      }\n    }\n\n    return null;\n  };\n\n}));\n","!function(t,o){\"function\"==typeof define&&define.amd?define(o):\"object\"==typeof exports?module.exports=o():t.tingle=o()}(this,function(){var o=!1;function t(t){this.opts=function(){for(var t=1;t<arguments.length;t++)for(var o in arguments[t])arguments[t].hasOwnProperty(o)&&(arguments[0][o]=arguments[t][o]);return arguments[0]}({},{onClose:null,onOpen:null,beforeOpen:null,beforeClose:null,stickyFooter:!1,footer:!1,cssClass:[],closeLabel:\"Close\",closeMethods:[\"overlay\",\"button\",\"escape\"]},t),this.init()}function e(){this.modalBoxFooter&&(this.modalBoxFooter.style.width=this.modalBox.clientWidth+\"px\",this.modalBoxFooter.style.left=this.modalBox.offsetLeft+\"px\")}return t.prototype.init=function(){if(!this.modal)return function(){this.modal=document.createElement(\"div\"),this.modal.classList.add(\"tingle-modal\"),0!==this.opts.closeMethods.length&&-1!==this.opts.closeMethods.indexOf(\"overlay\")||this.modal.classList.add(\"tingle-modal--noOverlayClose\");this.modal.style.display=\"none\",this.opts.cssClass.forEach(function(t){\"string\"==typeof t&&this.modal.classList.add(t)},this),-1!==this.opts.closeMethods.indexOf(\"button\")&&(this.modalCloseBtn=document.createElement(\"button\"),this.modalCloseBtn.type=\"button\",this.modalCloseBtn.classList.add(\"tingle-modal__close\"),this.modalCloseBtnIcon=document.createElement(\"span\"),this.modalCloseBtnIcon.classList.add(\"tingle-modal__closeIcon\"),this.modalCloseBtnIcon.innerHTML='<svg viewBox=\"0 0 10 10\" xmlns=\"http://www.w3.org/2000/svg\"><path d=\"M.3 9.7c.2.2.4.3.7.3.3 0 .5-.1.7-.3L5 6.4l3.3 3.3c.2.2.5.3.7.3.2 0 .5-.1.7-.3.4-.4.4-1 0-1.4L6.4 5l3.3-3.3c.4-.4.4-1 0-1.4-.4-.4-1-.4-1.4 0L5 3.6 1.7.3C1.3-.1.7-.1.3.3c-.4.4-.4 1 0 1.4L3.6 5 .3 8.3c-.4.4-.4 1 0 1.4z\" fill=\"#000\" fill-rule=\"nonzero\"/></svg>',this.modalCloseBtnLabel=document.createElement(\"span\"),this.modalCloseBtnLabel.classList.add(\"tingle-modal__closeLabel\"),this.modalCloseBtnLabel.innerHTML=this.opts.closeLabel,this.modalCloseBtn.appendChild(this.modalCloseBtnIcon),this.modalCloseBtn.appendChild(this.modalCloseBtnLabel));this.modalBox=document.createElement(\"div\"),this.modalBox.classList.add(\"tingle-modal-box\"),this.modalBoxContent=document.createElement(\"div\"),this.modalBoxContent.classList.add(\"tingle-modal-box__content\"),this.modalBox.appendChild(this.modalBoxContent),-1!==this.opts.closeMethods.indexOf(\"button\")&&this.modal.appendChild(this.modalCloseBtn);this.modal.appendChild(this.modalBox)}.call(this),function(){this._events={clickCloseBtn:this.close.bind(this),clickOverlay:function(t){var o=this.modal.offsetWidth-this.modal.clientWidth,e=t.clientX>=this.modal.offsetWidth-15,s=this.modal.scrollHeight!==this.modal.offsetHeight;if(\"MacIntel\"===navigator.platform&&0==o&&e&&s)return;-1!==this.opts.closeMethods.indexOf(\"overlay\")&&!function(t,o){for(;(t=t.parentElement)&&!t.classList.contains(o););return t}(t.target,\"tingle-modal\")&&t.clientX<this.modal.clientWidth&&this.close()}.bind(this),resize:this.checkOverflow.bind(this),keyboardNav:function(t){-1!==this.opts.closeMethods.indexOf(\"escape\")&&27===t.which&&this.isOpen()&&this.close()}.bind(this)},-1!==this.opts.closeMethods.indexOf(\"button\")&&this.modalCloseBtn.addEventListener(\"click\",this._events.clickCloseBtn);this.modal.addEventListener(\"mousedown\",this._events.clickOverlay),window.addEventListener(\"resize\",this._events.resize),document.addEventListener(\"keydown\",this._events.keyboardNav)}.call(this),document.body.appendChild(this.modal,document.body.firstChild),this.opts.footer&&this.addFooter(),this},t.prototype._busy=function(t){o=t},t.prototype._isBusy=function(){return o},t.prototype.destroy=function(){null!==this.modal&&(this.isOpen()&&this.close(!0),function(){-1!==this.opts.closeMethods.indexOf(\"button\")&&this.modalCloseBtn.removeEventListener(\"click\",this._events.clickCloseBtn);this.modal.removeEventListener(\"mousedown\",this._events.clickOverlay),window.removeEventListener(\"resize\",this._events.resize),document.removeEventListener(\"keydown\",this._events.keyboardNav)}.call(this),this.modal.parentNode.removeChild(this.modal),this.modal=null)},t.prototype.isOpen=function(){return!!this.modal.classList.contains(\"tingle-modal--visible\")},t.prototype.open=function(){if(!this._isBusy()){this._busy(!0);var t=this;return\"function\"==typeof t.opts.beforeOpen&&t.opts.beforeOpen(),this.modal.style.removeProperty?this.modal.style.removeProperty(\"display\"):this.modal.style.removeAttribute(\"display\"),this._scrollPosition=window.pageYOffset,document.body.classList.add(\"tingle-enabled\"),document.body.style.top=-this._scrollPosition+\"px\",this.setStickyFooter(this.opts.stickyFooter),this.modal.classList.add(\"tingle-modal--visible\"),\"function\"==typeof t.opts.onOpen&&t.opts.onOpen.call(t),t._busy(!1),this.checkOverflow(),this}},t.prototype.close=function(t){if(!this._isBusy()){if(this._busy(!0),!1,\"function\"==typeof this.opts.beforeClose)if(!this.opts.beforeClose.call(this))return void this._busy(!1);document.body.classList.remove(\"tingle-enabled\"),document.body.style.top=null,window.scrollTo({top:this._scrollPosition,behavior:\"instant\"}),this.modal.classList.remove(\"tingle-modal--visible\");var o=this;o.modal.style.display=\"none\",\"function\"==typeof o.opts.onClose&&o.opts.onClose.call(this),o._busy(!1)}},t.prototype.setContent=function(t){return\"string\"==typeof t?this.modalBoxContent.innerHTML=t:(this.modalBoxContent.innerHTML=\"\",this.modalBoxContent.appendChild(t)),this.isOpen()&&this.checkOverflow(),this},t.prototype.getContent=function(){return this.modalBoxContent},t.prototype.addFooter=function(){return function(){this.modalBoxFooter=document.createElement(\"div\"),this.modalBoxFooter.classList.add(\"tingle-modal-box__footer\"),this.modalBox.appendChild(this.modalBoxFooter)}.call(this),this},t.prototype.setFooterContent=function(t){return this.modalBoxFooter.innerHTML=t,this},t.prototype.getFooterContent=function(){return this.modalBoxFooter},t.prototype.setStickyFooter=function(t){return this.isOverflow()||(t=!1),t?this.modalBox.contains(this.modalBoxFooter)&&(this.modalBox.removeChild(this.modalBoxFooter),this.modal.appendChild(this.modalBoxFooter),this.modalBoxFooter.classList.add(\"tingle-modal-box__footer--sticky\"),e.call(this),this.modalBoxContent.style[\"padding-bottom\"]=this.modalBoxFooter.clientHeight+20+\"px\"):this.modalBoxFooter&&(this.modalBox.contains(this.modalBoxFooter)||(this.modal.removeChild(this.modalBoxFooter),this.modalBox.appendChild(this.modalBoxFooter),this.modalBoxFooter.style.width=\"auto\",this.modalBoxFooter.style.left=\"\",this.modalBoxContent.style[\"padding-bottom\"]=\"\",this.modalBoxFooter.classList.remove(\"tingle-modal-box__footer--sticky\"))),this},t.prototype.addFooterBtn=function(t,o,e){var s=document.createElement(\"button\");return s.innerHTML=t,s.addEventListener(\"click\",e),\"string\"==typeof o&&o.length&&o.split(\" \").forEach(function(t){s.classList.add(t)}),this.modalBoxFooter.appendChild(s),s},t.prototype.resize=function(){console.warn(\"Resize is deprecated and will be removed in version 1.0\")},t.prototype.isOverflow=function(){return window.innerHeight<=this.modalBox.clientHeight},t.prototype.checkOverflow=function(){this.modal.classList.contains(\"tingle-modal--visible\")&&(this.isOverflow()?this.modal.classList.add(\"tingle-modal--overflow\"):this.modal.classList.remove(\"tingle-modal--overflow\"),!this.isOverflow()&&this.opts.stickyFooter?this.setStickyFooter(!1):this.isOverflow()&&this.opts.stickyFooter&&(e.call(this),this.setStickyFooter(!0)))},{modal:t}});","// The module cache\nvar __webpack_module_cache__ = {};\n\n// The require function\nfunction __webpack_require__(moduleId) {\n\t// Check if module is in cache\n\tvar cachedModule = __webpack_module_cache__[moduleId];\n\tif (cachedModule !== undefined) {\n\t\treturn cachedModule.exports;\n\t}\n\t// Create a new module (and put it into the cache)\n\tvar module = __webpack_module_cache__[moduleId] = {\n\t\t// no module.id needed\n\t\t// no module.loaded needed\n\t\texports: {}\n\t};\n\n\t// Execute the module function\n\t__webpack_modules__[moduleId].call(module.exports, module, module.exports, __webpack_require__);\n\n\t// Return the exports of the module\n\treturn module.exports;\n}\n\n","// getDefaultExport function for compatibility with non-harmony modules\n__webpack_require__.n = function(module) {\n\tvar getter = module && module.__esModule ?\n\t\tfunction() { return module['default']; } :\n\t\tfunction() { return module; };\n\t__webpack_require__.d(getter, { a: getter });\n\treturn getter;\n};","// define getter functions for harmony exports\n__webpack_require__.d = function(exports, definition) {\n\tfor(var key in definition) {\n\t\tif(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {\n\t\t\tObject.defineProperty(exports, key, { enumerable: true, get: definition[key] });\n\t\t}\n\t}\n};","__webpack_require__.o = function(obj, prop) { return Object.prototype.hasOwnProperty.call(obj, prop); }","// define __esModule on exports\n__webpack_require__.r = function(exports) {\n\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n\t}\n\tObject.defineProperty(exports, '__esModule', { value: true });\n};","import { setEqualHeights, tabletViewMax, openVideoInModal } from './util';\n\nconst AllInBenefitsDynamicBlock = (() => {\n\n    function checkNumberTiles() {\n        const cardListAll = document.querySelectorAll('.js-benefits-dynamic-card-list');\n\n        cardListAll.forEach((cardList) => {\n            if (cardList.childNodes.length === 2) {\n                cardList.classList.add('card__list--two-items');\n\n                if (window.innerWidth > tabletViewMax) {\n                    setEqualHeights($('.js-all-in-bennefits-dynamic-item'), 2);\n                }\n            }\n\n            if (cardList.childNodes.length === 4) {\n                cardList.classList.add('card__list--four-items');\n\n                if (window.innerWidth > tabletViewMax) {\n                    setEqualHeights($('.js-all-in-bennefits-dynamic-item'), 4);\n                }\n            }\n        });\n    }\n\n    function handleModalVideo() {\n        if ($('.js-benefits-video-button').length) {\n            $('.js-benefits-video-button').on('click', (e) => {\n                e.preventDefault();\n                const videoUrl = $(e.currentTarget).data('video');\n                openVideoInModal(videoUrl);\n\n                $('.tingle-modal').addClass('benefits-dynamic-modal');\n\n                if ($('.benefits-dynamic-modal').length > 1) {\n                    $('.benefits-dynamic-modal').hide();\n                    $('.benefits-dynamic-modal:last-of-type').show();\n                }\n            });\n        }\n    }\n\n    return {\n        init() {\n            if (window.innerWidth > tabletViewMax) {\n                setEqualHeights($('.js-all-in-bennefits-dynamic-item'), 3);\n            }\n            checkNumberTiles();\n            handleModalVideo();\n        }\n    };\n})();\n\nexport default (() => {\n    $(document).ready(AllInBenefitsDynamicBlock.init);\n    $(window).on('scroll', AllInBenefitsDynamicBlock.scroll);\n})();\n"],"names":["tingle","getYouTubeID","smallDesktopMin","mobileViewMax","tabletViewMin","tabletViewMax","processInclude","include","Object","keys","forEach","key","formatName","product","category","name","toLowerCase","getScreenSizeType","innerWidth","window","getScreenSize","mediaQuery","matchMedia","matches","isElementInViewport","element","rect","document","querySelector","getBoundingClientRect","windowHeight","innerHeight","documentElement","clientHeight","windowWidth","clientWidth","vertInView","top","height","horInView","left","width","isDOMElementInViewport","bounding","addClassWhenInViewport","className","$element","classList","add","remove","currentPageScrollPosition","scrollLock","onoff","$body","scrollY","style","overflow","position","removeProperty","scrollTo","createErrorNotification","message","errorHtml","$","append","appendToUrl","url","params","newUrl","indexOf","map","encodeURIComponent","join","openVideoInModal","videoUrl","videoId","iframeVimeo","videoInModal","modal","cssClass","closeLabel","onClose","destroy","setContent","open","scrollToAnchor","anchor","defaultOptions","headerElemHeight","extraMargin","duration","scrollPos","parseInt","offset","animate","scrollTop","setEqualHeights","arrayItems","count","undefined","length","maxH","arrays","push","splice","i","data","j","currentH","outerHeight","k","css","each","currentH2","fontSizeReduced","pages","querySelectorAll","titleContainer","fontReduceComponent","page","component","offsetWidth","checkForContent","elements","item","hasChildNodes","validateEmail","email","regex","test","calculateTitleHeight","heroBannerTitle","heroBannerImg","marginTop","offsetHeight","display","opacity","openTabs","tabSelector","tabContentSelector","tab","tabContent","removeActive","addEventListener","e","current","currentTarget","currentID","getAttribute","getElementById","readMoreButton","content","btnText","btnLessText","btnClassName","num","readLess","readMoreBtn","createElement","innerHTML","value","index","appendChild","toggle","contains","imageResizeiOSFix","$img","addClass","backToTop","$backToTop","on","$scrollPos","pageYOffset","removeClass","preventDefault","customStickyPosition","stickyElement","elementOne","elementTwo","elementThree","stickyEl","offSetOne","offSetTwo","offSetThree","dynamicCountdown","timeLeftSeconds","parseFloat","text","self","timer","setInterval","hours","Math","floor","minutes","seconds","remainingTime","clearInterval","hasClass","spinner","stop","removeHiddenAssets","$Selector","parentToRemoveSelector","find","closest","AllInBenefitsDynamicBlock","checkNumberTiles","cardListAll","cardList","childNodes","handleModalVideo","hide","show","init","ready","scroll"],"sourceRoot":""}