pds-dev-kit-web-test 2.5.323 → 2.5.325

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