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.
@@ -3,6 +3,20 @@
3
3
  typeof define === 'function' && define.amd ? define(['exports'], factory) :
4
4
  (global = global || self, factory(global.vrembem = {}));
5
5
  })(this, (function (exports) {
6
+ function _toPrimitive(t, r) {
7
+ if ("object" != typeof t || !t) return t;
8
+ var e = t[Symbol.toPrimitive];
9
+ if (void 0 !== e) {
10
+ var i = e.call(t, r || "default");
11
+ if ("object" != typeof i) return i;
12
+ throw new TypeError("@@toPrimitive must return a primitive value.");
13
+ }
14
+ return ("string" === r ? String : Number)(t);
15
+ }
16
+ function _toPropertyKey(t) {
17
+ var i = _toPrimitive(t, "string");
18
+ return "symbol" == typeof i ? i : String(i);
19
+ }
6
20
  function _defineProperties(target, props) {
7
21
  for (var i = 0; i < props.length; i++) {
8
22
  var descriptor = props[i];
@@ -52,20 +66,6 @@
52
66
  }
53
67
  return self;
54
68
  }
55
- function _toPrimitive(input, hint) {
56
- if (typeof input !== "object" || input === null) return input;
57
- var prim = input[Symbol.toPrimitive];
58
- if (prim !== undefined) {
59
- var res = prim.call(input, hint || "default");
60
- if (typeof res !== "object") return res;
61
- throw new TypeError("@@toPrimitive must return a primitive value.");
62
- }
63
- return (hint === "string" ? String : Number)(input);
64
- }
65
- function _toPropertyKey(arg) {
66
- var key = _toPrimitive(arg, "string");
67
- return typeof key === "symbol" ? key : String(key);
68
- }
69
69
  var id = 0;
70
70
  function _classPrivateFieldLooseKey(name) {
71
71
  return "__private_" + id++ + "_" + name;
@@ -957,12 +957,12 @@
957
957
  }
958
958
  };
959
959
 
960
- function g() {
960
+ function E() {
961
961
  return getComputedStyle(document.body).getPropertyValue("--vrembem-variable-prefix").trim();
962
962
  }
963
963
 
964
964
  function getBreakpoint(drawer) {
965
- var prefix = g();
965
+ var prefix = E();
966
966
  var bp = drawer.getAttribute("data-" + this.settings.dataBreakpoint);
967
967
  if (this.settings.breakpoints && this.settings.breakpoints[bp]) {
968
968
  return this.settings.breakpoints[bp];
@@ -2252,7 +2252,7 @@
2252
2252
  // Loop through config obj.
2253
2253
  for (var prop in config) {
2254
2254
  // Get the CSS variable property values.
2255
- var prefix = g();
2255
+ var prefix = E();
2256
2256
  var value = styles.getPropertyValue("--" + prefix + "popover-" + prop).trim();
2257
2257
 
2258
2258
  // If a value was found, replace the default in config obj.