@compill/admin 1.0.37 → 1.0.39

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/index.cjs.js CHANGED
@@ -8,11 +8,12 @@ var Link = require('next/link');
8
8
  var React = require('react');
9
9
  var adminApi = require('@compill/admin-api');
10
10
  require('axios');
11
- require('react/jsx-runtime');
12
11
  var reactQuery = require('@tanstack/react-query');
13
12
  var reactRouterDom = require('react-router-dom');
13
+ var reactToastify = require('react-toastify');
14
14
  var form = require('@compill/form');
15
15
  var formik = require('formik');
16
+ require('react/jsx-runtime');
16
17
  var components = require('@compill/components');
17
18
  var react = require('@soperio/react');
18
19
  var formExtras = require('@compill/form-extras');
@@ -159,22 +160,106 @@ function DialogButton(_a) {
159
160
  });
160
161
  }
161
162
 
162
- function IconButton(_a) {
163
- var {
164
- icon
165
- } = _a,
166
- props = __rest(_a, ["icon"]);
167
- return jsxRuntime.jsx(ui.Button, Object.assign({
168
- variant: "glass",
169
- w: "10",
170
- h: "10",
171
- rounded: "full"
172
- }, props, {
173
- children: jsxRuntime.jsx(ui.Icon, {
174
- path: icon
175
- })
176
- }));
163
+ /*! js-cookie v3.0.5 | MIT */ /* eslint-disable no-var */ function assign(target) {
164
+ for(var i = 1; i < arguments.length; i++){
165
+ var source = arguments[i];
166
+ for(var key in source){
167
+ target[key] = source[key];
168
+ }
169
+ }
170
+ return target;
171
+ }
172
+ /* eslint-enable no-var */ /* eslint-disable no-var */ var defaultConverter = {
173
+ read: function read(value) {
174
+ if (value[0] === '"') {
175
+ value = value.slice(1, -1);
176
+ }
177
+ return value.replace(/(%[\dA-F]{2})+/gi, decodeURIComponent);
178
+ },
179
+ write: function write(value) {
180
+ return encodeURIComponent(value).replace(/%(2[346BF]|3[AC-F]|40|5[BDE]|60|7[BCD])/g, decodeURIComponent);
181
+ }
182
+ };
183
+ /* eslint-enable no-var */ /* eslint-disable no-var */ function init(converter, defaultAttributes) {
184
+ function set(name, value, attributes) {
185
+ if (typeof document === "undefined") {
186
+ return;
187
+ }
188
+ attributes = assign({}, defaultAttributes, attributes);
189
+ if (typeof attributes.expires === "number") {
190
+ attributes.expires = new Date(Date.now() + attributes.expires * 864e5);
191
+ }
192
+ if (attributes.expires) {
193
+ attributes.expires = attributes.expires.toUTCString();
194
+ }
195
+ name = encodeURIComponent(name).replace(/%(2[346B]|5E|60|7C)/g, decodeURIComponent).replace(/[()]/g, escape);
196
+ var stringifiedAttributes = "";
197
+ for(var attributeName in attributes){
198
+ if (!attributes[attributeName]) {
199
+ continue;
200
+ }
201
+ stringifiedAttributes += "; " + attributeName;
202
+ if (attributes[attributeName] === true) {
203
+ continue;
204
+ }
205
+ // Considers RFC 6265 section 5.2:
206
+ // ...
207
+ // 3. If the remaining unparsed-attributes contains a %x3B (";")
208
+ // character:
209
+ // Consume the characters of the unparsed-attributes up to,
210
+ // not including, the first %x3B (";") character.
211
+ // ...
212
+ stringifiedAttributes += "=" + attributes[attributeName].split(";")[0];
213
+ }
214
+ return document.cookie = name + "=" + converter.write(value, name) + stringifiedAttributes;
215
+ }
216
+ function get(name) {
217
+ if (typeof document === "undefined" || arguments.length && !name) {
218
+ return;
219
+ }
220
+ // To prevent the for loop in the first place assign an empty array
221
+ // in case there are no cookies at all.
222
+ var cookies = document.cookie ? document.cookie.split("; ") : [];
223
+ var jar = {};
224
+ for(var i = 0; i < cookies.length; i++){
225
+ var parts = cookies[i].split("=");
226
+ var value = parts.slice(1).join("=");
227
+ try {
228
+ var found = decodeURIComponent(parts[0]);
229
+ jar[found] = converter.read(value, found);
230
+ if (name === found) {
231
+ break;
232
+ }
233
+ } catch (e) {}
234
+ }
235
+ return name ? jar[name] : jar;
236
+ }
237
+ return Object.create({
238
+ set: set,
239
+ get: get,
240
+ remove: function remove(name, attributes) {
241
+ set(name, "", assign({}, attributes, {
242
+ expires: -1
243
+ }));
244
+ },
245
+ withAttributes: function withAttributes(attributes) {
246
+ return init(this.converter, assign({}, this.attributes, attributes));
247
+ },
248
+ withConverter: function withConverter(converter) {
249
+ return init(assign({}, this.converter, converter), this.attributes);
250
+ }
251
+ }, {
252
+ attributes: {
253
+ value: Object.freeze(defaultAttributes)
254
+ },
255
+ converter: {
256
+ value: Object.freeze(converter)
257
+ }
258
+ });
177
259
  }
260
+ init(defaultConverter, {
261
+ path: "/"
262
+ });
178
263
 
179
264
  function useInvalidateQuery(queryKey, queryId) {
180
265
  var queryClient = reactQuery.useQueryClient();
@@ -324,15 +409,15 @@ function useApiQueries(queries) {
324
409
  };
325
410
  }
326
411
 
327
- function r$1(e) {
412
+ function r(e) {
328
413
  var t, f, n = "";
329
414
  if ("string" == typeof e || "number" == typeof e) n += e;
330
- else if ("object" == typeof e) if (Array.isArray(e)) for(t = 0; t < e.length; t++)e[t] && (f = r$1(e[t])) && (n && (n += " "), n += f);
415
+ else if ("object" == typeof e) if (Array.isArray(e)) for(t = 0; t < e.length; t++)e[t] && (f = r(e[t])) && (n && (n += " "), n += f);
331
416
  else for(t in e)e[t] && (n && (n += " "), n += t);
332
417
  return n;
333
418
  }
334
- function clsx$1() {
335
- for(var e, t, f = 0, n = ""; f < arguments.length;)(e = arguments[f++]) && (t = r$1(e)) && (n && (n += " "), n += t);
419
+ function clsx() {
420
+ for(var e, t, f = 0, n = ""; f < arguments.length;)(e = arguments[f++]) && (t = r(e)) && (n && (n += " "), n += t);
336
421
  return n;
337
422
  }
338
423
 
@@ -473,18 +558,18 @@ function _unsupported_iterable_to_array$1(o, minLen) {
473
558
  if (n === "Map" || n === "Set") return Array.from(n);
474
559
  if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$1(o, minLen);
475
560
  }
476
- var u$1 = function(t) {
561
+ var u = function(t) {
477
562
  return "number" == typeof t && !isNaN(t);
478
- }, d$1 = function(t) {
563
+ }, d = function(t) {
479
564
  return "string" == typeof t;
480
- }, p$1 = function(t) {
565
+ }, p = function(t) {
481
566
  return "function" == typeof t;
482
- }, m$1 = function(t) {
483
- return d$1(t) || p$1(t) ? t : null;
484
- }, f$1 = function(t) {
485
- return React.isValidElement(t) || d$1(t) || p$1(t) || u$1(t);
567
+ }, m = function(t) {
568
+ return d(t) || p(t) ? t : null;
569
+ }, f = function(t) {
570
+ return React.isValidElement(t) || d(t) || p(t) || u(t);
486
571
  };
487
- function g$1(t, e, n) {
572
+ function g(t, e, n) {
488
573
  void 0 === n && (n = 300);
489
574
  var o = t.scrollHeight, s = t.style;
490
575
  requestAnimationFrame(function() {
@@ -493,7 +578,7 @@ function g$1(t, e, n) {
493
578
  });
494
579
  });
495
580
  }
496
- function h$1(e) {
581
+ function h(e) {
497
582
  var a = e.enter, r = e.exit, tmp = e.appendPosition, i = tmp === void 0 ? !1 : tmp, tmp1 = e.collapse, _$l = tmp1 === void 0 ? !0 : tmp1, tmp2 = e.collapseDuration, c = tmp2 === void 0 ? 300 : tmp2;
498
583
  return function(e) {
499
584
  var u = e.children, d = e.position, p = e.preventExitTransition, m = e.done, f = e.nodeRef, _$h = e.isIn;
@@ -507,7 +592,7 @@ function h$1(e) {
507
592
  (_t_classList = _$t.classList).add.apply(_t_classList, _to_consumable_array$1(_$e)), _$t.addEventListener("animationend", _$n), _$t.addEventListener("animationcancel", _$n);
508
593
  }, []), React.useEffect(function() {
509
594
  var _$t = f.current, _$e = function() {
510
- _$t.removeEventListener("animationend", _$e), _$l ? g$1(_$t, m, c) : m();
595
+ _$t.removeEventListener("animationend", _$e), _$l ? g(_$t, m, c) : m();
511
596
  };
512
597
  _$h || (p ? _$e() : (T.current = 1, _$t.className += " ".concat(v), _$t.addEventListener("animationend", _$e)));
513
598
  }, [
@@ -515,7 +600,7 @@ function h$1(e) {
515
600
  ]), React__default["default"].createElement(React__default["default"].Fragment, null, u);
516
601
  };
517
602
  }
518
- function y$1(t, e) {
603
+ function y(t, e) {
519
604
  return null != t ? {
520
605
  content: t.content,
521
606
  containerId: t.props.containerId,
@@ -528,7 +613,7 @@ function y$1(t, e) {
528
613
  status: e
529
614
  } : {};
530
615
  }
531
- var v$1 = {
616
+ var v = {
532
617
  list: new Map,
533
618
  emitQueue: new Map,
534
619
  on: function on(t, e) {
@@ -556,7 +641,7 @@ var v$1 = {
556
641
  _this.emitQueue.has(t) || _this.emitQueue.set(t, []), _this.emitQueue.get(t).push(n);
557
642
  });
558
643
  }
559
- }, T$1 = function(e) {
644
+ }, T = function(e) {
560
645
  var n = e.theme, o = e.type, s = _object_without_properties(e, [
561
646
  "theme",
562
647
  "type"
@@ -567,24 +652,24 @@ var v$1 = {
567
652
  height: "100%",
568
653
  fill: "colored" === n ? "currentColor" : "var(--toastify-icon-color-".concat(o, ")")
569
654
  }, s));
570
- }, E$1 = {
655
+ }, E = {
571
656
  info: function info(e) {
572
- return React__default["default"].createElement(T$1, _object_spread$1({}, e), React__default["default"].createElement("path", {
657
+ return React__default["default"].createElement(T, _object_spread$1({}, e), React__default["default"].createElement("path", {
573
658
  d: "M12 0a12 12 0 1012 12A12.013 12.013 0 0012 0zm.25 5a1.5 1.5 0 11-1.5 1.5 1.5 1.5 0 011.5-1.5zm2.25 13.5h-4a1 1 0 010-2h.75a.25.25 0 00.25-.25v-4.5a.25.25 0 00-.25-.25h-.75a1 1 0 010-2h1a2 2 0 012 2v4.75a.25.25 0 00.25.25h.75a1 1 0 110 2z"
574
659
  }));
575
660
  },
576
661
  warning: function warning(e) {
577
- return React__default["default"].createElement(T$1, _object_spread$1({}, e), React__default["default"].createElement("path", {
662
+ return React__default["default"].createElement(T, _object_spread$1({}, e), React__default["default"].createElement("path", {
578
663
  d: "M23.32 17.191L15.438 2.184C14.728.833 13.416 0 11.996 0c-1.42 0-2.733.833-3.443 2.184L.533 17.448a4.744 4.744 0 000 4.368C1.243 23.167 2.555 24 3.975 24h16.05C22.22 24 24 22.044 24 19.632c0-.904-.251-1.746-.68-2.44zm-9.622 1.46c0 1.033-.724 1.823-1.698 1.823s-1.698-.79-1.698-1.822v-.043c0-1.028.724-1.822 1.698-1.822s1.698.79 1.698 1.822v.043zm.039-12.285l-.84 8.06c-.057.581-.408.943-.897.943-.49 0-.84-.367-.896-.942l-.84-8.065c-.057-.624.25-1.095.779-1.095h1.91c.528.005.84.476.784 1.1z"
579
664
  }));
580
665
  },
581
666
  success: function success(e) {
582
- return React__default["default"].createElement(T$1, _object_spread$1({}, e), React__default["default"].createElement("path", {
667
+ return React__default["default"].createElement(T, _object_spread$1({}, e), React__default["default"].createElement("path", {
583
668
  d: "M12 0a12 12 0 1012 12A12.014 12.014 0 0012 0zm6.927 8.2l-6.845 9.289a1.011 1.011 0 01-1.43.188l-4.888-3.908a1 1 0 111.25-1.562l4.076 3.261 6.227-8.451a1 1 0 111.61 1.183z"
584
669
  }));
585
670
  },
586
671
  error: function error(e) {
587
- return React__default["default"].createElement(T$1, _object_spread$1({}, e), React__default["default"].createElement("path", {
672
+ return React__default["default"].createElement(T, _object_spread$1({}, e), React__default["default"].createElement("path", {
588
673
  d: "M11.983 0a12.206 12.206 0 00-8.51 3.653A11.8 11.8 0 000 12.207 11.779 11.779 0 0011.8 24h.214A12.111 12.111 0 0024 11.791 11.766 11.766 0 0011.983 0zM10.5 16.542a1.476 1.476 0 011.449-1.53h.027a1.527 1.527 0 011.523 1.47 1.475 1.475 0 01-1.449 1.53h-.027a1.529 1.529 0 01-1.523-1.47zM11 12.5v-6a1 1 0 012 0v6a1 1 0 11-2 0z"
589
674
  }));
590
675
  },
@@ -594,7 +679,7 @@ var v$1 = {
594
679
  });
595
680
  }
596
681
  };
597
- function C$1(t) {
682
+ function C(t) {
598
683
  var _r = _sliced_to_array(React.useReducer(function(t) {
599
684
  return t + 1;
600
685
  }, 0), 2), o = _r[1], _i = _sliced_to_array(React.useState([]), 2), _$l = _i[0], c = _i[1], g = React.useRef(null), _$h = React.useRef(new Map).current, T = function(t) {
@@ -632,7 +717,7 @@ function C$1(t) {
632
717
  "delay",
633
718
  "staleId"
634
719
  ]);
635
- if (!f$1(t) || function(t) {
720
+ if (!f(t) || function(t) {
636
721
  return !g.current || C.props.enableMultiContainer && t.containerId !== C.props.containerId || _$h.has(t.toastId) && null == t.updateId;
637
722
  }(_$i)) return;
638
723
  var _$l = _$i.toastId, c = _$i.updateId, T = _$i.data, b = C.props, _$L = function() {
@@ -651,13 +736,13 @@ function C$1(t) {
651
736
  data: T,
652
737
  closeToast: _$L,
653
738
  isIn: !1,
654
- className: m$1(_$i.className || b.toastClassName),
655
- bodyClassName: m$1(_$i.bodyClassName || b.bodyClassName),
656
- progressClassName: m$1(_$i.progressClassName || b.progressClassName),
657
- autoClose: !_$i.isLoading && (R = _$i.autoClose, w = b.autoClose, !1 === R || u$1(R) && R > 0 ? R : w),
739
+ className: m(_$i.className || b.toastClassName),
740
+ bodyClassName: m(_$i.bodyClassName || b.bodyClassName),
741
+ progressClassName: m(_$i.progressClassName || b.progressClassName),
742
+ autoClose: !_$i.isLoading && (R = _$i.autoClose, w = b.autoClose, !1 === R || u(R) && R > 0 ? R : w),
658
743
  deleteToast: function deleteToast() {
659
- var _$t = y$1(_$h.get(_$l), "removed");
660
- _$h.delete(_$l), v$1.emit(4, _$t);
744
+ var _$t = y(_$h.get(_$l), "removed");
745
+ _$h.delete(_$l), v.emit(4, _$t);
661
746
  var _$e = C.queue.length;
662
747
  if (C.count = null == _$l ? C.count - C.displayedToast : C.count - 1, C.count < 0 && (C.count = 0), _$e > 0) {
663
748
  var _$t1 = null == _$l ? C.props.limit : 1;
@@ -677,16 +762,16 @@ function C$1(t) {
677
762
  theme: _$n,
678
763
  type: o
679
764
  };
680
- return !1 === _$r || (p$1(_$r) ? _$i = _$r(_$l) : React.isValidElement(_$r) ? _$i = React.cloneElement(_$r, _$l) : d$1(_$r) || u$1(_$r) ? _$i = _$r : _$s ? _$i = E$1.spinner() : function(t) {
681
- return t in E$1;
682
- }(o) && (_$i = E$1[o](_$l))), _$i;
683
- }(M), p$1(_$i.onOpen) && (M.onOpen = _$i.onOpen), p$1(_$i.onClose) && (M.onClose = _$i.onClose), M.closeButton = b.closeButton, !1 === _$i.closeButton || f$1(_$i.closeButton) ? M.closeButton = _$i.closeButton : !0 === _$i.closeButton && (M.closeButton = !f$1(b.closeButton) || b.closeButton);
765
+ return !1 === _$r || (p(_$r) ? _$i = _$r(_$l) : React.isValidElement(_$r) ? _$i = React.cloneElement(_$r, _$l) : d(_$r) || u(_$r) ? _$i = _$r : _$s ? _$i = E.spinner() : function(t) {
766
+ return t in E;
767
+ }(o) && (_$i = E[o](_$l))), _$i;
768
+ }(M), p(_$i.onOpen) && (M.onOpen = _$i.onOpen), p(_$i.onClose) && (M.onClose = _$i.onClose), M.closeButton = b.closeButton, !1 === _$i.closeButton || f(_$i.closeButton) ? M.closeButton = _$i.closeButton : !0 === _$i.closeButton && (M.closeButton = !f(b.closeButton) || b.closeButton);
684
769
  var x = t;
685
- React.isValidElement(t) && !d$1(t.type) ? x = React.cloneElement(t, {
770
+ React.isValidElement(t) && !d(t.type) ? x = React.cloneElement(t, {
686
771
  closeToast: _$L,
687
772
  toastProps: M,
688
773
  data: T
689
- }) : p$1(t) && (x = t({
774
+ }) : p(t) && (x = t({
690
775
  closeToast: _$L,
691
776
  toastProps: M,
692
777
  data: T
@@ -694,7 +779,7 @@ function C$1(t) {
694
779
  toastContent: x,
695
780
  toastProps: M,
696
781
  staleId: _$r
697
- }) : u$1(_$s) ? setTimeout(function() {
782
+ }) : u(_$s) ? setTimeout(function() {
698
783
  O(x, M, _$r);
699
784
  }, _$s) : O(x, M, _$r);
700
785
  }
@@ -711,13 +796,13 @@ function C$1(t) {
711
796
  ]).filter(function(t) {
712
797
  return t !== n;
713
798
  });
714
- }), v$1.emit(4, y$1(_$s, null == _$s.props.updateId ? "added" : "updated"));
799
+ }), v.emit(4, y(_$s, null == _$s.props.updateId ? "added" : "updated"));
715
800
  }
716
801
  return React.useEffect(function() {
717
- return C.containerId = t.containerId, v$1.cancelEmit(3).on(0, L).on(1, function(t) {
802
+ return C.containerId = t.containerId, v.cancelEmit(3).on(0, L).on(1, function(t) {
718
803
  return g.current && I(t);
719
804
  }).on(5, b).emit(2, C), function() {
720
- _$h.clear(), v$1.emit(3, C);
805
+ _$h.clear(), v.emit(3, C);
721
806
  };
722
807
  }, []), React.useEffect(function() {
723
808
  C.props = t, C.isToastActive = T, C.displayedToast = _$l.length;
@@ -735,13 +820,13 @@ function C$1(t) {
735
820
  isToastActive: T
736
821
  };
737
822
  }
738
- function b$1(t) {
823
+ function b(t) {
739
824
  return t.targetTouches && t.targetTouches.length >= 1 ? t.targetTouches[0].clientX : t.clientX;
740
825
  }
741
- function I$1(t) {
826
+ function I(t) {
742
827
  return t.targetTouches && t.targetTouches.length >= 1 ? t.targetTouches[0].clientY : t.clientY;
743
828
  }
744
- function _$1(t) {
829
+ function _(t) {
745
830
  var _i = _sliced_to_array(React.useState(!1), 2), o = _i[0], a = _i[1], _i1 = _sliced_to_array(React.useState(!1), 2), r = _i1[0], _$l = _i1[1], c = React.useRef(null), u = React.useRef({
746
831
  start: 0,
747
832
  x: 0,
@@ -757,7 +842,7 @@ function _$1(t) {
757
842
  if (t.draggable) {
758
843
  "touchstart" === e.nativeEvent.type && e.nativeEvent.preventDefault(), u.didMove = !1, document.addEventListener("mousemove", _), document.addEventListener("mouseup", L), document.addEventListener("touchmove", _), document.addEventListener("touchend", L);
759
844
  var _$n = c.current;
760
- u.canCloseOnClick = !0, u.canDrag = !0, u.boundingRect = _$n.getBoundingClientRect(), _$n.style.transition = "", u.x = b$1(e.nativeEvent), u.y = I$1(e.nativeEvent), "x" === t.draggableDirection ? (u.start = u.x, u.removalDistance = _$n.offsetWidth * (t.draggablePercent / 100)) : (u.start = u.y, u.removalDistance = _$n.offsetHeight * (80 === t.draggablePercent ? 1.5 * t.draggablePercent : t.draggablePercent / 100));
845
+ u.canCloseOnClick = !0, u.canDrag = !0, u.boundingRect = _$n.getBoundingClientRect(), _$n.style.transition = "", u.x = b(e.nativeEvent), u.y = I(e.nativeEvent), "x" === t.draggableDirection ? (u.start = u.x, u.removalDistance = _$n.offsetWidth * (t.draggablePercent / 100)) : (u.start = u.y, u.removalDistance = _$n.offsetHeight * (80 === t.draggablePercent ? 1.5 * t.draggablePercent : t.draggablePercent / 100));
761
846
  }
762
847
  }
763
848
  function T(e) {
@@ -774,7 +859,7 @@ function _$1(t) {
774
859
  }
775
860
  function _(e) {
776
861
  var _$n = c.current;
777
- u.canDrag && _$n && (u.didMove = !0, o && C(), u.x = b$1(e), u.y = I$1(e), u.delta = "x" === t.draggableDirection ? u.x - u.start : u.y - u.start, u.start !== u.x && (u.canCloseOnClick = !1), _$n.style.transform = "translate".concat(t.draggableDirection, "(").concat(u.delta, "px)"), _$n.style.opacity = "" + (1 - Math.abs(u.delta / u.removalDistance)));
862
+ u.canDrag && _$n && (u.didMove = !0, o && C(), u.x = b(e), u.y = I(e), u.delta = "x" === t.draggableDirection ? u.x - u.start : u.y - u.start, u.start !== u.x && (u.canCloseOnClick = !1), _$n.style.transform = "translate".concat(t.draggableDirection, "(").concat(u.delta, "px)"), _$n.style.opacity = "" + (1 - Math.abs(u.delta / u.removalDistance)));
778
863
  }
779
864
  function L() {
780
865
  document.removeEventListener("mousemove", _), document.removeEventListener("mouseup", L), document.removeEventListener("touchmove", _), document.removeEventListener("touchend", L);
@@ -789,9 +874,9 @@ function _$1(t) {
789
874
  }), React.useEffect(function() {
790
875
  return c.current && c.current.addEventListener("d", E, {
791
876
  once: !0
792
- }), p$1(t.onOpen) && t.onOpen(React.isValidElement(t.children) && t.children.props), function() {
877
+ }), p(t.onOpen) && t.onOpen(React.isValidElement(t.children) && t.children.props), function() {
793
878
  var _$t = d.current;
794
- p$1(_$t.onClose) && _$t.onClose(React.isValidElement(_$t.children) && _$t.children.props);
879
+ p(_$t.onClose) && _$t.onClose(React.isValidElement(_$t.children) && _$t.children.props);
795
880
  };
796
881
  }, []), React.useEffect(function() {
797
882
  return t.pauseOnFocusLoss && (document.hasFocus() || C(), window.addEventListener("focus", E), window.addEventListener("blur", C)), function() {
@@ -817,7 +902,7 @@ function _$1(t) {
817
902
  eventHandlers: O
818
903
  };
819
904
  }
820
- function L$1(e) {
905
+ function L(e) {
821
906
  var n = e.closeToast, o = e.theme, tmp = e.ariaLabel, s = tmp === void 0 ? "close" : tmp;
822
907
  return React__default["default"].createElement("button", {
823
908
  className: "Toastify__close-button Toastify__close-button--".concat(o),
@@ -834,7 +919,7 @@ function L$1(e) {
834
919
  d: "M7.71 8.23l3.75 3.75-1.48 1.48-3.75-3.75-3.75 3.75L1 11.98l3.75-3.75L1 4.48 2.48 3l3.75 3.75L9.98 3l1.48 1.48-3.75 3.75z"
835
920
  })));
836
921
  }
837
- function O$1(e) {
922
+ function O(e) {
838
923
  var n = e.delay, o = e.isRunning, s = e.closeToast, tmp = e.type, a = tmp === void 0 ? "default" : tmp, r = e.hide, i = e.className, _$l = e.style, u = e.controlledProgress, d = e.progress, m = e.rtl, f = e.isIn, g = e.theme;
839
924
  var _$h = r || u && 0 === d, y = _object_spread_props(_object_spread$1({}, _$l), {
840
925
  animationDuration: "".concat(n, "ms"),
@@ -842,13 +927,13 @@ function O$1(e) {
842
927
  opacity: _$h ? 0 : 1
843
928
  });
844
929
  u && (y.transform = "scaleX(".concat(d, ")"));
845
- var v = clsx$1("Toastify__progress-bar", u ? "Toastify__progress-bar--controlled" : "Toastify__progress-bar--animated", "Toastify__progress-bar-theme--".concat(g), "Toastify__progress-bar--".concat(a), {
930
+ var v = clsx("Toastify__progress-bar", u ? "Toastify__progress-bar--controlled" : "Toastify__progress-bar--animated", "Toastify__progress-bar-theme--".concat(g), "Toastify__progress-bar--".concat(a), {
846
931
  "Toastify__progress-bar--rtl": m
847
- }), T = p$1(i) ? i({
932
+ }), T = p(i) ? i({
848
933
  rtl: m,
849
934
  type: a,
850
935
  defaultClassName: v
851
- }) : clsx$1(v, i);
936
+ }) : clsx(v, i);
852
937
  return React__default["default"].createElement("div", _define_property$1({
853
938
  role: "progressbar",
854
939
  "aria-hidden": _$h ? "true" : "false",
@@ -859,23 +944,23 @@ function O$1(e) {
859
944
  f && s();
860
945
  }));
861
946
  }
862
- var N$1 = function(n) {
863
- var _$_ = _$1(n), o = _$_.isRunning, s = _$_.preventExitTransition, r = _$_.toastRef, i = _$_.eventHandlers, _$l = n.closeButton, u = n.children, d = n.autoClose, m = n.onClick, f = n.type, g = n.hideProgressBar, _$h = n.closeToast, y = n.transition, v = n.position, T = n.className, E = n.style, C = n.bodyClassName, b = n.bodyStyle, I = n.progressClassName, N = n.progressStyle, M = n.updateId, R = n.role, w = n.progress, x = n.rtl, $ = n.toastId, k = n.deleteToast, P = n.isIn, B = n.isLoading, D = n.iconOut, A = n.closeOnClick, z = n.theme, F = clsx$1("Toastify__toast", "Toastify__toast-theme--".concat(z), "Toastify__toast--".concat(f), {
947
+ var N = function(n) {
948
+ var _$_ = _(n), o = _$_.isRunning, s = _$_.preventExitTransition, r = _$_.toastRef, i = _$_.eventHandlers, _$l = n.closeButton, u = n.children, d = n.autoClose, m = n.onClick, f = n.type, g = n.hideProgressBar, _$h = n.closeToast, y = n.transition, v = n.position, T = n.className, E = n.style, C = n.bodyClassName, b = n.bodyStyle, I = n.progressClassName, N = n.progressStyle, M = n.updateId, R = n.role, w = n.progress, x = n.rtl, $ = n.toastId, k = n.deleteToast, P = n.isIn, B = n.isLoading, D = n.iconOut, A = n.closeOnClick, z = n.theme, F = clsx("Toastify__toast", "Toastify__toast-theme--".concat(z), "Toastify__toast--".concat(f), {
864
949
  "Toastify__toast--rtl": x
865
950
  }, {
866
951
  "Toastify__toast--close-on-click": A
867
- }), H = p$1(T) ? T({
952
+ }), H = p(T) ? T({
868
953
  rtl: x,
869
954
  position: v,
870
955
  type: f,
871
956
  defaultClassName: F
872
- }) : clsx$1(F, T), S = !!w || !d, _$q = {
957
+ }) : clsx(F, T), S = !!w || !d, _$q = {
873
958
  closeToast: _$h,
874
959
  type: f,
875
960
  theme: z
876
961
  };
877
962
  var _$Q = null;
878
- return !1 === _$l || (_$Q = p$1(_$l) ? _$l(_$q) : React.isValidElement(_$l) ? React.cloneElement(_$l, _$q) : L$1(_$q)), React__default["default"].createElement(y, {
963
+ return !1 === _$l || (_$Q = p(_$l) ? _$l(_$q) : React.isValidElement(_$l) ? React.cloneElement(_$l, _$q) : L(_$q)), React__default["default"].createElement(y, {
879
964
  isIn: P,
880
965
  done: k,
881
966
  position: v,
@@ -891,15 +976,15 @@ var N$1 = function(n) {
891
976
  }), React__default["default"].createElement("div", _object_spread_props(_object_spread$1({}, P && {
892
977
  role: R
893
978
  }), {
894
- className: p$1(C) ? C({
979
+ className: p(C) ? C({
895
980
  type: f
896
- }) : clsx$1("Toastify__toast-body", C),
981
+ }) : clsx("Toastify__toast-body", C),
897
982
  style: b
898
983
  }), null != D && React__default["default"].createElement("div", {
899
- className: clsx$1("Toastify__toast-icon", {
984
+ className: clsx("Toastify__toast-icon", {
900
985
  "Toastify--animate-icon Toastify__zoom-enter": !B
901
986
  })
902
- }, D), React__default["default"].createElement("div", null, u)), _$Q, React__default["default"].createElement(O$1, _object_spread_props(_object_spread$1({}, M && !S ? {
987
+ }, D), React__default["default"].createElement("div", null, u)), _$Q, React__default["default"].createElement(O, _object_spread_props(_object_spread$1({}, M && !S ? {
903
988
  key: "pb-".concat(M)
904
989
  } : {}), {
905
990
  rtl: x,
@@ -915,24 +1000,24 @@ var N$1 = function(n) {
915
1000
  controlledProgress: S,
916
1001
  progress: w || 0
917
1002
  }))));
918
- }, M$1 = function M(t, e) {
1003
+ }, M = function M(t, e) {
919
1004
  return void 0 === e && (e = !1), {
920
1005
  enter: "Toastify--animate Toastify__".concat(t, "-enter"),
921
1006
  exit: "Toastify--animate Toastify__".concat(t, "-exit"),
922
1007
  appendPosition: e
923
1008
  };
924
- }, R$1 = h$1(M$1("bounce", !0)); h$1(M$1("slide", !0)); h$1(M$1("zoom")); h$1(M$1("flip")); var k$1 = React.forwardRef(function(e, n) {
1009
+ }, R = h(M("bounce", !0)); h(M("slide", !0)); h(M("zoom")); h(M("flip")); var k = React.forwardRef(function(e, n) {
925
1010
  var f = function f(t) {
926
- var _$e = clsx$1("Toastify__toast-container", "Toastify__toast-container--".concat(t), {
1011
+ var _$e = clsx("Toastify__toast-container", "Toastify__toast-container--".concat(t), {
927
1012
  "Toastify__toast-container--rtl": u
928
1013
  });
929
- return p$1(i) ? i({
1014
+ return p(i) ? i({
930
1015
  position: t,
931
1016
  rtl: u,
932
1017
  defaultClassName: _$e
933
- }) : clsx$1(_$e, m$1(i));
1018
+ }) : clsx(_$e, m(i));
934
1019
  };
935
- var _C = C$1(e), o = _C.getToastToRender, a = _C.containerRef, r = _C.isToastActive, i = e.className, _$l = e.style, u = e.rtl, d = e.containerId;
1020
+ var _C = C(e), o = _C.getToastToRender, a = _C.containerRef, r = _C.isToastActive, i = e.className, _$l = e.style, u = e.rtl, d = e.containerId;
936
1021
  return React.useEffect(function() {
937
1022
  n && (n.current = a.current);
938
1023
  }, []), React__default["default"].createElement("div", {
@@ -949,7 +1034,7 @@ var N$1 = function(n) {
949
1034
  key: "container-".concat(e)
950
1035
  }, n.map(function(e, o) {
951
1036
  var _$s = e.content, a = e.props;
952
- return React__default["default"].createElement(N$1, _object_spread_props(_object_spread$1({}, a), {
1037
+ return React__default["default"].createElement(N, _object_spread_props(_object_spread$1({}, a), {
953
1038
  isIn: r(a.toastId),
954
1039
  style: _object_spread_props(_object_spread$1({}, a.style), {
955
1040
  "--nth": o + 1,
@@ -960,11 +1045,11 @@ var N$1 = function(n) {
960
1045
  }));
961
1046
  }));
962
1047
  });
963
- k$1.displayName = "ToastContainer", k$1.defaultProps = {
1048
+ k.displayName = "ToastContainer", k.defaultProps = {
964
1049
  position: "top-right",
965
- transition: R$1,
1050
+ transition: R,
966
1051
  autoClose: 5e3,
967
- closeButton: L$1,
1052
+ closeButton: L,
968
1053
  pauseOnHover: !0,
969
1054
  pauseOnFocusLoss: !0,
970
1055
  closeOnClick: !0,
@@ -974,44 +1059,44 @@ k$1.displayName = "ToastContainer", k$1.defaultProps = {
974
1059
  role: "alert",
975
1060
  theme: "light"
976
1061
  };
977
- var P$1, B$1 = new Map, D$1 = [], A$1 = 1;
978
- function z$1() {
979
- return "" + A$1++;
1062
+ var P, B = new Map, D = [], A = 1;
1063
+ function z() {
1064
+ return "" + A++;
980
1065
  }
981
- function F$1(t) {
982
- return t && (d$1(t.toastId) || u$1(t.toastId)) ? t.toastId : z$1();
1066
+ function F(t) {
1067
+ return t && (d(t.toastId) || u(t.toastId)) ? t.toastId : z();
983
1068
  }
984
- function H$1(t, e) {
985
- return B$1.size > 0 ? v$1.emit(0, t, e) : D$1.push({
1069
+ function H(t, e) {
1070
+ return B.size > 0 ? v.emit(0, t, e) : D.push({
986
1071
  content: t,
987
1072
  options: e
988
1073
  }), e.toastId;
989
1074
  }
990
- function S$1(t, e) {
1075
+ function S(t, e) {
991
1076
  return _object_spread_props(_object_spread$1({}, e), {
992
1077
  type: e && e.type || t,
993
- toastId: F$1(e)
1078
+ toastId: F(e)
994
1079
  });
995
1080
  }
996
- function q$1(t) {
1081
+ function q(t) {
997
1082
  return function(e, n) {
998
- return H$1(e, S$1(t, n));
1083
+ return H(e, S(t, n));
999
1084
  };
1000
1085
  }
1001
- function Q$1(t, e) {
1002
- return H$1(t, S$1("default", e));
1086
+ function Q(t, e) {
1087
+ return H(t, S("default", e));
1003
1088
  }
1004
- Q$1.loading = function(t, e) {
1005
- return H$1(t, S$1("default", _object_spread$1({
1089
+ Q.loading = function(t, e) {
1090
+ return H(t, S("default", _object_spread$1({
1006
1091
  isLoading: !0,
1007
1092
  autoClose: !1,
1008
1093
  closeOnClick: !1,
1009
1094
  closeButton: !1,
1010
1095
  draggable: !1
1011
1096
  }, e)));
1012
- }, Q$1.promise = function(t, e, n) {
1097
+ }, Q.promise = function(t, e, n) {
1013
1098
  var o, s = e.pending, a = e.error, r = e.success;
1014
- s && (o = d$1(s) ? Q$1.loading(s, n) : Q$1.loading(s.render, _object_spread$1({}, n, s)));
1099
+ s && (o = d(s) ? Q.loading(s, n) : Q.loading(s.render, _object_spread$1({}, n, s)));
1015
1100
  var i = {
1016
1101
  isLoading: null,
1017
1102
  autoClose: null,
@@ -1019,41 +1104,41 @@ Q$1.loading = function(t, e) {
1019
1104
  closeButton: null,
1020
1105
  draggable: null
1021
1106
  }, _$l = function(t, e, s) {
1022
- if (null == e) return void Q$1.dismiss(o);
1107
+ if (null == e) return void Q.dismiss(o);
1023
1108
  var a = _object_spread_props(_object_spread$1({
1024
1109
  type: t
1025
1110
  }, i, n), {
1026
1111
  data: s
1027
- }), r = d$1(e) ? {
1112
+ }), r = d(e) ? {
1028
1113
  render: e
1029
1114
  } : e;
1030
- return o ? Q$1.update(o, _object_spread$1({}, a, r)) : Q$1(r.render, _object_spread$1({}, a, r)), s;
1031
- }, c = p$1(t) ? t() : t;
1115
+ return o ? Q.update(o, _object_spread$1({}, a, r)) : Q(r.render, _object_spread$1({}, a, r)), s;
1116
+ }, c = p(t) ? t() : t;
1032
1117
  return c.then(function(t) {
1033
1118
  return _$l("success", r, t);
1034
1119
  }).catch(function(t) {
1035
1120
  return _$l("error", a, t);
1036
1121
  }), c;
1037
- }, Q$1.success = q$1("success"), Q$1.info = q$1("info"), Q$1.error = q$1("error"), Q$1.warning = q$1("warning"), Q$1.warn = Q$1.warning, Q$1.dark = function(t, e) {
1038
- return H$1(t, S$1("default", _object_spread$1({
1122
+ }, Q.success = q("success"), Q.info = q("info"), Q.error = q("error"), Q.warning = q("warning"), Q.warn = Q.warning, Q.dark = function(t, e) {
1123
+ return H(t, S("default", _object_spread$1({
1039
1124
  theme: "dark"
1040
1125
  }, e)));
1041
- }, Q$1.dismiss = function(t) {
1042
- B$1.size > 0 ? v$1.emit(1, t) : D$1 = D$1.filter(function(e) {
1126
+ }, Q.dismiss = function(t) {
1127
+ B.size > 0 ? v.emit(1, t) : D = D.filter(function(e) {
1043
1128
  return null != t && e.options.toastId !== t;
1044
1129
  });
1045
- }, Q$1.clearWaitingQueue = function(t) {
1046
- return void 0 === t && (t = {}), v$1.emit(5, t);
1047
- }, Q$1.isActive = function(t) {
1130
+ }, Q.clearWaitingQueue = function(t) {
1131
+ return void 0 === t && (t = {}), v.emit(5, t);
1132
+ }, Q.isActive = function(t) {
1048
1133
  var e = !1;
1049
- return B$1.forEach(function(n) {
1134
+ return B.forEach(function(n) {
1050
1135
  n.isToastActive && n.isToastActive(t) && (e = !0);
1051
1136
  }), e;
1052
- }, Q$1.update = function(t, e) {
1137
+ }, Q.update = function(t, e) {
1053
1138
  void 0 === e && (e = {}), setTimeout(function() {
1054
1139
  var n = function(t, e) {
1055
1140
  var n = e.containerId;
1056
- var o = B$1.get(n || P$1);
1141
+ var o = B.get(n || P);
1057
1142
  return o && o.getToast(t);
1058
1143
  }(t, e);
1059
1144
  if (n) {
@@ -1061,40 +1146,40 @@ Q$1.loading = function(t, e) {
1061
1146
  delay: 100
1062
1147
  }, o, e), {
1063
1148
  toastId: e.toastId || t,
1064
- updateId: z$1()
1149
+ updateId: z()
1065
1150
  });
1066
1151
  a.toastId !== t && (a.staleId = t);
1067
1152
  var r = a.render || s;
1068
- delete a.render, H$1(r, a);
1153
+ delete a.render, H(r, a);
1069
1154
  }
1070
1155
  }, 0);
1071
- }, Q$1.done = function(t) {
1072
- Q$1.update(t, {
1156
+ }, Q.done = function(t) {
1157
+ Q.update(t, {
1073
1158
  progress: 1
1074
1159
  });
1075
- }, Q$1.onChange = function(t) {
1076
- return v$1.on(4, t), function() {
1077
- v$1.off(4, t);
1160
+ }, Q.onChange = function(t) {
1161
+ return v.on(4, t), function() {
1162
+ v.off(4, t);
1078
1163
  };
1079
- }, Q$1.POSITION = {
1164
+ }, Q.POSITION = {
1080
1165
  TOP_LEFT: "top-left",
1081
1166
  TOP_RIGHT: "top-right",
1082
1167
  TOP_CENTER: "top-center",
1083
1168
  BOTTOM_LEFT: "bottom-left",
1084
1169
  BOTTOM_RIGHT: "bottom-right",
1085
1170
  BOTTOM_CENTER: "bottom-center"
1086
- }, Q$1.TYPE = {
1171
+ }, Q.TYPE = {
1087
1172
  INFO: "info",
1088
1173
  SUCCESS: "success",
1089
1174
  WARNING: "warning",
1090
1175
  ERROR: "error",
1091
1176
  DEFAULT: "default"
1092
- }, v$1.on(2, function(t) {
1093
- P$1 = t.containerId || t, B$1.set(P$1, t), D$1.forEach(function(t) {
1094
- v$1.emit(0, t.content, t.options);
1095
- }), D$1 = [];
1177
+ }, v.on(2, function(t) {
1178
+ P = t.containerId || t, B.set(P, t), D.forEach(function(t) {
1179
+ v.emit(0, t.content, t.options);
1180
+ }), D = [];
1096
1181
  }).on(3, function(t) {
1097
- B$1.delete(t.containerId || t), 0 === B$1.size && v$1.off(0).off(1).off(5);
1182
+ B.delete(t.containerId || t), 0 === B.size && v.off(0).off(1).off(5);
1098
1183
  });
1099
1184
 
1100
1185
  function _array_like_to_array(arr, len) {
@@ -1167,14 +1252,14 @@ function useMutate(mutation, options) {
1167
1252
  // Return the mutation so that Formik can update submitting state
1168
1253
  return mutation.mutateAsync((_runIfFn = runIfFn(mergedOptions.processInput, values)) !== null && _runIfFn !== void 0 ? _runIfFn : values).then(function(result) {
1169
1254
  var _mergedOptions_onSuccess;
1170
- if (mergedOptions.showSuccessMsg && mergedOptions.successMsg) Q$1.success(runIfFn(mergedOptions.successMsg, result, values));
1255
+ if (mergedOptions.showSuccessMsg && mergedOptions.successMsg) Q.success(runIfFn(mergedOptions.successMsg, result, values));
1171
1256
  (_mergedOptions_onSuccess = mergedOptions.onSuccess) === null || _mergedOptions_onSuccess === void 0 ? void 0 : _mergedOptions_onSuccess.call(mergedOptions, result);
1172
1257
  return result;
1173
1258
  }).catch(function(error) {
1174
1259
  var _mergedOptions_onError;
1175
1260
  if (mergedOptions.showErrorMsg) {
1176
1261
  var _runIfFn;
1177
- Q$1.error((_runIfFn = runIfFn(mergedOptions.errorMsg, error, values)) !== null && _runIfFn !== void 0 ? _runIfFn : "Oops, something went wrong :(");
1262
+ Q.error((_runIfFn = runIfFn(mergedOptions.errorMsg, error, values)) !== null && _runIfFn !== void 0 ? _runIfFn : "Oops, something went wrong :(");
1178
1263
  }
1179
1264
  (_mergedOptions_onError = mergedOptions.onError) === null || _mergedOptions_onError === void 0 ? void 0 : _mergedOptions_onError.call(mergedOptions, error);
1180
1265
  });
@@ -1244,10 +1329,6 @@ function NavigateButton(_a) {
1244
1329
  }));
1245
1330
  }
1246
1331
 
1247
- function r(e){var t,f,n="";if("string"==typeof e||"number"==typeof e)n+=e;else if("object"==typeof e)if(Array.isArray(e))for(t=0;t<e.length;t++)e[t]&&(f=r(e[t]))&&(n&&(n+=" "),n+=f);else for(t in e)e[t]&&(n&&(n+=" "),n+=t);return n}function clsx(){for(var e,t,f=0,n="";f<arguments.length;)(e=arguments[f++])&&(t=r(e))&&(n&&(n+=" "),n+=t);return n}
1248
-
1249
- const u=t=>"number"==typeof t&&!isNaN(t),d=t=>"string"==typeof t,p=t=>"function"==typeof t,m=t=>d(t)||p(t)?t:null,f=t=>React.isValidElement(t)||d(t)||p(t)||u(t);function g(t,e,n){void 0===n&&(n=300);const{scrollHeight:o,style:s}=t;requestAnimationFrame(()=>{s.minHeight="initial",s.height=o+"px",s.transition=`all ${n}ms`,requestAnimationFrame(()=>{s.height="0",s.padding="0",s.margin="0",setTimeout(e,n);});});}function h(e){let{enter:a,exit:r,appendPosition:i=!1,collapse:l=!0,collapseDuration:c=300}=e;return function(e){let{children:u,position:d,preventExitTransition:p,done:m,nodeRef:f,isIn:h}=e;const y=i?`${a}--${d}`:a,v=i?`${r}--${d}`:r,T=React.useRef(0);return React.useLayoutEffect(()=>{const t=f.current,e=y.split(" "),n=o=>{o.target===f.current&&(t.dispatchEvent(new Event("d")),t.removeEventListener("animationend",n),t.removeEventListener("animationcancel",n),0===T.current&&"animationcancel"!==o.type&&t.classList.remove(...e));};t.classList.add(...e),t.addEventListener("animationend",n),t.addEventListener("animationcancel",n);},[]),React.useEffect(()=>{const t=f.current,e=()=>{t.removeEventListener("animationend",e),l?g(t,m,c):m();};h||(p?e():(T.current=1,t.className+=` ${v}`,t.addEventListener("animationend",e)));},[h]),React__default["default"].createElement(React__default["default"].Fragment,null,u)}}function y(t,e){return null!=t?{content:t.content,containerId:t.props.containerId,id:t.props.toastId,theme:t.props.theme,type:t.props.type,data:t.props.data||{},isLoading:t.props.isLoading,icon:t.props.icon,status:e}:{}}const v={list:new Map,emitQueue:new Map,on(t,e){return this.list.has(t)||this.list.set(t,[]),this.list.get(t).push(e),this},off(t,e){if(e){const n=this.list.get(t).filter(t=>t!==e);return this.list.set(t,n),this}return this.list.delete(t),this},cancelEmit(t){const e=this.emitQueue.get(t);return e&&(e.forEach(clearTimeout),this.emitQueue.delete(t)),this},emit(t){this.list.has(t)&&this.list.get(t).forEach(e=>{const n=setTimeout(()=>{e(...[].slice.call(arguments,1));},0);this.emitQueue.has(t)||this.emitQueue.set(t,[]),this.emitQueue.get(t).push(n);});}},T=e=>{let{theme:n,type:o,...s}=e;return React__default["default"].createElement("svg",{viewBox:"0 0 24 24",width:"100%",height:"100%",fill:"colored"===n?"currentColor":`var(--toastify-icon-color-${o})`,...s})},E={info:function(e){return React__default["default"].createElement(T,{...e},React__default["default"].createElement("path",{d:"M12 0a12 12 0 1012 12A12.013 12.013 0 0012 0zm.25 5a1.5 1.5 0 11-1.5 1.5 1.5 1.5 0 011.5-1.5zm2.25 13.5h-4a1 1 0 010-2h.75a.25.25 0 00.25-.25v-4.5a.25.25 0 00-.25-.25h-.75a1 1 0 010-2h1a2 2 0 012 2v4.75a.25.25 0 00.25.25h.75a1 1 0 110 2z"}))},warning:function(e){return React__default["default"].createElement(T,{...e},React__default["default"].createElement("path",{d:"M23.32 17.191L15.438 2.184C14.728.833 13.416 0 11.996 0c-1.42 0-2.733.833-3.443 2.184L.533 17.448a4.744 4.744 0 000 4.368C1.243 23.167 2.555 24 3.975 24h16.05C22.22 24 24 22.044 24 19.632c0-.904-.251-1.746-.68-2.44zm-9.622 1.46c0 1.033-.724 1.823-1.698 1.823s-1.698-.79-1.698-1.822v-.043c0-1.028.724-1.822 1.698-1.822s1.698.79 1.698 1.822v.043zm.039-12.285l-.84 8.06c-.057.581-.408.943-.897.943-.49 0-.84-.367-.896-.942l-.84-8.065c-.057-.624.25-1.095.779-1.095h1.91c.528.005.84.476.784 1.1z"}))},success:function(e){return React__default["default"].createElement(T,{...e},React__default["default"].createElement("path",{d:"M12 0a12 12 0 1012 12A12.014 12.014 0 0012 0zm6.927 8.2l-6.845 9.289a1.011 1.011 0 01-1.43.188l-4.888-3.908a1 1 0 111.25-1.562l4.076 3.261 6.227-8.451a1 1 0 111.61 1.183z"}))},error:function(e){return React__default["default"].createElement(T,{...e},React__default["default"].createElement("path",{d:"M11.983 0a12.206 12.206 0 00-8.51 3.653A11.8 11.8 0 000 12.207 11.779 11.779 0 0011.8 24h.214A12.111 12.111 0 0024 11.791 11.766 11.766 0 0011.983 0zM10.5 16.542a1.476 1.476 0 011.449-1.53h.027a1.527 1.527 0 011.523 1.47 1.475 1.475 0 01-1.449 1.53h-.027a1.529 1.529 0 01-1.523-1.47zM11 12.5v-6a1 1 0 012 0v6a1 1 0 11-2 0z"}))},spinner:function(){return React__default["default"].createElement("div",{className:"Toastify__spinner"})}};function C(t){const[,o]=React.useReducer(t=>t+1,0),[l,c]=React.useState([]),g=React.useRef(null),h=React.useRef(new Map).current,T=t=>-1!==l.indexOf(t),C=React.useRef({toastKey:1,displayedToast:0,count:0,queue:[],props:t,containerId:null,isToastActive:T,getToast:t=>h.get(t)}).current;function b(t){let{containerId:e}=t;const{limit:n}=C.props;!n||e&&C.containerId!==e||(C.count-=C.queue.length,C.queue=[]);}function I(t){c(e=>null==t?[]:e.filter(e=>e!==t));}function _(){const{toastContent:t,toastProps:e,staleId:n}=C.queue.shift();O(t,e,n);}function L(t,n){let{delay:s,staleId:r,...i}=n;if(!f(t)||function(t){return !g.current||C.props.enableMultiContainer&&t.containerId!==C.props.containerId||h.has(t.toastId)&&null==t.updateId}(i))return;const{toastId:l,updateId:c,data:T}=i,{props:b}=C,L=()=>I(l),N=null==c;N&&C.count++;const M={...b,style:b.toastStyle,key:C.toastKey++,...Object.fromEntries(Object.entries(i).filter(t=>{let[e,n]=t;return null!=n})),toastId:l,updateId:c,data:T,closeToast:L,isIn:!1,className:m(i.className||b.toastClassName),bodyClassName:m(i.bodyClassName||b.bodyClassName),progressClassName:m(i.progressClassName||b.progressClassName),autoClose:!i.isLoading&&(R=i.autoClose,w=b.autoClose,!1===R||u(R)&&R>0?R:w),deleteToast(){const t=y(h.get(l),"removed");h.delete(l),v.emit(4,t);const e=C.queue.length;if(C.count=null==l?C.count-C.displayedToast:C.count-1,C.count<0&&(C.count=0),e>0){const t=null==l?C.props.limit:1;if(1===e||1===t)C.displayedToast++,_();else {const n=t>e?e:t;C.displayedToast=n;for(let t=0;t<n;t++)_();}}else o();}};var R,w;M.iconOut=function(t){let{theme:n,type:o,isLoading:s,icon:r}=t,i=null;const l={theme:n,type:o};return !1===r||(p(r)?i=r(l):React.isValidElement(r)?i=React.cloneElement(r,l):d(r)||u(r)?i=r:s?i=E.spinner():(t=>t in E)(o)&&(i=E[o](l))),i}(M),p(i.onOpen)&&(M.onOpen=i.onOpen),p(i.onClose)&&(M.onClose=i.onClose),M.closeButton=b.closeButton,!1===i.closeButton||f(i.closeButton)?M.closeButton=i.closeButton:!0===i.closeButton&&(M.closeButton=!f(b.closeButton)||b.closeButton);let x=t;React.isValidElement(t)&&!d(t.type)?x=React.cloneElement(t,{closeToast:L,toastProps:M,data:T}):p(t)&&(x=t({closeToast:L,toastProps:M,data:T})),b.limit&&b.limit>0&&C.count>b.limit&&N?C.queue.push({toastContent:x,toastProps:M,staleId:r}):u(s)?setTimeout(()=>{O(x,M,r);},s):O(x,M,r);}function O(t,e,n){const{toastId:o}=e;n&&h.delete(n);const s={content:t,props:e};h.set(o,s),c(t=>[...t,o].filter(t=>t!==n)),v.emit(4,y(s,null==s.props.updateId?"added":"updated"));}return React.useEffect(()=>(C.containerId=t.containerId,v.cancelEmit(3).on(0,L).on(1,t=>g.current&&I(t)).on(5,b).emit(2,C),()=>{h.clear(),v.emit(3,C);}),[]),React.useEffect(()=>{C.props=t,C.isToastActive=T,C.displayedToast=l.length;}),{getToastToRender:function(e){const n=new Map,o=Array.from(h.values());return t.newestOnTop&&o.reverse(),o.forEach(t=>{const{position:e}=t.props;n.has(e)||n.set(e,[]),n.get(e).push(t);}),Array.from(n,t=>e(t[0],t[1]))},containerRef:g,isToastActive:T}}function b(t){return t.targetTouches&&t.targetTouches.length>=1?t.targetTouches[0].clientX:t.clientX}function I(t){return t.targetTouches&&t.targetTouches.length>=1?t.targetTouches[0].clientY:t.clientY}function _(t){const[o,a]=React.useState(!1),[r,l]=React.useState(!1),c=React.useRef(null),u=React.useRef({start:0,x:0,y:0,delta:0,removalDistance:0,canCloseOnClick:!0,canDrag:!1,boundingRect:null,didMove:!1}).current,d=React.useRef(t),{autoClose:m,pauseOnHover:f,closeToast:g,onClick:h,closeOnClick:y}=t;function v(e){if(t.draggable){"touchstart"===e.nativeEvent.type&&e.nativeEvent.preventDefault(),u.didMove=!1,document.addEventListener("mousemove",_),document.addEventListener("mouseup",L),document.addEventListener("touchmove",_),document.addEventListener("touchend",L);const n=c.current;u.canCloseOnClick=!0,u.canDrag=!0,u.boundingRect=n.getBoundingClientRect(),n.style.transition="",u.x=b(e.nativeEvent),u.y=I(e.nativeEvent),"x"===t.draggableDirection?(u.start=u.x,u.removalDistance=n.offsetWidth*(t.draggablePercent/100)):(u.start=u.y,u.removalDistance=n.offsetHeight*(80===t.draggablePercent?1.5*t.draggablePercent:t.draggablePercent/100));}}function T(e){if(u.boundingRect){const{top:n,bottom:o,left:s,right:a}=u.boundingRect;"touchend"!==e.nativeEvent.type&&t.pauseOnHover&&u.x>=s&&u.x<=a&&u.y>=n&&u.y<=o?C():E();}}function E(){a(!0);}function C(){a(!1);}function _(e){const n=c.current;u.canDrag&&n&&(u.didMove=!0,o&&C(),u.x=b(e),u.y=I(e),u.delta="x"===t.draggableDirection?u.x-u.start:u.y-u.start,u.start!==u.x&&(u.canCloseOnClick=!1),n.style.transform=`translate${t.draggableDirection}(${u.delta}px)`,n.style.opacity=""+(1-Math.abs(u.delta/u.removalDistance)));}function L(){document.removeEventListener("mousemove",_),document.removeEventListener("mouseup",L),document.removeEventListener("touchmove",_),document.removeEventListener("touchend",L);const e=c.current;if(u.canDrag&&u.didMove&&e){if(u.canDrag=!1,Math.abs(u.delta)>u.removalDistance)return l(!0),void t.closeToast();e.style.transition="transform 0.2s, opacity 0.2s",e.style.transform=`translate${t.draggableDirection}(0)`,e.style.opacity="1";}}React.useEffect(()=>{d.current=t;}),React.useEffect(()=>(c.current&&c.current.addEventListener("d",E,{once:!0}),p(t.onOpen)&&t.onOpen(React.isValidElement(t.children)&&t.children.props),()=>{const t=d.current;p(t.onClose)&&t.onClose(React.isValidElement(t.children)&&t.children.props);}),[]),React.useEffect(()=>(t.pauseOnFocusLoss&&(document.hasFocus()||C(),window.addEventListener("focus",E),window.addEventListener("blur",C)),()=>{t.pauseOnFocusLoss&&(window.removeEventListener("focus",E),window.removeEventListener("blur",C));}),[t.pauseOnFocusLoss]);const O={onMouseDown:v,onTouchStart:v,onMouseUp:T,onTouchEnd:T};return m&&f&&(O.onMouseEnter=C,O.onMouseLeave=E),y&&(O.onClick=t=>{h&&h(t),u.canCloseOnClick&&g();}),{playToast:E,pauseToast:C,isRunning:o,preventExitTransition:r,toastRef:c,eventHandlers:O}}function L(e){let{closeToast:n,theme:o,ariaLabel:s="close"}=e;return React__default["default"].createElement("button",{className:`Toastify__close-button Toastify__close-button--${o}`,type:"button",onClick:t=>{t.stopPropagation(),n(t);},"aria-label":s},React__default["default"].createElement("svg",{"aria-hidden":"true",viewBox:"0 0 14 16"},React__default["default"].createElement("path",{fillRule:"evenodd",d:"M7.71 8.23l3.75 3.75-1.48 1.48-3.75-3.75-3.75 3.75L1 11.98l3.75-3.75L1 4.48 2.48 3l3.75 3.75L9.98 3l1.48 1.48-3.75 3.75z"})))}function O(e){let{delay:n,isRunning:o,closeToast:s,type:a="default",hide:r,className:i,style:l,controlledProgress:u,progress:d,rtl:m,isIn:f,theme:g}=e;const h=r||u&&0===d,y={...l,animationDuration:`${n}ms`,animationPlayState:o?"running":"paused",opacity:h?0:1};u&&(y.transform=`scaleX(${d})`);const v=clsx("Toastify__progress-bar",u?"Toastify__progress-bar--controlled":"Toastify__progress-bar--animated",`Toastify__progress-bar-theme--${g}`,`Toastify__progress-bar--${a}`,{"Toastify__progress-bar--rtl":m}),T=p(i)?i({rtl:m,type:a,defaultClassName:v}):clsx(v,i);return React__default["default"].createElement("div",{role:"progressbar","aria-hidden":h?"true":"false","aria-label":"notification timer",className:T,style:y,[u&&d>=1?"onTransitionEnd":"onAnimationEnd"]:u&&d<1?null:()=>{f&&s();}})}const N=n=>{const{isRunning:o,preventExitTransition:s,toastRef:r,eventHandlers:i}=_(n),{closeButton:l,children:u,autoClose:d,onClick:m,type:f,hideProgressBar:g,closeToast:h,transition:y,position:v,className:T,style:E,bodyClassName:C,bodyStyle:b,progressClassName:I,progressStyle:N,updateId:M,role:R,progress:w,rtl:x,toastId:$,deleteToast:k,isIn:P,isLoading:B,iconOut:D,closeOnClick:A,theme:z}=n,F=clsx("Toastify__toast",`Toastify__toast-theme--${z}`,`Toastify__toast--${f}`,{"Toastify__toast--rtl":x},{"Toastify__toast--close-on-click":A}),H=p(T)?T({rtl:x,position:v,type:f,defaultClassName:F}):clsx(F,T),S=!!w||!d,q={closeToast:h,type:f,theme:z};let Q=null;return !1===l||(Q=p(l)?l(q):React.isValidElement(l)?React.cloneElement(l,q):L(q)),React__default["default"].createElement(y,{isIn:P,done:k,position:v,preventExitTransition:s,nodeRef:r},React__default["default"].createElement("div",{id:$,onClick:m,className:H,...i,style:E,ref:r},React__default["default"].createElement("div",{...P&&{role:R},className:p(C)?C({type:f}):clsx("Toastify__toast-body",C),style:b},null!=D&&React__default["default"].createElement("div",{className:clsx("Toastify__toast-icon",{"Toastify--animate-icon Toastify__zoom-enter":!B})},D),React__default["default"].createElement("div",null,u)),Q,React__default["default"].createElement(O,{...M&&!S?{key:`pb-${M}`}:{},rtl:x,theme:z,delay:d,isRunning:o,isIn:P,closeToast:h,hide:g,type:f,style:N,className:I,controlledProgress:S,progress:w||0})))},M=function(t,e){return void 0===e&&(e=!1),{enter:`Toastify--animate Toastify__${t}-enter`,exit:`Toastify--animate Toastify__${t}-exit`,appendPosition:e}},R=h(M("bounce",!0));h(M("slide",!0));h(M("zoom"));h(M("flip"));const k=React.forwardRef((e,n)=>{const{getToastToRender:o,containerRef:a,isToastActive:r}=C(e),{className:i,style:l,rtl:u,containerId:d}=e;function f(t){const e=clsx("Toastify__toast-container",`Toastify__toast-container--${t}`,{"Toastify__toast-container--rtl":u});return p(i)?i({position:t,rtl:u,defaultClassName:e}):clsx(e,m(i))}return React.useEffect(()=>{n&&(n.current=a.current);},[]),React__default["default"].createElement("div",{ref:a,className:"Toastify",id:d},o((e,n)=>{const o=n.length?{...l}:{...l,pointerEvents:"none"};return React__default["default"].createElement("div",{className:f(e),style:o,key:`container-${e}`},n.map((e,o)=>{let{content:s,props:a}=e;return React__default["default"].createElement(N,{...a,isIn:r(a.toastId),style:{...a.style,"--nth":o+1,"--len":n.length},key:`toast-${a.key}`},s)}))}))});k.displayName="ToastContainer",k.defaultProps={position:"top-right",transition:R,autoClose:5e3,closeButton:L,pauseOnHover:!0,pauseOnFocusLoss:!0,closeOnClick:!0,draggable:!0,draggablePercent:80,draggableDirection:"x",role:"alert",theme:"light"};let P,B=new Map,D=[],A=1;function z(){return ""+A++}function F(t){return t&&(d(t.toastId)||u(t.toastId))?t.toastId:z()}function H(t,e){return B.size>0?v.emit(0,t,e):D.push({content:t,options:e}),e.toastId}function S(t,e){return {...e,type:e&&e.type||t,toastId:F(e)}}function q(t){return (e,n)=>H(e,S(t,n))}function Q(t,e){return H(t,S("default",e))}Q.loading=(t,e)=>H(t,S("default",{isLoading:!0,autoClose:!1,closeOnClick:!1,closeButton:!1,draggable:!1,...e})),Q.promise=function(t,e,n){let o,{pending:s,error:a,success:r}=e;s&&(o=d(s)?Q.loading(s,n):Q.loading(s.render,{...n,...s}));const i={isLoading:null,autoClose:null,closeOnClick:null,closeButton:null,draggable:null},l=(t,e,s)=>{if(null==e)return void Q.dismiss(o);const a={type:t,...i,...n,data:s},r=d(e)?{render:e}:e;return o?Q.update(o,{...a,...r}):Q(r.render,{...a,...r}),s},c=p(t)?t():t;return c.then(t=>l("success",r,t)).catch(t=>l("error",a,t)),c},Q.success=q("success"),Q.info=q("info"),Q.error=q("error"),Q.warning=q("warning"),Q.warn=Q.warning,Q.dark=(t,e)=>H(t,S("default",{theme:"dark",...e})),Q.dismiss=t=>{B.size>0?v.emit(1,t):D=D.filter(e=>null!=t&&e.options.toastId!==t);},Q.clearWaitingQueue=function(t){return void 0===t&&(t={}),v.emit(5,t)},Q.isActive=t=>{let e=!1;return B.forEach(n=>{n.isToastActive&&n.isToastActive(t)&&(e=!0);}),e},Q.update=function(t,e){void 0===e&&(e={}),setTimeout(()=>{const n=function(t,e){let{containerId:n}=e;const o=B.get(n||P);return o&&o.getToast(t)}(t,e);if(n){const{props:o,content:s}=n,a={delay:100,...o,...e,toastId:e.toastId||t,updateId:z()};a.toastId!==t&&(a.staleId=t);const r=a.render||s;delete a.render,H(r,a);}},0);},Q.done=t=>{Q.update(t,{progress:1});},Q.onChange=t=>(v.on(4,t),()=>{v.off(4,t);}),Q.POSITION={TOP_LEFT:"top-left",TOP_RIGHT:"top-right",TOP_CENTER:"top-center",BOTTOM_LEFT:"bottom-left",BOTTOM_RIGHT:"bottom-right",BOTTOM_CENTER:"bottom-center"},Q.TYPE={INFO:"info",SUCCESS:"success",WARNING:"warning",ERROR:"error",DEFAULT:"default"},v.on(2,t=>{P=t.containerId||t,B.set(P,t),D.forEach(t=>{v.emit(0,t.content,t.options);}),D=[];}).on(3,t=>{B.delete(t.containerId||t),0===B.size&&v.off(0).off(1).off(5);});
1250
-
1251
1332
  function PublishButton(_a) {
1252
1333
  var {
1253
1334
  status,
@@ -1261,7 +1342,7 @@ function PublishButton(_a) {
1261
1342
  });
1262
1343
  const publish = React__default["default"].useCallback(() => {
1263
1344
  mutation.reset();
1264
- mutation.mutateAsync(queryId).then(() => Q.success(isDraft ? "Published!" : "Unpublished!")).catch(error => Q.error(`Error: ${error}`));
1345
+ mutation.mutateAsync(queryId).then(() => reactToastify.toast.success(isDraft ? "Published!" : "Unpublished!")).catch(error => reactToastify.toast.error(`Error: ${error}`));
1265
1346
  }, [mutation, queryId]);
1266
1347
  return jsxRuntime.jsxs(ui.Button, Object.assign({
1267
1348
  scheme: "secondary",
@@ -1731,13 +1812,13 @@ function OrderCell({
1731
1812
  const moveDown = React__default["default"].useCallback(e => {
1732
1813
  e.stopPropagation();
1733
1814
  mutationDown.mutateAsync(postId).catch(error => {
1734
- Q.error(`Error: ${error}`);
1815
+ reactToastify.toast.error(`Error: ${error}`);
1735
1816
  });
1736
1817
  }, [mutationDown, postId]);
1737
1818
  const moveUp = React__default["default"].useCallback(e => {
1738
1819
  e.stopPropagation();
1739
1820
  mutationUp.mutateAsync(postId).catch(error => {
1740
- Q.error(`Error: ${error}`);
1821
+ reactToastify.toast.error(`Error: ${error}`);
1741
1822
  });
1742
1823
  }, [mutationUp, postId]);
1743
1824
  return jsxRuntime.jsxs(components.FlexCenter, {
@@ -2113,7 +2194,7 @@ function Internal({
2113
2194
  });
2114
2195
  const save = useMutate(mutation, {
2115
2196
  processInput,
2116
- successMsg: item => `${item.title} updated.`,
2197
+ successMsg: (item, values) => `${item.title} updated.`,
2117
2198
  errorMsg: (error, item) => `Error updating ${item.title}: ${error}`
2118
2199
  });
2119
2200
  let editorMaxW = undefined;
@@ -2523,13 +2604,13 @@ function ItemEditDialog$1(_a) {
2523
2604
  const formItem = formToQueryData ? formToQueryData(item) : Object.assign({}, item);
2524
2605
  yield mutation.mutateAsync(formItem).then(response => {
2525
2606
  var _a;
2526
- if (onSuccess) onSuccess(formItem, response);else Q.success(`${title ? title(formItem) : (_a = formItem.name) !== null && _a !== void 0 ? _a : formItem.title} ${queryId ? "saved" : "created"}`);
2607
+ if (onSuccess) onSuccess(formItem, response);else reactToastify.toast.success(`${title ? title(formItem) : (_a = formItem.name) !== null && _a !== void 0 ? _a : formItem.title} ${queryId ? "saved" : "created"}`);
2527
2608
  // closing delete modal
2528
2609
  onClose === null || onClose === void 0 ? void 0 : onClose();
2529
2610
  }).catch(error => {
2530
2611
  var _a;
2531
2612
  console.error("on error", error);
2532
- if (onSaveError) onSaveError(item);else Q.error(`Couldn't save ${title ? title(formItem) : (_a = formItem.name) !== null && _a !== void 0 ? _a : formItem.title}`);
2613
+ if (onSaveError) onSaveError(item);else reactToastify.toast.error(`Couldn't save ${title ? title(formItem) : (_a = formItem.name) !== null && _a !== void 0 ? _a : formItem.title}`);
2533
2614
  actions.setSubmitting(false);
2534
2615
  });
2535
2616
  }), [mutation, formToQueryData, onSuccess, onSaveError, onClose]);
@@ -2919,7 +3000,7 @@ function TableRowPublishPostButton$1(_a) {
2919
3000
  event === null || event === void 0 ? void 0 : event.preventDefault();
2920
3001
  event === null || event === void 0 ? void 0 : event.stopPropagation();
2921
3002
  mutation.reset();
2922
- mutation.mutateAsync(id).then(() => Q.success(isDraft ? "Published!" : "Unpublished!")).catch(error => Q.error(`Error: ${error}`));
3003
+ mutation.mutateAsync(id).then(() => reactToastify.toast.success(isDraft ? "Published!" : "Unpublished!")).catch(error => reactToastify.toast.error(`Error: ${error}`));
2923
3004
  }, [mutation, id]);
2924
3005
  return jsxRuntime.jsx(ui.Button, Object.assign({
2925
3006
  w: "10",
@@ -3770,7 +3851,7 @@ function AttachDialog(_a) {
3770
3851
  mutation.mutateAsync({
3771
3852
  resources: selectedResources
3772
3853
  }).then(response => {
3773
- if (onSuccess) onSuccess(response);else Q.success(`${itemLabel} saved`);
3854
+ if (onSuccess) onSuccess(response);else reactToastify.toast.success(`${itemLabel} saved`);
3774
3855
  if (invalidateQueriesOnSuccess) queryClient.invalidateQueries({
3775
3856
  queryKey: queryKey
3776
3857
  });
@@ -3778,7 +3859,7 @@ function AttachDialog(_a) {
3778
3859
  onClose === null || onClose === void 0 ? void 0 : onClose();
3779
3860
  }).catch(error => {
3780
3861
  console.error("on error", error);
3781
- if (onSaveError) onSaveError();else Q.error(`Error adding ${itemLabel}`);
3862
+ if (onSaveError) onSaveError();else reactToastify.toast.error(`Error adding ${itemLabel}`);
3782
3863
  });
3783
3864
  }, [mutation, queryId, onSuccess, queryClient, onSaveError, onClose]);
3784
3865
  const resources = React__default["default"].useMemo(() => {
@@ -4013,13 +4094,13 @@ function ItemEditDialog(_a) {
4013
4094
  const formItem = formToQueryData ? formToQueryData(item) : Object.assign({}, item);
4014
4095
  mutation.mutateAsync(formItem).then(response => {
4015
4096
  var _a;
4016
- if (onSuccess) onSuccess(formItem, response);else Q.success(`${title ? title(formItem) : (_a = formItem.name) !== null && _a !== void 0 ? _a : formItem.title} ${queryId ? "saved" : "created"}`);
4097
+ if (onSuccess) onSuccess(formItem, response);else reactToastify.toast.success(`${title ? title(formItem) : (_a = formItem.name) !== null && _a !== void 0 ? _a : formItem.title} ${queryId ? "saved" : "created"}`);
4017
4098
  // closing delete modal
4018
4099
  onClose === null || onClose === void 0 ? void 0 : onClose();
4019
4100
  }).catch(error => {
4020
4101
  var _a;
4021
4102
  console.error("on error", error);
4022
- if (onSaveError) onSaveError(item);else Q.error(`Couldn't save ${title ? title(formItem) : (_a = formItem.name) !== null && _a !== void 0 ? _a : formItem.title}`);
4103
+ if (onSaveError) onSaveError(item);else reactToastify.toast.error(`Couldn't save ${title ? title(formItem) : (_a = formItem.name) !== null && _a !== void 0 ? _a : formItem.title}`);
4023
4104
  actions.setSubmitting(false);
4024
4105
  });
4025
4106
  }, [mutation, formToQueryData, onSuccess, onSaveError, onClose]);
@@ -4313,7 +4394,7 @@ function TableRowPublishPostButton(_a) {
4313
4394
  event === null || event === void 0 ? void 0 : event.preventDefault();
4314
4395
  event === null || event === void 0 ? void 0 : event.stopPropagation();
4315
4396
  mutation.reset();
4316
- mutation.mutateAsync(id).then(() => Q.success(isDraft ? "Published!" : "Unpublished!")).catch(error => Q.error(`Error: ${error}`));
4397
+ mutation.mutateAsync(id).then(() => reactToastify.toast.success(isDraft ? "Published!" : "Unpublished!")).catch(error => reactToastify.toast.error(`Error: ${error}`));
4317
4398
  }, [mutation, id]);
4318
4399
  return jsxRuntime.jsx(ui.Button, Object.assign({
4319
4400
  w: "10",
@@ -4333,7 +4414,6 @@ exports.AttachDialog = AttachDialog;
4333
4414
  exports.Breadcrumbs = Breadcrumbs;
4334
4415
  exports.DialogButton = DialogButton;
4335
4416
  exports.FormActionDialog = FormActionDialog;
4336
- exports.IconButton = IconButton;
4337
4417
  exports.InvalidateButton = InvalidateButton;
4338
4418
  exports.ItemEditDialog = ItemEditDialog;
4339
4419
  exports.NavigateButton = NavigateButton;