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

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.
@@ -67,93 +67,95 @@ var GroupsData = /*#__PURE__*/_createClass(function GroupsData(json) {
67
67
  this.Group = new GroupData(json);
68
68
  });
69
69
 
70
- var VariantItemData = /*#__PURE__*/function () {
71
- function VariantItemData(json) {
72
- _classCallCheck(this, VariantItemData);
73
- _defineProperty(this, "BasketID", void 0);
74
- _defineProperty(this, "OPT", void 0);
75
- // OptionCodex
76
- _defineProperty(this, "OPTName", void 0);
77
- // Name der Option
78
- _defineProperty(this, "OPTName_locales", void 0);
79
- _defineProperty(this, "TabGroup", void 0);
80
- // TabGroup in welches sich die Option befindet
81
- _defineProperty(this, "TabGroup_locales", void 0);
82
- _defineProperty(this, "OPV", void 0);
83
- // OptionValue Codex
84
- _defineProperty(this, "vOPV", void 0);
85
- // Benutzerfreudliche OptionValue Codex (IDM) welcher im Frontend angezeigt werden soll
86
- _defineProperty(this, "OPVName", void 0);
87
- _defineProperty(this, "OPVName_locales", void 0);
88
- _defineProperty(this, "OPVImage", void 0);
89
- _defineProperty(this, "OPVHexVal", void 0);
90
- _defineProperty(this, "SinglePrice", void 0);
91
- // Aufpreis / Basepreis der option
92
- _defineProperty(this, "AddPercentage", void 0);
93
- // Prozentueller Aufpreis der Option
94
- _defineProperty(this, "ShowOPVAsArticleNr", void 0);
95
- _defineProperty(this, "SendToSAP", void 0);
96
- _defineProperty(this, "ArticlePlaceholder", void 0);
97
- _defineProperty(this, "HideInOrderText", void 0);
98
- _defineProperty(this, "Hidden", void 0);
99
- _defineProperty(this, "IsDescribingState", void 0);
100
- // If true it means this option does not change the Product but just the state like if an Ombrella is opened or closed
101
- _defineProperty(this, "FreeText", void 0);
102
- _defineProperty(this, "FreeTextLang", void 0);
103
- _defineProperty(this, "MeasureValue", void 0);
104
- _defineProperty(this, "MeasureUnit", void 0);
105
- _defineProperty(this, "isFreeText", void 0);
106
- _defineProperty(this, "isMeasureValue", void 0);
107
- //public OPTEAN?: string = ""; // BARCode der Artikel / deprected
108
- //public OPVEAN?: string = "";
109
- //public FirstTime?: string = "";
110
- _defineProperty(this, "AddPrice", void 0);
111
- _defineProperty(this, "AddPriceFormatted", void 0);
112
- _defineProperty(this, "PriceUnit", void 0);
113
- _defineProperty(this, "PriceID", void 0);
114
- _defineProperty(this, "OCD", void 0);
115
- _defineProperty(this, "OptionOCD", void 0);
116
- this.BasketID = json.BasketID;
117
- this.OPT = json.OPT;
118
- this.OPV = json.OPV;
119
- this.OPTName = json.OPTName;
120
- this.OPTName_locales = json.OPTName_locales;
121
- this.TabGroup = json.TabGroup;
122
- this.TabGroup_locales = json.TabGroup_locales;
123
- this.vOPV = json.vOPV;
124
- this.OPVName = json.OPVName;
125
- this.OPVName_locales = json.OPVName_locales;
126
- this.OPVImage = json.OPVImage;
127
- this.OPVHexVal = json.OPVHexVal;
128
- this.FreeText = json.FreeText;
129
- this.SinglePrice = json.SinglePrice;
130
- this.AddPercentage = json.AddPercentage;
131
- this.IsDescribingState = json.IsDescribingState;
132
- this.SendToSAP = json.SendToSAP;
133
- this.ArticlePlaceholder = json.ArticlePlaceholder;
134
- this.HideInOrderText = json.HideInOrderText;
135
- this.Hidden = json.Hidden;
136
- this.ShowOPVAsArticleNr = json.ShowOPVAsArticleNr;
137
- this.AddPrice = json.AddPrice;
138
- if (this.AddPrice) this.AddPriceFormatted = json.AddPriceFormatted;
139
- this.PriceUnit = json.PriceUnit;
140
- this.PriceID = json.PriceID;
141
- this.FreeText = json.FreeText;
142
- this.MeasureValue = json.MeasureValue;
143
- this.MeasureUnit = json.MeasureUnit;
144
- this.isFreeText = json.isFreeText;
145
- this.isMeasureValue = json.isMeasureValue;
146
- this.OCD = json.OCD;
147
- this.OptionOCD = json.OptionOCD;
148
- this.FreeTextLang = json.FreeTextLang;
149
- }
150
- return _createClass(VariantItemData, [{
151
- key: "getStringForHash",
152
- value: function getStringForHash() {
153
- return this.OPT + '_' + this.OPV + (this.MeasureValue !== undefined ? '_' + this.MeasureValue : '') + (this.FreeText !== undefined ? '_' + this.FreeText : '');
154
- }
155
- }]);
156
- }();
70
+ var VariantItemData = /*#__PURE__*/_createClass(function VariantItemData(json) {
71
+ _classCallCheck(this, VariantItemData);
72
+ _defineProperty(this, "BasketID", void 0);
73
+ _defineProperty(this, "OPT", void 0);
74
+ // OptionCodex
75
+ _defineProperty(this, "OPTName", void 0);
76
+ // Name der Option
77
+ _defineProperty(this, "MaskOPTName", void 0);
78
+ // overwritten name by mask
79
+ _defineProperty(this, "OPTName_locales", void 0);
80
+ _defineProperty(this, "TabGroup", void 0);
81
+ // TabGroup in welches sich die Option befindet
82
+ _defineProperty(this, "MaskTabGroup", void 0);
83
+ _defineProperty(this, "TabGroup_locales", void 0);
84
+ _defineProperty(this, "OPV", void 0);
85
+ // OptionValue Codex
86
+ _defineProperty(this, "vOPV", void 0);
87
+ // Benutzerfreudliche OptionValue Codex (IDM) welcher im Frontend angezeigt werden soll
88
+ _defineProperty(this, "OPVName", void 0);
89
+ _defineProperty(this, "MaskOPVName", void 0);
90
+ _defineProperty(this, "OPVName_locales", void 0);
91
+ _defineProperty(this, "OPVImage", void 0);
92
+ _defineProperty(this, "OPVHexVal", void 0);
93
+ _defineProperty(this, "SinglePrice", void 0);
94
+ // Aufpreis / Basepreis der option
95
+ _defineProperty(this, "AddPercentage", void 0);
96
+ // Prozentueller Aufpreis der Option
97
+ _defineProperty(this, "ShowOPVAsArticleNr", void 0);
98
+ _defineProperty(this, "SendToSAP", void 0);
99
+ _defineProperty(this, "ArticlePlaceholder", void 0);
100
+ _defineProperty(this, "HideInOrderText", void 0);
101
+ _defineProperty(this, "Hidden", void 0);
102
+ _defineProperty(this, "IsDescribingState", void 0);
103
+ // If true it means this option does not change the Product but just the state like if an Ombrella is opened or closed
104
+ _defineProperty(this, "FreeText", void 0);
105
+ _defineProperty(this, "FreeTextLang", void 0);
106
+ _defineProperty(this, "MeasureValue", void 0);
107
+ _defineProperty(this, "MeasureUnit", void 0);
108
+ _defineProperty(this, "isFreeText", void 0);
109
+ _defineProperty(this, "isMeasureValue", void 0);
110
+ //public OPTEAN?: string = ""; // BARCode der Artikel / deprected
111
+ //public OPVEAN?: string = "";
112
+ //public FirstTime?: string = "";
113
+ _defineProperty(this, "AddPrice", void 0);
114
+ _defineProperty(this, "AddPriceFormatted", void 0);
115
+ _defineProperty(this, "PriceUnit", void 0);
116
+ _defineProperty(this, "PriceID", void 0);
117
+ _defineProperty(this, "OCD", void 0);
118
+ _defineProperty(this, "OptionOCD", void 0);
119
+ this.BasketID = json.BasketID;
120
+ this.OPT = json.OPT;
121
+ this.OPV = json.OPV;
122
+ this.OPTName = json.OPTName;
123
+ this.MaskOPTName = json.MaskOPTName;
124
+ this.OPTName_locales = json.OPTName_locales;
125
+ this.TabGroup = json.TabGroup;
126
+ this.MaskTabGroup = json.MaskTabGroup;
127
+ this.TabGroup_locales = json.TabGroup_locales;
128
+ this.vOPV = json.vOPV;
129
+ this.OPVName = json.OPVName;
130
+ this.MaskOPVName = json.MaskOPVName;
131
+ this.OPVName_locales = json.OPVName_locales;
132
+ this.OPVImage = json.OPVImage;
133
+ this.OPVHexVal = json.OPVHexVal;
134
+ this.FreeText = json.FreeText;
135
+ this.SinglePrice = json.SinglePrice;
136
+ this.AddPercentage = json.AddPercentage;
137
+ this.IsDescribingState = json.IsDescribingState;
138
+ this.SendToSAP = json.SendToSAP;
139
+ this.ArticlePlaceholder = json.ArticlePlaceholder;
140
+ this.HideInOrderText = json.HideInOrderText;
141
+ this.Hidden = json.Hidden;
142
+ this.ShowOPVAsArticleNr = json.ShowOPVAsArticleNr;
143
+ this.AddPrice = json.AddPrice;
144
+ if (this.AddPrice) this.AddPriceFormatted = json.AddPriceFormatted;
145
+ this.PriceUnit = json.PriceUnit;
146
+ this.PriceID = json.PriceID;
147
+ this.FreeText = json.FreeText;
148
+ this.MeasureValue = json.MeasureValue;
149
+ this.MeasureUnit = json.MeasureUnit;
150
+ this.isFreeText = json.isFreeText;
151
+ this.isMeasureValue = json.isMeasureValue;
152
+ this.OCD = json.OCD;
153
+ this.OptionOCD = json.OptionOCD;
154
+ this.FreeTextLang = json.FreeTextLang;
155
+ });
156
+ var getStringForHash = function getStringForHash(vd) {
157
+ return vd.OPT + '_' + vd.OPV + (vd.MeasureValue !== undefined ? '_' + vd.MeasureValue : '') + (vd.FreeText !== undefined ? '_' + vd.FreeText : '');
158
+ };
157
159
 
158
160
  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; }
159
161
  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(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; }
@@ -191,6 +193,7 @@ var OrderLineData = /*#__PURE__*/function () {
191
193
  // bei Flache Artikel wird dies manchmal verwendet
192
194
  _defineProperty(this, "ArticleGUID", void 0);
193
195
  _defineProperty(this, "Name", void 0);
196
+ _defineProperty(this, "MaskName", void 0);
194
197
  _defineProperty(this, "Name_locales", void 0);
195
198
  _defineProperty(this, "MetaData_locales", void 0);
196
199
  _defineProperty(this, "Size", void 0);
@@ -214,6 +217,7 @@ var OrderLineData = /*#__PURE__*/function () {
214
217
  // Liste der Tabgroups
215
218
  _defineProperty(this, "SendToSAP", void 0);
216
219
  _defineProperty(this, "ArticlePlaceholder", void 0);
220
+ _defineProperty(this, "CustomDimensions", void 0);
217
221
  //wird bei Pfister verwendet um später wieder zu erkennen ob man zufällig wieder die selbe SAP Art Nummer (Basiskonfigurat) geplant hat
218
222
  //ist ein eindeutiger Schlüssel zweier gleichen Planung unabhängig der Accounts
219
223
  _defineProperty(this, "ArticleVariantID", void 0);
@@ -278,6 +282,7 @@ var OrderLineData = /*#__PURE__*/function () {
278
282
  this.ArticleEAN = json.ArticleEAN;
279
283
  this.ArticleGUID = json.ArticleGUID;
280
284
  this.Name = json.Name;
285
+ this.MaskName = json.MaskName;
281
286
  this.Size = json.Size;
282
287
  this.Width = json.Width;
283
288
  this.Depth = json.Depth;
@@ -288,6 +293,7 @@ var OrderLineData = /*#__PURE__*/function () {
288
293
  this.MetaData_locales = json.MetaData_locales;
289
294
  this.Name_locales = json.Name_locales;
290
295
  this.VariantDesc_locales = json.VariantDesc_locales;
296
+ this.CustomDimensions = json.CustomDimensions;
291
297
  this.RuleDesc_locales = json.RuleDesc_locales;
292
298
  this.Quantity = json.Quantity;
293
299
  var vkPrice = json.VKPrice || json.VkPrice;
@@ -402,7 +408,11 @@ var OrderLineData = /*#__PURE__*/function () {
402
408
  if (!this.VariantBasketDatas) this.VariantBasketDatas = [];
403
409
  for (var i = 0; i < this.VariantBasketDatas.length; i++) {
404
410
  var v = this.VariantBasketDatas[i];
405
- ret['OPT' + v.OPT] = 'OPV' + v.OPV;
411
+ if (!v.OPT.endsWith('_val')) {
412
+ ret['OPT' + v.OPT] = 'OPV' + v.OPV;
413
+ } else {
414
+ ret['OPT' + v.OPT] = v.OPV;
415
+ }
406
416
  if (v.MeasureValue || v.FreeText) {
407
417
  var _ref;
408
418
  ret['OPT' + v.OPT + '_val'] = (_ref = v.MeasureValue || v.FreeText) === null || _ref === void 0 ? void 0 : _ref.toString();
@@ -422,10 +432,10 @@ var OrderLineData = /*#__PURE__*/function () {
422
432
  return false;
423
433
  }
424
434
 
425
- /**
426
- *
427
- * @param t i18n translation instance
428
- * @returns general Article description
435
+ /**
436
+ *
437
+ * @param t i18n translation instance
438
+ * @returns general Article description
429
439
  */
430
440
  }, {
431
441
  key: "getArticleInfoText",
@@ -473,40 +483,34 @@ var OrderLineData = /*#__PURE__*/function () {
473
483
  !config.hideTotalPrices && this.CalcPrice ? t('basket.priceOverview.table.sum') + ': ' + DivaUtils.formatPrice(this.CalcPrice, priceFormat) + ' \n' : '')
474
484
  );
475
485
  }
476
- }, {
477
- key: "getHash",
478
- value: function getHash() {
479
- var _this$VariantBasketDa2, _this$VariantBasketDa3;
480
- return 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) {
481
- return !v.IsDescribingState;
482
- })) === null || _this$VariantBasketDa3 === void 0 ? void 0 : _this$VariantBasketDa3.map(function (v) {
483
- return v.getStringForHash();
484
- })) !== null && _this$VariantBasketDa2 !== void 0 ? _this$VariantBasketDa2 : []).join());
485
- }
486
486
  }, {
487
487
  key: "getTinyVariantConfigurationDatas",
488
488
  value: function getTinyVariantConfigurationDatas() {
489
- var _this$VariantBasketDa4, _this$VariantBasketDa5, _this$VariantBasketDa6, _this$VariantBasketDa7;
490
- return [].concat(_toConsumableArray((_this$VariantBasketDa4 = (_this$VariantBasketDa5 = this.VariantBasketDatas) === null || _this$VariantBasketDa5 === void 0 ? void 0 : _this$VariantBasketDa5.map(function (v) {
489
+ var _this$VariantBasketDa2, _this$VariantBasketDa3, _this$VariantBasketDa4, _this$VariantBasketDa5;
490
+ return [].concat(_toConsumableArray((_this$VariantBasketDa2 = (_this$VariantBasketDa3 = this.VariantBasketDatas) === null || _this$VariantBasketDa3 === void 0 ? void 0 : _this$VariantBasketDa3.map(function (v) {
491
491
  return {
492
492
  OPT: v.OPT,
493
493
  OPV: v.OPV,
494
+ OPTName: v.OPTName,
495
+ OPVName: v.OPVName,
494
496
  OCD: v.OCD,
495
497
  OptionOCD: v.OptionOCD,
496
498
  IsDescribingState: v.IsDescribingState
497
499
  };
498
- })) !== null && _this$VariantBasketDa4 !== void 0 ? _this$VariantBasketDa4 : []), _toConsumableArray((_this$VariantBasketDa6 = (_this$VariantBasketDa7 = this.VariantBasketDatas) === null || _this$VariantBasketDa7 === void 0 || (_this$VariantBasketDa7 = _this$VariantBasketDa7.filter(function (v) {
500
+ })) !== null && _this$VariantBasketDa2 !== void 0 ? _this$VariantBasketDa2 : []), _toConsumableArray((_this$VariantBasketDa4 = (_this$VariantBasketDa5 = this.VariantBasketDatas) === null || _this$VariantBasketDa5 === void 0 || (_this$VariantBasketDa5 = _this$VariantBasketDa5.filter(function (v) {
499
501
  return v.MeasureValue || v.FreeText;
500
- })) === null || _this$VariantBasketDa7 === void 0 ? void 0 : _this$VariantBasketDa7.map(function (v) {
502
+ })) === null || _this$VariantBasketDa5 === void 0 ? void 0 : _this$VariantBasketDa5.map(function (v) {
501
503
  var _ref2;
502
504
  return {
503
505
  OPT: v.OPT + '_val',
504
506
  OPV: (_ref2 = v.MeasureValue || v.FreeText) === null || _ref2 === void 0 ? void 0 : _ref2.toString(),
507
+ OPTName: v.OPTName,
508
+ OPVName: v.OPVName,
505
509
  OCD: v.OCD,
506
510
  OptionOCD: v.OptionOCD,
507
511
  IsDescribingState: v.IsDescribingState
508
512
  };
509
- })) !== null && _this$VariantBasketDa6 !== void 0 ? _this$VariantBasketDa6 : []));
513
+ })) !== null && _this$VariantBasketDa4 !== void 0 ? _this$VariantBasketDa4 : []));
510
514
  }
511
515
  }, {
512
516
  key: "getAsJson",
@@ -521,6 +525,14 @@ var OrderLineData = /*#__PURE__*/function () {
521
525
  }
522
526
  }]);
523
527
  }();
528
+ var getHash = function getHash(ol) {
529
+ var _ol$VariantBasketData, _ol$VariantBasketData2;
530
+ return 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) {
531
+ return !v.IsDescribingState;
532
+ })) === null || _ol$VariantBasketData2 === void 0 ? void 0 : _ol$VariantBasketData2.map(function (v) {
533
+ return getStringForHash(v);
534
+ })) !== null && _ol$VariantBasketData !== void 0 ? _ol$VariantBasketData : []).join());
535
+ };
524
536
 
525
537
  var OrderSetData = /*#__PURE__*/function () {
526
538
  function OrderSetData(json, ZKATNr, SetArticleNr, SetArticleNrPrefix, priceFormat) {
@@ -547,6 +559,7 @@ var OrderSetData = /*#__PURE__*/function () {
547
559
  //= new SetImageData();
548
560
  _defineProperty(this, "Set2DImage", void 0);
549
561
  // 2D bild der Planung
562
+ _defineProperty(this, "SerieId", void 0);
550
563
  _defineProperty(this, "SetPrice", void 0);
551
564
  _defineProperty(this, "SetPriceFormatted", void 0);
552
565
  _defineProperty(this, "BruttoSetPrice", void 0);
@@ -592,6 +605,8 @@ var OrderSetData = /*#__PURE__*/function () {
592
605
  // Letzte Versionierung -> kann überprüft werden ob in zwischenzeit das Modell versioniert wurde (neue Version gibt) / wird beim Speichern Clientseitig nicht gefüllt
593
606
  _defineProperty(this, "CatalogValidTo", void 0);
594
607
  // VerfallsDatum / wird beim Speichern Clientseitig nicht gefüllt
608
+ _defineProperty(this, "RetailCatalogNr", void 0);
609
+ // Programm Nr im CM
595
610
  _defineProperty(this, "ModelCodex", void 0);
596
611
  // Modellvorauswahl ModellCodex
597
612
  _defineProperty(this, "ModelCatalogCodex", void 0);
@@ -630,18 +645,22 @@ var OrderSetData = /*#__PURE__*/function () {
630
645
  _defineProperty(this, "MetaData", void 0);
631
646
  _defineProperty(this, "MetaData_locales", void 0);
632
647
  _defineProperty(this, "AdditionalCatalogPrice", void 0);
648
+ _defineProperty(this, "FavoriteAiRoomKeys", void 0);
649
+ // New field for multiple favorites
633
650
  //war vohrer auskommentiert, Grund weiß ich nicht mehr. Kann ev. zu Problemen führen
634
651
  //inzukunft sollen diese Inhalte über ein Webservice gezogen werden und per Hash abrufbar sein
635
652
  _defineProperty(this, "SetPlanData", void 0);
636
653
  // 2D Planung
637
654
  _defineProperty(this, "SummaryInfo", []);
638
655
  _defineProperty(this, "BBox", void 0);
656
+ _defineProperty(this, "IsIDMFormat", void 0);
639
657
  this.SetID = json.SetID;
640
658
  this.SetName = json.SetName;
641
659
  this.SetName_locales = json.SetName_locales;
642
660
  this.ProductSetName = json.ProductSetName;
643
661
  this.SetImage = json.SetImage;
644
662
  this.HQRenderScript = json.HQRenderScript;
663
+ this.IsIDMFormat = json.IsIDMFormat;
645
664
  this.SetImages = json.SetImages; //: SetImageData[] = []; //= new SetImageData();
646
665
  this.SetPrice = json.SetPrice;
647
666
  this.SetPriceFormatted = DivaUtils.formatPrice(this.SetPrice, priceFormat);
@@ -678,6 +697,7 @@ var OrderSetData = /*#__PURE__*/function () {
678
697
  this.CatalogOfflineVersion = json.CatalogOfflineVersion;
679
698
  this.CatalogOfflineFilesLastUpdate = json.CatalogOfflineFilesLastUpdate;
680
699
  this.CatalogGUID = json.CatalogGUID;
700
+ this.RetailCatalogNr = json.RetailCatalogNr;
681
701
  this.EkSetPrice = json.EkSetPrice;
682
702
  this.EkCurrency = json.EkCurrency;
683
703
  this.BruttoSetPrice = json.BruttoSetPrice;
@@ -699,6 +719,7 @@ var OrderSetData = /*#__PURE__*/function () {
699
719
  this.SupplierGUID = json.SupplierGUID;
700
720
  this.SupplierILN = json.SupplierILN;
701
721
  this.SupplierCatalogName = json.SupplierCatalogName;
722
+ this.SerieId = json.SerieId;
702
723
  this.SetPlanData = json.SetPlanData;
703
724
  this.PlannerWarnings = json.PlannerWarnings;
704
725
  this.Weight = json.Weight;
@@ -706,6 +727,7 @@ var OrderSetData = /*#__PURE__*/function () {
706
727
  this.Volume = json.Volume;
707
728
  this.VolumeUnit = json.VolumeUnit;
708
729
  this.AdditionalCatalogPrice = json.AdditionalCatalogPrice;
730
+ this.FavoriteAiRoomKeys = json.FavoriteAiRoomKeys;
709
731
  if (json.OrderLines) {
710
732
  for (var i = 0; i < json.OrderLines.length; i++) {
711
733
  this.OrderLines[i] = new OrderLineData(json.OrderLines[i], priceFormat);
@@ -754,8 +776,8 @@ var OrderSetData = /*#__PURE__*/function () {
754
776
  this.SetPlanData = DivaUtils.encodeBase64(setPlanData);
755
777
  }
756
778
 
757
- /**
758
- * get the docking point infos of all orderlines of the set
779
+ /**
780
+ * get the docking point infos of all orderlines of the set
759
781
  */
760
782
  }, {
761
783
  key: "getDockingPointInfo",
@@ -798,10 +820,14 @@ var mCaption = 'M';
798
820
  var artikelCaption = 'Artikel';
799
821
  var preisCaption = 'Preis';
800
822
  var newLine = '\r\n';
801
- var _generateEKTextOfBasket = (function (basket, withoutPrices) {
823
+ var _generateEKTextOfBasket = (function (basket, withoutPrices, customDivaNr) {
802
824
  var _basket$OrderSets;
803
825
  var ekTextHead = '';
804
- ekTextHead = writeText(ekTextHead, basket.DivaNr + '-' + basket.DocumentVersion);
826
+ var divaNrtext = basket.DocumentVersion > 0 ? "".concat(basket.DivaNr, "-").concat(basket.DocumentVersion) : basket.DivaNr;
827
+ if (customDivaNr) {
828
+ divaNrtext = customDivaNr;
829
+ }
830
+ ekTextHead = writeText(ekTextHead, divaNrtext);
805
831
  var sbSetOrderText = ekTextHead;
806
832
  var preisLength = 9;
807
833
  if (withoutPrices) {
@@ -815,13 +841,13 @@ var _generateEKTextOfBasket = (function (basket, withoutPrices) {
815
841
  return sol.OrderText = '';
816
842
  });
817
843
  var _loop = function _loop() {
818
- var _os$BBox, _basket$getSAPOrderLi;
844
+ var _os$BBox, _os$CatalogName, _basket$getSAPOrderLi;
819
845
  var setText = '';
820
846
  var os = basket.OrderSets[i];
821
847
  if ((_os$BBox = os.BBox) !== null && _os$BBox !== void 0 && _os$BBox.Info) {
822
848
  setText = writeText(setText, os.BBox.Info);
823
849
  }
824
- setText = writeText(setText, 'Modell: ' + os.CatalogName);
850
+ setText = writeText(setText, 'Modell: ' + DivaUtils.stripTags((_os$CatalogName = os.CatalogName) !== null && _os$CatalogName !== void 0 ? _os$CatalogName : ''));
825
851
  ols = os.OrderLines;
826
852
  if (!ols || ols.length == 0) return 1; // continue
827
853
 
@@ -897,9 +923,9 @@ var addingSapOrderLinesToEkText = function addingSapOrderLinesToEkText(saporderL
897
923
  //https://app.asana.com/0/686949732692179/692909200657046
898
924
  var setText = '';
899
925
  var _loop3 = function _loop3() {
900
- var _sapOrderline$UseSAPA, _orderLine$ConfigArti;
926
+ var _sapOrderline$Name, _sapOrderline$UseSAPA, _orderLine$ConfigArti;
901
927
  var sapOrderline = saporderLines[i];
902
- var lines = getLines(artikelLength, artikelLength2Row, sapOrderline.Name);
928
+ var lines = getLines(artikelLength, artikelLength2Row, DivaUtils.stripTags((_sapOrderline$Name = sapOrderline.Name) !== null && _sapOrderline$Name !== void 0 ? _sapOrderline$Name : ''));
903
929
  var orderLine = ols.find(function (ol) {
904
930
  return ol.RetailArticleNr === sapOrderline.ArticleNr;
905
931
  });
@@ -932,15 +958,17 @@ var processPartListOrderLines = function processPartListOrderLines(basket, ols,
932
958
  return sol.ArticleNrPrefix === 'ZKAT' && orderLine.RetailArticleNr == sol.ArticleNr;
933
959
  })) && orderLine.IsPartlistArticle;
934
960
  }).reduce(function (group, ol) {
935
- var _group$category;
936
- var category = ol.Name + '|' + ol.TypeNr + '|' + ol.SetID + '|' + ol.ArticleCodex;
961
+ var _ol$Name, _ol$VariantBasketData, _group$category;
962
+ var category = DivaUtils.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) {
963
+ return v.OPT + v.OPV;
964
+ }).join(';'));
937
965
  group[category] = (_group$category = group[category]) !== null && _group$category !== void 0 ? _group$category : [];
938
966
  group[category].push(ol);
939
967
  return group;
940
968
  }, {});
941
969
  var retval = '';
942
970
  var _loop4 = function _loop4() {
943
- var _basket$getSAPOrderLi3, _basket$getSAPOrderLi4, _basket$getSAPOrderLi5, _orderLine$ConfigArti2;
971
+ var _basket$getSAPOrderLi3, _basket$getSAPOrderLi4, _basket$getSAPOrderLi5, _orderLine$Name, _orderLine$ConfigArti2;
944
972
  var groupedOl = groupedOls[key];
945
973
  var orderLine = groupedOl[0];
946
974
  var sol = (_basket$getSAPOrderLi3 = (_basket$getSAPOrderLi4 = basket.getSAPOrderLines()) === null || _basket$getSAPOrderLi4 === void 0 ? void 0 : _basket$getSAPOrderLi4.find(function (sol) {
@@ -953,7 +981,7 @@ var processPartListOrderLines = function processPartListOrderLines(basket, ols,
953
981
  }, 0).toString();
954
982
  setOrderText += appendToTheRight(mLength, quantity);
955
983
  }
956
- var lines = getLines(artikelLength, newArtikelLength2Row, orderLine.Name);
984
+ var lines = getLines(artikelLength, newArtikelLength2Row, DivaUtils.stripTags((_orderLine$Name = orderLine.Name) !== null && _orderLine$Name !== void 0 ? _orderLine$Name : ''));
957
985
  var articleNumber = (_orderLine$ConfigArti2 = orderLine.ConfigArticleCodex) !== null && _orderLine$ConfigArti2 !== void 0 ? _orderLine$ConfigArti2 : orderLine.ArticleCodex;
958
986
 
959
987
  //Anforderung von Polypol auch die Typennummer anzugeben
@@ -1006,8 +1034,8 @@ var processNonPartlistOrderlines = function processNonPartlistOrderlines(basket,
1006
1034
  return sol.ArticleNrPrefix === 'ZKAT' && orderLine.RetailArticleNr === sol.ArticleNr;
1007
1035
  });
1008
1036
  if (sol) {
1009
- var _orderLine$ConfigArti3, _orderLine$VariantBas, _orderLine$VariantBas2, _orderLine$ConfigPric;
1010
- var lines = getLines(artikelLength, artikelLength2Row, orderLine.Name);
1037
+ var _orderLine$Name2, _orderLine$ConfigArti3, _orderLine$VariantBas, _orderLine$VariantBas2, _orderLine$ConfigPric;
1038
+ var lines = getLines(artikelLength, artikelLength2Row, DivaUtils.stripTags((_orderLine$Name2 = orderLine.Name) !== null && _orderLine$Name2 !== void 0 ? _orderLine$Name2 : ''));
1011
1039
  var articleNumber = (_orderLine$ConfigArti3 = orderLine.ConfigArticleCodex) !== null && _orderLine$ConfigArti3 !== void 0 ? _orderLine$ConfigArti3 : orderLine.ArticleCodex;
1012
1040
 
1013
1041
  //Anforderung von Polypol auch die Typennummer anzugeben
@@ -1040,11 +1068,11 @@ var processNonPartlistOrderlines = function processNonPartlistOrderlines(basket,
1040
1068
  }
1041
1069
 
1042
1070
  /* Activate when base prices and additional prices should be displayed. */
1043
- /*if (orderLine.ConfigPriceDatas?.BasePrice && !withoutPrices) {
1044
- sapOrderLineText += appendToTheRight(mLength + 1, ' ');
1045
- sapOrderLineText += appendToTheRight(artikelLength, 'Basispreis');
1046
- sapOrderLineText += appendToTheLeft(preisLength - 6, formatPrice(orderLine.ConfigPriceDatas?.BasePrice.toString() ?? '0'));
1047
- sapOrderLineText += newLine + newLine;
1071
+ /*if (orderLine.ConfigPriceDatas?.BasePrice && !withoutPrices) {
1072
+ sapOrderLineText += appendToTheRight(mLength + 1, ' ');
1073
+ sapOrderLineText += appendToTheRight(artikelLength, 'Basispreis');
1074
+ sapOrderLineText += appendToTheLeft(preisLength - 6, formatPrice(orderLine.ConfigPriceDatas?.BasePrice.toString() ?? '0'));
1075
+ sapOrderLineText += newLine + newLine;
1048
1076
  }*/
1049
1077
  /* -------------------------------------------------------------------- */
1050
1078
 
@@ -1167,16 +1195,16 @@ var getLines = function getLines(maxLengthColumn1Row, maxLengthColumn2Row, value
1167
1195
  lines.push(line);
1168
1196
  return lines;
1169
1197
  };
1170
- var addVariants = function addVariants(articleLength, orderLine, articleLength2Row, startPositionArticle2Row, preisLength) {
1171
- var _orderLine$ConfigPric2, _orderLine$VariantBas3, _orderLine$VariantBas4;
1172
- (_orderLine$ConfigPric2 = orderLine.ConfigPriceDatas) === null || _orderLine$ConfigPric2 === void 0 ? void 0 : _orderLine$ConfigPric2.AdditionalPrices;
1198
+ var addVariants = function addVariants(articleLength, orderLine, articleLength2Row, startPositionArticle2Row) {
1199
+ var _orderLine$VariantBas3, _orderLine$VariantBas4;
1173
1200
  var variantDatas = (_orderLine$VariantBas3 = (_orderLine$VariantBas4 = orderLine.VariantBasketDatas) === null || _orderLine$VariantBas4 === void 0 ? void 0 : _orderLine$VariantBas4.filter(function (vd) {
1174
1201
  return !vd.Hidden && (!vd.SendToSAP || !vd.ArticlePlaceholder) && vd.BasketID == orderLine.BasketID;
1175
1202
  })) !== null && _orderLine$VariantBas3 !== void 0 ? _orderLine$VariantBas3 : [];
1176
1203
  var variantDataText = '';
1177
1204
  for (var i = 0; i < variantDatas.length; i++) {
1205
+ var _vb$OPTName, _vb$OPVName;
1178
1206
  var vb = variantDatas[i];
1179
- var remark = vb.OPTName + ': ' + vb.OPVName;
1207
+ var remark = DivaUtils.stripTags((_vb$OPTName = vb.OPTName) !== null && _vb$OPTName !== void 0 ? _vb$OPTName : '') + ': ' + DivaUtils.stripTags((_vb$OPVName = vb.OPVName) !== null && _vb$OPVName !== void 0 ? _vb$OPVName : '');
1180
1208
  if (vb.vOPV) remark += ' (' + vb.vOPV + ')';
1181
1209
 
1182
1210
  /* Activate when base prices and additional prices should be displayed. */
@@ -1192,12 +1220,12 @@ var addVariants = function addVariants(articleLength, orderLine, articleLength2R
1192
1220
  variantDataText += writeOtherLines(vbLines, startPositionArticle2Row /*additionalPrice ? true : false*/);
1193
1221
 
1194
1222
  /* Activate when base prices and additional prices should be displayed. */
1195
- /*if (additionalPrice && false) {
1196
- variantDataText += appendToTheLeft(
1197
- preisLength + (artikelLength - vbLines[vbLines.length - 1].length) - 5,
1198
- formatPrice(additionalPrice?.Price.toString() ?? '0'),
1199
- );
1200
- variantDataText += newLine;
1223
+ /*if (additionalPrice && false) {
1224
+ variantDataText += appendToTheLeft(
1225
+ preisLength + (artikelLength - vbLines[vbLines.length - 1].length) - 5,
1226
+ formatPrice(additionalPrice?.Price.toString() ?? '0'),
1227
+ );
1228
+ variantDataText += newLine;
1201
1229
  }*/
1202
1230
  }
1203
1231
  return variantDataText;
@@ -1239,6 +1267,9 @@ var BasketData = /*#__PURE__*/function () {
1239
1267
  _defineProperty(this, "Servername", void 0);
1240
1268
  _defineProperty(this, "CreationDate", void 0);
1241
1269
  _defineProperty(this, "SendIWOBasket", false);
1270
+ _defineProperty(this, "MatchingProductId", void 0);
1271
+ _defineProperty(this, "MatchingProductRetailerArticleNr", void 0);
1272
+ _defineProperty(this, "RetailArticleNr", void 0);
1242
1273
  _defineProperty(this, "ProductSetName", void 0);
1243
1274
  _defineProperty(this, "ReportConfigIdentifier", void 0);
1244
1275
  _defineProperty(this, "OrganizationId", void 0);
@@ -1320,6 +1351,7 @@ var BasketData = /*#__PURE__*/function () {
1320
1351
  _defineProperty(this, "_discounts", []);
1321
1352
  _defineProperty(this, "AdditionalPrices", []);
1322
1353
  _defineProperty(this, "OrderStatus", void 0);
1354
+ _defineProperty(this, "OriginBaseUrl", void 0);
1323
1355
  //Readonly finished
1324
1356
  _defineProperty(this, "UseFavoritesAsVariants", false);
1325
1357
  // Wird benötigt beim Laden einer Mutter DivaNr mit Varianten
@@ -1330,6 +1362,7 @@ var BasketData = /*#__PURE__*/function () {
1330
1362
  // Enthält URL zum gerenderten Bild.
1331
1363
  _defineProperty(this, "PDFDocumentURL", void 0);
1332
1364
  // Link zu PDF für IWOFurn. Wird ServerSeitig beim BasketToIwoFurnConverter gesetzt
1365
+ _defineProperty(this, "ReturnTo", void 0);
1333
1366
  _defineProperty(this, "pdfs", void 0);
1334
1367
  _defineProperty(this, "PDFContent", void 0);
1335
1368
  // HTML für das Serverseitige PDF erstellen
@@ -1375,6 +1408,9 @@ var BasketData = /*#__PURE__*/function () {
1375
1408
  this.ApplicationEnvironment = json.ApplicationEnvironment;
1376
1409
  this.catalogStatus = json.catalogStatus;
1377
1410
  this.SendIWOBasket = json.SendIWOBasket;
1411
+ this.RetailArticleNr = json.RetailArticleNr;
1412
+ this.MatchingProductId = json.MatchingProductId;
1413
+ this.MatchingProductRetailerArticleNr = json.MatchingProductRetailerArticleNr;
1378
1414
  this.ConverterStatus3D = json.ConverterStatus3D;
1379
1415
  this.ConverterFormat3D = json.ConverterFormat3D;
1380
1416
  this.ProductSetName = json.ProductSetName;
@@ -1402,6 +1438,7 @@ var BasketData = /*#__PURE__*/function () {
1402
1438
  this.ReportConfigIdentifier = json.ReportConfigIdentifier;
1403
1439
  this.ClientLanguage = json.ClientLanguage;
1404
1440
  this.ClientRemark = json.ClientRemark;
1441
+ this.ReturnTo = json.ReturnTo;
1405
1442
  this.DocumentVersion = Number(json.DocumentVersion);
1406
1443
  this.UniqueID = json.UniqueID;
1407
1444
  this.Status = json.Status;
@@ -1474,6 +1511,7 @@ var BasketData = /*#__PURE__*/function () {
1474
1511
  //this.PriceInfo = priceInfo;
1475
1512
  this.PrintOptions = json.PrintOptions;
1476
1513
  this.OrderStatus = json.OrderStatus;
1514
+ this.OriginBaseUrl = json.OriginBaseUrl;
1477
1515
  }
1478
1516
  return _createClass(BasketData, [{
1479
1517
  key: "OrigZKATNr",
@@ -1555,6 +1593,15 @@ var BasketData = /*#__PURE__*/function () {
1555
1593
  return price + addPrice.Price;
1556
1594
  }, 0)) !== null && _this$AdditionalCatal3 !== void 0 ? _this$AdditionalCatal3 : 0);
1557
1595
  }
1596
+
1597
+ // calculated from all the Sets
1598
+ }, {
1599
+ key: "EkPrice",
1600
+ get: function get() {
1601
+ return this.OrderSets.reduce(function (price, set) {
1602
+ return price + set.EkSetPrice;
1603
+ }, 0);
1604
+ }
1558
1605
  }, {
1559
1606
  key: "AdditionalCatalogPrice",
1560
1607
  get: function get() {
@@ -1660,6 +1707,7 @@ var BasketData = /*#__PURE__*/function () {
1660
1707
  this.UniqueID = date.getTime().toString();
1661
1708
  this.PDFDocumentURL = undefined;
1662
1709
  this.PriceFormat = DivaUtils.defaultPriceFormat;
1710
+ this.OriginBaseUrl = window.location.origin + window.location.pathname;
1663
1711
  }
1664
1712
  }, {
1665
1713
  key: "clearBasketClientData",
@@ -1918,21 +1966,23 @@ var BasketData = /*#__PURE__*/function () {
1918
1966
  }, {
1919
1967
  key: "getReportConfig",
1920
1968
  value: function getReportConfig() {
1921
- 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;
1969
+ 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;
1922
1970
  return {
1923
1971
  printWithGDPR: !!((_this$PrintOptions = this.PrintOptions) !== null && _this$PrintOptions !== void 0 && _this$PrintOptions.Gdpr),
1924
1972
  printWithPlanningSketch: !!((_this$PrintOptions2 = this.PrintOptions) !== null && _this$PrintOptions2 !== void 0 && _this$PrintOptions2.PlanningSketch),
1925
1973
  printWithRemark: !!((_this$PrintOptions3 = this.PrintOptions) !== null && _this$PrintOptions3 !== void 0 && _this$PrintOptions3.Remark),
1926
1974
  printWithPrices: !!((_this$PrintOptions4 = this.PrintOptions) !== null && _this$PrintOptions4 !== void 0 && _this$PrintOptions4.Prices),
1927
- printWithAllPrices: !!((_this$PrintOptions5 = this.PrintOptions) !== null && _this$PrintOptions5 !== void 0 && _this$PrintOptions5.AllPrices),
1928
- printWithModelName: !!((_this$PrintOptions6 = this.PrintOptions) !== null && _this$PrintOptions6 !== void 0 && _this$PrintOptions6.ModelName),
1929
- printWithCollectionLogo: !!((_this$PrintOptions7 = this.PrintOptions) !== null && _this$PrintOptions7 !== void 0 && _this$PrintOptions7.CollectionLogo),
1930
- printWithDivaLogo: !!((_this$PrintOptions8 = this.PrintOptions) !== null && _this$PrintOptions8 !== void 0 && _this$PrintOptions8.DivaLogo),
1931
- printWithSignature: !!((_this$PrintOptions9 = this.PrintOptions) !== null && _this$PrintOptions9 !== void 0 && _this$PrintOptions9.Signature),
1932
- printWithClientpersonData: !!((_this$PrintOptions10 = this.PrintOptions) !== null && _this$PrintOptions10 !== void 0 && _this$PrintOptions10.ClientpersonData),
1933
- printWithSalespersonData: !!((_this$PrintOptions11 = this.PrintOptions) !== null && _this$PrintOptions11 !== void 0 && _this$PrintOptions11.SalespersonData),
1934
- printWithPartlist: !!((_this$PrintOptions12 = this.PrintOptions) !== null && _this$PrintOptions12 !== void 0 && _this$PrintOptions12.Partlist),
1935
- printWithDate: !!((_this$PrintOptions13 = this.PrintOptions) !== null && _this$PrintOptions13 !== void 0 && _this$PrintOptions13.PrintDate)
1975
+ printWithArQrCode: !!((_this$PrintOptions5 = this.PrintOptions) !== null && _this$PrintOptions5 !== void 0 && _this$PrintOptions5.arQrCode),
1976
+ printWithAllPrices: !!((_this$PrintOptions6 = this.PrintOptions) !== null && _this$PrintOptions6 !== void 0 && _this$PrintOptions6.AllPrices),
1977
+ printWithOpvCodices: !!((_this$PrintOptions7 = this.PrintOptions) !== null && _this$PrintOptions7 !== void 0 && _this$PrintOptions7.OpvCodices),
1978
+ printWithModelName: !!((_this$PrintOptions8 = this.PrintOptions) !== null && _this$PrintOptions8 !== void 0 && _this$PrintOptions8.ModelName),
1979
+ printWithCollectionLogo: !!((_this$PrintOptions9 = this.PrintOptions) !== null && _this$PrintOptions9 !== void 0 && _this$PrintOptions9.CollectionLogo),
1980
+ printWithDivaLogo: !!((_this$PrintOptions10 = this.PrintOptions) !== null && _this$PrintOptions10 !== void 0 && _this$PrintOptions10.DivaLogo),
1981
+ printWithSignature: !!((_this$PrintOptions11 = this.PrintOptions) !== null && _this$PrintOptions11 !== void 0 && _this$PrintOptions11.Signature),
1982
+ printWithClientpersonData: !!((_this$PrintOptions12 = this.PrintOptions) !== null && _this$PrintOptions12 !== void 0 && _this$PrintOptions12.ClientpersonData),
1983
+ printWithSalespersonData: !!((_this$PrintOptions13 = this.PrintOptions) !== null && _this$PrintOptions13 !== void 0 && _this$PrintOptions13.SalespersonData),
1984
+ printWithPartlist: !!((_this$PrintOptions14 = this.PrintOptions) !== null && _this$PrintOptions14 !== void 0 && _this$PrintOptions14.Partlist),
1985
+ printWithDate: !!((_this$PrintOptions15 = this.PrintOptions) !== null && _this$PrintOptions15 !== void 0 && _this$PrintOptions15.PrintDate)
1936
1986
  };
1937
1987
  }
1938
1988
  }, {
@@ -1952,13 +2002,13 @@ var BasketData = /*#__PURE__*/function () {
1952
2002
  }
1953
2003
  }, {
1954
2004
  key: "generateEKTextOfBasket",
1955
- value: function generateEKTextOfBasket(withoutPrices) {
2005
+ value: function generateEKTextOfBasket(withoutPrices, customDivaNr) {
1956
2006
  return _generateEKTextOfBasket(this, withoutPrices);
1957
2007
  }
1958
2008
  }, {
1959
2009
  key: "getEKText",
1960
- value: function getEKText(withoutPrices) {
1961
- return _generateEKTextOfBasket(this, withoutPrices).OrderSets[0].SetOrderText;
2010
+ value: function getEKText(withoutPrices, customDivaNr) {
2011
+ return _generateEKTextOfBasket(this, withoutPrices, customDivaNr).OrderSets[0].SetOrderText;
1962
2012
  }
1963
2013
  }, {
1964
2014
  key: "getProductConfiguration",
@@ -1969,6 +2019,7 @@ var BasketData = /*#__PURE__*/function () {
1969
2019
  DivaNr: this.DivaNr,
1970
2020
  VariantID: variantId,
1971
2021
  OrderSets: this.OrderSets.map(function (set) {
2022
+ var _set$Favorites$Varian, _set$Favorites;
1972
2023
  return {
1973
2024
  AccountGUID: set.AccountGUID,
1974
2025
  CatalogCodex: set.CatalogCodex,
@@ -1980,7 +2031,7 @@ var BasketData = /*#__PURE__*/function () {
1980
2031
  SetPlanData: set.SetPlanData,
1981
2032
  SupplierGUID: set.SupplierGUID,
1982
2033
  Favorites: {
1983
- VariantValues: set.Favorites.VariantValues
2034
+ 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
1984
2035
  },
1985
2036
  HQRenderScript: set.HQRenderScript,
1986
2037
  Diva3DProject: _this2.Diva3DProject,
@@ -1999,7 +2050,7 @@ var BasketData = /*#__PURE__*/function () {
1999
2050
  NoPrice: ol.NoPrice ? true : undefined,
2000
2051
  RelatedToBasketID: ol.RelatedToBasketID,
2001
2052
  ShelfPlandata: ol.ShelfPlandata,
2002
- ArticleHash: ol.getHash(),
2053
+ ArticleHash: getHash(ol),
2003
2054
  VariantBasketDatas: ol.getTinyVariantConfigurationDatas()
2004
2055
  };
2005
2056
  })
@@ -2045,6 +2096,7 @@ var BasketData = /*#__PURE__*/function () {
2045
2096
  olVariant.OPV = variant.OPV;
2046
2097
  }
2047
2098
  });
2099
+ variantOrderline.ArticleHash = getHash(variantOrderline);
2048
2100
  });
2049
2101
  }
2050
2102
  return productConfiguration;
@@ -2189,7 +2241,7 @@ function PriceObjectData(Price, FormatedPrice, CalcPrice, PriceType, Currency, P
2189
2241
  });
2190
2242
 
2191
2243
  var SAPOrderLineData = /*#__PURE__*/function () {
2192
- function SAPOrderLineData(SetID, ArticleNr, ArticleNrPrefix, Name, PosNr, Price, Quantity, UseSAPArticleNumberInEKText) {
2244
+ function SAPOrderLineData(SetID, ArticleNr, ArticleNrPrefix, Name, PosNr, Price, Quantity, UseSAPArticleNumberInEKText, basketIds) {
2193
2245
  _classCallCheck(this, SAPOrderLineData);
2194
2246
  _defineProperty(this, "SetID", '');
2195
2247
  _defineProperty(this, "ArticleNr", void 0);
@@ -2202,6 +2254,7 @@ var SAPOrderLineData = /*#__PURE__*/function () {
2202
2254
  _defineProperty(this, "OrderText", void 0);
2203
2255
  _defineProperty(this, "Quantity", void 0);
2204
2256
  _defineProperty(this, "UseSAPArticleNumberInEKText", void 0);
2257
+ _defineProperty(this, "basketIds", void 0);
2205
2258
  this.SetID = SetID;
2206
2259
  this.ArticleNr = ArticleNr;
2207
2260
  this.ArticleNrPrefix = ArticleNrPrefix;
@@ -2210,6 +2263,7 @@ var SAPOrderLineData = /*#__PURE__*/function () {
2210
2263
  this.Price = Price;
2211
2264
  this.Quantity = Quantity;
2212
2265
  this.UseSAPArticleNumberInEKText = UseSAPArticleNumberInEKText;
2266
+ this.basketIds = basketIds;
2213
2267
  }
2214
2268
  return _createClass(SAPOrderLineData, [{
2215
2269
  key: "addQuantity",