iglooform 2.4.8 → 2.4.9

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 (182) hide show
  1. package/es/admin-upload/float.js +25 -35
  2. package/es/admin-upload/index.js +18 -25
  3. package/es/admin-upload/job-list.js +83 -113
  4. package/es/admin-upload/modal.js +19 -26
  5. package/es/alert-message/index.js +11 -9
  6. package/es/amount/index.js +10 -5
  7. package/es/back-top/index.js +14 -10
  8. package/es/button/index.js +21 -26
  9. package/es/card-detail/card-group.js +16 -22
  10. package/es/card-detail/card-item.js +15 -20
  11. package/es/card-detail/card-page.js +11 -15
  12. package/es/card-detail/card.js +24 -24
  13. package/es/card-detail/utils.js +3 -4
  14. package/es/checkbox/index.js +23 -22
  15. package/es/claim-list/index.js +51 -68
  16. package/es/confirmation/index.js +5 -7
  17. package/es/date-picker/buddhist.js +1 -1
  18. package/es/date-picker/index.js +10 -4
  19. package/es/declaration/index.js +16 -13
  20. package/es/detail-panel/index.js +67 -83
  21. package/es/documents/index.js +6 -8
  22. package/es/example/index.js +3 -4
  23. package/es/filter/checkBox.js +33 -45
  24. package/es/filter/customize.js +3 -4
  25. package/es/filter/index.js +79 -107
  26. package/es/filter/radioBox.js +23 -31
  27. package/es/filter/rangePicker.js +43 -59
  28. package/es/form/divider/index.js +7 -1
  29. package/es/form/element/index.js +28 -36
  30. package/es/form/element/style/index.less +4 -0
  31. package/es/form/index.js +9 -12
  32. package/es/form/login/index.js +14 -19
  33. package/es/form/page/index.js +17 -23
  34. package/es/form/pages/index.js +22 -30
  35. package/es/form/section/index.js +11 -14
  36. package/es/form/step/index.js +30 -41
  37. package/es/form/steps/index.js +6 -8
  38. package/es/free-form/element/index.js +21 -27
  39. package/es/free-form/element/style/index.less +4 -0
  40. package/es/free-form/index.js +9 -12
  41. package/es/free-form/page/index.js +28 -39
  42. package/es/free-form/pages/index.js +6 -8
  43. package/es/free-form/section/index.js +11 -14
  44. package/es/free-form/step/index.js +30 -41
  45. package/es/free-form/steps/index.js +6 -8
  46. package/es/home-menu/index.js +52 -71
  47. package/es/input/amount.js +10 -5
  48. package/es/input/credit-card.js +7 -1
  49. package/es/input/email.js +8 -1
  50. package/es/input/expiry-date.js +12 -16
  51. package/es/input/input-date.js +12 -16
  52. package/es/input/input-number.js +9 -2
  53. package/es/input/input.js +9 -2
  54. package/es/input/otp.js +17 -15
  55. package/es/input/password.js +12 -6
  56. package/es/input/phone-number.js +6 -8
  57. package/es/input/text-area.js +14 -10
  58. package/es/layout/defaultFooter.js +60 -82
  59. package/es/layout/defaultHeader.js +11 -15
  60. package/es/layout/footer.js +108 -148
  61. package/es/layout/header.js +50 -59
  62. package/es/layout/index.js +16 -12
  63. package/es/locale/locale-provider.js +6 -8
  64. package/es/login-page/index.js +30 -42
  65. package/es/media/index.js +20 -27
  66. package/es/media/media.js +9 -12
  67. package/es/media/preview.js +6 -8
  68. package/es/mobile-insurer-detail/index.js +74 -91
  69. package/es/mobile-insurer-list/index.js +34 -38
  70. package/es/modal/index.js +20 -25
  71. package/es/platform/platform-card/index.js +9 -12
  72. package/es/platform/switch-platform/index.js +24 -32
  73. package/es/policy-list/index.js +9 -12
  74. package/es/policy-list/policy-card.js +119 -153
  75. package/es/radio/index.js +33 -35
  76. package/es/select/attached-select.js +31 -34
  77. package/es/select/select.js +12 -8
  78. package/es/select/time-select.js +12 -16
  79. package/es/status-box/index.js +6 -8
  80. package/es/table/index.js +69 -93
  81. package/es/tabs/index.js +7 -1
  82. package/es/typography/index.js +6 -8
  83. package/es/upload/index.js +48 -66
  84. package/es/upload-photo/index.js +47 -63
  85. package/es/upload-photo/media.js +3 -4
  86. package/es/upload-preview/index.js +9 -12
  87. package/es/upload-preview/media.js +12 -16
  88. package/es/utils/form-utils.js +18 -25
  89. package/lib/admin-upload/float.js +25 -35
  90. package/lib/admin-upload/index.js +18 -25
  91. package/lib/admin-upload/job-list.js +83 -113
  92. package/lib/admin-upload/modal.js +19 -26
  93. package/lib/alert-message/index.js +11 -9
  94. package/lib/amount/index.js +10 -5
  95. package/lib/back-top/index.js +14 -10
  96. package/lib/button/index.js +22 -27
  97. package/lib/card-detail/card-group.js +16 -22
  98. package/lib/card-detail/card-item.js +15 -20
  99. package/lib/card-detail/card-page.js +11 -15
  100. package/lib/card-detail/card.js +24 -24
  101. package/lib/card-detail/index.js +6 -6
  102. package/lib/card-detail/utils.js +4 -5
  103. package/lib/checkbox/index.js +24 -23
  104. package/lib/claim-list/index.js +51 -68
  105. package/lib/confirmation/index.js +5 -7
  106. package/lib/date-picker/buddhist.js +1 -1
  107. package/lib/date-picker/index.js +11 -5
  108. package/lib/declaration/index.js +16 -13
  109. package/lib/detail-panel/index.js +67 -83
  110. package/lib/documents/index.js +6 -8
  111. package/lib/example/index.js +3 -4
  112. package/lib/filter/checkBox.js +33 -45
  113. package/lib/filter/customize.js +3 -4
  114. package/lib/filter/index.js +79 -107
  115. package/lib/filter/radioBox.js +23 -31
  116. package/lib/filter/rangePicker.js +43 -59
  117. package/lib/form/divider/index.js +7 -1
  118. package/lib/form/element/index.js +28 -36
  119. package/lib/form/element/style/index.less +4 -0
  120. package/lib/form/index.js +9 -12
  121. package/lib/form/login/index.js +14 -19
  122. package/lib/form/page/index.js +17 -23
  123. package/lib/form/pages/index.js +22 -30
  124. package/lib/form/section/index.js +11 -14
  125. package/lib/form/step/index.js +30 -41
  126. package/lib/form/steps/index.js +6 -8
  127. package/lib/free-form/element/index.js +21 -27
  128. package/lib/free-form/element/style/index.less +4 -0
  129. package/lib/free-form/index.js +9 -12
  130. package/lib/free-form/page/index.js +28 -39
  131. package/lib/free-form/pages/index.js +6 -8
  132. package/lib/free-form/section/index.js +11 -14
  133. package/lib/free-form/step/index.js +30 -41
  134. package/lib/free-form/steps/index.js +6 -8
  135. package/lib/home-menu/index.js +52 -71
  136. package/lib/index.js +132 -132
  137. package/lib/input/amount.js +10 -5
  138. package/lib/input/credit-card.js +7 -1
  139. package/lib/input/email.js +7 -1
  140. package/lib/input/expiry-date.js +12 -16
  141. package/lib/input/index.js +18 -18
  142. package/lib/input/input-date.js +12 -16
  143. package/lib/input/input-number.js +8 -2
  144. package/lib/input/input.js +8 -2
  145. package/lib/input/otp.js +17 -15
  146. package/lib/input/password.js +11 -6
  147. package/lib/input/phone-number.js +6 -8
  148. package/lib/input/text-area.js +14 -10
  149. package/lib/layout/defaultFooter.js +60 -82
  150. package/lib/layout/defaultHeader.js +11 -15
  151. package/lib/layout/footer.js +108 -148
  152. package/lib/layout/header.js +50 -59
  153. package/lib/layout/index.js +15 -12
  154. package/lib/locale/format-message.js +1 -1
  155. package/lib/locale/index.js +4 -4
  156. package/lib/locale/locale-provider.js +7 -9
  157. package/lib/login-page/index.js +30 -42
  158. package/lib/media/index.js +20 -27
  159. package/lib/media/media.js +9 -12
  160. package/lib/media/preview.js +6 -8
  161. package/lib/mobile-insurer-detail/index.js +74 -91
  162. package/lib/mobile-insurer-list/index.js +34 -38
  163. package/lib/modal/index.js +20 -25
  164. package/lib/platform/platform-card/index.js +9 -12
  165. package/lib/platform/switch-platform/index.js +24 -32
  166. package/lib/policy-list/index.js +9 -12
  167. package/lib/policy-list/policy-card.js +119 -153
  168. package/lib/radio/index.js +33 -35
  169. package/lib/select/attached-select.js +32 -35
  170. package/lib/select/select.js +13 -9
  171. package/lib/select/time-select.js +12 -16
  172. package/lib/status-box/index.js +6 -8
  173. package/lib/table/index.js +69 -93
  174. package/lib/tabs/index.js +8 -2
  175. package/lib/typography/index.js +6 -8
  176. package/lib/upload/index.js +48 -66
  177. package/lib/upload-photo/index.js +47 -63
  178. package/lib/upload-photo/media.js +3 -4
  179. package/lib/upload-preview/index.js +9 -12
  180. package/lib/upload-preview/media.js +12 -16
  181. package/lib/utils/form-utils.js +19 -26
  182. package/package.json +1 -1
@@ -1,3 +1,9 @@
1
+ function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) { symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); } keys.push.apply(keys, symbols); } return keys; }
2
+
3
+ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { _defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }
4
+
5
+ function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
6
+
1
7
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
8
  import classnames from 'classnames';
3
9
  import Button from '../button';
@@ -18,36 +24,30 @@ var MobileInsurerDetail = function MobileInsurerDetail(props) {
18
24
  style = props.style,
19
25
  className = props.className,
20
26
  messageBar = props.messageBar;
21
- return _jsxs("div", Object.assign({
27
+ return _jsxs("div", {
22
28
  className: classnames('igloo-policy-mobile-detail-container', className),
23
- style: style
24
- }, {
25
- children: [messageBar && _jsx(AlertMessage, Object.assign({}, messageBar, {
29
+ style: style,
30
+ children: [messageBar && _jsx(AlertMessage, _objectSpread(_objectSpread({}, messageBar), {}, {
26
31
  style: {
27
32
  marginBottom: 24
28
33
  }
29
- }), void 0), _jsxs("div", Object.assign({
30
- className: "mobile-detail-top"
31
- }, {
32
- children: [insurerLogo && _jsx("div", Object.assign({
33
- className: "mobile-detail-top-insurer-logo"
34
- }, {
34
+ }), void 0), _jsxs("div", {
35
+ className: "mobile-detail-top",
36
+ children: [insurerLogo && _jsx("div", {
37
+ className: "mobile-detail-top-insurer-logo",
35
38
  children: insurerLogo
36
- }), void 0), _jsxs("div", Object.assign({
37
- className: "mobile-detail-top-insurer-info"
38
- }, {
39
- children: [_jsx("div", Object.assign({
40
- className: "insurer-name"
41
- }, {
42
- children: _jsxs(Typography, Object.assign({
43
- level: "h4"
44
- }, {
39
+ }, void 0), _jsxs("div", {
40
+ className: "mobile-detail-top-insurer-info",
41
+ children: [_jsx("div", {
42
+ className: "insurer-name",
43
+ children: _jsxs(Typography, {
44
+ level: "h4",
45
45
  children: [insurerName, " ", insurerType]
46
- }), void 0)
47
- }), void 0), _jsx(StatusBox, Object.assign({}, statusProps), void 0)]
48
- }), void 0)]
49
- }), void 0), buttons && buttons.map(function (item, index) {
50
- return item.render ? item.render() : _jsx(Button, Object.assign({
46
+ }, void 0)
47
+ }, void 0), _jsx(StatusBox, _objectSpread({}, statusProps), void 0)]
48
+ }, void 0)]
49
+ }, void 0), buttons && buttons.map(function (item, index) {
50
+ return item.render ? item.render() : _jsx(Button, {
51
51
  icon: item.icon,
52
52
  onClick: function onClick() {
53
53
  return item.onClick && item.onClick(props);
@@ -56,34 +56,29 @@ var MobileInsurerDetail = function MobileInsurerDetail(props) {
56
56
  style: {
57
57
  width: '100%',
58
58
  marginBottom: "".concat(index === buttons.length - 1 ? 0 : 16, "px")
59
- }
60
- }, {
61
- children: _jsx(Typography, Object.assign({
62
- level: "h4"
63
- }, {
59
+ },
60
+ children: _jsx(Typography, {
61
+ level: "h4",
64
62
  children: item.label
65
- }), void 0)
66
- }), String(item) + index);
63
+ }, void 0)
64
+ }, String(item) + index);
67
65
  }), _jsx("div", {
68
66
  className: "dividing-line"
69
67
  }, void 0), infoGroups.map(function (group, index) {
70
68
  var sectionName = group.sectionName,
71
69
  infoItems = group.infoItems,
72
70
  hideBottomLine = group.hideBottomLine;
73
- return _jsxs("div", Object.assign({
71
+ return _jsxs("div", {
74
72
  className: classnames('policy-info-group-container', {
75
73
  'policy-info-group-container-no-bottom-line': hideBottomLine
76
- })
77
- }, {
78
- children: [sectionName && _jsx("div", Object.assign({
79
- className: "group-section-name"
80
- }, {
81
- children: _jsx(Typography, Object.assign({
82
- level: "h4"
83
- }, {
74
+ }),
75
+ children: [sectionName && _jsx("div", {
76
+ className: "group-section-name",
77
+ children: _jsx(Typography, {
78
+ level: "h4",
84
79
  children: sectionName
85
- }), void 0)
86
- }), void 0), infoItems.map(function (item, index) {
80
+ }, void 0)
81
+ }, void 0), infoItems.map(function (item, index) {
87
82
  var title = item.title,
88
83
  info = item.info,
89
84
  hide = item.hide;
@@ -93,31 +88,26 @@ var MobileInsurerDetail = function MobileInsurerDetail(props) {
93
88
  return;
94
89
  }
95
90
 
96
- return _jsxs("div", Object.assign({
97
- className: "group-policy-info"
98
- }, {
99
- children: [_jsx("div", Object.assign({
100
- className: "group-policy-info-title"
101
- }, {
102
- children: _jsx(Typography, Object.assign({
103
- level: "body1"
104
- }, {
91
+ return _jsxs("div", {
92
+ className: "group-policy-info",
93
+ children: [_jsx("div", {
94
+ className: "group-policy-info-title",
95
+ children: _jsx(Typography, {
96
+ level: "body1",
105
97
  children: title
106
- }), void 0)
107
- }), void 0), textArr.map(function (textItem, index) {
98
+ }, void 0)
99
+ }, void 0), textArr.map(function (textItem, index) {
108
100
  var text = textItem.text,
109
101
  link = textItem.link;
110
102
 
111
103
  if (typeof textItem === 'string' || link === undefined || link.length === 0) {
112
- return _jsx("div", Object.assign({
113
- className: "group-policy-info-text"
114
- }, {
115
- children: _jsx(Typography, Object.assign({
116
- level: "body1"
117
- }, {
104
+ return _jsx("div", {
105
+ className: "group-policy-info-text",
106
+ children: _jsx(Typography, {
107
+ level: "body1",
118
108
  children: textItem
119
- }), void 0)
120
- }), index);
109
+ }, void 0)
110
+ }, index);
121
111
  }
122
112
 
123
113
  var linkArr = Array.isArray(link) ? link : [link];
@@ -125,55 +115,48 @@ var MobileInsurerDetail = function MobileInsurerDetail(props) {
125
115
 
126
116
  if (onlyOneLink) {
127
117
  var onClick = link.onClick;
128
- return _jsxs("div", Object.assign({
129
- className: "group-policy-info-text"
130
- }, {
131
- children: [_jsx(Typography, Object.assign({
132
- level: "body1"
133
- }, {
118
+ return _jsxs("div", {
119
+ className: "group-policy-info-text",
120
+ children: [_jsx(Typography, {
121
+ level: "body1",
134
122
  children: text
135
- }), void 0), _jsx(Button, Object.assign({
123
+ }, void 0), _jsx(Button, {
136
124
  onClick: onClick ? function () {
137
125
  return onClick(props);
138
126
  } : function () {},
139
- type: "link"
140
- }, {
127
+ type: "link",
141
128
  children: link.linkText
142
- }), void 0)]
143
- }), index);
129
+ }, void 0)]
130
+ }, index);
144
131
  }
145
132
 
146
- return _jsxs("div", Object.assign({
147
- className: "group-text-and-link-mult-link"
148
- }, {
149
- children: [_jsx(Typography, Object.assign({
150
- level: "body1"
151
- }, {
133
+ return _jsxs("div", {
134
+ className: "group-text-and-link-mult-link",
135
+ children: [_jsx(Typography, {
136
+ level: "body1",
152
137
  children: text
153
- }), void 0), linkArr.map(function (linkObj, index) {
138
+ }, void 0), linkArr.map(function (linkObj, index) {
154
139
  var onClick = linkObj.onClick;
155
- return _jsx("div", Object.assign({
140
+ return _jsx("div", {
156
141
  style: {
157
142
  marginTop: 2
158
- }
159
- }, {
160
- children: _jsx(Button, Object.assign({
143
+ },
144
+ children: _jsx(Button, {
161
145
  onClick: onClick ? function () {
162
146
  return onClick(props);
163
147
  } : function () {},
164
- type: "link"
165
- }, {
148
+ type: "link",
166
149
  children: linkObj.linkText
167
- }), void 0)
168
- }), index);
150
+ }, void 0)
151
+ }, index);
169
152
  })]
170
- }), index);
153
+ }, index);
171
154
  })]
172
- }), index);
155
+ }, index);
173
156
  })]
174
- }), index);
157
+ }, index);
175
158
  })]
176
- }), void 0);
159
+ }, void 0);
177
160
  };
178
161
 
179
162
  export default MobileInsurerDetail;
@@ -1,3 +1,9 @@
1
+ function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) { symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); } keys.push.apply(keys, symbols); } return keys; }
2
+
3
+ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { _defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }
4
+
5
+ function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
6
+
1
7
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
8
  import classnames from 'classnames';
3
9
  import invariant from 'invariant';
@@ -10,10 +16,9 @@ var MobileInsurerList = function MobileInsurerList(props) {
10
16
  var dataList = props.dataList,
11
17
  style = props.style,
12
18
  className = props.className;
13
- return _jsx("div", Object.assign({
19
+ return _jsx("div", {
14
20
  className: classnames('mobile-card-list', className),
15
- style: style
16
- }, {
21
+ style: style,
17
22
  children: dataList.map(function (cardInfo, index) {
18
23
  var insurerLogo = cardInfo.insurerLogo,
19
24
  insurerName = cardInfo.insurerName,
@@ -23,50 +28,41 @@ var MobileInsurerList = function MobileInsurerList(props) {
23
28
  mobileTagOnClick = cardInfo.mobileTagOnClick,
24
29
  mobileRedDot = cardInfo.mobileRedDot;
25
30
  invariant(mobileTagOnClick == undefined || typeof mobileTagOnClick === 'function', 'mobileTagOnClick must be a function');
26
- return _jsxs("div", Object.assign({
31
+ return _jsxs("div", {
27
32
  className: "mobile-tag-container",
28
33
  onClick: function onClick(e) {
29
34
  return mobileTagOnClick && mobileTagOnClick(cardInfo, e);
30
- }
31
- }, {
32
- children: [_jsxs("div", Object.assign({
33
- className: "mobile-tag-left"
34
- }, {
35
- children: [insurerLogo && _jsx("div", Object.assign({
36
- className: "left-insurer-icon"
37
- }, {
35
+ },
36
+ children: [_jsxs("div", {
37
+ className: "mobile-tag-left",
38
+ children: [insurerLogo && _jsx("div", {
39
+ className: "left-insurer-icon",
38
40
  children: insurerLogo
39
- }), void 0), _jsxs("div", Object.assign({
40
- className: "left-insurer-info-container"
41
- }, {
42
- children: [_jsxs("div", Object.assign({
43
- className: "left-insurer-title"
44
- }, {
45
- children: [_jsxs(Typography, Object.assign({
46
- level: "h4"
47
- }, {
41
+ }, void 0), _jsxs("div", {
42
+ className: "left-insurer-info-container",
43
+ children: [_jsxs("div", {
44
+ className: "left-insurer-title",
45
+ children: [_jsxs(Typography, {
46
+ level: "h4",
48
47
  children: [insurerName, " ", insurerType]
49
- }), void 0), mobileRedDot && _jsx("div", {
48
+ }, void 0), mobileRedDot && _jsx("div", {
50
49
  className: "left-insurer-title-red-dot"
51
50
  }, void 0)]
52
- }), void 0), mobileSubTitle && _jsx("div", Object.assign({
53
- className: "left-insurer-sub-title"
54
- }, {
55
- children: _jsx(Typography, Object.assign({
56
- level: "body2"
57
- }, {
51
+ }, void 0), mobileSubTitle && _jsx("div", {
52
+ className: "left-insurer-sub-title",
53
+ children: _jsx(Typography, {
54
+ level: "body2",
58
55
  children: mobileSubTitle
59
- }), void 0)
60
- }), void 0), statusProps && _jsx("div", Object.assign({
61
- className: "left-insurer-status"
62
- }, {
63
- children: _jsx(StatusBox, Object.assign({}, statusProps), void 0)
64
- }), void 0)]
65
- }), void 0)]
66
- }), void 0), _jsx(ArrowRightOutlined, {}, void 0)]
67
- }), index);
56
+ }, void 0)
57
+ }, void 0), statusProps && _jsx("div", {
58
+ className: "left-insurer-status",
59
+ children: _jsx(StatusBox, _objectSpread({}, statusProps), void 0)
60
+ }, void 0)]
61
+ }, void 0)]
62
+ }, void 0), _jsx(ArrowRightOutlined, {}, void 0)]
63
+ }, index);
68
64
  })
69
- }), void 0);
65
+ }, void 0);
70
66
  };
71
67
 
72
68
  export default MobileInsurerList;
package/es/modal/index.js CHANGED
@@ -3,16 +3,16 @@ import _Modal from "antd/es/modal";
3
3
  var _excluded = ["getContainer"],
4
4
  _excluded2 = ["content", "onCancel", "onOk"];
5
5
 
6
+ function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
7
+
8
+ function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
9
+
6
10
  function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) { symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); } keys.push.apply(keys, symbols); } return keys; }
7
11
 
8
12
  function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { _defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }
9
13
 
10
14
  function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
11
15
 
12
- function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
13
-
14
- function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
15
-
16
16
  function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) { try { var info = gen[key](arg); var value = info.value; } catch (error) { reject(error); return; } if (info.done) { resolve(value); } else { Promise.resolve(value).then(_next, _throw); } }
17
17
 
18
18
  function _asyncToGenerator(fn) { return function () { var self = this, args = arguments; return new Promise(function (resolve, reject) { var gen = fn.apply(self, args); function _next(value) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value); } function _throw(err) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err); } _next(undefined); }); }; }
@@ -123,7 +123,7 @@ var IglooModal = function IglooModal(props) {
123
123
  };
124
124
  }();
125
125
 
126
- return _jsx(_Modal, Object.assign({}, props, {
126
+ return _jsx(_Modal, _objectSpread(_objectSpread({}, props), {}, {
127
127
  className: classnames('igloo-modal', props.className, {
128
128
  'igloo-modal-no-footer': footer === null,
129
129
  'igloo-modal-limit-height': mode !== 'form'
@@ -134,26 +134,23 @@ var IglooModal = function IglooModal(props) {
134
134
  color: '#666666'
135
135
  }
136
136
  }, void 0),
137
- footer: footer === undefined ? _jsxs("div", Object.assign({
138
- className: "igloo-modal-footer-btns"
139
- }, {
140
- children: [_jsx(Button, Object.assign({
137
+ footer: footer === undefined ? _jsxs("div", {
138
+ className: "igloo-modal-footer-btns",
139
+ children: [_jsx(Button, _objectSpread(_objectSpread({
141
140
  onClick: onCancel
142
- }, cancelButtonProps, {
143
- className: classnames('igloo-modal-footer-button', cancelButtonProps.className)
144
- }, {
141
+ }, cancelButtonProps), {}, {
142
+ className: classnames('igloo-modal-footer-button', cancelButtonProps.className),
145
143
  children: cancelText
146
- }), void 0), _jsx(Button, Object.assign({
144
+ }), void 0), _jsx(Button, _objectSpread(_objectSpread({
147
145
  type: okType
148
- }, okButtonProps, {
146
+ }, okButtonProps), {}, {
149
147
  className: classnames('igloo-modal-footer-button', okButtonProps.className),
150
- onClick: handleOk
151
- }, {
148
+ onClick: handleOk,
152
149
  children: okText
153
150
  }), void 0)]
154
- }), void 0) : footer,
151
+ }, void 0) : footer,
155
152
  width: width || 'noStyleWidth',
156
- children: formConfig ? _jsx(Form, Object.assign({
153
+ children: formConfig ? _jsx(Form, _objectSpread({
157
154
  config: formConfig,
158
155
  showSubmitButton: false,
159
156
  ref: formRef
@@ -192,10 +189,9 @@ var modalFunction = function modalFunction(_ref2) {
192
189
  _onOk = _ref3.onOk,
193
190
  rest = _objectWithoutProperties(_ref3, _excluded2);
194
191
 
195
- render(_jsx(LocaleProvider, Object.assign({
196
- currentLang: staticLang.current
197
- }, {
198
- children: _jsx(IglooModal, Object.assign({}, rest, {
192
+ render(_jsx(LocaleProvider, {
193
+ currentLang: staticLang.current,
194
+ children: _jsx(IglooModal, _objectSpread(_objectSpread({}, rest), {}, {
199
195
  visible: true,
200
196
  onCancel: function onCancel() {
201
197
  _onCancel && _onCancel.apply(void 0, arguments);
@@ -213,11 +209,10 @@ var modalFunction = function modalFunction(_ref2) {
213
209
  }
214
210
 
215
211
  return rst;
216
- }
217
- }, {
212
+ },
218
213
  children: content
219
214
  }), void 0)
220
- }), void 0), ele);
215
+ }, void 0), ele);
221
216
  };
222
217
 
223
218
  var destroy = function destroy() {
@@ -30,25 +30,22 @@ var PlatformCard = function PlatformCard(_ref) {
30
30
  showDefault = _useState2[0],
31
31
  setShowDefault = _useState2[1];
32
32
 
33
- return _jsxs("div", Object.assign({
33
+ return _jsxs("div", {
34
34
  className: classnames('igloo-platform', className),
35
35
  onClick: onClick,
36
- style: style
37
- }, {
38
- children: [showDefault && _jsxs("div", Object.assign({
36
+ style: style,
37
+ children: [showDefault && _jsxs("div", {
39
38
  style: {
40
39
  textAlign: 'center'
41
- }
42
- }, {
40
+ },
43
41
  children: [_jsx("img", {
44
42
  src: defaultIcon,
45
43
  className: "igloo-platform-defaultLogo"
46
- }, void 0), _jsx("div", Object.assign({
47
- className: "igloo-platform-name"
48
- }, {
44
+ }, void 0), _jsx("div", {
45
+ className: "igloo-platform-name",
49
46
  children: platform
50
- }), void 0)]
51
- }), void 0), !showDefault && _jsx(_Image, {
47
+ }, void 0)]
48
+ }, void 0), !showDefault && _jsx(_Image, {
52
49
  width: 200,
53
50
  height: 200,
54
51
  src: "https://static.iglooinsure.com/partner/normal/".concat(platform.toLowerCase(), ".svg"),
@@ -57,7 +54,7 @@ var PlatformCard = function PlatformCard(_ref) {
57
54
  },
58
55
  preview: false
59
56
  }, void 0)]
60
- }), void 0);
57
+ }, void 0);
61
58
  };
62
59
 
63
60
  export default PlatformCard;
@@ -40,41 +40,35 @@ var SwitchPlatform = function SwitchPlatform(_ref) {
40
40
  onChange(e.key);
41
41
  };
42
42
 
43
- return _jsx(_Dropdown, Object.assign({
43
+ return _jsx(_Dropdown, {
44
44
  className: "igloo-switch-platform",
45
45
  trigger: ['click'],
46
- overlay: _jsx(_Menu, Object.assign({
47
- onClick: handleChange
48
- }, {
46
+ overlay: _jsx(_Menu, {
47
+ onClick: handleChange,
49
48
  children: platforms === null || platforms === void 0 ? void 0 : platforms.map(function (name) {
50
- return _jsxs(_Menu.Item, Object.assign({
51
- className: "igloo-switch-platform-option"
52
- }, {
49
+ return _jsxs(_Menu.Item, {
50
+ className: "igloo-switch-platform-option",
53
51
  children: [_jsx(_Image, {
54
52
  src: "https://static.iglooinsure.com/partner/square/".concat(name.toLowerCase(), ".svg"),
55
53
  className: "igloo-switch-platform-default-logo",
56
54
  fallback: defaultIcon,
57
55
  preview: false
58
- }, void 0), _jsx("span", Object.assign({
59
- className: "igloo-switch-platform-name"
60
- }, {
56
+ }, void 0), _jsx("span", {
57
+ className: "igloo-switch-platform-name",
61
58
  children: name
62
- }), void 0)]
63
- }), name);
59
+ }, void 0)]
60
+ }, name);
64
61
  })
65
- }), void 0),
62
+ }, void 0),
66
63
  getPopupContainer: function getPopupContainer(trigger) {
67
64
  return trigger.parentElement;
68
65
  },
69
- placement: "bottomCenter"
70
- }, {
71
- children: _jsxs(_Space, Object.assign({
66
+ placement: "bottomCenter",
67
+ children: _jsxs(_Space, {
72
68
  size: 8,
73
- align: "center"
74
- }, {
75
- children: [_jsx("div", Object.assign({
76
- className: "igloo-switch-platform-nav"
77
- }, {
69
+ align: "center",
70
+ children: [_jsx("div", {
71
+ className: "igloo-switch-platform-nav",
78
72
  children: !showDefault ? _jsx(_Image, {
79
73
  src: "https://static.iglooinsure.com/partner/nav/".concat(currentPlatform.toLowerCase(), ".svg"),
80
74
  className: "igloo-switch-platform-nav-logo",
@@ -82,24 +76,22 @@ var SwitchPlatform = function SwitchPlatform(_ref) {
82
76
  return setShowDefault(true);
83
77
  },
84
78
  preview: false
85
- }, void 0) : _jsxs(_Space, Object.assign({
79
+ }, void 0) : _jsxs(_Space, {
86
80
  size: 8,
87
- align: "center"
88
- }, {
81
+ align: "center",
89
82
  children: [_jsx("img", {
90
83
  src: defaultIcon,
91
84
  className: "igloo-switch-platform-default-logo"
92
- }, void 0), _jsx("span", Object.assign({
93
- className: "igloo-switch-platform-name"
94
- }, {
85
+ }, void 0), _jsx("span", {
86
+ className: "igloo-switch-platform-name",
95
87
  children: currentPlatform
96
- }), void 0)]
97
- }), void 0)
98
- }), void 0), _jsx(ArrowDownOutlined, {
88
+ }, void 0)]
89
+ }, void 0)
90
+ }, void 0), _jsx(ArrowDownOutlined, {
99
91
  className: "igloo-switch-platform-arrow"
100
92
  }, void 0)]
101
- }), void 0)
102
- }), void 0);
93
+ }, void 0)
94
+ }, void 0);
103
95
  };
104
96
 
105
97
  export default SwitchPlatform;
@@ -28,16 +28,14 @@ var PolicyList = function PolicyList(props) {
28
28
  emptyText = _props$emptyText === void 0 ? 'There is currently no expired policy.' : _props$emptyText;
29
29
 
30
30
  if (dataList.length === 0) {
31
- return _jsx("div", Object.assign({
31
+ return _jsx("div", {
32
32
  className: classnames('igloo-policy-list-empty', className),
33
- style: style
34
- }, {
35
- children: _jsx(Typography, Object.assign({
36
- level: "body1"
37
- }, {
33
+ style: style,
34
+ children: _jsx(Typography, {
35
+ level: "body1",
38
36
  children: emptyText
39
- }), void 0)
40
- }), void 0);
37
+ }, void 0)
38
+ }, void 0);
41
39
  }
42
40
 
43
41
  if (!md) {
@@ -48,16 +46,15 @@ var PolicyList = function PolicyList(props) {
48
46
  }, void 0);
49
47
  }
50
48
 
51
- return _jsx("div", Object.assign({
49
+ return _jsx("div", {
52
50
  className: classnames('igloo-policy-list', className),
53
- style: style
54
- }, {
51
+ style: style,
55
52
  children: dataList.map(function (policyProps, index) {
56
53
  return /*#__PURE__*/_createElement(PolicyCard, _objectSpread(_objectSpread({}, policyProps), {}, {
57
54
  key: index
58
55
  }));
59
56
  })
60
- }), void 0);
57
+ }, void 0);
61
58
  };
62
59
 
63
60
  export default PolicyList;