@arcgis/instant-apps-components-react 4.34.0-next.60 → 4.34.0-next.61

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.
Files changed (2) hide show
  1. package/dist/index.js +94 -91
  2. package/package.json +3 -3
package/dist/index.js CHANGED
@@ -1254,18 +1254,8 @@ const Pn = /* @__PURE__ */ new Set(["children", "localName", "ref", "style", "cl
1254
1254
  }, [h]) });
1255
1255
  });
1256
1256
  return u.displayName = r ?? t.name, u;
1257
- };
1258
- class Ie {
1259
- /**
1260
- * Creates a new deferred promise.
1261
- */
1262
- constructor() {
1263
- this.promise = new Promise((e, t) => {
1264
- this.resolve = e, this.reject = t;
1265
- });
1266
- }
1267
- }
1268
- const U = () => (
1257
+ }, U = () => (
1258
+ //#endregion isEsriInternalEnv
1269
1259
  /*
1270
1260
  * `globalThis.` is important here. Some bundlers remove the `typeof process`
1271
1261
  * checks, but don't remove the usages of undefined variables - this can cause
@@ -1289,14 +1279,7 @@ const U = () => (
1289
1279
  } catch (o) {
1290
1280
  console.error(o, s);
1291
1281
  }
1292
- }, Dn = (s) => s.replace(Un, (e, t) => `${t === 0 ? "" : "-"}${e.toLowerCase()}`), Un = /[A-Z]+(?![a-z])|[A-Z]/gu, In = (s, e) => {
1293
- const t = e / Mn;
1294
- let o = 0;
1295
- const r = setInterval(() => {
1296
- o += t, o >= e && (clearInterval(r), s());
1297
- }, t);
1298
- return r;
1299
- }, Mn = 4, ht = Symbol.for("controller"), jn = (s) => typeof s == "object" && s !== null && (ht in s || "hostConnected" in s || "hostDisconnected" in s || "hostUpdate" in s || "hostUpdated" in s);
1282
+ }, ht = Symbol.for("controller"), Dn = (s) => typeof s == "object" && s !== null && (ht in s || "hostConnected" in s || "hostDisconnected" in s || "hostUpdate" in s || "hostUpdated" in s);
1300
1283
  let Ee;
1301
1284
  const ke = (s) => {
1302
1285
  Ee !== s && (Ee = s, queueMicrotask(() => Ee === s ? Ee = void 0 : 0));
@@ -1327,19 +1310,19 @@ const ke = (s) => {
1327
1310
  return Ee;
1328
1311
  };
1329
1312
  let ce = [];
1330
- const Hn = (s) => {
1313
+ const Un = (s) => {
1331
1314
  if (s === void 0) {
1332
1315
  ce = [];
1333
1316
  return;
1334
1317
  }
1335
1318
  const e = ce.indexOf(s);
1336
1319
  ce = e === -1 ? [...ce, s] : ce.slice(0, e + 1), queueMicrotask(() => ce = []);
1337
- }, xn = () => ce;
1320
+ }, In = () => ce;
1338
1321
  let qt;
1339
- const Wn = () => {
1322
+ const Mn = () => {
1340
1323
  const s = qt;
1341
1324
  return qt = void 0, s;
1342
- }, zn = async (s, e) => {
1325
+ }, jn = async (s, e) => {
1343
1326
  const t = pt(s);
1344
1327
  if (t === void 0) {
1345
1328
  if (process.env.NODE_ENV !== "production" && U() && typeof e == "function")
@@ -1356,7 +1339,7 @@ const Wn = () => {
1356
1339
  );
1357
1340
  }
1358
1341
  return t.exports;
1359
- }, qn = async (s) => {
1342
+ }, Hn = async (s) => {
1360
1343
  const e = pt(s);
1361
1344
  if (process.env.NODE_ENV !== "production" && U() && e === void 0)
1362
1345
  throw new Error(
@@ -1367,9 +1350,9 @@ const Wn = () => {
1367
1350
  const t = nt().manager.X(s);
1368
1351
  if (t !== void 0)
1369
1352
  return t;
1370
- if (jn(s))
1353
+ if (Dn(s))
1371
1354
  return s;
1372
- const o = Wn();
1355
+ const o = Mn();
1373
1356
  if (o !== void 0)
1374
1357
  return o;
1375
1358
  };
@@ -1379,7 +1362,7 @@ const Wn = () => {
1379
1362
  * SPDX-License-Identifier: BSD-3-Clause
1380
1363
  */
1381
1364
  const Xe = globalThis, ft = Xe.ShadowRoot && (Xe.ShadyCSS === void 0 || Xe.ShadyCSS.nativeShadow) && "adoptedStyleSheets" in Document.prototype && "replace" in CSSStyleSheet.prototype, cn = Symbol(), Yt = /* @__PURE__ */ new WeakMap();
1382
- let Yn = class {
1365
+ let xn = class {
1383
1366
  constructor(e, t, o) {
1384
1367
  if (this._$cssResult$ = !0, o !== cn) throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");
1385
1368
  this.cssText = e, this.t = t;
@@ -1397,7 +1380,7 @@ let Yn = class {
1397
1380
  return this.cssText;
1398
1381
  }
1399
1382
  };
1400
- const Vn = (s) => new Yn(typeof s == "string" ? s : s + "", void 0, cn), Bn = (s, e) => {
1383
+ const Wn = (s) => new xn(typeof s == "string" ? s : s + "", void 0, cn), zn = (s, e) => {
1401
1384
  if (ft) s.adoptedStyleSheets = e.map((t) => t instanceof CSSStyleSheet ? t : t.styleSheet);
1402
1385
  else for (const t of e) {
1403
1386
  const o = document.createElement("style"), r = Xe.litNonce;
@@ -1406,17 +1389,17 @@ const Vn = (s) => new Yn(typeof s == "string" ? s : s + "", void 0, cn), Bn = (s
1406
1389
  }, Vt = ft ? (s) => s : (s) => s instanceof CSSStyleSheet ? ((e) => {
1407
1390
  let t = "";
1408
1391
  for (const o of e.cssRules) t += o.cssText;
1409
- return Vn(t);
1392
+ return Wn(t);
1410
1393
  })(s) : s;
1411
1394
  /**
1412
1395
  * @license
1413
1396
  * Copyright 2017 Google LLC
1414
1397
  * SPDX-License-Identifier: BSD-3-Clause
1415
1398
  */
1416
- const { is: Fn, defineProperty: Kn, getOwnPropertyDescriptor: Gn, getOwnPropertyNames: Qn, getOwnPropertySymbols: Xn, getPrototypeOf: Zn } = Object, ot = globalThis, Bt = ot.trustedTypes, Jn = Bt ? Bt.emptyScript : "", eo = ot.reactiveElementPolyfillSupport, De = (s, e) => s, dt = { toAttribute(s, e) {
1399
+ const { is: qn, defineProperty: Yn, getOwnPropertyDescriptor: Vn, getOwnPropertyNames: Bn, getOwnPropertySymbols: Fn, getPrototypeOf: Kn } = Object, ot = globalThis, Bt = ot.trustedTypes, Gn = Bt ? Bt.emptyScript : "", Qn = ot.reactiveElementPolyfillSupport, De = (s, e) => s, dt = { toAttribute(s, e) {
1417
1400
  switch (e) {
1418
1401
  case Boolean:
1419
- s = s ? Jn : null;
1402
+ s = s ? Gn : null;
1420
1403
  break;
1421
1404
  case Object:
1422
1405
  case Array:
@@ -1441,7 +1424,7 @@ const { is: Fn, defineProperty: Kn, getOwnPropertyDescriptor: Gn, getOwnProperty
1441
1424
  }
1442
1425
  }
1443
1426
  return t;
1444
- } }, yt = (s, e) => !Fn(s, e), Ft = { attribute: !0, type: String, converter: dt, reflect: !1, useDefault: !1, hasChanged: yt };
1427
+ } }, yt = (s, e) => !qn(s, e), Ft = { attribute: !0, type: String, converter: dt, reflect: !1, useDefault: !1, hasChanged: yt };
1445
1428
  Symbol.metadata ??= Symbol("metadata"), ot.litPropertyMetadata ??= /* @__PURE__ */ new WeakMap();
1446
1429
  class ve extends HTMLElement {
1447
1430
  static addInitializer(e) {
@@ -1453,11 +1436,11 @@ class ve extends HTMLElement {
1453
1436
  static createProperty(e, t = Ft) {
1454
1437
  if (t.state && (t.attribute = !1), this._$Ei(), this.prototype.hasOwnProperty(e) && ((t = Object.create(t)).wrapped = !0), this.elementProperties.set(e, t), !t.noAccessor) {
1455
1438
  const o = Symbol(), r = this.getPropertyDescriptor(e, o, t);
1456
- r !== void 0 && Kn(this.prototype, e, r);
1439
+ r !== void 0 && Yn(this.prototype, e, r);
1457
1440
  }
1458
1441
  }
1459
1442
  static getPropertyDescriptor(e, t, o) {
1460
- const { get: r, set: c } = Gn(this.prototype, e) ?? { get() {
1443
+ const { get: r, set: c } = Vn(this.prototype, e) ?? { get() {
1461
1444
  return this[t];
1462
1445
  }, set(u) {
1463
1446
  this[t] = u;
@@ -1472,13 +1455,13 @@ class ve extends HTMLElement {
1472
1455
  }
1473
1456
  static _$Ei() {
1474
1457
  if (this.hasOwnProperty(De("elementProperties"))) return;
1475
- const e = Zn(this);
1458
+ const e = Kn(this);
1476
1459
  e.finalize(), e.l !== void 0 && (this.l = [...e.l]), this.elementProperties = new Map(e.elementProperties);
1477
1460
  }
1478
1461
  static finalize() {
1479
1462
  if (this.hasOwnProperty(De("finalized"))) return;
1480
1463
  if (this.finalized = !0, this._$Ei(), this.hasOwnProperty(De("properties"))) {
1481
- const t = this.properties, o = [...Qn(t), ...Xn(t)];
1464
+ const t = this.properties, o = [...Bn(t), ...Fn(t)];
1482
1465
  for (const r of o) this.createProperty(r, t[r]);
1483
1466
  }
1484
1467
  const e = this[Symbol.metadata];
@@ -1524,7 +1507,7 @@ class ve extends HTMLElement {
1524
1507
  }
1525
1508
  createRenderRoot() {
1526
1509
  const e = this.shadowRoot ?? this.attachShadow(this.constructor.shadowRootOptions);
1527
- return Bn(e, this.constructor.elementStyles), e;
1510
+ return zn(e, this.constructor.elementStyles), e;
1528
1511
  }
1529
1512
  connectedCallback() {
1530
1513
  this.renderRoot ??= this.createRenderRoot(), this.enableUpdating(!0), this._$EO?.forEach((e) => e.hostConnected?.());
@@ -1622,20 +1605,20 @@ class ve extends HTMLElement {
1622
1605
  firstUpdated(e) {
1623
1606
  }
1624
1607
  }
1625
- ve.elementStyles = [], ve.shadowRootOptions = { mode: "open" }, ve[De("elementProperties")] = /* @__PURE__ */ new Map(), ve[De("finalized")] = /* @__PURE__ */ new Map(), eo?.({ ReactiveElement: ve }), (ot.reactiveElementVersions ??= []).push("2.1.0");
1608
+ ve.elementStyles = [], ve.shadowRootOptions = { mode: "open" }, ve[De("elementProperties")] = /* @__PURE__ */ new Map(), ve[De("finalized")] = /* @__PURE__ */ new Map(), Qn?.({ ReactiveElement: ve }), (ot.reactiveElementVersions ??= []).push("2.1.0");
1626
1609
  /**
1627
1610
  * @license
1628
1611
  * Copyright 2017 Google LLC
1629
1612
  * SPDX-License-Identifier: BSD-3-Clause
1630
1613
  */
1631
- const mt = globalThis, et = mt.trustedTypes, Kt = et ? et.createPolicy("lit-html", { createHTML: (s) => s }) : void 0, un = "$lit$", oe = `lit$${Math.random().toFixed(9).slice(2)}$`, ln = "?" + oe, to = `<${ln}>`, he = document, Me = () => he.createComment(""), je = (s) => s === null || typeof s != "object" && typeof s != "function", gt = Array.isArray, no = (s) => gt(s) || typeof s?.[Symbol.iterator] == "function", ut = `[
1614
+ const mt = globalThis, et = mt.trustedTypes, Kt = et ? et.createPolicy("lit-html", { createHTML: (s) => s }) : void 0, un = "$lit$", oe = `lit$${Math.random().toFixed(9).slice(2)}$`, ln = "?" + oe, Xn = `<${ln}>`, he = document, Ie = () => he.createComment(""), Me = (s) => s === null || typeof s != "object" && typeof s != "function", gt = Array.isArray, Zn = (s) => gt(s) || typeof s?.[Symbol.iterator] == "function", ut = `[
1632
1615
  \f\r]`, Le = /<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g, Gt = /-->/g, Qt = />/g, ae = RegExp(`>|${ut}(?:([^\\s"'>=/]+)(${ut}*=${ut}*(?:[^
1633
1616
  \f\r"'\`<>=]|("|')|))|$)`, "g"), Xt = /'/g, Zt = /"/g, dn = /^(?:script|style|textarea|title)$/i, $e = Symbol.for("lit-noChange"), W = Symbol.for("lit-nothing"), Jt = /* @__PURE__ */ new WeakMap(), ue = he.createTreeWalker(he, 129);
1634
1617
  function hn(s, e) {
1635
1618
  if (!gt(s) || !s.hasOwnProperty("raw")) throw Error("invalid template strings array");
1636
1619
  return Kt !== void 0 ? Kt.createHTML(e) : e;
1637
1620
  }
1638
- const oo = (s, e) => {
1621
+ const Jn = (s, e) => {
1639
1622
  const t = s.length - 1, o = [];
1640
1623
  let r, c = e === 2 ? "<svg>" : e === 3 ? "<math>" : "", u = Le;
1641
1624
  for (let p = 0; p < t; p++) {
@@ -1643,17 +1626,17 @@ const oo = (s, e) => {
1643
1626
  let m, g, _ = -1, D = 0;
1644
1627
  for (; D < h.length && (u.lastIndex = D, g = u.exec(h), g !== null); ) D = u.lastIndex, u === Le ? g[1] === "!--" ? u = Gt : g[1] !== void 0 ? u = Qt : g[2] !== void 0 ? (dn.test(g[2]) && (r = RegExp("</" + g[2], "g")), u = ae) : g[3] !== void 0 && (u = ae) : u === ae ? g[0] === ">" ? (u = r ?? Le, _ = -1) : g[1] === void 0 ? _ = -2 : (_ = u.lastIndex - g[2].length, m = g[1], u = g[3] === void 0 ? ae : g[3] === '"' ? Zt : Xt) : u === Zt || u === Xt ? u = ae : u === Gt || u === Qt ? u = Le : (u = ae, r = void 0);
1645
1628
  const N = u === ae && s[p + 1].startsWith("/>") ? " " : "";
1646
- c += u === Le ? h + to : _ >= 0 ? (o.push(m), h.slice(0, _) + un + h.slice(_) + oe + N) : h + oe + (_ === -2 ? p : N);
1629
+ c += u === Le ? h + Xn : _ >= 0 ? (o.push(m), h.slice(0, _) + un + h.slice(_) + oe + N) : h + oe + (_ === -2 ? p : N);
1647
1630
  }
1648
1631
  return [hn(s, c + (s[t] || "<?>") + (e === 2 ? "</svg>" : e === 3 ? "</math>" : "")), o];
1649
1632
  };
1650
- class He {
1633
+ class je {
1651
1634
  constructor({ strings: e, _$litType$: t }, o) {
1652
1635
  let r;
1653
1636
  this.parts = [];
1654
1637
  let c = 0, u = 0;
1655
- const p = e.length - 1, h = this.parts, [m, g] = oo(e, t);
1656
- if (this.el = He.createElement(m, o), ue.currentNode = this.el.content, t === 2 || t === 3) {
1638
+ const p = e.length - 1, h = this.parts, [m, g] = Jn(e, t);
1639
+ if (this.el = je.createElement(m, o), ue.currentNode = this.el.content, t === 2 || t === 3) {
1657
1640
  const _ = this.el.content.firstChild;
1658
1641
  _.replaceWith(..._.childNodes);
1659
1642
  }
@@ -1661,14 +1644,14 @@ class He {
1661
1644
  if (r.nodeType === 1) {
1662
1645
  if (r.hasAttributes()) for (const _ of r.getAttributeNames()) if (_.endsWith(un)) {
1663
1646
  const D = g[u++], N = r.getAttribute(_).split(oe), I = /([.?@])?(.*)/.exec(D);
1664
- h.push({ type: 1, index: c, name: I[2], strings: N, ctor: I[1] === "." ? so : I[1] === "?" ? io : I[1] === "@" ? ao : rt }), r.removeAttribute(_);
1647
+ h.push({ type: 1, index: c, name: I[2], strings: N, ctor: I[1] === "." ? to : I[1] === "?" ? no : I[1] === "@" ? oo : rt }), r.removeAttribute(_);
1665
1648
  } else _.startsWith(oe) && (h.push({ type: 6, index: c }), r.removeAttribute(_));
1666
1649
  if (dn.test(r.tagName)) {
1667
1650
  const _ = r.textContent.split(oe), D = _.length - 1;
1668
1651
  if (D > 0) {
1669
1652
  r.textContent = et ? et.emptyScript : "";
1670
- for (let N = 0; N < D; N++) r.append(_[N], Me()), ue.nextNode(), h.push({ type: 2, index: ++c });
1671
- r.append(_[D], Me());
1653
+ for (let N = 0; N < D; N++) r.append(_[N], Ie()), ue.nextNode(), h.push({ type: 2, index: ++c });
1654
+ r.append(_[D], Ie());
1672
1655
  }
1673
1656
  }
1674
1657
  } else if (r.nodeType === 8) if (r.data === ln) h.push({ type: 2, index: c });
@@ -1687,10 +1670,10 @@ class He {
1687
1670
  function Ae(s, e, t = s, o) {
1688
1671
  if (e === $e) return e;
1689
1672
  let r = o !== void 0 ? t._$Co?.[o] : t._$Cl;
1690
- const c = je(e) ? void 0 : e._$litDirective$;
1673
+ const c = Me(e) ? void 0 : e._$litDirective$;
1691
1674
  return r?.constructor !== c && (r?._$AO?.(!1), c === void 0 ? r = void 0 : (r = new c(s), r._$AT(s, t, o)), o !== void 0 ? (t._$Co ??= [])[o] = r : t._$Cl = r), r !== void 0 && (e = Ae(s, r._$AS(s, e.values), r, o)), e;
1692
1675
  }
1693
- class ro {
1676
+ class eo {
1694
1677
  constructor(e, t) {
1695
1678
  this._$AV = [], this._$AN = void 0, this._$AD = e, this._$AM = t;
1696
1679
  }
@@ -1707,7 +1690,7 @@ class ro {
1707
1690
  for (; h !== void 0; ) {
1708
1691
  if (u === h.index) {
1709
1692
  let m;
1710
- h.type === 2 ? m = new ze(c, c.nextSibling, this, e) : h.type === 1 ? m = new h.ctor(c, h.name, h.strings, this, e) : h.type === 6 && (m = new co(c, this, e)), this._$AV.push(m), h = o[++p];
1693
+ h.type === 2 ? m = new ze(c, c.nextSibling, this, e) : h.type === 1 ? m = new h.ctor(c, h.name, h.strings, this, e) : h.type === 6 && (m = new ro(c, this, e)), this._$AV.push(m), h = o[++p];
1711
1694
  }
1712
1695
  u !== h?.index && (c = ue.nextNode(), u++);
1713
1696
  }
@@ -1737,7 +1720,7 @@ class ze {
1737
1720
  return this._$AB;
1738
1721
  }
1739
1722
  _$AI(e, t = this) {
1740
- e = Ae(this, e, t), je(e) ? e === W || e == null || e === "" ? (this._$AH !== W && this._$AR(), this._$AH = W) : e !== this._$AH && e !== $e && this._(e) : e._$litType$ !== void 0 ? this.$(e) : e.nodeType !== void 0 ? this.T(e) : no(e) ? this.k(e) : this._(e);
1723
+ e = Ae(this, e, t), Me(e) ? e === W || e == null || e === "" ? (this._$AH !== W && this._$AR(), this._$AH = W) : e !== this._$AH && e !== $e && this._(e) : e._$litType$ !== void 0 ? this.$(e) : e.nodeType !== void 0 ? this.T(e) : Zn(e) ? this.k(e) : this._(e);
1741
1724
  }
1742
1725
  O(e) {
1743
1726
  return this._$AA.parentNode.insertBefore(e, this._$AB);
@@ -1746,25 +1729,25 @@ class ze {
1746
1729
  this._$AH !== e && (this._$AR(), this._$AH = this.O(e));
1747
1730
  }
1748
1731
  _(e) {
1749
- this._$AH !== W && je(this._$AH) ? this._$AA.nextSibling.data = e : this.T(he.createTextNode(e)), this._$AH = e;
1732
+ this._$AH !== W && Me(this._$AH) ? this._$AA.nextSibling.data = e : this.T(he.createTextNode(e)), this._$AH = e;
1750
1733
  }
1751
1734
  $(e) {
1752
- const { values: t, _$litType$: o } = e, r = typeof o == "number" ? this._$AC(e) : (o.el === void 0 && (o.el = He.createElement(hn(o.h, o.h[0]), this.options)), o);
1735
+ const { values: t, _$litType$: o } = e, r = typeof o == "number" ? this._$AC(e) : (o.el === void 0 && (o.el = je.createElement(hn(o.h, o.h[0]), this.options)), o);
1753
1736
  if (this._$AH?._$AD === r) this._$AH.p(t);
1754
1737
  else {
1755
- const c = new ro(r, this), u = c.u(this.options);
1738
+ const c = new eo(r, this), u = c.u(this.options);
1756
1739
  c.p(t), this.T(u), this._$AH = c;
1757
1740
  }
1758
1741
  }
1759
1742
  _$AC(e) {
1760
1743
  let t = Jt.get(e.strings);
1761
- return t === void 0 && Jt.set(e.strings, t = new He(e)), t;
1744
+ return t === void 0 && Jt.set(e.strings, t = new je(e)), t;
1762
1745
  }
1763
1746
  k(e) {
1764
1747
  gt(this._$AH) || (this._$AH = [], this._$AR());
1765
1748
  const t = this._$AH;
1766
1749
  let o, r = 0;
1767
- for (const c of e) r === t.length ? t.push(o = new ze(this.O(Me()), this.O(Me()), this, this.options)) : o = t[r], o._$AI(c), r++;
1750
+ for (const c of e) r === t.length ? t.push(o = new ze(this.O(Ie()), this.O(Ie()), this, this.options)) : o = t[r], o._$AI(c), r++;
1768
1751
  r < t.length && (this._$AR(o && o._$AB.nextSibling, r), t.length = r);
1769
1752
  }
1770
1753
  _$AR(e = this._$AA.nextSibling, t) {
@@ -1790,11 +1773,11 @@ class rt {
1790
1773
  _$AI(e, t = this, o, r) {
1791
1774
  const c = this.strings;
1792
1775
  let u = !1;
1793
- if (c === void 0) e = Ae(this, e, t, 0), u = !je(e) || e !== this._$AH && e !== $e, u && (this._$AH = e);
1776
+ if (c === void 0) e = Ae(this, e, t, 0), u = !Me(e) || e !== this._$AH && e !== $e, u && (this._$AH = e);
1794
1777
  else {
1795
1778
  const p = e;
1796
1779
  let h, m;
1797
- for (e = c[0], h = 0; h < c.length - 1; h++) m = Ae(this, p[o + h], t, h), m === $e && (m = this._$AH[h]), u ||= !je(m) || m !== this._$AH[h], m === W ? e = W : e !== W && (e += (m ?? "") + c[h + 1]), this._$AH[h] = m;
1780
+ for (e = c[0], h = 0; h < c.length - 1; h++) m = Ae(this, p[o + h], t, h), m === $e && (m = this._$AH[h]), u ||= !Me(m) || m !== this._$AH[h], m === W ? e = W : e !== W && (e += (m ?? "") + c[h + 1]), this._$AH[h] = m;
1798
1781
  }
1799
1782
  u && !r && this.j(e);
1800
1783
  }
@@ -1802,7 +1785,7 @@ class rt {
1802
1785
  e === W ? this.element.removeAttribute(this.name) : this.element.setAttribute(this.name, e ?? "");
1803
1786
  }
1804
1787
  }
1805
- class so extends rt {
1788
+ class to extends rt {
1806
1789
  constructor() {
1807
1790
  super(...arguments), this.type = 3;
1808
1791
  }
@@ -1810,7 +1793,7 @@ class so extends rt {
1810
1793
  this.element[this.name] = e === W ? void 0 : e;
1811
1794
  }
1812
1795
  }
1813
- class io extends rt {
1796
+ class no extends rt {
1814
1797
  constructor() {
1815
1798
  super(...arguments), this.type = 4;
1816
1799
  }
@@ -1818,7 +1801,7 @@ class io extends rt {
1818
1801
  this.element.toggleAttribute(this.name, !!e && e !== W);
1819
1802
  }
1820
1803
  }
1821
- class ao extends rt {
1804
+ class oo extends rt {
1822
1805
  constructor(e, t, o, r, c) {
1823
1806
  super(e, t, o, r, c), this.type = 5;
1824
1807
  }
@@ -1831,7 +1814,7 @@ class ao extends rt {
1831
1814
  typeof this._$AH == "function" ? this._$AH.call(this.options?.host ?? this.element, e) : this._$AH.handleEvent(e);
1832
1815
  }
1833
1816
  }
1834
- class co {
1817
+ class ro {
1835
1818
  constructor(e, t, o) {
1836
1819
  this.element = e, this.type = 6, this._$AN = void 0, this._$AM = t, this.options = o;
1837
1820
  }
@@ -1842,14 +1825,14 @@ class co {
1842
1825
  Ae(this, e);
1843
1826
  }
1844
1827
  }
1845
- const uo = mt.litHtmlPolyfillSupport;
1846
- uo?.(He, ze), (mt.litHtmlVersions ??= []).push("3.3.0");
1847
- const lo = (s, e, t) => {
1828
+ const so = mt.litHtmlPolyfillSupport;
1829
+ so?.(je, ze), (mt.litHtmlVersions ??= []).push("3.3.0");
1830
+ const io = (s, e, t) => {
1848
1831
  const o = t?.renderBefore ?? e;
1849
1832
  let r = o._$litPart$;
1850
1833
  if (r === void 0) {
1851
1834
  const c = t?.renderBefore ?? null;
1852
- o._$litPart$ = r = new ze(e.insertBefore(Me(), c), c, void 0, t ?? {});
1835
+ o._$litPart$ = r = new ze(e.insertBefore(Ie(), c), c, void 0, t ?? {});
1853
1836
  }
1854
1837
  return r._$AI(s), r;
1855
1838
  };
@@ -1869,7 +1852,7 @@ class re extends ve {
1869
1852
  }
1870
1853
  update(e) {
1871
1854
  const t = this.render();
1872
- this.hasUpdated || (this.renderOptions.isConnected = this.isConnected), super.update(e), this._$Do = lo(t, this.renderRoot, this.renderOptions);
1855
+ this.hasUpdated || (this.renderOptions.isConnected = this.isConnected), super.update(e), this._$Do = io(t, this.renderRoot, this.renderOptions);
1873
1856
  }
1874
1857
  connectedCallback() {
1875
1858
  super.connectedCallback(), this._$Do?.setConnected(!0);
@@ -1882,10 +1865,27 @@ class re extends ve {
1882
1865
  }
1883
1866
  }
1884
1867
  re._$litElement$ = !0, re.finalized = !0, vt.litElementHydrateSupport?.({ LitElement: re });
1885
- const ho = vt.litElementPolyfillSupport;
1886
- ho?.({ LitElement: re });
1868
+ const ao = vt.litElementPolyfillSupport;
1869
+ ao?.({ LitElement: re });
1887
1870
  (vt.litElementVersions ??= []).push("4.2.0");
1888
- const po = (s, e, t) => {
1871
+ class He {
1872
+ /**
1873
+ * Creates a new deferred promise.
1874
+ */
1875
+ constructor() {
1876
+ this.promise = new Promise((e, t) => {
1877
+ this.resolve = e, this.reject = t;
1878
+ });
1879
+ }
1880
+ }
1881
+ const co = (s, e) => {
1882
+ const t = e / uo;
1883
+ let o = 0;
1884
+ const r = setInterval(() => {
1885
+ o += t, o >= e && (clearInterval(r), s());
1886
+ }, t);
1887
+ return r;
1888
+ }, uo = 4, lo = (s, e, t) => {
1889
1889
  const o = Object.keys(s), r = o.length;
1890
1890
  _e === void 0 && queueMicrotask(Et), _e ??= /* @__PURE__ */ new Map();
1891
1891
  let c = _e.get(s);
@@ -1900,12 +1900,12 @@ const Et = () => {
1900
1900
  const t = Object.keys(e);
1901
1901
  s.forEach((o) => o(t));
1902
1902
  }), _e = void 0;
1903
- }, fo = (s, e, t) => {
1903
+ }, ho = (s, e, t) => {
1904
1904
  const o = s.manager;
1905
1905
  return o.V !== W && o.V !== t && o.S(void 0, void 0), o.T.length === 0 && queueMicrotask(() => o.S(void 0, void 0)), o.V = t, o.T.push((r, c) => x(e, void 0, t === c ? r : void 0)), t;
1906
- }, yo = (s = [
1906
+ }, po = (s = [
1907
1907
  nt(),
1908
- ...xn()
1908
+ ...In()
1909
1909
  ], e, t) => {
1910
1910
  const o = Array.isArray(s) ? s : [s];
1911
1911
  let r = o.length + 1;
@@ -1913,7 +1913,7 @@ const Et = () => {
1913
1913
  r -= 1, u !== void 0 && (r = Math.min(r, 0)), r === 0 && e(u);
1914
1914
  };
1915
1915
  o.forEach(
1916
- (u) => po(
1916
+ (u) => lo(
1917
1917
  u,
1918
1918
  (p) => c(p === void 0 ? void 0 : { key: p, host: u, isReactive: !1 }),
1919
1919
  t
@@ -1921,7 +1921,7 @@ const Et = () => {
1921
1921
  );
1922
1922
  for (const u of o)
1923
1923
  if ("manager" in u && u.manager.component === u) {
1924
- fo(
1924
+ ho(
1925
1925
  u,
1926
1926
  (p) => c(p === void 0 ? void 0 : { key: p, host: u, isReactive: !0 }),
1927
1927
  t
@@ -1929,7 +1929,7 @@ const Et = () => {
1929
1929
  break;
1930
1930
  }
1931
1931
  return t;
1932
- }, mo = (s = "", e = {}, t = nt()) => {
1932
+ }, fo = (s = "", e = {}, t = nt()) => {
1933
1933
  const o = {
1934
1934
  emit: (r) => {
1935
1935
  if (process.env.NODE_ENV !== "production" && U() && !t.el.isConnected && console.warn(`Trying to emit an ${s} event on a disconnected element ${t.el.localName}`), s === "" && (Et(), process.env.NODE_ENV !== "production" && U() && s === ""))
@@ -1944,7 +1944,7 @@ const Et = () => {
1944
1944
  return t.el.dispatchEvent(c), c;
1945
1945
  }
1946
1946
  };
1947
- return s === "" && yo(
1947
+ return s === "" && po(
1948
1948
  void 0,
1949
1949
  process.env.NODE_ENV !== "production" && U() ? (r) => {
1950
1950
  if (r === void 0)
@@ -1954,19 +1954,19 @@ const Et = () => {
1954
1954
  o
1955
1955
  ), o;
1956
1956
  };
1957
- mo.bind(null, "");
1957
+ fo.bind(null, "");
1958
1958
  var pn;
1959
1959
  pn = ht;
1960
- class go {
1960
+ class yo {
1961
1961
  constructor(e) {
1962
- this.#n = [], this.#t = [], this.#o = [], this.#c = [], this.#u = [], this.#l = [], this.#d = [], this.#h = [], this.#i = [], this.#a = !1, this.P = new Ie(), this.connectedCalled = !1, this.loadedCalled = !1, this[pn] = !0, this.#s = [];
1962
+ this.#n = [], this.#t = [], this.#o = [], this.#c = [], this.#u = [], this.#l = [], this.#d = [], this.#h = [], this.#i = [], this.#a = !1, this.P = new He(), this.connectedCalled = !1, this.loadedCalled = !1, this[pn] = !0, this.#s = [];
1963
1963
  const t = this, o = e ?? nt(new.target.name);
1964
1964
  t.#e = o, t.ready = t.P.promise, t.#r = tn(t), process.env.NODE_ENV !== "production" ? (Object.defineProperty(this, "component", {
1965
1965
  writable: !1,
1966
1966
  enumerable: !1,
1967
1967
  configurable: !0,
1968
1968
  value: o
1969
- }), "hostDestroy" in this && t.#e.manager.devOnly$ensureHasDestroy?.()) : t.component = o, t.#e.addController(t), t.#e.manager === void 0 || (Hn(t), queueMicrotask(() => t.catchUpLifecycle()));
1969
+ }), "hostDestroy" in this && t.#e.manager.devOnly$ensureHasDestroy?.()) : t.component = o, t.#e.addController(t), t.#e.manager === void 0 || (Un(t), queueMicrotask(() => t.catchUpLifecycle()));
1970
1970
  }
1971
1971
  #n;
1972
1972
  #t;
@@ -2034,7 +2034,7 @@ class go {
2034
2034
  * require awaiting them as they are guaranteed to be loaded by then.
2035
2035
  */
2036
2036
  get use() {
2037
- return ke(this.#e), zn;
2037
+ return ke(this.#e), jn;
2038
2038
  }
2039
2039
  /**
2040
2040
  * Just like controller.use, but returns the controller itself, rather than it's
@@ -2050,7 +2050,7 @@ class go {
2050
2050
  * some other method on the controller
2051
2051
  */
2052
2052
  get useRef() {
2053
- return ke(this.#e), qn;
2053
+ return ke(this.#e), Hn;
2054
2054
  }
2055
2055
  /**
2056
2056
  * Like useRef, but doesn't wait for the controller to get ready
@@ -2138,7 +2138,7 @@ class go {
2138
2138
  function en(s) {
2139
2139
  x(s, void 0, this);
2140
2140
  }
2141
- const vo = go, tn = (s) => {
2141
+ const mo = yo, tn = (s) => {
2142
2142
  if (typeof s != "object" && typeof s != "function" || s === null)
2143
2143
  return s;
2144
2144
  const e = {
@@ -2166,7 +2166,10 @@ const vo = go, tn = (s) => {
2166
2166
  `usage:
2167
2167
  `,
2168
2168
  "makeController(async (component, controller)=>{ await controller.use(someOtherController); });"
2169
- ].join("") : void 0, Eo = 1, _o = 2, wo = 4, bo = 8, $o = 16, Ao = 32, Co = 64;
2169
+ ].join("") : void 0, go = (s) => (
2170
+ //#endregion camelToKebab
2171
+ s.replace(vo, (e, t) => `${t === 0 ? "" : "-"}${e.toLowerCase()}`)
2172
+ ), vo = /[A-Z]+(?![a-z])|[A-Z]/gu, Eo = 1, _o = 2, wo = 4, bo = 8, $o = 16, Ao = 32, Co = 64;
2170
2173
  function Oo(s) {
2171
2174
  const e = s.prototype, t = Object.getOwnPropertyDescriptor(e, "innerText");
2172
2175
  if (t !== void 0 && t.set?.name === "setWrapper")
@@ -2256,7 +2259,7 @@ const wt = class wt extends So {
2256
2259
  F(this, z);
2257
2260
  F(this, Q);
2258
2261
  F(this, we);
2259
- V(this, Q, {}), V(this, we, []), this.I = new Ie(), this.H = new Ie(), this.J = [], process.env.NODE_ENV !== "production" && U() && (this.devOnly$hmrSetProps = /* @__PURE__ */ new Set(), this.devOnly$hmrSetAttributes = /* @__PURE__ */ new Set(), globalThis.devOnly$createdElements ??= [], globalThis.devOnly$createdElements.push(new WeakRef(this)), this.devOnly$InitializeComponent = ge(this, be, Je).bind(this), this.devOnly$hmrResetStore = (c) => {
2262
+ V(this, Q, {}), V(this, we, []), this.I = new He(), this.H = new He(), this.J = [], process.env.NODE_ENV !== "production" && U() && (this.devOnly$hmrSetProps = /* @__PURE__ */ new Set(), this.devOnly$hmrSetAttributes = /* @__PURE__ */ new Set(), globalThis.devOnly$createdElements ??= [], globalThis.devOnly$createdElements.push(new WeakRef(this)), this.devOnly$InitializeComponent = ge(this, be, Je).bind(this), this.devOnly$hmrResetStore = (c) => {
2260
2263
  V(this, Q, c);
2261
2264
  });
2262
2265
  const t = this, o = t.constructor;
@@ -2397,7 +2400,7 @@ const To = (s) => {
2397
2400
  }
2398
2401
  })), process.env.NODE_ENV !== "production" && U() && Oo(s);
2399
2402
  };
2400
- class yn extends vo {
2403
+ class yn extends mo {
2401
2404
  constructor(e) {
2402
2405
  super(e), this.destroyed = !1, this.R = !1, this.V = W, this.T = [], this.#o = /* @__PURE__ */ new WeakMap(), this.#t = e, this.exports = void 0, this.hasDestroy = tt in e && typeof e.destroy == "function", re.prototype.addController.call(e, {
2403
2406
  // Lit will call these callbacks
@@ -2451,7 +2454,7 @@ class yn extends vo {
2451
2454
  U() {
2452
2455
  if (this.#n !== void 0 && clearTimeout(this.#n), !this.#t.el.isConnected && !this.#t.autoDestroyDisabled) {
2453
2456
  const e = () => void this.#t.destroy();
2454
- process.env.NODE_ENV !== "production" && U() && sn === 0 || (this.#n = In(e, sn));
2457
+ process.env.NODE_ENV !== "production" && U() && sn === 0 || (this.#n = co(e, sn));
2455
2458
  }
2456
2459
  }
2457
2460
  /** @private */
@@ -2521,7 +2524,7 @@ const Ue = class Ue extends re {
2521
2524
  F(this, X);
2522
2525
  this.M = [], this.manager = new yn(this);
2523
2526
  const t = this, o = t.constructor, r = o.N, c = o.K.o, u = Ue.prototype.shouldUpdate;
2524
- if (V(t, de, r?.H ?? new Ie()), t.I = r?.I ?? new Ie(), t.J = r?.J ?? [], t._offspring = t.J, t._postLoad = t.I, t.el = r ?? t, V(t, We, t.enableUpdating), t.enableUpdating = _t, t.shouldUpdate !== u && (V(t, xe, t.shouldUpdate), t.shouldUpdate = u), process.env.NODE_ENV !== "production") {
2527
+ if (V(t, de, r?.H ?? new He()), t.I = r?.I ?? new He(), t.J = r?.J ?? [], t._offspring = t.J, t._postLoad = t.I, t.el = r ?? t, V(t, We, t.enableUpdating), t.enableUpdating = _t, t.shouldUpdate !== u && (V(t, xe, t.shouldUpdate), t.shouldUpdate = u), process.env.NODE_ENV !== "production") {
2525
2528
  const p = globalThis.devOnly$ownTagNames?.has(t.el.localName), h = this.constructor, m = h.enabledWarnings !== re.enabledWarnings;
2526
2529
  !p && !m && h.disableWarning?.("change-in-update"), U() && (globalThis.devOnly$luminaComponentRefCallback?.(this), Object.entries({
2527
2530
  componentDidLoad: "loaded",
@@ -2566,7 +2569,7 @@ const Ue = class Ue extends re {
2566
2569
  *
2567
2570
  * Thus, overwriting Lit's default behavior to use kebab-case:
2568
2571
  */
2569
- attribute: r & Eo && typeof t == "string" ? Dn(t) : !1,
2572
+ attribute: r & Eo && typeof t == "string" ? go(t) : !1,
2570
2573
  reflect: !!(r & _o),
2571
2574
  type: r & wo ? Boolean : r & bo ? Number : void 0,
2572
2575
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@arcgis/instant-apps-components-react",
3
- "version": "4.34.0-next.60",
3
+ "version": "4.34.0-next.61",
4
4
  "description": "A set of React components that wrap Instant Apps components",
5
5
  "sideEffects": false,
6
6
  "type": "module",
@@ -12,8 +12,8 @@
12
12
  ],
13
13
  "license": "SEE LICENSE IN LICENSE.md",
14
14
  "dependencies": {
15
- "@arcgis/instant-apps-components": "4.34.0-next.60",
16
- "@arcgis/map-components": "4.34.0-next.60",
15
+ "@arcgis/instant-apps-components": "4.34.0-next.61",
16
+ "@arcgis/map-components": "4.34.0-next.61",
17
17
  "@ckeditor/ckeditor5-build-classic": "^39.0.1",
18
18
  "@lit/react": "^1.0.7",
19
19
  "tslib": "^2.8.1"