fui-material 2.2.15 → 2.2.16

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.
@@ -49989,17 +49989,17 @@ const fNotification = ({
49989
49989
  };
49990
49990
  const fNotificationDelete = (id) => {
49991
49991
  const el = window.document.querySelector(id);
49992
- if (el !== null) {
49993
- el.className = styles["f-function-notification-hidden"];
49994
- setTimeout(() => {
49995
- el.classList.remove(styles["f-function-notification-visible"]);
49996
- }, 1e3);
49997
- setTimeout(() => {
49998
- if (el.parentNode) {
49999
- el.parentNode.removeChild(el);
50000
- }
50001
- }, 2e3);
50002
- }
49992
+ if (!el) return;
49993
+ const container2 = document.getElementById("block-notification");
49994
+ if (!container2) return;
49995
+ el.className = styles["f-function-notification-hidden"];
49996
+ setTimeout(() => {
49997
+ el.classList.remove(styles["f-function-notification-visible"]);
49998
+ }, 1e3);
49999
+ setTimeout(() => {
50000
+ if (el.parentNode) el.parentNode.removeChild(el);
50001
+ if (container2.children.length === 0) container2.remove();
50002
+ }, 2e3);
50003
50003
  };
50004
50004
  const fConvertFileToBase64 = (file, deletePrefix = false) => {
50005
50005
  return new Promise((resolve, reject) => {