pds-dev-kit-web-test 2.5.467 → 2.5.469

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 (146) hide show
  1. package/dist/src/common/hooks/useTooltip.js +1 -1
  2. package/dist/src/common/styles/colorSet/index.d.ts +2 -2
  3. package/dist/src/common/styles/colorSet/index.js +2 -2
  4. package/dist/src/common/utils/SystemUIPositionGenerator/hoverTypeSystemUICssGenerator.js +1 -1
  5. package/dist/src/desktop/components/BasicButtonGroup/BasicButtonGroup.js +1 -1
  6. package/dist/src/desktop/panels/DesktopHeadlessModal/DesktopHeadlessModal.d.ts +2 -17
  7. package/dist/src/desktop/panels/DesktopHeadlessModal/DesktopHeadlessModal.js +5 -35
  8. package/dist/src/sub/DynamicLayout/CompositionEditor/CompositionEditor.d.ts +21 -0
  9. package/dist/src/sub/DynamicLayout/CompositionEditor/CompositionEditor.js +1133 -0
  10. package/dist/src/sub/DynamicLayout/CompositionRenderer/ComponentBlockMatcher.js +4 -1
  11. package/dist/src/sub/DynamicLayout/CompositionRenderer/Composition.d.ts +5 -3
  12. package/dist/src/sub/DynamicLayout/CompositionRenderer/Composition.js +53 -53
  13. package/dist/src/sub/DynamicLayout/CompositionRenderer/CompositionBackground.d.ts +11 -0
  14. package/dist/src/sub/DynamicLayout/CompositionRenderer/CompositionBackground.js +45 -0
  15. package/dist/src/sub/DynamicLayout/CompositionRenderer/createCompositions.d.ts +10 -0
  16. package/dist/src/sub/DynamicLayout/CompositionRenderer/createCompositions.js +79 -0
  17. package/dist/src/sub/DynamicLayout/DynamicLayout.d.ts +1 -1
  18. package/dist/src/sub/DynamicLayout/DynamicLayout.js +3 -2
  19. package/dist/src/sub/DynamicLayout/components/Section/sectionContext.d.ts +2 -2
  20. package/dist/src/sub/DynamicLayout/components/pdsOriginal/common/assets/icons/line/editorNavigationIcons/downIcons.d.ts +12 -0
  21. package/dist/src/sub/DynamicLayout/components/pdsOriginal/common/assets/icons/line/editorNavigationIcons/downIcons.js +76 -0
  22. package/dist/src/sub/DynamicLayout/components/pdsOriginal/common/assets/icons/line/editorNavigationIcons/index.d.ts +4 -0
  23. package/dist/src/sub/DynamicLayout/components/pdsOriginal/common/assets/icons/line/editorNavigationIcons/index.js +47 -0
  24. package/dist/src/sub/DynamicLayout/components/pdsOriginal/common/assets/icons/line/editorNavigationIcons/leftIcons.d.ts +12 -0
  25. package/dist/src/sub/DynamicLayout/components/pdsOriginal/common/assets/icons/line/editorNavigationIcons/leftIcons.js +76 -0
  26. package/dist/src/sub/DynamicLayout/components/pdsOriginal/common/assets/icons/line/editorNavigationIcons/rightIcons.d.ts +12 -0
  27. package/dist/src/sub/DynamicLayout/components/pdsOriginal/common/assets/icons/line/editorNavigationIcons/rightIcons.js +76 -0
  28. package/dist/src/sub/DynamicLayout/components/pdsOriginal/common/assets/icons/line/editorNavigationIcons/upIcons.d.ts +12 -0
  29. package/dist/src/sub/DynamicLayout/components/pdsOriginal/common/assets/icons/line/editorNavigationIcons/upIcons.js +76 -0
  30. package/dist/src/sub/DynamicLayout/components/pdsOriginal/common/assets/icons/line/index.d.ts +40 -0
  31. package/dist/src/sub/DynamicLayout/components/pdsOriginal/common/assets/icons/line/index.js +36 -177
  32. package/dist/src/sub/DynamicLayout/components/pdsOriginal/common/styles/colorSet/PaletteColor_Dark.json +152 -4
  33. package/dist/src/sub/DynamicLayout/components/pdsOriginal/common/styles/colorSet/PaletteColor_light.json +150 -2
  34. package/dist/src/sub/DynamicLayout/components/pdsOriginal/common/styles/colorSet/SemanticColor.json +45 -1
  35. package/dist/src/sub/DynamicLayout/components/pdsOriginal/common/styles/colorSet/UIColor.json +262 -9
  36. package/dist/src/sub/DynamicLayout/components/pdsOriginal/common/styles/colorSet/index.d.ts +593 -0
  37. package/dist/src/sub/DynamicLayout/components/pdsOriginal/common/styles/colorSet/ui-type.d.ts +253 -0
  38. package/dist/src/sub/DynamicLayout/components/pdsOriginal/desktop/IconButton/IconButton.d.ts +3 -1
  39. package/dist/src/sub/DynamicLayout/components/pdsOriginal/desktop/IconButton/IconButton.js +5 -3
  40. package/dist/src/sub/DynamicLayout/components/pdsOriginal/hybrid/Icon/Icon.d.ts +2 -1
  41. package/dist/src/sub/DynamicLayout/components/pdsOriginal/hybrid/Icon/Icon.js +9 -2
  42. package/dist/src/sub/DynamicLayout/compositionActionTypes.d.ts +139 -0
  43. package/dist/src/sub/DynamicLayout/compositionActionTypes.js +2 -0
  44. package/dist/src/sub/DynamicLayout/compositionQueryContext.d.ts +8 -0
  45. package/dist/src/sub/DynamicLayout/compositionQueryContext.js +14 -0
  46. package/dist/src/sub/DynamicLayout/mock_composition.d.ts +3 -0
  47. package/dist/src/sub/DynamicLayout/mock_composition.js +1606 -0
  48. package/dist/src/sub/DynamicLayout/mock_contentsCarousel.d.ts +1 -0
  49. package/dist/src/sub/DynamicLayout/mock_contentsCarousel.js +1123 -0
  50. package/dist/src/sub/DynamicLayout/mock_contentsList.d.ts +1 -0
  51. package/dist/src/sub/DynamicLayout/mock_contentsList.js +1091 -0
  52. package/dist/src/sub/DynamicLayout/mock_queryData.d.ts +96 -0
  53. package/dist/src/sub/DynamicLayout/mock_queryData.js +2639 -0
  54. package/dist/src/sub/DynamicLayout/mock_slideBanner.d.ts +842 -0
  55. package/dist/src/sub/DynamicLayout/mock_slideBanner.js +854 -0
  56. package/dist/src/sub/DynamicLayout/mock_video.d.ts +368 -0
  57. package/dist/src/sub/DynamicLayout/mock_video.js +371 -0
  58. package/dist/src/sub/DynamicLayout/mock_video_cb.d.ts +0 -1
  59. package/dist/src/sub/DynamicLayout/mock_video_cb.js +4 -5
  60. package/dist/src/sub/DynamicLayout/mocks.d.ts +8 -961
  61. package/dist/src/sub/DynamicLayout/mocks.js +4286 -6
  62. package/dist/src/sub/DynamicLayout/sectionActionTypes.d.ts +4 -4
  63. package/dist/src/sub/DynamicLayout/sections/CustomSection/CustomSection.d.ts +1 -1
  64. package/dist/src/sub/DynamicLayout/sections/CustomSection/CustomSection.js +4 -4
  65. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/ComponentBlockMatcher.js +13 -3
  66. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/Button/Button.js +18 -2
  67. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsCarousel/ContentsCarousel.d.ts +4 -4
  68. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsCarousel/ContentsCarousel.js +249 -2
  69. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsCarousel/ContentsCarouselCore.d.ts +17 -0
  70. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsCarousel/ContentsCarouselCore.js +59 -0
  71. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsCarousel/components/CustomNavigation.d.ts +35 -0
  72. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsCarousel/components/CustomNavigation.js +118 -0
  73. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsCarousel/components/CustomPagination.d.ts +32 -0
  74. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsCarousel/components/CustomPagination.js +183 -0
  75. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsCarousel/components/CustomProgressbar.d.ts +23 -0
  76. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsCarousel/components/CustomProgressbar.js +117 -0
  77. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsCarousel/components/navigationConfigs.d.ts +4 -0
  78. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsCarousel/components/navigationConfigs.js +849 -0
  79. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsCarousel/components/progressConfigs.d.ts +43 -0
  80. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsCarousel/components/progressConfigs.js +162 -0
  81. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsCarousel/contentsCarouselUtils.d.ts +40 -0
  82. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsCarousel/contentsCarouselUtils.js +747 -0
  83. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsCarousel/index.d.ts +1 -0
  84. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsCarousel/index.js +8 -0
  85. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsCarousel/types.d.ts +105 -0
  86. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsCarousel/types.js +2 -0
  87. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsList/ContentsList.d.ts +8 -0
  88. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsList/ContentsList.js +172 -0
  89. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsList/ContentsListCore.d.ts +17 -0
  90. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsList/ContentsListCore.js +39 -0
  91. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsList/components/CustomPagination.d.ts +29 -0
  92. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsList/components/CustomPagination.js +115 -0
  93. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsList/components/paginationConfigs.d.ts +25 -0
  94. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsList/components/paginationConfigs.js +183 -0
  95. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsList/contentsListUtils.d.ts +30 -0
  96. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsList/contentsListUtils.js +380 -0
  97. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsList/index.d.ts +1 -0
  98. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsList/index.js +8 -0
  99. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsList/types.d.ts +56 -0
  100. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsList/types.js +2 -0
  101. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/Image/Image.js +39 -3
  102. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/SlideBanner/SlideBanner.d.ts +8 -0
  103. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/SlideBanner/SlideBanner.js +215 -0
  104. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/SlideBanner/SlideBannerCore.d.ts +15 -0
  105. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/SlideBanner/SlideBannerCore.js +39 -0
  106. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/SlideBanner/components/CustomNavigation.d.ts +35 -0
  107. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/SlideBanner/components/CustomNavigation.js +118 -0
  108. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/SlideBanner/components/CustomPagination.d.ts +33 -0
  109. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/SlideBanner/components/CustomPagination.js +183 -0
  110. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/SlideBanner/components/CustomProgressbar.d.ts +23 -0
  111. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/SlideBanner/components/CustomProgressbar.js +117 -0
  112. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/SlideBanner/components/navigationConfigs.d.ts +4 -0
  113. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/SlideBanner/components/navigationConfigs.js +849 -0
  114. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/SlideBanner/components/progressConfigs.d.ts +43 -0
  115. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/SlideBanner/components/progressConfigs.js +162 -0
  116. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/SlideBanner/index.d.ts +1 -0
  117. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/SlideBanner/index.js +8 -0
  118. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/SlideBanner/slideBannerUtils.d.ts +48 -0
  119. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/SlideBanner/slideBannerUtils.js +956 -0
  120. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/SlideBanner/types.d.ts +120 -0
  121. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/SlideBanner/types.js +2 -0
  122. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/Text/Text.js +31 -7
  123. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/VideoPlayer/VideoPlayer.js +3 -28
  124. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/VideoPlayer/helper.d.ts +0 -1
  125. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/VideoPlayer/helper.js +4 -14
  126. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/types.d.ts +45 -3
  127. package/dist/src/sub/DynamicLayout/sections/CustomSection/newUtils/group.d.ts +1 -1
  128. package/dist/src/sub/DynamicLayout/sections/CustomSection/newUtils/replaceUndefinedValues.js +1 -1
  129. package/dist/src/sub/DynamicLayout/sections/CustomSection/types.d.ts +27 -10
  130. package/dist/src/sub/DynamicLayout/sections/CustomSection/types.js +3 -1
  131. package/dist/src/sub/DynamicLayout/sections/CustomSection/util/effectPropParsers/parseEffectPropEntAnim.d.ts +4 -4
  132. package/dist/src/sub/DynamicLayout/sections/CustomSection/util/layoutPropParsers/parseLayoutPropPadding.d.ts +2 -2
  133. package/dist/src/sub/DynamicLayout/sections/CustomSection/util/parseCompositionPlacement.d.ts +14 -0
  134. package/dist/src/sub/DynamicLayout/sections/CustomSection/util/parseCompositionPlacement.js +26 -0
  135. package/dist/src/sub/DynamicLayout/sections/CustomSection/util/parseJsonProperties.d.ts +2 -2
  136. package/dist/src/sub/DynamicLayout/sections/CustomSection/util/parsePlacement.d.ts +1 -1
  137. package/dist/src/sub/DynamicLayout/sections/CustomSection/util/parsePlacement.js +2 -2
  138. package/dist/src/sub/DynamicLayout/sections/CustomSection/util/parseProperties.d.ts +2 -2
  139. package/dist/src/sub/DynamicLayout/sections/CustomSection/util/types.d.ts +52 -3
  140. package/dist/src/sub/DynamicLayout/sections/FlexGridCustomSection.d.ts +1 -1
  141. package/dist/src/sub/DynamicLayout/sections/FlexGridCustomSection.js +1 -0
  142. package/dist/src/sub/DynamicLayout/types.d.ts +49 -16
  143. package/package.json +3 -2
  144. package/release-note.md +2 -2
  145. package/dist/src/sub/DynamicLayout/CompositionRenderer/CompositionRenderer.d.ts +0 -6
  146. package/dist/src/sub/DynamicLayout/CompositionRenderer/CompositionRenderer.js +0 -27
@@ -0,0 +1,956 @@
1
+ "use strict";
2
+ var __makeTemplateObject = (this && this.__makeTemplateObject) || function (cooked, raw) {
3
+ if (Object.defineProperty) { Object.defineProperty(cooked, "raw", { value: raw }); } else { cooked.raw = raw; }
4
+ return cooked;
5
+ };
6
+ var __assign = (this && this.__assign) || function () {
7
+ __assign = Object.assign || function(t) {
8
+ for (var s, i = 1, n = arguments.length; i < n; i++) {
9
+ s = arguments[i];
10
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
11
+ t[p] = s[p];
12
+ }
13
+ return t;
14
+ };
15
+ return __assign.apply(this, arguments);
16
+ };
17
+ Object.defineProperty(exports, "__esModule", { value: true });
18
+ exports.getCustomProgressbarPropKey = exports.parseSlideBannerStyleToCustomProgressbarProp = exports.getCustomNavigationPropKey = exports.parseSlideBannerStyleToCustomNavigationProp = exports.getCustomPaginationPropKey = exports.parseSlideBannerStyleToCustomPaginationProp = exports.getSlideBannerCorePropKey = exports.parseSlideBannerStyleToSlideBannerCoreProp = void 0;
19
+ var styled_components_1 = require("styled-components");
20
+ function parseSlideBannerStyleToSlideBannerCoreProp(_a) {
21
+ var props = _a.props, device = _a.device;
22
+ var availableSpecCodes = Object.keys(props).filter(function (key) { return !key.includes(':HOVER') && !key.includes(':MOBILE'); });
23
+ return availableSpecCodes.reduce(function (acc, currentKey) {
24
+ var _a, _b, _c, _d;
25
+ var keyWithDevice = device === 'DESKTOP' ? currentKey : "".concat(currentKey, ":MOBILE");
26
+ var keyWithHover = "".concat(keyWithDevice.toString(), ":HOVER");
27
+ var slideBannerCorePropertyKey = getSlideBannerCorePropKey(currentKey);
28
+ if (slideBannerCorePropertyKey === 'customStyle') {
29
+ var value = props[keyWithDevice];
30
+ var hoverValue = props[keyWithHover];
31
+ return {
32
+ normalStyle: __assign(__assign({}, acc.normalStyle), (_a = {}, _a[slideBannerCorePropertyKey] = getStyle(value), _a)),
33
+ hoverStyle: __assign(__assign({}, acc.hoverStyle), (_b = {}, _b[slideBannerCorePropertyKey] = getStyle(hoverValue !== null && hoverValue !== void 0 ? hoverValue : value), _b))
34
+ };
35
+ }
36
+ if (slideBannerCorePropertyKey === 'useAutoplay') {
37
+ var value = props[keyWithDevice];
38
+ var hoverValue = props[keyWithHover];
39
+ return {
40
+ normalStyle: __assign(__assign({}, acc.normalStyle), { useAutoplay: value }),
41
+ hoverStyle: __assign(__assign({}, acc.hoverStyle), { useAutoplay: hoverValue !== null && hoverValue !== void 0 ? hoverValue : value })
42
+ };
43
+ }
44
+ if (slideBannerCorePropertyKey === 'autoplayDelay') {
45
+ var value = props[keyWithDevice];
46
+ var hoverValue = props[keyWithHover];
47
+ return {
48
+ normalStyle: __assign(__assign({}, acc.normalStyle), { autoplay: {
49
+ delay: value * 1000,
50
+ disableOnInteraction: false,
51
+ pauseOnMouseEnter: true
52
+ } }),
53
+ hoverStyle: __assign(__assign({}, acc.hoverStyle), { autoplay: {
54
+ delay: (hoverValue !== null && hoverValue !== void 0 ? hoverValue : value) * 1000,
55
+ disableOnInteraction: false,
56
+ pauseOnMouseEnter: true
57
+ } })
58
+ };
59
+ }
60
+ if (slideBannerCorePropertyKey === 'loop') {
61
+ var value = props[keyWithDevice];
62
+ var hoverValue = props[keyWithHover];
63
+ return {
64
+ normalStyle: __assign(__assign({}, acc.normalStyle), (_c = {}, _c[slideBannerCorePropertyKey] = value, _c)),
65
+ hoverStyle: __assign(__assign({}, acc.hoverStyle), (_d = {}, _d[slideBannerCorePropertyKey] = hoverValue !== null && hoverValue !== void 0 ? hoverValue : value, _d))
66
+ };
67
+ }
68
+ return {
69
+ normalStyle: __assign({}, acc.normalStyle),
70
+ hoverStyle: __assign({}, acc.hoverStyle)
71
+ };
72
+ }, {
73
+ normalStyle: {},
74
+ hoverStyle: {}
75
+ });
76
+ }
77
+ exports.parseSlideBannerStyleToSlideBannerCoreProp = parseSlideBannerStyleToSlideBannerCoreProp;
78
+ function getSlideBannerCorePropKey(key) {
79
+ switch (key) {
80
+ case "CB_STYLE_PROP_SLIDEBANNER_SPEC_STYLE":
81
+ case "CB_STYLE_PROP_SLIDEBANNER_SPEC_STYLE:HOVER":
82
+ case "CB_STYLE_PROP_SLIDEBANNER_SPEC_STYLE:MOBILE":
83
+ case "CB_STYLE_PROP_SLIDEBANNER_SPEC_STYLE:MOBILE:HOVER":
84
+ return 'customStyle';
85
+ case "CB_STYLE_PROP_SLIDEBANNER_SPEC_AUTOPLAYUSE":
86
+ case "CB_STYLE_PROP_SLIDEBANNER_SPEC_AUTOPLAYUSE:HOVER":
87
+ case "CB_STYLE_PROP_SLIDEBANNER_SPEC_AUTOPLAYUSE:MOBILE":
88
+ case "CB_STYLE_PROP_SLIDEBANNER_SPEC_AUTOPLAYUSE:MOBILE:HOVER":
89
+ return 'useAutoplay';
90
+ case "CB_STYLE_PROP_SLIDEBANNER_SPEC_AUTOPLAYTIME":
91
+ case "CB_STYLE_PROP_SLIDEBANNER_SPEC_AUTOPLAYTIME:HOVER":
92
+ case "CB_STYLE_PROP_SLIDEBANNER_SPEC_AUTOPLAYTIME:MOBILE":
93
+ case "CB_STYLE_PROP_SLIDEBANNER_SPEC_AUTOPLAYTIME:MOBILE:HOVER":
94
+ return 'autoplayDelay';
95
+ case "CB_STYLE_PROP_SLIDEBANNER_SPEC_INFINITESCROLL":
96
+ case "CB_STYLE_PROP_SLIDEBANNER_SPEC_INFINITESCROLL:HOVER":
97
+ case "CB_STYLE_PROP_SLIDEBANNER_SPEC_INFINITESCROLL:MOBILE":
98
+ case "CB_STYLE_PROP_SLIDEBANNER_SPEC_INFINITESCROLL:MOBILE:HOVER":
99
+ return 'loop';
100
+ default:
101
+ return '';
102
+ }
103
+ }
104
+ exports.getSlideBannerCorePropKey = getSlideBannerCorePropKey;
105
+ function getStyle(value) {
106
+ switch (value) {
107
+ case 'DESIGN1':
108
+ return (0, styled_components_1.css)(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n height: 100%;\n width: 100%;\n "], ["\n height: 100%;\n width: 100%;\n "])));
109
+ case 'DESIGN2': {
110
+ return (0, styled_components_1.css)(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n height: 100%;\n width: 100%;\n "], ["\n height: 100%;\n width: 100%;\n "])));
111
+ }
112
+ default: {
113
+ return (0, styled_components_1.css)(templateObject_3 || (templateObject_3 = __makeTemplateObject(["\n height: 100%;\n width: 100%;\n "], ["\n height: 100%;\n width: 100%;\n "])));
114
+ }
115
+ }
116
+ }
117
+ function parseSlideBannerStyleToCustomPaginationProp(_a) {
118
+ var props = _a.props, device = _a.device;
119
+ var availableSpecCodes = Object.keys(props).filter(function (key) { return !key.includes(':HOVER') && !key.includes(':MOBILE'); });
120
+ return availableSpecCodes.reduce(function (acc, currentKey) {
121
+ var keyWithDevice = device === 'DESKTOP' ? currentKey : "".concat(currentKey, ":MOBILE");
122
+ var keyWithHover = "".concat(keyWithDevice.toString(), ":HOVER");
123
+ var customPaginationPropertyKey = getCustomPaginationPropKey(currentKey);
124
+ if (customPaginationPropertyKey === 'type') {
125
+ var value = props[keyWithDevice];
126
+ var hoverValue = props[keyWithHover];
127
+ return {
128
+ normalStyle: __assign(__assign({}, acc.normalStyle), { type: value }),
129
+ hoverStyle: __assign(__assign({}, acc.hoverStyle), { type: hoverValue !== null && hoverValue !== void 0 ? hoverValue : value })
130
+ };
131
+ }
132
+ if (customPaginationPropertyKey === 'offset') {
133
+ var value = props[keyWithDevice];
134
+ var hoverValue = props[keyWithHover];
135
+ return {
136
+ normalStyle: __assign(__assign({}, acc.normalStyle), { offset: getCustomPaginationOffset(value) }),
137
+ hoverStyle: __assign(__assign({}, acc.hoverStyle), { offset: getCustomPaginationOffset(hoverValue !== null && hoverValue !== void 0 ? hoverValue : value) })
138
+ };
139
+ }
140
+ if (customPaginationPropertyKey === 'size') {
141
+ var value = props[keyWithDevice];
142
+ var hoverValue = props[keyWithHover];
143
+ return {
144
+ normalStyle: __assign(__assign({}, acc.normalStyle), { size: getCustomPaginationSize(value) }),
145
+ hoverStyle: __assign(__assign({}, acc.hoverStyle), { size: getCustomPaginationSize(hoverValue !== null && hoverValue !== void 0 ? hoverValue : value) })
146
+ };
147
+ }
148
+ if (customPaginationPropertyKey === 'primaryColor') {
149
+ var value = props[keyWithDevice];
150
+ var hoverValue = props[keyWithHover];
151
+ return {
152
+ normalStyle: __assign(__assign({}, acc.normalStyle), { primaryColor: value }),
153
+ hoverStyle: __assign(__assign({}, acc.hoverStyle), { primaryColor: hoverValue !== null && hoverValue !== void 0 ? hoverValue : value })
154
+ };
155
+ }
156
+ if (customPaginationPropertyKey === 'secondaryColor') {
157
+ var value = props[keyWithDevice];
158
+ var hoverValue = props[keyWithHover];
159
+ return {
160
+ normalStyle: __assign(__assign({}, acc.normalStyle), { secondaryColor: value }),
161
+ hoverStyle: __assign(__assign({}, acc.hoverStyle), { secondaryColor: hoverValue !== null && hoverValue !== void 0 ? hoverValue : value })
162
+ };
163
+ }
164
+ return {
165
+ normalStyle: __assign({}, acc.normalStyle),
166
+ hoverStyle: __assign({}, acc.hoverStyle)
167
+ };
168
+ }, {
169
+ normalStyle: {},
170
+ hoverStyle: {}
171
+ });
172
+ }
173
+ exports.parseSlideBannerStyleToCustomPaginationProp = parseSlideBannerStyleToCustomPaginationProp;
174
+ function getCustomPaginationPropKey(key) {
175
+ switch (key) {
176
+ case "CB_STYLE_PROP_SLIDEBANNER_SPEC_PAGINATIONSTYLE":
177
+ case "CB_STYLE_PROP_SLIDEBANNER_SPEC_PAGINATIONSTYLE:HOVER":
178
+ case "CB_STYLE_PROP_SLIDEBANNER_SPEC_PAGINATIONSTYLE:MOBILE":
179
+ case "CB_STYLE_PROP_SLIDEBANNER_SPEC_PAGINATIONSTYLE:MOBILE:HOVER":
180
+ return 'type';
181
+ case "CB_STYLE_PROP_SLIDEBANNER_SPEC_PAGINATIONLOCATION":
182
+ case "CB_STYLE_PROP_SLIDEBANNER_SPEC_PAGINATIONLOCATION:HOVER":
183
+ case "CB_STYLE_PROP_SLIDEBANNER_SPEC_PAGINATIONLOCATION:MOBILE":
184
+ case "CB_STYLE_PROP_SLIDEBANNER_SPEC_PAGINATIONLOCATION:MOBILE:HOVER":
185
+ return 'offset';
186
+ case "CB_STYLE_PROP_SLIDEBANNER_SPEC_PAGINATIONSIZE":
187
+ case "CB_STYLE_PROP_SLIDEBANNER_SPEC_PAGINATIONSIZE:HOVER":
188
+ case "CB_STYLE_PROP_SLIDEBANNER_SPEC_PAGINATIONSIZE:MOBILE":
189
+ case "CB_STYLE_PROP_SLIDEBANNER_SPEC_PAGINATIONSIZE:MOBILE:HOVER":
190
+ return 'size';
191
+ case "CB_STYLE_PROP_SLIDEBANNER_SPEC_PAGINATIONPRIMARYCOLOR":
192
+ case "CB_STYLE_PROP_SLIDEBANNER_SPEC_PAGINATIONPRIMARYCOLOR:HOVER":
193
+ case "CB_STYLE_PROP_SLIDEBANNER_SPEC_PAGINATIONPRIMARYCOLOR:MOBILE":
194
+ case "CB_STYLE_PROP_SLIDEBANNER_SPEC_PAGINATIONPRIMARYCOLOR:MOBILE:HOVER":
195
+ return 'primaryColor';
196
+ case "CB_STYLE_PROP_SLIDEBANNER_SPEC_PAGINATIONSECONDARYCOLOR":
197
+ case "CB_STYLE_PROP_SLIDEBANNER_SPEC_PAGINATIONSECONDARYCOLOR:HOVER":
198
+ case "CB_STYLE_PROP_SLIDEBANNER_SPEC_PAGINATIONSECONDARYCOLOR:MOBILE":
199
+ case "CB_STYLE_PROP_SLIDEBANNER_SPEC_PAGINATIONSECONDARYCOLOR:MOBILE:HOVER":
200
+ return 'secondaryColor';
201
+ default:
202
+ return '';
203
+ }
204
+ }
205
+ exports.getCustomPaginationPropKey = getCustomPaginationPropKey;
206
+ function getCustomPaginationOffset(value) {
207
+ var OUTSET1 = {
208
+ top: '0px',
209
+ left: '0px',
210
+ translateX: 0,
211
+ translateY: -100,
212
+ transformOrigin: 'top left'
213
+ };
214
+ switch (value) {
215
+ case 'OUTSET1':
216
+ return OUTSET1;
217
+ case 'OUTSET2':
218
+ return {
219
+ top: '0px',
220
+ left: '50%',
221
+ translateX: -50,
222
+ translateY: -100,
223
+ transformOrigin: 'top left'
224
+ };
225
+ case 'OUTSET3':
226
+ return {
227
+ top: '0px',
228
+ left: '100%',
229
+ translateX: -100,
230
+ translateY: -100,
231
+ transformOrigin: 'top left'
232
+ };
233
+ case 'OUTSET4':
234
+ return {
235
+ top: '0px',
236
+ left: '100%',
237
+ translateX: 0,
238
+ translateY: 0,
239
+ transformOrigin: 'left top'
240
+ };
241
+ case 'OUTSET5':
242
+ return {
243
+ top: '50%',
244
+ left: '100%',
245
+ translateX: 0,
246
+ translateY: -50,
247
+ transformOrigin: 'left top'
248
+ };
249
+ case 'OUTSET6':
250
+ return {
251
+ top: '100%',
252
+ left: '100%',
253
+ translateX: 0,
254
+ translateY: -100,
255
+ transformOrigin: 'left top'
256
+ };
257
+ case 'OUTSET7':
258
+ return {
259
+ top: '100%',
260
+ left: '100%',
261
+ translateX: -100,
262
+ translateY: 0,
263
+ transformOrigin: 'top left'
264
+ };
265
+ case 'OUTSET8':
266
+ return {
267
+ top: '100%',
268
+ left: '50%',
269
+ translateX: -50,
270
+ translateY: 0,
271
+ transformOrigin: 'top left'
272
+ };
273
+ case 'OUTSET9':
274
+ return {
275
+ top: '100%',
276
+ left: '0px',
277
+ translateX: 0,
278
+ translateY: 0,
279
+ transformOrigin: 'top left'
280
+ };
281
+ case 'OUTSET10':
282
+ return {
283
+ top: '100%',
284
+ left: '0px',
285
+ translateX: -100,
286
+ translateY: -100,
287
+ transformOrigin: 'right top'
288
+ };
289
+ case 'OUTSET11':
290
+ return {
291
+ top: '50%',
292
+ left: '0px',
293
+ translateX: -100,
294
+ translateY: -50,
295
+ transformOrigin: 'right top'
296
+ };
297
+ case 'OUTSET12':
298
+ return {
299
+ top: '0px',
300
+ left: '0px',
301
+ translateX: -100,
302
+ translateY: 0,
303
+ transformOrigin: 'right top'
304
+ };
305
+ case 'INSET1':
306
+ return { top: '0px', left: '0px', translateX: 0, translateY: 0, transformOrigin: 'left top' };
307
+ case 'INSET2':
308
+ return {
309
+ top: '0px',
310
+ left: '50%',
311
+ translateX: -50,
312
+ translateY: 0,
313
+ transformOrigin: 'left top'
314
+ };
315
+ case 'INSET3':
316
+ return {
317
+ top: '0px',
318
+ left: '100%',
319
+ translateX: -100,
320
+ translateY: 0,
321
+ transformOrigin: 'left top'
322
+ };
323
+ case 'INSET4':
324
+ return {
325
+ top: '50%',
326
+ left: '100%',
327
+ translateX: -100,
328
+ translateY: -50,
329
+ transformOrigin: 'left top'
330
+ };
331
+ case 'INSET5':
332
+ return {
333
+ top: '100%',
334
+ left: '100%',
335
+ translateX: -100,
336
+ translateY: -100,
337
+ transformOrigin: 'left top'
338
+ };
339
+ case 'INSET6':
340
+ return {
341
+ top: '100%',
342
+ left: '50%',
343
+ translateX: -50,
344
+ translateY: -100,
345
+ transformOrigin: 'left top'
346
+ };
347
+ case 'INSET7':
348
+ return {
349
+ top: '100%',
350
+ left: '0px',
351
+ translateX: 0,
352
+ translateY: -100,
353
+ transformOrigin: 'top left'
354
+ };
355
+ case 'INSET8':
356
+ return {
357
+ top: '50%',
358
+ left: '0px',
359
+ translateX: 0,
360
+ translateY: -50,
361
+ transformOrigin: 'top left'
362
+ };
363
+ default:
364
+ return OUTSET1;
365
+ }
366
+ }
367
+ function getCustomPaginationSize(value) {
368
+ switch (value) {
369
+ case 'SMALL':
370
+ return 1;
371
+ case 'MEDIUM':
372
+ return 1.5;
373
+ case 'LARGE':
374
+ return 2;
375
+ default:
376
+ return 1;
377
+ }
378
+ }
379
+ function parseSlideBannerStyleToCustomNavigationProp(_a) {
380
+ var props = _a.props, device = _a.device;
381
+ var availableSpecCodes = Object.keys(props).filter(function (key) { return !key.includes(':HOVER') && !key.includes(':MOBILE'); });
382
+ return availableSpecCodes.reduce(function (acc, currentKey) {
383
+ var keyWithDevice = device === 'DESKTOP' ? currentKey : "".concat(currentKey, ":MOBILE");
384
+ var keyWithHover = "".concat(keyWithDevice.toString(), ":HOVER");
385
+ var customNavigationPropertyKey = getCustomNavigationPropKey(currentKey);
386
+ if (customNavigationPropertyKey === 'prevBtnType') {
387
+ var value = props[keyWithDevice];
388
+ var hoverValue = props[keyWithHover];
389
+ return {
390
+ normalStyle: __assign(__assign({}, acc.normalStyle), { prevBtnType: value }),
391
+ hoverStyle: __assign(__assign({}, acc.hoverStyle), { prevBtnType: hoverValue !== null && hoverValue !== void 0 ? hoverValue : value })
392
+ };
393
+ }
394
+ if (customNavigationPropertyKey === 'prevBtnOffset') {
395
+ var value = props[keyWithDevice];
396
+ var hoverValue = props[keyWithHover];
397
+ return {
398
+ normalStyle: __assign(__assign({}, acc.normalStyle), { prevBtnOffset: getCustomNavigationOffset(value) }),
399
+ hoverStyle: __assign(__assign({}, acc.hoverStyle), { prevBtnOffset: getCustomNavigationOffset(hoverValue !== null && hoverValue !== void 0 ? hoverValue : value) })
400
+ };
401
+ }
402
+ if (customNavigationPropertyKey === 'prevBtnSize') {
403
+ var value = props[keyWithDevice];
404
+ var hoverValue = props[keyWithHover];
405
+ return {
406
+ normalStyle: __assign(__assign({}, acc.normalStyle), { prevBtnSize: getCustomNavigationSize(value) }),
407
+ hoverStyle: __assign(__assign({}, acc.hoverStyle), { prevBtnSize: getCustomNavigationSize(hoverValue !== null && hoverValue !== void 0 ? hoverValue : value) })
408
+ };
409
+ }
410
+ if (customNavigationPropertyKey === 'prevBtnPrimaryColor') {
411
+ var value = props[keyWithDevice];
412
+ var hoverValue = props[keyWithHover];
413
+ return {
414
+ normalStyle: __assign(__assign({}, acc.normalStyle), { prevBtnPrimaryColor: value }),
415
+ hoverStyle: __assign(__assign({}, acc.hoverStyle), { prevBtnPrimaryColor: hoverValue !== null && hoverValue !== void 0 ? hoverValue : value })
416
+ };
417
+ }
418
+ if (customNavigationPropertyKey === 'prevBtnSecondaryColor') {
419
+ var value = props[keyWithDevice];
420
+ var hoverValue = props[keyWithHover];
421
+ return {
422
+ normalStyle: __assign(__assign({}, acc.normalStyle), { prevBtnSecondaryColor: value }),
423
+ hoverStyle: __assign(__assign({}, acc.hoverStyle), { prevBtnSecondaryColor: hoverValue !== null && hoverValue !== void 0 ? hoverValue : value })
424
+ };
425
+ }
426
+ if (customNavigationPropertyKey === 'nextBtnType') {
427
+ var value = props[keyWithDevice];
428
+ var hoverValue = props[keyWithHover];
429
+ return {
430
+ normalStyle: __assign(__assign({}, acc.normalStyle), { nextBtnType: value }),
431
+ hoverStyle: __assign(__assign({}, acc.hoverStyle), { nextBtnType: hoverValue !== null && hoverValue !== void 0 ? hoverValue : value })
432
+ };
433
+ }
434
+ if (customNavigationPropertyKey === 'nextBtnOffset') {
435
+ var value = props[keyWithDevice];
436
+ var hoverValue = props[keyWithHover];
437
+ return {
438
+ normalStyle: __assign(__assign({}, acc.normalStyle), { nextBtnOffset: getCustomNavigationOffset(value) }),
439
+ hoverStyle: __assign(__assign({}, acc.hoverStyle), { nextBtnOffset: getCustomNavigationOffset(hoverValue !== null && hoverValue !== void 0 ? hoverValue : value) })
440
+ };
441
+ }
442
+ if (customNavigationPropertyKey === 'nextBtnSize') {
443
+ var value = props[keyWithDevice];
444
+ var hoverValue = props[keyWithHover];
445
+ return {
446
+ normalStyle: __assign(__assign({}, acc.normalStyle), { nextBtnSize: getCustomNavigationSize(value) }),
447
+ hoverStyle: __assign(__assign({}, acc.hoverStyle), { nextBtnSize: getCustomNavigationSize(hoverValue !== null && hoverValue !== void 0 ? hoverValue : value) })
448
+ };
449
+ }
450
+ if (customNavigationPropertyKey === 'nextBtnPrimaryColor') {
451
+ var value = props[keyWithDevice];
452
+ var hoverValue = props[keyWithHover];
453
+ return {
454
+ normalStyle: __assign(__assign({}, acc.normalStyle), { nextBtnPrimaryColor: value }),
455
+ hoverStyle: __assign(__assign({}, acc.hoverStyle), { nextBtnPrimaryColor: hoverValue !== null && hoverValue !== void 0 ? hoverValue : value })
456
+ };
457
+ }
458
+ if (customNavigationPropertyKey === 'nextBtnSecondaryColor') {
459
+ var value = props[keyWithDevice];
460
+ var hoverValue = props[keyWithHover];
461
+ return {
462
+ normalStyle: __assign(__assign({}, acc.normalStyle), { nextBtnSecondaryColor: value }),
463
+ hoverStyle: __assign(__assign({}, acc.hoverStyle), { nextBtnSecondaryColor: hoverValue !== null && hoverValue !== void 0 ? hoverValue : value })
464
+ };
465
+ }
466
+ return {
467
+ normalStyle: __assign({}, acc.normalStyle),
468
+ hoverStyle: __assign({}, acc.hoverStyle)
469
+ };
470
+ }, {
471
+ normalStyle: {},
472
+ hoverStyle: {}
473
+ });
474
+ }
475
+ exports.parseSlideBannerStyleToCustomNavigationProp = parseSlideBannerStyleToCustomNavigationProp;
476
+ function getCustomNavigationPropKey(key) {
477
+ switch (key) {
478
+ case "CB_STYLE_PROP_SLIDEBANNER_SPEC_PREVBTNSTYLE":
479
+ case "CB_STYLE_PROP_SLIDEBANNER_SPEC_PREVBTNSTYLE:HOVER":
480
+ case "CB_STYLE_PROP_SLIDEBANNER_SPEC_PREVBTNSTYLE:MOBILE":
481
+ case "CB_STYLE_PROP_SLIDEBANNER_SPEC_PREVBTNSTYLE:MOBILE:HOVER":
482
+ return 'prevBtnType';
483
+ case "CB_STYLE_PROP_SLIDEBANNER_SPEC_PREVBTNLOCATION":
484
+ case "CB_STYLE_PROP_SLIDEBANNER_SPEC_PREVBTNLOCATION:HOVER":
485
+ case "CB_STYLE_PROP_SLIDEBANNER_SPEC_PREVBTNLOCATION:MOBILE":
486
+ case "CB_STYLE_PROP_SLIDEBANNER_SPEC_PREVBTNLOCATION:MOBILE:HOVER":
487
+ return 'prevBtnOffset';
488
+ case "CB_STYLE_PROP_SLIDEBANNER_SPEC_PREVBTNSIZE":
489
+ case "CB_STYLE_PROP_SLIDEBANNER_SPEC_PREVBTNSIZE:HOVER":
490
+ case "CB_STYLE_PROP_SLIDEBANNER_SPEC_PREVBTNSIZE:MOBILE":
491
+ case "CB_STYLE_PROP_SLIDEBANNER_SPEC_PREVBTNSIZE:MOBILE:HOVER":
492
+ return 'prevBtnSize';
493
+ case "CB_STYLE_PROP_SLIDEBANNER_SPEC_PREVBTNPRIMARYCOLOR":
494
+ case "CB_STYLE_PROP_SLIDEBANNER_SPEC_PREVBTNPRIMARYCOLOR:HOVER":
495
+ case "CB_STYLE_PROP_SLIDEBANNER_SPEC_PREVBTNPRIMARYCOLOR:MOBILE":
496
+ case "CB_STYLE_PROP_SLIDEBANNER_SPEC_PREVBTNPRIMARYCOLOR:MOBILE:HOVER":
497
+ return 'prevBtnPrimaryColor';
498
+ case "CB_STYLE_PROP_SLIDEBANNER_SPEC_PREVBTNSECONDARYCOLOR":
499
+ case "CB_STYLE_PROP_SLIDEBANNER_SPEC_PREVBTNSECONDARYCOLOR:HOVER":
500
+ case "CB_STYLE_PROP_SLIDEBANNER_SPEC_PREVBTNSECONDARYCOLOR:MOBILE":
501
+ case "CB_STYLE_PROP_SLIDEBANNER_SPEC_PREVBTNSECONDARYCOLOR:MOBILE:HOVER":
502
+ return 'prevBtnSecondaryColor';
503
+ case "CB_STYLE_PROP_SLIDEBANNER_SPEC_NEXTBTNSTYLE":
504
+ case "CB_STYLE_PROP_SLIDEBANNER_SPEC_NEXTBTNSTYLE:HOVER":
505
+ case "CB_STYLE_PROP_SLIDEBANNER_SPEC_NEXTBTNSTYLE:MOBILE":
506
+ case "CB_STYLE_PROP_SLIDEBANNER_SPEC_NEXTBTNSTYLE:MOBILE:HOVER":
507
+ return 'nextBtnType';
508
+ case "CB_STYLE_PROP_SLIDEBANNER_SPEC_NEXTBTNLOCATION":
509
+ case "CB_STYLE_PROP_SLIDEBANNER_SPEC_NEXTBTNLOCATION:HOVER":
510
+ case "CB_STYLE_PROP_SLIDEBANNER_SPEC_NEXTBTNLOCATION:MOBILE":
511
+ case "CB_STYLE_PROP_SLIDEBANNER_SPEC_NEXTBTNLOCATION:MOBILE:HOVER":
512
+ return 'nextBtnOffset';
513
+ case "CB_STYLE_PROP_SLIDEBANNER_SPEC_NEXTBTNSIZE":
514
+ case "CB_STYLE_PROP_SLIDEBANNER_SPEC_NEXTBTNSIZE:HOVER":
515
+ case "CB_STYLE_PROP_SLIDEBANNER_SPEC_NEXTBTNSIZE:MOBILE":
516
+ case "CB_STYLE_PROP_SLIDEBANNER_SPEC_NEXTBTNSIZE:MOBILE:HOVER":
517
+ return 'nextBtnSize';
518
+ case "CB_STYLE_PROP_SLIDEBANNER_SPEC_NEXTBTNPRIMARYCOLOR":
519
+ case "CB_STYLE_PROP_SLIDEBANNER_SPEC_NEXTBTNPRIMARYCOLOR:HOVER":
520
+ case "CB_STYLE_PROP_SLIDEBANNER_SPEC_NEXTBTNPRIMARYCOLOR:MOBILE":
521
+ case "CB_STYLE_PROP_SLIDEBANNER_SPEC_NEXTBTNPRIMARYCOLOR:MOBILE:HOVER":
522
+ return 'nextBtnPrimaryColor';
523
+ case "CB_STYLE_PROP_SLIDEBANNER_SPEC_NEXTBTNSECONDARYCOLOR":
524
+ case "CB_STYLE_PROP_SLIDEBANNER_SPEC_NEXTBTNSECONDARYCOLOR:HOVER":
525
+ case "CB_STYLE_PROP_SLIDEBANNER_SPEC_NEXTBTNSECONDARYCOLOR:MOBILE":
526
+ case "CB_STYLE_PROP_SLIDEBANNER_SPEC_NEXTBTNSECONDARYCOLOR:MOBILE:HOVER":
527
+ return 'nextBtnSecondaryColor';
528
+ default:
529
+ return '';
530
+ }
531
+ }
532
+ exports.getCustomNavigationPropKey = getCustomNavigationPropKey;
533
+ function getCustomNavigationOffset(value) {
534
+ var OUTSET1 = {
535
+ top: '0px',
536
+ left: '0px',
537
+ translateX: 0,
538
+ translateY: -100,
539
+ transformOrigin: 'top left'
540
+ };
541
+ switch (value) {
542
+ case 'OUTSET1':
543
+ return OUTSET1;
544
+ case 'OUTSET2':
545
+ return {
546
+ top: '0px',
547
+ left: '50%',
548
+ translateX: -50,
549
+ translateY: -100,
550
+ transformOrigin: 'top left'
551
+ };
552
+ case 'OUTSET3':
553
+ return {
554
+ top: '0px',
555
+ left: '100%',
556
+ translateX: -100,
557
+ translateY: -100,
558
+ transformOrigin: 'top left'
559
+ };
560
+ case 'OUTSET4':
561
+ return {
562
+ top: '0px',
563
+ left: '100%',
564
+ translateX: 0,
565
+ translateY: 0,
566
+ transformOrigin: 'left top'
567
+ };
568
+ case 'OUTSET5':
569
+ return {
570
+ top: '50%',
571
+ left: '100%',
572
+ translateX: 0,
573
+ translateY: -50,
574
+ transformOrigin: 'left top'
575
+ };
576
+ case 'OUTSET6':
577
+ return {
578
+ top: '100%',
579
+ left: '100%',
580
+ translateX: 0,
581
+ translateY: -100,
582
+ transformOrigin: 'left top'
583
+ };
584
+ case 'OUTSET7':
585
+ return {
586
+ top: '100%',
587
+ left: '100%',
588
+ translateX: -100,
589
+ translateY: 0,
590
+ transformOrigin: 'top left'
591
+ };
592
+ case 'OUTSET8':
593
+ return {
594
+ top: '100%',
595
+ left: '50%',
596
+ translateX: -50,
597
+ translateY: 0,
598
+ transformOrigin: 'top left'
599
+ };
600
+ case 'OUTSET9':
601
+ return {
602
+ top: '100%',
603
+ left: '0px',
604
+ translateX: 0,
605
+ translateY: 0,
606
+ transformOrigin: 'top left'
607
+ };
608
+ case 'OUTSET10':
609
+ return {
610
+ top: '100%',
611
+ left: '0px',
612
+ translateX: -100,
613
+ translateY: -100,
614
+ transformOrigin: 'right top'
615
+ };
616
+ case 'OUTSET11':
617
+ return {
618
+ top: '50%',
619
+ left: '0px',
620
+ translateX: -100,
621
+ translateY: -50,
622
+ transformOrigin: 'right top'
623
+ };
624
+ case 'OUTSET12':
625
+ return {
626
+ top: '0px',
627
+ left: '0px',
628
+ translateX: -100,
629
+ translateY: 0,
630
+ transformOrigin: 'right top'
631
+ };
632
+ case 'INSET1':
633
+ return { top: '0px', left: '0px', translateX: 0, translateY: 0, transformOrigin: 'left top' };
634
+ case 'INSET2':
635
+ return {
636
+ top: '0px',
637
+ left: '50%',
638
+ translateX: -50,
639
+ translateY: 0,
640
+ transformOrigin: 'left top'
641
+ };
642
+ case 'INSET3':
643
+ return {
644
+ top: '0px',
645
+ left: '100%',
646
+ translateX: -100,
647
+ translateY: 0,
648
+ transformOrigin: 'left top'
649
+ };
650
+ case 'INSET4':
651
+ return {
652
+ top: '50%',
653
+ left: '100%',
654
+ translateX: -100,
655
+ translateY: -50,
656
+ transformOrigin: 'left top'
657
+ };
658
+ case 'INSET5':
659
+ return {
660
+ top: '100%',
661
+ left: '100%',
662
+ translateX: -100,
663
+ translateY: -100,
664
+ transformOrigin: 'left top'
665
+ };
666
+ case 'INSET6':
667
+ return {
668
+ top: '100%',
669
+ left: '50%',
670
+ translateX: -50,
671
+ translateY: -100,
672
+ transformOrigin: 'left top'
673
+ };
674
+ case 'INSET7':
675
+ return {
676
+ top: '100%',
677
+ left: '0px',
678
+ translateX: 0,
679
+ translateY: -100,
680
+ transformOrigin: 'top left'
681
+ };
682
+ case 'INSET8':
683
+ return {
684
+ top: '50%',
685
+ left: '0px',
686
+ translateX: 0,
687
+ translateY: -50,
688
+ transformOrigin: 'top left'
689
+ };
690
+ default:
691
+ return OUTSET1;
692
+ }
693
+ }
694
+ function getCustomNavigationSize(value) {
695
+ switch (value) {
696
+ case 'SMALL':
697
+ return 1;
698
+ case 'MEDIUM':
699
+ return 1.5;
700
+ case 'LARGE':
701
+ return 3;
702
+ default:
703
+ return 2;
704
+ }
705
+ }
706
+ function parseSlideBannerStyleToCustomProgressbarProp(_a) {
707
+ var props = _a.props, device = _a.device;
708
+ var availableSpecCodes = Object.keys(props).filter(function (key) { return !key.includes(':HOVER') && !key.includes(':MOBILE'); });
709
+ return availableSpecCodes.reduce(function (acc, currentKey) {
710
+ var keyWithDevice = device === 'DESKTOP' ? currentKey : "".concat(currentKey, ":MOBILE");
711
+ var keyWithHover = "".concat(keyWithDevice.toString(), ":HOVER");
712
+ var customProgressbarPropertyKey = getCustomProgressbarPropKey(currentKey);
713
+ if (customProgressbarPropertyKey === 'type') {
714
+ var value = props[keyWithDevice];
715
+ var hoverValue = props[keyWithHover];
716
+ return {
717
+ normalStyle: __assign(__assign({}, acc.normalStyle), { type: value }),
718
+ hoverStyle: __assign(__assign({}, acc.hoverStyle), { type: hoverValue !== null && hoverValue !== void 0 ? hoverValue : value })
719
+ };
720
+ }
721
+ if (customProgressbarPropertyKey === 'size') {
722
+ var value = props[keyWithDevice];
723
+ var hoverValue = props[keyWithHover];
724
+ var offset = getCustomProgressbarOffset('INSET5');
725
+ return {
726
+ normalStyle: __assign(__assign({}, acc.normalStyle), { size: getCustomProgressbarSize(value), offset: offset }),
727
+ hoverStyle: __assign(__assign({}, acc.hoverStyle), { size: getCustomProgressbarSize(hoverValue !== null && hoverValue !== void 0 ? hoverValue : value), offset: offset })
728
+ };
729
+ }
730
+ if (customProgressbarPropertyKey === 'primaryColor') {
731
+ var value = props[keyWithDevice];
732
+ var hoverValue = props[keyWithHover];
733
+ return {
734
+ normalStyle: __assign(__assign({}, acc.normalStyle), { primaryColor: value }),
735
+ hoverStyle: __assign(__assign({}, acc.hoverStyle), { primaryColor: hoverValue !== null && hoverValue !== void 0 ? hoverValue : value })
736
+ };
737
+ }
738
+ if (customProgressbarPropertyKey === 'secondaryColor') {
739
+ var value = props[keyWithDevice];
740
+ var hoverValue = props[keyWithHover];
741
+ return {
742
+ normalStyle: __assign(__assign({}, acc.normalStyle), { secondaryColor: value }),
743
+ hoverStyle: __assign(__assign({}, acc.hoverStyle), { secondaryColor: hoverValue !== null && hoverValue !== void 0 ? hoverValue : value })
744
+ };
745
+ }
746
+ return {
747
+ normalStyle: __assign({}, acc.normalStyle),
748
+ hoverStyle: __assign({}, acc.hoverStyle)
749
+ };
750
+ }, {
751
+ normalStyle: {},
752
+ hoverStyle: {}
753
+ });
754
+ }
755
+ exports.parseSlideBannerStyleToCustomProgressbarProp = parseSlideBannerStyleToCustomProgressbarProp;
756
+ function getCustomProgressbarPropKey(key) {
757
+ switch (key) {
758
+ case "CB_STYLE_PROP_SLIDEBANNER_SPEC_PROGRESSBAR":
759
+ case "CB_STYLE_PROP_SLIDEBANNER_SPEC_PROGRESSBAR:HOVER":
760
+ case "CB_STYLE_PROP_SLIDEBANNER_SPEC_PROGRESSBAR:MOBILE":
761
+ case "CB_STYLE_PROP_SLIDEBANNER_SPEC_PROGRESSBAR:MOBILE:HOVER":
762
+ return 'type';
763
+ case "CB_STYLE_PROP_SLIDEBANNER_SPEC_PROGRESSBARSIZE":
764
+ case "CB_STYLE_PROP_SLIDEBANNER_SPEC_PROGRESSBARSIZE:HOVER":
765
+ case "CB_STYLE_PROP_SLIDEBANNER_SPEC_PROGRESSBARSIZE:MOBILE":
766
+ case "CB_STYLE_PROP_SLIDEBANNER_SPEC_PROGRESSBARSIZE:MOBILE:HOVER":
767
+ return 'size';
768
+ case "CB_STYLE_PROP_SLIDEBANNER_SPEC_PROGRESSBARPRIMARYCOLOR":
769
+ case "CB_STYLE_PROP_SLIDEBANNER_SPEC_PROGRESSBARPRIMARYCOLOR:HOVER":
770
+ case "CB_STYLE_PROP_SLIDEBANNER_SPEC_PROGRESSBARPRIMARYCOLOR:MOBILE":
771
+ case "CB_STYLE_PROP_SLIDEBANNER_SPEC_PROGRESSBARPRIMARYCOLOR:MOBILE:HOVER":
772
+ return 'primaryColor';
773
+ case "CB_STYLE_PROP_SLIDEBANNER_SPEC_PROGRESSBARSECONDARYCOLOR":
774
+ case "CB_STYLE_PROP_SLIDEBANNER_SPEC_PROGRESSBARSECONDARYCOLOR:HOVER":
775
+ case "CB_STYLE_PROP_SLIDEBANNER_SPEC_PROGRESSBARSECONDARYCOLOR:MOBILE":
776
+ case "CB_STYLE_PROP_SLIDEBANNER_SPEC_PROGRESSBARSECONDARYCOLOR:MOBILE:HOVER":
777
+ return 'secondaryColor';
778
+ default:
779
+ return '';
780
+ }
781
+ }
782
+ exports.getCustomProgressbarPropKey = getCustomProgressbarPropKey;
783
+ function getCustomProgressbarOffset(value) {
784
+ var OUTSET1 = {
785
+ top: '0px',
786
+ left: '0px',
787
+ translateX: 0,
788
+ translateY: -100,
789
+ transformOrigin: 'top left'
790
+ };
791
+ switch (value) {
792
+ case 'OUTSET1':
793
+ return OUTSET1;
794
+ case 'OUTSET2':
795
+ return {
796
+ top: '0px',
797
+ left: '50%',
798
+ translateX: -50,
799
+ translateY: -100,
800
+ transformOrigin: 'top left'
801
+ };
802
+ case 'OUTSET3':
803
+ return {
804
+ top: '0px',
805
+ right: '0px',
806
+ translateX: 0,
807
+ translateY: -100,
808
+ transformOrigin: 'top right'
809
+ };
810
+ case 'OUTSET4':
811
+ return {
812
+ top: '0px',
813
+ left: '100%',
814
+ translateX: 0,
815
+ translateY: 0,
816
+ transformOrigin: 'left top'
817
+ };
818
+ case 'OUTSET5':
819
+ return {
820
+ top: '50%',
821
+ left: '100%',
822
+ translateX: 0,
823
+ translateY: -50,
824
+ transformOrigin: 'left top'
825
+ };
826
+ case 'OUTSET6':
827
+ return {
828
+ top: '100%',
829
+ left: '100%',
830
+ translateX: 0,
831
+ translateY: -100,
832
+ transformOrigin: 'left top'
833
+ };
834
+ case 'OUTSET7':
835
+ return {
836
+ top: '100%',
837
+ left: '100%',
838
+ translateX: -100,
839
+ translateY: 0,
840
+ transformOrigin: 'top left'
841
+ };
842
+ case 'OUTSET8':
843
+ return {
844
+ top: '100%',
845
+ left: '50%',
846
+ translateX: -50,
847
+ translateY: 0,
848
+ transformOrigin: 'top left'
849
+ };
850
+ case 'OUTSET9':
851
+ return {
852
+ top: '100%',
853
+ left: '0px',
854
+ translateX: 0,
855
+ translateY: 0,
856
+ transformOrigin: 'top left'
857
+ };
858
+ case 'OUTSET10':
859
+ return {
860
+ top: '100%',
861
+ left: '0px',
862
+ translateX: -100,
863
+ translateY: -100,
864
+ transformOrigin: 'right top'
865
+ };
866
+ case 'OUTSET11':
867
+ return {
868
+ top: '50%',
869
+ left: '0px',
870
+ translateX: -100,
871
+ translateY: -50,
872
+ transformOrigin: 'right top'
873
+ };
874
+ case 'OUTSET12':
875
+ return {
876
+ top: '0px',
877
+ left: '0px',
878
+ translateX: -100,
879
+ translateY: 0,
880
+ transformOrigin: 'right top'
881
+ };
882
+ case 'INSET1':
883
+ return { top: '0px', left: '0px', translateX: 0, translateY: 0, transformOrigin: 'left top' };
884
+ case 'INSET2':
885
+ return {
886
+ top: '0px',
887
+ left: '50%',
888
+ translateX: -50,
889
+ translateY: 0,
890
+ transformOrigin: 'left top'
891
+ };
892
+ case 'INSET3':
893
+ return {
894
+ top: '0px',
895
+ left: '100%',
896
+ translateX: -100,
897
+ translateY: 0,
898
+ transformOrigin: 'left top'
899
+ };
900
+ case 'INSET4':
901
+ return {
902
+ top: '50%',
903
+ left: '100%',
904
+ translateX: -100,
905
+ translateY: -50,
906
+ transformOrigin: 'left top'
907
+ };
908
+ case 'INSET5':
909
+ return {
910
+ top: '100%',
911
+ left: '100%',
912
+ translateX: -100,
913
+ translateY: -100,
914
+ transformOrigin: 'left top'
915
+ };
916
+ case 'INSET6':
917
+ return {
918
+ top: '100%',
919
+ left: '50%',
920
+ translateX: -50,
921
+ translateY: -100,
922
+ transformOrigin: 'left top'
923
+ };
924
+ case 'INSET7':
925
+ return {
926
+ top: '100%',
927
+ left: '0px',
928
+ translateX: 0,
929
+ translateY: -100,
930
+ transformOrigin: 'top left'
931
+ };
932
+ case 'INSET8':
933
+ return {
934
+ top: '50%',
935
+ left: '0px',
936
+ translateX: 0,
937
+ translateY: -50,
938
+ transformOrigin: 'top left'
939
+ };
940
+ default:
941
+ return OUTSET1;
942
+ }
943
+ }
944
+ function getCustomProgressbarSize(value) {
945
+ switch (value) {
946
+ case 'SMALL':
947
+ return 1;
948
+ case 'MEDIUM':
949
+ return 1.5;
950
+ case 'LARGE':
951
+ return 2;
952
+ default:
953
+ return 1;
954
+ }
955
+ }
956
+ var templateObject_1, templateObject_2, templateObject_3;