osmanli-veri-dagitim 2.1.15-dev → 2.1.17-dev
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.
|
@@ -1647,7 +1647,7 @@ eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _com
|
|
|
1647
1647
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
1648
1648
|
|
|
1649
1649
|
"use strict";
|
|
1650
|
-
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 _PackageSettigns__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./PackageSettigns */ \"./src/components/customer/PackageSettigns.vue\");\n/* harmony import */ var _constants__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../constants */ \"./src/constants/index.js\");\n/* harmony import */ var _base_InfoArea_vue__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../base/InfoArea.vue */ \"./src/components/base/InfoArea.vue\");\n/* harmony import */ var _mixins___WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../mixins/ */ \"./src/mixins/index.js\");\n\n\n\n\n\n\n/* harmony default export */ __webpack_exports__[\"default\"] = ({\n name: \"DataRequestItem\",\n mixins: [_mixins___WEBPACK_IMPORTED_MODULE_5__[\"default\"]],\n components: {\n BaseButton: _components__WEBPACK_IMPORTED_MODULE_1__[\"BaseButton\"],\n BaseIcon: _components__WEBPACK_IMPORTED_MODULE_1__[\"BaseIcon\"],\n PackageSettigns: _PackageSettigns__WEBPACK_IMPORTED_MODULE_2__[\"default\"],\n InfoArea: _base_InfoArea_vue__WEBPACK_IMPORTED_MODULE_4__[\"default\"]\n },\n props: {\n dataItem: Object\n },\n\n data() {\n return {\n packageDetail: null,\n marketInfo: null,\n isPopupVisible: false,\n infoText: \"Fatura dönemi içerisinde, iptal edilen paketlerde, hemen iptal edilse bile ücretlendirme yansımaktadır.\",\n cusId: null,\n userType: null,\n isActive: false\n };\n },\n\n mounted() {\n if (this.$route.params.customerId !== undefined) {\n this.cusId = this.$route.params.customerId;\n }\n\n let selectedFilter = {};\n\n if (this.generalFilter.filter !== undefined && this.generalFilter.filter !== {}) {\n selectedFilter = this.generalFilter.filter;\n }\n\n this.setGeneralFilter({\n page: 1,\n size: 5,\n filter: selectedFilter\n });\n this.userType = this.getUserType;\n },\n\n computed: { ...Object(vuex__WEBPACK_IMPORTED_MODULE_0__[\"mapGetters\"])([\"getPackageInfo\", \"getMarketInfo\", \"purchaseChangeStartDate\", \"generalFilter\", \"getUserInfo\"]),\n\n currencySymbol() {\n return _constants__WEBPACK_IMPORTED_MODULE_3__[\"CurrencySymbol\"];\n },\n\n getDataItemId() {\n return String(this.dataItem.id);\n },\n\n getSelectedPacks() {\n return [...this.dataItem.research.map(d => d.researchFeature.name), ...this.dataItem.foreignIndice.map(d => d.foreignIndiceFeature.name), ...this.dataItem.algorithm.map(d => d.algorithmFeature.name)];\n },\n\n getSelectedTerminalNumber() {\n return this.dataItem.algorithm.map(d => d.terminalNumber);\n },\n\n totalPriceDollar() {\n var _this$dataItem, _this$dataItem$price, _this$dataItem$price$;\n\n return (_this$dataItem = this.dataItem) === null || _this$dataItem === void 0 ? void 0 : (_this$dataItem$price = _this$dataItem.price) === null || _this$dataItem$price === void 0 ? void 0 : (_this$dataItem$price$ = _this$dataItem$price.prices) === null || _this$dataItem$price$ === void 0 ? void 0 : _this$dataItem$price$.filter(e => e.info === this.currencySymbol.dolar)[0];\n },\n\n totalPriceTl() {\n var _this$dataItem2, _this$dataItem2$price;\n\n let turkishLiraList = [];\n const pricesToCheck = (_this$dataItem2 = this.dataItem) === null || _this$dataItem2 === void 0 ? void 0 : (_this$dataItem2$price = _this$dataItem2.price) === null || _this$dataItem2$price === void 0 ? void 0 : _this$dataItem2$price.prices;\n\n if (pricesToCheck != null) {\n pricesToCheck.forEach(key => {\n if ((key === null || key === void 0 ? void 0 : key.info) === \"₺\" && key != undefined) {\n turkishLiraList.push(key.totalPrice);\n }\n });\n }\n\n return turkishLiraList.reduce((a, c) => a + c, 0);\n },\n\n totalPriceEuro() {\n var _this$dataItem3, _this$dataItem3$price, _this$dataItem3$price2;\n\n return (_this$dataItem3 = this.dataItem) === null || _this$dataItem3 === void 0 ? void 0 : (_this$dataItem3$price = _this$dataItem3.price) === null || _this$dataItem3$price === void 0 ? void 0 : (_this$dataItem3$price2 = _this$dataItem3$price.prices) === null || _this$dataItem3$price2 === void 0 ? void 0 : _this$dataItem3$price2.filter(e => e.info === this.currencySymbol.euro)[0];\n },\n\n totalPriceCalc() {\n var _this$totalPriceDolla, _this$totalPriceEuro;\n\n let totalDollar = this.totalPriceDollar != null ? \" + $\" + this.formatPriceDollar((_this$totalPriceDolla = this.totalPriceDollar) === null || _this$totalPriceDolla === void 0 ? void 0 : _this$totalPriceDolla.totalPrice) : \"\";\n let totalEuro = this.totalPriceEuro != null ? \" + €\" + this.formatPriceEuro((_this$totalPriceEuro = this.totalPriceEuro) === null || _this$totalPriceEuro === void 0 ? void 0 : _this$totalPriceEuro.totalPrice) : \"\";\n return this.formatPrice(this.totalPriceTl) + \" TL\" + totalDollar + totalEuro;\n },\n\n mergedPackagesNames() {\n var _this$dataItem$foreig, _this$dataItem$algori, _this$dataItem$resear, _this$dataItem$packag;\n\n const list = [];\n const platform = (_this$dataItem$foreig = this.dataItem.foreignIndice) === null || _this$dataItem$foreig === void 0 ? void 0 : _this$dataItem$foreig.map(i => i === null || i === void 0 ? void 0 : i.name);\n const algorithm = (_this$dataItem$algori = this.dataItem.algorithm) === null || _this$dataItem$algori === void 0 ? void 0 : _this$dataItem$algori.map(i => i === null || i === void 0 ? void 0 : i.name);\n const researchList = (_this$dataItem$resear = this.dataItem.research) === null || _this$dataItem$resear === void 0 ? void 0 : _this$dataItem$resear.map(i => i === null || i === void 0 ? void 0 : i.name);\n const marketFeature = ((_this$dataItem$packag = this.dataItem.package) === null || _this$dataItem$packag === void 0 ? void 0 : _this$dataItem$packag.map(i => {\n var _i$marketFeature;\n\n return i === null || i === void 0 ? void 0 : (_i$marketFeature = i.marketFeature) === null || _i$marketFeature === void 0 ? void 0 : _i$marketFeature.name;\n })) || [];\n const filteredMarketFeature = marketFeature.filter(name => name !== undefined);\n const filteredAlgorithm = algorithm.filter(name => name !== undefined);\n const filteredPlatform = platform.filter(name => name !== undefined);\n const filteredResearchList = researchList.filter(name => name !== undefined);\n\n if (filteredMarketFeature.length > 0) {\n list.push(...filteredMarketFeature);\n }\n\n if (filteredPlatform.length > 0) {\n list.push(...filteredPlatform);\n }\n\n if (filteredResearchList.length > 0) {\n list.push(...filteredResearchList);\n }\n\n if (filteredAlgorithm.length > 0) {\n list.push(...filteredAlgorithm);\n }\n\n return list;\n },\n\n mergedForTableData() {\n var _this$dataItem$foreig2, _this$dataItem$resear2, _this$dataItem$algori2;\n\n const list = [];\n let multipleLicenceFeatures = [];\n const platform = ((_this$dataItem$foreig2 = this.dataItem.foreignIndice) === null || _this$dataItem$foreig2 === void 0 ? void 0 : _this$dataItem$foreig2.map(i => i)) || [];\n const researchList = ((_this$dataItem$resear2 = this.dataItem.research) === null || _this$dataItem$resear2 === void 0 ? void 0 : _this$dataItem$resear2.map(i => i)) || [];\n const algorithList = ((_this$dataItem$algori2 = this.dataItem.algorithm) === null || _this$dataItem$algori2 === void 0 ? void 0 : _this$dataItem$algori2.map(i => i)) || [];\n\n const processPackageItem = item => {\n var _item$perspectiveFeat, _item$perspectiveFeat2, _item$perspectiveFeat3, _item$vendorFeature, _item$vendorFeature2, _item$vendorFeature3;\n\n const createLicenceFeature = (name, price, priceInfo) => {\n let currencySymbol = \"\";\n\n if (priceInfo === \"₺\") {\n currencySymbol = \"TL\";\n } else if (priceInfo === \"€\") {\n currencySymbol = \"Euro\";\n } else if (priceInfo === \"$\") {\n currencySymbol = \"Dolar\";\n }\n\n if (name !== undefined && price !== undefined && currencySymbol !== undefined) {\n multipleLicenceFeatures.push({\n name,\n startDate: item.startDate,\n endDate: item.endDate,\n totalPrice: `${price} ${currencySymbol}`\n });\n }\n };\n\n const perspectiveFeatureName = (_item$perspectiveFeat = item.perspectiveFeature) === null || _item$perspectiveFeat === void 0 ? void 0 : _item$perspectiveFeat.name;\n const perspectiveFeaturePrice = (_item$perspectiveFeat2 = item.perspectiveFeature) === null || _item$perspectiveFeat2 === void 0 ? void 0 : _item$perspectiveFeat2.price;\n const perspectiveFeatureInfo = (_item$perspectiveFeat3 = item.perspectiveFeature) === null || _item$perspectiveFeat3 === void 0 ? void 0 : _item$perspectiveFeat3.info;\n\n if (perspectiveFeatureName !== undefined && perspectiveFeaturePrice !== undefined) {\n var _item$marketFeature;\n\n createLicenceFeature(((_item$marketFeature = item.marketFeature) === null || _item$marketFeature === void 0 ? void 0 : _item$marketFeature.name) + \" \" + perspectiveFeatureName, perspectiveFeaturePrice, perspectiveFeatureInfo);\n }\n\n const vendorFeatureName = (_item$vendorFeature = item.vendorFeature) === null || _item$vendorFeature === void 0 ? void 0 : _item$vendorFeature.name;\n const vendorFeaturePrice = (_item$vendorFeature2 = item.vendorFeature) === null || _item$vendorFeature2 === void 0 ? void 0 : _item$vendorFeature2.price;\n const vendorFeatureInfo = (_item$vendorFeature3 = item.vendorFeature) === null || _item$vendorFeature3 === void 0 ? void 0 : _item$vendorFeature3.info;\n\n if (vendorFeatureName !== undefined && vendorFeatureName !== \"Yok\" && vendorFeaturePrice !== undefined) {\n var _item$marketFeature2;\n\n createLicenceFeature(((_item$marketFeature2 = item.marketFeature) === null || _item$marketFeature2 === void 0 ? void 0 : _item$marketFeature2.name) + \" \" + vendorFeatureName, vendorFeaturePrice, vendorFeatureInfo);\n }\n };\n\n if (this.dataItem.package.length > 0) {\n this.dataItem.package.forEach(processPackageItem);\n }\n\n const filteredPlatform = platform.filter(name => name !== undefined);\n const filteredResearchList = researchList.filter(name => name !== undefined);\n const filteredAlgoList = algorithList.filter(name => name !== undefined);\n list.push(...multipleLicenceFeatures);\n\n if (filteredPlatform.length > 0) {\n list.push(...filteredPlatform);\n }\n\n if (filteredResearchList.length > 0) {\n list.push(...filteredResearchList);\n }\n\n if (filteredAlgoList.length > 0) {\n list.push(...filteredAlgoList);\n }\n\n return list;\n },\n\n getUserType() {\n return this.getUserInfo.memberType;\n }\n\n },\n methods: { ...Object(vuex__WEBPACK_IMPORTED_MODULE_0__[\"mapActions\"])([\"getPackageDetail\", \"getDraftPackageDetail\", \"getMarket\", \"getPlatform\", \"cancelPackage\", \"getAllPackages\", \"getPurchaseChangeStartDate\"]),\n ...Object(vuex__WEBPACK_IMPORTED_MODULE_0__[\"mapMutations\"])([\"setGeneralFilter\"]),\n\n addCart(dataItemId) {\n if (this.$route.name == \"CustomerDetail\" || this.$route.name == \"OvdHome\") {\n this.getPackageDetail([dataItemId, this.cusId]).then(() => {\n this.packageDetail = this.getPackageInfo;\n this.getMarket([this.packageDetail.application.applicationId, this.packageDetail.platform.platformId, this.cusId]).then(() => {\n this.marketInfo = this.getMarketInfo;\n });\n this.isPopupVisible = true;\n this.$emit(\"checkIsPopupOpen\", true);\n });\n } else {\n this.getDraftPackageDetail([dataItemId, this.cusId]).then(() => {\n this.packageDetail = this.getPackageInfo;\n this.getMarket([this.packageDetail.application.applicationId, this.packageDetail.platform.platformId, this.cusId]).then(() => {\n this.marketInfo = this.getMarketInfo;\n });\n this.isPopupVisible = true;\n this.$emit(\"checkIsPopupOpen\", true);\n });\n }\n },\n\n cancel(purchaseId) {\n this.cancelPackage(purchaseId).then(res => {\n if (res.data === true) {\n this.getAllPackages(this.cusId);\n this.$toast.success(\"İptal Edildi\");\n this.closeModal();\n }\n });\n },\n\n closePopup() {\n this.isPopupVisible = false;\n this.$emit(\"checkIsPopupOpen\", false);\n },\n\n showModal(packageStatus) {\n if (packageStatus === 5) {\n this.$toast.error(\"Paketiniz zaten pasif durumdadır.\");\n } else {\n this.$modal.show(packageStatus);\n }\n },\n\n closeModal() {\n this.$emit(\"checkIsPopupOpen\", false);\n this.$modal.hide(this.getDataItemId);\n },\n\n changeStartDate(val) {\n const args = {\n PurchaseNumber: this.dataItem.purchaseNo,\n DateSelection: val,\n cusId: this.cusId\n };\n this.getPurchaseChangeStartDate(args).then(res => {\n if (res !== null && res !== void 0 && res.error) {\n this.$toast.error(res.message);\n } else {\n this.$toast.success(\"Başarıyla güncelleme yapıldı.\");\n this.getAllPackages(this.cusId);\n }\n });\n },\n\n getTime(dateTime, formatType) {\n let stringDateTime = String(dateTime);\n let generateMomentDate = this.$moment(new Date(stringDateTime)).format(formatType);\n return generateMomentDate;\n },\n\n accordionToggle() {\n this.isActive = !this.isActive;\n }\n\n }\n});\n\n//# sourceURL=webpack://OsmanliPackage/./src/components/customer/DataRequestItem.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");
|
|
1650
|
+
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 _PackageSettigns__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./PackageSettigns */ \"./src/components/customer/PackageSettigns.vue\");\n/* harmony import */ var _constants__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../constants */ \"./src/constants/index.js\");\n/* harmony import */ var _base_InfoArea_vue__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../base/InfoArea.vue */ \"./src/components/base/InfoArea.vue\");\n/* harmony import */ var _mixins___WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../mixins/ */ \"./src/mixins/index.js\");\n\n\n\n\n\n\n/* harmony default export */ __webpack_exports__[\"default\"] = ({\n name: \"DataRequestItem\",\n mixins: [_mixins___WEBPACK_IMPORTED_MODULE_5__[\"default\"]],\n components: {\n BaseButton: _components__WEBPACK_IMPORTED_MODULE_1__[\"BaseButton\"],\n BaseIcon: _components__WEBPACK_IMPORTED_MODULE_1__[\"BaseIcon\"],\n PackageSettigns: _PackageSettigns__WEBPACK_IMPORTED_MODULE_2__[\"default\"],\n InfoArea: _base_InfoArea_vue__WEBPACK_IMPORTED_MODULE_4__[\"default\"]\n },\n props: {\n dataItem: Object\n },\n\n data() {\n return {\n packageDetail: null,\n marketInfo: null,\n isPopupVisible: false,\n infoText: \"Fatura dönemi içerisinde, iptal edilen lisanslar hemen iptal edilse bile ücretlendirme yansımaktadır ve iptal edilen lisanlar ay sonuna kadar kullanılabilmektedir.\",\n cusId: null,\n userType: null,\n isActive: false\n };\n },\n\n mounted() {\n if (this.$route.params.customerId !== undefined) {\n this.cusId = this.$route.params.customerId;\n }\n\n let selectedFilter = {};\n\n if (this.generalFilter.filter !== undefined && this.generalFilter.filter !== {}) {\n selectedFilter = this.generalFilter.filter;\n }\n\n this.setGeneralFilter({\n page: 1,\n size: 5,\n filter: selectedFilter\n });\n this.userType = this.getUserType;\n },\n\n computed: { ...Object(vuex__WEBPACK_IMPORTED_MODULE_0__[\"mapGetters\"])([\"getPackageInfo\", \"getMarketInfo\", \"purchaseChangeStartDate\", \"generalFilter\", \"getUserInfo\"]),\n\n currencySymbol() {\n return _constants__WEBPACK_IMPORTED_MODULE_3__[\"CurrencySymbol\"];\n },\n\n getDataItemId() {\n return String(this.dataItem.id);\n },\n\n getSelectedPacks() {\n return [...this.dataItem.research.map(d => d.researchFeature.name), ...this.dataItem.foreignIndice.map(d => d.foreignIndiceFeature.name), ...this.dataItem.algorithm.map(d => d.algorithmFeature.name)];\n },\n\n getSelectedTerminalNumber() {\n return this.dataItem.algorithm.map(d => d.terminalNumber);\n },\n\n totalPriceDollar() {\n var _this$dataItem, _this$dataItem$price, _this$dataItem$price$;\n\n return (_this$dataItem = this.dataItem) === null || _this$dataItem === void 0 ? void 0 : (_this$dataItem$price = _this$dataItem.price) === null || _this$dataItem$price === void 0 ? void 0 : (_this$dataItem$price$ = _this$dataItem$price.prices) === null || _this$dataItem$price$ === void 0 ? void 0 : _this$dataItem$price$.filter(e => e.info === this.currencySymbol.dolar)[0];\n },\n\n totalPriceTl() {\n var _this$dataItem2, _this$dataItem2$price;\n\n let turkishLiraList = [];\n const pricesToCheck = (_this$dataItem2 = this.dataItem) === null || _this$dataItem2 === void 0 ? void 0 : (_this$dataItem2$price = _this$dataItem2.price) === null || _this$dataItem2$price === void 0 ? void 0 : _this$dataItem2$price.prices;\n\n if (pricesToCheck != null) {\n pricesToCheck.forEach(key => {\n if ((key === null || key === void 0 ? void 0 : key.info) === \"₺\" && key != undefined) {\n turkishLiraList.push(key.totalPrice);\n }\n });\n }\n\n return turkishLiraList.reduce((a, c) => a + c, 0);\n },\n\n totalPriceEuro() {\n var _this$dataItem3, _this$dataItem3$price, _this$dataItem3$price2;\n\n return (_this$dataItem3 = this.dataItem) === null || _this$dataItem3 === void 0 ? void 0 : (_this$dataItem3$price = _this$dataItem3.price) === null || _this$dataItem3$price === void 0 ? void 0 : (_this$dataItem3$price2 = _this$dataItem3$price.prices) === null || _this$dataItem3$price2 === void 0 ? void 0 : _this$dataItem3$price2.filter(e => e.info === this.currencySymbol.euro)[0];\n },\n\n totalPriceCalc() {\n var _this$totalPriceDolla, _this$totalPriceEuro;\n\n let totalDollar = this.totalPriceDollar != null ? \" + $\" + this.formatPriceDollar((_this$totalPriceDolla = this.totalPriceDollar) === null || _this$totalPriceDolla === void 0 ? void 0 : _this$totalPriceDolla.totalPrice) : \"\";\n let totalEuro = this.totalPriceEuro != null ? \" + €\" + this.formatPriceEuro((_this$totalPriceEuro = this.totalPriceEuro) === null || _this$totalPriceEuro === void 0 ? void 0 : _this$totalPriceEuro.totalPrice) : \"\";\n return this.formatPrice(this.totalPriceTl) + \" TL\" + totalDollar + totalEuro;\n },\n\n mergedPackagesNames() {\n var _this$dataItem$foreig, _this$dataItem$algori, _this$dataItem$resear, _this$dataItem$packag;\n\n const list = [];\n const platform = (_this$dataItem$foreig = this.dataItem.foreignIndice) === null || _this$dataItem$foreig === void 0 ? void 0 : _this$dataItem$foreig.map(i => i === null || i === void 0 ? void 0 : i.name);\n const algorithm = (_this$dataItem$algori = this.dataItem.algorithm) === null || _this$dataItem$algori === void 0 ? void 0 : _this$dataItem$algori.map(i => i === null || i === void 0 ? void 0 : i.name);\n const researchList = (_this$dataItem$resear = this.dataItem.research) === null || _this$dataItem$resear === void 0 ? void 0 : _this$dataItem$resear.map(i => i === null || i === void 0 ? void 0 : i.name);\n const marketFeature = ((_this$dataItem$packag = this.dataItem.package) === null || _this$dataItem$packag === void 0 ? void 0 : _this$dataItem$packag.map(i => {\n var _i$marketFeature;\n\n return i === null || i === void 0 ? void 0 : (_i$marketFeature = i.marketFeature) === null || _i$marketFeature === void 0 ? void 0 : _i$marketFeature.name;\n })) || [];\n const filteredMarketFeature = marketFeature.filter(name => name !== undefined);\n const filteredAlgorithm = algorithm.filter(name => name !== undefined);\n const filteredPlatform = platform.filter(name => name !== undefined);\n const filteredResearchList = researchList.filter(name => name !== undefined);\n\n if (filteredMarketFeature.length > 0) {\n list.push(...filteredMarketFeature);\n }\n\n if (filteredPlatform.length > 0) {\n list.push(...filteredPlatform);\n }\n\n if (filteredResearchList.length > 0) {\n list.push(...filteredResearchList);\n }\n\n if (filteredAlgorithm.length > 0) {\n list.push(...filteredAlgorithm);\n }\n\n return list;\n },\n\n mergedForTableData() {\n var _this$dataItem$foreig2, _this$dataItem$resear2, _this$dataItem$algori2;\n\n const list = [];\n let multipleLicenceFeatures = [];\n const platform = ((_this$dataItem$foreig2 = this.dataItem.foreignIndice) === null || _this$dataItem$foreig2 === void 0 ? void 0 : _this$dataItem$foreig2.map(i => i)) || [];\n const researchList = ((_this$dataItem$resear2 = this.dataItem.research) === null || _this$dataItem$resear2 === void 0 ? void 0 : _this$dataItem$resear2.map(i => i)) || [];\n const algorithList = ((_this$dataItem$algori2 = this.dataItem.algorithm) === null || _this$dataItem$algori2 === void 0 ? void 0 : _this$dataItem$algori2.map(i => i)) || [];\n\n const processPackageItem = item => {\n var _item$perspectiveFeat, _item$perspectiveFeat2, _item$perspectiveFeat3, _item$vendorFeature, _item$vendorFeature2, _item$vendorFeature3;\n\n const createLicenceFeature = (name, price, priceInfo) => {\n let currencySymbol = \"\";\n\n if (priceInfo === \"₺\") {\n currencySymbol = \"TL\";\n } else if (priceInfo === \"€\") {\n currencySymbol = \"Euro\";\n } else if (priceInfo === \"$\") {\n currencySymbol = \"Dolar\";\n }\n\n if (name !== undefined && price !== undefined && currencySymbol !== undefined) {\n multipleLicenceFeatures.push({\n name,\n startDate: item.startDate,\n endDate: item.endDate,\n totalPrice: `${price} ${currencySymbol}`\n });\n }\n };\n\n const perspectiveFeatureName = (_item$perspectiveFeat = item.perspectiveFeature) === null || _item$perspectiveFeat === void 0 ? void 0 : _item$perspectiveFeat.name;\n const perspectiveFeaturePrice = (_item$perspectiveFeat2 = item.perspectiveFeature) === null || _item$perspectiveFeat2 === void 0 ? void 0 : _item$perspectiveFeat2.price;\n const perspectiveFeatureInfo = (_item$perspectiveFeat3 = item.perspectiveFeature) === null || _item$perspectiveFeat3 === void 0 ? void 0 : _item$perspectiveFeat3.info;\n\n if (perspectiveFeatureName !== undefined && perspectiveFeaturePrice !== undefined) {\n var _item$marketFeature;\n\n createLicenceFeature(((_item$marketFeature = item.marketFeature) === null || _item$marketFeature === void 0 ? void 0 : _item$marketFeature.name) + \" \" + perspectiveFeatureName, perspectiveFeaturePrice, perspectiveFeatureInfo);\n }\n\n const vendorFeatureName = (_item$vendorFeature = item.vendorFeature) === null || _item$vendorFeature === void 0 ? void 0 : _item$vendorFeature.name;\n const vendorFeaturePrice = (_item$vendorFeature2 = item.vendorFeature) === null || _item$vendorFeature2 === void 0 ? void 0 : _item$vendorFeature2.price;\n const vendorFeatureInfo = (_item$vendorFeature3 = item.vendorFeature) === null || _item$vendorFeature3 === void 0 ? void 0 : _item$vendorFeature3.info;\n\n if (vendorFeatureName !== undefined && vendorFeatureName !== \"Yok\" && vendorFeaturePrice !== undefined) {\n var _item$marketFeature2;\n\n createLicenceFeature(((_item$marketFeature2 = item.marketFeature) === null || _item$marketFeature2 === void 0 ? void 0 : _item$marketFeature2.name) + \" \" + vendorFeatureName, vendorFeaturePrice, vendorFeatureInfo);\n }\n };\n\n if (this.dataItem.package.length > 0) {\n this.dataItem.package.forEach(processPackageItem);\n }\n\n const filteredPlatform = platform.filter(name => name !== undefined);\n const filteredResearchList = researchList.filter(name => name !== undefined);\n const filteredAlgoList = algorithList.filter(name => name !== undefined);\n list.push(...multipleLicenceFeatures);\n\n if (filteredPlatform.length > 0) {\n list.push(...filteredPlatform);\n }\n\n if (filteredResearchList.length > 0) {\n list.push(...filteredResearchList);\n }\n\n if (filteredAlgoList.length > 0) {\n list.push(...filteredAlgoList);\n }\n\n return list;\n },\n\n getUserType() {\n return this.getUserInfo.memberType;\n }\n\n },\n methods: { ...Object(vuex__WEBPACK_IMPORTED_MODULE_0__[\"mapActions\"])([\"getPackageDetail\", \"getDraftPackageDetail\", \"getMarket\", \"getPlatform\", \"cancelPackage\", \"getAllPackages\", \"getPurchaseChangeStartDate\"]),\n ...Object(vuex__WEBPACK_IMPORTED_MODULE_0__[\"mapMutations\"])([\"setGeneralFilter\"]),\n\n addCart(dataItemId) {\n if (this.$route.name == \"CustomerDetail\" || this.$route.name == \"OvdHome\") {\n this.getPackageDetail([dataItemId, this.cusId]).then(() => {\n this.packageDetail = this.getPackageInfo;\n this.getMarket([this.packageDetail.application.applicationId, this.packageDetail.platform.platformId, this.cusId]).then(() => {\n this.marketInfo = this.getMarketInfo;\n });\n this.isPopupVisible = true;\n this.$emit(\"checkIsPopupOpen\", true);\n });\n } else {\n this.getDraftPackageDetail([dataItemId, this.cusId]).then(() => {\n this.packageDetail = this.getPackageInfo;\n this.getMarket([this.packageDetail.application.applicationId, this.packageDetail.platform.platformId, this.cusId]).then(() => {\n this.marketInfo = this.getMarketInfo;\n });\n this.isPopupVisible = true;\n this.$emit(\"checkIsPopupOpen\", true);\n });\n }\n },\n\n cancel(purchaseId) {\n this.cancelPackage(purchaseId).then(res => {\n if (res.data === true) {\n this.getAllPackages(this.cusId);\n this.$toast.success(\"İptal Edildi\");\n this.closeModal();\n }\n });\n },\n\n closePopup() {\n this.isPopupVisible = false;\n this.$emit(\"checkIsPopupOpen\", false);\n },\n\n showModal(packageStatus) {\n if (packageStatus === 5) {\n this.$toast.error(\"Paketiniz zaten pasif durumdadır.\");\n } else {\n this.$modal.show(packageStatus);\n }\n },\n\n closeModal() {\n this.$emit(\"checkIsPopupOpen\", false);\n this.$modal.hide(this.getDataItemId);\n },\n\n changeStartDate(val) {\n const args = {\n PurchaseNumber: this.dataItem.purchaseNo,\n DateSelection: val,\n cusId: this.cusId\n };\n this.getPurchaseChangeStartDate(args).then(res => {\n if (res !== null && res !== void 0 && res.error) {\n this.$toast.error(res.message);\n } else {\n this.$toast.success(\"Başarıyla güncelleme yapıldı.\");\n this.getAllPackages(this.cusId);\n }\n });\n },\n\n getTime(dateTime, formatType) {\n let stringDateTime = String(dateTime);\n let generateMomentDate = this.$moment(new Date(stringDateTime)).format(formatType);\n return generateMomentDate;\n },\n\n accordionToggle() {\n this.isActive = !this.isActive;\n }\n\n }\n});\n\n//# sourceURL=webpack://OsmanliPackage/./src/components/customer/DataRequestItem.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");
|
|
1651
1651
|
|
|
1652
1652
|
/***/ }),
|
|
1653
1653
|
|
|
@@ -1695,7 +1695,7 @@ eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var vuex
|
|
|
1695
1695
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
1696
1696
|
|
|
1697
1697
|
"use strict";
|
|
1698
|
-
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 _PackageSettingType_vue__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./PackageSettingType.vue */ \"./src/components/customer/PackageSettingType.vue\");\n/* harmony import */ var _components__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @/components */ \"./src/components/index.js\");\n/* harmony import */ var _mixins___WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../mixins/ */ \"./src/mixins/index.js\");\n/* harmony import */ var _base_InfoArea_vue__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../base/InfoArea.vue */ \"./src/components/base/InfoArea.vue\");\n/* harmony import */ var _constants__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../constants */ \"./src/constants/index.js\");\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n\n\n\n\n\n\n/* harmony default export */ __webpack_exports__[\"default\"] = ({\n name: \"PackageSettigns\",\n mixins: [_mixins___WEBPACK_IMPORTED_MODULE_3__[\"default\"]],\n components: {\n BaseButton: _components__WEBPACK_IMPORTED_MODULE_2__[\"BaseButton\"],\n BaseIcon: _components__WEBPACK_IMPORTED_MODULE_2__[\"BaseIcon\"],\n PopupRight: _components__WEBPACK_IMPORTED_MODULE_2__[\"PopupRight\"],\n PackageSettingType: _PackageSettingType_vue__WEBPACK_IMPORTED_MODULE_1__[\"default\"],\n AccordionResearch: _components__WEBPACK_IMPORTED_MODULE_2__[\"AccordionResearch\"],\n AccordionForeign: _components__WEBPACK_IMPORTED_MODULE_2__[\"AccordionForeign\"],\n AccordionAlgoServer: _components__WEBPACK_IMPORTED_MODULE_2__[\"AccordionAlgoServer\"],\n InfoArea: _base_InfoArea_vue__WEBPACK_IMPORTED_MODULE_4__[\"default\"]\n },\n props: {\n dataItem: Object,\n marketInfo: Array,\n isPopupVisible: Boolean\n },\n\n data() {\n return {\n isResponsive: false,\n fund: 0,\n commission: 0,\n topPrice: 0,\n bottomFund: 0,\n bottomCommission: 0,\n totalPrice: 0,\n startDateSelection: this.dataItem.dateSelection,\n selectData: [],\n research: [],\n foreign: [],\n algoServer: [],\n isButtonClicked: false,\n warningMessage: 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.\",\n startDate: [{\n label: \"Seçiniz\",\n code: -1\n }, {\n label: \"Hemen\",\n code: 0\n }, {\n label: \"Ay Başında\",\n code: 1\n }],\n cusId: null\n };\n },\n\n created() {\n this.handleWidth();\n window.addEventListener(\"resize\", this.handleWidth());\n },\n\n mounted() {\n this.setSelectedForeign([]);\n this.setSelectedAlgoServer([]);\n this.setSelectedResearch([]);\n this.cusId = this.$route.params.customerId !== undefined ? this.$route.params.customerId : null;\n\n if (this.$route.name === \"Checkout\") {\n this.cusId = this.$route.query.c !== undefined ? this.$route.query.c : this.$route.params.customerId;\n this.startDateSelection = this.dataItem.dateSelection;\n }\n\n this.sumFundCommission();\n this.getForeign([this.dataItem.application.applicationId, this.dataItem.platform.platformId, this.cusId]).then(res => {\n let details = {};\n details = res.data;\n\n if (this.getDraftPackageDetails.foreignIndice) {\n this.getDraftPackageDetails.foreignIndice.forEach((element, index) => {\n if (element.foreignIndiceFeature.id == details[index].id) {\n details[index].dateSelection = Number(element.dateSelection.key);\n }\n });\n }\n\n this.foreign.push({\n id: 2,\n active: false,\n title: \"Yabancı Endeksler\",\n details\n });\n });\n this.getResearch([this.dataItem.application.applicationId, this.cusId]).then(res => {\n let details = {};\n details = res.data;\n\n if (this.getDraftPackageDetails.research) {\n this.getDraftPackageDetails.research.forEach((element, index) => {\n if (element.researchFeature.id == details[index].id) {\n details[index].dateSelection = Number(element.dateSelection.key);\n }\n });\n }\n\n this.research = [{\n id: 1,\n active: false,\n title: \"Araştırma ve Diğer Uygulamalar\",\n details\n }];\n });\n this.getAlgoServer([this.dataItem.application.applicationId, this.cusId]).then(res => {\n let details = {};\n details = res.data;\n\n if (this.getDraftPackageDetails.algorithm) {\n this.getDraftPackageDetails.algorithm.forEach((element, index) => {\n if (element.algorithmFeature.id == details[index].id) {\n details[index].dateSelection = Number(element.dateSelection.key);\n }\n });\n }\n\n this.algoServer.push({\n id: 3,\n active: false,\n title: \"Algoritmalar\",\n details\n });\n });\n },\n\n computed: { ...Object(vuex__WEBPACK_IMPORTED_MODULE_0__[\"mapGetters\"])([\"getSelectedAlgoServerInfo\", \"customer\", \"getResearchInfo\", \"getSelectedForeignInfo\", \"getForeignInfo\", \"getAlgoServerInfo\", \"getSelectedResearchInfo\", \"getPackageInfo\", \"getDraftPackageDetails\", \"getUserInfo\"]),\n\n getMemberType() {\n return this.getUserInfo.memberType;\n },\n\n currencySymbol() {\n return _constants__WEBPACK_IMPORTED_MODULE_5__[\"CurrencySymbol\"];\n },\n\n researchTotal() {\n return this.getSelectedResearchInfo.reduce((totald, item) => {\n return ((item === null || item === void 0 ? void 0 : item.price) || 0) + totald;\n }, 0);\n },\n\n foraignDollarTotal() {\n return this.getSelectedForeignInfo.reduce((totald, item) => {\n if (item.priceInfo === \"$\") {\n return ((item === null || item === void 0 ? void 0 : item.price) || 0) + totald;\n } else {\n return 0 + totald;\n }\n }, 0);\n },\n\n getStartDateSelection() {\n return this.dataItem.dateSelection;\n },\n\n foraignEuroTotal() {\n return this.getSelectedForeignInfo.reduce((totald, item) => {\n if (item.priceInfo === \"€\") {\n return ((item === null || item === void 0 ? void 0 : item.price) || 0) + totald;\n } else {\n return 0 + totald;\n }\n }, 0);\n },\n\n algoServerTotal() {\n return this.getSelectedAlgoServerInfo.reduce((totald, item) => {\n return ((item === null || item === void 0 ? void 0 : item.price) || 0) + totald;\n }, 0);\n },\n\n researchFund() {\n return this.getSelectedResearchInfo.reduce((totald, item) => {\n return ((item === null || item === void 0 ? void 0 : item.fundAmount) || 0) + totald;\n }, 0);\n },\n\n foreignFund() {\n return this.getSelectedForeignInfo.reduce((totald, item) => {\n return ((item === null || item === void 0 ? void 0 : item.fundAmount) || 0) + totald;\n }, 0);\n },\n\n algoServerFund() {\n return this.getSelectedAlgoServerInfo.reduce((totald, item) => {\n return ((item === null || item === void 0 ? void 0 : item.fundAmount) || 0) + totald;\n }, 0);\n },\n\n researchCommission() {\n return this.getSelectedResearchInfo.reduce((totald, item) => {\n return ((item === null || item === void 0 ? void 0 : item.commissionAmount) || 0) + totald;\n }, 0);\n },\n\n foreignCommission() {\n return this.getSelectedForeignInfo.reduce((totald, item) => {\n return ((item === null || item === void 0 ? void 0 : item.commissionAmount) || 0) + totald;\n }, 0);\n },\n\n foraignTurkishLiraTotal() {\n return this.getSelectedForeignInfo.reduce((totald, item) => {\n if (item.priceInfo === \"₺\") {\n return ((item === null || item === void 0 ? void 0 : item.price) || 0) + totald;\n } else {\n return 0 + totald;\n }\n }, 0);\n },\n\n algoServerCommission() {\n return this.getSelectedAlgoServerInfo.reduce((totald, item) => {\n return ((item === null || item === void 0 ? void 0 : item.commissionAmount) || 0) + totald;\n }, 0);\n },\n\n totalPriceDollar() {\n var _this$dataItem, _this$dataItem$price, _this$dataItem$price$;\n\n return (_this$dataItem = this.dataItem) === null || _this$dataItem === void 0 ? void 0 : (_this$dataItem$price = _this$dataItem.price) === null || _this$dataItem$price === void 0 ? void 0 : (_this$dataItem$price$ = _this$dataItem$price.prices) === null || _this$dataItem$price$ === void 0 ? void 0 : _this$dataItem$price$.filter(e => e.info === this.currencySymbol.dolar)[0];\n },\n\n totalPriceEuro() {\n var _this$dataItem2, _this$dataItem2$price, _this$dataItem2$price2;\n\n return (_this$dataItem2 = this.dataItem) === null || _this$dataItem2 === void 0 ? void 0 : (_this$dataItem2$price = _this$dataItem2.price) === null || _this$dataItem2$price === void 0 ? void 0 : (_this$dataItem2$price2 = _this$dataItem2$price.prices) === null || _this$dataItem2$price2 === void 0 ? void 0 : _this$dataItem2$price2.filter(e => e.info === this.currencySymbol.euro)[0];\n },\n\n totalPriceTl() {\n var _this$dataItem3, _this$dataItem3$price, _this$dataItem3$price2;\n\n return (_this$dataItem3 = this.dataItem) === null || _this$dataItem3 === void 0 ? void 0 : (_this$dataItem3$price = _this$dataItem3.price) === null || _this$dataItem3$price === void 0 ? void 0 : (_this$dataItem3$price2 = _this$dataItem3$price.prices) === null || _this$dataItem3$price2 === void 0 ? void 0 : _this$dataItem3$price2.filter(e => e.info === this.currencySymbol.tl)[0].totalPrice;\n },\n\n totalPriceCalc() {\n var _this$totalPriceDolla, _this$totalPriceEuro;\n\n let totalDollar = `${this.totalPriceDollar ? ` + ${this.formatPriceDollar((_this$totalPriceDolla = this.totalPriceDollar) === null || _this$totalPriceDolla === void 0 ? void 0 : _this$totalPriceDolla.totalPrice)} Dolar` : \"\"}`;\n let totalEuro = `${this.totalPriceEuro ? ` + ${this.formatPriceEuro((_this$totalPriceEuro = this.totalPriceEuro) === null || _this$totalPriceEuro === void 0 ? void 0 : _this$totalPriceEuro.totalPrice)} Euro` : \"\"}`;\n return this.formatPrice(this.totalPriceTl) + this.currencySymbol.tl + totalDollar + totalEuro;\n }\n\n },\n methods: { ...Object(vuex__WEBPACK_IMPORTED_MODULE_0__[\"mapActions\"])([\"getForeign\", \"getAllPackages\", \"getDraftPackageDetail\", \"getResearch\", \"updatePackage\", \"getAlgoServer\", \"createPackage\"]),\n ...Object(vuex__WEBPACK_IMPORTED_MODULE_0__[\"mapMutations\"])([\"setSelectedForeign\", \"setSelectedAlgoServer\", \"setSelectedResearch\"]),\n\n checkSpesificWarning(param) {\n this.warningMessage = param;\n },\n\n setDefaultValues() {\n this.bottomCommission = 0;\n this.totalPrice = 0;\n this.bottomFund = 0;\n this.selectData = [];\n this.startDateSelection = this.startDate[0].code;\n this.setSelectedForeign([]);\n this.setSelectedAlgoServer([]);\n this.setSelectedResearch([]);\n this.$emit(\"close\");\n },\n\n handleWidth() {\n let w = window.innerWidth;\n this.isResponsive = w <= 640;\n },\n\n sumFundCommission() {\n this.fund = this.dataItem.price.totalFundAmount;\n this.commission = this.dataItem.price.totalCommissionAmount;\n this.topPrice = this.totalPriceCalc;\n this.totalPrice = this.topPrice;\n },\n\n changeSelected(data) {\n this.selectData = data;\n },\n\n async submitShow() {\n this.isButtonClicked = true;\n const packageData = this.buildPackageData();\n const getEveryDateSelection = packageData.filter(o => o.dateSelection == -1);\n const getResearchDateSelection = this.getSelectedResearchInfo.filter(o => o.dateSelection == -1);\n const getForeignDateSelection = this.getSelectedForeignInfo.filter(o => o.dateSelection == -1);\n const getSelectedAlgoSvInfo = this.getSelectedAlgoServerInfo.filter(o => o.dateSelection == -1);\n\n if (getEveryDateSelection.length > 0 || getResearchDateSelection.length > 0 || getForeignDateSelection.length > 0 || getSelectedAlgoSvInfo.length > 0) {\n this.$toast.error(\"Başlangıç zamanı seçiniz.\");\n this.isButtonClicked = false;\n return;\n }\n\n const researchData = this.buildResearchData();\n const foreignData = this.buildForeignData();\n const algoServerData = this.buildAlgoServerData();\n const args = this.buildArgsObject(packageData, researchData, foreignData, algoServerData);\n const actionName = this.getActionName();\n const sendAction = await this[actionName](args);\n\n if (sendAction.error) {\n this.handleError(sendAction);\n } else {\n this.handleSuccess(sendAction, actionName);\n this.args = {};\n }\n },\n\n buildPackageData() {\n return this.selectData.map(item => {\n var _this$dataItem4, _this$dataItem4$appli, _this$dataItem5, _this$dataItem5$platf, _item$marketFeature, _item$perspectiveFeat, _item$vendorFeature, _item$vendorFeature2, _item$vendorFeature3;\n\n return {\n applicationId: (_this$dataItem4 = this.dataItem) === null || _this$dataItem4 === void 0 ? void 0 : (_this$dataItem4$appli = _this$dataItem4.application) === null || _this$dataItem4$appli === void 0 ? void 0 : _this$dataItem4$appli.id,\n platformId: ((_this$dataItem5 = this.dataItem) === null || _this$dataItem5 === void 0 ? void 0 : (_this$dataItem5$platf = _this$dataItem5.platform) === null || _this$dataItem5$platf === void 0 ? void 0 : _this$dataItem5$platf.id) || null,\n marketId: (item === null || item === void 0 ? void 0 : (_item$marketFeature = item.marketFeature) === null || _item$marketFeature === void 0 ? void 0 : _item$marketFeature.id) || null,\n perspectiveId: (item === null || item === void 0 ? void 0 : (_item$perspectiveFeat = item.perspectiveFeature) === null || _item$perspectiveFeat === void 0 ? void 0 : _item$perspectiveFeat.id) || null,\n vendorId: (item === null || item === void 0 ? void 0 : (_item$vendorFeature = item.vendorFeature) === null || _item$vendorFeature === void 0 ? void 0 : _item$vendorFeature.id) === undefined || (item === null || item === void 0 ? void 0 : (_item$vendorFeature2 = item.vendorFeature) === null || _item$vendorFeature2 === void 0 ? void 0 : _item$vendorFeature2.id) === null ? null : item === null || item === void 0 ? void 0 : (_item$vendorFeature3 = item.vendorFeature) === null || _item$vendorFeature3 === void 0 ? void 0 : _item$vendorFeature3.id,\n dateSelection: item.dateSelection\n };\n });\n },\n\n buildResearchData() {\n return this.getSelectedResearchInfo.map(item => ({\n applicationId: this.dataItem.application.id || null,\n researchId: item.id || null,\n dateSelection: item.dateSelection\n }));\n },\n\n buildForeignData() {\n return this.getSelectedForeignInfo.map(item => ({\n applicationId: this.dataItem.application.id,\n foreignIndiceId: item.id || null,\n dateSelection: item.dateSelection\n }));\n },\n\n buildAlgoServerData() {\n return this.getSelectedAlgoServerInfo.map(item => ({\n applicationId: this.dataItem.application.id,\n algorithmAndServerId: item.id || null,\n dateSelection: item.dateSelection\n }));\n },\n\n buildArgsObject(packageData, researchData, foreignData, algoServerData) {\n var _this$dataItem6, _this$dataItem6$appli, _this$dataItem7, _this$dataItem7$platf, _this$dataItem8, _this$dataItem9, _this$dataItem9$platf;\n\n return {\n customerId: this.customer.id,\n purchaseId: this.dataItem.id,\n purchaseNumber: this.dataItem.purchaseNo.toString(),\n applicationId: ((_this$dataItem6 = this.dataItem) === null || _this$dataItem6 === void 0 ? void 0 : (_this$dataItem6$appli = _this$dataItem6.application) === null || _this$dataItem6$appli === void 0 ? void 0 : _this$dataItem6$appli.applicationId) || null,\n platformId: ((_this$dataItem7 = this.dataItem) === null || _this$dataItem7 === void 0 ? void 0 : (_this$dataItem7$platf = _this$dataItem7.platform) === null || _this$dataItem7$platf === void 0 ? void 0 : _this$dataItem7$platf.platformId) || null,\n applicationFeatureId: ((_this$dataItem8 = this.dataItem) === null || _this$dataItem8 === void 0 ? void 0 : _this$dataItem8.application.id) || null,\n platformFeatureId: (_this$dataItem9 = this.dataItem) === null || _this$dataItem9 === void 0 ? void 0 : (_this$dataItem9$platf = _this$dataItem9.platform) === null || _this$dataItem9$platf === void 0 ? void 0 : _this$dataItem9$platf.id,\n features: packageData,\n research: researchData,\n foreignIndice: foreignData,\n algorithmAndServer: algoServerData,\n cusId: this.cusId\n };\n },\n\n getActionName() {\n return this.dataItem.packageStatus.id === 2 ? \"updatePackage\" : \"createPackage\";\n },\n\n handleError(res) {\n if (res.result !== undefined && res.result !== null) {\n this.$toast.error(res.result.data[0].errors[0]);\n } else {\n this.$toast.error(res.message);\n }\n\n this.isButtonClicked = false;\n },\n\n handleSuccess(res, actionName) {\n if (actionName === \"updatePackage\") {\n this.handleUpdatePackageSuccess(res);\n } else {\n this.handleCreatePackageSuccess(res);\n }\n },\n\n async handleUpdatePackageSuccess() {\n const response = await this.getDraftPackageDetail([this.dataItem.id, this.cusId]);\n setTimeout(() => {\n this.$router.push({\n name: \"Checkout\",\n params: {\n packageNumber: response.data.id,\n customerNumber: this.getMemberType == 3 ? localStorage.getItem(\"userId\") : this.$route.params.customerNumber\n },\n query: {\n c: this.getMemberType == 3 ? localStorage.getItem(\"userId\") : this.$route.query.c,\n timeStamp: new Date()\n }\n }).catch(() => {\n location.reload();\n });\n }, 300);\n },\n\n handleCreatePackageSuccess(res) {\n if (this.$route.name === \"Checkout\") {\n this.$router.push({\n name: \"Checkout\",\n params: {\n packageNumber: res.purchaseId,\n customerNumber: this.$route.params.customerNumber\n },\n query: {\n c: this.$route.query.c\n }\n });\n } else {\n this.$emit(\"close\");\n this.getAllPackages(this.cusId);\n }\n\n this.setSelectedResearch([]);\n this.setSelectedForeign([]);\n this.setSelectedAlgoServer([]);\n },\n\n calculatePrice(items) {\n var _this$dataItem$applic, _this$dataItem$applic2;\n\n this.bottomFund = items.reduce((totald, item) => {\n var _item$marketFeature2, _item$perspectiveFeat2, _item$vendorFeature4;\n\n return ((item === null || item === void 0 ? void 0 : (_item$marketFeature2 = item.marketFeature) === null || _item$marketFeature2 === void 0 ? void 0 : _item$marketFeature2.fundAmount) || 0) + ((item === null || item === void 0 ? void 0 : (_item$perspectiveFeat2 = item.perspectiveFeature) === null || _item$perspectiveFeat2 === void 0 ? void 0 : _item$perspectiveFeat2.fundAmount) || 0) + ((item === null || item === void 0 ? void 0 : (_item$vendorFeature4 = item.vendorFeature) === null || _item$vendorFeature4 === void 0 ? void 0 : _item$vendorFeature4.fundAmount) || 0) + totald;\n }, (_this$dataItem$applic = this.dataItem.application) === null || _this$dataItem$applic === void 0 ? void 0 : _this$dataItem$applic.fundAmount);\n this.bottomCommission = items.reduce((totald, item) => {\n var _item$marketFeature3, _item$perspectiveFeat3, _item$vendorFeature5;\n\n return ((item === null || item === void 0 ? void 0 : (_item$marketFeature3 = item.marketFeature) === null || _item$marketFeature3 === void 0 ? void 0 : _item$marketFeature3.commissionAmount) || 0) + ((item === null || item === void 0 ? void 0 : (_item$perspectiveFeat3 = item.perspectiveFeature) === null || _item$perspectiveFeat3 === void 0 ? void 0 : _item$perspectiveFeat3.commissionAmount) || 0) + ((item === null || item === void 0 ? void 0 : (_item$vendorFeature5 = item.vendorFeature) === null || _item$vendorFeature5 === void 0 ? void 0 : _item$vendorFeature5.commissionAmount) || 0) + totald;\n }, (_this$dataItem$applic2 = this.dataItem.application) === null || _this$dataItem$applic2 === void 0 ? void 0 : _this$dataItem$applic2.commissionAmount);\n const total = items.reduce((totald, item) => {\n var _item$perspectiveFeat4, _item$vendorFeature6;\n\n return (\n /* (item?.marketFeature?.price || 0) +\n (item?.platformFeature?.price || 0)*/\n +((item === null || item === void 0 ? void 0 : (_item$perspectiveFeat4 = item.perspectiveFeature) === null || _item$perspectiveFeat4 === void 0 ? void 0 : _item$perspectiveFeat4.price) || 0) + ((item === null || item === void 0 ? void 0 : (_item$vendorFeature6 = item.vendorFeature) === null || _item$vendorFeature6 === void 0 ? void 0 : _item$vendorFeature6.price) || 0) + totald\n );\n }, 0);\n this.totalPrice = total + this.dataItem.application.price;\n },\n\n calculateTotalPrice() {\n return this.dataItem.price + this.totalPrice + this.researchTotal() + this.foraignTurkishLiraTotal() + this.algoServerTotal();\n }\n\n },\n watch: {\n selectData: {\n handler(newVal) {\n this.calculatePrice(newVal);\n },\n\n deep: true,\n immediate: true\n }\n }\n});\n\n//# sourceURL=webpack://OsmanliPackage/./src/components/customer/PackageSettigns.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");
|
|
1698
|
+
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 _PackageSettingType_vue__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./PackageSettingType.vue */ \"./src/components/customer/PackageSettingType.vue\");\n/* harmony import */ var _components__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @/components */ \"./src/components/index.js\");\n/* harmony import */ var _mixins___WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../mixins/ */ \"./src/mixins/index.js\");\n/* harmony import */ var _base_InfoArea_vue__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../base/InfoArea.vue */ \"./src/components/base/InfoArea.vue\");\n/* harmony import */ var _constants__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../constants */ \"./src/constants/index.js\");\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n\n\n\n\n\n\n/* harmony default export */ __webpack_exports__[\"default\"] = ({\n name: \"PackageSettigns\",\n mixins: [_mixins___WEBPACK_IMPORTED_MODULE_3__[\"default\"]],\n components: {\n BaseButton: _components__WEBPACK_IMPORTED_MODULE_2__[\"BaseButton\"],\n BaseIcon: _components__WEBPACK_IMPORTED_MODULE_2__[\"BaseIcon\"],\n PopupRight: _components__WEBPACK_IMPORTED_MODULE_2__[\"PopupRight\"],\n PackageSettingType: _PackageSettingType_vue__WEBPACK_IMPORTED_MODULE_1__[\"default\"],\n AccordionResearch: _components__WEBPACK_IMPORTED_MODULE_2__[\"AccordionResearch\"],\n AccordionForeign: _components__WEBPACK_IMPORTED_MODULE_2__[\"AccordionForeign\"],\n AccordionAlgoServer: _components__WEBPACK_IMPORTED_MODULE_2__[\"AccordionAlgoServer\"],\n InfoArea: _base_InfoArea_vue__WEBPACK_IMPORTED_MODULE_4__[\"default\"]\n },\n props: {\n dataItem: Object,\n marketInfo: Array,\n isPopupVisible: Boolean\n },\n\n data() {\n return {\n isResponsive: false,\n fund: 0,\n commission: 0,\n topPrice: 0,\n bottomFund: 0,\n bottomCommission: 0,\n totalPrice: 0,\n startDateSelection: this.dataItem.dateSelection,\n selectData: [],\n research: [],\n foreign: [],\n algoServer: [],\n isButtonClicked: false,\n warningMessage: 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.\",\n startDate: [{\n label: \"Seçiniz\",\n code: -1\n }, {\n label: \"Hemen\",\n code: 0\n }, {\n label: \"Ay Başında\",\n code: 1\n }],\n cusId: null\n };\n },\n\n created() {\n this.handleWidth();\n window.addEventListener(\"resize\", this.handleWidth());\n },\n\n mounted() {\n this.setSelectedForeign([]);\n this.setSelectedAlgoServer([]);\n this.setSelectedResearch([]);\n this.cusId = this.$route.params.customerId !== undefined ? this.$route.params.customerId : null;\n\n if (this.$route.name === \"Checkout\") {\n this.cusId = this.$route.query.c !== undefined ? this.$route.query.c : this.$route.params.customerId;\n this.startDateSelection = this.dataItem.dateSelection;\n }\n\n this.sumFundCommission();\n this.getForeign([this.dataItem.application.applicationId, this.dataItem.platform.platformId, this.cusId]).then(res => {\n let details = {};\n details = res.data;\n\n if (this.getDraftPackageDetails.foreignIndice) {\n this.getDraftPackageDetails.foreignIndice.forEach((element, index) => {\n if (element.foreignIndiceFeature.id == details[index].id) {\n details[index].dateSelection = Number(element.dateSelection.key);\n }\n });\n }\n\n this.foreign.push({\n id: 2,\n active: false,\n title: \"Yabancı Endeksler\",\n details\n });\n });\n this.getResearch([this.dataItem.application.applicationId, this.cusId]).then(res => {\n let details = {};\n details = res.data;\n\n if (this.getDraftPackageDetails.research) {\n this.getDraftPackageDetails.research.forEach((element, index) => {\n if (element.researchFeature.id == details[index].id) {\n details[index].dateSelection = Number(element.dateSelection.key);\n }\n });\n }\n\n this.research = [{\n id: 1,\n active: false,\n title: \"Araştırma ve Diğer Uygulamalar\",\n details\n }];\n });\n this.$nextTick(() => {\n this.getAlgoServer([this.dataItem.application.applicationId, this.cusId]).then(res => {\n let details = {};\n details = res.data;\n\n if (this.getDraftPackageDetails.algorithm) {\n this.getDraftPackageDetails.algorithm.forEach((element, index) => {\n if (element.algorithmFeature.id == details[index].id) {\n details[index].dateSelection = Number(element.dateSelection.key);\n }\n });\n }\n\n this.algoServer.push({\n id: 3,\n active: false,\n title: \"Algoritmalar\",\n details\n });\n });\n });\n },\n\n computed: { ...Object(vuex__WEBPACK_IMPORTED_MODULE_0__[\"mapGetters\"])([\"getSelectedAlgoServerInfo\", \"customer\", \"getResearchInfo\", \"getSelectedForeignInfo\", \"getForeignInfo\", \"getAlgoServerInfo\", \"getSelectedResearchInfo\", \"getPackageInfo\", \"getDraftPackageDetails\", \"getUserInfo\"]),\n\n getMemberType() {\n return this.getUserInfo.memberType;\n },\n\n currencySymbol() {\n return _constants__WEBPACK_IMPORTED_MODULE_5__[\"CurrencySymbol\"];\n },\n\n researchTotal() {\n return this.getSelectedResearchInfo.reduce((totald, item) => {\n return ((item === null || item === void 0 ? void 0 : item.price) || 0) + totald;\n }, 0);\n },\n\n foraignDollarTotal() {\n return this.getSelectedForeignInfo.reduce((totald, item) => {\n if (item.priceInfo === \"$\") {\n return ((item === null || item === void 0 ? void 0 : item.price) || 0) + totald;\n } else {\n return 0 + totald;\n }\n }, 0);\n },\n\n getStartDateSelection() {\n return this.dataItem.dateSelection;\n },\n\n foraignEuroTotal() {\n return this.getSelectedForeignInfo.reduce((totald, item) => {\n if (item.priceInfo === \"€\") {\n return ((item === null || item === void 0 ? void 0 : item.price) || 0) + totald;\n } else {\n return 0 + totald;\n }\n }, 0);\n },\n\n algoServerTotal() {\n return this.getSelectedAlgoServerInfo.reduce((totald, item) => {\n return ((item === null || item === void 0 ? void 0 : item.price) || 0) + totald;\n }, 0);\n },\n\n researchFund() {\n return this.getSelectedResearchInfo.reduce((totald, item) => {\n return ((item === null || item === void 0 ? void 0 : item.fundAmount) || 0) + totald;\n }, 0);\n },\n\n foreignFund() {\n return this.getSelectedForeignInfo.reduce((totald, item) => {\n return ((item === null || item === void 0 ? void 0 : item.fundAmount) || 0) + totald;\n }, 0);\n },\n\n algoServerFund() {\n return this.getSelectedAlgoServerInfo.reduce((totald, item) => {\n return ((item === null || item === void 0 ? void 0 : item.fundAmount) || 0) + totald;\n }, 0);\n },\n\n researchCommission() {\n return this.getSelectedResearchInfo.reduce((totald, item) => {\n return ((item === null || item === void 0 ? void 0 : item.commissionAmount) || 0) + totald;\n }, 0);\n },\n\n foreignCommission() {\n return this.getSelectedForeignInfo.reduce((totald, item) => {\n return ((item === null || item === void 0 ? void 0 : item.commissionAmount) || 0) + totald;\n }, 0);\n },\n\n foraignTurkishLiraTotal() {\n return this.getSelectedForeignInfo.reduce((totald, item) => {\n if (item.priceInfo === \"₺\") {\n return ((item === null || item === void 0 ? void 0 : item.price) || 0) + totald;\n } else {\n return 0 + totald;\n }\n }, 0);\n },\n\n algoServerCommission() {\n return this.getSelectedAlgoServerInfo.reduce((totald, item) => {\n return ((item === null || item === void 0 ? void 0 : item.commissionAmount) || 0) + totald;\n }, 0);\n },\n\n totalPriceDollar() {\n var _this$dataItem, _this$dataItem$price, _this$dataItem$price$;\n\n return (_this$dataItem = this.dataItem) === null || _this$dataItem === void 0 ? void 0 : (_this$dataItem$price = _this$dataItem.price) === null || _this$dataItem$price === void 0 ? void 0 : (_this$dataItem$price$ = _this$dataItem$price.prices) === null || _this$dataItem$price$ === void 0 ? void 0 : _this$dataItem$price$.filter(e => e.info === this.currencySymbol.dolar)[0];\n },\n\n totalPriceEuro() {\n var _this$dataItem2, _this$dataItem2$price, _this$dataItem2$price2;\n\n return (_this$dataItem2 = this.dataItem) === null || _this$dataItem2 === void 0 ? void 0 : (_this$dataItem2$price = _this$dataItem2.price) === null || _this$dataItem2$price === void 0 ? void 0 : (_this$dataItem2$price2 = _this$dataItem2$price.prices) === null || _this$dataItem2$price2 === void 0 ? void 0 : _this$dataItem2$price2.filter(e => e.info === this.currencySymbol.euro)[0];\n },\n\n totalPriceTl() {\n var _this$dataItem3, _this$dataItem3$price, _this$dataItem3$price2;\n\n return (_this$dataItem3 = this.dataItem) === null || _this$dataItem3 === void 0 ? void 0 : (_this$dataItem3$price = _this$dataItem3.price) === null || _this$dataItem3$price === void 0 ? void 0 : (_this$dataItem3$price2 = _this$dataItem3$price.prices) === null || _this$dataItem3$price2 === void 0 ? void 0 : _this$dataItem3$price2.filter(e => e.info === this.currencySymbol.tl)[0].totalPrice;\n },\n\n totalPriceCalc() {\n var _this$totalPriceDolla, _this$totalPriceEuro;\n\n let totalDollar = `${this.totalPriceDollar ? ` + ${this.formatPriceDollar((_this$totalPriceDolla = this.totalPriceDollar) === null || _this$totalPriceDolla === void 0 ? void 0 : _this$totalPriceDolla.totalPrice)} Dolar` : \"\"}`;\n let totalEuro = `${this.totalPriceEuro ? ` + ${this.formatPriceEuro((_this$totalPriceEuro = this.totalPriceEuro) === null || _this$totalPriceEuro === void 0 ? void 0 : _this$totalPriceEuro.totalPrice)} Euro` : \"\"}`;\n return this.formatPrice(this.totalPriceTl) + this.currencySymbol.tl + totalDollar + totalEuro;\n }\n\n },\n methods: { ...Object(vuex__WEBPACK_IMPORTED_MODULE_0__[\"mapActions\"])([\"getForeign\", \"getAllPackages\", \"getDraftPackageDetail\", \"getResearch\", \"updatePackage\", \"getAlgoServer\", \"createPackage\"]),\n ...Object(vuex__WEBPACK_IMPORTED_MODULE_0__[\"mapMutations\"])([\"setSelectedForeign\", \"setSelectedAlgoServer\", \"setSelectedResearch\"]),\n\n checkSpesificWarning(param) {\n this.warningMessage = param;\n },\n\n setDefaultValues() {\n this.bottomCommission = 0;\n this.totalPrice = 0;\n this.bottomFund = 0;\n this.selectData = [];\n this.startDateSelection = this.startDate[0].code;\n this.setSelectedForeign([]);\n this.setSelectedAlgoServer([]);\n this.setSelectedResearch([]);\n this.$emit(\"close\");\n },\n\n handleWidth() {\n let w = window.innerWidth;\n this.isResponsive = w <= 640;\n },\n\n sumFundCommission() {\n this.fund = this.dataItem.price.totalFundAmount;\n this.commission = this.dataItem.price.totalCommissionAmount;\n this.topPrice = this.totalPriceCalc;\n this.totalPrice = this.topPrice;\n },\n\n changeSelected(data) {\n this.selectData = data;\n },\n\n async submitShow() {\n this.isButtonClicked = true;\n const packageData = this.buildPackageData();\n const getEveryDateSelection = packageData.filter(o => o.dateSelection == -1);\n const getResearchDateSelection = this.getSelectedResearchInfo.filter(o => o.dateSelection == -1);\n const getForeignDateSelection = this.getSelectedForeignInfo.filter(o => o.dateSelection == -1);\n const getSelectedAlgoSvInfo = this.getSelectedAlgoServerInfo.filter(o => o.dateSelection == -1);\n\n if (getEveryDateSelection.length > 0 || getResearchDateSelection.length > 0 || getForeignDateSelection.length > 0 || getSelectedAlgoSvInfo.length > 0) {\n this.$toast.error(\"Başlangıç zamanı seçiniz.\");\n this.isButtonClicked = false;\n return;\n }\n\n const researchData = this.buildResearchData();\n const foreignData = this.buildForeignData();\n const algoServerData = this.buildAlgoServerData();\n const args = this.buildArgsObject(packageData, researchData, foreignData, algoServerData);\n const actionName = this.getActionName();\n const sendAction = await this[actionName](args);\n\n if (sendAction.error) {\n this.handleError(sendAction);\n } else {\n this.handleSuccess(sendAction, actionName);\n this.args = {};\n }\n },\n\n buildPackageData() {\n return this.selectData.map(item => {\n var _this$dataItem4, _this$dataItem4$appli, _this$dataItem5, _this$dataItem5$platf, _item$marketFeature, _item$perspectiveFeat, _item$vendorFeature, _item$vendorFeature2, _item$vendorFeature3;\n\n return {\n applicationId: (_this$dataItem4 = this.dataItem) === null || _this$dataItem4 === void 0 ? void 0 : (_this$dataItem4$appli = _this$dataItem4.application) === null || _this$dataItem4$appli === void 0 ? void 0 : _this$dataItem4$appli.id,\n platformId: ((_this$dataItem5 = this.dataItem) === null || _this$dataItem5 === void 0 ? void 0 : (_this$dataItem5$platf = _this$dataItem5.platform) === null || _this$dataItem5$platf === void 0 ? void 0 : _this$dataItem5$platf.id) || null,\n marketId: (item === null || item === void 0 ? void 0 : (_item$marketFeature = item.marketFeature) === null || _item$marketFeature === void 0 ? void 0 : _item$marketFeature.id) || null,\n perspectiveId: (item === null || item === void 0 ? void 0 : (_item$perspectiveFeat = item.perspectiveFeature) === null || _item$perspectiveFeat === void 0 ? void 0 : _item$perspectiveFeat.id) || null,\n vendorId: (item === null || item === void 0 ? void 0 : (_item$vendorFeature = item.vendorFeature) === null || _item$vendorFeature === void 0 ? void 0 : _item$vendorFeature.id) === undefined || (item === null || item === void 0 ? void 0 : (_item$vendorFeature2 = item.vendorFeature) === null || _item$vendorFeature2 === void 0 ? void 0 : _item$vendorFeature2.id) === null ? null : item === null || item === void 0 ? void 0 : (_item$vendorFeature3 = item.vendorFeature) === null || _item$vendorFeature3 === void 0 ? void 0 : _item$vendorFeature3.id,\n dateSelection: item.dateSelection\n };\n });\n },\n\n buildResearchData() {\n return this.getSelectedResearchInfo.map(item => ({\n applicationId: this.dataItem.application.id || null,\n researchId: item.id || null,\n dateSelection: item.dateSelection\n }));\n },\n\n buildForeignData() {\n return this.getSelectedForeignInfo.map(item => ({\n applicationId: this.dataItem.application.id,\n foreignIndiceId: item.id || null,\n dateSelection: item.dateSelection\n }));\n },\n\n buildAlgoServerData() {\n return this.getSelectedAlgoServerInfo.map(item => ({\n applicationId: this.dataItem.application.id,\n algorithmAndServerId: item.id || null,\n dateSelection: item.dateSelection\n }));\n },\n\n buildArgsObject(packageData, researchData, foreignData, algoServerData) {\n var _this$dataItem6, _this$dataItem6$appli, _this$dataItem7, _this$dataItem7$platf, _this$dataItem8, _this$dataItem9, _this$dataItem9$platf;\n\n return {\n customerId: this.customer.id,\n purchaseId: this.dataItem.id,\n purchaseNumber: this.dataItem.purchaseNo.toString(),\n applicationId: ((_this$dataItem6 = this.dataItem) === null || _this$dataItem6 === void 0 ? void 0 : (_this$dataItem6$appli = _this$dataItem6.application) === null || _this$dataItem6$appli === void 0 ? void 0 : _this$dataItem6$appli.applicationId) || null,\n platformId: ((_this$dataItem7 = this.dataItem) === null || _this$dataItem7 === void 0 ? void 0 : (_this$dataItem7$platf = _this$dataItem7.platform) === null || _this$dataItem7$platf === void 0 ? void 0 : _this$dataItem7$platf.platformId) || null,\n applicationFeatureId: ((_this$dataItem8 = this.dataItem) === null || _this$dataItem8 === void 0 ? void 0 : _this$dataItem8.application.id) || null,\n platformFeatureId: (_this$dataItem9 = this.dataItem) === null || _this$dataItem9 === void 0 ? void 0 : (_this$dataItem9$platf = _this$dataItem9.platform) === null || _this$dataItem9$platf === void 0 ? void 0 : _this$dataItem9$platf.id,\n features: packageData,\n research: researchData,\n foreignIndice: foreignData,\n algorithmAndServer: algoServerData,\n cusId: this.cusId\n };\n },\n\n getActionName() {\n return this.dataItem.packageStatus.id === 2 ? \"updatePackage\" : \"createPackage\";\n },\n\n handleError(res) {\n if (res.result !== undefined && res.result !== null) {\n this.$toast.error(res.result.data[0].errors[0]);\n } else {\n this.$toast.error(res.message);\n }\n\n this.isButtonClicked = false;\n },\n\n handleSuccess(res, actionName) {\n if (actionName === \"updatePackage\") {\n this.handleUpdatePackageSuccess(res);\n } else {\n this.handleCreatePackageSuccess(res);\n }\n },\n\n async handleUpdatePackageSuccess() {\n const response = await this.getDraftPackageDetail([this.dataItem.id, this.cusId]);\n setTimeout(() => {\n this.$router.push({\n name: \"Checkout\",\n params: {\n packageNumber: response.data.id,\n customerNumber: this.getMemberType == 3 ? localStorage.getItem(\"userId\") : this.$route.params.customerNumber\n },\n query: {\n c: this.getMemberType == 3 ? localStorage.getItem(\"userId\") : this.$route.query.c,\n timeStamp: new Date()\n }\n }).catch(() => {\n location.reload();\n });\n }, 300);\n },\n\n handleCreatePackageSuccess(res) {\n if (this.$route.name === \"Checkout\") {\n this.$router.push({\n name: \"Checkout\",\n params: {\n packageNumber: res.purchaseId,\n customerNumber: this.$route.params.customerNumber\n },\n query: {\n c: this.$route.query.c\n }\n });\n } else {\n this.$emit(\"close\");\n this.getAllPackages(this.cusId);\n }\n\n this.setSelectedResearch([]);\n this.setSelectedForeign([]);\n this.setSelectedAlgoServer([]);\n },\n\n calculatePrice(items) {\n var _this$dataItem$applic, _this$dataItem$applic2;\n\n this.bottomFund = items.reduce((totald, item) => {\n var _item$marketFeature2, _item$perspectiveFeat2, _item$vendorFeature4;\n\n return ((item === null || item === void 0 ? void 0 : (_item$marketFeature2 = item.marketFeature) === null || _item$marketFeature2 === void 0 ? void 0 : _item$marketFeature2.fundAmount) || 0) + ((item === null || item === void 0 ? void 0 : (_item$perspectiveFeat2 = item.perspectiveFeature) === null || _item$perspectiveFeat2 === void 0 ? void 0 : _item$perspectiveFeat2.fundAmount) || 0) + ((item === null || item === void 0 ? void 0 : (_item$vendorFeature4 = item.vendorFeature) === null || _item$vendorFeature4 === void 0 ? void 0 : _item$vendorFeature4.fundAmount) || 0) + totald;\n }, (_this$dataItem$applic = this.dataItem.application) === null || _this$dataItem$applic === void 0 ? void 0 : _this$dataItem$applic.fundAmount);\n this.bottomCommission = items.reduce((totald, item) => {\n var _item$marketFeature3, _item$perspectiveFeat3, _item$vendorFeature5;\n\n return ((item === null || item === void 0 ? void 0 : (_item$marketFeature3 = item.marketFeature) === null || _item$marketFeature3 === void 0 ? void 0 : _item$marketFeature3.commissionAmount) || 0) + ((item === null || item === void 0 ? void 0 : (_item$perspectiveFeat3 = item.perspectiveFeature) === null || _item$perspectiveFeat3 === void 0 ? void 0 : _item$perspectiveFeat3.commissionAmount) || 0) + ((item === null || item === void 0 ? void 0 : (_item$vendorFeature5 = item.vendorFeature) === null || _item$vendorFeature5 === void 0 ? void 0 : _item$vendorFeature5.commissionAmount) || 0) + totald;\n }, (_this$dataItem$applic2 = this.dataItem.application) === null || _this$dataItem$applic2 === void 0 ? void 0 : _this$dataItem$applic2.commissionAmount);\n const total = items.reduce((totald, item) => {\n var _item$perspectiveFeat4, _item$vendorFeature6;\n\n return (\n /* (item?.marketFeature?.price || 0) +\n (item?.platformFeature?.price || 0)*/\n +((item === null || item === void 0 ? void 0 : (_item$perspectiveFeat4 = item.perspectiveFeature) === null || _item$perspectiveFeat4 === void 0 ? void 0 : _item$perspectiveFeat4.price) || 0) + ((item === null || item === void 0 ? void 0 : (_item$vendorFeature6 = item.vendorFeature) === null || _item$vendorFeature6 === void 0 ? void 0 : _item$vendorFeature6.price) || 0) + totald\n );\n }, 0);\n this.totalPrice = total + this.dataItem.application.price;\n },\n\n calculateTotalPrice() {\n return this.dataItem.price + this.totalPrice + this.researchTotal() + this.foraignTurkishLiraTotal() + this.algoServerTotal();\n }\n\n },\n watch: {\n selectData: {\n handler(newVal) {\n this.calculatePrice(newVal);\n },\n\n deep: true,\n immediate: true\n }\n }\n});\n\n//# sourceURL=webpack://OsmanliPackage/./src/components/customer/PackageSettigns.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");
|
|
1699
1699
|
|
|
1700
1700
|
/***/ }),
|
|
1701
1701
|
|
|
@@ -1707,7 +1707,7 @@ eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var vuex
|
|
|
1707
1707
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
1708
1708
|
|
|
1709
1709
|
"use strict";
|
|
1710
|
-
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 _PackageSettingCreateType_vue__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./PackageSettingCreateType.vue */ \"./src/components/customer/PackageSettingCreateType.vue\");\n/* harmony import */ var _mixins__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../mixins */ \"./src/mixins/index.js\");\n/* harmony import */ var _components__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @/components */ \"./src/components/index.js\");\n/* harmony import */ var _base_InfoArea_vue__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../base/InfoArea.vue */ \"./src/components/base/InfoArea.vue\");\n/* harmony import */ var _base_Faq_vue__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../base/Faq.vue */ \"./src/components/base/Faq.vue\");\n/* harmony import */ var _constants__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../../constants */ \"./src/constants/index.js\");\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n\n\n\n\n\n\n\n/* harmony default export */ __webpack_exports__[\"default\"] = ({\n name: \"PackageSettingCreate\",\n mixins: [_mixins__WEBPACK_IMPORTED_MODULE_2__[\"default\"]],\n components: {\n BaseButton: _components__WEBPACK_IMPORTED_MODULE_3__[\"BaseButton\"],\n PopupRight: _components__WEBPACK_IMPORTED_MODULE_3__[\"PopupRight\"],\n PackageSettingCreateType: _PackageSettingCreateType_vue__WEBPACK_IMPORTED_MODULE_1__[\"default\"],\n AccordionResearch: _components__WEBPACK_IMPORTED_MODULE_3__[\"AccordionResearch\"],\n AccordionForeign: _components__WEBPACK_IMPORTED_MODULE_3__[\"AccordionForeign\"],\n AccordionAlgoServer: _components__WEBPACK_IMPORTED_MODULE_3__[\"AccordionAlgoServer\"],\n BaseInput: _components__WEBPACK_IMPORTED_MODULE_3__[\"BaseInput\"],\n BaseSelect: _components__WEBPACK_IMPORTED_MODULE_3__[\"BaseSelect\"],\n BaseIcon: _components__WEBPACK_IMPORTED_MODULE_3__[\"BaseIcon\"],\n InfoArea: _base_InfoArea_vue__WEBPACK_IMPORTED_MODULE_4__[\"default\"],\n Faq: _base_Faq_vue__WEBPACK_IMPORTED_MODULE_5__[\"default\"]\n },\n props: {\n dataItem: Object,\n platformInfo: Object,\n marketInfo: Array,\n isPopupVisible: Boolean,\n currentTab: String,\n isTerminal: Boolean,\n algoDetail: Object,\n isOperationWarning: Boolean,\n operationMessage: String,\n researchDetail: Object,\n isRuleMessageWarning: Boolean,\n mutableItemRuleMessage: String,\n isUpgraded: Boolean,\n startDates: Number\n },\n\n data() {\n return {\n fund: 0,\n commission: 0,\n bottomFund: 0,\n bottomCommission: 0,\n totalPrice: 0,\n startDateSelection: -1,\n selectData: [],\n research: [],\n foreign: [],\n algoServer: [],\n researchData: [],\n foreignData: [],\n algoServerData: [],\n args: {},\n argsAlgo: {},\n argsResearch: {},\n terminalNumber: null,\n isOperationWarningVal: this.isOperationWarning,\n isButtonClicked: false,\n itemRuleMessage: this.mutableItemRuleMessage,\n warningMessage: 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.\",\n startDate: [{\n label: \"Seçiniz\",\n code: -1\n }, {\n label: \"Hemen\",\n code: 0\n }, {\n label: \"Ay Başında\",\n code: 1\n }],\n cusId: null,\n showSections: true,\n triggerSelectbox: 0\n };\n },\n\n mounted() {\n this.searchCustomer();\n const cusId = this.$route.params.customerId !== undefined ? this.$route.params.customerId : null;\n\n if (this.currentTab != \"Algo\" && this.currentTab != \"Research\") {\n var _this$dataItem, _this$dataItem2, _this$dataItem3, _this$dataItem3$platf, _this$dataItem4;\n\n this.getResearch([(_this$dataItem = this.dataItem) === null || _this$dataItem === void 0 ? void 0 : _this$dataItem.applicationId, cusId]).then(res => {\n let details = {};\n details = res.data;\n this.research.push({\n id: 1,\n active: false,\n title: \"Araştırma ve Diğer Uygulamalar\",\n details\n });\n });\n this.getForeign([(_this$dataItem2 = this.dataItem) === null || _this$dataItem2 === void 0 ? void 0 : _this$dataItem2.applicationId, (_this$dataItem3 = this.dataItem) === null || _this$dataItem3 === void 0 ? void 0 : (_this$dataItem3$platf = _this$dataItem3.platform) === null || _this$dataItem3$platf === void 0 ? void 0 : _this$dataItem3$platf.id, cusId]).then(res => {\n let details = {};\n details = res.data;\n this.foreign.push({\n id: 2,\n active: false,\n title: \"Yabancı Endeksler\",\n details\n });\n });\n this.getAlgoServer([(_this$dataItem4 = this.dataItem) === null || _this$dataItem4 === void 0 ? void 0 : _this$dataItem4.applicationId, cusId]).then(res => {\n let details = {};\n details = res.data;\n this.algoServer.push({\n id: 3,\n active: false,\n title: \"Algoritmalar\",\n details\n });\n });\n }\n\n this.setSelectedResearch([]);\n this.setSelectedForeign([]);\n this.setSelectedAlgoServer([]);\n this.$nextTick(() => {\n if (this.setSelectboxList == 0 || this.setSelectboxList == 1) {\n const returnAsArrray = this.startDate.filter(option => {\n if (option.code == this.setSelectboxList) {\n return option;\n }\n });\n this.startDate = returnAsArrray;\n this.changeStartDate(returnAsArrray[0]);\n }\n });\n },\n\n computed: { ...Object(vuex__WEBPACK_IMPORTED_MODULE_0__[\"mapGetters\"])([\"customer\", \"getResearchInfo\", \"getForeignInfo\", \"getAlgoServerInfo\", \"getSelectedResearchInfo\", \"getSelectedForeignInfo\", \"getSelectedAlgoServerInfo\", \"getAlgorithmDetailInfo\"]),\n\n calculateTotalFundRate() {\n let result;\n\n if (this.currentTab === \"Research\") {\n result = this.formatPrice(this.researchFund());\n } else if (this.currentTab === \"Algo\") {\n result = this.formatPrice(this.algoServerFund());\n } else {\n result = this.formatPrice(this.bottomFund + this.foreignFund() + this.researchFund() + this.algoServerFund());\n }\n\n return result;\n },\n\n calculateTotalComissionRate() {\n let result;\n\n if (this.currentTab === \"Research\" && this.currentTab) {\n result = this.formatPrice(this.researchCommission());\n } else if (this.currentTab === \"Algo\") {\n result = this.formatPrice(this.algoServerCommission());\n } else {\n result = this.formatPrice(this.bottomCommission + this.foreignCommission() + this.researchCommission() + this.algoServerCommission());\n }\n\n return result;\n },\n\n calculateTotalPrice() {\n return this.dataItem.price + this.totalPrice + this.researchTotal() + this.foraignTurkishLiraTotal() + this.algoServerTotal();\n },\n\n calculateTotalDollarForeignPrice() {\n return \" + \" + this.formatPriceDollar(this.foraignDollarTotal()) + \" Dolar \";\n },\n\n calculateTotalEuroForeignPrice() {\n return \" + \" + this.formatPriceEuro(this.foraignEuroTotal()) + \" Euro\";\n },\n\n calculateTotalTurkishLiraForeignPrice() {\n return \" + \" + this.formatPrice(this.foraignTurkishLiraTotal()) + \"TL\";\n },\n\n getUserNumber() {\n return this.customer.customerNo;\n },\n\n setSelectboxList() {\n return this.startDates;\n }\n\n },\n methods: { ...Object(vuex__WEBPACK_IMPORTED_MODULE_0__[\"mapMutations\"])([\"setSelectedResearch\", \"setSelectedForeign\", \"setSelectedAlgoServer\"]),\n ...Object(vuex__WEBPACK_IMPORTED_MODULE_0__[\"mapActions\"])([\"createPackage\", \"getResearch\", \"getForeign\", \"getAlgoServer\", \"algorithmCreate\", \"researchCreate\", \"createRecommendationPackage\", \"searchCustomerBefore\"]),\n\n modalNo() {\n this.setDefaultValues();\n },\n\n modalHide() {\n document.getElementById(\"operation-warning\").remove();\n },\n\n checkSpesificWarning(param) {\n this.warningMessage = param;\n },\n\n setDefaultValues() {\n this.bottomCommission = 0;\n this.totalPrice = 0;\n this.bottomFund = 0;\n this.showSections = false;\n this.$emit(\"close\");\n },\n\n searchCustomer() {\n this.searchCustomerBefore({\n SearchValue: this.getUserNumber\n });\n },\n\n researchFund() {\n if (this.currentTab == \"Research\") {\n var _this$dataItem5;\n\n return ((_this$dataItem5 = this.dataItem) === null || _this$dataItem5 === void 0 ? void 0 : _this$dataItem5.fundAmount) || 0;\n } else {\n return this.getSelectedResearchInfo.reduce((totald, item) => {\n return ((item === null || item === void 0 ? void 0 : item.fundAmount) || 0) + totald;\n }, 0);\n }\n },\n\n foreignFund() {\n return this.getSelectedForeignInfo.reduce((totald, item) => {\n return ((item === null || item === void 0 ? void 0 : item.fundAmount) || 0) + totald;\n }, 0);\n },\n\n algoServerFund() {\n if (this.currentTab == \"Algo\") {\n var _this$dataItem6;\n\n return ((_this$dataItem6 = this.dataItem) === null || _this$dataItem6 === void 0 ? void 0 : _this$dataItem6.fundAmount) || 0;\n } else {\n return this.getSelectedAlgoServerInfo.reduce((totald, item) => {\n return ((item === null || item === void 0 ? void 0 : item.fundAmount) || 0) + totald;\n }, 0);\n }\n },\n\n // Commission calc\n researchCommission() {\n if (this.currentTab == \"Research\") {\n var _this$dataItem7;\n\n return ((_this$dataItem7 = this.dataItem) === null || _this$dataItem7 === void 0 ? void 0 : _this$dataItem7.commissionAmount) || 0;\n } else {\n return this.getSelectedResearchInfo.reduce((totald, item) => {\n return ((item === null || item === void 0 ? void 0 : item.commissionAmount) || 0) + totald;\n }, 0);\n }\n },\n\n foreignCommission() {\n return this.getSelectedForeignInfo.reduce((totald, item) => {\n return ((item === null || item === void 0 ? void 0 : item.commissionAmount) || 0) + totald;\n }, 0);\n },\n\n algoServerCommission() {\n if (this.currentTab == \"Algo\") {\n var _this$dataItem8;\n\n return ((_this$dataItem8 = this.dataItem) === null || _this$dataItem8 === void 0 ? void 0 : _this$dataItem8.commissionAmount) || 0;\n } else {\n return this.getSelectedAlgoServerInfo.reduce((totald, item) => {\n return ((item === null || item === void 0 ? void 0 : item.commissionAmount) || 0) + totald;\n }, 0);\n }\n },\n\n // Total calc\n researchTotal() {\n return this.getSelectedResearchInfo.reduce((totald, item) => {\n return ((item === null || item === void 0 ? void 0 : item.price) || 0) + totald;\n }, 0);\n },\n\n foraignTurkishLiraTotal() {\n return this.getSelectedForeignInfo.reduce((totald, item) => {\n if (item.priceInfo === \"₺\") {\n return ((item === null || item === void 0 ? void 0 : item.price) || 0) + totald;\n } else {\n return 0 + totald;\n }\n }, 0);\n },\n\n foraignDollarTotal() {\n return this.getSelectedForeignInfo.reduce((totald, item) => {\n if (item.priceInfo === \"$\") {\n return ((item === null || item === void 0 ? void 0 : item.price) || 0) + totald;\n } else {\n return 0 + totald;\n }\n }, 0);\n },\n\n foraignEuroTotal() {\n return this.getSelectedForeignInfo.reduce((totald, item) => {\n if (item.priceInfo === \"€\") {\n return ((item === null || item === void 0 ? void 0 : item.price) || 0) + totald;\n } else {\n return 0 + totald;\n }\n }, 0);\n },\n\n algoServerTotal() {\n return this.getSelectedAlgoServerInfo.reduce((totald, item) => {\n return ((item === null || item === void 0 ? void 0 : item.price) || 0) + totald;\n }, 0);\n },\n\n changeSelected(data) {\n this.selectData = data;\n },\n\n changeStartDate(value) {\n this.startDateSelection = value.code;\n },\n\n errorMessage(res) {\n if (res.statusCode === _constants__WEBPACK_IMPORTED_MODULE_6__[\"statuses\"].INTERNAL_SERVER_ERROR) {\n this.$toast.error(res.message);\n } else if (res.errorCode === _constants__WEBPACK_IMPORTED_MODULE_6__[\"statuses\"].NOT_ACCEPTABLE) {\n this.$toast.error(res.result.data[0].errors[0]);\n } else {\n this.$toast.error(\"Beklenmedik bir hata oluştu\");\n }\n\n this.isButtonClicked = false;\n },\n\n submitShow() {\n var _this$dataItem9, _this$dataItem10, _this$dataItem11, _this$dataItem12, _this$dataItem12$plat;\n\n this.isButtonClicked = true;\n this.cusId = this.$route.query.c;\n const packageData = this.mapPackageData(this.selectData);\n const getEveryDateSelection = packageData.filter(o => o.dateSelection == -1);\n const getResearchDateSelection = this.getSelectedResearchInfo.filter(o => o.dateSelection === -1);\n const getForeignDateSelection = this.getSelectedForeignInfo.filter(o => o.dateSelection === -1);\n const getSelectedAlgoServerInfo = this.getSelectedAlgoServerInfo.filter(o => o.dateSelection === -1);\n this.researchData = this.mapArrays(this.getSelectedResearchInfo, \"researchId\", \"dateSelection\");\n this.foreignData = this.mapArrays(this.getSelectedForeignInfo, \"foreignIndiceId\", \"dateSelection\");\n this.algoServerData = this.mapArrays(this.getSelectedAlgoServerInfo, \"algorithmAndServerId\", \"dateSelection\");\n\n if (this.showSections && this.$route.query.isRecommended != \"1\" && (getEveryDateSelection.length > 0 || getResearchDateSelection.length > 0 || getForeignDateSelection.length > 0 || getSelectedAlgoServerInfo.length > 0)) {\n this.$toast.error(\"Başlangıç zamanı seçiniz.\");\n this.isButtonClicked = false;\n return;\n }\n\n this.argsAlgo = {\n customerId: this.customer.id,\n dateSelection: this.startDateSelection,\n applicationId: ((_this$dataItem9 = this.dataItem) === null || _this$dataItem9 === void 0 ? void 0 : _this$dataItem9.applicationId) || null,\n algorithmId: this.dataItem.id,\n terminalNumber: this.isTerminal ? \"\" : this.terminalNumber,\n cusId: this.customer.id\n };\n this.argsResearch = {\n customerId: this.customer.id,\n dateSelection: this.startDateSelection,\n applicationId: ((_this$dataItem10 = this.dataItem) === null || _this$dataItem10 === void 0 ? void 0 : _this$dataItem10.applicationId) || null,\n researchId: this.dataItem.id,\n cusId: this.customer.id\n };\n const recommendedPackageArgs = {\n recommendationPackageId: this.dataItem.id,\n\n /*recommendationPackageNo: this.dataItem.recommendationPackageNo,*/\n customerId: this.customer.id,\n purchaseNumber: \"\",\n applicationId: ((_this$dataItem11 = this.dataItem) === null || _this$dataItem11 === void 0 ? void 0 : _this$dataItem11.applicationId) || null,\n platformId: ((_this$dataItem12 = this.dataItem) === null || _this$dataItem12 === void 0 ? void 0 : (_this$dataItem12$plat = _this$dataItem12.platform) === null || _this$dataItem12$plat === void 0 ? void 0 : _this$dataItem12$plat.id) || null,\n features: packageData,\n research: this.researchData,\n foreignIndice: this.foreignData,\n algorithmAndServer: this.algoServerData,\n dateSelection: 0\n };\n\n if (this.$route.query.isRecommended == \"1\") {\n this.createRecommendationPackage(recommendedPackageArgs).then(() => {\n this.$router.push({\n name: \"RecommendedPackages\"\n });\n });\n } else if (this.isRecommendedUndefined && this.currentTab !== \"Algo\" && this.currentTab !== \"Research\") {\n this.pureCreate(packageData);\n } else if (this.isRecommendedUndefined && this.currentTab === \"Algo\") {\n this.createAlgo(this.argsAlgo);\n } else if (this.isRecommendedUndefined && this.currentTab === \"Research\") {\n this.createResearch(this.argsResearch);\n }\n },\n\n mapArrays(arrayList, keyItem, dateSelection) {\n const mappedArray = arrayList.map(key => {\n return {\n [keyItem]: key.id || null,\n [dateSelection]: key.dateSelection || 0\n };\n });\n return mappedArray;\n },\n\n mapPackageData(packageData) {\n const resultData = packageData.map(item => {\n var _item$marketFeature, _item$perspectiveFeat, _item$vendorFeature, _item$vendorFeature2, _item$vendorFeature3;\n\n return {\n marketId: (item === null || item === void 0 ? void 0 : (_item$marketFeature = item.marketFeature) === null || _item$marketFeature === void 0 ? void 0 : _item$marketFeature.id) || null,\n perspectiveId: (item === null || item === void 0 ? void 0 : (_item$perspectiveFeat = item.perspectiveFeature) === null || _item$perspectiveFeat === void 0 ? void 0 : _item$perspectiveFeat.id) || null,\n vendorId: (item === null || item === void 0 ? void 0 : (_item$vendorFeature = item.vendorFeature) === null || _item$vendorFeature === void 0 ? void 0 : _item$vendorFeature.id) === undefined || (item === null || item === void 0 ? void 0 : (_item$vendorFeature2 = item.vendorFeature) === null || _item$vendorFeature2 === void 0 ? void 0 : _item$vendorFeature2.id) === null ? null : item === null || item === void 0 ? void 0 : (_item$vendorFeature3 = item.vendorFeature) === null || _item$vendorFeature3 === void 0 ? void 0 : _item$vendorFeature3.id,\n dateSelection: item.dateSelection\n };\n });\n return resultData;\n },\n\n isRecommendedUndefined() {\n return this.$route.query.isRecommended === undefined;\n },\n\n pureCreate(packageData) {\n var _this$dataItem13, _this$dataItem14, _this$dataItem14$plat;\n\n this.args = {\n customerId: this.customer.id,\n purchaseNumber: \"\",\n applicationId: ((_this$dataItem13 = this.dataItem) === null || _this$dataItem13 === void 0 ? void 0 : _this$dataItem13.applicationId) || null,\n applicationFeatureId: this.dataItem.id,\n platformFeatureId: this.dataItem.id,\n platformId: ((_this$dataItem14 = this.dataItem) === null || _this$dataItem14 === void 0 ? void 0 : (_this$dataItem14$plat = _this$dataItem14.platform) === null || _this$dataItem14$plat === void 0 ? void 0 : _this$dataItem14$plat.id) || null,\n features: packageData,\n research: this.researchData,\n foreignIndice: this.foreignData,\n algorithmAndServer: this.algoServerData,\n cusId: this.cusId\n };\n this.createPackage(this.args).then(res => {\n if (res.error) {\n this.errorMessage(res);\n } else {\n this.$router.push({\n name: \"Checkout\",\n params: {\n packageNumber: res.purchaseId,\n isUpgradedPurchase: res.isUpgradedPurchase,\n customerNumber: this.customer.customerNo ? this.customer.customerNo : this.$route.query.c\n },\n query: {\n c: this.$route.query.c\n }\n });\n this.setSelectedResearch([]);\n this.setSelectedForeign([]);\n this.setSelectedAlgoServer([]);\n }\n });\n },\n\n createAlgo() {\n if (this.startDateSelection == -1) {\n this.$toast.error(\"Başlangıç zamanı seçiniz.\");\n this.isButtonClicked = false;\n return;\n }\n\n if (this.isTerminal === false && this.terminalNumber === null) {\n this.$toast.error(\"Terminal Numarası Giriniz.\");\n this.isButtonClicked = false;\n return;\n }\n\n this.algorithmCreate(this.argsAlgo).then(res => {\n if (res.error) {\n this.$toast.error(res.message);\n } else {\n if (!res.isExternalTerminal) {\n this.$router.push({\n name: \"Checkout\",\n params: {\n packageNumber: res.purchaseId,\n isUpgradedPurchase: res.purchaseNo,\n customerNumber: this.customer.customerNo ? this.customer.customerNo : this.$route.query.c\n },\n query: {\n c: this.$route.query.c\n }\n });\n } else {\n this.$router.push({\n name: \"CustomerDetail\",\n params: {\n customerId: this.$route.query.c,\n customerNumber: this.$route.params.customerNumber\n },\n query: {\n c: this.$route.query.c\n }\n });\n }\n }\n });\n },\n\n createResearch() {\n this.researchCreate(this.argsResearch).then(res => {\n if (res.error) {\n this.errorMessage(res);\n } else {\n this.$toast.success(\"Durum güncellendi.\");\n this.isPopupVisible = false;\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 calculatePrice(items) {\n this.bottomFund = items.reduce((totald, item) => {\n var _item$marketFeature2, _item$perspectiveFeat2, _item$vendorFeature4;\n\n return ((item === null || item === void 0 ? void 0 : (_item$marketFeature2 = item.marketFeature) === null || _item$marketFeature2 === void 0 ? void 0 : _item$marketFeature2.fundAmount) || 0) + ((item === null || item === void 0 ? void 0 : (_item$perspectiveFeat2 = item.perspectiveFeature) === null || _item$perspectiveFeat2 === void 0 ? void 0 : _item$perspectiveFeat2.fundAmount) || 0) + ((item === null || item === void 0 ? void 0 : (_item$vendorFeature4 = item.vendorFeature) === null || _item$vendorFeature4 === void 0 ? void 0 : _item$vendorFeature4.fundAmount) || 0) + totald;\n }, this.dataItem.fundAmount);\n this.bottomCommission = items.reduce((totald, item) => {\n var _item$marketFeature3, _item$perspectiveFeat3, _item$vendorFeature5;\n\n return ((item === null || item === void 0 ? void 0 : (_item$marketFeature3 = item.marketFeature) === null || _item$marketFeature3 === void 0 ? void 0 : _item$marketFeature3.commissionAmount) || 0) + ((item === null || item === void 0 ? void 0 : (_item$perspectiveFeat3 = item.perspectiveFeature) === null || _item$perspectiveFeat3 === void 0 ? void 0 : _item$perspectiveFeat3.commissionAmount) || 0) + ((item === null || item === void 0 ? void 0 : (_item$vendorFeature5 = item.vendorFeature) === null || _item$vendorFeature5 === void 0 ? void 0 : _item$vendorFeature5.commissionAmount) || 0) + totald;\n }, this.dataItem.commissionAmount); // eslint-disable-next-line no-unused-vars\n\n const totalPrice = items.reduce((totald, item) => {\n var _item$perspectiveFeat4, _item$vendorFeature6;\n\n return (\n /*(item?.marketFeature?.price || 0) +\n (item?.platformFeature?.price || 0)*/\n +((item === null || item === void 0 ? void 0 : (_item$perspectiveFeat4 = item.perspectiveFeature) === null || _item$perspectiveFeat4 === void 0 ? void 0 : _item$perspectiveFeat4.price) || 0) + ((item === null || item === void 0 ? void 0 : (_item$vendorFeature6 = item.vendorFeature) === null || _item$vendorFeature6 === void 0 ? void 0 : _item$vendorFeature6.price) || 0) + totald\n );\n }, 0);\n this.totalPrice = totalPrice;\n }\n\n },\n watch: {\n selectData: {\n handler(newVal) {\n this.calculatePrice(newVal);\n },\n\n deep: true,\n immediate: true\n },\n isUpgraded: {\n handler(val) {\n if (val) {\n this.showSections = false;\n } else {\n this.showSections = true;\n }\n },\n\n deep: true,\n immediate: true\n },\n startDates: {\n handler(val) {\n if (val == 0 || val == 1) {\n const returnAsArrray = this.startDate.filter(option => option.code == val);\n this.startDate = returnAsArrray;\n this.changeStartDate(returnAsArrray[0]);\n }\n },\n\n deep: true,\n immediate: true\n }\n }\n});\n\n//# sourceURL=webpack://OsmanliPackage/./src/components/customer/PackageSettignsCreate.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");
|
|
1710
|
+
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 _PackageSettingCreateType_vue__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./PackageSettingCreateType.vue */ \"./src/components/customer/PackageSettingCreateType.vue\");\n/* harmony import */ var _mixins__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../mixins */ \"./src/mixins/index.js\");\n/* harmony import */ var _components__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @/components */ \"./src/components/index.js\");\n/* harmony import */ var _base_InfoArea_vue__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../base/InfoArea.vue */ \"./src/components/base/InfoArea.vue\");\n/* harmony import */ var _base_Faq_vue__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../base/Faq.vue */ \"./src/components/base/Faq.vue\");\n/* harmony import */ var _constants__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../../constants */ \"./src/constants/index.js\");\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n\n\n\n\n\n\n\n/* harmony default export */ __webpack_exports__[\"default\"] = ({\n name: \"PackageSettingCreate\",\n mixins: [_mixins__WEBPACK_IMPORTED_MODULE_2__[\"default\"]],\n components: {\n BaseButton: _components__WEBPACK_IMPORTED_MODULE_3__[\"BaseButton\"],\n PopupRight: _components__WEBPACK_IMPORTED_MODULE_3__[\"PopupRight\"],\n PackageSettingCreateType: _PackageSettingCreateType_vue__WEBPACK_IMPORTED_MODULE_1__[\"default\"],\n AccordionResearch: _components__WEBPACK_IMPORTED_MODULE_3__[\"AccordionResearch\"],\n AccordionForeign: _components__WEBPACK_IMPORTED_MODULE_3__[\"AccordionForeign\"],\n AccordionAlgoServer: _components__WEBPACK_IMPORTED_MODULE_3__[\"AccordionAlgoServer\"],\n BaseInput: _components__WEBPACK_IMPORTED_MODULE_3__[\"BaseInput\"],\n BaseSelect: _components__WEBPACK_IMPORTED_MODULE_3__[\"BaseSelect\"],\n BaseIcon: _components__WEBPACK_IMPORTED_MODULE_3__[\"BaseIcon\"],\n InfoArea: _base_InfoArea_vue__WEBPACK_IMPORTED_MODULE_4__[\"default\"],\n Faq: _base_Faq_vue__WEBPACK_IMPORTED_MODULE_5__[\"default\"]\n },\n props: {\n dataItem: Object,\n platformInfo: Object,\n marketInfo: Array,\n isPopupVisible: Boolean,\n currentTab: String,\n isTerminal: Boolean,\n algoDetail: Object,\n isOperationWarning: Boolean,\n operationMessage: String,\n researchDetail: Object,\n isRuleMessageWarning: Boolean,\n mutableItemRuleMessage: String,\n isUpgraded: Boolean,\n startDates: Number\n },\n\n data() {\n return {\n fund: 0,\n commission: 0,\n bottomFund: 0,\n bottomCommission: 0,\n totalPrice: 0,\n startDateSelection: -1,\n selectData: [],\n research: [],\n foreign: [],\n algoServer: [],\n researchData: [],\n foreignData: [],\n algoServerData: [],\n args: {},\n argsAlgo: {},\n argsResearch: {},\n terminalNumber: null,\n isOperationWarningVal: this.isOperationWarning,\n isButtonClicked: false,\n itemRuleMessage: this.mutableItemRuleMessage,\n warningMessage: 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.\",\n startDate: [{\n label: \"Seçiniz\",\n code: -1\n }, {\n label: \"Hemen\",\n code: 0\n }, {\n label: \"Ay Başında\",\n code: 1\n }],\n cusId: null,\n showSections: true,\n triggerSelectbox: 0\n };\n },\n\n mounted() {\n this.searchCustomer();\n const cusId = this.$route.params.customerId !== undefined ? this.$route.params.customerId : null;\n\n if (this.currentTab != \"Algo\" && this.currentTab != \"Research\") {\n var _this$dataItem, _this$dataItem2, _this$dataItem3, _this$dataItem3$platf, _this$dataItem4;\n\n this.getResearch([(_this$dataItem = this.dataItem) === null || _this$dataItem === void 0 ? void 0 : _this$dataItem.applicationId, cusId]).then(res => {\n let details = {};\n details = res.data;\n this.research.push({\n id: 1,\n active: false,\n title: \"Araştırma ve Diğer Uygulamalar\",\n details\n });\n });\n this.getForeign([(_this$dataItem2 = this.dataItem) === null || _this$dataItem2 === void 0 ? void 0 : _this$dataItem2.applicationId, (_this$dataItem3 = this.dataItem) === null || _this$dataItem3 === void 0 ? void 0 : (_this$dataItem3$platf = _this$dataItem3.platform) === null || _this$dataItem3$platf === void 0 ? void 0 : _this$dataItem3$platf.id, cusId]).then(res => {\n let details = {};\n details = res.data;\n this.foreign.push({\n id: 2,\n active: false,\n title: \"Yabancı Endeksler\",\n details\n });\n });\n this.getAlgoServer([(_this$dataItem4 = this.dataItem) === null || _this$dataItem4 === void 0 ? void 0 : _this$dataItem4.applicationId, cusId]).then(res => {\n let details = {};\n details = res.data;\n this.algoServer.push({\n id: 3,\n active: false,\n title: \"Algoritmalar\",\n details\n });\n });\n }\n\n this.setSelectedResearch([]);\n this.setSelectedForeign([]);\n this.setSelectedAlgoServer([]);\n this.$nextTick(() => {\n if (this.setSelectboxList == 0 || this.setSelectboxList == 1) {\n const returnAsArrray = this.startDate.filter(option => {\n if (option.code == this.setSelectboxList) {\n return option;\n }\n });\n this.startDate = returnAsArrray;\n this.changeStartDate(returnAsArrray[0]);\n }\n });\n },\n\n computed: { ...Object(vuex__WEBPACK_IMPORTED_MODULE_0__[\"mapGetters\"])([\"customer\", \"getResearchInfo\", \"getForeignInfo\", \"getAlgoServerInfo\", \"getSelectedResearchInfo\", \"getSelectedForeignInfo\", \"getSelectedAlgoServerInfo\", \"getAlgorithmDetailInfo\"]),\n\n calculateTotalFundRate() {\n let result;\n\n if (this.currentTab === \"Research\") {\n result = this.formatPrice(this.researchFund());\n } else if (this.currentTab === \"Algo\") {\n result = this.formatPrice(this.algoServerFund());\n } else {\n result = this.formatPrice(this.bottomFund + this.foreignFund() + this.researchFund() + this.algoServerFund());\n }\n\n return result;\n },\n\n calculateTotalComissionRate() {\n let result;\n\n if (this.currentTab === \"Research\" && this.currentTab) {\n result = this.formatPrice(this.researchCommission());\n } else if (this.currentTab === \"Algo\") {\n result = this.formatPrice(this.algoServerCommission());\n } else {\n result = this.formatPrice(this.bottomCommission + this.foreignCommission() + this.researchCommission() + this.algoServerCommission());\n }\n\n return result;\n },\n\n calculateTotalPrice() {\n return this.dataItem.price + this.totalPrice + this.researchTotal() + this.foraignTurkishLiraTotal() + this.algoServerTotal();\n },\n\n calculateTotalDollarForeignPrice() {\n return \" + \" + this.formatPriceDollar(this.foraignDollarTotal()) + \" Dolar \";\n },\n\n calculateTotalEuroForeignPrice() {\n return \" + \" + this.formatPriceEuro(this.foraignEuroTotal()) + \" Euro\";\n },\n\n calculateTotalTurkishLiraForeignPrice() {\n return \" + \" + this.formatPrice(this.foraignTurkishLiraTotal()) + \"TL\";\n },\n\n getUserNumber() {\n return this.customer.customerNo;\n },\n\n setSelectboxList() {\n return this.startDates;\n }\n\n },\n methods: { ...Object(vuex__WEBPACK_IMPORTED_MODULE_0__[\"mapMutations\"])([\"setSelectedResearch\", \"setSelectedForeign\", \"setSelectedAlgoServer\"]),\n ...Object(vuex__WEBPACK_IMPORTED_MODULE_0__[\"mapActions\"])([\"createPackage\", \"getResearch\", \"getForeign\", \"getAlgoServer\", \"algorithmCreate\", \"researchCreate\", \"createRecommendationPackage\", \"searchCustomerBefore\"]),\n\n modalNo() {\n this.setDefaultValues();\n },\n\n modalHide() {\n document.getElementById(\"operation-warning\").remove();\n },\n\n checkSpesificWarning(param) {\n this.warningMessage = param;\n },\n\n setDefaultValues() {\n this.bottomCommission = 0;\n this.totalPrice = 0;\n this.bottomFund = 0;\n this.showSections = false;\n this.$emit(\"close\");\n },\n\n searchCustomer() {\n this.searchCustomerBefore({\n SearchValue: this.getUserNumber\n });\n },\n\n researchFund() {\n if (this.currentTab == \"Research\") {\n var _this$dataItem5;\n\n return ((_this$dataItem5 = this.dataItem) === null || _this$dataItem5 === void 0 ? void 0 : _this$dataItem5.fundAmount) || 0;\n } else {\n return this.getSelectedResearchInfo.reduce((totald, item) => {\n return ((item === null || item === void 0 ? void 0 : item.fundAmount) || 0) + totald;\n }, 0);\n }\n },\n\n foreignFund() {\n return this.getSelectedForeignInfo.reduce((totald, item) => {\n return ((item === null || item === void 0 ? void 0 : item.fundAmount) || 0) + totald;\n }, 0);\n },\n\n algoServerFund() {\n if (this.currentTab == \"Algo\") {\n var _this$dataItem6;\n\n return ((_this$dataItem6 = this.dataItem) === null || _this$dataItem6 === void 0 ? void 0 : _this$dataItem6.fundAmount) || 0;\n } else {\n return this.getSelectedAlgoServerInfo.reduce((totald, item) => {\n return ((item === null || item === void 0 ? void 0 : item.fundAmount) || 0) + totald;\n }, 0);\n }\n },\n\n // Commission calc\n researchCommission() {\n if (this.currentTab == \"Research\") {\n var _this$dataItem7;\n\n return ((_this$dataItem7 = this.dataItem) === null || _this$dataItem7 === void 0 ? void 0 : _this$dataItem7.commissionAmount) || 0;\n } else {\n return this.getSelectedResearchInfo.reduce((totald, item) => {\n return ((item === null || item === void 0 ? void 0 : item.commissionAmount) || 0) + totald;\n }, 0);\n }\n },\n\n foreignCommission() {\n return this.getSelectedForeignInfo.reduce((totald, item) => {\n return ((item === null || item === void 0 ? void 0 : item.commissionAmount) || 0) + totald;\n }, 0);\n },\n\n algoServerCommission() {\n if (this.currentTab == \"Algo\") {\n var _this$dataItem8;\n\n return ((_this$dataItem8 = this.dataItem) === null || _this$dataItem8 === void 0 ? void 0 : _this$dataItem8.commissionAmount) || 0;\n } else {\n return this.getSelectedAlgoServerInfo.reduce((totald, item) => {\n return ((item === null || item === void 0 ? void 0 : item.commissionAmount) || 0) + totald;\n }, 0);\n }\n },\n\n // Total calc\n researchTotal() {\n return this.getSelectedResearchInfo.reduce((totald, item) => {\n return ((item === null || item === void 0 ? void 0 : item.price) || 0) + totald;\n }, 0);\n },\n\n foraignTurkishLiraTotal() {\n return this.getSelectedForeignInfo.reduce((totald, item) => {\n if (item.priceInfo === \"₺\") {\n return ((item === null || item === void 0 ? void 0 : item.price) || 0) + totald;\n } else {\n return 0 + totald;\n }\n }, 0);\n },\n\n foraignDollarTotal() {\n return this.getSelectedForeignInfo.reduce((totald, item) => {\n if (item.priceInfo === \"$\") {\n return ((item === null || item === void 0 ? void 0 : item.price) || 0) + totald;\n } else {\n return 0 + totald;\n }\n }, 0);\n },\n\n foraignEuroTotal() {\n return this.getSelectedForeignInfo.reduce((totald, item) => {\n if (item.priceInfo === \"€\") {\n return ((item === null || item === void 0 ? void 0 : item.price) || 0) + totald;\n } else {\n return 0 + totald;\n }\n }, 0);\n },\n\n algoServerTotal() {\n return this.getSelectedAlgoServerInfo.reduce((totald, item) => {\n return ((item === null || item === void 0 ? void 0 : item.price) || 0) + totald;\n }, 0);\n },\n\n changeSelected(data) {\n this.selectData = data;\n },\n\n changeStartDate(value) {\n this.startDateSelection = value.code;\n },\n\n errorMessage(res) {\n if (res.statusCode === _constants__WEBPACK_IMPORTED_MODULE_6__[\"statuses\"].INTERNAL_SERVER_ERROR) {\n this.$toast.error(res.message);\n } else if (res.errorCode === _constants__WEBPACK_IMPORTED_MODULE_6__[\"statuses\"].NOT_ACCEPTABLE) {\n this.$toast.error(res.result.data[0].errors[0]);\n } else {\n this.$toast.error(\"Beklenmedik bir hata oluştu\");\n }\n\n this.isButtonClicked = false;\n },\n\n submitShow() {\n var _this$dataItem9, _this$dataItem10, _this$dataItem11, _this$dataItem12, _this$dataItem12$plat;\n\n this.isButtonClicked = true;\n this.cusId = this.$route.query.c;\n const packageData = this.mapPackageData(this.selectData);\n const getEveryDateSelection = packageData.filter(o => o.dateSelection == -1);\n const getResearchDateSelection = this.getSelectedResearchInfo.filter(o => o.dateSelection === -1);\n const getForeignDateSelection = this.getSelectedForeignInfo.filter(o => o.dateSelection === -1);\n const getSelectedAlgoServerInfo = this.getSelectedAlgoServerInfo.filter(o => o.dateSelection === -1);\n this.researchData = this.mapArrays(this.getSelectedResearchInfo, \"researchId\", \"dateSelection\");\n this.foreignData = this.mapArrays(this.getSelectedForeignInfo, \"foreignIndiceId\", \"dateSelection\");\n this.algoServerData = this.mapArrays(this.getSelectedAlgoServerInfo, \"algorithmAndServerId\", \"dateSelection\");\n\n if (this.showSections && this.$route.query.isRecommended != \"1\" && (getEveryDateSelection.length > 0 || getResearchDateSelection.length > 0 || getForeignDateSelection.length > 0 || getSelectedAlgoServerInfo.length > 0)) {\n this.$toast.error(\"Başlangıç zamanı seçiniz.\");\n this.isButtonClicked = false;\n return;\n }\n\n this.argsAlgo = {\n customerId: this.customer.id,\n dateSelection: this.startDateSelection,\n applicationId: ((_this$dataItem9 = this.dataItem) === null || _this$dataItem9 === void 0 ? void 0 : _this$dataItem9.applicationId) || null,\n algorithmId: this.dataItem.id,\n terminalNumber: this.isTerminal ? \"\" : this.terminalNumber,\n cusId: Number(this.customer.id)\n };\n this.argsResearch = {\n customerId: this.customer.id,\n dateSelection: this.startDateSelection,\n applicationId: ((_this$dataItem10 = this.dataItem) === null || _this$dataItem10 === void 0 ? void 0 : _this$dataItem10.applicationId) || null,\n researchId: this.dataItem.id,\n cusId: Number(this.customer.id)\n };\n const recommendedPackageArgs = {\n recommendationPackageId: this.dataItem.id,\n\n /*recommendationPackageNo: this.dataItem.recommendationPackageNo,*/\n customerId: Number(this.customer.id),\n purchaseNumber: \"\",\n applicationId: ((_this$dataItem11 = this.dataItem) === null || _this$dataItem11 === void 0 ? void 0 : _this$dataItem11.applicationId) || null,\n platformId: ((_this$dataItem12 = this.dataItem) === null || _this$dataItem12 === void 0 ? void 0 : (_this$dataItem12$plat = _this$dataItem12.platform) === null || _this$dataItem12$plat === void 0 ? void 0 : _this$dataItem12$plat.id) || null,\n features: packageData,\n research: this.researchData,\n foreignIndice: this.foreignData,\n algorithmAndServer: this.algoServerData,\n dateSelection: 0\n };\n\n if (this.$route.query.isRecommended == \"1\") {\n this.createRecommendationPackage(recommendedPackageArgs).then(() => {\n this.$router.push({\n name: \"RecommendedPackages\"\n });\n });\n } else if (this.isRecommendedUndefined && this.currentTab !== \"Algo\" && this.currentTab !== \"Research\") {\n this.pureCreate(packageData);\n } else if (this.isRecommendedUndefined && this.currentTab === \"Algo\") {\n this.createAlgo(this.argsAlgo);\n } else if (this.isRecommendedUndefined && this.currentTab === \"Research\") {\n this.createResearch(this.argsResearch);\n }\n },\n\n mapArrays(arrayList, keyItem, dateSelection) {\n const mappedArray = arrayList.map(key => {\n return {\n [keyItem]: key.id || null,\n [dateSelection]: key.dateSelection || 0\n };\n });\n return mappedArray;\n },\n\n mapPackageData(packageData) {\n const resultData = packageData.map(item => {\n var _item$marketFeature, _item$perspectiveFeat, _item$vendorFeature, _item$vendorFeature2, _item$vendorFeature3;\n\n return {\n marketId: (item === null || item === void 0 ? void 0 : (_item$marketFeature = item.marketFeature) === null || _item$marketFeature === void 0 ? void 0 : _item$marketFeature.id) || null,\n perspectiveId: (item === null || item === void 0 ? void 0 : (_item$perspectiveFeat = item.perspectiveFeature) === null || _item$perspectiveFeat === void 0 ? void 0 : _item$perspectiveFeat.id) || null,\n vendorId: (item === null || item === void 0 ? void 0 : (_item$vendorFeature = item.vendorFeature) === null || _item$vendorFeature === void 0 ? void 0 : _item$vendorFeature.id) === undefined || (item === null || item === void 0 ? void 0 : (_item$vendorFeature2 = item.vendorFeature) === null || _item$vendorFeature2 === void 0 ? void 0 : _item$vendorFeature2.id) === null ? null : item === null || item === void 0 ? void 0 : (_item$vendorFeature3 = item.vendorFeature) === null || _item$vendorFeature3 === void 0 ? void 0 : _item$vendorFeature3.id,\n dateSelection: this.$route.query.isRecommended === undefined ? item.dateSelection : 0\n };\n });\n return resultData;\n },\n\n isRecommendedUndefined() {\n return this.$route.query.isRecommended === undefined;\n },\n\n pureCreate(packageData) {\n var _this$dataItem13, _this$dataItem14, _this$dataItem14$plat;\n\n this.args = {\n customerId: this.customer.id,\n purchaseNumber: \"\",\n applicationId: ((_this$dataItem13 = this.dataItem) === null || _this$dataItem13 === void 0 ? void 0 : _this$dataItem13.applicationId) || null,\n applicationFeatureId: this.dataItem.id,\n platformFeatureId: this.dataItem.id,\n platformId: ((_this$dataItem14 = this.dataItem) === null || _this$dataItem14 === void 0 ? void 0 : (_this$dataItem14$plat = _this$dataItem14.platform) === null || _this$dataItem14$plat === void 0 ? void 0 : _this$dataItem14$plat.id) || null,\n features: packageData,\n research: this.researchData,\n foreignIndice: this.foreignData,\n algorithmAndServer: this.algoServerData,\n cusId: Number(this.cusId)\n };\n this.createPackage(this.args).then(res => {\n if (res.error) {\n this.errorMessage(res);\n } else {\n this.$router.push({\n name: \"Checkout\",\n params: {\n packageNumber: res.purchaseId,\n isUpgradedPurchase: res.isUpgradedPurchase,\n customerNumber: this.customer.customerNo ? this.customer.customerNo : this.$route.query.c\n },\n query: {\n c: this.$route.query.c\n }\n });\n this.setSelectedResearch([]);\n this.setSelectedForeign([]);\n this.setSelectedAlgoServer([]);\n }\n });\n },\n\n createAlgo() {\n if (this.startDateSelection == -1) {\n this.$toast.error(\"Başlangıç zamanı seçiniz.\");\n this.isButtonClicked = false;\n return;\n }\n\n if (this.isTerminal === false && this.terminalNumber === null) {\n this.$toast.error(\"Terminal Numarası Giriniz.\");\n this.isButtonClicked = false;\n return;\n }\n\n this.algorithmCreate(this.argsAlgo).then(res => {\n if (res.error) {\n this.$toast.error(res.message);\n } else {\n if (!res.isExternalTerminal) {\n this.$router.push({\n name: \"Checkout\",\n params: {\n packageNumber: res.purchaseId,\n isUpgradedPurchase: res.purchaseNo,\n customerNumber: this.customer.customerNo ? this.customer.customerNo : this.$route.query.c\n },\n query: {\n c: this.$route.query.c\n }\n });\n } else {\n this.$router.push({\n name: \"CustomerDetail\",\n params: {\n customerId: this.$route.query.c,\n customerNumber: this.$route.params.customerNumber\n },\n query: {\n c: this.$route.query.c\n }\n });\n }\n }\n });\n },\n\n createResearch() {\n if (this.startDateSelection == -1) {\n this.$toast.error(\"Başlangıç zamanı seçiniz.\");\n this.isButtonClicked = false;\n return;\n }\n\n if (this.isTerminal === false && this.terminalNumber === null) {\n this.$toast.error(\"Terminal Numarası Giriniz.\");\n this.isButtonClicked = false;\n return;\n }\n\n this.researchCreate(this.argsResearch).then(res => {\n if (res.error) {\n this.errorMessage(res);\n } else {\n if (!res.isExternalTerminal) {\n this.$router.push({\n name: \"Checkout\",\n params: {\n packageNumber: res.purchaseId,\n isUpgradedPurchase: res.purchaseNo,\n customerNumber: this.customer.customerNo ? this.customer.customerNo : this.$route.query.c\n },\n query: {\n c: this.$route.query.c\n }\n });\n } else {\n this.$router.push({\n name: \"CustomerDetail\",\n params: {\n customerId: this.$route.query.c,\n customerNumber: this.customer.customerNo ? this.customer.customerNo : this.$route.query.c\n },\n query: {\n c: this.$route.query.c\n }\n });\n }\n }\n });\n },\n\n calculatePrice(items) {\n this.bottomFund = items.reduce((totald, item) => {\n var _item$marketFeature2, _item$perspectiveFeat2, _item$vendorFeature4;\n\n return ((item === null || item === void 0 ? void 0 : (_item$marketFeature2 = item.marketFeature) === null || _item$marketFeature2 === void 0 ? void 0 : _item$marketFeature2.fundAmount) || 0) + ((item === null || item === void 0 ? void 0 : (_item$perspectiveFeat2 = item.perspectiveFeature) === null || _item$perspectiveFeat2 === void 0 ? void 0 : _item$perspectiveFeat2.fundAmount) || 0) + ((item === null || item === void 0 ? void 0 : (_item$vendorFeature4 = item.vendorFeature) === null || _item$vendorFeature4 === void 0 ? void 0 : _item$vendorFeature4.fundAmount) || 0) + totald;\n }, this.dataItem.fundAmount);\n this.bottomCommission = items.reduce((totald, item) => {\n var _item$marketFeature3, _item$perspectiveFeat3, _item$vendorFeature5;\n\n return ((item === null || item === void 0 ? void 0 : (_item$marketFeature3 = item.marketFeature) === null || _item$marketFeature3 === void 0 ? void 0 : _item$marketFeature3.commissionAmount) || 0) + ((item === null || item === void 0 ? void 0 : (_item$perspectiveFeat3 = item.perspectiveFeature) === null || _item$perspectiveFeat3 === void 0 ? void 0 : _item$perspectiveFeat3.commissionAmount) || 0) + ((item === null || item === void 0 ? void 0 : (_item$vendorFeature5 = item.vendorFeature) === null || _item$vendorFeature5 === void 0 ? void 0 : _item$vendorFeature5.commissionAmount) || 0) + totald;\n }, this.dataItem.commissionAmount); // eslint-disable-next-line no-unused-vars\n\n const totalPrice = items.reduce((totald, item) => {\n var _item$perspectiveFeat4, _item$vendorFeature6;\n\n return (\n /*(item?.marketFeature?.price || 0) +\n (item?.platformFeature?.price || 0)*/\n +((item === null || item === void 0 ? void 0 : (_item$perspectiveFeat4 = item.perspectiveFeature) === null || _item$perspectiveFeat4 === void 0 ? void 0 : _item$perspectiveFeat4.price) || 0) + ((item === null || item === void 0 ? void 0 : (_item$vendorFeature6 = item.vendorFeature) === null || _item$vendorFeature6 === void 0 ? void 0 : _item$vendorFeature6.price) || 0) + totald\n );\n }, 0);\n this.totalPrice = totalPrice;\n }\n\n },\n watch: {\n selectData: {\n handler(newVal) {\n this.calculatePrice(newVal);\n },\n\n deep: true,\n immediate: true\n },\n isUpgraded: {\n handler(val) {\n if (val) {\n this.showSections = false;\n } else {\n this.showSections = true;\n }\n },\n\n deep: true,\n immediate: true\n },\n startDates: {\n handler(val) {\n if (val == 0 || val == 1) {\n const returnAsArrray = this.startDate.filter(option => option.code == val);\n this.startDate = returnAsArrray;\n this.changeStartDate(returnAsArrray[0]);\n }\n },\n\n deep: true,\n immediate: true\n }\n }\n});\n\n//# sourceURL=webpack://OsmanliPackage/./src/components/customer/PackageSettignsCreate.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");
|
|
1711
1711
|
|
|
1712
1712
|
/***/ }),
|
|
1713
1713
|
|
|
@@ -1791,7 +1791,7 @@ eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var vuex
|
|
|
1791
1791
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
1792
1792
|
|
|
1793
1793
|
"use strict";
|
|
1794
|
-
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 _recommendedPackages_UpdatePackage_vue__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../recommendedPackages/UpdatePackage.vue */ \"./src/components/recommendedPackages/UpdatePackage.vue\");\n/* harmony import */ var _constants__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../constants */ \"./src/constants/index.js\");\n/* harmony import */ var _base_InfoArea_vue__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../base/InfoArea.vue */ \"./src/components/base/InfoArea.vue\");\n/* harmony import */ var _mixins__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../mixins */ \"./src/mixins/index.js\");\n\n\n\n\n\n\n/* harmony default export */ __webpack_exports__[\"default\"] = ({\n name: \"Table\",\n mixins: [_mixins__WEBPACK_IMPORTED_MODULE_5__[\"default\"]],\n components: {\n BaseButton: _components__WEBPACK_IMPORTED_MODULE_1__[\"BaseButton\"],\n BaseIcon: _components__WEBPACK_IMPORTED_MODULE_1__[\"BaseIcon\"],\n PackageSettigns: _recommendedPackages_UpdatePackage_vue__WEBPACK_IMPORTED_MODULE_2__[\"default\"],\n InfoArea: _base_InfoArea_vue__WEBPACK_IMPORTED_MODULE_4__[\"default\"]\n },\n props: {\n dataItem: Object,\n index: Number,\n allData: Array\n },\n\n data() {\n return {\n packageDetail: null,\n marketInfo: null,\n isPopupVisible: false,\n infoText: \"Fatura
|
|
1794
|
+
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 _recommendedPackages_UpdatePackage_vue__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../recommendedPackages/UpdatePackage.vue */ \"./src/components/recommendedPackages/UpdatePackage.vue\");\n/* harmony import */ var _constants__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../constants */ \"./src/constants/index.js\");\n/* harmony import */ var _base_InfoArea_vue__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../base/InfoArea.vue */ \"./src/components/base/InfoArea.vue\");\n/* harmony import */ var _mixins__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../mixins */ \"./src/mixins/index.js\");\n\n\n\n\n\n\n/* harmony default export */ __webpack_exports__[\"default\"] = ({\n name: \"Table\",\n mixins: [_mixins__WEBPACK_IMPORTED_MODULE_5__[\"default\"]],\n components: {\n BaseButton: _components__WEBPACK_IMPORTED_MODULE_1__[\"BaseButton\"],\n BaseIcon: _components__WEBPACK_IMPORTED_MODULE_1__[\"BaseIcon\"],\n PackageSettigns: _recommendedPackages_UpdatePackage_vue__WEBPACK_IMPORTED_MODULE_2__[\"default\"],\n InfoArea: _base_InfoArea_vue__WEBPACK_IMPORTED_MODULE_4__[\"default\"]\n },\n props: {\n dataItem: Object,\n index: Number,\n allData: Array\n },\n\n data() {\n return {\n packageDetail: null,\n marketInfo: null,\n isPopupVisible: false,\n infoText: \"Fatura dönemi içerisinde, iptal edilen lisanslar hemen iptal edilse bile ücretlendirme yansımaktadır ve iptal edilen lisanlar ay sonuna kadar kullanılabilmektedir.\",\n userType: null\n };\n },\n\n computed: { ...Object(vuex__WEBPACK_IMPORTED_MODULE_0__[\"mapGetters\"])([\"recommendedPackageInfo\", \"getMarketInfo\", \"purchaseChangeStartDate\", \"generalFilter\", \"getUserInfo\"]),\n\n currencySymbol() {\n return _constants__WEBPACK_IMPORTED_MODULE_3__[\"CurrencySymbol\"];\n },\n\n getSelectedPacks() {\n return [...this.dataItem.research.map(d => d.researchFeature.name), ...this.dataItem.foreignIndice.map(d => d.foreignIndiceFeature.name), ...this.dataItem.algorithm.map(d => d.algorithmFeature.name)];\n },\n\n getDataItemId() {\n return String(this.dataItem.id);\n },\n\n totalPriceDollar() {\n var _this$dataItem, _this$dataItem$price, _this$dataItem$price$;\n\n return (_this$dataItem = this.dataItem) === null || _this$dataItem === void 0 ? void 0 : (_this$dataItem$price = _this$dataItem.price) === null || _this$dataItem$price === void 0 ? void 0 : (_this$dataItem$price$ = _this$dataItem$price.prices) === null || _this$dataItem$price$ === void 0 ? void 0 : _this$dataItem$price$.filter(e => e.info === this.currencySymbol.dolar)[0];\n },\n\n totalPriceTl() {\n var _this$dataItem2, _this$dataItem2$price, _this$dataItem2$price2;\n\n return (_this$dataItem2 = this.dataItem) === null || _this$dataItem2 === void 0 ? void 0 : (_this$dataItem2$price = _this$dataItem2.price) === null || _this$dataItem2$price === void 0 ? void 0 : (_this$dataItem2$price2 = _this$dataItem2$price.prices) === null || _this$dataItem2$price2 === void 0 ? void 0 : _this$dataItem2$price2.filter(e => e.info === this.currencySymbol.tl)[0].totalPrice;\n },\n\n totalPriceEuro() {\n var _this$dataItem3, _this$dataItem3$price, _this$dataItem3$price2;\n\n return (_this$dataItem3 = this.dataItem) === null || _this$dataItem3 === void 0 ? void 0 : (_this$dataItem3$price = _this$dataItem3.price) === null || _this$dataItem3$price === void 0 ? void 0 : (_this$dataItem3$price2 = _this$dataItem3$price.prices) === null || _this$dataItem3$price2 === void 0 ? void 0 : _this$dataItem3$price2.filter(e => e.info === this.currencySymbol.euro)[0];\n },\n\n totalPriceCalc() {\n var _this$totalPriceDolla, _this$totalPriceEuro;\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.formatPriceEuro((_this$totalPriceEuro = this.totalPriceEuro) === null || _this$totalPriceEuro === void 0 ? void 0 : _this$totalPriceEuro.totalPrice) : \"\";\n return this.formatPrice(this.totalPriceTl) + this.currencySymbol.tl + totalDollar + totalEuro;\n }\n\n },\n methods: { ...Object(vuex__WEBPACK_IMPORTED_MODULE_0__[\"mapActions\"])([\"getRecommendedPackageDetail\", \"getMarket\", \"getPlatform\", \"cancelRecommendedPackage\", \"getRecommendedAllPackageList\", \"getPurchaseChangeStartDate\", \"postRecommendedPackageOrderIncrease\", \"postRecommendedPackageOrderDecrease\"]),\n ...Object(vuex__WEBPACK_IMPORTED_MODULE_0__[\"mapMutations\"])([\"setGeneralFilter\"]),\n\n increaseOrder(id) {\n this.postRecommendedPackageOrderIncrease(id).then(response => {\n if (!response) {\n this.getRecommendedAllPackageList();\n } else {\n this.$toast.error(response.error.message);\n }\n });\n },\n\n decreaseOrder(id) {\n this.postRecommendedPackageOrderDecrease(id).then(response => {\n if (!response) {\n this.getRecommendedAllPackageList();\n } else {\n this.$toast.error(response.error.message);\n }\n });\n },\n\n addCart(recommendationPackageId) {\n this.getRecommendedPackageDetail(recommendationPackageId).then(() => {\n this.packageDetail = this.recommendedPackageInfo;\n this.getMarket([this.packageDetail.application.applicationId, this.packageDetail.platform.platformId, null]).then(() => {\n this.marketInfo = this.getMarketInfo;\n });\n this.isPopupVisible = true;\n });\n },\n\n cancel(recommendationPackageNo) {\n this.cancelRecommendedPackage(recommendationPackageNo).then(res => {\n if (res.data === true) {\n this.getRecommendedAllPackageList();\n this.$toast.success(\"İptal Edildi\");\n this.closeModal();\n }\n });\n },\n\n showModal(packageStatus) {\n if (packageStatus === 5) {\n this.$toast.error(\"Paketiniz zaten iptal edilmiş durumdadır.\");\n } else {\n this.$modal.show(this.getDataItemId);\n }\n },\n\n closeModal() {\n this.$modal.hide(this.getDataItemId);\n },\n\n changeStartDate(val) {\n const args = {\n PurchaseNumber: this.dataItem.recommendationPackageNo,\n DateSelection: val\n };\n this.getPurchaseChangeStartDate(args).then(res => {\n if (res !== null && res !== void 0 && res.error) {\n this.$toast.error(res.message);\n } else {\n this.$toast.success(\"Başarıyla güncelleme yapıldı.\");\n }\n });\n },\n\n closePopup() {\n this.isPopupVisible = false;\n this.getRecommendedAllPackageList();\n },\n\n getTime(dateTime, formatType) {\n let stringDateTime = dateTime.toLocaleString();\n let generateMomentDate = this.$moment(new Date(stringDateTime)).format(formatType);\n return generateMomentDate;\n }\n\n },\n\n mounted() {\n var _this$getUserInfo;\n\n let selectedFilter = {};\n\n if (this.generalFilter.filter !== undefined && this.generalFilter.filter !== {}) {\n selectedFilter = this.generalFilter.filter;\n }\n\n this.setGeneralFilter({\n page: 1,\n size: 5,\n filter: selectedFilter\n });\n this.userType = (_this$getUserInfo = this.getUserInfo) === null || _this$getUserInfo === void 0 ? void 0 : _this$getUserInfo.memberType;\n }\n\n});\n\n//# sourceURL=webpack://OsmanliPackage/./src/components/recommendedPackages/Table.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");
|
|
1795
1795
|
|
|
1796
1796
|
/***/ }),
|
|
1797
1797
|
|
|
@@ -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 InfoArea: _components__WEBPACK_IMPORTED_MODULE_1__[\"InfoArea\"],\n PackageSettigns: _components_customer_PackageSettigns_vue__WEBPACK_IMPORTED_MODULE_2__[\"default\"],\n CustomerInfo: _components__WEBPACK_IMPORTED_MODULE_1__[\"CustomerInfo\"]\n },\n mixins: [_mixins__WEBPACK_IMPORTED_MODULE_6__[\"default\"]],\n\n data() {\n return {\n getPaymentStatuses: [],\n summaryData: [],\n mergedDatasAfterSummaryPull: [],\n totalFundAmount: 0,\n totalCommissionAmount: 0,\n totalNextMonthFundAmount: 0,\n totalNextMonthCommissionAmount: 0,\n packageDetail: null,\n marketInfo: null,\n isPopupVisible: false,\n isWarningAllowed: false,\n totalPriceTl: [],\n totalPriceDollar: [],\n totalPriceEuro: [],\n totalPriceNextMonthTl: [],\n totalPriceNextMonthDollar: [],\n totalPriceNextMonthEuro: [],\n totalPrice: 0,\n totalPriceForeign: 0,\n isButtonClicked: true,\n esube: Object(_utils_tokenTools__WEBPACK_IMPORTED_MODULE_5__[\"getItem\"])(\"esube\"),\n IsRecommendationPackage: false,\n isUpgradedPurchase: true,\n showNextMonthRow: 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 customerId: null,\n haveCurrency: false,\n isRecomendedPackage: false\n };\n },\n\n computed: { ...Object(vuex__WEBPACK_IMPORTED_MODULE_0__[\"mapGetters\"])([\"customer\", \"packageSummary\", \"getPackageInfo\", \"getDraftPackageDetails\", \"getMarketInfo\", \"getUserInfo\", \"recommendationSummary\", \"getFilterList\"]),\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 getCustomerId() {\n return this.customer.id;\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 var _this$summaryData, _this$summaryData$pri;\n\n if (((_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.prices) == null) {\n var _this$summaryData2, _this$summaryData2$ne;\n\n return (_this$summaryData2 = this.summaryData) === null || _this$summaryData2 === void 0 ? void 0 : (_this$summaryData2$ne = _this$summaryData2.nextMonthPrice) === null || _this$summaryData2$ne === void 0 ? void 0 : _this$summaryData2$ne.screenPrice;\n } else {\n var _this$summaryData3, _this$summaryData3$pr;\n\n return (_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.screenPrice;\n }\n },\n\n screenFund() {\n var _this$summaryData4, _this$summaryData4$pr;\n\n if (((_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.prices) == null) {\n var _this$summaryData$nex;\n\n return (_this$summaryData$nex = this.summaryData.nextMonthPrice) === null || _this$summaryData$nex === void 0 ? void 0 : _this$summaryData$nex.screenFund;\n } else {\n var _this$summaryData$pri2;\n\n return (_this$summaryData$pri2 = this.summaryData.price) === null || _this$summaryData$pri2 === void 0 ? void 0 : _this$summaryData$pri2.screenFund;\n }\n },\n\n screenCommission() {\n var _this$summaryData5, _this$summaryData5$pr;\n\n if (((_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$pr.prices) == null) {\n var _this$summaryData6, _this$summaryData6$ne;\n\n return (_this$summaryData6 = this.summaryData) === null || _this$summaryData6 === void 0 ? void 0 : (_this$summaryData6$ne = _this$summaryData6.nextMonthPrice) === null || _this$summaryData6$ne === void 0 ? void 0 : _this$summaryData6$ne.screenCommission;\n } else {\n var _this$summaryData7, _this$summaryData7$pr;\n\n return (_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$pr.screenCommission;\n }\n }\n\n },\n\n mounted() {\n this.customerId = this.$route.query.c === undefined ? localStorage.getItem(\"userCusId\") : this.getCustomerId;\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 this.isUpgradedPurchase = this.$route.params.isUpgradedPurchase == undefined ? false : this.$route.params.isUpgradedPurchase;\n this.getPaymentStatus();\n },\n\n methods: { ...Object(vuex__WEBPACK_IMPORTED_MODULE_0__[\"mapActions\"])([\"getPackageSummary\", \"getRecommendationSummary\", \"confirm\", \"searchCustomer\", \"getDraftPackageDetail\", \"getMarket\"]),\n\n getPaymentStatus() {\n const paymentStatuses = this.getFilterList.filter(o => {\n return o.name === \"PaymentStatus\";\n });\n if (paymentStatuses.length > 0) this.getPaymentStatuses = paymentStatuses[0].values;\n },\n\n goBack() {\n var _this$$route, _this$$route$meta, _this$$route2, _this$$route2$meta;\n\n const goBack = this.getUserInfo.memberType == \"3\" ? this.$router.go(-1) : this.$router.push({\n name: (_this$$route = this.$route) === null || _this$$route === void 0 ? void 0 : (_this$$route$meta = _this$$route.meta) === null || _this$$route$meta === void 0 ? void 0 : _this$$route$meta.breadcrumb[2].url.name,\n params: (_this$$route2 = this.$route) === null || _this$$route2 === void 0 ? void 0 : (_this$$route2$meta = _this$$route2.meta) === null || _this$$route2$meta === void 0 ? void 0 : _this$$route2$meta.breadcrumb[2].url.params\n });\n return goBack;\n },\n\n addCart(purchaseNo) {\n this.getDraftPackageDetail([purchaseNo, this.customerId]).then(() => {\n this.packageDetail = this.getDraftPackageDetails;\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 async getSummary() {\n if (this.isRecoQueryDefinedAndYes()) {\n await this.getRecommendationSummaryFunc();\n } else {\n await this.getDraftPackageDetailSummary();\n }\n },\n\n isRecoQueryDefinedAndYes() {\n return this.$route.query.isReco !== undefined && this.$route.query.isReco === \"yes\";\n },\n\n async getRecommendationSummaryFunc() {\n const res = await this.getDraftPackageDetail(this.packageNumber);\n\n if (res) {\n this.processSummaryData(res.data);\n this.IsRecommendationPackage = true;\n }\n },\n\n async getDraftPackageDetailSummary() {\n const res = await this.getDraftPackageDetail([this.packageNumber]);\n\n if (res) {\n this.processSummaryData(res.data);\n }\n },\n\n processSummaryData(data) {\n var _this$summaryData8, _this$summaryData8$pa, _this$summaryData9, _this$summaryData9$pa, _this$summaryData10, _this$summaryData11, _this$summaryData12, _this$summaryData13;\n\n this.summaryData = data;\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 this.isWarningAllowed = isWarningAllowed.length && hasPriceVal.length;\n this.totalFundAmount = (_this$summaryData10 = this.summaryData) === null || _this$summaryData10 === void 0 ? void 0 : _this$summaryData10.price.totalFundAmount;\n this.totalCommissionAmount = (_this$summaryData11 = this.summaryData) === null || _this$summaryData11 === void 0 ? void 0 : _this$summaryData11.price.totalCommissionAmount;\n this.totalNextMonthFundAmount = (_this$summaryData12 = this.summaryData) === null || _this$summaryData12 === void 0 ? void 0 : _this$summaryData12.nextMonthPrice.totalFundAmount;\n this.totalNextMonthCommissionAmount = (_this$summaryData13 = this.summaryData) === null || _this$summaryData13 === void 0 ? void 0 : _this$summaryData13.nextMonthPrice.totalCommissionAmount;\n this.totalPriceTl = this.getPriceByCurrencySymbol(\"tl\");\n this.totalPriceNextMonthTl = this.getNextMonthPriceByCurrencySymbol(\"tl\");\n this.totalPriceDollar = this.getPriceByCurrencySymbol(\"dolar\");\n this.totalPriceNextMonthDollar = this.getNextMonthPriceByCurrencySymbol(\"dolar\");\n this.totalPriceEuro = this.getPriceByCurrencySymbol(\"euro\");\n this.totalPriceNextMonthEuro = this.getNextMonthPriceByCurrencySymbol(\"euro\");\n this.doubleVendorAndMarketFeature();\n },\n\n getPriceByCurrencySymbol(symbol) {\n var _this$summaryData14, _this$summaryData14$p, _this$summaryData14$p2;\n\n return (_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[symbol])[0];\n },\n\n getNextMonthPriceByCurrencySymbol(symbol) {\n var _this$summaryData15, _this$summaryData15$n, _this$summaryData15$n2;\n\n return (_this$summaryData15 = this.summaryData) === null || _this$summaryData15 === void 0 ? void 0 : (_this$summaryData15$n = _this$summaryData15.nextMonthPrice) === null || _this$summaryData15$n === void 0 ? void 0 : (_this$summaryData15$n2 = _this$summaryData15$n.prices) === null || _this$summaryData15$n2 === void 0 ? void 0 : _this$summaryData15$n2.filter(e => e.info === this.currencySymbol[symbol])[0];\n },\n\n totalPriceCalc() {\n var _this$summaryData16, _this$summaryData16$f, _this$totalPriceDolla, _this$totalPriceDolla2, _this$totalPriceEuro, _this$totalPriceEuro2, _this$totalPriceDolla3, _this$totalPriceEuro3, _this$totalPriceTl;\n\n let foreignPricesTL = [];\n let totalSum = 0;\n (_this$summaryData16 = this.summaryData) === null || _this$summaryData16 === void 0 ? void 0 : (_this$summaryData16$f = _this$summaryData16.foreignIndice) === null || _this$summaryData16$f === void 0 ? void 0 : _this$summaryData16$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$totalPriceDolla = this.totalPriceDollar) !== null && _this$totalPriceDolla !== void 0 && _this$totalPriceDolla.totalPrice ? \" + \" + this.formatPriceDollar((_this$totalPriceDolla2 = this.totalPriceDollar) === null || _this$totalPriceDolla2 === void 0 ? void 0 : _this$totalPriceDolla2.totalPrice) + \" Dolar\" : \"\";\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) + \" Euro\" : \"\";\n\n if (((_this$totalPriceDolla3 = this.totalPriceDollar) === null || _this$totalPriceDolla3 === void 0 ? void 0 : _this$totalPriceDolla3.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$totalPriceTl = this.totalPriceTl) === null || _this$totalPriceTl === void 0 ? void 0 : _this$totalPriceTl.totalPrice) !== undefined ? this.formatPrice(this.totalPriceTl.totalPrice + totalSum) + \" TL\" : \"0 TL\"} ${totalDollar}${totalEuro}`;\n },\n\n totalPriceNextMonthCalc() {\n var _this$summaryData17, _this$summaryData17$f, _this$totalPriceNextM, _this$totalPriceNextM2, _this$totalPriceNextM3, _this$totalPriceNextM4, _this$totalPriceNextM5;\n\n let foreignPricesTL = [];\n let totalSum = 0;\n (_this$summaryData17 = this.summaryData) === null || _this$summaryData17 === void 0 ? void 0 : (_this$summaryData17$f = _this$summaryData17.foreignIndice) === null || _this$summaryData17$f === void 0 ? void 0 : _this$summaryData17$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.totalPriceNextMonthDollar ? this.formatPriceDollar((_this$totalPriceNextM = this.totalPriceNextMonthDollar) === null || _this$totalPriceNextM === void 0 ? void 0 : _this$totalPriceNextM.totalPrice) + \" Dolar\" : \"\";\n let totalEuro = (_this$totalPriceNextM2 = this.totalPriceNextMonthEuro) !== null && _this$totalPriceNextM2 !== void 0 && _this$totalPriceNextM2.totalPrice ? this.formatPriceEuro((_this$totalPriceNextM3 = this.totalPriceNextMonthEuro) === null || _this$totalPriceNextM3 === void 0 ? void 0 : _this$totalPriceNextM3.totalPrice) + \" Euro \" : \"\";\n\n if (((_this$totalPriceNextM4 = this.totalPriceNextMonthDollar) === null || _this$totalPriceNextM4 === void 0 ? void 0 : _this$totalPriceNextM4.totalPrice) !== undefined || ((_this$totalPriceNextM5 = this.totalPriceNextMonthEuro) === null || _this$totalPriceNextM5 === void 0 ? void 0 : _this$totalPriceNextM5.totalPrice) !== undefined) {\n this.haveCurrency = true;\n }\n\n const tlTotal = this.totalPriceNextMonthTl && this.totalPriceNextMonthTl.totalPrice !== undefined ? this.formatPrice(this.totalPriceNextMonthTl.totalPrice + totalSum) + \" TL\" : \"0 TL\";\n return tlTotal + (totalDollar !== \"\" && tlTotal !== \"0 TL\" ? \" + \" + totalDollar + (totalEuro !== \"\" && totalDollar ? \" + \" : \"\") : \"\") + totalEuro;\n },\n\n doubleVendorAndMarketFeature() {\n this.mergedDatasAfterSummaryPull = [];\n this.summaryData.package.forEach(item => {\n if (item.marketFeature && item.perspectiveFeature) {\n this.mergedDatasAfterSummaryPull.push({\n marketFeature: {\n name: item.marketFeature.name\n },\n perspectiveFeature: {\n name: item.perspectiveFeature.name\n },\n endDate: item.endDate,\n dateSelection: item.dateSelection,\n totalFundAmount: item.marketFeature.fundAmount + item.perspectiveFeature.fundAmount,\n totalCommissionAmount: item.marketFeature.commissionAmount + item.perspectiveFeature.commissionAmount,\n totalPrice: item.marketFeature.price + item.perspectiveFeature.price\n });\n }\n\n if (item.marketFeature && item.vendorFeature && item.vendorFeature.name != \"Yok\") {\n this.mergedDatasAfterSummaryPull.push({\n marketFeature: {\n name: item.marketFeature.name\n },\n vendorFeature: {\n name: item.vendorFeature.name\n },\n endDate: item.endDate,\n dateSelection: item.dateSelection,\n totalFundAmount: item.marketFeature.fundAmount + item.vendorFeature.fundAmount,\n totalCommissionAmount: item.marketFeature.commissionAmount + item.vendorFeature.commissionAmount,\n totalPrice: item.marketFeature.price + item.vendorFeature.price\n });\n }\n });\n },\n\n confirmPackage() {\n this.isButtonClicked = true;\n const args = {\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 this.$router.push({\n name: \"CustomerDetail\",\n params: {\n customerId: this.getCustomerId,\n customerNumber: this.$route.params.customerNumber\n }\n });\n }\n });\n }\n\n },\n watch: {\n summaryData(val) {\n const getDateSelection = val.package.filter(item => item.dateSelection.key == \"1\");\n\n if (getDateSelection.length > 0) {\n this.showNextMonthRow = true;\n } else {\n this.showNextMonthRow = false;\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 InfoArea: _components__WEBPACK_IMPORTED_MODULE_1__[\"InfoArea\"],\n PackageSettigns: _components_customer_PackageSettigns_vue__WEBPACK_IMPORTED_MODULE_2__[\"default\"],\n CustomerInfo: _components__WEBPACK_IMPORTED_MODULE_1__[\"CustomerInfo\"]\n },\n mixins: [_mixins__WEBPACK_IMPORTED_MODULE_6__[\"default\"]],\n\n data() {\n return {\n getPaymentStatuses: [],\n summaryData: [],\n mergedDatasAfterSummaryPull: [],\n totalFundAmount: 0,\n totalCommissionAmount: 0,\n totalNextMonthFundAmount: 0,\n totalNextMonthCommissionAmount: 0,\n packageDetail: null,\n marketInfo: null,\n isPopupVisible: false,\n isWarningAllowed: false,\n totalPriceTl: [],\n totalPriceDollar: [],\n totalPriceEuro: [],\n totalPriceNextMonthTl: [],\n totalPriceNextMonthDollar: [],\n totalPriceNextMonthEuro: [],\n totalPrice: 0,\n totalPriceForeign: 0,\n isButtonClicked: true,\n esube: Object(_utils_tokenTools__WEBPACK_IMPORTED_MODULE_5__[\"getItem\"])(\"esube\"),\n IsRecommendationPackage: false,\n isUpgradedPurchase: true,\n showNextMonthRow: false,\n infoText: [\"Veri paketiniz iptal edilmemesi durumunda bir sonraki ay başında tekrar güncellenecektir.\", \"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 customerId: null,\n haveCurrency: false,\n isRecomendedPackage: false\n };\n },\n\n computed: { ...Object(vuex__WEBPACK_IMPORTED_MODULE_0__[\"mapGetters\"])([\"customer\", \"packageSummary\", \"getPackageInfo\", \"getDraftPackageDetails\", \"getMarketInfo\", \"getUserInfo\", \"recommendationSummary\", \"getFilterList\"]),\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 getCustomerId() {\n return this.customer.id;\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 var _this$summaryData, _this$summaryData$pri;\n\n if (((_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.prices) == null) {\n var _this$summaryData2, _this$summaryData2$ne;\n\n return (_this$summaryData2 = this.summaryData) === null || _this$summaryData2 === void 0 ? void 0 : (_this$summaryData2$ne = _this$summaryData2.nextMonthPrice) === null || _this$summaryData2$ne === void 0 ? void 0 : _this$summaryData2$ne.screenPrice;\n } else {\n var _this$summaryData3, _this$summaryData3$pr;\n\n return (_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.screenPrice;\n }\n },\n\n screenFund() {\n var _this$summaryData4, _this$summaryData4$pr;\n\n if (((_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.prices) == null) {\n var _this$summaryData$nex;\n\n return (_this$summaryData$nex = this.summaryData.nextMonthPrice) === null || _this$summaryData$nex === void 0 ? void 0 : _this$summaryData$nex.screenFund;\n } else {\n var _this$summaryData$pri2;\n\n return (_this$summaryData$pri2 = this.summaryData.price) === null || _this$summaryData$pri2 === void 0 ? void 0 : _this$summaryData$pri2.screenFund;\n }\n },\n\n screenCommission() {\n var _this$summaryData5, _this$summaryData5$pr;\n\n if (((_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$pr.prices) == null) {\n var _this$summaryData6, _this$summaryData6$ne;\n\n return (_this$summaryData6 = this.summaryData) === null || _this$summaryData6 === void 0 ? void 0 : (_this$summaryData6$ne = _this$summaryData6.nextMonthPrice) === null || _this$summaryData6$ne === void 0 ? void 0 : _this$summaryData6$ne.screenCommission;\n } else {\n var _this$summaryData7, _this$summaryData7$pr;\n\n return (_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$pr.screenCommission;\n }\n }\n\n },\n\n mounted() {\n this.customerId = this.$route.query.c === undefined ? localStorage.getItem(\"userCusId\") : this.getCustomerId;\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 this.isUpgradedPurchase = this.$route.params.isUpgradedPurchase == undefined ? false : this.$route.params.isUpgradedPurchase;\n this.getPaymentStatus();\n },\n\n methods: { ...Object(vuex__WEBPACK_IMPORTED_MODULE_0__[\"mapActions\"])([\"getPackageSummary\", \"getRecommendationSummary\", \"confirm\", \"searchCustomer\", \"getDraftPackageDetail\", \"getMarket\"]),\n\n getPaymentStatus() {\n const paymentStatuses = this.getFilterList.filter(o => {\n return o.name === \"PaymentStatus\";\n });\n if (paymentStatuses.length > 0) this.getPaymentStatuses = paymentStatuses[0].values;\n },\n\n goBack() {\n var _this$$route, _this$$route$meta, _this$$route2, _this$$route2$meta;\n\n const goBack = this.getUserInfo.memberType == \"3\" ? this.$router.go(-1) : this.$router.push({\n name: (_this$$route = this.$route) === null || _this$$route === void 0 ? void 0 : (_this$$route$meta = _this$$route.meta) === null || _this$$route$meta === void 0 ? void 0 : _this$$route$meta.breadcrumb[2].url.name,\n params: (_this$$route2 = this.$route) === null || _this$$route2 === void 0 ? void 0 : (_this$$route2$meta = _this$$route2.meta) === null || _this$$route2$meta === void 0 ? void 0 : _this$$route2$meta.breadcrumb[2].url.params\n });\n return goBack;\n },\n\n addCart(purchaseNo) {\n this.getDraftPackageDetail([purchaseNo, this.customerId]).then(() => {\n this.packageDetail = this.getDraftPackageDetails;\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 async getSummary() {\n if (this.isRecoQueryDefinedAndYes()) {\n await this.getRecommendationSummaryFunc();\n } else {\n await this.getDraftPackageDetailSummary();\n }\n },\n\n isRecoQueryDefinedAndYes() {\n return this.$route.query.isReco !== undefined && this.$route.query.isReco === \"yes\";\n },\n\n async getRecommendationSummaryFunc() {\n const res = await this.getDraftPackageDetail(this.packageNumber);\n\n if (res) {\n this.processSummaryData(res.data);\n this.IsRecommendationPackage = true;\n }\n },\n\n async getDraftPackageDetailSummary() {\n const res = await this.getDraftPackageDetail([this.packageNumber]);\n\n if (res) {\n this.processSummaryData(res.data);\n }\n },\n\n processSummaryData(data) {\n var _this$summaryData8, _this$summaryData8$pa, _this$summaryData9, _this$summaryData9$pa, _this$summaryData10, _this$summaryData11, _this$summaryData12, _this$summaryData13;\n\n this.summaryData = data;\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 this.isWarningAllowed = isWarningAllowed.length && hasPriceVal.length;\n this.totalFundAmount = (_this$summaryData10 = this.summaryData) === null || _this$summaryData10 === void 0 ? void 0 : _this$summaryData10.price.totalFundAmount;\n this.totalCommissionAmount = (_this$summaryData11 = this.summaryData) === null || _this$summaryData11 === void 0 ? void 0 : _this$summaryData11.price.totalCommissionAmount;\n this.totalNextMonthFundAmount = (_this$summaryData12 = this.summaryData) === null || _this$summaryData12 === void 0 ? void 0 : _this$summaryData12.nextMonthPrice.totalFundAmount;\n this.totalNextMonthCommissionAmount = (_this$summaryData13 = this.summaryData) === null || _this$summaryData13 === void 0 ? void 0 : _this$summaryData13.nextMonthPrice.totalCommissionAmount;\n this.totalPriceTl = this.getPriceByCurrencySymbol(\"tl\");\n this.totalPriceNextMonthTl = this.getNextMonthPriceByCurrencySymbol(\"tl\");\n this.totalPriceDollar = this.getPriceByCurrencySymbol(\"dolar\");\n this.totalPriceNextMonthDollar = this.getNextMonthPriceByCurrencySymbol(\"dolar\");\n this.totalPriceEuro = this.getPriceByCurrencySymbol(\"euro\");\n this.totalPriceNextMonthEuro = this.getNextMonthPriceByCurrencySymbol(\"euro\");\n this.doubleVendorAndMarketFeature();\n },\n\n getPriceByCurrencySymbol(symbol) {\n var _this$summaryData14, _this$summaryData14$p, _this$summaryData14$p2;\n\n return (_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[symbol])[0];\n },\n\n getNextMonthPriceByCurrencySymbol(symbol) {\n var _this$summaryData15, _this$summaryData15$n, _this$summaryData15$n2;\n\n return (_this$summaryData15 = this.summaryData) === null || _this$summaryData15 === void 0 ? void 0 : (_this$summaryData15$n = _this$summaryData15.nextMonthPrice) === null || _this$summaryData15$n === void 0 ? void 0 : (_this$summaryData15$n2 = _this$summaryData15$n.prices) === null || _this$summaryData15$n2 === void 0 ? void 0 : _this$summaryData15$n2.filter(e => e.info === this.currencySymbol[symbol])[0];\n },\n\n totalPriceCalc() {\n var _this$summaryData16, _this$summaryData16$f, _this$totalPriceDolla, _this$totalPriceDolla2, _this$totalPriceEuro, _this$totalPriceEuro2, _this$totalPriceDolla3, _this$totalPriceEuro3, _this$totalPriceTl;\n\n let foreignPricesTL = [];\n let totalSum = 0;\n (_this$summaryData16 = this.summaryData) === null || _this$summaryData16 === void 0 ? void 0 : (_this$summaryData16$f = _this$summaryData16.foreignIndice) === null || _this$summaryData16$f === void 0 ? void 0 : _this$summaryData16$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$totalPriceDolla = this.totalPriceDollar) !== null && _this$totalPriceDolla !== void 0 && _this$totalPriceDolla.totalPrice ? \" + \" + this.formatPriceDollar((_this$totalPriceDolla2 = this.totalPriceDollar) === null || _this$totalPriceDolla2 === void 0 ? void 0 : _this$totalPriceDolla2.totalPrice) + \" Dolar\" : \"\";\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) + \" Euro\" : \"\";\n\n if (((_this$totalPriceDolla3 = this.totalPriceDollar) === null || _this$totalPriceDolla3 === void 0 ? void 0 : _this$totalPriceDolla3.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$totalPriceTl = this.totalPriceTl) === null || _this$totalPriceTl === void 0 ? void 0 : _this$totalPriceTl.totalPrice) !== undefined ? this.formatPrice(this.totalPriceTl.totalPrice + totalSum) + \" TL\" : \"0 TL\"} ${totalDollar}${totalEuro}`;\n },\n\n totalPriceNextMonthCalc() {\n var _this$summaryData17, _this$summaryData17$f, _this$totalPriceNextM, _this$totalPriceNextM2, _this$totalPriceNextM3, _this$totalPriceNextM4, _this$totalPriceNextM5;\n\n let foreignPricesTL = [];\n let totalSum = 0;\n (_this$summaryData17 = this.summaryData) === null || _this$summaryData17 === void 0 ? void 0 : (_this$summaryData17$f = _this$summaryData17.foreignIndice) === null || _this$summaryData17$f === void 0 ? void 0 : _this$summaryData17$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.totalPriceNextMonthDollar ? this.formatPriceDollar((_this$totalPriceNextM = this.totalPriceNextMonthDollar) === null || _this$totalPriceNextM === void 0 ? void 0 : _this$totalPriceNextM.totalPrice) + \" Dolar\" : \"\";\n let totalEuro = (_this$totalPriceNextM2 = this.totalPriceNextMonthEuro) !== null && _this$totalPriceNextM2 !== void 0 && _this$totalPriceNextM2.totalPrice ? this.formatPriceEuro((_this$totalPriceNextM3 = this.totalPriceNextMonthEuro) === null || _this$totalPriceNextM3 === void 0 ? void 0 : _this$totalPriceNextM3.totalPrice) + \" Euro \" : \"\";\n\n if (((_this$totalPriceNextM4 = this.totalPriceNextMonthDollar) === null || _this$totalPriceNextM4 === void 0 ? void 0 : _this$totalPriceNextM4.totalPrice) !== undefined || ((_this$totalPriceNextM5 = this.totalPriceNextMonthEuro) === null || _this$totalPriceNextM5 === void 0 ? void 0 : _this$totalPriceNextM5.totalPrice) !== undefined) {\n this.haveCurrency = true;\n }\n\n const tlTotal = this.totalPriceNextMonthTl && this.totalPriceNextMonthTl.totalPrice !== undefined ? this.formatPrice(this.totalPriceNextMonthTl.totalPrice + totalSum) + \" TL\" : \"0 TL\";\n return tlTotal + (totalDollar !== \"\" && tlTotal !== \"0 TL\" ? \" + \" + totalDollar + (totalEuro !== \"\" && totalDollar ? \" + \" : \"\") : \"\") + totalEuro;\n },\n\n doubleVendorAndMarketFeature() {\n this.mergedDatasAfterSummaryPull = [];\n this.summaryData.package.forEach(item => {\n if (item.marketFeature && item.perspectiveFeature) {\n this.mergedDatasAfterSummaryPull.push({\n marketFeature: {\n name: item.marketFeature.name\n },\n perspectiveFeature: {\n name: item.perspectiveFeature.name\n },\n endDate: item.endDate,\n dateSelection: item.dateSelection,\n totalFundAmount: item.marketFeature.fundAmount + item.perspectiveFeature.fundAmount,\n totalCommissionAmount: item.marketFeature.commissionAmount + item.perspectiveFeature.commissionAmount,\n totalPrice: item.marketFeature.price + item.perspectiveFeature.price\n });\n }\n\n if (item.marketFeature && item.vendorFeature && item.vendorFeature.name != \"Yok\") {\n this.mergedDatasAfterSummaryPull.push({\n marketFeature: {\n name: item.marketFeature.name\n },\n vendorFeature: {\n name: item.vendorFeature.name\n },\n endDate: item.endDate,\n dateSelection: item.dateSelection,\n totalFundAmount: item.marketFeature.fundAmount + item.vendorFeature.fundAmount,\n totalCommissionAmount: item.marketFeature.commissionAmount + item.vendorFeature.commissionAmount,\n totalPrice: item.marketFeature.price + item.vendorFeature.price\n });\n }\n });\n },\n\n confirmPackage() {\n this.isButtonClicked = true;\n const args = {\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 this.$router.push({\n name: \"CustomerDetail\",\n params: {\n customerId: this.getCustomerId,\n customerNumber: this.$route.params.customerNumber\n }\n });\n }\n });\n }\n\n },\n watch: {\n summaryData(val) {\n const getDateSelection = val.package.filter(item => item.dateSelection.key == \"1\");\n\n if (getDateSelection.length > 0) {\n this.showNextMonthRow = true;\n } else {\n this.showNextMonthRow = false;\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
|
|
|
@@ -2259,7 +2259,7 @@ eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) *
|
|
|
2259
2259
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
2260
2260
|
|
|
2261
2261
|
"use strict";
|
|
2262
|
-
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 \"popup-right\",\n {\n attrs: { title: \"Paket Ayarları\", isPopupVisible: _vm.isPopupVisible },\n on: { close: _vm.setDefaultValues },\n },\n [\n _c(\"div\", { staticClass: \"package-settings\" }, [\n _c(\n \"div\",\n { staticClass: \"package-settings__top m-flex m-items-center\" },\n [\n _c(\n \"div\",\n { staticClass: \"package-settings__image\" },\n [\n _vm.dataItem && _vm.dataItem.imageUrl\n ? _c(\"img\", {\n attrs: {\n alt: \"product image\",\n src: _vm.dataItem.imageUrl,\n },\n })\n : _c(\"base-icon\", { attrs: { name: \"no-image\" } }),\n ],\n 1\n ),\n _c(\"div\", { staticClass: \"package-settings__info\" }, [\n _vm.dataItem.productName\n ? _c(\"h3\", [\n _vm._v(\" \" + _vm._s(_vm.dataItem.productName) + \" \"),\n ])\n : _vm._e(),\n _c(\"p\", { staticClass: \"package-settings__info-platform\" }, [\n _vm.dataItem.platform && _vm.dataItem.platform.name\n ? _c(\"span\", [_vm._v(_vm._s(_vm.dataItem.platform.name))])\n : _vm._e(),\n ]),\n ]),\n ]\n ),\n _vm.dataItem.dateSelection == 1 &&\n _vm.startDateSelection == 0 &&\n this.$route.name !== \"Checkout\"\n ? _c(\"span\", { staticClass: \"warning-messages\" }, [\n _c(\"span\", { staticClass: \"error-icon\" }, [_vm._v(\"!\")]),\n _vm._v(\n \" Paketinizi tüm lisanslarıyla birlikte bugün başlayacak şekilde güncelliyorsunuz!\"\n ),\n ])\n : _vm._e(),\n _c(\"div\", { staticClass: \"package-settings__lisans\" }, [\n _c(\"div\", { staticClass: \"package-settings__lisans__information\" }, [\n _c(\"h5\", { attrs: { id: \"lisans\" } }, [_vm._v(\"Lisans Bilgileri\")]),\n _c(\"div\", { staticClass: \"market-table\" }, [\n _vm.marketInfo\n ? _c(\n \"table\",\n {\n staticClass: \"table\",\n attrs: { \"aria-describedby\": \"lisans\" },\n },\n [\n _c(\"thead\", [\n _c(\"tr\", [\n _c(\"th\", { attrs: { scope: \"col\" } }),\n _c(\n \"th\",\n {\n staticClass: \"text-left\",\n attrs: { scope: \"col\" },\n },\n [_vm._v(\"Piyasa\")]\n ),\n _c(\n \"th\",\n {\n staticClass: \"text-left\",\n attrs: { scope: \"col\" },\n },\n [_vm._v(\"Derinlik\")]\n ),\n _c(\n \"th\",\n {\n staticClass: \"text-left\",\n attrs: { scope: \"col\" },\n },\n [_vm._v(\"Aracı Kurum Dağılımı\")]\n ),\n _c(\n \"th\",\n {\n staticClass: \"text-left\",\n attrs: { scope: \"col\" },\n },\n [_vm._v(\"Başlangıç Zamanı\")]\n ),\n ]),\n ]),\n !_vm.isResponsive\n ? _c(\n \"tbody\",\n _vm._l(_vm.marketInfo, function (item) {\n return _c(\"package-setting-type\", {\n key: item.id,\n attrs: {\n item: item,\n dataItem: _vm.dataItem,\n selectData: _vm.selectData,\n isResponsive: false,\n },\n on: {\n update: _vm.changeSelected,\n showSpesificWarning: _vm.checkSpesificWarning,\n },\n })\n }),\n 1\n )\n : _vm._e(),\n ]\n )\n : _vm._e(),\n ]),\n _vm.isResponsive\n ? _c(\n \"div\",\n { staticClass: \"market-table-responsive\" },\n _vm._l(_vm.marketInfo, function (item) {\n return _c(\"package-setting-type\", {\n key: item.id,\n attrs: {\n item: item,\n dataItem: _vm.dataItem,\n selectData: _vm.selectData,\n isResponsive: true,\n },\n on: {\n update: _vm.changeSelected,\n showSpesificWarning: _vm.checkSpesificWarning,\n },\n })\n }),\n 1\n )\n : _vm._e(),\n _vm.warningMessage\n ? _c(\"div\", { staticClass: \"m-flex m-items-center mb-10\" }, [\n _c(\n \"span\",\n { staticClass: \"icon-area\" },\n [\n _c(\"base-icon\", {\n staticClass: \"icon\",\n attrs: { name: \"info\" },\n }),\n ],\n 1\n ),\n _vm._v(\n \" Karma Lisans paketinde derinlik bilgisi bulunmamaktadır \"\n ),\n ])\n : _vm._e(),\n ]),\n _c(\"div\", { staticClass: \"accordion-container\" }, [\n _vm.research.length > 0 &&\n _vm.research[0].details &&\n _vm.research[0].details.length > 0\n ? _c(\n \"div\",\n [\n _c(\"accordion-research\", {\n attrs: {\n id: \"accordion-research\",\n content: _vm.research,\n dataItem: _vm.dataItem,\n },\n }),\n ],\n 1\n )\n : _vm._e(),\n _vm.foreign.length > 0 &&\n _vm.foreign[0].details &&\n _vm.foreign[0].details.length > 0\n ? _c(\n \"div\",\n [\n _c(\"accordion-foreign\", {\n attrs: {\n id: \"accordion-foreign\",\n content: _vm.foreign,\n dataItem: _vm.dataItem,\n },\n }),\n ],\n 1\n )\n : _vm._e(),\n _vm.algoServer.length > 0 &&\n _vm.algoServer[0].details &&\n _vm.algoServer[0].details.length > 0\n ? _c(\n \"div\",\n [\n _c(\"accordion-algo-server\", {\n attrs: {\n id: \"accordion-algo-server\",\n content: _vm.algoServer,\n dataItem: _vm.dataItem,\n },\n }),\n ],\n 1\n )\n : _vm._e(),\n ]),\n ]),\n ]),\n _c(\n \"div\",\n { staticClass: \"package-settings__bottom m-flex m-items-center\" },\n [\n _c(\"div\", { staticClass: \"package-settings__bottom-right\" }, [\n _c(\"p\", [\n _c(\"span\", { staticClass: \"m-text-grayscale-80\" }, [\n _vm._v(\"BES/Yatırım Fonu: \"),\n ]),\n _vm._v(\n \" \" +\n _vm._s(\n _vm.formatPrice(\n _vm.bottomFund +\n _vm.researchFund +\n _vm.foreignFund +\n _vm.algoServerFund\n )\n ) +\n \" TL \"\n ),\n ]),\n _c(\"p\", [\n _c(\"span\", { staticClass: \"m-text-grayscale-80\" }, [\n _vm._v(\"Komisyon:\"),\n ]),\n _vm._v(\n \" \" +\n _vm._s(\n _vm.formatPrice(\n _vm.bottomCommission +\n _vm.researchCommission +\n _vm.foreignCommission +\n _vm.algoServerCommission\n )\n ) +\n \" TL \"\n ),\n ]),\n ]),\n _c(\"div\", { staticClass: \"package-settings__bottom-left\" }, [\n _c(\"div\", { staticClass: \"package-settings__price m-flex\" }, [\n _c(\"span\", [_vm._v(\"Toplam Tutar: \")]),\n _c(\"h2\", [\n _vm._v(\n \" \" +\n _vm._s(\n _vm.formatPrice(\n _vm.totalPrice +\n _vm.researchTotal +\n _vm.algoServerTotal +\n _vm.foraignTurkishLiraTotal\n )\n ) +\n \" TL \"\n ),\n ]),\n _vm.foreign.length > 0 &&\n _vm.foreign[0].details &&\n _vm.foreign[0].details.length > 0\n ? _c(\"h2\", [\n _vm._v(\n \" \" +\n _vm._s(\n _vm.foraignDollarTotal > 0\n ? \"+ \" +\n _vm.formatPriceDollar(_vm.foraignDollarTotal) +\n \" Dolar\"\n : \"\"\n ) +\n \" \" +\n _vm._s(\n _vm.foraignEuroTotal > 0\n ? \"+ \" +\n _vm.formatPriceEuro(_vm.foraignEuroTotal) +\n \" Euro\"\n : \"\"\n ) +\n \" \"\n ),\n ])\n : _vm._e(),\n ]),\n _c(\n \"div\",\n {\n staticClass:\n \"package-settings__bottom-action m-flex m-items-center\",\n },\n [\n _c(\n \"base-button\",\n {\n class: { \"button-disabled\": _vm.isButtonClicked },\n attrs: { id: \"edit-submit-btn\" },\n on: { click: _vm.submitShow },\n },\n [_vm._v(\"Onayla\")]\n ),\n ],\n 1\n ),\n ]),\n ]\n ),\n _c(\n \"div\",\n { staticClass: \"info-container\" },\n [\n _c(\"info-area\", {\n attrs: { infoText: _vm.infoText, typeWarning: true },\n }),\n ],\n 1\n ),\n ]\n )\n}\nvar staticRenderFns = []\nrender._withStripped = true\n\n\n\n//# sourceURL=webpack://OsmanliPackage/./src/components/customer/PackageSettigns.vue?./node_modules/cache-loader/dist/cjs.js?%7B%22cacheDirectory%22:%22node_modules/.cache/vue-loader%22,%22cacheIdentifier%22:%225a848ef0-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");
|
|
2262
|
+
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 \"popup-right\",\n {\n attrs: { title: \"Paket Ayarları\", isPopupVisible: _vm.isPopupVisible },\n on: { close: _vm.setDefaultValues },\n },\n [\n _c(\"div\", { staticClass: \"package-settings\" }, [\n _c(\n \"div\",\n { staticClass: \"package-settings__top m-flex m-items-center\" },\n [\n _c(\n \"div\",\n { staticClass: \"package-settings__image\" },\n [\n _vm.dataItem && _vm.dataItem.imageUrl\n ? _c(\"img\", {\n attrs: {\n alt: \"product image\",\n src: _vm.dataItem.imageUrl,\n },\n })\n : _c(\"base-icon\", { attrs: { name: \"no-image\" } }),\n ],\n 1\n ),\n _c(\"div\", { staticClass: \"package-settings__info\" }, [\n _vm.dataItem.productName\n ? _c(\"h3\", [_vm._v(_vm._s(_vm.dataItem.productName))])\n : _vm._e(),\n _c(\"p\", { staticClass: \"package-settings__info-platform\" }, [\n _vm.dataItem.platform && _vm.dataItem.platform.name\n ? _c(\"span\", [\n _vm._v(\" \" + _vm._s(_vm.dataItem.platform.name) + \" \"),\n ])\n : _vm._e(),\n ]),\n ]),\n ]\n ),\n _vm.dataItem.dateSelection == 1 &&\n _vm.startDateSelection == 0 &&\n this.$route.name !== \"Checkout\"\n ? _c(\"span\", { staticClass: \"warning-messages\" }, [\n _c(\"span\", { staticClass: \"error-icon\" }, [_vm._v(\"!\")]),\n _vm._v(\n \" Paketinizi tüm lisanslarıyla birlikte bugün başlayacak şekilde güncelliyorsunuz! \"\n ),\n ])\n : _vm._e(),\n _c(\"div\", { staticClass: \"package-settings__lisans\" }, [\n _c(\"div\", { staticClass: \"package-settings__lisans__information\" }, [\n _c(\"h5\", { attrs: { id: \"lisans\" } }, [_vm._v(\"Lisans Bilgileri\")]),\n _c(\"div\", { staticClass: \"market-table\" }, [\n _vm.marketInfo\n ? _c(\n \"table\",\n {\n staticClass: \"table\",\n attrs: { \"aria-describedby\": \"lisans\" },\n },\n [\n _c(\"thead\", [\n _c(\"tr\", [\n _c(\"th\", { attrs: { scope: \"col\" } }),\n _c(\n \"th\",\n {\n staticClass: \"text-left\",\n attrs: { scope: \"col\" },\n },\n [_vm._v(\"Piyasa\")]\n ),\n _c(\n \"th\",\n {\n staticClass: \"text-left\",\n attrs: { scope: \"col\" },\n },\n [_vm._v(\"Derinlik\")]\n ),\n _c(\n \"th\",\n {\n staticClass: \"text-left\",\n attrs: { scope: \"col\" },\n },\n [_vm._v(\"Aracı Kurum Dağılımı\")]\n ),\n _c(\n \"th\",\n {\n staticClass: \"text-left\",\n attrs: { scope: \"col\" },\n },\n [_vm._v(\"Başlangıç Zamanı\")]\n ),\n ]),\n ]),\n !_vm.isResponsive\n ? _c(\n \"tbody\",\n _vm._l(_vm.marketInfo, function (item) {\n return _c(\"package-setting-type\", {\n key: item.id,\n attrs: {\n item: item,\n dataItem: _vm.dataItem,\n selectData: _vm.selectData,\n isResponsive: false,\n },\n on: {\n update: _vm.changeSelected,\n showSpesificWarning: _vm.checkSpesificWarning,\n },\n })\n }),\n 1\n )\n : _vm._e(),\n ]\n )\n : _vm._e(),\n ]),\n _vm.isResponsive\n ? _c(\n \"div\",\n { staticClass: \"market-table-responsive\" },\n _vm._l(_vm.marketInfo, function (item) {\n return _c(\"package-setting-type\", {\n key: item.id,\n attrs: {\n item: item,\n dataItem: _vm.dataItem,\n selectData: _vm.selectData,\n isResponsive: true,\n },\n on: {\n update: _vm.changeSelected,\n showSpesificWarning: _vm.checkSpesificWarning,\n },\n })\n }),\n 1\n )\n : _vm._e(),\n _vm.warningMessage\n ? _c(\"div\", { staticClass: \"m-flex m-items-center mb-10\" }, [\n _c(\n \"span\",\n { staticClass: \"icon-area\" },\n [\n _c(\"base-icon\", {\n staticClass: \"icon\",\n attrs: { name: \"info\" },\n }),\n ],\n 1\n ),\n _vm._v(\n \" Karma Lisans paketinde derinlik bilgisi bulunmamaktadır \"\n ),\n ])\n : _vm._e(),\n ]),\n _c(\"div\", { staticClass: \"accordion-container\" }, [\n _vm.research.length > 0 &&\n _vm.research[0].details &&\n _vm.research[0].details.length > 0\n ? _c(\n \"div\",\n [\n _c(\"accordion-research\", {\n attrs: {\n id: \"accordion-research\",\n content: _vm.research,\n dataItem: _vm.dataItem,\n },\n }),\n ],\n 1\n )\n : _vm._e(),\n _vm.foreign.length > 0 &&\n _vm.foreign[0].details &&\n _vm.foreign[0].details.length > 0\n ? _c(\n \"div\",\n [\n _c(\"accordion-foreign\", {\n attrs: {\n id: \"accordion-foreign\",\n content: _vm.foreign,\n dataItem: _vm.dataItem,\n },\n }),\n ],\n 1\n )\n : _vm._e(),\n _vm.algoServer.length > 0 &&\n _vm.algoServer[0].details &&\n _vm.algoServer[0].details.length > 0\n ? _c(\n \"div\",\n [\n _c(\"accordion-algo-server\", {\n attrs: {\n id: \"accordion-algo-server\",\n content: _vm.algoServer,\n dataItem: _vm.dataItem,\n },\n }),\n ],\n 1\n )\n : _vm._e(),\n ]),\n ]),\n ]),\n _c(\n \"div\",\n { staticClass: \"package-settings__bottom m-flex m-items-center\" },\n [\n _c(\"div\", { staticClass: \"package-settings__bottom-right\" }, [\n _c(\"p\", [\n _c(\"span\", { staticClass: \"m-text-grayscale-80\" }, [\n _vm._v(\"BES/Yatırım Fonu:\"),\n ]),\n _vm._v(\n \" \" +\n _vm._s(\n _vm.formatPrice(\n _vm.bottomFund +\n _vm.researchFund +\n _vm.foreignFund +\n _vm.algoServerFund\n )\n ) +\n \" TL \"\n ),\n ]),\n _c(\"p\", [\n _c(\"span\", { staticClass: \"m-text-grayscale-80\" }, [\n _vm._v(\"Komisyon:\"),\n ]),\n _vm._v(\n \" \" +\n _vm._s(\n _vm.formatPrice(\n _vm.bottomCommission +\n _vm.researchCommission +\n _vm.foreignCommission +\n _vm.algoServerCommission\n )\n ) +\n \" TL \"\n ),\n ]),\n ]),\n _c(\"div\", { staticClass: \"package-settings__bottom-left\" }, [\n _c(\"div\", { staticClass: \"package-settings__price m-flex\" }, [\n _c(\"span\", [_vm._v(\"Toplam Tutar:\")]),\n _c(\"h2\", [\n _vm._v(\n \" \" +\n _vm._s(\n _vm.formatPrice(\n _vm.totalPrice +\n _vm.researchTotal +\n _vm.algoServerTotal +\n _vm.foraignTurkishLiraTotal\n )\n ) +\n \" TL \"\n ),\n ]),\n _vm.foreign.length > 0 &&\n _vm.foreign[0].details &&\n _vm.foreign[0].details.length > 0\n ? _c(\"h2\", [\n _vm._v(\n \" \" +\n _vm._s(\n _vm.foraignDollarTotal > 0\n ? \"+ \" +\n _vm.formatPriceDollar(_vm.foraignDollarTotal) +\n \" Dolar\"\n : \"\"\n ) +\n \" \" +\n _vm._s(\n _vm.foraignEuroTotal > 0\n ? \"+ \" +\n _vm.formatPriceEuro(_vm.foraignEuroTotal) +\n \" Euro\"\n : \"\"\n ) +\n \" \"\n ),\n ])\n : _vm._e(),\n ]),\n _c(\n \"div\",\n {\n staticClass:\n \"package-settings__bottom-action m-flex m-items-center\",\n },\n [\n _c(\n \"base-button\",\n {\n class: { \"button-disabled\": _vm.isButtonClicked },\n attrs: { id: \"edit-submit-btn\" },\n on: { click: _vm.submitShow },\n },\n [_vm._v(\"Onayla\")]\n ),\n ],\n 1\n ),\n ]),\n ]\n ),\n _c(\n \"div\",\n { staticClass: \"info-container\" },\n [\n _c(\"info-area\", {\n attrs: { infoText: _vm.infoText, typeWarning: true },\n }),\n ],\n 1\n ),\n ]\n )\n}\nvar staticRenderFns = []\nrender._withStripped = true\n\n\n\n//# sourceURL=webpack://OsmanliPackage/./src/components/customer/PackageSettigns.vue?./node_modules/cache-loader/dist/cjs.js?%7B%22cacheDirectory%22:%22node_modules/.cache/vue-loader%22,%22cacheIdentifier%22:%225a848ef0-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");
|
|
2263
2263
|
|
|
2264
2264
|
/***/ }),
|
|
2265
2265
|
|
|
@@ -2319,7 +2319,7 @@ eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) *
|
|
|
2319
2319
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
2320
2320
|
|
|
2321
2321
|
"use strict";
|
|
2322
|
-
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: \"package-slider\" },\n [\n _c(\"div\", { staticClass: \"package-slider__head\" }, [\n _c(\"label\", { staticClass: \"switch\" }, [\n _c(\"input\", {\n attrs: { type: \"checkbox\", id: \"switch-input\" },\n domProps: { checked: _vm.isDisplayed && \"checked\" },\n on: { click: _vm.changeSliderStatus },\n }),\n _c(\"span\", {\n staticClass: \"switch-slider\",\n attrs: { id: \"switch-slider\" },\n }),\n ]),\n _c(\"h4\", { staticClass: \"package-slider__title\" }, [\n _vm._v(\"En Çok Kullanılan Paketleri Göster\"),\n ]),\n ]),\n _vm.isDisplayed\n ? _c(\n \"carousel\",\n {\n attrs: {\n perPageCustom: [\n [320, 1],\n [1025, 2],\n ],\n mouseDrag: true,\n paginationActiveColor: \"#2c2c30\",\n paginationColor: \"#bebec3\",\n },\n },\n _vm._l(_vm.packages, function (pg) {\n return _c(\"slide\", { key: pg.id }, [\n _c(\"div\", { staticClass: \"package-item\" }, [\n _c(\n \"div\",\n { staticClass: \"package-item__image\" },\n [\n pg && pg.imageUrl\n ? _c(\"img\", {\n staticClass: \"image\",\n attrs: { alt: \"product image\", src: pg.imageUrl },\n })\n : _c(\"base-icon\", {\n staticClass: \"image\",\n attrs: { name: \"no-image\" },\n }),\n ],\n 1\n ),\n _c(\"div\", { staticClass: \"package-item__info\" }, [\n _c(\"div\", { staticClass: \"title\" }, [\n pg.productName\n ? _c(\"h6\", [\n _vm._v(\" \" + _vm._s(pg.productName) + \" \"),\n pg.platform && pg.platform.name\n ? _c(\"span\", { staticClass: \"lighter\" }, [\n _vm._v(\"/ \" + _vm._s(pg.platform.name)),\n ])\n : _vm._e(),\n ])\n : _vm._e(),\n ]),\n pg && pg.type\n ? _c(\"div\", { staticClass: \"description\" }, [\n _c(\"span\", [_vm._v(_vm._s(pg.type))]),\n ])\n : _vm._e(),\n _c(\"div\", { staticClass: \"description\" }, [\n pg.vendorFeature && pg.vendorFeature.name\n ? _c(\"span\", [_vm._v(_vm._s(pg.vendorFeature.name))])\n : _vm._e(),\n pg.marketFeature && pg.marketFeature.name\n ? _c(\"span\", [\n _vm._v(\", \" + _vm._s(pg.marketFeature.name)),\n ])\n : _vm._e(),\n pg.perspectiveFeature && pg.perspectiveFeature.name\n ? _c(\"span\", [\n _vm._v(\", \" + _vm._s(pg.perspectiveFeature.name)),\n ])\n : _vm._e(),\n ]),\n _c(\"div\", { staticClass: \"description\" }, [\n _c(\"span\", [\n _vm._v(\" BES/Yatırım Fonu: \"),\n _c(\"span\", { staticClass: \"price\" }, [\n _vm._v(\n _vm._s(_vm.formatPrice(pg.price.totalFundAmount)) +\n \"₺\"\n ),\n ]),\n ]),\n ]),\n _c(\"div\", { staticClass: \"description\" }, [\n _c(\"span\", [\n _vm._v(\" Komisyon: \"),\n _c(\"span\", { staticClass: \"price\" }, [\n _vm._v(\n _vm._s(\n _vm.formatPrice(pg.price.totalCommissionAmount)\n ) + \"₺\"\n ),\n ]),\n ]),\n ]),\n ]),\n _c(\n \"div\",\n {\n staticClass: \"package-item__price\",\n class: !pg.isEnabled ? \"h100\" : \"\",\n },\n [\n pg.price.prices.length > 0\n ? _c(\"div\", { staticClass: \"price\" }, [\n _c(\n \"ul\",\n _vm._l(pg.price.prices, function (item, index) {\n return _c(\"li\", { key: index }, [\n item.info && item.info != \"₺\"\n ? _c(\"span\", [_vm._v(_vm._s(item.info))])\n : _vm._e(),\n item.totalPrice\n ? _c(\"span\", [\n _vm._v(\n _vm._s(\n _vm.formatPrice(item.totalPrice)\n )\n ),\n ])\n : _c(\"span\", [_vm._v(\"Ücretsiz\")]),\n item.totalPrice != 0 &&\n item.info &&\n item.info == \"₺\"\n ? _c(\"span\", [_vm._v(_vm._s(item.info))])\n : _vm._e(),\n index != pg.price.prices.length - 1\n ? _c(\"span\", [_vm._v(\"+\")])\n : _vm._e(),\n ])\n }),\n 0\n ),\n ])\n : _vm._e(),\n pg.isEnabled\n ? _c(\n \"div\",\n { staticClass: \"buy\" },\n [\n _c(\n \"base-button\",\n {\n on: {\n click: function ($event) {\n return _vm.purchase(\n pg.package[0].applicationFeature.id\n )\n },\n },\n },\n [_vm._v(\"Talep Et\")]\n ),\n ],\n 1\n )\n : _c(\"div\", { staticClass: \"buy\" }, [\n _c(\"div\", { staticClass: \"tag tooltip\" }, [\n _c(\"div\", { staticClass: \"tooltiptext\" }, [\n _c(\"div\", { staticClass: \"texts\" }, [\n _c(\"span\", { staticClass: \"text\" }, [\n _vm._v(\n ' Yükseltme işlemleri yalnızca \"Paket Talep Et\" üzerinden yapılabilir. '\n ),\n ]),\n ]),\n _c(\"div\", { staticClass: \"triangle-down\" }),\n ]),\n _c(\n \"span\",\n { staticClass: \"text\" },\n [\n _vm._v(\" Talep Et \"),\n _c(\"base-icon\", {\n staticClass: \"icon\",\n attrs: { name: \"warn-yellow\" },\n }),\n ],\n 1\n ),\n ]),\n ]),\n ]\n ),\n ]),\n ])\n }),\n 1\n )\n : _vm._e(),\n ],\n 1\n )\n}\nvar staticRenderFns = []\nrender._withStripped = true\n\n\n\n//# sourceURL=webpack://OsmanliPackage/./src/components/customer/PackageSlider.vue?./node_modules/cache-loader/dist/cjs.js?%7B%22cacheDirectory%22:%22node_modules/.cache/vue-loader%22,%22cacheIdentifier%22:%225a848ef0-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");
|
|
2322
|
+
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: \"package-slider\" },\n [\n _c(\"div\", { staticClass: \"package-slider__head\" }, [\n _c(\"label\", { staticClass: \"switch\" }, [\n _c(\"input\", {\n attrs: { type: \"checkbox\", id: \"switch-input\" },\n domProps: { checked: _vm.isDisplayed && \"checked\" },\n on: { click: _vm.changeSliderStatus },\n }),\n _c(\"span\", {\n staticClass: \"switch-slider\",\n attrs: { id: \"switch-slider\" },\n }),\n ]),\n _c(\"h4\", { staticClass: \"package-slider__title\" }, [\n _vm._v(\"En Çok Kullanılan Paketleri Göster\"),\n ]),\n ]),\n _vm.isDisplayed\n ? _c(\n \"carousel\",\n {\n attrs: {\n perPageCustom: [\n [320, 1],\n [1025, 2],\n ],\n mouseDrag: true,\n paginationActiveColor: \"#2c2c30\",\n paginationColor: \"#bebec3\",\n },\n },\n _vm._l(_vm.packages, function (pg) {\n return _c(\"slide\", { key: pg.id }, [\n _c(\"div\", { staticClass: \"package-item\" }, [\n _c(\n \"div\",\n { staticClass: \"package-item__image\" },\n [\n pg && pg.imageUrl\n ? _c(\"img\", {\n staticClass: \"image\",\n attrs: { alt: \"product image\", src: pg.imageUrl },\n })\n : _c(\"base-icon\", {\n staticClass: \"image\",\n attrs: { name: \"no-image\" },\n }),\n ],\n 1\n ),\n _c(\"div\", { staticClass: \"package-item__info\" }, [\n _c(\"div\", { staticClass: \"title\" }, [\n pg.productName\n ? _c(\"h6\", [\n _vm._v(\" \" + _vm._s(pg.productName) + \" \"),\n pg.platform && pg.platform.name\n ? _c(\"span\", { staticClass: \"lighter\" }, [\n _vm._v(\"/ \" + _vm._s(pg.platform.name)),\n ])\n : _vm._e(),\n ])\n : _vm._e(),\n ]),\n pg && pg.type\n ? _c(\"div\", { staticClass: \"description\" }, [\n _c(\"span\", [_vm._v(_vm._s(pg.type))]),\n ])\n : _vm._e(),\n _c(\"div\", { staticClass: \"description\" }, [\n pg.vendorFeature && pg.vendorFeature.name\n ? _c(\"span\", [_vm._v(_vm._s(pg.vendorFeature.name))])\n : _vm._e(),\n pg.marketFeature && pg.marketFeature.name\n ? _c(\"span\", [\n _vm._v(\", \" + _vm._s(pg.marketFeature.name)),\n ])\n : _vm._e(),\n pg.perspectiveFeature && pg.perspectiveFeature.name\n ? _c(\"span\", [\n _vm._v(\", \" + _vm._s(pg.perspectiveFeature.name)),\n ])\n : _vm._e(),\n ]),\n _c(\"div\", { staticClass: \"description\" }, [\n _c(\"span\", [\n _vm._v(\" BES/Yatırım Fonu: \"),\n _c(\"span\", { staticClass: \"price\" }, [\n _vm._v(\n _vm._s(_vm.formatPrice(pg.price.totalFundAmount)) +\n \" TL\"\n ),\n ]),\n ]),\n ]),\n _c(\"div\", { staticClass: \"description\" }, [\n _c(\"span\", [\n _vm._v(\" Komisyon: \"),\n _c(\"span\", { staticClass: \"price\" }, [\n _vm._v(\n _vm._s(\n _vm.formatPrice(pg.price.totalCommissionAmount)\n ) + \" TL\"\n ),\n ]),\n ]),\n ]),\n ]),\n _c(\n \"div\",\n {\n staticClass: \"package-item__price\",\n class: !pg.isEnabled ? \"h100\" : \"\",\n },\n [\n pg.price.prices.length > 0\n ? _c(\"div\", { staticClass: \"price\" }, [\n _c(\n \"ul\",\n _vm._l(pg.price.prices, function (item, index) {\n return _c(\"li\", { key: index }, [\n item.info && item.info != \"₺\"\n ? _c(\"span\", [_vm._v(_vm._s(item.info))])\n : _vm._e(),\n item.totalPrice\n ? _c(\"span\", [\n _vm._v(\n _vm._s(\n _vm.formatPrice(item.totalPrice)\n )\n ),\n ])\n : _c(\"span\", [_vm._v(\"Ücretsiz\")]),\n item.totalPrice != 0 &&\n item.info &&\n item.info == \"₺\"\n ? _c(\"span\", [_vm._v(\" TL \")])\n : _vm._e(),\n index != pg.price.prices.length - 1\n ? _c(\"span\", [_vm._v(\"+\")])\n : _vm._e(),\n ])\n }),\n 0\n ),\n ])\n : _vm._e(),\n pg.isEnabled\n ? _c(\n \"div\",\n { staticClass: \"buy\" },\n [\n _c(\n \"base-button\",\n {\n on: {\n click: function ($event) {\n return _vm.purchase(\n pg.package[0].applicationFeature.id\n )\n },\n },\n },\n [_vm._v(\"Talep Et\")]\n ),\n ],\n 1\n )\n : _c(\"div\", { staticClass: \"buy\" }, [\n _c(\"div\", { staticClass: \"tag tooltip\" }, [\n _c(\"div\", { staticClass: \"tooltiptext\" }, [\n _c(\"div\", { staticClass: \"texts\" }, [\n _c(\"span\", { staticClass: \"text\" }, [\n _vm._v(\n ' Yükseltme işlemleri yalnızca \"Paket Talep Et\" üzerinden yapılabilir. '\n ),\n ]),\n ]),\n _c(\"div\", { staticClass: \"triangle-down\" }),\n ]),\n _c(\n \"span\",\n { staticClass: \"text\" },\n [\n _vm._v(\" Talep Et \"),\n _c(\"base-icon\", {\n staticClass: \"icon\",\n attrs: { name: \"warn-yellow\" },\n }),\n ],\n 1\n ),\n ]),\n ]),\n ]\n ),\n ]),\n ])\n }),\n 1\n )\n : _vm._e(),\n ],\n 1\n )\n}\nvar staticRenderFns = []\nrender._withStripped = true\n\n\n\n//# sourceURL=webpack://OsmanliPackage/./src/components/customer/PackageSlider.vue?./node_modules/cache-loader/dist/cjs.js?%7B%22cacheDirectory%22:%22node_modules/.cache/vue-loader%22,%22cacheIdentifier%22:%225a848ef0-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");
|
|
2323
2323
|
|
|
2324
2324
|
/***/ }),
|
|
2325
2325
|
|
|
@@ -2379,7 +2379,7 @@ eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) *
|
|
|
2379
2379
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
2380
2380
|
|
|
2381
2381
|
"use strict";
|
|
2382
|
-
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 {\n staticClass: \"customer-detail\",\n class: _vm.getMemberType == \"true\" ? \"mt-20\" : \"\",\n },\n [\n _c(\"div\", { staticClass: \"buy-package custom-container\" }, [\n _vm.$route.query.isRecommended === undefined\n ? _c(\"div\", { staticClass: \"backward\" }, [\n _c(\n \"button\",\n { staticClass: \"back-button\", on: { click: _vm.goBack } },\n [\n _c(\"base-icon\", { attrs: { name: \"controls-backward\" } }),\n _vm._v(\"Geri dön \"),\n ],\n 1\n ),\n ])\n : _vm._e(),\n _c(\"div\", { staticClass: \"tab-layout\" }, [\n _c(\n \"div\",\n { staticClass: \"tabs custom-container\" },\n _vm._l(\n _vm.$route.query.isRecommended === undefined\n ? _vm.appsTab\n : _vm.appsTab.filter(function (x) {\n return x.id == 1 || x.id == 2\n }),\n function (tab) {\n return _c(\n \"div\",\n {\n key: tab.id,\n class: _vm.tabClass(tab.id, \"tab\", _vm.currentTab),\n attrs: { id: \"tab-\" + tab.id },\n },\n [\n _c(\n \"div\",\n {\n on: {\n click: function ($event) {\n return _vm.changeTab(tab.id, tab.featureTypeId)\n },\n },\n },\n [_c(\"h6\", [_vm._v(_vm._s(tab.name))])]\n ),\n ]\n )\n }\n ),\n 0\n ),\n _c(\"div\", { staticClass: \"burger-menu\" }, [\n _c(\n \"ul\",\n { staticClass: \"menu-container\" },\n _vm._l(\n _vm.$route.query.isRecommended === undefined\n ? _vm.appsTab\n : _vm.appsTab.filter(function (x) {\n return x.id == 1 || x.id == 2\n }),\n function (tab) {\n return _c(\n \"li\",\n {\n key: tab.id,\n class: _vm.tabClass(tab.id, \"tab\", _vm.currentTab),\n attrs: { id: \"tab-\" + tab.id },\n on: {\n click: function ($event) {\n return _vm.changeTab(tab.id, tab.featureTypeId)\n },\n },\n },\n [_vm._v(\" \" + _vm._s(tab.name) + \" \")]\n )\n }\n ),\n 0\n ),\n ]),\n _vm.recommendedPackages && _vm.currentTab != 1\n ? _c(\n \"div\",\n { staticClass: \"slider\" },\n [\n _c(\"package-slider\", {\n attrs: {\n packages: _vm.recommendedPackages,\n isDisplay:\n _vm.getActiveProductsLength == 0 ? true : false,\n },\n }),\n ],\n 1\n )\n : _vm._e(),\n _c(\"div\", { staticClass: \"tab-content buy-package__content\" }, [\n _vm.currentTab === 1\n ? _c(\"div\", { attrs: { id: \"osmanli\" } }, [\n _c(\"div\", { staticClass: \"tab-item\" }, [\n _vm._m(0),\n _c(\n \"div\",\n { staticClass: \"info\" },\n [\n _c(\"base-icon\", { attrs: { name: \"warn-yellow\" } }),\n _c(\"p\", [\n _vm._v(\" Portföy büyüklüğü \"),\n _c(\"span\", [\n _vm._v(\n _vm._s(\n _vm.formatPriceNoDecimal(_vm.overallLimit)\n ) + \"₺\"\n ),\n ]),\n _vm._v(\n \" ve üzeri olan yatırımcılarımız, Osmanlı uygulamalarından karma lisansı ücretsiz alabilirler. Aksi takdirde sadece Müşteri Temsilciniz bu lisansı talep edebilecektir. Karma lisansın alınması sonrasında portföy büyüklüğünün aylık ortalama \"\n ),\n _c(\"span\", [\n _vm._v(\n _vm._s(\n _vm.formatPriceNoDecimal(_vm.overallLimit)\n ) + \"₺\"\n ),\n ]),\n _vm._v(\n \"’nin altında olması halinde aşağıdaki ücretler hesaptan tahsil edilecektir. \"\n ),\n ]),\n ],\n 1\n ),\n _c(\n \"div\",\n { staticClass: \"card-container package-list\" },\n _vm._l(_vm.apps, function (d) {\n return _c(\"card-item\", {\n key: d + Math.random(),\n attrs: {\n cssClass: \"package-card\",\n item: Object.assign(\n {},\n {\n imageUrl: d.imageUrl,\n title: d.name,\n subtitle: d.shortContent,\n description: d.description,\n price: d.price,\n },\n d\n ),\n },\n })\n }),\n 1\n ),\n ]),\n ])\n : _vm._e(),\n _vm.currentTab === 2\n ? _c(\"div\", { attrs: { id: \"professional\" } }, [\n _c(\n \"div\",\n { staticClass: \"profAlgoTabs\" },\n _vm._l(_vm.profAlgoTab, function (item) {\n return _c(\n \"div\",\n {\n key: item.id,\n class: _vm.tabClass(\n item.id,\n \"profAlgoTab\",\n _vm.profCurrentTab\n ),\n attrs: { id: \"profTabs-\" + item.id },\n on: {\n click: function ($event) {\n return _vm.changeSubTab(item.id, \"profCurrentTab\")\n },\n },\n },\n [\n _c(\"p\", { staticClass: \"name\" }, [\n _vm._v(_vm._s(item.name)),\n ]),\n ]\n )\n }),\n 0\n ),\n _c(\"div\", { staticClass: \"warn-text\" }, [\n _vm._v(\" Almak istediğiniz uygulama tipini seçiniz. \"),\n ]),\n _c(\n \"div\",\n { staticClass: \"info\" },\n [\n _c(\"base-icon\", { attrs: { name: \"warn-yellow\" } }),\n _c(\"p\", [\n _vm._v(\n \" Satın alınan ekran için gerekli koşulu sağlanması halinde ücret kesintisi yapılmayacaktır. \"\n ),\n ]),\n ],\n 1\n ),\n _c(\n \"div\",\n { staticClass: \"card-container package-list\" },\n _vm._l(this.profAlgoApps, function (d) {\n return _c(\"card-item\", {\n key: d.name + Math.random(),\n attrs: {\n item: Object.assign(\n {},\n {\n imageUrl: d.imageUrl,\n title: d.name,\n subtitle: d.platform && d.platform.name,\n description: d.description,\n price: d.price,\n },\n d\n ),\n },\n })\n }),\n 1\n ),\n ])\n : _vm._e(),\n _vm.currentTab === 3\n ? _c(\"div\", { attrs: { id: \"algoServer\" } }, [\n _c(\n \"div\",\n { staticClass: \"profAlgoTabs\" },\n _vm._l(_vm.profAlgoTab, function (item) {\n return _c(\n \"div\",\n {\n key: item.id,\n class: _vm.tabClass(\n item.id,\n \"profAlgoTab\",\n _vm.algoCurrentTab\n ),\n attrs: { id: \"algoTabs-\" + item.id },\n on: {\n click: function ($event) {\n return _vm.changeSubTab(item.id, \"algoCurrentTab\")\n },\n },\n },\n [\n _c(\"p\", { staticClass: \"name\" }, [\n _vm._v(_vm._s(item.name)),\n ]),\n ]\n )\n }),\n 0\n ),\n _c(\n \"div\",\n {\n staticClass: \"card-container package-list\",\n class:\n _vm.profAlgoApps.length > 3 ? \"bigger-package\" : \"\",\n },\n _vm._l(this.profAlgoApps, function (d) {\n return _c(\"card-item\", {\n key: d.name + Math.random(),\n attrs: {\n item: Object.assign(\n {},\n {\n imageUrl: d.imageUrl,\n title: d.name,\n subtitle: d.algorithm && d.algorithm.name,\n description: d.description,\n price: d.price,\n },\n d\n ),\n currentTab: \"Algo\",\n },\n })\n }),\n 1\n ),\n ])\n : _vm._e(),\n _vm.currentTab === 4\n ? _c(\"div\", { attrs: { id: \"research\" } }, [\n _c(\n \"div\",\n { staticClass: \"card-container package-list\" },\n _vm._l(this.allResearch, function (d) {\n return _c(\"card-item\", {\n key: d.name + Math.random(),\n attrs: {\n item: Object.assign(\n {},\n {\n imageUrl: d.imageUrl,\n title: d.name,\n subtitle: d.application && d.application.name,\n description: d.description,\n price: d.price,\n },\n d\n ),\n currentTab: \"Research\",\n },\n })\n }),\n 1\n ),\n ])\n : _vm._e(),\n ]),\n ]),\n ]),\n ]\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: \"message\" }, [\n _c(\"h6\", { staticClass: \"message-title\" }, [\n _vm._v(\" Almak istediğiniz uygulama tipini seçiniz. \"),\n ]),\n ])\n },\n]\nrender._withStripped = true\n\n\n\n//# sourceURL=webpack://OsmanliPackage/./src/views/BuyDataPackage.vue?./node_modules/cache-loader/dist/cjs.js?%7B%22cacheDirectory%22:%22node_modules/.cache/vue-loader%22,%22cacheIdentifier%22:%225a848ef0-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");
|
|
2382
|
+
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 {\n staticClass: \"customer-detail\",\n class: _vm.getMemberType == \"true\" ? \"mt-20\" : \"\",\n },\n [\n _c(\"div\", { staticClass: \"buy-package custom-container\" }, [\n _vm.$route.query.isRecommended === undefined\n ? _c(\"div\", { staticClass: \"backward\" }, [\n _c(\n \"button\",\n { staticClass: \"back-button\", on: { click: _vm.goBack } },\n [\n _c(\"base-icon\", { attrs: { name: \"controls-backward\" } }),\n _vm._v(\"Geri dön \"),\n ],\n 1\n ),\n ])\n : _vm._e(),\n _c(\"div\", { staticClass: \"tab-layout\" }, [\n _c(\n \"div\",\n { staticClass: \"tabs custom-container\" },\n _vm._l(\n _vm.$route.query.isRecommended === undefined\n ? _vm.appsTab\n : _vm.appsTab.filter(function (x) {\n return x.id == 1 || x.id == 2\n }),\n function (tab) {\n return _c(\n \"div\",\n {\n key: tab.id,\n class: _vm.tabClass(tab.id, \"tab\", _vm.currentTab),\n attrs: { id: \"tab-\" + tab.id },\n },\n [\n _c(\n \"div\",\n {\n on: {\n click: function ($event) {\n return _vm.changeTab(tab.id, tab.featureTypeId)\n },\n },\n },\n [_c(\"h6\", [_vm._v(_vm._s(tab.name))])]\n ),\n ]\n )\n }\n ),\n 0\n ),\n _c(\"div\", { staticClass: \"burger-menu\" }, [\n _c(\n \"ul\",\n { staticClass: \"menu-container\" },\n _vm._l(\n _vm.$route.query.isRecommended === undefined\n ? _vm.appsTab\n : _vm.appsTab.filter(function (x) {\n return x.id == 1 || x.id == 2\n }),\n function (tab) {\n return _c(\n \"li\",\n {\n key: tab.id,\n class: _vm.tabClass(tab.id, \"tab\", _vm.currentTab),\n attrs: { id: \"tab-\" + tab.id },\n on: {\n click: function ($event) {\n return _vm.changeTab(tab.id, tab.featureTypeId)\n },\n },\n },\n [_vm._v(\" \" + _vm._s(tab.name) + \" \")]\n )\n }\n ),\n 0\n ),\n ]),\n _vm.recommendedPackages && _vm.currentTab != 1\n ? _c(\n \"div\",\n { staticClass: \"slider\" },\n [\n _c(\"package-slider\", {\n attrs: {\n packages: _vm.recommendedPackages,\n isDisplay:\n _vm.getActiveProductsLength == 0 ? true : false,\n },\n }),\n ],\n 1\n )\n : _vm._e(),\n _c(\"div\", { staticClass: \"tab-content buy-package__content\" }, [\n _vm.currentTab === 1\n ? _c(\"div\", { attrs: { id: \"osmanli\" } }, [\n _c(\"div\", { staticClass: \"tab-item\" }, [\n _vm._m(0),\n _c(\n \"div\",\n { staticClass: \"info\" },\n [\n _c(\"base-icon\", { attrs: { name: \"warn-yellow\" } }),\n _c(\"p\", [\n _vm._v(\" Portföy büyüklüğü \"),\n _c(\"span\", [\n _vm._v(\n _vm._s(\n _vm.formatPriceNoDecimal(_vm.overallLimit)\n ) + \"₺\"\n ),\n ]),\n _vm._v(\n \" ve üzeri olan yatırımcılarımız, Osmanlı uygulamalarından karma lisansı ücretsiz alabilirler. Aksi takdirde sadece Müşteri Temsilciniz bu lisansı talep edebilecektir. Karma lisansın alınması sonrasında portföy büyüklüğünün aylık ortalama \"\n ),\n _c(\"span\", [\n _vm._v(\n _vm._s(\n _vm.formatPriceNoDecimal(_vm.overallLimit)\n ) + \"₺\"\n ),\n ]),\n _vm._v(\n \"’nin altında olması halinde aşağıdaki ücretler hesaptan tahsil edilecektir. \"\n ),\n ]),\n ],\n 1\n ),\n _c(\n \"div\",\n { staticClass: \"card-container package-list\" },\n _vm._l(_vm.apps, function (d) {\n return _c(\"card-item\", {\n key: d + Math.random(),\n attrs: {\n cssClass: \"package-card\",\n item: Object.assign(\n {},\n {\n imageUrl: d.imageUrl,\n title: d.name,\n subtitle: d.shortContent,\n description: d.description,\n price: d.price,\n },\n d\n ),\n },\n })\n }),\n 1\n ),\n ]),\n ])\n : _vm._e(),\n _vm.currentTab === 2\n ? _c(\"div\", { attrs: { id: \"professional\" } }, [\n _c(\n \"div\",\n { staticClass: \"profAlgoTabs\" },\n _vm._l(_vm.profAlgoTab, function (item) {\n return _c(\n \"div\",\n {\n key: item.id,\n class: _vm.tabClass(\n item.id,\n \"profAlgoTab\",\n _vm.profCurrentTab\n ),\n attrs: { id: \"profTabs-\" + item.id },\n on: {\n click: function ($event) {\n return _vm.changeSubTab(item.id, \"profCurrentTab\")\n },\n },\n },\n [\n _c(\"p\", { staticClass: \"name\" }, [\n _vm._v(_vm._s(item.name)),\n ]),\n ]\n )\n }),\n 0\n ),\n _c(\"div\", { staticClass: \"warn-text\" }, [\n _vm._v(\" Almak istediğiniz uygulama tipini seçiniz. \"),\n ]),\n _c(\n \"div\",\n { staticClass: \"info\" },\n [\n _c(\"base-icon\", { attrs: { name: \"warn-yellow\" } }),\n _c(\"p\", [\n _vm._v(\n \" Satın alınan ekran için gerekli koşulu sağlanması halinde ücret kesintisi yapılmayacaktır. \"\n ),\n ]),\n ],\n 1\n ),\n _c(\n \"div\",\n { staticClass: \"card-container package-list\" },\n _vm._l(this.profAlgoApps, function (d) {\n return _c(\"card-item\", {\n key: d.name + Math.random(),\n attrs: {\n item: Object.assign(\n {},\n {\n imageUrl: d.imageUrl,\n title: d.name,\n subtitle: d.platform && d.platform.name,\n description: d.description,\n price: d.price,\n },\n d\n ),\n },\n })\n }),\n 1\n ),\n ])\n : _vm._e(),\n _vm.currentTab === 3\n ? _c(\"div\", { attrs: { id: \"algoServer\" } }, [\n _c(\n \"div\",\n { staticClass: \"profAlgoTabs\" },\n _vm._l(_vm.profAlgoTab, function (item) {\n return _c(\n \"div\",\n {\n key: item.id,\n class: _vm.tabClass(\n item.id,\n \"profAlgoTab\",\n _vm.algoCurrentTab\n ),\n attrs: { id: \"algoTabs-\" + item.id },\n on: {\n click: function ($event) {\n return _vm.changeSubTab(item.id, \"algoCurrentTab\")\n },\n },\n },\n [\n _c(\"p\", { staticClass: \"name\" }, [\n _vm._v(_vm._s(item.name)),\n ]),\n ]\n )\n }),\n 0\n ),\n _c(\n \"div\",\n {\n staticClass: \"card-container package-list\",\n class:\n _vm.profAlgoApps.length > 3 ? \"bigger-package\" : \"\",\n },\n _vm._l(this.profAlgoApps, function (d) {\n return _c(\"card-item\", {\n key: d.name + Math.random(),\n attrs: {\n item: Object.assign(\n {},\n {\n imageUrl: d.imageUrl,\n title: d.name,\n subtitle: d.algorithm && d.algorithm.name,\n description: d.description,\n price: d.price,\n },\n d\n ),\n currentTab: \"Algo\",\n },\n })\n }),\n 1\n ),\n ])\n : _vm._e(),\n _vm.currentTab === 4\n ? _c(\"div\", { attrs: { id: \"research\" } }, [\n _c(\n \"div\",\n {\n staticClass: \"card-container package-list\",\n class: _vm.allResearch.length > 3 ? \"bigger-package\" : \"\",\n },\n _vm._l(this.allResearch, function (d) {\n return _c(\"card-item\", {\n key: d.name + Math.random(),\n attrs: {\n item: Object.assign(\n {},\n {\n imageUrl: d.imageUrl,\n title: d.name,\n subtitle: d.application && d.application.name,\n description: d.description,\n price: d.price,\n },\n d\n ),\n currentTab: \"Research\",\n },\n })\n }),\n 1\n ),\n ])\n : _vm._e(),\n ]),\n ]),\n ]),\n ]\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: \"message\" }, [\n _c(\"h6\", { staticClass: \"message-title\" }, [\n _vm._v(\" Almak istediğiniz uygulama tipini seçiniz. \"),\n ]),\n ])\n },\n]\nrender._withStripped = true\n\n\n\n//# sourceURL=webpack://OsmanliPackage/./src/views/BuyDataPackage.vue?./node_modules/cache-loader/dist/cjs.js?%7B%22cacheDirectory%22:%22node_modules/.cache/vue-loader%22,%22cacheIdentifier%22:%225a848ef0-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");
|
|
2383
2383
|
|
|
2384
2384
|
/***/ }),
|
|
2385
2385
|
|
|
@@ -2391,7 +2391,7 @@ eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) *
|
|
|
2391
2391
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
2392
2392
|
|
|
2393
2393
|
"use strict";
|
|
2394
|
-
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: \"checkout custom-container\" },\n [\n _vm.getUserInfo.memberType == \"3\"\n ? _c(\"div\", { staticClass: \"breadcrumb\" }, [\n _c(\n \"button\",\n { staticClass: \"back-button\", on: { click: _vm.goBack } },\n [\n _c(\"base-icon\", { attrs: { name: \"controls-backward\" } }),\n _vm._v(\"Geri dön \"),\n ],\n 1\n ),\n ])\n : _vm._e(),\n _c(\n \"div\",\n { staticClass: \"checkout-customer\" },\n [\n _c(\"customer-info\", {\n attrs: {\n customerNumber: String(_vm.customerId),\n currentCustomer: _vm.customer,\n getPaymentStatuses: _vm.getPaymentStatuses,\n },\n }),\n ],\n 1\n ),\n _c(\n \"div\",\n { staticClass: \"checkout-content\" },\n [\n _c(\"div\", { staticClass: \"checkout-content__title\" }, [\n _c(\"h6\", { attrs: { id: \"data-package\" } }, [\n _vm._v(\"Veri Paketleri\"),\n ]),\n !_vm.isRecomendedPackage\n ? _c(\n \"div\",\n {\n directives: [\n {\n name: \"show\",\n rawName: \"v-show\",\n value: !_vm.isUpgradedPurchase,\n expression: \"!isUpgradedPurchase\",\n },\n ],\n staticClass: \"adjust-btn\",\n },\n [\n _c(\n \"base-button\",\n {\n staticClass: \"adjust\",\n on: {\n click: function ($event) {\n return _vm.addCart(_vm.packageNumber)\n },\n },\n },\n [\n _c(\"base-icon\", { attrs: { name: \"gear\" } }),\n _vm._v(\"Düzenle \"),\n ],\n 1\n ),\n ],\n 1\n )\n : _vm._e(),\n ]),\n _c(\"div\", { staticClass: \"checkout-content__table\" }, [\n _c(\"table\", { attrs: { \"aria-describedby\": \"data-package\" } }, [\n _c(\"thead\", [\n _c(\"tr\", { staticClass: \"package-table\" }, [\n _c(\"th\", { attrs: { scope: \"col\" } }, [\n _vm.summaryData.application &&\n _vm.summaryData.application.name\n ? _c(\"span\", [\n _c(\"span\", { staticClass: \"app-name\" }, [\n _vm._v(\n \" (\" +\n _vm._s(_vm.summaryData.application.name) +\n \" - \" +\n _vm._s(\n _vm.summaryData.application.platform.name\n ) +\n \") \"\n ),\n ]),\n ])\n : _vm._e(),\n _vm.summaryData.purchaseNo\n ? _c(\"span\", { staticClass: \"sub-info\" }, [\n _vm._v(_vm._s(_vm.summaryData.purchaseNo)),\n ])\n : _vm._e(),\n ]),\n _c(\"th\", { staticClass: \"bes\", attrs: { scope: \"col\" } }, [\n _vm._v(\" BES ve Yatırım Fonu \"),\n _c(\"br\"),\n _vm._v(\"Büyüklüğü \"),\n _c(\"div\", { staticClass: \"tag tooltip\" }, [\n _vm._m(0),\n _c(\n \"span\",\n { staticClass: \"text\" },\n [_c(\"base-icon\", { attrs: { name: \"question\" } })],\n 1\n ),\n ]),\n ]),\n _c(\"th\", { attrs: { scope: \"col\" } }, [_vm._v(\"Komisyon\")]),\n _c(\"th\", { attrs: { scope: \"col\" } }, [_vm._v(\"Tutar\")]),\n ]),\n ]),\n _c(\n \"tbody\",\n { staticClass: \"separator\" },\n _vm._l(_vm.mergedDatasAfterSummaryPull, function (d) {\n return _c(\"tr\", { key: d.name }, [\n _c(\"td\", [\n d.marketFeature && d.marketFeature.name\n ? _c(\"span\", [\n _vm._v(\" \" + _vm._s(d.marketFeature.name) + \" \"),\n ])\n : _vm._e(),\n d.perspectiveFeature && d.perspectiveFeature.name\n ? _c(\"span\", [\n _vm._v(_vm._s(d.perspectiveFeature.name)),\n ])\n : _vm._e(),\n d.vendorFeature && d.vendorFeature.name\n ? _c(\"span\", [\n _vm._v(\" \" + _vm._s(d.vendorFeature.name) + \" \"),\n ])\n : _vm._e(),\n d.endDate\n ? _c(\"span\", { staticClass: \"small-text\" }, [\n _c(\"br\"),\n _vm._v(\"(Ay Sonuna Kadar Geçerli) \"),\n ])\n : _vm._e(),\n d.dateSelection.key == 1\n ? _c(\"span\", { staticClass: \"small-text\" }, [\n _c(\"br\"),\n _vm._v(\"(Bu Paket Gelecek Ay Başlayacaktır) \"),\n ])\n : _vm._e(),\n ]),\n _c(\"td\", [\n _vm._v(\n _vm._s(_vm.formatPrice(d.totalFundAmount)) + \" TL\"\n ),\n ]),\n _c(\"td\", [\n _vm._v(\n _vm._s(_vm.formatPrice(d.totalCommissionAmount)) + \" TL\"\n ),\n ]),\n _c(\"td\", [\n _vm._v(_vm._s(_vm.formatPrice(d.totalPrice)) + \" TL\"),\n ]),\n ])\n }),\n 0\n ),\n _vm.summaryData.research && _vm.summaryData.research.length > 0\n ? _c(\"thead\", [_vm._m(1)])\n : _vm._e(),\n _vm.summaryData.research && _vm.summaryData.research.length > 0\n ? _c(\n \"tbody\",\n _vm._l(_vm.summaryData.research, function (d) {\n return _c(\"tr\", { key: d.name }, [\n d.researchFeature && d.researchFeature.name\n ? _c(\"td\", [\n _vm._v(\n \" \" + _vm._s(d.researchFeature.name) + \" \"\n ),\n d.endDate\n ? _c(\"span\", { staticClass: \"small-text\" }, [\n _c(\"br\"),\n _vm._v(\"(Ay Sonuna Kadar Geçerli) \"),\n ])\n : _vm._e(),\n d.dateSelection.key == 1\n ? _c(\"span\", { staticClass: \"small-text\" }, [\n _c(\"br\"),\n _vm._v(\n \"(Bu Paket Gelecek Ay Başlayacaktır) \"\n ),\n ])\n : _vm._e(),\n ])\n : _vm._e(),\n d.researchFeature && d.researchFeature.fundAmount\n ? _c(\"td\", [\n _vm._v(\n \" \" +\n _vm._s(\n _vm.formatPrice(\n d.researchFeature.fundAmount.toString()\n )\n ) +\n \" TL \"\n ),\n ])\n : _vm._e(),\n d.researchFeature && d.researchFeature.commissionAmount\n ? _c(\"td\", [\n _vm._v(\n \" \" +\n _vm._s(\n _vm.formatPrice(\n d.researchFeature.commissionAmount.toString()\n )\n ) +\n \" TL \"\n ),\n ])\n : _vm._e(),\n d.researchFeature && d.researchFeature.price\n ? _c(\"td\", [\n d.researchFeature.priceInfo == \"€\"\n ? _c(\"span\", [\n _vm._v(\n \" \" +\n _vm._s(\n _vm.formatPriceEuro(\n d.researchFeature.price.toString()\n )\n ) +\n \" Euro \"\n ),\n ])\n : _vm._e(),\n d.researchFeature.priceInfo == \"$\"\n ? _c(\"span\", [\n _vm._v(\n \" \" +\n _vm._s(\n _vm.formatPriceDollar(\n d.researchFeature.price.toString()\n )\n ) +\n \" Dolar \"\n ),\n ])\n : _vm._e(),\n d.researchFeature.priceInfo == \"₺\"\n ? _c(\"span\", [\n _vm._v(\n \" \" +\n _vm._s(\n _vm.formatPrice(\n d.researchFeature.price.toString()\n )\n ) +\n \" TL \"\n ),\n ])\n : _vm._e(),\n ])\n : _vm._e(),\n ])\n }),\n 0\n )\n : _vm._e(),\n _vm.summaryData.foreignIndice &&\n _vm.summaryData.foreignIndice.length > 0\n ? _c(\"thead\", [_vm._m(2)])\n : _vm._e(),\n _vm.summaryData.foreignIndice &&\n _vm.summaryData.foreignIndice.length > 0\n ? _c(\n \"tbody\",\n _vm._l(_vm.summaryData.foreignIndice, function (d) {\n return _c(\"tr\", { key: d.name }, [\n d.foreignIndiceFeature && d.foreignIndiceFeature.name\n ? _c(\"td\", [\n _vm._v(\n \" \" + _vm._s(d.foreignIndiceFeature.name) + \" \"\n ),\n d.endDate\n ? _c(\"span\", { staticClass: \"small-text\" }, [\n _c(\"br\"),\n _vm._v(\"(Ay Sonuna Kadar Geçerli) \"),\n ])\n : _vm._e(),\n d.dateSelection.key == 1\n ? _c(\"span\", { staticClass: \"small-text\" }, [\n _c(\"br\"),\n _vm._v(\n \"(Bu Paket Gelecek Ay Başlayacaktır) \"\n ),\n ])\n : _vm._e(),\n ])\n : _vm._e(),\n d.foreignIndiceFeature &&\n d.foreignIndiceFeature.fundAmount\n ? _c(\"td\", [\n _vm._v(\n \" \" +\n _vm._s(\n _vm.formatPrice(\n d.foreignIndiceFeature.fundAmount\n )\n ) +\n \" TL \"\n ),\n ])\n : _vm._e(),\n d.foreignIndiceFeature &&\n d.foreignIndiceFeature.commissionAmount\n ? _c(\"td\", [\n _vm._v(\n \" \" +\n _vm._s(\n _vm.formatPrice(\n d.foreignIndiceFeature.commissionAmount\n )\n ) +\n \" TL \"\n ),\n ])\n : _vm._e(),\n d.foreignIndiceFeature && d.foreignIndiceFeature.price\n ? _c(\"td\", [\n d.foreignIndiceFeature.priceInfo.toString() == \"₺\"\n ? _c(\"span\", [\n _vm._v(\n \" \" +\n _vm._s(\n _vm.formatPrice(\n d.foreignIndiceFeature.price\n )\n ) +\n \" TL \"\n ),\n ])\n : _vm._e(),\n d.foreignIndiceFeature.priceInfo.toString() == \"$\"\n ? _c(\"span\", [\n _vm._v(\n \" \" +\n _vm._s(\n _vm.formatPriceDollar(\n d.foreignIndiceFeature.price\n )\n ) +\n \" Dolar \"\n ),\n ])\n : _vm._e(),\n d.foreignIndiceFeature.priceInfo.toString() == \"€\"\n ? _c(\"span\", [\n _vm._v(\n \" \" +\n _vm._s(\n _vm.formatPriceEuro(\n d.foreignIndiceFeature.price\n )\n ) +\n \" Euro \"\n ),\n ])\n : _vm._e(),\n ])\n : _vm._e(),\n ])\n }),\n 0\n )\n : _vm._e(),\n _vm.summaryData.algorithm && _vm.summaryData.algorithm.length > 0\n ? _c(\"thead\", [_vm._m(3)])\n : _vm._e(),\n _vm.summaryData.algorithm && _vm.summaryData.algorithm.length > 0\n ? _c(\n \"tbody\",\n _vm._l(_vm.summaryData.algorithm, function (d) {\n return _c(\"tr\", { key: d.name }, [\n d.algorithmFeature && d.algorithmFeature.name\n ? _c(\"td\", [\n _vm._v(\n \" \" + _vm._s(d.algorithmFeature.name) + \" \"\n ),\n d.endDate\n ? _c(\"span\", { staticClass: \"small-text\" }, [\n _c(\"br\"),\n _vm._v(\"(Ay Sonuna Kadar Geçerli) \"),\n ])\n : _vm._e(),\n d.dateSelection.key == 1\n ? _c(\"span\", { staticClass: \"small-text\" }, [\n _c(\"br\"),\n _vm._v(\n \"(Bu Paket Gelecek Ay Başlayacaktır) \"\n ),\n ])\n : _vm._e(),\n ])\n : _vm._e(),\n d.algorithmFeature && d.algorithmFeature.fundAmount\n ? _c(\"td\", [\n d.algorithmFeature.priceInfo ===\n _vm.currencySymbol.tl\n ? _c(\"span\", [\n _vm._v(\n _vm._s(\n _vm.formatPrice(\n d.algorithmFeature.fundAmount\n )\n ) + \" TL\"\n ),\n ])\n : _vm._e(),\n d.algorithmFeature.priceInfo ===\n _vm.currencySymbol.dolar\n ? _c(\"span\", [\n _vm._v(\n _vm._s(\n _vm.formatPriceDollar(\n d.algorithmFeature.fundAmount\n )\n ) + \" Dolar\"\n ),\n ])\n : _vm._e(),\n d.algorithmFeature.priceInfo ===\n _vm.currencySymbol.euro\n ? _c(\"span\", [\n _vm._v(\n _vm._s(\n _vm.formatPriceEuro(\n d.algorithmFeature.fundAmount\n )\n ) + \" Euro\"\n ),\n ])\n : _vm._e(),\n ])\n : _vm._e(),\n d.algorithmFeature &&\n d.algorithmFeature.commissionAmount\n ? _c(\"td\", [\n d.algorithmFeature.priceInfo ===\n _vm.currencySymbol.tl\n ? _c(\"span\", [\n _vm._v(\n \" \" +\n _vm._s(\n _vm.formatPrice(\n d.algorithmFeature.commissionAmount\n )\n ) +\n \" TL \"\n ),\n ])\n : _vm._e(),\n d.algorithmFeature.priceInfo ===\n _vm.currencySymbol.dolar\n ? _c(\"span\", [\n _vm._v(\n \" \" +\n _vm._s(\n _vm.formatPriceDollar(\n d.algorithmFeature.commissionAmount\n )\n ) +\n \" Dolar \"\n ),\n ])\n : _vm._e(),\n d.algorithmFeature.priceInfo ===\n _vm.currencySymbol.euro\n ? _c(\"span\", [\n _vm._v(\n \" \" +\n _vm._s(\n _vm.formatPriceEuro(\n d.algorithmFeature.commissionAmount\n )\n ) +\n \" Euro \"\n ),\n ])\n : _vm._e(),\n ])\n : _vm._e(),\n d.algorithmFeature && d.algorithmFeature.price\n ? _c(\"td\", [\n d.algorithmFeature.priceInfo ===\n _vm.currencySymbol.tl\n ? _c(\"span\", [\n _vm._v(\n \" \" +\n _vm._s(\n _vm.formatPrice(\n d.algorithmFeature.price\n )\n ) +\n \" TL \"\n ),\n ])\n : _vm._e(),\n d.algorithmFeature.priceInfo ===\n _vm.currencySymbol.dolar\n ? _c(\"span\", [\n _vm._v(\n \" \" +\n _vm._s(\n _vm.formatPriceDollar(\n d.algorithmFeature.price\n )\n ) +\n \" Dolar \"\n ),\n ])\n : _vm._e(),\n d.algorithmFeature.priceInfo ===\n _vm.currencySymbol.euro\n ? _c(\"span\", [\n _vm._v(\n \" \" +\n _vm._s(\n _vm.formatPriceEuro(\n d.algorithmFeature.price\n )\n ) +\n \" Euro \"\n ),\n ])\n : _vm._e(),\n ])\n : _vm._e(),\n ])\n }),\n 0\n )\n : _vm._e(),\n _c(\"tfoot\", [\n _c(\"tr\", [\n _c(\"th\", { attrs: { scope: \"col\" } }, [\n _vm._v(\"Ekran Ücreti\"),\n ]),\n _c(\"th\", { attrs: { scope: \"col\" } }, [\n _vm._v(_vm._s(_vm.formatPrice(_vm.screenFund)) + \" TL\"),\n ]),\n _c(\"th\", { attrs: { scope: \"col\" } }, [\n _vm._v(\n _vm._s(_vm.formatPrice(_vm.screenCommission)) + \" TL\"\n ),\n ]),\n _c(\"th\", { attrs: { scope: \"col\" } }, [\n _vm._v(_vm._s(_vm.formatPrice(_vm.screenPrice)) + \" TL/Ay\"),\n ]),\n ]),\n _c(\"tr\", [\n _vm.showNextMonthRow\n ? _c(\"th\", { attrs: { scope: \"col\" } }, [\n _vm._v(\"Bu Ay Toplam\"),\n ])\n : _vm._e(),\n !_vm.showNextMonthRow\n ? _c(\"th\", { attrs: { scope: \"col\" } }, [_vm._v(\"Toplam\")])\n : _vm._e(),\n _c(\"th\", { attrs: { scope: \"col\" } }, [\n _vm._v(\n _vm._s(_vm.formatPrice(_vm.totalFundAmount)) + \" TL\"\n ),\n ]),\n _c(\"th\", { attrs: { scope: \"col\" } }, [\n _vm._v(\n _vm._s(_vm.formatPrice(_vm.totalCommissionAmount)) + \" TL\"\n ),\n ]),\n _c(\"th\", { attrs: { scope: \"col\" } }, [\n _vm._v(_vm._s(_vm.totalPriceCalc())),\n ]),\n ]),\n _c(\"tr\", [\n _c(\"th\", { attrs: { scope: \"col\" } }, [\n _vm._v(\"Gelecek Ay Toplam\"),\n ]),\n _c(\"th\", { attrs: { scope: \"col\" } }, [\n _vm._v(\n \" \" +\n _vm._s(_vm.formatPrice(_vm.totalNextMonthFundAmount)) +\n \" TL \"\n ),\n ]),\n _c(\"th\", { attrs: { scope: \"col\" } }, [\n _vm._v(\n \" \" +\n _vm._s(\n _vm.formatPrice(_vm.totalNextMonthCommissionAmount)\n ) +\n \" TL \"\n ),\n ]),\n _c(\"th\", { attrs: { scope: \"col\" } }, [\n _vm._v(_vm._s(_vm.totalPriceNextMonthCalc())),\n ]),\n ]),\n ]),\n ]),\n ]),\n _vm.isWarningAllowed\n ? _c(\"info-area\", {\n attrs: { infoText: _vm.infoText[0], typeWarning: true },\n })\n : _vm._e(),\n _vm.haveCurrency\n ? _c(\"info-area\", {\n attrs: { infoText: _vm.infoText[1], typeWarning: true },\n })\n : _vm._e(),\n _c(\n \"div\",\n { staticClass: \"checkout-content__action\" },\n [\n _c(\n \"base-button\",\n {\n class: { \"button-disabled\": _vm.isButtonClicked },\n attrs: { id: \"submit-checkout\" },\n on: { click: _vm.confirmPackage },\n },\n [_vm._v(\"Talep Et\")]\n ),\n ],\n 1\n ),\n ],\n 1\n ),\n _vm.packageDetail\n ? [\n _c(\"package-settigns\", {\n attrs: {\n dataItem: _vm.packageDetail,\n marketInfo: _vm.marketInfo,\n isPopupVisible: _vm.isPopupVisible,\n },\n on: { close: _vm.closePopup },\n }),\n ]\n : _vm._e(),\n ],\n 2\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: \"tooltiptext down\" }, [\n _c(\"div\", { staticClass: \"texts\" }, [\n _vm._v(\n \" Yatırım Fonu / BES hesaplamasına o ay içerisinde hesapta bulunan ortalama fon büyüklüğü dahil edilir. \"\n ),\n ]),\n _c(\"div\", { staticClass: \"triangle-down\" }),\n ])\n },\n function () {\n var _vm = this\n var _h = _vm.$createElement\n var _c = _vm._self._c || _h\n return _c(\"tr\", { staticClass: \"extra-table\" }, [\n _c(\"th\", { attrs: { scope: \"col\" } }, [_vm._v(\"Ek Paketler\")]),\n _c(\"th\", { attrs: { scope: \"col\" } }),\n _c(\"th\", { attrs: { scope: \"col\" } }),\n _c(\"th\", { attrs: { scope: \"col\" } }),\n ])\n },\n function () {\n var _vm = this\n var _h = _vm.$createElement\n var _c = _vm._self._c || _h\n return _c(\"tr\", { staticClass: \"extra-table\" }, [\n _c(\"th\", { attrs: { scope: \"col\" } }, [_vm._v(\"Yabancı Endeksler\")]),\n _c(\"th\", { attrs: { scope: \"col\" } }),\n _c(\"th\", { attrs: { scope: \"col\" } }),\n _c(\"th\", { attrs: { scope: \"col\" } }),\n ])\n },\n function () {\n var _vm = this\n var _h = _vm.$createElement\n var _c = _vm._self._c || _h\n return _c(\"tr\", { staticClass: \"extra-table\" }, [\n _c(\"th\", { attrs: { scope: \"col\" } }, [_vm._v(\"Algoritmalar\")]),\n _c(\"th\", { attrs: { scope: \"col\" } }),\n _c(\"th\", { attrs: { scope: \"col\" } }),\n _c(\"th\", { attrs: { scope: \"col\" } }),\n ])\n },\n]\nrender._withStripped = true\n\n\n\n//# sourceURL=webpack://OsmanliPackage/./src/views/Checkout.vue?./node_modules/cache-loader/dist/cjs.js?%7B%22cacheDirectory%22:%22node_modules/.cache/vue-loader%22,%22cacheIdentifier%22:%225a848ef0-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");
|
|
2394
|
+
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: \"checkout custom-container\" },\n [\n _vm.getUserInfo.memberType == \"3\"\n ? _c(\"div\", { staticClass: \"breadcrumb\" }, [\n _c(\n \"button\",\n { staticClass: \"back-button\", on: { click: _vm.goBack } },\n [\n _c(\"base-icon\", { attrs: { name: \"controls-backward\" } }),\n _vm._v(\"Geri dön \"),\n ],\n 1\n ),\n ])\n : _vm._e(),\n _c(\n \"div\",\n { staticClass: \"checkout-customer\" },\n [\n _c(\"customer-info\", {\n attrs: {\n customerNumber: String(_vm.customerId),\n currentCustomer: _vm.customer,\n getPaymentStatuses: _vm.getPaymentStatuses,\n },\n }),\n ],\n 1\n ),\n _c(\n \"div\",\n { staticClass: \"checkout-content\" },\n [\n _c(\"div\", { staticClass: \"checkout-content__title\" }, [\n _c(\"h6\", { attrs: { id: \"data-package\" } }, [\n _vm._v(\"Veri Paketleri\"),\n ]),\n !_vm.isRecomendedPackage\n ? _c(\n \"div\",\n {\n directives: [\n {\n name: \"show\",\n rawName: \"v-show\",\n value: !_vm.isUpgradedPurchase,\n expression: \"!isUpgradedPurchase\",\n },\n ],\n staticClass: \"adjust-btn\",\n },\n [\n _c(\n \"base-button\",\n {\n staticClass: \"adjust\",\n on: {\n click: function ($event) {\n return _vm.addCart(_vm.packageNumber)\n },\n },\n },\n [\n _c(\"base-icon\", { attrs: { name: \"gear\" } }),\n _vm._v(\"Düzenle \"),\n ],\n 1\n ),\n ],\n 1\n )\n : _vm._e(),\n ]),\n _c(\"div\", { staticClass: \"checkout-content__table\" }, [\n _c(\"table\", { attrs: { \"aria-describedby\": \"data-package\" } }, [\n _c(\"thead\", [\n _c(\"tr\", { staticClass: \"package-table\" }, [\n _c(\"th\", { attrs: { scope: \"col\" } }, [\n _vm.summaryData.application &&\n _vm.summaryData.application.name\n ? _c(\"span\", [\n _c(\"span\", { staticClass: \"app-name\" }, [\n _vm._v(\n \" (\" +\n _vm._s(_vm.summaryData.application.name) +\n \" - \" +\n _vm._s(\n _vm.summaryData.application.platform.name\n ) +\n \") \"\n ),\n ]),\n ])\n : _vm._e(),\n _vm.summaryData.purchaseNo\n ? _c(\"span\", { staticClass: \"sub-info\" }, [\n _vm._v(_vm._s(_vm.summaryData.purchaseNo)),\n ])\n : _vm._e(),\n ]),\n _c(\"th\", { staticClass: \"bes\", attrs: { scope: \"col\" } }, [\n _vm._v(\" BES ve Yatırım Fonu \"),\n _c(\"br\"),\n _vm._v(\"Büyüklüğü \"),\n _c(\"div\", { staticClass: \"tag tooltip\" }, [\n _vm._m(0),\n _c(\n \"span\",\n { staticClass: \"text\" },\n [_c(\"base-icon\", { attrs: { name: \"question\" } })],\n 1\n ),\n ]),\n ]),\n _c(\"th\", { attrs: { scope: \"col\" } }, [_vm._v(\"Komisyon\")]),\n _c(\"th\", { attrs: { scope: \"col\" } }, [_vm._v(\"Tutar\")]),\n ]),\n ]),\n _c(\n \"tbody\",\n { staticClass: \"separator\" },\n _vm._l(_vm.mergedDatasAfterSummaryPull, function (d) {\n return _c(\"tr\", { key: d.name }, [\n _c(\"td\", [\n d.marketFeature && d.marketFeature.name\n ? _c(\"span\", [\n _vm._v(\" \" + _vm._s(d.marketFeature.name) + \" \"),\n ])\n : _vm._e(),\n d.perspectiveFeature && d.perspectiveFeature.name\n ? _c(\"span\", [\n _vm._v(_vm._s(d.perspectiveFeature.name)),\n ])\n : _vm._e(),\n d.vendorFeature && d.vendorFeature.name\n ? _c(\"span\", [\n _vm._v(\" \" + _vm._s(d.vendorFeature.name) + \" \"),\n ])\n : _vm._e(),\n d.endDate\n ? _c(\"span\", { staticClass: \"small-text\" }, [\n _c(\"br\"),\n _vm._v(\"(Ay Sonuna Kadar Geçerli) \"),\n ])\n : _vm._e(),\n d.dateSelection.key == 1\n ? _c(\"span\", { staticClass: \"small-text\" }, [\n _c(\"br\"),\n _vm._v(\"(Bu Paket Gelecek Ay Başlayacaktır) \"),\n ])\n : _vm._e(),\n ]),\n _c(\"td\", [\n _vm._v(\n _vm._s(_vm.formatPrice(d.totalFundAmount)) + \" TL\"\n ),\n ]),\n _c(\"td\", [\n _vm._v(\n _vm._s(_vm.formatPrice(d.totalCommissionAmount)) + \" TL\"\n ),\n ]),\n _c(\"td\", [\n _vm._v(_vm._s(_vm.formatPrice(d.totalPrice)) + \" TL\"),\n ]),\n ])\n }),\n 0\n ),\n _vm.summaryData.research && _vm.summaryData.research.length > 0\n ? _c(\"thead\", [_vm._m(1)])\n : _vm._e(),\n _vm.summaryData.research && _vm.summaryData.research.length > 0\n ? _c(\n \"tbody\",\n _vm._l(_vm.summaryData.research, function (d) {\n return _c(\"tr\", { key: d.name }, [\n d.researchFeature && d.researchFeature.name\n ? _c(\"td\", [\n _vm._v(\n \" \" + _vm._s(d.researchFeature.name) + \" \"\n ),\n d.endDate\n ? _c(\"span\", { staticClass: \"small-text\" }, [\n _c(\"br\"),\n _vm._v(\"(Ay Sonuna Kadar Geçerli) \"),\n ])\n : _vm._e(),\n d.dateSelection.key == 1\n ? _c(\"span\", { staticClass: \"small-text\" }, [\n _c(\"br\"),\n _vm._v(\n \"(Bu Paket Gelecek Ay Başlayacaktır) \"\n ),\n ])\n : _vm._e(),\n ])\n : _vm._e(),\n d.researchFeature && d.researchFeature.fundAmount\n ? _c(\"td\", [\n _vm._v(\n \" \" +\n _vm._s(\n _vm.formatPrice(\n d.researchFeature.fundAmount.toString()\n )\n ) +\n \" TL \"\n ),\n ])\n : _vm._e(),\n d.researchFeature && d.researchFeature.commissionAmount\n ? _c(\"td\", [\n _vm._v(\n \" \" +\n _vm._s(\n _vm.formatPrice(\n d.researchFeature.commissionAmount.toString()\n )\n ) +\n \" TL \"\n ),\n ])\n : _vm._e(),\n d.researchFeature && d.researchFeature.price\n ? _c(\"td\", [\n d.researchFeature.priceInfo == \"€\"\n ? _c(\"span\", [\n _vm._v(\n \" \" +\n _vm._s(\n _vm.formatPriceEuro(\n d.researchFeature.price.toString()\n )\n ) +\n \" Euro \"\n ),\n ])\n : _vm._e(),\n d.researchFeature.priceInfo == \"$\"\n ? _c(\"span\", [\n _vm._v(\n \" \" +\n _vm._s(\n _vm.formatPriceDollar(\n d.researchFeature.price.toString()\n )\n ) +\n \" Dolar \"\n ),\n ])\n : _vm._e(),\n d.researchFeature.priceInfo == \"₺\"\n ? _c(\"span\", [\n _vm._v(\n \" \" +\n _vm._s(\n _vm.formatPrice(\n d.researchFeature.price.toString()\n )\n ) +\n \" TL \"\n ),\n ])\n : _vm._e(),\n ])\n : _vm._e(),\n ])\n }),\n 0\n )\n : _vm._e(),\n _vm.summaryData.foreignIndice &&\n _vm.summaryData.foreignIndice.length > 0\n ? _c(\"thead\", [_vm._m(2)])\n : _vm._e(),\n _vm.summaryData.foreignIndice &&\n _vm.summaryData.foreignIndice.length > 0\n ? _c(\n \"tbody\",\n _vm._l(_vm.summaryData.foreignIndice, function (d) {\n return _c(\"tr\", { key: d.name }, [\n d.foreignIndiceFeature && d.foreignIndiceFeature.name\n ? _c(\"td\", [\n _vm._v(\n \" \" + _vm._s(d.foreignIndiceFeature.name) + \" \"\n ),\n d.endDate\n ? _c(\"span\", { staticClass: \"small-text\" }, [\n _c(\"br\"),\n _vm._v(\"(Ay Sonuna Kadar Geçerli) \"),\n ])\n : _vm._e(),\n d.dateSelection.key == 1\n ? _c(\"span\", { staticClass: \"small-text\" }, [\n _c(\"br\"),\n _vm._v(\n \"(Bu Paket Gelecek Ay Başlayacaktır) \"\n ),\n ])\n : _vm._e(),\n ])\n : _vm._e(),\n d.foreignIndiceFeature &&\n d.foreignIndiceFeature.fundAmount\n ? _c(\"td\", [\n _vm._v(\n \" \" +\n _vm._s(\n _vm.formatPrice(\n d.foreignIndiceFeature.fundAmount\n )\n ) +\n \" TL \"\n ),\n ])\n : _vm._e(),\n d.foreignIndiceFeature &&\n d.foreignIndiceFeature.commissionAmount\n ? _c(\"td\", [\n _vm._v(\n \" \" +\n _vm._s(\n _vm.formatPrice(\n d.foreignIndiceFeature.commissionAmount\n )\n ) +\n \" TL \"\n ),\n ])\n : _vm._e(),\n d.foreignIndiceFeature && d.foreignIndiceFeature.price\n ? _c(\"td\", [\n d.foreignIndiceFeature.priceInfo.toString() == \"₺\"\n ? _c(\"span\", [\n _vm._v(\n \" \" +\n _vm._s(\n _vm.formatPrice(\n d.foreignIndiceFeature.price\n )\n ) +\n \" TL \"\n ),\n ])\n : _vm._e(),\n d.foreignIndiceFeature.priceInfo.toString() == \"$\"\n ? _c(\"span\", [\n _vm._v(\n \" \" +\n _vm._s(\n _vm.formatPriceDollar(\n d.foreignIndiceFeature.price\n )\n ) +\n \" Dolar \"\n ),\n ])\n : _vm._e(),\n d.foreignIndiceFeature.priceInfo.toString() == \"€\"\n ? _c(\"span\", [\n _vm._v(\n \" \" +\n _vm._s(\n _vm.formatPriceEuro(\n d.foreignIndiceFeature.price\n )\n ) +\n \" Euro \"\n ),\n ])\n : _vm._e(),\n ])\n : _vm._e(),\n ])\n }),\n 0\n )\n : _vm._e(),\n _vm.summaryData.algorithm && _vm.summaryData.algorithm.length > 0\n ? _c(\"thead\", [_vm._m(3)])\n : _vm._e(),\n _vm.summaryData.algorithm && _vm.summaryData.algorithm.length > 0\n ? _c(\n \"tbody\",\n _vm._l(_vm.summaryData.algorithm, function (d) {\n return _c(\"tr\", { key: d.name }, [\n d.algorithmFeature && d.algorithmFeature.name\n ? _c(\"td\", [\n _vm._v(\n \" \" + _vm._s(d.algorithmFeature.name) + \" \"\n ),\n d.endDate\n ? _c(\"span\", { staticClass: \"small-text\" }, [\n _c(\"br\"),\n _vm._v(\"(Ay Sonuna Kadar Geçerli) \"),\n ])\n : _vm._e(),\n d.dateSelection.key == 1\n ? _c(\"span\", { staticClass: \"small-text\" }, [\n _c(\"br\"),\n _vm._v(\n \"(Bu Paket Gelecek Ay Başlayacaktır) \"\n ),\n ])\n : _vm._e(),\n ])\n : _vm._e(),\n d.algorithmFeature && d.algorithmFeature.fundAmount\n ? _c(\"td\", [\n d.algorithmFeature.priceInfo ===\n _vm.currencySymbol.tl\n ? _c(\"span\", [\n _vm._v(\n _vm._s(\n _vm.formatPrice(\n d.algorithmFeature.fundAmount\n )\n ) + \" TL\"\n ),\n ])\n : _vm._e(),\n d.algorithmFeature.priceInfo ===\n _vm.currencySymbol.dolar\n ? _c(\"span\", [\n _vm._v(\n _vm._s(\n _vm.formatPriceDollar(\n d.algorithmFeature.fundAmount\n )\n ) + \" Dolar\"\n ),\n ])\n : _vm._e(),\n d.algorithmFeature.priceInfo ===\n _vm.currencySymbol.euro\n ? _c(\"span\", [\n _vm._v(\n _vm._s(\n _vm.formatPriceEuro(\n d.algorithmFeature.fundAmount\n )\n ) + \" Euro\"\n ),\n ])\n : _vm._e(),\n ])\n : _vm._e(),\n d.algorithmFeature &&\n d.algorithmFeature.commissionAmount\n ? _c(\"td\", [\n d.algorithmFeature.priceInfo ===\n _vm.currencySymbol.tl\n ? _c(\"span\", [\n _vm._v(\n \" \" +\n _vm._s(\n _vm.formatPrice(\n d.algorithmFeature.commissionAmount\n )\n ) +\n \" TL \"\n ),\n ])\n : _vm._e(),\n d.algorithmFeature.priceInfo ===\n _vm.currencySymbol.dolar\n ? _c(\"span\", [\n _vm._v(\n \" \" +\n _vm._s(\n _vm.formatPriceDollar(\n d.algorithmFeature.commissionAmount\n )\n ) +\n \" Dolar \"\n ),\n ])\n : _vm._e(),\n d.algorithmFeature.priceInfo ===\n _vm.currencySymbol.euro\n ? _c(\"span\", [\n _vm._v(\n \" \" +\n _vm._s(\n _vm.formatPriceEuro(\n d.algorithmFeature.commissionAmount\n )\n ) +\n \" Euro \"\n ),\n ])\n : _vm._e(),\n ])\n : _vm._e(),\n d.algorithmFeature && d.algorithmFeature.price\n ? _c(\"td\", [\n d.algorithmFeature.priceInfo ===\n _vm.currencySymbol.tl\n ? _c(\"span\", [\n _vm._v(\n \" \" +\n _vm._s(\n _vm.formatPrice(\n d.algorithmFeature.price\n )\n ) +\n \" TL \"\n ),\n ])\n : _vm._e(),\n d.algorithmFeature.priceInfo ===\n _vm.currencySymbol.dolar\n ? _c(\"span\", [\n _vm._v(\n \" \" +\n _vm._s(\n _vm.formatPriceDollar(\n d.algorithmFeature.price\n )\n ) +\n \" Dolar \"\n ),\n ])\n : _vm._e(),\n d.algorithmFeature.priceInfo ===\n _vm.currencySymbol.euro\n ? _c(\"span\", [\n _vm._v(\n \" \" +\n _vm._s(\n _vm.formatPriceEuro(\n d.algorithmFeature.price\n )\n ) +\n \" Euro \"\n ),\n ])\n : _vm._e(),\n ])\n : _vm._e(),\n ])\n }),\n 0\n )\n : _vm._e(),\n _c(\"tfoot\", [\n _c(\"tr\", [\n _c(\"th\", { attrs: { scope: \"col\" } }, [\n _vm._v(\"Ekran Ücreti\"),\n ]),\n _c(\"th\", { attrs: { scope: \"col\" } }, [\n _vm._v(_vm._s(_vm.formatPrice(_vm.screenFund)) + \" TL\"),\n ]),\n _c(\"th\", { attrs: { scope: \"col\" } }, [\n _vm._v(\n _vm._s(_vm.formatPrice(_vm.screenCommission)) + \" TL\"\n ),\n ]),\n _c(\"th\", { attrs: { scope: \"col\" } }, [\n _vm._v(_vm._s(_vm.formatPrice(_vm.screenPrice)) + \" TL/Ay\"),\n ]),\n ]),\n _c(\"tr\", [\n _vm.showNextMonthRow\n ? _c(\"th\", { attrs: { scope: \"col\" } }, [\n _vm._v(\"Bu Ay Toplam\"),\n ])\n : _vm._e(),\n !_vm.showNextMonthRow\n ? _c(\"th\", { attrs: { scope: \"col\" } }, [_vm._v(\"Toplam\")])\n : _vm._e(),\n _c(\"th\", { attrs: { scope: \"col\" } }, [\n _vm._v(\n _vm._s(_vm.formatPrice(_vm.totalFundAmount)) + \" TL\"\n ),\n ]),\n _c(\"th\", { attrs: { scope: \"col\" } }, [\n _vm._v(\n _vm._s(_vm.formatPrice(_vm.totalCommissionAmount)) + \" TL\"\n ),\n ]),\n _c(\"th\", { attrs: { scope: \"col\" } }, [\n _vm._v(_vm._s(_vm.totalPriceCalc())),\n ]),\n ]),\n _c(\"tr\", [\n _c(\"th\", { attrs: { scope: \"col\" } }, [\n _vm._v(\"Gelecek Ay Toplam\"),\n ]),\n _c(\"th\", { attrs: { scope: \"col\" } }, [\n _vm._v(\n \" \" +\n _vm._s(_vm.formatPrice(_vm.totalNextMonthFundAmount)) +\n \" TL \"\n ),\n ]),\n _c(\"th\", { attrs: { scope: \"col\" } }, [\n _vm._v(\n \" \" +\n _vm._s(\n _vm.formatPrice(_vm.totalNextMonthCommissionAmount)\n ) +\n \" TL \"\n ),\n ]),\n _c(\"th\", { attrs: { scope: \"col\" } }, [\n _vm._v(_vm._s(_vm.totalPriceNextMonthCalc())),\n ]),\n ]),\n ]),\n ]),\n ]),\n _c(\"info-area\", {\n attrs: { infoText: _vm.infoText[0], typeWarning: true },\n }),\n _vm.isWarningAllowed\n ? _c(\"info-area\", {\n attrs: { infoText: _vm.infoText[1], typeWarning: true },\n })\n : _vm._e(),\n _vm.haveCurrency\n ? _c(\"info-area\", {\n attrs: { infoText: _vm.infoText[2], typeWarning: true },\n })\n : _vm._e(),\n _c(\n \"div\",\n { staticClass: \"checkout-content__action\" },\n [\n _c(\n \"base-button\",\n {\n class: { \"button-disabled\": _vm.isButtonClicked },\n attrs: { id: \"submit-checkout\" },\n on: { click: _vm.confirmPackage },\n },\n [_vm._v(\"Talep Et\")]\n ),\n ],\n 1\n ),\n ],\n 1\n ),\n _vm.packageDetail\n ? [\n _c(\"package-settigns\", {\n attrs: {\n dataItem: _vm.packageDetail,\n marketInfo: _vm.marketInfo,\n isPopupVisible: _vm.isPopupVisible,\n },\n on: { close: _vm.closePopup },\n }),\n ]\n : _vm._e(),\n ],\n 2\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: \"tooltiptext down\" }, [\n _c(\"div\", { staticClass: \"texts\" }, [\n _vm._v(\n \" Yatırım Fonu / BES hesaplamasına o ay içerisinde hesapta bulunan ortalama fon büyüklüğü dahil edilir. \"\n ),\n ]),\n _c(\"div\", { staticClass: \"triangle-down\" }),\n ])\n },\n function () {\n var _vm = this\n var _h = _vm.$createElement\n var _c = _vm._self._c || _h\n return _c(\"tr\", { staticClass: \"extra-table\" }, [\n _c(\"th\", { attrs: { scope: \"col\" } }, [_vm._v(\"Ek Paketler\")]),\n _c(\"th\", { attrs: { scope: \"col\" } }),\n _c(\"th\", { attrs: { scope: \"col\" } }),\n _c(\"th\", { attrs: { scope: \"col\" } }),\n ])\n },\n function () {\n var _vm = this\n var _h = _vm.$createElement\n var _c = _vm._self._c || _h\n return _c(\"tr\", { staticClass: \"extra-table\" }, [\n _c(\"th\", { attrs: { scope: \"col\" } }, [_vm._v(\"Yabancı Endeksler\")]),\n _c(\"th\", { attrs: { scope: \"col\" } }),\n _c(\"th\", { attrs: { scope: \"col\" } }),\n _c(\"th\", { attrs: { scope: \"col\" } }),\n ])\n },\n function () {\n var _vm = this\n var _h = _vm.$createElement\n var _c = _vm._self._c || _h\n return _c(\"tr\", { staticClass: \"extra-table\" }, [\n _c(\"th\", { attrs: { scope: \"col\" } }, [_vm._v(\"Algoritmalar\")]),\n _c(\"th\", { attrs: { scope: \"col\" } }),\n _c(\"th\", { attrs: { scope: \"col\" } }),\n _c(\"th\", { attrs: { scope: \"col\" } }),\n ])\n },\n]\nrender._withStripped = true\n\n\n\n//# sourceURL=webpack://OsmanliPackage/./src/views/Checkout.vue?./node_modules/cache-loader/dist/cjs.js?%7B%22cacheDirectory%22:%22node_modules/.cache/vue-loader%22,%22cacheIdentifier%22:%225a848ef0-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");
|
|
2395
2395
|
|
|
2396
2396
|
/***/ }),
|
|
2397
2397
|
|
|
@@ -3870,7 +3870,7 @@ eval("// Imports\nvar ___CSS_LOADER_API_IMPORT___ = __webpack_require__(/*! ../.
|
|
|
3870
3870
|
/*! no static exports found */
|
|
3871
3871
|
/***/ (function(module, exports, __webpack_require__) {
|
|
3872
3872
|
|
|
3873
|
-
eval("// Imports\nvar ___CSS_LOADER_API_IMPORT___ = __webpack_require__(/*! ../../node_modules/css-loader/dist/runtime/api.js */ \"./node_modules/css-loader/dist/runtime/api.js\");\nexports = ___CSS_LOADER_API_IMPORT___(false);\n// Module\nexports.push([module.i, \".customer-detail.mt-20[data-v-99f58ee0] {\\n margin-top: 20px;\\n}\\n.buy-package[data-v-99f58ee0] {\\n padding-bottom: 30px;\\n margin: 0 auto;\\n}\\n.buy-package__content .message-title[data-v-99f58ee0] {\\n margin-bottom: 20px;\\n font-weight: normal;\\n}\\n.buy-package__content .info[data-v-99f58ee0] {\\n display: flex;\\n flex-direction: row;\\n background: var(--color-primary-warning-text-background);\\n padding: 20px;\\n margin-bottom: 30px;\\n border-radius: var(--radius-second);\\n align-items: center;\\n}\\n.buy-package__content .info svg[data-v-99f58ee0] {\\n flex-shrink: 0;\\n margin-right: 20px;\\n}\\n@media (max-width: 1150px) {\\n.buy-package__content .info svg[data-v-99f58ee0] {\\n margin-right: 5px;\\n}\\n}\\n.buy-package__content .info p[data-v-99f58ee0] {\\n font-size: 13px;\\n color: var(--color-primary-warning-text);\\n}\\n.buy-package__content .info p span[data-v-99f58ee0] {\\n font-weight: bold;\\n}\\n.buy-package__content .warn-text[data-v-99f58ee0] {\\n font-size: 14px;\\n color: var(--color-primary-black-metallic);\\n margin-bottom: 20px;\\n}\\n.buy-package .tab-content[data-v-99f58ee0] {\\n background: var(--grayscale-0);\\n border-top: solid 1px var(--grayscale-20);\\n padding: 20px;\\n}\\n.buy-package .tab-layout[data-v-99f58ee0] {\\n background: var(--grayscale-0);\\n border-radius: var(--radius-first);\\n}\\n.buy-package .tab-layout .tabs[data-v-99f58ee0] {\\n display: flex;\\n justify-content: flex-start;\\n align-items: flex-start;\\n padding-bottom: 0;\\n padding-top: 0;\\n background: var(--grayscale-0);\\n border-bottom: 1px solid var(--color-primary-silver-metallic);\\n}\\n@media (max-width: 544px) {\\n.buy-package .tab-layout .tabs[data-v-99f58ee0] {\\n display: none;\\n}\\n}\\n.buy-package .tab-layout .tabs h6[data-v-99f58ee0] {\\n font-weight: normal;\\n}\\n.buy-package .tab-layout .tabs .tab[data-v-99f58ee0] {\\n cursor: pointer;\\n height: 56px;\\n text-align: center;\\n display: flex;\\n align-items: center;\\n justify-content: center;\\n border-bottom: 2px solid transparent;\\n width: 200px;\\n}\\n.buy-package .tab-layout .tabs .active[data-v-99f58ee0] {\\n border-bottom: 2px solid var(--color-primary-green);\\n}\\n.buy-package .tab-layout .tabs .active h6[data-v-99f58ee0] {\\n color: var(--color-primary-green);\\n font-weight: bold;\\n}\\n.buy-package .profAlgoTabs[data-v-99f58ee0] {\\n display: flex;\\n justify-content: flex-start;\\n align-items: center;\\n text-align: center;\\n gap: 10px;\\n}\\n.buy-package .profAlgoTabs .profAlgoTab[data-v-99f58ee0] {\\n padding: 5px;\\n border-radius: var(--radius-second);\\n cursor: pointer;\\n border: 1.5px solid var(--grayscale-110);\\n margin-bottom: 20px;\\n}\\n@media (max-width: 400px) {\\n.buy-package .profAlgoTabs .profAlgoTab[data-v-99f58ee0] {\\n padding: 10px 8px;\\n box-sizing: border-box;\\n}\\n}\\n.buy-package .profAlgoTabs .profAlgoTab.active[data-v-99f58ee0] {\\n background-color: var(--color-primary-tint-third);\\n border: 1.5px solid var(--color-primary-default);\\n}\\n.buy-package .profAlgoTabs .profAlgoTab.active .name[data-v-99f58ee0] {\\n font-weight: bold;\\n color: var(--color-primary-default);\\n}\\n.buy-package .profAlgoTabs .profAlgoTab .name[data-v-99f58ee0] {\\n margin: 0 10px;\\n color: var(--grayscale-60);\\n font-size: 16px;\\n}\\n@media (max-width: 400px) {\\n.buy-package .profAlgoTabs .profAlgoTab .name[data-v-99f58ee0] {\\n margin: 0 5px;\\n}\\n}\\n\", \"\"]);\n// Exports\nmodule.exports = exports;\n\n\n//# sourceURL=webpack://OsmanliPackage/./src/views/BuyDataPackage.vue?./node_modules/css-loader/dist/cjs.js??ref--9-oneOf-1-1!./node_modules/@vue/cli-service/node_modules/vue-loader/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/src??ref--9-oneOf-1-2!./node_modules/sass-loader/dist/cjs.js??ref--9-oneOf-1-3!./node_modules/cache-loader/dist/cjs.js??ref--1-0!./node_modules/@vue/cli-service/node_modules/vue-loader/lib??vue-loader-options");
|
|
3873
|
+
eval("// Imports\nvar ___CSS_LOADER_API_IMPORT___ = __webpack_require__(/*! ../../node_modules/css-loader/dist/runtime/api.js */ \"./node_modules/css-loader/dist/runtime/api.js\");\nexports = ___CSS_LOADER_API_IMPORT___(false);\n// Module\nexports.push([module.i, \".customer-detail.mt-20[data-v-99f58ee0] {\\n margin-top: 20px;\\n}\\n.buy-package[data-v-99f58ee0] {\\n padding-bottom: 30px;\\n margin: 0 auto;\\n}\\n.buy-package__content .message-title[data-v-99f58ee0] {\\n margin-bottom: 20px;\\n font-weight: normal;\\n}\\n.buy-package__content .info[data-v-99f58ee0] {\\n display: flex;\\n flex-direction: row;\\n background: var(--color-primary-warning-text-background);\\n padding: 20px;\\n margin-bottom: 30px;\\n border-radius: var(--radius-second);\\n align-items: center;\\n}\\n.buy-package__content .info svg[data-v-99f58ee0] {\\n flex-shrink: 0;\\n margin-right: 20px;\\n}\\n@media (max-width: 1150px) {\\n.buy-package__content .info svg[data-v-99f58ee0] {\\n margin-right: 5px;\\n}\\n}\\n.buy-package__content .info p[data-v-99f58ee0] {\\n font-size: 13px;\\n color: var(--color-primary-warning-text);\\n}\\n.buy-package__content .info p span[data-v-99f58ee0] {\\n font-weight: bold;\\n}\\n.buy-package__content .warn-text[data-v-99f58ee0] {\\n font-size: 14px;\\n color: var(--color-primary-black-metallic);\\n margin-bottom: 20px;\\n}\\n.buy-package .tab-content[data-v-99f58ee0] {\\n background: var(--grayscale-0);\\n border-top: solid 1px var(--grayscale-20);\\n padding: 20px;\\n}\\n.buy-package .tab-layout[data-v-99f58ee0] {\\n background: var(--grayscale-0);\\n border-radius: var(--radius-first);\\n}\\n.buy-package .tab-layout .tabs[data-v-99f58ee0] {\\n display: flex;\\n justify-content: flex-start;\\n align-items: flex-start;\\n padding-bottom: 0;\\n padding-top: 0;\\n background: var(--grayscale-0);\\n border-bottom: 1px solid var(--color-primary-silver-metallic);\\n}\\n@media (max-width: 544px) {\\n.buy-package .tab-layout .tabs[data-v-99f58ee0] {\\n display: none;\\n}\\n}\\n.buy-package .tab-layout .tabs h6[data-v-99f58ee0] {\\n font-weight: normal;\\n}\\n.buy-package .tab-layout .tabs .tab[data-v-99f58ee0] {\\n cursor: pointer;\\n height: 56px;\\n text-align: center;\\n display: flex;\\n align-items: center;\\n justify-content: center;\\n border-bottom: 2px solid transparent;\\n width: 200px;\\n}\\n.buy-package .tab-layout .tabs .tab[data-v-99f58ee0]:last-child {\\n width: auto;\\n}\\n.buy-package .tab-layout .tabs .active[data-v-99f58ee0] {\\n border-bottom: 2px solid var(--color-primary-green);\\n}\\n.buy-package .tab-layout .tabs .active h6[data-v-99f58ee0] {\\n color: var(--color-primary-green);\\n font-weight: bold;\\n font-size: 14px;\\n}\\n.buy-package .profAlgoTabs[data-v-99f58ee0] {\\n display: flex;\\n justify-content: flex-start;\\n align-items: center;\\n text-align: center;\\n gap: 10px;\\n}\\n.buy-package .profAlgoTabs .profAlgoTab[data-v-99f58ee0] {\\n padding: 5px;\\n border-radius: var(--radius-second);\\n cursor: pointer;\\n border: 1.5px solid var(--grayscale-110);\\n margin-bottom: 20px;\\n}\\n@media (max-width: 400px) {\\n.buy-package .profAlgoTabs .profAlgoTab[data-v-99f58ee0] {\\n padding: 10px 8px;\\n box-sizing: border-box;\\n}\\n}\\n.buy-package .profAlgoTabs .profAlgoTab.active[data-v-99f58ee0] {\\n background-color: var(--color-primary-tint-third);\\n border: 1.5px solid var(--color-primary-default);\\n}\\n.buy-package .profAlgoTabs .profAlgoTab.active .name[data-v-99f58ee0] {\\n font-weight: bold;\\n color: var(--color-primary-default);\\n}\\n.buy-package .profAlgoTabs .profAlgoTab .name[data-v-99f58ee0] {\\n margin: 0 10px;\\n color: var(--grayscale-60);\\n font-size: 16px;\\n}\\n@media (max-width: 400px) {\\n.buy-package .profAlgoTabs .profAlgoTab .name[data-v-99f58ee0] {\\n margin: 0 5px;\\n}\\n}\\n\", \"\"]);\n// Exports\nmodule.exports = exports;\n\n\n//# sourceURL=webpack://OsmanliPackage/./src/views/BuyDataPackage.vue?./node_modules/css-loader/dist/cjs.js??ref--9-oneOf-1-1!./node_modules/@vue/cli-service/node_modules/vue-loader/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/src??ref--9-oneOf-1-2!./node_modules/sass-loader/dist/cjs.js??ref--9-oneOf-1-3!./node_modules/cache-loader/dist/cjs.js??ref--1-0!./node_modules/@vue/cli-service/node_modules/vue-loader/lib??vue-loader-options");
|
|
3874
3874
|
|
|
3875
3875
|
/***/ }),
|
|
3876
3876
|
|