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