@crystaldesign/web-planner-logic 25.13.0-beta.14 → 25.13.0-beta.16

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.
Files changed (63) hide show
  1. package/build/cjs/{DivaBoxPlanner-9549d8bf.js → DivaBoxPlanner-a850dc31.js} +2 -2
  2. package/build/cjs/{DivaStandardPlanner-6b5e6211.js → DivaStandardPlanner-c196253e.js} +2 -2
  3. package/build/cjs/{DoorPlanner-4b586dd8.js → DoorPlanner-7e7bcf59.js} +1 -1
  4. package/build/cjs/{Host3DSignalR-9705dea3.js → Host3DSignalR-429573e7.js} +1 -1
  5. package/build/cjs/{LiviqueWWSHandler-45f0a711.js → LiviqueWWSHandler-e2971b57.js} +1 -1
  6. package/build/cjs/{PfisterWWSHandler-7042eb96.js → PfisterWWSHandler-ed10d673.js} +1 -1
  7. package/build/cjs/{PlannerHandler2D-7298729d.js → PlannerHandler2D-592a8d17.js} +1 -1
  8. package/build/cjs/{SeriousBasketHandler-dd5447a3.js → SeriousBasketHandler-df034dbb.js} +1 -1
  9. package/build/cjs/{ShelfPlanner-b196052e.js → ShelfPlanner-a01c0b3e.js} +1 -1
  10. package/build/cjs/{StandardWWSHandler-1ea53ac8.js → StandardWWSHandler-e8910a1e.js} +1 -1
  11. package/build/cjs/{index-7b86e8cc.js → index-37ca61e8.js} +519 -394
  12. package/build/cjs/index.js +1 -1
  13. package/build/esm/{DivaBoxPlanner-25248fbc.js → DivaBoxPlanner-7bc7acad.js} +2 -2
  14. package/build/esm/{DivaStandardPlanner-3cfa5c94.js → DivaStandardPlanner-0e136414.js} +2 -2
  15. package/build/esm/{DoorPlanner-75939b8b.js → DoorPlanner-e38165f4.js} +1 -1
  16. package/build/esm/{Host3DSignalR-8b8cfc39.js → Host3DSignalR-5e56991f.js} +1 -1
  17. package/build/esm/{LiviqueWWSHandler-18d1ad7d.js → LiviqueWWSHandler-d044b4ad.js} +1 -1
  18. package/build/esm/{PfisterWWSHandler-2e9453df.js → PfisterWWSHandler-c2d91047.js} +1 -1
  19. package/build/esm/{PlannerHandler2D-7026227c.js → PlannerHandler2D-43a53123.js} +1 -1
  20. package/build/esm/{SeriousBasketHandler-14d38820.js → SeriousBasketHandler-c33642ba.js} +1 -1
  21. package/build/esm/{ShelfPlanner-5d152a35.js → ShelfPlanner-874c2d5f.js} +1 -1
  22. package/build/esm/{StandardWWSHandler-0d9670d3.js → StandardWWSHandler-77100dbb.js} +1 -1
  23. package/build/esm/{index-ff01605a.js → index-4fa42732.js} +519 -394
  24. package/build/esm/index.js +1 -1
  25. package/build/types/web-planner-logic/src/interface/AdditionalModelInfos.d.ts +19 -0
  26. package/build/types/web-planner-logic/src/interface/AdditionalModelInfos.d.ts.map +1 -1
  27. package/build/types/web-planner-logic/src/interface/Articles/AccessoireItemType.d.ts +1 -1
  28. package/build/types/web-planner-logic/src/interface/Articles/AccessoireItemType.d.ts.map +1 -1
  29. package/build/types/web-planner-logic/src/interface/Articles/CatalogArticleDataType.d.ts +6 -15
  30. package/build/types/web-planner-logic/src/interface/Articles/CatalogArticleDataType.d.ts.map +1 -1
  31. package/build/types/web-planner-logic/src/interface/Articles/CatalogPlannerArticleViewDataType.d.ts +1 -1
  32. package/build/types/web-planner-logic/src/interface/Articles/CatalogPlannerArticleViewDataType.d.ts.map +1 -1
  33. package/build/types/web-planner-logic/src/interface/DivaCatalogDataType.d.ts +1 -1
  34. package/build/types/web-planner-logic/src/interface/DivaCatalogDataType.d.ts.map +1 -1
  35. package/build/types/web-planner-logic/src/interface/OptionTypes/ArticleOptionDataTypes.d.ts +6 -0
  36. package/build/types/web-planner-logic/src/interface/OptionTypes/ArticleOptionDataTypes.d.ts.map +1 -1
  37. package/build/types/web-planner-logic/src/interface/OptionTypes/ArticleOptionValueView.d.ts +1 -1
  38. package/build/types/web-planner-logic/src/interface/OptionTypes/ArticleOptionValueView.d.ts.map +1 -1
  39. package/build/types/web-planner-logic/src/interface/OptionTypes/CatalogOptionDataTypes.d.ts +26 -20
  40. package/build/types/web-planner-logic/src/interface/OptionTypes/CatalogOptionDataTypes.d.ts.map +1 -1
  41. package/build/types/web-planner-logic/src/interface/ShelfPlanner/ShelfAccessoiresView.d.ts +1 -1
  42. package/build/types/web-planner-logic/src/interface/ShelfPlanner/ShelfAccessoiresView.d.ts.map +1 -1
  43. package/build/types/web-planner-logic/src/logic/Planner/DivaPlannerHandler.d.ts.map +1 -1
  44. package/build/types/web-planner-logic/src/logic/Set/DivaSetHandler.d.ts.map +1 -1
  45. package/build/types/web-planner-logic/src/model/Articles/Article/CatalogArticleData.d.ts +3 -13
  46. package/build/types/web-planner-logic/src/model/Articles/Article/CatalogArticleData.d.ts.map +1 -1
  47. package/build/types/web-planner-logic/src/model/Articles/Article/DivaCatalogArticle.d.ts +3 -3
  48. package/build/types/web-planner-logic/src/model/Articles/Article/DivaCatalogArticle.d.ts.map +1 -1
  49. package/build/types/web-planner-logic/src/model/Articles/Article/IDMCatalogArticle.d.ts +3 -3
  50. package/build/types/web-planner-logic/src/model/Articles/Article/IDMCatalogArticle.d.ts.map +1 -1
  51. package/build/types/web-planner-logic/src/model/Catalog/CatalogData.d.ts +2 -1
  52. package/build/types/web-planner-logic/src/model/Catalog/CatalogData.d.ts.map +1 -1
  53. package/build/types/web-planner-logic/src/model/Catalog/DivaCatalogData.d.ts +6 -1
  54. package/build/types/web-planner-logic/src/model/Catalog/DivaCatalogData.d.ts.map +1 -1
  55. package/build/types/web-planner-logic/src/model/Options/ArticleOptionData.d.ts +2 -1
  56. package/build/types/web-planner-logic/src/model/Options/ArticleOptionData.d.ts.map +1 -1
  57. package/build/types/web-planner-logic/src/model/Options/ArticleOptionValueData.d.ts +3 -9
  58. package/build/types/web-planner-logic/src/model/Options/ArticleOptionValueData.d.ts.map +1 -1
  59. package/build/types/web-planner-logic/src/model/Options/CatalogOptionData.d.ts +5 -3
  60. package/build/types/web-planner-logic/src/model/Options/CatalogOptionData.d.ts.map +1 -1
  61. package/build/types/web-planner-logic/src/model/Options/CatalogOptionValueData.d.ts +6 -4
  62. package/build/types/web-planner-logic/src/model/Options/CatalogOptionValueData.d.ts.map +1 -1
  63. package/package.json +2 -2
@@ -1899,115 +1899,11 @@ var CatalogPlannerArticleData = /*#__PURE__*/function () {
1899
1899
  var LOG$o = DivaUtils.initLog('Planner', 'WEB-PLANNER-LOGIC');
1900
1900
  var OptionCatalogData = /*#__PURE__*/function () {
1901
1901
  function OptionCatalogData(opt, catalogData) {
1902
+ var _this$opt$property;
1902
1903
  _classCallCheck(this, OptionCatalogData);
1903
1904
  _defineProperty(this, "opt", void 0);
1904
1905
  this.opt = opt;
1905
- for (var i = 0; i < ((_this$opt$property = this.opt.property) === null || _this$opt$property === void 0 ? void 0 : _this$opt$property.length); i++) {
1906
- var _this$opt$property;
1907
- var prop = this.opt.property[i];
1908
- var key = prop.Codex;
1909
- if (key.startsWith(catalogData.catalogCodex + '__')) key = key.replace(catalogData.catalogCodex + '__', '');
1910
- switch (key) {
1911
- case 'INFO_URL':
1912
- this.opt.url = prop.Value;
1913
- break;
1914
- case 'IGNORE_GROUPS':
1915
- this.opt.ignoreGroups = prop.Value == '1';
1916
- break;
1917
- case 'IGNORE_PGR_GROUP_POSITION':
1918
- this.opt.ignorePgrGroupPosition = prop.Value == '1';
1919
- break;
1920
- case 'SHOW_SEARCHBAR':
1921
- this.opt.showSearchbar = prop.Value == '1';
1922
- break;
1923
- case 'SHOW_FILTER':
1924
- this.opt.showFilter = prop.Value == '1';
1925
- break;
1926
- case 'INFO_PDF':
1927
- this.opt.pdfUrl = prop.Value;
1928
- break;
1929
- case 'DIAMETER':
1930
- this.opt.diameter = !!prop.Value;
1931
- break;
1932
- case 'PAIROPTION':
1933
- this.opt.pairWithOptionsToGroup = prop.Value;
1934
- break;
1935
- case 'REQUIRES_USER_INPUT':
1936
- this.opt.requiresUserInput = !!prop.Value;
1937
- break;
1938
- case 'IS_STATE':
1939
- this.opt.isDescribingState = !!prop.Value;
1940
- break;
1941
- case 'CUSTOM_DIMENSION':
1942
- this.opt.customDimension = !!prop.Value;
1943
- break;
1944
- case 'CUSTOM_DIMENSION_TEXT':
1945
- this.opt.customDimensionText = prop.Value;
1946
- break;
1947
- case 'HIDE_OPTION_IN_CONFIGURATOR':
1948
- this.opt.hideOptionInConfigurator = !!prop.Value;
1949
- break;
1950
- case 'MERGE_IDM_TO_OPG':
1951
- this.opt.mergeIDMToOPG = prop.Value;
1952
- break;
1953
- case 'ONLY_VISIBLE_IF_NOT_UNDOCK':
1954
- this.opt.onlyVisibleIfNotDocked = prop.Value;
1955
- break;
1956
- case 'ONLY_VISIBLE_IF_CONFIG_SINGLE':
1957
- this.opt.onlyVisibleIfConfigSingle = prop.Value;
1958
- break;
1959
- case 'ONLY_VISIBLE_IF_CONFIG_ALL':
1960
- this.opt.onlyVisibleIfConfigAll = prop.Value;
1961
- break;
1962
- case 'ISDEFAULTVALUEFOROPTIONS':
1963
- this.opt.isDefaultValueForOptions = prop.Value;
1964
- break;
1965
- case 'FREETEXT_DEFAULT_VALUE':
1966
- this.opt.freetextDefaultValue = prop.Value;
1967
- break;
1968
- case 'SHOW_IN_VARIANTDESC':
1969
- this.opt.forceShowVariantDesc = prop.Value;
1970
- break;
1971
- case 'SHOW_SEPARAT_ON_TABGROUP':
1972
- this.opt.showOnSeparatTabgroup = prop.Value;
1973
- break;
1974
- case 'SETNAME':
1975
- this.opt.setName = prop.Value;
1976
- break;
1977
- case 'ADD_OPT_TO_TABGROUP_IN_PL_SUM':
1978
- this.opt.addOptionToTabgroupInPartlistSummary = prop.Value;
1979
- break;
1980
- case 'ADD_TO_WWS':
1981
- this.opt.addToWWS = prop.Value;
1982
- break;
1983
- case 'DEFAULT_SIBLING_OPTION':
1984
- this.opt.isDefaultSiblingOption = prop.Value;
1985
- break;
1986
- case 'CONTENT_ITEM':
1987
- this.opt.contentItemId = prop.Value;
1988
- break;
1989
- case 'SendToPim':
1990
- this.opt.sendToPIM = prop.Value == '1';
1991
- break;
1992
- case 'Multiselect':
1993
- this.opt.isMultiselect = prop.Value == '1';
1994
- break;
1995
- case 'ADDITIONAL_GROUP_FILTER':
1996
- this.opt.additionalGroupFilter = JSON.parse(prop.Value);
1997
- break;
1998
- case 'ION_COMMENT_TEXT':
1999
- case 'SHOW_IN_BASKET_WHEN_HAS_PRICE':
2000
- case 'FEATURE_TYPE':
2001
- case 'EshopCategoryMapping':
2002
- case 'EshopSearchRelevant':
2003
- case 'IsSalesText':
2004
- case 'IsArtName':
2005
- break;
2006
- default:
2007
- LOG$o.debug('implement mapping for these props for options: ' + prop.Codex);
2008
- break;
2009
- }
2010
- }
1906
+ setOptionsProperties(catalogData, this.opt.propertyObj, (_this$opt$property = this.opt.property) !== null && _this$opt$property !== void 0 ? _this$opt$property : []);
2011
1907
  }
2012
1908
 
2013
1909
  /**************************************************GETTER ***************************************************/
@@ -2091,10 +1987,15 @@ var OptionCatalogData = /*#__PURE__*/function () {
2091
1987
  get: function get() {
2092
1988
  return this.opt.articlePlaceholder;
2093
1989
  }
1990
+ }, {
1991
+ key: "isMultiselect",
1992
+ get: function get() {
1993
+ return this.opt.isMultiselect;
1994
+ }
2094
1995
  }, {
2095
1996
  key: "isDefaultSiblingOption",
2096
1997
  get: function get() {
2097
- return this.opt.isDefaultSiblingOption;
1998
+ return this.opt.propertyObj.isDefaultSiblingOption;
2098
1999
  }
2099
2000
  }, {
2100
2001
  key: "layout",
@@ -2105,90 +2006,90 @@ var OptionCatalogData = /*#__PURE__*/function () {
2105
2006
  this.opt.layout = layout;
2106
2007
  }
2107
2008
  }, {
2108
- key: "pairWithOptionsToGroup",
2009
+ key: "measureKey",
2109
2010
  get: function get() {
2110
- return this.opt.pairWithOptionsToGroup;
2011
+ return this.opt.measureKey;
2111
2012
  }
2112
2013
  }, {
2113
- key: "isDescribingState",
2014
+ key: "pairWithOptionsToGroup",
2114
2015
  get: function get() {
2115
- return this.opt.isDescribingState;
2016
+ return this.opt.propertyObj.pairWithOptionsToGroup;
2116
2017
  }
2117
2018
  }, {
2118
- key: "requiresUserInput",
2019
+ key: "isDescribingState",
2119
2020
  get: function get() {
2120
- return this.opt.requiresUserInput;
2021
+ return this.opt.propertyObj.isDescribingState;
2121
2022
  }
2122
2023
  }, {
2123
- key: "isMultiselect",
2024
+ key: "requiresUserInput",
2124
2025
  get: function get() {
2125
- return this.opt.isMultiselect;
2026
+ return this.opt.propertyObj.requiresUserInput;
2126
2027
  }
2127
2028
  }, {
2128
2029
  key: "hideOptionInConfigurator",
2129
2030
  get: function get() {
2130
- return this.opt.hideOptionInConfigurator;
2031
+ return this.opt.propertyObj.hideOptionInConfigurator;
2131
2032
  }
2132
2033
  }, {
2133
2034
  key: "mergeIDMToOPG",
2134
2035
  get: function get() {
2135
- return this.opt.mergeIDMToOPG;
2036
+ return this.opt.propertyObj.mergeIDMToOPG;
2136
2037
  }
2137
2038
  }, {
2138
2039
  key: "onlyVisibleIfNotDocked",
2139
2040
  get: function get() {
2140
2041
  // deprecated: was used for Bail amalfi accessoires
2141
- return this.opt.onlyVisibleIfNotDocked;
2042
+ return this.opt.propertyObj.onlyVisibleIfNotDocked;
2142
2043
  }
2143
2044
  }, {
2144
2045
  key: "onlyVisibleIfConfigSingle",
2145
2046
  get: function get() {
2146
- return this.opt.onlyVisibleIfConfigSingle;
2047
+ return this.opt.propertyObj.onlyVisibleIfConfigSingle;
2147
2048
  }
2148
2049
  }, {
2149
2050
  key: "onlyVisibleIfConfigAll",
2150
2051
  get: function get() {
2151
- return this.opt.onlyVisibleIfConfigAll;
2052
+ return this.opt.propertyObj.onlyVisibleIfConfigAll;
2152
2053
  }
2153
2054
  }, {
2154
2055
  key: "isDefaultValueForOptions",
2155
2056
  get: function get() {
2156
- return this.opt.isDefaultValueForOptions;
2057
+ return this.opt.propertyObj.isDefaultValueForOptions;
2157
2058
  }
2158
2059
  }, {
2159
2060
  key: "freetextDefaultValue",
2160
2061
  get: function get() {
2161
- return this.opt.freetextDefaultValue;
2062
+ return this.opt.propertyObj.freetextDefaultValue;
2162
2063
  }
2163
2064
  }, {
2164
2065
  key: "url",
2165
2066
  get: function get() {
2166
- return this.opt.url;
2067
+ return this.opt.propertyObj.url;
2167
2068
  }
2168
2069
  }, {
2169
2070
  key: "showSearchbar",
2170
2071
  get: function get() {
2171
- return this.opt.showSearchbar;
2072
+ return this.opt.propertyObj.showSearchbar;
2172
2073
  }
2173
2074
  }, {
2174
2075
  key: "showFilter",
2175
2076
  get: function get() {
2176
- return this.opt.showFilter;
2077
+ return this.opt.propertyObj.showFilter;
2177
2078
  }
2178
2079
  }, {
2179
2080
  key: "pdfUrl",
2180
2081
  get: function get() {
2181
- return this.opt.pdfUrl;
2082
+ return this.opt.propertyObj.pdfUrl;
2182
2083
  }
2183
2084
  }, {
2184
2085
  key: "diameter",
2185
2086
  get: function get() {
2186
- return this.opt.diameter;
2087
+ return this.opt.propertyObj.diameter;
2187
2088
  }
2188
2089
  }, {
2189
2090
  key: "forceShowVariantDesc",
2190
2091
  get: function get() {
2191
- return this.opt.forceShowVariantDesc;
2092
+ return this.opt.propertyObj.forceShowVariantDesc;
2192
2093
  }
2193
2094
  }, {
2194
2095
  key: "maskTabgroup",
@@ -2198,47 +2099,42 @@ var OptionCatalogData = /*#__PURE__*/function () {
2198
2099
  }, {
2199
2100
  key: "showOnSeparatTabgroup",
2200
2101
  get: function get() {
2201
- return this.opt.showOnSeparatTabgroup;
2102
+ return this.opt.propertyObj.showOnSeparatTabgroup;
2202
2103
  }
2203
2104
  }, {
2204
2105
  key: "setName",
2205
2106
  get: function get() {
2206
- return this.opt.setName;
2107
+ return this.opt.propertyObj.setName;
2207
2108
  }
2208
2109
  }, {
2209
2110
  key: "addOptionToTabgroupInPartlistSummary",
2210
2111
  get: function get() {
2211
- return this.opt.addOptionToTabgroupInPartlistSummary;
2112
+ return this.opt.propertyObj.addOptionToTabgroupInPartlistSummary;
2212
2113
  }
2213
2114
  }, {
2214
2115
  key: "addToWWS",
2215
2116
  get: function get() {
2216
- return this.opt.addToWWS;
2117
+ return this.opt.propertyObj.addToWWS;
2217
2118
  }
2218
2119
  }, {
2219
2120
  key: "sendToPIM",
2220
2121
  get: function get() {
2221
- return this.opt.sendToPIM;
2222
- }
2223
- }, {
2224
- key: "measureKey",
2225
- get: function get() {
2226
- return this.opt.measureKey;
2122
+ return this.opt.propertyObj.sendToPIM;
2227
2123
  }
2228
2124
  }, {
2229
2125
  key: "contentItemId",
2230
2126
  get: function get() {
2231
- return this.opt.contentItemId;
2127
+ return this.opt.propertyObj.contentItemId;
2232
2128
  }
2233
2129
  }, {
2234
2130
  key: "customDimension",
2235
2131
  get: function get() {
2236
- return this.opt.customDimension;
2132
+ return this.opt.propertyObj.customDimension;
2237
2133
  }
2238
2134
  }, {
2239
2135
  key: "customDimensionText",
2240
2136
  get: function get() {
2241
- return this.opt.customDimensionText;
2137
+ return this.opt.propertyObj.customDimensionText;
2242
2138
  }
2243
2139
  }, {
2244
2140
  key: "sequenceNo",
@@ -2248,20 +2144,121 @@ var OptionCatalogData = /*#__PURE__*/function () {
2248
2144
  }, {
2249
2145
  key: "ignoreGroups",
2250
2146
  get: function get() {
2251
- return this.opt.ignoreGroups;
2147
+ return this.opt.propertyObj.ignoreGroups;
2252
2148
  }
2253
2149
  }, {
2254
2150
  key: "ignorePgrGroupPosition",
2255
2151
  get: function get() {
2256
- return this.opt.ignorePgrGroupPosition;
2152
+ return this.opt.propertyObj.ignorePgrGroupPosition;
2257
2153
  }
2258
2154
  }, {
2259
2155
  key: "additionalGroupFilter",
2260
2156
  get: function get() {
2261
- return this.opt.additionalGroupFilter;
2157
+ return this.opt.propertyObj.additionalGroupFilter;
2262
2158
  }
2263
2159
  }]);
2264
2160
  }();
2161
+ var setOptionsProperties = function setOptionsProperties(catalogData, opt, properties) {
2162
+ for (var i = 0; i < (properties === null || properties === void 0 ? void 0 : properties.length); i++) {
2163
+ var prop = properties[i];
2164
+ var key = prop.Codex;
2165
+ if (key.startsWith(catalogData.catalogCodex + '__')) key = key.replace(catalogData.catalogCodex + '__', '');
2166
+ switch (key) {
2167
+ case 'INFO_URL':
2168
+ opt.url = prop.Value;
2169
+ break;
2170
+ case 'IGNORE_GROUPS':
2171
+ opt.ignoreGroups = prop.Value == '1';
2172
+ break;
2173
+ case 'IGNORE_PGR_GROUP_POSITION':
2174
+ opt.ignorePgrGroupPosition = prop.Value == '1';
2175
+ break;
2176
+ case 'SHOW_SEARCHBAR':
2177
+ opt.showSearchbar = prop.Value == '1';
2178
+ break;
2179
+ case 'SHOW_FILTER':
2180
+ opt.showFilter = prop.Value == '1';
2181
+ break;
2182
+ case 'INFO_PDF':
2183
+ opt.pdfUrl = prop.Value;
2184
+ break;
2185
+ case 'DIAMETER':
2186
+ opt.diameter = !!prop.Value;
2187
+ break;
2188
+ case 'PAIROPTION':
2189
+ opt.pairWithOptionsToGroup = prop.Value;
2190
+ break;
2191
+ case 'REQUIRES_USER_INPUT':
2192
+ opt.requiresUserInput = !!prop.Value;
2193
+ break;
2194
+ case 'IS_STATE':
2195
+ opt.isDescribingState = !!prop.Value;
2196
+ break;
2197
+ case 'CUSTOM_DIMENSION':
2198
+ opt.customDimension = !!prop.Value;
2199
+ break;
2200
+ case 'CUSTOM_DIMENSION_TEXT':
2201
+ opt.customDimensionText = prop.Value;
2202
+ break;
2203
+ case 'HIDE_OPTION_IN_CONFIGURATOR':
2204
+ opt.hideOptionInConfigurator = !!prop.Value;
2205
+ break;
2206
+ case 'MERGE_IDM_TO_OPG':
2207
+ opt.mergeIDMToOPG = prop.Value;
2208
+ break;
2209
+ case 'ONLY_VISIBLE_IF_NOT_UNDOCK':
2210
+ opt.onlyVisibleIfNotDocked = prop.Value;
2211
+ break;
2212
+ case 'ONLY_VISIBLE_IF_CONFIG_SINGLE':
2213
+ opt.onlyVisibleIfConfigSingle = prop.Value;
2214
+ break;
2215
+ case 'ONLY_VISIBLE_IF_CONFIG_ALL':
2216
+ opt.onlyVisibleIfConfigAll = prop.Value;
2217
+ break;
2218
+ case 'ISDEFAULTVALUEFOROPTIONS':
2219
+ opt.isDefaultValueForOptions = prop.Value;
2220
+ break;
2221
+ case 'FREETEXT_DEFAULT_VALUE':
2222
+ opt.freetextDefaultValue = prop.Value;
2223
+ break;
2224
+ case 'SHOW_IN_VARIANTDESC':
2225
+ opt.forceShowVariantDesc = prop.Value;
2226
+ break;
2227
+ case 'SHOW_SEPARAT_ON_TABGROUP':
2228
+ opt.showOnSeparatTabgroup = prop.Value;
2229
+ break;
2230
+ case 'SETNAME':
2231
+ opt.setName = !!prop.Value;
2232
+ break;
2233
+ case 'ADD_OPT_TO_TABGROUP_IN_PL_SUM':
2234
+ opt.addOptionToTabgroupInPartlistSummary = prop.Value;
2235
+ break;
2236
+ case 'ADD_TO_WWS':
2237
+ opt.addToWWS = !!prop.Value;
2238
+ break;
2239
+ case 'DEFAULT_SIBLING_OPTION':
2240
+ opt.isDefaultSiblingOption = prop.Value;
2241
+ break;
2242
+ case 'CONTENT_ITEM':
2243
+ opt.contentItemId = prop.Value;
2244
+ break;
2245
+ case 'ADDITIONAL_GROUP_FILTER':
2246
+ opt.additionalGroupFilter = JSON.parse(prop.Value);
2247
+ break;
2248
+ case 'ION_COMMENT_TEXT':
2249
+ case 'SHOW_IN_BASKET_WHEN_HAS_PRICE':
2250
+ case 'FEATURE_TYPE':
2251
+ case 'EshopCategoryMapping':
2252
+ case 'EshopSearchRelevant':
2253
+ case 'IsSalesText':
2254
+ case 'IsArtName':
2255
+ break;
2256
+ default:
2257
+ LOG$o.debug('implement mapping for these props for options: ' + prop.Codex);
2258
+ break;
2259
+ }
2260
+ }
2261
+ };
2265
2262
 
2266
2263
  //https://en.wikipedia.org/wiki/List_of_RAL_colors#RAL_Effect
2267
2264
  var ralEffect = [{
@@ -16055,7 +16052,8 @@ var ralClassics = [{
16055
16052
  var LOG$n = DivaUtils.initLog('Planner', 'WEB-PLANNER-LOGIC');
16056
16053
  var OptionValueCatalogData = /*#__PURE__*/function () {
16057
16054
  function OptionValueCatalogData(opv, catalogData) {
16058
- var _this = this;
16055
+ var _this = this,
16056
+ _this$opv$property;
16059
16057
  _classCallCheck(this, OptionValueCatalogData);
16060
16058
  _defineProperty(this, "opv", void 0);
16061
16059
  /**
@@ -16112,114 +16110,7 @@ var OptionValueCatalogData = /*#__PURE__*/function () {
16112
16110
  });
16113
16111
  this.opv = opv;
16114
16112
  opv.colorGroups = this.mapRALColorToGroup();
16115
- var metaDatas = [];
16116
- for (var i = 0; i < ((_this$opv$property$le = (_this$opv$property = this.opv.property) === null || _this$opv$property === void 0 ? void 0 : _this$opv$property.length) !== null && _this$opv$property$le !== void 0 ? _this$opv$property$le : 0); i++) {
16117
- var _this$opv$property$le, _this$opv$property, _this$opv$property2;
16118
- var prop = (_this$opv$property2 = this.opv.property) === null || _this$opv$property2 === void 0 ? void 0 : _this$opv$property2[i];
16119
- var key = prop.Codex;
16120
- if (key.startsWith(catalogData.catalogCodex + '__')) key = key.replace(catalogData.catalogCodex + '__', '');
16121
- switch (key) {
16122
- case 'INFO_URL':
16123
- this.opv.url = prop.Value;
16124
- break;
16125
- case 'INFO_PDF':
16126
- this.opv.pdfUrl = prop.Value;
16127
- break;
16128
- case 'SAME_OPV':
16129
- this.opv.sameopv = prop.Value;
16130
- break;
16131
- case 'ONLY_VISIBLE_IF_NOT_UNDOCK':
16132
- this.opv.onlyVisibleIfNotDocked = prop.Value;
16133
- break;
16134
- case 'DEFAULT_VALUE':
16135
- this.opv.defaultValue = prop.Value;
16136
- break;
16137
- case 'SUMMARY_CODEX':
16138
- this.opv.summaryCodex = prop.Value;
16139
- break;
16140
- case 'VIEWPOINTNAME':
16141
- this.opv.viewPointName = prop.Value;
16142
- break;
16143
- case 'HIDE_IN_SUMMARY':
16144
- this.opv.hideInSummary = !!prop.Value;
16145
- break;
16146
- case 'SETNAME':
16147
- this.opv.setName = prop.Value;
16148
- break;
16149
- case 'SET_CONFIG':
16150
- this.opv.setConfig = prop.Value;
16151
- break;
16152
- case 'CUSTOM_DIMENSION':
16153
- if (prop.Value == 1 || prop.Value == 0) {
16154
- this.opv.customDimension = !!prop.Value;
16155
- } else if (!isNaN(Number(prop.Value))) {
16156
- this.opv.customDimension = Number(prop.Value);
16157
- } else {
16158
- console.error('Error: Invalid custom dimension value: ' + prop.Value + ' at opv: ' + this.opv.codex);
16159
- this.opv.customDimension = undefined;
16160
- }
16161
- break;
16162
- case 'ON_RULE':
16163
- this.opv.onRule = prop.Value;
16164
- break;
16165
- case 'CONTENT_ITEM':
16166
- this.opv.contentItemId = prop.Value;
16167
- break;
16168
- case 'IS_NOT_RELEVANT':
16169
- this.opv.isNotRelevant = prop.Value;
16170
- break;
16171
- case 'GROUP_CONTENT_ITEM':
16172
- this.opv.groupContentItemId = prop.Value;
16173
- break;
16174
- case 'SET_BY_RULE':
16175
- this.opv.setByRule = prop.Value;
16176
- break;
16177
- case 'ADD_TO_MEASURE':
16178
- this.opv.addToMeasure = prop.Value.split(';').map(function (v) {
16179
- return {
16180
- op: v.split(':')[0],
16181
- value: Number(v.split(':')[1]),
16182
- opt: 'OPT' + v.split(':')[2]
16183
- };
16184
- });
16185
- break;
16186
- case 'PIMFlatValues':
16187
- this.opv.isPIMFlatValue = prop.Value == '1';
16188
- break;
16189
- case 'IsVariantAttribute':
16190
- this.opv.isVariantAttribute = prop.Value == '1';
16191
- break;
16192
- case 'ION_COMMENT_TEXT':
16193
- case 'EshopCategoryMapping':
16194
- case 'TopFilterAttribute':
16195
- case 'PriceTageRelevant':
16196
- case 'IsArtName':
16197
- break;
16198
- default:
16199
- if (key.includes('__')) break;
16200
- LOG$n.debug('implement mapping for these props for optionValue: ' + prop.Codex);
16201
- var values_locales = [];
16202
- if (prop.Value_locales) {
16203
- var _prop$Value_locales;
16204
- var langs = Object.keys((_prop$Value_locales = prop.Value_locales) !== null && _prop$Value_locales !== void 0 ? _prop$Value_locales : {});
16205
- for (var j = 0; j < langs.length; j++) {
16206
- var lang = langs[j];
16207
- var values = prop.Value_locales[lang].split(';');
16208
- for (var m = 0; m < values.length; m++) {
16209
- if (!values_locales[m]) values_locales[m] = {};
16210
- values_locales[m][lang] = values[m];
16211
- }
16212
- }
16213
- }
16214
- metaDatas.push({
16215
- codex: prop.Codex,
16216
- name: prop.Name,
16217
- values: prop.Value.split(';'),
16218
- values_locales: values_locales
16219
- });
16220
- break;
16221
- }
16222
- }
16113
+ var metaDatas = setOptionValueProperties(catalogData, this.opv.propertyObj, (_this$opv$property = this.opv.property) !== null && _this$opv$property !== void 0 ? _this$opv$property : []);
16223
16114
  this.opv.metaData = metaDatas;
16224
16115
  }
16225
16116
  /**************************************************GETTER ************************************************** */
@@ -16233,11 +16124,6 @@ var OptionValueCatalogData = /*#__PURE__*/function () {
16233
16124
  get: function get() {
16234
16125
  return this.opv.vCodex;
16235
16126
  }
16236
- }, {
16237
- key: "isNotRelevant",
16238
- get: function get() {
16239
- return this.opv.isNotRelevant;
16240
- }
16241
16127
  }, {
16242
16128
  key: "name",
16243
16129
  get: function get() {
@@ -16366,15 +16252,20 @@ var OptionValueCatalogData = /*#__PURE__*/function () {
16366
16252
  get: function get() {
16367
16253
  return this.opv.value;
16368
16254
  }
16255
+ }, {
16256
+ key: "isNotRelevant",
16257
+ get: function get() {
16258
+ return this.opv.propertyObj.isNotRelevant;
16259
+ }
16369
16260
  }, {
16370
16261
  key: "contentItemId",
16371
16262
  get: function get() {
16372
- return this.opv.contentItemId;
16263
+ return this.opv.propertyObj.contentItemId;
16373
16264
  }
16374
16265
  }, {
16375
16266
  key: "groupContentItemId",
16376
16267
  get: function get() {
16377
- return this.opv.groupContentItemId;
16268
+ return this.opv.propertyObj.groupContentItemId;
16378
16269
  }
16379
16270
  }, {
16380
16271
  key: "metaData",
@@ -16403,18 +16294,13 @@ var OptionValueCatalogData = /*#__PURE__*/function () {
16403
16294
  var _this$opv$metaData;
16404
16295
  return (_this$opv$metaData = this.opv.metaData) !== null && _this$opv$metaData !== void 0 ? _this$opv$metaData : [];
16405
16296
  }
16406
- }, {
16407
- key: "url",
16408
- get: function get() {
16409
- return this.opv.url;
16410
- }
16411
16297
  }, {
16412
16298
  key: "pdfUrl",
16413
16299
  get: function get() {
16414
16300
  var _this$opv$textbaustei, _this$opv$textbaustei2;
16415
16301
  return (_this$opv$textbaustei = (_this$opv$textbaustei2 = this.opv.textbausteine) === null || _this$opv$textbaustei2 === void 0 || (_this$opv$textbaustei2 = _this$opv$textbaustei2.find(function (item) {
16416
16302
  return item.Memo.endsWith('.pdf');
16417
- })) === null || _this$opv$textbaustei2 === void 0 ? void 0 : _this$opv$textbaustei2.Memo) !== null && _this$opv$textbaustei !== void 0 ? _this$opv$textbaustei : this.opv.pdfUrl;
16303
+ })) === null || _this$opv$textbaustei2 === void 0 ? void 0 : _this$opv$textbaustei2.Memo) !== null && _this$opv$textbaustei !== void 0 ? _this$opv$textbaustei : this.opv.propertyObj.pdfUrl;
16418
16304
  }
16419
16305
  }, {
16420
16306
  key: "rals",
@@ -16426,10 +16312,15 @@ var OptionValueCatalogData = /*#__PURE__*/function () {
16426
16312
  get: function get() {
16427
16313
  return this.opv.colorGroups;
16428
16314
  }
16315
+ }, {
16316
+ key: "url",
16317
+ get: function get() {
16318
+ return this.opv.propertyObj.url;
16319
+ }
16429
16320
  }, {
16430
16321
  key: "sameopv",
16431
16322
  get: function get() {
16432
- return this.opv.sameopv;
16323
+ return this.opv.propertyObj.sameopv;
16433
16324
  }
16434
16325
  }, {
16435
16326
  key: "isCustomAttribute",
@@ -16439,27 +16330,27 @@ var OptionValueCatalogData = /*#__PURE__*/function () {
16439
16330
  }, {
16440
16331
  key: "onlyVisibleIfNotDocked",
16441
16332
  get: function get() {
16442
- return this.opv.onlyVisibleIfNotDocked;
16333
+ return this.opv.propertyObj.onlyVisibleIfNotDocked;
16443
16334
  }
16444
16335
  }, {
16445
16336
  key: "defaultValue",
16446
16337
  get: function get() {
16447
- return this.opv.defaultValue;
16338
+ return this.opv.propertyObj.defaultValue;
16448
16339
  }
16449
16340
  }, {
16450
16341
  key: "summaryCodex",
16451
16342
  get: function get() {
16452
- return this.opv.summaryCodex;
16343
+ return this.opv.propertyObj.summaryCodex;
16453
16344
  }
16454
16345
  }, {
16455
16346
  key: "viewPointName",
16456
16347
  get: function get() {
16457
- return this.opv.viewPointName;
16348
+ return this.opv.propertyObj.viewPointName;
16458
16349
  }
16459
16350
  }, {
16460
16351
  key: "hideInSummary",
16461
16352
  get: function get() {
16462
- return this.opv.hideInSummary;
16353
+ return this.opv.propertyObj.hideInSummary;
16463
16354
  }
16464
16355
  }, {
16465
16356
  key: "hiddenByMask",
@@ -16469,45 +16360,156 @@ var OptionValueCatalogData = /*#__PURE__*/function () {
16469
16360
  }, {
16470
16361
  key: "setName",
16471
16362
  get: function get() {
16472
- return this.opv.setName;
16363
+ return this.opv.propertyObj.setName;
16473
16364
  }
16474
16365
  }, {
16475
16366
  key: "setConfig",
16476
16367
  get: function get() {
16477
- return this.opv.setConfig;
16368
+ return this.opv.propertyObj.setConfig;
16478
16369
  }
16479
16370
  }, {
16480
16371
  key: "setByRule",
16481
16372
  get: function get() {
16482
- return this.opv.setByRule;
16373
+ return this.opv.propertyObj.setByRule;
16483
16374
  }
16484
16375
  }, {
16485
16376
  key: "onRule",
16486
16377
  get: function get() {
16487
- return this.opv.onRule;
16378
+ return this.opv.propertyObj.onRule;
16488
16379
  }
16489
16380
  }, {
16490
16381
  key: "customDimension",
16491
16382
  get: function get() {
16492
- return this.opv.customDimension;
16383
+ return this.opv.propertyObj.customDimension;
16493
16384
  }
16494
16385
  }, {
16495
16386
  key: "addToMeasure",
16496
16387
  get: function get() {
16497
- return this.opv.addToMeasure;
16388
+ return this.opv.propertyObj.addToMeasure;
16498
16389
  }
16499
16390
  }, {
16500
16391
  key: "isPIMFlatValue",
16501
16392
  get: function get() {
16502
- return this.opv.isPIMFlatValue;
16393
+ return this.opv.propertyObj.isPIMFlatValue;
16503
16394
  }
16504
16395
  }, {
16505
16396
  key: "isVariantAttribute",
16506
16397
  get: function get() {
16507
- return this.opv.isVariantAttribute;
16398
+ return this.opv.propertyObj.isVariantAttribute;
16508
16399
  }
16509
16400
  }]);
16510
16401
  }();
16402
+ var setOptionValueProperties = function setOptionValueProperties(catalogData, opv, properties) {
16403
+ var metaDatas = [];
16404
+ for (var i = 0; i < ((_properties$length = properties === null || properties === void 0 ? void 0 : properties.length) !== null && _properties$length !== void 0 ? _properties$length : 0); i++) {
16405
+ var _properties$length;
16406
+ var prop = properties === null || properties === void 0 ? void 0 : properties[i];
16407
+ var key = prop.Codex;
16408
+ if (key.startsWith(catalogData.catalogCodex + '__')) key = key.replace(catalogData.catalogCodex + '__', '');
16409
+ switch (key) {
16410
+ case 'INFO_URL':
16411
+ opv.url = prop.Value;
16412
+ break;
16413
+ case 'INFO_PDF':
16414
+ opv.pdfUrl = prop.Value;
16415
+ break;
16416
+ case 'SAME_OPV':
16417
+ opv.sameopv = prop.Value;
16418
+ break;
16419
+ case 'ONLY_VISIBLE_IF_NOT_UNDOCK':
16420
+ opv.onlyVisibleIfNotDocked = prop.Value;
16421
+ break;
16422
+ case 'DEFAULT_VALUE':
16423
+ opv.defaultValue = prop.Value;
16424
+ break;
16425
+ case 'SUMMARY_CODEX':
16426
+ opv.summaryCodex = prop.Value;
16427
+ break;
16428
+ case 'VIEWPOINTNAME':
16429
+ opv.viewPointName = prop.Value;
16430
+ break;
16431
+ case 'HIDE_IN_SUMMARY':
16432
+ opv.hideInSummary = !!prop.Value;
16433
+ break;
16434
+ case 'SETNAME':
16435
+ opv.setName = prop.Value;
16436
+ break;
16437
+ case 'SET_CONFIG':
16438
+ opv.setConfig = prop.Value;
16439
+ break;
16440
+ case 'CUSTOM_DIMENSION':
16441
+ if (prop.Value == '1' || prop.Value == '0') {
16442
+ opv.customDimension = !!prop.Value;
16443
+ } else if (!isNaN(Number(prop.Value))) {
16444
+ opv.customDimension = Number(prop.Value);
16445
+ } else {
16446
+ console.error('Error: Invalid custom dimension value: ' + prop.Value + ' at opv: ' + opv);
16447
+ opv.customDimension = undefined;
16448
+ }
16449
+ break;
16450
+ case 'ON_RULE':
16451
+ opv.onRule = prop.Value;
16452
+ break;
16453
+ case 'CONTENT_ITEM':
16454
+ opv.contentItemId = prop.Value;
16455
+ break;
16456
+ case 'IS_NOT_RELEVANT':
16457
+ opv.isNotRelevant = !!prop.Value;
16458
+ break;
16459
+ case 'GROUP_CONTENT_ITEM':
16460
+ opv.groupContentItemId = prop.Value;
16461
+ break;
16462
+ case 'SET_BY_RULE':
16463
+ opv.setByRule = prop.Value;
16464
+ break;
16465
+ case 'ADD_TO_MEASURE':
16466
+ opv.addToMeasure = prop.Value.split(';').map(function (v) {
16467
+ return {
16468
+ op: v.split(':')[0],
16469
+ value: Number(v.split(':')[1]),
16470
+ opt: 'OPT' + v.split(':')[2]
16471
+ };
16472
+ });
16473
+ break;
16474
+ case 'PIMFlatValues':
16475
+ opv.isPIMFlatValue = prop.Value == '1';
16476
+ break;
16477
+ case 'IsVariantAttribute':
16478
+ opv.isVariantAttribute = prop.Value == '1';
16479
+ break;
16480
+ case 'ION_COMMENT_TEXT':
16481
+ case 'EshopCategoryMapping':
16482
+ case 'TopFilterAttribute':
16483
+ case 'PriceTageRelevant':
16484
+ case 'IsArtName':
16485
+ break;
16486
+ default:
16487
+ if (key.includes('__')) break;
16488
+ LOG$n.debug('implement mapping for these props for optionValue: ' + prop.Codex);
16489
+ var values_locales = [];
16490
+ if (prop.Value_locales) {
16491
+ var _prop$Value_locales;
16492
+ var langs = Object.keys((_prop$Value_locales = prop.Value_locales) !== null && _prop$Value_locales !== void 0 ? _prop$Value_locales : {});
16493
+ for (var j = 0; j < langs.length; j++) {
16494
+ var lang = langs[j];
16495
+ var values = prop.Value_locales[lang].split(';');
16496
+ for (var m = 0; m < values.length; m++) {
16497
+ if (!values_locales[m]) values_locales[m] = {};
16498
+ values_locales[m][lang] = values[m];
16499
+ }
16500
+ }
16501
+ }
16502
+ metaDatas.push({
16503
+ codex: prop.Codex,
16504
+ name: prop.Name,
16505
+ values: prop.Value.split(';'),
16506
+ values_locales: values_locales
16507
+ });
16508
+ break;
16509
+ }
16510
+ }
16511
+ return metaDatas;
16512
+ };
16511
16513
 
16512
16514
  function _createForOfIteratorHelper$b(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray$b(r)) || e && r && "number" == typeof r.length) { t && (r = t); var _n = 0, F = function F() {}; return { s: F, n: function n() { return _n >= r.length ? { done: !0 } : { done: !1, value: r[_n++] }; }, e: function e(r) { throw r; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var o, a = !0, u = !1; return { s: function s() { t = t.call(r); }, n: function n() { var r = t.next(); return a = r.done, r; }, e: function e(r) { u = !0, o = r; }, f: function f() { try { a || null == t["return"] || t["return"](); } finally { if (u) throw o; } } }; }
16513
16515
  function _unsupportedIterableToArray$b(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray$b(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray$b(r, a) : void 0; } }
@@ -16523,7 +16525,7 @@ var CatalogArticleData = /*#__PURE__*/function () {
16523
16525
  if (!_this._catalogArticle.metaData) return metaData;
16524
16526
  for (var i = 0; i < _this._catalogArticle.metaData.length; i++) {
16525
16527
  var data = _this._catalogArticle.metaData[i];
16526
- metaData[data.codex] = locales ? data.values_locales : data.values;
16528
+ metaData[data.codex] = locales && data.values_locales ? data.values_locales : data.values;
16527
16529
  }
16528
16530
  return metaData;
16529
16531
  });
@@ -17389,8 +17391,9 @@ function setCatalogPlannsCompletely(catalogData) {
17389
17391
  }
17390
17392
  }
17391
17393
  function getCatalogArticle$1(jsonArticle, catalogData) {
17392
- var _catalogData$catalogM, _articleMask$name$cat, _articleMask$name, _jsonArticle$Metadata, _articleMask$properti, _articleMask$groupnam, _articleMask$groupnam2, _articleMask$hidden;
17394
+ var _catalogData$catalogM, _catalogData$catalogM2, _catalogData$catalogM3, _articleMask$name$cat, _articleMask$name, _jsonArticle$Metadata, _articleMask$groupnam, _articleMask$groupnam2, _articleMask$hidden;
17393
17395
  var articleMask = (_catalogData$catalogM = catalogData.catalogMask) === null || _catalogData$catalogM === void 0 || (_catalogData$catalogM = _catalogData$catalogM.articles) === null || _catalogData$catalogM === void 0 ? void 0 : _catalogData$catalogM[jsonArticle.Codex];
17396
+ var maskProperties = getPropertiesForItemNo((_catalogData$catalogM2 = (_catalogData$catalogM3 = catalogData.catalogMask) === null || _catalogData$catalogM3 === void 0 ? void 0 : _catalogData$catalogM3.properties) !== null && _catalogData$catalogM2 !== void 0 ? _catalogData$catalogM2 : [], jsonArticle.Codex, catalogData.api.getLanguage());
17394
17397
  //parse den Json Article und erstelle CatalogArticle
17395
17398
  return {
17396
17399
  articleCodex: jsonArticle.Codex,
@@ -17407,7 +17410,7 @@ function getCatalogArticle$1(jsonArticle, catalogData) {
17407
17410
  articleOptions: {},
17408
17411
  decisions: [],
17409
17412
  idmDecisions: [],
17410
- properties: [].concat(_toConsumableArray((_jsonArticle$Metadata = jsonArticle.Metadatas) !== null && _jsonArticle$Metadata !== void 0 ? _jsonArticle$Metadata : []), _toConsumableArray((_articleMask$properti = articleMask === null || articleMask === void 0 ? void 0 : articleMask.properties) !== null && _articleMask$properti !== void 0 ? _articleMask$properti : [])),
17413
+ properties: [].concat(_toConsumableArray((_jsonArticle$Metadata = jsonArticle.Metadatas) !== null && _jsonArticle$Metadata !== void 0 ? _jsonArticle$Metadata : []), _toConsumableArray(maskProperties !== null && maskProperties !== void 0 ? maskProperties : [])),
17411
17414
  image: jsonArticle.Image && jsonArticle.Image != '' ? jsonArticle.Image : undefined,
17412
17415
  groupName: (_articleMask$groupnam = articleMask === null || articleMask === void 0 || (_articleMask$groupnam2 = articleMask.groupname) === null || _articleMask$groupnam2 === void 0 ? void 0 : _articleMask$groupnam2[catalogData.api.getLanguage()]) !== null && _articleMask$groupnam !== void 0 ? _articleMask$groupnam : jsonArticle.GroupName,
17413
17416
  origGroupName: jsonArticle.GroupName,
@@ -17493,9 +17496,10 @@ function initCatalogOptions(catalogData, jsonOptions) {
17493
17496
  return options;
17494
17497
  }
17495
17498
  function getCatalogOptionDataType(codex, jsonOPT, catalogData) {
17496
- var _catalogData$catalogM2, _catalogData$catalogM3, _catalogData$catalogM4, _jsonOPT$Properties, _optionMask$propertie, _optionMask$name$cata, _optionMask$name, _optionMask$name2, _optionMask$hidden, _optionMask$tabGroup, _ref, _optionMask$layout, _properties$find, _jsonOPT$showOPVAsArt;
17497
- var optionMask = (_catalogData$catalogM2 = (_catalogData$catalogM3 = catalogData.catalogMask) === null || _catalogData$catalogM3 === void 0 || (_catalogData$catalogM3 = _catalogData$catalogM3.options) === null || _catalogData$catalogM3 === void 0 ? void 0 : _catalogData$catalogM3[codex]) !== null && _catalogData$catalogM2 !== void 0 ? _catalogData$catalogM2 : codex.startsWith('OPT') ? (_catalogData$catalogM4 = catalogData.catalogMask) === null || _catalogData$catalogM4 === void 0 || (_catalogData$catalogM4 = _catalogData$catalogM4.options) === null || _catalogData$catalogM4 === void 0 ? void 0 : _catalogData$catalogM4[codex.substring(3)] : undefined;
17498
- var properties = [].concat(_toConsumableArray((_jsonOPT$Properties = jsonOPT.Properties) !== null && _jsonOPT$Properties !== void 0 ? _jsonOPT$Properties : []), _toConsumableArray((_optionMask$propertie = optionMask === null || optionMask === void 0 ? void 0 : optionMask.properties) !== null && _optionMask$propertie !== void 0 ? _optionMask$propertie : []));
17499
+ var _catalogData$catalogM4, _catalogData$catalogM5, _catalogData$catalogM6, _catalogData$catalogM7, _catalogData$catalogM8, _jsonOPT$Properties, _optionMask$name$cata, _optionMask$name, _optionMask$name2, _optionMask$hidden, _optionMask$tabGroup, _ref, _optionMask$layout, _properties$find, _jsonOPT$showOPVAsArt, _properties$find2, _properties$find3;
17500
+ var maskProperties = getPropertiesForFeatureNo((_catalogData$catalogM4 = (_catalogData$catalogM5 = catalogData.catalogMask) === null || _catalogData$catalogM5 === void 0 ? void 0 : _catalogData$catalogM5.properties) !== null && _catalogData$catalogM4 !== void 0 ? _catalogData$catalogM4 : [], undefined, codex, catalogData.api.getLanguage());
17501
+ var optionMask = (_catalogData$catalogM6 = (_catalogData$catalogM7 = catalogData.catalogMask) === null || _catalogData$catalogM7 === void 0 || (_catalogData$catalogM7 = _catalogData$catalogM7.options) === null || _catalogData$catalogM7 === void 0 ? void 0 : _catalogData$catalogM7[codex]) !== null && _catalogData$catalogM6 !== void 0 ? _catalogData$catalogM6 : codex.startsWith('OPT') ? (_catalogData$catalogM8 = catalogData.catalogMask) === null || _catalogData$catalogM8 === void 0 || (_catalogData$catalogM8 = _catalogData$catalogM8.options) === null || _catalogData$catalogM8 === void 0 ? void 0 : _catalogData$catalogM8[codex.substring(3)] : undefined;
17502
+ var properties = [].concat(_toConsumableArray((_jsonOPT$Properties = jsonOPT.Properties) !== null && _jsonOPT$Properties !== void 0 ? _jsonOPT$Properties : []), _toConsumableArray(maskProperties !== null && maskProperties !== void 0 ? maskProperties : []));
17499
17503
  var opt = {
17500
17504
  codex: codex,
17501
17505
  name: (_optionMask$name$cata = optionMask === null || optionMask === void 0 || (_optionMask$name = optionMask.name) === null || _optionMask$name === void 0 ? void 0 : _optionMask$name[catalogData.api.getLanguage()]) !== null && _optionMask$name$cata !== void 0 ? _optionMask$name$cata : jsonOPT.Name,
@@ -17509,8 +17513,6 @@ function getCatalogOptionDataType(codex, jsonOPT, catalogData) {
17509
17513
  layout: (_ref = (_optionMask$layout = optionMask === null || optionMask === void 0 ? void 0 : optionMask.layout) !== null && _optionMask$layout !== void 0 ? _optionMask$layout : properties === null || properties === void 0 || (_properties$find = properties.find(function (p) {
17510
17514
  return p.Codex == 'LAYOUT';
17511
17515
  })) === null || _properties$find === void 0 ? void 0 : _properties$find.Value) !== null && _ref !== void 0 ? _ref : jsonOPT.Layout != undefined ? jsonOPT.Layout : 'IMAGE',
17512
- multiselect: jsonOPT.Multiselect != undefined ? jsonOPT.Multiselect == 'True' : false,
17513
- sendToPIM: !!jsonOPT.SendToPIM,
17514
17516
  useMaxPriceOfGroup: jsonOPT.UseMaxPriceOfGroup != undefined ? Number(jsonOPT.UseMaxPriceOfGroup) : undefined,
17515
17517
  calcPercentOnOptions: jsonOPT.CalcPercentOnOptions,
17516
17518
  hideGroupNameInOrderText: jsonOPT.hideGroupNameInOrderText != undefined ? jsonOPT.hideGroupNameInOrderText == 'True' : false,
@@ -17520,7 +17522,13 @@ function getCatalogOptionDataType(codex, jsonOPT, catalogData) {
17520
17522
  property: properties,
17521
17523
  parentOptionCodex: jsonOPT.ParentOptionCodex,
17522
17524
  articlePlaceholder: jsonOPT.ArticlePlaceholder && jsonOPT.ArticlePlaceholder == 'True' ? true : false,
17523
- isMultiselect: jsonOPT.Multiselect != undefined ? jsonOPT.Multiselect == 'True' : false
17525
+ sendToPIM: !!jsonOPT.SendToPIM || !!(properties !== null && properties !== void 0 && (_properties$find2 = properties.find(function (p) {
17526
+ return p.Codex == 'SendToPim';
17527
+ })) !== null && _properties$find2 !== void 0 && _properties$find2.Value),
17528
+ isMultiselect: jsonOPT.Multiselect != undefined ? jsonOPT.Multiselect == 'True' : !!(properties !== null && properties !== void 0 && (_properties$find3 = properties.find(function (p) {
17529
+ return p.Codex == 'Multiselect';
17530
+ })) !== null && _properties$find3 !== void 0 && _properties$find3.Value),
17531
+ propertyObj: {}
17524
17532
  };
17525
17533
  opt.showOPVCodex = opt.showOPVCodex || opt.showOPVAsArticleNr;
17526
17534
  opt.invisible = opt.invisible || opt.headerPosVariationType == 'U';
@@ -17535,9 +17543,11 @@ function initCatalogOptionValues(catalogData, jsonOptions) {
17535
17543
  return optionValues;
17536
17544
  }
17537
17545
  function getCatalogOptionValueDataType(codex, jsonOPV, catalogData) {
17538
- var _catalogData$catalogM5, _catalogData$catalogM6, _catalogData$catalogM7, _optionvalues$codex, _mask$name$catalogDat, _mask$name, _mask$name2, _mask$groupname$catal, _mask$groupname, _mask$groupname2, _jsonOPV$MeasureStep, _jsonOPV$Value, _jsonOPV$Metadatas, _mask$properties;
17539
- var optionvalues = (_catalogData$catalogM5 = (_catalogData$catalogM6 = catalogData.catalogMask) === null || _catalogData$catalogM6 === void 0 ? void 0 : _catalogData$catalogM6.optionvalues) !== null && _catalogData$catalogM5 !== void 0 ? _catalogData$catalogM5 : (_catalogData$catalogM7 = catalogData.catalogMask) === null || _catalogData$catalogM7 === void 0 ? void 0 : _catalogData$catalogM7.optionValues;
17546
+ var _catalogData$catalogM9, _catalogData$catalogM10, _catalogData$catalogM11, _optionvalues$codex, _catalogData$catalogM12, _catalogData$catalogM13, _jsonOPV$Metadatas, _mask$name$catalogDat, _mask$name, _mask$name2, _mask$groupname$catal, _mask$groupname, _mask$groupname2, _jsonOPV$MeasureStep, _jsonOPV$Value;
17547
+ var optionvalues = (_catalogData$catalogM9 = (_catalogData$catalogM10 = catalogData.catalogMask) === null || _catalogData$catalogM10 === void 0 ? void 0 : _catalogData$catalogM10.optionvalues) !== null && _catalogData$catalogM9 !== void 0 ? _catalogData$catalogM9 : (_catalogData$catalogM11 = catalogData.catalogMask) === null || _catalogData$catalogM11 === void 0 ? void 0 : _catalogData$catalogM11.optionValues;
17540
17548
  var mask = (_optionvalues$codex = optionvalues === null || optionvalues === void 0 ? void 0 : optionvalues[codex]) !== null && _optionvalues$codex !== void 0 ? _optionvalues$codex : codex.startsWith('OPV') ? optionvalues === null || optionvalues === void 0 ? void 0 : optionvalues[codex.substring(3)] : undefined;
17549
+ var maskProperties = getPropertiesForOptionKey((_catalogData$catalogM12 = (_catalogData$catalogM13 = catalogData.catalogMask) === null || _catalogData$catalogM13 === void 0 ? void 0 : _catalogData$catalogM13.properties) !== null && _catalogData$catalogM12 !== void 0 ? _catalogData$catalogM12 : [], undefined, codex, catalogData.api.getLanguage());
17550
+ var properties = [].concat(_toConsumableArray((_jsonOPV$Metadatas = jsonOPV.Metadatas) !== null && _jsonOPV$Metadatas !== void 0 ? _jsonOPV$Metadatas : []), _toConsumableArray(maskProperties !== null && maskProperties !== void 0 ? maskProperties : []));
17541
17551
  var opv = {
17542
17552
  codex: codex,
17543
17553
  vCodex: jsonOPV.VCodex,
@@ -17565,8 +17575,9 @@ function getCatalogOptionValueDataType(codex, jsonOPV, catalogData) {
17565
17575
  showOnlyWhenHasPrice: jsonOPV.ShowOnlyWhenHasPrice && jsonOPV.ShowOnlyWhenHasPrice == 'True' ? true : false,
17566
17576
  priceUnit: jsonOPV.PriceUnit,
17567
17577
  value: (_jsonOPV$Value = jsonOPV.Value) !== null && _jsonOPV$Value !== void 0 ? _jsonOPV$Value : jsonOPV.Name.endsWith(' cm') && !isNaN(Number(jsonOPV.Name.replace(' cm', ''))) ? Number(jsonOPV.Name.replace(' cm', '')) : undefined,
17568
- property: [].concat(_toConsumableArray((_jsonOPV$Metadatas = jsonOPV.Metadatas) !== null && _jsonOPV$Metadatas !== void 0 ? _jsonOPV$Metadatas : []), _toConsumableArray((_mask$properties = mask === null || mask === void 0 ? void 0 : mask.properties) !== null && _mask$properties !== void 0 ? _mask$properties : [])),
17569
- textbausteine: jsonOPV.Textbausteine
17578
+ property: properties,
17579
+ textbausteine: jsonOPV.Textbausteine,
17580
+ propertyObj: {}
17570
17581
  };
17571
17582
  if (jsonOPV.MeasureUnit) {
17572
17583
  switch (jsonOPV.MeasureUnit) {
@@ -17859,12 +17870,66 @@ function getImageURL(image, mediaUrl) {
17859
17870
  }
17860
17871
  return ret;
17861
17872
  }
17873
+ function getPropertiesForFeatureNo(properties, typeNo, featureNo, lang) {
17874
+ return properties.filter(function (p) {
17875
+ var _p$featureNos, _p$optionKeys, _p$typeNos, _p$typeNos2;
17876
+ return ((_p$featureNos = p.featureNos) === null || _p$featureNos === void 0 ? void 0 : _p$featureNos.includes(featureNo)) && !((_p$optionKeys = p.optionKeys) !== null && _p$optionKeys !== void 0 && _p$optionKeys.length) && (!typeNo || !((_p$typeNos = p.typeNos) !== null && _p$typeNos !== void 0 && _p$typeNos.length) || ((_p$typeNos2 = p.typeNos) === null || _p$typeNos2 === void 0 ? void 0 : _p$typeNos2.includes(typeNo)));
17877
+ }).map(function (p) {
17878
+ return {
17879
+ Value: DivaUtils.getLocals(p.value, lang),
17880
+ Codex: p.key,
17881
+ Name: DivaUtils.getLocals(p.name, lang),
17882
+ Value_locales: p.valueLocales
17883
+ };
17884
+ });
17885
+ }
17886
+ function getPropertiesForOptionKey(properties, featureNo, optionKey, lang) {
17887
+ return properties.filter(function (p) {
17888
+ var _p$featureNos2, _p$optionKeys2;
17889
+ return (!((_p$featureNos2 = p.featureNos) !== null && _p$featureNos2 !== void 0 && _p$featureNos2.length) || featureNo !== undefined && p.featureNos.includes(featureNo)) && ((_p$optionKeys2 = p.optionKeys) === null || _p$optionKeys2 === void 0 ? void 0 : _p$optionKeys2.includes(optionKey));
17890
+ }).map(function (p) {
17891
+ return {
17892
+ Value: DivaUtils.getLocals(p.value, lang),
17893
+ Codex: p.key,
17894
+ Name: DivaUtils.getLocals(p.name, lang),
17895
+ Value_locales: p.valueLocales
17896
+ };
17897
+ });
17898
+ }
17899
+ function getPropertiesForSerieNo(properties, serieNo, lang) {
17900
+ return properties.filter(function (p) {
17901
+ var _p$serieNos;
17902
+ return (_p$serieNos = p.serieNos) === null || _p$serieNos === void 0 ? void 0 : _p$serieNos.includes(serieNo);
17903
+ }).map(function (p) {
17904
+ return {
17905
+ Value: DivaUtils.getLocals(p.value, lang),
17906
+ Codex: p.key,
17907
+ Name: DivaUtils.getLocals(p.name, lang),
17908
+ Value_locales: p.valueLocales
17909
+ };
17910
+ });
17911
+ }
17912
+ function getPropertiesForItemNo(properties, itemNo, lang) {
17913
+ return properties.filter(function (p) {
17914
+ var _p$typeNos3;
17915
+ return (_p$typeNos3 = p.typeNos) === null || _p$typeNos3 === void 0 ? void 0 : _p$typeNos3.includes(itemNo);
17916
+ }).map(function (p) {
17917
+ return {
17918
+ Value: DivaUtils.getLocals(p.value, lang),
17919
+ Codex: p.key,
17920
+ Name: DivaUtils.getLocals(p.name, lang),
17921
+ Value_locales: p.valueLocales
17922
+ };
17923
+ });
17924
+ }
17862
17925
 
17863
17926
  var ArticleOptionValueData = /*#__PURE__*/function () {
17864
- function ArticleOptionValueData(opv) {
17927
+ function ArticleOptionValueData(opv, catalogData) {
17928
+ var _this$opv$property;
17865
17929
  _classCallCheck(this, ArticleOptionValueData);
17866
17930
  _defineProperty(this, "opv", void 0);
17867
17931
  this.opv = opv;
17932
+ setOptionValueProperties(catalogData, this.opv.propertyObj, (_this$opv$property = this.opv.property) !== null && _this$opv$property !== void 0 ? _this$opv$property : []);
17868
17933
  }
17869
17934
  return _createClass(ArticleOptionValueData, [{
17870
17935
  key: "initOPVsInOPG",
@@ -17887,6 +17952,7 @@ var ArticleOptionValueData = /*#__PURE__*/function () {
17887
17952
  key: "isNotRelevant",
17888
17953
  get: function get() {
17889
17954
  var _this$opv$catalogOPV$, _this$ocd;
17955
+ if (this.opv.propertyObj.isNotRelevant !== undefined) return this.opv.propertyObj.isNotRelevant;
17890
17956
  return (_this$opv$catalogOPV$ = this.opv.catalogOPV.isNotRelevant) !== null && _this$opv$catalogOPV$ !== void 0 ? _this$opv$catalogOPV$ : ['OPVNR', 'OPVNRR', 'OPVNR_0'].includes((_this$ocd = this.ocd) !== null && _this$ocd !== void 0 ? _this$ocd : this.codex);
17891
17957
  }
17892
17958
  }, {
@@ -18048,11 +18114,13 @@ var ArticleOptionValueData = /*#__PURE__*/function () {
18048
18114
  }, {
18049
18115
  key: "contentItemId",
18050
18116
  get: function get() {
18117
+ if (this.opv.propertyObj.contentItemId !== undefined) return this.opv.propertyObj.contentItemId;
18051
18118
  return this.opv.catalogOPV.contentItemId;
18052
18119
  }
18053
18120
  }, {
18054
18121
  key: "groupContentItemId",
18055
18122
  get: function get() {
18123
+ if (this.opv.propertyObj.groupContentItemId !== undefined) return this.opv.propertyObj.groupContentItemId;
18056
18124
  return this.opv.catalogOPV.groupContentItemId;
18057
18125
  }
18058
18126
  }, {
@@ -18068,6 +18136,7 @@ var ArticleOptionValueData = /*#__PURE__*/function () {
18068
18136
  }, {
18069
18137
  key: "addToMeasure",
18070
18138
  get: function get() {
18139
+ if (this.opv.propertyObj.addToMeasure !== undefined) return this.opv.propertyObj.addToMeasure;
18071
18140
  return this.opv.catalogOPV.addToMeasure;
18072
18141
  }
18073
18142
  }, {
@@ -18165,11 +18234,13 @@ var ArticleOptionValueData = /*#__PURE__*/function () {
18165
18234
  }, {
18166
18235
  key: "url",
18167
18236
  get: function get() {
18237
+ if (this.opv.propertyObj.url !== undefined) return this.opv.propertyObj.url;
18168
18238
  return this.opv.catalogOPV.url;
18169
18239
  }
18170
18240
  }, {
18171
18241
  key: "pdfUrl",
18172
18242
  get: function get() {
18243
+ if (this.opv.propertyObj.pdfUrl !== undefined) return this.opv.propertyObj.pdfUrl;
18173
18244
  return this.opv.catalogOPV.pdfUrl;
18174
18245
  }
18175
18246
  }, {
@@ -18185,6 +18256,7 @@ var ArticleOptionValueData = /*#__PURE__*/function () {
18185
18256
  }, {
18186
18257
  key: "sameopv",
18187
18258
  get: function get() {
18259
+ if (this.opv.propertyObj.sameopv !== undefined) return this.opv.propertyObj.sameopv;
18188
18260
  return this.opv.catalogOPV.sameopv;
18189
18261
  }
18190
18262
  }, {
@@ -18195,26 +18267,31 @@ var ArticleOptionValueData = /*#__PURE__*/function () {
18195
18267
  }, {
18196
18268
  key: "onlyVisibleIfNotDocked",
18197
18269
  get: function get() {
18270
+ if (this.opv.propertyObj.onlyVisibleIfNotDocked !== undefined) return this.opv.propertyObj.onlyVisibleIfNotDocked;
18198
18271
  return this.opv.catalogOPV.onlyVisibleIfNotDocked;
18199
18272
  }
18200
18273
  }, {
18201
18274
  key: "defaultValue",
18202
18275
  get: function get() {
18276
+ if (this.opv.propertyObj.defaultValue !== undefined) return this.opv.propertyObj.defaultValue;
18203
18277
  return this.opv.catalogOPV.defaultValue;
18204
18278
  }
18205
18279
  }, {
18206
18280
  key: "summaryCodex",
18207
18281
  get: function get() {
18282
+ if (this.opv.propertyObj.summaryCodex !== undefined) return this.opv.propertyObj.summaryCodex;
18208
18283
  return this.opv.catalogOPV.summaryCodex;
18209
18284
  }
18210
18285
  }, {
18211
18286
  key: "viewPointName",
18212
18287
  get: function get() {
18288
+ if (this.opv.propertyObj.viewPointName !== undefined) return this.opv.propertyObj.viewPointName;
18213
18289
  return this.opv.catalogOPV.viewPointName;
18214
18290
  }
18215
18291
  }, {
18216
18292
  key: "hideInSummary",
18217
18293
  get: function get() {
18294
+ if (this.opv.propertyObj.hideInSummary !== undefined) return this.opv.propertyObj.hideInSummary;
18218
18295
  return this.opv.catalogOPV.hideInSummary;
18219
18296
  }
18220
18297
  }, {
@@ -18225,36 +18302,43 @@ var ArticleOptionValueData = /*#__PURE__*/function () {
18225
18302
  }, {
18226
18303
  key: "isPIMFlatValue",
18227
18304
  get: function get() {
18305
+ if (this.opv.propertyObj.isPIMFlatValue !== undefined) return this.opv.propertyObj.isPIMFlatValue;
18228
18306
  return this.opv.isPIMFlatValue || this.opv.catalogOPV.isPIMFlatValue;
18229
18307
  }
18230
18308
  }, {
18231
18309
  key: "isVariantAttribute",
18232
18310
  get: function get() {
18311
+ if (this.opv.propertyObj.isVariantAttribute !== undefined) return this.opv.propertyObj.isVariantAttribute;
18233
18312
  return this.opv.isVariantAttribute || this.opv.catalogOPV.isVariantAttribute;
18234
18313
  }
18235
18314
  }, {
18236
18315
  key: "setName",
18237
18316
  get: function get() {
18317
+ if (this.opv.propertyObj.setName !== undefined) return this.opv.propertyObj.setName;
18238
18318
  return this.opv.catalogOPV.setName;
18239
18319
  }
18240
18320
  }, {
18241
18321
  key: "setConfig",
18242
18322
  get: function get() {
18323
+ if (this.opv.propertyObj.setConfig !== undefined) return this.opv.propertyObj.setConfig;
18243
18324
  return this.opv.catalogOPV.setConfig;
18244
18325
  }
18245
18326
  }, {
18246
18327
  key: "setByRule",
18247
18328
  get: function get() {
18329
+ if (this.opv.propertyObj.setByRule !== undefined) return this.opv.propertyObj.setByRule;
18248
18330
  return this.opv.catalogOPV.setByRule;
18249
18331
  }
18250
18332
  }, {
18251
18333
  key: "onRule",
18252
18334
  get: function get() {
18335
+ if (this.opv.propertyObj.onRule !== undefined) return this.opv.propertyObj.onRule;
18253
18336
  return this.opv.catalogOPV.onRule;
18254
18337
  }
18255
18338
  }, {
18256
18339
  key: "customDimension",
18257
18340
  get: function get() {
18341
+ if (this.opv.propertyObj.customDimension !== undefined) return this.opv.propertyObj.customDimension;
18258
18342
  return this.opv.catalogOPV.customDimension;
18259
18343
  }
18260
18344
  }]);
@@ -18264,8 +18348,8 @@ function _createForOfIteratorHelper$a(r, e) { var t = "undefined" != typeof Symb
18264
18348
  function _unsupportedIterableToArray$a(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray$a(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray$a(r, a) : void 0; } }
18265
18349
  function _arrayLikeToArray$a(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
18266
18350
  var ArticleOptionData = /*#__PURE__*/function () {
18267
- function ArticleOptionData(opt) {
18268
- var _this$tabGroup;
18351
+ function ArticleOptionData(opt, catalogData) {
18352
+ var _this$tabGroup, _this$opt$property;
18269
18353
  _classCallCheck(this, ArticleOptionData);
18270
18354
  _defineProperty(this, "opt", void 0);
18271
18355
  this.opt = opt;
@@ -18276,6 +18360,7 @@ var ArticleOptionData = /*#__PURE__*/function () {
18276
18360
  } else {
18277
18361
  this.opt.subTabGroup = undefined;
18278
18362
  }
18363
+ setOptionsProperties(catalogData, this.opt.propertyObj, (_this$opt$property = this.opt.property) !== null && _this$opt$property !== void 0 ? _this$opt$property : []);
18279
18364
  }
18280
18365
  return _createClass(ArticleOptionData, [{
18281
18366
  key: "initOPVsInOPT",
@@ -18459,6 +18544,7 @@ var ArticleOptionData = /*#__PURE__*/function () {
18459
18544
  }, {
18460
18545
  key: "isDefaultSiblingOption",
18461
18546
  get: function get() {
18547
+ if (this.opt.propertyObj.isDefaultSiblingOption !== undefined) return this.opt.propertyObj.isDefaultSiblingOption;
18462
18548
  return this.opt.catalogOPT.isDefaultSiblingOption;
18463
18549
  }
18464
18550
  }, {
@@ -18469,11 +18555,13 @@ var ArticleOptionData = /*#__PURE__*/function () {
18469
18555
  }, {
18470
18556
  key: "pairWithOptionsToGroup",
18471
18557
  get: function get() {
18558
+ if (this.opt.propertyObj.pairWithOptionsToGroup !== undefined) return this.opt.propertyObj.pairWithOptionsToGroup;
18472
18559
  return this.opt.catalogOPT.pairWithOptionsToGroup;
18473
18560
  }
18474
18561
  }, {
18475
18562
  key: "isDescribingState",
18476
18563
  get: function get() {
18564
+ if (this.opt.propertyObj.isDescribingState !== undefined) return this.opt.propertyObj.isDescribingState;
18477
18565
  return this.opt.catalogOPT.isDescribingState;
18478
18566
  }
18479
18567
  }, {
@@ -18484,51 +18572,61 @@ var ArticleOptionData = /*#__PURE__*/function () {
18484
18572
  }, {
18485
18573
  key: "requiresUserInput",
18486
18574
  get: function get() {
18575
+ if (this.opt.propertyObj.requiresUserInput !== undefined) return this.opt.propertyObj.requiresUserInput;
18487
18576
  return this.opt.catalogOPT.requiresUserInput;
18488
18577
  }
18489
18578
  }, {
18490
18579
  key: "onlyVisibleIfNotDocked",
18491
18580
  get: function get() {
18581
+ if (this.opt.propertyObj.onlyVisibleIfNotDocked !== undefined) return this.opt.propertyObj.onlyVisibleIfNotDocked;
18492
18582
  return this.opt.catalogOPT.onlyVisibleIfNotDocked;
18493
18583
  }
18494
18584
  }, {
18495
18585
  key: "onlyVisibleIfConfigSingle",
18496
18586
  get: function get() {
18587
+ if (this.opt.propertyObj.onlyVisibleIfConfigSingle !== undefined) return this.opt.propertyObj.onlyVisibleIfConfigSingle;
18497
18588
  return this.opt.catalogOPT.onlyVisibleIfConfigSingle;
18498
18589
  }
18499
18590
  }, {
18500
18591
  key: "onlyVisibleIfConfigAll",
18501
18592
  get: function get() {
18593
+ if (this.opt.propertyObj.onlyVisibleIfConfigAll !== undefined) return this.opt.propertyObj.onlyVisibleIfConfigAll;
18502
18594
  return this.opt.catalogOPT.onlyVisibleIfConfigAll;
18503
18595
  }
18504
18596
  }, {
18505
18597
  key: "isDefaultValueForOptions",
18506
18598
  get: function get() {
18599
+ if (this.opt.propertyObj.isDefaultValueForOptions !== undefined) return this.opt.propertyObj.isDefaultValueForOptions;
18507
18600
  return this.opt.catalogOPT.isDefaultValueForOptions;
18508
18601
  }
18509
18602
  }, {
18510
18603
  key: "freetextDefaultValue",
18511
18604
  get: function get() {
18605
+ if (this.opt.propertyObj.freetextDefaultValue !== undefined) return this.opt.propertyObj.freetextDefaultValue;
18512
18606
  return this.opt.catalogOPT.freetextDefaultValue;
18513
18607
  }
18514
18608
  }, {
18515
18609
  key: "url",
18516
18610
  get: function get() {
18611
+ if (this.opt.propertyObj.url !== undefined) return this.opt.propertyObj.url;
18517
18612
  return this.opt.catalogOPT.url;
18518
18613
  }
18519
18614
  }, {
18520
18615
  key: "contentItemId",
18521
18616
  get: function get() {
18617
+ if (this.opt.propertyObj.contentItemId !== undefined) return this.opt.propertyObj.contentItemId;
18522
18618
  return this.opt.catalogOPT.contentItemId;
18523
18619
  }
18524
18620
  }, {
18525
18621
  key: "customDimension",
18526
18622
  get: function get() {
18623
+ if (this.opt.propertyObj.customDimension !== undefined) return this.opt.propertyObj.customDimension;
18527
18624
  return this.opt.catalogOPT.customDimension;
18528
18625
  }
18529
18626
  }, {
18530
18627
  key: "customDimensionText",
18531
18628
  get: function get() {
18629
+ if (this.opt.propertyObj.customDimensionText !== undefined) return this.opt.propertyObj.customDimensionText;
18532
18630
  return this.opt.catalogOPT.customDimensionText;
18533
18631
  }
18534
18632
  }, {
@@ -18539,51 +18637,61 @@ var ArticleOptionData = /*#__PURE__*/function () {
18539
18637
  }, {
18540
18638
  key: "showSearchbar",
18541
18639
  get: function get() {
18640
+ if (this.opt.propertyObj.showSearchbar !== undefined) return this.opt.propertyObj.showSearchbar;
18542
18641
  return this.opt.catalogOPT.showSearchbar;
18543
18642
  }
18544
18643
  }, {
18545
18644
  key: "showFilter",
18546
18645
  get: function get() {
18646
+ if (this.opt.propertyObj.showFilter !== undefined) return this.opt.propertyObj.showFilter;
18547
18647
  return this.opt.catalogOPT.showFilter;
18548
18648
  }
18549
18649
  }, {
18550
18650
  key: "pdfUrl",
18551
18651
  get: function get() {
18652
+ if (this.opt.propertyObj.pdfUrl !== undefined) return this.opt.propertyObj.pdfUrl;
18552
18653
  return this.opt.catalogOPT.pdfUrl;
18553
18654
  }
18554
18655
  }, {
18555
18656
  key: "diameter",
18556
18657
  get: function get() {
18658
+ if (this.opt.propertyObj.diameter !== undefined) return this.opt.propertyObj.diameter;
18557
18659
  return this.opt.catalogOPT.diameter;
18558
18660
  }
18559
18661
  }, {
18560
18662
  key: "forceShowVariantDesc",
18561
18663
  get: function get() {
18664
+ if (this.opt.propertyObj.forceShowVariantDesc !== undefined) return this.opt.propertyObj.forceShowVariantDesc;
18562
18665
  return this.opt.catalogOPT.forceShowVariantDesc;
18563
18666
  }
18564
18667
  }, {
18565
18668
  key: "showOnSeparatTabgroup",
18566
18669
  get: function get() {
18670
+ if (this.opt.propertyObj.showOnSeparatTabgroup !== undefined) return this.opt.propertyObj.showOnSeparatTabgroup;
18567
18671
  return this.opt.catalogOPT.showOnSeparatTabgroup;
18568
18672
  }
18569
18673
  }, {
18570
18674
  key: "setName",
18571
18675
  get: function get() {
18676
+ if (this.opt.propertyObj.setName !== undefined) return this.opt.propertyObj.setName;
18572
18677
  return this.opt.catalogOPT.setName;
18573
18678
  }
18574
18679
  }, {
18575
18680
  key: "addOptionToTabgroupInPartlistSummary",
18576
18681
  get: function get() {
18682
+ if (this.opt.propertyObj.addOptionToTabgroupInPartlistSummary !== undefined) return this.opt.propertyObj.addOptionToTabgroupInPartlistSummary;
18577
18683
  return this.opt.catalogOPT.addOptionToTabgroupInPartlistSummary;
18578
18684
  }
18579
18685
  }, {
18580
18686
  key: "addToWWS",
18581
18687
  get: function get() {
18688
+ if (this.opt.propertyObj.addToWWS !== undefined) return this.opt.propertyObj.addToWWS;
18582
18689
  return this.opt.catalogOPT.addToWWS;
18583
18690
  }
18584
18691
  }, {
18585
18692
  key: "sendToPIM",
18586
18693
  get: function get() {
18694
+ if (this.opt.propertyObj.sendToPIM !== undefined) return this.opt.propertyObj.sendToPIM;
18587
18695
  return this.opt.catalogOPT.sendToPIM;
18588
18696
  }
18589
18697
  }, {
@@ -18594,16 +18702,19 @@ var ArticleOptionData = /*#__PURE__*/function () {
18594
18702
  }, {
18595
18703
  key: "ignoreGroups",
18596
18704
  get: function get() {
18705
+ if (this.opt.propertyObj.ignoreGroups !== undefined) return this.opt.propertyObj.ignoreGroups;
18597
18706
  return this.opt.catalogOPT.ignoreGroups;
18598
18707
  }
18599
18708
  }, {
18600
18709
  key: "ignorePgrGroupPosition",
18601
18710
  get: function get() {
18711
+ if (this.opt.propertyObj.ignorePgrGroupPosition !== undefined) return this.opt.propertyObj.ignorePgrGroupPosition;
18602
18712
  return this.opt.catalogOPT.ignorePgrGroupPosition;
18603
18713
  }
18604
18714
  }, {
18605
18715
  key: "mergeIDMToOPG",
18606
18716
  get: function get() {
18717
+ if (this.opt.propertyObj.mergeIDMToOPG !== undefined) return this.opt.propertyObj.mergeIDMToOPG;
18607
18718
  return this.opt.catalogOPT.mergeIDMToOPG;
18608
18719
  }
18609
18720
  }, {
@@ -18619,14 +18730,14 @@ var ArticleOptionData = /*#__PURE__*/function () {
18619
18730
  }();
18620
18731
 
18621
18732
  var LOG$l = DivaUtils.initLog('Planner', 'WEB-PLANNER-LOGIC');
18622
- function addSupplierColors(catalogArticleData, allOPVsOfOPT, supplierColors, catalog, newOPT, rule) {
18733
+ function addSupplierColors(set, catalogArticleData, allOPVsOfOPT, supplierColors, catalog, newOPT, rule) {
18623
18734
  var catalogOPG = new OptionValueCatalogData(getCatalogOptionValueDataType('OPVSUPPLIER_COLORS', {
18624
18735
  Name: 'Lieferantenfarben',
18625
18736
  IsOPVG: '1'
18626
18737
  }, catalog), catalog);
18627
- var articleOPG = new ArticleOptionValueData(getArticleOptionValueType('OPVSUPPLIER_COLORS', {
18738
+ var articleOPG = new ArticleOptionValueData(getArticleOptionValueType(set, 'OPVSUPPLIER_COLORS', {
18628
18739
  RUL: rule
18629
- }, catalogOPG, catalogArticleData, false, newOPT, catalog.multiselectOptions));
18740
+ }, catalogOPG, catalogArticleData, false, newOPT, catalog.multiselectOptions), catalog);
18630
18741
  allOPVsOfOPT.set('OPVSUPPLIER_COLORS', articleOPG);
18631
18742
  var supplierColorsOpvs = new Map();
18632
18743
  for (var i = 0; i < supplierColors.length; i++) {
@@ -18637,7 +18748,7 @@ function addSupplierColors(catalogArticleData, allOPVsOfOPT, supplierColors, cat
18637
18748
  HexColor: col.HexColor,
18638
18749
  GroupName: 'Lieferantenfarben'
18639
18750
  }, catalog), catalog);
18640
- supplierColorsOpvs.set('OPV' + col.OptionValueCodex, new ArticleOptionValueData(getArticleOptionValueType('OPV' + col.OptionValueCodex, {}, colorCatalogOpv, catalogArticleData, true, articleOPG, catalog.multiselectOptions)));
18751
+ supplierColorsOpvs.set('OPV' + col.OptionValueCodex, new ArticleOptionValueData(getArticleOptionValueType(set, 'OPV' + col.OptionValueCodex, {}, colorCatalogOpv, catalogArticleData, true, articleOPG, catalog.multiselectOptions), catalog));
18641
18752
  }
18642
18753
  articleOPG.initOPVsInOPG(supplierColorsOpvs);
18643
18754
  }
@@ -18794,7 +18905,7 @@ function loadArticleOptions(json, catalogArticleData, set) {
18794
18905
  for (var i = 0; i < json.OPT.length; i++) {
18795
18906
  var myOPT = json.OPT[i];
18796
18907
  var allOPVsOfOPT = new Map();
18797
- var newOPT = new ArticleOptionData(getArticleOptionType(myOPT, set));
18908
+ var newOPT = new ArticleOptionData(getArticleOptionType(myOPT, set, catalogArticleData.articleCodex), set.CatalogData);
18798
18909
 
18799
18910
  //Items initalisieren
18800
18911
  if (newOPT.hasOPG) {
@@ -18804,14 +18915,14 @@ function loadArticleOptions(json, catalogArticleData, set) {
18804
18915
  var tmpOPG = myOPT.OPG[j],
18805
18916
  catOPG = set.CatalogData.getOptionValue(tmpOPG.OCD ? tmpOPG.OCD : tmpOPG.Codex);
18806
18917
  if (catOPG) {
18807
- var newOPG = new ArticleOptionValueData(getArticleOptionValueType(tmpOPG.Codex, tmpOPG, catOPG, catalogArticleData, false, newOPT, multiselectOptions));
18918
+ var newOPG = new ArticleOptionValueData(getArticleOptionValueType(set, tmpOPG.Codex, tmpOPG, catOPG, catalogArticleData, false, newOPT, multiselectOptions), set.CatalogData);
18808
18919
  allOPVsOfOPT.set(tmpOPG.Codex, newOPG);
18809
18920
  for (var m = 0; m < tmpOPG.OPV.length; m++) {
18810
18921
  var tmpOPV = tmpOPG.OPV[m],
18811
18922
  catOPV = set.CatalogData.getOptionValue(tmpOPV.OCD ? tmpOPV.OCD : tmpOPV.Codex);
18812
18923
  if (catOPV) {
18813
18924
  if (!(catOPV !== null && catOPV !== void 0 && catOPV.groupName) && catOPG) catOPV.groupName = catOPG.name;
18814
- var myOPV = new ArticleOptionValueData(getArticleOptionValueType(tmpOPV.Codex, tmpOPV, catOPV, catalogArticleData, true, newOPG, multiselectOptions));
18925
+ var myOPV = new ArticleOptionValueData(getArticleOptionValueType(set, tmpOPV.Codex, tmpOPV, catOPV, catalogArticleData, true, newOPG, multiselectOptions), set.CatalogData);
18815
18926
  allOPVsOfOPG.set(tmpOPV.Codex, myOPV);
18816
18927
  }
18817
18928
  }
@@ -18824,11 +18935,11 @@ function loadArticleOptions(json, catalogArticleData, set) {
18824
18935
  var _tmpOPG = myOPT.OPV[_j],
18825
18936
  _catOPG = set.CatalogData.getOptionValue(_tmpOPG.OCD ? _tmpOPG.OCD : _tmpOPG.Codex);
18826
18937
  if (_catOPG) {
18827
- var _newOPG = new ArticleOptionValueData(getArticleOptionValueType(_tmpOPG.Codex, _tmpOPG, _catOPG, catalogArticleData, false, newOPT, multiselectOptions));
18938
+ var _newOPG = new ArticleOptionValueData(getArticleOptionValueType(set, _tmpOPG.Codex, _tmpOPG, _catOPG, catalogArticleData, false, newOPT, multiselectOptions), set.CatalogData);
18828
18939
  allOPVsOfOPT.set(_tmpOPG.Codex, _newOPG);
18829
18940
  var _catOPV = set.CatalogData.getOptionValue(_tmpOPG.OCD ? _tmpOPG.OCD : _tmpOPG.Codex);
18830
18941
  if (_catOPV) {
18831
- var _myOPV = new ArticleOptionValueData(getArticleOptionValueType(_tmpOPG.Codex, _tmpOPG, _catOPV, catalogArticleData, true, _newOPG, multiselectOptions));
18942
+ var _myOPV = new ArticleOptionValueData(getArticleOptionValueType(set, _tmpOPG.Codex, _tmpOPG, _catOPV, catalogArticleData, true, _newOPG, multiselectOptions), set.CatalogData);
18832
18943
  _allOPVsOfOPG.set(_tmpOPG.Codex, _myOPV);
18833
18944
  }
18834
18945
  _newOPG.initOPVsInOPG(_allOPVsOfOPG);
@@ -18840,7 +18951,7 @@ function loadArticleOptions(json, catalogArticleData, set) {
18840
18951
  var _tmpOPV = myOPT.OPV[_j2],
18841
18952
  _catOPV2 = set.CatalogData.getOptionValue(_tmpOPV.OCD ? _tmpOPV.OCD : _tmpOPV.Codex);
18842
18953
  if (_catOPV2) {
18843
- var _myOPV2 = new ArticleOptionValueData(getArticleOptionValueType(_tmpOPV.Codex, _tmpOPV, _catOPV2, catalogArticleData, true, newOPT, multiselectOptions));
18954
+ var _myOPV2 = new ArticleOptionValueData(getArticleOptionValueType(set, _tmpOPV.Codex, _tmpOPV, _catOPV2, catalogArticleData, true, newOPT, multiselectOptions), set.CatalogData);
18844
18955
  allOPVsOfOPT.set(_tmpOPV.Codex, _myOPV2);
18845
18956
  }
18846
18957
  }
@@ -18851,7 +18962,7 @@ function loadArticleOptions(json, catalogArticleData, set) {
18851
18962
  return (_item$codex = item.codex) === null || _item$codex === void 0 ? void 0 : _item$codex.endsWith('OPV_FARBE_BASIS');
18852
18963
  });
18853
18964
  if (supplierColorFound) {
18854
- addSupplierColors(catalogArticleData, allOPVsOfOPT, set.supplierColors, set.CatalogData, newOPT, supplierColorFound.rul);
18965
+ addSupplierColors(set, catalogArticleData, allOPVsOfOPT, set.supplierColors, set.CatalogData, newOPT, supplierColorFound.rul);
18855
18966
  }
18856
18967
  }
18857
18968
  newOPT.initOPVsInOPT(allOPVsOfOPT);
@@ -18961,13 +19072,15 @@ function initDecisions(catalog, catalogArticleData) {
18961
19072
  }
18962
19073
  }
18963
19074
  }
18964
- function getArticleOptionType(myOPT, set) {
18965
- var _set$CatalogData$cata, _set$CatalogData$cata2, _set$CatalogData$cata3, _optionMask$hidden;
19075
+ function getArticleOptionType(myOPT, set, articleCodex) {
19076
+ var _set$CatalogData$cata, _set$CatalogData$cata2, _set$CatalogData$cata3, _set$CatalogData$cata4, _set$CatalogData$cata5, _myOPT$Properties, _optionMask$hidden;
18966
19077
  var OP = myOPT.OCD ? myOPT.OCD : myOPT.Codex;
18967
19078
  var catOPT = set.CatalogData.getOption(OP);
18968
19079
  var optionMask = (_set$CatalogData$cata = (_set$CatalogData$cata2 = set.CatalogData.catalogMask) === null || _set$CatalogData$cata2 === void 0 || (_set$CatalogData$cata2 = _set$CatalogData$cata2.options) === null || _set$CatalogData$cata2 === void 0 ? void 0 : _set$CatalogData$cata2[OP]) !== null && _set$CatalogData$cata !== void 0 ? _set$CatalogData$cata : OP.startsWith('OPT') ? (_set$CatalogData$cata3 = set.CatalogData.catalogMask) === null || _set$CatalogData$cata3 === void 0 || (_set$CatalogData$cata3 = _set$CatalogData$cata3.options) === null || _set$CatalogData$cata3 === void 0 ? void 0 : _set$CatalogData$cata3[OP.substring(3)] : undefined;
18969
19080
  if (!catOPT) throw new Error('Option: ' + OP + ' not in CatalogData');
18970
19081
  var optHasOpg = myOPT.OPG && myOPT.OPG.length > 0;
19082
+ var maskProperties = getPropertiesForFeatureNo((_set$CatalogData$cata4 = (_set$CatalogData$cata5 = set.CatalogData.catalogMask) === null || _set$CatalogData$cata5 === void 0 ? void 0 : _set$CatalogData$cata5.properties) !== null && _set$CatalogData$cata4 !== void 0 ? _set$CatalogData$cata4 : [], articleCodex, OP, set.CatalogData.api.getLanguage());
19083
+ var properties = [].concat(_toConsumableArray((_myOPT$Properties = myOPT.Properties) !== null && _myOPT$Properties !== void 0 ? _myOPT$Properties : []), _toConsumableArray(maskProperties !== null && maskProperties !== void 0 ? maskProperties : []));
18971
19084
  return {
18972
19085
  codex: myOPT.Codex,
18973
19086
  catalogOPT: catOPT,
@@ -18981,10 +19094,14 @@ function getArticleOptionType(myOPT, set) {
18981
19094
  articlePlaceholder: myOPT.ArticlePlaceholder,
18982
19095
  hasOPG: optHasOpg,
18983
19096
  invisible: (_optionMask$hidden = optionMask === null || optionMask === void 0 ? void 0 : optionMask.hidden) !== null && _optionMask$hidden !== void 0 ? _optionMask$hidden : myOPT.Invisible == 'True' ? true : myOPT.Invisible == 'False' ? false : undefined,
18984
- parentOptionCodex: myOPT.ParentOptionCodex
19097
+ parentOptionCodex: myOPT.ParentOptionCodex,
19098
+ propertyObj: {},
19099
+ property: properties
18985
19100
  };
18986
19101
  }
18987
- function getArticleOptionValueType(codex, jsonOPV, catalogOPV, myArticle, isParentOPVG, parent, multiselectOptions) {
19102
+ function getArticleOptionValueType(set, codex, jsonOPV, catalogOPV, myArticle, isParentOPVG, parent, multiselectOptions) {
19103
+ var _set$CatalogData$cata6, _set$CatalogData$cata7;
19104
+ var maskProperties = getPropertiesForOptionKey((_set$CatalogData$cata6 = (_set$CatalogData$cata7 = set.CatalogData.catalogMask) === null || _set$CatalogData$cata7 === void 0 ? void 0 : _set$CatalogData$cata7.properties) !== null && _set$CatalogData$cata6 !== void 0 ? _set$CatalogData$cata6 : [], parent.codex, codex, set.CatalogData.api.getLanguage());
18988
19105
  var opv = {
18989
19106
  codex: codex,
18990
19107
  catalogOPV: catalogOPV,
@@ -19010,7 +19127,9 @@ function getArticleOptionValueType(codex, jsonOPV, catalogOPV, myArticle, isPare
19010
19127
  ocd: jsonOPV.OCD,
19011
19128
  quantity: jsonOPV.Quantity ? Number(jsonOPV.Quantity) : 1,
19012
19129
  isPIMFlatValue: jsonOPV.PIMFlatValues === 'True',
19013
- isVariantAttribute: jsonOPV.IsVariantAttribute
19130
+ isVariantAttribute: jsonOPV.IsVariantAttribute,
19131
+ propertyObj: {},
19132
+ property: maskProperties !== null && maskProperties !== void 0 ? maskProperties : []
19014
19133
  };
19015
19134
  var myPriceRef = null;
19016
19135
  var myBasePriceRef = null;
@@ -19190,7 +19309,7 @@ function _loadMoreFromIDMArticles() {
19190
19309
  return _regeneratorRuntime.wrap(function _loop4$(_context2) {
19191
19310
  while (1) switch (_context2.prev = _context2.next) {
19192
19311
  case 0:
19193
- feature = features[_i7];
19312
+ feature = features.data[_i7];
19194
19313
  set.CatalogData.loadedFeatures.push(feature);
19195
19314
  _loop5 = /*#__PURE__*/_regeneratorRuntime.mark(function _loop5(j) {
19196
19315
  return _regeneratorRuntime.wrap(function _loop5$(_context) {
@@ -19226,7 +19345,7 @@ function _loadMoreFromIDMArticles() {
19226
19345
  });
19227
19346
  _i7 = 0;
19228
19347
  case 34:
19229
- if (!(_i7 < features.length)) {
19348
+ if (!(_i7 < features.data.length)) {
19230
19349
  _context5.next = 39;
19231
19350
  break;
19232
19351
  }
@@ -19457,18 +19576,19 @@ var initFeature = function initFeature(feature, catalogArticleData, set) {
19457
19576
  catFeature = new OptionCatalogData(getCatalogFeatureType(feature, catalogArticleData, set), set.CatalogData);
19458
19577
  set.CatalogData.setOption(catFeature);
19459
19578
  }
19460
- var newArticleFeature = new ArticleOptionData(getArticleFeatureType(feature, catalogArticleData, catFeature, set));
19579
+ var newArticleFeature = new ArticleOptionData(getArticleFeatureType(feature, catalogArticleData, catFeature, set), set.CatalogData);
19461
19580
  initOption(feature, newArticleFeature, catalogArticleData, set);
19462
19581
  catalogArticleData.articleOptions[newArticleFeature.codex] = newArticleFeature;
19463
19582
  };
19464
19583
  function getCatalogFeatureType(feature, catalogArticleData, set) {
19465
- var _set$CatalogData$cata, _feature$detailInfos, _ref, _feature$properties, _feature$options$, _optionMask$hidden;
19584
+ var _set$CatalogData$cata, _set$CatalogData$cata2, _set$CatalogData$cata3, _feature$detailInfos, _properties$find, _properties$find2, _ref, _properties$find3, _feature$options$, _optionMask$hidden;
19466
19585
  var featureClass = set.CatalogData.getFeatureClass(catalogArticleData.featureClassRefNo);
19467
19586
  var optionMask = (_set$CatalogData$cata = set.CatalogData.catalogMask) === null || _set$CatalogData$cata === void 0 || (_set$CatalogData$cata = _set$CatalogData$cata.options) === null || _set$CatalogData$cata === void 0 ? void 0 : _set$CatalogData$cata[feature.featureNo];
19587
+ var maskProperties = getPropertiesForFeatureNo((_set$CatalogData$cata2 = (_set$CatalogData$cata3 = set.CatalogData.catalogMask) === null || _set$CatalogData$cata3 === void 0 ? void 0 : _set$CatalogData$cata3.properties) !== null && _set$CatalogData$cata2 !== void 0 ? _set$CatalogData$cata2 : [], undefined, feature.featureNo, set.CatalogData.api.getLanguage());
19588
+ var properties = [].concat(_toConsumableArray(convertProperties(feature.properties, set.api.getLanguageLowercase())), _toConsumableArray(maskProperties !== null && maskProperties !== void 0 ? maskProperties : []));
19468
19589
  return {
19469
19590
  name: DivaUtils.getLocals(feature.featureText, set.api.getLanguageLowercase()),
19470
19591
  origName: DivaUtils.getLocals(feature.featureText, set.api.getLanguageLowercase()),
19471
- property: convertProperties(feature.properties, set.api.getLanguageLowercase()),
19472
19592
  name_locales: feature.featureText,
19473
19593
  codex: feature.featureNo,
19474
19594
  idmVariantenArt: feature.featureNo ? Number(feature.featureNo) : undefined,
@@ -19478,23 +19598,32 @@ function getCatalogFeatureType(feature, catalogArticleData, set) {
19478
19598
  headerPosVariationType: feature.headerPosVariationType,
19479
19599
  measureKey: feature.measureParameter,
19480
19600
  sequenceNo: feature.sequenceNo,
19481
- layout: (_ref = (_feature$properties = feature.properties) === null || _feature$properties === void 0 || (_feature$properties = _feature$properties.find(function (p) {
19482
- return p.key == 'LAYOUT';
19483
- })) === null || _feature$properties === void 0 ? void 0 : _feature$properties.value) !== null && _ref !== void 0 ? _ref : (_feature$options$ = feature.options[0]) !== null && _feature$options$ !== void 0 && (_feature$options$ = _feature$options$.detailInfos) !== null && _feature$options$ !== void 0 && _feature$options$.find(function (d) {
19601
+ sendToPIM: !!(properties !== null && properties !== void 0 && (_properties$find = properties.find(function (p) {
19602
+ return p.Codex == 'SendToPim';
19603
+ })) !== null && _properties$find !== void 0 && _properties$find.Value),
19604
+ isMultiselect: !!(properties !== null && properties !== void 0 && (_properties$find2 = properties.find(function (p) {
19605
+ return p.Codex == 'Multiselect';
19606
+ })) !== null && _properties$find2 !== void 0 && _properties$find2.Value),
19607
+ layout: (_ref = properties === null || properties === void 0 || (_properties$find3 = properties.find(function (p) {
19608
+ return p.Codex == 'LAYOUT';
19609
+ })) === null || _properties$find3 === void 0 ? void 0 : _properties$find3.Value) !== null && _ref !== void 0 ? _ref : (_feature$options$ = feature.options[0]) !== null && _feature$options$ !== void 0 && (_feature$options$ = _feature$options$.detailInfos) !== null && _feature$options$ !== void 0 && _feature$options$.find(function (d) {
19484
19610
  return d.functionType == 'OPV';
19485
19611
  }) ? 'IMAGE' : 'TEXT',
19486
- invisible: (_optionMask$hidden = optionMask === null || optionMask === void 0 ? void 0 : optionMask.hidden) !== null && _optionMask$hidden !== void 0 ? _optionMask$hidden : !!(featureClass !== null && featureClass !== void 0 && featureClass.featureRefs[feature.featureNo])
19612
+ invisible: (_optionMask$hidden = optionMask === null || optionMask === void 0 ? void 0 : optionMask.hidden) !== null && _optionMask$hidden !== void 0 ? _optionMask$hidden : !!(featureClass !== null && featureClass !== void 0 && featureClass.featureRefs[feature.featureNo]),
19613
+ property: properties,
19614
+ propertyObj: {}
19487
19615
  };
19488
19616
  }
19489
19617
  function getArticleFeatureType(feature, catalogArticleData, catOPT, set) {
19490
- var _catalogArticleData$f, _set$CatalogData$tabG;
19491
- var props = (_catalogArticleData$f = catalogArticleData.featureProperties) === null || _catalogArticleData$f === void 0 ? void 0 : _catalogArticleData$f.filter(function (p) {
19618
+ var _catalogArticleData$f, _catalogArticleData$f2, _set$CatalogData$tabG, _set$CatalogData$cata4, _set$CatalogData$cata5;
19619
+ var props = (_catalogArticleData$f = (_catalogArticleData$f2 = catalogArticleData.featureProperties) === null || _catalogArticleData$f2 === void 0 ? void 0 : _catalogArticleData$f2.filter(function (p) {
19492
19620
  return p.FeatureNos.includes(feature.featureNo);
19493
- });
19621
+ })) !== null && _catalogArticleData$f !== void 0 ? _catalogArticleData$f : [];
19494
19622
  var featureClass = set.CatalogData.getFeatureClass(catalogArticleData.featureClassRefNo);
19495
19623
  var tabgroup = (_set$CatalogData$tabG = set.CatalogData.tabGroups) === null || _set$CatalogData$tabG === void 0 ? void 0 : _set$CatalogData$tabG.find(function (t) {
19496
19624
  return t.featureNos.includes(feature.featureNo);
19497
19625
  });
19626
+ var maskProperties = getPropertiesForFeatureNo((_set$CatalogData$cata4 = (_set$CatalogData$cata5 = set.CatalogData.catalogMask) === null || _set$CatalogData$cata5 === void 0 ? void 0 : _set$CatalogData$cata5.properties) !== null && _set$CatalogData$cata4 !== void 0 ? _set$CatalogData$cata4 : [], catalogArticleData.articleCodex, feature.featureNo, set.CatalogData.api.getLanguage());
19498
19627
  var opt = {
19499
19628
  codex: feature.featureNo,
19500
19629
  catalogOPT: catOPT,
@@ -19504,23 +19633,10 @@ function getArticleFeatureType(feature, catalogArticleData, catOPT, set) {
19504
19633
  hasOPG: false,
19505
19634
  invisible: !!(featureClass !== null && featureClass !== void 0 && featureClass.featureRefs[feature.featureNo]),
19506
19635
  tabGroup: tabgroup !== null && tabgroup !== void 0 && tabgroup.name ? DivaUtils.getLocals(tabgroup.name, set.api.getLanguage()) : undefined,
19507
- tabGroup_locales: tabgroup === null || tabgroup === void 0 ? void 0 : tabgroup.name
19636
+ tabGroup_locales: tabgroup === null || tabgroup === void 0 ? void 0 : tabgroup.name,
19637
+ property: [].concat(_toConsumableArray(maskProperties), _toConsumableArray(props)),
19638
+ propertyObj: {}
19508
19639
  };
19509
- if (props !== null && props !== void 0 && props.length) {
19510
- for (var i = 0; i < props.length; i++) {
19511
- var prop = props[i];
19512
- switch (prop.Codex) {
19513
- case 'IsVariantAttribute': // ist in den daten?!
19514
- case 'TopFilterAttribute':
19515
- case 'PriceTageRelevant':
19516
- case 'EshopCategoryMapping':
19517
- case 'IsArtName':
19518
- break;
19519
- default:
19520
- LOG$k.debug('implement mapping for these props for options: ' + prop.Codex);
19521
- }
19522
- }
19523
- }
19524
19640
  return opt;
19525
19641
  }
19526
19642
 
@@ -19535,7 +19651,7 @@ function initOption(feature, articleFeature, catalogArticle, set) {
19535
19651
  return o.codex == option.optionKey;
19536
19652
  });
19537
19653
  if (!catOption) catOption = getCatalogOptionType(option, set);
19538
- var articleIDMOption = new ArticleOptionValueData(getArticleOption(option, catOption, articleFeature, catalogArticle));
19654
+ var articleIDMOption = new ArticleOptionValueData(getArticleOption(set, option, catOption, articleFeature, catalogArticle), set.CatalogData);
19539
19655
  allOptionsOfFeature.set(articleIDMOption.codex, articleIDMOption);
19540
19656
  };
19541
19657
  for (var j = 0; j < options.length; j++) {
@@ -19545,14 +19661,17 @@ function initOption(feature, articleFeature, catalogArticle, set) {
19545
19661
  catalogArticle.articleOptions[articleFeature.codex];
19546
19662
  }
19547
19663
  function getCatalogOptionType(option, set) {
19548
- var _option$detailInfos, _option$detailInfos2, _option$measureValue;
19664
+ var _catalogData$catalogM, _catalogData$catalogM2, _option$detailInfos, _option$detailInfos2, _option$measureValue;
19549
19665
  var catalogData = set.CatalogData;
19550
19666
  var name = DivaUtils.getLocals(option.optionText, set.api.getLanguageLowercase());
19667
+ var maskProperties = getPropertiesForOptionKey((_catalogData$catalogM = (_catalogData$catalogM2 = catalogData.catalogMask) === null || _catalogData$catalogM2 === void 0 ? void 0 : _catalogData$catalogM2.properties) !== null && _catalogData$catalogM !== void 0 ? _catalogData$catalogM : [], undefined, option.optionKey, set.CatalogData.api.getLanguage());
19668
+ var properties = [].concat(_toConsumableArray(convertProperties(option.properties, set.CatalogData.api.getLanguageLowercase())), _toConsumableArray(maskProperties !== null && maskProperties !== void 0 ? maskProperties : []));
19551
19669
  var opiton = {
19552
19670
  codex: option.optionKey,
19553
19671
  name: name,
19554
19672
  origName: name,
19555
19673
  name_locales: option.optionText,
19674
+ property: properties,
19556
19675
  image: (_option$detailInfos = option.detailInfos) === null || _option$detailInfos === void 0 || (_option$detailInfos = _option$detailInfos.find(function (d) {
19557
19676
  return d.functionType == 'OPV';
19558
19677
  })) === null || _option$detailInfos === void 0 ? void 0 : _option$detailInfos.url,
@@ -19597,7 +19716,7 @@ function getCatalogOptionType(option, set) {
19597
19716
  // TODO IDM Pricelogic,
19598
19717
  value: (_option$measureValue = option.measureValue) !== null && _option$measureValue !== void 0 ? _option$measureValue : name.endsWith(' cm') && !isNaN(Number(name.replace(' cm', ''))) ? Number(name.replace(' cm', '')) : undefined,
19599
19718
  measureUnit: option.measureUnit,
19600
- property: convertProperties(option.properties, catalogData.api.getLanguageLowercase())
19719
+ propertyObj: {}
19601
19720
  };
19602
19721
  if (option.detailInfos) {
19603
19722
  for (var i = 0; i < ((_option$detailInfos3 = option.detailInfos) !== null && _option$detailInfos3 !== void 0 ? _option$detailInfos3 : []).length; i++) {
@@ -19619,11 +19738,12 @@ function getCatalogOptionType(option, set) {
19619
19738
  }
19620
19739
  return new OptionValueCatalogData(opiton, catalogData);
19621
19740
  }
19622
- function getArticleOption(option, catalogOption, feature, catalogArticleData) {
19623
- var _catalogArticleData$o;
19741
+ function getArticleOption(set, option, catalogOption, feature, catalogArticleData) {
19742
+ var _catalogArticleData$o, _set$CatalogData$cata6, _set$CatalogData$cata7;
19624
19743
  var props = (_catalogArticleData$o = catalogArticleData.optionProperties) === null || _catalogArticleData$o === void 0 ? void 0 : _catalogArticleData$o.filter(function (p) {
19625
19744
  return p.OptionKeys.includes(option.optionKey);
19626
19745
  });
19746
+ var maskProperties = getPropertiesForOptionKey((_set$CatalogData$cata6 = (_set$CatalogData$cata7 = set.CatalogData.catalogMask) === null || _set$CatalogData$cata7 === void 0 ? void 0 : _set$CatalogData$cata7.properties) !== null && _set$CatalogData$cata6 !== void 0 ? _set$CatalogData$cata6 : [], undefined, option.optionKey, set.api.getLanguage());
19627
19747
  //TODO add these props that are articleSpecific
19628
19748
  var opv = {
19629
19749
  codex: option.optionKey,
@@ -19632,25 +19752,10 @@ function getArticleOption(option, catalogOption, feature, catalogArticleData) {
19632
19752
  isParentOPVG: false,
19633
19753
  parent: feature,
19634
19754
  price: 0,
19635
- quantity: 1
19755
+ quantity: 1,
19756
+ propertyObj: {},
19757
+ property: [].concat(_toConsumableArray(props !== null && props !== void 0 ? props : []), _toConsumableArray(maskProperties !== null && maskProperties !== void 0 ? maskProperties : []))
19636
19758
  };
19637
- if (props !== null && props !== void 0 && props.length) {
19638
- for (var i = 0; i < props.length; i++) {
19639
- var prop = props[i];
19640
- switch (prop.Codex) {
19641
- case 'IsVariantAttribute':
19642
- opv.isVariantAttribute = prop.Value == '1';
19643
- break;
19644
- case 'EshopCategoryMapping':
19645
- case 'TopFilterAttribute':
19646
- case 'PriceTageRelevant':
19647
- case 'IsArtName':
19648
- break;
19649
- default:
19650
- LOG$k.debug('implement mapping for these props for options: ' + prop.Codex);
19651
- }
19652
- }
19653
- }
19654
19759
  return opv;
19655
19760
  }
19656
19761
  function componentToHex(c) {
@@ -20088,9 +20193,10 @@ var DivaCatalogData = /*#__PURE__*/function () {
20088
20193
  this._api = api;
20089
20194
  this.additionalModelInfos = additionalModelInfos;
20090
20195
  if (json.Properties) {
20091
- var _json$Properties, _this$catalogMask$cat, _this$catalogMask;
20196
+ var _this$catalogMask$pro, _this$catalogMask, _json$Properties;
20092
20197
  this.origProperties = json.Properties;
20093
- this.initProperties(catalogCodex, [].concat(_toConsumableArray((_json$Properties = json.Properties) !== null && _json$Properties !== void 0 ? _json$Properties : []), _toConsumableArray((_this$catalogMask$cat = (_this$catalogMask = this.catalogMask) === null || _this$catalogMask === void 0 || (_this$catalogMask = _this$catalogMask.catalog) === null || _this$catalogMask === void 0 ? void 0 : _this$catalogMask.properties) !== null && _this$catalogMask$cat !== void 0 ? _this$catalogMask$cat : [])));
20198
+ var maskProperties = getPropertiesForSerieNo((_this$catalogMask$pro = (_this$catalogMask = this.catalogMask) === null || _this$catalogMask === void 0 ? void 0 : _this$catalogMask.properties) !== null && _this$catalogMask$pro !== void 0 ? _this$catalogMask$pro : [], 1, this.api.getLanguage());
20199
+ this.initProperties(catalogCodex, [].concat(_toConsumableArray((_json$Properties = json.Properties) !== null && _json$Properties !== void 0 ? _json$Properties : []), _toConsumableArray(maskProperties !== null && maskProperties !== void 0 ? maskProperties : [])));
20094
20200
  }
20095
20201
  this.plannerPaletteViewInfo = {
20096
20202
  catalogPlannerArticles: [],
@@ -20122,8 +20228,9 @@ var DivaCatalogData = /*#__PURE__*/function () {
20122
20228
  initIDMArticles(articleJson, this);
20123
20229
  }
20124
20230
  if (this.origProperties) {
20125
- var _json$Properties2, _this$catalogMask$cat2, _this$catalogMask2;
20126
- this.initPropertiesAfterOptionsInit(catalogCodex, [].concat(_toConsumableArray((_json$Properties2 = json.Properties) !== null && _json$Properties2 !== void 0 ? _json$Properties2 : []), _toConsumableArray((_this$catalogMask$cat2 = (_this$catalogMask2 = this.catalogMask) === null || _this$catalogMask2 === void 0 || (_this$catalogMask2 = _this$catalogMask2.catalog) === null || _this$catalogMask2 === void 0 ? void 0 : _this$catalogMask2.properties) !== null && _this$catalogMask$cat2 !== void 0 ? _this$catalogMask$cat2 : [])));
20231
+ var _this$catalogMask$pro2, _this$catalogMask2, _json$Properties2;
20232
+ var _maskProperties = getPropertiesForSerieNo((_this$catalogMask$pro2 = (_this$catalogMask2 = this.catalogMask) === null || _this$catalogMask2 === void 0 ? void 0 : _this$catalogMask2.properties) !== null && _this$catalogMask$pro2 !== void 0 ? _this$catalogMask$pro2 : [], 1, this.api.getLanguage());
20233
+ this.initPropertiesAfterOptionsInit(catalogCodex, [].concat(_toConsumableArray((_json$Properties2 = json.Properties) !== null && _json$Properties2 !== void 0 ? _json$Properties2 : []), _toConsumableArray(_maskProperties !== null && _maskProperties !== void 0 ? _maskProperties : [])));
20127
20234
  }
20128
20235
  }
20129
20236
  return _createClass(DivaCatalogData, [{
@@ -20639,6 +20746,16 @@ var DivaCatalogData = /*#__PURE__*/function () {
20639
20746
  get: function get() {
20640
20747
  return this.catalogProps.mergeOptionsToSameOption;
20641
20748
  }
20749
+ }, {
20750
+ key: "checkIfUseBoxPlanner",
20751
+ value: function checkIfUseBoxPlanner(articleCodex) {
20752
+ if (Array.isArray(this.catalogProps.useBoxPlanner)) {
20753
+ this.catalogProps.useBoxPlanner = !!this.catalogProps.useBoxPlanner.find(function (a) {
20754
+ return articleCodex.includes(a);
20755
+ });
20756
+ }
20757
+ return this.catalogProps.useBoxPlanner;
20758
+ }
20642
20759
  }, {
20643
20760
  key: "useBoxPlanner",
20644
20761
  get: function get() {
@@ -21089,7 +21206,7 @@ var DivaCatalogData = /*#__PURE__*/function () {
21089
21206
  _this5.catalogProps.useGlobalSVGScale = item.Value == '1';
21090
21207
  break;
21091
21208
  case 'USEBOXPLANNER':
21092
- _this5.catalogProps.useBoxPlanner = item.Value == '1';
21209
+ _this5.catalogProps.useBoxPlanner = item.Value == '1' ? true : item.Value.split(';');
21093
21210
  break;
21094
21211
  case 'PLANNERTYPE':
21095
21212
  _this5.catalogProps.plannerType = item.Value;
@@ -21454,10 +21571,14 @@ var DivaCatalogData = /*#__PURE__*/function () {
21454
21571
  value: function initMask(initProps) {
21455
21572
  var _this$catalogMask3;
21456
21573
  if ((_this$catalogMask3 = this.catalogMask) !== null && _this$catalogMask3 !== void 0 && _this$catalogMask3.catalog) {
21457
- var _this$catalogMask$cat3;
21458
- if ((_this$catalogMask$cat3 = this.catalogMask.catalog.name) !== null && _this$catalogMask$cat3 !== void 0 && _this$catalogMask$cat3[this.api.getLanguage()]) this.catalogData.catalogName = this.catalogMask.catalog.name[this.api.getLanguage()];
21574
+ var _this$catalogMask$cat;
21575
+ if ((_this$catalogMask$cat = this.catalogMask.catalog.name) !== null && _this$catalogMask$cat !== void 0 && _this$catalogMask$cat[this.api.getLanguage()]) this.catalogData.catalogName = this.catalogMask.catalog.name[this.api.getLanguage()];
21459
21576
  if (this.catalogMask.catalog.name) this.catalogData.name_locales = this.catalogMask.catalog.name;
21460
- if (this.catalogMask.catalog.properties && initProps) this.initProperties(this.catalogCodex, [].concat(_toConsumableArray(this.origProperties), _toConsumableArray(this.catalogMask.catalog.properties)));
21577
+ if (initProps) {
21578
+ var _this$catalogMask$pro3, _this$catalogMask4;
21579
+ var maskProperties = getPropertiesForSerieNo((_this$catalogMask$pro3 = (_this$catalogMask4 = this.catalogMask) === null || _this$catalogMask4 === void 0 ? void 0 : _this$catalogMask4.properties) !== null && _this$catalogMask$pro3 !== void 0 ? _this$catalogMask$pro3 : [], 1, this.api.getLanguage());
21580
+ this.initProperties(this.catalogCodex, [].concat(_toConsumableArray(this.origProperties), _toConsumableArray(maskProperties !== null && maskProperties !== void 0 ? maskProperties : [])));
21581
+ }
21461
21582
  }
21462
21583
  }
21463
21584
  }]);
@@ -21474,7 +21595,8 @@ var mapMask = function mapMask(mask) {
21474
21595
  mappedProps.push({
21475
21596
  Codex: key,
21476
21597
  Name: prop.name,
21477
- Value: prop.value
21598
+ Value: prop.value,
21599
+ Value_locales: prop.valueLocales
21478
21600
  });
21479
21601
  }
21480
21602
  return mappedProps;
@@ -25451,8 +25573,8 @@ var IDMEngine = /*#__PURE__*/function () {
25451
25573
  for (var i = 0; i < allKeys.length; i++) {
25452
25574
  var key = allKeys[i];
25453
25575
  var value = this.article.getValueByMeasureKey(key);
25454
- if (value === undefined) throw new Error('measureParameter: ' + key + ' has no value defined');
25455
- keysMap[key] = value;
25576
+ if (value === undefined) LOG$f.warn('measureParameter: ' + key + ' has no value defined');
25577
+ keysMap[key] = value !== null && value !== void 0 ? value : 0;
25456
25578
  }
25457
25579
  while (allKeys.find(function (key) {
25458
25580
  return formula.includes(key);
@@ -28376,7 +28498,7 @@ var DivaArticle = /*#__PURE__*/function () {
28376
28498
  break;
28377
28499
  }
28378
28500
  _context.next = 4;
28379
- return import('./ShelfPlanner-5d152a35.js');
28501
+ return import('./ShelfPlanner-874c2d5f.js');
28380
28502
  case 4:
28381
28503
  _yield$import = _context.sent;
28382
28504
  ShelfPlanner = _yield$import["default"];
@@ -32910,7 +33032,7 @@ var DivaSet = /*#__PURE__*/function () {
32910
33032
  break;
32911
33033
  }
32912
33034
  _context5.next = 3;
32913
- return import('./DoorPlanner-75939b8b.js');
33035
+ return import('./DoorPlanner-e38165f4.js');
32914
33036
  case 3:
32915
33037
  _yield$import = _context5.sent;
32916
33038
  DoorPlanner = _yield$import["default"];
@@ -36150,9 +36272,12 @@ var DivaSetHandler = /*#__PURE__*/function () {
36150
36272
  case 3:
36151
36273
  catalogData = _context6.sent;
36152
36274
  articlesToInitialize = !((_orderSet$OrderLines = orderSet.OrderLines) !== null && _orderSet$OrderLines !== void 0 && _orderSet$OrderLines.length) ? (_initSetState$article = initSetState.articlesToInitialize) !== null && _initSetState$article !== void 0 ? _initSetState$article : catalogData.startPlannerArticle : undefined;
36153
- _context6.next = 7;
36275
+ catalogData.checkIfUseBoxPlanner(articlesToInitialize !== null && articlesToInitialize !== void 0 ? articlesToInitialize : orderSet.OrderLines.map(function (o) {
36276
+ return o.ArticleCodex;
36277
+ }));
36278
+ _context6.next = 8;
36154
36279
  return this.createSet(catalogData, orderSet, initSetState, lastSetToInitialize);
36155
- case 7:
36280
+ case 8:
36156
36281
  set = _context6.sent;
36157
36282
  if (set.api.getLoadSupplierColors() && initSetState.supplierColors) {
36158
36283
  set.supplierColors = initSetState.supplierColors;
@@ -36171,35 +36296,35 @@ var DivaSetHandler = /*#__PURE__*/function () {
36171
36296
  }
36172
36297
  }
36173
36298
  if (!(articlesToInitialize && articlesToInitialize.length > 0)) {
36174
- _context6.next = 23;
36299
+ _context6.next = 24;
36175
36300
  break;
36176
36301
  }
36177
36302
  DivaUtils.startSpanOfApm('Articles initialize');
36178
36303
  j = 0;
36179
- case 14:
36304
+ case 15:
36180
36305
  if (!(j < articlesToInitialize.length)) {
36181
- _context6.next = 21;
36306
+ _context6.next = 22;
36182
36307
  break;
36183
36308
  }
36184
36309
  variantValues = (_initSetState$initVar = initSetState.initVariantValues) !== null && _initSetState$initVar !== void 0 ? _initSetState$initVar : catalogData === null || catalogData === void 0 || (_catalogData$promoted = catalogData.promotedOpvs) === null || _catalogData$promoted === void 0 || (_catalogData$promoted = _catalogData$promoted.articles) === null || _catalogData$promoted === void 0 || (_catalogData$promoted = _catalogData$promoted[articlesToInitialize[j]]) === null || _catalogData$promoted === void 0 || (_catalogData$promoted = _catalogData$promoted[0]) === null || _catalogData$promoted === void 0 ? void 0 : _catalogData$promoted.variantValues;
36185
- _context6.next = 18;
36310
+ _context6.next = 19;
36186
36311
  return this.addPlannerElement(set, articlesToInitialize[j], _objectSpread$a(_objectSpread$a({}, params), variantValues ? {
36187
36312
  variantValues: variantValues
36188
36313
  } : {}));
36189
- case 18:
36314
+ case 19:
36190
36315
  j++;
36191
- _context6.next = 14;
36316
+ _context6.next = 15;
36192
36317
  break;
36193
- case 21:
36318
+ case 22:
36194
36319
  //display image of article if there is no planner
36195
36320
  if (!set.onlyRunLogic && set.getPlannerMode() == 'No') {
36196
36321
  image = set.getImageOfOnlyElement();
36197
36322
  if (image && updateSetImage) updateSetImage(image);
36198
36323
  }
36199
36324
  DivaUtils.endSpanOfApm('Articles initialize');
36200
- case 23:
36201
- return _context6.abrupt("return", set);
36202
36325
  case 24:
36326
+ return _context6.abrupt("return", set);
36327
+ case 25:
36203
36328
  case "end":
36204
36329
  return _context6.stop();
36205
36330
  }
@@ -39963,7 +40088,7 @@ var DivaBasketHandler = /*#__PURE__*/function () {
39963
40088
  break;
39964
40089
  case 3:
39965
40090
  _context12.next = 5;
39966
- return import('./PfisterWWSHandler-2e9453df.js');
40091
+ return import('./PfisterWWSHandler-c2d91047.js');
39967
40092
  case 5:
39968
40093
  _yield$import = _context12.sent;
39969
40094
  PfisterWWSHandler = _yield$import["default"];
@@ -39971,7 +40096,7 @@ var DivaBasketHandler = /*#__PURE__*/function () {
39971
40096
  return _context12.abrupt("break", 27);
39972
40097
  case 9:
39973
40098
  _context12.next = 11;
39974
- return import('./LiviqueWWSHandler-18d1ad7d.js');
40099
+ return import('./LiviqueWWSHandler-d044b4ad.js');
39975
40100
  case 11:
39976
40101
  _yield$import2 = _context12.sent;
39977
40102
  LiviqueWWSHandler = _yield$import2["default"];
@@ -39979,7 +40104,7 @@ var DivaBasketHandler = /*#__PURE__*/function () {
39979
40104
  return _context12.abrupt("break", 27);
39980
40105
  case 15:
39981
40106
  _context12.next = 17;
39982
- return import('./SeriousBasketHandler-14d38820.js');
40107
+ return import('./SeriousBasketHandler-c33642ba.js');
39983
40108
  case 17:
39984
40109
  _yield$import3 = _context12.sent;
39985
40110
  SeriousWWSHandler = _yield$import3["default"];
@@ -39987,7 +40112,7 @@ var DivaBasketHandler = /*#__PURE__*/function () {
39987
40112
  return _context12.abrupt("break", 27);
39988
40113
  case 21:
39989
40114
  _context12.next = 23;
39990
- return import('./StandardWWSHandler-0d9670d3.js');
40115
+ return import('./StandardWWSHandler-77100dbb.js');
39991
40116
  case 23:
39992
40117
  _yield$import4 = _context12.sent;
39993
40118
  StandardWWSHandler = _yield$import4["default"];
@@ -41416,7 +41541,7 @@ var PlannerHandler3D = /*#__PURE__*/function () {
41416
41541
  while (1) switch (_context3.prev = _context3.next) {
41417
41542
  case 0:
41418
41543
  _context3.next = 2;
41419
- return import('./Host3DSignalR-8b8cfc39.js');
41544
+ return import('./Host3DSignalR-5e56991f.js');
41420
41545
  case 2:
41421
41546
  _yield$import = _context3.sent;
41422
41547
  Host3DSignalR = _yield$import["default"];
@@ -42974,7 +43099,7 @@ var DivaPlannerHandler = /*#__PURE__*/function () {
42974
43099
  break;
42975
43100
  case 8:
42976
43101
  _context4.next = 10;
42977
- return import('./DivaStandardPlanner-3cfa5c94.js');
43102
+ return import('./DivaStandardPlanner-0e136414.js');
42978
43103
  case 10:
42979
43104
  _yield$import = _context4.sent;
42980
43105
  DivaStandardPlanner = _yield$import["default"];
@@ -42985,7 +43110,7 @@ var DivaPlannerHandler = /*#__PURE__*/function () {
42985
43110
  return _context4.abrupt("break", 21);
42986
43111
  case 15:
42987
43112
  _context4.next = 17;
42988
- return import('./DivaBoxPlanner-25248fbc.js');
43113
+ return import('./DivaBoxPlanner-7bc7acad.js');
42989
43114
  case 17:
42990
43115
  _yield$import2 = _context4.sent;
42991
43116
  DivaBoxPlanner = _yield$import2["default"];