@fonixtree/magic-design 2.0.205 → 2.0.207

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 (125) hide show
  1. package/es/assets/images/layout-icon/campaignLayout1.png +0 -0
  2. package/es/assets/images/layout-icon/imageGalleryLayout3.png +0 -0
  3. package/es/assets/images/layout-icon/imageGalleryLayout4.png +0 -0
  4. package/es/common/Collapse/index.js +3 -1
  5. package/es/common/Field/index.js +5 -4
  6. package/es/common/Field/index.less +4 -0
  7. package/es/composite-comp/bol/components/ImageGallery/mobile/index.js +33 -2
  8. package/es/composite-comp/bol/components/ImageGallery/mobile/index.less +15 -0
  9. package/es/composite-comp/bol/components/Video/defaultJSON.js +1 -0
  10. package/es/composite-comp/bol/components/Video/mobile/Layout1/index.js +2 -1
  11. package/es/composite-comp/bol/components/Video/mobile/Layout1/index.less +1 -0
  12. package/es/composite-comp/bol/components/Video/mobile/Layout2/index.js +2 -1
  13. package/es/composite-comp/bol/components/Video/mobile/Layout2/index.less +1 -0
  14. package/es/composite-comp/bol/components/Video/mobile/Layout3/index.js +2 -1
  15. package/es/composite-comp/bol/components/Video/mobile/Layout3/index.less +1 -0
  16. package/es/composite-comp/bol/components/Video/pc/Layout1/index.js +2 -1
  17. package/es/composite-comp/bol/components/Video/pc/Layout1/index.less +1 -0
  18. package/es/composite-comp/bol/components/Video/pc/Layout2/index.js +8 -2
  19. package/es/composite-comp/bol/components/Video/pc/Layout2/index.less +2 -0
  20. package/es/composite-comp/bol/components/Video/pc/Layout3/index.js +4 -1
  21. package/es/composite-comp/bol/components/Video/pc/Layout3/index.less +1 -0
  22. package/es/composite-comp/bol/components/Video/pc/Layout4/index.js +2 -1
  23. package/es/composite-comp/bol/components/Video/pc/Layout4/index.less +1 -0
  24. package/es/composite-comp/bol/components/Video/pc/Layout5/index.js +2 -1
  25. package/es/composite-comp/bol/components/Video/pc/Layout5/index.less +1 -0
  26. package/es/composite-comp/bol/config-panels/ImageGalleryConfig/ImageGalleryConfigImageGroup/index.js +1 -0
  27. package/es/composite-comp/bol/config-panels/ImageGalleryConfig/index.js +1 -1
  28. package/es/composite-comp/bol/config-panels/VideoConfig/index.js +12 -0
  29. package/es/composite-comp/common/components/ProductItem/index.js +1 -1
  30. package/es/composite-comp/dito/components/Campaign/defaultJSON.js +112 -0
  31. package/es/composite-comp/dito/components/Campaign/index.js +88 -0
  32. package/es/composite-comp/dito/components/Campaign/mobile/components/Bargain/index.js +320 -0
  33. package/es/composite-comp/dito/components/Campaign/mobile/components/Bargain/index.less +20 -0
  34. package/es/composite-comp/dito/components/Campaign/mobile/components/CountDown/index.js +180 -0
  35. package/es/composite-comp/dito/components/Campaign/mobile/components/CountDown/index.less +26 -0
  36. package/es/composite-comp/dito/components/Campaign/mobile/components/FlashSale/index.js +434 -0
  37. package/es/composite-comp/dito/components/Campaign/mobile/components/FlashSale/index.less +20 -0
  38. package/es/composite-comp/dito/components/Campaign/mobile/components/GroupBuy/index.js +317 -0
  39. package/es/composite-comp/dito/components/Campaign/mobile/components/GroupBuy/index.less +20 -0
  40. package/es/composite-comp/dito/components/Campaign/mobile/components/ProductItem/index.js +115 -0
  41. package/es/composite-comp/dito/components/Campaign/mobile/components/ProductItem/index.less +14 -0
  42. package/es/composite-comp/dito/components/Campaign/mobile/imgs/defImg.png +0 -0
  43. package/es/composite-comp/dito/components/Campaign/mobile/index.js +125 -0
  44. package/es/composite-comp/dito/components/Campaign/mobile/index.less +57 -0
  45. package/es/composite-comp/dito/components/GroupedCarousel/pc/index.js +8 -2
  46. package/es/composite-comp/dito/components/SearchDITO/pc/components/Header/index.js +2 -2
  47. package/es/composite-comp/dito/components/SlideImage/pc/components/VideoItem/index.js +16 -16
  48. package/es/composite-comp/dito/components/SlideImage/pc/index.js +1 -1
  49. package/es/composite-comp/dito/config-panels/CampaignConfig/ConfigContent/index.js +143 -0
  50. package/es/composite-comp/dito/config-panels/CampaignConfig/ConfigTitle/index.js +93 -0
  51. package/es/composite-comp/dito/config-panels/CampaignConfig/index.js +69 -0
  52. package/es/composite-comp/dito/second-config-panels/CampaignSecondConfig/index.js +109 -0
  53. package/es/constants/component-types.js +9 -3
  54. package/es/constants/index.js +4 -0
  55. package/es/constants/layout.js +32 -2
  56. package/es/core/Designer/ConfigPanel/index.js +6 -2
  57. package/es/core/Designer/PageCompList/index.js +1 -1
  58. package/es/core/Designer/index.js +7 -11
  59. package/es/meta-comp/config-panels/ImageConfig/index.js +0 -2
  60. package/es/meta-comp/config-panels/TextConfig/index.js +17 -7
  61. package/es/meta-comp/config-panels/TextConfig/index.less +7 -0
  62. package/es/utils/commonUtil.js +59 -89
  63. package/lib/assets/images/layout-icon/campaignLayout1.png +0 -0
  64. package/lib/assets/images/layout-icon/imageGalleryLayout3.png +0 -0
  65. package/lib/assets/images/layout-icon/imageGalleryLayout4.png +0 -0
  66. package/lib/common/Collapse/index.js +3 -1
  67. package/lib/common/Field/index.js +5 -4
  68. package/lib/common/Field/index.less +4 -0
  69. package/lib/composite-comp/bol/components/ImageGallery/mobile/index.js +33 -2
  70. package/lib/composite-comp/bol/components/ImageGallery/mobile/index.less +15 -0
  71. package/lib/composite-comp/bol/components/Video/defaultJSON.js +1 -0
  72. package/lib/composite-comp/bol/components/Video/mobile/Layout1/index.js +2 -1
  73. package/lib/composite-comp/bol/components/Video/mobile/Layout1/index.less +1 -0
  74. package/lib/composite-comp/bol/components/Video/mobile/Layout2/index.js +2 -1
  75. package/lib/composite-comp/bol/components/Video/mobile/Layout2/index.less +1 -0
  76. package/lib/composite-comp/bol/components/Video/mobile/Layout3/index.js +2 -1
  77. package/lib/composite-comp/bol/components/Video/mobile/Layout3/index.less +1 -0
  78. package/lib/composite-comp/bol/components/Video/pc/Layout1/index.js +2 -1
  79. package/lib/composite-comp/bol/components/Video/pc/Layout1/index.less +1 -0
  80. package/lib/composite-comp/bol/components/Video/pc/Layout2/index.js +8 -2
  81. package/lib/composite-comp/bol/components/Video/pc/Layout2/index.less +2 -0
  82. package/lib/composite-comp/bol/components/Video/pc/Layout3/index.js +4 -1
  83. package/lib/composite-comp/bol/components/Video/pc/Layout3/index.less +1 -0
  84. package/lib/composite-comp/bol/components/Video/pc/Layout4/index.js +2 -1
  85. package/lib/composite-comp/bol/components/Video/pc/Layout4/index.less +1 -0
  86. package/lib/composite-comp/bol/components/Video/pc/Layout5/index.js +2 -1
  87. package/lib/composite-comp/bol/components/Video/pc/Layout5/index.less +1 -0
  88. package/lib/composite-comp/bol/config-panels/ImageGalleryConfig/ImageGalleryConfigImageGroup/index.js +1 -0
  89. package/lib/composite-comp/bol/config-panels/ImageGalleryConfig/index.js +1 -1
  90. package/lib/composite-comp/bol/config-panels/VideoConfig/index.js +12 -0
  91. package/lib/composite-comp/common/components/ProductItem/index.js +1 -1
  92. package/lib/composite-comp/dito/components/Campaign/defaultJSON.js +112 -0
  93. package/lib/composite-comp/dito/components/Campaign/index.js +88 -0
  94. package/lib/composite-comp/dito/components/Campaign/mobile/components/Bargain/index.js +320 -0
  95. package/lib/composite-comp/dito/components/Campaign/mobile/components/Bargain/index.less +20 -0
  96. package/lib/composite-comp/dito/components/Campaign/mobile/components/CountDown/index.js +180 -0
  97. package/lib/composite-comp/dito/components/Campaign/mobile/components/CountDown/index.less +26 -0
  98. package/lib/composite-comp/dito/components/Campaign/mobile/components/FlashSale/index.js +434 -0
  99. package/lib/composite-comp/dito/components/Campaign/mobile/components/FlashSale/index.less +20 -0
  100. package/lib/composite-comp/dito/components/Campaign/mobile/components/GroupBuy/index.js +317 -0
  101. package/lib/composite-comp/dito/components/Campaign/mobile/components/GroupBuy/index.less +20 -0
  102. package/lib/composite-comp/dito/components/Campaign/mobile/components/ProductItem/index.js +115 -0
  103. package/lib/composite-comp/dito/components/Campaign/mobile/components/ProductItem/index.less +14 -0
  104. package/lib/composite-comp/dito/components/Campaign/mobile/imgs/defImg.png +0 -0
  105. package/lib/composite-comp/dito/components/Campaign/mobile/index.js +125 -0
  106. package/lib/composite-comp/dito/components/Campaign/mobile/index.less +57 -0
  107. package/lib/composite-comp/dito/components/GroupedCarousel/pc/index.js +8 -2
  108. package/lib/composite-comp/dito/components/SearchDITO/pc/components/Header/index.js +2 -2
  109. package/lib/composite-comp/dito/components/SlideImage/pc/components/VideoItem/index.js +16 -16
  110. package/lib/composite-comp/dito/components/SlideImage/pc/index.js +1 -1
  111. package/lib/composite-comp/dito/config-panels/CampaignConfig/ConfigContent/index.js +143 -0
  112. package/lib/composite-comp/dito/config-panels/CampaignConfig/ConfigTitle/index.js +93 -0
  113. package/lib/composite-comp/dito/config-panels/CampaignConfig/index.js +69 -0
  114. package/lib/composite-comp/dito/second-config-panels/CampaignSecondConfig/index.js +109 -0
  115. package/lib/constants/component-types.js +9 -3
  116. package/lib/constants/index.js +4 -0
  117. package/lib/constants/layout.js +32 -2
  118. package/lib/core/Designer/ConfigPanel/index.js +6 -2
  119. package/lib/core/Designer/PageCompList/index.js +1 -1
  120. package/lib/core/Designer/index.js +7 -11
  121. package/lib/meta-comp/config-panels/ImageConfig/index.js +0 -2
  122. package/lib/meta-comp/config-panels/TextConfig/index.js +17 -7
  123. package/lib/meta-comp/config-panels/TextConfig/index.less +7 -0
  124. package/lib/utils/commonUtil.js +59 -89
  125. package/package.json +1 -1
@@ -118,16 +118,16 @@ function (_super) {
118
118
  };
119
119
 
120
120
  VideoItem.prototype.render = function () {
121
- var _a, _b, _c, _d, _e, _f, _g;
122
-
123
- var _h = this.props,
124
- data = _h.data,
125
- cursor = _h.cursor,
126
- onLoad = _h.onLoad,
127
- moveIcon = _h.moveIcon;
128
- var _j = this.state,
129
- playing = _j.playing,
130
- videoPoster = _j.videoPoster;
121
+ var _a, _b, _c, _d, _e, _f, _g, _h;
122
+
123
+ var _j = this.props,
124
+ data = _j.data,
125
+ cursor = _j.cursor,
126
+ onLoad = _j.onLoad,
127
+ moveIcon = _j.moveIcon;
128
+ var _k = this.state,
129
+ playing = _k.playing,
130
+ videoPoster = _k.videoPoster;
131
131
  var img = ((_b = (_a = data.overilay) === null || _a === void 0 ? void 0 : _a.content) === null || _b === void 0 ? void 0 : _b.pcImgSrc) || videoPoster;
132
132
  return /*#__PURE__*/_react["default"].createElement("div", {
133
133
  ref: this.cardRef,
@@ -135,9 +135,9 @@ function (_super) {
135
135
  onMouseEnter: this.onMouseEnter,
136
136
  onMouseLeave: this.onMouseLeave,
137
137
  style: {
138
- cursor: cursor && moveIcon.open ? "url('" + moveIcon.content.pcImgSrc + "'), pointer" : 'unset'
138
+ cursor: cursor && (moveIcon === null || moveIcon === void 0 ? void 0 : moveIcon.open) ? "url('" + ((_c = moveIcon === null || moveIcon === void 0 ? void 0 : moveIcon.content) === null || _c === void 0 ? void 0 : _c.pcImgSrc) + "'), pointer" : 'unset'
139
139
  }
140
- }, ((_c = data.video) === null || _c === void 0 ? void 0 : _c.sourceUrl) && /*#__PURE__*/_react["default"].createElement("video", {
140
+ }, ((_d = data.video) === null || _d === void 0 ? void 0 : _d.sourceUrl) && /*#__PURE__*/_react["default"].createElement("video", {
141
141
  ref: this.videoRef,
142
142
  loop: true,
143
143
  muted: true,
@@ -146,12 +146,12 @@ function (_super) {
146
146
  visibility: playing ? 'visible' : 'hidden'
147
147
  }
148
148
  }, /*#__PURE__*/_react["default"].createElement("source", {
149
- src: (_d = data.video) === null || _d === void 0 ? void 0 : _d.sourceUrl,
149
+ src: (_e = data.video) === null || _e === void 0 ? void 0 : _e.sourceUrl,
150
150
  type: "video/mp4"
151
- })), ((_e = data.overilay) === null || _e === void 0 ? void 0 : _e.open) && img && /*#__PURE__*/_react["default"].createElement("img", {
151
+ })), ((_f = data.overilay) === null || _f === void 0 ? void 0 : _f.open) && img && /*#__PURE__*/_react["default"].createElement("img", {
152
152
  alt: "",
153
153
  className: (0, _classnames["default"])('video-img', {
154
- cover: (_f = data.video) === null || _f === void 0 ? void 0 : _f.sourceUrl
154
+ cover: (_g = data.video) === null || _g === void 0 ? void 0 : _g.sourceUrl
155
155
  }),
156
156
  onLoad: onLoad,
157
157
  src: img,
@@ -160,7 +160,7 @@ function (_super) {
160
160
  }
161
161
  }), /*#__PURE__*/_react["default"].createElement("canvas", {
162
162
  ref: this.canvasRef
163
- }), ((_g = data.background) === null || _g === void 0 ? void 0 : _g.image) && /*#__PURE__*/_react["default"].createElement("div", {
163
+ }), ((_h = data.background) === null || _h === void 0 ? void 0 : _h.image) && /*#__PURE__*/_react["default"].createElement("div", {
164
164
  className: "hover-image",
165
165
  style: {
166
166
  backgroundImage: "url('" + data.background.image + "')"
@@ -59,7 +59,7 @@ function (_super) {
59
59
  return /*#__PURE__*/_react["default"].createElement("div", {
60
60
  className: "m-slide-image-pc"
61
61
  }, /*#__PURE__*/_react["default"].createElement(_ParallaxScroll["default"], {
62
- moveIcon: content.moveIcon,
62
+ moveIcon: content === null || content === void 0 ? void 0 : content.moveIcon,
63
63
  source: groupSource,
64
64
  xGap: columnSpace,
65
65
  yGap: lineSpace
@@ -0,0 +1,143 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports["default"] = void 0;
7
+
8
+ var _react = _interopRequireDefault(require("react"));
9
+
10
+ var _mobxReact = require("mobx-react");
11
+
12
+ var _ImageConfig = _interopRequireDefault(require("../../../../../meta-comp/config-panels/ImageConfig"));
13
+
14
+ var _coreUtil = require("../../../../../utils/coreUtil");
15
+
16
+ var _common = require("../../../../../common");
17
+
18
+ var _locale = require("../../../../../locale");
19
+
20
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
21
+
22
+ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
23
+
24
+ var __extends = void 0 && (void 0).__extends || function () {
25
+ var _extendStatics = function extendStatics(d, b) {
26
+ _extendStatics = Object.setPrototypeOf || {
27
+ __proto__: []
28
+ } instanceof Array && function (d, b) {
29
+ d.__proto__ = b;
30
+ } || function (d, b) {
31
+ for (var p in b) {
32
+ if (b.hasOwnProperty(p)) d[p] = b[p];
33
+ }
34
+ };
35
+
36
+ return _extendStatics(d, b);
37
+ };
38
+
39
+ return function (d, b) {
40
+ _extendStatics(d, b);
41
+
42
+ function __() {
43
+ this.constructor = d;
44
+ }
45
+
46
+ d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
47
+ };
48
+ }();
49
+
50
+ var __decorate = void 0 && (void 0).__decorate || function (decorators, target, key, desc) {
51
+ var c = arguments.length,
52
+ r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc,
53
+ d;
54
+ if ((typeof Reflect === "undefined" ? "undefined" : _typeof(Reflect)) === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) {
55
+ if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
56
+ }
57
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
58
+ };
59
+
60
+ var __spreadArrays = void 0 && (void 0).__spreadArrays || function () {
61
+ for (var s = 0, i = 0, il = arguments.length; i < il; i++) {
62
+ s += arguments[i].length;
63
+ }
64
+
65
+ for (var r = Array(s), k = 0, i = 0; i < il; i++) {
66
+ for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++) {
67
+ r[k] = a[j];
68
+ }
69
+ }
70
+
71
+ return r;
72
+ };
73
+
74
+ var AComponent =
75
+ /** @class */
76
+ function (_super) {
77
+ __extends(AComponent, _super);
78
+
79
+ function AComponent() {
80
+ var _this = _super !== null && _super.apply(this, arguments) || this;
81
+
82
+ _this.state = {};
83
+
84
+ _this.reRender = function () {
85
+ (0, _coreUtil.renderPreview)();
86
+
87
+ _this.setState({});
88
+ };
89
+
90
+ _this.onClickItem = function (node) {
91
+ _this.props.store.setState({
92
+ clickedGroup: node.id
93
+ });
94
+ };
95
+
96
+ return _this;
97
+ }
98
+
99
+ AComponent.prototype.render = function () {
100
+ var _this = this;
101
+
102
+ var _a = this.props.panelProps,
103
+ content = _a.content,
104
+ groupSource = _a.groupSource;
105
+
106
+ var _groupSource = groupSource.map(function (m) {
107
+ return {
108
+ key: m.id,
109
+ name: m.type,
110
+ value: null,
111
+ metaOption: m,
112
+ onClick: function onClick() {
113
+ return _this.onClickItem(m);
114
+ }
115
+ };
116
+ });
117
+
118
+ return /*#__PURE__*/_react["default"].createElement("div", {
119
+ className: "campaign_content"
120
+ }, /*#__PURE__*/_react["default"].createElement(_common.Collapse, {
121
+ headerSize: "middle",
122
+ onRefresh: this.reRender,
123
+ source: __spreadArrays(_groupSource, [{
124
+ key: content.image.id,
125
+ name: (0, _locale.i18n)('IMAGE'),
126
+ value: /*#__PURE__*/_react["default"].createElement(_ImageConfig["default"], {
127
+ data: content.image
128
+ }),
129
+ metaOption: content.image
130
+ }]),
131
+ type: "switch"
132
+ }));
133
+ };
134
+
135
+ AComponent.defaultProps = {
136
+ panelProps: {}
137
+ };
138
+ AComponent = __decorate([(0, _mobxReact.inject)('store'), _mobxReact.observer], AComponent);
139
+ return AComponent;
140
+ }(_react["default"].Component);
141
+
142
+ var _default = AComponent;
143
+ exports["default"] = _default;
@@ -0,0 +1,93 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports["default"] = void 0;
7
+
8
+ var _react = _interopRequireDefault(require("react"));
9
+
10
+ var _TextConfig = _interopRequireDefault(require("../../../../../meta-comp/config-panels/TextConfig"));
11
+
12
+ var _coreUtil = require("../../../../../utils/coreUtil");
13
+
14
+ var _common = require("../../../../../common");
15
+
16
+ var _locale = require("../../../../../locale");
17
+
18
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
19
+
20
+ var __extends = void 0 && (void 0).__extends || function () {
21
+ var _extendStatics = function extendStatics(d, b) {
22
+ _extendStatics = Object.setPrototypeOf || {
23
+ __proto__: []
24
+ } instanceof Array && function (d, b) {
25
+ d.__proto__ = b;
26
+ } || function (d, b) {
27
+ for (var p in b) {
28
+ if (b.hasOwnProperty(p)) d[p] = b[p];
29
+ }
30
+ };
31
+
32
+ return _extendStatics(d, b);
33
+ };
34
+
35
+ return function (d, b) {
36
+ _extendStatics(d, b);
37
+
38
+ function __() {
39
+ this.constructor = d;
40
+ }
41
+
42
+ d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
43
+ };
44
+ }();
45
+
46
+ var ConfigTitle =
47
+ /** @class */
48
+ function (_super) {
49
+ __extends(ConfigTitle, _super);
50
+
51
+ function ConfigTitle() {
52
+ var _this = _super !== null && _super.apply(this, arguments) || this;
53
+
54
+ _this.state = {};
55
+
56
+ _this.reRender = function () {
57
+ (0, _coreUtil.renderPreview)();
58
+
59
+ _this.setState({});
60
+ };
61
+
62
+ return _this;
63
+ }
64
+
65
+ ConfigTitle.prototype.render = function () {
66
+ var panelProps = this.props.panelProps;
67
+ return /*#__PURE__*/_react["default"].createElement("div", {
68
+ className: "campaign_title"
69
+ }, /*#__PURE__*/_react["default"].createElement(_common.Collapse, {
70
+ headerSize: "middle",
71
+ onRefresh: this.reRender,
72
+ source: [{
73
+ key: 'headlineConfig',
74
+ name: (0, _locale.i18n)('HEADLINE'),
75
+ value: /*#__PURE__*/_react["default"].createElement(_TextConfig["default"], {
76
+ data: panelProps.headline
77
+ }),
78
+ metaOption: panelProps.headline
79
+ }],
80
+ type: "switch"
81
+ }));
82
+ };
83
+
84
+ ConfigTitle.defaultProps = {
85
+ panelProps: {
86
+ headline: {}
87
+ }
88
+ };
89
+ return ConfigTitle;
90
+ }(_react["default"].Component);
91
+
92
+ var _default = ConfigTitle;
93
+ exports["default"] = _default;
@@ -0,0 +1,69 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports["default"] = FlashDealConfig;
7
+
8
+ var _react = _interopRequireDefault(require("react"));
9
+
10
+ var _ConfigTitle = _interopRequireDefault(require("./ConfigTitle"));
11
+
12
+ var _ConfigContent = _interopRequireDefault(require("./ConfigContent"));
13
+
14
+ var _SpacingConfig = _interopRequireDefault(require("../../../common/config-panels/SpacingConfig"));
15
+
16
+ var _BackgroundConfig = _interopRequireDefault(require("../../../common/config-panels/BackgroundConfig"));
17
+
18
+ var _CustomizeConfig = _interopRequireDefault(require("../../../common/config-panels/CustomizeConfig"));
19
+
20
+ var _Collapse = _interopRequireDefault(require("../../../../common/Collapse"));
21
+
22
+ var _locale = require("../../../../locale");
23
+
24
+ var _layout = require("../../../../constants/layout");
25
+
26
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
27
+
28
+ function FlashDealConfig(props) {
29
+ var data = props.data;
30
+ return /*#__PURE__*/_react["default"].createElement("div", null, /*#__PURE__*/_react["default"].createElement(_Collapse["default"], {
31
+ divider: "bold",
32
+ headerSize: "large",
33
+ source: [{
34
+ key: '1',
35
+ name: (0, _locale.i18n)('TITLE'),
36
+ value: /*#__PURE__*/_react["default"].createElement(_ConfigTitle["default"], {
37
+ panelProps: data.title
38
+ })
39
+ }, {
40
+ key: '2',
41
+ name: (0, _locale.i18n)('CONTENT'),
42
+ value: /*#__PURE__*/_react["default"].createElement(_ConfigContent["default"], {
43
+ panelProps: data
44
+ })
45
+ }, {
46
+ key: '3',
47
+ name: (0, _locale.i18n)('SPACING'),
48
+ value: /*#__PURE__*/_react["default"].createElement(_SpacingConfig["default"], {
49
+ configCompSpace: true,
50
+ data: data.spacing
51
+ })
52
+ }, {
53
+ key: '4',
54
+ name: (0, _locale.i18n)('CUSTOMIZE'),
55
+ value: /*#__PURE__*/_react["default"].createElement(_CustomizeConfig["default"], {
56
+ data: data.customize,
57
+ isHideAlign: true,
58
+ layoutSource: _layout.campaignLayout
59
+ })
60
+ }, {
61
+ key: '5',
62
+ name: (0, _locale.i18n)('BACKGROUND'),
63
+ value: /*#__PURE__*/_react["default"].createElement(_BackgroundConfig["default"], {
64
+ data: data.background
65
+ })
66
+ }],
67
+ type: "triangle"
68
+ }));
69
+ }
@@ -0,0 +1,109 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports["default"] = void 0;
7
+
8
+ var _react = _interopRequireDefault(require("react"));
9
+
10
+ var _locale = require("../../../../locale");
11
+
12
+ var _common = require("../../../../common");
13
+
14
+ var _TextConfig = _interopRequireDefault(require("../../../../meta-comp/config-panels/TextConfig"));
15
+
16
+ var _BaseConfig = _interopRequireDefault(require("../../../../meta-comp/config-panels/BaseConfig"));
17
+
18
+ var _coreUtil = require("../../../../utils/coreUtil");
19
+
20
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
21
+
22
+ var __extends = void 0 && (void 0).__extends || function () {
23
+ var _extendStatics = function extendStatics(d, b) {
24
+ _extendStatics = Object.setPrototypeOf || {
25
+ __proto__: []
26
+ } instanceof Array && function (d, b) {
27
+ d.__proto__ = b;
28
+ } || function (d, b) {
29
+ for (var p in b) {
30
+ if (b.hasOwnProperty(p)) d[p] = b[p];
31
+ }
32
+ };
33
+
34
+ return _extendStatics(d, b);
35
+ };
36
+
37
+ return function (d, b) {
38
+ _extendStatics(d, b);
39
+
40
+ function __() {
41
+ this.constructor = d;
42
+ }
43
+
44
+ d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
45
+ };
46
+ }();
47
+
48
+ var CampaignSecondConfig =
49
+ /** @class */
50
+ function (_super) {
51
+ __extends(CampaignSecondConfig, _super);
52
+
53
+ function CampaignSecondConfig() {
54
+ var _this = _super !== null && _super.apply(this, arguments) || this;
55
+
56
+ _this.state = {};
57
+
58
+ _this.getContentPanel = function () {
59
+ var panelProps = _this.props.panelProps;
60
+ var defaultSource = [{
61
+ key: 'defaultSource_1',
62
+ name: (0, _locale.i18n)('TITLE'),
63
+ value: /*#__PURE__*/_react["default"].createElement(_TextConfig["default"], {
64
+ data: panelProps.groupName,
65
+ editText: true
66
+ }),
67
+ metaOption: panelProps.groupName
68
+ }];
69
+ return /*#__PURE__*/_react["default"].createElement(_react["default"].Fragment, null, /*#__PURE__*/_react["default"].createElement(_common.Collapse, {
70
+ headerSize: "middle",
71
+ onRefresh: function onRefresh() {
72
+ return (0, _coreUtil.renderPreview)();
73
+ },
74
+ showActiveColor: true,
75
+ source: defaultSource,
76
+ type: "switch"
77
+ }));
78
+ };
79
+
80
+ return _this;
81
+ }
82
+
83
+ CampaignSecondConfig.prototype.render = function () {
84
+ var _this = this;
85
+
86
+ return /*#__PURE__*/_react["default"].createElement("div", {
87
+ className: "campaign_second_conf_wrap"
88
+ }, /*#__PURE__*/_react["default"].createElement(_common.Collapse, {
89
+ divider: "bold",
90
+ headerSize: "large",
91
+ onRefresh: function onRefresh() {
92
+ return _this.resetHover();
93
+ },
94
+ source: [{
95
+ key: '1',
96
+ name: (0, _locale.i18n)('CONTENT'),
97
+ value: this.getContentPanel()
98
+ }]
99
+ }));
100
+ };
101
+
102
+ CampaignSecondConfig.defaultProps = {
103
+ panelProps: {}
104
+ };
105
+ return CampaignSecondConfig;
106
+ }(_BaseConfig["default"]);
107
+
108
+ var _default = CampaignSecondConfig;
109
+ exports["default"] = _default;
@@ -67,6 +67,8 @@ var _SearchDITO = _interopRequireDefault(require("../composite-comp/dito/compone
67
67
 
68
68
  var _News = _interopRequireDefault(require("../composite-comp/dito/components/News"));
69
69
 
70
+ var _Campaign = _interopRequireDefault(require("../composite-comp/dito/components/Campaign"));
71
+
70
72
  var _MonpayRecommend = _interopRequireDefault(require("../composite-comp/monpay/components/MonpayRecommend"));
71
73
 
72
74
  var _MonpayFlashDeal = _interopRequireDefault(require("../composite-comp/monpay/components/MonpayFlashDeal"));
@@ -147,6 +149,8 @@ var _SearchDITOConfig = _interopRequireDefault(require("../composite-comp/dito/c
147
149
 
148
150
  var _NewsConfig = _interopRequireDefault(require("../composite-comp/dito/config-panels/NewsConfig"));
149
151
 
152
+ var _CampaignConfig = _interopRequireDefault(require("../composite-comp/dito/config-panels/CampaignConfig"));
153
+
150
154
  var _MonpayRecommendConfig = _interopRequireDefault(require("../composite-comp/monpay/config-panels/MonpayRecommendConfig"));
151
155
 
152
156
  var _MonpayFlashDealConfig = _interopRequireDefault(require("../composite-comp/monpay/config-panels/MonpayFlashDealConfig"));
@@ -211,6 +215,8 @@ var _SearchDITOSecondConfig = _interopRequireDefault(require("../composite-comp/
211
215
 
212
216
  var _NewsSecondConfig = _interopRequireDefault(require("../composite-comp/dito/second-config-panels/NewsSecondConfig"));
213
217
 
218
+ var _CampaignSecondConfig = _interopRequireDefault(require("../composite-comp/dito/second-config-panels/CampaignSecondConfig"));
219
+
214
220
  var _MonpayRecommendSecondConfig = _interopRequireDefault(require("../composite-comp/monpay/second-config-panels/MonpayRecommendSecondConfig"));
215
221
 
216
222
  var _WalletSecondConfig = _interopRequireDefault(require("../composite-comp/public/second-config-panels/WalletSecondConfig"));
@@ -223,17 +229,17 @@ var _a, _b, _c; // 组件
223
229
  /**
224
230
  * 渲染组件索引
225
231
  */
226
- var componentMap = (_a = {}, _a[_Banner["default"].type] = _Banner["default"], _a[_Video["default"].type] = _Video["default"], _a[_Text["default"].type] = _Text["default"], _a[_FlashDeal["default"].type] = _FlashDeal["default"], _a[_MonpayFlashDeal["default"].type] = _MonpayFlashDeal["default"], _a[_GroupBuy["default"].type] = _GroupBuy["default"], _a[_SearchBar["default"].type] = _SearchBar["default"], _a[_SignBoard["default"].type] = _SignBoard["default"], _a[_MenuNavigation["default"].type] = _MenuNavigation["default"], _a[_HeadNavigation["default"].type] = _HeadNavigation["default"], _a[_PersonalInformation["default"].type] = _PersonalInformation["default"], _a[_CommonFunctions["default"].type] = _CommonFunctions["default"], _a[_ImageText["default"].type] = _ImageText["default"], _a[_Recommend["default"].type] = _Recommend["default"], _a[_AffiliateRecommend["default"].type] = _AffiliateRecommend["default"], _a[_MonpayRecommend["default"].type] = _MonpayRecommend["default"], _a[_InterestProducts["default"].type] = _InterestProducts["default"], _a[_Bundle["default"].type] = _Bundle["default"], _a[_MerchantSales["default"].type] = _MerchantSales["default"], _a[_MobileNavigation["default"].type] = _MobileNavigation["default"], _a[_PcNavigation["default"].type] = _PcNavigation["default"], _a[_Divider["default"].type] = _Divider["default"], _a[_ImageGallery["default"].type] = _ImageGallery["default"], _a[_Newsletter["default"].type] = _Newsletter["default"], _a[_Carousel["default"].type] = _Carousel["default"], _a[_Button["default"].type] = _Button["default"], _a[_Tag["default"].type] = _Tag["default"], _a[_WalletAshita["default"].type] = _WalletAshita["default"], _a[_WalletNuri["default"].type] = _WalletNuri["default"], _a[_Wallet["default"].type] = _Wallet["default"], _a[_CustomCode["default"].type] = _CustomCode["default"], _a[_Location["default"].type] = _Location["default"], _a[_Stores["default"].type] = _Stores["default"], _a[_Bargain["default"].type] = _Bargain["default"], _a[_MonpaySignBoard["default"].type] = _MonpaySignBoard["default"], _a[_SearchBanner["default"].type] = _SearchBanner["default"], _a[_GroupedCarousel["default"].type] = _GroupedCarousel["default"], _a[_SlideImage["default"].type] = _SlideImage["default"], _a[_SearchDITO["default"].type] = _SearchDITO["default"], _a[_News["default"].type] = _News["default"], _a);
232
+ var componentMap = (_a = {}, _a[_Banner["default"].type] = _Banner["default"], _a[_Video["default"].type] = _Video["default"], _a[_Text["default"].type] = _Text["default"], _a[_FlashDeal["default"].type] = _FlashDeal["default"], _a[_MonpayFlashDeal["default"].type] = _MonpayFlashDeal["default"], _a[_GroupBuy["default"].type] = _GroupBuy["default"], _a[_SearchBar["default"].type] = _SearchBar["default"], _a[_SignBoard["default"].type] = _SignBoard["default"], _a[_MenuNavigation["default"].type] = _MenuNavigation["default"], _a[_HeadNavigation["default"].type] = _HeadNavigation["default"], _a[_PersonalInformation["default"].type] = _PersonalInformation["default"], _a[_CommonFunctions["default"].type] = _CommonFunctions["default"], _a[_ImageText["default"].type] = _ImageText["default"], _a[_Recommend["default"].type] = _Recommend["default"], _a[_AffiliateRecommend["default"].type] = _AffiliateRecommend["default"], _a[_MonpayRecommend["default"].type] = _MonpayRecommend["default"], _a[_InterestProducts["default"].type] = _InterestProducts["default"], _a[_Bundle["default"].type] = _Bundle["default"], _a[_MerchantSales["default"].type] = _MerchantSales["default"], _a[_MobileNavigation["default"].type] = _MobileNavigation["default"], _a[_PcNavigation["default"].type] = _PcNavigation["default"], _a[_Divider["default"].type] = _Divider["default"], _a[_ImageGallery["default"].type] = _ImageGallery["default"], _a[_Newsletter["default"].type] = _Newsletter["default"], _a[_Carousel["default"].type] = _Carousel["default"], _a[_Button["default"].type] = _Button["default"], _a[_Tag["default"].type] = _Tag["default"], _a[_WalletAshita["default"].type] = _WalletAshita["default"], _a[_WalletNuri["default"].type] = _WalletNuri["default"], _a[_Wallet["default"].type] = _Wallet["default"], _a[_CustomCode["default"].type] = _CustomCode["default"], _a[_Location["default"].type] = _Location["default"], _a[_Stores["default"].type] = _Stores["default"], _a[_Bargain["default"].type] = _Bargain["default"], _a[_MonpaySignBoard["default"].type] = _MonpaySignBoard["default"], _a[_SearchBanner["default"].type] = _SearchBanner["default"], _a[_GroupedCarousel["default"].type] = _GroupedCarousel["default"], _a[_SlideImage["default"].type] = _SlideImage["default"], _a[_SearchDITO["default"].type] = _SearchDITO["default"], _a[_News["default"].type] = _News["default"], _a[_Campaign["default"].type] = _Campaign["default"], _a);
227
233
  /**
228
234
  * 一级配置面板索引
229
235
  */
230
236
 
231
237
  exports.componentMap = componentMap;
232
- var configPanelMap = (_b = {}, _b[_Banner["default"].type] = _BannerConfig["default"], _b[_Video["default"].type] = _VideoConfig["default"], _b[_Text["default"].type] = _TextCompConfig["default"], _b[_FlashDeal["default"].type] = _FlashDealConfig["default"], _b[_MonpayFlashDeal["default"].type] = _MonpayFlashDealConfig["default"], _b[_GroupBuy["default"].type] = _GroupBuyConfig["default"], _b[_SearchBar["default"].type] = _SearchBarConfig["default"], _b[_SignBoard["default"].type] = _SignBoardConfig["default"], _b[_MenuNavigation["default"].type] = _MenuNavigationConfig["default"], _b[_HeadNavigation["default"].type] = _HeadNavigationConfig["default"], _b[_PersonalInformation["default"].type] = _PersonalInformationConfig["default"], _b[_CommonFunctions["default"].type] = _CommonFunctionsConfig["default"], _b[_ImageText["default"].type] = _ImageTextConfig["default"], _b[_Recommend["default"].type] = _RecommendConfig["default"], _b[_AffiliateRecommend["default"].type] = _AffiliateRecommendConfig["default"], _b[_MonpayRecommend["default"].type] = _MonpayRecommendConfig["default"], _b[_InterestProducts["default"].type] = _InterestProductsConfig["default"], _b[_Bundle["default"].type] = _BundleConfig["default"], _b[_MerchantSales["default"].type] = _MerchantSalesConfig["default"], _b[_MobileNavigation["default"].type] = _MobileNavigationConfig["default"], _b[_PcNavigation["default"].type] = _PcNavigationConfig["default"], _b[_Divider["default"].type] = _DividerConfig["default"], _b[_ImageGallery["default"].type] = _ImageGalleryConfig["default"], _b[_Newsletter["default"].type] = _NewsletterConfig["default"], _b[_Carousel["default"].type] = _CarouselConfig["default"], _b[_Button["default"].type] = _ButtonCompConfig["default"], _b[_Tag["default"].type] = _TagCompConfig["default"], _b[_WalletAshita["default"].type] = _WalletAshitaConfig["default"], _b[_WalletNuri["default"].type] = _WalletNuriConfig["default"], _b[_Wallet["default"].type] = _WalletConfig["default"], _b[_CustomCode["default"].type] = _CustomCodeConfig["default"], _b[_Location["default"].type] = _LocationConfig["default"], _b[_Stores["default"].type] = _StoresConfig["default"], _b[_Bargain["default"].type] = _BargainConfig["default"], _b[_MonpaySignBoard["default"].type] = _MonpaySignBoardConfig["default"], _b[_SearchBanner["default"].type] = _SearchBannerConfig["default"], _b[_GroupedCarousel["default"].type] = _GroupedCarouselConfig["default"], _b[_SlideImage["default"].type] = _SlideImageConfig["default"], _b[_SearchDITO["default"].type] = _SearchDITOConfig["default"], _b[_News["default"].type] = _NewsConfig["default"], _b);
238
+ var configPanelMap = (_b = {}, _b[_Banner["default"].type] = _BannerConfig["default"], _b[_Video["default"].type] = _VideoConfig["default"], _b[_Text["default"].type] = _TextCompConfig["default"], _b[_FlashDeal["default"].type] = _FlashDealConfig["default"], _b[_MonpayFlashDeal["default"].type] = _MonpayFlashDealConfig["default"], _b[_GroupBuy["default"].type] = _GroupBuyConfig["default"], _b[_SearchBar["default"].type] = _SearchBarConfig["default"], _b[_SignBoard["default"].type] = _SignBoardConfig["default"], _b[_MenuNavigation["default"].type] = _MenuNavigationConfig["default"], _b[_HeadNavigation["default"].type] = _HeadNavigationConfig["default"], _b[_PersonalInformation["default"].type] = _PersonalInformationConfig["default"], _b[_CommonFunctions["default"].type] = _CommonFunctionsConfig["default"], _b[_ImageText["default"].type] = _ImageTextConfig["default"], _b[_Recommend["default"].type] = _RecommendConfig["default"], _b[_AffiliateRecommend["default"].type] = _AffiliateRecommendConfig["default"], _b[_MonpayRecommend["default"].type] = _MonpayRecommendConfig["default"], _b[_InterestProducts["default"].type] = _InterestProductsConfig["default"], _b[_Bundle["default"].type] = _BundleConfig["default"], _b[_MerchantSales["default"].type] = _MerchantSalesConfig["default"], _b[_MobileNavigation["default"].type] = _MobileNavigationConfig["default"], _b[_PcNavigation["default"].type] = _PcNavigationConfig["default"], _b[_Divider["default"].type] = _DividerConfig["default"], _b[_ImageGallery["default"].type] = _ImageGalleryConfig["default"], _b[_Newsletter["default"].type] = _NewsletterConfig["default"], _b[_Carousel["default"].type] = _CarouselConfig["default"], _b[_Button["default"].type] = _ButtonCompConfig["default"], _b[_Tag["default"].type] = _TagCompConfig["default"], _b[_WalletAshita["default"].type] = _WalletAshitaConfig["default"], _b[_WalletNuri["default"].type] = _WalletNuriConfig["default"], _b[_Wallet["default"].type] = _WalletConfig["default"], _b[_CustomCode["default"].type] = _CustomCodeConfig["default"], _b[_Location["default"].type] = _LocationConfig["default"], _b[_Stores["default"].type] = _StoresConfig["default"], _b[_Bargain["default"].type] = _BargainConfig["default"], _b[_MonpaySignBoard["default"].type] = _MonpaySignBoardConfig["default"], _b[_SearchBanner["default"].type] = _SearchBannerConfig["default"], _b[_GroupedCarousel["default"].type] = _GroupedCarouselConfig["default"], _b[_SlideImage["default"].type] = _SlideImageConfig["default"], _b[_SearchDITO["default"].type] = _SearchDITOConfig["default"], _b[_News["default"].type] = _NewsConfig["default"], _b[_Campaign["default"].type] = _CampaignConfig["default"], _b);
233
239
  /**
234
240
  * 二级配置面板索引
235
241
  */
236
242
 
237
243
  exports.configPanelMap = configPanelMap;
238
- var secondConfigPanelMap = (_c = {}, _c[_Banner["default"].type] = _BannerSecondConfig["default"], _c[_Video["default"].type] = _VideoSecondConfig["default"], _c[_Text["default"].type] = _TextSecondConfig["default"], _c[_ImageText["default"].type] = _ImageTextSecondConfig["default"], _c[_Recommend["default"].type] = _RecommendSecondConfig["default"], _c[_AffiliateRecommend["default"].type] = _AffiliateRecommendSecondConfig["default"], _c[_MonpayRecommend["default"].type] = _MonpayRecommendSecondConfig["default"], _c[_MobileNavigation["default"].type] = _MobileNavigationSecondConfig["default"], _c[_PcNavigation["default"].type] = _PcNavigationSecondConfig["default"], _c[_MenuNavigation["default"].type] = _MenuNavigationSecondConfig["default"], _c[_HeadNavigation["default"].type] = _HeadNavigationSecondConfig["default"], _c[_PersonalInformation["default"].type] = _PersonalInformationSecondConfig["default"], _c[_CommonFunctions["default"].type] = _CommonFunctionsSecondConfig["default"], _c[_Carousel["default"].type] = _CarouselSecondConfig["default"], _c[_ImageGallery["default"].type] = _ImageGallerySecondConfig["default"], _c[_Tag["default"].type] = _TagSecondConfig["default"], _c[_Button["default"].type] = _ButtonSecondConfig["default"], _c[_WalletAshita["default"].type] = _WalletAshitaSecondConfig["default"], _c[_WalletNuri["default"].type] = _WalletNuriSecondConfig["default"], _c[_Wallet["default"].type] = _WalletSecondConfig["default"], _c[_SearchBanner["default"].type] = _SearchBannerSecondConfig["default"], _c[_GroupedCarousel["default"].type] = _GroupedCarouselSecondConfig["default"], _c[_SlideImage["default"].type] = _SlideImageSecondConfig["default"], _c[_SearchDITO["default"].type] = _SearchDITOSecondConfig["default"], _c[_News["default"].type] = _NewsSecondConfig["default"], _c);
244
+ var secondConfigPanelMap = (_c = {}, _c[_Banner["default"].type] = _BannerSecondConfig["default"], _c[_Video["default"].type] = _VideoSecondConfig["default"], _c[_Text["default"].type] = _TextSecondConfig["default"], _c[_ImageText["default"].type] = _ImageTextSecondConfig["default"], _c[_Recommend["default"].type] = _RecommendSecondConfig["default"], _c[_AffiliateRecommend["default"].type] = _AffiliateRecommendSecondConfig["default"], _c[_MonpayRecommend["default"].type] = _MonpayRecommendSecondConfig["default"], _c[_MobileNavigation["default"].type] = _MobileNavigationSecondConfig["default"], _c[_PcNavigation["default"].type] = _PcNavigationSecondConfig["default"], _c[_MenuNavigation["default"].type] = _MenuNavigationSecondConfig["default"], _c[_HeadNavigation["default"].type] = _HeadNavigationSecondConfig["default"], _c[_PersonalInformation["default"].type] = _PersonalInformationSecondConfig["default"], _c[_CommonFunctions["default"].type] = _CommonFunctionsSecondConfig["default"], _c[_Carousel["default"].type] = _CarouselSecondConfig["default"], _c[_ImageGallery["default"].type] = _ImageGallerySecondConfig["default"], _c[_Tag["default"].type] = _TagSecondConfig["default"], _c[_Button["default"].type] = _ButtonSecondConfig["default"], _c[_WalletAshita["default"].type] = _WalletAshitaSecondConfig["default"], _c[_WalletNuri["default"].type] = _WalletNuriSecondConfig["default"], _c[_Wallet["default"].type] = _WalletSecondConfig["default"], _c[_SearchBanner["default"].type] = _SearchBannerSecondConfig["default"], _c[_GroupedCarousel["default"].type] = _GroupedCarouselSecondConfig["default"], _c[_SlideImage["default"].type] = _SlideImageSecondConfig["default"], _c[_SearchDITO["default"].type] = _SearchDITOSecondConfig["default"], _c[_News["default"].type] = _NewsSecondConfig["default"], _c[_Campaign["default"].type] = _CampaignSecondConfig["default"], _c);
239
245
  exports.secondConfigPanelMap = secondConfigPanelMap;
@@ -371,6 +371,10 @@ var compInfoMap = {
371
371
  NEWS: {
372
372
  name: 'News',
373
373
  icon: 'icon-filled-image'
374
+ },
375
+ CAMPAIGN: {
376
+ name: 'Campaign',
377
+ icon: 'icon-carousel'
374
378
  }
375
379
  };
376
380
  /**
@@ -3,7 +3,7 @@
3
3
  Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
- exports.videoPCLayout = exports.videoH5Layout = exports.textLayout = exports.tagLayout = exports.storesLayout = exports.slideImageLayout = exports.searchLayout = exports.searchDitoLayout = exports.recommendLayoutPc = exports.recommendLayoutMobile = exports.pcNavigationLayout = exports.pcFlashDealLayout = exports.newsletterLayout = exports.newsLayout = exports.monpaySignBoardLayout = exports.monpayRecommendLayoutMobile = exports.monpayFlashDealLayout = exports.mobileNavigationLayout = exports.merchantSalesLayout = exports.locationLayout = exports.interestLayout = exports.imageTextLayoutPc = exports.imageTextLayoutMobile = exports.imageGalleryLayout = exports.groupedCarouselLayout = exports.groupBuyLayout = exports.flashDealLayout = exports.dividerLayout = exports.defaultLayout = exports.carouselLayout = exports.buttonLayout = exports.bundleLayout = exports.bargainLayout = exports.bannerSlideLayout = exports.affiliateLayoutPc = exports.affiliateLayoutMobile = exports.WalletNuriLayout = exports.WalletLayout = void 0;
6
+ exports.videoPCLayout = exports.videoH5Layout = exports.textLayout = exports.tagLayout = exports.storesLayout = exports.slideImageLayout = exports.searchLayout = exports.searchDitoLayout = exports.recommendLayoutPc = exports.recommendLayoutMobile = exports.pcNavigationLayout = exports.pcFlashDealLayout = exports.newsletterLayout = exports.newsLayout = exports.monpaySignBoardLayout = exports.monpayRecommendLayoutMobile = exports.monpayFlashDealLayout = exports.mobileNavigationLayout = exports.merchantSalesLayout = exports.locationLayout = exports.interestLayout = exports.imageTextLayoutPc = exports.imageTextLayoutMobile = exports.imageGalleryPcLayout = exports.imageGalleryLayout = exports.groupedCarouselLayout = exports.groupBuyLayout = exports.flashDealLayout = exports.dividerLayout = exports.defaultLayout = exports.carouselLayout = exports.campaignLayout = exports.buttonLayout = exports.bundleLayout = exports.bargainLayout = exports.bannerSlideLayout = exports.affiliateLayoutPc = exports.affiliateLayoutMobile = exports.WalletNuriLayout = exports.WalletLayout = void 0;
7
7
 
8
8
  var _dividerLayout = _interopRequireDefault(require("../assets/images/layout-icon/dividerLayout.svg"));
9
9
 
@@ -13,6 +13,10 @@ var _imageGalleryLayout = _interopRequireDefault(require("../assets/images/layou
13
13
 
14
14
  var _imageGalleryLayout2 = _interopRequireDefault(require("../assets/images/layout-icon/imageGalleryLayout2.png"));
15
15
 
16
+ var _imageGalleryLayout3 = _interopRequireDefault(require("../assets/images/layout-icon/imageGalleryLayout3.png"));
17
+
18
+ var _imageGalleryLayout4 = _interopRequireDefault(require("../assets/images/layout-icon/imageGalleryLayout4.png"));
19
+
16
20
  var _walletNuriLayout = _interopRequireDefault(require("../assets/images/layout-icon/walletNuriLayout1.png"));
17
21
 
18
22
  var _walletLayout = _interopRequireDefault(require("../assets/images/layout-icon/walletLayout1.png"));
@@ -135,6 +139,8 @@ var _searchDitoLayout = _interopRequireDefault(require("../assets/images/layout-
135
139
 
136
140
  var _newsLayout = _interopRequireDefault(require("../assets/images/layout-icon/news-layout1.png"));
137
141
 
142
+ var _campaignLayout = _interopRequireDefault(require("../assets/images/layout-icon/campaignLayout1.png"));
143
+
138
144
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
139
145
 
140
146
  var defaultLayout = [{
@@ -177,8 +183,26 @@ var imageGalleryLayout = [{
177
183
  id: 'layout2',
178
184
  name: 'layout2',
179
185
  image: _imageGalleryLayout2["default"]
186
+ }, {
187
+ id: 'layout3',
188
+ name: 'layout3',
189
+ image: _imageGalleryLayout3["default"]
190
+ }, {
191
+ id: 'layout4',
192
+ name: 'layout4',
193
+ image: _imageGalleryLayout4["default"]
180
194
  }];
181
195
  exports.imageGalleryLayout = imageGalleryLayout;
196
+ var imageGalleryPcLayout = [{
197
+ id: 'layout1',
198
+ name: 'layout1',
199
+ image: _imageGalleryLayout["default"]
200
+ }, {
201
+ id: 'layout2',
202
+ name: 'layout2',
203
+ image: _imageGalleryLayout2["default"]
204
+ }];
205
+ exports.imageGalleryPcLayout = imageGalleryPcLayout;
182
206
  var WalletLayout = [{
183
207
  id: 'layout1',
184
208
  name: 'layout1',
@@ -524,4 +548,10 @@ var newsLayout = [{
524
548
  name: 'layout1',
525
549
  image: _newsLayout["default"]
526
550
  }];
527
- exports.newsLayout = newsLayout;
551
+ exports.newsLayout = newsLayout;
552
+ var campaignLayout = [{
553
+ id: 'layout1',
554
+ name: 'layout1',
555
+ image: _campaignLayout["default"]
556
+ }];
557
+ exports.campaignLayout = campaignLayout;