vrembem 3.0.17 → 3.0.19

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/LICENSE CHANGED
@@ -1,6 +1,6 @@
1
1
  The MIT License (MIT)
2
2
 
3
- Copyright (c) 2023 Sebastian Nitu
3
+ Copyright (c) 2024 Sebastian Nitu
4
4
 
5
5
  Permission is hereby granted, free of charge, to any person obtaining a copy
6
6
  of this software and associated documentation files (the "Software"), to deal
@@ -1,3 +1,17 @@
1
+ function _toPrimitive(t, r) {
2
+ if ("object" != typeof t || !t) return t;
3
+ var e = t[Symbol.toPrimitive];
4
+ if (void 0 !== e) {
5
+ var i = e.call(t, r || "default");
6
+ if ("object" != typeof i) return i;
7
+ throw new TypeError("@@toPrimitive must return a primitive value.");
8
+ }
9
+ return ("string" === r ? String : Number)(t);
10
+ }
11
+ function _toPropertyKey(t) {
12
+ var i = _toPrimitive(t, "string");
13
+ return "symbol" == typeof i ? i : String(i);
14
+ }
1
15
  function _defineProperties(target, props) {
2
16
  for (var i = 0; i < props.length; i++) {
3
17
  var descriptor = props[i];
@@ -47,20 +61,6 @@ function _assertThisInitialized(self) {
47
61
  }
48
62
  return self;
49
63
  }
50
- function _toPrimitive(input, hint) {
51
- if (typeof input !== "object" || input === null) return input;
52
- var prim = input[Symbol.toPrimitive];
53
- if (prim !== undefined) {
54
- var res = prim.call(input, hint || "default");
55
- if (typeof res !== "object") return res;
56
- throw new TypeError("@@toPrimitive must return a primitive value.");
57
- }
58
- return (hint === "string" ? String : Number)(input);
59
- }
60
- function _toPropertyKey(arg) {
61
- var key = _toPrimitive(arg, "string");
62
- return typeof key === "symbol" ? key : String(key);
63
- }
64
64
  var id = 0;
65
65
  function _classPrivateFieldLooseKey(name) {
66
66
  return "__private_" + id++ + "_" + name;
@@ -952,12 +952,12 @@ var deregister$2 = function deregister(obj, close) {
952
952
  }
953
953
  };
954
954
 
955
- function g() {
955
+ function E() {
956
956
  return getComputedStyle(document.body).getPropertyValue("--vrembem-variable-prefix").trim();
957
957
  }
958
958
 
959
959
  function getBreakpoint(drawer) {
960
- var prefix = g();
960
+ var prefix = E();
961
961
  var bp = drawer.getAttribute("data-" + this.settings.dataBreakpoint);
962
962
  if (this.settings.breakpoints && this.settings.breakpoints[bp]) {
963
963
  return this.settings.breakpoints[bp];
@@ -2247,7 +2247,7 @@ function getConfig(el, settings) {
2247
2247
  // Loop through config obj.
2248
2248
  for (var prop in config) {
2249
2249
  // Get the CSS variable property values.
2250
- var prefix = g();
2250
+ var prefix = E();
2251
2251
  var value = styles.getPropertyValue("--" + prefix + "popover-" + prop).trim();
2252
2252
 
2253
2253
  // If a value was found, replace the default in config obj.