osmanli-veri-dagitim 2.0.67 → 2.0.68

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1827,7 +1827,7 @@ eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var vuex
1827
1827
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
1828
1828
 
1829
1829
  "use strict";
1830
- eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var vuex__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! vuex */ \"./node_modules/vuex/dist/vuex.esm.js\");\n/* harmony import */ var _components__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @/components */ \"./src/components/index.js\");\n/* harmony import */ var _components_customer_PackageSettigns_vue__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../components/customer/PackageSettigns.vue */ \"./src/components/customer/PackageSettigns.vue\");\n/* harmony import */ var _utils_breadcrumb__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../utils/breadcrumb */ \"./src/utils/breadcrumb.js\");\n/* harmony import */ var _constants__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../constants */ \"./src/constants/index.js\");\n/* harmony import */ var _utils_tokenTools__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../utils/tokenTools */ \"./src/utils/tokenTools.js\");\n/* harmony import */ var _mixins__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../mixins */ \"./src/mixins/index.js\");\n\n\n\n\n\n\n\n/* harmony default export */ __webpack_exports__[\"default\"] = ({\n name: \"Checkout\",\n components: {\n BaseIcon: _components__WEBPACK_IMPORTED_MODULE_1__[\"BaseIcon\"],\n BaseButton: _components__WEBPACK_IMPORTED_MODULE_1__[\"BaseButton\"],\n BaseSelect: _components__WEBPACK_IMPORTED_MODULE_1__[\"BaseSelect\"],\n InfoArea: _components__WEBPACK_IMPORTED_MODULE_1__[\"InfoArea\"],\n PackageSettigns: _components_customer_PackageSettigns_vue__WEBPACK_IMPORTED_MODULE_2__[\"default\"]\n },\n mixins: [_mixins__WEBPACK_IMPORTED_MODULE_6__[\"default\"]],\n\n data() {\n return {\n summaryData: [],\n totalFundAmount: 0,\n totalCommissionAmount: 0,\n packageDetail: null,\n marketInfo: null,\n isPopupVisible: false,\n isWarningAllowed: false,\n totalPriceTl: [],\n totalPriceDollar: [],\n totalPriceEuro: [],\n totalPrice: 0,\n totalPriceForeign: 0,\n startDateSelection: -1,\n isButtonClicked: true,\n esube: Object(_utils_tokenTools__WEBPACK_IMPORTED_MODULE_5__[\"getItem\"])(\"esube\"),\n IsRecommendationPackage: false,\n infoText: [\"BES ve yatırım fonu büyüklüğü ve/veya komisyon şartı sağlandığı taktirde; o ay toplamda belirtilen ekran ücreti sizden alınmayacaktır.\", \"Faturalandırma sırasında ay sonu Merkez Bankası kuru dikkate alınacaktır.\"],\n startDate: [{\n label: \"Seçiniz\",\n code: -1\n }, {\n label: \"Hemen Şimdi\",\n code: 0\n }, {\n label: \"Ay Başında\",\n code: 1\n }],\n customerId: null,\n haveCurrency: false,\n isRecomendedPackage: false\n };\n },\n\n computed: { ...Object(vuex__WEBPACK_IMPORTED_MODULE_0__[\"mapGetters\"])([\"customer\", \"packageSummary\", \"getPackageInfo\", \"getMarketInfo\", \"getUserInfo\", \"recommendationSummary\"]),\n\n currencySymbol() {\n return _constants__WEBPACK_IMPORTED_MODULE_4__[\"CurrencySymbol\"];\n },\n\n packageNumber() {\n return this.$route.params.packageNumber;\n },\n\n getUserNumber() {\n return this.customer.customerNo;\n },\n\n getUserInfos() {\n return `${this.customer.name} ${this.customer.surName}`;\n },\n\n customerNumber() {\n return this.$route.params.customerNumber;\n },\n\n screenPrice() {\n if (this.summaryData && this.summaryData.price) {\n return this.summaryData.price.screenPrice;\n }\n\n return 0;\n },\n\n screenFund() {\n if (this.summaryData && this.summaryData.price) {\n return this.summaryData.price.screenFund;\n }\n\n return 0;\n },\n\n screenCommission() {\n if (this.summaryData && this.summaryData.price) {\n return this.summaryData.price.screenCommission;\n }\n\n return 0;\n }\n\n },\n\n mounted() {\n this.customerId = this.$route.query.c === undefined ? null : this.$route.query.c;\n\n if (this.esube != \"yes\") {\n this.getCustomer();\n }\n\n this.getSummary();\n this.isPopupVisible = false;\n\n if (this.$route.query.isReco !== undefined && this.$route.query.isReco == \"yes\") {\n this.isRecomendedPackage = true;\n }\n\n this.isButtonClicked = false;\n },\n\n methods: { ...Object(vuex__WEBPACK_IMPORTED_MODULE_0__[\"mapActions\"])([\"getPackageSummary\", \"getRecommendationSummary\", \"confirm\", \"searchCustomer\", \"getPackageDetail\", \"getMarket\"]),\n\n changeStartDate(value) {\n this.startDateSelection = value.code;\n },\n\n goBack() {\n return this.$router.go(-1);\n },\n\n addCart(purchaseNo) {\n this.getPackageDetail([purchaseNo, this.customerId]).then(() => {\n this.packageDetail = this.getPackageInfo;\n this.getMarket([this.packageDetail.application.applicationId, this.packageDetail.platform.platformId, this.customerId]).then(() => {\n this.marketInfo = this.getMarketInfo;\n });\n this.isPopupVisible = true;\n });\n },\n\n closePopup() {\n if (this.esube != \"yes\") {\n this.getCustomer();\n }\n\n this.getSummary();\n this.isPopupVisible = false;\n },\n\n getCustomer() {\n this.searchCustomer({\n customerNo: this.customerNumber,\n cusId: this.customerId\n }).then(res => {\n if (res) {\n Object(_utils_breadcrumb__WEBPACK_IMPORTED_MODULE_3__[\"getBreadCrumbs\"])({\n breadcrumbs: [\"CustomerDetail\", \"BuyDataPackage\", \"Checkout\"],\n customer: this.customer,\n customerDetail: this.getUserNumber,\n buyDataPackage: this.getUserNumber,\n checkout: this.packageNumber,\n cusId: this.customerId\n });\n }\n });\n },\n\n getSummary() {\n if (this.$route.query.isReco !== undefined && this.$route.query.isReco == \"yes\") {\n this.getRecommendationSummary(this.packageNumber).then(res => {\n if (res) {\n var _this$summaryData, _this$summaryData$pri, _this$summaryData2, _this$summaryData2$pr, _this$summaryData3, _this$summaryData3$pr, _this$summaryData3$pr2, _this$summaryData4, _this$summaryData4$pr, _this$summaryData4$pr2, _this$summaryData5, _this$summaryData5$pr, _this$summaryData5$pr2;\n\n this.summaryData = this.recommendationSummary;\n this.totalFundAmount = (_this$summaryData = this.summaryData) === null || _this$summaryData === void 0 ? void 0 : (_this$summaryData$pri = _this$summaryData.price) === null || _this$summaryData$pri === void 0 ? void 0 : _this$summaryData$pri.totalFundAmount;\n this.totalCommissionAmount = (_this$summaryData2 = this.summaryData) === null || _this$summaryData2 === void 0 ? void 0 : (_this$summaryData2$pr = _this$summaryData2.price) === null || _this$summaryData2$pr === void 0 ? void 0 : _this$summaryData2$pr.totalCommissionAmount;\n this.totalPriceTl = (_this$summaryData3 = this.summaryData) === null || _this$summaryData3 === void 0 ? void 0 : (_this$summaryData3$pr = _this$summaryData3.price) === null || _this$summaryData3$pr === void 0 ? void 0 : (_this$summaryData3$pr2 = _this$summaryData3$pr.prices) === null || _this$summaryData3$pr2 === void 0 ? void 0 : _this$summaryData3$pr2.filter(e => e.info === this.currencySymbol.tl)[0];\n this.totalPriceDollar = (_this$summaryData4 = this.summaryData) === null || _this$summaryData4 === void 0 ? void 0 : (_this$summaryData4$pr = _this$summaryData4.price) === null || _this$summaryData4$pr === void 0 ? void 0 : (_this$summaryData4$pr2 = _this$summaryData4$pr.prices) === null || _this$summaryData4$pr2 === void 0 ? void 0 : _this$summaryData4$pr2.filter(e => e.info === this.currencySymbol.dolar)[0];\n this.totalPriceEuro = (_this$summaryData5 = this.summaryData) === null || _this$summaryData5 === void 0 ? void 0 : (_this$summaryData5$pr = _this$summaryData5.price) === null || _this$summaryData5$pr === void 0 ? void 0 : (_this$summaryData5$pr2 = _this$summaryData5$pr.prices) === null || _this$summaryData5$pr2 === void 0 ? void 0 : _this$summaryData5$pr2.filter(e => e.info === this.currencySymbol.euro)[0];\n\n if (this.recommendationSummary.dateSelection) {\n this.startDateSelection = this.recommendationSummary.dateSelection;\n }\n\n this.IsRecommendationPackage = true;\n }\n });\n } else {\n this.getPackageSummary(this.packageNumber).then(res => {\n if (res) {\n var _this$summaryData6, _this$summaryData6$pa, _this$summaryData7, _this$summaryData7$pa, _this$summaryData8, _this$summaryData8$pr, _this$summaryData9, _this$summaryData9$pr, _this$summaryData10, _this$summaryData10$p, _this$summaryData10$p2, _this$summaryData11, _this$summaryData11$p, _this$summaryData11$p2, _this$summaryData12, _this$summaryData12$p, _this$summaryData12$p2;\n\n this.summaryData = this.packageSummary;\n const isWarningAllowed = (_this$summaryData6 = this.summaryData) === null || _this$summaryData6 === void 0 ? void 0 : (_this$summaryData6$pa = _this$summaryData6.package) === null || _this$summaryData6$pa === void 0 ? void 0 : _this$summaryData6$pa.filter(e => e.perspectiveFeature.name == \"Canlı Piyasa\" || e.perspectiveFeature.name == \"Prime\");\n const hasPriceVal = (_this$summaryData7 = this.summaryData) === null || _this$summaryData7 === void 0 ? void 0 : (_this$summaryData7$pa = _this$summaryData7.package) === null || _this$summaryData7$pa === void 0 ? void 0 : _this$summaryData7$pa.filter(e => e.perspectiveFeature.price != 0);\n if (isWarningAllowed.length && !hasPriceVal.length ? this.isWarningAllowed = false : this.isWarningAllowed = true) ;\n this.totalFundAmount = (_this$summaryData8 = this.summaryData) === null || _this$summaryData8 === void 0 ? void 0 : (_this$summaryData8$pr = _this$summaryData8.price) === null || _this$summaryData8$pr === void 0 ? void 0 : _this$summaryData8$pr.totalFundAmount;\n this.totalCommissionAmount = (_this$summaryData9 = this.summaryData) === null || _this$summaryData9 === void 0 ? void 0 : (_this$summaryData9$pr = _this$summaryData9.price) === null || _this$summaryData9$pr === void 0 ? void 0 : _this$summaryData9$pr.totalCommissionAmount;\n this.totalPriceTl = (_this$summaryData10 = this.summaryData) === null || _this$summaryData10 === void 0 ? void 0 : (_this$summaryData10$p = _this$summaryData10.price) === null || _this$summaryData10$p === void 0 ? void 0 : (_this$summaryData10$p2 = _this$summaryData10$p.prices) === null || _this$summaryData10$p2 === void 0 ? void 0 : _this$summaryData10$p2.filter(e => e.info === this.currencySymbol.tl)[0];\n this.totalPriceDollar = (_this$summaryData11 = this.summaryData) === null || _this$summaryData11 === void 0 ? void 0 : (_this$summaryData11$p = _this$summaryData11.price) === null || _this$summaryData11$p === void 0 ? void 0 : (_this$summaryData11$p2 = _this$summaryData11$p.prices) === null || _this$summaryData11$p2 === void 0 ? void 0 : _this$summaryData11$p2.filter(e => e.info === this.currencySymbol.dolar)[0];\n this.totalPriceEuro = (_this$summaryData12 = this.summaryData) === null || _this$summaryData12 === void 0 ? void 0 : (_this$summaryData12$p = _this$summaryData12.price) === null || _this$summaryData12$p === void 0 ? void 0 : (_this$summaryData12$p2 = _this$summaryData12$p.prices) === null || _this$summaryData12$p2 === void 0 ? void 0 : _this$summaryData12$p2.filter(e => e.info === this.currencySymbol.euro)[0];\n this.startDateSelection = this.packageSummary.dateSelection;\n }\n });\n }\n },\n\n totalPriceCalc() {\n var _this$summaryData13, _this$summaryData13$f, _this$totalPriceDolla, _this$totalPriceEuro, _this$totalPriceEuro2, _this$totalPriceDolla2, _this$totalPriceEuro3, _this$totalPriceTl;\n\n let foreignPricesTL = [];\n let totalSum = 0;\n (_this$summaryData13 = this.summaryData) === null || _this$summaryData13 === void 0 ? void 0 : (_this$summaryData13$f = _this$summaryData13.foreignIndice) === null || _this$summaryData13$f === void 0 ? void 0 : _this$summaryData13$f.forEach(value => {\n if (value.foreignIndiceFeature.priceInfo == \"₺\") {\n foreignPricesTL.push(value.foreignIndiceFeature.price);\n totalSum = foreignPricesTL.reduce(function (a, b) {\n return a + b;\n });\n }\n });\n let totalDollar = this.totalPriceDollar ? \" + $\" + this.formatPriceDollar((_this$totalPriceDolla = this.totalPriceDollar) === null || _this$totalPriceDolla === void 0 ? void 0 : _this$totalPriceDolla.totalPrice) : \"\";\n let totalEuro = (_this$totalPriceEuro = this.totalPriceEuro) !== null && _this$totalPriceEuro !== void 0 && _this$totalPriceEuro.totalPrice ? \" + €\" + this.formatPriceEuro((_this$totalPriceEuro2 = this.totalPriceEuro) === null || _this$totalPriceEuro2 === void 0 ? void 0 : _this$totalPriceEuro2.totalPrice) : \"\";\n\n if (((_this$totalPriceDolla2 = this.totalPriceDollar) === null || _this$totalPriceDolla2 === void 0 ? void 0 : _this$totalPriceDolla2.totalPrice) !== undefined || ((_this$totalPriceEuro3 = this.totalPriceEuro) === null || _this$totalPriceEuro3 === void 0 ? void 0 : _this$totalPriceEuro3.totalPrice) !== undefined) {\n this.haveCurrency = true;\n }\n\n return this.formatPrice(((_this$totalPriceTl = this.totalPriceTl) === null || _this$totalPriceTl === void 0 ? void 0 : _this$totalPriceTl.totalPrice) + totalSum) + this.currencySymbol.tl + totalDollar + totalEuro;\n },\n\n confirmPackage() {\n if (this.startDateSelection === -1) {\n this.$toast.error(\"Lütfen başlangıç zamanı seçiniz\");\n return;\n }\n\n this.isButtonClicked = true;\n const args = {\n dateSelection: parseInt(this.startDateSelection),\n purchaseId: Number(this.packageNumber),\n IsRecommendationPackage: this.IsRecommendationPackage,\n cusId: this.customerId\n };\n this.confirm(args).then(res => {\n if (res.error) {\n this.$toast.error(res.message);\n this.isButtonClicked = false;\n } else {\n if (this.startDateSelection === 0) {\n this.$toast.success(\"Paketiniz en kısa sürede tanımlanacaktır. Kullanıcı adı ve şifre bilgisi gerektiren paketlerde bu bilgiler e-posta ile gönderilmektedir. Lütfen e-posta adresinizde spam klasörünü kontrol ediniz.\");\n } else if (this.startDateSelection === 1) {\n this.$toast.success(\"Paketiniz bir sonraki ay için tanımlanacaktır.\");\n }\n\n this.$router.push({\n name: \"CustomerDetail\",\n params: {\n customerId: this.$route.query.c,\n customerNumber: this.$route.params.customerNumber\n }\n });\n }\n });\n }\n\n }\n});\n\n//# sourceURL=webpack://OsmanliPackage/./src/views/Checkout.vue?./node_modules/cache-loader/dist/cjs.js??ref--13-0!./node_modules/@vue/cli-plugin-babel/node_modules/babel-loader/lib!./node_modules/cache-loader/dist/cjs.js??ref--1-0!./node_modules/@vue/cli-service/node_modules/vue-loader/lib??vue-loader-options");
1830
+ eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var vuex__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! vuex */ \"./node_modules/vuex/dist/vuex.esm.js\");\n/* harmony import */ var _components__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @/components */ \"./src/components/index.js\");\n/* harmony import */ var _components_customer_PackageSettigns_vue__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../components/customer/PackageSettigns.vue */ \"./src/components/customer/PackageSettigns.vue\");\n/* harmony import */ var _utils_breadcrumb__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../utils/breadcrumb */ \"./src/utils/breadcrumb.js\");\n/* harmony import */ var _constants__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../constants */ \"./src/constants/index.js\");\n/* harmony import */ var _utils_tokenTools__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../utils/tokenTools */ \"./src/utils/tokenTools.js\");\n/* harmony import */ var _mixins__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../mixins */ \"./src/mixins/index.js\");\n\n\n\n\n\n\n\n/* harmony default export */ __webpack_exports__[\"default\"] = ({\n name: \"Checkout\",\n components: {\n BaseIcon: _components__WEBPACK_IMPORTED_MODULE_1__[\"BaseIcon\"],\n BaseButton: _components__WEBPACK_IMPORTED_MODULE_1__[\"BaseButton\"],\n BaseSelect: _components__WEBPACK_IMPORTED_MODULE_1__[\"BaseSelect\"],\n InfoArea: _components__WEBPACK_IMPORTED_MODULE_1__[\"InfoArea\"],\n PackageSettigns: _components_customer_PackageSettigns_vue__WEBPACK_IMPORTED_MODULE_2__[\"default\"]\n },\n mixins: [_mixins__WEBPACK_IMPORTED_MODULE_6__[\"default\"]],\n\n data() {\n return {\n summaryData: [],\n totalFundAmount: 0,\n totalCommissionAmount: 0,\n packageDetail: null,\n marketInfo: null,\n isPopupVisible: false,\n isWarningAllowed: false,\n totalPriceTl: [],\n totalPriceDollar: [],\n totalPriceEuro: [],\n totalPrice: 0,\n totalPriceForeign: 0,\n startDateSelection: -1,\n isButtonClicked: true,\n esube: Object(_utils_tokenTools__WEBPACK_IMPORTED_MODULE_5__[\"getItem\"])(\"esube\"),\n IsRecommendationPackage: false,\n infoText: [\"BES ve yatırım fonu büyüklüğü ve/veya komisyon şartı sağlandığı taktirde; o ay toplamda belirtilen ekran ücreti sizden alınmayacaktır.\", \"Faturalandırma sırasında ay sonu Merkez Bankası kuru dikkate alınacaktır.\"],\n startDate: [{\n label: \"Seçiniz\",\n code: -1\n }, {\n label: \"Hemen Şimdi\",\n code: 0\n }, {\n label: \"Ay Başında\",\n code: 1\n }],\n customerId: null,\n haveCurrency: false,\n isRecomendedPackage: false\n };\n },\n\n computed: { ...Object(vuex__WEBPACK_IMPORTED_MODULE_0__[\"mapGetters\"])([\"customer\", \"packageSummary\", \"getPackageInfo\", \"getMarketInfo\", \"getUserInfo\", \"recommendationSummary\"]),\n\n currencySymbol() {\n return _constants__WEBPACK_IMPORTED_MODULE_4__[\"CurrencySymbol\"];\n },\n\n packageNumber() {\n return this.$route.params.packageNumber;\n },\n\n getUserNumber() {\n return this.customer.customerNo;\n },\n\n getUserInfos() {\n return `${this.customer.name} ${this.customer.surName}`;\n },\n\n customerNumber() {\n return this.$route.params.customerNumber;\n },\n\n screenPrice() {\n if (this.summaryData && this.summaryData.price) {\n return this.summaryData.price.screenPrice;\n }\n\n return 0;\n },\n\n screenFund() {\n if (this.summaryData && this.summaryData.price) {\n return this.summaryData.price.screenFund;\n }\n\n return 0;\n },\n\n screenCommission() {\n if (this.summaryData && this.summaryData.price) {\n return this.summaryData.price.screenCommission;\n }\n\n return 0;\n }\n\n },\n\n mounted() {\n this.customerId = this.$route.query.c === undefined ? null : this.$route.query.c;\n\n if (this.esube != \"yes\") {\n this.getCustomer();\n }\n\n this.getSummary();\n this.isPopupVisible = false;\n\n if (this.$route.query.isReco !== undefined && this.$route.query.isReco == \"yes\") {\n this.isRecomendedPackage = true;\n }\n\n this.isButtonClicked = false;\n },\n\n methods: { ...Object(vuex__WEBPACK_IMPORTED_MODULE_0__[\"mapActions\"])([\"getPackageSummary\", \"getRecommendationSummary\", \"confirm\", \"searchCustomer\", \"getPackageDetail\", \"getMarket\"]),\n\n changeStartDate(value) {\n this.startDateSelection = value.code;\n },\n\n goBack() {\n return this.$router.go(-1);\n },\n\n addCart(purchaseNo) {\n this.getPackageDetail([purchaseNo, this.customerId]).then(() => {\n this.packageDetail = this.getPackageInfo;\n this.getMarket([this.packageDetail.application.applicationId, this.packageDetail.platform.platformId, this.customerId]).then(() => {\n this.marketInfo = this.getMarketInfo;\n });\n this.isPopupVisible = true;\n });\n },\n\n closePopup() {\n if (this.esube != \"yes\") {\n this.getCustomer();\n }\n\n this.getSummary();\n this.isPopupVisible = false;\n },\n\n getCustomer() {\n this.searchCustomer({\n customerNo: this.customerNumber,\n cusId: this.customerId\n }).then(res => {\n if (res) {\n Object(_utils_breadcrumb__WEBPACK_IMPORTED_MODULE_3__[\"getBreadCrumbs\"])({\n breadcrumbs: [\"CustomerDetail\", \"BuyDataPackage\", \"Checkout\"],\n customer: this.customer,\n customerDetail: this.getUserNumber,\n buyDataPackage: this.getUserNumber,\n checkout: this.packageNumber,\n cusId: this.customerId\n });\n }\n });\n },\n\n getSummary() {\n if (this.$route.query.isReco !== undefined && this.$route.query.isReco == \"yes\") {\n this.getRecommendationSummary(this.packageNumber).then(res => {\n if (res) {\n var _this$summaryData, _this$summaryData$pac, _this$summaryData2, _this$summaryData2$pa, _this$summaryData3, _this$summaryData3$pr, _this$summaryData4, _this$summaryData4$pr, _this$summaryData5, _this$summaryData5$pr, _this$summaryData5$pr2, _this$summaryData6, _this$summaryData6$pr, _this$summaryData6$pr2, _this$summaryData7, _this$summaryData7$pr, _this$summaryData7$pr2;\n\n this.summaryData = this.recommendationSummary;\n const isWarningAllowed = (_this$summaryData = this.summaryData) === null || _this$summaryData === void 0 ? void 0 : (_this$summaryData$pac = _this$summaryData.package) === null || _this$summaryData$pac === void 0 ? void 0 : _this$summaryData$pac.filter(e => e.perspectiveFeature.name == \"Canlı Piyasa\" || e.perspectiveFeature.name == \"Prime\");\n const hasPriceVal = (_this$summaryData2 = this.summaryData) === null || _this$summaryData2 === void 0 ? void 0 : (_this$summaryData2$pa = _this$summaryData2.package) === null || _this$summaryData2$pa === void 0 ? void 0 : _this$summaryData2$pa.filter(e => e.perspectiveFeature.price != 0);\n if (isWarningAllowed.length && !hasPriceVal.length ? this.isWarningAllowed = false : this.isWarningAllowed = true) ;\n this.totalFundAmount = (_this$summaryData3 = this.summaryData) === null || _this$summaryData3 === void 0 ? void 0 : (_this$summaryData3$pr = _this$summaryData3.price) === null || _this$summaryData3$pr === void 0 ? void 0 : _this$summaryData3$pr.totalFundAmount;\n this.totalCommissionAmount = (_this$summaryData4 = this.summaryData) === null || _this$summaryData4 === void 0 ? void 0 : (_this$summaryData4$pr = _this$summaryData4.price) === null || _this$summaryData4$pr === void 0 ? void 0 : _this$summaryData4$pr.totalCommissionAmount;\n this.totalPriceTl = (_this$summaryData5 = this.summaryData) === null || _this$summaryData5 === void 0 ? void 0 : (_this$summaryData5$pr = _this$summaryData5.price) === null || _this$summaryData5$pr === void 0 ? void 0 : (_this$summaryData5$pr2 = _this$summaryData5$pr.prices) === null || _this$summaryData5$pr2 === void 0 ? void 0 : _this$summaryData5$pr2.filter(e => e.info === this.currencySymbol.tl)[0];\n this.totalPriceDollar = (_this$summaryData6 = this.summaryData) === null || _this$summaryData6 === void 0 ? void 0 : (_this$summaryData6$pr = _this$summaryData6.price) === null || _this$summaryData6$pr === void 0 ? void 0 : (_this$summaryData6$pr2 = _this$summaryData6$pr.prices) === null || _this$summaryData6$pr2 === void 0 ? void 0 : _this$summaryData6$pr2.filter(e => e.info === this.currencySymbol.dolar)[0];\n this.totalPriceEuro = (_this$summaryData7 = this.summaryData) === null || _this$summaryData7 === void 0 ? void 0 : (_this$summaryData7$pr = _this$summaryData7.price) === null || _this$summaryData7$pr === void 0 ? void 0 : (_this$summaryData7$pr2 = _this$summaryData7$pr.prices) === null || _this$summaryData7$pr2 === void 0 ? void 0 : _this$summaryData7$pr2.filter(e => e.info === this.currencySymbol.euro)[0];\n\n if (this.recommendationSummary.dateSelection) {\n this.startDateSelection = this.recommendationSummary.dateSelection;\n }\n\n this.IsRecommendationPackage = true;\n }\n });\n } else {\n this.getPackageSummary(this.packageNumber).then(res => {\n if (res) {\n var _this$summaryData8, _this$summaryData8$pa, _this$summaryData9, _this$summaryData9$pa, _this$summaryData10, _this$summaryData10$p, _this$summaryData11, _this$summaryData11$p, _this$summaryData12, _this$summaryData12$p, _this$summaryData12$p2, _this$summaryData13, _this$summaryData13$p, _this$summaryData13$p2, _this$summaryData14, _this$summaryData14$p, _this$summaryData14$p2;\n\n this.summaryData = this.packageSummary;\n const isWarningAllowed = (_this$summaryData8 = this.summaryData) === null || _this$summaryData8 === void 0 ? void 0 : (_this$summaryData8$pa = _this$summaryData8.package) === null || _this$summaryData8$pa === void 0 ? void 0 : _this$summaryData8$pa.filter(e => e.perspectiveFeature.name == \"Canlı Piyasa\" || e.perspectiveFeature.name == \"Prime\");\n const hasPriceVal = (_this$summaryData9 = this.summaryData) === null || _this$summaryData9 === void 0 ? void 0 : (_this$summaryData9$pa = _this$summaryData9.package) === null || _this$summaryData9$pa === void 0 ? void 0 : _this$summaryData9$pa.filter(e => e.perspectiveFeature.price != 0);\n if (isWarningAllowed.length && !hasPriceVal.length ? this.isWarningAllowed = false : this.isWarningAllowed = true) ;\n this.totalFundAmount = (_this$summaryData10 = this.summaryData) === null || _this$summaryData10 === void 0 ? void 0 : (_this$summaryData10$p = _this$summaryData10.price) === null || _this$summaryData10$p === void 0 ? void 0 : _this$summaryData10$p.totalFundAmount;\n this.totalCommissionAmount = (_this$summaryData11 = this.summaryData) === null || _this$summaryData11 === void 0 ? void 0 : (_this$summaryData11$p = _this$summaryData11.price) === null || _this$summaryData11$p === void 0 ? void 0 : _this$summaryData11$p.totalCommissionAmount;\n this.totalPriceTl = (_this$summaryData12 = this.summaryData) === null || _this$summaryData12 === void 0 ? void 0 : (_this$summaryData12$p = _this$summaryData12.price) === null || _this$summaryData12$p === void 0 ? void 0 : (_this$summaryData12$p2 = _this$summaryData12$p.prices) === null || _this$summaryData12$p2 === void 0 ? void 0 : _this$summaryData12$p2.filter(e => e.info === this.currencySymbol.tl)[0];\n this.totalPriceDollar = (_this$summaryData13 = this.summaryData) === null || _this$summaryData13 === void 0 ? void 0 : (_this$summaryData13$p = _this$summaryData13.price) === null || _this$summaryData13$p === void 0 ? void 0 : (_this$summaryData13$p2 = _this$summaryData13$p.prices) === null || _this$summaryData13$p2 === void 0 ? void 0 : _this$summaryData13$p2.filter(e => e.info === this.currencySymbol.dolar)[0];\n this.totalPriceEuro = (_this$summaryData14 = this.summaryData) === null || _this$summaryData14 === void 0 ? void 0 : (_this$summaryData14$p = _this$summaryData14.price) === null || _this$summaryData14$p === void 0 ? void 0 : (_this$summaryData14$p2 = _this$summaryData14$p.prices) === null || _this$summaryData14$p2 === void 0 ? void 0 : _this$summaryData14$p2.filter(e => e.info === this.currencySymbol.euro)[0];\n this.startDateSelection = this.packageSummary.dateSelection;\n }\n });\n }\n },\n\n totalPriceCalc() {\n var _this$summaryData15, _this$summaryData15$f, _this$totalPriceDolla, _this$totalPriceEuro, _this$totalPriceEuro2, _this$totalPriceDolla2, _this$totalPriceEuro3, _this$totalPriceTl;\n\n let foreignPricesTL = [];\n let totalSum = 0;\n (_this$summaryData15 = this.summaryData) === null || _this$summaryData15 === void 0 ? void 0 : (_this$summaryData15$f = _this$summaryData15.foreignIndice) === null || _this$summaryData15$f === void 0 ? void 0 : _this$summaryData15$f.forEach(value => {\n if (value.foreignIndiceFeature.priceInfo == \"₺\") {\n foreignPricesTL.push(value.foreignIndiceFeature.price);\n totalSum = foreignPricesTL.reduce(function (a, b) {\n return a + b;\n });\n }\n });\n let totalDollar = this.totalPriceDollar ? \" + $\" + this.formatPriceDollar((_this$totalPriceDolla = this.totalPriceDollar) === null || _this$totalPriceDolla === void 0 ? void 0 : _this$totalPriceDolla.totalPrice) : \"\";\n let totalEuro = (_this$totalPriceEuro = this.totalPriceEuro) !== null && _this$totalPriceEuro !== void 0 && _this$totalPriceEuro.totalPrice ? \" + €\" + this.formatPriceEuro((_this$totalPriceEuro2 = this.totalPriceEuro) === null || _this$totalPriceEuro2 === void 0 ? void 0 : _this$totalPriceEuro2.totalPrice) : \"\";\n\n if (((_this$totalPriceDolla2 = this.totalPriceDollar) === null || _this$totalPriceDolla2 === void 0 ? void 0 : _this$totalPriceDolla2.totalPrice) !== undefined || ((_this$totalPriceEuro3 = this.totalPriceEuro) === null || _this$totalPriceEuro3 === void 0 ? void 0 : _this$totalPriceEuro3.totalPrice) !== undefined) {\n this.haveCurrency = true;\n }\n\n return this.formatPrice(((_this$totalPriceTl = this.totalPriceTl) === null || _this$totalPriceTl === void 0 ? void 0 : _this$totalPriceTl.totalPrice) + totalSum) + this.currencySymbol.tl + totalDollar + totalEuro;\n },\n\n confirmPackage() {\n if (this.startDateSelection === -1) {\n this.$toast.error(\"Lütfen başlangıç zamanı seçiniz\");\n return;\n }\n\n this.isButtonClicked = true;\n const args = {\n dateSelection: parseInt(this.startDateSelection),\n purchaseId: Number(this.packageNumber),\n IsRecommendationPackage: this.IsRecommendationPackage,\n cusId: this.customerId\n };\n this.confirm(args).then(res => {\n if (res.error) {\n this.$toast.error(res.message);\n this.isButtonClicked = false;\n } else {\n if (this.startDateSelection === 0) {\n this.$toast.success(\"Paketiniz en kısa sürede tanımlanacaktır. Kullanıcı adı ve şifre bilgisi gerektiren paketlerde bu bilgiler e-posta ile gönderilmektedir. Lütfen e-posta adresinizde spam klasörünü kontrol ediniz.\");\n } else if (this.startDateSelection === 1) {\n this.$toast.success(\"Paketiniz bir sonraki ay için tanımlanacaktır.\");\n }\n\n this.$router.push({\n name: \"CustomerDetail\",\n params: {\n customerId: this.$route.query.c,\n customerNumber: this.$route.params.customerNumber\n }\n });\n }\n });\n }\n\n }\n});\n\n//# sourceURL=webpack://OsmanliPackage/./src/views/Checkout.vue?./node_modules/cache-loader/dist/cjs.js??ref--13-0!./node_modules/@vue/cli-plugin-babel/node_modules/babel-loader/lib!./node_modules/cache-loader/dist/cjs.js??ref--1-0!./node_modules/@vue/cli-service/node_modules/vue-loader/lib??vue-loader-options");
1831
1831
 
1832
1832
  /***/ }),
1833
1833
 
@@ -1836,7 +1836,7 @@ eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var vuex
1836
1836
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
1837
1837
 
1838
1838
  "use strict";
1839
- eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var vuex__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! vuex */ \"./node_modules/vuex/dist/vuex.esm.js\");\n/* harmony import */ var _components__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @/components */ \"./src/components/index.js\");\n/* harmony import */ var _components_customer_PackageSettigns_vue__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../components/customer/PackageSettigns.vue */ \"./src/components/customer/PackageSettigns.vue\");\n/* harmony import */ var _utils_breadcrumb__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../utils/breadcrumb */ \"./src/utils/breadcrumb.js\");\n/* harmony import */ var _constants__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../constants */ \"./src/constants/index.js\");\n/* harmony import */ var _utils_tokenTools__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../utils/tokenTools */ \"./src/utils/tokenTools.js\");\n/* harmony import */ var _mixins__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../mixins */ \"./src/mixins/index.js\");\n\n\n\n\n\n\n\n/* harmony default export */ __webpack_exports__[\"default\"] = ({\n name: \"Checkout\",\n components: {\n BaseIcon: _components__WEBPACK_IMPORTED_MODULE_1__[\"BaseIcon\"],\n BaseButton: _components__WEBPACK_IMPORTED_MODULE_1__[\"BaseButton\"],\n BaseSelect: _components__WEBPACK_IMPORTED_MODULE_1__[\"BaseSelect\"],\n InfoArea: _components__WEBPACK_IMPORTED_MODULE_1__[\"InfoArea\"],\n PackageSettigns: _components_customer_PackageSettigns_vue__WEBPACK_IMPORTED_MODULE_2__[\"default\"]\n },\n mixins: [_mixins__WEBPACK_IMPORTED_MODULE_6__[\"default\"]],\n\n data() {\n return {\n summaryData: [],\n totalFundAmount: 0,\n totalCommissionAmount: 0,\n packageDetail: null,\n marketInfo: null,\n isPopupVisible: false,\n isWarningAllowed: false,\n totalPriceTl: [],\n totalPriceDollar: [],\n totalPriceEuro: [],\n totalPrice: 0,\n totalPriceForeign: 0,\n startDateSelection: -1,\n isButtonClicked: true,\n esube: Object(_utils_tokenTools__WEBPACK_IMPORTED_MODULE_5__[\"getItem\"])(\"esube\"),\n IsRecommendationPackage: false,\n infoText: [\"BES ve yatırım fonu büyüklüğü ve/veya komisyon şartı sağlandığı taktirde; o ay toplamda belirtilen ekran ücreti sizden alınmayacaktır.\", \"Faturalandırma sırasında ay sonu Merkez Bankası kuru dikkate alınacaktır.\"],\n startDate: [{\n label: \"Seçiniz\",\n code: -1\n }, {\n label: \"Hemen Şimdi\",\n code: 0\n }, {\n label: \"Ay Başında\",\n code: 1\n }],\n customerId: null,\n haveCurrency: false,\n isRecomendedPackage: false\n };\n },\n\n computed: { ...Object(vuex__WEBPACK_IMPORTED_MODULE_0__[\"mapGetters\"])([\"customer\", \"packageSummary\", \"getPackageInfo\", \"getMarketInfo\", \"getUserInfo\", \"recommendationSummary\"]),\n\n currencySymbol() {\n return _constants__WEBPACK_IMPORTED_MODULE_4__[\"CurrencySymbol\"];\n },\n\n packageNumber() {\n return this.$route.params.packageNumber;\n },\n\n getUserNumber() {\n return this.customer.customerNo;\n },\n\n getUserInfos() {\n return `${this.customer.name} ${this.customer.surName}`;\n },\n\n customerNumber() {\n return this.$route.params.customerNumber;\n },\n\n screenPrice() {\n if (this.summaryData && this.summaryData.price) {\n return this.summaryData.price.screenPrice;\n }\n\n return 0;\n },\n\n screenFund() {\n if (this.summaryData && this.summaryData.price) {\n return this.summaryData.price.screenFund;\n }\n\n return 0;\n },\n\n screenCommission() {\n if (this.summaryData && this.summaryData.price) {\n return this.summaryData.price.screenCommission;\n }\n\n return 0;\n }\n\n },\n\n mounted() {\n this.customerId = this.$route.query.c === undefined ? null : this.$route.query.c;\n\n if (this.esube != \"yes\") {\n this.getCustomer();\n }\n\n this.getSummary();\n this.isPopupVisible = false;\n\n if (this.$route.query.isReco !== undefined && this.$route.query.isReco == \"yes\") {\n this.isRecomendedPackage = true;\n }\n\n this.isButtonClicked = false;\n },\n\n methods: { ...Object(vuex__WEBPACK_IMPORTED_MODULE_0__[\"mapActions\"])([\"getPackageSummary\", \"getRecommendationSummary\", \"confirm\", \"searchCustomer\", \"getPackageDetail\", \"getMarket\"]),\n\n changeStartDate(value) {\n this.startDateSelection = value.code;\n },\n\n goBack() {\n return this.$router.go(-1);\n },\n\n addCart(purchaseNo) {\n this.getPackageDetail([purchaseNo, this.customerId]).then(() => {\n this.packageDetail = this.getPackageInfo;\n this.getMarket([this.packageDetail.application.applicationId, this.packageDetail.platform.platformId, this.customerId]).then(() => {\n this.marketInfo = this.getMarketInfo;\n });\n this.isPopupVisible = true;\n });\n },\n\n closePopup() {\n if (this.esube != \"yes\") {\n this.getCustomer();\n }\n\n this.getSummary();\n this.isPopupVisible = false;\n },\n\n getCustomer() {\n this.searchCustomer({\n customerNo: this.customerNumber,\n cusId: this.customerId\n }).then(res => {\n if (res) {\n Object(_utils_breadcrumb__WEBPACK_IMPORTED_MODULE_3__[\"getBreadCrumbs\"])({\n breadcrumbs: [\"CustomerDetail\", \"BuyDataPackage\", \"Checkout\"],\n customer: this.customer,\n customerDetail: this.getUserNumber,\n buyDataPackage: this.getUserNumber,\n checkout: this.packageNumber,\n cusId: this.customerId\n });\n }\n });\n },\n\n getSummary() {\n if (this.$route.query.isReco !== undefined && this.$route.query.isReco == \"yes\") {\n this.getRecommendationSummary(this.packageNumber).then(res => {\n if (res) {\n var _this$summaryData, _this$summaryData$pri, _this$summaryData2, _this$summaryData2$pr, _this$summaryData3, _this$summaryData3$pr, _this$summaryData3$pr2, _this$summaryData4, _this$summaryData4$pr, _this$summaryData4$pr2, _this$summaryData5, _this$summaryData5$pr, _this$summaryData5$pr2;\n\n this.summaryData = this.recommendationSummary;\n this.totalFundAmount = (_this$summaryData = this.summaryData) === null || _this$summaryData === void 0 ? void 0 : (_this$summaryData$pri = _this$summaryData.price) === null || _this$summaryData$pri === void 0 ? void 0 : _this$summaryData$pri.totalFundAmount;\n this.totalCommissionAmount = (_this$summaryData2 = this.summaryData) === null || _this$summaryData2 === void 0 ? void 0 : (_this$summaryData2$pr = _this$summaryData2.price) === null || _this$summaryData2$pr === void 0 ? void 0 : _this$summaryData2$pr.totalCommissionAmount;\n this.totalPriceTl = (_this$summaryData3 = this.summaryData) === null || _this$summaryData3 === void 0 ? void 0 : (_this$summaryData3$pr = _this$summaryData3.price) === null || _this$summaryData3$pr === void 0 ? void 0 : (_this$summaryData3$pr2 = _this$summaryData3$pr.prices) === null || _this$summaryData3$pr2 === void 0 ? void 0 : _this$summaryData3$pr2.filter(e => e.info === this.currencySymbol.tl)[0];\n this.totalPriceDollar = (_this$summaryData4 = this.summaryData) === null || _this$summaryData4 === void 0 ? void 0 : (_this$summaryData4$pr = _this$summaryData4.price) === null || _this$summaryData4$pr === void 0 ? void 0 : (_this$summaryData4$pr2 = _this$summaryData4$pr.prices) === null || _this$summaryData4$pr2 === void 0 ? void 0 : _this$summaryData4$pr2.filter(e => e.info === this.currencySymbol.dolar)[0];\n this.totalPriceEuro = (_this$summaryData5 = this.summaryData) === null || _this$summaryData5 === void 0 ? void 0 : (_this$summaryData5$pr = _this$summaryData5.price) === null || _this$summaryData5$pr === void 0 ? void 0 : (_this$summaryData5$pr2 = _this$summaryData5$pr.prices) === null || _this$summaryData5$pr2 === void 0 ? void 0 : _this$summaryData5$pr2.filter(e => e.info === this.currencySymbol.euro)[0];\n\n if (this.recommendationSummary.dateSelection) {\n this.startDateSelection = this.recommendationSummary.dateSelection;\n }\n\n this.IsRecommendationPackage = true;\n }\n });\n } else {\n this.getPackageSummary(this.packageNumber).then(res => {\n if (res) {\n var _this$summaryData6, _this$summaryData6$pa, _this$summaryData7, _this$summaryData7$pa, _this$summaryData8, _this$summaryData8$pr, _this$summaryData9, _this$summaryData9$pr, _this$summaryData10, _this$summaryData10$p, _this$summaryData10$p2, _this$summaryData11, _this$summaryData11$p, _this$summaryData11$p2, _this$summaryData12, _this$summaryData12$p, _this$summaryData12$p2;\n\n this.summaryData = this.packageSummary;\n const isWarningAllowed = (_this$summaryData6 = this.summaryData) === null || _this$summaryData6 === void 0 ? void 0 : (_this$summaryData6$pa = _this$summaryData6.package) === null || _this$summaryData6$pa === void 0 ? void 0 : _this$summaryData6$pa.filter(e => e.perspectiveFeature.name == \"Canlı Piyasa\" || e.perspectiveFeature.name == \"Prime\");\n const hasPriceVal = (_this$summaryData7 = this.summaryData) === null || _this$summaryData7 === void 0 ? void 0 : (_this$summaryData7$pa = _this$summaryData7.package) === null || _this$summaryData7$pa === void 0 ? void 0 : _this$summaryData7$pa.filter(e => e.perspectiveFeature.price != 0);\n if (isWarningAllowed.length && !hasPriceVal.length ? this.isWarningAllowed = false : this.isWarningAllowed = true) ;\n this.totalFundAmount = (_this$summaryData8 = this.summaryData) === null || _this$summaryData8 === void 0 ? void 0 : (_this$summaryData8$pr = _this$summaryData8.price) === null || _this$summaryData8$pr === void 0 ? void 0 : _this$summaryData8$pr.totalFundAmount;\n this.totalCommissionAmount = (_this$summaryData9 = this.summaryData) === null || _this$summaryData9 === void 0 ? void 0 : (_this$summaryData9$pr = _this$summaryData9.price) === null || _this$summaryData9$pr === void 0 ? void 0 : _this$summaryData9$pr.totalCommissionAmount;\n this.totalPriceTl = (_this$summaryData10 = this.summaryData) === null || _this$summaryData10 === void 0 ? void 0 : (_this$summaryData10$p = _this$summaryData10.price) === null || _this$summaryData10$p === void 0 ? void 0 : (_this$summaryData10$p2 = _this$summaryData10$p.prices) === null || _this$summaryData10$p2 === void 0 ? void 0 : _this$summaryData10$p2.filter(e => e.info === this.currencySymbol.tl)[0];\n this.totalPriceDollar = (_this$summaryData11 = this.summaryData) === null || _this$summaryData11 === void 0 ? void 0 : (_this$summaryData11$p = _this$summaryData11.price) === null || _this$summaryData11$p === void 0 ? void 0 : (_this$summaryData11$p2 = _this$summaryData11$p.prices) === null || _this$summaryData11$p2 === void 0 ? void 0 : _this$summaryData11$p2.filter(e => e.info === this.currencySymbol.dolar)[0];\n this.totalPriceEuro = (_this$summaryData12 = this.summaryData) === null || _this$summaryData12 === void 0 ? void 0 : (_this$summaryData12$p = _this$summaryData12.price) === null || _this$summaryData12$p === void 0 ? void 0 : (_this$summaryData12$p2 = _this$summaryData12$p.prices) === null || _this$summaryData12$p2 === void 0 ? void 0 : _this$summaryData12$p2.filter(e => e.info === this.currencySymbol.euro)[0];\n this.startDateSelection = this.packageSummary.dateSelection;\n }\n });\n }\n },\n\n totalPriceCalc() {\n var _this$summaryData13, _this$summaryData13$f, _this$totalPriceDolla, _this$totalPriceEuro, _this$totalPriceEuro2, _this$totalPriceDolla2, _this$totalPriceEuro3, _this$totalPriceTl;\n\n let foreignPricesTL = [];\n let totalSum = 0;\n (_this$summaryData13 = this.summaryData) === null || _this$summaryData13 === void 0 ? void 0 : (_this$summaryData13$f = _this$summaryData13.foreignIndice) === null || _this$summaryData13$f === void 0 ? void 0 : _this$summaryData13$f.forEach(value => {\n if (value.foreignIndiceFeature.priceInfo == \"₺\") {\n foreignPricesTL.push(value.foreignIndiceFeature.price);\n totalSum = foreignPricesTL.reduce(function (a, b) {\n return a + b;\n });\n }\n });\n let totalDollar = this.totalPriceDollar ? \" + $\" + this.formatPriceDollar((_this$totalPriceDolla = this.totalPriceDollar) === null || _this$totalPriceDolla === void 0 ? void 0 : _this$totalPriceDolla.totalPrice) : \"\";\n let totalEuro = (_this$totalPriceEuro = this.totalPriceEuro) !== null && _this$totalPriceEuro !== void 0 && _this$totalPriceEuro.totalPrice ? \" + €\" + this.formatPriceEuro((_this$totalPriceEuro2 = this.totalPriceEuro) === null || _this$totalPriceEuro2 === void 0 ? void 0 : _this$totalPriceEuro2.totalPrice) : \"\";\n\n if (((_this$totalPriceDolla2 = this.totalPriceDollar) === null || _this$totalPriceDolla2 === void 0 ? void 0 : _this$totalPriceDolla2.totalPrice) !== undefined || ((_this$totalPriceEuro3 = this.totalPriceEuro) === null || _this$totalPriceEuro3 === void 0 ? void 0 : _this$totalPriceEuro3.totalPrice) !== undefined) {\n this.haveCurrency = true;\n }\n\n return this.formatPrice(((_this$totalPriceTl = this.totalPriceTl) === null || _this$totalPriceTl === void 0 ? void 0 : _this$totalPriceTl.totalPrice) + totalSum) + this.currencySymbol.tl + totalDollar + totalEuro;\n },\n\n confirmPackage() {\n if (this.startDateSelection === -1) {\n this.$toast.error(\"Lütfen başlangıç zamanı seçiniz\");\n return;\n }\n\n this.isButtonClicked = true;\n const args = {\n dateSelection: parseInt(this.startDateSelection),\n purchaseId: Number(this.packageNumber),\n IsRecommendationPackage: this.IsRecommendationPackage,\n cusId: this.customerId\n };\n this.confirm(args).then(res => {\n if (res.error) {\n this.$toast.error(res.message);\n this.isButtonClicked = false;\n } else {\n if (this.startDateSelection === 0) {\n this.$toast.success(\"Paketiniz en kısa sürede tanımlanacaktır. Kullanıcı adı ve şifre bilgisi gerektiren paketlerde bu bilgiler e-posta ile gönderilmektedir. Lütfen e-posta adresinizde spam klasörünü kontrol ediniz.\");\n } else if (this.startDateSelection === 1) {\n this.$toast.success(\"Paketiniz bir sonraki ay için tanımlanacaktır.\");\n }\n\n this.$router.push({\n name: \"CustomerDetail\",\n params: {\n customerId: this.$route.query.c,\n customerNumber: this.$route.params.customerNumber\n }\n });\n }\n });\n }\n\n }\n});\n\n//# sourceURL=webpack://OsmanliPackage/./src/views/Checkout.vue?./node_modules/cache-loader/dist/cjs.js??ref--13-0!./node_modules/@vue/cli-plugin-babel/node_modules/babel-loader/lib!./node_modules/cache-loader/dist/cjs.js??ref--1-0!./node_modules/@vue/cli-service/node_modules/vue-loader/lib??vue-loader-options");
1839
+ eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var vuex__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! vuex */ \"./node_modules/vuex/dist/vuex.esm.js\");\n/* harmony import */ var _components__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @/components */ \"./src/components/index.js\");\n/* harmony import */ var _components_customer_PackageSettigns_vue__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../components/customer/PackageSettigns.vue */ \"./src/components/customer/PackageSettigns.vue\");\n/* harmony import */ var _utils_breadcrumb__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../utils/breadcrumb */ \"./src/utils/breadcrumb.js\");\n/* harmony import */ var _constants__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../constants */ \"./src/constants/index.js\");\n/* harmony import */ var _utils_tokenTools__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../utils/tokenTools */ \"./src/utils/tokenTools.js\");\n/* harmony import */ var _mixins__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../mixins */ \"./src/mixins/index.js\");\n\n\n\n\n\n\n\n/* harmony default export */ __webpack_exports__[\"default\"] = ({\n name: \"Checkout\",\n components: {\n BaseIcon: _components__WEBPACK_IMPORTED_MODULE_1__[\"BaseIcon\"],\n BaseButton: _components__WEBPACK_IMPORTED_MODULE_1__[\"BaseButton\"],\n BaseSelect: _components__WEBPACK_IMPORTED_MODULE_1__[\"BaseSelect\"],\n InfoArea: _components__WEBPACK_IMPORTED_MODULE_1__[\"InfoArea\"],\n PackageSettigns: _components_customer_PackageSettigns_vue__WEBPACK_IMPORTED_MODULE_2__[\"default\"]\n },\n mixins: [_mixins__WEBPACK_IMPORTED_MODULE_6__[\"default\"]],\n\n data() {\n return {\n summaryData: [],\n totalFundAmount: 0,\n totalCommissionAmount: 0,\n packageDetail: null,\n marketInfo: null,\n isPopupVisible: false,\n isWarningAllowed: false,\n totalPriceTl: [],\n totalPriceDollar: [],\n totalPriceEuro: [],\n totalPrice: 0,\n totalPriceForeign: 0,\n startDateSelection: -1,\n isButtonClicked: true,\n esube: Object(_utils_tokenTools__WEBPACK_IMPORTED_MODULE_5__[\"getItem\"])(\"esube\"),\n IsRecommendationPackage: false,\n infoText: [\"BES ve yatırım fonu büyüklüğü ve/veya komisyon şartı sağlandığı taktirde; o ay toplamda belirtilen ekran ücreti sizden alınmayacaktır.\", \"Faturalandırma sırasında ay sonu Merkez Bankası kuru dikkate alınacaktır.\"],\n startDate: [{\n label: \"Seçiniz\",\n code: -1\n }, {\n label: \"Hemen Şimdi\",\n code: 0\n }, {\n label: \"Ay Başında\",\n code: 1\n }],\n customerId: null,\n haveCurrency: false,\n isRecomendedPackage: false\n };\n },\n\n computed: { ...Object(vuex__WEBPACK_IMPORTED_MODULE_0__[\"mapGetters\"])([\"customer\", \"packageSummary\", \"getPackageInfo\", \"getMarketInfo\", \"getUserInfo\", \"recommendationSummary\"]),\n\n currencySymbol() {\n return _constants__WEBPACK_IMPORTED_MODULE_4__[\"CurrencySymbol\"];\n },\n\n packageNumber() {\n return this.$route.params.packageNumber;\n },\n\n getUserNumber() {\n return this.customer.customerNo;\n },\n\n getUserInfos() {\n return `${this.customer.name} ${this.customer.surName}`;\n },\n\n customerNumber() {\n return this.$route.params.customerNumber;\n },\n\n screenPrice() {\n if (this.summaryData && this.summaryData.price) {\n return this.summaryData.price.screenPrice;\n }\n\n return 0;\n },\n\n screenFund() {\n if (this.summaryData && this.summaryData.price) {\n return this.summaryData.price.screenFund;\n }\n\n return 0;\n },\n\n screenCommission() {\n if (this.summaryData && this.summaryData.price) {\n return this.summaryData.price.screenCommission;\n }\n\n return 0;\n }\n\n },\n\n mounted() {\n this.customerId = this.$route.query.c === undefined ? null : this.$route.query.c;\n\n if (this.esube != \"yes\") {\n this.getCustomer();\n }\n\n this.getSummary();\n this.isPopupVisible = false;\n\n if (this.$route.query.isReco !== undefined && this.$route.query.isReco == \"yes\") {\n this.isRecomendedPackage = true;\n }\n\n this.isButtonClicked = false;\n },\n\n methods: { ...Object(vuex__WEBPACK_IMPORTED_MODULE_0__[\"mapActions\"])([\"getPackageSummary\", \"getRecommendationSummary\", \"confirm\", \"searchCustomer\", \"getPackageDetail\", \"getMarket\"]),\n\n changeStartDate(value) {\n this.startDateSelection = value.code;\n },\n\n goBack() {\n return this.$router.go(-1);\n },\n\n addCart(purchaseNo) {\n this.getPackageDetail([purchaseNo, this.customerId]).then(() => {\n this.packageDetail = this.getPackageInfo;\n this.getMarket([this.packageDetail.application.applicationId, this.packageDetail.platform.platformId, this.customerId]).then(() => {\n this.marketInfo = this.getMarketInfo;\n });\n this.isPopupVisible = true;\n });\n },\n\n closePopup() {\n if (this.esube != \"yes\") {\n this.getCustomer();\n }\n\n this.getSummary();\n this.isPopupVisible = false;\n },\n\n getCustomer() {\n this.searchCustomer({\n customerNo: this.customerNumber,\n cusId: this.customerId\n }).then(res => {\n if (res) {\n Object(_utils_breadcrumb__WEBPACK_IMPORTED_MODULE_3__[\"getBreadCrumbs\"])({\n breadcrumbs: [\"CustomerDetail\", \"BuyDataPackage\", \"Checkout\"],\n customer: this.customer,\n customerDetail: this.getUserNumber,\n buyDataPackage: this.getUserNumber,\n checkout: this.packageNumber,\n cusId: this.customerId\n });\n }\n });\n },\n\n getSummary() {\n if (this.$route.query.isReco !== undefined && this.$route.query.isReco == \"yes\") {\n this.getRecommendationSummary(this.packageNumber).then(res => {\n if (res) {\n var _this$summaryData, _this$summaryData$pac, _this$summaryData2, _this$summaryData2$pa, _this$summaryData3, _this$summaryData3$pr, _this$summaryData4, _this$summaryData4$pr, _this$summaryData5, _this$summaryData5$pr, _this$summaryData5$pr2, _this$summaryData6, _this$summaryData6$pr, _this$summaryData6$pr2, _this$summaryData7, _this$summaryData7$pr, _this$summaryData7$pr2;\n\n this.summaryData = this.recommendationSummary;\n const isWarningAllowed = (_this$summaryData = this.summaryData) === null || _this$summaryData === void 0 ? void 0 : (_this$summaryData$pac = _this$summaryData.package) === null || _this$summaryData$pac === void 0 ? void 0 : _this$summaryData$pac.filter(e => e.perspectiveFeature.name == \"Canlı Piyasa\" || e.perspectiveFeature.name == \"Prime\");\n const hasPriceVal = (_this$summaryData2 = this.summaryData) === null || _this$summaryData2 === void 0 ? void 0 : (_this$summaryData2$pa = _this$summaryData2.package) === null || _this$summaryData2$pa === void 0 ? void 0 : _this$summaryData2$pa.filter(e => e.perspectiveFeature.price != 0);\n if (isWarningAllowed.length && !hasPriceVal.length ? this.isWarningAllowed = false : this.isWarningAllowed = true) ;\n this.totalFundAmount = (_this$summaryData3 = this.summaryData) === null || _this$summaryData3 === void 0 ? void 0 : (_this$summaryData3$pr = _this$summaryData3.price) === null || _this$summaryData3$pr === void 0 ? void 0 : _this$summaryData3$pr.totalFundAmount;\n this.totalCommissionAmount = (_this$summaryData4 = this.summaryData) === null || _this$summaryData4 === void 0 ? void 0 : (_this$summaryData4$pr = _this$summaryData4.price) === null || _this$summaryData4$pr === void 0 ? void 0 : _this$summaryData4$pr.totalCommissionAmount;\n this.totalPriceTl = (_this$summaryData5 = this.summaryData) === null || _this$summaryData5 === void 0 ? void 0 : (_this$summaryData5$pr = _this$summaryData5.price) === null || _this$summaryData5$pr === void 0 ? void 0 : (_this$summaryData5$pr2 = _this$summaryData5$pr.prices) === null || _this$summaryData5$pr2 === void 0 ? void 0 : _this$summaryData5$pr2.filter(e => e.info === this.currencySymbol.tl)[0];\n this.totalPriceDollar = (_this$summaryData6 = this.summaryData) === null || _this$summaryData6 === void 0 ? void 0 : (_this$summaryData6$pr = _this$summaryData6.price) === null || _this$summaryData6$pr === void 0 ? void 0 : (_this$summaryData6$pr2 = _this$summaryData6$pr.prices) === null || _this$summaryData6$pr2 === void 0 ? void 0 : _this$summaryData6$pr2.filter(e => e.info === this.currencySymbol.dolar)[0];\n this.totalPriceEuro = (_this$summaryData7 = this.summaryData) === null || _this$summaryData7 === void 0 ? void 0 : (_this$summaryData7$pr = _this$summaryData7.price) === null || _this$summaryData7$pr === void 0 ? void 0 : (_this$summaryData7$pr2 = _this$summaryData7$pr.prices) === null || _this$summaryData7$pr2 === void 0 ? void 0 : _this$summaryData7$pr2.filter(e => e.info === this.currencySymbol.euro)[0];\n\n if (this.recommendationSummary.dateSelection) {\n this.startDateSelection = this.recommendationSummary.dateSelection;\n }\n\n this.IsRecommendationPackage = true;\n }\n });\n } else {\n this.getPackageSummary(this.packageNumber).then(res => {\n if (res) {\n var _this$summaryData8, _this$summaryData8$pa, _this$summaryData9, _this$summaryData9$pa, _this$summaryData10, _this$summaryData10$p, _this$summaryData11, _this$summaryData11$p, _this$summaryData12, _this$summaryData12$p, _this$summaryData12$p2, _this$summaryData13, _this$summaryData13$p, _this$summaryData13$p2, _this$summaryData14, _this$summaryData14$p, _this$summaryData14$p2;\n\n this.summaryData = this.packageSummary;\n const isWarningAllowed = (_this$summaryData8 = this.summaryData) === null || _this$summaryData8 === void 0 ? void 0 : (_this$summaryData8$pa = _this$summaryData8.package) === null || _this$summaryData8$pa === void 0 ? void 0 : _this$summaryData8$pa.filter(e => e.perspectiveFeature.name == \"Canlı Piyasa\" || e.perspectiveFeature.name == \"Prime\");\n const hasPriceVal = (_this$summaryData9 = this.summaryData) === null || _this$summaryData9 === void 0 ? void 0 : (_this$summaryData9$pa = _this$summaryData9.package) === null || _this$summaryData9$pa === void 0 ? void 0 : _this$summaryData9$pa.filter(e => e.perspectiveFeature.price != 0);\n if (isWarningAllowed.length && !hasPriceVal.length ? this.isWarningAllowed = false : this.isWarningAllowed = true) ;\n this.totalFundAmount = (_this$summaryData10 = this.summaryData) === null || _this$summaryData10 === void 0 ? void 0 : (_this$summaryData10$p = _this$summaryData10.price) === null || _this$summaryData10$p === void 0 ? void 0 : _this$summaryData10$p.totalFundAmount;\n this.totalCommissionAmount = (_this$summaryData11 = this.summaryData) === null || _this$summaryData11 === void 0 ? void 0 : (_this$summaryData11$p = _this$summaryData11.price) === null || _this$summaryData11$p === void 0 ? void 0 : _this$summaryData11$p.totalCommissionAmount;\n this.totalPriceTl = (_this$summaryData12 = this.summaryData) === null || _this$summaryData12 === void 0 ? void 0 : (_this$summaryData12$p = _this$summaryData12.price) === null || _this$summaryData12$p === void 0 ? void 0 : (_this$summaryData12$p2 = _this$summaryData12$p.prices) === null || _this$summaryData12$p2 === void 0 ? void 0 : _this$summaryData12$p2.filter(e => e.info === this.currencySymbol.tl)[0];\n this.totalPriceDollar = (_this$summaryData13 = this.summaryData) === null || _this$summaryData13 === void 0 ? void 0 : (_this$summaryData13$p = _this$summaryData13.price) === null || _this$summaryData13$p === void 0 ? void 0 : (_this$summaryData13$p2 = _this$summaryData13$p.prices) === null || _this$summaryData13$p2 === void 0 ? void 0 : _this$summaryData13$p2.filter(e => e.info === this.currencySymbol.dolar)[0];\n this.totalPriceEuro = (_this$summaryData14 = this.summaryData) === null || _this$summaryData14 === void 0 ? void 0 : (_this$summaryData14$p = _this$summaryData14.price) === null || _this$summaryData14$p === void 0 ? void 0 : (_this$summaryData14$p2 = _this$summaryData14$p.prices) === null || _this$summaryData14$p2 === void 0 ? void 0 : _this$summaryData14$p2.filter(e => e.info === this.currencySymbol.euro)[0];\n this.startDateSelection = this.packageSummary.dateSelection;\n }\n });\n }\n },\n\n totalPriceCalc() {\n var _this$summaryData15, _this$summaryData15$f, _this$totalPriceDolla, _this$totalPriceEuro, _this$totalPriceEuro2, _this$totalPriceDolla2, _this$totalPriceEuro3, _this$totalPriceTl;\n\n let foreignPricesTL = [];\n let totalSum = 0;\n (_this$summaryData15 = this.summaryData) === null || _this$summaryData15 === void 0 ? void 0 : (_this$summaryData15$f = _this$summaryData15.foreignIndice) === null || _this$summaryData15$f === void 0 ? void 0 : _this$summaryData15$f.forEach(value => {\n if (value.foreignIndiceFeature.priceInfo == \"₺\") {\n foreignPricesTL.push(value.foreignIndiceFeature.price);\n totalSum = foreignPricesTL.reduce(function (a, b) {\n return a + b;\n });\n }\n });\n let totalDollar = this.totalPriceDollar ? \" + $\" + this.formatPriceDollar((_this$totalPriceDolla = this.totalPriceDollar) === null || _this$totalPriceDolla === void 0 ? void 0 : _this$totalPriceDolla.totalPrice) : \"\";\n let totalEuro = (_this$totalPriceEuro = this.totalPriceEuro) !== null && _this$totalPriceEuro !== void 0 && _this$totalPriceEuro.totalPrice ? \" + €\" + this.formatPriceEuro((_this$totalPriceEuro2 = this.totalPriceEuro) === null || _this$totalPriceEuro2 === void 0 ? void 0 : _this$totalPriceEuro2.totalPrice) : \"\";\n\n if (((_this$totalPriceDolla2 = this.totalPriceDollar) === null || _this$totalPriceDolla2 === void 0 ? void 0 : _this$totalPriceDolla2.totalPrice) !== undefined || ((_this$totalPriceEuro3 = this.totalPriceEuro) === null || _this$totalPriceEuro3 === void 0 ? void 0 : _this$totalPriceEuro3.totalPrice) !== undefined) {\n this.haveCurrency = true;\n }\n\n return this.formatPrice(((_this$totalPriceTl = this.totalPriceTl) === null || _this$totalPriceTl === void 0 ? void 0 : _this$totalPriceTl.totalPrice) + totalSum) + this.currencySymbol.tl + totalDollar + totalEuro;\n },\n\n confirmPackage() {\n if (this.startDateSelection === -1) {\n this.$toast.error(\"Lütfen başlangıç zamanı seçiniz\");\n return;\n }\n\n this.isButtonClicked = true;\n const args = {\n dateSelection: parseInt(this.startDateSelection),\n purchaseId: Number(this.packageNumber),\n IsRecommendationPackage: this.IsRecommendationPackage,\n cusId: this.customerId\n };\n this.confirm(args).then(res => {\n if (res.error) {\n this.$toast.error(res.message);\n this.isButtonClicked = false;\n } else {\n if (this.startDateSelection === 0) {\n this.$toast.success(\"Paketiniz en kısa sürede tanımlanacaktır. Kullanıcı adı ve şifre bilgisi gerektiren paketlerde bu bilgiler e-posta ile gönderilmektedir. Lütfen e-posta adresinizde spam klasörünü kontrol ediniz.\");\n } else if (this.startDateSelection === 1) {\n this.$toast.success(\"Paketiniz bir sonraki ay için tanımlanacaktır.\");\n }\n\n this.$router.push({\n name: \"CustomerDetail\",\n params: {\n customerId: this.$route.query.c,\n customerNumber: this.$route.params.customerNumber\n }\n });\n }\n });\n }\n\n }\n});\n\n//# sourceURL=webpack://OsmanliPackage/./src/views/Checkout.vue?./node_modules/cache-loader/dist/cjs.js??ref--13-0!./node_modules/@vue/cli-plugin-babel/node_modules/babel-loader/lib!./node_modules/cache-loader/dist/cjs.js??ref--1-0!./node_modules/@vue/cli-service/node_modules/vue-loader/lib??vue-loader-options");
1840
1840
 
1841
1841
  /***/ }),
1842
1842
 
@@ -1836,7 +1836,7 @@ eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var vuex
1836
1836
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
1837
1837
 
1838
1838
  "use strict";
1839
- eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var vuex__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! vuex */ \"./node_modules/vuex/dist/vuex.esm.js\");\n/* harmony import */ var _components__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @/components */ \"./src/components/index.js\");\n/* harmony import */ var _components_customer_PackageSettigns_vue__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../components/customer/PackageSettigns.vue */ \"./src/components/customer/PackageSettigns.vue\");\n/* harmony import */ var _utils_breadcrumb__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../utils/breadcrumb */ \"./src/utils/breadcrumb.js\");\n/* harmony import */ var _constants__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../constants */ \"./src/constants/index.js\");\n/* harmony import */ var _utils_tokenTools__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../utils/tokenTools */ \"./src/utils/tokenTools.js\");\n/* harmony import */ var _mixins__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../mixins */ \"./src/mixins/index.js\");\n\n\n\n\n\n\n\n/* harmony default export */ __webpack_exports__[\"default\"] = ({\n name: \"Checkout\",\n components: {\n BaseIcon: _components__WEBPACK_IMPORTED_MODULE_1__[\"BaseIcon\"],\n BaseButton: _components__WEBPACK_IMPORTED_MODULE_1__[\"BaseButton\"],\n BaseSelect: _components__WEBPACK_IMPORTED_MODULE_1__[\"BaseSelect\"],\n InfoArea: _components__WEBPACK_IMPORTED_MODULE_1__[\"InfoArea\"],\n PackageSettigns: _components_customer_PackageSettigns_vue__WEBPACK_IMPORTED_MODULE_2__[\"default\"]\n },\n mixins: [_mixins__WEBPACK_IMPORTED_MODULE_6__[\"default\"]],\n\n data() {\n return {\n summaryData: [],\n totalFundAmount: 0,\n totalCommissionAmount: 0,\n packageDetail: null,\n marketInfo: null,\n isPopupVisible: false,\n isWarningAllowed: false,\n totalPriceTl: [],\n totalPriceDollar: [],\n totalPriceEuro: [],\n totalPrice: 0,\n totalPriceForeign: 0,\n startDateSelection: -1,\n isButtonClicked: true,\n esube: Object(_utils_tokenTools__WEBPACK_IMPORTED_MODULE_5__[\"getItem\"])(\"esube\"),\n IsRecommendationPackage: false,\n infoText: [\"BES ve yatırım fonu büyüklüğü ve/veya komisyon şartı sağlandığı taktirde; o ay toplamda belirtilen ekran ücreti sizden alınmayacaktır.\", \"Faturalandırma sırasında ay sonu Merkez Bankası kuru dikkate alınacaktır.\"],\n startDate: [{\n label: \"Seçiniz\",\n code: -1\n }, {\n label: \"Hemen Şimdi\",\n code: 0\n }, {\n label: \"Ay Başında\",\n code: 1\n }],\n customerId: null,\n haveCurrency: false,\n isRecomendedPackage: false\n };\n },\n\n computed: { ...Object(vuex__WEBPACK_IMPORTED_MODULE_0__[\"mapGetters\"])([\"customer\", \"packageSummary\", \"getPackageInfo\", \"getMarketInfo\", \"getUserInfo\", \"recommendationSummary\"]),\n\n currencySymbol() {\n return _constants__WEBPACK_IMPORTED_MODULE_4__[\"CurrencySymbol\"];\n },\n\n packageNumber() {\n return this.$route.params.packageNumber;\n },\n\n getUserNumber() {\n return this.customer.customerNo;\n },\n\n getUserInfos() {\n return `${this.customer.name} ${this.customer.surName}`;\n },\n\n customerNumber() {\n return this.$route.params.customerNumber;\n },\n\n screenPrice() {\n if (this.summaryData && this.summaryData.price) {\n return this.summaryData.price.screenPrice;\n }\n\n return 0;\n },\n\n screenFund() {\n if (this.summaryData && this.summaryData.price) {\n return this.summaryData.price.screenFund;\n }\n\n return 0;\n },\n\n screenCommission() {\n if (this.summaryData && this.summaryData.price) {\n return this.summaryData.price.screenCommission;\n }\n\n return 0;\n }\n\n },\n\n mounted() {\n this.customerId = this.$route.query.c === undefined ? null : this.$route.query.c;\n\n if (this.esube != \"yes\") {\n this.getCustomer();\n }\n\n this.getSummary();\n this.isPopupVisible = false;\n\n if (this.$route.query.isReco !== undefined && this.$route.query.isReco == \"yes\") {\n this.isRecomendedPackage = true;\n }\n\n this.isButtonClicked = false;\n },\n\n methods: { ...Object(vuex__WEBPACK_IMPORTED_MODULE_0__[\"mapActions\"])([\"getPackageSummary\", \"getRecommendationSummary\", \"confirm\", \"searchCustomer\", \"getPackageDetail\", \"getMarket\"]),\n\n changeStartDate(value) {\n this.startDateSelection = value.code;\n },\n\n goBack() {\n return this.$router.go(-1);\n },\n\n addCart(purchaseNo) {\n this.getPackageDetail([purchaseNo, this.customerId]).then(() => {\n this.packageDetail = this.getPackageInfo;\n this.getMarket([this.packageDetail.application.applicationId, this.packageDetail.platform.platformId, this.customerId]).then(() => {\n this.marketInfo = this.getMarketInfo;\n });\n this.isPopupVisible = true;\n });\n },\n\n closePopup() {\n if (this.esube != \"yes\") {\n this.getCustomer();\n }\n\n this.getSummary();\n this.isPopupVisible = false;\n },\n\n getCustomer() {\n this.searchCustomer({\n customerNo: this.customerNumber,\n cusId: this.customerId\n }).then(res => {\n if (res) {\n Object(_utils_breadcrumb__WEBPACK_IMPORTED_MODULE_3__[\"getBreadCrumbs\"])({\n breadcrumbs: [\"CustomerDetail\", \"BuyDataPackage\", \"Checkout\"],\n customer: this.customer,\n customerDetail: this.getUserNumber,\n buyDataPackage: this.getUserNumber,\n checkout: this.packageNumber,\n cusId: this.customerId\n });\n }\n });\n },\n\n getSummary() {\n if (this.$route.query.isReco !== undefined && this.$route.query.isReco == \"yes\") {\n this.getRecommendationSummary(this.packageNumber).then(res => {\n if (res) {\n var _this$summaryData, _this$summaryData$pri, _this$summaryData2, _this$summaryData2$pr, _this$summaryData3, _this$summaryData3$pr, _this$summaryData3$pr2, _this$summaryData4, _this$summaryData4$pr, _this$summaryData4$pr2, _this$summaryData5, _this$summaryData5$pr, _this$summaryData5$pr2;\n\n this.summaryData = this.recommendationSummary;\n this.totalFundAmount = (_this$summaryData = this.summaryData) === null || _this$summaryData === void 0 ? void 0 : (_this$summaryData$pri = _this$summaryData.price) === null || _this$summaryData$pri === void 0 ? void 0 : _this$summaryData$pri.totalFundAmount;\n this.totalCommissionAmount = (_this$summaryData2 = this.summaryData) === null || _this$summaryData2 === void 0 ? void 0 : (_this$summaryData2$pr = _this$summaryData2.price) === null || _this$summaryData2$pr === void 0 ? void 0 : _this$summaryData2$pr.totalCommissionAmount;\n this.totalPriceTl = (_this$summaryData3 = this.summaryData) === null || _this$summaryData3 === void 0 ? void 0 : (_this$summaryData3$pr = _this$summaryData3.price) === null || _this$summaryData3$pr === void 0 ? void 0 : (_this$summaryData3$pr2 = _this$summaryData3$pr.prices) === null || _this$summaryData3$pr2 === void 0 ? void 0 : _this$summaryData3$pr2.filter(e => e.info === this.currencySymbol.tl)[0];\n this.totalPriceDollar = (_this$summaryData4 = this.summaryData) === null || _this$summaryData4 === void 0 ? void 0 : (_this$summaryData4$pr = _this$summaryData4.price) === null || _this$summaryData4$pr === void 0 ? void 0 : (_this$summaryData4$pr2 = _this$summaryData4$pr.prices) === null || _this$summaryData4$pr2 === void 0 ? void 0 : _this$summaryData4$pr2.filter(e => e.info === this.currencySymbol.dolar)[0];\n this.totalPriceEuro = (_this$summaryData5 = this.summaryData) === null || _this$summaryData5 === void 0 ? void 0 : (_this$summaryData5$pr = _this$summaryData5.price) === null || _this$summaryData5$pr === void 0 ? void 0 : (_this$summaryData5$pr2 = _this$summaryData5$pr.prices) === null || _this$summaryData5$pr2 === void 0 ? void 0 : _this$summaryData5$pr2.filter(e => e.info === this.currencySymbol.euro)[0];\n\n if (this.recommendationSummary.dateSelection) {\n this.startDateSelection = this.recommendationSummary.dateSelection;\n }\n\n this.IsRecommendationPackage = true;\n }\n });\n } else {\n this.getPackageSummary(this.packageNumber).then(res => {\n if (res) {\n var _this$summaryData6, _this$summaryData6$pa, _this$summaryData7, _this$summaryData7$pa, _this$summaryData8, _this$summaryData8$pr, _this$summaryData9, _this$summaryData9$pr, _this$summaryData10, _this$summaryData10$p, _this$summaryData10$p2, _this$summaryData11, _this$summaryData11$p, _this$summaryData11$p2, _this$summaryData12, _this$summaryData12$p, _this$summaryData12$p2;\n\n this.summaryData = this.packageSummary;\n const isWarningAllowed = (_this$summaryData6 = this.summaryData) === null || _this$summaryData6 === void 0 ? void 0 : (_this$summaryData6$pa = _this$summaryData6.package) === null || _this$summaryData6$pa === void 0 ? void 0 : _this$summaryData6$pa.filter(e => e.perspectiveFeature.name == \"Canlı Piyasa\" || e.perspectiveFeature.name == \"Prime\");\n const hasPriceVal = (_this$summaryData7 = this.summaryData) === null || _this$summaryData7 === void 0 ? void 0 : (_this$summaryData7$pa = _this$summaryData7.package) === null || _this$summaryData7$pa === void 0 ? void 0 : _this$summaryData7$pa.filter(e => e.perspectiveFeature.price != 0);\n if (isWarningAllowed.length && !hasPriceVal.length ? this.isWarningAllowed = false : this.isWarningAllowed = true) ;\n this.totalFundAmount = (_this$summaryData8 = this.summaryData) === null || _this$summaryData8 === void 0 ? void 0 : (_this$summaryData8$pr = _this$summaryData8.price) === null || _this$summaryData8$pr === void 0 ? void 0 : _this$summaryData8$pr.totalFundAmount;\n this.totalCommissionAmount = (_this$summaryData9 = this.summaryData) === null || _this$summaryData9 === void 0 ? void 0 : (_this$summaryData9$pr = _this$summaryData9.price) === null || _this$summaryData9$pr === void 0 ? void 0 : _this$summaryData9$pr.totalCommissionAmount;\n this.totalPriceTl = (_this$summaryData10 = this.summaryData) === null || _this$summaryData10 === void 0 ? void 0 : (_this$summaryData10$p = _this$summaryData10.price) === null || _this$summaryData10$p === void 0 ? void 0 : (_this$summaryData10$p2 = _this$summaryData10$p.prices) === null || _this$summaryData10$p2 === void 0 ? void 0 : _this$summaryData10$p2.filter(e => e.info === this.currencySymbol.tl)[0];\n this.totalPriceDollar = (_this$summaryData11 = this.summaryData) === null || _this$summaryData11 === void 0 ? void 0 : (_this$summaryData11$p = _this$summaryData11.price) === null || _this$summaryData11$p === void 0 ? void 0 : (_this$summaryData11$p2 = _this$summaryData11$p.prices) === null || _this$summaryData11$p2 === void 0 ? void 0 : _this$summaryData11$p2.filter(e => e.info === this.currencySymbol.dolar)[0];\n this.totalPriceEuro = (_this$summaryData12 = this.summaryData) === null || _this$summaryData12 === void 0 ? void 0 : (_this$summaryData12$p = _this$summaryData12.price) === null || _this$summaryData12$p === void 0 ? void 0 : (_this$summaryData12$p2 = _this$summaryData12$p.prices) === null || _this$summaryData12$p2 === void 0 ? void 0 : _this$summaryData12$p2.filter(e => e.info === this.currencySymbol.euro)[0];\n this.startDateSelection = this.packageSummary.dateSelection;\n }\n });\n }\n },\n\n totalPriceCalc() {\n var _this$summaryData13, _this$summaryData13$f, _this$totalPriceDolla, _this$totalPriceEuro, _this$totalPriceEuro2, _this$totalPriceDolla2, _this$totalPriceEuro3, _this$totalPriceTl;\n\n let foreignPricesTL = [];\n let totalSum = 0;\n (_this$summaryData13 = this.summaryData) === null || _this$summaryData13 === void 0 ? void 0 : (_this$summaryData13$f = _this$summaryData13.foreignIndice) === null || _this$summaryData13$f === void 0 ? void 0 : _this$summaryData13$f.forEach(value => {\n if (value.foreignIndiceFeature.priceInfo == \"₺\") {\n foreignPricesTL.push(value.foreignIndiceFeature.price);\n totalSum = foreignPricesTL.reduce(function (a, b) {\n return a + b;\n });\n }\n });\n let totalDollar = this.totalPriceDollar ? \" + $\" + this.formatPriceDollar((_this$totalPriceDolla = this.totalPriceDollar) === null || _this$totalPriceDolla === void 0 ? void 0 : _this$totalPriceDolla.totalPrice) : \"\";\n let totalEuro = (_this$totalPriceEuro = this.totalPriceEuro) !== null && _this$totalPriceEuro !== void 0 && _this$totalPriceEuro.totalPrice ? \" + €\" + this.formatPriceEuro((_this$totalPriceEuro2 = this.totalPriceEuro) === null || _this$totalPriceEuro2 === void 0 ? void 0 : _this$totalPriceEuro2.totalPrice) : \"\";\n\n if (((_this$totalPriceDolla2 = this.totalPriceDollar) === null || _this$totalPriceDolla2 === void 0 ? void 0 : _this$totalPriceDolla2.totalPrice) !== undefined || ((_this$totalPriceEuro3 = this.totalPriceEuro) === null || _this$totalPriceEuro3 === void 0 ? void 0 : _this$totalPriceEuro3.totalPrice) !== undefined) {\n this.haveCurrency = true;\n }\n\n return this.formatPrice(((_this$totalPriceTl = this.totalPriceTl) === null || _this$totalPriceTl === void 0 ? void 0 : _this$totalPriceTl.totalPrice) + totalSum) + this.currencySymbol.tl + totalDollar + totalEuro;\n },\n\n confirmPackage() {\n if (this.startDateSelection === -1) {\n this.$toast.error(\"Lütfen başlangıç zamanı seçiniz\");\n return;\n }\n\n this.isButtonClicked = true;\n const args = {\n dateSelection: parseInt(this.startDateSelection),\n purchaseId: Number(this.packageNumber),\n IsRecommendationPackage: this.IsRecommendationPackage,\n cusId: this.customerId\n };\n this.confirm(args).then(res => {\n if (res.error) {\n this.$toast.error(res.message);\n this.isButtonClicked = false;\n } else {\n if (this.startDateSelection === 0) {\n this.$toast.success(\"Paketiniz en kısa sürede tanımlanacaktır. Kullanıcı adı ve şifre bilgisi gerektiren paketlerde bu bilgiler e-posta ile gönderilmektedir. Lütfen e-posta adresinizde spam klasörünü kontrol ediniz.\");\n } else if (this.startDateSelection === 1) {\n this.$toast.success(\"Paketiniz bir sonraki ay için tanımlanacaktır.\");\n }\n\n this.$router.push({\n name: \"CustomerDetail\",\n params: {\n customerId: this.$route.query.c,\n customerNumber: this.$route.params.customerNumber\n }\n });\n }\n });\n }\n\n }\n});\n\n//# sourceURL=webpack://OsmanliPackage/./src/views/Checkout.vue?./node_modules/cache-loader/dist/cjs.js??ref--13-0!./node_modules/@vue/cli-plugin-babel/node_modules/babel-loader/lib!./node_modules/cache-loader/dist/cjs.js??ref--1-0!./node_modules/@vue/cli-service/node_modules/vue-loader/lib??vue-loader-options");
1839
+ eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var vuex__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! vuex */ \"./node_modules/vuex/dist/vuex.esm.js\");\n/* harmony import */ var _components__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @/components */ \"./src/components/index.js\");\n/* harmony import */ var _components_customer_PackageSettigns_vue__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../components/customer/PackageSettigns.vue */ \"./src/components/customer/PackageSettigns.vue\");\n/* harmony import */ var _utils_breadcrumb__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../utils/breadcrumb */ \"./src/utils/breadcrumb.js\");\n/* harmony import */ var _constants__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../constants */ \"./src/constants/index.js\");\n/* harmony import */ var _utils_tokenTools__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../utils/tokenTools */ \"./src/utils/tokenTools.js\");\n/* harmony import */ var _mixins__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../mixins */ \"./src/mixins/index.js\");\n\n\n\n\n\n\n\n/* harmony default export */ __webpack_exports__[\"default\"] = ({\n name: \"Checkout\",\n components: {\n BaseIcon: _components__WEBPACK_IMPORTED_MODULE_1__[\"BaseIcon\"],\n BaseButton: _components__WEBPACK_IMPORTED_MODULE_1__[\"BaseButton\"],\n BaseSelect: _components__WEBPACK_IMPORTED_MODULE_1__[\"BaseSelect\"],\n InfoArea: _components__WEBPACK_IMPORTED_MODULE_1__[\"InfoArea\"],\n PackageSettigns: _components_customer_PackageSettigns_vue__WEBPACK_IMPORTED_MODULE_2__[\"default\"]\n },\n mixins: [_mixins__WEBPACK_IMPORTED_MODULE_6__[\"default\"]],\n\n data() {\n return {\n summaryData: [],\n totalFundAmount: 0,\n totalCommissionAmount: 0,\n packageDetail: null,\n marketInfo: null,\n isPopupVisible: false,\n isWarningAllowed: false,\n totalPriceTl: [],\n totalPriceDollar: [],\n totalPriceEuro: [],\n totalPrice: 0,\n totalPriceForeign: 0,\n startDateSelection: -1,\n isButtonClicked: true,\n esube: Object(_utils_tokenTools__WEBPACK_IMPORTED_MODULE_5__[\"getItem\"])(\"esube\"),\n IsRecommendationPackage: false,\n infoText: [\"BES ve yatırım fonu büyüklüğü ve/veya komisyon şartı sağlandığı taktirde; o ay toplamda belirtilen ekran ücreti sizden alınmayacaktır.\", \"Faturalandırma sırasında ay sonu Merkez Bankası kuru dikkate alınacaktır.\"],\n startDate: [{\n label: \"Seçiniz\",\n code: -1\n }, {\n label: \"Hemen Şimdi\",\n code: 0\n }, {\n label: \"Ay Başında\",\n code: 1\n }],\n customerId: null,\n haveCurrency: false,\n isRecomendedPackage: false\n };\n },\n\n computed: { ...Object(vuex__WEBPACK_IMPORTED_MODULE_0__[\"mapGetters\"])([\"customer\", \"packageSummary\", \"getPackageInfo\", \"getMarketInfo\", \"getUserInfo\", \"recommendationSummary\"]),\n\n currencySymbol() {\n return _constants__WEBPACK_IMPORTED_MODULE_4__[\"CurrencySymbol\"];\n },\n\n packageNumber() {\n return this.$route.params.packageNumber;\n },\n\n getUserNumber() {\n return this.customer.customerNo;\n },\n\n getUserInfos() {\n return `${this.customer.name} ${this.customer.surName}`;\n },\n\n customerNumber() {\n return this.$route.params.customerNumber;\n },\n\n screenPrice() {\n if (this.summaryData && this.summaryData.price) {\n return this.summaryData.price.screenPrice;\n }\n\n return 0;\n },\n\n screenFund() {\n if (this.summaryData && this.summaryData.price) {\n return this.summaryData.price.screenFund;\n }\n\n return 0;\n },\n\n screenCommission() {\n if (this.summaryData && this.summaryData.price) {\n return this.summaryData.price.screenCommission;\n }\n\n return 0;\n }\n\n },\n\n mounted() {\n this.customerId = this.$route.query.c === undefined ? null : this.$route.query.c;\n\n if (this.esube != \"yes\") {\n this.getCustomer();\n }\n\n this.getSummary();\n this.isPopupVisible = false;\n\n if (this.$route.query.isReco !== undefined && this.$route.query.isReco == \"yes\") {\n this.isRecomendedPackage = true;\n }\n\n this.isButtonClicked = false;\n },\n\n methods: { ...Object(vuex__WEBPACK_IMPORTED_MODULE_0__[\"mapActions\"])([\"getPackageSummary\", \"getRecommendationSummary\", \"confirm\", \"searchCustomer\", \"getPackageDetail\", \"getMarket\"]),\n\n changeStartDate(value) {\n this.startDateSelection = value.code;\n },\n\n goBack() {\n return this.$router.go(-1);\n },\n\n addCart(purchaseNo) {\n this.getPackageDetail([purchaseNo, this.customerId]).then(() => {\n this.packageDetail = this.getPackageInfo;\n this.getMarket([this.packageDetail.application.applicationId, this.packageDetail.platform.platformId, this.customerId]).then(() => {\n this.marketInfo = this.getMarketInfo;\n });\n this.isPopupVisible = true;\n });\n },\n\n closePopup() {\n if (this.esube != \"yes\") {\n this.getCustomer();\n }\n\n this.getSummary();\n this.isPopupVisible = false;\n },\n\n getCustomer() {\n this.searchCustomer({\n customerNo: this.customerNumber,\n cusId: this.customerId\n }).then(res => {\n if (res) {\n Object(_utils_breadcrumb__WEBPACK_IMPORTED_MODULE_3__[\"getBreadCrumbs\"])({\n breadcrumbs: [\"CustomerDetail\", \"BuyDataPackage\", \"Checkout\"],\n customer: this.customer,\n customerDetail: this.getUserNumber,\n buyDataPackage: this.getUserNumber,\n checkout: this.packageNumber,\n cusId: this.customerId\n });\n }\n });\n },\n\n getSummary() {\n if (this.$route.query.isReco !== undefined && this.$route.query.isReco == \"yes\") {\n this.getRecommendationSummary(this.packageNumber).then(res => {\n if (res) {\n var _this$summaryData, _this$summaryData$pac, _this$summaryData2, _this$summaryData2$pa, _this$summaryData3, _this$summaryData3$pr, _this$summaryData4, _this$summaryData4$pr, _this$summaryData5, _this$summaryData5$pr, _this$summaryData5$pr2, _this$summaryData6, _this$summaryData6$pr, _this$summaryData6$pr2, _this$summaryData7, _this$summaryData7$pr, _this$summaryData7$pr2;\n\n this.summaryData = this.recommendationSummary;\n const isWarningAllowed = (_this$summaryData = this.summaryData) === null || _this$summaryData === void 0 ? void 0 : (_this$summaryData$pac = _this$summaryData.package) === null || _this$summaryData$pac === void 0 ? void 0 : _this$summaryData$pac.filter(e => e.perspectiveFeature.name == \"Canlı Piyasa\" || e.perspectiveFeature.name == \"Prime\");\n const hasPriceVal = (_this$summaryData2 = this.summaryData) === null || _this$summaryData2 === void 0 ? void 0 : (_this$summaryData2$pa = _this$summaryData2.package) === null || _this$summaryData2$pa === void 0 ? void 0 : _this$summaryData2$pa.filter(e => e.perspectiveFeature.price != 0);\n if (isWarningAllowed.length && !hasPriceVal.length ? this.isWarningAllowed = false : this.isWarningAllowed = true) ;\n this.totalFundAmount = (_this$summaryData3 = this.summaryData) === null || _this$summaryData3 === void 0 ? void 0 : (_this$summaryData3$pr = _this$summaryData3.price) === null || _this$summaryData3$pr === void 0 ? void 0 : _this$summaryData3$pr.totalFundAmount;\n this.totalCommissionAmount = (_this$summaryData4 = this.summaryData) === null || _this$summaryData4 === void 0 ? void 0 : (_this$summaryData4$pr = _this$summaryData4.price) === null || _this$summaryData4$pr === void 0 ? void 0 : _this$summaryData4$pr.totalCommissionAmount;\n this.totalPriceTl = (_this$summaryData5 = this.summaryData) === null || _this$summaryData5 === void 0 ? void 0 : (_this$summaryData5$pr = _this$summaryData5.price) === null || _this$summaryData5$pr === void 0 ? void 0 : (_this$summaryData5$pr2 = _this$summaryData5$pr.prices) === null || _this$summaryData5$pr2 === void 0 ? void 0 : _this$summaryData5$pr2.filter(e => e.info === this.currencySymbol.tl)[0];\n this.totalPriceDollar = (_this$summaryData6 = this.summaryData) === null || _this$summaryData6 === void 0 ? void 0 : (_this$summaryData6$pr = _this$summaryData6.price) === null || _this$summaryData6$pr === void 0 ? void 0 : (_this$summaryData6$pr2 = _this$summaryData6$pr.prices) === null || _this$summaryData6$pr2 === void 0 ? void 0 : _this$summaryData6$pr2.filter(e => e.info === this.currencySymbol.dolar)[0];\n this.totalPriceEuro = (_this$summaryData7 = this.summaryData) === null || _this$summaryData7 === void 0 ? void 0 : (_this$summaryData7$pr = _this$summaryData7.price) === null || _this$summaryData7$pr === void 0 ? void 0 : (_this$summaryData7$pr2 = _this$summaryData7$pr.prices) === null || _this$summaryData7$pr2 === void 0 ? void 0 : _this$summaryData7$pr2.filter(e => e.info === this.currencySymbol.euro)[0];\n\n if (this.recommendationSummary.dateSelection) {\n this.startDateSelection = this.recommendationSummary.dateSelection;\n }\n\n this.IsRecommendationPackage = true;\n }\n });\n } else {\n this.getPackageSummary(this.packageNumber).then(res => {\n if (res) {\n var _this$summaryData8, _this$summaryData8$pa, _this$summaryData9, _this$summaryData9$pa, _this$summaryData10, _this$summaryData10$p, _this$summaryData11, _this$summaryData11$p, _this$summaryData12, _this$summaryData12$p, _this$summaryData12$p2, _this$summaryData13, _this$summaryData13$p, _this$summaryData13$p2, _this$summaryData14, _this$summaryData14$p, _this$summaryData14$p2;\n\n this.summaryData = this.packageSummary;\n const isWarningAllowed = (_this$summaryData8 = this.summaryData) === null || _this$summaryData8 === void 0 ? void 0 : (_this$summaryData8$pa = _this$summaryData8.package) === null || _this$summaryData8$pa === void 0 ? void 0 : _this$summaryData8$pa.filter(e => e.perspectiveFeature.name == \"Canlı Piyasa\" || e.perspectiveFeature.name == \"Prime\");\n const hasPriceVal = (_this$summaryData9 = this.summaryData) === null || _this$summaryData9 === void 0 ? void 0 : (_this$summaryData9$pa = _this$summaryData9.package) === null || _this$summaryData9$pa === void 0 ? void 0 : _this$summaryData9$pa.filter(e => e.perspectiveFeature.price != 0);\n if (isWarningAllowed.length && !hasPriceVal.length ? this.isWarningAllowed = false : this.isWarningAllowed = true) ;\n this.totalFundAmount = (_this$summaryData10 = this.summaryData) === null || _this$summaryData10 === void 0 ? void 0 : (_this$summaryData10$p = _this$summaryData10.price) === null || _this$summaryData10$p === void 0 ? void 0 : _this$summaryData10$p.totalFundAmount;\n this.totalCommissionAmount = (_this$summaryData11 = this.summaryData) === null || _this$summaryData11 === void 0 ? void 0 : (_this$summaryData11$p = _this$summaryData11.price) === null || _this$summaryData11$p === void 0 ? void 0 : _this$summaryData11$p.totalCommissionAmount;\n this.totalPriceTl = (_this$summaryData12 = this.summaryData) === null || _this$summaryData12 === void 0 ? void 0 : (_this$summaryData12$p = _this$summaryData12.price) === null || _this$summaryData12$p === void 0 ? void 0 : (_this$summaryData12$p2 = _this$summaryData12$p.prices) === null || _this$summaryData12$p2 === void 0 ? void 0 : _this$summaryData12$p2.filter(e => e.info === this.currencySymbol.tl)[0];\n this.totalPriceDollar = (_this$summaryData13 = this.summaryData) === null || _this$summaryData13 === void 0 ? void 0 : (_this$summaryData13$p = _this$summaryData13.price) === null || _this$summaryData13$p === void 0 ? void 0 : (_this$summaryData13$p2 = _this$summaryData13$p.prices) === null || _this$summaryData13$p2 === void 0 ? void 0 : _this$summaryData13$p2.filter(e => e.info === this.currencySymbol.dolar)[0];\n this.totalPriceEuro = (_this$summaryData14 = this.summaryData) === null || _this$summaryData14 === void 0 ? void 0 : (_this$summaryData14$p = _this$summaryData14.price) === null || _this$summaryData14$p === void 0 ? void 0 : (_this$summaryData14$p2 = _this$summaryData14$p.prices) === null || _this$summaryData14$p2 === void 0 ? void 0 : _this$summaryData14$p2.filter(e => e.info === this.currencySymbol.euro)[0];\n this.startDateSelection = this.packageSummary.dateSelection;\n }\n });\n }\n },\n\n totalPriceCalc() {\n var _this$summaryData15, _this$summaryData15$f, _this$totalPriceDolla, _this$totalPriceEuro, _this$totalPriceEuro2, _this$totalPriceDolla2, _this$totalPriceEuro3, _this$totalPriceTl;\n\n let foreignPricesTL = [];\n let totalSum = 0;\n (_this$summaryData15 = this.summaryData) === null || _this$summaryData15 === void 0 ? void 0 : (_this$summaryData15$f = _this$summaryData15.foreignIndice) === null || _this$summaryData15$f === void 0 ? void 0 : _this$summaryData15$f.forEach(value => {\n if (value.foreignIndiceFeature.priceInfo == \"₺\") {\n foreignPricesTL.push(value.foreignIndiceFeature.price);\n totalSum = foreignPricesTL.reduce(function (a, b) {\n return a + b;\n });\n }\n });\n let totalDollar = this.totalPriceDollar ? \" + $\" + this.formatPriceDollar((_this$totalPriceDolla = this.totalPriceDollar) === null || _this$totalPriceDolla === void 0 ? void 0 : _this$totalPriceDolla.totalPrice) : \"\";\n let totalEuro = (_this$totalPriceEuro = this.totalPriceEuro) !== null && _this$totalPriceEuro !== void 0 && _this$totalPriceEuro.totalPrice ? \" + €\" + this.formatPriceEuro((_this$totalPriceEuro2 = this.totalPriceEuro) === null || _this$totalPriceEuro2 === void 0 ? void 0 : _this$totalPriceEuro2.totalPrice) : \"\";\n\n if (((_this$totalPriceDolla2 = this.totalPriceDollar) === null || _this$totalPriceDolla2 === void 0 ? void 0 : _this$totalPriceDolla2.totalPrice) !== undefined || ((_this$totalPriceEuro3 = this.totalPriceEuro) === null || _this$totalPriceEuro3 === void 0 ? void 0 : _this$totalPriceEuro3.totalPrice) !== undefined) {\n this.haveCurrency = true;\n }\n\n return this.formatPrice(((_this$totalPriceTl = this.totalPriceTl) === null || _this$totalPriceTl === void 0 ? void 0 : _this$totalPriceTl.totalPrice) + totalSum) + this.currencySymbol.tl + totalDollar + totalEuro;\n },\n\n confirmPackage() {\n if (this.startDateSelection === -1) {\n this.$toast.error(\"Lütfen başlangıç zamanı seçiniz\");\n return;\n }\n\n this.isButtonClicked = true;\n const args = {\n dateSelection: parseInt(this.startDateSelection),\n purchaseId: Number(this.packageNumber),\n IsRecommendationPackage: this.IsRecommendationPackage,\n cusId: this.customerId\n };\n this.confirm(args).then(res => {\n if (res.error) {\n this.$toast.error(res.message);\n this.isButtonClicked = false;\n } else {\n if (this.startDateSelection === 0) {\n this.$toast.success(\"Paketiniz en kısa sürede tanımlanacaktır. Kullanıcı adı ve şifre bilgisi gerektiren paketlerde bu bilgiler e-posta ile gönderilmektedir. Lütfen e-posta adresinizde spam klasörünü kontrol ediniz.\");\n } else if (this.startDateSelection === 1) {\n this.$toast.success(\"Paketiniz bir sonraki ay için tanımlanacaktır.\");\n }\n\n this.$router.push({\n name: \"CustomerDetail\",\n params: {\n customerId: this.$route.query.c,\n customerNumber: this.$route.params.customerNumber\n }\n });\n }\n });\n }\n\n }\n});\n\n//# sourceURL=webpack://OsmanliPackage/./src/views/Checkout.vue?./node_modules/cache-loader/dist/cjs.js??ref--13-0!./node_modules/@vue/cli-plugin-babel/node_modules/babel-loader/lib!./node_modules/cache-loader/dist/cjs.js??ref--1-0!./node_modules/@vue/cli-service/node_modules/vue-loader/lib??vue-loader-options");
1840
1840
 
1841
1841
  /***/ }),
1842
1842
 
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "osmanli-veri-dagitim",
3
- "version": "2.0.67",
4
- "main": "./dist/OsmanliPackage.umd.min.js?version=2.0.67",
3
+ "version": "2.0.68",
4
+ "main": "./dist/OsmanliPackage.umd.min.js?version=2.0.68",
5
5
  "files": [
6
6
  "dist"
7
7
  ],