@bigbinary/neeto-message-templates-frontend 1.2.0 → 1.3.1
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/README.md +1 -6
- package/app/javascript/src/translations/en.json +4 -2
- package/dist/ApiTemplates.js +14 -11
- package/dist/ApiTemplates.js.map +1 -1
- package/dist/MessageTemplates.js +14 -417
- package/dist/MessageTemplates.js.map +1 -1
- package/dist/SendMessagePane.js +101 -29
- package/dist/SendMessagePane.js.map +1 -1
- package/dist/SendToApiPane.js +56 -26
- package/dist/SendToApiPane.js.map +1 -1
- package/dist/cjs/ApiTemplates.js +48 -63
- package/dist/cjs/ApiTemplates.js.map +1 -1
- package/dist/cjs/MessageTemplates.js +64 -487
- package/dist/cjs/MessageTemplates.js.map +1 -1
- package/dist/cjs/SendMessagePane.js +125 -66
- package/dist/cjs/SendMessagePane.js.map +1 -1
- package/dist/cjs/SendToApiPane.js +66 -45
- package/dist/cjs/SendToApiPane.js.map +1 -1
- package/dist/cjs/index.js +22 -16
- package/dist/cjs/index.js.map +1 -1
- package/dist/constants-CqiptWxr.js +49 -0
- package/dist/constants-CqiptWxr.js.map +1 -0
- package/dist/constants-D4v0xTUu.js +44 -0
- package/dist/constants-D4v0xTUu.js.map +1 -0
- package/dist/index.js +22 -14
- package/dist/index.js.map +1 -1
- package/dist/useTemplatesApi-CSsaKyRi.js +110 -0
- package/dist/useTemplatesApi-CSsaKyRi.js.map +1 -0
- package/dist/useTemplatesApi-D63swqeh.js +105 -0
- package/dist/useTemplatesApi-D63swqeh.js.map +1 -0
- package/dist/{utils-b93467c8.js → utils-BUob2F8X.js} +1 -1
- package/dist/{utils-b93467c8.js.map → utils-BUob2F8X.js.map} +1 -1
- package/dist/utils-CdkVjz8p.js +80 -0
- package/dist/utils-CdkVjz8p.js.map +1 -0
- package/dist/utils-DCNzEjAw.js +83 -0
- package/dist/utils-DCNzEjAw.js.map +1 -0
- package/dist/{utils-90248b52.js → utils-aj-r79qQ.js} +10 -17
- package/dist/{utils-90248b52.js.map → utils-aj-r79qQ.js.map} +1 -1
- package/package.json +108 -89
- package/types.d.ts +1 -2
- package/dist/NoDataPage-00b22095.js +0 -58
- package/dist/NoDataPage-00b22095.js.map +0 -1
- package/dist/NoDataPage-4ba91a9f.js +0 -51
- package/dist/NoDataPage-4ba91a9f.js.map +0 -1
- package/dist/slicedToArray-b4278ecd.js +0 -57
- package/dist/slicedToArray-b4278ecd.js.map +0 -1
- package/dist/slicedToArray-f320d9e7.js +0 -61
- package/dist/slicedToArray-f320d9e7.js.map +0 -1
- package/dist/toConsumableArray-1cc38429.js +0 -20
- package/dist/toConsumableArray-1cc38429.js.map +0 -1
- package/dist/toConsumableArray-9abb3858.js +0 -22
- package/dist/toConsumableArray-9abb3858.js.map +0 -1
- package/dist/useTemplatesApi-45d43d41.js +0 -2240
- package/dist/useTemplatesApi-45d43d41.js.map +0 -1
- package/dist/useTemplatesApi-943ef380.js +0 -2256
- package/dist/useTemplatesApi-943ef380.js.map +0 -1
package/dist/MessageTemplates.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
1
|
+
import _defineProperty from '@babel/runtime/helpers/defineProperty';
|
|
2
|
+
import _slicedToArray from '@babel/runtime/helpers/slicedToArray';
|
|
3
3
|
import { useState, useRef, useEffect } from 'react';
|
|
4
4
|
import { hyphenate, noop, isNotEmpty } from '@bigbinary/neeto-cist';
|
|
5
|
-
import
|
|
5
|
+
import FiltersBar from '@bigbinary/neeto-filters-frontend/Bar';
|
|
6
6
|
import Container from '@bigbinary/neeto-molecules/Container';
|
|
7
7
|
import NeetoHeader from '@bigbinary/neeto-molecules/Header';
|
|
8
8
|
import HelpPopover from '@bigbinary/neeto-molecules/HelpPopover';
|
|
@@ -11,8 +11,10 @@ import Button from '@bigbinary/neetoui/Button';
|
|
|
11
11
|
import Typography from '@bigbinary/neetoui/Typography';
|
|
12
12
|
import { equals, prop, includes, pick, omit, isEmpty, assoc } from 'ramda';
|
|
13
13
|
import { useTranslation, Trans } from 'react-i18next';
|
|
14
|
+
import { b as DEFAULT_EDITOR_ROW_COUNT, D as DEFAULT_PAGE_PROPERTIES, M as MESSAGE_TEMPLATES, a as MESSAGE_TYPES } from './constants-D4v0xTUu.js';
|
|
14
15
|
import { t } from 'i18next';
|
|
15
16
|
import MoreDropdown from '@bigbinary/neeto-molecules/MoreDropdown';
|
|
17
|
+
import { a as useUpdateTemplate, b as useFetchTemplates, u as useCreateTemplate, c as useDeleteTemplate } from './useTemplatesApi-D63swqeh.js';
|
|
16
18
|
import { withImmutableActions, useQueryParams } from '@bigbinary/neeto-commons-frontend/react-utils';
|
|
17
19
|
import { create } from 'zustand';
|
|
18
20
|
import { jsx, jsxs, Fragment } from 'react/jsx-runtime';
|
|
@@ -21,12 +23,16 @@ import FormikEditor from '@bigbinary/neeto-editor/FormikEditor';
|
|
|
21
23
|
import NeetoUIForm from '@bigbinary/neetoui/formik/Form';
|
|
22
24
|
import Input from '@bigbinary/neetoui/formik/Input';
|
|
23
25
|
import ActionBlock from '@bigbinary/neetoui/formik/ActionBlock';
|
|
26
|
+
import _objectWithoutProperties from '@babel/runtime/helpers/objectWithoutProperties';
|
|
24
27
|
import { useFormikContext } from 'formik';
|
|
25
28
|
import Textarea from '@bigbinary/neetoui/formik/Textarea';
|
|
26
29
|
import 'stylesheets/application.scss';
|
|
27
30
|
import { isPhoneNumberValid } from '@bigbinary/neeto-molecules/PhoneNumber';
|
|
28
31
|
import * as yup from 'yup';
|
|
29
|
-
import
|
|
32
|
+
import _asyncToGenerator from '@babel/runtime/helpers/asyncToGenerator';
|
|
33
|
+
import _regeneratorRuntime from '@babel/runtime/regenerator';
|
|
34
|
+
import _toConsumableArray from '@babel/runtime/helpers/toConsumableArray';
|
|
35
|
+
import { buildFiltersFromURL } from '@bigbinary/neeto-filters-frontend/utils';
|
|
30
36
|
import TableWrapper from '@bigbinary/neeto-molecules/TableWrapper';
|
|
31
37
|
import Alert from '@bigbinary/neetoui/Alert';
|
|
32
38
|
import Table from '@bigbinary/neetoui/Table';
|
|
@@ -34,7 +40,7 @@ import NoData from '@bigbinary/neetoui/NoData';
|
|
|
34
40
|
import '@bigbinary/neeto-commons-frontend/constants';
|
|
35
41
|
import '@tanstack/react-query';
|
|
36
42
|
import 'axios';
|
|
37
|
-
import '
|
|
43
|
+
import 'qs';
|
|
38
44
|
|
|
39
45
|
var MESSAGE_TEMPLATE_INITIAL_STATE = {
|
|
40
46
|
isOpen: false,
|
|
@@ -199,35 +205,6 @@ var buildTableColumnData = function buildTableColumnData(setManageTemplatePane,
|
|
|
199
205
|
}];
|
|
200
206
|
};
|
|
201
207
|
|
|
202
|
-
function _objectWithoutPropertiesLoose(source, excluded) {
|
|
203
|
-
if (source == null) return {};
|
|
204
|
-
var target = {};
|
|
205
|
-
var sourceKeys = Object.keys(source);
|
|
206
|
-
var key, i;
|
|
207
|
-
for (i = 0; i < sourceKeys.length; i++) {
|
|
208
|
-
key = sourceKeys[i];
|
|
209
|
-
if (excluded.indexOf(key) >= 0) continue;
|
|
210
|
-
target[key] = source[key];
|
|
211
|
-
}
|
|
212
|
-
return target;
|
|
213
|
-
}
|
|
214
|
-
|
|
215
|
-
function _objectWithoutProperties(source, excluded) {
|
|
216
|
-
if (source == null) return {};
|
|
217
|
-
var target = _objectWithoutPropertiesLoose(source, excluded);
|
|
218
|
-
var key, i;
|
|
219
|
-
if (Object.getOwnPropertySymbols) {
|
|
220
|
-
var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
|
|
221
|
-
for (i = 0; i < sourceSymbolKeys.length; i++) {
|
|
222
|
-
key = sourceSymbolKeys[i];
|
|
223
|
-
if (excluded.indexOf(key) >= 0) continue;
|
|
224
|
-
if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue;
|
|
225
|
-
target[key] = source[key];
|
|
226
|
-
}
|
|
227
|
-
}
|
|
228
|
-
return target;
|
|
229
|
-
}
|
|
230
|
-
|
|
231
208
|
var _excluded = ["label", "name"];
|
|
232
209
|
function ownKeys$4(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
233
210
|
function _objectSpread$4(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$4(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$4(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
@@ -285,386 +262,6 @@ var PHONE_NUMBER_VALIDATION_SCHEMA = yup.string().test("testPhoneNumber", t("nee
|
|
|
285
262
|
return isPhoneNumberValid(value);
|
|
286
263
|
});
|
|
287
264
|
|
|
288
|
-
function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) {
|
|
289
|
-
try {
|
|
290
|
-
var info = gen[key](arg);
|
|
291
|
-
var value = info.value;
|
|
292
|
-
} catch (error) {
|
|
293
|
-
reject(error);
|
|
294
|
-
return;
|
|
295
|
-
}
|
|
296
|
-
if (info.done) {
|
|
297
|
-
resolve(value);
|
|
298
|
-
} else {
|
|
299
|
-
Promise.resolve(value).then(_next, _throw);
|
|
300
|
-
}
|
|
301
|
-
}
|
|
302
|
-
function _asyncToGenerator(fn) {
|
|
303
|
-
return function () {
|
|
304
|
-
var self = this,
|
|
305
|
-
args = arguments;
|
|
306
|
-
return new Promise(function (resolve, reject) {
|
|
307
|
-
var gen = fn.apply(self, args);
|
|
308
|
-
function _next(value) {
|
|
309
|
-
asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value);
|
|
310
|
-
}
|
|
311
|
-
function _throw(err) {
|
|
312
|
-
asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err);
|
|
313
|
-
}
|
|
314
|
-
_next(undefined);
|
|
315
|
-
});
|
|
316
|
-
};
|
|
317
|
-
}
|
|
318
|
-
|
|
319
|
-
var regeneratorRuntime$1 = {exports: {}};
|
|
320
|
-
|
|
321
|
-
var _typeof = {exports: {}};
|
|
322
|
-
|
|
323
|
-
_typeof.exports;
|
|
324
|
-
|
|
325
|
-
(function (module) {
|
|
326
|
-
function _typeof(o) {
|
|
327
|
-
"@babel/helpers - typeof";
|
|
328
|
-
|
|
329
|
-
return (module.exports = _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) {
|
|
330
|
-
return typeof o;
|
|
331
|
-
} : function (o) {
|
|
332
|
-
return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o;
|
|
333
|
-
}, module.exports.__esModule = true, module.exports["default"] = module.exports), _typeof(o);
|
|
334
|
-
}
|
|
335
|
-
module.exports = _typeof, module.exports.__esModule = true, module.exports["default"] = module.exports;
|
|
336
|
-
} (_typeof));
|
|
337
|
-
|
|
338
|
-
var _typeofExports = _typeof.exports;
|
|
339
|
-
|
|
340
|
-
regeneratorRuntime$1.exports;
|
|
341
|
-
|
|
342
|
-
(function (module) {
|
|
343
|
-
var _typeof = _typeofExports["default"];
|
|
344
|
-
function _regeneratorRuntime() {
|
|
345
|
-
module.exports = _regeneratorRuntime = function _regeneratorRuntime() {
|
|
346
|
-
return e;
|
|
347
|
-
}, module.exports.__esModule = true, module.exports["default"] = module.exports;
|
|
348
|
-
var t,
|
|
349
|
-
e = {},
|
|
350
|
-
r = Object.prototype,
|
|
351
|
-
n = r.hasOwnProperty,
|
|
352
|
-
o = Object.defineProperty || function (t, e, r) {
|
|
353
|
-
t[e] = r.value;
|
|
354
|
-
},
|
|
355
|
-
i = "function" == typeof Symbol ? Symbol : {},
|
|
356
|
-
a = i.iterator || "@@iterator",
|
|
357
|
-
c = i.asyncIterator || "@@asyncIterator",
|
|
358
|
-
u = i.toStringTag || "@@toStringTag";
|
|
359
|
-
function define(t, e, r) {
|
|
360
|
-
return Object.defineProperty(t, e, {
|
|
361
|
-
value: r,
|
|
362
|
-
enumerable: !0,
|
|
363
|
-
configurable: !0,
|
|
364
|
-
writable: !0
|
|
365
|
-
}), t[e];
|
|
366
|
-
}
|
|
367
|
-
try {
|
|
368
|
-
define({}, "");
|
|
369
|
-
} catch (t) {
|
|
370
|
-
define = function define(t, e, r) {
|
|
371
|
-
return t[e] = r;
|
|
372
|
-
};
|
|
373
|
-
}
|
|
374
|
-
function wrap(t, e, r, n) {
|
|
375
|
-
var i = e && e.prototype instanceof Generator ? e : Generator,
|
|
376
|
-
a = Object.create(i.prototype),
|
|
377
|
-
c = new Context(n || []);
|
|
378
|
-
return o(a, "_invoke", {
|
|
379
|
-
value: makeInvokeMethod(t, r, c)
|
|
380
|
-
}), a;
|
|
381
|
-
}
|
|
382
|
-
function tryCatch(t, e, r) {
|
|
383
|
-
try {
|
|
384
|
-
return {
|
|
385
|
-
type: "normal",
|
|
386
|
-
arg: t.call(e, r)
|
|
387
|
-
};
|
|
388
|
-
} catch (t) {
|
|
389
|
-
return {
|
|
390
|
-
type: "throw",
|
|
391
|
-
arg: t
|
|
392
|
-
};
|
|
393
|
-
}
|
|
394
|
-
}
|
|
395
|
-
e.wrap = wrap;
|
|
396
|
-
var h = "suspendedStart",
|
|
397
|
-
l = "suspendedYield",
|
|
398
|
-
f = "executing",
|
|
399
|
-
s = "completed",
|
|
400
|
-
y = {};
|
|
401
|
-
function Generator() {}
|
|
402
|
-
function GeneratorFunction() {}
|
|
403
|
-
function GeneratorFunctionPrototype() {}
|
|
404
|
-
var p = {};
|
|
405
|
-
define(p, a, function () {
|
|
406
|
-
return this;
|
|
407
|
-
});
|
|
408
|
-
var d = Object.getPrototypeOf,
|
|
409
|
-
v = d && d(d(values([])));
|
|
410
|
-
v && v !== r && n.call(v, a) && (p = v);
|
|
411
|
-
var g = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(p);
|
|
412
|
-
function defineIteratorMethods(t) {
|
|
413
|
-
["next", "throw", "return"].forEach(function (e) {
|
|
414
|
-
define(t, e, function (t) {
|
|
415
|
-
return this._invoke(e, t);
|
|
416
|
-
});
|
|
417
|
-
});
|
|
418
|
-
}
|
|
419
|
-
function AsyncIterator(t, e) {
|
|
420
|
-
function invoke(r, o, i, a) {
|
|
421
|
-
var c = tryCatch(t[r], t, o);
|
|
422
|
-
if ("throw" !== c.type) {
|
|
423
|
-
var u = c.arg,
|
|
424
|
-
h = u.value;
|
|
425
|
-
return h && "object" == _typeof(h) && n.call(h, "__await") ? e.resolve(h.__await).then(function (t) {
|
|
426
|
-
invoke("next", t, i, a);
|
|
427
|
-
}, function (t) {
|
|
428
|
-
invoke("throw", t, i, a);
|
|
429
|
-
}) : e.resolve(h).then(function (t) {
|
|
430
|
-
u.value = t, i(u);
|
|
431
|
-
}, function (t) {
|
|
432
|
-
return invoke("throw", t, i, a);
|
|
433
|
-
});
|
|
434
|
-
}
|
|
435
|
-
a(c.arg);
|
|
436
|
-
}
|
|
437
|
-
var r;
|
|
438
|
-
o(this, "_invoke", {
|
|
439
|
-
value: function value(t, n) {
|
|
440
|
-
function callInvokeWithMethodAndArg() {
|
|
441
|
-
return new e(function (e, r) {
|
|
442
|
-
invoke(t, n, e, r);
|
|
443
|
-
});
|
|
444
|
-
}
|
|
445
|
-
return r = r ? r.then(callInvokeWithMethodAndArg, callInvokeWithMethodAndArg) : callInvokeWithMethodAndArg();
|
|
446
|
-
}
|
|
447
|
-
});
|
|
448
|
-
}
|
|
449
|
-
function makeInvokeMethod(e, r, n) {
|
|
450
|
-
var o = h;
|
|
451
|
-
return function (i, a) {
|
|
452
|
-
if (o === f) throw new Error("Generator is already running");
|
|
453
|
-
if (o === s) {
|
|
454
|
-
if ("throw" === i) throw a;
|
|
455
|
-
return {
|
|
456
|
-
value: t,
|
|
457
|
-
done: !0
|
|
458
|
-
};
|
|
459
|
-
}
|
|
460
|
-
for (n.method = i, n.arg = a;;) {
|
|
461
|
-
var c = n.delegate;
|
|
462
|
-
if (c) {
|
|
463
|
-
var u = maybeInvokeDelegate(c, n);
|
|
464
|
-
if (u) {
|
|
465
|
-
if (u === y) continue;
|
|
466
|
-
return u;
|
|
467
|
-
}
|
|
468
|
-
}
|
|
469
|
-
if ("next" === n.method) n.sent = n._sent = n.arg;else if ("throw" === n.method) {
|
|
470
|
-
if (o === h) throw o = s, n.arg;
|
|
471
|
-
n.dispatchException(n.arg);
|
|
472
|
-
} else "return" === n.method && n.abrupt("return", n.arg);
|
|
473
|
-
o = f;
|
|
474
|
-
var p = tryCatch(e, r, n);
|
|
475
|
-
if ("normal" === p.type) {
|
|
476
|
-
if (o = n.done ? s : l, p.arg === y) continue;
|
|
477
|
-
return {
|
|
478
|
-
value: p.arg,
|
|
479
|
-
done: n.done
|
|
480
|
-
};
|
|
481
|
-
}
|
|
482
|
-
"throw" === p.type && (o = s, n.method = "throw", n.arg = p.arg);
|
|
483
|
-
}
|
|
484
|
-
};
|
|
485
|
-
}
|
|
486
|
-
function maybeInvokeDelegate(e, r) {
|
|
487
|
-
var n = r.method,
|
|
488
|
-
o = e.iterator[n];
|
|
489
|
-
if (o === t) return r.delegate = null, "throw" === n && e.iterator["return"] && (r.method = "return", r.arg = t, maybeInvokeDelegate(e, r), "throw" === r.method) || "return" !== n && (r.method = "throw", r.arg = new TypeError("The iterator does not provide a '" + n + "' method")), y;
|
|
490
|
-
var i = tryCatch(o, e.iterator, r.arg);
|
|
491
|
-
if ("throw" === i.type) return r.method = "throw", r.arg = i.arg, r.delegate = null, y;
|
|
492
|
-
var a = i.arg;
|
|
493
|
-
return a ? a.done ? (r[e.resultName] = a.value, r.next = e.nextLoc, "return" !== r.method && (r.method = "next", r.arg = t), r.delegate = null, y) : a : (r.method = "throw", r.arg = new TypeError("iterator result is not an object"), r.delegate = null, y);
|
|
494
|
-
}
|
|
495
|
-
function pushTryEntry(t) {
|
|
496
|
-
var e = {
|
|
497
|
-
tryLoc: t[0]
|
|
498
|
-
};
|
|
499
|
-
1 in t && (e.catchLoc = t[1]), 2 in t && (e.finallyLoc = t[2], e.afterLoc = t[3]), this.tryEntries.push(e);
|
|
500
|
-
}
|
|
501
|
-
function resetTryEntry(t) {
|
|
502
|
-
var e = t.completion || {};
|
|
503
|
-
e.type = "normal", delete e.arg, t.completion = e;
|
|
504
|
-
}
|
|
505
|
-
function Context(t) {
|
|
506
|
-
this.tryEntries = [{
|
|
507
|
-
tryLoc: "root"
|
|
508
|
-
}], t.forEach(pushTryEntry, this), this.reset(!0);
|
|
509
|
-
}
|
|
510
|
-
function values(e) {
|
|
511
|
-
if (e || "" === e) {
|
|
512
|
-
var r = e[a];
|
|
513
|
-
if (r) return r.call(e);
|
|
514
|
-
if ("function" == typeof e.next) return e;
|
|
515
|
-
if (!isNaN(e.length)) {
|
|
516
|
-
var o = -1,
|
|
517
|
-
i = function next() {
|
|
518
|
-
for (; ++o < e.length;) if (n.call(e, o)) return next.value = e[o], next.done = !1, next;
|
|
519
|
-
return next.value = t, next.done = !0, next;
|
|
520
|
-
};
|
|
521
|
-
return i.next = i;
|
|
522
|
-
}
|
|
523
|
-
}
|
|
524
|
-
throw new TypeError(_typeof(e) + " is not iterable");
|
|
525
|
-
}
|
|
526
|
-
return GeneratorFunction.prototype = GeneratorFunctionPrototype, o(g, "constructor", {
|
|
527
|
-
value: GeneratorFunctionPrototype,
|
|
528
|
-
configurable: !0
|
|
529
|
-
}), o(GeneratorFunctionPrototype, "constructor", {
|
|
530
|
-
value: GeneratorFunction,
|
|
531
|
-
configurable: !0
|
|
532
|
-
}), GeneratorFunction.displayName = define(GeneratorFunctionPrototype, u, "GeneratorFunction"), e.isGeneratorFunction = function (t) {
|
|
533
|
-
var e = "function" == typeof t && t.constructor;
|
|
534
|
-
return !!e && (e === GeneratorFunction || "GeneratorFunction" === (e.displayName || e.name));
|
|
535
|
-
}, e.mark = function (t) {
|
|
536
|
-
return Object.setPrototypeOf ? Object.setPrototypeOf(t, GeneratorFunctionPrototype) : (t.__proto__ = GeneratorFunctionPrototype, define(t, u, "GeneratorFunction")), t.prototype = Object.create(g), t;
|
|
537
|
-
}, e.awrap = function (t) {
|
|
538
|
-
return {
|
|
539
|
-
__await: t
|
|
540
|
-
};
|
|
541
|
-
}, defineIteratorMethods(AsyncIterator.prototype), define(AsyncIterator.prototype, c, function () {
|
|
542
|
-
return this;
|
|
543
|
-
}), e.AsyncIterator = AsyncIterator, e.async = function (t, r, n, o, i) {
|
|
544
|
-
void 0 === i && (i = Promise);
|
|
545
|
-
var a = new AsyncIterator(wrap(t, r, n, o), i);
|
|
546
|
-
return e.isGeneratorFunction(r) ? a : a.next().then(function (t) {
|
|
547
|
-
return t.done ? t.value : a.next();
|
|
548
|
-
});
|
|
549
|
-
}, defineIteratorMethods(g), define(g, u, "Generator"), define(g, a, function () {
|
|
550
|
-
return this;
|
|
551
|
-
}), define(g, "toString", function () {
|
|
552
|
-
return "[object Generator]";
|
|
553
|
-
}), e.keys = function (t) {
|
|
554
|
-
var e = Object(t),
|
|
555
|
-
r = [];
|
|
556
|
-
for (var n in e) r.push(n);
|
|
557
|
-
return r.reverse(), function next() {
|
|
558
|
-
for (; r.length;) {
|
|
559
|
-
var t = r.pop();
|
|
560
|
-
if (t in e) return next.value = t, next.done = !1, next;
|
|
561
|
-
}
|
|
562
|
-
return next.done = !0, next;
|
|
563
|
-
};
|
|
564
|
-
}, e.values = values, Context.prototype = {
|
|
565
|
-
constructor: Context,
|
|
566
|
-
reset: function reset(e) {
|
|
567
|
-
if (this.prev = 0, this.next = 0, this.sent = this._sent = t, this.done = !1, this.delegate = null, this.method = "next", this.arg = t, this.tryEntries.forEach(resetTryEntry), !e) for (var r in this) "t" === r.charAt(0) && n.call(this, r) && !isNaN(+r.slice(1)) && (this[r] = t);
|
|
568
|
-
},
|
|
569
|
-
stop: function stop() {
|
|
570
|
-
this.done = !0;
|
|
571
|
-
var t = this.tryEntries[0].completion;
|
|
572
|
-
if ("throw" === t.type) throw t.arg;
|
|
573
|
-
return this.rval;
|
|
574
|
-
},
|
|
575
|
-
dispatchException: function dispatchException(e) {
|
|
576
|
-
if (this.done) throw e;
|
|
577
|
-
var r = this;
|
|
578
|
-
function handle(n, o) {
|
|
579
|
-
return a.type = "throw", a.arg = e, r.next = n, o && (r.method = "next", r.arg = t), !!o;
|
|
580
|
-
}
|
|
581
|
-
for (var o = this.tryEntries.length - 1; o >= 0; --o) {
|
|
582
|
-
var i = this.tryEntries[o],
|
|
583
|
-
a = i.completion;
|
|
584
|
-
if ("root" === i.tryLoc) return handle("end");
|
|
585
|
-
if (i.tryLoc <= this.prev) {
|
|
586
|
-
var c = n.call(i, "catchLoc"),
|
|
587
|
-
u = n.call(i, "finallyLoc");
|
|
588
|
-
if (c && u) {
|
|
589
|
-
if (this.prev < i.catchLoc) return handle(i.catchLoc, !0);
|
|
590
|
-
if (this.prev < i.finallyLoc) return handle(i.finallyLoc);
|
|
591
|
-
} else if (c) {
|
|
592
|
-
if (this.prev < i.catchLoc) return handle(i.catchLoc, !0);
|
|
593
|
-
} else {
|
|
594
|
-
if (!u) throw new Error("try statement without catch or finally");
|
|
595
|
-
if (this.prev < i.finallyLoc) return handle(i.finallyLoc);
|
|
596
|
-
}
|
|
597
|
-
}
|
|
598
|
-
}
|
|
599
|
-
},
|
|
600
|
-
abrupt: function abrupt(t, e) {
|
|
601
|
-
for (var r = this.tryEntries.length - 1; r >= 0; --r) {
|
|
602
|
-
var o = this.tryEntries[r];
|
|
603
|
-
if (o.tryLoc <= this.prev && n.call(o, "finallyLoc") && this.prev < o.finallyLoc) {
|
|
604
|
-
var i = o;
|
|
605
|
-
break;
|
|
606
|
-
}
|
|
607
|
-
}
|
|
608
|
-
i && ("break" === t || "continue" === t) && i.tryLoc <= e && e <= i.finallyLoc && (i = null);
|
|
609
|
-
var a = i ? i.completion : {};
|
|
610
|
-
return a.type = t, a.arg = e, i ? (this.method = "next", this.next = i.finallyLoc, y) : this.complete(a);
|
|
611
|
-
},
|
|
612
|
-
complete: function complete(t, e) {
|
|
613
|
-
if ("throw" === t.type) throw t.arg;
|
|
614
|
-
return "break" === t.type || "continue" === t.type ? this.next = t.arg : "return" === t.type ? (this.rval = this.arg = t.arg, this.method = "return", this.next = "end") : "normal" === t.type && e && (this.next = e), y;
|
|
615
|
-
},
|
|
616
|
-
finish: function finish(t) {
|
|
617
|
-
for (var e = this.tryEntries.length - 1; e >= 0; --e) {
|
|
618
|
-
var r = this.tryEntries[e];
|
|
619
|
-
if (r.finallyLoc === t) return this.complete(r.completion, r.afterLoc), resetTryEntry(r), y;
|
|
620
|
-
}
|
|
621
|
-
},
|
|
622
|
-
"catch": function _catch(t) {
|
|
623
|
-
for (var e = this.tryEntries.length - 1; e >= 0; --e) {
|
|
624
|
-
var r = this.tryEntries[e];
|
|
625
|
-
if (r.tryLoc === t) {
|
|
626
|
-
var n = r.completion;
|
|
627
|
-
if ("throw" === n.type) {
|
|
628
|
-
var o = n.arg;
|
|
629
|
-
resetTryEntry(r);
|
|
630
|
-
}
|
|
631
|
-
return o;
|
|
632
|
-
}
|
|
633
|
-
}
|
|
634
|
-
throw new Error("illegal catch attempt");
|
|
635
|
-
},
|
|
636
|
-
delegateYield: function delegateYield(e, r, n) {
|
|
637
|
-
return this.delegate = {
|
|
638
|
-
iterator: values(e),
|
|
639
|
-
resultName: r,
|
|
640
|
-
nextLoc: n
|
|
641
|
-
}, "next" === this.method && (this.arg = t), y;
|
|
642
|
-
}
|
|
643
|
-
}, e;
|
|
644
|
-
}
|
|
645
|
-
module.exports = _regeneratorRuntime, module.exports.__esModule = true, module.exports["default"] = module.exports;
|
|
646
|
-
} (regeneratorRuntime$1));
|
|
647
|
-
|
|
648
|
-
var regeneratorRuntimeExports = regeneratorRuntime$1.exports;
|
|
649
|
-
|
|
650
|
-
// TODO(Babel 8): Remove this file.
|
|
651
|
-
|
|
652
|
-
var runtime = regeneratorRuntimeExports();
|
|
653
|
-
var regenerator = runtime;
|
|
654
|
-
|
|
655
|
-
// Copied from https://github.com/facebook/regenerator/blob/main/packages/runtime/runtime.js#L736=
|
|
656
|
-
try {
|
|
657
|
-
regeneratorRuntime = runtime;
|
|
658
|
-
} catch (accidentalStrictMode) {
|
|
659
|
-
if (typeof globalThis === "object") {
|
|
660
|
-
globalThis.regeneratorRuntime = runtime;
|
|
661
|
-
} else {
|
|
662
|
-
Function("r", "regeneratorRuntime = r")(runtime);
|
|
663
|
-
}
|
|
664
|
-
}
|
|
665
|
-
|
|
666
|
-
var _regeneratorRuntime = /*@__PURE__*/getDefaultExportFromCjs(regenerator);
|
|
667
|
-
|
|
668
265
|
function ownKeys$3(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
669
266
|
function _objectSpread$3(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$3(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$3(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
670
267
|
var TestMessage = function TestMessage(_ref) {
|
|
@@ -683,7 +280,7 @@ var TestMessage = function TestMessage(_ref) {
|
|
|
683
280
|
var _useTranslation = useTranslation(),
|
|
684
281
|
t = _useTranslation.t;
|
|
685
282
|
var handleTestValidation = /*#__PURE__*/function () {
|
|
686
|
-
var _ref2 = _asyncToGenerator(
|
|
283
|
+
var _ref2 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee(event) {
|
|
687
284
|
var value;
|
|
688
285
|
return _regeneratorRuntime.wrap(function _callee$(_context) {
|
|
689
286
|
while (1) switch (_context.prev = _context.next) {
|
|
@@ -1166,7 +763,7 @@ var MessageTemplates = function MessageTemplates(_ref) {
|
|
|
1166
763
|
});
|
|
1167
764
|
}, [value]);
|
|
1168
765
|
var shouldShowTemplatesCount = !isLoading && (isFilterApplied || templatesCount > 0);
|
|
1169
|
-
var helpDocUrl = (helpPopoverProps === null || helpPopoverProps === void 0
|
|
766
|
+
var helpDocUrl = (helpPopoverProps === null || helpPopoverProps === void 0 ? void 0 : (_helpPopoverProps$hel = helpPopoverProps.helpLinkProps) === null || _helpPopoverProps$hel === void 0 ? void 0 : _helpPopoverProps$hel.href) || "";
|
|
1170
767
|
return /*#__PURE__*/jsxs(Container, {
|
|
1171
768
|
children: [/*#__PURE__*/jsx(NeetoHeader, {
|
|
1172
769
|
breadcrumbs: breadcrumbs,
|
|
@@ -1205,7 +802,7 @@ var MessageTemplates = function MessageTemplates(_ref) {
|
|
|
1205
802
|
onChange: handleChange
|
|
1206
803
|
}
|
|
1207
804
|
})
|
|
1208
|
-
}), /*#__PURE__*/jsx(
|
|
805
|
+
}), /*#__PURE__*/jsx(FiltersBar, {
|
|
1209
806
|
columns: filterColumns,
|
|
1210
807
|
keyword: searchKeywordProps,
|
|
1211
808
|
setIsPaneOpen: setIsFilterPaneOpen,
|