@factoringplus/pl-components-pack-v3 0.11.8 → 0.11.9-pre-02

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.
@@ -35673,7 +35673,7 @@ const renderSnackbar = function(g) {
35673
35673
  Ne.id = "snackbar", document.body.appendChild(Ne);
35674
35674
  }
35675
35675
  const pe = document.createElement("div");
35676
- pe.id = `snackbar-${snackbarId}`, pe.classList.add("slideIn-animation"), document.getElementById("snackbar").appendChild(pe);
35676
+ pe.id = `snackbar-${snackbarId}`, pe == null || pe.classList.add("slideIn-animation"), document.getElementById("snackbar").appendChild(pe);
35677
35677
  const de = createApp({
35678
35678
  render() {
35679
35679
  return h$2(TransitionGroup, { name: "pl-snackbar-fade", mode: "out-in" }, () => [
@@ -35693,9 +35693,9 @@ const renderSnackbar = function(g) {
35693
35693
  }
35694
35694
  });
35695
35695
  return de.mount(`#snackbar-${snackbarId}`), ue || setTimeout(() => {
35696
- pe.classList.remove("slideIn-animation"), pe.classList.add("fadeOut-animation"), pe.addEventListener("animationend", () => {
35696
+ pe && (pe.classList.remove("slideIn-animation"), pe.classList.add("fadeOut-animation"), pe.addEventListener("animationend", () => {
35697
35697
  de.unmount(), pe.remove();
35698
- });
35698
+ }));
35699
35699
  }, 4200), snackbarId++, {
35700
35700
  id: pe.id,
35701
35701
  close: () => {
@@ -35704,9 +35704,9 @@ const renderSnackbar = function(g) {
35704
35704
  };
35705
35705
  };
35706
35706
  function removeSnackbar(g) {
35707
- g.classList.remove("slideIn-animation"), g.classList.add("fadeOut-animation"), g.addEventListener("animationend", () => {
35707
+ g && (g.classList.remove("slideIn-animation"), g.classList.add("fadeOut-animation"), g.addEventListener("animationend", () => {
35708
35708
  g && g.remove();
35709
- });
35709
+ }));
35710
35710
  }
35711
35711
  const closeSnackbar = (g) => {
35712
35712
  const y = document.getElementById(g);