iglooform 2.4.6 → 2.4.10

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 (225) 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/button/style/index.less +11 -25
  10. package/es/card-detail/card-group.js +16 -22
  11. package/es/card-detail/card-item.js +15 -20
  12. package/es/card-detail/card-page.js +11 -15
  13. package/es/card-detail/card.js +24 -24
  14. package/es/card-detail/style/index.less +13 -0
  15. package/es/card-detail/utils.js +3 -4
  16. package/es/checkbox/index.js +23 -22
  17. package/es/claim-list/index.js +51 -68
  18. package/es/confirmation/index.js +5 -7
  19. package/es/date-picker/buddhist.js +1 -1
  20. package/es/date-picker/index.js +10 -4
  21. package/es/declaration/index.js +16 -13
  22. package/es/detail-panel/index.js +67 -83
  23. package/es/documents/index.js +6 -8
  24. package/es/example/index.js +3 -4
  25. package/es/filter/checkBox.js +33 -45
  26. package/es/filter/customize.js +3 -4
  27. package/es/filter/index.js +79 -107
  28. package/es/filter/radioBox.js +23 -31
  29. package/es/filter/rangePicker.js +43 -59
  30. package/es/form/addable-section/index.d.ts +14 -0
  31. package/es/form/addable-section/index.js +188 -0
  32. package/es/form/addable-section/style/index.d.ts +1 -0
  33. package/es/form/addable-section/style/index.js +1 -0
  34. package/es/form/addable-section/style/index.less +22 -0
  35. package/es/form/divider/index.js +7 -1
  36. package/es/form/element/index.js +39 -36
  37. package/es/form/element/style/index.less +4 -0
  38. package/es/form/index.js +9 -12
  39. package/es/form/login/index.js +14 -19
  40. package/es/form/page/index.js +17 -23
  41. package/es/form/pages/index.js +22 -30
  42. package/es/form/section/index.js +11 -14
  43. package/es/form/step/index.js +30 -41
  44. package/es/form/steps/index.js +9 -9
  45. package/es/free-form/addable-section/index.d.ts +13 -0
  46. package/es/free-form/addable-section/index.js +263 -0
  47. package/es/free-form/addable-section/style/index.d.ts +1 -0
  48. package/es/free-form/addable-section/style/index.js +1 -0
  49. package/es/free-form/addable-section/style/index.less +22 -0
  50. package/es/free-form/element/index.js +21 -27
  51. package/es/free-form/element/style/index.less +4 -0
  52. package/es/free-form/index.js +9 -12
  53. package/es/free-form/page/index.js +28 -39
  54. package/es/free-form/pages/index.js +6 -8
  55. package/es/free-form/section/index.js +11 -14
  56. package/es/free-form/step/index.js +30 -41
  57. package/es/free-form/steps/index.d.ts +1 -0
  58. package/es/free-form/steps/index.js +8 -8
  59. package/es/home-menu/index.js +52 -71
  60. package/es/index.d.ts +1 -0
  61. package/es/index.js +2 -1
  62. package/es/input/amount.js +10 -5
  63. package/es/input/credit-card.js +7 -1
  64. package/es/input/email.js +8 -1
  65. package/es/input/expiry-date.js +12 -16
  66. package/es/input/input-date.js +12 -16
  67. package/es/input/input-number.js +9 -2
  68. package/es/input/input.js +9 -2
  69. package/es/input/otp.js +17 -15
  70. package/es/input/password.js +12 -6
  71. package/es/input/phone-number.js +6 -8
  72. package/es/input/style/index.less +9 -1
  73. package/es/input/text-area.js +14 -10
  74. package/es/layout/defaultFooter.js +60 -82
  75. package/es/layout/defaultHeader.js +11 -15
  76. package/es/layout/footer.js +108 -148
  77. package/es/layout/header.js +50 -59
  78. package/es/layout/index.js +16 -12
  79. package/es/locale/en-US/messages.json +2 -0
  80. package/es/locale/id-ID/messages.json +2 -0
  81. package/es/locale/locale-provider.js +6 -8
  82. package/es/locale/th-TH/messages.json +2 -0
  83. package/es/locale/vi-VN/messages.json +2 -0
  84. package/es/locale/zh-CN/messages.json +2 -0
  85. package/es/login-page/index.js +30 -42
  86. package/es/media/index.js +20 -27
  87. package/es/media/media.js +9 -12
  88. package/es/media/preview.js +6 -8
  89. package/es/mobile-insurer-detail/index.js +74 -91
  90. package/es/mobile-insurer-list/index.js +34 -38
  91. package/es/modal/index.js +20 -25
  92. package/es/platform/platform-card/index.js +9 -12
  93. package/es/platform/switch-platform/index.js +24 -32
  94. package/es/policy-list/index.js +9 -12
  95. package/es/policy-list/policy-card.js +119 -153
  96. package/es/radio/index.js +33 -35
  97. package/es/select/attached-select.js +31 -34
  98. package/es/select/select.js +12 -8
  99. package/es/select/time-select.js +12 -16
  100. package/es/status-box/index.js +6 -8
  101. package/es/table/index.js +69 -93
  102. package/es/tabs/index.js +7 -1
  103. package/es/typography/index.js +6 -8
  104. package/es/upload/index.js +48 -66
  105. package/es/upload-photo/index.js +47 -63
  106. package/es/upload-photo/media.js +3 -4
  107. package/es/upload-preview/index.js +9 -12
  108. package/es/upload-preview/media.js +12 -16
  109. package/es/upload-preview/style/index.less +2 -2
  110. package/es/utils/form-utils.js +19 -26
  111. package/lib/admin-upload/float.js +25 -35
  112. package/lib/admin-upload/index.js +18 -25
  113. package/lib/admin-upload/job-list.js +83 -113
  114. package/lib/admin-upload/modal.js +19 -26
  115. package/lib/alert-message/index.js +11 -9
  116. package/lib/amount/index.js +10 -5
  117. package/lib/back-top/index.js +14 -10
  118. package/lib/button/index.js +22 -27
  119. package/lib/button/style/index.less +11 -25
  120. package/lib/card-detail/card-group.js +16 -22
  121. package/lib/card-detail/card-item.js +15 -20
  122. package/lib/card-detail/card-page.js +11 -15
  123. package/lib/card-detail/card.js +24 -24
  124. package/lib/card-detail/index.js +6 -6
  125. package/lib/card-detail/style/index.less +13 -0
  126. package/lib/card-detail/utils.js +4 -5
  127. package/lib/checkbox/index.js +24 -23
  128. package/lib/claim-list/index.js +51 -68
  129. package/lib/confirmation/index.js +5 -7
  130. package/lib/date-picker/buddhist.js +1 -1
  131. package/lib/date-picker/index.js +11 -5
  132. package/lib/declaration/index.js +16 -13
  133. package/lib/detail-panel/index.js +67 -83
  134. package/lib/documents/index.js +6 -8
  135. package/lib/example/index.js +3 -4
  136. package/lib/filter/checkBox.js +33 -45
  137. package/lib/filter/customize.js +3 -4
  138. package/lib/filter/index.js +79 -107
  139. package/lib/filter/radioBox.js +23 -31
  140. package/lib/filter/rangePicker.js +43 -59
  141. package/lib/form/addable-section/index.d.ts +14 -0
  142. package/lib/form/addable-section/index.js +209 -0
  143. package/lib/form/addable-section/style/index.d.ts +1 -0
  144. package/lib/form/addable-section/style/index.js +3 -0
  145. package/lib/form/addable-section/style/index.less +22 -0
  146. package/lib/form/divider/index.js +7 -1
  147. package/lib/form/element/index.js +40 -36
  148. package/lib/form/element/style/index.less +4 -0
  149. package/lib/form/index.js +9 -12
  150. package/lib/form/login/index.js +14 -19
  151. package/lib/form/page/index.js +17 -23
  152. package/lib/form/pages/index.js +22 -30
  153. package/lib/form/section/index.js +11 -14
  154. package/lib/form/step/index.js +30 -41
  155. package/lib/form/steps/index.js +9 -9
  156. package/lib/free-form/addable-section/index.d.ts +13 -0
  157. package/lib/free-form/addable-section/index.js +283 -0
  158. package/lib/free-form/addable-section/style/index.d.ts +1 -0
  159. package/lib/free-form/addable-section/style/index.js +3 -0
  160. package/lib/free-form/addable-section/style/index.less +22 -0
  161. package/lib/free-form/element/index.js +21 -27
  162. package/lib/free-form/element/style/index.less +4 -0
  163. package/lib/free-form/index.js +9 -12
  164. package/lib/free-form/page/index.js +28 -39
  165. package/lib/free-form/pages/index.js +6 -8
  166. package/lib/free-form/section/index.js +11 -14
  167. package/lib/free-form/step/index.js +30 -41
  168. package/lib/free-form/steps/index.d.ts +1 -0
  169. package/lib/free-form/steps/index.js +8 -8
  170. package/lib/home-menu/index.js +52 -71
  171. package/lib/index.d.ts +1 -0
  172. package/lib/index.js +140 -131
  173. package/lib/input/amount.js +10 -5
  174. package/lib/input/credit-card.js +7 -1
  175. package/lib/input/email.js +7 -1
  176. package/lib/input/expiry-date.js +12 -16
  177. package/lib/input/index.js +18 -18
  178. package/lib/input/input-date.js +12 -16
  179. package/lib/input/input-number.js +8 -2
  180. package/lib/input/input.js +8 -2
  181. package/lib/input/otp.js +17 -15
  182. package/lib/input/password.js +11 -6
  183. package/lib/input/phone-number.js +6 -8
  184. package/lib/input/style/index.less +9 -1
  185. package/lib/input/text-area.js +14 -10
  186. package/lib/layout/defaultFooter.js +60 -82
  187. package/lib/layout/defaultHeader.js +11 -15
  188. package/lib/layout/footer.js +108 -148
  189. package/lib/layout/header.js +50 -59
  190. package/lib/layout/index.js +15 -12
  191. package/lib/locale/en-US/messages.json +2 -0
  192. package/lib/locale/format-message.js +1 -1
  193. package/lib/locale/id-ID/messages.json +2 -0
  194. package/lib/locale/index.js +4 -4
  195. package/lib/locale/locale-provider.js +7 -9
  196. package/lib/locale/th-TH/messages.json +2 -0
  197. package/lib/locale/vi-VN/messages.json +2 -0
  198. package/lib/locale/zh-CN/messages.json +2 -0
  199. package/lib/login-page/index.js +30 -42
  200. package/lib/media/index.js +20 -27
  201. package/lib/media/media.js +9 -12
  202. package/lib/media/preview.js +6 -8
  203. package/lib/mobile-insurer-detail/index.js +74 -91
  204. package/lib/mobile-insurer-list/index.js +34 -38
  205. package/lib/modal/index.js +20 -25
  206. package/lib/platform/platform-card/index.js +9 -12
  207. package/lib/platform/switch-platform/index.js +24 -32
  208. package/lib/policy-list/index.js +9 -12
  209. package/lib/policy-list/policy-card.js +119 -153
  210. package/lib/radio/index.js +33 -35
  211. package/lib/select/attached-select.js +32 -35
  212. package/lib/select/select.js +13 -9
  213. package/lib/select/time-select.js +12 -16
  214. package/lib/status-box/index.js +6 -8
  215. package/lib/table/index.js +69 -93
  216. package/lib/tabs/index.js +8 -2
  217. package/lib/typography/index.js +6 -8
  218. package/lib/upload/index.js +48 -66
  219. package/lib/upload-photo/index.js +47 -63
  220. package/lib/upload-photo/media.js +3 -4
  221. package/lib/upload-preview/index.js +9 -12
  222. package/lib/upload-preview/media.js +12 -16
  223. package/lib/upload-preview/style/index.less +2 -2
  224. package/lib/utils/form-utils.js +20 -27
  225. package/package.json +1 -1
@@ -58,18 +58,16 @@ var LocaleProvider = function LocaleProvider(_ref) {
58
58
  });
59
59
  };
60
60
 
61
- return _jsx(LocaleContext.Provider, Object.assign({
61
+ return _jsx(LocaleContext.Provider, {
62
62
  value: {
63
63
  formatMessage: formatMessage,
64
64
  currentLang: currentLang
65
- }
66
- }, {
67
- children: _jsx(_ConfigProvider, Object.assign({
68
- locale: antdLocale[currentLang] || antdDefault
69
- }, {
65
+ },
66
+ children: _jsx(_ConfigProvider, {
67
+ locale: antdLocale[currentLang] || antdDefault,
70
68
  children: children
71
- }), void 0)
72
- }), void 0);
69
+ }, void 0)
70
+ }, void 0);
73
71
  };
74
72
 
75
73
  export default LocaleProvider;
@@ -4,6 +4,7 @@
4
4
  "1 file in progress...": "กำลังดำเนินการ 1 ไฟล์...",
5
5
  "Accept": "ยอมรับ",
6
6
  "Action": "ดำเนินงาน",
7
+ "Add": "",
7
8
  "Apply": "ใช้",
8
9
  "Apply Columns": "ใช้คอลัมน์",
9
10
  "Cancel": "ยกเลิก",
@@ -47,6 +48,7 @@
47
48
  "Processing progress cannot be updated at the moment. Don’t worry! All your file data are still in progress.": "ไม่สามารถอัปเดตการประมวลผลได้ในขณะนี้ ไม่ต้องกังวล! ไฟล์ของคุณทั้งหมดกำลังอยู่ระหว่างดำเนินการ",
48
49
  "Quantity of files should be less than {limit}": "จำนวนไฟล์ควรน้อยกว่า {limit}",
49
50
  "Reject": "ปฏิเสธ",
51
+ "Remove": "",
50
52
  "Resend OTP": "ขอ OTP อีกครั้ง",
51
53
  "Resend in": "ส่งอีกครั้งใน",
52
54
  "Reset All Filters": "รีเซทตัวกรอง",
@@ -4,6 +4,7 @@
4
4
  "1 file in progress...": "1 tệp đang được xử lý",
5
5
  "Accept": "Chấp nhận",
6
6
  "Action": "Chạy",
7
+ "Add": "",
7
8
  "Apply": "Áp dụng",
8
9
  "Apply Columns": "Áp dụng Cột",
9
10
  "Cancel": "Hủy",
@@ -47,6 +48,7 @@
47
48
  "Processing progress cannot be updated at the moment. Don’t worry! All your file data are still in progress.": "Dữ liệu chưa được cập nhật và đang trong quá trình xử lý.",
48
49
  "Quantity of files should be less than {limit}": "Số lượng tệp tin không vượt quá {limit}",
49
50
  "Reject": "Từ chối",
51
+ "Remove": "",
50
52
  "Resend OTP": "Gửi lại OTP",
51
53
  "Resend in": "Gửi lại trong",
52
54
  "Reset All Filters": "Xóa lọc",
@@ -4,6 +4,7 @@
4
4
  "1 file in progress...": "1个文件正在处理...",
5
5
  "Accept": "接受",
6
6
  "Action": "操作",
7
+ "Add": "",
7
8
  "Apply": "应用",
8
9
  "Apply Columns": "应用",
9
10
  "Cancel": "取消",
@@ -47,6 +48,7 @@
47
48
  "Processing progress cannot be updated at the moment. Don’t worry! All your file data are still in progress.": "文件解析中,请耐心等待。",
48
49
  "Quantity of files should be less than {limit}": "文件数量不能超过{limit}",
49
50
  "Reject": "拒绝",
51
+ "Remove": "",
50
52
  "Resend OTP": "重新发送OTP",
51
53
  "Resend in": "重新发送",
52
54
  "Reset All Filters": "重置所有过滤条件",
@@ -13,81 +13,69 @@ var LoginPage = function LoginPage(_ref) {
13
13
  md = _Grid$useBreakpoint.md;
14
14
 
15
15
  if (!md) {
16
- return _jsxs("div", Object.assign({
17
- className: "igloo-login-page-mobile"
18
- }, {
16
+ return _jsxs("div", {
17
+ className: "igloo-login-page-mobile",
19
18
  children: [_jsx("div", {
20
19
  className: "igloo-login-page-mobile-logo"
21
- }, void 0), _jsx("div", Object.assign({
22
- className: "igloo-login-page-mobile-child-box"
23
- }, {
20
+ }, void 0), _jsx("div", {
21
+ className: "igloo-login-page-mobile-child-box",
24
22
  children: children
25
- }), void 0)]
26
- }), void 0);
23
+ }, void 0)]
24
+ }, void 0);
27
25
  }
28
26
 
29
- return _jsxs("div", Object.assign({
30
- className: "igloo-login-page"
31
- }, {
27
+ return _jsxs("div", {
28
+ className: "igloo-login-page",
32
29
  children: [_jsx("div", {
33
30
  className: "igloo-login-page-logo"
34
- }, void 0), _jsx("div", Object.assign({
35
- className: "igloo-login-page-child-box"
36
- }, {
31
+ }, void 0), _jsx("div", {
32
+ className: "igloo-login-page-child-box",
37
33
  children: children
38
- }), void 0), _jsxs("div", Object.assign({
39
- className: "igloo-login-page-text-box"
40
- }, {
41
- children: [_jsxs("div", Object.assign({
42
- className: "igloo-login-page-text-box-text"
43
- }, {
44
- children: [_jsx("div", Object.assign({
34
+ }, void 0), _jsxs("div", {
35
+ className: "igloo-login-page-text-box",
36
+ children: [_jsxs("div", {
37
+ className: "igloo-login-page-text-box-text",
38
+ children: [_jsx("div", {
45
39
  style: {
46
40
  fontSize: 80,
47
41
  lineHeight: '88px'
48
- }
49
- }, {
42
+ },
50
43
  children: "Simple."
51
- }), void 0), _jsx("div", Object.assign({
44
+ }, void 0), _jsx("div", {
52
45
  style: {
53
46
  fontSize: 80,
54
47
  lineHeight: '88px'
55
- }
56
- }, {
48
+ },
57
49
  children: "Painless."
58
- }), void 0), _jsx("div", Object.assign({
50
+ }, void 0), _jsx("div", {
59
51
  style: {
60
52
  fontSize: 80,
61
53
  lineHeight: '88px'
62
- }
63
- }, {
54
+ },
64
55
  children: "Honest."
65
- }), void 0), _jsx("div", Object.assign({
56
+ }, void 0), _jsx("div", {
66
57
  style: {
67
58
  fontSize: 48,
68
59
  marginTop: 48
69
- }
70
- }, {
60
+ },
71
61
  children: "Insurance for all."
72
- }), void 0), _jsx("div", Object.assign({
62
+ }, void 0), _jsx("div", {
73
63
  style: {
74
64
  fontSize: 26,
75
65
  marginTop: 75
76
- }
77
- }, {
66
+ },
78
67
  children: "iglooinsure.com"
79
- }), void 0)]
80
- }), void 0), showAppStore && _jsxs("div", Object.assign({
81
- className: "igloo-login-page-text-box-buttons"
82
- }, {
68
+ }, void 0)]
69
+ }, void 0), showAppStore && _jsxs("div", {
70
+ className: "igloo-login-page-text-box-buttons",
83
71
  children: [_jsx("div", {
84
72
  className: classnames('igloo-login-page-text-box-buttons-button', 'igloo-login-page-text-box-buttons-apple')
85
73
  }, void 0), _jsx("div", {
86
74
  className: classnames('igloo-login-page-text-box-buttons-button', 'igloo-login-page-text-box-buttons-google')
87
75
  }, void 0)]
88
- }), void 0)]
89
- }), void 0)]
90
- }), void 0);
76
+ }, void 0)]
77
+ }, void 0)]
78
+ }, void 0);
91
79
  };
92
80
 
93
81
  export default LoginPage;
package/es/media/index.js CHANGED
@@ -206,16 +206,15 @@ var MediaWithPreview = function MediaWithPreview(_ref) {
206
206
  }
207
207
  };
208
208
 
209
- return _jsxs("div", Object.assign({
209
+ return _jsxs("div", {
210
210
  className: className,
211
- style: style
212
- }, {
211
+ style: style,
213
212
  children: [_jsx(Media, {
214
213
  type: mediaType,
215
214
  src: src,
216
215
  onClick: open,
217
216
  name: name
218
- }, void 0), _jsxs(_Modal, Object.assign({
217
+ }, void 0), _jsxs(_Modal, {
219
218
  visible: showModal,
220
219
  onCancel: close,
221
220
  footer: null,
@@ -226,52 +225,46 @@ var MediaWithPreview = function MediaWithPreview(_ref) {
226
225
  }, void 0),
227
226
  wrapClassName: "igloo-media-preview",
228
227
  width: "100%",
229
- destroyOnClose: true
230
- }, {
231
- children: [Boolean(docNames && docNames.length) && _jsxs("div", Object.assign({
232
- className: "igloo-document-name"
233
- }, {
228
+ destroyOnClose: true,
229
+ children: [Boolean(docNames && docNames.length) && _jsxs("div", {
230
+ className: "igloo-document-name",
234
231
  children: [_jsx("div", {
235
232
  children: docNames[current]
236
233
  }, void 0), _jsx("div", {
237
- children: _jsxs(Typography, Object.assign({
238
- level: "body1"
239
- }, {
234
+ children: _jsxs(Typography, {
235
+ level: "body1",
240
236
  children: [current + 1, "/", docNames.length]
241
- }), void 0)
237
+ }, void 0)
242
238
  }, void 0)]
243
- }), void 0), _jsxs("div", Object.assign({
244
- className: "igloo-media-list"
245
- }, {
239
+ }, void 0), _jsxs("div", {
240
+ className: "igloo-media-list",
246
241
  children: [Boolean(list && !!list.length) && list.map(function (_ref2, index) {
247
242
  var src = _ref2.src,
248
243
  type = _ref2.type;
249
- return _jsx("div", Object.assign({
244
+ return _jsx("div", {
250
245
  className: classnames({
251
246
  'igloo-media-animating': needShowAnimation(index),
252
247
  'igloo-media': true
253
248
  }),
254
249
  style: {
255
250
  transform: "translateX(".concat(getTranslateX(index) * 100, "vw)")
256
- }
257
- }, {
251
+ },
258
252
  children: _jsx(PreviewMedia, {
259
253
  type: type,
260
254
  src: src,
261
255
  scale: scale,
262
256
  isCurrent: index === current
263
257
  }, void 0)
264
- }), index);
265
- }), Boolean(!list || !list.length) && _jsx("div", Object.assign({
266
- className: "igloo-media"
267
- }, {
258
+ }, index);
259
+ }), Boolean(!list || !list.length) && _jsx("div", {
260
+ className: "igloo-media",
268
261
  children: _jsx(PreviewMedia, {
269
262
  type: mediaType,
270
263
  src: src,
271
264
  scale: scale,
272
265
  isCurrent: true
273
266
  }, void 0)
274
- }), index), _jsx(MinusOutlined, {
267
+ }, index), _jsx(MinusOutlined, {
275
268
  onClick: zoomIn,
276
269
  className: classnames({
277
270
  'igloo-preview-zoom-btn': true,
@@ -306,9 +299,9 @@ var MediaWithPreview = function MediaWithPreview(_ref) {
306
299
  },
307
300
  onClick: toRight
308
301
  }, void 0)]
309
- }), void 0)]
310
- }), void 0)]
311
- }), void 0);
302
+ }, void 0)]
303
+ }, void 0)]
304
+ }, void 0);
312
305
  };
313
306
 
314
307
  export default MediaWithPreview;
package/es/media/media.js CHANGED
@@ -19,18 +19,17 @@ var MediaItem = function MediaItem(_ref) {
19
19
  }, void 0);
20
20
 
21
21
  case 'pdf':
22
- return _jsx("div", Object.assign({
22
+ return _jsx("div", {
23
23
  style: {
24
24
  maxWidth: 80,
25
25
  maxHeight: 80,
26
26
  position: 'absolute'
27
- }
28
- }, {
27
+ },
29
28
  children: _jsx(PDF, {
30
29
  file: src,
31
30
  scale: 0.1
32
31
  }, void 0)
33
- }), void 0);
32
+ }, void 0);
34
33
 
35
34
  default:
36
35
  return _jsx("img", {
@@ -49,11 +48,10 @@ var Media = function Media(_ref2) {
49
48
  name = _ref2.name,
50
49
  type = _ref2.type,
51
50
  onClick = _ref2.onClick;
52
- return _jsx(_Tooltip, Object.assign({
51
+ return _jsx(_Tooltip, {
53
52
  title: name,
54
- placement: "bottom"
55
- }, {
56
- children: _jsxs("div", Object.assign({
53
+ placement: "bottom",
54
+ children: _jsxs("div", {
57
55
  onClick: onClick,
58
56
  style: {
59
57
  position: 'relative',
@@ -64,8 +62,7 @@ var Media = function Media(_ref2) {
64
62
  alignItems: 'center',
65
63
  overflow: 'hidden',
66
64
  border: '1px solid #EEEEEE'
67
- }
68
- }, {
65
+ },
69
66
  children: [_jsx(MediaItem, {
70
67
  type: type,
71
68
  src: src
@@ -78,8 +75,8 @@ var Media = function Media(_ref2) {
78
75
  },
79
76
  onClick: onClick
80
77
  }, void 0)]
81
- }), void 0)
82
- }), void 0);
78
+ }, void 0)
79
+ }, void 0);
83
80
  };
84
81
 
85
82
  export default Media;
@@ -52,7 +52,7 @@ var PdfViewer = function PdfViewer(_ref) {
52
52
  }, i));
53
53
  }
54
54
 
55
- return _jsx("div", Object.assign({
55
+ return _jsx("div", {
56
56
  style: {
57
57
  display: 'flex',
58
58
  flexDirection: 'column',
@@ -60,10 +60,9 @@ var PdfViewer = function PdfViewer(_ref) {
60
60
  maxHeight: '100%',
61
61
  transform: "translate(".concat(left, "px, ").concat(top, "px)"),
62
62
  position: 'absolute'
63
- }
64
- }, {
63
+ },
65
64
  children: pages
66
- }), void 0);
65
+ }, void 0);
67
66
  };
68
67
 
69
68
  var MediaItem = function MediaItem(_ref3) {
@@ -195,7 +194,7 @@ var Media = function Media(_ref4) {
195
194
  });
196
195
  };
197
196
 
198
- return _jsx("div", Object.assign({
197
+ return _jsx("div", {
199
198
  style: {
200
199
  position: 'relative',
201
200
  width: '100%',
@@ -207,8 +206,7 @@ var Media = function Media(_ref4) {
207
206
  },
208
207
  onMouseDown: handleMouseDown,
209
208
  onMouseUp: handleMouseUp,
210
- onMouseMove: handleMouseMove
211
- }, {
209
+ onMouseMove: handleMouseMove,
212
210
  children: _jsx(MediaItem, {
213
211
  type: type,
214
212
  src: src,
@@ -216,7 +214,7 @@ var Media = function Media(_ref4) {
216
214
  offset: offset,
217
215
  isCurrent: isCurrent
218
216
  }, void 0)
219
- }), void 0);
217
+ }, void 0);
220
218
  };
221
219
 
222
220
  export default Media;
@@ -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;