@bigbinary/neeto-molecules 1.0.28 → 1.0.29
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.
- package/dist/BrowserSupport.cjs.js +22 -1221
- package/dist/BrowserSupport.cjs.js.map +1 -1
- package/dist/BrowserSupport.js +22 -1221
- package/dist/BrowserSupport.js.map +1 -1
- package/dist/Columns.cjs.js +39 -976
- package/dist/Columns.cjs.js.map +1 -1
- package/dist/Columns.js +39 -976
- package/dist/Columns.js.map +1 -1
- package/dist/Container.cjs.js +3 -125
- package/dist/Container.cjs.js.map +1 -1
- package/dist/Container.js +3 -125
- package/dist/Container.js.map +1 -1
- package/dist/CustomDomain.cjs.js +156 -6060
- package/dist/CustomDomain.cjs.js.map +1 -1
- package/dist/CustomDomain.js +156 -6060
- package/dist/CustomDomain.js.map +1 -1
- package/dist/DateFormat.cjs.js +9 -264
- package/dist/DateFormat.cjs.js.map +1 -1
- package/dist/DateFormat.js +9 -264
- package/dist/DateFormat.js.map +1 -1
- package/dist/DateRangeFilter.cjs.js +35 -715
- package/dist/DateRangeFilter.cjs.js.map +1 -1
- package/dist/DateRangeFilter.js +35 -715
- package/dist/DateRangeFilter.js.map +1 -1
- package/dist/DynamicVariables.cjs.js +26 -908
- package/dist/DynamicVariables.cjs.js.map +1 -1
- package/dist/DynamicVariables.js +26 -908
- package/dist/DynamicVariables.js.map +1 -1
- package/dist/EmailPreview.cjs.js +14 -349
- package/dist/EmailPreview.cjs.js.map +1 -1
- package/dist/EmailPreview.js +14 -349
- package/dist/EmailPreview.js.map +1 -1
- package/dist/ErrorPage.cjs.js +13 -541
- package/dist/ErrorPage.cjs.js.map +1 -1
- package/dist/ErrorPage.js +13 -541
- package/dist/ErrorPage.js.map +1 -1
- package/dist/Header.cjs.js +13 -513
- package/dist/Header.cjs.js.map +1 -1
- package/dist/Header.js +13 -513
- package/dist/Header.js.map +1 -1
- package/dist/IpRestriction.cjs.js +134 -4226
- package/dist/IpRestriction.cjs.js.map +1 -1
- package/dist/IpRestriction.js +134 -4226
- package/dist/IpRestriction.js.map +1 -1
- package/dist/KeyboardShortcuts.cjs.js +51 -2129
- package/dist/KeyboardShortcuts.cjs.js.map +1 -1
- package/dist/KeyboardShortcuts.js +51 -2129
- package/dist/KeyboardShortcuts.js.map +1 -1
- package/dist/LoginPage.cjs.js +32 -752
- package/dist/LoginPage.cjs.js.map +1 -1
- package/dist/LoginPage.js +32 -752
- package/dist/LoginPage.js.map +1 -1
- package/dist/MenuBar.cjs.js +28 -1501
- package/dist/MenuBar.cjs.js.map +1 -1
- package/dist/MenuBar.js +28 -1501
- package/dist/MenuBar.js.map +1 -1
- package/dist/NeetoWidget.cjs.js +170 -6756
- package/dist/NeetoWidget.cjs.js.map +1 -1
- package/dist/NeetoWidget.js +171 -6757
- package/dist/NeetoWidget.js.map +1 -1
- package/dist/PageLoader.cjs.js +3 -160
- package/dist/PageLoader.cjs.js.map +1 -1
- package/dist/PageLoader.js +3 -160
- package/dist/PageLoader.js.map +1 -1
- package/dist/PhoneNumber.cjs.js +64 -2291
- package/dist/PhoneNumber.cjs.js.map +1 -1
- package/dist/PhoneNumber.js +64 -2291
- package/dist/PhoneNumber.js.map +1 -1
- package/dist/PublishBlock.cjs.js +19 -512
- package/dist/PublishBlock.cjs.js.map +1 -1
- package/dist/PublishBlock.js +19 -512
- package/dist/PublishBlock.js.map +1 -1
- package/dist/Rename.cjs.js +46 -1090
- package/dist/Rename.cjs.js.map +1 -1
- package/dist/Rename.js +48 -1092
- package/dist/Rename.js.map +1 -1
- package/dist/ResponsiveDevicePicker.cjs.js +9 -296
- package/dist/ResponsiveDevicePicker.cjs.js.map +1 -1
- package/dist/ResponsiveDevicePicker.js +9 -296
- package/dist/ResponsiveDevicePicker.js.map +1 -1
- package/dist/Schedule.cjs.js +356 -7305
- package/dist/Schedule.cjs.js.map +1 -1
- package/dist/Schedule.js +356 -7305
- package/dist/Schedule.js.map +1 -1
- package/dist/Scrollable.cjs.js +4 -183
- package/dist/Scrollable.cjs.js.map +1 -1
- package/dist/Scrollable.js +4 -183
- package/dist/Scrollable.js.map +1 -1
- package/dist/ShareViaEmail.cjs.js +68 -2481
- package/dist/ShareViaEmail.cjs.js.map +1 -1
- package/dist/ShareViaEmail.js +68 -2481
- package/dist/ShareViaEmail.js.map +1 -1
- package/dist/ShareViaLink.cjs.js +57 -1640
- package/dist/ShareViaLink.cjs.js.map +1 -1
- package/dist/ShareViaLink.js +57 -1640
- package/dist/ShareViaLink.js.map +1 -1
- package/dist/Sidebar.cjs.js +99 -4367
- package/dist/Sidebar.cjs.js.map +1 -1
- package/dist/Sidebar.js +99 -4367
- package/dist/Sidebar.js.map +1 -1
- package/dist/SubHeader.cjs.js +17 -781
- package/dist/SubHeader.cjs.js.map +1 -1
- package/dist/SubHeader.js +17 -781
- package/dist/SubHeader.js.map +1 -1
- package/dist/TableWrapper.cjs.js +2 -150
- package/dist/TableWrapper.cjs.js.map +1 -1
- package/dist/TableWrapper.js +2 -150
- package/dist/TableWrapper.js.map +1 -1
- package/dist/TimeFormat.cjs.js +1 -44
- package/dist/TimeFormat.cjs.js.map +1 -1
- package/dist/TimeFormat.js +1 -44
- package/dist/TimeFormat.js.map +1 -1
- package/dist/TimezoneMismatchModal.cjs.js +18 -905
- package/dist/TimezoneMismatchModal.cjs.js.map +1 -1
- package/dist/TimezoneMismatchModal.js +18 -905
- package/dist/TimezoneMismatchModal.js.map +1 -1
- package/package.json +3 -2
package/dist/ShareViaEmail.js
CHANGED
|
@@ -13,339 +13,6 @@ import { prop } from 'ramda';
|
|
|
13
13
|
import * as yup from 'yup';
|
|
14
14
|
import { string } from 'yup';
|
|
15
15
|
|
|
16
|
-
function cov_1dl40tmc3s() {
|
|
17
|
-
var path = "/home/runner/work/neeto-molecules/neeto-molecules/src/components/EmailPreview.jsx";
|
|
18
|
-
var hash = "32018ff24a7fe6cc7b352904df5a6d8513f9fb55";
|
|
19
|
-
var global = new Function("return this")();
|
|
20
|
-
var gcv = "__coverage__";
|
|
21
|
-
var coverageData = {
|
|
22
|
-
path: "/home/runner/work/neeto-molecules/neeto-molecules/src/components/EmailPreview.jsx",
|
|
23
|
-
statementMap: {
|
|
24
|
-
"0": {
|
|
25
|
-
start: {
|
|
26
|
-
line: 8,
|
|
27
|
-
column: 21
|
|
28
|
-
},
|
|
29
|
-
end: {
|
|
30
|
-
line: 133,
|
|
31
|
-
column: 1
|
|
32
|
-
}
|
|
33
|
-
},
|
|
34
|
-
"1": {
|
|
35
|
-
start: {
|
|
36
|
-
line: 17,
|
|
37
|
-
column: 16
|
|
38
|
-
},
|
|
39
|
-
end: {
|
|
40
|
-
line: 17,
|
|
41
|
-
column: 32
|
|
42
|
-
}
|
|
43
|
-
},
|
|
44
|
-
"2": {
|
|
45
|
-
start: {
|
|
46
|
-
line: 19,
|
|
47
|
-
column: 2
|
|
48
|
-
},
|
|
49
|
-
end: {
|
|
50
|
-
line: 132,
|
|
51
|
-
column: 4
|
|
52
|
-
}
|
|
53
|
-
}
|
|
54
|
-
},
|
|
55
|
-
fnMap: {
|
|
56
|
-
"0": {
|
|
57
|
-
name: "(anonymous_0)",
|
|
58
|
-
decl: {
|
|
59
|
-
start: {
|
|
60
|
-
line: 8,
|
|
61
|
-
column: 21
|
|
62
|
-
},
|
|
63
|
-
end: {
|
|
64
|
-
line: 8,
|
|
65
|
-
column: 22
|
|
66
|
-
}
|
|
67
|
-
},
|
|
68
|
-
loc: {
|
|
69
|
-
start: {
|
|
70
|
-
line: 16,
|
|
71
|
-
column: 6
|
|
72
|
-
},
|
|
73
|
-
end: {
|
|
74
|
-
line: 133,
|
|
75
|
-
column: 1
|
|
76
|
-
}
|
|
77
|
-
},
|
|
78
|
-
line: 16
|
|
79
|
-
}
|
|
80
|
-
},
|
|
81
|
-
branchMap: {
|
|
82
|
-
"0": {
|
|
83
|
-
loc: {
|
|
84
|
-
start: {
|
|
85
|
-
line: 37,
|
|
86
|
-
column: 11
|
|
87
|
-
},
|
|
88
|
-
end: {
|
|
89
|
-
line: 47,
|
|
90
|
-
column: 11
|
|
91
|
-
}
|
|
92
|
-
},
|
|
93
|
-
type: "cond-expr",
|
|
94
|
-
locations: [{
|
|
95
|
-
start: {
|
|
96
|
-
line: 38,
|
|
97
|
-
column: 12
|
|
98
|
-
},
|
|
99
|
-
end: {
|
|
100
|
-
line: 44,
|
|
101
|
-
column: 25
|
|
102
|
-
}
|
|
103
|
-
}, {
|
|
104
|
-
start: {
|
|
105
|
-
line: 46,
|
|
106
|
-
column: 12
|
|
107
|
-
},
|
|
108
|
-
end: {
|
|
109
|
-
line: 46,
|
|
110
|
-
column: 88
|
|
111
|
-
}
|
|
112
|
-
}],
|
|
113
|
-
line: 37
|
|
114
|
-
},
|
|
115
|
-
"1": {
|
|
116
|
-
loc: {
|
|
117
|
-
start: {
|
|
118
|
-
line: 49,
|
|
119
|
-
column: 9
|
|
120
|
-
},
|
|
121
|
-
end: {
|
|
122
|
-
line: 67,
|
|
123
|
-
column: 9
|
|
124
|
-
}
|
|
125
|
-
},
|
|
126
|
-
type: "binary-expr",
|
|
127
|
-
locations: [{
|
|
128
|
-
start: {
|
|
129
|
-
line: 49,
|
|
130
|
-
column: 9
|
|
131
|
-
},
|
|
132
|
-
end: {
|
|
133
|
-
line: 49,
|
|
134
|
-
column: 13
|
|
135
|
-
}
|
|
136
|
-
}, {
|
|
137
|
-
start: {
|
|
138
|
-
line: 50,
|
|
139
|
-
column: 10
|
|
140
|
-
},
|
|
141
|
-
end: {
|
|
142
|
-
line: 66,
|
|
143
|
-
column: 16
|
|
144
|
-
}
|
|
145
|
-
}],
|
|
146
|
-
line: 49
|
|
147
|
-
},
|
|
148
|
-
"2": {
|
|
149
|
-
loc: {
|
|
150
|
-
start: {
|
|
151
|
-
line: 82,
|
|
152
|
-
column: 13
|
|
153
|
-
},
|
|
154
|
-
end: {
|
|
155
|
-
line: 84,
|
|
156
|
-
column: 13
|
|
157
|
-
}
|
|
158
|
-
},
|
|
159
|
-
type: "binary-expr",
|
|
160
|
-
locations: [{
|
|
161
|
-
start: {
|
|
162
|
-
line: 82,
|
|
163
|
-
column: 13
|
|
164
|
-
},
|
|
165
|
-
end: {
|
|
166
|
-
line: 82,
|
|
167
|
-
column: 20
|
|
168
|
-
}
|
|
169
|
-
}, {
|
|
170
|
-
start: {
|
|
171
|
-
line: 83,
|
|
172
|
-
column: 14
|
|
173
|
-
},
|
|
174
|
-
end: {
|
|
175
|
-
line: 83,
|
|
176
|
-
column: 86
|
|
177
|
-
}
|
|
178
|
-
}],
|
|
179
|
-
line: 82
|
|
180
|
-
},
|
|
181
|
-
"3": {
|
|
182
|
-
loc: {
|
|
183
|
-
start: {
|
|
184
|
-
line: 92,
|
|
185
|
-
column: 9
|
|
186
|
-
},
|
|
187
|
-
end: {
|
|
188
|
-
line: 100,
|
|
189
|
-
column: 9
|
|
190
|
-
}
|
|
191
|
-
},
|
|
192
|
-
type: "cond-expr",
|
|
193
|
-
locations: [{
|
|
194
|
-
start: {
|
|
195
|
-
line: 93,
|
|
196
|
-
column: 10
|
|
197
|
-
},
|
|
198
|
-
end: {
|
|
199
|
-
line: 93,
|
|
200
|
-
column: 42
|
|
201
|
-
}
|
|
202
|
-
}, {
|
|
203
|
-
start: {
|
|
204
|
-
line: 95,
|
|
205
|
-
column: 10
|
|
206
|
-
},
|
|
207
|
-
end: {
|
|
208
|
-
line: 99,
|
|
209
|
-
column: 16
|
|
210
|
-
}
|
|
211
|
-
}],
|
|
212
|
-
line: 92
|
|
213
|
-
},
|
|
214
|
-
"4": {
|
|
215
|
-
loc: {
|
|
216
|
-
start: {
|
|
217
|
-
line: 101,
|
|
218
|
-
column: 9
|
|
219
|
-
},
|
|
220
|
-
end: {
|
|
221
|
-
line: 105,
|
|
222
|
-
column: 9
|
|
223
|
-
}
|
|
224
|
-
},
|
|
225
|
-
type: "binary-expr",
|
|
226
|
-
locations: [{
|
|
227
|
-
start: {
|
|
228
|
-
line: 101,
|
|
229
|
-
column: 9
|
|
230
|
-
},
|
|
231
|
-
end: {
|
|
232
|
-
line: 101,
|
|
233
|
-
column: 25
|
|
234
|
-
}
|
|
235
|
-
}, {
|
|
236
|
-
start: {
|
|
237
|
-
line: 102,
|
|
238
|
-
column: 10
|
|
239
|
-
},
|
|
240
|
-
end: {
|
|
241
|
-
line: 104,
|
|
242
|
-
column: 16
|
|
243
|
-
}
|
|
244
|
-
}],
|
|
245
|
-
line: 101
|
|
246
|
-
},
|
|
247
|
-
"5": {
|
|
248
|
-
loc: {
|
|
249
|
-
start: {
|
|
250
|
-
line: 106,
|
|
251
|
-
column: 9
|
|
252
|
-
},
|
|
253
|
-
end: {
|
|
254
|
-
line: 113,
|
|
255
|
-
column: 9
|
|
256
|
-
}
|
|
257
|
-
},
|
|
258
|
-
type: "binary-expr",
|
|
259
|
-
locations: [{
|
|
260
|
-
start: {
|
|
261
|
-
line: 106,
|
|
262
|
-
column: 9
|
|
263
|
-
},
|
|
264
|
-
end: {
|
|
265
|
-
line: 106,
|
|
266
|
-
column: 13
|
|
267
|
-
}
|
|
268
|
-
}, {
|
|
269
|
-
start: {
|
|
270
|
-
line: 107,
|
|
271
|
-
column: 10
|
|
272
|
-
},
|
|
273
|
-
end: {
|
|
274
|
-
line: 112,
|
|
275
|
-
column: 12
|
|
276
|
-
}
|
|
277
|
-
}],
|
|
278
|
-
line: 106
|
|
279
|
-
},
|
|
280
|
-
"6": {
|
|
281
|
-
loc: {
|
|
282
|
-
start: {
|
|
283
|
-
line: 115,
|
|
284
|
-
column: 7
|
|
285
|
-
},
|
|
286
|
-
end: {
|
|
287
|
-
line: 130,
|
|
288
|
-
column: 7
|
|
289
|
-
}
|
|
290
|
-
},
|
|
291
|
-
type: "binary-expr",
|
|
292
|
-
locations: [{
|
|
293
|
-
start: {
|
|
294
|
-
line: 115,
|
|
295
|
-
column: 7
|
|
296
|
-
},
|
|
297
|
-
end: {
|
|
298
|
-
line: 115,
|
|
299
|
-
column: 18
|
|
300
|
-
}
|
|
301
|
-
}, {
|
|
302
|
-
start: {
|
|
303
|
-
line: 116,
|
|
304
|
-
column: 8
|
|
305
|
-
},
|
|
306
|
-
end: {
|
|
307
|
-
line: 129,
|
|
308
|
-
column: 14
|
|
309
|
-
}
|
|
310
|
-
}],
|
|
311
|
-
line: 115
|
|
312
|
-
}
|
|
313
|
-
},
|
|
314
|
-
s: {
|
|
315
|
-
"0": 0,
|
|
316
|
-
"1": 0,
|
|
317
|
-
"2": 0
|
|
318
|
-
},
|
|
319
|
-
f: {
|
|
320
|
-
"0": 0
|
|
321
|
-
},
|
|
322
|
-
b: {
|
|
323
|
-
"0": [0, 0],
|
|
324
|
-
"1": [0, 0],
|
|
325
|
-
"2": [0, 0],
|
|
326
|
-
"3": [0, 0],
|
|
327
|
-
"4": [0, 0],
|
|
328
|
-
"5": [0, 0],
|
|
329
|
-
"6": [0, 0]
|
|
330
|
-
},
|
|
331
|
-
_coverageSchema: "1a1c01bbd47fc00a2c39e90264f33305004495a9",
|
|
332
|
-
hash: "32018ff24a7fe6cc7b352904df5a6d8513f9fb55"
|
|
333
|
-
};
|
|
334
|
-
var coverage = global[gcv] || (global[gcv] = {});
|
|
335
|
-
if (!coverage[path] || coverage[path].hash !== hash) {
|
|
336
|
-
coverage[path] = coverageData;
|
|
337
|
-
}
|
|
338
|
-
var actualCoverage = coverage[path];
|
|
339
|
-
{
|
|
340
|
-
// @ts-ignore
|
|
341
|
-
cov_1dl40tmc3s = function () {
|
|
342
|
-
return actualCoverage;
|
|
343
|
-
};
|
|
344
|
-
}
|
|
345
|
-
return actualCoverage;
|
|
346
|
-
}
|
|
347
|
-
cov_1dl40tmc3s();
|
|
348
|
-
cov_1dl40tmc3s().s[0]++;
|
|
349
16
|
var EmailPreview = function EmailPreview(_ref) {
|
|
350
17
|
var to = _ref.to,
|
|
351
18
|
from = _ref.from,
|
|
@@ -354,10 +21,8 @@ var EmailPreview = function EmailPreview(_ref) {
|
|
|
354
21
|
productName = _ref.productName,
|
|
355
22
|
actionButtonText = _ref.actionButtonText,
|
|
356
23
|
logo = _ref.logo;
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
t = _ref2.t;
|
|
360
|
-
cov_1dl40tmc3s().s[2]++;
|
|
24
|
+
var _useTranslation = useTranslation(),
|
|
25
|
+
t = _useTranslation.t;
|
|
361
26
|
return /*#__PURE__*/React.createElement("div", {
|
|
362
27
|
className: "neeto-ui-border-gray-300 neeto-ui-shadow-m neeto-ui-bg-white flex flex-1 flex-col border",
|
|
363
28
|
"data-cy": "email-preview-card"
|
|
@@ -371,13 +36,13 @@ var EmailPreview = function EmailPreview(_ref) {
|
|
|
371
36
|
className: "neeto-ui-text-gray-500",
|
|
372
37
|
lineHeight: "normal",
|
|
373
38
|
style: "body2"
|
|
374
|
-
}, t("neetoMolecules.emailPreview.to"), ":"), isNotEmpty(to) ?
|
|
39
|
+
}, t("neetoMolecules.emailPreview.to"), ":"), isNotEmpty(to) ? /*#__PURE__*/React.createElement(Typography, {
|
|
375
40
|
className: "neeto-ui-text-gray-800 min-w-0 flex-grow break-words",
|
|
376
41
|
lineHeight: "normal",
|
|
377
42
|
style: "body2"
|
|
378
|
-
}, to.join(", "))
|
|
43
|
+
}, to.join(", ")) : /*#__PURE__*/React.createElement("div", {
|
|
379
44
|
className: "neeto-ui-bg-gray-300 neeto-ui-rounded-full mt-2 h-2 w-40"
|
|
380
|
-
}))
|
|
45
|
+
})), from && /*#__PURE__*/React.createElement("div", {
|
|
381
46
|
className: "flex items-center gap-2 pt-3"
|
|
382
47
|
}, /*#__PURE__*/React.createElement(Typography, {
|
|
383
48
|
className: "neeto-ui-text-gray-500",
|
|
@@ -388,7 +53,7 @@ var EmailPreview = function EmailPreview(_ref) {
|
|
|
388
53
|
"data-cy": "email-send-from-preview",
|
|
389
54
|
lineHeight: "normal",
|
|
390
55
|
style: "body2"
|
|
391
|
-
}, from))
|
|
56
|
+
}, from)), /*#__PURE__*/React.createElement("div", {
|
|
392
57
|
className: "flex items-center gap-2 pt-3"
|
|
393
58
|
}, /*#__PURE__*/React.createElement(Typography, {
|
|
394
59
|
className: "neeto-ui-text-gray-500",
|
|
@@ -399,14 +64,14 @@ var EmailPreview = function EmailPreview(_ref) {
|
|
|
399
64
|
"data-cy": "email-subject-preview",
|
|
400
65
|
lineHeight: "normal",
|
|
401
66
|
style: "body2"
|
|
402
|
-
},
|
|
67
|
+
}, subject || /*#__PURE__*/React.createElement("span", {
|
|
403
68
|
className: "neeto-ui-bg-gray-300 neeto-ui-rounded-full h-2 w-40"
|
|
404
|
-
}))))
|
|
69
|
+
})))), /*#__PURE__*/React.createElement("div", {
|
|
405
70
|
className: "neeto-ui-text-gray-800 flex flex-1 flex-col justify-between space-y-6 p-6 pr-10 text-base leading-relaxed",
|
|
406
71
|
"data-cy": "email-body-preview-container"
|
|
407
|
-
}, body ?
|
|
72
|
+
}, body ? /*#__PURE__*/React.createElement(EditorContent, {
|
|
408
73
|
content: body
|
|
409
|
-
})
|
|
74
|
+
}) : /*#__PURE__*/React.createElement("div", {
|
|
410
75
|
className: "space-y-4"
|
|
411
76
|
}, /*#__PURE__*/React.createElement("div", {
|
|
412
77
|
className: "neeto-ui-bg-gray-300 neeto-ui-rounded-full h-2 w-80"
|
|
@@ -414,17 +79,17 @@ var EmailPreview = function EmailPreview(_ref) {
|
|
|
414
79
|
className: "neeto-ui-bg-gray-300 neeto-ui-rounded-full h-2 w-72"
|
|
415
80
|
}), /*#__PURE__*/React.createElement("div", {
|
|
416
81
|
className: "neeto-ui-bg-gray-300 neeto-ui-rounded-full h-2 w-80"
|
|
417
|
-
}))
|
|
82
|
+
})), actionButtonText && /*#__PURE__*/React.createElement("div", {
|
|
418
83
|
className: "mt-6 flex w-full items-center justify-center"
|
|
419
84
|
}, /*#__PURE__*/React.createElement(Button, {
|
|
420
85
|
className: "pointer-events-none",
|
|
421
86
|
label: actionButtonText
|
|
422
|
-
}))
|
|
87
|
+
})), logo && /*#__PURE__*/React.createElement("img", {
|
|
423
88
|
alt: t("neetoMolecules.emailPreview.logoAltText"),
|
|
424
89
|
className: "h-20 w-36 object-cover",
|
|
425
90
|
"data-cy": "company-logo-preview",
|
|
426
91
|
src: logo
|
|
427
|
-
}))
|
|
92
|
+
})), productName && /*#__PURE__*/React.createElement("div", {
|
|
428
93
|
className: "neeto-ui-bg-gray-100 mt-auto p-2",
|
|
429
94
|
"data-testid": "product-name-block"
|
|
430
95
|
}, /*#__PURE__*/React.createElement(Typography, {
|
|
@@ -432,7 +97,7 @@ var EmailPreview = function EmailPreview(_ref) {
|
|
|
432
97
|
style: "body3"
|
|
433
98
|
}, t("neetoMolecules.emailPreview.poweredBy"), /*#__PURE__*/React.createElement("span", {
|
|
434
99
|
className: "neeto-ui-text-gray-800 font-medium"
|
|
435
|
-
}, productName))))
|
|
100
|
+
}, productName))));
|
|
436
101
|
};
|
|
437
102
|
|
|
438
103
|
function _arrayWithHoles(arr) {
|
|
@@ -923,95 +588,7 @@ var classnames$1 = {exports: {}};
|
|
|
923
588
|
|
|
924
589
|
var classnames = classnames$1.exports;
|
|
925
590
|
|
|
926
|
-
|
|
927
|
-
var path = "/home/runner/work/neeto-molecules/neeto-molecules/src/components/ShareViaEmail/constants.js";
|
|
928
|
-
var hash = "f52928bf55192f2e02231e4b61ec92b48d760296";
|
|
929
|
-
var global = new Function("return this")();
|
|
930
|
-
var gcv = "__coverage__";
|
|
931
|
-
var coverageData = {
|
|
932
|
-
path: "/home/runner/work/neeto-molecules/neeto-molecules/src/components/ShareViaEmail/constants.js",
|
|
933
|
-
statementMap: {
|
|
934
|
-
"0": {
|
|
935
|
-
start: {
|
|
936
|
-
line: 1,
|
|
937
|
-
column: 28
|
|
938
|
-
},
|
|
939
|
-
end: {
|
|
940
|
-
line: 1,
|
|
941
|
-
column: 37
|
|
942
|
-
}
|
|
943
|
-
},
|
|
944
|
-
"1": {
|
|
945
|
-
start: {
|
|
946
|
-
line: 3,
|
|
947
|
-
column: 30
|
|
948
|
-
},
|
|
949
|
-
end: {
|
|
950
|
-
line: 13,
|
|
951
|
-
column: 1
|
|
952
|
-
}
|
|
953
|
-
},
|
|
954
|
-
"2": {
|
|
955
|
-
start: {
|
|
956
|
-
line: 15,
|
|
957
|
-
column: 29
|
|
958
|
-
},
|
|
959
|
-
end: {
|
|
960
|
-
line: 20,
|
|
961
|
-
column: 1
|
|
962
|
-
}
|
|
963
|
-
},
|
|
964
|
-
"3": {
|
|
965
|
-
start: {
|
|
966
|
-
line: 22,
|
|
967
|
-
column: 41
|
|
968
|
-
},
|
|
969
|
-
end: {
|
|
970
|
-
line: 22,
|
|
971
|
-
column: 49
|
|
972
|
-
}
|
|
973
|
-
},
|
|
974
|
-
"4": {
|
|
975
|
-
start: {
|
|
976
|
-
line: 24,
|
|
977
|
-
column: 33
|
|
978
|
-
},
|
|
979
|
-
end: {
|
|
980
|
-
line: 24,
|
|
981
|
-
column: 54
|
|
982
|
-
}
|
|
983
|
-
}
|
|
984
|
-
},
|
|
985
|
-
fnMap: {},
|
|
986
|
-
branchMap: {},
|
|
987
|
-
s: {
|
|
988
|
-
"0": 0,
|
|
989
|
-
"1": 0,
|
|
990
|
-
"2": 0,
|
|
991
|
-
"3": 0,
|
|
992
|
-
"4": 0
|
|
993
|
-
},
|
|
994
|
-
f: {},
|
|
995
|
-
b: {},
|
|
996
|
-
_coverageSchema: "1a1c01bbd47fc00a2c39e90264f33305004495a9",
|
|
997
|
-
hash: "f52928bf55192f2e02231e4b61ec92b48d760296"
|
|
998
|
-
};
|
|
999
|
-
var coverage = global[gcv] || (global[gcv] = {});
|
|
1000
|
-
if (!coverage[path] || coverage[path].hash !== hash) {
|
|
1001
|
-
coverage[path] = coverageData;
|
|
1002
|
-
}
|
|
1003
|
-
var actualCoverage = coverage[path];
|
|
1004
|
-
{
|
|
1005
|
-
// @ts-ignore
|
|
1006
|
-
cov_arxbygreg = function () {
|
|
1007
|
-
return actualCoverage;
|
|
1008
|
-
};
|
|
1009
|
-
}
|
|
1010
|
-
return actualCoverage;
|
|
1011
|
-
}
|
|
1012
|
-
cov_arxbygreg();
|
|
1013
|
-
(cov_arxbygreg().s[0]++, 1048576);
|
|
1014
|
-
var INITIAL_VALUES = (cov_arxbygreg().s[1]++, {
|
|
591
|
+
var INITIAL_VALUES = {
|
|
1015
592
|
sendFromEmail: "",
|
|
1016
593
|
replyToEmail: "",
|
|
1017
594
|
notifyEmails: [],
|
|
@@ -1021,10 +598,10 @@ var INITIAL_VALUES = (cov_arxbygreg().s[1]++, {
|
|
|
1021
598
|
sendEmailDatetime: undefined,
|
|
1022
599
|
category: "email_share",
|
|
1023
600
|
actionButtonText: ""
|
|
1024
|
-
}
|
|
1025
|
-
var EDITOR_ADDONS =
|
|
1026
|
-
var ALLOWED_FILE_PICKER_TYPES =
|
|
1027
|
-
var DIRECT_UPLOAD_URL =
|
|
601
|
+
};
|
|
602
|
+
var EDITOR_ADDONS = ["emoji", "block-quote", "image-upload", "divider"];
|
|
603
|
+
var ALLOWED_FILE_PICKER_TYPES = [".csv"];
|
|
604
|
+
var DIRECT_UPLOAD_URL = "/api/direct_uploads";
|
|
1028
605
|
|
|
1029
606
|
function _arrayWithoutHoles(arr) {
|
|
1030
607
|
if (Array.isArray(arr)) return _arrayLikeToArray(arr);
|
|
@@ -1042,142 +619,11 @@ function _toConsumableArray(arr) {
|
|
|
1042
619
|
return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread();
|
|
1043
620
|
}
|
|
1044
621
|
|
|
1045
|
-
function cov_1ukti4j6us() {
|
|
1046
|
-
var path = "/home/runner/work/neeto-molecules/neeto-molecules/src/components/ShareViaEmail/EmailBodyEditor.jsx";
|
|
1047
|
-
var hash = "5f7eaa2c88a2bbeccd76458793049c4574c2b3c3";
|
|
1048
|
-
var global = new Function("return this")();
|
|
1049
|
-
var gcv = "__coverage__";
|
|
1050
|
-
var coverageData = {
|
|
1051
|
-
path: "/home/runner/work/neeto-molecules/neeto-molecules/src/components/ShareViaEmail/EmailBodyEditor.jsx",
|
|
1052
|
-
statementMap: {
|
|
1053
|
-
"0": {
|
|
1054
|
-
start: {
|
|
1055
|
-
line: 8,
|
|
1056
|
-
column: 18
|
|
1057
|
-
},
|
|
1058
|
-
end: {
|
|
1059
|
-
line: 28,
|
|
1060
|
-
column: 1
|
|
1061
|
-
}
|
|
1062
|
-
},
|
|
1063
|
-
"1": {
|
|
1064
|
-
start: {
|
|
1065
|
-
line: 9,
|
|
1066
|
-
column: 16
|
|
1067
|
-
},
|
|
1068
|
-
end: {
|
|
1069
|
-
line: 9,
|
|
1070
|
-
column: 32
|
|
1071
|
-
}
|
|
1072
|
-
},
|
|
1073
|
-
"2": {
|
|
1074
|
-
start: {
|
|
1075
|
-
line: 11,
|
|
1076
|
-
column: 2
|
|
1077
|
-
},
|
|
1078
|
-
end: {
|
|
1079
|
-
line: 27,
|
|
1080
|
-
column: 4
|
|
1081
|
-
}
|
|
1082
|
-
}
|
|
1083
|
-
},
|
|
1084
|
-
fnMap: {
|
|
1085
|
-
"0": {
|
|
1086
|
-
name: "(anonymous_0)",
|
|
1087
|
-
decl: {
|
|
1088
|
-
start: {
|
|
1089
|
-
line: 8,
|
|
1090
|
-
column: 18
|
|
1091
|
-
},
|
|
1092
|
-
end: {
|
|
1093
|
-
line: 8,
|
|
1094
|
-
column: 19
|
|
1095
|
-
}
|
|
1096
|
-
},
|
|
1097
|
-
loc: {
|
|
1098
|
-
start: {
|
|
1099
|
-
line: 8,
|
|
1100
|
-
column: 59
|
|
1101
|
-
},
|
|
1102
|
-
end: {
|
|
1103
|
-
line: 28,
|
|
1104
|
-
column: 1
|
|
1105
|
-
}
|
|
1106
|
-
},
|
|
1107
|
-
line: 8
|
|
1108
|
-
}
|
|
1109
|
-
},
|
|
1110
|
-
branchMap: {
|
|
1111
|
-
"0": {
|
|
1112
|
-
loc: {
|
|
1113
|
-
start: {
|
|
1114
|
-
line: 22,
|
|
1115
|
-
column: 8
|
|
1116
|
-
},
|
|
1117
|
-
end: {
|
|
1118
|
-
line: 24,
|
|
1119
|
-
column: 25
|
|
1120
|
-
}
|
|
1121
|
-
},
|
|
1122
|
-
type: "cond-expr",
|
|
1123
|
-
locations: [{
|
|
1124
|
-
start: {
|
|
1125
|
-
line: 23,
|
|
1126
|
-
column: 12
|
|
1127
|
-
},
|
|
1128
|
-
end: {
|
|
1129
|
-
line: 23,
|
|
1130
|
-
column: 45
|
|
1131
|
-
}
|
|
1132
|
-
}, {
|
|
1133
|
-
start: {
|
|
1134
|
-
line: 24,
|
|
1135
|
-
column: 12
|
|
1136
|
-
},
|
|
1137
|
-
end: {
|
|
1138
|
-
line: 24,
|
|
1139
|
-
column: 25
|
|
1140
|
-
}
|
|
1141
|
-
}],
|
|
1142
|
-
line: 22
|
|
1143
|
-
}
|
|
1144
|
-
},
|
|
1145
|
-
s: {
|
|
1146
|
-
"0": 0,
|
|
1147
|
-
"1": 0,
|
|
1148
|
-
"2": 0
|
|
1149
|
-
},
|
|
1150
|
-
f: {
|
|
1151
|
-
"0": 0
|
|
1152
|
-
},
|
|
1153
|
-
b: {
|
|
1154
|
-
"0": [0, 0]
|
|
1155
|
-
},
|
|
1156
|
-
_coverageSchema: "1a1c01bbd47fc00a2c39e90264f33305004495a9",
|
|
1157
|
-
hash: "5f7eaa2c88a2bbeccd76458793049c4574c2b3c3"
|
|
1158
|
-
};
|
|
1159
|
-
var coverage = global[gcv] || (global[gcv] = {});
|
|
1160
|
-
if (!coverage[path] || coverage[path].hash !== hash) {
|
|
1161
|
-
coverage[path] = coverageData;
|
|
1162
|
-
}
|
|
1163
|
-
var actualCoverage = coverage[path];
|
|
1164
|
-
{
|
|
1165
|
-
// @ts-ignore
|
|
1166
|
-
cov_1ukti4j6us = function () {
|
|
1167
|
-
return actualCoverage;
|
|
1168
|
-
};
|
|
1169
|
-
}
|
|
1170
|
-
return actualCoverage;
|
|
1171
|
-
}
|
|
1172
|
-
cov_1ukti4j6us();
|
|
1173
|
-
cov_1ukti4j6us().s[0]++;
|
|
1174
622
|
var EmailBody = function EmailBody(_ref, ref) {
|
|
1175
623
|
var id = _ref.id,
|
|
1176
624
|
showVideoEmbedInEditor = _ref.showVideoEmbedInEditor;
|
|
1177
|
-
|
|
1178
|
-
|
|
1179
|
-
t = _ref2.t;
|
|
1180
|
-
cov_1ukti4j6us().s[2]++;
|
|
625
|
+
var _useTranslation = useTranslation(),
|
|
626
|
+
t = _useTranslation.t;
|
|
1181
627
|
return /*#__PURE__*/React.createElement(FormikEditor, {
|
|
1182
628
|
required: true,
|
|
1183
629
|
className: "mb-6",
|
|
@@ -1187,426 +633,32 @@ var EmailBody = function EmailBody(_ref, ref) {
|
|
|
1187
633
|
name: "emailBody",
|
|
1188
634
|
ref: ref,
|
|
1189
635
|
uploadEndpoint: DIRECT_UPLOAD_URL,
|
|
1190
|
-
addons: showVideoEmbedInEditor ?
|
|
636
|
+
addons: showVideoEmbedInEditor ? [].concat(_toConsumableArray(EDITOR_ADDONS), ["video-embed"]) : EDITOR_ADDONS
|
|
1191
637
|
});
|
|
1192
638
|
};
|
|
1193
639
|
var EmailBody$1 = /*#__PURE__*/forwardRef(EmailBody);
|
|
1194
640
|
|
|
1195
|
-
function cov_132s0i4hk() {
|
|
1196
|
-
var path = "/home/runner/work/neeto-molecules/neeto-molecules/src/components/ShareViaEmail/FilePicker.jsx";
|
|
1197
|
-
var hash = "aa152ec761edde332b75cc03cda4c91bf3021f7e";
|
|
1198
|
-
var global = new Function("return this")();
|
|
1199
|
-
var gcv = "__coverage__";
|
|
1200
|
-
var coverageData = {
|
|
1201
|
-
path: "/home/runner/work/neeto-molecules/neeto-molecules/src/components/ShareViaEmail/FilePicker.jsx",
|
|
1202
|
-
statementMap: {
|
|
1203
|
-
"0": {
|
|
1204
|
-
start: {
|
|
1205
|
-
line: 7,
|
|
1206
|
-
column: 19
|
|
1207
|
-
},
|
|
1208
|
-
end: {
|
|
1209
|
-
line: 49,
|
|
1210
|
-
column: 1
|
|
1211
|
-
}
|
|
1212
|
-
},
|
|
1213
|
-
"1": {
|
|
1214
|
-
start: {
|
|
1215
|
-
line: 8,
|
|
1216
|
-
column: 16
|
|
1217
|
-
},
|
|
1218
|
-
end: {
|
|
1219
|
-
line: 8,
|
|
1220
|
-
column: 32
|
|
1221
|
-
}
|
|
1222
|
-
},
|
|
1223
|
-
"2": {
|
|
1224
|
-
start: {
|
|
1225
|
-
line: 10,
|
|
1226
|
-
column: 19
|
|
1227
|
-
},
|
|
1228
|
-
end: {
|
|
1229
|
-
line: 10,
|
|
1230
|
-
column: 27
|
|
1231
|
-
}
|
|
1232
|
-
},
|
|
1233
|
-
"3": {
|
|
1234
|
-
start: {
|
|
1235
|
-
line: 12,
|
|
1236
|
-
column: 17
|
|
1237
|
-
},
|
|
1238
|
-
end: {
|
|
1239
|
-
line: 12,
|
|
1240
|
-
column: 33
|
|
1241
|
-
}
|
|
1242
|
-
},
|
|
1243
|
-
"4": {
|
|
1244
|
-
start: {
|
|
1245
|
-
line: 14,
|
|
1246
|
-
column: 28
|
|
1247
|
-
},
|
|
1248
|
-
end: {
|
|
1249
|
-
line: 21,
|
|
1250
|
-
column: 3
|
|
1251
|
-
}
|
|
1252
|
-
},
|
|
1253
|
-
"5": {
|
|
1254
|
-
start: {
|
|
1255
|
-
line: 15,
|
|
1256
|
-
column: 4
|
|
1257
|
-
},
|
|
1258
|
-
end: {
|
|
1259
|
-
line: 15,
|
|
1260
|
-
column: 30
|
|
1261
|
-
}
|
|
1262
|
-
},
|
|
1263
|
-
"6": {
|
|
1264
|
-
start: {
|
|
1265
|
-
line: 15,
|
|
1266
|
-
column: 23
|
|
1267
|
-
},
|
|
1268
|
-
end: {
|
|
1269
|
-
line: 15,
|
|
1270
|
-
column: 30
|
|
1271
|
-
}
|
|
1272
|
-
},
|
|
1273
|
-
"7": {
|
|
1274
|
-
start: {
|
|
1275
|
-
line: 16,
|
|
1276
|
-
column: 4
|
|
1277
|
-
},
|
|
1278
|
-
end: {
|
|
1279
|
-
line: 16,
|
|
1280
|
-
column: 27
|
|
1281
|
-
}
|
|
1282
|
-
},
|
|
1283
|
-
"8": {
|
|
1284
|
-
start: {
|
|
1285
|
-
line: 19,
|
|
1286
|
-
column: 4
|
|
1287
|
-
},
|
|
1288
|
-
end: {
|
|
1289
|
-
line: 19,
|
|
1290
|
-
column: 32
|
|
1291
|
-
}
|
|
1292
|
-
},
|
|
1293
|
-
"9": {
|
|
1294
|
-
start: {
|
|
1295
|
-
line: 20,
|
|
1296
|
-
column: 4
|
|
1297
|
-
},
|
|
1298
|
-
end: {
|
|
1299
|
-
line: 20,
|
|
1300
|
-
column: 18
|
|
1301
|
-
}
|
|
1302
|
-
},
|
|
1303
|
-
"10": {
|
|
1304
|
-
start: {
|
|
1305
|
-
line: 23,
|
|
1306
|
-
column: 22
|
|
1307
|
-
},
|
|
1308
|
-
end: {
|
|
1309
|
-
line: 26,
|
|
1310
|
-
column: 3
|
|
1311
|
-
}
|
|
1312
|
-
},
|
|
1313
|
-
"11": {
|
|
1314
|
-
start: {
|
|
1315
|
-
line: 24,
|
|
1316
|
-
column: 4
|
|
1317
|
-
},
|
|
1318
|
-
end: {
|
|
1319
|
-
line: 24,
|
|
1320
|
-
column: 34
|
|
1321
|
-
}
|
|
1322
|
-
},
|
|
1323
|
-
"12": {
|
|
1324
|
-
start: {
|
|
1325
|
-
line: 24,
|
|
1326
|
-
column: 27
|
|
1327
|
-
},
|
|
1328
|
-
end: {
|
|
1329
|
-
line: 24,
|
|
1330
|
-
column: 34
|
|
1331
|
-
}
|
|
1332
|
-
},
|
|
1333
|
-
"13": {
|
|
1334
|
-
start: {
|
|
1335
|
-
line: 25,
|
|
1336
|
-
column: 4
|
|
1337
|
-
},
|
|
1338
|
-
end: {
|
|
1339
|
-
line: 25,
|
|
1340
|
-
column: 29
|
|
1341
|
-
}
|
|
1342
|
-
},
|
|
1343
|
-
"14": {
|
|
1344
|
-
start: {
|
|
1345
|
-
line: 28,
|
|
1346
|
-
column: 2
|
|
1347
|
-
},
|
|
1348
|
-
end: {
|
|
1349
|
-
line: 48,
|
|
1350
|
-
column: 4
|
|
1351
|
-
}
|
|
1352
|
-
}
|
|
1353
|
-
},
|
|
1354
|
-
fnMap: {
|
|
1355
|
-
"0": {
|
|
1356
|
-
name: "(anonymous_0)",
|
|
1357
|
-
decl: {
|
|
1358
|
-
start: {
|
|
1359
|
-
line: 7,
|
|
1360
|
-
column: 19
|
|
1361
|
-
},
|
|
1362
|
-
end: {
|
|
1363
|
-
line: 7,
|
|
1364
|
-
column: 20
|
|
1365
|
-
}
|
|
1366
|
-
},
|
|
1367
|
-
loc: {
|
|
1368
|
-
start: {
|
|
1369
|
-
line: 7,
|
|
1370
|
-
column: 49
|
|
1371
|
-
},
|
|
1372
|
-
end: {
|
|
1373
|
-
line: 49,
|
|
1374
|
-
column: 1
|
|
1375
|
-
}
|
|
1376
|
-
},
|
|
1377
|
-
line: 7
|
|
1378
|
-
},
|
|
1379
|
-
"1": {
|
|
1380
|
-
name: "(anonymous_1)",
|
|
1381
|
-
decl: {
|
|
1382
|
-
start: {
|
|
1383
|
-
line: 14,
|
|
1384
|
-
column: 28
|
|
1385
|
-
},
|
|
1386
|
-
end: {
|
|
1387
|
-
line: 14,
|
|
1388
|
-
column: 29
|
|
1389
|
-
}
|
|
1390
|
-
},
|
|
1391
|
-
loc: {
|
|
1392
|
-
start: {
|
|
1393
|
-
line: 14,
|
|
1394
|
-
column: 44
|
|
1395
|
-
},
|
|
1396
|
-
end: {
|
|
1397
|
-
line: 21,
|
|
1398
|
-
column: 3
|
|
1399
|
-
}
|
|
1400
|
-
},
|
|
1401
|
-
line: 14
|
|
1402
|
-
},
|
|
1403
|
-
"2": {
|
|
1404
|
-
name: "(anonymous_2)",
|
|
1405
|
-
decl: {
|
|
1406
|
-
start: {
|
|
1407
|
-
line: 23,
|
|
1408
|
-
column: 22
|
|
1409
|
-
},
|
|
1410
|
-
end: {
|
|
1411
|
-
line: 23,
|
|
1412
|
-
column: 23
|
|
1413
|
-
}
|
|
1414
|
-
},
|
|
1415
|
-
loc: {
|
|
1416
|
-
start: {
|
|
1417
|
-
line: 23,
|
|
1418
|
-
column: 28
|
|
1419
|
-
},
|
|
1420
|
-
end: {
|
|
1421
|
-
line: 26,
|
|
1422
|
-
column: 3
|
|
1423
|
-
}
|
|
1424
|
-
},
|
|
1425
|
-
line: 23
|
|
1426
|
-
}
|
|
1427
|
-
},
|
|
1428
|
-
branchMap: {
|
|
1429
|
-
"0": {
|
|
1430
|
-
loc: {
|
|
1431
|
-
start: {
|
|
1432
|
-
line: 7,
|
|
1433
|
-
column: 22
|
|
1434
|
-
},
|
|
1435
|
-
end: {
|
|
1436
|
-
line: 7,
|
|
1437
|
-
column: 32
|
|
1438
|
-
}
|
|
1439
|
-
},
|
|
1440
|
-
type: "default-arg",
|
|
1441
|
-
locations: [{
|
|
1442
|
-
start: {
|
|
1443
|
-
line: 7,
|
|
1444
|
-
column: 30
|
|
1445
|
-
},
|
|
1446
|
-
end: {
|
|
1447
|
-
line: 7,
|
|
1448
|
-
column: 32
|
|
1449
|
-
}
|
|
1450
|
-
}],
|
|
1451
|
-
line: 7
|
|
1452
|
-
},
|
|
1453
|
-
"1": {
|
|
1454
|
-
loc: {
|
|
1455
|
-
start: {
|
|
1456
|
-
line: 15,
|
|
1457
|
-
column: 4
|
|
1458
|
-
},
|
|
1459
|
-
end: {
|
|
1460
|
-
line: 15,
|
|
1461
|
-
column: 30
|
|
1462
|
-
}
|
|
1463
|
-
},
|
|
1464
|
-
type: "if",
|
|
1465
|
-
locations: [{
|
|
1466
|
-
start: {
|
|
1467
|
-
line: 15,
|
|
1468
|
-
column: 4
|
|
1469
|
-
},
|
|
1470
|
-
end: {
|
|
1471
|
-
line: 15,
|
|
1472
|
-
column: 30
|
|
1473
|
-
}
|
|
1474
|
-
}, {
|
|
1475
|
-
start: {
|
|
1476
|
-
line: undefined,
|
|
1477
|
-
column: undefined
|
|
1478
|
-
},
|
|
1479
|
-
end: {
|
|
1480
|
-
line: undefined,
|
|
1481
|
-
column: undefined
|
|
1482
|
-
}
|
|
1483
|
-
}],
|
|
1484
|
-
line: 15
|
|
1485
|
-
},
|
|
1486
|
-
"2": {
|
|
1487
|
-
loc: {
|
|
1488
|
-
start: {
|
|
1489
|
-
line: 24,
|
|
1490
|
-
column: 4
|
|
1491
|
-
},
|
|
1492
|
-
end: {
|
|
1493
|
-
line: 24,
|
|
1494
|
-
column: 34
|
|
1495
|
-
}
|
|
1496
|
-
},
|
|
1497
|
-
type: "if",
|
|
1498
|
-
locations: [{
|
|
1499
|
-
start: {
|
|
1500
|
-
line: 24,
|
|
1501
|
-
column: 4
|
|
1502
|
-
},
|
|
1503
|
-
end: {
|
|
1504
|
-
line: 24,
|
|
1505
|
-
column: 34
|
|
1506
|
-
}
|
|
1507
|
-
}, {
|
|
1508
|
-
start: {
|
|
1509
|
-
line: undefined,
|
|
1510
|
-
column: undefined
|
|
1511
|
-
},
|
|
1512
|
-
end: {
|
|
1513
|
-
line: undefined,
|
|
1514
|
-
column: undefined
|
|
1515
|
-
}
|
|
1516
|
-
}],
|
|
1517
|
-
line: 24
|
|
1518
|
-
}
|
|
1519
|
-
},
|
|
1520
|
-
s: {
|
|
1521
|
-
"0": 0,
|
|
1522
|
-
"1": 0,
|
|
1523
|
-
"2": 0,
|
|
1524
|
-
"3": 0,
|
|
1525
|
-
"4": 0,
|
|
1526
|
-
"5": 0,
|
|
1527
|
-
"6": 0,
|
|
1528
|
-
"7": 0,
|
|
1529
|
-
"8": 0,
|
|
1530
|
-
"9": 0,
|
|
1531
|
-
"10": 0,
|
|
1532
|
-
"11": 0,
|
|
1533
|
-
"12": 0,
|
|
1534
|
-
"13": 0,
|
|
1535
|
-
"14": 0
|
|
1536
|
-
},
|
|
1537
|
-
f: {
|
|
1538
|
-
"0": 0,
|
|
1539
|
-
"1": 0,
|
|
1540
|
-
"2": 0
|
|
1541
|
-
},
|
|
1542
|
-
b: {
|
|
1543
|
-
"0": [0],
|
|
1544
|
-
"1": [0, 0],
|
|
1545
|
-
"2": [0, 0]
|
|
1546
|
-
},
|
|
1547
|
-
_coverageSchema: "1a1c01bbd47fc00a2c39e90264f33305004495a9",
|
|
1548
|
-
hash: "aa152ec761edde332b75cc03cda4c91bf3021f7e"
|
|
1549
|
-
};
|
|
1550
|
-
var coverage = global[gcv] || (global[gcv] = {});
|
|
1551
|
-
if (!coverage[path] || coverage[path].hash !== hash) {
|
|
1552
|
-
coverage[path] = coverageData;
|
|
1553
|
-
}
|
|
1554
|
-
var actualCoverage = coverage[path];
|
|
1555
|
-
{
|
|
1556
|
-
// @ts-ignore
|
|
1557
|
-
cov_132s0i4hk = function () {
|
|
1558
|
-
return actualCoverage;
|
|
1559
|
-
};
|
|
1560
|
-
}
|
|
1561
|
-
return actualCoverage;
|
|
1562
|
-
}
|
|
1563
|
-
cov_132s0i4hk();
|
|
1564
|
-
cov_132s0i4hk().s[0]++;
|
|
1565
641
|
var FilePicker = function FilePicker(_ref) {
|
|
1566
642
|
var _ref$types = _ref.types,
|
|
1567
|
-
types = _ref$types === void 0 ?
|
|
643
|
+
types = _ref$types === void 0 ? [] : _ref$types,
|
|
1568
644
|
onChange = _ref.onChange;
|
|
1569
|
-
|
|
1570
|
-
|
|
1571
|
-
|
|
1572
|
-
var
|
|
1573
|
-
var
|
|
1574
|
-
|
|
1575
|
-
|
|
1576
|
-
var target = _ref3.target;
|
|
1577
|
-
cov_132s0i4hk().f[1]++;
|
|
1578
|
-
cov_132s0i4hk().s[5]++;
|
|
1579
|
-
if (!target.files) {
|
|
1580
|
-
cov_132s0i4hk().b[1][0]++;
|
|
1581
|
-
cov_132s0i4hk().s[6]++;
|
|
1582
|
-
return;
|
|
1583
|
-
} else {
|
|
1584
|
-
cov_132s0i4hk().b[1][1]++;
|
|
1585
|
-
}
|
|
1586
|
-
cov_132s0i4hk().s[7]++;
|
|
645
|
+
var _useTranslation = useTranslation(),
|
|
646
|
+
t = _useTranslation.t;
|
|
647
|
+
var inputRef = useRef();
|
|
648
|
+
var accept = types.join(", ");
|
|
649
|
+
var handleInputChange = function handleInputChange(_ref2) {
|
|
650
|
+
var target = _ref2.target;
|
|
651
|
+
if (!target.files) return;
|
|
1587
652
|
onChange(target.files);
|
|
1588
653
|
|
|
1589
654
|
// This will trigger handleClick when same file is uploaded again.
|
|
1590
|
-
cov_132s0i4hk().s[8]++;
|
|
1591
655
|
inputRef.current.value = "";
|
|
1592
|
-
cov_132s0i4hk().s[9]++;
|
|
1593
656
|
handleClick();
|
|
1594
657
|
};
|
|
1595
|
-
cov_132s0i4hk().s[10]++;
|
|
1596
658
|
var handleClick = function handleClick() {
|
|
1597
|
-
|
|
1598
|
-
cov_132s0i4hk().s[11]++;
|
|
1599
|
-
if (!inputRef.current) {
|
|
1600
|
-
cov_132s0i4hk().b[2][0]++;
|
|
1601
|
-
cov_132s0i4hk().s[12]++;
|
|
1602
|
-
return;
|
|
1603
|
-
} else {
|
|
1604
|
-
cov_132s0i4hk().b[2][1]++;
|
|
1605
|
-
}
|
|
1606
|
-
cov_132s0i4hk().s[13]++;
|
|
659
|
+
if (!inputRef.current) return;
|
|
1607
660
|
inputRef.current.click();
|
|
1608
661
|
};
|
|
1609
|
-
cov_132s0i4hk().s[14]++;
|
|
1610
662
|
return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(Button, {
|
|
1611
663
|
icon: Upload,
|
|
1612
664
|
label: t("neetoMolecules.shareViaEmail.uploadCsv"),
|
|
@@ -1670,186 +722,17 @@ function _objectWithoutProperties(source, excluded) {
|
|
|
1670
722
|
}
|
|
1671
723
|
|
|
1672
724
|
var _excluded = ["name"];
|
|
1673
|
-
function cov_73oanf0pa() {
|
|
1674
|
-
var path = "/home/runner/work/neeto-molecules/neeto-molecules/src/components/ShareViaEmail/FormikDatePicker.jsx";
|
|
1675
|
-
var hash = "04ab048e24ae2a310ee0c03bb40c2b821a8c7f6a";
|
|
1676
|
-
var global = new Function("return this")();
|
|
1677
|
-
var gcv = "__coverage__";
|
|
1678
|
-
var coverageData = {
|
|
1679
|
-
path: "/home/runner/work/neeto-molecules/neeto-molecules/src/components/ShareViaEmail/FormikDatePicker.jsx",
|
|
1680
|
-
statementMap: {
|
|
1681
|
-
"0": {
|
|
1682
|
-
start: {
|
|
1683
|
-
line: 6,
|
|
1684
|
-
column: 25
|
|
1685
|
-
},
|
|
1686
|
-
end: {
|
|
1687
|
-
line: 18,
|
|
1688
|
-
column: 1
|
|
1689
|
-
}
|
|
1690
|
-
},
|
|
1691
|
-
"1": {
|
|
1692
|
-
start: {
|
|
1693
|
-
line: 7,
|
|
1694
|
-
column: 38
|
|
1695
|
-
},
|
|
1696
|
-
end: {
|
|
1697
|
-
line: 7,
|
|
1698
|
-
column: 52
|
|
1699
|
-
}
|
|
1700
|
-
},
|
|
1701
|
-
"2": {
|
|
1702
|
-
start: {
|
|
1703
|
-
line: 9,
|
|
1704
|
-
column: 2
|
|
1705
|
-
},
|
|
1706
|
-
end: {
|
|
1707
|
-
line: 17,
|
|
1708
|
-
column: 4
|
|
1709
|
-
}
|
|
1710
|
-
},
|
|
1711
|
-
"3": {
|
|
1712
|
-
start: {
|
|
1713
|
-
line: 13,
|
|
1714
|
-
column: 24
|
|
1715
|
-
},
|
|
1716
|
-
end: {
|
|
1717
|
-
line: 13,
|
|
1718
|
-
column: 51
|
|
1719
|
-
}
|
|
1720
|
-
}
|
|
1721
|
-
},
|
|
1722
|
-
fnMap: {
|
|
1723
|
-
"0": {
|
|
1724
|
-
name: "(anonymous_0)",
|
|
1725
|
-
decl: {
|
|
1726
|
-
start: {
|
|
1727
|
-
line: 6,
|
|
1728
|
-
column: 25
|
|
1729
|
-
},
|
|
1730
|
-
end: {
|
|
1731
|
-
line: 6,
|
|
1732
|
-
column: 26
|
|
1733
|
-
}
|
|
1734
|
-
},
|
|
1735
|
-
loc: {
|
|
1736
|
-
start: {
|
|
1737
|
-
line: 6,
|
|
1738
|
-
column: 49
|
|
1739
|
-
},
|
|
1740
|
-
end: {
|
|
1741
|
-
line: 18,
|
|
1742
|
-
column: 1
|
|
1743
|
-
}
|
|
1744
|
-
},
|
|
1745
|
-
line: 6
|
|
1746
|
-
},
|
|
1747
|
-
"1": {
|
|
1748
|
-
name: "(anonymous_1)",
|
|
1749
|
-
decl: {
|
|
1750
|
-
start: {
|
|
1751
|
-
line: 13,
|
|
1752
|
-
column: 16
|
|
1753
|
-
},
|
|
1754
|
-
end: {
|
|
1755
|
-
line: 13,
|
|
1756
|
-
column: 17
|
|
1757
|
-
}
|
|
1758
|
-
},
|
|
1759
|
-
loc: {
|
|
1760
|
-
start: {
|
|
1761
|
-
line: 13,
|
|
1762
|
-
column: 24
|
|
1763
|
-
},
|
|
1764
|
-
end: {
|
|
1765
|
-
line: 13,
|
|
1766
|
-
column: 51
|
|
1767
|
-
}
|
|
1768
|
-
},
|
|
1769
|
-
line: 13
|
|
1770
|
-
}
|
|
1771
|
-
},
|
|
1772
|
-
branchMap: {
|
|
1773
|
-
"0": {
|
|
1774
|
-
loc: {
|
|
1775
|
-
start: {
|
|
1776
|
-
line: 13,
|
|
1777
|
-
column: 33
|
|
1778
|
-
},
|
|
1779
|
-
end: {
|
|
1780
|
-
line: 13,
|
|
1781
|
-
column: 50
|
|
1782
|
-
}
|
|
1783
|
-
},
|
|
1784
|
-
type: "binary-expr",
|
|
1785
|
-
locations: [{
|
|
1786
|
-
start: {
|
|
1787
|
-
line: 13,
|
|
1788
|
-
column: 33
|
|
1789
|
-
},
|
|
1790
|
-
end: {
|
|
1791
|
-
line: 13,
|
|
1792
|
-
column: 37
|
|
1793
|
-
}
|
|
1794
|
-
}, {
|
|
1795
|
-
start: {
|
|
1796
|
-
line: 13,
|
|
1797
|
-
column: 41
|
|
1798
|
-
},
|
|
1799
|
-
end: {
|
|
1800
|
-
line: 13,
|
|
1801
|
-
column: 50
|
|
1802
|
-
}
|
|
1803
|
-
}],
|
|
1804
|
-
line: 13
|
|
1805
|
-
}
|
|
1806
|
-
},
|
|
1807
|
-
s: {
|
|
1808
|
-
"0": 0,
|
|
1809
|
-
"1": 0,
|
|
1810
|
-
"2": 0,
|
|
1811
|
-
"3": 0
|
|
1812
|
-
},
|
|
1813
|
-
f: {
|
|
1814
|
-
"0": 0,
|
|
1815
|
-
"1": 0
|
|
1816
|
-
},
|
|
1817
|
-
b: {
|
|
1818
|
-
"0": [0, 0]
|
|
1819
|
-
},
|
|
1820
|
-
_coverageSchema: "1a1c01bbd47fc00a2c39e90264f33305004495a9",
|
|
1821
|
-
hash: "04ab048e24ae2a310ee0c03bb40c2b821a8c7f6a"
|
|
1822
|
-
};
|
|
1823
|
-
var coverage = global[gcv] || (global[gcv] = {});
|
|
1824
|
-
if (!coverage[path] || coverage[path].hash !== hash) {
|
|
1825
|
-
coverage[path] = coverageData;
|
|
1826
|
-
}
|
|
1827
|
-
var actualCoverage = coverage[path];
|
|
1828
|
-
{
|
|
1829
|
-
// @ts-ignore
|
|
1830
|
-
cov_73oanf0pa = function () {
|
|
1831
|
-
return actualCoverage;
|
|
1832
|
-
};
|
|
1833
|
-
}
|
|
1834
|
-
return actualCoverage;
|
|
1835
|
-
}
|
|
1836
|
-
cov_73oanf0pa();
|
|
1837
|
-
cov_73oanf0pa().s[0]++;
|
|
1838
725
|
var FormikDatePicker = function FormikDatePicker(_ref) {
|
|
1839
726
|
var name = _ref.name,
|
|
1840
727
|
props = _objectWithoutProperties(_ref, _excluded);
|
|
1841
|
-
|
|
1842
|
-
|
|
1843
|
-
|
|
1844
|
-
|
|
1845
|
-
|
|
1846
|
-
setValue = _ref3[2].setValue;
|
|
1847
|
-
cov_73oanf0pa().s[2]++;
|
|
728
|
+
var _useField = useField(name),
|
|
729
|
+
_useField2 = _slicedToArray(_useField, 3),
|
|
730
|
+
field = _useField2[0],
|
|
731
|
+
meta = _useField2[1],
|
|
732
|
+
setValue = _useField2[2].setValue;
|
|
1848
733
|
return /*#__PURE__*/React.createElement(DatePicker, _extends({}, field, meta, {
|
|
1849
734
|
onChange: function onChange(date) {
|
|
1850
|
-
|
|
1851
|
-
cov_73oanf0pa().s[3]++;
|
|
1852
|
-
return setValue((cov_73oanf0pa().b[0][0]++, date) || (cov_73oanf0pa().b[0][1]++, undefined));
|
|
735
|
+
return setValue(date || undefined);
|
|
1853
736
|
}
|
|
1854
737
|
}, props, {
|
|
1855
738
|
"data-cy": "email-share-date-input"
|
|
@@ -3811,668 +2694,17 @@ License: MIT
|
|
|
3811
2694
|
|
|
3812
2695
|
var Papa = papaparse.exports;
|
|
3813
2696
|
|
|
3814
|
-
function cov_1t4zwuo8il() {
|
|
3815
|
-
var path = "/home/runner/work/neeto-molecules/neeto-molecules/src/components/ShareViaEmail/utils.js";
|
|
3816
|
-
var hash = "c0b2737d15f910044dcc6996929e01af74d1b1d2";
|
|
3817
|
-
var global = new Function("return this")();
|
|
3818
|
-
var gcv = "__coverage__";
|
|
3819
|
-
var coverageData = {
|
|
3820
|
-
path: "/home/runner/work/neeto-molecules/neeto-molecules/src/components/ShareViaEmail/utils.js",
|
|
3821
|
-
statementMap: {
|
|
3822
|
-
"0": {
|
|
3823
|
-
start: {
|
|
3824
|
-
line: 11,
|
|
3825
|
-
column: 21
|
|
3826
|
-
},
|
|
3827
|
-
end: {
|
|
3828
|
-
line: 11,
|
|
3829
|
-
column: 65
|
|
3830
|
-
}
|
|
3831
|
-
},
|
|
3832
|
-
"1": {
|
|
3833
|
-
start: {
|
|
3834
|
-
line: 11,
|
|
3835
|
-
column: 30
|
|
3836
|
-
},
|
|
3837
|
-
end: {
|
|
3838
|
-
line: 11,
|
|
3839
|
-
column: 65
|
|
3840
|
-
}
|
|
3841
|
-
},
|
|
3842
|
-
"2": {
|
|
3843
|
-
start: {
|
|
3844
|
-
line: 13,
|
|
3845
|
-
column: 26
|
|
3846
|
-
},
|
|
3847
|
-
end: {
|
|
3848
|
-
line: 14,
|
|
3849
|
-
column: 51
|
|
3850
|
-
}
|
|
3851
|
-
},
|
|
3852
|
-
"3": {
|
|
3853
|
-
start: {
|
|
3854
|
-
line: 14,
|
|
3855
|
-
column: 2
|
|
3856
|
-
},
|
|
3857
|
-
end: {
|
|
3858
|
-
line: 14,
|
|
3859
|
-
column: 51
|
|
3860
|
-
}
|
|
3861
|
-
},
|
|
3862
|
-
"4": {
|
|
3863
|
-
start: {
|
|
3864
|
-
line: 16,
|
|
3865
|
-
column: 34
|
|
3866
|
-
},
|
|
3867
|
-
end: {
|
|
3868
|
-
line: 21,
|
|
3869
|
-
column: 5
|
|
3870
|
-
}
|
|
3871
|
-
},
|
|
3872
|
-
"5": {
|
|
3873
|
-
start: {
|
|
3874
|
-
line: 17,
|
|
3875
|
-
column: 2
|
|
3876
|
-
},
|
|
3877
|
-
end: {
|
|
3878
|
-
line: 21,
|
|
3879
|
-
column: 5
|
|
3880
|
-
}
|
|
3881
|
-
},
|
|
3882
|
-
"6": {
|
|
3883
|
-
start: {
|
|
3884
|
-
line: 17,
|
|
3885
|
-
column: 23
|
|
3886
|
-
},
|
|
3887
|
-
end: {
|
|
3888
|
-
line: 21,
|
|
3889
|
-
column: 3
|
|
3890
|
-
}
|
|
3891
|
-
},
|
|
3892
|
-
"7": {
|
|
3893
|
-
start: {
|
|
3894
|
-
line: 23,
|
|
3895
|
-
column: 30
|
|
3896
|
-
},
|
|
3897
|
-
end: {
|
|
3898
|
-
line: 34,
|
|
3899
|
-
column: 4
|
|
3900
|
-
}
|
|
3901
|
-
},
|
|
3902
|
-
"8": {
|
|
3903
|
-
start: {
|
|
3904
|
-
line: 24,
|
|
3905
|
-
column: 2
|
|
3906
|
-
},
|
|
3907
|
-
end: {
|
|
3908
|
-
line: 34,
|
|
3909
|
-
column: 4
|
|
3910
|
-
}
|
|
3911
|
-
},
|
|
3912
|
-
"9": {
|
|
3913
|
-
start: {
|
|
3914
|
-
line: 25,
|
|
3915
|
-
column: 4
|
|
3916
|
-
},
|
|
3917
|
-
end: {
|
|
3918
|
-
line: 33,
|
|
3919
|
-
column: 7
|
|
3920
|
-
}
|
|
3921
|
-
},
|
|
3922
|
-
"10": {
|
|
3923
|
-
start: {
|
|
3924
|
-
line: 28,
|
|
3925
|
-
column: 28
|
|
3926
|
-
},
|
|
3927
|
-
end: {
|
|
3928
|
-
line: 28,
|
|
3929
|
-
column: 62
|
|
3930
|
-
}
|
|
3931
|
-
},
|
|
3932
|
-
"11": {
|
|
3933
|
-
start: {
|
|
3934
|
-
line: 30,
|
|
3935
|
-
column: 23
|
|
3936
|
-
},
|
|
3937
|
-
end: {
|
|
3938
|
-
line: 30,
|
|
3939
|
-
column: 66
|
|
3940
|
-
}
|
|
3941
|
-
},
|
|
3942
|
-
"12": {
|
|
3943
|
-
start: {
|
|
3944
|
-
line: 30,
|
|
3945
|
-
column: 48
|
|
3946
|
-
},
|
|
3947
|
-
end: {
|
|
3948
|
-
line: 30,
|
|
3949
|
-
column: 65
|
|
3950
|
-
}
|
|
3951
|
-
},
|
|
3952
|
-
"13": {
|
|
3953
|
-
start: {
|
|
3954
|
-
line: 31,
|
|
3955
|
-
column: 8
|
|
3956
|
-
},
|
|
3957
|
-
end: {
|
|
3958
|
-
line: 31,
|
|
3959
|
-
column: 44
|
|
3960
|
-
}
|
|
3961
|
-
},
|
|
3962
|
-
"14": {
|
|
3963
|
-
start: {
|
|
3964
|
-
line: 36,
|
|
3965
|
-
column: 37
|
|
3966
|
-
},
|
|
3967
|
-
end: {
|
|
3968
|
-
line: 39,
|
|
3969
|
-
column: 2
|
|
3970
|
-
}
|
|
3971
|
-
},
|
|
3972
|
-
"15": {
|
|
3973
|
-
start: {
|
|
3974
|
-
line: 36,
|
|
3975
|
-
column: 55
|
|
3976
|
-
},
|
|
3977
|
-
end: {
|
|
3978
|
-
line: 39,
|
|
3979
|
-
column: 1
|
|
3980
|
-
}
|
|
3981
|
-
},
|
|
3982
|
-
"16": {
|
|
3983
|
-
start: {
|
|
3984
|
-
line: 41,
|
|
3985
|
-
column: 41
|
|
3986
|
-
},
|
|
3987
|
-
end: {
|
|
3988
|
-
line: 107,
|
|
3989
|
-
column: 4
|
|
3990
|
-
}
|
|
3991
|
-
},
|
|
3992
|
-
"17": {
|
|
3993
|
-
start: {
|
|
3994
|
-
line: 42,
|
|
3995
|
-
column: 2
|
|
3996
|
-
},
|
|
3997
|
-
end: {
|
|
3998
|
-
line: 107,
|
|
3999
|
-
column: 4
|
|
4000
|
-
}
|
|
4001
|
-
},
|
|
4002
|
-
"18": {
|
|
4003
|
-
start: {
|
|
4004
|
-
line: 53,
|
|
4005
|
-
column: 17
|
|
4006
|
-
},
|
|
4007
|
-
end: {
|
|
4008
|
-
line: 53,
|
|
4009
|
-
column: 38
|
|
4010
|
-
}
|
|
4011
|
-
},
|
|
4012
|
-
"19": {
|
|
4013
|
-
start: {
|
|
4014
|
-
line: 88,
|
|
4015
|
-
column: 18
|
|
4016
|
-
},
|
|
4017
|
-
end: {
|
|
4018
|
-
line: 88,
|
|
4019
|
-
column: 45
|
|
4020
|
-
}
|
|
4021
|
-
}
|
|
4022
|
-
},
|
|
4023
|
-
fnMap: {
|
|
4024
|
-
"0": {
|
|
4025
|
-
name: "(anonymous_0)",
|
|
4026
|
-
decl: {
|
|
4027
|
-
start: {
|
|
4028
|
-
line: 11,
|
|
4029
|
-
column: 21
|
|
4030
|
-
},
|
|
4031
|
-
end: {
|
|
4032
|
-
line: 11,
|
|
4033
|
-
column: 22
|
|
4034
|
-
}
|
|
4035
|
-
},
|
|
4036
|
-
loc: {
|
|
4037
|
-
start: {
|
|
4038
|
-
line: 11,
|
|
4039
|
-
column: 30
|
|
4040
|
-
},
|
|
4041
|
-
end: {
|
|
4042
|
-
line: 11,
|
|
4043
|
-
column: 65
|
|
4044
|
-
}
|
|
4045
|
-
},
|
|
4046
|
-
line: 11
|
|
4047
|
-
},
|
|
4048
|
-
"1": {
|
|
4049
|
-
name: "(anonymous_1)",
|
|
4050
|
-
decl: {
|
|
4051
|
-
start: {
|
|
4052
|
-
line: 13,
|
|
4053
|
-
column: 26
|
|
4054
|
-
},
|
|
4055
|
-
end: {
|
|
4056
|
-
line: 13,
|
|
4057
|
-
column: 27
|
|
4058
|
-
}
|
|
4059
|
-
},
|
|
4060
|
-
loc: {
|
|
4061
|
-
start: {
|
|
4062
|
-
line: 14,
|
|
4063
|
-
column: 2
|
|
4064
|
-
},
|
|
4065
|
-
end: {
|
|
4066
|
-
line: 14,
|
|
4067
|
-
column: 51
|
|
4068
|
-
}
|
|
4069
|
-
},
|
|
4070
|
-
line: 14
|
|
4071
|
-
},
|
|
4072
|
-
"2": {
|
|
4073
|
-
name: "(anonymous_2)",
|
|
4074
|
-
decl: {
|
|
4075
|
-
start: {
|
|
4076
|
-
line: 16,
|
|
4077
|
-
column: 34
|
|
4078
|
-
},
|
|
4079
|
-
end: {
|
|
4080
|
-
line: 16,
|
|
4081
|
-
column: 35
|
|
4082
|
-
}
|
|
4083
|
-
},
|
|
4084
|
-
loc: {
|
|
4085
|
-
start: {
|
|
4086
|
-
line: 17,
|
|
4087
|
-
column: 2
|
|
4088
|
-
},
|
|
4089
|
-
end: {
|
|
4090
|
-
line: 21,
|
|
4091
|
-
column: 5
|
|
4092
|
-
}
|
|
4093
|
-
},
|
|
4094
|
-
line: 17
|
|
4095
|
-
},
|
|
4096
|
-
"3": {
|
|
4097
|
-
name: "(anonymous_3)",
|
|
4098
|
-
decl: {
|
|
4099
|
-
start: {
|
|
4100
|
-
line: 17,
|
|
4101
|
-
column: 13
|
|
4102
|
-
},
|
|
4103
|
-
end: {
|
|
4104
|
-
line: 17,
|
|
4105
|
-
column: 14
|
|
4106
|
-
}
|
|
4107
|
-
},
|
|
4108
|
-
loc: {
|
|
4109
|
-
start: {
|
|
4110
|
-
line: 17,
|
|
4111
|
-
column: 23
|
|
4112
|
-
},
|
|
4113
|
-
end: {
|
|
4114
|
-
line: 21,
|
|
4115
|
-
column: 3
|
|
4116
|
-
}
|
|
4117
|
-
},
|
|
4118
|
-
line: 17
|
|
4119
|
-
},
|
|
4120
|
-
"4": {
|
|
4121
|
-
name: "(anonymous_4)",
|
|
4122
|
-
decl: {
|
|
4123
|
-
start: {
|
|
4124
|
-
line: 23,
|
|
4125
|
-
column: 30
|
|
4126
|
-
},
|
|
4127
|
-
end: {
|
|
4128
|
-
line: 23,
|
|
4129
|
-
column: 31
|
|
4130
|
-
}
|
|
4131
|
-
},
|
|
4132
|
-
loc: {
|
|
4133
|
-
start: {
|
|
4134
|
-
line: 24,
|
|
4135
|
-
column: 2
|
|
4136
|
-
},
|
|
4137
|
-
end: {
|
|
4138
|
-
line: 34,
|
|
4139
|
-
column: 4
|
|
4140
|
-
}
|
|
4141
|
-
},
|
|
4142
|
-
line: 24
|
|
4143
|
-
},
|
|
4144
|
-
"5": {
|
|
4145
|
-
name: "(anonymous_5)",
|
|
4146
|
-
decl: {
|
|
4147
|
-
start: {
|
|
4148
|
-
line: 24,
|
|
4149
|
-
column: 14
|
|
4150
|
-
},
|
|
4151
|
-
end: {
|
|
4152
|
-
line: 24,
|
|
4153
|
-
column: 15
|
|
4154
|
-
}
|
|
4155
|
-
},
|
|
4156
|
-
loc: {
|
|
4157
|
-
start: {
|
|
4158
|
-
line: 24,
|
|
4159
|
-
column: 25
|
|
4160
|
-
},
|
|
4161
|
-
end: {
|
|
4162
|
-
line: 34,
|
|
4163
|
-
column: 3
|
|
4164
|
-
}
|
|
4165
|
-
},
|
|
4166
|
-
line: 24
|
|
4167
|
-
},
|
|
4168
|
-
"6": {
|
|
4169
|
-
name: "(anonymous_6)",
|
|
4170
|
-
decl: {
|
|
4171
|
-
start: {
|
|
4172
|
-
line: 28,
|
|
4173
|
-
column: 23
|
|
4174
|
-
},
|
|
4175
|
-
end: {
|
|
4176
|
-
line: 28,
|
|
4177
|
-
column: 24
|
|
4178
|
-
}
|
|
4179
|
-
},
|
|
4180
|
-
loc: {
|
|
4181
|
-
start: {
|
|
4182
|
-
line: 28,
|
|
4183
|
-
column: 28
|
|
4184
|
-
},
|
|
4185
|
-
end: {
|
|
4186
|
-
line: 28,
|
|
4187
|
-
column: 62
|
|
4188
|
-
}
|
|
4189
|
-
},
|
|
4190
|
-
line: 28
|
|
4191
|
-
},
|
|
4192
|
-
"7": {
|
|
4193
|
-
name: "(anonymous_7)",
|
|
4194
|
-
decl: {
|
|
4195
|
-
start: {
|
|
4196
|
-
line: 29,
|
|
4197
|
-
column: 16
|
|
4198
|
-
},
|
|
4199
|
-
end: {
|
|
4200
|
-
line: 29,
|
|
4201
|
-
column: 17
|
|
4202
|
-
}
|
|
4203
|
-
},
|
|
4204
|
-
loc: {
|
|
4205
|
-
start: {
|
|
4206
|
-
line: 29,
|
|
4207
|
-
column: 27
|
|
4208
|
-
},
|
|
4209
|
-
end: {
|
|
4210
|
-
line: 32,
|
|
4211
|
-
column: 7
|
|
4212
|
-
}
|
|
4213
|
-
},
|
|
4214
|
-
line: 29
|
|
4215
|
-
},
|
|
4216
|
-
"8": {
|
|
4217
|
-
name: "(anonymous_8)",
|
|
4218
|
-
decl: {
|
|
4219
|
-
start: {
|
|
4220
|
-
line: 30,
|
|
4221
|
-
column: 40
|
|
4222
|
-
},
|
|
4223
|
-
end: {
|
|
4224
|
-
line: 30,
|
|
4225
|
-
column: 41
|
|
4226
|
-
}
|
|
4227
|
-
},
|
|
4228
|
-
loc: {
|
|
4229
|
-
start: {
|
|
4230
|
-
line: 30,
|
|
4231
|
-
column: 48
|
|
4232
|
-
},
|
|
4233
|
-
end: {
|
|
4234
|
-
line: 30,
|
|
4235
|
-
column: 65
|
|
4236
|
-
}
|
|
4237
|
-
},
|
|
4238
|
-
line: 30
|
|
4239
|
-
},
|
|
4240
|
-
"9": {
|
|
4241
|
-
name: "(anonymous_9)",
|
|
4242
|
-
decl: {
|
|
4243
|
-
start: {
|
|
4244
|
-
line: 36,
|
|
4245
|
-
column: 37
|
|
4246
|
-
},
|
|
4247
|
-
end: {
|
|
4248
|
-
line: 36,
|
|
4249
|
-
column: 38
|
|
4250
|
-
}
|
|
4251
|
-
},
|
|
4252
|
-
loc: {
|
|
4253
|
-
start: {
|
|
4254
|
-
line: 36,
|
|
4255
|
-
column: 55
|
|
4256
|
-
},
|
|
4257
|
-
end: {
|
|
4258
|
-
line: 39,
|
|
4259
|
-
column: 1
|
|
4260
|
-
}
|
|
4261
|
-
},
|
|
4262
|
-
line: 36
|
|
4263
|
-
},
|
|
4264
|
-
"10": {
|
|
4265
|
-
name: "(anonymous_10)",
|
|
4266
|
-
decl: {
|
|
4267
|
-
start: {
|
|
4268
|
-
line: 41,
|
|
4269
|
-
column: 41
|
|
4270
|
-
},
|
|
4271
|
-
end: {
|
|
4272
|
-
line: 41,
|
|
4273
|
-
column: 42
|
|
4274
|
-
}
|
|
4275
|
-
},
|
|
4276
|
-
loc: {
|
|
4277
|
-
start: {
|
|
4278
|
-
line: 42,
|
|
4279
|
-
column: 2
|
|
4280
|
-
},
|
|
4281
|
-
end: {
|
|
4282
|
-
line: 107,
|
|
4283
|
-
column: 4
|
|
4284
|
-
}
|
|
4285
|
-
},
|
|
4286
|
-
line: 42
|
|
4287
|
-
},
|
|
4288
|
-
"11": {
|
|
4289
|
-
name: "(anonymous_11)",
|
|
4290
|
-
decl: {
|
|
4291
|
-
start: {
|
|
4292
|
-
line: 53,
|
|
4293
|
-
column: 8
|
|
4294
|
-
},
|
|
4295
|
-
end: {
|
|
4296
|
-
line: 53,
|
|
4297
|
-
column: 9
|
|
4298
|
-
}
|
|
4299
|
-
},
|
|
4300
|
-
loc: {
|
|
4301
|
-
start: {
|
|
4302
|
-
line: 53,
|
|
4303
|
-
column: 17
|
|
4304
|
-
},
|
|
4305
|
-
end: {
|
|
4306
|
-
line: 53,
|
|
4307
|
-
column: 38
|
|
4308
|
-
}
|
|
4309
|
-
},
|
|
4310
|
-
line: 53
|
|
4311
|
-
},
|
|
4312
|
-
"12": {
|
|
4313
|
-
name: "(anonymous_12)",
|
|
4314
|
-
decl: {
|
|
4315
|
-
start: {
|
|
4316
|
-
line: 88,
|
|
4317
|
-
column: 8
|
|
4318
|
-
},
|
|
4319
|
-
end: {
|
|
4320
|
-
line: 88,
|
|
4321
|
-
column: 9
|
|
4322
|
-
}
|
|
4323
|
-
},
|
|
4324
|
-
loc: {
|
|
4325
|
-
start: {
|
|
4326
|
-
line: 88,
|
|
4327
|
-
column: 18
|
|
4328
|
-
},
|
|
4329
|
-
end: {
|
|
4330
|
-
line: 88,
|
|
4331
|
-
column: 45
|
|
4332
|
-
}
|
|
4333
|
-
},
|
|
4334
|
-
line: 88
|
|
4335
|
-
}
|
|
4336
|
-
},
|
|
4337
|
-
branchMap: {
|
|
4338
|
-
"0": {
|
|
4339
|
-
loc: {
|
|
4340
|
-
start: {
|
|
4341
|
-
line: 16,
|
|
4342
|
-
column: 35
|
|
4343
|
-
},
|
|
4344
|
-
end: {
|
|
4345
|
-
line: 16,
|
|
4346
|
-
column: 46
|
|
4347
|
-
}
|
|
4348
|
-
},
|
|
4349
|
-
type: "default-arg",
|
|
4350
|
-
locations: [{
|
|
4351
|
-
start: {
|
|
4352
|
-
line: 16,
|
|
4353
|
-
column: 44
|
|
4354
|
-
},
|
|
4355
|
-
end: {
|
|
4356
|
-
line: 16,
|
|
4357
|
-
column: 46
|
|
4358
|
-
}
|
|
4359
|
-
}],
|
|
4360
|
-
line: 16
|
|
4361
|
-
},
|
|
4362
|
-
"1": {
|
|
4363
|
-
loc: {
|
|
4364
|
-
start: {
|
|
4365
|
-
line: 65,
|
|
4366
|
-
column: 6
|
|
4367
|
-
},
|
|
4368
|
-
end: {
|
|
4369
|
-
line: 76,
|
|
4370
|
-
column: 9
|
|
4371
|
-
}
|
|
4372
|
-
},
|
|
4373
|
-
type: "binary-expr",
|
|
4374
|
-
locations: [{
|
|
4375
|
-
start: {
|
|
4376
|
-
line: 65,
|
|
4377
|
-
column: 6
|
|
4378
|
-
},
|
|
4379
|
-
end: {
|
|
4380
|
-
line: 65,
|
|
4381
|
-
column: 21
|
|
4382
|
-
}
|
|
4383
|
-
}, {
|
|
4384
|
-
start: {
|
|
4385
|
-
line: 66,
|
|
4386
|
-
column: 6
|
|
4387
|
-
},
|
|
4388
|
-
end: {
|
|
4389
|
-
line: 76,
|
|
4390
|
-
column: 9
|
|
4391
|
-
}
|
|
4392
|
-
}],
|
|
4393
|
-
line: 65
|
|
4394
|
-
}
|
|
4395
|
-
},
|
|
4396
|
-
s: {
|
|
4397
|
-
"0": 0,
|
|
4398
|
-
"1": 0,
|
|
4399
|
-
"2": 0,
|
|
4400
|
-
"3": 0,
|
|
4401
|
-
"4": 0,
|
|
4402
|
-
"5": 0,
|
|
4403
|
-
"6": 0,
|
|
4404
|
-
"7": 0,
|
|
4405
|
-
"8": 0,
|
|
4406
|
-
"9": 0,
|
|
4407
|
-
"10": 0,
|
|
4408
|
-
"11": 0,
|
|
4409
|
-
"12": 0,
|
|
4410
|
-
"13": 0,
|
|
4411
|
-
"14": 0,
|
|
4412
|
-
"15": 0,
|
|
4413
|
-
"16": 0,
|
|
4414
|
-
"17": 0,
|
|
4415
|
-
"18": 0,
|
|
4416
|
-
"19": 0
|
|
4417
|
-
},
|
|
4418
|
-
f: {
|
|
4419
|
-
"0": 0,
|
|
4420
|
-
"1": 0,
|
|
4421
|
-
"2": 0,
|
|
4422
|
-
"3": 0,
|
|
4423
|
-
"4": 0,
|
|
4424
|
-
"5": 0,
|
|
4425
|
-
"6": 0,
|
|
4426
|
-
"7": 0,
|
|
4427
|
-
"8": 0,
|
|
4428
|
-
"9": 0,
|
|
4429
|
-
"10": 0,
|
|
4430
|
-
"11": 0,
|
|
4431
|
-
"12": 0
|
|
4432
|
-
},
|
|
4433
|
-
b: {
|
|
4434
|
-
"0": [0],
|
|
4435
|
-
"1": [0, 0]
|
|
4436
|
-
},
|
|
4437
|
-
_coverageSchema: "1a1c01bbd47fc00a2c39e90264f33305004495a9",
|
|
4438
|
-
hash: "c0b2737d15f910044dcc6996929e01af74d1b1d2"
|
|
4439
|
-
};
|
|
4440
|
-
var coverage = global[gcv] || (global[gcv] = {});
|
|
4441
|
-
if (!coverage[path] || coverage[path].hash !== hash) {
|
|
4442
|
-
coverage[path] = coverageData;
|
|
4443
|
-
}
|
|
4444
|
-
var actualCoverage = coverage[path];
|
|
4445
|
-
{
|
|
4446
|
-
// @ts-ignore
|
|
4447
|
-
cov_1t4zwuo8il = function () {
|
|
4448
|
-
return actualCoverage;
|
|
4449
|
-
};
|
|
4450
|
-
}
|
|
4451
|
-
return actualCoverage;
|
|
4452
|
-
}
|
|
4453
|
-
cov_1t4zwuo8il();
|
|
4454
2697
|
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
4455
2698
|
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
4456
|
-
cov_1t4zwuo8il().s[0]++;
|
|
4457
2699
|
var isValidEmail = function isValidEmail(email) {
|
|
4458
|
-
cov_1t4zwuo8il().f[0]++;
|
|
4459
|
-
cov_1t4zwuo8il().s[1]++;
|
|
4460
2700
|
return string().email().isValidSync(email);
|
|
4461
2701
|
};
|
|
4462
|
-
cov_1t4zwuo8il().s[2]++;
|
|
4463
2702
|
var isPastDate = function isPastDate(date) {
|
|
4464
|
-
cov_1t4zwuo8il().f[1]++;
|
|
4465
|
-
cov_1t4zwuo8il().s[3]++;
|
|
4466
2703
|
return dayjs(date).isBefore(dayjs().subtract(1, "days"));
|
|
4467
2704
|
};
|
|
4468
|
-
cov_1t4zwuo8il().s[4]++;
|
|
4469
2705
|
var createEmailOptions = function createEmailOptions() {
|
|
4470
|
-
var emails = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] :
|
|
4471
|
-
cov_1t4zwuo8il().f[2]++;
|
|
4472
|
-
cov_1t4zwuo8il().s[5]++;
|
|
2706
|
+
var emails = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : [];
|
|
4473
2707
|
return emails.map(function (email) {
|
|
4474
|
-
cov_1t4zwuo8il().f[3]++;
|
|
4475
|
-
cov_1t4zwuo8il().s[6]++;
|
|
4476
2708
|
return {
|
|
4477
2709
|
label: email,
|
|
4478
2710
|
value: email,
|
|
@@ -4480,56 +2712,35 @@ var createEmailOptions = function createEmailOptions() {
|
|
|
4480
2712
|
};
|
|
4481
2713
|
});
|
|
4482
2714
|
};
|
|
4483
|
-
cov_1t4zwuo8il().s[7]++;
|
|
4484
2715
|
var parseCsvEmails = function parseCsvEmails(file) {
|
|
4485
|
-
cov_1t4zwuo8il().f[4]++;
|
|
4486
|
-
cov_1t4zwuo8il().s[8]++;
|
|
4487
2716
|
return new Promise(function (resolve) {
|
|
4488
|
-
cov_1t4zwuo8il().f[5]++;
|
|
4489
|
-
cov_1t4zwuo8il().s[9]++;
|
|
4490
2717
|
Papa.parse(file, {
|
|
4491
2718
|
header: true,
|
|
4492
2719
|
skipEmptyLines: true,
|
|
4493
2720
|
transformHeader: function transformHeader(h) {
|
|
4494
|
-
cov_1t4zwuo8il().f[6]++;
|
|
4495
|
-
cov_1t4zwuo8il().s[10]++;
|
|
4496
2721
|
return h.toLowerCase().replace(/\W/g, "");
|
|
4497
2722
|
},
|
|
4498
2723
|
complete: function complete(results) {
|
|
4499
|
-
|
|
4500
|
-
var emails = (cov_1t4zwuo8il().s[11]++, results.data.map(function (item) {
|
|
4501
|
-
cov_1t4zwuo8il().f[8]++;
|
|
4502
|
-
cov_1t4zwuo8il().s[12]++;
|
|
2724
|
+
var emails = results.data.map(function (item) {
|
|
4503
2725
|
return item.email.trim();
|
|
4504
|
-
})
|
|
4505
|
-
cov_1t4zwuo8il().s[13]++;
|
|
2726
|
+
});
|
|
4506
2727
|
resolve(createEmailOptions(emails));
|
|
4507
2728
|
}
|
|
4508
2729
|
});
|
|
4509
2730
|
});
|
|
4510
2731
|
};
|
|
4511
|
-
cov_1t4zwuo8il().s[14]++;
|
|
4512
2732
|
var generateInitialValues = function generateInitialValues(defaultValues) {
|
|
4513
|
-
cov_1t4zwuo8il().f[9]++;
|
|
4514
|
-
cov_1t4zwuo8il().s[15]++;
|
|
4515
2733
|
return _objectSpread(_objectSpread({}, INITIAL_VALUES), defaultValues);
|
|
4516
2734
|
};
|
|
4517
|
-
cov_1t4zwuo8il().s[16]++;
|
|
4518
2735
|
var emailFormValidationSchema = function emailFormValidationSchema(disableReplyTo) {
|
|
4519
|
-
cov_1t4zwuo8il().f[10]++;
|
|
4520
|
-
cov_1t4zwuo8il().s[17]++;
|
|
4521
2736
|
return yup.object().shape({
|
|
4522
2737
|
emailSubject: yup.string().required(t("neetoMolecules.shareViaEmail.validations.requiredField.subject")),
|
|
4523
2738
|
emailBody: yup.string().test("emailBody", t("neetoMolecules.shareViaEmail.validations.requiredField.emailBody"), function (value) {
|
|
4524
|
-
cov_1t4zwuo8il().f[11]++;
|
|
4525
|
-
cov_1t4zwuo8il().s[18]++;
|
|
4526
2739
|
return !isEditorEmpty(value);
|
|
4527
2740
|
}),
|
|
4528
2741
|
sendFromEmail: yup.string().trim().email(t("neetoMolecules.shareViaEmail.validations.invalidField.emailAddress")).required(t("neetoMolecules.shareViaEmail.validations.requiredField.sendFrom")),
|
|
4529
|
-
replyToEmail:
|
|
2742
|
+
replyToEmail: !disableReplyTo && yup.string().trim().email(t("neetoMolecules.shareViaEmail.validations.invalidField.emailAddress")).required(t("neetoMolecules.shareViaEmail.validations.requiredField.replyTo")),
|
|
4530
2743
|
notifyEmails: yup.array().min(1, t("neetoMolecules.shareViaEmail.validations.atleastOneIsRequired.emailAddress")).test("are-all-emails-valid", t("neetoMolecules.shareViaEmail.validations.invalidField.emailAddress"), function (emails) {
|
|
4531
|
-
cov_1t4zwuo8il().f[12]++;
|
|
4532
|
-
cov_1t4zwuo8il().s[19]++;
|
|
4533
2744
|
return emails.every(prop("valid"));
|
|
4534
2745
|
}),
|
|
4535
2746
|
isSendLaterEnabled: yup["boolean"](),
|
|
@@ -4542,375 +2753,42 @@ var emailFormValidationSchema = function emailFormValidationSchema(disableReplyT
|
|
|
4542
2753
|
});
|
|
4543
2754
|
};
|
|
4544
2755
|
|
|
4545
|
-
function cov_2dkkhs5lzc() {
|
|
4546
|
-
var path = "/home/runner/work/neeto-molecules/neeto-molecules/src/components/ShareViaEmail/Form.jsx";
|
|
4547
|
-
var hash = "6f1ffa3d2db5da67eb4a1ee988ab24cab5068446";
|
|
4548
|
-
var global = new Function("return this")();
|
|
4549
|
-
var gcv = "__coverage__";
|
|
4550
|
-
var coverageData = {
|
|
4551
|
-
path: "/home/runner/work/neeto-molecules/neeto-molecules/src/components/ShareViaEmail/Form.jsx",
|
|
4552
|
-
statementMap: {
|
|
4553
|
-
"0": {
|
|
4554
|
-
start: {
|
|
4555
|
-
line: 15,
|
|
4556
|
-
column: 13
|
|
4557
|
-
},
|
|
4558
|
-
end: {
|
|
4559
|
-
line: 144,
|
|
4560
|
-
column: 1
|
|
4561
|
-
}
|
|
4562
|
-
},
|
|
4563
|
-
"1": {
|
|
4564
|
-
start: {
|
|
4565
|
-
line: 16,
|
|
4566
|
-
column: 51
|
|
4567
|
-
},
|
|
4568
|
-
end: {
|
|
4569
|
-
line: 16,
|
|
4570
|
-
column: 69
|
|
4571
|
-
}
|
|
4572
|
-
},
|
|
4573
|
-
"2": {
|
|
4574
|
-
start: {
|
|
4575
|
-
line: 17,
|
|
4576
|
-
column: 20
|
|
4577
|
-
},
|
|
4578
|
-
end: {
|
|
4579
|
-
line: 17,
|
|
4580
|
-
column: 28
|
|
4581
|
-
}
|
|
4582
|
-
},
|
|
4583
|
-
"3": {
|
|
4584
|
-
start: {
|
|
4585
|
-
line: 18,
|
|
4586
|
-
column: 16
|
|
4587
|
-
},
|
|
4588
|
-
end: {
|
|
4589
|
-
line: 18,
|
|
4590
|
-
column: 32
|
|
4591
|
-
}
|
|
4592
|
-
},
|
|
4593
|
-
"4": {
|
|
4594
|
-
start: {
|
|
4595
|
-
line: 20,
|
|
4596
|
-
column: 22
|
|
4597
|
-
},
|
|
4598
|
-
end: {
|
|
4599
|
-
line: 22,
|
|
4600
|
-
column: 3
|
|
4601
|
-
}
|
|
4602
|
-
},
|
|
4603
|
-
"5": {
|
|
4604
|
-
start: {
|
|
4605
|
-
line: 21,
|
|
4606
|
-
column: 4
|
|
4607
|
-
},
|
|
4608
|
-
end: {
|
|
4609
|
-
line: 21,
|
|
4610
|
-
column: 74
|
|
4611
|
-
}
|
|
4612
|
-
},
|
|
4613
|
-
"6": {
|
|
4614
|
-
start: {
|
|
4615
|
-
line: 24,
|
|
4616
|
-
column: 24
|
|
4617
|
-
},
|
|
4618
|
-
end: {
|
|
4619
|
-
line: 27,
|
|
4620
|
-
column: 3
|
|
4621
|
-
}
|
|
4622
|
-
},
|
|
4623
|
-
"7": {
|
|
4624
|
-
start: {
|
|
4625
|
-
line: 25,
|
|
4626
|
-
column: 19
|
|
4627
|
-
},
|
|
4628
|
-
end: {
|
|
4629
|
-
line: 25,
|
|
4630
|
-
column: 45
|
|
4631
|
-
}
|
|
4632
|
-
},
|
|
4633
|
-
"8": {
|
|
4634
|
-
start: {
|
|
4635
|
-
line: 26,
|
|
4636
|
-
column: 4
|
|
4637
|
-
},
|
|
4638
|
-
end: {
|
|
4639
|
-
line: 26,
|
|
4640
|
-
column: 42
|
|
4641
|
-
}
|
|
4642
|
-
},
|
|
4643
|
-
"9": {
|
|
4644
|
-
start: {
|
|
4645
|
-
line: 29,
|
|
4646
|
-
column: 2
|
|
4647
|
-
},
|
|
4648
|
-
end: {
|
|
4649
|
-
line: 143,
|
|
4650
|
-
column: 4
|
|
4651
|
-
}
|
|
4652
|
-
}
|
|
4653
|
-
},
|
|
4654
|
-
fnMap: {
|
|
4655
|
-
"0": {
|
|
4656
|
-
name: "(anonymous_0)",
|
|
4657
|
-
decl: {
|
|
4658
|
-
start: {
|
|
4659
|
-
line: 15,
|
|
4660
|
-
column: 13
|
|
4661
|
-
},
|
|
4662
|
-
end: {
|
|
4663
|
-
line: 15,
|
|
4664
|
-
column: 14
|
|
4665
|
-
}
|
|
4666
|
-
},
|
|
4667
|
-
loc: {
|
|
4668
|
-
start: {
|
|
4669
|
-
line: 15,
|
|
4670
|
-
column: 71
|
|
4671
|
-
},
|
|
4672
|
-
end: {
|
|
4673
|
-
line: 144,
|
|
4674
|
-
column: 1
|
|
4675
|
-
}
|
|
4676
|
-
},
|
|
4677
|
-
line: 15
|
|
4678
|
-
},
|
|
4679
|
-
"1": {
|
|
4680
|
-
name: "(anonymous_1)",
|
|
4681
|
-
decl: {
|
|
4682
|
-
start: {
|
|
4683
|
-
line: 20,
|
|
4684
|
-
column: 22
|
|
4685
|
-
},
|
|
4686
|
-
end: {
|
|
4687
|
-
line: 20,
|
|
4688
|
-
column: 23
|
|
4689
|
-
}
|
|
4690
|
-
},
|
|
4691
|
-
loc: {
|
|
4692
|
-
start: {
|
|
4693
|
-
line: 20,
|
|
4694
|
-
column: 28
|
|
4695
|
-
},
|
|
4696
|
-
end: {
|
|
4697
|
-
line: 22,
|
|
4698
|
-
column: 3
|
|
4699
|
-
}
|
|
4700
|
-
},
|
|
4701
|
-
line: 20
|
|
4702
|
-
},
|
|
4703
|
-
"2": {
|
|
4704
|
-
name: "(anonymous_2)",
|
|
4705
|
-
decl: {
|
|
4706
|
-
start: {
|
|
4707
|
-
line: 24,
|
|
4708
|
-
column: 24
|
|
4709
|
-
},
|
|
4710
|
-
end: {
|
|
4711
|
-
line: 24,
|
|
4712
|
-
column: 25
|
|
4713
|
-
}
|
|
4714
|
-
},
|
|
4715
|
-
loc: {
|
|
4716
|
-
start: {
|
|
4717
|
-
line: 24,
|
|
4718
|
-
column: 42
|
|
4719
|
-
},
|
|
4720
|
-
end: {
|
|
4721
|
-
line: 27,
|
|
4722
|
-
column: 3
|
|
4723
|
-
}
|
|
4724
|
-
},
|
|
4725
|
-
line: 24
|
|
4726
|
-
}
|
|
4727
|
-
},
|
|
4728
|
-
branchMap: {
|
|
4729
|
-
"0": {
|
|
4730
|
-
loc: {
|
|
4731
|
-
start: {
|
|
4732
|
-
line: 84,
|
|
4733
|
-
column: 9
|
|
4734
|
-
},
|
|
4735
|
-
end: {
|
|
4736
|
-
line: 96,
|
|
4737
|
-
column: 9
|
|
4738
|
-
}
|
|
4739
|
-
},
|
|
4740
|
-
type: "binary-expr",
|
|
4741
|
-
locations: [{
|
|
4742
|
-
start: {
|
|
4743
|
-
line: 84,
|
|
4744
|
-
column: 9
|
|
4745
|
-
},
|
|
4746
|
-
end: {
|
|
4747
|
-
line: 84,
|
|
4748
|
-
column: 34
|
|
4749
|
-
}
|
|
4750
|
-
}, {
|
|
4751
|
-
start: {
|
|
4752
|
-
line: 85,
|
|
4753
|
-
column: 10
|
|
4754
|
-
},
|
|
4755
|
-
end: {
|
|
4756
|
-
line: 95,
|
|
4757
|
-
column: 12
|
|
4758
|
-
}
|
|
4759
|
-
}],
|
|
4760
|
-
line: 84
|
|
4761
|
-
},
|
|
4762
|
-
"1": {
|
|
4763
|
-
loc: {
|
|
4764
|
-
start: {
|
|
4765
|
-
line: 111,
|
|
4766
|
-
column: 11
|
|
4767
|
-
},
|
|
4768
|
-
end: {
|
|
4769
|
-
line: 119,
|
|
4770
|
-
column: 11
|
|
4771
|
-
}
|
|
4772
|
-
},
|
|
4773
|
-
type: "binary-expr",
|
|
4774
|
-
locations: [{
|
|
4775
|
-
start: {
|
|
4776
|
-
line: 111,
|
|
4777
|
-
column: 11
|
|
4778
|
-
},
|
|
4779
|
-
end: {
|
|
4780
|
-
line: 111,
|
|
4781
|
-
column: 26
|
|
4782
|
-
}
|
|
4783
|
-
}, {
|
|
4784
|
-
start: {
|
|
4785
|
-
line: 112,
|
|
4786
|
-
column: 12
|
|
4787
|
-
},
|
|
4788
|
-
end: {
|
|
4789
|
-
line: 118,
|
|
4790
|
-
column: 14
|
|
4791
|
-
}
|
|
4792
|
-
}],
|
|
4793
|
-
line: 111
|
|
4794
|
-
},
|
|
4795
|
-
"2": {
|
|
4796
|
-
loc: {
|
|
4797
|
-
start: {
|
|
4798
|
-
line: 122,
|
|
4799
|
-
column: 7
|
|
4800
|
-
},
|
|
4801
|
-
end: {
|
|
4802
|
-
line: 129,
|
|
4803
|
-
column: 7
|
|
4804
|
-
}
|
|
4805
|
-
},
|
|
4806
|
-
type: "binary-expr",
|
|
4807
|
-
locations: [{
|
|
4808
|
-
start: {
|
|
4809
|
-
line: 122,
|
|
4810
|
-
column: 7
|
|
4811
|
-
},
|
|
4812
|
-
end: {
|
|
4813
|
-
line: 122,
|
|
4814
|
-
column: 15
|
|
4815
|
-
}
|
|
4816
|
-
}, {
|
|
4817
|
-
start: {
|
|
4818
|
-
line: 123,
|
|
4819
|
-
column: 8
|
|
4820
|
-
},
|
|
4821
|
-
end: {
|
|
4822
|
-
line: 128,
|
|
4823
|
-
column: 14
|
|
4824
|
-
}
|
|
4825
|
-
}],
|
|
4826
|
-
line: 122
|
|
4827
|
-
}
|
|
4828
|
-
},
|
|
4829
|
-
s: {
|
|
4830
|
-
"0": 0,
|
|
4831
|
-
"1": 0,
|
|
4832
|
-
"2": 0,
|
|
4833
|
-
"3": 0,
|
|
4834
|
-
"4": 0,
|
|
4835
|
-
"5": 0,
|
|
4836
|
-
"6": 0,
|
|
4837
|
-
"7": 0,
|
|
4838
|
-
"8": 0,
|
|
4839
|
-
"9": 0
|
|
4840
|
-
},
|
|
4841
|
-
f: {
|
|
4842
|
-
"0": 0,
|
|
4843
|
-
"1": 0,
|
|
4844
|
-
"2": 0
|
|
4845
|
-
},
|
|
4846
|
-
b: {
|
|
4847
|
-
"0": [0, 0],
|
|
4848
|
-
"1": [0, 0],
|
|
4849
|
-
"2": [0, 0]
|
|
4850
|
-
},
|
|
4851
|
-
_coverageSchema: "1a1c01bbd47fc00a2c39e90264f33305004495a9",
|
|
4852
|
-
hash: "6f1ffa3d2db5da67eb4a1ee988ab24cab5068446"
|
|
4853
|
-
};
|
|
4854
|
-
var coverage = global[gcv] || (global[gcv] = {});
|
|
4855
|
-
if (!coverage[path] || coverage[path].hash !== hash) {
|
|
4856
|
-
coverage[path] = coverageData;
|
|
4857
|
-
}
|
|
4858
|
-
var actualCoverage = coverage[path];
|
|
4859
|
-
{
|
|
4860
|
-
// @ts-ignore
|
|
4861
|
-
cov_2dkkhs5lzc = function () {
|
|
4862
|
-
return actualCoverage;
|
|
4863
|
-
};
|
|
4864
|
-
}
|
|
4865
|
-
return actualCoverage;
|
|
4866
|
-
}
|
|
4867
|
-
cov_2dkkhs5lzc();
|
|
4868
|
-
cov_2dkkhs5lzc().s[0]++;
|
|
4869
2756
|
var Form = function Form(_ref) {
|
|
4870
2757
|
var disableReplyTo = _ref.disableReplyTo,
|
|
4871
2758
|
showVideoEmbedInEditor = _ref.showVideoEmbedInEditor,
|
|
4872
2759
|
children = _ref.children;
|
|
4873
|
-
|
|
4874
|
-
|
|
4875
|
-
|
|
4876
|
-
|
|
4877
|
-
|
|
4878
|
-
var
|
|
4879
|
-
|
|
4880
|
-
t = _ref3.t;
|
|
4881
|
-
cov_2dkkhs5lzc().s[4]++;
|
|
2760
|
+
var _useFormikContext = useFormikContext(),
|
|
2761
|
+
values = _useFormikContext.values,
|
|
2762
|
+
setFieldValue = _useFormikContext.setFieldValue,
|
|
2763
|
+
initialValues = _useFormikContext.initialValues;
|
|
2764
|
+
var editorRef = useRef();
|
|
2765
|
+
var _useTranslation = useTranslation(),
|
|
2766
|
+
t = _useTranslation.t;
|
|
4882
2767
|
var handleReset = function handleReset() {
|
|
4883
|
-
cov_2dkkhs5lzc().f[1]++;
|
|
4884
|
-
cov_2dkkhs5lzc().s[5]++;
|
|
4885
2768
|
editorRef.current.editor.commands.setContent(initialValues.emailBody);
|
|
4886
2769
|
};
|
|
4887
|
-
cov_2dkkhs5lzc().s[6]++;
|
|
4888
2770
|
var handleCSVFile = /*#__PURE__*/function () {
|
|
4889
|
-
var
|
|
4890
|
-
var
|
|
2771
|
+
var _ref3 = _asyncToGenerator( /*#__PURE__*/regenerator.mark(function _callee(_ref2) {
|
|
2772
|
+
var _ref4, file, values;
|
|
4891
2773
|
return regenerator.wrap(function _callee$(_context) {
|
|
4892
2774
|
while (1) switch (_context.prev = _context.next) {
|
|
4893
2775
|
case 0:
|
|
4894
|
-
|
|
4895
|
-
|
|
4896
|
-
cov_2dkkhs5lzc().s[7]++;
|
|
4897
|
-
_context.next = 5;
|
|
2776
|
+
_ref4 = _slicedToArray(_ref2, 1), file = _ref4[0];
|
|
2777
|
+
_context.next = 3;
|
|
4898
2778
|
return parseCsvEmails(file);
|
|
4899
|
-
case
|
|
2779
|
+
case 3:
|
|
4900
2780
|
values = _context.sent;
|
|
4901
|
-
cov_2dkkhs5lzc().s[8]++;
|
|
4902
2781
|
setFieldValue("notifyEmails", values);
|
|
4903
|
-
case
|
|
2782
|
+
case 5:
|
|
4904
2783
|
case "end":
|
|
4905
2784
|
return _context.stop();
|
|
4906
2785
|
}
|
|
4907
2786
|
}, _callee);
|
|
4908
2787
|
}));
|
|
4909
2788
|
return function handleCSVFile(_x) {
|
|
4910
|
-
return
|
|
2789
|
+
return _ref3.apply(this, arguments);
|
|
4911
2790
|
};
|
|
4912
2791
|
}();
|
|
4913
|
-
cov_2dkkhs5lzc().s[9]++;
|
|
4914
2792
|
return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("div", {
|
|
4915
2793
|
className: "space-y-4"
|
|
4916
2794
|
}, /*#__PURE__*/React.createElement("div", {
|
|
@@ -4953,7 +2831,7 @@ var Form = function Form(_ref) {
|
|
|
4953
2831
|
lineHeight: "normal",
|
|
4954
2832
|
style: "h4",
|
|
4955
2833
|
weight: "semibold"
|
|
4956
|
-
}, t("neetoMolecules.shareViaEmail.sendLater")))),
|
|
2834
|
+
}, t("neetoMolecules.shareViaEmail.sendLater")))), values.isSendLaterEnabled && /*#__PURE__*/React.createElement(FormikDatePicker, {
|
|
4957
2835
|
autoFocus: true,
|
|
4958
2836
|
showTime: true,
|
|
4959
2837
|
"data-cy": "email-share-date-input",
|
|
@@ -4963,7 +2841,7 @@ var Form = function Form(_ref) {
|
|
|
4963
2841
|
picker: "date",
|
|
4964
2842
|
size: "large",
|
|
4965
2843
|
type: "date"
|
|
4966
|
-
})
|
|
2844
|
+
}), /*#__PURE__*/React.createElement(Input, {
|
|
4967
2845
|
required: true,
|
|
4968
2846
|
label: t("neetoMolecules.shareViaEmail.startButtonText"),
|
|
4969
2847
|
name: "actionButtonText"
|
|
@@ -4976,17 +2854,17 @@ var Form = function Form(_ref) {
|
|
|
4976
2854
|
className: "col-auto",
|
|
4977
2855
|
label: t("neetoMolecules.shareViaEmail.sendFrom"),
|
|
4978
2856
|
name: "sendFromEmail"
|
|
4979
|
-
}),
|
|
2857
|
+
}), !disableReplyTo && /*#__PURE__*/React.createElement(Input, {
|
|
4980
2858
|
required: true,
|
|
4981
2859
|
className: "col-auto",
|
|
4982
2860
|
"data-testid": "replyTo-field",
|
|
4983
2861
|
label: t("neetoMolecules.shareViaEmail.replyTo"),
|
|
4984
2862
|
name: "replyToEmail"
|
|
4985
|
-
})))
|
|
2863
|
+
}))), children && /*#__PURE__*/React.createElement("div", {
|
|
4986
2864
|
className: "neeto-ui-border-gray-300 mt-4 border-t py-4"
|
|
4987
2865
|
}, /*#__PURE__*/React.createElement("h3", {
|
|
4988
2866
|
className: "mb-4"
|
|
4989
|
-
}, t("neetoMolecules.shareViaEmail.additionalOptions")), children)
|
|
2867
|
+
}, t("neetoMolecules.shareViaEmail.additionalOptions")), children), /*#__PURE__*/React.createElement("div", {
|
|
4990
2868
|
className: "mt-6"
|
|
4991
2869
|
}, /*#__PURE__*/React.createElement(ActionBlock, {
|
|
4992
2870
|
cancelButtonProps: {
|
|
@@ -5000,288 +2878,6 @@ var Form = function Form(_ref) {
|
|
|
5000
2878
|
})));
|
|
5001
2879
|
};
|
|
5002
2880
|
|
|
5003
|
-
function cov_1z3j0gxvbf() {
|
|
5004
|
-
var path = "/home/runner/work/neeto-molecules/neeto-molecules/src/components/ShareViaEmail/index.jsx";
|
|
5005
|
-
var hash = "b16fa704f71e2d30a2654b393c71d7cf63cc0e1a";
|
|
5006
|
-
var global = new Function("return this")();
|
|
5007
|
-
var gcv = "__coverage__";
|
|
5008
|
-
var coverageData = {
|
|
5009
|
-
path: "/home/runner/work/neeto-molecules/neeto-molecules/src/components/ShareViaEmail/index.jsx",
|
|
5010
|
-
statementMap: {
|
|
5011
|
-
"0": {
|
|
5012
|
-
start: {
|
|
5013
|
-
line: 13,
|
|
5014
|
-
column: 22
|
|
5015
|
-
},
|
|
5016
|
-
end: {
|
|
5017
|
-
line: 101,
|
|
5018
|
-
column: 1
|
|
5019
|
-
}
|
|
5020
|
-
},
|
|
5021
|
-
"1": {
|
|
5022
|
-
start: {
|
|
5023
|
-
line: 23,
|
|
5024
|
-
column: 16
|
|
5025
|
-
},
|
|
5026
|
-
end: {
|
|
5027
|
-
line: 23,
|
|
5028
|
-
column: 32
|
|
5029
|
-
}
|
|
5030
|
-
},
|
|
5031
|
-
"2": {
|
|
5032
|
-
start: {
|
|
5033
|
-
line: 25,
|
|
5034
|
-
column: 23
|
|
5035
|
-
},
|
|
5036
|
-
end: {
|
|
5037
|
-
line: 25,
|
|
5038
|
-
column: 78
|
|
5039
|
-
}
|
|
5040
|
-
},
|
|
5041
|
-
"3": {
|
|
5042
|
-
start: {
|
|
5043
|
-
line: 25,
|
|
5044
|
-
column: 39
|
|
5045
|
-
},
|
|
5046
|
-
end: {
|
|
5047
|
-
line: 25,
|
|
5048
|
-
column: 78
|
|
5049
|
-
}
|
|
5050
|
-
},
|
|
5051
|
-
"4": {
|
|
5052
|
-
start: {
|
|
5053
|
-
line: 25,
|
|
5054
|
-
column: 65
|
|
5055
|
-
},
|
|
5056
|
-
end: {
|
|
5057
|
-
line: 25,
|
|
5058
|
-
column: 77
|
|
5059
|
-
}
|
|
5060
|
-
},
|
|
5061
|
-
"5": {
|
|
5062
|
-
start: {
|
|
5063
|
-
line: 27,
|
|
5064
|
-
column: 2
|
|
5065
|
-
},
|
|
5066
|
-
end: {
|
|
5067
|
-
line: 100,
|
|
5068
|
-
column: 4
|
|
5069
|
-
}
|
|
5070
|
-
},
|
|
5071
|
-
"6": {
|
|
5072
|
-
start: {
|
|
5073
|
-
line: 41,
|
|
5074
|
-
column: 12
|
|
5075
|
-
},
|
|
5076
|
-
end: {
|
|
5077
|
-
line: 95,
|
|
5078
|
-
column: 18
|
|
5079
|
-
}
|
|
5080
|
-
}
|
|
5081
|
-
},
|
|
5082
|
-
fnMap: {
|
|
5083
|
-
"0": {
|
|
5084
|
-
name: "(anonymous_0)",
|
|
5085
|
-
decl: {
|
|
5086
|
-
start: {
|
|
5087
|
-
line: 13,
|
|
5088
|
-
column: 22
|
|
5089
|
-
},
|
|
5090
|
-
end: {
|
|
5091
|
-
line: 13,
|
|
5092
|
-
column: 23
|
|
5093
|
-
}
|
|
5094
|
-
},
|
|
5095
|
-
loc: {
|
|
5096
|
-
start: {
|
|
5097
|
-
line: 22,
|
|
5098
|
-
column: 6
|
|
5099
|
-
},
|
|
5100
|
-
end: {
|
|
5101
|
-
line: 101,
|
|
5102
|
-
column: 1
|
|
5103
|
-
}
|
|
5104
|
-
},
|
|
5105
|
-
line: 22
|
|
5106
|
-
},
|
|
5107
|
-
"1": {
|
|
5108
|
-
name: "(anonymous_1)",
|
|
5109
|
-
decl: {
|
|
5110
|
-
start: {
|
|
5111
|
-
line: 25,
|
|
5112
|
-
column: 23
|
|
5113
|
-
},
|
|
5114
|
-
end: {
|
|
5115
|
-
line: 25,
|
|
5116
|
-
column: 24
|
|
5117
|
-
}
|
|
5118
|
-
},
|
|
5119
|
-
loc: {
|
|
5120
|
-
start: {
|
|
5121
|
-
line: 25,
|
|
5122
|
-
column: 39
|
|
5123
|
-
},
|
|
5124
|
-
end: {
|
|
5125
|
-
line: 25,
|
|
5126
|
-
column: 78
|
|
5127
|
-
}
|
|
5128
|
-
},
|
|
5129
|
-
line: 25
|
|
5130
|
-
},
|
|
5131
|
-
"2": {
|
|
5132
|
-
name: "(anonymous_2)",
|
|
5133
|
-
decl: {
|
|
5134
|
-
start: {
|
|
5135
|
-
line: 25,
|
|
5136
|
-
column: 56
|
|
5137
|
-
},
|
|
5138
|
-
end: {
|
|
5139
|
-
line: 25,
|
|
5140
|
-
column: 57
|
|
5141
|
-
}
|
|
5142
|
-
},
|
|
5143
|
-
loc: {
|
|
5144
|
-
start: {
|
|
5145
|
-
line: 25,
|
|
5146
|
-
column: 65
|
|
5147
|
-
},
|
|
5148
|
-
end: {
|
|
5149
|
-
line: 25,
|
|
5150
|
-
column: 77
|
|
5151
|
-
}
|
|
5152
|
-
},
|
|
5153
|
-
line: 25
|
|
5154
|
-
},
|
|
5155
|
-
"3": {
|
|
5156
|
-
name: "(anonymous_3)",
|
|
5157
|
-
decl: {
|
|
5158
|
-
start: {
|
|
5159
|
-
line: 40,
|
|
5160
|
-
column: 11
|
|
5161
|
-
},
|
|
5162
|
-
end: {
|
|
5163
|
-
line: 40,
|
|
5164
|
-
column: 12
|
|
5165
|
-
}
|
|
5166
|
-
},
|
|
5167
|
-
loc: {
|
|
5168
|
-
start: {
|
|
5169
|
-
line: 41,
|
|
5170
|
-
column: 12
|
|
5171
|
-
},
|
|
5172
|
-
end: {
|
|
5173
|
-
line: 95,
|
|
5174
|
-
column: 18
|
|
5175
|
-
}
|
|
5176
|
-
},
|
|
5177
|
-
line: 41
|
|
5178
|
-
}
|
|
5179
|
-
},
|
|
5180
|
-
branchMap: {
|
|
5181
|
-
"0": {
|
|
5182
|
-
loc: {
|
|
5183
|
-
start: {
|
|
5184
|
-
line: 43,
|
|
5185
|
-
column: 17
|
|
5186
|
-
},
|
|
5187
|
-
end: {
|
|
5188
|
-
line: 54,
|
|
5189
|
-
column: 17
|
|
5190
|
-
}
|
|
5191
|
-
},
|
|
5192
|
-
type: "binary-expr",
|
|
5193
|
-
locations: [{
|
|
5194
|
-
start: {
|
|
5195
|
-
line: 43,
|
|
5196
|
-
column: 17
|
|
5197
|
-
},
|
|
5198
|
-
end: {
|
|
5199
|
-
line: 43,
|
|
5200
|
-
column: 26
|
|
5201
|
-
}
|
|
5202
|
-
}, {
|
|
5203
|
-
start: {
|
|
5204
|
-
line: 44,
|
|
5205
|
-
column: 18
|
|
5206
|
-
},
|
|
5207
|
-
end: {
|
|
5208
|
-
line: 53,
|
|
5209
|
-
column: 20
|
|
5210
|
-
}
|
|
5211
|
-
}],
|
|
5212
|
-
line: 43
|
|
5213
|
-
},
|
|
5214
|
-
"1": {
|
|
5215
|
-
loc: {
|
|
5216
|
-
start: {
|
|
5217
|
-
line: 65,
|
|
5218
|
-
column: 19
|
|
5219
|
-
},
|
|
5220
|
-
end: {
|
|
5221
|
-
line: 74,
|
|
5222
|
-
column: 19
|
|
5223
|
-
}
|
|
5224
|
-
},
|
|
5225
|
-
type: "binary-expr",
|
|
5226
|
-
locations: [{
|
|
5227
|
-
start: {
|
|
5228
|
-
line: 65,
|
|
5229
|
-
column: 19
|
|
5230
|
-
},
|
|
5231
|
-
end: {
|
|
5232
|
-
line: 65,
|
|
5233
|
-
column: 30
|
|
5234
|
-
}
|
|
5235
|
-
}, {
|
|
5236
|
-
start: {
|
|
5237
|
-
line: 66,
|
|
5238
|
-
column: 20
|
|
5239
|
-
},
|
|
5240
|
-
end: {
|
|
5241
|
-
line: 73,
|
|
5242
|
-
column: 33
|
|
5243
|
-
}
|
|
5244
|
-
}],
|
|
5245
|
-
line: 65
|
|
5246
|
-
}
|
|
5247
|
-
},
|
|
5248
|
-
s: {
|
|
5249
|
-
"0": 0,
|
|
5250
|
-
"1": 0,
|
|
5251
|
-
"2": 0,
|
|
5252
|
-
"3": 0,
|
|
5253
|
-
"4": 0,
|
|
5254
|
-
"5": 0,
|
|
5255
|
-
"6": 0
|
|
5256
|
-
},
|
|
5257
|
-
f: {
|
|
5258
|
-
"0": 0,
|
|
5259
|
-
"1": 0,
|
|
5260
|
-
"2": 0,
|
|
5261
|
-
"3": 0
|
|
5262
|
-
},
|
|
5263
|
-
b: {
|
|
5264
|
-
"0": [0, 0],
|
|
5265
|
-
"1": [0, 0]
|
|
5266
|
-
},
|
|
5267
|
-
_coverageSchema: "1a1c01bbd47fc00a2c39e90264f33305004495a9",
|
|
5268
|
-
hash: "b16fa704f71e2d30a2654b393c71d7cf63cc0e1a"
|
|
5269
|
-
};
|
|
5270
|
-
var coverage = global[gcv] || (global[gcv] = {});
|
|
5271
|
-
if (!coverage[path] || coverage[path].hash !== hash) {
|
|
5272
|
-
coverage[path] = coverageData;
|
|
5273
|
-
}
|
|
5274
|
-
var actualCoverage = coverage[path];
|
|
5275
|
-
{
|
|
5276
|
-
// @ts-ignore
|
|
5277
|
-
cov_1z3j0gxvbf = function () {
|
|
5278
|
-
return actualCoverage;
|
|
5279
|
-
};
|
|
5280
|
-
}
|
|
5281
|
-
return actualCoverage;
|
|
5282
|
-
}
|
|
5283
|
-
cov_1z3j0gxvbf();
|
|
5284
|
-
cov_1z3j0gxvbf().s[0]++;
|
|
5285
2881
|
var ShareViaEmail = function ShareViaEmail(_ref) {
|
|
5286
2882
|
var backToUrl = _ref.backToUrl,
|
|
5287
2883
|
handleSubmit = _ref.handleSubmit,
|
|
@@ -5291,20 +2887,13 @@ var ShareViaEmail = function ShareViaEmail(_ref) {
|
|
|
5291
2887
|
disableReplyTo = _ref.disableReplyTo,
|
|
5292
2888
|
productName = _ref.productName,
|
|
5293
2889
|
showVideoEmbedInEditor = _ref.showVideoEmbedInEditor;
|
|
5294
|
-
|
|
5295
|
-
|
|
5296
|
-
t = _ref2.t;
|
|
5297
|
-
cov_1z3j0gxvbf().s[2]++;
|
|
2890
|
+
var _useTranslation = useTranslation(),
|
|
2891
|
+
t = _useTranslation.t;
|
|
5298
2892
|
var sendToEmails = function sendToEmails(notifyEmails) {
|
|
5299
|
-
cov_1z3j0gxvbf().f[1]++;
|
|
5300
|
-
cov_1z3j0gxvbf().s[3]++;
|
|
5301
2893
|
return notifyEmails.map(function (email) {
|
|
5302
|
-
cov_1z3j0gxvbf().f[2]++;
|
|
5303
|
-
cov_1z3j0gxvbf().s[4]++;
|
|
5304
2894
|
return email === null || email === void 0 ? void 0 : email.value;
|
|
5305
2895
|
});
|
|
5306
2896
|
};
|
|
5307
|
-
cov_1z3j0gxvbf().s[5]++;
|
|
5308
2897
|
return /*#__PURE__*/React.createElement("div", {
|
|
5309
2898
|
className: "neeto-ui-bg-gray-100 flex w-full flex-1 flex-col p-8"
|
|
5310
2899
|
}, /*#__PURE__*/React.createElement("div", {
|
|
@@ -5320,15 +2909,13 @@ var ShareViaEmail = function ShareViaEmail(_ref) {
|
|
|
5320
2909
|
validationSchema: emailFormValidationSchema(disableReplyTo),
|
|
5321
2910
|
onSubmit: handleSubmit
|
|
5322
2911
|
}
|
|
5323
|
-
}, function (
|
|
5324
|
-
var values =
|
|
5325
|
-
cov_1z3j0gxvbf().f[3]++;
|
|
5326
|
-
cov_1z3j0gxvbf().s[6]++;
|
|
2912
|
+
}, function (_ref2) {
|
|
2913
|
+
var values = _ref2.values;
|
|
5327
2914
|
return /*#__PURE__*/React.createElement("div", {
|
|
5328
2915
|
className: "grid grid-cols-12 gap-8"
|
|
5329
2916
|
}, /*#__PURE__*/React.createElement("div", {
|
|
5330
2917
|
className: "col-span-5"
|
|
5331
|
-
},
|
|
2918
|
+
}, backToUrl && /*#__PURE__*/React.createElement(Button, {
|
|
5332
2919
|
className: "mb-4",
|
|
5333
2920
|
"data-testid": "back-to-url-button",
|
|
5334
2921
|
icon: LeftArrow,
|
|
@@ -5337,7 +2924,7 @@ var ShareViaEmail = function ShareViaEmail(_ref) {
|
|
|
5337
2924
|
size: "small",
|
|
5338
2925
|
style: "link",
|
|
5339
2926
|
to: backToUrl
|
|
5340
|
-
})
|
|
2927
|
+
}), /*#__PURE__*/React.createElement("div", {
|
|
5341
2928
|
className: "mb-6"
|
|
5342
2929
|
}, /*#__PURE__*/React.createElement(Typography, {
|
|
5343
2930
|
className: "mb-0.5",
|
|
@@ -5345,12 +2932,12 @@ var ShareViaEmail = function ShareViaEmail(_ref) {
|
|
|
5345
2932
|
lineHeight: "normal",
|
|
5346
2933
|
style: "h2",
|
|
5347
2934
|
weight: "semibold"
|
|
5348
|
-
}, t("neetoMolecules.shareViaEmail.title")),
|
|
2935
|
+
}, t("neetoMolecules.shareViaEmail.title")), description && /*#__PURE__*/React.createElement(Typography, {
|
|
5349
2936
|
className: "neeto-ui-text-gray-700",
|
|
5350
2937
|
"data-cy": "share-via-email-sub-heading",
|
|
5351
2938
|
lineHeight: "normal",
|
|
5352
2939
|
style: "body2"
|
|
5353
|
-
}, description))
|
|
2940
|
+
}, description)), /*#__PURE__*/React.createElement(Form, {
|
|
5354
2941
|
disableReplyTo: disableReplyTo,
|
|
5355
2942
|
showVideoEmbedInEditor: showVideoEmbedInEditor
|
|
5356
2943
|
}, children)), /*#__PURE__*/React.createElement("div", {
|