osmanli-veri-dagitim 2.1.30-dev → 2.1.31-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.
@@ -1656,7 +1656,7 @@ eval("__webpack_require__.r(__webpack_exports__);\n//\n//\n//\n//\n//\n//\n//\n/
1656
1656
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
1657
1657
 
1658
1658
  "use strict";
1659
- eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _components__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @/components */ \"./src/components/index.js\");\n/* harmony import */ var _mixins__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../mixins */ \"./src/mixins/index.js\");\n/* harmony import */ var _constants__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../constants */ \"./src/constants/index.js\");\n/* harmony import */ var vuex__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! vuex */ \"./node_modules/vuex/dist/vuex.esm.js\");\n/* harmony import */ var _utils_tokenTools__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../utils/tokenTools */ \"./src/utils/tokenTools.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/* harmony default export */ __webpack_exports__[\"default\"] = ({\n name: \"DataInvoiceItem\",\n props: {\n dataItem: Object\n },\n mixins: [_mixins__WEBPACK_IMPORTED_MODULE_1__[\"default\"]],\n components: {\n BaseIcon: _components__WEBPACK_IMPORTED_MODULE_0__[\"BaseIcon\"],\n BaseButton: _components__WEBPACK_IMPORTED_MODULE_0__[\"BaseButton\"],\n InfoArea: _components__WEBPACK_IMPORTED_MODULE_0__[\"InfoArea\"]\n },\n\n data() {\n return {\n isActive: false,\n isButtonsDisabled: false,\n purchaseTypes: {\n prev: 1,\n next: 2\n },\n esube: Object(_utils_tokenTools__WEBPACK_IMPORTED_MODULE_4__[\"getItem\"])(\"esube\"),\n isActivatedAccordion: false\n };\n },\n\n methods: { ...Object(vuex__WEBPACK_IMPORTED_MODULE_3__[\"mapActions\"])([\"movePurchaseDates\"]),\n\n getTime(dateTime, formatType) {\n if (dateTime) {\n let stringDateTime = String(dateTime);\n let generateMomentDate = this.$moment(new Date(stringDateTime)).format(formatType);\n return generateMomentDate;\n } else {\n return \"-\";\n }\n },\n\n setRowForPrev(purchaseId) {\n this.setRowForPurchase(purchaseId, this.purchaseTypes.prev);\n },\n\n setRowForNext(purchaseId) {\n this.setRowForPurchase(purchaseId, this.purchaseTypes.next);\n },\n\n setRowForPurchase(purchaseId, purchaseMoveType) {\n this.isButtonsDisabled = true;\n this.movePurchaseDates({\n purchaseId: purchaseId,\n purchaseMoveType: purchaseMoveType\n }).then(response => {\n if (response.error) {\n this.$toast.error(response.message);\n } else {\n this.$toast.success(\"Durum güncellendi.\");\n this.closeModal(String(purchaseId));\n }\n\n this.isButtonsDisabled = false;\n });\n },\n\n showModal(modalId) {\n this.$modal.show(modalId);\n },\n\n closeModal(modalId) {\n this.$modal.hide(modalId);\n },\n\n accordionToggle() {\n this.isActivatedAccordion = !this.isActivatedAccordion;\n }\n\n },\n computed: { ...Object(vuex__WEBPACK_IMPORTED_MODULE_3__[\"mapGetters\"])([\"getUserInfo\"]),\n\n currencySymbol() {\n return _constants__WEBPACK_IMPORTED_MODULE_2__[\"CurrencySymbol\"];\n },\n\n totalPriceTl() {\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.tl)[0].totalPrice;\n },\n\n totalPriceDollar() {\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.dolar)[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 ? \" + $\" + 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) + \" TL\" + totalDollar + totalEuro;\n },\n\n screenPrice() {\n var _this$dataItem4, _this$dataItem4$price;\n\n if (((_this$dataItem4 = this.dataItem) === null || _this$dataItem4 === void 0 ? void 0 : (_this$dataItem4$price = _this$dataItem4.price) === null || _this$dataItem4$price === void 0 ? void 0 : _this$dataItem4$price.prices) == null) {\n var _this$dataItem5, _this$dataItem5$nextM;\n\n return (_this$dataItem5 = this.dataItem) === null || _this$dataItem5 === void 0 ? void 0 : (_this$dataItem5$nextM = _this$dataItem5.nextMonthPrice) === null || _this$dataItem5$nextM === void 0 ? void 0 : _this$dataItem5$nextM.screenPrice;\n } else {\n var _this$dataItem6, _this$dataItem6$price;\n\n return (_this$dataItem6 = this.dataItem) === null || _this$dataItem6 === void 0 ? void 0 : (_this$dataItem6$price = _this$dataItem6.price) === null || _this$dataItem6$price === void 0 ? void 0 : _this$dataItem6$price.screenPrice;\n }\n },\n\n getUserType() {\n const REPRESENTATIVE_CODE = 3;\n const userType = this.getUserInfo.memberType;\n return userType && userType === REPRESENTATIVE_CODE;\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 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 !== null && name !== undefined && price !== null && price !== undefined && currencySymbol !== null && currencySymbol !== undefined) {\n list.push({\n name,\n startDate: item.startDate,\n endDate: item.endDate,\n price: `${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.priceInfo;\n\n if (perspectiveFeatureName !== null && perspectiveFeatureName !== undefined && perspectiveFeaturePrice !== null && 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.priceInfo;\n\n if (vendorFeatureName !== null && vendorFeatureName !== undefined && vendorFeatureName !== \"Yok\" && vendorFeaturePrice !== null && 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 let multipleLicenceFeatures = [];\n\n if (this.dataItem.package.length > 0) {\n this.dataItem.package.forEach(processPackageItem);\n }\n\n list.push(...multipleLicenceFeatures);\n\n if (platform.length > 0) {\n list.push(...platform);\n }\n\n if (researchList.length > 0) {\n list.push(...researchList);\n }\n\n if (algorithList.length > 0) {\n list.push(...algorithList);\n }\n\n return list;\n },\n\n isCompleted() {\n return this.fundAndCommissionRates.fundAmount >= this.fundAndCommissionRates.targetFundAmount || this.fundAndCommissionRates.commissionAmount >= this.fundAndCommissionRates.targetCommissionAmount;\n }\n\n }\n});\n\n//# sourceURL=webpack://OsmanliPackage/./src/components/customer/DataInvoiceItem.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");
1659
+ eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _components__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @/components */ \"./src/components/index.js\");\n/* harmony import */ var _mixins__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../mixins */ \"./src/mixins/index.js\");\n/* harmony import */ var _constants__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../constants */ \"./src/constants/index.js\");\n/* harmony import */ var vuex__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! vuex */ \"./node_modules/vuex/dist/vuex.esm.js\");\n/* harmony import */ var _utils_tokenTools__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../utils/tokenTools */ \"./src/utils/tokenTools.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/* harmony default export */ __webpack_exports__[\"default\"] = ({\n name: \"DataInvoiceItem\",\n props: {\n dataItem: Object\n },\n mixins: [_mixins__WEBPACK_IMPORTED_MODULE_1__[\"default\"]],\n components: {\n BaseIcon: _components__WEBPACK_IMPORTED_MODULE_0__[\"BaseIcon\"],\n BaseButton: _components__WEBPACK_IMPORTED_MODULE_0__[\"BaseButton\"],\n InfoArea: _components__WEBPACK_IMPORTED_MODULE_0__[\"InfoArea\"]\n },\n\n data() {\n return {\n isActive: false,\n isButtonsDisabled: false,\n purchaseTypes: {\n prev: 1,\n next: 2\n },\n esube: Object(_utils_tokenTools__WEBPACK_IMPORTED_MODULE_4__[\"getItem\"])(\"esube\"),\n isActivatedAccordion: false\n };\n },\n\n methods: { ...Object(vuex__WEBPACK_IMPORTED_MODULE_3__[\"mapActions\"])([\"movePurchaseDates\"]),\n\n getTime(dateTime, formatType) {\n if (dateTime) {\n let stringDateTime = String(dateTime);\n let generateMomentDate = this.$moment(new Date(stringDateTime)).format(formatType);\n return generateMomentDate;\n } else {\n return \"-\";\n }\n },\n\n setRowForPrev(purchaseId) {\n this.setRowForPurchase(purchaseId, this.purchaseTypes.prev);\n },\n\n setRowForNext(purchaseId) {\n this.setRowForPurchase(purchaseId, this.purchaseTypes.next);\n },\n\n setRowForPurchase(purchaseId, purchaseMoveType) {\n this.isButtonsDisabled = true;\n this.movePurchaseDates({\n purchaseId: purchaseId,\n purchaseMoveType: purchaseMoveType\n }).then(response => {\n if (response.error) {\n this.$toast.error(response.message);\n } else {\n this.$toast.success(\"Durum güncellendi.\");\n this.closeModal(String(purchaseId));\n }\n\n this.isButtonsDisabled = false;\n });\n },\n\n showModal(modalId) {\n this.$modal.show(modalId);\n },\n\n closeModal(modalId) {\n this.$modal.hide(modalId);\n },\n\n accordionToggle() {\n this.isActivatedAccordion = !this.isActivatedAccordion;\n }\n\n },\n computed: { ...Object(vuex__WEBPACK_IMPORTED_MODULE_3__[\"mapGetters\"])([\"getUserInfo\", \"fundAndCommissionRates\"]),\n\n currencySymbol() {\n return _constants__WEBPACK_IMPORTED_MODULE_2__[\"CurrencySymbol\"];\n },\n\n totalPriceTl() {\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.tl)[0].totalPrice;\n },\n\n totalPriceDollar() {\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.dolar)[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 ? \" + $\" + 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) + \" TL\" + totalDollar + totalEuro;\n },\n\n screenPrice() {\n var _this$dataItem4, _this$dataItem4$price;\n\n if (((_this$dataItem4 = this.dataItem) === null || _this$dataItem4 === void 0 ? void 0 : (_this$dataItem4$price = _this$dataItem4.price) === null || _this$dataItem4$price === void 0 ? void 0 : _this$dataItem4$price.prices) == null) {\n var _this$dataItem5, _this$dataItem5$nextM;\n\n return (_this$dataItem5 = this.dataItem) === null || _this$dataItem5 === void 0 ? void 0 : (_this$dataItem5$nextM = _this$dataItem5.nextMonthPrice) === null || _this$dataItem5$nextM === void 0 ? void 0 : _this$dataItem5$nextM.screenPrice;\n } else {\n var _this$dataItem6, _this$dataItem6$price;\n\n return (_this$dataItem6 = this.dataItem) === null || _this$dataItem6 === void 0 ? void 0 : (_this$dataItem6$price = _this$dataItem6.price) === null || _this$dataItem6$price === void 0 ? void 0 : _this$dataItem6$price.screenPrice;\n }\n },\n\n getUserType() {\n const REPRESENTATIVE_CODE = 3;\n const userType = this.getUserInfo.memberType;\n return userType && userType === REPRESENTATIVE_CODE;\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 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 !== null && name !== undefined && price !== null && price !== undefined && currencySymbol !== null && currencySymbol !== undefined) {\n list.push({\n name,\n startDate: item.startDate,\n endDate: item.endDate,\n price: `${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.priceInfo;\n\n if (perspectiveFeatureName !== null && perspectiveFeatureName !== undefined && perspectiveFeaturePrice !== null && 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.priceInfo;\n\n if (vendorFeatureName !== null && vendorFeatureName !== undefined && vendorFeatureName !== \"Yok\" && vendorFeaturePrice !== null && 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 let multipleLicenceFeatures = [];\n\n if (this.dataItem.package.length > 0) {\n this.dataItem.package.forEach(processPackageItem);\n }\n\n list.push(...multipleLicenceFeatures);\n\n if (platform.length > 0) {\n list.push(...platform);\n }\n\n if (researchList.length > 0) {\n list.push(...researchList);\n }\n\n if (algorithList.length > 0) {\n list.push(...algorithList);\n }\n\n return list;\n },\n\n isCompleted() {\n return parseInt(this.fundAndCommissionRates.fundAmount) >= this.fundAndCommissionRates.price.totalFundAmount || parseInt(this.fundAndCommissionRates.commissionAmount) >= this.fundAndCommissionRates.price.totalCommissionAmount;\n }\n\n }\n});\n\n//# sourceURL=webpack://OsmanliPackage/./src/components/customer/DataInvoiceItem.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");
1660
1660
 
1661
1661
  /***/ }),
1662
1662
 
@@ -1728,7 +1728,7 @@ eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var vuex
1728
1728
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
1729
1729
 
1730
1730
  "use strict";
1731
- 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//\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.\", \"Karma Lisans paketinde derinlik bilgisi bulunmamaktadı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");
1731
+ 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//\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 recommendedPackageChecker: 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.\", \"Karma Lisans paketinde derinlik bilgisi bulunmamaktadı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 if (this.recommendedPackageChecker) {\n this.$toast.error(\"Lisans Seçiniz\");\n this.isButtonClicked = false;\n return;\n } else {\n this.createRecommendationPackage(recommendedPackageArgs).then(() => {\n this.$router.push({\n name: \"RecommendedPackages\"\n });\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 if (this.$route.query.isRecommended != undefined && newVal.length == 0) {\n this.recommendedPackageChecker = true;\n } else if (this.$route.query.isRecommended != undefined && newVal.length != 0) {\n this.recommendedPackageChecker = false;\n }\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");
1732
1732
 
1733
1733
  /***/ }),
1734
1734
 
@@ -1824,7 +1824,7 @@ eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var vuex
1824
1824
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
1825
1825
 
1826
1826
  "use strict";
1827
- 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 _customer_PackageSettingType_vue__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../customer/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/* harmony default export */ __webpack_exports__[\"default\"] = ({\n name: \"UpdatePackage\",\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: _customer_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 selectData: [],\n research: [],\n foreign: [],\n algoServer: [],\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.cusId = this.$route.params.customerId !== undefined ? this.$route.params.customerId : null;\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 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 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 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\"]),\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 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) : \"\";\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\"])([\"getForeign\", \"getRecommendedPackageDetail\", \"getResearch\", \"updateRecommendationPackage\", \"getAlgoServer\", \"createPackage\"]),\n ...Object(vuex__WEBPACK_IMPORTED_MODULE_0__[\"mapMutations\"])([\"setSelectedForeign\", \"setSelectedAlgoServer\", \"setSelectedResearch\"]),\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 changeStartDate(value) {\n this.startDateSelection = value.code;\n },\n\n submitShow() {\n var _this$dataItem6, _this$dataItem6$appli, _this$dataItem7, _this$dataItem8, _this$dataItem8$platf, _this$dataItem9, _this$dataItem9$platf;\n\n const packageData = 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 };\n });\n const researchData = this.getSelectedResearchInfo.map(item => {\n return {\n applicationId: this.dataItem.application.id,\n researchId: item.id || null\n };\n });\n const foreignData = this.getSelectedForeignInfo.map(item => {\n return {\n applicationId: this.dataItem.application.id,\n foreignIndiceId: item.id || null\n };\n });\n const algoServerData = this.getSelectedAlgoServerInfo.map(item => {\n return {\n applicationId: this.dataItem.application.id,\n algorithmAndServerId: item.id || null\n };\n });\n const args = {\n customerId: this.customer.id,\n recommendationPackageId: this.dataItem.id,\n recommendationPackageNo: this.dataItem.recommendationPackageNo,\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 applicationFeatureId: ((_this$dataItem7 = this.dataItem) === null || _this$dataItem7 === void 0 ? void 0 : _this$dataItem7.application.id) || null,\n platformFeatureId: (_this$dataItem8 = this.dataItem) === null || _this$dataItem8 === void 0 ? void 0 : (_this$dataItem8$platf = _this$dataItem8.platform) === null || _this$dataItem8$platf === void 0 ? void 0 : _this$dataItem8$platf.id,\n platformId: ((_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.platformId) || null,\n features: packageData,\n research: researchData,\n foreignIndice: foreignData,\n algorithmAndServer: algoServerData,\n cusId: this.cusId\n };\n let actionName = \"updateRecommendationPackage\";\n let sendAction = this[actionName](args);\n sendAction.then(res => {\n if (res.error) {\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 } else {\n this.$toast.success(\"En Çok Kullanılan Paketler başarıyla güncellendi.\");\n\n if (this.$route.name === \"Checkout\") {\n this.$router.push({\n name: \"Checkout\",\n params: {\n packageNumber: res,\n customerNumber: this.$route.params.customerNumber\n },\n query: {\n c: this.$route.query.c\n }\n });\n setTimeout(() => {\n location.reload();\n }, 10);\n } else {\n this.$emit(\"close\");\n this.getRecommendedPackageDetail(this.dataItem.id);\n }\n\n this.setSelectedResearch([]);\n this.setSelectedForeign([]);\n this.setSelectedAlgoServer([]);\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.application.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.application.commissionAmount);\n const total = items.reduce((totald, item) => {\n var _item$perspectiveFeat4, _item$vendorFeature6;\n\n return ((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 }, 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/recommendedPackages/UpdatePackage.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");
1827
+ 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 _customer_PackageSettingType_vue__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../customer/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/* harmony default export */ __webpack_exports__[\"default\"] = ({\n name: \"UpdatePackage\",\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: _customer_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 selectData: [],\n research: [],\n foreign: [],\n algoServer: [],\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.cusId = this.$route.params.customerId !== undefined ? this.$route.params.customerId : null;\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 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 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 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\"]),\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 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) : \"\";\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\"])([\"getForeign\", \"getRecommendedPackageDetail\", \"getResearch\", \"updateRecommendationPackage\", \"getAlgoServer\", \"createPackage\"]),\n ...Object(vuex__WEBPACK_IMPORTED_MODULE_0__[\"mapMutations\"])([\"setSelectedForeign\", \"setSelectedAlgoServer\", \"setSelectedResearch\"]),\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 changeStartDate(value) {\n this.startDateSelection = value.code;\n },\n\n submitShow() {\n var _this$dataItem6, _this$dataItem6$appli, _this$dataItem7, _this$dataItem8, _this$dataItem8$platf, _this$dataItem9, _this$dataItem9$platf;\n\n const packageData = 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 const researchData = this.getSelectedResearchInfo.map(item => {\n return {\n applicationId: this.dataItem.application.id,\n researchId: item.id || null,\n dateSelection: item.dateSelection\n };\n });\n const foreignData = this.getSelectedForeignInfo.map(item => {\n return {\n applicationId: this.dataItem.application.id,\n foreignIndiceId: item.id || null,\n dateSelection: item.dateSelection\n };\n });\n const algoServerData = this.getSelectedAlgoServerInfo.map(item => {\n return {\n applicationId: this.dataItem.application.id,\n algorithmAndServerId: item.id || null,\n dateSelection: item.dateSelection\n };\n });\n const args = {\n customerId: this.customer.id,\n recommendationPackageId: this.dataItem.id,\n recommendationPackageNo: this.dataItem.recommendationPackageNo,\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 applicationFeatureId: ((_this$dataItem7 = this.dataItem) === null || _this$dataItem7 === void 0 ? void 0 : _this$dataItem7.application.id) || null,\n platformFeatureId: (_this$dataItem8 = this.dataItem) === null || _this$dataItem8 === void 0 ? void 0 : (_this$dataItem8$platf = _this$dataItem8.platform) === null || _this$dataItem8$platf === void 0 ? void 0 : _this$dataItem8$platf.id,\n platformId: ((_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.platformId) || null,\n features: packageData,\n research: researchData,\n foreignIndice: foreignData,\n algorithmAndServer: algoServerData,\n cusId: this.cusId\n };\n let actionName = \"updateRecommendationPackage\";\n let sendAction = this[actionName](args);\n sendAction.then(res => {\n if (res.error) {\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 } else {\n this.$toast.success(\"En Çok Kullanılan Paketler başarıyla güncellendi.\");\n\n if (this.$route.name === \"Checkout\") {\n this.$router.push({\n name: \"Checkout\",\n params: {\n packageNumber: res,\n customerNumber: this.$route.params.customerNumber\n },\n query: {\n c: this.$route.query.c\n }\n });\n setTimeout(() => {\n location.reload();\n }, 10);\n } else {\n this.$emit(\"close\");\n this.getRecommendedPackageDetail(this.dataItem.id);\n }\n\n this.setSelectedResearch([]);\n this.setSelectedForeign([]);\n this.setSelectedAlgoServer([]);\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.application.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.application.commissionAmount);\n const total = items.reduce((totald, item) => {\n var _item$perspectiveFeat4, _item$vendorFeature6;\n\n return ((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 }, 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/recommendedPackages/UpdatePackage.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");
1828
1828
 
1829
1829
  /***/ }),
1830
1830
 
@@ -2232,7 +2232,7 @@ eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) *
2232
2232
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
2233
2233
 
2234
2234
  "use strict";
2235
- 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: \"invoice-item-container\" },\n [\n _c(\n \"div\",\n { staticClass: \"invoice-item\", class: { active: _vm.isActive } },\n [\n _c(\"div\", { staticClass: \"invoice-item__top\" }, [\n _c(\"div\", { staticClass: \"left flex-09\" }, [\n _c(\n \"div\",\n { staticClass: \"section section-0\" },\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: \"section section-main\" }, [\n _c(\"div\", { staticClass: \"section section-1\" }, [\n _c(\"h5\", [_vm._v(_vm._s(_vm.dataItem.title))]),\n _c(\"span\", [_vm._v(_vm._s(_vm.dataItem.subtitle))]),\n ]),\n ]),\n ]),\n _c(\"div\", { staticClass: \"right\" }, [\n _vm.dataItem.endDate\n ? _c(\"div\", { staticClass: \"col\" }, [\n _c(\"h6\", { staticClass: \"bold\" }, [_vm._v(\"Bitiş Tarihi\")]),\n _c(\"span\", [\n _vm._v(\n _vm._s(_vm.getTime(_vm.dataItem.endDate, \"DD.MM.YYYY\"))\n ),\n ]),\n ])\n : _vm._e(),\n _vm.esube == \"no\"\n ? _c(\"div\", { staticClass: \"col\" }, [\n _c(\"h6\", { staticClass: \"bold\" }, [_vm._v(\"Ödeme Durumu\")]),\n _vm.dataItem.paymentStatus == \"0\"\n ? _c(\"span\", [\n _vm._v(\n \"Limit altında müşteri, üstünde temsilci(Varsayılan)\"\n ),\n ])\n : _vm._e(),\n _vm.dataItem.paymentStatus == \"1\"\n ? _c(\"span\", [_vm._v(\"Müşteri\")])\n : _vm._e(),\n _vm.dataItem.paymentStatus == \"2\"\n ? _c(\"span\", [_vm._v(\"Temsilci\")])\n : _vm._e(),\n ])\n : _c(\"div\", { staticClass: \"col\" }, [\n _c(\"h6\", { staticClass: \"bold\" }, [_vm._v(\"Ödeme Durumu\")]),\n _vm.dataItem.paymentStatus == \"0\" &&\n _vm.isCompleted &&\n _vm.invoiceList.data.length\n ? _c(\"span\", [_vm._v(\"Ücretsiz\")])\n : _vm._e(),\n _vm.dataItem.paymentStatus == \"0\" &&\n !_vm.isCompleted &&\n _vm.invoiceList.data.length\n ? _c(\"span\", [_vm._v(\"Tahsil Edildi\")])\n : _vm._e(),\n _vm.dataItem.paymentStatus == \"1\"\n ? _c(\"span\", [_vm._v(\"Tahsil Edildi\")])\n : _vm._e(),\n _vm.dataItem.paymentStatus == \"2\"\n ? _c(\"span\", [_vm._v(\"Ücretsiz\")])\n : _vm._e(),\n ]),\n _c(\"div\", { staticClass: \"col\" }, [\n _c(\"h6\", { staticClass: \"bold\" }, [_vm._v(\"Toplam Tutar\")]),\n _vm.dataItem.updatedAt\n ? _c(\"span\", [\n _vm._v(\" \" + _vm._s(_vm.totalPriceCalc.toString()) + \" \"),\n ])\n : _vm._e(),\n ]),\n ]),\n _vm.dataItem.packageStatus\n ? _c(\"div\", { staticClass: \"right for-button\" }, [\n _vm.dataItem.packageStatus.id !== 6 &&\n _vm.dataItem.packageStatus.id !== 8\n ? _c(\"div\", { staticClass: \"col\" }, [\n _vm.dataItem.packageStatus &&\n _vm.getUserInfo.memberType == 1\n ? _c(\"div\", [\n _vm.dataItem.packageStatus.id == 2\n ? _c(\n \"div\",\n {\n staticClass:\n \"invoice-item__bottom buttons\",\n },\n [\n _c(\n \"base-button\",\n {\n staticClass: \"set-buttons\",\n class: !_vm.isButtonsDisabled\n ? \"\"\n : \"disabled\",\n on: {\n click: function ($event) {\n _vm.showModal(\n String(_vm.dataItem.id)\n )\n },\n },\n },\n [_vm._v(\"İşlemler\")]\n ),\n ],\n 1\n )\n : _vm._e(),\n ])\n : _vm._e(),\n ])\n : _vm._e(),\n ])\n : _vm._e(),\n ]),\n _vm.dataItem.package\n ? _c(\"div\", { staticClass: \"invoice-item__bottom\" }, [\n _c(\"div\", { staticClass: \"left package-container\" }, [\n _c(\n \"div\",\n { staticClass: \"item\" },\n [\n _c(\"strong\", [_vm._v(\"Paketler:\")]),\n _vm._l(_vm.mergedPackagesNames, function (item, index) {\n return _c(\"span\", { key: item, staticClass: \"items\" }, [\n _vm._v(\" \" + _vm._s(item) + \" \"),\n index != _vm.mergedPackagesNames.length - 1\n ? _c(\"span\", { staticClass: \"seperator\" })\n : _vm._e(),\n ])\n }),\n ],\n 2\n ),\n ]),\n _c(\n \"div\",\n { staticClass: \"right\", on: { click: _vm.accordionToggle } },\n [\n _c(\"base-icon\", {\n class: [\"toggle\", { active: _vm.isActivatedAccordion }],\n attrs: { name: \"arrow-green\" },\n }),\n ],\n 1\n ),\n _c(\"div\", { staticClass: \"invoice-item__bottom__packages\" }, [\n _c(\n \"div\",\n {\n class: [\n \"accordion-wrapper\",\n _vm.isActivatedAccordion ? \"active\" : \"\",\n ],\n },\n [\n _c(\n \"div\",\n {\n class: [\n \"accordion-wrapper__row caption\",\n _vm.isActivatedAccordion ? \"active\" : \"\",\n ],\n },\n [\n _c(\n \"div\",\n {\n staticClass:\n \"accordion-wrapper__row__cell caption\",\n },\n [_vm._v(\"Paket Adı\")]\n ),\n _c(\n \"div\",\n {\n staticClass:\n \"accordion-wrapper__row__cell caption\",\n },\n [_vm._v(\" Başlangıç Tarihi \")]\n ),\n _c(\n \"div\",\n {\n staticClass:\n \"accordion-wrapper__row__cell caption\",\n },\n [_vm._v(\" Bitiş Tarihi \")]\n ),\n _c(\n \"div\",\n {\n staticClass:\n \"accordion-wrapper__row__cell caption\",\n },\n [_vm._v(\"Fiyatlar\")]\n ),\n ]\n ),\n _c(\n \"div\",\n { staticClass: \"accordion-content active\" },\n [\n _vm._l(_vm.mergedForTableData, function (item) {\n return _c(\n \"div\",\n {\n key: item.name,\n staticClass: \"accordion-wrapper__row\",\n },\n [\n _c(\n \"div\",\n {\n staticClass: \"accordion-wrapper__row__cell\",\n },\n [\n typeof item == \"object\"\n ? _c(\"span\", [\n item.name\n ? _c(\"span\", [\n _vm._v(_vm._s(item.name)),\n ])\n : _vm._e(),\n ])\n : _c(\"span\", [_vm._v(_vm._s(item))]),\n ]\n ),\n item.startDate\n ? _c(\n \"div\",\n {\n staticClass:\n \"accordion-wrapper__row__cell\",\n },\n [\n _vm._v(\n \" \" +\n _vm._s(\n _vm.getTime(\n item.startDate,\n \"DD.MM.YYYY\"\n )\n ) +\n \" \"\n ),\n ]\n )\n : _c(\n \"div\",\n {\n staticClass:\n \"accordion-wrapper__row__cell\",\n },\n [_vm._v(\"-\")]\n ),\n item.endDate\n ? _c(\n \"div\",\n {\n staticClass:\n \"accordion-wrapper__row__cell\",\n },\n [\n _vm._v(\n \" \" +\n _vm._s(\n _vm.getTime(\n item.endDate,\n \"DD.MM.YYYY\"\n )\n ) +\n \" \"\n ),\n ]\n )\n : _c(\n \"div\",\n {\n staticClass:\n \"accordion-wrapper__row__cell\",\n },\n [_vm._v(\"-\")]\n ),\n item.price\n ? _c(\n \"div\",\n {\n staticClass:\n \"accordion-wrapper__row__cell\",\n },\n [\n _vm._v(\" \" + _vm._s(item.price) + \" \"),\n item.info == \"₺\"\n ? _c(\"span\", [_vm._v(\"TL\")])\n : _vm._e(),\n item.info == \"€\"\n ? _c(\"span\", [_vm._v(\"Euro\")])\n : _vm._e(),\n item.info == \"$\"\n ? _c(\"span\", [_vm._v(\"Dolar\")])\n : _vm._e(),\n ]\n )\n : _c(\n \"div\",\n {\n staticClass:\n \"accordion-wrapper__row__cell\",\n },\n [_vm._v(\"-\")]\n ),\n ]\n )\n }),\n _c(\"div\", { staticClass: \"accordion-wrapper__row\" }, [\n _vm._m(0),\n _c(\"div\", {\n staticClass: \"accordion-wrapper__row__cell\",\n }),\n _c(\"div\", {\n staticClass: \"accordion-wrapper__row__cell\",\n }),\n _c(\n \"div\",\n { staticClass: \"accordion-wrapper__row__cell\" },\n [_vm._v(\" \" + _vm._s(_vm.screenPrice) + \" TL \")]\n ),\n ]),\n ],\n 2\n ),\n ]\n ),\n ]),\n ])\n : _vm._e(),\n ]\n ),\n _c(\n \"modal\",\n {\n staticClass: \"cancel-modal\",\n attrs: {\n height: \"auto\",\n adaptive: true,\n name: String(_vm.dataItem.id),\n },\n },\n [\n _c(\"div\", { staticClass: \"modal-heading\" }, [\n _c(\"div\", { staticClass: \"modal-title\" }, [\n _c(\"h5\", [\n _vm._v(\n \"Seçilen lisansı aşağıdaki şekilde yönlendirebilirsiniz.\"\n ),\n ]),\n ]),\n _c(\n \"a\",\n {\n on: {\n click: function ($event) {\n _vm.closeModal(String(_vm.dataItem.id))\n },\n },\n },\n [\n _c(\"base-icon\", {\n staticClass: \"close\",\n attrs: { name: \"close-circle\" },\n }),\n ],\n 1\n ),\n ]),\n _c(\n \"div\",\n { staticClass: \"modal-body\" },\n [\n _c(\"div\", { staticClass: \"modal-body__top\" }, [\n _c(\"div\", { staticClass: \"modal-body__info\" }, [\n _vm.dataItem.productName\n ? _c(\"h3\", { staticClass: \"title\" }, [\n _vm._v(\" \" + _vm._s(_vm.dataItem.productName) + \" \"),\n ])\n : _vm._e(),\n _c(\"p\", { staticClass: \"modal-body__info-platform\" }, [\n _vm.dataItem.platform && _vm.dataItem.platform.name\n ? _c(\"span\", [\n _vm._v(\n \" \" + _vm._s(_vm.dataItem.platform.name) + \" \"\n ),\n ])\n : _vm._e(),\n ]),\n _c(\n \"p\",\n { staticClass: \"modal-body__info_price\" },\n [\n _vm.totalPriceCalc != \"0₺\" &&\n _vm.totalPriceCalc != \"0€\" &&\n _vm.totalPriceCalc != \"0$\"\n ? [_vm._v(_vm._s(_vm.totalPriceCalc))]\n : [_vm._v(\"Ücretsiz\")],\n ],\n 2\n ),\n ]),\n ]),\n _c(\"info-area\", {\n attrs: { infoText: \"Uyarı: Yapılan işlemler geri alınamaz.\" },\n }),\n ],\n 1\n ),\n _c(\n \"div\",\n { staticClass: \"modal-bottom\" },\n [\n _c(\n \"base-button\",\n {\n staticClass: \"set-buttons back\",\n class: !_vm.isButtonsDisabled ? \"\" : \"disabled\",\n on: {\n click: function ($event) {\n return _vm.setRowForPrev(_vm.dataItem.id)\n },\n },\n },\n [_vm._v(\"Geri Al\")]\n ),\n _c(\n \"base-button\",\n {\n staticClass: \"set-buttons\",\n class: !_vm.isButtonsDisabled ? \"\" : \"disabled\",\n on: {\n click: function ($event) {\n return _vm.setRowForNext(_vm.dataItem.id)\n },\n },\n },\n [_vm._v(\"İleri Al\")]\n ),\n ],\n 1\n ),\n ]\n ),\n ],\n 1\n )\n}\nvar staticRenderFns = [\n function () {\n var _vm = this\n var _h = _vm.$createElement\n var _c = _vm._self._c || _h\n return _c(\"div\", { staticClass: \"accordion-wrapper__row__cell\" }, [\n _c(\"span\", [_vm._v(\" Ekran Ücreti \")]),\n ])\n },\n]\nrender._withStripped = true\n\n\n\n//# sourceURL=webpack://OsmanliPackage/./src/components/customer/DataInvoiceItem.vue?./node_modules/cache-loader/dist/cjs.js?%7B%22cacheDirectory%22:%22node_modules/.cache/vue-loader%22,%22cacheIdentifier%22:%2211f6ad0e-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");
2235
+ 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: \"invoice-item-container\" },\n [\n _c(\n \"div\",\n { staticClass: \"invoice-item\", class: { active: _vm.isActive } },\n [\n _c(\"div\", { staticClass: \"invoice-item__top\" }, [\n _c(\"div\", { staticClass: \"left flex-09\" }, [\n _c(\n \"div\",\n { staticClass: \"section section-0\" },\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: \"section section-main\" }, [\n _c(\"div\", { staticClass: \"section section-1\" }, [\n _c(\"h5\", [_vm._v(_vm._s(_vm.dataItem.title))]),\n _c(\"span\", [_vm._v(_vm._s(_vm.dataItem.subtitle))]),\n ]),\n ]),\n ]),\n _c(\"div\", { staticClass: \"right\" }, [\n _vm.dataItem.endDate\n ? _c(\"div\", { staticClass: \"col\" }, [\n _c(\"h6\", { staticClass: \"bold\" }, [_vm._v(\"Bitiş Tarihi\")]),\n _c(\"span\", [\n _vm._v(\n _vm._s(_vm.getTime(_vm.dataItem.endDate, \"DD.MM.YYYY\"))\n ),\n ]),\n ])\n : _vm._e(),\n _vm.esube == \"no\"\n ? _c(\"div\", { staticClass: \"col\" }, [\n _c(\"h6\", { staticClass: \"bold\" }, [_vm._v(\"Ödeme Durumu\")]),\n _vm.dataItem.paymentStatus == \"0\"\n ? _c(\"span\", [\n _vm._v(\n \"Limit altında müşteri, üstünde temsilci(Varsayılan)\"\n ),\n ])\n : _vm._e(),\n _vm.dataItem.paymentStatus == \"1\"\n ? _c(\"span\", [_vm._v(\"Müşteri\")])\n : _vm._e(),\n _vm.dataItem.paymentStatus == \"2\"\n ? _c(\"span\", [_vm._v(\"Temsilci\")])\n : _vm._e(),\n ])\n : _c(\"div\", { staticClass: \"col\" }, [\n _c(\"h6\", { staticClass: \"bold\" }, [_vm._v(\"Ödeme Durumu\")]),\n _vm.dataItem.paymentStatus == \"0\" &&\n _vm.isCompleted &&\n _vm.invoiceList.data.length\n ? _c(\"span\", [_vm._v(\"Ücretsiz\")])\n : _vm._e(),\n _vm.dataItem.paymentStatus == \"0\" &&\n !_vm.isCompleted &&\n _vm.invoiceList.data.length\n ? _c(\"span\", [_vm._v(\"Tahsil Edildi\")])\n : _vm._e(),\n _vm.dataItem.paymentStatus == \"1\"\n ? _c(\"span\", [_vm._v(\"Tahsil Edildi\")])\n : _vm._e(),\n _vm.dataItem.paymentStatus == \"2\"\n ? _c(\"span\", [_vm._v(\"Ücretsiz\")])\n : _vm._e(),\n ]),\n _c(\"div\", { staticClass: \"col\" }, [\n _c(\"h6\", { staticClass: \"bold\" }, [_vm._v(\"Toplam Tutar\")]),\n _vm.dataItem.updatedAt\n ? _c(\"span\", [_vm._v(_vm._s(_vm.totalPriceCalc.toString()))])\n : _vm._e(),\n ]),\n ]),\n _vm.dataItem.packageStatus\n ? _c(\"div\", { staticClass: \"right for-button\" }, [\n _vm.dataItem.packageStatus.id !== 6 &&\n _vm.dataItem.packageStatus.id !== 8\n ? _c(\"div\", { staticClass: \"col\" }, [\n _vm.dataItem.packageStatus &&\n _vm.getUserInfo.memberType == 1\n ? _c(\"div\", [\n _vm.dataItem.packageStatus.id == 2\n ? _c(\n \"div\",\n {\n staticClass:\n \"invoice-item__bottom buttons\",\n },\n [\n _c(\n \"base-button\",\n {\n staticClass: \"set-buttons\",\n class: !_vm.isButtonsDisabled\n ? \"\"\n : \"disabled\",\n on: {\n click: function ($event) {\n _vm.showModal(\n String(_vm.dataItem.id)\n )\n },\n },\n },\n [_vm._v(\"İşlemler\")]\n ),\n ],\n 1\n )\n : _vm._e(),\n ])\n : _vm._e(),\n ])\n : _vm._e(),\n ])\n : _vm._e(),\n ]),\n _vm.dataItem.package\n ? _c(\"div\", { staticClass: \"invoice-item__bottom\" }, [\n _c(\"div\", { staticClass: \"left package-container\" }, [\n _c(\n \"div\",\n { staticClass: \"item\" },\n [\n _c(\"strong\", [_vm._v(\"Paketler:\")]),\n _vm._l(_vm.mergedPackagesNames, function (item, index) {\n return _c(\"span\", { key: item, staticClass: \"items\" }, [\n _vm._v(\" \" + _vm._s(item) + \" \"),\n index != _vm.mergedPackagesNames.length - 1\n ? _c(\"span\", { staticClass: \"seperator\" })\n : _vm._e(),\n ])\n }),\n ],\n 2\n ),\n ]),\n _c(\n \"div\",\n { staticClass: \"right\", on: { click: _vm.accordionToggle } },\n [\n _c(\"base-icon\", {\n class: [\"toggle\", { active: _vm.isActivatedAccordion }],\n attrs: { name: \"arrow-green\" },\n }),\n ],\n 1\n ),\n _c(\"div\", { staticClass: \"invoice-item__bottom__packages\" }, [\n _c(\n \"div\",\n {\n class: [\n \"accordion-wrapper\",\n _vm.isActivatedAccordion ? \"active\" : \"\",\n ],\n },\n [\n _c(\n \"div\",\n {\n class: [\n \"accordion-wrapper__row caption\",\n _vm.isActivatedAccordion ? \"active\" : \"\",\n ],\n },\n [\n _c(\n \"div\",\n {\n staticClass:\n \"accordion-wrapper__row__cell caption\",\n },\n [_vm._v(\"Paket Adı\")]\n ),\n _c(\n \"div\",\n {\n staticClass:\n \"accordion-wrapper__row__cell caption\",\n },\n [_vm._v(\" Başlangıç Tarihi \")]\n ),\n _c(\n \"div\",\n {\n staticClass:\n \"accordion-wrapper__row__cell caption\",\n },\n [_vm._v(\" Bitiş Tarihi \")]\n ),\n _c(\n \"div\",\n {\n staticClass:\n \"accordion-wrapper__row__cell caption\",\n },\n [_vm._v(\"Fiyatlar\")]\n ),\n ]\n ),\n _c(\n \"div\",\n { staticClass: \"accordion-content active\" },\n [\n _vm._l(_vm.mergedForTableData, function (item) {\n return _c(\n \"div\",\n {\n key: item.name,\n staticClass: \"accordion-wrapper__row\",\n },\n [\n _c(\n \"div\",\n {\n staticClass: \"accordion-wrapper__row__cell\",\n },\n [\n typeof item == \"object\"\n ? _c(\"span\", [\n item.name\n ? _c(\"span\", [\n _vm._v(_vm._s(item.name)),\n ])\n : _vm._e(),\n ])\n : _c(\"span\", [_vm._v(_vm._s(item))]),\n ]\n ),\n item.startDate\n ? _c(\n \"div\",\n {\n staticClass:\n \"accordion-wrapper__row__cell\",\n },\n [\n _vm._v(\n \" \" +\n _vm._s(\n _vm.getTime(\n item.startDate,\n \"DD.MM.YYYY\"\n )\n ) +\n \" \"\n ),\n ]\n )\n : _c(\n \"div\",\n {\n staticClass:\n \"accordion-wrapper__row__cell\",\n },\n [_vm._v(\"-\")]\n ),\n item.endDate\n ? _c(\n \"div\",\n {\n staticClass:\n \"accordion-wrapper__row__cell\",\n },\n [\n _vm._v(\n \" \" +\n _vm._s(\n _vm.getTime(\n item.endDate,\n \"DD.MM.YYYY\"\n )\n ) +\n \" \"\n ),\n ]\n )\n : _c(\n \"div\",\n {\n staticClass:\n \"accordion-wrapper__row__cell\",\n },\n [_vm._v(\"-\")]\n ),\n item.price\n ? _c(\n \"div\",\n {\n staticClass:\n \"accordion-wrapper__row__cell\",\n },\n [\n _vm._v(\" \" + _vm._s(item.price) + \" \"),\n item.info == \"₺\"\n ? _c(\"span\", [_vm._v(\"TL\")])\n : _vm._e(),\n item.info == \"€\"\n ? _c(\"span\", [_vm._v(\"Euro\")])\n : _vm._e(),\n item.info == \"$\"\n ? _c(\"span\", [_vm._v(\"Dolar\")])\n : _vm._e(),\n ]\n )\n : _c(\n \"div\",\n {\n staticClass:\n \"accordion-wrapper__row__cell\",\n },\n [_vm._v(\"-\")]\n ),\n ]\n )\n }),\n _c(\"div\", { staticClass: \"accordion-wrapper__row\" }, [\n _vm._m(0),\n _c(\"div\", {\n staticClass: \"accordion-wrapper__row__cell\",\n }),\n _c(\"div\", {\n staticClass: \"accordion-wrapper__row__cell\",\n }),\n _c(\n \"div\",\n { staticClass: \"accordion-wrapper__row__cell\" },\n [_vm._v(\" \" + _vm._s(_vm.screenPrice) + \" TL \")]\n ),\n ]),\n ],\n 2\n ),\n ]\n ),\n ]),\n ])\n : _vm._e(),\n ]\n ),\n _c(\n \"modal\",\n {\n staticClass: \"cancel-modal\",\n attrs: {\n height: \"auto\",\n adaptive: true,\n name: String(_vm.dataItem.id),\n },\n },\n [\n _c(\"div\", { staticClass: \"modal-heading\" }, [\n _c(\"div\", { staticClass: \"modal-title\" }, [\n _c(\"h5\", [\n _vm._v(\n \"Seçilen lisansı aşağıdaki şekilde yönlendirebilirsiniz.\"\n ),\n ]),\n ]),\n _c(\n \"a\",\n {\n on: {\n click: function ($event) {\n _vm.closeModal(String(_vm.dataItem.id))\n },\n },\n },\n [\n _c(\"base-icon\", {\n staticClass: \"close\",\n attrs: { name: \"close-circle\" },\n }),\n ],\n 1\n ),\n ]),\n _c(\n \"div\",\n { staticClass: \"modal-body\" },\n [\n _c(\"div\", { staticClass: \"modal-body__top\" }, [\n _c(\"div\", { staticClass: \"modal-body__info\" }, [\n _vm.dataItem.productName\n ? _c(\"h3\", { staticClass: \"title\" }, [\n _vm._v(\" \" + _vm._s(_vm.dataItem.productName) + \" \"),\n ])\n : _vm._e(),\n _c(\"p\", { staticClass: \"modal-body__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 _c(\n \"p\",\n { staticClass: \"modal-body__info_price\" },\n [\n _vm.totalPriceCalc != \"0₺\" &&\n _vm.totalPriceCalc != \"0€\" &&\n _vm.totalPriceCalc != \"0$\"\n ? [_vm._v(_vm._s(_vm.totalPriceCalc))]\n : [_vm._v(\"Ücretsiz\")],\n ],\n 2\n ),\n ]),\n ]),\n _c(\"info-area\", {\n attrs: { infoText: \"Uyarı: Yapılan işlemler geri alınamaz.\" },\n }),\n ],\n 1\n ),\n _c(\n \"div\",\n { staticClass: \"modal-bottom\" },\n [\n _c(\n \"base-button\",\n {\n staticClass: \"set-buttons back\",\n class: !_vm.isButtonsDisabled ? \"\" : \"disabled\",\n on: {\n click: function ($event) {\n return _vm.setRowForPrev(_vm.dataItem.id)\n },\n },\n },\n [_vm._v(\"Geri Al\")]\n ),\n _c(\n \"base-button\",\n {\n staticClass: \"set-buttons\",\n class: !_vm.isButtonsDisabled ? \"\" : \"disabled\",\n on: {\n click: function ($event) {\n return _vm.setRowForNext(_vm.dataItem.id)\n },\n },\n },\n [_vm._v(\"İleri Al\")]\n ),\n ],\n 1\n ),\n ]\n ),\n ],\n 1\n )\n}\nvar staticRenderFns = [\n function () {\n var _vm = this\n var _h = _vm.$createElement\n var _c = _vm._self._c || _h\n return _c(\"div\", { staticClass: \"accordion-wrapper__row__cell\" }, [\n _c(\"span\", [_vm._v(\"Ekran Ücreti\")]),\n ])\n },\n]\nrender._withStripped = true\n\n\n\n//# sourceURL=webpack://OsmanliPackage/./src/components/customer/DataInvoiceItem.vue?./node_modules/cache-loader/dist/cjs.js?%7B%22cacheDirectory%22:%22node_modules/.cache/vue-loader%22,%22cacheIdentifier%22:%2211f6ad0e-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");
2236
2236
 
2237
2237
  /***/ }),
2238
2238
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "osmanli-veri-dagitim",
3
- "version": "2.1.30-dev",
3
+ "version": "2.1.31-dev",
4
4
  "main": "./dist/OsmanliPackage.umd.min.js?version=2.0.90",
5
5
  "files": [
6
6
  "dist"