@fonixtree/magic-design 1.0.175 → 1.0.178

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 (55) hide show
  1. package/es/composite-comp/dito/components/PersonalInformationSecond/defaultJSON.js +168 -0
  2. package/es/composite-comp/dito/components/PersonalInformationSecond/index.js +84 -0
  3. package/es/composite-comp/dito/components/PersonalInformationSecond/mobile/images/avatar.png +0 -0
  4. package/es/composite-comp/dito/components/PersonalInformationSecond/mobile/index.js +710 -0
  5. package/es/composite-comp/dito/components/PersonalInformationSecond/mobile/index.less +196 -0
  6. package/es/composite-comp/dito/components/SearchBanner/defaultJSON.js +4 -0
  7. package/es/composite-comp/dito/components/SearchBanner/mobile/index.js +17 -5
  8. package/es/composite-comp/dito/components/SearchBanner/mobile/index.less +0 -2
  9. package/es/composite-comp/dito/components/SlideImage/defaultJSON.js +22 -28
  10. package/es/composite-comp/dito/config-panels/PersonalInformationSecondConfig/ConfigDecoration/index.js +91 -0
  11. package/es/composite-comp/dito/config-panels/PersonalInformationSecondConfig/ConfigDecoration/index.less +9 -0
  12. package/es/composite-comp/dito/config-panels/PersonalInformationSecondConfig/OrdersConfigGroup/index.js +131 -0
  13. package/es/composite-comp/dito/config-panels/PersonalInformationSecondConfig/PersonInfoConfigGroup/index.js +131 -0
  14. package/es/composite-comp/dito/config-panels/PersonalInformationSecondConfig/index.js +127 -0
  15. package/es/composite-comp/dito/config-panels/SearchBannerConfig/ConfigContent/index.js +21 -5
  16. package/es/composite-comp/dito/config-panels/SlideImageConfig/index.js +19 -1
  17. package/es/composite-comp/dito/second-config-panels/PersonalInformationSecondSecondConfig/index.js +206 -0
  18. package/es/composite-comp/dito/second-config-panels/PersonalInformationSecondSecondConfig/index.less +9 -0
  19. package/es/composite-comp/dito/second-config-panels/SlideImageSecondConfig/index.js +14 -0
  20. package/es/constants/component-types.js +10 -4
  21. package/es/constants/index.js +4 -0
  22. package/es/core/Designer/ConfigPanel/index.js +1 -0
  23. package/es/decorator/compositeDecorator.js +1 -1
  24. package/es/locale/en/en.json +1 -0
  25. package/es/locale/es/es.json +1 -0
  26. package/es/locale/id/id.json +1 -0
  27. package/es/meta-comp/config-panels/ImageConfig/index.js +24 -16
  28. package/lib/composite-comp/dito/components/PersonalInformationSecond/defaultJSON.js +168 -0
  29. package/lib/composite-comp/dito/components/PersonalInformationSecond/index.js +84 -0
  30. package/lib/composite-comp/dito/components/PersonalInformationSecond/mobile/images/avatar.png +0 -0
  31. package/lib/composite-comp/dito/components/PersonalInformationSecond/mobile/index.js +710 -0
  32. package/lib/composite-comp/dito/components/PersonalInformationSecond/mobile/index.less +196 -0
  33. package/lib/composite-comp/dito/components/SearchBanner/defaultJSON.js +4 -0
  34. package/lib/composite-comp/dito/components/SearchBanner/mobile/index.js +17 -5
  35. package/lib/composite-comp/dito/components/SearchBanner/mobile/index.less +0 -2
  36. package/lib/composite-comp/dito/components/SlideImage/defaultJSON.js +22 -28
  37. package/lib/composite-comp/dito/config-panels/PersonalInformationSecondConfig/ConfigDecoration/index.js +91 -0
  38. package/lib/composite-comp/dito/config-panels/PersonalInformationSecondConfig/ConfigDecoration/index.less +9 -0
  39. package/lib/composite-comp/dito/config-panels/PersonalInformationSecondConfig/OrdersConfigGroup/index.js +131 -0
  40. package/lib/composite-comp/dito/config-panels/PersonalInformationSecondConfig/PersonInfoConfigGroup/index.js +131 -0
  41. package/lib/composite-comp/dito/config-panels/PersonalInformationSecondConfig/index.js +127 -0
  42. package/lib/composite-comp/dito/config-panels/SearchBannerConfig/ConfigContent/index.js +21 -5
  43. package/lib/composite-comp/dito/config-panels/SlideImageConfig/index.js +19 -1
  44. package/lib/composite-comp/dito/second-config-panels/PersonalInformationSecondSecondConfig/index.js +206 -0
  45. package/lib/composite-comp/dito/second-config-panels/PersonalInformationSecondSecondConfig/index.less +9 -0
  46. package/lib/composite-comp/dito/second-config-panels/SlideImageSecondConfig/index.js +14 -0
  47. package/lib/constants/component-types.js +10 -4
  48. package/lib/constants/index.js +4 -0
  49. package/lib/core/Designer/ConfigPanel/index.js +1 -0
  50. package/lib/decorator/compositeDecorator.js +1 -1
  51. package/lib/locale/en/en.json +1 -0
  52. package/lib/locale/es/es.json +1 -0
  53. package/lib/locale/id/id.json +1 -0
  54. package/lib/meta-comp/config-panels/ImageConfig/index.js +24 -16
  55. package/package.json +1 -1
@@ -0,0 +1,127 @@
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 _ConfigDecoration = _interopRequireDefault(require("./ConfigDecoration"));
11
+
12
+ var _OrdersConfigGroup = _interopRequireDefault(require("./OrdersConfigGroup"));
13
+
14
+ var _locale = require("../../../../locale");
15
+
16
+ var _common = require("../../../../common");
17
+
18
+ var _BackgroundConfig = _interopRequireDefault(require("../../../common/config-panels/BackgroundConfig"));
19
+
20
+ var _coreUtil = require("../../../../utils/coreUtil");
21
+
22
+ var _SpacingConfig = _interopRequireDefault(require("../../../common/config-panels/SpacingConfig"));
23
+
24
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
25
+
26
+ var __extends = void 0 && (void 0).__extends || function () {
27
+ var _extendStatics = function extendStatics(d, b) {
28
+ _extendStatics = Object.setPrototypeOf || {
29
+ __proto__: []
30
+ } instanceof Array && function (d, b) {
31
+ d.__proto__ = b;
32
+ } || function (d, b) {
33
+ for (var p in b) {
34
+ if (b.hasOwnProperty(p)) d[p] = b[p];
35
+ }
36
+ };
37
+
38
+ return _extendStatics(d, b);
39
+ };
40
+
41
+ return function (d, b) {
42
+ _extendStatics(d, b);
43
+
44
+ function __() {
45
+ this.constructor = d;
46
+ }
47
+
48
+ d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
49
+ };
50
+ }();
51
+
52
+ var PersonalInformationConfig =
53
+ /** @class */
54
+ function (_super) {
55
+ __extends(PersonalInformationConfig, _super);
56
+
57
+ function PersonalInformationConfig() {
58
+ var _this = _super !== null && _super.apply(this, arguments) || this;
59
+
60
+ _this.getContentPanel = function () {
61
+ var data = _this.props.data;
62
+ var source = [{
63
+ key: 1,
64
+ name: (0, _locale.i18n)('LOGIN_OR_REGISTER'),
65
+ metaOption: data.login
66
+ }];
67
+ return /*#__PURE__*/_react["default"].createElement(_common.Collapse, {
68
+ headerSize: "middle",
69
+ onRefresh: function onRefresh() {
70
+ return (0, _coreUtil.renderPreview)();
71
+ },
72
+ source: source,
73
+ type: "switch"
74
+ });
75
+ };
76
+
77
+ return _this;
78
+ }
79
+
80
+ PersonalInformationConfig.prototype.render = function () {
81
+ var data = this.props.data;
82
+ return /*#__PURE__*/_react["default"].createElement("div", null, /*#__PURE__*/_react["default"].createElement(_common.Collapse, {
83
+ divider: "bold",
84
+ headerSize: "large",
85
+ source: [{
86
+ key: 'PersonalInformation1',
87
+ name: (0, _locale.i18n)('LOGIN_OR_REGISTER'),
88
+ value: this.getContentPanel()
89
+ }, {
90
+ key: 'PersonalInformation2',
91
+ name: (0, _locale.i18n)('FESTIVAL_DECORATION'),
92
+ value: /*#__PURE__*/_react["default"].createElement(_ConfigDecoration["default"], {
93
+ data: data.decorationIcon
94
+ })
95
+ }, // { key: 'PersonalInformation3', name: i18n('CONTENT'), value: <PersonInfoConfigGroup maxNum={4} source={data.groupSource} />, metaOption: data.groupSource },
96
+ {
97
+ key: 'PersonalInformation4',
98
+ name: (0, _locale.i18n)('ORDERS'),
99
+ value: /*#__PURE__*/_react["default"].createElement(_OrdersConfigGroup["default"], {
100
+ maxNum: 5,
101
+ source: data.groupSource2
102
+ }),
103
+ metaOption: data.groupSource2
104
+ }, {
105
+ key: 'PersonalInformation5',
106
+ name: (0, _locale.i18n)('SPACING'),
107
+ value: /*#__PURE__*/_react["default"].createElement(_SpacingConfig["default"], {
108
+ data: data.spacing
109
+ })
110
+ }, {
111
+ key: 'PersonalInformation6',
112
+ name: (0, _locale.i18n)('BACKGROUND'),
113
+ value: /*#__PURE__*/_react["default"].createElement(_BackgroundConfig["default"], {
114
+ data: data.background
115
+ })
116
+ }]
117
+ }));
118
+ };
119
+
120
+ PersonalInformationConfig.defaultProps = {
121
+ data: {}
122
+ };
123
+ return PersonalInformationConfig;
124
+ }(_react["default"].Component);
125
+
126
+ var _default = PersonalInformationConfig;
127
+ exports["default"] = _default;
@@ -71,7 +71,7 @@ function (_super) {
71
71
  SearchBarConfigContent.prototype.render = function () {
72
72
  var _this = this;
73
73
 
74
- var _a, _b, _c, _d, _e, _f, _g;
74
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j;
75
75
 
76
76
  var panelProps = this.props.panelProps;
77
77
  var source = [{
@@ -101,6 +101,22 @@ function (_super) {
101
101
  _this.selfRender();
102
102
  },
103
103
  value: (0, _coreUtil.isPc)() ? panelProps.box.color.pc : panelProps.box.color.mobile
104
+ })), /*#__PURE__*/_react["default"].createElement(_common.Field, {
105
+ title: (0, _locale.i18n)('ICON_COLOR')
106
+ }, /*#__PURE__*/_react["default"].createElement(_common.ColorPickerInput, {
107
+ colorType: "rgba",
108
+ onChange: function onChange(v) {
109
+ if ((0, _coreUtil.isPc)()) {
110
+ panelProps.box.iconColor.pc = v;
111
+ } else {
112
+ panelProps.box.iconColor = {
113
+ mobile: v
114
+ };
115
+ }
116
+
117
+ _this.selfRender();
118
+ },
119
+ value: (0, _coreUtil.isPc)() ? (_a = panelProps.box.iconColor) === null || _a === void 0 ? void 0 : _a.pc : (_b = panelProps.box.iconColor) === null || _b === void 0 ? void 0 : _b.mobile
104
120
  })), /*#__PURE__*/_react["default"].createElement(_common.Field, {
105
121
  style: {
106
122
  marginTop: 16
@@ -117,26 +133,26 @@ function (_super) {
117
133
 
118
134
  _this.selfRender();
119
135
  },
120
- value: (0, _coreUtil.isPc)() ? (_b = (_a = panelProps.box) === null || _a === void 0 ? void 0 : _a.backgroundColor) === null || _b === void 0 ? void 0 : _b.pc : (_d = (_c = panelProps.box) === null || _c === void 0 ? void 0 : _c.backgroundColor) === null || _d === void 0 ? void 0 : _d.mobile
136
+ value: (0, _coreUtil.isPc)() ? (_d = (_c = panelProps.box) === null || _c === void 0 ? void 0 : _c.backgroundColor) === null || _d === void 0 ? void 0 : _d.pc : (_f = (_e = panelProps.box) === null || _e === void 0 ? void 0 : _e.backgroundColor) === null || _f === void 0 ? void 0 : _f.mobile
121
137
  }))),
122
138
  metaOption: panelProps.box,
123
139
  toggleType: 'switch'
124
140
  }, {
125
- key: (_e = panelProps.cartIcon) === null || _e === void 0 ? void 0 : _e.id,
141
+ key: (_g = panelProps.cartIcon) === null || _g === void 0 ? void 0 : _g.id,
126
142
  name: (0, _locale.i18n)('CART_ICON'),
127
143
  value: /*#__PURE__*/_react["default"].createElement(_ImageConfig["default"], {
128
144
  data: panelProps.cartIcon
129
145
  }),
130
146
  metaOption: panelProps.cartIcon
131
147
  }, {
132
- key: (_f = panelProps.chatbotIcon) === null || _f === void 0 ? void 0 : _f.id,
148
+ key: (_h = panelProps.chatbotIcon) === null || _h === void 0 ? void 0 : _h.id,
133
149
  name: (0, _locale.i18n)('CHATBOT_ICON'),
134
150
  value: /*#__PURE__*/_react["default"].createElement(_ImageConfig["default"], {
135
151
  data: panelProps.chatbotIcon
136
152
  }),
137
153
  metaOption: panelProps.chatbotIcon
138
154
  }, {
139
- key: (_g = panelProps.messageIcon) === null || _g === void 0 ? void 0 : _g.id,
155
+ key: (_j = panelProps.messageIcon) === null || _j === void 0 ? void 0 : _j.id,
140
156
  name: (0, _locale.i18n)('MESSAGE_ICON'),
141
157
  value: /*#__PURE__*/_react["default"].createElement(_ImageConfig["default"], {
142
158
  data: panelProps.messageIcon
@@ -1,5 +1,7 @@
1
1
  "use strict";
2
2
 
3
+ 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); }
4
+
3
5
  Object.defineProperty(exports, "__esModule", {
4
6
  value: true
5
7
  });
@@ -15,7 +17,7 @@ var _SpacingConfig = _interopRequireDefault(require("../../../common/config-pane
15
17
 
16
18
  var _BackgroundConfig = _interopRequireDefault(require("../../../common/config-panels/BackgroundConfig"));
17
19
 
18
- var _ImageConfig = _interopRequireDefault(require("../../../../meta-comp/config-panels/ImageConfig"));
20
+ var _ImageConfig = _interopRequireWildcard(require("../../../../meta-comp/config-panels/ImageConfig"));
19
21
 
20
22
  var _CustomizeConfig = _interopRequireDefault(require("../../../common/config-panels/CustomizeConfig"));
21
23
 
@@ -23,6 +25,10 @@ var _Collapse = _interopRequireDefault(require("../../../../common/Collapse"));
23
25
 
24
26
  var _locale = require("../../../../locale");
25
27
 
28
+ function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
29
+
30
+ function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { "default": obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj["default"] = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
31
+
26
32
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
27
33
 
28
34
  var __extends = void 0 && (void 0).__extends || function () {
@@ -60,6 +66,18 @@ function (_super) {
60
66
  return _super !== null && _super.apply(this, arguments) || this;
61
67
  }
62
68
 
69
+ SlideImageConfig.prototype.componentDidMount = function () {
70
+ var _a;
71
+
72
+ var data = this.props.data;
73
+
74
+ if (!((_a = data.content) === null || _a === void 0 ? void 0 : _a.moveIcon)) {
75
+ data.content = {
76
+ moveIcon: _ImageConfig.imageJson
77
+ };
78
+ }
79
+ };
80
+
63
81
  SlideImageConfig.prototype.render = function () {
64
82
  var _a, _b;
65
83
 
@@ -0,0 +1,206 @@
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 _antd = require("antd");
11
+
12
+ var _TextConfig = _interopRequireDefault(require("../../../../meta-comp/config-panels/TextConfig"));
13
+
14
+ var _ImageConfig = _interopRequireDefault(require("../../../../meta-comp/config-panels/ImageConfig"));
15
+
16
+ var _common = require("../../../../common");
17
+
18
+ var _coreUtil = require("../../../../utils/coreUtil");
19
+
20
+ var _locale = require("../../../../locale");
21
+
22
+ var _index = require("../../../../constants/index");
23
+
24
+ require("./index.less");
25
+
26
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
27
+
28
+ var __extends = void 0 && (void 0).__extends || function () {
29
+ var _extendStatics = function extendStatics(d, b) {
30
+ _extendStatics = Object.setPrototypeOf || {
31
+ __proto__: []
32
+ } instanceof Array && function (d, b) {
33
+ d.__proto__ = b;
34
+ } || function (d, b) {
35
+ for (var p in b) {
36
+ if (b.hasOwnProperty(p)) d[p] = b[p];
37
+ }
38
+ };
39
+
40
+ return _extendStatics(d, b);
41
+ };
42
+
43
+ return function (d, b) {
44
+ _extendStatics(d, b);
45
+
46
+ function __() {
47
+ this.constructor = d;
48
+ }
49
+
50
+ d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
51
+ };
52
+ }();
53
+
54
+ var PersonalInfoSecondConfig =
55
+ /** @class */
56
+ function (_super) {
57
+ __extends(PersonalInfoSecondConfig, _super);
58
+
59
+ function PersonalInfoSecondConfig() {
60
+ var _this = _super !== null && _super.apply(this, arguments) || this;
61
+
62
+ _this.state = {};
63
+
64
+ _this.selfRender = function () {
65
+ (0, _coreUtil.renderPreview)();
66
+
67
+ _this.setState({});
68
+ };
69
+
70
+ _this.getContentPanel = function (data) {
71
+ var source = [{
72
+ key: 'secondContent1',
73
+ name: /*#__PURE__*/_react["default"].createElement("span", {
74
+ dangerouslySetInnerHTML: {
75
+ __html: data.title.text
76
+ }
77
+ }),
78
+ value: /*#__PURE__*/_react["default"].createElement(_TextConfig["default"], {
79
+ data: data.title
80
+ }),
81
+ metaOption: data.title
82
+ }, {
83
+ key: 'secondContent2',
84
+ name: (0, _locale.i18n)('Number'),
85
+ value: /*#__PURE__*/_react["default"].createElement(_TextConfig["default"], {
86
+ data: data.number
87
+ }),
88
+ metaOption: data.number
89
+ }];
90
+ return /*#__PURE__*/_react["default"].createElement(_react["default"].Fragment, null, /*#__PURE__*/_react["default"].createElement(_common.Collapse, {
91
+ headerSize: "middle",
92
+ onRefresh: function onRefresh() {
93
+ return (0, _coreUtil.renderPreview)();
94
+ },
95
+ showActiveColor: true,
96
+ source: source,
97
+ type: "switch"
98
+ }), /*#__PURE__*/_react["default"].createElement("div", {
99
+ className: "sourceOfAmount"
100
+ }, /*#__PURE__*/_react["default"].createElement(_common.Field, {
101
+ title: (0, _locale.i18n)('SOURCE_OF_AMOUNT')
102
+ }, /*#__PURE__*/_react["default"].createElement(_antd.Select, {
103
+ onChange: function onChange(v) {
104
+ data.sourceType = v;
105
+
106
+ _this.selfRender();
107
+ },
108
+ value: data.sourceType
109
+ }, /*#__PURE__*/_react["default"].createElement(_antd.Select.Option, {
110
+ value: _index.personalInfoType.WISHLIST
111
+ }, (0, _locale.i18n)('WISHLIST')), /*#__PURE__*/_react["default"].createElement(_antd.Select.Option, {
112
+ value: _index.personalInfoType.STORES
113
+ }, (0, _locale.i18n)('STORES')), /*#__PURE__*/_react["default"].createElement(_antd.Select.Option, {
114
+ value: _index.personalInfoType.VOUCHERS
115
+ }, (0, _locale.i18n)('VOUCHERS')), /*#__PURE__*/_react["default"].createElement(_antd.Select.Option, {
116
+ value: _index.personalInfoType.VIEWED
117
+ }, (0, _locale.i18n)('RECENTLY_VIEWED'))))));
118
+ };
119
+
120
+ _this.getOrdersPanel = function (data) {
121
+ var source = [{
122
+ key: 'secondContent3',
123
+ name: (0, _locale.i18n)('Icon'),
124
+ value: /*#__PURE__*/_react["default"].createElement(_ImageConfig["default"], {
125
+ data: data.image
126
+ }),
127
+ metaOption: data.image
128
+ }, {
129
+ key: 'secondContent4',
130
+ name: /*#__PURE__*/_react["default"].createElement("span", {
131
+ dangerouslySetInnerHTML: {
132
+ __html: data.title.text
133
+ }
134
+ }),
135
+ value: /*#__PURE__*/_react["default"].createElement(_TextConfig["default"], {
136
+ data: data.title
137
+ }),
138
+ metaOption: data.title
139
+ }];
140
+ return /*#__PURE__*/_react["default"].createElement(_react["default"].Fragment, null, /*#__PURE__*/_react["default"].createElement(_common.Collapse, {
141
+ headerSize: "middle",
142
+ onRefresh: function onRefresh() {
143
+ return (0, _coreUtil.renderPreview)();
144
+ },
145
+ showActiveColor: true,
146
+ source: source,
147
+ type: "switch"
148
+ }), /*#__PURE__*/_react["default"].createElement("div", {
149
+ className: "sourceOfAmount"
150
+ }, /*#__PURE__*/_react["default"].createElement(_common.Field, {
151
+ title: (0, _locale.i18n)('SOURCE_OF_AMOUNT')
152
+ }, /*#__PURE__*/_react["default"].createElement(_antd.Select, {
153
+ onChange: function onChange(v) {
154
+ data.sourceType = v;
155
+ data.title.text = v;
156
+
157
+ _this.selfRender();
158
+ },
159
+ value: data.sourceType
160
+ }, /*#__PURE__*/_react["default"].createElement(_antd.Select.Option, {
161
+ value: _index.orderStatusType.PAY
162
+ }, (0, _locale.i18n)('TO_PAY')), /*#__PURE__*/_react["default"].createElement(_antd.Select.Option, {
163
+ value: _index.orderStatusType.SHIP
164
+ }, (0, _locale.i18n)('TO_SHIP')), /*#__PURE__*/_react["default"].createElement(_antd.Select.Option, {
165
+ value: _index.orderStatusType.RECEIVE
166
+ }, (0, _locale.i18n)('TO_RECEIVE')), /*#__PURE__*/_react["default"].createElement(_antd.Select.Option, {
167
+ value: _index.orderStatusType.DONE
168
+ }, (0, _locale.i18n)('DONE')), /*#__PURE__*/_react["default"].createElement(_antd.Select.Option, {
169
+ value: _index.orderStatusType.CANCELLED
170
+ }, (0, _locale.i18n)('CANCELLED'))))));
171
+ };
172
+
173
+ return _this;
174
+ }
175
+
176
+ PersonalInfoSecondConfig.prototype.render = function () {
177
+ var panelProps = this.props.panelProps;
178
+ return /*#__PURE__*/_react["default"].createElement("div", {
179
+ className: "personal_info_second_conf_wrap"
180
+ }, panelProps.image ? /*#__PURE__*/_react["default"].createElement(_common.Collapse, {
181
+ divider: "bold",
182
+ headerSize: "large",
183
+ source: [{
184
+ key: 'secondConfig2',
185
+ name: (0, _locale.i18n)('ORDERS'),
186
+ value: this.getOrdersPanel(panelProps, true)
187
+ }]
188
+ }) : /*#__PURE__*/_react["default"].createElement(_common.Collapse, {
189
+ divider: "bold",
190
+ headerSize: "large",
191
+ source: [{
192
+ key: 'secondConfig1',
193
+ name: (0, _locale.i18n)('CONTENT'),
194
+ value: this.getContentPanel(panelProps, true)
195
+ }]
196
+ }));
197
+ };
198
+
199
+ PersonalInfoSecondConfig.defaultProps = {
200
+ panelProps: {}
201
+ };
202
+ return PersonalInfoSecondConfig;
203
+ }(_react["default"].Component);
204
+
205
+ var _default = PersonalInfoSecondConfig;
206
+ exports["default"] = _default;
@@ -0,0 +1,9 @@
1
+ .personal_info_second_conf_wrap {
2
+
3
+ .sourceOfAmount {
4
+ border-top: 1px dashed #D2D9E5;
5
+ border-bottom: 1px dashed #D2D9E5;
6
+ padding-top: 20px;
7
+ padding-bottom: 10px;
8
+ }
9
+ }
@@ -207,6 +207,20 @@ function (_super) {
207
207
  return _this;
208
208
  }
209
209
 
210
+ SlideImageSecondConfig.prototype.componentDidMount = function () {
211
+ var panelProps = this.props.panelProps;
212
+
213
+ if (!panelProps.background) {
214
+ panelProps.background = {
215
+ opacity: 100,
216
+ color: '#fff',
217
+ image: '',
218
+ bgType: 'image'
219
+ };
220
+ this.reRender();
221
+ }
222
+ };
223
+
210
224
  SlideImageSecondConfig.prototype.render = function () {
211
225
  var panelProps = this.props.panelProps;
212
226
  return /*#__PURE__*/_react["default"].createElement("div", {
@@ -55,6 +55,8 @@ var _HeadNavigation = _interopRequireDefault(require("../composite-comp/dito/com
55
55
 
56
56
  var _PersonalInformation = _interopRequireDefault(require("../composite-comp/dito/components/PersonalInformation"));
57
57
 
58
+ var _PersonalInformationSecond = _interopRequireDefault(require("../composite-comp/dito/components/PersonalInformationSecond"));
59
+
58
60
  var _CommonFunctions = _interopRequireDefault(require("../composite-comp/dito/components/CommonFunctions"));
59
61
 
60
62
  var _Bargain = _interopRequireDefault(require("../composite-comp/dito/components/Bargain"));
@@ -121,6 +123,8 @@ var _HeadNavigationConfig = _interopRequireDefault(require("../composite-comp/di
121
123
 
122
124
  var _PersonalInformationConfig = _interopRequireDefault(require("../composite-comp/dito/config-panels/PersonalInformationConfig"));
123
125
 
126
+ var _PersonalInformationSecondConfig = _interopRequireDefault(require("../composite-comp/dito/config-panels/PersonalInformationSecondConfig"));
127
+
124
128
  var _CommonFunctionsConfig = _interopRequireDefault(require("../composite-comp/dito/config-panels/CommonFunctionsConfig"));
125
129
 
126
130
  var _BargainConfig = _interopRequireDefault(require("../composite-comp/dito/config-panels/BargainConfig"));
@@ -169,7 +173,9 @@ var _MenuNavigationSecondConfig = _interopRequireDefault(require("../composite-c
169
173
 
170
174
  var _HeadNavigationSecondConfig = _interopRequireDefault(require("../composite-comp/dito/second-config-panels/HeadNavigationSecondConfig"));
171
175
 
172
- var _PersonalInformationSecondConfig = _interopRequireDefault(require("../composite-comp/dito/second-config-panels/PersonalInformationSecondConfig"));
176
+ var _PersonalInformationSecondConfig2 = _interopRequireDefault(require("../composite-comp/dito/second-config-panels/PersonalInformationSecondConfig"));
177
+
178
+ var _PersonalInformationSecondSecondConfig = _interopRequireDefault(require("../composite-comp/dito/second-config-panels/PersonalInformationSecondSecondConfig"));
173
179
 
174
180
  var _CommonFunctionsSecondConfig = _interopRequireDefault(require("../composite-comp/dito/second-config-panels/CommonFunctionsSecondConfig"));
175
181
 
@@ -193,17 +199,17 @@ var _a, _b, _c; // 组件
193
199
  /**
194
200
  * 渲染组件索引
195
201
  */
196
- 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[_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[_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[_Wallet["default"].type] = _Wallet["default"], _a[_WalletNuri["default"].type] = _WalletNuri["default"], _a[_CustomCode["default"].type] = _CustomCode["default"], _a[_Location["default"].type] = _Location["default"], _a[_Bargain["default"].type] = _Bargain["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);
202
+ 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[_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[_PersonalInformationSecond["default"].type] = _PersonalInformationSecond["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[_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[_Wallet["default"].type] = _Wallet["default"], _a[_WalletNuri["default"].type] = _WalletNuri["default"], _a[_CustomCode["default"].type] = _CustomCode["default"], _a[_Location["default"].type] = _Location["default"], _a[_Bargain["default"].type] = _Bargain["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);
197
203
  /**
198
204
  * 一级配置面板索引
199
205
  */
200
206
 
201
207
  exports.componentMap = componentMap;
202
- 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[_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[_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[_Wallet["default"].type] = _WalletConfig["default"], _b[_WalletNuri["default"].type] = _WalletNuriConfig["default"], _b[_CustomCode["default"].type] = _CustomCodeConfig["default"], _b[_Location["default"].type] = _LocationConfig["default"], _b[_Bargain["default"].type] = _BargainConfig["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);
208
+ 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[_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[_PersonalInformationSecond["default"].type] = _PersonalInformationSecondConfig["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[_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[_Wallet["default"].type] = _WalletConfig["default"], _b[_WalletNuri["default"].type] = _WalletNuriConfig["default"], _b[_CustomCode["default"].type] = _CustomCodeConfig["default"], _b[_Location["default"].type] = _LocationConfig["default"], _b[_Bargain["default"].type] = _BargainConfig["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);
203
209
  /**
204
210
  * 二级配置面板索引
205
211
  */
206
212
 
207
213
  exports.configPanelMap = configPanelMap;
208
- 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[_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[_Wallet["default"].type] = _WalletSecondConfig["default"], _c[_WalletNuri["default"].type] = _WalletNuriSecondConfig["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);
214
+ 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[_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] = _PersonalInformationSecondConfig2["default"], _c[_PersonalInformationSecond["default"].type] = _PersonalInformationSecondSecondConfig["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[_Wallet["default"].type] = _WalletSecondConfig["default"], _c[_WalletNuri["default"].type] = _WalletNuriSecondConfig["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);
209
215
  exports.secondConfigPanelMap = secondConfigPanelMap;
@@ -258,6 +258,10 @@ var compInfoMap = {
258
258
  name: 'Personal Information',
259
259
  icon: 'icon-account'
260
260
  },
261
+ PERSONAL_INFOMATION_SECOND: {
262
+ name: 'Personal Information',
263
+ icon: 'icon-account'
264
+ },
261
265
  COMMON_FUNCTIONS: {
262
266
  name: 'Common Functions',
263
267
  icon: 'icon-function'
@@ -142,6 +142,7 @@ var getSecondConfigName = function getSecondConfigName(selectedNode, clickedGrou
142
142
  break;
143
143
 
144
144
  case 'PERSONAL_INFOMATION':
145
+ case 'PERSONAL_INFOMATION_SECOND':
145
146
  groupName = panelProps.sourceType;
146
147
  break;
147
148
 
@@ -149,7 +149,7 @@ function compositeDecorator(WrappedComponent) {
149
149
  } // 解决pc导航hover上去,类目被下面组件遮罩的问题
150
150
 
151
151
 
152
- if (nodeData.type === 'PC_NAVIGATION' || nodeData.type === 'PERSONAL_INFOMATION') {
152
+ if (nodeData.type === 'PC_NAVIGATION' || nodeData.type === 'PERSONAL_INFOMATION' || nodeData.type === 'PERSONAL_INFOMATION_SECOND') {
153
153
  zIndex = '2';
154
154
  }
155
155
 
@@ -1,4 +1,5 @@
1
1
  {
2
+ "ICON_COLOR": "Icon Color",
2
3
  "FLASH_SALE": "Flash Sale",
3
4
  "COLLECT_VOUCHER_SUCCESS": "Voucher collection successful!",
4
5
  "MOVE_IN_LOGO": "Move In Logo",
@@ -1,4 +1,5 @@
1
1
  {
2
+ "ICON_COLOR": "Icon Color",
2
3
  "FLASH_SALE": "Oferta relámpago",
3
4
  "COLLECT_VOUCHER_SUCCESS": "Voucher collection successful!",
4
5
  "MOVE_IN_LOGO": "Move In Logo",
@@ -1,4 +1,5 @@
1
1
  {
2
+ "ICON_COLOR": "Icon Color",
2
3
  "FLASH_SALE": "Flash Sale",
3
4
  "COLLECT_VOUCHER_SUCCESS": "Voucher collection successful!",
4
5
  "MOVE_IN_LOGO": "Move In Logo",