{"version":3,"sources":["webpack:///webpack/bootstrap","webpack:///./js/template-parts/blocks/patient-journey/patient-journey.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","$","fn","isInViewport","elementTop","this","offset","top","elementBottom","outerHeight","viewportTop","window","scrollTop","viewportBottom","height","initializeBlock","$id","css","data","addClass","attr","not","slick","dots","autoplay","autoplaySpeed","speed","arrows","fade","infinite","waitForAnimate","adaptiveHeight","draggable","swipe","responsive","breakpoint","settings","mediaQuery","matchMedia","details","document","querySelector","matches","removeAttribute","each","_index","element","on","event","type","preventDefault","currentGif","currentTarget","children","prop","thisButton","thisText","removeClass","whichslide","GAslide","ga","title","dataLayer","push","length","setTimeout","focus","next","parent","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,EAAO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Y,UAC9BxD,EAAG,eAAgBmB,KAAM,gBAAiB,SAC1CmC,EAAWtC,IAAI,mBAAoBD,EAAIE,KAAK,qBAC5CsC,EAASrC,SAAS,UAClBlB,EAAG+C,EAAMI,eAAehC,KAAM,gBAAiB,QACxD,MAAMsC,EAAaH,EAAWrC,KAAM,SAEpCjB,EAAG,uBAAwBqB,MAAO,cAClCrB,EAAG,uBAAwBqB,MAAO,YAAaoC,GAMtC,MAAMC,EAAU,cAAgBD,EAAW,GAWnC,OATRE,GAAI,OAAQ,QAAS,wBAAyBD,EAASnB,SAASqB,OAEhElD,OAAOmD,UAAYnD,OAAOmD,WAAa,GAC/BnD,OAAOmD,UAAUC,KAAK,CAClB,MAAS,kBACT,eAAkB,wBAClB,YAAeJ,EACf,SAAYnB,SAASqB,SAElB,KAGrBd,GAAI,aAAc,KAErB9C,EAAG,uBAAwBqB,MAAO,eAM7BrB,EAAE,uBAAuB8C,GAAG,eAAe,WAInC9C,EAAE,iDAAiD+D,OAAS,GAC5DC,YAAW,WACPhE,EAAE,qCAAqCiE,UACxC,KAGPjE,EAAG,oBAAqB2C,MAAK,WAER3C,EAAEI,MAAMa,KAAM,UACVjB,EAAE,uBAAuBqB,MAAM,sBAIhDrB,EAAEI,MAAMY,IAAI,mBAAoBD,EAAIE,KAAK,qBACzCjB,EAAEI,MAAM8D,OAAOhD,SAAS,UACxBlB,EAAEI,MAAM+D,SAAShD,KAAM,gBAAiB,UAIxCnB,EAAEI,MAAMY,IAAI,mBAAoBD,EAAIE,KAAK,eACzCjB,EAAEI,MAAM8D,OAAOV,YAAY,UAC3BxD,EAAEI,MAAM+D,SAAShD,KAAM,gBAAiB,iBAc3DnB,EAAGuC,UAAW6B,MAAO,KACpBtD,MAKIJ,OAAO2D,KACX3D,OAAO2D,IAAIC,UAAW,4CAA6CxD,IArMrE,CAuMKyD","file":"/template-parts/blocks/patient-journey/patient-journey.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 = 23);\n","/* global jQuery */\n( ( $ ) => {\n \n /*check if element is in viewport*/\n $.fn.isInViewport = function () {\n const elementTop = $(this).offset().top;\n const elementBottom = elementTop + $(this).outerHeight();\n const viewportTop = $(window).scrollTop();\n const viewportBottom = viewportTop + $(window).height();\n\n return elementBottom > viewportTop && elementTop < viewportBottom;\n };\n \n // function elementScrolled(elem)\n// {\n// var docViewTop = $(window).scrollTop();\n// var docViewBottom = docViewTop + $(window).height();\n// var elemTop = $(elem).offset().top;\n// return ((elemTop <= docViewBottom) && (elemTop >= docViewTop));\n// }\n \n\tconst initializeBlock = () => {\n\n \n const $id = $( '.patient-journey' );\n $( '.top-nav li:first-child .button' ).css('background-color', $id.data('icon-hover-color'));\n $( '.top-nav li:first-child p' ).addClass('active');\n \n $( '.top-nav li' ).attr( 'aria-selected', 'false' );\n $( '.top-nav li:first-child' ).attr( 'aria-selected', 'true' );\n\n $( '.top-nav li' ).attr( 'tabindex', '0' );\n \n\t\t$( '.phr-slider-content' ).not( '.slick-initialized' ).slick( {\n\t\t\tdots: false,\n\t\t\tautoplay: false,\n autoplaySpeed: 10000,\n\t\t\tspeed: 300,\n arrows: false,\n\t\t\tfade: true,\n infinite: false,\n\t\t\twaitForAnimate: false,\n adaptiveHeight: false,\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: false,\n draggable: false,\n swipe: false,\n autoplay: false,\n autoplaySpeed: 10000,\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 autoplay: false,\n autoplaySpeed: 10000,\n\t\t\t\t\t},\n\t\t\t\t},\n \n\t\t\t],\n\t\t} );\n\n //For Play/Pause button on GIFs\n const mediaQuery = window.matchMedia(\"(prefers-reduced-motion: reduce))\");\n const details = document.querySelector(\".pj-image-gif > details\");\n \n if (mediaQuery.matches) {\n details.removeAttribute(\"open\");\n }\n \n\n $( '.pj-image-gif' ).attr( 'tabindex', '0' );\n\n $('.pj-image-gif').each((_index, element) => {\n const $element = $(element);\n\n $element.on( 'keydown', ( event ) => {\n if ( (event.type === 'keydown' && event.key === 'Enter') ) {\n event.preventDefault();\n const currentGif = $( event.currentTarget ).children('details');\n\n currentGif.prop('open', !currentGif.prop('open'));\n }\n });\n });\n\n \n /*START AUTOPLAY WHEN SLIDER CONTENT SCROLL INTO VIEW*/\n $(window).on('resize scroll', () => {\n \n if ($( '.phr-slider-content' ).isInViewport()) {\n $( '.phr-slider-content' ).slick('slickSetOption', 'autoplay', true);\n $( '.phr-slider-content' ).slick( 'slickPlay' );\n }\n });\n \n \n $( '.top-nav li' ).on( 'mouseenter keydown', ( event ) => {\n\n if (event.type === 'mouseenter' || (event.type === 'keydown' && event.key === 'Enter')) {\n event.preventDefault();\n \n const thisButton = $( event.currentTarget).children(\".button\");\n const thisText = $( event.currentTarget).children(\"p\");\n \n\n $( '.top-nav .button' ).css('background-color', $id.data('icon-color'));\n $( '.top-nav p' ).removeClass('active');\n $( '.top-nav li' ).attr( 'aria-selected', 'false' );\n thisButton.css('background-color', $id.data('icon-hover-color'));\n thisText.addClass('active');\n $( event.currentTarget).attr( 'aria-selected', 'true' );\n\t\t\tconst whichslide = thisButton.data( 'slide' );\n\n\t\t\t$( '.phr-slider-content' ).slick( 'slickPause' );\n\t\t\t$( '.phr-slider-content' ).slick( 'slickGoTo', whichslide );\n\n \n \n \n \n const GAslide = ' Button - ' + (whichslide+1); \n \n ga( 'send', 'event', 'Patient Journey Click', GAslide, document.title );\n \n window.dataLayer = window.dataLayer || [];\n window.dataLayer.push({\n 'event': 'component_click',\n 'event_category': 'Patient Journey Click',\n 'event_label': GAslide,\n 'page_url': document.title\n});\n return false;\n}\n \n\t\t} ).on( 'mouseleave', () => {\n \n\t\t\t$( '.phr-slider-content' ).slick( 'slickPlay' );\n/*\t\t\t$( '.phr-slider-content' ).slick( 'slickSetOption', 'autoplayspeed', 5000, false );*/\n \n\t\t} );\n\n \n $(\".phr-slider-content\").on(\"afterChange\", function (){ \n \n\n //Accessibility fix so slide content stays in focus when using arrow keys to navigate\n if ($('.phr-slider-content .slick-slide:focus-within').length > 0) {\n setTimeout(function() { \n $(\".phr-slider-content .slick-active\").focus();\n }, 500);\n }\n \n $( '.top-nav .button' ).each(function(){\n \n const datavalue= $(this).data( 'slide' );\n const currentSlide = $('.phr-slider-content').slick('slickCurrentSlide');\n const currentTab = currentSlide;\n \n if (datavalue == currentTab){\n $(this).css('background-color', $id.data('icon-hover-color'));\n $(this).next().addClass('active');\n $(this).parent().attr( 'aria-selected', 'true' );\n }\n \n else {\n $(this).css('background-color', $id.data('icon-color'));\n $(this).next().removeClass('active');\n $(this).parent().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=patient-journey', initializeBlock );\n\t}\n} )( jQuery );\n"],"sourceRoot":""}