{"version":3,"file":"homepage.js","sources":["webpack:///webpack/bootstrap","webpack:///./app_lre/cartridge/client/default/js/homepage.js"],"sourcesContent":[" \t// The module cache\n \tvar installedModules = {};\n\n \t// The require function\n \tfunction __webpack_require__(moduleId) {\n\n \t\t// Check if module is in cache\n \t\tif(installedModules[moduleId]) {\n \t\t\treturn installedModules[moduleId].exports;\n \t\t}\n \t\t// Create a new module (and put it into the cache)\n \t\tvar module = installedModules[moduleId] = {\n \t\t\ti: moduleId,\n \t\t\tl: false,\n \t\t\texports: {}\n \t\t};\n\n \t\t// Execute the module function\n \t\tmodules[moduleId].call(module.exports, module, module.exports, __webpack_require__);\n\n \t\t// Flag the module as loaded\n \t\tmodule.l = true;\n\n \t\t// Return the exports of the module\n \t\treturn module.exports;\n \t}\n\n\n \t// expose the modules object (__webpack_modules__)\n \t__webpack_require__.m = modules;\n\n \t// expose the module cache\n \t__webpack_require__.c = installedModules;\n\n \t// define getter function for harmony exports\n \t__webpack_require__.d = function(exports, name, getter) {\n \t\tif(!__webpack_require__.o(exports, name)) {\n \t\t\tObject.defineProperty(exports, name, { enumerable: true, get: getter });\n \t\t}\n \t};\n\n \t// define __esModule on exports\n \t__webpack_require__.r = function(exports) {\n \t\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n \t\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n \t\t}\n \t\tObject.defineProperty(exports, '__esModule', { value: true });\n \t};\n\n \t// create a fake namespace object\n \t// mode & 1: value is a module id, require it\n \t// mode & 2: merge all properties of value into the ns\n \t// mode & 4: return value when already ns object\n \t// mode & 8|1: behave like require\n \t__webpack_require__.t = function(value, mode) {\n \t\tif(mode & 1) value = __webpack_require__(value);\n \t\tif(mode & 8) return value;\n \t\tif((mode & 4) && typeof value === 'object' && value && value.__esModule) return value;\n \t\tvar ns = Object.create(null);\n \t\t__webpack_require__.r(ns);\n \t\tObject.defineProperty(ns, 'default', { enumerable: true, value: value });\n \t\tif(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key));\n \t\treturn ns;\n \t};\n\n \t// getDefaultExport function for compatibility with non-harmony modules\n \t__webpack_require__.n = function(module) {\n \t\tvar getter = module && module.__esModule ?\n \t\t\tfunction getDefault() { return module['default']; } :\n \t\t\tfunction getModuleExports() { return module; };\n \t\t__webpack_require__.d(getter, 'a', getter);\n \t\treturn getter;\n \t};\n\n \t// Object.prototype.hasOwnProperty.call\n \t__webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };\n\n \t// __webpack_public_path__\n \t__webpack_require__.p = \"\";\n\n\n \t// Load entry module and return exports\n \treturn __webpack_require__(__webpack_require__.s = \"./app_lre/cartridge/client/default/js/homepage.js\");\n","'use strict';\n// 168198\n$(document).ready(function () {\n // How It Works\n var tabLinks = $('.c-module__tab').find('.c-module__tab__link a');\n $.each(tabLinks, function (i, e) {\n $(e).on('click', function (event) {\n event.preventDefault();\n\n $('.c-module__tab__link').removeClass('active');\n $('.c-module__tab__content').removeClass('active');\n $('.c-module__tab__wrapper .active').removeClass('active');\n\n $(this).parent().addClass('active');\n var tabContent = $(this).attr('href');\n $(tabContent).addClass('active');\n });\n });\n\n var generateHiwCards = function () {\n $('.how-it-works .c-cards').slick({\n dots: true,\n arrows: false,\n centerMode: true,\n slidesToShow: 1,\n slidesToScroll: 3,\n variableWidth: true\n });\n };\n\n $(window).resize(function () {\n (function (rx) {\n var hiwCards = $('.how-it-works .c-cards');\n if (rx === true) {\n if (hiwCards.hasClass('slick-initialized') === false) {\n generateHiwCards();\n }\n } else if (rx === false) {\n if (hiwCards.hasClass('slick-initialized') === true) {\n $('.how-it-works .c-cards').slick('unslick');\n }\n }\n }(window.matchMedia(\"(max-width: 768px)\").matches));\n });\n\n if (window.matchMedia(\"(max-width: 768px)\").matches) {\n generateHiwCards();\n }\n\n // What Our Students Are Saying\n $('.c-review-card__slides').slick({\n dots: true,\n arrows: true,\n centerMode: true,\n slidesToShow: 1,\n variableWidth: true,\n infinite: true,\n responsive: [\n {\n breakpoint: 768,\n settings: {\n arrows: true,\n centerMode: true,\n slidesToShow: 1,\n variableWidth: true,\n infinite: true\n }\n },\n {\n breakpoint: 480,\n settings: {\n arrows: true,\n centerMode: true,\n slidesToShow: 1,\n variableWidth: true,\n infinite: true\n }\n }\n ]\n });\n\n $(document).on('afterChange', '.c-review-card__slides', function (slick) {\n $('.slick-slide:not(.slick-active) .c-review-card__quote').attr('tabindex', '-1');\n $('.slick-slide:not(.slick-active) .c-review-card__name').attr('tabindex', '-1');\n $('.slick-slide:not(.slick-active) .c-review-card__subject').attr('tabindex', '-1');\n $(this).find('.slick-active .c-review-card__quote').attr('tabindex', '0');\n $(this).find('.slick-active .c-review-card__name').attr('tabindex', '0');\n $(this).find('.slick-active .c-review-card__subject').attr('tabindex', '0');\n $(this).find('.slick-current').find('.c-review-card__quote').focus();\n });\n\n if ($('.header-top-banner .content').children().length === 0) {\n $('.header-top-banner').addClass('d-none');\n } else {\n $('.header-top-banner').removeClass('d-none');\n }\n // Hero Banner\n $('.hero-carousel').slick({\n slidesToShow: 1,\n slidesToScroll: 1,\n autoplay: false,\n pauseOnDotsHover: false,\n autoplaySpeed: 8000,\n dots: true,\n arrows: true,\n infinite: true\n });\n\n $('.pause-resume-slider').on('click', function () {\n if ($(this).hasClass('play')) {\n $(this).removeClass('play').addClass('pause');\n $(this).attr('aria-label', 'Pause Slider');\n $(this).siblings('span').text('Pause Slider');\n $('.hero-carousel').slick('slickSetOption', 'autoplay', true).slick('slickPlay');\n } else {\n $(this).removeClass('pause').addClass('play');\n $(this).attr('aria-label', 'Play Slider');\n $(this).siblings('span').text('Play Slider');\n $('.hero-carousel').slick('slickSetOption', 'autoplay', false).slick('slickPause');\n }\n });\n // 156512\n $('.hash-link-rfi').on('click', function () {\n var sghn = $('.st-global-header__nav').height();\n $('html, body').animate({\n scrollTop: $('#rfi').offset().top - sghn\n }, 1000, 'swing');\n });\n});\n\n$(window).on('load', function () {\n $('.slick-arrow').each(function () {\n $(this).attr('title', $(this).attr('aria-label'));\n });\n $('.c-review-card__slides .slick-slide').each(function () {\n $(this).find('.c-review-card__quote').attr('aria-label', $(this).find('.c-review-card__quote').text());\n $(this).find('.c-review-card__name').attr('aria-label', $(this).find('.c-review-card__name').text());\n $(this).find('.c-review-card__subject').attr('aria-label', $(this).find('.c-review-card__subject').text());\n });\n // 72864, 165827, 156512\n});\n"],"mappings":";AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;;;;;;AClFA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAEA;AACA;AACA;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AANA;AAQA;AACA;AACA;AACA;AACA;AACA;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AALA;AAFA;AAWA;AACA;AACA;AACA;AACA;AACA;AACA;AALA;AAFA;AAlBA;AA+BA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AARA;AAWA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AADA;AAGA;AACA;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAEA;;;;A","sourceRoot":""}