(window.webpackJsonp=window.webpackJsonp||[]).push([[5],{1125:function(e,t,n){var content=n(1632);content.__esModule&&(content=content.default),"string"==typeof content&&(content=[[e.i,content,""]]),content.locals&&(e.exports=content.locals);(0,n(21).default)("1d863dad",content,!0,{sourceMap:!1})},1126:function(e,t,n){var content=n(1635);content.__esModule&&(content=content.default),"string"==typeof content&&(content=[[e.i,content,""]]),content.locals&&(e.exports=content.locals);(0,n(21).default)("b4427cd4",content,!0,{sourceMap:!1})},1189:function(e,t,n){"use strict";var r=n(23),o=(n(205),n(1633)),c=n.n(o),l={name:"BaseSelect",components:{Icon:n(213).a},directives:{ClickOutside:c.a},props:{activeOption:{type:[Number,String,Object],default:null},options:{type:Array,required:!0},objectKey:{type:String,default:""},theme:{type:String,default:"black"},isDisabled:{type:Boolean,default:!1}},data:function(){return{isOpened:!1}},computed:{getClass:function(){return["base-select--".concat(this.theme),{"base-select--opened":this.isOpened,"base-select--disabled":this.isDisabled}]},getIconName:function(){return"orange"===this.theme?"dropdown":"arrow"}},watch:{isDisabled:function(e){e&&this.closeSelect()}},methods:{closeSelect:function(){this.isOpened=!1},toggleSelect:function(){this.isOpened=!this.isOpened},getKey:function(option){if(!("object"===Object(r.a)(option)))return option;if(!this.objectKey)throw new Error("you have to declare objectKey");return option[this.objectKey]},selectOption:function(option){this.getKey(this.activeOption)!==this.getKey(option)&&this.$emit("selectOption",option),this.closeSelect()},getOptionClass:function(option){return{"base-select__option--active":this.getKey(this.activeOption)===this.getKey(option)}}}},f=(n(1634),n(0)),component=Object(f.a)(l,(function(){var e=this,t=e._self._c;return t("div",{directives:[{name:"click-outside",rawName:"v-click-outside",value:e.closeSelect,expression:"closeSelect"}],staticClass:"base-select",class:e.getClass},[t("div",{staticClass:"base-select__active-item",on:{click:e.toggleSelect}},[e._t("active_option",null,{activeOption:e.activeOption})],2),t("div",{staticClass:"base-select__arrow",on:{click:e.toggleSelect}},[t("Icon",{attrs:{name:e.getIconName}})],1),t("div",{staticClass:"base-select__options"},e._l(e.options,(function(option){return t("div",{key:e.getKey(option),staticClass:"base-select__option",class:e.getOptionClass(option),on:{click:function(t){return e.selectOption(option)}}},[e._t("list_option",null,{option:option})],2)})),0)])}),[],!1,null,"1c7fb9a1",null);t.a=component.exports},1631:function(e,t,n){"use strict";n(1125)},1632:function(e,t,n){var r=n(20)(!1);r.push([e.i,'@keyframes shake_disabled{0%{transform:rotate(2deg)}50%{transform:rotate(-3deg)}70%{transform:rotate(3deg)}to{transform:rotate(0deg)}}@keyframes nod_hover{0%{transform:translateY(0)}50%{transform:translateY(2px)}to{transform:translateY(0)}}.currency-picker__button{align-items:center;background-color:#ff5038;border:1px solid #000;box-shadow:5px 5px 0 0 #000;color:#fff;-moz-column-gap:10px;column-gap:10px;display:flex;flex-flow:row nowrap;font-family:"DivanSans","Tajawal",sans-serif;font-size:25px;font-weight:700;height:40px;justify-content:center;line-height:normal;padding:5px 10px;text-shadow:-1px -1px 0 #000,0 -1px 0 #000,1px -1px 0 #000,1px 0 0 #000,1px 1px 0 #000,0 1px 0 #000,-1px 1px 0 #000,-1px 0 0 #000,-1px 1px 0 #000,-1px 2px 0 #000,0 2px 0 #000,1px 2px 0 #000,-1px 3px 0 #000,0 3px 0 #000,1px 3px 0 #000}[dir=rtl] .currency-picker__button{font-size:20px;font-weight:700}.currency-picker__selected-currency-sign{font-family:"DivanSans","Tajawal",sans-serif;font-size:25px;line-height:normal}[dir=rtl] .currency-picker__selected-currency-sign{font-size:20px;font-weight:700}.currency-picker__icon{font-size:10px}',""]),e.exports=r},1633:function(e,t){function n(e){return"function"==typeof e.value||(console.warn("[Vue-click-outside:] provided expression",e.expression,"is not a function."),!1)}function r(e){return void 0!==e.componentInstance&&e.componentInstance.$isServer}e.exports={bind:function(e,t,o){if(!n(t))return;function c(t){if(o.context){var n=t.path||t.composedPath&&t.composedPath();n&&n.length>0&&n.unshift(t.target),e.contains(t.target)||function(e,t){if(!e||!t)return!1;for(var i=0,n=t.length;i2&&void 0!==arguments[2]&&arguments[2];Object(r.a)(this,e),this.callback=t,this.timeout=n,this.is_interval=o,this._timer=o?setInterval(this.callback,this.timeout):setTimeout(this.callback,this.timeout)}return Object(o.a)(e,[{key:"destroy",value:function(){this._timer&&(this.is_interval?clearInterval(this._timer):clearTimeout(this._timer),this._timer=null)}}]),e}());t.a=c},819:function(e,t,n){"use strict";n(40),n(8),n(38),n(59),n(94),n(32);var r=n(15),o=n(138);t.a={mixins:[o.a],props:{offer:Object,offersList:Array,currency:Object},data:function(){return{m_OFFER_ACQUIRED:"Acquired",m_OFFER_AVAILABLE:"Available"}},computed:{m_isOfferHasCurrencyPrice:function(){var e=this;return!!this.offer.finalPrices.filter((function(t){return t.currency===e.currency.code})).length},m_getBasePrice:function(){return this.m_findPriceObject(this.offer.prices,this.currency)},m_getFinalPrice:function(){return this.m_findPriceObject(this.offer.finalPrices,this.currency)},m_getContentValuePrice:function(){return this.m_findPriceObject(this.offer.contentValue,this.currency)},m_getPriceWithoutDiscount:function(){return this.m_getContentValuePrice?this.m_getContentValuePrice:this.m_getBasePrice},m_getTotalAcquired:function(){var e=this;return this.offersList?this.offersList.filter((function(t){return t.state===e.m_OFFER_ACQUIRED})).length:0},m_isDiscount:function(){return this.m_getFinalPrice.value0&&void 0!==arguments[0]?arguments[0]:{steam_redirect:!1};if(this.isUserNotAuthed)this.$authService.showSignup();else if(this.isUserAuthedNotRegistered)this.$authService.showProjectReg();else{var t;this.isSteamUser&&!e.steam_redirect&&(t=window.open("","steam-purchase")),this.$emit("buyOffer",{offer:this.offer,steam_win:t})}},m_getPriceText:function(e){return"".concat(e.value," ").concat(this.currency.symbol)}}}},821:function(e,t,n){"use strict";var r=n(3),o=n(337).values;r({target:"Object",stat:!0},{values:function(e){return o(e)}})},822:function(e,t,n){"use strict";n(8),n(60);var r=n(5),o=n(4),c=n(25),l=n(26),f=n(14);function d(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Object(f.a)(e);if(t){var o=Object(f.a)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Object(l.a)(this,n)}}var h=function(e){Object(c.a)(n,e);var t=d(n);function n(e,r){return Object(o.a)(this,n),t.call(this,e,r,!0)}return Object(r.a)(n)}(n(769).a);t.a=h},844:function(e,t,n){"use strict";n(39),n(94),n(8);var r=n(95),o=n(213),c={name:"CurrencyPicker",components:{DropDownList:r.a,Icon:o.a},props:{currencies:{type:Array,required:!0},label:{type:String,required:!0},isSymbolShown:{type:Boolean,default:!1},selectedCurrency:{type:[Object,null],default:null}},computed:{dropDownOptions:function(){var e=this;return this.currencies.map((function(t){return{label:e.isSymbolShown?t.symbol:t.code,value:t.code}}))},currencySign:function(){var e,t;return this.isSymbolShown?null===(e=this.selectedCurrency)||void 0===e?void 0:e.symbol:null===(t=this.selectedCurrency)||void 0===t?void 0:t.code}},methods:{whenSelected:function(e){var t=this.currencies.find((function(t){return t.code===e.value}));this.$emit("setCurrency",null!=t?t:null)}}},l=(n(1631),n(0)),component=Object(l.a)(c,(function(){var e=this,t=e._self._c;return t("div",{staticClass:"currency-picker"},[t("DropDownList",{attrs:{options:e.dropDownOptions,theme:"orange",position:"right",arrowPosition:"center"},on:{changeSelect:e.whenSelected},scopedSlots:e._u([{key:"dropdown__label",fn:function(){return[t("div",{staticClass:"currency-picker__button"},[t("div",{staticClass:"currency-picker__label"},[e._v(e._s(e.label))]),t("div",{staticClass:"currency-picker__selected-currency-sign"},[e._v(e._s(e.currencySign))]),t("Icon",{staticClass:"currency-picker__icon",attrs:{name:"dropdown"}})],1)]},proxy:!0}])})],1)}),[],!1,null,null,null);t.a=component.exports},845:function(e,t,n){"use strict";n(32),n(8),n(41),n(821),n(36);var r=n(822),o=n(769),c={name:"OffersFrame",props:{invoice:Object,offer:Object,successParam:{type:String,default:"delivered"}},data:function(){return{timers:{check_invoice:null,cancel_check_invoice:null,button_refresh_:null},timeouts:{check_invoice:5e3,cancel_check_invoice:3e5,button_refresh:5e3},refresh_button:{need_show:!1,is_enabled:!0},frame_height:0}},computed:{frameStyle:function(){return{minHeight:this.frame_height+"px"}}},watch:{invoice:{handler:function(){this.clearTimers(),this.setTimers()},deep:!0}},created:function(){window.addEventListener("message",this.updateFrameHeight),this.invoice.newWindow||this.setTimers()},beforeDestroy:function(){window.removeEventListener("message",this.updateFrameHeight),this.invoice.newWindow||this.clearTimers()},methods:{setTimers:function(){var e=this;this.timers.check_invoice=new r.a((function(){e.checkInvoice(e.invoice)}),this.timeouts.check_invoice),this.timers.cancel_check_invoice=new o.a((function(){e.clearTimers(),e.refresh_button.need_show=!0}),this.timeouts.cancel_check_invoice)},clearTimers:function(){this.refresh_button.need_show=!1,Object.values(this.timers).forEach((function(e){e&&e.destroy()}))},checkInvoice:function(){var e=this;this.$api.storeService.checkInvoice(this.invoice.invoiceUuid).run().then((function(t){!t.data.error&&t.data.result[e.successParam]&&(e.clearTimers(),e.$emit("successPurchase",e.offer))}))},refreshInvoiceStatus:function(){this.checkInvoice(),this.disableRefreshButton()},disableRefreshButton:function(){var e=this;this.refresh_button.is_enabled=!1,this.timers.button_refresh_timer=new o.a((function(){e.refresh_button.is_enabled=!0}),this.timeouts.button_refresh)},updateFrameHeight:function(e){if("https://pw.money.mail.ru"!==e.origin&&"https://pay.my.com"!==e.origin)return!1;try{if("string"==typeof e.data){var data=JSON.parse(e.data);"resizeFrame"===data.action&&(this.frame_height=data.action_params.height)}}catch(t){console.info("Can't parse post message",e)}}}},l=n(0),component=Object(l.a)(c,(function(){var e=this,t=e._self._c;return t("div",{staticClass:"offers-frame"},[e.refresh_button.need_show?t("div",{staticClass:"offers-frame__refresh",attrs:{disabled:!e.refresh_button.is_enabled},on:{click:e.refreshInvoiceStatus}},[e._t("refresh_button",(function(){return[t("button",{domProps:{innerHTML:e._s(e.$t("preorder.update_btn"))}})]}))],2):e._e(),e.invoice.newWindow?t("div",{staticClass:"offers-frame__steam"},[t("p",{domProps:{innerHTML:e._s(e.$t("preorder.steam.warning",{link_html:"").concat(e.$t("preorder.steam.link_text"),"")}))}})]):t("div",{ref:"payment_frame",staticClass:"offers-frame__frame",style:e.frameStyle},[t("iframe",{attrs:{src:e.invoice.url,width:"100%",height:"100%"}})])])}),[],!1,null,null,null);t.a=component.exports}}]);