@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
@@ -1916,115 +1916,11 @@ var CatalogPlannerArticleData = /*#__PURE__*/function () {
1916
1916
  var LOG$o = DivaUtils__default["default"].initLog('Planner', 'WEB-PLANNER-LOGIC');
1917
1917
  var OptionCatalogData = /*#__PURE__*/function () {
1918
1918
  function OptionCatalogData(opt, catalogData) {
1919
+ var _this$opt$property;
1919
1920
  _classCallCheck__default["default"](this, OptionCatalogData);
1920
1921
  _defineProperty__default["default"](this, "opt", void 0);
1921
1922
  this.opt = opt;
1922
- for (var i = 0; i < ((_this$opt$property = this.opt.property) === null || _this$opt$property === void 0 ? void 0 : _this$opt$property.length); i++) {
1923
- var _this$opt$property;
1924
- var prop = this.opt.property[i];
1925
- var key = prop.Codex;
1926
- if (key.startsWith(catalogData.catalogCodex + '__')) key = key.replace(catalogData.catalogCodex + '__', '');
1927
- switch (key) {
1928
- case 'INFO_URL':
1929
- this.opt.url = prop.Value;
1930
- break;
1931
- case 'IGNORE_GROUPS':
1932
- this.opt.ignoreGroups = prop.Value == '1';
1933
- break;
1934
- case 'IGNORE_PGR_GROUP_POSITION':
1935
- this.opt.ignorePgrGroupPosition = prop.Value == '1';
1936
- break;
1937
- case 'SHOW_SEARCHBAR':
1938
- this.opt.showSearchbar = prop.Value == '1';
1939
- break;
1940
- case 'SHOW_FILTER':
1941
- this.opt.showFilter = prop.Value == '1';
1942
- break;
1943
- case 'INFO_PDF':
1944
- this.opt.pdfUrl = prop.Value;
1945
- break;
1946
- case 'DIAMETER':
1947
- this.opt.diameter = !!prop.Value;
1948
- break;
1949
- case 'PAIROPTION':
1950
- this.opt.pairWithOptionsToGroup = prop.Value;
1951
- break;
1952
- case 'REQUIRES_USER_INPUT':
1953
- this.opt.requiresUserInput = !!prop.Value;
1954
- break;
1955
- case 'IS_STATE':
1956
- this.opt.isDescribingState = !!prop.Value;
1957
- break;
1958
- case 'CUSTOM_DIMENSION':
1959
- this.opt.customDimension = !!prop.Value;
1960
- break;
1961
- case 'CUSTOM_DIMENSION_TEXT':
1962
- this.opt.customDimensionText = prop.Value;
1963
- break;
1964
- case 'HIDE_OPTION_IN_CONFIGURATOR':
1965
- this.opt.hideOptionInConfigurator = !!prop.Value;
1966
- break;
1967
- case 'MERGE_IDM_TO_OPG':
1968
- this.opt.mergeIDMToOPG = prop.Value;
1969
- break;
1970
- case 'ONLY_VISIBLE_IF_NOT_UNDOCK':
1971
- this.opt.onlyVisibleIfNotDocked = prop.Value;
1972
- break;
1973
- case 'ONLY_VISIBLE_IF_CONFIG_SINGLE':
1974
- this.opt.onlyVisibleIfConfigSingle = prop.Value;
1975
- break;
1976
- case 'ONLY_VISIBLE_IF_CONFIG_ALL':
1977
- this.opt.onlyVisibleIfConfigAll = prop.Value;
1978
- break;
1979
- case 'ISDEFAULTVALUEFOROPTIONS':
1980
- this.opt.isDefaultValueForOptions = prop.Value;
1981
- break;
1982
- case 'FREETEXT_DEFAULT_VALUE':
1983
- this.opt.freetextDefaultValue = prop.Value;
1984
- break;
1985
- case 'SHOW_IN_VARIANTDESC':
1986
- this.opt.forceShowVariantDesc = prop.Value;
1987
- break;
1988
- case 'SHOW_SEPARAT_ON_TABGROUP':
1989
- this.opt.showOnSeparatTabgroup = prop.Value;
1990
- break;
1991
- case 'SETNAME':
1992
- this.opt.setName = prop.Value;
1993
- break;
1994
- case 'ADD_OPT_TO_TABGROUP_IN_PL_SUM':
1995
- this.opt.addOptionToTabgroupInPartlistSummary = prop.Value;
1996
- break;
1997
- case 'ADD_TO_WWS':
1998
- this.opt.addToWWS = prop.Value;
1999
- break;
2000
- case 'DEFAULT_SIBLING_OPTION':
2001
- this.opt.isDefaultSiblingOption = prop.Value;
2002
- break;
2003
- case 'CONTENT_ITEM':
2004
- this.opt.contentItemId = prop.Value;
2005
- break;
2006
- case 'SendToPim':
2007
- this.opt.sendToPIM = prop.Value == '1';
2008
- break;
2009
- case 'Multiselect':
2010
- this.opt.isMultiselect = prop.Value == '1';
2011
- break;
2012
- case 'ADDITIONAL_GROUP_FILTER':
2013
- this.opt.additionalGroupFilter = JSON.parse(prop.Value);
2014
- break;
2015
- case 'ION_COMMENT_TEXT':
2016
- case 'SHOW_IN_BASKET_WHEN_HAS_PRICE':
2017
- case 'FEATURE_TYPE':
2018
- case 'EshopCategoryMapping':
2019
- case 'EshopSearchRelevant':
2020
- case 'IsSalesText':
2021
- case 'IsArtName':
2022
- break;
2023
- default:
2024
- LOG$o.debug('implement mapping for these props for options: ' + prop.Codex);
2025
- break;
2026
- }
2027
- }
1923
+ setOptionsProperties(catalogData, this.opt.propertyObj, (_this$opt$property = this.opt.property) !== null && _this$opt$property !== void 0 ? _this$opt$property : []);
2028
1924
  }
2029
1925
 
2030
1926
  /**************************************************GETTER ***************************************************/
@@ -2108,10 +2004,15 @@ var OptionCatalogData = /*#__PURE__*/function () {
2108
2004
  get: function get() {
2109
2005
  return this.opt.articlePlaceholder;
2110
2006
  }
2007
+ }, {
2008
+ key: "isMultiselect",
2009
+ get: function get() {
2010
+ return this.opt.isMultiselect;
2011
+ }
2111
2012
  }, {
2112
2013
  key: "isDefaultSiblingOption",
2113
2014
  get: function get() {
2114
- return this.opt.isDefaultSiblingOption;
2015
+ return this.opt.propertyObj.isDefaultSiblingOption;
2115
2016
  }
2116
2017
  }, {
2117
2018
  key: "layout",
@@ -2122,90 +2023,90 @@ var OptionCatalogData = /*#__PURE__*/function () {
2122
2023
  this.opt.layout = layout;
2123
2024
  }
2124
2025
  }, {
2125
- key: "pairWithOptionsToGroup",
2026
+ key: "measureKey",
2126
2027
  get: function get() {
2127
- return this.opt.pairWithOptionsToGroup;
2028
+ return this.opt.measureKey;
2128
2029
  }
2129
2030
  }, {
2130
- key: "isDescribingState",
2031
+ key: "pairWithOptionsToGroup",
2131
2032
  get: function get() {
2132
- return this.opt.isDescribingState;
2033
+ return this.opt.propertyObj.pairWithOptionsToGroup;
2133
2034
  }
2134
2035
  }, {
2135
- key: "requiresUserInput",
2036
+ key: "isDescribingState",
2136
2037
  get: function get() {
2137
- return this.opt.requiresUserInput;
2038
+ return this.opt.propertyObj.isDescribingState;
2138
2039
  }
2139
2040
  }, {
2140
- key: "isMultiselect",
2041
+ key: "requiresUserInput",
2141
2042
  get: function get() {
2142
- return this.opt.isMultiselect;
2043
+ return this.opt.propertyObj.requiresUserInput;
2143
2044
  }
2144
2045
  }, {
2145
2046
  key: "hideOptionInConfigurator",
2146
2047
  get: function get() {
2147
- return this.opt.hideOptionInConfigurator;
2048
+ return this.opt.propertyObj.hideOptionInConfigurator;
2148
2049
  }
2149
2050
  }, {
2150
2051
  key: "mergeIDMToOPG",
2151
2052
  get: function get() {
2152
- return this.opt.mergeIDMToOPG;
2053
+ return this.opt.propertyObj.mergeIDMToOPG;
2153
2054
  }
2154
2055
  }, {
2155
2056
  key: "onlyVisibleIfNotDocked",
2156
2057
  get: function get() {
2157
2058
  // deprecated: was used for Bail amalfi accessoires
2158
- return this.opt.onlyVisibleIfNotDocked;
2059
+ return this.opt.propertyObj.onlyVisibleIfNotDocked;
2159
2060
  }
2160
2061
  }, {
2161
2062
  key: "onlyVisibleIfConfigSingle",
2162
2063
  get: function get() {
2163
- return this.opt.onlyVisibleIfConfigSingle;
2064
+ return this.opt.propertyObj.onlyVisibleIfConfigSingle;
2164
2065
  }
2165
2066
  }, {
2166
2067
  key: "onlyVisibleIfConfigAll",
2167
2068
  get: function get() {
2168
- return this.opt.onlyVisibleIfConfigAll;
2069
+ return this.opt.propertyObj.onlyVisibleIfConfigAll;
2169
2070
  }
2170
2071
  }, {
2171
2072
  key: "isDefaultValueForOptions",
2172
2073
  get: function get() {
2173
- return this.opt.isDefaultValueForOptions;
2074
+ return this.opt.propertyObj.isDefaultValueForOptions;
2174
2075
  }
2175
2076
  }, {
2176
2077
  key: "freetextDefaultValue",
2177
2078
  get: function get() {
2178
- return this.opt.freetextDefaultValue;
2079
+ return this.opt.propertyObj.freetextDefaultValue;
2179
2080
  }
2180
2081
  }, {
2181
2082
  key: "url",
2182
2083
  get: function get() {
2183
- return this.opt.url;
2084
+ return this.opt.propertyObj.url;
2184
2085
  }
2185
2086
  }, {
2186
2087
  key: "showSearchbar",
2187
2088
  get: function get() {
2188
- return this.opt.showSearchbar;
2089
+ return this.opt.propertyObj.showSearchbar;
2189
2090
  }
2190
2091
  }, {
2191
2092
  key: "showFilter",
2192
2093
  get: function get() {
2193
- return this.opt.showFilter;
2094
+ return this.opt.propertyObj.showFilter;
2194
2095
  }
2195
2096
  }, {
2196
2097
  key: "pdfUrl",
2197
2098
  get: function get() {
2198
- return this.opt.pdfUrl;
2099
+ return this.opt.propertyObj.pdfUrl;
2199
2100
  }
2200
2101
  }, {
2201
2102
  key: "diameter",
2202
2103
  get: function get() {
2203
- return this.opt.diameter;
2104
+ return this.opt.propertyObj.diameter;
2204
2105
  }
2205
2106
  }, {
2206
2107
  key: "forceShowVariantDesc",
2207
2108
  get: function get() {
2208
- return this.opt.forceShowVariantDesc;
2109
+ return this.opt.propertyObj.forceShowVariantDesc;
2209
2110
  }
2210
2111
  }, {
2211
2112
  key: "maskTabgroup",
@@ -2215,47 +2116,42 @@ var OptionCatalogData = /*#__PURE__*/function () {
2215
2116
  }, {
2216
2117
  key: "showOnSeparatTabgroup",
2217
2118
  get: function get() {
2218
- return this.opt.showOnSeparatTabgroup;
2119
+ return this.opt.propertyObj.showOnSeparatTabgroup;
2219
2120
  }
2220
2121
  }, {
2221
2122
  key: "setName",
2222
2123
  get: function get() {
2223
- return this.opt.setName;
2124
+ return this.opt.propertyObj.setName;
2224
2125
  }
2225
2126
  }, {
2226
2127
  key: "addOptionToTabgroupInPartlistSummary",
2227
2128
  get: function get() {
2228
- return this.opt.addOptionToTabgroupInPartlistSummary;
2129
+ return this.opt.propertyObj.addOptionToTabgroupInPartlistSummary;
2229
2130
  }
2230
2131
  }, {
2231
2132
  key: "addToWWS",
2232
2133
  get: function get() {
2233
- return this.opt.addToWWS;
2134
+ return this.opt.propertyObj.addToWWS;
2234
2135
  }
2235
2136
  }, {
2236
2137
  key: "sendToPIM",
2237
2138
  get: function get() {
2238
- return this.opt.sendToPIM;
2239
- }
2240
- }, {
2241
- key: "measureKey",
2242
- get: function get() {
2243
- return this.opt.measureKey;
2139
+ return this.opt.propertyObj.sendToPIM;
2244
2140
  }
2245
2141
  }, {
2246
2142
  key: "contentItemId",
2247
2143
  get: function get() {
2248
- return this.opt.contentItemId;
2144
+ return this.opt.propertyObj.contentItemId;
2249
2145
  }
2250
2146
  }, {
2251
2147
  key: "customDimension",
2252
2148
  get: function get() {
2253
- return this.opt.customDimension;
2149
+ return this.opt.propertyObj.customDimension;
2254
2150
  }
2255
2151
  }, {
2256
2152
  key: "customDimensionText",
2257
2153
  get: function get() {
2258
- return this.opt.customDimensionText;
2154
+ return this.opt.propertyObj.customDimensionText;
2259
2155
  }
2260
2156
  }, {
2261
2157
  key: "sequenceNo",
@@ -2265,20 +2161,121 @@ var OptionCatalogData = /*#__PURE__*/function () {
2265
2161
  }, {
2266
2162
  key: "ignoreGroups",
2267
2163
  get: function get() {
2268
- return this.opt.ignoreGroups;
2164
+ return this.opt.propertyObj.ignoreGroups;
2269
2165
  }
2270
2166
  }, {
2271
2167
  key: "ignorePgrGroupPosition",
2272
2168
  get: function get() {
2273
- return this.opt.ignorePgrGroupPosition;
2169
+ return this.opt.propertyObj.ignorePgrGroupPosition;
2274
2170
  }
2275
2171
  }, {
2276
2172
  key: "additionalGroupFilter",
2277
2173
  get: function get() {
2278
- return this.opt.additionalGroupFilter;
2174
+ return this.opt.propertyObj.additionalGroupFilter;
2279
2175
  }
2280
2176
  }]);
2281
2177
  }();
2178
+ var setOptionsProperties = function setOptionsProperties(catalogData, opt, properties) {
2179
+ for (var i = 0; i < (properties === null || properties === void 0 ? void 0 : properties.length); i++) {
2180
+ var prop = properties[i];
2181
+ var key = prop.Codex;
2182
+ if (key.startsWith(catalogData.catalogCodex + '__')) key = key.replace(catalogData.catalogCodex + '__', '');
2183
+ switch (key) {
2184
+ case 'INFO_URL':
2185
+ opt.url = prop.Value;
2186
+ break;
2187
+ case 'IGNORE_GROUPS':
2188
+ opt.ignoreGroups = prop.Value == '1';
2189
+ break;
2190
+ case 'IGNORE_PGR_GROUP_POSITION':
2191
+ opt.ignorePgrGroupPosition = prop.Value == '1';
2192
+ break;
2193
+ case 'SHOW_SEARCHBAR':
2194
+ opt.showSearchbar = prop.Value == '1';
2195
+ break;
2196
+ case 'SHOW_FILTER':
2197
+ opt.showFilter = prop.Value == '1';
2198
+ break;
2199
+ case 'INFO_PDF':
2200
+ opt.pdfUrl = prop.Value;
2201
+ break;
2202
+ case 'DIAMETER':
2203
+ opt.diameter = !!prop.Value;
2204
+ break;
2205
+ case 'PAIROPTION':
2206
+ opt.pairWithOptionsToGroup = prop.Value;
2207
+ break;
2208
+ case 'REQUIRES_USER_INPUT':
2209
+ opt.requiresUserInput = !!prop.Value;
2210
+ break;
2211
+ case 'IS_STATE':
2212
+ opt.isDescribingState = !!prop.Value;
2213
+ break;
2214
+ case 'CUSTOM_DIMENSION':
2215
+ opt.customDimension = !!prop.Value;
2216
+ break;
2217
+ case 'CUSTOM_DIMENSION_TEXT':
2218
+ opt.customDimensionText = prop.Value;
2219
+ break;
2220
+ case 'HIDE_OPTION_IN_CONFIGURATOR':
2221
+ opt.hideOptionInConfigurator = !!prop.Value;
2222
+ break;
2223
+ case 'MERGE_IDM_TO_OPG':
2224
+ opt.mergeIDMToOPG = prop.Value;
2225
+ break;
2226
+ case 'ONLY_VISIBLE_IF_NOT_UNDOCK':
2227
+ opt.onlyVisibleIfNotDocked = prop.Value;
2228
+ break;
2229
+ case 'ONLY_VISIBLE_IF_CONFIG_SINGLE':
2230
+ opt.onlyVisibleIfConfigSingle = prop.Value;
2231
+ break;
2232
+ case 'ONLY_VISIBLE_IF_CONFIG_ALL':
2233
+ opt.onlyVisibleIfConfigAll = prop.Value;
2234
+ break;
2235
+ case 'ISDEFAULTVALUEFOROPTIONS':
2236
+ opt.isDefaultValueForOptions = prop.Value;
2237
+ break;
2238
+ case 'FREETEXT_DEFAULT_VALUE':
2239
+ opt.freetextDefaultValue = prop.Value;
2240
+ break;
2241
+ case 'SHOW_IN_VARIANTDESC':
2242
+ opt.forceShowVariantDesc = prop.Value;
2243
+ break;
2244
+ case 'SHOW_SEPARAT_ON_TABGROUP':
2245
+ opt.showOnSeparatTabgroup = prop.Value;
2246
+ break;
2247
+ case 'SETNAME':
2248
+ opt.setName = !!prop.Value;
2249
+ break;
2250
+ case 'ADD_OPT_TO_TABGROUP_IN_PL_SUM':
2251
+ opt.addOptionToTabgroupInPartlistSummary = prop.Value;
2252
+ break;
2253
+ case 'ADD_TO_WWS':
2254
+ opt.addToWWS = !!prop.Value;
2255
+ break;
2256
+ case 'DEFAULT_SIBLING_OPTION':
2257
+ opt.isDefaultSiblingOption = prop.Value;
2258
+ break;
2259
+ case 'CONTENT_ITEM':
2260
+ opt.contentItemId = prop.Value;
2261
+ break;
2262
+ case 'ADDITIONAL_GROUP_FILTER':
2263
+ opt.additionalGroupFilter = JSON.parse(prop.Value);
2264
+ break;
2265
+ case 'ION_COMMENT_TEXT':
2266
+ case 'SHOW_IN_BASKET_WHEN_HAS_PRICE':
2267
+ case 'FEATURE_TYPE':
2268
+ case 'EshopCategoryMapping':
2269
+ case 'EshopSearchRelevant':
2270
+ case 'IsSalesText':
2271
+ case 'IsArtName':
2272
+ break;
2273
+ default:
2274
+ LOG$o.debug('implement mapping for these props for options: ' + prop.Codex);
2275
+ break;
2276
+ }
2277
+ }
2278
+ };
2282
2279
 
2283
2280
  //https://en.wikipedia.org/wiki/List_of_RAL_colors#RAL_Effect
2284
2281
  var ralEffect = [{
@@ -16072,7 +16069,8 @@ var ralClassics = [{
16072
16069
  var LOG$n = DivaUtils__default["default"].initLog('Planner', 'WEB-PLANNER-LOGIC');
16073
16070
  var OptionValueCatalogData = /*#__PURE__*/function () {
16074
16071
  function OptionValueCatalogData(opv, catalogData) {
16075
- var _this = this;
16072
+ var _this = this,
16073
+ _this$opv$property;
16076
16074
  _classCallCheck__default["default"](this, OptionValueCatalogData);
16077
16075
  _defineProperty__default["default"](this, "opv", void 0);
16078
16076
  /**
@@ -16129,114 +16127,7 @@ var OptionValueCatalogData = /*#__PURE__*/function () {
16129
16127
  });
16130
16128
  this.opv = opv;
16131
16129
  opv.colorGroups = this.mapRALColorToGroup();
16132
- var metaDatas = [];
16133
- 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++) {
16134
- var _this$opv$property$le, _this$opv$property, _this$opv$property2;
16135
- var prop = (_this$opv$property2 = this.opv.property) === null || _this$opv$property2 === void 0 ? void 0 : _this$opv$property2[i];
16136
- var key = prop.Codex;
16137
- if (key.startsWith(catalogData.catalogCodex + '__')) key = key.replace(catalogData.catalogCodex + '__', '');
16138
- switch (key) {
16139
- case 'INFO_URL':
16140
- this.opv.url = prop.Value;
16141
- break;
16142
- case 'INFO_PDF':
16143
- this.opv.pdfUrl = prop.Value;
16144
- break;
16145
- case 'SAME_OPV':
16146
- this.opv.sameopv = prop.Value;
16147
- break;
16148
- case 'ONLY_VISIBLE_IF_NOT_UNDOCK':
16149
- this.opv.onlyVisibleIfNotDocked = prop.Value;
16150
- break;
16151
- case 'DEFAULT_VALUE':
16152
- this.opv.defaultValue = prop.Value;
16153
- break;
16154
- case 'SUMMARY_CODEX':
16155
- this.opv.summaryCodex = prop.Value;
16156
- break;
16157
- case 'VIEWPOINTNAME':
16158
- this.opv.viewPointName = prop.Value;
16159
- break;
16160
- case 'HIDE_IN_SUMMARY':
16161
- this.opv.hideInSummary = !!prop.Value;
16162
- break;
16163
- case 'SETNAME':
16164
- this.opv.setName = prop.Value;
16165
- break;
16166
- case 'SET_CONFIG':
16167
- this.opv.setConfig = prop.Value;
16168
- break;
16169
- case 'CUSTOM_DIMENSION':
16170
- if (prop.Value == 1 || prop.Value == 0) {
16171
- this.opv.customDimension = !!prop.Value;
16172
- } else if (!isNaN(Number(prop.Value))) {
16173
- this.opv.customDimension = Number(prop.Value);
16174
- } else {
16175
- console.error('Error: Invalid custom dimension value: ' + prop.Value + ' at opv: ' + this.opv.codex);
16176
- this.opv.customDimension = undefined;
16177
- }
16178
- break;
16179
- case 'ON_RULE':
16180
- this.opv.onRule = prop.Value;
16181
- break;
16182
- case 'CONTENT_ITEM':
16183
- this.opv.contentItemId = prop.Value;
16184
- break;
16185
- case 'IS_NOT_RELEVANT':
16186
- this.opv.isNotRelevant = prop.Value;
16187
- break;
16188
- case 'GROUP_CONTENT_ITEM':
16189
- this.opv.groupContentItemId = prop.Value;
16190
- break;
16191
- case 'SET_BY_RULE':
16192
- this.opv.setByRule = prop.Value;
16193
- break;
16194
- case 'ADD_TO_MEASURE':
16195
- this.opv.addToMeasure = prop.Value.split(';').map(function (v) {
16196
- return {
16197
- op: v.split(':')[0],
16198
- value: Number(v.split(':')[1]),
16199
- opt: 'OPT' + v.split(':')[2]
16200
- };
16201
- });
16202
- break;
16203
- case 'PIMFlatValues':
16204
- this.opv.isPIMFlatValue = prop.Value == '1';
16205
- break;
16206
- case 'IsVariantAttribute':
16207
- this.opv.isVariantAttribute = prop.Value == '1';
16208
- break;
16209
- case 'ION_COMMENT_TEXT':
16210
- case 'EshopCategoryMapping':
16211
- case 'TopFilterAttribute':
16212
- case 'PriceTageRelevant':
16213
- case 'IsArtName':
16214
- break;
16215
- default:
16216
- if (key.includes('__')) break;
16217
- LOG$n.debug('implement mapping for these props for optionValue: ' + prop.Codex);
16218
- var values_locales = [];
16219
- if (prop.Value_locales) {
16220
- var _prop$Value_locales;
16221
- var langs = Object.keys((_prop$Value_locales = prop.Value_locales) !== null && _prop$Value_locales !== void 0 ? _prop$Value_locales : {});
16222
- for (var j = 0; j < langs.length; j++) {
16223
- var lang = langs[j];
16224
- var values = prop.Value_locales[lang].split(';');
16225
- for (var m = 0; m < values.length; m++) {
16226
- if (!values_locales[m]) values_locales[m] = {};
16227
- values_locales[m][lang] = values[m];
16228
- }
16229
- }
16230
- }
16231
- metaDatas.push({
16232
- codex: prop.Codex,
16233
- name: prop.Name,
16234
- values: prop.Value.split(';'),
16235
- values_locales: values_locales
16236
- });
16237
- break;
16238
- }
16239
- }
16130
+ var metaDatas = setOptionValueProperties(catalogData, this.opv.propertyObj, (_this$opv$property = this.opv.property) !== null && _this$opv$property !== void 0 ? _this$opv$property : []);
16240
16131
  this.opv.metaData = metaDatas;
16241
16132
  }
16242
16133
  /**************************************************GETTER ************************************************** */
@@ -16250,11 +16141,6 @@ var OptionValueCatalogData = /*#__PURE__*/function () {
16250
16141
  get: function get() {
16251
16142
  return this.opv.vCodex;
16252
16143
  }
16253
- }, {
16254
- key: "isNotRelevant",
16255
- get: function get() {
16256
- return this.opv.isNotRelevant;
16257
- }
16258
16144
  }, {
16259
16145
  key: "name",
16260
16146
  get: function get() {
@@ -16383,15 +16269,20 @@ var OptionValueCatalogData = /*#__PURE__*/function () {
16383
16269
  get: function get() {
16384
16270
  return this.opv.value;
16385
16271
  }
16272
+ }, {
16273
+ key: "isNotRelevant",
16274
+ get: function get() {
16275
+ return this.opv.propertyObj.isNotRelevant;
16276
+ }
16386
16277
  }, {
16387
16278
  key: "contentItemId",
16388
16279
  get: function get() {
16389
- return this.opv.contentItemId;
16280
+ return this.opv.propertyObj.contentItemId;
16390
16281
  }
16391
16282
  }, {
16392
16283
  key: "groupContentItemId",
16393
16284
  get: function get() {
16394
- return this.opv.groupContentItemId;
16285
+ return this.opv.propertyObj.groupContentItemId;
16395
16286
  }
16396
16287
  }, {
16397
16288
  key: "metaData",
@@ -16420,18 +16311,13 @@ var OptionValueCatalogData = /*#__PURE__*/function () {
16420
16311
  var _this$opv$metaData;
16421
16312
  return (_this$opv$metaData = this.opv.metaData) !== null && _this$opv$metaData !== void 0 ? _this$opv$metaData : [];
16422
16313
  }
16423
- }, {
16424
- key: "url",
16425
- get: function get() {
16426
- return this.opv.url;
16427
- }
16428
16314
  }, {
16429
16315
  key: "pdfUrl",
16430
16316
  get: function get() {
16431
16317
  var _this$opv$textbaustei, _this$opv$textbaustei2;
16432
16318
  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) {
16433
16319
  return item.Memo.endsWith('.pdf');
16434
- })) === null || _this$opv$textbaustei2 === void 0 ? void 0 : _this$opv$textbaustei2.Memo) !== null && _this$opv$textbaustei !== void 0 ? _this$opv$textbaustei : this.opv.pdfUrl;
16320
+ })) === 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;
16435
16321
  }
16436
16322
  }, {
16437
16323
  key: "rals",
@@ -16443,10 +16329,15 @@ var OptionValueCatalogData = /*#__PURE__*/function () {
16443
16329
  get: function get() {
16444
16330
  return this.opv.colorGroups;
16445
16331
  }
16332
+ }, {
16333
+ key: "url",
16334
+ get: function get() {
16335
+ return this.opv.propertyObj.url;
16336
+ }
16446
16337
  }, {
16447
16338
  key: "sameopv",
16448
16339
  get: function get() {
16449
- return this.opv.sameopv;
16340
+ return this.opv.propertyObj.sameopv;
16450
16341
  }
16451
16342
  }, {
16452
16343
  key: "isCustomAttribute",
@@ -16456,27 +16347,27 @@ var OptionValueCatalogData = /*#__PURE__*/function () {
16456
16347
  }, {
16457
16348
  key: "onlyVisibleIfNotDocked",
16458
16349
  get: function get() {
16459
- return this.opv.onlyVisibleIfNotDocked;
16350
+ return this.opv.propertyObj.onlyVisibleIfNotDocked;
16460
16351
  }
16461
16352
  }, {
16462
16353
  key: "defaultValue",
16463
16354
  get: function get() {
16464
- return this.opv.defaultValue;
16355
+ return this.opv.propertyObj.defaultValue;
16465
16356
  }
16466
16357
  }, {
16467
16358
  key: "summaryCodex",
16468
16359
  get: function get() {
16469
- return this.opv.summaryCodex;
16360
+ return this.opv.propertyObj.summaryCodex;
16470
16361
  }
16471
16362
  }, {
16472
16363
  key: "viewPointName",
16473
16364
  get: function get() {
16474
- return this.opv.viewPointName;
16365
+ return this.opv.propertyObj.viewPointName;
16475
16366
  }
16476
16367
  }, {
16477
16368
  key: "hideInSummary",
16478
16369
  get: function get() {
16479
- return this.opv.hideInSummary;
16370
+ return this.opv.propertyObj.hideInSummary;
16480
16371
  }
16481
16372
  }, {
16482
16373
  key: "hiddenByMask",
@@ -16486,45 +16377,156 @@ var OptionValueCatalogData = /*#__PURE__*/function () {
16486
16377
  }, {
16487
16378
  key: "setName",
16488
16379
  get: function get() {
16489
- return this.opv.setName;
16380
+ return this.opv.propertyObj.setName;
16490
16381
  }
16491
16382
  }, {
16492
16383
  key: "setConfig",
16493
16384
  get: function get() {
16494
- return this.opv.setConfig;
16385
+ return this.opv.propertyObj.setConfig;
16495
16386
  }
16496
16387
  }, {
16497
16388
  key: "setByRule",
16498
16389
  get: function get() {
16499
- return this.opv.setByRule;
16390
+ return this.opv.propertyObj.setByRule;
16500
16391
  }
16501
16392
  }, {
16502
16393
  key: "onRule",
16503
16394
  get: function get() {
16504
- return this.opv.onRule;
16395
+ return this.opv.propertyObj.onRule;
16505
16396
  }
16506
16397
  }, {
16507
16398
  key: "customDimension",
16508
16399
  get: function get() {
16509
- return this.opv.customDimension;
16400
+ return this.opv.propertyObj.customDimension;
16510
16401
  }
16511
16402
  }, {
16512
16403
  key: "addToMeasure",
16513
16404
  get: function get() {
16514
- return this.opv.addToMeasure;
16405
+ return this.opv.propertyObj.addToMeasure;
16515
16406
  }
16516
16407
  }, {
16517
16408
  key: "isPIMFlatValue",
16518
16409
  get: function get() {
16519
- return this.opv.isPIMFlatValue;
16410
+ return this.opv.propertyObj.isPIMFlatValue;
16520
16411
  }
16521
16412
  }, {
16522
16413
  key: "isVariantAttribute",
16523
16414
  get: function get() {
16524
- return this.opv.isVariantAttribute;
16415
+ return this.opv.propertyObj.isVariantAttribute;
16525
16416
  }
16526
16417
  }]);
16527
16418
  }();
16419
+ var setOptionValueProperties = function setOptionValueProperties(catalogData, opv, properties) {
16420
+ var metaDatas = [];
16421
+ 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++) {
16422
+ var _properties$length;
16423
+ var prop = properties === null || properties === void 0 ? void 0 : properties[i];
16424
+ var key = prop.Codex;
16425
+ if (key.startsWith(catalogData.catalogCodex + '__')) key = key.replace(catalogData.catalogCodex + '__', '');
16426
+ switch (key) {
16427
+ case 'INFO_URL':
16428
+ opv.url = prop.Value;
16429
+ break;
16430
+ case 'INFO_PDF':
16431
+ opv.pdfUrl = prop.Value;
16432
+ break;
16433
+ case 'SAME_OPV':
16434
+ opv.sameopv = prop.Value;
16435
+ break;
16436
+ case 'ONLY_VISIBLE_IF_NOT_UNDOCK':
16437
+ opv.onlyVisibleIfNotDocked = prop.Value;
16438
+ break;
16439
+ case 'DEFAULT_VALUE':
16440
+ opv.defaultValue = prop.Value;
16441
+ break;
16442
+ case 'SUMMARY_CODEX':
16443
+ opv.summaryCodex = prop.Value;
16444
+ break;
16445
+ case 'VIEWPOINTNAME':
16446
+ opv.viewPointName = prop.Value;
16447
+ break;
16448
+ case 'HIDE_IN_SUMMARY':
16449
+ opv.hideInSummary = !!prop.Value;
16450
+ break;
16451
+ case 'SETNAME':
16452
+ opv.setName = prop.Value;
16453
+ break;
16454
+ case 'SET_CONFIG':
16455
+ opv.setConfig = prop.Value;
16456
+ break;
16457
+ case 'CUSTOM_DIMENSION':
16458
+ if (prop.Value == '1' || prop.Value == '0') {
16459
+ opv.customDimension = !!prop.Value;
16460
+ } else if (!isNaN(Number(prop.Value))) {
16461
+ opv.customDimension = Number(prop.Value);
16462
+ } else {
16463
+ console.error('Error: Invalid custom dimension value: ' + prop.Value + ' at opv: ' + opv);
16464
+ opv.customDimension = undefined;
16465
+ }
16466
+ break;
16467
+ case 'ON_RULE':
16468
+ opv.onRule = prop.Value;
16469
+ break;
16470
+ case 'CONTENT_ITEM':
16471
+ opv.contentItemId = prop.Value;
16472
+ break;
16473
+ case 'IS_NOT_RELEVANT':
16474
+ opv.isNotRelevant = !!prop.Value;
16475
+ break;
16476
+ case 'GROUP_CONTENT_ITEM':
16477
+ opv.groupContentItemId = prop.Value;
16478
+ break;
16479
+ case 'SET_BY_RULE':
16480
+ opv.setByRule = prop.Value;
16481
+ break;
16482
+ case 'ADD_TO_MEASURE':
16483
+ opv.addToMeasure = prop.Value.split(';').map(function (v) {
16484
+ return {
16485
+ op: v.split(':')[0],
16486
+ value: Number(v.split(':')[1]),
16487
+ opt: 'OPT' + v.split(':')[2]
16488
+ };
16489
+ });
16490
+ break;
16491
+ case 'PIMFlatValues':
16492
+ opv.isPIMFlatValue = prop.Value == '1';
16493
+ break;
16494
+ case 'IsVariantAttribute':
16495
+ opv.isVariantAttribute = prop.Value == '1';
16496
+ break;
16497
+ case 'ION_COMMENT_TEXT':
16498
+ case 'EshopCategoryMapping':
16499
+ case 'TopFilterAttribute':
16500
+ case 'PriceTageRelevant':
16501
+ case 'IsArtName':
16502
+ break;
16503
+ default:
16504
+ if (key.includes('__')) break;
16505
+ LOG$n.debug('implement mapping for these props for optionValue: ' + prop.Codex);
16506
+ var values_locales = [];
16507
+ if (prop.Value_locales) {
16508
+ var _prop$Value_locales;
16509
+ var langs = Object.keys((_prop$Value_locales = prop.Value_locales) !== null && _prop$Value_locales !== void 0 ? _prop$Value_locales : {});
16510
+ for (var j = 0; j < langs.length; j++) {
16511
+ var lang = langs[j];
16512
+ var values = prop.Value_locales[lang].split(';');
16513
+ for (var m = 0; m < values.length; m++) {
16514
+ if (!values_locales[m]) values_locales[m] = {};
16515
+ values_locales[m][lang] = values[m];
16516
+ }
16517
+ }
16518
+ }
16519
+ metaDatas.push({
16520
+ codex: prop.Codex,
16521
+ name: prop.Name,
16522
+ values: prop.Value.split(';'),
16523
+ values_locales: values_locales
16524
+ });
16525
+ break;
16526
+ }
16527
+ }
16528
+ return metaDatas;
16529
+ };
16528
16530
 
16529
16531
  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; } } }; }
16530
16532
  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; } }
@@ -16540,7 +16542,7 @@ var CatalogArticleData = /*#__PURE__*/function () {
16540
16542
  if (!_this._catalogArticle.metaData) return metaData;
16541
16543
  for (var i = 0; i < _this._catalogArticle.metaData.length; i++) {
16542
16544
  var data = _this._catalogArticle.metaData[i];
16543
- metaData[data.codex] = locales ? data.values_locales : data.values;
16545
+ metaData[data.codex] = locales && data.values_locales ? data.values_locales : data.values;
16544
16546
  }
16545
16547
  return metaData;
16546
16548
  });
@@ -17406,8 +17408,9 @@ function setCatalogPlannsCompletely(catalogData) {
17406
17408
  }
17407
17409
  }
17408
17410
  function getCatalogArticle$1(jsonArticle, catalogData) {
17409
- var _catalogData$catalogM, _articleMask$name$cat, _articleMask$name, _jsonArticle$Metadata, _articleMask$properti, _articleMask$groupnam, _articleMask$groupnam2, _articleMask$hidden;
17411
+ var _catalogData$catalogM, _catalogData$catalogM2, _catalogData$catalogM3, _articleMask$name$cat, _articleMask$name, _jsonArticle$Metadata, _articleMask$groupnam, _articleMask$groupnam2, _articleMask$hidden;
17410
17412
  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];
17413
+ 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());
17411
17414
  //parse den Json Article und erstelle CatalogArticle
17412
17415
  return {
17413
17416
  articleCodex: jsonArticle.Codex,
@@ -17424,7 +17427,7 @@ function getCatalogArticle$1(jsonArticle, catalogData) {
17424
17427
  articleOptions: {},
17425
17428
  decisions: [],
17426
17429
  idmDecisions: [],
17427
- properties: [].concat(_toConsumableArray__default["default"]((_jsonArticle$Metadata = jsonArticle.Metadatas) !== null && _jsonArticle$Metadata !== void 0 ? _jsonArticle$Metadata : []), _toConsumableArray__default["default"]((_articleMask$properti = articleMask === null || articleMask === void 0 ? void 0 : articleMask.properties) !== null && _articleMask$properti !== void 0 ? _articleMask$properti : [])),
17430
+ properties: [].concat(_toConsumableArray__default["default"]((_jsonArticle$Metadata = jsonArticle.Metadatas) !== null && _jsonArticle$Metadata !== void 0 ? _jsonArticle$Metadata : []), _toConsumableArray__default["default"](maskProperties !== null && maskProperties !== void 0 ? maskProperties : [])),
17428
17431
  image: jsonArticle.Image && jsonArticle.Image != '' ? jsonArticle.Image : undefined,
17429
17432
  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,
17430
17433
  origGroupName: jsonArticle.GroupName,
@@ -17510,9 +17513,10 @@ function initCatalogOptions(catalogData, jsonOptions) {
17510
17513
  return options;
17511
17514
  }
17512
17515
  function getCatalogOptionDataType(codex, jsonOPT, catalogData) {
17513
- 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;
17514
- 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;
17515
- var properties = [].concat(_toConsumableArray__default["default"]((_jsonOPT$Properties = jsonOPT.Properties) !== null && _jsonOPT$Properties !== void 0 ? _jsonOPT$Properties : []), _toConsumableArray__default["default"]((_optionMask$propertie = optionMask === null || optionMask === void 0 ? void 0 : optionMask.properties) !== null && _optionMask$propertie !== void 0 ? _optionMask$propertie : []));
17516
+ 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;
17517
+ 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());
17518
+ 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;
17519
+ var properties = [].concat(_toConsumableArray__default["default"]((_jsonOPT$Properties = jsonOPT.Properties) !== null && _jsonOPT$Properties !== void 0 ? _jsonOPT$Properties : []), _toConsumableArray__default["default"](maskProperties !== null && maskProperties !== void 0 ? maskProperties : []));
17516
17520
  var opt = {
17517
17521
  codex: codex,
17518
17522
  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,
@@ -17526,8 +17530,6 @@ function getCatalogOptionDataType(codex, jsonOPT, catalogData) {
17526
17530
  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) {
17527
17531
  return p.Codex == 'LAYOUT';
17528
17532
  })) === null || _properties$find === void 0 ? void 0 : _properties$find.Value) !== null && _ref !== void 0 ? _ref : jsonOPT.Layout != undefined ? jsonOPT.Layout : 'IMAGE',
17529
- multiselect: jsonOPT.Multiselect != undefined ? jsonOPT.Multiselect == 'True' : false,
17530
- sendToPIM: !!jsonOPT.SendToPIM,
17531
17533
  useMaxPriceOfGroup: jsonOPT.UseMaxPriceOfGroup != undefined ? Number(jsonOPT.UseMaxPriceOfGroup) : undefined,
17532
17534
  calcPercentOnOptions: jsonOPT.CalcPercentOnOptions,
17533
17535
  hideGroupNameInOrderText: jsonOPT.hideGroupNameInOrderText != undefined ? jsonOPT.hideGroupNameInOrderText == 'True' : false,
@@ -17537,7 +17539,13 @@ function getCatalogOptionDataType(codex, jsonOPT, catalogData) {
17537
17539
  property: properties,
17538
17540
  parentOptionCodex: jsonOPT.ParentOptionCodex,
17539
17541
  articlePlaceholder: jsonOPT.ArticlePlaceholder && jsonOPT.ArticlePlaceholder == 'True' ? true : false,
17540
- isMultiselect: jsonOPT.Multiselect != undefined ? jsonOPT.Multiselect == 'True' : false
17542
+ sendToPIM: !!jsonOPT.SendToPIM || !!(properties !== null && properties !== void 0 && (_properties$find2 = properties.find(function (p) {
17543
+ return p.Codex == 'SendToPim';
17544
+ })) !== null && _properties$find2 !== void 0 && _properties$find2.Value),
17545
+ isMultiselect: jsonOPT.Multiselect != undefined ? jsonOPT.Multiselect == 'True' : !!(properties !== null && properties !== void 0 && (_properties$find3 = properties.find(function (p) {
17546
+ return p.Codex == 'Multiselect';
17547
+ })) !== null && _properties$find3 !== void 0 && _properties$find3.Value),
17548
+ propertyObj: {}
17541
17549
  };
17542
17550
  opt.showOPVCodex = opt.showOPVCodex || opt.showOPVAsArticleNr;
17543
17551
  opt.invisible = opt.invisible || opt.headerPosVariationType == 'U';
@@ -17552,9 +17560,11 @@ function initCatalogOptionValues(catalogData, jsonOptions) {
17552
17560
  return optionValues;
17553
17561
  }
17554
17562
  function getCatalogOptionValueDataType(codex, jsonOPV, catalogData) {
17555
- 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;
17556
- 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;
17563
+ 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;
17564
+ 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;
17557
17565
  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;
17566
+ 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());
17567
+ var properties = [].concat(_toConsumableArray__default["default"]((_jsonOPV$Metadatas = jsonOPV.Metadatas) !== null && _jsonOPV$Metadatas !== void 0 ? _jsonOPV$Metadatas : []), _toConsumableArray__default["default"](maskProperties !== null && maskProperties !== void 0 ? maskProperties : []));
17558
17568
  var opv = {
17559
17569
  codex: codex,
17560
17570
  vCodex: jsonOPV.VCodex,
@@ -17582,8 +17592,9 @@ function getCatalogOptionValueDataType(codex, jsonOPV, catalogData) {
17582
17592
  showOnlyWhenHasPrice: jsonOPV.ShowOnlyWhenHasPrice && jsonOPV.ShowOnlyWhenHasPrice == 'True' ? true : false,
17583
17593
  priceUnit: jsonOPV.PriceUnit,
17584
17594
  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,
17585
- property: [].concat(_toConsumableArray__default["default"]((_jsonOPV$Metadatas = jsonOPV.Metadatas) !== null && _jsonOPV$Metadatas !== void 0 ? _jsonOPV$Metadatas : []), _toConsumableArray__default["default"]((_mask$properties = mask === null || mask === void 0 ? void 0 : mask.properties) !== null && _mask$properties !== void 0 ? _mask$properties : [])),
17586
- textbausteine: jsonOPV.Textbausteine
17595
+ property: properties,
17596
+ textbausteine: jsonOPV.Textbausteine,
17597
+ propertyObj: {}
17587
17598
  };
17588
17599
  if (jsonOPV.MeasureUnit) {
17589
17600
  switch (jsonOPV.MeasureUnit) {
@@ -17876,12 +17887,66 @@ function getImageURL(image, mediaUrl) {
17876
17887
  }
17877
17888
  return ret;
17878
17889
  }
17890
+ function getPropertiesForFeatureNo(properties, typeNo, featureNo, lang) {
17891
+ return properties.filter(function (p) {
17892
+ var _p$featureNos, _p$optionKeys, _p$typeNos, _p$typeNos2;
17893
+ 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)));
17894
+ }).map(function (p) {
17895
+ return {
17896
+ Value: DivaUtils__default["default"].getLocals(p.value, lang),
17897
+ Codex: p.key,
17898
+ Name: DivaUtils__default["default"].getLocals(p.name, lang),
17899
+ Value_locales: p.valueLocales
17900
+ };
17901
+ });
17902
+ }
17903
+ function getPropertiesForOptionKey(properties, featureNo, optionKey, lang) {
17904
+ return properties.filter(function (p) {
17905
+ var _p$featureNos2, _p$optionKeys2;
17906
+ 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));
17907
+ }).map(function (p) {
17908
+ return {
17909
+ Value: DivaUtils__default["default"].getLocals(p.value, lang),
17910
+ Codex: p.key,
17911
+ Name: DivaUtils__default["default"].getLocals(p.name, lang),
17912
+ Value_locales: p.valueLocales
17913
+ };
17914
+ });
17915
+ }
17916
+ function getPropertiesForSerieNo(properties, serieNo, lang) {
17917
+ return properties.filter(function (p) {
17918
+ var _p$serieNos;
17919
+ return (_p$serieNos = p.serieNos) === null || _p$serieNos === void 0 ? void 0 : _p$serieNos.includes(serieNo);
17920
+ }).map(function (p) {
17921
+ return {
17922
+ Value: DivaUtils__default["default"].getLocals(p.value, lang),
17923
+ Codex: p.key,
17924
+ Name: DivaUtils__default["default"].getLocals(p.name, lang),
17925
+ Value_locales: p.valueLocales
17926
+ };
17927
+ });
17928
+ }
17929
+ function getPropertiesForItemNo(properties, itemNo, lang) {
17930
+ return properties.filter(function (p) {
17931
+ var _p$typeNos3;
17932
+ return (_p$typeNos3 = p.typeNos) === null || _p$typeNos3 === void 0 ? void 0 : _p$typeNos3.includes(itemNo);
17933
+ }).map(function (p) {
17934
+ return {
17935
+ Value: DivaUtils__default["default"].getLocals(p.value, lang),
17936
+ Codex: p.key,
17937
+ Name: DivaUtils__default["default"].getLocals(p.name, lang),
17938
+ Value_locales: p.valueLocales
17939
+ };
17940
+ });
17941
+ }
17879
17942
 
17880
17943
  var ArticleOptionValueData = /*#__PURE__*/function () {
17881
- function ArticleOptionValueData(opv) {
17944
+ function ArticleOptionValueData(opv, catalogData) {
17945
+ var _this$opv$property;
17882
17946
  _classCallCheck__default["default"](this, ArticleOptionValueData);
17883
17947
  _defineProperty__default["default"](this, "opv", void 0);
17884
17948
  this.opv = opv;
17949
+ setOptionValueProperties(catalogData, this.opv.propertyObj, (_this$opv$property = this.opv.property) !== null && _this$opv$property !== void 0 ? _this$opv$property : []);
17885
17950
  }
17886
17951
  return _createClass__default["default"](ArticleOptionValueData, [{
17887
17952
  key: "initOPVsInOPG",
@@ -17904,6 +17969,7 @@ var ArticleOptionValueData = /*#__PURE__*/function () {
17904
17969
  key: "isNotRelevant",
17905
17970
  get: function get() {
17906
17971
  var _this$opv$catalogOPV$, _this$ocd;
17972
+ if (this.opv.propertyObj.isNotRelevant !== undefined) return this.opv.propertyObj.isNotRelevant;
17907
17973
  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);
17908
17974
  }
17909
17975
  }, {
@@ -18065,11 +18131,13 @@ var ArticleOptionValueData = /*#__PURE__*/function () {
18065
18131
  }, {
18066
18132
  key: "contentItemId",
18067
18133
  get: function get() {
18134
+ if (this.opv.propertyObj.contentItemId !== undefined) return this.opv.propertyObj.contentItemId;
18068
18135
  return this.opv.catalogOPV.contentItemId;
18069
18136
  }
18070
18137
  }, {
18071
18138
  key: "groupContentItemId",
18072
18139
  get: function get() {
18140
+ if (this.opv.propertyObj.groupContentItemId !== undefined) return this.opv.propertyObj.groupContentItemId;
18073
18141
  return this.opv.catalogOPV.groupContentItemId;
18074
18142
  }
18075
18143
  }, {
@@ -18085,6 +18153,7 @@ var ArticleOptionValueData = /*#__PURE__*/function () {
18085
18153
  }, {
18086
18154
  key: "addToMeasure",
18087
18155
  get: function get() {
18156
+ if (this.opv.propertyObj.addToMeasure !== undefined) return this.opv.propertyObj.addToMeasure;
18088
18157
  return this.opv.catalogOPV.addToMeasure;
18089
18158
  }
18090
18159
  }, {
@@ -18182,11 +18251,13 @@ var ArticleOptionValueData = /*#__PURE__*/function () {
18182
18251
  }, {
18183
18252
  key: "url",
18184
18253
  get: function get() {
18254
+ if (this.opv.propertyObj.url !== undefined) return this.opv.propertyObj.url;
18185
18255
  return this.opv.catalogOPV.url;
18186
18256
  }
18187
18257
  }, {
18188
18258
  key: "pdfUrl",
18189
18259
  get: function get() {
18260
+ if (this.opv.propertyObj.pdfUrl !== undefined) return this.opv.propertyObj.pdfUrl;
18190
18261
  return this.opv.catalogOPV.pdfUrl;
18191
18262
  }
18192
18263
  }, {
@@ -18202,6 +18273,7 @@ var ArticleOptionValueData = /*#__PURE__*/function () {
18202
18273
  }, {
18203
18274
  key: "sameopv",
18204
18275
  get: function get() {
18276
+ if (this.opv.propertyObj.sameopv !== undefined) return this.opv.propertyObj.sameopv;
18205
18277
  return this.opv.catalogOPV.sameopv;
18206
18278
  }
18207
18279
  }, {
@@ -18212,26 +18284,31 @@ var ArticleOptionValueData = /*#__PURE__*/function () {
18212
18284
  }, {
18213
18285
  key: "onlyVisibleIfNotDocked",
18214
18286
  get: function get() {
18287
+ if (this.opv.propertyObj.onlyVisibleIfNotDocked !== undefined) return this.opv.propertyObj.onlyVisibleIfNotDocked;
18215
18288
  return this.opv.catalogOPV.onlyVisibleIfNotDocked;
18216
18289
  }
18217
18290
  }, {
18218
18291
  key: "defaultValue",
18219
18292
  get: function get() {
18293
+ if (this.opv.propertyObj.defaultValue !== undefined) return this.opv.propertyObj.defaultValue;
18220
18294
  return this.opv.catalogOPV.defaultValue;
18221
18295
  }
18222
18296
  }, {
18223
18297
  key: "summaryCodex",
18224
18298
  get: function get() {
18299
+ if (this.opv.propertyObj.summaryCodex !== undefined) return this.opv.propertyObj.summaryCodex;
18225
18300
  return this.opv.catalogOPV.summaryCodex;
18226
18301
  }
18227
18302
  }, {
18228
18303
  key: "viewPointName",
18229
18304
  get: function get() {
18305
+ if (this.opv.propertyObj.viewPointName !== undefined) return this.opv.propertyObj.viewPointName;
18230
18306
  return this.opv.catalogOPV.viewPointName;
18231
18307
  }
18232
18308
  }, {
18233
18309
  key: "hideInSummary",
18234
18310
  get: function get() {
18311
+ if (this.opv.propertyObj.hideInSummary !== undefined) return this.opv.propertyObj.hideInSummary;
18235
18312
  return this.opv.catalogOPV.hideInSummary;
18236
18313
  }
18237
18314
  }, {
@@ -18242,36 +18319,43 @@ var ArticleOptionValueData = /*#__PURE__*/function () {
18242
18319
  }, {
18243
18320
  key: "isPIMFlatValue",
18244
18321
  get: function get() {
18322
+ if (this.opv.propertyObj.isPIMFlatValue !== undefined) return this.opv.propertyObj.isPIMFlatValue;
18245
18323
  return this.opv.isPIMFlatValue || this.opv.catalogOPV.isPIMFlatValue;
18246
18324
  }
18247
18325
  }, {
18248
18326
  key: "isVariantAttribute",
18249
18327
  get: function get() {
18328
+ if (this.opv.propertyObj.isVariantAttribute !== undefined) return this.opv.propertyObj.isVariantAttribute;
18250
18329
  return this.opv.isVariantAttribute || this.opv.catalogOPV.isVariantAttribute;
18251
18330
  }
18252
18331
  }, {
18253
18332
  key: "setName",
18254
18333
  get: function get() {
18334
+ if (this.opv.propertyObj.setName !== undefined) return this.opv.propertyObj.setName;
18255
18335
  return this.opv.catalogOPV.setName;
18256
18336
  }
18257
18337
  }, {
18258
18338
  key: "setConfig",
18259
18339
  get: function get() {
18340
+ if (this.opv.propertyObj.setConfig !== undefined) return this.opv.propertyObj.setConfig;
18260
18341
  return this.opv.catalogOPV.setConfig;
18261
18342
  }
18262
18343
  }, {
18263
18344
  key: "setByRule",
18264
18345
  get: function get() {
18346
+ if (this.opv.propertyObj.setByRule !== undefined) return this.opv.propertyObj.setByRule;
18265
18347
  return this.opv.catalogOPV.setByRule;
18266
18348
  }
18267
18349
  }, {
18268
18350
  key: "onRule",
18269
18351
  get: function get() {
18352
+ if (this.opv.propertyObj.onRule !== undefined) return this.opv.propertyObj.onRule;
18270
18353
  return this.opv.catalogOPV.onRule;
18271
18354
  }
18272
18355
  }, {
18273
18356
  key: "customDimension",
18274
18357
  get: function get() {
18358
+ if (this.opv.propertyObj.customDimension !== undefined) return this.opv.propertyObj.customDimension;
18275
18359
  return this.opv.catalogOPV.customDimension;
18276
18360
  }
18277
18361
  }]);
@@ -18281,8 +18365,8 @@ function _createForOfIteratorHelper$a(r, e) { var t = "undefined" != typeof Symb
18281
18365
  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; } }
18282
18366
  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; }
18283
18367
  var ArticleOptionData = /*#__PURE__*/function () {
18284
- function ArticleOptionData(opt) {
18285
- var _this$tabGroup;
18368
+ function ArticleOptionData(opt, catalogData) {
18369
+ var _this$tabGroup, _this$opt$property;
18286
18370
  _classCallCheck__default["default"](this, ArticleOptionData);
18287
18371
  _defineProperty__default["default"](this, "opt", void 0);
18288
18372
  this.opt = opt;
@@ -18293,6 +18377,7 @@ var ArticleOptionData = /*#__PURE__*/function () {
18293
18377
  } else {
18294
18378
  this.opt.subTabGroup = undefined;
18295
18379
  }
18380
+ setOptionsProperties(catalogData, this.opt.propertyObj, (_this$opt$property = this.opt.property) !== null && _this$opt$property !== void 0 ? _this$opt$property : []);
18296
18381
  }
18297
18382
  return _createClass__default["default"](ArticleOptionData, [{
18298
18383
  key: "initOPVsInOPT",
@@ -18476,6 +18561,7 @@ var ArticleOptionData = /*#__PURE__*/function () {
18476
18561
  }, {
18477
18562
  key: "isDefaultSiblingOption",
18478
18563
  get: function get() {
18564
+ if (this.opt.propertyObj.isDefaultSiblingOption !== undefined) return this.opt.propertyObj.isDefaultSiblingOption;
18479
18565
  return this.opt.catalogOPT.isDefaultSiblingOption;
18480
18566
  }
18481
18567
  }, {
@@ -18486,11 +18572,13 @@ var ArticleOptionData = /*#__PURE__*/function () {
18486
18572
  }, {
18487
18573
  key: "pairWithOptionsToGroup",
18488
18574
  get: function get() {
18575
+ if (this.opt.propertyObj.pairWithOptionsToGroup !== undefined) return this.opt.propertyObj.pairWithOptionsToGroup;
18489
18576
  return this.opt.catalogOPT.pairWithOptionsToGroup;
18490
18577
  }
18491
18578
  }, {
18492
18579
  key: "isDescribingState",
18493
18580
  get: function get() {
18581
+ if (this.opt.propertyObj.isDescribingState !== undefined) return this.opt.propertyObj.isDescribingState;
18494
18582
  return this.opt.catalogOPT.isDescribingState;
18495
18583
  }
18496
18584
  }, {
@@ -18501,51 +18589,61 @@ var ArticleOptionData = /*#__PURE__*/function () {
18501
18589
  }, {
18502
18590
  key: "requiresUserInput",
18503
18591
  get: function get() {
18592
+ if (this.opt.propertyObj.requiresUserInput !== undefined) return this.opt.propertyObj.requiresUserInput;
18504
18593
  return this.opt.catalogOPT.requiresUserInput;
18505
18594
  }
18506
18595
  }, {
18507
18596
  key: "onlyVisibleIfNotDocked",
18508
18597
  get: function get() {
18598
+ if (this.opt.propertyObj.onlyVisibleIfNotDocked !== undefined) return this.opt.propertyObj.onlyVisibleIfNotDocked;
18509
18599
  return this.opt.catalogOPT.onlyVisibleIfNotDocked;
18510
18600
  }
18511
18601
  }, {
18512
18602
  key: "onlyVisibleIfConfigSingle",
18513
18603
  get: function get() {
18604
+ if (this.opt.propertyObj.onlyVisibleIfConfigSingle !== undefined) return this.opt.propertyObj.onlyVisibleIfConfigSingle;
18514
18605
  return this.opt.catalogOPT.onlyVisibleIfConfigSingle;
18515
18606
  }
18516
18607
  }, {
18517
18608
  key: "onlyVisibleIfConfigAll",
18518
18609
  get: function get() {
18610
+ if (this.opt.propertyObj.onlyVisibleIfConfigAll !== undefined) return this.opt.propertyObj.onlyVisibleIfConfigAll;
18519
18611
  return this.opt.catalogOPT.onlyVisibleIfConfigAll;
18520
18612
  }
18521
18613
  }, {
18522
18614
  key: "isDefaultValueForOptions",
18523
18615
  get: function get() {
18616
+ if (this.opt.propertyObj.isDefaultValueForOptions !== undefined) return this.opt.propertyObj.isDefaultValueForOptions;
18524
18617
  return this.opt.catalogOPT.isDefaultValueForOptions;
18525
18618
  }
18526
18619
  }, {
18527
18620
  key: "freetextDefaultValue",
18528
18621
  get: function get() {
18622
+ if (this.opt.propertyObj.freetextDefaultValue !== undefined) return this.opt.propertyObj.freetextDefaultValue;
18529
18623
  return this.opt.catalogOPT.freetextDefaultValue;
18530
18624
  }
18531
18625
  }, {
18532
18626
  key: "url",
18533
18627
  get: function get() {
18628
+ if (this.opt.propertyObj.url !== undefined) return this.opt.propertyObj.url;
18534
18629
  return this.opt.catalogOPT.url;
18535
18630
  }
18536
18631
  }, {
18537
18632
  key: "contentItemId",
18538
18633
  get: function get() {
18634
+ if (this.opt.propertyObj.contentItemId !== undefined) return this.opt.propertyObj.contentItemId;
18539
18635
  return this.opt.catalogOPT.contentItemId;
18540
18636
  }
18541
18637
  }, {
18542
18638
  key: "customDimension",
18543
18639
  get: function get() {
18640
+ if (this.opt.propertyObj.customDimension !== undefined) return this.opt.propertyObj.customDimension;
18544
18641
  return this.opt.catalogOPT.customDimension;
18545
18642
  }
18546
18643
  }, {
18547
18644
  key: "customDimensionText",
18548
18645
  get: function get() {
18646
+ if (this.opt.propertyObj.customDimensionText !== undefined) return this.opt.propertyObj.customDimensionText;
18549
18647
  return this.opt.catalogOPT.customDimensionText;
18550
18648
  }
18551
18649
  }, {
@@ -18556,51 +18654,61 @@ var ArticleOptionData = /*#__PURE__*/function () {
18556
18654
  }, {
18557
18655
  key: "showSearchbar",
18558
18656
  get: function get() {
18657
+ if (this.opt.propertyObj.showSearchbar !== undefined) return this.opt.propertyObj.showSearchbar;
18559
18658
  return this.opt.catalogOPT.showSearchbar;
18560
18659
  }
18561
18660
  }, {
18562
18661
  key: "showFilter",
18563
18662
  get: function get() {
18663
+ if (this.opt.propertyObj.showFilter !== undefined) return this.opt.propertyObj.showFilter;
18564
18664
  return this.opt.catalogOPT.showFilter;
18565
18665
  }
18566
18666
  }, {
18567
18667
  key: "pdfUrl",
18568
18668
  get: function get() {
18669
+ if (this.opt.propertyObj.pdfUrl !== undefined) return this.opt.propertyObj.pdfUrl;
18569
18670
  return this.opt.catalogOPT.pdfUrl;
18570
18671
  }
18571
18672
  }, {
18572
18673
  key: "diameter",
18573
18674
  get: function get() {
18675
+ if (this.opt.propertyObj.diameter !== undefined) return this.opt.propertyObj.diameter;
18574
18676
  return this.opt.catalogOPT.diameter;
18575
18677
  }
18576
18678
  }, {
18577
18679
  key: "forceShowVariantDesc",
18578
18680
  get: function get() {
18681
+ if (this.opt.propertyObj.forceShowVariantDesc !== undefined) return this.opt.propertyObj.forceShowVariantDesc;
18579
18682
  return this.opt.catalogOPT.forceShowVariantDesc;
18580
18683
  }
18581
18684
  }, {
18582
18685
  key: "showOnSeparatTabgroup",
18583
18686
  get: function get() {
18687
+ if (this.opt.propertyObj.showOnSeparatTabgroup !== undefined) return this.opt.propertyObj.showOnSeparatTabgroup;
18584
18688
  return this.opt.catalogOPT.showOnSeparatTabgroup;
18585
18689
  }
18586
18690
  }, {
18587
18691
  key: "setName",
18588
18692
  get: function get() {
18693
+ if (this.opt.propertyObj.setName !== undefined) return this.opt.propertyObj.setName;
18589
18694
  return this.opt.catalogOPT.setName;
18590
18695
  }
18591
18696
  }, {
18592
18697
  key: "addOptionToTabgroupInPartlistSummary",
18593
18698
  get: function get() {
18699
+ if (this.opt.propertyObj.addOptionToTabgroupInPartlistSummary !== undefined) return this.opt.propertyObj.addOptionToTabgroupInPartlistSummary;
18594
18700
  return this.opt.catalogOPT.addOptionToTabgroupInPartlistSummary;
18595
18701
  }
18596
18702
  }, {
18597
18703
  key: "addToWWS",
18598
18704
  get: function get() {
18705
+ if (this.opt.propertyObj.addToWWS !== undefined) return this.opt.propertyObj.addToWWS;
18599
18706
  return this.opt.catalogOPT.addToWWS;
18600
18707
  }
18601
18708
  }, {
18602
18709
  key: "sendToPIM",
18603
18710
  get: function get() {
18711
+ if (this.opt.propertyObj.sendToPIM !== undefined) return this.opt.propertyObj.sendToPIM;
18604
18712
  return this.opt.catalogOPT.sendToPIM;
18605
18713
  }
18606
18714
  }, {
@@ -18611,16 +18719,19 @@ var ArticleOptionData = /*#__PURE__*/function () {
18611
18719
  }, {
18612
18720
  key: "ignoreGroups",
18613
18721
  get: function get() {
18722
+ if (this.opt.propertyObj.ignoreGroups !== undefined) return this.opt.propertyObj.ignoreGroups;
18614
18723
  return this.opt.catalogOPT.ignoreGroups;
18615
18724
  }
18616
18725
  }, {
18617
18726
  key: "ignorePgrGroupPosition",
18618
18727
  get: function get() {
18728
+ if (this.opt.propertyObj.ignorePgrGroupPosition !== undefined) return this.opt.propertyObj.ignorePgrGroupPosition;
18619
18729
  return this.opt.catalogOPT.ignorePgrGroupPosition;
18620
18730
  }
18621
18731
  }, {
18622
18732
  key: "mergeIDMToOPG",
18623
18733
  get: function get() {
18734
+ if (this.opt.propertyObj.mergeIDMToOPG !== undefined) return this.opt.propertyObj.mergeIDMToOPG;
18624
18735
  return this.opt.catalogOPT.mergeIDMToOPG;
18625
18736
  }
18626
18737
  }, {
@@ -18636,14 +18747,14 @@ var ArticleOptionData = /*#__PURE__*/function () {
18636
18747
  }();
18637
18748
 
18638
18749
  var LOG$l = DivaUtils__default["default"].initLog('Planner', 'WEB-PLANNER-LOGIC');
18639
- function addSupplierColors(catalogArticleData, allOPVsOfOPT, supplierColors, catalog, newOPT, rule) {
18750
+ function addSupplierColors(set, catalogArticleData, allOPVsOfOPT, supplierColors, catalog, newOPT, rule) {
18640
18751
  var catalogOPG = new OptionValueCatalogData(getCatalogOptionValueDataType('OPVSUPPLIER_COLORS', {
18641
18752
  Name: 'Lieferantenfarben',
18642
18753
  IsOPVG: '1'
18643
18754
  }, catalog), catalog);
18644
- var articleOPG = new ArticleOptionValueData(getArticleOptionValueType('OPVSUPPLIER_COLORS', {
18755
+ var articleOPG = new ArticleOptionValueData(getArticleOptionValueType(set, 'OPVSUPPLIER_COLORS', {
18645
18756
  RUL: rule
18646
- }, catalogOPG, catalogArticleData, false, newOPT, catalog.multiselectOptions));
18757
+ }, catalogOPG, catalogArticleData, false, newOPT, catalog.multiselectOptions), catalog);
18647
18758
  allOPVsOfOPT.set('OPVSUPPLIER_COLORS', articleOPG);
18648
18759
  var supplierColorsOpvs = new Map();
18649
18760
  for (var i = 0; i < supplierColors.length; i++) {
@@ -18654,7 +18765,7 @@ function addSupplierColors(catalogArticleData, allOPVsOfOPT, supplierColors, cat
18654
18765
  HexColor: col.HexColor,
18655
18766
  GroupName: 'Lieferantenfarben'
18656
18767
  }, catalog), catalog);
18657
- supplierColorsOpvs.set('OPV' + col.OptionValueCodex, new ArticleOptionValueData(getArticleOptionValueType('OPV' + col.OptionValueCodex, {}, colorCatalogOpv, catalogArticleData, true, articleOPG, catalog.multiselectOptions)));
18768
+ supplierColorsOpvs.set('OPV' + col.OptionValueCodex, new ArticleOptionValueData(getArticleOptionValueType(set, 'OPV' + col.OptionValueCodex, {}, colorCatalogOpv, catalogArticleData, true, articleOPG, catalog.multiselectOptions), catalog));
18658
18769
  }
18659
18770
  articleOPG.initOPVsInOPG(supplierColorsOpvs);
18660
18771
  }
@@ -18811,7 +18922,7 @@ function loadArticleOptions(json, catalogArticleData, set) {
18811
18922
  for (var i = 0; i < json.OPT.length; i++) {
18812
18923
  var myOPT = json.OPT[i];
18813
18924
  var allOPVsOfOPT = new Map();
18814
- var newOPT = new ArticleOptionData(getArticleOptionType(myOPT, set));
18925
+ var newOPT = new ArticleOptionData(getArticleOptionType(myOPT, set, catalogArticleData.articleCodex), set.CatalogData);
18815
18926
 
18816
18927
  //Items initalisieren
18817
18928
  if (newOPT.hasOPG) {
@@ -18821,14 +18932,14 @@ function loadArticleOptions(json, catalogArticleData, set) {
18821
18932
  var tmpOPG = myOPT.OPG[j],
18822
18933
  catOPG = set.CatalogData.getOptionValue(tmpOPG.OCD ? tmpOPG.OCD : tmpOPG.Codex);
18823
18934
  if (catOPG) {
18824
- var newOPG = new ArticleOptionValueData(getArticleOptionValueType(tmpOPG.Codex, tmpOPG, catOPG, catalogArticleData, false, newOPT, multiselectOptions));
18935
+ var newOPG = new ArticleOptionValueData(getArticleOptionValueType(set, tmpOPG.Codex, tmpOPG, catOPG, catalogArticleData, false, newOPT, multiselectOptions), set.CatalogData);
18825
18936
  allOPVsOfOPT.set(tmpOPG.Codex, newOPG);
18826
18937
  for (var m = 0; m < tmpOPG.OPV.length; m++) {
18827
18938
  var tmpOPV = tmpOPG.OPV[m],
18828
18939
  catOPV = set.CatalogData.getOptionValue(tmpOPV.OCD ? tmpOPV.OCD : tmpOPV.Codex);
18829
18940
  if (catOPV) {
18830
18941
  if (!(catOPV !== null && catOPV !== void 0 && catOPV.groupName) && catOPG) catOPV.groupName = catOPG.name;
18831
- var myOPV = new ArticleOptionValueData(getArticleOptionValueType(tmpOPV.Codex, tmpOPV, catOPV, catalogArticleData, true, newOPG, multiselectOptions));
18942
+ var myOPV = new ArticleOptionValueData(getArticleOptionValueType(set, tmpOPV.Codex, tmpOPV, catOPV, catalogArticleData, true, newOPG, multiselectOptions), set.CatalogData);
18832
18943
  allOPVsOfOPG.set(tmpOPV.Codex, myOPV);
18833
18944
  }
18834
18945
  }
@@ -18841,11 +18952,11 @@ function loadArticleOptions(json, catalogArticleData, set) {
18841
18952
  var _tmpOPG = myOPT.OPV[_j],
18842
18953
  _catOPG = set.CatalogData.getOptionValue(_tmpOPG.OCD ? _tmpOPG.OCD : _tmpOPG.Codex);
18843
18954
  if (_catOPG) {
18844
- var _newOPG = new ArticleOptionValueData(getArticleOptionValueType(_tmpOPG.Codex, _tmpOPG, _catOPG, catalogArticleData, false, newOPT, multiselectOptions));
18955
+ var _newOPG = new ArticleOptionValueData(getArticleOptionValueType(set, _tmpOPG.Codex, _tmpOPG, _catOPG, catalogArticleData, false, newOPT, multiselectOptions), set.CatalogData);
18845
18956
  allOPVsOfOPT.set(_tmpOPG.Codex, _newOPG);
18846
18957
  var _catOPV = set.CatalogData.getOptionValue(_tmpOPG.OCD ? _tmpOPG.OCD : _tmpOPG.Codex);
18847
18958
  if (_catOPV) {
18848
- var _myOPV = new ArticleOptionValueData(getArticleOptionValueType(_tmpOPG.Codex, _tmpOPG, _catOPV, catalogArticleData, true, _newOPG, multiselectOptions));
18959
+ var _myOPV = new ArticleOptionValueData(getArticleOptionValueType(set, _tmpOPG.Codex, _tmpOPG, _catOPV, catalogArticleData, true, _newOPG, multiselectOptions), set.CatalogData);
18849
18960
  _allOPVsOfOPG.set(_tmpOPG.Codex, _myOPV);
18850
18961
  }
18851
18962
  _newOPG.initOPVsInOPG(_allOPVsOfOPG);
@@ -18857,7 +18968,7 @@ function loadArticleOptions(json, catalogArticleData, set) {
18857
18968
  var _tmpOPV = myOPT.OPV[_j2],
18858
18969
  _catOPV2 = set.CatalogData.getOptionValue(_tmpOPV.OCD ? _tmpOPV.OCD : _tmpOPV.Codex);
18859
18970
  if (_catOPV2) {
18860
- var _myOPV2 = new ArticleOptionValueData(getArticleOptionValueType(_tmpOPV.Codex, _tmpOPV, _catOPV2, catalogArticleData, true, newOPT, multiselectOptions));
18971
+ var _myOPV2 = new ArticleOptionValueData(getArticleOptionValueType(set, _tmpOPV.Codex, _tmpOPV, _catOPV2, catalogArticleData, true, newOPT, multiselectOptions), set.CatalogData);
18861
18972
  allOPVsOfOPT.set(_tmpOPV.Codex, _myOPV2);
18862
18973
  }
18863
18974
  }
@@ -18868,7 +18979,7 @@ function loadArticleOptions(json, catalogArticleData, set) {
18868
18979
  return (_item$codex = item.codex) === null || _item$codex === void 0 ? void 0 : _item$codex.endsWith('OPV_FARBE_BASIS');
18869
18980
  });
18870
18981
  if (supplierColorFound) {
18871
- addSupplierColors(catalogArticleData, allOPVsOfOPT, set.supplierColors, set.CatalogData, newOPT, supplierColorFound.rul);
18982
+ addSupplierColors(set, catalogArticleData, allOPVsOfOPT, set.supplierColors, set.CatalogData, newOPT, supplierColorFound.rul);
18872
18983
  }
18873
18984
  }
18874
18985
  newOPT.initOPVsInOPT(allOPVsOfOPT);
@@ -18978,13 +19089,15 @@ function initDecisions(catalog, catalogArticleData) {
18978
19089
  }
18979
19090
  }
18980
19091
  }
18981
- function getArticleOptionType(myOPT, set) {
18982
- var _set$CatalogData$cata, _set$CatalogData$cata2, _set$CatalogData$cata3, _optionMask$hidden;
19092
+ function getArticleOptionType(myOPT, set, articleCodex) {
19093
+ var _set$CatalogData$cata, _set$CatalogData$cata2, _set$CatalogData$cata3, _set$CatalogData$cata4, _set$CatalogData$cata5, _myOPT$Properties, _optionMask$hidden;
18983
19094
  var OP = myOPT.OCD ? myOPT.OCD : myOPT.Codex;
18984
19095
  var catOPT = set.CatalogData.getOption(OP);
18985
19096
  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;
18986
19097
  if (!catOPT) throw new Error('Option: ' + OP + ' not in CatalogData');
18987
19098
  var optHasOpg = myOPT.OPG && myOPT.OPG.length > 0;
19099
+ 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());
19100
+ var properties = [].concat(_toConsumableArray__default["default"]((_myOPT$Properties = myOPT.Properties) !== null && _myOPT$Properties !== void 0 ? _myOPT$Properties : []), _toConsumableArray__default["default"](maskProperties !== null && maskProperties !== void 0 ? maskProperties : []));
18988
19101
  return {
18989
19102
  codex: myOPT.Codex,
18990
19103
  catalogOPT: catOPT,
@@ -18998,10 +19111,14 @@ function getArticleOptionType(myOPT, set) {
18998
19111
  articlePlaceholder: myOPT.ArticlePlaceholder,
18999
19112
  hasOPG: optHasOpg,
19000
19113
  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,
19001
- parentOptionCodex: myOPT.ParentOptionCodex
19114
+ parentOptionCodex: myOPT.ParentOptionCodex,
19115
+ propertyObj: {},
19116
+ property: properties
19002
19117
  };
19003
19118
  }
19004
- function getArticleOptionValueType(codex, jsonOPV, catalogOPV, myArticle, isParentOPVG, parent, multiselectOptions) {
19119
+ function getArticleOptionValueType(set, codex, jsonOPV, catalogOPV, myArticle, isParentOPVG, parent, multiselectOptions) {
19120
+ var _set$CatalogData$cata6, _set$CatalogData$cata7;
19121
+ 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());
19005
19122
  var opv = {
19006
19123
  codex: codex,
19007
19124
  catalogOPV: catalogOPV,
@@ -19027,7 +19144,9 @@ function getArticleOptionValueType(codex, jsonOPV, catalogOPV, myArticle, isPare
19027
19144
  ocd: jsonOPV.OCD,
19028
19145
  quantity: jsonOPV.Quantity ? Number(jsonOPV.Quantity) : 1,
19029
19146
  isPIMFlatValue: jsonOPV.PIMFlatValues === 'True',
19030
- isVariantAttribute: jsonOPV.IsVariantAttribute
19147
+ isVariantAttribute: jsonOPV.IsVariantAttribute,
19148
+ propertyObj: {},
19149
+ property: maskProperties !== null && maskProperties !== void 0 ? maskProperties : []
19031
19150
  };
19032
19151
  var myPriceRef = null;
19033
19152
  var myBasePriceRef = null;
@@ -19207,7 +19326,7 @@ function _loadMoreFromIDMArticles() {
19207
19326
  return _regeneratorRuntime__default["default"].wrap(function _loop4$(_context2) {
19208
19327
  while (1) switch (_context2.prev = _context2.next) {
19209
19328
  case 0:
19210
- feature = features[_i7];
19329
+ feature = features.data[_i7];
19211
19330
  set.CatalogData.loadedFeatures.push(feature);
19212
19331
  _loop5 = /*#__PURE__*/_regeneratorRuntime__default["default"].mark(function _loop5(j) {
19213
19332
  return _regeneratorRuntime__default["default"].wrap(function _loop5$(_context) {
@@ -19243,7 +19362,7 @@ function _loadMoreFromIDMArticles() {
19243
19362
  });
19244
19363
  _i7 = 0;
19245
19364
  case 34:
19246
- if (!(_i7 < features.length)) {
19365
+ if (!(_i7 < features.data.length)) {
19247
19366
  _context5.next = 39;
19248
19367
  break;
19249
19368
  }
@@ -19474,18 +19593,19 @@ var initFeature = function initFeature(feature, catalogArticleData, set) {
19474
19593
  catFeature = new OptionCatalogData(getCatalogFeatureType(feature, catalogArticleData, set), set.CatalogData);
19475
19594
  set.CatalogData.setOption(catFeature);
19476
19595
  }
19477
- var newArticleFeature = new ArticleOptionData(getArticleFeatureType(feature, catalogArticleData, catFeature, set));
19596
+ var newArticleFeature = new ArticleOptionData(getArticleFeatureType(feature, catalogArticleData, catFeature, set), set.CatalogData);
19478
19597
  initOption(feature, newArticleFeature, catalogArticleData, set);
19479
19598
  catalogArticleData.articleOptions[newArticleFeature.codex] = newArticleFeature;
19480
19599
  };
19481
19600
  function getCatalogFeatureType(feature, catalogArticleData, set) {
19482
- var _set$CatalogData$cata, _feature$detailInfos, _ref, _feature$properties, _feature$options$, _optionMask$hidden;
19601
+ var _set$CatalogData$cata, _set$CatalogData$cata2, _set$CatalogData$cata3, _feature$detailInfos, _properties$find, _properties$find2, _ref, _properties$find3, _feature$options$, _optionMask$hidden;
19483
19602
  var featureClass = set.CatalogData.getFeatureClass(catalogArticleData.featureClassRefNo);
19484
19603
  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];
19604
+ 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());
19605
+ var properties = [].concat(_toConsumableArray__default["default"](convertProperties(feature.properties, set.api.getLanguageLowercase())), _toConsumableArray__default["default"](maskProperties !== null && maskProperties !== void 0 ? maskProperties : []));
19485
19606
  return {
19486
19607
  name: DivaUtils__default["default"].getLocals(feature.featureText, set.api.getLanguageLowercase()),
19487
19608
  origName: DivaUtils__default["default"].getLocals(feature.featureText, set.api.getLanguageLowercase()),
19488
- property: convertProperties(feature.properties, set.api.getLanguageLowercase()),
19489
19609
  name_locales: feature.featureText,
19490
19610
  codex: feature.featureNo,
19491
19611
  idmVariantenArt: feature.featureNo ? Number(feature.featureNo) : undefined,
@@ -19495,23 +19615,32 @@ function getCatalogFeatureType(feature, catalogArticleData, set) {
19495
19615
  headerPosVariationType: feature.headerPosVariationType,
19496
19616
  measureKey: feature.measureParameter,
19497
19617
  sequenceNo: feature.sequenceNo,
19498
- layout: (_ref = (_feature$properties = feature.properties) === null || _feature$properties === void 0 || (_feature$properties = _feature$properties.find(function (p) {
19499
- return p.key == 'LAYOUT';
19500
- })) === 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) {
19618
+ sendToPIM: !!(properties !== null && properties !== void 0 && (_properties$find = properties.find(function (p) {
19619
+ return p.Codex == 'SendToPim';
19620
+ })) !== null && _properties$find !== void 0 && _properties$find.Value),
19621
+ isMultiselect: !!(properties !== null && properties !== void 0 && (_properties$find2 = properties.find(function (p) {
19622
+ return p.Codex == 'Multiselect';
19623
+ })) !== null && _properties$find2 !== void 0 && _properties$find2.Value),
19624
+ layout: (_ref = properties === null || properties === void 0 || (_properties$find3 = properties.find(function (p) {
19625
+ return p.Codex == 'LAYOUT';
19626
+ })) === 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) {
19501
19627
  return d.functionType == 'OPV';
19502
19628
  }) ? 'IMAGE' : 'TEXT',
19503
- 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])
19629
+ 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]),
19630
+ property: properties,
19631
+ propertyObj: {}
19504
19632
  };
19505
19633
  }
19506
19634
  function getArticleFeatureType(feature, catalogArticleData, catOPT, set) {
19507
- var _catalogArticleData$f, _set$CatalogData$tabG;
19508
- var props = (_catalogArticleData$f = catalogArticleData.featureProperties) === null || _catalogArticleData$f === void 0 ? void 0 : _catalogArticleData$f.filter(function (p) {
19635
+ var _catalogArticleData$f, _catalogArticleData$f2, _set$CatalogData$tabG, _set$CatalogData$cata4, _set$CatalogData$cata5;
19636
+ var props = (_catalogArticleData$f = (_catalogArticleData$f2 = catalogArticleData.featureProperties) === null || _catalogArticleData$f2 === void 0 ? void 0 : _catalogArticleData$f2.filter(function (p) {
19509
19637
  return p.FeatureNos.includes(feature.featureNo);
19510
- });
19638
+ })) !== null && _catalogArticleData$f !== void 0 ? _catalogArticleData$f : [];
19511
19639
  var featureClass = set.CatalogData.getFeatureClass(catalogArticleData.featureClassRefNo);
19512
19640
  var tabgroup = (_set$CatalogData$tabG = set.CatalogData.tabGroups) === null || _set$CatalogData$tabG === void 0 ? void 0 : _set$CatalogData$tabG.find(function (t) {
19513
19641
  return t.featureNos.includes(feature.featureNo);
19514
19642
  });
19643
+ 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());
19515
19644
  var opt = {
19516
19645
  codex: feature.featureNo,
19517
19646
  catalogOPT: catOPT,
@@ -19521,23 +19650,10 @@ function getArticleFeatureType(feature, catalogArticleData, catOPT, set) {
19521
19650
  hasOPG: false,
19522
19651
  invisible: !!(featureClass !== null && featureClass !== void 0 && featureClass.featureRefs[feature.featureNo]),
19523
19652
  tabGroup: tabgroup !== null && tabgroup !== void 0 && tabgroup.name ? DivaUtils__default["default"].getLocals(tabgroup.name, set.api.getLanguage()) : undefined,
19524
- tabGroup_locales: tabgroup === null || tabgroup === void 0 ? void 0 : tabgroup.name
19653
+ tabGroup_locales: tabgroup === null || tabgroup === void 0 ? void 0 : tabgroup.name,
19654
+ property: [].concat(_toConsumableArray__default["default"](maskProperties), _toConsumableArray__default["default"](props)),
19655
+ propertyObj: {}
19525
19656
  };
19526
- if (props !== null && props !== void 0 && props.length) {
19527
- for (var i = 0; i < props.length; i++) {
19528
- var prop = props[i];
19529
- switch (prop.Codex) {
19530
- case 'IsVariantAttribute': // ist in den daten?!
19531
- case 'TopFilterAttribute':
19532
- case 'PriceTageRelevant':
19533
- case 'EshopCategoryMapping':
19534
- case 'IsArtName':
19535
- break;
19536
- default:
19537
- LOG$k.debug('implement mapping for these props for options: ' + prop.Codex);
19538
- }
19539
- }
19540
- }
19541
19657
  return opt;
19542
19658
  }
19543
19659
 
@@ -19552,7 +19668,7 @@ function initOption(feature, articleFeature, catalogArticle, set) {
19552
19668
  return o.codex == option.optionKey;
19553
19669
  });
19554
19670
  if (!catOption) catOption = getCatalogOptionType(option, set);
19555
- var articleIDMOption = new ArticleOptionValueData(getArticleOption(option, catOption, articleFeature, catalogArticle));
19671
+ var articleIDMOption = new ArticleOptionValueData(getArticleOption(set, option, catOption, articleFeature, catalogArticle), set.CatalogData);
19556
19672
  allOptionsOfFeature.set(articleIDMOption.codex, articleIDMOption);
19557
19673
  };
19558
19674
  for (var j = 0; j < options.length; j++) {
@@ -19562,14 +19678,17 @@ function initOption(feature, articleFeature, catalogArticle, set) {
19562
19678
  catalogArticle.articleOptions[articleFeature.codex];
19563
19679
  }
19564
19680
  function getCatalogOptionType(option, set) {
19565
- var _option$detailInfos, _option$detailInfos2, _option$measureValue;
19681
+ var _catalogData$catalogM, _catalogData$catalogM2, _option$detailInfos, _option$detailInfos2, _option$measureValue;
19566
19682
  var catalogData = set.CatalogData;
19567
19683
  var name = DivaUtils__default["default"].getLocals(option.optionText, set.api.getLanguageLowercase());
19684
+ 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());
19685
+ var properties = [].concat(_toConsumableArray__default["default"](convertProperties(option.properties, set.CatalogData.api.getLanguageLowercase())), _toConsumableArray__default["default"](maskProperties !== null && maskProperties !== void 0 ? maskProperties : []));
19568
19686
  var opiton = {
19569
19687
  codex: option.optionKey,
19570
19688
  name: name,
19571
19689
  origName: name,
19572
19690
  name_locales: option.optionText,
19691
+ property: properties,
19573
19692
  image: (_option$detailInfos = option.detailInfos) === null || _option$detailInfos === void 0 || (_option$detailInfos = _option$detailInfos.find(function (d) {
19574
19693
  return d.functionType == 'OPV';
19575
19694
  })) === null || _option$detailInfos === void 0 ? void 0 : _option$detailInfos.url,
@@ -19614,7 +19733,7 @@ function getCatalogOptionType(option, set) {
19614
19733
  // TODO IDM Pricelogic,
19615
19734
  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,
19616
19735
  measureUnit: option.measureUnit,
19617
- property: convertProperties(option.properties, catalogData.api.getLanguageLowercase())
19736
+ propertyObj: {}
19618
19737
  };
19619
19738
  if (option.detailInfos) {
19620
19739
  for (var i = 0; i < ((_option$detailInfos3 = option.detailInfos) !== null && _option$detailInfos3 !== void 0 ? _option$detailInfos3 : []).length; i++) {
@@ -19636,11 +19755,12 @@ function getCatalogOptionType(option, set) {
19636
19755
  }
19637
19756
  return new OptionValueCatalogData(opiton, catalogData);
19638
19757
  }
19639
- function getArticleOption(option, catalogOption, feature, catalogArticleData) {
19640
- var _catalogArticleData$o;
19758
+ function getArticleOption(set, option, catalogOption, feature, catalogArticleData) {
19759
+ var _catalogArticleData$o, _set$CatalogData$cata6, _set$CatalogData$cata7;
19641
19760
  var props = (_catalogArticleData$o = catalogArticleData.optionProperties) === null || _catalogArticleData$o === void 0 ? void 0 : _catalogArticleData$o.filter(function (p) {
19642
19761
  return p.OptionKeys.includes(option.optionKey);
19643
19762
  });
19763
+ 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());
19644
19764
  //TODO add these props that are articleSpecific
19645
19765
  var opv = {
19646
19766
  codex: option.optionKey,
@@ -19649,25 +19769,10 @@ function getArticleOption(option, catalogOption, feature, catalogArticleData) {
19649
19769
  isParentOPVG: false,
19650
19770
  parent: feature,
19651
19771
  price: 0,
19652
- quantity: 1
19772
+ quantity: 1,
19773
+ propertyObj: {},
19774
+ property: [].concat(_toConsumableArray__default["default"](props !== null && props !== void 0 ? props : []), _toConsumableArray__default["default"](maskProperties !== null && maskProperties !== void 0 ? maskProperties : []))
19653
19775
  };
19654
- if (props !== null && props !== void 0 && props.length) {
19655
- for (var i = 0; i < props.length; i++) {
19656
- var prop = props[i];
19657
- switch (prop.Codex) {
19658
- case 'IsVariantAttribute':
19659
- opv.isVariantAttribute = prop.Value == '1';
19660
- break;
19661
- case 'EshopCategoryMapping':
19662
- case 'TopFilterAttribute':
19663
- case 'PriceTageRelevant':
19664
- case 'IsArtName':
19665
- break;
19666
- default:
19667
- LOG$k.debug('implement mapping for these props for options: ' + prop.Codex);
19668
- }
19669
- }
19670
- }
19671
19776
  return opv;
19672
19777
  }
19673
19778
  function componentToHex(c) {
@@ -20105,9 +20210,10 @@ var DivaCatalogData = /*#__PURE__*/function () {
20105
20210
  this._api = api;
20106
20211
  this.additionalModelInfos = additionalModelInfos;
20107
20212
  if (json.Properties) {
20108
- var _json$Properties, _this$catalogMask$cat, _this$catalogMask;
20213
+ var _this$catalogMask$pro, _this$catalogMask, _json$Properties;
20109
20214
  this.origProperties = json.Properties;
20110
- this.initProperties(catalogCodex, [].concat(_toConsumableArray__default["default"]((_json$Properties = json.Properties) !== null && _json$Properties !== void 0 ? _json$Properties : []), _toConsumableArray__default["default"]((_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 : [])));
20215
+ 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());
20216
+ this.initProperties(catalogCodex, [].concat(_toConsumableArray__default["default"]((_json$Properties = json.Properties) !== null && _json$Properties !== void 0 ? _json$Properties : []), _toConsumableArray__default["default"](maskProperties !== null && maskProperties !== void 0 ? maskProperties : [])));
20111
20217
  }
20112
20218
  this.plannerPaletteViewInfo = {
20113
20219
  catalogPlannerArticles: [],
@@ -20139,8 +20245,9 @@ var DivaCatalogData = /*#__PURE__*/function () {
20139
20245
  initIDMArticles(articleJson, this);
20140
20246
  }
20141
20247
  if (this.origProperties) {
20142
- var _json$Properties2, _this$catalogMask$cat2, _this$catalogMask2;
20143
- this.initPropertiesAfterOptionsInit(catalogCodex, [].concat(_toConsumableArray__default["default"]((_json$Properties2 = json.Properties) !== null && _json$Properties2 !== void 0 ? _json$Properties2 : []), _toConsumableArray__default["default"]((_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 : [])));
20248
+ var _this$catalogMask$pro2, _this$catalogMask2, _json$Properties2;
20249
+ 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());
20250
+ this.initPropertiesAfterOptionsInit(catalogCodex, [].concat(_toConsumableArray__default["default"]((_json$Properties2 = json.Properties) !== null && _json$Properties2 !== void 0 ? _json$Properties2 : []), _toConsumableArray__default["default"](_maskProperties !== null && _maskProperties !== void 0 ? _maskProperties : [])));
20144
20251
  }
20145
20252
  }
20146
20253
  return _createClass__default["default"](DivaCatalogData, [{
@@ -20656,6 +20763,16 @@ var DivaCatalogData = /*#__PURE__*/function () {
20656
20763
  get: function get() {
20657
20764
  return this.catalogProps.mergeOptionsToSameOption;
20658
20765
  }
20766
+ }, {
20767
+ key: "checkIfUseBoxPlanner",
20768
+ value: function checkIfUseBoxPlanner(articleCodex) {
20769
+ if (Array.isArray(this.catalogProps.useBoxPlanner)) {
20770
+ this.catalogProps.useBoxPlanner = !!this.catalogProps.useBoxPlanner.find(function (a) {
20771
+ return articleCodex.includes(a);
20772
+ });
20773
+ }
20774
+ return this.catalogProps.useBoxPlanner;
20775
+ }
20659
20776
  }, {
20660
20777
  key: "useBoxPlanner",
20661
20778
  get: function get() {
@@ -21106,7 +21223,7 @@ var DivaCatalogData = /*#__PURE__*/function () {
21106
21223
  _this5.catalogProps.useGlobalSVGScale = item.Value == '1';
21107
21224
  break;
21108
21225
  case 'USEBOXPLANNER':
21109
- _this5.catalogProps.useBoxPlanner = item.Value == '1';
21226
+ _this5.catalogProps.useBoxPlanner = item.Value == '1' ? true : item.Value.split(';');
21110
21227
  break;
21111
21228
  case 'PLANNERTYPE':
21112
21229
  _this5.catalogProps.plannerType = item.Value;
@@ -21471,10 +21588,14 @@ var DivaCatalogData = /*#__PURE__*/function () {
21471
21588
  value: function initMask(initProps) {
21472
21589
  var _this$catalogMask3;
21473
21590
  if ((_this$catalogMask3 = this.catalogMask) !== null && _this$catalogMask3 !== void 0 && _this$catalogMask3.catalog) {
21474
- var _this$catalogMask$cat3;
21475
- 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()];
21591
+ var _this$catalogMask$cat;
21592
+ 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()];
21476
21593
  if (this.catalogMask.catalog.name) this.catalogData.name_locales = this.catalogMask.catalog.name;
21477
- if (this.catalogMask.catalog.properties && initProps) this.initProperties(this.catalogCodex, [].concat(_toConsumableArray__default["default"](this.origProperties), _toConsumableArray__default["default"](this.catalogMask.catalog.properties)));
21594
+ if (initProps) {
21595
+ var _this$catalogMask$pro3, _this$catalogMask4;
21596
+ 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());
21597
+ this.initProperties(this.catalogCodex, [].concat(_toConsumableArray__default["default"](this.origProperties), _toConsumableArray__default["default"](maskProperties !== null && maskProperties !== void 0 ? maskProperties : [])));
21598
+ }
21478
21599
  }
21479
21600
  }
21480
21601
  }]);
@@ -21491,7 +21612,8 @@ var mapMask = function mapMask(mask) {
21491
21612
  mappedProps.push({
21492
21613
  Codex: key,
21493
21614
  Name: prop.name,
21494
- Value: prop.value
21615
+ Value: prop.value,
21616
+ Value_locales: prop.valueLocales
21495
21617
  });
21496
21618
  }
21497
21619
  return mappedProps;
@@ -25468,8 +25590,8 @@ var IDMEngine = /*#__PURE__*/function () {
25468
25590
  for (var i = 0; i < allKeys.length; i++) {
25469
25591
  var key = allKeys[i];
25470
25592
  var value = this.article.getValueByMeasureKey(key);
25471
- if (value === undefined) throw new Error('measureParameter: ' + key + ' has no value defined');
25472
- keysMap[key] = value;
25593
+ if (value === undefined) LOG$f.warn('measureParameter: ' + key + ' has no value defined');
25594
+ keysMap[key] = value !== null && value !== void 0 ? value : 0;
25473
25595
  }
25474
25596
  while (allKeys.find(function (key) {
25475
25597
  return formula.includes(key);
@@ -28393,7 +28515,7 @@ var DivaArticle = /*#__PURE__*/function () {
28393
28515
  break;
28394
28516
  }
28395
28517
  _context.next = 4;
28396
- return Promise.resolve().then(function () { return require('./ShelfPlanner-b196052e.js'); });
28518
+ return Promise.resolve().then(function () { return require('./ShelfPlanner-a01c0b3e.js'); });
28397
28519
  case 4:
28398
28520
  _yield$import = _context.sent;
28399
28521
  ShelfPlanner = _yield$import["default"];
@@ -32927,7 +33049,7 @@ var DivaSet = /*#__PURE__*/function () {
32927
33049
  break;
32928
33050
  }
32929
33051
  _context5.next = 3;
32930
- return Promise.resolve().then(function () { return require('./DoorPlanner-4b586dd8.js'); });
33052
+ return Promise.resolve().then(function () { return require('./DoorPlanner-7e7bcf59.js'); });
32931
33053
  case 3:
32932
33054
  _yield$import = _context5.sent;
32933
33055
  DoorPlanner = _yield$import["default"];
@@ -36167,9 +36289,12 @@ var DivaSetHandler = /*#__PURE__*/function () {
36167
36289
  case 3:
36168
36290
  catalogData = _context6.sent;
36169
36291
  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;
36170
- _context6.next = 7;
36292
+ catalogData.checkIfUseBoxPlanner(articlesToInitialize !== null && articlesToInitialize !== void 0 ? articlesToInitialize : orderSet.OrderLines.map(function (o) {
36293
+ return o.ArticleCodex;
36294
+ }));
36295
+ _context6.next = 8;
36171
36296
  return this.createSet(catalogData, orderSet, initSetState, lastSetToInitialize);
36172
- case 7:
36297
+ case 8:
36173
36298
  set = _context6.sent;
36174
36299
  if (set.api.getLoadSupplierColors() && initSetState.supplierColors) {
36175
36300
  set.supplierColors = initSetState.supplierColors;
@@ -36188,35 +36313,35 @@ var DivaSetHandler = /*#__PURE__*/function () {
36188
36313
  }
36189
36314
  }
36190
36315
  if (!(articlesToInitialize && articlesToInitialize.length > 0)) {
36191
- _context6.next = 23;
36316
+ _context6.next = 24;
36192
36317
  break;
36193
36318
  }
36194
36319
  DivaUtils__default["default"].startSpanOfApm('Articles initialize');
36195
36320
  j = 0;
36196
- case 14:
36321
+ case 15:
36197
36322
  if (!(j < articlesToInitialize.length)) {
36198
- _context6.next = 21;
36323
+ _context6.next = 22;
36199
36324
  break;
36200
36325
  }
36201
36326
  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;
36202
- _context6.next = 18;
36327
+ _context6.next = 19;
36203
36328
  return this.addPlannerElement(set, articlesToInitialize[j], _objectSpread$a(_objectSpread$a({}, params), variantValues ? {
36204
36329
  variantValues: variantValues
36205
36330
  } : {}));
36206
- case 18:
36331
+ case 19:
36207
36332
  j++;
36208
- _context6.next = 14;
36333
+ _context6.next = 15;
36209
36334
  break;
36210
- case 21:
36335
+ case 22:
36211
36336
  //display image of article if there is no planner
36212
36337
  if (!set.onlyRunLogic && set.getPlannerMode() == 'No') {
36213
36338
  image = set.getImageOfOnlyElement();
36214
36339
  if (image && updateSetImage) updateSetImage(image);
36215
36340
  }
36216
36341
  DivaUtils__default["default"].endSpanOfApm('Articles initialize');
36217
- case 23:
36218
- return _context6.abrupt("return", set);
36219
36342
  case 24:
36343
+ return _context6.abrupt("return", set);
36344
+ case 25:
36220
36345
  case "end":
36221
36346
  return _context6.stop();
36222
36347
  }
@@ -39980,7 +40105,7 @@ var DivaBasketHandler = /*#__PURE__*/function () {
39980
40105
  break;
39981
40106
  case 3:
39982
40107
  _context12.next = 5;
39983
- return Promise.resolve().then(function () { return require('./PfisterWWSHandler-7042eb96.js'); });
40108
+ return Promise.resolve().then(function () { return require('./PfisterWWSHandler-ed10d673.js'); });
39984
40109
  case 5:
39985
40110
  _yield$import = _context12.sent;
39986
40111
  PfisterWWSHandler = _yield$import["default"];
@@ -39988,7 +40113,7 @@ var DivaBasketHandler = /*#__PURE__*/function () {
39988
40113
  return _context12.abrupt("break", 27);
39989
40114
  case 9:
39990
40115
  _context12.next = 11;
39991
- return Promise.resolve().then(function () { return require('./LiviqueWWSHandler-45f0a711.js'); });
40116
+ return Promise.resolve().then(function () { return require('./LiviqueWWSHandler-e2971b57.js'); });
39992
40117
  case 11:
39993
40118
  _yield$import2 = _context12.sent;
39994
40119
  LiviqueWWSHandler = _yield$import2["default"];
@@ -39996,7 +40121,7 @@ var DivaBasketHandler = /*#__PURE__*/function () {
39996
40121
  return _context12.abrupt("break", 27);
39997
40122
  case 15:
39998
40123
  _context12.next = 17;
39999
- return Promise.resolve().then(function () { return require('./SeriousBasketHandler-dd5447a3.js'); });
40124
+ return Promise.resolve().then(function () { return require('./SeriousBasketHandler-df034dbb.js'); });
40000
40125
  case 17:
40001
40126
  _yield$import3 = _context12.sent;
40002
40127
  SeriousWWSHandler = _yield$import3["default"];
@@ -40004,7 +40129,7 @@ var DivaBasketHandler = /*#__PURE__*/function () {
40004
40129
  return _context12.abrupt("break", 27);
40005
40130
  case 21:
40006
40131
  _context12.next = 23;
40007
- return Promise.resolve().then(function () { return require('./StandardWWSHandler-1ea53ac8.js'); });
40132
+ return Promise.resolve().then(function () { return require('./StandardWWSHandler-e8910a1e.js'); });
40008
40133
  case 23:
40009
40134
  _yield$import4 = _context12.sent;
40010
40135
  StandardWWSHandler = _yield$import4["default"];
@@ -41433,7 +41558,7 @@ var PlannerHandler3D = /*#__PURE__*/function () {
41433
41558
  while (1) switch (_context3.prev = _context3.next) {
41434
41559
  case 0:
41435
41560
  _context3.next = 2;
41436
- return Promise.resolve().then(function () { return require('./Host3DSignalR-9705dea3.js'); });
41561
+ return Promise.resolve().then(function () { return require('./Host3DSignalR-429573e7.js'); });
41437
41562
  case 2:
41438
41563
  _yield$import = _context3.sent;
41439
41564
  Host3DSignalR = _yield$import["default"];
@@ -42991,7 +43116,7 @@ var DivaPlannerHandler = /*#__PURE__*/function () {
42991
43116
  break;
42992
43117
  case 8:
42993
43118
  _context4.next = 10;
42994
- return Promise.resolve().then(function () { return require('./DivaStandardPlanner-6b5e6211.js'); });
43119
+ return Promise.resolve().then(function () { return require('./DivaStandardPlanner-c196253e.js'); });
42995
43120
  case 10:
42996
43121
  _yield$import = _context4.sent;
42997
43122
  DivaStandardPlanner = _yield$import["default"];
@@ -43002,7 +43127,7 @@ var DivaPlannerHandler = /*#__PURE__*/function () {
43002
43127
  return _context4.abrupt("break", 21);
43003
43128
  case 15:
43004
43129
  _context4.next = 17;
43005
- return Promise.resolve().then(function () { return require('./DivaBoxPlanner-9549d8bf.js'); });
43130
+ return Promise.resolve().then(function () { return require('./DivaBoxPlanner-a850dc31.js'); });
43006
43131
  case 17:
43007
43132
  _yield$import2 = _context4.sent;
43008
43133
  DivaBoxPlanner = _yield$import2["default"];