{"version":3,"sources":["webpack:///webpack/bootstrap","webpack:///./js/template-parts/blocks/homepage-solutions/homepage-solutions.js"],"names":["installedModules","__webpack_require__","moduleId","exports","module","i","l","modules","call","m","c","d","name","getter","o","Object","defineProperty","enumerable","get","r","Symbol","toStringTag","value","t","mode","__esModule","ns","create","key","bind","n","object","property","prototype","hasOwnProperty","p","s","$","initializeBlock","$id","css","data","addClass","attr","not","slick","dots","autoplay","speed","arrows","fade","infinite","waitForAnimate","adaptiveHeight","draggable","swipe","responsive","breakpoint","settings","on","event","type","preventDefault","thisButton","currentTarget","children","thisImg","removeClass","whichslide","GAslide","ga","document","title","window","dataLayer","push","length","setTimeout","focus","each","this","ready","acf","addAction","jQuery"],"mappings":"aACE,IAAIA,EAAmB,GAGvB,SAASC,EAAoBC,GAG5B,GAAGF,EAAiBE,GACnB,OAAOF,EAAiBE,GAAUC,QAGnC,IAAIC,EAASJ,EAAiBE,GAAY,CACzCG,EAAGH,EACHI,GAAG,EACHH,QAAS,IAUV,OANAI,EAAQL,GAAUM,KAAKJ,EAAOD,QAASC,EAAQA,EAAOD,QAASF,GAG/DG,EAAOE,GAAI,EAGJF,EAAOD,QAKfF,EAAoBQ,EAAIF,EAGxBN,EAAoBS,EAAIV,EAGxBC,EAAoBU,EAAI,SAASR,EAASS,EAAMC,GAC3CZ,EAAoBa,EAAEX,EAASS,IAClCG,OAAOC,eAAeb,EAASS,EAAM,CAAEK,YAAY,EAAMC,IAAKL,KAKhEZ,EAAoBkB,EAAI,SAAShB,GACX,oBAAXiB,QAA0BA,OAAOC,aAC1CN,OAAOC,eAAeb,EAASiB,OAAOC,YAAa,CAAEC,MAAO,WAE7DP,OAAOC,eAAeb,EAAS,aAAc,CAAEmB,OAAO,KAQvDrB,EAAoBsB,EAAI,SAASD,EAAOE,GAEvC,GADU,EAAPA,IAAUF,EAAQrB,EAAoBqB,IAC/B,EAAPE,EAAU,OAAOF,EACpB,GAAW,EAAPE,GAA8B,iBAAVF,GAAsBA,GAASA,E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,UAI/BoB,EAAWvB,IAAI,QAASD,EAAIE,KAAK,eACjCyB,EAAQC,YAAY,UACpBJ,EAAWI,YAAY,UACvB9B,EAAE2C,MAAMrC,KAAM,gBAAiB,iBAclDN,EAAGkC,UAAWU,MAAO,KACpB3C,MAKImC,OAAOS,KACXT,OAAOS,IAAIC,UAAW,+CAAgD7C,IA1IxE,CA4IK8C","file":"/template-parts/blocks/homepage-solutions/homepage-solutions.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 = 39);\n","/* global jQuery */\n( ( $ ) => {\n\tconst initializeBlock = () => {\n \n \n const $id = $( '.homepage-solutions' );\n $( '.top-sol-tabs li:first-child .button' ).css('color', $id.data('icon-active-color'));\n $( '.top-sol-tabs li:first-child .button' ).addClass(\"active\");\n $( '.top-sol-tabs li:first-child img' ).addClass(\"active\");\n \n $(\".top-sol-tabs ul.item-list li\").attr( 'aria-selected', 'false' );\n $(\".top-sol-tabs ul.item-list li:first-child\").attr( 'aria-selected', 'true' );\n\n $( '.top-sol-tabs ul.item-list li' ).attr( 'tabindex', '0' );\n \n\t\t$( '.phr-sol-content' ).not( '.slick-initialized' ).slick( {\n\t\t\tdots: false,\n\t\t\tautoplay: false,\n\t\t\tspeed: 1000,\n arrows: false,\n\t\t\tfade: true,\n infinite: false,\n\t\t\twaitForAnimate: false,\n adaptiveHeight: true,\n draggable: false,\n swipe: false,\n responsive: [\n\t\t\t\t{\n\t\t\t\t\tbreakpoint: 1200,\n\t\t\t\t\tsettings: {\n\t\t\t\t\t\tadaptiveHeight: true,\n draggable: false,\n swipe: false,\n\t\t\t\t\t},\n\t\t\t\t},\n\n\t\t\t\t{\n\t\t\t\t\tbreakpoint: 768,\n\t\t\t\t\tsettings: {\n adaptiveHeight: true,\n draggable: false,\n swipe: false,\n\t\t\t\t\t},\n\t\t\t\t},\n \n\t\t\t],\n\t\t} );\n \n \n $( '.top-sol-tabs li' ).on( 'click keydown', ( event ) => {\n if (event.type === 'click' || (event.type === 'keydown' && event.key === 'Enter')) {\n event.preventDefault();\n \n const thisButton = $( event.currentTarget).children(\".button\");\n const thisImg = $( event.currentTarget).children(\"img\");\n \n $( '.top-sol-tabs li img' ).removeClass(\"active\");\n $( '.top-sol-tabs li .button' ).removeClass(\"active\");\n $( '.top-sol-tabs li .button' ).css('color', $id.data('icon-color'));\n $(\".top-sol-tabs li\").attr( 'aria-selected', 'false' );\n \n\n\n //$( '.top-sol-tabs .button' ).css('background-color', $id.data('icon-color'));\n thisButton.css('color', $id.data('icon-active-color'));\n thisImg.addClass(\"active\");\n thisButton.addClass(\"active\");\n $( event.currentTarget).attr( 'aria-selected', 'true' );\n\t\t\tconst whichslide = thisButton.data( 'slide' );\n\n\t\t\t$( '.phr-sol-content' ).slick( 'slickGoTo', whichslide );\n \n \n const GAslide = ' Button - ' + (whichslide+1); \n ga( 'send', 'event', 'Homepage Solutions Click', GAslide, document.title );\n \n window.dataLayer = window.dataLayer || [];\n window.dataLayer.push({\n 'event': 'component_click',\n 'event_category': 'Homepage Solutions Click',\n 'event_label': GAslide,\n 'page_url': document.title\n});\n return false;\n\n}\n \n\t\t} );\n\n $(\".phr-sol-content\").on(\"afterChange\", function (){ \n \n\n //Accessibility fix so slide content stays in focus when using arrow keys to navigate\n if ($('.phr-sol-content .slick-slide:focus-within').length > 0) {\n setTimeout(function() { \n $(\".phr-sol-content .slick-active\").focus();\n }, 500);\n }\n \n $( '.top-sol-tabs li' ).each(function(){\n const thisButton = $(this).children(\".button\");\n const thisImg = $(this).children(\"img\");\n \n const datavalue= thisButton.data( 'slide' );\n const currentSlide = $('.phr-sol-content').slick('slickCurrentSlide');\n const currentTab = currentSlide;\n\n if (datavalue == currentTab){\n thisButton.css('color', $id.data('icon-active-color'));\n thisImg.addClass(\"active\");\n thisButton.addClass(\"active\");\n $(this).attr( 'aria-selected', 'true' );\n }\n \n else {\n thisButton.css('color', $id.data('icon-color'));\n thisImg.removeClass(\"active\");\n thisButton.removeClass(\"active\");\n $(this).attr( 'aria-selected', 'false' );\n }\n \n \n });\n \n \n });\n\n\n\t};\n \n\n\t// Initialize each block on page load (front end).\n\t$( document ).ready( () => {\n\t\tinitializeBlock();\n\n\t} );\n\n\t// Initialize dynamic block preview (editor).\n\tif ( window.acf ) {\n\t\twindow.acf.addAction( 'render_block_preview/type=homepage-solutions', initializeBlock );\n\t}\n} )( jQuery );\n"],"sourceRoot":""}