(function(t) { function e(e) { for (var a, n, r = e[0], c = e[1], l = e[2], _ = 0, p = []; _ < r.length; _++) n = r[_], Object.prototype.hasOwnProperty.call(i, n) && i[n] && p.push(i[n][0]), i[n] = 0; for (a in c) Object.prototype.hasOwnProperty.call(c, a) && (t[a] = c[a]); d && d(e); while (p.length) p.shift()(); return o.push.apply(o, l || []), s() } function s() { for (var t, e = 0; e < o.length; e++) { for (var s = o[e], a = !0, r = 1; r < s.length; r++) { var c = s[r]; 0 !== i[c] && (a = !1) } a && (o.splice(e--, 1), t = n(n.s = s[0])) } return t } var a = {}, i = { app: 0 }, o = []; function n(e) { if (a[e]) return a[e].exports; var s = a[e] = { i: e, l: !1, exports: {} }; return t[e].call(s.exports, s, s.exports, n), s.l = !0, s.exports } n.m = t, n.c = a, n.d = function(t, e, s) { n.o(t, e) || Object.defineProperty(t, e, { enumerable: !0, get: s }) }, n.r = function(t) { "undefined" !== typeof Symbol && Symbol.toStringTag && Object.defineProperty(t, Symbol.toStringTag, { value: "Module" }), Object.defineProperty(t, "__esModule", { value: !0 }) }, n.t = function(t, e) { if (1 & e && (t = n(t)), 8 & e) return t; if (4 & e && "object" === typeof t && t && t.__esModule) return t; var s = Object.create(null); if (n.r(s), Object.defineProperty(s, "default", { enumerable: !0, value: t }), 2 & e && "string" != typeof t) for (var a in t) n.d(s, a, function(e) { return t[e] }.bind(null, a)); return s }, n.n = function(t) { var e = t && t.__esModule ? function() { return t["default"] } : function() { return t }; return n.d(e, "a", e), e }, n.o = function(t, e) { return Object.prototype.hasOwnProperty.call(t, e) }, n.p = ""; var r = window["webpackJsonp"] = window["webpackJsonp"] || [], c = r.push.bind(r); r.push = e, r = r.slice(); for (var l = 0; l < r.length; l++) e(r[l]); var d = c; o.push([0, "chunk-vendors"]), s() })({ 0: function(t, e, s) { t.exports = s("56d7") }, "034f": function(t, e, s) { "use strict"; s("85ec") }, "07e9": function(t, e, s) {}, "17d5": function(t, e, s) {}, "1af7": function(t, e, s) {}, "56d7": function(t, e, s) { "use strict"; s.r(e); s("e260"), s("e6cf"), s("cca6"), s("a79d"); var a = s("2b0e"), i = function() { var t = this, e = t.$createElement, s = t._self._c || e; return t.openned ? s("div", { attrs: { id: "App" } }, ["Store" === t.page ? s("Store", { attrs: { store_title: t.store_title, items: t.items, payment_methods: t.payment_methods, StyleHeader: t.StyleHeader, StyleBody: t.StyleBody, translate: t.translate, weightSystem: t.weightSystem, NameResource: t.NameResource, close: t.close, OpenScreen: t.OpenScreen, closed: t.closed } }) : "Dashboard" === t.page ? s("Dashboard", { attrs: { store_title: t.store_title, items: t.items, payment_methods: t.payment_methods, StyleHeader: t.StyleHeader, StyleBody: t.StyleBody, translate: t.translate, weightSystem: t.weightSystem, NameResource: t.NameResource, close: t.close, OpenScreen: t.OpenScreen, closed: t.closed } }) : "Stock" === t.page ? s("Stock", { attrs: { store_title: t.store_title, items: t.items, payment_methods: t.payment_methods, StyleHeader: t.StyleHeader, StyleBody: t.StyleBody, translate: t.translate, weightSystem: t.weightSystem, NameResource: t.NameResource, close: t.close, OpenScreen: t.OpenScreen, closed: t.closed } }) : "Balance" === t.page ? s("Balance", { attrs: { store_title: t.store_title, items: t.items, payment_methods: t.payment_methods, StyleHeader: t.StyleHeader, StyleBody: t.StyleBody, translate: t.translate, weightSystem: t.weightSystem, NameResource: t.NameResource, close: t.close, OpenScreen: t.OpenScreen, closed: t.closed } }) : "Sell" === t.page ? s("Sell", { attrs: { price_store: t.price_store, percentage_sell: t.percentage_sell, store_title: t.store_title, StyleHeader: t.StyleHeader, StyleBody: t.StyleBody, translate: t.translate, NameResource: t.NameResource, close: t.close, OpenScreen: t.OpenScreen, closed: t.closed } }) : "Buy" === t.page ? s("Buy", { attrs: { price_store: t.price_store, store_title: t.store_title, StyleHeader: t.StyleHeader, StyleBody: t.StyleBody, translate: t.translate, NameResource: t.NameResource, close: t.close, OpenScreen: t.OpenScreen, closed: t.closed } }) : "Missions" === t.page ? s("Missions", { attrs: { store_title: t.store_title, items: t.items, payment_methods: t.payment_methods, StyleHeader: t.StyleHeader, StyleBody: t.StyleBody, translate: t.translate, weightSystem: t.weightSystem, NameResource: t.NameResource, close: t.close, OpenScreen: t.OpenScreen, closed: t.closed } }) : t._e()], 1) : t._e() }, o = [], n = (s("b0c0"), s("bc3a")), r = s.n(n), c = function() { var t = this, e = this, s = e.$createElement, a = e._self._c || s; return a("div", [e.popUp ? a("div", { attrs: { id: "PopUpBox" } }, [a("div", { attrs: { id: "PopUp" } }, ["confirm" == e.step ? a("div", { attrs: { id: "PopAlert" } }, [a("i", { staticClass: "fas fa-shopping-cart" }), a("p", { staticClass: "PopUpTitle" }, [e._v(e._s(e.translate.TR_CONFIRM_TITLE))]), a("p", { staticClass: "PopUpMessage" }, [e._v(e._s(e.translate.TR_CONFIR_MESSAGE) + " "), a("b", [e._v(e._s(e.translate.TR_MONEY_SIMBOL) + " " + e._s(e.TotalPrice()))]), e._v(" " + e._s(e.translate.TR_CONFIR_MESSAGE2) + " "), a("b", [e._v(e._s(e.buy_method))]), e._v(". " + e._s(e.translate.TR_CONFIR_MESSAGE3))]), a("div", { attrs: { id: "PopUpButtons" } }, [a("p", { style: e.StyleBody, attrs: { id: "PopUpButtonGreen" }, on: { click: e.BuyItens } }, [e._v(e._s(e.translate.TR_YES))]), a("p", { attrs: { id: "PopUpButtonRed" }, on: { click: function(t) { return e.enablePopUp(!1) } } }, [e._v(e._s(e.translate.TR_NO))])])]) : "waiting" == e.step ? a("div", { attrs: { id: "PopLoading" } }, [a("div", { staticClass: "loader" })]) : "success" == e.step ? a("div", { attrs: { id: "PopSucessfull" } }, [a("p", { staticClass: "close", on: { click: function(t) { return e.enablePopUp(!1) } } }, [e._v("X")]), a("svg", { staticClass: "checkmark", attrs: { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 52 52" } }, [a("circle", { staticClass: "checkmark__circle", attrs: { cx: "26", cy: "26", r: "25", fill: "none" } }), a("path", { staticClass: "checkmark__check", attrs: { fill: "none", d: "M14.1 27.2l7.1 7.2 16.7-16.8" } })]), a("p", { staticClass: "PaymentCompletText" }, [e._v(e._s(e.translate.TR_PAYMENT_COMPLETE))])]) : "error" == e.step ? a("div", { attrs: { id: "PopNegade" } }, [a("p", { staticClass: "close", on: { click: function(t) { return e.enablePopUp(!1) } } }, [e._v("X")]), a("i", { staticClass: "fas fa-times" }), a("p", { staticClass: "PaymentNegadeText" }, [e._v(e._s(e.translate.TR_PAYMENT_NEGADE))]), a("p", { staticClass: "PaymentNegadeReason" }, [e._v(e._s(e.translate.TR_REASON) + " " + e._s(e.pop_up_error))])]) : e._e()])]) : e._e(), a("div", { class: { blur: e.popUp }, style: e.StyleHeader, attrs: { id: "StoreBodyBox" } }, [a("p", { staticClass: "close", on: { click: e.close } }, [e._v("X")]), a("div", { attrs: { id: "StoreTitleBox" } }, [a("p", { attrs: { id: "StoreTitle" } }, [e._v(e._s(e.store_title))])]), a("div", { attrs: { id: "StoreBox" } }, [a("div", { attrs: { id: "StoreWindowBox" } }, [e._v(" " + e._s(e.inCart ? e.translate.TR_TITLEWINDOW2 : e.translate.TR_TITLEWINDOW) + " ")]), a("div", { attrs: { id: "StoreContentBox" } }, [e.inCart ? a("div", [a("div", { attrs: { id: "CartTitleBox" } }, [a("p", { attrs: { id: "CartTitle" } }, [e._v(e._s(e.translate.TR_PAYMENT))])]), a("div", { attrs: { id: "CartBodyBox" } }, [a("div", { staticClass: "CartItensBox" }, [a("p", { staticClass: "CartItensTitle" }, [e._v(e._s(e.store_title) + " " + e._s(e.translate.TR_STORE_CART))]), a("ul", { attrs: { id: "CartItensList" } }, e._l(e.cart, (function(t, s) { return a("li", { key: t.name, staticClass: "CartItem" }, [a("div", { staticClass: "CartItemNameBox" }, [a("div", { staticClass: "CartItemImageBox" }, [a("img", { staticClass: "CartItemImage", attrs: { src: "img/" + t.name + ".png", alt: "" } })]), a("p", { staticClass: "CartItemName" }, [e._v(e._s(t.label))])]), e.weightSystem ? a("p", { staticClass: "CartItemWeight" }, [e._v(e._s(Number(t.weight).toFixed(1)) + "kg")]) : e._e(), a("div", { staticClass: "CartItemAmountBox" }, [a("label", { attrs: { for: "" } }, [e._v("x")]), a("input", { directives: [{ name: "model", rawName: "v-model", value: t.amount_selected, expression: "item.amount_selected" }], staticClass: "CartItemAmount", attrs: { type: "number", min: "1" }, domProps: { value: t.amount_selected }, on: { input: [function(s) { s.target.composing || e.$set(t, "amount_selected", s.target.value) }, function(t) { return e.checkValidValue(s) }] } }), a("label", { attrs: { for: "" } }, [e._v("/ " + e._s(t.amount))])]), a("p", { staticClass: "CartItemPrice" }, [e._v(e._s(e.translate.TR_MONEY_SIMBOL) + e._s(Number(t.amount_selected * t.price).toFixed(2)))]), a("p", { staticClass: "CartItemRemove", on: { click: function(s) { return e.RemoveCart(t) } } }, [e._v(e._s(e.translate.TR_REMOVE))])]) })), 0), a("div", { attrs: { id: "CartBodyFooterBox" } }, [a("div", { attrs: { id: "CartBodyFooterButton" } }, [a("div", { staticClass: "ClickBox", on: { click: function(t) { return e.GoToCart(!1) } } }), a("i", { staticClass: "fas fa-arrow-left" }), a("p", [e._v(e._s(e.translate.TR_CONTINUE_SHOPPING))])]), a("p", { attrs: { id: "CartBodyFooterTotal" } }, [e._v(e._s(e.translate.TR_TOTAL) + " " + e._s(e.translate.TR_MONEY_SIMBOL) + e._s(e.TotalPrice()))])])]), a("div", { attrs: { id: "CartPaymentBox" } }, [a("p", { staticClass: "CartPaymentTitle" }, [e._v(e._s(e.translate.TR_PAYMENT_OPTIONS))]), a("ul", { attrs: { id: "CartPaymentList" } }, e._l(e.payment_methods, (function(t) { return a("li", { key: t.name, staticClass: "CartPaymentItem", class: { CartPaymentItemChecked: t.name == e.buy_method } }, [a("div", { staticClass: "ClickBox", on: { click: function(s) { return e.SelectMethod(t.name) } } }), a("div", { staticClass: "CartPaymentNameBox" }, [a("img", { staticClass: "CartPaymentImage", attrs: { src: t.img, alt: "" } }), a("p", { staticClass: "CartPaymentName" }, [e._v(e._s(t.name))])]), a("div", { staticClass: "CheckedPayment" })]) })), 0), a("div", { class: { disabledButton: e.cart.length <= 0 }, style: e.StyleBody, attrs: { id: "CartPaymentButtonBuy" }, on: { click: e.ConfirmBuyItens } }, [e._v(e._s(e.translate.TR_BUY_NOW))])])])]) : a("div", [a("div", { attrs: { id: "StoreContentTopBox" } }, [a("div", { attrs: { id: "StoreSearchBox" } }, [a("i", { staticClass: "fas fa-search" }), a("input", { directives: [{ name: "model", rawName: "v-model", value: e.search, expression: "search" }], attrs: { type: "text", id: "StoreInputSearch", placeholder: e.translate.TR_SEARCH }, domProps: { value: e.search }, on: { input: function(t) { t.target.composing || (e.search = t.target.value) } } })]), a("div", { style: e.StyleBody, attrs: { id: "StoreCartButton" } }, [a("div", { staticClass: "ClickBox", on: { click: function(t) { return e.GoToCart(!0) } } }), a("i", { staticClass: "fas fa-shopping-cart" }), a("p", [e._v(e._s(e.translate.TR_MY_CART))]), a("i", { staticClass: "fas fa-arrow-right" })])]), a("div", { attrs: { id: "StoreListItensBox" } }, [a("ul", { attrs: { id: "StoreListItens" } }, [e._l(e.items.filter((function(s) { for (var a = 0; a < e.cart.length; a++) if (e.cart[a].name == s.name) return !1; return !!s.label.includes(t.search) && !(s.amount <= 0) })), (function(t) { return a("li", { key: t.name, staticClass: "StoreItem" }, [e.weightSystem ? a("p", { staticClass: "StoreItemWeight" }, [e._v(e._s(Number(t.weight).toFixed(1)) + e._s(e.translate.TR_WEIGHT_SYMBOL))]) : e._e(), a("div", { staticClass: "StoreItemImageBox" }, [a("img", { staticClass: "StoreItemImage", attrs: { src: "img/" + t.name + ".png", alt: "" } })]), a("p", { staticClass: "StoreItemName" }, [e._v(e._s(t.label))]), a("p", { staticClass: "StoreItemPrice" }, [e._v(e._s(e.translate.TR_MONEY_SIMBOL) + " " + e._s(Number(t.price).toFixed(2)))]), a("div", { staticClass: "StoreItemCartButton", style: e.StyleBody }, [a("div", { staticClass: "ClickBox", on: { click: function(s) { return e.AddCart(t) } } }), a("i", { staticClass: "fas fa-shopping-cart" }), a("p", [e._v(e._s(e.translate.TR_ADD_TO_CART))])])]) })), e._l(e.items.filter((function(s) { for (var a = 0; a < e.cart.length; a++) if (e.cart[a].name == s.name) return !1; return !!s.label.includes(t.search) && !(s.amount > 0) })), (function(t) { return a("li", { key: t.name, staticClass: "StoreItem grayScale" }, [e.weightSystem ? a("p", { staticClass: "StoreItemWeight" }, [e._v(e._s(Number(t.weight).toFixed(1)) + e._s(e.translate.TR_WEIGHT_SYMBOL))]) : e._e(), a("div", { staticClass: "StoreItemImageBox" }, [a("img", { staticClass: "StoreItemImage", attrs: { src: "img/" + t.name + ".png", alt: "" } })]), a("p", { staticClass: "StoreItemName" }, [e._v(e._s(t.label))]), a("p", { staticClass: "StoreItemPrice" }, [e._v(e._s(e.translate.TR_MONEY_SIMBOL) + " " + e._s(Number(t.price).toFixed(2)))]), a("div", { staticClass: "StoreItemCartButton", style: e.StyleBody }, [a("i", { staticClass: "fas fa-shopping-cart" }), a("p", [e._v(e._s(e.translate.TR_SOLD_OUT))])])]) }))], 2)]), a("div", { style: e.StyleBody, attrs: { id: "MissionsButton" }, on: { click: function(t) { return e.OpenScreen("Missions") } } }, [e._v(e._s(e.translate.TR_MISSIONS2))])])])])])]) }, l = [], d = s("5530"), _ = (s("159b"), s("a434"), s("b680"), { props: { store_title: {}, items: {}, payment_methods: {}, StyleHeader: {}, StyleBody: {}, translate: {}, weightSystem: {}, NameResource: {}, closed: {}, close: {}, OpenScreen: {} }, data: function() { return { cart: [], search: "", inCart: !1, popUp: !1, buy_method: "Bank Account", step: "confirm", pop_up_error: "" } }, methods: { AddCart: function(t) { this.cart.push(Object(d["a"])(Object(d["a"])({}, t), {}, { amount_selected: 1 })) }, RemoveCart: function(t) { var e = this; this.cart.forEach((function(s, a) { s.name == t.name && e.cart.splice(a, 1) })) }, GoToCart: function(t) { this.inCart = t }, checkValidValue: function(t) { this.cart[t].amount_selected < 1 && (this.cart[t].amount_selected = 1), this.cart[t].amount_selected > this.cart[t].amount && (this.cart[t].amount_selected = this.cart[t].amount) }, TotalPrice: function() { var t = 0; return this.cart.forEach((function(e) { t += e.price * e.amount_selected })), t.toFixed(2) }, SelectMethod: function(t) { this.buy_method = t }, enablePopUp: function(t) { this.popUp = t }, ConfirmBuyItens: function() { this.cart.length <= 0 || (this.step = "confirm", this.enablePopUp(!0)) }, BuyItens: function() { if (!this.closed) { this.step = "waiting"; var t = this.NameResource[0]; r.a.post("https://".concat(t, "/buyItens"), { cart: this.cart, buy_method: this.buy_method }).then((function() {})).catch((function(t) { return console.log(t) })) } }, receiveLua: function(t) { var e = this; if (t && t.data) { var s = t.data; s.pop_up && (this.closed || (this.step = s.type, s.message && (this.pop_up_error = s.message), "success" == this.step && (this.items.forEach((function(t) { e.cart.forEach((function(e) { t.name == e.name && (t.amount = t.amount - e.amount_selected) })) })), this.cart = []))) } }, keyPress: function(t) { var e = t.key; "Escape" == e && this.close() } }, created: function() { window.addEventListener("message", this.receiveLua), window.addEventListener("keydown", this.keyPress), this.buy_method = this.translate.TR_BANK_ACCOUNT }, destroyed: function() { window.removeEventListener("message", this.receiveLua), window.removeEventListener("keydown", this.keyPress) } }), p = _, u = (s("6407"), s("2877")), m = Object(u["a"])(p, c, l, !1, null, null, null), h = m.exports, v = function() { var t = this, e = t.$createElement, s = t._self._c || e; return s("div", [s("div", { style: t.StyleHeader, attrs: { id: "StoreBodyBox" } }, [s("p", { staticClass: "close", on: { click: t.close } }, [t._v("X")]), s("div", { attrs: { id: "StoreTitleBox" } }, [s("p", { attrs: { id: "StoreTitle" } }, [t._v(t._s(t.store_title))])]), s("div", { attrs: { id: "StoreBox" } }, [s("div", { attrs: { id: "StoreWindowBox" } }, [t._v(" " + t._s(t.translate.TR_STORE) + " ")]), s("div", { attrs: { id: "StoreContentBox" } }, [s("div", [s("div", { attrs: { id: "CartTitleBox" } }, [s("p", { attrs: { id: "CartTitle" } }, [t._v(t._s(t.translate.TR_MANAGE_STORE))])]), s("div", { attrs: { id: "DashboardListItensBox" } }, [s("ul", { attrs: { id: "DashboardListItens" } }, [s("li", { staticClass: "DashboardItem" }, [s("div", { staticClass: "DashboardItemImageBox" }, [s("img", { staticClass: "DashboardItemImage", attrs: { src: "img/packages.png", alt: "" } })]), s("p", { staticClass: "DashboardItemPrice" }, [t._v(t._s(t.translate.TR_STOCK))]), s("div", { staticClass: "ClickBox", on: { click: function(e) { return t.OpenScreen("Stock") } } })]), s("li", { staticClass: "DashboardItem" }, [s("div", { staticClass: "DashboardItemImageBox" }, [s("img", { staticClass: "DashboardItemImage", attrs: { src: "img/salary.png", alt: "" } })]), s("p", { staticClass: "DashboardItemPrice" }, [t._v(t._s(t.translate.TR_BALANCE))]), s("div", { staticClass: "ClickBox", on: { click: function(e) { return t.OpenScreen("Balance") } } })]), s("li", { staticClass: "DashboardItem" }, [s("div", { staticClass: "DashboardItemImageBox" }, [s("img", { staticClass: "DashboardItemImage", attrs: { src: "img/banner.png", alt: "" } })]), s("p", { staticClass: "DashboardItemPrice" }, [t._v(t._s(t.translate.TR_SELL_STORE))]), s("div", { staticClass: "ClickBox", on: { click: function(e) { return t.OpenScreen("Sell") } } })])])])])])])])]) }, S = [], T = { props: { store_title: {}, StyleHeader: {}, StyleBody: {}, translate: {}, NameResource: {}, closed: {}, close: {}, OpenScreen: {} }, data: function() { return {} }, methods: { keyPress: function(t) { var e = t.key; "Escape" == e && this.close() } }, created: function() { window.addEventListener("keydown", this.keyPress) }, destroyed: function() { window.removeEventListener("keydown", this.keyPress) } }, y = T, C = (s("a5a5"), Object(u["a"])(y, v, S, !1, null, null, null)), R = C.exports, f = function() { var t = this, e = t.$createElement, s = t._self._c || e; return s("div", [t.popUp ? s("div", { attrs: { id: "PopUpBox" } }, [s("div", { attrs: { id: "PopUp" } }, ["putSale" == t.step ? s("div", { attrs: { id: "PopAlert" } }, [s("p", { staticClass: "PopUpTitle PopUpTitleStock" }, [t._v(t._s(t.translate.TR_PUT_FOT_SALE) + ":")]), s("div", { staticClass: "StockItemPopImageBox" }, [s("img", { staticClass: "StockItemImage", attrs: { src: "img/" + t.itemForSale.name + ".png", alt: "" } })]), s("p", { staticClass: "PopUpTitle" }, [t._v(t._s(t.itemForSale.label))]), s("p", { staticClass: "PopUpMessage" }, [t._v(t._s(t.translate.TR_TEXT_FOR_SALE))]), s("input", { directives: [{ name: "model", rawName: "v-model", value: t.itemForSale_selected, expression: "itemForSale_selected" }], staticClass: "StockItemPopAmount", attrs: { type: "number", name: "", min: "0", placeholder: t.translate.TR_MAX + ": " + t.itemForSale.amount }, domProps: { value: t.itemForSale_selected }, on: { input: [function(e) { e.target.composing || (t.itemForSale_selected = e.target.value) }, function(e) { return t.checkValidValue(1) }] } }), s("div", { attrs: { id: "PopUpButtons" } }, [s("p", { style: t.StyleBody, attrs: { id: "PopUpButtonGreen" }, on: { click: t.SendPutForSale } }, [t._v(t._s(t.translate.TR_PUT_FOT_SALE))]), s("p", { attrs: { id: "PopUpButtonRed" }, on: { click: function(e) { return t.enablePopUp(!1) } } }, [t._v(t._s(t.translate.TR_CANCEL))])])]) : t._e(), "requestItem" == t.step ? s("div", { attrs: { id: "PopAlert" } }, [s("p", { staticClass: "PopUpTitle PopUpTitleStock" }, [t._v(t._s(t.translate.TR_REQUEST_ITEM) + ":")]), s("div", { staticClass: "StockItemPopImageBox" }, [s("img", { staticClass: "StockItemImage", attrs: { src: "img/" + t.itemRequest.name + ".png", alt: "" } })]), s("p", { staticClass: "PopUpTitle" }, [t._v(t._s(t.itemRequest.label))]), s("p", { staticClass: "PopUpTitle" }, [t._v(t._s(t.translate.TR_PRICE_REQUEST) + " " + t._s(t.translate.TR_MONEY_SIMBOL) + " " + t._s(t.itemRequest_selected * t.itemRequest.request_price))]), s("p", { staticClass: "PopUpMessage" }, [t._v(t._s(t.translate.TR_TEXT_REQUEST_ITEM))]), s("input", { directives: [{ name: "model", rawName: "v-model", value: t.itemRequest_selected, expression: "itemRequest_selected" }], staticClass: "StockItemPopAmount", attrs: { type: "number", name: "", min: "0", placeholder: t.translate.TR_CURRENT + ": " + t.itemRequest.amount }, domProps: { value: t.itemRequest_selected }, on: { input: [function(e) { e.target.composing || (t.itemRequest_selected = e.target.value) }, function(e) { return t.checkValidValue(2) }] } }), s("div", { attrs: { id: "PopUpButtons" } }, [s("p", { style: t.StyleBody, attrs: { id: "PopUpButtonGreen" }, on: { click: t.SendRequestItem } }, [t._v(t._s(t.translate.TR_REQUEST_ITEM))]), s("p", { attrs: { id: "PopUpButtonRed" }, on: { click: function(e) { return t.enablePopUp(!1) } } }, [t._v(t._s(t.translate.TR_CANCEL))])])]) : t._e(), "removeItem" == t.step ? s("div", { attrs: { id: "PopAlert" } }, [s("p", { staticClass: "PopUpTitle PopUpTitleStock" }, [t._v(t._s(t.translate.TR_REMOVE_ITEM) + ":")]), s("div", { staticClass: "StockItemPopImageBox" }, [s("img", { staticClass: "StockItemImage", attrs: { src: "img/" + t.itemRemove.name + ".png", alt: "" } })]), s("p", { staticClass: "PopUpTitle" }, [t._v(t._s(t.itemRemove.label))]), s("p", { staticClass: "PopUpMessage" }, [t._v(t._s(t.translate.TR_TEXT_REMOVE_ITEM))]), s("input", { directives: [{ name: "model", rawName: "v-model", value: t.itemRemove_selected, expression: "itemRemove_selected" }], staticClass: "StockItemPopAmount", attrs: { type: "number", name: "", min: "0", placeholder: t.translate.TR_CURRENT + ": " + t.itemRemove.amount }, domProps: { value: t.itemRemove_selected }, on: { input: [function(e) { e.target.composing || (t.itemRemove_selected = e.target.value) }, function(e) { return t.checkValidValue(3) }] } }), s("div", { attrs: { id: "PopUpButtons" } }, [s("p", { style: t.StyleBody, attrs: { id: "PopUpButtonGreen" }, on: { click: t.SendRemoveItem } }, [t._v(t._s(t.translate.TR_REMOVE_ITEM))]), s("p", { attrs: { id: "PopUpButtonRed" }, on: { click: function(e) { return t.enablePopUp(!1) } } }, [t._v(t._s(t.translate.TR_CANCEL))])])]) : t._e(), "changePrice" == t.step ? s("div", { attrs: { id: "PopAlert" } }, [s("p", { staticClass: "PopUpTitle PopUpTitleStock" }, [t._v(t._s(t.translate.TR_CHANGE_PRICE) + ":")]), s("div", { staticClass: "StockItemPopImageBox" }, [s("img", { staticClass: "StockItemImage", attrs: { src: "img/" + t.changePrice.name + ".png", alt: "" } })]), s("p", { staticClass: "PopUpTitle" }, [t._v(t._s(t.changePrice.label))]), s("p", { staticClass: "PopUpMessage" }, [t._v(t._s(t.translate.TR_TEXT_CHANGE_PRICE))]), s("input", { directives: [{ name: "model", rawName: "v-model", value: t.changePrice_selected, expression: "changePrice_selected" }], staticClass: "StockItemPopAmount", attrs: { type: "number", name: "", min: "0", placeholder: t.translate.TR_MAX + ": " + t.changePrice.recommended_price }, domProps: { value: t.changePrice_selected }, on: { input: [function(e) { e.target.composing || (t.changePrice_selected = e.target.value) }, function(e) { return t.checkValidValue(4) }] } }), s("div", { attrs: { id: "PopUpButtons" } }, [s("p", { style: t.StyleBody, attrs: { id: "PopUpButtonGreen" }, on: { click: t.SendChangePrice } }, [t._v(t._s(t.translate.TR_CHANGE_PRICE))]), s("p", { attrs: { id: "PopUpButtonRed" }, on: { click: function(e) { return t.enablePopUp(!1) } } }, [t._v(t._s(t.translate.TR_CANCEL))])])]) : "waiting" == t.step ? s("div", { attrs: { id: "PopLoading" } }, [s("div", { staticClass: "loader" })]) : "success" == t.step ? s("div", { attrs: { id: "PopSucessfull" } }, [s("p", { staticClass: "close", on: { click: function(e) { return t.enablePopUp(!1) } } }, [t._v("X")]), s("svg", { staticClass: "checkmark", attrs: { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 52 52" } }, [s("circle", { staticClass: "checkmark__circle", attrs: { cx: "26", cy: "26", r: "25", fill: "none" } }), s("path", { staticClass: "checkmark__check", attrs: { fill: "none", d: "M14.1 27.2l7.1 7.2 16.7-16.8" } })]), s("p", { staticClass: "PaymentCompletText" }, [t._v(t._s(t.translate.TR_OPERATION_SUCCESFUL))])]) : "error" == t.step ? s("div", { attrs: { id: "PopNegade" } }, [s("p", { staticClass: "close", on: { click: function(e) { return t.enablePopUp(!1) } } }, [t._v("X")]), s("i", { staticClass: "fas fa-times" }), s("p", { staticClass: "PaymentNegadeText" }, [t._v(t._s(t.translate.TR_OPERATION_NEGADE))]), s("p", { staticClass: "PaymentNegadeReason" }, [t._v(t._s(t.translate.TR_REASON) + " " + t._s(t.pop_up_error))])]) : t._e()])]) : t._e(), s("div", { class: { blur: t.popUp }, style: t.StyleHeader, attrs: { id: "StoreBodyBox" } }, [s("p", { staticClass: "close", on: { click: t.close } }, [t._v("X")]), s("i", { staticClass: "fas fa-arrow-left preview", on: { click: function(e) { return t.OpenScreen("Dashboard") } } }), s("div", { attrs: { id: "StoreTitleBox" } }, [s("p", { attrs: { id: "StoreTitle" } }, [t._v(t._s(t.store_title))])]), s("div", { attrs: { id: "StoreBox" } }, [s("div", { attrs: { id: "StoreWindowBox" } }, [t._v(" " + t._s(t.translate.TR_STOCK) + " ")]), s("div", { attrs: { id: "StoreContentBox" } }, [s("div", [s("div", { attrs: { id: "CartTitleBox" } }, [s("p", { attrs: { id: "CartTitle" } }, [t._v(t._s(t.translate.TR_STORE_STOCK))])]), s("div", { attrs: { id: "CartBodyBox" } }, [s("div", { staticClass: "StockItensBox" }, [s("p", { staticClass: "StockItensTitle" }, [t._v(t._s(t.translate.TR_STORE_PRODUCTS))]), t.loading ? s("div", { staticClass: "Loading" }, [s("div", { staticClass: "loader" })]) : s("ul", { staticClass: "StockItensList" }, [t._l(t.stock.filter((function(t) { return t.amount > 0 })), (function(e) { return s("li", { key: e.name, staticClass: "StockItem" }, [s("div", { staticClass: "StockItemNameBox" }, [s("div", { staticClass: "StockItemImageBox" }, [s("img", { staticClass: "StockItemImage", attrs: { src: "img/" + e.name + ".png", alt: "" } })]), s("p", { staticClass: "StockItemName" }, [t._v(t._s(e.label))])]), t.weightSystem ? s("p", { staticClass: "StockItemWeight" }, [t._v(t._s(Number(e.weight).toFixed(1)) + "kg")]) : t._e(), s("div", { staticClass: "StockItemAmountBox" }, [s("label", { attrs: { for: "" } }, [t._v("x")]), s("label", { staticClass: "StockItemAmount", attrs: { for: "" } }, [t._v(t._s(e.amount))])]), s("p", { staticClass: "StockItemButton", style: t.StyleBody, on: { click: function(s) { return t.PutForSale(e) } } }, [t._v(t._s(t.translate.TR_PUT_FOT_SALE))]), s("p", { staticClass: "StockItemButton", style: t.StyleBody, on: { click: function(s) { return t.RequestMission(e) } } }, [t._v(t._s(t.translate.TR_REQUEST))])]) })), t._l(t.stock.filter((function(t) { return t.amount <= 0 })), (function(e) { return s("li", { key: e.name, staticClass: "StockItem grayScale" }, [s("div", { staticClass: "StockItemNameBox" }, [s("div", { staticClass: "StockItemImageBox" }, [s("img", { staticClass: "StockItemImage", attrs: { src: "img/" + e.name + ".png", alt: "" } })]), s("p", { staticClass: "StockItemName" }, [t._v(t._s(e.label))])]), t.weightSystem ? s("p", { staticClass: "StockItemWeight" }, [t._v(t._s(Number(e.weight).toFixed(1)) + "kg")]) : t._e(), s("div", { staticClass: "StockItemAmountBox" }, [s("label", { attrs: { for: "" } }, [t._v("x")]), s("label", { staticClass: "StockItemAmount", attrs: { for: "" } }, [t._v(t._s(e.amount))])]), s("p", { staticClass: "StockItemButton", style: t.StyleBody }, [t._v(t._s(t.translate.TR_PUT_FOT_SALE))]), s("p", { staticClass: "StockItemButton", style: t.StyleBody, on: { click: function(s) { return t.RequestMission(e) } } }, [t._v(t._s(t.translate.TR_REQUEST))])]) }))], 2)]), s("div", { staticClass: "StockItensBox" }, [s("p", { staticClass: "StockItensTitle" }, [t._v(t._s(t.translate.TR_STORE_PRODUCTS2))]), t.loading ? s("div", { staticClass: "Loading" }, [s("div", { staticClass: "loader" })]) : s("ul", { staticClass: "StockItensList" }, [t._l(t.products.filter((function(t) { return t.amount > 0 })), (function(e) { return s("li", { key: e.name, staticClass: "StockItem" }, [s("div", { staticClass: "StockItemNameBox" }, [s("div", { staticClass: "StockItemImageBox" }, [s("img", { staticClass: "StockItemImage", attrs: { src: "img/" + e.name + ".png", alt: "" } })]), s("p", { staticClass: "StockItemName" }, [t._v(t._s(e.label))])]), t.weightSystem ? s("p", { staticClass: "StockItemWeight" }, [t._v(t._s(Number(e.weight).toFixed(1)) + "kg")]) : t._e(), s("div", { staticClass: "StockItemAmountBox" }, [s("label", { attrs: { for: "" } }, [t._v("x")]), s("label", { staticClass: "StockItemAmount", attrs: { for: "" } }, [t._v(t._s(e.amount))])]), s("p", { staticClass: "StockItemPrice" }, [t._v(t._s(t.translate.TR_MONEY_SIMBOL) + t._s(Number(e.price).toFixed(2)))]), s("p", { staticClass: "StockItemButton", style: t.StyleBody, on: { click: function(s) { return t.RemoveItem(e) } } }, [t._v(t._s(t.translate.TR_REMOVE))]), s("p", { staticClass: "StockItemButton", style: t.StyleBody, on: { click: function(s) { return t.ChangePrice(e) } } }, [t._v(t._s(t.translate.TR_CHANGE_PRICE))])]) })), t._l(t.products.filter((function(t) { return t.amount <= 0 })), (function(e) { return s("li", { key: e.name, staticClass: "StockItem grayScale" }, [s("div", { staticClass: "StockItemNameBox" }, [s("div", { staticClass: "StockItemImageBox" }, [s("img", { staticClass: "StockItemImage", attrs: { src: "img/" + e.name + ".png", alt: "" } })]), s("p", { staticClass: "StockItemName" }, [t._v(t._s(e.label))])]), t.weightSystem ? s("p", { staticClass: "StockItemWeight" }, [t._v(t._s(Number(e.weight).toFixed(1)) + "kg")]) : t._e(), s("div", { staticClass: "StockItemAmountBox" }, [s("label", { attrs: { for: "" } }, [t._v("x")]), s("label", { staticClass: "StockItemAmount", attrs: { for: "" } }, [t._v(t._s(e.amount))])]), s("p", { staticClass: "StockItemPrice" }, [t._v(t._s(t.translate.TR_MONEY_SIMBOL) + t._s(Number(e.price).toFixed(2)))]), s("p", { staticClass: "StockItemButton", style: t.StyleBody }, [t._v(t._s(t.translate.TR_REMOVE))]), s("p", { staticClass: "StockItemButton", style: t.StyleBody, on: { click: function(s) { return t.ChangePrice(e) } } }, [t._v(t._s(t.translate.TR_CHANGE_PRICE))])]) }))], 2)])])])])])])]) }, g = [], E = (s("a9e3"), { props: { store_title: {}, StyleHeader: {}, StyleBody: {}, translate: {}, weightSystem: {}, NameResource: {}, closed: {}, close: {}, OpenScreen: {} }, data: function() { return { stock: [{ name: "bread", label: "Bread", amount: 51e6, weight: 1, price: 152, recommended_price: 100, max_price: 1e3, request_price: 50, mission_money: 25, max_request: 500 }, { name: "drink", label: "Drink", amount: 0, weight: 10, price: 100, recommended_price: 100, max_price: 1e3, request_price: 50, mission_money: 25, max_request: 500 }], products: [{ name: "bread", label: "Bread", weight: 1, price: 500, amount: 1 }, { name: "drink", label: "Drink", weight: 1, price: 452.52, amount: 1 }], itemForSale: {}, itemRequest: {}, itemRemove: {}, changePrice: {}, itemForSale_selected: "", itemRequest_selected: "", itemRemove_selected: "", changePrice_selected: "", popUp: !1, step: "putSale", pop_up_error: "", loading: !1 } }, methods: { PutForSale: function(t) { this.itemForSale = t, this.itemForSale_selected = "", this.step = "putSale", this.enablePopUp(!0) }, RequestMission: function(t) { this.itemRequest = t, this.itemRequest_selected = "", this.step = "requestItem", this.enablePopUp(!0) }, RemoveItem: function(t) { this.itemRemove = t, this.itemRemove_selected = "", this.step = "removeItem", this.enablePopUp(!0) }, ChangePrice: function(t) { this.changePrice = t, this.changePrice_selected = "", this.step = "changePrice", this.enablePopUp(!0) }, SendPutForSale: function() { var t = this; if (!this.closed && "" != this.itemForSale_selected) { this.step = "waiting"; var e = this.NameResource[0]; r.a.post("https://".concat(e, "/sendPutForSale"), { item: Object(d["a"])(Object(d["a"])({}, this.itemForSale), {}, { amount_selected: this.itemForSale_selected }) }).then((function() { t.loading = !0 })).catch((function(t) { return console.log(t) })) } }, SendRequestItem: function() { var t = this; if (!this.closed && "" != this.itemRequest_selected) { this.step = "waiting"; var e = this.NameResource[0]; r.a.post("https://".concat(e, "/sendRequestItem"), { item: Object(d["a"])(Object(d["a"])({}, this.itemRequest), {}, { amount_selected: this.itemRequest_selected }) }).then((function() { t.loading = !0 })).catch((function(t) { return console.log(t) })) } }, SendRemoveItem: function() { var t = this; if (!this.closed && "" != this.itemRemove_selected) { this.step = "waiting"; var e = this.NameResource[0]; r.a.post("https://".concat(e, "/sendRemoveItem"), { item: Object(d["a"])(Object(d["a"])({}, this.itemRemove), {}, { amount_selected: this.itemRemove_selected }) }).then((function() { t.loading = !0 })).catch((function(t) { return console.log(t) })) } }, SendChangePrice: function() { var t = this; if (!this.closed && "" != this.changePrice_selected) { this.step = "waiting"; var e = this.NameResource[0]; r.a.post("https://".concat(e, "/sendChangePrice"), { item: Object(d["a"])(Object(d["a"])({}, this.changePrice), {}, { price_selected: this.changePrice_selected }) }).then((function() { t.loading = !0 })).catch((function(t) { return console.log(t) })) } }, checkValidValue: function(t) { 1 == t ? (Number(this.itemForSale_selected) > Number(this.itemForSale.amount) && (this.itemForSale_selected = this.itemForSale.amount), this.itemForSale_selected < 1 && (this.itemForSale_selected = 1)) : 2 == t ? (this.itemRequest_selected > this.itemRequest.max_request && (this.itemRequest_selected = this.itemRequest.max_request), this.itemRequest_selected < 1 && (this.itemRequest_selected = 1)) : 3 == t ? (this.itemRemove_selected > this.itemRemove.amount && (this.itemRemove_selected = this.itemRemove.amount), this.itemRemove_selected < 1 && (this.itemRemove_selected = 1)) : 4 == t && (this.changePrice_selected > this.changePrice.max_price && (this.changePrice_selected = this.changePrice.max_price), this.changePrice_selected < 0 && (this.changePrice_selected = 0)) }, TotalPrice: function() { var t = 0; return this.cart.forEach((function(e) { t += e.price * e.amount })), t.toFixed(2) }, enablePopUp: function(t) { this.popUp = t }, LoadStock: function() { var t = this, e = this.NameResource[0]; r.a.post("https://".concat(e, "/loadStock"), {}).then((function() { t.loading = !0 })).catch((function(t) { return console.log(t) })) }, receiveLua: function(t) { if (t && t.data) { var e = t.data; e.pop_up ? this.closed || (this.step = e.type, e.message && (this.pop_up_error = e.message), this.step) : e.loadStock && (this.stock = e.stock, this.products = e.products, this.loading = !1) } }, keyPress: function(t) { var e = t.key; "Escape" == e && this.close() } }, created: function() { window.addEventListener("message", this.receiveLua), window.addEventListener("keydown", this.keyPress), this.LoadStock() }, destroyed: function() { window.removeEventListener("message", this.receiveLua), window.removeEventListener("keydown", this.keyPress) } }), B = E, I = (s("57bd"), Object(u["a"])(B, f, g, !1, null, null, null)), P = I.exports, k = function() { var t = this, e = t.$createElement, s = t._self._c || e; return s("div", [t.popUp ? s("div", { attrs: { id: "PopUpBox" } }, [s("div", { attrs: { id: "PopUp" } }, ["addMoney" == t.step ? s("div", { attrs: { id: "PopAlert" } }, [s("i", { staticClass: "fas fa-dollar-sign" }), s("p", { staticClass: "PopUpTitle" }, [t._v(t._s(t.translate.TR_STORE_TITLE_POP))]), s("p", { staticClass: "PopUpMessage" }, [t._v(t._s(t.translate.TR_TEXT_ADD_MONEY))]), s("input", { directives: [{ name: "model", rawName: "v-model", value: t.addMoney, expression: "addMoney" }], staticClass: "StockItemPopAmount", attrs: { type: "number", name: "", min: "0", placeholder: t.translate.TR_MONEY_BANK + ":" }, domProps: { value: t.addMoney }, on: { input: [function(e) { e.target.composing || (t.addMoney = e.target.value) }, t.checkValidMoney] } }), s("div", { attrs: { id: "PopUpButtons" } }, [s("p", { style: t.StyleBody, attrs: { id: "PopUpButtonGreen" }, on: { click: t.SendAddMoney } }, [t._v(t._s(t.translate.TR_ADD_MONEY))]), s("p", { attrs: { id: "PopUpButtonRed" }, on: { click: function(e) { return t.enablePopUp(!1) } } }, [t._v(t._s(t.translate.TR_CANCEL))])])]) : t._e(), "withdraw" == t.step ? s("div", { attrs: { id: "PopAlert" } }, [s("i", { staticClass: "fas fa-dollar-sign" }), s("p", { staticClass: "PopUpTitle" }, [t._v(t._s(t.translate.TR_STORE_TITLE_POP2))]), s("p", { staticClass: "PopUpMessage" }, [t._v(t._s(t.translate.TR_TEXT_WITHDRAW))]), s("input", { directives: [{ name: "model", rawName: "v-model", value: t.withdraw, expression: "withdraw" }], staticClass: "StockItemPopAmount", attrs: { type: "number", name: "", min: "0", placeholder: "" + t.translate.TR_MONEY_BALANCE }, domProps: { value: t.withdraw }, on: { input: [function(e) { e.target.composing || (t.withdraw = e.target.value) }, t.checkValidWithdraw] } }), s("div", { attrs: { id: "PopUpButtons" } }, [s("p", { style: t.StyleBody, attrs: { id: "PopUpButtonGreen" }, on: { click: t.SendWithdraw } }, [t._v(t._s(t.translate.TR_WITHDRAW))]), s("p", { attrs: { id: "PopUpButtonRed" }, on: { click: function(e) { return t.enablePopUp(!1) } } }, [t._v(t._s(t.translate.TR_CANCEL))])])]) : "waiting" == t.step ? s("div", { attrs: { id: "PopLoading" } }, [s("div", { staticClass: "loader" })]) : "success" == t.step ? s("div", { attrs: { id: "PopSucessfull" } }, [s("p", { staticClass: "close", on: { click: function(e) { return t.enablePopUp(!1) } } }, [t._v("X")]), s("svg", { staticClass: "checkmark", attrs: { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 52 52" } }, [s("circle", { staticClass: "checkmark__circle", attrs: { cx: "26", cy: "26", r: "25", fill: "none" } }), s("path", { staticClass: "checkmark__check", attrs: { fill: "none", d: "M14.1 27.2l7.1 7.2 16.7-16.8" } })]), s("p", { staticClass: "PaymentCompletText" }, [t._v(t._s(t.translate.TR_PAYMENT_COMPLETE))])]) : "error" == t.step ? s("div", { attrs: { id: "PopNegade" } }, [s("p", { staticClass: "close", on: { click: function(e) { return t.enablePopUp(!1) } } }, [t._v("X")]), s("i", { staticClass: "fas fa-times" }), s("p", { staticClass: "PaymentNegadeText" }, [t._v(t._s(t.translate.TR_PAYMENT_NEGADE))]), s("p", { staticClass: "PaymentNegadeReason" }, [t._v(t._s(t.translate.TR_REASON) + " " + t._s(t.pop_up_error))])]) : t._e()])]) : t._e(), s("div", { class: { blur: t.popUp }, style: t.StyleHeader, attrs: { id: "StoreBodyBox" } }, [s("p", { staticClass: "close", on: { click: t.close } }, [t._v("X")]), s("i", { staticClass: "fas fa-arrow-left preview", on: { click: function(e) { return t.OpenScreen("Dashboard") } } }), s("div", { attrs: { id: "StoreTitleBox" } }, [s("p", { attrs: { id: "StoreTitle" } }, [t._v(t._s(t.store_title))])]), s("div", { attrs: { id: "StoreBox" } }, [s("div", { attrs: { id: "StoreWindowBox" } }, [t._v(" " + t._s(t.translate.TR_BALANCE) + " ")]), s("div", { attrs: { id: "StoreContentBox" } }, [s("div", [s("div", { attrs: { id: "CartTitleBox" } }, [s("p", { attrs: { id: "CartTitle" } }, [t._v(t._s(t.translate.TR_STORE_BALANCE))])]), t.loading ? s("div", { attrs: { id: "Loading" } }, [s("div", { staticClass: "loader" })]) : s("div", { attrs: { id: "BalanceBox" } }, [t._m(0), s("div", { attrs: { id: "BalanceMoneyBox" } }, [s("p", { attrs: { id: "BalanceMoney" } }, [t._v(t._s(t.translate.TR_MONEY_SIMBOL) + " " + t._s(t.balance.toFixed(2)))])]), s("div", { attrs: { id: "BalanceButtonsBox" } }, [s("p", { staticClass: "BalanceButton", style: t.StyleBody, on: { click: t.AddMoney } }, [t._v(t._s(t.translate.TR_ADD_MONEY))]), s("p", { staticClass: "BalanceButton", on: { click: t.Withdraw } }, [t._v(t._s(t.translate.TR_WITHDRAW))])])])])])])])]) }, O = [function() { var t = this, e = t.$createElement, s = t._self._c || e; return s("div", { attrs: { id: "BalanceImageBox" } }, [s("img", { attrs: { src: "img/salary.png", alt: "", id: "BalanceImage" } })]) }], w = { props: { store_title: {}, StyleHeader: {}, StyleBody: {}, translate: {}, NameResource: {}, closed: {}, close: {}, OpenScreen: {} }, data: function() { return { popUp: !1, step: "confirm", pop_up_error: "", addMoney: "", withdraw: "", loading: !1, balance: 0 } }, methods: { AddMoney: function() { this.step = "addMoney", this.enablePopUp(!0) }, Withdraw: function() { this.step = "withdraw", this.enablePopUp(!0) }, SendAddMoney: function() { var t = this; if (!this.closed && this.addMoney && this.addMoney > 0) { this.step = "waiting"; var e = this.NameResource[0]; r.a.post("https://".concat(e, "/sendAddMoney"), { money: this.addMoney }).then((function() { t.loading = !0 })).catch((function(t) { return console.log(t) })) } }, SendWithdraw: function() { var t = this; if (!this.closed && this.withdraw && this.withdraw > 0) { this.step = "waiting"; var e = this.NameResource[0]; r.a.post("https://".concat(e, "/sendWithdraw"), { money: this.withdraw }).then((function() { t.loading = !0 })).catch((function(t) { return console.log(t) })) } }, checkValidMoney: function() { this.addMoney < 0 && (this.addMoney = 0), this.addMoney > 9999999 && (this.addMoney = 9999999) }, checkValidWithdraw: function() { this.withdraw < 0 && (this.withdraw = 0), this.withdraw > 9999999 && (this.withdraw = 9999999) }, enablePopUp: function(t) { this.popUp = t }, LoadBalance: function() { var t = this, e = this.NameResource[0]; r.a.post("https://".concat(e, "/loadBalance"), { money: this.withdraw }).then((function() { t.loading = !0 })).catch((function(t) { return console.log(t) })) }, receiveLua: function(t) { if (t && t.data) { var e = t.data; e.pop_up ? this.closed || (this.step = e.type, e.message && (this.pop_up_error = e.message), this.step) : e.loadBalance && (this.balance = e.money, this.loading = !1) } }, keyPress: function(t) { var e = t.key; "Escape" == e && this.close() } }, created: function() { window.addEventListener("message", this.receiveLua), window.addEventListener("keydown", this.keyPress), this.LoadBalance() }, destroyed: function() { window.removeEventListener("message", this.receiveLua), window.removeEventListener("keydown", this.keyPress) } }, N = w, M = (s("7aca"), Object(u["a"])(N, k, O, !1, null, null, null)), b = M.exports, x = function() { var t = this, e = t.$createElement, s = t._self._c || e; return s("div", [t.popUp ? s("div", { attrs: { id: "PopUpBox" } }, [s("div", { attrs: { id: "PopUp" } }, ["sell" == t.step ? s("div", { attrs: { id: "PopAlert" } }, [s("i", { staticClass: "fas fa-shopping-cart" }), s("p", { staticClass: "PopUpTitle" }, [t._v(t._s(t.translate.TR_CONFIRM_TITLE))]), s("p", { staticClass: "PopUpMessage" }, [t._v(t._s(t.translate.TR_CONFIR_SELL_MESSAGE) + " " + t._s((t.price_store - t.price_store * (t.percentage_sell / 100)).toFixed(2)))]), s("div", { attrs: { id: "PopUpButtons" } }, [s("p", { style: t.StyleBody, attrs: { id: "PopUpButtonGreen" }, on: { click: t.SendSellStore } }, [t._v(t._s(t.translate.TR_YES))]), s("p", { attrs: { id: "PopUpButtonRed" }, on: { click: function(e) { return t.enablePopUp(!1) } } }, [t._v(t._s(t.translate.TR_NO))])])]) : "waiting" == t.step ? s("div", { attrs: { id: "PopLoading" } }, [s("div", { staticClass: "loader" })]) : "success" == t.step ? s("div", { attrs: { id: "PopSucessfull" } }, [s("svg", { staticClass: "checkmark", attrs: { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 52 52" } }, [s("circle", { staticClass: "checkmark__circle", attrs: { cx: "26", cy: "26", r: "25", fill: "none" } }), s("path", { staticClass: "checkmark__check", attrs: { fill: "none", d: "M14.1 27.2l7.1 7.2 16.7-16.8" } })]), s("p", { staticClass: "PaymentCompletText" }, [t._v(t._s(t.translate.TR_PAYMENT_COMPLETE))])]) : "error" == t.step ? s("div", { attrs: { id: "PopNegade" } }, [s("p", { staticClass: "close", on: { click: function(e) { return t.enablePopUp(!1) } } }, [t._v("X")]), s("i", { staticClass: "fas fa-times" }), s("p", { staticClass: "PaymentNegadeText" }, [t._v(t._s(t.translate.TR_PAYMENT_NEGADE))]), s("p", { staticClass: "PaymentNegadeReason" }, [t._v(t._s(t.translate.TR_REASON) + " " + t._s(t.pop_up_error))])]) : t._e()])]) : t._e(), s("div", { class: { blur: t.popUp }, style: t.StyleHeader, attrs: { id: "StoreBodyBox" } }, [s("p", { staticClass: "close", on: { click: t.close } }, [t._v("X")]), s("i", { staticClass: "fas fa-arrow-left preview", on: { click: function(e) { return t.OpenScreen("Dashboard") } } }), s("div", { attrs: { id: "StoreTitleBox" } }, [s("p", { attrs: { id: "StoreTitle" } }, [t._v(t._s(t.store_title))])]), s("div", { attrs: { id: "StoreBox" } }, [s("div", { attrs: { id: "StoreWindowBox" } }, [t._v(" " + t._s(t.translate.TR_SELL) + " ")]), s("div", { attrs: { id: "StoreContentBox" } }, [s("div", [s("div", { attrs: { id: "CartTitleBox" } }, [s("p", { attrs: { id: "CartTitle" } }, [t._v(t._s(t.translate.TR_SELL_STORE))])]), s("div", { attrs: { id: "BalanceBox" } }, [t._m(0), s("div", { attrs: { id: "BalanceMoneyBox" } }, [s("p", { attrs: { id: "SellMoney" } }, [t._v(t._s(t.translate.TR_MONEY_SIMBOL) + " " + t._s((t.price_store - t.price_store * (t.percentage_sell / 100)).toFixed(2)))]), s("p", { attrs: { id: "SellTextConfirm" } }, [t._v(t._s(t.translate.TR_SELL_TEXT) + " " + t._s(t.translate.TR_MONEY_SIMBOL) + " " + t._s((t.price_store - t.price_store * (t.percentage_sell / 100)).toFixed(2)) + ". " + t._s(t.translate.TR_SELL_TEXT2))])]), s("div", { attrs: { id: "BalanceButtonsBox" } }, [s("p", { staticClass: "BalanceButton", style: t.StyleBody, on: { click: t.SellStore } }, [t._v(t._s(t.translate.TR_CONFIRM_SELL))])])])])])])])]) }, A = [function() { var t = this, e = t.$createElement, s = t._self._c || e; return s("div", { attrs: { id: "BalanceImageBox" } }, [s("img", { attrs: { src: "img/banner.png", alt: "", id: "BalanceImage" } })]) }], L = { props: { price_store: {}, percentage_sell: {}, store_title: {}, StyleHeader: {}, StyleBody: {}, translate: {}, weightSystem: {}, NameResource: {}, closed: {}, close: {}, OpenScreen: {} }, data: function() { return { popUp: !1, step: "confirm", pop_up_error: "" } }, methods: { enablePopUp: function(t) { this.popUp = t }, SellStore: function() { this.step = "sell", this.enablePopUp(!0) }, SendSellStore: function() { if (!this.closed) { this.step = "waiting"; var t = this.NameResource[0]; r.a.post("https://".concat(t, "/sendSellStore"), {}).then((function() {})).catch((function(t) { return console.log(t) })) } }, receiveLua: function(t) { var e = this; if (t && t.data) { var s = t.data; s.pop_up && (this.closed || (this.step = s.type, s.message && (this.pop_up_error = s.message), "success" == this.step && setTimeout((function() { return e.close() }), 2e3))) } }, keyPress: function(t) { var e = t.key; "Escape" == e && this.close() } }, created: function() { window.addEventListener("message", this.receiveLua), window.addEventListener("keydown", this.keyPress), this.buy_method = this.translate.TR_BANK_ACCOUNT }, destroyed: function() { window.removeEventListener("message", this.receiveLua), window.removeEventListener("keydown", this.keyPress) } }, U = L, D = (s("e79f"), Object(u["a"])(U, x, A, !1, null, null, null)), F = D.exports, Y = function() { var t = this, e = t.$createElement, s = t._self._c || e; return s("div", [t.popUp ? s("div", { attrs: { id: "PopUpBox" } }, [s("div", { attrs: { id: "PopUp" } }, ["sell" == t.step ? s("div", { attrs: { id: "PopAlert" } }, [s("i", { staticClass: "fas fa-shopping-cart" }), s("p", { staticClass: "PopUpTitle" }, [t._v(t._s(t.translate.TR_CONFIRM_TITLE))]), s("p", { staticClass: "PopUpMessage" }, [t._v(t._s(t.translate.TR_CONFIR_BUY_MESSAGE))]), s("div", { attrs: { id: "PopUpButtons" } }, [s("p", { style: t.StyleBody, attrs: { id: "PopUpButtonGreen" }, on: { click: t.SendBuyStore } }, [t._v(t._s(t.translate.TR_YES))]), s("p", { attrs: { id: "PopUpButtonRed" }, on: { click: function(e) { return t.enablePopUp(!1) } } }, [t._v(t._s(t.translate.TR_NO))])])]) : "waiting" == t.step ? s("div", { attrs: { id: "PopLoading" } }, [s("div", { staticClass: "loader" })]) : "success" == t.step ? s("div", { attrs: { id: "PopSucessfull" } }, [s("svg", { staticClass: "checkmark", attrs: { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 52 52" } }, [s("circle", { staticClass: "checkmark__circle", attrs: { cx: "26", cy: "26", r: "25", fill: "none" } }), s("path", { staticClass: "checkmark__check", attrs: { fill: "none", d: "M14.1 27.2l7.1 7.2 16.7-16.8" } })]), s("p", { staticClass: "PaymentCompletText" }, [t._v(t._s(t.translate.TR_PAYMENT_COMPLETE))])]) : "error" == t.step ? s("div", { attrs: { id: "PopNegade" } }, [s("p", { staticClass: "close", on: { click: function(e) { return t.enablePopUp(!1) } } }, [t._v("X")]), s("i", { staticClass: "fas fa-times" }), s("p", { staticClass: "PaymentNegadeText" }, [t._v(t._s(t.translate.TR_PAYMENT_NEGADE))]), s("p", { staticClass: "PaymentNegadeReason" }, [t._v(t._s(t.translate.TR_REASON) + " " + t._s(t.pop_up_error))])]) : t._e()])]) : t._e(), s("div", { class: { blur: t.popUp }, style: t.StyleHeader, attrs: { id: "StoreBodyBox" } }, [s("p", { staticClass: "close", on: { click: t.close } }, [t._v("X")]), s("div", { attrs: { id: "StoreTitleBox" } }, [s("p", { attrs: { id: "StoreTitle" } }, [t._v(t._s(t.store_title))])]), s("div", { attrs: { id: "StoreBox" } }, [s("div", { attrs: { id: "StoreWindowBox" } }, [t._v(" " + t._s(t.translate.TR_BUY) + " ")]), s("div", { attrs: { id: "StoreContentBox" } }, [s("div", [s("div", { attrs: { id: "CartTitleBox" } }, [s("p", { attrs: { id: "CartTitle" } }, [t._v(t._s(t.translate.TR_BUY_STORE))])]), s("div", { attrs: { id: "BalanceBox" } }, [t._m(0), s("div", { attrs: { id: "BalanceMoneyBox" } }, [s("p", { attrs: { id: "BuyMoney" } }, [t._v(t._s(t.translate.TR_MONEY_SIMBOL) + " " + t._s(t.price_store.toFixed(2)))]), s("p", { attrs: { id: "SellTextConfirm" } }, [t._v(t._s(t.translate.TR_BUY_TEXT) + " " + t._s(t.translate.TR_MONEY_SIMBOL) + " " + t._s(t.price_store.toFixed(2)) + ". " + t._s(t.translate.TR_BUY_TEXT2))])]), s("div", { attrs: { id: "BalanceButtonsBox" } }, [s("p", { staticClass: "BalanceButton", style: t.StyleBody, on: { click: t.BuyStore } }, [t._v(t._s(t.translate.TR_CONFIRM_BUY))])])])])])])])]) }, q = [function() { var t = this, e = t.$createElement, s = t._self._c || e; return s("div", { attrs: { id: "BalanceImageBox" } }, [s("img", { attrs: { src: "img/buy.png", alt: "", id: "BalanceImage" } })]) }], W = { props: { price_store: {}, store_title: {}, StyleHeader: {}, StyleBody: {}, translate: {}, NameResource: {}, closed: {}, close: {} }, data: function() { return { popUp: !1, step: "confirm", pop_up_error: "" } }, methods: { enablePopUp: function(t) { this.popUp = t }, BuyStore: function() { this.step = "sell", this.enablePopUp(!0) }, SendBuyStore: function() { if (!this.closed) { this.step = "waiting"; var t = this.NameResource[0]; r.a.post("https://".concat(t, "/sendBuyStore"), {}).then((function() {})).catch((function(t) { return console.log(t) })) } }, receiveLua: function(t) { var e = this; if (t && t.data) { var s = t.data; s.pop_up && (this.closed || (this.step = s.type, s.message && (this.pop_up_error = s.message), "success" == this.step && setTimeout((function() { return e.close() }), 2e3))) } }, keyPress: function(t) { var e = t.key; "Escape" == e && this.close() } }, created: function() { window.addEventListener("message", this.receiveLua), window.addEventListener("keydown", this.keyPress), this.buy_method = this.translate.TR_BANK_ACCOUNT }, destroyed: function() { window.removeEventListener("message", this.receiveLua), window.removeEventListener("keydown", this.keyPress) } }, H = W, G = (s("ed2d"), Object(u["a"])(H, Y, q, !1, null, null, null)), X = G.exports, j = function() { var t = this, e = t.$createElement, s = t._self._c || e; return s("div", [s("div", { style: t.StyleHeader, attrs: { id: "StoreBodyBox" } }, [s("p", { staticClass: "close", on: { click: t.close } }, [t._v("X")]), s("i", { staticClass: "fas fa-arrow-left preview", on: { click: function(e) { return t.OpenScreen("Store") } } }), s("div", { attrs: { id: "StoreTitleBox" } }, [s("p", { attrs: { id: "StoreTitle" } }, [t._v(t._s(t.store_title))])]), s("div", { attrs: { id: "StoreBox" } }, [s("div", { attrs: { id: "StoreWindowBox" } }, [t._v(" " + t._s(t.translate.TR_MISSIONS) + " ")]), s("div", { attrs: { id: "StoreContentBox" } }, [s("div", [s("div", { attrs: { id: "CartTitleBox" } }, [s("p", { attrs: { id: "CartTitle" } }, [t._v(t._s(t.translate.TR_STORE_MISSIONS))])]), s("div", { attrs: { id: "CartBodyBox" } }, [s("div", { staticClass: "MissionItensBox" }, [s("p", { staticClass: "MissionItensTitle" }, [t._v(t._s(t.translate.TR_STORE_MISSIONS2))]), t.loading ? s("div", { staticClass: "Loading" }, [s("div", { staticClass: "loader" })]) : s("ul", { staticClass: "MissionItensList" }, [t._l(t.request.filter((function(e) { return e.requested == t.identifier })), (function(e) { return s("li", { key: e.name, staticClass: "MissionItem" }, [s("div", { staticClass: "MissionItemNameBox" }, [s("div", { staticClass: "MissionItemImageBox" }, [s("img", { staticClass: "MissionItemImage", attrs: { src: "img/" + e.name + ".png", alt: "" } })]), s("p", { staticClass: "MissionItemName" }, [t._v(t._s(e.label))])]), t.weightSystem ? s("p", { staticClass: "MissionItemWeight" }, [t._v(t._s(Number(e.weight).toFixed(1)) + "kg")]) : t._e(), s("div", { staticClass: "MissionItemAmountBox" }, [s("label", { attrs: { for: "" } }, [t._v("x")]), s("label", { staticClass: "MissionItemAmount", attrs: { for: "" } }, [t._v(t._s(e.amount))])]), s("p", { staticClass: "MissionItemPrice" }, [t._v(t._s(t.translate.TR_MONEY_SIMBOL) + t._s(Number(e.amount * e.mission_money).toFixed(2)))]), s("p", { staticClass: "MissionItemButton", style: t.StyleBody, on: { click: function(s) { return t.CancelMission(e) } } }, [t._v(t._s(t.translate.TR_CANCEL_MISSION2))])]) })), t._l(t.request.filter((function(t) { return "none" == t.requested })), (function(e) { return s("li", { key: e.name, staticClass: "MissionItem" }, [s("div", { staticClass: "MissionItemNameBox" }, [s("div", { staticClass: "MissionItemImageBox" }, [s("img", { staticClass: "MissionItemImage", attrs: { src: "img/" + e.name + ".png", alt: "" } })]), s("p", { staticClass: "MissionItemName" }, [t._v(t._s(e.label))])]), t.weightSystem ? s("p", { staticClass: "MissionItemWeight" }, [t._v(t._s(Number(e.weight).toFixed(1)) + "kg")]) : t._e(), s("div", { staticClass: "MissionItemAmountBox" }, [s("label", { attrs: { for: "" } }, [t._v("x")]), s("label", { staticClass: "MissionItemAmount", attrs: { for: "" } }, [t._v(t._s(e.amount))])]), s("p", { staticClass: "MissionItemPrice" }, [t._v(t._s(t.translate.TR_MONEY_SIMBOL) + t._s(Number(e.amount * e.mission_money).toFixed(2)))]), s("p", { staticClass: "MissionItemButton", style: t.StyleBody, on: { click: function(s) { return t.AcceptMission(e) } } }, [t._v(t._s(t.translate.TR_ACCEPT_MISSION))])]) })), t._l(t.request.filter((function(e) { return e.requested != t.identifier && "none" != e.requested })), (function(e) { return s("li", { key: e.name, staticClass: "MissionItem grayScale" }, [s("div", { staticClass: "MissionItemNameBox" }, [s("div", { staticClass: "MissionItemImageBox" }, [s("img", { staticClass: "MissionItemImage", attrs: { src: "img/" + e.name + ".png", alt: "" } })]), s("p", { staticClass: "MissionItemName" }, [t._v(t._s(e.label))])]), t.weightSystem ? s("p", { staticClass: "MissionItemWeight" }, [t._v(t._s(Number(e.weight).toFixed(1)) + "kg")]) : t._e(), s("div", { staticClass: "MissionItemAmountBox" }, [s("label", { attrs: { for: "" } }, [t._v("x")]), s("label", { staticClass: "MissionItemAmount", attrs: { for: "" } }, [t._v(t._s(e.amount))])]), s("p", { staticClass: "MissionItemPrice" }, [t._v(t._s(t.translate.TR_MONEY_SIMBOL) + t._s(Number(e.amount * e.mission_money).toFixed(2)))]), s("p", { staticClass: "MissionItemButton", style: t.StyleBody }, [t._v(t._s(t.translate.TR_ACCEPT_MISSION))])]) }))], 2)])])])])])])]) }, V = [], K = { props: { store_title: {}, StyleHeader: {}, StyleBody: {}, translate: {}, weightSystem: {}, NameResource: {}, closed: {}, close: {}, OpenScreen: {} }, data: function() { return { request: [{ name: "bread", label: "Bread", amount: 51e6, weight: 1, price: 152, recommended_price: 100, max_price: 1e3, request_price: 50, mission_money: 25, max_request: 500, requested: "none" }, { name: "drink", label: "Drink", amount: 50, weight: 10, price: 100, recommended_price: 100, max_price: 1e3, request_price: 50, mission_money: 25, max_request: 500, requested: "mine" }, { name: "drink", label: "Drink", amount: 50, weight: 10, price: 100, recommended_price: 100, max_price: 1e3, request_price: 50, mission_money: 25, max_request: 500, requested: "other" }], identifier: "mine", loading: !1 } }, methods: { AcceptMission: function(t) { var e = this; if (!this.closed) { var s = this.NameResource[0]; r.a.post("https://".concat(s, "/acceptMission"), { item: t }).then((function() { e.loading = !0 })).catch((function(t) { return console.log(t) })) } }, CancelMission: function(t) { var e = this; if (!this.closed) { var s = this.NameResource[0]; r.a.post("https://".concat(s, "/cancelMission"), { item: t }).then((function() { e.loading = !0 })).catch((function(t) { return console.log(t) })) } }, enablePopUp: function(t) { this.popUp = t }, LoadMissions: function() { var t = this, e = this.NameResource[0]; r.a.post("https://".concat(e, "/loadMissions"), {}).then((function() { t.loading = !0 })).catch((function(t) { return console.log(t) })) }, receiveLua: function(t) { if (t && t.data) { var e = t.data; e.loadMissions && (this.request = e.request, this.identifier = e.identifier, this.loading = !1) } }, keyPress: function(t) { var e = t.key; "Escape" == e && this.close() } }, created: function() { window.addEventListener("message", this.receiveLua), window.addEventListener("keydown", this.keyPress), this.LoadMissions() }, destroyed: function() { window.removeEventListener("message", this.receiveLua), window.removeEventListener("keydown", this.keyPress) } }, $ = K, Q = (s("94e6"), Object(u["a"])($, j, V, !1, null, null, null)), J = Q.exports, z = { components: { Store: h, Dashboard: R, Stock: P, Balance: b, Sell: F, Buy: X, Missions: J }, data: function() { return { store_title: "SUPERMARKET", items: [{ name: "bread", label: "Bread", weight: 1, amount: 500, price: 500 }, { name: "drink", label: "Drink", weight: 1, amount: 500, price: 452.52 }], payment_methods: [{ name: "Bank Account", img: "img/card.png" }, { name: "Wallet Money", img: "img/wallet.png" }], StyleHeader: { backgroundColor: "#03AE74" }, StyleBody: { backgroundColor: "#03b67a" }, price_store: 5e3, percentage_sell: 10, balance: 5e3, translate: { TR_TITLEWINDOW: "Items for sale", TR_TITLEWINDOW2: "My Cart", TR_SEARCH: "Search", TR_MY_CART: "MY CART", TR_ADD_TO_CART: "ADD TO CART", TR_WEIGHT_SYMBOL: "kg", TR_PAYMENT: "PAYMENT", TR_STORE_CART: "CART", TR_PAYMENT_OPTIONS: "PAYMENT OPTIONS", TR_BANK_ACCOUNT: "Bank Account", TR_WALLET_MONEY: "Wallet Money", TR_BUY_NOW: "Buy now", TR_CONTINUE_SHOPPING: "Continue shopping", TR_TOTAL: "Total:", TR_MONEY_SIMBOL: "$", TR_CONFIRM_TITLE: "Are you sure about this?", TR_CONFIR_MESSAGE: "The total amount is", TR_CONFIR_MESSAGE2: "and you have chosen to pay with", TR_CONFIR_MESSAGE3: "Do you want to continue?", TR_YES: "Yes", TR_NO: "No", TR_CANCEL: "Cancel", TR_PAYMENT_COMPLETE: "Payment Complete!", TR_PAYMENT_NEGADE: "Payment denied!", TR_REMOVE: "remove", TR_REASON: "Reason:", TR_STORE: "Store", TR_MANAGE_STORE: "MANAGE YOUR STORE", TR_STOCK: "STOCK", TR_BALANCE: "BALANCE", TR_SELL_STORE: "SELL STORE", TR_STORE_STOCK: "STORE STOCK", TR_STORE_PRODUCTS: "STORE PRODUCTS IN STOCK", TR_STORE_PRODUCTS2: "STORE PRODUCTS FOR SALE", TR_PUT_FOT_SALE: "Put For Sale", TR_MAX: "Max", TR_TEXT_FOR_SALE: "Enter the quantity you want to put up for sale", TR_REQUEST_ITEM: "Request Item", TR_TEXT_REQUEST_ITEM: "Enter the quantity you want to request", TR_CURRENT: "Current", TR_REMOVE_ITEM: "Remove Item", TR_TEXT_REMOVE_ITEM: "Enter the quantity you want to remove", TR_CHANGE_PRICE: "Change Price", TR_TEXT_CHANGE_PRICE: "Enter the new Price you want", TR_STORE_BALANCE: "STORE BALANCE", TR_STORE_TITLE_POP: "Add Money to the Store", TR_TEXT_ADD_MONEY: "Enter the amount of money you want to add to your store. This money must be in your bank account.", TR_MONEY_BANK: "bank account money", TR_STORE_TITLE_POP2: "Withdraw Money to the your Bank Account", TR_TEXT_WITHDRAW: "Enter the amount of money you want to remove to your store.", TR_MONEY_BALANCE: "balance money", TR_ADD_MONEY: "Add Money", TR_WITHDRAW: "Withdraw", TR_SELL: "SELL", TR_SELL_TEXT: "Currently the price of your store is", TR_SELL_TEXT2: "When selling, you will lose all rights to the items that exist in it. Do you really want to sell your store?", TR_CONFIRM_SELL: "Confirm Sell", TR_CONFIR_SELL_MESSAGE: "Do you really want to sell your store? The money will be sent to your bank account and the value of your store is currently:", TR_BUY: "BUY", TR_BUY_TEXT: "Currently the price of the store is", TR_BUY_TEXT2: "When purchasing, you will be able to manage this store and request new items. Do you really want to buy this store?", TR_CONFIRM_BUY: "Confirm Buy", TR_CONFIR_BUY_MESSAGE: "Do you really want to buy this store? The money will be charged from your bank account and the value of this store is currently:", TR_SOLD_OUT: "SOLD OUT", TR_MISSIONS: "MISSIONS", TR_STORE_MISSIONS: "STORE MISSIONS", TR_STORE_MISSIONS2: "STORE PRODUCTS MISSIONS", TR_OPERATION_SUCCESFUL: "Operation Successful.", TR_OPERATION_NEGADE: "Operation Denied.", TR_REQUEST: "Request", TR_ACCEPT_MISSION: "Accept Mission", TR_CANCEL_MISSION2: "Cancel Mission", TR_PRICE_REQUEST: "Price of this request", TR_MISSIONS2: "Missions" }, weightSystem: !0, NameResource: "lg_manage_store", openned: !1, page: "" } }, methods: { OpenScreen: function(t) { this.page = t }, close: function() { if (!this.closed) { var t = this.NameResource[0]; r.a.post("https://".concat(t, "/close"), {}).catch((function(t) { return console.log(t) })), this.openned = !1 } }, keyPress: function(t) { var e = t.key; "Escape" == e && this.close() } }, created: function() { window.addEventListener("message", this.receiveLua), window.addEventListener("keydown", this.keyPress) }, destroyed: function() { window.removeEventListener("message", this.receiveLua), window.removeEventListener("keydown", this.keyPress) } }, Z = z, tt = (s("034f"), Object(u["a"])(Z, i, o, !1, null, null, null)), et = tt.exports; a["a"].config.productionTip = !1, new a["a"]({ render: function(t) { return t(et) } }).$mount("#app") }, "57bd": function(t, e, s) { "use strict"; s("07e9") }, 6407: function(t, e, s) { "use strict"; s("8c0e") }, "7aca": function(t, e, s) { "use strict"; s("e4df") }, "7e82": function(t, e, s) {}, "85ec": function(t, e, s) {}, "8c0e": function(t, e, s) {}, "94e6": function(t, e, s) { "use strict"; s("17d5") }, "9d7d": function(t, e, s) {}, a5a5: function(t, e, s) { "use strict"; s("9d7d") }, e4df: function(t, e, s) {}, e79f: function(t, e, s) { "use strict"; s("1af7") }, ed2d: function(t, e, s) { "use strict"; s("7e82") } }); //# sourceMappingURL=app.e65c18ae.js.map