{"version":3,"file":"site.js","sources":["webpack:///site.js"],"sourcesContent":["(window.webpackJsonp=window.webpackJsonp||[]).push([[13],{\"/G4U\":function(e,t,n){(function(e){document.addEventListener(\"DOMContentLoaded\",(function(){if(document.getElementById(\"modalPopup\")){var t=document.getElementById(\"headline\").value,n=document.getElementById(\"clusterName\").value,a=(document.getElementById(\"clusterOption\").value,document.getElementById(\"clusterOptionName\").value);console.log(t+\"|\"+a+\"|\"+n),dataLayer.push({event:\"cluster targeting modal\",eventCategory:\"cluster targeting modal\",eventAction:\"pop-up load\",eventLabel:\"header: \"+t+\"|cluster: \"+a+\"-\"+n});var o=document.getElementById(\"modalPopup\");o.classList.add(\"show\"),e(\".close\").unbind(\"click\"),e(\".close\").click((function(e){e.preventDefault(),i=0,o.classList.toggle(\"show\")}))}}))}).call(this,n(\"lTfz\"))},\"/LSp\":function(e,t,n){(function(e){!function(){var t=document.getElementById(\"positive-play-start-quiz\"),n=document.getElementById(\"positive-play-quiz-intro\"),a=document.getElementById(\"positive-play-quizNext\"),o=document.getElementById(\"positive-play-quiz-section\"),i=document.getElementById(\"positive-play-quizProgress\"),r=document.getElementById(\"positive-play-quizStep\"),s=document.getElementById(\"positive-play-quizStepProgress\"),l=document.getElementById(\"positive-play-quizResults\"),c=document.getElementById(\"positive-play-quizStartOver\"),d=document.querySelectorAll(\"[data-quizAdditionalInfo]\"),u=1,m=0;t&&(d.forEach((function(e){0===e.children.length&&e.closest(\".quiz-cta-right\").classList.add(\"d-none\")})),t.addEventListener(\"click\",(function(e){o.classList.remove(\"d-none\"),n.classList.add(\"d-none\"),m=0}))),a&&a.addEventListener(\"click\",(function(t){m+=parseInt(e(\".positive-play-quiz-set.active .positive-play-quiz-answer.active span\")[0].attributes[\"data-value\"].value),console.log(\"Answered question, total points now \".concat(m)),function(){a.setAttribute(\"disabled\",\"disabled\"),u++;var e=parseFloat(i.attributes[\"data-value\"].value),t=parseFloat(i.attributes[\"data-step\"].value);i.setAttribute(\"data-value\",e+t),i.style.left=(e+t).toString()+\"%\",r.innerHTML=u<10?\"0\"+u.toString():u.toString();var n=!1,c=document.querySelectorAll(\".positive-play-quiz-set\");if(c.length)for(var d=0;d=p&&m<=h)document.querySelectorAll(\"[data-bulletanswers]\").forEach((function(e){g(JSON.parse(e.dataset.bulletanswers))&&e.classList.remove(\"d-none\")})),y[d].classList.remove(\"d-none\")}l.scrollIntoView()}}(),o.scrollIntoView()})),c&&c.addEventListener(\"click\",(function(e){u=1,m=0,r.innerHTML=\"01\",document.querySelector(\"[data-selectedanswerskeys]\").dataset.selectedanswerskeys=\"[]\",i.setAttribute(\"data-value\",0),i.style.left=\"0%\",l.classList.add(\"d-none\"),a.classList.remove(\"d-none\"),i.classList.remove(\"d-none\"),s.classList.remove(\"d-none\"),o.classList.remove(\"d-none\");var t=document.querySelectorAll(\".positive-play-quiz-set\");document.querySelectorAll(\"[data-bulletanswers]\").forEach((function(e){e.classList.add(\"d-none\")})),document.querySelectorAll(\".quiz-cta-right\").forEach((function(e){e.classList.remove(\"d-none\")}));for(var n=0;n0){var t=new a.a(e.target,e.target.dataset.amount,{formattingFn:n});t.error?console.error(t.error):t.start(),o.unobserve(e.target)}}))}));e.forEach((function(e){o.observe(e)}))}}()},\"5Av8\":function(e,t,n){\"use strict\";(function(e){var t=n(\"L+tW\");function a(e,n){if(document.querySelector(e)){var a={items:2,center:!0,loop:!1,swipeAngle:!0,gutter:15,speed:400,nav:!1,navCurrent:!0,controlsPosition:\"bottom\",navPosition:\"bottom\",responsive:{},container:e},o=Object.assign(a,n);return Object(t.a)(o)}}a(\".hoosier-slides\",{loop:!0,items:1,controls:!0,nav:!0,autoplay:!e.hl_globals||!e.hl_globals.isEditMode,autoplayButton:!1,autoplayButtonOutput:!1,autoplayHoverPause:!0,mouseDrag:!0,navContainer:\".banner-controls\",responsive:{768:{controls:!1}}}),a(\".header-jackpot-slider\",{controls:!1,nav:!0,autoplay:!1,mouseDrag:!0,center:!0,items:1,preventScrollOnTouch:\"force\",responsive:{768:{disable:!0}}}),a(\".header-winning-numbers-slider\",{controls:!1,nav:!0,autoplay:!1,mouseDrag:!0,center:!0,items:1,responsive:{768:{disable:!0}}}),a(\".winner-spotlight-slider\",{responsive:{768:{items:3,center:!1}}}),a(\".more-games-slider\",{fixedWidth:300,responsive:{768:{disable:!0}}}),a(\".flipcards-csr-slider\",{fixedWidth:300,responsive:{768:{disable:!0}}}),a(\".player-stories-slider\",{fixedWidth:400,responsive:{768:{fixedWidth:450},950:{fixedWidth:500},1200:{fixedWidth:600}}}),a(\".how-hoosiers-play-slider\",{nav:!0,fixedWidth:280,gutter:10,responsive:{500:{fixedWidth:280},768:{fixedWidth:400}}}),a(\".where-to-buy-slider\",{controls:!0,responsive:{768:{disable:!0}}})}).call(this,n(\"yLpj\"))},\"7pmJ\":function(e,t,n){(function(e){document.getElementById(\"spend-calculator__game-selection\"),document.getElementById(\"spend-calculator__amount-frequency-section\"),document.getElementById(\"spend-calculator__calculations-section\"),document.getElementById(\"spend-calculator__game-selection-btn\"),document.getElementById(\"spend-calculator__amount-frequency-btn\");var t,n,a,o,i,r,s=document.querySelector(\".spend-calculator__accordion\"),l=(document.getElementById(\"spend-calculator__amount-input\"),document.getElementById(\"spend-calculator__frequency-dropdown-container\"),document.getElementById(\"spend-calculator__frequency-dropdown\"),document.getElementById(\"spend-calculator__amount-input\"),document.getElementById(\"spend-calculator\")),c=(document.getElementById(\"error-msg\"),document.getElementById(\"cost-amount-per-frequency\"),document.getElementById(\"cost-frequency\"),document.getElementById(\"cost-annually--one\"),document.getElementById(\"cost-annually--two\"),document.getElementById(\"expendature_chart\"),document.querySelector(\".spend-calculator__frequency-dropdown\")),d=document.querySelector(\"[data-frequencyContainer]\"),u=document.querySelector(\"[data-spendValue]\"),m=document.querySelector(\"[data-spendFrequency]\"),g=document.querySelector(\"[data-spendTotal]\"),v=document.querySelector(\"[data-mobileSpent]\"),f=document.querySelector(\"[data-mobileFrequency]\"),y=document.querySelector(\".spend-calculator__calculations-container\"),p=document.querySelector(\".spend-calculator__calculations-container--sticky\"),h=document.querySelector(\".spend-calculator__accordion-header\"),b=0,w=(document.querySelectorAll(\".range-wrap\"),document.querySelectorAll(\"[data-rangeContainer]\"));if(l){o=document.querySelector(\"#spend-calculator\").parentElement,i=document.createElement(\"div\"),r=\"spend-calculator__bg\",i.id=r,o.parentNode.insertBefore(i,o),i.appendChild(o);var E=function(e,t){var n=e.length>t?\"\".concat(e.substring(0,t),\"…\"):e,a=n.lastIndexOf(\",…\");return-1!==a&&(n=n.slice(0,a)+n.slice(a+1)),e.length>t?n:e};s.addEventListener(\"click\",(function(e){if(\"INPUT\"===e.target.nodeName||\"LABEL\"===e.target.nodeName||\"IMG\"===e.target.nodeName){e.stopPropagation(),console.log(e.target);var t=e.target;if(\"INPUT\"===t.nodeName){var n=t.dataset.gamename;if(document.querySelectorAll('input[type=\"checkbox\"]:checked').length>0){if(\"Select Games\"===h.innerText)h.innerText=\"\",h.innerText=\" \"+n;else{var a=document.querySelectorAll('input[type=\"checkbox\"]:checked').length;h.innerText=\"\",document.querySelectorAll('input[type=\"checkbox\"]:checked').forEach((function(e,t,n){a>1?Object.is(n.length-1,t)?h.innerText+=\" \"+e.dataset.gamename:h.innerText+=\" \"+e.dataset.gamename+\", \":h.innerText=e.dataset.gamename}))}window.innerWidth<768&&(truncatedText=E(h.innerText,window.innerWidth/10-10),h.innerText=truncatedText)}else h.innerText=\"Select Games\"}}document.querySelectorAll(\".spend-calculator__game-checkbox:checked\").length>0?s.classList.contains(\"contains-selection\")||s.classList.add(\"contains-selection\"):s.classList.contains(\"contains-selection\")&&s.classList.remove(\"contains-selection\")})),e(\"#collapseExample\").on(\"shown.bs.collapse\",(function(){dataLayer.push({event:\"spendcalc_selectgames\",eventCategory:\"Track Your Play\",eventAction:window.location.href,eventLabel:\"start\"})}));var L=function(e,t){var n=e.value,a=e.min?e.min:0,o=e.max?e.max:100,i=Number(100*(n-a)/(o-a));t.innerHTML=\"$\"+n,t.style.left=\"calc(\".concat(i,\"% + (\").concat(8-.15*i,\"px))\")},S=function(){document.querySelector(\".active-selection\")&&0!==document.querySelector(\".spend-calculator__numInput\").value&&void 0!==document.querySelector(\".spend-calculator__numInput\").value&&(a=function(e,t){var n=parseFloat(e.replace(/,/g,\"\"));\"daily\"===t.trim()?b=365*n:\"weekly\"===t.trim()?b=52*n:\"monthly\"===t.trim()&&(b=12*n),b;var a=b.toLocaleString(\"en-US\",{minimumFractionDigits:0,maximumFractionDigits:2});return\"NaN\"===a&&(a=0),dataLayer.push({event:\"spendcalc_frequency\",eventCategory:\"Track Your Play\",eventAction:window.location.href,eventLabel:\"frequency: \"+t.trim()}),a}(document.querySelector(\".spend-calculator__numInput\").value,document.querySelector(\".active-selection\").innerText.toLowerCase()),g.innerText=\"$\"+a+\" / year\",clearTimeout(n),n=setTimeout((function(){dataLayer.push({event:\"spendcalc_totalcost\",eventCategory:\"Track Your Play\",eventAction:window.location.href,eventLabel:\"total: \"+a})}),2e3))};c.addEventListener(\"click\",(function(t){var n=t.target;n.classList.contains(\"spend-calculator__frequency\")&&(document.querySelector(\".active-selection\")&&document.querySelector(\".active-selection\").classList.remove(\"active-selection\"),n.classList.add(\"active-selection\"),m.innerText=document.querySelector(\".active-selection\").innerText,f.innerText=document.querySelector(\".active-selection\").dataset.frequencyselection,S(),c.classList.contains(\"contains-selection\")||c.classList.add(\"contains-selection\")),window.innerWidth<768&&(d.classList.contains(\"show\")?c.classList.contains(\"open-dropdown\")&&c.classList.remove(\"open-dropdown\"):c.classList.contains(\"open-dropdown\")||c.classList.add(\"open-dropdown\"),e(\"[data-frequencyContainer]\").collapse(\"toggle\"))})),window.innerWidth>767&&d.classList.add(\"show\"),w.forEach((function(e){var n,a=e.querySelector('[type=\"range\"]');\"\"===e.nextElementSibling.dataset.rangeinput&&(n=e.nextElementSibling.querySelector('[type=\"number\"]'));var o=a.nextElementSibling,i=a.value/a.max*100;a.style.background=\"linear-gradient(to right, #CA2B38 0%, #CA2B38 \"+i+\"%, #B3B3B3 \"+i+\"%, #B3B3B3 100%)\",a.addEventListener(\"input\",(function(e){var i=e.target,r=i.value/i.max*100,s=\"\"===i.value?0:i.value;n.value=s,u.innerText=\"$\"+s,v.innerText=\"$\"+s,S(),clearTimeout(t),t=setTimeout((function(){dataLayer.push({event:\"spendcalc_spent\",eventCategory:\"Track Your Play\",eventAction:window.location.href,eventLabel:\"spent: \"+s})}),2e3),i.style.background=\"linear-gradient(to right, #CA2B38 0%, #CA2B38 \"+r+\"%, #B3B3B3 \"+r+\"%, #B3B3B3 100%)\",L(a,o)})),n.addEventListener(\"input\",(function(e){var t=e.target,i=t.value/a.max*100,r=\"\"===t.value?0:t.value;a.value=r,u.innerText=\"$\"+r,v.innerText=\"$\"+r,S(),a.style.background=\"linear-gradient(to right, #CA2B38 0%, #CA2B38 \"+i+\"%, #B3B3B3 \"+i+\"%, #B3B3B3 100%)\",L(a,o),n.classList.contains(\"contains-selection\")||n.classList.add(\"contains-selection\")})),n.addEventListener(\"keydown\",(function(e){e=e||window.event,this.value;var t=e.keyCode||e.which;return 8==t||46==t||37==t||39==t||(t>=96&&t<=105?(t-=48,isNaN(String.fromCharCode(t))?(e.preventDefault(),!1):void 0):void((t<48||t>57)&&e.preventDefault()))})),n.value=a.value,L(a,o)})),window.innerWidth>767&&(p.style.height=y.clientHeight+\"px\"),e(window).resize((function(){window.innerWidth>767?(p.style.height=y.clientHeight+\"px\",d.classList.contains(\"show\")||d.classList.add(\"show\"),c.classList.contains(\"open-dropdown\")&&c.classList.remove(\"open-dropdown\")):(truncatedText=E(h.innerText,window.innerWidth/10-10),h.innerText=truncatedText,p.hasAttribute(\"style\")&&p.removeAttribute(\"style\"),d.classList.contains(\"show\")&&d.classList.remove(\"show\"))}))}}).call(this,n(\"lTfz\"))},\"8AQD\":function(e,t,n){\"use strict\";n.r(t),function(e,t){n(\"NVCp\"),n(\"Es+0\"),n(\"gQ/v\"),n(\"K+Wz\");var a=n(\"vDqi\"),o=n.n(a),i=n(\"g1ah\"),r=n.n(i),s=n(\"yIlq\"),l=(n(\"bo8L\"),n(\"X2Dv\"),n(\"lTfz\")),c=(n(\"rIKr\"),n(\"29qN\"),n(\"fURP\"),n(\"bVBd\"),n(\"hwAo\"),n(\"TEza\")),d=(n(\"4h7t\"),n(\"5Av8\"),n(\"BA/w\"),n(\"YQIs\"),n(\"19Ef\"),n(\"i9rb\"),n(\"t0DJ\"),n(\"ypuH\"),n(\"16+c\"),n(\"BIdk\"),n(\"sROl\"),n(\"VkY5\"),n(\"/LSp\"),n(\"JCP8\"),n(\"7pmJ\"),n(\"/G4U\"),n(\"OkPH\"),n(\"hQX7\"),n(\"9M2l\"),n(\"lzys\"),n(\"LjkK\"),n(\"UkPI\"),n(\"aDNI\"),n(\"LLBP\"),n(\"caA9\"),n(\"UJNN\"),n(\"lQA5\"),n(\"astv\"),n(\"fZgY\"),n(\"cnbF\"),n(\"8I4G\"),n(\"L+tW\"),n(\"ouDc\")),u=n(\"cxd3\");!function(){if(\"no\"!=localStorage.getItem(\"needsCookieClear\")){for(var n=document.cookie.split(\";\"),a=0;a-1?i.substr(0,m):i;g.startsWith(\"_ga\")||g.startsWith(\"ab.storage\")||(document.cookie=g+\"=; expires=Thu, 01 Jan 1970 00:00:00 UTC; path=/;\")}localStorage.setItem(\"needsCookieClear\",\"no\"),window.location=window.location}e.hl_globals&&(o.a.defaults.baseURL=e.hl_globals.baseUrl);var v=document.querySelector(\"form#anti input\");v&&(o.a.defaults.headers.post[\"X-XSRF-TOKEN\"]=v.value,o.a.defaults.headers.common[\"X-Requested-With\"]=\"XMLHttpRequest\",t.ajaxSetup({headers:{\"X-XSRF-TOKEN\":v.value}})),Object(u.a)(),t.validator.setDefaults({ignore:\":hidden:not(.flatpickr-input.custom-datepicker)\"}),t(document).ajaxSuccess((function(){document.querySelectorAll(\"form\").forEach((function(e){t(e).removeData(\"validator\"),t(e).removeData(\"unobtrusiveValidation\"),t.validator.unobtrusive.parse(e)}))})),r.a.on(\"click\",\".tab-link\",(function(e){if(e.preventDefault(),window.FormState&&window.FormState.requiresConfirmation){if(!confirm(\"Changes you made may not be saved.\"))return;window.FormState.requiresConfirmation=!1}Object(c.a)(e.target,null,null,e.target.id.replace(\"tab\",\"tab-pane\"))})),s.a.requestLocation().then((function(e){return s.a.setLocationLabels(e)})).catch((function(e){return console.error(e)}));document.getElementById(\"notification-message\");var f=document.querySelectorAll(\".why-we-love-it-content ul li\"),y=document.querySelectorAll(\".app-drawers-mobile-content div\");if(f)for(a=0;a3&&(a=a.replace(a.split(\"/\")[3],\"\").slice(0,-1));var o=document.querySelector(\".news-menu--link[href*='\"+a+\"']\").innerText;e.href===window.location.origin+a&&(L.querySelector(\"span\").innerText=o,S[t].classList.add(\"active-menu-item\"))}}))}}var I=function(e){e.forEach((function(e){e.addEventListener(\"click\",(function(e){if(e.target.closest(\".news-item--listing\")){var t=e.target.closest(\".news-item--listing\").dataset.href;window.location=t}else if(e.target.closest(\".news-item\")){var n=e.target.closest(\".news-item\").dataset.href;window.location=n}else{var a=e.target.closest(\".related-article\").dataset.href;window.location=a}}))}))},k=document.querySelectorAll(\".news-item--listing\"),q=document.querySelectorAll(\".news-item:not(.news-item--listing)\"),D=document.querySelectorAll(\".related-article\");k&&I(k),q.length>0&&I(q),D&&I(D),document.querySelector(\".news-listing__filter-date\")&&flatpickr(\".news-listing__filter-date\",{maxDate:\"today\",dateFormat:\"m/d/Y\",allowInput:!0,disableMobile:\"true\",onChange:function(e,t,n){B(null)}});var T,A,x=[],C=0;T=document.querySelector(\"[data-totalcount]\"),A=T&&parseInt(document.querySelector(\"[data-totalcount]\").dataset.totalcount,10),T&&A>0&&(Math.floor(A/10)!==C?document.querySelector(\".see-more__container\").classList.contains(\"d-none\")&&document.querySelector(\".see-more__container\").classList.remove(\"d-none\"):document.querySelector(\".see-more__container\").classList.contains(\"d-none\")||document.querySelector(\".see-more__container\").classList.add(\"d-none\"));var _=function(e,t){t||e.length>0&&e.forEach((function(e){e.remove()}))},B=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=!t&&e&&String(e.dataset.filtercodename),a=window.location.pathname.split(\"/\")[2],i=document.querySelector(\".news-listing__filter-from\")?document.querySelector(\".news-listing__filter-from\").value:null,r=document.querySelector(\".news-listing__filter-to\")?document.querySelector(\".news-listing__filter-to\").value:null;return!t&&e&&(C=0,x.includes(n)?(x=x.filter((function(e){return e!==n})),e.classList.remove(\"active-filter\"),0===document.querySelectorAll(\".active-filter\").length&&document.querySelector('[data-filtercodename=\"\"]').classList.add(\"active-filter\")):(x.push(n),document.querySelector('.active-filter[data-filtercodename=\"\"]')&&document.querySelector('.active-filter[data-filtercodename=\"\"]').classList.remove(\"active-filter\"),\"\"===e.dataset.filtercodename&&(document.querySelectorAll(\".active-filter\").forEach((function(e){e.classList.remove(\"active-filter\")})),x=[]),e.classList.add(\"active-filter\"))),o.a.post(\"/hoosier-lottery-news/filter\",{NodeAliasPath:\"/hoosier-lottery-news/\"+a,PageIndex:C,PageSize:null==a||\"\"==a?6:10,Categories:x,FromDate:i,ToDate:r},{headers:{\"X-XSRF-TOKEN\":document.querySelector('input[name=\"__RequestVerificationToken\"]').value}}).then((function(e){dataLayer.push({event:\"News Listing Filtering\",eventCategory:\"n/a\",eventAction:\"n/a\",eventLabel:\"Filtering: \"+x}),i&&dataLayer.push({event:\"News Listing Filtering\",eventCategory:\"n/a\",eventAction:\"n/a\",eventLabel:\"Filtering Date From: \"+i}),r&&dataLayer.push({event:\"News Listing Filtering\",eventCategory:\"n/a\",eventAction:\"n/a\",eventLabel:\"Filtering Date To: \"+r});var n=document.querySelector(\".grid-column, .news-listing__container .row\"),o=document.querySelectorAll(\".news-item--listing\");_(o,t);var s=document.querySelector(\".loading-spinner__container--primary\"),l=document.querySelector(\".loading-spinner--primary\");s.classList.contains(\"active-spinner\")||s.classList.add(\"active-spinner\"),setTimeout((function(){l.classList.contains(\"active-spinner\")||l.classList.add(\"active-spinner\")}),100);var c=e.data.Articles,d=e.data.TotalRecords;c.length>0?setTimeout((function(){l.classList.contains(\"active-spinner\")&&l.classList.remove(\"active-spinner\"),s.classList.contains(\"active-spinner\")&&s.classList.remove(\"active-spinner\");var e=document.querySelectorAll(\".news-item--listing\");_(e,t);c.forEach((function(e){var t=e.CategoryDisplayName,o=e.Title,i=e.ArticleDateDisplay,r=e.EstimatedReadingTime,s=e.NodeAliasPath,l=e.TeaserText,c=e.ThumbnailImagePath;document.querySelector(\".no-results__title\")&&document.querySelector(\".no-results__title\").remove(),null==a||\"\"==a?(n.insertAdjacentHTML(\"beforeEnd\",'
\\n
\\n

').concat(t,'

\\n

').concat(o,'

\\n

').concat(l,' Read more

\\n

').concat(r,'

\\n

').concat(i,'

\\n \"\"\\n
\\n
'))):n.insertAdjacentHTML(\"beforeEnd\",'
\\n
\\n
\\n
\\n \"\"\\n
\\n Read More\\n
\\n
\\n
\\n
\\n

').concat(t,'

\\n

').concat(o,'

\\n

').concat(l,' Read more

\\n

').concat(r,'

\\n

').concat(i,\"

\\n
\\n
\\n
\"))})),null!=a&&\"\"!=a||(document.getElementById(\"finalCardBlock\").remove(),n.insertAdjacentHTML(\"beforeEnd\",'
 
')),Math.floor(d/10)!==C?document.querySelector(\".see-more__container\").classList.contains(\"d-none\")&&document.querySelector(\".see-more__container\").classList.remove(\"d-none\"):document.querySelector(\".see-more__container\").classList.contains(\"d-none\")||document.querySelector(\".see-more__container\").classList.add(\"d-none\"),I(document.querySelectorAll(\".news-item--new\"))}),500):setTimeout((function(){l.classList.contains(\"active-spinner\")&&l.classList.remove(\"active-spinner\"),s.classList.contains(\"active-spinner\")&&s.classList.remove(\"active-spinner\"),document.querySelector(\".no-results__title\")||n.insertAdjacentHTML(\"beforeEnd\",'

No results found

'),document.querySelector(\".see-more__container\").classList.add(\"d-none\")}),500)}))};document.querySelector(\".see-more__container #seeMoreArrow\")&&document.querySelector(\".see-more__container #seeMoreArrow\").addEventListener(\"click\",(function(){C++,B(null,!0)})),document.querySelector(\".news-listing__filter-btn\")&&document.querySelectorAll(\".news-listing__filter-btn\").forEach((function(e){e.addEventListener(\"click\",(function(t){B(e)}))}));var M=document.getElementById(\"nav-modile-btn\"),N=document.getElementById(\"mobile-nav\"),O=document.getElementById(\"mobile-nav-close-btn\"),P=document.getElementById(\"mobile-overlay\");M&&M.addEventListener(\"click\",(function(e){N.classList.add(\"active\"),P.classList.add(\"active-overlay\")})),O&&O.addEventListener(\"click\",(function(e){N.classList.remove(\"active\"),P.classList.remove(\"active-overlay\")})),P&&P.addEventListener(\"click\",(function(e){N.classList.remove(\"active\"),P.classList.remove(\"active-overlay\")}));var F=document.querySelectorAll(\"#search, #search-bar-trigger-mobile\"),j=document.getElementById(\"search-bar\");function R(){var e=document.querySelectorAll(\".section\"),t=new IntersectionObserver((function(e){e.forEach((function(e){e.intersectionRatio>0?e.target.style.animation=\"animate normal 1s forwards ease-in\":e.target.style.animation=\"none\"}))}));e.forEach((function(e){t.observe(e)}))}F&&F.forEach((function(e){e.addEventListener(\"click\",(function(e){this.classList.contains(\"active\")?(this.classList.remove(\"active\"),j.classList.remove(\"active\")):(this.classList.add(\"active\"),j.classList.add(\"active\"))}))})),window.addEventListener(\"DOMContentLoaded\",(function(){R();var e=document.getElementById(\"Story\");if(e){var t=document.getElementById(\"story-count\");t.innerHTML=\"Max 400 characters\",e.onkeyup=function(){t.innerHTML=\"Max \"+(400-this.value.length)+\"/400 characters\"}}var n=document.getElementById(\"drawer-content\");n&&n.querySelectorAll(\".panel-content\").forEach((function(e){var t=e.querySelectorAll(\".game\");t&&t.length>1&&(e.querySelector(\".noGamesListed\").style.display=\"none\")}));if(document.querySelectorAll(\".news-listing__filter-btn span\").length>0){var a=window.location.search.split(\"&\"),o=[];a.length>0&&(a.forEach((function(e){o.push(decodeURI(e.replace(\"?\",\"\")))})),document.querySelectorAll(\".news-listing__filter-btn span\").forEach((function(e){o.includes(e.innerText)&&(console.log(e.parentElement),e.parentElement.click())})))}}));var z=document.querySelectorAll(\".hoosier-slides .slide-content .slide-content-btn\"),H=document.querySelectorAll(\".hoosier-slides .tns-item\");z&&(z.forEach((function(e){for(var t=e.parentElement;!t.classList.contains(\"slide-content\")&&null!=t.parentElement;)t=t.parentElement;t&&t.addEventListener(\"click\",(function(t){e.click()}))})),H.forEach((function(e){var t=e.querySelector(\".slide-content-btn\");t&&e.addEventListener(\"click\",(function(e){t.click()}))}))),window.addEventListener(\"ajaxSuccessCallback\",(function(){R()}));var Y=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=0;document.querySelectorAll(e).forEach((function(e,a){t&&(e.style.height=\"\");var o=e.clientHeight;o>n&&(n=o)})),document.querySelectorAll(e).forEach((function(e){e.style.height=n+\"px\"}))};if(document.querySelector(\".glide--content-hub\")){var U,W=!1,G=new d.d(\".glide--content-hub\",{type:\"carousel\",focusAt:\"center\",perView:1,gap:10,peek:35,breakpoints:{6e3:{perView:3,peek:100},2700:{perView:3,peek:100},1942:{perView:2,peek:5},992:{perView:3,peek:50},768:{perView:2,peek:30},540:{perView:1,peek:35}}});window.addEventListener(\"load\",(function(e){var t=document.querySelectorAll(\".content-hub__slide-inner\").length,n=[];document.querySelectorAll(\".content-hub__slide-inner\").forEach((function(e){var t=e.querySelector(\".content-hub__img\"),a=t.complete&&0!==t.naturalHeight;a&&n.push(a)})),t===n.length&&(Y(\".content-hub__slide-inner\",!0),document.querySelector(\".glide--content-hub\").classList.contains(\"active-slider\")||document.querySelector(\".glide--content-hub\").classList.add(\"active-slider\"))})),G.on(\"build.after\",(function(){if(document.querySelector(\".glide--content-hub\")){var e=document.querySelector(\".glide__arrow--prev\"),t=document.querySelector(\".glide__arrow--next\");e.addEventListener(\"click\",(function(){G.go(\"<\")})),t.addEventListener(\"click\",(function(){G.go(\">\")}))}})),G.on([\"mount.before\"],(function(e){if(!W){document.querySelector(G.selector).querySelectorAll(\".glide__bullets\")[0].innerHTML=\"\";var t=document.querySelector(G.selector).querySelectorAll(\".glide__bullets\")[0];U=document.querySelectorAll(\".glide__slide\").length,W=!0;for(var n=0;n=900?X&&(Z.destroy(),Z.disable(),X=!1):X||(Z.mount({Controls:d.b,Swipe:d.c,Breakpoints:d.a}),Z.enable()),Z.on(\"resize\",(function(){window.innerWidth>=900?X&&(Z.destroy(),Z.disable(),X=!1):X||(Z.mount({Controls:d.b,Swipe:d.c,Breakpoints:d.a}),Z.enable())})),window.addEventListener(\"resize\",(function(e){window.innerWidth<900&&(X||(Z.mount({Controls:d.b,Swipe:d.c,Breakpoints:d.a}),Z.enable()))}),!0)}if(document.querySelector(\"#cashpop__time\")){var K=document.querySelector(\"#cashpop__time\").innerText.split(\"\\n\");document.querySelector(\"#cashpop__time\").innerText=K[1]+\" \"+K[2]+\",\"}}()}.call(this,n(\"yLpj\"),n(\"lTfz\"))},\"8I4G\":function(e,t,n){(function(e){window.addEventListener(\"DOMContentLoaded\",(function(){document.querySelector(\"body\").classList.contains(\"scratch-off-stats\")&&e(\"#scratch-off-stats-submit\").click((function(){var t=e(\"#SelectedPricePoint :selected\").val(),n=e(\"#SelectedWinningsRange :selected\").val();window.location.pathname=\"/games/scratch-off/\"+t+\"/\"+n+\"/scratch-off-stats\"}))}))}).call(this,n(\"lTfz\"))},\"9M2l\":function(e,t){window.addEventListener(\"DOMContentLoaded\",(function(){if(document.querySelector(\"body\").classList.contains(\"home\")){var e=document.querySelectorAll(\"a.drawer\");if(e)for(var t=0;t0&&M0&&void 0!==arguments[0]&&arguments[0],n=a.a.get(\"hl-login\"),o=n?JSON.parse(n):{authenticated:!1},i=!1;if(o.authenticated){console.log(\"authenticated\");var r=e(\"#Sweepstakes_BrazeId\").val(),s=new Date(Date.now()).toISOString(),l={SweepstakesId:r,EntryDate:s};e.ajax({url:\"/widgetaction/checkuserentrystatus/\",type:\"POST\",headers:{\"X-XSRF-TOKEN\":document.getElementsByName(\"__RequestVerificationToken\")[0].value},data:JSON.stringify(l),dataType:\"json\",contentType:\"application/json; charset=utf-8\",error:function(n){console.log(n),t&&e(\"#sweepstakesError\").show()},success:function(e){console.log(\"result: \"+e),\"entered\"==e&&(i=!0)},async:!1,processData:!1})}return console.log(\"entry output: \"+i),i}document.addEventListener(\"DOMContentLoaded\",(function(){if(document.querySelector(\"body\").classList.contains(\"sweepstakes-landing\")||document.querySelector(\"body\").classList.contains(\"campaign-landing\")){e(\"#sweepstakesEntry\").hide(),e(\"#sweepstakesError\").hide(),e(\"#sweepstakesThankYou\").hide(),e(\"#sweepstakesEntered\").hide(),1==o()?(e(\"#sweepstakesEntered\").show(),e(\"#sweepstakesStart\").hide()):(e(\"#sweepstakesEntered\").hide(),e(\"#sweepstakesStart\").show()),e(\".close\").unbind(\"click\"),e(\".close\").click((function(t){t.preventDefault(),e(\"#sweepstakesStart\").show(),e(\"#sweepstakesEntry\").hide()}));var t=e(\"#sweepstakesAgreement\").is(\":checked\"),n=!e(\"#sweepstakesResident\").length||e(\"#sweepstakesResident\").is(\":checked\");e(\"#sweepstakesAgreement\").unbind(\"click\"),e(\"#sweepstakesAgreement\").click((function(a){t=e(\"#sweepstakesAgreement\").is(\":checked\"),n=!e(\"#sweepstakesResident\").length||e(\"#sweepstakesResident\").is(\":checked\"),t&&n?e(\"#enterSweepstakesAjax\").prop(\"disabled\",!1):e(\"#enterSweepstakesAjax\").prop(\"disabled\",!0)})),e(\"#sweepstakesResident\").unbind(\"click\"),e(\"#sweepstakesResident\").click((function(a){n=e(\"#sweepstakesResident\").is(\":checked\"),(t=e(\"#sweepstakesAgreement\").is(\":checked\"))&&n?e(\"#enterSweepstakesAjax\").prop(\"disabled\",!1):e(\"#enterSweepstakesAjax\").prop(\"disabled\",!0)})),e(\"#enterSweepstakes\").unbind(\"click\"),e(\"#enterSweepstakes\").click((function(t){if(1==o(!0))e(\"#sweepstakesStart\").hide(),e(\"#sweepstakesEntry\").hide(),e(\"#sweepstakesError\").hide(),e(\"#sweepstakesEntered\").show();else{var n=a.a.get(\"hl-login\"),i=n?JSON.parse(n):{authenticated:!1};i.authenticated&&(e(\"#sweepstakesFirstName\").text(i.firstName),e(\"#sweepstakesFirstNameSpan\").text(i.firstName),e(\"#sweepstakesLastName\").text(i.lastName),e(\"#sweepstakesEmail\").text(i.email),e(\"#sweepstakesDOB\").text(i.dob.substring(5,7).concat(\"-\",i.dob.substring(8,10),\"-\",i.dob.substring(0,4))),e(\"#sweepstakesPhoneNumber\").text(i.phoneNumber.substring(0,3).concat(\"-\",i.phoneNumber.substring(3,6),\"-\",i.phoneNumber.substring(6,10)))),e(\"#sweepstakesStart\").hide(),e(\"#sweepstakesEntry\").show(),e(\"#sweepstakesError\").hide(),e(\"#sweepstakesEntered\").hide()}})),e(\"#enterSweepstakesAjax\").unbind(\"click\"),e(\"#enterSweepstakesAjax\").click((function(t){var n=a.a.get(\"hl-login\");if((n?JSON.parse(n):{authenticated:!1}).authenticated){var o={SweepstakesId:e(\"#Sweepstakes_BrazeId\").val(),EntryDate:new Date(Date.now()).toISOString()};e.ajax({url:\"/widgetaction/submitusertrack/\",type:\"POST\",headers:{\"X-XSRF-TOKEN\":document.getElementsByName(\"__RequestVerificationToken\")[0].value},data:JSON.stringify(o),dataType:\"json\",contentType:\"application/json; charset=utf-8\",error:function(t){console.log(t),e(\"#sweepstakesError\").show()},success:function(t){e(\"#sweepstakesEntry\").hide(),e(\"#sweepstakesError\").hide(),e(\"#sweepstakesThankYou\").show();var n=window.location.pathname;return dataLayer.push({event:n+\" Promotion Entry\",eventCategory:\"N/A\",eventAction:\"N/A\",eventLabel:n+\" Successful Entry\"}),!0},async:!0,processData:!1})}}))}})),window.addEventListener(\"user-authenticated\",(function(t){setTimeout((function(){1==o()?(e(\"#sweepstakesEntered\").show(),e(\"#sweepstakesStart\").hide()):(e(\"#sweepstakesEntered\").hide(),e(\"#sweepstakesStart\").show())}),500)}))}).call(this,n(\"lTfz\"))},LLBP:function(e,t,n){\"use strict\";var a=n(\"I9E9\"),o=n.n(a),i=n(\"WFwx\");window.addEventListener(\"DOMContentLoaded\",(function(){if(document.querySelector(\"body\").classList.contains(\"sign-in\")){var e=document.getElementById(\"sign-in-form\");e&&window.addEventListener(\"ajaxSuccessCallback\",(function(t){var n=document.getElementById(\"account-confirmation-form\");if(!n||t.detail!==n.id&&t.detail!==e.id)(\"verify-text-form\"===t.detail||\"textVerificationSuccess\"==t.detail)&&Object(i.a)();else{o()().mask(n.querySelectorAll(\"input\"));var a=n.querySelectorAll('input[type=\"radio\"]'),r=document.getElementById(\"account-confirmation-change-info\"),s=document.getElementById(\"account-confirmation-current-email\"),l=document.getElementById(\"account-confirmation-current-phone\"),c=document.getElementById(\"account-confirmation-change-email\"),d=document.getElementById(\"account-confirmation-new-email\"),u=document.getElementById(\"account-confirmation-keep-email\"),m=document.getElementById(\"account-confirmation-change-phone\"),g=document.getElementById(\"account-confirmation-keep-phone\"),v=document.getElementById(\"account-confirmation-new-phone\");a.forEach((function(e){e.addEventListener(\"change\",(function(){r.style.display=\"none\",v.style.display=\"none\",d.style.display=\"none\",u.style.display=\"none\",g.style.display=\"none\",c.style.display=\"\",m.style.display=\"\",s.style.display=\"\",l.style.display=\"\",document.getElementById(\"NewEmail\").value=\"\",document.getElementById(\"NewPhoneNumber\").value=\"\",a.forEach((function(e){e.checked=!1})),this.checked=!0}))})),c.addEventListener(\"click\",(function(e){e.preventDefault(),this.style.display=\"none\",s.style.display=\"none\",g.style.display=\"none\",m.style.display=\"\",r.style.display=\"\",v.style.display=\"none\",d.style.display=\"\",u.style.display=\"\",l.style.display=\"\",document.getElementById(\"ConfirmByEmail\").checked=!0,document.getElementById(\"ConfirmByText\").checked=!1,document.getElementById(\"NewPhoneNumber\").value=\"\"})),m.addEventListener(\"click\",(function(e){e.preventDefault(),this.style.display=\"none\",l.style.display=\"none\",u.style.display=\"none\",c.style.display=\"\",r.style.display=\"\",d.style.display=\"none\",v.style.display=\"\",g.style.display=\"\",s.style.display=\"\",document.getElementById(\"ConfirmByText\").checked=!0,document.getElementById(\"ConfirmByEmail\").checked=!1,document.getElementById(\"NewEmail\").value=\"\"})),u.addEventListener(\"click\",(function(e){e.preventDefault(),this.style.display=\"none\",c.style.display=\"\",r.style.display=\"none\",v.style.display=\"none\",d.style.display=\"none\",s.style.display=\"\",document.getElementById(\"NewEmail\").value=\"\"})),g.addEventListener(\"click\",(function(e){e.preventDefault(),this.style.display=\"none\",m.style.display=\"\",r.style.display=\"none\",v.style.display=\"none\",d.style.display=\"none\",l.style.display=\"\",document.getElementById(\"NewPhoneNumber\").value=\"\"}))}}))}}))},LjkK:function(e,t){window.addEventListener(\"DOMContentLoaded\",(function(){var e=document.querySelector(\"body\").classList;if(e.contains(\"scratch-index\")||e.contains(\"fast-index\")){var t=document.querySelectorAll('[data-arrow]:not([data-arrow=\"seeMoreArrow-desktop\"])'),n=document.querySelectorAll('[data-arrow=\"seeMoreArrow-desktop\"]');document.querySelectorAll(\"[data-arrow]\").forEach((function(e){return e.addEventListener(\"click\",(function(){w(!1)}))}));var a=document.getElementById(\"mobile-sort-trigger\"),o=document.getElementById(\"mobile-sort-trigger-panel\"),i=document.getElementById(\"mobile-filter-trigger\"),r=document.querySelectorAll(\".mobile-filter-trigger-panel\");a&&a.addEventListener(\"click\",(function(e){this.classList.contains(\"active\")?(o.classList.remove(\"active\"),this.classList.remove(\"active\")):(this.classList.add(\"active\"),o.classList.add(\"active\"))})),i&&i.addEventListener(\"click\",(function(e){if(this.classList.contains(\"active\")){for(t=0;t1)&&(u+=\"$\".concat(f.join(\", $\")),f.includes(parseInt(e.dataset.price))||e.classList.remove(\"filtered\")),m&&m.checked&&(u+=\" 2nd Chance\",\"true\"!==e.dataset.secondChance&&e.classList.remove(\"filtered\")),g&&\"\"!==g.value&&(u+=\" \".concat(g.value),e.dataset.playType.split(\"|\").includes(g.value)||e.classList.remove(\"filtered\"))})),b=y.querySelectorAll(\".filtered\")),h+=8;var a=1;b.forEach((function(e){a<=h&&e.classList.remove(\"d-none\"),a+=1})),document.getElementById(\"filterTitle\").innerHTML=\"\".concat(u?u.trim():\"All\",\" \").concat(document.getElementById(\"filterTitle\").dataset.gameTitle),t.forEach((function(e){return e.classList.toggle(\"d-none\",h>=b.length)})),n.forEach((function(e){e.classList.toggle(\"d-none\",h>=b.length),e.classList.remove(\"d-md-block\",h>=b.length)}));for(var o=document.getElementsByClassName(\"noFilterResults\"),i=0;i0)};v&&v.addEventListener(\"change\",(function(){if(!(p.length<=0)){var e=this.options[this.selectedIndex].value,t=p[0].parentElement;t.innerHTML=\"\";var n=Array.prototype.slice.call(p,0),a=!1;e.startsWith(\"-\")&&(a=!0,e=e.substring(1)),n.sort((function(t,n){return\"name\"===e?t.dataset[e]>n.dataset[e]?1:t.dataset[e]1&&(t.classList.remove(\"click-bubble-active\"),f=f.filter((function(e){return e>=0})))),w(!0)})),document.querySelectorAll(\"a.tab-link\").forEach((function(e){e.addEventListener(\"click\",(function(e){e.preventDefault(),\"tab-pane-0\"==y.id?(document.querySelectorAll(\"[data-mask='0'], [data-mask='2']\").forEach((function(e){return e.classList.remove(\"d-none\")})),document.querySelectorAll(\"[data-mask='1']\").forEach((function(e){return e.classList.add(\"d-none\")}))):(document.querySelectorAll(\"[data-mask='0'], [data-mask='1']\").forEach((function(e){return e.classList.remove(\"d-none\")})),document.querySelectorAll(\"[data-mask='2']\").forEach((function(e){return e.classList.add(\"d-none\")}))),v.selectedIndex=\"0\",g.selectedIndex=\"0\",m&&(m.checked=!1),document.getElementById(\"filterAmounts\").querySelectorAll(\"li.click-bubble-active\").forEach((function(e){e.classList.remove(\"click-bubble-active\")})),document.getElementById(\"amountFilterAll\").classList.add(\"click-bubble-active\"),f=[-1],y=document.querySelector(\".tab-pane.active\"),p=y.querySelectorAll(\".game\"),w(!0)}))})),w(!0)}}))},N4pW:function(e,t,n){\"use strict\";n.d(t,\"a\",(function(){return o}));var a=function(e){var t=e.key,n=e.keyCode;return 8===n||46===n||37===n||39===n||9===n||16===n||!isNaN(parseFloat(t))&&isFinite(t)},o=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:\".check-number\",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:\".check-number-bonus\",n=document.querySelectorAll(e),o=document.querySelectorAll(t);n.forEach((function(e){e.addEventListener(\"keydown\",(function(e){if(!a(e))return e.preventDefault(),!1}))})),o.forEach((function(e){e.addEventListener(\"keydown\",(function(e){if(!a(e))return e.preventDefault(),!1}))}))}},NVCp:function(e,t,n){},NuWd:function(e,t,n){\"use strict\";n.d(t,\"c\",(function(){return l})),n.d(t,\"a\",(function(){return c})),n.d(t,\"b\",(function(){return d}));var a=n(\"Wgwc\"),o=n.n(a),i=n(\"a1gY\"),r=n.n(i);r.a.validators.presence.allowEmpty=!1,r.a.validators.oneRequiredSelected=function(e,t,n,a){if(t.presence&&r.a.isArray(t.elementNames)){var o=[];if(t.elementNames.forEach((function(e){o.push(document.querySelector('[name=\"'.concat(e,'\"]')).checked)})),!o.some((function(e){return e})))return t.message||\"must have at least one selected\"}},r.a.validators.requiredIfTrue=function(e,t){if(!document.querySelector('[name=\"'.concat(t.elementName,'\"]')).checked&&!r.a.isDefined(e))return t.message||\"is required\"},r.a.validators.customPresence=function(e,t,n){var a=document.querySelector('input[name=\"'.concat(n,'\"]'));if(a)return a.inputmask&&(e=a.inputmask.unmaskedvalue()),r.a.validators.presence(e,{allowEmpty:!1,message:t.message})},r.a.extend(r.a.validators.datetime,{parse:function(e,t){var n=t.dateOnly?\"MM/DD/YYYY\":\"MM/DD/YYYY hh:mm:ss\";return o()(e,n).unix()},format:function(e,t){var n=t.dateOnly?\"MM/DD/YYYY\":\"MM/DD/YYYY hh:mm:ss\";return o()(e).format(n)}});var s={login:{loginModalUser:{customPresence:{message:\"^Please enter your email address.\"},email:{message:\"^Please enter a valid email address.\"}},loginModalPassword:{customPresence:{message:\"^Please enter a valid password.\"},length:{minimum:6,message:\"^Please enter a valid password.\"}}},registrationStepOne:{firstName:{customPresence:{message:\"^This is a required field.\"},format:{pattern:/^(?! )[A-Za-z]{1,}([-,.'][A-Za-z]*){0,1}(?0&&a.includes(e.getDay())}}).call(this,n(\"lTfz\"),n(\"yLpj\"))},TEza:function(e,t,n){\"use strict\";t.a=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:function(){},a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null,o=e.parentNode.parentNode.querySelector(\".active\"),i=document.querySelector(\"[data-mobiletab='\".concat(a,\"']\"));o.classList.remove(\"active\"),o.setAttribute(\"aria-selected\",!1),document.getElementById(o.getAttribute(\"aria-controls\")).classList.remove(\"active\"),document.getElementById(o.getAttribute(\"aria-controls\")).classList.remove(\"generic-accordion-active\"),e.classList.add(\"active\"),e.setAttribute(\"aria-selected\",!0),document.getElementById(e.getAttribute(\"aria-controls\")).classList.add(\"active\"),document.getElementById(e.getAttribute(\"aria-controls\")).classList.add(\"generic-accordion-active\"),document.querySelector('.active[data-mobiletab=\"'.concat(o.id.replace(\"tab\",\"tab-pane\"),'\"]'))&&document.querySelector('.active[data-mobiletab=\"'.concat(o.id.replace(\"tab\",\"tab-pane\"),'\"]')).classList.remove(\"active\"),i&&i.classList.add(\"active\"),t&&t.classList.add(\"active\"),n&&n()}},UJNN:function(e,t,n){(function(e){if(document.querySelector(\".team-usa\")){var t=document.querySelector(\"body\"),n=new MutationObserver((function(e){window.location=window.location.href+\"?playnow\"}));document.querySelector(\"[data-brazeplay]\").addEventListener(\"click\",(function(t){t.stopImmediatePropagation(),t.preventDefault(),e.hl_globals.username&&(window.location=t.target.dataset.href+\"?guid=\"+e.hl_globals.username)})),window.location.href.indexOf(\"playnow\")>-1&&document.querySelector(\"[data-brazeplay]\").click(),document.querySelectorAll(\"[data-playnow]\").forEach((function(e){e.addEventListener(\"click\",(function(e){n.observe(t,{attributes:!0,attributeFilter:[\"class\"],childList:!1,characterData:!1})}))}))}}).call(this,n(\"yLpj\"))},UkPI:function(e,t,n){(function(e){window.addEventListener(\"DOMContentLoaded\",(function(){if(document.querySelector(\"body\").classList.contains(\"events-promotions\")){var t=function(){var e=document.getElementById(\"eventsSearchForm\"),t=document.querySelectorAll(\".see-more\");parseInt(e.dataset.currentPage,10)=4&&e.classList.contains(\"d-none\")&&e.remove()})):u.forEach((function(e){e.classList.contains(\"d-none\")&&e.remove()}))):u.forEach((function(e){o<4?o++:(e.classList.add(\"d-none\"),e.remove())})),o&&document.querySelector(\".noGamesListed\").classList.add(\"d-none\"),document.getElementById(\"quizResults\").classList.remove(\"d-none\"),n.classList.add(\"d-none\"),a.classList.add(\"d-none\"),s.classList.add(\"d-none\"))}e&&e.addEventListener(\"click\",(function(e){o.classList.remove(\"d-none\"),t.classList.add(\"d-none\")})),n&&n.addEventListener(\"click\",(function(e){u(),o.scrollIntoView()})),a&&a.addEventListener(\"click\",(function(e){u(),o.scrollIntoView()})),document.querySelectorAll(\".game-quiz-answer\").forEach((function(e){e.addEventListener(\"click\",(function(){var e=function e(t,n){return t.parentElement.classList.contains(n)?t.parentElement:e(t.parentElement,n)}(this,\"game-quiz-set\");this.classList.contains(\"only-one\")?this.classList.contains(\"active\")?this.classList.toggle(\"active\",!1):(e.querySelectorAll(\".game-quiz-answer\").forEach((function(e){e.classList.toggle(\"active\",!1)})),this.classList.toggle(\"active\",!0)):this.classList.toggle(\"active\"),0==e.querySelectorAll(\".active\").length?n.setAttribute(\"disabled\",\"disabled\"):n.removeAttribute(\"disabled\")}))}))}()},WFwx:function(e,t,n){\"use strict\";(function(e){n.d(t,\"a\",(function(){return i}));var a=n(\"p46w\"),o=n.n(a);function i(){var t=o.a.get(\"hl-login\"),n=t?JSON.parse(t):{authenticated:!1};if(document.querySelectorAll(\".auth-logged-in\").forEach((function(e){e.classList.toggle(\"d-none\",!n.authenticated)})),document.querySelectorAll(\".auth-logged-out\").forEach((function(e){e.classList.toggle(\"d-none\",n.authenticated)})),n.authenticated){var a=document.querySelectorAll(\".headerProfile\");a&&a.length&&a.forEach((function(e){return e.innerHTML=n.fullName}));var i=e(\"#Sweepstakes_BrazeId\").val();if(i){var r=o.a.get(\"sweepstakes-brazeid\"),s=r?r.split(\"|\"):\"|\";i==s[0]&&n.email==s[1]&&(e(\"#sweepstakesClosed\").length?(e(\"#sweepstakesStart\").hide(),e(\"#sweepstakesClosed\").show(),e(\"#sweepstakesEntered\").hide()):(e(\"#sweepstakesStart\").hide(),e(\"#sweepstakesClosed\").hide(),e(\"#sweepstakesEntered\").show()))}}}}).call(this,n(\"lTfz\"))},WoD0:function(e,t,n){\"use strict\";(function(e){function a(t,n){var a=t.parentElement.children.length;a>1&&(n=a);var o=t.cloneNode(!0),i=o.childNodes;e.each(i,(function(e,t){\"H2\"===t.nodeName&&(t.innerText=n+1),t.value=\"\"})),o.id=\"check-number-row\"+ ++n,t.parentNode.appendChild(o)}n.d(t,\"a\",(function(){return a}))}).call(this,n(\"lTfz\"))},YQIs:function(e,t,n){\"use strict\";n.d(t,\"a\",(function(){return s}));var a=function(e){setTimeout((function(){e.classList.contains(\"active-screen\")&&(e.classList.remove(\"active-screen\"),e.classList.add(\"inactive-screen\")),e.classList.contains(\"transitioning-screen\")&&e.classList.remove(\"transitioning-screen\"),e.classList.contains(\"transitioning-out\")&&e.classList.remove(\"transitioning-out\")}),510)},o=function(e){setTimeout((function(){e.classList.contains(\"inactive-screen\")&&(e.classList.remove(\"inactive-screen\"),e.classList.add(\"active-screen\")),e.classList.contains(\"transitioning-screen\")&&e.classList.remove(\"transitioning-screen\"),e.classList.contains(\"transitioning-in\")&&e.classList.remove(\"transitioning-in\")}),510)},i=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];t.classList.contains(\"inactive-screen\")&&setTimeout((function(){t.classList.add(\"transitioning-screen\"),t.classList.add(\"transitioning-in\"),n&&setTimeout(r(e,t),510),o(t)}),100)},r=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];e.classList.contains(\"active-screen\")&&(e.classList.add(\"transitioning-screen\"),e.classList.add(\"transitioning-out\"),n&&setTimeout(i(e,t),510),a(e))},s=function(e,t){t&&e&&r(e,t,!0)}},aDNI:function(e,t,n){\"use strict\";(function(e){var t=n(\"I9E9\"),a=n.n(t),o=n(\"WFwx\"),i=n(\"cxd3\");window.addEventListener(\"DOMContentLoaded\",(function(){if(document.querySelector(\"body\").classList.contains(\"register\")){var t=document.getElementById(\"registrationForm\");if(t){var n=function(){var e=document.getElementById(\"confirmationType-container\");if(e){var t=e.querySelectorAll('input[type=\"radio\"]');t.forEach((function(e){e.addEventListener(\"click\",(function(){t.forEach((function(e){return e.checked=!1})),this.checked=!0}))}))}};document.getElementById(\"GaClientIdArray\").value=Object(i.b)();var r=function(e){e&&(document.getElementById(\"Recaptcha\").value=e)},s=function(){var t=document.getElementById(\"g-recaptcha-register\");e.grecaptcha&&t&&e.grecaptcha.render(\"g-recaptcha-register\",{sitekey:e.hl_globals.google.recaptcha_sitekey,callback:r})};n(),a()().mask(t.querySelectorAll(\"input\")),document.onreadystatechange=function(){\"complete\"===document.readyState&&s()},window.addEventListener(\"ajaxSuccessCallback\",(function(e){var t=document.getElementById(\"registrationForm\");t&&e.detail===t.id?(s(),t.querySelector(\"#Recaptcha\").value=null,a()().mask(t.querySelectorAll(\"input\")),n()):\"verify-text-form\"===e.detail&&Object(o.a)(),\"textVerificationSuccess\"==e.detail&&Object(o.a)();var i=!0;\"undefined\"!=typeof wasEmailViaTextVerified&&(i=!1),document.querySelectorAll(\"input[class*=input-validation-error]\").length<1&&i&&dataLayer.push({event:\"mylottery registration 2\",eventCategory:\"n/a\",eventAction:\"n/a\",eventLabel:\"Registration Step: Registration Data Passed\",\"myLOTTERY Registration Source\":\"App\"})}))}}}))}).call(this,n(\"yLpj\"))},astv:function(e,t,n){\"use strict\";(function(e,t,a){n(\"K+Wz\");var o=n(\"QDxW\");n(\"X2Dv\");var i=function(){var e=document.getElementById(\"SelectedGame\"),t=e.options[e.selectedIndex].text;dataLayer.push({event:\"past draw game results\",eventCategory:\"pdgr\",eventAction:\"n/a\",eventLabel:\"Selected Game: \"+t})};window.addEventListener(\"DOMContentLoaded\",(function(){if(document.querySelector(\"body\").classList.contains(\"past-draw-results\")){document.getElementById(\"form-pastgameresults\")&&document.getElementById(\"form-pastgameresults\").addEventListener(\"submit\",i);var n=function(t,n,a,o){var i=e(\"#form-pastgameresults\").validate();if(\"\"===n&&l){var r=(new Date).fp_incr(-180);o?(i.element(\"#StartDrawingDate\"),u.setDate(r,!1),document.getElementById(\"minDateWarningStart\").classList.remove(\"d-none\"),document.getElementById(\"minDateWarningStart\").classList.add(\"fade-in\"),setTimeout((function(){document.getElementById(\"minDateWarningStart\").classList.remove(\"fade-in\")}),15e3),setTimeout((function(){document.getElementById(\"minDateWarningStart\").classList.add(\"d-none\"),l=!0}),15500)):(m.setDate(r,!1),document.getElementById(\"minDateWarningEnd\").classList.remove(\"d-none\"),document.getElementById(\"minDateWarningEnd\").classList.add(\"fade-in\"),setTimeout((function(){document.getElementById(\"minDateWarningEnd\").classList.remove(\"fade-in\")}),15e3),setTimeout((function(){document.getElementById(\"minDateWarningEnd\").classList.add(\"d-none\"),l=!0}),15500))}},r=t(\".custom-datepicker\");r.each((function(t){e(this).bind(\"keyup\",\"keydown\",(function(e){if(8!==e.which){var t=r.val().length;if(2===t||5===t){var n=r.val();n+=\"/\",r.val(n)}}else console.log(\"fail\")}))}));var s=function(t){e(t).bind(\"keyup\",\"keydown\",(function(t){if(8!==t.which){var n=e(this).val().length;if(2===n||5===n){var a=e(this).val();a+=\"/\",e(this).val(a)}}}))},l=!0,c={altInput:!0,altFormat:\"m/d/Y\",allowInput:!0,maxDate:\"today\",minDate:(new Date).fp_incr(-180),disableMobile:\"true\",defaultDate:null,onChange:function(e,t,n){\"\"!==t&&(l=!1,m.set(\"minDate\",t))},onValueUpdate:function(e,t,a){n(0,t,0,!0)},onDayCreate:function(e,t,n,a){var i=document.getElementById(\"SelectedGame\"),r=i.options[i.selectedIndex].text,s=a.dateObj.getTime(),l=a.dateObj.getDay();\"Powerball\"===r?(new Date(\"08/23/2021 00:00:00\").getTime()>s&&1===l||Object(o.a)(a.dateObj))&&(a.className+=\" non-gameday-dates\"):Object(o.a)(a.dateObj)&&(a.className+=\" non-gameday-dates\")},onReady:function(t,n,a,o){s(e(\".custom-datepicker\")[1])},locale:{firstDayOfWeek:0}},d={altInput:!0,altFormat:\"m/d/Y\",allowInput:!0,minDate:\"\"!==e(\"#StartDrawingDate\").attr(\"value\")?e(\"#StartDrawingDate\").attr(\"value\"):(new Date).fp_incr(-180),maxDate:\"today\",disableMobile:\"true\",defaultDate:null,onChange:function(e,t,n){var a=\"\"===t?\"today\":t;\"\"!==t&&(l=!1,u.set(\"maxDate\",a))},onValueUpdate:function(e,t,a){n(0,t,0,!1)},onDayCreate:function(e,t,n,a){var i=document.getElementById(\"SelectedGame\"),r=i.options[i.selectedIndex].text,s=a.dateObj.getTime(),l=a.dateObj.getDay();\"Powerball\"===r?(new Date(\"08/23/2021 00:00:00\").getTime()>s&&1===l||Object(o.a)(a.dateObj))&&(a.className+=\" non-gameday-dates\"):Object(o.a)(a.dateObj)&&(a.className+=\" non-gameday-dates\")},onReady:function(t,n,a,o){s(e(\".custom-datepicker\")[3])},locale:{firstDayOfWeek:0}},u=flatpickr(\"#StartDrawingDate\",c),m=flatpickr(\"#EndDrawingDate\",d);Object(o.b)(\"SelectedGame\",[u,m]);var g=document.getElementById(\"past-results-table\"),v=document.getElementById(\"csv-download\");if(g&&g.addEventListener(\"click\",(function(e){if(e.target instanceof HTMLAnchorElement&&e.target.classList.contains(\"expand-row\")){e.preventDefault();var t=e.target;if(\"false\"===t.dataset.fetched&&\"true\"===t.dataset.hasPartnerGame){var n={gameId:t.dataset.gameId,drawingDate:t.dataset.drawDate};a.post(\"/games/draw/past-game-secondary-payouts\",n).done((function(e){var n=JSON.parse(e).SecondaryPayouts,a=\"$\"+JSON.parse(e).SecondaryPayoutTotal.toFixed(2).replace(/\\d(?=(\\d{3})+\\.)/g,\"$&,\").slice(0,-3),o=JSON.parse(e).SecondaryPayoutTicketTotal;t.dataset.fetched=!0;var i=t.parentElement.parentElement.nextElementSibling;i.classList.toggle(\"d-none\");var r=i.querySelector(\"[data-partnergame]\"),s=r.querySelector(\"#table-secondary-gameName\"),l=r.querySelector(\"#table-secondary\");l.querySelector(\"tbody\").innerHTML=function(e,t,n){var a=\"\";return e.forEach((function(e){a+='\\n\\t\\t '.concat(e.Name,\"\\n\\t\\t \").concat(e.DisplayAmount,\"\\n\\t\\t \").concat(e.Count,\"\\n\\t \")})),a+='\\n\\t\\t WINNING TOTALS\\n\\t\\t '.concat(t,\"\\n\\t\\t \").concat(n,\"\\n\\t \")}(n,a,o),l.classList.toggle(\"d-none\"),s.classList.toggle(\"d-none\");var c=JSON.parse(e).ThirdPayouts;if(c.length>0){var d=\"$\"+JSON.parse(e).ThirdPayoutTotal.toFixed(2).replace(/\\d(?=(\\d{3})+\\.)/g,\"$&,\").slice(0,-3),u=JSON.parse(e).ThirdPayoutTicketTotal,m=t.parentElement.parentElement.nextElementSibling.querySelector(\"[data-partnergame]\"),g=m.querySelector(\"#table-third-gameName\"),v=m.querySelector(\"#table-third\");v.querySelector(\"tbody\").innerHTML=function(e,t,n){var a=\"\";return e.forEach((function(e){a+='\\n\\t\\t '.concat(e.Name,\"\\n\\t\\t \").concat(e.DisplayAmount,\"\\n\\t\\t \").concat(e.Count,\"\\n\\t \")})),a+='\\n\\t\\t WINNING TOTALS\\n\\t\\t '.concat(t,\"\\n\\t\\t \").concat(n,\"\\n\\t \")}(c,d,u),v.classList.toggle(\"d-none\"),g.classList.toggle(\"d-none\")}t.classList.add(\"expanded\"),t.innerHTML=\"‒\"}))}else{var o=t.parentElement.parentElement.nextElementSibling;o.classList.toggle(\"d-none\"),o.classList.contains(\"d-none\")?(t.classList.contains(\"expanded\")&&t.classList.remove(\"expanded\"),t.innerText=\"+\"):(t.classList.add(\"expanded\"),t.innerHTML=\"‒\")}}})),v){var f=document.getElementById(\"StartDrawingDate\").value,y=e(\"#past-results-table\").find(\"tr.main-row:not(.csv-exclude):has(td),tr:not(.csv-exclude):has(th)\"),p=document.getElementById(\"SelectedGame\");!function(t,n,a,o){var i=String.fromCharCode(11),r=String.fromCharCode(0),s='\"=\"\"'+n.map((function(t,n){return e(n).find(\"td:not(.csv-exclude),th:not(.csv-exclude)\").map((function(t,n){var a=e(n);return(\"TH\"===a[0].nodeName?a.text():a.hasClass(\"winning-numbers\")?a.clone().children().remove().end().text().replace(/\\s/g,\"\"):a[0].innerText).replace(/\"/g,'\"\"').replace(\"
\",\"\")})).get().join(i)})).get().join(r).split(r).join('\"\"\"\\r\\n\"=\"\"').split(i).join('\"\"\",\"=\"\"')+'\"\"\"',l=\"data:application/csv;charset=utf-8,\"+encodeURIComponent(s);window.navigator.msSaveBlob?window.navigator.msSaveOrOpenBlob(new Blob([s],{type:\"text/plain;charset=utf-8;\"}),\"csvname.csv\"):e(t).attr({download:a+\"_\"+o+\".csv\",href:l,target:\"_blank\"})}(v,y,p.options[p.selectedIndex].text,f)}e(\"#past-results-table\").on(\"click\",(function(e){document.querySelector(\".cyn-body\").children[0].classList.contains(\"main-row\")&&document.querySelectorAll(\".cyn-body\")[0].classList.add(\"sorted-winning\")}))}}))}).call(this,n(\"lTfz\"),n(\"lTfz\"),n(\"lTfz\"))},bVBd:function(e,t,n){\"use strict\";(function(e){var t=n(\"Wgwc\"),a=n.n(t);e.validator.addMethod(\"requiredif\",(function(t,n,a){var o=a.dependentproperty,i=a.targetvalue;i=(null===i?\"\":i).toString();var r,s=e(\"#\"+o);switch(s.length<=0&&(s=e('[name=\"'+o+'\"]')),s.attr(\"type\")){case\"checkbox\":r=s.is(\":checked\").toString();break;case\"radio\":r=e('input[name=\"'+o+'\"]:checked').val();break;default:r=s.val()}return r=null==r?\"\":r,i.toLowerCase()!==r.toLowerCase()||e.validator.methods.required.call(this,t,n,a)})),e.validator.unobtrusive.adapters.add(\"requiredif\",[\"dependentproperty\",\"targetvalue\"],(function(e){\"\"!==e.message&&(e.rules.requiredif={dependentproperty:e.params.dependentproperty,targetvalue:e.params.targetvalue},e.messages.requiredif=e.message)})),e.validator.addMethod(\"minimumage\",(function(e,t,n){var o=a()().subtract(n.agelimit,\"years\"),i=a()(e,\"YYYY-MM-DD\");return!o.isBefore(i)})),e.validator.unobtrusive.adapters.add(\"minimumage\",[\"agelimit\"],(function(e){\"\"!==e.message&&(e.rules.minimumage={agelimit:e.params.agelimit},e.messages.minimumage=e.message)})),e.validator.addMethod(\"alloweddaysago\",(function(e,t,n){var o=a()().subtract(n.daysago,\"day\"),i=a()(e,\"YYYY-MM-DD\");return!o.isAfter(i)})),e.validator.unobtrusive.adapters.add(\"alloweddaysago\",[\"daysago\"],(function(e){\"\"!==e.message&&(e.rules.alloweddaysago={daysago:e.params.daysago},e.messages.alloweddaysago=e.message)})),e.validator.unobtrusive.adapters.add(\"mustbetrue\",(function(e){\"INPUT\"===e.element.tagName.toUpperCase()&&\"CHECKBOX\"===e.element.type.toUpperCase()&&(e.rules.required=!0,e.message&&(e.messages.required=e.message))}))}).call(this,n(\"lTfz\"))},caA9:function(e,t,n){\"use strict\";(function(e,t,a){var o=n(\"I9E9\"),i=n.n(o),r=n(\"TEza\"),s=n(\"vDqi\"),l=n.n(s),c=n(\"sYUy\");window.addEventListener(\"DOMContentLoaded\",(function(){if(document.querySelector(\"body\").classList.contains(\"account-profile\")){var n=document.getElementById(\"profile-tab-1\"),o=document.getElementById(\"mobile-promotions-accordion\"),s=document.getElementById(\"profilePromotionEntries\"),d=document.querySelectorAll(\".see-more\"),u=document.querySelectorAll(\".see-more-link\"),m=document.querySelector(\"[data-account-delete-confirmation]\"),g=new URLSearchParams(window.location.search).get(\"tab\");window.FormState=window.FormState||{},window.FormState.requiresConfirmation=!1;var v=0;if(g)switch(g.toLowerCase()){case\"promotions\":v=1;break;case\"preferences\":v=2;break;case\"profile\":v=3}if(Object(r.a)(document.getElementById(\"profile-tab-\".concat(v)),null,null,\"profile-tab-pane-\".concat(v)),c.initialize(e.hl_globals.braze.apiKey,{baseUrl:e.hl_globals.braze.baseUrl,enableLogging:e.hl_globals.enableLogging}),c.changeUser(e.hl_globals.username),c.openSession(),c.requestContentCardsRefresh((function(){console.log(\"request content cards success\")}),(function(){console.log(\"request content cards error\")})),c.subscribeToContentCardsUpdates((function(e){if(e&&e.cards&&e.cards.length){c.logCardImpressions(e.cards,!0);var n=new Array;if(e.cards.forEach((function(e){return n.push({title:e.title,description:e.description,linkText:e.linkText,url:e.url,imageUrl:e.imageUrl})})),n.length){var a=document.getElementById(\"braze-content-cards\");t(a).load(a.dataset.url,{cards:n},(function(){a.querySelectorAll(\".content-card\").forEach((function(t){t.querySelector(\"a\").addEventListener(\"click\",(function(){var n=parseInt(t.dataset.index,10);c.logCardClick(e.cards[n],!0)}))}))}))}}})),d&&d.length&&u&&u.length&&n){var f=function(){parseInt(document.querySelector(\"#profilePromotionEntries\").dataset.currentPage,10)1&&f(),\"success\"===function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:window.location.href;e=e.replace(/[\\[\\]]/g,\"\\\\$&\");var n=new RegExp(\"[?&]\"+e+\"(=([^&#]*)|&|#|$)\"),a=n.exec(t);return a?a[2]?decodeURIComponent(a[2].replace(/\\+/g,\" \")):\"\":null}(\"verification\")&&dataLayer.push({event:\"mylottery registration email confirmation\",eventCategory:\"n/a\",eventAction:\"n/a\",eventLabel:\"mylottery registration email confirmation\"});var p=document.getElementById(\"profileAccountInformation\");p&&i()().mask(p.querySelectorAll(\"input\")),y(),u.forEach((function(e){e.addEventListener(\"click\",(function(e){e.preventDefault();var t=document.getElementById(\"profilePromotionEntries\");if((n.classList.contains(\"active\")||o.classList.contains(\"active\"))&&a(t).valid()){var i=document.getElementById(\"profilePromotionEntries\"),r=parseInt(i.dataset.totalPages,10),s=parseInt(i.dataset.currentPage,10)+1,l=document.getElementById(\"PromotionId\"),c=document.querySelector(\"a.see-more-link\"),d={page:s,model:{FromDate:document.getElementById(\"FromDate\").value,ToDate:document.getElementById(\"ToDate\").value,PromotionId:l.options[l.selectedIndex].value}};a.post(c.href,d).done((function(e){e&&e.length?(document.getElementById(\"promotion-entry-results\").insertAdjacentHTML(\"beforeend\",e),i.dataset.currentPage=s,r===s&&document.querySelectorAll(\"div.see-more\").forEach((function(e){return e.classList.add(\"d-none\")}))):document.querySelectorAll(\"div.see-more\").forEach((function(e){return e.classList.add(\"d-none\")}))}))}}))})),window.addEventListener(\"ajaxSuccessCallback\",(function(e){var t=document.getElementById(\"profileAccountInformation\"),n=document.getElementById(\"profilePromotionEntries\");t&&e.detail===t.id?(i()().mask(t.querySelectorAll(\"input\")),y()):n&&e.detail===n.id&&f()}))}m&&m.addEventListener(\"click\",(function(e){e.preventDefault();var t=document.querySelector(\"form#anti input\");return l.a.post(\"/account/delete/\",{headers:{__RequestVerificationToken:t.value}}).then((function(e){document.querySelector(\"[data-delete-modal]\").innerHTML=e.data})).catch((function(e){return console.error(e)}))}));var h=document.querySelectorAll(\"#profileSubscriptionPreferences .preferences-checkbox\"),b=document.querySelectorAll(\"#profileSubscriptionPreferences select\"),w=document.getElementById(\"profileAccountInformation\"),E=document.querySelectorAll(\"#profileAccountInformation input, #profileAccountInformation select\");b.forEach((function(e){e.addEventListener(\"change\",(function(){window.FormState.requiresConfirmation=!0}))})),h.forEach((function(e){e.addEventListener(\"click\",(function(){window.FormState.requiresConfirmation=!0}))})),E.forEach((function(e){e.addEventListener(\"change\",(function(){window.FormState.requiresConfirmation=!0}))})),w.addEventListener(\"submit\",(function(){window.FormState.requiresConfirmation=!1})),window.addEventListener(\"beforeunload\",(function(e){window.FormState&&window.FormState.requiresConfirmation&&(e.target&&\"submit\"===e.target.activeElement.type||(e.preventDefault(),e.returnValue=\"Changes you made may not be saved.\"))}))}}))}).call(this,n(\"yLpj\"),n(\"lTfz\"),n(\"lTfz\"))},cnbF:function(e,t,n){\"use strict\";n(\"Et7R\"),n(\"K+Wz\");var a=n(\"WoD0\"),o=n(\"auZD\"),i=n(\"QDxW\"),r=n(\"N4pW\");n(\"X2Dv\");window.addEventListener(\"DOMContentLoaded\",(function(){if(document.querySelector(\"body\").classList.contains(\"draw-detail\")){var e=0;flatpickr(\"#DrawingStartDate\",{altInput:!0,altFormat:\"m/d/Y\",allowInput:!1,maxDate:\"today\",disableMobile:\"true\",defaultDate:\"null\",onDayCreate:function(e,t,n,a){var o=document.getElementById(\"SelectedGame\").value,r=a.dateObj.getTime(),s=a.dateObj.getDay();\"2\"===o?(new Date(\"08/23/2021 00:00:00\").getTime()>r&&1===s||Object(i.a)(a.dateObj))&&(a.className+=\" non-gameday-dates\"):Object(i.a)(a.dateObj)&&(a.className+=\" non-gameday-dates\")},locale:{firstDayOfWeek:0}}),Object(r.a)();var t=document.getElementById(\"addTicketButton\"),n=document.getElementById(\"check-your-numbers-submit\"),s=document.getElementById(\"flipdown\");t&&t.addEventListener(\"click\",(function(t){t.preventDefault(),Object(a.a)(document.getElementById(\"check-number-row0\"),++e),Object(r.a)()})),n&&n.addEventListener(\"click\",(function(){var t=[],n=[],a=document.querySelector(\".partner-games:checked\")?document.querySelector(\".partner-games:checked\").value:document.querySelector(\"#SelectedGame\").value;document.getElementById(\"SelectedGame\").value=a,document.getElementById(\"DrawingEndDate\").value=document.getElementById(\"DrawingStartDate\").value,document.querySelectorAll(\".check-number\").forEach((function(e){t.push(e.value)})),document.querySelectorAll(\".check-number-bonus\").forEach((function(e){n.push(e.value)})),sessionStorage.setItem(\"draw-detail-ticket-row\",e),sessionStorage.setItem(\"draw-detail-ticket-numbers\",t),sessionStorage.setItem(\"draw-detail-ticket-bonus-numbers\",n),sessionStorage.setItem(\"draw-detail-partner-game\",a),document.getElementById(\"form-checkyournumbers\").submit()})),s&&new o.a(parseInt(s.dataset.value,10),{theme:\"light\"}).start()}}))},cxd3:function(e,t,n){\"use strict\";(function(e){n.d(t,\"b\",(function(){return o})),n.d(t,\"c\",(function(){return i})),n.d(t,\"a\",(function(){return s}));var a=n(\"sYUy\"),o=function(){return r(\"_gid\")?r(\"_gid\").split(\".\").splice(2).join(\".\").toString():r(\"_ga\")?r(\"_ga\").split(\".\").splice(2).join(\".\").toString():null},i=function(){a.initialize(e.hl_globals.braze.apiKey,{baseUrl:e.hl_globals.braze.baseUrl,enableLogging:e.hl_globals.enableLogging});var t=o();t&&a.getUser().addToCustomAttributeArray(\"GA_Client_ID_Array\",t)},r=function(e){var t=\"; \".concat(document.cookie).split(\"; \".concat(e,\"=\"));if(2===t.length)return t.pop().split(\";\").shift()},s=function(){var t;e.hl_globals&&(a.initialize(e.hl_globals.braze.apiKey,{baseUrl:e.hl_globals.braze.baseUrl,enableLogging:e.hl_globals.enableLogging,minimumIntervalBetweenTriggerActionsInSeconds:5}),t=window.location.pathname,[\"/account/sign-in/\",\"/account/register/\"].indexOf(t)<0&&a.automaticallyShowInAppMessages(),e.hl_globals.username&&hl_globals.username.length>0&&a.changeUser(hl_globals.username),a.openSession(),e.hl_globals.brazeEventName&&e.hl_globals.brazeEventName.length>0&&a.logCustomEvent(e.hl_globals.brazeEventName))}}).call(this,n(\"yLpj\"))},fZgY:function(e,t,n){\"use strict\";(function(e){n(\"K+Wz\");var t=n(\"WoD0\"),a=n(\"QDxW\"),o=(n(\"X2Dv\"),n(\"N4pW\"));document.addEventListener(\"DOMContentLoaded\",(function(){if(document.querySelector(\"body\").classList.contains(\"check-your-numbers\")){var n=0,i=0,r=document.getElementById(\"check-your-numbers-submit\"),s=function(e,t,n,a){if(\"\"===t&&c){console.log(\"fired and conditional true\");var o=(new Date).fp_incr(-180);a?(m.setDate(o,!1),document.querySelector('[data-valmsg-for=\"DrawingStartDate\"]')&&document.querySelector('[data-valmsg-for=\"DrawingStartDate\"]').remove(),document.getElementById(\"minDateWarningStart\").classList.remove(\"d-none\"),document.getElementById(\"minDateWarningStart\").classList.add(\"fade-in\"),setTimeout((function(){document.getElementById(\"minDateWarningStart\").classList.remove(\"fade-in\")}),15e3),setTimeout((function(){document.getElementById(\"minDateWarningStart\").classList.add(\"d-none\")}),15500),setTimeout((function(){c=!0}),3e3)):(g.setDate(o,!1),document.querySelector('[data-valmsg-for=\"DrawingEndDate\"]')&&document.querySelector('[data-valmsg-for=\"DrawingEndDate\"]').remove(),document.getElementById(\"minDateWarningEnd\").classList.remove(\"d-none\"),document.getElementById(\"minDateWarningEnd\").classList.add(\"fade-in\"),setTimeout((function(){document.getElementById(\"minDateWarningEnd\").classList.remove(\"fade-in\")}),15e3),setTimeout((function(){document.getElementById(\"minDateWarningEnd\").classList.add(\"d-none\"),c=!0}),15500),setTimeout((function(){c=!0}),3e3))}};document.getElementById(\"form-checkyournumbers\")&&document.getElementById(\"form-checkyournumbers\").addEventListener(\"submit\",(function(){var e=document.getElementById(\"SelectedGame\"),t=e.options[e.selectedIndex].text;dataLayer.push({event:\"check your numbers results\",eventCategory:\"cyn\",eventAction:\"n/a\",eventLabel:\"Selected Game: \"+t})})),r.addEventListener(\"click\",(function(){var e=[],t=[],n=document.querySelectorAll(\"#check-number-row0 input\").length;document.querySelectorAll(\".check-number\").forEach((function(t,a){a%n==0&&++i,\"\"!==t.value&&e.push(t.value)})),document.querySelectorAll(\".check-number-bonus\").forEach((function(e){\"\"!==e.value&&t.push(e.value)})),sessionStorage.setItem(\"draw-detail-ticket-row\",i-1),sessionStorage.setItem(\"draw-detail-ticket-numbers\",e),sessionStorage.setItem(\"draw-detail-ticket-bonus-numbers\",t),document.getElementById(\"form-checkyournumbers\").submit()}));var l=function(t){e(t).bind(\"keyup\",\"keydown\",(function(t){if(8!==t.which){var n=e(this).val().length;if(2===n||5===n){var a=e(this).val();a+=\"/\",e(this).val(a)}}}))};Object(o.a)();var c=!0,d={altInput:!0,altFormat:\"m/d/Y\",allowInput:!0,maxDate:\"today\",minDate:(new Date).fp_incr(-180),disableMobile:\"true\",defaultDate:null,onChange:function(e,t,n){\"\"!==t&&(c=!1,g.set(\"minDate\",t))},onValueUpdate:function(e,t,n){s(0,t,0,!0)},onDayCreate:function(e,t,n,o){var i=document.getElementById(\"SelectedGame\"),r=i.options[i.selectedIndex].text,s=o.dateObj.getTime(),l=o.dateObj.getDay();\"Powerball\"===r?(new Date(\"08/23/2021 00:00:00\").getTime()>s&&1===l||Object(a.a)(o.dateObj))&&(o.className+=\" non-gameday-dates\"):Object(a.a)(o.dateObj)&&(o.className+=\" non-gameday-dates\")},onReady:function(t,n,a,o){l(e(\".custom-datepicker\")[1])},locale:{firstDayOfWeek:0}},u={altInput:!0,altFormat:\"m/d/Y\",allowInput:!0,minDate:\"\"!==e(\"#DrawingStartDate\").attr(\"value\")&&\"01/01/0001\"!==e(\"#DrawingStartDate\").attr(\"value\")?e(\"#DrawingStartDate\").attr(\"value\"):(new Date).fp_incr(-180),maxDate:\"today\",disableMobile:\"true\",defaultDate:null,onChange:function(e,t,n){var a=\"\"===t?\"today\":t;\"\"!==t&&(c=!1,m.set(\"maxDate\",a))},onValueUpdate:function(e,t,n){s(0,t,0,!1)},onDayCreate:function(e,t,n,o){var i=document.getElementById(\"SelectedGame\"),r=i.options[i.selectedIndex].text,s=o.dateObj.getTime(),l=o.dateObj.getDay();\"Powerball\"===r?(new Date(\"08/23/2021 00:00:00\").getTime()>s&&1===l||Object(a.a)(o.dateObj))&&(o.className+=\" non-gameday-dates\"):Object(a.a)(o.dateObj)&&(o.className+=\" non-gameday-dates\")},onReady:function(t,n,a,o){l(e(\".custom-datepicker\")[3])},locale:{firstDayOfWeek:0}},m=flatpickr(\"#DrawingStartDate\",d),g=flatpickr(\"#DrawingEndDate\",u);document.getElementById(\"reset-datepicker\").addEventListener(\"click\",(function(){var t=document.getElementById(\"numbers-container\").querySelectorAll(\"div\");m.clear(),document.querySelector('[data-valmsg-for=\"DrawingStartDate\"]')&&document.querySelector('[data-valmsg-for=\"DrawingStartDate\"]').remove(),g.clear(),document.querySelector('[data-valmsg-for=\"DrawingEndDate\"]')&&document.querySelector('[data-valmsg-for=\"DrawingEndDate\"]').remove(),document.querySelectorAll(\".input-validation-error\").forEach((function(e){e.classList.remove(\"input-validation-error\")})),t.length>=1&&t.forEach((function(e,t){t>0?(e.remove(),n=0):e.childNodes.forEach((function(e,t){t>0&&(e.value=\"\")}))})),e(\"#form-checkyournumbers\")[0].reset()})),Object(a.b)(\"SelectedGame\",[m,g]);var v=sessionStorage.getItem(\"draw-detail-ticket-row\");sessionStorage.removeItem(\"draw-detail-ticket-row\");var f=sessionStorage.getItem(\"draw-detail-ticket-numbers\");sessionStorage.removeItem(\"draw-detail-ticket-numbers\");var y=sessionStorage.getItem(\"draw-detail-partner-game\");if(sessionStorage.removeItem(\"draw-detail-partner-game\"),v&&f){var p=sessionStorage.getItem(\"draw-detail-ticket-bonus-numbers\");sessionStorage.removeItem(\"draw-detail-ticket-bonus-numbers\");for(var h=f.split(\",\"),b=0;b0?a.NumbersPerPlay:a.LastDrawingResults.length,d=0;d1?1:a.LastDrawingBonusResults.length;a.HideBonusNumberEntry&&(m=0);var g=e(\"#DrawBonusColorBackground\").val(),v=\"\"==g?\"fff\":g;if(!a.HideBonusNumberEntry)for(d=0;d2&&void 0!==arguments[2]&&arguments[2],a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:1,o=new Date;n?(o.setHours(23),o.setMinutes(59),o.setSeconds(59)):o.setTime(o.getTime()+24*a*60*60*1e3);var i=\"expires=\"+o.toUTCString();document.cookie=e+\"=\"+t+\"; \"+i+\"; path=/\"}(\"hl_flurry_of_fun_entered_sweeps_today\",!0,!0)),e&&(e.setAttribute(\"disabled\",!0),L(e),e.remove())},I=function(e,t){return new Proxy(new URLSearchParams(window.location.search),{get:function(e,t){return e.get(t)}})[e]===t},k=function(){return I(\"fps_fail\",\"true\")},q=function(){return I(\"incompatible_device\",\"true\")},D=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:\"\";e.hl_globals.username?(a=e.hl_globals.username,i=o+a):i=o+t};window.addEventListener(\"DOMContentLoaded\",(function(){if(document.querySelector(\"body\").classList.contains(\"flurry-of-fun__body\")){m.initialize(e.hl_globals.braze.apiKey,{baseUrl:e.hl_globals.braze.baseUrl,enableLogging:e.hl_globals.enableLogging}),e.hl_globals.username?m.changeUser(e.hl_globals.username):v(\"hl-login\")&&m.changeUser(JSON.parse(v(\"hl-login\")).uid);var n=document.querySelector(\"body\"),a=document.querySelector(\"[data-primary-screen]\"),o=document.querySelector(\"[data-camera-access]\"),r=document.querySelector(\"[data-incompatible-device]\"),s=document.querySelectorAll(\"[data-sweeps-entry\"),l=document.querySelectorAll(\"[data-close]\");q()&&(w(\"holiday22_hl_notsupported\",1),Object(u.a)(a,r)),I(\"camera_denied\",\"true\")&&Object(u.a)(a,o),D(),I(\"utm_source\",\"qrcode\")&&w(\"holiday22_hl_qrcode\",1),I(\"utm_medium\",\"POS\")&&w(\"holiday22_hl_qrcode_pos\",1),I(\"webvisit\",\"true\")&&w(\"holiday22_hl_webvisit\",1),(I(\"app_referral\",\"true\")||I(\"app_visit\",\"true\"))&&w(\"holiday22_hl_appvisit\",1),I(\"desktopVisit\",\"true\")&&w(\"holiday22_hl_visitedpromodesktop\",1);var c=new MutationObserver((function(e){e[0].target.classList.contains(\"user-authenticated\")&&(v(\"hl-login\")&&m.changeUser(JSON.parse(v(\"hl-login\")).uid),D(JSON.parse(v(\"hl-login\")).uid),w(\"holiday22_hl_loggedin\",1),s.length>0&&s.forEach((function(e){S(e)})),g()&&(t?(w(\"holiday22_hl_compatible\",1),window.location=i):(w(\"holiday22_hl_notsupported\",1),Object(u.a)(a,r))))}));f.addEventListener(\"click\",(function(){var e;n.classList.contains(\"user-authenticated\")&&(g()?t?(w(\"holiday22_hl_compatible\",1),window.location=i):(w(\"holiday22_hl_notsupported\",1),Object(u.a)(a,r)):((e=document.createElement(\"p\")).classList.add(\"text-white\",\"font-weight--700\",\"font--20\",\"line-height--1\",\"text-center\",\"mt-4\"),e.innerText=\"Please access this digital activation from a mobile device.\",f.parentNode.appendChild(e)))})),y.addEventListener(\"click\",(function(){window.location=i})),I(\"unauthenticated_user\",\"true\")&&p.click(),n.classList.contains(\"user-authenticated\")?w(\"holiday22_hl_loggedin\",1):w(\"holiday22_hl_nologin\",1),c.observe(n,{attributes:!0,attributeFilter:[\"class\"],childList:!1,characterData:!1}),l.length>0&&l.forEach((function(e){e.addEventListener(\"click\",(function(){var e=document.querySelector(\".active-screen\"),t=a;Object(u.a)(e,t)}))})),s.length>0&&s.forEach((function(e){n.classList.contains(\"user-authenticated\")&&h&&(e.setAttribute(\"disabled\",!0),L(e),e.remove()),e&&e.addEventListener(\"click\",(function(t){n.classList.contains(\"user-authenticated\")&&S(e)}))})),E().then((function(e){t=e.fps>=45,q()&&(t=!1),k()&&(t=!k(),w(\"holiday22_hl_notsupported\",1)),a.dataset.deviceCompatible=t}))}}))}).call(this,n(\"yLpj\"))},hwAo:function(e,t){window.addEventListener(\"DOMContentLoaded\",(function(){document.querySelectorAll('[data-toggle=\"modal\"]').forEach((function(e){e.addEventListener(\"click\",(function(e){e.preventDefault();var t=document.getElementById(this.dataset.target);t.addEventListener(\"click\",(function(e){var n=e.target;e.preventDefault(),(n.classList.contains(\"close\")||n.closest(\".close\"))&&t.classList.remove(\"show\")})),t.classList.toggle(\"show\")}))}))}))},i9rb:function(e,t,n){(function(e){function t(){e(\"input[id$=SelectedCounty]\").val(\"total\"),e(\"#CountyName\").text(\"Statewide\"),e(\"#WinnerAmount\").text(\"$\"+n(e(\"input[id$=WinnerAmount_Statewide]\").val())),e(\"#RetailerAmount\").text(\"$\"+n(e(\"input[id$=RetailerAmount_Statewide]\").val())),e(\"#PoliceFireAmount\").text(\"$\"+n(e(\"input[id$=PoliceFireAmount_Statewide]\").val())),e(\"#TeacherAmount\").text(\"$\"+n(e(\"input[id$=TeacherAmount_Statewide]\").val())),e(\"#BuildIndianaAmount\").text(\"$\"+n(e(\"input[id$=BuildIndianaAmount_Statewide]\").val())),e(\"#TotalAmount\").text(\"$\"+n(e(\"input[id$=TotalAmount_Statewide]\").val())),e(\"#PDFLink\").attr(\"href\",e(\"input[id$=PDF_Statewide]\").val())}function n(e){var t=e.toString().split(\".\");return t[0]=t[0].replace(/\\B(?=(\\d{3})+(?!\\d))/g,\",\"),t.join(\".\")}e(document).ready((function(){if(document.querySelector(\"#MoneyMap\")){t(),countyMapActive=e(\".money-distribution .map-active\"),countyMapHover=e(\".money-distribution .map-hover\"),countyMapContainer=e(\".money-distribution .map-container\");var a=document.querySelector(\"#fiscalYearOverride\"),o=a.dataset.override,i=a.dataset.year;a&&\"true\"===o&&i.length>0?document.getElementById(\"fiscalYear\").innerHTML=i:document.getElementById(\"fiscalYear\")&&(document.getElementById(\"fiscalYear\").innerHTML=(new Date).getFullYear()-1),e(\"#MoneyDistribution_Map>area\").each((function(){countyName=e(this).attr(\"title\"),e(this).attr(\"data-county\",countyName).removeAttr(\"title\")})),e(\".map-container\").hover((function(t){e(\"#MoneyDistribution_Map>area\").removeAttr(\"alt\")})),e(\"#MoneyDistribution_Map>area\").hover((function(t){var n=e(this).attr(\"data-county\");e('

').text(n).appendTo(\"body\").css(\"top\",t.pageY-10+\"px\").css(\"left\",t.pageX+10+\"px\").fadeIn(\"fast\"),t.preventDefault()}),(function(){e(\".maptooltip\").remove()})),e(\"#MoneyDistribution_Map>area\").click((function(t){var a;county=e(this).attr(\"id\"),countyImage=\"/Content/img/money/counties/\"+county+\"_03.png\",e(countyMapActive).attr(\"src\",countyImage),e(\".county\").addClass(\"active\"),a=e(this),e(\"input[id$=SelectedCounty]\").val(a.attr(\"id\")),e.ajax({type:\"POST\",url:\"/api/v1/moneymapapi/getdistributionforcounty\",data:JSON.stringify({county:a.attr(\"id\")}),contentType:\"application/json; charset=utf-8\",dataType:\"json\",success:function(t){var o=t.d;e(\"input[id$=SelectedCounty]\").val()==a.attr(\"id\")&&(e(\"#CountyName\").text(a.attr(\"data-county\")+\" County\"),e(\"#WinnerAmount\").text(\"$\"+n(o.WinnerAmount)),e(\"#RetailerAmount\").text(\"$\"+n(o.RetailerAmount)),e(\"#PoliceFireAmount\").text(\"$\"+n(o.PoliceFireAmount)),e(\"#TeacherAmount\").text(\"$\"+n(o.TeacherAmount)),e(\"#BuildIndianaAmount\").text(\"$\"+n(o.BuildIndianaAmount)),e(\"#TotalAmount\").text(\"$\"+n(o.TotalAmount)),e(\"#PDFLink\").attr(\"href\",o.PDF))}}),e(\".total-type\").text(\"COUNTY TOTAL\"),e(\"#VendorListItem\").css(\"display\",\"none\")})),e(\".MoneyDistribution_Reset\").click((function(n){e(\".county.active\").length>0&&\"Statewide\"!=e(\"#CountyName\").val()&&(e(\"#VendorListItem\").css(\"display\",\"block\"),t(),e(\".total-type\").text(\"STATEWIDE TOTAL\"),e(countyMapActive).attr(\"src\",\"/Content/img/money/spacer.png\"),e(\".county\").removeClass(\"active\"))})),e(\"#MoneyDistribution_Map>area\").hover((function(){county=e(this).attr(\"id\"),countyImage=\"/Content/img/money/counties/\"+county+\"_hover_03.png\",e(countyMapHover).attr(\"src\",countyImage)}),(function(){e(countyMapHover).attr(\"src\",\"/Content/img/money/spacer.png\")}))}}))}).call(this,n(\"lTfz\"))},lQA5:function(e,t,n){\"use strict\";var a=n(\"I9E9\"),o=n.n(a),i=n(\"cxd3\");window.addEventListener(\"DOMContentLoaded\",(function(){if(document.querySelector(\"body\").classList.contains(\"myLottery-app\")){var e=function(){var e=document.getElementById(\"confirmationType-container\");if(e){var t=e.querySelectorAll('input[type=\"radio\"]');t.forEach((function(e){e.addEventListener(\"click\",(function(){t.forEach((function(e){return e.checked=!1})),this.checked=!0}))}))}};document.getElementById(\"GaClientIdArray\").value=Object(i.b)();var t=document.getElementById(\"myLotteryAppRegistration\");t&&o()().mask(t.querySelectorAll(\"input\")),e(),window.addEventListener(\"ajaxSuccessCallback\",(function(t){var n=document.getElementById(\"myLotteryAppRegistration\");n&&t.detail===n.id&&(o()().mask(n.querySelectorAll(\"input\")),e()),document.querySelectorAll(\"input[class*=input-validation-error]\").length<1&&dataLayer.push({event:\"mylottery registration 3\",eventCategory:\"n/a\",eventAction:\"n/a\",eventLabel:\"Registration Step: Registration Data Passed\",\"myLOTTERY Registration Source\":\"App\"})}))}}))},lzys:function(e,t,n){\"use strict\";var a=n(\"cDf5\"),o=n.n(a);!function(e){var t=Math.ceil,n=Math.floor;function a(e,t){var n=e.getTime();return e.setMonth(e.getMonth()+t),Math.round((e.getTime()-n)/864e5)}function i(e){var t=e.getTime(),n=new Date(t);return n.setMonth(e.getMonth()+1),Math.round((n.getTime()-t)/864e5)}function r(e,t){if(t=t instanceof Date||null!==t&&isFinite(t)?new Date(+t):new Date,!e)return t;var n=+e.value||0;return n?(t.setTime(t.getTime()+n),t):((n=+e.milliseconds||0)&&t.setMilliseconds(t.getMilliseconds()+n),(n=+e.seconds||0)&&t.setSeconds(t.getSeconds()+n),(n=+e.minutes||0)&&t.setMinutes(t.getMinutes()+n),(n=+e.hours||0)&&t.setHours(t.getHours()+n),(n=+e.weeks||0)&&(n*=7),(n+=+e.days||0)&&t.setDate(t.getDate()+n),(n=+e.months||0)&&t.setMonth(t.getMonth()+n),(n=+e.millennia||0)&&(n*=10),(n+=+e.centuries||0)&&(n*=10),(n+=+e.decades||0)&&(n*=10),(n+=+e.years||0)&&t.setFullYear(t.getFullYear()+n),t)}var s,l,c,d,u,m,g,v;function f(e,t){return g(e)+(1===e?s[t]:l[t])}function y(){}function p(e,t,n,a,o,r){return e[n]>=0&&(t+=e[n],delete e[n]),(t/=o)+1<=1?0:e[a]>=0?(e[a]=+(e[a]+t).toFixed(r),function(e,t){switch(t){case\"seconds\":if(60!==e.seconds||isNaN(e.minutes))return;e.minutes++,e.seconds=0;case\"minutes\":if(60!==e.minutes||isNaN(e.hours))return;e.hours++,e.minutes=0;case\"hours\":if(24!==e.hours||isNaN(e.days))return;e.days++,e.hours=0;case\"days\":if(7!==e.days||isNaN(e.weeks))return;e.weeks++,e.days=0;case\"weeks\":if(e.weeks!==i(e.refMonth)/7||isNaN(e.months))return;e.months++,e.weeks=0;case\"months\":if(12!==e.months||isNaN(e.years))return;e.years++,e.months=0;case\"years\":if(10!==e.years||isNaN(e.decades))return;e.decades++,e.years=0;case\"decades\":if(10!==e.decades||isNaN(e.centuries))return;e.centuries++,e.decades=0;case\"centuries\":if(10!==e.centuries||isNaN(e.millennia))return;e.millennia++,e.centuries=0}}(e,a),0):t}function h(e,t){var n,a,o,r=p(e,0,\"milliseconds\",\"seconds\",1e3,t);if(r&&((r=p(e,r,\"seconds\",\"minutes\",60,t))&&(r=p(e,r,\"minutes\",\"hours\",60,t))&&(r=p(e,r,\"hours\",\"days\",24,t))&&(r=p(e,r,\"days\",\"weeks\",7,t))&&(r=p(e,r,\"weeks\",\"months\",i(e.refMonth)/7,t))&&(r=p(e,r,\"months\",\"years\",(n=e.refMonth,a=n.getTime(),(o=new Date(a)).setFullYear(n.getFullYear()+1),Math.round((o.getTime()-a)/864e5)/i(e.refMonth)),t))&&(r=p(e,r,\"years\",\"decades\",10,t))&&(r=p(e,r,\"decades\",\"centuries\",10,t))&&(r=p(e,r,\"centuries\",\"millennia\",10,t))))throw new Error(\"Fractional unit overflow\")}function b(e,o,i,r,s,l){var c=new Date;if(e.start=o=o||c,e.end=i=i||c,e.units=r,e.value=i.getTime()-o.getTime(),e.value<0){var d=i;i=o,o=d}e.refMonth=new Date(o.getFullYear(),o.getMonth(),15,12,0,0);try{e.millennia=0,e.centuries=0,e.decades=0,e.years=i.getFullYear()-o.getFullYear(),e.months=i.getMonth()-o.getMonth(),e.weeks=0,e.days=i.getDate()-o.getDate(),e.hours=i.getHours()-o.getHours(),e.minutes=i.getMinutes()-o.getMinutes(),e.seconds=i.getSeconds()-o.getSeconds(),e.milliseconds=i.getMilliseconds()-o.getMilliseconds(),function(e){var o;for(e.milliseconds<0?(o=t(-e.milliseconds/1e3),e.seconds-=o,e.milliseconds+=1e3*o):e.milliseconds>=1e3&&(e.seconds+=n(e.milliseconds/1e3),e.milliseconds%=1e3),e.seconds<0?(o=t(-e.seconds/60),e.minutes-=o,e.seconds+=60*o):e.seconds>=60&&(e.minutes+=n(e.seconds/60),e.seconds%=60),e.minutes<0?(o=t(-e.minutes/60),e.hours-=o,e.minutes+=60*o):e.minutes>=60&&(e.hours+=n(e.minutes/60),e.minutes%=60),e.hours<0?(o=t(-e.hours/24),e.days-=o,e.hours+=24*o):e.hours>=24&&(e.days+=n(e.hours/24),e.hours%=24);e.days<0;)e.months--,e.days+=a(e.refMonth,1);e.days>=7&&(e.weeks+=n(e.days/7),e.days%=7),e.months<0?(o=t(-e.months/12),e.years-=o,e.months+=12*o):e.months>=12&&(e.years+=n(e.months/12),e.months%=12),e.years>=10&&(e.decades+=n(e.years/10),e.years%=10,e.decades>=10&&(e.centuries+=n(e.decades/10),e.decades%=10,e.centuries>=10&&(e.millennia+=n(e.centuries/10),e.centuries%=10)))}(e),function(e,t,o,i){var r=0;!(1024&t)||r>=o?(e.centuries+=10*e.millennia,delete e.millennia):e.millennia&&r++,!(512&t)||r>=o?(e.decades+=10*e.centuries,delete e.centuries):e.centuries&&r++,!(256&t)||r>=o?(e.years+=10*e.decades,delete e.decades):e.decades&&r++,!(128&t)||r>=o?(e.months+=12*e.years,delete e.years):e.years&&r++,!(64&t)||r>=o?(e.months&&(e.days+=a(e.refMonth,e.months)),delete e.months,e.days>=7&&(e.weeks+=n(e.days/7),e.days%=7)):e.months&&r++,!(32&t)||r>=o?(e.days+=7*e.weeks,delete e.weeks):e.weeks&&r++,!(16&t)||r>=o?(e.hours+=24*e.days,delete e.days):e.days&&r++,!(8&t)||r>=o?(e.minutes+=60*e.hours,delete e.hours):e.hours&&r++,!(4&t)||r>=o?(e.seconds+=60*e.minutes,delete e.minutes):e.minutes&&r++,!(2&t)||r>=o?(e.milliseconds+=1e3*e.seconds,delete e.seconds):e.seconds&&r++,1&t&&!(r>=o)||h(e,i)}(e,r,s,l)}finally{delete e.refMonth}return e}function w(e,t,n,a,i){var s;n=+n||222,a=a>0?a:NaN,i=i>0?i<20?Math.round(i):20:0;var l=null;\"function\"==typeof e?(s=e,e=null):e instanceof Date||(null!==e&&isFinite(e)?e=new Date(+e):(\"object\"===o()(l)&&(l=e),e=null));var c=null;if(\"function\"==typeof t?(s=t,t=null):t instanceof Date||(null!==t&&isFinite(t)?t=new Date(+t):(\"object\"===o()(t)&&(c=t),t=null)),l&&(e=r(l,t)),c&&(t=r(c,e)),!e&&!t)return new y;if(!s)return b(new y,e,t,n,a,i);var d,u=function(e){return 1&e?1e3/30:2&e?1e3:4&e?6e4:8&e?36e5:16&e?864e5:6048e5}(n),m=function(){s(b(new y,e,t,n,a,i),d)};return m(),d=setInterval(m,u)}y.prototype.toString=function(e){var t=v(this),n=t.length;if(!n)return e?\"\"+e:u;if(1===n)return t[0];var a=c+t.pop();return t.join(d)+a},y.prototype.toHTML=function(e,t){e=e||\"span\";var n=v(this),a=n.length;if(!a)return(t=t||u)?\"<\"+e+\">\"+t+\"\":t;for(var o=0;o\"+n[o]+\"\";if(1===a)return n[0];var i=c+n.pop();return n.join(d)+i},y.prototype.addTo=function(e){return r(this,e)},v=function(e){var t=[],n=e.millennia;return n&&t.push(m(n,10)),(n=e.centuries)&&t.push(m(n,9)),(n=e.decades)&&t.push(m(n,8)),(n=e.years)&&t.push(m(n,7)),(n=e.months)&&t.push(m(n,6)),(n=e.weeks)&&t.push(m(n,5)),(n=e.days)&&t.push(m(n,4)),(n=e.hours)&&t.push(m(n,3)),(n=e.minutes)&&t.push(m(n,2)),(n=e.seconds)&&t.push(m(n,1)),(n=e.milliseconds)&&t.push(m(n,0)),t},w.MILLISECONDS=1,w.SECONDS=2,w.MINUTES=4,w.HOURS=8,w.DAYS=16,w.WEEKS=32,w.MONTHS=64,w.YEARS=128,w.DECADES=256,w.CENTURIES=512,w.MILLENNIA=1024,w.DEFAULTS=222,w.ALL=2047;var E=w.setFormat=function(e){if(e){if(\"singular\"in e||\"plural\"in e){var t=e.singular||[];t.split&&(t=t.split(\"|\"));var n=e.plural||[];n.split&&(n=n.split(\"|\"));for(var a=0;a<=10;a++)s[a]=t[a]||s[a],l[a]=n[a]||l[a]}\"string\"==typeof e.last&&(c=e.last),\"string\"==typeof e.delim&&(d=e.delim),\"string\"==typeof e.empty&&(u=e.empty),\"function\"==typeof e.formatNumber&&(g=e.formatNumber),\"function\"==typeof e.formatter&&(m=e.formatter)}},L=w.resetFormat=function(){s=\" millisecond| second| minute| hour| day| week| month| year| decade| century| millennium\".split(\"|\"),l=\" milliseconds| seconds| minutes| hours| days| weeks| months| years| decades| centuries| millennia\".split(\"|\"),c=\" and \",d=\", \",u=\"\",g=function(e){return e},m=f};w.setLabels=function(e,t,n,a,o,i,r){E({singular:e,plural:t,last:n,delim:a,empty:o,formatNumber:i,formatter:r})},w.resetLabels=L,L(),e&&e.exports?e.exports=w:\"function\"==typeof window.define&&void 0!==window.define.amd&&window.define(\"countdown\",[],(function(){return w}))}(void 0);window.addEventListener(\"DOMContentLoaded\",(function(){if(document.querySelector(\"body\").classList.contains(\"draw-index\")||document.querySelector(\"body\").classList.contains(\"draw-detail\")){var e=document.querySelectorAll(\".countdown\");setInterval((function(){e.forEach((function(e){var t=(void 0)(null,parseInt(e.dataset.ticks));e.innerHTML=\"\".concat(t.days,\" days : \").concat(t.hours,\" hrs : \").concat(t.minutes,\" mins : \").concat(t.seconds,\" secs\")}))}),500)}}))},sJnI:function(e,t,n){\"use strict\";n.d(t,\"a\",(function(){return a}));var a=function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],t=document.querySelector(\".loading-spinner__container--primary\"),n=document.querySelector(\".loading-spinner--primary\");t&&n&&(e?(t.classList.contains(\"active-spinner\")||t.classList.add(\"active-spinner\"),setTimeout((function(){n.classList.contains(\"active-spinner\")||n.classList.add(\"active-spinner\")}),100)):setTimeout((function(){n.classList.contains(\"active-spinner\")&&n.classList.remove(\"active-spinner\"),t.classList.contains(\"active-spinner\")&&t.classList.remove(\"active-spinner\")}),100))}},sROl:function(e,t,n){\"use strict\";(function(e,t){var a=n(\"sJnI\"),o=n(\"TEza\");document.addEventListener(\"DOMContentLoaded\",(function(){if(document.querySelector(\"body\").classList.contains(\"second-chance-landing\")){var n=0,i=!1,r=document.getElementById(\"secondChanceModal\"),s=function(e){var t=\"\",n=e.replace(/\\D/g,\"\");return n.length>=4&&(t+=n.substr(0,4)+\"-\",n=n.substr(4)),n.length>=9&&(t+=n.substr(0,9)+\"-\",n=n.substr(9)),t.length>14?t+=n.substr(0,6):t+=n.substr(0,19),t};1!==e(\".tab-pane.active\").length&&(e(\".tab-pane\").removeClass(\"active\"),e(\".tab-pane\").first().addClass(\"active\"),e(\".mysecondchance-tab-links\").removeClass(\"active\"),e(\".mysecondchance-tab-links\").first().addClass(\"active\"));var l=new URLSearchParams(window.location.search);if(l.get(\"promotion\")){var c=l.get(\"promotion\");document.querySelector(\"#tab-\"+c)&&Object(o.a)(document.querySelector(\"#tab-\"+c),null,null,null)}e(\".add-another-ticket-link\").click((function(e){r.classList.add(\"show\"),g();var t=void 0!==this.dataset.gametype?this.dataset.gametype:document.querySelector(\".mysecondchance-card-link-loggedin.add-another-ticket-link\").dataset.gametype;m(this.dataset.promotion,t),v(this.dataset.promotion,this.dataset.game)}));var d=0,u=0;e(\"#additionalTickets\").unbind(\"click\"),e(\"#additionalTickets\").click((function(t){if(t.preventDefault(),d<19){if(l=document.getElementById(\"secondChanceNumberRow0\"),c=l.cloneNode(!0),m=c.querySelector(\"option[selected]\")?c.querySelector(\"option[selected]\").dataset.gametype:c.querySelector(\"[data-gametype].active\").dataset.gametype,c.id=\"secondChanceNumberRow\"+ ++u,l.parentNode.appendChild(c),c.querySelector(\".second-chance-entry .active\").classList.add(\"d-none\"),c.querySelector(\".second-chance-entry .active\").classList.remove(\"active\"),c.querySelector(\".second-chance-entry [data-gametype=\"+m+\"]\").classList.add(\"active\"),c.querySelector(\".second-chance-entry [data-gametype=\"+m+\"]\").classList.remove(\"d-none\"),document.querySelectorAll(\"#gameTypes\").forEach((function(e){e.addEventListener(\"change\",(function(e){var t=e.target.querySelector('[value=\"'+e.target.value+'\"]').dataset.gametype,a=e.target.parentElement.parentElement;a.querySelector(\".second-chance-entry .active\").classList.add(\"d-none\"),a.querySelector(\".second-chance-entry .active\").classList.remove(\"active\"),a.querySelector(\".second-chance-entry [data-gametype=\"+t+\"]\").classList.add(\"active\"),a.querySelector(\".second-chance-entry [data-gametype=\"+t+\"]\").classList.remove(\"d-none\"),\"FastPlay\"===t&&(a.querySelector('.second-chance-entry > [data-gametype=\"'+t+'\"].active #entryCode').addEventListener(\"input\",(function(e){var t=e.target.value.replace(/-/g,\"\"),a=s(t);i||(n=e.target.selectionStart),e.target.value=a,i?(e.target.setSelectionRange(n-1,n-1),n=0,i=!1):(e.target.value.replace(/\\D/g,\"\"),21===a.length&&15===n&&(n+=1),(5===a.length||15===a.length)&&n++,e.target.setSelectionRange(n,n))})),a.querySelector('.second-chance-entry > [data-gametype=\"'+t+'\"].active #entryCode').addEventListener(\"keydown\",(function(e){var t=e.keyCode||e.charCode;8!=t&&46!=t||(i=!0,n=e.target.selectionStart)}))),a.querySelector('.second-chance-entry > [data-gametype=\"'+t+'\"].active #entryGate')&&a.querySelector('.second-chance-entry > [data-gametype=\"'+t+'\"].active #entryGate').addEventListener(\"keypress\",(function(e){e.target.parentElement.parentElement;var t=e.keyCode;if(t>31&&(t<48||t>57))return e.preventDefault(),!1}))}));var t=e.parentElement.parentElement,a=t.querySelector(\".second-chance-entry [data-gametype].active\").dataset.gametype;\"FastPlay\"===a&&(t.querySelector('.second-chance-entry > [data-gametype=\"'+a+'\"].active #entryCode').addEventListener(\"input\",(function(e){var t=e.target.value.replace(/-/g,\"\"),a=s(t);i||(n=e.target.selectionStart),e.target.value=a,i?(e.target.setSelectionRange(n-1,n-1),n=0,i=!1):(e.target.value.replace(/\\D/g,\"\"),21===a.length&&15===n&&(n+=1),(5===a.length||15===a.length)&&n++,e.target.setSelectionRange(n,n))})),t.querySelector('.second-chance-entry > [data-gametype=\"'+a+'\"].active #entryCode').addEventListener(\"keydown\",(function(e){var t=e.keyCode||e.charCode;8!=t&&46!=t||(i=!0,n=e.target.selectionStart)}))),t.querySelector('.second-chance-entry > [data-gametype=\"'+a+'\"].active #entryGate')&&t.querySelector('.second-chance-entry > [data-gametype=\"'+a+'\"].active #entryGate').addEventListener(\"keypress\",(function(e){e.target.parentElement.parentElement;var t=e.keyCode;if(t>31&&(t<48||t>57))return e.preventDefault(),!1}))})),document.querySelectorAll(\".second-chance-landing .entry-date\")){var a=document.querySelectorAll(\".second-chance-landing .entry-date\").length,o=document.querySelectorAll(\".second-chance-landing .entry-date\")[a-1];o.classList.add(\"new-flatpicker--\"+a);var r=\".new-flatpicker--\"+a;setTimeout((function(){flatpickr(r,{maxDate:\"today\",dateFormat:\"m/d/Y\",allowInput:!0,disableMobile:\"false\"})}),0),o&&o.flatpickr().clear()}e(\"#secondChanceNumberRow\"+u).find(\"input\").val(\"\"),d++}var l,c,m})),e(\"#secondChanceModal .close\").unbind(\"click\"),e(\"#secondChanceModal .close\").click((function(e){e.preventDefault(),u=0,r.classList.toggle(\"show\")})),document.querySelector(\".second-chance-landing .entry-date\")&&flatpickr(\".second-chance-landing .entry-date\",{maxDate:\"today\",dateFormat:\"m/d/Y\",allowInput:!0,disableMobile:\"false\"}),e(\"#secondChanceEnter\").unbind(\"click\"),e(\"#secondChanceEnter\").click((function(n){n.preventDefault(),Object(a.a)(!0),e(this);var o=e(this);if(\"Enter\"==e(this).text()){o.attr(\"disabled\",!0);var i=\"\",r=\"\",s=\"\",l=\"\",c=document.getElementById(\"secondChanceModal\").getAttribute(\"data-gamename\");e(\".entry-gameid\").each((function(e,t){i+=t.value,i+=\"|\"})),i=i.slice(0,-1),e(\".second-chance-entry > div.active\").each((function(t,n){if(e(n).find(\".entry-code\").val().length>0){r+=e(n).find(\".entry-code\").val(),e(n).find(\".entry-date\").length>0&&(r+=\"^\"+e(n).find(\".entry-date\").val(),e(n).find(\".entry-time\").length>0&&(r+=\"^\"+e(n).find(\".entry-time\").val())),r+=\"|\";var a=\"Draw\"===e(n)[0].dataset.gametype?\"1\":\"Instant\"===e(n)[0].dataset.gametype?\"2\":\"3\";s+=a,s+=\"|\",e(n).find(\"#entryGate\").length>0&&(l+=e(n).find(\"#entryGate\").val()),l+=\"|\"}else{r+=\"IncompleteData\",e(n).find(\".entry-date\").length>0&&(r+=\"^\"+e(n).find(\".entry-date\").val(),e(n).find(\".entry-time\").length>0&&(r+=\"^\"+e(n).find(\".entry-time\").val())),r+=\"|\";var o=\"Draw\"===e(n)[0].dataset.gametype?\"1\":\"Instant\"===e(n)[0].dataset.gametype?\"2\":\"3\";s+=o,s+=\"|\",e(n).find(\"#entryGate\").length>0?l+=e(n).find(\"#entryGate\").val():l+=\"IncompleteData\",l+=\"|\"}}));var d={promotionId:e(\"#gameTypes\").data(\"promotion\"),gameIds:i,entryCodes:r,gameTypes:s,gridIds:l};e.ajax({url:\"/games/enter-second-chance-promotion-games\",type:\"PATCH\",data:JSON.stringify(d),dataType:\"json\",contentType:\"application/json; charset=utf-8\",error:function(e){console.log(\"Error: \"),console.log(e)},success:function(n){var o=t.parseJSON(n);o.success?(Object(a.a)(!1),e.each(o.result.promotionEntries,(function(t,n){var a=e(\"#secondChanceNumberRow\"+t.toString());a.find(\".active #entryCode\").attr(\"disabled\",!0),\"fast play\"===n.gameType&&a.find(\".active #entryGate\").attr(\"disabled\",!0),a.find(\"#gameTypes\").attr(\"disabled\",!0);var o=a.find(\"#responseMessage\"),i=3===n.statusCode?\"entry-valid\":\"entry-invalid\";o.attr(\"class\",i),n.statusCode&&o.html({1:function(){return\"Invalid Entry\"},2:function(){return\"Previously Entered\"},3:function(){return\"Entered\"},4:function(){return\"Incomplete Data\"},5:function(){return\"Invalid Promotion\"},6:function(){return\"Expired Promotion\"},7:function(){return\"Valid Entry Code\"},8:function(){return\"Invalid Entry\"}}[n.statusCode]()),\"entry-invalid\"!=i&&dataLayer.push({event:\"2nd chance entry\",eventCategory:\"n/a\",eventAction:d.gameIds,eventLabel:c})})),e(\"#secondChanceEnter\").text(\"Reset\"),e(\"#secondChanceEnter\").removeAttr(\"disabled\")):(Object(a.a)(!1),e(\"#entryEnterMessage\").html(o.message))},async:!0,processData:!1}),e(\"#additionalTickets\").hide()}else u=0,Object(a.a)(!1),g()}));var m=function(t,a){\"FastPlay\"===a&&(document.querySelector('.second-chance-entry > [data-gametype=\"'+a+'\"] #entryCode').addEventListener(\"input\",(function(e){var t=e.target.value.replace(/-/g,\"\"),a=s(t);i||(n=e.target.selectionStart),e.target.value=a,i?(e.target.setSelectionRange(n-1,n-1),n=0,i=!1):(e.target.value.replace(/\\D/g,\"\"),21===a.length&&15===n&&(n+=1),(5===a.length||15===a.length)&&n++,e.target.setSelectionRange(n,n))})),document.querySelector('.second-chance-entry > [data-gametype=\"'+a+'\"] #entryCode').addEventListener(\"keydown\",(function(e){var t=e.keyCode||e.charCode;8!=t&&46!=t||(i=!0,n=e.target.selectionStart)}))),document.querySelector('.second-chance-entry > [data-gametype=\"'+a+'\"] #entryGate')&&document.querySelector('.second-chance-entry > [data-gametype=\"'+a+'\"] #entryGate').addEventListener(\"keypress\",(function(e){e.target.parentElement.parentElement;var t=e.keyCode;if(t>31&&(t<48||t>57))return e.preventDefault(),!1})),document.querySelector('.second-chance-entry > [data-gametype=\"Instant\"]').classList.add(\"d-none\"),document.querySelector('.second-chance-entry > [data-gametype=\"Instant\"]').classList.remove(\"active\"),document.querySelector('.second-chance-entry > [data-gametype=\"Draw\"]').classList.add(\"d-none\"),document.querySelector('.second-chance-entry > [data-gametype=\"Draw\"]').classList.remove(\"active\"),document.querySelector('.second-chance-entry > [data-gametype=\"FastPlay\"]').classList.add(\"d-none\"),document.querySelector('.second-chance-entry > [data-gametype=\"FastPlay\"]').classList.remove(\"active\"),document.querySelector('.second-chance-entry > [data-gametype=\"'+a+'\"]').classList.remove(\"d-none\"),document.querySelector('.second-chance-entry > [data-gametype=\"'+a+'\"]').classList.add(\"active\");var o=e(\"#ModalContent_\"+t),r=e(\"#ModalTitle_\"+t),l=e(\"#PromotionModalContent\");e(\"#modalPromotionTitle\").html(\"Enter \"+r.val()+\" my2ndChance Promotion\"),document.getElementById(\"secondChanceModal\").setAttribute(\"data-gameName\",r.val()),l.html(o.val())},g=function(t){for(var n=document.getElementById(\"secondChanceNumbersContainer\");n.children.length>1;)n.removeChild(n.lastChild);e(\"#responseMessage\").html(\"\");var a=e(\"input.entry-code\");a.val(\"\"),a.removeAttr(\"disabled\");var o=e(\"input.entry-date\");o.val(\"\"),o.removeAttr(\"disabled\");var i=e(\"#entryGate\");i&&(i.val(\"\"),i.removeAttr(\"disabled\"));var r=e(\"input.entry-time\");r.val(\"\"),r.removeAttr(\"disabled\"),e(\"#gameTypes\").removeAttr(\"disabled\"),e(\"#entryEnterMessage\").html(\"\");var s=document.getElementById(\"gameTypes\");s.selectedIndex=s.selectedIndex,e(\"#additionalTickets\").show(),e(\"#secondChanceEnter\").text(\"Enter\"),document.querySelector(\"#secondChanceEnter\").setAttribute(\"disabled\",!0),d=0},v=function(a,o){return e.ajax({url:\"/games/get-second-chance-promotion-games?id=\"+a,type:\"GET\",dataType:\"json\",contentType:\"application/json; charset=utf-8\",async:!0,processData:!1,error:function(e){alert(\"Error: \"+e)},success:function(n){var i=t.parseJSON(n),r=e(\"#gameTypes\");return r.data(\"promotion\",a),r.html(\"\"),e.each(i,(function(e,t){if(0==t.Inactive){var n=1===t.GameType?\"Draw\":2===t.GameType?\"Instant\":\"FastPlay\";parseInt(o)===t.GameId?r.append(\"\"):r.append(\"\")}})),!1}}),document.querySelector(\"#gameTypes\").addEventListener(\"change\",(function(e){var t=e.target.querySelector('[value=\"'+e.target.value+'\"]').dataset.gametype,a=e.target.parentElement.parentElement;a.querySelector(\".second-chance-entry .active\").classList.add(\"d-none\"),a.querySelector(\".second-chance-entry .active\").classList.remove(\"active\"),a.querySelector(\".second-chance-entry [data-gametype=\"+t+\"]\").classList.add(\"active\"),a.querySelector(\".second-chance-entry [data-gametype=\"+t+\"]\").classList.remove(\"d-none\"),\"FastPlay\"===t&&(document.querySelector('.second-chance-entry > [data-gametype=\"'+t+'\"] #entryCode').addEventListener(\"input\",(function(e){var t=e.target.value.replace(/-/g,\"\"),a=s(t);i||(n=e.target.selectionStart),e.target.value=a,i?(e.target.setSelectionRange(n-1,n-1),n=0,i=!1):(e.target.value.replace(/\\D/g,\"\"),21===a.length&&15===n&&(n+=1),(5===a.length||15===a.length)&&n++,e.target.setSelectionRange(n,n))})),document.querySelector('.second-chance-entry > [data-gametype=\"'+t+'\"] #entryCode').addEventListener(\"keydown\",(function(e){var t=e.keyCode||e.charCode;8!=t&&46!=t||(i=!0,n=e.target.selectionStart)}))),a.querySelector('.second-chance-entry > [data-gametype=\"'+t+'\"].active #entryGate')&&a.querySelector('.second-chance-entry > [data-gametype=\"'+t+'\"].active #entryGate').addEventListener(\"keypress\",(function(e){e.target.parentElement.parentElement;var t=e.keyCode;if(t>31&&(t<48||t>57))return e.preventDefault(),!1}))})),!1}}}))}).call(this,n(\"lTfz\"),n(\"lTfz\"))},t0DJ:function(e,t,n){(function(e){window.addEventListener(\"DOMContentLoaded\",(function(){var t=document.getElementById(\"jackpotDrawer\");if(t){t.style.display=\"block\";var n=\"\".concat(t.scrollHeight,\"px\");t.style.display=\"\";var a=document.getElementById(\"jackpotDrawerTrigger\"),o=document.getElementById(\"jackpotDrawerArrow\");a.addEventListener(\"click\",(function(a){a.preventDefault(),e(document).off(\"scroll\");var i=o.classList.contains(\"closed\");o.classList.toggle(\"closed\"),dataLayer.push({event:\"header - update current numbers\",eventCategory:\"n/a\",eventAction:\"n/a\",eventLabel:\"n/a\"}),i?(t.style.height=n,t.classList.add(\"open\"),window.setTimeout((function(){return t.style.height=\"\"}),1)):(t.style.height=\"\".concat(t.scrollHeight,\"px\"),window.setTimeout((function(){t.style.height=\"0\",t.classList.remove(\"open\")}),1))}))}})),e(\"document\").ready((function(){function t(){\"\"!==e(\"#searchText\").val().trim()?e(\"#submitSearch\").show():e(\"#submitSearch\").hide()}if(e(\"#submitSearch\").hide(),e(\"#search\").click((function(){e(\"#searchText\").focus()})),e(\"#search-bar-trigger-mobile\").click((function(){e(\"#searchText\").focus()})),e(\"#searchText\").keyup((function(){t()})),e(\"#searchText\").change((function(){t()})),e(\".jackpot-alert-card.jackpot-trigger\").length&&!function(e){for(var t=e+\"=\",n=document.cookie.split(\";\"),a=0;a0)return 0;t=location,e=this.currentLocation.coords}return this.geoLocator.calcDistance({from:e,to:t,unitSystem:this.geoLocator.UnitSystem.IMPERIAL})}}}).call(this,n(\"yLpj\"))},ypuH:function(e,t,n){\"use strict\";(function(e,t){var a=n(\"nbsC\"),o=n.n(a),i=n(\"vDqi\"),r=n.n(i),s=n(\"I9E9\"),l=n.n(s),c=n(\"NuWd\"),d=n(\"WFwx\"),u=n(\"FbUv\"),m=n(\"cxd3\"),g=n(\"0eBe\");function v(e,t){var n=\"undefined\"!=typeof Symbol&&e[Symbol.iterator]||e[\"@@iterator\"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(e){if(\"string\"==typeof e)return f(e,t);var n={}.toString.call(e).slice(8,-1);return\"Object\"===n&&e.constructor&&(n=e.constructor.name),\"Map\"===n||\"Set\"===n?Array.from(e):\"Arguments\"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?f(e,t):void 0}}(e))||t&&e&&\"number\"==typeof e.length){n&&(e=n);var a=0,o=function(){};return{s:o,n:function(){return a>=e.length?{done:!0}:{done:!1,value:e[a++]}},e:function(e){throw e},f:o}}throw new TypeError(\"Invalid attempt to iterate non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\")}var i,r=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return r=e.done,e},e:function(e){s=!0,i=e},f:function(){try{r||null==n.return||n.return()}finally{if(s)throw i}}}}function f(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,a=Array(t);n1&&void 0!==arguments[1]&&arguments[1];c?(t=s?s.UserName:e.email,n=s?s.PhoneNumber:e.phoneNumber,a=s?s.PhoneNumber:e.phoneNumber,o=s?s.UserName:e.email,i=!1,l=!0):(t=y.querySelector(\"#authResendAccountConfirmationOne-email\")&&y.querySelector(\"#authResendAccountConfirmationOne-email\").innerHTML.length>0?y.querySelector(\"#authResendAccountConfirmationOne-email\").innerHTML:e.email,n=y.querySelector(\"#authResendAccountConfirmationOne-phone\")&&y.querySelector(\"#authResendAccountConfirmationOne-phone\").innerHTML.length>0?y.querySelector(\"#authResendAccountConfirmationOne-phone\").innerHTML:e.phoneNumber,a=e.newPhoneNumber?e.newPhoneNumber:n,o=e.newEmail?e.newEmail:t,i=!!e.resendConfirmEmail&&\"on\"===e.resendConfirmEmail,l=!e.resendConfirmText||\"on\"===e.resendConfirmText);var d=document.querySelector('[name=\"__RequestVerificationToken')&&document.querySelector('[name=\"__RequestVerificationToken').value,u={userName:t,phoneNumber:n,newEmail:o,newPhoneNumber:a,confirmByText:l,confirmByEmail:i};return r.a.post(\"/modal/account/resend-confirmation\",u,{headers:{\"X-Requested-With\":\"XMLHttpRequest\",\"X-XSRF-TOKEN\":d}}).then((function(e){return dataLayer.push({event:\"Account Confirmation Resent\",eventCategory:\"n/a\",eventAction:\"n/a\",eventLabel:\"Registration Step: Account Confirmation Resend\"}),e}))},B=function(e){return/[a-z]/.test(e)},M=function(e){return/[A-Z]/.test(e)},N=function(e){return/[0-9]/.test(e)},O=function(e){return e.length>=8},P=function(e){return/^[A-Za-z ]+$/.test(x)},F=function(e){return/^[a-zA-ZÀ-ž.'-]+$/i.test(e)},j=function(e){var t,n=arguments.length>1&&void 0!==arguments[1]&&arguments[1],a=e.target.name;t=n?\"firstName\"===a?e.target.parentElement.parentElement.parentElement.querySelector('[name=\"LastName\"]').value:e.target.parentElement.parentElement.parentElement.querySelector('[name=\"FirstName\"]').value:\"firstName\"===a?e.target.parentElement.parentElement.querySelector('[name=\"lastName\"]').value:e.target.parentElement.parentElement.querySelector('[name=\"firstName\"]').value,189!==e.key&&8!==e.key&&37!==e.key&&39!==e.key&&(e.target.value+e.key).length>=2&&!P(e.target.value+e.key)?e.preventDefault():F(e.target.value+e.key)?P(e.target.value)&&P(t)&&(n?document.getElementById(\"registerSubmit\").disabled=!1:document.getElementById(\"authNext\").disabled=!1):e.preventDefault()},R=function(e,t){if(e)return e===t},z=function(e){return B(e)&&M(e)&&N(e)&&O(e)},H=function(e,t){t?(e.classList.contains(\"focused-input\")&&e.classList.remove(\"focused-input\"),e.classList.add(\"validated-input\")):(e.classList.contains(\"validated-input\")&&e.classList.remove(\"validated-input\"),e.classList.add(\"focused-input\"))},Y=function(e){e&&(e.addEventListener(\"focus\",(function(e){\"radio\"!==e.target.type&&\"checkbox\"!==e.target.type&&e.target.previousElementSibling.classList&&e.target.previousElementSibling.classList.contains(\"form-control-label\")&&(e.target.previousElementSibling.classList.contains(\"active-input\")||e.target.previousElementSibling.classList.add(\"active-input\"))})),e.addEventListener(\"blur\",(function(e){\"radio\"!==e.target.type&&\"checkbox\"!==e.target.type&&(e.target.value||e.target.previousElementSibling.classList&&e.target.previousElementSibling.classList.contains(\"active-input\")&&e.target.previousElementSibling.classList.remove(\"active-input\"))})),\"radio\"!==e.type&&\"checkbox\"!==e.type&&e.previousElementSibling.classList&&e.previousElementSibling.classList.contains(\"form-control-label\")&&\"\"!==e.value&&(e.previousElementSibling.classList.contains(\"active-input\")||e.previousElementSibling.classList.add(\"active-input\")))},U=function(e){var t=function(e){var t=\"\",n=\"\",a=\"\";return\"sign-in\"===e?(t=p.dataset.titleSignIn,a=\"Sign In\"):\"register\"===e?(t=p.dataset.titleRegister,n=p.dataset.subtitleRegister,a=\"Next\"):\"forgot-password\"===e?(t=p.dataset.titleForgotPassword,a=\"Reset Password\"):\"resend-account-confirmation\"===e||\"two-factor\"===e?(t=p.dataset.titleSignIn,a=\"Next\"):a=\"Next\",{title:t,subtitle:n,logo:p.dataset.logo,buttonText:a,loginTitle:p.dataset.loginTitle,loginIcon:p.dataset.loginIcon,loginText:p.dataset.loginText,registerOneTitle:p.dataset.registerOneTitle,registerOneIcon:p.dataset.registerOneIcon,registerOneText:p.dataset.registerOneText,registerTwoTitle:p.dataset.registerTwoTitle,registerTwoIcon:p.dataset.registerTwoIcon,registerTwoText:p.dataset.registerTwoText,registerThreeTitle:p.dataset.registerThreeTitle,registerThreeIcon:p.dataset.registerThreeIcon,registerThreeText:p.dataset.registerThreeText,registerFiveTitle:p.dataset.registerFiveTitle,registerFiveIcon:p.dataset.registerFiveIcon,registerFiveText:p.dataset.registerFiveText,registerSixTitle:p.dataset.registerSixTitle,registerSixIcon:p.dataset.registerSixIcon,registerSixText:p.dataset.registerSixText}}(e);y.innerHTML=o.a.render(p.innerHTML,t),y.dataset.currentMode=e,y&&(y.querySelectorAll(\"input\").forEach((function(e){Y(e)})),function(){var e=y.dataset.currentMode,t=\"\";if(\"sign-in\"===e)t=\"#authLogin\";else if(\"forgot-password\"===e)t=\"#authForgotPasswordOne\";else if(\"two-factor\"===e)t=\"#authTwoFactorOne\";else if(\"resend-account-confirmation\"===e)t=\"#authResendAccountConfirmationOne\";else{t=\"#authRegisterOne\";var n=document.querySelector('[name=\"birthDate\"]'),a=document.querySelector('#authRegisterOne [name=\"firstName\"]'),o=document.querySelector('#authRegisterOne [name=\"lastName\"]');flatpickr(\"[name='birthDate']\",{dateFormat:\"m/d/Y\",allowInput:!0,disableMobile:!0,onKeyDown:function(e,t,n,a){return a.keyCode>=48&&a.keyCode<=57||a.keyCode>=96&&a.keyCode<=105||191==a.keyCode||8==a.keyCode||9==a.keyCode||(a.preventDefault(),!1)}}),n.addEventListener(\"keyup\",(function(e){8!==e.keyCode&&(2===n.value.length||5===n.value.length)&&(n.value=n.value+\"/\")})),a.addEventListener(\"blur\",(function(e){P(e.target.value)||(a.classList.add(\"active-error\"),a.nextElementSibling.classList.add(\"show\"),a.nextElementSibling.innerText=\"Please provide a valid name.\",document.getElementById(\"authNext\").disabled=!0)})),o.addEventListener(\"blur\",(function(e){P(e.target.value)||(document.getElementById(\"authNext\").disabled=!0,o.classList.add(\"active-error\"),o.nextElementSibling.classList.add(\"show\"),o.nextElementSibling.innerText=\"Please provide a valid name.\")}))}T(t),y.dataset.currentStep=t}())},W=function(){document.querySelector(\".animated-form:not(.modal-container)\")&&document.querySelectorAll(\".animated-form:not(.modal-container) input:not([type=hidden])\").forEach((function(e){Y(e)}))};Y(document.querySelector(\"#locationZipCode\")),W(),t(document).on(\"click\",'[data-target=\"registerModal\"]',(function(e){e.preventDefault(),\"register\"===e.target.getAttribute(\"data-mode\")&&dataLayer.push({event:\"mylottery registration\",eventCategory:\"n/a\",eventAction:\"n/a\",eventLabel:\"Registration Step: 0 (init modal)\"}),S=e.target.id,U(e.target.dataset.mode),y.classList.toggle(\"show\")})),y&&(y.addEventListener(\"click\",(function(t){t.target.hasAttribute(\"name\")&&\"firstName\"!==t.target.attributes.name.value&&\"lastName\"!==t.target.attributes.name.value&&Object(c.a)();var n,a=y.dataset.currentStep,o=t.target;if(y.querySelectorAll(\".active-input\").forEach((function(e){e&&!e.nextElementSibling.value&&e.classList.contains(\"active-input\")&&e.classList.remove(\"active-input\")})),\"authNext\"===o.id){if(A()){var s=y.dataset.currentMode;if(\"sign-in\"===s){var l=y.querySelector(\"#loginError\");if(l.classList.remove(\"show\"),I(l),Object(c.c)(a)){o.disabled=!0;var v=y.querySelector(\"#loginModalUser\").value,f=y.querySelector(\"#loginModalPassword\").value,p=y.querySelector(\"#loginModalRemember\").checked;L=p,function(e,t,n){return Object(m.c)(),r.a.post(\"/modal/account/sign-in\",{userName:e,password:t,isPersistent:n}).then((function(e){return Object(g.a)(),e.data}))}(v,f,p).then((function(e){if(e.authenticated){if(dataLayer.push({event:\"sign in\",eventCategory:\"n/a\",eventAction:\"n/a\",eventLabel:\"sign in successful\"}),document.body.classList.add(\"user-authenticated\"),window.dispatchEvent(new CustomEvent(\"user-authenticated\",{detail:{authElementId:S}})),document.getElementById(\"game\"))try{Object(u.a)()}catch(e){}Object(d.a)(),q(!0)}else if(e.provider&&\"None\"!==e.provider)q(),U(\"two-factor\"),y.querySelector(\"#authTwoFactorOne-providerName\").innerHTML=e.provider;else if(e.requiresConfirmation)U(\"resend-account-confirmation\"),y.querySelector(\"#authResendAccountConfirmationOne-email\").innerHTML=e.email,y.querySelector(\"#authResendAccountConfirmationOne-phone\").innerHTML=e.phone;else if(e.redirect)window.location=e.redirect;else{o.disabled=!1;var t=\"\";e.errors&&e.errors.length&&(e.errors.forEach((function(e){t+=\"\".concat(e,\"
\")})),l.innerHTML=t,l.classList.add(\"show\"))}})).catch((function(e){o.disabled=!1,l.innerHTML=\"Looks like we're having trouble processing your request. Please try again in a few minutes.\",l.classList.add(\"show\")}))}}else if(\"register\"===s){if(Object(c.c)(a)){o.disabled=!0;var h=y.querySelector(\"#registerError\");h.classList.remove(\"show\"),I(h);var b=Object(c.b)([\"#authRegisterOne\",\"#authRegisterTwo\",\"#authRegisterThree\"]);(function(t){var n=e.grecaptcha.getResponse(i),a={firstName:t.firstName,lastName:t.lastName,birthDate:t.birthDate,userName:t.email,password:t.createPassword,phoneNumber:t.phoneNumber,confirmPassword:t.confirmPassword,confirmByText:\"on\"===t.confirmText,confirmByEmail:\"on\"===t.confirmEmail,recaptcha:n,gaClientIdArray:Object(m.b)()};return r.a.post(\"modal/account/register\",a,{headers:{\"X-XSRF-TOKEN\":document.querySelector('input[name=\"__RequestVerificationToken\"]').value}}).then((function(e){return e.data}))})(b).then((function(t){if(e.grecaptcha.reset(i),t.success)\"on\"===b.confirmText?(w=t.userId,D().classList.toggle(\"d-none\"),T(\"#authRegisterFour\")):\"on\"===b.confirmEmail&&(y.querySelectorAll(\"[data-fill]\").forEach((function(e){e.innerHTML=t[e.dataset.fill]})),D().classList.toggle(\"d-none\"),T(\"#authRegisterFive\"),o.innerHTML=\"Close\"),dataLayer.push({event:\"mylottery registration\",eventCategory:\"n/a\",eventAction:\"n/a\",eventLabel:\"Registration Step: Registration Data Passed\",\"myLOTTERY Registration Source\":\"Web\"});else{o.disabled=!1;var n=\"\";t.errors&&t.errors.length&&(t.errors.forEach((function(e){n+=\"\".concat(e,\"
\")})),h.innerHTML=n,h.classList.add(\"show\"))}})).catch((function(){o.disabled=!1,h.innerHTML=\"Looks like we're having trouble processing your request. Please try again in a few minutes.\",h.classList.remove(\"d-none\")})),document.querySelector(\"#resendVerificationLP\").addEventListener(\"click\",(function(){_(b,!0)}))}}else if(\"forgot-password\"===s){if(Object(c.c)(a)){o.disabled=!0;var k=y.querySelector(\"#forgotPasswordError\"),x=document.querySelector(\".step-forgot-password-1 #email-error\");k.classList.remove(\"show\"),x.classList.remove(\"show\"),I(k);var B=y.querySelector(\"#forgotPasswordModalUser\").value;/^([a-zA-Z0-9_.+-])+\\@(([a-zA-Z0-9-])+\\.)+([a-zA-Z0-9]{2,4})+$/.test(B)?(n=B,r.a.post(\"modal/account/forgot-password\",{userName:n},{headers:{\"Content-Type\":\"application/json;charset=UTF-8\"}}).then((function(e){return dataLayer.push({event:\"Forgot Password\",eventCategory:\"n/a\",eventAction:\"n/a\",eventLabel:\"Forgot Password Submission\"}),e.data}))).then((function(e){e.success?(D().classList.toggle(\"d-none\"),T(\"#authForgotPasswordTwo\"),o.innerHTML=\"Close\"):(o.disabled=!1,k.classList.add(\"show\"),k.innerHTML=\"Looks like we're having trouble processing your request. Please try again in a few minutes.\",k.classList.remove(\"d-none\"))})).catch((function(){o.disabled=!1,k.innerHTML=\"Looks like we're having trouble processing your request. Please try again in a few minutes.\",k.classList.remove(\"d-none\")})):(o.disabled=!1,x.innerHTML=\"Please enter a valid email address.\",x.classList.add(\"show\"))}}else if(\"two-factor\"===s){if(Object(c.c)(a)){o.disabled=!0;var M=y.querySelector(\"#twoFactorVerificationError\");M.classList.remove(\"show\"),I(M),function(){var e=Object(c.b)([\"#authTwoFactorTwo\"]);return r.a.post(\"/modal/account/verify-two-factor-auth\",{twoFactorCode:e.twoFactorCode,isPersistent:L}).then((function(e){return e.data}))}().then((function(e){if(e.authenticated)window.dispatchEvent(new CustomEvent(\"user-authenticated\",{detail:{authElementId:S}})),document.getElementById(\"game\")&&Object(u.a)(),Object(d.a)(),q(!0);else{o.disabled=!1;var t=\"\";e.errors&&e.errors.length&&(e.errors.forEach((function(e){t+=\"\".concat(e,\"
\")})),M.innerHTML=t,M.classList.add(\"show\"))}})).catch((function(){o.disabled=!1,M.innerHTML=\"Looks like we're having trouble processing your request. Please try again in a few minutes.\",M.classList.remove(\"d-none\")}))}}else if(\"resend-account-confirmation\"===s&&Object(c.c)(a)){o.disabled=!0;var N=y.querySelector(\"#accountResendConfirmationError\");N.classList.remove(\"show\"),I(N);var O=Object(c.b)([\"#authResendAccountConfirmationOne\"]);_(O).then((function(e){var t;(t=JSON.parse(e.config.data),r.a.post(\"account/validate-email/\",{email:t.newEmail}).then((function(e){return e.data})).catch((function(e){return console.error(e)}))).then((function(t){if(e.data.success&&t.UserExists&&!t.UserConfirmed)document.querySelector('[data-fill=\"firstName\"]')&&(document.querySelector('[data-fill=\"firstName\"]').parentElement.innerText=\"You did it!\"),\"on\"===O.resendConfirmText?(w=e.data.userId,E=e.data.phoneNumber,D().classList.toggle(\"d-none\"),T(\"#authRegisterFour\")):\"on\"===O.resendConfirmEmail&&(y.querySelectorAll(\"[data-fill]\").forEach((function(e){e.parentElement.innerText=\"You did it!\"})),D().classList.toggle(\"d-none\"),T(\"#authRegisterFive\"),o.innerHTML=\"Close\");else if(t.UserExists&&t.UserConfirmed){if(t.UserConfirmed)return o.disabled=!1,N.innerText=\"This email is already taken. Please try again.\",N.classList.add(\"show\"),t.data}else{var n=\"\";e.data.errors&&e.data.errors.length&&(e.data.errors.forEach((function(e){n+=\"\".concat(e,\"
\")})),N.innerHTML=n,N.classList.add(\"show\"))}}))})).catch((function(){o.disabled=!1,N.innerHTML=\"Looks like we're having trouble processing your request. Please try again in a few minutes.\",N.classList.remove(\"d-none\")}))}}else if(\"two-factor\"===y.dataset.currentMode&&\"#authTwoFactorOne\"===a){o.disabled=!0;var P=y.querySelector(\"#twoFactorError\");P.classList.remove(\"show\"),I(P),r.a.post(\"/modal/account/two-factor-auth\").then((function(e){return e.data})).then((function(e){if(e.success)D().classList.toggle(\"d-none\"),T(\"#authTwoFactorTwo\");else{o.disabled=!1;var t=\"\";e.errors&&e.errors.length&&(e.errors.forEach((function(e){t+=\"\".concat(e,\"
\")})),P.innerHTML=t,P.classList.add(\"show\"))}})).catch((function(){o.disabled=!1,P.innerHTML=\"Looks like we're having trouble processing your request. Please try again in a few minutes.\",P.classList.remove(\"d-none\")}))}else if(\"register\"!==y.dataset.currentMode&&\"resend-account-confirmation\"!==y.dataset.currentMode||\"#authRegisterFour\"!==a||!w)\"Close\"===o.innerHTML?q(!0):Object(c.c)(a)&&document.querySelector('[name=\"email\"]').value&&function(e){return r.a.post(\"account/validate-email/\",{email:e}).then((function(e){return e.data.UserConfirmed})).catch((function(e){return console.error(e)}))}(document.querySelector('[name=\"email\"]').value).then((function(e){e?(document.querySelector(\"#email-error\").classList.add(\"show\"),document.querySelector(\"#email-error\").innerHTML='This email is already taken. Forgot Password?'):(o.disabled=!0,Object(c.a)(),C())}));else if(Object(c.c)(a)){o.disabled=!0;var F=y.querySelector(\"#verificationError\");F.classList.remove(\"show\"),I(F),function(e){var t=Object(c.b)([\"#authRegisterOne\",\"#authRegisterFour\"]);return r.a.post(\"/modal/account/verify-text-message\",{userId:e,phoneNumber:t.phoneNumber||E,verificationCode:t.verificationCode}).then((function(e){return e.data}))}(w).then((function(e){if(e.success)dataLayer.push({event:\"mylottery registration text confirmation\",eventCategory:\"n/a\",eventAction:\"n/a\",eventLabel:\"mylottery registration text confirmation\"}),Object(d.a)(),y.querySelectorAll(\"[data-fill]\").forEach((function(t){t.innerHTML=e[t.dataset.fill]})),D().classList.toggle(\"d-none\"),T(\"#authRegisterSix\"),document.body.classList.add(\"user-authenticated\"),o.innerHTML=\"Close\";else{o.disabled=!1;var t=\"\";e.errors&&e.errors.length&&(e.errors.forEach((function(e){t+=\"\".concat(e,\"
\")})),F.innerHTML=t,F.classList.add(\"show\"))}})).catch((function(){o.disabled=!1,F.innerHTML=\"Looks like we're having trouble processing your request. Please try again in a few minutes.\",F.classList.remove(\"d-none\")}))}}else if(\"authAlreadyHaveUser\"===o.id||\"authHavePassword\"===o.id)t.preventDefault(),q(),U(\"sign-in\");else if(\"authDoNotHaveUser\"===o.id)t.preventDefault(),q(),U(\"register\");else if(\"authDoNotHavePassword\"===o.id)t.preventDefault(),q(),U(\"forgot-password\");else if(o.classList.contains(\"change-info\")){t.preventDefault();var j=o.closest(\".input-radio\");if(!j.querySelector('input[type=\"radio\"]:checked')){var R=o.closest(\".input-radio\");R.parentElement.querySelectorAll('input[type=\"text\"]').forEach((function(e){e.value=\"\",e.style.display=\"none\"})),R.parentElement.querySelectorAll(\"span.contact\").forEach((function(e){return e.style.display=\"\"})),R.parentElement.querySelectorAll('input[type=\"radio\"]').forEach((function(e){return e.checked=!1})),R.parentElement.querySelectorAll(\".change-info\").forEach((function(e){return e.parentElement.style.display=\"\"})),R.parentElement.querySelectorAll(\".keep-info\").forEach((function(e){return e.parentElement.style.display=\"none\"})),R.querySelector('input[type=\"radio\"]').checked=!0}j.querySelector(\".keep-info\").parentElement.style.display=\"\",o.parentElement.style.display=\"none\",j.querySelector(\"span.contact\").style.display=\"none\",j.querySelector('input[type=\"text\"]').style.display=\"\"}else if(o.classList.contains(\"keep-info\")){t.preventDefault();var z=y.querySelector('input[type=\"radio\"]:checked').closest(\".input-radio\"),H=z.querySelector(\".change-info\");z.querySelector(\"span.contact\").style.display=\"\",z.querySelector('input[type=\"text\"]').style.display=\"none\",z.querySelector('input[type=\"text\"]').value=\"\",o.parentElement.style.display=\"none\",H.parentElement.style.display=\"\"}else if(\"back\"===o.id)C(!0);else if(o.classList.contains(\"close\")||o.closest(\".close\"))t.preventDefault(),q(!0);else if(!o.closest(\".input-radio\")||o.type&&\"text\"===o.type.toLowerCase())\"INPUT\"===o.nodeName&&o.previousElementSibling&&(o.previousElementSibling.classList.contains(\"active-input\")||o.previousElementSibling.classList.add(\"active-input\"));else{var Y=o.closest(\".input-radio\");Y.parentElement.querySelectorAll('input[type=\"radio\"]').forEach((function(e){return e.checked=!1})),Y.querySelector('input[type=\"radio\"]').checked=!0,\"resend-account-confirmation\"===y.dataset.currentMode&&\"#authResendAccountConfirmationOne\"===a&&(Y.parentElement.querySelectorAll(\".change-info\").forEach((function(e){return e.parentElement.style.display=\"\"})),Y.parentElement.querySelectorAll(\".keep-info\").forEach((function(e){return e.parentElement.style.display=\"none\"})),Y.parentElement.querySelectorAll(\"span.contact\").forEach((function(e){return e.style.display=\"\"})),Y.parentElement.querySelectorAll('input[type=\"text\"]').forEach((function(e){e.style.display=\"none\",e.value=\"\"})))}})),y.addEventListener(\"keyup\",(function(e){if(l()().mask(y.querySelectorAll(\"input\")),\"Enter\"!==e.key&&13!==e.which&&13!==e.keyCode||y.querySelector(\"#authNext\").click(),\"#authRegisterTwo\"===y.dataset.currentStep&&\"createPassword\"===e.target.getAttribute(\"name\")){var t=document.querySelector(\"#validation-list--uppercase\"),o=document.querySelector(\"#validation-list--lowercase\"),i=document.querySelector(\"#validation-list--number\"),r=document.querySelector(\"#validation-list--character-count\");H(o,B(e.target.value)),H(t,M(e.target.value)),H(i,N(e.target.value)),H(r,O(e.target.value)),n=z(e.target.value)}\"#authRegisterTwo\"===y.dataset.currentStep&&\"confirmPassword\"===e.target.getAttribute(\"name\")&&(a=R(document.querySelector('[name=\"createPassword\"]').value,e.target.value)),\"#authRegisterTwo\"===y.dataset.currentStep&&n&&a&&(document.getElementById(\"authNext\").disabled=!1)})));var G=function(){document.querySelector(\".animated-form:not(.modal-container)\")&&document.querySelector(\".animated-form:not(.modal-container)\").addEventListener(\"keyup\",(function(e){if(\"Enter\"!==e.key&&13!==e.which&&13!==e.keyCode||document.querySelector(\"#registerSubmit\").click(),\"Password\"===e.target.getAttribute(\"name\")){var t=document.querySelector(\"#validation-list--uppercase\"),o=document.querySelector(\"#validation-list--lowercase\"),i=document.querySelector(\"#validation-list--number\"),r=document.querySelector(\"#validation-list--character-count\");H(o,B(e.target.value)),H(t,M(e.target.value)),H(i,N(e.target.value)),H(r,O(e.target.value)),n=z(e.target.value)}\"ConfirmPassword\"===e.target.getAttribute(\"name\")&&(a=R(document.querySelector('[name=\"Password\"]').value,e.target.value)),\"Password\"===e.target.getAttribute(\"name\")&&(a=R(document.querySelector('[name=\"ConfirmPassword\"]').value,e.target.value)),n&&a?(document.getElementById(\"registerSubmit\")&&(document.getElementById(\"registerSubmit\").disabled=!1),document.getElementById(\"resetPassword\")&&(document.getElementById(\"resetPassword\").disabled=!1)):(s=document.querySelector(\"#registrationForm\")?Object(c.b)([\"#registrationForm\"]):Object(c.b)([\"#myLotteryAppRegistration\"]),document.getElementById(\"registerSubmit\")&&(document.getElementById(\"registerSubmit\").disabled=!0),document.getElementById(\"resetPassword\")&&(document.getElementById(\"resetPassword\").disabled=!0))}))},V=function(){if(document.querySelector(\".animated-form:not(.modal-container)\")){var e=document.querySelector(\".animated-form:not(.modal-container) #FirstName\"),t=document.querySelector(\".animated-form:not(.modal-container) #LastName\");e&&(e.addEventListener(\"keydown\",(function(e){j(e,!0)})),e.addEventListener(\"blur\",(function(t){P(t.target.value)||(e.classList.add(\"input-validation-error\"),e.nextElementSibling.classList.replace(\"field-validation-valid\",\"field-validation-error\"),e.nextElementSibling.classList.add(\"show\"),e.nextElementSibling.innerText=\"Please provide a valid name.\")}))),t&&(t.addEventListener(\"keydown\",(function(e){j(e,!0)})),t.addEventListener(\"blur\",(function(e){P(e.target.value)||(t.classList.add(\"input-validation-error\"),t.nextElementSibling.classList.replace(\"field-validation-valid\",\"field-validation-error\"),t.nextElementSibling.classList.add(\"show\"),t.nextElementSibling.innerText=\"Please provide a valid name.\")}))),h&&(flatpickr(\"#registerDOB\",{dateFormat:\"m/d/Y\",allowInput:!0,disableMobile:!0,onKeyDown:function(e,t,n,a){return a.keyCode>=48&&a.keyCode<=57||a.keyCode>=96&&a.keyCode<=105||191==a.keyCode||8==a.keyCode||9==a.keyCode||(a.preventDefault(),!1)}}),h.addEventListener(\"keyup\",(function(e){8!==e.keyCode&&(2===h.value.length||5===h.value.length)&&(h.value=h.value+\"/\")})))}};V(),G(),setInterval((function(){\"rebindInputs\"===sessionStorage.getItem(\"shouldRebindInputs\")&&(sessionStorage.removeItem(\"shouldRebindInputs\"),V(),G(),W())}),100),(document.querySelector(\"#registrationForm\")||document.querySelector(\"#myLotteryAppRegistration\"))&&(f=setInterval((function(){document.querySelector(\"#resendVerificationLP\")&&(document.querySelector(\"#resendVerificationLP\").addEventListener(\"click\",(function(){_(s,!0)})),clearInterval(f))}),100),setInterval((function(){document.querySelector(\"#resendVerificationLP\")&&document.querySelector(\".page-reloaded\")&&(document.querySelector(\"#resendVerificationLP\").addEventListener(\"click\",(function(){_(s,!0)})),document.querySelector(\".myLottery-app\").classList.remove(\"page-reloaded\"))}),100))}))}).call(this,n(\"yLpj\"),n(\"lTfz\"))}},[[\"8AQD\",0,1]]]);"],"mappings":"AAAA","sourceRoot":""}