@wizleap-inc/wiz-ui-next 2.33.1 → 2.33.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.
package/dist/wiz-ui.es.js CHANGED
@@ -480,8 +480,10 @@ const K1 = () => {
480
480
  __name: "snackbar-controller",
481
481
  setup(e) {
482
482
  const { snackbarOptions: a } = Va(kt), l = C(), s = ((h) => {
483
+ if (!window)
484
+ return 0;
483
485
  const f = le(h);
484
- return !f || f === "0" || f === "auto" ? 0 : f === "9999px" ? 9999 : parseFloat(f) * parseFloat(getComputedStyle(document.documentElement).fontSize);
486
+ return !f || f === "0" || f === "auto" ? 0 : f === "9999px" ? 9999 : parseFloat(f) * parseFloat(window.getComputedStyle(document.documentElement).fontSize);
485
487
  })("md"), d = (h) => {
486
488
  var p;
487
489
  return Array.from(((p = l.value) == null ? void 0 : p.children) ?? []).filter((g) => !g.className.includes("Hidden")).slice(0, h).reduce((g, b) => {