pds-dev-kit-web-test 2.5.434 → 2.5.435

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 (144) 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 +16 -1
  7. package/dist/src/desktop/panels/DesktopHeadlessModal/DesktopHeadlessModal.js +33 -4
  8. package/dist/src/sub/DynamicLayout/CompositionRenderer/ComponentBlockMatcher.js +1 -4
  9. package/dist/src/sub/DynamicLayout/CompositionRenderer/Composition.d.ts +3 -5
  10. package/dist/src/sub/DynamicLayout/CompositionRenderer/Composition.js +53 -53
  11. package/dist/src/sub/DynamicLayout/CompositionRenderer/CompositionRenderer.d.ts +6 -0
  12. package/dist/src/sub/DynamicLayout/CompositionRenderer/CompositionRenderer.js +27 -0
  13. package/dist/src/sub/DynamicLayout/DynamicLayout.d.ts +1 -1
  14. package/dist/src/sub/DynamicLayout/DynamicLayout.js +2 -3
  15. package/dist/src/sub/DynamicLayout/components/Section/sectionContext.d.ts +2 -2
  16. package/dist/src/sub/DynamicLayout/components/pdsOriginal/common/assets/icons/line/index.d.ts +0 -40
  17. package/dist/src/sub/DynamicLayout/components/pdsOriginal/common/assets/icons/line/index.js +177 -36
  18. package/dist/src/sub/DynamicLayout/components/pdsOriginal/common/styles/colorSet/PaletteColor_Dark.json +4 -152
  19. package/dist/src/sub/DynamicLayout/components/pdsOriginal/common/styles/colorSet/PaletteColor_light.json +2 -150
  20. package/dist/src/sub/DynamicLayout/components/pdsOriginal/common/styles/colorSet/SemanticColor.json +1 -45
  21. package/dist/src/sub/DynamicLayout/components/pdsOriginal/common/styles/colorSet/UIColor.json +9 -262
  22. package/dist/src/sub/DynamicLayout/components/pdsOriginal/common/styles/colorSet/index.d.ts +0 -593
  23. package/dist/src/sub/DynamicLayout/components/pdsOriginal/common/styles/colorSet/ui-type.d.ts +0 -253
  24. package/dist/src/sub/DynamicLayout/components/pdsOriginal/desktop/IconButton/IconButton.d.ts +1 -3
  25. package/dist/src/sub/DynamicLayout/components/pdsOriginal/desktop/IconButton/IconButton.js +3 -5
  26. package/dist/src/sub/DynamicLayout/components/pdsOriginal/hybrid/Icon/Icon.d.ts +1 -2
  27. package/dist/src/sub/DynamicLayout/components/pdsOriginal/hybrid/Icon/Icon.js +2 -9
  28. package/dist/src/sub/DynamicLayout/mock_video_cb.d.ts +1 -0
  29. package/dist/src/sub/DynamicLayout/mock_video_cb.js +5 -4
  30. package/dist/src/sub/DynamicLayout/mocks.d.ts +961 -8
  31. package/dist/src/sub/DynamicLayout/mocks.js +6 -4286
  32. package/dist/src/sub/DynamicLayout/sectionActionTypes.d.ts +4 -4
  33. package/dist/src/sub/DynamicLayout/sections/CustomSection/CustomSection.d.ts +1 -1
  34. package/dist/src/sub/DynamicLayout/sections/CustomSection/CustomSection.js +4 -4
  35. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/ComponentBlockMatcher.js +3 -13
  36. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/Button/Button.js +2 -18
  37. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsCarousel/ContentsCarousel.d.ts +4 -4
  38. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsCarousel/ContentsCarousel.js +2 -249
  39. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/Image/Image.js +3 -39
  40. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/Text/Text.js +7 -31
  41. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/VideoPlayer/VideoPlayer.js +28 -3
  42. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/types.d.ts +3 -45
  43. package/dist/src/sub/DynamicLayout/sections/CustomSection/newUtils/group.d.ts +1 -1
  44. package/dist/src/sub/DynamicLayout/sections/CustomSection/newUtils/replaceUndefinedValues.js +1 -1
  45. package/dist/src/sub/DynamicLayout/sections/CustomSection/types.d.ts +10 -27
  46. package/dist/src/sub/DynamicLayout/sections/CustomSection/types.js +1 -3
  47. package/dist/src/sub/DynamicLayout/sections/CustomSection/util/effectPropParsers/parseEffectPropEntAnim.d.ts +4 -4
  48. package/dist/src/sub/DynamicLayout/sections/CustomSection/util/layoutPropParsers/parseLayoutPropPadding.d.ts +2 -2
  49. package/dist/src/sub/DynamicLayout/sections/CustomSection/util/parseJsonProperties.d.ts +2 -2
  50. package/dist/src/sub/DynamicLayout/sections/CustomSection/util/parsePlacement.d.ts +1 -1
  51. package/dist/src/sub/DynamicLayout/sections/CustomSection/util/parsePlacement.js +2 -2
  52. package/dist/src/sub/DynamicLayout/sections/CustomSection/util/parseProperties.d.ts +2 -2
  53. package/dist/src/sub/DynamicLayout/sections/CustomSection/util/types.d.ts +3 -52
  54. package/dist/src/sub/DynamicLayout/sections/FlexGridCustomSection.d.ts +1 -1
  55. package/dist/src/sub/DynamicLayout/sections/FlexGridCustomSection.js +0 -1
  56. package/dist/src/sub/DynamicLayout/types.d.ts +16 -49
  57. package/package.json +2 -3
  58. package/release-note.md +2 -2
  59. package/dist/src/sub/DynamicLayout/CompositionEditor/CompositionEditor.d.ts +0 -21
  60. package/dist/src/sub/DynamicLayout/CompositionEditor/CompositionEditor.js +0 -1133
  61. package/dist/src/sub/DynamicLayout/CompositionRenderer/CompositionBackground.d.ts +0 -11
  62. package/dist/src/sub/DynamicLayout/CompositionRenderer/CompositionBackground.js +0 -45
  63. package/dist/src/sub/DynamicLayout/CompositionRenderer/createCompositions.d.ts +0 -10
  64. package/dist/src/sub/DynamicLayout/CompositionRenderer/createCompositions.js +0 -79
  65. package/dist/src/sub/DynamicLayout/components/pdsOriginal/common/assets/icons/line/editorNavigationIcons/downIcons.d.ts +0 -12
  66. package/dist/src/sub/DynamicLayout/components/pdsOriginal/common/assets/icons/line/editorNavigationIcons/downIcons.js +0 -76
  67. package/dist/src/sub/DynamicLayout/components/pdsOriginal/common/assets/icons/line/editorNavigationIcons/index.d.ts +0 -4
  68. package/dist/src/sub/DynamicLayout/components/pdsOriginal/common/assets/icons/line/editorNavigationIcons/index.js +0 -47
  69. package/dist/src/sub/DynamicLayout/components/pdsOriginal/common/assets/icons/line/editorNavigationIcons/leftIcons.d.ts +0 -12
  70. package/dist/src/sub/DynamicLayout/components/pdsOriginal/common/assets/icons/line/editorNavigationIcons/leftIcons.js +0 -76
  71. package/dist/src/sub/DynamicLayout/components/pdsOriginal/common/assets/icons/line/editorNavigationIcons/rightIcons.d.ts +0 -12
  72. package/dist/src/sub/DynamicLayout/components/pdsOriginal/common/assets/icons/line/editorNavigationIcons/rightIcons.js +0 -76
  73. package/dist/src/sub/DynamicLayout/components/pdsOriginal/common/assets/icons/line/editorNavigationIcons/upIcons.d.ts +0 -12
  74. package/dist/src/sub/DynamicLayout/components/pdsOriginal/common/assets/icons/line/editorNavigationIcons/upIcons.js +0 -76
  75. package/dist/src/sub/DynamicLayout/compositionActionTypes.d.ts +0 -139
  76. package/dist/src/sub/DynamicLayout/compositionActionTypes.js +0 -2
  77. package/dist/src/sub/DynamicLayout/compositionQueryContext.d.ts +0 -8
  78. package/dist/src/sub/DynamicLayout/compositionQueryContext.js +0 -14
  79. package/dist/src/sub/DynamicLayout/mock_composition.d.ts +0 -3
  80. package/dist/src/sub/DynamicLayout/mock_composition.js +0 -1606
  81. package/dist/src/sub/DynamicLayout/mock_contentsCarousel.d.ts +0 -1
  82. package/dist/src/sub/DynamicLayout/mock_contentsCarousel.js +0 -1123
  83. package/dist/src/sub/DynamicLayout/mock_contentsList.d.ts +0 -1
  84. package/dist/src/sub/DynamicLayout/mock_contentsList.js +0 -1091
  85. package/dist/src/sub/DynamicLayout/mock_queryData.d.ts +0 -96
  86. package/dist/src/sub/DynamicLayout/mock_queryData.js +0 -2639
  87. package/dist/src/sub/DynamicLayout/mock_slideBanner.d.ts +0 -842
  88. package/dist/src/sub/DynamicLayout/mock_slideBanner.js +0 -854
  89. package/dist/src/sub/DynamicLayout/mock_video.d.ts +0 -368
  90. package/dist/src/sub/DynamicLayout/mock_video.js +0 -371
  91. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsCarousel/ContentsCarouselCore.d.ts +0 -17
  92. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsCarousel/ContentsCarouselCore.js +0 -59
  93. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsCarousel/components/CustomNavigation.d.ts +0 -35
  94. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsCarousel/components/CustomNavigation.js +0 -118
  95. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsCarousel/components/CustomPagination.d.ts +0 -32
  96. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsCarousel/components/CustomPagination.js +0 -183
  97. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsCarousel/components/CustomProgressbar.d.ts +0 -23
  98. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsCarousel/components/CustomProgressbar.js +0 -117
  99. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsCarousel/components/navigationConfigs.d.ts +0 -4
  100. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsCarousel/components/navigationConfigs.js +0 -849
  101. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsCarousel/components/progressConfigs.d.ts +0 -43
  102. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsCarousel/components/progressConfigs.js +0 -162
  103. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsCarousel/contentsCarouselUtils.d.ts +0 -40
  104. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsCarousel/contentsCarouselUtils.js +0 -747
  105. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsCarousel/index.d.ts +0 -1
  106. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsCarousel/index.js +0 -8
  107. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsCarousel/types.d.ts +0 -105
  108. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsCarousel/types.js +0 -2
  109. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsList/ContentsList.d.ts +0 -8
  110. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsList/ContentsList.js +0 -173
  111. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsList/ContentsListCore.d.ts +0 -17
  112. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsList/ContentsListCore.js +0 -39
  113. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsList/components/CustomPagination.d.ts +0 -29
  114. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsList/components/CustomPagination.js +0 -115
  115. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsList/components/paginationConfigs.d.ts +0 -25
  116. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsList/components/paginationConfigs.js +0 -183
  117. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsList/contentsListUtils.d.ts +0 -30
  118. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsList/contentsListUtils.js +0 -380
  119. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsList/index.d.ts +0 -1
  120. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsList/index.js +0 -8
  121. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsList/types.d.ts +0 -56
  122. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsList/types.js +0 -2
  123. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/SlideBanner/SlideBanner.d.ts +0 -8
  124. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/SlideBanner/SlideBanner.js +0 -215
  125. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/SlideBanner/SlideBannerCore.d.ts +0 -15
  126. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/SlideBanner/SlideBannerCore.js +0 -39
  127. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/SlideBanner/components/CustomNavigation.d.ts +0 -35
  128. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/SlideBanner/components/CustomNavigation.js +0 -118
  129. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/SlideBanner/components/CustomPagination.d.ts +0 -33
  130. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/SlideBanner/components/CustomPagination.js +0 -183
  131. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/SlideBanner/components/CustomProgressbar.d.ts +0 -23
  132. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/SlideBanner/components/CustomProgressbar.js +0 -117
  133. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/SlideBanner/components/navigationConfigs.d.ts +0 -4
  134. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/SlideBanner/components/navigationConfigs.js +0 -849
  135. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/SlideBanner/components/progressConfigs.d.ts +0 -43
  136. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/SlideBanner/components/progressConfigs.js +0 -162
  137. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/SlideBanner/index.d.ts +0 -1
  138. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/SlideBanner/index.js +0 -8
  139. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/SlideBanner/slideBannerUtils.d.ts +0 -48
  140. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/SlideBanner/slideBannerUtils.js +0 -956
  141. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/SlideBanner/types.d.ts +0 -120
  142. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/SlideBanner/types.js +0 -2
  143. package/dist/src/sub/DynamicLayout/sections/CustomSection/util/parseCompositionPlacement.d.ts +0 -14
  144. package/dist/src/sub/DynamicLayout/sections/CustomSection/util/parseCompositionPlacement.js +0 -26
@@ -1,747 +0,0 @@
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.parseCarouselStyleToCustomProgressbarProp = exports.getCustomNavigationPropKey = exports.parseCarouselStyleToCustomNavigationProp = exports.getCarouselCorePropKey = exports.parseCarouselStyleToCarouselCoreProp = void 0;
19
- var styled_components_1 = require("styled-components");
20
- function parseCarouselStyleToCarouselCoreProp(_a) {
21
- var props = _a.props, contentsPropsPartials = _a.contentsPropsPartials, 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, _e, _f;
25
- var keyWithDevice = device === 'DESKTOP' ? currentKey : "".concat(currentKey, ":MOBILE");
26
- var keyWithHover = "".concat(keyWithDevice.toString(), ":HOVER");
27
- var carouselCorePropertyKey = getCarouselCorePropKey(currentKey);
28
- if (carouselCorePropertyKey === 'customStyle') {
29
- var value = props[keyWithDevice];
30
- var hoverValue = props[keyWithHover];
31
- return {
32
- normalStyle: __assign(__assign({}, acc.normalStyle), (_a = {}, _a[carouselCorePropertyKey] = getStyle(value), _a)),
33
- hoverStyle: __assign(__assign({}, acc.hoverStyle), (_b = {}, _b[carouselCorePropertyKey] = getStyle(hoverValue !== null && hoverValue !== void 0 ? hoverValue : value), _b))
34
- };
35
- }
36
- if (carouselCorePropertyKey === 'spaceBetween') {
37
- var value = props[keyWithDevice];
38
- var hoverValue = props[keyWithHover];
39
- return {
40
- normalStyle: __assign(__assign({}, acc.normalStyle), (_c = {}, _c[carouselCorePropertyKey] = getItemSpacing(value), _c)),
41
- hoverStyle: __assign(__assign({}, acc.hoverStyle), (_d = {}, _d[carouselCorePropertyKey] = getItemSpacing(hoverValue !== null && hoverValue !== void 0 ? hoverValue : value), _d))
42
- };
43
- }
44
- if (carouselCorePropertyKey === 'slidesPerGroup') {
45
- var value = props[keyWithDevice];
46
- var hoverValue = props[keyWithHover];
47
- var displayCounts = contentsPropsPartials.CB_CONTENT_PROP_CONTENTSCAROUSEL_SPEC_DISPLAYCOUNTS;
48
- return {
49
- normalStyle: __assign(__assign({}, acc.normalStyle), getSlidesPerGroupConfig(value, displayCounts)),
50
- hoverStyle: __assign(__assign({}, acc.hoverStyle), getSlidesPerGroupConfig(hoverValue !== null && hoverValue !== void 0 ? hoverValue : value, displayCounts))
51
- };
52
- }
53
- if (carouselCorePropertyKey === 'useAutoplay') {
54
- var value = props[keyWithDevice];
55
- var hoverValue = props[keyWithHover];
56
- return {
57
- normalStyle: __assign(__assign({}, acc.normalStyle), { useAutoplay: value === true }),
58
- hoverStyle: __assign(__assign({}, acc.hoverStyle), { useAutoplay: (hoverValue !== null && hoverValue !== void 0 ? hoverValue : value) === true })
59
- };
60
- }
61
- if (carouselCorePropertyKey === 'autoplayDelay') {
62
- var value = props[keyWithDevice];
63
- var hoverValue = props[keyWithHover];
64
- return {
65
- normalStyle: __assign(__assign({}, acc.normalStyle), { autoplay: {
66
- delay: value * 1000,
67
- disableOnInteraction: false,
68
- pauseOnMouseEnter: true
69
- } }),
70
- hoverStyle: __assign(__assign({}, acc.hoverStyle), { autoplay: {
71
- delay: (hoverValue !== null && hoverValue !== void 0 ? hoverValue : value) * 1000,
72
- disableOnInteraction: false,
73
- pauseOnMouseEnter: true
74
- } })
75
- };
76
- }
77
- if (carouselCorePropertyKey === 'loop') {
78
- var value = props[keyWithDevice];
79
- var hoverValue = props[keyWithHover];
80
- return {
81
- normalStyle: __assign(__assign({}, acc.normalStyle), (_e = {}, _e[carouselCorePropertyKey] = value, _e)),
82
- hoverStyle: __assign(__assign({}, acc.hoverStyle), (_f = {}, _f[carouselCorePropertyKey] = hoverValue !== null && hoverValue !== void 0 ? hoverValue : value, _f))
83
- };
84
- }
85
- return {
86
- normalStyle: __assign({}, acc.normalStyle),
87
- hoverStyle: __assign({}, acc.hoverStyle)
88
- };
89
- }, {
90
- normalStyle: {},
91
- hoverStyle: {}
92
- });
93
- }
94
- exports.parseCarouselStyleToCarouselCoreProp = parseCarouselStyleToCarouselCoreProp;
95
- function getCarouselCorePropKey(key) {
96
- switch (key) {
97
- case "CB_STYLE_PROP_CONTENTSCAROUSEL_SPEC_STYLE":
98
- case "CB_STYLE_PROP_CONTENTSCAROUSEL_SPEC_STYLE:HOVER":
99
- case "CB_STYLE_PROP_CONTENTSCAROUSEL_SPEC_STYLE:MOBILE":
100
- case "CB_STYLE_PROP_CONTENTSCAROUSEL_SPEC_STYLE:MOBILE:HOVER":
101
- return 'customStyle';
102
- case "CB_STYLE_PROP_CONTENTSCAROUSEL_SPEC_ITEMSPACING":
103
- case "CB_STYLE_PROP_CONTENTSCAROUSEL_SPEC_ITEMSPACING:HOVER":
104
- case "CB_STYLE_PROP_CONTENTSCAROUSEL_SPEC_ITEMSPACING:MOBILE":
105
- case "CB_STYLE_PROP_CONTENTSCAROUSEL_SPEC_ITEMSPACING:MOBILE:HOVER":
106
- return 'spaceBetween';
107
- case "CB_STYLE_PROP_CONTENTSCAROUSEL_SPEC_ITEMCURSOR":
108
- case "CB_STYLE_PROP_CONTENTSCAROUSEL_SPEC_ITEMCURSOR:HOVER":
109
- case "CB_STYLE_PROP_CONTENTSCAROUSEL_SPEC_ITEMCURSOR:MOBILE":
110
- case "CB_STYLE_PROP_CONTENTSCAROUSEL_SPEC_ITEMCURSOR:MOBILE:HOVER":
111
- return 'slidesPerGroup';
112
- case "CB_STYLE_PROP_CONTENTSCAROUSEL_SPEC_AUTOPLAYUSE":
113
- case "CB_STYLE_PROP_CONTENTSCAROUSEL_SPEC_AUTOPLAYUSE:HOVER":
114
- case "CB_STYLE_PROP_CONTENTSCAROUSEL_SPEC_AUTOPLAYUSE:MOBILE":
115
- case "CB_STYLE_PROP_CONTENTSCAROUSEL_SPEC_AUTOPLAYUSE:MOBILE:HOVER":
116
- return 'useAutoplay';
117
- case "CB_STYLE_PROP_CONTENTSCAROUSEL_SPEC_AUTOPLAYTIME":
118
- case "CB_STYLE_PROP_CONTENTSCAROUSEL_SPEC_AUTOPLAYTIME:HOVER":
119
- case "CB_STYLE_PROP_CONTENTSCAROUSEL_SPEC_AUTOPLAYTIME:MOBILE":
120
- case "CB_STYLE_PROP_CONTENTSCAROUSEL_SPEC_AUTOPLAYTIME:MOBILE:HOVER":
121
- return 'autoplayDelay';
122
- case "CB_STYLE_PROP_CONTENTSCAROUSEL_SPEC_INFINITESCROLL":
123
- case "CB_STYLE_PROP_CONTENTSCAROUSEL_SPEC_INFINITESCROLL:HOVER":
124
- case "CB_STYLE_PROP_CONTENTSCAROUSEL_SPEC_INFINITESCROLL:MOBILE":
125
- case "CB_STYLE_PROP_CONTENTSCAROUSEL_SPEC_INFINITESCROLL:MOBILE:HOVER":
126
- return 'loop';
127
- default:
128
- return '';
129
- }
130
- }
131
- exports.getCarouselCorePropKey = getCarouselCorePropKey;
132
- function getSlidesPerGroupConfig(cursorType, displayCounts) {
133
- if (cursorType === 'ALL') {
134
- return { slidesPerGroup: displayCounts };
135
- }
136
- if (cursorType === 'SCROLL') {
137
- return {
138
- scrollbar: { draggable: true },
139
- freeMode: { enabled: true, sticky: false }
140
- };
141
- }
142
- // 'ONCE'
143
- return { slidesPerGroup: 1 };
144
- }
145
- function getStyle(value) {
146
- switch (value) {
147
- case 'DESIGN1':
148
- 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 "])));
149
- case 'DESIGN2': {
150
- 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 "])));
151
- }
152
- default: {
153
- 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 "])));
154
- }
155
- }
156
- }
157
- function getItemSpacing(value) {
158
- var NORMAL = 30;
159
- switch (value) {
160
- case 'WIDE':
161
- return 50;
162
- case 'NORMAL':
163
- return NORMAL;
164
- case 'NARROW':
165
- return 10;
166
- default:
167
- return NORMAL;
168
- }
169
- }
170
- function parseCarouselStyleToCustomNavigationProp(_a) {
171
- var props = _a.props, device = _a.device;
172
- var availableSpecCodes = Object.keys(props).filter(function (key) { return !key.includes(':HOVER') && !key.includes(':MOBILE'); });
173
- return availableSpecCodes.reduce(function (acc, currentKey) {
174
- var keyWithDevice = device === 'DESKTOP' ? currentKey : "".concat(currentKey, ":MOBILE");
175
- var keyWithHover = "".concat(keyWithDevice.toString(), ":HOVER");
176
- var customNavigationPropertyKey = getCustomNavigationPropKey(currentKey);
177
- if (customNavigationPropertyKey === 'prevBtnType') {
178
- var value = props[keyWithDevice];
179
- var hoverValue = props[keyWithHover];
180
- return {
181
- normalStyle: __assign(__assign({}, acc.normalStyle), { prevBtnType: value }),
182
- hoverStyle: __assign(__assign({}, acc.hoverStyle), { prevBtnType: hoverValue !== null && hoverValue !== void 0 ? hoverValue : value })
183
- };
184
- }
185
- if (customNavigationPropertyKey === 'prevBtnOffset') {
186
- var value = props[keyWithDevice];
187
- var hoverValue = props[keyWithHover];
188
- return {
189
- normalStyle: __assign(__assign({}, acc.normalStyle), { prevBtnOffset: getCustomNavigationOffset(value) }),
190
- hoverStyle: __assign(__assign({}, acc.hoverStyle), { prevBtnOffset: getCustomNavigationOffset(hoverValue !== null && hoverValue !== void 0 ? hoverValue : value) })
191
- };
192
- }
193
- if (customNavigationPropertyKey === 'prevBtnSize') {
194
- var value = props[keyWithDevice];
195
- var hoverValue = props[keyWithHover];
196
- return {
197
- normalStyle: __assign(__assign({}, acc.normalStyle), { prevBtnSize: getCustomNavigationSize(value) }),
198
- hoverStyle: __assign(__assign({}, acc.hoverStyle), { prevBtnSize: getCustomNavigationSize(hoverValue !== null && hoverValue !== void 0 ? hoverValue : value) })
199
- };
200
- }
201
- if (customNavigationPropertyKey === 'prevBtnPrimaryColor') {
202
- var value = props[keyWithDevice];
203
- var hoverValue = props[keyWithHover];
204
- return {
205
- normalStyle: __assign(__assign({}, acc.normalStyle), { prevBtnPrimaryColor: value }),
206
- hoverStyle: __assign(__assign({}, acc.hoverStyle), { prevBtnPrimaryColor: hoverValue !== null && hoverValue !== void 0 ? hoverValue : value })
207
- };
208
- }
209
- if (customNavigationPropertyKey === 'prevBtnSecondaryColor') {
210
- var value = props[keyWithDevice];
211
- var hoverValue = props[keyWithHover];
212
- return {
213
- normalStyle: __assign(__assign({}, acc.normalStyle), { prevBtnSecondaryColor: value }),
214
- hoverStyle: __assign(__assign({}, acc.hoverStyle), { prevBtnSecondaryColor: hoverValue !== null && hoverValue !== void 0 ? hoverValue : value })
215
- };
216
- }
217
- if (customNavigationPropertyKey === 'nextBtnType') {
218
- var value = props[keyWithDevice];
219
- var hoverValue = props[keyWithHover];
220
- return {
221
- normalStyle: __assign(__assign({}, acc.normalStyle), { nextBtnType: value }),
222
- hoverStyle: __assign(__assign({}, acc.hoverStyle), { nextBtnType: hoverValue !== null && hoverValue !== void 0 ? hoverValue : value })
223
- };
224
- }
225
- if (customNavigationPropertyKey === 'nextBtnOffset') {
226
- var value = props[keyWithDevice];
227
- var hoverValue = props[keyWithHover];
228
- return {
229
- normalStyle: __assign(__assign({}, acc.normalStyle), { nextBtnOffset: getCustomNavigationOffset(value) }),
230
- hoverStyle: __assign(__assign({}, acc.hoverStyle), { nextBtnOffset: getCustomNavigationOffset(hoverValue !== null && hoverValue !== void 0 ? hoverValue : value) })
231
- };
232
- }
233
- if (customNavigationPropertyKey === 'nextBtnSize') {
234
- var value = props[keyWithDevice];
235
- var hoverValue = props[keyWithHover];
236
- return {
237
- normalStyle: __assign(__assign({}, acc.normalStyle), { nextBtnSize: getCustomNavigationSize(value) }),
238
- hoverStyle: __assign(__assign({}, acc.hoverStyle), { nextBtnSize: getCustomNavigationSize(hoverValue !== null && hoverValue !== void 0 ? hoverValue : value) })
239
- };
240
- }
241
- if (customNavigationPropertyKey === 'nextBtnPrimaryColor') {
242
- var value = props[keyWithDevice];
243
- var hoverValue = props[keyWithHover];
244
- return {
245
- normalStyle: __assign(__assign({}, acc.normalStyle), { nextBtnPrimaryColor: value }),
246
- hoverStyle: __assign(__assign({}, acc.hoverStyle), { nextBtnPrimaryColor: hoverValue !== null && hoverValue !== void 0 ? hoverValue : value })
247
- };
248
- }
249
- if (customNavigationPropertyKey === 'nextBtnSecondaryColor') {
250
- var value = props[keyWithDevice];
251
- var hoverValue = props[keyWithHover];
252
- return {
253
- normalStyle: __assign(__assign({}, acc.normalStyle), { nextBtnSecondaryColor: value }),
254
- hoverStyle: __assign(__assign({}, acc.hoverStyle), { nextBtnSecondaryColor: hoverValue !== null && hoverValue !== void 0 ? hoverValue : value })
255
- };
256
- }
257
- return {
258
- normalStyle: __assign({}, acc.normalStyle),
259
- hoverStyle: __assign({}, acc.hoverStyle)
260
- };
261
- }, {
262
- normalStyle: {},
263
- hoverStyle: {}
264
- });
265
- }
266
- exports.parseCarouselStyleToCustomNavigationProp = parseCarouselStyleToCustomNavigationProp;
267
- function getCustomNavigationPropKey(key) {
268
- switch (key) {
269
- case "CB_STYLE_PROP_CONTENTSCAROUSEL_SPEC_PREVBTNSTYLE":
270
- case "CB_STYLE_PROP_CONTENTSCAROUSEL_SPEC_PREVBTNSTYLE:HOVER":
271
- case "CB_STYLE_PROP_CONTENTSCAROUSEL_SPEC_PREVBTNSTYLE:MOBILE":
272
- case "CB_STYLE_PROP_CONTENTSCAROUSEL_SPEC_PREVBTNSTYLE:MOBILE:HOVER":
273
- return 'prevBtnType';
274
- case "CB_STYLE_PROP_CONTENTSCAROUSEL_SPEC_PREVBTNLOCATION":
275
- case "CB_STYLE_PROP_CONTENTSCAROUSEL_SPEC_PREVBTNLOCATION:HOVER":
276
- case "CB_STYLE_PROP_CONTENTSCAROUSEL_SPEC_PREVBTNLOCATION:MOBILE":
277
- case "CB_STYLE_PROP_CONTENTSCAROUSEL_SPEC_PREVBTNLOCATION:MOBILE:HOVER":
278
- return 'prevBtnOffset';
279
- case "CB_STYLE_PROP_CONTENTSCAROUSEL_SPEC_PREVBTNSIZE":
280
- case "CB_STYLE_PROP_CONTENTSCAROUSEL_SPEC_PREVBTNSIZE:HOVER":
281
- case "CB_STYLE_PROP_CONTENTSCAROUSEL_SPEC_PREVBTNSIZE:MOBILE":
282
- case "CB_STYLE_PROP_CONTENTSCAROUSEL_SPEC_PREVBTNSIZE:MOBILE:HOVER":
283
- return 'prevBtnSize';
284
- case "CB_STYLE_PROP_CONTENTSCAROUSEL_SPEC_PREVBTNPRIMARYCOLOR":
285
- case "CB_STYLE_PROP_CONTENTSCAROUSEL_SPEC_PREVBTNPRIMARYCOLOR:HOVER":
286
- case "CB_STYLE_PROP_CONTENTSCAROUSEL_SPEC_PREVBTNPRIMARYCOLOR:MOBILE":
287
- case "CB_STYLE_PROP_CONTENTSCAROUSEL_SPEC_PREVBTNPRIMARYCOLOR:MOBILE:HOVER":
288
- return 'prevBtnPrimaryColor';
289
- case "CB_STYLE_PROP_CONTENTSCAROUSEL_SPEC_PREVBTNSECONDARYCOLOR":
290
- case "CB_STYLE_PROP_CONTENTSCAROUSEL_SPEC_PREVBTNSECONDARYCOLOR:HOVER":
291
- case "CB_STYLE_PROP_CONTENTSCAROUSEL_SPEC_PREVBTNSECONDARYCOLOR:MOBILE":
292
- case "CB_STYLE_PROP_CONTENTSCAROUSEL_SPEC_PREVBTNSECONDARYCOLOR:MOBILE:HOVER":
293
- return 'prevBtnSecondaryColor';
294
- case "CB_STYLE_PROP_CONTENTSCAROUSEL_SPEC_NEXTBTNSTYLE":
295
- case "CB_STYLE_PROP_CONTENTSCAROUSEL_SPEC_NEXTBTNSTYLE:HOVER":
296
- case "CB_STYLE_PROP_CONTENTSCAROUSEL_SPEC_NEXTBTNSTYLE:MOBILE":
297
- case "CB_STYLE_PROP_CONTENTSCAROUSEL_SPEC_NEXTBTNSTYLE:MOBILE:HOVER":
298
- return 'nextBtnType';
299
- case "CB_STYLE_PROP_CONTENTSCAROUSEL_SPEC_NEXTBTNLOCATION":
300
- case "CB_STYLE_PROP_CONTENTSCAROUSEL_SPEC_NEXTBTNLOCATION:HOVER":
301
- case "CB_STYLE_PROP_CONTENTSCAROUSEL_SPEC_NEXTBTNLOCATION:MOBILE":
302
- case "CB_STYLE_PROP_CONTENTSCAROUSEL_SPEC_NEXTBTNLOCATION:MOBILE:HOVER":
303
- return 'nextBtnOffset';
304
- case "CB_STYLE_PROP_CONTENTSCAROUSEL_SPEC_NEXTBTNSIZE":
305
- case "CB_STYLE_PROP_CONTENTSCAROUSEL_SPEC_NEXTBTNSIZE:HOVER":
306
- case "CB_STYLE_PROP_CONTENTSCAROUSEL_SPEC_NEXTBTNSIZE:MOBILE":
307
- case "CB_STYLE_PROP_CONTENTSCAROUSEL_SPEC_NEXTBTNSIZE:MOBILE:HOVER":
308
- return 'nextBtnSize';
309
- case "CB_STYLE_PROP_CONTENTSCAROUSEL_SPEC_NEXTBTNPRIMARYCOLOR":
310
- case "CB_STYLE_PROP_CONTENTSCAROUSEL_SPEC_NEXTBTNPRIMARYCOLOR:HOVER":
311
- case "CB_STYLE_PROP_CONTENTSCAROUSEL_SPEC_NEXTBTNPRIMARYCOLOR:MOBILE":
312
- case "CB_STYLE_PROP_CONTENTSCAROUSEL_SPEC_NEXTBTNPRIMARYCOLOR:MOBILE:HOVER":
313
- return 'nextBtnPrimaryColor';
314
- case "CB_STYLE_PROP_CONTENTSCAROUSEL_SPEC_NEXTBTNSECONDARYCOLOR":
315
- case "CB_STYLE_PROP_CONTENTSCAROUSEL_SPEC_NEXTBTNSECONDARYCOLOR:HOVER":
316
- case "CB_STYLE_PROP_CONTENTSCAROUSEL_SPEC_NEXTBTNSECONDARYCOLOR:MOBILE":
317
- case "CB_STYLE_PROP_CONTENTSCAROUSEL_SPEC_NEXTBTNSECONDARYCOLOR:MOBILE:HOVER":
318
- return 'nextBtnSecondaryColor';
319
- default:
320
- return '';
321
- }
322
- }
323
- exports.getCustomNavigationPropKey = getCustomNavigationPropKey;
324
- function getCustomNavigationOffset(value) {
325
- var OUTSET1 = {
326
- top: '0px',
327
- left: '0px',
328
- translateX: 0,
329
- translateY: -100,
330
- transformOrigin: 'top left'
331
- };
332
- switch (value) {
333
- case 'OUTSET1':
334
- return OUTSET1;
335
- case 'OUTSET2':
336
- return {
337
- top: '0px',
338
- left: '50%',
339
- translateX: -50,
340
- translateY: -100,
341
- transformOrigin: 'top left'
342
- };
343
- case 'OUTSET3':
344
- return {
345
- top: '0px',
346
- left: '100%',
347
- translateX: -100,
348
- translateY: -100,
349
- transformOrigin: 'top left'
350
- };
351
- case 'OUTSET4':
352
- return {
353
- top: '0px',
354
- left: '100%',
355
- translateX: 0,
356
- translateY: 0,
357
- transformOrigin: 'left top'
358
- };
359
- case 'OUTSET5':
360
- return {
361
- top: '50%',
362
- left: '100%',
363
- translateX: 0,
364
- translateY: -50,
365
- transformOrigin: 'left top'
366
- };
367
- case 'OUTSET6':
368
- return {
369
- top: '100%',
370
- left: '100%',
371
- translateX: 0,
372
- translateY: -100,
373
- transformOrigin: 'left top'
374
- };
375
- case 'OUTSET7':
376
- return {
377
- top: '100%',
378
- left: '100%',
379
- translateX: -100,
380
- translateY: 0,
381
- transformOrigin: 'top left'
382
- };
383
- case 'OUTSET8':
384
- return {
385
- top: '100%',
386
- left: '50%',
387
- translateX: -50,
388
- translateY: 0,
389
- transformOrigin: 'top left'
390
- };
391
- case 'OUTSET9':
392
- return {
393
- top: '100%',
394
- left: '0px',
395
- translateX: 0,
396
- translateY: 0,
397
- transformOrigin: 'top left'
398
- };
399
- case 'OUTSET10':
400
- return {
401
- top: '100%',
402
- left: '0px',
403
- translateX: -100,
404
- translateY: -100,
405
- transformOrigin: 'right top'
406
- };
407
- case 'OUTSET11':
408
- return {
409
- top: '50%',
410
- left: '0px',
411
- translateX: -100,
412
- translateY: -50,
413
- transformOrigin: 'right top'
414
- };
415
- case 'OUTSET12':
416
- return {
417
- top: '0px',
418
- left: '0px',
419
- translateX: -100,
420
- translateY: 0,
421
- transformOrigin: 'right top'
422
- };
423
- case 'INSET1':
424
- return { top: '0px', left: '0px', translateX: 0, translateY: 0, transformOrigin: 'left top' };
425
- case 'INSET2':
426
- return {
427
- top: '0px',
428
- left: '50%',
429
- translateX: -50,
430
- translateY: 0,
431
- transformOrigin: 'left top'
432
- };
433
- case 'INSET3':
434
- return {
435
- top: '0px',
436
- left: '100%',
437
- translateX: -100,
438
- translateY: 0,
439
- transformOrigin: 'left top'
440
- };
441
- case 'INSET4':
442
- return {
443
- top: '50%',
444
- left: '100%',
445
- translateX: -100,
446
- translateY: -50,
447
- transformOrigin: 'left top'
448
- };
449
- case 'INSET5':
450
- return {
451
- top: '100%',
452
- left: '100%',
453
- translateX: -100,
454
- translateY: -100,
455
- transformOrigin: 'left top'
456
- };
457
- case 'INSET6':
458
- return {
459
- top: '100%',
460
- left: '50%',
461
- translateX: -50,
462
- translateY: -100,
463
- transformOrigin: 'left top'
464
- };
465
- case 'INSET7':
466
- return {
467
- top: '100%',
468
- left: '0px',
469
- translateX: 0,
470
- translateY: -100,
471
- transformOrigin: 'top left'
472
- };
473
- case 'INSET8':
474
- return {
475
- top: '50%',
476
- left: '0px',
477
- translateX: 0,
478
- translateY: -50,
479
- transformOrigin: 'top left'
480
- };
481
- default:
482
- return OUTSET1;
483
- }
484
- }
485
- function getCustomNavigationSize(value) {
486
- switch (value) {
487
- case 'SMALL':
488
- return 1;
489
- case 'MEDIUM':
490
- return 1.5;
491
- case 'LARGE':
492
- return 2;
493
- default:
494
- return 1;
495
- }
496
- }
497
- function parseCarouselStyleToCustomProgressbarProp(_a) {
498
- var props = _a.props, device = _a.device;
499
- var availableSpecCodes = Object.keys(props).filter(function (key) { return !key.includes(':HOVER') && !key.includes(':MOBILE'); });
500
- return availableSpecCodes.reduce(function (acc, currentKey) {
501
- var keyWithDevice = device === 'DESKTOP' ? currentKey : "".concat(currentKey, ":MOBILE");
502
- var keyWithHover = "".concat(keyWithDevice.toString(), ":HOVER");
503
- var customProgressbarPropertyKey = getCustomProgressbarPropKey(currentKey);
504
- if (customProgressbarPropertyKey === 'type') {
505
- var value = props[keyWithDevice];
506
- var hoverValue = props[keyWithHover];
507
- return {
508
- normalStyle: __assign(__assign({}, acc.normalStyle), { type: value }),
509
- hoverStyle: __assign(__assign({}, acc.hoverStyle), { type: hoverValue !== null && hoverValue !== void 0 ? hoverValue : value })
510
- };
511
- }
512
- if (customProgressbarPropertyKey === 'size') {
513
- var value = props[keyWithDevice];
514
- var hoverValue = props[keyWithHover];
515
- var offset = getCustomProgressbarOffset('INSET5');
516
- return {
517
- normalStyle: __assign(__assign({}, acc.normalStyle), { size: getCustomProgressbarSize(value), offset: offset }),
518
- hoverStyle: __assign(__assign({}, acc.hoverStyle), { size: getCustomProgressbarSize(hoverValue !== null && hoverValue !== void 0 ? hoverValue : value), offset: offset })
519
- };
520
- }
521
- if (customProgressbarPropertyKey === 'primaryColor') {
522
- var value = props[keyWithDevice];
523
- var hoverValue = props[keyWithHover];
524
- return {
525
- normalStyle: __assign(__assign({}, acc.normalStyle), { primaryColor: value }),
526
- hoverStyle: __assign(__assign({}, acc.hoverStyle), { primaryColor: hoverValue !== null && hoverValue !== void 0 ? hoverValue : value })
527
- };
528
- }
529
- if (customProgressbarPropertyKey === 'secondaryColor') {
530
- var value = props[keyWithDevice];
531
- var hoverValue = props[keyWithHover];
532
- return {
533
- normalStyle: __assign(__assign({}, acc.normalStyle), { secondaryColor: value }),
534
- hoverStyle: __assign(__assign({}, acc.hoverStyle), { secondaryColor: hoverValue !== null && hoverValue !== void 0 ? hoverValue : value })
535
- };
536
- }
537
- return {
538
- normalStyle: __assign({}, acc.normalStyle),
539
- hoverStyle: __assign({}, acc.hoverStyle)
540
- };
541
- }, {
542
- normalStyle: {},
543
- hoverStyle: {}
544
- });
545
- }
546
- exports.parseCarouselStyleToCustomProgressbarProp = parseCarouselStyleToCustomProgressbarProp;
547
- function getCustomProgressbarPropKey(key) {
548
- switch (key) {
549
- case "CB_STYLE_PROP_CONTENTSCAROUSEL_SPEC_PROGRESSBAR":
550
- case "CB_STYLE_PROP_CONTENTSCAROUSEL_SPEC_PROGRESSBAR:HOVER":
551
- case "CB_STYLE_PROP_CONTENTSCAROUSEL_SPEC_PROGRESSBAR:MOBILE":
552
- case "CB_STYLE_PROP_CONTENTSCAROUSEL_SPEC_PROGRESSBAR:MOBILE:HOVER":
553
- return 'type';
554
- case "CB_STYLE_PROP_CONTENTSCAROUSEL_SPEC_PROGRESSBARSIZE":
555
- case "CB_STYLE_PROP_CONTENTSCAROUSEL_SPEC_PROGRESSBARSIZE:HOVER":
556
- case "CB_STYLE_PROP_CONTENTSCAROUSEL_SPEC_PROGRESSBARSIZE:MOBILE":
557
- case "CB_STYLE_PROP_CONTENTSCAROUSEL_SPEC_PROGRESSBARSIZE:MOBILE:HOVER":
558
- return 'size';
559
- case "CB_STYLE_PROP_CONTENTSCAROUSEL_SPEC_PROGRESSBARPRIMARYCOLOR":
560
- case "CB_STYLE_PROP_CONTENTSCAROUSEL_SPEC_PROGRESSBARPRIMARYCOLOR:HOVER":
561
- case "CB_STYLE_PROP_CONTENTSCAROUSEL_SPEC_PROGRESSBARPRIMARYCOLOR:MOBILE":
562
- case "CB_STYLE_PROP_CONTENTSCAROUSEL_SPEC_PROGRESSBARPRIMARYCOLOR:MOBILE:HOVER":
563
- return 'primaryColor';
564
- case "CB_STYLE_PROP_CONTENTSCAROUSEL_SPEC_PROGRESSBARSECONDARYCOLOR":
565
- case "CB_STYLE_PROP_CONTENTSCAROUSEL_SPEC_PROGRESSBARSECONDARYCOLOR:HOVER":
566
- case "CB_STYLE_PROP_CONTENTSCAROUSEL_SPEC_PROGRESSBARSECONDARYCOLOR:MOBILE":
567
- case "CB_STYLE_PROP_CONTENTSCAROUSEL_SPEC_PROGRESSBARSECONDARYCOLOR:MOBILE:HOVER":
568
- return 'secondaryColor';
569
- default:
570
- return '';
571
- }
572
- }
573
- exports.getCustomProgressbarPropKey = getCustomProgressbarPropKey;
574
- function getCustomProgressbarOffset(value) {
575
- var OUTSET1 = {
576
- top: '0px',
577
- left: '0px',
578
- translateX: 0,
579
- translateY: -100,
580
- transformOrigin: 'top left'
581
- };
582
- switch (value) {
583
- case 'OUTSET1':
584
- return OUTSET1;
585
- case 'OUTSET2':
586
- return {
587
- top: '0px',
588
- left: '50%',
589
- translateX: -50,
590
- translateY: -100,
591
- transformOrigin: 'top left'
592
- };
593
- case 'OUTSET3':
594
- return {
595
- top: '0px',
596
- right: '0px',
597
- translateX: 0,
598
- translateY: -100,
599
- transformOrigin: 'top right'
600
- };
601
- case 'OUTSET4':
602
- return {
603
- top: '0px',
604
- left: '100%',
605
- translateX: 0,
606
- translateY: 0,
607
- transformOrigin: 'left top'
608
- };
609
- case 'OUTSET5':
610
- return {
611
- top: '50%',
612
- left: '100%',
613
- translateX: 0,
614
- translateY: -50,
615
- transformOrigin: 'left top'
616
- };
617
- case 'OUTSET6':
618
- return {
619
- top: '100%',
620
- left: '100%',
621
- translateX: 0,
622
- translateY: -100,
623
- transformOrigin: 'left top'
624
- };
625
- case 'OUTSET7':
626
- return {
627
- top: '100%',
628
- left: '100%',
629
- translateX: -100,
630
- translateY: 0,
631
- transformOrigin: 'top left'
632
- };
633
- case 'OUTSET8':
634
- return {
635
- top: '100%',
636
- left: '50%',
637
- translateX: -50,
638
- translateY: 0,
639
- transformOrigin: 'top left'
640
- };
641
- case 'OUTSET9':
642
- return {
643
- top: '100%',
644
- left: '0px',
645
- translateX: 0,
646
- translateY: 0,
647
- transformOrigin: 'top left'
648
- };
649
- case 'OUTSET10':
650
- return {
651
- top: '100%',
652
- left: '0px',
653
- translateX: -100,
654
- translateY: -100,
655
- transformOrigin: 'right top'
656
- };
657
- case 'OUTSET11':
658
- return {
659
- top: '50%',
660
- left: '0px',
661
- translateX: -100,
662
- translateY: -50,
663
- transformOrigin: 'right top'
664
- };
665
- case 'OUTSET12':
666
- return {
667
- top: '0px',
668
- left: '0px',
669
- translateX: -100,
670
- translateY: 0,
671
- transformOrigin: 'right top'
672
- };
673
- case 'INSET1':
674
- return { top: '0px', left: '0px', translateX: 0, translateY: 0, transformOrigin: 'left top' };
675
- case 'INSET2':
676
- return {
677
- top: '0px',
678
- left: '50%',
679
- translateX: -50,
680
- translateY: 0,
681
- transformOrigin: 'left top'
682
- };
683
- case 'INSET3':
684
- return {
685
- top: '0px',
686
- left: '100%',
687
- translateX: -100,
688
- translateY: 0,
689
- transformOrigin: 'left top'
690
- };
691
- case 'INSET4':
692
- return {
693
- top: '50%',
694
- left: '100%',
695
- translateX: -100,
696
- translateY: -50,
697
- transformOrigin: 'left top'
698
- };
699
- case 'INSET5':
700
- return {
701
- top: '100%',
702
- left: '100%',
703
- translateX: -100,
704
- translateY: -100,
705
- transformOrigin: 'left top'
706
- };
707
- case 'INSET6':
708
- return {
709
- top: '100%',
710
- left: '50%',
711
- translateX: -50,
712
- translateY: -100,
713
- transformOrigin: 'left top'
714
- };
715
- case 'INSET7':
716
- return {
717
- top: '100%',
718
- left: '0px',
719
- translateX: 0,
720
- translateY: -100,
721
- transformOrigin: 'top left'
722
- };
723
- case 'INSET8':
724
- return {
725
- top: '50%',
726
- left: '0px',
727
- translateX: 0,
728
- translateY: -50,
729
- transformOrigin: 'top left'
730
- };
731
- default:
732
- return OUTSET1;
733
- }
734
- }
735
- function getCustomProgressbarSize(value) {
736
- switch (value) {
737
- case 'SMALL':
738
- return 1;
739
- case 'MEDIUM':
740
- return 1.5;
741
- case 'LARGE':
742
- return 2;
743
- default:
744
- return 1;
745
- }
746
- }
747
- var templateObject_1, templateObject_2, templateObject_3;