(function preProcessorWrapper(w,d,v,g,p,mw,mc,ms,id,mb,ab,t,tk,s) {var DEFAULT_MODAL = 'game_preview',hostName = (p.split( '/' ))[2];initGlobalData();if (typeof mw.id !== 'undefined') {setModalData(DEFAULT_MODAL, {'mw': mw, 'mc': mc, 'ms': ms,'mb': mb, 'p': p, 's': s, 'ab': ab});} else {for (var index in mw) {if (!isDataHasIndex(index)) continue;setModalData(index, {'mw': decode(mw[index]), 'mc': mc[index],'ms': decode(ms[index]), 'mb': decode(mb[index]),'p': p, 's': s, 'ab': ab[index]});}}var $jscomp=$jscomp||{};$jscomp.scope={};$jscomp.arrayIteratorImpl=function(v){var w=0;return function(){return w>>0,$jscomp.propertyToPolyfillSymbol[A]=$jscomp.IS_SYMBOL_NATIVE? $jscomp.global.Symbol(A):$jscomp.POLYFILL_PREFIX+t+"$"+A),$jscomp.defineProperty(u,$jscomp.propertyToPolyfillSymbol[A],{configurable:!0,writable:!0,value:w})))};$jscomp.initSymbol=function(){}; $jscomp.polyfill("Symbol",function(v){if(v)return v;var w=function(H,N){this.$jscomp$symbol$id_=H;$jscomp.defineProperty(this,"description",{configurable:!0,writable:!0,value:N})};w.prototype.toString=function(){return this.$jscomp$symbol$id_};var t="jscomp_symbol_"+(1E9*Math.random()>>>0)+"_",u=0,A=function(H){if(this instanceof A)throw new TypeError("Symbol is not a constructor");return new w(t+(H||"")+"_"+u++,H)};return A},"es6","es3"); $jscomp.polyfill("Symbol.iterator",function(v){if(v)return v;v=Symbol("Symbol.iterator");for(var w="Array Int8Array Uint8Array Uint8ClampedArray Int16Array Uint16Array Int32Array Uint32Array Float32Array Float64Array".split(" "),t=0;t\n',"");this.setImage(btoa(this.getPattern(l)),a)};this.setImage=function(f,n){n.forEach(function(a){a.src="data:image/svg+xml;base64,"+f})};this.getPattern=function(f){return c.imageBase64[f]};this.initEvents=function(){this.listenClick(".no-word",function(f){u&&!t?this.closeModal({target:c.select("."+c.closeClass)}):t||this.closeAnimatedModal(!1)}.bind(this));this.listenClick(".reveal__footer .reveal__button", this.showEmailScreen.bind(this));this.listenClick(".reveal__content:nth-child(2) .reveal__button-primary",this.revealButton.bind(this));this.listenInput('.reveal__content:nth-child(2) [data-text="emailScreen.email"]',function(f){if(13!==f.keyCode)return!1;this.revealButton()}.bind(this))};this.revealButton=function(){if(t)return this.showWinScreen();if(u)this.gamePlayed({response:JSON.stringify({result:1})});else{if(!this.shakeValidate(this.getFormWrapper()))return!1;sa.call(c);this.sendGamePlayedStatistic(this.getInputs(), this.gamePlayed.bind(this))}};this.listenClick=function(f,n){var a=c.select(f);a&&a.tagName&&a.addEventListener("click",n)};this.listenInput=function(f,n){var a=c.select(f);a&&a.tagName&&a.addEventListener("keydown",n)};this.gamePlayed=function(f){f=JSON.parse(f.response);1===f.result?(f=e.getWinnerItem(c.selectAll(".reveal")),this.finishGame(f)):((f=Ia(f))?error.innerHTML=f:!1,ca(error,"flex"),d.shakeElement(c.select('input[type="email"]')))};this.setResult=function(f){this.setNodesResult(f)};this.setNodesResult= function(f){ta.call(c,[".reveal__unlocked-value"],decodeURI(f.value))};this.getFormWrapper=function(){return c.select(".reveal__field")};this.clearErrors=function(f){[].slice.call(f.querySelectorAll("input")).map(function(n){L(n," animated shake")})};this.getInputs=function(){return{emailInput:c.select('[data-name="email"]'),usernameInput:c.select('[data-name="userName"]'),phoneInputValue:c.select('[data-name="number"]')}};this.getInputSelectors=function(){return{emailInput:'[data-name="email"]', usernameInput:'[data-name="userName"]',phoneInputValue:'[data-name="number"]'}};this.setNodesResult=function(f){f=decodeURI(f.value);ta.call(c,[".reveal__unlocked-value"],f)};this.setCouponCode=function(f){f=this.getCodeString(f);ta.call(c,[".reveal__image-text-win"],f);this.showWinScreen()};this.getCodeString=function(f){return u?"TEST_CODE":"undefined"!==typeof f.text?f.text:f};this.showStartScreen=function(){E(c.select("."+c.closeClass));this.showScreen(1)};this.showEmailScreen=function(){O(c.select("."+ c.closeClass));this.showScreen(2)};this.showWinScreen=function(){O(c.select("."+c.closeClass));this.showScreen(3)};this.showScreen=function(f){c.select(".reveal-game .reveal__wrapper").childNodes.forEach(function(n,a){a+1===f?O(n):E(n)})};this.hooksHandler=function(f){"GPDR"===f.target?this.handleGPDR(f.value):"gpdrCheckbox"===f.target?this.handleCheckboxGPDR(f.value):"revealLogo"===f.target?this.handleLogo(f.file):"pattern"===f.target&&this.handlePattern(f.color)};this.handleGPDR=function(f){var n= c.select("#gdpr").parentNode,a=n.parentNode.querySelector(".reveal__disclaimer-wrapper");f?(ca(n,"flex"),n.style.top=(a.innerText?22:0)+"px"):E(n)};this.handleCheckboxGPDR=function(f){var n=c.select("#gdpr");f?ca(n,"flex"):E(n)};this.handleLogo=function(f){c.selectAll(".reveal__logo-img").forEach(function(n){f?(L(n," hide"),n.style.content="url("+f+")"):I(n," hide")})};this.handlePattern=function(f){var n=Ja(this.getPattern());this.changePatternColor(n,f);this.setImage(btoa(ya(n)),c.selectAll(".reveal__img"))}; this.changePatternColor=function(f,n){var a=f.querySelectorAll(".change-color");a=$jscomp.makeIterator(a);for(var l=a.next();!l.done;l=a.next())l=l.value,l.getAttribute("fill")&&l.setAttribute("fill",n),l.getAttribute("stroke")&&l.setAttribute("stroke",n)}}function G(c){var g=null;this.get=function(){return c};this.select=function(e){g=(e=-1D.length?[D,""]:ma(D);var r="#coupon"+(parseInt(z)+1);r=p.select(r).children(); r[0].children()[0].setText(D[0].trim());r[1].children()[0].setText(D[1].trim())}};this.setTempData=function(a){var l=y(window,"spinthewheel.slices.colors."+c.gameId,!1);y(window,"spinthewheel.slices.texts."+c.gameId,!1);y(window,"spinthewheel.font.color."+c.gameId,!1);c.svg=new G(a.querySelector("svg"));this.changeSlicesSchema(l)};this.changeSlicesSchema=function(a){if(!a)return!1;a=$jscomp.makeIterator(a);for(var l=a.next();!l.done;l=a.next())l=l.value,c.svg.select("#"+l.name).setAttr("fill",l.hex)}; this.setSvgBackground=function(){var a=c.select(".wheel .outer-circle");a.style.display="none";n.imageLoadAndSet("/spinthewheel_background.svg",a,this.addResponseBackground.bind(this))};this.addResponseBackground=function(a,l){var p=l.wrapper;if(!a.response)return!1;c.imageBase64[l.backgroundUrl]=a.response;p.style.display="flex";var z=btoa(t?this.getSvgCopy(a.response,p):a.response);this.setWrapper(p,z)};this.getSvgCopy=function(a,l){var p=Ja(a.replace('',""));p.id="svg-background"; p.style.display="none";l.appendChild(p);p=p.cloneNode(!0);p.style.display=null;return ya(p)};this.setWrapper=function(a,l){a.style.background='url("'+this.getSvgBase64(l)+'") center center no-repeat'};this.getSvgBase64=function(a){return"data:image/svg+xml;base64,"+a};this.loadLogo=function(){setTimeout(function(){try{var a=[c.select(".info-logo")],l=getComputedStyle(a[0],null).getPropertyValue("background-image").replace(/^url\(["']?/,"").replace(/["']?\)$/,"").split("?")[0];n.loadAndSet(l,a,-1=== l.indexOf(c.hostUrl))}catch(p){}}.bind(this),100)};this.setFlowScreen=function(){switch(e){case "enter-click-finish":this.showStartScreen();break;default:this.showSpinScreen()}};this.getFlow=function(){for(var a in c.flow)if(1===parseInt(c.flow[a]))return a;return""};this.setFlow=function(a){for(var l in c.flow)c.flow[l]=0;c.flow[a]=1};this.initEvents=function(a,l,p,z,D,r,B){c.select(".wheel-form.email .launcher").addEventListener("click",function(x){E(c.select(".error"));this.launchGameEmailScreen(l, x,z,B)}.bind(this));c.select('.wheel-form.email input[data-name="email"]').addEventListener("keyup",function(x){if(13!==x.keyCode)return!1;E(c.select(".error"));this.launchGameEmailScreen(l,x,z,B)}.bind(this));c.select(".wheel-form.spin .launcher").addEventListener("click",function(x){this.launchAnimationSpinButton(x,B)}.bind(this));[".wheel-form.winner .launcher",".wheel-form.winner-alternative .launcher"].map(function(x){u||Ka.call(c,x);(x=c.select(x))&&x.addEventListener("click",function(K){u&& !t?r():D(K)})});c.select('.no-thanks[data-text="spinScreen.payFull"]').addEventListener("click",function(){t?!1:r()});c.select(".dropdown")&&c.select(".dropdown").addEventListener("click",function(x){var K=x.target.closest(".dropdown"),b=K.querySelector(".options-wrapper");x.target.dataset.mcode?(K=K.querySelector("button"),K.dataset.chosen=x.target.dataset.code,K.innerHTML=x.target.dataset.mcode,x.target.closest(".options-wrapper").style.display="none"):b.style.display=0l.length?[l,""]:ma(l);var p="#coupon"+(parseInt(a)+1);n.select(p+"curve2text").setText(l[1]);n.select(p+"curve1text").setText(l[0])}};this.launchGame=function(f){f=d.getWinnerItem(f); e.rotate(c.select(Ma()),{stop:parseInt(f.dataset.stop)},function(n){setTimeout(this.finishGame.bind(null,n),1E3)}.bind(this,f));if(!ra())return!1;this.redrawCircle(1,this.getSVGCircle())};this.animateHide=function(){c.gameScreen(c)};this.setTempData=function(f){var n=y(window,"wheel.slices.colors."+c.gameId,!1);y(window,"wheel.slices.texts."+c.gameId,!1);y(window,"wheel.font.color."+c.gameId,!1);c.svg=new G(f.querySelector("svg"));this.changeSlicesSchema(n)};this.changeSlicesSchema=function(f){if(!f)return!1; f=$jscomp.makeIterator(f);for(var n=f.next();!n.done;n=f.next())n=n.value,c.svg.select("#"+n.name).setAttr("fill",n.hex)}}function P(c,g){new ba(c);var e=new aa(c),d=new ka,k=new la(c),f;this.finishGame=g;this.init=function(){f=this.getCurrentTriggerName();c.select(".fullwheel-wrapper");this.setFullSvg()};this.getCurrentTriggerName=function(){switch(c.currentTrigger){case "bottomTrigger":return c.triggerNodeBottom;case "sideTrigger":return c.triggerNodeSide;case "simpleTrigger":return c.triggerNodeSimple}}; this.setFullSvg=function(){this.hideContentAndNode();var n=0;var a=setInterval(function(){n++;if(4p.length?[p,""]:ma(p);var z="#coupon"+(parseInt(l)+1),D=a.select(z+"curve2text");a.getLastSelected()? D.setText(p[1]):!1;z=a.select(z+"curve1text");a.getLastSelected()?z.setText(p[0]):!1}};this.launchGame=function(n){n=d.getWinnerItem(n);e.rotate(c.select(".fullwheel"),{stop:parseInt(n.dataset.stop)},function(a){setTimeout(function(){var l=c.select(".fullwheel-arrow");if(!l)return!1;l.style.display="none"},2E3);setTimeout(this.finishGame.bind(null,a),2E3)}.bind(this,n))};this.animateHide=function(){c.gameScreen(c)};this.setTempData=function(n){var a=y(window,"fullwheel.slices.colors."+c.gameId,!1); y(window,"fullwheel.slices.texts."+c.gameId,!1);y(window,"fullwheel.font.color."+c.gameId,!1);c.svg=new G(n.querySelector("svg"));this.changeSlicesSchema(a)};this.changeSlicesSchema=function(n){if(!n)return!1;n=$jscomp.makeIterator(n);for(var a=n.next();!a.done;a=n.next())a=a.value,c.svg.select("#"+a.name).setAttr("fill",a.hex)};this.hooksHandler=function(n){"font"===n.target&&this.handleFontChange(n)};this.handleFontChange=function(n){var a=La(n.value),l=new G(c.select(".fullwheel svg")),p=l.select("#coupons"), z=p.getAttr("style").split(";");l.select("#fonts").innerHTML=this.getSvgFontLine(a);z[0]="font-family:"+n.value;p.setAttr("style",z.join(";"))};this.getSvgFontLine=function(n){return'"}}function R(c,g){var e=new ba(c),d=new aa(c);new ka;var k=!fa,f={width:92,height:84,bottom:145},n={width:52,height:48,bottom:118};this.gifts= {};this.giftClass="gift";this.itemClass="."+this.giftClass;this.finishGame=g;this.giftVariables={};this.animationType="";this.animationObject=d;this.initDeviceVariables=function(a){this.setGiftAnimation(a);this.setGiftVariables(a)};this.setGiftVariables=function(a){this.giftVariables=a?f:n;this.giftVariables.bottom--};this.setGiftAnimation=function(a){this.animationType=a?"winnerGift":"winnerGiftMobile"};this.initDeviceVariables(k);this.animateOpen=function(a){d.animateBySelector(a,"."+c.closeClass); this.animateStatic("In");setTimeout(function(){this.animateGifts()}.bind(this),600)};this.animateStatic=function(a){"In"!==a&&this.animateHeadPart("fade"+a+"Up");this.animateFootPart("fade"+a)};this.animateHeadPart=function(a){var l=[c.select(".big-text"),c.select(".input-wrapper")];setTimeout(function(){for(var p in l)l.hasOwnProperty(p)&&d.animateBySelector(a,l[p],this.hideBehindBackground.bind(this,l[p],a))}.bind(this),300)};this.animateFootPart=function(a){var l=c.select(".text.small-message"); setTimeout(function(){d.animateBySelector(a,l,this.hideBehindBackground.bind(this,l,a))}.bind(this),400)};this.hideBehindBackground=function(a,l){this.setItemOpacity(a,l);this.setItemZindex(a,l)};this.animateGifts=function(){var a=c.selectAll(".gift"),l;for(l in a)a.hasOwnProperty(l)&&this.animateGift(a[l],l)};this.animateGift=function(a,l){setTimeout(function(){d.animateBySelector("popup",a,this.setItemOpacity.bind(this))}.bind(this),50*l)};this.setItemOpacity=function(a,l){a.style.opacity=this.isShowEffect(l)}; this.isShowEffect=function(a){return"undefined"===typeof a||-1l)return p};this.setNewBigText=function(a,l){var p=c.select(".big-text[data-name=pickGift]");E(a);O(p);this.setItemOpacity(p,l);p.style.height=X(a,"height")+"px";this.fadeIn(p)};this.prepareGiftWrapper=function(a){if(!a)return!1;I(a," bigger")};this.showFinalScene=function(a){if("block"===c.select(".second-screen").style.display||!this.isInitialScreen()&&c.emailCollect)return!1;this.showFinalScreen(a.target)};this.showFinalScreen=function(a){var l= c.selectAll(".gift");L(a.parentNode," bigger");this.prepareFinalScene("fadeOut");this.highlightWinnerGift(l,a);this.animateWinnerGift(a,this.getGiftIndex(l,a))};this.isInitialScreen=function(){var a=c.select(".input-wrapper");if(1===parseInt(X(a,"opacity"))){a=c.select("input").value;if(!ua(a))return this.shakeForm("input"),!1;e.isValidEmail(a,this.emailValidationHandler.bind(this));return!1}return!0};this.emailValidationHandler=function(a){a=JSON.parse(a.response);a=a.hasOwnProperty("subscriber_email")&& "boolean"===typeof a.subscriber_email;this.shakeForm(a?"button":"input")};this.shakeForm=function(a){var l=c.select(".input-wrapper");d.animateBySelector("shake",l.querySelector(a),function(){})};this.prepareFinalScene=function(a){this.animateBigText(a);this.animateFootPart(a)};this.animateBigText=function(a){var l=c.select(".big-text"),p=c.select(".big-text[data-name=pickGift]");d.animateBySelector(a,l,this.hideBehindBackground.bind(this,l,a));d.animateBySelector(a,p,this.hideBehindBackground.bind(this, p,a))};this.animateInit=function(){setTimeout(function(){this.animateStatic("Out")}.bind(this),10)};this.highlightWinnerGift=function(a,l){for(var p in a)if(a.hasOwnProperty(p)){var z=a[p];this.isSelectedGift(l,a,p)||this.fadeOutGift(z)}};this.fadeOutGift=function(a){this.animationObject.animateBySelector("fadeOut",a,this.hideGift.bind(this,a,"fadeOut"))};this.isSelectedGift=function(a,l,p){return"null"!==a.dataset.id&&l[p].dataset.id===a.dataset.id||u&&"null"===a.dataset.id&&l[p].dataset.temp_id=== a.dataset.temp_id};this.getGiftIndex=function(a,l){for(var p in a)if(a.hasOwnProperty(p)&&this.isSelectedGift(l,a,p))return parseInt(p);return!1};this.hideGift=function(a,l){this.hideBehindBackground(a,l);a.style.visibility="hidden"};this.animateWinnerGift=function(a,l){setTimeout(function(){d.animateBySelector(this.animationType,a,this.giftWinner.bind(this,a));setTimeout(this.animateDirection.bind(this,a,l),300)}.bind(this),900)};this.giftWinner=function(a){this.fixStyles(a);this.animateFinalScreen()}; this.fixStyles=function(a){var l=a.parentNode;a.style.width=this.giftVariables.width+"px";a.style.height=this.giftVariables.height+"px";a.style.bottom=X(l,"margin").split(" ")[0]+"px";l.style.bottom="0px"};this.animateDirection=function(a,l){var p=X(a.parentNode,"width");p=this.getSidePosition(l,p);var z=this.getDirection(l);requestAnimationFrame(this.animateBottom.bind(this,a,p,z))};this.getDirection=function(a){a=3>a?"left":"right";return-1=k)return parseInt(f)};this.getSortedCoupons=function(d){d=Array.prototype.slice.call(d);var k=d[3];d.splice(3,1);d.splice(4,0,k);k=d.splice(4,4);k.reverse();Array.prototype.push.apply(d,k);return d};this.tagSelector=function(d){return"UL"===d.tagName};this.playGame=function(d,k,f,n,a){a="undefined"===typeof a?0:a;var l=d.length-1,p=d[k],z=d[0===k?l:k-1];f=this.getSpeed(k,f,a,n);this.showCurrentCoupon(z,p);setTimeout(this.gameIteration.bind(this, k,f,n,d,l,a),f)};this.getSpeed=function(d,k,f,n){d=25+(n+1);n=10;f>=d-3?n=30:f>=d-4?n=10:f>=d-5?n=5:4>f?n=-8:8>f?n=-7:16>f&&(n=-5);return k+n};this.showCurrentCoupon=function(d,k){d.className=d.className.replace(" won","");k.className+=" won"};this.gameIteration=function(d,k,f,n,a,l){this.stopGame(d,k,f,l)?setTimeout(this.finishGame.bind(null,n[d]),1700):(l++,this.playGame(n,d===a?0:d+1,k,f,l))};this.stopGame=function(d,k,f,n){return 25
'+d+'
'+k+"
"};this.getButton=function(d,k){var f=8d.loops};this.setTopValue=function(d,k){this.changeTopValue(d,k);k.top>k.endValue&&this.initNewLoop(k)};this.changeTopValue=function(d,k){d.style.top=k.top+"px";if(k.loops===k.counter){var f=-k.stopIndex*k.initValue;this.isPositionWinCoupon(f,k)?(k.counter+=1,d.style.top=f+"px"):k.top+=this.getChangeValue(k)}else k.top+=this.getChangeValue(k)};this.isPositionWinCoupon=function(d,k){var f=k.changeValue/1.5;return d<=k.top+f&&d>=k.top-f};this.getChangeValue= function(d){return d.loops-1<=d.counter?(this.subtractChangeValue(d),d.initChangeValue):this.isChangeValue(d)?(this.addInitChangeValue(d),d.initChangeValue):d.changeValue};this.isChangeValue=function(d){return d.changeValue>d.initChangeValue};this.addInitChangeValue=function(d){d.initChangeValue+=d.stepChangeValue};this.subtractChangeValue=function(d){1',d.pure=!0):d.textNode=this.getTextValue(f));return d};this.refreshFields=function(d){delete d.content;delete d.pure;delete d.textNode}; this.isFreeShipping=function(d){return 0>["cash","discount"].indexOf(d.type)};this.getTextValue=function(d){var k=d.value;switch(d.type){case "cash":return"$"+k;case "discount":return k+"%";default:return k}}}function T(c,g){this.animationObject=new aa(c);this.requestObject=new ba(c);this.getBar=function(){return w.body.querySelector(".lucky-coupon-bar.game-"+c.gameInfo.gameId)};this.continueUseDiscount=function(e){if(u)return e.closeModal.call(e,{target:c.select("."+c.closeClass)}),!1;if("1"===c.isContinueDiscountHaveURL&& ""!==c.continueDiscountURL){var d=c.continueDiscountURL,k="1"===c.targetDiscountURL?"_blank":"_self";d=d.match(new RegExp(/(http|https):\/\//g))?d:"http://"+d;window.open(d,k).focus()}d=c.cookieExpirationDays;Y(va(c.gameInfo),0,d);c.showBar&&c.isBarNodeAvailable?(this.setTime(c.barNode.querySelector(".coupon-code-time"),c.barCountDown,0),this.showCountdownBar(c.barCountDown,0,!0,e),this.setCountDownShowed()):c.isGameEmbedded||e.closeAnimatedModal(!1)};this.showCountdownBar=function(e,d,k,f){d="number"=== typeof d?d:0;var n=w.body.querySelector(".lucky-coupon-bar.game-"+c.gameInfo.gameId);n&&n.remove();w.body.appendChild(c.barNode);c.barNode.style.display="block";n=c.barNode.querySelector(".coupon-code-code input");n.value=wa(c.gameInfo);n.style.width=14.5*n.value.length+2+"px";k&&!c.isGameEmbedded&&f.closeAnimatedModal(!1);clearInterval(c.countDownIntervalId);this.countDown(this.getDateShifted(new Date,e,d),this.getCountDownNode())};this.getDateShifted=function(e,d,k){return new Date(e.getFullYear(), e.getMonth(),e.getDate(),e.getHours(),e.getMinutes()+d,e.getSeconds()+k)};this.getCountDownNode=function(){return c.barNode.querySelector(".coupon-code-time")};this.setCountDownShowed=function(){Y(U(c.gameInfo)+"CountDownShowed",(new Date).getTime())};this.setTime=function(e,d,k){e.innerHTML=""+d+"m:"+k+"s"};this.countDown=function(e,d){c.countDownIntervalId=setInterval(function(){var k=(new Date).getTime();k=e-k;var f=this.getDistanceMinutes(k),n=this.getDistanceSeconds(k); this.setTime(d,f,n);0>=k&&(clearInterval(c.countDownIntervalId),d.remove(),(k=this.getBar())&&k.remove())}.bind(this),950)};this.getDistanceMinutes=function(e){return Math.floor(e%36E5/6E4)};this.getDistanceSeconds=function(e){return Math.floor(e%6E4/1E3)};this.initCountdownBar=function(){if(!c.showBar)return!1;var e=parseInt(this.getCountDownShowed()),d=c.barNode.querySelector(".fa.fa-times-thin.fa-2x");setTimeout(this.appendClipboardEvents.bind(this),400);d.addEventListener("click",this.closeBar); this.showCalculatedTime(e)};this.appendClipboardEvents=function(){var e=this.getBar();if(!e)return!1;e.querySelector("button").addEventListener("click",function(d){this.requestObject.applyDiscount(d.target,c.couponCode||wa(c.gameInfo))}.bind(this))};this.showCalculatedTime=function(e){if(e){var d=this.getDistance(e);e=this.getCalculatedMinutes(d);d=this.getCalculatedSeconds(d);0=a.distance&&clearInterval(c.countDownTimerIntervalId)}.bind(this),950)};this.getTimePeriod=function(f){var n=(new Date).getTime();f-=n;n=this.getSafePeriod(this.getDistanceMinutes(f));var a=this.getSafePeriod(this.getDistanceSeconds(f));return{distance:f,m:n,s:a}};this.getSafePeriod= function(f){return 0==f?"0":f};this.getDistance=function(f){return(new Date).getTime()-f};this.getCalculatedMinutes=function(f){return c.isCounterTimerStart-1-this.getDistanceMinutes(f)};this.getCalculatedSeconds=function(f){return 60-this.getDistanceSeconds(f)};this.getDistanceMinutes=function(f){return Math.floor(f%36E5/6E4)};this.getDistanceSeconds=function(f){return Math.floor(f%6E4/1E3)};this.setTime=function(f,n,a){f.innerHTML=this.getTime(this.getSegment(n),this.getSegment(a))};this.getSegment= function(f){return 0<=f?(10>f?"0":"")+f:"00"};this.getTime=function(f,n){return""+f+":"+n+""};this.getCounterTimerShowed=function(){return Z(U(c.gameInfo)+"CounterTimer")};this.setCounterTimerShowed=function(){Z(U(c.gameInfo)+"CounterTimer")||Y(U(c.gameInfo)+"CounterTimer",(new Date).getTime(),1)};this.hide=function(){g.style.display="none";e.style.display="none";t?d.style.display="none":L(d," active")};this.insert=function(){this.remove();g&&g.tagName?w.body.appendChild(g): !1;e&&e.tagName?w.body.appendChild(e):!1;d&&d.tagName?w.body.appendChild(d):!1};this.remove=function(){this.removeElement(g);this.removeElement(e);this.removeElement(d)};this.removeElement=function(f){f="."+y(f,"className","").replace(/ /g,".");(f="."!==f?w.body.querySelector(f):!1)&&f.remove(f.selectedIndex)};this.destroy=function(){this.hide();this.remove()}}function ba(c){this.isValidEmail=function(g,e){this.ajax({url:"/api/v1/check/email",method:"POST",data:{id:c.gameId,site_id:c.siteId,subscriber_email:g}}, e)};this.anyRequest=function(g,e){var d=function(n){c.requestResults[g]=n.response},k=e?function(n){d(n);e(n)}:d,f="string"===typeof g?{url:g,method:"GET"}:g;c.requestResults[f.url]?k({response:c.requestResults[f.url]}):this.ajax(f,k)};this.get=function(g,e,d){this.ajax({url:g,method:"GET"},e,d)};this.post=function(g,e,d,k){this.ajax({url:g,method:"POST"},d,k)};this.request=function(g,e,d){g=y(c,"gameInfo.gameId","preview")+g;this.ajax({url:c.getHostUrl(g),method:"GET"},e,d)};this.requestUrl=function(g, e,d){this.ajax({url:g,method:"GET",remote:!0},e,d)};this.pureRequest=function(g,e,d){this.ajax({url:c.getHostUrl(g),method:"GET"},e,d)};this.ajax=function(g,e,d){e=e?e.bind(this):function(){}.bind(this);var k=new XMLHttpRequest,f=this.isFileUrl(g),n=f?null:this.serialize(g.data),a=this.getUrlFromData(g);k.open(g.method,a,!0);f?(k.responseType="arraybuffer",k.onload=this.onLoadFile.bind(this,e,k,d,f)):(k.setRequestHeader("Content-type","application/x-www-form-urlencoded"),k.onreadystatechange=this.readyStateChange.bind(this, e,k,d,f),k.onerror=g.error);k.send(n)};this.serialize=function(g){var e=[],d;for(d in g)g.hasOwnProperty(d)&&e.push(encodeURIComponent(d)+"="+encodeURIComponent(g[d]));return e.join("&")};this.onLoadFile=function(g,e,d,k){k&&g.call(null,this.getFileFromBinary(e),d,e)};this.readyStateChange=function(g,e,d,k){4===e.readyState&&200===e.status?k||g(e,d):4===e.readyState&&0g)return e}}function Oa(c){this.isModalAllowed=function(){return!u&&!t&&!this.isShopifyOrderOrCheckoutPage()&&!this.isFilteredByUrl()};this.isShopifyOrderOrCheckoutPage=function(){var g=y(window.Shopify,"Checkout");return y(g,"isOrderStatusPage",!1)||!!y(g,"step",!1)};this.isFilteredByUrl=function(){var g=c.filtersByUrl,e=String(window.location.href.valueOf()).replace(window.location.origin+ "/",""),d=e.split(/[?#]/)[0],k=-1,f=-1,n=!1,a="";g=g.filter(function(z){return!z.url.includes(".")});for(var l in g)if(g.hasOwnProperty(l)){var p=g[l];!/(http(s?)):\/\//i.test(p.url)&&(n||"1"!==p.type||(n=!0),a=p.url&&(-1e};this.isFilteredByBrowser=function(){return c.clientDevice.is_old_browser};this.isFilteredByDevice=function(){return this.includedDevice("desktop")||this.includedDevice("tablet")|| this.includedDevice("mobile")&&!("1"===c.allowedDevices.tablet&&"0"===c.allowedDevices.mobile&&c.clientDevice.mobile&&c.clientDevice.tablet)};this.includedDevice=function(g){return"1"===c.allowedDevices[g]&&c.clientDevice[g]}}function bb(c,g){this.setFont=function(){g.font=g.font?g.font:"Inherit";g.fontFamily=g.fontFamily?g.fontFamily:"Inherit";g.font="inherit"!==g.font.toLowerCase()?g.font.replace(/%27/g,"'").replace(/%22/g,'"'):"Inherit";if(g.font&&"inherit"!==g.font.toLowerCase()){var e=g.font.replace(/(%27|')/g, '"').split('"');e.hasOwnProperty("1")?g.fontFamily=e[1].replace(/ /g,"+"):g.fontFamily=e[0]}g.fontImport=t?"@import url("+this.getFontUrl(g.fontFamily)+");":""};this.forceFontLoading=function(e){if(!g.fontFamily||"inherit"===g.fontFamily.toLowerCase()||"times new roman"===g.fontFamily.toLowerCase()||"times+new+roman"===g.fontFamily.toLowerCase()||c.isFontDownloaded(g.fontFamily))e();else{var d=this.getFontUrl(g.fontFamily);(new ba(c)).ajax({remote:!0,url:d,method:"GET",error:e},function(k){c.fontsDownloaded.push(g.fontFamily); k=Ca(k.response);document.head.appendChild(k);document.fonts.ready.then(function(){setTimeout(e,100)})["catch"](e)}.bind(this))}};this.getFontUrl=function(e){return"Times+New+Roman"===e||"Inherit"===e?"":"https://fonts.googleapis.com/css?family="+e+":300,400,500,600,700&display=swap"}}function la(c){var g=new ba(c);this.getBackgroundUrl=function(e){e=X(e,"background");if(""===e)return!1;e=e.split('"');if(!e.hasOwnProperty("1"))return!1;e=e[1].split("?")[0];return-1");return"congratulation"===b.meta&&this.isSpecialShop("eagle-energy.myshopify.com")?"High Five":"slice"===b.className?decodeURI(h):h};this.changeTextFromBackend=function(b){return b.replace(/%22/g,"'").replace(/%27/g,'"').replace(/(\r\n|\n|\r)/gm,"
")};this.isSpecialShop=function(b){var h=document.querySelector('script[src*="'+b+'"]'); return h&&h.src?-1!==h.src.search(b):!1};this.preProcess=function(b){if(fa&&b.className&&-1ia(g)?(b.style.overflow="hidden",a.modalNode.style.height="auto"):600ia(g)?(a.modalNode.style.height="auto",this.sizeReelWrapper(-72)):this.sizeReelWrapper(-110))};this.sizeReelWrapper=function(b){if(!a.modalNode||"slot"!==a.gameType)return!1;var h=a.selectAll(".reel-wrapper"),m;for(m in h)h.hasOwnProperty(m)&&(h[m].style.top=b*m+"px")};this.initWheelGames= function(){"function"===typeof this.gameObject.init&&this.gameObject.init()};this.getDocumentHeight=function(){var b=document.body,h=document.documentElement;return Math.max(b.scrollHeight,b.offsetHeight,h.clientHeight,h.scrollHeight,h.offsetHeight)};this.showAdditionalObjects=function(){if(r.isShopifyOrderOrCheckoutPage())return!1;p=new T(a,this.closeModal.bind(this));p.initCountdownBar();z=new ea(a);z.initTrigger()};this.setDevEnv=function(){this.hasDevScript()&&(this.dev={$this:a,animationObject:l, gameObject:this.gameObject,barObject:p,triggerObject:z,svg:G})};this.dispatchUpdate=function(b){this.resetVisibility();switch(!0){case "screen"===b.target:this.moveScreenTo(b.value);break;case "svg"===b.target||"wheelLogo"===b.target||"fullwheelLogo"===b.target:this.changeSVG(b);break;case b.hasOwnProperty("move"):this.shakeElementHook(b);break;case "animation"===b.target:this.changeAnimation(b);break;case "opacity"===b.target:this.changeOpacity(b.value);break;case "emailCollect"===b.target:a.emailCollect= b.value;a.setBehavior("collectEmailFromUsers.yes",b.value?"1":"0");break;case "nameCollect"===b.target:a.nameCollect=b.value;a.setBehavior("collectNameFromUsers.yes",b.value?"1":"0");break;case "numberCollect"===b.target:a.numberCollect=b.value;a.setBehavior("collectNumberFromUsers.yes",b.value?"1":"0");break;case this.isElementShow(b):this.showElement(b);break;case "flow"===b.target:this.changeFlow(b);break;case this.isTextPath(b.target):this.handleTextPath(b);break;case "barTime"===b.target:p.setTime(a.select(".coupon-code-time"), b.value,"00");break;case this.rebuildStylesCondition(b):this.rebuildStyles(b);break;case this.emptyCases(b):break;default:this.rebuildModal(b)}"function"===typeof this.gameObject.hooksHandler&&this.gameObject.hooksHandler(b);this.stylesFrameInsert(b);this.regainTriggerListeners()};this.stylesFrameInsert=function(b){this.handleMobileAdminView("device"===b.target,"mobile"===b.value)};this.handleMobileAdminView=function(b,h){if(!b)return!1;if(!h){var m=document.head.querySelector("#add_styles");m&&m.remove(); return!1}m=Ca('div[class^="lucky-coupon-trigger"] {display: none!important;}'+((a.isShortSelector?"#lc"+a.siteId+".g"+a.gameId:"#lucky-coupon-"+a.siteId+".game-"+a.gameId)+" .reveal__wrapper .reveal__content{margin-top: 0!important;}"));m.id="add_styles";document.head.appendChild(m)};this.changeFlow=function(b){for(var h in f.flow)f.flow.hasOwnProperty(h)&&(f.flow[h]="0");f.flow[b.value]="1"};this.emptyCases=function(b){return"spinTheWheelLogo"===b.target||"spinTheWheelMobileLogo"===b.target||"spinthewheel"=== a.gameType&&"facebookRecart"===b.target||"spinthewheel"===a.gameType&&"gpdrCheckbox"===b.target||"reveal"===a.gameType&&"gpdrCheckbox"===b.target||"reveal"===a.gameType&&"revealLogo"===b.target||"reveal"===a.gameType&&"pattern"===b.target||"spinthewheel"===a.gameType&&b.target&&-1=m;m++)h.select("#linear-"+m+"-center").setStyle("stop-color",b),h.select("#linear-"+m+"-left").setStyle("stop-color",b),h.select("#linear-"+m+"-right").setStyle("stop-color",b)};this.getSVGCoupons=function(){return a.svg.get()? a.svg.select("#coupons").children():[]};this.getSVGBorder=function(){return a.svg.get()?a.svg.select("#outerCircle"):[]};this.changeSVGTextColor=function(b){var h=this.getSVGCoupons();h=$jscomp.makeIterator(h);for(var m=h.next();!m.done;m=h.next())this.changeTextColor(m.value,b)};this.changeSVGBorderColor=function(b){var h=this.getSVGBorder();if(0===h.length)return!1;h.setStyle("stroke",b)};this.changeTextColor=function(b,h){var m="#"+b.getAttr("id"),q=a.svg.selectParent(m+"curve1text");m=a.svg.selectParent(m+ "curve2text");q.setStyle("fill",h);m.setStyle("fill",h)};this.changeSlicesText=function(b){var h=1;b=$jscomp.makeIterator(b.coupon.bunch);for(var m=b.next();!m.done;m=b.next()){m=m.value;var q=this.isSpinTheWheelGames()?16:13;m=m.value.length b.length?[b,""]:ma(b)};this.changeSliceScheme=function(b){if(void 0===a.svg.get()||null===a.svg.get())a.svg=document.getElementsByTagName("svg");b=$jscomp.makeIterator(b.schema);for(var h=b.next();!h.done;h=b.next())h=h.value,a.svg.select("#"+h.name).setAttr("fill",h.hex)};this.changeSvgLogo=function(b){a.svg.select("#gameLogo").setLink(b.file)};this.shakeElementHook=function(b){var h=[];this.getElementsDataText(b).map(function(m){(m=this.getHookElement(b,m))&&(h=h.concat(Array.from(m)))}.bind(this)); if(0===h.length)return!1;h.map(this.shakeHookedElement.bind(this))};this.getElementsDataText=function(b){return this.isCouponButton(b)?[b.target+".0",b.target+".1"]:[b.target]};this.isCouponButton=function(b){return"startScreen.button"===b.target&&"coupon"===a.gameType};this.getHookElement=function(b,h){if(!b.target)return!1;var m=-1 .lucky-coupon-trigger "+h).parentNode:a.selectAll(h)};this.rebuildStylesCondition=function(b){return b.hasOwnProperty("color")||"font"===b.target||"image"===b.target||"giftImage"===b.target||"revealLogo"===b.target||"borderColor"===b.target};this.rebuildStyles=function(b){var h=["color", "file","value"].find(function(q){return b.hasOwnProperty(q)}),m=b.target;h=b[h];k.hasOwnProperty(m)&&(k[m]=h,"font"===m&&x.setFont(),a.select("div > style").innerHTML=k.style(),setTimeout(function(){"button"===b.target?this.initButton():"borderColor"===b.target&&this.changeSVG(b)}.bind(this),40))};this.changeAnimation=function(b){var h=a.select(a.wrapperClass),m=-1!==b.value.indexOf("Right")?"right":b.value.indexOf("Left")?"left":!1;-1===h.parentNode.className.indexOf("lucky-coupon-center")&&m||(m= void 0);this.changeOtherAnimations(a.modalWrapperClass,h,b,m)};this.changeOpacity=function(b){if(this.isSpinTheWheelGames())return!1;var h=a.select(".custom-image");if(!h)return!1;h.style.opacity=b};this.isSwitchTrigger=function(b){return"trigger"===b.target&&"boolean"===typeof b.value};this.isElementShow=function(b){return this.isSwitchTrigger(b)||"email_field_visibility"===b.target&&!this.isSpinTheWheelGame()||"name_field_visibility"===b.target&&!this.isSpinTheWheelGame()||"number_field_visibility"=== b.target&&!this.isSpinTheWheelGame()||"facebookRecart"===b.target&&!this.isSpinTheWheelGame()||this.simpleEventTarget(b.target)};this.simpleEventTarget=function(b){return-1<"GPDR bar triggerPosition triggerType isCounterTimer counterTimerMinutes".split(" ").indexOf(b)};this.showElement=function(b){switch(b.target){case "trigger":this.showTrigger(b.value);break;case "GPDR":this.showCheckbox(b);break;case "email_field_visibility":this.showEmailField(b);break;case "facebookRecart":this.showFakeFacebook(b); break;case "name_field_visibility":this.showNameField(b);break;case "number_field_visibility":this.showNumberField(b);break;case "bar":this.showBarCounter(b);break;case "triggerPosition":this.changeTriggerPosition(b);break;case "triggerType":this.changeTriggerType(b);break;case "isCounterTimer":this.onOffCounterTimer(b);break;case "counterTimerMinutes":this.updateCounterTimer(b)}};this.changeTriggerPosition=function(b){var h=b.value.split("-"),m=h[0],q=this.getPositionName("left"!==m);m=this.getPositionName("left"=== m);this.changePosition(a.triggerNodeSide,"side-"+q,"side-"+m);this.changePosition(a.triggerNodeBottom,"bottom-"+q,"bottom-"+m);f.triggerSetting.triggerBottomTextPosition=h[1]?"1":"0";this.triggerPositionSwitch(m,q);a.triggerNodeSimple.className=this.getSimpleNodeCLassName(b.value)};this.getSimpleNodeCLassName=function(b){var h="";"1"===f.triggerSetting.triggerType.simpleTextButton&&-1===b.indexOf("bottom")&&(h="1"===f.triggerSetting.triggerBottomTextPosition?"bottom-":"");return"lucky-coupon-trigger-simple lucky-coupon-trigger-simple-"+ b+h+" dashboard"};this.getPositionName=function(b){return b?"left":"right"};this.triggerPositionSwitch=function(b,h){f.triggerSetting.triggerPosition[b]="1";f.triggerSetting.triggerPosition[h]="0"};this.changePosition=function(b,h,m){L(b," lucky-coupon-trigger-"+h);I(b," lucky-coupon-trigger-"+m)};this.changeTriggerType=function(b){var h="simpleTrigger"===b.value;b="bottomTrigger"===b.value;this.setTriggerType("simpleTextButton",h?"1":"0");this.setTriggerType("bottomTriggerWithCounter",b?"1":"0"); a.currentTrigger=Da(f);if(a.showTrigger||"1"==f.showPlayGameTrigger.yes)this.changeTriggerVisibility(a.triggerNodeSimple,h),h?(I(a.triggerNodeSimple," dashboard"),L(a.triggerNodeSimple," invisible")):(L(a.triggerNodeSimple," dashboard"),I(a.triggerNodeSimple," invisible")),this.changeTriggerVisibility(a.triggerNodeBottom,b),this.changeTriggerVisibility(a.triggerNodeSide,!b&&!h)};this.setTriggerType=function(b,h){f.triggerSetting.triggerType[b]=h};this.changeTriggerVisibility=function(b,h){b.style.zIndex= "2147483648";b.style.display=h?"block":"none"};this.onOffCounterTimer=function(b){var h=a.triggerNodeBottom.querySelector(".trigger-timer-content"),m=this.getTriggerBottomTimer();ca(h,b.value?"block":"none");m.innerHTML=this.getTimeTemplate(a.isCounterTimerStart)};this.getTriggerBottomTimer=function(){return a.triggerNodeBottom.querySelector(".trigger-bottom-timer")};this.updateCounterTimer=function(b){var h=this.getTriggerBottomTimer();b=this.getCounterEventValue(b.value);h.innerHTML=this.getTimeTemplate(b)}; this.getCounterEventValue=function(b){return 0<=b?(10>b?"0":"")+b:"00"};this.getTimeTemplate=function(b){return""+b+":00"};this.showTrigger=function(b){z.hide();var h=this.getTriggerNode();this.changeTriggerState(b);this.showTriggerNode(b,h)};this.changeTriggerState=function(b){a.showTrigger=b;f.showPlayGameTrigger.yes=b?"0":"1";f.showPlayGameTrigger.no=b?"1":"0"};this.showTriggerNode=function(b,h){var m=this.getTriggerSide();m=this.getTriggerPartClass(m);h.style.zIndex= "2147483648";h.style.display=b?"block":"none";this.setTriggerSide(h,m);I(h," dashboard")};this.getTriggerSide=function(){if(this.isBottomTrigger())return"bottom";if(this.isSideTrigger())return"side";if(this.isSimpleTrigger())return"simple"};this.getTriggerPartClass=function(b){return 1==f.triggerSetting.triggerPosition.right?b+"-right":b+"-left"};this.getTriggerNode=function(){if(this.isBottomTrigger())return a.triggerNodeBottom;if(this.isSideTrigger())return a.triggerNodeSide;if(this.isSimpleTrigger())return a.triggerNodeSimple}; this.isBottomTrigger=function(){return"1"===y(f,"triggerSetting.triggerType.bottomTriggerWithCounter","0")};this.isSideTrigger=function(){return"1"!==y(f,"triggerSetting.triggerType.simpleTextButton","0")&&"1"!==y(f,"triggerSetting.triggerType.bottomTriggerWithCounter","0")};this.isSimpleTrigger=function(){return"1"===y(f,"triggerSetting.triggerType.simpleTextButton","0")};this.setTriggerSide=function(b,h){pa(b,"lucky-coupon-trigger-"+h)||I(b," lucky-coupon-trigger-"+h)};this.changeSidesAnimations= function(b,h,m,q){h.style.display="none";"None"!==m.value&&setTimeout(function(){L(h," animate-in");var C=" animate-"+q+"-out";I(h,C);h.style.display="block";setTimeout(function(){L(h,C);I(h," animate-in")}.bind(this),300)}.bind(this),100)};this.changeOtherAnimations=function(b,h,m){"None"!==m.value&&(b+=" animated "+m.value);h.className=b};this.rebuildModal=function(b){this.rebuildEvents(b,this.getInitHandler())};this.getInitHandler=function(){if(!a.isEmptyModal())return function(){};this.destroy(); return this.initObject.bind(this,a,D)};this.rebuildEvents=function(b,h){this.changeModalPosition(b);this.setTriggerVisibility(b);this.changeModalContent(b);h();this.changeViewVariables(b)};this.showCheckbox=function(b){if("GPDR"!==b.target)return!1;f.makeGPDRCompliance=b.value;a.checkBehavior=b.value;var h=a.select(".checkbox-wrapper"),m=a.select("div[data-name=note]");h&&(b.value?O(h):E(h));m&&(b.value?E(m):O(m))};this.showEmailField=function(b){var h=a.select(".lucky-coupon-"+k.position);"show"=== b.value?((b=a.select(".lucky-coupon-popup-inner.start-text .small-text"))&&(b.style.visibility="visible"),(b=a.select(".lucky-coupon-popup-inner .input-wrapper"))&&(b.style.visibility="visible"),O(a.select(".reveal__field")),L(h,"no-emails"),L(h," ")):(qa(a.select(".lucky-coupon-popup-inner.start-text .small-text")),qa(a.select(".lucky-coupon-popup-inner .input-wrapper")),E(a.select(".reveal__field")),pa(h,"no-emails")||I(h," no-emails"))};this.showFakeFacebook=function(b){a.isRecartEnabled=b.value; var h=a.select(".fake-fecebook-form"),m=a.select(this.isSpinTheWheelGame()?'input[data-text="startScreen.email"]':".email-input");if(!h||this.isSpinTheWheelGame())return!1;this.handleFakeFacebookRegularGames(b,h,m)};this.handleFakeFacebookRegularGames=function(b,h,m){b.value?(O(h),O(h.parentNode),E(m)):(E(h),E(h.parentNode),O(m,!0))};this.showNameField=function(b){this.showAdditionInput(b,".username-input")};this.showNumberField=function(b){this.showAdditionInput(b,".number-input")};this.showAdditionInput= function(b,h){var m=a.select(".input-wrapper .email-input"),q=a.select(".input-wrapper "+h);"show"===b.value?(E(a.select(".input-wrapper .username-input")),E(a.select(".input-wrapper .number-input")),O(q,"inline-block"),I(m," name-case")):(E(q),L(m," name-case"))};this.showBarCounter=function(b){var h=a.select(".lucky-coupon-bar"),m=a.select(".lucky-coupon-bar #copy-coupon");m?m.value="{COUPON_CODE}":!1;y(b,"value",!1)?O(h):E(h)};this.changeModalPosition=function(b){"position"===b.target&&(k.position= b.value)};this.setTriggerVisibility=function(b){f.triggerSetting.triggerType.bottomTriggerWithCounter="0";f.triggerSetting.triggerType.simpleTextButton="0";"textTrigger"===b.target?f.triggerSetting.triggerType.simpleTextButton="1":"newTrigger"===b.target&&(f.triggerSetting.triggerType.bottomTriggerWithCounter="1")};this.changeModalContent=function(b){d.content=this.getModalContent(d.content,b)};this.changeModalContentHigherObject=function(b){window.top._lkda["game_"+a.gameId].modal.modalContent.content= this.getModalContent(window.top._lkda["game_"+a.gameId].modal.modalContent.content,b)};this.changeViewVariables=function(b){if(!b||"device"!==b.target)return!1;var h="desktop"===b.value;setTimeout(function(){this.initGiftVariables(h);this.addMobileClasses(h);this.gameObject.hasOwnProperty("showFormInAdmin")&&this.gameObject.showFormInAdmin()}.bind(this),5)};this.addMobileClasses=function(b){var h=a.select(".game-editor");b?L(h," mobile scale"):I(h," mobile scale")};this.initGiftVariables=function(b){this.gameObject.hasOwnProperty("initDeviceVariables")&& this.gameObject.initDeviceVariables(b)};this.destroy=function(){g.body.innerHTML="";a.modalNode={}};this.getModalContent=function(b,h){return this.iterateElements(b,this.getContent.bind(this),h)};this.getContent=function(b,h,m){var q=b[h],C=q.meta;"coupons"===C&&"coupon"===m.target?"coupon"===a.gameType?q.content=this.iterateElements(q.content,this.gameObject.getCoupon.bind(this.gameObject),m):"slot"===a.gameType&&(b=this.iterateElements(q.content[0].content[0].content[0].content,this.gameObject.getCoupon.bind(this.gameObject), m),q.content[0].content[1].content[0].content=b,q.content[0].content[2].content[0].content=b):this.isTextChangeEvent(q,m)?q=this.changeElementText(m,C,q):this.isRecursive(q)&&(q.content=this.getModalContent(b[h].content,m));return q};this.isTextChangeEvent=function(b,h){return y(b,"data.text","")===h.target&&"boolean"!==typeof h.value};this.isRecursive=function(b){return b.content&&"meta"!==b.tagName&&"string"!==typeof b.content};this.initObject=function(b,h){"undefined"===typeof a.modalNode.tagName&& this.init(b,h)};this.changeElementText=function(b,h,m){h=Ea(h)||Ea(y(m,"data.name"))?"placeholder":"textNode";this.isSpinTheWheelGames()&&m.dataset&&-1<"startScreen.disclaimer startScreen.gdprComplience emailScreen.gdprComplience startScreen.note winScreen.note startScreen.gdpr startScreen.gpdr".split(" ").indexOf(m.dataset.text)?(m.textNode="",m.innerHTML=b.value):m[h]=b.value;return m};this.iterateElements=function(b,h,m){var q={},C;for(C in b)b.hasOwnProperty(C)&&(q[C]=h(b,C,m,this));return q}; this.initEvents=function(){var b=a.select(".email-input"),h=a.select(".btn-push.red"),m=a.selectAll(this.getContinueSelector()),q=a.select(".prize-list"),C=a.select(".game-area"),Q="#woohoo-trigger-"+a.gameType,da=g.querySelectorAll(Q);Q=g.querySelector(Q+".woohoo-"+a.gameInfo.gameId);h&&h.tagName&&h.addEventListener("click",this.submit.bind(this));b&&b.addEventListener("keypress",this.submitOnEnter.bind(this));a.modalNode.addEventListener("click",this.closeModal.bind(this));if(0=event.keyCode){var q=[].concat($jscomp.arrayFromIterable(a.selectAll(".options-wrapper div[data-code]"))).filter(function(C){return 0=== C.innerHTML.search(new RegExp(m.key,"i"))});q[0]&&(a.select(".options-wrapper").scrollTop=q[0].offsetTop)}};window.addEventListener("keydown",h);a.select(".options-wrapper").addEventListener("click",function(m){window.removeEventListener("keydown",h)})})};this.getContinueSelector=function(){switch(a.gameType){case "spinthewheel":return'[data-text="winScreen.button"]';case "reveal":return'[data-text="winScreen.applyCouponCode"]';default:return".continue-btn"}};this.addSpinTheWheelListeners=function(){if(!this.isSpinTheWheelGames())return!1; this.gameObject.initEvents(this.submit.bind(this),this.shakeValidate.bind(this),this.send.bind(this),this.sendGamePlayedStatistic.bind(this),p.continueUseDiscount.bind(p,this),this.closeAnimatedModal.bind(this,!0),this.finishSpinTheWheel.bind(this))};this.addRevealListeners=function(){if(!this.isRevealGame())return!1;this.gameObject.initEvents()};this.addTriggerListeners=function(){var b=g.querySelector("body > .lucky-coupon-trigger-side .close"),h=g.querySelector("body > .lucky-coupon-trigger-bottom .close"), m=g.querySelector("body > .lucky-coupon-trigger-simple .close");this.addTriggerListener(a.triggerNodeSide);this.addTriggerListener(a.triggerNodeBottom);this.addTriggerListener(a.triggerNodeSimple);this.addTriggerCloseListener({triggerClose:b});this.addTriggerCloseListener({triggerCloseBottom:h});this.addTriggerCloseListener({triggerCloseSimple:m})};this.addTriggerListener=function(b){if(!(b&&b.className&&a.showTrigger))return!1;b.addEventListener("click",this.getTriggerHanlder())};this.addTriggerCloseListener= function(b){var h=Object.keys(b)[0];if(!b[h])return!1;b[h].addEventListener("click",this[h].bind(this))};this.getTriggerHanlder=function(){return u&&Ba()?a.previewTrigger.executor:this.triggerShowModal.bind(this)};this.applyCodeToShopify=function(){var b=p.getBar();b=null!=b?b.querySelector('[data-text="bar.copyCode"]'):{};B.applyDiscount(b,a.couponCode||wa(a.gameInfo))};this.triggerShowModal=function(b){if(-1<["inner","close","close side-trigger-close-left"].indexOf(b.target.className))return!1; this.setTriggerClickedFlag();this.showGame(k.animation,a.gameInfo)};this.triggerClose=function(b){this.closeTrigger(b.target.closest(".lucky-coupon-trigger-side"))};this.triggerCloseBottom=function(b){this.closeTrigger(b.target.closest(".lucky-coupon-trigger-bottom"))};this.triggerCloseSimple=function(b){this.closeTrigger(b.target.closest(".lucky-coupon-trigger-simple"))};this.closeTrigger=function(b){var h=a.cookieExpirationDays;Y(U(a.gameInfo)+"TriggerClosedFlag",1,h);E(b)};this.addLaunchListeners= function(b){for(var h in b){var m=b[h];this.isSetupable(m)&&(m.dataset.click="bind",m.addEventListener("click",this.userLaunchGame.bind(this)))}};this.isSetupable=function(b){return b&&b.tagName&&!pa(b,"woohoo-")&&"undefined"===typeof b.dataset.click};this.initButton=function(){var b=0,h=setInterval(function(){b++;if(500m?0:255;m=0>m?-1*m:m;var Q=parseInt(q[0].slice(4)),da=parseInt(q[1]);q=parseInt(q[2]);C="rgb("+(Math.round((C-Q)*m)+Q)+","+(Math.round((C-da)*m)+da)+","+(Math.round((C-q)*m)+q)+")";q=this.getBoxShadowValue(C);h.style.borderColor=C;h.style.webkitAppearance="none";this.setBoxShadowStyles(h,q)};this.getPercent=function(){switch(a.gameType){case "gift":return-.4; default:return-.2}};this.setBoxShadowStyles=function(b,h){var m=["oBoxShadow","mozBoxShadow","msBoxShadow","webkitBoxShadow","boxShadow"],q;for(q in m)b.style[m[q]]=h};this.getBoxShadowValue=function(b){return"inset 0px "+this.getPixelSize()+"px 0px "+b};this.getPixelSize=function(){switch(a.gameType){case "wheel":case "fullwheel":case "":case "gift":return"-2";default:return"-5"}};this.showLastPageFromFirst=function(){var b=a.select(".start-text");I(b," hide");this.drawFinishScene()};this.resizeWrapper= function(){a.modalNode.style&&(600>ia(g)?a.modalNode.style.height="100vh":this.isSpinTheWheelGames()||(a.modalNode.style.height=this.getDocumentHeight()+"px"));this.sizeSlotGame();this.setAdminMobile()};this.setAdminMobile=function(){Na=600>ia(g)};this.isDashboardEnv=function(b){return!t&&(!!b.id&&-1!==a.modalSelector.indexOf(b.id)||this.checkWheelWrappers(b))};this.checkWheelWrappers=function(b){var h=b.parentNode;if(b&&h&&"string"===typeof h.className&&-1q.value.length:!m}m&&!(m=!a.numberCollect)&&(m=a.numberCollect,b= b.phoneInputValue.value,m=m?b&&Fa(b):!m);return m&&this.subscribeCheck(h)};this.getGDPRSelector=function(){switch(!0){case this.isSpinTheWheelGames():return".wheel-form.email .small-info-wrapper.gdpr-wrapper input";case this.isRevealGame():return".gdpr-wrapper input#gdpr";default:return".checkbox-container input"}};this.isErrorNameInput=function(b){return a.nameCollect?b&&2b.value.length:!a.numberCollect};this.isErrorNumberInput=function(b){return a.numberCollect?b&&Fa(b):!a.nameCollect}; this.shakeValidate=function(b){var h=this.getInputFromSelectors();this.clearErrors(b);if(this.validateSpinTheWheelFields(h))return this.hideCheckbox(),!0;setTimeout(this.setErrors.bind(this,b),20);return a.gameButtonPushed=!1};this.sendReal=function(b){var h=this.getInputFromSelectors();this.clearErrors(b);this.validate(h)?(this.hideCheckbox(),this.sendGamePlayedStatistic(h,this.afterSendGamePlayed(h.emailInput,b))):(this.setErrors(b),a.gameButtonPushed=!1)};this.afterSendGamePlayed=function(b,h){return function(m){var q= JSON.parse(m.response);"object"===typeof q.subscriber_email?this.handleErrorCase(b,q,h):this.startGame(m,h)}.bind(this)};this.getInputFromSelectors=function(){var b={},h=this.getInputSelectors();Object.entries(h).map(function(m){b[m[0]]=a.select(m[1])});return b};this.getInputSelectors=function(){return this.isSpinTheWheelGames()||this.isRevealGame()?this.gameObject.getInputSelectors():{emailInput:".email-input",usernameInput:".username-input",phoneInputValue:".number-input"}};this.clearErrors=function(b){this.isSpinTheWheelGames()|| this.isRevealGame()?this.gameObject.clearErrors(b):this.clearErrorsCommonTemplate(b)};this.clearErrorsCommonTemplate=function(b){var h=b.querySelector("."+a.errorTextClass),m=h.parentNode,q=b.querySelector((a.isRecartEnabled&&a.isRecartLoaded?"+ ":"")+"span"),C=b.querySelector(".email-input"),Q=b.querySelector(".username-input");b=b.querySelector(".number-input");var da=a.select(".checkbox-wrapper");q.style.display="none";m.style.display="none";h.innerHTML="";L(Q," animated shake");L(C," animated shake"); L(b," animated shake");L(da," animated shake");L(a.select(".checkbox-container span")," error")};this.hideCheckbox=function(){if("gift"!==a.gameType){var b=a.select(".checkbox-wrapper");E(b)}};this.setErrors=function(b){b=this.getInputFromSelectors();var h=a.select(this.getGDPRSelector()),m=a.select(this.getGDPRContainerSelector()).parentNode;h=h&&h.checked;ua(b.emailInput.value)||this.shakeElement(b.emailInput);this.checkStringInput(b.usernameInput);this.checkNumberInput(b.phoneInputValue);"1"!== a.checkBehavior||h||(this.shakeElement(m),I(a.select(".checkbox-container span")," error"))};this.getGDPRContainerSelector=function(){switch(!0){case this.isSpinTheWheelGames():return".wheel-form.email .small-info-wrapper.gdpr-wrapper .small-info";case this.isRevealGame():return"#gdpr";default:return".checkbox-container"}};this.checkStringInput=function(b){b&&(3>b.value.length||50 (this.isSpinTheWheelGame()?1:2))return O(b,!0),!1;E(b)};this.recartGiftCase=function(){"gift"===a.gameInfo.type&&I(a.select(".lucky-coupon-popup")," lucky-coupon-messenger")};this.getRecartEmailSelector=function(){return this.isSpinTheWheelGame()?'input[data-text="startScreen.email"]':".email-input"};this.recartActions=function(b){if(this.isWoohooNotAvailable(b))return!1;!0===b.widget.isCheckboxChecked?a.isRecartChecked=!0:(b=this.isSpinTheWheelGame()?".recart-messenger-widget":".input-wrapper",l.animateBySelector("shake", b))};this.isWoohooNotAvailable=function(b){return b.widget&&"woohoo"!==b.widget.type};this.setFrequencyBehavior=function(){if(!f.frequency)return!1;var b=f.frequency,h=this.getSelectedCondition(b,"");this.isGameAvailableAndShowed(b[h])&&(D.deleteShowFlagCookie(),D.deleteTimestampCookie());this.isEveryPageGame(h,b)?this.setModalNotShowedFlag():this.notMoreThanOnceEveryTime(h,b)&&this.setModalShowedFlag()};this.isGameAvailableAndShowed=function(b){return this.isAvailableCondition(b)&&1===this.getModalShowedFlag()}; this.isAvailableCondition=function(b){return this.isAvailableToShow(this.getTimestamp(a.gameInfo),b)};this.isEveryPageGame=function(b,h){return("onEveryPageView"===b&&"1"===h[b]||"undefined"===typeof b)&&0===Wa};this.notMoreThanOnceEveryTime=function(b,h){return"notMoreThanOnceEveryNumberTimePerUser"===b&&this.isChecked(h[b])&&!this.isAvailableToShow(this.getTimestamp(a.gameInfo),h[b])};this.isAvailableToShow=function(b,h){var m=Math.round((new Date).getTime()/1E3),q=this.getSelectedPeriod(h.time); return m-b>q*parseInt(h.number)};this.getSelectedPeriod=function(b){var h=this.getSeconds(),m;for(m in b)if("1"===b[m])return h[m]};this.getSeconds=function(){var b={day:86400};b.week=7*b.day;b.month=4*b.week;return b};this.setStopDisplayBehavior=function(){var b=y(f,"stopToDisplayTheGame"),h=this.getSelectedCondition(b,"");this.stopDisplayBySpecialConditions(h,b)&&(this.afterShowingItNumberTimesToTheUser(y(b,"underTheFollowingConditions.afterShowingItNumberTimesToTheUser")),this.userPerformTheAction(y(b, "underTheFollowingConditions.afterTheUserPerformsTheAction")))};this.afterShowingItNumberTimesToTheUser=function(b){!this.isChecked(b)||this.getNumber(y(b,"number",0))>this.getShowCounter(a.gameInfo)||this.setModalShowedFlag()};this.iSshowItNumberTimesToUser=function(){var b=y(f,"stopToDisplayTheGame.underTheFollowingConditions.afterShowingItNumberTimesToTheUser");return this.isChecked(b)&&!(this.getNumber(y(b,"number",0))<=this.getShowCounter(a.gameInfo))&&"1"===D.getPageLoaded()};this.isUserPerformTheAction= function(){var b=y(f,"stopToDisplayTheGame.underTheFollowingConditions.afterTheUserPerformsTheAction");return"0"===b||"1"===b&&1!==this.getGamePlayedState()};this.isNotMoreThanOnce=function(){var b=y(f,"frequency.notMoreThanOnceEveryNumberTimePerUser");return"0"===b.value||"1"===b.value&&this.isAvailableToShow(this.getTimestamp(a.gameInfo),b)};this.userPerformTheAction=function(b){"1"===b&&1===this.getGamePlayedState()&&this.setModalShowedFlag()};this.getGamePlayedState=function(){return this.getNumber(Z(na(a.gameInfo)), 0)};this.stopDisplayBySpecialConditions=function(b,h){return!this.isCheckedNever(b,h)&&"underTheFollowingConditions"===b};this.isCheckedNever=function(b,h){return"Never"===b&&h&&"1"===h[b]||"undefined"===typeof b};this.showModal=function(b){this.reDrawModal();l.isShownModal()||(!u&&2>this.getShowCounter(a.gameInfo)&&this.sendShowStatistic(),this.animateShow(b))};this.animateShow=function(b){this.displayModal();setTimeout(this.animateModal.bind(this,b),100)};this.displayModal=function(){a.modalNode.style.display= "block";g.body.style.overflowX="hidden";this.changeCouponsHeight();this.changeDocumentHeight()};this.changeCouponsHeight=function(){if(!this.isNotWheelGame())return!1;var b=a.selectAll(".lucky-coupon-popup-inner.coupon-wrapper"),h;for(h in b)b.hasOwnProperty(h)&&"length"!==h&&(b[h].style.height="auto")};this.changeDocumentHeight=function(){if(664this.getShowCounter(a.gameInfo)&&this.sendShowStatistic()};this.changeStyles=function(){this.clearModalNodeStyles();this.setModalWrapperStyles();this.clearPositionGameDiv()};this.clearModalNodeStyles=function(){for(var b=$jscomp.makeIterator("position top bottom z-index width height background-color".split(" ")),h=b.next();!h.done;h=b.next())a.modalNode.style[h.value]=""};this.setModalWrapperStyles=function(){var b=a.modalNode;b.style.width=X(a.select(".lucky-coupon-popup"), "width")+"px";b.style.position="relative";b.style.overflow="hidden";b.style.margin="auto"};this.clearPositionGameDiv=function(){var b=a.select(a.positionClass);b.style.left="0";b.style.top="0";b.style["-webkit-transform"]="none";b.style.transform="none";b.style.position="relative";b.querySelector(".lucky-coupon-popup").style["box-shadow"]="none"};this.isGameShowed=function(){return 1===this.getModalShowedFlag()};this.leaveSiteAddEventListener=function(b,h){fa?this.mobileLeaveEvent(b,h):this.desktopLeaveEvent(b, h)};this.desktopLeaveEvent=function(b,h){g.body.addEventListener("mouseleave",function(m){this.isTopDirection(m)&&!this.isGameShowed()&&this.showGame(b,h)}.bind(this))};this.mobileLeaveEvent=function(b,h){this.backButtonIntentExit(b,h);this.tabsChangeIntentExit(b,h)};this.backButtonIntentExit=function(b,h){location.hash="#!";window.addEventListener("hashchange",function(m){m=m.oldURL&&"undefined"!==typeof m.oldURL?m.oldURL.split("#")[1]:!1;this.isGameShowed()||"!"!==m||this.showGame(b,h)}.bind(this))}; this.tabsChangeIntentExit=function(b,h){c.addEventListener("blur",function(m){this.isGameShowed()||this.showGame(b,h)}.bind(this))};this.isTopDirection=function(b){return 0>=b.clientY};this.isChecked=function(b){return b?b.hasOwnProperty("value")?"1"===b.value:!1:!1};this.getNumber=function(b,h){return isNaN(b)||""===b?h:parseFloat(b)};this.showWhenReaches=function(b,h,m){this.isAheadOfPercents(100===b?99.5:b)&&!this.isGameShowed()&&this.showGame(h,m)};this.isAheadOfPercents=function(b){var h=isShopifyAdmin()? window:c;return h.innerHeight+h.scrollY>=this.getDocumentHeight()/100*b};this.userLaunchGame=function(){a.isUserOpened=!0;a.showBar=!1;this.showGame(k.animation,a.gameInfo)};this.showGame=function(b,h){l.isShownModal()||!r.isModalAllowed()&&!u||(this.hideTrigger(),this.addToShowCounter(h),this.showModal(b),clearTimeout(a.modalTimerId))};this.hideTrigger=function(){var b=a.triggerNodeSide;b&&(b.style.opacity="0");(b=a.triggerNodeBottom)&&(b.style.opacity="0");(b=a.triggerNodeSimple)&&(b.style.opacity= "0")};this.addToShowCounter=function(b){b=this.getShowCounter(b);this.setShowCounter(b+1);this.setModalShowedFlag()};this.getShowCounter=function(b){b=Z(U(b)+"Showed");return isNaN(b)||""===b?0:parseInt(b)};this.setShowCounter=function(b){Y(U(a.gameInfo)+"Showed",b,a.cookieExpirationDays);b=Math.round((new Date).getTime()/1E3);this.setTimestamp(a.gameInfo,b)};this.getModalShowedFlag=function(){return this.getNumber(Z(U(a.gameInfo)+"ShowFlag"),0)};this.setModalShowedFlag=function(){Y(U(a.gameInfo)+ "ShowFlag",1,a.cookieExpirationDays)};this.setTriggerClickedFlag=function(){Y(U(a.gameInfo)+"TriggerClickFlag",1,a.cookieExpirationDays)};this.setModalNotShowedFlag=function(){Y(U(a.gameInfo)+"ShowFlag",0,a.cookieExpirationDays)};this.setTimestamp=function(b,h){0===this.getTimestamp(b)&&Y(U(b)+"Timestamp",h,a.cookieExpirationDays)};this.getTimestamp=function(b){return this.getNumber(Z(U(b)+"Timestamp"),0)};this.valueSelected=function(b){return"1"===b||"1"===b.value};this.getProperty=function(b,h){var m, q=b[h];this.valueSelected(q)?m=h:"object"===typeof q&&(m=this.getSelectedCondition(q,h));return m};this.getSelectedCondition=function(b,h){var m;for(m in b){var q=this.getProperty(b,m,h);if(""!==h&&q)return h;if(q)return q}};this.detectDevice=function(){return navigator.userAgent.match(/Android/i)||navigator.userAgent.match(/webOS/i)||navigator.userAgent.match(/iPhone/i)||navigator.userAgent.match(/iPad/i)||navigator.userAgent.match(/iPod/i)||navigator.userAgent.match(/BlackBerry/i)||navigator.userAgent.match(/Windows Phone/i)}; this.sendShowStatistic=function(){var b=this.detectDevice()?"mobile":"pc";this.ajax({url:"/api/v1/game/add/impression",method:"POST",data:{id:a.gameId,site_id:a.siteId,device_type:b}})};this.sendGamePlayedStatistic=function(b,h){var m=y(b.emailInput,"value",null),q=y(b.usernameInput,"value",null),C=this.getSubscriberNumber(b.phoneInputValue),Q=this.detectDevice()?"mobile":"pc";Q={url:"/api/v1/game/add/hit",method:"POST",data:{id:a.gameId,site_id:a.siteId,subscriber_email:m,subscriber_name:q,subscriber_number:C, device_type:Q,ver:y(A.split("?v"),"1","0.0.0")}};a.sendedEmail=m;a.sendedName=q;a.sendedNumber=a.numberCollect?C:"non-collect-option-on";if(!a.emailCollect||a.isRecartEnabled&&a.isRecartChecked)Q.data.subscriber_email="non-collect-option-on",a.sendedEmail="non-collect-option-on";this.ajax(Q,h)};this.getSubscriberNumber=function(b){return b&&b.value?this.getPhoneCountryCode()+this.getPhone(b.value):"string"===typeof b?b:""};this.getPhone=function(b){return y(b.replace(/[- ]/g,"").match(/\b0*([1-9][0-9]*|0)\b/), "1","")};this.getPhoneCountryCode=function(){var b=y(a.select(".country-code[data-chosen]"),"innerHTML","");return b?b:""};this.getCode=function(b,h){this.ajax({url:"/api/v1/coupon/code",method:"POST",data:b},h)};this.ajax=function(b,h,m){if(!this.checkOverload(b.url)){m="undefined"===typeof m;h=h?h.bind(this):function(){}.bind(this);var q=new XMLHttpRequest,C=this.serialize(b.data);q.open(b.method,(m?"//"+a.hostName:"")+b.url,!0);-1m)return a.gameButtonPushed=!1,!0;this.tempRequestBag[b]=h;return!1};this.serialize=function(b){var h=[],m;for(m in b)b.hasOwnProperty(m)&&h.push(encodeURIComponent(m)+"="+encodeURIComponent(b[m]));return h.join("&")}} function za(c){var g=U(c.gameInfo);this.cookiesList="Showed Timestamp BarClosed TriggerClosedFlag TriggerClosedFlag ShowFlag Played Code CountDownShowed ResetCookie CounterTimer TriggerClickFlag PageLoaded".split(" ");this.cookieNames=[];this.init=function(){this.setCookieNames();this.checkReset()&&(this.clearCookies(),this.setResetCookie(c.resetCookie))};this.setCookieNames=function(){for(var e in this.cookiesList)this.cookiesList.hasOwnProperty(e)&&this.cookieNames.push(this.getCookieName(e))}; this.getCookieName=function(e){return g+this.cookiesList[e]};this.checkReset=function(){return c.resetCookie>this.getResetCookie()};this.getResetCookie=function(){var e=parseInt(Z(this.getResetCookieName()));return isNaN(e)?0:e};this.getResetCookieName=function(){return this.cookieNames[9]};this.clearCookies=function(){for(var e in this.cookieNames)this.isResetCookieName(e)&&this.deleteCookie(this.cookieNames[e])};this.isResetCookieName=function(e){return!this.cookieNames.hasOwnProperty(e)||-1=== this.cookieNames[e].indexOf(this.getResetCookieName())};this.deleteCookie=function(e){Y(e,null,-1)};this.setResetCookie=function(e){Y(this.getResetCookieName(),e,c.cookieExpirationDays)};this.deleteTimestampCookie=function(){this.deleteCookie(this.cookieNames[1])};this.deleteShowFlagCookie=function(){this.deleteCookie(this.cookieNames[5])};this.setPageLoaded=function(e){Y(this.cookieNames[12],e)};this.getPageLoaded=function(){return Z(this.cookieNames[12])};this.setCookieGamePlayed=function(){Y(na(c.gameInfo), 1,c.cookieExpirationDays)}}function mb(){this.setWithExpiry=function(c,g,e){g={value:g,expiry:(new Date).getTime()+e};window.localStorage.setItem(c,JSON.stringify(g))};this.getWithExpiry=function(c){var g=window.localStorage.getItem(c);if(!g)return null;g=JSON.parse(g);return(new Date).getTime()>g.expiry?(window.localStorage.removeItem(c),null):g.value};this.checkReset=function(){if(1===parseInt(window.localStorage.getItem("wooHooReset")))return!0;for(var c=[],g=0;g<=window.localStorage.length;g++){var e= window.localStorage.key(g);"string"===typeof e&&e.includes("wooHoo")&&c.push(e)}c.map(function(d){window.localStorage.removeItem(d)});window.localStorage.setItem("wooHooReset",1);return!0}}function Ca(c){var g=w.createElement("style");g.type="text/css";g.innerHTML=c;return g}function Ea(c){return-1<["email","userName","number"].indexOf(c)}function Ta(c,g){for(var e in c)c.hasOwnProperty(e)&&(c[e].hasOwnProperty("meta")?"coupons"===c[e].meta&&(g=c[e].content):c[e].hasOwnProperty("content")&&"meta"!== c[e].tagName&&0===g.length&&(g=Ta(c[e].content,g)));if(g)return g}function jb(){var c=[],g=this.select("[data-meta=coupons]").childNodes;g=$jscomp.makeIterator(g);for(var e=g.next();!e.done;e=g.next()){e=e.value;var d={};for(index in e.dataset)value=e.dataset[index],d[index]=value;c.push(d)}return c}function db(c,g){return"boolean"===typeof c&&c?g:c}function La(c){c=c.replace(/(%27|')/g,'"').split('"');return(c[1]?c[1]:c[0]).replace(/ /g,"+")}function ta(c,g){c&&g&&c.map(function(e){if(e=this.select(e))e.innerHTML= g}.bind(this))}function Ka(c){setTimeout(function(){var g=function(e){return this.couponCode}.bind(this);g=new ClipboardJS(c,{text:g});g.on("success",Xa.bind(this,"Copied"));g.on("error",Xa.bind(this,"Failed to copy"))}.bind(this),400)}function Xa(c){return!1}function Ja(c){var g=document.createElement("div");g.innerHTML=c.trim();return g.firstChild}function Ua(c){return c.charAt(0).toUpperCase()+c.slice(1)}function Y(c,g,e){var d=new Date;d.setTime(d.getTime()+864E5*e);e="expires="+d.toUTCString(); document.cookie="lkda_"+c+"="+g+";"+e+";path=/;"}function Z(c){c="lkda_"+c+"=";try{var g=decodeURIComponent(document.cookie)}catch(k){g=document.cookie}g=g.split(";");for(var e=0;e()[\]\\.,;:\s@"]+(\.[^<>()[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/.test(c)} function Fa(c){return/^([0-9]{4,25})$/.test(c)}function Ba(){return t&&"undefined"!==typeof DETAIL_PAGE&&DETAIL_PAGE}function ra(){var c="iPad Simulator;iPhone Simulator;iPod Simulator;iPad;iPhone;iPod".split(";");if(navigator.platform)for(;c.length;)if(navigator.platform===c.pop())return!0;return!1}function $a(){var c=navigator.userAgent.toLowerCase();return-1!==c.indexOf("safari")&&-1===c.indexOf("chrome")}function ma(c,g){var e=c.split(" ").filter(Boolean),d="",k="",f=e.map(function(a,l){if((d+ a).length<=(g?g:13)){if(d+=a+" ",l===e.length-1)return k=d,d="",k}else return k=d,d=a+" ",k.trim()});f=f.filter(Boolean);var n=y(f,"1","");f[1]=n?n+" "+d:d;return f}function ya(c){var g=document.createElement("div");g.appendChild(c);return g.innerHTML}function oa(c,g){var e=Math.pow(10,Ya(c,g));return(c*e+g*e)/e}function Ya(c,g){var e=Za(c),d=Za(g);return e>d?e:d}function Pa(c,g){var e=Math.pow(10,Ya(c,g));return(c*e-g*e)/e}function Za(c){c=c.toString().split(".");return c.hasOwnProperty("1")?c[1].length: 0}function ib(c){var g=y(c,"frequency.notMoreThanOnceEveryNumberTimePerUser");if("1"===y(g,"value","0")){c=y(g,"number",1);a:switch(y(g,"time","day")){case "month":g=30;break a;case "week":g=7;break a;default:case "day":g=1}c*=g}else c=365;return c}function Ra(c,g){void 0===g&&(g="s");return c.replace(new RegExp("^["+g+"]+"),"")}function Qa(c,g){void 0===g&&(g="s");return c.replace(new RegExp("["+g+"]+$"),"")}function Ga(c,g){c=Math.ceil(c);g=Math.floor(g);return Math.floor(Math.random()*(g-c+1))+ c}function Ha(c){c=w.body.querySelector('script[src^="//'+c+'/js/runtime.dev.js"]');return!(!c||!c.tagName)}function sa(c){c="undefined"!==typeof c?c:!1;var g=this.select(".loader");g?g.remove():!1;if(c)return!1;c=w.createElement("div");c.className="loader";c.innerHTML=''; this.modalNode.appendChild(c)}function Ia(c){var g="",e;for(e in c)if(Object.hasOwnProperty.call(c,e))for(var d=$jscomp.makeIterator(c[e]),k=d.next();!k.done;k=d.next())g+=k.value+"
";return g}var ab=function(){function c(r,B){switch(B.format){case "hsvArray":return r;case "hslArray":return l(r);case "hsl":var x=l(r);return"hsl("+x[0]+", "+x[1]+"%, "+x[2]+"%)";case "hsla":var K=l(r);x=B.alpha||Math.random();return"hsla("+K[0]+", "+K[1]+"%, "+K[2]+"%, "+x+")";case "rgbArray":return n(r);case "rgb":return"rgb("+ n(r).join(", ")+")";case "rgba":return K=n(r),x=B.alpha||Math.random(),"rgba("+K.join(", ")+", "+x+")";default:return k(r)}}function g(r){if("number"===typeof parseInt(r)){var B=parseInt(r);if(360>B&&0=r&&(r-=360);for(var B in z){var x=z[B];if(x.hueRange&&r>=x.hueRange[0]&&r<=x.hueRange[1])return z[B]}return"Color not found"} function d(r){if(null===p)return Math.floor(r[0]+Math.random()*(r[1]+1-r[0]));var B=r[1]||1;r=r[0]||0;p=(9301*p+49297)%233280;return Math.floor(r+p/233280*(B-r))}function k(r){function B(x){x=x.toString(16);return 1==x.length?"0"+x:x}r=n(r);return"#"+B(r[0])+B(r[1])+B(r[2])}function f(r,B,x){z[r]={hueRange:B,lowerBounds:x,saturationRange:[x[0][0],x[x.length-1][0]],brightnessRange:[x[x.length-1][1],x[0][1]]}}function n(r){var B=r[0];0===B&&(B=1);360===B&&(B=359);B/=360;var x=r[1]/100;r=r[2]/100;var K= Math.floor(6*B),b=6*B-K;B=r*(1-x);var h=r*(1-b*x);x=r*(1-(1-b)*x);var m=b=256,q=256;switch(K){case 0:b=r;m=x;q=B;break;case 1:b=h;m=r;q=B;break;case 2:b=B;m=r;q=x;break;case 3:b=B;m=h;q=r;break;case 4:b=x;m=B;q=r;break;case 5:b=r,m=B,q=h}return[Math.floor(255*b),Math.floor(255*m),Math.floor(255*q)]}function a(r){r=r.replace(/^#/,"");r=3===r.length?r.replace(/(.)/g,"$1$1"):r;var B=parseInt(r.substr(0,2),16)/255,x=parseInt(r.substr(2,2),16)/255;r=parseInt(r.substr(4,2),16)/255;var K=Math.max(B,x,r), b=K-Math.min(B,x,r),h=K?b/K:0;switch(K){case B:return[(x-r)/b%6*60||0,h,K];case x:return[60*((r-B)/b+2)||0,h,K];case r:return[60*((B-x)/b+4)||0,h,K]}}function l(r){var B=r[1]/100,x=r[2]/100,K=(2-B)*x;return[r[0],Math.round(B*x/(1>K?K:2-K)*1E4)/100,K/2*100]}var p=null,z={};f("monochrome",null,[[0,0],[100,0]]);f("red",[-26,18],[[20,100],[30,92],[40,89],[50,85],[60,78],[70,70],[80,60],[90,55],[100,50]]);f("orange",[19,46],[[20,100],[30,93],[40,88],[50,86],[60,85],[70,70],[100,70]]);f("yellow",[47,62], [[25,100],[40,94],[50,89],[60,86],[70,84],[80,82],[90,80],[100,75]]);f("green",[63,178],[[30,100],[40,90],[50,85],[60,81],[70,74],[80,64],[90,50],[100,40]]);f("blue",[179,257],[[20,100],[30,86],[40,80],[50,74],[60,60],[70,52],[80,44],[90,39],[100,35]]);f("purple",[258,282],[[20,100],[30,87],[40,79],[50,70],[60,65],[70,59],[80,52],[90,45],[100,42]]);f("pink",[283,334],[[20,100],[30,90],[40,86],[60,84],[80,80],[90,75],[100,73]]);var D=function(r){r=r||{};if(void 0!==r.seed&&null!==r.seed&&r.seed=== parseInt(r.seed,10))p=r.seed;else if("string"===typeof r.seed){for(var B=r.seed,x=0,K=0;K!==B.length&&!(x>=Number.MAX_SAFE_INTEGER);K++)x+=B.charCodeAt(K);p=x}else{if(void 0!==r.seed&&null!==r.seed)throw new TypeError("The seed value must be an integer or string");p=null}if(null!==r.count&&void 0!==r.count){B=r.count;x=[];for(r.count=null;B>x.length;)p&&r.seed&&(r.seed+=1),x.push(D(r));r.count=B;return x}B=g(r.hue);B=d(B);0>B&&(B=360+B);x=r;if("monochrome"===x.hue)x=0;else if("random"===x.luminosity)x= d([0,100]);else{var b=e(B).saturationRange;K=b[0];b=b[1];switch(x.luminosity){case "bright":K=55;break;case "dark":K=b-10;break;case "light":b=55}x=d([K,b])}K=r;a:{b=x;for(var h=e(B).lowerBounds,m=0;m=q&&b<=Q){h=(da-C)/(Q-q);b=h*b+(C-h*q);break a}}b=0}q=100;switch(K.luminosity){case "dark":q=b+20;break;case "light":b=(q+b)/2;break;case "random":b=0,q=100}K=d([b,q]);return c([B,x,K],r)};return D}();(function(){window.confettiKit= function(c){var g=this;g.version="1.1.0";g.config={colors:["#a864fd","#29cdff","#78ff44","#ff718d","#fdff6a"],el:"body",elements:{confetti:{direction:"down",rotation:!0},star:{count:15,direction:"up",rotation:!0},ribbon:{count:10,direction:"down",rotation:!0}},confettiCount:75,x:0,y:0,angle:90,decay:.9,spread:45,startVelocity:45,position:null};for(var e in c)g.config[e]=c[e];var d=g.config;g.renderStar=function(k,f){return'
star
'}; g.renderRibbon=function(k,f){return'
'}; g.customRender=function(k,f,n,a,l){if("text"==f)return'

'+k+"

";if("svg"==f)return'
'+k+"
";if("image"==f)return''};g.createElements=function(k,f){var n=d.elements.star?d.elements.star.count:0,a=d.elements.ribbon?d.elements.ribbon.count:0,l=[];if(d.elements.custom&&-1l?requestAnimationFrame(a):f.forEach(function(p){k.contains(p.element)&&k.removeChild(p.element)})}var l=0;requestAnimationFrame(a)}; g.confetti=function(k,f,n){var a=d.angle,l=d.decay,p=d.spread,z=d.startVelocity,D=[];g.createElements(k,d.confettiCount).map(function(r){r={element:r,physics:g.randomPhysics(f,n,a,p,z)};D.push(r)});g.animate(k,D,l)};e=document.querySelector(d.el);null!=d.position?"bottomLeftRight"==d.position?(d.angle=45,g.confetti(e,0,window.innerHeight-200),c.position=null,c.angle=135,c.x=window.innerWidth,c.y=window.innerHeight-200,new confettiKit(c)):"topLeftRight"==d.position&&(d.angle=340,g.confetti(e,0,0), c.position=null,c.angle=190,c.x=window.innerWidth,c.y=0,new confettiKit(c)):g.confetti(e,d.x,d.y)}})();var Na=!1,fa=!1,Wa=0,nb=new function(){var c=!1,g=new mb;this.preloadedData={token:!1,local_token:!1,device:!1};this.executeGames=function(e){if(e.hasOwnProperty("_lkda")){var d=0;e=e._lkda;try{t&&(d=window.self.FRAME_ID)}catch(k){}"preview_trigger"in e&&!("game_preview"in e)&&0===d?(d=e.preview_trigger.game_id,this.executeGame(d,e["game_"+d].modal,!1)):0===d&&"game_preview"in e?this.executeGame("game_preview", e.game_preview.modal):this.exeGames(e,d)}};this.exeGames=function(e,d){var k=this.getABIdStates(e),f=k.active,n=k.deactive,a=1 -1;return isHostUrlInLogo || !this.revealLogo || isSameUrl? this.revealLogo: this.hostUrl + this.revealLogo}})(window,document,'_lkda','script','//app.getwoohoo.com/js/runtime.js?v1.2.4.799',JSON.parse('{"24492":"eyJ0YWdOYW1lIjoiZGl2IiwiaWQiOiIlMjJsYyUyMitpZCIsIm1ldGEiOnsiY2xvc2VJdGVtIjp7ImNsYXNzTmFtZSI6ImNsb3NlIn0sInR5cGUiOiJmdWxsd2hlZWwiLCJsYW5ndWFnZSI6ImVuIiwiZ2FtZUlkIjoyNDQ5MiwiYWN0aXZlIjoxLCJmaWxlc3lzdGVtIjoic3BhY2VzIiwidHJhbnNsYXRpb25zIjp7ImNvdXBvbnMiOnsiZGlzY291bnQiOnsiZW4iOiJEaXNjb3VudCIsImRlIjoiUmFiYXR0IiwicnUiOiJcdTA0MjFcdTA0M2FcdTA0MzhcdTA0MzRcdTA0M2FcdTA0MzAiLCJmciI6IlJlbWlzZSIsImVzIjoiRGVzY3VlbnRvIiw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W91ciBlbWFpbCBhZGRyZXNzIHRvIGZpbmQgb3V0IGlmIHlvdSUyMnZlIHRoZSB3aW5uZXIifSwicGxheVNjcmVlbiI6eyJ3YWl0aW5nRm9yUmVzdWx0cyI6IkxldCUyMnMgc2VlIHdoYXQgeW91JTIydmUgd29uIn0sIndpblNjcmVlbiI6eyJjb25ncmF0dWxhdGlvbnMiOiJDb25ncmF0dWxhdGlvbnMhIiwieW91R290IjoiWW91IGdvdCBhIiwieW91ckRpc2NvdW50Q29kZUlzIjoiWW91ciBEaXNjb3VudCBDb2RlIElzOiIsImJ1dHRvbiI6IlNIT1AgTk9XIn0sImJhciI6eyJ5b3VyIjoiWW91ciIsImNvdXBvbkNvZGUiOiJjb3Vwb24gY29kZSIsInJlc2VydmVkRm9yIjoiaXMgcmVzZXJ2ZWQgZm9yIiwiY29weUNvZGUiOiJBcHBseSBDb2RlIiwiY29waWVkIjoiQXBwbGllZCIsImZhaWxlZENvcHkiOiJGYWlsZWQgdG8gYXBwbHkifSwidHJpZ2dlciI6IldpbiBBIFByaXplIn19LCJzdHlsZSI6eyJkaXNwbGF5Ijoibm9uZSIsInBvc2l0aW9uIjoiZml4ZWQiLCJ0b3AiOjAsImJvdHRvbSI6MCwiei1pbmRleCI6MjE0NzQ4MzY0Nywid2lkdGgiOiIxMDAlIiwiaGVpZ2h0IjoiMTAwJSIsImJhY2tncm91bmQtY29sb3IiOiJyZ2JhKDAsMCwwLDAuNSkifSwiY29udGVudCI6W10sImRlYnVnIjpmYWxzZSwiY2xhc3NOYW1lIjoiZzI0NDkyIn0="}'),JSON.parse('{"24492":"
<\/div><\/div>
<\/div>
<\/div><\/div>
<\/div>
SPIN TO WIN!<\/div>
<\/div><\/div><\/span><\/span><\/span><\/span><\/form>