(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["Lottery"],{"525a":function(e,t,r){"use strict";r.r(t);var a=function(){var e=this,t=e._self._c;return t("div",{staticClass:"iframe-wrapper",class:{hideHeaderNav:!e.showHeadNav}},[t("iframe",{ref:"gameIframeRef",staticClass:"lottery-iframe",attrs:{frameborder:"0",allowfullscreen:"",webkitallowfullscreen:"",oallowfullscreen:"",msallowfullscreen:"",mozallowfullscreen:""}})])},n=[],c=r("c7eb"),o=r("1da1"),u=(r("ac1f"),r("5319"),r("d3b7"),r("2b0e")),s=r("b43a"),i=r("806c");function l(e){return p.apply(this,arguments)}function p(){return p=Object(o["a"])(Object(c["a"])().mark((function e(t){return Object(c["a"])().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.abrupt("return",new Promise((function(e){return setTimeout((function(){return e()}),t)})));case 1:case"end":return e.stop()}}),e)}))),p.apply(this,arguments)}var b={setup:function(e){var t=Object(s["h"])(),r=Object(s["j"])(),a=r.store,n=r.dispatch,p=Object(s["k"])(),b=p.getVnLottUrl,f=Object(i["a"])(),w=f.isLogin,d=Object(u["i"])(null),v=Object(u["a"])((function(){return a.eGameStore.prizeMode})),h=Object(u["a"])((function(){return a.home.showHeadNav})),j=function(){var e=Object(o["a"])(Object(c["a"])().mark((function e(t){return Object(c["a"])().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return t.contentWindow.location.replace("about:blank"),e.next=3,l(200);case 3:return t.contentWindow.location.reload(),e.next=6,l(100);case 6:return e.abrupt("return",!0);case 7:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),m=function(){d.value.addEventListener("load",Object(o["a"])(Object(c["a"])().mark((function e(){return Object(c["a"])().wrap((function(e){while(1)switch(e.prev=e.next){case 0:window.cover.loader(!1);case 1:case"end":return e.stop()}}),e)}))),{once:!0})},O=function(){var e=Object(o["a"])(Object(c["a"])().mark((function e(){var r,o,u,s;return Object(c["a"])().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return window.cover.loader(!0),e.next=3,j(d.value);case 3:e.prev=3,window.cover.loader(!0),m(),r=t.query,o=r.gameCode,u=r.playType,e.t0=t.path,e.next="/vnLottery"===e.t0?10:"/seaLottery"===e.t0?14:"/lottery"===e.t0?18:22;break;case 10:return e.next=12,b({gameCode:o,language:a.home.language});case 12:return s=e.sent,e.abrupt("break",23);case 14:return e.next=16,n("getLottURL",{prizeMode:"SEA",lottoGameCode:o});case 16:return s=e.sent,e.abrupt("break",23);case 18:return e.next=20,n("getLottURL",{prizeMode:v.value,lottoGameCode:o,playType:u});case 20:return s=e.sent,e.abrupt("break",23);case 22:return e.abrupt("break",23);case 23:d.value.src=s,e.next=29;break;case 26:e.prev=26,e.t1=e["catch"](3),window.cover.loader(!1);case 29:case"end":return e.stop()}}),e,null,[[3,26]])})));return function(){return e.apply(this,arguments)}}();return Object(u["f"])((function(){window.cover.loader(!0),O(),Object(u["k"])(w,(function(){O()}))})),{gameIframeRef:d,showHeadNav:h}}},f=b,w=r("2877"),d=Object(w["a"])(f,a,n,!1,null,null,null);t["default"]=d.exports}}]);