(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[B]=$jscomp.IS_SYMBOL_NATIVE? $jscomp.global.Symbol(B):$jscomp.POLYFILL_PREFIX+u+"$"+B),$jscomp.defineProperty(t,$jscomp.propertyToPolyfillSymbol[B],{configurable:!0,writable:!0,value:w})))};$jscomp.initSymbol=function(){}; $jscomp.polyfill("Symbol",function(v){if(v)return v;var w=function(G,L){this.$jscomp$symbol$id_=G;$jscomp.defineProperty(this,"description",{configurable:!0,writable:!0,value:L})};w.prototype.toString=function(){return this.$jscomp$symbol$id_};var u="jscomp_symbol_"+(1E9*Math.random()>>>0)+"_",t=0,B=function(G){if(this instanceof B)throw new TypeError("Symbol is not a constructor");return new w(u+(G||"")+"_"+t++,G)};return B},"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(" "),u=0;u\n',""));c.imageBase64[l]=p;this.setImage(btoa(this.getPattern(l)),a)};this.adminPatternColorise=function(f){if(t&&!u){f=ya(f);f=new E(f);var m=x(window,"settings.colors.pattern");m="string"===typeof m?m:m.hex?m.hex:"#DE4E5F";var a=f.select("g").children()[1].select("g").children()[2].select("g").children();a=$jscomp.makeIterator(a);for(var l=a.next();!l.done;l= a.next())l=l.value.children(),l[0].setAttr("fill",m),l[1].setAttr("fill",m),l[1].setAttr("stroke",m);f=f.get().outerHTML}return f};this.setImage=function(f,m){m.forEach(function(a){a.src="data:image/svg+xml;base64,"+f})};this.getPattern=function(f){if(!f){var m=Object.keys(c.imageBase64);m=$jscomp.makeIterator(m);for(var a=m.next();!a.done;a=m.next())if(a=a.value,-1!==a.indexOf("reveal_pattern")){f=a;break}}return c.imageBase64[f]};this.initEvents=function(){this.listenClick(".no-word",function(f){t&& !u?this.closeModal({target:c.select("."+c.closeClass)}):u||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(u)return this.showWinScreen(); if(t)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,m){var a=c.select(f);a&&a.tagName&&a.addEventListener("click",m)};this.listenInput=function(f,m){var a=c.select(f);a&&a.tagName&&a.addEventListener("keydown",m)};this.gamePlayed=function(f){f=JSON.parse(f.response);1===f.result?(f=e.getWinnerItem(c.selectAll(".reveal")), this.finishGame(f)):((f=Ka(f))?error.innerHTML=f:!1,aa(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(m){M(m," 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 t? "TEST_CODE":"undefined"!==typeof f.text?f.text:f};this.showStartScreen=function(){F(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(m,a){a+1===f?O(m):F(m)})};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 m=c.select("#gdpr").parentNode,a=m.parentNode.querySelector(".reveal__disclaimer-wrapper");f?(aa(m,"flex"),m.style.top=(a.innerText?22:0)+"px"):F(m)};this.handleCheckboxGPDR=function(f){var m=c.select("#gdpr");f?aa(m,"flex"):F(m)};this.handleLogo=function(f){c.selectAll(".reveal__logo-img").forEach(function(m){f?(M(m," hide"), m.style.content="url("+f+")"):J(m," hide")})};this.handlePattern=function(f){var m=ya(this.getPattern());this.changePatternColor(m,f);this.setImage(btoa(za(m)),c.selectAll(".reveal__img"))};this.changePatternColor=function(f,m){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",m),l.getAttribute("stroke")&&l.setAttribute("stroke",m)}}function E(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();var A=x(window.top,"colors."+c.gameId+".couponText",c.couponTextColor);r[0].setAttr("fill",A);r[1].setAttr("fill",A);r[0].children()[0].setText(D[0].trim());r[1].children()[0].setText(D[1].trim())}};this.setTempData=function(a){var l=x(window,"spinthewheel.slices.colors."+c.gameId,!1);x(window,"spinthewheel.slices.texts."+c.gameId,!1);x(window, "spinthewheel.font.color."+c.gameId,!1);c.svg=new E(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";m.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(u?this.getSvgCopy(a.response,p):a.response);this.setWrapper(p,z)};this.getSvgCopy=function(a,l){var p=ya(a.replace('',""));p.id="svg-background";p.style.display="none";l.appendChild(p);p=p.cloneNode(!0);p.style.display=null;return za(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];m.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,A){c.select(".wheel-form.email .launcher").addEventListener("click",function(y){F(c.select(".error"));this.launchGameEmailScreen(l,y,z,A)}.bind(this));c.select('.wheel-form.email input[data-name="email"]').addEventListener("keyup",function(y){if(13!==y.keyCode)return!1;F(c.select(".error"));this.launchGameEmailScreen(l,y,z,A)}.bind(this));c.select(".wheel-form.spin .launcher").addEventListener("click", function(y){this.launchAnimationSpinButton(y,A)}.bind(this));[".wheel-form.winner .launcher",".wheel-form.winner-alternative .launcher"].map(function(y){t||La.call(c,y);(y=c.select(y))&&y.addEventListener("click",function(K){t&&!u?r():D(K)})});c.select('.no-thanks[data-text="spinScreen.payFull"]').addEventListener("click",function(){u?!1:r()});c.select(".dropdown")&&c.select(".dropdown").addEventListener("click",function(y){var K=y.target.closest(".dropdown"),b=K.querySelector(".options-wrapper"); y.target.dataset.mcode?(K=K.querySelector("button"),K.dataset.chosen=y.target.dataset.code,K.innerHTML=y.target.dataset.mcode,y.target.closest(".options-wrapper").style.display="none"):b.style.display=0l.length?[l,""]:ma(l);var p="#coupon"+(parseInt(a)+1);m.select(p+"curve2text").setText(l[1]);m.select(p+"curve1text").setText(l[0])}};this.launchGame=function(f){f=d.getWinnerItem(f);e.rotate(c.select(Na()),{stop:parseInt(f.dataset.stop)},function(m){setTimeout(this.finishGame.bind(null,m),1E3)}.bind(this,f));if(!ra())return!1;this.redrawCircle(1, this.getSVGCircle())};this.animateHide=function(){c.gameScreen(c)};this.setTempData=function(f){var m=x(window,"wheel.slices.colors."+c.gameId,!1);x(window,"wheel.slices.texts."+c.gameId,!1);x(window,"wheel.font.color."+c.gameId,!1);c.svg=new E(f.querySelector("svg"));this.changeSlicesSchema(m)};this.changeSlicesSchema=function(f){if(!f)return!1;f=$jscomp.makeIterator(f);for(var m=f.next();!m.done;m=f.next())m=m.value,c.svg.select("#"+m.name).setAttr("fill",m.hex)}}function Q(c,g){new da(c);var e= new ca(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 m=0;var a=setInterval(function(){m++;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(m){m=d.getWinnerItem(m); e.rotate(c.select(".fullwheel"),{stop:parseInt(m.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,m))};this.animateHide=function(){c.gameScreen(c)};this.setTempData=function(m){var a=x(window,"fullwheel.slices.colors."+c.gameId,!1);x(window,"fullwheel.slices.texts."+c.gameId,!1);x(window,"fullwheel.font.color."+c.gameId,!1);c.svg=new E(m.querySelector("svg"));this.changeSlicesSchema(a)}; this.changeSlicesSchema=function(m){if(!m)return!1;m=$jscomp.makeIterator(m);for(var a=m.next();!a.done;a=m.next())a=a.value,c.svg.select("#"+a.name).setAttr("fill",a.hex)};this.hooksHandler=function(m){"font"===m.target&&this.handleFontChange(m)};this.handleFontChange=function(m){var a=Ma(m.value),l=new E(c.select(".fullwheel svg")),p=l.select("#coupons"),z=p.getAttr("style").split(";");l.select("#fonts").innerHTML=this.getSvgFontLine(a);z[0]="font-family:"+m.value;p.setAttr("style",z.join(";"))}; this.getSvgFontLine=function(m){return'"}}function R(c,g){var e=new da(c),d=new ca(c);new ka;var k=!ea,f={width:92,height:84,bottom:145},m={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:m;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]"); F(a);O(p);this.setItemOpacity(p,l);p.style.height=W(a,"height")+"px";this.fadeIn(p)};this.prepareGiftWrapper=function(a){if(!a)return!1;J(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");M(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(W(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||t&&"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=W(l,"margin").split(" ")[0]+"px";l.style.bottom= "0px"};this.animateDirection=function(a,l){var p=W(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,m,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,m);this.showCurrentCoupon(z,p);setTimeout(this.gameIteration.bind(this,k,f,m,d,l,a),f)};this.getSpeed=function(d,k,f,m){d=25+ (m+1);m=10;f>=d-3?m=30:f>=d-4?m=10:f>=d-5?m=5:4>f?m=-8:8>f?m=-7:16>f&&(m=-5);return k+m};this.showCurrentCoupon=function(d,k){d.className=d.className.replace(" won","");k.className+=" won"};this.gameIteration=function(d,k,f,m,a,l){this.stopGame(d,k,f,l)?setTimeout(this.finishGame.bind(null,m[d]),1700):(l++,this.playGame(m,d===a?0:d+1,k,f,l))};this.stopGame=function(d,k,f,m){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 U(c,g){this.animationObject=new ca(c);this.requestObject=new da(c);this.getBar=function(){return window.top.document.body.querySelector(this.getBarSelector())};this.getBarSelector=function(){return".lucky-coupon-bar.g"+c.gameInfo.gameId};this.continueUseDiscount=function(e){if(t)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 m=w.body.querySelector(this.getBarSelector());m&&m.remove();w.body.appendChild(c.barNode);c.barNode.style.display="block";m=c.barNode.querySelector(".coupon-code-code input");m.value=wa(c.gameInfo);m.style.width=14.5*m.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(T(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), m=this.getDistanceSeconds(k);this.setTime(d,f,m);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");this.appendClipboardEvents();d.addEventListener("click",this.closeBar); this.showCalculatedTime(e)};this.appendClipboardEvents=function(){c.barNode.querySelector("button").addEventListener("click",function(e){this.requestObject.applyDiscount(e.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 m=(new Date).getTime();f-=m;m=this.getSafePeriod(this.getDistanceMinutes(f));var a=this.getSafePeriod(this.getDistanceSeconds(f));return{distance:f,m:m,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,m,a){f.innerHTML=this.getTime(this.getSegment(m),this.getSegment(a))};this.getSegment=function(f){return 0<=f?(10>f?"0":"")+f:"00"};this.getTime=function(f,m){return""+ f+":"+m+""};this.getCounterTimerShowed=function(){return Z(T(c.gameInfo)+"CounterTimer")};this.setCounterTimerShowed=function(){Z(T(c.gameInfo)+"CounterTimer")||Y(T(c.gameInfo)+"CounterTimer",(new Date).getTime(),1)};this.hide=function(){g.style.display="none";e.style.display="none";u?d.style.display="none":M(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="."+x(f,"className","").replace(/ /g,".");(f="."!==f?w.body.querySelector(f):!1)&&f.remove(f.selectedIndex)};this.destroy=function(){this.hide();this.remove()}}function da(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(m){c.requestResults[g]=m.response}, k=e?function(m){d(m);e(m)}: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=x(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),m=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(m)};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 Pa(c){this.isModalAllowed=function(){return!t&&!u&&!this.isShopifyOrderOrCheckoutPage()&&!this.isFilteredByUrl()};this.isShopifyOrderOrCheckoutPage=function(){var g=x(window.Shopify,"Checkout");return x(g,"isOrderStatusPage",!1)||!!x(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,m=!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)&&(m||"1"!==p.type||(m=!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=u?"@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 da(c)).ajax({remote:!0,url:d,method:"GET",error:e},function(k){c.fontsDownloaded.push(g.fontFamily); k=Da(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 da(c);this.getBackgroundUrl=function(e){e=W(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(ea&&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"),n;for(n in h)h.hasOwnProperty(n)&&(h[n].style.top=b*n+"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 U(a,this.closeModal.bind(this)); p.initCountdownBar();z=new ha(a);z.initTrigger()};this.setDevEnv=function(){this.hasDevScript()&&(this.dev={$this:a,animationObject:l,gameObject:this.gameObject,barObject:p,triggerObject:z,svg:E})};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 n=document.head.querySelector("#add_styles");n&&n.remove();return!1}n=Da('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;}"));n.id="add_styles";document.head.appendChild(n)};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=n;n++)h.select("#linear-"+n+"-center").setStyle("stop-color",b),h.select("#linear-"+n+"-left").setStyle("stop-color", b),h.select("#linear-"+n+"-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 n=h.next();!n.done;n=h.next())this.changeTextColor(n.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 n="#"+b.getAttr("id"),q=a.svg.selectParent(n+"curve1text");n=a.svg.selectParent(n+"curve2text");q.setStyle("fill",h);n.setStyle("fill",h)};this.changeSlicesText=function(b){var h=1;b=$jscomp.makeIterator(b.coupon.bunch);for(var n=b.next();!n.done;n=b.next()){n=n.value;var q=this.isSpinTheWheelGames()?16:13;n=n.value.lengthb.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(n){(n=this.getHookElement(b,n))&&(h=h.concat(Array.from(n)))}.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 n=-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)}),n=b.target;h=b[h];k.hasOwnProperty(n)&&(k[n]=h,"font"===n&&y.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),n=-1!==b.value.indexOf("Right")?"right":b.value.indexOf("Left")? "left":!1;-1===h.parentNode.className.indexOf("lucky-coupon-center")&&n||(n=void 0);this.changeOtherAnimations(a.modalWrapperClass,h,b,n)};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("-"), n=h[0],q=this.getPositionName("left"!==n);n=this.getPositionName("left"===n);this.changePosition(a.triggerNodeSide,"side-"+q,"side-"+n);this.changePosition(a.triggerNodeBottom,"bottom-"+q,"bottom-"+n);f.triggerSetting.triggerBottomTextPosition=h[1]?"1":"0";this.triggerPositionSwitch(n,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,n){M(b," lucky-coupon-trigger-"+h);J(b," lucky-coupon-trigger-"+n)};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=Ea(f);if(a.showTrigger||"1"==f.showPlayGameTrigger.yes)this.changeTriggerVisibility(a.triggerNodeSimple,h),h?(J(a.triggerNodeSimple," dashboard"),M(a.triggerNodeSimple," invisible")):(M(a.triggerNodeSimple," dashboard"),J(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"),n=this.getTriggerBottomTimer();aa(h,b.value?"block":"none");n.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 n= this.getTriggerSide();n=this.getTriggerPartClass(n);h.style.zIndex="2147483648";h.style.display=b?"block":"none";this.setTriggerSide(h,n);J(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"===x(f,"triggerSetting.triggerType.bottomTriggerWithCounter","0")};this.isSideTrigger=function(){return"1"!==x(f,"triggerSetting.triggerType.simpleTextButton","0")&&"1"!==x(f,"triggerSetting.triggerType.bottomTriggerWithCounter","0")};this.isSimpleTrigger=function(){return"1"===x(f,"triggerSetting.triggerType.simpleTextButton","0")};this.setTriggerSide=function(b,h){pa(b,"lucky-coupon-trigger-"+h)||J(b, " lucky-coupon-trigger-"+h)};this.changeSidesAnimations=function(b,h,n,q){h.style.display="none";"None"!==n.value&&setTimeout(function(){M(h," animate-in");var C=" animate-"+q+"-out";J(h,C);h.style.display="block";setTimeout(function(){M(h,C);J(h," animate-in")}.bind(this),300)}.bind(this),100)};this.changeOtherAnimations=function(b,h,n){"None"!==n.value&&(b+=" animated "+n.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"),n=a.select("div[data-name=note]");h&&(b.value?O(h):F(h));n&&(b.value?F(n):O(n))};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")),M(h,"no-emails"),M(h," ")):(qa(a.select(".lucky-coupon-popup-inner.start-text .small-text")),qa(a.select(".lucky-coupon-popup-inner .input-wrapper")),F(a.select(".reveal__field")),pa(h,"no-emails")||J(h," no-emails"))};this.showFakeFacebook=function(b){a.isRecartEnabled= b.value;var h=a.select(".fake-fecebook-form"),n=a.select(this.isSpinTheWheelGame()?'input[data-text="startScreen.email"]':".email-input");if(!h||this.isSpinTheWheelGame())return!1;this.handleFakeFacebookRegularGames(b,h,n)};this.handleFakeFacebookRegularGames=function(b,h,n){b.value?(O(h),O(h.parentNode),F(n)):(F(h),F(h.parentNode),O(n,!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 n=a.select(".input-wrapper .email-input"),q=a.select(".input-wrapper "+h);"show"===b.value?(F(a.select(".input-wrapper .username-input")),F(a.select(".input-wrapper .number-input")),O(q,"inline-block"),J(n," name-case")):(F(q),M(n," name-case"))};this.showBarCounter=function(b){var h=a.select(".lucky-coupon-bar"),n=a.select(".lucky-coupon-bar #copy-coupon");n?n.value="{COUPON_CODE}":!1;x(b,"value",!1)?O(h):F(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?M(h," mobile scale"):J(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,n){var q=b[h],C=q.meta;"coupons"===C&&"coupon"===n.target?"coupon"===a.gameType?q.content=this.iterateElements(q.content,this.gameObject.getCoupon.bind(this.gameObject),n):"slot"===a.gameType&&(b=this.iterateElements(q.content[0].content[0].content[0].content,this.gameObject.getCoupon.bind(this.gameObject), n),q.content[0].content[1].content[0].content=b,q.content[0].content[2].content[0].content=b):this.isTextChangeEvent(q,n)?q=this.changeElementText(n,C,q):this.isRecursive(q)&&(q.content=this.getModalContent(b[h].content,n));return q};this.isTextChangeEvent=function(b,h){return x(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,n){h=Fa(h)||Fa(x(n,"data.name"))?"placeholder":"textNode";this.isSpinTheWheelGames()&&n.dataset&&-1<"startScreen.disclaimer startScreen.gdprComplience emailScreen.gdprComplience startScreen.note winScreen.note startScreen.gdpr startScreen.gpdr".split(" ").indexOf(n.dataset.text)?(n.textNode="",n.innerHTML=b.value):n[h]=b.value;return n};this.iterateElements=function(b,h,n){var q={},C;for(C in b)b.hasOwnProperty(C)&&(q[C]=h(b,C,n,this));return q}; this.initEvents=function(){var b=a.select(".email-input"),h=a.select(".btn-push.red"),n=a.selectAll(this.getContinueSelector()),q=a.select(".prize-list"),C=a.select(".game-area"),P="#woohoo-trigger-"+a.gameType,ba=g.querySelectorAll(P);P=g.querySelector(P+".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",function(V){D.setCookieGameClosed();this.closeModal(V)}.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(n.key,"i"))});q[0]&&(a.select(".options-wrapper").scrollTop=q[0].offsetTop)}};window.addEventListener("keydown",h);a.select(".options-wrapper").addEventListener("click",function(n){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"),n=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:n})}; 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 t&&Ca()?a.previewTrigger.executor:this.triggerShowModal.bind(this)};this.applyCodeToShopify=function(){var b=p.getBar();b=null!=b?b.querySelector('[data-text="bar.copyCode"]'):{};A.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(T(a.gameInfo)+"TriggerClosedFlag",1,h);F(b)};this.addLaunchListeners=function(b){for(var h in b){var n=b[h];this.isSetupable(n)&&(n.dataset.click="bind",n.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(500n?0:255;n=0>n?-1*n:n;var P=parseInt(q[0].slice(4)),ba=parseInt(q[1]);q=parseInt(q[2]);C="rgb("+(Math.round((C-P)*n)+P)+","+(Math.round((C-ba)*n)+ba)+","+(Math.round((C-q)*n)+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 n=["oBoxShadow","mozBoxShadow","msBoxShadow","webkitBoxShadow","boxShadow"],q;for(q in n)b.style[n[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");J(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(){Oa=600>ia(g)};this.isDashboardEnv=function(b){return!u&&(!!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:!n}n&&!(n=!a.numberCollect)&&(n=a.numberCollect,b=b.phoneInputValue.value,n=n?b&&Ga(b):!n);return n&&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&&Ga(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(n){var q=JSON.parse(n.response);"object"===typeof q.subscriber_email?this.handleErrorCase(b,q,h):this.startGame(n,h)}.bind(this)};this.getInputFromSelectors=function(){var b={},h=this.getInputSelectors();Object.entries(h).map(function(n){b[n[0]]=a.select(n[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),n=h.parentNode,q=b.querySelector((a.isRecartEnabled&&a.isRecartLoaded?"+ ":"")+"span"),C=b.querySelector(".email-input"),P=b.querySelector(".username-input"); b=b.querySelector(".number-input");var ba=a.select(".checkbox-wrapper");q.style.display="none";n.style.display="none";h.innerHTML="";M(P," animated shake");M(C," animated shake");M(b," animated shake");M(ba," animated shake");M(a.select(".checkbox-container span")," error")};this.hideCheckbox=function(){if("gift"!==a.gameType){var b=a.select(".checkbox-wrapper");F(b)}};this.setErrors=function(b){b=this.getInputFromSelectors();var h=a.select(this.getGDPRSelector()),n=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(n),J(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;F(b)};this.recartGiftCase=function(){"gift"===a.gameInfo.type&&J(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===Ha};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 n=Math.round((new Date).getTime()/1E3),q=this.getSelectedPeriod(h.time);return n-b>q*parseInt(h.number)};this.getSelectedPeriod=function(b){var h=this.getSeconds(),n;for(n in b)if("1"===b[n])return h[n]};this.getSeconds=function(){var b={day:86400};b.week=7*b.day;b.month=4*b.week;return b};this.setStopDisplayBehavior=function(){var b=x(f,"stopToDisplayTheGame"),h=this.getSelectedCondition(b,"");this.stopDisplayBySpecialConditions(h,b)&&(this.afterShowingItNumberTimesToTheUser(x(b, "underTheFollowingConditions.afterShowingItNumberTimesToTheUser")),this.userPerformTheAction(x(b,"underTheFollowingConditions.afterTheUserPerformsTheAction")))};this.afterShowingItNumberTimesToTheUser=function(b){!this.isChecked(b)||this.getNumber(x(b,"number",0))>this.getShowCounter(a.gameInfo)||this.setModalShowedFlag()};this.iSshowItNumberTimesToUser=function(){var b=x(f,"stopToDisplayTheGame.underTheFollowingConditions.afterShowingItNumberTimesToTheUser");return this.isChecked(b)&&!(this.getNumber(x(b, "number",0))<=this.getShowCounter(a.gameInfo))&&"1"===D.getPageLoaded()};this.isUserPerformTheAction=function(){var b=x(f,"stopToDisplayTheGame.underTheFollowingConditions.afterTheUserPerformsTheAction");return"0"===b||"1"===b&&1!==this.getGamePlayedState()};this.isNotMoreThanOnce=function(){var b=x(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.getGameClosedState=function(){return this.getNumber(Z(T(a.gameInfo)+"Closed"),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()||(!t&&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=W(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){ea?this.mobileLeaveEvent(b,h):this.desktopLeaveEvent(b,h)};this.desktopLeaveEvent=function(b,h){g.body.addEventListener("mouseleave",function(n){this.isTopDirection(n)&&!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(n){n=n.oldURL&&"undefined"!==typeof n.oldURL?n.oldURL.split("#")[1]:!1;this.isGameShowed()||"!"!==n||this.showGame(b,h)}.bind(this))};this.tabsChangeIntentExit=function(b,h){c.addEventListener("blur",function(n){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,n){this.isAheadOfPercents(100===b?99.5:b)&&!this.isGameShowed()&&this.showGame(h,n)};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()&&!t||(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(T(b)+"Showed");return isNaN(b)||""===b?0:parseInt(b)};this.setShowCounter=function(b){Y(T(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(T(a.gameInfo)+"ShowFlag"),0)};this.setModalShowedFlag=function(){Y(T(a.gameInfo)+"ShowFlag",1,a.cookieExpirationDays)};this.setTriggerClickedFlag=function(){Y(T(a.gameInfo)+"TriggerClickFlag",1,a.cookieExpirationDays)};this.setModalNotShowedFlag=function(){Y(T(a.gameInfo)+"ShowFlag",0,a.cookieExpirationDays)};this.setTimestamp=function(b,h){0===this.getTimestamp(b)&&Y(T(b)+"Timestamp",h,a.cookieExpirationDays)}; this.getTimestamp=function(b){return this.getNumber(Z(T(b)+"Timestamp"),0)};this.valueSelected=function(b){return"1"===b||"1"===b.value};this.getProperty=function(b,h){var n,q=b[h];this.valueSelected(q)?n=h:"object"===typeof q&&(n=this.getSelectedCondition(q,h));return n};this.getSelectedCondition=function(b,h){var n;for(n in b){var q=this.getProperty(b,n,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 n=x(b.emailInput,"value",null),q=x(b.usernameInput,"value",null),C=this.getSubscriberNumber(b.phoneInputValue), P=this.detectDevice()?"mobile":"pc";P={url:"/api/v1/game/add/hit",method:"POST",data:{id:a.gameId,site_id:a.siteId,subscriber_email:n,subscriber_name:q,subscriber_number:C,device_type:P,ver:x(B.split("?v"),"1","0.0.0")}};a.sendedEmail=n;a.sendedName=q;a.sendedNumber=a.numberCollect?C:"non-collect-option-on";if(!a.emailCollect||a.isRecartEnabled&&a.isRecartChecked)P.data.subscriber_email="non-collect-option-on",a.sendedEmail="non-collect-option-on";this.ajax(P,h)};this.getSubscriberNumber=function(b){return b&& b.value?this.getPhoneCountryCode()+this.getPhone(b.value):"string"===typeof b?b:""};this.getPhone=function(b){return x(b.replace(/[- ]/g,"").match(/\b0*([1-9][0-9]*|0)\b/),"1","")};this.getPhoneCountryCode=function(){var b=x(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,n){if(!this.checkOverload(b.url)){n="undefined"===typeof n;h=h?h.bind(this):function(){}.bind(this); var q=new XMLHttpRequest,C=this.serialize(b.data);q.open(b.method,(n?"//"+a.hostName:"")+b.url,!0);-1n)return a.gameButtonPushed=!1,!0; this.tempRequestBag[b]=h;return!1};this.serialize=function(b){var h=[],n;for(n in b)b.hasOwnProperty(n)&&h.push(encodeURIComponent(n)+"="+encodeURIComponent(b[n]));return h.join("&")}}function Aa(c){var g=T(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)};this.setCookieGameClosed=function(){Y(T(c.gameInfo)+"Closed",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 Da(c){var g=w.createElement("style");g.type="text/css";g.innerHTML=c;return g}function Fa(c){return-1< ["email","userName","number"].indexOf(c)}function Ua(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=Ua(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 Ma(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 La(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 ya(c){var g=document.createElement("div"); g.innerHTML=c.trim();return g.firstChild}function Va(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 Ga(c){return/^([0-9]{4,25})$/.test(c)}function Ca(){return u&&"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 m=x(f,"1","");f[1]=m?m+" "+d:d;return f}function za(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 Qa(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=x(c,"frequency.notMoreThanOnceEveryNumberTimePerUser");if("1"===x(g,"value","0")){c=x(g,"number",1);a:switch(x(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 Sa(c,g){void 0===g&&(g="s");return c.replace(new RegExp("^["+g+"]+"),"")}function Ra(c,g){void 0===g&&(g="s");return c.replace(new RegExp("["+g+"]+$"),"")}function Ia(c,g){c=Math.ceil(c);g=Math.floor(g);return Math.floor(Math.random()*(g-c+1))+c}function Ja(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 Ka(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,A){switch(A.format){case "hsvArray":return r;case "hslArray":return l(r);case "hsl":var y=l(r);return"hsl("+y[0]+", "+y[1]+"%, "+y[2]+"%)";case "hsla":var K=l(r);y=A.alpha||Math.random();return"hsla("+K[0]+", "+K[1]+"%, "+K[2]+"%, "+y+")";case "rgbArray":return m(r);case "rgb":return"rgb("+ m(r).join(", ")+")";case "rgba":return K=m(r),y=A.alpha||Math.random(),"rgba("+K.join(", ")+", "+y+")";default:return k(r)}}function g(r){if("number"===typeof parseInt(r)){var A=parseInt(r);if(360>A&&0=r&&(r-=360);for(var A in z){var y=z[A];if(y.hueRange&&r>=y.hueRange[0]&&r<=y.hueRange[1])return z[A]}return"Color not found"} function d(r){if(null===p)return Math.floor(r[0]+Math.random()*(r[1]+1-r[0]));var A=r[1]||1;r=r[0]||0;p=(9301*p+49297)%233280;return Math.floor(r+p/233280*(A-r))}function k(r){function A(y){y=y.toString(16);return 1==y.length?"0"+y:y}r=m(r);return"#"+A(r[0])+A(r[1])+A(r[2])}function f(r,A,y){z[r]={hueRange:A,lowerBounds:y,saturationRange:[y[0][0],y[y.length-1][0]],brightnessRange:[y[y.length-1][1],y[0][1]]}}function m(r){var A=r[0];0===A&&(A=1);360===A&&(A=359);A/=360;var y=r[1]/100;r=r[2]/100;var K= Math.floor(6*A),b=6*A-K;A=r*(1-y);var h=r*(1-b*y);y=r*(1-(1-b)*y);var n=b=256,q=256;switch(K){case 0:b=r;n=y;q=A;break;case 1:b=h;n=r;q=A;break;case 2:b=A;n=r;q=y;break;case 3:b=A;n=h;q=r;break;case 4:b=y;n=A;q=r;break;case 5:b=r,n=A,q=h}return[Math.floor(255*b),Math.floor(255*n),Math.floor(255*q)]}function a(r){r=r.replace(/^#/,"");r=3===r.length?r.replace(/(.)/g,"$1$1"):r;var A=parseInt(r.substr(0,2),16)/255,y=parseInt(r.substr(2,2),16)/255;r=parseInt(r.substr(4,2),16)/255;var K=Math.max(A,y,r), b=K-Math.min(A,y,r),h=K?b/K:0;switch(K){case A:return[(y-r)/b%6*60||0,h,K];case y:return[60*((r-A)/b+2)||0,h,K];case r:return[60*((A-y)/b+4)||0,h,K]}}function l(r){var A=r[1]/100,y=r[2]/100,K=(2-A)*y;return[r[0],Math.round(A*y/(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 A=r.seed,y=0,K=0;K!==A.length&&!(y>=Number.MAX_SAFE_INTEGER);K++)y+=A.charCodeAt(K);p=y}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){A=r.count;y=[];for(r.count=null;A>y.length;)p&&r.seed&&(r.seed+=1),y.push(D(r));r.count=A;return y}A=g(r.hue);A=d(A);0>A&&(A=360+A);y=r;if("monochrome"===y.hue)y=0;else if("random"===y.luminosity)y= d([0,100]);else{var b=e(A).saturationRange;K=b[0];b=b[1];switch(y.luminosity){case "bright":K=55;break;case "dark":K=b-10;break;case "light":b=55}y=d([K,b])}K=r;a:{b=y;for(var h=e(A).lowerBounds,n=0;n=q&&b<=P){h=(ba-C)/(P-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([A,y,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,m,a,l){if("text"==f)return'

'+k+"

";if("svg"==f)return'
'+k+"
";if("image"==f)return''};g.createElements=function(k,f){var m=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,m){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,m,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 Oa=!1,ea=!1,Ha=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{u&&(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,m=k.deactive,a=1 -1;return isHostUrlInLogo || !this.revealLogo || isSameUrl? this.revealLogo: this.hostUrl + this.revealLogo}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WVkIjoiQXBwbGllZCIsImZhaWxlZENvcHkiOiJGYWlsZWQgdG8gYXBwbHkifSwidHJpZ2dlciI6IldpbiBBIFByaXplIn19LCJzdHlsZSI6eyJkaXNwbGF5Ijoibm9uZSIsInBvc2l0aW9uIjoiZml4ZWQiLCJ0b3AiOjAsImJvdHRvbSI6MCwiei1pbmRleCI6MjE0NzQ4MzY0Nywid2lkdGgiOiIxMDAlIiwiaGVpZ2h0IjoiMTAwJSIsImJhY2tncm91bmQtY29sb3IiOiJyZ2JhKDAsMCwwLDAuNykifSwiY29udGVudCI6W10sImRlYnVnIjpmYWxzZX0="}'),JSON.parse('{"47321":"
50%25%20OFF<\/div>
5%25%20OFF<\/div>
10%25%20OFF<\/div>
20%25%20OFF<\/div>
5%25%20OFF<\/div>
10%25%20OFF<\/div><\/div>
<\/div><\/div>
<\/div>
\\\"Spin\\\"Spin\\\"Spin
<\/div>
Enter your email to reveal your<\/div>Exclusive discount!<\/span><\/div>
WANT TO UNLOCK<\/div>TODAY%22S EXCLUSIVE DISCOUNT!<\/span><\/div><\/div><\/div>
Congratulations!<\/div>
YOU UNLOCKED<\/div>
<\/div>
YOUR COUPON CODE IS:<\/div>
<\/div><\/div><\/div><\/div>
* You can spin the wheel only once.
* If you win, your coupon will only be valid for x minutes.
* Single-use coupon.
<\/div><\/span>
By submitting your email address you agree to the Terms of Use and Sale<\/a> and to receive marketing emails about products and services we think may be of interest to you. You can opt-out at any time.<\/div><\/span><\/div>
WANT TO UNLOCK TODAY%22S EXCLUSIVE DISCOUNT?<\/span>ENTER YOUR EMAIL TO REVEAL YOUR SPECIAL OFFER!<\/span>
<\/div>
<\/div>Email is already been used<\/span>