osmanli-veri-dagitim 2.0.66 → 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
 
@@ -2403,7 +2403,7 @@ eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) *
2403
2403
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
2404
2404
 
2405
2405
  "use strict";
2406
- eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"render\", function() { return render; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"staticRenderFns\", function() { return staticRenderFns; });\nvar render = function () {\n var _vm = this\n var _h = _vm.$createElement\n var _c = _vm._self._c || _h\n return _c(\n \"div\",\n { staticClass: \"customer-detail\" },\n [\n _c(\"customer-info\", {\n attrs: {\n customerNumber: _vm.customerId,\n currentCustomer: _vm.customer,\n getPaymentStatuses: _vm.getPaymentStatuses,\n },\n }),\n _c(\"div\", { staticClass: \"tab-layout\" }, [\n _c(\n \"div\",\n { staticClass: \"tabs custom-container\" },\n _vm._l(_vm.tabs, function (tab) {\n return _c(\n \"div\",\n {\n key: tab.id,\n class: _vm.tabClass(tab.id),\n attrs: { id: \"tab-\" + tab.id },\n on: {\n click: function ($event) {\n return _vm.changeTab(tab.id)\n },\n },\n },\n [_c(\"h6\", [_vm._v(_vm._s(tab.text))])]\n )\n }),\n 0\n ),\n _c(\"div\", { staticClass: \"tab-content\" }, [\n _vm.recommendedPackages\n ? _c(\n \"div\",\n { staticClass: \"slider custom-container\" },\n [\n _c(\"package-slider\", {\n attrs: {\n packages: _vm.recommendedPackages,\n isDisplay: false,\n },\n }),\n ],\n 1\n )\n : _vm._e(),\n _vm.currentTab === 0\n ? _c(\"div\", { staticClass: \"data-types\" }, [\n _vm.cusId\n ? _c(\n \"div\",\n [\n _c(\"fund-commission-rate\", {\n attrs: { customerId: parseInt(_vm.cusId, 0) },\n }),\n ],\n 1\n )\n : _vm._e(),\n _c(\n \"div\",\n {\n staticClass: \"data-requests custom-container\",\n attrs: { id: \"dataRequest\" },\n },\n [\n _c(\n \"div\",\n { staticClass: \"data-requests__title-wrapper\" },\n [_c(\"data-filter\")],\n 1\n ),\n _vm._l(_vm.allPackages.data, function (d) {\n return _c(\"data-request-item\", {\n key: d.id,\n attrs: {\n dataItem: Object.assign(\n {},\n {\n title: d.productName,\n subtitle: d.platform && d.platform.name,\n imageUrl: d.imageUrl,\n },\n d\n ),\n },\n })\n }),\n _vm.allPackages.page\n ? _c(\"Pager\", {\n attrs: {\n pageName: \"dataRequest\",\n page: _vm.allPackages.page,\n },\n })\n : _vm._e(),\n ],\n 2\n ),\n ])\n : _vm._e(),\n _vm.currentTab === 1\n ? _c(\n \"div\",\n {\n staticClass: \"invoice-area custom-container\",\n attrs: { id: \"invoice\" },\n },\n [\n _c(\n \"div\",\n { staticClass: \"table-area\" },\n [\n _vm._l(_vm.invoiceList.data, function (d) {\n return _c(\"data-invoice-item\", {\n key: d.id,\n attrs: {\n dataItem: Object.assign(\n {},\n {\n title: d.productName,\n subtitle: d.platform && d.platform.name,\n },\n d\n ),\n },\n })\n }),\n _vm.invoiceList.page\n ? _c(\"Pager\", {\n attrs: {\n pageName: \"invoice\",\n page: _vm.invoiceList.page,\n },\n })\n : _vm._e(),\n ],\n 2\n ),\n ]\n )\n : _vm._e(),\n _vm.currentTab === 2\n ? _c(\n \"div\",\n {\n staticClass: \"history-area custom-container\",\n attrs: { id: \"history\" },\n },\n [\n _c(\n \"div\",\n { staticClass: \"top-area\" },\n [\n _c(\"h3\", [\n _vm._v(_vm._s(this.tabs[_vm.currentTab].text)),\n ]),\n _c(\"history-filter\"),\n ],\n 1\n ),\n _c(\"div\", { staticClass: \"history-table-container\" }, [\n _c(\"div\", { staticClass: \"history-table\" }, [\n _c(\n \"div\",\n { staticClass: \"table-area\" },\n [\n _vm._m(0),\n _vm._l(_vm.historyList.data, function (d) {\n return _c(\"data-history-item\", {\n key: d.id,\n attrs: { dataItem: d },\n })\n }),\n ],\n 2\n ),\n ]),\n ]),\n _vm.history.page\n ? _c(\"Pager\", {\n attrs: { pageName: \"history\", page: _vm.history.page },\n })\n : _vm._e(),\n ],\n 1\n )\n : _vm._e(),\n ]),\n ]),\n ],\n 1\n )\n}\nvar staticRenderFns = [\n function () {\n var _vm = this\n var _h = _vm.$createElement\n var _c = _vm._self._c || _h\n return _c(\"div\", { staticClass: \"main-title-area\" }, [\n _c(\"div\", { staticClass: \"left\" }, [\n _c(\"span\", { staticClass: \"title\" }, [_vm._v(\"İşlem Tarihi\")]),\n ]),\n _c(\"div\", { staticClass: \"right\" }, [\n _c(\"span\", { staticClass: \"title\" }, [_vm._v(\"Değişiklik Bilgileri\")]),\n ]),\n ])\n },\n]\nrender._withStripped = true\n\n\n\n//# sourceURL=webpack://OsmanliPackage/./src/views/CustomerDetail.vue?./node_modules/cache-loader/dist/cjs.js?%7B%22cacheDirectory%22:%22node_modules/.cache/vue-loader%22,%22cacheIdentifier%22:%22571eca3d-vue-loader-template%22%7D!./node_modules/@vue/cli-service/node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/cache-loader/dist/cjs.js??ref--1-0!./node_modules/@vue/cli-service/node_modules/vue-loader/lib??vue-loader-options");
2406
+ eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"render\", function() { return render; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"staticRenderFns\", function() { return staticRenderFns; });\nvar render = function () {\n var _vm = this\n var _h = _vm.$createElement\n var _c = _vm._self._c || _h\n return _c(\n \"div\",\n { staticClass: \"customer-detail\" },\n [\n _c(\"customer-info\", {\n attrs: {\n customerNumber: _vm.customerId,\n currentCustomer: _vm.customer,\n getPaymentStatuses: _vm.getPaymentStatuses,\n },\n }),\n _c(\"div\", { staticClass: \"tab-layout\" }, [\n _c(\n \"div\",\n { staticClass: \"tabs custom-container\" },\n _vm._l(_vm.tabs, function (tab) {\n return _c(\n \"div\",\n {\n key: tab.id,\n class: _vm.tabClass(tab.id),\n attrs: { id: \"tab-\" + tab.id },\n on: {\n click: function ($event) {\n return _vm.changeTab(tab.id)\n },\n },\n },\n [_c(\"h6\", [_vm._v(_vm._s(tab.text))])]\n )\n }),\n 0\n ),\n _c(\"div\", { staticClass: \"tab-content\" }, [\n _vm.recommendedPackages\n ? _c(\n \"div\",\n { staticClass: \"slider custom-container\" },\n [\n _c(\"package-slider\", {\n attrs: {\n packages: _vm.recommendedPackages,\n isDisplay: false,\n },\n }),\n ],\n 1\n )\n : _vm._e(),\n _vm.currentTab === 0\n ? _c(\"div\", { staticClass: \"data-types\" }, [\n _vm.cusId\n ? _c(\n \"div\",\n [\n _c(\"fund-commission-rate\", {\n attrs: { customerId: parseInt(_vm.cusId, 0) },\n }),\n ],\n 1\n )\n : _vm._e(),\n _c(\n \"div\",\n {\n staticClass: \"data-requests custom-container\",\n attrs: { id: \"dataRequest\" },\n },\n [\n _c(\n \"div\",\n { staticClass: \"data-requests__title-wrapper\" },\n [_c(\"data-filter\")],\n 1\n ),\n _vm._l(_vm.allPackages.data, function (d) {\n return _c(\"data-request-item\", {\n key: d.id,\n attrs: {\n dataItem: Object.assign(\n {},\n {\n title: d.productName,\n subtitle: d.platform && d.platform.name,\n imageUrl: d.imageUrl,\n },\n d\n ),\n },\n })\n }),\n _vm.allPackages.page\n ? _c(\"Pager\", {\n attrs: {\n pageName: \"dataRequest\",\n page: _vm.allPackages.page,\n },\n })\n : _vm._e(),\n ],\n 2\n ),\n ])\n : _vm._e(),\n _vm.currentTab === 1\n ? _c(\n \"div\",\n {\n staticClass: \"invoice-area custom-container\",\n attrs: { id: \"invoice\" },\n },\n [\n _c(\n \"div\",\n { staticClass: \"table-area\" },\n [\n _vm._l(_vm.invoiceList.data, function (d) {\n return _c(\"data-invoice-item\", {\n key: d.id,\n attrs: {\n dataItem: Object.assign(\n {},\n {\n title: d.productName,\n subtitle: d.platform && d.platform.name,\n },\n d\n ),\n },\n })\n }),\n _vm.invoiceList.page\n ? _c(\"Pager\", {\n attrs: {\n pageName: \"invoice\",\n page: _vm.invoiceList.page,\n },\n })\n : _vm._e(),\n ],\n 2\n ),\n ]\n )\n : _vm._e(),\n _vm.currentTab === 2\n ? _c(\n \"div\",\n {\n staticClass: \"history-area custom-container\",\n attrs: { id: \"history\" },\n },\n [\n _c(\n \"div\",\n { staticClass: \"top-area\" },\n [\n _c(\"h3\", [\n _vm._v(_vm._s(this.tabs[_vm.currentTab].text)),\n ]),\n _c(\"history-filter\"),\n ],\n 1\n ),\n _c(\"div\", { staticClass: \"history-table-container\" }, [\n _c(\"div\", { staticClass: \"history-table\" }, [\n _c(\n \"div\",\n { staticClass: \"table-area\" },\n [\n _vm._m(0),\n _vm._l(_vm.historyList.data, function (d) {\n return _c(\"data-history-item\", {\n key: d.id,\n attrs: { dataItem: d },\n })\n }),\n ],\n 2\n ),\n ]),\n ]),\n _vm.historyList.page\n ? _c(\"Pager\", {\n attrs: {\n pageName: \"history\",\n page: _vm.historyList.page,\n },\n })\n : _vm._e(),\n ],\n 1\n )\n : _vm._e(),\n ]),\n ]),\n ],\n 1\n )\n}\nvar staticRenderFns = [\n function () {\n var _vm = this\n var _h = _vm.$createElement\n var _c = _vm._self._c || _h\n return _c(\"div\", { staticClass: \"main-title-area\" }, [\n _c(\"div\", { staticClass: \"left\" }, [\n _c(\"span\", { staticClass: \"title\" }, [_vm._v(\"İşlem Tarihi\")]),\n ]),\n _c(\"div\", { staticClass: \"right\" }, [\n _c(\"span\", { staticClass: \"title\" }, [_vm._v(\"Değişiklik Bilgileri\")]),\n ]),\n ])\n },\n]\nrender._withStripped = true\n\n\n\n//# sourceURL=webpack://OsmanliPackage/./src/views/CustomerDetail.vue?./node_modules/cache-loader/dist/cjs.js?%7B%22cacheDirectory%22:%22node_modules/.cache/vue-loader%22,%22cacheIdentifier%22:%22571eca3d-vue-loader-template%22%7D!./node_modules/@vue/cli-service/node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/cache-loader/dist/cjs.js??ref--1-0!./node_modules/@vue/cli-service/node_modules/vue-loader/lib??vue-loader-options");
2407
2407
 
2408
2408
  /***/ }),
2409
2409
 
@@ -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
 
@@ -2412,7 +2412,7 @@ eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) *
2412
2412
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
2413
2413
 
2414
2414
  "use strict";
2415
- eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"render\", function() { return render; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"staticRenderFns\", function() { return staticRenderFns; });\nvar render = function () {\n var _vm = this\n var _h = _vm.$createElement\n var _c = _vm._self._c || _h\n return _c(\n \"div\",\n { staticClass: \"customer-detail\" },\n [\n _c(\"customer-info\", {\n attrs: {\n customerNumber: _vm.customerId,\n currentCustomer: _vm.customer,\n getPaymentStatuses: _vm.getPaymentStatuses,\n },\n }),\n _c(\"div\", { staticClass: \"tab-layout\" }, [\n _c(\n \"div\",\n { staticClass: \"tabs custom-container\" },\n _vm._l(_vm.tabs, function (tab) {\n return _c(\n \"div\",\n {\n key: tab.id,\n class: _vm.tabClass(tab.id),\n attrs: { id: \"tab-\" + tab.id },\n on: {\n click: function ($event) {\n return _vm.changeTab(tab.id)\n },\n },\n },\n [_c(\"h6\", [_vm._v(_vm._s(tab.text))])]\n )\n }),\n 0\n ),\n _c(\"div\", { staticClass: \"tab-content\" }, [\n _vm.recommendedPackages\n ? _c(\n \"div\",\n { staticClass: \"slider custom-container\" },\n [\n _c(\"package-slider\", {\n attrs: {\n packages: _vm.recommendedPackages,\n isDisplay: false,\n },\n }),\n ],\n 1\n )\n : _vm._e(),\n _vm.currentTab === 0\n ? _c(\"div\", { staticClass: \"data-types\" }, [\n _vm.cusId\n ? _c(\n \"div\",\n [\n _c(\"fund-commission-rate\", {\n attrs: { customerId: parseInt(_vm.cusId, 0) },\n }),\n ],\n 1\n )\n : _vm._e(),\n _c(\n \"div\",\n {\n staticClass: \"data-requests custom-container\",\n attrs: { id: \"dataRequest\" },\n },\n [\n _c(\n \"div\",\n { staticClass: \"data-requests__title-wrapper\" },\n [_c(\"data-filter\")],\n 1\n ),\n _vm._l(_vm.allPackages.data, function (d) {\n return _c(\"data-request-item\", {\n key: d.id,\n attrs: {\n dataItem: Object.assign(\n {},\n {\n title: d.productName,\n subtitle: d.platform && d.platform.name,\n imageUrl: d.imageUrl,\n },\n d\n ),\n },\n })\n }),\n _vm.allPackages.page\n ? _c(\"Pager\", {\n attrs: {\n pageName: \"dataRequest\",\n page: _vm.allPackages.page,\n },\n })\n : _vm._e(),\n ],\n 2\n ),\n ])\n : _vm._e(),\n _vm.currentTab === 1\n ? _c(\n \"div\",\n {\n staticClass: \"invoice-area custom-container\",\n attrs: { id: \"invoice\" },\n },\n [\n _c(\n \"div\",\n { staticClass: \"table-area\" },\n [\n _vm._l(_vm.invoiceList.data, function (d) {\n return _c(\"data-invoice-item\", {\n key: d.id,\n attrs: {\n dataItem: Object.assign(\n {},\n {\n title: d.productName,\n subtitle: d.platform && d.platform.name,\n },\n d\n ),\n },\n })\n }),\n _vm.invoiceList.page\n ? _c(\"Pager\", {\n attrs: {\n pageName: \"invoice\",\n page: _vm.invoiceList.page,\n },\n })\n : _vm._e(),\n ],\n 2\n ),\n ]\n )\n : _vm._e(),\n _vm.currentTab === 2\n ? _c(\n \"div\",\n {\n staticClass: \"history-area custom-container\",\n attrs: { id: \"history\" },\n },\n [\n _c(\n \"div\",\n { staticClass: \"top-area\" },\n [\n _c(\"h3\", [\n _vm._v(_vm._s(this.tabs[_vm.currentTab].text)),\n ]),\n _c(\"history-filter\"),\n ],\n 1\n ),\n _c(\"div\", { staticClass: \"history-table-container\" }, [\n _c(\"div\", { staticClass: \"history-table\" }, [\n _c(\n \"div\",\n { staticClass: \"table-area\" },\n [\n _vm._m(0),\n _vm._l(_vm.historyList.data, function (d) {\n return _c(\"data-history-item\", {\n key: d.id,\n attrs: { dataItem: d },\n })\n }),\n ],\n 2\n ),\n ]),\n ]),\n _vm.history.page\n ? _c(\"Pager\", {\n attrs: { pageName: \"history\", page: _vm.history.page },\n })\n : _vm._e(),\n ],\n 1\n )\n : _vm._e(),\n ]),\n ]),\n ],\n 1\n )\n}\nvar staticRenderFns = [\n function () {\n var _vm = this\n var _h = _vm.$createElement\n var _c = _vm._self._c || _h\n return _c(\"div\", { staticClass: \"main-title-area\" }, [\n _c(\"div\", { staticClass: \"left\" }, [\n _c(\"span\", { staticClass: \"title\" }, [_vm._v(\"İşlem Tarihi\")]),\n ]),\n _c(\"div\", { staticClass: \"right\" }, [\n _c(\"span\", { staticClass: \"title\" }, [_vm._v(\"Değişiklik Bilgileri\")]),\n ]),\n ])\n },\n]\nrender._withStripped = true\n\n\n\n//# sourceURL=webpack://OsmanliPackage/./src/views/CustomerDetail.vue?./node_modules/cache-loader/dist/cjs.js?%7B%22cacheDirectory%22:%22node_modules/.cache/vue-loader%22,%22cacheIdentifier%22:%22571eca3d-vue-loader-template%22%7D!./node_modules/@vue/cli-service/node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/cache-loader/dist/cjs.js??ref--1-0!./node_modules/@vue/cli-service/node_modules/vue-loader/lib??vue-loader-options");
2415
+ eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"render\", function() { return render; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"staticRenderFns\", function() { return staticRenderFns; });\nvar render = function () {\n var _vm = this\n var _h = _vm.$createElement\n var _c = _vm._self._c || _h\n return _c(\n \"div\",\n { staticClass: \"customer-detail\" },\n [\n _c(\"customer-info\", {\n attrs: {\n customerNumber: _vm.customerId,\n currentCustomer: _vm.customer,\n getPaymentStatuses: _vm.getPaymentStatuses,\n },\n }),\n _c(\"div\", { staticClass: \"tab-layout\" }, [\n _c(\n \"div\",\n { staticClass: \"tabs custom-container\" },\n _vm._l(_vm.tabs, function (tab) {\n return _c(\n \"div\",\n {\n key: tab.id,\n class: _vm.tabClass(tab.id),\n attrs: { id: \"tab-\" + tab.id },\n on: {\n click: function ($event) {\n return _vm.changeTab(tab.id)\n },\n },\n },\n [_c(\"h6\", [_vm._v(_vm._s(tab.text))])]\n )\n }),\n 0\n ),\n _c(\"div\", { staticClass: \"tab-content\" }, [\n _vm.recommendedPackages\n ? _c(\n \"div\",\n { staticClass: \"slider custom-container\" },\n [\n _c(\"package-slider\", {\n attrs: {\n packages: _vm.recommendedPackages,\n isDisplay: false,\n },\n }),\n ],\n 1\n )\n : _vm._e(),\n _vm.currentTab === 0\n ? _c(\"div\", { staticClass: \"data-types\" }, [\n _vm.cusId\n ? _c(\n \"div\",\n [\n _c(\"fund-commission-rate\", {\n attrs: { customerId: parseInt(_vm.cusId, 0) },\n }),\n ],\n 1\n )\n : _vm._e(),\n _c(\n \"div\",\n {\n staticClass: \"data-requests custom-container\",\n attrs: { id: \"dataRequest\" },\n },\n [\n _c(\n \"div\",\n { staticClass: \"data-requests__title-wrapper\" },\n [_c(\"data-filter\")],\n 1\n ),\n _vm._l(_vm.allPackages.data, function (d) {\n return _c(\"data-request-item\", {\n key: d.id,\n attrs: {\n dataItem: Object.assign(\n {},\n {\n title: d.productName,\n subtitle: d.platform && d.platform.name,\n imageUrl: d.imageUrl,\n },\n d\n ),\n },\n })\n }),\n _vm.allPackages.page\n ? _c(\"Pager\", {\n attrs: {\n pageName: \"dataRequest\",\n page: _vm.allPackages.page,\n },\n })\n : _vm._e(),\n ],\n 2\n ),\n ])\n : _vm._e(),\n _vm.currentTab === 1\n ? _c(\n \"div\",\n {\n staticClass: \"invoice-area custom-container\",\n attrs: { id: \"invoice\" },\n },\n [\n _c(\n \"div\",\n { staticClass: \"table-area\" },\n [\n _vm._l(_vm.invoiceList.data, function (d) {\n return _c(\"data-invoice-item\", {\n key: d.id,\n attrs: {\n dataItem: Object.assign(\n {},\n {\n title: d.productName,\n subtitle: d.platform && d.platform.name,\n },\n d\n ),\n },\n })\n }),\n _vm.invoiceList.page\n ? _c(\"Pager\", {\n attrs: {\n pageName: \"invoice\",\n page: _vm.invoiceList.page,\n },\n })\n : _vm._e(),\n ],\n 2\n ),\n ]\n )\n : _vm._e(),\n _vm.currentTab === 2\n ? _c(\n \"div\",\n {\n staticClass: \"history-area custom-container\",\n attrs: { id: \"history\" },\n },\n [\n _c(\n \"div\",\n { staticClass: \"top-area\" },\n [\n _c(\"h3\", [\n _vm._v(_vm._s(this.tabs[_vm.currentTab].text)),\n ]),\n _c(\"history-filter\"),\n ],\n 1\n ),\n _c(\"div\", { staticClass: \"history-table-container\" }, [\n _c(\"div\", { staticClass: \"history-table\" }, [\n _c(\n \"div\",\n { staticClass: \"table-area\" },\n [\n _vm._m(0),\n _vm._l(_vm.historyList.data, function (d) {\n return _c(\"data-history-item\", {\n key: d.id,\n attrs: { dataItem: d },\n })\n }),\n ],\n 2\n ),\n ]),\n ]),\n _vm.historyList.page\n ? _c(\"Pager\", {\n attrs: {\n pageName: \"history\",\n page: _vm.historyList.page,\n },\n })\n : _vm._e(),\n ],\n 1\n )\n : _vm._e(),\n ]),\n ]),\n ],\n 1\n )\n}\nvar staticRenderFns = [\n function () {\n var _vm = this\n var _h = _vm.$createElement\n var _c = _vm._self._c || _h\n return _c(\"div\", { staticClass: \"main-title-area\" }, [\n _c(\"div\", { staticClass: \"left\" }, [\n _c(\"span\", { staticClass: \"title\" }, [_vm._v(\"İşlem Tarihi\")]),\n ]),\n _c(\"div\", { staticClass: \"right\" }, [\n _c(\"span\", { staticClass: \"title\" }, [_vm._v(\"Değişiklik Bilgileri\")]),\n ]),\n ])\n },\n]\nrender._withStripped = true\n\n\n\n//# sourceURL=webpack://OsmanliPackage/./src/views/CustomerDetail.vue?./node_modules/cache-loader/dist/cjs.js?%7B%22cacheDirectory%22:%22node_modules/.cache/vue-loader%22,%22cacheIdentifier%22:%22571eca3d-vue-loader-template%22%7D!./node_modules/@vue/cli-service/node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/cache-loader/dist/cjs.js??ref--1-0!./node_modules/@vue/cli-service/node_modules/vue-loader/lib??vue-loader-options");
2416
2416
 
2417
2417
  /***/ }),
2418
2418
 
@@ -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
 
@@ -2412,7 +2412,7 @@ eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) *
2412
2412
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
2413
2413
 
2414
2414
  "use strict";
2415
- eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"render\", function() { return render; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"staticRenderFns\", function() { return staticRenderFns; });\nvar render = function () {\n var _vm = this\n var _h = _vm.$createElement\n var _c = _vm._self._c || _h\n return _c(\n \"div\",\n { staticClass: \"customer-detail\" },\n [\n _c(\"customer-info\", {\n attrs: {\n customerNumber: _vm.customerId,\n currentCustomer: _vm.customer,\n getPaymentStatuses: _vm.getPaymentStatuses,\n },\n }),\n _c(\"div\", { staticClass: \"tab-layout\" }, [\n _c(\n \"div\",\n { staticClass: \"tabs custom-container\" },\n _vm._l(_vm.tabs, function (tab) {\n return _c(\n \"div\",\n {\n key: tab.id,\n class: _vm.tabClass(tab.id),\n attrs: { id: \"tab-\" + tab.id },\n on: {\n click: function ($event) {\n return _vm.changeTab(tab.id)\n },\n },\n },\n [_c(\"h6\", [_vm._v(_vm._s(tab.text))])]\n )\n }),\n 0\n ),\n _c(\"div\", { staticClass: \"tab-content\" }, [\n _vm.recommendedPackages\n ? _c(\n \"div\",\n { staticClass: \"slider custom-container\" },\n [\n _c(\"package-slider\", {\n attrs: {\n packages: _vm.recommendedPackages,\n isDisplay: false,\n },\n }),\n ],\n 1\n )\n : _vm._e(),\n _vm.currentTab === 0\n ? _c(\"div\", { staticClass: \"data-types\" }, [\n _vm.cusId\n ? _c(\n \"div\",\n [\n _c(\"fund-commission-rate\", {\n attrs: { customerId: parseInt(_vm.cusId, 0) },\n }),\n ],\n 1\n )\n : _vm._e(),\n _c(\n \"div\",\n {\n staticClass: \"data-requests custom-container\",\n attrs: { id: \"dataRequest\" },\n },\n [\n _c(\n \"div\",\n { staticClass: \"data-requests__title-wrapper\" },\n [_c(\"data-filter\")],\n 1\n ),\n _vm._l(_vm.allPackages.data, function (d) {\n return _c(\"data-request-item\", {\n key: d.id,\n attrs: {\n dataItem: Object.assign(\n {},\n {\n title: d.productName,\n subtitle: d.platform && d.platform.name,\n imageUrl: d.imageUrl,\n },\n d\n ),\n },\n })\n }),\n _vm.allPackages.page\n ? _c(\"Pager\", {\n attrs: {\n pageName: \"dataRequest\",\n page: _vm.allPackages.page,\n },\n })\n : _vm._e(),\n ],\n 2\n ),\n ])\n : _vm._e(),\n _vm.currentTab === 1\n ? _c(\n \"div\",\n {\n staticClass: \"invoice-area custom-container\",\n attrs: { id: \"invoice\" },\n },\n [\n _c(\n \"div\",\n { staticClass: \"table-area\" },\n [\n _vm._l(_vm.invoiceList.data, function (d) {\n return _c(\"data-invoice-item\", {\n key: d.id,\n attrs: {\n dataItem: Object.assign(\n {},\n {\n title: d.productName,\n subtitle: d.platform && d.platform.name,\n },\n d\n ),\n },\n })\n }),\n _vm.invoiceList.page\n ? _c(\"Pager\", {\n attrs: {\n pageName: \"invoice\",\n page: _vm.invoiceList.page,\n },\n })\n : _vm._e(),\n ],\n 2\n ),\n ]\n )\n : _vm._e(),\n _vm.currentTab === 2\n ? _c(\n \"div\",\n {\n staticClass: \"history-area custom-container\",\n attrs: { id: \"history\" },\n },\n [\n _c(\n \"div\",\n { staticClass: \"top-area\" },\n [\n _c(\"h3\", [\n _vm._v(_vm._s(this.tabs[_vm.currentTab].text)),\n ]),\n _c(\"history-filter\"),\n ],\n 1\n ),\n _c(\"div\", { staticClass: \"history-table-container\" }, [\n _c(\"div\", { staticClass: \"history-table\" }, [\n _c(\n \"div\",\n { staticClass: \"table-area\" },\n [\n _vm._m(0),\n _vm._l(_vm.historyList.data, function (d) {\n return _c(\"data-history-item\", {\n key: d.id,\n attrs: { dataItem: d },\n })\n }),\n ],\n 2\n ),\n ]),\n ]),\n _vm.history.page\n ? _c(\"Pager\", {\n attrs: { pageName: \"history\", page: _vm.history.page },\n })\n : _vm._e(),\n ],\n 1\n )\n : _vm._e(),\n ]),\n ]),\n ],\n 1\n )\n}\nvar staticRenderFns = [\n function () {\n var _vm = this\n var _h = _vm.$createElement\n var _c = _vm._self._c || _h\n return _c(\"div\", { staticClass: \"main-title-area\" }, [\n _c(\"div\", { staticClass: \"left\" }, [\n _c(\"span\", { staticClass: \"title\" }, [_vm._v(\"İşlem Tarihi\")]),\n ]),\n _c(\"div\", { staticClass: \"right\" }, [\n _c(\"span\", { staticClass: \"title\" }, [_vm._v(\"Değişiklik Bilgileri\")]),\n ]),\n ])\n },\n]\nrender._withStripped = true\n\n\n\n//# sourceURL=webpack://OsmanliPackage/./src/views/CustomerDetail.vue?./node_modules/cache-loader/dist/cjs.js?%7B%22cacheDirectory%22:%22node_modules/.cache/vue-loader%22,%22cacheIdentifier%22:%22571eca3d-vue-loader-template%22%7D!./node_modules/@vue/cli-service/node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/cache-loader/dist/cjs.js??ref--1-0!./node_modules/@vue/cli-service/node_modules/vue-loader/lib??vue-loader-options");
2415
+ eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"render\", function() { return render; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"staticRenderFns\", function() { return staticRenderFns; });\nvar render = function () {\n var _vm = this\n var _h = _vm.$createElement\n var _c = _vm._self._c || _h\n return _c(\n \"div\",\n { staticClass: \"customer-detail\" },\n [\n _c(\"customer-info\", {\n attrs: {\n customerNumber: _vm.customerId,\n currentCustomer: _vm.customer,\n getPaymentStatuses: _vm.getPaymentStatuses,\n },\n }),\n _c(\"div\", { staticClass: \"tab-layout\" }, [\n _c(\n \"div\",\n { staticClass: \"tabs custom-container\" },\n _vm._l(_vm.tabs, function (tab) {\n return _c(\n \"div\",\n {\n key: tab.id,\n class: _vm.tabClass(tab.id),\n attrs: { id: \"tab-\" + tab.id },\n on: {\n click: function ($event) {\n return _vm.changeTab(tab.id)\n },\n },\n },\n [_c(\"h6\", [_vm._v(_vm._s(tab.text))])]\n )\n }),\n 0\n ),\n _c(\"div\", { staticClass: \"tab-content\" }, [\n _vm.recommendedPackages\n ? _c(\n \"div\",\n { staticClass: \"slider custom-container\" },\n [\n _c(\"package-slider\", {\n attrs: {\n packages: _vm.recommendedPackages,\n isDisplay: false,\n },\n }),\n ],\n 1\n )\n : _vm._e(),\n _vm.currentTab === 0\n ? _c(\"div\", { staticClass: \"data-types\" }, [\n _vm.cusId\n ? _c(\n \"div\",\n [\n _c(\"fund-commission-rate\", {\n attrs: { customerId: parseInt(_vm.cusId, 0) },\n }),\n ],\n 1\n )\n : _vm._e(),\n _c(\n \"div\",\n {\n staticClass: \"data-requests custom-container\",\n attrs: { id: \"dataRequest\" },\n },\n [\n _c(\n \"div\",\n { staticClass: \"data-requests__title-wrapper\" },\n [_c(\"data-filter\")],\n 1\n ),\n _vm._l(_vm.allPackages.data, function (d) {\n return _c(\"data-request-item\", {\n key: d.id,\n attrs: {\n dataItem: Object.assign(\n {},\n {\n title: d.productName,\n subtitle: d.platform && d.platform.name,\n imageUrl: d.imageUrl,\n },\n d\n ),\n },\n })\n }),\n _vm.allPackages.page\n ? _c(\"Pager\", {\n attrs: {\n pageName: \"dataRequest\",\n page: _vm.allPackages.page,\n },\n })\n : _vm._e(),\n ],\n 2\n ),\n ])\n : _vm._e(),\n _vm.currentTab === 1\n ? _c(\n \"div\",\n {\n staticClass: \"invoice-area custom-container\",\n attrs: { id: \"invoice\" },\n },\n [\n _c(\n \"div\",\n { staticClass: \"table-area\" },\n [\n _vm._l(_vm.invoiceList.data, function (d) {\n return _c(\"data-invoice-item\", {\n key: d.id,\n attrs: {\n dataItem: Object.assign(\n {},\n {\n title: d.productName,\n subtitle: d.platform && d.platform.name,\n },\n d\n ),\n },\n })\n }),\n _vm.invoiceList.page\n ? _c(\"Pager\", {\n attrs: {\n pageName: \"invoice\",\n page: _vm.invoiceList.page,\n },\n })\n : _vm._e(),\n ],\n 2\n ),\n ]\n )\n : _vm._e(),\n _vm.currentTab === 2\n ? _c(\n \"div\",\n {\n staticClass: \"history-area custom-container\",\n attrs: { id: \"history\" },\n },\n [\n _c(\n \"div\",\n { staticClass: \"top-area\" },\n [\n _c(\"h3\", [\n _vm._v(_vm._s(this.tabs[_vm.currentTab].text)),\n ]),\n _c(\"history-filter\"),\n ],\n 1\n ),\n _c(\"div\", { staticClass: \"history-table-container\" }, [\n _c(\"div\", { staticClass: \"history-table\" }, [\n _c(\n \"div\",\n { staticClass: \"table-area\" },\n [\n _vm._m(0),\n _vm._l(_vm.historyList.data, function (d) {\n return _c(\"data-history-item\", {\n key: d.id,\n attrs: { dataItem: d },\n })\n }),\n ],\n 2\n ),\n ]),\n ]),\n _vm.historyList.page\n ? _c(\"Pager\", {\n attrs: {\n pageName: \"history\",\n page: _vm.historyList.page,\n },\n })\n : _vm._e(),\n ],\n 1\n )\n : _vm._e(),\n ]),\n ]),\n ],\n 1\n )\n}\nvar staticRenderFns = [\n function () {\n var _vm = this\n var _h = _vm.$createElement\n var _c = _vm._self._c || _h\n return _c(\"div\", { staticClass: \"main-title-area\" }, [\n _c(\"div\", { staticClass: \"left\" }, [\n _c(\"span\", { staticClass: \"title\" }, [_vm._v(\"İşlem Tarihi\")]),\n ]),\n _c(\"div\", { staticClass: \"right\" }, [\n _c(\"span\", { staticClass: \"title\" }, [_vm._v(\"Değişiklik Bilgileri\")]),\n ]),\n ])\n },\n]\nrender._withStripped = true\n\n\n\n//# sourceURL=webpack://OsmanliPackage/./src/views/CustomerDetail.vue?./node_modules/cache-loader/dist/cjs.js?%7B%22cacheDirectory%22:%22node_modules/.cache/vue-loader%22,%22cacheIdentifier%22:%22571eca3d-vue-loader-template%22%7D!./node_modules/@vue/cli-service/node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/cache-loader/dist/cjs.js??ref--1-0!./node_modules/@vue/cli-service/node_modules/vue-loader/lib??vue-loader-options");
2416
2416
 
2417
2417
  /***/ }),
2418
2418
 
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "osmanli-veri-dagitim",
3
- "version": "2.0.66",
4
- "main": "./dist/OsmanliPackage.umd.min.js?version=2.0.66",
3
+ "version": "2.0.68",
4
+ "main": "./dist/OsmanliPackage.umd.min.js?version=2.0.68",
5
5
  "files": [
6
6
  "dist"
7
7
  ],