@crystaldesign/web-planner-logic 24.14.0-beta.2 → 24.14.0-beta.21
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.
- package/build/cjs/{DivaBoxPlanner-2c3ad573.js → DivaBoxPlanner-1dbb2b3e.js} +7 -5
- package/build/cjs/{DivaStandardPlanner-2712c847.js → DivaStandardPlanner-8f22cd16.js} +3 -3
- package/build/cjs/{DoorPlanner-660c92f8.js → DoorPlanner-b0a67ddd.js} +1 -1
- package/build/cjs/{Host3DSignalR-67d1bbd5.js → Host3DSignalR-fe254b6c.js} +1 -1
- package/build/cjs/{LiviqueWWSHandler-59d934f3.js → LiviqueWWSHandler-2b0c9046.js} +1 -1
- package/build/cjs/{PfisterWWSHandler-4792814e.js → PfisterWWSHandler-20a3aa88.js} +1 -1
- package/build/cjs/{PlannerHandler2D-a209c839.js → PlannerHandler2D-56d91a4c.js} +1 -1
- package/build/cjs/{SeriousBasketHandler-79c2b600.js → SeriousBasketHandler-20b5e9bd.js} +1 -1
- package/build/cjs/{ShelfPlanner-92294342.js → ShelfPlanner-b10b303f.js} +1 -1
- package/build/cjs/{StandardWWSHandler-d6dfcbbe.js → StandardWWSHandler-301ce47d.js} +1 -1
- package/build/cjs/{index-2bfc75a1.js → index-7b3afec0.js} +230 -199
- package/build/cjs/index.js +1 -1
- package/build/esm/{DivaBoxPlanner-d8275f1e.js → DivaBoxPlanner-18be0386.js} +7 -5
- package/build/esm/{DivaStandardPlanner-20b8fe29.js → DivaStandardPlanner-4a467c1f.js} +3 -3
- package/build/esm/{DoorPlanner-c06b15c0.js → DoorPlanner-14a4b738.js} +1 -1
- package/build/esm/{Host3DSignalR-829f756b.js → Host3DSignalR-b7a3ef2b.js} +1 -1
- package/build/esm/{LiviqueWWSHandler-d9eb5296.js → LiviqueWWSHandler-1d8bd04d.js} +1 -1
- package/build/esm/{PfisterWWSHandler-cc0d15f9.js → PfisterWWSHandler-306890c4.js} +1 -1
- package/build/esm/{PlannerHandler2D-91372ea4.js → PlannerHandler2D-7ec24382.js} +1 -1
- package/build/esm/{SeriousBasketHandler-da2d5909.js → SeriousBasketHandler-b9a37881.js} +1 -1
- package/build/esm/{ShelfPlanner-601413ca.js → ShelfPlanner-8ceb3faa.js} +1 -1
- package/build/esm/{StandardWWSHandler-c72e0f32.js → StandardWWSHandler-e18e1760.js} +1 -1
- package/build/esm/{index-f240c58e.js → index-a443016b.js} +230 -199
- package/build/esm/index.js +1 -1
- package/build/types/web-planner-logic/src/interface/API/ViewConfigDataType.d.ts +1 -4
- package/build/types/web-planner-logic/src/interface/API/ViewConfigDataType.d.ts.map +1 -1
- package/build/types/web-planner-logic/src/interface/CoreTypes/index.d.ts +5 -0
- package/build/types/web-planner-logic/src/interface/CoreTypes/index.d.ts.map +1 -1
- package/build/types/web-planner-logic/src/logic/Article/DivaArticle.d.ts.map +1 -1
- package/build/types/web-planner-logic/src/logic/Basket/DivaBasketHandler.d.ts +3 -1
- package/build/types/web-planner-logic/src/logic/Basket/DivaBasketHandler.d.ts.map +1 -1
- package/build/types/web-planner-logic/src/logic/DivaApiHandler.d.ts +2 -4
- package/build/types/web-planner-logic/src/logic/DivaApiHandler.d.ts.map +1 -1
- package/build/types/web-planner-logic/src/logic/DivaCatalogHandler.d.ts.map +1 -1
- package/build/types/web-planner-logic/src/logic/DivaWebPlanner.d.ts +1 -1
- package/build/types/web-planner-logic/src/logic/DivaWebPlanner.d.ts.map +1 -1
- package/build/types/web-planner-logic/src/logic/Planner/Rendering/PlannerHandler3D.d.ts.map +1 -1
- package/build/types/web-planner-logic/src/logic/Set/DivaSetHandler.d.ts +1 -1
- package/build/types/web-planner-logic/src/logic/Set/DivaSetHandler.d.ts.map +1 -1
- package/package.json +2 -2
|
@@ -579,59 +579,41 @@ var DivaApiHandler = /*#__PURE__*/function () {
|
|
|
579
579
|
var _this$divaWebConfigDa12;
|
|
580
580
|
return !!((_this$divaWebConfigDa12 = this.divaWebConfigData) !== null && _this$divaWebConfigDa12 !== void 0 && (_this$divaWebConfigDa12 = _this$divaWebConfigDa12.viewConfig) !== null && _this$divaWebConfigDa12 !== void 0 && _this$divaWebConfigDa12.hidePlanner);
|
|
581
581
|
}
|
|
582
|
-
}, {
|
|
583
|
-
key: "getDoShowAR",
|
|
584
|
-
value: function getDoShowAR() {
|
|
585
|
-
var _this$divaWebConfigDa13;
|
|
586
|
-
return (_this$divaWebConfigDa13 = this.divaWebConfigData) === null || _this$divaWebConfigDa13 === void 0 || (_this$divaWebConfigDa13 = _this$divaWebConfigDa13.viewConfig) === null || _this$divaWebConfigDa13 === void 0 ? void 0 : _this$divaWebConfigDa13.enableAR;
|
|
587
|
-
}
|
|
588
|
-
}, {
|
|
589
|
-
key: "forceShowRTV",
|
|
590
|
-
value: function forceShowRTV() {
|
|
591
|
-
var _this$divaWebConfigDa14;
|
|
592
|
-
return (_this$divaWebConfigDa14 = this.divaWebConfigData) === null || _this$divaWebConfigDa14 === void 0 || (_this$divaWebConfigDa14 = _this$divaWebConfigDa14.viewConfig) === null || _this$divaWebConfigDa14 === void 0 ? void 0 : _this$divaWebConfigDa14.forceRTV;
|
|
593
|
-
}
|
|
594
|
-
}, {
|
|
595
|
-
key: "getDoShowRTV",
|
|
596
|
-
value: function getDoShowRTV() {
|
|
597
|
-
var _this$divaWebConfigDa15;
|
|
598
|
-
return (_this$divaWebConfigDa15 = this.divaWebConfigData) === null || _this$divaWebConfigDa15 === void 0 || (_this$divaWebConfigDa15 = _this$divaWebConfigDa15.viewConfig) === null || _this$divaWebConfigDa15 === void 0 ? void 0 : _this$divaWebConfigDa15.enableRTV;
|
|
599
|
-
}
|
|
600
582
|
}, {
|
|
601
583
|
key: "getEnableRTVUnityKombi",
|
|
602
584
|
value: function getEnableRTVUnityKombi() {
|
|
603
|
-
var _this$
|
|
604
|
-
return !!((_this$
|
|
585
|
+
var _this$divaWebConfigDa13;
|
|
586
|
+
return !!((_this$divaWebConfigDa13 = this.divaWebConfigData) !== null && _this$divaWebConfigDa13 !== void 0 && _this$divaWebConfigDa13.viewConfig.enableRtvUnityKombi);
|
|
605
587
|
}
|
|
606
588
|
}, {
|
|
607
589
|
key: "getDoDisablePlanner2D",
|
|
608
590
|
value: function getDoDisablePlanner2D() {
|
|
609
|
-
var _this$
|
|
610
|
-
return !!((_this$
|
|
591
|
+
var _this$divaWebConfigDa14;
|
|
592
|
+
return !!((_this$divaWebConfigDa14 = this.divaWebConfigData) !== null && _this$divaWebConfigDa14 !== void 0 && _this$divaWebConfigDa14.doDisablePlanner2D);
|
|
611
593
|
}
|
|
612
594
|
}, {
|
|
613
595
|
key: "getRoomListInProduct",
|
|
614
596
|
value: function getRoomListInProduct() {
|
|
615
|
-
var _this$
|
|
616
|
-
return !!((_this$
|
|
597
|
+
var _this$divaWebConfigDa15;
|
|
598
|
+
return !!((_this$divaWebConfigDa15 = this.divaWebConfigData) !== null && _this$divaWebConfigDa15 !== void 0 && (_this$divaWebConfigDa15 = _this$divaWebConfigDa15.viewConfig) !== null && _this$divaWebConfigDa15 !== void 0 && _this$divaWebConfigDa15.roomListInProduct);
|
|
617
599
|
}
|
|
618
600
|
}, {
|
|
619
601
|
key: "getPlannerType",
|
|
620
602
|
value: function getPlannerType() {
|
|
621
|
-
var _this$
|
|
622
|
-
return (_this$
|
|
603
|
+
var _this$divaWebConfigDa16;
|
|
604
|
+
return (_this$divaWebConfigDa16 = this.divaWebConfigData) === null || _this$divaWebConfigDa16 === void 0 || (_this$divaWebConfigDa16 = _this$divaWebConfigDa16.viewConfig) === null || _this$divaWebConfigDa16 === void 0 ? void 0 : _this$divaWebConfigDa16.plannerType;
|
|
623
605
|
}
|
|
624
606
|
}, {
|
|
625
607
|
key: "getLoadSupplierColors",
|
|
626
608
|
value: function getLoadSupplierColors() {
|
|
627
|
-
var _this$
|
|
628
|
-
return !!((_this$
|
|
609
|
+
var _this$divaWebConfigDa17;
|
|
610
|
+
return !!((_this$divaWebConfigDa17 = this.divaWebConfigData) !== null && _this$divaWebConfigDa17 !== void 0 && _this$divaWebConfigDa17.loadSupplierColors);
|
|
629
611
|
}
|
|
630
612
|
}, {
|
|
631
613
|
key: "showSelectionModeZero",
|
|
632
614
|
value: function showSelectionModeZero() {
|
|
633
|
-
var _this$
|
|
634
|
-
return !!((_this$
|
|
615
|
+
var _this$divaWebConfigDa18;
|
|
616
|
+
return !!((_this$divaWebConfigDa18 = this.divaWebConfigData) !== null && _this$divaWebConfigDa18 !== void 0 && _this$divaWebConfigDa18.showSelectionModeZero);
|
|
635
617
|
}
|
|
636
618
|
}, {
|
|
637
619
|
key: "ruleDescSeperator",
|
|
@@ -651,8 +633,8 @@ var DivaApiHandler = /*#__PURE__*/function () {
|
|
|
651
633
|
}, {
|
|
652
634
|
key: "getDoCheckVariantData",
|
|
653
635
|
value: function getDoCheckVariantData() {
|
|
654
|
-
var _this$
|
|
655
|
-
return (_this$
|
|
636
|
+
var _this$divaWebConfigDa19;
|
|
637
|
+
return (_this$divaWebConfigDa19 = this.divaWebConfigData) === null || _this$divaWebConfigDa19 === void 0 ? void 0 : _this$divaWebConfigDa19.doCheckVariantData;
|
|
656
638
|
}
|
|
657
639
|
}, {
|
|
658
640
|
key: "setI18n",
|
|
@@ -745,50 +727,50 @@ var DivaApiHandler = /*#__PURE__*/function () {
|
|
|
745
727
|
}, {
|
|
746
728
|
key: "getViewConfig",
|
|
747
729
|
value: function getViewConfig() {
|
|
748
|
-
var _this$
|
|
749
|
-
return (_this$
|
|
730
|
+
var _this$divaWebConfigDa20;
|
|
731
|
+
return (_this$divaWebConfigDa20 = this.divaWebConfigData) === null || _this$divaWebConfigDa20 === void 0 ? void 0 : _this$divaWebConfigDa20.viewConfig;
|
|
750
732
|
}
|
|
751
733
|
}, {
|
|
752
734
|
key: "getEmailConfig",
|
|
753
735
|
value: function getEmailConfig() {
|
|
754
|
-
var _this$
|
|
755
|
-
return (_this$
|
|
736
|
+
var _this$divaWebConfigDa21;
|
|
737
|
+
return (_this$divaWebConfigDa21 = this.divaWebConfigData) === null || _this$divaWebConfigDa21 === void 0 ? void 0 : _this$divaWebConfigDa21.emailConfig;
|
|
756
738
|
}
|
|
757
739
|
}, {
|
|
758
740
|
key: "getABTestCases",
|
|
759
741
|
value: function getABTestCases() {
|
|
760
|
-
var _this$
|
|
761
|
-
return (_this$
|
|
742
|
+
var _this$divaWebConfigDa22, _this$divaWebConfigDa23;
|
|
743
|
+
return (_this$divaWebConfigDa22 = (_this$divaWebConfigDa23 = this.divaWebConfigData) === null || _this$divaWebConfigDa23 === void 0 ? void 0 : _this$divaWebConfigDa23.abTestCases) !== null && _this$divaWebConfigDa22 !== void 0 ? _this$divaWebConfigDa22 : [];
|
|
762
744
|
}
|
|
763
745
|
}, {
|
|
764
746
|
key: "getBarrierConfig",
|
|
765
747
|
value: function getBarrierConfig() {
|
|
766
|
-
var _this$
|
|
767
|
-
return (_this$
|
|
748
|
+
var _this$divaWebConfigDa24;
|
|
749
|
+
return (_this$divaWebConfigDa24 = this.divaWebConfigData) === null || _this$divaWebConfigDa24 === void 0 ? void 0 : _this$divaWebConfigDa24.barrierConfig;
|
|
768
750
|
}
|
|
769
751
|
}, {
|
|
770
752
|
key: "getTemplateConfig",
|
|
771
753
|
value: function getTemplateConfig() {
|
|
772
|
-
var _this$
|
|
773
|
-
return (_this$
|
|
754
|
+
var _this$divaWebConfigDa25;
|
|
755
|
+
return (_this$divaWebConfigDa25 = this.divaWebConfigData) === null || _this$divaWebConfigDa25 === void 0 ? void 0 : _this$divaWebConfigDa25.templateConfig;
|
|
774
756
|
}
|
|
775
757
|
}, {
|
|
776
758
|
key: "showDivaNr",
|
|
777
759
|
value: function showDivaNr() {
|
|
778
|
-
var _this$
|
|
779
|
-
return (_this$
|
|
760
|
+
var _this$divaWebConfigDa26;
|
|
761
|
+
return (_this$divaWebConfigDa26 = this.divaWebConfigData) === null || _this$divaWebConfigDa26 === void 0 ? void 0 : _this$divaWebConfigDa26.showDivaNr;
|
|
780
762
|
}
|
|
781
763
|
}, {
|
|
782
764
|
key: "onErrorHandling",
|
|
783
765
|
value: function onErrorHandling() {
|
|
784
|
-
var _this$
|
|
785
|
-
return (_this$
|
|
766
|
+
var _this$divaWebConfigDa27;
|
|
767
|
+
return (_this$divaWebConfigDa27 = this.divaWebConfigData) === null || _this$divaWebConfigDa27 === void 0 ? void 0 : _this$divaWebConfigDa27.onErrorHandling;
|
|
786
768
|
}
|
|
787
769
|
}, {
|
|
788
770
|
key: "diva3DRenderingDefault",
|
|
789
771
|
value: function diva3DRenderingDefault() {
|
|
790
|
-
var _this$
|
|
791
|
-
return (_this$
|
|
772
|
+
var _this$divaWebConfigDa28;
|
|
773
|
+
return (_this$divaWebConfigDa28 = this.divaWebConfigData) === null || _this$divaWebConfigDa28 === void 0 ? void 0 : _this$divaWebConfigDa28.diva3DRenderingDefault;
|
|
792
774
|
}
|
|
793
775
|
}, {
|
|
794
776
|
key: "getJwt",
|
|
@@ -803,8 +785,8 @@ var DivaApiHandler = /*#__PURE__*/function () {
|
|
|
803
785
|
}, {
|
|
804
786
|
key: "getUseMask",
|
|
805
787
|
value: function getUseMask() {
|
|
806
|
-
var _this$
|
|
807
|
-
return (_this$
|
|
788
|
+
var _this$divaWebConfigDa29;
|
|
789
|
+
return (_this$divaWebConfigDa29 = this.divaWebConfigData) === null || _this$divaWebConfigDa29 === void 0 ? void 0 : _this$divaWebConfigDa29.useMask;
|
|
808
790
|
}
|
|
809
791
|
}, {
|
|
810
792
|
key: "apiUrl",
|
|
@@ -1324,14 +1306,14 @@ var DivaApiHandler = /*#__PURE__*/function () {
|
|
|
1324
1306
|
}, {
|
|
1325
1307
|
key: "dontLoadAdditionalModelInfos",
|
|
1326
1308
|
get: function get() {
|
|
1327
|
-
var _this$
|
|
1328
|
-
return (_this$
|
|
1309
|
+
var _this$divaWebConfigDa30;
|
|
1310
|
+
return (_this$divaWebConfigDa30 = this.divaWebConfigData) === null || _this$divaWebConfigDa30 === void 0 ? void 0 : _this$divaWebConfigDa30.dontLoadAdditionalModelInfos;
|
|
1329
1311
|
}
|
|
1330
1312
|
}, {
|
|
1331
1313
|
key: "dontLoadCatalogEditorLiteMask",
|
|
1332
1314
|
get: function get() {
|
|
1333
|
-
var _this$
|
|
1334
|
-
return (_this$
|
|
1315
|
+
var _this$divaWebConfigDa31;
|
|
1316
|
+
return (_this$divaWebConfigDa31 = this.divaWebConfigData) === null || _this$divaWebConfigDa31 === void 0 ? void 0 : _this$divaWebConfigDa31.dontLoadCatalogEditorLiteMask;
|
|
1335
1317
|
}
|
|
1336
1318
|
}, {
|
|
1337
1319
|
key: "OrganizationId",
|
|
@@ -1339,6 +1321,12 @@ var DivaApiHandler = /*#__PURE__*/function () {
|
|
|
1339
1321
|
var _this$organization4;
|
|
1340
1322
|
return (_this$organization4 = this.organization) === null || _this$organization4 === void 0 ? void 0 : _this$organization4._id;
|
|
1341
1323
|
}
|
|
1324
|
+
}, {
|
|
1325
|
+
key: "enableAR",
|
|
1326
|
+
get: function get() {
|
|
1327
|
+
var _this$organization5;
|
|
1328
|
+
return (_this$organization5 = this.organization) === null || _this$organization5 === void 0 ? void 0 : _this$organization5.enableAR;
|
|
1329
|
+
}
|
|
1342
1330
|
}, {
|
|
1343
1331
|
key: "webConfig",
|
|
1344
1332
|
get: function get() {
|
|
@@ -19726,7 +19714,7 @@ var DivaCatalogHandler = /*#__PURE__*/function () {
|
|
|
19726
19714
|
return _context.abrupt("return", state.divaCatalogs[catalogKey]);
|
|
19727
19715
|
case 5:
|
|
19728
19716
|
if (!orderSet) {
|
|
19729
|
-
_context.next =
|
|
19717
|
+
_context.next = 53;
|
|
19730
19718
|
break;
|
|
19731
19719
|
}
|
|
19732
19720
|
// ab hier parallell laden
|
|
@@ -19758,22 +19746,30 @@ var DivaCatalogHandler = /*#__PURE__*/function () {
|
|
|
19758
19746
|
case 23:
|
|
19759
19747
|
mask = _context.sent;
|
|
19760
19748
|
case 24:
|
|
19749
|
+
_context.next = 29;
|
|
19750
|
+
break;
|
|
19751
|
+
case 26:
|
|
19752
|
+
_context.prev = 26;
|
|
19753
|
+
_context.t0 = _context["catch"](19);
|
|
19754
|
+
LOG$d.debug('no mask found: ' + _context.t0);
|
|
19755
|
+
case 29:
|
|
19756
|
+
_context.prev = 29;
|
|
19761
19757
|
if (!(!state.api.dontLoadAdditionalModelInfos && catalogApiData.AccountGuid)) {
|
|
19762
|
-
_context.next =
|
|
19758
|
+
_context.next = 34;
|
|
19763
19759
|
break;
|
|
19764
19760
|
}
|
|
19765
|
-
_context.next =
|
|
19761
|
+
_context.next = 33;
|
|
19766
19762
|
return state.api.getDataCache(state.api.getAdditionalModelInfosQS(catalogApiData.AccountGuid, catalogApiData.GUID), undefined, undefined, 'catalog');
|
|
19767
|
-
case
|
|
19763
|
+
case 33:
|
|
19768
19764
|
additionalModelInfos = _context.sent;
|
|
19769
|
-
case
|
|
19770
|
-
_context.next =
|
|
19765
|
+
case 34:
|
|
19766
|
+
_context.next = 39;
|
|
19771
19767
|
break;
|
|
19772
|
-
case
|
|
19773
|
-
_context.prev =
|
|
19774
|
-
_context.
|
|
19775
|
-
LOG$d.debug('no additionalModelInfos found: ' + _context.
|
|
19776
|
-
case
|
|
19768
|
+
case 36:
|
|
19769
|
+
_context.prev = 36;
|
|
19770
|
+
_context.t1 = _context["catch"](29);
|
|
19771
|
+
LOG$d.debug('no additionalModelInfos found: ' + _context.t1);
|
|
19772
|
+
case 39:
|
|
19777
19773
|
if (state.catalogMask || mask) {
|
|
19778
19774
|
if (!additionalModelInfos) additionalModelInfos = {
|
|
19779
19775
|
_id: ''
|
|
@@ -19782,19 +19778,19 @@ var DivaCatalogHandler = /*#__PURE__*/function () {
|
|
|
19782
19778
|
}
|
|
19783
19779
|
catalogData = new DivaCatalogData(catalogApiData, orderSet, state.api, additionalModelInfos);
|
|
19784
19780
|
if (!(catalogArticleListData.Articles && catalogArticleListData.Articles.length > 0)) {
|
|
19785
|
-
_context.next =
|
|
19781
|
+
_context.next = 45;
|
|
19786
19782
|
break;
|
|
19787
19783
|
}
|
|
19788
19784
|
catalogData.initCatalogArticles(catalogArticleListData.Articles);
|
|
19789
|
-
_context.next =
|
|
19785
|
+
_context.next = 48;
|
|
19790
19786
|
break;
|
|
19791
|
-
case
|
|
19787
|
+
case 45:
|
|
19792
19788
|
DivaUtils.endSpanOfApm('Catalog initialize');
|
|
19793
19789
|
LOG$d.error(new DivaError('Catalog ' + catalogData.catalogName + ' not listed', {
|
|
19794
19790
|
code: 'WC_0002'
|
|
19795
19791
|
}));
|
|
19796
19792
|
throw new Error('Articles of Catalog: ' + catalogData.catalogCodex + ' are empty');
|
|
19797
|
-
case
|
|
19793
|
+
case 48:
|
|
19798
19794
|
if (catalogArticlePlannerListData.PlannerElements && catalogArticlePlannerListData.PlannerElements.length > 0) {
|
|
19799
19795
|
catalogData.initCatalogPlannerArticles(catalogArticlePlannerListData.PlannerElements);
|
|
19800
19796
|
}
|
|
@@ -19811,16 +19807,16 @@ var DivaCatalogHandler = /*#__PURE__*/function () {
|
|
|
19811
19807
|
|
|
19812
19808
|
DivaUtils.endSpanOfApm('Catalog initialize');
|
|
19813
19809
|
return _context.abrupt("return", state.divaCatalogs[catalogKey]);
|
|
19814
|
-
case
|
|
19810
|
+
case 53:
|
|
19815
19811
|
LOG$d.error(new DivaError('Catalog: ' + catalogCodex + ' not initialized! and orderSet not set', {
|
|
19816
19812
|
code: 'WC_0007'
|
|
19817
19813
|
}));
|
|
19818
19814
|
return _context.abrupt("return", state.divaCatalogs[catalogKey]);
|
|
19819
|
-
case
|
|
19815
|
+
case 55:
|
|
19820
19816
|
case "end":
|
|
19821
19817
|
return _context.stop();
|
|
19822
19818
|
}
|
|
19823
|
-
}, _callee, null, [[19,
|
|
19819
|
+
}, _callee, null, [[19, 26], [29, 36]]);
|
|
19824
19820
|
}));
|
|
19825
19821
|
function getCatalogData(_x, _x2, _x3) {
|
|
19826
19822
|
return _getCatalogData.apply(this, arguments);
|
|
@@ -20706,8 +20702,18 @@ var DivaArticle = /*#__PURE__*/function () {
|
|
|
20706
20702
|
if (Object.entries(partlistArticles).length && !this.CatalogData.bundleRules) {
|
|
20707
20703
|
LOG$c.error(new DivaError('sorting partlistarticles Failed', {
|
|
20708
20704
|
custom: {
|
|
20709
|
-
partlistArticles: partlistArticles
|
|
20710
|
-
|
|
20705
|
+
partlistArticles: Object.values(partlistArticles).map(function (p) {
|
|
20706
|
+
return {
|
|
20707
|
+
BasketId: p.basketId,
|
|
20708
|
+
ArticleCodex: p.articleCodex
|
|
20709
|
+
};
|
|
20710
|
+
}),
|
|
20711
|
+
partlistArticlesToLoad: partlistArticlesToLoad.map(function (p) {
|
|
20712
|
+
return {
|
|
20713
|
+
BasketId: p.ArticleCodex,
|
|
20714
|
+
ArticleCodex: p.ArticleCodex
|
|
20715
|
+
};
|
|
20716
|
+
})
|
|
20711
20717
|
}
|
|
20712
20718
|
}));
|
|
20713
20719
|
}
|
|
@@ -23629,7 +23635,7 @@ var DivaArticle = /*#__PURE__*/function () {
|
|
|
23629
23635
|
break;
|
|
23630
23636
|
}
|
|
23631
23637
|
_context.next = 4;
|
|
23632
|
-
return import('./ShelfPlanner-
|
|
23638
|
+
return import('./ShelfPlanner-8ceb3faa.js');
|
|
23633
23639
|
case 4:
|
|
23634
23640
|
_yield$import = _context.sent;
|
|
23635
23641
|
ShelfPlanner = _yield$import["default"];
|
|
@@ -28163,7 +28169,7 @@ var DivaSet = /*#__PURE__*/function () {
|
|
|
28163
28169
|
break;
|
|
28164
28170
|
}
|
|
28165
28171
|
_context4.next = 3;
|
|
28166
|
-
return import('./DoorPlanner-
|
|
28172
|
+
return import('./DoorPlanner-14a4b738.js');
|
|
28167
28173
|
case 3:
|
|
28168
28174
|
_yield$import = _context4.sent;
|
|
28169
28175
|
DoorPlanner = _yield$import["default"];
|
|
@@ -31801,8 +31807,9 @@ var DivaSetHandler = /*#__PURE__*/function () {
|
|
|
31801
31807
|
}, {
|
|
31802
31808
|
key: "deleteElementFromSet",
|
|
31803
31809
|
value: function () {
|
|
31804
|
-
var _deleteElementFromSet = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee14(set, article, autoCorrectAVL_AVR, deletionType, dontReload) {
|
|
31805
|
-
var
|
|
31810
|
+
var _deleteElementFromSet = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee14(set, article, autoCorrectAVL_AVR, deletionType, dontReload, dontCheckInfluencedPlannerElements) {
|
|
31811
|
+
var _deletedArticle$doorP, _set$CatalogData;
|
|
31812
|
+
var setId, success, newSelectedElement, allElementsToDelete, i, art, deletedArticle, articles, key, oldTransform, result, _set$getArticleByBask3;
|
|
31806
31813
|
return _regeneratorRuntime.wrap(function _callee14$(_context16) {
|
|
31807
31814
|
while (1) switch (_context16.prev = _context16.next) {
|
|
31808
31815
|
case 0:
|
|
@@ -31817,44 +31824,55 @@ var DivaSetHandler = /*#__PURE__*/function () {
|
|
|
31817
31824
|
setId: setId
|
|
31818
31825
|
});
|
|
31819
31826
|
case 3:
|
|
31820
|
-
allElementsToDelete = set.plannerHandler.getPlannerElementsInfluencedByDeletion(setId, article.elementId);
|
|
31821
31827
|
success = false;
|
|
31822
31828
|
newSelectedElement = undefined;
|
|
31829
|
+
if (dontCheckInfluencedPlannerElements) {
|
|
31830
|
+
_context16.next = 15;
|
|
31831
|
+
break;
|
|
31832
|
+
}
|
|
31833
|
+
allElementsToDelete = set.plannerHandler.getPlannerElementsInfluencedByDeletion(setId, article.elementId);
|
|
31823
31834
|
i = 0;
|
|
31824
|
-
case
|
|
31835
|
+
case 8:
|
|
31825
31836
|
if (!(i < allElementsToDelete.length)) {
|
|
31826
|
-
_context16.next =
|
|
31837
|
+
_context16.next = 15;
|
|
31827
31838
|
break;
|
|
31828
31839
|
}
|
|
31829
|
-
|
|
31840
|
+
art = set.getArticleByElementId(allElementsToDelete[i]);
|
|
31841
|
+
_context16.next = 12;
|
|
31842
|
+
return this.deleteElementFromSet(set, art, undefined, undefined, true, true);
|
|
31843
|
+
case 12:
|
|
31844
|
+
i++;
|
|
31845
|
+
_context16.next = 8;
|
|
31846
|
+
break;
|
|
31847
|
+
case 15:
|
|
31830
31848
|
deletedArticle = article; //accessoires löschen
|
|
31831
31849
|
articles = set.getAccessoiresOfBasketId(article.basketId);
|
|
31832
31850
|
_context16.t0 = _regeneratorRuntime.keys(articles);
|
|
31833
|
-
case
|
|
31851
|
+
case 18:
|
|
31834
31852
|
if ((_context16.t1 = _context16.t0()).done) {
|
|
31835
|
-
_context16.next =
|
|
31853
|
+
_context16.next = 24;
|
|
31836
31854
|
break;
|
|
31837
31855
|
}
|
|
31838
31856
|
key = _context16.t1.value;
|
|
31839
|
-
_context16.next =
|
|
31840
|
-
return this.deleteElementFromSet(set, articles[key]);
|
|
31841
|
-
case
|
|
31842
|
-
_context16.next =
|
|
31857
|
+
_context16.next = 22;
|
|
31858
|
+
return this.deleteElementFromSet(set, articles[key], undefined, undefined, true);
|
|
31859
|
+
case 22:
|
|
31860
|
+
_context16.next = 18;
|
|
31843
31861
|
break;
|
|
31844
|
-
case
|
|
31862
|
+
case 24:
|
|
31845
31863
|
oldTransform = undefined;
|
|
31846
31864
|
if (deletedArticle) deletedArticle.deleted = true;
|
|
31847
31865
|
if (!(deletedArticle !== null && deletedArticle !== void 0 && deletedArticle.hasCatalogPlannerArticle)) {
|
|
31848
|
-
_context16.next =
|
|
31866
|
+
_context16.next = 32;
|
|
31849
31867
|
break;
|
|
31850
31868
|
}
|
|
31851
|
-
_context16.next =
|
|
31869
|
+
_context16.next = 29;
|
|
31852
31870
|
return set.plannerHandler.deletePlannerElement(setId, deletedArticle.elementId, autoCorrectAVL_AVR, deletionType);
|
|
31853
|
-
case
|
|
31871
|
+
case 29:
|
|
31854
31872
|
result = _context16.sent;
|
|
31855
31873
|
newSelectedElement = result.newElementToSelect;
|
|
31856
31874
|
oldTransform = result.transform;
|
|
31857
|
-
case
|
|
31875
|
+
case 32:
|
|
31858
31876
|
//falls ein Accessoire gelöscht wurde wird das Accessoire auch wo es beim Parent hinterlegt war auch gelöscht
|
|
31859
31877
|
if (deletedArticle !== null && deletedArticle !== void 0 && deletedArticle.relatedToBasketId) {
|
|
31860
31878
|
(_set$getArticleByBask3 = set.getArticleByBasketId(deletedArticle.relatedToBasketId)) === null || _set$getArticleByBask3 === void 0 || _set$getArticleByBask3.removeAccessoire(deletedArticle.basketId);
|
|
@@ -31864,29 +31882,25 @@ var DivaSetHandler = /*#__PURE__*/function () {
|
|
|
31864
31882
|
deletedArticle === null || deletedArticle === void 0 || (_deletedArticle$doorP = deletedArticle.doorPlanner) === null || _deletedArticle$doorP === void 0 || _deletedArticle$doorP.deleteElement(deletedArticle.basketId);
|
|
31865
31883
|
success = set.deleteArticle(article.basketId);
|
|
31866
31884
|
if (!((set.CatalogData.bundleRules || set.CatalogData.reconfigAfterArticleDocked || set !== null && set !== void 0 && (_set$CatalogData = set.CatalogData) !== null && _set$CatalogData !== void 0 && _set$CatalogData.getOption('OPTLASTSTACKEDARTICLE')) && !dontReload)) {
|
|
31867
|
-
_context16.next =
|
|
31885
|
+
_context16.next = 38;
|
|
31868
31886
|
break;
|
|
31869
31887
|
}
|
|
31870
|
-
_context16.next =
|
|
31888
|
+
_context16.next = 38;
|
|
31871
31889
|
return this.updateArticlesOptionStatesOfActSet(set, {}, []);
|
|
31872
|
-
case
|
|
31873
|
-
i++;
|
|
31874
|
-
_context16.next = 7;
|
|
31875
|
-
break;
|
|
31876
|
-
case 35:
|
|
31890
|
+
case 38:
|
|
31877
31891
|
return _context16.abrupt("return", {
|
|
31878
31892
|
success: success,
|
|
31879
31893
|
selectElementId: newSelectedElement,
|
|
31880
31894
|
setId: setId,
|
|
31881
31895
|
oldTransform: oldTransform
|
|
31882
31896
|
});
|
|
31883
|
-
case
|
|
31897
|
+
case 39:
|
|
31884
31898
|
case "end":
|
|
31885
31899
|
return _context16.stop();
|
|
31886
31900
|
}
|
|
31887
31901
|
}, _callee14, this);
|
|
31888
31902
|
}));
|
|
31889
|
-
function deleteElementFromSet(_x41, _x42, _x43, _x44, _x45) {
|
|
31903
|
+
function deleteElementFromSet(_x41, _x42, _x43, _x44, _x45, _x46) {
|
|
31890
31904
|
return _deleteElementFromSet.apply(this, arguments);
|
|
31891
31905
|
}
|
|
31892
31906
|
return deleteElementFromSet;
|
|
@@ -31961,7 +31975,7 @@ var DivaSetHandler = /*#__PURE__*/function () {
|
|
|
31961
31975
|
}
|
|
31962
31976
|
}, _callee15, this);
|
|
31963
31977
|
}));
|
|
31964
|
-
function addAccessorieOnShelfPlanner(
|
|
31978
|
+
function addAccessorieOnShelfPlanner(_x47, _x48, _x49, _x50, _x51) {
|
|
31965
31979
|
return _addAccessorieOnShelfPlanner.apply(this, arguments);
|
|
31966
31980
|
}
|
|
31967
31981
|
return addAccessorieOnShelfPlanner;
|
|
@@ -32035,7 +32049,7 @@ var DivaSetHandler = /*#__PURE__*/function () {
|
|
|
32035
32049
|
}
|
|
32036
32050
|
}, _callee16, this);
|
|
32037
32051
|
}));
|
|
32038
|
-
function getFreeShelfGrids(
|
|
32052
|
+
function getFreeShelfGrids(_x52, _x53) {
|
|
32039
32053
|
return _getFreeShelfGrids.apply(this, arguments);
|
|
32040
32054
|
}
|
|
32041
32055
|
return getFreeShelfGrids;
|
|
@@ -32171,7 +32185,7 @@ var DivaSetHandler = /*#__PURE__*/function () {
|
|
|
32171
32185
|
}
|
|
32172
32186
|
}, _callee17, this);
|
|
32173
32187
|
}));
|
|
32174
|
-
function moveShelfItemToGrid(
|
|
32188
|
+
function moveShelfItemToGrid(_x54, _x55, _x56, _x57, _x58) {
|
|
32175
32189
|
return _moveShelfItemToGrid.apply(this, arguments);
|
|
32176
32190
|
}
|
|
32177
32191
|
return moveShelfItemToGrid;
|
|
@@ -32205,7 +32219,7 @@ var DivaSetHandler = /*#__PURE__*/function () {
|
|
|
32205
32219
|
}
|
|
32206
32220
|
}, _callee18, this);
|
|
32207
32221
|
}));
|
|
32208
|
-
function deleteAccessorieOnShelfPlanner(
|
|
32222
|
+
function deleteAccessorieOnShelfPlanner(_x59, _x60, _x61, _x62, _x63) {
|
|
32209
32223
|
return _deleteAccessorieOnShelfPlanner.apply(this, arguments);
|
|
32210
32224
|
}
|
|
32211
32225
|
return deleteAccessorieOnShelfPlanner;
|
|
@@ -32231,7 +32245,7 @@ var DivaSetHandler = /*#__PURE__*/function () {
|
|
|
32231
32245
|
}
|
|
32232
32246
|
}, _callee19, this);
|
|
32233
32247
|
}));
|
|
32234
|
-
function updatePlannerTrans(
|
|
32248
|
+
function updatePlannerTrans(_x64, _x65, _x66, _x67, _x68, _x69, _x70) {
|
|
32235
32249
|
return _updatePlannerTrans.apply(this, arguments);
|
|
32236
32250
|
}
|
|
32237
32251
|
return updatePlannerTrans;
|
|
@@ -32345,7 +32359,7 @@ var DivaSetHandler = /*#__PURE__*/function () {
|
|
|
32345
32359
|
}
|
|
32346
32360
|
}, _callee20, this);
|
|
32347
32361
|
}));
|
|
32348
|
-
function deleteAccessoire(
|
|
32362
|
+
function deleteAccessoire(_x71, _x72, _x73) {
|
|
32349
32363
|
return _deleteAccessoire.apply(this, arguments);
|
|
32350
32364
|
}
|
|
32351
32365
|
return deleteAccessoire;
|
|
@@ -32499,7 +32513,7 @@ var DivaSetHandler = /*#__PURE__*/function () {
|
|
|
32499
32513
|
}
|
|
32500
32514
|
}, _callee21, this);
|
|
32501
32515
|
}));
|
|
32502
|
-
function configSingleIsChanged(
|
|
32516
|
+
function configSingleIsChanged(_x74, _x75, _x76, _x77) {
|
|
32503
32517
|
return _configSingleIsChanged.apply(this, arguments);
|
|
32504
32518
|
}
|
|
32505
32519
|
return configSingleIsChanged;
|
|
@@ -32634,7 +32648,7 @@ var DivaSetHandler = /*#__PURE__*/function () {
|
|
|
32634
32648
|
}
|
|
32635
32649
|
}, _callee22, this);
|
|
32636
32650
|
}));
|
|
32637
|
-
function loadConfigItemsOfActSetByConfigStepKey(
|
|
32651
|
+
function loadConfigItemsOfActSetByConfigStepKey(_x78, _x79, _x80) {
|
|
32638
32652
|
return _loadConfigItemsOfActSetByConfigStepKey.apply(this, arguments);
|
|
32639
32653
|
}
|
|
32640
32654
|
return loadConfigItemsOfActSetByConfigStepKey;
|
|
@@ -32721,7 +32735,7 @@ var DivaSetHandler = /*#__PURE__*/function () {
|
|
|
32721
32735
|
}
|
|
32722
32736
|
}, _callee23, this);
|
|
32723
32737
|
}));
|
|
32724
|
-
function variantsEvaluator(
|
|
32738
|
+
function variantsEvaluator(_x81, _x82, _x83, _x84) {
|
|
32725
32739
|
return _variantsEvaluator.apply(this, arguments);
|
|
32726
32740
|
}
|
|
32727
32741
|
return variantsEvaluator;
|
|
@@ -32799,7 +32813,7 @@ var DivaSetHandler = /*#__PURE__*/function () {
|
|
|
32799
32813
|
}
|
|
32800
32814
|
}, _callee24, this);
|
|
32801
32815
|
}));
|
|
32802
|
-
function calcVariants(
|
|
32816
|
+
function calcVariants(_x85, _x86, _x87) {
|
|
32803
32817
|
return _calcVariants.apply(this, arguments);
|
|
32804
32818
|
}
|
|
32805
32819
|
return calcVariants;
|
|
@@ -32964,7 +32978,7 @@ var DivaSetHandler = /*#__PURE__*/function () {
|
|
|
32964
32978
|
}
|
|
32965
32979
|
}, _callee25, this);
|
|
32966
32980
|
}));
|
|
32967
|
-
function updateArticlesOptionStatesOfActSet(
|
|
32981
|
+
function updateArticlesOptionStatesOfActSet(_x88, _x89, _x90, _x91, _x92, _x93) {
|
|
32968
32982
|
return _updateArticlesOptionStatesOfActSet.apply(this, arguments);
|
|
32969
32983
|
}
|
|
32970
32984
|
return updateArticlesOptionStatesOfActSet;
|
|
@@ -33074,7 +33088,7 @@ var DivaSetHandler = /*#__PURE__*/function () {
|
|
|
33074
33088
|
}
|
|
33075
33089
|
}, _callee26, this);
|
|
33076
33090
|
}));
|
|
33077
|
-
function updateEdoArticles(
|
|
33091
|
+
function updateEdoArticles(_x94, _x95) {
|
|
33078
33092
|
return _updateEdoArticles.apply(this, arguments);
|
|
33079
33093
|
}
|
|
33080
33094
|
return updateEdoArticles;
|
|
@@ -33236,7 +33250,7 @@ var DivaSetHandler = /*#__PURE__*/function () {
|
|
|
33236
33250
|
}
|
|
33237
33251
|
}, _callee27);
|
|
33238
33252
|
}));
|
|
33239
|
-
function checkVariantData(
|
|
33253
|
+
function checkVariantData(_x96) {
|
|
33240
33254
|
return _checkVariantData.apply(this, arguments);
|
|
33241
33255
|
}
|
|
33242
33256
|
return checkVariantData;
|
|
@@ -33402,7 +33416,7 @@ var DivaSetHandler = /*#__PURE__*/function () {
|
|
|
33402
33416
|
}
|
|
33403
33417
|
}, _callee28, this);
|
|
33404
33418
|
}));
|
|
33405
|
-
function fillOrderLinesAndOrderSets(
|
|
33419
|
+
function fillOrderLinesAndOrderSets(_x97, _x98, _x99, _x100, _x101) {
|
|
33406
33420
|
return _fillOrderLinesAndOrderSets.apply(this, arguments);
|
|
33407
33421
|
}
|
|
33408
33422
|
return fillOrderLinesAndOrderSets;
|
|
@@ -33487,7 +33501,7 @@ var DivaSetHandler = /*#__PURE__*/function () {
|
|
|
33487
33501
|
key: "getOrderSet",
|
|
33488
33502
|
value: function () {
|
|
33489
33503
|
var _getOrderSet = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee29(set, catalogData, posNr, divaNr, repairOnly, returnTo) {
|
|
33490
|
-
var _hqRenderScript, _set$basketConfigVari2, _set$basketConfigVari3;
|
|
33504
|
+
var _Object$values$, _set$getDivaArticles, _hqRenderScript, _set$basketConfigVari2, _set$basketConfigVari3;
|
|
33491
33505
|
var dontGenerateImages, orderSet, GroupType, plannerData, setImage, urlToPlanning2D, alternateSetImages, hqRenderScript, dimensions, promise3D, promise2D, promise3DAlternate, _yield$Promise$all, _yield$Promise$all2, _yield$Promise$all2$, promiseHQRenderScript, _yield$Promise$all3, _yield$Promise$all4, plannerWarnings, bruttoPrice;
|
|
33492
33506
|
return _regeneratorRuntime.wrap(function _callee29$(_context31) {
|
|
33493
33507
|
while (1) switch (_context31.prev = _context31.next) {
|
|
@@ -33555,7 +33569,7 @@ var DivaSetHandler = /*#__PURE__*/function () {
|
|
|
33555
33569
|
SetArticleNrPrefix: set.SetArticleNrPrefix,
|
|
33556
33570
|
BBox: this.getBBoxObject(set, dimensions),
|
|
33557
33571
|
SetVariantBasketDatas: set.getVariantBasketData(),
|
|
33558
|
-
SetImage: setImage,
|
|
33572
|
+
SetImage: set.PlannerMode == 'No' ? (_Object$values$ = Object.values((_set$getDivaArticles = set.getDivaArticles()) !== null && _set$getDivaArticles !== void 0 ? _set$getDivaArticles : {})[0]) === null || _Object$values$ === void 0 ? void 0 : _Object$values$.imageUrl : setImage,
|
|
33559
33573
|
//Add url string of current rendering.
|
|
33560
33574
|
HQRenderScript: (_hqRenderScript = hqRenderScript) === null || _hqRenderScript === void 0 ? void 0 : _hqRenderScript._id,
|
|
33561
33575
|
Set2DImage: urlToPlanning2D,
|
|
@@ -33593,7 +33607,7 @@ var DivaSetHandler = /*#__PURE__*/function () {
|
|
|
33593
33607
|
}
|
|
33594
33608
|
}, _callee29, this);
|
|
33595
33609
|
}));
|
|
33596
|
-
function getOrderSet(
|
|
33610
|
+
function getOrderSet(_x102, _x103, _x104, _x105, _x106, _x107) {
|
|
33597
33611
|
return _getOrderSet.apply(this, arguments);
|
|
33598
33612
|
}
|
|
33599
33613
|
return getOrderSet;
|
|
@@ -33643,7 +33657,7 @@ var DivaSetHandler = /*#__PURE__*/function () {
|
|
|
33643
33657
|
}
|
|
33644
33658
|
}, _callee30);
|
|
33645
33659
|
}));
|
|
33646
|
-
function getSetImage(
|
|
33660
|
+
function getSetImage(_x108, _x109) {
|
|
33647
33661
|
return _getSetImage.apply(this, arguments);
|
|
33648
33662
|
}
|
|
33649
33663
|
return getSetImage;
|
|
@@ -33689,7 +33703,7 @@ var DivaSetHandler = /*#__PURE__*/function () {
|
|
|
33689
33703
|
}
|
|
33690
33704
|
}, _callee31);
|
|
33691
33705
|
}));
|
|
33692
|
-
function getHQRenderScript(
|
|
33706
|
+
function getHQRenderScript(_x110, _x111) {
|
|
33693
33707
|
return _getHQRenderScript.apply(this, arguments);
|
|
33694
33708
|
}
|
|
33695
33709
|
return getHQRenderScript;
|
|
@@ -33730,7 +33744,7 @@ var DivaSetHandler = /*#__PURE__*/function () {
|
|
|
33730
33744
|
}
|
|
33731
33745
|
}, _callee32);
|
|
33732
33746
|
}));
|
|
33733
|
-
function getAlternateSetImages(
|
|
33747
|
+
function getAlternateSetImages(_x112) {
|
|
33734
33748
|
return _getAlternateSetImages.apply(this, arguments);
|
|
33735
33749
|
}
|
|
33736
33750
|
return getAlternateSetImages;
|
|
@@ -33761,7 +33775,7 @@ var DivaSetHandler = /*#__PURE__*/function () {
|
|
|
33761
33775
|
}
|
|
33762
33776
|
}, _callee33);
|
|
33763
33777
|
}));
|
|
33764
|
-
function get2DSetImage(
|
|
33778
|
+
function get2DSetImage(_x113) {
|
|
33765
33779
|
return _get2DSetImage.apply(this, arguments);
|
|
33766
33780
|
}
|
|
33767
33781
|
return get2DSetImage;
|
|
@@ -33776,8 +33790,14 @@ var DivaSetHandler = /*#__PURE__*/function () {
|
|
|
33776
33790
|
Y: (_dimensions$d = dimensions === null || dimensions === void 0 ? void 0 : dimensions.d) !== null && _dimensions$d !== void 0 ? _dimensions$d : bbox.depth,
|
|
33777
33791
|
Z: (_dimensions$h = dimensions === null || dimensions === void 0 ? void 0 : dimensions.h) !== null && _dimensions$h !== void 0 ? _dimensions$h : bbox.height
|
|
33778
33792
|
};
|
|
33793
|
+
if (set.PlannerMode == 'No') {
|
|
33794
|
+
var article = Object.values(set.getDivaArticles())[0];
|
|
33795
|
+
dim.X = article === null || article === void 0 ? void 0 : article.width;
|
|
33796
|
+
dim.Y = article === null || article === void 0 ? void 0 : article.depth;
|
|
33797
|
+
dim.Z = article === null || article === void 0 ? void 0 : article.height;
|
|
33798
|
+
}
|
|
33779
33799
|
return _objectSpread$8(_objectSpread$8({}, dim), {}, {
|
|
33780
|
-
Info: ((_set$api$getI18n$t = (_set$api$getI18n = set.api.getI18n()) === null || _set$api$getI18n === void 0 || (_set$api$getI18n$t2 = _set$api$getI18n.t) === null || _set$api$getI18n$t2 === void 0 ? void 0 : _set$api$getI18n$t2.call(_set$api$getI18n, 'utils.width_first_letter', 'B')) !== null && _set$api$getI18n$t !== void 0 ? _set$api$getI18n$t : 'B') + ': ' + dim.X + ' cm x ' + ((_set$api$getI18n$t3 = (_set$api$getI18n2 = set.api.getI18n()) === null || _set$api$getI18n2 === void 0 || (_set$api$getI18n2$t = _set$api$getI18n2.t) === null || _set$api$getI18n2$t === void 0 ? void 0 : _set$api$getI18n2$t.call(_set$api$getI18n2, 'utils.depth_first_letter', 'T')) !== null && _set$api$getI18n$t3 !== void 0 ? _set$api$getI18n$t3 : 'T') + ': ' + dim.Y + ' cm' + (dim.Z ? ' x ' + ((_set$api$getI18n$t4 = (_set$api$getI18n3 = set.api.getI18n()) === null || _set$api$getI18n3 === void 0 || (_set$api$getI18n3$t = _set$api$getI18n3.t) === null || _set$api$getI18n3$t === void 0 ? void 0 : _set$api$getI18n3$t.call(_set$api$getI18n3, 'utils.height_first_letter', 'H')) !== null && _set$api$getI18n$t4 !== void 0 ? _set$api$getI18n$t4 : 'H') + ': ' + dim.
|
|
33800
|
+
Info: ((_set$api$getI18n$t = (_set$api$getI18n = set.api.getI18n()) === null || _set$api$getI18n === void 0 || (_set$api$getI18n$t2 = _set$api$getI18n.t) === null || _set$api$getI18n$t2 === void 0 ? void 0 : _set$api$getI18n$t2.call(_set$api$getI18n, 'utils.width_first_letter', 'B')) !== null && _set$api$getI18n$t !== void 0 ? _set$api$getI18n$t : 'B') + ': ' + dim.X + ' cm x ' + ((_set$api$getI18n$t3 = (_set$api$getI18n2 = set.api.getI18n()) === null || _set$api$getI18n2 === void 0 || (_set$api$getI18n2$t = _set$api$getI18n2.t) === null || _set$api$getI18n2$t === void 0 ? void 0 : _set$api$getI18n2$t.call(_set$api$getI18n2, 'utils.depth_first_letter', 'T')) !== null && _set$api$getI18n$t3 !== void 0 ? _set$api$getI18n$t3 : 'T') + ': ' + dim.Y + ' cm' + (dim.Z ? ' x ' + ((_set$api$getI18n$t4 = (_set$api$getI18n3 = set.api.getI18n()) === null || _set$api$getI18n3 === void 0 || (_set$api$getI18n3$t = _set$api$getI18n3.t) === null || _set$api$getI18n3$t === void 0 ? void 0 : _set$api$getI18n3$t.call(_set$api$getI18n3, 'utils.height_first_letter', 'H')) !== null && _set$api$getI18n$t4 !== void 0 ? _set$api$getI18n$t4 : 'H') + ': ' + dim.Z + ' cm' : '')
|
|
33781
33801
|
});
|
|
33782
33802
|
}
|
|
33783
33803
|
}, {
|
|
@@ -33825,7 +33845,7 @@ var DivaSetHandler = /*#__PURE__*/function () {
|
|
|
33825
33845
|
}
|
|
33826
33846
|
}, _callee34, this);
|
|
33827
33847
|
}));
|
|
33828
|
-
function addOrderSetArticlesToExistingSet(
|
|
33848
|
+
function addOrderSetArticlesToExistingSet(_x114, _x115, _x116) {
|
|
33829
33849
|
return _addOrderSetArticlesToExistingSet.apply(this, arguments);
|
|
33830
33850
|
}
|
|
33831
33851
|
return addOrderSetArticlesToExistingSet;
|
|
@@ -33867,6 +33887,7 @@ var DivaBasketHandler = /*#__PURE__*/function () {
|
|
|
33867
33887
|
_defineProperty(this, "_basketHandler", void 0);
|
|
33868
33888
|
_defineProperty(this, "startProductId", void 0);
|
|
33869
33889
|
_defineProperty(this, "initializationType", void 0);
|
|
33890
|
+
_defineProperty(this, "hasConfiguratorSessionId", false);
|
|
33870
33891
|
//Only helper variable
|
|
33871
33892
|
_defineProperty(this, "origConfiguration", {});
|
|
33872
33893
|
/**
|
|
@@ -33893,6 +33914,11 @@ var DivaBasketHandler = /*#__PURE__*/function () {
|
|
|
33893
33914
|
}
|
|
33894
33915
|
}
|
|
33895
33916
|
return _createClass(DivaBasketHandler, [{
|
|
33917
|
+
key: "hasConfiguratorSessionIdGetter",
|
|
33918
|
+
get: function get() {
|
|
33919
|
+
return this.hasConfiguratorSessionId;
|
|
33920
|
+
}
|
|
33921
|
+
}, {
|
|
33896
33922
|
key: "initializationTypeGetter",
|
|
33897
33923
|
get: function get() {
|
|
33898
33924
|
return this.initializationType;
|
|
@@ -33955,13 +33981,13 @@ var DivaBasketHandler = /*#__PURE__*/function () {
|
|
|
33955
33981
|
this.startProductId = undefined;
|
|
33956
33982
|
LOG$7.debug("Basket initialising. initObject is: '", this.plannerConfig, "' divaNr to load is: '" + this.loadDivaNr + "'");
|
|
33957
33983
|
if (this.ignoreInitObjectWhenInitializing) {
|
|
33958
|
-
_context.next =
|
|
33984
|
+
_context.next = 37;
|
|
33959
33985
|
break;
|
|
33960
33986
|
}
|
|
33961
33987
|
returnSuccessfully = false; //UseCase 1
|
|
33962
33988
|
//Basket wird mit basket aus auftrage neu eröffnet zum bearbeiten
|
|
33963
33989
|
if (!this.plannerConfig.basketData) {
|
|
33964
|
-
_context.next =
|
|
33990
|
+
_context.next = 29;
|
|
33965
33991
|
break;
|
|
33966
33992
|
}
|
|
33967
33993
|
if (!this.plannerConfig.assignNewDivaNr) {
|
|
@@ -34008,17 +34034,18 @@ var DivaBasketHandler = /*#__PURE__*/function () {
|
|
|
34008
34034
|
}
|
|
34009
34035
|
this.specificSetIdToLoad = this.plannerConfig.setId;
|
|
34010
34036
|
this.initializationType = 'BASKET';
|
|
34037
|
+
this.hasConfiguratorSessionId = true;
|
|
34011
34038
|
returnSuccessfully = true;
|
|
34012
|
-
case
|
|
34039
|
+
case 29:
|
|
34013
34040
|
if (!this.plannerConfig.catalogCodex) {
|
|
34014
|
-
_context.next =
|
|
34041
|
+
_context.next = 33;
|
|
34015
34042
|
break;
|
|
34016
34043
|
}
|
|
34017
|
-
_context.next =
|
|
34044
|
+
_context.next = 32;
|
|
34018
34045
|
return this.loadBasketByCatalogCodex(api);
|
|
34019
|
-
case 31:
|
|
34020
|
-
returnSuccessfully = _context.sent;
|
|
34021
34046
|
case 32:
|
|
34047
|
+
returnSuccessfully = _context.sent;
|
|
34048
|
+
case 33:
|
|
34022
34049
|
if (DivaUtils.bridge) {
|
|
34023
34050
|
DivaUtils.bridge.sendMessage({
|
|
34024
34051
|
type: 'ABN',
|
|
@@ -34031,55 +34058,55 @@ var DivaBasketHandler = /*#__PURE__*/function () {
|
|
|
34031
34058
|
this.initializationType = 'MODELINFO';
|
|
34032
34059
|
}
|
|
34033
34060
|
if (!returnSuccessfully) {
|
|
34034
|
-
_context.next =
|
|
34061
|
+
_context.next = 37;
|
|
34035
34062
|
break;
|
|
34036
34063
|
}
|
|
34037
34064
|
return _context.abrupt("return", returnSuccessfully);
|
|
34038
|
-
case
|
|
34065
|
+
case 37:
|
|
34039
34066
|
if (!this.loadDivaNr) {
|
|
34040
|
-
_context.next =
|
|
34067
|
+
_context.next = 44;
|
|
34041
34068
|
break;
|
|
34042
34069
|
}
|
|
34043
34070
|
this.initializationType = 'SERVER_DIVANR';
|
|
34044
|
-
_context.next =
|
|
34071
|
+
_context.next = 41;
|
|
34045
34072
|
return this.loadBasketByDivaNr(api, this.loadDivaNr);
|
|
34046
|
-
case
|
|
34073
|
+
case 41:
|
|
34047
34074
|
return _context.abrupt("return", _context.sent);
|
|
34048
|
-
case
|
|
34075
|
+
case 44:
|
|
34049
34076
|
if (!this.plannerConfig.customProductId) {
|
|
34050
|
-
_context.next =
|
|
34077
|
+
_context.next = 55;
|
|
34051
34078
|
break;
|
|
34052
34079
|
}
|
|
34053
34080
|
this.assignNewDivaNr = true;
|
|
34054
34081
|
params = api.getLoadProductBasketParams();
|
|
34055
34082
|
if (!params) {
|
|
34056
|
-
_context.next =
|
|
34083
|
+
_context.next = 51;
|
|
34057
34084
|
break;
|
|
34058
34085
|
}
|
|
34059
|
-
_context.next =
|
|
34086
|
+
_context.next = 50;
|
|
34060
34087
|
return this.loadBasketByCustomProductId(api, params.customProductField, this.plannerConfig.customProductId, (_params$customFieldsT = params.customFieldsToLoad) !== null && _params$customFieldsT !== void 0 && _params$customFieldsT.length ? params.customFieldsToLoad : []);
|
|
34061
|
-
case 49:
|
|
34062
|
-
return _context.abrupt("return", _context.sent);
|
|
34063
34088
|
case 50:
|
|
34089
|
+
return _context.abrupt("return", _context.sent);
|
|
34090
|
+
case 51:
|
|
34064
34091
|
this.initializationType = 'CUSTOM_PRODUCT_ID';
|
|
34065
34092
|
return _context.abrupt("return", false);
|
|
34066
|
-
case
|
|
34093
|
+
case 55:
|
|
34067
34094
|
if (!this.plannerConfig.productId) {
|
|
34068
|
-
_context.next =
|
|
34095
|
+
_context.next = 63;
|
|
34069
34096
|
break;
|
|
34070
34097
|
}
|
|
34071
34098
|
this.assignNewDivaNr = true;
|
|
34072
34099
|
this.initializationType = 'PRODUCT_ID';
|
|
34073
|
-
_context.next =
|
|
34100
|
+
_context.next = 60;
|
|
34074
34101
|
return this.initProductId(api, this.plannerConfig.productId);
|
|
34075
|
-
case
|
|
34102
|
+
case 60:
|
|
34076
34103
|
return _context.abrupt("return", _context.sent);
|
|
34077
|
-
case
|
|
34104
|
+
case 63:
|
|
34078
34105
|
if (!((_this$plannerConfig$s3 = this.plannerConfig.settings) !== null && _this$plannerConfig$s3 !== void 0 && (_this$plannerConfig$s3 = _this$plannerConfig$s3.ViewConfig) !== null && _this$plannerConfig$s3 !== void 0 && _this$plannerConfig$s3.loadStartProduct)) {
|
|
34079
|
-
_context.next =
|
|
34106
|
+
_context.next = 86;
|
|
34080
34107
|
break;
|
|
34081
34108
|
}
|
|
34082
|
-
_context.next =
|
|
34109
|
+
_context.next = 66;
|
|
34083
34110
|
return (_this$plannerConfig$h = this.plannerConfig.handler) === null || _this$plannerConfig$h === void 0 ? void 0 : _this$plannerConfig$h.productHandler.apiGetProductByFilter([{
|
|
34084
34111
|
id: 'startProductForOrganizations',
|
|
34085
34112
|
op: 'eq',
|
|
@@ -34093,35 +34120,35 @@ var DivaBasketHandler = /*#__PURE__*/function () {
|
|
|
34093
34120
|
op: 'eq',
|
|
34094
34121
|
value: (_this$plannerConfig$c3 = this.plannerConfig.currentOrganization) === null || _this$plannerConfig$c3 === void 0 ? void 0 : _this$plannerConfig$c3._id
|
|
34095
34122
|
}]);
|
|
34096
|
-
case
|
|
34123
|
+
case 66:
|
|
34097
34124
|
result = _context.sent;
|
|
34098
34125
|
if (!(result !== null && result !== void 0 && (_result$data$ = result.data[0]) !== null && _result$data$ !== void 0 && _result$data$._id)) {
|
|
34099
|
-
_context.next =
|
|
34126
|
+
_context.next = 75;
|
|
34100
34127
|
break;
|
|
34101
34128
|
}
|
|
34102
34129
|
this.startProductId = result === null || result === void 0 || (_result$data$2 = result.data[0]) === null || _result$data$2 === void 0 ? void 0 : _result$data$2._id;
|
|
34103
34130
|
this.initializationType = 'START_PRODUCT';
|
|
34104
|
-
_context.next =
|
|
34131
|
+
_context.next = 72;
|
|
34105
34132
|
return this.initProductId(api, result.data[0]._id);
|
|
34106
|
-
case
|
|
34133
|
+
case 72:
|
|
34107
34134
|
return _context.abrupt("return", _context.sent);
|
|
34108
|
-
case
|
|
34135
|
+
case 75:
|
|
34109
34136
|
successfully = false;
|
|
34110
34137
|
if (!((_this$plannerConfig$s4 = this.plannerConfig.settings) !== null && _this$plannerConfig$s4 !== void 0 && (_this$plannerConfig$s4 = _this$plannerConfig$s4.ViewConfig) !== null && _this$plannerConfig$s4 !== void 0 && _this$plannerConfig$s4.initFirstCatalog)) {
|
|
34111
|
-
_context.next =
|
|
34138
|
+
_context.next = 80;
|
|
34112
34139
|
break;
|
|
34113
34140
|
}
|
|
34114
|
-
_context.next =
|
|
34141
|
+
_context.next = 79;
|
|
34115
34142
|
return this.tryInitFirstCatalog(api);
|
|
34116
|
-
case 78:
|
|
34117
|
-
successfully = _context.sent;
|
|
34118
34143
|
case 79:
|
|
34144
|
+
successfully = _context.sent;
|
|
34145
|
+
case 80:
|
|
34119
34146
|
if (!successfully) {
|
|
34120
|
-
_context.next =
|
|
34147
|
+
_context.next = 82;
|
|
34121
34148
|
break;
|
|
34122
34149
|
}
|
|
34123
34150
|
return _context.abrupt("return", true);
|
|
34124
|
-
case
|
|
34151
|
+
case 82:
|
|
34125
34152
|
(_this$plannerConfig$a5 = this.plannerConfig.actions) === null || _this$plannerConfig$a5 === void 0 || _this$plannerConfig$a5.openModal({
|
|
34126
34153
|
accept: false,
|
|
34127
34154
|
reject: false,
|
|
@@ -34130,23 +34157,23 @@ var DivaBasketHandler = /*#__PURE__*/function () {
|
|
|
34130
34157
|
text: (_api$getI18n2 = api.getI18n()) === null || _api$getI18n2 === void 0 ? void 0 : _api$getI18n2.t('configurator.no_startproduct_defined_text')
|
|
34131
34158
|
});
|
|
34132
34159
|
LOG$7.error(new DivaError('it is configured to initialize the startProductForOrganizations if there are no other parameters. But no available product was found with organizationId: "' + this.plannerConfig.currentOrganization._id + '" in the field: "startProductForOrganizations"!'));
|
|
34133
|
-
case
|
|
34134
|
-
_context.next =
|
|
34160
|
+
case 84:
|
|
34161
|
+
_context.next = 91;
|
|
34135
34162
|
break;
|
|
34136
|
-
case
|
|
34163
|
+
case 86:
|
|
34137
34164
|
if (!((_this$plannerConfig$s5 = this.plannerConfig.settings) !== null && _this$plannerConfig$s5 !== void 0 && (_this$plannerConfig$s5 = _this$plannerConfig$s5.ViewConfig) !== null && _this$plannerConfig$s5 !== void 0 && _this$plannerConfig$s5.initFirstCatalog)) {
|
|
34138
|
-
_context.next =
|
|
34165
|
+
_context.next = 91;
|
|
34139
34166
|
break;
|
|
34140
34167
|
}
|
|
34141
34168
|
//USECASE 7 Default Catalog gets initialized
|
|
34142
34169
|
this.initializationType = 'DEFAULT_CATALOG';
|
|
34143
|
-
_context.next =
|
|
34170
|
+
_context.next = 90;
|
|
34144
34171
|
return this.tryInitFirstCatalog(api);
|
|
34145
|
-
case 89:
|
|
34146
|
-
return _context.abrupt("return", _context.sent);
|
|
34147
34172
|
case 90:
|
|
34173
|
+
return _context.abrupt("return", _context.sent);
|
|
34174
|
+
case 91:
|
|
34148
34175
|
if (!((_api$getPlannerType = api.getPlannerType()) !== null && _api$getPlannerType !== void 0 && _api$getPlannerType.includes('PRODUCTS') || (_this$plannerConfig$r = this.plannerConfig.returnTo) !== null && _this$plannerConfig$r !== void 0 && _this$plannerConfig$r.startsWith('SETPLANNER_OPEN_SELLER_BASKET'))) {
|
|
34149
|
-
_context.next =
|
|
34176
|
+
_context.next = 94;
|
|
34150
34177
|
break;
|
|
34151
34178
|
}
|
|
34152
34179
|
//UseCase 8
|
|
@@ -34155,9 +34182,9 @@ var DivaBasketHandler = /*#__PURE__*/function () {
|
|
|
34155
34182
|
return _context.abrupt("return", {
|
|
34156
34183
|
type: 'ProductList'
|
|
34157
34184
|
});
|
|
34158
|
-
case 93:
|
|
34159
|
-
return _context.abrupt("return", false);
|
|
34160
34185
|
case 94:
|
|
34186
|
+
return _context.abrupt("return", false);
|
|
34187
|
+
case 95:
|
|
34161
34188
|
case "end":
|
|
34162
34189
|
return _context.stop();
|
|
34163
34190
|
}
|
|
@@ -34425,8 +34452,9 @@ var DivaBasketHandler = /*#__PURE__*/function () {
|
|
|
34425
34452
|
}
|
|
34426
34453
|
}, {
|
|
34427
34454
|
key: "getBasketData",
|
|
34428
|
-
value: function getBasketData(divaNr) {
|
|
34429
|
-
|
|
34455
|
+
value: function getBasketData(divaNr, variantId) {
|
|
34456
|
+
var _this$baskets;
|
|
34457
|
+
return (_this$baskets = this.baskets[divaNr + '-' + variantId]) !== null && _this$baskets !== void 0 ? _this$baskets : this.baskets[divaNr];
|
|
34430
34458
|
}
|
|
34431
34459
|
}, {
|
|
34432
34460
|
key: "setBasketData",
|
|
@@ -34868,7 +34896,7 @@ var DivaBasketHandler = /*#__PURE__*/function () {
|
|
|
34868
34896
|
break;
|
|
34869
34897
|
case 3:
|
|
34870
34898
|
_context12.next = 5;
|
|
34871
|
-
return import('./PfisterWWSHandler-
|
|
34899
|
+
return import('./PfisterWWSHandler-306890c4.js');
|
|
34872
34900
|
case 5:
|
|
34873
34901
|
_yield$import = _context12.sent;
|
|
34874
34902
|
PfisterWWSHandler = _yield$import["default"];
|
|
@@ -34876,7 +34904,7 @@ var DivaBasketHandler = /*#__PURE__*/function () {
|
|
|
34876
34904
|
return _context12.abrupt("break", 27);
|
|
34877
34905
|
case 9:
|
|
34878
34906
|
_context12.next = 11;
|
|
34879
|
-
return import('./LiviqueWWSHandler-
|
|
34907
|
+
return import('./LiviqueWWSHandler-1d8bd04d.js');
|
|
34880
34908
|
case 11:
|
|
34881
34909
|
_yield$import2 = _context12.sent;
|
|
34882
34910
|
LiviqueWWSHandler = _yield$import2["default"];
|
|
@@ -34884,7 +34912,7 @@ var DivaBasketHandler = /*#__PURE__*/function () {
|
|
|
34884
34912
|
return _context12.abrupt("break", 27);
|
|
34885
34913
|
case 15:
|
|
34886
34914
|
_context12.next = 17;
|
|
34887
|
-
return import('./SeriousBasketHandler-
|
|
34915
|
+
return import('./SeriousBasketHandler-b9a37881.js');
|
|
34888
34916
|
case 17:
|
|
34889
34917
|
_yield$import3 = _context12.sent;
|
|
34890
34918
|
SeriousWWSHandler = _yield$import3["default"];
|
|
@@ -34892,7 +34920,7 @@ var DivaBasketHandler = /*#__PURE__*/function () {
|
|
|
34892
34920
|
return _context12.abrupt("break", 27);
|
|
34893
34921
|
case 21:
|
|
34894
34922
|
_context12.next = 23;
|
|
34895
|
-
return import('./StandardWWSHandler-
|
|
34923
|
+
return import('./StandardWWSHandler-e18e1760.js');
|
|
34896
34924
|
case 23:
|
|
34897
34925
|
_yield$import4 = _context12.sent;
|
|
34898
34926
|
StandardWWSHandler = _yield$import4["default"];
|
|
@@ -36227,7 +36255,7 @@ var PlannerHandler3D = /*#__PURE__*/function () {
|
|
|
36227
36255
|
while (1) switch (_context3.prev = _context3.next) {
|
|
36228
36256
|
case 0:
|
|
36229
36257
|
_context3.next = 2;
|
|
36230
|
-
return import('./Host3DSignalR-
|
|
36258
|
+
return import('./Host3DSignalR-b7a3ef2b.js');
|
|
36231
36259
|
case 2:
|
|
36232
36260
|
_yield$import = _context3.sent;
|
|
36233
36261
|
Host3DSignalR = _yield$import["default"];
|
|
@@ -37069,7 +37097,7 @@ var PlannerHandler3D = /*#__PURE__*/function () {
|
|
|
37069
37097
|
_this2.liveArSocket.auth = _objectSpread$6(_objectSpread$6({}, _this2.liveArSocket.auth), {}, {
|
|
37070
37098
|
connectionId: data.connectionId
|
|
37071
37099
|
});
|
|
37072
|
-
resolve(_this2.liveArViewerUrl + '?liveArConnectionId=' + data.connectionId + '&organizationId=' + _this2.renderSettings.OrganizationId + '&divaSessionId=' + DivaUtils.SessionId);
|
|
37100
|
+
resolve(_this2.liveArViewerUrl + '?liveArConnectionId=' + data.connectionId + '&organizationId=' + _this2.renderSettings.OrganizationId + '&divaSessionId=' + DivaUtils.SessionId + DivaUtils.ConfigurationId ? '&configurationId=' + DivaUtils.ConfigurationId : '');
|
|
37073
37101
|
});
|
|
37074
37102
|
_this2.liveArSocket.on('connect_error', function (err) {
|
|
37075
37103
|
return reject(err);
|
|
@@ -37770,18 +37798,18 @@ var DivaPlannerHandler = /*#__PURE__*/function () {
|
|
|
37770
37798
|
break;
|
|
37771
37799
|
case 8:
|
|
37772
37800
|
_context4.next = 10;
|
|
37773
|
-
return import('./DivaStandardPlanner-
|
|
37801
|
+
return import('./DivaStandardPlanner-4a467c1f.js');
|
|
37774
37802
|
case 10:
|
|
37775
37803
|
_yield$import = _context4.sent;
|
|
37776
37804
|
DivaStandardPlanner = _yield$import["default"];
|
|
37777
|
-
planner = new DivaStandardPlanner(set, this.plannerHandlerFunctions.updatePlannerMsgContainer, this.plannerIDCount, this.setPlannerHandler.getGlobalBoundingBox(), set.api.getHidePlanner(), !!set.api.
|
|
37805
|
+
planner = new DivaStandardPlanner(set, this.plannerHandlerFunctions.updatePlannerMsgContainer, this.plannerIDCount, this.setPlannerHandler.getGlobalBoundingBox(), set.api.getHidePlanner(), !!set.api.enableAR, set.api.getDoDisablePlanner2D(), hasStaticBackground);
|
|
37778
37806
|
if (catalogData.isIDM3DCat) {
|
|
37779
37807
|
planner.initIDM3DMeta(catalogData.IDM3DCatCodex);
|
|
37780
37808
|
}
|
|
37781
37809
|
return _context4.abrupt("break", 21);
|
|
37782
37810
|
case 15:
|
|
37783
37811
|
_context4.next = 17;
|
|
37784
|
-
return import('./DivaBoxPlanner-
|
|
37812
|
+
return import('./DivaBoxPlanner-18be0386.js');
|
|
37785
37813
|
case 17:
|
|
37786
37814
|
_yield$import2 = _context4.sent;
|
|
37787
37815
|
DivaBoxPlanner = _yield$import2["default"];
|
|
@@ -39508,7 +39536,7 @@ var DivaWebPlanner = /*#__PURE__*/function () {
|
|
|
39508
39536
|
case 12:
|
|
39509
39537
|
loadSuccessful = _context13.sent;
|
|
39510
39538
|
if (!loadSuccessful) {
|
|
39511
|
-
_context13.next =
|
|
39539
|
+
_context13.next = 61;
|
|
39512
39540
|
break;
|
|
39513
39541
|
}
|
|
39514
39542
|
if (!(typeof loadSuccessful != 'boolean')) {
|
|
@@ -39583,6 +39611,9 @@ var DivaWebPlanner = /*#__PURE__*/function () {
|
|
|
39583
39611
|
this.subscribeToWebPlannerEvents();
|
|
39584
39612
|
this.divaBasketHandler.actBasket;
|
|
39585
39613
|
catalogData = set === null || set === void 0 ? void 0 : set.CatalogData;
|
|
39614
|
+
if (!this.divaBasketHandler.hasConfiguratorSessionIdGetter || DivaUtils.businessMetrics.getConfiguratorSessionId() == undefined) {
|
|
39615
|
+
DivaUtils.businessMetrics.setConfiguratorSessionId();
|
|
39616
|
+
}
|
|
39586
39617
|
initializationId = undefined;
|
|
39587
39618
|
if (this.divaBasketHandler.initializationTypeGetter == 'PRODUCT_ID') {
|
|
39588
39619
|
//KONFIGURATOR LOADED BY PRODUCT. LOG THIS HERE! WITH PRODUCT NAME AND PRODUCT ID
|
|
@@ -39606,16 +39637,16 @@ var DivaWebPlanner = /*#__PURE__*/function () {
|
|
|
39606
39637
|
initializationType: this.divaBasketHandler.initializationTypeGetter,
|
|
39607
39638
|
initializationId: initializationId
|
|
39608
39639
|
}, false);
|
|
39609
|
-
_context13.next =
|
|
39640
|
+
_context13.next = 58;
|
|
39610
39641
|
return this.fillBaksetforOnWebPlanerConfigChange(undefined, true);
|
|
39611
|
-
case
|
|
39642
|
+
case 58:
|
|
39612
39643
|
return _context13.abrupt("return", true);
|
|
39613
|
-
case
|
|
39644
|
+
case 61:
|
|
39614
39645
|
this.onInitializationError();
|
|
39615
39646
|
//fehler beim laden vom basket..
|
|
39616
39647
|
LOG$1.errorTransaction('LOADING_BASKET', 'BASKET_0002', 'Fehler beim Laden des Baskets', {}, true);
|
|
39617
39648
|
return _context13.abrupt("return", false);
|
|
39618
|
-
case
|
|
39649
|
+
case 64:
|
|
39619
39650
|
case "end":
|
|
39620
39651
|
return _context13.stop();
|
|
39621
39652
|
}
|
|
@@ -40601,7 +40632,7 @@ var DivaWebPlanner = /*#__PURE__*/function () {
|
|
|
40601
40632
|
key: "saveToBasket",
|
|
40602
40633
|
value: function () {
|
|
40603
40634
|
var _saveToBasket = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee26(event, repairOnly, force) {
|
|
40604
|
-
var _returnTo, _returnTo2, _returnTo3, _this$actions32, _this$actions33, _this$actions34;
|
|
40635
|
+
var _returnTo, _returnTo2, _returnTo3, _this$actions32, _this$actions33, _this$actions34, _this$divaBasketHandl2;
|
|
40605
40636
|
var set, actBasket, returnTo, oldReturnTo, result, newDivaNr, _result2, product;
|
|
40606
40637
|
return _regeneratorRuntime.wrap(function _callee26$(_context26) {
|
|
40607
40638
|
while (1) switch (_context26.prev = _context26.next) {
|
|
@@ -40719,7 +40750,7 @@ var DivaWebPlanner = /*#__PURE__*/function () {
|
|
|
40719
40750
|
return _context26.abrupt("break", 52);
|
|
40720
40751
|
case 52:
|
|
40721
40752
|
if (returnTo == 'DONT_SAVE_BASKET') event = 'dontSaveBasket';
|
|
40722
|
-
actBasket = this.divaBasketHandler.getBasketData(actBasket.DivaNr); //get pdf documenturl from saved basket
|
|
40753
|
+
actBasket = (_this$divaBasketHandl2 = this.divaBasketHandler.getBasketData(actBasket.DivaNr, actBasket.DocumentVersion)) !== null && _this$divaBasketHandl2 !== void 0 ? _this$divaBasketHandl2 : actBasket; //get pdf documenturl from saved basket
|
|
40723
40754
|
_context26.next = 56;
|
|
40724
40755
|
return this.addToBasket(actBasket, event);
|
|
40725
40756
|
case 56:
|
|
@@ -40869,8 +40900,8 @@ var DivaWebPlanner = /*#__PURE__*/function () {
|
|
|
40869
40900
|
}, {
|
|
40870
40901
|
key: "doAllowSetPlanner",
|
|
40871
40902
|
value: function doAllowSetPlanner() {
|
|
40872
|
-
var _this$returnTo, _this$
|
|
40873
|
-
return this.api.doAllowSetPlanner() || ((_this$returnTo = this.returnTo) === null || _this$returnTo === void 0 ? void 0 : _this$returnTo.startsWith('SETPLANNER')) || !!((_this$
|
|
40903
|
+
var _this$returnTo, _this$divaBasketHandl3;
|
|
40904
|
+
return this.api.doAllowSetPlanner() || ((_this$returnTo = this.returnTo) === null || _this$returnTo === void 0 ? void 0 : _this$returnTo.startsWith('SETPLANNER')) || !!((_this$divaBasketHandl3 = this.divaBasketHandler) !== null && _this$divaBasketHandl3 !== void 0 && (_this$divaBasketHandl3 = _this$divaBasketHandl3.actBasket) !== null && _this$divaBasketHandl3 !== void 0 && _this$divaBasketHandl3.SetPlannerInfos);
|
|
40874
40905
|
}
|
|
40875
40906
|
}, {
|
|
40876
40907
|
key: "doShow3DDimensionLines",
|
|
@@ -40907,18 +40938,18 @@ var DivaWebPlanner = /*#__PURE__*/function () {
|
|
|
40907
40938
|
}, {
|
|
40908
40939
|
key: "getAllowRTV",
|
|
40909
40940
|
value: function getAllowRTV() {
|
|
40910
|
-
var _this$actSet22, _this$actSet23;
|
|
40941
|
+
var _this$state3, _this$actSet22, _this$state4, _this$actSet23;
|
|
40911
40942
|
if (this.getEnableUnityRtvKombi()) return false;
|
|
40912
|
-
if (this.
|
|
40943
|
+
if ((_this$state3 = this.state) !== null && _this$state3 !== void 0 && _this$state3.organization.settings.forceRTV) return true;
|
|
40913
40944
|
if ((_this$actSet22 = this.actSet()) !== null && _this$actSet22 !== void 0 && _this$actSet22.CatalogData.divaForceRTV) return true;
|
|
40914
|
-
if (this.
|
|
40945
|
+
if ((_this$state4 = this.state) !== null && _this$state4 !== void 0 && _this$state4.organization.settings.enableRTV && (_this$actSet23 = this.actSet()) !== null && _this$actSet23 !== void 0 && _this$actSet23.CatalogData.divaArReady) return true;
|
|
40915
40946
|
return false;
|
|
40916
40947
|
}
|
|
40917
40948
|
}, {
|
|
40918
|
-
key: "
|
|
40919
|
-
value: function
|
|
40949
|
+
key: "getAllowQRCodeAR",
|
|
40950
|
+
value: function getAllowQRCodeAR() {
|
|
40920
40951
|
var _this$actSet24;
|
|
40921
|
-
if (this.api.
|
|
40952
|
+
if (this.api.enableAR && (_this$actSet24 = this.actSet()) !== null && _this$actSet24 !== void 0 && _this$actSet24.CatalogData.divaArReady) return true;
|
|
40922
40953
|
return false;
|
|
40923
40954
|
}
|
|
40924
40955
|
}, {
|
|
@@ -40996,7 +41027,7 @@ var DivaWebPlanner = /*#__PURE__*/function () {
|
|
|
40996
41027
|
_this$actions37,
|
|
40997
41028
|
_this$actions38,
|
|
40998
41029
|
_this$actions39,
|
|
40999
|
-
_this$
|
|
41030
|
+
_this$divaBasketHandl4,
|
|
41000
41031
|
_this3 = this,
|
|
41001
41032
|
_this$actions40,
|
|
41002
41033
|
_this$actions41,
|
|
@@ -41048,7 +41079,7 @@ var DivaWebPlanner = /*#__PURE__*/function () {
|
|
|
41048
41079
|
});
|
|
41049
41080
|
return _context28.abrupt("break", 32);
|
|
41050
41081
|
case 15:
|
|
41051
|
-
emailConfig = (_this$
|
|
41082
|
+
emailConfig = (_this$divaBasketHandl4 = this.divaBasketHandler.emailConfig) !== null && _this$divaBasketHandl4 !== void 0 ? _this$divaBasketHandl4 : this.getEmailConfig(); //reset the emailConfig
|
|
41052
41083
|
this.divaBasketHandler.emailConfig = undefined;
|
|
41053
41084
|
if (emailConfig) {
|
|
41054
41085
|
to = (_emailConfig$to$split = (_emailConfig$to = emailConfig.to) === null || _emailConfig$to === void 0 ? void 0 : _emailConfig$to.split(',').map(function (mail) {
|