react-magma-dom 4.9.0-next.26 → 4.9.0-next.28

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/esm/index.js CHANGED
@@ -78,47 +78,77 @@ function _objectWithoutPropertiesLoose(r, e) {
78
78
  }
79
79
  function _regeneratorRuntime() {
80
80
  _regeneratorRuntime = function () {
81
- return e;
81
+ return r;
82
82
  };
83
83
  var t,
84
- e = {},
85
- r = Object.prototype,
86
- n = r.hasOwnProperty,
87
- o = Object.defineProperty || function (t, e, r) {
88
- t[e] = r.value;
89
- },
90
- i = "function" == typeof Symbol ? Symbol : {},
91
- a = i.iterator || "@@iterator",
92
- c = i.asyncIterator || "@@asyncIterator",
93
- u = i.toStringTag || "@@toStringTag";
94
- function define(t, e, r) {
95
- return Object.defineProperty(t, e, {
96
- value: r,
97
- enumerable: !0,
98
- configurable: !0,
99
- writable: !0
100
- }), t[e];
84
+ r = {},
85
+ e = Object.prototype,
86
+ n = e.hasOwnProperty,
87
+ o = "function" == typeof Symbol ? Symbol : {},
88
+ i = o.iterator || "@@iterator",
89
+ a = o.asyncIterator || "@@asyncIterator",
90
+ u = o.toStringTag || "@@toStringTag";
91
+ function c(t, r, e, n) {
92
+ return Object.defineProperty(t, r, {
93
+ value: e,
94
+ enumerable: !n,
95
+ configurable: !n,
96
+ writable: !n
97
+ });
101
98
  }
102
99
  try {
103
- define({}, "");
100
+ c({}, "");
104
101
  } catch (t) {
105
- define = function (t, e, r) {
106
- return t[e] = r;
102
+ c = function (t, r, e) {
103
+ return t[r] = e;
107
104
  };
108
105
  }
109
- function wrap(t, e, r, n) {
106
+ function h(r, e, n, o) {
110
107
  var i = e && e.prototype instanceof Generator ? e : Generator,
111
- a = Object.create(i.prototype),
112
- c = new Context(n || []);
113
- return o(a, "_invoke", {
114
- value: makeInvokeMethod(t, r, c)
115
- }), a;
108
+ a = Object.create(i.prototype);
109
+ return c(a, "_invoke", function (r, e, n) {
110
+ var o = 1;
111
+ return function (i, a) {
112
+ if (3 === o) throw Error("Generator is already running");
113
+ if (4 === o) {
114
+ if ("throw" === i) throw a;
115
+ return {
116
+ value: t,
117
+ done: !0
118
+ };
119
+ }
120
+ for (n.method = i, n.arg = a;;) {
121
+ var u = n.delegate;
122
+ if (u) {
123
+ var c = d(u, n);
124
+ if (c) {
125
+ if (c === f) continue;
126
+ return c;
127
+ }
128
+ }
129
+ if ("next" === n.method) n.sent = n._sent = n.arg;else if ("throw" === n.method) {
130
+ if (1 === o) throw o = 4, n.arg;
131
+ n.dispatchException(n.arg);
132
+ } else "return" === n.method && n.abrupt("return", n.arg);
133
+ o = 3;
134
+ var h = s(r, e, n);
135
+ if ("normal" === h.type) {
136
+ if (o = n.done ? 4 : 2, h.arg === f) continue;
137
+ return {
138
+ value: h.arg,
139
+ done: n.done
140
+ };
141
+ }
142
+ "throw" === h.type && (o = 4, n.method = "throw", n.arg = h.arg);
143
+ }
144
+ };
145
+ }(r, n, new Context(o || [])), !0), a;
116
146
  }
117
- function tryCatch(t, e, r) {
147
+ function s(t, r, e) {
118
148
  try {
119
149
  return {
120
150
  type: "normal",
121
- arg: t.call(e, r)
151
+ arg: t.call(r, e)
122
152
  };
123
153
  } catch (t) {
124
154
  return {
@@ -127,255 +157,193 @@ function _regeneratorRuntime() {
127
157
  };
128
158
  }
129
159
  }
130
- e.wrap = wrap;
131
- var h = "suspendedStart",
132
- l = "suspendedYield",
133
- f = "executing",
134
- s = "completed",
135
- y = {};
160
+ r.wrap = h;
161
+ var f = {};
136
162
  function Generator() {}
137
163
  function GeneratorFunction() {}
138
164
  function GeneratorFunctionPrototype() {}
139
- var p = {};
140
- define(p, a, function () {
165
+ var l = {};
166
+ c(l, i, function () {
141
167
  return this;
142
168
  });
143
- var d = Object.getPrototypeOf,
144
- v = d && d(d(values([])));
145
- v && v !== r && n.call(v, a) && (p = v);
146
- var g = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(p);
147
- function defineIteratorMethods(t) {
148
- ["next", "throw", "return"].forEach(function (e) {
149
- define(t, e, function (t) {
150
- return this._invoke(e, t);
169
+ var p = Object.getPrototypeOf,
170
+ y = p && p(p(x([])));
171
+ y && y !== e && n.call(y, i) && (l = y);
172
+ var v = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(l);
173
+ function g(t) {
174
+ ["next", "throw", "return"].forEach(function (r) {
175
+ c(t, r, function (t) {
176
+ return this._invoke(r, t);
151
177
  });
152
178
  });
153
179
  }
154
- function AsyncIterator(t, e) {
155
- function invoke(r, o, i, a) {
156
- var c = tryCatch(t[r], t, o);
180
+ function AsyncIterator(t, r) {
181
+ function e(o, i, a, u) {
182
+ var c = s(t[o], t, i);
157
183
  if ("throw" !== c.type) {
158
- var u = c.arg,
159
- h = u.value;
160
- return h && "object" == typeof h && n.call(h, "__await") ? e.resolve(h.__await).then(function (t) {
161
- invoke("next", t, i, a);
184
+ var h = c.arg,
185
+ f = h.value;
186
+ return f && "object" == typeof f && n.call(f, "__await") ? r.resolve(f.__await).then(function (t) {
187
+ e("next", t, a, u);
162
188
  }, function (t) {
163
- invoke("throw", t, i, a);
164
- }) : e.resolve(h).then(function (t) {
165
- u.value = t, i(u);
189
+ e("throw", t, a, u);
190
+ }) : r.resolve(f).then(function (t) {
191
+ h.value = t, a(h);
166
192
  }, function (t) {
167
- return invoke("throw", t, i, a);
193
+ return e("throw", t, a, u);
168
194
  });
169
195
  }
170
- a(c.arg);
171
- }
172
- var r;
173
- o(this, "_invoke", {
174
- value: function (t, n) {
175
- function callInvokeWithMethodAndArg() {
176
- return new e(function (e, r) {
177
- invoke(t, n, e, r);
178
- });
179
- }
180
- return r = r ? r.then(callInvokeWithMethodAndArg, callInvokeWithMethodAndArg) : callInvokeWithMethodAndArg();
181
- }
182
- });
183
- }
184
- function makeInvokeMethod(e, r, n) {
185
- var o = h;
186
- return function (i, a) {
187
- if (o === f) throw Error("Generator is already running");
188
- if (o === s) {
189
- if ("throw" === i) throw a;
190
- return {
191
- value: t,
192
- done: !0
193
- };
194
- }
195
- for (n.method = i, n.arg = a;;) {
196
- var c = n.delegate;
197
- if (c) {
198
- var u = maybeInvokeDelegate(c, n);
199
- if (u) {
200
- if (u === y) continue;
201
- return u;
202
- }
203
- }
204
- if ("next" === n.method) n.sent = n._sent = n.arg;else if ("throw" === n.method) {
205
- if (o === h) throw o = s, n.arg;
206
- n.dispatchException(n.arg);
207
- } else "return" === n.method && n.abrupt("return", n.arg);
208
- o = f;
209
- var p = tryCatch(e, r, n);
210
- if ("normal" === p.type) {
211
- if (o = n.done ? s : l, p.arg === y) continue;
212
- return {
213
- value: p.arg,
214
- done: n.done
215
- };
216
- }
217
- "throw" === p.type && (o = s, n.method = "throw", n.arg = p.arg);
196
+ u(c.arg);
197
+ }
198
+ var o;
199
+ c(this, "_invoke", function (t, n) {
200
+ function i() {
201
+ return new r(function (r, o) {
202
+ e(t, n, r, o);
203
+ });
218
204
  }
219
- };
220
- }
221
- function maybeInvokeDelegate(e, r) {
222
- var n = r.method,
223
- o = e.iterator[n];
224
- if (o === t) return r.delegate = null, "throw" === n && e.iterator.return && (r.method = "return", r.arg = t, maybeInvokeDelegate(e, r), "throw" === r.method) || "return" !== n && (r.method = "throw", r.arg = new TypeError("The iterator does not provide a '" + n + "' method")), y;
225
- var i = tryCatch(o, e.iterator, r.arg);
226
- if ("throw" === i.type) return r.method = "throw", r.arg = i.arg, r.delegate = null, y;
205
+ return o = o ? o.then(i, i) : i();
206
+ }, !0);
207
+ }
208
+ function d(r, e) {
209
+ var n = e.method,
210
+ o = r.i[n];
211
+ if (o === t) return e.delegate = null, "throw" === n && r.i.return && (e.method = "return", e.arg = t, d(r, e), "throw" === e.method) || "return" !== n && (e.method = "throw", e.arg = new TypeError("The iterator does not provide a '" + n + "' method")), f;
212
+ var i = s(o, r.i, e.arg);
213
+ if ("throw" === i.type) return e.method = "throw", e.arg = i.arg, e.delegate = null, f;
227
214
  var a = i.arg;
228
- return a ? a.done ? (r[e.resultName] = a.value, r.next = e.nextLoc, "return" !== r.method && (r.method = "next", r.arg = t), r.delegate = null, y) : a : (r.method = "throw", r.arg = new TypeError("iterator result is not an object"), r.delegate = null, y);
215
+ return a ? a.done ? (e[r.r] = a.value, e.next = r.n, "return" !== e.method && (e.method = "next", e.arg = t), e.delegate = null, f) : a : (e.method = "throw", e.arg = new TypeError("iterator result is not an object"), e.delegate = null, f);
229
216
  }
230
- function pushTryEntry(t) {
231
- var e = {
232
- tryLoc: t[0]
233
- };
234
- 1 in t && (e.catchLoc = t[1]), 2 in t && (e.finallyLoc = t[2], e.afterLoc = t[3]), this.tryEntries.push(e);
217
+ function w(t) {
218
+ this.tryEntries.push(t);
235
219
  }
236
- function resetTryEntry(t) {
237
- var e = t.completion || {};
238
- e.type = "normal", delete e.arg, t.completion = e;
220
+ function m(r) {
221
+ var e = r[4] || {};
222
+ e.type = "normal", e.arg = t, r[4] = e;
239
223
  }
240
224
  function Context(t) {
241
- this.tryEntries = [{
242
- tryLoc: "root"
243
- }], t.forEach(pushTryEntry, this), this.reset(!0);
244
- }
245
- function values(e) {
246
- if (e || "" === e) {
247
- var r = e[a];
248
- if (r) return r.call(e);
249
- if ("function" == typeof e.next) return e;
250
- if (!isNaN(e.length)) {
225
+ this.tryEntries = [[-1]], t.forEach(w, this), this.reset(!0);
226
+ }
227
+ function x(r) {
228
+ if (null != r) {
229
+ var e = r[i];
230
+ if (e) return e.call(r);
231
+ if ("function" == typeof r.next) return r;
232
+ if (!isNaN(r.length)) {
251
233
  var o = -1,
252
- i = function next() {
253
- for (; ++o < e.length;) if (n.call(e, o)) return next.value = e[o], next.done = !1, next;
254
- return next.value = t, next.done = !0, next;
234
+ a = function e() {
235
+ for (; ++o < r.length;) if (n.call(r, o)) return e.value = r[o], e.done = !1, e;
236
+ return e.value = t, e.done = !0, e;
255
237
  };
256
- return i.next = i;
238
+ return a.next = a;
257
239
  }
258
240
  }
259
- throw new TypeError(typeof e + " is not iterable");
260
- }
261
- return GeneratorFunction.prototype = GeneratorFunctionPrototype, o(g, "constructor", {
262
- value: GeneratorFunctionPrototype,
263
- configurable: !0
264
- }), o(GeneratorFunctionPrototype, "constructor", {
265
- value: GeneratorFunction,
266
- configurable: !0
267
- }), GeneratorFunction.displayName = define(GeneratorFunctionPrototype, u, "GeneratorFunction"), e.isGeneratorFunction = function (t) {
268
- var e = "function" == typeof t && t.constructor;
269
- return !!e && (e === GeneratorFunction || "GeneratorFunction" === (e.displayName || e.name));
270
- }, e.mark = function (t) {
271
- return Object.setPrototypeOf ? Object.setPrototypeOf(t, GeneratorFunctionPrototype) : (t.__proto__ = GeneratorFunctionPrototype, define(t, u, "GeneratorFunction")), t.prototype = Object.create(g), t;
272
- }, e.awrap = function (t) {
241
+ throw new TypeError(typeof r + " is not iterable");
242
+ }
243
+ return GeneratorFunction.prototype = GeneratorFunctionPrototype, c(v, "constructor", GeneratorFunctionPrototype), c(GeneratorFunctionPrototype, "constructor", GeneratorFunction), GeneratorFunction.displayName = c(GeneratorFunctionPrototype, u, "GeneratorFunction"), r.isGeneratorFunction = function (t) {
244
+ var r = "function" == typeof t && t.constructor;
245
+ return !!r && (r === GeneratorFunction || "GeneratorFunction" === (r.displayName || r.name));
246
+ }, r.mark = function (t) {
247
+ return Object.setPrototypeOf ? Object.setPrototypeOf(t, GeneratorFunctionPrototype) : (t.__proto__ = GeneratorFunctionPrototype, c(t, u, "GeneratorFunction")), t.prototype = Object.create(v), t;
248
+ }, r.awrap = function (t) {
273
249
  return {
274
250
  __await: t
275
251
  };
276
- }, defineIteratorMethods(AsyncIterator.prototype), define(AsyncIterator.prototype, c, function () {
252
+ }, g(AsyncIterator.prototype), c(AsyncIterator.prototype, a, function () {
277
253
  return this;
278
- }), e.AsyncIterator = AsyncIterator, e.async = function (t, r, n, o, i) {
254
+ }), r.AsyncIterator = AsyncIterator, r.async = function (t, e, n, o, i) {
279
255
  void 0 === i && (i = Promise);
280
- var a = new AsyncIterator(wrap(t, r, n, o), i);
281
- return e.isGeneratorFunction(r) ? a : a.next().then(function (t) {
256
+ var a = new AsyncIterator(h(t, e, n, o), i);
257
+ return r.isGeneratorFunction(e) ? a : a.next().then(function (t) {
282
258
  return t.done ? t.value : a.next();
283
259
  });
284
- }, defineIteratorMethods(g), define(g, u, "Generator"), define(g, a, function () {
260
+ }, g(v), c(v, u, "Generator"), c(v, i, function () {
285
261
  return this;
286
- }), define(g, "toString", function () {
262
+ }), c(v, "toString", function () {
287
263
  return "[object Generator]";
288
- }), e.keys = function (t) {
289
- var e = Object(t),
290
- r = [];
291
- for (var n in e) r.push(n);
292
- return r.reverse(), function next() {
293
- for (; r.length;) {
294
- var t = r.pop();
295
- if (t in e) return next.value = t, next.done = !1, next;
296
- }
297
- return next.done = !0, next;
264
+ }), r.keys = function (t) {
265
+ var r = Object(t),
266
+ e = [];
267
+ for (var n in r) e.unshift(n);
268
+ return function t() {
269
+ for (; e.length;) if ((n = e.pop()) in r) return t.value = n, t.done = !1, t;
270
+ return t.done = !0, t;
298
271
  };
299
- }, e.values = values, Context.prototype = {
272
+ }, r.values = x, Context.prototype = {
300
273
  constructor: Context,
301
- reset: function (e) {
302
- if (this.prev = 0, this.next = 0, this.sent = this._sent = t, this.done = !1, this.delegate = null, this.method = "next", this.arg = t, this.tryEntries.forEach(resetTryEntry), !e) for (var r in this) "t" === r.charAt(0) && n.call(this, r) && !isNaN(+r.slice(1)) && (this[r] = t);
274
+ reset: function (r) {
275
+ if (this.prev = this.next = 0, this.sent = this._sent = t, this.done = !1, this.delegate = null, this.method = "next", this.arg = t, this.tryEntries.forEach(m), !r) for (var e in this) "t" === e.charAt(0) && n.call(this, e) && !isNaN(+e.slice(1)) && (this[e] = t);
303
276
  },
304
277
  stop: function () {
305
278
  this.done = !0;
306
- var t = this.tryEntries[0].completion;
279
+ var t = this.tryEntries[0][4];
307
280
  if ("throw" === t.type) throw t.arg;
308
281
  return this.rval;
309
282
  },
310
- dispatchException: function (e) {
311
- if (this.done) throw e;
312
- var r = this;
313
- function handle(n, o) {
314
- return a.type = "throw", a.arg = e, r.next = n, o && (r.method = "next", r.arg = t), !!o;
283
+ dispatchException: function (r) {
284
+ if (this.done) throw r;
285
+ var e = this;
286
+ function n(t) {
287
+ a.type = "throw", a.arg = r, e.next = t;
315
288
  }
316
- for (var o = this.tryEntries.length - 1; o >= 0; --o) {
289
+ for (var o = e.tryEntries.length - 1; o >= 0; --o) {
317
290
  var i = this.tryEntries[o],
318
- a = i.completion;
319
- if ("root" === i.tryLoc) return handle("end");
320
- if (i.tryLoc <= this.prev) {
321
- var c = n.call(i, "catchLoc"),
322
- u = n.call(i, "finallyLoc");
323
- if (c && u) {
324
- if (this.prev < i.catchLoc) return handle(i.catchLoc, !0);
325
- if (this.prev < i.finallyLoc) return handle(i.finallyLoc);
326
- } else if (c) {
327
- if (this.prev < i.catchLoc) return handle(i.catchLoc, !0);
328
- } else {
329
- if (!u) throw Error("try statement without catch or finally");
330
- if (this.prev < i.finallyLoc) return handle(i.finallyLoc);
331
- }
291
+ a = i[4],
292
+ u = this.prev,
293
+ c = i[1],
294
+ h = i[2];
295
+ if (-1 === i[0]) return n("end"), !1;
296
+ if (!c && !h) throw Error("try statement without catch or finally");
297
+ if (null != i[0] && i[0] <= u) {
298
+ if (u < c) return this.method = "next", this.arg = t, n(c), !0;
299
+ if (u < h) return n(h), !1;
332
300
  }
333
301
  }
334
302
  },
335
- abrupt: function (t, e) {
336
- for (var r = this.tryEntries.length - 1; r >= 0; --r) {
337
- var o = this.tryEntries[r];
338
- if (o.tryLoc <= this.prev && n.call(o, "finallyLoc") && this.prev < o.finallyLoc) {
339
- var i = o;
303
+ abrupt: function (t, r) {
304
+ for (var e = this.tryEntries.length - 1; e >= 0; --e) {
305
+ var n = this.tryEntries[e];
306
+ if (n[0] > -1 && n[0] <= this.prev && this.prev < n[2]) {
307
+ var o = n;
340
308
  break;
341
309
  }
342
310
  }
343
- i && ("break" === t || "continue" === t) && i.tryLoc <= e && e <= i.finallyLoc && (i = null);
344
- var a = i ? i.completion : {};
345
- return a.type = t, a.arg = e, i ? (this.method = "next", this.next = i.finallyLoc, y) : this.complete(a);
311
+ o && ("break" === t || "continue" === t) && o[0] <= r && r <= o[2] && (o = null);
312
+ var i = o ? o[4] : {};
313
+ return i.type = t, i.arg = r, o ? (this.method = "next", this.next = o[2], f) : this.complete(i);
346
314
  },
347
- complete: function (t, e) {
315
+ complete: function (t, r) {
348
316
  if ("throw" === t.type) throw t.arg;
349
- return "break" === t.type || "continue" === t.type ? this.next = t.arg : "return" === t.type ? (this.rval = this.arg = t.arg, this.method = "return", this.next = "end") : "normal" === t.type && e && (this.next = e), y;
317
+ return "break" === t.type || "continue" === t.type ? this.next = t.arg : "return" === t.type ? (this.rval = this.arg = t.arg, this.method = "return", this.next = "end") : "normal" === t.type && r && (this.next = r), f;
350
318
  },
351
319
  finish: function (t) {
352
- for (var e = this.tryEntries.length - 1; e >= 0; --e) {
353
- var r = this.tryEntries[e];
354
- if (r.finallyLoc === t) return this.complete(r.completion, r.afterLoc), resetTryEntry(r), y;
320
+ for (var r = this.tryEntries.length - 1; r >= 0; --r) {
321
+ var e = this.tryEntries[r];
322
+ if (e[2] === t) return this.complete(e[4], e[3]), m(e), f;
355
323
  }
356
324
  },
357
325
  catch: function (t) {
358
- for (var e = this.tryEntries.length - 1; e >= 0; --e) {
359
- var r = this.tryEntries[e];
360
- if (r.tryLoc === t) {
361
- var n = r.completion;
326
+ for (var r = this.tryEntries.length - 1; r >= 0; --r) {
327
+ var e = this.tryEntries[r];
328
+ if (e[0] === t) {
329
+ var n = e[4];
362
330
  if ("throw" === n.type) {
363
331
  var o = n.arg;
364
- resetTryEntry(r);
332
+ m(e);
365
333
  }
366
334
  return o;
367
335
  }
368
336
  }
369
337
  throw Error("illegal catch attempt");
370
338
  },
371
- delegateYield: function (e, r, n) {
339
+ delegateYield: function (r, e, n) {
372
340
  return this.delegate = {
373
- iterator: values(e),
374
- resultName: r,
375
- nextLoc: n
376
- }, "next" === this.method && (this.arg = t), y;
341
+ i: x(r),
342
+ r: e,
343
+ n: n
344
+ }, "next" === this.method && (this.arg = t), f;
377
345
  }
378
- }, e;
346
+ }, r;
379
347
  }
380
348
  function _toPrimitive(t, r) {
381
349
  if ("object" != typeof t || !t) return t;
@@ -7539,10 +7507,10 @@ function detectOverflow(_x4, _x5) {
7539
7507
  * @see https://floating-ui.com/docs/arrow
7540
7508
  */
7541
7509
  function _detectOverflow() {
7542
- _detectOverflow = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee10(state, options) {
7510
+ _detectOverflow = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee0(state, options) {
7543
7511
  var _await$platform$isEle, x, y, platform, rects, elements, strategy, _evaluate8, _evaluate8$boundary, boundary, _evaluate8$rootBounda, rootBoundary, _evaluate8$elementCon, elementContext, _evaluate8$altBoundar, altBoundary, _evaluate8$padding, padding, paddingObject, altContext, element, clippingClientRect, rect, offsetParent, offsetScale, elementClientRect;
7544
- return _regeneratorRuntime().wrap(function _callee10$(_context10) {
7545
- while (1) switch (_context10.prev = _context10.next) {
7512
+ return _regeneratorRuntime().wrap(function _callee0$(_context0) {
7513
+ while (1) switch (_context0.prev = _context0.next) {
7546
7514
  case 0:
7547
7515
  if (options === void 0) {
7548
7516
  options = {};
@@ -7552,103 +7520,103 @@ function _detectOverflow() {
7552
7520
  paddingObject = getPaddingObject(padding);
7553
7521
  altContext = elementContext === 'floating' ? 'reference' : 'floating';
7554
7522
  element = elements[altBoundary ? altContext : elementContext];
7555
- _context10.t0 = rectToClientRect;
7556
- _context10.t1 = platform;
7557
- _context10.next = 10;
7523
+ _context0.t0 = rectToClientRect;
7524
+ _context0.t1 = platform;
7525
+ _context0.next = 10;
7558
7526
  return platform.isElement == null ? void 0 : platform.isElement(element);
7559
7527
  case 10:
7560
- _context10.t2 = _await$platform$isEle = _context10.sent;
7561
- if (!(_context10.t2 != null)) {
7562
- _context10.next = 15;
7528
+ _context0.t2 = _await$platform$isEle = _context0.sent;
7529
+ if (!(_context0.t2 != null)) {
7530
+ _context0.next = 15;
7563
7531
  break;
7564
7532
  }
7565
- _context10.t3 = _await$platform$isEle;
7566
- _context10.next = 16;
7533
+ _context0.t3 = _await$platform$isEle;
7534
+ _context0.next = 16;
7567
7535
  break;
7568
7536
  case 15:
7569
- _context10.t3 = true;
7537
+ _context0.t3 = true;
7570
7538
  case 16:
7571
- if (!_context10.t3) {
7572
- _context10.next = 20;
7539
+ if (!_context0.t3) {
7540
+ _context0.next = 20;
7573
7541
  break;
7574
7542
  }
7575
- _context10.t4 = element;
7576
- _context10.next = 26;
7543
+ _context0.t4 = element;
7544
+ _context0.next = 26;
7577
7545
  break;
7578
7546
  case 20:
7579
- _context10.t5 = element.contextElement;
7580
- if (_context10.t5) {
7581
- _context10.next = 25;
7547
+ _context0.t5 = element.contextElement;
7548
+ if (_context0.t5) {
7549
+ _context0.next = 25;
7582
7550
  break;
7583
7551
  }
7584
- _context10.next = 24;
7552
+ _context0.next = 24;
7585
7553
  return platform.getDocumentElement == null ? void 0 : platform.getDocumentElement(elements.floating);
7586
7554
  case 24:
7587
- _context10.t5 = _context10.sent;
7555
+ _context0.t5 = _context0.sent;
7588
7556
  case 25:
7589
- _context10.t4 = _context10.t5;
7557
+ _context0.t4 = _context0.t5;
7590
7558
  case 26:
7591
- _context10.t6 = _context10.t4;
7592
- _context10.t7 = boundary;
7593
- _context10.t8 = rootBoundary;
7594
- _context10.t9 = strategy;
7595
- _context10.t10 = {
7596
- element: _context10.t6,
7597
- boundary: _context10.t7,
7598
- rootBoundary: _context10.t8,
7599
- strategy: _context10.t9
7559
+ _context0.t6 = _context0.t4;
7560
+ _context0.t7 = boundary;
7561
+ _context0.t8 = rootBoundary;
7562
+ _context0.t9 = strategy;
7563
+ _context0.t10 = {
7564
+ element: _context0.t6,
7565
+ boundary: _context0.t7,
7566
+ rootBoundary: _context0.t8,
7567
+ strategy: _context0.t9
7600
7568
  };
7601
- _context10.next = 33;
7602
- return _context10.t1.getClippingRect.call(_context10.t1, _context10.t10);
7569
+ _context0.next = 33;
7570
+ return _context0.t1.getClippingRect.call(_context0.t1, _context0.t10);
7603
7571
  case 33:
7604
- _context10.t11 = _context10.sent;
7605
- clippingClientRect = (0, _context10.t0)(_context10.t11);
7572
+ _context0.t11 = _context0.sent;
7573
+ clippingClientRect = (0, _context0.t0)(_context0.t11);
7606
7574
  rect = elementContext === 'floating' ? {
7607
7575
  x: x,
7608
7576
  y: y,
7609
7577
  width: rects.floating.width,
7610
7578
  height: rects.floating.height
7611
7579
  } : rects.reference;
7612
- _context10.next = 38;
7580
+ _context0.next = 38;
7613
7581
  return platform.getOffsetParent == null ? void 0 : platform.getOffsetParent(elements.floating);
7614
7582
  case 38:
7615
- offsetParent = _context10.sent;
7616
- _context10.next = 41;
7583
+ offsetParent = _context0.sent;
7584
+ _context0.next = 41;
7617
7585
  return platform.isElement == null ? void 0 : platform.isElement(offsetParent);
7618
7586
  case 41:
7619
- if (!_context10.sent) {
7620
- _context10.next = 50;
7587
+ if (!_context0.sent) {
7588
+ _context0.next = 50;
7621
7589
  break;
7622
7590
  }
7623
- _context10.next = 44;
7591
+ _context0.next = 44;
7624
7592
  return platform.getScale == null ? void 0 : platform.getScale(offsetParent);
7625
7593
  case 44:
7626
- _context10.t13 = _context10.sent;
7627
- if (_context10.t13) {
7628
- _context10.next = 47;
7594
+ _context0.t13 = _context0.sent;
7595
+ if (_context0.t13) {
7596
+ _context0.next = 47;
7629
7597
  break;
7630
7598
  }
7631
- _context10.t13 = {
7599
+ _context0.t13 = {
7632
7600
  x: 1,
7633
7601
  y: 1
7634
7602
  };
7635
7603
  case 47:
7636
- _context10.t12 = _context10.t13;
7637
- _context10.next = 51;
7604
+ _context0.t12 = _context0.t13;
7605
+ _context0.next = 51;
7638
7606
  break;
7639
7607
  case 50:
7640
- _context10.t12 = {
7608
+ _context0.t12 = {
7641
7609
  x: 1,
7642
7610
  y: 1
7643
7611
  };
7644
7612
  case 51:
7645
- offsetScale = _context10.t12;
7646
- _context10.t14 = rectToClientRect;
7613
+ offsetScale = _context0.t12;
7614
+ _context0.t14 = rectToClientRect;
7647
7615
  if (!platform.convertOffsetParentRelativeRectToViewportRelativeRect) {
7648
- _context10.next = 59;
7616
+ _context0.next = 59;
7649
7617
  break;
7650
7618
  }
7651
- _context10.next = 56;
7619
+ _context0.next = 56;
7652
7620
  return platform.convertOffsetParentRelativeRectToViewportRelativeRect({
7653
7621
  elements: elements,
7654
7622
  rect: rect,
@@ -7656,15 +7624,15 @@ function _detectOverflow() {
7656
7624
  strategy: strategy
7657
7625
  });
7658
7626
  case 56:
7659
- _context10.t15 = _context10.sent;
7660
- _context10.next = 60;
7627
+ _context0.t15 = _context0.sent;
7628
+ _context0.next = 60;
7661
7629
  break;
7662
7630
  case 59:
7663
- _context10.t15 = rect;
7631
+ _context0.t15 = rect;
7664
7632
  case 60:
7665
- _context10.t16 = _context10.t15;
7666
- elementClientRect = (0, _context10.t14)(_context10.t16);
7667
- return _context10.abrupt("return", {
7633
+ _context0.t16 = _context0.t15;
7634
+ elementClientRect = (0, _context0.t14)(_context0.t16);
7635
+ return _context0.abrupt("return", {
7668
7636
  top: (clippingClientRect.top - elementClientRect.top + paddingObject.top) / offsetScale.y,
7669
7637
  bottom: (elementClientRect.bottom - clippingClientRect.bottom + paddingObject.bottom) / offsetScale.y,
7670
7638
  left: (clippingClientRect.left - elementClientRect.left + paddingObject.left) / offsetScale.x,
@@ -7672,9 +7640,9 @@ function _detectOverflow() {
7672
7640
  });
7673
7641
  case 63:
7674
7642
  case "end":
7675
- return _context10.stop();
7643
+ return _context0.stop();
7676
7644
  }
7677
- }, _callee10);
7645
+ }, _callee0);
7678
7646
  }));
7679
7647
  return _detectOverflow.apply(this, arguments);
7680
7648
  }
@@ -7778,7 +7746,7 @@ var flip = function flip(options) {
7778
7746
  options: options,
7779
7747
  fn: function fn(state) {
7780
7748
  return _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee4() {
7781
- var _middlewareData$arrow, _middlewareData$flip, placement, middlewareData, rects, initialPlacement, platform, elements, _evaluate2, _evaluate2$mainAxis, checkMainAxis, _evaluate2$crossAxis, checkCrossAxis, specifiedFallbackPlacements, _evaluate2$fallbackSt, fallbackStrategy, _evaluate2$fallbackAx, fallbackAxisSideDirection, _evaluate2$flipAlignm, flipAlignment, detectOverflowOptions, side, initialSideAxis, isBasePlacement, rtl, fallbackPlacements, hasFallbackAxisSideDirection, placements, overflow, overflows, overflowsData, _sides, _middlewareData$flip2, _overflowsData$filter, nextIndex, nextPlacement, resetPlacement, _overflowsData$filter2, _placement;
7749
+ var _middlewareData$arrow, _middlewareData$flip, placement, middlewareData, rects, initialPlacement, platform, elements, _evaluate2, _evaluate2$mainAxis, checkMainAxis, _evaluate2$crossAxis, checkCrossAxis, specifiedFallbackPlacements, _evaluate2$fallbackSt, fallbackStrategy, _evaluate2$fallbackAx, fallbackAxisSideDirection, _evaluate2$flipAlignm, flipAlignment, detectOverflowOptions, side, initialSideAxis, isBasePlacement, rtl, fallbackPlacements, hasFallbackAxisSideDirection, placements, overflow, overflows, overflowsData, _sides, _middlewareData$flip2, _overflowsData$filter, nextIndex, nextPlacement, _overflowsData$, ignoreCrossAxisOverflow, hasInitialMainAxisOverflow, resetPlacement, _overflowsData$filter2, _placement;
7782
7750
  return _regeneratorRuntime().wrap(function _callee4$(_context4) {
7783
7751
  while (1) switch (_context4.prev = _context4.next) {
7784
7752
  case 0:
@@ -7828,13 +7796,19 @@ var flip = function flip(options) {
7828
7796
  if (overflows.every(function (side) {
7829
7797
  return side <= 0;
7830
7798
  })) {
7831
- _context4.next = 39;
7799
+ _context4.next = 42;
7832
7800
  break;
7833
7801
  }
7834
7802
  nextIndex = (((_middlewareData$flip2 = middlewareData.flip) == null ? void 0 : _middlewareData$flip2.index) || 0) + 1;
7835
7803
  nextPlacement = placements[nextIndex];
7836
7804
  if (!nextPlacement) {
7837
- _context4.next = 27;
7805
+ _context4.next = 30;
7806
+ break;
7807
+ }
7808
+ ignoreCrossAxisOverflow = checkCrossAxis === 'alignment' ? initialSideAxis !== getSideAxis(nextPlacement) : false;
7809
+ hasInitialMainAxisOverflow = ((_overflowsData$ = overflowsData[0]) == null ? void 0 : _overflowsData$.overflows[0]) > 0;
7810
+ if (!(!ignoreCrossAxisOverflow || hasInitialMainAxisOverflow)) {
7811
+ _context4.next = 30;
7838
7812
  break;
7839
7813
  }
7840
7814
  return _context4.abrupt("return", {
@@ -7846,7 +7820,7 @@ var flip = function flip(options) {
7846
7820
  placement: nextPlacement
7847
7821
  }
7848
7822
  });
7849
- case 27:
7823
+ case 30:
7850
7824
  // First, find the candidates that fit on the mainAxis side of overflow,
7851
7825
  // then find the placement that fits the best on the main crossAxis side.
7852
7826
  resetPlacement = (_overflowsData$filter = overflowsData.filter(function (d) {
@@ -7855,13 +7829,13 @@ var flip = function flip(options) {
7855
7829
  return a.overflows[1] - b.overflows[1];
7856
7830
  })[0]) == null ? void 0 : _overflowsData$filter.placement; // Otherwise fallback.
7857
7831
  if (resetPlacement) {
7858
- _context4.next = 37;
7832
+ _context4.next = 40;
7859
7833
  break;
7860
7834
  }
7861
7835
  _context4.t0 = fallbackStrategy;
7862
- _context4.next = _context4.t0 === 'bestFit' ? 32 : _context4.t0 === 'initialPlacement' ? 35 : 37;
7836
+ _context4.next = _context4.t0 === 'bestFit' ? 35 : _context4.t0 === 'initialPlacement' ? 38 : 40;
7863
7837
  break;
7864
- case 32:
7838
+ case 35:
7865
7839
  _placement = (_overflowsData$filter2 = overflowsData.filter(function (d) {
7866
7840
  if (hasFallbackAxisSideDirection) {
7867
7841
  var currentSideAxis = getSideAxis(d.placement);
@@ -7883,13 +7857,13 @@ var flip = function flip(options) {
7883
7857
  if (_placement) {
7884
7858
  resetPlacement = _placement;
7885
7859
  }
7886
- return _context4.abrupt("break", 37);
7887
- case 35:
7860
+ return _context4.abrupt("break", 40);
7861
+ case 38:
7888
7862
  resetPlacement = initialPlacement;
7889
- return _context4.abrupt("break", 37);
7890
- case 37:
7863
+ return _context4.abrupt("break", 40);
7864
+ case 40:
7891
7865
  if (!(placement !== resetPlacement)) {
7892
- _context4.next = 39;
7866
+ _context4.next = 42;
7893
7867
  break;
7894
7868
  }
7895
7869
  return _context4.abrupt("return", {
@@ -7897,9 +7871,9 @@ var flip = function flip(options) {
7897
7871
  placement: resetPlacement
7898
7872
  }
7899
7873
  });
7900
- case 39:
7874
+ case 42:
7901
7875
  return _context4.abrupt("return", {});
7902
- case 40:
7876
+ case 43:
7903
7877
  case "end":
7904
7878
  return _context4.stop();
7905
7879
  }
@@ -7922,16 +7896,16 @@ function convertValueToCoords(_x6, _x7) {
7922
7896
  * @see https://floating-ui.com/docs/offset
7923
7897
  */
7924
7898
  function _convertValueToCoords() {
7925
- _convertValueToCoords = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee11(state, options) {
7899
+ _convertValueToCoords = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee1(state, options) {
7926
7900
  var placement, platform, elements, rtl, side, alignment, isVertical, mainAxisMulti, crossAxisMulti, rawValue, _ref6, mainAxis, crossAxis, alignmentAxis;
7927
- return _regeneratorRuntime().wrap(function _callee11$(_context11) {
7928
- while (1) switch (_context11.prev = _context11.next) {
7901
+ return _regeneratorRuntime().wrap(function _callee1$(_context1) {
7902
+ while (1) switch (_context1.prev = _context1.next) {
7929
7903
  case 0:
7930
7904
  placement = state.placement, platform = state.platform, elements = state.elements;
7931
- _context11.next = 3;
7905
+ _context1.next = 3;
7932
7906
  return platform.isRTL == null ? void 0 : platform.isRTL(elements.floating);
7933
7907
  case 3:
7934
- rtl = _context11.sent;
7908
+ rtl = _context1.sent;
7935
7909
  side = getSide(placement);
7936
7910
  alignment = getAlignment(placement);
7937
7911
  isVertical = getSideAxis(placement) === 'y';
@@ -7950,7 +7924,7 @@ function _convertValueToCoords() {
7950
7924
  if (alignment && typeof alignmentAxis === 'number') {
7951
7925
  crossAxis = alignment === 'end' ? alignmentAxis * -1 : alignmentAxis;
7952
7926
  }
7953
- return _context11.abrupt("return", isVertical ? {
7927
+ return _context1.abrupt("return", isVertical ? {
7954
7928
  x: crossAxis * crossAxisMulti,
7955
7929
  y: mainAxis * mainAxisMulti
7956
7930
  } : {
@@ -7959,9 +7933,9 @@ function _convertValueToCoords() {
7959
7933
  });
7960
7934
  case 13:
7961
7935
  case "end":
7962
- return _context11.stop();
7936
+ return _context1.stop();
7963
7937
  }
7964
- }, _callee11);
7938
+ }, _callee1);
7965
7939
  }));
7966
7940
  return _convertValueToCoords.apply(this, arguments);
7967
7941
  }
@@ -8595,6 +8569,12 @@ function getRectRelativeToOffsetParent(element, offsetParent, strategy) {
8595
8569
  scrollTop: 0
8596
8570
  };
8597
8571
  var offsets = createCoords(0);
8572
+
8573
+ // If the <body> scrollbar appears on the left (e.g. RTL systems). Use
8574
+ // Firefox with layout.scrollbar.side = 3 in about:config to test this.
8575
+ function setLeftRTLScrollbarOffset() {
8576
+ offsets.x = getWindowScrollBarX(documentElement);
8577
+ }
8598
8578
  if (isOffsetParentAnElement || !isOffsetParentAnElement && !isFixed) {
8599
8579
  if (getNodeName(offsetParent) !== 'body' || isOverflowElement(documentElement)) {
8600
8580
  scroll = getNodeScroll(offsetParent);
@@ -8604,11 +8584,12 @@ function getRectRelativeToOffsetParent(element, offsetParent, strategy) {
8604
8584
  offsets.x = offsetRect.x + offsetParent.clientLeft;
8605
8585
  offsets.y = offsetRect.y + offsetParent.clientTop;
8606
8586
  } else if (documentElement) {
8607
- // If the <body> scrollbar appears on the left (e.g. RTL systems). Use
8608
- // Firefox with layout.scrollbar.side = 3 in about:config to test this.
8609
- offsets.x = getWindowScrollBarX(documentElement);
8587
+ setLeftRTLScrollbarOffset();
8610
8588
  }
8611
8589
  }
8590
+ if (isFixed && !isOffsetParentAnElement && documentElement) {
8591
+ setLeftRTLScrollbarOffset();
8592
+ }
8612
8593
  var htmlOffset = documentElement && !isOffsetParentAnElement && !isFixed ? getHTMLOffset(documentElement, scroll) : createCoords(0);
8613
8594
  var x = rect.left + scroll.scrollLeft - offsets.x - htmlOffset.x;
8614
8595
  var y = rect.top + scroll.scrollTop - offsets.y - htmlOffset.y;
@@ -8802,7 +8783,7 @@ function observeMove(element, onMove) {
8802
8783
  // Handle <iframe>s
8803
8784
  root: root.ownerDocument
8804
8785
  }));
8805
- } catch (e) {
8786
+ } catch (_e) {
8806
8787
  io = new IntersectionObserver(handleObserve, options);
8807
8788
  }
8808
8789
  io.observe(element);
@@ -9547,10 +9528,10 @@ function useFloatingRootContext(options) {
9547
9528
  elementsProp = options.elements;
9548
9529
  var floatingId = useId();
9549
9530
  var dataRef = useRef({});
9550
- var _React$useState11 = useState(function () {
9531
+ var _React$useState1 = useState(function () {
9551
9532
  return createPubSub();
9552
9533
  }),
9553
- events = _React$useState11[0];
9534
+ events = _React$useState1[0];
9554
9535
  var nested = useFloatingParentNodeId() != null;
9555
9536
  if (process.env.NODE_ENV !== "production") {
9556
9537
  var optionDomReference = elementsProp.reference;
@@ -9558,9 +9539,9 @@ function useFloatingRootContext(options) {
9558
9539
  error('Cannot pass a virtual element to the `elements.reference` option,', 'as it must be a real DOM element. Use `refs.setPositionReference()`', 'instead.');
9559
9540
  }
9560
9541
  }
9561
- var _React$useState12 = useState(elementsProp.reference),
9562
- positionReference = _React$useState12[0],
9563
- setPositionReference = _React$useState12[1];
9542
+ var _React$useState10 = useState(elementsProp.reference),
9543
+ positionReference = _React$useState10[0],
9544
+ setPositionReference = _React$useState10[1];
9564
9545
  var onOpenChange = useEffectEvent(function (open, event, reason) {
9565
9546
  dataRef.current.openEvent = open ? event : undefined;
9566
9547
  events.emit('openchange', {
@@ -9614,12 +9595,12 @@ function useFloating$1(options) {
9614
9595
  }));
9615
9596
  var rootContext = options.rootContext || internalRootContext;
9616
9597
  var computedElements = rootContext.elements;
9617
- var _React$useState13 = useState(null),
9618
- _domReference = _React$useState13[0],
9619
- setDomReference = _React$useState13[1];
9620
- var _React$useState14 = useState(null),
9621
- positionReference = _React$useState14[0],
9622
- _setPositionReference = _React$useState14[1];
9598
+ var _React$useState11 = useState(null),
9599
+ _domReference = _React$useState11[0],
9600
+ setDomReference = _React$useState11[1];
9601
+ var _React$useState12 = useState(null),
9602
+ positionReference = _React$useState12[0],
9603
+ _setPositionReference = _React$useState12[1];
9623
9604
  var optionDomReference = computedElements == null ? void 0 : computedElements.domReference;
9624
9605
  var domReference = optionDomReference || _domReference;
9625
9606
  var domReferenceRef = useRef(null);
@@ -19774,14 +19755,14 @@ var filterTopLevelItemsIfNeeded = function filterTopLevelItemsIfNeeded(preselect
19774
19755
  return itemData ? itemData.parentId !== null : false;
19775
19756
  });
19776
19757
  };
19777
- var getInitialItems = function getInitialItems(_ref10) {
19778
- var children = _ref10.children,
19779
- rawPreselectedItems = _ref10.preselectedItems,
19780
- checkParents = _ref10.checkParents,
19781
- checkChildren = _ref10.checkChildren,
19782
- selectable = _ref10.selectable,
19783
- isTreeViewDisabled = _ref10.isDisabled,
19784
- isTopLevelSelectable = _ref10.isTopLevelSelectable;
19758
+ var getInitialItems = function getInitialItems(_ref0) {
19759
+ var children = _ref0.children,
19760
+ rawPreselectedItems = _ref0.preselectedItems,
19761
+ checkParents = _ref0.checkParents,
19762
+ checkChildren = _ref0.checkChildren,
19763
+ selectable = _ref0.selectable,
19764
+ isTreeViewDisabled = _ref0.isDisabled,
19765
+ isTopLevelSelectable = _ref0.isTopLevelSelectable;
19785
19766
  var treeViewData = _getTreeViewData({
19786
19767
  children: children,
19787
19768
  checkChildren: checkChildren,
@@ -19795,8 +19776,8 @@ var getInitialItems = function getInitialItems(_ref10) {
19795
19776
  if (isTopLevelSelectable === false && treeViewDataItem.parentId === null) {
19796
19777
  return treeViewDataItem;
19797
19778
  }
19798
- var preselectedItem = filteredPreselectedItems.find(function (_ref11) {
19799
- var itemId = _ref11.itemId;
19779
+ var preselectedItem = filteredPreselectedItems.find(function (_ref1) {
19780
+ var itemId = _ref1.itemId;
19800
19781
  return treeViewDataItem.itemId === itemId;
19801
19782
  });
19802
19783
  return preselectedItem ? _extends({}, treeViewDataItem, {
@@ -19823,22 +19804,22 @@ var getInitialItems = function getInitialItems(_ref10) {
19823
19804
  }
19824
19805
  return result;
19825
19806
  };
19826
- var selectSingle = function selectSingle(_ref12) {
19827
- var items = _ref12.items,
19828
- itemId = _ref12.itemId,
19829
- checkedStatus = _ref12.checkedStatus;
19807
+ var selectSingle = function selectSingle(_ref10) {
19808
+ var items = _ref10.items,
19809
+ itemId = _ref10.itemId,
19810
+ checkedStatus = _ref10.checkedStatus;
19830
19811
  return items.map(function (item) {
19831
19812
  return _extends({}, item, {
19832
19813
  checkedStatus: item.itemId === itemId ? checkedStatus : IndeterminateCheckboxStatus.unchecked
19833
19814
  });
19834
19815
  });
19835
19816
  };
19836
- var _processParentsSelection = function processParentsSelection(_ref13) {
19837
- var items = _ref13.items,
19838
- itemId = _ref13.itemId,
19839
- checkedStatus = _ref13.checkedStatus,
19840
- _ref13$isTopLevelSele = _ref13.isTopLevelSelectable,
19841
- isTopLevelSelectable = _ref13$isTopLevelSele === void 0 ? true : _ref13$isTopLevelSele;
19817
+ var _processParentsSelection = function processParentsSelection(_ref11) {
19818
+ var items = _ref11.items,
19819
+ itemId = _ref11.itemId,
19820
+ checkedStatus = _ref11.checkedStatus,
19821
+ _ref11$isTopLevelSele = _ref11.isTopLevelSelectable,
19822
+ isTopLevelSelectable = _ref11$isTopLevelSele === void 0 ? true : _ref11$isTopLevelSele;
19842
19823
  var item = items.find(function (item) {
19843
19824
  return item.itemId === itemId;
19844
19825
  });
@@ -19873,9 +19854,9 @@ var _processParentsSelection = function processParentsSelection(_ref13) {
19873
19854
  isTopLevelSelectable: isTopLevelSelectable
19874
19855
  });
19875
19856
  };
19876
- var getMultiToggledStatus = function getMultiToggledStatus(_ref14) {
19877
- var items = _ref14.items,
19878
- itemId = _ref14.itemId;
19857
+ var getMultiToggledStatus = function getMultiToggledStatus(_ref12) {
19858
+ var items = _ref12.items,
19859
+ itemId = _ref12.itemId;
19879
19860
  var children = getChildren({
19880
19861
  items: items,
19881
19862
  itemId: itemId
@@ -19890,14 +19871,14 @@ var getMultiToggledStatus = function getMultiToggledStatus(_ref14) {
19890
19871
  }
19891
19872
  return IndeterminateCheckboxStatus.unchecked;
19892
19873
  };
19893
- var toggleMulti = function toggleMulti(_ref15) {
19894
- var items = _ref15.items,
19895
- itemId = _ref15.itemId,
19896
- rawCheckedStatus = _ref15.checkedStatus,
19897
- forceCheckedStatus = _ref15.forceCheckedStatus,
19898
- checkChildren = _ref15.checkChildren,
19899
- checkParents = _ref15.checkParents,
19900
- isTopLevelSelectable = _ref15.isTopLevelSelectable;
19874
+ var toggleMulti = function toggleMulti(_ref13) {
19875
+ var items = _ref13.items,
19876
+ itemId = _ref13.itemId,
19877
+ rawCheckedStatus = _ref13.checkedStatus,
19878
+ forceCheckedStatus = _ref13.forceCheckedStatus,
19879
+ checkChildren = _ref13.checkChildren,
19880
+ checkParents = _ref13.checkParents,
19881
+ isTopLevelSelectable = _ref13.isTopLevelSelectable;
19901
19882
  var item = items.find(function (item) {
19902
19883
  return item.itemId === itemId;
19903
19884
  });
@@ -19925,11 +19906,11 @@ var toggleMulti = function toggleMulti(_ref15) {
19925
19906
  isTopLevelSelectable: isTopLevelSelectable
19926
19907
  }) : itemsWithProcessedChildrenSelection;
19927
19908
  };
19928
- var _getParentIds = function getParentIds(_ref16) {
19929
- var items = _ref16.items,
19930
- itemId = _ref16.itemId,
19931
- _ref16$prevParentIds = _ref16.prevParentIds,
19932
- prevParentIds = _ref16$prevParentIds === void 0 ? [] : _ref16$prevParentIds;
19909
+ var _getParentIds = function getParentIds(_ref14) {
19910
+ var items = _ref14.items,
19911
+ itemId = _ref14.itemId,
19912
+ _ref14$prevParentIds = _ref14.prevParentIds,
19913
+ prevParentIds = _ref14$prevParentIds === void 0 ? [] : _ref14$prevParentIds;
19933
19914
  var item = items.find(function (item) {
19934
19915
  return item.itemId === itemId;
19935
19916
  });
@@ -19944,22 +19925,22 @@ var _getParentIds = function getParentIds(_ref16) {
19944
19925
  }) : prevParentIds;
19945
19926
  };
19946
19927
  var getEnabledRootParentIds = function getEnabledRootParentIds(items) {
19947
- var rootParents = items.filter(function (_ref17) {
19948
- var parentId = _ref17.parentId,
19949
- isDisabled = _ref17.isDisabled;
19928
+ var rootParents = items.filter(function (_ref15) {
19929
+ var parentId = _ref15.parentId,
19930
+ isDisabled = _ref15.isDisabled;
19950
19931
  return !parentId && !isDisabled;
19951
19932
  });
19952
- return rootParents.map(function (_ref18) {
19953
- var itemId = _ref18.itemId;
19933
+ return rootParents.map(function (_ref16) {
19934
+ var itemId = _ref16.itemId;
19954
19935
  return itemId;
19955
19936
  });
19956
19937
  };
19957
- var toggleAllMulti = function toggleAllMulti(_ref19) {
19958
- var items = _ref19.items,
19959
- checkedStatus = _ref19.checkedStatus,
19960
- checkChildren = _ref19.checkChildren,
19961
- checkParents = _ref19.checkParents,
19962
- isTopLevelSelectable = _ref19.isTopLevelSelectable;
19938
+ var toggleAllMulti = function toggleAllMulti(_ref17) {
19939
+ var items = _ref17.items,
19940
+ checkedStatus = _ref17.checkedStatus,
19941
+ checkChildren = _ref17.checkChildren,
19942
+ checkParents = _ref17.checkParents,
19943
+ isTopLevelSelectable = _ref17.isTopLevelSelectable;
19963
19944
  if (!checkChildren) {
19964
19945
  return items.map(function (item) {
19965
19946
  if (item != null && item.isDisabled || isTopLevelSelectable === false && !item.parentId) {
@@ -20003,9 +19984,9 @@ var toggleAllMulti = function toggleAllMulti(_ref19) {
20003
19984
  });
20004
19985
  }, items);
20005
19986
  };
20006
- var getInitialExpandedIds = function getInitialExpandedIds(_ref20) {
20007
- var items = _ref20.items,
20008
- initialExpandedItems = _ref20.initialExpandedItems;
19987
+ var getInitialExpandedIds = function getInitialExpandedIds(_ref18) {
19988
+ var items = _ref18.items,
19989
+ initialExpandedItems = _ref18.initialExpandedItems;
20009
19990
  if (!initialExpandedItems) {
20010
19991
  return initialExpandedItems;
20011
19992
  }