@crystaldesign/basket-model 25.13.2-rc.7 → 25.13.2-rc.8

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.
@@ -79,95 +79,93 @@ var GroupsData = /*#__PURE__*/_createClass__default["default"](function GroupsDa
79
79
  this.Group = new GroupData(json);
80
80
  });
81
81
 
82
- var VariantItemData = /*#__PURE__*/_createClass__default["default"](function VariantItemData(json) {
83
- _classCallCheck__default["default"](this, VariantItemData);
84
- _defineProperty__default["default"](this, "BasketID", void 0);
85
- _defineProperty__default["default"](this, "OPT", void 0);
86
- // OptionCodex
87
- _defineProperty__default["default"](this, "OPTName", void 0);
88
- // Name der Option
89
- _defineProperty__default["default"](this, "MaskOPTName", void 0);
90
- // overwritten name by mask
91
- _defineProperty__default["default"](this, "OPTName_locales", void 0);
92
- _defineProperty__default["default"](this, "TabGroup", void 0);
93
- // TabGroup in welches sich die Option befindet
94
- _defineProperty__default["default"](this, "MaskTabGroup", void 0);
95
- _defineProperty__default["default"](this, "TabGroup_locales", void 0);
96
- _defineProperty__default["default"](this, "OPV", void 0);
97
- // OptionValue Codex
98
- _defineProperty__default["default"](this, "vOPV", void 0);
99
- // Benutzerfreudliche OptionValue Codex (IDM) welcher im Frontend angezeigt werden soll
100
- _defineProperty__default["default"](this, "OPVName", void 0);
101
- _defineProperty__default["default"](this, "MaskOPVName", void 0);
102
- _defineProperty__default["default"](this, "OPVName_locales", void 0);
103
- _defineProperty__default["default"](this, "OPVImage", void 0);
104
- _defineProperty__default["default"](this, "OPVHexVal", void 0);
105
- _defineProperty__default["default"](this, "SinglePrice", void 0);
106
- // Aufpreis / Basepreis der option
107
- _defineProperty__default["default"](this, "AddPercentage", void 0);
108
- // Prozentueller Aufpreis der Option
109
- _defineProperty__default["default"](this, "ShowOPVAsArticleNr", void 0);
110
- _defineProperty__default["default"](this, "SendToSAP", void 0);
111
- _defineProperty__default["default"](this, "ArticlePlaceholder", void 0);
112
- _defineProperty__default["default"](this, "HideInOrderText", void 0);
113
- _defineProperty__default["default"](this, "Hidden", void 0);
114
- _defineProperty__default["default"](this, "IsDescribingState", void 0);
115
- // If true it means this option does not change the Product but just the state like if an Ombrella is opened or closed
116
- _defineProperty__default["default"](this, "FreeText", void 0);
117
- _defineProperty__default["default"](this, "FreeTextLang", void 0);
118
- _defineProperty__default["default"](this, "MeasureValue", void 0);
119
- _defineProperty__default["default"](this, "MeasureUnit", void 0);
120
- _defineProperty__default["default"](this, "isFreeText", void 0);
121
- _defineProperty__default["default"](this, "isMeasureValue", void 0);
122
- //public OPTEAN?: string = ""; // BARCode der Artikel / deprected
123
- //public OPVEAN?: string = "";
124
- //public FirstTime?: string = "";
125
- _defineProperty__default["default"](this, "AddPrice", void 0);
126
- _defineProperty__default["default"](this, "AddPriceFormatted", void 0);
127
- _defineProperty__default["default"](this, "PriceUnit", void 0);
128
- _defineProperty__default["default"](this, "PriceID", void 0);
129
- _defineProperty__default["default"](this, "OCD", void 0);
130
- _defineProperty__default["default"](this, "OptionOCD", void 0);
131
- this.BasketID = json.BasketID;
132
- this.OPT = json.OPT;
133
- this.OPV = json.OPV;
134
- this.OPTName = json.OPTName;
135
- this.MaskOPTName = json.MaskOPTName;
136
- this.OPTName_locales = json.OPTName_locales;
137
- this.TabGroup = json.TabGroup;
138
- this.MaskTabGroup = json.MaskTabGroup;
139
- this.TabGroup_locales = json.TabGroup_locales;
140
- this.vOPV = json.vOPV;
141
- this.OPVName = json.OPVName;
142
- this.MaskOPVName = json.MaskOPVName;
143
- this.OPVName_locales = json.OPVName_locales;
144
- this.OPVImage = json.OPVImage;
145
- this.OPVHexVal = json.OPVHexVal;
146
- this.FreeText = json.FreeText;
147
- this.SinglePrice = json.SinglePrice;
148
- this.AddPercentage = json.AddPercentage;
149
- this.IsDescribingState = json.IsDescribingState;
150
- this.SendToSAP = json.SendToSAP;
151
- this.ArticlePlaceholder = json.ArticlePlaceholder;
152
- this.HideInOrderText = json.HideInOrderText;
153
- this.Hidden = json.Hidden;
154
- this.ShowOPVAsArticleNr = json.ShowOPVAsArticleNr;
155
- this.AddPrice = json.AddPrice;
156
- if (this.AddPrice) this.AddPriceFormatted = json.AddPriceFormatted;
157
- this.PriceUnit = json.PriceUnit;
158
- this.PriceID = json.PriceID;
159
- this.FreeText = json.FreeText;
160
- this.MeasureValue = json.MeasureValue;
161
- this.MeasureUnit = json.MeasureUnit;
162
- this.isFreeText = json.isFreeText;
163
- this.isMeasureValue = json.isMeasureValue;
164
- this.OCD = json.OCD;
165
- this.OptionOCD = json.OptionOCD;
166
- this.FreeTextLang = json.FreeTextLang;
167
- });
168
- var getStringForHash = function getStringForHash(vd) {
169
- return vd.OPT + '_' + vd.OPV + (vd.MeasureValue !== undefined ? '_' + vd.MeasureValue : '') + (vd.FreeText !== undefined ? '_' + vd.FreeText : '');
170
- };
82
+ var VariantItemData = /*#__PURE__*/function () {
83
+ function VariantItemData(json) {
84
+ _classCallCheck__default["default"](this, VariantItemData);
85
+ _defineProperty__default["default"](this, "BasketID", void 0);
86
+ _defineProperty__default["default"](this, "OPT", void 0);
87
+ // OptionCodex
88
+ _defineProperty__default["default"](this, "OPTName", void 0);
89
+ // Name der Option
90
+ _defineProperty__default["default"](this, "OPTName_locales", void 0);
91
+ _defineProperty__default["default"](this, "TabGroup", void 0);
92
+ // TabGroup in welches sich die Option befindet
93
+ _defineProperty__default["default"](this, "TabGroup_locales", void 0);
94
+ _defineProperty__default["default"](this, "OPV", void 0);
95
+ // OptionValue Codex
96
+ _defineProperty__default["default"](this, "vOPV", void 0);
97
+ // Benutzerfreudliche OptionValue Codex (IDM) welcher im Frontend angezeigt werden soll
98
+ _defineProperty__default["default"](this, "OPVName", void 0);
99
+ _defineProperty__default["default"](this, "OPVName_locales", void 0);
100
+ _defineProperty__default["default"](this, "OPVImage", void 0);
101
+ _defineProperty__default["default"](this, "OPVHexVal", void 0);
102
+ _defineProperty__default["default"](this, "SinglePrice", void 0);
103
+ // Aufpreis / Basepreis der option
104
+ _defineProperty__default["default"](this, "AddPercentage", void 0);
105
+ // Prozentueller Aufpreis der Option
106
+ _defineProperty__default["default"](this, "ShowOPVAsArticleNr", void 0);
107
+ _defineProperty__default["default"](this, "SendToSAP", void 0);
108
+ _defineProperty__default["default"](this, "ArticlePlaceholder", void 0);
109
+ _defineProperty__default["default"](this, "HideInOrderText", void 0);
110
+ _defineProperty__default["default"](this, "Hidden", void 0);
111
+ _defineProperty__default["default"](this, "IsDescribingState", void 0);
112
+ // If true it means this option does not change the Product but just the state like if an Ombrella is opened or closed
113
+ _defineProperty__default["default"](this, "FreeText", void 0);
114
+ _defineProperty__default["default"](this, "FreeTextLang", void 0);
115
+ _defineProperty__default["default"](this, "MeasureValue", void 0);
116
+ _defineProperty__default["default"](this, "MeasureUnit", void 0);
117
+ _defineProperty__default["default"](this, "isFreeText", void 0);
118
+ _defineProperty__default["default"](this, "isMeasureValue", void 0);
119
+ //public OPTEAN?: string = ""; // BARCode der Artikel / deprected
120
+ //public OPVEAN?: string = "";
121
+ //public FirstTime?: string = "";
122
+ _defineProperty__default["default"](this, "AddPrice", void 0);
123
+ _defineProperty__default["default"](this, "AddPriceFormatted", void 0);
124
+ _defineProperty__default["default"](this, "PriceUnit", void 0);
125
+ _defineProperty__default["default"](this, "PriceID", void 0);
126
+ _defineProperty__default["default"](this, "OCD", void 0);
127
+ _defineProperty__default["default"](this, "OptionOCD", void 0);
128
+ this.BasketID = json.BasketID;
129
+ this.OPT = json.OPT;
130
+ this.OPV = json.OPV;
131
+ this.OPTName = json.OPTName;
132
+ this.OPTName_locales = json.OPTName_locales;
133
+ this.TabGroup = json.TabGroup;
134
+ this.TabGroup_locales = json.TabGroup_locales;
135
+ this.vOPV = json.vOPV;
136
+ this.OPVName = json.OPVName;
137
+ this.OPVName_locales = json.OPVName_locales;
138
+ this.OPVImage = json.OPVImage;
139
+ this.OPVHexVal = json.OPVHexVal;
140
+ this.FreeText = json.FreeText;
141
+ this.SinglePrice = json.SinglePrice;
142
+ this.AddPercentage = json.AddPercentage;
143
+ this.IsDescribingState = json.IsDescribingState;
144
+ this.SendToSAP = json.SendToSAP;
145
+ this.ArticlePlaceholder = json.ArticlePlaceholder;
146
+ this.HideInOrderText = json.HideInOrderText;
147
+ this.Hidden = json.Hidden;
148
+ this.ShowOPVAsArticleNr = json.ShowOPVAsArticleNr;
149
+ this.AddPrice = json.AddPrice;
150
+ if (this.AddPrice) this.AddPriceFormatted = json.AddPriceFormatted;
151
+ this.PriceUnit = json.PriceUnit;
152
+ this.PriceID = json.PriceID;
153
+ this.FreeText = json.FreeText;
154
+ this.MeasureValue = json.MeasureValue;
155
+ this.MeasureUnit = json.MeasureUnit;
156
+ this.isFreeText = json.isFreeText;
157
+ this.isMeasureValue = json.isMeasureValue;
158
+ this.OCD = json.OCD;
159
+ this.OptionOCD = json.OptionOCD;
160
+ this.FreeTextLang = json.FreeTextLang;
161
+ }
162
+ return _createClass__default["default"](VariantItemData, [{
163
+ key: "getStringForHash",
164
+ value: function getStringForHash() {
165
+ return this.OPT + '_' + this.OPV + (this.MeasureValue !== undefined ? '_' + this.MeasureValue : '') + (this.FreeText !== undefined ? '_' + this.FreeText : '');
166
+ }
167
+ }]);
168
+ }();
171
169
 
172
170
  function ownKeys$1(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
173
171
  function _objectSpread$1(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$1(Object(t), !0).forEach(function (r) { _defineProperty__default["default"](e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$1(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
@@ -205,7 +203,6 @@ var OrderLineData = /*#__PURE__*/function () {
205
203
  // bei Flache Artikel wird dies manchmal verwendet
206
204
  _defineProperty__default["default"](this, "ArticleGUID", void 0);
207
205
  _defineProperty__default["default"](this, "Name", void 0);
208
- _defineProperty__default["default"](this, "MaskName", void 0);
209
206
  _defineProperty__default["default"](this, "Name_locales", void 0);
210
207
  _defineProperty__default["default"](this, "MetaData_locales", void 0);
211
208
  _defineProperty__default["default"](this, "Size", void 0);
@@ -229,7 +226,6 @@ var OrderLineData = /*#__PURE__*/function () {
229
226
  // Liste der Tabgroups
230
227
  _defineProperty__default["default"](this, "SendToSAP", void 0);
231
228
  _defineProperty__default["default"](this, "ArticlePlaceholder", void 0);
232
- _defineProperty__default["default"](this, "CustomDimensions", void 0);
233
229
  //wird bei Pfister verwendet um später wieder zu erkennen ob man zufällig wieder die selbe SAP Art Nummer (Basiskonfigurat) geplant hat
234
230
  //ist ein eindeutiger Schlüssel zweier gleichen Planung unabhängig der Accounts
235
231
  _defineProperty__default["default"](this, "ArticleVariantID", void 0);
@@ -294,7 +290,6 @@ var OrderLineData = /*#__PURE__*/function () {
294
290
  this.ArticleEAN = json.ArticleEAN;
295
291
  this.ArticleGUID = json.ArticleGUID;
296
292
  this.Name = json.Name;
297
- this.MaskName = json.MaskName;
298
293
  this.Size = json.Size;
299
294
  this.Width = json.Width;
300
295
  this.Depth = json.Depth;
@@ -305,7 +300,6 @@ var OrderLineData = /*#__PURE__*/function () {
305
300
  this.MetaData_locales = json.MetaData_locales;
306
301
  this.Name_locales = json.Name_locales;
307
302
  this.VariantDesc_locales = json.VariantDesc_locales;
308
- this.CustomDimensions = json.CustomDimensions;
309
303
  this.RuleDesc_locales = json.RuleDesc_locales;
310
304
  this.Quantity = json.Quantity;
311
305
  var vkPrice = json.VKPrice || json.VkPrice;
@@ -420,11 +414,7 @@ var OrderLineData = /*#__PURE__*/function () {
420
414
  if (!this.VariantBasketDatas) this.VariantBasketDatas = [];
421
415
  for (var i = 0; i < this.VariantBasketDatas.length; i++) {
422
416
  var v = this.VariantBasketDatas[i];
423
- if (!v.OPT.endsWith('_val')) {
424
- ret['OPT' + v.OPT] = 'OPV' + v.OPV;
425
- } else {
426
- ret['OPT' + v.OPT] = v.OPV;
427
- }
417
+ ret['OPT' + v.OPT] = 'OPV' + v.OPV;
428
418
  if (v.MeasureValue || v.FreeText) {
429
419
  var _ref;
430
420
  ret['OPT' + v.OPT + '_val'] = (_ref = v.MeasureValue || v.FreeText) === null || _ref === void 0 ? void 0 : _ref.toString();
@@ -444,10 +434,10 @@ var OrderLineData = /*#__PURE__*/function () {
444
434
  return false;
445
435
  }
446
436
 
447
- /**
448
- *
449
- * @param t i18n translation instance
450
- * @returns general Article description
437
+ /**
438
+ *
439
+ * @param t i18n translation instance
440
+ * @returns general Article description
451
441
  */
452
442
  }, {
453
443
  key: "getArticleInfoText",
@@ -495,34 +485,40 @@ var OrderLineData = /*#__PURE__*/function () {
495
485
  !config.hideTotalPrices && this.CalcPrice ? t('basket.priceOverview.table.sum') + ': ' + DivaUtils__default["default"].formatPrice(this.CalcPrice, priceFormat) + ' \n' : '')
496
486
  );
497
487
  }
488
+ }, {
489
+ key: "getHash",
490
+ value: function getHash() {
491
+ var _this$VariantBasketDa2, _this$VariantBasketDa3;
492
+ return DivaUtils.md5(this.CatalogCodex + '_' + this.ArticleCodex + '_' + this.Quantity + '_' + ((_this$VariantBasketDa2 = (_this$VariantBasketDa3 = this.VariantBasketDatas) === null || _this$VariantBasketDa3 === void 0 || (_this$VariantBasketDa3 = _this$VariantBasketDa3.filter(function (v) {
493
+ return !v.IsDescribingState;
494
+ })) === null || _this$VariantBasketDa3 === void 0 ? void 0 : _this$VariantBasketDa3.map(function (v) {
495
+ return v.getStringForHash();
496
+ })) !== null && _this$VariantBasketDa2 !== void 0 ? _this$VariantBasketDa2 : []).join());
497
+ }
498
498
  }, {
499
499
  key: "getTinyVariantConfigurationDatas",
500
500
  value: function getTinyVariantConfigurationDatas() {
501
- var _this$VariantBasketDa2, _this$VariantBasketDa3, _this$VariantBasketDa4, _this$VariantBasketDa5;
502
- return [].concat(_toConsumableArray__default["default"]((_this$VariantBasketDa2 = (_this$VariantBasketDa3 = this.VariantBasketDatas) === null || _this$VariantBasketDa3 === void 0 ? void 0 : _this$VariantBasketDa3.map(function (v) {
501
+ var _this$VariantBasketDa4, _this$VariantBasketDa5, _this$VariantBasketDa6, _this$VariantBasketDa7;
502
+ return [].concat(_toConsumableArray__default["default"]((_this$VariantBasketDa4 = (_this$VariantBasketDa5 = this.VariantBasketDatas) === null || _this$VariantBasketDa5 === void 0 ? void 0 : _this$VariantBasketDa5.map(function (v) {
503
503
  return {
504
504
  OPT: v.OPT,
505
505
  OPV: v.OPV,
506
- OPTName: v.OPTName,
507
- OPVName: v.OPVName,
508
506
  OCD: v.OCD,
509
507
  OptionOCD: v.OptionOCD,
510
508
  IsDescribingState: v.IsDescribingState
511
509
  };
512
- })) !== null && _this$VariantBasketDa2 !== void 0 ? _this$VariantBasketDa2 : []), _toConsumableArray__default["default"]((_this$VariantBasketDa4 = (_this$VariantBasketDa5 = this.VariantBasketDatas) === null || _this$VariantBasketDa5 === void 0 || (_this$VariantBasketDa5 = _this$VariantBasketDa5.filter(function (v) {
510
+ })) !== null && _this$VariantBasketDa4 !== void 0 ? _this$VariantBasketDa4 : []), _toConsumableArray__default["default"]((_this$VariantBasketDa6 = (_this$VariantBasketDa7 = this.VariantBasketDatas) === null || _this$VariantBasketDa7 === void 0 || (_this$VariantBasketDa7 = _this$VariantBasketDa7.filter(function (v) {
513
511
  return v.MeasureValue || v.FreeText;
514
- })) === null || _this$VariantBasketDa5 === void 0 ? void 0 : _this$VariantBasketDa5.map(function (v) {
512
+ })) === null || _this$VariantBasketDa7 === void 0 ? void 0 : _this$VariantBasketDa7.map(function (v) {
515
513
  var _ref2;
516
514
  return {
517
515
  OPT: v.OPT + '_val',
518
516
  OPV: (_ref2 = v.MeasureValue || v.FreeText) === null || _ref2 === void 0 ? void 0 : _ref2.toString(),
519
- OPTName: v.OPTName,
520
- OPVName: v.OPVName,
521
517
  OCD: v.OCD,
522
518
  OptionOCD: v.OptionOCD,
523
519
  IsDescribingState: v.IsDescribingState
524
520
  };
525
- })) !== null && _this$VariantBasketDa4 !== void 0 ? _this$VariantBasketDa4 : []));
521
+ })) !== null && _this$VariantBasketDa6 !== void 0 ? _this$VariantBasketDa6 : []));
526
522
  }
527
523
  }, {
528
524
  key: "getAsJson",
@@ -537,14 +533,6 @@ var OrderLineData = /*#__PURE__*/function () {
537
533
  }
538
534
  }]);
539
535
  }();
540
- var getHash = function getHash(ol) {
541
- var _ol$VariantBasketData, _ol$VariantBasketData2;
542
- return DivaUtils.md5(ol.CatalogCodex + '_' + ol.ArticleCodex + '_' + ol.Quantity + '_' + ((_ol$VariantBasketData = (_ol$VariantBasketData2 = ol.VariantBasketDatas) === null || _ol$VariantBasketData2 === void 0 || (_ol$VariantBasketData2 = _ol$VariantBasketData2.filter(function (v) {
543
- return !v.IsDescribingState;
544
- })) === null || _ol$VariantBasketData2 === void 0 ? void 0 : _ol$VariantBasketData2.map(function (v) {
545
- return getStringForHash(v);
546
- })) !== null && _ol$VariantBasketData !== void 0 ? _ol$VariantBasketData : []).join());
547
- };
548
536
 
549
537
  var OrderSetData = /*#__PURE__*/function () {
550
538
  function OrderSetData(json, ZKATNr, SetArticleNr, SetArticleNrPrefix, priceFormat) {
@@ -571,7 +559,6 @@ var OrderSetData = /*#__PURE__*/function () {
571
559
  //= new SetImageData();
572
560
  _defineProperty__default["default"](this, "Set2DImage", void 0);
573
561
  // 2D bild der Planung
574
- _defineProperty__default["default"](this, "SerieId", void 0);
575
562
  _defineProperty__default["default"](this, "SetPrice", void 0);
576
563
  _defineProperty__default["default"](this, "SetPriceFormatted", void 0);
577
564
  _defineProperty__default["default"](this, "BruttoSetPrice", void 0);
@@ -617,8 +604,6 @@ var OrderSetData = /*#__PURE__*/function () {
617
604
  // Letzte Versionierung -> kann überprüft werden ob in zwischenzeit das Modell versioniert wurde (neue Version gibt) / wird beim Speichern Clientseitig nicht gefüllt
618
605
  _defineProperty__default["default"](this, "CatalogValidTo", void 0);
619
606
  // VerfallsDatum / wird beim Speichern Clientseitig nicht gefüllt
620
- _defineProperty__default["default"](this, "RetailCatalogNr", void 0);
621
- // Programm Nr im CM
622
607
  _defineProperty__default["default"](this, "ModelCodex", void 0);
623
608
  // Modellvorauswahl ModellCodex
624
609
  _defineProperty__default["default"](this, "ModelCatalogCodex", void 0);
@@ -657,22 +642,18 @@ var OrderSetData = /*#__PURE__*/function () {
657
642
  _defineProperty__default["default"](this, "MetaData", void 0);
658
643
  _defineProperty__default["default"](this, "MetaData_locales", void 0);
659
644
  _defineProperty__default["default"](this, "AdditionalCatalogPrice", void 0);
660
- _defineProperty__default["default"](this, "FavoriteAiRoomKeys", void 0);
661
- // New field for multiple favorites
662
645
  //war vohrer auskommentiert, Grund weiß ich nicht mehr. Kann ev. zu Problemen führen
663
646
  //inzukunft sollen diese Inhalte über ein Webservice gezogen werden und per Hash abrufbar sein
664
647
  _defineProperty__default["default"](this, "SetPlanData", void 0);
665
648
  // 2D Planung
666
649
  _defineProperty__default["default"](this, "SummaryInfo", []);
667
650
  _defineProperty__default["default"](this, "BBox", void 0);
668
- _defineProperty__default["default"](this, "IsIDMFormat", void 0);
669
651
  this.SetID = json.SetID;
670
652
  this.SetName = json.SetName;
671
653
  this.SetName_locales = json.SetName_locales;
672
654
  this.ProductSetName = json.ProductSetName;
673
655
  this.SetImage = json.SetImage;
674
656
  this.HQRenderScript = json.HQRenderScript;
675
- this.IsIDMFormat = json.IsIDMFormat;
676
657
  this.SetImages = json.SetImages; //: SetImageData[] = []; //= new SetImageData();
677
658
  this.SetPrice = json.SetPrice;
678
659
  this.SetPriceFormatted = DivaUtils__default["default"].formatPrice(this.SetPrice, priceFormat);
@@ -709,7 +690,6 @@ var OrderSetData = /*#__PURE__*/function () {
709
690
  this.CatalogOfflineVersion = json.CatalogOfflineVersion;
710
691
  this.CatalogOfflineFilesLastUpdate = json.CatalogOfflineFilesLastUpdate;
711
692
  this.CatalogGUID = json.CatalogGUID;
712
- this.RetailCatalogNr = json.RetailCatalogNr;
713
693
  this.EkSetPrice = json.EkSetPrice;
714
694
  this.EkCurrency = json.EkCurrency;
715
695
  this.BruttoSetPrice = json.BruttoSetPrice;
@@ -731,7 +711,6 @@ var OrderSetData = /*#__PURE__*/function () {
731
711
  this.SupplierGUID = json.SupplierGUID;
732
712
  this.SupplierILN = json.SupplierILN;
733
713
  this.SupplierCatalogName = json.SupplierCatalogName;
734
- this.SerieId = json.SerieId;
735
714
  this.SetPlanData = json.SetPlanData;
736
715
  this.PlannerWarnings = json.PlannerWarnings;
737
716
  this.Weight = json.Weight;
@@ -739,7 +718,6 @@ var OrderSetData = /*#__PURE__*/function () {
739
718
  this.Volume = json.Volume;
740
719
  this.VolumeUnit = json.VolumeUnit;
741
720
  this.AdditionalCatalogPrice = json.AdditionalCatalogPrice;
742
- this.FavoriteAiRoomKeys = json.FavoriteAiRoomKeys;
743
721
  if (json.OrderLines) {
744
722
  for (var i = 0; i < json.OrderLines.length; i++) {
745
723
  this.OrderLines[i] = new OrderLineData(json.OrderLines[i], priceFormat);
@@ -788,8 +766,8 @@ var OrderSetData = /*#__PURE__*/function () {
788
766
  this.SetPlanData = DivaUtils__default["default"].encodeBase64(setPlanData);
789
767
  }
790
768
 
791
- /**
792
- * get the docking point infos of all orderlines of the set
769
+ /**
770
+ * get the docking point infos of all orderlines of the set
793
771
  */
794
772
  }, {
795
773
  key: "getDockingPointInfo",
@@ -832,14 +810,10 @@ var mCaption = 'M';
832
810
  var artikelCaption = 'Artikel';
833
811
  var preisCaption = 'Preis';
834
812
  var newLine = '\r\n';
835
- var _generateEKTextOfBasket = (function (basket, withoutPrices, customDivaNr) {
813
+ var _generateEKTextOfBasket = (function (basket, withoutPrices) {
836
814
  var _basket$OrderSets;
837
815
  var ekTextHead = '';
838
- var divaNrtext = basket.DocumentVersion > 0 ? "".concat(basket.DivaNr, "-").concat(basket.DocumentVersion) : basket.DivaNr;
839
- if (customDivaNr) {
840
- divaNrtext = customDivaNr;
841
- }
842
- ekTextHead = writeText(ekTextHead, divaNrtext);
816
+ ekTextHead = writeText(ekTextHead, basket.DivaNr + '-' + basket.DocumentVersion);
843
817
  var sbSetOrderText = ekTextHead;
844
818
  var preisLength = 9;
845
819
  if (withoutPrices) {
@@ -853,13 +827,13 @@ var _generateEKTextOfBasket = (function (basket, withoutPrices, customDivaNr) {
853
827
  return sol.OrderText = '';
854
828
  });
855
829
  var _loop = function _loop() {
856
- var _os$BBox, _os$CatalogName, _basket$getSAPOrderLi;
830
+ var _os$BBox, _basket$getSAPOrderLi;
857
831
  var setText = '';
858
832
  var os = basket.OrderSets[i];
859
833
  if ((_os$BBox = os.BBox) !== null && _os$BBox !== void 0 && _os$BBox.Info) {
860
834
  setText = writeText(setText, os.BBox.Info);
861
835
  }
862
- setText = writeText(setText, 'Modell: ' + DivaUtils__default["default"].stripTags((_os$CatalogName = os.CatalogName) !== null && _os$CatalogName !== void 0 ? _os$CatalogName : ''));
836
+ setText = writeText(setText, 'Modell: ' + os.CatalogName);
863
837
  ols = os.OrderLines;
864
838
  if (!ols || ols.length == 0) return 1; // continue
865
839
 
@@ -935,9 +909,9 @@ var addingSapOrderLinesToEkText = function addingSapOrderLinesToEkText(saporderL
935
909
  //https://app.asana.com/0/686949732692179/692909200657046
936
910
  var setText = '';
937
911
  var _loop3 = function _loop3() {
938
- var _sapOrderline$Name, _sapOrderline$UseSAPA, _orderLine$ConfigArti;
912
+ var _sapOrderline$UseSAPA, _orderLine$ConfigArti;
939
913
  var sapOrderline = saporderLines[i];
940
- var lines = getLines(artikelLength, artikelLength2Row, DivaUtils__default["default"].stripTags((_sapOrderline$Name = sapOrderline.Name) !== null && _sapOrderline$Name !== void 0 ? _sapOrderline$Name : ''));
914
+ var lines = getLines(artikelLength, artikelLength2Row, sapOrderline.Name);
941
915
  var orderLine = ols.find(function (ol) {
942
916
  return ol.RetailArticleNr === sapOrderline.ArticleNr;
943
917
  });
@@ -970,17 +944,15 @@ var processPartListOrderLines = function processPartListOrderLines(basket, ols,
970
944
  return sol.ArticleNrPrefix === 'ZKAT' && orderLine.RetailArticleNr == sol.ArticleNr;
971
945
  })) && orderLine.IsPartlistArticle;
972
946
  }).reduce(function (group, ol) {
973
- var _ol$Name, _ol$VariantBasketData, _group$category;
974
- var category = DivaUtils__default["default"].stripTags((_ol$Name = ol.Name) !== null && _ol$Name !== void 0 ? _ol$Name : '') + '|' + ol.TypeNr + '|' + ol.SetID + '|' + ol.ArticleCodex + '|' + ((_ol$VariantBasketData = ol.VariantBasketDatas) === null || _ol$VariantBasketData === void 0 ? void 0 : _ol$VariantBasketData.map(function (v) {
975
- return v.OPT + v.OPV;
976
- }).join(';'));
947
+ var _group$category;
948
+ var category = ol.Name + '|' + ol.TypeNr + '|' + ol.SetID + '|' + ol.ArticleCodex;
977
949
  group[category] = (_group$category = group[category]) !== null && _group$category !== void 0 ? _group$category : [];
978
950
  group[category].push(ol);
979
951
  return group;
980
952
  }, {});
981
953
  var retval = '';
982
954
  var _loop4 = function _loop4() {
983
- var _basket$getSAPOrderLi3, _basket$getSAPOrderLi4, _basket$getSAPOrderLi5, _orderLine$Name, _orderLine$ConfigArti2;
955
+ var _basket$getSAPOrderLi3, _basket$getSAPOrderLi4, _basket$getSAPOrderLi5, _orderLine$ConfigArti2;
984
956
  var groupedOl = groupedOls[key];
985
957
  var orderLine = groupedOl[0];
986
958
  var sol = (_basket$getSAPOrderLi3 = (_basket$getSAPOrderLi4 = basket.getSAPOrderLines()) === null || _basket$getSAPOrderLi4 === void 0 ? void 0 : _basket$getSAPOrderLi4.find(function (sol) {
@@ -993,7 +965,7 @@ var processPartListOrderLines = function processPartListOrderLines(basket, ols,
993
965
  }, 0).toString();
994
966
  setOrderText += appendToTheRight(mLength, quantity);
995
967
  }
996
- var lines = getLines(artikelLength, newArtikelLength2Row, DivaUtils__default["default"].stripTags((_orderLine$Name = orderLine.Name) !== null && _orderLine$Name !== void 0 ? _orderLine$Name : ''));
968
+ var lines = getLines(artikelLength, newArtikelLength2Row, orderLine.Name);
997
969
  var articleNumber = (_orderLine$ConfigArti2 = orderLine.ConfigArticleCodex) !== null && _orderLine$ConfigArti2 !== void 0 ? _orderLine$ConfigArti2 : orderLine.ArticleCodex;
998
970
 
999
971
  //Anforderung von Polypol auch die Typennummer anzugeben
@@ -1046,8 +1018,8 @@ var processNonPartlistOrderlines = function processNonPartlistOrderlines(basket,
1046
1018
  return sol.ArticleNrPrefix === 'ZKAT' && orderLine.RetailArticleNr === sol.ArticleNr;
1047
1019
  });
1048
1020
  if (sol) {
1049
- var _orderLine$Name2, _orderLine$ConfigArti3, _orderLine$VariantBas, _orderLine$VariantBas2, _orderLine$ConfigPric;
1050
- var lines = getLines(artikelLength, artikelLength2Row, DivaUtils__default["default"].stripTags((_orderLine$Name2 = orderLine.Name) !== null && _orderLine$Name2 !== void 0 ? _orderLine$Name2 : ''));
1021
+ var _orderLine$ConfigArti3, _orderLine$VariantBas, _orderLine$VariantBas2, _orderLine$ConfigPric;
1022
+ var lines = getLines(artikelLength, artikelLength2Row, orderLine.Name);
1051
1023
  var articleNumber = (_orderLine$ConfigArti3 = orderLine.ConfigArticleCodex) !== null && _orderLine$ConfigArti3 !== void 0 ? _orderLine$ConfigArti3 : orderLine.ArticleCodex;
1052
1024
 
1053
1025
  //Anforderung von Polypol auch die Typennummer anzugeben
@@ -1080,11 +1052,11 @@ var processNonPartlistOrderlines = function processNonPartlistOrderlines(basket,
1080
1052
  }
1081
1053
 
1082
1054
  /* Activate when base prices and additional prices should be displayed. */
1083
- /*if (orderLine.ConfigPriceDatas?.BasePrice && !withoutPrices) {
1084
- sapOrderLineText += appendToTheRight(mLength + 1, ' ');
1085
- sapOrderLineText += appendToTheRight(artikelLength, 'Basispreis');
1086
- sapOrderLineText += appendToTheLeft(preisLength - 6, formatPrice(orderLine.ConfigPriceDatas?.BasePrice.toString() ?? '0'));
1087
- sapOrderLineText += newLine + newLine;
1055
+ /*if (orderLine.ConfigPriceDatas?.BasePrice && !withoutPrices) {
1056
+ sapOrderLineText += appendToTheRight(mLength + 1, ' ');
1057
+ sapOrderLineText += appendToTheRight(artikelLength, 'Basispreis');
1058
+ sapOrderLineText += appendToTheLeft(preisLength - 6, formatPrice(orderLine.ConfigPriceDatas?.BasePrice.toString() ?? '0'));
1059
+ sapOrderLineText += newLine + newLine;
1088
1060
  }*/
1089
1061
  /* -------------------------------------------------------------------- */
1090
1062
 
@@ -1207,16 +1179,16 @@ var getLines = function getLines(maxLengthColumn1Row, maxLengthColumn2Row, value
1207
1179
  lines.push(line);
1208
1180
  return lines;
1209
1181
  };
1210
- var addVariants = function addVariants(articleLength, orderLine, articleLength2Row, startPositionArticle2Row) {
1211
- var _orderLine$VariantBas3, _orderLine$VariantBas4;
1182
+ var addVariants = function addVariants(articleLength, orderLine, articleLength2Row, startPositionArticle2Row, preisLength) {
1183
+ var _orderLine$ConfigPric2, _orderLine$VariantBas3, _orderLine$VariantBas4;
1184
+ (_orderLine$ConfigPric2 = orderLine.ConfigPriceDatas) === null || _orderLine$ConfigPric2 === void 0 ? void 0 : _orderLine$ConfigPric2.AdditionalPrices;
1212
1185
  var variantDatas = (_orderLine$VariantBas3 = (_orderLine$VariantBas4 = orderLine.VariantBasketDatas) === null || _orderLine$VariantBas4 === void 0 ? void 0 : _orderLine$VariantBas4.filter(function (vd) {
1213
1186
  return !vd.Hidden && (!vd.SendToSAP || !vd.ArticlePlaceholder) && vd.BasketID == orderLine.BasketID;
1214
1187
  })) !== null && _orderLine$VariantBas3 !== void 0 ? _orderLine$VariantBas3 : [];
1215
1188
  var variantDataText = '';
1216
1189
  for (var i = 0; i < variantDatas.length; i++) {
1217
- var _vb$OPTName, _vb$OPVName;
1218
1190
  var vb = variantDatas[i];
1219
- var remark = DivaUtils__default["default"].stripTags((_vb$OPTName = vb.OPTName) !== null && _vb$OPTName !== void 0 ? _vb$OPTName : '') + ': ' + DivaUtils__default["default"].stripTags((_vb$OPVName = vb.OPVName) !== null && _vb$OPVName !== void 0 ? _vb$OPVName : '');
1191
+ var remark = vb.OPTName + ': ' + vb.OPVName;
1220
1192
  if (vb.vOPV) remark += ' (' + vb.vOPV + ')';
1221
1193
 
1222
1194
  /* Activate when base prices and additional prices should be displayed. */
@@ -1232,12 +1204,12 @@ var addVariants = function addVariants(articleLength, orderLine, articleLength2R
1232
1204
  variantDataText += writeOtherLines(vbLines, startPositionArticle2Row /*additionalPrice ? true : false*/);
1233
1205
 
1234
1206
  /* Activate when base prices and additional prices should be displayed. */
1235
- /*if (additionalPrice && false) {
1236
- variantDataText += appendToTheLeft(
1237
- preisLength + (artikelLength - vbLines[vbLines.length - 1].length) - 5,
1238
- formatPrice(additionalPrice?.Price.toString() ?? '0'),
1239
- );
1240
- variantDataText += newLine;
1207
+ /*if (additionalPrice && false) {
1208
+ variantDataText += appendToTheLeft(
1209
+ preisLength + (artikelLength - vbLines[vbLines.length - 1].length) - 5,
1210
+ formatPrice(additionalPrice?.Price.toString() ?? '0'),
1211
+ );
1212
+ variantDataText += newLine;
1241
1213
  }*/
1242
1214
  }
1243
1215
  return variantDataText;
@@ -1279,9 +1251,6 @@ var BasketData = /*#__PURE__*/function () {
1279
1251
  _defineProperty__default["default"](this, "Servername", void 0);
1280
1252
  _defineProperty__default["default"](this, "CreationDate", void 0);
1281
1253
  _defineProperty__default["default"](this, "SendIWOBasket", false);
1282
- _defineProperty__default["default"](this, "MatchingProductId", void 0);
1283
- _defineProperty__default["default"](this, "MatchingProductRetailerArticleNr", void 0);
1284
- _defineProperty__default["default"](this, "RetailArticleNr", void 0);
1285
1254
  _defineProperty__default["default"](this, "ProductSetName", void 0);
1286
1255
  _defineProperty__default["default"](this, "ReportConfigIdentifier", void 0);
1287
1256
  _defineProperty__default["default"](this, "OrganizationId", void 0);
@@ -1363,7 +1332,6 @@ var BasketData = /*#__PURE__*/function () {
1363
1332
  _defineProperty__default["default"](this, "_discounts", []);
1364
1333
  _defineProperty__default["default"](this, "AdditionalPrices", []);
1365
1334
  _defineProperty__default["default"](this, "OrderStatus", void 0);
1366
- _defineProperty__default["default"](this, "OriginBaseUrl", void 0);
1367
1335
  //Readonly finished
1368
1336
  _defineProperty__default["default"](this, "UseFavoritesAsVariants", false);
1369
1337
  // Wird benötigt beim Laden einer Mutter DivaNr mit Varianten
@@ -1374,7 +1342,6 @@ var BasketData = /*#__PURE__*/function () {
1374
1342
  // Enthält URL zum gerenderten Bild.
1375
1343
  _defineProperty__default["default"](this, "PDFDocumentURL", void 0);
1376
1344
  // Link zu PDF für IWOFurn. Wird ServerSeitig beim BasketToIwoFurnConverter gesetzt
1377
- _defineProperty__default["default"](this, "ReturnTo", void 0);
1378
1345
  _defineProperty__default["default"](this, "pdfs", void 0);
1379
1346
  _defineProperty__default["default"](this, "PDFContent", void 0);
1380
1347
  // HTML für das Serverseitige PDF erstellen
@@ -1420,9 +1387,6 @@ var BasketData = /*#__PURE__*/function () {
1420
1387
  this.ApplicationEnvironment = json.ApplicationEnvironment;
1421
1388
  this.catalogStatus = json.catalogStatus;
1422
1389
  this.SendIWOBasket = json.SendIWOBasket;
1423
- this.RetailArticleNr = json.RetailArticleNr;
1424
- this.MatchingProductId = json.MatchingProductId;
1425
- this.MatchingProductRetailerArticleNr = json.MatchingProductRetailerArticleNr;
1426
1390
  this.ConverterStatus3D = json.ConverterStatus3D;
1427
1391
  this.ConverterFormat3D = json.ConverterFormat3D;
1428
1392
  this.ProductSetName = json.ProductSetName;
@@ -1450,7 +1414,6 @@ var BasketData = /*#__PURE__*/function () {
1450
1414
  this.ReportConfigIdentifier = json.ReportConfigIdentifier;
1451
1415
  this.ClientLanguage = json.ClientLanguage;
1452
1416
  this.ClientRemark = json.ClientRemark;
1453
- this.ReturnTo = json.ReturnTo;
1454
1417
  this.DocumentVersion = Number(json.DocumentVersion);
1455
1418
  this.UniqueID = json.UniqueID;
1456
1419
  this.Status = json.Status;
@@ -1523,7 +1486,6 @@ var BasketData = /*#__PURE__*/function () {
1523
1486
  //this.PriceInfo = priceInfo;
1524
1487
  this.PrintOptions = json.PrintOptions;
1525
1488
  this.OrderStatus = json.OrderStatus;
1526
- this.OriginBaseUrl = json.OriginBaseUrl;
1527
1489
  }
1528
1490
  return _createClass__default["default"](BasketData, [{
1529
1491
  key: "OrigZKATNr",
@@ -1605,15 +1567,6 @@ var BasketData = /*#__PURE__*/function () {
1605
1567
  return price + addPrice.Price;
1606
1568
  }, 0)) !== null && _this$AdditionalCatal3 !== void 0 ? _this$AdditionalCatal3 : 0);
1607
1569
  }
1608
-
1609
- // calculated from all the Sets
1610
- }, {
1611
- key: "EkPrice",
1612
- get: function get() {
1613
- return this.OrderSets.reduce(function (price, set) {
1614
- return price + set.EkSetPrice;
1615
- }, 0);
1616
- }
1617
1570
  }, {
1618
1571
  key: "AdditionalCatalogPrice",
1619
1572
  get: function get() {
@@ -1719,7 +1672,6 @@ var BasketData = /*#__PURE__*/function () {
1719
1672
  this.UniqueID = date.getTime().toString();
1720
1673
  this.PDFDocumentURL = undefined;
1721
1674
  this.PriceFormat = DivaUtils__default["default"].defaultPriceFormat;
1722
- this.OriginBaseUrl = window.location.origin + window.location.pathname;
1723
1675
  }
1724
1676
  }, {
1725
1677
  key: "clearBasketClientData",
@@ -1978,23 +1930,21 @@ var BasketData = /*#__PURE__*/function () {
1978
1930
  }, {
1979
1931
  key: "getReportConfig",
1980
1932
  value: function getReportConfig() {
1981
- var _this$PrintOptions, _this$PrintOptions2, _this$PrintOptions3, _this$PrintOptions4, _this$PrintOptions5, _this$PrintOptions6, _this$PrintOptions7, _this$PrintOptions8, _this$PrintOptions9, _this$PrintOptions10, _this$PrintOptions11, _this$PrintOptions12, _this$PrintOptions13, _this$PrintOptions14, _this$PrintOptions15;
1933
+ var _this$PrintOptions, _this$PrintOptions2, _this$PrintOptions3, _this$PrintOptions4, _this$PrintOptions5, _this$PrintOptions6, _this$PrintOptions7, _this$PrintOptions8, _this$PrintOptions9, _this$PrintOptions10, _this$PrintOptions11, _this$PrintOptions12, _this$PrintOptions13;
1982
1934
  return {
1983
1935
  printWithGDPR: !!((_this$PrintOptions = this.PrintOptions) !== null && _this$PrintOptions !== void 0 && _this$PrintOptions.Gdpr),
1984
1936
  printWithPlanningSketch: !!((_this$PrintOptions2 = this.PrintOptions) !== null && _this$PrintOptions2 !== void 0 && _this$PrintOptions2.PlanningSketch),
1985
1937
  printWithRemark: !!((_this$PrintOptions3 = this.PrintOptions) !== null && _this$PrintOptions3 !== void 0 && _this$PrintOptions3.Remark),
1986
1938
  printWithPrices: !!((_this$PrintOptions4 = this.PrintOptions) !== null && _this$PrintOptions4 !== void 0 && _this$PrintOptions4.Prices),
1987
- printWithArQrCode: !!((_this$PrintOptions5 = this.PrintOptions) !== null && _this$PrintOptions5 !== void 0 && _this$PrintOptions5.arQrCode),
1988
- printWithAllPrices: !!((_this$PrintOptions6 = this.PrintOptions) !== null && _this$PrintOptions6 !== void 0 && _this$PrintOptions6.AllPrices),
1989
- printWithOpvCodices: !!((_this$PrintOptions7 = this.PrintOptions) !== null && _this$PrintOptions7 !== void 0 && _this$PrintOptions7.OpvCodices),
1990
- printWithModelName: !!((_this$PrintOptions8 = this.PrintOptions) !== null && _this$PrintOptions8 !== void 0 && _this$PrintOptions8.ModelName),
1991
- printWithCollectionLogo: !!((_this$PrintOptions9 = this.PrintOptions) !== null && _this$PrintOptions9 !== void 0 && _this$PrintOptions9.CollectionLogo),
1992
- printWithDivaLogo: !!((_this$PrintOptions10 = this.PrintOptions) !== null && _this$PrintOptions10 !== void 0 && _this$PrintOptions10.DivaLogo),
1993
- printWithSignature: !!((_this$PrintOptions11 = this.PrintOptions) !== null && _this$PrintOptions11 !== void 0 && _this$PrintOptions11.Signature),
1994
- printWithClientpersonData: !!((_this$PrintOptions12 = this.PrintOptions) !== null && _this$PrintOptions12 !== void 0 && _this$PrintOptions12.ClientpersonData),
1995
- printWithSalespersonData: !!((_this$PrintOptions13 = this.PrintOptions) !== null && _this$PrintOptions13 !== void 0 && _this$PrintOptions13.SalespersonData),
1996
- printWithPartlist: !!((_this$PrintOptions14 = this.PrintOptions) !== null && _this$PrintOptions14 !== void 0 && _this$PrintOptions14.Partlist),
1997
- printWithDate: !!((_this$PrintOptions15 = this.PrintOptions) !== null && _this$PrintOptions15 !== void 0 && _this$PrintOptions15.PrintDate)
1939
+ printWithAllPrices: !!((_this$PrintOptions5 = this.PrintOptions) !== null && _this$PrintOptions5 !== void 0 && _this$PrintOptions5.AllPrices),
1940
+ printWithModelName: !!((_this$PrintOptions6 = this.PrintOptions) !== null && _this$PrintOptions6 !== void 0 && _this$PrintOptions6.ModelName),
1941
+ printWithCollectionLogo: !!((_this$PrintOptions7 = this.PrintOptions) !== null && _this$PrintOptions7 !== void 0 && _this$PrintOptions7.CollectionLogo),
1942
+ printWithDivaLogo: !!((_this$PrintOptions8 = this.PrintOptions) !== null && _this$PrintOptions8 !== void 0 && _this$PrintOptions8.DivaLogo),
1943
+ printWithSignature: !!((_this$PrintOptions9 = this.PrintOptions) !== null && _this$PrintOptions9 !== void 0 && _this$PrintOptions9.Signature),
1944
+ printWithClientpersonData: !!((_this$PrintOptions10 = this.PrintOptions) !== null && _this$PrintOptions10 !== void 0 && _this$PrintOptions10.ClientpersonData),
1945
+ printWithSalespersonData: !!((_this$PrintOptions11 = this.PrintOptions) !== null && _this$PrintOptions11 !== void 0 && _this$PrintOptions11.SalespersonData),
1946
+ printWithPartlist: !!((_this$PrintOptions12 = this.PrintOptions) !== null && _this$PrintOptions12 !== void 0 && _this$PrintOptions12.Partlist),
1947
+ printWithDate: !!((_this$PrintOptions13 = this.PrintOptions) !== null && _this$PrintOptions13 !== void 0 && _this$PrintOptions13.PrintDate)
1998
1948
  };
1999
1949
  }
2000
1950
  }, {
@@ -2014,13 +1964,13 @@ var BasketData = /*#__PURE__*/function () {
2014
1964
  }
2015
1965
  }, {
2016
1966
  key: "generateEKTextOfBasket",
2017
- value: function generateEKTextOfBasket(withoutPrices, customDivaNr) {
1967
+ value: function generateEKTextOfBasket(withoutPrices) {
2018
1968
  return _generateEKTextOfBasket(this, withoutPrices);
2019
1969
  }
2020
1970
  }, {
2021
1971
  key: "getEKText",
2022
- value: function getEKText(withoutPrices, customDivaNr) {
2023
- return _generateEKTextOfBasket(this, withoutPrices, customDivaNr).OrderSets[0].SetOrderText;
1972
+ value: function getEKText(withoutPrices) {
1973
+ return _generateEKTextOfBasket(this, withoutPrices).OrderSets[0].SetOrderText;
2024
1974
  }
2025
1975
  }, {
2026
1976
  key: "getProductConfiguration",
@@ -2031,7 +1981,6 @@ var BasketData = /*#__PURE__*/function () {
2031
1981
  DivaNr: this.DivaNr,
2032
1982
  VariantID: variantId,
2033
1983
  OrderSets: this.OrderSets.map(function (set) {
2034
- var _set$Favorites$Varian, _set$Favorites;
2035
1984
  return {
2036
1985
  AccountGUID: set.AccountGUID,
2037
1986
  CatalogCodex: set.CatalogCodex,
@@ -2043,7 +1992,7 @@ var BasketData = /*#__PURE__*/function () {
2043
1992
  SetPlanData: set.SetPlanData,
2044
1993
  SupplierGUID: set.SupplierGUID,
2045
1994
  Favorites: {
2046
- VariantValues: (_set$Favorites$Varian = (_set$Favorites = set.Favorites) === null || _set$Favorites === void 0 ? void 0 : _set$Favorites.VariantValues) !== null && _set$Favorites$Varian !== void 0 ? _set$Favorites$Varian : undefined
1995
+ VariantValues: set.Favorites.VariantValues
2047
1996
  },
2048
1997
  HQRenderScript: set.HQRenderScript,
2049
1998
  Diva3DProject: _this2.Diva3DProject,
@@ -2062,7 +2011,7 @@ var BasketData = /*#__PURE__*/function () {
2062
2011
  NoPrice: ol.NoPrice ? true : undefined,
2063
2012
  RelatedToBasketID: ol.RelatedToBasketID,
2064
2013
  ShelfPlandata: ol.ShelfPlandata,
2065
- ArticleHash: getHash(ol),
2014
+ ArticleHash: ol.getHash(),
2066
2015
  VariantBasketDatas: ol.getTinyVariantConfigurationDatas()
2067
2016
  };
2068
2017
  })
@@ -2108,7 +2057,6 @@ var BasketData = /*#__PURE__*/function () {
2108
2057
  olVariant.OPV = variant.OPV;
2109
2058
  }
2110
2059
  });
2111
- variantOrderline.ArticleHash = getHash(variantOrderline);
2112
2060
  });
2113
2061
  }
2114
2062
  return productConfiguration;
@@ -2253,7 +2201,7 @@ function PriceObjectData(Price, FormatedPrice, CalcPrice, PriceType, Currency, P
2253
2201
  });
2254
2202
 
2255
2203
  var SAPOrderLineData = /*#__PURE__*/function () {
2256
- function SAPOrderLineData(SetID, ArticleNr, ArticleNrPrefix, Name, PosNr, Price, Quantity, UseSAPArticleNumberInEKText, basketIds) {
2204
+ function SAPOrderLineData(SetID, ArticleNr, ArticleNrPrefix, Name, PosNr, Price, Quantity, UseSAPArticleNumberInEKText) {
2257
2205
  _classCallCheck__default["default"](this, SAPOrderLineData);
2258
2206
  _defineProperty__default["default"](this, "SetID", '');
2259
2207
  _defineProperty__default["default"](this, "ArticleNr", void 0);
@@ -2266,7 +2214,6 @@ var SAPOrderLineData = /*#__PURE__*/function () {
2266
2214
  _defineProperty__default["default"](this, "OrderText", void 0);
2267
2215
  _defineProperty__default["default"](this, "Quantity", void 0);
2268
2216
  _defineProperty__default["default"](this, "UseSAPArticleNumberInEKText", void 0);
2269
- _defineProperty__default["default"](this, "basketIds", void 0);
2270
2217
  this.SetID = SetID;
2271
2218
  this.ArticleNr = ArticleNr;
2272
2219
  this.ArticleNrPrefix = ArticleNrPrefix;
@@ -2275,7 +2222,6 @@ var SAPOrderLineData = /*#__PURE__*/function () {
2275
2222
  this.Price = Price;
2276
2223
  this.Quantity = Quantity;
2277
2224
  this.UseSAPArticleNumberInEKText = UseSAPArticleNumberInEKText;
2278
- this.basketIds = basketIds;
2279
2225
  }
2280
2226
  return _createClass__default["default"](SAPOrderLineData, [{
2281
2227
  key: "addQuantity",