pds-dev-kit-web-test 2.7.245 → 2.7.247

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 (60) hide show
  1. package/dist/src/sub/DynamicLayout/CompositionEditor/CompositionEditor.js +6 -5
  2. package/dist/src/sub/DynamicLayout/CompositionRenderer/Composition.js +17 -14
  3. package/dist/src/sub/DynamicLayout/CompositionRenderer/FlexGridItemForCCB.d.ts +5 -2
  4. package/dist/src/sub/DynamicLayout/CompositionRenderer/FlexGridItemForCCB.js +10 -11
  5. package/dist/src/sub/DynamicLayout/GridAutoRowEditor/GridAutoRowEditorForComposition.d.ts +9 -0
  6. package/dist/src/sub/DynamicLayout/GridAutoRowEditor/GridAutoRowEditorForComposition.js +250 -0
  7. package/dist/src/sub/DynamicLayout/GridAutoRowEditor/{GridAutoRowEditor.js → GridAutoRowEditorForDL.js} +2 -6
  8. package/dist/src/sub/DynamicLayout/mock.json +5 -3
  9. package/dist/src/sub/DynamicLayout/mock_componentBlocks.d.ts +16 -134
  10. package/dist/src/sub/DynamicLayout/mock_componentBlocks.js +91 -3
  11. package/dist/src/sub/DynamicLayout/mock_contentsCarousel.js +6389 -6376
  12. package/dist/src/sub/DynamicLayout/mock_contentsList.js +5 -3
  13. package/dist/src/sub/DynamicLayout/mock_slideBanner.js +2 -2
  14. package/dist/src/sub/DynamicLayout/mocks.d.ts +1 -3596
  15. package/dist/src/sub/DynamicLayout/mocks.js +15 -8
  16. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/Button/Button.js +32 -8
  17. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsCarousel/ContentsCarousel.d.ts +1 -0
  18. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsCarousel/ContentsCarousel.js +61 -34
  19. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsCarousel/ContentsCarouselCore.js +2 -1
  20. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsCarousel/components/CustomNavigationNextBtn.d.ts +2 -1
  21. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsCarousel/components/CustomNavigationNextBtn.js +4 -4
  22. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsCarousel/components/CustomNavigationPrevBtn.d.ts +2 -1
  23. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsCarousel/components/CustomNavigationPrevBtn.js +2 -2
  24. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsCarousel/components/CustomProgressbar.d.ts +2 -1
  25. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsCarousel/components/CustomProgressbar.js +15 -12
  26. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsCarousel/hooks/elementPositions.d.ts +5 -0
  27. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsCarousel/hooks/elementPositions.js +243 -0
  28. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsCarousel/hooks/useFlexGridLayout.d.ts +1 -1
  29. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsCarousel/hooks/useFlexGridLayout.js +26 -43
  30. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsCarousel/hooks/useSwiper.d.ts +1 -1
  31. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsCarousel/hooks/useSwiper.js +1 -1
  32. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsList/ContentsList.d.ts +1 -0
  33. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsList/ContentsList.js +44 -18
  34. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsList/components/CustomPagination.d.ts +2 -1
  35. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsList/components/CustomPagination.js +3 -3
  36. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsList/contentsListUtils.d.ts +2 -1
  37. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsList/contentsListUtils.js +18 -7
  38. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsList/hooks/elementPositions.d.ts +4 -0
  39. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsList/hooks/elementPositions.js +108 -0
  40. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsList/hooks/useFlexGridLayout.d.ts +1 -2
  41. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsList/hooks/useFlexGridLayout.js +26 -45
  42. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsList/types.d.ts +1 -1
  43. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/SlideBanner/SlideBanner.js +49 -25
  44. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/SlideBanner/components/CustomNavigationNextBtn.js +2 -2
  45. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/SlideBanner/components/CustomNavigationPrevBtn.js +4 -4
  46. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/SlideBanner/components/CustomPagination.js +2 -2
  47. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/SlideBanner/components/CustomProgressbar.d.ts +2 -1
  48. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/SlideBanner/components/CustomProgressbar.js +13 -11
  49. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/SlideBanner/hooks/elementPositions.d.ts +1 -1
  50. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/SlideBanner/hooks/elementPositions.js +118 -151
  51. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/SlideBanner/hooks/useFlexGridLayout.js +10 -36
  52. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/SlideBanner/hooks/useSwiper.d.ts +1 -1
  53. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/SlideBanner/hooks/useSwiper.js +1 -1
  54. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/Text/Text.js +21 -8
  55. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/types.d.ts +8 -3
  56. package/dist/src/sub/DynamicLayout/sections/CustomSection/util/parsePlacement.d.ts +1 -1
  57. package/dist/src/sub/DynamicLayout/sections/CustomSection/util/parsePlacement.js +2 -2
  58. package/dist/src/sub/DynamicLayout/sections/CustomSection/util/types.d.ts +3 -1
  59. package/package.json +1 -2
  60. /package/dist/src/sub/DynamicLayout/GridAutoRowEditor/{GridAutoRowEditor.d.ts → GridAutoRowEditorForDL.d.ts} +0 -0
@@ -0,0 +1,108 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.POS_INSET = exports.getPosition = void 0;
4
+ var GAP = 8;
5
+ function getPosition(position, designType, size, elementType) {
6
+ if (position.startsWith('OUTSET')) {
7
+ if (elementType === 'GROUP') {
8
+ return POS_OUTSET_GROUP[position];
9
+ }
10
+ var val = POS_OUTSET_PAGINATION[position];
11
+ return val;
12
+ }
13
+ if (elementType === 'GROUP') {
14
+ return exports.POS_INSET[position];
15
+ }
16
+ return {};
17
+ }
18
+ exports.getPosition = getPosition;
19
+ exports.POS_INSET = {
20
+ INSET1: { top: GAP, left: GAP },
21
+ INSET2: { top: GAP, left: '50%', transform: 'translateX(-50%)' },
22
+ INSET3: { top: GAP, right: GAP },
23
+ INSET4: { top: '50%', right: GAP, transform: 'translateY(-50%)' },
24
+ INSET5: { bottom: GAP, right: GAP },
25
+ INSET6: { bottom: GAP, left: '50%', transform: 'translateX(-50%)' },
26
+ INSET7: { left: GAP, bottom: GAP },
27
+ INSET8: { top: '50%', left: GAP, transform: 'translateY(-50%)' }
28
+ };
29
+ var POS_OUTSET_PAGINATION = {
30
+ OUTSET1: { bottom: 15 },
31
+ OUTSET2: { bottom: 15 },
32
+ OUTSET3: { bottom: 15 },
33
+ OUTSET4: { left: 15 },
34
+ OUTSET5: { left: 15 },
35
+ OUTSET6: { left: 15 },
36
+ OUTSET7: { top: 15 },
37
+ OUTSET8: { top: 15 },
38
+ OUTSET9: { top: 15 },
39
+ OUTSET10: { right: 15 },
40
+ OUTSET11: { right: 15 },
41
+ OUTSET12: { right: 15 }
42
+ };
43
+ var POS_OUTSET_GROUP = {
44
+ OUTSET1: {
45
+ top: 0,
46
+ height: 0
47
+ },
48
+ OUTSET2: {
49
+ bottom: '100%',
50
+ height: 0,
51
+ left: '50%',
52
+ transform: 'translateX(-50%)'
53
+ },
54
+ OUTSET3: {
55
+ bottom: '100%',
56
+ height: 0,
57
+ right: 0,
58
+ justifyContent: 'flex-start'
59
+ },
60
+ OUTSET4: {
61
+ top: 0,
62
+ width: 0,
63
+ right: 0
64
+ },
65
+ OUTSET5: {
66
+ top: '50%',
67
+ width: 0,
68
+ right: 0,
69
+ transform: 'translateY(-50%)'
70
+ },
71
+ OUTSET6: {
72
+ bottom: 0,
73
+ width: 0,
74
+ right: 0
75
+ },
76
+ OUTSET7: {
77
+ bottom: 0,
78
+ height: 0,
79
+ right: 0
80
+ },
81
+ OUTSET8: {
82
+ bottom: 0,
83
+ height: 0,
84
+ left: '50%',
85
+ transform: 'translateX(-50%)'
86
+ },
87
+ OUTSET9: {
88
+ bottom: 0,
89
+ height: 0,
90
+ left: 0
91
+ },
92
+ OUTSET10: {
93
+ bottom: 0,
94
+ width: 0,
95
+ left: 0
96
+ },
97
+ OUTSET11: {
98
+ top: '50%',
99
+ width: 0,
100
+ left: 0,
101
+ transform: 'translateY(-50%)'
102
+ },
103
+ OUTSET12: {
104
+ top: 0,
105
+ width: 0,
106
+ left: 0
107
+ }
108
+ };
@@ -1,6 +1,5 @@
1
1
  /// <reference types="react" />
2
2
  import type { ContentsListElementsProps } from '../ContentsList';
3
- import type { CB_STYLE_PROP_CONTENTSLIST_SPEC_PAGINATIONSTYLE_TYPE } from '../types';
4
3
  import type { CSSProperties } from 'styled-components';
5
4
  export declare const useFlexGridLayout: ({ components }: {
6
5
  components: ContentsListElementsProps[];
@@ -14,6 +13,6 @@ export declare const useFlexGridLayout: ({ components }: {
14
13
  left: string;
15
14
  };
16
15
  componentGroups: Record<string, ContentsListElementsProps[]>;
17
- getPositionStyle: (position: string, ccbInset: Record<string, string>, designType: CB_STYLE_PROP_CONTENTSLIST_SPEC_PAGINATIONSTYLE_TYPE) => CSSProperties;
16
+ getPositionStyle: (position: string, ccbInset: Record<string, string>, designType: string, size: 'LARGE' | 'MEDIUM' | 'SMALL' | 'GROUP', elementType: string) => CSSProperties;
18
17
  getComponentGroupLayout: (components: ContentsListElementsProps[], position: string) => CSSProperties;
19
18
  };
@@ -13,13 +13,13 @@ var __assign = (this && this.__assign) || function () {
13
13
  Object.defineProperty(exports, "__esModule", { value: true });
14
14
  exports.useFlexGridLayout = void 0;
15
15
  var react_1 = require("react");
16
+ var elementPositions_1 = require("./elementPositions");
16
17
  var useFlexGridLayout = function (_a) {
17
18
  var components = _a.components;
18
19
  var _b = (0, react_1.useState)({ top: 0, right: 0, bottom: 0, left: 0 }), groupSizes = _b[0], setGroupSizes = _b[1];
19
20
  var _c = (0, react_1.useState)({ width: 0, height: 0 }), layoutSize = _c[0], setLayoutSize = _c[1];
20
21
  var layoutRef = (0, react_1.useRef)(null);
21
22
  var positionRefs = (0, react_1.useRef)({});
22
- console.log('useFlexGridLayout components:', components);
23
23
  // 위치별로 컴포넌트 그룹화
24
24
  var getComponentsByPosition = function () {
25
25
  var groups = {};
@@ -60,51 +60,33 @@ var useFlexGridLayout = function (_a) {
60
60
  };
61
61
  return directions[position];
62
62
  };
63
- // 위치에 따른 스타일 결정 (CCB 크기를 고려)
64
- var getPositionStyle = function (position, ccbInset, designType) {
63
+ var getPositionStyle = function (position, ccbInset, designType, size, elementType) {
64
+ var EAST = ['OUTSET4', 'OUTSET5', 'OUTSET6'];
65
+ var WEST = ['OUTSET10', 'OUTSET11', 'OUTSET12'];
66
+ var SOUTH = ['OUTSET7', 'OUTSET8', 'OUTSET9'];
67
+ var NORTH = ['OUTSET1', 'OUTSET2', 'OUTSET3'];
68
+ var isEAST = EAST.includes(position);
69
+ var isWEST = WEST.includes(position);
70
+ var isSOUTH = SOUTH.includes(position);
71
+ var isNORTH = NORTH.includes(position);
65
72
  var base = {
66
- position: 'absolute',
73
+ position: 'relative',
67
74
  display: 'flex',
68
- alignItems: 'center',
69
- justifyContent: 'center'
75
+ alignItems: isSOUTH ? 'flex-start' : isNORTH ? 'flex-end' : 'center',
76
+ justifyContent: isEAST ? 'flex-start' : isWEST ? 'flex-end' : 'center'
70
77
  };
71
- // CCB의 중앙 위치 계산
72
- var ccbTop = parseFloat(ccbInset.top) || 0;
73
- var ccbRight = parseFloat(ccbInset.right) || 0;
74
- var ccbBottom = parseFloat(ccbInset.bottom) || 0;
75
- var ccbLeft = parseFloat(ccbInset.left) || 0;
76
- // CCB의 실제 크기와 중앙 위치 계산
77
- var ccbWidth = layoutSize.width - ccbLeft - ccbRight;
78
- var ccbHeight = layoutSize.height - ccbTop - ccbBottom;
79
- var ccbCenterX = ccbLeft + ccbWidth / 2;
80
- var ccbCenterY = ccbTop + ccbHeight / 2;
81
- var positions = {
82
- OUTSET1: { top: -50, left: ccbLeft },
83
- OUTSET2: { top: -50, left: "".concat(ccbCenterX, "px"), transform: 'translateX(-50%)' },
84
- OUTSET3: { top: -50, right: ccbRight },
85
- OUTSET4: { top: ccbTop, right: -50 },
86
- OUTSET5: { top: "".concat(ccbCenterY, "px"), right: -50, transform: 'translateY(-50%)' },
87
- OUTSET6: { bottom: ccbBottom, right: -50 },
88
- OUTSET7: { bottom: -50, right: ccbRight },
89
- OUTSET8: { bottom: -50, left: "".concat(ccbCenterX, "px"), transform: 'translateX(-50%)' },
90
- OUTSET9: { bottom: -50, left: ccbLeft },
91
- OUTSET10: { bottom: ccbBottom, left: -50 },
92
- OUTSET11: { top: "".concat(ccbCenterY, "px"), left: -50, transform: 'translateY(-50%)' },
93
- OUTSET12: { top: ccbTop, left: -50 },
94
- INSET1: { top: ccbTop + GAP, left: ccbLeft + GAP },
95
- INSET2: { top: ccbTop + GAP, left: "".concat(ccbCenterX, "px"), transform: 'translateX(-50%)' },
96
- INSET3: { top: ccbTop + GAP, right: ccbRight + GAP },
97
- INSET4: { top: "".concat(ccbCenterY, "px"), right: ccbRight + GAP, transform: 'translateY(-50%)' },
98
- INSET5: { bottom: ccbBottom + GAP, right: ccbRight + GAP },
99
- INSET6: {
100
- bottom: ccbBottom + GAP,
101
- left: "".concat(ccbCenterX, "px"),
102
- transform: 'translateX(-50%)'
103
- },
104
- INSET7: { bottom: ccbBottom + GAP, left: ccbLeft + GAP },
105
- INSET8: { top: "".concat(ccbCenterY, "px"), left: ccbLeft + GAP, transform: 'translateY(-50%)' }
106
- };
107
- return __assign(__assign({}, base), positions[position]);
78
+ // // CCB의 중앙 위치 계산
79
+ // const ccbTop = parseFloat(ccbInset.top) || 0;
80
+ // const ccbRight = parseFloat(ccbInset.right) || 0;
81
+ // const ccbBottom = parseFloat(ccbInset.bottom) || 0;
82
+ // const ccbLeft = parseFloat(ccbInset.left) || 0;
83
+ // // CCB의 실제 크기와 중앙 위치 계산
84
+ // const ccbWidth = layoutSize.width - ccbLeft - ccbRight;
85
+ // const ccbHeight = layoutSize.height - ccbTop - ccbBottom;
86
+ // const ccbCenterX = ccbLeft + ccbWidth / 2;
87
+ // const ccbCenterY = ccbTop + ccbHeight / 2;
88
+ var pos = (0, elementPositions_1.getPosition)(position, designType, size, elementType);
89
+ return __assign(__assign({}, base), pos);
108
90
  };
109
91
  // 컴포넌트 그룹 레이아웃
110
92
  var getComponentGroupLayout = function (components, position) {
@@ -130,8 +112,7 @@ var useFlexGridLayout = function (_a) {
130
112
  return {
131
113
  display: 'flex',
132
114
  flexDirection: isHorizontal ? 'row' : 'column',
133
- gap: '8px',
134
- alignItems: 'center'
115
+ gap: '8px'
135
116
  };
136
117
  };
137
118
  // ccbInset 계산
@@ -7,7 +7,7 @@ export type CB_STYLE_PROP_CONTENTSLIST_SPEC_ITEMSPACING_TYPE = 'WIDE' | 'NORMAL'
7
7
  export type CB_STYLE_PROP_CONTENTSLIST_SPEC_ITEMLINEHEIGHT_TYPE = NUMBER_INTEGER | null;
8
8
  export type CB_STYLE_PROP_CONTENTSLIST_SPEC_ITEMHEIGHTFITCONTENT_TYPE = boolean | null;
9
9
  export type CB_STYLE_PROP_CONTENTSLIST_SPEC_INFINITESCROLL_TYPE = boolean | null;
10
- export type CB_STYLE_PROP_CONTENTSLIST_SPEC_PAGINATIONSTYLE_TYPE = 'NONE' | 'DESIGN1' | 'DESIGN2' | 'DESIGN3' | 'DESIGN4' | 'DESIGN5' | 'DESIGN6' | 'DESIGN7' | 'DESIGN8' | 'DESIGN9' | 'DESIGN10' | 'DESIGN11' | 'DESIGN12' | 'DESIGN13' | 'DESIGN14' | 'DESIGN15' | 'DESIGN16' | 'DESIGN17' | null;
10
+ export type CB_STYLE_PROP_CONTENTSLIST_SPEC_PAGINATIONSTYLE_TYPE = 'NONE' | 'DESIGN1' | 'DESIGN2' | 'DESIGN3' | 'DESIGN4' | 'DESIGN5' | 'DESIGN6' | 'DESIGN7' | 'DESIGN8' | 'DESIGN9' | 'DESIGN10' | 'DESIGN11' | 'DESIGN12' | 'DESIGN13' | 'DESIGN14' | 'DESIGN15' | 'DESIGN16' | 'DESIGN17';
11
11
  export type CB_STYLE_PROP_CONTENTSLIST_SPEC_PAGINATIONLOCATION_TYPE = OUTSET_POSTIION | INSET_POSTIION;
12
12
  export type CB_STYLE_PROP_CONTENTSLIST_SPEC_PAGINATIONSIZE_TYPE = 'SMALL' | 'MEDIUM' | 'LARGE' | null;
13
13
  export type CB_STYLE_PROP_CONTENTSLIST_SPEC_PAGINATIONPRIMARYCOLOR = string;
@@ -29,6 +29,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
29
29
  Object.defineProperty(exports, "__esModule", { value: true });
30
30
  var jsx_runtime_1 = require("react/jsx-runtime");
31
31
  var react_1 = require("react");
32
+ var react_i18next_1 = require("react-i18next");
32
33
  var CustomSectionBackgroundMedia_1 = require("../../../../../../../DynamicLayout/components/Section/components/CustomSectionBackgroundMedia");
33
34
  var createCompositions_1 = require("../../../../../../../DynamicLayout/CompositionRenderer/createCompositions");
34
35
  var dynamicLayoutContext_1 = require("../../../../../../../DynamicLayout/dynamicLayoutContext");
@@ -66,29 +67,33 @@ var createComponent = function (type, getDesignType, getLocation, designType, si
66
67
  };
67
68
  };
68
69
  function SlideBanner(props) {
69
- var _a = (0, react_1.useContext)(dynamicLayoutContext_1.dynamicLayoutContext), device = _a.device, mode = _a.mode, queryData = _a.queryData;
70
- var index = props.index, _b = props.CB_CONTENT_PROP_SLIDEBANNER, CB_CONTENT_PROP_SLIDEBANNER_SPEC_ITEMCOUNTS = _b.CB_CONTENT_PROP_SLIDEBANNER_SPEC_ITEMCOUNTS, CB_CONTENT_PROP_SLIDEBANNER_SPEC_VALUETYPE = _b.CB_CONTENT_PROP_SLIDEBANNER_SPEC_VALUETYPE, CB_CONTENT_PROP_SLIDEBANNER_SPEC_CONNECTDATA = _b.CB_CONTENT_PROP_SLIDEBANNER_SPEC_CONNECTDATA, CB_CONTENT_PROP_SLIDEBANNER_SPEC_MANUALITEMS = _b.CB_CONTENT_PROP_SLIDEBANNER_SPEC_MANUALITEMS, CB_STYLE_PROP_SLIDEBANNERDESIGN = props.CB_STYLE_PROP_SLIDEBANNERDESIGN, CB_STYLE_PROP_SLIDEBANNERPAGINATION = props.CB_STYLE_PROP_SLIDEBANNERPAGINATION, CB_STYLE_PROP_SLIDEBANNERBUTTON = props.CB_STYLE_PROP_SLIDEBANNERBUTTON, CB_STYLE_PROP_SLIDEBANNERPLAYBACKMETHOD = props.CB_STYLE_PROP_SLIDEBANNERPLAYBACKMETHOD, CB_STYLE_PROP_SLIDEBANNERPROGRESSBAR = props.CB_STYLE_PROP_SLIDEBANNERPROGRESSBAR, CB_STYLE_PROP_SHADOW = props.CB_STYLE_PROP_SHADOW, CB_EFFECT_PROP_ENTANIM = props.CB_EFFECT_PROP_ENTANIM, CB_STYLE_PROP_BGMEDIA = props.CB_STYLE_PROP_BGMEDIA, CB_EFFECT_PROP_SLIDEBANNER_SPEC_TRANSITIONTYPE = props.CB_EFFECT_PROP_SLIDEBANNER.CB_EFFECT_PROP_SLIDEBANNER_SPEC_TRANSITIONTYPE;
70
+ var _a;
71
+ var _b = (0, react_1.useContext)(dynamicLayoutContext_1.dynamicLayoutContext), device = _b.device, mode = _b.mode, queryData = _b.queryData;
72
+ var index = props.index, _c = props.CB_CONTENT_PROP_SLIDEBANNER, CB_CONTENT_PROP_SLIDEBANNER_SPEC_ITEMCOUNTS = _c.CB_CONTENT_PROP_SLIDEBANNER_SPEC_ITEMCOUNTS, CB_CONTENT_PROP_SLIDEBANNER_SPEC_VALUETYPE = _c.CB_CONTENT_PROP_SLIDEBANNER_SPEC_VALUETYPE, CB_CONTENT_PROP_SLIDEBANNER_SPEC_CONNECTDATA = _c.CB_CONTENT_PROP_SLIDEBANNER_SPEC_CONNECTDATA, CB_CONTENT_PROP_SLIDEBANNER_SPEC_MANUALITEMS = _c.CB_CONTENT_PROP_SLIDEBANNER_SPEC_MANUALITEMS, CB_STYLE_PROP_SLIDEBANNERDESIGN = props.CB_STYLE_PROP_SLIDEBANNERDESIGN, CB_STYLE_PROP_SLIDEBANNERPAGINATION = props.CB_STYLE_PROP_SLIDEBANNERPAGINATION, CB_STYLE_PROP_SLIDEBANNERBUTTON = props.CB_STYLE_PROP_SLIDEBANNERBUTTON, CB_STYLE_PROP_SLIDEBANNERPLAYBACKMETHOD = props.CB_STYLE_PROP_SLIDEBANNERPLAYBACKMETHOD, CB_STYLE_PROP_SLIDEBANNERPROGRESSBAR = props.CB_STYLE_PROP_SLIDEBANNERPROGRESSBAR, CB_STYLE_PROP_SHADOW = props.CB_STYLE_PROP_SHADOW, CB_EFFECT_PROP_ENTANIM = props.CB_EFFECT_PROP_ENTANIM, CB_STYLE_PROP_BGMEDIA = props.CB_STYLE_PROP_BGMEDIA, CB_EFFECT_PROP_SLIDEBANNER_SPEC_TRANSITIONTYPE = props.CB_EFFECT_PROP_SLIDEBANNER.CB_EFFECT_PROP_SLIDEBANNER_SPEC_TRANSITIONTYPE;
71
73
  var compositions = props.compositions;
72
74
  var CB_STYLE_PROP_SLIDEBANNER = __assign(__assign(__assign(__assign(__assign({}, CB_STYLE_PROP_SLIDEBANNERDESIGN), CB_STYLE_PROP_SLIDEBANNERPAGINATION), CB_STYLE_PROP_SLIDEBANNERBUTTON), CB_STYLE_PROP_SLIDEBANNERPLAYBACKMETHOD), CB_STYLE_PROP_SLIDEBANNERPROGRESSBAR);
73
- var _c = (0, util_1.parseProperties)(props, device), style = _c.style, hoverStyle = _c.hoverStyle, layout = _c.layout, overlayStyle = _c.overlayStyle, effect = _c.effect;
74
- var _d = (0, slideBannerUtils_1.parseSlideBannerStyleToSlideBannerCoreProp)({
75
+ var autoPlayEnabled = device === 'DESKTOP'
76
+ ? CB_STYLE_PROP_SLIDEBANNERPLAYBACKMETHOD.CB_STYLE_PROP_SLIDEBANNERPLAYBACKMETHOD_SPEC_AUTOPLAYUSE
77
+ : (_a = CB_STYLE_PROP_SLIDEBANNERPLAYBACKMETHOD['CB_STYLE_PROP_SLIDEBANNERPLAYBACKMETHOD_SPEC_AUTOPLAYUSE:MOBILE']) !== null && _a !== void 0 ? _a : CB_STYLE_PROP_SLIDEBANNERPLAYBACKMETHOD.CB_STYLE_PROP_SLIDEBANNERPLAYBACKMETHOD_SPEC_AUTOPLAYUSE;
78
+ var _d = (0, util_1.parseProperties)(props, device), style = _d.style, hoverStyle = _d.hoverStyle, layout = _d.layout, overlayStyle = _d.overlayStyle, effect = _d.effect;
79
+ var _e = (0, slideBannerUtils_1.parseSlideBannerStyleToSlideBannerCoreProp)({
75
80
  props: CB_STYLE_PROP_SLIDEBANNER,
76
81
  device: device
77
- }), slideBannerNormalStyle = _d.normalStyle, slideBannerHoverStyle = _d.hoverStyle;
78
- var _e = (0, slideBannerUtils_1.parseSlideBannerStyleToCustomPaginationProp)({
82
+ }), slideBannerNormalStyle = _e.normalStyle, slideBannerHoverStyle = _e.hoverStyle;
83
+ var _f = (0, slideBannerUtils_1.parseSlideBannerStyleToCustomPaginationProp)({
79
84
  props: CB_STYLE_PROP_SLIDEBANNER,
80
85
  device: device
81
- }), customPaginationNormalStyle = _e.normalStyle, customPaginationHoverStyle = _e.hoverStyle;
82
- var _f = (0, slideBannerUtils_1.parseSlideBannerStyleToCustomNavigationProp)({
86
+ }), customPaginationNormalStyle = _f.normalStyle, customPaginationHoverStyle = _f.hoverStyle;
87
+ var _g = (0, slideBannerUtils_1.parseSlideBannerStyleToCustomNavigationProp)({
83
88
  props: CB_STYLE_PROP_SLIDEBANNER,
84
89
  device: device
85
- }), customNavigationNormalStyle = _f.normalStyle, customNavigationHoverStyle = _f.hoverStyle;
86
- var _g = (0, slideBannerUtils_1.parseSlideBannerStyleToCustomProgressbarProp)({
90
+ }), customNavigationNormalStyle = _g.normalStyle, customNavigationHoverStyle = _g.hoverStyle;
91
+ var _h = (0, slideBannerUtils_1.parseSlideBannerStyleToCustomProgressbarProp)({
87
92
  props: CB_STYLE_PROP_SLIDEBANNER,
88
93
  device: device
89
- }), customProgressbarNormalStyle = _g.normalStyle, customProgressbarHoverStyle = _g.hoverStyle;
90
- var _h = (0, useSwiper_1.useSwiper)(), swiperRef = _h.swiperRef, progressRef = _h.progressRef, leftTimeMsRef = _h.leftTimeMsRef, currentSlide = _h.currentSlide, isBeginning = _h.isBeginning, isEnd = _h.isEnd, onSwiper = _h.onSwiper, onSlideChangeTransitionEnd = _h.onSlideChangeTransitionEnd, onAutoplayTimeLeft = _h.onAutoplayTimeLeft, onClickBullet = _h.onClickBullet, onClickPrevBtn = _h.onClickPrevBtn, onClickNextBtn = _h.onClickNextBtn;
91
- var _j = (0, react_1.useState)(false), isHovered = _j[0], setIsHovered = _j[1];
94
+ }), customProgressbarNormalStyle = _h.normalStyle, customProgressbarHoverStyle = _h.hoverStyle;
95
+ var _j = (0, useSwiper_1.useSwiper)(), swiperRef = _j.swiperRef, progressRef = _j.progressRef, leftTimeMsRef = _j.leftTimeMsRef, currentSlide = _j.currentSlide, isBeginning = _j.isBeginning, isEnd = _j.isEnd, onSwiper = _j.onSwiper, onSlideChangeTransitionEnd = _j.onSlideChangeTransitionEnd, onAutoplayTimeLeft = _j.onAutoplayTimeLeft, onClickBullet = _j.onClickBullet, onClickPrevBtn = _j.onClickPrevBtn, onClickNextBtn = _j.onClickNextBtn;
96
+ var _k = (0, react_1.useState)(false), isHovered = _k[0], setIsHovered = _k[1];
92
97
  var loop = isHovered ? slideBannerNormalStyle.loop : slideBannerHoverStyle.loop;
93
98
  // NOTE: edit모드에서는 그리드의 이벤트만 작동하도록 CB의 포인터 이벤트는 막습니다.
94
99
  var editModeStyle = mode === 'EDIT' ? { pointerEvents: 'none' } : {};
@@ -113,7 +118,7 @@ function SlideBanner(props) {
113
118
  createPagination(customPaginationNormalStyle, customPaginationHoverStyle, isHovered),
114
119
  { type: 'PROGRESSBAR', position: 'INSET5' }
115
120
  ].filter(function (component) { return component !== undefined; });
116
- var _k = (0, useFlexGridLayout_1.useFlexGridLayout)({ components: components }), layoutRef = _k.layoutRef, positionRefs = _k.positionRefs, ccbInset = _k.ccbInset, componentGroups = _k.componentGroups, getPositionStyle = _k.getPositionStyle, getComponentGroupLayout = _k.getComponentGroupLayout;
121
+ var _l = (0, useFlexGridLayout_1.useFlexGridLayout)({ components: components }), layoutRef = _l.layoutRef, positionRefs = _l.positionRefs, ccbInset = _l.ccbInset, componentGroups = _l.componentGroups, getPositionStyle = _l.getPositionStyle, getComponentGroupLayout = _l.getComponentGroupLayout;
117
122
  var renderElements = function (component, positionStyle) {
118
123
  var _a;
119
124
  switch (component.type) {
@@ -124,7 +129,7 @@ function SlideBanner(props) {
124
129
  case 'PAGINATION':
125
130
  return ((0, jsx_runtime_1.jsx)(CustomPagination_1.CustomPagination, { styles: isHovered ? customPaginationHoverStyle : customPaginationNormalStyle, current: currentSlide, isPrevBtnDisabled: loop ? false : isBeginning, isNextBtnDisabled: loop ? false : isEnd, total: ((_a = swiperRef.current) === null || _a === void 0 ? void 0 : _a.swiper.slides.length) || 0, onBulletClick: onClickBullet, onPrevBtnClick: onClickPrevBtn, onNextBtnClick: onClickNextBtn, style: positionStyle }));
126
131
  case 'PROGRESSBAR':
127
- return ((0, jsx_runtime_1.jsx)(CustomProgressbar_1.CustomProgressbar, { progressRef: progressRef, leftTimeMsRef: leftTimeMsRef, styles: isHovered ? customProgressbarHoverStyle : customProgressbarNormalStyle }));
132
+ return ((0, jsx_runtime_1.jsx)(CustomProgressbar_1.CustomProgressbar, { slidesLength: orderedCompositions.length, progressRef: progressRef, leftTimeMsRef: leftTimeMsRef, styles: isHovered ? customProgressbarHoverStyle : customProgressbarNormalStyle }));
128
133
  default:
129
134
  return null;
130
135
  }
@@ -148,20 +153,39 @@ function SlideBanner(props) {
148
153
  delete positionRefs.current[position];
149
154
  }
150
155
  }, style: __assign(__assign({}, getPositionStyle(position, ccbInset, 'GROUP', 'GROUP', 'GROUP')), { zIndex: 3, position: 'absolute' }) }, { children: (0, jsx_runtime_1.jsx)("div", __assign({ className: "cb-slidebanner-button-layout-box", style: getComponentGroupLayout(groupComponents, position) }, { children: groupComponents.map(function (component) {
151
- return renderElements(component,
152
- // getPosition(position, component.designType, component.size, component.type)
153
- getPositionStyle(position, ccbInset, component.designType, component.size, component.type));
156
+ return renderElements(component, getPositionStyle(position, ccbInset, component.designType, component.size, component.type));
154
157
  }) })) }), position));
155
- }), (0, jsx_runtime_1.jsx)(S_CB_AnimationObserverBox_1.S_CB_AnimationObserverBox, __assign({ ref: hasEffect ? cbRef : null, effectVisibleStyle: effectVisibleStyle }, { children: (0, jsx_runtime_1.jsxs)(S_CB_BoxWithShadow_1.S_CB_BoxWithShadow, __assign({ className: "cb-layout-box ccb-layout-box", normalStyle: __assign(__assign(__assign(__assign(__assign({}, style), layout), effectCssProperties), editModeStyle), { overflow: 'hidden' }), hoverStyle: __assign(__assign({}, hoverStyle), { overflow: 'hidden' }), cbStylePropsShadowSpecs: CB_STYLE_PROP_SHADOW, device: device, onMouseEnter: function () { return setIsHovered(true); }, onMouseLeave: function () { return setIsHovered(false); } }, { children: [(0, jsx_runtime_1.jsx)(S_CustomBackgroundWrapper, __assign({ ref: backgroundRef, style: __assign(__assign({}, effect), { background: style.background }) }, { children: isBgMedia && CB_STYLE_PROP_BGMEDIA && ((0, jsx_runtime_1.jsx)(CustomSectionBackgroundMedia_1.CustomSectionBackgroundMedia, { specs: CB_STYLE_PROP_BGMEDIA, componentStyle: style, playerId: index, mediaType: mediaType || 'NONE', device: isMobile ? 'MOBILE' : 'DESKTOP', backgroundRef: backgroundRef })) })), (0, jsx_runtime_1.jsx)(S_Overlay, { style: overlayStyle }), (0, jsx_runtime_1.jsx)(S_SwiperLayout, __assign({ className: "cb-slidebanner-layout-box", ref: layoutRef }, { children: (0, jsx_runtime_1.jsx)(S_SwiperWrapper, __assign({ className: "cb-slidebanner-wrapper", ccbInset: ccbInset, customStyle: isHovered ? slideBannerHoverStyle === null || slideBannerHoverStyle === void 0 ? void 0 : slideBannerHoverStyle.customStyle : slideBannerNormalStyle === null || slideBannerNormalStyle === void 0 ? void 0 : slideBannerNormalStyle.customStyle }, { children: (0, jsx_runtime_1.jsx)(SlideBannerCore_1.default, __assign({ ref: swiperRef, className: "cb-slidebanner", onSwiper: onSwiper, onSlideChangeTransitionEnd: onSlideChangeTransitionEnd, onAutoplayTimeLeft: onAutoplayTimeLeft, slidesPerView: 1, styles: isHovered ? slideBannerHoverStyle : slideBannerNormalStyle, effect: CB_EFFECT_PROP_SLIDEBANNER_SPEC_TRANSITIONTYPE.toLowerCase() }, { children: (0, createCompositions_1.createCompositions)({
158
+ }), (0, jsx_runtime_1.jsx)(S_CB_AnimationObserverBox_1.S_CB_AnimationObserverBox, __assign({ ref: hasEffect ? cbRef : null, effectVisibleStyle: effectVisibleStyle }, { children: (0, jsx_runtime_1.jsxs)(S_CB_BoxWithShadow_1.S_CB_BoxWithShadow, __assign({ className: "cb-layout-box ccb-layout-box", normalStyle: __assign(__assign(__assign(__assign(__assign({}, style), layout), effectCssProperties), editModeStyle), { overflow: 'hidden' }), hoverStyle: __assign(__assign({}, hoverStyle), { overflow: 'hidden' }), cbStylePropsShadowSpecs: CB_STYLE_PROP_SHADOW, device: device, onMouseEnter: function () { return setIsHovered(true); }, onMouseLeave: function () { return setIsHovered(false); } }, { children: [(0, jsx_runtime_1.jsx)(S_CustomBackgroundWrapper, __assign({ ref: backgroundRef, style: __assign(__assign({}, effect), { background: style.background }) }, { children: isBgMedia && CB_STYLE_PROP_BGMEDIA && ((0, jsx_runtime_1.jsx)(CustomSectionBackgroundMedia_1.CustomSectionBackgroundMedia, { specs: CB_STYLE_PROP_BGMEDIA, componentStyle: style, playerId: index, mediaType: mediaType || 'NONE', device: isMobile ? 'MOBILE' : 'DESKTOP', backgroundRef: backgroundRef })) })), (0, jsx_runtime_1.jsx)(S_Overlay, { style: overlayStyle }), orderedCompositions.length > 0 ? ((0, jsx_runtime_1.jsx)(S_SwiperLayout, __assign({ className: "cb-slidebanner-layout-box", ref: layoutRef }, { children: (0, jsx_runtime_1.jsx)(S_SwiperWrapper, __assign({ className: "cb-slidebanner-wrapper", ccbInset: ccbInset, customStyle: isHovered
159
+ ? slideBannerHoverStyle === null || slideBannerHoverStyle === void 0 ? void 0 : slideBannerHoverStyle.customStyle
160
+ : slideBannerNormalStyle === null || slideBannerNormalStyle === void 0 ? void 0 : slideBannerNormalStyle.customStyle }, { children: (0, jsx_runtime_1.jsx)(SlideBannerCore_1.default, __assign({ ref: swiperRef, className: "cb-slidebanner", onSwiper: onSwiper, onSlideChangeTransitionEnd: onSlideChangeTransitionEnd, onAutoplayTimeLeft: onAutoplayTimeLeft, slidesPerView: 1, styles: isHovered ? slideBannerHoverStyle : slideBannerNormalStyle, effect: CB_EFFECT_PROP_SLIDEBANNER_SPEC_TRANSITIONTYPE.toLowerCase() }, { children: (0, createCompositions_1.createCompositions)({
156
161
  valueType: CB_CONTENT_PROP_SLIDEBANNER_SPEC_VALUETYPE,
157
162
  queryPath: CB_CONTENT_PROP_SLIDEBANNER_SPEC_CONNECTDATA,
158
163
  limit: CB_CONTENT_PROP_SLIDEBANNER_SPEC_ITEMCOUNTS,
159
164
  queryData: queryData,
160
165
  compositions: orderedCompositions
161
- }) }), CB_EFFECT_PROP_SLIDEBANNER_SPEC_TRANSITIONTYPE) })) }))] })) }))] }));
166
+ }) }), CB_EFFECT_PROP_SLIDEBANNER_SPEC_TRANSITIONTYPE +
167
+ autoPlayEnabled +
168
+ orderedCompositions.length) })) }))) : ((0, jsx_runtime_1.jsx)(EmptyString, {}))] })) }))] }));
162
169
  }
163
- var S_Overlay = styled_components_1.default.div(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n border-radius: inherit;\n bottom: 0;\n left: 0;\n position: absolute;\n right: 0;\n top: 0;\n"], ["\n border-radius: inherit;\n bottom: 0;\n left: 0;\n position: absolute;\n right: 0;\n top: 0;\n"])));
164
- var S_CustomBackgroundWrapper = styled_components_1.default.div(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n align-items: center;\n border-radius: inherit;\n bottom: 0;\n display: flex;\n justify-content: center;\n left: 0;\n overflow: hidden;\n position: absolute;\n right: 0;\n top: 0;\n z-index: -2;\n"], ["\n align-items: center;\n border-radius: inherit;\n bottom: 0;\n display: flex;\n justify-content: center;\n left: 0;\n overflow: hidden;\n position: absolute;\n right: 0;\n top: 0;\n z-index: -2;\n"])));
170
+ function EmptyString() {
171
+ var t = (0, react_i18next_1.useTranslation)('translation').t;
172
+ return (0, jsx_runtime_1.jsx)(S_EmptyLayer, { children: t('str_9806') });
173
+ }
174
+ var S_EmptyLayer = styled_components_1.default.div(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n background-color: rgba(0, 0, 0, 0.6);\n color: white;\n display: flex;\n font-size: ", ";\n font-weight: ", ";\n justify-content: center;\n line-height: ", ";\n margin: auto;\n padding: ", ";\n text-align: center;\n width: 100%;\n word-break: keep-all;\n"], ["\n background-color: rgba(0, 0, 0, 0.6);\n color: white;\n display: flex;\n font-size: ", ";\n font-weight: ", ";\n justify-content: center;\n line-height: ", ";\n margin: auto;\n padding: ", ";\n text-align: center;\n width: 100%;\n word-break: keep-all;\n"])), function (_a) {
175
+ var theme = _a.theme;
176
+ return theme.desktopFontSize.body2;
177
+ }, function (_a) {
178
+ var theme = _a.theme;
179
+ return theme.fontWeight.bold;
180
+ }, function (_a) {
181
+ var theme = _a.theme;
182
+ return theme.desktopLineHeight.body2;
183
+ }, function (_a) {
184
+ var theme = _a.theme;
185
+ return theme.spacing.spacingE;
186
+ });
187
+ var S_Overlay = styled_components_1.default.div(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n border-radius: inherit;\n bottom: 0;\n left: 0;\n position: absolute;\n right: 0;\n top: 0;\n"], ["\n border-radius: inherit;\n bottom: 0;\n left: 0;\n position: absolute;\n right: 0;\n top: 0;\n"])));
188
+ var S_CustomBackgroundWrapper = styled_components_1.default.div(templateObject_3 || (templateObject_3 = __makeTemplateObject(["\n align-items: center;\n border-radius: inherit;\n bottom: 0;\n display: flex;\n justify-content: center;\n left: 0;\n overflow: hidden;\n position: absolute;\n right: 0;\n top: 0;\n z-index: -2;\n"], ["\n align-items: center;\n border-radius: inherit;\n bottom: 0;\n display: flex;\n justify-content: center;\n left: 0;\n overflow: hidden;\n position: absolute;\n right: 0;\n top: 0;\n z-index: -2;\n"])));
165
189
  function getIsBgMedia(isMobile, specs) {
166
190
  if (!specs) {
167
191
  return false;
@@ -182,8 +206,8 @@ function getMediaType(isMobile, specs) {
182
206
  }
183
207
  return specs.CB_STYLE_PROP_BGMEDIA_SPEC_TYPE;
184
208
  }
185
- var S_SwiperLayout = styled_components_1.default.div(templateObject_3 || (templateObject_3 = __makeTemplateObject(["\n height: 100%;\n margin: 0 auto;\n position: relative;\n width: 100%;\n"], ["\n height: 100%;\n margin: 0 auto;\n position: relative;\n width: 100%;\n"])));
186
- var S_SwiperWrapper = styled_components_1.default.div(templateObject_4 || (templateObject_4 = __makeTemplateObject(["\n bottom: ", ";\n left: ", ";\n position: absolute;\n right: ", ";\n top: ", ";\n ", ";\n"], ["\n bottom: ", ";\n left: ", ";\n position: absolute;\n right: ", ";\n top: ", ";\n ", ";\n"])), function (_a) {
209
+ var S_SwiperLayout = styled_components_1.default.div(templateObject_4 || (templateObject_4 = __makeTemplateObject(["\n height: 100%;\n margin: 0 auto;\n position: relative;\n width: 100%;\n"], ["\n height: 100%;\n margin: 0 auto;\n position: relative;\n width: 100%;\n"])));
210
+ var S_SwiperWrapper = styled_components_1.default.div(templateObject_5 || (templateObject_5 = __makeTemplateObject(["\n bottom: ", ";\n left: ", ";\n position: absolute;\n right: ", ";\n top: ", ";\n ", ";\n"], ["\n bottom: ", ";\n left: ", ";\n position: absolute;\n right: ", ";\n top: ", ";\n ", ";\n"])), function (_a) {
187
211
  var ccbInset = _a.ccbInset;
188
212
  return ccbInset.bottom;
189
213
  }, function (_a) {
@@ -200,4 +224,4 @@ var S_SwiperWrapper = styled_components_1.default.div(templateObject_4 || (templ
200
224
  return customStyle;
201
225
  });
202
226
  exports.default = SlideBanner;
203
- var templateObject_1, templateObject_2, templateObject_3, templateObject_4;
227
+ var templateObject_1, templateObject_2, templateObject_3, templateObject_4, templateObject_5;
@@ -49,10 +49,10 @@ var CustomNavigationNextBtn = function (_a) {
49
49
  ? undefined
50
50
  : navigationConfigs_1.nextButtonMappedIcons[styles.nextBtnType || 'DESIGN1'];
51
51
  var buttonSize = 48;
52
- var iconSize = 20;
52
+ var iconSize = 24;
53
53
  if (styles.nextBtnSize === 'SMALL') {
54
54
  buttonSize = 40;
55
- iconSize = 24;
55
+ iconSize = 20;
56
56
  }
57
57
  if (styles.nextBtnSize === 'LARGE') {
58
58
  buttonSize = 80;
@@ -49,12 +49,12 @@ var CustomNavigationPrevBtn = function (_a) {
49
49
  ? undefined
50
50
  : navigationConfigs_1.prevButtonMappedIcons[styles.prevBtnType || 'DESIGN1'];
51
51
  var buttonSize = 48;
52
- var iconSize = 20;
53
- if (styles.nextBtnSize === 'SMALL') {
52
+ var iconSize = 24;
53
+ if (styles.prevBtnSize === 'SMALL') {
54
54
  buttonSize = 40;
55
- iconSize = 24;
55
+ iconSize = 20;
56
56
  }
57
- if (styles.nextBtnSize === 'LARGE') {
57
+ if (styles.prevBtnSize === 'LARGE') {
58
58
  buttonSize = 80;
59
59
  iconSize = 48;
60
60
  }
@@ -52,7 +52,7 @@ var CustomPagination = function (_a) {
52
52
  return (0, jsx_runtime_1.jsx)(jsx_runtime_1.Fragment, {});
53
53
  case 'DESIGN1': {
54
54
  var _j = SLIDE_BANNER_PAGINATION_SIZES.DESIGN1[(_a = styles.size) !== null && _a !== void 0 ? _a : 'MEDIUM'], SELECTED_TEXT_STYLE_THEME = _j.SELECTED_TEXT_STYLE_THEME, UNSELECTED_TEXT_STYLE_THEME = _j.UNSELECTED_TEXT_STYLE_THEME;
55
- return ((0, jsx_runtime_1.jsxs)(FlexBox, __assign({ gap: "4px", style: { color: styles.secondaryColor || 'inherit' } }, { children: [(0, jsx_runtime_1.jsx)(S_TextLabel, __assign({ styleTheme: SELECTED_TEXT_STYLE_THEME, style: { color: styles.primaryColor || 'inherit' } }, { children: current })), (0, jsx_runtime_1.jsx)(S_TextLabel, __assign({ style: { opacity: 0.6 }, styleTheme: UNSELECTED_TEXT_STYLE_THEME }, { children: "/ ".concat(total) }))] })));
55
+ return ((0, jsx_runtime_1.jsxs)(FlexBox, __assign({ gap: "4px", style: { color: styles.secondaryColor || 'inherit' } }, { children: [(0, jsx_runtime_1.jsx)(S_TextLabel, __assign({ styleTheme: SELECTED_TEXT_STYLE_THEME, style: { color: styles.primaryColor || 'inherit' } }, { children: current })), (0, jsx_runtime_1.jsx)(S_TextLabel, __assign({ style: { opacity: 0.6 }, styleTheme: UNSELECTED_TEXT_STYLE_THEME }, { children: "/" })), (0, jsx_runtime_1.jsx)(S_TextLabel, __assign({ style: { opacity: 0.6 }, styleTheme: UNSELECTED_TEXT_STYLE_THEME }, { children: total }))] })));
56
56
  }
57
57
  // case 'DESIGN2': {
58
58
  // return (
@@ -96,7 +96,7 @@ var CustomPagination = function (_a) {
96
96
  marginLeft: '8px',
97
97
  marginRight: '4px',
98
98
  color: styles.primaryColor || 'inherit'
99
- }, styleTheme: SELECTED_TEXT_STYLE_THEME }, { children: current })), (0, jsx_runtime_1.jsx)(S_TextLabel, __assign({ style: { marginRight: '8px', marginLeft: '4px', opacity: 0.6 }, styleTheme: UNSELECTED_TEXT_STYLE_THEME }, { children: "/ ".concat(total) })), (0, jsx_runtime_1.jsx)(S_Pointer, __assign({ onClick: onNextBtnClick, disabled: isNextBtnDisabled }, { children: (0, jsx_runtime_1.jsx)(components_1.Icon, { overrideColorHex: styles.primaryColor, iconName: "ic_arrow_right", size: ICON_SIZE, colorKey: "ui_cpnt_icon_sys_dark" }) }))] })));
99
+ }, styleTheme: SELECTED_TEXT_STYLE_THEME }, { children: current })), (0, jsx_runtime_1.jsx)(S_TextLabel, __assign({ style: { marginLeft: '4px', opacity: 0.6 }, styleTheme: UNSELECTED_TEXT_STYLE_THEME }, { children: "/" })), (0, jsx_runtime_1.jsx)(S_TextLabel, __assign({ style: { marginRight: '8px', marginLeft: '4px', opacity: 0.6 }, styleTheme: UNSELECTED_TEXT_STYLE_THEME }, { children: total })), (0, jsx_runtime_1.jsx)(S_Pointer, __assign({ onClick: onNextBtnClick, disabled: isNextBtnDisabled }, { children: (0, jsx_runtime_1.jsx)(components_1.Icon, { overrideColorHex: styles.primaryColor, iconName: "ic_arrow_right", size: ICON_SIZE, colorKey: "ui_cpnt_icon_sys_dark" }) }))] })));
100
100
  }
101
101
  // case 'DESIGN6':
102
102
  // return (
@@ -4,6 +4,7 @@ type Props = {
4
4
  styles: CustomProgressbarProps;
5
5
  progressRef: React.RefObject<number>;
6
6
  leftTimeMsRef: React.RefObject<number>;
7
+ slidesLength: number;
7
8
  };
8
- export declare const CustomProgressbar: ({ styles, progressRef, leftTimeMsRef }: Props) => JSX.Element;
9
+ export declare const CustomProgressbar: ({ styles, progressRef, leftTimeMsRef, slidesLength }: Props) => JSX.Element;
9
10
  export default CustomProgressbar;
@@ -24,7 +24,7 @@ var react_1 = require("react");
24
24
  var styled_components_1 = __importDefault(require("styled-components"));
25
25
  var progressConfigs_1 = require("./progressConfigs");
26
26
  var CustomProgressbar = function (_a) {
27
- var styles = _a.styles, progressRef = _a.progressRef, leftTimeMsRef = _a.leftTimeMsRef;
27
+ var styles = _a.styles, progressRef = _a.progressRef, leftTimeMsRef = _a.leftTimeMsRef, slidesLength = _a.slidesLength;
28
28
  var _b = (0, react_1.useState)(0), leftTimeSec = _b[0], setLeftTimeSec = _b[1];
29
29
  var _c = (0, react_1.useState)(0), progress = _c[0], setProgress = _c[1];
30
30
  (0, react_1.useEffect)(function () {
@@ -55,19 +55,21 @@ var CustomProgressbar = function (_a) {
55
55
  animationId = requestAnimationFrame(updateProgress);
56
56
  return function () { return cancelAnimationFrame(animationId); };
57
57
  }, []);
58
+ var progressRender = slidesLength > 1 ? progress : 0;
59
+ var timeLeftRender = slidesLength > 1 ? leftTimeSec : 0;
58
60
  var renderProgressByType = function () {
59
61
  var _a, _b, _c, _d, _e;
60
62
  switch (styles.type) {
61
63
  case 'NONE':
62
64
  return null;
63
65
  case 'DESIGN1':
64
- return ((0, jsx_runtime_1.jsx)(progressConfigs_1.ProgressDesign1, { size: (_a = styles.size) !== null && _a !== void 0 ? _a : 'MEDIUM', progress: progress, leftTimeSec: leftTimeSec, progressColor: styles.primaryColor, bufferColor: styles.secondaryColor }));
66
+ return ((0, jsx_runtime_1.jsx)(progressConfigs_1.ProgressDesign1, { size: (_a = styles.size) !== null && _a !== void 0 ? _a : 'MEDIUM', progress: progressRender, leftTimeSec: timeLeftRender, progressColor: styles.primaryColor, bufferColor: styles.secondaryColor }));
65
67
  // case 'DESIGN2':
66
68
  // return (
67
69
  // <ProgressDesign2
68
70
  // size={styles.size ?? 'MEDIUM'}
69
- // progress={progress}
70
- // leftTimeSec={leftTimeSec}
71
+ // progress={progressRender}
72
+ // leftTimeSec={timeLeftRender}
71
73
  // progressColor={styles.primaryColor}
72
74
  // bufferColor={styles.secondaryColor}
73
75
  // />
@@ -76,37 +78,37 @@ var CustomProgressbar = function (_a) {
76
78
  // return (
77
79
  // <ProgressDesign3
78
80
  // size={styles.size ?? 'MEDIUM'}
79
- // progress={progress}
81
+ // progress={progressRender}
80
82
  // progressColor={styles.primaryColor}
81
83
  // bufferColor={styles.secondaryColor}
82
84
  // />
83
85
  // );
84
86
  case 'DESIGN2':
85
- return ((0, jsx_runtime_1.jsx)(progressConfigs_1.ProgressDesign4, { size: (_b = styles.size) !== null && _b !== void 0 ? _b : 'MEDIUM', progress: progress, progressColor: styles.primaryColor, bufferColor: styles.secondaryColor }));
87
+ return ((0, jsx_runtime_1.jsx)(progressConfigs_1.ProgressDesign4, { size: (_b = styles.size) !== null && _b !== void 0 ? _b : 'MEDIUM', progress: progressRender, progressColor: styles.primaryColor, bufferColor: styles.secondaryColor }));
86
88
  // case 'DESIGN5':
87
89
  // return (
88
90
  // <ProgressDesign5
89
91
  // size={styles.size ?? 'MEDIUM'}
90
- // progress={progress}
92
+ // progress={progressRender}
91
93
  // progressColor={styles.primaryColor}
92
94
  // bufferColor={styles.secondaryColor}
93
95
  // />
94
96
  // );
95
97
  case 'DESIGN3':
96
- return ((0, jsx_runtime_1.jsx)(progressConfigs_1.ProgressDesign6, { size: (_c = styles.size) !== null && _c !== void 0 ? _c : 'MEDIUM', progress: progress, progressColor: styles.primaryColor, bufferColor: styles.secondaryColor }));
98
+ return ((0, jsx_runtime_1.jsx)(progressConfigs_1.ProgressDesign6, { size: (_c = styles.size) !== null && _c !== void 0 ? _c : 'MEDIUM', progress: progressRender, progressColor: styles.primaryColor, bufferColor: styles.secondaryColor }));
97
99
  case 'DESIGN4':
98
- return ((0, jsx_runtime_1.jsx)(progressConfigs_1.ProgressDesign7, { size: (_d = styles.size) !== null && _d !== void 0 ? _d : 'MEDIUM', progress: progress, progressColor: styles.primaryColor, bufferColor: styles.secondaryColor }));
100
+ return ((0, jsx_runtime_1.jsx)(progressConfigs_1.ProgressDesign7, { size: (_d = styles.size) !== null && _d !== void 0 ? _d : 'MEDIUM', progress: progressRender, progressColor: styles.primaryColor, bufferColor: styles.secondaryColor }));
99
101
  // case 'DESIGN8':
100
102
  // return (
101
103
  // <ProgressDesign8
102
104
  // size={styles.size ?? 'MEDIUM'}
103
- // progress={progress}
105
+ // progress={progressRender}
104
106
  // progressColor={styles.primaryColor}
105
107
  // bufferColor={styles.secondaryColor}
106
108
  // />
107
109
  // );
108
110
  default:
109
- return ((0, jsx_runtime_1.jsx)(progressConfigs_1.ProgressDesign1, { progress: progress, leftTimeSec: leftTimeSec, progressColor: styles.primaryColor, bufferColor: styles.secondaryColor, size: (_e = styles.size) !== null && _e !== void 0 ? _e : 'MEDIUM' }));
111
+ return ((0, jsx_runtime_1.jsx)(progressConfigs_1.ProgressDesign1, { progress: progressRender, leftTimeSec: timeLeftRender, progressColor: styles.primaryColor, bufferColor: styles.secondaryColor, size: (_e = styles.size) !== null && _e !== void 0 ? _e : 'MEDIUM' }));
110
112
  }
111
113
  };
112
114
  return ((0, jsx_runtime_1.jsx)(S_ProgressWrapper, __assign({ className: "cb-contentscarousel-progressbar-wrapper", "$size": styles.size }, { children: renderProgressByType() })));
@@ -1,5 +1,5 @@
1
1
  import type { SlideBannerElementsProps } from '../SlideBanner';
2
2
  import type { CSSProperties } from 'styled-components';
3
3
  export declare function getPosition(position: string, designType: string, size: string, elementType: SlideBannerElementsProps['type'] | 'GROUP'): CSSProperties;
4
- export declare const POS_INSET: Record<string, Record<string, CSSProperties>>;
4
+ export declare const POS_INSET: Record<string, CSSProperties>;
5
5
  export declare const POS_OUTSET_NAVIGATION: Record<string, CSSProperties>;