{"ast":null,"code":"'use client';\n\nimport _defineProperty from \"C:/ldt/LDT/Safemate_Management/node_modules/@babel/runtime/helpers/esm/defineProperty.js\";\nimport _slicedToArray from \"C:/ldt/LDT/Safemate_Management/node_modules/@babel/runtime/helpers/esm/slicedToArray.js\";\nimport _objectSpread from \"C:/ldt/LDT/Safemate_Management/node_modules/@babel/runtime/helpers/esm/objectSpread2.js\";\nimport _objectWithoutProperties from \"C:/ldt/LDT/Safemate_Management/node_modules/@babel/runtime/helpers/esm/objectWithoutProperties.js\";\nimport _toConsumableArray from \"C:/ldt/LDT/Safemate_Management/node_modules/@babel/runtime/helpers/esm/toConsumableArray.js\";\nvar _excluded = [\"theme\", \"type\"],\n  _excluded2 = [\"delay\", \"staleId\"];\nimport t, { isValidElement as e, useRef as n, useLayoutEffect as o, useEffect as s, cloneElement as a, useReducer as r, useState as i, forwardRef as l } from \"react\";\nimport c from \"clsx\";\nvar u = function u(t) {\n    return \"number\" == typeof t && !isNaN(t);\n  },\n  d = function d(t) {\n    return \"string\" == typeof t;\n  },\n  p = function p(t) {\n    return \"function\" == typeof t;\n  },\n  m = function m(t) {\n    return d(t) || p(t) ? t : null;\n  },\n  f = function f(t) {\n    return e(t) || d(t) || p(t) || u(t);\n  };\nfunction g(t, e, n) {\n  void 0 === n && (n = 300);\n  var o = t.scrollHeight,\n    s = t.style;\n  requestAnimationFrame(function () {\n    s.minHeight = \"initial\", s.height = o + \"px\", s.transition = \"all \".concat(n, \"ms\"), requestAnimationFrame(function () {\n      s.height = \"0\", s.padding = \"0\", s.margin = \"0\", setTimeout(e, n);\n    });\n  });\n}\nfunction h(e) {\n  var a = e.enter,\n    r = e.exit,\n    _e$appendPosition = e.appendPosition,\n    i = _e$appendPosition === void 0 ? !1 : _e$appendPosition,\n    _e$collapse = e.collapse,\n    l = _e$collapse === void 0 ? !0 : _e$collapse,\n    _e$collapseDuration = e.collapseDuration,\n    c = _e$collapseDuration === void 0 ? 300 : _e$collapseDuration;\n  return function (e) {\n    var u = e.children,\n      d = e.position,\n      p = e.preventExitTransition,\n      m = e.done,\n      f = e.nodeRef,\n      h = e.isIn;\n    var y = i ? \"\".concat(a, \"--\").concat(d) : a,\n      v = i ? \"\".concat(r, \"--\").concat(d) : r,\n      T = n(0);\n    return o(function () {\n      var _t$classList2;\n      var t = f.current,\n        e = y.split(\" \"),\n        _n = function n(o) {\n          var _t$classList;\n          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 = t.classList).remove.apply(_t$classList, _toConsumableArray(e)));\n        };\n      (_t$classList2 = t.classList).add.apply(_t$classList2, _toConsumableArray(e)), t.addEventListener(\"animationend\", _n), t.addEventListener(\"animationcancel\", _n);\n    }, []), s(function () {\n      var t = f.current,\n        _e = function e() {\n          t.removeEventListener(\"animationend\", _e), l ? g(t, m, c) : m();\n        };\n      h || (p ? _e() : (T.current = 1, t.className += \" \".concat(v), t.addEventListener(\"animationend\", _e)));\n    }, [h]), t.createElement(t.Fragment, null, u);\n  };\n}\nfunction y(t, e) {\n  return {\n    content: t.content,\n    containerId: t.props.containerId,\n    id: t.props.toastId,\n    theme: t.props.theme,\n    type: t.props.type,\n    data: t.props.data || {},\n    isLoading: t.props.isLoading,\n    icon: t.props.icon,\n    status: e\n  };\n}\nvar v = {\n    list: new Map(),\n    emitQueue: new Map(),\n    on: function on(t, e) {\n      return this.list.has(t) || this.list.set(t, []), this.list.get(t).push(e), this;\n    },\n    off: function off(t, e) {\n      if (e) {\n        var _n2 = this.list.get(t).filter(function (t) {\n          return t !== e;\n        });\n        return this.list.set(t, _n2), this;\n      }\n      return this.list[\"delete\"](t), this;\n    },\n    cancelEmit: function cancelEmit(t) {\n      var e = this.emitQueue.get(t);\n      return e && (e.forEach(clearTimeout), this.emitQueue[\"delete\"](t)), this;\n    },\n    emit: function emit(t) {\n      var _arguments = arguments,\n        _this = this;\n      this.list.has(t) && this.list.get(t).forEach(function (e) {\n        var n = setTimeout(function () {\n          e.apply(void 0, _toConsumableArray([].slice.call(_arguments, 1)));\n        }, 0);\n        _this.emitQueue.has(t) || _this.emitQueue.set(t, []), _this.emitQueue.get(t).push(n);\n      });\n    }\n  },\n  T = function T(e) {\n    var n = e.theme,\n      o = e.type,\n      s = _objectWithoutProperties(e, _excluded);\n    return t.createElement(\"svg\", _objectSpread({\n      viewBox: \"0 0 24 24\",\n      width: \"100%\",\n      height: \"100%\",\n      fill: \"colored\" === n ? \"currentColor\" : \"var(--toastify-icon-color-\".concat(o, \")\")\n    }, s));\n  },\n  E = {\n    info: function info(e) {\n      return t.createElement(T, _objectSpread({}, e), t.createElement(\"path\", {\n        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\"\n      }));\n    },\n    warning: function warning(e) {\n      return t.createElement(T, _objectSpread({}, e), t.createElement(\"path\", {\n        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\"\n      }));\n    },\n    success: function success(e) {\n      return t.createElement(T, _objectSpread({}, e), t.createElement(\"path\", {\n        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\"\n      }));\n    },\n    error: function error(e) {\n      return t.createElement(T, _objectSpread({}, e), t.createElement(\"path\", {\n        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\"\n      }));\n    },\n    spinner: function spinner() {\n      return t.createElement(\"div\", {\n        className: \"Toastify__spinner\"\n      });\n    }\n  };\nfunction C(t) {\n  var _r = r(function (t) {\n      return t + 1;\n    }, 0),\n    _r2 = _slicedToArray(_r, 2),\n    o = _r2[1],\n    _i = i([]),\n    _i2 = _slicedToArray(_i, 2),\n    l = _i2[0],\n    c = _i2[1],\n    g = n(null),\n    h = n(new Map()).current,\n    T = function T(t) {\n      return -1 !== l.indexOf(t);\n    },\n    C = n({\n      toastKey: 1,\n      displayedToast: 0,\n      count: 0,\n      queue: [],\n      props: t,\n      containerId: null,\n      isToastActive: T,\n      getToast: function getToast(t) {\n        return h.get(t);\n      }\n    }).current;\n  function b(t) {\n    var e = t.containerId;\n    var n = C.props.limit;\n    !n || e && C.containerId !== e || (C.count -= C.queue.length, C.queue = []);\n  }\n  function I(t) {\n    c(function (e) {\n      return null == t ? [] : e.filter(function (e) {\n        return e !== t;\n      });\n    });\n  }\n  function _() {\n    var _C$queue$shift = C.queue.shift(),\n      t = _C$queue$shift.toastContent,\n      e = _C$queue$shift.toastProps,\n      n = _C$queue$shift.staleId;\n    O(t, e, n);\n  }\n  function L(t, n) {\n    var s = n.delay,\n      r = n.staleId,\n      i = _objectWithoutProperties(n, _excluded2);\n    if (!f(t) || function (t) {\n      return !g.current || C.props.enableMultiContainer && t.containerId !== C.props.containerId || h.has(t.toastId) && null == t.updateId;\n    }(i)) return;\n    var l = i.toastId,\n      c = i.updateId,\n      T = i.data,\n      b = C.props,\n      L = function L() {\n        return I(l);\n      },\n      N = null == c;\n    N && C.count++;\n    var M = _objectSpread(_objectSpread(_objectSpread({}, b), {}, {\n      style: b.toastStyle,\n      key: C.toastKey++\n    }, Object.fromEntries(Object.entries(i).filter(function (t) {\n      var _t = _slicedToArray(t, 2),\n        e = _t[0],\n        n = _t[1];\n      return null != n;\n    }))), {}, {\n      toastId: l,\n      updateId: c,\n      data: T,\n      closeToast: L,\n      isIn: !1,\n      className: m(i.className || b.toastClassName),\n      bodyClassName: m(i.bodyClassName || b.bodyClassName),\n      progressClassName: m(i.progressClassName || b.progressClassName),\n      autoClose: !i.isLoading && (R = i.autoClose, w = b.autoClose, !1 === R || u(R) && R > 0 ? R : w),\n      deleteToast: function deleteToast() {\n        var t = y(h.get(l), \"removed\");\n        h[\"delete\"](l), v.emit(4, t);\n        var e = C.queue.length;\n        if (C.count = null == l ? C.count - C.displayedToast : C.count - 1, C.count < 0 && (C.count = 0), e > 0) {\n          var _t2 = null == l ? C.props.limit : 1;\n          if (1 === e || 1 === _t2) C.displayedToast++, _();else {\n            var _n3 = _t2 > e ? e : _t2;\n            C.displayedToast = _n3;\n            for (var _t3 = 0; _t3 < _n3; _t3++) _();\n          }\n        } else o();\n      }\n    });\n    var R, w;\n    M.iconOut = function (t) {\n      var n = t.theme,\n        o = t.type,\n        s = t.isLoading,\n        r = t.icon,\n        i = null;\n      var l = {\n        theme: n,\n        type: o\n      };\n      return !1 === r || (p(r) ? i = r(l) : e(r) ? i = a(r, l) : d(r) || u(r) ? i = r : s ? i = E.spinner() : function (t) {\n        return t in E;\n      }(o) && (i = E[o](l))), i;\n    }(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);\n    var x = t;\n    e(t) && !d(t.type) ? x = a(t, {\n      closeToast: L,\n      toastProps: M,\n      data: T\n    }) : p(t) && (x = t({\n      closeToast: L,\n      toastProps: M,\n      data: T\n    })), b.limit && b.limit > 0 && C.count > b.limit && N ? C.queue.push({\n      toastContent: x,\n      toastProps: M,\n      staleId: r\n    }) : u(s) ? setTimeout(function () {\n      O(x, M, r);\n    }, s) : O(x, M, r);\n  }\n  function O(t, e, n) {\n    var o = e.toastId;\n    n && h[\"delete\"](n);\n    var s = {\n      content: t,\n      props: e\n    };\n    h.set(o, s), c(function (t) {\n      return [].concat(_toConsumableArray(t), [o]).filter(function (t) {\n        return t !== n;\n      });\n    }), v.emit(4, y(s, null == s.props.updateId ? \"added\" : \"updated\"));\n  }\n  return s(function () {\n    return C.containerId = t.containerId, v.cancelEmit(3).on(0, L).on(1, function (t) {\n      return g.current && I(t);\n    }).on(5, b).emit(2, C), function () {\n      h.clear(), v.emit(3, C);\n    };\n  }, []), s(function () {\n    C.props = t, C.isToastActive = T, C.displayedToast = l.length;\n  }), {\n    getToastToRender: function getToastToRender(e) {\n      var n = new Map(),\n        o = Array.from(h.values());\n      return t.newestOnTop && o.reverse(), o.forEach(function (t) {\n        var e = t.props.position;\n        n.has(e) || n.set(e, []), n.get(e).push(t);\n      }), Array.from(n, function (t) {\n        return e(t[0], t[1]);\n      });\n    },\n    containerRef: g,\n    isToastActive: T\n  };\n}\nfunction b(t) {\n  return t.targetTouches && t.targetTouches.length >= 1 ? t.targetTouches[0].clientX : t.clientX;\n}\nfunction I(t) {\n  return t.targetTouches && t.targetTouches.length >= 1 ? t.targetTouches[0].clientY : t.clientY;\n}\nfunction _(t) {\n  var _i3 = i(!1),\n    _i4 = _slicedToArray(_i3, 2),\n    o = _i4[0],\n    a = _i4[1],\n    _i5 = i(!1),\n    _i6 = _slicedToArray(_i5, 2),\n    r = _i6[0],\n    l = _i6[1],\n    c = n(null),\n    u = n({\n      start: 0,\n      x: 0,\n      y: 0,\n      delta: 0,\n      removalDistance: 0,\n      canCloseOnClick: !0,\n      canDrag: !1,\n      boundingRect: null,\n      didMove: !1\n    }).current,\n    d = n(t),\n    m = t.autoClose,\n    f = t.pauseOnHover,\n    g = t.closeToast,\n    h = t.onClick,\n    y = t.closeOnClick;\n  function v(e) {\n    if (t.draggable) {\n      \"touchstart\" === e.nativeEvent.type && e.nativeEvent.preventDefault(), u.didMove = !1, document.addEventListener(\"mousemove\", _), document.addEventListener(\"mouseup\", L), document.addEventListener(\"touchmove\", _), document.addEventListener(\"touchend\", L);\n      var _n4 = c.current;\n      u.canCloseOnClick = !0, u.canDrag = !0, u.boundingRect = _n4.getBoundingClientRect(), _n4.style.transition = \"\", u.x = b(e.nativeEvent), u.y = I(e.nativeEvent), \"x\" === t.draggableDirection ? (u.start = u.x, u.removalDistance = _n4.offsetWidth * (t.draggablePercent / 100)) : (u.start = u.y, u.removalDistance = _n4.offsetHeight * (80 === t.draggablePercent ? 1.5 * t.draggablePercent : t.draggablePercent / 100));\n    }\n  }\n  function T(e) {\n    if (u.boundingRect) {\n      var _u$boundingRect = u.boundingRect,\n        _n5 = _u$boundingRect.top,\n        _o = _u$boundingRect.bottom,\n        _s = _u$boundingRect.left,\n        _a = _u$boundingRect.right;\n      \"touchend\" !== e.nativeEvent.type && t.pauseOnHover && u.x >= _s && u.x <= _a && u.y >= _n5 && u.y <= _o ? C() : E();\n    }\n  }\n  function E() {\n    a(!0);\n  }\n  function C() {\n    a(!1);\n  }\n  function _(e) {\n    var n = c.current;\n    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)));\n  }\n  function L() {\n    document.removeEventListener(\"mousemove\", _), document.removeEventListener(\"mouseup\", L), document.removeEventListener(\"touchmove\", _), document.removeEventListener(\"touchend\", L);\n    var e = c.current;\n    if (u.canDrag && u.didMove && e) {\n      if (u.canDrag = !1, Math.abs(u.delta) > u.removalDistance) return l(!0), void t.closeToast();\n      e.style.transition = \"transform 0.2s, opacity 0.2s\", e.style.transform = \"translate\".concat(t.draggableDirection, \"(0)\"), e.style.opacity = \"1\";\n    }\n  }\n  s(function () {\n    d.current = t;\n  }), s(function () {\n    return c.current && c.current.addEventListener(\"d\", E, {\n      once: !0\n    }), p(t.onOpen) && t.onOpen(e(t.children) && t.children.props), function () {\n      var t = d.current;\n      p(t.onClose) && t.onClose(e(t.children) && t.children.props);\n    };\n  }, []), s(function () {\n    return t.pauseOnFocusLoss && (document.hasFocus() || C(), window.addEventListener(\"focus\", E), window.addEventListener(\"blur\", C)), function () {\n      t.pauseOnFocusLoss && (window.removeEventListener(\"focus\", E), window.removeEventListener(\"blur\", C));\n    };\n  }, [t.pauseOnFocusLoss]);\n  var O = {\n    onMouseDown: v,\n    onTouchStart: v,\n    onMouseUp: T,\n    onTouchEnd: T\n  };\n  return m && f && (O.onMouseEnter = C, O.onMouseLeave = E), y && (O.onClick = function (t) {\n    h && h(t), u.canCloseOnClick && g();\n  }), {\n    playToast: E,\n    pauseToast: C,\n    isRunning: o,\n    preventExitTransition: r,\n    toastRef: c,\n    eventHandlers: O\n  };\n}\nfunction L(e) {\n  var n = e.closeToast,\n    o = e.theme,\n    _e$ariaLabel = e.ariaLabel,\n    s = _e$ariaLabel === void 0 ? \"close\" : _e$ariaLabel;\n  return t.createElement(\"button\", {\n    className: \"Toastify__close-button Toastify__close-button--\".concat(o),\n    type: \"button\",\n    onClick: function onClick(t) {\n      t.stopPropagation(), n(t);\n    },\n    \"aria-label\": s\n  }, t.createElement(\"svg\", {\n    \"aria-hidden\": \"true\",\n    viewBox: \"0 0 14 16\"\n  }, t.createElement(\"path\", {\n    fillRule: \"evenodd\",\n    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\"\n  })));\n}\nfunction O(e) {\n  var n = e.delay,\n    o = e.isRunning,\n    s = e.closeToast,\n    _e$type = e.type,\n    a = _e$type === void 0 ? \"default\" : _e$type,\n    r = e.hide,\n    i = e.className,\n    l = e.style,\n    u = e.controlledProgress,\n    d = e.progress,\n    m = e.rtl,\n    f = e.isIn,\n    g = e.theme;\n  var h = r || u && 0 === d,\n    y = _objectSpread(_objectSpread({}, l), {}, {\n      animationDuration: \"\".concat(n, \"ms\"),\n      animationPlayState: o ? \"running\" : \"paused\",\n      opacity: h ? 0 : 1\n    });\n  u && (y.transform = \"scaleX(\".concat(d, \")\"));\n  var v = c(\"Toastify__progress-bar\", u ? \"Toastify__progress-bar--controlled\" : \"Toastify__progress-bar--animated\", \"Toastify__progress-bar-theme--\".concat(g), \"Toastify__progress-bar--\".concat(a), {\n      \"Toastify__progress-bar--rtl\": m\n    }),\n    T = p(i) ? i({\n      rtl: m,\n      type: a,\n      defaultClassName: v\n    }) : c(v, i);\n  return t.createElement(\"div\", _defineProperty({\n    role: \"progressbar\",\n    \"aria-hidden\": h ? \"true\" : \"false\",\n    \"aria-label\": \"notification timer\",\n    className: T,\n    style: y\n  }, u && d >= 1 ? \"onTransitionEnd\" : \"onAnimationEnd\", u && d < 1 ? null : function () {\n    f && s();\n  }));\n}\nvar N = function N(n) {\n    var _ref = _(n),\n      o = _ref.isRunning,\n      s = _ref.preventExitTransition,\n      r = _ref.toastRef,\n      i = _ref.eventHandlers,\n      l = n.closeButton,\n      u = n.children,\n      d = n.autoClose,\n      m = n.onClick,\n      f = n.type,\n      g = n.hideProgressBar,\n      h = n.closeToast,\n      y = n.transition,\n      v = n.position,\n      T = n.className,\n      E = n.style,\n      C = n.bodyClassName,\n      b = n.bodyStyle,\n      I = n.progressClassName,\n      N = n.progressStyle,\n      M = n.updateId,\n      R = n.role,\n      w = n.progress,\n      x = n.rtl,\n      $ = n.toastId,\n      k = n.deleteToast,\n      P = n.isIn,\n      B = n.isLoading,\n      D = n.iconOut,\n      A = n.closeOnClick,\n      z = n.theme,\n      F = c(\"Toastify__toast\", \"Toastify__toast-theme--\".concat(z), \"Toastify__toast--\".concat(f), {\n        \"Toastify__toast--rtl\": x\n      }, {\n        \"Toastify__toast--close-on-click\": A\n      }),\n      H = p(T) ? T({\n        rtl: x,\n        position: v,\n        type: f,\n        defaultClassName: F\n      }) : c(F, T),\n      S = !!w || !d,\n      q = {\n        closeToast: h,\n        type: f,\n        theme: z\n      };\n    var Q = null;\n    return !1 === l || (Q = p(l) ? l(q) : e(l) ? a(l, q) : L(q)), t.createElement(y, {\n      isIn: P,\n      done: k,\n      position: v,\n      preventExitTransition: s,\n      nodeRef: r\n    }, t.createElement(\"div\", _objectSpread(_objectSpread({\n      id: $,\n      onClick: m,\n      className: H\n    }, i), {}, {\n      style: E,\n      ref: r\n    }), t.createElement(\"div\", _objectSpread(_objectSpread({}, P && {\n      role: R\n    }), {}, {\n      className: p(C) ? C({\n        type: f\n      }) : c(\"Toastify__toast-body\", C),\n      style: b\n    }), null != D && t.createElement(\"div\", {\n      className: c(\"Toastify__toast-icon\", {\n        \"Toastify--animate-icon Toastify__zoom-enter\": !B\n      })\n    }, D), t.createElement(\"div\", null, u)), Q, t.createElement(O, _objectSpread(_objectSpread({}, M && !S ? {\n      key: \"pb-\".concat(M)\n    } : {}), {}, {\n      rtl: x,\n      theme: z,\n      delay: d,\n      isRunning: o,\n      isIn: P,\n      closeToast: h,\n      hide: g,\n      type: f,\n      style: N,\n      className: I,\n      controlledProgress: S,\n      progress: w || 0\n    }))));\n  },\n  M = function M(t, e) {\n    return void 0 === e && (e = !1), {\n      enter: \"Toastify--animate Toastify__\".concat(t, \"-enter\"),\n      exit: \"Toastify--animate Toastify__\".concat(t, \"-exit\"),\n      appendPosition: e\n    };\n  },\n  R = h(M(\"bounce\", !0)),\n  w = h(M(\"slide\", !0)),\n  x = h(M(\"zoom\")),\n  $ = h(M(\"flip\")),\n  k = l(function (e, n) {\n    var _C = C(e),\n      o = _C.getToastToRender,\n      a = _C.containerRef,\n      r = _C.isToastActive,\n      i = e.className,\n      l = e.style,\n      u = e.rtl,\n      d = e.containerId;\n    function f(t) {\n      var e = c(\"Toastify__toast-container\", \"Toastify__toast-container--\".concat(t), {\n        \"Toastify__toast-container--rtl\": u\n      });\n      return p(i) ? i({\n        position: t,\n        rtl: u,\n        defaultClassName: e\n      }) : c(e, m(i));\n    }\n    return s(function () {\n      n && (n.current = a.current);\n    }, []), t.createElement(\"div\", {\n      ref: a,\n      className: \"Toastify\",\n      id: d\n    }, o(function (e, n) {\n      var o = n.length ? _objectSpread({}, l) : _objectSpread(_objectSpread({}, l), {}, {\n        pointerEvents: \"none\"\n      });\n      return t.createElement(\"div\", {\n        className: f(e),\n        style: o,\n        key: \"container-\".concat(e)\n      }, n.map(function (e, o) {\n        var s = e.content,\n          a = e.props;\n        return t.createElement(N, _objectSpread(_objectSpread({}, a), {}, {\n          isIn: r(a.toastId),\n          style: _objectSpread(_objectSpread({}, a.style), {}, {\n            \"--nth\": o + 1,\n            \"--len\": n.length\n          }),\n          key: \"toast-\".concat(a.key)\n        }), s);\n      }));\n    }));\n  });\nk.displayName = \"ToastContainer\", k.defaultProps = {\n  position: \"top-right\",\n  transition: R,\n  autoClose: 5e3,\n  closeButton: L,\n  pauseOnHover: !0,\n  pauseOnFocusLoss: !0,\n  closeOnClick: !0,\n  draggable: !0,\n  draggablePercent: 80,\n  draggableDirection: \"x\",\n  role: \"alert\",\n  theme: \"light\"\n};\nvar P,\n  B = new Map(),\n  D = [],\n  A = 1;\nfunction z() {\n  return \"\" + A++;\n}\nfunction F(t) {\n  return t && (d(t.toastId) || u(t.toastId)) ? t.toastId : z();\n}\nfunction H(t, e) {\n  return B.size > 0 ? v.emit(0, t, e) : D.push({\n    content: t,\n    options: e\n  }), e.toastId;\n}\nfunction S(t, e) {\n  return _objectSpread(_objectSpread({}, e), {}, {\n    type: e && e.type || t,\n    toastId: F(e)\n  });\n}\nfunction q(t) {\n  return function (e, n) {\n    return H(e, S(t, n));\n  };\n}\nfunction Q(t, e) {\n  return H(t, S(\"default\", e));\n}\nQ.loading = function (t, e) {\n  return H(t, S(\"default\", _objectSpread({\n    isLoading: !0,\n    autoClose: !1,\n    closeOnClick: !1,\n    closeButton: !1,\n    draggable: !1\n  }, e)));\n}, Q.promise = function (t, e, n) {\n  var o,\n    s = e.pending,\n    a = e.error,\n    r = e.success;\n  s && (o = d(s) ? Q.loading(s, n) : Q.loading(s.render, _objectSpread(_objectSpread({}, n), s)));\n  var i = {\n      isLoading: null,\n      autoClose: null,\n      closeOnClick: null,\n      closeButton: null,\n      draggable: null\n    },\n    l = function l(t, e, s) {\n      if (null == e) return void Q.dismiss(o);\n      var a = _objectSpread(_objectSpread(_objectSpread({\n          type: t\n        }, i), n), {}, {\n          data: s\n        }),\n        r = d(e) ? {\n          render: e\n        } : e;\n      return o ? Q.update(o, _objectSpread(_objectSpread({}, a), r)) : Q(r.render, _objectSpread(_objectSpread({}, a), r)), s;\n    },\n    c = p(t) ? t() : t;\n  return c.then(function (t) {\n    return l(\"success\", r, t);\n  })[\"catch\"](function (t) {\n    return l(\"error\", a, t);\n  }), c;\n}, 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) {\n  return H(t, S(\"default\", _objectSpread({\n    theme: \"dark\"\n  }, e)));\n}, Q.dismiss = function (t) {\n  B.size > 0 ? v.emit(1, t) : D = D.filter(function (e) {\n    return null != t && e.options.toastId !== t;\n  });\n}, Q.clearWaitingQueue = function (t) {\n  return void 0 === t && (t = {}), v.emit(5, t);\n}, Q.isActive = function (t) {\n  var e = !1;\n  return B.forEach(function (n) {\n    n.isToastActive && n.isToastActive(t) && (e = !0);\n  }), e;\n}, Q.update = function (t, e) {\n  void 0 === e && (e = {}), setTimeout(function () {\n    var n = function (t, e) {\n      var n = e.containerId;\n      var o = B.get(n || P);\n      return o && o.getToast(t);\n    }(t, e);\n    if (n) {\n      var _o2 = n.props,\n        _s2 = n.content,\n        _a2 = _objectSpread(_objectSpread(_objectSpread({\n          delay: 100\n        }, _o2), e), {}, {\n          toastId: e.toastId || t,\n          updateId: z()\n        });\n      _a2.toastId !== t && (_a2.staleId = t);\n      var _r3 = _a2.render || _s2;\n      delete _a2.render, H(_r3, _a2);\n    }\n  }, 0);\n}, Q.done = function (t) {\n  Q.update(t, {\n    progress: 1\n  });\n}, Q.onChange = function (t) {\n  return v.on(4, t), function () {\n    v.off(4, t);\n  };\n}, Q.POSITION = {\n  TOP_LEFT: \"top-left\",\n  TOP_RIGHT: \"top-right\",\n  TOP_CENTER: \"top-center\",\n  BOTTOM_LEFT: \"bottom-left\",\n  BOTTOM_RIGHT: \"bottom-right\",\n  BOTTOM_CENTER: \"bottom-center\"\n}, Q.TYPE = {\n  INFO: \"info\",\n  SUCCESS: \"success\",\n  WARNING: \"warning\",\n  ERROR: \"error\",\n  DEFAULT: \"default\"\n}, v.on(2, function (t) {\n  P = t.containerId || t, B.set(P, t), D.forEach(function (t) {\n    v.emit(0, t.content, t.options);\n  }), D = [];\n}).on(3, function (t) {\n  B[\"delete\"](t.containerId || t), 0 === B.size && v.off(0).off(1).off(5);\n});\nexport { R as Bounce, $ as Flip, E as Icons, w as Slide, k as ToastContainer, x as Zoom, g as collapseToast, h as cssTransition, Q as toast, _ as useToast, C as useToastContainer };","map":{"version":3,"sources":["C:\\ldt\\LDT\\Safemate_Management\\node_modules\\react-toastify\\src\\utils\\propValidator.ts"],"names":["isNum"],"mappings":";;AAEaA,OAAAA,eAAAA;AAAAA,OAAAA,cAAAA;AAAAA,OAAAA,aAAAA;AAAAA,OAAAA,wBAAAA;AAAAA,OAAAA,kBAAAA;AAAAA,IAAAA,SAAAA;EAAAA,UAAAA","sourcesContent":["import { isValidElement } from 'react';\n\nexport const isNum = (v: any): v is Number =>\n  typeof v === 'number' && !isNaN(v);\n\nexport const isStr = (v: any): v is String => typeof v === 'string';\n\nexport const isFn = (v: any): v is Function => typeof v === 'function';\n\nexport const parseClassName = (v: any) => (isStr(v) || isFn(v) ? v : null);\n\nexport const getAutoCloseDelay = (\n  toastAutoClose?: false | number,\n  containerAutoClose?: false | number\n) =>\n  toastAutoClose === false || (isNum(toastAutoClose) && toastAutoClose > 0)\n    ? toastAutoClose\n    : containerAutoClose;\n\nexport const canBeRendered = <T>(content: T): boolean =>\n  isValidElement(content) || isStr(content) || isFn(content) || isNum(content);\n"]},"metadata":{},"sourceType":"module","externalDependencies":[]}