{"version":3,"sources":["navigation.js"],"names":["$","document","ready","mouseX","mouseY","mousemove","e","pageX","pageY","$mapAreas","AL","AK","AZ","AR","CA","CO","CT","DE","FL","GA","HI","ID","IL","IN","IA","KS","KY","LA","ME","MD","MA","MI","MN","MS","MO","MT","NE","NV","NH","NJ","NM","NY","NC","ND","OH","OK","OR","PA","RI","SC","SD","TN","TX","UT","VT","VA","WA","WV","WI","WY","American_Samoa","Guam","Marshall_Islands","Micronesia","Northern_Marinara_Islands","PALAU","Puerto_Rico","US_Virgin_Islands","length","window","resize","svgW","width","svgH","attr","height","trigger","click","this","toggleClass","each","siblings","add","hasClass","animate","max-height","opacity","padding","$heroContainerImage","scroll","scrollTop","$top","$bottom","css","margin-top","margin-bottom","$identifier","replace","mouseover","text","top","left","mouseout","slideDivName","$slideshow","wrapSlideshowSlides","atAGlanceDivs","i","slice","wrapAll","initSlideshow","cycle","fx","timeout","carouselVisible","next","prev","pager","slides","carouselFluid","log","destroySlideshow","unwrap","on","FWP","loaded","offset","jcarousel","wrap","jcarouselAutoscroll","interval","target","autostart","removeClass","addClass","jcarouselControl","jcarouselPagination","change","parent","parents","prevAll","nextAll","modal","subscribe","close","show","hide","onclick","event"],"mappings":"AAOAA,EAAAC,UAAAC,OAAA,SAAAF,GAIA,IAAAG,EACAC,EACAJ,EAAAC,UAAAI,WAAA,SAAAC,GACAH,EAAAG,EAAAC,MACAH,EAAAE,EAAAE,SAGA,IAAAC,EAAA,CAAAC,GAAA,UACAC,GAAA,SACAC,GAAA,UACAC,GAAA,WACAC,GAAA,aACAC,GAAA,WACAC,GAAA,cACAC,GAAA,WACAC,GAAA,UACAC,GAAA,UACAC,GAAA,SACAC,GAAA,QACAC,GAAA,WACAC,GAAA,UACAC,GAAA,OACAC,GAAA,SACAC,GAAA,WACAC,GAAA,YACAC,GAAA,QACAC,GAAA,WACAC,GAAA,gBACAC,GAAA,WACAC,GAAA,YACAC,GAAA,cACAC,GAAA,WACAC,GAAA,UACAC,GAAA,WACAC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A,OAGAqD,IACAhB,IACAK,QAIA,CAEA,IAAA9G,EAAA,wBAAAoE,OAMA,OALAqD,IA6DAzH,EAAA,UAAA0H,SA3DAZ,QAkEA9G,EAAAC,UAAA0H,GAAA,kBAAA,WACAC,IAAAC,QACA7H,EAAA,cAAAoF,QAAA,CACAM,UAAA1F,EAAA,qBAAA8H,SAAA1B,IAAA,KACA,QAMApG,EAAA,cACA+H,UAAA,CACAC,KAAA,aAEAC,oBAAA,CACAC,SAAA,IACAC,OAAA,MACAC,WAAA,IAKApI,EAAA,2BACA2H,GAAA,2BAAA,WACA3H,EAAA8E,MAAAuD,YAAA,eAEAV,GAAA,6BAAA,WACA3H,EAAA8E,MAAAwD,SAAA,eAEAC,iBAAA,CACAJ,OAAA,QAGAnI,EAAA,2BACA2H,GAAA,2BAAA,WACA3H,EAAA8E,MAAAuD,YAAA,eAEAV,GAAA,6BAAA,WACA3H,EAAA8E,MAAAwD,SAAA,eAEAC,iBAAA,CACAJ,OAAA,QAGAnI,EAAA,yBACA2H,GAAA,6BAAA,KAAA,WACA3H,EAAA8E,MAAAwD,SAAA,aAEAX,GAAA,+BAAA,KAAA,WACA3H,EAAA8E,MAAAuD,YAAA,aAEAG,sBAKAxI,EAAA,gCAAAyI,QAAA,SAAAnI,GACA,IAAAoI,EAAA1I,EAAAM,EAAA6H,QAAAQ,QAAA,YACAD,EAAAE,UAAAN,SAAA,YACAI,EAAAJ,SAAA,YACAI,EAAAG,UAAAR,YAAA,eAIA,IAAAS,EAAA9I,EAAA,sBACA+I,EAAA/I,EAAA,oBACAgJ,EAAAhJ,EAAA,6BAEA+I,EAAApB,GAAA,SAAA,WACAmB,EAAAG,UAGAD,EAAArB,GAAA,SAAA,WACAmB,EAAAI,UAGA7E,OAAA8E,QAAA,SAAAC,GACAA,EAAAjB,QAAAW,GACAA,EAAAI","file":"navigation.js","sourcesContent":["/**\n * File navigation.js.\n *\n * Handles toggling the navigation menu for small screens and enables TAB key\n * navigation support for dropdown menus.\n */\n\n$(document).ready(function ($) { \n\n\t/* GLOBALS */\n\n\tvar mouseX;\n\tvar mouseY;\n\t$(document).mousemove( function(e) {\n\t mouseX = e.pageX; \n\t mouseY = e.pageY;\n\t}); \n\n\tvar $mapAreas = { \"AL\":\"Alabama\",\n\t\t\t\t\t\"AK\":\"Alaska\",\n\t\t\t\t\t\"AZ\":\"Arizona\",\n\t\t\t\t\t\"AR\":\"Arkansas\",\n\t\t\t\t\t\"CA\":\"California\",\n\t\t\t\t\t\"CO\":\"Colorado\",\n\t\t\t\t\t\"CT\":\"Connecticut\",\n\t\t\t\t\t\"DE\":\"Delaware\",\n\t\t\t\t\t\"FL\":\"Florida\",\n\t\t\t\t\t\"GA\":\"Georgia\",\n\t\t\t\t\t\"HI\":\"Hawaii\",\n\t\t\t\t\t\"ID\":\"Idaho\",\n\t\t\t\t\t\"IL\":\"Illinois\",\n\t\t\t\t\t\"IN\":\"Indiana\",\n\t\t\t\t\t\"IA\":\"Iowa\",\n\t\t\t\t\t\"KS\":\"Kansas\",\n\t\t\t\t\t\"KY\":\"Kentucky\",\n\t\t\t\t\t\"LA\":\"Louisiana\",\n\t\t\t\t\t\"ME\":\"Maine\",\n\t\t\t\t\t\"MD\":\"Maryland\",\n\t\t\t\t\t\"MA\":\"Massachusetts\",\n\t\t\t\t\t\"MI\":\"Michigan\",\n\t\t\t\t\t\"MN\":\"Minnesota\",\n\t\t\t\t\t\"MS\":\"Mississippi\",\n\t\t\t\t\t\"MO\":\"Missouri\",\n\t\t\t\t\t\"MT\":\"Montana\",\n\t\t\t\t\t\"NE\":\"Nebraska\",\n\t\t\t\t\t\"NV\":\"Nevada\",\n\t\t\t\t\t\"NH\":\"New Hampshire\",\n\t\t\t\t\t\"NJ\":\"New Jersey\",\n\t\t\t\t\t\"NM\":\"New Mexico\",\n\t\t\t\t\t\"NY\":\"New York\",\n\t\t\t\t\t\"NC\":\"North Carolina\",\n\t\t\t\t\t\"ND\":\"North Dakota\",\n\t\t\t\t\t\"OH\":\"Ohio\",\n\t\t\t\t\t\"OK\":\"Oklahoma\",\n\t\t\t\t\t\"OR\":\"Oregon\",\n\t\t\t\t\t\"PA\":\"Pennsylvania\",\n\t\t\t\t\t\"RI\":\"Rhode Island\",\n\t\t\t\t\t\"SC\":\"South Carolina\",\n\t\t\t\t\t\"SD\":\"South Dakota\",\n\t\t\t\t\t\"TN\":\"Tennessee\",\n\t\t\t\t\t\"TX\":\"Texas\",\n\t\t\t\t\t\"UT\":\"Utah\",\n\t\t\t\t\t\"VT\":\"Vermont\",\n\t\t\t\t\t\"VA\":\"Virginia\",\n\t\t\t\t\t\"WA\":\"Washington\",\n\t\t\t\t\t\"WV\":\"West Virginia\",\n\t\t\t\t\t\"WI\":\"Wisconsin\",\n\t\t\t\t\t\"WY\":\"Wyoming\",\n\t\t\t\t\t\"American_Samoa\":\"American Samoa\",\n\t\t\t\t\t\"Guam\":\"Guam\",\n\t\t\t\t\t\"Marshall_Islands\":\"Marshall Islands\",\n\t\t\t\t\t\"Micronesia\":\"Micronesia\",\n\t\t\t\t\t\"Northern_Marinara_Islands\":\"Northern Mariana Islands\",\n\t\t\t\t\t\"PALAU\":\"Palau\",\n\t\t\t\t\t\"Puerto_Rico\":\"Puerto Rico\",\n\t\t\t\t\t\"US_Virgin_Islands\":\"US Virgin Islands\"\n\t\t\t\t\t};\n\n\n\t/* set with and height of map */\n\n\t// we need this so the maps width is 100% in IE 11\n\n\tif ( $('.state-landing').length ) {\n\n\t\t$(window).resize(function() {\n\n\t\t\tvar svgW = $('.state-landing .right').width(),\n\t\t\t\tsvgH = svgW / .87039; // calculation to keep the map ratio\n\n\t\t\t$('svg#Layer_1').attr({ 'width' : svgW, 'height' : svgH });\n\n\t\t}).trigger('resize');\n\t\t\n\t}\n\n\t/*\n\t\tNavigation Toggles\n\t*/\n\n\t$('#hamburger').click(function(){\n\t\t$(this).toggleClass('open');\n\t\t$('.main-navigation').toggleClass('open');\n\t}); \n\n\t$('.dropdown-toggle').each(function(){\n\t\t$(this).click(function(){\n\t\t\t$(this).siblings('.dropdown-target').toggleClass('open');\n\t\t});\n\t});\n\n\t$('#site-search__toggle').add('#close-me').click(function(){\n\n\t\tif( !$('#search-form__lightbox').hasClass(\"visible\") ){\n\t\t\t$('#search-form__lightbox').toggleClass(\"visible\", true);\n\n\t\t\t$('#search-form__lightbox').animate({\n\t\t\t\t\"max-height\": \"300px\",\n\t\t\t opacity: 1,\n\t\t\t padding: \"1.25rem 1rem\"\n\t\t\t}, 250, function() {\n\t\t\t});\n\t\t} else {\n\t\t\t$('#search-form__lightbox').animate({\n\t\t\t\t\"max-height\": \"0px\",\n\t\t\t opacity: 0,\n\t\t\t padding: \"1rem 1rem\"\n\t\t \t}, 250, function() {\n\t\t\t\t$('#search-form__lightbox').toggleClass(\"visible\", false);\n\t\t \t});\n\t\t}\n\t});\n\n\t/*\n\t\tParallax Scroll Hero Controller\n\t*/\n\n\tvar $heroContainerImage = $('#hero-image__container div');\n\t\t\n\tif ( $heroContainerImage.length ) {\n\n\t\t$(window).scroll(function(){\n\t\t\t\n\t\t\tif($(window).scrollTop() > 0 ){\n\n\t\t\t\t$top = $(window).scrollTop()/2;\n\t\t\t\t$bottom = 0 - $(window).scrollTop()/2;\n\n\t\t\t\t$heroContainerImage.css({\"margin-top\": $top , \"margin-bottom\": $bottom });\n\n\t\t\t}\n\t\t\telse {\n\n\t\t\t\t$heroContainerImage.css({\"margin-top\": 0 , \"margin-bottom\": 0 });\n\n\t\t\t}\n\n\t\t});\n\n\t}\n\n\t/* \n\t\tState or Territory Click \n\t*/\n\t$('#outlines path').add('#outlines polygon').add('#Territories g').click(function() {\n\t\t$identifier = $mapAreas[$(this).attr('id')].replace(' ', '-');\n\t\tif($(\"a#region-\"+$identifier).length){\n\t\t\t$(\"a#region-\"+$identifier)[0].click();\n\t\t}\n\t});\t\n\n\n\t/* \n\t\tState or Territory Hover \n\t*/\n\n\t$('#outlines path').add('#outlines polygon').add('#Territories g').mouseover(function() {\n\t\t$('#map-tooltip').text($mapAreas[$(this).attr('id')]);\n\t \t$('#map-tooltip').css({'top':mouseY - 200 ,'left':mouseX - 50 });\n\t});\n\n\t$('#outlines path').add('#outlines polygon').add('#Territories g').mouseout(function() {\n\t \t$('#map-tooltip').css({ 'top': -200, 'left': -200 });\n\t});\n\n\n\n\t/*\n\t\tAt A Glance Slide\n\t*/\n\n\tvar width = $(document).width(),\n\t\t$slideshow = $('.slideshow');\n\n\t// on page load init slider but first wrap slides if window width is 900px or wider\n\tif (width >= 900) {\n\t\t\n\t\t// init the slider if slider only if needed\n\t\twrapSlideshowSlides();\n\t\tinitSlideshow();\n\t\t\n\t}\n\telse {\n\t\t\n\t\tinitSlideshow();\n\n\t}\n\n\t$(window).resize(function() {\n\n\t\twidth = $(document).width();\n\n\t\t// on page load init slider but first wrap slides if window width is 900px or wider\n\t\tif (width >= 900) {\n\t\t\t\n\t\t\t// init the slider if slider only if needed\n\t\t\tif ( $('.desktop-slides-wrap').length ) {\n\t\t\t\treturn;\n\t\t\t}\t\n\t\t\telse {\n\t\t\t\tdestroySlideshow();\n\t\t\t\twrapSlideshowSlides();\n\t\t\t\tinitSlideshow();\n\t\t\t}\n\n\t\t}\n\t\telse {\n\t\t\t\n\t\t\tif ( $('.desktop-slides-wrap').length ) {\n\t\t\t\tdestroySlideshow();\n\t\t\t\tunwrapSlides();\n\t\t\t\tinitSlideshow();\n\t\t\t}\n\t\t\telse {\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t}\n\n\t});\n\n\tfunction wrapSlideshowSlides() {\n\t\t\n\t\tvar atAGlanceDivs = $(\".slideshow .slide\");\n\t\n\t\tfor ( var i = 0; i < atAGlanceDivs.length; i+=10 ) {\n\t\t\t\n\t\t\tatAGlanceDivs.slice(i, i+10).wrapAll(\"
\");\n\n\t\t}\n\n\t}\n\n\tvar slideDivName;\n\n\tfunction initSlideshow() {\n\t\t\n\t if (width >= 900) {\n\n\t \tslideDivName = '.desktop-slides-wrap';\n\n\t\t}\n\t\telse {\n\n\t\t\tslideDivName = '.slide';\n\n\t\t}\n\t\t\n\t\tif($slideshow.length>0) {\n\t\t\t$slideshow.cycle({\n\t\t\t\tfx: 'carousel',\n\t\t timeout: 0,\n\t\t carouselVisible: 1,\n\t\t next: '#next',\n\t\t prev: '#prev',\n\t\t pager: '#pager',\n\t\t slides: slideDivName,\n\t\t carouselFluid: true,\n\t\t log: false\n\t\t });\n\t\t}\n\t}\n\n\tfunction destroySlideshow() {\n\t\tif($slideshow.length>0) {\n\t\t\t$slideshow.cycle('destroy');\n\t\t}\n\t}\n\n\tfunction unwrapSlides() {\n\t\t$('.slide').unwrap();\n\t}\n\n\t/********************************\n\t\tFacet loader scroll to top\n\t********************************/\n\n\t$(document).on('facetwp-loaded', function() {\n if (FWP.loaded) {\n $('html, body').animate({\n scrollTop: $('.facetwp-template').offset().top - 275\n }, 500);\n }\n });\n\n // Carousel plugin\n\t// $(function() {\n\t $('.jcarousel')\n\t .jcarousel({\n\t wrap: 'circular'\n\t })\n\t .jcarouselAutoscroll({\n\t interval: 5000,\n\t target: '+=1',\n\t autostart: true\n\t })\n\t ;\n\t// });\n\n $('.jcarousel-control-prev')\n .on('jcarouselcontrol:active', function() {\n $(this).removeClass('inactive');\n })\n .on('jcarouselcontrol:inactive', function() {\n $(this).addClass('inactive');\n })\n .jcarouselControl({\n target: '-=1'\n });\n\n $('.jcarousel-control-next')\n .on('jcarouselcontrol:active', function() {\n $(this).removeClass('inactive');\n })\n .on('jcarouselcontrol:inactive', function() {\n $(this).addClass('inactive');\n })\n .jcarouselControl({\n target: '+=1'\n });\n\n $('.jcarousel-pagination')\n .on('jcarouselpagination:active', 'a', function() {\n $(this).addClass('active');\n })\n .on('jcarouselpagination:inactive', 'a', function() {\n $(this).removeClass('active');\n })\n .jcarouselPagination();\n\n // $.jStorage.set(\"popup\", \"unseen\");\n\n // Feedback form rating \n $('.gfield_radio .gchoice input').change (function (e) {\n \tvar parent = $(e.target).parents('.gchoice'); \n \tparent.prevAll().addClass('selected');\n \tparent.addClass('selected');\n \tparent.nextAll().removeClass('selected');\n })\n\n\t// CEO Subscribe Popup\n\tvar modal = $('#ceoSubscribePopup');\n\tvar subscribe = $(\"#ceoSubscribeBtn\");\n\tvar close = $(\"#ceoSubscribePopup .close\");\n\n\tsubscribe.on('click', function(){\n\t\tmodal.show();\n\t})\n\n\tclose.on('click', function(){\n\t\tmodal.hide();\n\t})\n\n\twindow.onclick = function(event) {\n\t if (event.target == modal) {\n\t modal.hide();\n\t }\n\t} \n\n});"]}