@trycourier/courier-react 8.0.6-beta → 8.0.7-beta

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/index.mjs CHANGED
@@ -1,5 +1,10 @@
1
- import React, { useRef, useEffect } from "react";
2
- import ReactDOM, { flushSync } from "react-dom";
1
+ var __defProp = Object.defineProperty;
2
+ var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
3
+ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
4
+ import React, { version, useRef, useEffect } from "react";
5
+ import require$$1 from "object-assign";
6
+ import { flushSync } from "react-dom";
7
+ import { createRoot } from "react-dom/client";
3
8
  var __defProp$1 = Object.defineProperty;
4
9
  var __defNormalProp$1 = (obj, key, value) => key in obj ? __defProp$1(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
5
10
  var __publicField$1 = (obj, key, value) => __defNormalProp$1(obj, typeof key !== "symbol" ? key + "" : key, value);
@@ -1101,12 +1106,12 @@ const _Courier = class _Courier2 {
1101
1106
  };
1102
1107
  __publicField$1(_Courier, "instance");
1103
1108
  let Courier = _Courier;
1104
- var __defProp = Object.defineProperty;
1105
- var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
1106
- var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
1107
1109
  var __defProp2 = Object.defineProperty;
1108
1110
  var __defNormalProp2 = (obj, key, value) => key in obj ? __defProp2(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
1109
1111
  var __publicField2 = (obj, key, value) => __defNormalProp2(obj, typeof key !== "symbol" ? key + "" : key, value);
1112
+ var __defProp22 = Object.defineProperty;
1113
+ var __defNormalProp22 = (obj, key, value) => key in obj ? __defProp22(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
1114
+ var __publicField22 = (obj, key, value) => __defNormalProp22(obj, typeof key !== "symbol" ? key + "" : key, value);
1110
1115
  const CourierColors = {
1111
1116
  black: {
1112
1117
  500: "#171717",
@@ -1178,8 +1183,8 @@ const addSystemThemeModeListener = (callback) => {
1178
1183
  class CourierSystemThemeElement extends HTMLElement {
1179
1184
  constructor() {
1180
1185
  super();
1181
- __publicField2(this, "_currentSystemTheme");
1182
- __publicField2(this, "_systemThemeCleanup");
1186
+ __publicField22(this, "_currentSystemTheme");
1187
+ __publicField22(this, "_systemThemeCleanup");
1183
1188
  this._currentSystemTheme = getSystemThemeMode();
1184
1189
  this._systemThemeCleanup = addSystemThemeModeListener((mode) => {
1185
1190
  this._currentSystemTheme = mode;
@@ -1229,8 +1234,8 @@ const CourierButtonVariants = {
1229
1234
  class CourierButton extends CourierSystemThemeElement {
1230
1235
  constructor(props) {
1231
1236
  super();
1232
- __publicField2(this, "_button");
1233
- __publicField2(this, "_style");
1237
+ __publicField22(this, "_button");
1238
+ __publicField22(this, "_style");
1234
1239
  const shadow = this.attachShadow({ mode: "open" });
1235
1240
  this._button = document.createElement("button");
1236
1241
  this._button.setAttribute("part", "button");
@@ -1354,10 +1359,10 @@ const CourierIconSVGs = {
1354
1359
  class CourierIcon extends HTMLElement {
1355
1360
  constructor(color, svg) {
1356
1361
  super();
1357
- __publicField2(this, "_color");
1358
- __publicField2(this, "_svg");
1359
- __publicField2(this, "_iconContainer");
1360
- __publicField2(this, "_style");
1362
+ __publicField22(this, "_color");
1363
+ __publicField22(this, "_svg");
1364
+ __publicField22(this, "_iconContainer");
1365
+ __publicField22(this, "_style");
1361
1366
  this._color = color ?? CourierColors.black[500];
1362
1367
  this._svg = svg;
1363
1368
  const shadow = this.attachShadow({ mode: "open" });
@@ -1408,7 +1413,7 @@ if (!customElements.get("courier-icon")) {
1408
1413
  class CourierLink extends HTMLElement {
1409
1414
  constructor() {
1410
1415
  super();
1411
- __publicField2(this, "link");
1416
+ __publicField22(this, "link");
1412
1417
  const shadow = this.attachShadow({ mode: "open" });
1413
1418
  this.link = document.createElement("a");
1414
1419
  this.link.setAttribute("part", "link");
@@ -1556,7 +1561,7 @@ class CourierLink extends HTMLElement {
1556
1561
  }
1557
1562
  }
1558
1563
  }
1559
- __publicField2(CourierLink, "observedAttributes", [
1564
+ __publicField22(CourierLink, "observedAttributes", [
1560
1565
  "href",
1561
1566
  "variant",
1562
1567
  "disabled",
@@ -1573,7 +1578,7 @@ if (!customElements.get("courier-link")) {
1573
1578
  class CourierElement extends CourierSystemThemeElement {
1574
1579
  constructor() {
1575
1580
  super();
1576
- __publicField2(this, "shadow");
1581
+ __publicField22(this, "shadow");
1577
1582
  this.shadow = this.attachShadow({ mode: "open" });
1578
1583
  }
1579
1584
  // Build the element with a factory function
@@ -1600,11 +1605,11 @@ class CourierElement extends CourierSystemThemeElement {
1600
1605
  class CourierInfoState extends CourierElement {
1601
1606
  constructor(props) {
1602
1607
  super();
1603
- __publicField2(this, "_props");
1604
- __publicField2(this, "_title");
1605
- __publicField2(this, "_button");
1606
- __publicField2(this, "_style");
1607
- __publicField2(this, "_buttonClickCallback", null);
1608
+ __publicField22(this, "_props");
1609
+ __publicField22(this, "_title");
1610
+ __publicField22(this, "_button");
1611
+ __publicField22(this, "_style");
1612
+ __publicField22(this, "_buttonClickCallback", null);
1608
1613
  this._props = props;
1609
1614
  }
1610
1615
  defaultElement() {
@@ -1681,15 +1686,15 @@ if (!customElements.get("courier-info-state")) {
1681
1686
  class CourierIconButton extends HTMLElement {
1682
1687
  constructor(svg, color, backgroundColor, hoverBackgroundColor, activeBackgroundColor, borderRadius, height, width) {
1683
1688
  super();
1684
- __publicField2(this, "_backgroundColor");
1685
- __publicField2(this, "_hoverBackgroundColor");
1686
- __publicField2(this, "_activeBackgroundColor");
1687
- __publicField2(this, "_borderRadius");
1688
- __publicField2(this, "_height");
1689
- __publicField2(this, "_width");
1690
- __publicField2(this, "_style");
1691
- __publicField2(this, "_button");
1692
- __publicField2(this, "_icon");
1689
+ __publicField22(this, "_backgroundColor");
1690
+ __publicField22(this, "_hoverBackgroundColor");
1691
+ __publicField22(this, "_activeBackgroundColor");
1692
+ __publicField22(this, "_borderRadius");
1693
+ __publicField22(this, "_height");
1694
+ __publicField22(this, "_width");
1695
+ __publicField22(this, "_style");
1696
+ __publicField22(this, "_button");
1697
+ __publicField22(this, "_icon");
1693
1698
  this._borderRadius = borderRadius;
1694
1699
  this._backgroundColor = backgroundColor;
1695
1700
  this._hoverBackgroundColor = hoverBackgroundColor;
@@ -1834,9 +1839,9 @@ function getMessageTime(message) {
1834
1839
  class CourierListItemActionMenu extends HTMLElement {
1835
1840
  constructor(theme2) {
1836
1841
  super();
1837
- __publicField(this, "_theme");
1838
- __publicField(this, "_options", []);
1839
- __publicField(this, "_style");
1842
+ __publicField2(this, "_theme");
1843
+ __publicField2(this, "_options", []);
1844
+ __publicField2(this, "_style");
1840
1845
  this._theme = theme2;
1841
1846
  const shadow = this.attachShadow({ mode: "open" });
1842
1847
  this._style = document.createElement("style");
@@ -1929,12 +1934,12 @@ if (!customElements.get("courier-list-item-menu")) {
1929
1934
  }
1930
1935
  const _CourierInboxDatastore = class _CourierInboxDatastore2 {
1931
1936
  constructor() {
1932
- __publicField(this, "_inboxDataSet");
1933
- __publicField(this, "_archiveDataSet");
1934
- __publicField(this, "_dataStoreListeners", []);
1935
- __publicField(this, "_unreadCount");
1936
- __publicField(this, "isPaginatingInbox", false);
1937
- __publicField(this, "isPaginatingArchive", false);
1937
+ __publicField2(this, "_inboxDataSet");
1938
+ __publicField2(this, "_archiveDataSet");
1939
+ __publicField2(this, "_dataStoreListeners", []);
1940
+ __publicField2(this, "_unreadCount");
1941
+ __publicField2(this, "isPaginatingInbox", false);
1942
+ __publicField2(this, "isPaginatingArchive", false);
1938
1943
  }
1939
1944
  static get shared() {
1940
1945
  if (!_CourierInboxDatastore2.instance) {
@@ -2616,27 +2621,27 @@ const _CourierInboxDatastore = class _CourierInboxDatastore2 {
2616
2621
  };
2617
2622
  }
2618
2623
  };
2619
- __publicField(_CourierInboxDatastore, "instance");
2624
+ __publicField2(_CourierInboxDatastore, "instance");
2620
2625
  let CourierInboxDatastore = _CourierInboxDatastore;
2621
2626
  class CourierListItem extends HTMLElement {
2622
2627
  constructor(theme2) {
2623
2628
  super();
2624
- __publicField(this, "_theme");
2625
- __publicField(this, "_message", null);
2626
- __publicField(this, "_feedType", "inbox");
2627
- __publicField(this, "_isMobile", false);
2628
- __publicField(this, "_titleElement");
2629
- __publicField(this, "_subtitleElement");
2630
- __publicField(this, "_timeElement");
2631
- __publicField(this, "_style");
2632
- __publicField(this, "_menu");
2633
- __publicField(this, "_unreadIndicator");
2634
- __publicField(this, "_actionsContainer");
2635
- __publicField(this, "_longPressTimeout", null);
2636
- __publicField(this, "_isLongPress", false);
2637
- __publicField(this, "onItemClick", null);
2638
- __publicField(this, "onItemLongPress", null);
2639
- __publicField(this, "onItemActionClick", null);
2629
+ __publicField2(this, "_theme");
2630
+ __publicField2(this, "_message", null);
2631
+ __publicField2(this, "_feedType", "inbox");
2632
+ __publicField2(this, "_isMobile", false);
2633
+ __publicField2(this, "_titleElement");
2634
+ __publicField2(this, "_subtitleElement");
2635
+ __publicField2(this, "_timeElement");
2636
+ __publicField2(this, "_style");
2637
+ __publicField2(this, "_menu");
2638
+ __publicField2(this, "_unreadIndicator");
2639
+ __publicField2(this, "_actionsContainer");
2640
+ __publicField2(this, "_longPressTimeout", null);
2641
+ __publicField2(this, "_isLongPress", false);
2642
+ __publicField2(this, "onItemClick", null);
2643
+ __publicField2(this, "onItemLongPress", null);
2644
+ __publicField2(this, "onItemActionClick", null);
2640
2645
  this._theme = theme2;
2641
2646
  this._isMobile = "ontouchstart" in window;
2642
2647
  const shadow = this.attachShadow({ mode: "open" });
@@ -2994,7 +2999,7 @@ if (!customElements.get("courier-list-item")) {
2994
2999
  class CourierInboxSkeletonListItem extends HTMLElement {
2995
3000
  constructor(theme2, opacity) {
2996
3001
  super();
2997
- __publicField(this, "_shadow");
3002
+ __publicField2(this, "_shadow");
2998
3003
  this._shadow = this.attachShadow({ mode: "open" });
2999
3004
  const style = document.createElement("style");
3000
3005
  style.textContent = this.getStyles(opacity);
@@ -3026,7 +3031,7 @@ if (!customElements.get("courier-inbox-skeleton-list-item")) {
3026
3031
  class CourierSkeletonAnimatedRow extends HTMLElement {
3027
3032
  constructor(theme2, widthPercent) {
3028
3033
  super();
3029
- __publicField(this, "_shadow");
3034
+ __publicField2(this, "_shadow");
3030
3035
  this._shadow = this.attachShadow({ mode: "open" });
3031
3036
  const style = document.createElement("style");
3032
3037
  style.textContent = this.getStyles(theme2, widthPercent);
@@ -3084,7 +3089,7 @@ if (!customElements.get("courier-skeleton-animated-row")) {
3084
3089
  class CourierInboxSkeletonList extends CourierElement {
3085
3090
  constructor(theme2) {
3086
3091
  super();
3087
- __publicField(this, "_theme");
3092
+ __publicField2(this, "_theme");
3088
3093
  this._theme = theme2;
3089
3094
  }
3090
3095
  defaultElement() {
@@ -3136,10 +3141,10 @@ if (!customElements.get("courier-inbox-skeleton-list")) {
3136
3141
  class CourierInboxPaginationListItem extends HTMLElement {
3137
3142
  constructor(props) {
3138
3143
  super();
3139
- __publicField(this, "skeletonLoadingList");
3140
- __publicField(this, "observer");
3141
- __publicField(this, "customItem");
3142
- __publicField(this, "onPaginationTrigger");
3144
+ __publicField2(this, "skeletonLoadingList");
3145
+ __publicField2(this, "observer");
3146
+ __publicField2(this, "customItem");
3147
+ __publicField2(this, "onPaginationTrigger");
3143
3148
  this.onPaginationTrigger = props.onPaginationTrigger;
3144
3149
  this.customItem = props.customItem;
3145
3150
  const shadow = this.attachShadow({ mode: "open" });
@@ -3188,22 +3193,22 @@ if (!customElements.get("courier-inbox-pagination-list-item")) {
3188
3193
  class CourierInboxList extends HTMLElement {
3189
3194
  constructor(props) {
3190
3195
  super();
3191
- __publicField(this, "_themeSubscription");
3192
- __publicField(this, "_messages", []);
3193
- __publicField(this, "_feedType", "inbox");
3194
- __publicField(this, "_isLoading", true);
3195
- __publicField(this, "_error", null);
3196
- __publicField(this, "_canPaginate", false);
3197
- __publicField(this, "_onMessageClick", null);
3198
- __publicField(this, "_onMessageActionClick", null);
3199
- __publicField(this, "_onMessageLongPress", null);
3200
- __publicField(this, "_onRefresh");
3201
- __publicField(this, "_onPaginationTrigger");
3202
- __publicField(this, "_listItemFactory");
3203
- __publicField(this, "_paginationItemFactory");
3204
- __publicField(this, "_loadingStateFactory");
3205
- __publicField(this, "_emptyStateFactory");
3206
- __publicField(this, "_errorStateFactory");
3196
+ __publicField2(this, "_themeSubscription");
3197
+ __publicField2(this, "_messages", []);
3198
+ __publicField2(this, "_feedType", "inbox");
3199
+ __publicField2(this, "_isLoading", true);
3200
+ __publicField2(this, "_error", null);
3201
+ __publicField2(this, "_canPaginate", false);
3202
+ __publicField2(this, "_onMessageClick", null);
3203
+ __publicField2(this, "_onMessageActionClick", null);
3204
+ __publicField2(this, "_onMessageLongPress", null);
3205
+ __publicField2(this, "_onRefresh");
3206
+ __publicField2(this, "_onPaginationTrigger");
3207
+ __publicField2(this, "_listItemFactory");
3208
+ __publicField2(this, "_paginationItemFactory");
3209
+ __publicField2(this, "_loadingStateFactory");
3210
+ __publicField2(this, "_emptyStateFactory");
3211
+ __publicField2(this, "_errorStateFactory");
3207
3212
  this._themeSubscription = props.themeManager.subscribe((_) => {
3208
3213
  this.refreshTheme();
3209
3214
  });
@@ -3438,14 +3443,14 @@ if (!customElements.get("courier-inbox-list")) {
3438
3443
  class CourierInboxOptionMenuItem extends HTMLElement {
3439
3444
  constructor(props) {
3440
3445
  super();
3441
- __publicField(this, "_option");
3442
- __publicField(this, "_isSelected");
3443
- __publicField(this, "_content");
3444
- __publicField(this, "_itemIcon");
3445
- __publicField(this, "_title");
3446
- __publicField(this, "_selectionIcon");
3447
- __publicField(this, "_style");
3448
- __publicField(this, "_themeManager");
3446
+ __publicField2(this, "_option");
3447
+ __publicField2(this, "_isSelected");
3448
+ __publicField2(this, "_content");
3449
+ __publicField2(this, "_itemIcon");
3450
+ __publicField2(this, "_title");
3451
+ __publicField2(this, "_selectionIcon");
3452
+ __publicField2(this, "_style");
3453
+ __publicField2(this, "_themeManager");
3449
3454
  this._option = props.option;
3450
3455
  this._isSelected = props.isSelected;
3451
3456
  this._themeManager = props.themeManager;
@@ -3531,15 +3536,15 @@ if (!customElements.get("courier-inbox-filter-menu-item")) {
3531
3536
  class CourierInboxOptionMenu extends HTMLElement {
3532
3537
  constructor(themeManager, type, selectable, options, onMenuOpen) {
3533
3538
  super();
3534
- __publicField(this, "_themeSubscription");
3535
- __publicField(this, "_type");
3536
- __publicField(this, "_selectedIndex", 0);
3537
- __publicField(this, "_options");
3538
- __publicField(this, "_selectable");
3539
- __publicField(this, "_onMenuOpen");
3540
- __publicField(this, "_menuButton");
3541
- __publicField(this, "_menu");
3542
- __publicField(this, "_style");
3539
+ __publicField2(this, "_themeSubscription");
3540
+ __publicField2(this, "_type");
3541
+ __publicField2(this, "_selectedIndex", 0);
3542
+ __publicField2(this, "_options");
3543
+ __publicField2(this, "_selectable");
3544
+ __publicField2(this, "_onMenuOpen");
3545
+ __publicField2(this, "_menuButton");
3546
+ __publicField2(this, "_menu");
3547
+ __publicField2(this, "_style");
3543
3548
  this._type = type;
3544
3549
  this._selectable = selectable;
3545
3550
  this._options = options;
@@ -3660,11 +3665,11 @@ if (!customElements.get("courier-inbox-option-menu")) {
3660
3665
  class CourierUnreadCountBadge extends HTMLElement {
3661
3666
  constructor(props) {
3662
3667
  super();
3663
- __publicField(this, "_themeSubscription");
3664
- __publicField(this, "_location");
3665
- __publicField(this, "_count", 0);
3666
- __publicField(this, "_badge");
3667
- __publicField(this, "_style");
3668
+ __publicField2(this, "_themeSubscription");
3669
+ __publicField2(this, "_location");
3670
+ __publicField2(this, "_count", 0);
3671
+ __publicField2(this, "_badge");
3672
+ __publicField2(this, "_style");
3668
3673
  this._location = props.location;
3669
3674
  this._themeSubscription = props.themeBus.subscribe((_) => {
3670
3675
  this.refreshTheme(this._location);
@@ -3729,14 +3734,14 @@ if (!customElements.get("courier-unread-count-badge")) {
3729
3734
  class CourierInboxHeaderTitle extends HTMLElement {
3730
3735
  constructor(themeManager, option) {
3731
3736
  super();
3732
- __publicField(this, "_themeSubscription");
3733
- __publicField(this, "_option");
3734
- __publicField(this, "_feedType");
3735
- __publicField(this, "_titleElement");
3736
- __publicField(this, "_iconElement");
3737
- __publicField(this, "_unreadBadge");
3738
- __publicField(this, "_container");
3739
- __publicField(this, "_style");
3737
+ __publicField2(this, "_themeSubscription");
3738
+ __publicField2(this, "_option");
3739
+ __publicField2(this, "_feedType");
3740
+ __publicField2(this, "_titleElement");
3741
+ __publicField2(this, "_iconElement");
3742
+ __publicField2(this, "_unreadBadge");
3743
+ __publicField2(this, "_container");
3744
+ __publicField2(this, "_style");
3740
3745
  this._option = option;
3741
3746
  const shadow = this.attachShadow({ mode: "open" });
3742
3747
  this._style = document.createElement("style");
@@ -3826,14 +3831,14 @@ if (!customElements.get("courier-inbox-header-title")) {
3826
3831
  class CourierInboxHeader extends CourierElement {
3827
3832
  constructor(props) {
3828
3833
  super();
3829
- __publicField(this, "_themeSubscription");
3830
- __publicField(this, "_feedType", "inbox");
3831
- __publicField(this, "_unreadCount", 0);
3832
- __publicField(this, "_titleSection");
3833
- __publicField(this, "_filterMenu");
3834
- __publicField(this, "_actionMenu");
3835
- __publicField(this, "_style");
3836
- __publicField(this, "_onFeedTypeChange");
3834
+ __publicField2(this, "_themeSubscription");
3835
+ __publicField2(this, "_feedType", "inbox");
3836
+ __publicField2(this, "_unreadCount", 0);
3837
+ __publicField2(this, "_titleSection");
3838
+ __publicField2(this, "_filterMenu");
3839
+ __publicField2(this, "_actionMenu");
3840
+ __publicField2(this, "_style");
3841
+ __publicField2(this, "_onFeedTypeChange");
3837
3842
  this._themeSubscription = props.themeManager.subscribe((_) => {
3838
3843
  this.refreshTheme();
3839
3844
  });
@@ -4029,7 +4034,7 @@ if (!customElements.get("courier-inbox-header")) {
4029
4034
  }
4030
4035
  class CourierInboxDataStoreListener {
4031
4036
  constructor(events) {
4032
- __publicField(this, "events");
4037
+ __publicField2(this, "events");
4033
4038
  this.events = events;
4034
4039
  }
4035
4040
  remove() {
@@ -4698,15 +4703,15 @@ const mergeTheme = (mode, theme2) => {
4698
4703
  };
4699
4704
  class CourierInboxThemeManager {
4700
4705
  constructor(initialTheme) {
4701
- __publicField(this, "THEME_CHANGE_EVENT", "courier_inbox_theme_change");
4702
- __publicField(this, "_theme");
4703
- __publicField(this, "_lightTheme", defaultLightTheme);
4704
- __publicField(this, "_darkTheme", defaultDarkTheme);
4705
- __publicField(this, "_target");
4706
- __publicField(this, "_subscriptions", []);
4707
- __publicField(this, "_userMode");
4708
- __publicField(this, "_systemMode");
4709
- __publicField(this, "_systemThemeCleanup");
4706
+ __publicField2(this, "THEME_CHANGE_EVENT", "courier_inbox_theme_change");
4707
+ __publicField2(this, "_theme");
4708
+ __publicField2(this, "_lightTheme", defaultLightTheme);
4709
+ __publicField2(this, "_darkTheme", defaultDarkTheme);
4710
+ __publicField2(this, "_target");
4711
+ __publicField2(this, "_subscriptions", []);
4712
+ __publicField2(this, "_userMode");
4713
+ __publicField2(this, "_systemMode");
4714
+ __publicField2(this, "_systemThemeCleanup");
4710
4715
  this._theme = initialTheme;
4711
4716
  this._target = new EventTarget();
4712
4717
  this._userMode = "system";
@@ -4806,19 +4811,19 @@ let CourierInbox$1 = class CourierInbox extends HTMLElement {
4806
4811
  constructor(themeManager) {
4807
4812
  var _a;
4808
4813
  super();
4809
- __publicField(this, "_currentFeed", "inbox");
4810
- __publicField(this, "_themeManager");
4811
- __publicField(this, "_shadow");
4812
- __publicField(this, "_list");
4813
- __publicField(this, "_datastoreListener");
4814
- __publicField(this, "_authListener");
4815
- __publicField(this, "_style");
4816
- __publicField(this, "_header");
4817
- __publicField(this, "_headerFactory");
4818
- __publicField(this, "_onMessageClick");
4819
- __publicField(this, "_onMessageActionClick");
4820
- __publicField(this, "_onMessageLongPress");
4821
- __publicField(this, "_defaultProps", {
4814
+ __publicField2(this, "_currentFeed", "inbox");
4815
+ __publicField2(this, "_themeManager");
4816
+ __publicField2(this, "_shadow");
4817
+ __publicField2(this, "_list");
4818
+ __publicField2(this, "_datastoreListener");
4819
+ __publicField2(this, "_authListener");
4820
+ __publicField2(this, "_style");
4821
+ __publicField2(this, "_header");
4822
+ __publicField2(this, "_headerFactory");
4823
+ __publicField2(this, "_onMessageClick");
4824
+ __publicField2(this, "_onMessageActionClick");
4825
+ __publicField2(this, "_onMessageLongPress");
4826
+ __publicField2(this, "_defaultProps", {
4822
4827
  title: "Inbox",
4823
4828
  icon: CourierIconSVGs.inbox,
4824
4829
  feedType: this._currentFeed,
@@ -5108,10 +5113,10 @@ if (!customElements.get("courier-inbox")) {
5108
5113
  class CourierInboxMenuButton extends CourierElement {
5109
5114
  constructor(themeBus) {
5110
5115
  super();
5111
- __publicField(this, "_themeSubscription");
5112
- __publicField(this, "_container");
5113
- __publicField(this, "_triggerButton");
5114
- __publicField(this, "_unreadCountBadge");
5116
+ __publicField2(this, "_themeSubscription");
5117
+ __publicField2(this, "_container");
5118
+ __publicField2(this, "_triggerButton");
5119
+ __publicField2(this, "_unreadCountBadge");
5115
5120
  this._themeSubscription = themeBus.subscribe((_) => {
5116
5121
  this.updateTheme();
5117
5122
  });
@@ -5174,20 +5179,20 @@ if (!customElements.get("courier-inbox-menu-button")) {
5174
5179
  let CourierInboxMenu$1 = class CourierInboxMenu extends HTMLElement {
5175
5180
  constructor() {
5176
5181
  super();
5177
- __publicField(this, "_width", "440px");
5178
- __publicField(this, "_height", "440px");
5179
- __publicField(this, "_popupAlignment", "top-right");
5180
- __publicField(this, "_top", "40px");
5181
- __publicField(this, "_right", "0");
5182
- __publicField(this, "_bottom", "40px");
5183
- __publicField(this, "_left", "0");
5184
- __publicField(this, "_themeManager", new CourierInboxThemeManager(defaultLightTheme));
5185
- __publicField(this, "_triggerButton");
5186
- __publicField(this, "_popup");
5187
- __publicField(this, "_inbox");
5188
- __publicField(this, "_style");
5189
- __publicField(this, "_datastoreListener");
5190
- __publicField(this, "_popupMenuButtonFactory");
5182
+ __publicField2(this, "_width", "440px");
5183
+ __publicField2(this, "_height", "440px");
5184
+ __publicField2(this, "_popupAlignment", "top-right");
5185
+ __publicField2(this, "_top", "40px");
5186
+ __publicField2(this, "_right", "0");
5187
+ __publicField2(this, "_bottom", "40px");
5188
+ __publicField2(this, "_left", "0");
5189
+ __publicField2(this, "_themeManager", new CourierInboxThemeManager(defaultLightTheme));
5190
+ __publicField2(this, "_triggerButton");
5191
+ __publicField2(this, "_popup");
5192
+ __publicField2(this, "_inbox");
5193
+ __publicField2(this, "_style");
5194
+ __publicField2(this, "_datastoreListener");
5195
+ __publicField2(this, "_popupMenuButtonFactory");
5191
5196
  const shadow = this.attachShadow({ mode: "open" });
5192
5197
  this._triggerButton = new CourierInboxMenuButton(this._themeManager);
5193
5198
  this._triggerButton.build(void 0);
@@ -5558,50 +5563,45 @@ const useCourier = () => {
5558
5563
  };
5559
5564
  };
5560
5565
  var jsxRuntime = { exports: {} };
5561
- var reactJsxRuntime_production = {};
5562
- /**
5563
- * @license React
5564
- * react-jsx-runtime.production.js
5566
+ var reactJsxRuntime_production_min = {};
5567
+ /** @license React v17.0.2
5568
+ * react-jsx-runtime.production.min.js
5565
5569
  *
5566
- * Copyright (c) Meta Platforms, Inc. and affiliates.
5570
+ * Copyright (c) Facebook, Inc. and its affiliates.
5567
5571
  *
5568
5572
  * This source code is licensed under the MIT license found in the
5569
5573
  * LICENSE file in the root directory of this source tree.
5570
5574
  */
5571
- var hasRequiredReactJsxRuntime_production;
5572
- function requireReactJsxRuntime_production() {
5573
- if (hasRequiredReactJsxRuntime_production) return reactJsxRuntime_production;
5574
- hasRequiredReactJsxRuntime_production = 1;
5575
- var REACT_ELEMENT_TYPE = Symbol.for("react.transitional.element"), REACT_FRAGMENT_TYPE = Symbol.for("react.fragment");
5576
- function jsxProd(type, config, maybeKey) {
5577
- var key = null;
5578
- void 0 !== maybeKey && (key = "" + maybeKey);
5579
- void 0 !== config.key && (key = "" + config.key);
5580
- if ("key" in config) {
5581
- maybeKey = {};
5582
- for (var propName in config)
5583
- "key" !== propName && (maybeKey[propName] = config[propName]);
5584
- } else maybeKey = config;
5585
- config = maybeKey.ref;
5586
- return {
5587
- $$typeof: REACT_ELEMENT_TYPE,
5588
- type,
5589
- key,
5590
- ref: void 0 !== config ? config : null,
5591
- props: maybeKey
5592
- };
5593
- }
5594
- reactJsxRuntime_production.Fragment = REACT_FRAGMENT_TYPE;
5595
- reactJsxRuntime_production.jsx = jsxProd;
5596
- reactJsxRuntime_production.jsxs = jsxProd;
5597
- return reactJsxRuntime_production;
5575
+ var hasRequiredReactJsxRuntime_production_min;
5576
+ function requireReactJsxRuntime_production_min() {
5577
+ if (hasRequiredReactJsxRuntime_production_min) return reactJsxRuntime_production_min;
5578
+ hasRequiredReactJsxRuntime_production_min = 1;
5579
+ var f = React, g = 60103;
5580
+ reactJsxRuntime_production_min.Fragment = 60107;
5581
+ if ("function" === typeof Symbol && Symbol.for) {
5582
+ var h = Symbol.for;
5583
+ g = h("react.element");
5584
+ reactJsxRuntime_production_min.Fragment = h("react.fragment");
5585
+ }
5586
+ var m = f.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, n = Object.prototype.hasOwnProperty, p = { key: true, ref: true, __self: true, __source: true };
5587
+ function q(c, a, k) {
5588
+ var b, d = {}, e = null, l = null;
5589
+ void 0 !== k && (e = "" + k);
5590
+ void 0 !== a.key && (e = "" + a.key);
5591
+ void 0 !== a.ref && (l = a.ref);
5592
+ for (b in a) n.call(a, b) && !p.hasOwnProperty(b) && (d[b] = a[b]);
5593
+ if (c && c.defaultProps) for (b in a = c.defaultProps, a) void 0 === d[b] && (d[b] = a[b]);
5594
+ return { $$typeof: g, type: c, key: e, ref: l, props: d, _owner: m.current };
5595
+ }
5596
+ reactJsxRuntime_production_min.jsx = q;
5597
+ reactJsxRuntime_production_min.jsxs = q;
5598
+ return reactJsxRuntime_production_min;
5598
5599
  }
5599
5600
  var reactJsxRuntime_development = {};
5600
- /**
5601
- * @license React
5601
+ /** @license React v17.0.2
5602
5602
  * react-jsx-runtime.development.js
5603
5603
  *
5604
- * Copyright (c) Meta Platforms, Inc. and affiliates.
5604
+ * Copyright (c) Facebook, Inc. and its affiliates.
5605
5605
  *
5606
5606
  * This source code is licensed under the MIT license found in the
5607
5607
  * LICENSE file in the root directory of this source tree.
@@ -5610,260 +5610,830 @@ var hasRequiredReactJsxRuntime_development;
5610
5610
  function requireReactJsxRuntime_development() {
5611
5611
  if (hasRequiredReactJsxRuntime_development) return reactJsxRuntime_development;
5612
5612
  hasRequiredReactJsxRuntime_development = 1;
5613
- "production" !== process.env.NODE_ENV && function() {
5614
- function getComponentNameFromType(type) {
5615
- if (null == type) return null;
5616
- if ("function" === typeof type)
5617
- return type.$$typeof === REACT_CLIENT_REFERENCE ? null : type.displayName || type.name || null;
5618
- if ("string" === typeof type) return type;
5619
- switch (type) {
5620
- case REACT_FRAGMENT_TYPE:
5621
- return "Fragment";
5622
- case REACT_PROFILER_TYPE:
5623
- return "Profiler";
5624
- case REACT_STRICT_MODE_TYPE:
5625
- return "StrictMode";
5626
- case REACT_SUSPENSE_TYPE:
5627
- return "Suspense";
5628
- case REACT_SUSPENSE_LIST_TYPE:
5629
- return "SuspenseList";
5630
- case REACT_ACTIVITY_TYPE:
5631
- return "Activity";
5632
- }
5633
- if ("object" === typeof type)
5634
- switch ("number" === typeof type.tag && console.error(
5635
- "Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."
5636
- ), type.$$typeof) {
5637
- case REACT_PORTAL_TYPE:
5638
- return "Portal";
5639
- case REACT_CONTEXT_TYPE:
5640
- return (type.displayName || "Context") + ".Provider";
5641
- case REACT_CONSUMER_TYPE:
5642
- return (type._context.displayName || "Context") + ".Consumer";
5643
- case REACT_FORWARD_REF_TYPE:
5644
- var innerType = type.render;
5645
- type = type.displayName;
5646
- type || (type = innerType.displayName || innerType.name || "", type = "" !== type ? "ForwardRef(" + type + ")" : "ForwardRef");
5613
+ (function(exports) {
5614
+ if (process.env.NODE_ENV !== "production") {
5615
+ (function() {
5616
+ var React$1 = React;
5617
+ var _assign = require$$1;
5618
+ var REACT_ELEMENT_TYPE = 60103;
5619
+ var REACT_PORTAL_TYPE = 60106;
5620
+ exports.Fragment = 60107;
5621
+ var REACT_STRICT_MODE_TYPE = 60108;
5622
+ var REACT_PROFILER_TYPE = 60114;
5623
+ var REACT_PROVIDER_TYPE = 60109;
5624
+ var REACT_CONTEXT_TYPE = 60110;
5625
+ var REACT_FORWARD_REF_TYPE = 60112;
5626
+ var REACT_SUSPENSE_TYPE = 60113;
5627
+ var REACT_SUSPENSE_LIST_TYPE = 60120;
5628
+ var REACT_MEMO_TYPE = 60115;
5629
+ var REACT_LAZY_TYPE = 60116;
5630
+ var REACT_BLOCK_TYPE = 60121;
5631
+ var REACT_SERVER_BLOCK_TYPE = 60122;
5632
+ var REACT_FUNDAMENTAL_TYPE = 60117;
5633
+ var REACT_DEBUG_TRACING_MODE_TYPE = 60129;
5634
+ var REACT_LEGACY_HIDDEN_TYPE = 60131;
5635
+ if (typeof Symbol === "function" && Symbol.for) {
5636
+ var symbolFor = Symbol.for;
5637
+ REACT_ELEMENT_TYPE = symbolFor("react.element");
5638
+ REACT_PORTAL_TYPE = symbolFor("react.portal");
5639
+ exports.Fragment = symbolFor("react.fragment");
5640
+ REACT_STRICT_MODE_TYPE = symbolFor("react.strict_mode");
5641
+ REACT_PROFILER_TYPE = symbolFor("react.profiler");
5642
+ REACT_PROVIDER_TYPE = symbolFor("react.provider");
5643
+ REACT_CONTEXT_TYPE = symbolFor("react.context");
5644
+ REACT_FORWARD_REF_TYPE = symbolFor("react.forward_ref");
5645
+ REACT_SUSPENSE_TYPE = symbolFor("react.suspense");
5646
+ REACT_SUSPENSE_LIST_TYPE = symbolFor("react.suspense_list");
5647
+ REACT_MEMO_TYPE = symbolFor("react.memo");
5648
+ REACT_LAZY_TYPE = symbolFor("react.lazy");
5649
+ REACT_BLOCK_TYPE = symbolFor("react.block");
5650
+ REACT_SERVER_BLOCK_TYPE = symbolFor("react.server.block");
5651
+ REACT_FUNDAMENTAL_TYPE = symbolFor("react.fundamental");
5652
+ symbolFor("react.scope");
5653
+ symbolFor("react.opaque.id");
5654
+ REACT_DEBUG_TRACING_MODE_TYPE = symbolFor("react.debug_trace_mode");
5655
+ symbolFor("react.offscreen");
5656
+ REACT_LEGACY_HIDDEN_TYPE = symbolFor("react.legacy_hidden");
5657
+ }
5658
+ var MAYBE_ITERATOR_SYMBOL = typeof Symbol === "function" && Symbol.iterator;
5659
+ var FAUX_ITERATOR_SYMBOL = "@@iterator";
5660
+ function getIteratorFn(maybeIterable) {
5661
+ if (maybeIterable === null || typeof maybeIterable !== "object") {
5662
+ return null;
5663
+ }
5664
+ var maybeIterator = MAYBE_ITERATOR_SYMBOL && maybeIterable[MAYBE_ITERATOR_SYMBOL] || maybeIterable[FAUX_ITERATOR_SYMBOL];
5665
+ if (typeof maybeIterator === "function") {
5666
+ return maybeIterator;
5667
+ }
5668
+ return null;
5669
+ }
5670
+ var ReactSharedInternals = React$1.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
5671
+ function error(format) {
5672
+ {
5673
+ for (var _len2 = arguments.length, args = new Array(_len2 > 1 ? _len2 - 1 : 0), _key2 = 1; _key2 < _len2; _key2++) {
5674
+ args[_key2 - 1] = arguments[_key2];
5675
+ }
5676
+ printWarning("error", format, args);
5677
+ }
5678
+ }
5679
+ function printWarning(level, format, args) {
5680
+ {
5681
+ var ReactDebugCurrentFrame2 = ReactSharedInternals.ReactDebugCurrentFrame;
5682
+ var stack = ReactDebugCurrentFrame2.getStackAddendum();
5683
+ if (stack !== "") {
5684
+ format += "%s";
5685
+ args = args.concat([stack]);
5686
+ }
5687
+ var argsWithFormat = args.map(function(item) {
5688
+ return "" + item;
5689
+ });
5690
+ argsWithFormat.unshift("Warning: " + format);
5691
+ Function.prototype.apply.call(console[level], console, argsWithFormat);
5692
+ }
5693
+ }
5694
+ var enableScopeAPI = false;
5695
+ function isValidElementType(type) {
5696
+ if (typeof type === "string" || typeof type === "function") {
5697
+ return true;
5698
+ }
5699
+ if (type === exports.Fragment || type === REACT_PROFILER_TYPE || type === REACT_DEBUG_TRACING_MODE_TYPE || type === REACT_STRICT_MODE_TYPE || type === REACT_SUSPENSE_TYPE || type === REACT_SUSPENSE_LIST_TYPE || type === REACT_LEGACY_HIDDEN_TYPE || enableScopeAPI) {
5700
+ return true;
5701
+ }
5702
+ if (typeof type === "object" && type !== null) {
5703
+ if (type.$$typeof === REACT_LAZY_TYPE || type.$$typeof === REACT_MEMO_TYPE || type.$$typeof === REACT_PROVIDER_TYPE || type.$$typeof === REACT_CONTEXT_TYPE || type.$$typeof === REACT_FORWARD_REF_TYPE || type.$$typeof === REACT_FUNDAMENTAL_TYPE || type.$$typeof === REACT_BLOCK_TYPE || type[0] === REACT_SERVER_BLOCK_TYPE) {
5704
+ return true;
5705
+ }
5706
+ }
5707
+ return false;
5708
+ }
5709
+ function getWrappedName(outerType, innerType, wrapperName) {
5710
+ var functionName = innerType.displayName || innerType.name || "";
5711
+ return outerType.displayName || (functionName !== "" ? wrapperName + "(" + functionName + ")" : wrapperName);
5712
+ }
5713
+ function getContextName(type) {
5714
+ return type.displayName || "Context";
5715
+ }
5716
+ function getComponentName(type) {
5717
+ if (type == null) {
5718
+ return null;
5719
+ }
5720
+ {
5721
+ if (typeof type.tag === "number") {
5722
+ error("Received an unexpected object in getComponentName(). This is likely a bug in React. Please file an issue.");
5723
+ }
5724
+ }
5725
+ if (typeof type === "function") {
5726
+ return type.displayName || type.name || null;
5727
+ }
5728
+ if (typeof type === "string") {
5647
5729
  return type;
5648
- case REACT_MEMO_TYPE:
5649
- return innerType = type.displayName || null, null !== innerType ? innerType : getComponentNameFromType(type.type) || "Memo";
5650
- case REACT_LAZY_TYPE:
5651
- innerType = type._payload;
5652
- type = type._init;
5653
- try {
5654
- return getComponentNameFromType(type(innerType));
5655
- } catch (x) {
5730
+ }
5731
+ switch (type) {
5732
+ case exports.Fragment:
5733
+ return "Fragment";
5734
+ case REACT_PORTAL_TYPE:
5735
+ return "Portal";
5736
+ case REACT_PROFILER_TYPE:
5737
+ return "Profiler";
5738
+ case REACT_STRICT_MODE_TYPE:
5739
+ return "StrictMode";
5740
+ case REACT_SUSPENSE_TYPE:
5741
+ return "Suspense";
5742
+ case REACT_SUSPENSE_LIST_TYPE:
5743
+ return "SuspenseList";
5744
+ }
5745
+ if (typeof type === "object") {
5746
+ switch (type.$$typeof) {
5747
+ case REACT_CONTEXT_TYPE:
5748
+ var context = type;
5749
+ return getContextName(context) + ".Consumer";
5750
+ case REACT_PROVIDER_TYPE:
5751
+ var provider = type;
5752
+ return getContextName(provider._context) + ".Provider";
5753
+ case REACT_FORWARD_REF_TYPE:
5754
+ return getWrappedName(type, type.render, "ForwardRef");
5755
+ case REACT_MEMO_TYPE:
5756
+ return getComponentName(type.type);
5757
+ case REACT_BLOCK_TYPE:
5758
+ return getComponentName(type._render);
5759
+ case REACT_LAZY_TYPE: {
5760
+ var lazyComponent = type;
5761
+ var payload = lazyComponent._payload;
5762
+ var init = lazyComponent._init;
5763
+ try {
5764
+ return getComponentName(init(payload));
5765
+ } catch (x) {
5766
+ return null;
5767
+ }
5768
+ }
5656
5769
  }
5770
+ }
5771
+ return null;
5657
5772
  }
5658
- return null;
5659
- }
5660
- function testStringCoercion(value) {
5661
- return "" + value;
5662
- }
5663
- function checkKeyStringCoercion(value) {
5664
- try {
5665
- testStringCoercion(value);
5666
- var JSCompiler_inline_result = false;
5667
- } catch (e) {
5668
- JSCompiler_inline_result = true;
5669
- }
5670
- if (JSCompiler_inline_result) {
5671
- JSCompiler_inline_result = console;
5672
- var JSCompiler_temp_const = JSCompiler_inline_result.error;
5673
- var JSCompiler_inline_result$jscomp$0 = "function" === typeof Symbol && Symbol.toStringTag && value[Symbol.toStringTag] || value.constructor.name || "Object";
5674
- JSCompiler_temp_const.call(
5675
- JSCompiler_inline_result,
5676
- "The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",
5677
- JSCompiler_inline_result$jscomp$0
5678
- );
5679
- return testStringCoercion(value);
5680
- }
5681
- }
5682
- function getTaskName(type) {
5683
- if (type === REACT_FRAGMENT_TYPE) return "<>";
5684
- if ("object" === typeof type && null !== type && type.$$typeof === REACT_LAZY_TYPE)
5685
- return "<...>";
5686
- try {
5687
- var name = getComponentNameFromType(type);
5688
- return name ? "<" + name + ">" : "<...>";
5689
- } catch (x) {
5690
- return "<...>";
5691
- }
5692
- }
5693
- function getOwner() {
5694
- var dispatcher = ReactSharedInternals.A;
5695
- return null === dispatcher ? null : dispatcher.getOwner();
5696
- }
5697
- function UnknownOwner() {
5698
- return Error("react-stack-top-frame");
5699
- }
5700
- function hasValidKey(config) {
5701
- if (hasOwnProperty.call(config, "key")) {
5702
- var getter = Object.getOwnPropertyDescriptor(config, "key").get;
5703
- if (getter && getter.isReactWarning) return false;
5704
- }
5705
- return void 0 !== config.key;
5706
- }
5707
- function defineKeyPropWarningGetter(props, displayName) {
5708
- function warnAboutAccessingKey() {
5709
- specialPropKeyWarningShown || (specialPropKeyWarningShown = true, console.error(
5710
- "%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)",
5711
- displayName
5712
- ));
5713
- }
5714
- warnAboutAccessingKey.isReactWarning = true;
5715
- Object.defineProperty(props, "key", {
5716
- get: warnAboutAccessingKey,
5717
- configurable: true
5718
- });
5719
- }
5720
- function elementRefGetterWithDeprecationWarning() {
5721
- var componentName = getComponentNameFromType(this.type);
5722
- didWarnAboutElementRef[componentName] || (didWarnAboutElementRef[componentName] = true, console.error(
5723
- "Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release."
5724
- ));
5725
- componentName = this.props.ref;
5726
- return void 0 !== componentName ? componentName : null;
5727
- }
5728
- function ReactElement(type, key, self, source, owner, props, debugStack, debugTask) {
5729
- self = props.ref;
5730
- type = {
5731
- $$typeof: REACT_ELEMENT_TYPE,
5732
- type,
5733
- key,
5734
- props,
5735
- _owner: owner
5736
- };
5737
- null !== (void 0 !== self ? self : null) ? Object.defineProperty(type, "ref", {
5738
- enumerable: false,
5739
- get: elementRefGetterWithDeprecationWarning
5740
- }) : Object.defineProperty(type, "ref", { enumerable: false, value: null });
5741
- type._store = {};
5742
- Object.defineProperty(type._store, "validated", {
5743
- configurable: false,
5744
- enumerable: false,
5745
- writable: true,
5746
- value: 0
5747
- });
5748
- Object.defineProperty(type, "_debugInfo", {
5749
- configurable: false,
5750
- enumerable: false,
5751
- writable: true,
5752
- value: null
5753
- });
5754
- Object.defineProperty(type, "_debugStack", {
5755
- configurable: false,
5756
- enumerable: false,
5757
- writable: true,
5758
- value: debugStack
5759
- });
5760
- Object.defineProperty(type, "_debugTask", {
5761
- configurable: false,
5762
- enumerable: false,
5763
- writable: true,
5764
- value: debugTask
5765
- });
5766
- Object.freeze && (Object.freeze(type.props), Object.freeze(type));
5767
- return type;
5768
- }
5769
- function jsxDEVImpl(type, config, maybeKey, isStaticChildren, source, self, debugStack, debugTask) {
5770
- var children = config.children;
5771
- if (void 0 !== children)
5772
- if (isStaticChildren)
5773
- if (isArrayImpl(children)) {
5774
- for (isStaticChildren = 0; isStaticChildren < children.length; isStaticChildren++)
5775
- validateChildKeys(children[isStaticChildren]);
5776
- Object.freeze && Object.freeze(children);
5777
- } else
5778
- console.error(
5779
- "React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead."
5780
- );
5781
- else validateChildKeys(children);
5782
- if (hasOwnProperty.call(config, "key")) {
5783
- children = getComponentNameFromType(type);
5784
- var keys = Object.keys(config).filter(function(k) {
5785
- return "key" !== k;
5786
- });
5787
- isStaticChildren = 0 < keys.length ? "{key: someKey, " + keys.join(": ..., ") + ": ...}" : "{key: someKey}";
5788
- didWarnAboutKeySpread[children + isStaticChildren] || (keys = 0 < keys.length ? "{" + keys.join(": ..., ") + ": ...}" : "{}", console.error(
5789
- 'A props object containing a "key" prop is being spread into JSX:\n let props = %s;\n <%s {...props} />\nReact keys must be passed directly to JSX without using spread:\n let props = %s;\n <%s key={someKey} {...props} />',
5790
- isStaticChildren,
5791
- children,
5792
- keys,
5793
- children
5794
- ), didWarnAboutKeySpread[children + isStaticChildren] = true);
5795
- }
5796
- children = null;
5797
- void 0 !== maybeKey && (checkKeyStringCoercion(maybeKey), children = "" + maybeKey);
5798
- hasValidKey(config) && (checkKeyStringCoercion(config.key), children = "" + config.key);
5799
- if ("key" in config) {
5800
- maybeKey = {};
5801
- for (var propName in config)
5802
- "key" !== propName && (maybeKey[propName] = config[propName]);
5803
- } else maybeKey = config;
5804
- children && defineKeyPropWarningGetter(
5805
- maybeKey,
5806
- "function" === typeof type ? type.displayName || type.name || "Unknown" : type
5807
- );
5808
- return ReactElement(
5809
- type,
5810
- children,
5811
- self,
5812
- source,
5813
- getOwner(),
5814
- maybeKey,
5815
- debugStack,
5816
- debugTask
5817
- );
5818
- }
5819
- function validateChildKeys(node) {
5820
- "object" === typeof node && null !== node && node.$$typeof === REACT_ELEMENT_TYPE && node._store && (node._store.validated = 1);
5773
+ var disabledDepth = 0;
5774
+ var prevLog;
5775
+ var prevInfo;
5776
+ var prevWarn;
5777
+ var prevError;
5778
+ var prevGroup;
5779
+ var prevGroupCollapsed;
5780
+ var prevGroupEnd;
5781
+ function disabledLog() {
5782
+ }
5783
+ disabledLog.__reactDisabledLog = true;
5784
+ function disableLogs() {
5785
+ {
5786
+ if (disabledDepth === 0) {
5787
+ prevLog = console.log;
5788
+ prevInfo = console.info;
5789
+ prevWarn = console.warn;
5790
+ prevError = console.error;
5791
+ prevGroup = console.group;
5792
+ prevGroupCollapsed = console.groupCollapsed;
5793
+ prevGroupEnd = console.groupEnd;
5794
+ var props = {
5795
+ configurable: true,
5796
+ enumerable: true,
5797
+ value: disabledLog,
5798
+ writable: true
5799
+ };
5800
+ Object.defineProperties(console, {
5801
+ info: props,
5802
+ log: props,
5803
+ warn: props,
5804
+ error: props,
5805
+ group: props,
5806
+ groupCollapsed: props,
5807
+ groupEnd: props
5808
+ });
5809
+ }
5810
+ disabledDepth++;
5811
+ }
5812
+ }
5813
+ function reenableLogs() {
5814
+ {
5815
+ disabledDepth--;
5816
+ if (disabledDepth === 0) {
5817
+ var props = {
5818
+ configurable: true,
5819
+ enumerable: true,
5820
+ writable: true
5821
+ };
5822
+ Object.defineProperties(console, {
5823
+ log: _assign({}, props, {
5824
+ value: prevLog
5825
+ }),
5826
+ info: _assign({}, props, {
5827
+ value: prevInfo
5828
+ }),
5829
+ warn: _assign({}, props, {
5830
+ value: prevWarn
5831
+ }),
5832
+ error: _assign({}, props, {
5833
+ value: prevError
5834
+ }),
5835
+ group: _assign({}, props, {
5836
+ value: prevGroup
5837
+ }),
5838
+ groupCollapsed: _assign({}, props, {
5839
+ value: prevGroupCollapsed
5840
+ }),
5841
+ groupEnd: _assign({}, props, {
5842
+ value: prevGroupEnd
5843
+ })
5844
+ });
5845
+ }
5846
+ if (disabledDepth < 0) {
5847
+ error("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
5848
+ }
5849
+ }
5850
+ }
5851
+ var ReactCurrentDispatcher = ReactSharedInternals.ReactCurrentDispatcher;
5852
+ var prefix;
5853
+ function describeBuiltInComponentFrame(name, source, ownerFn) {
5854
+ {
5855
+ if (prefix === void 0) {
5856
+ try {
5857
+ throw Error();
5858
+ } catch (x) {
5859
+ var match = x.stack.trim().match(/\n( *(at )?)/);
5860
+ prefix = match && match[1] || "";
5861
+ }
5862
+ }
5863
+ return "\n" + prefix + name;
5864
+ }
5865
+ }
5866
+ var reentry = false;
5867
+ var componentFrameCache;
5868
+ {
5869
+ var PossiblyWeakMap = typeof WeakMap === "function" ? WeakMap : Map;
5870
+ componentFrameCache = new PossiblyWeakMap();
5871
+ }
5872
+ function describeNativeComponentFrame(fn, construct) {
5873
+ if (!fn || reentry) {
5874
+ return "";
5875
+ }
5876
+ {
5877
+ var frame = componentFrameCache.get(fn);
5878
+ if (frame !== void 0) {
5879
+ return frame;
5880
+ }
5881
+ }
5882
+ var control;
5883
+ reentry = true;
5884
+ var previousPrepareStackTrace = Error.prepareStackTrace;
5885
+ Error.prepareStackTrace = void 0;
5886
+ var previousDispatcher;
5887
+ {
5888
+ previousDispatcher = ReactCurrentDispatcher.current;
5889
+ ReactCurrentDispatcher.current = null;
5890
+ disableLogs();
5891
+ }
5892
+ try {
5893
+ if (construct) {
5894
+ var Fake = function() {
5895
+ throw Error();
5896
+ };
5897
+ Object.defineProperty(Fake.prototype, "props", {
5898
+ set: function() {
5899
+ throw Error();
5900
+ }
5901
+ });
5902
+ if (typeof Reflect === "object" && Reflect.construct) {
5903
+ try {
5904
+ Reflect.construct(Fake, []);
5905
+ } catch (x) {
5906
+ control = x;
5907
+ }
5908
+ Reflect.construct(fn, [], Fake);
5909
+ } else {
5910
+ try {
5911
+ Fake.call();
5912
+ } catch (x) {
5913
+ control = x;
5914
+ }
5915
+ fn.call(Fake.prototype);
5916
+ }
5917
+ } else {
5918
+ try {
5919
+ throw Error();
5920
+ } catch (x) {
5921
+ control = x;
5922
+ }
5923
+ fn();
5924
+ }
5925
+ } catch (sample) {
5926
+ if (sample && control && typeof sample.stack === "string") {
5927
+ var sampleLines = sample.stack.split("\n");
5928
+ var controlLines = control.stack.split("\n");
5929
+ var s = sampleLines.length - 1;
5930
+ var c = controlLines.length - 1;
5931
+ while (s >= 1 && c >= 0 && sampleLines[s] !== controlLines[c]) {
5932
+ c--;
5933
+ }
5934
+ for (; s >= 1 && c >= 0; s--, c--) {
5935
+ if (sampleLines[s] !== controlLines[c]) {
5936
+ if (s !== 1 || c !== 1) {
5937
+ do {
5938
+ s--;
5939
+ c--;
5940
+ if (c < 0 || sampleLines[s] !== controlLines[c]) {
5941
+ var _frame = "\n" + sampleLines[s].replace(" at new ", " at ");
5942
+ {
5943
+ if (typeof fn === "function") {
5944
+ componentFrameCache.set(fn, _frame);
5945
+ }
5946
+ }
5947
+ return _frame;
5948
+ }
5949
+ } while (s >= 1 && c >= 0);
5950
+ }
5951
+ break;
5952
+ }
5953
+ }
5954
+ }
5955
+ } finally {
5956
+ reentry = false;
5957
+ {
5958
+ ReactCurrentDispatcher.current = previousDispatcher;
5959
+ reenableLogs();
5960
+ }
5961
+ Error.prepareStackTrace = previousPrepareStackTrace;
5962
+ }
5963
+ var name = fn ? fn.displayName || fn.name : "";
5964
+ var syntheticFrame = name ? describeBuiltInComponentFrame(name) : "";
5965
+ {
5966
+ if (typeof fn === "function") {
5967
+ componentFrameCache.set(fn, syntheticFrame);
5968
+ }
5969
+ }
5970
+ return syntheticFrame;
5971
+ }
5972
+ function describeFunctionComponentFrame(fn, source, ownerFn) {
5973
+ {
5974
+ return describeNativeComponentFrame(fn, false);
5975
+ }
5976
+ }
5977
+ function shouldConstruct(Component) {
5978
+ var prototype = Component.prototype;
5979
+ return !!(prototype && prototype.isReactComponent);
5980
+ }
5981
+ function describeUnknownElementTypeFrameInDEV(type, source, ownerFn) {
5982
+ if (type == null) {
5983
+ return "";
5984
+ }
5985
+ if (typeof type === "function") {
5986
+ {
5987
+ return describeNativeComponentFrame(type, shouldConstruct(type));
5988
+ }
5989
+ }
5990
+ if (typeof type === "string") {
5991
+ return describeBuiltInComponentFrame(type);
5992
+ }
5993
+ switch (type) {
5994
+ case REACT_SUSPENSE_TYPE:
5995
+ return describeBuiltInComponentFrame("Suspense");
5996
+ case REACT_SUSPENSE_LIST_TYPE:
5997
+ return describeBuiltInComponentFrame("SuspenseList");
5998
+ }
5999
+ if (typeof type === "object") {
6000
+ switch (type.$$typeof) {
6001
+ case REACT_FORWARD_REF_TYPE:
6002
+ return describeFunctionComponentFrame(type.render);
6003
+ case REACT_MEMO_TYPE:
6004
+ return describeUnknownElementTypeFrameInDEV(type.type, source, ownerFn);
6005
+ case REACT_BLOCK_TYPE:
6006
+ return describeFunctionComponentFrame(type._render);
6007
+ case REACT_LAZY_TYPE: {
6008
+ var lazyComponent = type;
6009
+ var payload = lazyComponent._payload;
6010
+ var init = lazyComponent._init;
6011
+ try {
6012
+ return describeUnknownElementTypeFrameInDEV(init(payload), source, ownerFn);
6013
+ } catch (x) {
6014
+ }
6015
+ }
6016
+ }
6017
+ }
6018
+ return "";
6019
+ }
6020
+ var loggedTypeFailures = {};
6021
+ var ReactDebugCurrentFrame = ReactSharedInternals.ReactDebugCurrentFrame;
6022
+ function setCurrentlyValidatingElement(element) {
6023
+ {
6024
+ if (element) {
6025
+ var owner = element._owner;
6026
+ var stack = describeUnknownElementTypeFrameInDEV(element.type, element._source, owner ? owner.type : null);
6027
+ ReactDebugCurrentFrame.setExtraStackFrame(stack);
6028
+ } else {
6029
+ ReactDebugCurrentFrame.setExtraStackFrame(null);
6030
+ }
6031
+ }
6032
+ }
6033
+ function checkPropTypes(typeSpecs, values, location, componentName, element) {
6034
+ {
6035
+ var has = Function.call.bind(Object.prototype.hasOwnProperty);
6036
+ for (var typeSpecName in typeSpecs) {
6037
+ if (has(typeSpecs, typeSpecName)) {
6038
+ var error$1 = void 0;
6039
+ try {
6040
+ if (typeof typeSpecs[typeSpecName] !== "function") {
6041
+ var err = Error((componentName || "React class") + ": " + location + " type `" + typeSpecName + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof typeSpecs[typeSpecName] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
6042
+ err.name = "Invariant Violation";
6043
+ throw err;
6044
+ }
6045
+ error$1 = typeSpecs[typeSpecName](values, typeSpecName, componentName, location, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
6046
+ } catch (ex) {
6047
+ error$1 = ex;
6048
+ }
6049
+ if (error$1 && !(error$1 instanceof Error)) {
6050
+ setCurrentlyValidatingElement(element);
6051
+ error("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).", componentName || "React class", location, typeSpecName, typeof error$1);
6052
+ setCurrentlyValidatingElement(null);
6053
+ }
6054
+ if (error$1 instanceof Error && !(error$1.message in loggedTypeFailures)) {
6055
+ loggedTypeFailures[error$1.message] = true;
6056
+ setCurrentlyValidatingElement(element);
6057
+ error("Failed %s type: %s", location, error$1.message);
6058
+ setCurrentlyValidatingElement(null);
6059
+ }
6060
+ }
6061
+ }
6062
+ }
6063
+ }
6064
+ var ReactCurrentOwner = ReactSharedInternals.ReactCurrentOwner;
6065
+ var hasOwnProperty = Object.prototype.hasOwnProperty;
6066
+ var RESERVED_PROPS = {
6067
+ key: true,
6068
+ ref: true,
6069
+ __self: true,
6070
+ __source: true
6071
+ };
6072
+ var specialPropKeyWarningShown;
6073
+ var specialPropRefWarningShown;
6074
+ function hasValidRef(config) {
6075
+ {
6076
+ if (hasOwnProperty.call(config, "ref")) {
6077
+ var getter = Object.getOwnPropertyDescriptor(config, "ref").get;
6078
+ if (getter && getter.isReactWarning) {
6079
+ return false;
6080
+ }
6081
+ }
6082
+ }
6083
+ return config.ref !== void 0;
6084
+ }
6085
+ function hasValidKey(config) {
6086
+ {
6087
+ if (hasOwnProperty.call(config, "key")) {
6088
+ var getter = Object.getOwnPropertyDescriptor(config, "key").get;
6089
+ if (getter && getter.isReactWarning) {
6090
+ return false;
6091
+ }
6092
+ }
6093
+ }
6094
+ return config.key !== void 0;
6095
+ }
6096
+ function warnIfStringRefCannotBeAutoConverted(config, self) {
6097
+ {
6098
+ if (typeof config.ref === "string" && ReactCurrentOwner.current && self) ;
6099
+ }
6100
+ }
6101
+ function defineKeyPropWarningGetter(props, displayName) {
6102
+ {
6103
+ var warnAboutAccessingKey = function() {
6104
+ if (!specialPropKeyWarningShown) {
6105
+ specialPropKeyWarningShown = true;
6106
+ error("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", displayName);
6107
+ }
6108
+ };
6109
+ warnAboutAccessingKey.isReactWarning = true;
6110
+ Object.defineProperty(props, "key", {
6111
+ get: warnAboutAccessingKey,
6112
+ configurable: true
6113
+ });
6114
+ }
6115
+ }
6116
+ function defineRefPropWarningGetter(props, displayName) {
6117
+ {
6118
+ var warnAboutAccessingRef = function() {
6119
+ if (!specialPropRefWarningShown) {
6120
+ specialPropRefWarningShown = true;
6121
+ error("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", displayName);
6122
+ }
6123
+ };
6124
+ warnAboutAccessingRef.isReactWarning = true;
6125
+ Object.defineProperty(props, "ref", {
6126
+ get: warnAboutAccessingRef,
6127
+ configurable: true
6128
+ });
6129
+ }
6130
+ }
6131
+ var ReactElement = function(type, key, ref, self, source, owner, props) {
6132
+ var element = {
6133
+ // This tag allows us to uniquely identify this as a React Element
6134
+ $$typeof: REACT_ELEMENT_TYPE,
6135
+ // Built-in properties that belong on the element
6136
+ type,
6137
+ key,
6138
+ ref,
6139
+ props,
6140
+ // Record the component responsible for creating this element.
6141
+ _owner: owner
6142
+ };
6143
+ {
6144
+ element._store = {};
6145
+ Object.defineProperty(element._store, "validated", {
6146
+ configurable: false,
6147
+ enumerable: false,
6148
+ writable: true,
6149
+ value: false
6150
+ });
6151
+ Object.defineProperty(element, "_self", {
6152
+ configurable: false,
6153
+ enumerable: false,
6154
+ writable: false,
6155
+ value: self
6156
+ });
6157
+ Object.defineProperty(element, "_source", {
6158
+ configurable: false,
6159
+ enumerable: false,
6160
+ writable: false,
6161
+ value: source
6162
+ });
6163
+ if (Object.freeze) {
6164
+ Object.freeze(element.props);
6165
+ Object.freeze(element);
6166
+ }
6167
+ }
6168
+ return element;
6169
+ };
6170
+ function jsxDEV(type, config, maybeKey, source, self) {
6171
+ {
6172
+ var propName;
6173
+ var props = {};
6174
+ var key = null;
6175
+ var ref = null;
6176
+ if (maybeKey !== void 0) {
6177
+ key = "" + maybeKey;
6178
+ }
6179
+ if (hasValidKey(config)) {
6180
+ key = "" + config.key;
6181
+ }
6182
+ if (hasValidRef(config)) {
6183
+ ref = config.ref;
6184
+ warnIfStringRefCannotBeAutoConverted(config, self);
6185
+ }
6186
+ for (propName in config) {
6187
+ if (hasOwnProperty.call(config, propName) && !RESERVED_PROPS.hasOwnProperty(propName)) {
6188
+ props[propName] = config[propName];
6189
+ }
6190
+ }
6191
+ if (type && type.defaultProps) {
6192
+ var defaultProps = type.defaultProps;
6193
+ for (propName in defaultProps) {
6194
+ if (props[propName] === void 0) {
6195
+ props[propName] = defaultProps[propName];
6196
+ }
6197
+ }
6198
+ }
6199
+ if (key || ref) {
6200
+ var displayName = typeof type === "function" ? type.displayName || type.name || "Unknown" : type;
6201
+ if (key) {
6202
+ defineKeyPropWarningGetter(props, displayName);
6203
+ }
6204
+ if (ref) {
6205
+ defineRefPropWarningGetter(props, displayName);
6206
+ }
6207
+ }
6208
+ return ReactElement(type, key, ref, self, source, ReactCurrentOwner.current, props);
6209
+ }
6210
+ }
6211
+ var ReactCurrentOwner$1 = ReactSharedInternals.ReactCurrentOwner;
6212
+ var ReactDebugCurrentFrame$1 = ReactSharedInternals.ReactDebugCurrentFrame;
6213
+ function setCurrentlyValidatingElement$1(element) {
6214
+ {
6215
+ if (element) {
6216
+ var owner = element._owner;
6217
+ var stack = describeUnknownElementTypeFrameInDEV(element.type, element._source, owner ? owner.type : null);
6218
+ ReactDebugCurrentFrame$1.setExtraStackFrame(stack);
6219
+ } else {
6220
+ ReactDebugCurrentFrame$1.setExtraStackFrame(null);
6221
+ }
6222
+ }
6223
+ }
6224
+ var propTypesMisspellWarningShown;
6225
+ {
6226
+ propTypesMisspellWarningShown = false;
6227
+ }
6228
+ function isValidElement(object) {
6229
+ {
6230
+ return typeof object === "object" && object !== null && object.$$typeof === REACT_ELEMENT_TYPE;
6231
+ }
6232
+ }
6233
+ function getDeclarationErrorAddendum() {
6234
+ {
6235
+ if (ReactCurrentOwner$1.current) {
6236
+ var name = getComponentName(ReactCurrentOwner$1.current.type);
6237
+ if (name) {
6238
+ return "\n\nCheck the render method of `" + name + "`.";
6239
+ }
6240
+ }
6241
+ return "";
6242
+ }
6243
+ }
6244
+ function getSourceInfoErrorAddendum(source) {
6245
+ {
6246
+ return "";
6247
+ }
6248
+ }
6249
+ var ownerHasKeyUseWarning = {};
6250
+ function getCurrentComponentErrorInfo(parentType) {
6251
+ {
6252
+ var info = getDeclarationErrorAddendum();
6253
+ if (!info) {
6254
+ var parentName = typeof parentType === "string" ? parentType : parentType.displayName || parentType.name;
6255
+ if (parentName) {
6256
+ info = "\n\nCheck the top-level render call using <" + parentName + ">.";
6257
+ }
6258
+ }
6259
+ return info;
6260
+ }
6261
+ }
6262
+ function validateExplicitKey(element, parentType) {
6263
+ {
6264
+ if (!element._store || element._store.validated || element.key != null) {
6265
+ return;
6266
+ }
6267
+ element._store.validated = true;
6268
+ var currentComponentErrorInfo = getCurrentComponentErrorInfo(parentType);
6269
+ if (ownerHasKeyUseWarning[currentComponentErrorInfo]) {
6270
+ return;
6271
+ }
6272
+ ownerHasKeyUseWarning[currentComponentErrorInfo] = true;
6273
+ var childOwner = "";
6274
+ if (element && element._owner && element._owner !== ReactCurrentOwner$1.current) {
6275
+ childOwner = " It was passed a child from " + getComponentName(element._owner.type) + ".";
6276
+ }
6277
+ setCurrentlyValidatingElement$1(element);
6278
+ error('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', currentComponentErrorInfo, childOwner);
6279
+ setCurrentlyValidatingElement$1(null);
6280
+ }
6281
+ }
6282
+ function validateChildKeys(node, parentType) {
6283
+ {
6284
+ if (typeof node !== "object") {
6285
+ return;
6286
+ }
6287
+ if (Array.isArray(node)) {
6288
+ for (var i = 0; i < node.length; i++) {
6289
+ var child = node[i];
6290
+ if (isValidElement(child)) {
6291
+ validateExplicitKey(child, parentType);
6292
+ }
6293
+ }
6294
+ } else if (isValidElement(node)) {
6295
+ if (node._store) {
6296
+ node._store.validated = true;
6297
+ }
6298
+ } else if (node) {
6299
+ var iteratorFn = getIteratorFn(node);
6300
+ if (typeof iteratorFn === "function") {
6301
+ if (iteratorFn !== node.entries) {
6302
+ var iterator = iteratorFn.call(node);
6303
+ var step;
6304
+ while (!(step = iterator.next()).done) {
6305
+ if (isValidElement(step.value)) {
6306
+ validateExplicitKey(step.value, parentType);
6307
+ }
6308
+ }
6309
+ }
6310
+ }
6311
+ }
6312
+ }
6313
+ }
6314
+ function validatePropTypes(element) {
6315
+ {
6316
+ var type = element.type;
6317
+ if (type === null || type === void 0 || typeof type === "string") {
6318
+ return;
6319
+ }
6320
+ var propTypes;
6321
+ if (typeof type === "function") {
6322
+ propTypes = type.propTypes;
6323
+ } else if (typeof type === "object" && (type.$$typeof === REACT_FORWARD_REF_TYPE || // Note: Memo only checks outer props here.
6324
+ // Inner props are checked in the reconciler.
6325
+ type.$$typeof === REACT_MEMO_TYPE)) {
6326
+ propTypes = type.propTypes;
6327
+ } else {
6328
+ return;
6329
+ }
6330
+ if (propTypes) {
6331
+ var name = getComponentName(type);
6332
+ checkPropTypes(propTypes, element.props, "prop", name, element);
6333
+ } else if (type.PropTypes !== void 0 && !propTypesMisspellWarningShown) {
6334
+ propTypesMisspellWarningShown = true;
6335
+ var _name = getComponentName(type);
6336
+ error("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", _name || "Unknown");
6337
+ }
6338
+ if (typeof type.getDefaultProps === "function" && !type.getDefaultProps.isReactClassApproved) {
6339
+ error("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
6340
+ }
6341
+ }
6342
+ }
6343
+ function validateFragmentProps(fragment) {
6344
+ {
6345
+ var keys = Object.keys(fragment.props);
6346
+ for (var i = 0; i < keys.length; i++) {
6347
+ var key = keys[i];
6348
+ if (key !== "children" && key !== "key") {
6349
+ setCurrentlyValidatingElement$1(fragment);
6350
+ error("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", key);
6351
+ setCurrentlyValidatingElement$1(null);
6352
+ break;
6353
+ }
6354
+ }
6355
+ if (fragment.ref !== null) {
6356
+ setCurrentlyValidatingElement$1(fragment);
6357
+ error("Invalid attribute `ref` supplied to `React.Fragment`.");
6358
+ setCurrentlyValidatingElement$1(null);
6359
+ }
6360
+ }
6361
+ }
6362
+ function jsxWithValidation(type, props, key, isStaticChildren, source, self) {
6363
+ {
6364
+ var validType = isValidElementType(type);
6365
+ if (!validType) {
6366
+ var info = "";
6367
+ if (type === void 0 || typeof type === "object" && type !== null && Object.keys(type).length === 0) {
6368
+ info += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.";
6369
+ }
6370
+ var sourceInfo = getSourceInfoErrorAddendum();
6371
+ if (sourceInfo) {
6372
+ info += sourceInfo;
6373
+ } else {
6374
+ info += getDeclarationErrorAddendum();
6375
+ }
6376
+ var typeString;
6377
+ if (type === null) {
6378
+ typeString = "null";
6379
+ } else if (Array.isArray(type)) {
6380
+ typeString = "array";
6381
+ } else if (type !== void 0 && type.$$typeof === REACT_ELEMENT_TYPE) {
6382
+ typeString = "<" + (getComponentName(type.type) || "Unknown") + " />";
6383
+ info = " Did you accidentally export a JSX literal instead of a component?";
6384
+ } else {
6385
+ typeString = typeof type;
6386
+ }
6387
+ error("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", typeString, info);
6388
+ }
6389
+ var element = jsxDEV(type, props, key, source, self);
6390
+ if (element == null) {
6391
+ return element;
6392
+ }
6393
+ if (validType) {
6394
+ var children = props.children;
6395
+ if (children !== void 0) {
6396
+ if (isStaticChildren) {
6397
+ if (Array.isArray(children)) {
6398
+ for (var i = 0; i < children.length; i++) {
6399
+ validateChildKeys(children[i], type);
6400
+ }
6401
+ if (Object.freeze) {
6402
+ Object.freeze(children);
6403
+ }
6404
+ } else {
6405
+ error("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
6406
+ }
6407
+ } else {
6408
+ validateChildKeys(children, type);
6409
+ }
6410
+ }
6411
+ }
6412
+ if (type === exports.Fragment) {
6413
+ validateFragmentProps(element);
6414
+ } else {
6415
+ validatePropTypes(element);
6416
+ }
6417
+ return element;
6418
+ }
6419
+ }
6420
+ function jsxWithValidationStatic(type, props, key) {
6421
+ {
6422
+ return jsxWithValidation(type, props, key, true);
6423
+ }
6424
+ }
6425
+ function jsxWithValidationDynamic(type, props, key) {
6426
+ {
6427
+ return jsxWithValidation(type, props, key, false);
6428
+ }
6429
+ }
6430
+ var jsx = jsxWithValidationDynamic;
6431
+ var jsxs = jsxWithValidationStatic;
6432
+ exports.jsx = jsx;
6433
+ exports.jsxs = jsxs;
6434
+ })();
5821
6435
  }
5822
- var React$1 = React, REACT_ELEMENT_TYPE = Symbol.for("react.transitional.element"), REACT_PORTAL_TYPE = Symbol.for("react.portal"), REACT_FRAGMENT_TYPE = Symbol.for("react.fragment"), REACT_STRICT_MODE_TYPE = Symbol.for("react.strict_mode"), REACT_PROFILER_TYPE = Symbol.for("react.profiler");
5823
- var REACT_CONSUMER_TYPE = Symbol.for("react.consumer"), REACT_CONTEXT_TYPE = Symbol.for("react.context"), REACT_FORWARD_REF_TYPE = Symbol.for("react.forward_ref"), REACT_SUSPENSE_TYPE = Symbol.for("react.suspense"), REACT_SUSPENSE_LIST_TYPE = Symbol.for("react.suspense_list"), REACT_MEMO_TYPE = Symbol.for("react.memo"), REACT_LAZY_TYPE = Symbol.for("react.lazy"), REACT_ACTIVITY_TYPE = Symbol.for("react.activity"), REACT_CLIENT_REFERENCE = Symbol.for("react.client.reference"), ReactSharedInternals = React$1.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, hasOwnProperty = Object.prototype.hasOwnProperty, isArrayImpl = Array.isArray, createTask = console.createTask ? console.createTask : function() {
5824
- return null;
5825
- };
5826
- React$1 = {
5827
- "react-stack-bottom-frame": function(callStackForError) {
5828
- return callStackForError();
5829
- }
5830
- };
5831
- var specialPropKeyWarningShown;
5832
- var didWarnAboutElementRef = {};
5833
- var unknownOwnerDebugStack = React$1["react-stack-bottom-frame"].bind(
5834
- React$1,
5835
- UnknownOwner
5836
- )();
5837
- var unknownOwnerDebugTask = createTask(getTaskName(UnknownOwner));
5838
- var didWarnAboutKeySpread = {};
5839
- reactJsxRuntime_development.Fragment = REACT_FRAGMENT_TYPE;
5840
- reactJsxRuntime_development.jsx = function(type, config, maybeKey, source, self) {
5841
- var trackActualOwner = 1e4 > ReactSharedInternals.recentlyCreatedOwnerStacks++;
5842
- return jsxDEVImpl(
5843
- type,
5844
- config,
5845
- maybeKey,
5846
- false,
5847
- source,
5848
- self,
5849
- trackActualOwner ? Error("react-stack-top-frame") : unknownOwnerDebugStack,
5850
- trackActualOwner ? createTask(getTaskName(type)) : unknownOwnerDebugTask
5851
- );
5852
- };
5853
- reactJsxRuntime_development.jsxs = function(type, config, maybeKey, source, self) {
5854
- var trackActualOwner = 1e4 > ReactSharedInternals.recentlyCreatedOwnerStacks++;
5855
- return jsxDEVImpl(
5856
- type,
5857
- config,
5858
- maybeKey,
5859
- true,
5860
- source,
5861
- self,
5862
- trackActualOwner ? Error("react-stack-top-frame") : unknownOwnerDebugStack,
5863
- trackActualOwner ? createTask(getTaskName(type)) : unknownOwnerDebugTask
5864
- );
5865
- };
5866
- }();
6436
+ })(reactJsxRuntime_development);
5867
6437
  return reactJsxRuntime_development;
5868
6438
  }
5869
6439
  var hasRequiredJsxRuntime;
@@ -5871,29 +6441,38 @@ function requireJsxRuntime() {
5871
6441
  if (hasRequiredJsxRuntime) return jsxRuntime.exports;
5872
6442
  hasRequiredJsxRuntime = 1;
5873
6443
  if (process.env.NODE_ENV === "production") {
5874
- jsxRuntime.exports = requireReactJsxRuntime_production();
6444
+ jsxRuntime.exports = requireReactJsxRuntime_production_min();
5875
6445
  } else {
5876
6446
  jsxRuntime.exports = requireReactJsxRuntime_development();
5877
6447
  }
5878
6448
  return jsxRuntime.exports;
5879
6449
  }
5880
6450
  var jsxRuntimeExports = requireJsxRuntime();
6451
+ class ModernRenderer {
6452
+ static render(node, container) {
6453
+ flushSync(() => {
6454
+ const root = createRoot(container);
6455
+ root.render(node);
6456
+ });
6457
+ }
6458
+ }
6459
+ const _Renderer = class _Renderer {
6460
+ static async render(node, container) {
6461
+ if (_Renderer.reactVersion >= 18) {
6462
+ ModernRenderer.render(node, container);
6463
+ } else {
6464
+ const { default: LegacyRenderer } = await import("./legacy-O6WN3SMx.mjs");
6465
+ LegacyRenderer.render(node, container);
6466
+ }
6467
+ }
6468
+ };
6469
+ __publicField(_Renderer, "reactVersion", parseInt(version.split(".")[0]));
6470
+ let Renderer = _Renderer;
5881
6471
  function reactNodeToHTMLElement(node) {
5882
6472
  const container = document.createElement("div");
5883
- flushSync(() => {
5884
- render(/* @__PURE__ */ jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment, { children: node }), container);
5885
- });
6473
+ Renderer.render(node, container);
5886
6474
  return container;
5887
6475
  }
5888
- function render(node, container) {
5889
- const createRoot = ReactDOM["createRoot"];
5890
- if (createRoot instanceof Function) {
5891
- const root = createRoot(container);
5892
- return root.render(node);
5893
- }
5894
- const render2 = ReactDOM["render"];
5895
- return render2(node, container);
5896
- }
5897
6476
  const CourierInbox2 = (props) => {
5898
6477
  const inboxRef = useRef(null);
5899
6478
  useEffect(() => {