@bigbinary/neeto-message-templates-frontend 1.3.0 → 1.3.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (53) hide show
  1. package/dist/ApiTemplates.js +17 -12
  2. package/dist/ApiTemplates.js.map +1 -1
  3. package/dist/MessageTemplates.js +19 -391
  4. package/dist/MessageTemplates.js.map +1 -1
  5. package/dist/SendMessagePane.js +8 -6
  6. package/dist/SendMessagePane.js.map +1 -1
  7. package/dist/SendToApiPane.js +9 -8
  8. package/dist/SendToApiPane.js.map +1 -1
  9. package/dist/cjs/ApiTemplates.js +49 -62
  10. package/dist/cjs/ApiTemplates.js.map +1 -1
  11. package/dist/cjs/MessageTemplates.js +63 -455
  12. package/dist/cjs/MessageTemplates.js.map +1 -1
  13. package/dist/cjs/SendMessagePane.js +36 -48
  14. package/dist/cjs/SendMessagePane.js.map +1 -1
  15. package/dist/cjs/SendToApiPane.js +23 -32
  16. package/dist/cjs/SendToApiPane.js.map +1 -1
  17. package/dist/cjs/index.js +19 -16
  18. package/dist/cjs/index.js.map +1 -1
  19. package/dist/constants-CqiptWxr.js +49 -0
  20. package/dist/constants-CqiptWxr.js.map +1 -0
  21. package/dist/constants-D4v0xTUu.js +44 -0
  22. package/dist/constants-D4v0xTUu.js.map +1 -0
  23. package/dist/index.js +19 -14
  24. package/dist/index.js.map +1 -1
  25. package/dist/useTemplatesApi-CSsaKyRi.js +110 -0
  26. package/dist/useTemplatesApi-CSsaKyRi.js.map +1 -0
  27. package/dist/useTemplatesApi-D63swqeh.js +105 -0
  28. package/dist/useTemplatesApi-D63swqeh.js.map +1 -0
  29. package/dist/{utils-b93467c8.js → utils-BUob2F8X.js} +1 -1
  30. package/dist/{utils-90248b52.js.map → utils-BUob2F8X.js.map} +1 -1
  31. package/dist/{utils-733df41c.js → utils-CdkVjz8p.js} +3 -3
  32. package/dist/{utils-733df41c.js.map → utils-CdkVjz8p.js.map} +1 -1
  33. package/dist/{utils-900aa952.js → utils-DCNzEjAw.js} +10 -18
  34. package/dist/{utils-900aa952.js.map → utils-DCNzEjAw.js.map} +1 -1
  35. package/dist/{utils-90248b52.js → utils-aj-r79qQ.js} +10 -17
  36. package/dist/{utils-b93467c8.js.map → utils-aj-r79qQ.js.map} +1 -1
  37. package/package.json +122 -98
  38. package/dist/constants-237a4b54.js +0 -107
  39. package/dist/constants-237a4b54.js.map +0 -1
  40. package/dist/constants-73e7bb3b.js +0 -99
  41. package/dist/constants-73e7bb3b.js.map +0 -1
  42. package/dist/objectWithoutProperties-2fed2d7d.js +0 -33
  43. package/dist/objectWithoutProperties-2fed2d7d.js.map +0 -1
  44. package/dist/objectWithoutProperties-a0edb288.js +0 -31
  45. package/dist/objectWithoutProperties-a0edb288.js.map +0 -1
  46. package/dist/toConsumableArray-62a645c0.js +0 -22
  47. package/dist/toConsumableArray-62a645c0.js.map +0 -1
  48. package/dist/toConsumableArray-dd34dc19.js +0 -20
  49. package/dist/toConsumableArray-dd34dc19.js.map +0 -1
  50. package/dist/useTemplatesApi-983b3584.js +0 -2199
  51. package/dist/useTemplatesApi-983b3584.js.map +0 -1
  52. package/dist/useTemplatesApi-d8923769.js +0 -2211
  53. package/dist/useTemplatesApi-d8923769.js.map +0 -1
@@ -1,18 +1,20 @@
1
- import { u as useUpdateTemplate, _ as _defineProperty, g as getDefaultExportFromCjs, a as useFetchTemplates, b as useCreateTemplate, c as useDeleteTemplate } from './useTemplatesApi-983b3584.js';
2
- import { _ as _slicedToArray, D as DEFAULT_EDITOR_ROW_COUNT, a as DEFAULT_PAGE_PROPERTIES, M as MESSAGE_TEMPLATES, b as MESSAGE_TYPES } from './constants-73e7bb3b.js';
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 { buildFiltersFromURL, Bar } from '@bigbinary/neeto-filters-frontend';
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';
9
9
  import SubHeader from '@bigbinary/neeto-molecules/SubHeader';
10
10
  import Button from '@bigbinary/neetoui/Button';
11
11
  import Typography from '@bigbinary/neetoui/Typography';
12
- import { equals, prop, includes, pick, omit, isEmpty, assoc } from 'ramda';
12
+ import { equals, prop, includes, pick, omit, mergeLeft, 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,21 +23,24 @@ 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';
24
- import { _ as _objectWithoutProperties } from './objectWithoutProperties-a0edb288.js';
26
+ import _objectWithoutProperties from '@babel/runtime/helpers/objectWithoutProperties';
25
27
  import { useFormikContext } from 'formik';
26
28
  import Textarea from '@bigbinary/neetoui/formik/Textarea';
27
29
  import 'stylesheets/application.scss';
28
30
  import { isPhoneNumberValid } from '@bigbinary/neeto-molecules/PhoneNumber';
29
31
  import * as yup from 'yup';
30
- import { _ as _toConsumableArray } from './toConsumableArray-dd34dc19.js';
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';
31
36
  import TableWrapper from '@bigbinary/neeto-molecules/TableWrapper';
32
37
  import Alert from '@bigbinary/neetoui/Alert';
33
38
  import Table from '@bigbinary/neetoui/Table';
34
39
  import NoData from '@bigbinary/neetoui/NoData';
40
+ import '@bigbinary/neeto-commons-frontend/constants';
35
41
  import '@tanstack/react-query';
36
42
  import 'axios';
37
- import 'util';
38
- import '@bigbinary/neeto-commons-frontend/constants';
43
+ import 'qs';
39
44
 
40
45
  var MESSAGE_TEMPLATE_INITIAL_STATE = {
41
46
  isOpen: false,
@@ -257,386 +262,6 @@ var PHONE_NUMBER_VALIDATION_SCHEMA = yup.string().test("testPhoneNumber", t("nee
257
262
  return isPhoneNumberValid(value);
258
263
  });
259
264
 
260
- function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) {
261
- try {
262
- var info = gen[key](arg);
263
- var value = info.value;
264
- } catch (error) {
265
- reject(error);
266
- return;
267
- }
268
- if (info.done) {
269
- resolve(value);
270
- } else {
271
- Promise.resolve(value).then(_next, _throw);
272
- }
273
- }
274
- function _asyncToGenerator(fn) {
275
- return function () {
276
- var self = this,
277
- args = arguments;
278
- return new Promise(function (resolve, reject) {
279
- var gen = fn.apply(self, args);
280
- function _next(value) {
281
- asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value);
282
- }
283
- function _throw(err) {
284
- asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err);
285
- }
286
- _next(undefined);
287
- });
288
- };
289
- }
290
-
291
- var regeneratorRuntime$1 = {exports: {}};
292
-
293
- var _typeof = {exports: {}};
294
-
295
- _typeof.exports;
296
-
297
- (function (module) {
298
- function _typeof(o) {
299
- "@babel/helpers - typeof";
300
-
301
- return (module.exports = _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) {
302
- return typeof o;
303
- } : function (o) {
304
- return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o;
305
- }, module.exports.__esModule = true, module.exports["default"] = module.exports), _typeof(o);
306
- }
307
- module.exports = _typeof, module.exports.__esModule = true, module.exports["default"] = module.exports;
308
- } (_typeof));
309
-
310
- var _typeofExports = _typeof.exports;
311
-
312
- regeneratorRuntime$1.exports;
313
-
314
- (function (module) {
315
- var _typeof = _typeofExports["default"];
316
- function _regeneratorRuntime() {
317
- module.exports = _regeneratorRuntime = function _regeneratorRuntime() {
318
- return e;
319
- }, module.exports.__esModule = true, module.exports["default"] = module.exports;
320
- var t,
321
- e = {},
322
- r = Object.prototype,
323
- n = r.hasOwnProperty,
324
- o = Object.defineProperty || function (t, e, r) {
325
- t[e] = r.value;
326
- },
327
- i = "function" == typeof Symbol ? Symbol : {},
328
- a = i.iterator || "@@iterator",
329
- c = i.asyncIterator || "@@asyncIterator",
330
- u = i.toStringTag || "@@toStringTag";
331
- function define(t, e, r) {
332
- return Object.defineProperty(t, e, {
333
- value: r,
334
- enumerable: !0,
335
- configurable: !0,
336
- writable: !0
337
- }), t[e];
338
- }
339
- try {
340
- define({}, "");
341
- } catch (t) {
342
- define = function define(t, e, r) {
343
- return t[e] = r;
344
- };
345
- }
346
- function wrap(t, e, r, n) {
347
- var i = e && e.prototype instanceof Generator ? e : Generator,
348
- a = Object.create(i.prototype),
349
- c = new Context(n || []);
350
- return o(a, "_invoke", {
351
- value: makeInvokeMethod(t, r, c)
352
- }), a;
353
- }
354
- function tryCatch(t, e, r) {
355
- try {
356
- return {
357
- type: "normal",
358
- arg: t.call(e, r)
359
- };
360
- } catch (t) {
361
- return {
362
- type: "throw",
363
- arg: t
364
- };
365
- }
366
- }
367
- e.wrap = wrap;
368
- var h = "suspendedStart",
369
- l = "suspendedYield",
370
- f = "executing",
371
- s = "completed",
372
- y = {};
373
- function Generator() {}
374
- function GeneratorFunction() {}
375
- function GeneratorFunctionPrototype() {}
376
- var p = {};
377
- define(p, a, function () {
378
- return this;
379
- });
380
- var d = Object.getPrototypeOf,
381
- v = d && d(d(values([])));
382
- v && v !== r && n.call(v, a) && (p = v);
383
- var g = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(p);
384
- function defineIteratorMethods(t) {
385
- ["next", "throw", "return"].forEach(function (e) {
386
- define(t, e, function (t) {
387
- return this._invoke(e, t);
388
- });
389
- });
390
- }
391
- function AsyncIterator(t, e) {
392
- function invoke(r, o, i, a) {
393
- var c = tryCatch(t[r], t, o);
394
- if ("throw" !== c.type) {
395
- var u = c.arg,
396
- h = u.value;
397
- return h && "object" == _typeof(h) && n.call(h, "__await") ? e.resolve(h.__await).then(function (t) {
398
- invoke("next", t, i, a);
399
- }, function (t) {
400
- invoke("throw", t, i, a);
401
- }) : e.resolve(h).then(function (t) {
402
- u.value = t, i(u);
403
- }, function (t) {
404
- return invoke("throw", t, i, a);
405
- });
406
- }
407
- a(c.arg);
408
- }
409
- var r;
410
- o(this, "_invoke", {
411
- value: function value(t, n) {
412
- function callInvokeWithMethodAndArg() {
413
- return new e(function (e, r) {
414
- invoke(t, n, e, r);
415
- });
416
- }
417
- return r = r ? r.then(callInvokeWithMethodAndArg, callInvokeWithMethodAndArg) : callInvokeWithMethodAndArg();
418
- }
419
- });
420
- }
421
- function makeInvokeMethod(e, r, n) {
422
- var o = h;
423
- return function (i, a) {
424
- if (o === f) throw new Error("Generator is already running");
425
- if (o === s) {
426
- if ("throw" === i) throw a;
427
- return {
428
- value: t,
429
- done: !0
430
- };
431
- }
432
- for (n.method = i, n.arg = a;;) {
433
- var c = n.delegate;
434
- if (c) {
435
- var u = maybeInvokeDelegate(c, n);
436
- if (u) {
437
- if (u === y) continue;
438
- return u;
439
- }
440
- }
441
- if ("next" === n.method) n.sent = n._sent = n.arg;else if ("throw" === n.method) {
442
- if (o === h) throw o = s, n.arg;
443
- n.dispatchException(n.arg);
444
- } else "return" === n.method && n.abrupt("return", n.arg);
445
- o = f;
446
- var p = tryCatch(e, r, n);
447
- if ("normal" === p.type) {
448
- if (o = n.done ? s : l, p.arg === y) continue;
449
- return {
450
- value: p.arg,
451
- done: n.done
452
- };
453
- }
454
- "throw" === p.type && (o = s, n.method = "throw", n.arg = p.arg);
455
- }
456
- };
457
- }
458
- function maybeInvokeDelegate(e, r) {
459
- var n = r.method,
460
- o = e.iterator[n];
461
- 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;
462
- var i = tryCatch(o, e.iterator, r.arg);
463
- if ("throw" === i.type) return r.method = "throw", r.arg = i.arg, r.delegate = null, y;
464
- var a = i.arg;
465
- 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);
466
- }
467
- function pushTryEntry(t) {
468
- var e = {
469
- tryLoc: t[0]
470
- };
471
- 1 in t && (e.catchLoc = t[1]), 2 in t && (e.finallyLoc = t[2], e.afterLoc = t[3]), this.tryEntries.push(e);
472
- }
473
- function resetTryEntry(t) {
474
- var e = t.completion || {};
475
- e.type = "normal", delete e.arg, t.completion = e;
476
- }
477
- function Context(t) {
478
- this.tryEntries = [{
479
- tryLoc: "root"
480
- }], t.forEach(pushTryEntry, this), this.reset(!0);
481
- }
482
- function values(e) {
483
- if (e || "" === e) {
484
- var r = e[a];
485
- if (r) return r.call(e);
486
- if ("function" == typeof e.next) return e;
487
- if (!isNaN(e.length)) {
488
- var o = -1,
489
- i = function next() {
490
- for (; ++o < e.length;) if (n.call(e, o)) return next.value = e[o], next.done = !1, next;
491
- return next.value = t, next.done = !0, next;
492
- };
493
- return i.next = i;
494
- }
495
- }
496
- throw new TypeError(_typeof(e) + " is not iterable");
497
- }
498
- return GeneratorFunction.prototype = GeneratorFunctionPrototype, o(g, "constructor", {
499
- value: GeneratorFunctionPrototype,
500
- configurable: !0
501
- }), o(GeneratorFunctionPrototype, "constructor", {
502
- value: GeneratorFunction,
503
- configurable: !0
504
- }), GeneratorFunction.displayName = define(GeneratorFunctionPrototype, u, "GeneratorFunction"), e.isGeneratorFunction = function (t) {
505
- var e = "function" == typeof t && t.constructor;
506
- return !!e && (e === GeneratorFunction || "GeneratorFunction" === (e.displayName || e.name));
507
- }, e.mark = function (t) {
508
- return Object.setPrototypeOf ? Object.setPrototypeOf(t, GeneratorFunctionPrototype) : (t.__proto__ = GeneratorFunctionPrototype, define(t, u, "GeneratorFunction")), t.prototype = Object.create(g), t;
509
- }, e.awrap = function (t) {
510
- return {
511
- __await: t
512
- };
513
- }, defineIteratorMethods(AsyncIterator.prototype), define(AsyncIterator.prototype, c, function () {
514
- return this;
515
- }), e.AsyncIterator = AsyncIterator, e.async = function (t, r, n, o, i) {
516
- void 0 === i && (i = Promise);
517
- var a = new AsyncIterator(wrap(t, r, n, o), i);
518
- return e.isGeneratorFunction(r) ? a : a.next().then(function (t) {
519
- return t.done ? t.value : a.next();
520
- });
521
- }, defineIteratorMethods(g), define(g, u, "Generator"), define(g, a, function () {
522
- return this;
523
- }), define(g, "toString", function () {
524
- return "[object Generator]";
525
- }), e.keys = function (t) {
526
- var e = Object(t),
527
- r = [];
528
- for (var n in e) r.push(n);
529
- return r.reverse(), function next() {
530
- for (; r.length;) {
531
- var t = r.pop();
532
- if (t in e) return next.value = t, next.done = !1, next;
533
- }
534
- return next.done = !0, next;
535
- };
536
- }, e.values = values, Context.prototype = {
537
- constructor: Context,
538
- reset: function reset(e) {
539
- 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);
540
- },
541
- stop: function stop() {
542
- this.done = !0;
543
- var t = this.tryEntries[0].completion;
544
- if ("throw" === t.type) throw t.arg;
545
- return this.rval;
546
- },
547
- dispatchException: function dispatchException(e) {
548
- if (this.done) throw e;
549
- var r = this;
550
- function handle(n, o) {
551
- return a.type = "throw", a.arg = e, r.next = n, o && (r.method = "next", r.arg = t), !!o;
552
- }
553
- for (var o = this.tryEntries.length - 1; o >= 0; --o) {
554
- var i = this.tryEntries[o],
555
- a = i.completion;
556
- if ("root" === i.tryLoc) return handle("end");
557
- if (i.tryLoc <= this.prev) {
558
- var c = n.call(i, "catchLoc"),
559
- u = n.call(i, "finallyLoc");
560
- if (c && u) {
561
- if (this.prev < i.catchLoc) return handle(i.catchLoc, !0);
562
- if (this.prev < i.finallyLoc) return handle(i.finallyLoc);
563
- } else if (c) {
564
- if (this.prev < i.catchLoc) return handle(i.catchLoc, !0);
565
- } else {
566
- if (!u) throw new Error("try statement without catch or finally");
567
- if (this.prev < i.finallyLoc) return handle(i.finallyLoc);
568
- }
569
- }
570
- }
571
- },
572
- abrupt: function abrupt(t, e) {
573
- for (var r = this.tryEntries.length - 1; r >= 0; --r) {
574
- var o = this.tryEntries[r];
575
- if (o.tryLoc <= this.prev && n.call(o, "finallyLoc") && this.prev < o.finallyLoc) {
576
- var i = o;
577
- break;
578
- }
579
- }
580
- i && ("break" === t || "continue" === t) && i.tryLoc <= e && e <= i.finallyLoc && (i = null);
581
- var a = i ? i.completion : {};
582
- return a.type = t, a.arg = e, i ? (this.method = "next", this.next = i.finallyLoc, y) : this.complete(a);
583
- },
584
- complete: function complete(t, e) {
585
- if ("throw" === t.type) throw t.arg;
586
- 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;
587
- },
588
- finish: function finish(t) {
589
- for (var e = this.tryEntries.length - 1; e >= 0; --e) {
590
- var r = this.tryEntries[e];
591
- if (r.finallyLoc === t) return this.complete(r.completion, r.afterLoc), resetTryEntry(r), y;
592
- }
593
- },
594
- "catch": function _catch(t) {
595
- for (var e = this.tryEntries.length - 1; e >= 0; --e) {
596
- var r = this.tryEntries[e];
597
- if (r.tryLoc === t) {
598
- var n = r.completion;
599
- if ("throw" === n.type) {
600
- var o = n.arg;
601
- resetTryEntry(r);
602
- }
603
- return o;
604
- }
605
- }
606
- throw new Error("illegal catch attempt");
607
- },
608
- delegateYield: function delegateYield(e, r, n) {
609
- return this.delegate = {
610
- iterator: values(e),
611
- resultName: r,
612
- nextLoc: n
613
- }, "next" === this.method && (this.arg = t), y;
614
- }
615
- }, e;
616
- }
617
- module.exports = _regeneratorRuntime, module.exports.__esModule = true, module.exports["default"] = module.exports;
618
- } (regeneratorRuntime$1));
619
-
620
- var regeneratorRuntimeExports = regeneratorRuntime$1.exports;
621
-
622
- // TODO(Babel 8): Remove this file.
623
-
624
- var runtime = regeneratorRuntimeExports();
625
- var regenerator = runtime;
626
-
627
- // Copied from https://github.com/facebook/regenerator/blob/main/packages/runtime/runtime.js#L736=
628
- try {
629
- regeneratorRuntime = runtime;
630
- } catch (accidentalStrictMode) {
631
- if (typeof globalThis === "object") {
632
- globalThis.regeneratorRuntime = runtime;
633
- } else {
634
- Function("r", "regeneratorRuntime = r")(runtime);
635
- }
636
- }
637
-
638
- var _regeneratorRuntime = /*@__PURE__*/getDefaultExportFromCjs(regenerator);
639
-
640
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; }
641
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; }
642
267
  var TestMessage = function TestMessage(_ref) {
@@ -655,7 +280,7 @@ var TestMessage = function TestMessage(_ref) {
655
280
  var _useTranslation = useTranslation(),
656
281
  t = _useTranslation.t;
657
282
  var handleTestValidation = /*#__PURE__*/function () {
658
- var _ref2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee(event) {
283
+ var _ref2 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee(event) {
659
284
  var value;
660
285
  return _regeneratorRuntime.wrap(function _callee$(_context) {
661
286
  while (1) switch (_context.prev = _context.next) {
@@ -760,7 +385,9 @@ var Form = function Form(_ref) {
760
385
  var payload = {
761
386
  templateType: templateType,
762
387
  name: values.name,
763
- entity: filteredValues
388
+ entity: mergeLeft({
389
+ id: template.id
390
+ }, filteredValues)
764
391
  };
765
392
  createUpdateTemplate({
766
393
  isEdit: isEdit,
@@ -1158,6 +785,7 @@ var MessageTemplates = function MessageTemplates(_ref) {
1158
785
  }))]
1159
786
  })
1160
787
  }), /*#__PURE__*/jsx(SubHeader, {
788
+ className: "mb-4",
1161
789
  leftActionBlock: shouldShowTemplatesCount && /*#__PURE__*/jsx(Typography, {
1162
790
  component: "h4",
1163
791
  children: t("neetoMessageTemplate.template.messageTemplatesWithCount", {
@@ -1177,7 +805,7 @@ var MessageTemplates = function MessageTemplates(_ref) {
1177
805
  onChange: handleChange
1178
806
  }
1179
807
  })
1180
- }), /*#__PURE__*/jsx(Bar, {
808
+ }), /*#__PURE__*/jsx(FiltersBar, {
1181
809
  columns: filterColumns,
1182
810
  keyword: searchKeywordProps,
1183
811
  setIsPaneOpen: setIsFilterPaneOpen,